@burdenoff/microfe-coolandlovely 2026.624.1 → 2026.625.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/coolandlovely/components/EmptyState.js +17 -21
  2. package/dist/coolandlovely/components/EmptyState.js.map +1 -1
  3. package/dist/coolandlovely/components/InvestmentCard.js +25 -23
  4. package/dist/coolandlovely/components/InvestmentCard.js.map +1 -1
  5. package/dist/coolandlovely/components/MetricsCard.js +18 -12
  6. package/dist/coolandlovely/components/MetricsCard.js.map +1 -1
  7. package/dist/coolandlovely/components/PageLayout.js +38 -19
  8. package/dist/coolandlovely/components/PageLayout.js.map +1 -1
  9. package/dist/coolandlovely/components/RatingDisplay.js +3 -3
  10. package/dist/coolandlovely/components/RatingDisplay.js.map +1 -1
  11. package/dist/coolandlovely/components/StatusBadge.js +36 -16
  12. package/dist/coolandlovely/components/StatusBadge.js.map +1 -1
  13. package/dist/coolandlovely/pages/HomePage.js +219 -204
  14. package/dist/coolandlovely/pages/HomePage.js.map +1 -1
  15. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js +98 -92
  16. package/dist/coolandlovely/pages/admin/AdminAnalyticsPage.js.map +1 -1
  17. package/dist/coolandlovely/pages/admin/AdminDashboard.js +111 -77
  18. package/dist/coolandlovely/pages/admin/AdminDashboard.js.map +1 -1
  19. package/dist/coolandlovely/pages/admin/AdminFinancialPage.js +49 -43
  20. package/dist/coolandlovely/pages/admin/AdminFinancialPage.js.map +1 -1
  21. package/dist/coolandlovely/pages/admin/AdminOrdersPage.js +234 -229
  22. package/dist/coolandlovely/pages/admin/AdminOrdersPage.js.map +1 -1
  23. package/dist/coolandlovely/pages/admin/AdminProfilePage.js +67 -62
  24. package/dist/coolandlovely/pages/admin/AdminProfilePage.js.map +1 -1
  25. package/dist/coolandlovely/pages/admin/AdminSettingsPage.js +235 -230
  26. package/dist/coolandlovely/pages/admin/AdminSettingsPage.js.map +1 -1
  27. package/dist/coolandlovely/pages/admin/CartManagementPage.js +291 -286
  28. package/dist/coolandlovely/pages/admin/CartManagementPage.js.map +1 -1
  29. package/dist/coolandlovely/pages/admin/UserManagementPage.js +287 -282
  30. package/dist/coolandlovely/pages/admin/UserManagementPage.js.map +1 -1
  31. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js +108 -100
  32. package/dist/coolandlovely/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
  33. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js +260 -255
  34. package/dist/coolandlovely/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
  35. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js +596 -554
  36. package/dist/coolandlovely/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
  37. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js +187 -182
  38. package/dist/coolandlovely/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
  39. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js +229 -221
  40. package/dist/coolandlovely/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
  41. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js +675 -674
  42. package/dist/coolandlovely/pages/cart-owner/InventoryManagementPage.js.map +1 -1
  43. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js +525 -524
  44. package/dist/coolandlovely/pages/cart-owner/OrderManagementPage.js.map +1 -1
  45. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js +264 -266
  46. package/dist/coolandlovely/pages/cart-owner/StaffManagementPage.js.map +1 -1
  47. package/dist/coolandlovely/pages/common/HelpSupportPage.js +137 -137
  48. package/dist/coolandlovely/pages/common/HelpSupportPage.js.map +1 -1
  49. package/dist/coolandlovely/pages/common/NotificationCenterPage.js +81 -75
  50. package/dist/coolandlovely/pages/common/NotificationCenterPage.js.map +1 -1
  51. package/dist/coolandlovely/pages/common/SettingsPage.js +745 -736
  52. package/dist/coolandlovely/pages/common/SettingsPage.js.map +1 -1
  53. package/dist/coolandlovely/pages/customer/BookingDetailsPage.js +394 -357
  54. package/dist/coolandlovely/pages/customer/BookingDetailsPage.js.map +1 -1
  55. package/dist/coolandlovely/pages/customer/CartDetailPage.js +189 -186
  56. package/dist/coolandlovely/pages/customer/CartDetailPage.js.map +1 -1
  57. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js +222 -211
  58. package/dist/coolandlovely/pages/customer/CartDiscoveryPage.js.map +1 -1
  59. package/dist/coolandlovely/pages/customer/CheckoutPage.js +219 -222
  60. package/dist/coolandlovely/pages/customer/CheckoutPage.js.map +1 -1
  61. package/dist/coolandlovely/pages/customer/CustomerDashboard.js +446 -404
  62. package/dist/coolandlovely/pages/customer/CustomerDashboard.js.map +1 -1
  63. package/dist/coolandlovely/pages/customer/CustomerProfilePage.js +525 -488
  64. package/dist/coolandlovely/pages/customer/CustomerProfilePage.js.map +1 -1
  65. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js +522 -513
  66. package/dist/coolandlovely/pages/customer/DirectServiceBookingPage.js.map +1 -1
  67. package/dist/coolandlovely/pages/customer/FavoritesPage.js +94 -84
  68. package/dist/coolandlovely/pages/customer/FavoritesPage.js.map +1 -1
  69. package/dist/coolandlovely/pages/customer/OrderHistoryPage.js +121 -112
  70. package/dist/coolandlovely/pages/customer/OrderHistoryPage.js.map +1 -1
  71. package/dist/coolandlovely/pages/customer/OrderTrackingPage.js +312 -275
  72. package/dist/coolandlovely/pages/customer/OrderTrackingPage.js.map +1 -1
  73. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js +90 -84
  74. package/dist/coolandlovely/pages/customer/PaymentMethodsPage.js.map +1 -1
  75. package/dist/coolandlovely/pages/customer/ReviewsPage.js +99 -89
  76. package/dist/coolandlovely/pages/customer/ReviewsPage.js.map +1 -1
  77. package/dist/coolandlovely/pages/customer/SavedAddressesPage.js +74 -68
  78. package/dist/coolandlovely/pages/customer/SavedAddressesPage.js.map +1 -1
  79. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js +317 -279
  80. package/dist/coolandlovely/pages/investor/InvestmentDetailsPage.js.map +1 -1
  81. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js +249 -243
  82. package/dist/coolandlovely/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
  83. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js +87 -81
  84. package/dist/coolandlovely/pages/investor/InvestorAnalyticsPage.js.map +1 -1
  85. package/dist/coolandlovely/pages/investor/InvestorDashboard.js +359 -323
  86. package/dist/coolandlovely/pages/investor/InvestorDashboard.js.map +1 -1
  87. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js +115 -109
  88. package/dist/coolandlovely/pages/investor/InvestorInvestmentsPage.js.map +1 -1
  89. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js +179 -146
  90. package/dist/coolandlovely/pages/investor/InvestorPortfolioPage.js.map +1 -1
  91. package/dist/coolandlovely/pages/investor/InvestorProfilePage.js +397 -392
  92. package/dist/coolandlovely/pages/investor/InvestorProfilePage.js.map +1 -1
  93. package/dist/coolandlovely/pages/worker/TaskDetailsPage.js +364 -327
  94. package/dist/coolandlovely/pages/worker/TaskDetailsPage.js.map +1 -1
  95. package/dist/coolandlovely/pages/worker/WorkerDashboard.js +580 -543
  96. package/dist/coolandlovely/pages/worker/WorkerDashboard.js.map +1 -1
  97. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js +114 -109
  98. package/dist/coolandlovely/pages/worker/WorkerOrdersPage.js.map +1 -1
  99. package/dist/coolandlovely/pages/worker/WorkerProfilePage.js +115 -110
  100. package/dist/coolandlovely/pages/worker/WorkerProfilePage.js.map +1 -1
  101. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js +100 -95
  102. package/dist/coolandlovely/pages/worker/WorkerSchedulePage.js.map +1 -1
  103. package/package.json +3 -3
