@burdenoff/microfe-movethewheels 2026.703.2 → 2026.703.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 (126) hide show
  1. package/dist/{AIAssistantPage-C3cPsWt-.js → AIAssistantPage-3YOnHO9Y.js} +3 -3
  2. package/dist/{AnalyticsPage-Dz6g2MvK.js → AnalyticsPage-CMpI1070.js} +11 -11
  3. package/dist/CreateOrderPage-DRAgGo9i.js +490 -0
  4. package/dist/CustomerDetailsPage-BCeMmOFe.js +615 -0
  5. package/dist/{CustomersPage-2Y05LVyh.js → CustomersPage-CaNBMXmM.js} +64 -53
  6. package/dist/{DashboardPage-BVjQi0EB.js → DashboardPage-DIKlXde3.js} +16 -16
  7. package/dist/DataTable-XvUcTjwi.js +340 -0
  8. package/dist/DocumentsCard-U2lSe-cn.js +169 -0
  9. package/dist/{DriverDetailsPage-CN3WQ0B9.js → DriverDetailsPage-BQrYd_Lp.js} +178 -195
  10. package/dist/{DriversPage-B0Zpx8OQ.js → DriversPage-PYmdFiby.js} +65 -54
  11. package/dist/FinancePage-Cwh9Bw4M.js +136 -0
  12. package/dist/{FleetPage-DqkFi3s3.js → FleetPage-3ZHsB-TN.js} +23 -22
  13. package/dist/{FormError-BlOjnXOq.js → FormError-cuLV2jVD.js} +1 -1
  14. package/dist/{ImportExportPage-DKJRCezl.js → ImportExportPage-C6f7DqhM.js} +50 -70
  15. package/dist/{InventoryPage-DwfgCUQq.js → InventoryPage-DpiqVu1v.js} +9 -9
  16. package/dist/{LiveTrackingPage-DCX-K-LR.js → LiveTrackingPage-FAzzlVnX.js} +9 -9
  17. package/dist/MarketplacePage-Bh_2ns4v.js +426 -0
  18. package/dist/Notice-CSoDYKw9.js +46 -0
  19. package/dist/OrderDetailsPage-zCj0lW0j.js +584 -0
  20. package/dist/{OrdersListPage-BjDlCKJd.js → OrdersListPage-CAMsuUck.js} +166 -89
  21. package/dist/{ProductDetailsPage-C9uOiYLp.js → ProductDetailsPage-wsxAQkA0.js} +12 -12
  22. package/dist/{ProductsPage-C1G9h7Xd.js → ProductsPage-DC5qDLfz.js} +60 -49
  23. package/dist/ReportsPage-BwUJ37eO.js +356 -0
  24. package/dist/RouteDetailsPage-DyMJE9AS.js +583 -0
  25. package/dist/{RoutesPage-DMfoicM1.js → RoutesPage-Dtc669yc.js} +57 -46
  26. package/dist/{SettingsPage-Bn-v0mbQ.js → SettingsPage-CpH9xhQg.js} +5 -27
  27. package/dist/{TrackingPage-W-jtdM3Y.js → TrackingPage-DaNEFG_h.js} +10 -10
  28. package/dist/{VehicleDetailsPage-Bceo5oz3.js → VehicleDetailsPage-DldYNsYV.js} +125 -142
  29. package/dist/{VehiclesPage-VBtOep91.js → VehiclesPage-BFw13iMt.js} +61 -50
  30. package/dist/{WarehouseDetailsPage-L_6sWigM.js → WarehouseDetailsPage-CMG7or6G.js} +17 -17
  31. package/dist/{WarehousesPage-DCbXXXWE.js → WarehousesPage-Wkytnt86.js} +58 -47
  32. package/dist/arrow-right-Q3XQpTPR.js +11 -0
  33. package/dist/arrow-up-xNF1zJUG.js +17 -0
  34. package/dist/chevron-left-B2_r0Elx.js +8 -0
  35. package/dist/{wrench-CANXWxF-.js → fuel-B6_lnKDs.js} +2 -5
  36. package/dist/index.js +163 -174
  37. package/dist/upload-CHZofOqb.js +21 -0
  38. package/dist/{useAnalytics-DS8n0xgg.js → useAnalytics-D7HW2XRb.js} +52 -2
  39. package/dist/{useCustomers-BmTNGxiI.js → useCustomers-BPW4__PR.js} +29 -26
  40. package/dist/{useFleet-DKqXZ16m.js → useFleet-ChBkxAd6.js} +81 -69
  41. package/dist/{useInventory-DkyiVY_A.js → useInventory-CAAVMRp6.js} +83 -38
  42. package/dist/{useOrders-Cfk1GLiq.js → useOrders-B465S2nt.js} +58 -47
  43. package/dist/{useReports-CTqZr-AB.js → useReports-jQ3GpNOm.js} +40 -34
  44. package/dist/{useRoutes-BQWO607N.js → useRoutes-hS3d5-xr.js} +49 -41
  45. package/dist/{useTracking-B-va1kO3.js → useTracking-RjGz9PZG.js} +2 -2
  46. package/dist/user-check-BEKRCi7v.js +20 -0
  47. package/dist/wrench-q_rgJfaP.js +8 -0
  48. package/dist/x-tMeDMcCw.js +11 -0
  49. package/package.json +1 -1
  50. package/src/movethewheels/components/DataTable.tsx +252 -84
  51. package/src/movethewheels/components/DocumentsCard.tsx +102 -0
  52. package/src/movethewheels/components/Notice.tsx +61 -0
  53. package/src/movethewheels/components/index.ts +7 -0
  54. package/src/movethewheels/hooks/index.ts +9 -0
  55. package/src/movethewheels/hooks/useAnalytics.ts +95 -0
  56. package/src/movethewheels/hooks/useCustomers.ts +11 -4
  57. package/src/movethewheels/hooks/useEntityDocuments.ts +132 -0
  58. package/src/movethewheels/hooks/useFleet.ts +26 -7
  59. package/src/movethewheels/hooks/useInventory.ts +70 -7
  60. package/src/movethewheels/hooks/useOrders.ts +32 -2
  61. package/src/movethewheels/hooks/useReports.ts +14 -4
  62. package/src/movethewheels/hooks/useRoutes.ts +20 -3
  63. package/src/movethewheels/pages/AnalyticsPage.tsx +2 -2
  64. package/src/movethewheels/pages/CreateOrderPage.tsx +44 -16
  65. package/src/movethewheels/pages/CustomerDetailsPage.tsx +239 -33
  66. package/src/movethewheels/pages/CustomersPage.tsx +27 -11
  67. package/src/movethewheels/pages/DriverDetailsPage.tsx +16 -30
  68. package/src/movethewheels/pages/DriversPage.tsx +26 -9
  69. package/src/movethewheels/pages/FinancePage.tsx +67 -84
  70. package/src/movethewheels/pages/InventoryPage.tsx +1 -1
  71. package/src/movethewheels/pages/MarketplacePage.tsx +265 -50
  72. package/src/movethewheels/pages/OrderDetailsPage.tsx +214 -10
  73. package/src/movethewheels/pages/OrdersListPage.tsx +77 -14
  74. package/src/movethewheels/pages/ProductsPage.tsx +27 -7
  75. package/src/movethewheels/pages/ReportsPage.tsx +65 -4
  76. package/src/movethewheels/pages/RouteDetailsPage.tsx +74 -13
  77. package/src/movethewheels/pages/RoutesPage.tsx +22 -6
  78. package/src/movethewheels/pages/SettingsPage.tsx +3 -19
  79. package/src/movethewheels/pages/VehicleDetailsPage.tsx +3 -33
  80. package/src/movethewheels/pages/VehiclesPage.tsx +26 -5
  81. package/src/movethewheels/pages/WarehousesPage.tsx +22 -17
  82. package/src/movethewheels/types/index.ts +8 -0
  83. package/src/movethewheels/utils/download.ts +62 -0
  84. package/dist/CreateOrderPage-C5iwnjp4.js +0 -479
  85. package/dist/CustomerDetailsPage-B6nwFyLO.js +0 -406
  86. package/dist/DataTable-DmciIKKM.js +0 -249
  87. package/dist/FinancePage-DEDykSOP.js +0 -158
  88. package/dist/MarketplacePage-CIQ97_zp.js +0 -247
  89. package/dist/OrderDetailsPage-DYiZ-9UK.js +0 -429
  90. package/dist/ReportsPage-Zp53q3_8.js +0 -284
  91. package/dist/RouteDetailsPage-DUStXSf9.js +0 -531
  92. /package/dist/{MetricCard-BY0QrMD4.js → MetricCard-CVBVpu7o.js} +0 -0
  93. /package/dist/{StatusBadge-BZurYHMy.js → StatusBadge-C87mDpDP.js} +0 -0
  94. /package/dist/{box-D9Pal4HM.js → box-Eu05PXDh.js} +0 -0
  95. /package/dist/{chart-column-BFIJysDR.js → chart-column-ouzgxIv_.js} +0 -0
  96. /package/dist/{chevron-right-EMIIyyJ1.js → chevron-right-eV4LjaSi.js} +0 -0
  97. /package/dist/{circle-alert-iY24lSlp.js → circle-alert-Bzh2DBSF.js} +0 -0
  98. /package/dist/{circle-check-big-w0TrLKMF.js → circle-check-big-CGMSpQmD.js} +0 -0
  99. /package/dist/{clock-DJZtdl8u.js → clock-Bl3ptexL.js} +0 -0
  100. /package/dist/{dollar-sign-CgKQRz_e.js → dollar-sign-CAVU95SO.js} +0 -0
  101. /package/dist/{download-DRXxoiQR.js → download-C5NbvVDc.js} +0 -0
  102. /package/dist/{file-text-DWWY6_f5.js → file-text-D-1uvLZG.js} +0 -0
  103. /package/dist/{filter-DloLC2eE.js → filter-DUfUg6BO.js} +0 -0
  104. /package/dist/{formatters-CF2S2l1m.js → formatters-BQr-aR5W.js} +0 -0
  105. /package/dist/{map-CkJaULb2.js → map-C-M-FQLR.js} +0 -0
  106. /package/dist/{map-pin-BGiCvyCs.js → map-pin-Dznl5l40.js} +0 -0
  107. /package/dist/{navigation-D36prnAn.js → navigation-BJSJl-VG.js} +0 -0
  108. /package/dist/{package-BChUzpJS.js → package-CcRttV2N.js} +0 -0
  109. /package/dist/{phone-Ac9s3mo_.js → phone-DVSZHt_j.js} +0 -0
  110. /package/dist/{plus-Z76q-FZm.js → plus-C_XZDwBz.js} +0 -0
  111. /package/dist/{refresh-cw-DKt6f5T6.js → refresh-cw-CfgN67l3.js} +0 -0
  112. /package/dist/{save-CojywNhG.js → save-DJE8Fpdv.js} +0 -0
  113. /package/dist/{search-CDGefqb3.js → search-D_VyGcZT.js} +0 -0
  114. /package/dist/{square-pen-CopE9GmB.js → square-pen-D-6JYrVQ.js} +0 -0
  115. /package/dist/{star-nHlLjDKR.js → star-BpRlUZuU.js} +0 -0
  116. /package/dist/{store-BR9Voi5E.js → store-B-8HMuyZ.js} +0 -0
  117. /package/dist/{trash-2-BKhar6Hs.js → trash-2-8vmv-XV_.js} +0 -0
  118. /package/dist/{trending-up-Dohgd4t_.js → trending-up-Dz6PqPRj.js} +0 -0
  119. /package/dist/{triangle-alert-i-XQL9Rd.js → triangle-alert-D7Y3J_4z.js} +0 -0
  120. /package/dist/{truck-C0v_hbLR.js → truck-D-y2IDzv.js} +0 -0
  121. /package/dist/{useAssistant-D4v3oxD3.js → useAssistant-DVW4QgQb.js} +0 -0
  122. /package/dist/{useImportExport-DHr-SWSw.js → useImportExport-DrPDHEDK.js} +0 -0
  123. /package/dist/{useSettings-CkDH_-gM.js → useSettings-BB8X2RLh.js} +0 -0
  124. /package/dist/{user-jyFU3lXk.js → user-DzfTn4dE.js} +0 -0
  125. /package/dist/{users-DZ-ilS6B.js → users-CCrq-w0C.js} +0 -0
  126. /package/dist/{warehouse-6m5kXMLu.js → warehouse-CaqfmMKh.js} +0 -0
