@burdenoff/microfe-labsofscience 2026.625.1 → 2026.626.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/labsofscience/pages/HomePage.js +33 -28
- package/dist/labsofscience/pages/HomePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +67 -61
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminDashboard.js +76 -44
- package/dist/labsofscience/pages/admin/AdminDashboard.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js +38 -32
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js +226 -221
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminProfilePage.js +127 -125
- package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js +489 -487
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/CartManagementPage.js +124 -119
- package/dist/labsofscience/pages/admin/CartManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/admin/UserManagementPage.js +267 -262
- package/dist/labsofscience/pages/admin/UserManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +46 -41
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +172 -167
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +79 -48
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +98 -93
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +112 -107
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +298 -300
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +221 -223
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +251 -245
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +1 -1
- package/dist/labsofscience/pages/common/HelpSupportPage.js +284 -285
- package/dist/labsofscience/pages/common/HelpSupportPage.js.map +1 -1
- package/dist/labsofscience/pages/common/NotificationCenterPage.js +48 -42
- package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +1 -1
- package/dist/labsofscience/pages/common/SettingsPage.js +745 -736
- package/dist/labsofscience/pages/common/SettingsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js +399 -356
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDetailPage.js +262 -230
- package/dist/labsofscience/pages/customer/CartDetailPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +162 -151
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CheckoutPage.js +213 -215
- package/dist/labsofscience/pages/customer/CheckoutPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerDashboard.js +416 -381
- package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js +528 -491
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +521 -512
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/FavoritesPage.js +57 -51
- package/dist/labsofscience/pages/customer/FavoritesPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js +56 -50
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js +310 -274
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +81 -75
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/ReviewsPage.js +68 -62
- package/dist/labsofscience/pages/customer/ReviewsPage.js.map +1 -1
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js +61 -55
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +92 -60
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +237 -231
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +60 -54
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorDashboard.js +342 -307
- package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +106 -100
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +51 -45
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +1 -1
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js +386 -381
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js +359 -319
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerDashboard.js +90 -59
- package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +76 -71
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js +82 -77
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +1 -1
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +348 -340
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +1 -1
- 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
|
|
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
|
-
},
|
|
23
|
+
}, A = [
|
|
23
24
|
"pending",
|
|
24
25
|
"confirmed",
|
|
25
26
|
"preparing",
|
|
26
27
|
"ready",
|
|
27
28
|
"out_for_delivery",
|
|
28
29
|
"delivered"
|
|
29
|
-
],
|
|
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
|
-
},
|
|
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
|
|
45
|
-
let { orderId: f } = C(), { navigateTo: _ } = e(), [
|
|
45
|
+
function N() {
|
|
46
|
+
let { orderId: f } = C(), { navigateTo: _ } = e(), [N, P] = l(!0);
|
|
46
47
|
c(() => {
|
|
47
|
-
let e = setTimeout(() =>
|
|
48
|
+
let e = setTimeout(() => P(!1), 800);
|
|
48
49
|
return () => clearTimeout(e);
|
|
49
50
|
}, []);
|
|
50
|
-
let
|
|
51
|
-
if (
|
|
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 (!
|
|
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
|
|
77
|
-
return /* @__PURE__ */
|
|
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:
|
|
88
|
-
children:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
className: "
|
|
92
|
-
children:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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-
|
|
99
|
-
children: [
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
className: "text-
|
|
117
|
-
children:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
}),
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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:
|
|
166
|
-
children:
|
|
229
|
+
className: "text-sm font-medium text-text-primary",
|
|
230
|
+
children: e.name
|
|
167
231
|
}),
|
|
168
|
-
|
|
169
|
-
className: "
|
|
170
|
-
children:
|
|
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
|
-
}
|
|
176
|
-
|
|
177
|
-
})
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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: "
|
|
185
|
-
}),
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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:
|
|
299
|
+
children: F.deliveryAddress.street
|
|
196
300
|
}),
|
|
197
|
-
|
|
198
|
-
className: "text-
|
|
199
|
-
children:
|
|
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-
|
|
306
|
+
className: "text-sm text-text-secondary",
|
|
203
307
|
children: [
|
|
204
|
-
|
|
205
|
-
"
|
|
206
|
-
|
|
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: "
|
|
225
|
-
children:
|
|
226
|
-
}),
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
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: "
|
|
329
|
+
children: "Payment Method"
|
|
261
330
|
}),
|
|
262
331
|
/* @__PURE__ */ w("p", {
|
|
263
|
-
className: "text-sm font-medium text-text-primary",
|
|
264
|
-
children:
|
|
332
|
+
className: "text-sm font-medium text-text-primary capitalize",
|
|
333
|
+
children: F.paymentMethod
|
|
265
334
|
}),
|
|
266
335
|
/* @__PURE__ */ w("p", {
|
|
267
|
-
className: "text-
|
|
268
|
-
children:
|
|
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("
|
|
271
|
-
className: "
|
|
272
|
-
children: [
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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__ */
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
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("
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
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__ */
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
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
|
-
|
|
353
|
-
|
|
354
|
-
|
|
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 {
|
|
423
|
+
export { N as OrderTrackingPage };
|
|
388
424
|
|
|
389
425
|
//# sourceMappingURL=OrderTrackingPage.js.map
|