@burdenoff/microfe-movethewheels 2026.1031.2 → 2026.1031.4
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/MoveTheWheelsRoot.js +121 -104
- package/dist/MoveTheWheelsRoutes.js +142 -133
- package/dist/components/DocumentsCard.js +11 -11
- package/dist/components/ProofOfDeliveryCard.js +13 -13
- package/dist/components/ShipmentRiskDialog.js +24 -24
- package/dist/components/ShippingQuoteResults.js +46 -46
- package/dist/components/TrackingAlertList.js +17 -17
- package/dist/generated/tracking-quality-operations.d.ts +140 -0
- package/dist/hooks/useEntityImport.js +68 -0
- package/dist/hooks/useOrderDispatch.js +17 -17
- package/dist/movethewheels/hooks/useEntityImport.d.ts +19 -0
- package/dist/movethewheels/pages/ImportExportPage.d.ts +9 -0
- package/dist/movethewheels/pages/SettingsPage.d.ts +1 -0
- package/dist/movethewheels/providers/ModuleSettingsProvider.d.ts +17 -0
- package/dist/movethewheels/utils/entityImport.d.ts +109 -0
- package/dist/movethewheels/utils/formatters.d.ts +23 -3
- package/dist/movethewheels/utils/moduleSettings.d.ts +52 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down-up.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js +30 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-up.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/key-round.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/plug.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +13 -0
- package/dist/pages/AnalyticsPage.js +27 -27
- package/dist/pages/CreateOrderPage.js +340 -317
- package/dist/pages/CustomerDetailsPage.js +246 -246
- package/dist/pages/CustomersPage.js +88 -79
- package/dist/pages/DashboardPage.js +24 -24
- package/dist/pages/DeliveryCapturePage.js +74 -74
- package/dist/pages/DriverDetailsPage.js +337 -337
- package/dist/pages/DriversPage.js +119 -110
- package/dist/pages/FinancePage.js +26 -26
- package/dist/pages/ImportExportPage.js +435 -0
- package/dist/pages/InventoryPage.js +28 -28
- package/dist/pages/LiveTrackingPage.js +108 -108
- package/dist/pages/MarketplacePage.js +44 -44
- package/dist/pages/OrderDetailsPage.js +306 -306
- package/dist/pages/OrdersListPage.js +27 -27
- package/dist/pages/ProductDetailsPage.js +89 -89
- package/dist/pages/ProductsPage.js +86 -77
- package/dist/pages/RouteDetailsPage.js +282 -285
- package/dist/pages/RoutesPage.js +78 -78
- package/dist/pages/SettingsPage.js +459 -0
- package/dist/pages/TrackingPage.js +41 -41
- package/dist/pages/VehicleDetailsPage.js +207 -207
- package/dist/pages/VehiclesPage.js +100 -90
- package/dist/pages/WarehouseDetailsPage.js +132 -132
- package/dist/pages/WarehousesPage.js +97 -88
- package/dist/providers/ModuleSettingsProvider.js +74 -0
- package/dist/utils/entityImport.js +73 -0
- package/dist/utils/formatters.js +53 -26
- package/dist/utils/moduleSettings.js +132 -0
- package/package.json +4 -2
- package/src/generated/tracking-quality-operations.ts +184 -0
- package/src/movethewheels/MoveTheWheelsRoot.tsx +22 -3
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +13 -0
- package/src/movethewheels/hooks/useEntityImport.ts +108 -0
- package/src/movethewheels/pages/CreateOrderPage.tsx +38 -6
- package/src/movethewheels/pages/CustomersPage.tsx +6 -1
- package/src/movethewheels/pages/DriversPage.tsx +6 -0
- package/src/movethewheels/pages/ImportExportPage.tsx +483 -0
- package/src/movethewheels/pages/ProductsPage.tsx +16 -3
- package/src/movethewheels/pages/RouteDetailsPage.tsx +3 -6
- package/src/movethewheels/pages/RoutesPage.tsx +2 -2
- package/src/movethewheels/pages/SettingsPage.tsx +516 -0
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +4 -2
- package/src/movethewheels/pages/VehiclesPage.tsx +8 -1
- package/src/movethewheels/pages/WarehousesPage.tsx +6 -1
- package/src/movethewheels/providers/ModuleSettingsProvider.tsx +133 -0
- package/src/movethewheels/utils/entityImport.ts +239 -0
- package/src/movethewheels/utils/formatters.ts +69 -10
- package/src/movethewheels/utils/moduleSettings.ts +224 -0
|
@@ -6,18 +6,18 @@ import { MapPin as i } from "../node_modules/lucide-react/dist/esm/icons/map-pin
|
|
|
6
6
|
import { Package as a } from "../node_modules/lucide-react/dist/esm/icons/package.js";
|
|
7
7
|
import { PenLine as o } from "../node_modules/lucide-react/dist/esm/icons/pen-line.js";
|
|
8
8
|
import { Truck as s } from "../node_modules/lucide-react/dist/esm/icons/truck.js";
|
|
9
|
-
import { Type as
|
|
10
|
-
import { Upload as
|
|
11
|
-
import { useMoveTheWheels as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
9
|
+
import { Type as c } from "../node_modules/lucide-react/dist/esm/icons/type.js";
|
|
10
|
+
import { Upload as l } from "../node_modules/lucide-react/dist/esm/icons/upload.js";
|
|
11
|
+
import { useMoveTheWheels as u } from "../providers/MoveTheWheelsProvider.js";
|
|
12
|
+
import { formatAddress as ee, formatDate as d } from "../utils/formatters.js";
|
|
13
|
+
import { mapOrderPriority as f, mapOrderStatus as p } from "../hooks/useOrders.js";
|
|
14
|
+
import { useShipmentStatusQuery as m } from "../hooks/useShipmentStatusAuthority.js";
|
|
15
|
+
import { useCaptureEpod as h, useEpodPhotoUpload as g, useMyPendingEpodDeliveryJobs as _ } from "../hooks/useEpod.js";
|
|
16
|
+
import { Button as v, Card as y, CardContent as b, CardHeader as x, CardTitle as S, Input as C, Label as w, Textarea as T } from "../components/ui.js";
|
|
17
|
+
import { PageLayout as E } from "../components/PageLayout.js";
|
|
18
|
+
import { PriorityBadge as D, StatusBadge as O } from "../components/StatusBadge.js";
|
|
19
|
+
import { FormError as k } from "../components/FormError.js";
|
|
20
|
+
import { Notice as A, useNotice as j } from "../components/Notice.js";
|
|
21
21
|
import { SignaturePad as M } from "../components/SignaturePad.js";
|
|
22
22
|
import { StatusAuthorityOwnedDeliveryDocument as N } from "../src/generated/shipment-status-authority-operations.js";
|
|
23
23
|
import { useEffect as P, useRef as F, useState as I } from "react";
|
|
@@ -37,13 +37,13 @@ function ne() {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
function z({ job: e, onCaptured: t, onCancel: a }) {
|
|
40
|
-
let { captureEpod:
|
|
40
|
+
let { captureEpod: u, isSubmitting: d, error: f, captureFeedback: p } = h(), [_, E] = I(0), D = m(N, { deliveryJobId: e.id }, _), [O, A] = I(!1), j = F(null), z = F(!1), B = F(!0);
|
|
41
41
|
P(() => (B.current = !0, () => {
|
|
42
42
|
B.current = !1;
|
|
43
43
|
}), []);
|
|
44
|
-
let [re, V] = I(!1), [H, ie] = I(0), { upload: ae, isUploading: oe, error: U } =
|
|
44
|
+
let [re, V] = I(!1), [H, ie] = I(0), { upload: ae, isUploading: oe, error: U } = g(), W = F(null), [G, se] = I(""), [K, q] = I("drawn"), [J, ce] = I(""), [Y, le] = I(null), [X, ue] = I(""), [Z, Q] = I(null), de = async () => {
|
|
45
45
|
if (z.current) return;
|
|
46
|
-
if (Q(null),
|
|
46
|
+
if (Q(null), D.loading || D.error || !D.data || _ < H || !O || p?.kind === "UNKNOWN") {
|
|
47
47
|
Q("Review the current linked shipment status and confirm completion before capture. Do not resend an uncertain capture.");
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
@@ -71,9 +71,9 @@ function z({ job: e, onCaptured: t, onCancel: a }) {
|
|
|
71
71
|
if (!B.current) return;
|
|
72
72
|
let a = await ne();
|
|
73
73
|
if (!B.current) return;
|
|
74
|
-
let o = await
|
|
75
|
-
expectedShipmentId:
|
|
76
|
-
expectedShipmentStatusRevision:
|
|
74
|
+
let o = await u({
|
|
75
|
+
expectedShipmentId: D.data.myEpodShipmentStatus?.id ?? null,
|
|
76
|
+
expectedShipmentStatusRevision: D.data.myEpodShipmentStatus?.statusRevision,
|
|
77
77
|
completionAttestation: O,
|
|
78
78
|
deliveryJobId: e.id,
|
|
79
79
|
recipientName: n,
|
|
@@ -88,24 +88,24 @@ function z({ job: e, onCaptured: t, onCancel: a }) {
|
|
|
88
88
|
if (!B.current) return;
|
|
89
89
|
t(o.deliveryJobId);
|
|
90
90
|
} catch {
|
|
91
|
-
|
|
91
|
+
A(!1), ie(_ + 1);
|
|
92
92
|
} finally {
|
|
93
93
|
z.current = !1, V(!1);
|
|
94
94
|
}
|
|
95
|
-
}, $ =
|
|
96
|
-
return /* @__PURE__ */ R(
|
|
95
|
+
}, $ = d || oe || re;
|
|
96
|
+
return /* @__PURE__ */ R(y, { children: [/* @__PURE__ */ L(x, { children: /* @__PURE__ */ R(S, {
|
|
97
97
|
className: "flex items-center gap-2",
|
|
98
98
|
children: [
|
|
99
99
|
/* @__PURE__ */ L(s, { size: 18 }),
|
|
100
100
|
" Capture delivery for ",
|
|
101
101
|
e.deliveryJobNumber
|
|
102
102
|
]
|
|
103
|
-
}) }), /* @__PURE__ */ R(
|
|
103
|
+
}) }), /* @__PURE__ */ R(b, {
|
|
104
104
|
className: "space-y-4",
|
|
105
105
|
children: [
|
|
106
106
|
/* @__PURE__ */ R("div", {
|
|
107
107
|
className: "text-sm text-text-secondary space-y-1",
|
|
108
|
-
children: [e.customerName && /* @__PURE__ */ R("p", { children: ["Recipient on file: ", e.customerName] }), e.deliveryAddress && /* @__PURE__ */ L("p", { children:
|
|
108
|
+
children: [e.customerName && /* @__PURE__ */ R("p", { children: ["Recipient on file: ", e.customerName] }), e.deliveryAddress && /* @__PURE__ */ L("p", { children: ee(e.deliveryAddress) })]
|
|
109
109
|
}),
|
|
110
110
|
/* @__PURE__ */ R("section", {
|
|
111
111
|
"aria-label": "Linked shipment status",
|
|
@@ -114,17 +114,17 @@ function z({ job: e, onCaptured: t, onCancel: a }) {
|
|
|
114
114
|
/* @__PURE__ */ R("p", { children: [
|
|
115
115
|
"Recorded shipment:",
|
|
116
116
|
" ",
|
|
117
|
-
|
|
117
|
+
D.data?.myEpodShipmentStatus ? `${D.data.myEpodShipmentStatus.status.toLowerCase().replaceAll("_", " ")} · revision ${D.data.myEpodShipmentStatus.statusRevision}` : D.data ? "No linked shipment" : "Loading current record"
|
|
118
118
|
] }),
|
|
119
|
-
|
|
119
|
+
D.error && /* @__PURE__ */ L("p", {
|
|
120
120
|
role: "alert",
|
|
121
|
-
children:
|
|
121
|
+
children: D.error
|
|
122
122
|
}),
|
|
123
|
-
/* @__PURE__ */ L(
|
|
123
|
+
/* @__PURE__ */ L(v, {
|
|
124
124
|
variant: "outline",
|
|
125
|
-
disabled:
|
|
125
|
+
disabled: D.loading || $,
|
|
126
126
|
onClick: () => {
|
|
127
|
-
|
|
127
|
+
A(!1), E((e) => e + 1);
|
|
128
128
|
},
|
|
129
129
|
children: "Refresh linked status"
|
|
130
130
|
}),
|
|
@@ -133,23 +133,23 @@ function z({ job: e, onCaptured: t, onCancel: a }) {
|
|
|
133
133
|
children: [/* @__PURE__ */ L("input", {
|
|
134
134
|
type: "checkbox",
|
|
135
135
|
checked: O,
|
|
136
|
-
disabled:
|
|
137
|
-
onChange: (e) =>
|
|
136
|
+
disabled: D.loading || !!D.error || $ || _ < H || p?.kind === "UNKNOWN",
|
|
137
|
+
onChange: (e) => A(e.target.checked)
|
|
138
138
|
}), "I reviewed the recorded linked status and attest to this delivery completion."]
|
|
139
139
|
}),
|
|
140
140
|
/* @__PURE__ */ L("p", { children: "This records an assigned driver's attestation; it does not independently verify physical freight movement." }),
|
|
141
|
-
|
|
141
|
+
p && /* @__PURE__ */ L("p", {
|
|
142
142
|
role: "status",
|
|
143
|
-
children:
|
|
143
|
+
children: p.message
|
|
144
144
|
})
|
|
145
145
|
]
|
|
146
146
|
}),
|
|
147
147
|
/* @__PURE__ */ R("div", {
|
|
148
148
|
className: "space-y-1.5",
|
|
149
|
-
children: [/* @__PURE__ */ L(
|
|
149
|
+
children: [/* @__PURE__ */ L(w, {
|
|
150
150
|
htmlFor: "epod-recipient-name",
|
|
151
151
|
children: "Recipient name"
|
|
152
|
-
}), /* @__PURE__ */ L(
|
|
152
|
+
}), /* @__PURE__ */ L(C, {
|
|
153
153
|
id: "epod-recipient-name",
|
|
154
154
|
value: G,
|
|
155
155
|
onChange: (e) => se(e.target.value),
|
|
@@ -159,24 +159,24 @@ function z({ job: e, onCaptured: t, onCancel: a }) {
|
|
|
159
159
|
/* @__PURE__ */ R("div", {
|
|
160
160
|
className: "space-y-1.5",
|
|
161
161
|
children: [
|
|
162
|
-
/* @__PURE__ */ L(
|
|
162
|
+
/* @__PURE__ */ L(w, { children: "Signature" }),
|
|
163
163
|
/* @__PURE__ */ R("div", {
|
|
164
164
|
className: "flex gap-2",
|
|
165
|
-
children: [/* @__PURE__ */ R(
|
|
165
|
+
children: [/* @__PURE__ */ R(v, {
|
|
166
166
|
type: "button",
|
|
167
167
|
variant: K === "drawn" ? "default" : "outline",
|
|
168
168
|
size: "sm",
|
|
169
169
|
onClick: () => q("drawn"),
|
|
170
170
|
children: [/* @__PURE__ */ L(o, { size: 14 }), " Draw"]
|
|
171
|
-
}), /* @__PURE__ */ R(
|
|
171
|
+
}), /* @__PURE__ */ R(v, {
|
|
172
172
|
type: "button",
|
|
173
173
|
variant: K === "typed" ? "default" : "outline",
|
|
174
174
|
size: "sm",
|
|
175
175
|
onClick: () => q("typed"),
|
|
176
|
-
children: [/* @__PURE__ */ L(
|
|
176
|
+
children: [/* @__PURE__ */ L(c, { size: 14 }), " Type name instead"]
|
|
177
177
|
})]
|
|
178
178
|
}),
|
|
179
|
-
K === "drawn" ? /* @__PURE__ */ L(M, { ref: W }) : /* @__PURE__ */ L(
|
|
179
|
+
K === "drawn" ? /* @__PURE__ */ L(M, { ref: W }) : /* @__PURE__ */ L(C, {
|
|
180
180
|
value: J,
|
|
181
181
|
onChange: (e) => ce(e.target.value),
|
|
182
182
|
placeholder: "Type full name as signature"
|
|
@@ -186,7 +186,7 @@ function z({ job: e, onCaptured: t, onCancel: a }) {
|
|
|
186
186
|
/* @__PURE__ */ R("div", {
|
|
187
187
|
className: "space-y-1.5",
|
|
188
188
|
children: [
|
|
189
|
-
/* @__PURE__ */ L(
|
|
189
|
+
/* @__PURE__ */ L(w, {
|
|
190
190
|
htmlFor: "epod-photo",
|
|
191
191
|
children: "Delivery photo (optional)"
|
|
192
192
|
}),
|
|
@@ -199,7 +199,7 @@ function z({ job: e, onCaptured: t, onCancel: a }) {
|
|
|
199
199
|
capture: "environment",
|
|
200
200
|
onChange: (e) => le(e.target.files?.[0] ?? null),
|
|
201
201
|
className: "text-sm"
|
|
202
|
-
}), Y && /* @__PURE__ */ L(
|
|
202
|
+
}), Y && /* @__PURE__ */ L(l, {
|
|
203
203
|
size: 14,
|
|
204
204
|
className: "text-text-secondary"
|
|
205
205
|
})]
|
|
@@ -212,10 +212,10 @@ function z({ job: e, onCaptured: t, onCancel: a }) {
|
|
|
212
212
|
}),
|
|
213
213
|
/* @__PURE__ */ R("div", {
|
|
214
214
|
className: "space-y-1.5",
|
|
215
|
-
children: [/* @__PURE__ */ L(
|
|
215
|
+
children: [/* @__PURE__ */ L(w, {
|
|
216
216
|
htmlFor: "epod-notes",
|
|
217
217
|
children: "Notes (optional)"
|
|
218
|
-
}), /* @__PURE__ */ L(
|
|
218
|
+
}), /* @__PURE__ */ L(T, {
|
|
219
219
|
id: "epod-notes",
|
|
220
220
|
value: X,
|
|
221
221
|
onChange: (e) => ue(e.target.value),
|
|
@@ -227,21 +227,21 @@ function z({ job: e, onCaptured: t, onCancel: a }) {
|
|
|
227
227
|
className: "flex items-center gap-1.5 text-xs text-text-secondary",
|
|
228
228
|
children: [/* @__PURE__ */ L(i, { size: 12 }), " Device GPS is captured automatically when permitted by the browser."]
|
|
229
229
|
}),
|
|
230
|
-
Z && /* @__PURE__ */ L(
|
|
231
|
-
|
|
232
|
-
U && /* @__PURE__ */ L(
|
|
230
|
+
Z && /* @__PURE__ */ L(k, { message: Z }),
|
|
231
|
+
f && /* @__PURE__ */ L(k, { message: f.message }),
|
|
232
|
+
U && /* @__PURE__ */ L(k, { message: U.message }),
|
|
233
233
|
/* @__PURE__ */ R("div", {
|
|
234
234
|
className: "flex gap-2 justify-end",
|
|
235
|
-
children: [/* @__PURE__ */ L(
|
|
235
|
+
children: [/* @__PURE__ */ L(v, {
|
|
236
236
|
type: "button",
|
|
237
237
|
variant: "outline",
|
|
238
238
|
onClick: a,
|
|
239
239
|
disabled: $,
|
|
240
240
|
children: "Cancel"
|
|
241
|
-
}), /* @__PURE__ */ L(
|
|
241
|
+
}), /* @__PURE__ */ L(v, {
|
|
242
242
|
type: "button",
|
|
243
243
|
onClick: () => void de(),
|
|
244
|
-
disabled: $ ||
|
|
244
|
+
disabled: $ || D.loading || !!D.error || !D.data || _ < H || !O || p?.kind === "UNKNOWN",
|
|
245
245
|
children: $ ? /* @__PURE__ */ R(te, { children: [/* @__PURE__ */ L(r, {
|
|
246
246
|
size: 14,
|
|
247
247
|
className: "animate-spin"
|
|
@@ -252,28 +252,28 @@ function z({ job: e, onCaptured: t, onCancel: a }) {
|
|
|
252
252
|
})] });
|
|
253
253
|
}
|
|
254
254
|
function B() {
|
|
255
|
-
let { workspaceId: r, tenantId: i, currentUser: o, apiGatewayUrl:
|
|
255
|
+
let { workspaceId: r, tenantId: i, currentUser: o, apiGatewayUrl: c } = u(), [l, m] = I(0), { jobs: h, hasMore: g, isLoading: x, error: S, refetch: C, retireAcknowledgedJob: w } = _({
|
|
256
256
|
limit: 20,
|
|
257
|
-
offset:
|
|
258
|
-
}), [
|
|
259
|
-
return /* @__PURE__ */ L(
|
|
257
|
+
offset: l * 20
|
|
258
|
+
}), [T, M] = I(null), { message: N, notify: P } = j();
|
|
259
|
+
return /* @__PURE__ */ L(E, {
|
|
260
260
|
title: "My Deliveries",
|
|
261
261
|
subtitle: "Capture proof of delivery for your assigned stops",
|
|
262
262
|
icon: /* @__PURE__ */ L(s, { size: 24 }),
|
|
263
263
|
children: /* @__PURE__ */ R("div", {
|
|
264
264
|
className: "space-y-4",
|
|
265
|
-
children: [/* @__PURE__ */ L(
|
|
266
|
-
job:
|
|
265
|
+
children: [/* @__PURE__ */ L(A, { message: N }), T ? /* @__PURE__ */ L(z, {
|
|
266
|
+
job: T,
|
|
267
267
|
onCaptured: (e) => {
|
|
268
|
-
|
|
268
|
+
w(e), P("Proof of delivery captured — delivery marked complete."), M(null), m(0), C();
|
|
269
269
|
},
|
|
270
270
|
onCancel: () => M(null)
|
|
271
|
-
}, `${r}:${i}:${o?.id}:${
|
|
271
|
+
}, `${r}:${i}:${o?.id}:${c}:${T.id}`) : x ? /* @__PURE__ */ L("p", {
|
|
272
272
|
className: "text-text-secondary text-center py-8",
|
|
273
273
|
children: "Loading your deliveries…"
|
|
274
|
-
}) :
|
|
274
|
+
}) : S ? /* @__PURE__ */ L(k, { message: S.message }) : h.length > 0 ? /* @__PURE__ */ R("div", {
|
|
275
275
|
className: "space-y-3",
|
|
276
|
-
children: [
|
|
276
|
+
children: [h.map((e) => /* @__PURE__ */ L(y, { children: /* @__PURE__ */ R(b, {
|
|
277
277
|
className: "flex items-center justify-between gap-3 py-4",
|
|
278
278
|
children: [/* @__PURE__ */ R("div", {
|
|
279
279
|
className: "min-w-0",
|
|
@@ -288,45 +288,45 @@ function B() {
|
|
|
288
288
|
}),
|
|
289
289
|
/* @__PURE__ */ R("div", {
|
|
290
290
|
className: "flex flex-wrap items-center gap-1.5 py-1",
|
|
291
|
-
children: [/* @__PURE__ */ L(
|
|
292
|
-
status:
|
|
291
|
+
children: [/* @__PURE__ */ L(O, {
|
|
292
|
+
status: p(e.status),
|
|
293
293
|
type: "order",
|
|
294
294
|
size: "sm"
|
|
295
|
-
}), /* @__PURE__ */ L(
|
|
296
|
-
priority:
|
|
295
|
+
}), /* @__PURE__ */ L(D, {
|
|
296
|
+
priority: f(e.priority),
|
|
297
297
|
size: "sm"
|
|
298
298
|
})]
|
|
299
299
|
}),
|
|
300
300
|
e.deliveryAddress && /* @__PURE__ */ L("p", {
|
|
301
301
|
className: "text-sm text-text-secondary truncate",
|
|
302
|
-
children:
|
|
302
|
+
children: ee(e.deliveryAddress)
|
|
303
303
|
}),
|
|
304
304
|
e.scheduledDelivery && /* @__PURE__ */ R("p", {
|
|
305
305
|
className: "text-xs text-text-secondary",
|
|
306
|
-
children: ["Scheduled ",
|
|
306
|
+
children: ["Scheduled ", d(e.scheduledDelivery, "short")]
|
|
307
307
|
})
|
|
308
308
|
]
|
|
309
|
-
}), /* @__PURE__ */ L(
|
|
309
|
+
}), /* @__PURE__ */ L(v, {
|
|
310
310
|
type: "button",
|
|
311
311
|
size: "sm",
|
|
312
312
|
onClick: () => M(e),
|
|
313
313
|
children: "Capture"
|
|
314
314
|
})]
|
|
315
|
-
}) }, e.id)), (
|
|
315
|
+
}) }, e.id)), (l > 0 || g) && /* @__PURE__ */ R("div", {
|
|
316
316
|
className: "flex justify-end gap-2 pt-2",
|
|
317
|
-
children: [/* @__PURE__ */ R(
|
|
317
|
+
children: [/* @__PURE__ */ R(v, {
|
|
318
318
|
type: "button",
|
|
319
319
|
variant: "outline",
|
|
320
320
|
size: "sm",
|
|
321
|
-
disabled:
|
|
322
|
-
onClick: () =>
|
|
321
|
+
disabled: l === 0 || x,
|
|
322
|
+
onClick: () => m((e) => Math.max(0, e - 1)),
|
|
323
323
|
children: [/* @__PURE__ */ L(e, { size: 16 }), " Previous"]
|
|
324
|
-
}), /* @__PURE__ */ R(
|
|
324
|
+
}), /* @__PURE__ */ R(v, {
|
|
325
325
|
type: "button",
|
|
326
326
|
variant: "outline",
|
|
327
327
|
size: "sm",
|
|
328
|
-
disabled: !
|
|
329
|
-
onClick: () =>
|
|
328
|
+
disabled: !g || x,
|
|
329
|
+
onClick: () => m((e) => e + 1),
|
|
330
330
|
children: ["Next ", /* @__PURE__ */ L(t, { size: 16 })]
|
|
331
331
|
})]
|
|
332
332
|
})]
|