@burdenoff/microfe-movethewheels 2026.626.2 → 2026.703.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 (120) hide show
  1. package/dist/{AIAssistantPage-AvsMbunM.js → AIAssistantPage-C3ovZ0Fh.js} +100 -73
  2. package/dist/AnalyticsPage-O8SpY-V4.js +215 -0
  3. package/dist/{CreateOrderPage-CjlnEtk3.js → CreateOrderPage-CB1_-_mN.js} +33 -35
  4. package/dist/{CustomerDetailsPage-I6cdDHUi.js → CustomerDetailsPage-BaeKEI1D.js} +42 -44
  5. package/dist/{CustomersPage-CGGfD4ki.js → CustomersPage-DRaLuHMC.js} +26 -28
  6. package/dist/{DashboardPage-D2HRqwg9.js → DashboardPage-DPjhNfKB.js} +85 -83
  7. package/dist/{DataTable-CD9ZhpLB.js → DataTable-DmciIKKM.js} +3 -3
  8. package/dist/{DriverDetailsPage-rg_pGNuP.js → DriverDetailsPage-CSSQTOzn.js} +52 -54
  9. package/dist/{DriversPage-DKiynISH.js → DriversPage-C2Bk0w4Q.js} +24 -26
  10. package/dist/{FinancePage-Vg8WPs38.js → FinancePage-lmp0Sdsw.js} +9 -9
  11. package/dist/FleetPage-DZn5pIqd.js +365 -0
  12. package/dist/ImportExportPage-BIUJZc7O.js +290 -0
  13. package/dist/InventoryPage-Cxh1zYJd.js +253 -0
  14. package/dist/{LiveTrackingPage-DQ1q4Id3.js → LiveTrackingPage-BY1yAkIt.js} +60 -56
  15. package/dist/MarketplacePage-RMuL17EA.js +247 -0
  16. package/dist/{MetricCard-B7yMyvMX.js → MetricCard-7aYgzZHK.js} +1 -1
  17. package/dist/{OrderDetailsPage-CFASgsYX.js → OrderDetailsPage-C2Mf4KSy.js} +83 -85
  18. package/dist/{OrdersListPage-BHeT8S5o.js → OrdersListPage-BrPBtnhp.js} +31 -33
  19. package/dist/{PageLayout-D3N8MCTm.js → PageLayout-D4LDHJJq.js} +483 -422
  20. package/dist/{ProductDetailsPage-CFGcbaHo.js → ProductDetailsPage-CezzzZcj.js} +27 -29
  21. package/dist/{ProductsPage--xEpbQ8A.js → ProductsPage-I5DilIoY.js} +21 -23
  22. package/dist/ReportsPage-BDXNmUng.js +284 -0
  23. package/dist/RouteDetailsPage-BcomL20M.js +263 -0
  24. package/dist/RoutesPage-lqX9ylHP.js +144 -0
  25. package/dist/SettingsPage-CQVIOaNs.js +421 -0
  26. package/dist/StatusBadge-NpTeHVlw.js +152 -0
  27. package/dist/{TrackingPage-CcRc_dva.js → TrackingPage-BXrjz7V8.js} +59 -61
  28. package/dist/{VehicleDetailsPage-3YDMPsPs.js → VehicleDetailsPage-DZjLcJgr.js} +40 -42
  29. package/dist/{VehiclesPage-UlxPWP9K.js → VehiclesPage-6W39XT5W.js} +19 -21
  30. package/dist/{WarehouseDetailsPage-Db7KeN-d.js → WarehouseDetailsPage-C10pgRGW.js} +38 -40
  31. package/dist/{WarehousesPage-CuTO-OPp.js → WarehousesPage-CHvBqNaQ.js} +15 -17
  32. package/dist/{arrow-left-CBpZKkpq.js → arrow-left-n48Y-Wis.js} +1 -1
  33. package/dist/{box-CAaiElsb.js → box-D9Pal4HM.js} +1 -1
  34. package/dist/{chart-column-D1Ym15-S.js → chart-column-BFIJysDR.js} +1 -1
  35. package/dist/{chevron-right-BIFGi0UA.js → chevron-right-EMIIyyJ1.js} +1 -1
  36. package/dist/{circle-alert-DjmNo5_L.js → circle-alert-iY24lSlp.js} +1 -1
  37. package/dist/{circle-check-big-CjuPVo3_.js → circle-check-big-w0TrLKMF.js} +1 -1
  38. package/dist/{clock-BjkdnddD.js → clock-DJZtdl8u.js} +1 -1
  39. package/dist/{dollar-sign-IB4O0wuQ.js → dollar-sign-CgKQRz_e.js} +1 -1
  40. package/dist/{download-Dpa9vqoG.js → download-DRXxoiQR.js} +1 -1
  41. package/dist/{file-text-C8Uioy11.js → file-text-DWWY6_f5.js} +1 -1
  42. package/dist/{filter-Da5OZaHI.js → filter-DloLC2eE.js} +1 -1
  43. package/dist/index.js +119 -111
  44. package/dist/{map-_Per4sT9.js → map-CkJaULb2.js} +1 -1
  45. package/dist/{map-pin-BSaf5IDL.js → map-pin-BGiCvyCs.js} +1 -1
  46. package/dist/{navigation-DaTbrhw2.js → navigation-D36prnAn.js} +1 -1
  47. package/dist/{package-BE7U0wQE.js → package-BChUzpJS.js} +1 -1
  48. package/dist/{phone-DV4StZiA.js → phone-Ac9s3mo_.js} +1 -1
  49. package/dist/{plus-Dl1rLeJR.js → plus-Z76q-FZm.js} +1 -1
  50. package/dist/{refresh-cw-CWfERAit.js → refresh-cw-DKt6f5T6.js} +1 -1
  51. package/dist/{save-XH8vydOn.js → save-CojywNhG.js} +1 -1
  52. package/dist/{search-OxoIiL_C.js → search-CDGefqb3.js} +1 -1
  53. package/dist/{square-pen-hLIbFQFV.js → square-pen-CopE9GmB.js} +1 -1
  54. package/dist/{star-YsVV3MNQ.js → star-nHlLjDKR.js} +1 -1
  55. package/dist/{store-RCBl7HB-.js → store-BR9Voi5E.js} +1 -1
  56. package/dist/{trending-up-C-85AwGT.js → trending-up-B7W-GL6P.js} +1 -1
  57. package/dist/{triangle-alert-BOhfGgmh.js → triangle-alert-BonHFFNz.js} +1 -1
  58. package/dist/{truck-CtDjNFbi.js → truck-DrlfSpRC.js} +1 -1
  59. package/dist/{useAnalytics-ph7eTIK6.js → useAnalytics-CgdzUfY_.js} +40 -40
  60. package/dist/useAssistant-D4v3oxD3.js +84 -0
  61. package/dist/{useCustomers-bS3a4ytk.js → useCustomers-QrlozybF.js} +24 -24
  62. package/dist/{useFleet-BdETplNE.js → useFleet-DiAC-IiH.js} +70 -67
  63. package/dist/useImportExport-BLMnAKCC.js +55 -0
  64. package/dist/{useInventory-Dwn18FPz.js → useInventory-DKoks37x.js} +33 -33
  65. package/dist/{useOrders-D_3_hGMp.js → useOrders-D3UZVy8Y.js} +42 -42
  66. package/dist/useReports-Puq4DCH9.js +78 -0
  67. package/dist/{useRoutes-v4aBaS-E.js → useRoutes-Do57LvRb.js} +31 -31
  68. package/dist/useSettings-CkDH_-gM.js +81 -0
  69. package/dist/{useTracking-De2KIUNu.js → useTracking-GJify4HN.js} +22 -22
  70. package/dist/{user-Dz5TJZFs.js → user-CjSoudeu.js} +1 -1
  71. package/dist/{users-g2N0eL-Z.js → users-BAM4gHTn.js} +1 -1
  72. package/dist/{warehouse-D3WWDeTX.js → warehouse-C7MSr47B.js} +1 -1
  73. package/dist/{wrench-CmxY1n4I.js → wrench-CANXWxF-.js} +1 -1
  74. package/package.json +1 -1
  75. package/src/movethewheels/MoveTheWheelsRoutes.tsx +27 -3
  76. package/src/movethewheels/components/StatusBadge.tsx +18 -37
  77. package/src/movethewheels/constants/index.ts +67 -26
  78. package/src/movethewheels/hooks/index.ts +12 -0
  79. package/src/movethewheels/hooks/useAnalytics.ts +20 -6
  80. package/src/movethewheels/hooks/useAssistant.ts +74 -0
  81. package/src/movethewheels/hooks/useFleet.ts +63 -59
  82. package/src/movethewheels/hooks/useImportExport.ts +101 -0
  83. package/src/movethewheels/hooks/useReports.ts +158 -0
  84. package/src/movethewheels/hooks/useSettings.ts +120 -0
  85. package/src/movethewheels/pages/AIAssistantPage.tsx +53 -15
  86. package/src/movethewheels/pages/AnalyticsPage.tsx +67 -64
  87. package/src/movethewheels/pages/CustomerDetailsPage.tsx +1 -1
  88. package/src/movethewheels/pages/CustomersPage.tsx +1 -1
  89. package/src/movethewheels/pages/DashboardPage.tsx +42 -22
  90. package/src/movethewheels/pages/DriverDetailsPage.tsx +1 -1
  91. package/src/movethewheels/pages/DriversPage.tsx +1 -1
  92. package/src/movethewheels/pages/FleetPage.tsx +96 -38
  93. package/src/movethewheels/pages/ImportExportPage.tsx +174 -68
  94. package/src/movethewheels/pages/InventoryPage.tsx +66 -28
  95. package/src/movethewheels/pages/LiveTrackingPage.tsx +12 -3
  96. package/src/movethewheels/pages/MarketplacePage.tsx +87 -45
  97. package/src/movethewheels/pages/OrderDetailsPage.tsx +2 -2
  98. package/src/movethewheels/pages/ReportsPage.tsx +194 -90
  99. package/src/movethewheels/pages/RouteDetailsPage.tsx +5 -11
  100. package/src/movethewheels/pages/RoutesPage.tsx +4 -9
  101. package/src/movethewheels/pages/SettingsPage.tsx +234 -56
  102. package/src/movethewheels/pages/TrackingPage.tsx +6 -6
  103. package/src/movethewheels/providers/MoveTheWheelsProvider.tsx +7 -6
  104. package/src/movethewheels/store/movethewheelsStore.ts +1 -1
  105. package/dist/AnalyticsPage-CCLfHgQZ.js +0 -212
  106. package/dist/FleetPage-DddXt8r8.js +0 -332
  107. package/dist/ImportExportPage-BW6qO3kc.js +0 -248
  108. package/dist/InventoryPage-rMGuaJN-.js +0 -222
  109. package/dist/MarketplacePage-DKrXAv62.js +0 -219
  110. package/dist/ReportsPage-Bb7_90rK.js +0 -235
  111. package/dist/RouteDetailsPage-CVtDVb1N.js +0 -282
  112. package/dist/RoutesPage-s57PtgcQ.js +0 -163
  113. package/dist/SettingsPage-BYNCBOpN.js +0 -298
  114. package/dist/StatusBadge-CijYQXtb.js +0 -209
  115. package/dist/graphqlClient-CdJyR_ed.js +0 -55
  116. package/dist/navigation-BgnOfsVd.js +0 -6
  117. package/dist/route-Dp9JiN_E.js +0 -51
  118. package/dist/settings-3Rw5NwFF.js +0 -28
  119. package/src/movethewheels/constants/mockData.ts +0 -1342
  120. /package/dist/{formatters-_vJlC-47.js → formatters-DhKZ-eA1.js} +0 -0
