@burdenoff/microfe-labsofscience 2026.625.1 → 2026.626.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/labsofscience/pages/HomePage.js +33 -28
  2. package/dist/labsofscience/pages/HomePage.js.map +1 -1
  3. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +67 -61
  4. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
  5. package/dist/labsofscience/pages/admin/AdminDashboard.js +76 -44
  6. package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
  7. package/dist/labsofscience/pages/admin/AdminFinancialPage.js +38 -32
  8. package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
  9. package/dist/labsofscience/pages/admin/AdminOrdersPage.js +226 -221
  10. package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
  11. package/dist/labsofscience/pages/admin/AdminProfilePage.js +127 -125
  12. package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
  13. package/dist/labsofscience/pages/admin/AdminSettingsPage.js +489 -487
  14. package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
  15. package/dist/labsofscience/pages/admin/CartManagementPage.js +124 -119
  16. package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
  17. package/dist/labsofscience/pages/admin/UserManagementPage.js +267 -262
  18. package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
  19. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +46 -41
  20. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  21. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +172 -167
  22. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  23. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +79 -48
  24. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  25. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +98 -93
  26. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  27. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +112 -107
  28. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  29. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +298 -300
  30. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  31. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +221 -223
  32. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
  33. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +251 -245
  34. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
  35. package/dist/labsofscience/pages/common/HelpSupportPage.js +284 -285
  36. package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
  37. package/dist/labsofscience/pages/common/NotificationCenterPage.js +48 -42
  38. package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
  39. package/dist/labsofscience/pages/common/SettingsPage.js +745 -736
  40. package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
  41. package/dist/labsofscience/pages/customer/BookingDetailsPage.js +399 -356
  42. package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
  43. package/dist/labsofscience/pages/customer/CartDetailPage.js +262 -230
  44. package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
  45. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +162 -151
  46. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
  47. package/dist/labsofscience/pages/customer/CheckoutPage.js +213 -215
  48. package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
  49. package/dist/labsofscience/pages/customer/CustomerDashboard.js +416 -381
  50. package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
  51. package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
  52. package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
  53. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +521 -512
  54. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
  55. package/dist/labsofscience/pages/customer/FavoritesPage.js +57 -51
  56. package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
  57. package/dist/labsofscience/pages/customer/OrderHistoryPage.js +56 -50
  58. package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
  59. package/dist/labsofscience/pages/customer/OrderTrackingPage.js +310 -274
  60. package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
  61. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +81 -75
  62. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
  63. package/dist/labsofscience/pages/customer/ReviewsPage.js +68 -62
  64. package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
  65. package/dist/labsofscience/pages/customer/SavedAddressesPage.js +61 -55
  66. package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
  67. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +92 -60
  68. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
  69. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +237 -231
  70. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  71. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +60 -54
  72. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  73. package/dist/labsofscience/pages/investor/InvestorDashboard.js +342 -307
  74. package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
  75. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +106 -100
  76. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  77. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +51 -45
  78. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
  79. package/dist/labsofscience/pages/investor/InvestorProfilePage.js +386 -381
  80. package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
  81. package/dist/labsofscience/pages/worker/TaskDetailsPage.js +359 -319
  82. package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
  83. package/dist/labsofscience/pages/worker/WorkerDashboard.js +90 -59
  84. package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
  85. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +76 -71
  86. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
  87. package/dist/labsofscience/pages/worker/WorkerProfilePage.js +82 -77
  88. package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
  89. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +348 -340
  90. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
  91. package/package.json +3 -3
@@ -1,14 +1,16 @@
1
1
  import { useLabsOfScience as e } from "../../context/LabsOfScienceContext.js";
2
2
  import { cn as t } from "../../utils/cn.js";
3
3
  import { PageLayout as n } from "../../components/PageLayout.js";
4
- import { formatCurrency as r } from "../../utils/formatters.js";
5
- import { mockOrders as i } from "../../mocks/data.js";
6
- import { useMemo as a, useState as o } from "react";
7
- import { AlertCircle as s, CheckCircle2 as c, ChefHat as l, MapPin as u, PackageCheck as d, Phone as f, RefreshCw as p, Search as m, ShoppingBag as h, Truck as g, X as _, XCircle as v } from "lucide-react";
8
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
4
+ import { EmptyState as r } from "../../components/EmptyState.js";
5
+ import { formatCurrency as i } from "../../utils/formatters.js";
6
+ import { mockOrders as a } from "../../mocks/data.js";
7
+ import { useMemo as o, useState as s } from "react";
8
+ import { AlertCircle as c, CheckCircle2 as l, ChefHat as u, MapPin as d, PackageCheck as f, Phone as p, RefreshCw as m, Search as h, ShoppingBag as g, Truck as _, X as v, XCircle as y } from "lucide-react";
9
+ import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
10
+ import { EmphasisPanel as C, PagePurpose as w } from "@burdenoff/fe-libs/ui";
9
11
  //#region src/labsofscience/pages/cart-owner/OrderManagementPage.tsx