@@ -1,429 +0,0 @@
1
- import { G as e, H as t, K as n, U as r, W as i, ct as a, d as o, f as s, g as c, h as l, i as u, l as d, lt as f, n as p, ot as m, q as h, r as g, u as _, z as v } from "./PageLayout-D4LDHJJq.js";
2
- import { t as y } from "./arrow-left-n48Y-Wis.js";
3
- import { t as b } from "./circle-check-big-w0TrLKMF.js";
4
- import { t as x } from "./clock-DJZtdl8u.js";
5
- import { t as S } from "./dollar-sign-CgKQRz_e.js";
6
- import { t as C } from "./file-text-DWWY6_f5.js";
7
- import { n as w, t as T } from "./phone-Ac9s3mo_.js";
8
- import { t as E } from "./map-pin-BGiCvyCs.js";
9
- import { t as D } from "./package-BChUzpJS.js";
10
- import { t as O } from "./square-pen-CopE9GmB.js";
11
- import { t as k } from "./truck-C0v_hbLR.js";
12
- import { t as A } from "./user-jyFU3lXk.js";
13
- import { t as j } from "./useOrders-Cfk1GLiq.js";
14
- import { i as M, n as N, r as P, t as F } from "./StatusBadge-BZurYHMy.js";
15
- import { n as I, r as L, t as R } from "./formatters-CF2S2l1m.js";
16
- import { useParams as z } from "react-router-dom";
17
- import { jsx as B, jsxs as V } from "react/jsx-runtime";
18
- import { EmphasisPanel as H, NextSteps as U, PagePurpose as W } from "@burdenoff/fe-libs/ui";
19
- //#region node_modules/lucide-react/dist/esm/icons/printer.js
20
- var G = f("Printer", [
21
- ["path", {
22
- d: "M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",
23
- key: "143wyd"
24
- }],
25
- ["path", {
26
- d: "M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",
27
- key: "1itne7"
28
- }],
29
- ["rect", {
30
- x: "6",
31
- y: "14",
32
- width: "12",
33
- height: "8",
34
- rx: "1",
35
- key: "1ue0tg"
36
- }]
37
- ]);
38
- //#endregion
39
- //#region src/movethewheels/pages/OrderDetailsPage.tsx
40
- function K() {
41
- let { orderId: f } = z(), { basePath: K, navigate: q } = m(), { order: J, isLoading: Y, error: X, refetch: Z } = j(f), Q = (e) => {
42
- q && q(a(K, e));
43
- };
44
- return Y ? /* @__PURE__ */ B(g, { message: "Loading order details..." }) : X || !J ? /* @__PURE__ */ B(p, {
45
- title: "Order not found",
46
- message: "The order you're looking for doesn't exist or has been removed.",
47
- onRetry: Z
48
- }) : /* @__PURE__ */ V(u, {
49
- title: J.orderNumber,
50
- subtitle: `Created ${L(J.createdAt, "full")}`,
51
- icon: /* @__PURE__ */ B(D, { size: 24 }),
52
- headerActions: /* @__PURE__ */ V("div", {
53
- className: "flex gap-2",
54
- children: [
55
- /* @__PURE__ */ V(_, {
56
- variant: "outline",
57
- onClick: () => {
58
- q && q(a(K, "orders"));
59
- },
60
- children: [/* @__PURE__ */ B(y, { size: 16 }), "Back"]
61
- }),
62
- /* @__PURE__ */ V(_, {
63
- variant: "outline",
64
- children: [/* @__PURE__ */ B(G, { size: 16 }), "Print"]
65
- }),
66
- /* @__PURE__ */ V(_, {
67
- onClick: () => Q(`orders/${f}/edit`),
68
- children: [/* @__PURE__ */ B(O, { size: 16 }), "Edit"]
69
- })
70
- ]
71
- }),
72
- headerContent: /* @__PURE__ */ V("div", {
73
- className: "flex flex-wrap gap-2",
74
- children: [
75
- /* @__PURE__ */ B(P, {
76
- status: J.status,
77
- type: "order"
78
- }),
79
- /* @__PURE__ */ B(N, { priority: J.priority }),
80
- /* @__PURE__ */ B(M, { type: J.orderType }),
81
- /* @__PURE__ */ B(F, { status: J.pricing.paymentStatus })
82
- ]
83
- }),
84
- children: [
85
- /* @__PURE__ */ B(W, {
86
- icon: /* @__PURE__ */ B(D, { size: 18 }),
87
- children: "Everything about this one delivery in a single place — who it's for, where it's going, what's inside, the running cost and the full status history. Use this page to review the order, hand it to a driver, print the docket, or jump into live tracking."
88
- }),
89
- /* @__PURE__ */ B(U, {
90
- storageKey: "movethewheels-order-details",
91
- steps: [
92
- {
93
- id: "track",
94
- label: "Track this order live",
95
- description: "See where the shipment is right now on the map.",
96
- icon: /* @__PURE__ */ B(E, { size: 16 }),
97
- onClick: () => Q(`tracking?order=${J.id}`)
98
- },
99
- {
100
- id: "edit",
101
- label: "Edit order details",
102
- description: "Update items, addresses or instructions before dispatch.",
103
- icon: /* @__PURE__ */ B(O, { size: 16 }),
104
- onClick: () => Q(`orders/${f}/edit`)
105
- },
106
- {
107
- id: "print",
108
- label: "Print the delivery docket",
109
- description: "Generate a printable copy for the driver or warehouse.",
110
- icon: /* @__PURE__ */ B(G, { size: 16 }),
111
- onClick: () => window.print()
112
- }
113
- ]
114
- }),
115
- /* @__PURE__ */ V("div", {
116
- className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
117
- children: [/* @__PURE__ */ V("div", {
118
- className: "lg:col-span-2 space-y-6",
119
- children: [
120
- /* @__PURE__ */ V(o, { children: [/* @__PURE__ */ B(l, { children: /* @__PURE__ */ V(c, {
121
- className: "flex items-center gap-2",
122
- children: [/* @__PURE__ */ B(A, { size: 18 }), "Customer Information"]
123
- }) }), /* @__PURE__ */ B(s, { children: /* @__PURE__ */ V("div", {
124
- className: "grid grid-cols-1 md:grid-cols-2 gap-6",
125
- children: [/* @__PURE__ */ V("div", { children: [
126
- /* @__PURE__ */ B("h4", {
127
- className: "font-medium mb-2",
128
- children: J.customerInfo.name
129
- }),
130
- J.customerInfo.company && /* @__PURE__ */ B("p", {
131
- className: "text-sm text-text-secondary mb-2",
132
- children: J.customerInfo.company
133
- }),
134
- /* @__PURE__ */ V("div", {
135
- className: "space-y-1 text-sm",
136
- children: [/* @__PURE__ */ V("p", {
137
- className: "flex items-center gap-2",
138
- children: [/* @__PURE__ */ B(w, {
139
- size: 14,
140
- className: "text-text-secondary"
141
- }), J.customerInfo.email]
142
- }), /* @__PURE__ */ V("p", {
143
- className: "flex items-center gap-2",
144
- children: [/* @__PURE__ */ B(T, {
145
- size: 14,
146
- className: "text-text-secondary"
147
- }), J.customerInfo.phone]
148
- })]
149
- })
150
- ] }), /* @__PURE__ */ V("div", { children: [J.customerInfo.preferredDeliveryTime && /* @__PURE__ */ V("div", {
151
- className: "mb-2",
152
- children: [/* @__PURE__ */ B("p", {
153
- className: "text-sm text-text-secondary",
154
- children: "Preferred Delivery Time"
155
- }), /* @__PURE__ */ B("p", {
156
- className: "text-sm",
157
- children: J.customerInfo.preferredDeliveryTime
158
- })]
159
- }), J.customerInfo.deliveryInstructions && /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
160
- className: "text-sm text-text-secondary",
161
- children: "Delivery Instructions"
162
- }), /* @__PURE__ */ B("p", {
163
- className: "text-sm",
164
- children: J.customerInfo.deliveryInstructions
165
- })] })] })]
166
- }) })] }),
167
- /* @__PURE__ */ V(o, { children: [/* @__PURE__ */ B(l, { children: /* @__PURE__ */ V(c, {
168
- className: "flex items-center gap-2",
169
- children: [/* @__PURE__ */ B(E, { size: 18 }), "Addresses"]
170
- }) }), /* @__PURE__ */ B(s, { children: /* @__PURE__ */ V("div", {
171
- className: "grid grid-cols-1 md:grid-cols-2 gap-6",
172
- children: [/* @__PURE__ */ V("div", { children: [
173
- /* @__PURE__ */ B("h4", {
174
- className: "font-medium mb-2 flex items-center gap-2",
175
- children: /* @__PURE__ */ B(d, {
176
- variant: "outline",
177
- children: "Pickup"
178
- })
179
- }),
180
- /* @__PURE__ */ B("p", {
181
- className: "text-sm",
182
- children: R(J.pickupAddress)
183
- }),
184
- J.scheduledPickup && /* @__PURE__ */ V("p", {
185
- className: "text-sm text-text-secondary mt-2",
186
- children: ["Scheduled: ", L(J.scheduledPickup, "full")]
187
- }),
188
- J.actualPickup && /* @__PURE__ */ V("p", {
189
- className: "text-sm text-status-success-text mt-1",
190
- children: [
191
- /* @__PURE__ */ B(b, {
192
- size: 14,
193
- className: "inline mr-1"
194
- }),
195
- "Picked up: ",
196
- L(J.actualPickup, "full")
197
- ]
198
- })
199
- ] }), /* @__PURE__ */ V("div", { children: [
200
- /* @__PURE__ */ B("h4", {
201
- className: "font-medium mb-2 flex items-center gap-2",
202
- children: /* @__PURE__ */ B(d, {
203
- variant: "outline",
204
- children: "Delivery"
205
- })
206
- }),
207
- /* @__PURE__ */ B("p", {
208
- className: "text-sm",
209
- children: R(J.deliveryAddress)
210
- }),
211
- J.scheduledDelivery && /* @__PURE__ */ V("p", {
212
- className: "text-sm text-text-secondary mt-2",
213
- children: ["Scheduled: ", L(J.scheduledDelivery, "full")]
214
- }),
215
- J.actualDelivery && /* @__PURE__ */ V("p", {
216
- className: "text-sm text-status-success-text mt-1",
217
- children: [
218
- /* @__PURE__ */ B(b, {
219
- size: 14,
220
- className: "inline mr-1"
221
- }),
222
- "Delivered: ",
223
- L(J.actualDelivery, "full")
224
- ]
225
- })
226
- ] })]
227
- }) })] }),
228
- /* @__PURE__ */ V(o, { children: [/* @__PURE__ */ B(l, { children: /* @__PURE__ */ V(c, {
229
- className: "flex items-center gap-2",
230
- children: [
231
- /* @__PURE__ */ B(D, { size: 18 }),
232
- "Order Items (",
233
- J.items.length,
234
- ")"
235
- ]
236
- }) }), /* @__PURE__ */ B(s, {
237
- className: "p-0",
238
- children: /* @__PURE__ */ V(t, { children: [/* @__PURE__ */ B(n, { children: /* @__PURE__ */ V(h, { children: [
239
- /* @__PURE__ */ B(e, { children: "Item" }),
240
- /* @__PURE__ */ B(e, { children: "SKU" }),
241
- /* @__PURE__ */ B(e, {
242
- className: "text-center",
243
- children: "Qty"
244
- }),
245
- /* @__PURE__ */ B(e, {
246
- className: "text-right",
247
- children: "Unit Price"
248
- }),
249
- /* @__PURE__ */ B(e, {
250
- className: "text-right",
251
- children: "Total"
252
- })
253
- ] }) }), /* @__PURE__ */ B(r, { children: J.items.map((e) => /* @__PURE__ */ V(h, { children: [
254
- /* @__PURE__ */ B(i, { children: /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
255
- className: "font-medium",
256
- children: e.name
257
- }), e.description && /* @__PURE__ */ B("p", {
258
- className: "text-sm text-text-secondary",
259
- children: e.description
260
- })] }) }),
261
- /* @__PURE__ */ B(i, {
262
- className: "font-mono text-sm",
263
- children: e.sku
264
- }),
265
- /* @__PURE__ */ B(i, {
266
- className: "text-center",
267
- children: e.quantity
268
- }),
269
- /* @__PURE__ */ B(i, {
270
- className: "text-right",
271
- children: I(e.value)
272
- }),
273
- /* @__PURE__ */ B(i, {
274
- className: "text-right font-medium",
275
- children: I(e.value * e.quantity)
276
- })
277
- ] }, e.id)) })] })
278
- })] }),
279
- /* @__PURE__ */ V(o, { children: [/* @__PURE__ */ B(l, { children: /* @__PURE__ */ V(c, {
280
- className: "flex items-center gap-2",
281
- children: [/* @__PURE__ */ B(x, { size: 18 }), "Order Timeline"]
282
- }) }), /* @__PURE__ */ B(s, { children: /* @__PURE__ */ B("div", {
283
- className: "relative",
284
- children: J.timeline.map((e, t) => /* @__PURE__ */ V("div", {
285
- className: "flex gap-4 pb-6 last:pb-0",
286
- children: [/* @__PURE__ */ V("div", {
287
- className: "relative",
288
- children: [/* @__PURE__ */ B("div", { className: "w-3 h-3 rounded-full bg-action-primary-bg mt-1.5" }), t < J.timeline.length - 1 && /* @__PURE__ */ B("div", { className: "absolute top-4 left-1.5 w-px h-full -ml-px bg-border" })]
289
- }), /* @__PURE__ */ V("div", {
290
- className: "flex-1",
291
- children: [
292
- /* @__PURE__ */ V("div", {
293
- className: "flex items-center gap-2 mb-1",
294
- children: [/* @__PURE__ */ B(P, {
295
- status: e.status,
296
- type: "order",
297
- size: "sm"
298
- }), /* @__PURE__ */ B("span", {
299
- className: "text-sm text-text-secondary",
300
- children: L(e.timestamp, "full")
301
- })]
302
- }),
303
- e.notes && /* @__PURE__ */ B("p", {
304
- className: "text-sm",
305
- children: e.notes
306
- }),
307
- /* @__PURE__ */ V("p", {
308
- className: "text-xs text-text-secondary",
309
- children: ["by ", e.performedBy]
310
- })
311
- ]
312
- })]
313
- }, t))
314
- }) })] })
315
- ]
316
- }), /* @__PURE__ */ V("div", {
317
- className: "space-y-6",
318
- children: [
319
- /* @__PURE__ */ V(H, { children: [/* @__PURE__ */ V("h2", {
320
- className: "flex items-center gap-2 text-base font-semibold text-text-primary mb-4",
321
- children: [/* @__PURE__ */ B(S, { size: 18 }), "Order Summary"]
322
- }), /* @__PURE__ */ V("div", {
323
- className: "space-y-3",
324
- children: [
325
- /* @__PURE__ */ V("div", {
326
- className: "flex justify-between text-sm",
327
- children: [/* @__PURE__ */ B("span", {
328
- className: "text-text-secondary",
329
- children: "Subtotal"
330
- }), /* @__PURE__ */ B("span", { children: I(J.pricing.subtotal) })]
331
- }),
332
- /* @__PURE__ */ V("div", {
333
- className: "flex justify-between text-sm",
334
- children: [/* @__PURE__ */ B("span", {
335
- className: "text-text-secondary",
336
- children: "Delivery"
337
- }), /* @__PURE__ */ B("span", { children: I(J.pricing.fees.delivery) })]
338
- }),
339
- /* @__PURE__ */ V("div", {
340
- className: "flex justify-between text-sm",
341
- children: [/* @__PURE__ */ B("span", {
342
- className: "text-text-secondary",
343
- children: "Handling"
344
- }), /* @__PURE__ */ B("span", { children: I(J.pricing.fees.handling) })]
345
- }),
346
- J.pricing.fees.insurance && /* @__PURE__ */ V("div", {
347
- className: "flex justify-between text-sm",
348
- children: [/* @__PURE__ */ B("span", {
349
- className: "text-text-secondary",
350
- children: "Insurance"
351
- }), /* @__PURE__ */ B("span", { children: I(J.pricing.fees.insurance) })]
352
- }),
353
- /* @__PURE__ */ V("div", {
354
- className: "flex justify-between text-sm",
355
- children: [/* @__PURE__ */ B("span", {
356
- className: "text-text-secondary",
357
- children: "Taxes"
358
- }), /* @__PURE__ */ B("span", { children: I(J.pricing.taxes) })]
359
- }),
360
- /* @__PURE__ */ B(v, {}),
361
- /* @__PURE__ */ V("div", {
362
- className: "flex justify-between font-medium",
363
- children: [/* @__PURE__ */ B("span", { children: "Total" }), /* @__PURE__ */ B("span", {
364
- className: "text-lg",
365
- children: I(J.pricing.total)
366
- })]
367
- }),
368
- /* @__PURE__ */ V("div", {
369
- className: "pt-2",
370
- children: [/* @__PURE__ */ B("p", {
371
- className: "text-sm text-text-secondary",
372
- children: "Payment Method"
373
- }), /* @__PURE__ */ B("p", {
374
- className: "text-sm capitalize",
375
- children: J.pricing.paymentMethod.replace("_", " ")
376
- })]
377
- })
378
- ]
379
- })] }),
380
- /* @__PURE__ */ V(o, { children: [/* @__PURE__ */ B(l, { children: /* @__PURE__ */ V(c, {
381
- className: "flex items-center gap-2",
382
- children: [/* @__PURE__ */ B(k, { size: 18 }), "Assignment"]
383
- }) }), /* @__PURE__ */ B(s, { children: /* @__PURE__ */ V("div", {
384
- className: "space-y-4",
385
- children: [
386
- /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
387
- className: "text-sm text-text-secondary",
388
- children: "Driver"
389
- }), /* @__PURE__ */ B("p", {
390
- className: "text-sm",
391
- children: J.driverId || "Not assigned"
392
- })] }),
393
- /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
394
- className: "text-sm text-text-secondary",
395
- children: "Vehicle"
396
- }), /* @__PURE__ */ B("p", {
397
- className: "text-sm",
398
- children: J.vehicleId || "Not assigned"
399
- })] }),
400
- /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
401
- className: "text-sm text-text-secondary",
402
- children: "Tracking Number"
403
- }), /* @__PURE__ */ B("p", {
404
- className: "text-sm font-mono",
405
- children: J.trackingNumber
406
- })] }),
407
- /* @__PURE__ */ V(_, {
408
- variant: "outline",
409
- className: "w-full",
410
- onClick: () => Q(`tracking?order=${J.id}`),
411
- children: [/* @__PURE__ */ B(E, { size: 16 }), "Track Order"]
412
- })
413
- ]
414
- }) })] }),
415
- J.specialInstructions && /* @__PURE__ */ V(o, { children: [/* @__PURE__ */ B(l, { children: /* @__PURE__ */ V(c, {
416
- className: "flex items-center gap-2",
417
- children: [/* @__PURE__ */ B(C, { size: 18 }), "Special Instructions"]
418
- }) }), /* @__PURE__ */ B(s, { children: /* @__PURE__ */ B("p", {
419
- className: "text-sm",
420
- children: J.specialInstructions
421
- }) })] })
422
- ]
423
- })]
424
- })
425
- ]
426
- });
427
- }
428
- //#endregion
429
- export { K as default };