@tesouro/embedded-components-react 0.11.253 → 0.11.255
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/index.css +9 -344
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +35 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +3 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +47 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +87 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +238 -248
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +15 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +199 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index10.js +18 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index11.js +150 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +2 -150
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js +75 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +272 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -279
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index16.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index17.js +51 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index18.js +2 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index19.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index20.js +369 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index21.js +2 -373
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index22.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index23.js +124 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index24.js +2 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index26.js +51 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index27.js +1 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +10 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +35 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index30.js +133 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index32.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +52 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -315
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index35.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +158 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +2 -162
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index38.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index39.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index40.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index41.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index42.js +31 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index43.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index44.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index45.js +27 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index46.js +2 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index47.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +2 -107
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index50.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index51.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index52.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js +34 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +119 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +9 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js +76 -171
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index12.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index13.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index14.js +126 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index15.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js +32 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +28 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +72 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index8.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index9.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +32 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index4.js +53 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +17 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/billDetailLabels.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +13 -14
- 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/feature/dist/lib/document/documentPreview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/TooltipIconButton/TooltipIconButton.js +55 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +1322 -1312
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index53.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/maskAccountNumber.js +0 -5
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js
CHANGED
|
@@ -11,150 +11,165 @@ import "../../../../shared/data-access/dist/index.js";
|
|
|
11
11
|
import "../../../../shared/ui/dist/index.js";
|
|
12
12
|
import { useAnalyticsCaptureException as i } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
13
13
|
import "../../../../shared/feature/dist/index.js";
|
|
14
|
-
import { maskAccountNumber as a } from "../../../util/dist/lib/maskAccountNumber.js";
|
|
15
14
|
import "../../../util/dist/index.js";
|
|
16
|
-
import { dateToCalendarKey as
|
|
17
|
-
import { useSchedulePaymentMutation as
|
|
15
|
+
import { dateToCalendarKey as a, getDefaultPaymentDate as o, isPastEasternDate as s, isTodayInEastern as c } from "./index3.js";
|
|
16
|
+
import { useSchedulePaymentMutation as ee } from "../../data-access/dist/index5.js";
|
|
18
17
|
import "../../data-access/dist/index.js";
|
|
19
|
-
import { deriveSourceAccountFunds as
|
|
20
|
-
import { mergePayBillFlowLabels as
|
|
21
|
-
import { useMemo as
|
|
18
|
+
import { deriveSourceAccountFunds as l, mapSourceAccountOptions as u } from "./index8.js";
|
|
19
|
+
import { mergePayBillFlowLabels as te } from "./index9.js";
|
|
20
|
+
import { useMemo as d, useState as f } from "react";
|
|
22
21
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js
|
|
23
|
-
function
|
|
22
|
+
function p(e) {
|
|
24
23
|
return !!(e?.account_holder_name && e.routing_number && e.account_number);
|
|
25
24
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
25
|
+
function m({ selectedDate: e, selectedAccount: t, amountDueMinorUnits: n, labels: r }) {
|
|
26
|
+
let i = {};
|
|
27
|
+
if (e ? s(e) && (i.paymentDate = r.staleDateError) : i.paymentDate = r.selectDateError, !t) i.sourceAccount = r.selectAccountError;
|
|
28
|
+
else if (e) {
|
|
29
|
+
let a = l({
|
|
30
|
+
selectedAccount: t,
|
|
31
|
+
amountDueMinorUnits: n,
|
|
32
|
+
isToday: c(e),
|
|
33
|
+
labels: r
|
|
34
|
+
});
|
|
35
|
+
a.state === "error" && (i.sourceAccount = a.message ?? r.todayInsufficientFunds);
|
|
36
|
+
}
|
|
37
|
+
return !e || !t || i.paymentDate || i.sourceAccount ? {
|
|
28
38
|
ok: !1,
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
if (c(e)) return {
|
|
32
|
-
ok: !1,
|
|
33
|
-
error: r.staleDateError
|
|
34
|
-
};
|
|
35
|
-
if (!t) return {
|
|
36
|
-
ok: !1,
|
|
37
|
-
error: r.selectAccountError
|
|
38
|
-
};
|
|
39
|
-
let i = d({
|
|
40
|
-
selectedAccount: t,
|
|
41
|
-
amountDueMinorUnits: n,
|
|
42
|
-
isToday: l(e),
|
|
43
|
-
labels: r
|
|
44
|
-
});
|
|
45
|
-
return i.state === "error" ? {
|
|
46
|
-
ok: !1,
|
|
47
|
-
error: i.message ?? r.todayInsufficientFunds
|
|
39
|
+
errors: i
|
|
48
40
|
} : {
|
|
49
41
|
ok: !0,
|
|
50
42
|
date: e,
|
|
51
43
|
account: t
|
|
52
44
|
};
|
|
53
45
|
}
|
|
54
|
-
function
|
|
55
|
-
let
|
|
56
|
-
|
|
57
|
-
}, [
|
|
58
|
-
selectedAccount:
|
|
59
|
-
amountDueMinorUnits:
|
|
60
|
-
isToday:
|
|
61
|
-
labels:
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
46
|
+
function h({ payableId: s, amountDueMinorUnits: h, currencyCode: g = "USD", dueDate: _, vendorName: ne, vendorEmail: re, vendorBankAccount: v, isVendorBankAccountLoading: y, isVendorBankAccountError: b, onMissingAchInstructions: x, poweredByBankName: S, isOpen: C, onOpenChange: w, labels: T }) {
|
|
47
|
+
let E = d(() => te(T), [T]), D = ne ?? E.missingVendorName, [O, k] = f(!1), A = C ?? O, j = (e) => {
|
|
48
|
+
C === void 0 && k(e), w?.(e);
|
|
49
|
+
}, [M, N] = f("schedule"), [P, F] = f({}), [ie, I] = f(), L = A && M === "schedule", R = A && (M === "review" || M === "result"), [z, B] = f(() => o()), [V, H] = f(), U = r({ enabled: L || R }), W = ee(), G = i(), K = d(() => u(U.data?.data ?? [], E), [U.data?.data, E]), q = K.find((e) => e.id === V), J = z ? c(z) : !1, ae = o(), oe = l({
|
|
50
|
+
selectedAccount: q,
|
|
51
|
+
amountDueMinorUnits: h,
|
|
52
|
+
isToday: J,
|
|
53
|
+
labels: E
|
|
54
|
+
}), Y = n(h / 100, { currencyCode: g }), se = z ? t(a(z)) : void 0, X = {
|
|
55
|
+
label: E.sourceAccount,
|
|
56
|
+
value: q?.primaryLabel ?? ""
|
|
57
|
+
}, Z = {
|
|
58
|
+
label: E.paymentDate,
|
|
59
|
+
value: se ?? ""
|
|
60
|
+
}, ce = _ ? E.dueDateSuffix(t(_)) : void 0, Q = () => m({
|
|
61
|
+
selectedDate: z,
|
|
62
|
+
selectedAccount: q,
|
|
63
|
+
amountDueMinorUnits: h,
|
|
64
|
+
labels: E
|
|
65
|
+
}), le = () => {
|
|
66
|
+
y ? e.error(E.checkingPaymentInstructionsError) : b ? e.error(E.paymentInstructionsUnavailableError) : p(v) ? (N("schedule"), F({}), I(void 0), j(!0)) : x ? x() : e.error(E.missingPaymentInstructionsError);
|
|
69
67
|
}, $ = () => {
|
|
70
|
-
|
|
68
|
+
j(!1);
|
|
71
69
|
};
|
|
72
70
|
return {
|
|
73
|
-
open:
|
|
71
|
+
open: le,
|
|
74
72
|
dialogProps: {
|
|
75
|
-
open:
|
|
73
|
+
open: L,
|
|
76
74
|
onOpenChange: (e) => {
|
|
77
|
-
e &&
|
|
75
|
+
e && N("schedule"), j(e);
|
|
76
|
+
},
|
|
77
|
+
amountDueLabel: E.amountDue,
|
|
78
|
+
amountDue: Y,
|
|
79
|
+
dueDateSuffix: ce,
|
|
80
|
+
paymentAmountLabel: E.paymentAmount,
|
|
81
|
+
paymentAmount: Y,
|
|
82
|
+
selectedDate: z,
|
|
83
|
+
minDate: ae,
|
|
84
|
+
isToday: J,
|
|
85
|
+
selectedAccountId: V,
|
|
86
|
+
accounts: K,
|
|
87
|
+
poweredByBankName: S,
|
|
88
|
+
funds: oe,
|
|
89
|
+
errors: P,
|
|
90
|
+
isAccountsLoading: U.isLoading,
|
|
91
|
+
isAccountsError: U.isError,
|
|
92
|
+
isSubmitting: W.isPending,
|
|
93
|
+
onDateChange: (e) => {
|
|
94
|
+
B(e), F(({ sourceAccount: e }) => e === E.selectAccountError ? { sourceAccount: e } : {});
|
|
95
|
+
},
|
|
96
|
+
onAccountChange: (e) => {
|
|
97
|
+
H(e), F(({ paymentDate: e }) => ({ paymentDate: e }));
|
|
78
98
|
},
|
|
79
|
-
amountDueLabel: O.amountDue,
|
|
80
|
-
amountDue: X,
|
|
81
|
-
dueDateSuffix: re,
|
|
82
|
-
paymentAmountLabel: O.paymentAmount,
|
|
83
|
-
paymentAmount: X,
|
|
84
|
-
selectedDate: R,
|
|
85
|
-
selectedDateLabel: Z,
|
|
86
|
-
calendarDisabled: J,
|
|
87
|
-
isToday: q,
|
|
88
|
-
selectedAccountId: B,
|
|
89
|
-
accounts: G,
|
|
90
|
-
poweredByBankName: w,
|
|
91
|
-
funds: Y,
|
|
92
|
-
isAccountsLoading: H.isLoading,
|
|
93
|
-
isAccountsError: H.isError,
|
|
94
|
-
isSubmitting: U.isPending,
|
|
95
|
-
onDateChange: z,
|
|
96
|
-
onAccountChange: V,
|
|
97
99
|
onReview: () => {
|
|
98
|
-
let
|
|
99
|
-
|
|
100
|
+
let e = Q();
|
|
101
|
+
e.ok ? (F({}), I(void 0), N("review")) : F(e.errors);
|
|
100
102
|
},
|
|
101
103
|
onCancel: $,
|
|
102
|
-
labels:
|
|
104
|
+
labels: E.scheduleDialog
|
|
103
105
|
},
|
|
104
106
|
reviewProps: {
|
|
105
|
-
open:
|
|
107
|
+
open: R,
|
|
106
108
|
onOpenChange: (e) => {
|
|
107
|
-
e ||
|
|
109
|
+
e || j(!1);
|
|
108
110
|
},
|
|
109
|
-
amountLabel:
|
|
110
|
-
amount:
|
|
111
|
-
rows: [
|
|
112
|
-
label: O.sourceAccount,
|
|
113
|
-
value: K?.primaryLabel ?? ""
|
|
114
|
-
}, {
|
|
115
|
-
label: O.paymentDate,
|
|
116
|
-
value: Z ?? ""
|
|
117
|
-
}],
|
|
111
|
+
amountLabel: E.paymentAmount,
|
|
112
|
+
amount: Y,
|
|
113
|
+
rows: [X, Z],
|
|
118
114
|
payTo: {
|
|
119
|
-
name:
|
|
120
|
-
email:
|
|
121
|
-
methodLabel:
|
|
122
|
-
fields:
|
|
115
|
+
name: D,
|
|
116
|
+
email: re,
|
|
117
|
+
methodLabel: E.achMethod,
|
|
118
|
+
fields: p(v) ? [
|
|
123
119
|
{
|
|
124
|
-
label:
|
|
125
|
-
value:
|
|
120
|
+
label: E.routingNumber,
|
|
121
|
+
value: v.routing_number
|
|
126
122
|
},
|
|
127
123
|
{
|
|
128
|
-
label:
|
|
129
|
-
|
|
130
|
-
maskedValue: a(S.account_number)
|
|
124
|
+
label: E.accountNumber,
|
|
125
|
+
accountNumber: v.account_number
|
|
131
126
|
},
|
|
132
127
|
{
|
|
133
|
-
label:
|
|
134
|
-
value:
|
|
128
|
+
label: E.accountHolder,
|
|
129
|
+
value: v.account_holder_name
|
|
135
130
|
}
|
|
136
131
|
] : []
|
|
137
132
|
},
|
|
138
|
-
isSubmitting:
|
|
133
|
+
isSubmitting: W.isPending,
|
|
134
|
+
submitError: ie,
|
|
139
135
|
onBack: () => {
|
|
140
|
-
|
|
136
|
+
N("schedule");
|
|
141
137
|
},
|
|
142
138
|
onCancel: $,
|
|
143
139
|
onSubmit: async () => {
|
|
144
|
-
let
|
|
145
|
-
if (!
|
|
146
|
-
else
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
140
|
+
let e = Q();
|
|
141
|
+
if (!e.ok) F(e.errors), N("schedule");
|
|
142
|
+
else {
|
|
143
|
+
I(void 0);
|
|
144
|
+
try {
|
|
145
|
+
await W.mutateAsync({
|
|
146
|
+
payableId: s,
|
|
147
|
+
paymentDate: a(e.date),
|
|
148
|
+
sourceBankAccountId: e.account.id
|
|
149
|
+
}), N("result");
|
|
150
|
+
} catch (e) {
|
|
151
|
+
e instanceof Error && G(e), I(E.submitError);
|
|
152
|
+
}
|
|
154
153
|
}
|
|
155
154
|
},
|
|
156
|
-
|
|
155
|
+
result: M === "result" ? {
|
|
156
|
+
title: E.scheduledTitle,
|
|
157
|
+
details: [
|
|
158
|
+
{
|
|
159
|
+
label: E.paymentAmount,
|
|
160
|
+
value: Y
|
|
161
|
+
},
|
|
162
|
+
Z,
|
|
163
|
+
X,
|
|
164
|
+
{
|
|
165
|
+
label: E.payTo,
|
|
166
|
+
value: D
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
} : void 0,
|
|
170
|
+
onDone: $,
|
|
171
|
+
labels: E.reviewDialog
|
|
157
172
|
}
|
|
158
173
|
};
|
|
159
174
|
}
|
|
160
|
-
export {
|
|
175
|
+
export { h as usePayBillFlow };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js
CHANGED
|
@@ -9,8 +9,8 @@ import { resolveVendor as n } from "../../../util/dist/lib/resolveVendor.js";
|
|
|
9
9
|
import "../../../util/dist/index.js";
|
|
10
10
|
import { usePayableAchInstructions as r } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
11
11
|
import "../../../../shared/counterpart-management/feature/dist/index.js";
|
|
12
|
-
import { ReviewTransactionDialog as i } from "../../ui/dist/
|
|
13
|
-
import { SchedulePaymentDialog as a } from "../../ui/dist/
|
|
12
|
+
import { ReviewTransactionDialog as i } from "../../ui/dist/index10.js";
|
|
13
|
+
import { SchedulePaymentDialog as a } from "../../ui/dist/index14.js";
|
|
14
14
|
import "../../ui/dist/index.js";
|
|
15
15
|
import { canReadCounterpartBankAccounts as o } from "./index6.js";
|
|
16
16
|
import { payBillFlowTestIds as s } from "./index7.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js
CHANGED
|
@@ -7,7 +7,7 @@ import { WidgetProvider as t } from "../../../../shared/feature/dist/lib/WidgetP
|
|
|
7
7
|
import "../../../../shared/feature/dist/index.js";
|
|
8
8
|
import { resolveAmountDueMinorUnits as n } from "../../../util/dist/lib/resolveAmountDue.js";
|
|
9
9
|
import "../../../util/dist/index.js";
|
|
10
|
-
import { MarkAsPaidDialog as r } from "../../ui/dist/
|
|
10
|
+
import { MarkAsPaidDialog as r } from "../../ui/dist/index7.js";
|
|
11
11
|
import "../../ui/dist/index.js";
|
|
12
12
|
import { useMarkAsPaidFlow as i } from "./index4.js";
|
|
13
13
|
import "./index5.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { MARK_AS_PAID_DIALOG_LABELS_EN as e, mergeMarkAsPaidDialogLabels as t } from "../../ui/dist/
|
|
1
|
+
import { MARK_AS_PAID_DIALOG_LABELS_EN as e, mergeMarkAsPaidDialogLabels as t } from "../../ui/dist/index6.js";
|
|
2
2
|
import "../../ui/dist/index.js";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js
|
|
4
4
|
var n = {
|
|
5
5
|
dueDateSuffix: (e) => `by ${e}`,
|
|
6
6
|
paidToast: "Bill marked as paid",
|
|
7
7
|
submitError: "Couldn't mark this bill as paid. Try again.",
|
|
8
|
+
paymentDateRequired: "Choose a payment date.",
|
|
8
9
|
dialog: e
|
|
9
10
|
};
|
|
10
11
|
function r(e) {
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js
CHANGED
|
@@ -16,8 +16,8 @@ import { useCallback as c, useEffect as l, useState as u } from "react";
|
|
|
16
16
|
function d({ payableId: d, amountDueMinorUnits: f, amountToPayMinorUnits: p, currencyCode: m, dueDate: h, hasScheduledPayment: g, isOpen: _, onOpenChange: v, testId: y, labels: b }) {
|
|
17
17
|
let x = r(b), S = s(), [C, w] = u(!1), T = _ !== void 0, E = _ ?? C, D = c((e) => {
|
|
18
18
|
T || w(e), v?.(e);
|
|
19
|
-
}, [T, v]), [O, k] = u(void 0), [A, j] = u(""), M = E && !g,
|
|
20
|
-
D(!1), k(void 0), j("");
|
|
19
|
+
}, [T, v]), [O, k] = u(void 0), [A, j] = u(""), [M, N] = u(!1), P = E && !g, F = n(f / 100, { currencyCode: m }), I = n((p ?? f) / 100, { currencyCode: m }), L = h ? x.dueDateSuffix(t(h)) : void 0, R = () => {
|
|
20
|
+
D(!1), k(void 0), j(""), N(!1);
|
|
21
21
|
};
|
|
22
22
|
return l(() => {
|
|
23
23
|
g && (E && D(!1), k(void 0), j(""));
|
|
@@ -31,19 +31,19 @@ function d({ payableId: d, amountDueMinorUnits: f, amountToPayMinorUnits: p, cur
|
|
|
31
31
|
},
|
|
32
32
|
isPending: S.isPending,
|
|
33
33
|
dialogProps: {
|
|
34
|
-
open:
|
|
35
|
-
amountDue:
|
|
36
|
-
dueDateSuffix:
|
|
37
|
-
paymentAmount:
|
|
34
|
+
open: P,
|
|
35
|
+
amountDue: F,
|
|
36
|
+
dueDateSuffix: L,
|
|
37
|
+
paymentAmount: I,
|
|
38
38
|
selectedDate: O,
|
|
39
|
-
selectedDateLabel: F,
|
|
40
39
|
isToday: O ? o(O) : !1,
|
|
40
|
+
paymentDateError: M && !O ? x.paymentDateRequired : void 0,
|
|
41
41
|
comment: A,
|
|
42
42
|
isSubmitting: S.isPending,
|
|
43
43
|
onDateChange: k,
|
|
44
44
|
onCommentChange: j,
|
|
45
45
|
onConfirm: () => {
|
|
46
|
-
d
|
|
46
|
+
!d || S.isPending || g || (O ? S.mutate({
|
|
47
47
|
path: { payable_id: d },
|
|
48
48
|
body: {
|
|
49
49
|
paid_at: `${i(O)}T12:00:00.000Z`,
|
|
@@ -52,15 +52,15 @@ function d({ payableId: d, amountDueMinorUnits: f, amountToPayMinorUnits: p, cur
|
|
|
52
52
|
}
|
|
53
53
|
}, {
|
|
54
54
|
onSuccess: () => {
|
|
55
|
-
e.success(x.paidToast),
|
|
55
|
+
e.success(x.paidToast), R();
|
|
56
56
|
},
|
|
57
57
|
onError: () => {
|
|
58
58
|
e.error(x.submitError);
|
|
59
59
|
}
|
|
60
|
-
});
|
|
60
|
+
}) : N(!0));
|
|
61
61
|
},
|
|
62
62
|
onCancel: () => {
|
|
63
|
-
S.isPending ||
|
|
63
|
+
S.isPending || R();
|
|
64
64
|
},
|
|
65
65
|
testId: y ? `${y}-mark-as-paid-dialog` : void 0,
|
|
66
66
|
confirmTestId: y ? `${y}-mark-as-paid-confirm` : void 0,
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js
CHANGED
|
@@ -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, mergeSchedulePaymentDialogLabels as n } from "../../ui/dist/
|
|
1
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as e } from "../../ui/dist/index9.js";
|
|
2
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t, mergeSchedulePaymentDialogLabels as n } from "../../ui/dist/index12.js";
|
|
3
3
|
import "../../ui/dist/index.js";
|
|
4
4
|
import { SOURCE_ACCOUNT_LABELS_EN as r } from "./index8.js";
|
|
5
5
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js
|
|
@@ -13,7 +13,8 @@ var i = {
|
|
|
13
13
|
routingNumber: "Routing number",
|
|
14
14
|
accountNumber: "Account number",
|
|
15
15
|
achMethod: "Pay by ACH bank transfer",
|
|
16
|
-
|
|
16
|
+
scheduledTitle: "Payment scheduled",
|
|
17
|
+
payTo: "Pay to",
|
|
17
18
|
submitError: "Couldn't schedule this payment. Try again.",
|
|
18
19
|
selectAccountError: "Select a source account.",
|
|
19
20
|
selectDateError: "Select a payment date.",
|
|
@@ -33,7 +34,11 @@ function a(e) {
|
|
|
33
34
|
scheduleDialog: n(e?.scheduleDialog),
|
|
34
35
|
reviewDialog: {
|
|
35
36
|
...i.reviewDialog,
|
|
36
|
-
...e?.reviewDialog
|
|
37
|
+
...e?.reviewDialog,
|
|
38
|
+
maskedAccountNumber: {
|
|
39
|
+
...i.reviewDialog.maskedAccountNumber,
|
|
40
|
+
...e?.reviewDialog?.maskedAccountNumber
|
|
41
|
+
}
|
|
37
42
|
}
|
|
38
43
|
};
|
|
39
44
|
}
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MARK_AS_PAID_DIALOG_LABELS_EN as e, mergeMarkAsPaidDialogLabels as t } from "./
|
|
2
|
-
import { MarkAsPaidDialog as n } from "./
|
|
3
|
-
import "./
|
|
4
|
-
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as r } from "./
|
|
5
|
-
import { ReviewTransactionDialog as i } from "./
|
|
6
|
-
import "./index7.js";
|
|
7
|
-
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as a, mergeSchedulePaymentDialogLabels as o } from "./index8.js";
|
|
8
|
-
import { SchedulePaymentDialog as s } from "./index10.js";
|
|
1
|
+
import { MARK_AS_PAID_DIALOG_LABELS_EN as e, mergeMarkAsPaidDialogLabels as t } from "./index6.js";
|
|
2
|
+
import { MarkAsPaidDialog as n } from "./index7.js";
|
|
3
|
+
import "./index8.js";
|
|
4
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as r } from "./index9.js";
|
|
5
|
+
import { ReviewTransactionDialog as i } from "./index10.js";
|
|
9
6
|
import "./index11.js";
|
|
7
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as a, mergeSchedulePaymentDialogLabels as o } from "./index12.js";
|
|
8
|
+
import { SchedulePaymentDialog as s } from "./index14.js";
|
|
9
|
+
import "./index15.js";
|
|
10
10
|
export { e as MARK_AS_PAID_DIALOG_LABELS_EN, n as MarkAsPaidDialog, r as REVIEW_TRANSACTION_DIALOG_LABELS_EN, i as ReviewTransactionDialog, a as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, s as SchedulePaymentDialog, t as mergeMarkAsPaidDialogLabels, o as mergeSchedulePaymentDialogLabels };
|