10
- var S = [
11
- ...i,
12
+ var T = [
13
+ ...a,
12
14
  {
13
15
  id: "ORD-010",
14
16
  cartId: "FOOD-001",
@@ -240,7 +242,7 @@ var S = [
240
242
  customerPhone: "+91-9876543224",
241
243
  fulfillmentType: "delivery"
242
244
  }
243
- ], C = {
245
+ ], E = {
244
246
  pending: {
245
247
  color: "bg-status-warning-bg-subtle text-status-warning-text",
246
248
  label: "New Order"
@@ -269,54 +271,54 @@ var S = [
269
271
  color: "bg-status-error-bg-subtle text-status-error-text",
270
272
  label: "Cancelled"
271
273
  }
272
- }, w = {
274
+ }, D = {
273
275
  delivery: {
274
- icon: g,
276
+ icon: _,
275
277
  label: "Delivery",
276
278
  color: "bg-[color-mix(in_oklab,var(--color-accent-purple)_14%,transparent)] text-accent-purple"
277
279
  },
278
280
  pickup: {
279
- icon: h,
281
+ icon: g,
280
282
  label: "Pickup",
281
283
  color: "bg-status-info-bg-subtle text-status-info-text"
282
284
  },
283
285
  cart_dispatch: {
284
- icon: u,
286
+ icon: d,
285
287
  label: "Cart Dispatch",
286
288
  color: "bg-bg-sunken text-text-secondary"
287
289
  }
288
- }, T = (e) => {
290
+ }, O = (e) => {
289
291
  let t = new Date(e), n = Math.floor(((/* @__PURE__ */ new Date()).getTime() - t.getTime()) / (1e3 * 60));
290
292
  return n < 1 ? "Just now" : n < 60 ? `${n} min ago` : n < 1440 ? `${Math.floor(n / 60)} hours ago` : t.toLocaleDateString("en-IN", {
291
293
  day: "2-digit",
292
294
  month: "short"
293
295
  });
294
- }, E = (e) => new Date(e).toLocaleTimeString("en-IN", {
296
+ }, k = (e) => new Date(e).toLocaleTimeString("en-IN", {
295
297
  hour: "numeric",
296
298
  minute: "2-digit",
297
299
  hour12: !0
298
- }), D = (e) => {
300
+ }), A = (e) => {
299
301
  let t = ((/* @__PURE__ */ new Date()).getTime() - new Date(e.orderDate).getTime()) / (1e3 * 60);
300
302
  return e.status === "pending" && t > 10 ? "border-status-error-border bg-status-error-bg-subtle" : e.status === "preparing" && t > 30 ? "border-status-warning-border bg-status-warning-bg-subtle" : "border-border-seam";
301
- }, O = () => {
302
- let { navigateTo: i } = e(), [h, g] = o(S), [O, k] = o({
303
+ }, j = () => {
304
+ let { navigateTo: a } = e(), [_, j] = s(T), [M, N] = s({
303
305
  status: "",
304
306
  dateRange: "all",
305
307
  searchQuery: "",
306
308
  sortBy: "recent",
307
309
  fulfillmentType: ""
308
- }), [A, j] = o(null), [M, N] = o(!1), [P, F] = o(null), I = (e, t) => {
309
- F({
310
+ }), [P, F] = s(null), [I, L] = s(!1), [R, z] = s(null), B = (e, t) => {
311
+ z({
310
312
  text: e,
311
313
  type: t
312
- }), setTimeout(() => F(null), 3e3);
313
- }, L = a(() => {
314
- let e = h.length, t = h.filter((e) => e.status === "pending").length, n = h.filter((e) => [
314
+ }), setTimeout(() => z(null), 3e3);
315
+ }, V = o(() => {
316
+ let e = _.length, t = _.filter((e) => e.status === "pending").length, n = _.filter((e) => [
315
317
  "confirmed",
316
318
  "preparing",
317
319
  "ready",
318
320
  "out_for_delivery"
319
- ].includes(e.status)).length, r = h.filter((e) => e.status === "delivered").length, i = h.filter((e) => e.status === "delivered").reduce((e, t) => e + t.total, 0);
321
+ ].includes(e.status)).length, r = _.filter((e) => e.status === "delivered").length, i = _.filter((e) => e.status === "delivered").reduce((e, t) => e + t.total, 0);
320
322
  return {
321
323
  total: e,
322
324
  pending: t,
@@ -325,17 +327,17 @@ var S = [
325
327
  totalRevenue: i,
326
328
  avgOrder: r > 0 ? Math.round(i / r) : 0
327
329
  };
328
- }, [h]), R = a(() => {
329
- let e = [...h];
330
- if (O.status && (e = e.filter((e) => e.status === O.status)), O.fulfillmentType && (e = e.filter((e) => e.fulfillmentType === O.fulfillmentType)), O.searchQuery) {
331
- let t = O.searchQuery.toLowerCase();
330
+ }, [_]), H = o(() => {
331
+ let e = [..._];
332
+ if (M.status && (e = e.filter((e) => e.status === M.status)), M.fulfillmentType && (e = e.filter((e) => e.fulfillmentType === M.fulfillmentType)), M.searchQuery) {
333
+ let t = M.searchQuery.toLowerCase();
332
334
  e = e.filter((e) => e.id.toLowerCase().includes(t) || (e.customerName || "").toLowerCase().includes(t) || e.items.some((e) => e.name.toLowerCase().includes(t)));
333
335
  }
334
- if (O.dateRange !== "all") {
336
+ if (M.dateRange !== "all") {
335
337
  let t = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
336
- O.dateRange === "today" ? n.setHours(0, 0, 0, 0) : O.dateRange === "7days" ? n.setDate(t.getDate() - 7) : O.dateRange === "30days" && n.setDate(t.getDate() - 30), e = e.filter((e) => new Date(e.orderDate) >= n);
338
+ M.dateRange === "today" ? n.setHours(0, 0, 0, 0) : M.dateRange === "7days" ? n.setDate(t.getDate() - 7) : M.dateRange === "30days" && n.setDate(t.getDate() - 30), e = e.filter((e) => new Date(e.orderDate) >= n);
337
339
  }
338
- switch (O.sortBy) {
340
+ switch (M.sortBy) {
339
341
  case "recent":
340
342
  e.sort((e, t) => new Date(t.orderDate).getTime() - new Date(e.orderDate).getTime());
341
343
  break;
@@ -350,236 +352,240 @@ var S = [
350
352
  break;
351
353
  }
352
354
  return e;
353
- }, [h, O]), z = (e, t) => {
355
+ }, [_, M]), U = (e, t) => {
354
356
  let n = {
355
357
  accept: "confirmed",
356
358
  reject: "cancelled",
357
359
  ready: "ready",
358
360
  complete: "delivered"
359
361
  };
360
- g((r) => r.map((r) => r.id === e ? {
362
+ j((r) => r.map((r) => r.id === e ? {
361
363
  ...r,
362
364
  status: n[t]
363
- } : r)), I({
365
+ } : r)), B({
364
366
  accept: "Order accepted",
365
367
  reject: "Order rejected",
366
368
  ready: "Order marked as ready",
367
369
  complete: "Order completed"
368
- }[t], "success"), M && A?.id === e && N(!1);
370
+ }[t], "success"), I && P?.id === e && L(!1);
369
371
  };
370
- return /* @__PURE__ */ x(n, {
372
+ return /* @__PURE__ */ S(n, {
371
373
  title: "Order Management",
372
374
  description: "Manage incoming and active orders",
373
- actions: /* @__PURE__ */ x("button", {
375
+ actions: /* @__PURE__ */ S("button", {
374
376
  type: "button",
375
- onClick: () => I("Orders refreshed", "success"),
377
+ onClick: () => B("Orders refreshed", "success"),
376
378
  className: "inline-flex items-center gap-2 rounded-md border border-border-seam px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
377
- children: [/* @__PURE__ */ b(p, { className: "h-4 w-4" }), "Refresh"]
379
+ children: [/* @__PURE__ */ x(m, { className: "h-4 w-4" }), "Refresh"]
378
380
  }),
379
- children: [/* @__PURE__ */ x("div", {
381
+ children: [/* @__PURE__ */ S("div", {
380
382
  className: "space-y-4",
381
383
  children: [
382
- P && /* @__PURE__ */ x("div", {
383
- className: t("flex items-center gap-2 rounded-lg border p-3", P.type === "success" ? "border-status-success-border bg-status-success-bg-subtle" : "border-status-error-border bg-status-error-bg-subtle"),
384
- children: [P.type === "success" ? /* @__PURE__ */ b(c, { className: "h-4 w-4 text-status-success-text" }) : /* @__PURE__ */ b(s, { className: "h-4 w-4 text-status-error-text" }), /* @__PURE__ */ b("span", {
385
- className: t("text-sm font-medium", P.type === "success" ? "text-status-success-text" : "text-status-error-text"),
386
- children: P.text
384
+ R && /* @__PURE__ */ S("div", {
385
+ className: t("flex items-center gap-2 rounded-lg border p-3", R.type === "success" ? "border-status-success-border bg-status-success-bg-subtle" : "border-status-error-border bg-status-error-bg-subtle"),
386
+ children: [R.type === "success" ? /* @__PURE__ */ x(l, { className: "h-4 w-4 text-status-success-text" }) : /* @__PURE__ */ x(c, { className: "h-4 w-4 text-status-error-text" }), /* @__PURE__ */ x("span", {
387
+ className: t("text-sm font-medium", R.type === "success" ? "text-status-success-text" : "text-status-error-text"),
388
+ children: R.text
387
389
  })]
388
390
  }),
389
- /* @__PURE__ */ x("div", {
391
+ /* @__PURE__ */ x(w, {
392
+ icon: /* @__PURE__ */ x(g, { className: "h-4 w-4" }),
393
+ children: "Your live order queue. New orders land here in real time — accept or reject them, move them through preparing and ready, and complete pickups. Use the filters to focus on what needs action now, and watch the day's revenue and order counts at a glance."
394
+ }),
395
+ /* @__PURE__ */ S(C, {
390
396
  className: "grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3",
391
397
  children: [
392
- /* @__PURE__ */ x("div", {
398
+ /* @__PURE__ */ S("div", {
393
399
  className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
394
- children: [/* @__PURE__ */ b("p", {
400
+ children: [/* @__PURE__ */ x("p", {
395
401
  className: "text-xs text-text-secondary",
396
402
  children: "Total Orders"
397
- }), /* @__PURE__ */ b("p", {
403
+ }), /* @__PURE__ */ x("p", {
398
404
  className: "text-2xl font-bold text-text-primary",
399
- children: L.total
405
+ children: V.total
400
406
  })]
401
407
  }),
402
- /* @__PURE__ */ x("div", {
408
+ /* @__PURE__ */ S("div", {
403
409
  className: "rounded-lg border border-status-warning-border bg-status-warning-bg-subtle p-4 shadow-sm",
404
- children: [/* @__PURE__ */ b("p", {
410
+ children: [/* @__PURE__ */ x("p", {
405
411
  className: "text-xs text-status-warning-text",
406
412
  children: "Pending"
407
- }), /* @__PURE__ */ b("p", {
413
+ }), /* @__PURE__ */ x("p", {
408
414
  className: "text-2xl font-bold text-status-warning-text",
409
- children: L.pending
415
+ children: V.pending
410
416
  })]
411
417
  }),
412
- /* @__PURE__ */ x("div", {
418
+ /* @__PURE__ */ S("div", {
413
419
  className: "rounded-lg border border-status-info-border bg-status-info-bg-subtle p-4 shadow-sm",
414
- children: [/* @__PURE__ */ b("p", {
420
+ children: [/* @__PURE__ */ x("p", {
415
421
  className: "text-xs text-status-info-text",
416
422
  children: "Active"
417
- }), /* @__PURE__ */ b("p", {
423
+ }), /* @__PURE__ */ x("p", {
418
424
  className: "text-2xl font-bold text-status-info-text",
419
- children: L.active
425
+ children: V.active
420
426
  })]
421
427
  }),
422
- /* @__PURE__ */ x("div", {
428
+ /* @__PURE__ */ S("div", {
423
429
  className: "rounded-lg border border-status-success-border bg-status-success-bg-subtle p-4 shadow-sm",
424
- children: [/* @__PURE__ */ b("p", {
430
+ children: [/* @__PURE__ */ x("p", {
425
431
  className: "text-xs text-status-success-text",
426
432
  children: "Completed"
427
- }), /* @__PURE__ */ b("p", {
433
+ }), /* @__PURE__ */ x("p", {
428
434
  className: "text-2xl font-bold text-status-success-text",
429
- children: L.completed
435
+ children: V.completed
430
436
  })]
431
437
  }),
432
- /* @__PURE__ */ x("div", {
438
+ /* @__PURE__ */ S("div", {
433
439
  className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
434
- children: [/* @__PURE__ */ b("p", {
440
+ children: [/* @__PURE__ */ x("p", {
435
441
  className: "text-xs text-text-secondary",
436
442
  children: "Total Revenue"
437
- }), /* @__PURE__ */ b("p", {
443
+ }), /* @__PURE__ */ x("p", {
438
444
  className: "text-2xl font-bold text-text-primary",
439
- children: r(L.totalRevenue, { minimumFractionDigits: 0 })
445
+ children: i(V.totalRevenue, { minimumFractionDigits: 0 })
440
446
  })]
441
447
  }),
442
- /* @__PURE__ */ x("div", {
448
+ /* @__PURE__ */ S("div", {
443
449
  className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
444
- children: [/* @__PURE__ */ b("p", {
450
+ children: [/* @__PURE__ */ x("p", {
445
451
  className: "text-xs text-text-secondary",
446
452
  children: "Avg Order"
447
- }), /* @__PURE__ */ b("p", {
453
+ }), /* @__PURE__ */ x("p", {
448
454
  className: "text-2xl font-bold text-text-primary",
449
- children: r(L.avgOrder, { minimumFractionDigits: 0 })
455
+ children: i(V.avgOrder, { minimumFractionDigits: 0 })
450
456
  })]
451
457
  })
452
458
  ]
453
459
  }),
454
- /* @__PURE__ */ b("div", {
460
+ /* @__PURE__ */ x("div", {
455
461
  className: "rounded-lg border border-border-seam bg-bg-surface p-4 shadow-sm",
456
- children: /* @__PURE__ */ x("div", {
462
+ children: /* @__PURE__ */ S("div", {
457
463
  className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-3",
458
464
  children: [
459
- /* @__PURE__ */ x("div", {
465
+ /* @__PURE__ */ S("div", {
460
466
  className: "relative sm:col-span-2 lg:col-span-1",
461
- children: [/* @__PURE__ */ b(m, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ b("input", {
467
+ children: [/* @__PURE__ */ x(h, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ x("input", {
462
468
  type: "text",
463
469
  placeholder: "Search orders...",
464
- value: O.searchQuery,
465
- onChange: (e) => k((t) => ({
470
+ value: M.searchQuery,
471
+ onChange: (e) => N((t) => ({
466
472
  ...t,
467
473
  searchQuery: e.target.value
468
474
  })),
469
475
  className: "w-full rounded-md border border-border-seam bg-bg-surface pl-10 pr-4 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
470
476
  })]
471
477
  }),
472
- /* @__PURE__ */ x("select", {
473
- value: O.status,
474
- onChange: (e) => k((t) => ({
478
+ /* @__PURE__ */ S("select", {
479
+ value: M.status,
480
+ onChange: (e) => N((t) => ({
475
481
  ...t,
476
482
  status: e.target.value
477
483
  })),
478
484
  className: "rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
479
485
  children: [
480
- /* @__PURE__ */ b("option", {
486
+ /* @__PURE__ */ x("option", {
481
487
  value: "",
482
488
  children: "All Orders"
483
489
  }),
484
- /* @__PURE__ */ b("option", {
490
+ /* @__PURE__ */ x("option", {
485
491
  value: "pending",
486
492
  children: "New Orders"
487
493
  }),
488
- /* @__PURE__ */ b("option", {
494
+ /* @__PURE__ */ x("option", {
489
495
  value: "confirmed",
490
496
  children: "Confirmed"
491
497
  }),
492
- /* @__PURE__ */ b("option", {
498
+ /* @__PURE__ */ x("option", {
493
499
  value: "preparing",
494
500
  children: "Preparing"
495
501
  }),
496
- /* @__PURE__ */ b("option", {
502
+ /* @__PURE__ */ x("option", {
497
503
  value: "ready",
498
504
  children: "Ready"
499
505
  }),
500
- /* @__PURE__ */ b("option", {
506
+ /* @__PURE__ */ x("option", {
501
507
  value: "delivered",
502
508
  children: "Completed"
503
509
  }),
504
- /* @__PURE__ */ b("option", {
510
+ /* @__PURE__ */ x("option", {
505
511
  value: "cancelled",
506
512
  children: "Cancelled"
507
513
  })
508
514
  ]
509
515
  }),
510
- /* @__PURE__ */ x("select", {
511
- value: O.fulfillmentType,
512
- onChange: (e) => k((t) => ({
516
+ /* @__PURE__ */ S("select", {
517
+ value: M.fulfillmentType,
518
+ onChange: (e) => N((t) => ({
513
519
  ...t,
514
520
  fulfillmentType: e.target.value
515
521
  })),
516
522
  className: "rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
517
523
  children: [
518
- /* @__PURE__ */ b("option", {
524
+ /* @__PURE__ */ x("option", {
519
525
  value: "",
520
526
  children: "All Types"
521
527
  }),
522
- /* @__PURE__ */ b("option", {
528
+ /* @__PURE__ */ x("option", {
523
529
  value: "pickup",
524
530
  children: "Pickup"
525
531
  }),
526
- /* @__PURE__ */ b("option", {
532
+ /* @__PURE__ */ x("option", {
527
533
  value: "delivery",
528
534
  children: "Delivery"
529
535
  }),
530
- /* @__PURE__ */ b("option", {
536
+ /* @__PURE__ */ x("option", {
531
537
  value: "cart_dispatch",
532
538
  children: "Cart Dispatch"
533
539
  })
534
540
  ]
535
541
  }),
536
- /* @__PURE__ */ x("select", {
537
- value: O.dateRange,
538
- onChange: (e) => k((t) => ({
542
+ /* @__PURE__ */ S("select", {
543
+ value: M.dateRange,
544
+ onChange: (e) => N((t) => ({
539
545
  ...t,
540
546
  dateRange: e.target.value
541
547
  })),
542
548
  className: "rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
543
549
  children: [
544
- /* @__PURE__ */ b("option", {
550
+ /* @__PURE__ */ x("option", {
545
551
  value: "today",
546
552
  children: "Today"
547
553
  }),
548
- /* @__PURE__ */ b("option", {
554
+ /* @__PURE__ */ x("option", {
549
555
  value: "7days",
550
556
  children: "Last 7 Days"
551
557
  }),
552
- /* @__PURE__ */ b("option", {
558
+ /* @__PURE__ */ x("option", {
553
559
  value: "30days",
554
560
  children: "Last 30 Days"
555
561
  }),
556
- /* @__PURE__ */ b("option", {
562
+ /* @__PURE__ */ x("option", {
557
563
  value: "all",
558
564
  children: "All Time"
559
565
  })
560
566
  ]
561
567
  }),
562
- /* @__PURE__ */ x("select", {
563
- value: O.sortBy,
564
- onChange: (e) => k((t) => ({
568
+ /* @__PURE__ */ S("select", {
569
+ value: M.sortBy,
570
+ onChange: (e) => N((t) => ({
565
571
  ...t,
566
572
  sortBy: e.target.value
567
573
  })),
568
574
  className: "rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm text-text-primary",
569
575
  children: [
570
- /* @__PURE__ */ b("option", {
576
+ /* @__PURE__ */ x("option", {
571
577
  value: "recent",
572
578
  children: "Most Recent"
573
579
  }),
574
- /* @__PURE__ */ b("option", {
580
+ /* @__PURE__ */ x("option", {
575
581
  value: "oldest",
576
582
  children: "Oldest First"
577
583
  }),
578
- /* @__PURE__ */ b("option", {
584
+ /* @__PURE__ */ x("option", {
579
585
  value: "amount_high",
580
586
  children: "Amount: High to Low"
581
587
  }),
582
- /* @__PURE__ */ b("option", {
588
+ /* @__PURE__ */ x("option", {
583
589
  value: "amount_low",
584
590
  children: "Amount: Low to High"
585
591
  })
@@ -588,79 +594,71 @@ var S = [
588
594
  ]
589
595
  })
590
596
  }),
591
- R.length === 0 ? /* @__PURE__ */ x("div", {
592
- className: "flex flex-col items-center justify-center py-16 rounded-lg border border-border-seam bg-bg-surface shadow-sm text-center",
593
- children: [
594
- /* @__PURE__ */ b(d, { className: "h-12 w-12 text-text-secondary opacity-40 mb-3" }),
595
- /* @__PURE__ */ b("h3", {
596
- className: "text-lg font-semibold text-text-primary mb-1",
597
- children: "No orders found"
598
- }),
599
- /* @__PURE__ */ b("p", {
600
- className: "text-sm text-text-secondary",
601
- children: O.searchQuery || O.status ? "Try adjusting your filters" : "No orders to display"
602
- })
603
- ]
604
- }) : /* @__PURE__ */ b("div", {
597
+ H.length === 0 ? /* @__PURE__ */ x(r, {
598
+ illustration: M.searchQuery || M.status ? "empty-search" : "empty-data",
599
+ icon: /* @__PURE__ */ x(f, { className: "h-12 w-12" }),
600
+ title: "No orders found",
601
+ description: M.searchQuery || M.status ? "Try adjusting your filters" : "New orders will appear here as customers place them."
602
+ }) : /* @__PURE__ */ x("div", {
605
603
  className: "space-y-4",
606
- children: R.map((e) => {
607
- let n = C[e.status] || {
604
+ children: H.map((e) => {
605
+ let n = E[e.status] || {
608
606
  color: "bg-bg-sunken text-text-secondary",
609
607
  label: e.status
610
- }, i = w[e.fulfillmentType || "delivery"] || w.delivery, a = i.icon;
611
- return /* @__PURE__ */ b("div", {
612
- className: t("rounded-lg border bg-bg-surface shadow-sm transition-shadow hover:shadow-md", D(e)),
613
- children: /* @__PURE__ */ x("div", {
608
+ }, r = D[e.fulfillmentType || "delivery"] || D.delivery, a = r.icon;
609
+ return /* @__PURE__ */ x("div", {
610
+ className: t("rounded-lg border bg-bg-surface shadow-sm transition-shadow hover:shadow-md", A(e)),
611
+ children: /* @__PURE__ */ S("div", {
614
612
  className: "p-4 sm:p-5",
615
613
  children: [
616
- /* @__PURE__ */ x("div", {
614
+ /* @__PURE__ */ S("div", {
617
615
  className: "flex flex-col lg:flex-row lg:items-center lg:justify-between gap-3 mb-3",
618
- children: [/* @__PURE__ */ x("div", {
616
+ children: [/* @__PURE__ */ S("div", {
619
617
  className: "min-w-0 flex-1",
620
- children: [/* @__PURE__ */ x("div", {
618
+ children: [/* @__PURE__ */ S("div", {
621
619
  className: "flex flex-wrap items-center gap-2 mb-1",
622
620
  children: [
623
- /* @__PURE__ */ x("h3", {
621
+ /* @__PURE__ */ S("h3", {
624
622
  className: "text-sm sm:text-base font-semibold text-text-primary",
625
623
  children: ["Order #", e.id]
626
624
  }),
627
- /* @__PURE__ */ b("span", {
625
+ /* @__PURE__ */ x("span", {
628
626
  className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium", n.color),
629
627
  children: n.label
630
628
  }),
631
- /* @__PURE__ */ x("span", {
632
- className: t("inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium", i.color),
633
- children: [/* @__PURE__ */ b(a, { className: "h-3 w-3" }), i.label]
629
+ /* @__PURE__ */ S("span", {
630
+ className: t("inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium", r.color),
631
+ children: [/* @__PURE__ */ x(a, { className: "h-3 w-3" }), r.label]
634
632
  })
635
633
  ]
636
- }), /* @__PURE__ */ x("p", {
634
+ }), /* @__PURE__ */ S("p", {
637
635
  className: "text-xs text-text-secondary",
638
636
  children: [
639
637
  e.customerName || "Customer",
640
638
  " | ",
641
- T(e.orderDate)
639
+ O(e.orderDate)
642
640
  ]
643
641
  })]
644
- }), /* @__PURE__ */ x("div", {
642
+ }), /* @__PURE__ */ S("div", {
645
643
  className: "flex items-center gap-3",
646
- children: [/* @__PURE__ */ b("p", {
644
+ children: [/* @__PURE__ */ x("p", {
647
645
  className: "text-lg font-bold text-text-primary",
648
- children: r(e.total, { minimumFractionDigits: 0 })
649
- }), /* @__PURE__ */ b("button", {
646
+ children: i(e.total, { minimumFractionDigits: 0 })
647
+ }), /* @__PURE__ */ x("button", {
650
648
  type: "button",
651
649
  onClick: () => {
652
- j(e), N(!0);
650
+ F(e), L(!0);
653
651
  },
654
652
  className: "rounded-md border border-border-seam px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken transition-colors",
655
653
  children: "View Details"
656
654
  })]
657
655
  })]
658
656
  }),
659
- /* @__PURE__ */ b("div", {
657
+ /* @__PURE__ */ x("div", {
660
658
  className: "border-t border-border-seam pt-3 mb-3",
661
- children: /* @__PURE__ */ b("div", {
659
+ children: /* @__PURE__ */ x("div", {
662
660
  className: "flex flex-wrap gap-2",
663
- children: e.items.map((e, t) => /* @__PURE__ */ x("span", {
661
+ children: e.items.map((e, t) => /* @__PURE__ */ S("span", {
664
662
  className: "inline-flex items-center rounded bg-bg-sunken px-2 py-1 text-xs text-text-primary",
665
663
  children: [
666
664
  e.quantity,
@@ -670,56 +668,56 @@ var S = [
670
668
  }, t))
671
669
  })
672
670
  }),
673
- /* @__PURE__ */ x("div", {
671
+ /* @__PURE__ */ S("div", {
674
672
  className: "flex flex-wrap gap-2",
675
673
  children: [
676
- e.status === "pending" && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x("button", {
674
+ e.status === "pending" && /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S("button", {
677
675
  type: "button",
678
- onClick: () => z(e.id, "accept"),
676
+ onClick: () => U(e.id, "accept"),
679
677
  className: "inline-flex items-center gap-1.5 rounded-md bg-status-success-bg-subtle px-3 py-2 text-xs font-medium text-status-success-text hover:bg-status-success-bg-subtle transition-colors",
680
- children: [/* @__PURE__ */ b(c, { className: "h-3.5 w-3.5" }), "Accept Order"]
681
- }), /* @__PURE__ */ x("button", {
678
+ children: [/* @__PURE__ */ x(l, { className: "h-3.5 w-3.5" }), "Accept Order"]
679
+ }), /* @__PURE__ */ S("button", {
682
680
  type: "button",
683
- onClick: () => z(e.id, "reject"),
681
+ onClick: () => U(e.id, "reject"),
684
682
  className: "inline-flex items-center gap-1.5 rounded-md bg-status-error-bg-subtle px-3 py-2 text-xs font-medium text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
685
- children: [/* @__PURE__ */ b(v, { className: "h-3.5 w-3.5" }), "Reject"]
683
+ children: [/* @__PURE__ */ x(y, { className: "h-3.5 w-3.5" }), "Reject"]
686
684
  })] }),
687
- e.status === "confirmed" && /* @__PURE__ */ x("button", {
685
+ e.status === "confirmed" && /* @__PURE__ */ S("button", {
688
686
  type: "button",
689
- onClick: () => z(e.id, "ready"),
687
+ onClick: () => U(e.id, "ready"),
690
688
  className: "inline-flex items-center gap-1.5 rounded-md bg-status-warning-bg-subtle px-3 py-2 text-xs font-medium text-status-warning-text hover:bg-status-warning-bg-subtle transition-colors",
691
- children: [/* @__PURE__ */ b(l, { className: "h-3.5 w-3.5" }), "Start Preparing"]
689
+ children: [/* @__PURE__ */ x(u, { className: "h-3.5 w-3.5" }), "Start Preparing"]
692
690
  }),
693
- e.status === "preparing" && /* @__PURE__ */ x("button", {
691
+ e.status === "preparing" && /* @__PURE__ */ S("button", {
694
692
  type: "button",
695
- onClick: () => z(e.id, "ready"),
693
+ onClick: () => U(e.id, "ready"),
696
694
  className: "inline-flex items-center gap-1.5 rounded-md bg-status-success-bg-subtle px-3 py-2 text-xs font-medium text-status-success-text hover:bg-status-success-bg-subtle transition-colors",
697
- children: [/* @__PURE__ */ b(d, { className: "h-3.5 w-3.5" }), "Mark as Ready"]
695
+ children: [/* @__PURE__ */ x(f, { className: "h-3.5 w-3.5" }), "Mark as Ready"]
698
696
  }),
699
- e.status === "ready" && e.fulfillmentType === "pickup" && /* @__PURE__ */ x("button", {
697
+ e.status === "ready" && e.fulfillmentType === "pickup" && /* @__PURE__ */ S("button", {
700
698
  type: "button",
701
- onClick: () => z(e.id, "complete"),
699
+ onClick: () => U(e.id, "complete"),
702
700
  className: "inline-flex items-center gap-1.5 rounded-md bg-status-success-bg-subtle px-3 py-2 text-xs font-medium text-status-success-text hover:bg-status-success-bg-subtle transition-colors",
703
- children: [/* @__PURE__ */ b(c, { className: "h-3.5 w-3.5" }), "Complete Order"]
701
+ children: [/* @__PURE__ */ x(l, { className: "h-3.5 w-3.5" }), "Complete Order"]
704
702
  }),
705
703
  [
706
704
  "confirmed",
707
705
  "preparing",
708
706
  "ready"
709
- ].includes(e.status) && /* @__PURE__ */ x("button", {
707
+ ].includes(e.status) && /* @__PURE__ */ S("button", {
710
708
  type: "button",
711
709
  onClick: () => alert("Contact feature coming soon!"),
712
710
  className: "inline-flex items-center gap-1.5 rounded-md border border-border-seam px-3 py-2 text-xs font-medium text-text-primary hover:bg-bg-sunken transition-colors",
713
- children: [/* @__PURE__ */ b(f, { className: "h-3.5 w-3.5" }), "Contact Customer"]
711
+ children: [/* @__PURE__ */ x(p, { className: "h-3.5 w-3.5" }), "Contact Customer"]
714
712
  })
715
713
  ]
716
714
  }),
717
- e.specialInstructions && /* @__PURE__ */ x("div", {
715
+ e.specialInstructions && /* @__PURE__ */ S("div", {
718
716
  className: "mt-3 rounded-md border border-status-warning-border bg-status-warning-bg-subtle p-3",
719
- children: [/* @__PURE__ */ b("p", {
717
+ children: [/* @__PURE__ */ x("p", {
720
718
  className: "text-xs font-medium text-status-warning-text",
721
719
  children: "Special Instructions:"
722
- }), /* @__PURE__ */ b("p", {
720
+ }), /* @__PURE__ */ x("p", {
723
721
  className: "text-xs text-status-warning-text mt-0.5",
724
722
  children: e.specialInstructions
725
723
  })]
@@ -730,140 +728,140 @@ var S = [
730
728
  })
731
729
  })
732
730
  ]
733
- }), M && A && /* @__PURE__ */ b("div", {
731
+ }), I && P && /* @__PURE__ */ x("div", {
734
732
  className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
735
- children: /* @__PURE__ */ b("div", {
733
+ children: /* @__PURE__ */ x("div", {
736
734
  className: "w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-lg border border-border-seam bg-bg-surface shadow-xl",
737
- children: /* @__PURE__ */ x("div", {
735
+ children: /* @__PURE__ */ S("div", {
738
736
  className: "p-6",
739
- children: [/* @__PURE__ */ x("div", {
737
+ children: [/* @__PURE__ */ S("div", {
740
738
  className: "flex items-center justify-between mb-4",
741
- children: [/* @__PURE__ */ b("h3", {
739
+ children: [/* @__PURE__ */ x("h3", {
742
740
  className: "text-lg font-semibold text-text-primary",
743
741
  children: "Order Details"
744
- }), /* @__PURE__ */ b("button", {
742
+ }), /* @__PURE__ */ x("button", {
745
743
  type: "button",
746
- onClick: () => N(!1),
744
+ onClick: () => L(!1),
747
745
  className: "rounded p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-colors",
748
- children: /* @__PURE__ */ b(_, { className: "h-5 w-5" })
746
+ children: /* @__PURE__ */ x(v, { className: "h-5 w-5" })
749
747
  })]
750
- }), /* @__PURE__ */ x("div", {
748
+ }), /* @__PURE__ */ S("div", {
751
749
  className: "space-y-4",
752
750
  children: [
753
- /* @__PURE__ */ x("div", {
751
+ /* @__PURE__ */ S("div", {
754
752
  className: "grid grid-cols-2 gap-4",
755
753
  children: [
756
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
754
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
757
755
  className: "text-xs text-text-secondary",
758
756
  children: "Order ID"
759
- }), /* @__PURE__ */ x("p", {
757
+ }), /* @__PURE__ */ S("p", {
760
758
  className: "text-sm font-medium text-text-primary",
761
- children: ["#", A.id]
759
+ children: ["#", P.id]
762
760
  })] }),
763
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
761
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
764
762
  className: "text-xs text-text-secondary",
765
763
  children: "Status"
766
- }), /* @__PURE__ */ b("span", {
767
- className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium mt-0.5", (C[A.status] || C.pending).color),
768
- children: (C[A.status] || C.pending).label
764
+ }), /* @__PURE__ */ x("span", {
765
+ className: t("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium mt-0.5", (E[P.status] || E.pending).color),
766
+ children: (E[P.status] || E.pending).label
769
767
  })] }),
770
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
768
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
771
769
  className: "text-xs text-text-secondary",
772
770
  children: "Customer"
773
- }), /* @__PURE__ */ b("p", {
771
+ }), /* @__PURE__ */ x("p", {
774
772
  className: "text-sm font-medium text-text-primary",
775
- children: A.customerName || "N/A"
773
+ children: P.customerName || "N/A"
776
774
  })] }),
777
- /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
775
+ /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
778
776
  className: "text-xs text-text-secondary",
779
777
  children: "Order Time"
780
- }), /* @__PURE__ */ b("p", {
778
+ }), /* @__PURE__ */ x("p", {
781
779
  className: "text-sm font-medium text-text-primary",
782
- children: E(A.orderDate)
780
+ children: k(P.orderDate)
783
781
  })] })
784
782
  ]
785
783
  }),
786
- /* @__PURE__ */ x("div", {
784
+ /* @__PURE__ */ S("div", {
787
785
  className: "border-t border-border-seam pt-4",
788
- children: [/* @__PURE__ */ b("h4", {
786
+ children: [/* @__PURE__ */ x("h4", {
789
787
  className: "text-sm font-medium text-text-primary mb-3",
790
788
  children: "Order Items"
791
- }), /* @__PURE__ */ b("div", {
789
+ }), /* @__PURE__ */ x("div", {
792
790
  className: "space-y-2",
793
- children: A.items.map((e, t) => /* @__PURE__ */ x("div", {
791
+ children: P.items.map((e, t) => /* @__PURE__ */ S("div", {
794
792
  className: "flex justify-between items-start",
795
- children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
793
+ children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
796
794
  className: "text-sm font-medium text-text-primary",
797
795
  children: e.name
798
- }), /* @__PURE__ */ x("p", {
796
+ }), /* @__PURE__ */ S("p", {
799
797
  className: "text-xs text-text-secondary",
800
798
  children: [
801
- r(e.price, { minimumFractionDigits: 0 }),
799
+ i(e.price, { minimumFractionDigits: 0 }),
802
800
  " x",
803
801
  " ",
804
802
  e.quantity
805
803
  ]
806
- })] }), /* @__PURE__ */ b("p", {
804
+ })] }), /* @__PURE__ */ x("p", {
807
805
  className: "text-sm font-medium text-text-primary",
808
- children: r(e.price * e.quantity, { minimumFractionDigits: 0 })
806
+ children: i(e.price * e.quantity, { minimumFractionDigits: 0 })
809
807
  })]
810
808
  }, t))
811
809
  })]
812
810
  }),
813
- /* @__PURE__ */ x("div", {
811
+ /* @__PURE__ */ S("div", {
814
812
  className: "border-t border-border-seam pt-4 space-y-2",
815
813
  children: [
816
- /* @__PURE__ */ x("div", {
814
+ /* @__PURE__ */ S("div", {
817
815
  className: "flex justify-between text-sm text-text-secondary",
818
- children: [/* @__PURE__ */ b("span", { children: "Subtotal" }), /* @__PURE__ */ b("span", { children: r(A.subtotal, { minimumFractionDigits: 0 }) })]
816
+ children: [/* @__PURE__ */ x("span", { children: "Subtotal" }), /* @__PURE__ */ x("span", { children: i(P.subtotal, { minimumFractionDigits: 0 }) })]
819
817
  }),
820
- /* @__PURE__ */ x("div", {
818
+ /* @__PURE__ */ S("div", {
821
819
  className: "flex justify-between text-sm text-text-secondary",
822
- children: [/* @__PURE__ */ b("span", { children: "Delivery Fee" }), /* @__PURE__ */ b("span", { children: r(A.deliveryFee, { minimumFractionDigits: 0 }) })]
820
+ children: [/* @__PURE__ */ x("span", { children: "Delivery Fee" }), /* @__PURE__ */ x("span", { children: i(P.deliveryFee, { minimumFractionDigits: 0 }) })]
823
821
  }),
824
- /* @__PURE__ */ x("div", {
822
+ /* @__PURE__ */ S("div", {
825
823
  className: "flex justify-between text-sm text-text-secondary",
826
- children: [/* @__PURE__ */ b("span", { children: "Tax" }), /* @__PURE__ */ b("span", { children: r(A.taxes, { minimumFractionDigits: 0 }) })]
824
+ children: [/* @__PURE__ */ x("span", { children: "Tax" }), /* @__PURE__ */ x("span", { children: i(P.taxes, { minimumFractionDigits: 0 }) })]
827
825
  }),
828
- /* @__PURE__ */ x("div", {
826
+ /* @__PURE__ */ S("div", {
829
827
  className: "flex justify-between font-semibold text-text-primary pt-2 border-t border-border-seam",
830
- children: [/* @__PURE__ */ b("span", { children: "Total" }), /* @__PURE__ */ b("span", { children: r(A.total, { minimumFractionDigits: 0 }) })]
828
+ children: [/* @__PURE__ */ x("span", { children: "Total" }), /* @__PURE__ */ x("span", { children: i(P.total, { minimumFractionDigits: 0 }) })]
831
829
  })
832
830
  ]
833
831
  }),
834
- A.fulfillmentType === "delivery" && A.deliveryAddress && /* @__PURE__ */ x("div", {
832
+ P.fulfillmentType === "delivery" && P.deliveryAddress && /* @__PURE__ */ S("div", {
835
833
  className: "border-t border-border-seam pt-4",
836
- children: [/* @__PURE__ */ x("h4", {
834
+ children: [/* @__PURE__ */ S("h4", {
837
835
  className: "text-sm font-medium text-text-primary mb-2 flex items-center gap-1.5",
838
- children: [/* @__PURE__ */ b(u, { className: "h-4 w-4 text-text-secondary" }), "Delivery Address"]
839
- }), /* @__PURE__ */ x("p", {
836
+ children: [/* @__PURE__ */ x(d, { className: "h-4 w-4 text-text-secondary" }), "Delivery Address"]
837
+ }), /* @__PURE__ */ S("p", {
840
838
  className: "text-sm text-text-secondary",
841
839
  children: [
842
- A.deliveryAddress.street,
840
+ P.deliveryAddress.street,
843
841
  ", ",
844
- A.deliveryAddress.area,
845
- /* @__PURE__ */ b("br", {}),
846
- A.deliveryAddress.city,
842
+ P.deliveryAddress.area,
843
+ /* @__PURE__ */ x("br", {}),
844
+ P.deliveryAddress.city,
847
845
  " - ",
848
- A.deliveryAddress.pincode
846
+ P.deliveryAddress.pincode
849
847
  ]
850
848
  })]
851
849
  }),
852
- /* @__PURE__ */ x("div", {
850
+ /* @__PURE__ */ S("div", {
853
851
  className: "flex gap-3 mt-6",
854
- children: [/* @__PURE__ */ b("button", {
852
+ children: [/* @__PURE__ */ x("button", {
855
853
  type: "button",
856
- onClick: () => N(!1),
854
+ onClick: () => L(!1),
857
855
  className: "flex-1 rounded-md border border-border-seam px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken transition-colors",
858
856
  children: "Close"
859
- }), A.status === "pending" && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("button", {
857
+ }), P.status === "pending" && /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("button", {
860
858
  type: "button",
861
- onClick: () => z(A.id, "accept"),
859
+ onClick: () => U(P.id, "accept"),
862
860
  className: "flex-1 rounded-md bg-status-success-bg-subtle px-4 py-2 text-sm font-medium text-status-success-text hover:bg-status-success-bg-subtle transition-colors",
863
861
  children: "Accept Order"
864
- }), /* @__PURE__ */ b("button", {
862
+ }), /* @__PURE__ */ x("button", {
865
863
  type: "button",
866
- onClick: () => z(A.id, "reject"),
864
+ onClick: () => U(P.id, "reject"),
867
865
  className: "flex-1 rounded-md bg-status-error-bg-subtle px-4 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg-subtle transition-colors",
868
866
  children: "Reject Order"
869
867
  })] })]
@@ -876,6 +874,6 @@ var S = [
876
874
  });
877
875
  };
878
876
  //#endregion
879
- export { O as OrderManagementPage };
877
+ export { j as OrderManagementPage };
880
878
 
881
879
  //# sourceMappingURL=OrderManagementPage.js.map