@tesouro/embedded-components-react 0.4.22 → 0.4.24
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 +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +45 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +47 -119
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +119 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +33 -186
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +186 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +22 -232
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +223 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +202 -103
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +121 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +47 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +27 -198
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +198 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +30 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +240 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +19 -414
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +427 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +34 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +221 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +10 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +112 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +3 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +124 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +27 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +83 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +47 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +239 -101
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +107 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +209 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +4 -3
- 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/data-access/dist/lib/transportInterceptors.js +13 -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/feature/dist/lib/analytics/client.js +4 -7
- 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/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,416 +1,21 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
-
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
-
import { useAllLedgerAccountsQuery as ee } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
|
|
8
|
-
import { useAllOrganizationUsersQuery as te } from "../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
|
|
9
|
-
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import { formatCalendarDate as ne } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
11
|
-
import { useWidgetConfig as re } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
12
|
-
import "../../../shared/feature/dist/index.js";
|
|
13
|
-
import { usePayableApprovalRequestsQuery as ie } from "../../data-access/dist/index8.js";
|
|
14
|
-
import { usePayableHistoryQuery as ae } from "../../data-access/dist/index9.js";
|
|
15
|
-
import { useAllPayableLineItemsQuery as oe } from "../../data-access/dist/index10.js";
|
|
16
|
-
import { usePayableQuery as se } from "../../data-access/dist/index16.js";
|
|
17
|
-
import "../../data-access/dist/index.js";
|
|
18
|
-
import { hasUnpaidBalance as ce } from "./index7.js";
|
|
19
|
-
import { resolveVendor as le } from "./index8.js";
|
|
20
|
-
import { BillCreateScreen as ue } from "../../ui/dist/index50.js";
|
|
21
|
-
import { BillDecisionDialog as n } from "../../ui/dist/index56.js";
|
|
22
|
-
import { BillDuplicateNotice as de } from "../../ui/dist/index66.js";
|
|
23
|
-
import { BillRejectedBanner as fe } from "../../ui/dist/index69.js";
|
|
24
|
-
import { ExtractionNotice as pe } from "../../ui/dist/index87.js";
|
|
25
|
-
import { MarkAsPaidDialog as me } from "../../ui/dist/index96.js";
|
|
26
|
-
import { UnsavedBillDialog as he } from "../../ui/dist/index106.js";
|
|
27
|
-
import "../../ui/dist/index.js";
|
|
28
|
-
import { usePayableDuplicateReview as ge } from "./index13.js";
|
|
29
|
-
import "./index14.js";
|
|
30
|
-
import { canOverrideApprovalPolicy as _e, canReadCounterpartBankAccounts as ve } from "./index19.js";
|
|
31
|
-
import { resolveAmountDueMinorUnits as ye } from "./index20.js";
|
|
32
|
-
import { usePayableAchInstructions as be } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
33
|
-
import "../../../shared/counterpart-management/feature/dist/index.js";
|
|
34
|
-
import { PayBillFlow as xe } from "./index26.js";
|
|
35
|
-
import "./index27.js";
|
|
36
|
-
import { useMarkAsPaidFlow as Se } from "./index17.js";
|
|
37
|
-
import "./index18.js";
|
|
38
|
-
import { BILL_CREATE_MESSAGE_LABELS_EN as Ce, mergeBillCreateScreenCopy as we } from "./index44.js";
|
|
39
|
-
import { useBillCreateController as Te } from "./index53.js";
|
|
40
|
-
import { useBillForm as Ee } from "./index55.js";
|
|
41
|
-
import { buildPaymentHistory as De } from "./index3.js";
|
|
42
|
-
import { currentApprovalRound as Oe } from "./index4.js";
|
|
43
|
-
import { usePayableApprovalRoundStart as ke } from "./index31.js";
|
|
44
|
-
import { useApprovalPolicyCardView as Ae } from "./index32.js";
|
|
45
|
-
import { resolveBillRejectionNotice as je } from "./index33.js";
|
|
46
|
-
import { useCurrentApprovalRequestId as Me } from "./index34.js";
|
|
47
|
-
import { usePayableDetailActions as Ne } from "./index35.js";
|
|
48
|
-
import { useScheduledPayment as Pe } from "./index36.js";
|
|
49
|
-
import { isEditablePayableStatus as Fe } from "./index37.js";
|
|
50
|
-
import { useDraftDelete as Ie } from "./index38.js";
|
|
51
|
-
import { buildBillDetailView as Le } from "./index40.js";
|
|
52
|
-
import { buildBillHistory as Re } from "./index41.js";
|
|
53
|
-
import { SourceDocumentContainer as ze } from "./index45.js";
|
|
54
|
-
import { useVendorSectionProps as Be } from "./index48.js";
|
|
55
|
-
import { usePaymentInstructionsForm as Ve } from "./index49.js";
|
|
56
|
-
import { billCreateTestIds as r } from "./index56.js";
|
|
57
|
-
import { useCallback as i, useEffect as He, useMemo as a, useRef as Ue, useState as o } from "react";
|
|
58
|
-
import { Fragment as s, jsx as c, jsxs as We } from "react/jsx-runtime";
|
|
59
|
-
import { Trash2Icon as Ge } from "lucide-react";
|
|
60
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
extractedVendor: S?.counterpart_raw_data ?? void 0
|
|
80
|
-
}), ot = !!(g && m) && !p, st = _.refetch, ct = i(async () => {
|
|
81
|
-
let { data: e } = await st();
|
|
82
|
-
return e?.status ?? void 0;
|
|
83
|
-
}, [st]), lt = a(() => w ? { draftSaved: Ce.submittedSaved } : void 0, [w]), k = Te({
|
|
84
|
-
payableId: Ke,
|
|
85
|
-
form: E,
|
|
86
|
-
labels: lt,
|
|
87
|
-
counterpartId: p,
|
|
88
|
-
clearCounterpart: ot,
|
|
89
|
-
prepareVendorForSave: O.savePaymentInstructions,
|
|
90
|
-
onPayableCreated: nt,
|
|
91
|
-
onSaved: nt,
|
|
92
|
-
onDraftSaved: () => u(!1),
|
|
93
|
-
onFinalized: () => u(!1),
|
|
94
|
-
readSavedStatus: w ? ct : void 0
|
|
95
|
-
}), ut = !!(k.isSavingDraft || k.isFinalizing), A = d ? g : void 0, j = Me({
|
|
96
|
-
payableId: A,
|
|
97
|
-
status: S?.status
|
|
98
|
-
}), dt = Ue(null), M = Pe({
|
|
99
|
-
payableId: g,
|
|
100
|
-
scheduledPaymentDate: S?.scheduled_payment_date,
|
|
101
|
-
enabled: d || w
|
|
102
|
-
}), ft = le(S), N = ve(y?.scopes), P = be({
|
|
103
|
-
counterpartId: d ? D : void 0,
|
|
104
|
-
currency: S?.currency,
|
|
105
|
-
currentBankAccountId: d ? S?.counterpart_bank_account_id ?? void 0 : void 0,
|
|
106
|
-
enabled: N && d
|
|
107
|
-
}), F = Ve({
|
|
108
|
-
payableId: A,
|
|
109
|
-
counterpartId: d ? D : void 0,
|
|
110
|
-
currentBankAccountId: S?.counterpart_bank_account_id ?? void 0,
|
|
111
|
-
canReadCounterpartBankAccounts: N,
|
|
112
|
-
saveErrorMessage: f.detail.paymentInstructionsSaveError,
|
|
113
|
-
linkErrorMessage: f.detail.paymentInstructionsLinkError
|
|
114
|
-
}), pt = e(y?.scopes, [t.PayableWriteOrg]), I = e(y?.scopes, [t.CounterpartWriteOrg]) && pt, mt = I && ce(S?.status) && !M.hasScheduledPayment && !M.isResolving, L = Se({
|
|
115
|
-
payableId: A,
|
|
116
|
-
amountDueMinorUnits: ye(S) ?? 0,
|
|
117
|
-
amountToPayMinorUnits: S?.amount_to_pay ?? void 0,
|
|
118
|
-
currencyCode: S?.currency ?? void 0,
|
|
119
|
-
dueDate: S?.due_date,
|
|
120
|
-
hasScheduledPayment: M.hasScheduledPayment,
|
|
121
|
-
labels: f.markAsPaid
|
|
122
|
-
}), R = Ae({
|
|
123
|
-
payableId: A,
|
|
124
|
-
approvalPolicyId: S?.approval_policy_id,
|
|
125
|
-
enabled: d,
|
|
126
|
-
copy: f.approvalPolicyCopy
|
|
127
|
-
}), ht = _e({
|
|
128
|
-
status: S?.status,
|
|
129
|
-
scopes: y?.scopes,
|
|
130
|
-
hasWaitingRequest: j.hasWaitingRequest,
|
|
131
|
-
arePendingApproversUnknown: R.isLoading
|
|
132
|
-
}), { actions: z, decisionDialog: gt, isActionPending: _t } = Ne({
|
|
133
|
-
payableId: d || w ? g : void 0,
|
|
134
|
-
status: S?.status,
|
|
135
|
-
currentApprovalRequestId: j.id,
|
|
136
|
-
hasWaitingRequest: j.hasWaitingRequest,
|
|
137
|
-
arePendingApproversUnknown: R.isLoading,
|
|
138
|
-
hasScheduledPayment: M.hasScheduledPayment,
|
|
139
|
-
scheduledPaymentIntentId: M.scheduledPaymentIntentId,
|
|
140
|
-
isScheduledPaymentUnknown: M.isResolving,
|
|
141
|
-
pendingApprovers: R.pendingApprovers,
|
|
142
|
-
labels: f.actions,
|
|
143
|
-
isMarkAsPaidPending: L.isPending,
|
|
144
|
-
onMarkAsPaidSelect: L.open,
|
|
145
|
-
onPayBillSelect: () => dt.current?.open(),
|
|
146
|
-
onActionSucceeded: w ? () => u(!1) : void 0
|
|
147
|
-
}), B = Ie({
|
|
148
|
-
payableId: g,
|
|
149
|
-
status: S?.status,
|
|
150
|
-
enabled: !d,
|
|
151
|
-
labels: f.deleteDraft,
|
|
152
|
-
onDeleted: () => u(!1)
|
|
153
|
-
}), V = ut || _t, H = _.isLoading || v.isResolving || x.isResolving || P.isLoading, U = _.isError || v.isError || x.isError, vt = a(() => [...B.menuItems, ...w || d && !H && !U ? z.menu.map((e) => ({
|
|
154
|
-
id: e.id,
|
|
155
|
-
label: e.label,
|
|
156
|
-
onSelect: e.onSelect,
|
|
157
|
-
disabled: e.disabled,
|
|
158
|
-
icon: e.icon,
|
|
159
|
-
sectionHeading: e.sectionHeading
|
|
160
|
-
})) : []], [
|
|
161
|
-
z.menu,
|
|
162
|
-
B.menuItems,
|
|
163
|
-
w,
|
|
164
|
-
d,
|
|
165
|
-
H,
|
|
166
|
-
U
|
|
167
|
-
]), W = a(() => (x.data?.data ?? []).map((e) => ({
|
|
168
|
-
value: e.id,
|
|
169
|
-
label: [e.nominal_code, e.name].filter(Boolean).join(" — ")
|
|
170
|
-
})), [x.data]), G;
|
|
171
|
-
rt && (b ? x.isError ? G = f.lineItemsGlCodeUnavailable.loadError : !x.isResolving && W.length === 0 && (G = f.lineItemsGlCodeUnavailable.empty) : G = f.lineItemsGlCodeUnavailable.noAccess);
|
|
172
|
-
let yt = !rt || !!G || x.isResolving, bt = b && !x.isResolving && !x.isError, K = ae(A), xt = S?.status === "rejected" || !d && w, St = e(y?.scopes, [t.ApprovalRequestReadOrg]), Ct = xt && St, wt = e(y?.scopes, [t.UserReadOrg]), q = te({ enabled: (d || xt) && wt }), Tt = a(() => Re(K.data?.data ?? [], q.data?.data ?? [], f.history), [
|
|
173
|
-
K.data,
|
|
174
|
-
q.data,
|
|
175
|
-
f.history
|
|
176
|
-
]), Et = ke({
|
|
177
|
-
payableId: g,
|
|
178
|
-
enabled: Ct
|
|
179
|
-
}), Dt = ie(g, { enabled: Ct }), Ot = a(() => Oe(Dt.data?.data, Et.roundStartedAt), [Dt.data, Et.roundStartedAt]), J = a(() => je({
|
|
180
|
-
payableStatus: S?.status,
|
|
181
|
-
approvalRequests: Ot,
|
|
182
|
-
users: q.data?.data ?? [],
|
|
183
|
-
payableUpdatedAt: S?.updated_at,
|
|
184
|
-
labels: f.detail
|
|
185
|
-
}), [
|
|
186
|
-
S?.status,
|
|
187
|
-
S?.updated_at,
|
|
188
|
-
Ot,
|
|
189
|
-
q.data,
|
|
190
|
-
f.detail
|
|
191
|
-
]), Y = a(() => De({
|
|
192
|
-
records: M.paymentRecords,
|
|
193
|
-
events: K.data?.data ?? [],
|
|
194
|
-
currencyCode: S?.currency,
|
|
195
|
-
labels: f.detail
|
|
196
|
-
}), [
|
|
197
|
-
M.paymentRecords,
|
|
198
|
-
K.data,
|
|
199
|
-
S?.currency,
|
|
200
|
-
f.detail
|
|
201
|
-
]), kt = a(() => d && S ? Le({
|
|
202
|
-
payable: S,
|
|
203
|
-
lineItems: v.lineItems,
|
|
204
|
-
glCodeOptions: W,
|
|
205
|
-
glCodeRosterAvailable: bt,
|
|
206
|
-
history: Tt,
|
|
207
|
-
paymentHistory: Y,
|
|
208
|
-
approvalPolicy: R.view,
|
|
209
|
-
labels: f.detail,
|
|
210
|
-
hasScheduledPayment: M.hasScheduledPayment,
|
|
211
|
-
rejection: J,
|
|
212
|
-
payableAchInstructions: P.achInstructions,
|
|
213
|
-
payableAchInstructionsReadable: N && !P.isError
|
|
214
|
-
}) : void 0, [
|
|
215
|
-
M.hasScheduledPayment,
|
|
216
|
-
R.view,
|
|
217
|
-
N,
|
|
218
|
-
f.detail,
|
|
219
|
-
W,
|
|
220
|
-
bt,
|
|
221
|
-
Tt,
|
|
222
|
-
v.lineItems,
|
|
223
|
-
S,
|
|
224
|
-
P.achInstructions,
|
|
225
|
-
P.isError,
|
|
226
|
-
Y,
|
|
227
|
-
d,
|
|
228
|
-
J
|
|
229
|
-
]), At = S?.source_of_payable_data === "ocr", X = ft?.name, jt = d ? X ? f.viewTitle(X) : f.readOnlyTitle : X && (At || w) ? f.extractedTitle(X) : f.newTitle, Mt = d && S?.created_at ? f.addedOn(ne(S.created_at.slice(0, 10))) : void 0, Z = i(() => {
|
|
230
|
-
let e = E.isDirty || O.hasUnsavedVendorChanges || !!k.stagedFile || k.isFileDeletionPending;
|
|
231
|
-
if (!T && e) {
|
|
232
|
-
h(!0);
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
u(!1);
|
|
236
|
-
}, [
|
|
237
|
-
k.isFileDeletionPending,
|
|
238
|
-
k.stagedFile,
|
|
239
|
-
E.isDirty,
|
|
240
|
-
T,
|
|
241
|
-
u,
|
|
242
|
-
O.hasUnsavedVendorChanges
|
|
243
|
-
]), Nt = i(() => {
|
|
244
|
-
h(!1), u(!1);
|
|
245
|
-
}, [u]), Q = v.isResolving || O.mode === "creating", Pt = i(async () => {
|
|
246
|
-
if (Q) return;
|
|
247
|
-
let e = await k.saveDraft();
|
|
248
|
-
h(!1), e && u(!1);
|
|
249
|
-
}, [
|
|
250
|
-
k,
|
|
251
|
-
Q,
|
|
252
|
-
u
|
|
253
|
-
]), $ = ge({
|
|
254
|
-
payable: S,
|
|
255
|
-
onRemoved: () => u(!1),
|
|
256
|
-
canManage: pt
|
|
257
|
-
}), Ft = i((e) => {
|
|
258
|
-
if (!(V || $.isBusy)) return e ? u(!0) : Z();
|
|
259
|
-
}, [
|
|
260
|
-
$.isBusy,
|
|
261
|
-
V,
|
|
262
|
-
Z,
|
|
263
|
-
u
|
|
264
|
-
]), It = $.isPossibleDuplicate, Lt = !d && At && !Qe, Rt = !d && !!J, zt = Rt || It || Lt ? /* @__PURE__ */ We(s, { children: [
|
|
265
|
-
Rt && J ? /* @__PURE__ */ c(fe, {
|
|
266
|
-
...J,
|
|
267
|
-
labels: f.rejectedBanner
|
|
268
|
-
}) : null,
|
|
269
|
-
It ? /* @__PURE__ */ c(de, {
|
|
270
|
-
onNotADuplicate: $.onNotADuplicate,
|
|
271
|
-
onRemoveBill: $.onRemoveBill,
|
|
272
|
-
isActionDisabled: $.isBusy,
|
|
273
|
-
labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
|
|
274
|
-
testId: r.duplicateNotice
|
|
275
|
-
}) : null,
|
|
276
|
-
Lt ? /* @__PURE__ */ c(pe, { onDismiss: () => $e(!0) }) : null
|
|
277
|
-
] }) : void 0;
|
|
278
|
-
return /* @__PURE__ */ We(s, { children: [
|
|
279
|
-
/* @__PURE__ */ c(ue, {
|
|
280
|
-
open: l,
|
|
281
|
-
onOpenChange: Ft,
|
|
282
|
-
title: jt,
|
|
283
|
-
subtitle: Mt,
|
|
284
|
-
notice: zt,
|
|
285
|
-
vendor: {
|
|
286
|
-
...O,
|
|
287
|
-
testId: r.vendorSection
|
|
288
|
-
},
|
|
289
|
-
values: E.values,
|
|
290
|
-
errors: E.errors,
|
|
291
|
-
onChange: E.onChange,
|
|
292
|
-
lineItems: {
|
|
293
|
-
items: E.lineItemRows,
|
|
294
|
-
glCodeOptions: W,
|
|
295
|
-
glCodeDisabled: yt,
|
|
296
|
-
glCodeUnavailableMessage: G,
|
|
297
|
-
discount: E.discount,
|
|
298
|
-
onDiscountChange: E.onDiscountChange,
|
|
299
|
-
tax: E.tax,
|
|
300
|
-
onTaxChange: E.onTaxChange,
|
|
301
|
-
total: E.total,
|
|
302
|
-
onTotalChange: E.onTotalChange,
|
|
303
|
-
onAddLineItem: E.onAddLineItem,
|
|
304
|
-
errors: E.lineItemErrors,
|
|
305
|
-
totalsErrors: E.totalsErrors,
|
|
306
|
-
testId: r.lineItems
|
|
307
|
-
},
|
|
308
|
-
documentPanel: /* @__PURE__ */ c(ze, {
|
|
309
|
-
payableId: g,
|
|
310
|
-
readOnly: T,
|
|
311
|
-
isDocumentPending: !!g && !S?.file && (_.isLoading || S?.ocr_status === "processing"),
|
|
312
|
-
file: S?.file ? {
|
|
313
|
-
id: S.file.id,
|
|
314
|
-
name: S.file.name,
|
|
315
|
-
url: S.file.url,
|
|
316
|
-
mimetype: S.file.mimetype
|
|
317
|
-
} : void 0,
|
|
318
|
-
staging: {
|
|
319
|
-
stagedFile: k.stagedFile,
|
|
320
|
-
onFileStaged: k.stageFile,
|
|
321
|
-
onClearStagedFile: k.clearStagedFile,
|
|
322
|
-
isSaving: ut
|
|
323
|
-
},
|
|
324
|
-
deletion: {
|
|
325
|
-
isPending: k.isFileDeletionPending,
|
|
326
|
-
onRequest: k.requestFileDeletion,
|
|
327
|
-
onDetachNow: k.detachFileNow,
|
|
328
|
-
isDeleting: k.isDeletingFile,
|
|
329
|
-
hasFailed: k.hasFileDeletionFailed
|
|
330
|
-
}
|
|
331
|
-
}),
|
|
332
|
-
menuItems: vt,
|
|
333
|
-
readOnly: T,
|
|
334
|
-
detail: d ? {
|
|
335
|
-
view: kt,
|
|
336
|
-
actions: z,
|
|
337
|
-
scheduledSummary: M.hasScheduledPayment && M.scheduledDateLabel ? f.scheduledSummary(M.scheduledDateLabel) : void 0,
|
|
338
|
-
showApprovalOverrideNotice: ht,
|
|
339
|
-
onEditPaymentInstructions: D && mt ? F.open : void 0,
|
|
340
|
-
paymentInstructionsForm: D && (mt || I && S?.status === "rejected") ? {
|
|
341
|
-
isOpen: F.isOpen,
|
|
342
|
-
values: F.values,
|
|
343
|
-
errors: F.errors,
|
|
344
|
-
isSaving: F.isSaving,
|
|
345
|
-
onOpen: F.open,
|
|
346
|
-
onCancel: F.close,
|
|
347
|
-
onChange: F.onChange,
|
|
348
|
-
onSave: F.save
|
|
349
|
-
} : void 0,
|
|
350
|
-
hideMissingPaymentInstructions: S?.status === "paid" || S?.status === "canceled",
|
|
351
|
-
isLoading: H,
|
|
352
|
-
isError: U,
|
|
353
|
-
paymentHistoryError: M.isError || K.isError,
|
|
354
|
-
paymentHistoryLoading: M.isResolving || K.isLoading
|
|
355
|
-
} : void 0,
|
|
356
|
-
isLineItemsLoading: v.isResolving,
|
|
357
|
-
isSaving: V,
|
|
358
|
-
isSavingDraft: k.isSavingDraft,
|
|
359
|
-
isSubmitting: k.isFinalizing,
|
|
360
|
-
onCancel: Z,
|
|
361
|
-
onCollapse: d ? Je : void 0,
|
|
362
|
-
onSaveDraft: k.saveDraft,
|
|
363
|
-
onFinalize: k.finalize,
|
|
364
|
-
scrollToErrorToken: k.scrollToErrorToken,
|
|
365
|
-
showSubmit: !T && C,
|
|
366
|
-
testId: r.dialog
|
|
367
|
-
}),
|
|
368
|
-
/* @__PURE__ */ c(he, {
|
|
369
|
-
open: et,
|
|
370
|
-
onSaveDraft: Pt,
|
|
371
|
-
onDiscard: Nt,
|
|
372
|
-
onCancel: () => h(!1),
|
|
373
|
-
isSaving: k.isSavingDraft,
|
|
374
|
-
isSaveDraftDisabled: Q,
|
|
375
|
-
labels: f.unsavedChanges,
|
|
376
|
-
testId: r.unsavedDialog,
|
|
377
|
-
saveDraftTestId: r.unsavedSaveDraft,
|
|
378
|
-
discardTestId: r.unsavedDiscard,
|
|
379
|
-
closeTestId: r.unsavedClose
|
|
380
|
-
}),
|
|
381
|
-
/* @__PURE__ */ c(n, {
|
|
382
|
-
...gt,
|
|
383
|
-
labels: { cancelButton: f.actions.decisionDialog.cancelButton },
|
|
384
|
-
testId: r.decisionDialog,
|
|
385
|
-
confirmTestId: r.decisionConfirm,
|
|
386
|
-
reasonTestId: r.decisionReason
|
|
387
|
-
}),
|
|
388
|
-
/* @__PURE__ */ c(n, {
|
|
389
|
-
...B.dialog,
|
|
390
|
-
labels: { cancelButton: f.actions.decisionDialog.cancelButton },
|
|
391
|
-
testId: r.deleteDraftDialog,
|
|
392
|
-
confirmTestId: r.deleteDraftConfirm
|
|
393
|
-
}),
|
|
394
|
-
/* @__PURE__ */ c(n, {
|
|
395
|
-
open: $.removeConfirmation.open,
|
|
396
|
-
copy: $.removeConfirmation.copy,
|
|
397
|
-
onConfirm: $.removeConfirmation.onConfirm,
|
|
398
|
-
onCancel: $.removeConfirmation.onCancel,
|
|
399
|
-
isPending: $.removeConfirmation.isPending,
|
|
400
|
-
confirmIcon: /* @__PURE__ */ c(Ge, {}),
|
|
401
|
-
labels: { cancelButton: $.removeConfirmation.cancelButtonLabel },
|
|
402
|
-
testId: r.duplicateRemoveDialog,
|
|
403
|
-
confirmTestId: r.duplicateRemoveConfirm
|
|
404
|
-
}),
|
|
405
|
-
/* @__PURE__ */ c(me, { ...L.dialogProps }),
|
|
406
|
-
d && S ? /* @__PURE__ */ c(xe, {
|
|
407
|
-
ref: dt,
|
|
408
|
-
payable: S,
|
|
409
|
-
onMissingAchInstructions: I ? F.open : void 0,
|
|
410
|
-
poweredByBankName: Ye,
|
|
411
|
-
labels: f.payBill
|
|
412
|
-
}) : null
|
|
413
|
-
] });
|
|
414
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
dialog: "bill-pay-bill-create-dialog",
|
|
4
|
+
vendorSection: "bill-pay-bill-create-vendor",
|
|
5
|
+
lineItems: "bill-pay-bill-create-line-items",
|
|
6
|
+
documentPanel: "bill-pay-bill-create-document",
|
|
7
|
+
duplicateNotice: "bill-pay-bill-create-duplicate-notice",
|
|
8
|
+
duplicateRemoveDialog: "bill-pay-bill-create-duplicate-remove-dialog",
|
|
9
|
+
duplicateRemoveConfirm: "bill-pay-bill-create-duplicate-remove-confirm",
|
|
10
|
+
decisionDialog: "bill-pay-bill-decision-dialog",
|
|
11
|
+
decisionConfirm: "bill-pay-bill-decision-confirm",
|
|
12
|
+
decisionReason: "bill-pay-bill-decision-reason",
|
|
13
|
+
deleteDraftDialog: "bill-pay-bill-delete-draft-dialog",
|
|
14
|
+
deleteDraftConfirm: "bill-pay-bill-delete-draft-confirm",
|
|
15
|
+
unsavedDialog: "bill-pay-bill-unsaved-dialog",
|
|
16
|
+
unsavedSaveDraft: "bill-pay-bill-unsaved-save-draft",
|
|
17
|
+
unsavedDiscard: "bill-pay-bill-unsaved-discard",
|
|
18
|
+
unsavedClose: "bill-pay-bill-unsaved-close"
|
|
19
|
+
};
|
|
415
20
|
//#endregion
|
|
416
|
-
export {
|
|
21
|
+
export { e as billCreateTestIds };
|