@tesouro/embedded-components-react 0.11.169 → 0.11.172
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/README.md +10 -6
- package/dist/index.d.ts +15 -4
- package/dist/lib/BillPayWidget.d.ts +9 -4
- package/dist/lib/ReceivablesWidget.d.ts +6 -0
- package/dist/lib/WidgetSuite.d.ts +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +75 -66
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +62 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +44 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +331 -326
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +190 -187
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +12 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +25 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +4 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +23 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +196 -187
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +313 -324
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +46 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +45 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +5 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveBillDueDate.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +116 -98
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +99 -92
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +15 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +59 -69
- 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/ui/dist/index.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DateDisclosure/DateDisclosure.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DueDateText/DueDateText.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/index.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/dueDateDisplay.js +23 -0
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +0 -2
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AWAITING_APPROVAL_LABEL_EN as e, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as t, BILL_DETAIL_ACTIONS_LABELS_EN as n, PAYMENT_HISTORY_LABELS_EN as r, SCHEDULED_RELATIVE_DAY_LABELS_EN as i, SCHEDULED_STATUS_BADGE_LABEL_EN as a, SCHEDULED_SUMMARY_LABEL_EN as o } from "../../../util/dist/lib/billDetailLabels.js";
|
|
2
|
+
import { BILL_DUE_DATE_LABELS_EN as s } from "../../../util/dist/lib/resolveBillDueDate.js";
|
|
2
3
|
import "../../../util/dist/index.js";
|
|
3
|
-
import { APPROVAL_POLICY_RULE_COPY_EN as
|
|
4
|
-
import { PAYABLE_AUDIT_HISTORY_LABELS_EN as
|
|
5
|
-
import { BILL_DETAILS_SHEET_LABELS_EN as
|
|
4
|
+
import { APPROVAL_POLICY_RULE_COPY_EN as c } from "./index9.js";
|
|
5
|
+
import { PAYABLE_AUDIT_HISTORY_LABELS_EN as l } from "./index29.js";
|
|
6
|
+
import { BILL_DETAILS_SHEET_LABELS_EN as u } from "../../ui/dist/index33.js";
|
|
6
7
|
import "../../ui/dist/index.js";
|
|
7
8
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js
|
|
8
|
-
var
|
|
9
|
+
var d = {
|
|
9
10
|
subtitle: "Accounts payable",
|
|
10
11
|
vendorRow: "Vendor",
|
|
11
12
|
bankAccountRow: "ACH bank account",
|
|
@@ -26,6 +27,7 @@ var u = {
|
|
|
26
27
|
actionError: n.actionError,
|
|
27
28
|
actionSuccess: n.actionSuccess,
|
|
28
29
|
scheduledRelativeDay: i,
|
|
30
|
+
dueDate: s,
|
|
29
31
|
scheduledSummary: o,
|
|
30
32
|
scheduledStatusBadge: a,
|
|
31
33
|
awaitingApprovalNotice: e,
|
|
@@ -34,9 +36,9 @@ var u = {
|
|
|
34
36
|
rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
|
|
35
37
|
rejectedOn: (e) => `Rejected on ${e}`,
|
|
36
38
|
rejectionMessage: (e) => `"${e}"`,
|
|
37
|
-
sheet:
|
|
38
|
-
history:
|
|
39
|
+
sheet: u,
|
|
40
|
+
history: l,
|
|
39
41
|
decisionDialog: n.decisionDialog,
|
|
40
|
-
approvalPolicyCopy:
|
|
42
|
+
approvalPolicyCopy: c
|
|
41
43
|
};
|
|
42
|
-
export {
|
|
44
|
+
export { d as BILL_DETAILS_LABELS_EN };
|
|
@@ -8,235 +8,238 @@ import { useAllLedgerAccountsQuery as ee } from "../../../../shared/data-access/
|
|
|
8
8
|
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 n } from "../../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
|
|
11
|
+
import { useLocalCalendarDay as r } from "../../../../shared/feature/dist/lib/calendar/useLocalCalendarDay.js";
|
|
11
12
|
import "../../../../shared/feature/dist/index.js";
|
|
12
|
-
import { mergeDecisionDialogCopy as
|
|
13
|
-
import { hasSuspectedPayableDuplicate as
|
|
13
|
+
import { mergeDecisionDialogCopy as i, mergePaymentHistoryMethodLabels as a } from "../../../util/dist/lib/billDetailLabels.js";
|
|
14
|
+
import { hasSuspectedPayableDuplicate as o } from "../../../util/dist/lib/payableDuplicates.js";
|
|
14
15
|
import "../../../util/dist/index.js";
|
|
15
|
-
import { mapPayableToBillDetails as
|
|
16
|
-
import { BillDecisionDialog as
|
|
16
|
+
import { mapPayableToBillDetails as s } from "./index26.js";
|
|
17
|
+
import { BillDecisionDialog as c } from "../../../ui/dist/index4.js";
|
|
17
18
|
import "../../../ui/dist/index.js";
|
|
18
|
-
import { BillDetailsSheet as
|
|
19
|
-
import { BillDuplicateNotice as
|
|
19
|
+
import { BillDetailsSheet as l } from "../../ui/dist/index34.js";
|
|
20
|
+
import { BillDuplicateNotice as u } from "../../ui/dist/index37.js";
|
|
20
21
|
import "../../ui/dist/index.js";
|
|
21
|
-
import { useAllPayableLineItemsQuery as
|
|
22
|
-
import { usePayableQuery as
|
|
22
|
+
import { useAllPayableLineItemsQuery as d } from "../../data-access/dist/index5.js";
|
|
23
|
+
import { usePayableQuery as f } from "../../data-access/dist/index23.js";
|
|
23
24
|
import "../../data-access/dist/index.js";
|
|
24
|
-
import { buildPaymentHistory as
|
|
25
|
-
import { canOverrideApprovalPolicy as
|
|
26
|
-
import { useApprovalPolicyCardView as
|
|
27
|
-
import { resolveApprovalNotices as
|
|
28
|
-
import { useBillRejectionNotice as
|
|
29
|
-
import { useCurrentApprovalRequestId as
|
|
30
|
-
import { usePayableAuditHistory as
|
|
31
|
-
import { usePayableDetailActions as
|
|
32
|
-
import { useScheduledDateLabel as
|
|
33
|
-
import { useScheduledPayment as
|
|
34
|
-
import { usePayableAchInstructions as
|
|
25
|
+
import { buildPaymentHistory as p } from "./index2.js";
|
|
26
|
+
import { canOverrideApprovalPolicy as m, canReadCounterpartBankAccounts as h } from "./index5.js";
|
|
27
|
+
import { useApprovalPolicyCardView as g } from "./index14.js";
|
|
28
|
+
import { resolveApprovalNotices as ne } from "./index16.js";
|
|
29
|
+
import { useBillRejectionNotice as re } from "./index19.js";
|
|
30
|
+
import { useCurrentApprovalRequestId as ie } from "./index20.js";
|
|
31
|
+
import { usePayableAuditHistory as ae } from "./index21.js";
|
|
32
|
+
import { usePayableDetailActions as oe } from "./index22.js";
|
|
33
|
+
import { useScheduledDateLabel as se } from "./index23.js";
|
|
34
|
+
import { useScheduledPayment as ce } from "./index24.js";
|
|
35
|
+
import { usePayableAchInstructions as le } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
35
36
|
import "../../../../shared/counterpart-management/feature/dist/index.js";
|
|
36
37
|
import { BILL_DETAILS_LABELS_EN as _ } from "./index46.js";
|
|
37
|
-
import { useMemo as v, useRef as
|
|
38
|
-
import { Fragment as
|
|
38
|
+
import { useMemo as v, useRef as ue, useState as de } from "react";
|
|
39
|
+
import { Fragment as fe, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
39
40
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js
|
|
40
|
-
function
|
|
41
|
-
let
|
|
41
|
+
function x({ open: x, onOpenChange: S, payableId: C, onClose: w, onExpand: T, onEdit: E, testId: D, labels: O, renderPaymentFlows: k }) {
|
|
42
|
+
let A = v(() => ({
|
|
42
43
|
..._,
|
|
43
|
-
...
|
|
44
|
+
...O,
|
|
44
45
|
sheet: {
|
|
45
46
|
..._.sheet,
|
|
46
|
-
...
|
|
47
|
+
...O?.sheet,
|
|
47
48
|
statusBadge: {
|
|
48
49
|
..._.sheet.statusBadge,
|
|
49
|
-
...
|
|
50
|
+
...O?.sheet?.statusBadge
|
|
50
51
|
},
|
|
51
52
|
approvalPolicy: {
|
|
52
53
|
..._.sheet.approvalPolicy,
|
|
53
|
-
...
|
|
54
|
-
},
|
|
55
|
-
dueDate: {
|
|
56
|
-
..._.sheet.dueDate,
|
|
57
|
-
...k?.sheet?.dueDate
|
|
54
|
+
...O?.sheet?.approvalPolicy
|
|
58
55
|
},
|
|
59
56
|
auditHistory: {
|
|
60
57
|
..._.sheet.auditHistory,
|
|
61
|
-
...
|
|
58
|
+
...O?.sheet?.auditHistory
|
|
62
59
|
}
|
|
63
60
|
},
|
|
64
|
-
decisionDialog:
|
|
61
|
+
decisionDialog: i(_.decisionDialog, O?.decisionDialog),
|
|
65
62
|
approvalPolicyCopy: {
|
|
66
63
|
..._.approvalPolicyCopy,
|
|
67
|
-
...
|
|
64
|
+
...O?.approvalPolicyCopy
|
|
68
65
|
},
|
|
69
66
|
history: {
|
|
70
67
|
..._.history,
|
|
71
|
-
...
|
|
68
|
+
...O?.history
|
|
72
69
|
},
|
|
73
70
|
scheduledRelativeDay: {
|
|
74
71
|
..._.scheduledRelativeDay,
|
|
75
|
-
...
|
|
72
|
+
...O?.scheduledRelativeDay
|
|
73
|
+
},
|
|
74
|
+
dueDate: {
|
|
75
|
+
..._.dueDate,
|
|
76
|
+
...O?.dueDate
|
|
76
77
|
},
|
|
77
78
|
actionSuccess: {
|
|
78
79
|
..._.actionSuccess,
|
|
79
|
-
...
|
|
80
|
+
...O?.actionSuccess
|
|
80
81
|
},
|
|
81
|
-
paymentHistoryMethodLabels:
|
|
82
|
-
}), [
|
|
83
|
-
payableId:
|
|
84
|
-
status:
|
|
85
|
-
}),
|
|
86
|
-
payableId:
|
|
87
|
-
payableStatus:
|
|
88
|
-
payableUpdatedAt:
|
|
89
|
-
enabled:
|
|
90
|
-
userNames:
|
|
91
|
-
labels:
|
|
92
|
-
}),
|
|
93
|
-
payableId:
|
|
94
|
-
approvalPolicyId:
|
|
95
|
-
status:
|
|
96
|
-
updatedAt:
|
|
97
|
-
payableFetchedAt:
|
|
98
|
-
copy:
|
|
99
|
-
}),
|
|
100
|
-
status:
|
|
101
|
-
scopes:
|
|
102
|
-
arePendingApproversUnknown:
|
|
103
|
-
hasApprovalPolicy: !!
|
|
104
|
-
hasWaitingRequest:
|
|
105
|
-
}),
|
|
106
|
-
isCapabilityUnknown:
|
|
107
|
-
canApproveNow: !!
|
|
108
|
-
canOverridePolicy:
|
|
109
|
-
status:
|
|
110
|
-
hasApprovalPolicy: !!
|
|
111
|
-
pendingApproverNames:
|
|
112
|
-
labels:
|
|
113
|
-
}),
|
|
114
|
-
payableId:
|
|
115
|
-
scheduledPaymentDate:
|
|
116
|
-
}),
|
|
117
|
-
counterpartId:
|
|
118
|
-
currency:
|
|
119
|
-
currentBankAccountId:
|
|
120
|
-
enabled:
|
|
121
|
-
}), { actions:
|
|
122
|
-
payableId:
|
|
123
|
-
status:
|
|
124
|
-
currentApprovalRequestId:
|
|
125
|
-
hasScheduledPayment:
|
|
126
|
-
scheduledPaymentIntentId:
|
|
127
|
-
isScheduledPaymentUnknown:
|
|
128
|
-
isPayabilityUnknown:
|
|
129
|
-
hasApprovalPolicy: !!
|
|
130
|
-
hasWaitingRequest:
|
|
131
|
-
pendingApprovers:
|
|
132
|
-
arePendingApproversUnknown:
|
|
82
|
+
paymentHistoryMethodLabels: a(O?.paymentHistoryMethodLabels)
|
|
83
|
+
}), [O]), j = f(C, { pollWhilePolicyAssignmentUnsettled: !0 }), M = d(C), N = ee(), { initResponse: P } = te(), F = j.data, I = ue(null), [L, R] = de(!1), z = ie({
|
|
84
|
+
payableId: C,
|
|
85
|
+
status: F?.status
|
|
86
|
+
}), B = F?.status === "rejected", V = e(P?.scopes, [t.ApprovalRequestReadOrg]), pe = B && V, H = e(P?.scopes, [t.UserReadOrg]), { userNames: U, isError: me, isResolving: he } = n({ enabled: H }), W = re({
|
|
87
|
+
payableId: C,
|
|
88
|
+
payableStatus: F?.status,
|
|
89
|
+
payableUpdatedAt: F?.updated_at,
|
|
90
|
+
enabled: pe,
|
|
91
|
+
userNames: U,
|
|
92
|
+
labels: A
|
|
93
|
+
}), G = g({
|
|
94
|
+
payableId: C,
|
|
95
|
+
approvalPolicyId: F?.approval_policy_id,
|
|
96
|
+
status: F?.status,
|
|
97
|
+
updatedAt: F?.updated_at,
|
|
98
|
+
payableFetchedAt: j.dataUpdatedAt,
|
|
99
|
+
copy: A.approvalPolicyCopy
|
|
100
|
+
}), ge = m({
|
|
101
|
+
status: F?.status,
|
|
102
|
+
scopes: P?.scopes,
|
|
103
|
+
arePendingApproversUnknown: G.isLoading,
|
|
104
|
+
hasApprovalPolicy: !!F?.approval_policy_id,
|
|
105
|
+
hasWaitingRequest: z.hasWaitingRequest
|
|
106
|
+
}), K = ne({
|
|
107
|
+
isCapabilityUnknown: z.isLoading || G.isLoading,
|
|
108
|
+
canApproveNow: !!z.id,
|
|
109
|
+
canOverridePolicy: ge,
|
|
110
|
+
status: F?.status,
|
|
111
|
+
hasApprovalPolicy: !!F?.approval_policy_id,
|
|
112
|
+
pendingApproverNames: G.pendingApprovers.flatMap((e) => e.names),
|
|
113
|
+
labels: A
|
|
114
|
+
}), q = ce({
|
|
115
|
+
payableId: C,
|
|
116
|
+
scheduledPaymentDate: F?.scheduled_payment_date
|
|
117
|
+
}), J = h(P?.scopes), Y = le({
|
|
118
|
+
counterpartId: F?.counterpart_id,
|
|
119
|
+
currency: F?.currency,
|
|
120
|
+
currentBankAccountId: F?.counterpart_bank_account_id,
|
|
121
|
+
enabled: J
|
|
122
|
+
}), { actions: _e, decisionDialog: ve } = oe({
|
|
123
|
+
payableId: F ? C : void 0,
|
|
124
|
+
status: F?.status,
|
|
125
|
+
currentApprovalRequestId: z.id,
|
|
126
|
+
hasScheduledPayment: q.hasScheduledPayment,
|
|
127
|
+
scheduledPaymentIntentId: q.scheduledPaymentIntentId,
|
|
128
|
+
isScheduledPaymentUnknown: q.isResolving,
|
|
129
|
+
isPayabilityUnknown: Y.isLoading,
|
|
130
|
+
hasApprovalPolicy: !!F?.approval_policy_id,
|
|
131
|
+
hasWaitingRequest: z.hasWaitingRequest,
|
|
132
|
+
pendingApprovers: G.pendingApprovers,
|
|
133
|
+
arePendingApproversUnknown: G.isLoading,
|
|
133
134
|
labels: {
|
|
134
|
-
edit:
|
|
135
|
-
payBill:
|
|
136
|
-
markAsPaid:
|
|
137
|
-
reject:
|
|
138
|
-
approve:
|
|
139
|
-
cancel:
|
|
140
|
-
cancelScheduledPayment:
|
|
141
|
-
reopen:
|
|
142
|
-
forceApprove:
|
|
143
|
-
forceReject:
|
|
144
|
-
policyOverridesHeading:
|
|
145
|
-
decisionDialog:
|
|
146
|
-
actionError:
|
|
147
|
-
actionSuccess:
|
|
135
|
+
edit: A.sheet.editButton,
|
|
136
|
+
payBill: A.sheet.payButton,
|
|
137
|
+
markAsPaid: A.sheet.markAsPaidButton,
|
|
138
|
+
reject: A.sheet.rejectButton,
|
|
139
|
+
approve: A.sheet.approveButton,
|
|
140
|
+
cancel: A.sheet.cancelButton,
|
|
141
|
+
cancelScheduledPayment: A.sheet.cancelScheduledPaymentButton,
|
|
142
|
+
reopen: A.sheet.reopenButton,
|
|
143
|
+
forceApprove: A.sheet.forceApproveButton,
|
|
144
|
+
forceReject: A.sheet.forceRejectButton,
|
|
145
|
+
policyOverridesHeading: A.sheet.policyOverridesGroup,
|
|
146
|
+
decisionDialog: A.decisionDialog,
|
|
147
|
+
actionError: A.actionError,
|
|
148
|
+
actionSuccess: A.actionSuccess
|
|
148
149
|
},
|
|
149
|
-
isMarkAsPaidPending:
|
|
150
|
-
onMarkAsPaidSelect: () =>
|
|
151
|
-
onPayBillSelect: () =>
|
|
152
|
-
onEditSelect:
|
|
150
|
+
isMarkAsPaidPending: L,
|
|
151
|
+
onMarkAsPaidSelect: () => I.current?.openMarkAsPaid(),
|
|
152
|
+
onPayBillSelect: () => I.current?.openPayBill(),
|
|
153
|
+
onEditSelect: E,
|
|
153
154
|
onActionSucceeded: (e) => {
|
|
154
|
-
e === "reopen" &&
|
|
155
|
+
e === "reopen" && E?.();
|
|
155
156
|
}
|
|
156
|
-
}),
|
|
157
|
-
hasScheduledPayment:
|
|
158
|
-
scheduledDate:
|
|
159
|
-
labels:
|
|
160
|
-
}),
|
|
161
|
-
payableId:
|
|
162
|
-
userNames:
|
|
163
|
-
isRosterError:
|
|
164
|
-
labels:
|
|
165
|
-
}),
|
|
166
|
-
records:
|
|
167
|
-
events:
|
|
168
|
-
currencyCode:
|
|
169
|
-
labels:
|
|
157
|
+
}), X = se({
|
|
158
|
+
hasScheduledPayment: q.hasScheduledPayment,
|
|
159
|
+
scheduledDate: q.scheduledDate,
|
|
160
|
+
labels: A.scheduledRelativeDay
|
|
161
|
+
}), ye = X ? A.scheduledSummary(X.label) : void 0, be = o(F) ? /* @__PURE__ */ y(u, { onOpenFullScreen: T }) : void 0, { historyQuery: Z, rows: xe, namesError: Q } = ae({
|
|
162
|
+
payableId: C,
|
|
163
|
+
userNames: U,
|
|
164
|
+
isRosterError: H && me,
|
|
165
|
+
labels: A.history
|
|
166
|
+
}), Se = v(() => p({
|
|
167
|
+
records: q.paymentRecords,
|
|
168
|
+
events: Z.data?.data ?? [],
|
|
169
|
+
currencyCode: F?.currency,
|
|
170
|
+
labels: A
|
|
170
171
|
}), [
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
]),
|
|
176
|
-
payable:
|
|
177
|
-
lineItems:
|
|
178
|
-
ledgerAccounts:
|
|
179
|
-
labels:
|
|
180
|
-
hasScheduledPayment:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
172
|
+
q.paymentRecords,
|
|
173
|
+
Z.data,
|
|
174
|
+
F?.currency,
|
|
175
|
+
A
|
|
176
|
+
]), $ = r(), Ce = v(() => F ? s({
|
|
177
|
+
payable: F,
|
|
178
|
+
lineItems: M.lineItems,
|
|
179
|
+
ledgerAccounts: N.data?.data ?? [],
|
|
180
|
+
labels: A,
|
|
181
|
+
hasScheduledPayment: q.hasScheduledPayment,
|
|
182
|
+
today: $,
|
|
183
|
+
rejection: W,
|
|
184
|
+
achInstructions: Y.achInstructions,
|
|
185
|
+
achInstructionsReadable: J && !Y.isLoading && !Y.isError
|
|
184
186
|
}) : void 0, [
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
Y
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
187
|
+
F,
|
|
188
|
+
M.lineItems,
|
|
189
|
+
N.data,
|
|
190
|
+
A,
|
|
191
|
+
q.hasScheduledPayment,
|
|
192
|
+
$,
|
|
193
|
+
W,
|
|
194
|
+
Y.achInstructions,
|
|
195
|
+
Y.isError,
|
|
196
|
+
Y.isLoading,
|
|
197
|
+
J
|
|
198
|
+
]), we = j.isLoading || M.isResolving || N.isResolving || Y.isLoading, Te = j.isError || M.isError || N.isError;
|
|
199
|
+
return /* @__PURE__ */ b(fe, { children: [
|
|
200
|
+
/* @__PURE__ */ y(l, {
|
|
201
|
+
open: x,
|
|
202
|
+
onOpenChange: S,
|
|
203
|
+
details: Ce,
|
|
204
|
+
actions: _e,
|
|
205
|
+
approvalPolicy: G.view,
|
|
206
|
+
showApprovalOverrideNotice: K.showApprovalOverrideNotice,
|
|
207
|
+
awaitingApprovalNotice: K.awaitingApprovalNotice,
|
|
208
|
+
scheduledSummary: ye,
|
|
209
|
+
scheduledSummaryDate: X?.absoluteLabel,
|
|
210
|
+
auditHistory: xe,
|
|
211
|
+
auditHistoryError: Z.isError,
|
|
212
|
+
auditHistoryLoading: Z.isLoading || he,
|
|
213
|
+
auditHistoryNamesError: Q,
|
|
214
|
+
paymentHistory: Se,
|
|
215
|
+
paymentHistoryError: q.isError || Z.isError,
|
|
216
|
+
paymentHistoryLoading: q.isResolving || Z.isLoading,
|
|
217
|
+
isLoading: we,
|
|
218
|
+
isError: Te,
|
|
219
|
+
notice: be,
|
|
220
|
+
onClose: w,
|
|
221
|
+
onExpand: T,
|
|
222
|
+
testId: D,
|
|
223
|
+
labels: A.sheet
|
|
221
224
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
...
|
|
224
|
-
labels: { cancelButton:
|
|
225
|
-
testId:
|
|
226
|
-
confirmTestId:
|
|
227
|
-
reasonTestId:
|
|
228
|
-
reasonFieldId:
|
|
225
|
+
/* @__PURE__ */ y(c, {
|
|
226
|
+
...ve,
|
|
227
|
+
labels: { cancelButton: A.decisionDialog.cancelButton },
|
|
228
|
+
testId: D ? `${D}-decision-dialog` : void 0,
|
|
229
|
+
confirmTestId: D ? `${D}-decision-confirm` : void 0,
|
|
230
|
+
reasonTestId: D ? `${D}-decision-reason` : void 0,
|
|
231
|
+
reasonFieldId: D ? `${D}-decision-reason-field` : void 0
|
|
229
232
|
}),
|
|
230
|
-
|
|
231
|
-
ref:
|
|
232
|
-
payable:
|
|
233
|
-
payableId:
|
|
233
|
+
k?.({
|
|
234
|
+
ref: I,
|
|
235
|
+
payable: F,
|
|
236
|
+
payableId: C,
|
|
234
237
|
isPayBillEnabled: !0,
|
|
235
|
-
hasScheduledPayment:
|
|
236
|
-
onMissingAchInstructions:
|
|
237
|
-
onMarkAsPaidPendingChange:
|
|
238
|
-
testId:
|
|
238
|
+
hasScheduledPayment: q.hasScheduledPayment,
|
|
239
|
+
onMissingAchInstructions: T,
|
|
240
|
+
onMarkAsPaidPendingChange: R,
|
|
241
|
+
testId: D
|
|
239
242
|
})
|
|
240
243
|
] });
|
|
241
244
|
}
|
|
242
|
-
export {
|
|
245
|
+
export { x as BillDetailsContainer, x as default };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js
CHANGED
|
@@ -5,14 +5,12 @@ import { VENDOR_SUMMARY_CARD_LABELS_EN as i } from "./index11.js";
|
|
|
5
5
|
import "./index13.js";
|
|
6
6
|
import { BILL_STATUS_BADGE_LABELS_EN as a } from "../../../../shared/document-status/ui/dist/index2.js";
|
|
7
7
|
import "../../../../shared/document-status/ui/dist/index.js";
|
|
8
|
-
import { DUE_DATE_VALUE_LABELS_EN as o } from "../../../ui/dist/index21.js";
|
|
9
|
-
import "../../../ui/dist/index.js";
|
|
10
8
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js
|
|
11
|
-
var
|
|
9
|
+
var o = {
|
|
12
10
|
...e,
|
|
13
11
|
error: "Couldn't load audit history.",
|
|
14
12
|
namesError: "Some names could not be loaded."
|
|
15
|
-
},
|
|
13
|
+
}, s = {
|
|
16
14
|
errorTitle: "Couldn't load this bill",
|
|
17
15
|
errorDescription: "Something went wrong. Try again.",
|
|
18
16
|
amountDueHeading: "Amount due",
|
|
@@ -32,50 +30,45 @@ var s = {
|
|
|
32
30
|
amountColumn: "Amount",
|
|
33
31
|
paymentHistoryHeading: "Payment history",
|
|
34
32
|
paymentHistoryErrorDescription: "Couldn't load payment history.",
|
|
35
|
-
history:
|
|
33
|
+
history: o,
|
|
36
34
|
statusBadge: a,
|
|
37
35
|
approvalPolicy: r,
|
|
38
|
-
dueDate: o,
|
|
39
36
|
payToCard: {
|
|
40
37
|
...i,
|
|
41
38
|
editAction: "Edit vendor"
|
|
42
39
|
},
|
|
43
40
|
requiredFieldsLegend: t
|
|
44
41
|
};
|
|
45
|
-
function
|
|
42
|
+
function c(e) {
|
|
46
43
|
let t = {
|
|
47
|
-
...
|
|
44
|
+
...s.payToCard.ach.fieldMarkers,
|
|
48
45
|
...e?.payToCard?.ach?.fieldMarkers
|
|
49
46
|
};
|
|
50
47
|
return {
|
|
51
|
-
...
|
|
48
|
+
...s,
|
|
52
49
|
...e,
|
|
53
50
|
statusBadge: {
|
|
54
|
-
...
|
|
51
|
+
...s.statusBadge,
|
|
55
52
|
...e?.statusBadge
|
|
56
53
|
},
|
|
57
54
|
approvalPolicy: {
|
|
58
|
-
...
|
|
55
|
+
...s.approvalPolicy,
|
|
59
56
|
...e?.approvalPolicy
|
|
60
57
|
},
|
|
61
|
-
dueDate: {
|
|
62
|
-
...c.dueDate,
|
|
63
|
-
...e?.dueDate
|
|
64
|
-
},
|
|
65
58
|
payToCard: {
|
|
66
|
-
...
|
|
59
|
+
...s.payToCard,
|
|
67
60
|
...e?.payToCard,
|
|
68
61
|
ach: {
|
|
69
|
-
...
|
|
62
|
+
...s.payToCard.ach,
|
|
70
63
|
...e?.payToCard?.ach,
|
|
71
64
|
fieldMarkers: t
|
|
72
65
|
}
|
|
73
66
|
},
|
|
74
67
|
history: {
|
|
75
|
-
...
|
|
68
|
+
...s.history,
|
|
76
69
|
...e?.history
|
|
77
70
|
},
|
|
78
71
|
requiredFieldsLegend: n(t, e?.requiredFieldsLegend)
|
|
79
72
|
};
|
|
80
73
|
}
|
|
81
|
-
export {
|
|
74
|
+
export { o as BILL_AUDIT_HISTORY_SECTION_LABELS_EN, s as BILL_DETAIL_BODY_LABELS_EN, c as mergeBillDetailBodyLabels };
|