@burdenoff/microfe-movethewheels 2026.510.105

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 (208) hide show
  1. package/README.md +82 -0
  2. package/dist/AIAssistantPage-hD0VYJdH.js +210 -0
  3. package/dist/AnalyticsPage-DHTHCUtr.js +201 -0
  4. package/dist/CreateOrderPage-Cprg4Y9V.js +471 -0
  5. package/dist/CustomerDetailsPage-DNDEw7IW.js +239 -0
  6. package/dist/CustomersPage-CDjjeCEL.js +119 -0
  7. package/dist/DashboardPage-8iTPXRAG.js +374 -0
  8. package/dist/DataTable-CRIKfdIN.js +239 -0
  9. package/dist/DriverDetailsPage-CRyRCno7.js +297 -0
  10. package/dist/DriversPage-16O8fVmf.js +127 -0
  11. package/dist/FinancePage-BYUxK5dR.js +154 -0
  12. package/dist/FleetPage-CHYETCWT.js +293 -0
  13. package/dist/ImportExportPage-C3MKKxfc.js +232 -0
  14. package/dist/InventoryPage--822AxZM.js +223 -0
  15. package/dist/LiveTrackingPage-Dp3rTJDr.js +332 -0
  16. package/dist/MarketplacePage-DjEqudfM.js +192 -0
  17. package/dist/MetricCard-GTbxAk1a.js +135 -0
  18. package/dist/OrderDetailsPage-BIuYG0ub.js +398 -0
  19. package/dist/OrdersListPage-CW5V0Uvh.js +257 -0
  20. package/dist/PageLayout-B7b0vl0R.js +1894 -0
  21. package/dist/ProductDetailsPage-Q3X7AT-7.js +168 -0
  22. package/dist/ProductsPage-CUj9JpnW.js +131 -0
  23. package/dist/ReportsPage-DblO5CdJ.js +227 -0
  24. package/dist/RouteDetailsPage-CLctgk6A.js +240 -0
  25. package/dist/RoutesPage-8hrv6RWT.js +116 -0
  26. package/dist/SettingsPage-BJ5BQeqn.js +247 -0
  27. package/dist/StatusBadge-BrrwraIA.js +206 -0
  28. package/dist/TrackingPage-BGqHDh-w.js +322 -0
  29. package/dist/VehicleDetailsPage-XnDH4iQR.js +194 -0
  30. package/dist/VehiclesPage-Cs4XxHkA.js +127 -0
  31. package/dist/WarehouseDetailsPage-GemdMvr_.js +215 -0
  32. package/dist/WarehousesPage-QTiuDuXy.js +121 -0
  33. package/dist/arrow-left-6CiLhqVp.js +11 -0
  34. package/dist/box-BunB_4UH.js +18 -0
  35. package/dist/chart-column-DWwVEVQ-.js +22 -0
  36. package/dist/chevron-right-DhZVf20o.js +8 -0
  37. package/dist/circle-alert-D5f6RZxt.js +26 -0
  38. package/dist/circle-check-big-D-JMHcTe.js +11 -0
  39. package/dist/clock-CvwBKbQP.js +13 -0
  40. package/dist/dev/main.d.ts +1 -0
  41. package/dist/dollar-sign-CP9qeU5d.js +14 -0
  42. package/dist/download-CIuG04pJ.js +21 -0
  43. package/dist/file-text-Dd_thxkn.js +26 -0
  44. package/dist/filter-DyRMX9CU.js +8 -0
  45. package/dist/formatters-_vJlC-47.js +50 -0
  46. package/dist/generated/global-operations.d.ts +1 -0
  47. package/dist/generated/global-types.d.ts +20715 -0
  48. package/dist/generated/wspace-operations.d.ts +3704 -0
  49. package/dist/generated/wspace-types.d.ts +53362 -0
  50. package/dist/graphqlClient-CdJyR_ed.js +55 -0
  51. package/dist/index.d.ts +4 -0
  52. package/dist/index.js +772 -0
  53. package/dist/map-BqH1cBJi.js +18 -0
  54. package/dist/map-pin-CFBOmh-A.js +13 -0
  55. package/dist/movethewheels/MoveTheWheelsRoot.d.ts +25 -0
  56. package/dist/movethewheels/MoveTheWheelsRoutes.d.ts +7 -0
  57. package/dist/movethewheels/components/DataTable.d.ts +32 -0
  58. package/dist/movethewheels/components/MetricCard.d.ts +43 -0
  59. package/dist/movethewheels/components/PageLayout.d.ts +68 -0
  60. package/dist/movethewheels/components/StatusBadge.d.ts +49 -0
  61. package/dist/movethewheels/components/index.d.ts +10 -0
  62. package/dist/movethewheels/components/ui.d.ts +22 -0
  63. package/dist/movethewheels/constants/index.d.ts +24 -0
  64. package/dist/movethewheels/constants/mockData.d.ts +33 -0
  65. package/dist/movethewheels/hooks/index.d.ts +12 -0
  66. package/dist/movethewheels/hooks/useAnalytics.d.ts +118 -0
  67. package/dist/movethewheels/hooks/useCustomers.d.ts +37 -0
  68. package/dist/movethewheels/hooks/useFleet.d.ts +71 -0
  69. package/dist/movethewheels/hooks/useInventory.d.ts +60 -0
  70. package/dist/movethewheels/hooks/useOrders.d.ts +47 -0
  71. package/dist/movethewheels/hooks/useRoutes.d.ts +41 -0
  72. package/dist/movethewheels/hooks/useTracking.d.ts +69 -0
  73. package/dist/movethewheels/index.d.ts +30 -0
  74. package/dist/movethewheels/pages/AIAssistantPage.d.ts +4 -0
  75. package/dist/movethewheels/pages/AnalyticsPage.d.ts +4 -0
  76. package/dist/movethewheels/pages/CreateOrderPage.d.ts +6 -0
  77. package/dist/movethewheels/pages/CustomerDetailsPage.d.ts +4 -0
  78. package/dist/movethewheels/pages/CustomersPage.d.ts +4 -0
  79. package/dist/movethewheels/pages/DashboardPage.d.ts +6 -0
  80. package/dist/movethewheels/pages/DriverDetailsPage.d.ts +4 -0
  81. package/dist/movethewheels/pages/DriversPage.d.ts +4 -0
  82. package/dist/movethewheels/pages/FinancePage.d.ts +4 -0
  83. package/dist/movethewheels/pages/FleetPage.d.ts +6 -0
  84. package/dist/movethewheels/pages/ImportExportPage.d.ts +4 -0
  85. package/dist/movethewheels/pages/InventoryPage.d.ts +4 -0
  86. package/dist/movethewheels/pages/LiveTrackingPage.d.ts +6 -0
  87. package/dist/movethewheels/pages/MarketplacePage.d.ts +4 -0
  88. package/dist/movethewheels/pages/OrderDetailsPage.d.ts +6 -0
  89. package/dist/movethewheels/pages/OrdersListPage.d.ts +6 -0
  90. package/dist/movethewheels/pages/ProductDetailsPage.d.ts +4 -0
  91. package/dist/movethewheels/pages/ProductsPage.d.ts +4 -0
  92. package/dist/movethewheels/pages/ReportsPage.d.ts +4 -0
  93. package/dist/movethewheels/pages/RouteDetailsPage.d.ts +4 -0
  94. package/dist/movethewheels/pages/RoutesPage.d.ts +4 -0
  95. package/dist/movethewheels/pages/SettingsPage.d.ts +4 -0
  96. package/dist/movethewheels/pages/TrackingPage.d.ts +6 -0
  97. package/dist/movethewheels/pages/VehicleDetailsPage.d.ts +4 -0
  98. package/dist/movethewheels/pages/VehiclesPage.d.ts +4 -0
  99. package/dist/movethewheels/pages/WarehouseDetailsPage.d.ts +4 -0
  100. package/dist/movethewheels/pages/WarehousesPage.d.ts +4 -0
  101. package/dist/movethewheels/providers/MoveTheWheelsProvider.d.ts +16 -0
  102. package/dist/movethewheels/store/movethewheelsStore.d.ts +73 -0
  103. package/dist/movethewheels/types/index.d.ts +655 -0
  104. package/dist/movethewheels/utils/cn.d.ts +6 -0
  105. package/dist/movethewheels/utils/formatters.d.ts +60 -0
  106. package/dist/movethewheels/utils/graphqlClient.d.ts +11 -0
  107. package/dist/movethewheels/utils/index.d.ts +7 -0
  108. package/dist/movethewheels/utils/navigation.d.ts +23 -0
  109. package/dist/navigation-BgnOfsVd.js +6 -0
  110. package/dist/navigation-C2fY_aS9.js +8 -0
  111. package/dist/package-DVZbDRcV.js +22 -0
  112. package/dist/phone-KdwpVmC4.js +18 -0
  113. package/dist/plus-Bl7uX6Ji.js +11 -0
  114. package/dist/refresh-cw-BYjl3K-8.js +22 -0
  115. package/dist/route-Ce_poKFi.js +51 -0
  116. package/dist/save-C-qDVat-.js +18 -0
  117. package/dist/search-5pdn5eOO.js +13 -0
  118. package/dist/settings-C4kIDsYg.js +28 -0
  119. package/dist/square-pen-BwQ67vLE.js +11 -0
  120. package/dist/star-BlVsC3Ad.js +8 -0
  121. package/dist/store-DTmQT5M0.js +26 -0
  122. package/dist/trending-up-C1faflCI.js +11 -0
  123. package/dist/triangle-alert-CUoVAA4L.js +18 -0
  124. package/dist/truck-BmDAzu05.js +30 -0
  125. package/dist/useAnalytics-ph7eTIK6.js +297 -0
  126. package/dist/useCustomers-bS3a4ytk.js +186 -0
  127. package/dist/useFleet-BdETplNE.js +398 -0
  128. package/dist/useInventory-Dwn18FPz.js +323 -0
  129. package/dist/useOrders-D_3_hGMp.js +324 -0
  130. package/dist/useRoutes-v4aBaS-E.js +224 -0
  131. package/dist/useTracking-De2KIUNu.js +261 -0
  132. package/dist/user-BplzDrLP.js +13 -0
  133. package/dist/users-i-igmsP4.js +24 -0
  134. package/dist/warehouse-DewG0PXh.js +25 -0
  135. package/dist/wrench-CoSDEIC7.js +31 -0
  136. package/package.json +107 -0
  137. package/src/dev/main.tsx +110 -0
  138. package/src/dev/styles.css +139 -0
  139. package/src/generated/global-operations.ts +2 -0
  140. package/src/generated/global-types.ts +24048 -0
  141. package/src/generated/wspace-operations.ts +3734 -0
  142. package/src/generated/wspace-types.ts +60715 -0
  143. package/src/index.ts +4 -0
  144. package/src/movethewheels/MoveTheWheelsRoot.tsx +258 -0
  145. package/src/movethewheels/MoveTheWheelsRoutes.tsx +119 -0
  146. package/src/movethewheels/components/DataTable.tsx +367 -0
  147. package/src/movethewheels/components/MetricCard.tsx +180 -0
  148. package/src/movethewheels/components/PageLayout.tsx +234 -0
  149. package/src/movethewheels/components/StatusBadge.tsx +243 -0
  150. package/src/movethewheels/components/index.ts +26 -0
  151. package/src/movethewheels/components/ui.tsx +124 -0
  152. package/src/movethewheels/constants/index.ts +65 -0
  153. package/src/movethewheels/constants/mockData.ts +1342 -0
  154. package/src/movethewheels/hooks/index.ts +55 -0
  155. package/src/movethewheels/hooks/useAnalytics.ts +476 -0
  156. package/src/movethewheels/hooks/useCustomers.ts +359 -0
  157. package/src/movethewheels/hooks/useFleet.ts +778 -0
  158. package/src/movethewheels/hooks/useInventory.ts +632 -0
  159. package/src/movethewheels/hooks/useOrders.ts +703 -0
  160. package/src/movethewheels/hooks/useRoutes.ts +453 -0
  161. package/src/movethewheels/hooks/useTracking.ts +505 -0
  162. package/src/movethewheels/index.ts +68 -0
  163. package/src/movethewheels/pages/AIAssistantPage.tsx +160 -0
  164. package/src/movethewheels/pages/AnalyticsPage.tsx +190 -0
  165. package/src/movethewheels/pages/CreateOrderPage.tsx +454 -0
  166. package/src/movethewheels/pages/CustomerDetailsPage.tsx +207 -0
  167. package/src/movethewheels/pages/CustomersPage.tsx +115 -0
  168. package/src/movethewheels/pages/DashboardPage.tsx +414 -0
  169. package/src/movethewheels/pages/DriverDetailsPage.tsx +261 -0
  170. package/src/movethewheels/pages/DriversPage.tsx +118 -0
  171. package/src/movethewheels/pages/FinancePage.tsx +141 -0
  172. package/src/movethewheels/pages/FleetPage.tsx +289 -0
  173. package/src/movethewheels/pages/ImportExportPage.tsx +165 -0
  174. package/src/movethewheels/pages/InventoryPage.tsx +212 -0
  175. package/src/movethewheels/pages/LiveTrackingPage.tsx +325 -0
  176. package/src/movethewheels/pages/MarketplacePage.tsx +235 -0
  177. package/src/movethewheels/pages/OrderDetailsPage.tsx +387 -0
  178. package/src/movethewheels/pages/OrdersListPage.tsx +241 -0
  179. package/src/movethewheels/pages/ProductDetailsPage.tsx +155 -0
  180. package/src/movethewheels/pages/ProductsPage.tsx +124 -0
  181. package/src/movethewheels/pages/ReportsPage.tsx +164 -0
  182. package/src/movethewheels/pages/RouteDetailsPage.tsx +245 -0
  183. package/src/movethewheels/pages/RoutesPage.tsx +104 -0
  184. package/src/movethewheels/pages/SettingsPage.tsx +242 -0
  185. package/src/movethewheels/pages/TrackingPage.tsx +419 -0
  186. package/src/movethewheels/pages/VehicleDetailsPage.tsx +218 -0
  187. package/src/movethewheels/pages/VehiclesPage.tsx +124 -0
  188. package/src/movethewheels/pages/WarehouseDetailsPage.tsx +216 -0
  189. package/src/movethewheels/pages/WarehousesPage.tsx +122 -0
  190. package/src/movethewheels/providers/MoveTheWheelsProvider.tsx +66 -0
  191. package/src/movethewheels/store/movethewheelsStore.ts +136 -0
  192. package/src/movethewheels/types/index.ts +744 -0
  193. package/src/movethewheels/utils/cn.ts +9 -0
  194. package/src/movethewheels/utils/formatters.ts +215 -0
  195. package/src/movethewheels/utils/graphqlClient.ts +63 -0
  196. package/src/movethewheels/utils/index.ts +8 -0
  197. package/src/movethewheels/utils/navigation.ts +70 -0
  198. package/src/operations/global/.gitkeep +0 -0
  199. package/src/operations/wspace/movethewheels/fragments/core.graphql +191 -0
  200. package/src/operations/wspace/movethewheels/mutations/entities.graphql +87 -0
  201. package/src/operations/wspace/movethewheels/mutations/logistics.graphql +86 -0
  202. package/src/operations/wspace/movethewheels/mutations/marketplace-reports.graphql +81 -0
  203. package/src/operations/wspace/movethewheels/mutations/orders.graphql +21 -0
  204. package/src/operations/wspace/movethewheels/queries/dashboard.graphql +61 -0
  205. package/src/operations/wspace/movethewheels/queries/entities.graphql +83 -0
  206. package/src/operations/wspace/movethewheels/queries/logistics.graphql +84 -0
  207. package/src/operations/wspace/movethewheels/queries/marketplace-reports.graphql +40 -0
  208. package/src/operations/wspace/movethewheels/queries/orders.graphql +43 -0
