@burdenoff/microfe-movethewheels 2026.625.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 (80) hide show
  1. package/dist/{AIAssistantPage-CNyoKtID.js → AIAssistantPage-AvsMbunM.js} +35 -29
  2. package/dist/{AnalyticsPage-Ck615ox7.js → AnalyticsPage-CCLfHgQZ.js} +36 -25
  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-DTmyuC11.js → DashboardPage-D2HRqwg9.js} +93 -89
  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-DCfOmBa2.js → FleetPage-DddXt8r8.js} +109 -71
  12. package/dist/ImportExportPage-BW6qO3kc.js +248 -0
  13. package/dist/{InventoryPage-BW0QXWuf.js → InventoryPage-rMGuaJN-.js} +74 -70
  14. package/dist/LiveTrackingPage-DQ1q4Id3.js +375 -0
  15. package/dist/MarketplacePage-DKrXAv62.js +219 -0
  16. package/dist/OrderDetailsPage-CFASgsYX.js +431 -0
  17. package/dist/OrdersListPage-BHeT8S5o.js +309 -0
  18. package/dist/ProductDetailsPage-CFGcbaHo.js +195 -0
  19. package/dist/ProductsPage--xEpbQ8A.js +171 -0
  20. package/dist/{ReportsPage-Df3hciPy.js → ReportsPage-Bb7_90rK.js} +53 -45
  21. package/dist/RouteDetailsPage-CVtDVb1N.js +282 -0
  22. package/dist/RoutesPage-s57PtgcQ.js +163 -0
  23. package/dist/SettingsPage-BYNCBOpN.js +298 -0
  24. package/dist/{TrackingPage-CU0Vk4mx.js → TrackingPage-CcRc_dva.js} +77 -72
  25. package/dist/VehicleDetailsPage-3YDMPsPs.js +220 -0
  26. package/dist/VehiclesPage-UlxPWP9K.js +167 -0
  27. package/dist/WarehouseDetailsPage-Db7KeN-d.js +238 -0
  28. package/dist/WarehousesPage-CuTO-OPp.js +164 -0
  29. package/dist/index.js +2 -2
  30. package/package.json +2 -2
  31. package/src/movethewheels/components/DataTable.tsx +37 -2
  32. package/src/movethewheels/components/MetricCard.tsx +3 -1
  33. package/src/movethewheels/pages/AIAssistantPage.tsx +11 -3
  34. package/src/movethewheels/pages/AnalyticsPage.tsx +31 -25
  35. package/src/movethewheels/pages/CreateOrderPage.tsx +56 -17
  36. package/src/movethewheels/pages/CustomerDetailsPage.tsx +63 -38
  37. package/src/movethewheels/pages/CustomersPage.tsx +40 -2
  38. package/src/movethewheels/pages/DashboardPage.tsx +8 -1
  39. package/src/movethewheels/pages/DriverDetailsPage.tsx +57 -26
  40. package/src/movethewheels/pages/DriversPage.tsx +37 -1
  41. package/src/movethewheels/pages/FinancePage.tsx +45 -41
  42. package/src/movethewheels/pages/FleetPage.tsx +68 -25
  43. package/src/movethewheels/pages/ImportExportPage.tsx +46 -29
  44. package/src/movethewheels/pages/InventoryPage.tsx +20 -23
  45. package/src/movethewheels/pages/LiveTrackingPage.tsx +58 -20
  46. package/src/movethewheels/pages/MarketplacePage.tsx +37 -3
  47. package/src/movethewheels/pages/OrderDetailsPage.tsx +74 -46
  48. package/src/movethewheels/pages/OrdersListPage.tsx +62 -1
  49. package/src/movethewheels/pages/ProductDetailsPage.tsx +36 -11
  50. package/src/movethewheels/pages/ProductsPage.tsx +33 -1
  51. package/src/movethewheels/pages/ReportsPage.tsx +23 -19
  52. package/src/movethewheels/pages/RouteDetailsPage.tsx +71 -31
  53. package/src/movethewheels/pages/RoutesPage.tsx +41 -5
  54. package/src/movethewheels/pages/SettingsPage.tsx +68 -26
  55. package/src/movethewheels/pages/TrackingPage.tsx +50 -47
  56. package/src/movethewheels/pages/VehicleDetailsPage.tsx +49 -24
  57. package/src/movethewheels/pages/VehiclesPage.tsx +33 -1
  58. package/src/movethewheels/pages/WarehouseDetailsPage.tsx +55 -30
  59. package/src/movethewheels/pages/WarehousesPage.tsx +42 -4
  60. package/dist/CreateOrderPage-C9Vb57Yn.js +0 -471
  61. package/dist/CustomerDetailsPage-BVkHRZvi.js +0 -239
  62. package/dist/CustomersPage-DhQg-6h_.js +0 -118
  63. package/dist/DataTable-CfWvFw5B.js +0 -239
  64. package/dist/DriverDetailsPage-DaaCQ-2O.js +0 -297
  65. package/dist/DriversPage-D0RMBB_t.js +0 -129
  66. package/dist/FinancePage-BUXqW1IM.js +0 -154
  67. package/dist/ImportExportPage-BM1BoRcE.js +0 -232
  68. package/dist/LiveTrackingPage-DqcGXdkw.js +0 -332
  69. package/dist/MarketplacePage-DFqsxNYU.js +0 -192
  70. package/dist/OrderDetailsPage-Dx1m3cVA.js +0 -398
  71. package/dist/OrdersListPage-DHYBGrWf.js +0 -256
  72. package/dist/ProductDetailsPage-DOXO90kb.js +0 -168
  73. package/dist/ProductsPage-RLMTwWN0.js +0 -133
  74. package/dist/RouteDetailsPage-xzFDeR-X.js +0 -240
  75. package/dist/RoutesPage-DDFy1QVi.js +0 -118
  76. package/dist/SettingsPage-JH_-UPbf.js +0 -247
  77. package/dist/VehicleDetailsPage-P4xDttKw.js +0 -194
  78. package/dist/VehiclesPage-tJZ64QKV.js +0 -129
  79. package/dist/WarehouseDetailsPage-Bt_w2Yf7.js +0 -215
  80. package/dist/WarehousesPage-HsPpEFeG.js +0 -126
