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