@tesouro/embedded-components-react 0.3.58 → 0.3.61
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/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +105 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +220 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +37 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +112 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +10 -152
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +160 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +5 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +92 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +1 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +79 -261
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +262 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +39 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +36 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +10 -199
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +201 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +3 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +15 -345
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +345 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +6 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +6 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +2 -121
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +118 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +24 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +89 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +10 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +15 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +125 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +7 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +11 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +8 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +0 -2
|
@@ -2,103 +2,241 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { BILL_CREATE_MESSAGE_LABELS_EN as e } from "./index40.js";
|
|
6
|
+
import { calculateTotal as t, displayLineAmount as n, parseMoneyToMinorUnits as r, parseQuantity as i } from "./index47.js";
|
|
7
|
+
import { validateBillTotals as a } from "./index48.js";
|
|
8
|
+
import { emptyLineItem as o, mapPayableToBillForm as s } from "./index50.js";
|
|
9
|
+
import { useCallback as c, useEffect as l, useMemo as u, useRef as ee, useState as d } from "react";
|
|
8
10
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
var f = /^[0-9.,-]+$/;
|
|
12
|
+
function p(e) {
|
|
13
|
+
let t = e.trim().replace(/^\$\s*/, "");
|
|
14
|
+
return t ? f.test(t) ? t : null : "";
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
var m = [
|
|
17
|
+
"quantity",
|
|
18
|
+
"price",
|
|
19
|
+
"amount"
|
|
20
|
+
];
|
|
21
|
+
function h(e) {
|
|
22
|
+
let t = e.trim(), n = /[.,]$/.test(t) ? t.slice(0, -1) : t;
|
|
23
|
+
return t && !n ? null : n;
|
|
24
|
+
}
|
|
25
|
+
function g(e, t, n) {
|
|
26
|
+
if (t === void 0) return;
|
|
27
|
+
let r = h(t);
|
|
28
|
+
if (r !== null) return a(e === "discount" ? r : "", e === "tax" ? r : "", e === "total" ? r : void 0, n)?.[e];
|
|
29
|
+
}
|
|
30
|
+
function _(e, t) {
|
|
31
|
+
let n = {}, a = {
|
|
32
|
+
price: null,
|
|
33
|
+
amount: null
|
|
34
|
+
};
|
|
35
|
+
for (let i of ["price", "amount"]) {
|
|
36
|
+
let o = h(e[i]);
|
|
37
|
+
o !== null && (a[i] = r(o), o && a[i] === null && (n[i] = t.unreadableMoney));
|
|
38
|
+
}
|
|
39
|
+
let o = h(e.quantity);
|
|
40
|
+
if (o !== null) {
|
|
41
|
+
let e = a.price !== null || a.amount !== null;
|
|
42
|
+
i(o) === null && (o || e) && (n.quantity = t.unusableQuantity);
|
|
43
|
+
}
|
|
44
|
+
return n;
|
|
45
|
+
}
|
|
46
|
+
function v(e, t, i) {
|
|
47
|
+
return r(t) === null ? i : n(e, t);
|
|
48
|
+
}
|
|
49
|
+
function y({ payable: n, lineItems: r, labels: i = e } = {}) {
|
|
50
|
+
let a = u(() => s({
|
|
51
|
+
payable: n ?? {},
|
|
52
|
+
lineItems: r ?? []
|
|
53
|
+
}), [n, r]), [f, h] = d(a.values), [y, b] = d(a.lineItems), [x, S] = d(a.discount), [C, w] = d(a.tax), [T, E] = d(a.total || void 0), [te, D] = d(), O = ee(void 0), k = c((e) => {
|
|
54
|
+
D((t) => {
|
|
55
|
+
let n = typeof e == "function" ? e(t) : e;
|
|
56
|
+
return n?.form !== O.current && (O.current = void 0), n;
|
|
57
|
+
});
|
|
58
|
+
}, []), A = c((e) => {
|
|
59
|
+
O.current = e, D((t) => ({
|
|
60
|
+
...t,
|
|
61
|
+
form: e
|
|
62
|
+
}));
|
|
63
|
+
}, []), j = c(() => {
|
|
64
|
+
D((e) => {
|
|
65
|
+
if (!e?.form || e.form !== O.current) return e;
|
|
66
|
+
O.current = void 0;
|
|
67
|
+
let { form: t, ...n } = e;
|
|
68
|
+
return Object.keys(n).length ? n : void 0;
|
|
69
|
+
});
|
|
70
|
+
}, []), [M, N] = d(), [P, F] = d(), [I, L] = d(!1), [R, z] = d(!1), [B, V] = d(!1);
|
|
71
|
+
l(() => {
|
|
72
|
+
I || h(a.values);
|
|
73
|
+
}, [a]), l(() => {
|
|
74
|
+
R || b(a.lineItems);
|
|
75
|
+
}, [a]), l(() => {
|
|
76
|
+
B || (S(a.discount), w(a.tax), E(a.total || void 0));
|
|
77
|
+
}, [a]);
|
|
78
|
+
let H = c((e) => {
|
|
79
|
+
h((t) => ({
|
|
26
80
|
...t,
|
|
27
81
|
...e
|
|
28
|
-
})),
|
|
29
|
-
|
|
30
|
-
w((t) => {
|
|
31
|
-
if (!t?.[e]) return t;
|
|
82
|
+
})), L(!0), D((t) => {
|
|
83
|
+
if (!t) return t;
|
|
32
84
|
let n = { ...t };
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
85
|
+
for (let t of Object.keys(e)) delete n[t];
|
|
86
|
+
return Object.keys(n).length ? n : void 0;
|
|
87
|
+
}), j();
|
|
88
|
+
}, [j]), U = c((e, t) => {
|
|
89
|
+
N((n) => {
|
|
90
|
+
if (!n?.[e] && !t) return n;
|
|
38
91
|
let r = {
|
|
39
92
|
...n,
|
|
40
|
-
|
|
93
|
+
[e]: t
|
|
41
94
|
};
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
|
|
95
|
+
return t || delete r[e], Object.keys(r).length ? r : void 0;
|
|
96
|
+
});
|
|
97
|
+
}, []), W = c((e, t) => {
|
|
98
|
+
U(e, g(e, t, i));
|
|
99
|
+
}, [i, U]), G = c(() => {
|
|
100
|
+
E(void 0), W("total", void 0), j();
|
|
101
|
+
}, [W, j]), K = c((e, t = []) => {
|
|
102
|
+
let n = _(e, i);
|
|
103
|
+
F((r) => {
|
|
104
|
+
let i = r?.[e.id], a = { ...i };
|
|
105
|
+
for (let e of [
|
|
106
|
+
"price",
|
|
107
|
+
"amount",
|
|
108
|
+
"quantity"
|
|
109
|
+
]) n[e] ? a[e] = n[e] : delete a[e];
|
|
110
|
+
t.includes("description") && delete a.description;
|
|
111
|
+
let o = Object.keys(a).length > 0;
|
|
112
|
+
if (!i && !o) return r;
|
|
113
|
+
let s = { ...r };
|
|
114
|
+
return o ? s[e.id] = a : delete s[e.id], Object.keys(s).length ? s : void 0;
|
|
115
|
+
});
|
|
116
|
+
}, [i]), q = c((e, t, n) => {
|
|
117
|
+
F((r) => ({
|
|
118
|
+
...r,
|
|
119
|
+
[e]: {
|
|
120
|
+
...r?.[e],
|
|
121
|
+
[t]: n
|
|
122
|
+
}
|
|
123
|
+
}));
|
|
124
|
+
}, []), J = c((e, t, n = []) => {
|
|
125
|
+
let r = y.find((t) => t.id === e);
|
|
126
|
+
if (!r) return;
|
|
127
|
+
let i = t(r);
|
|
128
|
+
b(y.map((t) => t.id === e ? i : t)), K(i, n), z(!0), G();
|
|
129
|
+
}, [
|
|
130
|
+
G,
|
|
131
|
+
y,
|
|
132
|
+
K
|
|
133
|
+
]), Y = c((e, t) => {
|
|
134
|
+
let n = { ...t };
|
|
135
|
+
for (let r of m) {
|
|
136
|
+
let a = t[r];
|
|
137
|
+
if (a === void 0) continue;
|
|
138
|
+
let o = p(a);
|
|
139
|
+
if (o === null) {
|
|
140
|
+
q(e, r, i.numbersOnly);
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
n[r] = o;
|
|
144
|
+
}
|
|
145
|
+
J(e, (e) => {
|
|
146
|
+
let t = {
|
|
147
|
+
...e,
|
|
148
|
+
...n
|
|
45
149
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
150
|
+
return "amount" in n ? t : {
|
|
151
|
+
...t,
|
|
152
|
+
amount: v(t.quantity, t.price, t.amount)
|
|
153
|
+
};
|
|
154
|
+
}, Object.keys(n));
|
|
155
|
+
}, [
|
|
156
|
+
J,
|
|
157
|
+
i,
|
|
158
|
+
q
|
|
159
|
+
]), X = c((e, t) => {
|
|
160
|
+
J(e, (e) => {
|
|
161
|
+
let n = Number.parseFloat(e.quantity), r = String(Math.max(1, (Number.isFinite(n) ? n : 1) + t));
|
|
51
162
|
return {
|
|
52
|
-
...
|
|
53
|
-
quantity:
|
|
54
|
-
amount:
|
|
163
|
+
...e,
|
|
164
|
+
quantity: r,
|
|
165
|
+
amount: v(r, e.price, e.amount)
|
|
55
166
|
};
|
|
56
|
-
})
|
|
57
|
-
}, [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}, []),
|
|
64
|
-
|
|
65
|
-
}, []),
|
|
66
|
-
b(e),
|
|
67
|
-
}, []),
|
|
167
|
+
});
|
|
168
|
+
}, [J]), Z = c((e) => {
|
|
169
|
+
F((t) => {
|
|
170
|
+
if (!t?.[e]) return t;
|
|
171
|
+
let n = { ...t };
|
|
172
|
+
return delete n[e], Object.keys(n).length ? n : void 0;
|
|
173
|
+
});
|
|
174
|
+
}, []), Q = c((e) => {
|
|
175
|
+
Z(e), b((t) => t.length <= 1 ? t : t.filter((t) => t.id !== e)), z(!0), G();
|
|
176
|
+
}, [Z, G]), ne = c(() => {
|
|
177
|
+
b((e) => [...e, o()]), z(!0), G();
|
|
178
|
+
}, [G]), $ = c((e, t, n) => {
|
|
179
|
+
let r = p(t);
|
|
180
|
+
if (r === null) {
|
|
181
|
+
U(e, i.numbersOnly);
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
n(r), V(!0), G(), W(e, r);
|
|
185
|
+
}, [
|
|
186
|
+
G,
|
|
187
|
+
i,
|
|
188
|
+
W,
|
|
189
|
+
U
|
|
190
|
+
]), re = c((e) => $("discount", e, S), [$]), ie = c((e) => $("tax", e, w), [$]), ae = c((e) => {
|
|
191
|
+
let t = p(e);
|
|
192
|
+
if (t === null) {
|
|
193
|
+
U("total", i.numbersOnly);
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
E(t), V(!0), W("total", t), j();
|
|
197
|
+
}, [
|
|
198
|
+
j,
|
|
199
|
+
i,
|
|
200
|
+
W,
|
|
201
|
+
U
|
|
202
|
+
]), oe = u(() => y.map((e) => ({
|
|
68
203
|
...e,
|
|
69
|
-
onChange: (t) =>
|
|
70
|
-
onQuantityStep: (t) =>
|
|
71
|
-
onRemove: () =>
|
|
204
|
+
onChange: (t) => Y(e.id, t),
|
|
205
|
+
onQuantityStep: (t) => X(e.id, t),
|
|
206
|
+
onRemove: () => Q(e.id)
|
|
72
207
|
})), [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
]),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
208
|
+
y,
|
|
209
|
+
Y,
|
|
210
|
+
Q,
|
|
211
|
+
X
|
|
212
|
+
]), se = u(() => t(y, C, x), [
|
|
213
|
+
y,
|
|
214
|
+
C,
|
|
215
|
+
x
|
|
81
216
|
]);
|
|
82
217
|
return {
|
|
83
|
-
values:
|
|
84
|
-
errors:
|
|
85
|
-
setErrors:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
218
|
+
values: f,
|
|
219
|
+
errors: te,
|
|
220
|
+
setErrors: k,
|
|
221
|
+
setSaveFailureMessage: A,
|
|
222
|
+
lineItemErrors: P,
|
|
223
|
+
setLineItemErrors: F,
|
|
224
|
+
totalsErrors: M,
|
|
225
|
+
setTotalsErrors: N,
|
|
226
|
+
onChange: H,
|
|
227
|
+
lineItems: y,
|
|
228
|
+
lineItemRows: oe,
|
|
229
|
+
discount: x,
|
|
230
|
+
onDiscountChange: re,
|
|
231
|
+
tax: C,
|
|
232
|
+
onTaxChange: ie,
|
|
233
|
+
total: T ?? se,
|
|
234
|
+
totalOverride: T,
|
|
235
|
+
onTotalChange: ae,
|
|
236
|
+
onAddLineItem: ne,
|
|
237
|
+
isTotalsDirty: B,
|
|
238
|
+
isDirty: I || R || B
|
|
101
239
|
};
|
|
102
240
|
}
|
|
103
241
|
//#endregion
|
|
104
|
-
export {
|
|
242
|
+
export { y as useBillForm };
|
|
@@ -15,12 +15,12 @@ import { useAllPayableLineItemsQuery as ae } from "../../data-access/dist/index9
|
|
|
15
15
|
import { usePayableQuery as oe } from "../../data-access/dist/index15.js";
|
|
16
16
|
import "../../data-access/dist/index.js";
|
|
17
17
|
import { resolveVendor as se } from "./index5.js";
|
|
18
|
-
import { BillCreateScreen as ce } from "../../ui/dist/
|
|
19
|
-
import { BillDecisionDialog as n } from "../../ui/dist/
|
|
20
|
-
import { BillDuplicateNotice as le } from "../../ui/dist/
|
|
21
|
-
import { ExtractionNotice as ue } from "../../ui/dist/
|
|
22
|
-
import { MarkAsPaidDialog as de } from "../../ui/dist/
|
|
23
|
-
import { UnsavedBillDialog as fe } from "../../ui/dist/
|
|
18
|
+
import { BillCreateScreen as ce } from "../../ui/dist/index45.js";
|
|
19
|
+
import { BillDecisionDialog as n } from "../../ui/dist/index51.js";
|
|
20
|
+
import { BillDuplicateNotice as le } from "../../ui/dist/index61.js";
|
|
21
|
+
import { ExtractionNotice as ue } from "../../ui/dist/index79.js";
|
|
22
|
+
import { MarkAsPaidDialog as de } from "../../ui/dist/index88.js";
|
|
23
|
+
import { UnsavedBillDialog as fe } from "../../ui/dist/index98.js";
|
|
24
24
|
import "../../ui/dist/index.js";
|
|
25
25
|
import { usePayableDuplicateReview as pe } from "./index10.js";
|
|
26
26
|
import "./index11.js";
|
|
@@ -234,6 +234,7 @@ function c({ open: c, onOpenChange: l, payableId: u, readOnly: d = !1, copy: f,
|
|
|
234
234
|
onTotalChange: j.onTotalChange,
|
|
235
235
|
onAddLineItem: j.onAddLineItem,
|
|
236
236
|
errors: j.lineItemErrors,
|
|
237
|
+
totalsErrors: j.totalsErrors,
|
|
237
238
|
testId: r.lineItems
|
|
238
239
|
},
|
|
239
240
|
documentPanel: /* @__PURE__ */ s(ke, {
|
|
@@ -287,6 +288,7 @@ function c({ open: c, onOpenChange: l, payableId: u, readOnly: d = !1, copy: f,
|
|
|
287
288
|
onCollapse: d ? Le : void 0,
|
|
288
289
|
onSaveDraft: F.saveDraft,
|
|
289
290
|
onFinalize: F.finalize,
|
|
291
|
+
scrollToErrorToken: F.scrollToErrorToken,
|
|
290
292
|
showFinalize: !k && O,
|
|
291
293
|
labels: Ke,
|
|
292
294
|
testId: r.dialog
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BILL_DETAILS_SHEET_LABELS_EN as e } from "../../ui/dist/
|
|
1
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as e } from "../../ui/dist/index56.js";
|
|
2
2
|
import "../../ui/dist/index.js";
|
|
3
3
|
import { MARK_AS_PAID_FLOW_LABELS_EN as t } from "./index12.js";
|
|
4
4
|
import "./index15.js";
|
|
@@ -11,10 +11,10 @@ import "../../../shared/feature/dist/index.js";
|
|
|
11
11
|
import { useAllPayableLineItemsQuery as i } from "../../data-access/dist/index9.js";
|
|
12
12
|
import { usePayableQuery as a } from "../../data-access/dist/index15.js";
|
|
13
13
|
import "../../data-access/dist/index.js";
|
|
14
|
-
import { BillDecisionDialog as o } from "../../ui/dist/
|
|
15
|
-
import { BillDetailsSheet as s } from "../../ui/dist/
|
|
16
|
-
import { BillDuplicateNotice as c } from "../../ui/dist/
|
|
17
|
-
import { MarkAsPaidDialog as l } from "../../ui/dist/
|
|
14
|
+
import { BillDecisionDialog as o } from "../../ui/dist/index51.js";
|
|
15
|
+
import { BillDetailsSheet as s } from "../../ui/dist/index57.js";
|
|
16
|
+
import { BillDuplicateNotice as c } from "../../ui/dist/index61.js";
|
|
17
|
+
import { MarkAsPaidDialog as l } from "../../ui/dist/index88.js";
|
|
18
18
|
import "../../ui/dist/index.js";
|
|
19
19
|
import { usePayableDuplicateReview as u } from "./index10.js";
|
|
20
20
|
import "./index11.js";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { formatMoneyExact as e } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
6
6
|
import "../../data-access/dist/index.js";
|
|
7
|
-
import { BillsFilterField as t } from "../../ui/dist/
|
|
7
|
+
import { BillsFilterField as t } from "../../ui/dist/index64.js";
|
|
8
8
|
import "../../ui/dist/index.js";
|
|
9
9
|
import { getCounterpartName as n } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
10
10
|
import { useCounterpartsQuery as r } from "../../../shared/counterpart-management/data-access/dist/index3.js";
|
|
@@ -11,7 +11,7 @@ import { useWidgetConfig as ee, useWidgetInitStaleForToken as r } from "../../..
|
|
|
11
11
|
import "../../../shared/feature/dist/index.js";
|
|
12
12
|
import { useDuplicateBillsCount as i } from "./index7.js";
|
|
13
13
|
import { AddBillDialog as a } from "../../ui/dist/index10.js";
|
|
14
|
-
import { BillsScreen as o } from "../../ui/dist/
|
|
14
|
+
import { BillsScreen as o } from "../../ui/dist/index68.js";
|
|
15
15
|
import "../../ui/dist/index.js";
|
|
16
16
|
import { DuplicateBillsContainer as te } from "./index9.js";
|
|
17
17
|
import "./index11.js";
|
|
@@ -11,8 +11,8 @@ import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analyti
|
|
|
11
11
|
import { WidgetProvider as i } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
12
12
|
import { useWidgetConfig as a } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
13
13
|
import "../../../shared/feature/dist/index.js";
|
|
14
|
-
import { BillPayWidgetUi as o } from "../../ui/dist/
|
|
15
|
-
import { BillUploadStatusTray as s } from "../../ui/dist/
|
|
14
|
+
import { BillPayWidgetUi as o } from "../../ui/dist/index48.js";
|
|
15
|
+
import { BillUploadStatusTray as s } from "../../ui/dist/index71.js";
|
|
16
16
|
import "../../ui/dist/index.js";
|
|
17
17
|
import { ApprovalPoliciesSettings as c } from "../../../shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js";
|
|
18
18
|
import "../../../shared/approval-policy/feature/dist/index.js";
|
|
@@ -9,7 +9,7 @@ import { DuplicateVerdict as n, useApplyDuplicateVerdictsMutation as r } from ".
|
|
|
9
9
|
import "../../data-access/dist/index.js";
|
|
10
10
|
import { useDuplicateBills as i } from "./index7.js";
|
|
11
11
|
import { useDuplicateBillsSelection as a } from "./index8.js";
|
|
12
|
-
import { DuplicateBillsDialog as o } from "../../ui/dist/
|
|
12
|
+
import { DuplicateBillsDialog as o } from "../../ui/dist/index76.js";
|
|
13
13
|
import "../../ui/dist/index.js";
|
|
14
14
|
import { useMemo as s, useState as c } from "react";
|
|
15
15
|
import { jsx as l } from "react/jsx-runtime";
|
|
@@ -34,55 +34,55 @@ import "./index40.js";
|
|
|
34
34
|
import "./index41.js";
|
|
35
35
|
import "./index42.js";
|
|
36
36
|
import "./index43.js";
|
|
37
|
-
import { BillCreateScreen as n } from "./
|
|
38
|
-
import "./index45.js";
|
|
37
|
+
import { BillCreateScreen as n } from "./index45.js";
|
|
39
38
|
import "./index46.js";
|
|
40
|
-
import
|
|
41
|
-
import "./index48.js";
|
|
39
|
+
import "./index47.js";
|
|
40
|
+
import { BillPayWidgetUi as r } from "./index48.js";
|
|
42
41
|
import "./index49.js";
|
|
43
|
-
import
|
|
44
|
-
import "./index51.js";
|
|
42
|
+
import "./index50.js";
|
|
43
|
+
import { BillDecisionDialog as i } from "./index51.js";
|
|
45
44
|
import "./index52.js";
|
|
46
45
|
import "./index53.js";
|
|
47
46
|
import "./index54.js";
|
|
48
|
-
import
|
|
49
|
-
import {
|
|
50
|
-
import "./index57.js";
|
|
47
|
+
import "./index55.js";
|
|
48
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as a } from "./index56.js";
|
|
49
|
+
import { BillDetailsSheet as o } from "./index57.js";
|
|
51
50
|
import "./index58.js";
|
|
52
51
|
import "./index59.js";
|
|
53
|
-
import
|
|
54
|
-
import "./index61.js";
|
|
52
|
+
import "./index60.js";
|
|
53
|
+
import { BillDuplicateNotice as s } from "./index61.js";
|
|
55
54
|
import "./index62.js";
|
|
56
|
-
import
|
|
57
|
-
import "./index64.js";
|
|
55
|
+
import "./index63.js";
|
|
56
|
+
import { BillsFilterField as c } from "./index64.js";
|
|
58
57
|
import "./index65.js";
|
|
59
|
-
import
|
|
60
|
-
import {
|
|
61
|
-
import "./index68.js";
|
|
62
|
-
import
|
|
63
|
-
import "./
|
|
64
|
-
import "./
|
|
65
|
-
import
|
|
66
|
-
import "./index76.js";
|
|
58
|
+
import "./index66.js";
|
|
59
|
+
import { BillColumn as l } from "./index67.js";
|
|
60
|
+
import { BillsScreen as u } from "./index68.js";
|
|
61
|
+
import "./index69.js";
|
|
62
|
+
import { BillUploadStatusTray as d } from "./index71.js";
|
|
63
|
+
import "./index73.js";
|
|
64
|
+
import "./index75.js";
|
|
65
|
+
import { DuplicateBillsDialog as f } from "./index76.js";
|
|
67
66
|
import "./index77.js";
|
|
68
|
-
import
|
|
69
|
-
import "./index79.js";
|
|
67
|
+
import "./index78.js";
|
|
68
|
+
import { ExtractionNotice as p } from "./index79.js";
|
|
70
69
|
import "./index80.js";
|
|
71
70
|
import "./index81.js";
|
|
72
71
|
import "./index82.js";
|
|
73
|
-
import
|
|
74
|
-
import {
|
|
75
|
-
import "./index85.js";
|
|
76
|
-
import
|
|
77
|
-
import {
|
|
78
|
-
import "./index88.js";
|
|
79
|
-
import
|
|
80
|
-
import {
|
|
81
|
-
import "./index92.js";
|
|
72
|
+
import "./index83.js";
|
|
73
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as m } from "./index84.js";
|
|
74
|
+
import { ReviewTransactionDialog as h } from "./index85.js";
|
|
75
|
+
import "./index86.js";
|
|
76
|
+
import { MARK_AS_PAID_DIALOG_LABELS_EN as g } from "./index87.js";
|
|
77
|
+
import { MarkAsPaidDialog as _ } from "./index88.js";
|
|
78
|
+
import "./index89.js";
|
|
79
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as v } from "./index90.js";
|
|
80
|
+
import { SchedulePaymentDialog as y } from "./index92.js";
|
|
82
81
|
import "./index93.js";
|
|
83
|
-
import
|
|
84
|
-
import "./index95.js";
|
|
85
|
-
import
|
|
86
|
-
import {
|
|
87
|
-
import "./index98.js";
|
|
82
|
+
import "./index94.js";
|
|
83
|
+
import { SourceDocumentPanel as b } from "./index95.js";
|
|
84
|
+
import "./index96.js";
|
|
85
|
+
import { UNSAVED_BILL_DIALOG_LABELS_EN as x } from "./index97.js";
|
|
86
|
+
import { UnsavedBillDialog as S } from "./index98.js";
|
|
87
|
+
import "./index99.js";
|
|
88
88
|
export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, t as BILL_STATUS_BADGE_LABELS_EN, l as BillColumn, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, s as BillDuplicateNotice, r as BillPayWidgetUi, d as BillUploadStatusTray, c as BillsFilterField, u as BillsScreen, f as DuplicateBillsDialog, p as ExtractionNotice, g as MARK_AS_PAID_DIALOG_LABELS_EN, _ as MarkAsPaidDialog, m as REVIEW_TRANSACTION_DIALOG_LABELS_EN, h as ReviewTransactionDialog, v as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, y as SchedulePaymentDialog, b as SourceDocumentPanel, x as UNSAVED_BILL_DIALOG_LABELS_EN, S as UnsavedBillDialog };
|