@@ -1,192 +0,0 @@
1
- import { A as e, d as t, f as n, g as r, h as i, i as a, l as o, u as s } from "./PageLayout-D3N8MCTm.js";
2
- import { t as c } from "./clock-BjkdnddD.js";
3
- import { t as l } from "./filter-Da5OZaHI.js";
4
- import { t as u } from "./map-pin-BSaf5IDL.js";
5
- import { t as d } from "./search-OxoIiL_C.js";
6
- import { t as f } from "./star-YsVV3MNQ.js";
7
- import { t as p } from "./store-RCBl7HB-.js";
8
- import { r as m, t as h } from "./graphqlClient-CdJyR_ed.js";
9
- import { n as g } from "./formatters-_vJlC-47.js";
10
- import { useCallback as _, useEffect as v, useMemo as y, useState as b } from "react";
11
- import { jsx as x, jsxs as S } from "react/jsx-runtime";
12
- //#region src/movethewheels/pages/MarketplacePage.tsx
13
- var C = "\n query ListServiceProviders($filter: ServiceProviderFilterInput, $pagination: PaginationInput) {\n serviceProviders(filter: $filter, pagination: $pagination) {\n id\n name\n type\n description\n rating\n isVerified\n isActive\n services\n contactInfo\n }\n }\n", w = "\n query ListServiceOfferings($filter: ServiceOfferingFilterInput, $pagination: PaginationInput) {\n serviceOfferings(filter: $filter, pagination: $pagination) {\n id\n providerId\n name\n description\n category\n price\n currency\n availability\n provider {\n id\n name\n type\n rating\n }\n }\n }\n";
14
- function T() {
15
- let { apiGatewayUrl: T, authToken: E, workspaceToken: D, workspaceId: O, tenantId: k, currentUser: A } = m(), [j, M] = b([]), [N, P] = b([]), [F, I] = b(""), L = y(() => ({
16
- apiGatewayUrl: T,
17
- authToken: E,
18
- workspaceToken: D,
19
- workspaceId: O,
20
- tenantId: k,
21
- actorId: A?.id
22
- }), [
23
- T,
24
- E,
25
- D,
26
- O,
27
- k,
28
- A?.id
29
- ]), R = _(async () => {
30
- let [e, t] = await Promise.all([h(L, C, { pagination: {
31
- limit: 200,
32
- offset: 0
33
- } }), h(L, w, { pagination: {
34
- limit: 200,
35
- offset: 0
36
- } })]);
37
- M(e.serviceProviders), P(t.serviceOfferings);
38
- }, [L]);
39
- v(() => {
40
- R();
41
- }, [R]);
42
- let z = y(() => {
43
- let e = F.trim().toLowerCase();
44
- return e ? j.filter((t) => t.name.toLowerCase().includes(e) || (t.description ?? "").toLowerCase().includes(e) || t.type.toLowerCase().includes(e)) : j;
45
- }, [j, F]), B = y(() => {
46
- let e = F.trim().toLowerCase();
47
- return e ? N.filter((t) => t.name.toLowerCase().includes(e) || (t.description ?? "").toLowerCase().includes(e) || (t.category ?? "").toLowerCase().includes(e)) : N;
48
- }, [N, F]);
49
- return /* @__PURE__ */ S(a, {
50
- title: "Marketplace",
51
- subtitle: "Find logistics service providers",
52
- icon: /* @__PURE__ */ x(p, { size: 24 }),
53
- headerActions: /* @__PURE__ */ S(s, {
54
- variant: "outline",
55
- children: [/* @__PURE__ */ x(l, { size: 16 }), " Filters"]
56
- }),
57
- children: [/* @__PURE__ */ x(t, { children: /* @__PURE__ */ x(n, {
58
- className: "p-4",
59
- children: /* @__PURE__ */ S("div", {
60
- className: "relative",
61
- children: [/* @__PURE__ */ x(d, {
62
- className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary",
63
- size: 20
64
- }), /* @__PURE__ */ x(e, {
65
- placeholder: "Search services, providers, locations...",
66
- className: "pl-10",
67
- value: F,
68
- onChange: (e) => I(e.target.value)
69
- })]
70
- })
71
- }) }), /* @__PURE__ */ S("div", {
72
- className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
73
- children: [/* @__PURE__ */ S("div", {
74
- className: "lg:col-span-2 space-y-4",
75
- children: [/* @__PURE__ */ S("h3", {
76
- className: "font-semibold",
77
- children: [
78
- "Service Providers (",
79
- z.length,
80
- ")"
81
- ]
82
- }), z.map((e) => /* @__PURE__ */ x(t, {
83
- className: "hover:shadow-md transition-shadow cursor-pointer",
84
- children: /* @__PURE__ */ x(n, {
85
- className: "p-6",
86
- children: /* @__PURE__ */ S("div", {
87
- className: "flex items-start justify-between",
88
- children: [/* @__PURE__ */ S("div", { children: [
89
- /* @__PURE__ */ S("div", {
90
- className: "flex items-center gap-2",
91
- children: [
92
- /* @__PURE__ */ x("h4", {
93
- className: "font-semibold text-lg",
94
- children: e.name
95
- }),
96
- e.isVerified && /* @__PURE__ */ x(o, {
97
- variant: "default",
98
- children: "Verified"
99
- }),
100
- /* @__PURE__ */ x(o, {
101
- variant: e.isActive ? "default" : "secondary",
102
- children: e.isActive ? "active" : "inactive"
103
- })
104
- ]
105
- }),
106
- /* @__PURE__ */ x("p", {
107
- className: "text-text-secondary mt-1",
108
- children: e.description
109
- }),
110
- /* @__PURE__ */ S("div", {
111
- className: "flex items-center gap-4 mt-3 text-sm text-text-secondary",
112
- children: [
113
- /* @__PURE__ */ S("span", {
114
- className: "flex items-center gap-1",
115
- children: [
116
- /* @__PURE__ */ x(f, {
117
- size: 14,
118
- className: "text-yellow-500 fill-yellow-500"
119
- }),
120
- " ",
121
- e.rating ?? 0
122
- ]
123
- }),
124
- /* @__PURE__ */ S("span", {
125
- className: "flex items-center gap-1",
126
- children: [
127
- /* @__PURE__ */ x(u, { size: 14 }),
128
- " ",
129
- e.type
130
- ]
131
- }),
132
- /* @__PURE__ */ S("span", {
133
- className: "flex items-center gap-1",
134
- children: [/* @__PURE__ */ x(c, { size: 14 }), " Listed"]
135
- })
136
- ]
137
- })
138
- ] }), /* @__PURE__ */ S("div", {
139
- className: "text-right",
140
- children: [/* @__PURE__ */ x("p", {
141
- className: "text-sm text-text-secondary",
142
- children: "Services"
143
- }), /* @__PURE__ */ x("p", {
144
- className: "text-lg font-bold",
145
- children: Array.isArray(e.services) ? e.services.length : 0
146
- })]
147
- })]
148
- })
149
- })
150
- }, e.id))]
151
- }), /* @__PURE__ */ S("div", {
152
- className: "space-y-4",
153
- children: [/* @__PURE__ */ x("h3", {
154
- className: "font-semibold",
155
- children: "Popular Services"
156
- }), B.map((e) => /* @__PURE__ */ S(t, { children: [/* @__PURE__ */ x(i, { children: /* @__PURE__ */ x(r, {
157
- className: "text-base",
158
- children: e.name
159
- }) }), /* @__PURE__ */ S(n, { children: [
160
- /* @__PURE__ */ x("p", {
161
- className: "text-sm text-text-secondary mb-3",
162
- children: e.description
163
- }),
164
- /* @__PURE__ */ S("div", {
165
- className: "flex flex-wrap gap-1 mb-3",
166
- children: [/* @__PURE__ */ x(o, {
167
- variant: "outline",
168
- className: "text-xs",
169
- children: e.category ?? "general"
170
- }), /* @__PURE__ */ x(o, {
171
- variant: "outline",
172
- className: "text-xs",
173
- children: e.provider?.name ?? "provider"
174
- })]
175
- }),
176
- /* @__PURE__ */ S("div", {
177
- className: "flex items-center justify-between",
178
- children: [/* @__PURE__ */ x("span", {
179
- className: "font-bold",
180
- children: g(e.price)
181
- }), /* @__PURE__ */ x("span", {
182
- className: "text-sm text-text-secondary",
183
- children: e.currency
184
- })]
185
- })
186
- ] })] }, e.id))]
187
- })]
188
- })]
189
- });
190
- }
191
- //#endregion
192
- export { T as default };
@@ -1,398 +0,0 @@
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
- //#region node_modules/lucide-react/dist/esm/icons/printer.js
21
- var H = u("Printer", [
22
- ["path", {
23
- 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",
24
- key: "143wyd"
25
- }],
26
- ["path", {
27
- d: "M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",
28
- key: "1itne7"
29
- }],
30
- ["rect", {
31
- x: "6",
32
- y: "14",
33
- width: "12",
34
- height: "8",
35
- rx: "1",
36
- key: "1ue0tg"
37
- }]
38
- ]);
39
- //#endregion
40
- //#region src/movethewheels/pages/OrderDetailsPage.tsx
41
- function U() {
42
- let { orderId: u } = z(), { basePath: U, navigate: W } = k(), { order: G, isLoading: K, error: q, refetch: J } = A(u), Y = (e) => {
43
- W && W(R(U, e));
44
- };
45
- return K ? /* @__PURE__ */ B(m, { message: "Loading order details..." }) : q || !G ? /* @__PURE__ */ B(f, {
46
- title: "Order not found",
47
- message: "The order you're looking for doesn't exist or has been removed.",
48
- onRetry: J
49
- }) : /* @__PURE__ */ B(l, {
50
- title: G.orderNumber,
51
- subtitle: `Created ${I(G.createdAt, "full")}`,
52
- icon: /* @__PURE__ */ B(T, { size: 24 }),
53
- headerActions: /* @__PURE__ */ V("div", {
54
- className: "flex gap-2",
55
- children: [
56
- /* @__PURE__ */ V(h, {
57
- variant: "outline",
58
- onClick: () => {
59
- W && W(R(U, "orders"));
60
- },
61
- children: [/* @__PURE__ */ B(_, { size: 16 }), "Back"]
62
- }),
63
- /* @__PURE__ */ V(h, {
64
- variant: "outline",
65
- children: [/* @__PURE__ */ B(H, { size: 16 }), "Print"]
66
- }),
67
- /* @__PURE__ */ V(h, {
68
- onClick: () => Y(`orders/${u}/edit`),
69
- children: [/* @__PURE__ */ B(E, { size: 16 }), "Edit"]
70
- })
71
- ]
72
- }),
73
- headerContent: /* @__PURE__ */ V("div", {
74
- className: "flex flex-wrap gap-2",
75
- children: [
76
- /* @__PURE__ */ B(N, {
77
- status: G.status,
78
- type: "order"
79
- }),
80
- /* @__PURE__ */ B(M, { priority: G.priority }),
81
- /* @__PURE__ */ B(j, { type: G.orderType }),
82
- /* @__PURE__ */ B(P, { status: G.pricing.paymentStatus })
83
- ]
84
- }),
85
- children: /* @__PURE__ */ V("div", {
86
- className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
87
- children: [/* @__PURE__ */ V("div", {
88
- className: "lg:col-span-2 space-y-6",
89
- children: [
90
- /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
91
- className: "flex items-center gap-2",
92
- children: [/* @__PURE__ */ B(O, { size: 18 }), "Customer Information"]
93
- }) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ V("div", {
94
- className: "grid grid-cols-1 md:grid-cols-2 gap-6",
95
- children: [/* @__PURE__ */ V("div", { children: [
96
- /* @__PURE__ */ B("h4", {
97
- className: "font-medium mb-2",
98
- children: G.customerInfo.name
99
- }),
100
- G.customerInfo.company && /* @__PURE__ */ B("p", {
101
- className: "text-sm text-text-secondary mb-2",
102
- children: G.customerInfo.company
103
- }),
104
- /* @__PURE__ */ V("div", {
105
- className: "space-y-1 text-sm",
106
- children: [/* @__PURE__ */ V("p", {
107
- className: "flex items-center gap-2",
108
- children: [/* @__PURE__ */ B(S, {
109
- size: 14,
110
- className: "text-text-secondary"
111
- }), G.customerInfo.email]
112
- }), /* @__PURE__ */ V("p", {
113
- className: "flex items-center gap-2",
114
- children: [/* @__PURE__ */ B(C, {
115
- size: 14,
116
- className: "text-text-secondary"
117
- }), G.customerInfo.phone]
118
- })]
119
- })
120
- ] }), /* @__PURE__ */ V("div", { children: [G.customerInfo.preferredDeliveryTime && /* @__PURE__ */ V("div", {
121
- className: "mb-2",
122
- children: [/* @__PURE__ */ B("p", {
123
- className: "text-sm text-text-secondary",
124
- children: "Preferred Delivery Time"
125
- }), /* @__PURE__ */ B("p", {
126
- className: "text-sm",
127
- children: G.customerInfo.preferredDeliveryTime
128
- })]
129
- }), G.customerInfo.deliveryInstructions && /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
130
- className: "text-sm text-text-secondary",
131
- children: "Delivery Instructions"
132
- }), /* @__PURE__ */ B("p", {
133
- className: "text-sm",
134
- children: G.customerInfo.deliveryInstructions
135
- })] })] })]
136
- }) })] }),
137
- /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
138
- className: "flex items-center gap-2",
139
- children: [/* @__PURE__ */ B(w, { size: 18 }), "Addresses"]
140
- }) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ V("div", {
141
- className: "grid grid-cols-1 md:grid-cols-2 gap-6",
142
- children: [/* @__PURE__ */ V("div", { children: [
143
- /* @__PURE__ */ B("h4", {
144
- className: "font-medium mb-2 flex items-center gap-2",
145
- children: /* @__PURE__ */ B(d, {
146
- variant: "outline",
147
- children: "Pickup"
148
- })
149
- }),
150
- /* @__PURE__ */ B("p", {
151
- className: "text-sm",
152
- children: L(G.pickupAddress)
153
- }),
154
- G.scheduledPickup && /* @__PURE__ */ V("p", {
155
- className: "text-sm text-text-secondary mt-2",
156
- children: ["Scheduled: ", I(G.scheduledPickup, "full")]
157
- }),
158
- G.actualPickup && /* @__PURE__ */ V("p", {
159
- className: "text-sm text-green-600 mt-1",
160
- children: [
161
- /* @__PURE__ */ B(v, {
162
- size: 14,
163
- className: "inline mr-1"
164
- }),
165
- "Picked up: ",
166
- I(G.actualPickup, "full")
167
- ]
168
- })
169
- ] }), /* @__PURE__ */ V("div", { children: [
170
- /* @__PURE__ */ B("h4", {
171
- className: "font-medium mb-2 flex items-center gap-2",
172
- children: /* @__PURE__ */ B(d, {
173
- variant: "outline",
174
- children: "Delivery"
175
- })
176
- }),
177
- /* @__PURE__ */ B("p", {
178
- className: "text-sm",
179
- children: L(G.deliveryAddress)
180
- }),
181
- G.scheduledDelivery && /* @__PURE__ */ V("p", {
182
- className: "text-sm text-text-secondary mt-2",
183
- children: ["Scheduled: ", I(G.scheduledDelivery, "full")]
184
- }),
185
- G.actualDelivery && /* @__PURE__ */ V("p", {
186
- className: "text-sm text-green-600 mt-1",
187
- children: [
188
- /* @__PURE__ */ B(v, {
189
- size: 14,
190
- className: "inline mr-1"
191
- }),
192
- "Delivered: ",
193
- I(G.actualDelivery, "full")
194
- ]
195
- })
196
- ] })]
197
- }) })] }),
198
- /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
199
- className: "flex items-center gap-2",
200
- children: [
201
- /* @__PURE__ */ B(T, { size: 18 }),
202
- "Order Items (",
203
- G.items.length,
204
- ")"
205
- ]
206
- }) }), /* @__PURE__ */ B(o, {
207
- className: "p-0",
208
- children: /* @__PURE__ */ V(t, { children: [/* @__PURE__ */ B(n, { children: /* @__PURE__ */ V(p, { children: [
209
- /* @__PURE__ */ B(e, { children: "Item" }),
210
- /* @__PURE__ */ B(e, { children: "SKU" }),
211
- /* @__PURE__ */ B(e, {
212
- className: "text-center",
213
- children: "Qty"
214
- }),
215
- /* @__PURE__ */ B(e, {
216
- className: "text-right",
217
- children: "Unit Price"
218
- }),
219
- /* @__PURE__ */ B(e, {
220
- className: "text-right",
221
- children: "Total"
222
- })
223
- ] }) }), /* @__PURE__ */ B(r, { children: G.items.map((e) => /* @__PURE__ */ V(p, { children: [
224
- /* @__PURE__ */ B(i, { children: /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
225
- className: "font-medium",
226
- children: e.name
227
- }), e.description && /* @__PURE__ */ B("p", {
228
- className: "text-sm text-text-secondary",
229
- children: e.description
230
- })] }) }),
231
- /* @__PURE__ */ B(i, {
232
- className: "font-mono text-sm",
233
- children: e.sku
234
- }),
235
- /* @__PURE__ */ B(i, {
236
- className: "text-center",
237
- children: e.quantity
238
- }),
239
- /* @__PURE__ */ B(i, {
240
- className: "text-right",
241
- children: F(e.value)
242
- }),
243
- /* @__PURE__ */ B(i, {
244
- className: "text-right font-medium",
245
- children: F(e.value * e.quantity)
246
- })
247
- ] }, e.id)) })] })
248
- })] }),
249
- /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
250
- className: "flex items-center gap-2",
251
- children: [/* @__PURE__ */ B(y, { size: 18 }), "Order Timeline"]
252
- }) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ B("div", {
253
- className: "relative",
254
- children: G.timeline.map((e, t) => /* @__PURE__ */ V("div", {
255
- className: "flex gap-4 pb-6 last:pb-0",
256
- children: [/* @__PURE__ */ V("div", {
257
- className: "relative",
258
- children: [/* @__PURE__ */ B("div", { className: "w-3 h-3 rounded-full bg-action-primary-bg mt-1.5" }), t < G.timeline.length - 1 && /* @__PURE__ */ B("div", { className: "absolute top-4 left-1.5 w-px h-full -ml-px bg-border" })]
259
- }), /* @__PURE__ */ V("div", {
260
- className: "flex-1",
261
- children: [
262
- /* @__PURE__ */ V("div", {
263
- className: "flex items-center gap-2 mb-1",
264
- children: [/* @__PURE__ */ B(N, {
265
- status: e.status,
266
- type: "order",
267
- size: "sm"
268
- }), /* @__PURE__ */ B("span", {
269
- className: "text-sm text-text-secondary",
270
- children: I(e.timestamp, "full")
271
- })]
272
- }),
273
- e.notes && /* @__PURE__ */ B("p", {
274
- className: "text-sm",
275
- children: e.notes
276
- }),
277
- /* @__PURE__ */ V("p", {
278
- className: "text-xs text-text-secondary",
279
- children: ["by ", e.performedBy]
280
- })
281
- ]
282
- })]
283
- }, t))
284
- }) })] })
285
- ]
286
- }), /* @__PURE__ */ V("div", {
287
- className: "space-y-6",
288
- children: [
289
- /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
290
- className: "flex items-center gap-2",
291
- children: [/* @__PURE__ */ B(b, { size: 18 }), "Order Summary"]
292
- }) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ V("div", {
293
- className: "space-y-3",
294
- children: [
295
- /* @__PURE__ */ V("div", {
296
- className: "flex justify-between text-sm",
297
- children: [/* @__PURE__ */ B("span", {
298
- className: "text-text-secondary",
299
- children: "Subtotal"
300
- }), /* @__PURE__ */ B("span", { children: F(G.pricing.subtotal) })]
301
- }),
302
- /* @__PURE__ */ V("div", {
303
- className: "flex justify-between text-sm",
304
- children: [/* @__PURE__ */ B("span", {
305
- className: "text-text-secondary",
306
- children: "Delivery"
307
- }), /* @__PURE__ */ B("span", { children: F(G.pricing.fees.delivery) })]
308
- }),
309
- /* @__PURE__ */ V("div", {
310
- className: "flex justify-between text-sm",
311
- children: [/* @__PURE__ */ B("span", {
312
- className: "text-text-secondary",
313
- children: "Handling"
314
- }), /* @__PURE__ */ B("span", { children: F(G.pricing.fees.handling) })]
315
- }),
316
- G.pricing.fees.insurance && /* @__PURE__ */ V("div", {
317
- className: "flex justify-between text-sm",
318
- children: [/* @__PURE__ */ B("span", {
319
- className: "text-text-secondary",
320
- children: "Insurance"
321
- }), /* @__PURE__ */ B("span", { children: F(G.pricing.fees.insurance) })]
322
- }),
323
- /* @__PURE__ */ V("div", {
324
- className: "flex justify-between text-sm",
325
- children: [/* @__PURE__ */ B("span", {
326
- className: "text-text-secondary",
327
- children: "Taxes"
328
- }), /* @__PURE__ */ B("span", { children: F(G.pricing.taxes) })]
329
- }),
330
- /* @__PURE__ */ B(g, {}),
331
- /* @__PURE__ */ V("div", {
332
- className: "flex justify-between font-medium",
333
- children: [/* @__PURE__ */ B("span", { children: "Total" }), /* @__PURE__ */ B("span", {
334
- className: "text-lg",
335
- children: F(G.pricing.total)
336
- })]
337
- }),
338
- /* @__PURE__ */ V("div", {
339
- className: "pt-2",
340
- children: [/* @__PURE__ */ B("p", {
341
- className: "text-sm text-text-secondary",
342
- children: "Payment Method"
343
- }), /* @__PURE__ */ B("p", {
344
- className: "text-sm capitalize",
345
- children: G.pricing.paymentMethod.replace("_", " ")
346
- })]
347
- })
348
- ]
349
- }) })] }),
350
- /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
351
- className: "flex items-center gap-2",
352
- children: [/* @__PURE__ */ B(D, { size: 18 }), "Assignment"]
353
- }) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ V("div", {
354
- className: "space-y-4",
355
- children: [
356
- /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
357
- className: "text-sm text-text-secondary",
358
- children: "Driver"
359
- }), /* @__PURE__ */ B("p", {
360
- className: "text-sm",
361
- children: G.driverId || "Not assigned"
362
- })] }),
363
- /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
364
- className: "text-sm text-text-secondary",
365
- children: "Vehicle"
366
- }), /* @__PURE__ */ B("p", {
367
- className: "text-sm",
368
- children: G.vehicleId || "Not assigned"
369
- })] }),
370
- /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B("p", {
371
- className: "text-sm text-text-secondary",
372
- children: "Tracking Number"
373
- }), /* @__PURE__ */ B("p", {
374
- className: "text-sm font-mono",
375
- children: G.trackingNumber
376
- })] }),
377
- /* @__PURE__ */ V(h, {
378
- variant: "outline",
379
- className: "w-full",
380
- onClick: () => Y(`tracking?order=${G.id}`),
381
- children: [/* @__PURE__ */ B(w, { size: 16 }), "Track Order"]
382
- })
383
- ]
384
- }) })] }),
385
- G.specialInstructions && /* @__PURE__ */ V(a, { children: [/* @__PURE__ */ B(c, { children: /* @__PURE__ */ V(s, {
386
- className: "flex items-center gap-2",
387
- children: [/* @__PURE__ */ B(x, { size: 18 }), "Special Instructions"]
388
- }) }), /* @__PURE__ */ B(o, { children: /* @__PURE__ */ B("p", {
389
- className: "text-sm",
390
- children: G.specialInstructions
391
- }) })] })
392
- ]
393
- })]
394
- })
395
- });
396
- }
397
- //#endregion
398
- export { U as default };