@burdenoff/microfe-subscriberbot 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/subscriberbot/components/EmptyState.js +17 -10
- package/dist/subscriberbot/components/EmptyState.js.map +1 -1
- package/dist/subscriberbot/components/InvestmentCard.js +23 -22
- package/dist/subscriberbot/components/InvestmentCard.js.map +1 -1
- package/dist/subscriberbot/components/MetricsCard.js +15 -12
- 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 +25 -13
- package/dist/subscriberbot/components/StatusBadge.js.map +1 -1
- package/dist/subscriberbot/context/SubscriberBotContext.js.map +1 -1
- package/dist/subscriberbot/pages/HomePage.js +72 -63
- package/dist/subscriberbot/pages/HomePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js +106 -100
- package/dist/subscriberbot/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminDashboard.js +125 -85
- package/dist/subscriberbot/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js +51 -45
- package/dist/subscriberbot/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js +246 -241
- package/dist/subscriberbot/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js +131 -129
- package/dist/subscriberbot/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js +247 -242
- package/dist/subscriberbot/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/CartManagementPage.js +307 -302
- package/dist/subscriberbot/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/admin/UserManagementPage.js +308 -303
- package/dist/subscriberbot/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js +89 -84
- package/dist/subscriberbot/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js +269 -264
- package/dist/subscriberbot/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js +269 -227
- package/dist/subscriberbot/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js +191 -186
- package/dist/subscriberbot/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js +168 -166
- package/dist/subscriberbot/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js +344 -347
- package/dist/subscriberbot/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js +270 -272
- package/dist/subscriberbot/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js +294 -289
- package/dist/subscriberbot/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/HelpSupportPage.js +156 -158
- package/dist/subscriberbot/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js +94 -87
- package/dist/subscriberbot/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/subscriberbot/pages/common/SettingsPage.js +749 -740
- package/dist/subscriberbot/pages/common/SettingsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js +357 -324
- package/dist/subscriberbot/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDetailPage.js +281 -247
- package/dist/subscriberbot/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js +106 -98
- package/dist/subscriberbot/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CheckoutPage.js +235 -238
- package/dist/subscriberbot/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js +426 -390
- package/dist/subscriberbot/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js +488 -479
- package/dist/subscriberbot/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js +522 -512
- package/dist/subscriberbot/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/FavoritesPage.js +73 -66
- package/dist/subscriberbot/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js +75 -67
- package/dist/subscriberbot/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js +82 -76
- package/dist/subscriberbot/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js +100 -93
- package/dist/subscriberbot/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/ReviewsPage.js +97 -90
- package/dist/subscriberbot/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js +86 -79
- package/dist/subscriberbot/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js +330 -293
- package/dist/subscriberbot/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js +269 -261
- package/dist/subscriberbot/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js +97 -91
- package/dist/subscriberbot/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js +354 -322
- package/dist/subscriberbot/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js +118 -111
- package/dist/subscriberbot/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js +75 -69
- package/dist/subscriberbot/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js +435 -430
- package/dist/subscriberbot/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js +328 -289
- package/dist/subscriberbot/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js +135 -103
- package/dist/subscriberbot/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js +120 -114
- package/dist/subscriberbot/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js +125 -120
- package/dist/subscriberbot/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js +354 -344
- package/dist/subscriberbot/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -4,10 +4,11 @@ import { PageLayout as n } from "../../components/PageLayout.js";
|
|
|
4
4
|
import { formatCurrency as r } from "../../utils/formatters.js";
|
|
5
5
|
import { mockAdminAnalytics as i } from "../../mocks/data.js";
|
|
6
6
|
import { useState as a } from "react";
|
|
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,
|
|
8
|
-
import { jsx as
|
|
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, Store as w, TrendingDown as T, TrendingUp as E, UserCheck as D, Users as O } from "lucide-react";
|
|
8
|
+
import { jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
9
|
+
import { EmphasisPanel as j, GradientText as M, NextSteps as N, PagePurpose as P } from "@burdenoff/fe-libs/ui";
|
|
9
10
|
//#region src/subscriberbot/pages/cart-owner/CartOwnerDashboard.tsx
|
|
10
|
-
var
|
|
11
|
+
var F = {
|
|
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
|
+
}, I = [
|
|
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
|
+
], L = [
|
|
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
|
+
], R = [
|
|
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
|
+
], z = [
|
|
112
113
|
{
|
|
113
114
|
id: "1",
|
|
114
115
|
message: "New order #ORD-004 received",
|
|
@@ -139,153 +140,194 @@ var A = {
|
|
|
139
140
|
type: "warning",
|
|
140
141
|
time: "1 hr ago"
|
|
141
142
|
}
|
|
142
|
-
],
|
|
143
|
+
], B = i.orderTrends.slice(0, 7), V = () => {
|
|
143
144
|
let e = (/* @__PURE__ */ new Date()).getHours();
|
|
144
145
|
return e < 12 ? "Good Morning" : e < 17 ? "Good Afternoon" : "Good Evening";
|
|
145
|
-
},
|
|
146
|
-
pending: "bg-
|
|
147
|
-
preparing: "bg-
|
|
148
|
-
ready: "bg-
|
|
149
|
-
delivered: "bg-
|
|
146
|
+
}, H = {
|
|
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",
|
|
150
151
|
cancelled: "bg-bg-sunken text-text-secondary"
|
|
151
|
-
},
|
|
152
|
-
active: "bg-
|
|
153
|
-
"on-break": "bg-
|
|
152
|
+
}, U = {
|
|
153
|
+
active: "bg-status-success-text",
|
|
154
|
+
"on-break": "bg-status-warning-text",
|
|
154
155
|
"off-duty": "bg-muted-foreground"
|
|
155
|
-
},
|
|
156
|
-
info: "text-
|
|
157
|
-
warning: "text-
|
|
158
|
-
success: "text-
|
|
159
|
-
},
|
|
160
|
-
let { navigateTo: i } = e(), [
|
|
156
|
+
}, W = {
|
|
157
|
+
info: "text-status-info-text",
|
|
158
|
+
warning: "text-status-warning-text",
|
|
159
|
+
success: "text-status-success-text"
|
|
160
|
+
}, G = () => {
|
|
161
|
+
let { navigateTo: i } = e(), [G, K] = a(I), [q, J] = 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
|
+
}), Y = (e) => {
|
|
167
|
+
K((t) => t.map((t) => t.id === e ? {
|
|
167
168
|
...t,
|
|
168
169
|
status: "preparing"
|
|
169
170
|
} : t));
|
|
170
|
-
},
|
|
171
|
-
|
|
171
|
+
}, X = (e) => {
|
|
172
|
+
K((t) => t.map((t) => t.id === e ? {
|
|
172
173
|
...t,
|
|
173
174
|
status: "ready"
|
|
174
175
|
} : t));
|
|
175
176
|
};
|
|
176
|
-
return /* @__PURE__ */
|
|
177
|
-
title: /* @__PURE__ */
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
return /* @__PURE__ */ k(n, {
|
|
178
|
+
title: /* @__PURE__ */ A("span", { children: [
|
|
179
|
+
/* @__PURE__ */ k(M, {
|
|
180
|
+
as: "span",
|
|
181
|
+
children: V()
|
|
182
|
+
}),
|
|
183
|
+
",",
|
|
184
|
+
" ",
|
|
185
|
+
/* @__PURE__ */ k("span", {
|
|
181
186
|
className: "text-text-secondary font-normal",
|
|
182
187
|
children: "Rajesh"
|
|
183
188
|
})
|
|
184
189
|
] }),
|
|
185
190
|
description: "Manage your service provider operations",
|
|
186
|
-
actions: /* @__PURE__ */
|
|
191
|
+
actions: /* @__PURE__ */ A("button", {
|
|
187
192
|
type: "button",
|
|
188
193
|
onClick: () => i("/cart-owner/orders"),
|
|
189
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
|
-
children: ["View All Orders", /* @__PURE__ */
|
|
195
|
+
children: ["View All Orders", /* @__PURE__ */ k(c, { className: "h-4 w-4" })]
|
|
191
196
|
}),
|
|
192
|
-
children: /* @__PURE__ */
|
|
197
|
+
children: /* @__PURE__ */ A("div", {
|
|
193
198
|
className: "space-y-6",
|
|
194
199
|
children: [
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
|
|
197
|
-
children:
|
|
200
|
+
/* @__PURE__ */ k(P, {
|
|
201
|
+
icon: /* @__PURE__ */ k(w, { className: "h-4 w-4" }),
|
|
202
|
+
children: "Your daily command center for running the cart. Open or close service, see live orders as they come in, accept and mark them ready, and track today's revenue against yesterday. Glance at top-selling items and staff status, then drill into analytics or inventory when you want to dig deeper."
|
|
203
|
+
}),
|
|
204
|
+
/* @__PURE__ */ k(N, {
|
|
205
|
+
storageKey: "subscriberbot-cart-owner-dashboard",
|
|
206
|
+
steps: [
|
|
207
|
+
{
|
|
208
|
+
id: "manage-orders",
|
|
209
|
+
label: "Work through incoming orders",
|
|
210
|
+
description: "Accept, prepare and mark orders ready so customers stay informed.",
|
|
211
|
+
icon: /* @__PURE__ */ k(S, { className: "h-4 w-4" }),
|
|
212
|
+
onClick: () => i("/cart-owner/orders")
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
id: "update-inventory",
|
|
216
|
+
label: "Update your offerings & stock",
|
|
217
|
+
description: "Add items, set prices and flag anything out of stock.",
|
|
218
|
+
icon: /* @__PURE__ */ k(y, { className: "h-4 w-4" }),
|
|
219
|
+
onClick: () => i("/cart-owner/inventory")
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
id: "review-analytics",
|
|
223
|
+
label: "Review your analytics",
|
|
224
|
+
description: "Understand revenue, peak hours and what sells best.",
|
|
225
|
+
icon: /* @__PURE__ */ k(l, { className: "h-4 w-4" }),
|
|
226
|
+
onClick: () => i("/cart-owner/analytics")
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: "manage-staff",
|
|
230
|
+
label: "Manage your staff",
|
|
231
|
+
description: "Assign roles and keep your team roster up to date.",
|
|
232
|
+
icon: /* @__PURE__ */ k(O, { className: "h-4 w-4" }),
|
|
233
|
+
onClick: () => i("/cart-owner/staff")
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
}),
|
|
237
|
+
/* @__PURE__ */ k(j, {
|
|
238
|
+
className: t("border-l-4", q.isOpen ? "border-l-status-success-border" : "border-l-status-error-border"),
|
|
239
|
+
children: /* @__PURE__ */ A("div", {
|
|
198
240
|
className: "flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4",
|
|
199
|
-
children: [/* @__PURE__ */
|
|
241
|
+
children: [/* @__PURE__ */ A("div", {
|
|
200
242
|
className: "flex items-start gap-3",
|
|
201
|
-
children: [/* @__PURE__ */
|
|
243
|
+
children: [/* @__PURE__ */ k("div", { className: t("w-3 h-3 rounded-full mt-1 shrink-0", q.isOpen ? "bg-status-success-text" : "bg-status-error-text") }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("h3", {
|
|
202
244
|
className: "font-semibold text-text-primary text-sm",
|
|
203
|
-
children: ["Service Status: ",
|
|
204
|
-
}), /* @__PURE__ */
|
|
245
|
+
children: ["Service Status: ", q.isOpen ? "Open" : "Closed"]
|
|
246
|
+
}), /* @__PURE__ */ A("div", {
|
|
205
247
|
className: "flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-4 mt-1 text-xs text-text-secondary",
|
|
206
|
-
children: [/* @__PURE__ */
|
|
248
|
+
children: [/* @__PURE__ */ A("span", {
|
|
207
249
|
className: "flex items-center gap-1",
|
|
208
|
-
children: [/* @__PURE__ */
|
|
209
|
-
}), /* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ k(v, { className: "h-3 w-3 shrink-0" }), q.currentLocation]
|
|
251
|
+
}), /* @__PURE__ */ A("span", {
|
|
210
252
|
className: "flex items-center gap-1",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
253
|
+
children: [/* @__PURE__ */ k(p, { className: "h-3 w-3 shrink-0" }), q.operatingHours]
|
|
212
254
|
})]
|
|
213
255
|
})] })]
|
|
214
|
-
}), /* @__PURE__ */
|
|
256
|
+
}), /* @__PURE__ */ A("div", {
|
|
215
257
|
className: "flex gap-2",
|
|
216
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ A("button", {
|
|
217
259
|
type: "button",
|
|
218
260
|
onClick: () => i("/cart-owner/settings"),
|
|
219
|
-
className: "inline-flex items-center gap-1 rounded-md border border-border-
|
|
220
|
-
children: [/* @__PURE__ */
|
|
221
|
-
}), /* @__PURE__ */
|
|
261
|
+
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",
|
|
262
|
+
children: [/* @__PURE__ */ k(v, { className: "h-3 w-3" }), "Update Location"]
|
|
263
|
+
}), /* @__PURE__ */ k("button", {
|
|
222
264
|
type: "button",
|
|
223
265
|
onClick: () => {
|
|
224
|
-
|
|
266
|
+
J((e) => e && {
|
|
225
267
|
...e,
|
|
226
268
|
isOpen: !e.isOpen
|
|
227
269
|
});
|
|
228
270
|
},
|
|
229
|
-
className: t("inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-xs font-medium transition-colors",
|
|
230
|
-
children:
|
|
271
|
+
className: t("inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-xs font-medium transition-colors", q.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"),
|
|
272
|
+
children: q.isOpen ? "Close Service" : "Open Service"
|
|
231
273
|
})]
|
|
232
274
|
})]
|
|
233
275
|
})
|
|
234
276
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h2", {
|
|
236
278
|
className: "text-base font-semibold text-text-primary mb-3",
|
|
237
279
|
children: "Today's Performance"
|
|
238
|
-
}), /* @__PURE__ */
|
|
280
|
+
}), /* @__PURE__ */ k("div", {
|
|
239
281
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
240
282
|
children: [
|
|
241
283
|
{
|
|
242
284
|
label: "Daily Revenue",
|
|
243
|
-
value: r(
|
|
285
|
+
value: r(F.dailyRevenue, { minimumFractionDigits: 0 }),
|
|
244
286
|
icon: _,
|
|
245
287
|
trend: "+15.2% vs yesterday",
|
|
246
288
|
trendUp: !0
|
|
247
289
|
},
|
|
248
290
|
{
|
|
249
291
|
label: "Orders Today",
|
|
250
|
-
value: String(
|
|
292
|
+
value: String(F.ordersToday),
|
|
251
293
|
icon: S,
|
|
252
294
|
trend: "+8.5% vs yesterday",
|
|
253
295
|
trendUp: !0
|
|
254
296
|
},
|
|
255
297
|
{
|
|
256
298
|
label: "Avg Order Value",
|
|
257
|
-
value: r(
|
|
258
|
-
icon:
|
|
299
|
+
value: r(F.averageOrderValue, { minimumFractionDigits: 0 }),
|
|
300
|
+
icon: E,
|
|
259
301
|
trend: "+3.2% vs last week",
|
|
260
302
|
trendUp: !0
|
|
261
303
|
},
|
|
262
304
|
{
|
|
263
305
|
label: "Service Rating",
|
|
264
|
-
value:
|
|
306
|
+
value: F.rating.toFixed(1),
|
|
265
307
|
icon: C,
|
|
266
308
|
trend: "Based on 342 reviews",
|
|
267
309
|
trendUp: !0
|
|
268
310
|
}
|
|
269
311
|
].map((e) => {
|
|
270
312
|
let t = e.icon;
|
|
271
|
-
return /* @__PURE__ */
|
|
272
|
-
className: "rounded-lg border border-border-
|
|
313
|
+
return /* @__PURE__ */ A("div", {
|
|
314
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
273
315
|
children: [
|
|
274
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ A("div", {
|
|
275
317
|
className: "flex items-center justify-between",
|
|
276
|
-
children: [/* @__PURE__ */
|
|
318
|
+
children: [/* @__PURE__ */ k("div", {
|
|
277
319
|
className: "rounded-md bg-accent p-2",
|
|
278
|
-
children: /* @__PURE__ */
|
|
279
|
-
}), /* @__PURE__ */
|
|
320
|
+
children: /* @__PURE__ */ k(t, { className: "h-5 w-5 text-text-secondary" })
|
|
321
|
+
}), /* @__PURE__ */ A("div", {
|
|
280
322
|
className: "flex items-center gap-1 text-xs text-text-secondary",
|
|
281
|
-
children: [e.trendUp ? /* @__PURE__ */
|
|
323
|
+
children: [e.trendUp ? /* @__PURE__ */ k(E, { className: "h-3 w-3 text-status-success-text" }) : /* @__PURE__ */ k(T, { className: "h-3 w-3 text-status-error-text" }), /* @__PURE__ */ k("span", { children: e.trend })]
|
|
282
324
|
})]
|
|
283
325
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ k("p", {
|
|
285
327
|
className: "mt-3 text-2xl font-bold text-text-primary",
|
|
286
328
|
children: e.value
|
|
287
329
|
}),
|
|
288
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ k("p", {
|
|
289
331
|
className: "mt-1 text-sm text-text-secondary",
|
|
290
332
|
children: e.label
|
|
291
333
|
})
|
|
@@ -293,182 +335,182 @@ var A = {
|
|
|
293
335
|
}, e.label);
|
|
294
336
|
})
|
|
295
337
|
})] }),
|
|
296
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ A("div", {
|
|
297
339
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
298
|
-
children: [/* @__PURE__ */
|
|
340
|
+
children: [/* @__PURE__ */ A("div", {
|
|
299
341
|
className: "lg:col-span-2 space-y-6",
|
|
300
342
|
children: [
|
|
301
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h3", {
|
|
302
344
|
className: "text-base font-semibold mb-3 text-text-primary",
|
|
303
345
|
children: "Quick Actions"
|
|
304
|
-
}), /* @__PURE__ */
|
|
346
|
+
}), /* @__PURE__ */ k("div", {
|
|
305
347
|
className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3",
|
|
306
348
|
children: [
|
|
307
349
|
{
|
|
308
350
|
label: "Service Config",
|
|
309
351
|
icon: x,
|
|
310
|
-
color: "bg-
|
|
352
|
+
color: "bg-status-warning-bg/10 text-status-warning-text",
|
|
311
353
|
path: "/cart-owner/service-config"
|
|
312
354
|
},
|
|
313
355
|
{
|
|
314
356
|
label: "Manage Offerings",
|
|
315
357
|
icon: y,
|
|
316
|
-
color: "bg-
|
|
358
|
+
color: "bg-status-info-bg/10 text-status-info-text",
|
|
317
359
|
path: "/cart-owner/inventory"
|
|
318
360
|
},
|
|
319
361
|
{
|
|
320
362
|
label: "View Orders",
|
|
321
363
|
icon: S,
|
|
322
|
-
color: "bg-
|
|
364
|
+
color: "bg-status-success-bg/10 text-status-success-text",
|
|
323
365
|
path: "/cart-owner/orders"
|
|
324
366
|
},
|
|
325
367
|
{
|
|
326
368
|
label: "Analytics",
|
|
327
369
|
icon: l,
|
|
328
|
-
color: "bg-purple-
|
|
370
|
+
color: "bg-accent-purple-subtle text-accent-purple",
|
|
329
371
|
path: "/cart-owner/analytics"
|
|
330
372
|
},
|
|
331
373
|
{
|
|
332
374
|
label: "Staff",
|
|
333
|
-
icon:
|
|
334
|
-
color: "bg-
|
|
375
|
+
icon: D,
|
|
376
|
+
color: "bg-accent-purple-subtle text-accent-purple",
|
|
335
377
|
path: "/cart-owner/staff"
|
|
336
378
|
}
|
|
337
379
|
].map((e) => {
|
|
338
380
|
let n = e.icon;
|
|
339
|
-
return /* @__PURE__ */
|
|
381
|
+
return /* @__PURE__ */ A("button", {
|
|
340
382
|
type: "button",
|
|
341
383
|
onClick: () => i(e.path),
|
|
342
384
|
className: t("flex flex-col items-center gap-2 rounded-lg p-4 transition-colors hover:opacity-80", e.color),
|
|
343
|
-
children: [/* @__PURE__ */
|
|
385
|
+
children: [/* @__PURE__ */ k(n, { className: "h-5 w-5" }), /* @__PURE__ */ k("span", {
|
|
344
386
|
className: "text-xs font-medium text-center",
|
|
345
387
|
children: e.label
|
|
346
388
|
})]
|
|
347
389
|
}, e.label);
|
|
348
390
|
})
|
|
349
391
|
})] }),
|
|
350
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("div", {
|
|
351
393
|
className: "flex items-center justify-between mb-3",
|
|
352
|
-
children: [/* @__PURE__ */
|
|
394
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
353
395
|
className: "text-base font-semibold text-text-primary",
|
|
354
396
|
children: "Recent Orders"
|
|
355
|
-
}), /* @__PURE__ */
|
|
397
|
+
}), /* @__PURE__ */ k("button", {
|
|
356
398
|
type: "button",
|
|
357
399
|
onClick: () => i("/cart-owner/orders"),
|
|
358
400
|
className: "text-xs text-text-secondary hover:text-text-primary transition-colors",
|
|
359
401
|
children: "View All Orders"
|
|
360
402
|
})]
|
|
361
|
-
}), /* @__PURE__ */
|
|
403
|
+
}), /* @__PURE__ */ k("div", {
|
|
362
404
|
className: "space-y-3",
|
|
363
|
-
children:
|
|
364
|
-
className: "rounded-lg border border-border-
|
|
365
|
-
children: /* @__PURE__ */
|
|
405
|
+
children: G.map((e) => /* @__PURE__ */ k("div", {
|
|
406
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
|
|
407
|
+
children: /* @__PURE__ */ A("div", {
|
|
366
408
|
className: "flex flex-col lg:flex-row lg:items-start lg:justify-between gap-3",
|
|
367
|
-
children: [/* @__PURE__ */
|
|
409
|
+
children: [/* @__PURE__ */ A("div", {
|
|
368
410
|
className: "flex-1 min-w-0",
|
|
369
411
|
children: [
|
|
370
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ A("div", {
|
|
371
413
|
className: "flex flex-wrap items-center gap-2 mb-1",
|
|
372
414
|
children: [
|
|
373
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ A("h4", {
|
|
374
416
|
className: "font-semibold text-text-primary text-sm",
|
|
375
417
|
children: ["#", e.id]
|
|
376
418
|
}),
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize",
|
|
419
|
+
/* @__PURE__ */ k("span", {
|
|
420
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize", H[e.status] || "bg-bg-sunken text-text-secondary"),
|
|
379
421
|
children: e.status
|
|
380
422
|
}),
|
|
381
|
-
e.priority === "urgent" && /* @__PURE__ */
|
|
423
|
+
e.priority === "urgent" && /* @__PURE__ */ k(s, { className: "h-4 w-4 text-status-error-text" })
|
|
382
424
|
]
|
|
383
425
|
}),
|
|
384
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ A("p", {
|
|
385
427
|
className: "text-xs text-text-secondary mb-1",
|
|
386
428
|
children: ["Customer: ", e.customerName]
|
|
387
429
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
430
|
+
/* @__PURE__ */ A("p", {
|
|
389
431
|
className: "text-xs text-text-secondary mb-1 truncate",
|
|
390
432
|
children: ["Items: ", e.items.join(", ")]
|
|
391
433
|
}),
|
|
392
|
-
/* @__PURE__ */
|
|
434
|
+
/* @__PURE__ */ A("div", {
|
|
393
435
|
className: "flex flex-wrap items-center gap-3 text-xs text-text-secondary",
|
|
394
|
-
children: [/* @__PURE__ */
|
|
436
|
+
children: [/* @__PURE__ */ k("span", {
|
|
395
437
|
className: "font-semibold text-text-primary",
|
|
396
438
|
children: r(e.total, { minimumFractionDigits: 0 })
|
|
397
|
-
}), /* @__PURE__ */
|
|
439
|
+
}), /* @__PURE__ */ A("span", {
|
|
398
440
|
className: "flex items-center gap-1",
|
|
399
|
-
children: [/* @__PURE__ */
|
|
441
|
+
children: [/* @__PURE__ */ k(p, { className: "h-3 w-3" }), e.timestamp]
|
|
400
442
|
})]
|
|
401
443
|
})
|
|
402
444
|
]
|
|
403
|
-
}), /* @__PURE__ */
|
|
445
|
+
}), /* @__PURE__ */ A("div", {
|
|
404
446
|
className: "flex gap-2",
|
|
405
447
|
children: [
|
|
406
|
-
/* @__PURE__ */
|
|
448
|
+
/* @__PURE__ */ A("button", {
|
|
407
449
|
type: "button",
|
|
408
450
|
onClick: () => i("/cart-owner/orders"),
|
|
409
|
-
className: "inline-flex items-center gap-1 rounded-md border border-border-
|
|
410
|
-
children: [/* @__PURE__ */
|
|
451
|
+
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",
|
|
452
|
+
children: [/* @__PURE__ */ k(h, { className: "h-3 w-3" }), "View"]
|
|
411
453
|
}),
|
|
412
|
-
e.status === "pending" && /* @__PURE__ */
|
|
454
|
+
e.status === "pending" && /* @__PURE__ */ A("button", {
|
|
413
455
|
type: "button",
|
|
414
|
-
onClick: () =>
|
|
415
|
-
className: "inline-flex items-center gap-1 rounded-md bg-
|
|
416
|
-
children: [/* @__PURE__ */
|
|
456
|
+
onClick: () => Y(e.id),
|
|
457
|
+
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",
|
|
458
|
+
children: [/* @__PURE__ */ k(d, { className: "h-3 w-3" }), "Accept"]
|
|
417
459
|
}),
|
|
418
|
-
e.status === "preparing" && /* @__PURE__ */
|
|
460
|
+
e.status === "preparing" && /* @__PURE__ */ A("button", {
|
|
419
461
|
type: "button",
|
|
420
|
-
onClick: () =>
|
|
421
|
-
className: "inline-flex items-center gap-1 rounded-md bg-
|
|
422
|
-
children: [/* @__PURE__ */
|
|
462
|
+
onClick: () => X(e.id),
|
|
463
|
+
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",
|
|
464
|
+
children: [/* @__PURE__ */ k(d, { className: "h-3 w-3" }), "Mark Ready"]
|
|
423
465
|
})
|
|
424
466
|
]
|
|
425
467
|
})]
|
|
426
468
|
})
|
|
427
469
|
}, e.id))
|
|
428
470
|
})] }),
|
|
429
|
-
/* @__PURE__ */
|
|
430
|
-
className: "rounded-lg border border-border-
|
|
431
|
-
children: [/* @__PURE__ */
|
|
432
|
-
className: "flex items-center justify-between border-b border-border-
|
|
433
|
-
children: [/* @__PURE__ */
|
|
471
|
+
/* @__PURE__ */ A("div", {
|
|
472
|
+
className: "rounded-lg border border-border-seam bg-bg-surface shadow-sm",
|
|
473
|
+
children: [/* @__PURE__ */ A("div", {
|
|
474
|
+
className: "flex items-center justify-between border-b border-border-seam px-5 py-4",
|
|
475
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
434
476
|
className: "text-base font-semibold text-text-primary",
|
|
435
477
|
children: "Revenue (Last 7 Days)"
|
|
436
|
-
}), /* @__PURE__ */
|
|
478
|
+
}), /* @__PURE__ */ k("button", {
|
|
437
479
|
type: "button",
|
|
438
480
|
onClick: () => i("/cart-owner/analytics"),
|
|
439
481
|
className: "text-xs text-text-secondary hover:text-text-primary transition-colors",
|
|
440
482
|
children: "View Analytics"
|
|
441
483
|
})]
|
|
442
|
-
}), /* @__PURE__ */
|
|
484
|
+
}), /* @__PURE__ */ k("div", {
|
|
443
485
|
className: "overflow-x-auto",
|
|
444
|
-
children: /* @__PURE__ */
|
|
486
|
+
children: /* @__PURE__ */ A("table", {
|
|
445
487
|
className: "w-full text-sm",
|
|
446
|
-
children: [/* @__PURE__ */
|
|
447
|
-
className: "border-b border-border-
|
|
488
|
+
children: [/* @__PURE__ */ k("thead", { children: /* @__PURE__ */ A("tr", {
|
|
489
|
+
className: "border-b border-border-seam",
|
|
448
490
|
children: [
|
|
449
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ k("th", {
|
|
450
492
|
className: "px-5 py-3 text-left font-medium text-text-secondary",
|
|
451
493
|
children: "Date"
|
|
452
494
|
}),
|
|
453
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ k("th", {
|
|
454
496
|
className: "px-5 py-3 text-right font-medium text-text-secondary",
|
|
455
497
|
children: "Orders"
|
|
456
498
|
}),
|
|
457
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ k("th", {
|
|
458
500
|
className: "px-5 py-3 text-right font-medium text-text-secondary",
|
|
459
501
|
children: "Revenue"
|
|
460
502
|
}),
|
|
461
|
-
/* @__PURE__ */
|
|
503
|
+
/* @__PURE__ */ k("th", {
|
|
462
504
|
className: "px-5 py-3 text-left font-medium text-text-secondary",
|
|
463
505
|
children: "Trend"
|
|
464
506
|
})
|
|
465
507
|
]
|
|
466
|
-
}) }), /* @__PURE__ */
|
|
467
|
-
let n = Math.max(...
|
|
468
|
-
return /* @__PURE__ */
|
|
469
|
-
className: "border-b border-border-
|
|
508
|
+
}) }), /* @__PURE__ */ k("tbody", { children: B.map((e, t) => {
|
|
509
|
+
let n = Math.max(...B.map((e) => e.revenue)), i = e.revenue / n * 100;
|
|
510
|
+
return /* @__PURE__ */ A("tr", {
|
|
511
|
+
className: "border-b border-border-seam last:border-0",
|
|
470
512
|
children: [
|
|
471
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ k("td", {
|
|
472
514
|
className: "px-5 py-3 text-text-primary text-xs",
|
|
473
515
|
children: new Date(e.date).toLocaleDateString("en-IN", {
|
|
474
516
|
day: "2-digit",
|
|
@@ -476,20 +518,20 @@ var A = {
|
|
|
476
518
|
weekday: "short"
|
|
477
519
|
})
|
|
478
520
|
}),
|
|
479
|
-
/* @__PURE__ */
|
|
521
|
+
/* @__PURE__ */ k("td", {
|
|
480
522
|
className: "px-5 py-3 text-right text-text-primary",
|
|
481
523
|
children: e.orders
|
|
482
524
|
}),
|
|
483
|
-
/* @__PURE__ */
|
|
525
|
+
/* @__PURE__ */ k("td", {
|
|
484
526
|
className: "px-5 py-3 text-right font-medium text-text-primary",
|
|
485
527
|
children: r(e.revenue, { minimumFractionDigits: 0 })
|
|
486
528
|
}),
|
|
487
|
-
/* @__PURE__ */
|
|
529
|
+
/* @__PURE__ */ k("td", {
|
|
488
530
|
className: "px-5 py-3 w-40",
|
|
489
|
-
children: /* @__PURE__ */
|
|
531
|
+
children: /* @__PURE__ */ k("div", {
|
|
490
532
|
className: "h-4 rounded bg-bg-sunken overflow-hidden",
|
|
491
|
-
children: /* @__PURE__ */
|
|
492
|
-
className: "h-full rounded bg-
|
|
533
|
+
children: /* @__PURE__ */ k("div", {
|
|
534
|
+
className: "h-full rounded bg-status-info-bg/60",
|
|
493
535
|
style: { width: `${i}%` }
|
|
494
536
|
})
|
|
495
537
|
})
|
|
@@ -500,40 +542,40 @@ var A = {
|
|
|
500
542
|
})
|
|
501
543
|
})]
|
|
502
544
|
}),
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
className: "rounded-lg border border-border-
|
|
505
|
-
children: [/* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ A("div", {
|
|
546
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
547
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
506
548
|
className: "text-base font-semibold text-text-primary mb-4",
|
|
507
549
|
children: "This Month Summary"
|
|
508
|
-
}), /* @__PURE__ */
|
|
550
|
+
}), /* @__PURE__ */ A("div", {
|
|
509
551
|
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
510
552
|
children: [
|
|
511
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ A("div", {
|
|
512
554
|
className: "text-center p-3 rounded-lg bg-bg-sunken/50",
|
|
513
|
-
children: [/* @__PURE__ */
|
|
555
|
+
children: [/* @__PURE__ */ k("div", {
|
|
514
556
|
className: "text-xl font-bold text-text-primary",
|
|
515
|
-
children: r(
|
|
516
|
-
}), /* @__PURE__ */
|
|
557
|
+
children: r(F.totalRevenue, { minimumFractionDigits: 0 })
|
|
558
|
+
}), /* @__PURE__ */ k("div", {
|
|
517
559
|
className: "text-xs text-text-secondary mt-1",
|
|
518
560
|
children: "Total Revenue"
|
|
519
561
|
})]
|
|
520
562
|
}),
|
|
521
|
-
/* @__PURE__ */
|
|
563
|
+
/* @__PURE__ */ A("div", {
|
|
522
564
|
className: "text-center p-3 rounded-lg bg-bg-sunken/50",
|
|
523
|
-
children: [/* @__PURE__ */
|
|
565
|
+
children: [/* @__PURE__ */ k("div", {
|
|
524
566
|
className: "text-xl font-bold text-text-primary",
|
|
525
|
-
children:
|
|
526
|
-
}), /* @__PURE__ */
|
|
567
|
+
children: F.totalOrders
|
|
568
|
+
}), /* @__PURE__ */ k("div", {
|
|
527
569
|
className: "text-xs text-text-secondary mt-1",
|
|
528
570
|
children: "Total Orders"
|
|
529
571
|
})]
|
|
530
572
|
}),
|
|
531
|
-
/* @__PURE__ */
|
|
573
|
+
/* @__PURE__ */ A("div", {
|
|
532
574
|
className: "text-center p-3 rounded-lg bg-bg-sunken/50",
|
|
533
|
-
children: [/* @__PURE__ */
|
|
575
|
+
children: [/* @__PURE__ */ k("div", {
|
|
534
576
|
className: "text-xl font-bold text-text-primary",
|
|
535
|
-
children:
|
|
536
|
-
}), /* @__PURE__ */
|
|
577
|
+
children: F.customerCount
|
|
578
|
+
}), /* @__PURE__ */ k("div", {
|
|
537
579
|
className: "text-xs text-text-secondary mt-1",
|
|
538
580
|
children: "Unique Customers"
|
|
539
581
|
})]
|
|
@@ -542,30 +584,30 @@ var A = {
|
|
|
542
584
|
})]
|
|
543
585
|
})
|
|
544
586
|
]
|
|
545
|
-
}), /* @__PURE__ */
|
|
587
|
+
}), /* @__PURE__ */ A("div", {
|
|
546
588
|
className: "space-y-6",
|
|
547
589
|
children: [
|
|
548
|
-
/* @__PURE__ */
|
|
549
|
-
className: "rounded-lg border border-border-
|
|
550
|
-
children: [/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ A("div", {
|
|
591
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
592
|
+
children: [/* @__PURE__ */ A("div", {
|
|
551
593
|
className: "flex items-center justify-between mb-4",
|
|
552
|
-
children: [/* @__PURE__ */
|
|
594
|
+
children: [/* @__PURE__ */ A("h3", {
|
|
553
595
|
className: "text-base font-semibold text-text-primary flex items-center gap-2",
|
|
554
|
-
children: [/* @__PURE__ */
|
|
555
|
-
}), /* @__PURE__ */
|
|
556
|
-
className: "inline-flex items-center justify-center rounded-full bg-
|
|
557
|
-
children:
|
|
596
|
+
children: [/* @__PURE__ */ k(u, { className: "h-4 w-4" }), "Notifications"]
|
|
597
|
+
}), /* @__PURE__ */ k("span", {
|
|
598
|
+
className: "inline-flex items-center justify-center rounded-full bg-status-error-text text-text-inverse text-[10px] font-bold h-5 w-5",
|
|
599
|
+
children: z.length
|
|
558
600
|
})]
|
|
559
|
-
}), /* @__PURE__ */
|
|
601
|
+
}), /* @__PURE__ */ k("div", {
|
|
560
602
|
className: "space-y-3",
|
|
561
|
-
children:
|
|
603
|
+
children: z.map((e) => /* @__PURE__ */ A("div", {
|
|
562
604
|
className: "flex items-start gap-2",
|
|
563
|
-
children: [/* @__PURE__ */
|
|
605
|
+
children: [/* @__PURE__ */ k(o, { className: t("h-4 w-4 mt-0.5 shrink-0", W[e.type]) }), /* @__PURE__ */ A("div", {
|
|
564
606
|
className: "min-w-0",
|
|
565
|
-
children: [/* @__PURE__ */
|
|
607
|
+
children: [/* @__PURE__ */ k("p", {
|
|
566
608
|
className: "text-xs text-text-primary leading-tight",
|
|
567
609
|
children: e.message
|
|
568
|
-
}), /* @__PURE__ */
|
|
610
|
+
}), /* @__PURE__ */ k("p", {
|
|
569
611
|
className: "text-[10px] text-text-secondary mt-0.5",
|
|
570
612
|
children: e.time
|
|
571
613
|
})]
|
|
@@ -573,117 +615,117 @@ var A = {
|
|
|
573
615
|
}, e.id))
|
|
574
616
|
})]
|
|
575
617
|
}),
|
|
576
|
-
/* @__PURE__ */
|
|
577
|
-
className: "rounded-lg border border-border-
|
|
578
|
-
children: [/* @__PURE__ */
|
|
618
|
+
/* @__PURE__ */ A("div", {
|
|
619
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
620
|
+
children: [/* @__PURE__ */ A("h3", {
|
|
579
621
|
className: "text-base font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
580
|
-
children: [/* @__PURE__ */
|
|
581
|
-
}), /* @__PURE__ */
|
|
622
|
+
children: [/* @__PURE__ */ k(g, { className: "h-4 w-4 text-status-warning-text" }), "Top Selling Items"]
|
|
623
|
+
}), /* @__PURE__ */ k("div", {
|
|
582
624
|
className: "space-y-3",
|
|
583
|
-
children:
|
|
625
|
+
children: L.map((e, t) => /* @__PURE__ */ A("div", {
|
|
584
626
|
className: "flex items-center justify-between",
|
|
585
|
-
children: [/* @__PURE__ */
|
|
627
|
+
children: [/* @__PURE__ */ A("div", {
|
|
586
628
|
className: "flex items-center gap-2 min-w-0",
|
|
587
|
-
children: [/* @__PURE__ */
|
|
629
|
+
children: [/* @__PURE__ */ k("span", {
|
|
588
630
|
className: "text-sm font-bold text-text-secondary w-5",
|
|
589
631
|
children: t + 1
|
|
590
|
-
}), /* @__PURE__ */
|
|
632
|
+
}), /* @__PURE__ */ A("div", {
|
|
591
633
|
className: "min-w-0",
|
|
592
|
-
children: [/* @__PURE__ */
|
|
634
|
+
children: [/* @__PURE__ */ k("p", {
|
|
593
635
|
className: "text-xs font-medium text-text-primary truncate",
|
|
594
636
|
children: e.name
|
|
595
|
-
}), /* @__PURE__ */
|
|
637
|
+
}), /* @__PURE__ */ A("p", {
|
|
596
638
|
className: "text-[10px] text-text-secondary",
|
|
597
639
|
children: [e.quantity, " sold"]
|
|
598
640
|
})]
|
|
599
641
|
})]
|
|
600
|
-
}), /* @__PURE__ */
|
|
642
|
+
}), /* @__PURE__ */ k("span", {
|
|
601
643
|
className: "text-xs font-semibold text-text-primary",
|
|
602
644
|
children: r(e.revenue, { minimumFractionDigits: 0 })
|
|
603
645
|
})]
|
|
604
646
|
}, e.name))
|
|
605
647
|
})]
|
|
606
648
|
}),
|
|
607
|
-
/* @__PURE__ */
|
|
608
|
-
className: "rounded-lg border border-border-
|
|
609
|
-
children: [/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ A("div", {
|
|
650
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
651
|
+
children: [/* @__PURE__ */ A("div", {
|
|
610
652
|
className: "flex items-center justify-between mb-4",
|
|
611
|
-
children: [/* @__PURE__ */
|
|
653
|
+
children: [/* @__PURE__ */ A("h3", {
|
|
612
654
|
className: "text-base font-semibold text-text-primary flex items-center gap-2",
|
|
613
|
-
children: [/* @__PURE__ */ O
|
|
614
|
-
}), /* @__PURE__ */
|
|
655
|
+
children: [/* @__PURE__ */ k(O, { className: "h-4 w-4" }), "Staff Overview"]
|
|
656
|
+
}), /* @__PURE__ */ k("button", {
|
|
615
657
|
type: "button",
|
|
616
658
|
onClick: () => i("/cart-owner/staff"),
|
|
617
659
|
className: "text-xs text-text-secondary hover:text-text-primary transition-colors",
|
|
618
660
|
children: "Manage"
|
|
619
661
|
})]
|
|
620
|
-
}), /* @__PURE__ */
|
|
662
|
+
}), /* @__PURE__ */ k("div", {
|
|
621
663
|
className: "space-y-3",
|
|
622
|
-
children:
|
|
664
|
+
children: R.map((e) => /* @__PURE__ */ A("div", {
|
|
623
665
|
className: "flex items-center justify-between",
|
|
624
|
-
children: [/* @__PURE__ */
|
|
666
|
+
children: [/* @__PURE__ */ A("div", {
|
|
625
667
|
className: "flex items-center gap-2",
|
|
626
|
-
children: [/* @__PURE__ */
|
|
668
|
+
children: [/* @__PURE__ */ k("div", { className: t("w-2 h-2 rounded-full", U[e.status]) }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
627
669
|
className: "text-xs font-medium text-text-primary",
|
|
628
670
|
children: e.name
|
|
629
|
-
}), /* @__PURE__ */
|
|
671
|
+
}), /* @__PURE__ */ k("p", {
|
|
630
672
|
className: "text-[10px] text-text-secondary",
|
|
631
673
|
children: e.role
|
|
632
674
|
})] })]
|
|
633
|
-
}), /* @__PURE__ */
|
|
675
|
+
}), /* @__PURE__ */ k("span", {
|
|
634
676
|
className: "text-[10px] capitalize text-text-secondary",
|
|
635
677
|
children: e.status.replace("-", " ")
|
|
636
678
|
})]
|
|
637
679
|
}, e.name))
|
|
638
680
|
})]
|
|
639
681
|
}),
|
|
640
|
-
/* @__PURE__ */
|
|
641
|
-
className: "rounded-lg border border-border-
|
|
642
|
-
children: [/* @__PURE__ */
|
|
682
|
+
/* @__PURE__ */ A("div", {
|
|
683
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
684
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
643
685
|
className: "text-base font-semibold text-text-primary mb-4",
|
|
644
686
|
children: "Quick Stats"
|
|
645
|
-
}), /* @__PURE__ */
|
|
687
|
+
}), /* @__PURE__ */ A("div", {
|
|
646
688
|
className: "space-y-3",
|
|
647
689
|
children: [
|
|
648
|
-
/* @__PURE__ */
|
|
690
|
+
/* @__PURE__ */ A("div", {
|
|
649
691
|
className: "flex items-center justify-between",
|
|
650
|
-
children: [/* @__PURE__ */
|
|
692
|
+
children: [/* @__PURE__ */ k("span", {
|
|
651
693
|
className: "text-xs text-text-secondary",
|
|
652
694
|
children: "Active Offerings"
|
|
653
|
-
}), /* @__PURE__ */
|
|
695
|
+
}), /* @__PURE__ */ k("span", {
|
|
654
696
|
className: "text-sm font-semibold text-text-primary",
|
|
655
|
-
children:
|
|
697
|
+
children: F.activeOfferings
|
|
656
698
|
})]
|
|
657
699
|
}),
|
|
658
|
-
/* @__PURE__ */
|
|
700
|
+
/* @__PURE__ */ A("div", {
|
|
659
701
|
className: "flex items-center justify-between",
|
|
660
|
-
children: [/* @__PURE__ */
|
|
702
|
+
children: [/* @__PURE__ */ k("span", {
|
|
661
703
|
className: "text-xs text-text-secondary",
|
|
662
704
|
children: "Customer Rating"
|
|
663
|
-
}), /* @__PURE__ */
|
|
705
|
+
}), /* @__PURE__ */ A("span", {
|
|
664
706
|
className: "text-sm font-semibold text-text-primary flex items-center gap-1",
|
|
665
|
-
children: [/* @__PURE__ */
|
|
707
|
+
children: [/* @__PURE__ */ k(C, { className: "h-3 w-3 text-status-warning-text fill-status-warning-text" }), F.rating]
|
|
666
708
|
})]
|
|
667
709
|
}),
|
|
668
|
-
/* @__PURE__ */
|
|
710
|
+
/* @__PURE__ */ A("div", {
|
|
669
711
|
className: "flex items-center justify-between",
|
|
670
|
-
children: [/* @__PURE__ */
|
|
712
|
+
children: [/* @__PURE__ */ k("span", {
|
|
671
713
|
className: "text-xs text-text-secondary",
|
|
672
714
|
children: "Total Customers"
|
|
673
|
-
}), /* @__PURE__ */
|
|
715
|
+
}), /* @__PURE__ */ k("span", {
|
|
674
716
|
className: "text-sm font-semibold text-text-primary",
|
|
675
|
-
children:
|
|
717
|
+
children: F.customerCount
|
|
676
718
|
})]
|
|
677
719
|
})
|
|
678
720
|
]
|
|
679
721
|
})]
|
|
680
722
|
}),
|
|
681
|
-
/* @__PURE__ */
|
|
682
|
-
className: "rounded-lg border border-border-
|
|
683
|
-
children: [/* @__PURE__ */
|
|
723
|
+
/* @__PURE__ */ A("div", {
|
|
724
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
725
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
684
726
|
className: "text-base font-semibold text-text-primary mb-3",
|
|
685
727
|
children: "Business Settings"
|
|
686
|
-
}), /* @__PURE__ */
|
|
728
|
+
}), /* @__PURE__ */ k("div", {
|
|
687
729
|
className: "space-y-2",
|
|
688
730
|
children: [
|
|
689
731
|
{
|
|
@@ -703,43 +745,43 @@ var A = {
|
|
|
703
745
|
}
|
|
704
746
|
].map((e) => {
|
|
705
747
|
let t = e.icon;
|
|
706
|
-
return /* @__PURE__ */
|
|
748
|
+
return /* @__PURE__ */ A("button", {
|
|
707
749
|
type: "button",
|
|
708
750
|
onClick: () => i(e.path),
|
|
709
|
-
className: "w-full flex items-center justify-between rounded-md border border-border-
|
|
710
|
-
children: [/* @__PURE__ */
|
|
751
|
+
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",
|
|
752
|
+
children: [/* @__PURE__ */ A("span", {
|
|
711
753
|
className: "flex items-center gap-2",
|
|
712
|
-
children: [/* @__PURE__ */
|
|
713
|
-
}), /* @__PURE__ */
|
|
754
|
+
children: [/* @__PURE__ */ k(t, { className: "h-3.5 w-3.5" }), e.label]
|
|
755
|
+
}), /* @__PURE__ */ k(f, { className: "h-3 w-3 text-text-secondary" })]
|
|
714
756
|
}, e.label);
|
|
715
757
|
})
|
|
716
758
|
})]
|
|
717
759
|
}),
|
|
718
|
-
/* @__PURE__ */
|
|
719
|
-
className: "rounded-lg border border-border-
|
|
720
|
-
children: [/* @__PURE__ */
|
|
760
|
+
/* @__PURE__ */ A("div", {
|
|
761
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
762
|
+
children: [/* @__PURE__ */ k("h3", {
|
|
721
763
|
className: "text-base font-semibold text-text-primary mb-3",
|
|
722
764
|
children: "Recent Activity"
|
|
723
|
-
}), /* @__PURE__ */
|
|
765
|
+
}), /* @__PURE__ */ A("div", {
|
|
724
766
|
className: "space-y-2 text-xs",
|
|
725
767
|
children: [
|
|
726
|
-
/* @__PURE__ */
|
|
768
|
+
/* @__PURE__ */ A("div", {
|
|
727
769
|
className: "flex items-center gap-2",
|
|
728
|
-
children: [/* @__PURE__ */
|
|
770
|
+
children: [/* @__PURE__ */ k(o, { className: "h-3.5 w-3.5 text-status-success-text" }), /* @__PURE__ */ k("span", {
|
|
729
771
|
className: "text-text-secondary",
|
|
730
772
|
children: "Order #ORD-003 delivered"
|
|
731
773
|
})]
|
|
732
774
|
}),
|
|
733
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ A("div", {
|
|
734
776
|
className: "flex items-center gap-2",
|
|
735
|
-
children: [/* @__PURE__ */
|
|
777
|
+
children: [/* @__PURE__ */ k(o, { className: "h-3.5 w-3.5 text-status-info-text" }), /* @__PURE__ */ k("span", {
|
|
736
778
|
className: "text-text-secondary",
|
|
737
779
|
children: "Inventory updated"
|
|
738
780
|
})]
|
|
739
781
|
}),
|
|
740
|
-
/* @__PURE__ */
|
|
782
|
+
/* @__PURE__ */ A("div", {
|
|
741
783
|
className: "flex items-center gap-2",
|
|
742
|
-
children: [/* @__PURE__ */
|
|
784
|
+
children: [/* @__PURE__ */ k(o, { className: "h-3.5 w-3.5 text-status-warning-text" }), /* @__PURE__ */ k("span", {
|
|
743
785
|
className: "text-text-secondary",
|
|
744
786
|
children: "New customer review"
|
|
745
787
|
})]
|
|
@@ -755,6 +797,6 @@ var A = {
|
|
|
755
797
|
});
|
|
756
798
|
};
|
|
757
799
|
//#endregion
|
|
758
|
-
export {
|
|
800
|
+
export { G as CartOwnerDashboard };
|
|
759
801
|
|
|
760
802
|
//# sourceMappingURL=CartOwnerDashboard.js.map
|