@burdenoff/microfe-labsofscience 2026.624.1 → 2026.626.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/labsofscience/components/EmptyState.js +18 -11
  2. package/dist/labsofscience/components/EmptyState.js.map +1 -1
  3. package/dist/labsofscience/components/InvestmentCard.js +26 -24
  4. package/dist/labsofscience/components/InvestmentCard.js.map +1 -1
  5. package/dist/labsofscience/components/MetricsCard.js +19 -13
  6. package/dist/labsofscience/components/MetricsCard.js.map +1 -1
  7. package/dist/labsofscience/components/PageLayout.js +23 -15
  8. package/dist/labsofscience/components/PageLayout.js.map +1 -1
  9. package/dist/labsofscience/components/RatingDisplay.js +1 -1
  10. package/dist/labsofscience/components/RatingDisplay.js.map +1 -1
  11. package/dist/labsofscience/components/StatusBadge.js +34 -15
  12. package/dist/labsofscience/components/StatusBadge.js.map +1 -1
  13. package/dist/labsofscience/pages/HomePage.js +242 -223
  14. package/dist/labsofscience/pages/HomePage.js.map +1 -1
  15. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +107 -101
  16. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
  17. package/dist/labsofscience/pages/admin/AdminDashboard.js +118 -85
  18. package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
  19. package/dist/labsofscience/pages/admin/AdminFinancialPage.js +51 -45
  20. package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
  21. package/dist/labsofscience/pages/admin/AdminOrdersPage.js +245 -240
  22. package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
  23. package/dist/labsofscience/pages/admin/AdminProfilePage.js +131 -129
  24. package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
  25. package/dist/labsofscience/pages/admin/AdminSettingsPage.js +493 -491
  26. package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
  27. package/dist/labsofscience/pages/admin/CartManagementPage.js +163 -158
  28. package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
  29. package/dist/labsofscience/pages/admin/UserManagementPage.js +307 -302
  30. package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
  31. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +89 -84
  32. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  33. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +187 -182
  34. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  35. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +119 -88
  36. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  37. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +149 -144
  38. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  39. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +151 -146
  40. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  41. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +344 -346
  42. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  43. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +269 -271
  44. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
  45. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +293 -287
  46. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
  47. package/dist/labsofscience/pages/common/HelpSupportPage.js +344 -345
  48. package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
  49. package/dist/labsofscience/pages/common/NotificationCenterPage.js +94 -87
  50. package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
  51. package/dist/labsofscience/pages/common/SettingsPage.js +748 -739
  52. package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
  53. package/dist/labsofscience/pages/customer/BookingDetailsPage.js +400 -356
  54. package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
  55. package/dist/labsofscience/pages/customer/CartDetailPage.js +281 -248
  56. package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
  57. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +178 -166
  58. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
  59. package/dist/labsofscience/pages/customer/CheckoutPage.js +236 -238
  60. package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
  61. package/dist/labsofscience/pages/customer/CustomerDashboard.js +425 -390
  62. package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
  63. package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
  64. package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
  65. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +522 -512
  66. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
  67. package/dist/labsofscience/pages/customer/FavoritesPage.js +73 -66
  68. package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
  69. package/dist/labsofscience/pages/customer/OrderHistoryPage.js +74 -67
  70. package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
  71. package/dist/labsofscience/pages/customer/OrderTrackingPage.js +311 -274
  72. package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
  73. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +100 -93
  74. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
  75. package/dist/labsofscience/pages/customer/ReviewsPage.js +96 -89
  76. package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
  77. package/dist/labsofscience/pages/customer/SavedAddressesPage.js +85 -78
  78. package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
  79. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +135 -103
  80. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
  81. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +267 -260
  82. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  83. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +97 -91
  84. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  85. package/dist/labsofscience/pages/investor/InvestorDashboard.js +346 -310
  86. package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
  87. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +118 -111
  88. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  89. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +75 -69
  90. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
  91. package/dist/labsofscience/pages/investor/InvestorProfilePage.js +434 -429
  92. package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
  93. package/dist/labsofscience/pages/worker/TaskDetailsPage.js +364 -323
  94. package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
  95. package/dist/labsofscience/pages/worker/WorkerDashboard.js +132 -101
  96. package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
  97. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +114 -108
  98. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
  99. package/dist/labsofscience/pages/worker/WorkerProfilePage.js +124 -119
  100. package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
  101. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +354 -344
  102. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
  103. package/package.json +3 -3
@@ -9,8 +9,9 @@ import { useMemo as c, useState as l } from "react";
9
9
  import { ArrowLeft as u, CheckCircle2 as d, ChefHat as f, Circle as p, Clock as m, MapPin as h, MessageCircle as g, Package as _, Phone as v, ShoppingBag as y, Star as b, Truck as x, XCircle as S } from "lucide-react";
10
10
  import { useParams as C } from "react-router-dom";
11
11
  import { jsx as w, jsxs as T } from "react/jsx-runtime";
12
+ import { EmphasisPanel as E, NextSteps as D, PagePurpose as O } from "@burdenoff/fe-libs/ui";
12
13
  //#region src/labsofscience/pages/customer/OrderTrackingPage.tsx