@@ -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/coolandlovely/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,10 +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, {
64
- icon: /* @__PURE__ */ w(y, { className: "h-12 w-12" }),
65
+ illustration: "empty-search",
65
66
  title: "Order not found",
66
67
  description: "The order you're looking for doesn't exist.",
67
68
  action: /* @__PURE__ */ w("button", {
@@ -72,8 +73,8 @@ function A() {
72
73
  })
73
74
  })
74
75
  });
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, {
76
+ 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;
77
+ return /* @__PURE__ */ T(n, {
77
78
  title: /* @__PURE__ */ T("div", {
78
79
  className: "flex items-center gap-3",
79
80
  children: [/* @__PURE__ */ w("button", {
@@ -83,306 +84,342 @@ function A() {
83
84
  children: /* @__PURE__ */ w(u, { className: "h-5 w-5" })
84
85
  }), /* @__PURE__ */ w("span", { children: "Track Order" })]
85
86
  }),
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",
87
+ actions: /* @__PURE__ */ w(r, { status: F.status }),
88
+ children: [
89
+ /* @__PURE__ */ w(O, {
90
+ className: "mb-6",
91
+ icon: /* @__PURE__ */ w(x, { className: "h-4 w-4" }),
92
+ children: "Follow this order from the kitchen to your door in real time. See exactly which stage it is at, who is delivering it, the full price breakdown, and get help or rate the order right here without leaving the page."
93
+ }),
94
+ /* @__PURE__ */ w(D, {
95
+ className: "mb-6",
96
+ storageKey: "coolandlovely-order-tracking",
97
+ steps: [
98
+ {
99
+ id: "call-driver",
100
+ label: "Contact your delivery partner",
101
+ description: F.assignedWorker ? `Call ${F.assignedWorker.name} if you need to coordinate delivery.` : "A delivery partner will be assigned shortly.",
102
+ icon: /* @__PURE__ */ w(v, { className: "h-4 w-4" }),
103
+ onClick: () => F.assignedWorker && (window.location.href = `tel:${F.assignedWorker.phone}`),
104
+ done: !F.assignedWorker
105
+ },
106
+ {
107
+ id: "rate",
108
+ label: "Rate this order",
109
+ description: "Share how it went once your order is delivered.",
110
+ icon: /* @__PURE__ */ w(b, { className: "h-4 w-4" }),
111
+ onClick: () => _(`/customer/orders/${F.id}/rate`),
112
+ done: !!F.rating || !R
113
+ },
114
+ {
115
+ id: "reorder",
116
+ label: "Order from this cart again",
117
+ description: "Liked it? Reorder the same items in a couple of taps.",
118
+ icon: /* @__PURE__ */ w(y, { className: "h-4 w-4" }),
119
+ onClick: () => _(`/customer/cart/${F.cartId}`)
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 bg-gloss-card shadow-pop",
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/10 border-status-success-border/20" : "bg-accent-blue-subtle/10 border-accent-blue-subtle/20"),
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-accent-blue mt-0.5 shrink-0" }), /* @__PURE__ */ w("p", {
170
+ className: t("text-sm font-medium", R ? "text-status-success-text" : "text-accent-blue"),
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-subtle" : "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/10 border-2 border-status-success-border text-status-success-text" : "bg-bg-sunken border-2 border-border-subtle text-text-secondary", i && "ring-4 ring-status-success-border/20"),
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-accent-blue",
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 bg-gloss-card shadow-pop",
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-subtle 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
166
231
  }),
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] })]
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
+ ]
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-subtle 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-subtle 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 bg-gloss-card shadow-pop",
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 }) })]
317
+ ] })]
221
318
  }),
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 }) })]
229
- }),
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 bg-gloss-card shadow-pop",
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-subtle 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 bg-gloss-card shadow-pop",
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-subtle 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-subtle 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