@@ -0,0 +1,240 @@
1
+ import { d as e, f as t, g as n, h as r, i, it as a, l as o, n as s, r as c, u as l } from "./PageLayout-B7b0vl0R.js";
2
+ import { t as u } from "./arrow-left-6CiLhqVp.js";
3
+ import { t as d } from "./circle-check-big-D-JMHcTe.js";
4
+ import { t as f } from "./clock-CvwBKbQP.js";
5
+ import { t as p } from "./map-pin-CFBOmh-A.js";
6
+ import { t as m } from "./navigation-C2fY_aS9.js";
7
+ import { t as h } from "./square-pen-BwQ67vLE.js";
8
+ import { r as g } from "./graphqlClient-CdJyR_ed.js";
9
+ import { r as _, t as v } from "./useRoutes-v4aBaS-E.js";
10
+ import { r as y } from "./StatusBadge-BrrwraIA.js";
11
+ import { r as b, t as x } from "./formatters-_vJlC-47.js";
12
+ import { t as S } from "./navigation-BgnOfsVd.js";
13
+ import { useParams as C } from "react-router-dom";
14
+ import { jsx as w, jsxs as T } from "react/jsx-runtime";
15
+ //#region node_modules/lucide-react/dist/esm/icons/zap.js
16
+ var E = a("Zap", [["path", {
17
+ d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
18
+ key: "1xq2db"
19
+ }]]);
20
+ //#endregion
21
+ //#region src/movethewheels/pages/RouteDetailsPage.tsx
22
+ function D() {
23
+ let { routeId: a } = C(), { basePath: D, navigate: O } = g(), { route: k, isLoading: A, error: j, refetch: M } = v(a), { optimizeRoute: N } = _(), P = () => O?.(S(D, "routes"));
24
+ return a ? A ? /* @__PURE__ */ w(c, { message: "Loading route details..." }) : j || !k ? /* @__PURE__ */ w(s, {
25
+ title: "Route not found",
26
+ onRetry: M
27
+ }) : /* @__PURE__ */ w(i, {
28
+ title: k.name,
29
+ subtitle: `${k.stops.length} stops - ${k.distance.toFixed(1)} km`,
30
+ icon: /* @__PURE__ */ w(m, { size: 24 }),
31
+ headerActions: /* @__PURE__ */ T("div", {
32
+ className: "flex gap-2",
33
+ children: [
34
+ /* @__PURE__ */ T(l, {
35
+ variant: "outline",
36
+ onClick: P,
37
+ children: [/* @__PURE__ */ w(u, { size: 16 }), " Back"]
38
+ }),
39
+ !k.optimized && /* @__PURE__ */ T(l, {
40
+ variant: "outline",
41
+ onClick: async () => {
42
+ try {
43
+ await N(k.id), M();
44
+ } catch (e) {
45
+ console.error(e);
46
+ }
47
+ },
48
+ children: [/* @__PURE__ */ w(E, { size: 16 }), " Optimize"]
49
+ }),
50
+ /* @__PURE__ */ T(l, { children: [/* @__PURE__ */ w(h, { size: 16 }), " Edit"] })
51
+ ]
52
+ }),
53
+ headerContent: /* @__PURE__ */ T("div", {
54
+ className: "flex gap-2",
55
+ children: [/* @__PURE__ */ w(y, {
56
+ status: k.status,
57
+ customColors: {
58
+ planned: {
59
+ bg: "bg-blue-100",
60
+ text: "text-blue-700"
61
+ },
62
+ in_progress: {
63
+ bg: "bg-yellow-100",
64
+ text: "text-yellow-700"
65
+ },
66
+ completed: {
67
+ bg: "bg-green-100",
68
+ text: "text-green-700"
69
+ },
70
+ cancelled: {
71
+ bg: "bg-red-100",
72
+ text: "text-red-700"
73
+ }
74
+ }[k.status]
75
+ }), /* @__PURE__ */ w(o, {
76
+ variant: k.optimized ? "default" : "secondary",
77
+ children: k.optimized ? "Optimized" : "Not Optimized"
78
+ })]
79
+ }),
80
+ children: /* @__PURE__ */ T("div", {
81
+ className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
82
+ children: [/* @__PURE__ */ T("div", {
83
+ className: "lg:col-span-2 space-y-6",
84
+ children: [/* @__PURE__ */ T(e, { children: [/* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { children: "Route Map" }) }), /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w("div", {
85
+ className: "aspect-video bg-muted rounded-lg flex items-center justify-center",
86
+ children: /* @__PURE__ */ T("div", {
87
+ className: "text-center text-muted-foreground",
88
+ children: [/* @__PURE__ */ w(p, {
89
+ size: 48,
90
+ className: "mx-auto mb-2 opacity-50"
91
+ }), /* @__PURE__ */ w("p", { children: "Route map visualization" })]
92
+ })
93
+ }) })] }), /* @__PURE__ */ T(e, { children: [/* @__PURE__ */ w(r, { children: /* @__PURE__ */ T(n, { children: [
94
+ "Stops (",
95
+ k.stops.length,
96
+ ")"
97
+ ] }) }), /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w("div", {
98
+ className: "space-y-4",
99
+ children: k.stops.map((e, t) => /* @__PURE__ */ T("div", {
100
+ className: "flex gap-4",
101
+ children: [/* @__PURE__ */ T("div", {
102
+ className: "relative",
103
+ children: [/* @__PURE__ */ w("div", {
104
+ className: `w-8 h-8 rounded-full flex items-center justify-center ${e.status === "completed" ? "bg-green-500 text-white" : "bg-muted"}`,
105
+ children: e.status === "completed" ? /* @__PURE__ */ w(d, { size: 16 }) : e.sequence
106
+ }), t < k.stops.length - 1 && /* @__PURE__ */ w("div", { className: "absolute top-8 left-4 w-px h-12 bg-border" })]
107
+ }), /* @__PURE__ */ w("div", {
108
+ className: "flex-1 pb-4",
109
+ children: /* @__PURE__ */ T("div", {
110
+ className: "flex items-center justify-between",
111
+ children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("div", {
112
+ className: "flex items-center gap-2",
113
+ children: [/* @__PURE__ */ w(o, {
114
+ variant: e.type === "pickup" ? "secondary" : "default",
115
+ className: "capitalize",
116
+ children: e.type
117
+ }), /* @__PURE__ */ T("span", {
118
+ className: "font-medium",
119
+ children: ["Order #", e.orderId]
120
+ })]
121
+ }), /* @__PURE__ */ w("p", {
122
+ className: "text-sm text-muted-foreground mt-1",
123
+ children: x(e.address)
124
+ })] }), /* @__PURE__ */ T("div", {
125
+ className: "text-right",
126
+ children: [
127
+ /* @__PURE__ */ T("p", {
128
+ className: "text-sm",
129
+ children: ["Scheduled: ", b(e.scheduledTime, "time")]
130
+ }),
131
+ e.actualTime && /* @__PURE__ */ T("p", {
132
+ className: "text-sm text-green-600",
133
+ children: ["Actual: ", b(e.actualTime, "time")]
134
+ }),
135
+ /* @__PURE__ */ T("p", {
136
+ className: "text-xs text-muted-foreground",
137
+ children: [e.duration, " min stop"]
138
+ })
139
+ ]
140
+ })]
141
+ })
142
+ })]
143
+ }, e.id))
144
+ }) })] })]
145
+ }), /* @__PURE__ */ T("div", {
146
+ className: "space-y-6",
147
+ children: [
148
+ /* @__PURE__ */ T(e, { children: [/* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { children: "Route Info" }) }), /* @__PURE__ */ T(t, {
149
+ className: "space-y-4",
150
+ children: [
151
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
152
+ className: "text-sm text-muted-foreground",
153
+ children: "Total Distance"
154
+ }), /* @__PURE__ */ T("p", {
155
+ className: "text-2xl font-bold",
156
+ children: [k.distance.toFixed(1), /* @__PURE__ */ w("span", {
157
+ className: "text-sm font-normal",
158
+ children: " km"
159
+ })]
160
+ })] }),
161
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
162
+ className: "text-sm text-muted-foreground",
163
+ children: "Est. Duration"
164
+ }), /* @__PURE__ */ T("p", {
165
+ className: "text-2xl font-bold",
166
+ children: [k.estimatedDuration, /* @__PURE__ */ w("span", {
167
+ className: "text-sm font-normal",
168
+ children: " min"
169
+ })]
170
+ })] }),
171
+ k.actualDuration && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
172
+ className: "text-sm text-muted-foreground",
173
+ children: "Actual Duration"
174
+ }), /* @__PURE__ */ T("p", {
175
+ className: "text-2xl font-bold",
176
+ children: [k.actualDuration, /* @__PURE__ */ w("span", {
177
+ className: "text-sm font-normal",
178
+ children: " min"
179
+ })]
180
+ })] })
181
+ ]
182
+ })] }),
183
+ /* @__PURE__ */ T(e, { children: [/* @__PURE__ */ w(r, { children: /* @__PURE__ */ T(n, {
184
+ className: "flex items-center gap-2",
185
+ children: [/* @__PURE__ */ w(f, { size: 18 }), " Timeline"]
186
+ }) }), /* @__PURE__ */ T(t, {
187
+ className: "space-y-3",
188
+ children: [
189
+ k.startTime && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
190
+ className: "text-sm text-muted-foreground",
191
+ children: "Started"
192
+ }), /* @__PURE__ */ w("p", { children: b(k.startTime, "full") })] }),
193
+ k.endTime && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
194
+ className: "text-sm text-muted-foreground",
195
+ children: "Completed"
196
+ }), /* @__PURE__ */ w("p", { children: b(k.endTime, "full") })] }),
197
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
198
+ className: "text-sm text-muted-foreground",
199
+ children: "Created"
200
+ }), /* @__PURE__ */ w("p", { children: b(k.createdAt, "full") })] })
201
+ ]
202
+ })] }),
203
+ k.trafficConditions.length > 0 && /* @__PURE__ */ T(e, { children: [/* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { children: "Traffic Conditions" }) }), /* @__PURE__ */ w(t, { children: k.trafficConditions.map((e, t) => /* @__PURE__ */ T("div", {
204
+ className: `p-2 rounded mb-2 ${e.condition === "severe" ? "bg-red-50" : e.condition === "heavy" ? "bg-orange-50" : "bg-yellow-50"}`,
205
+ children: [/* @__PURE__ */ T("p", {
206
+ className: "text-sm font-medium capitalize",
207
+ children: [e.condition, " traffic"]
208
+ }), /* @__PURE__ */ T("p", {
209
+ className: "text-xs text-muted-foreground",
210
+ children: [
211
+ e.location,
212
+ " - +",
213
+ e.delay,
214
+ " min delay"
215
+ ]
216
+ })]
217
+ }, t)) })] })
218
+ ]
219
+ })]
220
+ })
221
+ }) : /* @__PURE__ */ w(i, {
222
+ title: "Create Route",
223
+ subtitle: "Plan a new delivery route",
224
+ icon: /* @__PURE__ */ w(m, { size: 24 }),
225
+ headerActions: /* @__PURE__ */ T(l, {
226
+ variant: "outline",
227
+ onClick: P,
228
+ children: [/* @__PURE__ */ w(u, { size: 16 }), " Back"]
229
+ }),
230
+ children: /* @__PURE__ */ w(e, { children: /* @__PURE__ */ w(t, {
231
+ className: "p-8 text-center",
232
+ children: /* @__PURE__ */ w("p", {
233
+ className: "text-muted-foreground",
234
+ children: "Route creation form would go here"
235
+ })
236
+ }) })
237
+ });
238
+ }
239
+ //#endregion
240
+ export { D as default };
@@ -0,0 +1,116 @@
1
+ import { i as e, l as t, u as n } from "./PageLayout-B7b0vl0R.js";
2
+ import { t as r } from "./DataTable-CRIKfdIN.js";
3
+ import { t as i } from "./navigation-C2fY_aS9.js";
4
+ import { t as a } from "./plus-Bl7uX6Ji.js";
5
+ import { t as o } from "./refresh-cw-BYjl3K-8.js";
6
+ import { r as s } from "./graphqlClient-CdJyR_ed.js";
7
+ import { r as c } from "./useRoutes-v4aBaS-E.js";
8
+ import { r as l } from "./StatusBadge-BrrwraIA.js";
9
+ import { r as u } from "./formatters-_vJlC-47.js";
10
+ import { t as d } from "./navigation-BgnOfsVd.js";
11
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
12
+ //#region src/movethewheels/pages/RoutesPage.tsx
13
+ function m() {
14
+ let { basePath: m, navigate: h } = s(), { routes: g, totalRoutes: _, isLoading: v, refetch: y } = c(), b = (e) => h?.(d(m, e));
15
+ return /* @__PURE__ */ f(e, {
16
+ title: "Routes",
17
+ subtitle: `${_} routes`,
18
+ icon: /* @__PURE__ */ f(i, { size: 24 }),
19
+ headerActions: /* @__PURE__ */ p("div", {
20
+ className: "flex gap-2",
21
+ children: [/* @__PURE__ */ p(n, {
22
+ variant: "outline",
23
+ onClick: y,
24
+ children: [/* @__PURE__ */ f(o, { size: 16 }), " Refresh"]
25
+ }), /* @__PURE__ */ p(n, {
26
+ onClick: () => b("routes/new"),
27
+ children: [/* @__PURE__ */ f(a, { size: 16 }), " Create Route"]
28
+ })]
29
+ }),
30
+ children: /* @__PURE__ */ f(r, {
31
+ columns: [
32
+ {
33
+ id: "name",
34
+ header: "Route Name",
35
+ accessorKey: "name",
36
+ sortable: !0,
37
+ cell: (e) => /* @__PURE__ */ f("span", {
38
+ className: "font-medium",
39
+ children: e.name
40
+ })
41
+ },
42
+ {
43
+ id: "status",
44
+ header: "Status",
45
+ accessorKey: "status",
46
+ sortable: !0,
47
+ cell: (e) => /* @__PURE__ */ f(l, {
48
+ status: e.status,
49
+ customColors: {
50
+ planned: {
51
+ bg: "bg-blue-100",
52
+ text: "text-blue-700"
53
+ },
54
+ in_progress: {
55
+ bg: "bg-yellow-100",
56
+ text: "text-yellow-700"
57
+ },
58
+ completed: {
59
+ bg: "bg-green-100",
60
+ text: "text-green-700"
61
+ },
62
+ cancelled: {
63
+ bg: "bg-red-100",
64
+ text: "text-red-700"
65
+ }
66
+ }[e.status]
67
+ })
68
+ },
69
+ {
70
+ id: "stops",
71
+ header: "Stops",
72
+ cell: (e) => /* @__PURE__ */ p(t, {
73
+ variant: "secondary",
74
+ children: [e.stops.length, " stops"]
75
+ })
76
+ },
77
+ {
78
+ id: "distance",
79
+ header: "Distance",
80
+ accessorKey: "distance",
81
+ sortable: !0,
82
+ cell: (e) => `${e.distance.toFixed(1)} km`
83
+ },
84
+ {
85
+ id: "duration",
86
+ header: "Est. Duration",
87
+ cell: (e) => `${e.estimatedDuration} min`
88
+ },
89
+ {
90
+ id: "optimized",
91
+ header: "Optimized",
92
+ cell: (e) => /* @__PURE__ */ f(t, {
93
+ variant: e.optimized ? "default" : "outline",
94
+ children: e.optimized ? "Yes" : "No"
95
+ })
96
+ },
97
+ {
98
+ id: "created",
99
+ header: "Created",
100
+ accessorKey: "createdAt",
101
+ sortable: !0,
102
+ cell: (e) => u(e.createdAt, "short")
103
+ }
104
+ ],
105
+ data: g,
106
+ isLoading: v,
107
+ searchable: !0,
108
+ searchPlaceholder: "Search routes...",
109
+ searchFields: ["name"],
110
+ onRowClick: (e) => b(`routes/${e.id}`),
111
+ getRowId: (e) => e.id
112
+ })
113
+ });
114
+ }
115
+ //#endregion
116
+ export { m as default };
@@ -0,0 +1,247 @@
1
+ import { A as e, F as t, I as n, J as r, L as i, P as a, R as o, V as s, X as c, Y as l, Z as u, d, f, g as p, h as m, i as h, it as g, j as _, p as v, u as y } from "./PageLayout-B7b0vl0R.js";
2
+ import { n as b, t as x } from "./settings-C4kIDsYg.js";
3
+ import { t as S } from "./save-C-qDVat-.js";
4
+ import { t as C } from "./user-BplzDrLP.js";
5
+ import { jsx as w, jsxs as T } from "react/jsx-runtime";
6
+ //#region node_modules/lucide-react/dist/esm/icons/bell.js
7
+ var E = g("Bell", [["path", {
8
+ d: "M10.268 21a2 2 0 0 0 3.464 0",
9
+ key: "vwvbt9"
10
+ }], ["path", {
11
+ d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",
12
+ key: "11g9vi"
13
+ }]]), D = g("Shield", [["path", {
14
+ d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
15
+ key: "oel41y"
16
+ }]]), O = g("Webhook", [
17
+ ["path", {
18
+ d: "M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",
19
+ key: "q3hayz"
20
+ }],
21
+ ["path", {
22
+ d: "m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",
23
+ key: "1go1hn"
24
+ }],
25
+ ["path", {
26
+ d: "m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",
27
+ key: "qlwsc0"
28
+ }]
29
+ ]);
30
+ //#endregion
31
+ //#region src/movethewheels/pages/SettingsPage.tsx
32
+ function k() {
33
+ return /* @__PURE__ */ T(h, {
34
+ title: "Settings",
35
+ subtitle: "Manage your account and preferences",
36
+ icon: /* @__PURE__ */ w(x, { size: 24 }),
37
+ children: [/* @__PURE__ */ T(r, {
38
+ defaultValue: "general",
39
+ children: [
40
+ /* @__PURE__ */ T(c, {
41
+ className: "mb-6",
42
+ children: [
43
+ /* @__PURE__ */ T(u, {
44
+ value: "general",
45
+ children: [/* @__PURE__ */ w(C, { size: 16 }), " General"]
46
+ }),
47
+ /* @__PURE__ */ T(u, {
48
+ value: "notifications",
49
+ children: [/* @__PURE__ */ w(E, { size: 16 }), " Notifications"]
50
+ }),
51
+ /* @__PURE__ */ T(u, {
52
+ value: "security",
53
+ children: [/* @__PURE__ */ w(D, { size: 16 }), " Security"]
54
+ }),
55
+ /* @__PURE__ */ T(u, {
56
+ value: "integrations",
57
+ children: [/* @__PURE__ */ w(O, { size: 16 }), " Integrations"]
58
+ })
59
+ ]
60
+ }),
61
+ /* @__PURE__ */ T(l, {
62
+ value: "general",
63
+ className: "space-y-6",
64
+ children: [/* @__PURE__ */ T(d, { children: [/* @__PURE__ */ T(m, { children: [/* @__PURE__ */ w(p, { children: "Company Information" }), /* @__PURE__ */ w(v, { children: "Basic company details" })] }), /* @__PURE__ */ w(f, {
65
+ className: "space-y-4",
66
+ children: /* @__PURE__ */ T("div", {
67
+ className: "grid grid-cols-2 gap-4",
68
+ children: [
69
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Company Name" }), /* @__PURE__ */ w(e, { defaultValue: "QuickLogistics Pro" })] }),
70
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Contact Email" }), /* @__PURE__ */ w(e, { defaultValue: "contact@quicklogistics.com" })] }),
71
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Phone" }), /* @__PURE__ */ w(e, { defaultValue: "+1-555-QUICK" })] }),
72
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Website" }), /* @__PURE__ */ w(e, { defaultValue: "https://quicklogistics.com" })] })
73
+ ]
74
+ })
75
+ })] }), /* @__PURE__ */ T(d, { children: [/* @__PURE__ */ w(m, { children: /* @__PURE__ */ T(p, {
76
+ className: "flex items-center gap-2",
77
+ children: [/* @__PURE__ */ w(b, { size: 18 }), " Localization"]
78
+ }) }), /* @__PURE__ */ w(f, {
79
+ className: "space-y-4",
80
+ children: /* @__PURE__ */ T("div", {
81
+ className: "grid grid-cols-3 gap-4",
82
+ children: [
83
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Timezone" }), /* @__PURE__ */ T(a, {
84
+ defaultValue: "pst",
85
+ children: [/* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(o, {}) }), /* @__PURE__ */ T(t, { children: [
86
+ /* @__PURE__ */ w(n, {
87
+ value: "pst",
88
+ children: "Pacific Time (PST)"
89
+ }),
90
+ /* @__PURE__ */ w(n, {
91
+ value: "est",
92
+ children: "Eastern Time (EST)"
93
+ }),
94
+ /* @__PURE__ */ w(n, {
95
+ value: "utc",
96
+ children: "UTC"
97
+ })
98
+ ] })]
99
+ })] }),
100
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Currency" }), /* @__PURE__ */ T(a, {
101
+ defaultValue: "usd",
102
+ children: [/* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(o, {}) }), /* @__PURE__ */ T(t, { children: [
103
+ /* @__PURE__ */ w(n, {
104
+ value: "usd",
105
+ children: "USD ($)"
106
+ }),
107
+ /* @__PURE__ */ w(n, {
108
+ value: "eur",
109
+ children: "EUR (€)"
110
+ }),
111
+ /* @__PURE__ */ w(n, {
112
+ value: "gbp",
113
+ children: "GBP (£)"
114
+ })
115
+ ] })]
116
+ })] }),
117
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Language" }), /* @__PURE__ */ T(a, {
118
+ defaultValue: "en",
119
+ children: [/* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(o, {}) }), /* @__PURE__ */ T(t, { children: [
120
+ /* @__PURE__ */ w(n, {
121
+ value: "en",
122
+ children: "English"
123
+ }),
124
+ /* @__PURE__ */ w(n, {
125
+ value: "es",
126
+ children: "Spanish"
127
+ }),
128
+ /* @__PURE__ */ w(n, {
129
+ value: "fr",
130
+ children: "French"
131
+ })
132
+ ] })]
133
+ })] })
134
+ ]
135
+ })
136
+ })] })]
137
+ }),
138
+ /* @__PURE__ */ w(l, {
139
+ value: "notifications",
140
+ className: "space-y-6",
141
+ children: /* @__PURE__ */ T(d, { children: [/* @__PURE__ */ w(m, { children: /* @__PURE__ */ w(p, { children: "Email Notifications" }) }), /* @__PURE__ */ w(f, {
142
+ className: "space-y-4",
143
+ children: [
144
+ {
145
+ label: "Order updates",
146
+ desc: "Receive notifications for order status changes"
147
+ },
148
+ {
149
+ label: "Delivery alerts",
150
+ desc: "Get notified about delivery issues"
151
+ },
152
+ {
153
+ label: "System notifications",
154
+ desc: "Important system updates and maintenance"
155
+ },
156
+ {
157
+ label: "Weekly reports",
158
+ desc: "Receive weekly performance summary"
159
+ }
160
+ ].map((e) => /* @__PURE__ */ T("div", {
161
+ className: "flex items-center justify-between",
162
+ children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
163
+ className: "font-medium",
164
+ children: e.label
165
+ }), /* @__PURE__ */ w("p", {
166
+ className: "text-sm text-muted-foreground",
167
+ children: e.desc
168
+ })] }), /* @__PURE__ */ w(s, { defaultChecked: !0 })]
169
+ }, e.label))
170
+ })] })
171
+ }),
172
+ /* @__PURE__ */ T(l, {
173
+ value: "security",
174
+ className: "space-y-6",
175
+ children: [/* @__PURE__ */ T(d, { children: [/* @__PURE__ */ w(m, { children: /* @__PURE__ */ w(p, { children: "Password" }) }), /* @__PURE__ */ T(f, {
176
+ className: "space-y-4",
177
+ children: [
178
+ /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Current Password" }), /* @__PURE__ */ w(e, { type: "password" })] }),
179
+ /* @__PURE__ */ T("div", {
180
+ className: "grid grid-cols-2 gap-4",
181
+ children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "New Password" }), /* @__PURE__ */ w(e, { type: "password" })] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Confirm Password" }), /* @__PURE__ */ w(e, { type: "password" })] })]
182
+ }),
183
+ /* @__PURE__ */ w(y, { children: "Update Password" })
184
+ ]
185
+ })] }), /* @__PURE__ */ T(d, { children: [/* @__PURE__ */ T(m, { children: [/* @__PURE__ */ w(p, { children: "Two-Factor Authentication" }), /* @__PURE__ */ w(v, { children: "Add an extra layer of security" })] }), /* @__PURE__ */ w(f, { children: /* @__PURE__ */ T("div", {
186
+ className: "flex items-center justify-between",
187
+ children: [/* @__PURE__ */ w("div", { children: /* @__PURE__ */ T("p", { children: ["Status: ", /* @__PURE__ */ w("span", {
188
+ className: "text-red-500 font-medium",
189
+ children: "Disabled"
190
+ })] }) }), /* @__PURE__ */ w(y, {
191
+ variant: "outline",
192
+ children: "Enable 2FA"
193
+ })]
194
+ }) })] })]
195
+ }),
196
+ /* @__PURE__ */ T(l, {
197
+ value: "integrations",
198
+ className: "space-y-6",
199
+ children: [/* @__PURE__ */ T(d, { children: [/* @__PURE__ */ T(m, { children: [/* @__PURE__ */ w(p, { children: "API Keys" }), /* @__PURE__ */ w(v, { children: "Manage your API access" })] }), /* @__PURE__ */ T(f, {
200
+ className: "space-y-4",
201
+ children: [/* @__PURE__ */ T("div", {
202
+ className: "p-4 bg-muted rounded-lg",
203
+ children: [/* @__PURE__ */ w("p", {
204
+ className: "font-medium",
205
+ children: "Production API Key"
206
+ }), /* @__PURE__ */ w("code", {
207
+ className: "text-sm",
208
+ children: "pk_live_••••••••••••••••"
209
+ })]
210
+ }), /* @__PURE__ */ w(y, {
211
+ variant: "outline",
212
+ children: "Generate New Key"
213
+ })]
214
+ })] }), /* @__PURE__ */ T(d, { children: [/* @__PURE__ */ w(m, { children: /* @__PURE__ */ w(p, { children: "Connected Services" }) }), /* @__PURE__ */ w(f, {
215
+ className: "space-y-3",
216
+ children: [
217
+ {
218
+ name: "Google Maps",
219
+ status: "Connected"
220
+ },
221
+ {
222
+ name: "Stripe",
223
+ status: "Connected"
224
+ },
225
+ {
226
+ name: "Twilio",
227
+ status: "Not Connected"
228
+ }
229
+ ].map((e) => /* @__PURE__ */ T("div", {
230
+ className: "flex items-center justify-between p-3 border rounded-lg",
231
+ children: [/* @__PURE__ */ w("span", { children: e.name }), /* @__PURE__ */ w(y, {
232
+ variant: e.status === "Connected" ? "outline" : "default",
233
+ size: "sm",
234
+ children: e.status === "Connected" ? "Manage" : "Connect"
235
+ })]
236
+ }, e.name))
237
+ })] })]
238
+ })
239
+ ]
240
+ }), /* @__PURE__ */ w("div", {
241
+ className: "flex justify-end",
242
+ children: /* @__PURE__ */ T(y, { children: [/* @__PURE__ */ w(S, { size: 16 }), " Save Changes"] })
243
+ })]
244
+ });
245
+ }
246
+ //#endregion
247
+ export { k as default };