@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,471 @@
1
+ import { A as e, F as t, I as n, L as r, P as i, Q as a, R as o, d as s, f as c, g as l, h as u, i as d, it as f, j as p, u as m, z as h } from "./PageLayout-B7b0vl0R.js";
2
+ import { t as g } from "./arrow-left-6CiLhqVp.js";
3
+ import { t as _ } from "./package-DVZbDRcV.js";
4
+ import { t as v } from "./plus-Bl7uX6Ji.js";
5
+ import { t as y } from "./save-C-qDVat-.js";
6
+ import { r as b } from "./graphqlClient-CdJyR_ed.js";
7
+ import { r as x, t as S } from "./useOrders-D_3_hGMp.js";
8
+ import { r as C } from "./useCustomers-bS3a4ytk.js";
9
+ import { t as w } from "./navigation-BgnOfsVd.js";
10
+ import { useState as T } from "react";
11
+ import { useParams as E } from "react-router-dom";
12
+ import { jsx as D, jsxs as O } from "react/jsx-runtime";
13
+ //#region node_modules/lucide-react/dist/esm/icons/trash-2.js
14
+ var k = f("Trash2", [
15
+ ["path", {
16
+ d: "M3 6h18",
17
+ key: "d0wm0j"
18
+ }],
19
+ ["path", {
20
+ d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",
21
+ key: "4alrt4"
22
+ }],
23
+ ["path", {
24
+ d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",
25
+ key: "v07s0e"
26
+ }],
27
+ ["line", {
28
+ x1: "10",
29
+ x2: "10",
30
+ y1: "11",
31
+ y2: "17",
32
+ key: "1uufr5"
33
+ }],
34
+ ["line", {
35
+ x1: "14",
36
+ x2: "14",
37
+ y1: "11",
38
+ y2: "17",
39
+ key: "xtxkd"
40
+ }]
41
+ ]);
42
+ //#endregion
43
+ //#region src/movethewheels/pages/CreateOrderPage.tsx
44
+ function A() {
45
+ let { orderId: f } = E(), { basePath: A, navigate: j } = b(), { order: M } = S(f), { createOrder: N } = x(), { customers: P } = C({ limit: 100 }), F = !!f && !!M, [I, L] = T({
46
+ customerId: M?.customerId || "",
47
+ orderType: M?.orderType || "b2c",
48
+ priority: M?.priority || "normal",
49
+ pickupAddress: {
50
+ street: M?.pickupAddress.street || "",
51
+ city: M?.pickupAddress.city || "",
52
+ state: M?.pickupAddress.state || "",
53
+ postalCode: M?.pickupAddress.postalCode || "",
54
+ country: M?.pickupAddress.country || "USA"
55
+ },
56
+ deliveryAddress: {
57
+ street: M?.deliveryAddress.street || "",
58
+ city: M?.deliveryAddress.city || "",
59
+ state: M?.deliveryAddress.state || "",
60
+ postalCode: M?.deliveryAddress.postalCode || "",
61
+ country: M?.deliveryAddress.country || "USA"
62
+ },
63
+ items: M?.items || [],
64
+ specialInstructions: M?.specialInstructions || ""
65
+ }), [R, z] = T(!1), B = () => {
66
+ j && j(w(A, "orders"));
67
+ }, V = async (e) => {
68
+ e.preventDefault(), z(!0);
69
+ try {
70
+ let e = P.find((e) => e.id === I.customerId);
71
+ await N({
72
+ customerId: I.customerId,
73
+ customerInfo: e ? {
74
+ name: e.name,
75
+ email: e.email,
76
+ phone: e.phone,
77
+ company: e.company
78
+ } : {
79
+ name: "New Customer",
80
+ email: "customer@example.com",
81
+ phone: "+1-555-0000"
82
+ },
83
+ orderType: I.orderType,
84
+ priority: I.priority,
85
+ pickupAddress: I.pickupAddress,
86
+ deliveryAddress: I.deliveryAddress,
87
+ items: I.items,
88
+ specialInstructions: I.specialInstructions
89
+ }), B();
90
+ } catch (e) {
91
+ console.error("Failed to create order:", e);
92
+ } finally {
93
+ z(!1);
94
+ }
95
+ }, H = (e, t) => {
96
+ L((n) => ({
97
+ ...n,
98
+ [e]: t
99
+ }));
100
+ }, U = (e, t, n) => {
101
+ L((r) => ({
102
+ ...r,
103
+ [e]: {
104
+ ...r[e],
105
+ [t]: n
106
+ }
107
+ }));
108
+ }, W = () => {
109
+ L((e) => ({
110
+ ...e,
111
+ items: [...e.items, {
112
+ id: `item-${Date.now()}`,
113
+ productId: "",
114
+ name: "",
115
+ quantity: 1,
116
+ weight: 0,
117
+ dimensions: {
118
+ length: 0,
119
+ width: 0,
120
+ height: 0,
121
+ unit: "cm"
122
+ },
123
+ value: 0,
124
+ sku: ""
125
+ }]
126
+ }));
127
+ }, G = (e) => {
128
+ L((t) => ({
129
+ ...t,
130
+ items: t.items.filter((t, n) => n !== e)
131
+ }));
132
+ }, K = (e, t, n) => {
133
+ L((r) => ({
134
+ ...r,
135
+ items: r.items.map((r, i) => i === e ? {
136
+ ...r,
137
+ [t]: n
138
+ } : r)
139
+ }));
140
+ };
141
+ return /* @__PURE__ */ D(d, {
142
+ title: F ? "Edit Order" : "Create Order",
143
+ subtitle: F ? `Editing ${M?.orderNumber}` : "Create a new delivery order",
144
+ icon: /* @__PURE__ */ D(_, { size: 24 }),
145
+ headerActions: /* @__PURE__ */ O("div", {
146
+ className: "flex gap-2",
147
+ children: [/* @__PURE__ */ O(m, {
148
+ variant: "outline",
149
+ onClick: B,
150
+ children: [/* @__PURE__ */ D(g, { size: 16 }), "Cancel"]
151
+ }), /* @__PURE__ */ O(m, {
152
+ onClick: V,
153
+ disabled: R,
154
+ children: [/* @__PURE__ */ D(y, { size: 16 }), R ? "Saving..." : F ? "Save Changes" : "Create Order"]
155
+ })]
156
+ }),
157
+ children: /* @__PURE__ */ O("form", {
158
+ onSubmit: V,
159
+ className: "space-y-6",
160
+ children: [
161
+ /* @__PURE__ */ O(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ D(l, { children: "Order Details" }) }), /* @__PURE__ */ D(c, {
162
+ className: "space-y-4",
163
+ children: /* @__PURE__ */ O("div", {
164
+ className: "grid grid-cols-1 md:grid-cols-3 gap-4",
165
+ children: [
166
+ /* @__PURE__ */ O("div", {
167
+ className: "space-y-2",
168
+ children: [/* @__PURE__ */ D(p, {
169
+ htmlFor: "customer",
170
+ children: "Customer"
171
+ }), /* @__PURE__ */ O(i, {
172
+ value: I.customerId,
173
+ onValueChange: (e) => H("customerId", e),
174
+ children: [/* @__PURE__ */ D(r, {
175
+ id: "customer",
176
+ children: /* @__PURE__ */ D(o, { placeholder: "Select customer" })
177
+ }), /* @__PURE__ */ D(t, { children: P.map((e) => /* @__PURE__ */ O(n, {
178
+ value: e.id,
179
+ children: [
180
+ e.name,
181
+ " (",
182
+ e.email,
183
+ ")"
184
+ ]
185
+ }, e.id)) })]
186
+ })]
187
+ }),
188
+ /* @__PURE__ */ O("div", {
189
+ className: "space-y-2",
190
+ children: [/* @__PURE__ */ D(p, {
191
+ htmlFor: "orderType",
192
+ children: "Order Type"
193
+ }), /* @__PURE__ */ O(i, {
194
+ value: I.orderType,
195
+ onValueChange: (e) => H("orderType", e),
196
+ children: [/* @__PURE__ */ D(r, {
197
+ id: "orderType",
198
+ children: /* @__PURE__ */ D(o, {})
199
+ }), /* @__PURE__ */ O(t, { children: [/* @__PURE__ */ D(n, {
200
+ value: "b2c",
201
+ children: "B2C (Individual)"
202
+ }), /* @__PURE__ */ D(n, {
203
+ value: "b2b",
204
+ children: "B2B (Business)"
205
+ })] })]
206
+ })]
207
+ }),
208
+ /* @__PURE__ */ O("div", {
209
+ className: "space-y-2",
210
+ children: [/* @__PURE__ */ D(p, {
211
+ htmlFor: "priority",
212
+ children: "Priority"
213
+ }), /* @__PURE__ */ O(i, {
214
+ value: I.priority,
215
+ onValueChange: (e) => H("priority", e),
216
+ children: [/* @__PURE__ */ D(r, {
217
+ id: "priority",
218
+ children: /* @__PURE__ */ D(o, {})
219
+ }), /* @__PURE__ */ O(t, { children: [
220
+ /* @__PURE__ */ D(n, {
221
+ value: "low",
222
+ children: "Low"
223
+ }),
224
+ /* @__PURE__ */ D(n, {
225
+ value: "normal",
226
+ children: "Normal"
227
+ }),
228
+ /* @__PURE__ */ D(n, {
229
+ value: "high",
230
+ children: "High"
231
+ }),
232
+ /* @__PURE__ */ D(n, {
233
+ value: "urgent",
234
+ children: "Urgent"
235
+ })
236
+ ] })]
237
+ })]
238
+ })
239
+ ]
240
+ })
241
+ })] }),
242
+ /* @__PURE__ */ O("div", {
243
+ className: "grid grid-cols-1 md:grid-cols-2 gap-6",
244
+ children: [/* @__PURE__ */ O(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ D(l, { children: "Pickup Address" }) }), /* @__PURE__ */ O(c, {
245
+ className: "space-y-4",
246
+ children: [
247
+ /* @__PURE__ */ O("div", {
248
+ className: "space-y-2",
249
+ children: [/* @__PURE__ */ D(p, {
250
+ htmlFor: "pickupStreet",
251
+ children: "Street Address"
252
+ }), /* @__PURE__ */ D(e, {
253
+ id: "pickupStreet",
254
+ value: I.pickupAddress.street,
255
+ onChange: (e) => U("pickupAddress", "street", e.target.value),
256
+ placeholder: "123 Main St"
257
+ })]
258
+ }),
259
+ /* @__PURE__ */ O("div", {
260
+ className: "grid grid-cols-2 gap-4",
261
+ children: [/* @__PURE__ */ O("div", {
262
+ className: "space-y-2",
263
+ children: [/* @__PURE__ */ D(p, {
264
+ htmlFor: "pickupCity",
265
+ children: "City"
266
+ }), /* @__PURE__ */ D(e, {
267
+ id: "pickupCity",
268
+ value: I.pickupAddress.city,
269
+ onChange: (e) => U("pickupAddress", "city", e.target.value),
270
+ placeholder: "San Francisco"
271
+ })]
272
+ }), /* @__PURE__ */ O("div", {
273
+ className: "space-y-2",
274
+ children: [/* @__PURE__ */ D(p, {
275
+ htmlFor: "pickupState",
276
+ children: "State"
277
+ }), /* @__PURE__ */ D(e, {
278
+ id: "pickupState",
279
+ value: I.pickupAddress.state,
280
+ onChange: (e) => U("pickupAddress", "state", e.target.value),
281
+ placeholder: "CA"
282
+ })]
283
+ })]
284
+ }),
285
+ /* @__PURE__ */ O("div", {
286
+ className: "grid grid-cols-2 gap-4",
287
+ children: [/* @__PURE__ */ O("div", {
288
+ className: "space-y-2",
289
+ children: [/* @__PURE__ */ D(p, {
290
+ htmlFor: "pickupPostal",
291
+ children: "Postal Code"
292
+ }), /* @__PURE__ */ D(e, {
293
+ id: "pickupPostal",
294
+ value: I.pickupAddress.postalCode,
295
+ onChange: (e) => U("pickupAddress", "postalCode", e.target.value),
296
+ placeholder: "94103"
297
+ })]
298
+ }), /* @__PURE__ */ O("div", {
299
+ className: "space-y-2",
300
+ children: [/* @__PURE__ */ D(p, {
301
+ htmlFor: "pickupCountry",
302
+ children: "Country"
303
+ }), /* @__PURE__ */ D(e, {
304
+ id: "pickupCountry",
305
+ value: I.pickupAddress.country,
306
+ onChange: (e) => U("pickupAddress", "country", e.target.value),
307
+ placeholder: "USA"
308
+ })]
309
+ })]
310
+ })
311
+ ]
312
+ })] }), /* @__PURE__ */ O(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ D(l, { children: "Delivery Address" }) }), /* @__PURE__ */ O(c, {
313
+ className: "space-y-4",
314
+ children: [
315
+ /* @__PURE__ */ O("div", {
316
+ className: "space-y-2",
317
+ children: [/* @__PURE__ */ D(p, {
318
+ htmlFor: "deliveryStreet",
319
+ children: "Street Address"
320
+ }), /* @__PURE__ */ D(e, {
321
+ id: "deliveryStreet",
322
+ value: I.deliveryAddress.street,
323
+ onChange: (e) => U("deliveryAddress", "street", e.target.value),
324
+ placeholder: "456 Oak Ave"
325
+ })]
326
+ }),
327
+ /* @__PURE__ */ O("div", {
328
+ className: "grid grid-cols-2 gap-4",
329
+ children: [/* @__PURE__ */ O("div", {
330
+ className: "space-y-2",
331
+ children: [/* @__PURE__ */ D(p, {
332
+ htmlFor: "deliveryCity",
333
+ children: "City"
334
+ }), /* @__PURE__ */ D(e, {
335
+ id: "deliveryCity",
336
+ value: I.deliveryAddress.city,
337
+ onChange: (e) => U("deliveryAddress", "city", e.target.value),
338
+ placeholder: "Los Angeles"
339
+ })]
340
+ }), /* @__PURE__ */ O("div", {
341
+ className: "space-y-2",
342
+ children: [/* @__PURE__ */ D(p, {
343
+ htmlFor: "deliveryState",
344
+ children: "State"
345
+ }), /* @__PURE__ */ D(e, {
346
+ id: "deliveryState",
347
+ value: I.deliveryAddress.state,
348
+ onChange: (e) => U("deliveryAddress", "state", e.target.value),
349
+ placeholder: "CA"
350
+ })]
351
+ })]
352
+ }),
353
+ /* @__PURE__ */ O("div", {
354
+ className: "grid grid-cols-2 gap-4",
355
+ children: [/* @__PURE__ */ O("div", {
356
+ className: "space-y-2",
357
+ children: [/* @__PURE__ */ D(p, {
358
+ htmlFor: "deliveryPostal",
359
+ children: "Postal Code"
360
+ }), /* @__PURE__ */ D(e, {
361
+ id: "deliveryPostal",
362
+ value: I.deliveryAddress.postalCode,
363
+ onChange: (e) => U("deliveryAddress", "postalCode", e.target.value),
364
+ placeholder: "90210"
365
+ })]
366
+ }), /* @__PURE__ */ O("div", {
367
+ className: "space-y-2",
368
+ children: [/* @__PURE__ */ D(p, {
369
+ htmlFor: "deliveryCountry",
370
+ children: "Country"
371
+ }), /* @__PURE__ */ D(e, {
372
+ id: "deliveryCountry",
373
+ value: I.deliveryAddress.country,
374
+ onChange: (e) => U("deliveryAddress", "country", e.target.value),
375
+ placeholder: "USA"
376
+ })]
377
+ })]
378
+ })
379
+ ]
380
+ })] })]
381
+ }),
382
+ /* @__PURE__ */ O(s, { children: [/* @__PURE__ */ O(u, {
383
+ className: "flex flex-row items-center justify-between",
384
+ children: [/* @__PURE__ */ D(l, { children: "Order Items" }), /* @__PURE__ */ O(m, {
385
+ type: "button",
386
+ variant: "outline",
387
+ size: "sm",
388
+ onClick: W,
389
+ children: [/* @__PURE__ */ D(v, { size: 16 }), "Add Item"]
390
+ })]
391
+ }), /* @__PURE__ */ D(c, { children: I.items.length === 0 ? /* @__PURE__ */ O("div", {
392
+ className: "text-center py-8 text-muted-foreground",
393
+ children: [
394
+ /* @__PURE__ */ D(_, {
395
+ size: 48,
396
+ className: "mx-auto mb-4 opacity-50"
397
+ }),
398
+ /* @__PURE__ */ D("p", { children: "No items added yet" }),
399
+ /* @__PURE__ */ D(m, {
400
+ type: "button",
401
+ variant: "link",
402
+ onClick: W,
403
+ children: "Add your first item"
404
+ })
405
+ ]
406
+ }) : /* @__PURE__ */ D("div", {
407
+ className: "space-y-4",
408
+ children: I.items.map((t, n) => /* @__PURE__ */ O("div", { children: [n > 0 && /* @__PURE__ */ D(h, { className: "my-4" }), /* @__PURE__ */ O("div", {
409
+ className: "grid grid-cols-1 md:grid-cols-6 gap-4",
410
+ children: [
411
+ /* @__PURE__ */ O("div", {
412
+ className: "md:col-span-2 space-y-2",
413
+ children: [/* @__PURE__ */ D(p, { children: "Item Name" }), /* @__PURE__ */ D(e, {
414
+ value: t.name,
415
+ onChange: (e) => K(n, "name", e.target.value),
416
+ placeholder: "Product name"
417
+ })]
418
+ }),
419
+ /* @__PURE__ */ O("div", {
420
+ className: "space-y-2",
421
+ children: [/* @__PURE__ */ D(p, { children: "SKU" }), /* @__PURE__ */ D(e, {
422
+ value: t.sku,
423
+ onChange: (e) => K(n, "sku", e.target.value),
424
+ placeholder: "SKU-001"
425
+ })]
426
+ }),
427
+ /* @__PURE__ */ O("div", {
428
+ className: "space-y-2",
429
+ children: [/* @__PURE__ */ D(p, { children: "Quantity" }), /* @__PURE__ */ D(e, {
430
+ type: "number",
431
+ min: "1",
432
+ value: t.quantity,
433
+ onChange: (e) => K(n, "quantity", parseInt(e.target.value) || 1)
434
+ })]
435
+ }),
436
+ /* @__PURE__ */ O("div", {
437
+ className: "space-y-2",
438
+ children: [/* @__PURE__ */ D(p, { children: "Value ($)" }), /* @__PURE__ */ D(e, {
439
+ type: "number",
440
+ min: "0",
441
+ step: "0.01",
442
+ value: t.value,
443
+ onChange: (e) => K(n, "value", parseFloat(e.target.value) || 0)
444
+ })]
445
+ }),
446
+ /* @__PURE__ */ D("div", {
447
+ className: "flex items-end",
448
+ children: /* @__PURE__ */ D(m, {
449
+ type: "button",
450
+ variant: "ghost",
451
+ size: "icon",
452
+ className: "text-destructive",
453
+ onClick: () => G(n),
454
+ children: /* @__PURE__ */ D(k, { size: 16 })
455
+ })
456
+ })
457
+ ]
458
+ })] }, t.id))
459
+ }) })] }),
460
+ /* @__PURE__ */ O(s, { children: [/* @__PURE__ */ D(u, { children: /* @__PURE__ */ D(l, { children: "Special Instructions" }) }), /* @__PURE__ */ D(c, { children: /* @__PURE__ */ D(a, {
461
+ value: I.specialInstructions,
462
+ onChange: (e) => H("specialInstructions", e.target.value),
463
+ placeholder: "Any special handling or delivery instructions...",
464
+ rows: 4
465
+ }) })] })
466
+ ]
467
+ })
468
+ });
469
+ }
470
+ //#endregion
471
+ export { A as default };