@burdenoff/microfe-movethewheels 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/{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
|
@@ -1,471 +0,0 @@
|
|
|
1
|
-
import { A as e, F as t, I as n, L as r, P as i, Q as a, R as o, d as s, f as c, g as l, h as u, i as d, it as f, j as p, u as m, z as h } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
-
import { t as g } from "./arrow-left-CBpZKkpq.js";
|
|
3
|
-
import { t as _ } from "./package-BE7U0wQE.js";
|
|
4
|
-
import { t as v } from "./plus-Dl1rLeJR.js";
|
|
5
|
-
import { t as y } from "./save-XH8vydOn.js";
|
|
6
|
-
import { r as b } from "./graphqlClient-CdJyR_ed.js";
|
|
7
|
-
import { r as x, t as S } from "./useOrders-D_3_hGMp.js";
|
|
8
|
-
import { r as C } from "./useCustomers-bS3a4ytk.js";
|
|
9
|
-
import { t as w } from "./navigation-BgnOfsVd.js";
|
|
10
|
-
import { useState as T } from "react";
|
|
11
|
-
import { useParams as E } from "react-router-dom";
|
|
12
|
-
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
13
|
-
//#region node_modules/lucide-react/dist/esm/icons/trash-2.js
|
|
14
|
-
var k = f("Trash2", [
|
|
15
|
-
["path", {
|
|
16
|
-
d: "M3 6h18",
|
|
17
|
-
key: "d0wm0j"
|
|
18
|
-
}],
|
|
19
|
-
["path", {
|
|
20
|
-
d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",
|
|
21
|
-
key: "4alrt4"
|
|
22
|
-
}],
|
|
23
|
-
["path", {
|
|
24
|
-
d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",
|
|
25
|
-
key: "v07s0e"
|
|
26
|
-
}],
|
|
27
|
-
["line", {
|
|
28
|
-
x1: "10",
|
|
29
|
-
x2: "10",
|
|
30
|
-
y1: "11",
|
|
31
|
-
y2: "17",
|
|
32
|
-
key: "1uufr5"
|
|
33
|
-
}],
|
|
34
|
-
["line", {
|
|
35
|
-
x1: "14",
|
|
36
|
-
x2: "14",
|
|
37
|
-
y1: "11",
|
|
38
|
-
y2: "17",
|
|
39
|
-
key: "xtxkd"
|
|
40
|
-
}]
|
|
41
|
-
]);
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/movethewheels/pages/CreateOrderPage.tsx
|
|
44
|
-
function A() {
|
|
45
|
-
let { orderId: f } = E(), { basePath: A, navigate: j } = b(), { order: M } = S(f), { createOrder: N } = x(), { customers: P } = C({ limit: 100 }), F = !!f && !!M, [I, L] = T({
|
|
46
|
-
customerId: M?.customerId || "",
|
|
47
|
-
orderType: M?.orderType || "b2c",
|
|
48
|
-
priority: M?.priority || "normal",
|
|
49
|
-
pickupAddress: {
|
|
50
|
-
street: M?.pickupAddress.street || "",
|
|
51
|
-
city: M?.pickupAddress.city || "",
|
|
52
|
-
state: M?.pickupAddress.state || "",
|
|
53
|
-
postalCode: M?.pickupAddress.postalCode || "",
|
|
54
|
-
country: M?.pickupAddress.country || "USA"
|
|
55
|
-
},
|
|
56
|
-
deliveryAddress: {
|
|
57
|
-
street: M?.deliveryAddress.street || "",
|
|
58
|
-
city: M?.deliveryAddress.city || "",
|
|
59
|
-
state: M?.deliveryAddress.state || "",
|
|
60
|
-
postalCode: M?.deliveryAddress.postalCode || "",
|
|
61
|
-
country: M?.deliveryAddress.country || "USA"
|
|
62
|
-
},
|
|
63
|
-
items: M?.items || [],
|
|
64
|
-
specialInstructions: M?.specialInstructions || ""
|
|
65
|
-
}), [R, z] = T(!1), B = () => {
|
|
66
|
-
j && j(w(A, "orders"));
|
|
67
|
-
}, V = async (e) => {
|
|
68
|
-
e.preventDefault(), z(!0);
|
|
69
|
-
try {
|
|
70
|
-
let e = P.find((e) => e.id === I.customerId);
|
|
71
|
-
await N({
|
|
72
|
-
customerId: I.customerId,
|
|
73
|
-
customerInfo: e ? {
|
|
74
|
-
name: e.name,
|
|
75
|
-
email: e.email,
|
|
76
|
-
phone: e.phone,
|
|
77
|
-
company: e.company
|
|
78
|
-
} : {
|
|
79
|
-
name: "New Customer",
|
|
80
|
-
email: "customer@example.com",
|
|
81
|
-
phone: "+1-555-0000"
|
|
82
|
-
},
|
|
83
|
-
orderType: I.orderType,
|
|
84
|
-
priority: I.priority,
|
|
85
|
-
pickupAddress: I.pickupAddress,
|
|
86
|
-
deliveryAddress: I.deliveryAddress,
|
|
87
|
-
items: I.items,
|
|
88
|
-
specialInstructions: I.specialInstructions
|
|
89
|
-
}), B();
|
|
90
|
-
} catch (e) {
|
|
91
|
-
console.error("Failed to create order:", e);
|
|
92
|
-
} finally {
|
|
93
|
-
z(!1);
|
|
94
|
-
}
|
|
95
|
-
}, H = (e, t) => {
|
|
96
|
-
L((n) => ({
|
|
97
|
-
...n,
|
|
98
|
-
[e]: t
|
|
99
|
-
}));
|
|
100
|
-
}, U = (e, t, n) => {
|
|
101
|
-
L((r) => ({
|
|
102
|
-
...r,
|
|
103
|
-
[e]: {
|
|
104
|
-
...r[e],
|
|
105
|
-
[t]: n
|
|
106
|
-
}
|
|
107
|
-
}));
|
|
108
|
-
}, W = () => {
|
|
109
|
-
L((e) => ({
|
|
110
|
-
...e,
|
|
111
|
-
items: [...e.items, {
|
|
112
|
-
id: `item-${Date.now()}`,
|
|
113
|
-
productId: "",
|
|
114
|
-
name: "",
|
|
115
|
-
quantity: 1,
|
|
116
|
-
weight: 0,
|
|
117
|
-
dimensions: {
|
|
118
|
-
length: 0,
|
|
119
|
-
width: 0,
|
|
120
|
-
height: 0,
|
|
121
|
-
unit: "cm"
|
|
122
|
-
},
|
|
123
|
-
value: 0,
|
|
124
|
-
sku: ""
|
|
125
|
-
}]
|
|
126
|
-
}));
|
|
127
|
-
}, G = (e) => {
|
|
128
|
-
L((t) => ({
|
|
129
|
-
...t,
|
|
130
|
-
items: t.items.filter((t, n) => n !== e)
|
|
131
|
-
}));
|
|
132
|
-
}, K = (e, t, n) => {
|
|
133
|
-
L((r) => ({
|
|
134
|
-
...r,
|
|
135
|
-
items: r.items.map((r, i) => i === e ? {
|
|
136
|
-
...r,
|
|
137
|
-
[t]: n
|
|
138
|
-
} : r)
|
|
139
|
-
}));
|
|
140
|
-
};
|
|
141
|
-
return /* @__PURE__ */ D(d, {
|
|
142
|
-
title: F ? "Edit Order" : "Create Order",
|
|
143
|
-
subtitle: F ? `Editing ${M?.orderNumber}` : "Create a new delivery order",
|
|
144
|
-
icon: /* @__PURE__ */ D(_, { size: 24 }),
|
|
145
|
-
headerActions: /* @__PURE__ */ O("div", {
|
|
146
|
-
className: "flex gap-2",
|
|
147
|
-
children: [/* @__PURE__ */ O(m, {
|
|
148
|
-
variant: "outline",
|
|
149
|
-
onClick: B,
|
|
150
|
-
children: [/* @__PURE__ */ D(g, { size: 16 }), "Cancel"]
|
|
151
|
-
}), /* @__PURE__ */ O(m, {
|
|
152
|
-
onClick: V,
|
|
153
|
-
disabled: R,
|
|
154
|
-
children: [/* @__PURE__ */ D(y, { size: 16 }), R ? "Saving..." : F ? "Save Changes" : "Create Order"]
|
|
155
|
-
})]
|
|
156
|
-
}),
|
|
157
|
-
children: /* @__PURE__ */ O("form", {
|
|
158
|
-
onSubmit: V,
|
|
159
|
-
className: "space-y-6",
|
|
160
|
-
children: [
|
|
161
|
-
/* @__PURE__ */ O(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ D(l, { children: "Order Details" }) }), /* @__PURE__ */ D(c, {
|
|
162
|
-
className: "space-y-4",
|
|
163
|
-
children: /* @__PURE__ */ O("div", {
|
|
164
|
-
className: "grid grid-cols-1 md:grid-cols-3 gap-4",
|
|
165
|
-
children: [
|
|
166
|
-
/* @__PURE__ */ O("div", {
|
|
167
|
-
className: "space-y-2",
|
|
168
|
-
children: [/* @__PURE__ */ D(p, {
|
|
169
|
-
htmlFor: "customer",
|
|
170
|
-
children: "Customer"
|
|
171
|
-
}), /* @__PURE__ */ O(i, {
|
|
172
|
-
value: I.customerId,
|
|
173
|
-
onValueChange: (e) => H("customerId", e),
|
|
174
|
-
children: [/* @__PURE__ */ D(r, {
|
|
175
|
-
id: "customer",
|
|
176
|
-
children: /* @__PURE__ */ D(o, { placeholder: "Select customer" })
|
|
177
|
-
}), /* @__PURE__ */ D(t, { children: P.map((e) => /* @__PURE__ */ O(n, {
|
|
178
|
-
value: e.id,
|
|
179
|
-
children: [
|
|
180
|
-
e.name,
|
|
181
|
-
" (",
|
|
182
|
-
e.email,
|
|
183
|
-
")"
|
|
184
|
-
]
|
|
185
|
-
}, e.id)) })]
|
|
186
|
-
})]
|
|
187
|
-
}),
|
|
188
|
-
/* @__PURE__ */ O("div", {
|
|
189
|
-
className: "space-y-2",
|
|
190
|
-
children: [/* @__PURE__ */ D(p, {
|
|
191
|
-
htmlFor: "orderType",
|
|
192
|
-
children: "Order Type"
|
|
193
|
-
}), /* @__PURE__ */ O(i, {
|
|
194
|
-
value: I.orderType,
|
|
195
|
-
onValueChange: (e) => H("orderType", e),
|
|
196
|
-
children: [/* @__PURE__ */ D(r, {
|
|
197
|
-
id: "orderType",
|
|
198
|
-
children: /* @__PURE__ */ D(o, {})
|
|
199
|
-
}), /* @__PURE__ */ O(t, { children: [/* @__PURE__ */ D(n, {
|
|
200
|
-
value: "b2c",
|
|
201
|
-
children: "B2C (Individual)"
|
|
202
|
-
}), /* @__PURE__ */ D(n, {
|
|
203
|
-
value: "b2b",
|
|
204
|
-
children: "B2B (Business)"
|
|
205
|
-
})] })]
|
|
206
|
-
})]
|
|
207
|
-
}),
|
|
208
|
-
/* @__PURE__ */ O("div", {
|
|
209
|
-
className: "space-y-2",
|
|
210
|
-
children: [/* @__PURE__ */ D(p, {
|
|
211
|
-
htmlFor: "priority",
|
|
212
|
-
children: "Priority"
|
|
213
|
-
}), /* @__PURE__ */ O(i, {
|
|
214
|
-
value: I.priority,
|
|
215
|
-
onValueChange: (e) => H("priority", e),
|
|
216
|
-
children: [/* @__PURE__ */ D(r, {
|
|
217
|
-
id: "priority",
|
|
218
|
-
children: /* @__PURE__ */ D(o, {})
|
|
219
|
-
}), /* @__PURE__ */ O(t, { children: [
|
|
220
|
-
/* @__PURE__ */ D(n, {
|
|
221
|
-
value: "low",
|
|
222
|
-
children: "Low"
|
|
223
|
-
}),
|
|
224
|
-
/* @__PURE__ */ D(n, {
|
|
225
|
-
value: "normal",
|
|
226
|
-
children: "Normal"
|
|
227
|
-
}),
|
|
228
|
-
/* @__PURE__ */ D(n, {
|
|
229
|
-
value: "high",
|
|
230
|
-
children: "High"
|
|
231
|
-
}),
|
|
232
|
-
/* @__PURE__ */ D(n, {
|
|
233
|
-
value: "urgent",
|
|
234
|
-
children: "Urgent"
|
|
235
|
-
})
|
|
236
|
-
] })]
|
|
237
|
-
})]
|
|
238
|
-
})
|
|
239
|
-
]
|
|
240
|
-
})
|
|
241
|
-
})] }),
|
|
242
|
-
/* @__PURE__ */ O("div", {
|
|
243
|
-
className: "grid grid-cols-1 md:grid-cols-2 gap-6",
|
|
244
|
-
children: [/* @__PURE__ */ O(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ D(l, { children: "Pickup Address" }) }), /* @__PURE__ */ O(c, {
|
|
245
|
-
className: "space-y-4",
|
|
246
|
-
children: [
|
|
247
|
-
/* @__PURE__ */ O("div", {
|
|
248
|
-
className: "space-y-2",
|
|
249
|
-
children: [/* @__PURE__ */ D(p, {
|
|
250
|
-
htmlFor: "pickupStreet",
|
|
251
|
-
children: "Street Address"
|
|
252
|
-
}), /* @__PURE__ */ D(e, {
|
|
253
|
-
id: "pickupStreet",
|
|
254
|
-
value: I.pickupAddress.street,
|
|
255
|
-
onChange: (e) => U("pickupAddress", "street", e.target.value),
|
|
256
|
-
placeholder: "123 Main St"
|
|
257
|
-
})]
|
|
258
|
-
}),
|
|
259
|
-
/* @__PURE__ */ O("div", {
|
|
260
|
-
className: "grid grid-cols-2 gap-4",
|
|
261
|
-
children: [/* @__PURE__ */ O("div", {
|
|
262
|
-
className: "space-y-2",
|
|
263
|
-
children: [/* @__PURE__ */ D(p, {
|
|
264
|
-
htmlFor: "pickupCity",
|
|
265
|
-
children: "City"
|
|
266
|
-
}), /* @__PURE__ */ D(e, {
|
|
267
|
-
id: "pickupCity",
|
|
268
|
-
value: I.pickupAddress.city,
|
|
269
|
-
onChange: (e) => U("pickupAddress", "city", e.target.value),
|
|
270
|
-
placeholder: "San Francisco"
|
|
271
|
-
})]
|
|
272
|
-
}), /* @__PURE__ */ O("div", {
|
|
273
|
-
className: "space-y-2",
|
|
274
|
-
children: [/* @__PURE__ */ D(p, {
|
|
275
|
-
htmlFor: "pickupState",
|
|
276
|
-
children: "State"
|
|
277
|
-
}), /* @__PURE__ */ D(e, {
|
|
278
|
-
id: "pickupState",
|
|
279
|
-
value: I.pickupAddress.state,
|
|
280
|
-
onChange: (e) => U("pickupAddress", "state", e.target.value),
|
|
281
|
-
placeholder: "CA"
|
|
282
|
-
})]
|
|
283
|
-
})]
|
|
284
|
-
}),
|
|
285
|
-
/* @__PURE__ */ O("div", {
|
|
286
|
-
className: "grid grid-cols-2 gap-4",
|
|
287
|
-
children: [/* @__PURE__ */ O("div", {
|
|
288
|
-
className: "space-y-2",
|
|
289
|
-
children: [/* @__PURE__ */ D(p, {
|
|
290
|
-
htmlFor: "pickupPostal",
|
|
291
|
-
children: "Postal Code"
|
|
292
|
-
}), /* @__PURE__ */ D(e, {
|
|
293
|
-
id: "pickupPostal",
|
|
294
|
-
value: I.pickupAddress.postalCode,
|
|
295
|
-
onChange: (e) => U("pickupAddress", "postalCode", e.target.value),
|
|
296
|
-
placeholder: "94103"
|
|
297
|
-
})]
|
|
298
|
-
}), /* @__PURE__ */ O("div", {
|
|
299
|
-
className: "space-y-2",
|
|
300
|
-
children: [/* @__PURE__ */ D(p, {
|
|
301
|
-
htmlFor: "pickupCountry",
|
|
302
|
-
children: "Country"
|
|
303
|
-
}), /* @__PURE__ */ D(e, {
|
|
304
|
-
id: "pickupCountry",
|
|
305
|
-
value: I.pickupAddress.country,
|
|
306
|
-
onChange: (e) => U("pickupAddress", "country", e.target.value),
|
|
307
|
-
placeholder: "USA"
|
|
308
|
-
})]
|
|
309
|
-
})]
|
|
310
|
-
})
|
|
311
|
-
]
|
|
312
|
-
})] }), /* @__PURE__ */ O(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ D(l, { children: "Delivery Address" }) }), /* @__PURE__ */ O(c, {
|
|
313
|
-
className: "space-y-4",
|
|
314
|
-
children: [
|
|
315
|
-
/* @__PURE__ */ O("div", {
|
|
316
|
-
className: "space-y-2",
|
|
317
|
-
children: [/* @__PURE__ */ D(p, {
|
|
318
|
-
htmlFor: "deliveryStreet",
|
|
319
|
-
children: "Street Address"
|
|
320
|
-
}), /* @__PURE__ */ D(e, {
|
|
321
|
-
id: "deliveryStreet",
|
|
322
|
-
value: I.deliveryAddress.street,
|
|
323
|
-
onChange: (e) => U("deliveryAddress", "street", e.target.value),
|
|
324
|
-
placeholder: "456 Oak Ave"
|
|
325
|
-
})]
|
|
326
|
-
}),
|
|
327
|
-
/* @__PURE__ */ O("div", {
|
|
328
|
-
className: "grid grid-cols-2 gap-4",
|
|
329
|
-
children: [/* @__PURE__ */ O("div", {
|
|
330
|
-
className: "space-y-2",
|
|
331
|
-
children: [/* @__PURE__ */ D(p, {
|
|
332
|
-
htmlFor: "deliveryCity",
|
|
333
|
-
children: "City"
|
|
334
|
-
}), /* @__PURE__ */ D(e, {
|
|
335
|
-
id: "deliveryCity",
|
|
336
|
-
value: I.deliveryAddress.city,
|
|
337
|
-
onChange: (e) => U("deliveryAddress", "city", e.target.value),
|
|
338
|
-
placeholder: "Los Angeles"
|
|
339
|
-
})]
|
|
340
|
-
}), /* @__PURE__ */ O("div", {
|
|
341
|
-
className: "space-y-2",
|
|
342
|
-
children: [/* @__PURE__ */ D(p, {
|
|
343
|
-
htmlFor: "deliveryState",
|
|
344
|
-
children: "State"
|
|
345
|
-
}), /* @__PURE__ */ D(e, {
|
|
346
|
-
id: "deliveryState",
|
|
347
|
-
value: I.deliveryAddress.state,
|
|
348
|
-
onChange: (e) => U("deliveryAddress", "state", e.target.value),
|
|
349
|
-
placeholder: "CA"
|
|
350
|
-
})]
|
|
351
|
-
})]
|
|
352
|
-
}),
|
|
353
|
-
/* @__PURE__ */ O("div", {
|
|
354
|
-
className: "grid grid-cols-2 gap-4",
|
|
355
|
-
children: [/* @__PURE__ */ O("div", {
|
|
356
|
-
className: "space-y-2",
|
|
357
|
-
children: [/* @__PURE__ */ D(p, {
|
|
358
|
-
htmlFor: "deliveryPostal",
|
|
359
|
-
children: "Postal Code"
|
|
360
|
-
}), /* @__PURE__ */ D(e, {
|
|
361
|
-
id: "deliveryPostal",
|
|
362
|
-
value: I.deliveryAddress.postalCode,
|
|
363
|
-
onChange: (e) => U("deliveryAddress", "postalCode", e.target.value),
|
|
364
|
-
placeholder: "90210"
|
|
365
|
-
})]
|
|
366
|
-
}), /* @__PURE__ */ O("div", {
|
|
367
|
-
className: "space-y-2",
|
|
368
|
-
children: [/* @__PURE__ */ D(p, {
|
|
369
|
-
htmlFor: "deliveryCountry",
|
|
370
|
-
children: "Country"
|
|
371
|
-
}), /* @__PURE__ */ D(e, {
|
|
372
|
-
id: "deliveryCountry",
|
|
373
|
-
value: I.deliveryAddress.country,
|
|
374
|
-
onChange: (e) => U("deliveryAddress", "country", e.target.value),
|
|
375
|
-
placeholder: "USA"
|
|
376
|
-
})]
|
|
377
|
-
})]
|
|
378
|
-
})
|
|
379
|
-
]
|
|
380
|
-
})] })]
|
|
381
|
-
}),
|
|
382
|
-
/* @__PURE__ */ O(s, { children: [/* @__PURE__ */ O(u, {
|
|
383
|
-
className: "flex flex-row items-center justify-between",
|
|
384
|
-
children: [/* @__PURE__ */ D(l, { children: "Order Items" }), /* @__PURE__ */ O(m, {
|
|
385
|
-
type: "button",
|
|
386
|
-
variant: "outline",
|
|
387
|
-
size: "sm",
|
|
388
|
-
onClick: W,
|
|
389
|
-
children: [/* @__PURE__ */ D(v, { size: 16 }), "Add Item"]
|
|
390
|
-
})]
|
|
391
|
-
}), /* @__PURE__ */ D(c, { children: I.items.length === 0 ? /* @__PURE__ */ O("div", {
|
|
392
|
-
className: "text-center py-8 text-text-secondary",
|
|
393
|
-
children: [
|
|
394
|
-
/* @__PURE__ */ D(_, {
|
|
395
|
-
size: 48,
|
|
396
|
-
className: "mx-auto mb-4 opacity-50"
|
|
397
|
-
}),
|
|
398
|
-
/* @__PURE__ */ D("p", { children: "No items added yet" }),
|
|
399
|
-
/* @__PURE__ */ D(m, {
|
|
400
|
-
type: "button",
|
|
401
|
-
variant: "link",
|
|
402
|
-
onClick: W,
|
|
403
|
-
children: "Add your first item"
|
|
404
|
-
})
|
|
405
|
-
]
|
|
406
|
-
}) : /* @__PURE__ */ D("div", {
|
|
407
|
-
className: "space-y-4",
|
|
408
|
-
children: I.items.map((t, n) => /* @__PURE__ */ O("div", { children: [n > 0 && /* @__PURE__ */ D(h, { className: "my-4" }), /* @__PURE__ */ O("div", {
|
|
409
|
-
className: "grid grid-cols-1 md:grid-cols-6 gap-4",
|
|
410
|
-
children: [
|
|
411
|
-
/* @__PURE__ */ O("div", {
|
|
412
|
-
className: "md:col-span-2 space-y-2",
|
|
413
|
-
children: [/* @__PURE__ */ D(p, { children: "Item Name" }), /* @__PURE__ */ D(e, {
|
|
414
|
-
value: t.name,
|
|
415
|
-
onChange: (e) => K(n, "name", e.target.value),
|
|
416
|
-
placeholder: "Product name"
|
|
417
|
-
})]
|
|
418
|
-
}),
|
|
419
|
-
/* @__PURE__ */ O("div", {
|
|
420
|
-
className: "space-y-2",
|
|
421
|
-
children: [/* @__PURE__ */ D(p, { children: "SKU" }), /* @__PURE__ */ D(e, {
|
|
422
|
-
value: t.sku,
|
|
423
|
-
onChange: (e) => K(n, "sku", e.target.value),
|
|
424
|
-
placeholder: "SKU-001"
|
|
425
|
-
})]
|
|
426
|
-
}),
|
|
427
|
-
/* @__PURE__ */ O("div", {
|
|
428
|
-
className: "space-y-2",
|
|
429
|
-
children: [/* @__PURE__ */ D(p, { children: "Quantity" }), /* @__PURE__ */ D(e, {
|
|
430
|
-
type: "number",
|
|
431
|
-
min: "1",
|
|
432
|
-
value: t.quantity,
|
|
433
|
-
onChange: (e) => K(n, "quantity", parseInt(e.target.value) || 1)
|
|
434
|
-
})]
|
|
435
|
-
}),
|
|
436
|
-
/* @__PURE__ */ O("div", {
|
|
437
|
-
className: "space-y-2",
|
|
438
|
-
children: [/* @__PURE__ */ D(p, { children: "Value ($)" }), /* @__PURE__ */ D(e, {
|
|
439
|
-
type: "number",
|
|
440
|
-
min: "0",
|
|
441
|
-
step: "0.01",
|
|
442
|
-
value: t.value,
|
|
443
|
-
onChange: (e) => K(n, "value", parseFloat(e.target.value) || 0)
|
|
444
|
-
})]
|
|
445
|
-
}),
|
|
446
|
-
/* @__PURE__ */ D("div", {
|
|
447
|
-
className: "flex items-end",
|
|
448
|
-
children: /* @__PURE__ */ D(m, {
|
|
449
|
-
type: "button",
|
|
450
|
-
variant: "ghost",
|
|
451
|
-
size: "icon",
|
|
452
|
-
className: "text-status-error-text",
|
|
453
|
-
onClick: () => G(n),
|
|
454
|
-
children: /* @__PURE__ */ D(k, { size: 16 })
|
|
455
|
-
})
|
|
456
|
-
})
|
|
457
|
-
]
|
|
458
|
-
})] }, t.id))
|
|
459
|
-
}) })] }),
|
|
460
|
-
/* @__PURE__ */ O(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ D(l, { children: "Special Instructions" }) }), /* @__PURE__ */ D(c, { children: /* @__PURE__ */ D(a, {
|
|
461
|
-
value: I.specialInstructions,
|
|
462
|
-
onChange: (e) => H("specialInstructions", e.target.value),
|
|
463
|
-
placeholder: "Any special handling or delivery instructions...",
|
|
464
|
-
rows: 4
|
|
465
|
-
}) })] })
|
|
466
|
-
]
|
|
467
|
-
})
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
//#endregion
|
|
471
|
-
export { A as default };
|