@tesouro/embedded-components-react 0.5.9 → 0.5.12
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/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +4 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +84 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +3 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +37 -166
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +164 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +48 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +1 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +45 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +13 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +8 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +7 -59
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +64 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +18 -139
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +144 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +91 -84
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +92 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +133 -129
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +20 -10
- package/package.json +1 -1
|
@@ -27,26 +27,26 @@ import { UnsavedBillDialog as he } from "../../ui/dist/index106.js";
|
|
|
27
27
|
import "../../ui/dist/index.js";
|
|
28
28
|
import { usePayableDuplicateReview as ge } from "./index13.js";
|
|
29
29
|
import "./index14.js";
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
30
|
+
import { isEditablePayableStatus as _e } from "./index19.js";
|
|
31
|
+
import { canOverrideApprovalPolicy as ve, canReadCounterpartBankAccounts as ye } from "./index20.js";
|
|
32
|
+
import { resolveAmountDueMinorUnits as be } from "./index21.js";
|
|
33
|
+
import { usePayableAchInstructions as xe } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
33
34
|
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
34
|
-
import { PayBillFlow as
|
|
35
|
-
import "./
|
|
36
|
-
import { useMarkAsPaidFlow as
|
|
35
|
+
import { PayBillFlow as Se } from "./index27.js";
|
|
36
|
+
import "./index28.js";
|
|
37
|
+
import { useMarkAsPaidFlow as Ce } from "./index17.js";
|
|
37
38
|
import "./index18.js";
|
|
38
|
-
import { BILL_CREATE_MESSAGE_LABELS_EN as
|
|
39
|
-
import { useBillCreateController as
|
|
40
|
-
import { useBillForm as
|
|
41
|
-
import { buildPaymentHistory as
|
|
42
|
-
import { currentApprovalRound as
|
|
43
|
-
import { usePayableApprovalRoundStart as
|
|
44
|
-
import { useApprovalPolicyCardView as
|
|
45
|
-
import { resolveBillRejectionNotice as
|
|
46
|
-
import { useCurrentApprovalRequestId as
|
|
47
|
-
import { usePayableDetailActions as
|
|
48
|
-
import { useScheduledPayment as
|
|
49
|
-
import { isEditablePayableStatus as Fe } from "./index37.js";
|
|
39
|
+
import { BILL_CREATE_MESSAGE_LABELS_EN as we, mergeBillCreateScreenCopy as Te } from "./index47.js";
|
|
40
|
+
import { useBillCreateController as Ee } from "./index56.js";
|
|
41
|
+
import { useBillForm as De } from "./index58.js";
|
|
42
|
+
import { buildPaymentHistory as Oe } from "./index3.js";
|
|
43
|
+
import { currentApprovalRound as ke } from "./index4.js";
|
|
44
|
+
import { usePayableApprovalRoundStart as Ae } from "./index32.js";
|
|
45
|
+
import { useApprovalPolicyCardView as je } from "./index33.js";
|
|
46
|
+
import { resolveBillRejectionNotice as Me } from "./index34.js";
|
|
47
|
+
import { useCurrentApprovalRequestId as Ne } from "./index35.js";
|
|
48
|
+
import { usePayableDetailActions as Pe } from "./index36.js";
|
|
49
|
+
import { useScheduledPayment as Fe } from "./index37.js";
|
|
50
50
|
import { useDraftDelete as Ie } from "./index38.js";
|
|
51
51
|
import { buildBillDetailView as Le } from "./index42.js";
|
|
52
52
|
import { resolveEditorDismissal as Re } from "./index43.js";
|
|
@@ -59,48 +59,48 @@ import { useCallback as i, useEffect as Ue, useMemo as a, useRef as We, useState
|
|
|
59
59
|
import { Fragment as Ge, jsx as s, jsxs as Ke } from "react/jsx-runtime";
|
|
60
60
|
import { Trash2Icon as qe } from "lucide-react";
|
|
61
61
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js
|
|
62
|
-
function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye, onCollapse: Xe,
|
|
63
|
-
let d = a(() =>
|
|
62
|
+
function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye, onCollapse: Xe, onEdit: Ze, poweredByBankName: Qe }) {
|
|
63
|
+
let d = a(() => Te(Ye), [Ye]), [f, $e] = o(), [p, et] = o(!1), [tt, nt] = o(!1), [m, h] = o(!1), [rt, it] = o(), g = Je ?? rt, _ = se(g, { pollWhileOcrProcessing: !0 }), v = oe(g), { initResponse: y } = re(), at = !!y, b = e(y?.scopes, [t.AccountingConfigReadOrg]), x = ee({ enabled: b }), S = _.data, C = !g || !!S, w = !u && C && !!g && S?.status !== "draft", ot = !u && !!S && !_e(S?.status), T = u || ot, E = De({
|
|
64
64
|
payable: S,
|
|
65
65
|
lineItems: v.lineItems
|
|
66
66
|
}), D = S?.counterpart_id;
|
|
67
67
|
Ue(() => {
|
|
68
|
-
p || D && (
|
|
68
|
+
p || D && ($e(D), et(!0));
|
|
69
69
|
}, [p, D]);
|
|
70
|
-
let
|
|
71
|
-
|
|
70
|
+
let st = i((e) => {
|
|
71
|
+
et(!0), $e(e);
|
|
72
72
|
}, []), O = Ve({
|
|
73
73
|
payableId: u ? void 0 : g,
|
|
74
74
|
counterpartId: u ? void 0 : f,
|
|
75
75
|
payableCounterpartId: D,
|
|
76
76
|
isVendorKnown: !u && C,
|
|
77
|
-
onCounterpartChange:
|
|
77
|
+
onCounterpartChange: st,
|
|
78
78
|
requiredError: E.errors?.vendor,
|
|
79
79
|
payableCounterpartBankAccountId: S?.counterpart_bank_account_id ?? void 0,
|
|
80
80
|
extractedVendor: S?.counterpart_raw_data ?? void 0
|
|
81
|
-
}),
|
|
82
|
-
let { data: e } = await
|
|
81
|
+
}), ct = !!(g && p) && !f, lt = _.refetch, ut = i(async () => {
|
|
82
|
+
let { data: e } = await lt();
|
|
83
83
|
return e?.status ?? void 0;
|
|
84
|
-
}, [
|
|
84
|
+
}, [lt]), dt = a(() => w ? { draftSaved: we.submittedSaved } : void 0, [w]), k = Ee({
|
|
85
85
|
payableId: Je,
|
|
86
86
|
form: E,
|
|
87
|
-
labels:
|
|
87
|
+
labels: dt,
|
|
88
88
|
counterpartId: f,
|
|
89
|
-
clearCounterpart:
|
|
89
|
+
clearCounterpart: ct,
|
|
90
90
|
prepareVendorForSave: O.savePaymentInstructions,
|
|
91
|
-
onPayableCreated:
|
|
92
|
-
onSaved:
|
|
91
|
+
onPayableCreated: it,
|
|
92
|
+
onSaved: it,
|
|
93
93
|
onDraftSaved: () => l(!1),
|
|
94
94
|
onFinalized: () => l(!1),
|
|
95
|
-
readSavedStatus: w ?
|
|
96
|
-
}), A = !!(k.isSavingDraft || k.isFinalizing), j = u ? g : void 0, M =
|
|
95
|
+
readSavedStatus: w ? ut : void 0
|
|
96
|
+
}), A = !!(k.isSavingDraft || k.isFinalizing), j = u ? g : void 0, M = Ne({
|
|
97
97
|
payableId: j,
|
|
98
98
|
status: S?.status
|
|
99
|
-
}),
|
|
99
|
+
}), ft = We(null), N = Fe({
|
|
100
100
|
payableId: g,
|
|
101
101
|
scheduledPaymentDate: S?.scheduled_payment_date,
|
|
102
102
|
enabled: u || w
|
|
103
|
-
}),
|
|
103
|
+
}), pt = le(S), P = ye(y?.scopes), F = xe({
|
|
104
104
|
counterpartId: u ? D : void 0,
|
|
105
105
|
currency: S?.currency,
|
|
106
106
|
currentBankAccountId: u ? S?.counterpart_bank_account_id ?? void 0 : void 0,
|
|
@@ -112,27 +112,27 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
|
|
|
112
112
|
canReadCounterpartBankAccounts: P,
|
|
113
113
|
saveErrorMessage: d.detail.paymentInstructionsSaveError,
|
|
114
114
|
linkErrorMessage: d.detail.paymentInstructionsLinkError
|
|
115
|
-
}),
|
|
115
|
+
}), mt = e(y?.scopes, [t.PayableWriteOrg]), L = e(y?.scopes, [t.CounterpartWriteOrg]) && mt, ht = L && ce(S?.status) && !N.hasScheduledPayment && !N.isResolving, R = Ce({
|
|
116
116
|
payableId: j,
|
|
117
|
-
amountDueMinorUnits:
|
|
117
|
+
amountDueMinorUnits: be(S) ?? 0,
|
|
118
118
|
amountToPayMinorUnits: S?.amount_to_pay ?? void 0,
|
|
119
119
|
currencyCode: S?.currency ?? void 0,
|
|
120
120
|
dueDate: S?.due_date,
|
|
121
121
|
hasScheduledPayment: N.hasScheduledPayment,
|
|
122
122
|
labels: d.markAsPaid
|
|
123
|
-
}), z =
|
|
123
|
+
}), z = je({
|
|
124
124
|
payableId: j,
|
|
125
125
|
approvalPolicyId: S?.approval_policy_id,
|
|
126
126
|
enabled: u,
|
|
127
127
|
copy: d.approvalPolicyCopy
|
|
128
|
-
}),
|
|
128
|
+
}), gt = ve({
|
|
129
129
|
status: S?.status,
|
|
130
130
|
scopes: y?.scopes,
|
|
131
131
|
arePendingApproversUnknown: z.isLoading,
|
|
132
132
|
hasApprovalPolicy: !!S?.approval_policy_id,
|
|
133
133
|
hasWaitingRequest: M.hasWaitingRequest
|
|
134
|
-
}), { actions: B, decisionDialog:
|
|
135
|
-
payableId:
|
|
134
|
+
}), _t = u || w ? g : void 0, vt = u ? Ze : void 0, { actions: B, decisionDialog: yt, isActionPending: bt } = Pe({
|
|
135
|
+
payableId: _t,
|
|
136
136
|
status: S?.status,
|
|
137
137
|
currentApprovalRequestId: M.id,
|
|
138
138
|
arePendingApproversUnknown: z.isLoading,
|
|
@@ -146,15 +146,22 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
|
|
|
146
146
|
labels: d.actions,
|
|
147
147
|
isMarkAsPaidPending: R.isPending,
|
|
148
148
|
onMarkAsPaidSelect: R.open,
|
|
149
|
-
onPayBillSelect: () =>
|
|
150
|
-
|
|
149
|
+
onPayBillSelect: () => ft.current?.open(),
|
|
150
|
+
onEditSelect: vt,
|
|
151
|
+
onActionSucceeded: (e) => {
|
|
152
|
+
if (e === "reopen") {
|
|
153
|
+
vt?.();
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
w && l(!1);
|
|
157
|
+
}
|
|
151
158
|
}), V = Ie({
|
|
152
159
|
payableId: g,
|
|
153
160
|
status: S?.status,
|
|
154
161
|
enabled: !u,
|
|
155
162
|
labels: d.deleteDraft,
|
|
156
163
|
onDeleted: () => l(!1)
|
|
157
|
-
}), H = A ||
|
|
164
|
+
}), H = A || bt, U = _.isLoading || v.isResolving || x.isResolving || F.isLoading, W = _.isError || v.isError || x.isError, xt = a(() => [...V.menuItems, ...w || u && !U && !W ? B.menu.map((e) => ({
|
|
158
165
|
id: e.id,
|
|
159
166
|
label: e.label,
|
|
160
167
|
onSelect: e.onSelect,
|
|
@@ -172,27 +179,27 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
|
|
|
172
179
|
value: e.id,
|
|
173
180
|
label: [e.nominal_code, e.name].filter(Boolean).join(" — ")
|
|
174
181
|
})), [x.data]), K;
|
|
175
|
-
|
|
176
|
-
let
|
|
182
|
+
at && (b ? x.isError ? K = d.lineItemsGlCodeUnavailable.loadError : !x.isResolving && G.length === 0 && (K = d.lineItemsGlCodeUnavailable.empty) : K = d.lineItemsGlCodeUnavailable.noAccess);
|
|
183
|
+
let St = !at || !!K || x.isResolving, Ct = b && !x.isResolving && !x.isError, q = ae(j), wt = S?.status === "rejected" || !u && w, Tt = e(y?.scopes, [t.ApprovalRequestReadOrg]), Et = wt && Tt, Dt = e(y?.scopes, [t.UserReadOrg]), J = te({ enabled: (u || wt) && Dt }), Ot = a(() => ze(q.data?.data ?? [], J.data?.data ?? [], d.history), [
|
|
177
184
|
q.data,
|
|
178
185
|
J.data,
|
|
179
186
|
d.history
|
|
180
|
-
]),
|
|
187
|
+
]), kt = Ae({
|
|
181
188
|
payableId: g,
|
|
182
|
-
enabled:
|
|
183
|
-
}),
|
|
189
|
+
enabled: Et
|
|
190
|
+
}), At = ie(g, { enabled: Et }), jt = a(() => ke(At.data?.data, kt.roundStartedAt), [At.data, kt.roundStartedAt]), Y = a(() => Me({
|
|
184
191
|
payableStatus: S?.status,
|
|
185
|
-
approvalRequests:
|
|
192
|
+
approvalRequests: jt,
|
|
186
193
|
users: J.data?.data ?? [],
|
|
187
194
|
payableUpdatedAt: S?.updated_at,
|
|
188
195
|
labels: d.detail
|
|
189
196
|
}), [
|
|
190
197
|
S?.status,
|
|
191
198
|
S?.updated_at,
|
|
192
|
-
|
|
199
|
+
jt,
|
|
193
200
|
J.data,
|
|
194
201
|
d.detail
|
|
195
|
-
]),
|
|
202
|
+
]), Mt = a(() => Oe({
|
|
196
203
|
records: N.paymentRecords,
|
|
197
204
|
events: q.data?.data ?? [],
|
|
198
205
|
currencyCode: S?.currency,
|
|
@@ -202,13 +209,13 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
|
|
|
202
209
|
q.data,
|
|
203
210
|
S?.currency,
|
|
204
211
|
d.detail
|
|
205
|
-
]),
|
|
212
|
+
]), Nt = a(() => u && S ? Le({
|
|
206
213
|
payable: S,
|
|
207
214
|
lineItems: v.lineItems,
|
|
208
215
|
glCodeOptions: G,
|
|
209
|
-
glCodeRosterAvailable:
|
|
210
|
-
history:
|
|
211
|
-
paymentHistory:
|
|
216
|
+
glCodeRosterAvailable: Ct,
|
|
217
|
+
history: Ot,
|
|
218
|
+
paymentHistory: Mt,
|
|
212
219
|
approvalPolicy: z.view,
|
|
213
220
|
labels: d.detail,
|
|
214
221
|
hasScheduledPayment: N.hasScheduledPayment,
|
|
@@ -221,16 +228,16 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
|
|
|
221
228
|
P,
|
|
222
229
|
d.detail,
|
|
223
230
|
G,
|
|
224
|
-
|
|
225
|
-
|
|
231
|
+
Ct,
|
|
232
|
+
Ot,
|
|
226
233
|
v.lineItems,
|
|
227
234
|
S,
|
|
228
235
|
F.achInstructions,
|
|
229
236
|
F.isError,
|
|
230
|
-
|
|
237
|
+
Mt,
|
|
231
238
|
u,
|
|
232
239
|
Y
|
|
233
|
-
]),
|
|
240
|
+
]), Pt = S?.source_of_payable_data === "ocr", X = pt?.name, Ft = u ? X ? d.viewTitle(X) : d.readOnlyTitle : X && (Pt || w) ? d.extractedTitle(X) : d.newTitle, It = u && S?.created_at ? d.addedOn(ne(S.created_at.slice(0, 10))) : void 0, Z = i(() => {
|
|
234
241
|
let e = E.isDirty || O.hasUnsavedVendorChanges || !!k.stagedFile || k.isFileDeletionPending;
|
|
235
242
|
switch (Re({
|
|
236
243
|
isUnsavedPromptOpen: m,
|
|
@@ -253,9 +260,9 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
|
|
|
253
260
|
m,
|
|
254
261
|
l,
|
|
255
262
|
O.hasUnsavedVendorChanges
|
|
256
|
-
]),
|
|
263
|
+
]), Lt = i(() => {
|
|
257
264
|
h(!1), l(!1);
|
|
258
|
-
}, [l]), Q = v.isResolving || O.mode === "creating",
|
|
265
|
+
}, [l]), Q = v.isResolving || O.mode === "creating", Rt = i(async () => {
|
|
259
266
|
if (Q) return;
|
|
260
267
|
let e = await k.saveDraft();
|
|
261
268
|
h(!1), e && l(!1);
|
|
@@ -266,35 +273,35 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
|
|
|
266
273
|
]), $ = ge({
|
|
267
274
|
payable: S,
|
|
268
275
|
onRemoved: () => l(!1),
|
|
269
|
-
canManage:
|
|
270
|
-
}),
|
|
276
|
+
canManage: mt
|
|
277
|
+
}), zt = i((e) => {
|
|
271
278
|
if (!(H || $.isBusy)) return e ? l(!0) : Z();
|
|
272
279
|
}, [
|
|
273
280
|
$.isBusy,
|
|
274
281
|
H,
|
|
275
282
|
Z,
|
|
276
283
|
l
|
|
277
|
-
]),
|
|
278
|
-
|
|
284
|
+
]), Bt = $.isPossibleDuplicate, Vt = !u && Pt && !tt, Ht = !u && !!Y, Ut = Ht || Bt || Vt ? /* @__PURE__ */ Ke(Ge, { children: [
|
|
285
|
+
Ht && Y ? /* @__PURE__ */ s(fe, {
|
|
279
286
|
...Y,
|
|
280
287
|
labels: d.rejectedBanner
|
|
281
288
|
}) : null,
|
|
282
|
-
|
|
289
|
+
Bt ? /* @__PURE__ */ s(de, {
|
|
283
290
|
onNotADuplicate: $.onNotADuplicate,
|
|
284
291
|
onRemoveBill: $.onRemoveBill,
|
|
285
292
|
isActionDisabled: $.isBusy,
|
|
286
293
|
labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
|
|
287
294
|
testId: r.duplicateNotice
|
|
288
295
|
}) : null,
|
|
289
|
-
|
|
296
|
+
Vt ? /* @__PURE__ */ s(pe, { onDismiss: () => nt(!0) }) : null
|
|
290
297
|
] }) : void 0;
|
|
291
298
|
return /* @__PURE__ */ Ke(Ge, { children: [
|
|
292
299
|
/* @__PURE__ */ s(ue, {
|
|
293
300
|
open: c,
|
|
294
|
-
onOpenChange:
|
|
295
|
-
title:
|
|
296
|
-
subtitle:
|
|
297
|
-
notice:
|
|
301
|
+
onOpenChange: zt,
|
|
302
|
+
title: Ft,
|
|
303
|
+
subtitle: It,
|
|
304
|
+
notice: Ut,
|
|
298
305
|
vendor: {
|
|
299
306
|
...O,
|
|
300
307
|
testId: r.vendorSection
|
|
@@ -305,7 +312,7 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
|
|
|
305
312
|
lineItems: {
|
|
306
313
|
items: E.lineItemRows,
|
|
307
314
|
glCodeOptions: G,
|
|
308
|
-
glCodeDisabled:
|
|
315
|
+
glCodeDisabled: St,
|
|
309
316
|
glCodeUnavailableMessage: K,
|
|
310
317
|
discount: E.discount,
|
|
311
318
|
onDiscountChange: E.onDiscountChange,
|
|
@@ -342,15 +349,15 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
|
|
|
342
349
|
hasFailed: k.hasFileDeletionFailed
|
|
343
350
|
}
|
|
344
351
|
}),
|
|
345
|
-
menuItems:
|
|
352
|
+
menuItems: xt,
|
|
346
353
|
readOnly: T,
|
|
347
354
|
detail: u ? {
|
|
348
|
-
view:
|
|
355
|
+
view: Nt,
|
|
349
356
|
actions: B,
|
|
350
357
|
scheduledSummary: N.hasScheduledPayment && N.scheduledDateLabel ? d.scheduledSummary(N.scheduledDateLabel) : void 0,
|
|
351
|
-
showApprovalOverrideNotice:
|
|
352
|
-
onEditPaymentInstructions: D &&
|
|
353
|
-
paymentInstructionsForm: D && (
|
|
358
|
+
showApprovalOverrideNotice: gt && !!S?.approval_policy_id,
|
|
359
|
+
onEditPaymentInstructions: D && ht ? I.open : void 0,
|
|
360
|
+
paymentInstructionsForm: D && (ht || L && S?.status === "rejected") ? {
|
|
354
361
|
isOpen: I.isOpen,
|
|
355
362
|
values: I.values,
|
|
356
363
|
errors: I.errors,
|
|
@@ -380,8 +387,8 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
|
|
|
380
387
|
}),
|
|
381
388
|
/* @__PURE__ */ s(he, {
|
|
382
389
|
open: m,
|
|
383
|
-
onSaveDraft:
|
|
384
|
-
onDiscard:
|
|
390
|
+
onSaveDraft: Rt,
|
|
391
|
+
onDiscard: Lt,
|
|
385
392
|
onCancel: () => h(!1),
|
|
386
393
|
isSaving: k.isSavingDraft,
|
|
387
394
|
isSaveDraftDisabled: Q,
|
|
@@ -392,7 +399,7 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
|
|
|
392
399
|
closeTestId: r.unsavedClose
|
|
393
400
|
}),
|
|
394
401
|
/* @__PURE__ */ s(n, {
|
|
395
|
-
...
|
|
402
|
+
...yt,
|
|
396
403
|
labels: { cancelButton: d.actions.decisionDialog.cancelButton },
|
|
397
404
|
testId: r.decisionDialog,
|
|
398
405
|
confirmTestId: r.decisionConfirm,
|
|
@@ -416,11 +423,11 @@ function c({ open: c, onOpenChange: l, payableId: Je, readOnly: u = !1, copy: Ye
|
|
|
416
423
|
confirmTestId: r.duplicateRemoveConfirm
|
|
417
424
|
}),
|
|
418
425
|
/* @__PURE__ */ s(me, { ...R.dialogProps }),
|
|
419
|
-
u && S ? /* @__PURE__ */ s(
|
|
420
|
-
ref:
|
|
426
|
+
u && S ? /* @__PURE__ */ s(Se, {
|
|
427
|
+
ref: ft,
|
|
421
428
|
payable: S,
|
|
422
429
|
onMissingAchInstructions: L ? I.open : void 0,
|
|
423
|
-
poweredByBankName:
|
|
430
|
+
poweredByBankName: Qe,
|
|
424
431
|
labels: d.payBill
|
|
425
432
|
}) : null
|
|
426
433
|
] });
|
|
@@ -2,7 +2,7 @@ import { BILL_DETAILS_SHEET_LABELS_EN as e } from "../../ui/dist/index61.js";
|
|
|
2
2
|
import "../../ui/dist/index.js";
|
|
3
3
|
import { MARK_AS_PAID_FLOW_LABELS_EN as t } from "./index15.js";
|
|
4
4
|
import "./index18.js";
|
|
5
|
-
import { APPROVAL_POLICY_RULE_COPY_EN as n } from "./
|
|
5
|
+
import { APPROVAL_POLICY_RULE_COPY_EN as n } from "./index29.js";
|
|
6
6
|
import { BILL_DETAIL_ACTIONS_LABELS_EN as r, PAYMENT_HISTORY_LABELS_EN as i, SCHEDULED_SUMMARY_LABEL_EN as a } from "./index45.js";
|
|
7
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js
|
|
8
8
|
var o = {
|