@tesouro/embedded-components-react 0.5.76 → 0.5.78
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/index48.js +67 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +58 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +251 -222
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +206 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +124 -124
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/policyScript.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -43,181 +43,181 @@ import { usePayableDetailActions as ve } from "./index36.js";
|
|
|
43
43
|
import { useScheduledPayment as ye } from "./index37.js";
|
|
44
44
|
import { BILL_DETAILS_LABELS_EN as m } from "./index62.js";
|
|
45
45
|
import { useMemo as h, useRef as be } from "react";
|
|
46
|
-
import { Fragment as xe, jsx as g, jsxs as
|
|
46
|
+
import { Fragment as xe, jsx as g, jsxs as Se } from "react/jsx-runtime";
|
|
47
47
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js
|
|
48
|
-
function
|
|
49
|
-
let
|
|
48
|
+
function _({ open: _, onOpenChange: v, payableId: y, onClose: b, onExpand: x, onEdit: S, testId: C, labels: w, poweredByBankName: T }) {
|
|
49
|
+
let E = h(() => ({
|
|
50
50
|
...m,
|
|
51
|
-
...
|
|
51
|
+
...w,
|
|
52
52
|
sheet: {
|
|
53
53
|
...m.sheet,
|
|
54
|
-
...
|
|
54
|
+
...w?.sheet,
|
|
55
55
|
statusBadge: {
|
|
56
56
|
...m.sheet.statusBadge,
|
|
57
|
-
...
|
|
57
|
+
...w?.sheet?.statusBadge
|
|
58
58
|
},
|
|
59
59
|
approvalPolicy: {
|
|
60
60
|
...m.sheet.approvalPolicy,
|
|
61
|
-
...
|
|
61
|
+
...w?.sheet?.approvalPolicy
|
|
62
62
|
},
|
|
63
63
|
dueDate: {
|
|
64
64
|
...m.sheet.dueDate,
|
|
65
|
-
...
|
|
65
|
+
...w?.sheet?.dueDate
|
|
66
66
|
},
|
|
67
67
|
auditHistory: {
|
|
68
68
|
...m.sheet.auditHistory,
|
|
69
|
-
...
|
|
69
|
+
...w?.sheet?.auditHistory
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
|
-
decisionDialog: ue(m.decisionDialog,
|
|
72
|
+
decisionDialog: ue(m.decisionDialog, w?.decisionDialog),
|
|
73
73
|
approvalPolicyCopy: {
|
|
74
74
|
...m.approvalPolicyCopy,
|
|
75
|
-
...
|
|
75
|
+
...w?.approvalPolicyCopy
|
|
76
76
|
},
|
|
77
77
|
history: {
|
|
78
78
|
...m.history,
|
|
79
|
-
...
|
|
79
|
+
...w?.history
|
|
80
80
|
},
|
|
81
|
-
markAsPaid: ce(
|
|
81
|
+
markAsPaid: ce(w?.markAsPaid),
|
|
82
82
|
actionSuccess: {
|
|
83
83
|
...m.actionSuccess,
|
|
84
|
-
...
|
|
84
|
+
...w?.actionSuccess
|
|
85
85
|
},
|
|
86
|
-
paymentHistoryMethodLabels: de(
|
|
87
|
-
}), [
|
|
88
|
-
payableId:
|
|
89
|
-
status:
|
|
90
|
-
}),
|
|
91
|
-
payableId:
|
|
92
|
-
enabled:
|
|
93
|
-
}),
|
|
94
|
-
payableStatus:
|
|
95
|
-
approvalRequests:
|
|
96
|
-
userNames:
|
|
97
|
-
payableUpdatedAt:
|
|
98
|
-
labels:
|
|
86
|
+
paymentHistoryMethodLabels: de(w?.paymentHistoryMethodLabels)
|
|
87
|
+
}), [w]), D = s(y), O = o(y), k = ee(), { initResponse: A } = n(), j = D.data, M = be(null), N = _e({
|
|
88
|
+
payableId: y,
|
|
89
|
+
status: j?.status
|
|
90
|
+
}), Ce = j?.status === "rejected", we = e(A?.scopes, [t.ApprovalRequestReadOrg]), P = Ce && we, F = me({
|
|
91
|
+
payableId: y,
|
|
92
|
+
enabled: P
|
|
93
|
+
}), I = i(y, { enabled: P }), L = e(A?.scopes, [t.UserReadOrg]), { userNames: R, isError: Te, isResolving: Ee } = r({ enabled: L }), z = h(() => pe(I.data?.data, F.roundStartedAt), [I.data, F.roundStartedAt]), B = h(() => ge({
|
|
94
|
+
payableStatus: j?.status,
|
|
95
|
+
approvalRequests: z,
|
|
96
|
+
userNames: R,
|
|
97
|
+
payableUpdatedAt: j?.updated_at,
|
|
98
|
+
labels: E
|
|
99
99
|
}), [
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
B,
|
|
100
|
+
j?.status,
|
|
101
|
+
j?.updated_at,
|
|
103
102
|
z,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
103
|
+
R,
|
|
104
|
+
E
|
|
105
|
+
]), V = he({
|
|
106
|
+
payableId: y,
|
|
107
|
+
approvalPolicyId: j?.approval_policy_id,
|
|
108
|
+
copy: E.approvalPolicyCopy
|
|
109
|
+
}), H = p({
|
|
110
|
+
status: j?.status,
|
|
111
|
+
scopes: A?.scopes,
|
|
112
|
+
arePendingApproversUnknown: V.isLoading,
|
|
113
|
+
hasApprovalPolicy: !!j?.approval_policy_id,
|
|
114
|
+
hasWaitingRequest: N.hasWaitingRequest
|
|
115
|
+
}), U = !!N.id, W = N.isLoading || V.isLoading, G = h(() => V.pendingApprovers.length ? V.pendingApprovers.flatMap((e) => e.names) : void 0, [V.pendingApprovers]), K = ye({
|
|
116
|
+
payableId: y,
|
|
117
|
+
scheduledPaymentDate: j?.scheduled_payment_date
|
|
118
|
+
}), q = re(A?.scopes), J = ae({
|
|
119
|
+
counterpartId: j?.counterpart_id,
|
|
120
|
+
currency: j?.currency,
|
|
121
|
+
currentBankAccountId: j?.counterpart_bank_account_id,
|
|
122
122
|
enabled: q
|
|
123
123
|
}), Y = le({
|
|
124
|
-
payableId:
|
|
125
|
-
amountDueMinorUnits: ie(
|
|
126
|
-
amountToPayMinorUnits:
|
|
127
|
-
currencyCode:
|
|
128
|
-
dueDate:
|
|
124
|
+
payableId: y,
|
|
125
|
+
amountDueMinorUnits: ie(j) ?? 0,
|
|
126
|
+
amountToPayMinorUnits: j?.amount_to_pay ?? void 0,
|
|
127
|
+
currencyCode: j?.currency ?? void 0,
|
|
128
|
+
dueDate: j?.due_date,
|
|
129
129
|
hasScheduledPayment: K.hasScheduledPayment,
|
|
130
|
-
testId:
|
|
131
|
-
labels:
|
|
130
|
+
testId: C,
|
|
131
|
+
labels: E.markAsPaid
|
|
132
132
|
}), { actions: De, decisionDialog: Oe } = ve({
|
|
133
|
-
payableId:
|
|
134
|
-
status:
|
|
135
|
-
currentApprovalRequestId:
|
|
133
|
+
payableId: j ? y : void 0,
|
|
134
|
+
status: j?.status,
|
|
135
|
+
currentApprovalRequestId: N.id,
|
|
136
136
|
hasScheduledPayment: K.hasScheduledPayment,
|
|
137
137
|
scheduledPaymentIntentId: K.scheduledPaymentIntentId,
|
|
138
138
|
isScheduledPaymentUnknown: K.isResolving,
|
|
139
139
|
isPayabilityUnknown: J.isLoading,
|
|
140
|
-
hasApprovalPolicy: !!
|
|
141
|
-
hasWaitingRequest:
|
|
142
|
-
pendingApprovers:
|
|
143
|
-
arePendingApproversUnknown:
|
|
140
|
+
hasApprovalPolicy: !!j?.approval_policy_id,
|
|
141
|
+
hasWaitingRequest: N.hasWaitingRequest,
|
|
142
|
+
pendingApprovers: V.pendingApprovers,
|
|
143
|
+
arePendingApproversUnknown: V.isLoading,
|
|
144
144
|
labels: {
|
|
145
|
-
edit:
|
|
146
|
-
payBill:
|
|
147
|
-
markAsPaid:
|
|
148
|
-
reject:
|
|
149
|
-
approve:
|
|
150
|
-
cancel:
|
|
151
|
-
cancelScheduledPayment:
|
|
152
|
-
reopen:
|
|
153
|
-
forceApprove:
|
|
154
|
-
forceReject:
|
|
155
|
-
policyOverridesHeading:
|
|
156
|
-
decisionDialog:
|
|
157
|
-
actionError:
|
|
158
|
-
actionSuccess:
|
|
145
|
+
edit: E.sheet.editButton,
|
|
146
|
+
payBill: E.sheet.payButton,
|
|
147
|
+
markAsPaid: E.sheet.markAsPaidButton,
|
|
148
|
+
reject: E.sheet.rejectButton,
|
|
149
|
+
approve: E.sheet.approveButton,
|
|
150
|
+
cancel: E.sheet.cancelButton,
|
|
151
|
+
cancelScheduledPayment: E.sheet.cancelScheduledPaymentButton,
|
|
152
|
+
reopen: E.sheet.reopenButton,
|
|
153
|
+
forceApprove: E.sheet.forceApproveButton,
|
|
154
|
+
forceReject: E.sheet.forceRejectButton,
|
|
155
|
+
policyOverridesHeading: E.sheet.policyOverridesGroup,
|
|
156
|
+
decisionDialog: E.decisionDialog,
|
|
157
|
+
actionError: E.actionError,
|
|
158
|
+
actionSuccess: E.actionSuccess
|
|
159
159
|
},
|
|
160
160
|
isMarkAsPaidPending: Y.isPending,
|
|
161
161
|
onMarkAsPaidSelect: Y.open,
|
|
162
|
-
onPayBillSelect: () =>
|
|
163
|
-
onEditSelect:
|
|
162
|
+
onPayBillSelect: () => M.current?.open(),
|
|
163
|
+
onEditSelect: S,
|
|
164
164
|
onActionSucceeded: (e) => {
|
|
165
|
-
e === "reopen" &&
|
|
165
|
+
e === "reopen" && S?.();
|
|
166
166
|
}
|
|
167
|
-
}), ke = K.hasScheduledPayment && K.scheduledDateLabel ?
|
|
168
|
-
payable:
|
|
169
|
-
canManage: e(
|
|
167
|
+
}), ke = K.hasScheduledPayment && K.scheduledDateLabel ? E.scheduledSummary(K.scheduledDateLabel) : void 0, X = f({
|
|
168
|
+
payable: j,
|
|
169
|
+
canManage: e(A?.scopes, [t.PayableWriteOrg])
|
|
170
170
|
}), Z = X.isPossibleDuplicate ? /* @__PURE__ */ g(u, {
|
|
171
171
|
onNotADuplicate: X.onNotADuplicate,
|
|
172
172
|
isActionDisabled: X.isBusy
|
|
173
|
-
}) : void 0, Q = a(
|
|
173
|
+
}) : void 0, Q = a(y), $ = h(() => te(Q.data?.data ?? [], R, E.history), [
|
|
174
174
|
Q.data,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
]), Ae =
|
|
175
|
+
R,
|
|
176
|
+
E.history
|
|
177
|
+
]), Ae = L && Te && ne(Q.data?.data ?? [], $, R), je = h(() => fe({
|
|
178
178
|
records: K.paymentRecords,
|
|
179
179
|
events: Q.data?.data ?? [],
|
|
180
|
-
currencyCode:
|
|
181
|
-
labels:
|
|
180
|
+
currencyCode: j?.currency,
|
|
181
|
+
labels: E
|
|
182
182
|
}), [
|
|
183
183
|
K.paymentRecords,
|
|
184
184
|
Q.data,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
]), Me = h(() =>
|
|
188
|
-
payable:
|
|
189
|
-
lineItems:
|
|
190
|
-
ledgerAccounts:
|
|
191
|
-
labels:
|
|
185
|
+
j?.currency,
|
|
186
|
+
E
|
|
187
|
+
]), Me = h(() => j ? se({
|
|
188
|
+
payable: j,
|
|
189
|
+
lineItems: O.lineItems,
|
|
190
|
+
ledgerAccounts: k.data?.data ?? [],
|
|
191
|
+
labels: E,
|
|
192
192
|
hasScheduledPayment: K.hasScheduledPayment,
|
|
193
|
-
rejection:
|
|
193
|
+
rejection: B,
|
|
194
194
|
achInstructions: J.achInstructions,
|
|
195
195
|
achInstructionsReadable: q && !J.isLoading && !J.isError
|
|
196
196
|
}) : void 0, [
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
j,
|
|
198
|
+
O.lineItems,
|
|
199
|
+
k.data,
|
|
200
|
+
E,
|
|
201
201
|
K.hasScheduledPayment,
|
|
202
|
-
|
|
202
|
+
B,
|
|
203
203
|
J.achInstructions,
|
|
204
204
|
J.isError,
|
|
205
205
|
J.isLoading,
|
|
206
206
|
q
|
|
207
|
-
]), Ne =
|
|
208
|
-
return /* @__PURE__ */
|
|
207
|
+
]), Ne = D.isLoading || O.isResolving || k.isResolving || J.isLoading, Pe = D.isError || O.isError || k.isError;
|
|
208
|
+
return /* @__PURE__ */ Se(xe, { children: [
|
|
209
209
|
/* @__PURE__ */ g(l, {
|
|
210
|
-
open:
|
|
211
|
-
onOpenChange:
|
|
210
|
+
open: _,
|
|
211
|
+
onOpenChange: v,
|
|
212
212
|
details: Me,
|
|
213
213
|
actions: De,
|
|
214
|
-
approvalPolicy:
|
|
215
|
-
showApprovalOverrideNotice: !W && U,
|
|
216
|
-
awaitingApprovalNotice: !W && !
|
|
214
|
+
approvalPolicy: V.view,
|
|
215
|
+
showApprovalOverrideNotice: !W && H && !U,
|
|
216
|
+
awaitingApprovalNotice: !W && !U && !H && j?.status === "approve_in_progress" && j?.approval_policy_id ? G ? E.awaitingApprovalNotice(G) : E.awaitingApprovalUnknownNotice : void 0,
|
|
217
217
|
scheduledSummary: ke,
|
|
218
218
|
auditHistory: $,
|
|
219
219
|
auditHistoryError: Q.isError,
|
|
220
|
-
auditHistoryLoading: Q.isLoading ||
|
|
220
|
+
auditHistoryLoading: Q.isLoading || Ee,
|
|
221
221
|
auditHistoryNamesError: Ae,
|
|
222
222
|
paymentHistory: je,
|
|
223
223
|
paymentHistoryError: K.isError || Q.isError,
|
|
@@ -225,27 +225,27 @@ function v({ open: v, onOpenChange: y, payableId: b, onClose: x, onExpand: S, on
|
|
|
225
225
|
isLoading: Ne,
|
|
226
226
|
isError: Pe,
|
|
227
227
|
notice: Z,
|
|
228
|
-
onClose:
|
|
229
|
-
onExpand:
|
|
230
|
-
testId:
|
|
231
|
-
labels:
|
|
228
|
+
onClose: b,
|
|
229
|
+
onExpand: x,
|
|
230
|
+
testId: C,
|
|
231
|
+
labels: E.sheet
|
|
232
232
|
}),
|
|
233
233
|
/* @__PURE__ */ g(c, {
|
|
234
234
|
...Oe,
|
|
235
|
-
labels: { cancelButton:
|
|
236
|
-
testId:
|
|
237
|
-
confirmTestId:
|
|
238
|
-
reasonTestId:
|
|
239
|
-
reasonFieldId:
|
|
235
|
+
labels: { cancelButton: E.decisionDialog.cancelButton },
|
|
236
|
+
testId: C ? `${C}-decision-dialog` : void 0,
|
|
237
|
+
confirmTestId: C ? `${C}-decision-confirm` : void 0,
|
|
238
|
+
reasonTestId: C ? `${C}-decision-reason` : void 0,
|
|
239
|
+
reasonFieldId: C ? `${C}-decision-reason-field` : void 0
|
|
240
240
|
}),
|
|
241
241
|
/* @__PURE__ */ g(d, { ...Y.dialogProps }),
|
|
242
|
-
|
|
243
|
-
ref:
|
|
244
|
-
payable:
|
|
245
|
-
onMissingAchInstructions:
|
|
246
|
-
poweredByBankName:
|
|
242
|
+
j ? /* @__PURE__ */ g(oe, {
|
|
243
|
+
ref: M,
|
|
244
|
+
payable: j,
|
|
245
|
+
onMissingAchInstructions: x,
|
|
246
|
+
poweredByBankName: T
|
|
247
247
|
}) : null
|
|
248
248
|
] });
|
|
249
249
|
}
|
|
250
250
|
//#endregion
|
|
251
|
-
export {
|
|
251
|
+
export { _ as BillDetailsContainer, _ as default };
|
|
@@ -29,7 +29,7 @@ function s(e) {
|
|
|
29
29
|
function c(n) {
|
|
30
30
|
return [{
|
|
31
31
|
if: {
|
|
32
|
-
run_concurrently: !
|
|
32
|
+
run_concurrently: !0,
|
|
33
33
|
all: n.map(s)
|
|
34
34
|
},
|
|
35
35
|
then: [e],
|
|
@@ -118,7 +118,7 @@ function p(e) {
|
|
|
118
118
|
groups: [],
|
|
119
119
|
isSupported: !1
|
|
120
120
|
};
|
|
121
|
-
let i = n.run_concurrently
|
|
121
|
+
let i = r.length <= 1 || n.run_concurrently === !0, a = f(t) && i, o = [];
|
|
122
122
|
for (let e of r) {
|
|
123
123
|
let t = d(e);
|
|
124
124
|
a &&= t.isSupported, o.push(t.refs);
|
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.78", n = "c9deabb88a461c681eb4c8c7f9bc586efb7fa0b0", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|