@burdenoff/microfe-movethewheels 2026.1016.2 → 2026.1016.4

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 (113) hide show
  1. package/README.md +10 -0
  2. package/dist/MoveTheWheelsRoot.js +5 -0
  3. package/dist/MoveTheWheelsRoutes.js +25 -21
  4. package/dist/components/ContainerEvidencePicker.js +55 -55
  5. package/dist/components/FleetAlertsPanel.js +2 -2
  6. package/dist/components/freight-cost/FreightCommercialEditor.js +217 -0
  7. package/dist/components/freight-cost/FreightCommercialFactEditor.js +217 -0
  8. package/dist/components/freight-cost/FreightCommercialHistory.js +115 -0
  9. package/dist/components/freight-cost/FreightDraftForm.js +106 -91
  10. package/dist/components/freight-cost/FreightHistory.js +42 -40
  11. package/dist/components/freight-invoice/InvoiceForm.js +366 -0
  12. package/dist/components/freight-invoice/InvoiceResults.js +240 -0
  13. package/dist/generated/consolidation-operations.d.ts +195 -265
  14. package/dist/generated/container-condition-operations.d.ts +124 -187
  15. package/dist/generated/container-operations.d.ts +59 -85
  16. package/dist/generated/empty-reuse-operations.d.ts +165 -271
  17. package/dist/generated/free-time-operations.d.ts +120 -184
  18. package/dist/generated/freight-cost-operations.d.ts +955 -165
  19. package/dist/generated/freight-invoice-operations.d.ts +1447 -0
  20. package/dist/generated/logistics-procedure-operations.d.ts +100 -156
  21. package/dist/generated/pending-pick-operations.d.ts +769 -1025
  22. package/dist/generated/shipment-status-authority-operations.d.ts +82 -103
  23. package/dist/generated/stock-binding-operations.d.ts +188 -260
  24. package/dist/generated/stock-observation-operations.d.ts +103 -138
  25. package/dist/generated/tracking-quality-operations.d.ts +27 -41
  26. package/dist/generated/trip-utilization-operations.d.ts +137 -185
  27. package/dist/generated/wspace-operations.d.ts +628 -2272
  28. package/dist/generated/wspace-types.d.ts +4 -23
  29. package/dist/hooks/useFreightRecoveryAction.js +20 -20
  30. package/dist/hooks/useInvoiceComparisonRecovery.js +118 -0
  31. package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +2 -1
  32. package/dist/movethewheels/components/freight-cost/FreightCommercialEditor.d.ts +8 -0
  33. package/dist/movethewheels/components/freight-cost/FreightCommercialFactEditor.d.ts +8 -0
  34. package/dist/movethewheels/components/freight-cost/FreightCommercialHistory.d.ts +4 -0
  35. package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +4 -2
  36. package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +2 -2
  37. package/dist/movethewheels/components/freight-invoice/InvoiceForm.d.ts +19 -0
  38. package/dist/movethewheels/components/freight-invoice/InvoiceResults.d.ts +9 -0
  39. package/dist/movethewheels/hooks/useFleet.d.ts +1 -1
  40. package/dist/movethewheels/hooks/useFleetIntelligence.d.ts +1 -1
  41. package/dist/movethewheels/hooks/useInvoiceComparisonRecovery.d.ts +22 -0
  42. package/dist/movethewheels/hooks/useProcedureSelection.d.ts +1 -3
  43. package/dist/movethewheels/pages/FreightInvoicePage.d.ts +10 -0
  44. package/dist/movethewheels/utils/driverLicenseExpiry.d.ts +6 -0
  45. package/dist/movethewheels/utils/freightCommercial.d.ts +44 -0
  46. package/dist/movethewheels/utils/invoiceComparison.d.ts +32 -0
  47. package/dist/pages/DriverDetailsPage.js +306 -282
  48. package/dist/pages/FreightEstimatePage.js +97 -92
  49. package/dist/pages/FreightInvoicePage.js +346 -0
  50. package/dist/src/generated/consolidation-operations.js +3961 -503
  51. package/dist/src/generated/container-condition-operations.js +2968 -206
  52. package/dist/src/generated/container-operations.js +997 -99
  53. package/dist/src/generated/empty-reuse-operations.js +4811 -747
  54. package/dist/src/generated/free-time-operations.js +2824 -233
  55. package/dist/src/generated/freight-cost-operations.js +4852 -323
  56. package/dist/src/generated/freight-invoice-operations.js +4894 -0
  57. package/dist/src/generated/logistics-procedure-operations.js +2707 -360
  58. package/dist/src/generated/pending-pick-operations.js +8244 -1196
  59. package/dist/src/generated/shipment-status-authority-operations.js +1157 -84
  60. package/dist/src/generated/stock-binding-operations.js +2779 -173
  61. package/dist/src/generated/stock-observation-operations.js +1274 -91
  62. package/dist/src/generated/tracking-quality-operations.js +407 -42
  63. package/dist/src/generated/trip-utilization-operations.js +1765 -138
  64. package/dist/src/generated/wspace-operations.js +428 -706
  65. package/dist/utils/driverLicenseExpiry.js +14 -0
  66. package/dist/utils/freightAcknowledgement.js +6 -5
  67. package/dist/utils/freightCommercial.js +194 -0
  68. package/dist/utils/freightRecovery.js +22 -22
  69. package/dist/utils/invoiceComparison.js +272 -0
  70. package/package.json +30 -29
  71. package/src/generated/consolidation-operations.ts +60 -559
  72. package/src/generated/container-condition-operations.ts +63 -265
  73. package/src/generated/container-operations.ts +37 -132
  74. package/src/generated/empty-reuse-operations.ts +83 -824
  75. package/src/generated/free-time-operations.ts +55 -284
  76. package/src/generated/freight-cost-operations.ts +373 -349
  77. package/src/generated/freight-invoice-operations.ts +830 -0
  78. package/src/generated/logistics-procedure-operations.ts +60 -414
  79. package/src/generated/pending-pick-operations.ts +48 -1239
  80. package/src/generated/shipment-status-authority-operations.ts +33 -113
  81. package/src/generated/stock-binding-operations.ts +29 -198
  82. package/src/generated/stock-observation-operations.ts +24 -111
  83. package/src/generated/tracking-quality-operations.ts +19 -57
  84. package/src/generated/trip-utilization-operations.ts +32 -166
  85. package/src/generated/wspace-operations.ts +284 -2906
  86. package/src/generated/wspace-types.ts +2 -8
  87. package/src/movethewheels/MoveTheWheelsRoot.tsx +6 -0
  88. package/src/movethewheels/MoveTheWheelsRoutes.tsx +2 -0
  89. package/src/movethewheels/components/ContainerEvidencePicker.tsx +12 -4
  90. package/src/movethewheels/components/FleetAlertsPanel.tsx +4 -2
  91. package/src/movethewheels/components/freight-cost/FreightCommercialEditor.tsx +236 -0
  92. package/src/movethewheels/components/freight-cost/FreightCommercialFactEditor.tsx +258 -0
  93. package/src/movethewheels/components/freight-cost/FreightCommercialHistory.tsx +90 -0
  94. package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +33 -4
  95. package/src/movethewheels/components/freight-cost/FreightHistory.tsx +4 -2
  96. package/src/movethewheels/components/freight-invoice/InvoiceForm.tsx +412 -0
  97. package/src/movethewheels/components/freight-invoice/InvoiceResults.tsx +162 -0
  98. package/src/movethewheels/hooks/useFleet.ts +1 -1
  99. package/src/movethewheels/hooks/useFleetIntelligence.ts +5 -1
  100. package/src/movethewheels/hooks/useFreightRecoveryAction.ts +2 -1
  101. package/src/movethewheels/hooks/useInvoiceComparisonRecovery.ts +227 -0
  102. package/src/movethewheels/pages/DriverDetailsPage.tsx +35 -9
  103. package/src/movethewheels/pages/FreightEstimatePage.tsx +15 -7
  104. package/src/movethewheels/pages/FreightInvoicePage.tsx +477 -0
  105. package/src/movethewheels/utils/driverLicenseExpiry.ts +25 -0
  106. package/src/movethewheels/utils/freightAcknowledgement.ts +3 -1
  107. package/src/movethewheels/utils/freightCommercial.ts +388 -0
  108. package/src/movethewheels/utils/freightRecovery.ts +6 -2
  109. package/src/movethewheels/utils/invoiceComparison.ts +520 -0
  110. package/src/operations/freight-cost/commercial.graphql +483 -0
  111. package/src/operations/freight-invoice/comparison.graphql +40 -0
  112. package/src/operations/wspace/freight-invoice-evidence.graphql +6 -0
  113. package/patches/braces@3.0.3.patch +0 -87
