@burdenoff/microfe-movethewheels 2026.1016.2 → 2026.1016.3
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.
- package/dist/components/freight-cost/FreightCommercialEditor.js +217 -0
- package/dist/components/freight-cost/FreightCommercialFactEditor.js +217 -0
- package/dist/components/freight-cost/FreightCommercialHistory.js +115 -0
- package/dist/components/freight-cost/FreightDraftForm.js +106 -91
- package/dist/components/freight-cost/FreightHistory.js +42 -40
- package/dist/generated/freight-cost-operations.d.ts +959 -0
- package/dist/hooks/useFreightRecoveryAction.js +20 -20
- package/dist/movethewheels/components/freight-cost/FreightCommercialEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightCommercialFactEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightCommercialHistory.d.ts +4 -0
- package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +4 -2
- package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +2 -2
- package/dist/movethewheels/utils/freightCommercial.d.ts +44 -0
- package/dist/pages/FreightEstimatePage.js +96 -92
- package/dist/src/generated/freight-cost-operations.js +495 -6
- package/dist/utils/freightAcknowledgement.js +6 -5
- package/dist/utils/freightCommercial.js +194 -0
- package/dist/utils/freightRecovery.js +22 -22
- package/package.json +4 -3
- package/src/generated/freight-cost-operations.ts +831 -1
- package/src/movethewheels/components/freight-cost/FreightCommercialEditor.tsx +236 -0
- package/src/movethewheels/components/freight-cost/FreightCommercialFactEditor.tsx +258 -0
- package/src/movethewheels/components/freight-cost/FreightCommercialHistory.tsx +90 -0
- package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +33 -4
- package/src/movethewheels/components/freight-cost/FreightHistory.tsx +4 -2
- package/src/movethewheels/hooks/useFreightRecoveryAction.ts +2 -1
- package/src/movethewheels/pages/FreightEstimatePage.tsx +14 -7
- package/src/movethewheels/utils/freightAcknowledgement.ts +3 -1
- package/src/movethewheels/utils/freightCommercial.ts +388 -0
- package/src/movethewheels/utils/freightRecovery.ts +6 -2
- package/src/operations/freight-cost/commercial.graphql +483 -0
|
@@ -1,96 +1,105 @@
|
|
|
1
1
|
import { Button as e } from "../ui.js";
|
|
2
2
|
import { ContainerEvidencePicker as t } from "../ContainerEvidencePicker.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
3
|
+
import { commercialCanonical as n, commercialCaptureInput as r } from "../../utils/freightCommercial.js";
|
|
4
|
+
import { FreightCurrency as i, FreightSelect as a, FreightText as o } from "./FreightFields.js";
|
|
5
|
+
import { freightInstant as s, freightLocalTime as c, newFreightFacts as l, newFreightLine as u } from "../../utils/freightDraft.js";
|
|
6
|
+
import { FreightCommercialEditor as d } from "./FreightCommercialEditor.js";
|
|
7
|
+
import { FreightLineEditor as f } from "./FreightLineEditor.js";
|
|
8
|
+
import { FreightScopeEditor as p } from "./FreightScopeEditor.js";
|
|
9
|
+
import { FreightFxEditor as m } from "./FreightFxEditor.js";
|
|
10
|
+
import { FreightTotals as h } from "./FreightTotals.js";
|
|
11
|
+
import { useRef as g, useState as _ } from "react";
|
|
12
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
11
13
|
//#region src/movethewheels/components/freight-cost/FreightDraftForm.tsx
|
|
12
|
-
function
|
|
13
|
-
let [
|
|
14
|
-
...
|
|
14
|
+
function b({ disabled: b, shipmentId: x, onPreview: S, onSave: C }) {
|
|
15
|
+
let [w, T] = _(null), [E, D] = _(l), [O, k] = _([]), [A, j] = _(null), [M, N] = _(null), [P, F] = _(!1), I = g(!1), L = JSON.stringify(E), R = A?.body === L ? A.value : null, z = (e) => D({
|
|
16
|
+
...E,
|
|
15
17
|
...e
|
|
16
|
-
}),
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
let e = structuredClone(
|
|
18
|
+
}), B = async () => {
|
|
19
|
+
if (I.current) return;
|
|
20
|
+
I.current = !0, F(!0), N(null);
|
|
21
|
+
let e = structuredClone(E);
|
|
20
22
|
try {
|
|
21
|
-
let t = await
|
|
22
|
-
|
|
23
|
+
let t = await S(e);
|
|
24
|
+
j({
|
|
23
25
|
body: JSON.stringify(e),
|
|
24
26
|
value: t
|
|
25
27
|
});
|
|
26
28
|
} catch (e) {
|
|
27
|
-
|
|
29
|
+
N(e instanceof Error ? e.message : "Unable to preview these costs.");
|
|
28
30
|
} finally {
|
|
29
|
-
|
|
31
|
+
I.current = !1, F(!1);
|
|
30
32
|
}
|
|
31
33
|
};
|
|
32
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ y("form", {
|
|
33
35
|
className: "space-y-6",
|
|
34
36
|
onSubmit: (e) => {
|
|
35
|
-
if (e.preventDefault(), !
|
|
36
|
-
|
|
37
|
+
if (e.preventDefault(), !R) {
|
|
38
|
+
B();
|
|
37
39
|
return;
|
|
38
40
|
}
|
|
39
|
-
|
|
41
|
+
N(null);
|
|
42
|
+
try {
|
|
43
|
+
if (w && w.reviewed !== n(w.selectedLegs)) throw Error("Explicitly review the commercial leg selection before saving.");
|
|
44
|
+
let e = w ? r(w.facts, w.selectedLegs, O) : void 0;
|
|
45
|
+
C(structuredClone(E), structuredClone(O), e).catch((e) => N(e instanceof Error ? e.message : "Unable to save this cost record."));
|
|
46
|
+
} catch (e) {
|
|
47
|
+
N(e instanceof Error ? e.message : "Review commercial facts before saving.");
|
|
48
|
+
}
|
|
40
49
|
},
|
|
41
50
|
children: [
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
disabled:
|
|
51
|
+
/* @__PURE__ */ y("fieldset", {
|
|
52
|
+
disabled: b || P,
|
|
44
53
|
className: "space-y-5",
|
|
45
54
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ v("legend", {
|
|
47
56
|
className: "text-lg font-semibold",
|
|
48
57
|
children: "Sourced cost draft"
|
|
49
58
|
}),
|
|
50
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ y("div", {
|
|
51
60
|
className: "grid gap-3 md:grid-cols-2",
|
|
52
61
|
children: [
|
|
53
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ v(o, {
|
|
54
63
|
label: "Estimate title",
|
|
55
|
-
value:
|
|
64
|
+
value: E.title,
|
|
56
65
|
required: !0,
|
|
57
|
-
onChange: (e) =>
|
|
66
|
+
onChange: (e) => z({ title: e })
|
|
58
67
|
}),
|
|
59
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ y(a, {
|
|
60
69
|
label: "Record type",
|
|
61
|
-
value:
|
|
70
|
+
value: E.kind,
|
|
62
71
|
onChange: (e) => {
|
|
63
|
-
(e === "ESTIMATE" || e === "QUOTE") &&
|
|
72
|
+
(e === "ESTIMATE" || e === "QUOTE") && z({ kind: e });
|
|
64
73
|
},
|
|
65
|
-
children: [/* @__PURE__ */
|
|
74
|
+
children: [/* @__PURE__ */ v("option", {
|
|
66
75
|
value: "ESTIMATE",
|
|
67
76
|
children: "Estimate"
|
|
68
|
-
}), /* @__PURE__ */
|
|
77
|
+
}), /* @__PURE__ */ v("option", {
|
|
69
78
|
value: "QUOTE",
|
|
70
79
|
children: "Reported quote"
|
|
71
80
|
})]
|
|
72
81
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ v(o, {
|
|
74
83
|
label: "Commercial source",
|
|
75
|
-
value:
|
|
84
|
+
value: E.sourceReference,
|
|
76
85
|
required: !0,
|
|
77
|
-
onChange: (e) =>
|
|
86
|
+
onChange: (e) => z({ sourceReference: e })
|
|
78
87
|
}),
|
|
79
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ v(o, {
|
|
80
89
|
label: "Source version",
|
|
81
|
-
value:
|
|
90
|
+
value: E.sourceRevision,
|
|
82
91
|
required: !0,
|
|
83
|
-
onChange: (e) =>
|
|
92
|
+
onChange: (e) => z({ sourceRevision: e })
|
|
84
93
|
})
|
|
85
94
|
]
|
|
86
95
|
}),
|
|
87
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ v(o, {
|
|
88
97
|
label: "Shipment and services covered by this source",
|
|
89
|
-
value:
|
|
98
|
+
value: E.commercialScope,
|
|
90
99
|
required: !0,
|
|
91
|
-
onChange: (e) =>
|
|
100
|
+
onChange: (e) => z({ commercialScope: e })
|
|
92
101
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ y("p", {
|
|
94
103
|
className: "text-sm",
|
|
95
104
|
children: [
|
|
96
105
|
"Dates use your local time zone: ",
|
|
@@ -98,116 +107,122 @@ function _({ disabled: _, onPreview: v, onSave: y }) {
|
|
|
98
107
|
". They are recorded as exact UTC instants."
|
|
99
108
|
]
|
|
100
109
|
}),
|
|
101
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ v(o, {
|
|
102
111
|
label: "Price applies at",
|
|
103
112
|
type: "datetime-local",
|
|
104
|
-
value:
|
|
113
|
+
value: c(E.pricingAt),
|
|
105
114
|
required: !0,
|
|
106
115
|
onChange: (e) => {
|
|
107
|
-
e &&
|
|
116
|
+
e && z({ pricingAt: s(e) });
|
|
108
117
|
}
|
|
109
118
|
}),
|
|
110
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ y("section", {
|
|
111
120
|
className: "space-y-4",
|
|
112
121
|
children: [
|
|
113
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ v("h3", {
|
|
114
123
|
className: "font-semibold",
|
|
115
124
|
children: "Cost items"
|
|
116
125
|
}),
|
|
117
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ v("p", {
|
|
118
127
|
className: "text-sm",
|
|
119
128
|
children: "Blank amounts are unknown. Currency codes and decimal places are recorded conventions."
|
|
120
129
|
}),
|
|
121
|
-
|
|
130
|
+
E.lines.map((e) => /* @__PURE__ */ v(f, {
|
|
122
131
|
line: e,
|
|
123
|
-
others:
|
|
124
|
-
onChange: (t) =>
|
|
125
|
-
onRemove: () =>
|
|
132
|
+
others: E.lines,
|
|
133
|
+
onChange: (t) => z({ lines: E.lines.map((n) => n.id === e.id ? t : n) }),
|
|
134
|
+
onRemove: () => z({ lines: E.lines.filter((t) => t.id !== e.id) })
|
|
126
135
|
}, e.id)),
|
|
127
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ v(e, {
|
|
128
137
|
type: "button",
|
|
129
138
|
variant: "outline",
|
|
130
|
-
disabled:
|
|
131
|
-
onClick: () =>
|
|
139
|
+
disabled: E.lines.length >= 100,
|
|
140
|
+
onClick: () => z({ lines: [...E.lines, u()] }),
|
|
132
141
|
children: "Add cost item"
|
|
133
142
|
})
|
|
134
143
|
]
|
|
135
144
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ y("details", {
|
|
137
146
|
className: "space-y-4 rounded border p-4",
|
|
138
147
|
children: [
|
|
139
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ v("summary", {
|
|
140
149
|
className: "min-h-11 cursor-pointer font-medium",
|
|
141
150
|
children: "Review cost scope, dates and conversion"
|
|
142
151
|
}),
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
value:
|
|
145
|
-
onChange: (e) =>
|
|
152
|
+
/* @__PURE__ */ v(p, {
|
|
153
|
+
value: E.requirements,
|
|
154
|
+
onChange: (e) => z({ requirements: e })
|
|
146
155
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ y("section", {
|
|
148
157
|
className: "space-y-3",
|
|
149
|
-
children: [/* @__PURE__ */
|
|
158
|
+
children: [/* @__PURE__ */ v("h3", {
|
|
150
159
|
className: "font-semibold",
|
|
151
160
|
children: "Recorded quote dates"
|
|
152
161
|
}), [
|
|
153
162
|
"quotedAt",
|
|
154
163
|
"validFrom",
|
|
155
164
|
"validUntil"
|
|
156
|
-
].map((e) => /* @__PURE__ */
|
|
165
|
+
].map((e) => /* @__PURE__ */ v(o, {
|
|
157
166
|
label: e === "quotedAt" ? "Quote received at" : e === "validFrom" ? "Quote valid from" : "Quote valid until",
|
|
158
167
|
type: "datetime-local",
|
|
159
|
-
value:
|
|
160
|
-
onChange: (t) =>
|
|
168
|
+
value: E[e] ? c(E[e]) : "",
|
|
169
|
+
onChange: (t) => z({ [e]: t ? s(t) : null })
|
|
161
170
|
}, e))]
|
|
162
171
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ y(a, {
|
|
164
173
|
label: "Reporting total",
|
|
165
|
-
value:
|
|
166
|
-
onChange: (e) =>
|
|
174
|
+
value: E.reportingCurrency ? "RECORDED" : "UNKNOWN",
|
|
175
|
+
onChange: (e) => z({ reportingCurrency: e === "RECORDED" ? {
|
|
167
176
|
code: "USD",
|
|
168
177
|
minorUnitDigits: 2
|
|
169
178
|
} : null }),
|
|
170
|
-
children: [/* @__PURE__ */
|
|
179
|
+
children: [/* @__PURE__ */ v("option", {
|
|
171
180
|
value: "UNKNOWN",
|
|
172
181
|
children: "No reporting currency yet"
|
|
173
|
-
}), /* @__PURE__ */
|
|
182
|
+
}), /* @__PURE__ */ v("option", {
|
|
174
183
|
value: "RECORDED",
|
|
175
184
|
children: "Use a recorded currency convention"
|
|
176
185
|
})]
|
|
177
186
|
}),
|
|
178
|
-
|
|
187
|
+
E.reportingCurrency && /* @__PURE__ */ v(i, {
|
|
179
188
|
label: "Reporting currency convention",
|
|
180
|
-
value:
|
|
181
|
-
onChange: (e) =>
|
|
189
|
+
value: E.reportingCurrency,
|
|
190
|
+
onChange: (e) => z({ reportingCurrency: e })
|
|
182
191
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
-
value:
|
|
185
|
-
onChange: (e) =>
|
|
192
|
+
/* @__PURE__ */ v(m, {
|
|
193
|
+
value: E.fx,
|
|
194
|
+
onChange: (e) => z({ fx: e })
|
|
186
195
|
})
|
|
187
196
|
]
|
|
188
197
|
}),
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
value:
|
|
191
|
-
onChange:
|
|
198
|
+
/* @__PURE__ */ v(d, {
|
|
199
|
+
value: w,
|
|
200
|
+
onChange: T,
|
|
201
|
+
shipmentId: x,
|
|
202
|
+
evidence: O
|
|
203
|
+
}),
|
|
204
|
+
/* @__PURE__ */ v(t, {
|
|
205
|
+
value: O,
|
|
206
|
+
onChange: k,
|
|
192
207
|
description: "Choose the exact source document versions. A readable document supports this reported record; it does not accept a quote or confirm capacity."
|
|
193
208
|
})
|
|
194
209
|
]
|
|
195
210
|
}),
|
|
196
|
-
|
|
211
|
+
M && /* @__PURE__ */ v("p", {
|
|
197
212
|
role: "alert",
|
|
198
|
-
children:
|
|
213
|
+
children: M
|
|
199
214
|
}),
|
|
200
|
-
|
|
201
|
-
value:
|
|
202
|
-
currency:
|
|
215
|
+
R && /* @__PURE__ */ v(h, {
|
|
216
|
+
value: R,
|
|
217
|
+
currency: E.reportingCurrency
|
|
203
218
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ v(e, {
|
|
205
220
|
type: "submit",
|
|
206
|
-
disabled:
|
|
207
|
-
children:
|
|
221
|
+
disabled: b || P || E.lines.length === 0 || !!R && O.length === 0,
|
|
222
|
+
children: P ? "Previewing…" : R ? "Save immutable cost version" : "Preview costs and missing facts"
|
|
208
223
|
})
|
|
209
224
|
]
|
|
210
225
|
});
|
|
211
226
|
}
|
|
212
227
|
//#endregion
|
|
213
|
-
export {
|
|
228
|
+
export { b as FreightDraftForm };
|
|
@@ -1,64 +1,66 @@
|
|
|
1
1
|
import { freightLabel as e, freightMoney as t } from "../../utils/freightDraft.js";
|
|
2
2
|
import { FreightTotals as n } from "./FreightTotals.js";
|
|
3
|
-
import {
|
|
3
|
+
import { FreightCommercialHistory as r } from "./FreightCommercialHistory.js";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
5
|
//#region src/movethewheels/components/freight-cost/FreightHistory.tsx
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
function o({ record: o }) {
|
|
7
|
+
return /* @__PURE__ */ a("article", {
|
|
7
8
|
className: "min-w-0 space-y-4 break-words rounded border p-4",
|
|
8
9
|
children: [
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
+
/* @__PURE__ */ a("h2", {
|
|
10
11
|
className: "text-lg font-semibold",
|
|
11
12
|
children: [
|
|
12
|
-
|
|
13
|
+
o.facts.title,
|
|
13
14
|
" — version ",
|
|
14
|
-
|
|
15
|
+
o.version
|
|
15
16
|
]
|
|
16
17
|
}),
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
18
|
+
/* @__PURE__ */ a("p", { children: [
|
|
19
|
+
o.shipmentCapture.shipmentNumber,
|
|
19
20
|
" / ",
|
|
20
|
-
|
|
21
|
+
o.shipmentCapture.primaryMode,
|
|
21
22
|
" — captured shipment context"
|
|
22
23
|
] }),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
|
|
24
|
+
/* @__PURE__ */ a("p", { children: [
|
|
25
|
+
o.facts.kind === "QUOTE" ? "Reported quote" : "Estimate",
|
|
25
26
|
";",
|
|
26
27
|
" ",
|
|
27
|
-
e(
|
|
28
|
+
e(o.validityAtRead),
|
|
28
29
|
". This record does not accept a quote or confirm capacity."
|
|
29
30
|
] }),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ i("p", { children: o.facts.commercialScope }),
|
|
32
|
+
/* @__PURE__ */ a("p", { children: [
|
|
32
33
|
"Source: ",
|
|
33
|
-
|
|
34
|
+
o.facts.sourceReference,
|
|
34
35
|
" / ",
|
|
35
|
-
|
|
36
|
+
o.facts.sourceRevision
|
|
36
37
|
] }),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ a("p", { children: [
|
|
38
39
|
"Price at ",
|
|
39
|
-
|
|
40
|
+
o.facts.pricingAt,
|
|
40
41
|
"; recorded ",
|
|
41
|
-
|
|
42
|
+
o.recordedAt,
|
|
42
43
|
" by ",
|
|
43
|
-
|
|
44
|
+
o.createdBy,
|
|
44
45
|
" (",
|
|
45
|
-
e(
|
|
46
|
+
e(o.actorProvenance),
|
|
46
47
|
")."
|
|
47
48
|
] }),
|
|
48
|
-
/* @__PURE__ */ r
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
/* @__PURE__ */ i(r, { capture: o.commercialCapture }),
|
|
50
|
+
/* @__PURE__ */ i(n, {
|
|
51
|
+
value: o.totals,
|
|
52
|
+
currency: o.facts.reportingCurrency
|
|
51
53
|
}),
|
|
52
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ a("details", { children: [/* @__PURE__ */ i("summary", {
|
|
53
55
|
className: "min-h-11 cursor-pointer font-medium",
|
|
54
56
|
children: "Cost facts and evidence recorded with this version"
|
|
55
|
-
}), /* @__PURE__ */
|
|
57
|
+
}), /* @__PURE__ */ a("div", {
|
|
56
58
|
className: "space-y-3",
|
|
57
59
|
children: [
|
|
58
|
-
|
|
60
|
+
o.facts.lines.map((n) => /* @__PURE__ */ a("div", {
|
|
59
61
|
className: "rounded border p-3",
|
|
60
62
|
children: [
|
|
61
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ a("h3", {
|
|
62
64
|
className: "font-medium",
|
|
63
65
|
children: [
|
|
64
66
|
n.description,
|
|
@@ -66,7 +68,7 @@ function a({ record: a }) {
|
|
|
66
68
|
e(n.category)
|
|
67
69
|
]
|
|
68
70
|
}),
|
|
69
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ a("p", { children: [
|
|
70
72
|
e(n.disposition),
|
|
71
73
|
"; payer ",
|
|
72
74
|
n.payerLabel ?? "Unknown",
|
|
@@ -74,7 +76,7 @@ function a({ record: a }) {
|
|
|
74
76
|
n.payerReference ?? "Unknown reference",
|
|
75
77
|
")."
|
|
76
78
|
] }),
|
|
77
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ a("p", { children: [
|
|
78
80
|
"Reported amount: ",
|
|
79
81
|
t(n.amountMinor, n.currency.minorUnitDigits),
|
|
80
82
|
" ",
|
|
@@ -91,7 +93,7 @@ function a({ record: a }) {
|
|
|
91
93
|
n.unitRateMajor ?? "Unknown",
|
|
92
94
|
"."
|
|
93
95
|
] }),
|
|
94
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ a("p", { children: [
|
|
95
97
|
"Source ",
|
|
96
98
|
n.sourceReference ?? "Unknown",
|
|
97
99
|
" /",
|
|
@@ -100,10 +102,10 @@ function a({ record: a }) {
|
|
|
100
102
|
n.inclusionParentLineId ? `; included in recorded line ${n.inclusionParentLineId}` : "",
|
|
101
103
|
"."
|
|
102
104
|
] }),
|
|
103
|
-
n.zeroReason && /* @__PURE__ */
|
|
105
|
+
n.zeroReason && /* @__PURE__ */ a("p", { children: ["Zero reason: ", n.zeroReason] })
|
|
104
106
|
]
|
|
105
107
|
}, n.id)),
|
|
106
|
-
|
|
108
|
+
o.facts.requirements.map((t) => /* @__PURE__ */ a("p", { children: [
|
|
107
109
|
e(t.category),
|
|
108
110
|
": ",
|
|
109
111
|
e(t.status),
|
|
@@ -116,17 +118,17 @@ function a({ record: a }) {
|
|
|
116
118
|
" ",
|
|
117
119
|
t.sourceRevision ?? "Unknown"
|
|
118
120
|
] }, t.category)),
|
|
119
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ a("p", { children: [
|
|
120
122
|
"Quote occurred ",
|
|
121
|
-
|
|
123
|
+
o.facts.quotedAt ?? "Unknown",
|
|
122
124
|
"; validity",
|
|
123
125
|
" ",
|
|
124
|
-
|
|
126
|
+
o.facts.validFrom ?? "Unknown",
|
|
125
127
|
" to ",
|
|
126
|
-
|
|
128
|
+
o.facts.validUntil ?? "Unknown",
|
|
127
129
|
"."
|
|
128
130
|
] }),
|
|
129
|
-
|
|
131
|
+
o.facts.fx.map((e) => /* @__PURE__ */ a("p", { children: [
|
|
130
132
|
"1 ",
|
|
131
133
|
e.fromCurrency.code,
|
|
132
134
|
" = ",
|
|
@@ -146,7 +148,7 @@ function a({ record: a }) {
|
|
|
146
148
|
"/",
|
|
147
149
|
e.sourceRevision
|
|
148
150
|
] }, e.fromCurrency.code)),
|
|
149
|
-
|
|
151
|
+
o.evidence.map((e) => /* @__PURE__ */ a("p", { children: [
|
|
150
152
|
"Recorded evidence: file ",
|
|
151
153
|
e.fileId,
|
|
152
154
|
", version ",
|
|
@@ -161,4 +163,4 @@ function a({ record: a }) {
|
|
|
161
163
|
});
|
|
162
164
|
}
|
|
163
165
|
//#endregion
|
|
164
|
-
export {
|
|
166
|
+
export { o as FreightHistory };
|