@burdenoff/microfe-movethewheels 2026.703.8 → 2026.704.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/{CreateOrderPage-V8aXfcpN.js → CreateOrderPage-CXbhJLLz.js} +163 -138
- package/dist/{DashboardPage-DiD-cWwD.js → DashboardPage-BoswH3ec.js} +2 -2
- package/dist/DriverDetailsPage-CPO0G8Ki.js +518 -0
- package/dist/{DriversPage-DW-FGPFW.js → DriversPage-6Z61dpDI.js} +1 -1
- package/dist/{FleetPage-P9k4zZqP.js → FleetPage-qWRj7WFO.js} +1 -1
- package/dist/{InventoryPage-BWikjZMW.js → InventoryPage-DbR4Z--d.js} +1 -1
- package/dist/{LiveTrackingPage-UQBWlthJ.js → LiveTrackingPage-5U68u3oA.js} +1 -1
- package/dist/{OrderDetailsPage-2J4ua0wd.js → OrderDetailsPage-DRYifXm9.js} +1 -1
- package/dist/ProductDetailsPage-CWgcRqGR.js +375 -0
- package/dist/{ProductsPage-Bn1U2jTj.js → ProductsPage-CokwDOR2.js} +1 -1
- package/dist/{RouteDetailsPage-CgSY1CTd.js → RouteDetailsPage-sRRVY5UM.js} +243 -211
- package/dist/{RoutesPage-Dqd5Don6.js → RoutesPage-hec06HnD.js} +1 -1
- package/dist/{SettingsPage-2a05Sq2k.js → SettingsPage-_6SIlcBX.js} +1 -1
- package/dist/{TrackingPage-SnjW6qeD.js → TrackingPage-Cg0tYGJe.js} +1 -1
- package/dist/{VehicleDetailsPage-CvRMJ2zC.js → VehicleDetailsPage-BbZlCFPo.js} +159 -135
- package/dist/{VehiclesPage-qxf-1C1B.js → VehiclesPage-BfBEyXGs.js} +1 -1
- package/dist/WarehouseDetailsPage-DxNhiaoI.js +515 -0
- package/dist/{WarehousesPage-44Wj7AGT.js → WarehousesPage-M3NaBT0z.js} +1 -1
- package/dist/index.js +26 -6
- package/dist/{useFleet-BXSocBD_.js → useFleet-BfA_-VUW.js} +100 -71
- package/dist/{useInventory-DmZficcp.js → useInventory-BO7TSgq_.js} +98 -72
- package/dist/{useRoutes-C_ZCYJ_h.js → useRoutes-DAdy2BGv.js} +8 -8
- package/dist/{useSettings-CteNasBE.js → useSettings-BNNzQs_B.js} +1 -1
- package/dist/{useTracking-B7ttexRe.js → useTracking-7nd_XOSL.js} +1 -1
- package/package.json +1 -1
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +5 -0
- package/src/movethewheels/hooks/useFleet.ts +113 -0
- package/src/movethewheels/hooks/useInventory.ts +86 -0
- package/src/movethewheels/hooks/useRoutes.ts +17 -7
- package/src/movethewheels/hooks/useSettings.ts +8 -1
- package/src/movethewheels/pages/CreateOrderPage.tsx +48 -6
- package/src/movethewheels/pages/DriverDetailsPage.tsx +56 -18
- package/src/movethewheels/pages/ProductDetailsPage.tsx +51 -15
- package/src/movethewheels/pages/RouteDetailsPage.tsx +51 -7
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +51 -15
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +46 -10
- package/src/movethewheels/types/index.ts +3 -0
- package/dist/DriverDetailsPage-DjaXaATQ.js +0 -490
- package/dist/ProductDetailsPage-BSjWLrty.js +0 -350
- package/dist/WarehouseDetailsPage-D0Wyyj1Y.js +0 -493
|
@@ -1,42 +1,66 @@
|
|
|
1
|
-
import { A as e, F as t, I as n, L as r, P as i, Q as
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { r as
|
|
10
|
-
import { r as
|
|
1
|
+
import { A as e, F as t, I as n, L as r, P as i, Q as ee, R as a, d as o, f as s, g as c, h as l, i as u, j as d, lt as f, st as p, t as m, u as h, z as te } from "./PageLayout-j9Zw3wBN.js";
|
|
2
|
+
import { t as g } from "./arrow-left-1dVWv2dg.js";
|
|
3
|
+
import { t as _ } from "./map-pin-BISLzLwb.js";
|
|
4
|
+
import { t as v } from "./package-UyaWiALC.js";
|
|
5
|
+
import { t as y } from "./plus-Bk_G-lFC.js";
|
|
6
|
+
import { t as b } from "./save-CcfoIn2J.js";
|
|
7
|
+
import { t as x } from "./trash-2-CC4KugEJ.js";
|
|
8
|
+
import { t as S } from "./users-BKmsb79k.js";
|
|
9
|
+
import { r as C, t as w } from "./useOrders-B5FV0kcz.js";
|
|
10
|
+
import { r as T } from "./useCustomers-BQ4AIEAT.js";
|
|
11
11
|
import { t as E } from "./FormError-D4T5FWZA.js";
|
|
12
|
-
import {
|
|
13
|
-
import { useParams as
|
|
14
|
-
import { jsx as
|
|
15
|
-
import { EmphasisPanel as
|
|
12
|
+
import { useEffect as D, useState as O } from "react";
|
|
13
|
+
import { useParams as k } from "react-router-dom";
|
|
14
|
+
import { jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
15
|
+
import { EmphasisPanel as ne, NextSteps as re, PagePurpose as M } from "@burdenoff/fe-libs/ui";
|
|
16
16
|
//#region src/movethewheels/pages/CreateOrderPage.tsx
|
|
17
|
-
function
|
|
18
|
-
let { orderId:
|
|
19
|
-
customerId:
|
|
20
|
-
orderType:
|
|
21
|
-
priority:
|
|
17
|
+
function N() {
|
|
18
|
+
let { orderId: N } = k(), { basePath: P, navigate: F } = p(), { order: I } = w(N), { createOrder: L, updateOrder: R } = C(), { customers: z } = T({ limit: 100 }), B = !!N && !!I, [V, H] = O({
|
|
19
|
+
customerId: I?.customerId || "",
|
|
20
|
+
orderType: I?.orderType || "b2c",
|
|
21
|
+
priority: I?.priority || "normal",
|
|
22
22
|
pickupAddress: {
|
|
23
|
-
street:
|
|
24
|
-
city:
|
|
25
|
-
state:
|
|
26
|
-
postalCode:
|
|
27
|
-
country:
|
|
23
|
+
street: I?.pickupAddress.street || "",
|
|
24
|
+
city: I?.pickupAddress.city || "",
|
|
25
|
+
state: I?.pickupAddress.state || "",
|
|
26
|
+
postalCode: I?.pickupAddress.postalCode || "",
|
|
27
|
+
country: I?.pickupAddress.country || "USA"
|
|
28
28
|
},
|
|
29
29
|
deliveryAddress: {
|
|
30
|
-
street:
|
|
31
|
-
city:
|
|
32
|
-
state:
|
|
33
|
-
postalCode:
|
|
34
|
-
country:
|
|
30
|
+
street: I?.deliveryAddress.street || "",
|
|
31
|
+
city: I?.deliveryAddress.city || "",
|
|
32
|
+
state: I?.deliveryAddress.state || "",
|
|
33
|
+
postalCode: I?.deliveryAddress.postalCode || "",
|
|
34
|
+
country: I?.deliveryAddress.country || "USA"
|
|
35
35
|
},
|
|
36
|
-
items:
|
|
37
|
-
specialInstructions:
|
|
38
|
-
}), [U, W] =
|
|
39
|
-
|
|
36
|
+
items: I?.items || [],
|
|
37
|
+
specialInstructions: I?.specialInstructions || ""
|
|
38
|
+
}), [U, W] = O(!1), [G, K] = O(null);
|
|
39
|
+
D(() => {
|
|
40
|
+
I && H({
|
|
41
|
+
customerId: I.customerId || "",
|
|
42
|
+
orderType: I.orderType || "b2c",
|
|
43
|
+
priority: I.priority || "normal",
|
|
44
|
+
pickupAddress: {
|
|
45
|
+
street: I.pickupAddress.street || "",
|
|
46
|
+
city: I.pickupAddress.city || "",
|
|
47
|
+
state: I.pickupAddress.state || "",
|
|
48
|
+
postalCode: I.pickupAddress.postalCode || "",
|
|
49
|
+
country: I.pickupAddress.country || "USA"
|
|
50
|
+
},
|
|
51
|
+
deliveryAddress: {
|
|
52
|
+
street: I.deliveryAddress.street || "",
|
|
53
|
+
city: I.deliveryAddress.city || "",
|
|
54
|
+
state: I.deliveryAddress.state || "",
|
|
55
|
+
postalCode: I.deliveryAddress.postalCode || "",
|
|
56
|
+
country: I.deliveryAddress.country || "USA"
|
|
57
|
+
},
|
|
58
|
+
items: I.items || [],
|
|
59
|
+
specialInstructions: I.specialInstructions || ""
|
|
60
|
+
});
|
|
61
|
+
}, [I]);
|
|
62
|
+
let q = () => {
|
|
63
|
+
F && F(f(P, "orders"));
|
|
40
64
|
}, J = () => {
|
|
41
65
|
let e = z.find((e) => e.id === V.customerId);
|
|
42
66
|
return !V.customerId || !e ? "Select a customer for this order." : V.pickupAddress.street.trim() ? V.deliveryAddress.street.trim() ? V.items.length === 0 ? "Add at least one item to the order." : null : "Enter a delivery street address." : "Enter a pickup street address.";
|
|
@@ -54,7 +78,7 @@ function P() {
|
|
|
54
78
|
}
|
|
55
79
|
W(!0);
|
|
56
80
|
try {
|
|
57
|
-
|
|
81
|
+
let e = {
|
|
58
82
|
customerId: V.customerId,
|
|
59
83
|
customerInfo: {
|
|
60
84
|
name: n.name,
|
|
@@ -68,9 +92,10 @@ function P() {
|
|
|
68
92
|
deliveryAddress: V.deliveryAddress,
|
|
69
93
|
items: V.items,
|
|
70
94
|
specialInstructions: V.specialInstructions
|
|
71
|
-
}
|
|
95
|
+
};
|
|
96
|
+
B && N ? (await R(N, e), F && F(f(P, `orders/${N}`))) : (await L(e), q());
|
|
72
97
|
} catch (e) {
|
|
73
|
-
K(e instanceof Error ? e.message : "Could not create the order. Please try again.");
|
|
98
|
+
K(e instanceof Error ? e.message : B ? "Could not update the order. Please try again." : "Could not create the order. Please try again.");
|
|
74
99
|
} finally {
|
|
75
100
|
W(!1);
|
|
76
101
|
}
|
|
@@ -106,7 +131,7 @@ function P() {
|
|
|
106
131
|
sku: ""
|
|
107
132
|
}]
|
|
108
133
|
}));
|
|
109
|
-
},
|
|
134
|
+
}, ie = (e) => {
|
|
110
135
|
H((t) => ({
|
|
111
136
|
...t,
|
|
112
137
|
items: t.items.filter((t, n) => n !== e)
|
|
@@ -120,35 +145,35 @@ function P() {
|
|
|
120
145
|
} : r)
|
|
121
146
|
}));
|
|
122
147
|
};
|
|
123
|
-
return /* @__PURE__ */
|
|
148
|
+
return /* @__PURE__ */ j(u, {
|
|
124
149
|
title: B ? "Edit Order" : "Create Order",
|
|
125
|
-
subtitle: B ? `Editing ${
|
|
126
|
-
icon: /* @__PURE__ */
|
|
127
|
-
headerActions: /* @__PURE__ */
|
|
150
|
+
subtitle: B ? `Editing ${I?.orderNumber}` : "Create a new delivery order",
|
|
151
|
+
icon: /* @__PURE__ */ A(v, { size: 24 }),
|
|
152
|
+
headerActions: /* @__PURE__ */ j("div", {
|
|
128
153
|
className: "flex gap-2",
|
|
129
|
-
children: [/* @__PURE__ */
|
|
154
|
+
children: [/* @__PURE__ */ j(h, {
|
|
130
155
|
variant: "outline",
|
|
131
156
|
onClick: q,
|
|
132
|
-
children: [/* @__PURE__ */
|
|
133
|
-
}), /* @__PURE__ */
|
|
157
|
+
children: [/* @__PURE__ */ A(g, { size: 16 }), "Cancel"]
|
|
158
|
+
}), /* @__PURE__ */ j(h, {
|
|
134
159
|
onClick: Y,
|
|
135
160
|
disabled: U,
|
|
136
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ A(b, { size: 16 }), U ? "Saving..." : B ? "Save Changes" : "Create Order"]
|
|
137
162
|
})]
|
|
138
163
|
}),
|
|
139
164
|
children: [
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
icon: /* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ A(M, {
|
|
166
|
+
icon: /* @__PURE__ */ A(v, { size: 18 }),
|
|
142
167
|
children: B ? "Update this delivery before it goes out — change the customer, addresses, items or handling notes, then save." : "Book a new delivery in a few steps: choose who it’s for, set pickup and drop-off addresses, list what’s being shipped, and add any handling notes. Once created it joins the orders pipeline ready to assign and track."
|
|
143
168
|
}),
|
|
144
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ A(re, {
|
|
145
170
|
storageKey: "movethewheels-create-order",
|
|
146
171
|
steps: [
|
|
147
172
|
{
|
|
148
173
|
id: "customer",
|
|
149
174
|
label: "Pick the customer first",
|
|
150
175
|
description: "Their saved contact details auto-fill the order.",
|
|
151
|
-
icon: /* @__PURE__ */
|
|
176
|
+
icon: /* @__PURE__ */ A(S, { size: 16 }),
|
|
152
177
|
done: !!V.customerId,
|
|
153
178
|
onClick: () => document.getElementById("customer")?.focus()
|
|
154
179
|
},
|
|
@@ -156,7 +181,7 @@ function P() {
|
|
|
156
181
|
id: "addresses",
|
|
157
182
|
label: "Set pickup & delivery addresses",
|
|
158
183
|
description: "Where the shipment is collected and dropped off.",
|
|
159
|
-
icon: /* @__PURE__ */
|
|
184
|
+
icon: /* @__PURE__ */ A(_, { size: 16 }),
|
|
160
185
|
done: !!V.pickupAddress.street && !!V.deliveryAddress.street,
|
|
161
186
|
onClick: () => document.getElementById("pickupStreet")?.focus()
|
|
162
187
|
},
|
|
@@ -164,37 +189,37 @@ function P() {
|
|
|
164
189
|
id: "items",
|
|
165
190
|
label: "Add the items to ship",
|
|
166
191
|
description: "List each product with its quantity and value.",
|
|
167
|
-
icon: /* @__PURE__ */
|
|
192
|
+
icon: /* @__PURE__ */ A(v, { size: 16 }),
|
|
168
193
|
done: V.items.length > 0,
|
|
169
194
|
onClick: Q
|
|
170
195
|
}
|
|
171
196
|
]
|
|
172
197
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ j("form", {
|
|
174
199
|
onSubmit: Y,
|
|
175
200
|
className: "space-y-6",
|
|
176
201
|
children: [
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ A(E, { message: G }),
|
|
203
|
+
/* @__PURE__ */ j(ne, { children: [/* @__PURE__ */ A("h2", {
|
|
179
204
|
className: "text-base font-semibold text-text-primary mb-4",
|
|
180
205
|
children: "Order Details"
|
|
181
|
-
}), /* @__PURE__ */
|
|
206
|
+
}), /* @__PURE__ */ A("div", {
|
|
182
207
|
className: "space-y-4",
|
|
183
|
-
children: /* @__PURE__ */
|
|
208
|
+
children: /* @__PURE__ */ j("div", {
|
|
184
209
|
className: "grid grid-cols-1 md:grid-cols-3 gap-4",
|
|
185
210
|
children: [
|
|
186
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ j("div", {
|
|
187
212
|
className: "space-y-2",
|
|
188
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ A(d, {
|
|
189
214
|
htmlFor: "customer",
|
|
190
215
|
children: "Customer"
|
|
191
|
-
}), /* @__PURE__ */
|
|
216
|
+
}), /* @__PURE__ */ j(i, {
|
|
192
217
|
value: V.customerId,
|
|
193
218
|
onValueChange: (e) => X("customerId", e),
|
|
194
|
-
children: [/* @__PURE__ */
|
|
219
|
+
children: [/* @__PURE__ */ A(r, {
|
|
195
220
|
id: "customer",
|
|
196
|
-
children: /* @__PURE__ */
|
|
197
|
-
}), /* @__PURE__ */
|
|
221
|
+
children: /* @__PURE__ */ A(a, { placeholder: "Select customer" })
|
|
222
|
+
}), /* @__PURE__ */ A(t, { children: z.map((e) => /* @__PURE__ */ j(n, {
|
|
198
223
|
value: e.id,
|
|
199
224
|
children: [
|
|
200
225
|
e.name,
|
|
@@ -205,51 +230,51 @@ function P() {
|
|
|
205
230
|
}, e.id)) })]
|
|
206
231
|
})]
|
|
207
232
|
}),
|
|
208
|
-
/* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ j("div", {
|
|
209
234
|
className: "space-y-2",
|
|
210
|
-
children: [/* @__PURE__ */
|
|
235
|
+
children: [/* @__PURE__ */ A(d, {
|
|
211
236
|
htmlFor: "orderType",
|
|
212
237
|
children: "Order Type"
|
|
213
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ j(i, {
|
|
214
239
|
value: V.orderType,
|
|
215
240
|
onValueChange: (e) => X("orderType", e),
|
|
216
|
-
children: [/* @__PURE__ */
|
|
241
|
+
children: [/* @__PURE__ */ A(r, {
|
|
217
242
|
id: "orderType",
|
|
218
|
-
children: /* @__PURE__ */
|
|
219
|
-
}), /* @__PURE__ */
|
|
243
|
+
children: /* @__PURE__ */ A(a, {})
|
|
244
|
+
}), /* @__PURE__ */ j(t, { children: [/* @__PURE__ */ A(n, {
|
|
220
245
|
value: "b2c",
|
|
221
246
|
children: "B2C (Individual)"
|
|
222
|
-
}), /* @__PURE__ */
|
|
247
|
+
}), /* @__PURE__ */ A(n, {
|
|
223
248
|
value: "b2b",
|
|
224
249
|
children: "B2B (Business)"
|
|
225
250
|
})] })]
|
|
226
251
|
})]
|
|
227
252
|
}),
|
|
228
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ j("div", {
|
|
229
254
|
className: "space-y-2",
|
|
230
|
-
children: [/* @__PURE__ */
|
|
255
|
+
children: [/* @__PURE__ */ A(d, {
|
|
231
256
|
htmlFor: "priority",
|
|
232
257
|
children: "Priority"
|
|
233
|
-
}), /* @__PURE__ */
|
|
258
|
+
}), /* @__PURE__ */ j(i, {
|
|
234
259
|
value: V.priority,
|
|
235
260
|
onValueChange: (e) => X("priority", e),
|
|
236
|
-
children: [/* @__PURE__ */
|
|
261
|
+
children: [/* @__PURE__ */ A(r, {
|
|
237
262
|
id: "priority",
|
|
238
|
-
children: /* @__PURE__ */
|
|
239
|
-
}), /* @__PURE__ */
|
|
240
|
-
/* @__PURE__ */
|
|
263
|
+
children: /* @__PURE__ */ A(a, {})
|
|
264
|
+
}), /* @__PURE__ */ j(t, { children: [
|
|
265
|
+
/* @__PURE__ */ A(n, {
|
|
241
266
|
value: "low",
|
|
242
267
|
children: "Low"
|
|
243
268
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ A(n, {
|
|
245
270
|
value: "normal",
|
|
246
271
|
children: "Normal"
|
|
247
272
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ A(n, {
|
|
249
274
|
value: "high",
|
|
250
275
|
children: "High"
|
|
251
276
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ A(n, {
|
|
253
278
|
value: "urgent",
|
|
254
279
|
children: "Urgent"
|
|
255
280
|
})
|
|
@@ -259,42 +284,42 @@ function P() {
|
|
|
259
284
|
]
|
|
260
285
|
})
|
|
261
286
|
})] }),
|
|
262
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ j("div", {
|
|
263
288
|
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
264
|
-
children: [/* @__PURE__ */
|
|
289
|
+
children: [/* @__PURE__ */ j(o, { children: [/* @__PURE__ */ A(l, { children: /* @__PURE__ */ A(c, { children: "Pickup Address" }) }), /* @__PURE__ */ j(s, {
|
|
265
290
|
className: "space-y-4",
|
|
266
291
|
children: [
|
|
267
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ j("div", {
|
|
268
293
|
className: "space-y-2",
|
|
269
|
-
children: [/* @__PURE__ */
|
|
294
|
+
children: [/* @__PURE__ */ A(d, {
|
|
270
295
|
htmlFor: "pickupStreet",
|
|
271
296
|
children: "Street Address"
|
|
272
|
-
}), /* @__PURE__ */
|
|
297
|
+
}), /* @__PURE__ */ A(e, {
|
|
273
298
|
id: "pickupStreet",
|
|
274
299
|
value: V.pickupAddress.street,
|
|
275
300
|
onChange: (e) => Z("pickupAddress", "street", e.target.value),
|
|
276
301
|
placeholder: "123 Main St"
|
|
277
302
|
})]
|
|
278
303
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ j("div", {
|
|
280
305
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
281
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ j("div", {
|
|
282
307
|
className: "space-y-2",
|
|
283
|
-
children: [/* @__PURE__ */
|
|
308
|
+
children: [/* @__PURE__ */ A(d, {
|
|
284
309
|
htmlFor: "pickupCity",
|
|
285
310
|
children: "City"
|
|
286
|
-
}), /* @__PURE__ */
|
|
311
|
+
}), /* @__PURE__ */ A(e, {
|
|
287
312
|
id: "pickupCity",
|
|
288
313
|
value: V.pickupAddress.city,
|
|
289
314
|
onChange: (e) => Z("pickupAddress", "city", e.target.value),
|
|
290
315
|
placeholder: "San Francisco"
|
|
291
316
|
})]
|
|
292
|
-
}), /* @__PURE__ */
|
|
317
|
+
}), /* @__PURE__ */ j("div", {
|
|
293
318
|
className: "space-y-2",
|
|
294
|
-
children: [/* @__PURE__ */
|
|
319
|
+
children: [/* @__PURE__ */ A(d, {
|
|
295
320
|
htmlFor: "pickupState",
|
|
296
321
|
children: "State"
|
|
297
|
-
}), /* @__PURE__ */
|
|
322
|
+
}), /* @__PURE__ */ A(e, {
|
|
298
323
|
id: "pickupState",
|
|
299
324
|
value: V.pickupAddress.state,
|
|
300
325
|
onChange: (e) => Z("pickupAddress", "state", e.target.value),
|
|
@@ -302,25 +327,25 @@ function P() {
|
|
|
302
327
|
})]
|
|
303
328
|
})]
|
|
304
329
|
}),
|
|
305
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ j("div", {
|
|
306
331
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
332
|
+
children: [/* @__PURE__ */ j("div", {
|
|
308
333
|
className: "space-y-2",
|
|
309
|
-
children: [/* @__PURE__ */
|
|
334
|
+
children: [/* @__PURE__ */ A(d, {
|
|
310
335
|
htmlFor: "pickupPostal",
|
|
311
336
|
children: "Postal Code"
|
|
312
|
-
}), /* @__PURE__ */
|
|
337
|
+
}), /* @__PURE__ */ A(e, {
|
|
313
338
|
id: "pickupPostal",
|
|
314
339
|
value: V.pickupAddress.postalCode,
|
|
315
340
|
onChange: (e) => Z("pickupAddress", "postalCode", e.target.value),
|
|
316
341
|
placeholder: "94103"
|
|
317
342
|
})]
|
|
318
|
-
}), /* @__PURE__ */
|
|
343
|
+
}), /* @__PURE__ */ j("div", {
|
|
319
344
|
className: "space-y-2",
|
|
320
|
-
children: [/* @__PURE__ */
|
|
345
|
+
children: [/* @__PURE__ */ A(d, {
|
|
321
346
|
htmlFor: "pickupCountry",
|
|
322
347
|
children: "Country"
|
|
323
|
-
}), /* @__PURE__ */
|
|
348
|
+
}), /* @__PURE__ */ A(e, {
|
|
324
349
|
id: "pickupCountry",
|
|
325
350
|
value: V.pickupAddress.country,
|
|
326
351
|
onChange: (e) => Z("pickupAddress", "country", e.target.value),
|
|
@@ -329,40 +354,40 @@ function P() {
|
|
|
329
354
|
})]
|
|
330
355
|
})
|
|
331
356
|
]
|
|
332
|
-
})] }), /* @__PURE__ */
|
|
357
|
+
})] }), /* @__PURE__ */ j(o, { children: [/* @__PURE__ */ A(l, { children: /* @__PURE__ */ A(c, { children: "Delivery Address" }) }), /* @__PURE__ */ j(s, {
|
|
333
358
|
className: "space-y-4",
|
|
334
359
|
children: [
|
|
335
|
-
/* @__PURE__ */
|
|
360
|
+
/* @__PURE__ */ j("div", {
|
|
336
361
|
className: "space-y-2",
|
|
337
|
-
children: [/* @__PURE__ */
|
|
362
|
+
children: [/* @__PURE__ */ A(d, {
|
|
338
363
|
htmlFor: "deliveryStreet",
|
|
339
364
|
children: "Street Address"
|
|
340
|
-
}), /* @__PURE__ */
|
|
365
|
+
}), /* @__PURE__ */ A(e, {
|
|
341
366
|
id: "deliveryStreet",
|
|
342
367
|
value: V.deliveryAddress.street,
|
|
343
368
|
onChange: (e) => Z("deliveryAddress", "street", e.target.value),
|
|
344
369
|
placeholder: "456 Oak Ave"
|
|
345
370
|
})]
|
|
346
371
|
}),
|
|
347
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ j("div", {
|
|
348
373
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
349
|
-
children: [/* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ j("div", {
|
|
350
375
|
className: "space-y-2",
|
|
351
|
-
children: [/* @__PURE__ */
|
|
376
|
+
children: [/* @__PURE__ */ A(d, {
|
|
352
377
|
htmlFor: "deliveryCity",
|
|
353
378
|
children: "City"
|
|
354
|
-
}), /* @__PURE__ */
|
|
379
|
+
}), /* @__PURE__ */ A(e, {
|
|
355
380
|
id: "deliveryCity",
|
|
356
381
|
value: V.deliveryAddress.city,
|
|
357
382
|
onChange: (e) => Z("deliveryAddress", "city", e.target.value),
|
|
358
383
|
placeholder: "Los Angeles"
|
|
359
384
|
})]
|
|
360
|
-
}), /* @__PURE__ */
|
|
385
|
+
}), /* @__PURE__ */ j("div", {
|
|
361
386
|
className: "space-y-2",
|
|
362
|
-
children: [/* @__PURE__ */
|
|
387
|
+
children: [/* @__PURE__ */ A(d, {
|
|
363
388
|
htmlFor: "deliveryState",
|
|
364
389
|
children: "State"
|
|
365
|
-
}), /* @__PURE__ */
|
|
390
|
+
}), /* @__PURE__ */ A(e, {
|
|
366
391
|
id: "deliveryState",
|
|
367
392
|
value: V.deliveryAddress.state,
|
|
368
393
|
onChange: (e) => Z("deliveryAddress", "state", e.target.value),
|
|
@@ -370,25 +395,25 @@ function P() {
|
|
|
370
395
|
})]
|
|
371
396
|
})]
|
|
372
397
|
}),
|
|
373
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ j("div", {
|
|
374
399
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
375
|
-
children: [/* @__PURE__ */
|
|
400
|
+
children: [/* @__PURE__ */ j("div", {
|
|
376
401
|
className: "space-y-2",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
402
|
+
children: [/* @__PURE__ */ A(d, {
|
|
378
403
|
htmlFor: "deliveryPostal",
|
|
379
404
|
children: "Postal Code"
|
|
380
|
-
}), /* @__PURE__ */
|
|
405
|
+
}), /* @__PURE__ */ A(e, {
|
|
381
406
|
id: "deliveryPostal",
|
|
382
407
|
value: V.deliveryAddress.postalCode,
|
|
383
408
|
onChange: (e) => Z("deliveryAddress", "postalCode", e.target.value),
|
|
384
409
|
placeholder: "90210"
|
|
385
410
|
})]
|
|
386
|
-
}), /* @__PURE__ */
|
|
411
|
+
}), /* @__PURE__ */ j("div", {
|
|
387
412
|
className: "space-y-2",
|
|
388
|
-
children: [/* @__PURE__ */
|
|
413
|
+
children: [/* @__PURE__ */ A(d, {
|
|
389
414
|
htmlFor: "deliveryCountry",
|
|
390
415
|
children: "Country"
|
|
391
|
-
}), /* @__PURE__ */
|
|
416
|
+
}), /* @__PURE__ */ A(e, {
|
|
392
417
|
id: "deliveryCountry",
|
|
393
418
|
value: V.deliveryAddress.country,
|
|
394
419
|
onChange: (e) => Z("deliveryAddress", "country", e.target.value),
|
|
@@ -399,61 +424,61 @@ function P() {
|
|
|
399
424
|
]
|
|
400
425
|
})] })]
|
|
401
426
|
}),
|
|
402
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ j(o, { children: [/* @__PURE__ */ j(l, {
|
|
403
428
|
className: "flex flex-row items-center justify-between",
|
|
404
|
-
children: [/* @__PURE__ */
|
|
429
|
+
children: [/* @__PURE__ */ A(c, { children: "Order Items" }), /* @__PURE__ */ j(h, {
|
|
405
430
|
type: "button",
|
|
406
431
|
variant: "outline",
|
|
407
432
|
size: "sm",
|
|
408
433
|
onClick: Q,
|
|
409
|
-
children: [/* @__PURE__ */
|
|
434
|
+
children: [/* @__PURE__ */ A(y, { size: 16 }), "Add Item"]
|
|
410
435
|
})]
|
|
411
|
-
}), /* @__PURE__ */
|
|
436
|
+
}), /* @__PURE__ */ A(s, { children: V.items.length === 0 ? /* @__PURE__ */ A(m, {
|
|
412
437
|
illustration: "empty-files",
|
|
413
438
|
title: "No items added yet",
|
|
414
439
|
description: "Add the products this order will ship — each with a name, SKU, quantity and value.",
|
|
415
|
-
action: /* @__PURE__ */
|
|
440
|
+
action: /* @__PURE__ */ j(h, {
|
|
416
441
|
type: "button",
|
|
417
442
|
variant: "outline",
|
|
418
443
|
onClick: Q,
|
|
419
|
-
children: [/* @__PURE__ */
|
|
444
|
+
children: [/* @__PURE__ */ A(y, {
|
|
420
445
|
size: 16,
|
|
421
446
|
className: "mr-1.5"
|
|
422
447
|
}), "Add your first item"]
|
|
423
448
|
})
|
|
424
|
-
}) : /* @__PURE__ */
|
|
449
|
+
}) : /* @__PURE__ */ A("div", {
|
|
425
450
|
className: "space-y-4",
|
|
426
|
-
children: V.items.map((t, n) => /* @__PURE__ */
|
|
451
|
+
children: V.items.map((t, n) => /* @__PURE__ */ j("div", { children: [n > 0 && /* @__PURE__ */ A(te, { className: "my-4" }), /* @__PURE__ */ j("div", {
|
|
427
452
|
className: "grid grid-cols-1 md:grid-cols-6 gap-4",
|
|
428
453
|
children: [
|
|
429
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ j("div", {
|
|
430
455
|
className: "md:col-span-2 space-y-2",
|
|
431
|
-
children: [/* @__PURE__ */
|
|
456
|
+
children: [/* @__PURE__ */ A(d, { children: "Item Name" }), /* @__PURE__ */ A(e, {
|
|
432
457
|
value: t.name,
|
|
433
458
|
onChange: (e) => $(n, "name", e.target.value),
|
|
434
459
|
placeholder: "Product name"
|
|
435
460
|
})]
|
|
436
461
|
}),
|
|
437
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ j("div", {
|
|
438
463
|
className: "space-y-2",
|
|
439
|
-
children: [/* @__PURE__ */
|
|
464
|
+
children: [/* @__PURE__ */ A(d, { children: "SKU" }), /* @__PURE__ */ A(e, {
|
|
440
465
|
value: t.sku,
|
|
441
466
|
onChange: (e) => $(n, "sku", e.target.value),
|
|
442
467
|
placeholder: "SKU-001"
|
|
443
468
|
})]
|
|
444
469
|
}),
|
|
445
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ j("div", {
|
|
446
471
|
className: "space-y-2",
|
|
447
|
-
children: [/* @__PURE__ */
|
|
472
|
+
children: [/* @__PURE__ */ A(d, { children: "Quantity" }), /* @__PURE__ */ A(e, {
|
|
448
473
|
type: "number",
|
|
449
474
|
min: "1",
|
|
450
475
|
value: t.quantity,
|
|
451
476
|
onChange: (e) => $(n, "quantity", parseInt(e.target.value) || 1)
|
|
452
477
|
})]
|
|
453
478
|
}),
|
|
454
|
-
/* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ j("div", {
|
|
455
480
|
className: "space-y-2",
|
|
456
|
-
children: [/* @__PURE__ */
|
|
481
|
+
children: [/* @__PURE__ */ A(d, { children: "Value ($)" }), /* @__PURE__ */ A(e, {
|
|
457
482
|
type: "number",
|
|
458
483
|
min: "0",
|
|
459
484
|
step: "0.01",
|
|
@@ -461,21 +486,21 @@ function P() {
|
|
|
461
486
|
onChange: (e) => $(n, "value", parseFloat(e.target.value) || 0)
|
|
462
487
|
})]
|
|
463
488
|
}),
|
|
464
|
-
/* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ A("div", {
|
|
465
490
|
className: "flex items-end",
|
|
466
|
-
children: /* @__PURE__ */
|
|
491
|
+
children: /* @__PURE__ */ A(h, {
|
|
467
492
|
type: "button",
|
|
468
493
|
variant: "ghost",
|
|
469
494
|
size: "icon",
|
|
470
495
|
className: "text-status-error-text",
|
|
471
|
-
onClick: () =>
|
|
472
|
-
children: /* @__PURE__ */
|
|
496
|
+
onClick: () => ie(n),
|
|
497
|
+
children: /* @__PURE__ */ A(x, { size: 16 })
|
|
473
498
|
})
|
|
474
499
|
})
|
|
475
500
|
]
|
|
476
501
|
})] }, t.id))
|
|
477
502
|
}) })] }),
|
|
478
|
-
/* @__PURE__ */
|
|
503
|
+
/* @__PURE__ */ j(o, { children: [/* @__PURE__ */ A(l, { children: /* @__PURE__ */ A(c, { children: "Special Instructions" }) }), /* @__PURE__ */ A(s, { children: /* @__PURE__ */ A(ee, {
|
|
479
504
|
value: V.specialInstructions,
|
|
480
505
|
onChange: (e) => X("specialInstructions", e.target.value),
|
|
481
506
|
placeholder: "Any special handling or delivery instructions...",
|
|
@@ -487,4 +512,4 @@ function P() {
|
|
|
487
512
|
});
|
|
488
513
|
}
|
|
489
514
|
//#endregion
|
|
490
|
-
export {
|
|
515
|
+
export { N as default };
|
|
@@ -9,9 +9,9 @@ import { t as _ } from "./triangle-alert-Dh56Yu3-.js";
|
|
|
9
9
|
import { t as v } from "./truck-DxhtLfkG.js";
|
|
10
10
|
import { t as y } from "./users-BKmsb79k.js";
|
|
11
11
|
import { n as b, r as te } from "./useOrders-B5FV0kcz.js";
|
|
12
|
-
import { i as ne } from "./useFleet-
|
|
12
|
+
import { i as ne } from "./useFleet-BfA_-VUW.js";
|
|
13
13
|
import { n as re, o as ie, s as ae } from "./charts-Dv_zxP7L.js";
|
|
14
|
-
import { o as oe, r as se } from "./useTracking-
|
|
14
|
+
import { o as oe, r as se } from "./useTracking-7nd_XOSL.js";
|
|
15
15
|
import { r as x, t as S } from "./MetricCard-CqU5WsyW.js";
|
|
16
16
|
import { r as C } from "./maps-CtfuCAmh.js";
|
|
17
17
|
import { r as w } from "./StatusBadge-BfiF-nNI.js";
|