@@ -3,144 +3,147 @@ import { Button as t } from "../components/ui.js";
3
3
  import { PageLayout as n } from "../components/PageLayout.js";
4
4
  import { useConditionApi as r, useConditionQuery as i } from "../hooks/useContainerCondition.js";
5
5
  import { PinnedSelect as a, ReusePager as o, ReuseState as s, reuseCard as c } from "../components/ReuseControls.js";
6
- import { FreightText as l } from "../components/freight-cost/FreightFields.js";
7
- import { freightPinMatches as u, freightSaveInput as d } from "../utils/freightDraft.js";
8
- import { FreightDraftForm as ee } from "../components/freight-cost/FreightDraftForm.js";
9
- import { FreightHistory as f } from "../components/freight-cost/FreightHistory.js";
10
- import { FreightHistoryDocument as p, FreightShipmentDocument as m, FreightShipmentsDocument as h, FreightVersionDocument as g, PreviewFreightCostsDocument as _, SaveFreightCostsDocument as v } from "../src/generated/freight-cost-operations.js";
6
+ import { FreightCommercialVersionDocument as l, FreightHistoryDocument as u, FreightShipmentDocument as d, FreightShipmentsDocument as f, PreviewFreightCostsDocument as ee, SaveFreightCommercialCostsDocument as p, SaveFreightCostsDocument as m } from "../src/generated/freight-cost-operations.js";
7
+ import { FreightText as h } from "../components/freight-cost/FreightFields.js";
8
+ import { freightPinMatches as g, freightSaveInput as _ } from "../utils/freightDraft.js";
9
+ import { FreightDraftForm as v } from "../components/freight-cost/FreightDraftForm.js";
10
+ import { FreightHistory as te } from "../components/freight-cost/FreightHistory.js";
11
11
  import { useFreightRecoveryAction as y } from "../hooks/useFreightRecoveryAction.js";
