@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
|
@@ -6,8 +6,9 @@ import { mockAdminAnalytics as i } from "../../mocks/data.js";
|
|
|
6
6
|
import { useState as a } from "react";
|
|
7
7
|
import { Activity as o, AlertCircle as s, ArrowRight as c, BarChart3 as l, Bell as u, CheckCircle as d, ChevronRight as f, Clock as p, Edit as m, Eye as h, Flame as g, IndianRupee as _, MapPin as v, Package as y, Plus as b, Settings as x, ShoppingCart as S, Star as C, TrendingDown as w, TrendingUp as T, UserCheck as E, Users as D } from "lucide-react";
|
|
8
8
|
import { jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
9
|
+
import { EmphasisPanel as A, GradientText as j } from "@burdenoff/fe-libs/ui";
|
|
9
10
|
//#region src/subscriberbot/pages/cart-owner/CartOwnerDashboard.tsx
|
|
10
|
-
var
|
|
11
|
+
var M = {
|
|
11
12
|
totalRevenue: 45230,
|
|
12
13
|
dailyRevenue: 1850,
|
|
13
14
|
ordersToday: 23,
|
|
@@ -16,7 +17,7 @@ var A = {
|
|
|
16
17
|
averageOrderValue: 80,
|
|
17
18
|
customerCount: 342,
|
|
18
19
|
rating: 4.2
|
|
19
|
-
},
|
|
20
|
+
}, N = [
|
|
20
21
|
{
|
|
21
22
|
id: "ORD-001",
|
|
22
23
|
customerName: "Rahul Sharma",
|
|
@@ -61,7 +62,7 @@ var A = {
|
|
|
61
62
|
timestamp: "2 mins ago",
|
|
62
63
|
priority: "urgent"
|
|
63
64
|
}
|
|
64
|
-
],
|
|
65
|
+
], P = [
|
|
65
66
|
{
|
|
66
67
|
name: "Masala Dosa",
|
|
67
68
|
quantity: 245,
|
|
@@ -87,7 +88,7 @@ var A = {
|
|
|
87
88
|
quantity: 98,
|
|
88
89
|
revenue: 8820
|
|
89
90
|
}
|
|
90
|
-
],
|
|
91
|
+
], F = [
|
|
91
92
|
{
|
|
92
93
|
name: "Ramesh Kumar",
|
|
93
94
|
role: "Chef",
|
|
@@ -108,7 +109,7 @@ var A = {
|
|
|
108
109
|
role: "Manager",
|
|
109
110
|
status: "active"
|
|
110
111
|
}
|
|
111
|
-
],
|
|
112
|
+
], I = [
|
|
112
113
|
{
|
|
113
114
|
id: "1",
|
|
114
115
|
message: "New order #ORD-004 received",
|
|
@@ -139,46 +140,50 @@ var A = {
|
|
|
139
140
|
type: "warning",
|
|
140
141
|
time: "1 hr ago"
|
|
141
142
|
}
|
|
142
|
-
],
|
|
143
|
+
], L = i.orderTrends.slice(0, 7), R = () => {
|
|
143
144
|
let e = (/* @__PURE__ */ new Date()).getHours();
|
|
144
145
|
return e < 12 ? "Good Morning" : e < 17 ? "Good Afternoon" : "Good Evening";
|
|
145
|
-
}, L = {
|
|
146
|
-
pending: "bg-red-500/15 text-red-600 dark:text-red-400",
|
|
147
|
-
preparing: "bg-yellow-500/15 text-yellow-600 dark:text-yellow-400",
|
|
148
|
-
ready: "bg-blue-500/15 text-blue-600 dark:text-blue-400",
|
|
149
|
-
delivered: "bg-green-500/15 text-green-600 dark:text-green-400",
|
|
150
|
-
cancelled: "bg-muted text-muted-foreground"
|
|
151
|
-
}, R = {
|
|
152
|
-
active: "bg-green-500",
|
|
153
|
-
"on-break": "bg-yellow-500",
|
|
154
|
-
"off-duty": "bg-muted-foreground"
|
|
155
146
|
}, z = {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
147
|
+
pending: "bg-status-error-bg/15 text-status-error-text",
|
|
148
|
+
preparing: "bg-status-warning-bg/15 text-status-warning-text",
|
|
149
|
+
ready: "bg-status-info-bg/15 text-status-info-text",
|
|
150
|
+
delivered: "bg-status-success-bg/15 text-status-success-text",
|
|
151
|
+
cancelled: "bg-bg-sunken text-text-secondary"
|
|
152
|
+
}, B = {
|
|
153
|
+
active: "bg-status-success-text",
|
|
154
|
+
"on-break": "bg-status-warning-text",
|
|
155
|
+
"off-duty": "bg-muted-foreground"
|
|
156
|
+
}, V = {
|
|
157
|
+
info: "text-status-info-text",
|
|
158
|
+
warning: "text-status-warning-text",
|
|
159
|
+
success: "text-status-success-text"
|
|
160
|
+
}, H = () => {
|
|
161
|
+
let { navigateTo: i } = e(), [H, U] = a(N), [W, G] = a({
|
|
161
162
|
isOpen: !0,
|
|
162
163
|
currentLocation: "Koramangala 5th Block, Near BDA Complex",
|
|
163
164
|
lastUpdate: (/* @__PURE__ */ new Date()).toLocaleTimeString(),
|
|
164
165
|
operatingHours: "9:00 AM - 9:00 PM"
|
|
165
|
-
}),
|
|
166
|
-
|
|
166
|
+
}), K = (e) => {
|
|
167
|
+
U((t) => t.map((t) => t.id === e ? {
|
|
167
168
|
...t,
|
|
168
169
|
status: "preparing"
|
|
169
170
|
} : t));
|
|
170
|
-
},
|
|
171
|
-
|
|
171
|
+
}, q = (e) => {
|
|
172
|
+
U((t) => t.map((t) => t.id === e ? {
|
|
172
173
|
...t,
|
|
173
174
|
status: "ready"
|
|
174
175
|
} : t));
|
|
175
176
|
};
|
|
176
177
|
return /* @__PURE__ */ O(n, {
|
|
177
178
|
title: /* @__PURE__ */ k("span", { children: [
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
/* @__PURE__ */ O(j, {
|
|
180
|
+
as: "span",
|
|
181
|
+
children: R()
|
|
182
|
+
}),
|
|
183
|
+
",",
|
|
184
|
+
" ",
|
|
180
185
|
/* @__PURE__ */ O("span", {
|
|
181
|
-
className: "text-
|
|
186
|
+
className: "text-text-secondary font-normal",
|
|
182
187
|
children: "Rajesh"
|
|
183
188
|
})
|
|
184
189
|
] }),
|
|
@@ -186,29 +191,29 @@ var A = {
|
|
|
186
191
|
actions: /* @__PURE__ */ k("button", {
|
|
187
192
|
type: "button",
|
|
188
193
|
onClick: () => i("/cart-owner/orders"),
|
|
189
|
-
className: "inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-
|
|
194
|
+
className: "inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-text-primary hover:bg-accent/80 transition-colors",
|
|
190
195
|
children: ["View All Orders", /* @__PURE__ */ O(c, { className: "h-4 w-4" })]
|
|
191
196
|
}),
|
|
192
197
|
children: /* @__PURE__ */ k("div", {
|
|
193
198
|
className: "space-y-6",
|
|
194
199
|
children: [
|
|
195
|
-
/* @__PURE__ */ O(
|
|
196
|
-
className: t("
|
|
200
|
+
/* @__PURE__ */ O(A, {
|
|
201
|
+
className: t("border-l-4", W.isOpen ? "border-l-status-success-border" : "border-l-status-error-border"),
|
|
197
202
|
children: /* @__PURE__ */ k("div", {
|
|
198
203
|
className: "flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4",
|
|
199
204
|
children: [/* @__PURE__ */ k("div", {
|
|
200
205
|
className: "flex items-start gap-3",
|
|
201
|
-
children: [/* @__PURE__ */ O("div", { className: t("w-3 h-3 rounded-full mt-1 shrink-0",
|
|
202
|
-
className: "font-semibold text-
|
|
203
|
-
children: ["Service Status: ",
|
|
206
|
+
children: [/* @__PURE__ */ O("div", { className: t("w-3 h-3 rounded-full mt-1 shrink-0", W.isOpen ? "bg-status-success-text" : "bg-status-error-text") }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("h3", {
|
|
207
|
+
className: "font-semibold text-text-primary text-sm",
|
|
208
|
+
children: ["Service Status: ", W.isOpen ? "Open" : "Closed"]
|
|
204
209
|
}), /* @__PURE__ */ k("div", {
|
|
205
|
-
className: "flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-4 mt-1 text-xs text-
|
|
210
|
+
className: "flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-4 mt-1 text-xs text-text-secondary",
|
|
206
211
|
children: [/* @__PURE__ */ k("span", {
|
|
207
212
|
className: "flex items-center gap-1",
|
|
208
|
-
children: [/* @__PURE__ */ O(v, { className: "h-3 w-3 shrink-0" }),
|
|
213
|
+
children: [/* @__PURE__ */ O(v, { className: "h-3 w-3 shrink-0" }), W.currentLocation]
|
|
209
214
|
}), /* @__PURE__ */ k("span", {
|
|
210
215
|
className: "flex items-center gap-1",
|
|
211
|
-
children: [/* @__PURE__ */ O(p, { className: "h-3 w-3 shrink-0" }),
|
|
216
|
+
children: [/* @__PURE__ */ O(p, { className: "h-3 w-3 shrink-0" }), W.operatingHours]
|
|
212
217
|
})]
|
|
213
218
|
})] })]
|
|
214
219
|
}), /* @__PURE__ */ k("div", {
|
|
@@ -216,52 +221,52 @@ var A = {
|
|
|
216
221
|
children: [/* @__PURE__ */ k("button", {
|
|
217
222
|
type: "button",
|
|
218
223
|
onClick: () => i("/cart-owner/settings"),
|
|
219
|
-
className: "inline-flex items-center gap-1 rounded-md border border-border px-3 py-1.5 text-xs font-medium text-
|
|
224
|
+
className: "inline-flex items-center gap-1 rounded-md border border-border-seam px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
220
225
|
children: [/* @__PURE__ */ O(v, { className: "h-3 w-3" }), "Update Location"]
|
|
221
226
|
}), /* @__PURE__ */ O("button", {
|
|
222
227
|
type: "button",
|
|
223
228
|
onClick: () => {
|
|
224
|
-
|
|
229
|
+
G((e) => e && {
|
|
225
230
|
...e,
|
|
226
231
|
isOpen: !e.isOpen
|
|
227
232
|
});
|
|
228
233
|
},
|
|
229
|
-
className: t("inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-xs font-medium transition-colors",
|
|
230
|
-
children:
|
|
234
|
+
className: t("inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-xs font-medium transition-colors", W.isOpen ? "bg-status-error-bg/10 text-status-error-text hover:bg-status-error-bg/20" : "bg-status-success-bg/10 text-status-success-text hover:bg-status-success-bg/20"),
|
|
235
|
+
children: W.isOpen ? "Close Service" : "Open Service"
|
|
231
236
|
})]
|
|
232
237
|
})]
|
|
233
238
|
})
|
|
234
239
|
}),
|
|
235
240
|
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h2", {
|
|
236
|
-
className: "text-base font-semibold text-
|
|
241
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
237
242
|
children: "Today's Performance"
|
|
238
243
|
}), /* @__PURE__ */ O("div", {
|
|
239
244
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
240
245
|
children: [
|
|
241
246
|
{
|
|
242
247
|
label: "Daily Revenue",
|
|
243
|
-
value: r(
|
|
248
|
+
value: r(M.dailyRevenue, { minimumFractionDigits: 0 }),
|
|
244
249
|
icon: _,
|
|
245
250
|
trend: "+15.2% vs yesterday",
|
|
246
251
|
trendUp: !0
|
|
247
252
|
},
|
|
248
253
|
{
|
|
249
254
|
label: "Orders Today",
|
|
250
|
-
value: String(
|
|
255
|
+
value: String(M.ordersToday),
|
|
251
256
|
icon: S,
|
|
252
257
|
trend: "+8.5% vs yesterday",
|
|
253
258
|
trendUp: !0
|
|
254
259
|
},
|
|
255
260
|
{
|
|
256
261
|
label: "Avg Order Value",
|
|
257
|
-
value: r(
|
|
262
|
+
value: r(M.averageOrderValue, { minimumFractionDigits: 0 }),
|
|
258
263
|
icon: T,
|
|
259
264
|
trend: "+3.2% vs last week",
|
|
260
265
|
trendUp: !0
|
|
261
266
|
},
|
|
262
267
|
{
|
|
263
268
|
label: "Service Rating",
|
|
264
|
-
value:
|
|
269
|
+
value: M.rating.toFixed(1),
|
|
265
270
|
icon: C,
|
|
266
271
|
trend: "Based on 342 reviews",
|
|
267
272
|
trendUp: !0
|
|
@@ -269,24 +274,24 @@ var A = {
|
|
|
269
274
|
].map((e) => {
|
|
270
275
|
let t = e.icon;
|
|
271
276
|
return /* @__PURE__ */ k("div", {
|
|
272
|
-
className: "rounded-lg border border-border bg-
|
|
277
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
273
278
|
children: [
|
|
274
279
|
/* @__PURE__ */ k("div", {
|
|
275
280
|
className: "flex items-center justify-between",
|
|
276
281
|
children: [/* @__PURE__ */ O("div", {
|
|
277
282
|
className: "rounded-md bg-accent p-2",
|
|
278
|
-
children: /* @__PURE__ */ O(t, { className: "h-5 w-5 text-
|
|
283
|
+
children: /* @__PURE__ */ O(t, { className: "h-5 w-5 text-text-secondary" })
|
|
279
284
|
}), /* @__PURE__ */ k("div", {
|
|
280
|
-
className: "flex items-center gap-1 text-xs text-
|
|
281
|
-
children: [e.trendUp ? /* @__PURE__ */ O(T, { className: "h-3 w-3 text-
|
|
285
|
+
className: "flex items-center gap-1 text-xs text-text-secondary",
|
|
286
|
+
children: [e.trendUp ? /* @__PURE__ */ O(T, { className: "h-3 w-3 text-status-success-text" }) : /* @__PURE__ */ O(w, { className: "h-3 w-3 text-status-error-text" }), /* @__PURE__ */ O("span", { children: e.trend })]
|
|
282
287
|
})]
|
|
283
288
|
}),
|
|
284
289
|
/* @__PURE__ */ O("p", {
|
|
285
|
-
className: "mt-3 text-2xl font-bold text-
|
|
290
|
+
className: "mt-3 text-2xl font-bold text-text-primary",
|
|
286
291
|
children: e.value
|
|
287
292
|
}),
|
|
288
293
|
/* @__PURE__ */ O("p", {
|
|
289
|
-
className: "mt-1 text-sm text-
|
|
294
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
290
295
|
children: e.label
|
|
291
296
|
})
|
|
292
297
|
]
|
|
@@ -299,7 +304,7 @@ var A = {
|
|
|
299
304
|
className: "lg:col-span-2 space-y-6",
|
|
300
305
|
children: [
|
|
301
306
|
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h3", {
|
|
302
|
-
className: "text-base font-semibold mb-3 text-
|
|
307
|
+
className: "text-base font-semibold mb-3 text-text-primary",
|
|
303
308
|
children: "Quick Actions"
|
|
304
309
|
}), /* @__PURE__ */ O("div", {
|
|
305
310
|
className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3",
|
|
@@ -307,31 +312,31 @@ var A = {
|
|
|
307
312
|
{
|
|
308
313
|
label: "Service Config",
|
|
309
314
|
icon: x,
|
|
310
|
-
color: "bg-
|
|
315
|
+
color: "bg-status-warning-bg/10 text-status-warning-text",
|
|
311
316
|
path: "/cart-owner/service-config"
|
|
312
317
|
},
|
|
313
318
|
{
|
|
314
319
|
label: "Manage Offerings",
|
|
315
320
|
icon: y,
|
|
316
|
-
color: "bg-
|
|
321
|
+
color: "bg-status-info-bg/10 text-status-info-text",
|
|
317
322
|
path: "/cart-owner/inventory"
|
|
318
323
|
},
|
|
319
324
|
{
|
|
320
325
|
label: "View Orders",
|
|
321
326
|
icon: S,
|
|
322
|
-
color: "bg-
|
|
327
|
+
color: "bg-status-success-bg/10 text-status-success-text",
|
|
323
328
|
path: "/cart-owner/orders"
|
|
324
329
|
},
|
|
325
330
|
{
|
|
326
331
|
label: "Analytics",
|
|
327
332
|
icon: l,
|
|
328
|
-
color: "bg-purple-
|
|
333
|
+
color: "bg-accent-purple-subtle text-accent-purple",
|
|
329
334
|
path: "/cart-owner/analytics"
|
|
330
335
|
},
|
|
331
336
|
{
|
|
332
337
|
label: "Staff",
|
|
333
338
|
icon: E,
|
|
334
|
-
color: "bg-
|
|
339
|
+
color: "bg-accent-purple-subtle text-accent-purple",
|
|
335
340
|
path: "/cart-owner/staff"
|
|
336
341
|
}
|
|
337
342
|
].map((e) => {
|
|
@@ -350,18 +355,18 @@ var A = {
|
|
|
350
355
|
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("div", {
|
|
351
356
|
className: "flex items-center justify-between mb-3",
|
|
352
357
|
children: [/* @__PURE__ */ O("h3", {
|
|
353
|
-
className: "text-base font-semibold text-
|
|
358
|
+
className: "text-base font-semibold text-text-primary",
|
|
354
359
|
children: "Recent Orders"
|
|
355
360
|
}), /* @__PURE__ */ O("button", {
|
|
356
361
|
type: "button",
|
|
357
362
|
onClick: () => i("/cart-owner/orders"),
|
|
358
|
-
className: "text-xs text-
|
|
363
|
+
className: "text-xs text-text-secondary hover:text-text-primary transition-colors",
|
|
359
364
|
children: "View All Orders"
|
|
360
365
|
})]
|
|
361
366
|
}), /* @__PURE__ */ O("div", {
|
|
362
367
|
className: "space-y-3",
|
|
363
|
-
children:
|
|
364
|
-
className: "rounded-lg border border-border bg-
|
|
368
|
+
children: H.map((e) => /* @__PURE__ */ O("div", {
|
|
369
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
|
|
365
370
|
children: /* @__PURE__ */ k("div", {
|
|
366
371
|
className: "flex flex-col lg:flex-row lg:items-start lg:justify-between gap-3",
|
|
367
372
|
children: [/* @__PURE__ */ k("div", {
|
|
@@ -371,28 +376,28 @@ var A = {
|
|
|
371
376
|
className: "flex flex-wrap items-center gap-2 mb-1",
|
|
372
377
|
children: [
|
|
373
378
|
/* @__PURE__ */ k("h4", {
|
|
374
|
-
className: "font-semibold text-
|
|
379
|
+
className: "font-semibold text-text-primary text-sm",
|
|
375
380
|
children: ["#", e.id]
|
|
376
381
|
}),
|
|
377
382
|
/* @__PURE__ */ O("span", {
|
|
378
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize",
|
|
383
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize", z[e.status] || "bg-bg-sunken text-text-secondary"),
|
|
379
384
|
children: e.status
|
|
380
385
|
}),
|
|
381
|
-
e.priority === "urgent" && /* @__PURE__ */ O(s, { className: "h-4 w-4 text-
|
|
386
|
+
e.priority === "urgent" && /* @__PURE__ */ O(s, { className: "h-4 w-4 text-status-error-text" })
|
|
382
387
|
]
|
|
383
388
|
}),
|
|
384
389
|
/* @__PURE__ */ k("p", {
|
|
385
|
-
className: "text-xs text-
|
|
390
|
+
className: "text-xs text-text-secondary mb-1",
|
|
386
391
|
children: ["Customer: ", e.customerName]
|
|
387
392
|
}),
|
|
388
393
|
/* @__PURE__ */ k("p", {
|
|
389
|
-
className: "text-xs text-
|
|
394
|
+
className: "text-xs text-text-secondary mb-1 truncate",
|
|
390
395
|
children: ["Items: ", e.items.join(", ")]
|
|
391
396
|
}),
|
|
392
397
|
/* @__PURE__ */ k("div", {
|
|
393
|
-
className: "flex flex-wrap items-center gap-3 text-xs text-
|
|
398
|
+
className: "flex flex-wrap items-center gap-3 text-xs text-text-secondary",
|
|
394
399
|
children: [/* @__PURE__ */ O("span", {
|
|
395
|
-
className: "font-semibold text-
|
|
400
|
+
className: "font-semibold text-text-primary",
|
|
396
401
|
children: r(e.total, { minimumFractionDigits: 0 })
|
|
397
402
|
}), /* @__PURE__ */ k("span", {
|
|
398
403
|
className: "flex items-center gap-1",
|
|
@@ -406,19 +411,19 @@ var A = {
|
|
|
406
411
|
/* @__PURE__ */ k("button", {
|
|
407
412
|
type: "button",
|
|
408
413
|
onClick: () => i("/cart-owner/orders"),
|
|
409
|
-
className: "inline-flex items-center gap-1 rounded-md border border-border px-3 py-1.5 text-xs font-medium text-
|
|
414
|
+
className: "inline-flex items-center gap-1 rounded-md border border-border-seam px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
410
415
|
children: [/* @__PURE__ */ O(h, { className: "h-3 w-3" }), "View"]
|
|
411
416
|
}),
|
|
412
417
|
e.status === "pending" && /* @__PURE__ */ k("button", {
|
|
413
418
|
type: "button",
|
|
414
|
-
onClick: () =>
|
|
415
|
-
className: "inline-flex items-center gap-1 rounded-md bg-
|
|
419
|
+
onClick: () => K(e.id),
|
|
420
|
+
className: "inline-flex items-center gap-1 rounded-md bg-status-success-bg/10 px-3 py-1.5 text-xs font-medium text-status-success-text hover:bg-status-success-bg/20 transition-colors",
|
|
416
421
|
children: [/* @__PURE__ */ O(d, { className: "h-3 w-3" }), "Accept"]
|
|
417
422
|
}),
|
|
418
423
|
e.status === "preparing" && /* @__PURE__ */ k("button", {
|
|
419
424
|
type: "button",
|
|
420
|
-
onClick: () =>
|
|
421
|
-
className: "inline-flex items-center gap-1 rounded-md bg-
|
|
425
|
+
onClick: () => q(e.id),
|
|
426
|
+
className: "inline-flex items-center gap-1 rounded-md bg-status-info-bg/10 px-3 py-1.5 text-xs font-medium text-status-info-text hover:bg-status-info-bg/20 transition-colors",
|
|
422
427
|
children: [/* @__PURE__ */ O(d, { className: "h-3 w-3" }), "Mark Ready"]
|
|
423
428
|
})
|
|
424
429
|
]
|
|
@@ -427,16 +432,16 @@ var A = {
|
|
|
427
432
|
}, e.id))
|
|
428
433
|
})] }),
|
|
429
434
|
/* @__PURE__ */ k("div", {
|
|
430
|
-
className: "rounded-lg border border-border bg-
|
|
435
|
+
className: "rounded-lg border border-border-seam bg-bg-surface shadow-sm",
|
|
431
436
|
children: [/* @__PURE__ */ k("div", {
|
|
432
|
-
className: "flex items-center justify-between border-b border-border px-5 py-4",
|
|
437
|
+
className: "flex items-center justify-between border-b border-border-seam px-5 py-4",
|
|
433
438
|
children: [/* @__PURE__ */ O("h3", {
|
|
434
|
-
className: "text-base font-semibold text-
|
|
439
|
+
className: "text-base font-semibold text-text-primary",
|
|
435
440
|
children: "Revenue (Last 7 Days)"
|
|
436
441
|
}), /* @__PURE__ */ O("button", {
|
|
437
442
|
type: "button",
|
|
438
443
|
onClick: () => i("/cart-owner/analytics"),
|
|
439
|
-
className: "text-xs text-
|
|
444
|
+
className: "text-xs text-text-secondary hover:text-text-primary transition-colors",
|
|
440
445
|
children: "View Analytics"
|
|
441
446
|
})]
|
|
442
447
|
}), /* @__PURE__ */ O("div", {
|
|
@@ -444,32 +449,32 @@ var A = {
|
|
|
444
449
|
children: /* @__PURE__ */ k("table", {
|
|
445
450
|
className: "w-full text-sm",
|
|
446
451
|
children: [/* @__PURE__ */ O("thead", { children: /* @__PURE__ */ k("tr", {
|
|
447
|
-
className: "border-b border-border",
|
|
452
|
+
className: "border-b border-border-seam",
|
|
448
453
|
children: [
|
|
449
454
|
/* @__PURE__ */ O("th", {
|
|
450
|
-
className: "px-5 py-3 text-left font-medium text-
|
|
455
|
+
className: "px-5 py-3 text-left font-medium text-text-secondary",
|
|
451
456
|
children: "Date"
|
|
452
457
|
}),
|
|
453
458
|
/* @__PURE__ */ O("th", {
|
|
454
|
-
className: "px-5 py-3 text-right font-medium text-
|
|
459
|
+
className: "px-5 py-3 text-right font-medium text-text-secondary",
|
|
455
460
|
children: "Orders"
|
|
456
461
|
}),
|
|
457
462
|
/* @__PURE__ */ O("th", {
|
|
458
|
-
className: "px-5 py-3 text-right font-medium text-
|
|
463
|
+
className: "px-5 py-3 text-right font-medium text-text-secondary",
|
|
459
464
|
children: "Revenue"
|
|
460
465
|
}),
|
|
461
466
|
/* @__PURE__ */ O("th", {
|
|
462
|
-
className: "px-5 py-3 text-left font-medium text-
|
|
467
|
+
className: "px-5 py-3 text-left font-medium text-text-secondary",
|
|
463
468
|
children: "Trend"
|
|
464
469
|
})
|
|
465
470
|
]
|
|
466
|
-
}) }), /* @__PURE__ */ O("tbody", { children:
|
|
467
|
-
let n = Math.max(...
|
|
471
|
+
}) }), /* @__PURE__ */ O("tbody", { children: L.map((e, t) => {
|
|
472
|
+
let n = Math.max(...L.map((e) => e.revenue)), i = e.revenue / n * 100;
|
|
468
473
|
return /* @__PURE__ */ k("tr", {
|
|
469
|
-
className: "border-b border-border last:border-0",
|
|
474
|
+
className: "border-b border-border-seam last:border-0",
|
|
470
475
|
children: [
|
|
471
476
|
/* @__PURE__ */ O("td", {
|
|
472
|
-
className: "px-5 py-3 text-
|
|
477
|
+
className: "px-5 py-3 text-text-primary text-xs",
|
|
473
478
|
children: new Date(e.date).toLocaleDateString("en-IN", {
|
|
474
479
|
day: "2-digit",
|
|
475
480
|
month: "short",
|
|
@@ -477,19 +482,19 @@ var A = {
|
|
|
477
482
|
})
|
|
478
483
|
}),
|
|
479
484
|
/* @__PURE__ */ O("td", {
|
|
480
|
-
className: "px-5 py-3 text-right text-
|
|
485
|
+
className: "px-5 py-3 text-right text-text-primary",
|
|
481
486
|
children: e.orders
|
|
482
487
|
}),
|
|
483
488
|
/* @__PURE__ */ O("td", {
|
|
484
|
-
className: "px-5 py-3 text-right font-medium text-
|
|
489
|
+
className: "px-5 py-3 text-right font-medium text-text-primary",
|
|
485
490
|
children: r(e.revenue, { minimumFractionDigits: 0 })
|
|
486
491
|
}),
|
|
487
492
|
/* @__PURE__ */ O("td", {
|
|
488
493
|
className: "px-5 py-3 w-40",
|
|
489
494
|
children: /* @__PURE__ */ O("div", {
|
|
490
|
-
className: "h-4 rounded bg-
|
|
495
|
+
className: "h-4 rounded bg-bg-sunken overflow-hidden",
|
|
491
496
|
children: /* @__PURE__ */ O("div", {
|
|
492
|
-
className: "h-full rounded bg-
|
|
497
|
+
className: "h-full rounded bg-status-info-bg/60",
|
|
493
498
|
style: { width: `${i}%` }
|
|
494
499
|
})
|
|
495
500
|
})
|
|
@@ -501,40 +506,40 @@ var A = {
|
|
|
501
506
|
})]
|
|
502
507
|
}),
|
|
503
508
|
/* @__PURE__ */ k("div", {
|
|
504
|
-
className: "rounded-lg border border-border bg-
|
|
509
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
505
510
|
children: [/* @__PURE__ */ O("h3", {
|
|
506
|
-
className: "text-base font-semibold text-
|
|
511
|
+
className: "text-base font-semibold text-text-primary mb-4",
|
|
507
512
|
children: "This Month Summary"
|
|
508
513
|
}), /* @__PURE__ */ k("div", {
|
|
509
514
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
510
515
|
children: [
|
|
511
516
|
/* @__PURE__ */ k("div", {
|
|
512
|
-
className: "text-center p-3 rounded-lg bg-
|
|
517
|
+
className: "text-center p-3 rounded-lg bg-bg-sunken/50",
|
|
513
518
|
children: [/* @__PURE__ */ O("div", {
|
|
514
|
-
className: "text-xl font-bold text-
|
|
515
|
-
children: r(
|
|
519
|
+
className: "text-xl font-bold text-text-primary",
|
|
520
|
+
children: r(M.totalRevenue, { minimumFractionDigits: 0 })
|
|
516
521
|
}), /* @__PURE__ */ O("div", {
|
|
517
|
-
className: "text-xs text-
|
|
522
|
+
className: "text-xs text-text-secondary mt-1",
|
|
518
523
|
children: "Total Revenue"
|
|
519
524
|
})]
|
|
520
525
|
}),
|
|
521
526
|
/* @__PURE__ */ k("div", {
|
|
522
|
-
className: "text-center p-3 rounded-lg bg-
|
|
527
|
+
className: "text-center p-3 rounded-lg bg-bg-sunken/50",
|
|
523
528
|
children: [/* @__PURE__ */ O("div", {
|
|
524
|
-
className: "text-xl font-bold text-
|
|
525
|
-
children:
|
|
529
|
+
className: "text-xl font-bold text-text-primary",
|
|
530
|
+
children: M.totalOrders
|
|
526
531
|
}), /* @__PURE__ */ O("div", {
|
|
527
|
-
className: "text-xs text-
|
|
532
|
+
className: "text-xs text-text-secondary mt-1",
|
|
528
533
|
children: "Total Orders"
|
|
529
534
|
})]
|
|
530
535
|
}),
|
|
531
536
|
/* @__PURE__ */ k("div", {
|
|
532
|
-
className: "text-center p-3 rounded-lg bg-
|
|
537
|
+
className: "text-center p-3 rounded-lg bg-bg-sunken/50",
|
|
533
538
|
children: [/* @__PURE__ */ O("div", {
|
|
534
|
-
className: "text-xl font-bold text-
|
|
535
|
-
children:
|
|
539
|
+
className: "text-xl font-bold text-text-primary",
|
|
540
|
+
children: M.customerCount
|
|
536
541
|
}), /* @__PURE__ */ O("div", {
|
|
537
|
-
className: "text-xs text-
|
|
542
|
+
className: "text-xs text-text-secondary mt-1",
|
|
538
543
|
children: "Unique Customers"
|
|
539
544
|
})]
|
|
540
545
|
})
|
|
@@ -546,27 +551,27 @@ var A = {
|
|
|
546
551
|
className: "space-y-6",
|
|
547
552
|
children: [
|
|
548
553
|
/* @__PURE__ */ k("div", {
|
|
549
|
-
className: "rounded-lg border border-border bg-
|
|
554
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
550
555
|
children: [/* @__PURE__ */ k("div", {
|
|
551
556
|
className: "flex items-center justify-between mb-4",
|
|
552
557
|
children: [/* @__PURE__ */ k("h3", {
|
|
553
|
-
className: "text-base font-semibold text-
|
|
558
|
+
className: "text-base font-semibold text-text-primary flex items-center gap-2",
|
|
554
559
|
children: [/* @__PURE__ */ O(u, { className: "h-4 w-4" }), "Notifications"]
|
|
555
560
|
}), /* @__PURE__ */ O("span", {
|
|
556
|
-
className: "inline-flex items-center justify-center rounded-full bg-
|
|
557
|
-
children:
|
|
561
|
+
className: "inline-flex items-center justify-center rounded-full bg-status-error-text text-text-inverse text-[10px] font-bold h-5 w-5",
|
|
562
|
+
children: I.length
|
|
558
563
|
})]
|
|
559
564
|
}), /* @__PURE__ */ O("div", {
|
|
560
565
|
className: "space-y-3",
|
|
561
|
-
children:
|
|
566
|
+
children: I.map((e) => /* @__PURE__ */ k("div", {
|
|
562
567
|
className: "flex items-start gap-2",
|
|
563
|
-
children: [/* @__PURE__ */ O(o, { className: t("h-4 w-4 mt-0.5 shrink-0",
|
|
568
|
+
children: [/* @__PURE__ */ O(o, { className: t("h-4 w-4 mt-0.5 shrink-0", V[e.type]) }), /* @__PURE__ */ k("div", {
|
|
564
569
|
className: "min-w-0",
|
|
565
570
|
children: [/* @__PURE__ */ O("p", {
|
|
566
|
-
className: "text-xs text-
|
|
571
|
+
className: "text-xs text-text-primary leading-tight",
|
|
567
572
|
children: e.message
|
|
568
573
|
}), /* @__PURE__ */ O("p", {
|
|
569
|
-
className: "text-[10px] text-
|
|
574
|
+
className: "text-[10px] text-text-secondary mt-0.5",
|
|
570
575
|
children: e.time
|
|
571
576
|
})]
|
|
572
577
|
})]
|
|
@@ -574,73 +579,73 @@ var A = {
|
|
|
574
579
|
})]
|
|
575
580
|
}),
|
|
576
581
|
/* @__PURE__ */ k("div", {
|
|
577
|
-
className: "rounded-lg border border-border bg-
|
|
582
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
578
583
|
children: [/* @__PURE__ */ k("h3", {
|
|
579
|
-
className: "text-base font-semibold text-
|
|
580
|
-
children: [/* @__PURE__ */ O(g, { className: "h-4 w-4 text-
|
|
584
|
+
className: "text-base font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
585
|
+
children: [/* @__PURE__ */ O(g, { className: "h-4 w-4 text-status-warning-text" }), "Top Selling Items"]
|
|
581
586
|
}), /* @__PURE__ */ O("div", {
|
|
582
587
|
className: "space-y-3",
|
|
583
|
-
children:
|
|
588
|
+
children: P.map((e, t) => /* @__PURE__ */ k("div", {
|
|
584
589
|
className: "flex items-center justify-between",
|
|
585
590
|
children: [/* @__PURE__ */ k("div", {
|
|
586
591
|
className: "flex items-center gap-2 min-w-0",
|
|
587
592
|
children: [/* @__PURE__ */ O("span", {
|
|
588
|
-
className: "text-sm font-bold text-
|
|
593
|
+
className: "text-sm font-bold text-text-secondary w-5",
|
|
589
594
|
children: t + 1
|
|
590
595
|
}), /* @__PURE__ */ k("div", {
|
|
591
596
|
className: "min-w-0",
|
|
592
597
|
children: [/* @__PURE__ */ O("p", {
|
|
593
|
-
className: "text-xs font-medium text-
|
|
598
|
+
className: "text-xs font-medium text-text-primary truncate",
|
|
594
599
|
children: e.name
|
|
595
600
|
}), /* @__PURE__ */ k("p", {
|
|
596
|
-
className: "text-[10px] text-
|
|
601
|
+
className: "text-[10px] text-text-secondary",
|
|
597
602
|
children: [e.quantity, " sold"]
|
|
598
603
|
})]
|
|
599
604
|
})]
|
|
600
605
|
}), /* @__PURE__ */ O("span", {
|
|
601
|
-
className: "text-xs font-semibold text-
|
|
606
|
+
className: "text-xs font-semibold text-text-primary",
|
|
602
607
|
children: r(e.revenue, { minimumFractionDigits: 0 })
|
|
603
608
|
})]
|
|
604
609
|
}, e.name))
|
|
605
610
|
})]
|
|
606
611
|
}),
|
|
607
612
|
/* @__PURE__ */ k("div", {
|
|
608
|
-
className: "rounded-lg border border-border bg-
|
|
613
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
609
614
|
children: [/* @__PURE__ */ k("div", {
|
|
610
615
|
className: "flex items-center justify-between mb-4",
|
|
611
616
|
children: [/* @__PURE__ */ k("h3", {
|
|
612
|
-
className: "text-base font-semibold text-
|
|
617
|
+
className: "text-base font-semibold text-text-primary flex items-center gap-2",
|
|
613
618
|
children: [/* @__PURE__ */ O(D, { className: "h-4 w-4" }), "Staff Overview"]
|
|
614
619
|
}), /* @__PURE__ */ O("button", {
|
|
615
620
|
type: "button",
|
|
616
621
|
onClick: () => i("/cart-owner/staff"),
|
|
617
|
-
className: "text-xs text-
|
|
622
|
+
className: "text-xs text-text-secondary hover:text-text-primary transition-colors",
|
|
618
623
|
children: "Manage"
|
|
619
624
|
})]
|
|
620
625
|
}), /* @__PURE__ */ O("div", {
|
|
621
626
|
className: "space-y-3",
|
|
622
|
-
children:
|
|
627
|
+
children: F.map((e) => /* @__PURE__ */ k("div", {
|
|
623
628
|
className: "flex items-center justify-between",
|
|
624
629
|
children: [/* @__PURE__ */ k("div", {
|
|
625
630
|
className: "flex items-center gap-2",
|
|
626
|
-
children: [/* @__PURE__ */ O("div", { className: t("w-2 h-2 rounded-full",
|
|
627
|
-
className: "text-xs font-medium text-
|
|
631
|
+
children: [/* @__PURE__ */ O("div", { className: t("w-2 h-2 rounded-full", B[e.status]) }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
|
|
632
|
+
className: "text-xs font-medium text-text-primary",
|
|
628
633
|
children: e.name
|
|
629
634
|
}), /* @__PURE__ */ O("p", {
|
|
630
|
-
className: "text-[10px] text-
|
|
635
|
+
className: "text-[10px] text-text-secondary",
|
|
631
636
|
children: e.role
|
|
632
637
|
})] })]
|
|
633
638
|
}), /* @__PURE__ */ O("span", {
|
|
634
|
-
className: "text-[10px] capitalize text-
|
|
639
|
+
className: "text-[10px] capitalize text-text-secondary",
|
|
635
640
|
children: e.status.replace("-", " ")
|
|
636
641
|
})]
|
|
637
642
|
}, e.name))
|
|
638
643
|
})]
|
|
639
644
|
}),
|
|
640
645
|
/* @__PURE__ */ k("div", {
|
|
641
|
-
className: "rounded-lg border border-border bg-
|
|
646
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
642
647
|
children: [/* @__PURE__ */ O("h3", {
|
|
643
|
-
className: "text-base font-semibold text-
|
|
648
|
+
className: "text-base font-semibold text-text-primary mb-4",
|
|
644
649
|
children: "Quick Stats"
|
|
645
650
|
}), /* @__PURE__ */ k("div", {
|
|
646
651
|
className: "space-y-3",
|
|
@@ -648,40 +653,40 @@ var A = {
|
|
|
648
653
|
/* @__PURE__ */ k("div", {
|
|
649
654
|
className: "flex items-center justify-between",
|
|
650
655
|
children: [/* @__PURE__ */ O("span", {
|
|
651
|
-
className: "text-xs text-
|
|
656
|
+
className: "text-xs text-text-secondary",
|
|
652
657
|
children: "Active Offerings"
|
|
653
658
|
}), /* @__PURE__ */ O("span", {
|
|
654
|
-
className: "text-sm font-semibold text-
|
|
655
|
-
children:
|
|
659
|
+
className: "text-sm font-semibold text-text-primary",
|
|
660
|
+
children: M.activeOfferings
|
|
656
661
|
})]
|
|
657
662
|
}),
|
|
658
663
|
/* @__PURE__ */ k("div", {
|
|
659
664
|
className: "flex items-center justify-between",
|
|
660
665
|
children: [/* @__PURE__ */ O("span", {
|
|
661
|
-
className: "text-xs text-
|
|
666
|
+
className: "text-xs text-text-secondary",
|
|
662
667
|
children: "Customer Rating"
|
|
663
668
|
}), /* @__PURE__ */ k("span", {
|
|
664
|
-
className: "text-sm font-semibold text-
|
|
665
|
-
children: [/* @__PURE__ */ O(C, { className: "h-3 w-3 text-
|
|
669
|
+
className: "text-sm font-semibold text-text-primary flex items-center gap-1",
|
|
670
|
+
children: [/* @__PURE__ */ O(C, { className: "h-3 w-3 text-status-warning-text fill-status-warning-text" }), M.rating]
|
|
666
671
|
})]
|
|
667
672
|
}),
|
|
668
673
|
/* @__PURE__ */ k("div", {
|
|
669
674
|
className: "flex items-center justify-between",
|
|
670
675
|
children: [/* @__PURE__ */ O("span", {
|
|
671
|
-
className: "text-xs text-
|
|
676
|
+
className: "text-xs text-text-secondary",
|
|
672
677
|
children: "Total Customers"
|
|
673
678
|
}), /* @__PURE__ */ O("span", {
|
|
674
|
-
className: "text-sm font-semibold text-
|
|
675
|
-
children:
|
|
679
|
+
className: "text-sm font-semibold text-text-primary",
|
|
680
|
+
children: M.customerCount
|
|
676
681
|
})]
|
|
677
682
|
})
|
|
678
683
|
]
|
|
679
684
|
})]
|
|
680
685
|
}),
|
|
681
686
|
/* @__PURE__ */ k("div", {
|
|
682
|
-
className: "rounded-lg border border-border bg-
|
|
687
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
683
688
|
children: [/* @__PURE__ */ O("h3", {
|
|
684
|
-
className: "text-base font-semibold text-
|
|
689
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
685
690
|
children: "Business Settings"
|
|
686
691
|
}), /* @__PURE__ */ O("div", {
|
|
687
692
|
className: "space-y-2",
|
|
@@ -706,41 +711,41 @@ var A = {
|
|
|
706
711
|
return /* @__PURE__ */ k("button", {
|
|
707
712
|
type: "button",
|
|
708
713
|
onClick: () => i(e.path),
|
|
709
|
-
className: "w-full flex items-center justify-between rounded-md border border-border px-3 py-2 text-xs font-medium text-
|
|
714
|
+
className: "w-full flex items-center justify-between rounded-md border border-border-seam px-3 py-2 text-xs font-medium text-text-primary hover:bg-bg-sunken transition-colors",
|
|
710
715
|
children: [/* @__PURE__ */ k("span", {
|
|
711
716
|
className: "flex items-center gap-2",
|
|
712
717
|
children: [/* @__PURE__ */ O(t, { className: "h-3.5 w-3.5" }), e.label]
|
|
713
|
-
}), /* @__PURE__ */ O(f, { className: "h-3 w-3 text-
|
|
718
|
+
}), /* @__PURE__ */ O(f, { className: "h-3 w-3 text-text-secondary" })]
|
|
714
719
|
}, e.label);
|
|
715
720
|
})
|
|
716
721
|
})]
|
|
717
722
|
}),
|
|
718
723
|
/* @__PURE__ */ k("div", {
|
|
719
|
-
className: "rounded-lg border border-border bg-
|
|
724
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
720
725
|
children: [/* @__PURE__ */ O("h3", {
|
|
721
|
-
className: "text-base font-semibold text-
|
|
726
|
+
className: "text-base font-semibold text-text-primary mb-3",
|
|
722
727
|
children: "Recent Activity"
|
|
723
728
|
}), /* @__PURE__ */ k("div", {
|
|
724
729
|
className: "space-y-2 text-xs",
|
|
725
730
|
children: [
|
|
726
731
|
/* @__PURE__ */ k("div", {
|
|
727
732
|
className: "flex items-center gap-2",
|
|
728
|
-
children: [/* @__PURE__ */ O(o, { className: "h-3.5 w-3.5 text-
|
|
729
|
-
className: "text-
|
|
733
|
+
children: [/* @__PURE__ */ O(o, { className: "h-3.5 w-3.5 text-status-success-text" }), /* @__PURE__ */ O("span", {
|
|
734
|
+
className: "text-text-secondary",
|
|
730
735
|
children: "Order #ORD-003 delivered"
|
|
731
736
|
})]
|
|
732
737
|
}),
|
|
733
738
|
/* @__PURE__ */ k("div", {
|
|
734
739
|
className: "flex items-center gap-2",
|
|
735
|
-
children: [/* @__PURE__ */ O(o, { className: "h-3.5 w-3.5 text-
|
|
736
|
-
className: "text-
|
|
740
|
+
children: [/* @__PURE__ */ O(o, { className: "h-3.5 w-3.5 text-status-info-text" }), /* @__PURE__ */ O("span", {
|
|
741
|
+
className: "text-text-secondary",
|
|
737
742
|
children: "Inventory updated"
|
|
738
743
|
})]
|
|
739
744
|
}),
|
|
740
745
|
/* @__PURE__ */ k("div", {
|
|
741
746
|
className: "flex items-center gap-2",
|
|
742
|
-
children: [/* @__PURE__ */ O(o, { className: "h-3.5 w-3.5 text-
|
|
743
|
-
className: "text-
|
|
747
|
+
children: [/* @__PURE__ */ O(o, { className: "h-3.5 w-3.5 text-status-warning-text" }), /* @__PURE__ */ O("span", {
|
|
748
|
+
className: "text-text-secondary",
|
|
744
749
|
children: "New customer review"
|
|
745
750
|
})]
|
|
746
751
|
})
|
|
@@ -755,6 +760,6 @@ var A = {
|
|
|
755
760
|
});
|
|
756
761
|
};
|
|
757
762
|
//#endregion
|
|
758
|
-
export {
|
|
763
|
+
export { H as CartOwnerDashboard };
|
|
759
764
|
|
|
760
765
|
//# sourceMappingURL=CartOwnerDashboard.js.map
|