@burdenoff/microfe-movethewheels 2026.624.1 → 2026.626.1

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 (119) hide show
  1. package/dist/{AIAssistantPage-BrHX2lQn.js → AIAssistantPage-AvsMbunM.js} +39 -33
  2. package/dist/{AnalyticsPage-DI6Wcaw5.js → AnalyticsPage-CCLfHgQZ.js} +44 -33
  3. package/dist/CreateOrderPage-CjlnEtk3.js +510 -0
  4. package/dist/CustomerDetailsPage-I6cdDHUi.js +265 -0
  5. package/dist/CustomersPage-CGGfD4ki.js +163 -0
  6. package/dist/{DashboardPage-3ZOnwg1a.js → DashboardPage-D2HRqwg9.js} +122 -111
  7. package/dist/DataTable-CD9ZhpLB.js +249 -0
  8. package/dist/DriverDetailsPage-rg_pGNuP.js +330 -0
  9. package/dist/DriversPage-DKiynISH.js +167 -0
  10. package/dist/FinancePage-Vg8WPs38.js +158 -0
  11. package/dist/{FleetPage-CPS7r4J3.js → FleetPage-DddXt8r8.js} +124 -85
  12. package/dist/ImportExportPage-BW6qO3kc.js +248 -0
  13. package/dist/InventoryPage-rMGuaJN-.js +222 -0
  14. package/dist/LiveTrackingPage-DQ1q4Id3.js +375 -0
  15. package/dist/MarketplacePage-DKrXAv62.js +219 -0
  16. package/dist/MetricCard-B7yMyvMX.js +146 -0
  17. package/dist/OrderDetailsPage-CFASgsYX.js +431 -0
  18. package/dist/OrdersListPage-BHeT8S5o.js +309 -0
  19. package/dist/{PageLayout-xDTiBTDS.js → PageLayout-D3N8MCTm.js} +213 -195
  20. package/dist/ProductDetailsPage-CFGcbaHo.js +195 -0
  21. package/dist/ProductsPage--xEpbQ8A.js +171 -0
  22. package/dist/{ReportsPage-B8OyWGzl.js → ReportsPage-Bb7_90rK.js} +57 -49
  23. package/dist/RouteDetailsPage-CVtDVb1N.js +282 -0
  24. package/dist/RoutesPage-s57PtgcQ.js +163 -0
  25. package/dist/SettingsPage-BYNCBOpN.js +298 -0
  26. package/dist/{StatusBadge-C--7NhoW.js → StatusBadge-CijYQXtb.js} +5 -2
  27. package/dist/{TrackingPage-BldUm_g7.js → TrackingPage-CcRc_dva.js} +88 -83
  28. package/dist/VehicleDetailsPage-3YDMPsPs.js +220 -0
  29. package/dist/VehiclesPage-UlxPWP9K.js +167 -0
  30. package/dist/WarehouseDetailsPage-Db7KeN-d.js +238 -0
  31. package/dist/WarehousesPage-CuTO-OPp.js +164 -0
  32. package/dist/{arrow-left-Bk5GsGNk.js → arrow-left-CBpZKkpq.js} +1 -1
  33. package/dist/{box-BAMv2-7M.js → box-CAaiElsb.js} +1 -1
  34. package/dist/{chart-column-CAfkf4o6.js → chart-column-D1Ym15-S.js} +1 -1
  35. package/dist/{chevron-right-Czrt_Qew.js → chevron-right-BIFGi0UA.js} +1 -1
  36. package/dist/{circle-alert-CEuV9Pij.js → circle-alert-DjmNo5_L.js} +1 -1
  37. package/dist/{circle-check-big-Cx8aO6B-.js → circle-check-big-CjuPVo3_.js} +1 -1
  38. package/dist/{clock-Be95bq7_.js → clock-BjkdnddD.js} +1 -1
  39. package/dist/{dollar-sign-kJqItPli.js → dollar-sign-IB4O0wuQ.js} +1 -1
  40. package/dist/{download-caab0D3V.js → download-Dpa9vqoG.js} +1 -1
  41. package/dist/{file-text-b1qhrJn1.js → file-text-C8Uioy11.js} +1 -1
  42. package/dist/{filter-BWmLTZB-.js → filter-Da5OZaHI.js} +1 -1
  43. package/dist/index.js +16 -16
  44. package/dist/{map-CS2aFgyO.js → map-_Per4sT9.js} +1 -1
  45. package/dist/{map-pin-96FeqL7H.js → map-pin-BSaf5IDL.js} +1 -1
  46. package/dist/{navigation-i6UXEjTC.js → navigation-DaTbrhw2.js} +1 -1
  47. package/dist/{package-KhSi3xaT.js → package-BE7U0wQE.js} +1 -1
  48. package/dist/{phone-B-h3tbsr.js → phone-DV4StZiA.js} +1 -1
  49. package/dist/{plus-D2BYAzMn.js → plus-Dl1rLeJR.js} +1 -1
  50. package/dist/{refresh-cw-D5Sy01s-.js → refresh-cw-CWfERAit.js} +1 -1
  51. package/dist/{route-CBDXuwH9.js → route-Dp9JiN_E.js} +1 -1
  52. package/dist/{save-CMc7h-Vi.js → save-XH8vydOn.js} +1 -1
  53. package/dist/{search-DVrUQbOg.js → search-OxoIiL_C.js} +1 -1
  54. package/dist/{settings-BwzIRYv3.js → settings-3Rw5NwFF.js} +1 -1
  55. package/dist/{square-pen-DmW36Bau.js → square-pen-hLIbFQFV.js} +1 -1
  56. package/dist/{star-Cv2MzxZL.js → star-YsVV3MNQ.js} +1 -1
  57. package/dist/{store-CLH957vl.js → store-RCBl7HB-.js} +1 -1
  58. package/dist/{trending-up-l8M0BO_w.js → trending-up-C-85AwGT.js} +1 -1
  59. package/dist/{triangle-alert-BI45s6bH.js → triangle-alert-BOhfGgmh.js} +1 -1
  60. package/dist/{truck-DX3lNQkz.js → truck-CtDjNFbi.js} +1 -1
  61. package/dist/{user-D8EY1uvt.js → user-Dz5TJZFs.js} +1 -1
  62. package/dist/{users-CfG0J8wP.js → users-g2N0eL-Z.js} +1 -1
  63. package/dist/{warehouse-Dt_bAr82.js → warehouse-D3WWDeTX.js} +1 -1
  64. package/dist/{wrench-C50eI_Iy.js → wrench-CmxY1n4I.js} +1 -1
  65. package/package.json +2 -2
  66. package/src/movethewheels/components/DataTable.tsx +41 -6
  67. package/src/movethewheels/components/MetricCard.tsx +51 -20
  68. package/src/movethewheels/components/PageLayout.tsx +60 -5
  69. package/src/movethewheels/components/StatusBadge.tsx +2 -1
  70. package/src/movethewheels/pages/AIAssistantPage.tsx +11 -3
  71. package/src/movethewheels/pages/AnalyticsPage.tsx +31 -25
  72. package/src/movethewheels/pages/CreateOrderPage.tsx +56 -17
  73. package/src/movethewheels/pages/CustomerDetailsPage.tsx +63 -38
  74. package/src/movethewheels/pages/CustomersPage.tsx +51 -12
  75. package/src/movethewheels/pages/DashboardPage.tsx +62 -48
  76. package/src/movethewheels/pages/DriverDetailsPage.tsx +57 -26
  77. package/src/movethewheels/pages/DriversPage.tsx +45 -12
  78. package/src/movethewheels/pages/FinancePage.tsx +45 -41
  79. package/src/movethewheels/pages/FleetPage.tsx +82 -34
  80. package/src/movethewheels/pages/ImportExportPage.tsx +46 -29
  81. package/src/movethewheels/pages/InventoryPage.tsx +37 -33
  82. package/src/movethewheels/pages/LiveTrackingPage.tsx +58 -20
  83. package/src/movethewheels/pages/MarketplacePage.tsx +37 -3
  84. package/src/movethewheels/pages/OrderDetailsPage.tsx +74 -46
  85. package/src/movethewheels/pages/OrdersListPage.tsx +81 -14
  86. package/src/movethewheels/pages/ProductDetailsPage.tsx +36 -11
  87. package/src/movethewheels/pages/ProductsPage.tsx +41 -12
  88. package/src/movethewheels/pages/ReportsPage.tsx +23 -19
  89. package/src/movethewheels/pages/RouteDetailsPage.tsx +71 -31
  90. package/src/movethewheels/pages/RoutesPage.tsx +48 -9
  91. package/src/movethewheels/pages/SettingsPage.tsx +68 -26
  92. package/src/movethewheels/pages/TrackingPage.tsx +52 -49
  93. package/src/movethewheels/pages/VehicleDetailsPage.tsx +49 -24
  94. package/src/movethewheels/pages/VehiclesPage.tsx +41 -15
  95. package/src/movethewheels/pages/WarehouseDetailsPage.tsx +55 -30
  96. package/src/movethewheels/pages/WarehousesPage.tsx +46 -9
  97. package/dist/CreateOrderPage-DfkSi6JF.js +0 -471
  98. package/dist/CustomerDetailsPage-DzAIu_tH.js +0 -239
  99. package/dist/CustomersPage-d21ixOYa.js +0 -119
  100. package/dist/DataTable-CZGz3SJu.js +0 -239
  101. package/dist/DriverDetailsPage-YuZSlPSV.js +0 -297
  102. package/dist/DriversPage-BOhqEBTv.js +0 -127
  103. package/dist/FinancePage-CnjUNXOb.js +0 -154
  104. package/dist/ImportExportPage-zNjs7xsV.js +0 -232
  105. package/dist/InventoryPage-C9g5d3SW.js +0 -223
  106. package/dist/LiveTrackingPage-DoBvtdBG.js +0 -332
  107. package/dist/MarketplacePage-BEj5hcBF.js +0 -192
  108. package/dist/MetricCard-DeHVeVwl.js +0 -135
  109. package/dist/OrderDetailsPage-D-9lDZYU.js +0 -398
  110. package/dist/OrdersListPage-CJzHbgY3.js +0 -257
  111. package/dist/ProductDetailsPage-3rKtzXpy.js +0 -168
  112. package/dist/ProductsPage-B0P_wjBJ.js +0 -131
  113. package/dist/RouteDetailsPage-DGjKTUMj.js +0 -240
  114. package/dist/RoutesPage-CpopY8xN.js +0 -116
  115. package/dist/SettingsPage-BvXSa3gi.js +0 -247
  116. package/dist/VehicleDetailsPage-Dqv--MVW.js +0 -194
  117. package/dist/VehiclesPage-CCBHRDHu.js +0 -127
  118. package/dist/WarehouseDetailsPage-ZObC_c7W.js +0 -215
  119. package/dist/WarehousesPage-CpgZEVW9.js +0 -121
