@burdenoff/microfe-labsofscience 2026.624.1 → 2026.626.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/labsofscience/components/EmptyState.js +18 -11
- package/dist/labsofscience/components/EmptyState.js.map +1 -1
- package/dist/labsofscience/components/InvestmentCard.js +26 -24
- package/dist/labsofscience/components/InvestmentCard.js.map +1 -1
- package/dist/labsofscience/components/MetricsCard.js +19 -13
- package/dist/labsofscience/components/MetricsCard.js.map +1 -1
- package/dist/labsofscience/components/PageLayout.js +23 -15
- package/dist/labsofscience/components/PageLayout.js.map +1 -1
- package/dist/labsofscience/components/RatingDisplay.js +1 -1
- package/dist/labsofscience/components/RatingDisplay.js.map +1 -1
- package/dist/labsofscience/components/StatusBadge.js +34 -15
- package/dist/labsofscience/components/StatusBadge.js.map +1 -1
- package/dist/labsofscience/pages/HomePage.js +242 -223
- package/dist/labsofscience/pages/HomePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +107 -101
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminDashboard.js +118 -85
- package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js +51 -45
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js +245 -240
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminProfilePage.js +131 -129
- package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js +493 -491
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/CartManagementPage.js +163 -158
- package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/UserManagementPage.js +307 -302
- package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +89 -84
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +187 -182
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +119 -88
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +149 -144
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +151 -146
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +344 -346
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +269 -271
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +293 -287
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/common/HelpSupportPage.js +344 -345
- package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/labsofscience/pages/common/NotificationCenterPage.js +94 -87
- package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/labsofscience/pages/common/SettingsPage.js +748 -739
- package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js +400 -356
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDetailPage.js +281 -248
- package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +178 -166
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CheckoutPage.js +236 -238
- package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerDashboard.js +425 -390
- package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +522 -512
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/FavoritesPage.js +73 -66
- package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js +74 -67
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js +311 -274
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +100 -93
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/ReviewsPage.js +96 -89
- package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js +85 -78
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +135 -103
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +267 -260
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +97 -91
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorDashboard.js +346 -310
- package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +118 -111
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +75 -69
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js +434 -429
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js +364 -323
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerDashboard.js +132 -101
- package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +114 -108
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js +124 -119
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +354 -344
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
- package/package.json +3 -3
|
@@ -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, NextSteps as j, PagePurpose as M } from "@burdenoff/fe-libs/ui";
|
|
9
10
|
//#region src/labsofscience/pages/cart-owner/CartOwnerDashboard.tsx
|
|
10
|
-
var
|
|
11
|
+
var N = {
|
|
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
|
+
}, P = [
|
|
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
|
+
], F = [
|
|
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
|
+
], I = [
|
|
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
|
+
], L = [
|
|
112
113
|
{
|
|
113
114
|
id: "1",
|
|
114
115
|
message: "New order #ORD-004 received",
|
|
@@ -139,43 +140,43 @@ var A = {
|
|
|
139
140
|
type: "warning",
|
|
140
141
|
time: "1 hr ago"
|
|
141
142
|
}
|
|
142
|
-
],
|
|
143
|
+
], R = i.orderTrends.slice(0, 7), z = () => {
|
|
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
|
+
}, B = {
|
|
147
|
+
pending: "bg-status-error-bg-subtle text-status-error-text",
|
|
148
|
+
preparing: "bg-status-warning-bg-subtle text-status-warning-text",
|
|
149
|
+
ready: "bg-status-info-bg-subtle text-status-info-text",
|
|
150
|
+
delivered: "bg-status-success-bg-subtle text-status-success-text",
|
|
150
151
|
cancelled: "bg-bg-sunken text-text-secondary"
|
|
151
|
-
},
|
|
152
|
-
active: "bg-
|
|
153
|
-
"on-break": "bg-
|
|
152
|
+
}, V = {
|
|
153
|
+
active: "bg-status-success-bg",
|
|
154
|
+
"on-break": "bg-status-warning-bg",
|
|
154
155
|
"off-duty": "bg-muted-foreground"
|
|
155
|
-
},
|
|
156
|
-
info: "text-
|
|
157
|
-
warning: "text-
|
|
158
|
-
success: "text-
|
|
159
|
-
},
|
|
160
|
-
let { navigateTo: i } = e(), [
|
|
156
|
+
}, H = {
|
|
157
|
+
info: "text-status-info-text",
|
|
158
|
+
warning: "text-status-warning-text",
|
|
159
|
+
success: "text-status-success-text"
|
|
160
|
+
}, U = () => {
|
|
161
|
+
let { navigateTo: i } = e(), [U, W] = a(P), [G, K] = 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
|
+
}), q = (e) => {
|
|
167
|
+
W((t) => t.map((t) => t.id === e ? {
|
|
167
168
|
...t,
|
|
168
169
|
status: "preparing"
|
|
169
170
|
} : t));
|
|
170
|
-
},
|
|
171
|
-
|
|
171
|
+
}, J = (e) => {
|
|
172
|
+
W((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
|
+
z(),
|
|
179
180
|
", ",
|
|
180
181
|
/* @__PURE__ */ O("span", {
|
|
181
182
|
className: "text-text-secondary font-normal",
|
|
@@ -192,23 +193,53 @@ var A = {
|
|
|
192
193
|
children: /* @__PURE__ */ k("div", {
|
|
193
194
|
className: "space-y-6",
|
|
194
195
|
children: [
|
|
196
|
+
/* @__PURE__ */ O(M, {
|
|
197
|
+
icon: /* @__PURE__ */ O(o, { className: "h-4 w-4" }),
|
|
198
|
+
children: "Run your cart business end to end. Flip your service open or closed, watch today's revenue, orders and rating, then jump to inventory, staff or order management — this is mission control for everything your cart sells."
|
|
199
|
+
}),
|
|
200
|
+
/* @__PURE__ */ O(j, {
|
|
201
|
+
storageKey: "labsofscience-cartowner-dashboard",
|
|
202
|
+
steps: [
|
|
203
|
+
{
|
|
204
|
+
id: "offerings",
|
|
205
|
+
label: "Set up your menu & inventory",
|
|
206
|
+
description: "Add products and services customers can order.",
|
|
207
|
+
icon: /* @__PURE__ */ O(y, { className: "h-4 w-4" }),
|
|
208
|
+
onClick: () => i("/cart-owner/inventory")
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
id: "orders",
|
|
212
|
+
label: "Process incoming orders",
|
|
213
|
+
description: "Accept, prepare and dispatch live orders.",
|
|
214
|
+
icon: /* @__PURE__ */ O(S, { className: "h-4 w-4" }),
|
|
215
|
+
onClick: () => i("/cart-owner/orders")
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
id: "staff",
|
|
219
|
+
label: "Add your team",
|
|
220
|
+
description: "Invite workers and assign them to your cart.",
|
|
221
|
+
icon: /* @__PURE__ */ O(D, { className: "h-4 w-4" }),
|
|
222
|
+
onClick: () => i("/cart-owner/staff")
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
}),
|
|
195
226
|
/* @__PURE__ */ O("div", {
|
|
196
|
-
className: t("p-4 rounded-lg border-l-4",
|
|
227
|
+
className: t("p-4 rounded-lg border-l-4", G.isOpen ? "border-status-success-border bg-status-success-bg-subtle" : "border-status-error-border bg-status-error-bg-subtle"),
|
|
197
228
|
children: /* @__PURE__ */ k("div", {
|
|
198
229
|
className: "flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4",
|
|
199
230
|
children: [/* @__PURE__ */ k("div", {
|
|
200
231
|
className: "flex items-start gap-3",
|
|
201
|
-
children: [/* @__PURE__ */ O("div", { className: t("w-3 h-3 rounded-full mt-1 shrink-0",
|
|
232
|
+
children: [/* @__PURE__ */ O("div", { className: t("w-3 h-3 rounded-full mt-1 shrink-0", G.isOpen ? "bg-status-success-bg" : "bg-status-error-bg") }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("h3", {
|
|
202
233
|
className: "font-semibold text-text-primary text-sm",
|
|
203
|
-
children: ["Service Status: ",
|
|
234
|
+
children: ["Service Status: ", G.isOpen ? "Open" : "Closed"]
|
|
204
235
|
}), /* @__PURE__ */ k("div", {
|
|
205
236
|
className: "flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-4 mt-1 text-xs text-text-secondary",
|
|
206
237
|
children: [/* @__PURE__ */ k("span", {
|
|
207
238
|
className: "flex items-center gap-1",
|
|
208
|
-
children: [/* @__PURE__ */ O(v, { className: "h-3 w-3 shrink-0" }),
|
|
239
|
+
children: [/* @__PURE__ */ O(v, { className: "h-3 w-3 shrink-0" }), G.currentLocation]
|
|
209
240
|
}), /* @__PURE__ */ k("span", {
|
|
210
241
|
className: "flex items-center gap-1",
|
|
211
|
-
children: [/* @__PURE__ */ O(p, { className: "h-3 w-3 shrink-0" }),
|
|
242
|
+
children: [/* @__PURE__ */ O(p, { className: "h-3 w-3 shrink-0" }), G.operatingHours]
|
|
212
243
|
})]
|
|
213
244
|
})] })]
|
|
214
245
|
}), /* @__PURE__ */ k("div", {
|
|
@@ -216,23 +247,23 @@ var A = {
|
|
|
216
247
|
children: [/* @__PURE__ */ k("button", {
|
|
217
248
|
type: "button",
|
|
218
249
|
onClick: () => i("/cart-owner/settings"),
|
|
219
|
-
className: "inline-flex items-center gap-1 rounded-md border border-border-
|
|
250
|
+
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
251
|
children: [/* @__PURE__ */ O(v, { className: "h-3 w-3" }), "Update Location"]
|
|
221
252
|
}), /* @__PURE__ */ O("button", {
|
|
222
253
|
type: "button",
|
|
223
254
|
onClick: () => {
|
|
224
|
-
|
|
255
|
+
K((e) => e && {
|
|
225
256
|
...e,
|
|
226
257
|
isOpen: !e.isOpen
|
|
227
258
|
});
|
|
228
259
|
},
|
|
229
|
-
className: t("inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-xs font-medium transition-colors",
|
|
230
|
-
children:
|
|
260
|
+
className: t("inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-xs font-medium transition-colors", G.isOpen ? "bg-status-error-bg-subtle text-status-error-text hover:bg-status-error-bg-subtle dark:text-status-error-text" : "bg-status-success-bg-subtle text-status-success-text hover:bg-status-success-bg-subtle dark:text-status-success-text"),
|
|
261
|
+
children: G.isOpen ? "Close Service" : "Open Service"
|
|
231
262
|
})]
|
|
232
263
|
})]
|
|
233
264
|
})
|
|
234
265
|
}),
|
|
235
|
-
/* @__PURE__ */ k(
|
|
266
|
+
/* @__PURE__ */ k(A, { children: [/* @__PURE__ */ O("h2", {
|
|
236
267
|
className: "text-base font-semibold text-text-primary mb-3",
|
|
237
268
|
children: "Today's Performance"
|
|
238
269
|
}), /* @__PURE__ */ O("div", {
|
|
@@ -240,28 +271,28 @@ var A = {
|
|
|
240
271
|
children: [
|
|
241
272
|
{
|
|
242
273
|
label: "Daily Revenue",
|
|
243
|
-
value: r(
|
|
274
|
+
value: r(N.dailyRevenue, { minimumFractionDigits: 0 }),
|
|
244
275
|
icon: _,
|
|
245
276
|
trend: "+15.2% vs yesterday",
|
|
246
277
|
trendUp: !0
|
|
247
278
|
},
|
|
248
279
|
{
|
|
249
280
|
label: "Orders Today",
|
|
250
|
-
value: String(
|
|
281
|
+
value: String(N.ordersToday),
|
|
251
282
|
icon: S,
|
|
252
283
|
trend: "+8.5% vs yesterday",
|
|
253
284
|
trendUp: !0
|
|
254
285
|
},
|
|
255
286
|
{
|
|
256
287
|
label: "Avg Order Value",
|
|
257
|
-
value: r(
|
|
288
|
+
value: r(N.averageOrderValue, { minimumFractionDigits: 0 }),
|
|
258
289
|
icon: T,
|
|
259
290
|
trend: "+3.2% vs last week",
|
|
260
291
|
trendUp: !0
|
|
261
292
|
},
|
|
262
293
|
{
|
|
263
294
|
label: "Service Rating",
|
|
264
|
-
value:
|
|
295
|
+
value: N.rating.toFixed(1),
|
|
265
296
|
icon: C,
|
|
266
297
|
trend: "Based on 342 reviews",
|
|
267
298
|
trendUp: !0
|
|
@@ -269,7 +300,7 @@ var A = {
|
|
|
269
300
|
].map((e) => {
|
|
270
301
|
let t = e.icon;
|
|
271
302
|
return /* @__PURE__ */ k("div", {
|
|
272
|
-
className: "rounded-lg border border-border-
|
|
303
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
273
304
|
children: [
|
|
274
305
|
/* @__PURE__ */ k("div", {
|
|
275
306
|
className: "flex items-center justify-between",
|
|
@@ -278,7 +309,7 @@ var A = {
|
|
|
278
309
|
children: /* @__PURE__ */ O(t, { className: "h-5 w-5 text-text-secondary" })
|
|
279
310
|
}), /* @__PURE__ */ k("div", {
|
|
280
311
|
className: "flex items-center gap-1 text-xs text-text-secondary",
|
|
281
|
-
children: [e.trendUp ? /* @__PURE__ */ O(T, { className: "h-3 w-3 text-
|
|
312
|
+
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
313
|
})]
|
|
283
314
|
}),
|
|
284
315
|
/* @__PURE__ */ O("p", {
|
|
@@ -307,31 +338,31 @@ var A = {
|
|
|
307
338
|
{
|
|
308
339
|
label: "Service Config",
|
|
309
340
|
icon: x,
|
|
310
|
-
color: "bg-
|
|
341
|
+
color: "bg-status-warning-bg-subtle text-status-warning-text",
|
|
311
342
|
path: "/cart-owner/service-config"
|
|
312
343
|
},
|
|
313
344
|
{
|
|
314
345
|
label: "Manage Offerings",
|
|
315
346
|
icon: y,
|
|
316
|
-
color: "bg-
|
|
347
|
+
color: "bg-status-info-bg-subtle text-status-info-text",
|
|
317
348
|
path: "/cart-owner/inventory"
|
|
318
349
|
},
|
|
319
350
|
{
|
|
320
351
|
label: "View Orders",
|
|
321
352
|
icon: S,
|
|
322
|
-
color: "bg-
|
|
353
|
+
color: "bg-status-success-bg-subtle text-status-success-text",
|
|
323
354
|
path: "/cart-owner/orders"
|
|
324
355
|
},
|
|
325
356
|
{
|
|
326
357
|
label: "Analytics",
|
|
327
358
|
icon: l,
|
|
328
|
-
color: "bg-
|
|
359
|
+
color: "bg-[color-mix(in_oklab,var(--color-accent-purple)_14%,transparent)] text-accent-purple",
|
|
329
360
|
path: "/cart-owner/analytics"
|
|
330
361
|
},
|
|
331
362
|
{
|
|
332
363
|
label: "Staff",
|
|
333
364
|
icon: E,
|
|
334
|
-
color: "bg-
|
|
365
|
+
color: "bg-[color-mix(in_oklab,var(--color-accent-purple)_14%,transparent)] text-accent-purple",
|
|
335
366
|
path: "/cart-owner/staff"
|
|
336
367
|
}
|
|
337
368
|
].map((e) => {
|
|
@@ -360,8 +391,8 @@ var A = {
|
|
|
360
391
|
})]
|
|
361
392
|
}), /* @__PURE__ */ O("div", {
|
|
362
393
|
className: "space-y-3",
|
|
363
|
-
children:
|
|
364
|
-
className: "rounded-lg border border-border-
|
|
394
|
+
children: U.map((e) => /* @__PURE__ */ O("div", {
|
|
395
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
|
|
365
396
|
children: /* @__PURE__ */ k("div", {
|
|
366
397
|
className: "flex flex-col lg:flex-row lg:items-start lg:justify-between gap-3",
|
|
367
398
|
children: [/* @__PURE__ */ k("div", {
|
|
@@ -375,10 +406,10 @@ var A = {
|
|
|
375
406
|
children: ["#", e.id]
|
|
376
407
|
}),
|
|
377
408
|
/* @__PURE__ */ O("span", {
|
|
378
|
-
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize",
|
|
409
|
+
className: t("inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium capitalize", B[e.status] || "bg-bg-sunken text-text-secondary"),
|
|
379
410
|
children: e.status
|
|
380
411
|
}),
|
|
381
|
-
e.priority === "urgent" && /* @__PURE__ */ O(s, { className: "h-4 w-4 text-
|
|
412
|
+
e.priority === "urgent" && /* @__PURE__ */ O(s, { className: "h-4 w-4 text-status-error-text" })
|
|
382
413
|
]
|
|
383
414
|
}),
|
|
384
415
|
/* @__PURE__ */ k("p", {
|
|
@@ -406,19 +437,19 @@ var A = {
|
|
|
406
437
|
/* @__PURE__ */ k("button", {
|
|
407
438
|
type: "button",
|
|
408
439
|
onClick: () => i("/cart-owner/orders"),
|
|
409
|
-
className: "inline-flex items-center gap-1 rounded-md border border-border-
|
|
440
|
+
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
441
|
children: [/* @__PURE__ */ O(h, { className: "h-3 w-3" }), "View"]
|
|
411
442
|
}),
|
|
412
443
|
e.status === "pending" && /* @__PURE__ */ k("button", {
|
|
413
444
|
type: "button",
|
|
414
|
-
onClick: () =>
|
|
415
|
-
className: "inline-flex items-center gap-1 rounded-md bg-
|
|
445
|
+
onClick: () => q(e.id),
|
|
446
|
+
className: "inline-flex items-center gap-1 rounded-md bg-status-success-bg-subtle px-3 py-1.5 text-xs font-medium text-status-success-text hover:bg-status-success-bg-subtle dark:text-status-success-text transition-colors",
|
|
416
447
|
children: [/* @__PURE__ */ O(d, { className: "h-3 w-3" }), "Accept"]
|
|
417
448
|
}),
|
|
418
449
|
e.status === "preparing" && /* @__PURE__ */ k("button", {
|
|
419
450
|
type: "button",
|
|
420
|
-
onClick: () =>
|
|
421
|
-
className: "inline-flex items-center gap-1 rounded-md bg-
|
|
451
|
+
onClick: () => J(e.id),
|
|
452
|
+
className: "inline-flex items-center gap-1 rounded-md bg-status-info-bg-subtle px-3 py-1.5 text-xs font-medium text-status-info-text hover:bg-status-info-bg-subtle dark:text-status-info-text transition-colors",
|
|
422
453
|
children: [/* @__PURE__ */ O(d, { className: "h-3 w-3" }), "Mark Ready"]
|
|
423
454
|
})
|
|
424
455
|
]
|
|
@@ -427,9 +458,9 @@ var A = {
|
|
|
427
458
|
}, e.id))
|
|
428
459
|
})] }),
|
|
429
460
|
/* @__PURE__ */ k("div", {
|
|
430
|
-
className: "rounded-lg border border-border-
|
|
461
|
+
className: "rounded-lg border border-border-seam bg-bg-surface shadow-sm",
|
|
431
462
|
children: [/* @__PURE__ */ k("div", {
|
|
432
|
-
className: "flex items-center justify-between border-b border-border-
|
|
463
|
+
className: "flex items-center justify-between border-b border-border-seam px-5 py-4",
|
|
433
464
|
children: [/* @__PURE__ */ O("h3", {
|
|
434
465
|
className: "text-base font-semibold text-text-primary",
|
|
435
466
|
children: "Revenue (Last 7 Days)"
|
|
@@ -444,7 +475,7 @@ var A = {
|
|
|
444
475
|
children: /* @__PURE__ */ k("table", {
|
|
445
476
|
className: "w-full text-sm",
|
|
446
477
|
children: [/* @__PURE__ */ O("thead", { children: /* @__PURE__ */ k("tr", {
|
|
447
|
-
className: "border-b border-border-
|
|
478
|
+
className: "border-b border-border-seam",
|
|
448
479
|
children: [
|
|
449
480
|
/* @__PURE__ */ O("th", {
|
|
450
481
|
className: "px-5 py-3 text-left font-medium text-text-secondary",
|
|
@@ -463,10 +494,10 @@ var A = {
|
|
|
463
494
|
children: "Trend"
|
|
464
495
|
})
|
|
465
496
|
]
|
|
466
|
-
}) }), /* @__PURE__ */ O("tbody", { children:
|
|
467
|
-
let n = Math.max(...
|
|
497
|
+
}) }), /* @__PURE__ */ O("tbody", { children: R.map((e, t) => {
|
|
498
|
+
let n = Math.max(...R.map((e) => e.revenue)), i = e.revenue / n * 100;
|
|
468
499
|
return /* @__PURE__ */ k("tr", {
|
|
469
|
-
className: "border-b border-border-
|
|
500
|
+
className: "border-b border-border-seam last:border-0",
|
|
470
501
|
children: [
|
|
471
502
|
/* @__PURE__ */ O("td", {
|
|
472
503
|
className: "px-5 py-3 text-text-primary text-xs",
|
|
@@ -489,7 +520,7 @@ var A = {
|
|
|
489
520
|
children: /* @__PURE__ */ O("div", {
|
|
490
521
|
className: "h-4 rounded bg-bg-sunken overflow-hidden",
|
|
491
522
|
children: /* @__PURE__ */ O("div", {
|
|
492
|
-
className: "h-full rounded bg-
|
|
523
|
+
className: "h-full rounded bg-status-info-bg-subtle",
|
|
493
524
|
style: { width: `${i}%` }
|
|
494
525
|
})
|
|
495
526
|
})
|
|
@@ -501,7 +532,7 @@ var A = {
|
|
|
501
532
|
})]
|
|
502
533
|
}),
|
|
503
534
|
/* @__PURE__ */ k("div", {
|
|
504
|
-
className: "rounded-lg border border-border-
|
|
535
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
505
536
|
children: [/* @__PURE__ */ O("h3", {
|
|
506
537
|
className: "text-base font-semibold text-text-primary mb-4",
|
|
507
538
|
children: "This Month Summary"
|
|
@@ -512,7 +543,7 @@ var A = {
|
|
|
512
543
|
className: "text-center p-3 rounded-lg bg-bg-sunken/50",
|
|
513
544
|
children: [/* @__PURE__ */ O("div", {
|
|
514
545
|
className: "text-xl font-bold text-text-primary",
|
|
515
|
-
children: r(
|
|
546
|
+
children: r(N.totalRevenue, { minimumFractionDigits: 0 })
|
|
516
547
|
}), /* @__PURE__ */ O("div", {
|
|
517
548
|
className: "text-xs text-text-secondary mt-1",
|
|
518
549
|
children: "Total Revenue"
|
|
@@ -522,7 +553,7 @@ var A = {
|
|
|
522
553
|
className: "text-center p-3 rounded-lg bg-bg-sunken/50",
|
|
523
554
|
children: [/* @__PURE__ */ O("div", {
|
|
524
555
|
className: "text-xl font-bold text-text-primary",
|
|
525
|
-
children:
|
|
556
|
+
children: N.totalOrders
|
|
526
557
|
}), /* @__PURE__ */ O("div", {
|
|
527
558
|
className: "text-xs text-text-secondary mt-1",
|
|
528
559
|
children: "Total Orders"
|
|
@@ -532,7 +563,7 @@ var A = {
|
|
|
532
563
|
className: "text-center p-3 rounded-lg bg-bg-sunken/50",
|
|
533
564
|
children: [/* @__PURE__ */ O("div", {
|
|
534
565
|
className: "text-xl font-bold text-text-primary",
|
|
535
|
-
children:
|
|
566
|
+
children: N.customerCount
|
|
536
567
|
}), /* @__PURE__ */ O("div", {
|
|
537
568
|
className: "text-xs text-text-secondary mt-1",
|
|
538
569
|
children: "Unique Customers"
|
|
@@ -546,21 +577,21 @@ var A = {
|
|
|
546
577
|
className: "space-y-6",
|
|
547
578
|
children: [
|
|
548
579
|
/* @__PURE__ */ k("div", {
|
|
549
|
-
className: "rounded-lg border border-border-
|
|
580
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
550
581
|
children: [/* @__PURE__ */ k("div", {
|
|
551
582
|
className: "flex items-center justify-between mb-4",
|
|
552
583
|
children: [/* @__PURE__ */ k("h3", {
|
|
553
584
|
className: "text-base font-semibold text-text-primary flex items-center gap-2",
|
|
554
585
|
children: [/* @__PURE__ */ O(u, { className: "h-4 w-4" }), "Notifications"]
|
|
555
586
|
}), /* @__PURE__ */ O("span", {
|
|
556
|
-
className: "inline-flex items-center justify-center rounded-full bg-
|
|
557
|
-
children:
|
|
587
|
+
className: "inline-flex items-center justify-center rounded-full bg-status-error-bg text-white text-[10px] font-bold h-5 w-5",
|
|
588
|
+
children: L.length
|
|
558
589
|
})]
|
|
559
590
|
}), /* @__PURE__ */ O("div", {
|
|
560
591
|
className: "space-y-3",
|
|
561
|
-
children:
|
|
592
|
+
children: L.map((e) => /* @__PURE__ */ k("div", {
|
|
562
593
|
className: "flex items-start gap-2",
|
|
563
|
-
children: [/* @__PURE__ */ O(o, { className: t("h-4 w-4 mt-0.5 shrink-0",
|
|
594
|
+
children: [/* @__PURE__ */ O(o, { className: t("h-4 w-4 mt-0.5 shrink-0", H[e.type]) }), /* @__PURE__ */ k("div", {
|
|
564
595
|
className: "min-w-0",
|
|
565
596
|
children: [/* @__PURE__ */ O("p", {
|
|
566
597
|
className: "text-xs text-text-primary leading-tight",
|
|
@@ -574,13 +605,13 @@ var A = {
|
|
|
574
605
|
})]
|
|
575
606
|
}),
|
|
576
607
|
/* @__PURE__ */ k("div", {
|
|
577
|
-
className: "rounded-lg border border-border-
|
|
608
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
578
609
|
children: [/* @__PURE__ */ k("h3", {
|
|
579
610
|
className: "text-base font-semibold text-text-primary mb-4 flex items-center gap-2",
|
|
580
|
-
children: [/* @__PURE__ */ O(g, { className: "h-4 w-4 text-
|
|
611
|
+
children: [/* @__PURE__ */ O(g, { className: "h-4 w-4 text-status-warning-text" }), "Top Selling Items"]
|
|
581
612
|
}), /* @__PURE__ */ O("div", {
|
|
582
613
|
className: "space-y-3",
|
|
583
|
-
children:
|
|
614
|
+
children: F.map((e, t) => /* @__PURE__ */ k("div", {
|
|
584
615
|
className: "flex items-center justify-between",
|
|
585
616
|
children: [/* @__PURE__ */ k("div", {
|
|
586
617
|
className: "flex items-center gap-2 min-w-0",
|
|
@@ -605,7 +636,7 @@ var A = {
|
|
|
605
636
|
})]
|
|
606
637
|
}),
|
|
607
638
|
/* @__PURE__ */ k("div", {
|
|
608
|
-
className: "rounded-lg border border-border-
|
|
639
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
609
640
|
children: [/* @__PURE__ */ k("div", {
|
|
610
641
|
className: "flex items-center justify-between mb-4",
|
|
611
642
|
children: [/* @__PURE__ */ k("h3", {
|
|
@@ -619,11 +650,11 @@ var A = {
|
|
|
619
650
|
})]
|
|
620
651
|
}), /* @__PURE__ */ O("div", {
|
|
621
652
|
className: "space-y-3",
|
|
622
|
-
children:
|
|
653
|
+
children: I.map((e) => /* @__PURE__ */ k("div", {
|
|
623
654
|
className: "flex items-center justify-between",
|
|
624
655
|
children: [/* @__PURE__ */ k("div", {
|
|
625
656
|
className: "flex items-center gap-2",
|
|
626
|
-
children: [/* @__PURE__ */ O("div", { className: t("w-2 h-2 rounded-full",
|
|
657
|
+
children: [/* @__PURE__ */ O("div", { className: t("w-2 h-2 rounded-full", V[e.status]) }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
|
|
627
658
|
className: "text-xs font-medium text-text-primary",
|
|
628
659
|
children: e.name
|
|
629
660
|
}), /* @__PURE__ */ O("p", {
|
|
@@ -638,7 +669,7 @@ var A = {
|
|
|
638
669
|
})]
|
|
639
670
|
}),
|
|
640
671
|
/* @__PURE__ */ k("div", {
|
|
641
|
-
className: "rounded-lg border border-border-
|
|
672
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
642
673
|
children: [/* @__PURE__ */ O("h3", {
|
|
643
674
|
className: "text-base font-semibold text-text-primary mb-4",
|
|
644
675
|
children: "Quick Stats"
|
|
@@ -652,7 +683,7 @@ var A = {
|
|
|
652
683
|
children: "Active Offerings"
|
|
653
684
|
}), /* @__PURE__ */ O("span", {
|
|
654
685
|
className: "text-sm font-semibold text-text-primary",
|
|
655
|
-
children:
|
|
686
|
+
children: N.activeOfferings
|
|
656
687
|
})]
|
|
657
688
|
}),
|
|
658
689
|
/* @__PURE__ */ k("div", {
|
|
@@ -662,7 +693,7 @@ var A = {
|
|
|
662
693
|
children: "Customer Rating"
|
|
663
694
|
}), /* @__PURE__ */ k("span", {
|
|
664
695
|
className: "text-sm font-semibold text-text-primary flex items-center gap-1",
|
|
665
|
-
children: [/* @__PURE__ */ O(C, { className: "h-3 w-3 text-
|
|
696
|
+
children: [/* @__PURE__ */ O(C, { className: "h-3 w-3 text-status-warning-text fill-status-warning-text" }), N.rating]
|
|
666
697
|
})]
|
|
667
698
|
}),
|
|
668
699
|
/* @__PURE__ */ k("div", {
|
|
@@ -672,14 +703,14 @@ var A = {
|
|
|
672
703
|
children: "Total Customers"
|
|
673
704
|
}), /* @__PURE__ */ O("span", {
|
|
674
705
|
className: "text-sm font-semibold text-text-primary",
|
|
675
|
-
children:
|
|
706
|
+
children: N.customerCount
|
|
676
707
|
})]
|
|
677
708
|
})
|
|
678
709
|
]
|
|
679
710
|
})]
|
|
680
711
|
}),
|
|
681
712
|
/* @__PURE__ */ k("div", {
|
|
682
|
-
className: "rounded-lg border border-border-
|
|
713
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
683
714
|
children: [/* @__PURE__ */ O("h3", {
|
|
684
715
|
className: "text-base font-semibold text-text-primary mb-3",
|
|
685
716
|
children: "Business Settings"
|
|
@@ -706,7 +737,7 @@ var A = {
|
|
|
706
737
|
return /* @__PURE__ */ k("button", {
|
|
707
738
|
type: "button",
|
|
708
739
|
onClick: () => i(e.path),
|
|
709
|
-
className: "w-full flex items-center justify-between rounded-md border border-border-
|
|
740
|
+
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
741
|
children: [/* @__PURE__ */ k("span", {
|
|
711
742
|
className: "flex items-center gap-2",
|
|
712
743
|
children: [/* @__PURE__ */ O(t, { className: "h-3.5 w-3.5" }), e.label]
|
|
@@ -716,7 +747,7 @@ var A = {
|
|
|
716
747
|
})]
|
|
717
748
|
}),
|
|
718
749
|
/* @__PURE__ */ k("div", {
|
|
719
|
-
className: "rounded-lg border border-border-
|
|
750
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-5 shadow-sm",
|
|
720
751
|
children: [/* @__PURE__ */ O("h3", {
|
|
721
752
|
className: "text-base font-semibold text-text-primary mb-3",
|
|
722
753
|
children: "Recent Activity"
|
|
@@ -725,21 +756,21 @@ var A = {
|
|
|
725
756
|
children: [
|
|
726
757
|
/* @__PURE__ */ k("div", {
|
|
727
758
|
className: "flex items-center gap-2",
|
|
728
|
-
children: [/* @__PURE__ */ O(o, { className: "h-3.5 w-3.5 text-
|
|
759
|
+
children: [/* @__PURE__ */ O(o, { className: "h-3.5 w-3.5 text-status-success-text" }), /* @__PURE__ */ O("span", {
|
|
729
760
|
className: "text-text-secondary",
|
|
730
761
|
children: "Order #ORD-003 delivered"
|
|
731
762
|
})]
|
|
732
763
|
}),
|
|
733
764
|
/* @__PURE__ */ k("div", {
|
|
734
765
|
className: "flex items-center gap-2",
|
|
735
|
-
children: [/* @__PURE__ */ O(o, { className: "h-3.5 w-3.5 text-
|
|
766
|
+
children: [/* @__PURE__ */ O(o, { className: "h-3.5 w-3.5 text-status-info-text" }), /* @__PURE__ */ O("span", {
|
|
736
767
|
className: "text-text-secondary",
|
|
737
768
|
children: "Inventory updated"
|
|
738
769
|
})]
|
|
739
770
|
}),
|
|
740
771
|
/* @__PURE__ */ k("div", {
|
|
741
772
|
className: "flex items-center gap-2",
|
|
742
|
-
children: [/* @__PURE__ */ O(o, { className: "h-3.5 w-3.5 text-
|
|
773
|
+
children: [/* @__PURE__ */ O(o, { className: "h-3.5 w-3.5 text-status-warning-text" }), /* @__PURE__ */ O("span", {
|
|
743
774
|
className: "text-text-secondary",
|
|
744
775
|
children: "New customer review"
|
|
745
776
|
})]
|
|
@@ -755,6 +786,6 @@ var A = {
|
|
|
755
786
|
});
|
|
756
787
|
};
|
|
757
788
|
//#endregion
|
|
758
|
-
export {
|
|
789
|
+
export { U as CartOwnerDashboard };
|
|
759
790
|
|
|
760
791
|
//# sourceMappingURL=CartOwnerDashboard.js.map
|