@burdenoff/microfe-movethewheels 2026.625.1 → 2026.626.2

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,240 +0,0 @@
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-D3N8MCTm.js";
2
- import { t as u } from "./arrow-left-CBpZKkpq.js";
3
- import { t as d } from "./circle-check-big-CjuPVo3_.js";
4
- import { t as f } from "./clock-BjkdnddD.js";
5
- import { t as p } from "./map-pin-BSaf5IDL.js";
6
- import { t as m } from "./navigation-DaTbrhw2.js";
7
- import { t as h } from "./square-pen-hLIbFQFV.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-CijYQXtb.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-bg-sunken rounded-lg flex items-center justify-center",
86
- children: /* @__PURE__ */ T("div", {
87
- className: "text-center text-text-secondary",
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-bg-sunken"}`,
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-text-secondary 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-text-secondary",
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-text-secondary",
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-text-secondary",
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-text-secondary",
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-text-secondary",
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-text-secondary",
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-text-secondary",
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-text-secondary",
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-text-secondary",
234
- children: "Route creation form would go here"
235
- })
236
- }) })
237
- });
238
- }
239
- //#endregion
240
- export { D as default };
@@ -1,118 +0,0 @@
1
- import { i as e, l as t } from "./PageLayout-D3N8MCTm.js";
2
- import { t as n } from "./DataTable-CfWvFw5B.js";
3
- import { t as r } from "./navigation-DaTbrhw2.js";
4
- import { t as i } from "./plus-Dl1rLeJR.js";
5
- import { t as a } from "./refresh-cw-CWfERAit.js";
6
- import { r as o } from "./graphqlClient-CdJyR_ed.js";
7
- import { r as s } from "./useRoutes-v4aBaS-E.js";
8
- import { r as c } from "./StatusBadge-CijYQXtb.js";
9
- import { r as l } from "./formatters-_vJlC-47.js";
10
- import { t as u } from "./navigation-BgnOfsVd.js";
11
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
12
- import { CTAOverflowMenu as p } from "@burdenoff/fe-libs/ui";
13
- //#region src/movethewheels/pages/RoutesPage.tsx
14
- function m() {
15
- let { basePath: m, navigate: h } = o(), { routes: g, totalRoutes: _, isLoading: v, refetch: y } = s(), b = (e) => h?.(u(m, e));
16
- return /* @__PURE__ */ d(e, {
17
- title: "Routes",
18
- subtitle: `${_} routes`,
19
- icon: /* @__PURE__ */ d(r, { size: 24 }),
20
- headerActions: /* @__PURE__ */ d(p, {
21
- primary: {
22
- label: "Create Route",
23
- icon: /* @__PURE__ */ d(i, { size: 16 }),
24
- onSelect: () => b("routes/new")
25
- },
26
- actions: [{
27
- label: "Refresh",
28
- icon: /* @__PURE__ */ d(a, { size: 16 }),
29
- onSelect: () => y()
30
- }]
31
- }),
32
- children: /* @__PURE__ */ d(n, {
33
- columns: [
34
- {
35
- id: "name",
36
- header: "Route Name",
37
- accessorKey: "name",
38
- sortable: !0,
39
- cell: (e) => /* @__PURE__ */ d("span", {
40
- className: "font-medium",
41
- children: e.name
42
- })
43
- },
44
- {
45
- id: "status",
46
- header: "Status",
47
- accessorKey: "status",
48
- sortable: !0,
49
- cell: (e) => /* @__PURE__ */ d(c, {
50
- status: e.status,
51
- customColors: {
52
- planned: {
53
- bg: "bg-blue-100",
54
- text: "text-blue-700"
55
- },
56
- in_progress: {
57
- bg: "bg-yellow-100",
58
- text: "text-yellow-700"
59
- },
60
- completed: {
61
- bg: "bg-green-100",
62
- text: "text-green-700"
63
- },
64
- cancelled: {
65
- bg: "bg-red-100",
66
- text: "text-red-700"
67
- }
68
- }[e.status]
69
- })
70
- },
71
- {
72
- id: "stops",
73
- header: "Stops",
74
- cell: (e) => /* @__PURE__ */ f(t, {
75
- variant: "secondary",
76
- children: [e.stops.length, " stops"]
77
- })
78
- },
79
- {
80
- id: "distance",
81
- header: "Distance",
82
- accessorKey: "distance",
83
- sortable: !0,
84
- cell: (e) => `${e.distance.toFixed(1)} km`
85
- },
86
- {
87
- id: "duration",
88
- header: "Est. Duration",
89
- cell: (e) => `${e.estimatedDuration} min`
90
- },
91
- {
92
- id: "optimized",
93
- header: "Optimized",
94
- cell: (e) => /* @__PURE__ */ d(t, {
95
- variant: e.optimized ? "default" : "outline",
96
- children: e.optimized ? "Yes" : "No"
97
- })
98
- },
99
- {
100
- id: "created",
101
- header: "Created",
102
- accessorKey: "createdAt",
103
- sortable: !0,
104
- cell: (e) => l(e.createdAt, "short")
105
- }
106
- ],
107
- data: g,
108
- isLoading: v,
109
- searchable: !0,
110
- searchPlaceholder: "Search routes...",
111
- searchFields: ["name"],
112
- onRowClick: (e) => b(`routes/${e.id}`),
113
- getRowId: (e) => e.id
114
- })
115
- });
116
- }
117
- //#endregion
118
- export { m as default };
@@ -1,247 +0,0 @@
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-D3N8MCTm.js";
2
- import { n as b, t as x } from "./settings-3Rw5NwFF.js";
3
- import { t as S } from "./save-XH8vydOn.js";
4
- import { t as C } from "./user-Dz5TJZFs.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-text-secondary",
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-bg-sunken 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 };