@tesouro/embedded-components-react 0.4.12 → 0.4.14
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.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/monite-sdk.d.ts +204 -468
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +37 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +98 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +81 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +7 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +16 -61
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +26 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +63 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +66 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +6 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +3 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +28 -166
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +40 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +173 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +45 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +45 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +55 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +8 -66
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +7 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +58 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +134 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +14 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +39 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +78 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +78 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +24 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +47 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +119 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +33 -168
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +170 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +23 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +199 -203
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +198 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +105 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +23 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +47 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +27 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +198 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +30 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +240 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +19 -342
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +364 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +4 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +32 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +186 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +56 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +9 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +3 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +125 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +5 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +27 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +83 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +47 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +239 -101
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +107 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +209 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +64 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +12 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +161 -154
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +47 -337
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +20 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +327 -107
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +13 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +113 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +95 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +9 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -160
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +178 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +37 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +11 -282
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +87 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +294 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +9 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +5 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +2 -201
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +187 -333
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +335 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +87 -121
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -89
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +127 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +85 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +26 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +4 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +30 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +9 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +85 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +123 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -170
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +158 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +100 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +0 -28
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return e?.amount_due ?? e?.total_amount ?? void 0;
|
|
4
|
-
}
|
|
5
|
-
//#endregion
|
|
6
|
-
export { e as resolveAmountDueMinorUnits };
|
|
1
|
+
import "./index14.js";
|
|
2
|
+
import "./index16.js";
|
|
@@ -1,7 +1,68 @@
|
|
|
1
|
+
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
2
|
+
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
3
|
+
import "../../../shared/data-access/dist/index.js";
|
|
4
|
+
import { BanIcon as n, CalendarXIcon as r, RotateCcwIcon as i, ThumbsDownIcon as a, ThumbsUpIcon as o } from "lucide-react";
|
|
1
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
+
function s(n) {
|
|
7
|
+
return e(n, [t.CounterpartReadOrg]);
|
|
8
|
+
}
|
|
9
|
+
function c({ status: c, scopes: l, canDecideApprovalRequest: u, hasScheduledPayment: d, scheduledPaymentIntentId: f, isPolicyApprover: p, hasWaitingRequest: m, arePendingApproversUnknown: h, labels: g }) {
|
|
10
|
+
let _ = e(l, [t.PayablePayOrg]), v = e(l, [t.BankAccountReadOrg]), y = s(l), b = e(l, [t.PaymentRailAch]), x = e(l, [t.PayableWriteOrg]), S = _, C = e(l, [t.PayableApproveOrg]), w = [];
|
|
11
|
+
c === "approve_in_progress" && u && (w.push({
|
|
12
|
+
id: "approve",
|
|
13
|
+
label: g.approve,
|
|
14
|
+
variant: "default",
|
|
15
|
+
surface: "row"
|
|
16
|
+
}), w.push({
|
|
17
|
+
id: "reject",
|
|
18
|
+
label: g.reject,
|
|
19
|
+
variant: "ghost",
|
|
20
|
+
surface: "row"
|
|
21
|
+
})), c === "approve_in_progress" && m && C && !p && !h && (w.push({
|
|
22
|
+
id: "forceApprove",
|
|
23
|
+
label: g.forceApprove,
|
|
24
|
+
variant: "ghost",
|
|
25
|
+
surface: "menu",
|
|
26
|
+
icon: o,
|
|
27
|
+
sectionHeading: g.policyOverridesHeading
|
|
28
|
+
}), w.push({
|
|
29
|
+
id: "forceReject",
|
|
30
|
+
label: g.forceReject,
|
|
31
|
+
variant: "ghost",
|
|
32
|
+
surface: "menu",
|
|
33
|
+
icon: a,
|
|
34
|
+
sectionHeading: g.policyOverridesHeading
|
|
35
|
+
}));
|
|
36
|
+
let T = c === "waiting_to_be_paid" && _ && !d, E = c === "waiting_to_be_paid" && _ && v && y && b && !d;
|
|
37
|
+
return T && w.push({
|
|
38
|
+
id: "markAsPaid",
|
|
39
|
+
label: g.markAsPaid,
|
|
40
|
+
variant: "outline",
|
|
41
|
+
surface: "row"
|
|
42
|
+
}), E && w.push({
|
|
43
|
+
id: "payBill",
|
|
44
|
+
label: g.payBill,
|
|
45
|
+
variant: "default",
|
|
46
|
+
surface: "row"
|
|
47
|
+
}), c === "new" && x && w.push({
|
|
48
|
+
id: "cancel",
|
|
49
|
+
label: g.cancel,
|
|
50
|
+
variant: "ghost",
|
|
51
|
+
surface: "menu",
|
|
52
|
+
icon: n
|
|
53
|
+
}), (c === "rejected" || c === "waiting_to_be_paid" && !d) && x && w.push({
|
|
54
|
+
id: "reopen",
|
|
55
|
+
label: g.reopen,
|
|
56
|
+
variant: "ghost",
|
|
57
|
+
surface: "menu",
|
|
58
|
+
icon: i
|
|
59
|
+
}), c === "waiting_to_be_paid" && d && f && S && w.push({
|
|
60
|
+
id: "cancelScheduledPayment",
|
|
61
|
+
label: g.cancelScheduledPayment,
|
|
62
|
+
variant: "ghost",
|
|
63
|
+
surface: "menu",
|
|
64
|
+
icon: r
|
|
65
|
+
}), w;
|
|
66
|
+
}
|
|
6
67
|
//#endregion
|
|
7
|
-
export {
|
|
68
|
+
export { s as canReadCounterpartBankAccounts, c as getBillDetailActions };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js
|
|
2
2
|
function e(e) {
|
|
3
|
-
return e
|
|
3
|
+
return e?.amount_due ?? e?.total_amount ?? void 0;
|
|
4
4
|
}
|
|
5
5
|
//#endregion
|
|
6
|
-
export { e as
|
|
6
|
+
export { e as resolveAmountDueMinorUnits };
|
|
@@ -1,26 +1,8 @@
|
|
|
1
|
+
import { formatMoneyExact as e } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
2
|
+
import "../../data-access/dist/index.js";
|
|
1
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
deletedToast: "Duplicate removed",
|
|
19
|
-
cancelledToast: "Duplicate cancelled",
|
|
20
|
-
confirmedToast: "Duplicate confirmed",
|
|
21
|
-
dismissedToast: "Marked as “not a duplicate”.",
|
|
22
|
-
removedToast: "Duplicate removed",
|
|
23
|
-
verdictFailedToast: "Couldn't update this duplicate. Try again."
|
|
24
|
-
};
|
|
4
|
+
function t(t, n) {
|
|
5
|
+
if (typeof t == "number") return e(t / 100, { currencyCode: n ?? "USD" });
|
|
6
|
+
}
|
|
25
7
|
//#endregion
|
|
26
|
-
export {
|
|
8
|
+
export { t as formatBillMoney };
|
|
@@ -1,35 +1,7 @@
|
|
|
1
|
-
import { coerceAmountValueToMinorUnits as e } from "../../../shared/util/dist/lib/coerceAmountValueToMinorUnits.js";
|
|
2
|
-
import { formatMoneyExact as t } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
3
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
futureInsufficientFunds: "Not enough funds right now. Add funds before the payment date.",
|
|
8
|
-
todayInsufficientFunds: "Not enough funds to pay today. Choose a different account or a later date."
|
|
2
|
+
var e = {
|
|
3
|
+
scheduleDialog: "pay-bill-schedule-dialog",
|
|
4
|
+
reviewDialog: "pay-bill-review-dialog"
|
|
9
5
|
};
|
|
10
|
-
function r(e) {
|
|
11
|
-
return e.slice(-4);
|
|
12
|
-
}
|
|
13
|
-
function i(i, a = n) {
|
|
14
|
-
return i.filter((e) => e.status === "ACTIVE").map((n) => {
|
|
15
|
-
let i = e(n.balance.value), o = n.balance.currencyCode;
|
|
16
|
-
return {
|
|
17
|
-
id: n.id,
|
|
18
|
-
primaryLabel: `${n.nickname || a.unnamedSourceAccount} - ${r(n.accountNumber)}`,
|
|
19
|
-
secondaryLabel: a.availableBalancePrefix(t(i / 100, { currencyCode: o })),
|
|
20
|
-
balanceMinorUnits: i
|
|
21
|
-
};
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function a({ selectedAccount: e, amountDueMinorUnits: t, isToday: r, labels: i = n }) {
|
|
25
|
-
let a = e?.balanceMinorUnits;
|
|
26
|
-
return a === void 0 ? { state: "warning" } : a >= t ? { state: "sufficient" } : r ? {
|
|
27
|
-
state: "error",
|
|
28
|
-
message: i.todayInsufficientFunds
|
|
29
|
-
} : {
|
|
30
|
-
state: "warning",
|
|
31
|
-
message: i.futureInsufficientFunds
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
6
|
//#endregion
|
|
35
|
-
export {
|
|
7
|
+
export { e as payBillFlowTestIds };
|
|
@@ -1,44 +1,6 @@
|
|
|
1
|
-
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as e } from "../../ui/dist/index84.js";
|
|
2
|
-
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t } from "../../ui/dist/index90.js";
|
|
3
|
-
import "../../ui/dist/index.js";
|
|
4
|
-
import { SOURCE_ACCOUNT_LABELS_EN as n } from "./index20.js";
|
|
5
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
paymentAmount: "Payment amount",
|
|
9
|
-
dueDateSuffix: (e) => `by ${e}`,
|
|
10
|
-
paymentDate: "Payment date",
|
|
11
|
-
sourceAccount: "Pay from",
|
|
12
|
-
accountHolder: "Account holder name",
|
|
13
|
-
routingNumber: "Routing number",
|
|
14
|
-
accountNumber: "Account number",
|
|
15
|
-
achMethod: "Pay by ACH bank transfer",
|
|
16
|
-
scheduledToast: "Payment scheduled",
|
|
17
|
-
submitError: "Couldn't schedule this payment. Try again.",
|
|
18
|
-
selectAccountError: "Select a source account.",
|
|
19
|
-
selectDateError: "Select a payment date.",
|
|
20
|
-
staleDateError: "That date has passed. Choose a new payment date.",
|
|
21
|
-
missingPaymentInstructionsError: "This vendor does not have ACH payment instructions on file.",
|
|
22
|
-
checkingPaymentInstructionsError: "Still checking this vendor's payment instructions. Try again in a moment.",
|
|
23
|
-
paymentInstructionsUnavailableError: "Couldn't check this vendor's payment instructions. Try again.",
|
|
24
|
-
missingVendorName: "Not provided",
|
|
25
|
-
...n,
|
|
26
|
-
scheduleDialog: t,
|
|
27
|
-
reviewDialog: e
|
|
28
|
-
};
|
|
29
|
-
function i(e) {
|
|
30
|
-
return {
|
|
31
|
-
...r,
|
|
32
|
-
...e,
|
|
33
|
-
scheduleDialog: {
|
|
34
|
-
...r.scheduleDialog,
|
|
35
|
-
...e?.scheduleDialog
|
|
36
|
-
},
|
|
37
|
-
reviewDialog: {
|
|
38
|
-
...r.reviewDialog,
|
|
39
|
-
...e?.reviewDialog
|
|
40
|
-
}
|
|
41
|
-
};
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e ? `••••${e.slice(-4)}` : void 0;
|
|
42
4
|
}
|
|
43
5
|
//#endregion
|
|
44
|
-
export {
|
|
6
|
+
export { e as maskAccountNumber };
|
|
@@ -1,173 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import { useAllBankAccountsQuery as t } from "../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
|
|
7
|
-
import "../../../shared/data-access/dist/index.js";
|
|
8
|
-
import "../../../shared/ui/dist/index.js";
|
|
9
|
-
import { useAnalyticsCaptureException as n } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
10
|
-
import { formatCalendarDate as r } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
11
|
-
import { formatMoneyExact as i } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
12
|
-
import { extractApiErrorMessage as a } from "../../../shared/util/dist/lib/apiErrors.js";
|
|
13
|
-
import "../../../shared/feature/dist/index.js";
|
|
14
|
-
import { useSchedulePaymentMutation as o } from "../../data-access/dist/index12.js";
|
|
15
|
-
import "../../data-access/dist/index.js";
|
|
16
|
-
import { dateToCalendarKey as s, getDefaultPaymentDate as c, isPastEasternDate as l, isTodayInEastern as u } from "./index13.js";
|
|
17
|
-
import { maskAccountNumber as d } from "./index19.js";
|
|
18
|
-
import { deriveSourceAccountFunds as f, mapSourceAccountOptions as p } from "./index20.js";
|
|
19
|
-
import { mergePayBillFlowLabels as m } from "./index21.js";
|
|
20
|
-
import { useMemo as h, useState as g } from "react";
|
|
1
|
+
import { coerceAmountValueToMinorUnits as e } from "../../../shared/util/dist/lib/coerceAmountValueToMinorUnits.js";
|
|
2
|
+
import { formatMoneyExact as t } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
21
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
var n = {
|
|
5
|
+
unnamedSourceAccount: "Bank account",
|
|
6
|
+
availableBalancePrefix: (e) => `Available balance: ${e}`,
|
|
7
|
+
futureInsufficientFunds: "Not enough funds right now. Add funds before the payment date.",
|
|
8
|
+
todayInsufficientFunds: "Not enough funds to pay today. Choose a different account or a later date."
|
|
9
|
+
};
|
|
10
|
+
function r(e) {
|
|
11
|
+
return e.slice(-4);
|
|
24
12
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
if (!t) return {
|
|
35
|
-
ok: !1,
|
|
36
|
-
error: r.selectAccountError
|
|
37
|
-
};
|
|
38
|
-
let i = f({
|
|
39
|
-
selectedAccount: t,
|
|
40
|
-
amountDueMinorUnits: n,
|
|
41
|
-
isToday: u(e),
|
|
42
|
-
labels: r
|
|
13
|
+
function i(i, a = n) {
|
|
14
|
+
return i.filter((e) => e.status === "ACTIVE").map((n) => {
|
|
15
|
+
let i = e(n.balance.value), o = n.balance.currencyCode;
|
|
16
|
+
return {
|
|
17
|
+
id: n.id,
|
|
18
|
+
primaryLabel: `${n.nickname || a.unnamedSourceAccount} - ${r(n.accountNumber)}`,
|
|
19
|
+
secondaryLabel: a.availableBalancePrefix(t(i / 100, { currencyCode: o })),
|
|
20
|
+
balanceMinorUnits: i
|
|
21
|
+
};
|
|
43
22
|
});
|
|
44
|
-
return i.state === "error" ? {
|
|
45
|
-
ok: !1,
|
|
46
|
-
error: i.message ?? r.todayInsufficientFunds
|
|
47
|
-
} : {
|
|
48
|
-
ok: !0,
|
|
49
|
-
date: e,
|
|
50
|
-
account: t
|
|
51
|
-
};
|
|
52
23
|
}
|
|
53
|
-
function
|
|
54
|
-
let
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
selectedAccount: W,
|
|
62
|
-
amountDueMinorUnits: y,
|
|
63
|
-
labels: A
|
|
64
|
-
}), Q = () => {
|
|
65
|
-
if (T) {
|
|
66
|
-
e.error(A.checkingPaymentInstructionsError);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
if (E) {
|
|
70
|
-
e.error(A.paymentInstructionsUnavailableError);
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
if (!_(w)) {
|
|
74
|
-
D ? D() : e.error(A.missingPaymentInstructionsError);
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
N(!0);
|
|
78
|
-
}, $ = () => {
|
|
79
|
-
F(!1), N(!1);
|
|
80
|
-
};
|
|
81
|
-
return {
|
|
82
|
-
open: Q,
|
|
83
|
-
dialogProps: {
|
|
84
|
-
open: M,
|
|
85
|
-
onOpenChange: N,
|
|
86
|
-
amountDueLabel: A.amountDue,
|
|
87
|
-
amountDue: J,
|
|
88
|
-
dueDateSuffix: X,
|
|
89
|
-
paymentAmountLabel: A.paymentAmount,
|
|
90
|
-
paymentAmount: J,
|
|
91
|
-
selectedDate: I,
|
|
92
|
-
selectedDateLabel: Y,
|
|
93
|
-
calendarDisabled: K,
|
|
94
|
-
isToday: G,
|
|
95
|
-
selectedAccountId: R,
|
|
96
|
-
accounts: U,
|
|
97
|
-
poweredByBankName: O,
|
|
98
|
-
funds: q,
|
|
99
|
-
isAccountsLoading: B.isLoading,
|
|
100
|
-
isAccountsError: B.isError,
|
|
101
|
-
isSubmitting: V.isPending,
|
|
102
|
-
onDateChange: L,
|
|
103
|
-
onAccountChange: z,
|
|
104
|
-
onReview: () => {
|
|
105
|
-
let t = Z();
|
|
106
|
-
if (!t.ok) {
|
|
107
|
-
e.error(t.error);
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
N(!1), F(!0);
|
|
111
|
-
},
|
|
112
|
-
onCancel: $,
|
|
113
|
-
labels: A.scheduleDialog
|
|
114
|
-
},
|
|
115
|
-
reviewProps: {
|
|
116
|
-
open: P,
|
|
117
|
-
onOpenChange: F,
|
|
118
|
-
amountLabel: A.paymentAmount,
|
|
119
|
-
amount: J,
|
|
120
|
-
rows: [{
|
|
121
|
-
label: A.sourceAccount,
|
|
122
|
-
value: W?.primaryLabel ?? ""
|
|
123
|
-
}, {
|
|
124
|
-
label: A.paymentDate,
|
|
125
|
-
value: Y ?? ""
|
|
126
|
-
}],
|
|
127
|
-
payTo: {
|
|
128
|
-
name: j,
|
|
129
|
-
email: C,
|
|
130
|
-
methodLabel: A.achMethod,
|
|
131
|
-
fields: _(w) ? [
|
|
132
|
-
{
|
|
133
|
-
label: A.routingNumber,
|
|
134
|
-
value: w.routing_number
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
label: A.accountNumber,
|
|
138
|
-
value: w.account_number,
|
|
139
|
-
maskedValue: d(w.account_number)
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
label: A.accountHolder,
|
|
143
|
-
value: w.account_holder_name
|
|
144
|
-
}
|
|
145
|
-
] : []
|
|
146
|
-
},
|
|
147
|
-
isSubmitting: V.isPending,
|
|
148
|
-
onBack: () => {
|
|
149
|
-
F(!1), N(!0);
|
|
150
|
-
},
|
|
151
|
-
onCancel: $,
|
|
152
|
-
onSubmit: async () => {
|
|
153
|
-
let t = Z();
|
|
154
|
-
if (!t.ok) {
|
|
155
|
-
F(!1), e.error(t.error), N(!0);
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
try {
|
|
159
|
-
await V.mutateAsync({
|
|
160
|
-
payableId: l,
|
|
161
|
-
paymentDate: s(t.date),
|
|
162
|
-
sourceBankAccountId: t.account.id
|
|
163
|
-
}), $(), e.success(A.scheduledToast);
|
|
164
|
-
} catch (t) {
|
|
165
|
-
H(t, { payable_id: l }), e.error(a(t) ?? A.submitError);
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
labels: A.reviewDialog
|
|
169
|
-
}
|
|
24
|
+
function a({ selectedAccount: e, amountDueMinorUnits: t, isToday: r, labels: i = n }) {
|
|
25
|
+
let a = e?.balanceMinorUnits;
|
|
26
|
+
return a === void 0 ? { state: "warning" } : a >= t ? { state: "sufficient" } : r ? {
|
|
27
|
+
state: "error",
|
|
28
|
+
message: i.todayInsufficientFunds
|
|
29
|
+
} : {
|
|
30
|
+
state: "warning",
|
|
31
|
+
message: i.futureInsufficientFunds
|
|
170
32
|
};
|
|
171
33
|
}
|
|
172
34
|
//#endregion
|
|
173
|
-
export {
|
|
35
|
+
export { n as SOURCE_ACCOUNT_LABELS_EN, a as deriveSourceAccountFunds, i as mapSourceAccountOptions };
|
|
@@ -1,48 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { useWidgetConfig as e } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
6
|
-
import "../../../shared/feature/dist/index.js";
|
|
7
|
-
import { resolveVendor as t } from "./index5.js";
|
|
8
|
-
import { ReviewTransactionDialog as n } from "../../ui/dist/index85.js";
|
|
9
|
-
import { SchedulePaymentDialog as r } from "../../ui/dist/index92.js";
|
|
1
|
+
import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as e } from "../../ui/dist/index87.js";
|
|
2
|
+
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as t } from "../../ui/dist/index93.js";
|
|
10
3
|
import "../../ui/dist/index.js";
|
|
11
|
-
import {
|
|
12
|
-
import { resolveAmountDueMinorUnits as a } from "./index17.js";
|
|
13
|
-
import { payBillFlowTestIds as o } from "./index18.js";
|
|
14
|
-
import { usePayBillFlow as s } from "./index22.js";
|
|
15
|
-
import { usePayableAchInstructions as c } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
16
|
-
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
17
|
-
import { useImperativeHandle as l } from "react";
|
|
18
|
-
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
4
|
+
import { SOURCE_ACCOUNT_LABELS_EN as n } from "./index22.js";
|
|
19
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
6
|
+
var r = {
|
|
7
|
+
amountDue: "Amount due",
|
|
8
|
+
paymentAmount: "Payment amount",
|
|
9
|
+
dueDateSuffix: (e) => `by ${e}`,
|
|
10
|
+
paymentDate: "Payment date",
|
|
11
|
+
sourceAccount: "Pay from",
|
|
12
|
+
accountHolder: "Account holder name",
|
|
13
|
+
routingNumber: "Routing number",
|
|
14
|
+
accountNumber: "Account number",
|
|
15
|
+
achMethod: "Pay by ACH bank transfer",
|
|
16
|
+
scheduledToast: "Payment scheduled",
|
|
17
|
+
submitError: "Couldn't schedule this payment. Try again.",
|
|
18
|
+
selectAccountError: "Select a source account.",
|
|
19
|
+
selectDateError: "Select a payment date.",
|
|
20
|
+
staleDateError: "That date has passed. Choose a new payment date.",
|
|
21
|
+
missingPaymentInstructionsError: "This vendor does not have ACH payment instructions on file.",
|
|
22
|
+
checkingPaymentInstructionsError: "Still checking this vendor's payment instructions. Try again in a moment.",
|
|
23
|
+
paymentInstructionsUnavailableError: "Couldn't check this vendor's payment instructions. Try again.",
|
|
24
|
+
missingVendorName: "Not provided",
|
|
25
|
+
...n,
|
|
26
|
+
scheduleDialog: t,
|
|
27
|
+
reviewDialog: e
|
|
28
|
+
};
|
|
29
|
+
function i(e) {
|
|
30
|
+
return {
|
|
31
|
+
...r,
|
|
32
|
+
...e,
|
|
33
|
+
scheduleDialog: {
|
|
34
|
+
...r.scheduleDialog,
|
|
35
|
+
...e?.scheduleDialog
|
|
36
|
+
},
|
|
37
|
+
reviewDialog: {
|
|
38
|
+
...r.reviewDialog,
|
|
39
|
+
...e?.reviewDialog
|
|
40
|
+
}
|
|
41
|
+
};
|
|
46
42
|
}
|
|
47
43
|
//#endregion
|
|
48
|
-
export {
|
|
44
|
+
export { r as PAY_BILL_FLOW_LABELS_EN, i as mergePayBillFlowLabels };
|