13
- var E = {
14
+ var k = {
14
15
  pending: m,
15
16
  confirmed: d,
16
17
  preparing: f,
@@ -19,21 +20,21 @@ var E = {
19
20
  out_for_delivery: x,
20
21
  delivered: d,
21
22
  cancelled: S
22
- }, D = [
23
+ }, A = [
23
24
  "pending",
24
25
  "confirmed",
25
26
  "preparing",
26
27
  "ready",
27
28
  "out_for_delivery",
28
29
  "delivered"
29
- ], O = {
30
+ ], j = {
30
31
  pending: "Order Placed",
31
32
  confirmed: "Confirmed",
32
33
  preparing: "Preparing",
33
34
  ready: "Ready",
34
35
  out_for_delivery: "Out for Delivery",
35
36
  delivered: "Delivered"
36
- }, k = {
37
+ }, M = {
37
38
  pending: "Your order has been received",
38
39
  confirmed: "Cart has accepted your order",
39
40
  preparing: "Your food is being prepared",
@@ -41,14 +42,14 @@ var E = {
41
42
  out_for_delivery: "Your order is on the way",
42
43
  delivered: "Order has been delivered"
43
44
  };
44
- function A() {
45
- let { orderId: f } = C(), { navigateTo: _ } = e(), [x, A] = l(!0);
45
+ function N() {
46
+ let { orderId: f } = C(), { navigateTo: _ } = e(), [N, P] = l(!0);
46
47
  c(() => {
47
- let e = setTimeout(() => A(!1), 800);
48
+ let e = setTimeout(() => P(!1), 800);
48
49
  return () => clearTimeout(e);
49
50
  }, []);
50
- let j = c(() => f ? s(f) : void 0, [f]);
51
- if (x) return /* @__PURE__ */ w(n, {
51
+ let F = c(() => f ? s(f) : void 0, [f]);
52
+ if (N) return /* @__PURE__ */ w(n, {
52
53
  title: "Track Order",
53
54
  children: /* @__PURE__ */ T("div", {
54
55
  className: "flex flex-col items-center justify-center py-16 text-center",
@@ -58,9 +59,10 @@ function A() {
58
59
  })]
59
60
  })
60
61
  });
61
- if (!j) return /* @__PURE__ */ w(n, {
62
+ if (!F) return /* @__PURE__ */ w(n, {
62
63
  title: "Order Not Found",
63
64
  children: /* @__PURE__ */ w(i, {
65
+ illustration: "empty-data",
64
66
  icon: /* @__PURE__ */ w(y, { className: "h-12 w-12" }),
65
67
  title: "Order not found",
66
68
  description: "The order you're looking for doesn't exist.",
@@ -72,8 +74,8 @@ function A() {
72
74
  })
73
75
  })
74
76
  });
75
- let M = D.indexOf(j.status), N = j.status === "cancelled", P = j.status === "delivered", F = (e) => D.indexOf(e) <= M, I = (e) => e === j.status;
76
- return /* @__PURE__ */ w(n, {
77
+ let I = A.indexOf(F.status), L = F.status === "cancelled", R = F.status === "delivered", z = (e) => A.indexOf(e) <= I, B = (e) => e === F.status;
78
+ return /* @__PURE__ */ T(n, {
77
79
  title: /* @__PURE__ */ T("div", {
78
80
  className: "flex items-center gap-3",
79
81
  children: [/* @__PURE__ */ w("button", {
@@ -83,306 +85,341 @@ function A() {
83
85
  children: /* @__PURE__ */ w(u, { className: "h-5 w-5" })
84
86
  }), /* @__PURE__ */ w("span", { children: "Track Order" })]
85
87
  }),
86
- actions: /* @__PURE__ */ w(r, { status: j.status }),
87
- children: /* @__PURE__ */ T("div", {
88
- className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
89
- children: [/* @__PURE__ */ T("div", {
90
- className: "lg:col-span-2 space-y-6",
91
- children: [
92
- /* @__PURE__ */ T("div", {
93
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
94
- children: [/* @__PURE__ */ T("div", {
95
- className: "flex flex-col sm:flex-row sm:justify-between sm:items-start gap-3",
88
+ actions: /* @__PURE__ */ w(r, { status: F.status }),
89
+ children: [
90
+ /* @__PURE__ */ w(O, {
91
+ icon: /* @__PURE__ */ w(x, { className: "h-4 w-4" }),
92
+ className: "mb-6",
93
+ children: "Follow your order from the moment it's placed to the moment it arrives. The live timeline shows each step — confirmed, preparing, out for delivery — alongside your delivery partner's details, the full bill, and quick ways to get help or rate your order."
94
+ }),
95
+ /* @__PURE__ */ w(D, {
96
+ storageKey: "labsofscience-order-tracking",
97
+ steps: [
98
+ ...F.assignedWorker ? [{
99
+ id: "call-driver",
100
+ label: "Contact your delivery partner",
101
+ description: `Call ${F.assignedWorker.name} about your delivery.`,
102
+ icon: /* @__PURE__ */ w(v, { className: "h-4 w-4" }),
103
+ onClick: () => {
104
+ window.location.href = `tel:${F.assignedWorker.phone}`;
105
+ }
106
+ }] : [],
107
+ ...R && !F.rating ? [{
108
+ id: "rate",
109
+ label: "Rate this order",
110
+ description: "Share feedback on the food and delivery.",
111
+ icon: /* @__PURE__ */ w(b, { className: "h-4 w-4" }),
112
+ onClick: () => _(`/customer/orders/${F.id}/rate`)
113
+ }] : [],
114
+ {
115
+ id: "all-orders",
116
+ label: "View all your orders",
117
+ description: "Jump back to your full order history.",
118
+ icon: /* @__PURE__ */ w(y, { className: "h-4 w-4" }),
119
+ onClick: () => _("/customer/orders")
120
+ }
121
+ ]
122
+ }),
123
+ /* @__PURE__ */ T("div", {
124
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
125
+ children: [/* @__PURE__ */ T("div", {
126
+ className: "lg:col-span-2 space-y-6",
127
+ children: [
128
+ /* @__PURE__ */ T("div", {
129
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5",
96
130
  children: [/* @__PURE__ */ T("div", {
97
- className: "flex-1",
98
- children: [
99
- /* @__PURE__ */ T("h2", {
100
- className: "text-lg font-semibold text-text-primary",
101
- children: ["Order #", j.id]
102
- }),
103
- /* @__PURE__ */ w("p", {
104
- className: "text-sm text-text-secondary",
105
- children: j.cartName
106
- }),
107
- /* @__PURE__ */ w("p", {
108
- className: "text-xs text-text-secondary mt-0.5",
109
- children: o(j.orderDate)
110
- })
111
- ]
112
- }), /* @__PURE__ */ T("div", {
113
- className: "text-left sm:text-right",
114
- children: [/* @__PURE__ */ w("p", {
115
- className: "text-xl font-bold text-text-primary",
116
- children: a(j.total, { minimumFractionDigits: 0 })
117
- }), /* @__PURE__ */ w("p", {
118
- className: "text-xs text-text-secondary uppercase",
119
- children: j.paymentMethod
131
+ className: "flex flex-col sm:flex-row sm:justify-between sm:items-start gap-3",
132
+ children: [/* @__PURE__ */ T("div", {
133
+ className: "flex-1",
134
+ children: [
135
+ /* @__PURE__ */ T("h2", {
136
+ className: "text-lg font-semibold text-text-primary",
137
+ children: ["Order #", F.id]
138
+ }),
139
+ /* @__PURE__ */ w("p", {
140
+ className: "text-sm text-text-secondary",
141
+ children: F.cartName
142
+ }),
143
+ /* @__PURE__ */ w("p", {
144
+ className: "text-xs text-text-secondary mt-0.5",
145
+ children: o(F.orderDate)
146
+ })
147
+ ]
148
+ }), /* @__PURE__ */ T("div", {
149
+ className: "text-left sm:text-right",
150
+ children: [/* @__PURE__ */ w("p", {
151
+ className: "text-xl font-bold text-text-primary",
152
+ children: a(F.total, { minimumFractionDigits: 0 })
153
+ }), /* @__PURE__ */ w("p", {
154
+ className: "text-xs text-text-secondary uppercase",
155
+ children: F.paymentMethod
156
+ })]
157
+ })]
158
+ }), L ? /* @__PURE__ */ T("div", {
159
+ className: "mt-4 flex items-start gap-3 rounded-lg bg-status-error-bg/10 p-4 border border-status-error-border/20",
160
+ children: [/* @__PURE__ */ w(S, { className: "h-5 w-5 text-status-error-text mt-0.5 shrink-0" }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
161
+ className: "font-medium text-status-error-text",
162
+ children: "Order Cancelled"
163
+ }), F.cancellationReason && /* @__PURE__ */ w("p", {
164
+ className: "text-sm text-status-error-text/80 mt-0.5",
165
+ children: F.cancellationReason
166
+ })] })]
167
+ }) : /* @__PURE__ */ T("div", {
168
+ className: t("mt-4 flex items-start gap-3 rounded-lg p-4 border", R ? "bg-status-success-bg-subtle border-status-success-border" : "bg-status-info-bg-subtle border-status-info-border"),
169
+ children: [R ? /* @__PURE__ */ w(d, { className: "h-5 w-5 text-status-success-text mt-0.5 shrink-0" }) : /* @__PURE__ */ w(m, { className: "h-5 w-5 text-status-info-text mt-0.5 shrink-0" }), /* @__PURE__ */ w("p", {
170
+ className: t("text-sm font-medium", R ? "text-status-success-text" : "text-status-info-text"),
171
+ children: R ? `Delivered at ${o(F.actualDeliveryTime)}` : F.estimatedDeliveryTime ? `Estimated delivery by ${o(F.estimatedDeliveryTime)}` : "Estimated delivery time: TBD"
120
172
  })]
121
173
  })]
122
- }), N ? /* @__PURE__ */ T("div", {
123
- className: "mt-4 flex items-start gap-3 rounded-lg bg-status-error-bg/10 p-4 border border-status-error-border/20",
124
- children: [/* @__PURE__ */ w(S, { className: "h-5 w-5 text-status-error-text mt-0.5 shrink-0" }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
125
- className: "font-medium text-status-error-text",
126
- children: "Order Cancelled"
127
- }), j.cancellationReason && /* @__PURE__ */ w("p", {
128
- className: "text-sm text-status-error-text/80 mt-0.5",
129
- children: j.cancellationReason
130
- })] })]
131
- }) : /* @__PURE__ */ T("div", {
132
- className: t("mt-4 flex items-start gap-3 rounded-lg p-4 border", P ? "bg-green-500/10 border-green-500/20" : "bg-blue-500/10 border-blue-500/20"),
133
- children: [P ? /* @__PURE__ */ w(d, { className: "h-5 w-5 text-green-600 dark:text-green-400 mt-0.5 shrink-0" }) : /* @__PURE__ */ w(m, { className: "h-5 w-5 text-blue-600 dark:text-blue-400 mt-0.5 shrink-0" }), /* @__PURE__ */ w("p", {
134
- className: t("text-sm font-medium", P ? "text-green-600 dark:text-green-400" : "text-blue-600 dark:text-blue-400"),
135
- children: P ? `Delivered at ${o(j.actualDeliveryTime)}` : j.estimatedDeliveryTime ? `Estimated delivery by ${o(j.estimatedDeliveryTime)}` : "Estimated delivery time: TBD"
174
+ }),
175
+ !L && /* @__PURE__ */ T(E, {
176
+ className: "p-5",
177
+ children: [/* @__PURE__ */ w("h3", {
178
+ className: "text-base font-semibold text-text-primary mb-5",
179
+ children: "Order Status"
180
+ }), /* @__PURE__ */ w("div", {
181
+ className: "relative space-y-0",
182
+ children: A.map((e, n) => {
183
+ let r = z(e), i = B(e), a = n === A.length - 1, o = k[e] ?? p;
184
+ return /* @__PURE__ */ T("div", {
185
+ className: "flex items-start relative",
186
+ children: [
187
+ !a && /* @__PURE__ */ w("div", { className: t("absolute left-5 top-10 w-0.5 h-8 z-0", r ? "bg-status-success-bg" : "bg-border") }),
188
+ /* @__PURE__ */ w("div", {
189
+ className: t("relative z-10 flex h-10 w-10 shrink-0 items-center justify-center rounded-full", r ? "bg-status-success-bg-subtle border-2 border-status-success-border text-status-success-text" : "bg-bg-sunken border-2 border-border-seam text-text-secondary", i && "ring-4 ring-status-success-border"),
190
+ children: /* @__PURE__ */ w(o, { className: "h-4 w-4" })
191
+ }),
192
+ /* @__PURE__ */ T("div", {
193
+ className: "ml-4 flex-1 pb-8",
194
+ children: [
195
+ /* @__PURE__ */ w("h4", {
196
+ className: t("text-sm font-semibold", r ? "text-text-primary" : "text-text-secondary"),
197
+ children: j[e]
198
+ }),
199
+ /* @__PURE__ */ w("p", {
200
+ className: t("text-xs", r ? "text-text-secondary" : "text-text-secondary/50"),
201
+ children: M[e]
202
+ }),
203
+ i && F.assignedWorker && /* @__PURE__ */ T("div", {
204
+ className: "mt-1.5 text-xs text-status-info-text",
205
+ children: [/* @__PURE__ */ T("p", { children: ["Driver: ", F.assignedWorker.name] }), /* @__PURE__ */ T("p", { children: ["Contact: ", F.assignedWorker.phone] })]
206
+ })
207
+ ]
208
+ })
209
+ ]
210
+ }, e);
211
+ })
136
212
  })]
137
- })]
138
- }),
139
- !N && /* @__PURE__ */ T("div", {
140
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
141
- children: [/* @__PURE__ */ w("h3", {
142
- className: "text-base font-semibold text-text-primary mb-5",
143
- children: "Order Status"
144
- }), /* @__PURE__ */ w("div", {
145
- className: "relative space-y-0",
146
- children: D.map((e, n) => {
147
- let r = F(e), i = I(e), a = n === D.length - 1, o = E[e] ?? p;
148
- return /* @__PURE__ */ T("div", {
149
- className: "flex items-start relative",
150
- children: [
151
- !a && /* @__PURE__ */ w("div", { className: t("absolute left-5 top-10 w-0.5 h-8 z-0", r ? "bg-green-500" : "bg-border") }),
152
- /* @__PURE__ */ w("div", {
153
- className: t("relative z-10 flex h-10 w-10 shrink-0 items-center justify-center rounded-full", r ? "bg-green-500/10 border-2 border-green-500 text-green-600 dark:text-green-400" : "bg-bg-sunken border-2 border-border-subtle text-text-secondary", i && "ring-4 ring-green-500/20"),
154
- children: /* @__PURE__ */ w(o, { className: "h-4 w-4" })
155
- }),
156
- /* @__PURE__ */ T("div", {
157
- className: "ml-4 flex-1 pb-8",
213
+ }),
214
+ /* @__PURE__ */ T("div", {
215
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5",
216
+ children: [
217
+ /* @__PURE__ */ w("h3", {
218
+ className: "text-base font-semibold text-text-primary mb-3",
219
+ children: "Order Items"
220
+ }),
221
+ /* @__PURE__ */ w("div", {
222
+ className: "space-y-2",
223
+ children: F.items.map((e, t) => /* @__PURE__ */ T("div", {
224
+ className: "flex justify-between items-start pb-2 border-b border-border-seam last:border-b-0",
225
+ children: [/* @__PURE__ */ T("div", {
226
+ className: "flex-1 pr-2",
158
227
  children: [
159
- /* @__PURE__ */ w("h4", {
160
- className: t("text-sm font-semibold", r ? "text-text-primary" : "text-text-secondary"),
161
- children: O[e]
162
- }),
163
228
  /* @__PURE__ */ w("p", {
164
- className: t("text-xs", r ? "text-text-secondary" : "text-text-secondary/50"),
165
- children: k[e]
229
+ className: "text-sm font-medium text-text-primary",
230
+ children: e.name
231
+ }),
232
+ e.customizations && e.customizations.length > 0 && /* @__PURE__ */ w("p", {
233
+ className: "text-xs text-text-secondary",
234
+ children: e.customizations.join(", ")
166
235
  }),
167
- i && j.assignedWorker && /* @__PURE__ */ T("div", {
168
- className: "mt-1.5 text-xs text-blue-600 dark:text-blue-400",
169
- children: [/* @__PURE__ */ T("p", { children: ["Driver: ", j.assignedWorker.name] }), /* @__PURE__ */ T("p", { children: ["Contact: ", j.assignedWorker.phone] })]
236
+ /* @__PURE__ */ T("p", {
237
+ className: "text-xs text-text-secondary",
238
+ children: [
239
+ a(e.price, { minimumFractionDigits: 0 }),
240
+ " x ",
241
+ e.quantity
242
+ ]
170
243
  })
171
244
  ]
245
+ }), /* @__PURE__ */ w("p", {
246
+ className: "text-sm font-medium text-text-primary",
247
+ children: a(e.price * e.quantity, { minimumFractionDigits: 0 })
248
+ })]
249
+ }, t))
250
+ }),
251
+ /* @__PURE__ */ T("div", {
252
+ className: "mt-4 pt-4 border-t border-border-seam space-y-2 text-sm",
253
+ children: [
254
+ /* @__PURE__ */ T("div", {
255
+ className: "flex justify-between text-text-secondary",
256
+ children: [/* @__PURE__ */ w("span", { children: "Subtotal" }), /* @__PURE__ */ w("span", { children: a(F.subtotal, { minimumFractionDigits: 0 }) })]
257
+ }),
258
+ /* @__PURE__ */ T("div", {
259
+ className: "flex justify-between text-text-secondary",
260
+ children: [/* @__PURE__ */ w("span", { children: "Delivery Fee" }), /* @__PURE__ */ w("span", { children: F.deliveryFee === 0 ? "FREE" : a(F.deliveryFee, { minimumFractionDigits: 0 }) })]
261
+ }),
262
+ /* @__PURE__ */ T("div", {
263
+ className: "flex justify-between text-text-secondary",
264
+ children: [/* @__PURE__ */ w("span", { children: "Tax" }), /* @__PURE__ */ w("span", { children: a(F.taxes, { minimumFractionDigits: 0 }) })]
265
+ }),
266
+ F.discount && F.discount > 0 && /* @__PURE__ */ T("div", {
267
+ className: "flex justify-between text-status-success-text",
268
+ children: [/* @__PURE__ */ w("span", { children: "Discount" }), /* @__PURE__ */ T("span", { children: ["-", a(F.discount, { minimumFractionDigits: 0 })] })]
269
+ }),
270
+ /* @__PURE__ */ T("div", {
271
+ className: "flex justify-between font-semibold pt-2 border-t border-border-seam text-text-primary",
272
+ children: [/* @__PURE__ */ w("span", { children: "Total" }), /* @__PURE__ */ w("span", { children: a(F.total, { minimumFractionDigits: 0 }) })]
172
273
  })
173
274
  ]
174
- }, e);
175
- })
176
- })]
177
- }),
178
- /* @__PURE__ */ T("div", {
179
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
180
- children: [
181
- /* @__PURE__ */ w("h3", {
275
+ })
276
+ ]
277
+ })
278
+ ]
279
+ }), /* @__PURE__ */ T("div", {
280
+ className: "lg:col-span-1 space-y-6",
281
+ children: [
282
+ /* @__PURE__ */ T("div", {
283
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5",
284
+ children: [/* @__PURE__ */ w("h3", {
182
285
  className: "text-base font-semibold text-text-primary mb-3",
183
- children: "Order Items"
184
- }),
185
- /* @__PURE__ */ w("div", {
186
- className: "space-y-2",
187
- children: j.items.map((e, t) => /* @__PURE__ */ T("div", {
188
- className: "flex justify-between items-start pb-2 border-b border-border-subtle last:border-b-0",
189
- children: [/* @__PURE__ */ T("div", {
190
- className: "flex-1 pr-2",
191
- children: [
286
+ children: "Delivery Details"
287
+ }), /* @__PURE__ */ T("div", {
288
+ className: "space-y-3",
289
+ children: [
290
+ /* @__PURE__ */ T("div", {
291
+ className: "flex items-start gap-2",
292
+ children: [/* @__PURE__ */ w(h, { className: "mt-0.5 h-4 w-4 shrink-0 text-text-secondary" }), /* @__PURE__ */ T("div", { children: [
293
+ /* @__PURE__ */ w("p", {
294
+ className: "text-xs text-text-secondary",
295
+ children: "Delivery Address"
296
+ }),
192
297
  /* @__PURE__ */ w("p", {
193
298
  className: "text-sm font-medium text-text-primary",
194
- children: e.name
299
+ children: F.deliveryAddress.street
195
300
  }),
196
- e.customizations && e.customizations.length > 0 && /* @__PURE__ */ w("p", {
197
- className: "text-xs text-text-secondary",
198
- children: e.customizations.join(", ")
301
+ /* @__PURE__ */ w("p", {
302
+ className: "text-sm text-text-secondary",
303
+ children: F.deliveryAddress.area
199
304
  }),
200
305
  /* @__PURE__ */ T("p", {
201
- className: "text-xs text-text-secondary",
306
+ className: "text-sm text-text-secondary",
202
307
  children: [
203
- a(e.price, { minimumFractionDigits: 0 }),
204
- " x ",
205
- e.quantity
308
+ F.deliveryAddress.city,
309
+ ", ",
310
+ F.deliveryAddress.pincode
206
311
  ]
312
+ }),
313
+ F.deliveryAddress.landmark && /* @__PURE__ */ T("p", {
314
+ className: "text-xs text-text-secondary mt-0.5",
315
+ children: ["Landmark: ", F.deliveryAddress.landmark]
207
316
  })
208
- ]
209
- }), /* @__PURE__ */ w("p", {
210
- className: "text-sm font-medium text-text-primary",
211
- children: a(e.price * e.quantity, { minimumFractionDigits: 0 })
212
- })]
213
- }, t))
214
- }),
215
- /* @__PURE__ */ T("div", {
216
- className: "mt-4 pt-4 border-t border-border-subtle space-y-2 text-sm",
217
- children: [
218
- /* @__PURE__ */ T("div", {
219
- className: "flex justify-between text-text-secondary",
220
- children: [/* @__PURE__ */ w("span", { children: "Subtotal" }), /* @__PURE__ */ w("span", { children: a(j.subtotal, { minimumFractionDigits: 0 }) })]
221
- }),
222
- /* @__PURE__ */ T("div", {
223
- className: "flex justify-between text-text-secondary",
224
- children: [/* @__PURE__ */ w("span", { children: "Delivery Fee" }), /* @__PURE__ */ w("span", { children: j.deliveryFee === 0 ? "FREE" : a(j.deliveryFee, { minimumFractionDigits: 0 }) })]
225
- }),
226
- /* @__PURE__ */ T("div", {
227
- className: "flex justify-between text-text-secondary",
228
- children: [/* @__PURE__ */ w("span", { children: "Tax" }), /* @__PURE__ */ w("span", { children: a(j.taxes, { minimumFractionDigits: 0 }) })]
317
+ ] })]
229
318
  }),
230
- j.discount && j.discount > 0 && /* @__PURE__ */ T("div", {
231
- className: "flex justify-between text-green-600 dark:text-green-400",
232
- children: [/* @__PURE__ */ w("span", { children: "Discount" }), /* @__PURE__ */ T("span", { children: ["-", a(j.discount, { minimumFractionDigits: 0 })] })]
233
- }),
234
- /* @__PURE__ */ T("div", {
235
- className: "flex justify-between font-semibold pt-2 border-t border-border-subtle text-text-primary",
236
- children: [/* @__PURE__ */ w("span", { children: "Total" }), /* @__PURE__ */ w("span", { children: a(j.total, { minimumFractionDigits: 0 }) })]
237
- })
238
- ]
239
- })
240
- ]
241
- })
242
- ]
243
- }), /* @__PURE__ */ T("div", {
244
- className: "lg:col-span-1 space-y-6",
245
- children: [
246
- /* @__PURE__ */ T("div", {
247
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
248
- children: [/* @__PURE__ */ w("h3", {
249
- className: "text-base font-semibold text-text-primary mb-3",
250
- children: "Delivery Details"
251
- }), /* @__PURE__ */ T("div", {
252
- className: "space-y-3",
253
- children: [
254
- /* @__PURE__ */ T("div", {
255
- className: "flex items-start gap-2",
256
- children: [/* @__PURE__ */ w(h, { className: "mt-0.5 h-4 w-4 shrink-0 text-text-secondary" }), /* @__PURE__ */ T("div", { children: [
319
+ F.customerNotes && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
320
+ className: "text-xs text-text-secondary",
321
+ children: "Customer Notes"
322
+ }), /* @__PURE__ */ w("p", {
323
+ className: "text-sm text-text-primary",
324
+ children: F.customerNotes
325
+ })] }),
326
+ /* @__PURE__ */ T("div", { children: [
257
327
  /* @__PURE__ */ w("p", {
258
328
  className: "text-xs text-text-secondary",
259
- children: "Delivery Address"
329
+ children: "Payment Method"
260
330
  }),
261
331
  /* @__PURE__ */ w("p", {
262
- className: "text-sm font-medium text-text-primary",
263
- children: j.deliveryAddress.street
332
+ className: "text-sm font-medium text-text-primary capitalize",
333
+ children: F.paymentMethod
264
334
  }),
265
335
  /* @__PURE__ */ w("p", {
266
- className: "text-sm text-text-secondary",
267
- children: j.deliveryAddress.area
336
+ className: "text-xs text-text-secondary",
337
+ children: F.paymentStatus === "completed" ? "Paid" : "Payment Pending"
338
+ })
339
+ ] })
340
+ ]
341
+ })]
342
+ }),
343
+ F.assignedWorker && /* @__PURE__ */ T("div", {
344
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5",
345
+ children: [/* @__PURE__ */ w("h3", {
346
+ className: "text-base font-semibold text-text-primary mb-3",
347
+ children: "Delivery Partner"
348
+ }), /* @__PURE__ */ T("div", {
349
+ className: "space-y-3",
350
+ children: [/* @__PURE__ */ T("div", {
351
+ className: "flex items-center gap-3",
352
+ children: [
353
+ /* @__PURE__ */ w("div", {
354
+ className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
355
+ children: /* @__PURE__ */ w("span", {
356
+ className: "text-sm font-semibold",
357
+ children: F.assignedWorker.name.charAt(0)
358
+ })
268
359
  }),
269
- /* @__PURE__ */ T("p", {
270
- className: "text-sm text-text-secondary",
271
- children: [
272
- j.deliveryAddress.city,
273
- ", ",
274
- j.deliveryAddress.pincode
275
- ]
360
+ /* @__PURE__ */ T("div", {
361
+ className: "flex-1 min-w-0",
362
+ children: [/* @__PURE__ */ w("p", {
363
+ className: "text-sm font-medium text-text-primary",
364
+ children: F.assignedWorker.name
365
+ }), /* @__PURE__ */ T("div", {
366
+ className: "flex items-center gap-1.5 mt-0.5",
367
+ children: [/* @__PURE__ */ w(b, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ T("span", {
368
+ className: "text-xs text-text-secondary",
369
+ children: [F.assignedWorker.rating, "/5"]
370
+ })]
371
+ })]
276
372
  }),
277
- j.deliveryAddress.landmark && /* @__PURE__ */ T("p", {
278
- className: "text-xs text-text-secondary mt-0.5",
279
- children: ["Landmark: ", j.deliveryAddress.landmark]
373
+ /* @__PURE__ */ w("a", {
374
+ href: `tel:${F.assignedWorker.phone}`,
375
+ className: "flex h-9 w-9 items-center justify-center rounded-full bg-bg-sunken text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
376
+ children: /* @__PURE__ */ w(v, { className: "h-4 w-4" })
280
377
  })
281
- ] })]
282
- }),
283
- j.customerNotes && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
284
- className: "text-xs text-text-secondary",
285
- children: "Customer Notes"
286
- }), /* @__PURE__ */ w("p", {
287
- className: "text-sm text-text-primary",
288
- children: j.customerNotes
289
- })] }),
290
- /* @__PURE__ */ T("div", { children: [
291
- /* @__PURE__ */ w("p", {
292
- className: "text-xs text-text-secondary",
293
- children: "Payment Method"
294
- }),
295
- /* @__PURE__ */ w("p", {
296
- className: "text-sm font-medium text-text-primary capitalize",
297
- children: j.paymentMethod
298
- }),
299
- /* @__PURE__ */ w("p", {
300
- className: "text-xs text-text-secondary",
301
- children: j.paymentStatus === "completed" ? "Paid" : "Payment Pending"
302
- })
303
- ] })
304
- ]
305
- })]
306
- }),
307
- j.assignedWorker && /* @__PURE__ */ T("div", {
308
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
309
- children: [/* @__PURE__ */ w("h3", {
310
- className: "text-base font-semibold text-text-primary mb-3",
311
- children: "Delivery Partner"
312
- }), /* @__PURE__ */ T("div", {
313
- className: "space-y-3",
314
- children: [/* @__PURE__ */ T("div", {
315
- className: "flex items-center gap-3",
378
+ ]
379
+ }), /* @__PURE__ */ T("button", {
380
+ type: "button",
381
+ onClick: () => window.location.href = `tel:${F.assignedWorker.phone}`,
382
+ className: "w-full flex items-center justify-center gap-2 rounded-lg border border-border-seam px-3 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
383
+ children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Call Driver"]
384
+ })]
385
+ })]
386
+ }),
387
+ /* @__PURE__ */ T("div", {
388
+ className: "rounded-lg border border-border-seam bg-bg-surface p-5",
389
+ children: [/* @__PURE__ */ w("h3", {
390
+ className: "text-base font-semibold text-text-primary mb-3",
391
+ children: "Need Help?"
392
+ }), /* @__PURE__ */ T("div", {
393
+ className: "space-y-2",
316
394
  children: [
317
- /* @__PURE__ */ w("div", {
318
- className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
319
- children: /* @__PURE__ */ w("span", {
320
- className: "text-sm font-semibold",
321
- children: j.assignedWorker.name.charAt(0)
322
- })
395
+ /* @__PURE__ */ T("button", {
396
+ type: "button",
397
+ onClick: () => alert("Chat support coming soon!"),
398
+ className: "w-full flex items-center justify-center gap-2 rounded-lg border border-border-seam px-3 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
399
+ children: [/* @__PURE__ */ w(g, { className: "h-4 w-4" }), "Chat Support"]
323
400
  }),
324
- /* @__PURE__ */ T("div", {
325
- className: "flex-1 min-w-0",
326
- children: [/* @__PURE__ */ w("p", {
327
- className: "text-sm font-medium text-text-primary",
328
- children: j.assignedWorker.name
329
- }), /* @__PURE__ */ T("div", {
330
- className: "flex items-center gap-1.5 mt-0.5",
331
- children: [/* @__PURE__ */ w(b, { className: "h-3 w-3 fill-yellow-400 text-yellow-400" }), /* @__PURE__ */ T("span", {
332
- className: "text-xs text-text-secondary",
333
- children: [j.assignedWorker.rating, "/5"]
334
- })]
335
- })]
401
+ /* @__PURE__ */ T("button", {
402
+ type: "button",
403
+ onClick: () => window.location.href = "tel:7012270561",
404
+ className: "w-full flex items-center justify-center gap-2 rounded-lg border border-border-seam px-3 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
405
+ children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Call Support"]
336
406
  }),
337
- /* @__PURE__ */ w("a", {
338
- href: `tel:${j.assignedWorker.phone}`,
339
- className: "flex h-9 w-9 items-center justify-center rounded-full bg-bg-sunken text-text-secondary hover:bg-accent hover:text-text-primary transition-colors",
340
- children: /* @__PURE__ */ w(v, { className: "h-4 w-4" })
407
+ R && !F.rating && /* @__PURE__ */ T("button", {
408
+ type: "button",
409
+ onClick: () => _(`/customer/orders/${F.id}/rate`),
410
+ className: "w-full flex items-center justify-center gap-2 rounded-lg bg-foreground px-3 py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
411
+ children: [/* @__PURE__ */ w(b, { className: "h-4 w-4" }), "Rate Order"]
341
412
  })
342
413
  ]
343
- }), /* @__PURE__ */ T("button", {
344
- type: "button",
345
- onClick: () => window.location.href = `tel:${j.assignedWorker.phone}`,
346
- className: "w-full flex items-center justify-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
347
- children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Call Driver"]
348
414
  })]
349
- })]
350
- }),
351
- /* @__PURE__ */ T("div", {
352
- className: "rounded-lg border border-border-subtle bg-bg-surface p-5",
353
- children: [/* @__PURE__ */ w("h3", {
354
- className: "text-base font-semibold text-text-primary mb-3",
355
- children: "Need Help?"
356
- }), /* @__PURE__ */ T("div", {
357
- className: "space-y-2",
358
- children: [
359
- /* @__PURE__ */ T("button", {
360
- type: "button",
361
- onClick: () => alert("Chat support coming soon!"),
362
- className: "w-full flex items-center justify-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
363
- children: [/* @__PURE__ */ w(g, { className: "h-4 w-4" }), "Chat Support"]
364
- }),
365
- /* @__PURE__ */ T("button", {
366
- type: "button",
367
- onClick: () => window.location.href = "tel:7012270561",
368
- className: "w-full flex items-center justify-center gap-2 rounded-lg border border-border-subtle px-3 py-2.5 text-sm font-medium text-text-primary hover:bg-accent transition-colors",
369
- children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Call Support"]
370
- }),
371
- P && !j.rating && /* @__PURE__ */ T("button", {
372
- type: "button",
373
- onClick: () => _(`/customer/orders/${j.id}/rate`),
374
- className: "w-full flex items-center justify-center gap-2 rounded-lg bg-foreground px-3 py-2.5 text-sm font-medium text-background hover:opacity-90 transition-opacity",
375
- children: [/* @__PURE__ */ w(b, { className: "h-4 w-4" }), "Rate Order"]
376
- })
377
- ]
378
- })]
379
- })
380
- ]
381
- })]
382
- })
415
+ })
416
+ ]
417
+ })]
418
+ })
419
+ ]
383
420
  });
384
421
  }
385
422
  //#endregion
386
- export { A as OrderTrackingPage };
423
+ export { N as OrderTrackingPage };
387
424
 
388
425
  //# sourceMappingURL=OrderTrackingPage.js.map