@@ -1,298 +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 { useState as w } from "react";
6
- import { jsx as T, jsxs as E } from "react/jsx-runtime";
7
- import { EmphasisPanel as D, NextSteps as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
8
- //#region node_modules/lucide-react/dist/esm/icons/bell.js
9
- var A = g("Bell", [["path", {
10
- d: "M10.268 21a2 2 0 0 0 3.464 0",
11
- key: "vwvbt9"
12
- }], ["path", {
13
- 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",
14
- key: "11g9vi"
15
- }]]), j = g("Shield", [["path", {
16
- 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",
17
- key: "oel41y"
18
- }]]), M = g("Webhook", [
19
- ["path", {
20
- 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",
21
- key: "q3hayz"
22
- }],
23
- ["path", {
24
- d: "m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",
25
- key: "1go1hn"
26
- }],
27
- ["path", {
28
- d: "m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",
29
- key: "qlwsc0"
30
- }]
31
- ]);
32
- //#endregion
33
- //#region src/movethewheels/pages/SettingsPage.tsx
34
- function N() {
35
- let [g, N] = w("general");
36
- return /* @__PURE__ */ E(h, {
37
- title: "Settings",
38
- subtitle: "Manage your account and preferences",
39
- icon: /* @__PURE__ */ T(x, { size: 24 }),
40
- children: [
41
- /* @__PURE__ */ T(k, {
42
- icon: /* @__PURE__ */ T(x, { size: 18 }),
43
- children: "Configure how MoveTheWheels works for your business — company details and localization, which notifications you receive, account security, and the integrations (maps, payments, messaging) that power deliveries. Set these once so the rest of the app behaves the way you expect."
44
- }),
45
- /* @__PURE__ */ T(O, {
46
- storageKey: "movethewheels-settings",
47
- steps: [
48
- {
49
- id: "company",
50
- label: "Confirm company details & localization",
51
- description: "Set your name, contact info, timezone, currency and language.",
52
- icon: /* @__PURE__ */ T(C, { size: 16 }),
53
- onClick: () => N("general")
54
- },
55
- {
56
- id: "notifications",
57
- label: "Choose your notifications",
58
- description: "Decide which order, delivery and report emails you receive.",
59
- icon: /* @__PURE__ */ T(A, { size: 16 }),
60
- onClick: () => N("notifications")
61
- },
62
- {
63
- id: "security",
64
- label: "Secure your account",
65
- description: "Update your password and enable two-factor authentication.",
66
- icon: /* @__PURE__ */ T(j, { size: 16 }),
67
- onClick: () => N("security")
68
- },
69
- {
70
- id: "integrations",
71
- label: "Connect your tools",
72
- description: "Link maps, payments and messaging providers.",
73
- icon: /* @__PURE__ */ T(M, { size: 16 }),
74
- onClick: () => N("integrations")
75
- }
76
- ]
77
- }),
78
- /* @__PURE__ */ E(r, {
79
- value: g,
80
- onValueChange: N,
81
- children: [
82
- /* @__PURE__ */ E(c, {
83
- className: "mb-6",
84
- children: [
85
- /* @__PURE__ */ E(u, {
86
- value: "general",
87
- children: [/* @__PURE__ */ T(C, { size: 16 }), " General"]
88
- }),
89
- /* @__PURE__ */ E(u, {
90
- value: "notifications",
91
- children: [/* @__PURE__ */ T(A, { size: 16 }), " Notifications"]
92
- }),
93
- /* @__PURE__ */ E(u, {
94
- value: "security",
95
- children: [/* @__PURE__ */ T(j, { size: 16 }), " Security"]
96
- }),
97
- /* @__PURE__ */ E(u, {
98
- value: "integrations",
99
- children: [/* @__PURE__ */ T(M, { size: 16 }), " Integrations"]
100
- })
101
- ]
102
- }),
103
- /* @__PURE__ */ E(l, {
104
- value: "general",
105
- className: "space-y-6",
106
- children: [/* @__PURE__ */ E(D, { children: [
107
- /* @__PURE__ */ T("h2", {
108
- className: "text-base font-semibold text-text-primary",
109
- children: "Company Information"
110
- }),
111
- /* @__PURE__ */ T("p", {
112
- className: "text-sm text-text-secondary mb-4",
113
- children: "Basic company details"
114
- }),
115
- /* @__PURE__ */ E("div", {
116
- className: "grid grid-cols-2 gap-4",
117
- children: [
118
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(_, { children: "Company Name" }), /* @__PURE__ */ T(e, { defaultValue: "QuickLogistics Pro" })] }),
119
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(_, { children: "Contact Email" }), /* @__PURE__ */ T(e, { defaultValue: "contact@quicklogistics.com" })] }),
120
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(_, { children: "Phone" }), /* @__PURE__ */ T(e, { defaultValue: "+1-555-QUICK" })] }),
121
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(_, { children: "Website" }), /* @__PURE__ */ T(e, { defaultValue: "https://quicklogistics.com" })] })
122
- ]
123
- })
124
- ] }), /* @__PURE__ */ E(d, { children: [/* @__PURE__ */ T(m, { children: /* @__PURE__ */ E(p, {
125
- className: "flex items-center gap-2",
126
- children: [/* @__PURE__ */ T(b, { size: 18 }), " Localization"]
127
- }) }), /* @__PURE__ */ T(f, {
128
- className: "space-y-4",
129
- children: /* @__PURE__ */ E("div", {
130
- className: "grid grid-cols-3 gap-4",
131
- children: [
132
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(_, { children: "Timezone" }), /* @__PURE__ */ E(a, {
133
- defaultValue: "pst",
134
- children: [/* @__PURE__ */ T(i, { children: /* @__PURE__ */ T(o, {}) }), /* @__PURE__ */ E(t, { children: [
135
- /* @__PURE__ */ T(n, {
136
- value: "pst",
137
- children: "Pacific Time (PST)"
138
- }),
139
- /* @__PURE__ */ T(n, {
140
- value: "est",
141
- children: "Eastern Time (EST)"
142
- }),
143
- /* @__PURE__ */ T(n, {
144
- value: "utc",
145
- children: "UTC"
146
- })
147
- ] })]
148
- })] }),
149
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(_, { children: "Currency" }), /* @__PURE__ */ E(a, {
150
- defaultValue: "usd",
151
- children: [/* @__PURE__ */ T(i, { children: /* @__PURE__ */ T(o, {}) }), /* @__PURE__ */ E(t, { children: [
152
- /* @__PURE__ */ T(n, {
153
- value: "usd",
154
- children: "USD ($)"
155
- }),
156
- /* @__PURE__ */ T(n, {
157
- value: "eur",
158
- children: "EUR (€)"
159
- }),
160
- /* @__PURE__ */ T(n, {
161
- value: "gbp",
162
- children: "GBP (£)"
163
- })
164
- ] })]
165
- })] }),
166
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(_, { children: "Language" }), /* @__PURE__ */ E(a, {
167
- defaultValue: "en",
168
- children: [/* @__PURE__ */ T(i, { children: /* @__PURE__ */ T(o, {}) }), /* @__PURE__ */ E(t, { children: [
169
- /* @__PURE__ */ T(n, {
170
- value: "en",
171
- children: "English"
172
- }),
173
- /* @__PURE__ */ T(n, {
174
- value: "es",
175
- children: "Spanish"
176
- }),
177
- /* @__PURE__ */ T(n, {
178
- value: "fr",
179
- children: "French"
180
- })
181
- ] })]
182
- })] })
183
- ]
184
- })
185
- })] })]
186
- }),
187
- /* @__PURE__ */ T(l, {
188
- value: "notifications",
189
- className: "space-y-6",
190
- children: /* @__PURE__ */ E(d, { children: [/* @__PURE__ */ T(m, { children: /* @__PURE__ */ T(p, { children: "Email Notifications" }) }), /* @__PURE__ */ T(f, {
191
- className: "space-y-4",
192
- children: [
193
- {
194
- label: "Order updates",
195
- desc: "Receive notifications for order status changes"
196
- },
197
- {
198
- label: "Delivery alerts",
199
- desc: "Get notified about delivery issues"
200
- },
201
- {
202
- label: "System notifications",
203
- desc: "Important system updates and maintenance"
204
- },
205
- {
206
- label: "Weekly reports",
207
- desc: "Receive weekly performance summary"
208
- }
209
- ].map((e) => /* @__PURE__ */ E("div", {
210
- className: "flex items-center justify-between",
211
- children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
212
- className: "font-medium",
213
- children: e.label
214
- }), /* @__PURE__ */ T("p", {
215
- className: "text-sm text-text-secondary",
216
- children: e.desc
217
- })] }), /* @__PURE__ */ T(s, { defaultChecked: !0 })]
218
- }, e.label))
219
- })] })
220
- }),
221
- /* @__PURE__ */ E(l, {
222
- value: "security",
223
- className: "space-y-6",
224
- children: [/* @__PURE__ */ E(d, { children: [/* @__PURE__ */ T(m, { children: /* @__PURE__ */ T(p, { children: "Password" }) }), /* @__PURE__ */ E(f, {
225
- className: "space-y-4",
226
- children: [
227
- /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(_, { children: "Current Password" }), /* @__PURE__ */ T(e, { type: "password" })] }),
228
- /* @__PURE__ */ E("div", {
229
- className: "grid grid-cols-2 gap-4",
230
- children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(_, { children: "New Password" }), /* @__PURE__ */ T(e, { type: "password" })] }), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T(_, { children: "Confirm Password" }), /* @__PURE__ */ T(e, { type: "password" })] })]
231
- }),
232
- /* @__PURE__ */ T(y, { children: "Update Password" })
233
- ]
234
- })] }), /* @__PURE__ */ E(d, { children: [/* @__PURE__ */ E(m, { children: [/* @__PURE__ */ T(p, { children: "Two-Factor Authentication" }), /* @__PURE__ */ T(v, { children: "Add an extra layer of security" })] }), /* @__PURE__ */ T(f, { children: /* @__PURE__ */ E("div", {
235
- className: "flex items-center justify-between",
236
- children: [/* @__PURE__ */ T("div", { children: /* @__PURE__ */ E("p", { children: ["Status: ", /* @__PURE__ */ T("span", {
237
- className: "text-red-500 font-medium",
238
- children: "Disabled"
239
- })] }) }), /* @__PURE__ */ T(y, {
240
- variant: "outline",
241
- children: "Enable 2FA"
242
- })]
243
- }) })] })]
244
- }),
245
- /* @__PURE__ */ E(l, {
246
- value: "integrations",
247
- className: "space-y-6",
248
- children: [/* @__PURE__ */ E(d, { children: [/* @__PURE__ */ E(m, { children: [/* @__PURE__ */ T(p, { children: "API Keys" }), /* @__PURE__ */ T(v, { children: "Manage your API access" })] }), /* @__PURE__ */ E(f, {
249
- className: "space-y-4",
250
- children: [/* @__PURE__ */ E("div", {
251
- className: "p-4 bg-bg-sunken rounded-lg",
252
- children: [/* @__PURE__ */ T("p", {
253
- className: "font-medium",
254
- children: "Production API Key"
255
- }), /* @__PURE__ */ T("code", {
256
- className: "text-sm",
257
- children: "pk_live_••••••••••••••••"
258
- })]
259
- }), /* @__PURE__ */ T(y, {
260
- variant: "outline",
261
- children: "Generate New Key"
262
- })]
263
- })] }), /* @__PURE__ */ E(d, { children: [/* @__PURE__ */ T(m, { children: /* @__PURE__ */ T(p, { children: "Connected Services" }) }), /* @__PURE__ */ T(f, {
264
- className: "space-y-3",
265
- children: [
266
- {
267
- name: "Google Maps",
268
- status: "Connected"
269
- },
270
- {
271
- name: "Stripe",
272
- status: "Connected"
273
- },
274
- {
275
- name: "Twilio",
276
- status: "Not Connected"
277
- }
278
- ].map((e) => /* @__PURE__ */ E("div", {
279
- className: "flex items-center justify-between p-3 border rounded-lg",
280
- children: [/* @__PURE__ */ T("span", { children: e.name }), /* @__PURE__ */ T(y, {
281
- variant: e.status === "Connected" ? "outline" : "default",
282
- size: "sm",
283
- children: e.status === "Connected" ? "Manage" : "Connect"
284
- })]
285
- }, e.name))
286
- })] })]
287
- })
288
- ]
289
- }),
290
- /* @__PURE__ */ T("div", {
291
- className: "flex justify-end",
292
- children: /* @__PURE__ */ E(y, { children: [/* @__PURE__ */ T(S, { size: 16 }), " Save Changes"] })
293
- })
294
- ]
295
- });
296
- }
297
- //#endregion
298
- export { N as default };
@@ -1,209 +0,0 @@
1
- import { l as e, rt as t } from "./PageLayout-D3N8MCTm.js";
2
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
- //#region src/movethewheels/constants/index.ts
4
- var i = {
5
- pending: {
6
- bg: "bg-yellow-100",
7
- text: "text-yellow-800",
8
- border: "border-yellow-200"
9
- },
10
- confirmed: {
11
- bg: "bg-blue-100",
12
- text: "text-blue-800",
13
- border: "border-blue-200"
14
- },
15
- assigned: {
16
- bg: "bg-purple-100",
17
- text: "text-purple-800",
18
- border: "border-purple-200"
19
- },
20
- picked_up: {
21
- bg: "bg-indigo-100",
22
- text: "text-indigo-800",
23
- border: "border-indigo-200"
24
- },
25
- in_transit: {
26
- bg: "bg-cyan-100",
27
- text: "text-cyan-800",
28
- border: "border-cyan-200"
29
- },
30
- out_for_delivery: {
31
- bg: "bg-orange-100",
32
- text: "text-orange-800",
33
- border: "border-orange-200"
34
- },
35
- delivered: {
36
- bg: "bg-green-100",
37
- text: "text-green-800",
38
- border: "border-green-200"
39
- },
40
- cancelled: {
41
- bg: "bg-red-100",
42
- text: "text-red-800",
43
- border: "border-red-200"
44
- },
45
- failed: {
46
- bg: "bg-red-100",
47
- text: "text-red-800",
48
- border: "border-red-200"
49
- }
50
- }, a = {
51
- available: {
52
- bg: "bg-green-100",
53
- text: "text-green-800"
54
- },
55
- assigned: {
56
- bg: "bg-blue-100",
57
- text: "text-blue-800"
58
- },
59
- maintenance: {
60
- bg: "bg-yellow-100",
61
- text: "text-yellow-800"
62
- },
63
- out_of_service: {
64
- bg: "bg-red-100",
65
- text: "text-red-800"
66
- }
67
- }, o = {
68
- available: {
69
- bg: "bg-green-100",
70
- text: "text-green-800"
71
- },
72
- busy: {
73
- bg: "bg-blue-100",
74
- text: "text-blue-800"
75
- },
76
- offline: {
77
- bg: "bg-gray-100",
78
- text: "text-gray-800"
79
- },
80
- on_break: {
81
- bg: "bg-yellow-100",
82
- text: "text-yellow-800"
83
- }
84
- }, s = {
85
- sm: "text-xs px-2 py-0.5",
86
- md: "text-sm px-2.5 py-1",
87
- lg: "text-base px-3 py-1.5"
88
- };
89
- function c({ status: c, type: l = "custom", customColors: u, size: d = "md", showDot: f = !0, className: p }) {
90
- let m = u;
91
- if (!m) switch (l) {
92
- case "order":
93
- m = i[c] || {
94
- bg: "bg-gray-100",
95
- text: "text-gray-700"
96
- };
97
- break;
98
- case "vehicle":
99
- m = a[c] || {
100
- bg: "bg-gray-100",
101
- text: "text-gray-700"
102
- };
103
- break;
104
- case "driver":
105
- m = o[c] || {
106
- bg: "bg-gray-100",
107
- text: "text-gray-700"
108
- };
109
- break;
110
- default: m = {
111
- bg: "bg-gray-100 dark:bg-gray-800",
112
- text: "text-gray-700 dark:text-gray-300"
113
- };
114
- }
115
- let h = c.replace(/_/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
116
- return /* @__PURE__ */ r(e, {
117
- variant: "outline",
118
- className: t("font-medium capitalize border-0 whitespace-nowrap inline-flex items-center", m.bg, m.text, s[d], p),
119
- children: [f && /* @__PURE__ */ n("span", {
120
- "aria-hidden": "true",
121
- className: t("w-1.5 h-1.5 rounded-full mr-1.5 flex-shrink-0 motion-safe:animate-vc-glow-pulse", m.text.replace("text-", "bg-"))
122
- }), h]
123
- });
124
- }
125
- function l({ priority: r, size: i = "md", className: a }) {
126
- let o = {
127
- low: {
128
- bg: "bg-gray-100 dark:bg-gray-800",
129
- text: "text-gray-600 dark:text-gray-400"
130
- },
131
- normal: {
132
- bg: "bg-blue-100 dark:bg-blue-900/30",
133
- text: "text-blue-700 dark:text-blue-400"
134
- },
135
- high: {
136
- bg: "bg-orange-100 dark:bg-orange-900/30",
137
- text: "text-orange-700 dark:text-orange-400"
138
- },
139
- urgent: {
140
- bg: "bg-red-100 dark:bg-red-900/30",
141
- text: "text-red-700 dark:text-red-400"
142
- }
143
- }[r];
144
- return /* @__PURE__ */ n(e, {
145
- variant: "outline",
146
- className: t("font-medium capitalize border-0 whitespace-nowrap", o.bg, o.text, s[i], a),
147
- children: r
148
- });
149
- }
150
- function u({ type: r, size: i = "md", className: a }) {
151
- let o = {
152
- b2b: {
153
- bg: "bg-purple-100 dark:bg-purple-900/30",
154
- text: "text-purple-700 dark:text-purple-400"
155
- },
156
- b2c: {
157
- bg: "bg-teal-100 dark:bg-teal-900/30",
158
- text: "text-teal-700 dark:text-teal-400"
159
- }
160
- }[r];
161
- return /* @__PURE__ */ n(e, {
162
- variant: "outline",
163
- className: t("font-medium uppercase border-0 whitespace-nowrap", o.bg, o.text, s[i], a),
164
- children: r
165
- });
166
- }
167
- function d({ status: r, size: i = "md", className: a }) {
168
- let o = {
169
- pending: {
170
- bg: "bg-yellow-100 dark:bg-yellow-900/30",
171
- text: "text-yellow-700 dark:text-yellow-400"
172
- },
173
- paid: {
174
- bg: "bg-green-100 dark:bg-green-900/30",
175
- text: "text-green-700 dark:text-green-400"
176
- },
177
- failed: {
178
- bg: "bg-red-100 dark:bg-red-900/30",
179
- text: "text-red-700 dark:text-red-400"
180
- },
181
- refunded: {
182
- bg: "bg-gray-100 dark:bg-gray-800",
183
- text: "text-gray-700 dark:text-gray-400"
184
- }
185
- }[r];
186
- return /* @__PURE__ */ n(e, {
187
- variant: "outline",
188
- className: t("font-medium capitalize border-0 whitespace-nowrap", o.bg, o.text, s[i], a),
189
- children: r
190
- });
191
- }
192
- function f({ type: i, size: a = "md", className: o }) {
193
- return /* @__PURE__ */ r(e, {
194
- variant: "outline",
195
- className: t("font-medium capitalize whitespace-nowrap inline-flex items-center", s[a], o),
196
- children: [/* @__PURE__ */ n("span", {
197
- className: "mr-1",
198
- children: {
199
- van: "🚐",
200
- truck: "🚚",
201
- motorcycle: "🏍️",
202
- bicycle: "🚲",
203
- car: "🚗"
204
- }[i]
205
- }), i]
206
- });
207
- }
208
- //#endregion
209
- export { f as a, u as i, l as n, c as r, d as t };
@@ -1,55 +0,0 @@
1
- import { createContext as e, useContext as t, useMemo as n } from "react";
2
- import { MemoryRouter as r } from "react-router-dom";
3
- import { jsx as i } from "react/jsx-runtime";
4
- //#region src/movethewheels/providers/MoveTheWheelsProvider.tsx
5
- var a = e(null), o = ({ children: e, ...t }) => {
6
- let o = n(() => ({ ...t }), [t]);
7
- return t.basePath ? /* @__PURE__ */ i(a.Provider, {
8
- value: o,
9
- children: e
10
- }) : /* @__PURE__ */ i(a.Provider, {
11
- value: o,
12
- children: /* @__PURE__ */ i(r, { children: e })
13
- });
14
- };
15
- function s() {
16
- let e = t(a);
17
- if (!e) throw Error("useMoveTheWheels must be used within a MoveTheWheelsProvider");
18
- return e;
19
- }
20
- function c() {
21
- let { navigate: e, basePath: t } = s();
22
- return (n) => {
23
- n.startsWith("/") ? e(n) : e(`${t.endsWith("/") ? t.slice(0, -1) : t}/${n}`);
24
- };
25
- }
26
- //#endregion
27
- //#region src/movethewheels/utils/graphqlClient.ts
28
- function l(e) {
29
- return e ? e.endsWith("/graphql") ? e : `${e}/workspaces/graphql` : "/workspaces/graphql";
30
- }
31
- async function u(e, t, n) {
32
- let r = await fetch(l(e.apiGatewayUrl), {
33
- method: "POST",
34
- headers: {
35
- "content-type": "application/json",
36
- ...e.authToken ? { Authorization: `Bearer ${e.authToken}` } : {},
37
- ...e.workspaceToken ? { "X-Workspace-Authorization": `Bearer ${e.workspaceToken}` } : {},
38
- ...e.workspaceId ? { "x-workspace-id": e.workspaceId } : {},
39
- ...e.tenantId ? { "x-tenant-id": e.tenantId } : {},
40
- ...e.actorId ? { "x-actor-id": e.actorId } : {},
41
- ...e.actorId ? { "x-actor-type": "user" } : {}
42
- },
43
- body: JSON.stringify({
44
- query: t,
45
- variables: n
46
- })
47
- });
48
- if (!r.ok) throw Error(`GraphQL request failed with status ${r.status}`);
49
- let i = await r.json();
50
- if (i.errors?.length) throw Error(i.errors.map((e) => e.message ?? "Unknown GraphQL error").join("; "));
51
- if (!i.data) throw Error("GraphQL response did not include data");
52
- return i.data;
53
- }
54
- //#endregion
55
- export { c as i, o as n, s as r, u as t };
@@ -1,6 +0,0 @@
1
- //#region src/movethewheels/utils/navigation.ts
2
- function e(e, t) {
3
- return (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
4
- }
5
- //#endregion
6
- export { e as t };
@@ -1,51 +0,0 @@
1
- import { it as e } from "./PageLayout-D3N8MCTm.js";
2
- //#region node_modules/lucide-react/dist/esm/icons/bot.js
3
- var t = e("Bot", [
4
- ["path", {
5
- d: "M12 8V4H8",
6
- key: "hb8ula"
7
- }],
8
- ["rect", {
9
- width: "16",
10
- height: "12",
11
- x: "4",
12
- y: "8",
13
- rx: "2",
14
- key: "enze0r"
15
- }],
16
- ["path", {
17
- d: "M2 14h2",
18
- key: "vft8re"
19
- }],
20
- ["path", {
21
- d: "M20 14h2",
22
- key: "4cs60a"
23
- }],
24
- ["path", {
25
- d: "M15 13v2",
26
- key: "1xurst"
27
- }],
28
- ["path", {
29
- d: "M9 13v2",
30
- key: "rq6x2g"
31
- }]
32
- ]), n = e("Route", [
33
- ["circle", {
34
- cx: "6",
35
- cy: "19",
36
- r: "3",
37
- key: "1kj8tv"
38
- }],
39
- ["path", {
40
- d: "M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",
41
- key: "1d8sl"
42
- }],
43
- ["circle", {
44
- cx: "18",
45
- cy: "5",
46
- r: "3",
47
- key: "gq8acd"
48
- }]
49
- ]);
50
- //#endregion
51
- export { t as n, n as t };
@@ -1,28 +0,0 @@
1
- import { it as e } from "./PageLayout-D3N8MCTm.js";
2
- //#region node_modules/lucide-react/dist/esm/icons/globe.js
3
- var t = e("Globe", [
4
- ["circle", {
5
- cx: "12",
6
- cy: "12",
7
- r: "10",
8
- key: "1mglay"
9
- }],
10
- ["path", {
11
- d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",
12
- key: "13o1zl"
13
- }],
14
- ["path", {
15
- d: "M2 12h20",
16
- key: "9i4pu4"
17
- }]
18
- ]), n = e("Settings", [["path", {
19
- d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",
20
- key: "1qme2f"
21
- }], ["circle", {
22
- cx: "12",
23
- cy: "12",
24
- r: "3",
25
- key: "1v7zrd"
26
- }]]);
27
- //#endregion
28
- export { t as n, n as t };