@@ -0,0 +1,146 @@
1
+ import { rt as e } from "./PageLayout-D3N8MCTm.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { GlassCard as r } from "@burdenoff/fe-libs/ui";
4
+ //#region src/movethewheels/components/MetricCard.tsx
5
+ var i = {
6
+ sm: {
7
+ card: "p-3",
8
+ value: "text-xl font-bold",
9
+ label: "text-xs",
10
+ icon: "w-8 h-8"
11
+ },
12
+ md: {
13
+ card: "p-4",
14
+ value: "text-2xl font-bold",
15
+ label: "text-sm",
16
+ icon: "w-10 h-10"
17
+ },
18
+ lg: {
19
+ card: "p-6",
20
+ value: "text-3xl font-bold",
21
+ label: "text-base",
22
+ icon: "w-12 h-12"
23
+ }
24
+ };
25
+ function a({ value: a, label: o, icon: s, change: c, changeType: l = "neutral", subtitle: u, trend: d, size: f = "md", onClick: p, className: m, treatment: h = "metric", glow: g = !1 }) {
26
+ let _ = i[f], v = {
27
+ positive: "text-status-success-text",
28
+ negative: "text-status-error-text",
29
+ neutral: "text-text-secondary"
30
+ }, y = {
31
+ up: /* @__PURE__ */ t("svg", {
32
+ className: "w-4 h-4",
33
+ fill: "none",
34
+ viewBox: "0 0 24 24",
35
+ stroke: "currentColor",
36
+ children: /* @__PURE__ */ t("path", {
37
+ strokeLinecap: "round",
38
+ strokeLinejoin: "round",
39
+ strokeWidth: 2,
40
+ d: "M5 10l7-7m0 0l7 7m-7-7v18"
41
+ })
42
+ }),
43
+ down: /* @__PURE__ */ t("svg", {
44
+ className: "w-4 h-4",
45
+ fill: "none",
46
+ viewBox: "0 0 24 24",
47
+ stroke: "currentColor",
48
+ children: /* @__PURE__ */ t("path", {
49
+ strokeLinecap: "round",
50
+ strokeLinejoin: "round",
51
+ strokeWidth: 2,
52
+ d: "M19 14l-7 7m0 0l-7-7m7 7V3"
53
+ })
54
+ }),
55
+ flat: /* @__PURE__ */ t("svg", {
56
+ className: "w-4 h-4",
57
+ fill: "none",
58
+ viewBox: "0 0 24 24",
59
+ stroke: "currentColor",
60
+ children: /* @__PURE__ */ t("path", {
61
+ strokeLinecap: "round",
62
+ strokeLinejoin: "round",
63
+ strokeWidth: 2,
64
+ d: "M5 12h14"
65
+ })
66
+ })
67
+ };
68
+ return /* @__PURE__ */ t(r, {
69
+ treatment: h,
70
+ glow: g,
71
+ className: e("overflow-hidden border-border-seam", p && "cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-bg focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base", m),
72
+ onClick: p,
73
+ ...p ? {
74
+ role: "button",
75
+ tabIndex: 0,
76
+ onKeyDown: (e) => {
77
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), p());
78
+ }
79
+ } : {},
80
+ children: /* @__PURE__ */ t("div", {
81
+ className: _.card,
82
+ children: /* @__PURE__ */ n("div", {
83
+ className: "flex items-start justify-between",
84
+ children: [/* @__PURE__ */ n("div", {
85
+ className: "space-y-1",
86
+ children: [
87
+ /* @__PURE__ */ t("p", {
88
+ className: e("text-text-secondary", _.label),
89
+ children: o
90
+ }),
91
+ /* @__PURE__ */ t("p", {
92
+ className: e("text-text-primary tracking-tight tabular-nums", _.value),
93
+ children: typeof a == "number" ? a.toLocaleString() : a
94
+ }),
95
+ u && /* @__PURE__ */ t("p", {
96
+ className: "text-xs text-text-secondary",
97
+ children: u
98
+ }),
99
+ c && /* @__PURE__ */ n("div", {
100
+ className: e("flex items-center gap-1 text-sm tabular-nums", v[l]),
101
+ children: [d && y[d], /* @__PURE__ */ t("span", { children: c })]
102
+ })
103
+ ]
104
+ }), s && /* @__PURE__ */ t("div", {
105
+ className: e("flex-shrink-0 p-2 rounded-lg bg-action-primary-bg/10 text-action-primary-bg", _.icon),
106
+ children: s
107
+ })]
108
+ })
109
+ })
110
+ });
111
+ }
112
+ function o({ size: a = "md" }) {
113
+ let o = i[a];
114
+ return /* @__PURE__ */ t(r, {
115
+ treatment: "metric",
116
+ className: "overflow-hidden border-border-seam",
117
+ children: /* @__PURE__ */ t("div", {
118
+ className: o.card,
119
+ children: /* @__PURE__ */ n("div", {
120
+ className: "flex items-start justify-between",
121
+ children: [/* @__PURE__ */ n("div", {
122
+ className: "space-y-2 flex-1",
123
+ children: [
124
+ /* @__PURE__ */ t("div", { className: "h-4 w-24 bg-bg-sunken motion-safe:animate-vc-shimmer rounded" }),
125
+ /* @__PURE__ */ t("div", { className: "h-8 w-32 bg-bg-sunken motion-safe:animate-vc-shimmer rounded" }),
126
+ /* @__PURE__ */ t("div", { className: "h-3 w-20 bg-bg-sunken motion-safe:animate-vc-shimmer rounded" })
127
+ ]
128
+ }), /* @__PURE__ */ t("div", { className: e("bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg", o.icon) })]
129
+ })
130
+ })
131
+ });
132
+ }
133
+ function s({ children: n, columns: r = 4, className: i }) {
134
+ return /* @__PURE__ */ t("div", {
135
+ className: e("grid gap-4", {
136
+ 2: "grid-cols-1 sm:grid-cols-2",
137
+ 3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
138
+ 4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",
139
+ 5: "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5",
140
+ 6: "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6"
141
+ }[r], i),
142
+ children: n
143
+ });
144
+ }
145
+ //#endregion
146
+ export { o as n, s as r, a as t };
@@ -0,0 +1,431 @@
1
+ import { G as e, H as t, K as n, U as r, W as i, d as a, f as o, g as s, h as c, i as l, it as u, l as d, n as f, q as p, r as m, u as h, z as g } from "./PageLayout-D3N8MCTm.js";
2
+ import { t as _ } from "./arrow-left-CBpZKkpq.js";
3
+ import { t as v } from "./circle-check-big-CjuPVo3_.js";
4
+ import { t as y } from "./clock-BjkdnddD.js";
5
+ import { t as b } from "./dollar-sign-IB4O0wuQ.js";
6
+ import { t as x } from "./file-text-C8Uioy11.js";
7
+ import { n as S, t as C } from "./phone-DV4StZiA.js";
8
+ import { t as w } from "./map-pin-BSaf5IDL.js";
9
+ import { t as T } from "./package-BE7U0wQE.js";
10
+ import { t as E } from "./square-pen-hLIbFQFV.js";
11
+ import { t as D } from "./truck-CtDjNFbi.js";
12
+ import { t as O } from "./user-Dz5TJZFs.js";
13
+ import { r as k } from "./graphqlClient-CdJyR_ed.js";
14
+ import { t as A } from "./useOrders-D_3_hGMp.js";
15
+ import { i as j, n as M, r as N, t as P } from "./StatusBadge-CijYQXtb.js";
16
+ import { n as F, r as I, t as L } from "./formatters-_vJlC-47.js";
17
+ import { t as R } from "./navigation-BgnOfsVd.js";
18
+ import { useParams as z } from "react-router-dom";
19
+ import { jsx as B, jsxs as V } from "react/jsx-runtime";
20
+ import { EmphasisPanel as H, NextSteps as U, PagePurpose as W } from "@burdenoff/fe-libs/ui";
21
+ //#region node_modules/lucide-react/dist/esm/icons/printer.js
22
+ var G = u("Printer", [
23
+ ["path", {
24
+ 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",
25
+ key: "143wyd"
26
+ }],
27
+ ["path", {
28
+ d: "M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",
29
+ key: "1itne7"
30
+ }],
31
+ ["rect", {
32
+ x: "6",
33
+ y: "14",
34
+ width: "12",
35
+ height: "8",
36
+ rx: "1",
37
+ key: "1ue0tg"
38
+ }]
39
+ ]);
40
+ //#endregion
41
+ //#region src/movethewheels/pages/OrderDetailsPage.tsx
42
+ function K() {
43
+ let { orderId: u } = z(), { basePath: K, navigate: q } = k(), { order: J, isLoading: Y, error: X, refetch: Z } = A(u), Q = (e) => {
44
+ q && q(R(K, e));
45
+ };
46
+ return Y ? /* @__PURE__ */ B(m, { message: "Loading order details..." }) : X || !J ? /* @__PURE__ */ B(f, {
47
+ title: "Order not found",
48
+ message: "The order you're looking for doesn't exist or has been removed.",
49
+ onRetry: Z
50
+ }) : /* @__PURE__ */ V(l, {
51
+ title: J.orderNumber,
52
+ subtitle: `Created ${I(J.createdAt, "full")}`,
53
+ icon: /* @__PURE__ */ B(T, { size: 24 }),
54
+ headerActions: /* @__PURE__ */ V("div", {
55
+ className: "flex gap-2",
56
+ children: [
57
+ /* @__PURE__ */ V(h, {
58
+ variant: "outline",
59
+ onClick: () => {
60
+ q && q(R(K, "orders"));
61
+ },
62
+ children: [/* @__PURE__ */ B(_, { size: 16 }), "Back"]
63
+ }),
64
+ /* @__PURE__ */ V(h, {
65
+ variant: "outline",
66
+ children: [/* @__PURE__ */ B(G, { size: 16 }), "Print"]
67
+ }),
68
+ /* @__PURE__ */ V(h, {
69
+ onClick: () => Q(`orders/${u}/edit`),
70
+ children: [/* @__PURE__ */ B(E, { size: 16 }), "Edit"]
71
+ })
72
+ ]
73
+ }),
74
+ headerContent: /* @__PURE__ */ V("div", {
75
+ className: "flex flex-wrap gap-2",
76
+ children: [
77
+ /* @__PURE__ */ B(N, {
78
+ status: J.status,
79
+ type: "order"
80
+ }),
81
+ /* @__PURE__ */ B(M, { priority: J.priority }),
82
+ /* @__PURE__ */ B(j, { type: J.orderType }),
83
+ /* @__PURE__ */ B(P, { status: J.pricing.paymentStatus })
84
+ ]
85
+ }),
86
+ children: [
87
+ /* @__PURE__ */ B(W, {
88
+ icon: /* @__PURE__ */ B(T, { size: 18 }),
89
+ 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."
90
+ }),
91
+ /* @__PURE__ */ B(U, {
92
+ storageKey: "movethewheels-order-details",
93
+ steps: [
94
+ {
95
+ id: "track",
96
+ label: "Track this order live",
97
+ description: "See where the shipment is right now on the map.",
98
+ icon: /* @__PURE__ */ B(w, { size: 16 }),
99
+ onClick: () => Q(`tracking?order=${J.id}`)
100
+ },
101
+ {
102
+ id: "edit",
103
+ label: "Edit order details",
104
+ description: "Update items, addresses or instructions before dispatch.",
105
+ icon: /* @__PURE__ */ B(E, { size: 16 }),
106
+ onClick: () => Q(`orders/${u}/edit`)
107
+ },
108
+ {
109
+ id: "print",
110
+ label: "Print the delivery docket",
111
+ description: "Generate a printable copy for the driver or warehouse.",
112
+ icon: /* @__PURE__ */ B(G, { size: 16 }),
113
+ onClick: () => window.print()
114
+ }
115
+ ]
116
+ }),
117
+ /* @__PURE__ */ V("div", {
118
+ className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
119
+ children: [/* @__PURE__ */ V("div", {
120
+ className: "lg:col-span-2 space-y-6",
121
+ children: [
122
+ /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
123
+ className: "flex items-center gap-2",
124
+ children: [/* @__PURE__ */ B(O, { size: 18 }), "Customer Information"]
125
+ }) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ V("div", {
126
+ className: "grid grid-cols-1 md:grid-cols-2 gap-6",
127
+ children: [/* @__PURE__ */ V("div", { children: [
128
+ /* @__PURE__ */ B("h4", {
129
+ className: "font-medium mb-2",
130
+ children: J.customerInfo.name
131
+ }),
132
+ J.customerInfo.company && /* @__PURE__ */ B("p", {
133
+ className: "text-sm text-text-secondary mb-2",
134
+ children: J.customerInfo.company
135
+ }),
136
+ /* @__PURE__ */ V("div", {
137
+ className: "space-y-1 text-sm",
138
+ children: [/* @__PURE__ */ V("p", {
139
+ className: "flex items-center gap-2",
140
+ children: [/* @__PURE__ */ B(S, {
141
+ size: 14,
142
+ className: "text-text-secondary"
143
+ }), J.customerInfo.email]
144
+ }), /* @__PURE__ */ V("p", {
145
+ className: "flex items-center gap-2",
146
+ children: [/* @__PURE__ */ B(C, {
147
+ size: 14,
148
+ className: "text-text-secondary"
149
+ }), J.customerInfo.phone]
150
+ })]
151
+ })
152
+ ] }), /* @__PURE__ */ V("div", { children: [J.customerInfo.preferredDeliveryTime && /* @__PURE__ */ V("div", {
153
+ className: "mb-2",
154
+ children: [/* @__PURE__ */ B("p", {
155
+ className: "text-sm text-text-secondary",
156
+ children: "Preferred Delivery Time"
157
+ }), /* @__PURE__ */ B("p", {
158
+ className: "text-sm",
159
+ children: J.customerInfo.preferredDeliveryTime
160
+ })]
161
+ }), J.customerInfo.deliveryInstructions && /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
162
+ className: "text-sm text-text-secondary",
163
+ children: "Delivery Instructions"
164
+ }), /* @__PURE__ */ B("p", {
165
+ className: "text-sm",
166
+ children: J.customerInfo.deliveryInstructions
167
+ })] })] })]
168
+ }) })] }),
169
+ /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
170
+ className: "flex items-center gap-2",
171
+ children: [/* @__PURE__ */ B(w, { size: 18 }), "Addresses"]
172
+ }) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ V("div", {
173
+ className: "grid grid-cols-1 md:grid-cols-2 gap-6",
174
+ children: [/* @__PURE__ */ V("div", { children: [
175
+ /* @__PURE__ */ B("h4", {
176
+ className: "font-medium mb-2 flex items-center gap-2",
177
+ children: /* @__PURE__ */ B(d, {
178
+ variant: "outline",
179
+ children: "Pickup"
180
+ })
181
+ }),
182
+ /* @__PURE__ */ B("p", {
183
+ className: "text-sm",
184
+ children: L(J.pickupAddress)
185
+ }),
186
+ J.scheduledPickup && /* @__PURE__ */ V("p", {
187
+ className: "text-sm text-text-secondary mt-2",
188
+ children: ["Scheduled: ", I(J.scheduledPickup, "full")]
189
+ }),
190
+ J.actualPickup && /* @__PURE__ */ V("p", {
191
+ className: "text-sm text-green-600 mt-1",
192
+ children: [
193
+ /* @__PURE__ */ B(v, {
194
+ size: 14,
195
+ className: "inline mr-1"
196
+ }),
197
+ "Picked up: ",
198
+ I(J.actualPickup, "full")
199
+ ]
200
+ })
201
+ ] }), /* @__PURE__ */ V("div", { children: [
202
+ /* @__PURE__ */ B("h4", {
203
+ className: "font-medium mb-2 flex items-center gap-2",
204
+ children: /* @__PURE__ */ B(d, {
205
+ variant: "outline",
206
+ children: "Delivery"
207
+ })
208
+ }),
209
+ /* @__PURE__ */ B("p", {
210
+ className: "text-sm",
211
+ children: L(J.deliveryAddress)
212
+ }),
213
+ J.scheduledDelivery && /* @__PURE__ */ V("p", {
214
+ className: "text-sm text-text-secondary mt-2",
215
+ children: ["Scheduled: ", I(J.scheduledDelivery, "full")]
216
+ }),
217
+ J.actualDelivery && /* @__PURE__ */ V("p", {
218
+ className: "text-sm text-green-600 mt-1",
219
+ children: [
220
+ /* @__PURE__ */ B(v, {
221
+ size: 14,
222
+ className: "inline mr-1"
223
+ }),
224
+ "Delivered: ",
225
+ I(J.actualDelivery, "full")
226
+ ]
227
+ })
228
+ ] })]
229
+ }) })] }),
230
+ /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
231
+ className: "flex items-center gap-2",
232
+ children: [
233
+ /* @__PURE__ */ B(T, { size: 18 }),
234
+ "Order Items (",
235
+ J.items.length,
236
+ ")"
237
+ ]
238
+ }) }), /* @__PURE__ */ B(o, {
239
+ className: "p-0",
240
+ children: /* @__PURE__ */ V(t, { children: [/* @__PURE__ */ B(n, { children: /* @__PURE__ */ V(p, { children: [
241
+ /* @__PURE__ */ B(e, { children: "Item" }),
242
+ /* @__PURE__ */ B(e, { children: "SKU" }),
243
+ /* @__PURE__ */ B(e, {
244
+ className: "text-center",
245
+ children: "Qty"
246
+ }),
247
+ /* @__PURE__ */ B(e, {
248
+ className: "text-right",
249
+ children: "Unit Price"
250
+ }),
251
+ /* @__PURE__ */ B(e, {
252
+ className: "text-right",
253
+ children: "Total"
254
+ })
255
+ ] }) }), /* @__PURE__ */ B(r, { children: J.items.map((e) => /* @__PURE__ */ V(p, { children: [
256
+ /* @__PURE__ */ B(i, { children: /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
257
+ className: "font-medium",
258
+ children: e.name
259
+ }), e.description && /* @__PURE__ */ B("p", {
260
+ className: "text-sm text-text-secondary",
261
+ children: e.description
262
+ })] }) }),
263
+ /* @__PURE__ */ B(i, {
264
+ className: "font-mono text-sm",
265
+ children: e.sku
266
+ }),
267
+ /* @__PURE__ */ B(i, {
268
+ className: "text-center",
269
+ children: e.quantity
270
+ }),
271
+ /* @__PURE__ */ B(i, {
272
+ className: "text-right",
273
+ children: F(e.value)
274
+ }),
275
+ /* @__PURE__ */ B(i, {
276
+ className: "text-right font-medium",
277
+ children: F(e.value * e.quantity)
278
+ })
279
+ ] }, e.id)) })] })
280
+ })] }),
281
+ /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
282
+ className: "flex items-center gap-2",
283
+ children: [/* @__PURE__ */ B(y, { size: 18 }), "Order Timeline"]
284
+ }) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ B("div", {
285
+ className: "relative",
286
+ children: J.timeline.map((e, t) => /* @__PURE__ */ V("div", {
287
+ className: "flex gap-4 pb-6 last:pb-0",
288
+ children: [/* @__PURE__ */ V("div", {
289
+ className: "relative",
290
+ 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" })]
291
+ }), /* @__PURE__ */ V("div", {
292
+ className: "flex-1",
293
+ children: [
294
+ /* @__PURE__ */ V("div", {
295
+ className: "flex items-center gap-2 mb-1",
296
+ children: [/* @__PURE__ */ B(N, {
297
+ status: e.status,
298
+ type: "order",
299
+ size: "sm"
300
+ }), /* @__PURE__ */ B("span", {
301
+ className: "text-sm text-text-secondary",
302
+ children: I(e.timestamp, "full")
303
+ })]
304
+ }),
305
+ e.notes && /* @__PURE__ */ B("p", {
306
+ className: "text-sm",
307
+ children: e.notes
308
+ }),
309
+ /* @__PURE__ */ V("p", {
310
+ className: "text-xs text-text-secondary",
311
+ children: ["by ", e.performedBy]
312
+ })
313
+ ]
314
+ })]
315
+ }, t))
316
+ }) })] })
317
+ ]
318
+ }), /* @__PURE__ */ V("div", {
319
+ className: "space-y-6",
320
+ children: [
321
+ /* @__PURE__ */ V(H, { children: [/* @__PURE__ */ V("h2", {
322
+ className: "flex items-center gap-2 text-base font-semibold text-text-primary mb-4",
323
+ children: [/* @__PURE__ */ B(b, { size: 18 }), "Order Summary"]
324
+ }), /* @__PURE__ */ V("div", {
325
+ className: "space-y-3",
326
+ children: [
327
+ /* @__PURE__ */ V("div", {
328
+ className: "flex justify-between text-sm",
329
+ children: [/* @__PURE__ */ B("span", {
330
+ className: "text-text-secondary",
331
+ children: "Subtotal"
332
+ }), /* @__PURE__ */ B("span", { children: F(J.pricing.subtotal) })]
333
+ }),
334
+ /* @__PURE__ */ V("div", {
335
+ className: "flex justify-between text-sm",
336
+ children: [/* @__PURE__ */ B("span", {
337
+ className: "text-text-secondary",
338
+ children: "Delivery"
339
+ }), /* @__PURE__ */ B("span", { children: F(J.pricing.fees.delivery) })]
340
+ }),
341
+ /* @__PURE__ */ V("div", {
342
+ className: "flex justify-between text-sm",
343
+ children: [/* @__PURE__ */ B("span", {
344
+ className: "text-text-secondary",
345
+ children: "Handling"
346
+ }), /* @__PURE__ */ B("span", { children: F(J.pricing.fees.handling) })]
347
+ }),
348
+ J.pricing.fees.insurance && /* @__PURE__ */ V("div", {
349
+ className: "flex justify-between text-sm",
350
+ children: [/* @__PURE__ */ B("span", {
351
+ className: "text-text-secondary",
352
+ children: "Insurance"
353
+ }), /* @__PURE__ */ B("span", { children: F(J.pricing.fees.insurance) })]
354
+ }),
355
+ /* @__PURE__ */ V("div", {
356
+ className: "flex justify-between text-sm",
357
+ children: [/* @__PURE__ */ B("span", {
358
+ className: "text-text-secondary",
359
+ children: "Taxes"
360
+ }), /* @__PURE__ */ B("span", { children: F(J.pricing.taxes) })]
361
+ }),
362
+ /* @__PURE__ */ B(g, {}),
363
+ /* @__PURE__ */ V("div", {
364
+ className: "flex justify-between font-medium",
365
+ children: [/* @__PURE__ */ B("span", { children: "Total" }), /* @__PURE__ */ B("span", {
366
+ className: "text-lg",
367
+ children: F(J.pricing.total)
368
+ })]
369
+ }),
370
+ /* @__PURE__ */ V("div", {
371
+ className: "pt-2",
372
+ children: [/* @__PURE__ */ B("p", {
373
+ className: "text-sm text-text-secondary",
374
+ children: "Payment Method"
375
+ }), /* @__PURE__ */ B("p", {
376
+ className: "text-sm capitalize",
377
+ children: J.pricing.paymentMethod.replace("_", " ")
378
+ })]
379
+ })
380
+ ]
381
+ })] }),
382
+ /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
383
+ className: "flex items-center gap-2",
384
+ children: [/* @__PURE__ */ B(D, { size: 18 }), "Assignment"]
385
+ }) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ V("div", {
386
+ className: "space-y-4",
387
+ children: [
388
+ /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
389
+ className: "text-sm text-text-secondary",
390
+ children: "Driver"
391
+ }), /* @__PURE__ */ B("p", {
392
+ className: "text-sm",
393
+ children: J.driverId || "Not assigned"
394
+ })] }),
395
+ /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
396
+ className: "text-sm text-text-secondary",
397
+ children: "Vehicle"
398
+ }), /* @__PURE__ */ B("p", {
399
+ className: "text-sm",
400
+ children: J.vehicleId || "Not assigned"
401
+ })] }),
402
+ /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
403
+ className: "text-sm text-text-secondary",
404
+ children: "Tracking Number"
405
+ }), /* @__PURE__ */ B("p", {
406
+ className: "text-sm font-mono",
407
+ children: J.trackingNumber
408
+ })] }),
409
+ /* @__PURE__ */ V(h, {
410
+ variant: "outline",
411
+ className: "w-full",
412
+ onClick: () => Q(`tracking?order=${J.id}`),
413
+ children: [/* @__PURE__ */ B(w, { size: 16 }), "Track Order"]
414
+ })
415
+ ]
416
+ }) })] }),
417
+ J.specialInstructions && /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
418
+ className: "flex items-center gap-2",
419
+ children: [/* @__PURE__ */ B(x, { size: 18 }), "Special Instructions"]
420
+ }) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ B("p", {
421
+ className: "text-sm",
422
+ children: J.specialInstructions
423
+ }) })] })
424
+ ]
425
+ })]
426
+ })
427
+ ]
428
+ });
429
+ }
430
+ //#endregion
431
+ export { K as default };