@burdenoff/microfe-coolandlovely 2026.625.1 → 2026.625.2

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