@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.
Files changed (74) hide show
  1. package/dist/MoveTheWheelsRoot.js +121 -104
  2. package/dist/MoveTheWheelsRoutes.js +142 -133
  3. package/dist/components/DocumentsCard.js +11 -11
  4. package/dist/components/ProofOfDeliveryCard.js +13 -13
  5. package/dist/components/ShipmentRiskDialog.js +24 -24
  6. package/dist/components/ShippingQuoteResults.js +46 -46
  7. package/dist/components/TrackingAlertList.js +17 -17
  8. package/dist/generated/tracking-quality-operations.d.ts +140 -0
  9. package/dist/hooks/useEntityImport.js +68 -0
  10. package/dist/hooks/useOrderDispatch.js +17 -17
  11. package/dist/movethewheels/hooks/useEntityImport.d.ts +19 -0
  12. package/dist/movethewheels/pages/ImportExportPage.d.ts +9 -0
  13. package/dist/movethewheels/pages/SettingsPage.d.ts +1 -0
  14. package/dist/movethewheels/providers/ModuleSettingsProvider.d.ts +17 -0
  15. package/dist/movethewheels/utils/entityImport.d.ts +109 -0
  16. package/dist/movethewheels/utils/formatters.d.ts +23 -3
  17. package/dist/movethewheels/utils/moduleSettings.d.ts +52 -0
  18. package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down-up.js +22 -0
  19. package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +11 -0
  20. package/dist/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js +30 -0
  21. package/dist/node_modules/lucide-react/dist/esm/icons/file-up.js +22 -0
  22. package/dist/node_modules/lucide-react/dist/esm/icons/key-round.js +14 -0
  23. package/dist/node_modules/lucide-react/dist/esm/icons/plug.js +22 -0
  24. package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js +11 -0
  25. package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +13 -0
  26. package/dist/pages/AnalyticsPage.js +27 -27
  27. package/dist/pages/CreateOrderPage.js +340 -317
  28. package/dist/pages/CustomerDetailsPage.js +246 -246
  29. package/dist/pages/CustomersPage.js +88 -79
  30. package/dist/pages/DashboardPage.js +24 -24
  31. package/dist/pages/DeliveryCapturePage.js +74 -74
  32. package/dist/pages/DriverDetailsPage.js +337 -337
  33. package/dist/pages/DriversPage.js +119 -110
  34. package/dist/pages/FinancePage.js +26 -26
  35. package/dist/pages/ImportExportPage.js +435 -0
  36. package/dist/pages/InventoryPage.js +28 -28
  37. package/dist/pages/LiveTrackingPage.js +108 -108
  38. package/dist/pages/MarketplacePage.js +44 -44
  39. package/dist/pages/OrderDetailsPage.js +306 -306
  40. package/dist/pages/OrdersListPage.js +27 -27
  41. package/dist/pages/ProductDetailsPage.js +89 -89
  42. package/dist/pages/ProductsPage.js +86 -77
  43. package/dist/pages/RouteDetailsPage.js +282 -285
  44. package/dist/pages/RoutesPage.js +78 -78
  45. package/dist/pages/SettingsPage.js +459 -0
  46. package/dist/pages/TrackingPage.js +41 -41
  47. package/dist/pages/VehicleDetailsPage.js +207 -207
  48. package/dist/pages/VehiclesPage.js +100 -90
  49. package/dist/pages/WarehouseDetailsPage.js +132 -132
  50. package/dist/pages/WarehousesPage.js +97 -88
  51. package/dist/providers/ModuleSettingsProvider.js +74 -0
  52. package/dist/utils/entityImport.js +73 -0
  53. package/dist/utils/formatters.js +53 -26
  54. package/dist/utils/moduleSettings.js +132 -0
  55. package/package.json +4 -2
  56. package/src/generated/tracking-quality-operations.ts +184 -0
  57. package/src/movethewheels/MoveTheWheelsRoot.tsx +22 -3
  58. package/src/movethewheels/MoveTheWheelsRoutes.tsx +13 -0
  59. package/src/movethewheels/hooks/useEntityImport.ts +108 -0
  60. package/src/movethewheels/pages/CreateOrderPage.tsx +38 -6
  61. package/src/movethewheels/pages/CustomersPage.tsx +6 -1
  62. package/src/movethewheels/pages/DriversPage.tsx +6 -0
  63. package/src/movethewheels/pages/ImportExportPage.tsx +483 -0
  64. package/src/movethewheels/pages/ProductsPage.tsx +16 -3
  65. package/src/movethewheels/pages/RouteDetailsPage.tsx +3 -6
  66. package/src/movethewheels/pages/RoutesPage.tsx +2 -2
  67. package/src/movethewheels/pages/SettingsPage.tsx +516 -0
  68. package/src/movethewheels/pages/VehicleDetailsPage.tsx +4 -2
  69. package/src/movethewheels/pages/VehiclesPage.tsx +8 -1
  70. package/src/movethewheels/pages/WarehousesPage.tsx +6 -1
  71. package/src/movethewheels/providers/ModuleSettingsProvider.tsx +133 -0
  72. package/src/movethewheels/utils/entityImport.ts +239 -0
  73. package/src/movethewheels/utils/formatters.ts +69 -10
  74. 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 ee } from "../node_modules/lucide-react/dist/esm/icons/type.js";
