@burdenoff/microfe-subscriberbot 2026.615.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/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/dist/subscriberbot/components/EmptyState.js +20 -13
- package/dist/subscriberbot/components/EmptyState.js.map +1 -1
- package/dist/subscriberbot/components/InvestmentCard.js +29 -28
- package/dist/subscriberbot/components/InvestmentCard.js.map +1 -1
- package/dist/subscriberbot/components/MetricsCard.js +18 -15
- package/dist/subscriberbot/components/MetricsCard.js.map +1 -1
- package/dist/subscriberbot/components/PageLayout.js +27 -15
- package/dist/subscriberbot/components/PageLayout.js.map +1 -1
- package/dist/subscriberbot/components/RatingDisplay.js +3 -3
- package/dist/subscriberbot/components/RatingDisplay.js.map +1 -1
- package/dist/subscriberbot/components/StatusBadge.js +26 -14
- package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
- package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
- package/dist/subscriberbot/pages/HomePage.js +109 -105
- package/dist/subscriberbot/pages/HomePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +87 -87
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminDashboard.js +102 -101
- package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +48 -48
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +96 -96
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js +34 -34
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +40 -40
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/CartManagementPage.js +104 -104
- package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/UserManagementPage.js +99 -99
- package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +117 -117
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +34 -34
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +158 -153
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +117 -117
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +89 -89
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +109 -109
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +90 -89
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +97 -97
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/HelpSupportPage.js +138 -138
- package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js +67 -66
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/SettingsPage.js +116 -116
- package/dist/subscriberbot/pages/common/SettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +73 -72
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDetailPage.js +89 -88
- package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +68 -66
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CheckoutPage.js +80 -80
- package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js +89 -88
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +84 -84
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +92 -91
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/FavoritesPage.js +34 -33
- package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +45 -43
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +61 -60
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +59 -58
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/ReviewsPage.js +49 -48
- package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +47 -46
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +129 -129
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +90 -88
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +88 -88
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js +63 -62
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +39 -38
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +66 -66
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +154 -154
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +80 -79
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js +107 -106
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +73 -72
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +108 -108
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +71 -69
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/dist/subscriberbot/utils/cn.js +2 -2
- 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
|
@@ -87,33 +87,34 @@ function D() {
|
|
|
87
87
|
order: b,
|
|
88
88
|
dispute: s
|
|
89
89
|
}[e] ?? o, { className: "h-4 w-4" }), z = (e) => ({
|
|
90
|
-
user_registration: "text-
|
|
91
|
-
cart_approval: "text-
|
|
92
|
-
investment: "text-
|
|
93
|
-
order: "text-
|
|
94
|
-
dispute: "text-
|
|
95
|
-
})[e] ?? "text-
|
|
96
|
-
completed: "bg-
|
|
97
|
-
pending: "bg-
|
|
98
|
-
failed: "bg-
|
|
90
|
+
user_registration: "text-status-info-text",
|
|
91
|
+
cart_approval: "text-accent-purple",
|
|
92
|
+
investment: "text-status-success-text",
|
|
93
|
+
order: "text-status-success-text",
|
|
94
|
+
dispute: "text-status-warning-text"
|
|
95
|
+
})[e] ?? "text-text-secondary", B = (e) => ({
|
|
96
|
+
completed: "bg-status-success-bg/20 text-status-success-text",
|
|
97
|
+
pending: "bg-status-warning-bg/20 text-status-warning-text",
|
|
98
|
+
failed: "bg-status-error-bg/20 text-status-error-text"
|
|
99
99
|
})[e] ?? "bg-secondary text-secondary-foreground";
|
|
100
100
|
return I ? /* @__PURE__ */ T(n, {
|
|
101
101
|
title: "Admin Dashboard",
|
|
102
102
|
description: "Loading...",
|
|
103
103
|
children: /* @__PURE__ */ E("div", {
|
|
104
104
|
className: "flex flex-col items-center justify-center py-20",
|
|
105
|
-
children: [/* @__PURE__ */ T(g, { className: "h-10 w-10 animate-spin text-
|
|
106
|
-
className: "text-
|
|
105
|
+
children: [/* @__PURE__ */ T(g, { className: "h-10 w-10 animate-spin text-text-secondary mb-4" }), /* @__PURE__ */ T("p", {
|
|
106
|
+
className: "text-text-secondary",
|
|
107
107
|
children: "Loading admin dashboard..."
|
|
108
108
|
})]
|
|
109
109
|
})
|
|
110
110
|
}) : /* @__PURE__ */ E(n, {
|
|
111
111
|
title: "Admin Dashboard",
|
|
112
112
|
description: `Welcome, ${k}! Monitor and manage the platform.`,
|
|
113
|
+
titleGradient: !0,
|
|
113
114
|
actions: A?.pendingApprovals && A.pendingApprovals > 0 ? /* @__PURE__ */ E("div", {
|
|
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-
|
|
115
|
+
className: "flex items-center gap-2 rounded-lg border border-status-error-border/30 bg-status-error-bg/10 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",
|
|
117
118
|
children: [A.pendingApprovals, " pending approvals"]
|
|
118
119
|
})]
|
|
119
120
|
}) : void 0,
|
|
@@ -121,7 +122,7 @@ function D() {
|
|
|
121
122
|
/* @__PURE__ */ E("div", {
|
|
122
123
|
className: "mb-8",
|
|
123
124
|
children: [/* @__PURE__ */ T("h2", {
|
|
124
|
-
className: "text-lg font-semibold text-
|
|
125
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
125
126
|
children: "Quick Actions"
|
|
126
127
|
}), /* @__PURE__ */ E("div", {
|
|
127
128
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",
|
|
@@ -129,7 +130,7 @@ function D() {
|
|
|
129
130
|
/* @__PURE__ */ E("button", {
|
|
130
131
|
type: "button",
|
|
131
132
|
onClick: () => D("/admin/carts"),
|
|
132
|
-
className: "flex items-center gap-3 rounded-lg bg-
|
|
133
|
+
className: "flex items-center gap-3 rounded-lg bg-status-error-text hover:bg-status-error-text text-text-inverse p-3 text-sm font-medium transition-colors",
|
|
133
134
|
children: [
|
|
134
135
|
/* @__PURE__ */ T(s, { className: "h-5 w-5" }),
|
|
135
136
|
"Approve Carts (",
|
|
@@ -140,44 +141,44 @@ function D() {
|
|
|
140
141
|
/* @__PURE__ */ E("button", {
|
|
141
142
|
type: "button",
|
|
142
143
|
onClick: () => D("/admin/carts"),
|
|
143
|
-
className: "flex items-center gap-3 rounded-lg border border-border bg-
|
|
144
|
-
children: [/* @__PURE__ */ T(x, { className: "h-5 w-5 text-
|
|
144
|
+
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",
|
|
145
|
+
children: [/* @__PURE__ */ T(x, { className: "h-5 w-5 text-text-secondary" }), "Manage Carts"]
|
|
145
146
|
}),
|
|
146
147
|
/* @__PURE__ */ E("button", {
|
|
147
148
|
type: "button",
|
|
148
149
|
onClick: () => D("/admin/users"),
|
|
149
|
-
className: "flex items-center gap-3 rounded-lg border border-border bg-
|
|
150
|
-
children: [/* @__PURE__ */ T(C, { className: "h-5 w-5 text-
|
|
150
|
+
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",
|
|
151
|
+
children: [/* @__PURE__ */ T(C, { className: "h-5 w-5 text-text-secondary" }), "User Management"]
|
|
151
152
|
}),
|
|
152
153
|
/* @__PURE__ */ E("button", {
|
|
153
154
|
type: "button",
|
|
154
155
|
onClick: () => D("/admin/orders"),
|
|
155
|
-
className: "flex items-center gap-3 rounded-lg border border-border bg-
|
|
156
|
-
children: [/* @__PURE__ */ T(b, { className: "h-5 w-5 text-
|
|
156
|
+
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",
|
|
157
|
+
children: [/* @__PURE__ */ T(b, { className: "h-5 w-5 text-text-secondary" }), "Order Management"]
|
|
157
158
|
}),
|
|
158
159
|
/* @__PURE__ */ E("button", {
|
|
159
160
|
type: "button",
|
|
160
161
|
onClick: () => D("/admin/financial"),
|
|
161
|
-
className: "flex items-center gap-3 rounded-lg border border-border bg-
|
|
162
|
-
children: [/* @__PURE__ */ T(h, { className: "h-5 w-5 text-
|
|
162
|
+
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",
|
|
163
|
+
children: [/* @__PURE__ */ T(h, { className: "h-5 w-5 text-text-secondary" }), "Financial Analytics"]
|
|
163
164
|
}),
|
|
164
165
|
/* @__PURE__ */ E("button", {
|
|
165
166
|
type: "button",
|
|
166
167
|
onClick: () => D("/admin/analytics"),
|
|
167
|
-
className: "flex items-center gap-3 rounded-lg border border-border bg-
|
|
168
|
-
children: [/* @__PURE__ */ T(l, { className: "h-5 w-5 text-
|
|
168
|
+
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",
|
|
169
|
+
children: [/* @__PURE__ */ T(l, { className: "h-5 w-5 text-text-secondary" }), "Analytics"]
|
|
169
170
|
}),
|
|
170
171
|
/* @__PURE__ */ E("button", {
|
|
171
172
|
type: "button",
|
|
172
173
|
onClick: () => D("/admin/settings"),
|
|
173
|
-
className: "flex items-center gap-3 rounded-lg border border-border bg-
|
|
174
|
-
children: [/* @__PURE__ */ T(v, { className: "h-5 w-5 text-
|
|
174
|
+
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",
|
|
175
|
+
children: [/* @__PURE__ */ T(v, { className: "h-5 w-5 text-text-secondary" }), "Settings"]
|
|
175
176
|
}),
|
|
176
177
|
/* @__PURE__ */ E("button", {
|
|
177
178
|
type: "button",
|
|
178
179
|
onClick: () => D("/admin/analytics"),
|
|
179
|
-
className: "flex items-center gap-3 rounded-lg border border-border bg-
|
|
180
|
-
children: [/* @__PURE__ */ T(m, { className: "h-5 w-5 text-
|
|
180
|
+
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",
|
|
181
|
+
children: [/* @__PURE__ */ T(m, { className: "h-5 w-5 text-text-secondary" }), "Reports"]
|
|
181
182
|
})
|
|
182
183
|
]
|
|
183
184
|
})]
|
|
@@ -186,7 +187,7 @@ function D() {
|
|
|
186
187
|
className: "mb-8",
|
|
187
188
|
children: [
|
|
188
189
|
/* @__PURE__ */ T("h2", {
|
|
189
|
-
className: "text-lg font-semibold text-
|
|
190
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
190
191
|
children: "Platform Overview"
|
|
191
192
|
}),
|
|
192
193
|
/* @__PURE__ */ E("div", {
|
|
@@ -226,42 +227,42 @@ function D() {
|
|
|
226
227
|
className: "grid grid-cols-2 lg:grid-cols-4 gap-4 mt-4",
|
|
227
228
|
children: [
|
|
228
229
|
/* @__PURE__ */ E("div", {
|
|
229
|
-
className: "rounded-lg border border-border bg-
|
|
230
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
230
231
|
children: [/* @__PURE__ */ T("p", {
|
|
231
|
-
className: "text-xs text-
|
|
232
|
+
className: "text-xs text-text-secondary",
|
|
232
233
|
children: "Active Users (24h)"
|
|
233
234
|
}), /* @__PURE__ */ T("p", {
|
|
234
|
-
className: "text-xl font-bold text-
|
|
235
|
+
className: "text-xl font-bold text-status-success-text",
|
|
235
236
|
children: A.activeUsers.toLocaleString("en-IN")
|
|
236
237
|
})]
|
|
237
238
|
}),
|
|
238
239
|
/* @__PURE__ */ E("div", {
|
|
239
|
-
className: "rounded-lg border border-border bg-
|
|
240
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
240
241
|
children: [/* @__PURE__ */ T("p", {
|
|
241
|
-
className: "text-xs text-
|
|
242
|
+
className: "text-xs text-text-secondary",
|
|
242
243
|
children: "Pending Approvals"
|
|
243
244
|
}), /* @__PURE__ */ T("p", {
|
|
244
|
-
className: "text-xl font-bold text-
|
|
245
|
+
className: "text-xl font-bold text-status-error-text",
|
|
245
246
|
children: A.pendingApprovals
|
|
246
247
|
})]
|
|
247
248
|
}),
|
|
248
249
|
/* @__PURE__ */ E("div", {
|
|
249
|
-
className: "rounded-lg border border-border bg-
|
|
250
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
250
251
|
children: [/* @__PURE__ */ T("p", {
|
|
251
|
-
className: "text-xs text-
|
|
252
|
+
className: "text-xs text-text-secondary",
|
|
252
253
|
children: "Total Investments"
|
|
253
254
|
}), /* @__PURE__ */ T("p", {
|
|
254
|
-
className: "text-xl font-bold text-
|
|
255
|
+
className: "text-xl font-bold text-status-info-text",
|
|
255
256
|
children: A.totalInvestments.toLocaleString("en-IN")
|
|
256
257
|
})]
|
|
257
258
|
}),
|
|
258
259
|
/* @__PURE__ */ E("div", {
|
|
259
|
-
className: "rounded-lg border border-border bg-
|
|
260
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4",
|
|
260
261
|
children: [/* @__PURE__ */ T("p", {
|
|
261
|
-
className: "text-xs text-
|
|
262
|
+
className: "text-xs text-text-secondary",
|
|
262
263
|
children: "Platform Commission"
|
|
263
264
|
}), /* @__PURE__ */ E("p", {
|
|
264
|
-
className: "text-xl font-bold text-
|
|
265
|
+
className: "text-xl font-bold text-accent-purple",
|
|
265
266
|
children: [
|
|
266
267
|
"₹",
|
|
267
268
|
(A.platformCommission / 1e3).toFixed(0),
|
|
@@ -276,10 +277,10 @@ function D() {
|
|
|
276
277
|
P && /* @__PURE__ */ E("div", {
|
|
277
278
|
className: "mb-8",
|
|
278
279
|
children: [/* @__PURE__ */ T("h2", {
|
|
279
|
-
className: "text-lg font-semibold text-
|
|
280
|
+
className: "text-lg font-semibold text-text-primary mb-4",
|
|
280
281
|
children: "User Distribution"
|
|
281
282
|
}), /* @__PURE__ */ E("div", {
|
|
282
|
-
className: "rounded-lg border border-border bg-
|
|
283
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6",
|
|
283
284
|
children: [/* @__PURE__ */ E("div", {
|
|
284
285
|
className: "grid grid-cols-2 lg:grid-cols-4 gap-6",
|
|
285
286
|
children: [
|
|
@@ -287,15 +288,15 @@ function D() {
|
|
|
287
288
|
className: "text-center",
|
|
288
289
|
children: [
|
|
289
290
|
/* @__PURE__ */ T("div", {
|
|
290
|
-
className: "text-2xl sm:text-3xl font-bold text-
|
|
291
|
+
className: "text-2xl sm:text-3xl font-bold text-status-info-text",
|
|
291
292
|
children: P.customers.toLocaleString("en-IN")
|
|
292
293
|
}),
|
|
293
294
|
/* @__PURE__ */ T("div", {
|
|
294
|
-
className: "text-sm text-
|
|
295
|
+
className: "text-sm text-text-secondary",
|
|
295
296
|
children: "Customers"
|
|
296
297
|
}),
|
|
297
298
|
/* @__PURE__ */ T("div", {
|
|
298
|
-
className: "text-xs text-
|
|
299
|
+
className: "text-xs text-text-secondary",
|
|
299
300
|
children: "69.5%"
|
|
300
301
|
})
|
|
301
302
|
]
|
|
@@ -304,15 +305,15 @@ function D() {
|
|
|
304
305
|
className: "text-center",
|
|
305
306
|
children: [
|
|
306
307
|
/* @__PURE__ */ T("div", {
|
|
307
|
-
className: "text-2xl sm:text-3xl font-bold text-
|
|
308
|
+
className: "text-2xl sm:text-3xl font-bold text-status-success-text",
|
|
308
309
|
children: P.cartOwners.toLocaleString("en-IN")
|
|
309
310
|
}),
|
|
310
311
|
/* @__PURE__ */ T("div", {
|
|
311
|
-
className: "text-sm text-
|
|
312
|
+
className: "text-sm text-text-secondary",
|
|
312
313
|
children: "Cart Owners"
|
|
313
314
|
}),
|
|
314
315
|
/* @__PURE__ */ T("div", {
|
|
315
|
-
className: "text-xs text-
|
|
316
|
+
className: "text-xs text-text-secondary",
|
|
316
317
|
children: "19.1%"
|
|
317
318
|
})
|
|
318
319
|
]
|
|
@@ -321,15 +322,15 @@ function D() {
|
|
|
321
322
|
className: "text-center",
|
|
322
323
|
children: [
|
|
323
324
|
/* @__PURE__ */ T("div", {
|
|
324
|
-
className: "text-2xl sm:text-3xl font-bold text-
|
|
325
|
+
className: "text-2xl sm:text-3xl font-bold text-status-warning-text",
|
|
325
326
|
children: P.workers.toLocaleString("en-IN")
|
|
326
327
|
}),
|
|
327
328
|
/* @__PURE__ */ T("div", {
|
|
328
|
-
className: "text-sm text-
|
|
329
|
+
className: "text-sm text-text-secondary",
|
|
329
330
|
children: "Workers"
|
|
330
331
|
}),
|
|
331
332
|
/* @__PURE__ */ T("div", {
|
|
332
|
-
className: "text-xs text-
|
|
333
|
+
className: "text-xs text-text-secondary",
|
|
333
334
|
children: "9.7%"
|
|
334
335
|
})
|
|
335
336
|
]
|
|
@@ -338,29 +339,29 @@ function D() {
|
|
|
338
339
|
className: "text-center",
|
|
339
340
|
children: [
|
|
340
341
|
/* @__PURE__ */ T("div", {
|
|
341
|
-
className: "text-2xl sm:text-3xl font-bold text-
|
|
342
|
+
className: "text-2xl sm:text-3xl font-bold text-accent-purple",
|
|
342
343
|
children: P.investors.toLocaleString("en-IN")
|
|
343
344
|
}),
|
|
344
345
|
/* @__PURE__ */ T("div", {
|
|
345
|
-
className: "text-sm text-
|
|
346
|
+
className: "text-sm text-text-secondary",
|
|
346
347
|
children: "Investors"
|
|
347
348
|
}),
|
|
348
349
|
/* @__PURE__ */ T("div", {
|
|
349
|
-
className: "text-xs text-
|
|
350
|
+
className: "text-xs text-text-secondary",
|
|
350
351
|
children: "1.7%"
|
|
351
352
|
})
|
|
352
353
|
]
|
|
353
354
|
})
|
|
354
355
|
]
|
|
355
356
|
}), /* @__PURE__ */ T("div", {
|
|
356
|
-
className: "mt-4 pt-4 border-t border-border",
|
|
357
|
+
className: "mt-4 pt-4 border-t border-border-seam",
|
|
357
358
|
children: /* @__PURE__ */ E("div", {
|
|
358
359
|
className: "flex justify-between items-center",
|
|
359
360
|
children: [/* @__PURE__ */ T("span", {
|
|
360
|
-
className: "text-sm text-
|
|
361
|
+
className: "text-sm text-text-secondary",
|
|
361
362
|
children: "User Growth (This Month)"
|
|
362
363
|
}), /* @__PURE__ */ E("span", {
|
|
363
|
-
className: "text-sm font-medium text-
|
|
364
|
+
className: "text-sm font-medium text-status-success-text",
|
|
364
365
|
children: [
|
|
365
366
|
"+",
|
|
366
367
|
P.growth,
|
|
@@ -376,34 +377,34 @@ function D() {
|
|
|
376
377
|
children: [/* @__PURE__ */ E("div", {
|
|
377
378
|
className: "flex items-center justify-between mb-4",
|
|
378
379
|
children: [/* @__PURE__ */ T("h2", {
|
|
379
|
-
className: "text-lg font-semibold text-
|
|
380
|
+
className: "text-lg font-semibold text-text-primary",
|
|
380
381
|
children: "Recent Platform Activity"
|
|
381
382
|
}), /* @__PURE__ */ E("button", {
|
|
382
383
|
type: "button",
|
|
383
384
|
onClick: () => D("/admin/analytics"),
|
|
384
|
-
className: "flex items-center gap-1 text-sm font-medium text-
|
|
385
|
+
className: "flex items-center gap-1 text-sm font-medium text-text-secondary hover:text-text-primary transition-colors",
|
|
385
386
|
children: ["View all activities", /* @__PURE__ */ T(c, { className: "h-4 w-4" })]
|
|
386
387
|
})]
|
|
387
388
|
}), /* @__PURE__ */ T("div", {
|
|
388
|
-
className: "rounded-lg border border-border bg-
|
|
389
|
+
className: "rounded-lg border border-border-seam bg-bg-surface divide-y divide-border",
|
|
389
390
|
children: M.map((e) => /* @__PURE__ */ E("div", {
|
|
390
391
|
className: "flex items-start gap-3 px-4 py-3",
|
|
391
392
|
children: [/* @__PURE__ */ T("div", {
|
|
392
|
-
className: t("flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-
|
|
393
|
+
className: t("flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-bg-sunken mt-0.5", z(e.type)),
|
|
393
394
|
children: R(e.type)
|
|
394
395
|
}), /* @__PURE__ */ E("div", {
|
|
395
396
|
className: "flex-1 min-w-0",
|
|
396
397
|
children: [/* @__PURE__ */ E("div", {
|
|
397
398
|
className: "flex flex-col sm:flex-row sm:items-center justify-between gap-2",
|
|
398
399
|
children: [/* @__PURE__ */ T("p", {
|
|
399
|
-
className: "text-sm font-medium text-
|
|
400
|
+
className: "text-sm font-medium text-text-primary",
|
|
400
401
|
children: e.description
|
|
401
402
|
}), /* @__PURE__ */ T("span", {
|
|
402
403
|
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize w-fit", B(e.status)),
|
|
403
404
|
children: e.status
|
|
404
405
|
})]
|
|
405
406
|
}), /* @__PURE__ */ E("div", {
|
|
406
|
-
className: "flex flex-wrap items-center mt-1 text-xs text-
|
|
407
|
+
className: "flex flex-wrap items-center mt-1 text-xs text-text-secondary gap-3",
|
|
407
408
|
children: [
|
|
408
409
|
/* @__PURE__ */ T("span", { children: e.timestamp }),
|
|
409
410
|
e.user && /* @__PURE__ */ E("span", {
|
|
@@ -427,11 +428,11 @@ function D() {
|
|
|
427
428
|
/* @__PURE__ */ E("div", {
|
|
428
429
|
className: "grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8",
|
|
429
430
|
children: [/* @__PURE__ */ E("div", {
|
|
430
|
-
className: "rounded-lg border border-border bg-
|
|
431
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6",
|
|
431
432
|
children: [/* @__PURE__ */ E("div", {
|
|
432
433
|
className: "flex items-center gap-2 mb-4",
|
|
433
|
-
children: [/* @__PURE__ */ T(y, { className: "h-5 w-5 text-
|
|
434
|
-
className: "text-lg font-semibold text-
|
|
434
|
+
children: [/* @__PURE__ */ T(y, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ T("h3", {
|
|
435
|
+
className: "text-lg font-semibold text-text-primary",
|
|
435
436
|
children: "System Health"
|
|
436
437
|
})]
|
|
437
438
|
}), /* @__PURE__ */ E("div", {
|
|
@@ -441,12 +442,12 @@ function D() {
|
|
|
441
442
|
className: "flex items-center justify-between",
|
|
442
443
|
children: [/* @__PURE__ */ E("div", {
|
|
443
444
|
className: "flex items-center gap-3",
|
|
444
|
-
children: [/* @__PURE__ */ T(_, { className: "h-4 w-4 text-
|
|
445
|
-
className: "text-sm text-
|
|
445
|
+
children: [/* @__PURE__ */ T(_, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ T("span", {
|
|
446
|
+
className: "text-sm text-text-secondary",
|
|
446
447
|
children: "Server Status"
|
|
447
448
|
})]
|
|
448
449
|
}), /* @__PURE__ */ E("span", {
|
|
449
|
-
className: "inline-flex items-center gap-1.5 rounded-full bg-
|
|
450
|
+
className: "inline-flex items-center gap-1.5 rounded-full bg-status-success-bg/20 px-3 py-1 text-xs font-medium text-status-success-text",
|
|
450
451
|
children: [/* @__PURE__ */ T(u, { className: "h-3 w-3" }), "Healthy"]
|
|
451
452
|
})]
|
|
452
453
|
}),
|
|
@@ -454,12 +455,12 @@ function D() {
|
|
|
454
455
|
className: "flex items-center justify-between",
|
|
455
456
|
children: [/* @__PURE__ */ E("div", {
|
|
456
457
|
className: "flex items-center gap-3",
|
|
457
|
-
children: [/* @__PURE__ */ T(p, { className: "h-4 w-4 text-
|
|
458
|
-
className: "text-sm text-
|
|
458
|
+
children: [/* @__PURE__ */ T(p, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ T("span", {
|
|
459
|
+
className: "text-sm text-text-secondary",
|
|
459
460
|
children: "Database Performance"
|
|
460
461
|
})]
|
|
461
462
|
}), /* @__PURE__ */ E("span", {
|
|
462
|
-
className: "inline-flex items-center gap-1.5 rounded-full bg-
|
|
463
|
+
className: "inline-flex items-center gap-1.5 rounded-full bg-status-success-bg/20 px-3 py-1 text-xs font-medium text-status-success-text",
|
|
463
464
|
children: [/* @__PURE__ */ T(u, { className: "h-3 w-3" }), "Optimal"]
|
|
464
465
|
})]
|
|
465
466
|
}),
|
|
@@ -467,12 +468,12 @@ function D() {
|
|
|
467
468
|
className: "flex items-center justify-between",
|
|
468
469
|
children: [/* @__PURE__ */ E("div", {
|
|
469
470
|
className: "flex items-center gap-3",
|
|
470
|
-
children: [/* @__PURE__ */ T(f, { className: "h-4 w-4 text-
|
|
471
|
-
className: "text-sm text-
|
|
471
|
+
children: [/* @__PURE__ */ T(f, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ T("span", {
|
|
472
|
+
className: "text-sm text-text-secondary",
|
|
472
473
|
children: "Payment Gateway"
|
|
473
474
|
})]
|
|
474
475
|
}), /* @__PURE__ */ E("span", {
|
|
475
|
-
className: "inline-flex items-center gap-1.5 rounded-full bg-
|
|
476
|
+
className: "inline-flex items-center gap-1.5 rounded-full bg-status-success-bg/20 px-3 py-1 text-xs font-medium text-status-success-text",
|
|
476
477
|
children: [/* @__PURE__ */ T(u, { className: "h-3 w-3" }), "Online"]
|
|
477
478
|
})]
|
|
478
479
|
}),
|
|
@@ -480,12 +481,12 @@ function D() {
|
|
|
480
481
|
className: "flex items-center justify-between",
|
|
481
482
|
children: [/* @__PURE__ */ E("div", {
|
|
482
483
|
className: "flex items-center gap-3",
|
|
483
|
-
children: [/* @__PURE__ */ T(w, { className: "h-4 w-4 text-
|
|
484
|
-
className: "text-sm text-
|
|
484
|
+
children: [/* @__PURE__ */ T(w, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ T("span", {
|
|
485
|
+
className: "text-sm text-text-secondary",
|
|
485
486
|
children: "API Response Time"
|
|
486
487
|
})]
|
|
487
488
|
}), /* @__PURE__ */ T("span", {
|
|
488
|
-
className: "text-sm font-medium text-
|
|
489
|
+
className: "text-sm font-medium text-text-primary",
|
|
489
490
|
children: "145ms"
|
|
490
491
|
})]
|
|
491
492
|
}),
|
|
@@ -493,23 +494,23 @@ function D() {
|
|
|
493
494
|
className: "flex items-center justify-between",
|
|
494
495
|
children: [/* @__PURE__ */ E("div", {
|
|
495
496
|
className: "flex items-center gap-3",
|
|
496
|
-
children: [/* @__PURE__ */ T(d, { className: "h-4 w-4 text-
|
|
497
|
-
className: "text-sm text-
|
|
497
|
+
children: [/* @__PURE__ */ T(d, { className: "h-4 w-4 text-text-secondary" }), /* @__PURE__ */ T("span", {
|
|
498
|
+
className: "text-sm text-text-secondary",
|
|
498
499
|
children: "Uptime (30 days)"
|
|
499
500
|
})]
|
|
500
501
|
}), /* @__PURE__ */ T("span", {
|
|
501
|
-
className: "text-sm font-medium text-
|
|
502
|
+
className: "text-sm font-medium text-text-primary",
|
|
502
503
|
children: "99.8%"
|
|
503
504
|
})]
|
|
504
505
|
})
|
|
505
506
|
]
|
|
506
507
|
})]
|
|
507
508
|
}), /* @__PURE__ */ E("div", {
|
|
508
|
-
className: "rounded-lg border border-border bg-
|
|
509
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-6",
|
|
509
510
|
children: [/* @__PURE__ */ E("div", {
|
|
510
511
|
className: "flex items-center gap-2 mb-4",
|
|
511
|
-
children: [/* @__PURE__ */ T(h, { className: "h-5 w-5 text-
|
|
512
|
-
className: "text-lg font-semibold text-
|
|
512
|
+
children: [/* @__PURE__ */ T(h, { className: "h-5 w-5 text-text-secondary" }), /* @__PURE__ */ T("h3", {
|
|
513
|
+
className: "text-lg font-semibold text-text-primary",
|
|
513
514
|
children: "Financial Overview"
|
|
514
515
|
})]
|
|
515
516
|
}), /* @__PURE__ */ E("div", {
|
|
@@ -518,50 +519,50 @@ function D() {
|
|
|
518
519
|
/* @__PURE__ */ E("div", {
|
|
519
520
|
className: "flex justify-between",
|
|
520
521
|
children: [/* @__PURE__ */ T("span", {
|
|
521
|
-
className: "text-sm text-
|
|
522
|
+
className: "text-sm text-text-secondary",
|
|
522
523
|
children: "Today's Revenue"
|
|
523
524
|
}), /* @__PURE__ */ T("span", {
|
|
524
|
-
className: "font-medium text-
|
|
525
|
+
className: "font-medium text-text-primary",
|
|
525
526
|
children: "₹1,45,230"
|
|
526
527
|
})]
|
|
527
528
|
}),
|
|
528
529
|
/* @__PURE__ */ E("div", {
|
|
529
530
|
className: "flex justify-between",
|
|
530
531
|
children: [/* @__PURE__ */ T("span", {
|
|
531
|
-
className: "text-sm text-
|
|
532
|
+
className: "text-sm text-text-secondary",
|
|
532
533
|
children: "This Month"
|
|
533
534
|
}), /* @__PURE__ */ T("span", {
|
|
534
|
-
className: "font-medium text-
|
|
535
|
+
className: "font-medium text-text-primary",
|
|
535
536
|
children: "₹24,50,000"
|
|
536
537
|
})]
|
|
537
538
|
}),
|
|
538
539
|
/* @__PURE__ */ E("div", {
|
|
539
540
|
className: "flex justify-between",
|
|
540
541
|
children: [/* @__PURE__ */ T("span", {
|
|
541
|
-
className: "text-sm text-
|
|
542
|
+
className: "text-sm text-text-secondary",
|
|
542
543
|
children: "Platform Commission"
|
|
543
544
|
}), /* @__PURE__ */ T("span", {
|
|
544
|
-
className: "font-medium text-
|
|
545
|
+
className: "font-medium text-text-primary",
|
|
545
546
|
children: "₹1,22,500"
|
|
546
547
|
})]
|
|
547
548
|
}),
|
|
548
549
|
/* @__PURE__ */ E("div", {
|
|
549
550
|
className: "flex justify-between",
|
|
550
551
|
children: [/* @__PURE__ */ T("span", {
|
|
551
|
-
className: "text-sm text-
|
|
552
|
+
className: "text-sm text-text-secondary",
|
|
552
553
|
children: "Active Investments"
|
|
553
554
|
}), /* @__PURE__ */ T("span", {
|
|
554
|
-
className: "font-medium text-
|
|
555
|
+
className: "font-medium text-text-primary",
|
|
555
556
|
children: "₹1.52Cr"
|
|
556
557
|
})]
|
|
557
558
|
}),
|
|
558
559
|
/* @__PURE__ */ E("div", {
|
|
559
560
|
className: "flex justify-between",
|
|
560
561
|
children: [/* @__PURE__ */ T("span", {
|
|
561
|
-
className: "text-sm text-
|
|
562
|
+
className: "text-sm text-text-secondary",
|
|
562
563
|
children: "Pending Payouts"
|
|
563
564
|
}), /* @__PURE__ */ T("span", {
|
|
564
|
-
className: "font-medium text-
|
|
565
|
+
className: "font-medium text-text-primary",
|
|
565
566
|
children: "₹45,600"
|
|
566
567
|
})]
|
|
567
568
|
})
|
|
@@ -613,17 +614,17 @@ function D() {
|
|
|
613
614
|
return /* @__PURE__ */ E("button", {
|
|
614
615
|
type: "button",
|
|
615
616
|
onClick: () => D(e.path),
|
|
616
|
-
className: t("flex items-center gap-4 rounded-lg border border-border bg-
|
|
617
|
+
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
618
|
children: [/* @__PURE__ */ T("div", {
|
|
618
|
-
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-
|
|
619
|
+
className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-bg-sunken text-text-secondary",
|
|
619
620
|
children: /* @__PURE__ */ T(n, { className: "h-5 w-5" })
|
|
620
621
|
}), /* @__PURE__ */ E("div", {
|
|
621
622
|
className: "min-w-0",
|
|
622
623
|
children: [/* @__PURE__ */ T("h3", {
|
|
623
|
-
className: "font-semibold text-
|
|
624
|
+
className: "font-semibold text-text-primary text-sm sm:text-base",
|
|
624
625
|
children: e.label
|
|
625
626
|
}), /* @__PURE__ */ T("p", {
|
|
626
|
-
className: "text-xs sm:text-sm text-
|
|
627
|
+
className: "text-xs sm:text-sm text-text-secondary",
|
|
627
628
|
children: e.desc
|
|
628
629
|
})]
|
|
629
630
|
})]
|