12
- import { useEffect as te, useRef as b, useState as x } from "react";
13
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
12
+ import { useEffect as b, useRef as x, useState as S } from "react";
13
+ import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
14
14
  //#region src/movethewheels/pages/FreightEstimatePage.tsx
15
- function T() {
15
+ function E() {
16
16
  let t = y();
17
- return /* @__PURE__ */ C(n, {
17
+ return /* @__PURE__ */ w(n, {
18
18
  title: "Freight cost estimates",
19
19
  subtitle: "Dated source costs, visible unknowns and immutable versions.",
20
- icon: /* @__PURE__ */ C(e, { "aria-hidden": "true" }),
21
- children: /* @__PURE__ */ C(E, { actions: t }, t.contextKey)
20
+ icon: /* @__PURE__ */ w(e, { "aria-hidden": "true" }),
21
+ children: /* @__PURE__ */ w(D, { actions: t }, t.contextKey)
22
22
  });
23
23
  }
24
- function E({ actions: e }) {
25
- let n = r(), [y, T] = x(0), [E, D] = x(0), [O, k] = x(null), [A, j] = x(""), [M, N] = x(null), [P, F] = x(null), [I, L] = x(!1), [R, z] = x(!1), [B, V] = x(null), H = b(!0), U = b(!1);
26
- te(() => (H.current = !0, () => {
24
+ function D({ actions: e }) {
25
+ let n = r(), [y, E] = S(0), [D, O] = S(0), [k, A] = S(null), [j, M] = S(""), [N, P] = S(null), [F, I] = S(null), [ne, L] = S(!1), [R, z] = S(!1), [B, V] = S(null), H = x(!0), U = x(!1);
26
+ b(() => (H.current = !0, () => {
27
27
  H.current = !1;
28
28
  }), []);
29
- let W = i(h, { pagination: {
29
+ let W = i(f, { pagination: {
30
30
  limit: 25,
31
31
  offset: y
32
- } }, e.revision), G = i(m, O ? { id: O.id } : null, e.revision), K = i(p, O && A.trim() ? {
33
- shipmentId: O.id,
34
- estimateReference: A.trim(),
32
+ } }, e.revision), G = i(d, k ? { id: k.id } : null, e.revision), K = i(u, k && j.trim() ? {
33
+ shipmentId: k.id,
34
+ estimateReference: j.trim(),
35
35
  pagination: {
36
36
  limit: 1,
37
37
  offset: 0
38
38
  }
39
- } : null, e.revision), q = e.uncertain ? e.originalHistoryTarget : O ? {
40
- shipmentId: O.id,
39
+ } : null, e.revision), q = e.uncertain ? e.originalHistoryTarget : k ? {
40
+ shipmentId: k.id,
41
41
  estimateReference: void 0
42
- } : null, J = i(p, q ? {
42
+ } : null, J = i(u, q ? {
43
43
  shipmentId: q.shipmentId,
44
44
  estimateReference: q.estimateReference,
45
45
  pagination: {
46
46
  limit: 10,
47
- offset: E
47
+ offset: D
48
48
  }
49
- } : null, e.revision), Y = i(g, q && M ? {
49
+ } : null, e.revision), Y = i(l, q && N ? {
50
50
  shipmentId: q.shipmentId,
51
- id: M
52
- } : null, e.revision), X = K.data?.mtwFreightEstimatePage.items[0] ?? null, Z = !!P && !!G.data && !!K.data && !u(P, G.data.shipment, X), Q = e.busy || I || e.uncertain, $ = W.data?.shipments.map((e) => ({
51
+ id: N
52
+ } : null, e.revision), X = K.data?.mtwFreightEstimatePage.items[0] ?? null, Z = !!F && !!G.data && !!K.data && !g(F, G.data.shipment, X), Q = e.busy || ne || e.uncertain, $ = W.data?.shipments.map((e) => ({
53
53
  id: e.id,
54
54
  label: `${e.shipmentNumber} — ${e.primaryMode} — ${e.status}`
55
55
  })) ?? [];
56
- O && !$.some((e) => e.id === O.id) && $.unshift({
57
- id: O.id,
58
- label: `${O.label} — selected outside this page`
56
+ k && !$.some((e) => e.id === k.id) && $.unshift({
57
+ id: k.id,
58
+ label: `${k.label} — selected outside this page`
59
59
  });
60
- let ne = async (t, r) => {
60
+ let re = async (t, r, i) => {
61
61
  if (U.current || Q) return;
62
- if (!P) throw Error("Review the shipment and current cost history first.");
62
+ if (!F) throw Error("Review the shipment and current cost history first.");
63
63
  U.current = !0, L(!0), V(null);
64
- let i = P;
64
+ let a = F;
65
65
  try {
66
- let a = await n(m, { id: i.shipmentId }), o = await n(p, {
67
- shipmentId: i.shipmentId,
68
- estimateReference: i.estimateReference,
66
+ let o = await n(d, { id: a.shipmentId }), s = await n(u, {
67
+ shipmentId: a.shipmentId,
68
+ estimateReference: a.estimateReference,
69
69
  pagination: {
70
70
  limit: 1,
71
71
  offset: 0
72
72
  }
73
73
  });
74
74
  if (!H.current) throw Error("The current workspace changed. Nothing was sent.");
75
- let s = o.mtwFreightEstimatePage.items[0] ?? null;
76
- u(i, a.shipment, s) || z(!0);
77
- let c = d(i, a.shipment, s, t, r.map(({ fileId: e, versionId: t }) => ({
75
+ let c = s.mtwFreightEstimatePage.items[0] ?? null;
76
+ g(a, o.shipment, c) || z(!0);
77
+ let l = _(a, o.shipment, c, t, r.map(({ fileId: e, versionId: t }) => ({
78
78
  fileId: e,
79
79
  versionId: t
80
- }))), l = await e.run(v, c, "Sourced cost version recorded.");
81
- l && H.current && (N(l.saveMtwFreightEstimate.id), F(null), D(0));
80
+ }))), f = await e.run(i ? p : m, i ? {
81
+ ...l,
82
+ commercialCapture: i
83
+ } : l, "Sourced cost version recorded.");
84
+ f && H.current && (P(f.saveMtwFreightEstimate.id), I(null), O(0));
82
85
  } finally {
83
86
  H.current && L(!1), U.current = !1;
84
87
  }
85
- }, re = W.data ? {
88
+ }, ie = W.data ? {
86
89
  total: W.data.shipmentsCount,
87
90
  limit: 25,
88
91
  offset: y,
89
92
  hasMore: y + W.data.shipments.length < W.data.shipmentsCount,
90
93
  nextOffset: y + 25
91
94
  } : void 0;
92
- return /* @__PURE__ */ w("div", {
95
+ return /* @__PURE__ */ T("div", {
93
96
  className: "min-w-0 space-y-6 break-words",
94
97
  children: [
95
- /* @__PURE__ */ C("p", {
98
+ /* @__PURE__ */ w("p", {
96
99
  className: "rounded border p-4 text-sm",
97
100
  children: "Record the costs stated by your source. Missing facts are not zero. Saving does not book freight, accept a quote or settle an invoice."
98
101
  }),
99
- /* @__PURE__ */ w("section", {
102
+ /* @__PURE__ */ T("section", {
100
103
  className: c,
101
104
  children: [
102
- /* @__PURE__ */ C("h2", {
105
+ /* @__PURE__ */ w("h2", {
103
106
  className: "text-lg font-semibold",
104
107
  children: "Shipment and cost sheet"
105
108
  }),
106
- /* @__PURE__ */ C(a, {
109
+ /* @__PURE__ */ w(a, {
107
110
  label: "Shipment",
108
- value: O?.id ?? "",
111
+ value: k?.id ?? "",
109
112
  options: $,
110
113
  disabled: Q,
111
114
  onChange: (e) => {
112
115
  let t = $.find((t) => t.id === e);
113
- k(t ? {
116
+ A(t ? {
114
117
  id: t.id,
115
118
  label: t.label
116
- } : null), F(null), N(null), D(0), z(!1);
119
+ } : null), I(null), P(null), O(0), z(!1);
117
120
  }
118
121
  }),
119
- /* @__PURE__ */ C(s, {
122
+ /* @__PURE__ */ w(s, {
120
123
  loading: W.loading,
121
124
  error: W.error
122
125
  }),
123
- /* @__PURE__ */ C(o, {
124
- page: re,
126
+ /* @__PURE__ */ w(o, {
127
+ page: ie,
125
128
  busy: W.loading || Q,
126
129
  offset: y,
127
- onChange: T
130
+ onChange: E
128
131
  }),
129
- /* @__PURE__ */ C(l, {
132
+ /* @__PURE__ */ w(h, {
130
133
  label: "Cost sheet reference",
131
- value: A,
132
- disabled: Q || P !== null,
133
- onChange: j
134
+ value: j,
135
+ disabled: Q || F !== null,
136
+ onChange: M
134
137
  }),
135
- /* @__PURE__ */ C(s, {
138
+ /* @__PURE__ */ w(s, {
136
139
  loading: G.loading,
137
140
  error: G.error
138
141
  }),
139
- /* @__PURE__ */ C(s, {
142
+ /* @__PURE__ */ w(s, {
140
143
  loading: K.loading,
141
144
  error: K.error
142
145
  }),
143
- G.data?.shipment && /* @__PURE__ */ w("p", { children: [
146
+ G.data?.shipment && /* @__PURE__ */ T("p", { children: [
144
147
  G.data.shipment.shipmentNumber,
145
148
  " — ",
146
149
  G.data.shipment.primaryMode,
@@ -149,23 +152,23 @@ function E({ actions: e }) {
149
152
  X ? `latest sheet version ${X.version}` : "no version in the loaded sheet",
150
153
  "."
151
154
  ] }),
152
- /* @__PURE__ */ w("div", {
155
+ /* @__PURE__ */ T("div", {
153
156
  className: "flex flex-wrap gap-3",
154
- children: [/* @__PURE__ */ C(t, {
157
+ children: [/* @__PURE__ */ w(t, {
155
158
  type: "button",
156
159
  variant: "outline",
157
160
  disabled: Q,
158
161
  onClick: e.refresh,
159
162
  children: "Refresh current records"
160
- }), /* @__PURE__ */ C(t, {
163
+ }), /* @__PURE__ */ w(t, {
161
164
  type: "button",
162
- disabled: Q || G.loading || K.loading || !!G.error || !!K.error || !G.data?.shipment || !K.data || !A.trim(),
165
+ disabled: Q || G.loading || K.loading || !!G.error || !!K.error || !G.data?.shipment || !K.data || !j.trim(),
163
166
  onClick: () => {
164
167
  let e = G.data?.shipment;
165
- e && K.data && (F({
168
+ e && K.data && (I({
166
169
  shipmentId: e.id,
167
170
  shipmentUpdatedAt: e.updatedAt,
168
- estimateReference: A.trim(),
171
+ estimateReference: j.trim(),
169
172
  previousId: X?.id ?? null,
170
173
  version: X?.version ?? 0,
171
174
  generation: crypto.randomUUID()
@@ -176,42 +179,43 @@ function E({ actions: e }) {
176
179
  })
177
180
  ]
178
181
  }),
179
- (Z || R) && /* @__PURE__ */ C("p", {
182
+ (Z || R) && /* @__PURE__ */ w("p", {
180
183
  role: "alert",
181
184
  children: "The shipment or cost history changed. Review the current records and explicitly start a new draft; entered facts were not rebound."
182
185
  }),
183
- P && !Z && !R && /* @__PURE__ */ C(ee, {
186
+ F && !Z && !R && /* @__PURE__ */ w(v, {
187
+ shipmentId: F.shipmentId,
184
188
  disabled: Q || G.loading || K.loading || !!G.error || !!K.error,
185
- onPreview: async (e) => (await n(_, { input: e })).previewMtwFreightTotal,
186
- onSave: ne
187
- }, P.generation),
188
- B && /* @__PURE__ */ C("p", {
189
+ onPreview: async (e) => (await n(ee, { input: e })).previewMtwFreightTotal,
190
+ onSave: re
191
+ }, F.generation),
192
+ B && /* @__PURE__ */ w("p", {
189
193
  role: "alert",
190
194
  children: B
191
195
  }),
192
- e.error && /* @__PURE__ */ C("p", {
196
+ e.error && /* @__PURE__ */ w("p", {
193
197
  role: "alert",
194
198
  children: e.error
195
199
  }),
196
- e.notice && /* @__PURE__ */ C("p", {
200
+ e.notice && /* @__PURE__ */ w("p", {
197
201
  role: "status",
198
202
  children: e.notice
199
203
  }),
200
- e.uncertain && /* @__PURE__ */ w("section", {
204
+ e.uncertain && /* @__PURE__ */ T("section", {
201
205
  className: "space-y-4 rounded-xl border bg-bg-surface p-5",
202
206
  children: [
203
- /* @__PURE__ */ C("h2", {
207
+ /* @__PURE__ */ w("h2", {
204
208
  className: "font-semibold",
205
209
  children: "Resolve the original save"
206
210
  }),
207
- /* @__PURE__ */ C("p", { children: "The server may already have recorded it. Check history first. Return to the original account, organization, workspace and project before retrying." }),
208
- /* @__PURE__ */ C(t, {
211
+ /* @__PURE__ */ w("p", { children: "The server may already have recorded it. Check history first. Return to the original account, organization, workspace and project before retrying." }),
212
+ /* @__PURE__ */ w(t, {
209
213
  type: "button",
210
214
  disabled: !e.canRetry || e.busy,
211
215
  onClick: () => void e.retryOriginal(),
212
216
  children: "Retry original request"
213
217
  }),
214
- /* @__PURE__ */ C(t, {
218
+ /* @__PURE__ */ w(t, {
215
219
  type: "button",
216
220
  variant: "outline",
217
221
  disabled: e.busy,
@@ -222,38 +226,39 @@ function E({ actions: e }) {
222
226
  })
223
227
  ]
224
228
  }),
225
- e.uncertain && !e.originalHistoryTarget && /* @__PURE__ */ C("p", {
229
+ e.uncertain && !e.originalHistoryTarget && /* @__PURE__ */ w("p", {
226
230
  role: "status",
227
231
  children: "Original history is unavailable in this context. Return to the original account, organization, workspace and project. A malformed saved request cannot supply a history target."
228
232
  }),
229
- q && /* @__PURE__ */ w("section", {
233
+ q && /* @__PURE__ */ T("section", {
230
234
  className: "space-y-4 rounded-xl border bg-bg-surface p-5",
231
235
  children: [
232
- /* @__PURE__ */ C("h2", {
236
+ /* @__PURE__ */ w("h2", {
233
237
  className: "text-lg font-semibold",
234
238
  children: e.uncertain ? "Original request cost history" : "Immutable cost history"
235
239
  }),
236
- e.uncertain && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w("p", { children: [
240
+ e.uncertain && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ T("p", { children: [
237
241
  "Shipment ",
238
242
  q.shipmentId,
239
243
  "; sheet ",
240
244
  q.estimateReference,
241
245
  ". Reading these records does not confirm the original request key or clear recovery."
242
- ] }), /* @__PURE__ */ C(t, {
246
+ ] }), /* @__PURE__ */ w(t, {
243
247
  type: "button",
244
248
  variant: "outline",
245
249
  disabled: e.busy,
246
250
  onClick: e.refresh,
247
251
  children: "Refresh original history"
248
252
  })] }),
249
- /* @__PURE__ */ C(s, {
253
+ /* @__PURE__ */ w(s, {
250
254
  loading: J.loading,
251
255
  error: J.error
252
256
  }),
253
- J.data?.mtwFreightEstimatePage.items.map((e) => /* @__PURE__ */ w(t, {
257
+ J.data?.mtwFreightEstimatePage.items.map((e) => /* @__PURE__ */ T(t, {
254
258
  type: "button",
255
259
  variant: "outline",
256
- onClick: () => N(e.id),
260
+ className: "h-auto w-full max-w-full justify-start whitespace-normal break-all text-left",
261
+ onClick: () => P(e.id),
257
262
  children: [
258
263
  e.facts.title,
259
264
  " / ",
@@ -265,20 +270,20 @@ function E({ actions: e }) {
265
270
  new Date(e.recordedAt).toLocaleString()
266
271
  ]
267
272
  }, e.id)),
268
- /* @__PURE__ */ C(o, {
273
+ /* @__PURE__ */ w(o, {
269
274
  page: J.data?.mtwFreightEstimatePage,
270
275
  busy: J.loading,
271
- offset: E,
272
- onChange: D
276
+ offset: D,
277
+ onChange: O
273
278
  })
274
279
  ]
275
280
  }),
276
- q && M && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(s, {
281
+ q && N && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(s, {
277
282
  loading: Y.loading,
278
283
  error: Y.error
279
- }), Y.data && /* @__PURE__ */ C(f, { record: Y.data.mtwFreightEstimateVersion })] })
284
+ }), Y.data && /* @__PURE__ */ w(te, { record: Y.data.mtwFreightEstimateVersion })] })
280
285
  ]
281
286
  });
282
287
  }
283
288
  //#endregion
284
- export { T as default };
289
+ export { E as default };