@tesouro/embedded-components-react 0.5.139 → 0.5.142
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/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -11
- 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/index37.js +9 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +21 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +8 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +4 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +98 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +78 -135
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +4 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +139 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +44 -186
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +108 -72
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +188 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +71 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -406
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +403 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +13 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +77 -221
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +78 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +212 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +44 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +234 -557
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +581 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +45 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +261 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +3 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +6 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +126 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +124 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +51 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +19 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +28 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +76 -252
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +48 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +249 -142
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +27 -206
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +160 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +217 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +3 -112
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +104 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index92.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +102 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +125 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +29 -177
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +178 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +2 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +106 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +2 -52
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +26 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +28 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +27 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +123 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +2 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -99
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +97 -273
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +79 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +273 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +2 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +47 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +2 -374
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +35 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +369 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +2 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +93 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +49 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +2 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +53 -194
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +195 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +37 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +2 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +19 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +78 -308
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +311 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +33 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -39
- 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 +37 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +37 -199
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +199 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +2 -402
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +413 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +8 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +93 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +118 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +92 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +7 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +32 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +1 -105
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +855 -831
- 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/util/dist/lib/relativeCalendarDay.js +12 -0
- 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/ui/dist/index88.js +0 -125
|
@@ -1,143 +1,86 @@
|
|
|
1
|
+
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
2
|
+
import { derivePayableStatus as t } from "./index7.js";
|
|
3
|
+
import { resolveVendor as n } from "./index8.js";
|
|
4
|
+
import { resolveAmountDueMinorUnits as r } from "./index21.js";
|
|
5
|
+
import { formatBillMoney as i } from "./index2.js";
|
|
6
|
+
import { resolveLineItemAmountMinorUnits as a } from "./index42.js";
|
|
7
|
+
import { resolveLineItemQuantity as o } from "./index43.js";
|
|
8
|
+
import { getPaidAtLabel as s, resolveInvoiceTotalMinorUnits as c } from "./index44.js";
|
|
1
9
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
forceReject: "Reject",
|
|
13
|
-
policyOverridesHeading: "Policy overrides",
|
|
14
|
-
decisionDialog: {
|
|
15
|
-
reject: {
|
|
16
|
-
title: "Reject this bill?",
|
|
17
|
-
description: "The bill goes back as rejected and nobody else is asked to approve it.",
|
|
18
|
-
confirmButton: "Reject bill",
|
|
19
|
-
reason: {
|
|
20
|
-
label: "Reason",
|
|
21
|
-
placeholder: "Tell the submitter what needs to change"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
cancel: {
|
|
25
|
-
title: "Cancel this bill?",
|
|
26
|
-
description: "Cancelling is permanent. The bill can't be reopened, edited, or paid afterwards.",
|
|
27
|
-
confirmButton: "Cancel bill"
|
|
28
|
-
},
|
|
29
|
-
cancelScheduledPayment: {
|
|
30
|
-
title: "Cancel this scheduled payment?",
|
|
31
|
-
description: "The payment will not be sent. The bill stays ready to pay, so you can schedule it again for another date.",
|
|
32
|
-
confirmButton: "Cancel payment"
|
|
33
|
-
},
|
|
34
|
-
forceApprove: {
|
|
35
|
-
title: "Override approval policy?",
|
|
36
|
-
description: "The below people haven't approved this bill yet. Approving now will bypass their required review. This will be recorded in the audit history and can't be undone.",
|
|
37
|
-
confirmButton: "Override and approve",
|
|
38
|
-
noApprovalPolicy: {
|
|
39
|
-
title: "Approve this bill?",
|
|
40
|
-
description: "This bill has no approval policy applied. Approving now will be recorded in the audit history and can't be undone.",
|
|
41
|
-
confirmButton: "Approve bill"
|
|
42
|
-
}
|
|
10
|
+
function l({ payable: l, lineItems: u, glCodeOptions: d, glCodeRosterAvailable: f = !0, history: p, paymentHistory: m, approvalPolicy: h, labels: g, hasScheduledPayment: _, rejection: v, payableAchInstructions: y, payableAchInstructionsReadable: b = !1 }) {
|
|
11
|
+
let x = l.currency, S = t({
|
|
12
|
+
apiStatus: l.status,
|
|
13
|
+
dueDate: l.due_date,
|
|
14
|
+
scheduledPaymentDate: l.scheduled_payment_date,
|
|
15
|
+
hasScheduledPayment: _
|
|
16
|
+
}), C = n(l), w = b ? y : void 0, T = w?.account_number, E = !!(w?.account_holder_name && w.routing_number && w.account_number), D = e(l.issued_at) || g.notProvided, O = e(l.due_date) || g.notProvided, k = new Map(d.map((e) => [e.value, e.label])), A = [
|
|
17
|
+
{
|
|
18
|
+
label: g.subtotalRow,
|
|
19
|
+
minorUnits: l.subtotal
|
|
43
20
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
confirmButton: "Override and reject",
|
|
48
|
-
noApprovalPolicy: {
|
|
49
|
-
title: "Reject this bill?",
|
|
50
|
-
description: "This bill has no approval policy applied. Rejecting now will be recorded in the audit history and can't be undone.",
|
|
51
|
-
confirmButton: "Reject bill"
|
|
52
|
-
}
|
|
21
|
+
{
|
|
22
|
+
label: g.discountRow,
|
|
23
|
+
minorUnits: l.discount
|
|
53
24
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
actionSuccess: {
|
|
58
|
-
approve: "Bill approved.",
|
|
59
|
-
reject: "Bill rejected.",
|
|
60
|
-
markAsPaid: "Bill marked as paid.",
|
|
61
|
-
cancel: "Bill canceled.",
|
|
62
|
-
cancelScheduledPayment: "Scheduled payment canceled.",
|
|
63
|
-
reopen: "Bill reopened.",
|
|
64
|
-
forceApprove: "Bill approved, overriding the approval policy.",
|
|
65
|
-
forceReject: "Bill rejected, overriding the approval policy.",
|
|
66
|
-
forceApproveNoApprovalPolicy: "Bill approved.",
|
|
67
|
-
forceRejectNoApprovalPolicy: "Bill rejected."
|
|
68
|
-
}
|
|
69
|
-
}, t = (e) => `Payment scheduled for ${e}`, n = (e) => `Scheduled - ${e}`, r = (e) => `Awaiting approval from ${new Intl.ListFormat("en", {
|
|
70
|
-
style: "long",
|
|
71
|
-
type: "conjunction"
|
|
72
|
-
}).format(e)}.`, i = "Awaiting approval.", a = [
|
|
73
|
-
"reject",
|
|
74
|
-
"cancel",
|
|
75
|
-
"cancelScheduledPayment",
|
|
76
|
-
"forceApprove",
|
|
77
|
-
"forceReject"
|
|
78
|
-
];
|
|
79
|
-
function o(e, t) {
|
|
80
|
-
let n = e.reason ? {
|
|
81
|
-
...e.reason,
|
|
82
|
-
...t?.reason
|
|
83
|
-
} : void 0, r = e.noApprovalPolicy ? {
|
|
84
|
-
...e.noApprovalPolicy,
|
|
85
|
-
...t?.noApprovalPolicy
|
|
86
|
-
} : void 0, i = {
|
|
87
|
-
...e,
|
|
88
|
-
...t,
|
|
89
|
-
reason: n,
|
|
90
|
-
noApprovalPolicy: r
|
|
91
|
-
};
|
|
92
|
-
return n || delete i.reason, r || delete i.noApprovalPolicy, i;
|
|
93
|
-
}
|
|
94
|
-
function s(e, t) {
|
|
95
|
-
let n = {
|
|
96
|
-
...e,
|
|
97
|
-
...t
|
|
98
|
-
};
|
|
99
|
-
for (let r of a) n[r] = o(e[r], t?.[r]);
|
|
100
|
-
return n;
|
|
101
|
-
}
|
|
102
|
-
function c(t) {
|
|
103
|
-
let n = e;
|
|
104
|
-
return {
|
|
105
|
-
...n,
|
|
106
|
-
...t,
|
|
107
|
-
decisionDialog: s(n.decisionDialog, t?.decisionDialog),
|
|
108
|
-
actionSuccess: {
|
|
109
|
-
...n.actionSuccess,
|
|
110
|
-
...t?.actionSuccess
|
|
25
|
+
{
|
|
26
|
+
label: g.taxRow,
|
|
27
|
+
minorUnits: l.tax_amount
|
|
111
28
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
paymentHistoryMarkedPaidLabel: "Marked as paid",
|
|
123
|
-
paymentHistoryPartiallyPaidExternalLabel: "Partial payment marked manually",
|
|
124
|
-
paymentHistoryPartiallyPaidLabel: "Partial payment",
|
|
125
|
-
paymentHistoryRevertedLabel: "Payment reverted",
|
|
126
|
-
paymentHistoryMethodLabels: {
|
|
127
|
-
ach: "ACH",
|
|
128
|
-
us_ach: "ACH",
|
|
129
|
-
wire: "Wire",
|
|
130
|
-
check: "Check",
|
|
131
|
-
paper_check: "Check",
|
|
132
|
-
bank_account: "Bank transfer",
|
|
133
|
-
card: "Card"
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
function u(e) {
|
|
29
|
+
].map((e) => ({
|
|
30
|
+
label: e.label,
|
|
31
|
+
value: i(e.minorUnits, x)
|
|
32
|
+
})).filter((e) => !!e.value), j = i(c(l), x);
|
|
33
|
+
j && A.push({
|
|
34
|
+
label: g.totalRow,
|
|
35
|
+
value: j,
|
|
36
|
+
emphasis: !0
|
|
37
|
+
});
|
|
38
|
+
let M = s(l);
|
|
137
39
|
return {
|
|
138
|
-
|
|
139
|
-
|
|
40
|
+
amountDue: i(r(l), x) ?? "",
|
|
41
|
+
amountPaid: M ? i(l.amount_paid, x) : void 0,
|
|
42
|
+
paidOnLabel: M ? g.paidOnLabel(M) : void 0,
|
|
43
|
+
invoiceDateLabel: D,
|
|
44
|
+
dueDateLabel: O,
|
|
45
|
+
dueDateTone: S.isOverdue ? "danger" : "default",
|
|
46
|
+
status: S.status,
|
|
47
|
+
statusTone: S.tone,
|
|
48
|
+
payTo: {
|
|
49
|
+
name: C?.name || g.notProvided,
|
|
50
|
+
email: C?.email ?? "",
|
|
51
|
+
methodLabel: E ? g.paymentInstructionsValue(T?.slice(-4) ?? "") : g.paymentInstructionsNotSet,
|
|
52
|
+
hasPaymentInstructions: E
|
|
53
|
+
},
|
|
54
|
+
invoiceFields: [
|
|
55
|
+
{
|
|
56
|
+
label: g.invoiceDateRow,
|
|
57
|
+
value: D
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: g.dueDateRow,
|
|
61
|
+
value: O
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: g.invoiceNumberRow,
|
|
65
|
+
value: l.document_id || g.notProvided
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
lineItems: u.map((e) => {
|
|
69
|
+
let t = i(e.unit_price, x), n = String(o(e));
|
|
70
|
+
return {
|
|
71
|
+
id: e.id,
|
|
72
|
+
description: e.name ?? e.description ?? "",
|
|
73
|
+
glCodeLabel: e.ledger_account_id ? k.get(e.ledger_account_id) ?? (f ? g.glCodeMissing : g.glCodeUnavailable) : g.glCodeMissing,
|
|
74
|
+
qtyPriceLabel: t ? g.qtyPriceValue(n, t) : g.qtyOnlyValue(n),
|
|
75
|
+
amount: i(a(e), x) ?? ""
|
|
76
|
+
};
|
|
77
|
+
}),
|
|
78
|
+
amountRows: A,
|
|
79
|
+
approvalPolicy: h,
|
|
80
|
+
paymentHistory: m,
|
|
81
|
+
history: p,
|
|
82
|
+
rejection: v
|
|
140
83
|
};
|
|
141
84
|
}
|
|
142
85
|
//#endregion
|
|
143
|
-
export {
|
|
86
|
+
export { l as buildBillDetailView };
|
|
@@ -1,47 +1,6 @@
|
|
|
1
|
-
import { formatBillMoney as e } from "./index2.js";
|
|
2
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
day: "numeric",
|
|
7
|
-
year: "numeric"
|
|
8
|
-
}),
|
|
9
|
-
timeLabel: (e) => new Date(e).toLocaleTimeString(void 0, {
|
|
10
|
-
hour: "numeric",
|
|
11
|
-
minute: "2-digit",
|
|
12
|
-
timeZoneName: "short"
|
|
13
|
-
}),
|
|
14
|
-
byActor: (e, t) => `${e} by ${t}`,
|
|
15
|
-
formatAmount: (t) => e(t) ?? "",
|
|
16
|
-
billCreated: "Bill created",
|
|
17
|
-
createdManually: "Data entered manually",
|
|
18
|
-
createdFromUpload: "File uploaded and scanned automatically",
|
|
19
|
-
createdFromEmail: "File emailed and scanned automatically",
|
|
20
|
-
billDetailsUpdated: "Bill details updated",
|
|
21
|
-
submittedForReview: "Finalized and submitted for review",
|
|
22
|
-
approvalRequested: "Approval requested",
|
|
23
|
-
approved: "Approved",
|
|
24
|
-
approvedAutomatically: "Auto-approved",
|
|
25
|
-
rejected: "Rejected",
|
|
26
|
-
policyOverrideApproved: "Policy override: Approved",
|
|
27
|
-
policyOverrideRejected: "Policy override: Rejected",
|
|
28
|
-
quotedReason: (e) => `"${e}"`,
|
|
29
|
-
cancelled: "Cancelled",
|
|
30
|
-
reopened: "Re-opened",
|
|
31
|
-
paymentReleased: "Payment released",
|
|
32
|
-
paid: (e) => `Paid ${e}`,
|
|
33
|
-
paymentReverted: "Payment reverted",
|
|
34
|
-
billMarkedAsFullyPaid: "Bill marked as fully paid",
|
|
35
|
-
billMarkedAsPartiallyPaid: "Bill marked as partially paid",
|
|
36
|
-
draftDeleted: "Draft deleted",
|
|
37
|
-
fileAttached: "File attached",
|
|
38
|
-
fileRemoved: "File removed",
|
|
39
|
-
creditNoteLinked: "Credit note linked",
|
|
40
|
-
creditNoteUnlinked: "Credit note unlinked",
|
|
41
|
-
lineItemsUpdated: "Line items updated",
|
|
42
|
-
lineItemAdded: "Line item added",
|
|
43
|
-
lineItemUpdated: "Line item updated",
|
|
44
|
-
lineItemRemoved: "Line item removed"
|
|
45
|
-
};
|
|
2
|
+
function e({ isUnsavedPromptOpen: e, isLocked: t, isDirty: n }) {
|
|
3
|
+
return e ? "dismiss-prompt" : !t && n ? "prompt" : "close";
|
|
4
|
+
}
|
|
46
5
|
//#endregion
|
|
47
|
-
export {
|
|
6
|
+
export { e as resolveEditorDismissal };
|