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