10
- import { Upload as c } from "../node_modules/lucide-react/dist/esm/icons/upload.js";
11
- import { useMoveTheWheels as l } from "../providers/MoveTheWheelsProvider.js";
12
- import { mapOrderPriority as u, mapOrderStatus as d } from "../hooks/useOrders.js";
13
- import { useShipmentStatusQuery as f } from "../hooks/useShipmentStatusAuthority.js";
14
- import { useCaptureEpod as p, useEpodPhotoUpload as m, useMyPendingEpodDeliveryJobs as h } from "../hooks/useEpod.js";
15
- import { Button as g, Card as _, CardContent as v, CardHeader as y, CardTitle as b, Input as x, Label as S, Textarea as C } from "../components/ui.js";
16
- import { PageLayout as w } from "../components/PageLayout.js";
17
- import { PriorityBadge as T, StatusBadge as E } from "../components/StatusBadge.js";
18
- import { FormError as D } from "../components/FormError.js";
19
- import { Notice as O, useNotice as k } from "../components/Notice.js";
20
- import { formatAddress as A, formatDate as j } from "../utils/formatters.js";
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: l, isSubmitting: u, error: d, captureFeedback: h } = p(), [w, T] = I(0), E = f(N, { deliveryJobId: e.id }, w), [O, k] = I(!1), j = F(null), z = F(!1), B = F(!0);
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 } = m(), 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 () => {
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), E.loading || E.error || !E.data || w < H || !O || h?.kind === "UNKNOWN") {
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 l({
75
- expectedShipmentId: E.data.myEpodShipmentStatus?.id ?? null,
76
- expectedShipmentStatusRevision: E.data.myEpodShipmentStatus?.statusRevision,
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
- k(!1), ie(w + 1);
91
+ A(!1), ie(_ + 1);
92
92
  } finally {
93
93
  z.current = !1, V(!1);
94
94
  }
95
- }, $ = u || oe || re;
96
- return /* @__PURE__ */ R(_, { children: [/* @__PURE__ */ L(y, { children: /* @__PURE__ */ R(b, {
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(v, {
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: A(e.deliveryAddress) })]
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
- E.data?.myEpodShipmentStatus ? `${E.data.myEpodShipmentStatus.status.toLowerCase().replaceAll("_", " ")} · revision ${E.data.myEpodShipmentStatus.statusRevision}` : E.data ? "No linked shipment" : "Loading current record"
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
- E.error && /* @__PURE__ */ L("p", {
119
+ D.error && /* @__PURE__ */ L("p", {
120
120
  role: "alert",
121
- children: E.error
121
+ children: D.error
122
122
  }),
123
- /* @__PURE__ */ L(g, {
123
+ /* @__PURE__ */ L(v, {
124
124
  variant: "outline",
125
- disabled: E.loading || $,
125
+ disabled: D.loading || $,
126
126
  onClick: () => {
127
- k(!1), T((e) => e + 1);
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: E.loading || !!E.error || $ || w < H || h?.kind === "UNKNOWN",
137
- onChange: (e) => k(e.target.checked)
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
- h && /* @__PURE__ */ L("p", {
141
+ p && /* @__PURE__ */ L("p", {
142
142
  role: "status",
143
- children: h.message
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(S, {
149
+ children: [/* @__PURE__ */ L(w, {
150
150
  htmlFor: "epod-recipient-name",
151
151
  children: "Recipient name"
152
- }), /* @__PURE__ */ L(x, {
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(S, { children: "Signature" }),
162
+ /* @__PURE__ */ L(w, { children: "Signature" }),
163
163
  /* @__PURE__ */ R("div", {
164
164
  className: "flex gap-2",
165
- children: [/* @__PURE__ */ R(g, {
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(g, {
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(ee, { size: 14 }), " Type name instead"]
176
+ children: [/* @__PURE__ */ L(c, { size: 14 }), " Type name instead"]
177
177
  })]
178
178
  }),
179
- K === "drawn" ? /* @__PURE__ */ L(M, { ref: W }) : /* @__PURE__ */ L(x, {
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(S, {
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(c, {
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(S, {
215
+ children: [/* @__PURE__ */ L(w, {
216
216
  htmlFor: "epod-notes",
217
217
  children: "Notes (optional)"
218
- }), /* @__PURE__ */ L(C, {
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(D, { message: Z }),
231
- d && /* @__PURE__ */ L(D, { message: d.message }),
232
- U && /* @__PURE__ */ L(D, { message: U.message }),
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(g, {
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(g, {
241
+ }), /* @__PURE__ */ L(v, {
242
242
  type: "button",
243
243
  onClick: () => void de(),
244
- disabled: $ || E.loading || !!E.error || !E.data || w < H || !O || h?.kind === "UNKNOWN",
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: ee } = l(), [c, f] = I(0), { jobs: p, hasMore: m, isLoading: y, error: b, refetch: x, retireAcknowledgedJob: S } = h({
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: c * 20
258
- }), [C, M] = I(null), { message: N, notify: P } = k();
259
- return /* @__PURE__ */ L(w, {
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(O, { message: N }), C ? /* @__PURE__ */ L(z, {
266
- job: C,
265
+ children: [/* @__PURE__ */ L(A, { message: N }), T ? /* @__PURE__ */ L(z, {
266
+ job: T,
267
267
  onCaptured: (e) => {
268
- S(e), P("Proof of delivery captured — delivery marked complete."), M(null), f(0), x();
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}:${ee}:${C.id}`) : y ? /* @__PURE__ */ L("p", {
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
- }) : b ? /* @__PURE__ */ L(D, { message: b.message }) : p.length > 0 ? /* @__PURE__ */ R("div", {
274
+ }) : S ? /* @__PURE__ */ L(k, { message: S.message }) : h.length > 0 ? /* @__PURE__ */ R("div", {
275
275
  className: "space-y-3",
276
- children: [p.map((e) => /* @__PURE__ */ L(_, { children: /* @__PURE__ */ R(v, {
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(E, {
292
- status: d(e.status),
291
+ children: [/* @__PURE__ */ L(O, {
292
+ status: p(e.status),
293
293
  type: "order",
294
294
  size: "sm"
295
- }), /* @__PURE__ */ L(T, {
296
- priority: u(e.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: A(e.deliveryAddress)
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 ", j(e.scheduledDelivery, "short")]
306
+ children: ["Scheduled ", d(e.scheduledDelivery, "short")]
307
307
  })
308
308
  ]
309
- }), /* @__PURE__ */ L(g, {
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)), (c > 0 || m) && /* @__PURE__ */ R("div", {
315
+ }) }, e.id)), (l > 0 || g) && /* @__PURE__ */ R("div", {
316
316
  className: "flex justify-end gap-2 pt-2",
317
- children: [/* @__PURE__ */ R(g, {
317
+ children: [/* @__PURE__ */ R(v, {
318
318
  type: "button",
319
319
  variant: "outline",
320
320
  size: "sm",
321
- disabled: c === 0 || y,
322
- onClick: () => f((e) => Math.max(0, e - 1)),
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(g, {
324
+ }), /* @__PURE__ */ R(v, {
325
325
  type: "button",
326
326
  variant: "outline",
327
327
  size: "sm",
328
- disabled: !m || y,
329
- onClick: () => f((e) => e + 1),
328
+ disabled: !g || x,
329
+ onClick: () => m((e) => e + 1),
330
330
  children: ["Next ", /* @__PURE__ */ L(t, { size: 16 })]
331
331
  })]
332
332
  })]