@tesouro/embedded-components-react 0.5.72 → 0.5.74
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/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +23 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +158 -158
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/collectDisclosureDocuments.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,6 @@ var v = {
|
|
|
31
31
|
unreadableTotal: "Enter a valid total amount.",
|
|
32
32
|
totalNotGreaterThanZero: "Total amount must be greater than $0.",
|
|
33
33
|
poNumberTooLong: "PO number must be 255 characters or fewer.",
|
|
34
|
-
implausibleDate: "Enter a date within the last 10 years and next year.",
|
|
35
34
|
dueBeforeInvoiceDate: "Due date must be on or after the invoice date."
|
|
36
35
|
}, y = {
|
|
37
36
|
paymentInstructionsValue: (e) => `Account ending in ${e}`,
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
import { BILL_CREATE_MESSAGE_LABELS_EN as e } from "./index49.js";
|
|
2
2
|
import { isPersistableLineItem as t, parseMoneyToMinorUnits as n, parseQuantity as r } from "./index55.js";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js
|
|
4
|
-
var i = /^(?:\d{1,3}(?:,\d{3})+(?:\.\d+)?|\d+(?:\.\d+)?|\.\d+)$/, a = 255
|
|
5
|
-
function
|
|
6
|
-
let t = new Date(e);
|
|
7
|
-
if (Number.isNaN(t.getTime())) return !1;
|
|
8
|
-
let n = /* @__PURE__ */ new Date(), r = Date.UTC(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate()), i = new Date(r);
|
|
9
|
-
i.setUTCFullYear(i.getUTCFullYear() - o);
|
|
10
|
-
let a = new Date(r);
|
|
11
|
-
return a.setUTCFullYear(a.getUTCFullYear() + s), t < i || t > a;
|
|
12
|
-
}
|
|
13
|
-
function l(t, n = e) {
|
|
4
|
+
var i = /^(?:\d{1,3}(?:,\d{3})+(?:\.\d+)?|\d+(?:\.\d+)?|\.\d+)$/, a = 255;
|
|
5
|
+
function o(t, n = e) {
|
|
14
6
|
let r = {};
|
|
15
7
|
return t.poNumber.length > a && (r.poNumber = n.poNumberTooLong), Object.keys(r).length ? r : void 0;
|
|
16
8
|
}
|
|
17
|
-
function
|
|
9
|
+
function s(e) {
|
|
18
10
|
let t = e.trim();
|
|
19
11
|
return !t || n(t) !== null ? !0 : i.test(t) ? Number(t.replaceAll(",", "")) === 0 : !1;
|
|
20
12
|
}
|
|
21
|
-
function
|
|
13
|
+
function c(t, i = e) {
|
|
22
14
|
let a = {};
|
|
23
15
|
for (let e of t) {
|
|
24
16
|
let t = n(e.price), o = n(e.amount), s = {};
|
|
@@ -26,46 +18,46 @@ function d(t, i = e) {
|
|
|
26
18
|
}
|
|
27
19
|
return Object.keys(a).length ? a : void 0;
|
|
28
20
|
}
|
|
29
|
-
function
|
|
30
|
-
let
|
|
31
|
-
a || (
|
|
32
|
-
let
|
|
33
|
-
|
|
34
|
-
let
|
|
21
|
+
function l(i, a, o, s = e) {
|
|
22
|
+
let c = {};
|
|
23
|
+
a || (c.vendor = s.requiredField), i.invoiceNumber.trim() || (c.invoiceNumber = s.requiredField);
|
|
24
|
+
let l = i.invoiceDate.trim(), u = i.dueDate.trim();
|
|
25
|
+
l || (c.invoiceDate = s.requiredField), u ? l && u < l && (c.dueDate = s.dueBeforeInvoiceDate) : c.dueDate = s.requiredField;
|
|
26
|
+
let d = {};
|
|
35
27
|
return o.forEach((e, i) => {
|
|
36
28
|
if (i > 0 && !t(e)) return;
|
|
37
29
|
let a = {};
|
|
38
|
-
e.description.trim() || (a.description = s.requiredField), r(e.quantity) === null && (a.quantity = s.requiredField), n(e.price) === null && n(e.amount) === null && (a.price = s.requiredField, a.amount = s.requiredField), Object.keys(a).length && (
|
|
30
|
+
e.description.trim() || (a.description = s.requiredField), r(e.quantity) === null && (a.quantity = s.requiredField), n(e.price) === null && n(e.amount) === null && (a.price = s.requiredField, a.amount = s.requiredField), Object.keys(a).length && (d[e.id] = a);
|
|
39
31
|
}), {
|
|
40
|
-
formErrors: Object.keys(
|
|
41
|
-
lineItemErrors: Object.keys(
|
|
32
|
+
formErrors: Object.keys(c).length ? c : void 0,
|
|
33
|
+
lineItemErrors: Object.keys(d).length ? d : void 0
|
|
42
34
|
};
|
|
43
35
|
}
|
|
44
|
-
function
|
|
36
|
+
function u(e) {
|
|
45
37
|
let t = e.trim();
|
|
46
38
|
if (!t) return !0;
|
|
47
39
|
let n = t.startsWith("-") ? t.slice(1) : t;
|
|
48
40
|
return i.test(n) ? Number(t.replaceAll(",", "")) <= 0 : !1;
|
|
49
41
|
}
|
|
50
|
-
function
|
|
51
|
-
if (n(e) === null) return
|
|
42
|
+
function d(e, t) {
|
|
43
|
+
if (n(e) === null) return u(e) ? t.totalNotGreaterThanZero : t.unreadableTotal;
|
|
52
44
|
}
|
|
53
|
-
function
|
|
54
|
-
let r =
|
|
45
|
+
function f(t, n = e) {
|
|
46
|
+
let r = d(t, n);
|
|
55
47
|
return r ? { total: r } : void 0;
|
|
56
48
|
}
|
|
57
|
-
function
|
|
49
|
+
function p(t, r = e) {
|
|
58
50
|
if (t === void 0) return;
|
|
59
51
|
let i = n(t);
|
|
60
52
|
if (i !== null) return i > 0 ? void 0 : { total: r.totalNotGreaterThanZero };
|
|
61
53
|
}
|
|
62
|
-
function
|
|
54
|
+
function m(t, n, r, i = e) {
|
|
63
55
|
let a = {};
|
|
64
|
-
if (
|
|
65
|
-
let e =
|
|
56
|
+
if (s(t) || (a.discount = i.unreadableDiscount), s(n) || (a.tax = i.unreadableTax), r !== void 0) {
|
|
57
|
+
let e = d(r, i);
|
|
66
58
|
e && (a.total = e);
|
|
67
59
|
}
|
|
68
60
|
return Object.keys(a).length ? a : void 0;
|
|
69
61
|
}
|
|
70
62
|
//#endregion
|
|
71
|
-
export {
|
|
63
|
+
export { s as isReadableMoneyOrZero, l as validateBillCompleteness, f as validateBillTotalIsPayable, m as validateBillTotals, o as validateBillValues, c as validateLineItems, p as validateStoredAmountDue };
|
|
@@ -485,7 +485,7 @@ function c({ open: c, onOpenChange: l, payableId: et, readOnly: u = !1, copy: tt
|
|
|
485
485
|
actions: U,
|
|
486
486
|
scheduledSummary: D.hasScheduledPayment && D.scheduledDateLabel ? f.scheduledSummary(D.scheduledDateLabel) : void 0,
|
|
487
487
|
scheduledStatusLabel: D.hasScheduledPayment && D.scheduledDateLabel ? f.scheduledStatusBadge(D.scheduledDateLabel) : void 0,
|
|
488
|
-
showApprovalOverrideNotice: !Pt &&
|
|
488
|
+
showApprovalOverrideNotice: !Pt && Mt,
|
|
489
489
|
awaitingApprovalNotice: !Pt && !Nt && !Mt && x?.status === "approve_in_progress" && x?.approval_policy_id ? Ft ? f.awaitingApprovalNotice(Ft) : f.awaitingApprovalUnknownNotice : void 0,
|
|
490
490
|
payTo: {
|
|
491
491
|
onEdit: F.mode === "resolved" ? F.onEdit : void 0,
|
|
@@ -9,198 +9,198 @@ import "../../../shared/data-access/dist/index.js";
|
|
|
9
9
|
import { useWidgetConfig as te } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
10
|
import { useOrganizationUserNames as ne } from "../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
|
|
11
11
|
import "../../../shared/feature/dist/index.js";
|
|
12
|
-
import { usePayableApprovalRequestsQuery as
|
|
13
|
-
import { usePayableHistoryQuery as
|
|
14
|
-
import { useAllPayableLineItemsQuery as
|
|
15
|
-
import { usePayableQuery as
|
|
12
|
+
import { usePayableApprovalRequestsQuery as n } from "../../data-access/dist/index8.js";
|
|
13
|
+
import { usePayableHistoryQuery as r } from "../../data-access/dist/index9.js";
|
|
14
|
+
import { useAllPayableLineItemsQuery as i } from "../../data-access/dist/index10.js";
|
|
15
|
+
import { usePayableQuery as a } from "../../data-access/dist/index17.js";
|
|
16
16
|
import "../../data-access/dist/index.js";
|
|
17
|
-
import { BillDecisionDialog as
|
|
18
|
-
import { BillDetailsSheet as
|
|
19
|
-
import { BillDuplicateNotice as
|
|
20
|
-
import { MarkAsPaidDialog as
|
|
17
|
+
import { BillDecisionDialog as o } from "../../ui/dist/index56.js";
|
|
18
|
+
import { BillDetailsSheet as s } from "../../ui/dist/index65.js";
|
|
19
|
+
import { BillDuplicateNotice as c } from "../../ui/dist/index72.js";
|
|
20
|
+
import { MarkAsPaidDialog as l } from "../../ui/dist/index102.js";
|
|
21
21
|
import "../../ui/dist/index.js";
|
|
22
|
-
import { usePayableDuplicateReview as
|
|
22
|
+
import { usePayableDuplicateReview as u } from "./index13.js";
|
|
23
23
|
import "./index14.js";
|
|
24
|
-
import { canOverrideApprovalPolicy as
|
|
25
|
-
import { resolveAmountDueMinorUnits as
|
|
26
|
-
import { usePayableAchInstructions as
|
|
24
|
+
import { canOverrideApprovalPolicy as d, canReadCounterpartBankAccounts as f } from "./index20.js";
|
|
25
|
+
import { resolveAmountDueMinorUnits as p } from "./index21.js";
|
|
26
|
+
import { usePayableAchInstructions as m } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
27
27
|
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
28
|
-
import { PayBillFlow as
|
|
28
|
+
import { PayBillFlow as h } from "./index27.js";
|
|
29
29
|
import "./index28.js";
|
|
30
|
-
import { mapPayableToBillDetails as
|
|
31
|
-
import { mergeMarkAsPaidFlowLabels as
|
|
32
|
-
import { useMarkAsPaidFlow as
|
|
30
|
+
import { mapPayableToBillDetails as re } from "./index42.js";
|
|
31
|
+
import { mergeMarkAsPaidFlowLabels as ie } from "./index15.js";
|
|
32
|
+
import { useMarkAsPaidFlow as ae } from "./index17.js";
|
|
33
33
|
import "./index18.js";
|
|
34
|
-
import { mergeDecisionDialogCopy as
|
|
35
|
-
import { buildPaymentHistory as
|
|
36
|
-
import { currentApprovalRound as
|
|
37
|
-
import { usePayableApprovalRoundStart as
|
|
38
|
-
import { useApprovalPolicyCardView as
|
|
39
|
-
import { resolveBillRejectionNotice as
|
|
40
|
-
import { useCurrentApprovalRequestId as
|
|
41
|
-
import { usePayableDetailActions as
|
|
42
|
-
import { useScheduledPayment as
|
|
43
|
-
import { BILL_DETAILS_LABELS_EN as
|
|
44
|
-
import { useMemo as
|
|
45
|
-
import { Fragment as
|
|
34
|
+
import { mergeDecisionDialogCopy as oe, mergePaymentHistoryMethodLabels as se } from "./index46.js";
|
|
35
|
+
import { buildPaymentHistory as ce } from "./index3.js";
|
|
36
|
+
import { currentApprovalRound as le } from "./index4.js";
|
|
37
|
+
import { usePayableApprovalRoundStart as ue } from "./index32.js";
|
|
38
|
+
import { useApprovalPolicyCardView as de } from "./index33.js";
|
|
39
|
+
import { resolveBillRejectionNotice as fe } from "./index34.js";
|
|
40
|
+
import { useCurrentApprovalRequestId as pe } from "./index35.js";
|
|
41
|
+
import { usePayableDetailActions as me } from "./index36.js";
|
|
42
|
+
import { useScheduledPayment as he } from "./index37.js";
|
|
43
|
+
import { BILL_DETAILS_LABELS_EN as g } from "./index63.js";
|
|
44
|
+
import { useMemo as _, useRef as ge } from "react";
|
|
45
|
+
import { Fragment as _e, jsx as v, jsxs as ve } from "react/jsx-runtime";
|
|
46
46
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js
|
|
47
|
-
function
|
|
48
|
-
let
|
|
49
|
-
...
|
|
50
|
-
...
|
|
47
|
+
function y({ open: y, onOpenChange: b, payableId: x, onClose: S, onExpand: C, onEdit: w, testId: T, labels: E, poweredByBankName: D }) {
|
|
48
|
+
let O = _(() => ({
|
|
49
|
+
...g,
|
|
50
|
+
...E,
|
|
51
51
|
sheet: {
|
|
52
|
-
...
|
|
53
|
-
...
|
|
52
|
+
...g.sheet,
|
|
53
|
+
...E?.sheet,
|
|
54
54
|
statusBadge: {
|
|
55
|
-
...
|
|
56
|
-
...
|
|
55
|
+
...g.sheet.statusBadge,
|
|
56
|
+
...E?.sheet?.statusBadge
|
|
57
57
|
},
|
|
58
58
|
approvalPolicy: {
|
|
59
|
-
...
|
|
60
|
-
...
|
|
59
|
+
...g.sheet.approvalPolicy,
|
|
60
|
+
...E?.sheet?.approvalPolicy
|
|
61
61
|
},
|
|
62
62
|
dueDate: {
|
|
63
|
-
...
|
|
64
|
-
...
|
|
63
|
+
...g.sheet.dueDate,
|
|
64
|
+
...E?.sheet?.dueDate
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
decisionDialog:
|
|
67
|
+
decisionDialog: oe(g.decisionDialog, E?.decisionDialog),
|
|
68
68
|
approvalPolicyCopy: {
|
|
69
|
-
...
|
|
70
|
-
...
|
|
69
|
+
...g.approvalPolicyCopy,
|
|
70
|
+
...E?.approvalPolicyCopy
|
|
71
71
|
},
|
|
72
|
-
markAsPaid:
|
|
72
|
+
markAsPaid: ie(E?.markAsPaid),
|
|
73
73
|
actionSuccess: {
|
|
74
|
-
...
|
|
75
|
-
...
|
|
74
|
+
...g.actionSuccess,
|
|
75
|
+
...E?.actionSuccess
|
|
76
76
|
},
|
|
77
|
-
paymentHistoryMethodLabels:
|
|
78
|
-
}), [
|
|
79
|
-
payableId:
|
|
80
|
-
status:
|
|
81
|
-
}),
|
|
82
|
-
payableId:
|
|
83
|
-
enabled:
|
|
84
|
-
}),
|
|
85
|
-
payableStatus:
|
|
86
|
-
approvalRequests:
|
|
87
|
-
userNames:
|
|
88
|
-
payableUpdatedAt:
|
|
89
|
-
labels:
|
|
77
|
+
paymentHistoryMethodLabels: se(E?.paymentHistoryMethodLabels)
|
|
78
|
+
}), [E]), k = a(x), A = i(x), j = ee(), { initResponse: M } = te(), N = k.data, P = ge(null), F = pe({
|
|
79
|
+
payableId: x,
|
|
80
|
+
status: N?.status
|
|
81
|
+
}), I = N?.status === "rejected", ye = e(M?.scopes, [t.ApprovalRequestReadOrg]), L = I && ye, R = ue({
|
|
82
|
+
payableId: x,
|
|
83
|
+
enabled: L
|
|
84
|
+
}), z = n(x, { enabled: L }), be = e(M?.scopes, [t.UserReadOrg]), { userNames: B } = ne({ enabled: I && be }), V = _(() => le(z.data?.data, R.roundStartedAt), [z.data, R.roundStartedAt]), H = _(() => fe({
|
|
85
|
+
payableStatus: N?.status,
|
|
86
|
+
approvalRequests: V,
|
|
87
|
+
userNames: B,
|
|
88
|
+
payableUpdatedAt: N?.updated_at,
|
|
89
|
+
labels: O
|
|
90
90
|
}), [
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
N?.status,
|
|
92
|
+
N?.updated_at,
|
|
93
|
+
V,
|
|
93
94
|
B,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
currentBankAccountId: M?.counterpart_bank_account_id,
|
|
95
|
+
O
|
|
96
|
+
]), U = de({
|
|
97
|
+
payableId: x,
|
|
98
|
+
approvalPolicyId: N?.approval_policy_id,
|
|
99
|
+
copy: O.approvalPolicyCopy
|
|
100
|
+
}), W = d({
|
|
101
|
+
status: N?.status,
|
|
102
|
+
scopes: M?.scopes,
|
|
103
|
+
arePendingApproversUnknown: U.isLoading,
|
|
104
|
+
hasApprovalPolicy: !!N?.approval_policy_id,
|
|
105
|
+
hasWaitingRequest: F.hasWaitingRequest
|
|
106
|
+
}), xe = !!F.id, G = F.isLoading || U.isLoading, K = _(() => U.pendingApprovers.length ? U.pendingApprovers.flatMap((e) => e.names) : void 0, [U.pendingApprovers]), q = he({
|
|
107
|
+
payableId: x,
|
|
108
|
+
scheduledPaymentDate: N?.scheduled_payment_date
|
|
109
|
+
}), J = f(M?.scopes), Y = m({
|
|
110
|
+
counterpartId: N?.counterpart_id,
|
|
111
|
+
currency: N?.currency,
|
|
112
|
+
currentBankAccountId: N?.counterpart_bank_account_id,
|
|
113
113
|
enabled: J
|
|
114
|
-
}), X =
|
|
115
|
-
payableId:
|
|
116
|
-
amountDueMinorUnits:
|
|
117
|
-
amountToPayMinorUnits:
|
|
118
|
-
currencyCode:
|
|
119
|
-
dueDate:
|
|
114
|
+
}), X = ae({
|
|
115
|
+
payableId: x,
|
|
116
|
+
amountDueMinorUnits: p(N) ?? 0,
|
|
117
|
+
amountToPayMinorUnits: N?.amount_to_pay ?? void 0,
|
|
118
|
+
currencyCode: N?.currency ?? void 0,
|
|
119
|
+
dueDate: N?.due_date,
|
|
120
120
|
hasScheduledPayment: q.hasScheduledPayment,
|
|
121
|
-
testId:
|
|
122
|
-
labels:
|
|
123
|
-
}), { actions: Se, decisionDialog: Ce } =
|
|
124
|
-
payableId:
|
|
125
|
-
status:
|
|
126
|
-
currentApprovalRequestId:
|
|
121
|
+
testId: T,
|
|
122
|
+
labels: O.markAsPaid
|
|
123
|
+
}), { actions: Se, decisionDialog: Ce } = me({
|
|
124
|
+
payableId: N ? x : void 0,
|
|
125
|
+
status: N?.status,
|
|
126
|
+
currentApprovalRequestId: F.id,
|
|
127
127
|
hasScheduledPayment: q.hasScheduledPayment,
|
|
128
128
|
scheduledPaymentIntentId: q.scheduledPaymentIntentId,
|
|
129
129
|
isScheduledPaymentUnknown: q.isResolving,
|
|
130
130
|
isPayabilityUnknown: Y.isLoading,
|
|
131
|
-
hasApprovalPolicy: !!
|
|
132
|
-
hasWaitingRequest:
|
|
133
|
-
pendingApprovers:
|
|
134
|
-
arePendingApproversUnknown:
|
|
131
|
+
hasApprovalPolicy: !!N?.approval_policy_id,
|
|
132
|
+
hasWaitingRequest: F.hasWaitingRequest,
|
|
133
|
+
pendingApprovers: U.pendingApprovers,
|
|
134
|
+
arePendingApproversUnknown: U.isLoading,
|
|
135
135
|
labels: {
|
|
136
|
-
edit:
|
|
137
|
-
payBill:
|
|
138
|
-
markAsPaid:
|
|
139
|
-
reject:
|
|
140
|
-
approve:
|
|
141
|
-
cancel:
|
|
142
|
-
cancelScheduledPayment:
|
|
143
|
-
reopen:
|
|
144
|
-
forceApprove:
|
|
145
|
-
forceReject:
|
|
146
|
-
policyOverridesHeading:
|
|
147
|
-
decisionDialog:
|
|
148
|
-
actionError:
|
|
149
|
-
actionSuccess:
|
|
136
|
+
edit: O.sheet.editButton,
|
|
137
|
+
payBill: O.sheet.payButton,
|
|
138
|
+
markAsPaid: O.sheet.markAsPaidButton,
|
|
139
|
+
reject: O.sheet.rejectButton,
|
|
140
|
+
approve: O.sheet.approveButton,
|
|
141
|
+
cancel: O.sheet.cancelButton,
|
|
142
|
+
cancelScheduledPayment: O.sheet.cancelScheduledPaymentButton,
|
|
143
|
+
reopen: O.sheet.reopenButton,
|
|
144
|
+
forceApprove: O.sheet.forceApproveButton,
|
|
145
|
+
forceReject: O.sheet.forceRejectButton,
|
|
146
|
+
policyOverridesHeading: O.sheet.policyOverridesGroup,
|
|
147
|
+
decisionDialog: O.decisionDialog,
|
|
148
|
+
actionError: O.actionError,
|
|
149
|
+
actionSuccess: O.actionSuccess
|
|
150
150
|
},
|
|
151
151
|
isMarkAsPaidPending: X.isPending,
|
|
152
152
|
onMarkAsPaidSelect: X.open,
|
|
153
|
-
onPayBillSelect: () =>
|
|
154
|
-
onEditSelect:
|
|
153
|
+
onPayBillSelect: () => P.current?.open(),
|
|
154
|
+
onEditSelect: w,
|
|
155
155
|
onActionSucceeded: (e) => {
|
|
156
|
-
e === "reopen" &&
|
|
156
|
+
e === "reopen" && w?.();
|
|
157
157
|
}
|
|
158
|
-
}), we = q.hasScheduledPayment && q.scheduledDateLabel ?
|
|
159
|
-
payable:
|
|
160
|
-
canManage: e(
|
|
161
|
-
}), Q = Z.isPossibleDuplicate ? /* @__PURE__ */
|
|
158
|
+
}), we = q.hasScheduledPayment && q.scheduledDateLabel ? O.scheduledSummary(q.scheduledDateLabel) : void 0, Z = u({
|
|
159
|
+
payable: N,
|
|
160
|
+
canManage: e(M?.scopes, [t.PayableWriteOrg])
|
|
161
|
+
}), Q = Z.isPossibleDuplicate ? /* @__PURE__ */ v(c, {
|
|
162
162
|
onNotADuplicate: Z.onNotADuplicate,
|
|
163
163
|
isActionDisabled: Z.isBusy
|
|
164
|
-
}) : void 0, $ =
|
|
164
|
+
}) : void 0, $ = r(x), Te = _(() => ce({
|
|
165
165
|
records: q.paymentRecords,
|
|
166
166
|
events: $.data?.data ?? [],
|
|
167
|
-
currencyCode:
|
|
168
|
-
labels:
|
|
167
|
+
currencyCode: N?.currency,
|
|
168
|
+
labels: O
|
|
169
169
|
}), [
|
|
170
170
|
q.paymentRecords,
|
|
171
171
|
$.data,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
]), Ee =
|
|
175
|
-
payable:
|
|
176
|
-
lineItems:
|
|
177
|
-
ledgerAccounts:
|
|
178
|
-
labels:
|
|
172
|
+
N?.currency,
|
|
173
|
+
O
|
|
174
|
+
]), Ee = _(() => N ? re({
|
|
175
|
+
payable: N,
|
|
176
|
+
lineItems: A.lineItems,
|
|
177
|
+
ledgerAccounts: j.data?.data ?? [],
|
|
178
|
+
labels: O,
|
|
179
179
|
hasScheduledPayment: q.hasScheduledPayment,
|
|
180
|
-
rejection:
|
|
180
|
+
rejection: H,
|
|
181
181
|
achInstructions: Y.achInstructions,
|
|
182
182
|
achInstructionsReadable: J && !Y.isLoading && !Y.isError
|
|
183
183
|
}) : void 0, [
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
184
|
+
N,
|
|
185
|
+
A.lineItems,
|
|
186
|
+
j.data,
|
|
187
|
+
O,
|
|
188
188
|
q.hasScheduledPayment,
|
|
189
|
-
|
|
189
|
+
H,
|
|
190
190
|
Y.achInstructions,
|
|
191
191
|
Y.isError,
|
|
192
192
|
Y.isLoading,
|
|
193
193
|
J
|
|
194
|
-
]), De =
|
|
195
|
-
return /* @__PURE__ */
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
open:
|
|
198
|
-
onOpenChange:
|
|
194
|
+
]), De = k.isLoading || A.isResolving || j.isResolving || Y.isLoading, Oe = k.isError || A.isError || j.isError;
|
|
195
|
+
return /* @__PURE__ */ ve(_e, { children: [
|
|
196
|
+
/* @__PURE__ */ v(s, {
|
|
197
|
+
open: y,
|
|
198
|
+
onOpenChange: b,
|
|
199
199
|
details: Ee,
|
|
200
200
|
actions: Se,
|
|
201
|
-
approvalPolicy:
|
|
202
|
-
showApprovalOverrideNotice: !G &&
|
|
203
|
-
awaitingApprovalNotice: !G && !
|
|
201
|
+
approvalPolicy: U.view,
|
|
202
|
+
showApprovalOverrideNotice: !G && W,
|
|
203
|
+
awaitingApprovalNotice: !G && !xe && !W && N?.status === "approve_in_progress" && N?.approval_policy_id ? K ? O.awaitingApprovalNotice(K) : O.awaitingApprovalUnknownNotice : void 0,
|
|
204
204
|
scheduledSummary: we,
|
|
205
205
|
paymentHistory: Te,
|
|
206
206
|
paymentHistoryError: q.isError || $.isError,
|
|
@@ -208,27 +208,27 @@ function v({ open: v, onOpenChange: y, payableId: b, onClose: x, onExpand: S, on
|
|
|
208
208
|
isLoading: De,
|
|
209
209
|
isError: Oe,
|
|
210
210
|
notice: Q,
|
|
211
|
-
onClose:
|
|
212
|
-
onExpand:
|
|
213
|
-
testId:
|
|
214
|
-
labels:
|
|
211
|
+
onClose: S,
|
|
212
|
+
onExpand: C,
|
|
213
|
+
testId: T,
|
|
214
|
+
labels: O.sheet
|
|
215
215
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ v(o, {
|
|
217
217
|
...Ce,
|
|
218
|
-
labels: { cancelButton:
|
|
219
|
-
testId:
|
|
220
|
-
confirmTestId:
|
|
221
|
-
reasonTestId:
|
|
222
|
-
reasonFieldId:
|
|
218
|
+
labels: { cancelButton: O.decisionDialog.cancelButton },
|
|
219
|
+
testId: T ? `${T}-decision-dialog` : void 0,
|
|
220
|
+
confirmTestId: T ? `${T}-decision-confirm` : void 0,
|
|
221
|
+
reasonTestId: T ? `${T}-decision-reason` : void 0,
|
|
222
|
+
reasonFieldId: T ? `${T}-decision-reason-field` : void 0
|
|
223
223
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
|
|
226
|
-
ref:
|
|
227
|
-
payable:
|
|
228
|
-
onMissingAchInstructions:
|
|
229
|
-
poweredByBankName:
|
|
224
|
+
/* @__PURE__ */ v(l, { ...X.dialogProps }),
|
|
225
|
+
N ? /* @__PURE__ */ v(h, {
|
|
226
|
+
ref: P,
|
|
227
|
+
payable: N,
|
|
228
|
+
onMissingAchInstructions: C,
|
|
229
|
+
poweredByBankName: D
|
|
230
230
|
}) : null
|
|
231
231
|
] });
|
|
232
232
|
}
|
|
233
233
|
//#endregion
|
|
234
|
-
export {
|
|
234
|
+
export { y as BillDetailsContainer, y as default };
|
|
@@ -15,7 +15,7 @@ var o = {
|
|
|
15
15
|
amountPaidHeading: "Amount paid",
|
|
16
16
|
invoiceDateLabel: "Invoice date",
|
|
17
17
|
dueDateLabel: "Due date",
|
|
18
|
-
approvalOverrideNotice: "
|
|
18
|
+
approvalOverrideNotice: "You can approve or reject this bill from the menu in the top right, bypassing any remaining approvers.",
|
|
19
19
|
payToHeading: "Pay to",
|
|
20
20
|
payToHeadingPaid: "Paid to",
|
|
21
21
|
vendorRow: "Vendor",
|
|
@@ -21,7 +21,7 @@ var s = {
|
|
|
21
21
|
amountPaidHeading: "Amount paid",
|
|
22
22
|
invoiceDateLabel: "Invoice date",
|
|
23
23
|
dueDateLabel: "Due date",
|
|
24
|
-
approvalOverrideNotice: "
|
|
24
|
+
approvalOverrideNotice: "You can approve or reject this bill from the menu in the top right, bypassing any remaining approvers.",
|
|
25
25
|
payToHeading: "Pay to",
|
|
26
26
|
payToHeadingPaid: "Paid to",
|
|
27
27
|
paymentHistoryHeading: "Payment history",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/collectDisclosureDocuments.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
if (!e) return [];
|
|
4
|
-
let t = e.
|
|
5
|
-
for (let e of
|
|
6
|
-
return
|
|
4
|
+
let t = e.disclosures?.length ? e.disclosures : e.capacities?.length ? e.capacities : void 0, n = t ? t.flatMap((e) => e.documents) : e.documents, r = /* @__PURE__ */ new Set(), i = [];
|
|
5
|
+
for (let e of n) r.has(e.url) || (r.add(e.url), i.push(e));
|
|
6
|
+
return i;
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
export { e as collectDisclosureDocuments };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.74", n = "49fe68b21961818b74da7c9f614505178d899dec", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|