@tesouro/embedded-components-react 0.5.28 → 0.5.31
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/README.md +14 -13
- package/dist/index.css +15 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -0
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +155 -151
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +7 -7
- 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/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +52 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +57 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +68 -207
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +278 -175
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +13 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +47 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +53 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +204 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +32 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +234 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -240
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +532 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -436
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +42 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +230 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -233
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +46 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +122 -241
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +206 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -213
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +113 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -115
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +24 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +158 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +100 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +20 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +103 -146
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +93 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +43 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +55 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +33 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +34 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +187 -350
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +356 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +87 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -94
- 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 +25 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +90 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +85 -104
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +92 -87
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +126 -105
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +0 -28
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js
CHANGED
|
@@ -2,49 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
-
import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
-
import { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
-
import { patchCounterpartsIdBankAccountsId as r, postCounterpartsIdBankAccountsIdMakeDefault as i } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
5
|
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import
|
|
11
|
-
import { counterpartBankAccountsInvalidationKey as o } from "../../../shared/counterpart-management/data-access/dist/index2.js";
|
|
6
|
+
import "./index6.js";
|
|
12
7
|
import "../../../shared/counterpart-management/data-access/dist/index.js";
|
|
13
|
-
import
|
|
14
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js
|
|
15
|
-
function c() {
|
|
16
|
-
let { client: c, organizationId: l } = t();
|
|
17
|
-
return s({
|
|
18
|
-
mutationFn: async ({ path: e, body: t, makeDefault: a }) => {
|
|
19
|
-
let { data: o } = await r({
|
|
20
|
-
client: c,
|
|
21
|
-
headers: n(l),
|
|
22
|
-
path: e,
|
|
23
|
-
body: t,
|
|
24
|
-
throwOnError: !0
|
|
25
|
-
});
|
|
26
|
-
if (a) try {
|
|
27
|
-
await i({
|
|
28
|
-
client: c,
|
|
29
|
-
headers: n(l),
|
|
30
|
-
path: e,
|
|
31
|
-
throwOnError: !0
|
|
32
|
-
});
|
|
33
|
-
} catch {}
|
|
34
|
-
return o;
|
|
35
|
-
},
|
|
36
|
-
onSuccess: async (t, n) => {
|
|
37
|
-
await Promise.all([e(o({
|
|
38
|
-
client: c,
|
|
39
|
-
organizationId: l,
|
|
40
|
-
counterpartId: n.path.counterpart_id
|
|
41
|
-
})), a({
|
|
42
|
-
client: c,
|
|
43
|
-
organizationId: l,
|
|
44
|
-
payableId: n.payableId
|
|
45
|
-
})]);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
export { c as useUpdatePayableCounterpartBankAccountMutation };
|
|
8
|
+
import "@tanstack/react-query";
|
|
@@ -12,21 +12,21 @@ import "./index28.js";
|
|
|
12
12
|
import "./index39.js";
|
|
13
13
|
import "./index42.js";
|
|
14
14
|
import "./index48.js";
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
15
|
+
import "./index56.js";
|
|
16
|
+
import "./index58.js";
|
|
17
|
+
import "./index60.js";
|
|
17
18
|
import "./index61.js";
|
|
18
19
|
import "./index62.js";
|
|
19
20
|
import "./index63.js";
|
|
20
21
|
import "./index64.js";
|
|
21
|
-
import "./
|
|
22
|
+
import "./index68.js";
|
|
22
23
|
import "./index69.js";
|
|
23
24
|
import "./index70.js";
|
|
24
25
|
import "./index71.js";
|
|
25
26
|
import "./index72.js";
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
27
|
+
import "./index75.js";
|
|
28
|
+
import "./index81.js";
|
|
28
29
|
import "./index82.js";
|
|
29
30
|
import "./index83.js";
|
|
30
|
-
import "./
|
|
31
|
-
import { BillPayWidget as e } from "./index88.js";
|
|
31
|
+
import { BillPayWidget as e } from "./index87.js";
|
|
32
32
|
export { e as BillPayWidget };
|
|
@@ -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 "./index10.js";
|
|
11
11
|
import { useDuplicateBillsSelection as a } from "./index11.js";
|
|
12
|
-
import { DuplicateBillsDialog as o } from "../../ui/dist/
|
|
12
|
+
import { DuplicateBillsDialog as o } from "../../ui/dist/index90.js";
|
|
13
13
|
import "../../ui/dist/index.js";
|
|
14
14
|
import { useEffect as s, useMemo as c, useState as l } from "react";
|
|
15
15
|
import { jsx as u } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MARK_AS_PAID_DIALOG_LABELS_EN as e } from "../../ui/dist/
|
|
1
|
+
import { MARK_AS_PAID_DIALOG_LABELS_EN as e } from "../../ui/dist/index101.js";
|
|
2
2
|
import "../../ui/dist/index.js";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js
|
|
4
4
|
var t = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as e } from "../../ui/dist/
|
|
2
|
-
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t } from "../../ui/dist/
|
|
1
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as e } from "../../ui/dist/index98.js";
|
|
2
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t } from "../../ui/dist/index104.js";
|
|
3
3
|
import "../../ui/dist/index.js";
|
|
4
4
|
import { SOURCE_ACCOUNT_LABELS_EN as n } from "./index24.js";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { useWidgetConfig as e } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
6
6
|
import "../../../shared/feature/dist/index.js";
|
|
7
7
|
import { resolveVendor as t } from "./index8.js";
|
|
8
|
-
import { ReviewTransactionDialog as n } from "../../ui/dist/
|
|
9
|
-
import { SchedulePaymentDialog as r } from "../../ui/dist/
|
|
8
|
+
import { ReviewTransactionDialog as n } from "../../ui/dist/index99.js";
|
|
9
|
+
import { SchedulePaymentDialog as r } from "../../ui/dist/index106.js";
|
|
10
10
|
import "../../ui/dist/index.js";
|
|
11
11
|
import { canReadCounterpartBankAccounts as i } from "./index20.js";
|
|
12
12
|
import { resolveAmountDueMinorUnits as a } from "./index21.js";
|
|
@@ -2,100 +2,85 @@ import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCal
|
|
|
2
2
|
import { derivePayableStatus as t } from "./index7.js";
|
|
3
3
|
import { resolveVendor as n } from "./index8.js";
|
|
4
4
|
import { resolveAmountDueMinorUnits as r } from "./index21.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { getPaidAtLabel as c } from "./index42.js";
|
|
5
|
+
import { formatBillMoney as i } from "./index2.js";
|
|
6
|
+
import { resolveLineItemAmountMinorUnits as a } from "./index40.js";
|
|
7
|
+
import { resolveLineItemQuantity as o } from "./index41.js";
|
|
8
|
+
import { getPaidAtLabel as s } from "./index42.js";
|
|
10
9
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js
|
|
11
|
-
function
|
|
12
|
-
let
|
|
13
|
-
apiStatus:
|
|
14
|
-
dueDate:
|
|
15
|
-
scheduledPaymentDate:
|
|
16
|
-
hasScheduledPayment:
|
|
17
|
-
}),
|
|
10
|
+
function c({ payable: c, lineItems: l, glCodeOptions: u, glCodeRosterAvailable: d = !0, history: f, paymentHistory: p, approvalPolicy: m, labels: h, hasScheduledPayment: g, rejection: _, payableAchInstructions: v, payableAchInstructionsReadable: y = !1 }) {
|
|
11
|
+
let b = c.currency, x = t({
|
|
12
|
+
apiStatus: c.status,
|
|
13
|
+
dueDate: c.due_date,
|
|
14
|
+
scheduledPaymentDate: c.scheduled_payment_date,
|
|
15
|
+
hasScheduledPayment: g
|
|
16
|
+
}), S = n(c), C = y ? v : void 0, w = C?.account_number, T = !!(C?.account_holder_name && C.routing_number && C.account_number), E = e(c.issued_at) || h.notProvided, D = e(c.due_date) || h.notProvided, O = new Map(u.map((e) => [e.value, e.label])), k = [
|
|
18
17
|
{
|
|
19
|
-
label:
|
|
20
|
-
minorUnits:
|
|
18
|
+
label: h.subtotalRow,
|
|
19
|
+
minorUnits: c.subtotal
|
|
21
20
|
},
|
|
22
21
|
{
|
|
23
|
-
label:
|
|
24
|
-
minorUnits:
|
|
22
|
+
label: h.discountRow,
|
|
23
|
+
minorUnits: c.discount
|
|
25
24
|
},
|
|
26
25
|
{
|
|
27
|
-
label:
|
|
28
|
-
minorUnits:
|
|
26
|
+
label: h.taxRow,
|
|
27
|
+
minorUnits: c.tax_amount
|
|
29
28
|
}
|
|
30
29
|
].map((e) => ({
|
|
31
30
|
label: e.label,
|
|
32
|
-
value:
|
|
33
|
-
})).filter((e) => !!e.value),
|
|
34
|
-
|
|
35
|
-
label:
|
|
36
|
-
value:
|
|
31
|
+
value: i(e.minorUnits, b)
|
|
32
|
+
})).filter((e) => !!e.value), A = i(c.total_amount, b);
|
|
33
|
+
A && k.push({
|
|
34
|
+
label: h.totalRow,
|
|
35
|
+
value: A,
|
|
37
36
|
emphasis: !0
|
|
38
37
|
});
|
|
39
|
-
let
|
|
38
|
+
let j = s(c);
|
|
40
39
|
return {
|
|
41
|
-
amountDue:
|
|
42
|
-
amountPaid:
|
|
43
|
-
paidOnLabel:
|
|
44
|
-
invoiceDateLabel:
|
|
45
|
-
dueDateLabel:
|
|
46
|
-
dueDateTone:
|
|
47
|
-
status:
|
|
48
|
-
statusTone:
|
|
40
|
+
amountDue: i(r(c), b) ?? "",
|
|
41
|
+
amountPaid: j ? i(c.amount_paid, b) : void 0,
|
|
42
|
+
paidOnLabel: j ? h.paidOnLabel(j) : void 0,
|
|
43
|
+
invoiceDateLabel: E,
|
|
44
|
+
dueDateLabel: D,
|
|
45
|
+
dueDateTone: x.isOverdue ? "danger" : "default",
|
|
46
|
+
status: x.status,
|
|
47
|
+
statusTone: x.tone,
|
|
49
48
|
payTo: {
|
|
50
|
-
name:
|
|
51
|
-
email:
|
|
52
|
-
methodLabel:
|
|
53
|
-
|
|
54
|
-
{
|
|
55
|
-
label: g.accountHolderFieldLabel,
|
|
56
|
-
value: w?.account_holder_name ?? ""
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
label: g.routingNumberFieldLabel,
|
|
60
|
-
value: w?.routing_number ?? ""
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
label: g.accountNumberFieldLabel,
|
|
64
|
-
value: T ?? "",
|
|
65
|
-
maskedValue: i(T ?? void 0)
|
|
66
|
-
}
|
|
67
|
-
] : []
|
|
49
|
+
name: S?.name || h.notProvided,
|
|
50
|
+
email: S?.email ?? "",
|
|
51
|
+
methodLabel: T ? h.paymentInstructionsValue(w?.slice(-4) ?? "") : h.paymentInstructionsNotSet,
|
|
52
|
+
hasPaymentInstructions: T
|
|
68
53
|
},
|
|
69
54
|
invoiceFields: [
|
|
70
55
|
{
|
|
71
|
-
label:
|
|
72
|
-
value:
|
|
56
|
+
label: h.invoiceDateRow,
|
|
57
|
+
value: E
|
|
73
58
|
},
|
|
74
59
|
{
|
|
75
|
-
label:
|
|
76
|
-
value:
|
|
60
|
+
label: h.dueDateRow,
|
|
61
|
+
value: D
|
|
77
62
|
},
|
|
78
63
|
{
|
|
79
|
-
label:
|
|
80
|
-
value:
|
|
64
|
+
label: h.invoiceNumberRow,
|
|
65
|
+
value: c.document_id || h.notProvided
|
|
81
66
|
}
|
|
82
67
|
],
|
|
83
|
-
lineItems:
|
|
84
|
-
let t =
|
|
68
|
+
lineItems: l.map((e) => {
|
|
69
|
+
let t = i(e.unit_price, b), n = String(o(e));
|
|
85
70
|
return {
|
|
86
71
|
id: e.id,
|
|
87
72
|
description: e.name ?? e.description ?? "",
|
|
88
|
-
glCodeLabel: e.ledger_account_id ?
|
|
89
|
-
qtyPriceLabel: t ?
|
|
90
|
-
amount: a(
|
|
73
|
+
glCodeLabel: e.ledger_account_id ? O.get(e.ledger_account_id) ?? (d ? h.glCodeMissing : h.glCodeUnavailable) : h.glCodeMissing,
|
|
74
|
+
qtyPriceLabel: t ? h.qtyPriceValue(n, t) : h.qtyOnlyValue(n),
|
|
75
|
+
amount: i(a(e), b) ?? ""
|
|
91
76
|
};
|
|
92
77
|
}),
|
|
93
|
-
amountRows:
|
|
94
|
-
approvalPolicy:
|
|
95
|
-
paymentHistory:
|
|
96
|
-
history:
|
|
97
|
-
rejection:
|
|
78
|
+
amountRows: k,
|
|
79
|
+
approvalPolicy: m,
|
|
80
|
+
paymentHistory: p,
|
|
81
|
+
history: f,
|
|
82
|
+
rejection: _
|
|
98
83
|
};
|
|
99
84
|
}
|
|
100
85
|
//#endregion
|
|
101
|
-
export {
|
|
86
|
+
export { c as buildBillDetailView };
|
|
@@ -67,14 +67,17 @@ var e = {
|
|
|
67
67
|
forceApproveNoApprovalPolicy: "Bill approved.",
|
|
68
68
|
forceRejectNoApprovalPolicy: "Bill rejected."
|
|
69
69
|
}
|
|
70
|
-
}, t = (e) => `Payment scheduled for ${e}`, n =
|
|
70
|
+
}, t = (e) => `Payment scheduled for ${e}`, n = (e) => `Scheduled - ${e}`, r = (e) => `Awaiting approval from ${new Intl.ListFormat("en", {
|
|
71
|
+
style: "long",
|
|
72
|
+
type: "conjunction"
|
|
73
|
+
}).format(e)}.`, i = "Awaiting approval.", a = [
|
|
71
74
|
"reject",
|
|
72
75
|
"cancel",
|
|
73
76
|
"cancelScheduledPayment",
|
|
74
77
|
"forceApprove",
|
|
75
78
|
"forceReject"
|
|
76
79
|
];
|
|
77
|
-
function
|
|
80
|
+
function o(e, t) {
|
|
78
81
|
let n = e.reason ? {
|
|
79
82
|
...e.reason,
|
|
80
83
|
...t?.reason
|
|
@@ -89,27 +92,27 @@ function r(e, t) {
|
|
|
89
92
|
};
|
|
90
93
|
return n || delete i.reason, r || delete i.noApprovalPolicy, i;
|
|
91
94
|
}
|
|
92
|
-
function
|
|
93
|
-
let
|
|
95
|
+
function s(e, t) {
|
|
96
|
+
let n = {
|
|
94
97
|
...e,
|
|
95
98
|
...t
|
|
96
99
|
};
|
|
97
|
-
for (let
|
|
98
|
-
return
|
|
100
|
+
for (let r of a) n[r] = o(e[r], t?.[r]);
|
|
101
|
+
return n;
|
|
99
102
|
}
|
|
100
|
-
function
|
|
103
|
+
function c(t) {
|
|
101
104
|
let n = e;
|
|
102
105
|
return {
|
|
103
106
|
...n,
|
|
104
107
|
...t,
|
|
105
|
-
decisionDialog:
|
|
108
|
+
decisionDialog: s(n.decisionDialog, t?.decisionDialog),
|
|
106
109
|
actionSuccess: {
|
|
107
110
|
...n.actionSuccess,
|
|
108
111
|
...t?.actionSuccess
|
|
109
112
|
}
|
|
110
113
|
};
|
|
111
114
|
}
|
|
112
|
-
var
|
|
115
|
+
var l = {
|
|
113
116
|
paymentHistorySentLabel: "Payment sent",
|
|
114
117
|
paymentHistoryScheduledLabel: "Payment scheduled",
|
|
115
118
|
paymentHistoryCanceledLabel: "Payment canceled",
|
|
@@ -131,11 +134,11 @@ var o = {
|
|
|
131
134
|
card: "Card"
|
|
132
135
|
}
|
|
133
136
|
};
|
|
134
|
-
function
|
|
137
|
+
function u(e) {
|
|
135
138
|
return {
|
|
136
|
-
...
|
|
139
|
+
...l.paymentHistoryMethodLabels,
|
|
137
140
|
...e
|
|
138
141
|
};
|
|
139
142
|
}
|
|
140
143
|
//#endregion
|
|
141
|
-
export { e as BILL_DETAIL_ACTIONS_LABELS_EN,
|
|
144
|
+
export { r as AWAITING_APPROVAL_LABEL_EN, i as AWAITING_APPROVAL_UNKNOWN_LABEL_EN, e as BILL_DETAIL_ACTIONS_LABELS_EN, l as PAYMENT_HISTORY_LABELS_EN, n as SCHEDULED_STATUS_BADGE_LABEL_EN, t as SCHEDULED_SUMMARY_LABEL_EN, c as mergeBillDetailActionsLabels, s as mergeDecisionDialogCopy, u as mergePaymentHistoryMethodLabels };
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { ACH_FIELD_GROUP_LABELS_EN as e } from "../../../shared/counterpart-management/ui/dist/index2.js";
|
|
2
|
+
import "../../../shared/counterpart-management/ui/dist/index.js";
|
|
3
|
+
import { DISCARD_CHANGES_DIALOG_LABELS_EN as t } from "../../ui/dist/index66.js";
|
|
4
|
+
import { BILL_REJECTED_BANNER_LABELS_EN as n } from "../../ui/dist/index74.js";
|
|
5
|
+
import { UNSAVED_BILL_DIALOG_LABELS_EN as r } from "../../ui/dist/index111.js";
|
|
3
6
|
import "../../ui/dist/index.js";
|
|
4
|
-
import { PAY_BILL_FLOW_LABELS_EN as
|
|
5
|
-
import { MARK_AS_PAID_FLOW_LABELS_EN as
|
|
7
|
+
import { PAY_BILL_FLOW_LABELS_EN as i, mergePayBillFlowLabels as a } from "./index25.js";
|
|
8
|
+
import { MARK_AS_PAID_FLOW_LABELS_EN as o, mergeMarkAsPaidFlowLabels as s } from "./index15.js";
|
|
6
9
|
import "./index18.js";
|
|
7
|
-
import { APPROVAL_POLICY_RULE_COPY_EN as
|
|
8
|
-
import { BILL_DETAIL_ACTIONS_LABELS_EN as
|
|
9
|
-
import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as
|
|
10
|
+
import { APPROVAL_POLICY_RULE_COPY_EN as c } from "./index29.js";
|
|
11
|
+
import { AWAITING_APPROVAL_LABEL_EN as l, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as u, BILL_DETAIL_ACTIONS_LABELS_EN as d, PAYMENT_HISTORY_LABELS_EN as f, SCHEDULED_STATUS_BADGE_LABEL_EN as p, SCHEDULED_SUMMARY_LABEL_EN as m, mergeBillDetailActionsLabels as h, mergePaymentHistoryMethodLabels as g } from "./index46.js";
|
|
12
|
+
import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as _ } from "./index47.js";
|
|
10
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js
|
|
11
|
-
var
|
|
14
|
+
var v = {
|
|
12
15
|
unmappedValidationError: (e, t) => `${e}: ${t}`,
|
|
13
16
|
unknownValidationField: "(unknown field)",
|
|
14
17
|
requiredField: "This field is required.",
|
|
@@ -27,30 +30,24 @@ var p = {
|
|
|
27
30
|
unreadableTax: "Enter a valid tax amount.",
|
|
28
31
|
unreadableTotal: "Enter a valid total amount.",
|
|
29
32
|
totalNotGreaterThanZero: "Total amount must be greater than $0."
|
|
30
|
-
},
|
|
31
|
-
|
|
33
|
+
}, y = {
|
|
34
|
+
paymentInstructionsValue: (e) => `Account ending in ${e}`,
|
|
32
35
|
noMethod: "No payment method on file",
|
|
33
|
-
accountHolder: "Account holder",
|
|
34
|
-
routingNumber: "Routing number",
|
|
35
|
-
accountNumber: "Account number",
|
|
36
36
|
paymentMethodLoading: "Loading payment method...",
|
|
37
37
|
paymentMethodUnavailable: "We could not load payment methods. Try again.",
|
|
38
38
|
searchFailed: "We could not load vendors. Try again.",
|
|
39
39
|
vendorDetailsFailed: "We could not load this vendor. Try again."
|
|
40
|
-
},
|
|
40
|
+
}, b = {
|
|
41
41
|
attachFailed: "We could not attach that file. Try again.",
|
|
42
42
|
deleteFailed: "We could not remove that document. Try again.",
|
|
43
43
|
noDocument: "No document attached to this bill.",
|
|
44
44
|
pendingDeletionNotice: "This document will be removed when you save this bill.",
|
|
45
|
-
preview:
|
|
46
|
-
},
|
|
47
|
-
...
|
|
45
|
+
preview: _
|
|
46
|
+
}, x = {
|
|
47
|
+
...f,
|
|
48
48
|
notProvided: "Not provided",
|
|
49
49
|
paymentInstructionsValue: (e) => `Account ending in ${e}`,
|
|
50
50
|
paymentInstructionsNotSet: "Not set",
|
|
51
|
-
accountHolderFieldLabel: "Account holder",
|
|
52
|
-
routingNumberFieldLabel: "Routing number",
|
|
53
|
-
accountNumberFieldLabel: "Account number",
|
|
54
51
|
invoiceDateRow: "Invoice date",
|
|
55
52
|
dueDateRow: "Due date",
|
|
56
53
|
invoiceNumberRow: "Invoice number",
|
|
@@ -68,7 +65,7 @@ var p = {
|
|
|
68
65
|
rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
|
|
69
66
|
rejectedOn: (e) => `Rejected on ${e}`,
|
|
70
67
|
rejectionMessage: (e) => `"${e}"`
|
|
71
|
-
},
|
|
68
|
+
}, S = {
|
|
72
69
|
dateLabel: (e) => new Date(e).toLocaleString("en-US", {
|
|
73
70
|
month: "short",
|
|
74
71
|
day: "numeric",
|
|
@@ -92,20 +89,24 @@ var p = {
|
|
|
92
89
|
markedAsPartiallyPaid: "Marked as partially paid",
|
|
93
90
|
paymentReverted: "Payment reverted",
|
|
94
91
|
statusChanged: (e) => `Status changed to ${e}`
|
|
95
|
-
},
|
|
92
|
+
}, C = {
|
|
96
93
|
newTitle: "New bill",
|
|
97
94
|
extractedTitle: (e) => `Bill from ${e}`,
|
|
98
95
|
viewTitle: (e) => `Bill from ${e}`,
|
|
99
96
|
readOnlyTitle: "Bill details",
|
|
100
97
|
addedOn: (e) => `Added on ${e}`,
|
|
101
|
-
unsavedChanges:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
98
|
+
unsavedChanges: r,
|
|
99
|
+
discardChanges: t,
|
|
100
|
+
scheduledSummary: m,
|
|
101
|
+
scheduledStatusBadge: p,
|
|
102
|
+
awaitingApprovalNotice: l,
|
|
103
|
+
awaitingApprovalUnknownNotice: u,
|
|
104
|
+
actions: d,
|
|
105
|
+
detail: x,
|
|
106
|
+
history: S,
|
|
107
|
+
payBill: i,
|
|
108
|
+
markAsPaid: o,
|
|
109
|
+
approvalPolicyCopy: c,
|
|
109
110
|
deleteDraft: {
|
|
110
111
|
menuItem: "Delete draft",
|
|
111
112
|
dialog: {
|
|
@@ -120,46 +121,50 @@ var p = {
|
|
|
120
121
|
noAccess: "You don't have access to GL codes",
|
|
121
122
|
empty: "No GL codes set up yet"
|
|
122
123
|
},
|
|
123
|
-
rejectedBanner:
|
|
124
|
+
rejectedBanner: n
|
|
124
125
|
};
|
|
125
|
-
function
|
|
126
|
+
function w(e) {
|
|
126
127
|
return {
|
|
127
|
-
...
|
|
128
|
+
...C,
|
|
128
129
|
...e,
|
|
129
|
-
actions:
|
|
130
|
+
actions: h(e?.actions),
|
|
130
131
|
detail: {
|
|
131
|
-
...
|
|
132
|
+
...C.detail,
|
|
132
133
|
...e?.detail,
|
|
133
|
-
paymentHistoryMethodLabels:
|
|
134
|
+
paymentHistoryMethodLabels: g(e?.detail?.paymentHistoryMethodLabels)
|
|
134
135
|
},
|
|
135
136
|
history: {
|
|
136
|
-
...
|
|
137
|
+
...C.history,
|
|
137
138
|
...e?.history
|
|
138
139
|
},
|
|
139
|
-
payBill:
|
|
140
|
-
markAsPaid:
|
|
140
|
+
payBill: a(e?.payBill),
|
|
141
|
+
markAsPaid: s(e?.markAsPaid),
|
|
141
142
|
lineItemsGlCodeUnavailable: {
|
|
142
|
-
...
|
|
143
|
+
...C.lineItemsGlCodeUnavailable,
|
|
143
144
|
...e?.lineItemsGlCodeUnavailable
|
|
144
145
|
},
|
|
145
146
|
unsavedChanges: {
|
|
146
|
-
...
|
|
147
|
+
...C.unsavedChanges,
|
|
147
148
|
...e?.unsavedChanges
|
|
148
149
|
},
|
|
150
|
+
discardChanges: {
|
|
151
|
+
...C.discardChanges,
|
|
152
|
+
...e?.discardChanges
|
|
153
|
+
},
|
|
149
154
|
rejectedBanner: {
|
|
150
|
-
...
|
|
155
|
+
...C.rejectedBanner,
|
|
151
156
|
...e?.rejectedBanner
|
|
152
157
|
},
|
|
153
158
|
approvalPolicyCopy: {
|
|
154
|
-
...
|
|
159
|
+
...C.approvalPolicyCopy,
|
|
155
160
|
...e?.approvalPolicyCopy
|
|
156
161
|
},
|
|
157
162
|
deleteDraft: {
|
|
158
|
-
...
|
|
163
|
+
...C.deleteDraft,
|
|
159
164
|
...e?.deleteDraft,
|
|
160
165
|
dialog: (() => {
|
|
161
166
|
let t = {
|
|
162
|
-
...
|
|
167
|
+
...C.deleteDraft.dialog,
|
|
163
168
|
...e?.deleteDraft?.dialog
|
|
164
169
|
};
|
|
165
170
|
return delete t.reason, t;
|
|
@@ -167,27 +172,17 @@ function y(e) {
|
|
|
167
172
|
}
|
|
168
173
|
};
|
|
169
174
|
}
|
|
170
|
-
var
|
|
175
|
+
var T = {
|
|
171
176
|
createTitle: "New vendor",
|
|
172
177
|
editTitle: "Edit vendor",
|
|
173
|
-
|
|
178
|
+
switchVendorFieldLabel: "Switch to a different vendor",
|
|
174
179
|
nameLabel: "Name",
|
|
180
|
+
addPaymentInstructions: "Add payment instructions",
|
|
181
|
+
cancelPaymentInstructions: "Cancel",
|
|
182
|
+
ach: e,
|
|
175
183
|
addAddress: "Add address (optional)",
|
|
176
|
-
paymentMethodsHeading: "Accepted payment methods",
|
|
177
|
-
paymentMethodsDescription: "How and where will the money be sent. Don't have these yet? No problem. You can save this vendor and add their payment details later — you just won't be able to send payments until you do.",
|
|
178
|
-
achTitle: "ACH bank transfer",
|
|
179
|
-
achDescription: "Fast, direct deposit to the vendor's bank. Arrives in 1–3 business days.",
|
|
180
|
-
addBankAccount: "Add bank account",
|
|
181
|
-
accountHolderNameLabel: "Account holder name",
|
|
182
|
-
routingNumberLabel: "Routing number",
|
|
183
|
-
accountNumberLabel: "Account number",
|
|
184
|
-
achHelp: "Ask your vendor for this — it's usually on their invoice, W-9, or a payment instructions email they send you.",
|
|
185
184
|
cancel: "Cancel",
|
|
186
|
-
|
|
187
|
-
discardConfirmTitle: "Discard unsaved changes?",
|
|
188
|
-
discardConfirmDescription: "You've made changes to this vendor that haven't been saved. If you leave now, they'll be lost.",
|
|
189
|
-
keepEditingAction: "Keep editing",
|
|
190
|
-
discardChangesAction: "Discard changes"
|
|
185
|
+
cancelAriaLabel: "Cancel vendor"
|
|
191
186
|
};
|
|
192
187
|
//#endregion
|
|
193
|
-
export {
|
|
188
|
+
export { v as BILL_CREATE_MESSAGE_LABELS_EN, C as BILL_CREATE_SCREEN_LABELS_EN, x as BILL_DETAIL_VIEW_LABELS_EN, S as BILL_HISTORY_LABELS_EN, b as SOURCE_DOCUMENT_CONTAINER_LABELS_EN, T as VENDOR_INLINE_FORM_LABELS_EN, y as VENDOR_SECTION_PROPS_LABELS_EN, w as mergeBillCreateScreenCopy };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { useAttachPayableFileMutation as e } from "../../data-access/dist/index13.js";
|
|
6
6
|
import "../../data-access/dist/index.js";
|
|
7
|
-
import { SourceDocumentPanel as t } from "../../ui/dist/
|
|
7
|
+
import { SourceDocumentPanel as t } from "../../ui/dist/index109.js";
|
|
8
8
|
import "../../ui/dist/index.js";
|
|
9
9
|
import { createSourceDocumentPreview as n } from "./index47.js";
|
|
10
10
|
import { SOURCE_DOCUMENT_CONTAINER_LABELS_EN as r } from "./index48.js";
|