@burdenoff/microfe-movethewheels 2026.625.1 → 2026.626.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AIAssistantPage-CNyoKtID.js → AIAssistantPage-AvsMbunM.js} +35 -29
- package/dist/{AnalyticsPage-Ck615ox7.js → AnalyticsPage-CCLfHgQZ.js} +36 -25
- package/dist/CreateOrderPage-CjlnEtk3.js +510 -0
- package/dist/CustomerDetailsPage-I6cdDHUi.js +265 -0
- package/dist/CustomersPage-CGGfD4ki.js +163 -0
- package/dist/{DashboardPage-DTmyuC11.js → DashboardPage-D2HRqwg9.js} +93 -89
- package/dist/DataTable-CD9ZhpLB.js +249 -0
- package/dist/DriverDetailsPage-rg_pGNuP.js +330 -0
- package/dist/DriversPage-DKiynISH.js +167 -0
- package/dist/FinancePage-Vg8WPs38.js +158 -0
- package/dist/{FleetPage-DCfOmBa2.js → FleetPage-DddXt8r8.js} +109 -71
- package/dist/ImportExportPage-BW6qO3kc.js +248 -0
- package/dist/{InventoryPage-BW0QXWuf.js → InventoryPage-rMGuaJN-.js} +74 -70
- package/dist/LiveTrackingPage-DQ1q4Id3.js +375 -0
- package/dist/MarketplacePage-DKrXAv62.js +219 -0
- package/dist/OrderDetailsPage-CFASgsYX.js +431 -0
- package/dist/OrdersListPage-BHeT8S5o.js +309 -0
- package/dist/ProductDetailsPage-CFGcbaHo.js +195 -0
- package/dist/ProductsPage--xEpbQ8A.js +171 -0
- package/dist/{ReportsPage-Df3hciPy.js → ReportsPage-Bb7_90rK.js} +53 -45
- package/dist/RouteDetailsPage-CVtDVb1N.js +282 -0
- package/dist/RoutesPage-s57PtgcQ.js +163 -0
- package/dist/SettingsPage-BYNCBOpN.js +298 -0
- package/dist/{TrackingPage-CU0Vk4mx.js → TrackingPage-CcRc_dva.js} +77 -72
- package/dist/VehicleDetailsPage-3YDMPsPs.js +220 -0
- package/dist/VehiclesPage-UlxPWP9K.js +167 -0
- package/dist/WarehouseDetailsPage-Db7KeN-d.js +238 -0
- package/dist/WarehousesPage-CuTO-OPp.js +164 -0
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/src/movethewheels/components/DataTable.tsx +37 -2
- package/src/movethewheels/components/MetricCard.tsx +3 -1
- package/src/movethewheels/pages/AIAssistantPage.tsx +11 -3
- package/src/movethewheels/pages/AnalyticsPage.tsx +31 -25
- package/src/movethewheels/pages/CreateOrderPage.tsx +56 -17
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +63 -38
- package/src/movethewheels/pages/CustomersPage.tsx +40 -2
- package/src/movethewheels/pages/DashboardPage.tsx +8 -1
- package/src/movethewheels/pages/DriverDetailsPage.tsx +57 -26
- package/src/movethewheels/pages/DriversPage.tsx +37 -1
- package/src/movethewheels/pages/FinancePage.tsx +45 -41
- package/src/movethewheels/pages/FleetPage.tsx +68 -25
- package/src/movethewheels/pages/ImportExportPage.tsx +46 -29
- package/src/movethewheels/pages/InventoryPage.tsx +20 -23
- package/src/movethewheels/pages/LiveTrackingPage.tsx +58 -20
- package/src/movethewheels/pages/MarketplacePage.tsx +37 -3
- package/src/movethewheels/pages/OrderDetailsPage.tsx +74 -46
- package/src/movethewheels/pages/OrdersListPage.tsx +62 -1
- package/src/movethewheels/pages/ProductDetailsPage.tsx +36 -11
- package/src/movethewheels/pages/ProductsPage.tsx +33 -1
- package/src/movethewheels/pages/ReportsPage.tsx +23 -19
- package/src/movethewheels/pages/RouteDetailsPage.tsx +71 -31
- package/src/movethewheels/pages/RoutesPage.tsx +41 -5
- package/src/movethewheels/pages/SettingsPage.tsx +68 -26
- package/src/movethewheels/pages/TrackingPage.tsx +50 -47
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +49 -24
- package/src/movethewheels/pages/VehiclesPage.tsx +33 -1
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +55 -30
- package/src/movethewheels/pages/WarehousesPage.tsx +42 -4
- package/dist/CreateOrderPage-C9Vb57Yn.js +0 -471
- package/dist/CustomerDetailsPage-BVkHRZvi.js +0 -239
- package/dist/CustomersPage-DhQg-6h_.js +0 -118
- package/dist/DataTable-CfWvFw5B.js +0 -239
- package/dist/DriverDetailsPage-DaaCQ-2O.js +0 -297
- package/dist/DriversPage-D0RMBB_t.js +0 -129
- package/dist/FinancePage-BUXqW1IM.js +0 -154
- package/dist/ImportExportPage-BM1BoRcE.js +0 -232
- package/dist/LiveTrackingPage-DqcGXdkw.js +0 -332
- package/dist/MarketplacePage-DFqsxNYU.js +0 -192
- package/dist/OrderDetailsPage-Dx1m3cVA.js +0 -398
- package/dist/OrdersListPage-DHYBGrWf.js +0 -256
- package/dist/ProductDetailsPage-DOXO90kb.js +0 -168
- package/dist/ProductsPage-RLMTwWN0.js +0 -133
- package/dist/RouteDetailsPage-xzFDeR-X.js +0 -240
- package/dist/RoutesPage-DDFy1QVi.js +0 -118
- package/dist/SettingsPage-JH_-UPbf.js +0 -247
- package/dist/VehicleDetailsPage-P4xDttKw.js +0 -194
- package/dist/VehiclesPage-tJZ64QKV.js +0 -129
- package/dist/WarehouseDetailsPage-Bt_w2Yf7.js +0 -215
- package/dist/WarehousesPage-HsPpEFeG.js +0 -126
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
import { G as e, H as t, K as n, U as r, W as i, d as a, f as o, g as s, h as c, i as l, it as u, l as d, n as f, q as p, r as m, u as h, z as g } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
+
import { t as _ } from "./arrow-left-CBpZKkpq.js";
|
|
3
|
+
import { t as v } from "./circle-check-big-CjuPVo3_.js";
|
|
4
|
+
import { t as y } from "./clock-BjkdnddD.js";
|
|
5
|
+
import { t as b } from "./dollar-sign-IB4O0wuQ.js";
|
|
6
|
+
import { t as x } from "./file-text-C8Uioy11.js";
|
|
7
|
+
import { n as S, t as C } from "./phone-DV4StZiA.js";
|
|
8
|
+
import { t as w } from "./map-pin-BSaf5IDL.js";
|
|
9
|
+
import { t as T } from "./package-BE7U0wQE.js";
|
|
10
|
+
import { t as E } from "./square-pen-hLIbFQFV.js";
|
|
11
|
+
import { t as D } from "./truck-CtDjNFbi.js";
|
|
12
|
+
import { t as O } from "./user-Dz5TJZFs.js";
|
|
13
|
+
import { r as k } from "./graphqlClient-CdJyR_ed.js";
|
|
14
|
+
import { t as A } from "./useOrders-D_3_hGMp.js";
|
|
15
|
+
import { i as j, n as M, r as N, t as P } from "./StatusBadge-CijYQXtb.js";
|
|
16
|
+
import { n as F, r as I, t as L } from "./formatters-_vJlC-47.js";
|
|
17
|
+
import { t as R } from "./navigation-BgnOfsVd.js";
|
|
18
|
+
import { useParams as z } from "react-router-dom";
|
|
19
|
+
import { jsx as B, jsxs as V } from "react/jsx-runtime";
|
|
20
|
+
import { EmphasisPanel as H, NextSteps as U, PagePurpose as W } from "@burdenoff/fe-libs/ui";
|
|
21
|
+
//#region node_modules/lucide-react/dist/esm/icons/printer.js
|
|
22
|
+
var G = u("Printer", [
|
|
23
|
+
["path", {
|
|
24
|
+
d: "M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",
|
|
25
|
+
key: "143wyd"
|
|
26
|
+
}],
|
|
27
|
+
["path", {
|
|
28
|
+
d: "M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",
|
|
29
|
+
key: "1itne7"
|
|
30
|
+
}],
|
|
31
|
+
["rect", {
|
|
32
|
+
x: "6",
|
|
33
|
+
y: "14",
|
|
34
|
+
width: "12",
|
|
35
|
+
height: "8",
|
|
36
|
+
rx: "1",
|
|
37
|
+
key: "1ue0tg"
|
|
38
|
+
}]
|
|
39
|
+
]);
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/movethewheels/pages/OrderDetailsPage.tsx
|
|
42
|
+
function K() {
|
|
43
|
+
let { orderId: u } = z(), { basePath: K, navigate: q } = k(), { order: J, isLoading: Y, error: X, refetch: Z } = A(u), Q = (e) => {
|
|
44
|
+
q && q(R(K, e));
|
|
45
|
+
};
|
|
46
|
+
return Y ? /* @__PURE__ */ B(m, { message: "Loading order details..." }) : X || !J ? /* @__PURE__ */ B(f, {
|
|
47
|
+
title: "Order not found",
|
|
48
|
+
message: "The order you're looking for doesn't exist or has been removed.",
|
|
49
|
+
onRetry: Z
|
|
50
|
+
}) : /* @__PURE__ */ V(l, {
|
|
51
|
+
title: J.orderNumber,
|
|
52
|
+
subtitle: `Created ${I(J.createdAt, "full")}`,
|
|
53
|
+
icon: /* @__PURE__ */ B(T, { size: 24 }),
|
|
54
|
+
headerActions: /* @__PURE__ */ V("div", {
|
|
55
|
+
className: "flex gap-2",
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ V(h, {
|
|
58
|
+
variant: "outline",
|
|
59
|
+
onClick: () => {
|
|
60
|
+
q && q(R(K, "orders"));
|
|
61
|
+
},
|
|
62
|
+
children: [/* @__PURE__ */ B(_, { size: 16 }), "Back"]
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ V(h, {
|
|
65
|
+
variant: "outline",
|
|
66
|
+
children: [/* @__PURE__ */ B(G, { size: 16 }), "Print"]
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ V(h, {
|
|
69
|
+
onClick: () => Q(`orders/${u}/edit`),
|
|
70
|
+
children: [/* @__PURE__ */ B(E, { size: 16 }), "Edit"]
|
|
71
|
+
})
|
|
72
|
+
]
|
|
73
|
+
}),
|
|
74
|
+
headerContent: /* @__PURE__ */ V("div", {
|
|
75
|
+
className: "flex flex-wrap gap-2",
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ B(N, {
|
|
78
|
+
status: J.status,
|
|
79
|
+
type: "order"
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ B(M, { priority: J.priority }),
|
|
82
|
+
/* @__PURE__ */ B(j, { type: J.orderType }),
|
|
83
|
+
/* @__PURE__ */ B(P, { status: J.pricing.paymentStatus })
|
|
84
|
+
]
|
|
85
|
+
}),
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ B(W, {
|
|
88
|
+
icon: /* @__PURE__ */ B(T, { size: 18 }),
|
|
89
|
+
children: "Everything about this one delivery in a single place — who it's for, where it's going, what's inside, the running cost and the full status history. Use this page to review the order, hand it to a driver, print the docket, or jump into live tracking."
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ B(U, {
|
|
92
|
+
storageKey: "movethewheels-order-details",
|
|
93
|
+
steps: [
|
|
94
|
+
{
|
|
95
|
+
id: "track",
|
|
96
|
+
label: "Track this order live",
|
|
97
|
+
description: "See where the shipment is right now on the map.",
|
|
98
|
+
icon: /* @__PURE__ */ B(w, { size: 16 }),
|
|
99
|
+
onClick: () => Q(`tracking?order=${J.id}`)
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: "edit",
|
|
103
|
+
label: "Edit order details",
|
|
104
|
+
description: "Update items, addresses or instructions before dispatch.",
|
|
105
|
+
icon: /* @__PURE__ */ B(E, { size: 16 }),
|
|
106
|
+
onClick: () => Q(`orders/${u}/edit`)
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
id: "print",
|
|
110
|
+
label: "Print the delivery docket",
|
|
111
|
+
description: "Generate a printable copy for the driver or warehouse.",
|
|
112
|
+
icon: /* @__PURE__ */ B(G, { size: 16 }),
|
|
113
|
+
onClick: () => window.print()
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ V("div", {
|
|
118
|
+
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
119
|
+
children: [/* @__PURE__ */ V("div", {
|
|
120
|
+
className: "lg:col-span-2 space-y-6",
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
|
|
123
|
+
className: "flex items-center gap-2",
|
|
124
|
+
children: [/* @__PURE__ */ B(O, { size: 18 }), "Customer Information"]
|
|
125
|
+
}) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ V("div", {
|
|
126
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
127
|
+
children: [/* @__PURE__ */ V("div", { children: [
|
|
128
|
+
/* @__PURE__ */ B("h4", {
|
|
129
|
+
className: "font-medium mb-2",
|
|
130
|
+
children: J.customerInfo.name
|
|
131
|
+
}),
|
|
132
|
+
J.customerInfo.company && /* @__PURE__ */ B("p", {
|
|
133
|
+
className: "text-sm text-text-secondary mb-2",
|
|
134
|
+
children: J.customerInfo.company
|
|
135
|
+
}),
|
|
136
|
+
/* @__PURE__ */ V("div", {
|
|
137
|
+
className: "space-y-1 text-sm",
|
|
138
|
+
children: [/* @__PURE__ */ V("p", {
|
|
139
|
+
className: "flex items-center gap-2",
|
|
140
|
+
children: [/* @__PURE__ */ B(S, {
|
|
141
|
+
size: 14,
|
|
142
|
+
className: "text-text-secondary"
|
|
143
|
+
}), J.customerInfo.email]
|
|
144
|
+
}), /* @__PURE__ */ V("p", {
|
|
145
|
+
className: "flex items-center gap-2",
|
|
146
|
+
children: [/* @__PURE__ */ B(C, {
|
|
147
|
+
size: 14,
|
|
148
|
+
className: "text-text-secondary"
|
|
149
|
+
}), J.customerInfo.phone]
|
|
150
|
+
})]
|
|
151
|
+
})
|
|
152
|
+
] }), /* @__PURE__ */ V("div", { children: [J.customerInfo.preferredDeliveryTime && /* @__PURE__ */ V("div", {
|
|
153
|
+
className: "mb-2",
|
|
154
|
+
children: [/* @__PURE__ */ B("p", {
|
|
155
|
+
className: "text-sm text-text-secondary",
|
|
156
|
+
children: "Preferred Delivery Time"
|
|
157
|
+
}), /* @__PURE__ */ B("p", {
|
|
158
|
+
className: "text-sm",
|
|
159
|
+
children: J.customerInfo.preferredDeliveryTime
|
|
160
|
+
})]
|
|
161
|
+
}), J.customerInfo.deliveryInstructions && /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
|
|
162
|
+
className: "text-sm text-text-secondary",
|
|
163
|
+
children: "Delivery Instructions"
|
|
164
|
+
}), /* @__PURE__ */ B("p", {
|
|
165
|
+
className: "text-sm",
|
|
166
|
+
children: J.customerInfo.deliveryInstructions
|
|
167
|
+
})] })] })]
|
|
168
|
+
}) })] }),
|
|
169
|
+
/* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
|
|
170
|
+
className: "flex items-center gap-2",
|
|
171
|
+
children: [/* @__PURE__ */ B(w, { size: 18 }), "Addresses"]
|
|
172
|
+
}) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ V("div", {
|
|
173
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
174
|
+
children: [/* @__PURE__ */ V("div", { children: [
|
|
175
|
+
/* @__PURE__ */ B("h4", {
|
|
176
|
+
className: "font-medium mb-2 flex items-center gap-2",
|
|
177
|
+
children: /* @__PURE__ */ B(d, {
|
|
178
|
+
variant: "outline",
|
|
179
|
+
children: "Pickup"
|
|
180
|
+
})
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ B("p", {
|
|
183
|
+
className: "text-sm",
|
|
184
|
+
children: L(J.pickupAddress)
|
|
185
|
+
}),
|
|
186
|
+
J.scheduledPickup && /* @__PURE__ */ V("p", {
|
|
187
|
+
className: "text-sm text-text-secondary mt-2",
|
|
188
|
+
children: ["Scheduled: ", I(J.scheduledPickup, "full")]
|
|
189
|
+
}),
|
|
190
|
+
J.actualPickup && /* @__PURE__ */ V("p", {
|
|
191
|
+
className: "text-sm text-green-600 mt-1",
|
|
192
|
+
children: [
|
|
193
|
+
/* @__PURE__ */ B(v, {
|
|
194
|
+
size: 14,
|
|
195
|
+
className: "inline mr-1"
|
|
196
|
+
}),
|
|
197
|
+
"Picked up: ",
|
|
198
|
+
I(J.actualPickup, "full")
|
|
199
|
+
]
|
|
200
|
+
})
|
|
201
|
+
] }), /* @__PURE__ */ V("div", { children: [
|
|
202
|
+
/* @__PURE__ */ B("h4", {
|
|
203
|
+
className: "font-medium mb-2 flex items-center gap-2",
|
|
204
|
+
children: /* @__PURE__ */ B(d, {
|
|
205
|
+
variant: "outline",
|
|
206
|
+
children: "Delivery"
|
|
207
|
+
})
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ B("p", {
|
|
210
|
+
className: "text-sm",
|
|
211
|
+
children: L(J.deliveryAddress)
|
|
212
|
+
}),
|
|
213
|
+
J.scheduledDelivery && /* @__PURE__ */ V("p", {
|
|
214
|
+
className: "text-sm text-text-secondary mt-2",
|
|
215
|
+
children: ["Scheduled: ", I(J.scheduledDelivery, "full")]
|
|
216
|
+
}),
|
|
217
|
+
J.actualDelivery && /* @__PURE__ */ V("p", {
|
|
218
|
+
className: "text-sm text-green-600 mt-1",
|
|
219
|
+
children: [
|
|
220
|
+
/* @__PURE__ */ B(v, {
|
|
221
|
+
size: 14,
|
|
222
|
+
className: "inline mr-1"
|
|
223
|
+
}),
|
|
224
|
+
"Delivered: ",
|
|
225
|
+
I(J.actualDelivery, "full")
|
|
226
|
+
]
|
|
227
|
+
})
|
|
228
|
+
] })]
|
|
229
|
+
}) })] }),
|
|
230
|
+
/* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
|
|
231
|
+
className: "flex items-center gap-2",
|
|
232
|
+
children: [
|
|
233
|
+
/* @__PURE__ */ B(T, { size: 18 }),
|
|
234
|
+
"Order Items (",
|
|
235
|
+
J.items.length,
|
|
236
|
+
")"
|
|
237
|
+
]
|
|
238
|
+
}) }), /* @__PURE__ */ B(o, {
|
|
239
|
+
className: "p-0",
|
|
240
|
+
children: /* @__PURE__ */ V(t, { children: [/* @__PURE__ */ B(n, { children: /* @__PURE__ */ V(p, { children: [
|
|
241
|
+
/* @__PURE__ */ B(e, { children: "Item" }),
|
|
242
|
+
/* @__PURE__ */ B(e, { children: "SKU" }),
|
|
243
|
+
/* @__PURE__ */ B(e, {
|
|
244
|
+
className: "text-center",
|
|
245
|
+
children: "Qty"
|
|
246
|
+
}),
|
|
247
|
+
/* @__PURE__ */ B(e, {
|
|
248
|
+
className: "text-right",
|
|
249
|
+
children: "Unit Price"
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ B(e, {
|
|
252
|
+
className: "text-right",
|
|
253
|
+
children: "Total"
|
|
254
|
+
})
|
|
255
|
+
] }) }), /* @__PURE__ */ B(r, { children: J.items.map((e) => /* @__PURE__ */ V(p, { children: [
|
|
256
|
+
/* @__PURE__ */ B(i, { children: /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
|
|
257
|
+
className: "font-medium",
|
|
258
|
+
children: e.name
|
|
259
|
+
}), e.description && /* @__PURE__ */ B("p", {
|
|
260
|
+
className: "text-sm text-text-secondary",
|
|
261
|
+
children: e.description
|
|
262
|
+
})] }) }),
|
|
263
|
+
/* @__PURE__ */ B(i, {
|
|
264
|
+
className: "font-mono text-sm",
|
|
265
|
+
children: e.sku
|
|
266
|
+
}),
|
|
267
|
+
/* @__PURE__ */ B(i, {
|
|
268
|
+
className: "text-center",
|
|
269
|
+
children: e.quantity
|
|
270
|
+
}),
|
|
271
|
+
/* @__PURE__ */ B(i, {
|
|
272
|
+
className: "text-right",
|
|
273
|
+
children: F(e.value)
|
|
274
|
+
}),
|
|
275
|
+
/* @__PURE__ */ B(i, {
|
|
276
|
+
className: "text-right font-medium",
|
|
277
|
+
children: F(e.value * e.quantity)
|
|
278
|
+
})
|
|
279
|
+
] }, e.id)) })] })
|
|
280
|
+
})] }),
|
|
281
|
+
/* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
|
|
282
|
+
className: "flex items-center gap-2",
|
|
283
|
+
children: [/* @__PURE__ */ B(y, { size: 18 }), "Order Timeline"]
|
|
284
|
+
}) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ B("div", {
|
|
285
|
+
className: "relative",
|
|
286
|
+
children: J.timeline.map((e, t) => /* @__PURE__ */ V("div", {
|
|
287
|
+
className: "flex gap-4 pb-6 last:pb-0",
|
|
288
|
+
children: [/* @__PURE__ */ V("div", {
|
|
289
|
+
className: "relative",
|
|
290
|
+
children: [/* @__PURE__ */ B("div", { className: "w-3 h-3 rounded-full bg-action-primary-bg mt-1.5" }), t < J.timeline.length - 1 && /* @__PURE__ */ B("div", { className: "absolute top-4 left-1.5 w-px h-full -ml-px bg-border" })]
|
|
291
|
+
}), /* @__PURE__ */ V("div", {
|
|
292
|
+
className: "flex-1",
|
|
293
|
+
children: [
|
|
294
|
+
/* @__PURE__ */ V("div", {
|
|
295
|
+
className: "flex items-center gap-2 mb-1",
|
|
296
|
+
children: [/* @__PURE__ */ B(N, {
|
|
297
|
+
status: e.status,
|
|
298
|
+
type: "order",
|
|
299
|
+
size: "sm"
|
|
300
|
+
}), /* @__PURE__ */ B("span", {
|
|
301
|
+
className: "text-sm text-text-secondary",
|
|
302
|
+
children: I(e.timestamp, "full")
|
|
303
|
+
})]
|
|
304
|
+
}),
|
|
305
|
+
e.notes && /* @__PURE__ */ B("p", {
|
|
306
|
+
className: "text-sm",
|
|
307
|
+
children: e.notes
|
|
308
|
+
}),
|
|
309
|
+
/* @__PURE__ */ V("p", {
|
|
310
|
+
className: "text-xs text-text-secondary",
|
|
311
|
+
children: ["by ", e.performedBy]
|
|
312
|
+
})
|
|
313
|
+
]
|
|
314
|
+
})]
|
|
315
|
+
}, t))
|
|
316
|
+
}) })] })
|
|
317
|
+
]
|
|
318
|
+
}), /* @__PURE__ */ V("div", {
|
|
319
|
+
className: "space-y-6",
|
|
320
|
+
children: [
|
|
321
|
+
/* @__PURE__ */ V(H, { children: [/* @__PURE__ */ V("h2", {
|
|
322
|
+
className: "flex items-center gap-2 text-base font-semibold text-text-primary mb-4",
|
|
323
|
+
children: [/* @__PURE__ */ B(b, { size: 18 }), "Order Summary"]
|
|
324
|
+
}), /* @__PURE__ */ V("div", {
|
|
325
|
+
className: "space-y-3",
|
|
326
|
+
children: [
|
|
327
|
+
/* @__PURE__ */ V("div", {
|
|
328
|
+
className: "flex justify-between text-sm",
|
|
329
|
+
children: [/* @__PURE__ */ B("span", {
|
|
330
|
+
className: "text-text-secondary",
|
|
331
|
+
children: "Subtotal"
|
|
332
|
+
}), /* @__PURE__ */ B("span", { children: F(J.pricing.subtotal) })]
|
|
333
|
+
}),
|
|
334
|
+
/* @__PURE__ */ V("div", {
|
|
335
|
+
className: "flex justify-between text-sm",
|
|
336
|
+
children: [/* @__PURE__ */ B("span", {
|
|
337
|
+
className: "text-text-secondary",
|
|
338
|
+
children: "Delivery"
|
|
339
|
+
}), /* @__PURE__ */ B("span", { children: F(J.pricing.fees.delivery) })]
|
|
340
|
+
}),
|
|
341
|
+
/* @__PURE__ */ V("div", {
|
|
342
|
+
className: "flex justify-between text-sm",
|
|
343
|
+
children: [/* @__PURE__ */ B("span", {
|
|
344
|
+
className: "text-text-secondary",
|
|
345
|
+
children: "Handling"
|
|
346
|
+
}), /* @__PURE__ */ B("span", { children: F(J.pricing.fees.handling) })]
|
|
347
|
+
}),
|
|
348
|
+
J.pricing.fees.insurance && /* @__PURE__ */ V("div", {
|
|
349
|
+
className: "flex justify-between text-sm",
|
|
350
|
+
children: [/* @__PURE__ */ B("span", {
|
|
351
|
+
className: "text-text-secondary",
|
|
352
|
+
children: "Insurance"
|
|
353
|
+
}), /* @__PURE__ */ B("span", { children: F(J.pricing.fees.insurance) })]
|
|
354
|
+
}),
|
|
355
|
+
/* @__PURE__ */ V("div", {
|
|
356
|
+
className: "flex justify-between text-sm",
|
|
357
|
+
children: [/* @__PURE__ */ B("span", {
|
|
358
|
+
className: "text-text-secondary",
|
|
359
|
+
children: "Taxes"
|
|
360
|
+
}), /* @__PURE__ */ B("span", { children: F(J.pricing.taxes) })]
|
|
361
|
+
}),
|
|
362
|
+
/* @__PURE__ */ B(g, {}),
|
|
363
|
+
/* @__PURE__ */ V("div", {
|
|
364
|
+
className: "flex justify-between font-medium",
|
|
365
|
+
children: [/* @__PURE__ */ B("span", { children: "Total" }), /* @__PURE__ */ B("span", {
|
|
366
|
+
className: "text-lg",
|
|
367
|
+
children: F(J.pricing.total)
|
|
368
|
+
})]
|
|
369
|
+
}),
|
|
370
|
+
/* @__PURE__ */ V("div", {
|
|
371
|
+
className: "pt-2",
|
|
372
|
+
children: [/* @__PURE__ */ B("p", {
|
|
373
|
+
className: "text-sm text-text-secondary",
|
|
374
|
+
children: "Payment Method"
|
|
375
|
+
}), /* @__PURE__ */ B("p", {
|
|
376
|
+
className: "text-sm capitalize",
|
|
377
|
+
children: J.pricing.paymentMethod.replace("_", " ")
|
|
378
|
+
})]
|
|
379
|
+
})
|
|
380
|
+
]
|
|
381
|
+
})] }),
|
|
382
|
+
/* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
|
|
383
|
+
className: "flex items-center gap-2",
|
|
384
|
+
children: [/* @__PURE__ */ B(D, { size: 18 }), "Assignment"]
|
|
385
|
+
}) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ V("div", {
|
|
386
|
+
className: "space-y-4",
|
|
387
|
+
children: [
|
|
388
|
+
/* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
|
|
389
|
+
className: "text-sm text-text-secondary",
|
|
390
|
+
children: "Driver"
|
|
391
|
+
}), /* @__PURE__ */ B("p", {
|
|
392
|
+
className: "text-sm",
|
|
393
|
+
children: J.driverId || "Not assigned"
|
|
394
|
+
})] }),
|
|
395
|
+
/* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
|
|
396
|
+
className: "text-sm text-text-secondary",
|
|
397
|
+
children: "Vehicle"
|
|
398
|
+
}), /* @__PURE__ */ B("p", {
|
|
399
|
+
className: "text-sm",
|
|
400
|
+
children: J.vehicleId || "Not assigned"
|
|
401
|
+
})] }),
|
|
402
|
+
/* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
|
|
403
|
+
className: "text-sm text-text-secondary",
|
|
404
|
+
children: "Tracking Number"
|
|
405
|
+
}), /* @__PURE__ */ B("p", {
|
|
406
|
+
className: "text-sm font-mono",
|
|
407
|
+
children: J.trackingNumber
|
|
408
|
+
})] }),
|
|
409
|
+
/* @__PURE__ */ V(h, {
|
|
410
|
+
variant: "outline",
|
|
411
|
+
className: "w-full",
|
|
412
|
+
onClick: () => Q(`tracking?order=${J.id}`),
|
|
413
|
+
children: [/* @__PURE__ */ B(w, { size: 16 }), "Track Order"]
|
|
414
|
+
})
|
|
415
|
+
]
|
|
416
|
+
}) })] }),
|
|
417
|
+
J.specialInstructions && /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
|
|
418
|
+
className: "flex items-center gap-2",
|
|
419
|
+
children: [/* @__PURE__ */ B(x, { size: 18 }), "Special Instructions"]
|
|
420
|
+
}) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ B("p", {
|
|
421
|
+
className: "text-sm",
|
|
422
|
+
children: J.specialInstructions
|
|
423
|
+
}) })] })
|
|
424
|
+
]
|
|
425
|
+
})]
|
|
426
|
+
})
|
|
427
|
+
]
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
//#endregion
|
|
431
|
+
export { K as default };
|