@tesouro/embedded-components-react 0.5.303 → 0.5.305
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/bill-detail/feature/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index12.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +8 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +24 -157
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +20 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +13 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +153 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +17 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +23 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +42 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +93 -107
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +77 -185
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +3 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +55 -72
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +111 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +184 -463
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +78 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +61 -74
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +115 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +449 -216
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +116 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +11 -249
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +85 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +80 -648
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +240 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +44 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +38 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +242 -240
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +25 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +538 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +3 -66
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +239 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +67 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +227 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +82 -224
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js +45 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js +4 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/BillsTab.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,240 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { extractApiErrorMessage as t } from "../../../../shared/util/dist/lib/apiErrors.js";
|
|
7
|
+
import "../../../../shared/ui/dist/index.js";
|
|
8
|
+
import { BILL_CREATE_MESSAGE_LABELS_EN as n } from "./index29.js";
|
|
9
|
+
import { encodeFileToBase64 as r } from "./index35.js";
|
|
10
|
+
import { mapBillFormToPayload as i, mapLineItemsToPayload as a, mapPayableAmountFieldsToPayload as o } from "./index36.js";
|
|
11
|
+
import { validateBillCompleteness as s, validateBillTotalIsPayable as c, validateBillTotals as l, validateBillValues as u, validateLineItems as d, validateStoredAmountDue as ee } from "./index37.js";
|
|
12
|
+
import { useReplacePayableLineItemsMutation as f } from "../../data-access/dist/index4.js";
|
|
13
|
+
import { useCreatePayableMutation as p } from "../../data-access/dist/index8.js";
|
|
14
|
+
import { useDeletePayableFileMutation as m } from "../../data-access/dist/index9.js";
|
|
15
|
+
import { useSubmitPayableForApprovalMutation as h } from "../../data-access/dist/index14.js";
|
|
16
|
+
import { useUpdatePayableMutation as g } from "../../data-access/dist/index15.js";
|
|
17
|
+
import { useValidatePayableMutation as te } from "../../data-access/dist/index16.js";
|
|
18
|
+
import "../../data-access/dist/index.js";
|
|
19
|
+
import { useCallback as _, useRef as ne, useState as v } from "react";
|
|
20
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js
|
|
21
|
+
var y = {
|
|
22
|
+
document_id: "invoiceNumber",
|
|
23
|
+
issued_at: "invoiceDate",
|
|
24
|
+
due_date: "dueDate",
|
|
25
|
+
counterpart_id: "vendor",
|
|
26
|
+
purchase_order_number: "poNumber"
|
|
27
|
+
}, b = { tax_amount: "tax" };
|
|
28
|
+
function x(e) {
|
|
29
|
+
return e.type === "type_error.none.not_allowed" || e.msg === "none is not an allowed value";
|
|
30
|
+
}
|
|
31
|
+
var re = "pending-vendor";
|
|
32
|
+
function S(e) {
|
|
33
|
+
return !!t(e)?.includes("line_items_enabled");
|
|
34
|
+
}
|
|
35
|
+
function ie(e) {
|
|
36
|
+
return !!t(e)?.includes("A vendor could not be linked or created for this payable");
|
|
37
|
+
}
|
|
38
|
+
function C(e, t = n) {
|
|
39
|
+
let r = {}, i = {}, a = [];
|
|
40
|
+
for (let n of e) {
|
|
41
|
+
let e = n.loc[0] ?? t.unknownValidationField, o = y[e], s = b[e], c = x(n) ? t.requiredField : n.msg;
|
|
42
|
+
o ? r[o] = c : s ? i[s] = c : a.push(t.unmappedValidationError(e, c));
|
|
43
|
+
}
|
|
44
|
+
return a.length && (r.form = a.join(" ")), {
|
|
45
|
+
formErrors: r,
|
|
46
|
+
totalsErrors: Object.keys(i).length ? i : void 0
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ae(e, t) {
|
|
50
|
+
if (!e && !t) return;
|
|
51
|
+
let n = {}, r = /* @__PURE__ */ new Set([...Object.keys(e ?? {}), ...Object.keys(t ?? {})]);
|
|
52
|
+
for (let i of r) n[i] = {
|
|
53
|
+
...e?.[i],
|
|
54
|
+
...t?.[i]
|
|
55
|
+
};
|
|
56
|
+
return n;
|
|
57
|
+
}
|
|
58
|
+
function w({ payableId: t, form: y, counterpartId: b, isVendorPending: x, onVendorIncomplete: w, clearCounterpart: T, prepareVendorForSave: E, onSaved: D, onPayableCreated: O, readSavedStatus: k, onDraftSaved: A, onFinalized: j, labels: M }) {
|
|
59
|
+
let N = {
|
|
60
|
+
...n,
|
|
61
|
+
...M
|
|
62
|
+
}, [P, F] = v(), I = t ?? P, [L, R] = v(), oe = _(() => R(void 0), []), [z, B] = v(!1), se = _(() => B(!0), []), [V, H] = v(), U = ne(!1), [ce, le] = v(0), W = _(() => le((e) => e + 1), []), G = p(), K = m(), q = g(), J = f(), Y = te(), X = h(), Z = _(() => y.isTotalsDirty ? l(y.discount, y.tax, y.totalOverride, N) : void 0, [y, N]), Q = _(() => {
|
|
63
|
+
let t = u(y.values, N), n = d(y.lineItems, N), r = Z();
|
|
64
|
+
return y.setErrors(t), y.setLineItemErrors(n), y.setTotalsErrors(r), !t && !n && !r || (n && e.error(N.lineItemsNeedAttention), W(), !1);
|
|
65
|
+
}, [
|
|
66
|
+
y,
|
|
67
|
+
N,
|
|
68
|
+
W,
|
|
69
|
+
Z
|
|
70
|
+
]), $ = _(async (e, t, n) => {
|
|
71
|
+
let s = !I && L ? {
|
|
72
|
+
base64EncodedFile: await r(L),
|
|
73
|
+
fileName: L.name
|
|
74
|
+
} : void 0, c = y.isTotalsDirty ? {
|
|
75
|
+
discount: y.discount,
|
|
76
|
+
tax: y.tax,
|
|
77
|
+
total: y.totalOverride
|
|
78
|
+
} : void 0, l = i({
|
|
79
|
+
values: y.values,
|
|
80
|
+
initialLineItems: I ? void 0 : y.lineItems,
|
|
81
|
+
counterpartId: t ?? b,
|
|
82
|
+
clearCounterpart: T,
|
|
83
|
+
counterpartBankAccountId: e,
|
|
84
|
+
currentTotals: {
|
|
85
|
+
discount: y.discount,
|
|
86
|
+
tax: y.tax,
|
|
87
|
+
total: y.totalOverride
|
|
88
|
+
},
|
|
89
|
+
lineItems: y.lineItems,
|
|
90
|
+
editedTotals: c,
|
|
91
|
+
document: s
|
|
92
|
+
}), u = n ? {
|
|
93
|
+
...l,
|
|
94
|
+
counterpart_raw_data: n
|
|
95
|
+
} : l, d = I;
|
|
96
|
+
if (d ? await q.mutateAsync({
|
|
97
|
+
path: { payable_id: d },
|
|
98
|
+
body: u
|
|
99
|
+
}) : (d = (await G.mutateAsync({ body: u }))?.id, d && (F(d), O?.(d), s && R(void 0))), !d) throw Error("Payable was created without an id");
|
|
100
|
+
if (z) {
|
|
101
|
+
try {
|
|
102
|
+
await K.mutateAsync({ path: { payable_id: d } });
|
|
103
|
+
} catch {}
|
|
104
|
+
B(!1);
|
|
105
|
+
}
|
|
106
|
+
return await J.mutateAsync({
|
|
107
|
+
path: { payable_id: d },
|
|
108
|
+
body: { data: a(y.lineItems) }
|
|
109
|
+
}), c && await q.mutateAsync({
|
|
110
|
+
path: { payable_id: d },
|
|
111
|
+
body: o({
|
|
112
|
+
lineItems: y.lineItems,
|
|
113
|
+
editedTotals: c
|
|
114
|
+
})
|
|
115
|
+
}), d;
|
|
116
|
+
}, [
|
|
117
|
+
b,
|
|
118
|
+
T,
|
|
119
|
+
G,
|
|
120
|
+
K,
|
|
121
|
+
z,
|
|
122
|
+
y.discount,
|
|
123
|
+
y.isTotalsDirty,
|
|
124
|
+
y.lineItems,
|
|
125
|
+
y.tax,
|
|
126
|
+
y.totalOverride,
|
|
127
|
+
y.values,
|
|
128
|
+
O,
|
|
129
|
+
I,
|
|
130
|
+
J,
|
|
131
|
+
L,
|
|
132
|
+
q
|
|
133
|
+
]), ue = _(async () => {
|
|
134
|
+
I && (await K.mutateAsync({ path: { payable_id: I } }), B(!1));
|
|
135
|
+
}, [K, I]);
|
|
136
|
+
return {
|
|
137
|
+
saveDraft: _(async () => {
|
|
138
|
+
if (!U.current && Q()) {
|
|
139
|
+
U.current = !0, H("draft");
|
|
140
|
+
try {
|
|
141
|
+
let t = await E?.({ allowIncompleteVendor: !0 });
|
|
142
|
+
if (t && !t.ok) return;
|
|
143
|
+
let n = await $(t?.counterpartBankAccountId, t?.counterpartId, t?.counterpartRawData);
|
|
144
|
+
y.setErrors(void 0), D?.(n), A?.(n);
|
|
145
|
+
let r = await k?.();
|
|
146
|
+
return e.success(r === "draft" ? N.submittedDemoted : N.draftSaved), n;
|
|
147
|
+
} catch (e) {
|
|
148
|
+
y.setSaveFailureMessage(S(e) ? N.discountTaxBlockedByLineItems : N.saveFailed), W();
|
|
149
|
+
return;
|
|
150
|
+
} finally {
|
|
151
|
+
H(void 0), U.current = !1;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}, [
|
|
155
|
+
y,
|
|
156
|
+
Q,
|
|
157
|
+
N.discountTaxBlockedByLineItems,
|
|
158
|
+
N.draftSaved,
|
|
159
|
+
N.saveFailed,
|
|
160
|
+
N.submittedDemoted,
|
|
161
|
+
A,
|
|
162
|
+
D,
|
|
163
|
+
k,
|
|
164
|
+
E,
|
|
165
|
+
$,
|
|
166
|
+
W
|
|
167
|
+
]),
|
|
168
|
+
finalize: _(async () => {
|
|
169
|
+
if (U.current) return;
|
|
170
|
+
let t = d(y.lineItems, N), n = u(y.values, N), r = Z(), i = c(y.total, N), a = y.isTotalsDirty ? ee(y.totalOverride, N) : void 0, o = r || i || a ? {
|
|
171
|
+
...a,
|
|
172
|
+
...i,
|
|
173
|
+
...r
|
|
174
|
+
} : void 0, { formErrors: l, lineItemErrors: f } = s(y.values, b ?? (x ? re : void 0), y.lineItems, N), p = ae(f, t);
|
|
175
|
+
y.setLineItemErrors(p), y.setTotalsErrors(o);
|
|
176
|
+
let m = {
|
|
177
|
+
...l,
|
|
178
|
+
...n
|
|
179
|
+
};
|
|
180
|
+
if (y.setErrors(Object.keys(m).length ? m : void 0), t && e.error(N.lineItemsNeedAttention), p || o || Object.keys(m).length) {
|
|
181
|
+
m.vendor && w?.(), W();
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
U.current = !0, H("finalize");
|
|
185
|
+
try {
|
|
186
|
+
let t;
|
|
187
|
+
try {
|
|
188
|
+
let e = await E?.();
|
|
189
|
+
if (e && !e.ok) return;
|
|
190
|
+
t = await $(e?.counterpartBankAccountId, e?.counterpartId);
|
|
191
|
+
} catch (e) {
|
|
192
|
+
y.setSaveFailureMessage(S(e) ? N.discountTaxBlockedByLineItems : N.saveFailed), W();
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
D?.(t);
|
|
196
|
+
try {
|
|
197
|
+
let n = await Y.mutateAsync({ path: { payable_id: t } });
|
|
198
|
+
if (n.validation_errors.length) {
|
|
199
|
+
let e = C(n.validation_errors, N);
|
|
200
|
+
y.setErrors(e.formErrors), y.setTotalsErrors(e.totalsErrors), W();
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
await X.mutateAsync({ path: { payable_id: t } }), y.setErrors(void 0), j?.(t), e.success(N.billFinalized);
|
|
204
|
+
} catch (e) {
|
|
205
|
+
ie(e) ? y.setErrors({ vendor: N.vendorResolutionFailed }) : y.setSaveFailureMessage(N.finalizeFailed), W();
|
|
206
|
+
}
|
|
207
|
+
} finally {
|
|
208
|
+
H(void 0), U.current = !1;
|
|
209
|
+
}
|
|
210
|
+
}, [
|
|
211
|
+
b,
|
|
212
|
+
x,
|
|
213
|
+
y,
|
|
214
|
+
N,
|
|
215
|
+
j,
|
|
216
|
+
D,
|
|
217
|
+
w,
|
|
218
|
+
E,
|
|
219
|
+
$,
|
|
220
|
+
W,
|
|
221
|
+
X,
|
|
222
|
+
Z,
|
|
223
|
+
Y
|
|
224
|
+
]),
|
|
225
|
+
payableId: I,
|
|
226
|
+
isSavingDraft: V === "draft",
|
|
227
|
+
isFinalizing: V === "finalize",
|
|
228
|
+
stagedFile: L,
|
|
229
|
+
stageFile: R,
|
|
230
|
+
clearStagedFile: oe,
|
|
231
|
+
scrollToErrorToken: ce,
|
|
232
|
+
isFileDeletionPending: z,
|
|
233
|
+
requestFileDeletion: se,
|
|
234
|
+
detachFileNow: ue,
|
|
235
|
+
isDeletingFile: K.isPending,
|
|
236
|
+
hasFileDeletionFailed: K.isError
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
//#endregion
|
|
240
|
+
export { C as mapValidationErrorsToForm, w as useBillCreateController };
|
|
@@ -1,42 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { PAYABLE_AUDIT_HISTORY_LABELS_EN as c } from "./index23.js";
|
|
4
|
-
import { BILL_DETAILS_SHEET_LABELS_EN as l } from "../../ui/dist/index33.js";
|
|
5
|
-
import "../../ui/dist/index.js";
|
|
1
|
+
import { resolveLineItemAmountMinorUnits as e } from "../../../util/dist/lib/resolveLineItemAmount.js";
|
|
2
|
+
import { resolveLineItemQuantity as t } from "../../../util/dist/lib/resolveLineItemQuantity.js";
|
|
6
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
4
|
+
function n() {
|
|
5
|
+
return {
|
|
6
|
+
id: crypto.randomUUID(),
|
|
7
|
+
description: "",
|
|
8
|
+
glCode: "",
|
|
9
|
+
quantity: "1",
|
|
10
|
+
price: "",
|
|
11
|
+
amount: ""
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function r(e) {
|
|
15
|
+
return typeof e == "number" ? (e / 100).toFixed(2) : "";
|
|
16
|
+
}
|
|
17
|
+
function i(e) {
|
|
18
|
+
return typeof e == "string" ? e : "";
|
|
19
|
+
}
|
|
20
|
+
function a(e) {
|
|
21
|
+
return e.total_amount ?? e.amount_due ?? void 0;
|
|
22
|
+
}
|
|
23
|
+
function o({ payable: o, lineItems: s }) {
|
|
24
|
+
let c = {
|
|
25
|
+
invoiceNumber: o.document_id ?? "",
|
|
26
|
+
invoiceDate: o.issued_at ?? "",
|
|
27
|
+
dueDate: o.due_date ?? "",
|
|
28
|
+
poNumber: i(o.purchase_order_number)
|
|
29
|
+
}, l = s.map((n) => ({
|
|
30
|
+
id: n.id,
|
|
31
|
+
description: n.name ?? "",
|
|
32
|
+
glCode: n.ledger_account_id ?? "",
|
|
33
|
+
quantity: String(t(n)),
|
|
34
|
+
price: r(n.unit_price),
|
|
35
|
+
amount: r(e(n))
|
|
36
|
+
})), u = a(o);
|
|
37
|
+
return {
|
|
38
|
+
values: c,
|
|
39
|
+
lineItems: l.length ? l : [n()],
|
|
40
|
+
discount: r(o.discount),
|
|
41
|
+
tax: r(o.tax_amount),
|
|
42
|
+
total: u ? r(u) : ""
|
|
43
|
+
};
|
|
44
|
+
}
|
|
41
45
|
//#endregion
|
|
42
|
-
export {
|
|
46
|
+
export { n as emptyLineItem, o as mapPayableToBillForm };
|
|
@@ -1,17 +1,40 @@
|
|
|
1
|
-
import { BanIcon as e, Trash2Icon as t } from "lucide-react";
|
|
2
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
var e = {
|
|
3
|
+
selectRow: ({ vendorLabel: e, invoiceNumberLabel: t, addedOnLabel: n }) => `Select bill — ${e}, invoice ${t}, added ${n}`,
|
|
4
|
+
openRow: ({ vendorLabel: e, invoiceNumberLabel: t, addedOnLabel: n }) => `View bill — ${e}, invoice ${t}, added ${n}`,
|
|
5
|
+
reviewGroup: ({ vendorLabel: e, count: t }) => `${e} — ${t} possible duplicate bills`,
|
|
6
|
+
selectGroup: ({ vendorLabel: e }) => `Select every bill from ${e}`,
|
|
7
|
+
deleteBillButton: "Remove this bill",
|
|
8
|
+
deleteConfirmTitle: "Remove duplicate bill?",
|
|
9
|
+
deleteConfirmDescription: "You can't undo this action.",
|
|
10
|
+
deleteConfirmButton: "Remove duplicate bill",
|
|
11
|
+
deleteConfirmBackButton: "Cancel",
|
|
12
|
+
cancelBillButton: "Cancel this bill",
|
|
13
|
+
confirmBillButton: "Confirm duplicate",
|
|
14
|
+
cancelConfirmTitle: "Cancel duplicate bill?",
|
|
15
|
+
cancelConfirmDescription: "You can't undo this action.",
|
|
16
|
+
cancelConfirmButton: "Cancel this bill",
|
|
17
|
+
cancelConfirmBackButton: "Back",
|
|
18
|
+
confirmDuplicateTitle: "Confirm duplicate?",
|
|
19
|
+
confirmDuplicateDescription: "This bill is already cancelled. This records it as a duplicate.",
|
|
20
|
+
notDuplicateAction: "Not a duplicate",
|
|
21
|
+
notDuplicateConfirmTitle: "Mark as not a duplicate?",
|
|
22
|
+
notDuplicateConfirmDescription: "You can't undo this action.",
|
|
23
|
+
notDuplicateConfirmButton: "Not a duplicate",
|
|
24
|
+
notDuplicateConfirmBackButton: "Back",
|
|
25
|
+
deleteAction: "Remove bill",
|
|
26
|
+
cancelAction: "Cancel bill",
|
|
27
|
+
confirmAction: "Confirm duplicate",
|
|
28
|
+
currentBillBadge: "This bill",
|
|
29
|
+
originalBillBadge: "Original bill",
|
|
30
|
+
showMoreRows: (e) => `Show ${e} more`,
|
|
31
|
+
deletedToast: "Duplicate removed",
|
|
32
|
+
cancelledToast: "Duplicate cancelled",
|
|
33
|
+
confirmedToast: "Duplicate confirmed",
|
|
34
|
+
dismissedToast: "Marked as “not a duplicate”.",
|
|
35
|
+
removedToast: "Duplicate removed",
|
|
36
|
+
verdictFailedToast: "Couldn't update this duplicate. Try again.",
|
|
37
|
+
allResolvedToast: "All possible duplicates resolved"
|
|
38
|
+
};
|
|
16
39
|
//#endregion
|
|
17
|
-
export {
|
|
40
|
+
export { e as DUPLICATE_BILLS_LABELS_EN };
|