@burdenoff/microfe-movethewheels 2026.624.1 → 2026.626.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/{AIAssistantPage-BrHX2lQn.js → AIAssistantPage-AvsMbunM.js} +39 -33
  2. package/dist/{AnalyticsPage-DI6Wcaw5.js → AnalyticsPage-CCLfHgQZ.js} +44 -33
  3. package/dist/CreateOrderPage-CjlnEtk3.js +510 -0
  4. package/dist/CustomerDetailsPage-I6cdDHUi.js +265 -0
  5. package/dist/CustomersPage-CGGfD4ki.js +163 -0
  6. package/dist/{DashboardPage-3ZOnwg1a.js → DashboardPage-D2HRqwg9.js} +122 -111
  7. package/dist/DataTable-CD9ZhpLB.js +249 -0
  8. package/dist/DriverDetailsPage-rg_pGNuP.js +330 -0
  9. package/dist/DriversPage-DKiynISH.js +167 -0
  10. package/dist/FinancePage-Vg8WPs38.js +158 -0
  11. package/dist/{FleetPage-CPS7r4J3.js → FleetPage-DddXt8r8.js} +124 -85
  12. package/dist/ImportExportPage-BW6qO3kc.js +248 -0
  13. package/dist/InventoryPage-rMGuaJN-.js +222 -0
  14. package/dist/LiveTrackingPage-DQ1q4Id3.js +375 -0
  15. package/dist/MarketplacePage-DKrXAv62.js +219 -0
  16. package/dist/MetricCard-B7yMyvMX.js +146 -0
  17. package/dist/OrderDetailsPage-CFASgsYX.js +431 -0
  18. package/dist/OrdersListPage-BHeT8S5o.js +309 -0
  19. package/dist/{PageLayout-xDTiBTDS.js → PageLayout-D3N8MCTm.js} +213 -195
  20. package/dist/ProductDetailsPage-CFGcbaHo.js +195 -0
  21. package/dist/ProductsPage--xEpbQ8A.js +171 -0
  22. package/dist/{ReportsPage-B8OyWGzl.js → ReportsPage-Bb7_90rK.js} +57 -49
  23. package/dist/RouteDetailsPage-CVtDVb1N.js +282 -0
  24. package/dist/RoutesPage-s57PtgcQ.js +163 -0
  25. package/dist/SettingsPage-BYNCBOpN.js +298 -0
  26. package/dist/{StatusBadge-C--7NhoW.js → StatusBadge-CijYQXtb.js} +5 -2
  27. package/dist/{TrackingPage-BldUm_g7.js → TrackingPage-CcRc_dva.js} +88 -83
  28. package/dist/VehicleDetailsPage-3YDMPsPs.js +220 -0
  29. package/dist/VehiclesPage-UlxPWP9K.js +167 -0
  30. package/dist/WarehouseDetailsPage-Db7KeN-d.js +238 -0
  31. package/dist/WarehousesPage-CuTO-OPp.js +164 -0
  32. package/dist/{arrow-left-Bk5GsGNk.js → arrow-left-CBpZKkpq.js} +1 -1
  33. package/dist/{box-BAMv2-7M.js → box-CAaiElsb.js} +1 -1
  34. package/dist/{chart-column-CAfkf4o6.js → chart-column-D1Ym15-S.js} +1 -1
  35. package/dist/{chevron-right-Czrt_Qew.js → chevron-right-BIFGi0UA.js} +1 -1
  36. package/dist/{circle-alert-CEuV9Pij.js → circle-alert-DjmNo5_L.js} +1 -1
  37. package/dist/{circle-check-big-Cx8aO6B-.js → circle-check-big-CjuPVo3_.js} +1 -1
  38. package/dist/{clock-Be95bq7_.js → clock-BjkdnddD.js} +1 -1
  39. package/dist/{dollar-sign-kJqItPli.js → dollar-sign-IB4O0wuQ.js} +1 -1
  40. package/dist/{download-caab0D3V.js → download-Dpa9vqoG.js} +1 -1
  41. package/dist/{file-text-b1qhrJn1.js → file-text-C8Uioy11.js} +1 -1
  42. package/dist/{filter-BWmLTZB-.js → filter-Da5OZaHI.js} +1 -1
  43. package/dist/index.js +16 -16
  44. package/dist/{map-CS2aFgyO.js → map-_Per4sT9.js} +1 -1
  45. package/dist/{map-pin-96FeqL7H.js → map-pin-BSaf5IDL.js} +1 -1
  46. package/dist/{navigation-i6UXEjTC.js → navigation-DaTbrhw2.js} +1 -1
  47. package/dist/{package-KhSi3xaT.js → package-BE7U0wQE.js} +1 -1
  48. package/dist/{phone-B-h3tbsr.js → phone-DV4StZiA.js} +1 -1
  49. package/dist/{plus-D2BYAzMn.js → plus-Dl1rLeJR.js} +1 -1
  50. package/dist/{refresh-cw-D5Sy01s-.js → refresh-cw-CWfERAit.js} +1 -1
  51. package/dist/{route-CBDXuwH9.js → route-Dp9JiN_E.js} +1 -1
  52. package/dist/{save-CMc7h-Vi.js → save-XH8vydOn.js} +1 -1
  53. package/dist/{search-DVrUQbOg.js → search-OxoIiL_C.js} +1 -1
  54. package/dist/{settings-BwzIRYv3.js → settings-3Rw5NwFF.js} +1 -1
  55. package/dist/{square-pen-DmW36Bau.js → square-pen-hLIbFQFV.js} +1 -1
  56. package/dist/{star-Cv2MzxZL.js → star-YsVV3MNQ.js} +1 -1
  57. package/dist/{store-CLH957vl.js → store-RCBl7HB-.js} +1 -1
  58. package/dist/{trending-up-l8M0BO_w.js → trending-up-C-85AwGT.js} +1 -1
  59. package/dist/{triangle-alert-BI45s6bH.js → triangle-alert-BOhfGgmh.js} +1 -1
  60. package/dist/{truck-DX3lNQkz.js → truck-CtDjNFbi.js} +1 -1
  61. package/dist/{user-D8EY1uvt.js → user-Dz5TJZFs.js} +1 -1
  62. package/dist/{users-CfG0J8wP.js → users-g2N0eL-Z.js} +1 -1
  63. package/dist/{warehouse-Dt_bAr82.js → warehouse-D3WWDeTX.js} +1 -1
  64. package/dist/{wrench-C50eI_Iy.js → wrench-CmxY1n4I.js} +1 -1
  65. package/package.json +2 -2
  66. package/src/movethewheels/components/DataTable.tsx +41 -6
  67. package/src/movethewheels/components/MetricCard.tsx +51 -20
  68. package/src/movethewheels/components/PageLayout.tsx +60 -5
  69. package/src/movethewheels/components/StatusBadge.tsx +2 -1
  70. package/src/movethewheels/pages/AIAssistantPage.tsx +11 -3
  71. package/src/movethewheels/pages/AnalyticsPage.tsx +31 -25
  72. package/src/movethewheels/pages/CreateOrderPage.tsx +56 -17
  73. package/src/movethewheels/pages/CustomerDetailsPage.tsx +63 -38
  74. package/src/movethewheels/pages/CustomersPage.tsx +51 -12
  75. package/src/movethewheels/pages/DashboardPage.tsx +62 -48
  76. package/src/movethewheels/pages/DriverDetailsPage.tsx +57 -26
  77. package/src/movethewheels/pages/DriversPage.tsx +45 -12
  78. package/src/movethewheels/pages/FinancePage.tsx +45 -41
  79. package/src/movethewheels/pages/FleetPage.tsx +82 -34
  80. package/src/movethewheels/pages/ImportExportPage.tsx +46 -29
  81. package/src/movethewheels/pages/InventoryPage.tsx +37 -33
  82. package/src/movethewheels/pages/LiveTrackingPage.tsx +58 -20
  83. package/src/movethewheels/pages/MarketplacePage.tsx +37 -3
  84. package/src/movethewheels/pages/OrderDetailsPage.tsx +74 -46
  85. package/src/movethewheels/pages/OrdersListPage.tsx +81 -14
  86. package/src/movethewheels/pages/ProductDetailsPage.tsx +36 -11
  87. package/src/movethewheels/pages/ProductsPage.tsx +41 -12
  88. package/src/movethewheels/pages/ReportsPage.tsx +23 -19
  89. package/src/movethewheels/pages/RouteDetailsPage.tsx +71 -31
  90. package/src/movethewheels/pages/RoutesPage.tsx +48 -9
  91. package/src/movethewheels/pages/SettingsPage.tsx +68 -26
  92. package/src/movethewheels/pages/TrackingPage.tsx +52 -49
  93. package/src/movethewheels/pages/VehicleDetailsPage.tsx +49 -24
  94. package/src/movethewheels/pages/VehiclesPage.tsx +41 -15
  95. package/src/movethewheels/pages/WarehouseDetailsPage.tsx +55 -30
  96. package/src/movethewheels/pages/WarehousesPage.tsx +46 -9
  97. package/dist/CreateOrderPage-DfkSi6JF.js +0 -471
  98. package/dist/CustomerDetailsPage-DzAIu_tH.js +0 -239
  99. package/dist/CustomersPage-d21ixOYa.js +0 -119
  100. package/dist/DataTable-CZGz3SJu.js +0 -239
  101. package/dist/DriverDetailsPage-YuZSlPSV.js +0 -297
  102. package/dist/DriversPage-BOhqEBTv.js +0 -127
  103. package/dist/FinancePage-CnjUNXOb.js +0 -154
  104. package/dist/ImportExportPage-zNjs7xsV.js +0 -232
  105. package/dist/InventoryPage-C9g5d3SW.js +0 -223
  106. package/dist/LiveTrackingPage-DoBvtdBG.js +0 -332
  107. package/dist/MarketplacePage-BEj5hcBF.js +0 -192
  108. package/dist/MetricCard-DeHVeVwl.js +0 -135
  109. package/dist/OrderDetailsPage-D-9lDZYU.js +0 -398
  110. package/dist/OrdersListPage-CJzHbgY3.js +0 -257
  111. package/dist/ProductDetailsPage-3rKtzXpy.js +0 -168
  112. package/dist/ProductsPage-B0P_wjBJ.js +0 -131
  113. package/dist/RouteDetailsPage-DGjKTUMj.js +0 -240
  114. package/dist/RoutesPage-CpopY8xN.js +0 -116
  115. package/dist/SettingsPage-BvXSa3gi.js +0 -247
  116. package/dist/VehicleDetailsPage-Dqv--MVW.js +0 -194
  117. package/dist/VehiclesPage-CCBHRDHu.js +0 -127
  118. package/dist/WarehouseDetailsPage-ZObC_c7W.js +0 -215
  119. package/dist/WarehousesPage-CpgZEVW9.js +0 -121
