@burdenoff/microfe-labsofscience 2026.625.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 (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
@@ -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,7 +59,7 @@ 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, {
64
65
  illustration: "empty-data",
@@ -73,8 +74,8 @@ function A() {
73
74
  })
74
75
  })
75
76
  });
76
- 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;
77
- 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, {
78
79
  title: /* @__PURE__ */ T("div", {
79
80
  className: "flex items-center gap-3",
80
81
  children: [/* @__PURE__ */ w("button", {
@@ -84,306 +85,341 @@ function A() {
84
85
  children: /* @__PURE__ */ w(u, { className: "h-5 w-5" })
85
86
  }), /* @__PURE__ */ w("span", { children: "Track Order" })]
86
87
  }),
87
- actions: /* @__PURE__ */ w(r, { status: j.status }),
88
- children: /* @__PURE__ */ T("div", {
89
- className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
90
- children: [/* @__PURE__ */ T("div", {
91
- className: "lg:col-span-2 space-y-6",
92
- children: [
93
- /* @__PURE__ */ T("div", {
94
- className: "rounded-lg border border-border-seam bg-bg-surface p-5",
95
- children: [/* @__PURE__ */ T("div", {
96
- 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",
97
130
  children: [/* @__PURE__ */ T("div", {
98
- className: "flex-1",
99
- children: [
100
- /* @__PURE__ */ T("h2", {
101
- className: "text-lg font-semibold text-text-primary",
102
- children: ["Order #", j.id]
103
- }),
104
- /* @__PURE__ */ w("p", {
105
- className: "text-sm text-text-secondary",
106
- children: j.cartName
107
- }),
108
- /* @__PURE__ */ w("p", {
109
- className: "text-xs text-text-secondary mt-0.5",
110
- children: o(j.orderDate)
111
- })
112
- ]
113
- }), /* @__PURE__ */ T("div", {
114
- className: "text-left sm:text-right",
115
- children: [/* @__PURE__ */ w("p", {
116
- className: "text-xl font-bold text-text-primary",
117
- children: a(j.total, { minimumFractionDigits: 0 })
118
- }), /* @__PURE__ */ w("p", {
119
- className: "text-xs text-text-secondary uppercase",
120
- 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"
121
172
  })]
122
173
  })]
123
- }), N ? /* @__PURE__ */ T("div", {
124
- className: "mt-4 flex items-start gap-3 rounded-lg bg-status-error-bg/10 p-4 border border-status-error-border/20",
125
- 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", {
126
- className: "font-medium text-status-error-text",
127
- children: "Order Cancelled"
128
- }), j.cancellationReason && /* @__PURE__ */ w("p", {
129
- className: "text-sm text-status-error-text/80 mt-0.5",
130
- children: j.cancellationReason
131
- })] })]
132
- }) : /* @__PURE__ */ T("div", {
133
- className: t("mt-4 flex items-start gap-3 rounded-lg p-4 border", P ? "bg-status-success-bg-subtle border-status-success-border" : "bg-status-info-bg-subtle border-status-info-border"),
134
- children: [P ? /* @__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", {
135
- className: t("text-sm font-medium", P ? "text-status-success-text" : "text-status-info-text"),
136
- 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
+ })
137
212
  })]
138
- })]
139
- }),
140
- !N && /* @__PURE__ */ T("div", {
141
- className: "rounded-lg border border-border-seam bg-bg-surface p-5",
142
- children: [/* @__PURE__ */ w("h3", {
143
- className: "text-base font-semibold text-text-primary mb-5",
144
- children: "Order Status"
145
- }), /* @__PURE__ */ w("div", {
146
- className: "relative space-y-0",
147
- children: D.map((e, n) => {
148
- let r = F(e), i = I(e), a = n === D.length - 1, o = E[e] ?? p;
149
- return /* @__PURE__ */ T("div", {
150
- className: "flex items-start relative",
151
- children: [
152
- !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") }),
153
- /* @__PURE__ */ w("div", {
154
- 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"),
155
- children: /* @__PURE__ */ w(o, { className: "h-4 w-4" })
156
- }),
157
- /* @__PURE__ */ T("div", {
158
- 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",
159
227
  children: [
160
- /* @__PURE__ */ w("h4", {
161
- className: t("text-sm font-semibold", r ? "text-text-primary" : "text-text-secondary"),
162
- children: O[e]
163
- }),
164
228
  /* @__PURE__ */ w("p", {
165
- className: t("text-xs", r ? "text-text-secondary" : "text-text-secondary/50"),
166
- children: k[e]
229
+ className: "text-sm font-medium text-text-primary",
230
+ children: e.name
167
231
  }),
168
- i && j.assignedWorker && /* @__PURE__ */ T("div", {
169
- className: "mt-1.5 text-xs text-status-info-text",
170
- children: [/* @__PURE__ */ T("p", { children: ["Driver: ", j.assignedWorker.name] }), /* @__PURE__ */ T("p", { children: ["Contact: ", j.assignedWorker.phone] })]
232
+ e.customizations && e.customizations.length > 0 && /* @__PURE__ */ w("p", {
233
+ className: "text-xs text-text-secondary",
234
+ children: e.customizations.join(", ")
235
+ }),
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
+ ]
171
243
  })
172
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 }) })]
173
273
  })
174
274
  ]
175
- }, e);
176
- })
177
- })]
178
- }),
179
- /* @__PURE__ */ T("div", {
180
- className: "rounded-lg border border-border-seam bg-bg-surface p-5",
181
- children: [
182
- /* @__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", {
183
285
  className: "text-base font-semibold text-text-primary mb-3",
184
- children: "Order Items"
185
- }),
186
- /* @__PURE__ */ w("div", {
187
- className: "space-y-2",
188
- children: j.items.map((e, t) => /* @__PURE__ */ T("div", {
189
- className: "flex justify-between items-start pb-2 border-b border-border-seam last:border-b-0",
190
- children: [/* @__PURE__ */ T("div", {
191
- className: "flex-1 pr-2",
192
- 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
+ }),
193
297
  /* @__PURE__ */ w("p", {
194
298
  className: "text-sm font-medium text-text-primary",
195
- children: e.name
299
+ children: F.deliveryAddress.street
196
300
  }),
197
- e.customizations && e.customizations.length > 0 && /* @__PURE__ */ w("p", {
198
- className: "text-xs text-text-secondary",
199
- children: e.customizations.join(", ")
301
+ /* @__PURE__ */ w("p", {
302
+ className: "text-sm text-text-secondary",
303
+ children: F.deliveryAddress.area
200
304
  }),
201
305
  /* @__PURE__ */ T("p", {
202
- className: "text-xs text-text-secondary",
306
+ className: "text-sm text-text-secondary",
203
307
  children: [
204
- a(e.price, { minimumFractionDigits: 0 }),
205
- " x ",
206
- e.quantity
308
+ F.deliveryAddress.city,
309
+ ", ",
310
+ F.deliveryAddress.pincode
207
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]
208
316
  })
209
- ]
210
- }), /* @__PURE__ */ w("p", {
211
- className: "text-sm font-medium text-text-primary",
212
- children: a(e.price * e.quantity, { minimumFractionDigits: 0 })
213
- })]
214
- }, t))
215
- }),
216
- /* @__PURE__ */ T("div", {
217
- className: "mt-4 pt-4 border-t border-border-seam space-y-2 text-sm",
218
- children: [
219
- /* @__PURE__ */ T("div", {
220
- className: "flex justify-between text-text-secondary",
221
- children: [/* @__PURE__ */ w("span", { children: "Subtotal" }), /* @__PURE__ */ w("span", { children: a(j.subtotal, { minimumFractionDigits: 0 }) })]
317
+ ] })]
222
318
  }),
223
- /* @__PURE__ */ T("div", {
224
- className: "flex justify-between text-text-secondary",
225
- children: [/* @__PURE__ */ w("span", { children: "Delivery Fee" }), /* @__PURE__ */ w("span", { children: j.deliveryFee === 0 ? "FREE" : a(j.deliveryFee, { minimumFractionDigits: 0 }) })]
226
- }),
227
- /* @__PURE__ */ T("div", {
228
- className: "flex justify-between text-text-secondary",
229
- children: [/* @__PURE__ */ w("span", { children: "Tax" }), /* @__PURE__ */ w("span", { children: a(j.taxes, { minimumFractionDigits: 0 }) })]
230
- }),
231
- j.discount && j.discount > 0 && /* @__PURE__ */ T("div", {
232
- className: "flex justify-between text-status-success-text",
233
- children: [/* @__PURE__ */ w("span", { children: "Discount" }), /* @__PURE__ */ T("span", { children: ["-", a(j.discount, { minimumFractionDigits: 0 })] })]
234
- }),
235
- /* @__PURE__ */ T("div", {
236
- className: "flex justify-between font-semibold pt-2 border-t border-border-seam text-text-primary",
237
- children: [/* @__PURE__ */ w("span", { children: "Total" }), /* @__PURE__ */ w("span", { children: a(j.total, { minimumFractionDigits: 0 }) })]
238
- })
239
- ]
240
- })
241
- ]
242
- })
243
- ]
244
- }), /* @__PURE__ */ T("div", {
245
- className: "lg:col-span-1 space-y-6",
246
- children: [
247
- /* @__PURE__ */ T("div", {
248
- className: "rounded-lg border border-border-seam bg-bg-surface p-5",
249
- children: [/* @__PURE__ */ w("h3", {
250
- className: "text-base font-semibold text-text-primary mb-3",
251
- children: "Delivery Details"
252
- }), /* @__PURE__ */ T("div", {
253
- className: "space-y-3",
254
- children: [
255
- /* @__PURE__ */ T("div", {
256
- className: "flex items-start gap-2",
257
- 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: [
258
327
  /* @__PURE__ */ w("p", {
259
328
  className: "text-xs text-text-secondary",
260
- children: "Delivery Address"
329
+ children: "Payment Method"
261
330
  }),
262
331
  /* @__PURE__ */ w("p", {
263
- className: "text-sm font-medium text-text-primary",
264
- children: j.deliveryAddress.street
332
+ className: "text-sm font-medium text-text-primary capitalize",
333
+ children: F.paymentMethod
265
334
  }),
266
335
  /* @__PURE__ */ w("p", {
267
- className: "text-sm text-text-secondary",
268
- 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
+ })
269
359
  }),
270
- /* @__PURE__ */ T("p", {
271
- className: "text-sm text-text-secondary",
272
- children: [
273
- j.deliveryAddress.city,
274
- ", ",
275
- j.deliveryAddress.pincode
276
- ]
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
+ })]
277
372
  }),
278
- j.deliveryAddress.landmark && /* @__PURE__ */ T("p", {
279
- className: "text-xs text-text-secondary mt-0.5",
280
- 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" })
281
377
  })
282
- ] })]
283
- }),
284
- j.customerNotes && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
285
- className: "text-xs text-text-secondary",
286
- children: "Customer Notes"
287
- }), /* @__PURE__ */ w("p", {
288
- className: "text-sm text-text-primary",
289
- children: j.customerNotes
290
- })] }),
291
- /* @__PURE__ */ T("div", { children: [
292
- /* @__PURE__ */ w("p", {
293
- className: "text-xs text-text-secondary",
294
- children: "Payment Method"
295
- }),
296
- /* @__PURE__ */ w("p", {
297
- className: "text-sm font-medium text-text-primary capitalize",
298
- children: j.paymentMethod
299
- }),
300
- /* @__PURE__ */ w("p", {
301
- className: "text-xs text-text-secondary",
302
- children: j.paymentStatus === "completed" ? "Paid" : "Payment Pending"
303
- })
304
- ] })
305
- ]
306
- })]
307
- }),
308
- j.assignedWorker && /* @__PURE__ */ T("div", {
309
- className: "rounded-lg border border-border-seam bg-bg-surface p-5",
310
- children: [/* @__PURE__ */ w("h3", {
311
- className: "text-base font-semibold text-text-primary mb-3",
312
- children: "Delivery Partner"
313
- }), /* @__PURE__ */ T("div", {
314
- className: "space-y-3",
315
- children: [/* @__PURE__ */ T("div", {
316
- 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",
317
394
  children: [
318
- /* @__PURE__ */ w("div", {
319
- className: "flex h-10 w-10 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
320
- children: /* @__PURE__ */ w("span", {
321
- className: "text-sm font-semibold",
322
- children: j.assignedWorker.name.charAt(0)
323
- })
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"]
324
400
  }),
325
- /* @__PURE__ */ T("div", {
326
- className: "flex-1 min-w-0",
327
- children: [/* @__PURE__ */ w("p", {
328
- className: "text-sm font-medium text-text-primary",
329
- children: j.assignedWorker.name
330
- }), /* @__PURE__ */ T("div", {
331
- className: "flex items-center gap-1.5 mt-0.5",
332
- children: [/* @__PURE__ */ w(b, { className: "h-3 w-3 fill-status-warning-text text-status-warning-text" }), /* @__PURE__ */ T("span", {
333
- className: "text-xs text-text-secondary",
334
- children: [j.assignedWorker.rating, "/5"]
335
- })]
336
- })]
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"]
337
406
  }),
338
- /* @__PURE__ */ w("a", {
339
- href: `tel:${j.assignedWorker.phone}`,
340
- 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",
341
- 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"]
342
412
  })
343
413
  ]
344
- }), /* @__PURE__ */ T("button", {
345
- type: "button",
346
- onClick: () => window.location.href = `tel:${j.assignedWorker.phone}`,
347
- 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",
348
- children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Call Driver"]
349
414
  })]
350
- })]
351
- }),
352
- /* @__PURE__ */ T("div", {
353
- className: "rounded-lg border border-border-seam bg-bg-surface p-5",
354
- children: [/* @__PURE__ */ w("h3", {
355
- className: "text-base font-semibold text-text-primary mb-3",
356
- children: "Need Help?"
357
- }), /* @__PURE__ */ T("div", {
358
- className: "space-y-2",
359
- children: [
360
- /* @__PURE__ */ T("button", {
361
- type: "button",
362
- onClick: () => alert("Chat support coming soon!"),
363
- 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",
364
- children: [/* @__PURE__ */ w(g, { className: "h-4 w-4" }), "Chat Support"]
365
- }),
366
- /* @__PURE__ */ T("button", {
367
- type: "button",
368
- onClick: () => window.location.href = "tel:7012270561",
369
- 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",
370
- children: [/* @__PURE__ */ w(v, { className: "h-4 w-4" }), "Call Support"]
371
- }),
372
- P && !j.rating && /* @__PURE__ */ T("button", {
373
- type: "button",
374
- onClick: () => _(`/customer/orders/${j.id}/rate`),
375
- 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",
376
- children: [/* @__PURE__ */ w(b, { className: "h-4 w-4" }), "Rate Order"]
377
- })
378
- ]
379
- })]
380
- })
381
- ]
382
- })]
383
- })
415
+ })
416
+ ]
417
+ })]
418
+ })
419
+ ]
384
420
  });
385
421
  }
386
422
  //#endregion
387
- export { A as OrderTrackingPage };
423
+ export { N as OrderTrackingPage };
388
424
 
389
425
  //# sourceMappingURL=OrderTrackingPage.js.map