@tesouro/embedded-components-react 0.4.21 → 0.4.23
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 +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +64 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +38 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +104 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +87 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +17 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +23 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +66 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +74 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +3 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +37 -166
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +164 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +48 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +47 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +18 -125
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +136 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +39 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +79 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +95 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -121
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +49 -35
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +113 -171
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +32 -74
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +186 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +70 -226
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +22 -219
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +221 -109
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +220 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +25 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +119 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +13 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +43 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +29 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +186 -222
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +36 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +230 -375
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +21 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +424 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -192
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +21 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +38 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +219 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +3 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +44 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +6 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +12 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +109 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +58 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +124 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +45 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +20 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +28 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +76 -243
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +48 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +239 -196
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +115 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +207 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +3 -114
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +106 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +5 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +44 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +12 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +20 -152
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +154 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +61 -253
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +258 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +7 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +49 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +15 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +50 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +21 -338
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +340 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +11 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +52 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +10 -179
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +181 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +5 -90
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +92 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +86 -298
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +299 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +30 -195
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -345
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +199 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +15 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +347 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +7 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +91 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +123 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +94 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +5 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +10 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +74 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +8 -106
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/client.config.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/finopsApiVersion.js +4 -0
- 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/formatRejectionDate.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +33 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +0 -94
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.json.js +0 -4
|
@@ -1,98 +1,93 @@
|
|
|
1
1
|
import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
2
|
-
import { derivePayableStatus as t } from "./
|
|
3
|
-
import { resolveVendor as n } from "./
|
|
4
|
-
import {
|
|
5
|
-
import { maskAccountNumber as i } from "./index21.js";
|
|
6
|
-
import { formatBillMoney as a } from "./index2.js";
|
|
7
|
-
import { getPaidAtLabel as o } from "./index38.js";
|
|
2
|
+
import { derivePayableStatus as t } from "./index7.js";
|
|
3
|
+
import { resolveVendor as n, resolveVendorName as r } from "./index8.js";
|
|
4
|
+
import { formatBillMoney as i } from "./index2.js";
|
|
8
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js
|
|
9
|
-
function
|
|
10
|
-
let
|
|
11
|
-
apiStatus:
|
|
12
|
-
dueDate:
|
|
13
|
-
scheduledPaymentDate:
|
|
14
|
-
hasScheduledPayment:
|
|
15
|
-
|
|
6
|
+
function a({ payable: a, lineItems: s, ledgerAccounts: c, labels: l, hasScheduledPayment: u, now: d, rejection: f }) {
|
|
7
|
+
let p = a.currency, m = (e) => i(e, p), h = t({
|
|
8
|
+
apiStatus: a.status,
|
|
9
|
+
dueDate: a.due_date,
|
|
10
|
+
scheduledPaymentDate: a.scheduled_payment_date,
|
|
11
|
+
hasScheduledPayment: u,
|
|
12
|
+
now: d
|
|
13
|
+
}), g = n(a), _ = r(a), v = e(a.issued_at) || l.notProvided, y = e(a.due_date) || l.notProvided, b = [{
|
|
14
|
+
label: l.vendorRow,
|
|
15
|
+
value: _ || l.notProvided,
|
|
16
|
+
secondaryValue: g?.email ?? void 0
|
|
17
|
+
}], x = g?.bank_account?.account_number;
|
|
18
|
+
x && b.push({
|
|
19
|
+
label: l.bankAccountRow,
|
|
20
|
+
value: l.bankAccountValue(x.slice(-4))
|
|
21
|
+
});
|
|
22
|
+
let S = [
|
|
23
|
+
{
|
|
24
|
+
label: l.invoiceNumberRow,
|
|
25
|
+
value: a.document_id || l.notProvided
|
|
26
|
+
},
|
|
16
27
|
{
|
|
17
|
-
label:
|
|
18
|
-
|
|
28
|
+
label: l.issueDateRow,
|
|
29
|
+
value: v
|
|
19
30
|
},
|
|
20
31
|
{
|
|
21
|
-
label:
|
|
22
|
-
|
|
32
|
+
label: l.dueDateRow,
|
|
33
|
+
value: y
|
|
23
34
|
},
|
|
24
35
|
{
|
|
25
|
-
label:
|
|
26
|
-
|
|
36
|
+
label: l.poNumberRow,
|
|
37
|
+
value: l.notProvided
|
|
27
38
|
}
|
|
28
|
-
].map((e) => ({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
], C = new Map(c.map((e) => [e.id, [e.nominal_code, e.name].filter(Boolean).join(" — ")])), w = s.map((e) => {
|
|
40
|
+
let t = m(e.unit_price);
|
|
41
|
+
return {
|
|
42
|
+
id: e.id,
|
|
43
|
+
description: e.name ?? e.description ?? "",
|
|
44
|
+
glCodeLabel: (e.ledger_account_id ? C.get(e.ledger_account_id) : void 0) || l.glCodeMissing,
|
|
45
|
+
quantityLabel: e.quantity != null && t ? l.quantityValue(String(e.quantity), t) : "",
|
|
46
|
+
amountLabel: m(e.subtotal) ?? ""
|
|
47
|
+
};
|
|
48
|
+
}), T = [
|
|
49
|
+
{
|
|
50
|
+
label: l.subtotalRow,
|
|
51
|
+
value: a.subtotal
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: l.discountsRow,
|
|
55
|
+
value: a.discount
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: l.taxRow,
|
|
59
|
+
value: a.tax_amount
|
|
60
|
+
}
|
|
61
|
+
].map(({ label: e, value: t }) => ({
|
|
62
|
+
label: e,
|
|
63
|
+
value: m(t)
|
|
64
|
+
})).filter((e) => !!e.value), E = m(a.total_amount);
|
|
65
|
+
E && T.push({
|
|
66
|
+
label: l.totalRow,
|
|
67
|
+
value: E,
|
|
35
68
|
emphasis: !0
|
|
36
69
|
});
|
|
37
|
-
let
|
|
70
|
+
let D = o(a);
|
|
38
71
|
return {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
value: x?.account_holder_name ?? ""
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
label: m.routingNumberFieldLabel,
|
|
58
|
-
value: x?.routing_number ?? ""
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
label: m.accountNumberFieldLabel,
|
|
62
|
-
value: S ?? "",
|
|
63
|
-
maskedValue: i(S ?? void 0)
|
|
64
|
-
}
|
|
65
|
-
] : []
|
|
66
|
-
},
|
|
67
|
-
invoiceFields: [
|
|
68
|
-
{
|
|
69
|
-
label: m.invoiceDateRow,
|
|
70
|
-
value: w
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
label: m.dueDateRow,
|
|
74
|
-
value: T
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
label: m.invoiceNumberRow,
|
|
78
|
-
value: s.document_id || m.notProvided
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
lineItems: c.map((e) => {
|
|
82
|
-
let t = a(e.unit_price, v);
|
|
83
|
-
return {
|
|
84
|
-
id: e.id,
|
|
85
|
-
description: e.name ?? e.description ?? "",
|
|
86
|
-
glCodeLabel: e.ledger_account_id ? E.get(e.ledger_account_id) ?? (u ? m.glCodeMissing : m.glCodeUnavailable) : m.glCodeMissing,
|
|
87
|
-
qtyPriceLabel: e.quantity != null && t ? m.qtyPriceValue(String(e.quantity), t) : "",
|
|
88
|
-
amount: a(e.subtotal, v) ?? ""
|
|
89
|
-
};
|
|
90
|
-
}),
|
|
91
|
-
amountRows: D,
|
|
92
|
-
approvalPolicy: p,
|
|
93
|
-
paymentHistory: f,
|
|
94
|
-
history: d
|
|
72
|
+
title: _,
|
|
73
|
+
subtitle: l.subtitle,
|
|
74
|
+
status: h.status,
|
|
75
|
+
statusTone: h.tone,
|
|
76
|
+
amountDueLabel: m(a.amount_due) ?? m(a.total_amount) ?? "",
|
|
77
|
+
amountPaidLabel: D ? m(a.amount_paid) : void 0,
|
|
78
|
+
paidOnLabel: D ? l.paidOnLabel(D) : void 0,
|
|
79
|
+
invoiceDateLabel: v,
|
|
80
|
+
dueDateLabel: y,
|
|
81
|
+
dueDateTone: h.isOverdue ? "danger" : "default",
|
|
82
|
+
payToItems: b,
|
|
83
|
+
invoiceItems: S,
|
|
84
|
+
lineItems: w,
|
|
85
|
+
totals: T,
|
|
86
|
+
rejection: f
|
|
95
87
|
};
|
|
96
88
|
}
|
|
89
|
+
function o(t) {
|
|
90
|
+
return t.status === "paid" && t.paid_at ? e(t.paid_at.slice(0, 10)) : void 0;
|
|
91
|
+
}
|
|
97
92
|
//#endregion
|
|
98
|
-
export {
|
|
93
|
+
export { o as getPaidAtLabel, a as mapPayableToBillDetails };
|
|
@@ -1,27 +1,7 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
allResolvedToast: "All possible duplicates resolved"
|
|
25
|
-
};
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = e ?? [];
|
|
4
|
+
return t ? n.filter((e) => !e.created_at || e.created_at >= t) : n.slice(0, 1);
|
|
5
|
+
}
|
|
26
6
|
//#endregion
|
|
27
|
-
export { e as
|
|
7
|
+
export { e as currentApprovalRound };
|
|
@@ -1,52 +1,99 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
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 "./index20.js";
|
|
5
|
+
import { maskAccountNumber as i } from "./index22.js";
|
|
6
|
+
import { formatBillMoney as a } from "./index2.js";
|
|
7
|
+
import { getPaidAtLabel as o } from "./index39.js";
|
|
4
8
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
function s({ payable: s, lineItems: c, glCodeOptions: l, glCodeRosterAvailable: u = !0, history: d, paymentHistory: f, approvalPolicy: p, labels: m, hasScheduledPayment: h, rejection: g, payableAchInstructions: _, payableAchInstructionsReadable: v = !1 }) {
|
|
10
|
+
let y = s.currency, b = t({
|
|
11
|
+
apiStatus: s.status,
|
|
12
|
+
dueDate: s.due_date,
|
|
13
|
+
scheduledPaymentDate: s.scheduled_payment_date,
|
|
14
|
+
hasScheduledPayment: h
|
|
15
|
+
}), x = n(s), S = v ? _ : x?.bank_account, C = S?.account_number, w = !!(S?.account_holder_name && S.routing_number && S.account_number), T = e(s.issued_at) || m.notProvided, E = e(s.due_date) || m.notProvided, D = new Map(l.map((e) => [e.value, e.label])), O = [
|
|
16
|
+
{
|
|
17
|
+
label: m.subtotalRow,
|
|
18
|
+
minorUnits: s.subtotal
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: m.discountRow,
|
|
22
|
+
minorUnits: s.discount
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: m.taxRow,
|
|
26
|
+
minorUnits: s.tax_amount
|
|
23
27
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
28
|
+
].map((e) => ({
|
|
29
|
+
label: e.label,
|
|
30
|
+
value: a(e.minorUnits, y)
|
|
31
|
+
})).filter((e) => !!e.value), k = a(s.total_amount, y);
|
|
32
|
+
k && O.push({
|
|
33
|
+
label: m.totalRow,
|
|
34
|
+
value: k,
|
|
35
|
+
emphasis: !0
|
|
36
|
+
});
|
|
37
|
+
let A = o(s);
|
|
38
|
+
return {
|
|
39
|
+
amountDue: a(r(s), y) ?? "",
|
|
40
|
+
amountPaid: A ? a(s.amount_paid, y) : void 0,
|
|
41
|
+
paidOnLabel: A ? m.paidOnLabel(A) : void 0,
|
|
42
|
+
invoiceDateLabel: T,
|
|
43
|
+
dueDateLabel: E,
|
|
44
|
+
dueDateTone: b.isOverdue ? "danger" : "default",
|
|
45
|
+
status: b.status,
|
|
46
|
+
statusTone: b.tone,
|
|
47
|
+
payTo: {
|
|
48
|
+
name: x?.name || m.notProvided,
|
|
49
|
+
email: x?.email ?? "",
|
|
50
|
+
methodLabel: w ? m.paymentInstructionsValue(C?.slice(-4) ?? "") : m.paymentInstructionsNotSet,
|
|
51
|
+
fields: w ? [
|
|
52
|
+
{
|
|
53
|
+
label: m.accountHolderFieldLabel,
|
|
54
|
+
value: S?.account_holder_name ?? ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: m.routingNumberFieldLabel,
|
|
58
|
+
value: S?.routing_number ?? ""
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: m.accountNumberFieldLabel,
|
|
62
|
+
value: C ?? "",
|
|
63
|
+
maskedValue: i(C ?? void 0)
|
|
64
|
+
}
|
|
65
|
+
] : []
|
|
66
|
+
},
|
|
67
|
+
invoiceFields: [
|
|
68
|
+
{
|
|
69
|
+
label: m.invoiceDateRow,
|
|
70
|
+
value: T
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: m.dueDateRow,
|
|
74
|
+
value: E
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: m.invoiceNumberRow,
|
|
78
|
+
value: s.document_id || m.notProvided
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
lineItems: c.map((e) => {
|
|
82
|
+
let t = a(e.unit_price, y);
|
|
83
|
+
return {
|
|
84
|
+
id: e.id,
|
|
85
|
+
description: e.name ?? e.description ?? "",
|
|
86
|
+
glCodeLabel: e.ledger_account_id ? D.get(e.ledger_account_id) ?? (u ? m.glCodeMissing : m.glCodeUnavailable) : m.glCodeMissing,
|
|
87
|
+
qtyPriceLabel: e.quantity != null && t ? m.qtyPriceValue(String(e.quantity), t) : "",
|
|
88
|
+
amount: a(e.subtotal, y) ?? ""
|
|
89
|
+
};
|
|
90
|
+
}),
|
|
91
|
+
amountRows: O,
|
|
92
|
+
approvalPolicy: p,
|
|
93
|
+
paymentHistory: f,
|
|
94
|
+
history: d,
|
|
95
|
+
rejection: g
|
|
96
|
+
};
|
|
50
97
|
}
|
|
51
98
|
//#endregion
|
|
52
|
-
export {
|
|
99
|
+
export { s as buildBillDetailView };
|
|
@@ -1,124 +1,6 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
markAsPaid: "Mark as paid",
|
|
5
|
-
reject: "Reject",
|
|
6
|
-
approve: "Approve",
|
|
7
|
-
cancel: "Cancel bill",
|
|
8
|
-
cancelScheduledPayment: "Cancel scheduled payment",
|
|
9
|
-
reopen: "Reopen bill",
|
|
10
|
-
forceApprove: "Approve",
|
|
11
|
-
forceReject: "Reject",
|
|
12
|
-
policyOverridesHeading: "Policy overrides",
|
|
13
|
-
decisionDialog: {
|
|
14
|
-
reject: {
|
|
15
|
-
title: "Reject this bill?",
|
|
16
|
-
description: "The bill goes back as rejected and nobody else is asked to approve it.",
|
|
17
|
-
confirmButton: "Reject bill",
|
|
18
|
-
reason: {
|
|
19
|
-
label: "Reason",
|
|
20
|
-
placeholder: "Tell the submitter what needs to change",
|
|
21
|
-
optionalHint: "Optional"
|
|
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
|
-
},
|
|
39
|
-
forceReject: {
|
|
40
|
-
title: "Override approval policy?",
|
|
41
|
-
description: "The below people haven't approved this bill yet. Rejecting now will bypass their required review. This will be recorded in the audit history and can't be undone.",
|
|
42
|
-
confirmButton: "Override and reject"
|
|
43
|
-
},
|
|
44
|
-
cancelButton: "Cancel"
|
|
45
|
-
},
|
|
46
|
-
actionError: "Couldn't update this bill. Try again.",
|
|
47
|
-
actionSuccess: {
|
|
48
|
-
approve: "Bill approved.",
|
|
49
|
-
reject: "Bill rejected.",
|
|
50
|
-
markAsPaid: "Bill marked as paid.",
|
|
51
|
-
cancel: "Bill canceled.",
|
|
52
|
-
cancelScheduledPayment: "Scheduled payment canceled.",
|
|
53
|
-
reopen: "Bill reopened.",
|
|
54
|
-
forceApprove: "Bill approved, overriding the approval policy.",
|
|
55
|
-
forceReject: "Bill rejected, overriding the approval policy."
|
|
56
|
-
}
|
|
57
|
-
}, t = (e) => `Payment scheduled for ${e}`, n = [
|
|
58
|
-
"reject",
|
|
59
|
-
"cancel",
|
|
60
|
-
"cancelScheduledPayment",
|
|
61
|
-
"forceApprove",
|
|
62
|
-
"forceReject"
|
|
63
|
-
];
|
|
64
|
-
function r(e, t) {
|
|
65
|
-
let n = e.reason ? {
|
|
66
|
-
...e.reason,
|
|
67
|
-
...t?.reason
|
|
68
|
-
} : void 0, r = {
|
|
69
|
-
...e,
|
|
70
|
-
...t,
|
|
71
|
-
reason: n
|
|
72
|
-
};
|
|
73
|
-
return n || delete r.reason, r;
|
|
74
|
-
}
|
|
75
|
-
function i(e, t) {
|
|
76
|
-
let i = {
|
|
77
|
-
...e,
|
|
78
|
-
...t
|
|
79
|
-
};
|
|
80
|
-
for (let a of n) i[a] = r(e[a], t?.[a]);
|
|
81
|
-
return i;
|
|
82
|
-
}
|
|
83
|
-
function a(t) {
|
|
84
|
-
let n = e;
|
|
85
|
-
return {
|
|
86
|
-
...n,
|
|
87
|
-
...t,
|
|
88
|
-
decisionDialog: i(n.decisionDialog, t?.decisionDialog),
|
|
89
|
-
actionSuccess: {
|
|
90
|
-
...n.actionSuccess,
|
|
91
|
-
...t?.actionSuccess
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
var o = {
|
|
96
|
-
paymentHistorySentLabel: "Payment sent",
|
|
97
|
-
paymentHistoryScheduledLabel: "Payment scheduled",
|
|
98
|
-
paymentHistoryCanceledLabel: "Payment canceled",
|
|
99
|
-
paymentHistoryOtherLabel: "Payment",
|
|
100
|
-
paymentHistoryMethodSuffix: (e, t) => `${e} via ${t}`,
|
|
101
|
-
paymentHistoryOverpaidLabel: (e) => `+${e} overpaid`,
|
|
102
|
-
paymentHistoryMarkedPaidExternalLabel: "Marked as paid manually",
|
|
103
|
-
paymentHistoryMarkedPaidLabel: "Marked as paid",
|
|
104
|
-
paymentHistoryPartiallyPaidExternalLabel: "Partial payment marked manually",
|
|
105
|
-
paymentHistoryPartiallyPaidLabel: "Partial payment",
|
|
106
|
-
paymentHistoryRevertedLabel: "Payment reverted",
|
|
107
|
-
paymentHistoryMethodLabels: {
|
|
108
|
-
ach: "ACH",
|
|
109
|
-
us_ach: "ACH",
|
|
110
|
-
wire: "Wire",
|
|
111
|
-
check: "Check",
|
|
112
|
-
paper_check: "Check",
|
|
113
|
-
bank_account: "Bank transfer",
|
|
114
|
-
card: "Card"
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
function s(e) {
|
|
118
|
-
return {
|
|
119
|
-
...o.paymentHistoryMethodLabels,
|
|
120
|
-
...e
|
|
121
|
-
};
|
|
2
|
+
function e({ isUnsavedPromptOpen: e, isLocked: t, isDirty: n }) {
|
|
3
|
+
return e ? "dismiss-prompt" : !t && n ? "prompt" : "close";
|
|
122
4
|
}
|
|
123
5
|
//#endregion
|
|
124
|
-
export { e as
|
|
6
|
+
export { e as resolveEditorDismissal };
|
|
@@ -1,38 +1,52 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { derivePayableStatus as e } from "./index7.js";
|
|
2
|
+
import { BILL_STATUS_BADGE_LABELS_EN as t } from "../../ui/dist/index17.js";
|
|
3
|
+
import "../../ui/dist/index.js";
|
|
2
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js
|
|
3
|
-
var n =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
5
|
+
var n = /* @__PURE__ */ new Set([
|
|
6
|
+
"credit_note_linked",
|
|
7
|
+
"credit_note_unlinked",
|
|
8
|
+
"line_item_added",
|
|
9
|
+
"line_item_updated",
|
|
10
|
+
"line_item_removed",
|
|
11
|
+
"deleted"
|
|
12
|
+
]);
|
|
13
|
+
function r(n, r, i) {
|
|
14
|
+
switch (n) {
|
|
15
|
+
case "payable_created": return r?.source_of_payable_data === "ocr" ? i.billUploaded : i.billAdded;
|
|
16
|
+
case "payable_updated": return i.billUpdated;
|
|
17
|
+
case "file_attached": return i.attachmentAdded;
|
|
18
|
+
case "submitted_for_approval": return i.submittedForApproval;
|
|
19
|
+
case "approval_requested": return i.approvalRequested;
|
|
20
|
+
case "approval_action": {
|
|
21
|
+
let e = r?.action, t = r?.reject_reason;
|
|
22
|
+
return e === "approve" ? i.approved : e === "reject" ? typeof t == "string" && t ? i.rejectedWithReason(t) : i.rejected : void 0;
|
|
23
|
+
}
|
|
24
|
+
case "auto_approved": return i.autoApproved;
|
|
25
|
+
case "reopened": return i.reopened;
|
|
26
|
+
case "marked_as_paid": return i.markedAsPaid;
|
|
27
|
+
case "marked_as_partially_paid": return i.markedAsPartiallyPaid;
|
|
28
|
+
case "payment_reverted": return i.paymentReverted;
|
|
29
|
+
case "status_changed": {
|
|
30
|
+
let n = r?.new_status;
|
|
31
|
+
if (typeof n != "string") return;
|
|
32
|
+
let a = e({ apiStatus: n }).status;
|
|
33
|
+
return i.statusChanged(t[a] ?? t.unknown);
|
|
34
|
+
}
|
|
35
|
+
default: return;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function i(e, t, i) {
|
|
39
|
+
let a = new Map(t.map((e) => [e.id, e.name]));
|
|
40
|
+
return e.filter((e) => !n.has(e.event_type)).map((e) => {
|
|
41
|
+
let t = r(e.event_type, e.event_data, i);
|
|
42
|
+
if (!t) return;
|
|
43
|
+
let n = e.entity_user_id ? a.get(e.entity_user_id) : void 0;
|
|
44
|
+
return {
|
|
45
|
+
id: e.id,
|
|
46
|
+
dateLabel: i.dateLabel(e.timestamp),
|
|
47
|
+
description: n ? i.byActor(t, n) : t
|
|
48
|
+
};
|
|
49
|
+
}).filter((e) => !!e);
|
|
36
50
|
}
|
|
37
51
|
//#endregion
|
|
38
|
-
export {
|
|
52
|
+
export { i as buildBillHistory };
|