@@ -1,232 +0,0 @@
1
- import { d as e, f as t, g as n, h as r, i, it as a, l as o, u as s } from "./PageLayout-xDTiBTDS.js";
2
- import { t as c } from "./download-caab0D3V.js";
3
- import { t as l } from "./file-text-b1qhrJn1.js";
4
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
5
- //#region node_modules/lucide-react/dist/esm/icons/check.js
6
- var f = a("Check", [["path", {
7
- d: "M20 6 9 17l-5-5",
8
- key: "1gmf2c"
9
- }]]), p = a("FileSpreadsheet", [
10
- ["path", {
11
- d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",
12
- key: "1rqfz7"
13
- }],
14
- ["path", {
15
- d: "M14 2v4a2 2 0 0 0 2 2h4",
16
- key: "tnqrlb"
17
- }],
18
- ["path", {
19
- d: "M8 13h2",
20
- key: "yr2amv"
21
- }],
22
- ["path", {
23
- d: "M14 13h2",
24
- key: "un5t4a"
25
- }],
26
- ["path", {
27
- d: "M8 17h2",
28
- key: "2yhykz"
29
- }],
30
- ["path", {
31
- d: "M14 17h2",
32
- key: "10kma7"
33
- }]
34
- ]), m = a("Upload", [
35
- ["path", {
36
- d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
37
- key: "ih7n3h"
38
- }],
39
- ["polyline", {
40
- points: "17 8 12 3 7 8",
41
- key: "t8dd8p"
42
- }],
43
- ["line", {
44
- x1: "12",
45
- x2: "12",
46
- y1: "3",
47
- y2: "15",
48
- key: "widbto"
49
- }]
50
- ]);
51
- //#endregion
52
- //#region src/movethewheels/pages/ImportExportPage.tsx
53
- function h() {
54
- return /* @__PURE__ */ d(i, {
55
- title: "Import / Export",
56
- subtitle: "Import and export your data",
57
- icon: /* @__PURE__ */ u(l, { size: 24 }),
58
- children: [/* @__PURE__ */ d("div", {
59
- className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
60
- children: [/* @__PURE__ */ d(e, { children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ d(n, {
61
- className: "flex items-center gap-2",
62
- children: [/* @__PURE__ */ u(m, { size: 18 }), " Import Data"]
63
- }) }), /* @__PURE__ */ u(t, {
64
- className: "space-y-4",
65
- children: [
66
- {
67
- name: "Orders",
68
- description: "Import orders from CSV or Excel",
69
- icon: p,
70
- format: "CSV, XLSX"
71
- },
72
- {
73
- name: "Customers",
74
- description: "Import customer database",
75
- icon: p,
76
- format: "CSV, XLSX"
77
- },
78
- {
79
- name: "Products",
80
- description: "Import product catalog",
81
- icon: p,
82
- format: "CSV, XLSX"
83
- },
84
- {
85
- name: "Inventory",
86
- description: "Import inventory levels",
87
- icon: p,
88
- format: "CSV, XLSX"
89
- }
90
- ].map((e) => /* @__PURE__ */ d("div", {
91
- className: "flex items-center justify-between p-4 border rounded-lg hover:border-primary/50 transition-colors",
92
- children: [/* @__PURE__ */ d("div", {
93
- className: "flex items-center gap-3",
94
- children: [/* @__PURE__ */ u("div", {
95
- className: "w-10 h-10 rounded-lg bg-action-primary-bg/10 flex items-center justify-center",
96
- children: /* @__PURE__ */ u(e.icon, {
97
- size: 20,
98
- className: "text-primary"
99
- })
100
- }), /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
101
- className: "font-medium",
102
- children: e.name
103
- }), /* @__PURE__ */ u("p", {
104
- className: "text-sm text-text-secondary",
105
- children: e.description
106
- })] })]
107
- }), /* @__PURE__ */ d("div", {
108
- className: "text-right",
109
- children: [/* @__PURE__ */ u(o, {
110
- variant: "outline",
111
- children: e.format
112
- }), /* @__PURE__ */ u(s, {
113
- variant: "outline",
114
- size: "sm",
115
- className: "ml-2",
116
- children: /* @__PURE__ */ u(m, { size: 14 })
117
- })]
118
- })]
119
- }, e.name))
120
- })] }), /* @__PURE__ */ d(e, { children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ d(n, {
121
- className: "flex items-center gap-2",
122
- children: [/* @__PURE__ */ u(c, { size: 18 }), " Export Data"]
123
- }) }), /* @__PURE__ */ u(t, {
124
- className: "space-y-4",
125
- children: [
126
- {
127
- name: "Orders Report",
128
- description: "Export all orders data",
129
- formats: [
130
- "CSV",
131
- "Excel",
132
- "PDF"
133
- ]
134
- },
135
- {
136
- name: "Financial Report",
137
- description: "Export revenue and payments",
138
- formats: [
139
- "CSV",
140
- "Excel",
141
- "PDF"
142
- ]
143
- },
144
- {
145
- name: "Fleet Report",
146
- description: "Export vehicle and driver data",
147
- formats: ["CSV", "Excel"]
148
- },
149
- {
150
- name: "Analytics Report",
151
- description: "Export performance metrics",
152
- formats: [
153
- "CSV",
154
- "Excel",
155
- "PDF"
156
- ]
157
- }
158
- ].map((e) => /* @__PURE__ */ d("div", {
159
- className: "flex items-center justify-between p-4 border rounded-lg hover:border-primary/50 transition-colors",
160
- children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
161
- className: "font-medium",
162
- children: e.name
163
- }), /* @__PURE__ */ u("p", {
164
- className: "text-sm text-text-secondary",
165
- children: e.description
166
- })] }), /* @__PURE__ */ u("div", {
167
- className: "flex gap-1",
168
- children: e.formats.map((e) => /* @__PURE__ */ u(s, {
169
- variant: "outline",
170
- size: "sm",
171
- children: e
172
- }, e))
173
- })]
174
- }, e.name))
175
- })] })]
176
- }), /* @__PURE__ */ d(e, { children: [/* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(n, { children: "Recent Activity" }) }), /* @__PURE__ */ u(t, { children: /* @__PURE__ */ u("div", {
177
- className: "space-y-3",
178
- children: [
179
- {
180
- type: "export",
181
- name: "Orders Report",
182
- date: "2024-01-15",
183
- status: "completed"
184
- },
185
- {
186
- type: "import",
187
- name: "Customer Data",
188
- date: "2024-01-14",
189
- status: "completed"
190
- },
191
- {
192
- type: "export",
193
- name: "Financial Report",
194
- date: "2024-01-13",
195
- status: "completed"
196
- }
197
- ].map((e, t) => /* @__PURE__ */ d("div", {
198
- className: "flex items-center justify-between p-3 bg-bg-sunken/50 rounded-lg",
199
- children: [/* @__PURE__ */ d("div", {
200
- className: "flex items-center gap-3",
201
- children: [e.type === "import" ? /* @__PURE__ */ u(m, {
202
- size: 16,
203
- className: "text-primary"
204
- }) : /* @__PURE__ */ u(c, {
205
- size: 16,
206
- className: "text-primary"
207
- }), /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
208
- className: "font-medium",
209
- children: e.name
210
- }), /* @__PURE__ */ d("p", {
211
- className: "text-sm text-text-secondary",
212
- children: [
213
- e.type === "import" ? "Imported" : "Exported",
214
- " on ",
215
- e.date
216
- ]
217
- })] })]
218
- }), /* @__PURE__ */ d(o, {
219
- variant: "default",
220
- className: "gap-1",
221
- children: [
222
- /* @__PURE__ */ u(f, { size: 12 }),
223
- " ",
224
- e.status
225
- ]
226
- })]
227
- }, t))
228
- }) })] })]
229
- });
230
- }
231
- //#endregion
232
- export { h as default };
@@ -1,223 +0,0 @@
1
- import { M as e, a as t, d as n, f as r, g as i, h as a, i as o, l as s, u as c } from "./PageLayout-xDTiBTDS.js";
2
- import { t as l } from "./chevron-right-Czrt_Qew.js";
3
- import { t as u } from "./package-KhSi3xaT.js";
4
- import { t as d } from "./plus-D2BYAzMn.js";
5
- import { t as f } from "./triangle-alert-BI45s6bH.js";
6
- import { t as p } from "./warehouse-Dt_bAr82.js";
7
- import { r as m } from "./graphqlClient-CdJyR_ed.js";
8
- import { n as h, t as g } from "./useInventory-Dwn18FPz.js";
9
- import { r as _, t as v } from "./MetricCard-DeHVeVwl.js";
10
- import { n as y } from "./formatters-_vJlC-47.js";
11
- import { t as b } from "./navigation-BgnOfsVd.js";
12
- import { jsx as x, jsxs as S } from "react/jsx-runtime";
13
- import { useI18n as C } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
14
- //#region src/movethewheels/pages/InventoryPage.tsx
15
- function w() {
16
- let { t: w } = C(), T = (e, t) => {
17
- let n = w(e);
18
- return n === e ? t : n;
19
- }, { basePath: E, navigate: D } = m(), { inventory: O, products: k, warehouses: A } = g(), { stats: j } = h(), M = (e) => D?.(b(E, e)), N = O.filter((e) => e.availableQuantity <= e.reorderLevel);
20
- return /* @__PURE__ */ S(o, {
21
- title: T("movethewheels.inventory.title", "Inventory"),
22
- subtitle: T("movethewheels.inventory.subtitle", "Manage your products and warehouses"),
23
- icon: /* @__PURE__ */ x(u, { size: 24 }),
24
- headerActions: /* @__PURE__ */ S("div", {
25
- className: "flex gap-2",
26
- children: [
27
- /* @__PURE__ */ x(c, {
28
- variant: "outline",
29
- onClick: () => M("inventory/products"),
30
- children: T("movethewheels.inventory.actions.products", "Products")
31
- }),
32
- /* @__PURE__ */ x(c, {
33
- variant: "outline",
34
- onClick: () => M("inventory/warehouses"),
35
- children: T("movethewheels.inventory.actions.warehouses", "Warehouses")
36
- }),
37
- /* @__PURE__ */ S(c, { children: [
38
- /* @__PURE__ */ x(d, { size: 16 }),
39
- " ",
40
- T("movethewheels.inventory.actions.addProduct", "Add Product")
41
- ] })
42
- ]
43
- }),
44
- children: [
45
- /* @__PURE__ */ S(_, {
46
- columns: 4,
47
- children: [
48
- /* @__PURE__ */ x(v, {
49
- label: T("movethewheels.inventory.metrics.totalProducts", "Total Products"),
50
- value: j.totalProducts,
51
- icon: /* @__PURE__ */ x(u, { size: 20 }),
52
- onClick: () => M("inventory/products")
53
- }),
54
- /* @__PURE__ */ x(v, {
55
- label: T("movethewheels.inventory.metrics.totalItems", "Total Items"),
56
- value: j.totalItems.toLocaleString(),
57
- icon: /* @__PURE__ */ x(u, { size: 20 })
58
- }),
59
- /* @__PURE__ */ x(v, {
60
- label: T("movethewheels.inventory.metrics.inventoryValue", "Inventory Value"),
61
- value: y(j.totalValue),
62
- icon: /* @__PURE__ */ x(u, { size: 20 })
63
- }),
64
- /* @__PURE__ */ x(v, {
65
- label: T("movethewheels.inventory.metrics.warehouses", "Warehouses"),
66
- value: j.totalWarehouses,
67
- icon: /* @__PURE__ */ x(p, { size: 20 }),
68
- onClick: () => M("inventory/warehouses")
69
- })
70
- ]
71
- }),
72
- N.length > 0 && /* @__PURE__ */ S(n, {
73
- className: "border-yellow-200",
74
- children: [/* @__PURE__ */ x(a, { children: /* @__PURE__ */ S(i, {
75
- className: "flex items-center gap-2 text-yellow-600",
76
- children: [
77
- /* @__PURE__ */ x(f, { size: 18 }),
78
- T("movethewheels.inventory.lowStock.title", "Low Stock Alert"),
79
- " (",
80
- N.length,
81
- " ",
82
- T("movethewheels.inventory.lowStock.items", "items"),
83
- ")"
84
- ]
85
- }) }), /* @__PURE__ */ x(r, { children: /* @__PURE__ */ x("div", {
86
- className: "space-y-3",
87
- children: N.slice(0, 5).map((e) => {
88
- let t = k.find((t) => t.id === e.productId);
89
- return /* @__PURE__ */ S("div", {
90
- className: "flex items-center justify-between p-3 bg-yellow-50 dark:bg-yellow-900/20 rounded-lg",
91
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
92
- className: "font-medium",
93
- children: t?.name || T("movethewheels.inventory.lowStock.unknownProduct", "Unknown Product")
94
- }), /* @__PURE__ */ S("p", {
95
- className: "text-sm text-text-secondary",
96
- children: [
97
- T("movethewheels.inventory.lowStock.sku", "SKU:"),
98
- " ",
99
- t?.sku
100
- ]
101
- })] }), /* @__PURE__ */ S("div", {
102
- className: "text-right",
103
- children: [/* @__PURE__ */ S("p", {
104
- className: "font-medium text-yellow-600",
105
- children: [
106
- e.availableQuantity,
107
- " ",
108
- T("movethewheels.inventory.lowStock.left", "left")
109
- ]
110
- }), /* @__PURE__ */ S("p", {
111
- className: "text-sm text-text-secondary",
112
- children: [
113
- T("movethewheels.inventory.lowStock.reorderAt", "Reorder at:"),
114
- " ",
115
- e.reorderLevel
116
- ]
117
- })]
118
- })]
119
- }, e.id);
120
- })
121
- }) })]
122
- }),
123
- /* @__PURE__ */ S("div", {
124
- className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
125
- children: [/* @__PURE__ */ x(t, {
126
- title: T("movethewheels.inventory.warehouses.title", "Warehouses"),
127
- actions: /* @__PURE__ */ S(c, {
128
- variant: "ghost",
129
- size: "sm",
130
- onClick: () => M("inventory/warehouses"),
131
- children: [
132
- T("movethewheels.inventory.common.viewAll", "View all"),
133
- " ",
134
- /* @__PURE__ */ x(l, { size: 16 })
135
- ]
136
- }),
137
- children: /* @__PURE__ */ x(n, { children: /* @__PURE__ */ x(r, {
138
- className: "p-0",
139
- children: /* @__PURE__ */ x("div", {
140
- className: "divide-y",
141
- children: A.map((t) => /* @__PURE__ */ x("div", {
142
- className: "p-4 hover:bg-bg-sunken/50 cursor-pointer",
143
- onClick: () => M(`inventory/warehouses/${t.id}`),
144
- children: /* @__PURE__ */ S("div", {
145
- className: "flex items-center justify-between",
146
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
147
- className: "font-medium",
148
- children: t.name
149
- }), /* @__PURE__ */ S("p", {
150
- className: "text-sm text-text-secondary",
151
- children: [
152
- t.address.city,
153
- ", ",
154
- t.address.state
155
- ]
156
- })] }), /* @__PURE__ */ S("div", {
157
- className: "text-right",
158
- children: [/* @__PURE__ */ x(s, {
159
- variant: t.isActive ? "default" : "secondary",
160
- children: t.isActive ? T("movethewheels.inventory.warehouses.active", "Active") : T("movethewheels.inventory.warehouses.inactive", "Inactive")
161
- }), /* @__PURE__ */ S("div", {
162
- className: "mt-2",
163
- children: [/* @__PURE__ */ x("p", {
164
- className: "text-xs text-text-secondary",
165
- children: T("movethewheels.inventory.warehouses.utilization", "Utilization")
166
- }), /* @__PURE__ */ x(e, {
167
- value: t.capacity.usedSpace / t.capacity.totalSpace * 100,
168
- className: "w-24 h-2"
169
- })]
170
- })]
171
- })]
172
- })
173
- }, t.id))
174
- })
175
- }) })
176
- }), /* @__PURE__ */ x(t, {
177
- title: T("movethewheels.inventory.products.title", "Recent Products"),
178
- actions: /* @__PURE__ */ S(c, {
179
- variant: "ghost",
180
- size: "sm",
181
- onClick: () => M("inventory/products"),
182
- children: [
183
- T("movethewheels.inventory.common.viewAll", "View all"),
184
- " ",
185
- /* @__PURE__ */ x(l, { size: 16 })
186
- ]
187
- }),
188
- children: /* @__PURE__ */ x(n, { children: /* @__PURE__ */ x(r, {
189
- className: "p-0",
190
- children: /* @__PURE__ */ x("div", {
191
- className: "divide-y",
192
- children: k.slice(0, 5).map((e) => /* @__PURE__ */ x("div", {
193
- className: "p-4 hover:bg-bg-sunken/50 cursor-pointer",
194
- onClick: () => M(`inventory/products/${e.id}`),
195
- children: /* @__PURE__ */ S("div", {
196
- className: "flex items-center justify-between",
197
- children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("p", {
198
- className: "font-medium",
199
- children: e.name
200
- }), /* @__PURE__ */ x("p", {
201
- className: "text-sm text-text-secondary",
202
- children: e.sku
203
- })] }), /* @__PURE__ */ S("div", {
204
- className: "text-right",
205
- children: [/* @__PURE__ */ x("p", {
206
- className: "font-medium",
207
- children: y(e.value)
208
- }), /* @__PURE__ */ x(s, {
209
- variant: "outline",
210
- children: e.category
211
- })]
212
- })]
213
- })
214
- }, e.id))
215
- })
216
- }) })
217
- })]
218
- })
219
- ]
220
- });
221
- }
222
- //#endregion
223
- export { w as default };