@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
|
@@ -10,189 +10,190 @@ import { useAllLedgerAccountsQuery as ee } from "../../../../shared/data-access/
|
|
|
10
10
|
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { useWidgetConfig as te } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
12
12
|
import { useOrganizationUserNames as ne } from "../../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
|
|
13
|
+
import { useLocalCalendarDay as re } from "../../../../shared/feature/dist/lib/calendar/useLocalCalendarDay.js";
|
|
13
14
|
import "../../../../shared/feature/dist/index.js";
|
|
14
|
-
import { isEditablePayableStatus as
|
|
15
|
-
import { resolveVendor as
|
|
15
|
+
import { isEditablePayableStatus as ie } from "../../../util/dist/lib/isEditablePayableStatus.js";
|
|
16
|
+
import { resolveVendor as ae } from "../../../util/dist/lib/resolveVendor.js";
|
|
16
17
|
import "../../../util/dist/index.js";
|
|
17
|
-
import { formatGlCodeLabel as
|
|
18
|
-
import { hasUnpaidBalance as
|
|
18
|
+
import { formatGlCodeLabel as oe, resolveGlCodeAvailability as se } from "./index15.js";
|
|
19
|
+
import { hasUnpaidBalance as ce } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
|
|
19
20
|
import { BillDecisionDialog as r } from "../../../ui/dist/index4.js";
|
|
20
21
|
import "../../../ui/dist/index.js";
|
|
21
|
-
import { BillDialogScreen as
|
|
22
|
-
import { BillDuplicateNotice as
|
|
23
|
-
import { BillRejectedBanner as
|
|
24
|
-
import { DiscardChangesDialog as
|
|
25
|
-
import { ExtractionNotice as
|
|
26
|
-
import { UnsavedBillDialog as
|
|
22
|
+
import { BillDialogScreen as le } from "../../ui/dist/index31.js";
|
|
23
|
+
import { BillDuplicateNotice as ue } from "../../ui/dist/index37.js";
|
|
24
|
+
import { BillRejectedBanner as de } from "../../ui/dist/index40.js";
|
|
25
|
+
import { DiscardChangesDialog as fe } from "../../ui/dist/index43.js";
|
|
26
|
+
import { ExtractionNotice as pe } from "../../ui/dist/index46.js";
|
|
27
|
+
import { UnsavedBillDialog as me } from "../../ui/dist/index52.js";
|
|
27
28
|
import "../../ui/dist/index.js";
|
|
28
|
-
import { BILL_CREATE_MESSAGE_LABELS_EN as
|
|
29
|
-
import { useAllPayableLineItemsQuery as
|
|
30
|
-
import { usePayableQuery as
|
|
29
|
+
import { BILL_CREATE_MESSAGE_LABELS_EN as he, mergeBillDialogCopy as ge } from "./index31.js";
|
|
30
|
+
import { useAllPayableLineItemsQuery as _e } from "../../data-access/dist/index5.js";
|
|
31
|
+
import { usePayableQuery as ve } from "../../data-access/dist/index23.js";
|
|
31
32
|
import "../../data-access/dist/index.js";
|
|
32
|
-
import { useBillCreateController as
|
|
33
|
-
import { useBillForm as
|
|
34
|
-
import { buildPaymentHistory as
|
|
35
|
-
import { usePayableDuplicateReview as
|
|
36
|
-
import { canOverrideApprovalPolicy as
|
|
37
|
-
import { useApprovalPolicyCardView as
|
|
38
|
-
import { resolveApprovalNotices as
|
|
39
|
-
import { resolvePaymentInstructionsGestures as
|
|
40
|
-
import { useBillRejectionNotice as
|
|
41
|
-
import { useCurrentApprovalRequestId as
|
|
42
|
-
import { usePayableAuditHistory as
|
|
43
|
-
import { usePayableDetailActions as
|
|
44
|
-
import { useScheduledDateLabel as
|
|
45
|
-
import { useScheduledPayment as
|
|
46
|
-
import { useDraftDelete as
|
|
47
|
-
import { buildBillDetailView as
|
|
48
|
-
import { resolveEditorDismissal as
|
|
49
|
-
import { SourceDocumentContainer as
|
|
50
|
-
import { usePayableAchInstructions as
|
|
33
|
+
import { useBillCreateController as ye } from "./index40.js";
|
|
34
|
+
import { useBillForm as be } from "./index42.js";
|
|
35
|
+
import { buildPaymentHistory as xe } from "./index2.js";
|
|
36
|
+
import { usePayableDuplicateReview as Se } from "./index4.js";
|
|
37
|
+
import { canOverrideApprovalPolicy as Ce, canReadCounterpartBankAccounts as we } from "./index5.js";
|
|
38
|
+
import { useApprovalPolicyCardView as Te } from "./index14.js";
|
|
39
|
+
import { resolveApprovalNotices as Ee } from "./index16.js";
|
|
40
|
+
import { resolvePaymentInstructionsGestures as De } from "./index17.js";
|
|
41
|
+
import { useBillRejectionNotice as Oe } from "./index19.js";
|
|
42
|
+
import { useCurrentApprovalRequestId as ke } from "./index20.js";
|
|
43
|
+
import { usePayableAuditHistory as Ae } from "./index21.js";
|
|
44
|
+
import { usePayableDetailActions as je } from "./index22.js";
|
|
45
|
+
import { useScheduledDateLabel as Me } from "./index23.js";
|
|
46
|
+
import { useScheduledPayment as Ne } from "./index24.js";
|
|
47
|
+
import { useDraftDelete as Pe } from "./index25.js";
|
|
48
|
+
import { buildBillDetailView as Fe } from "./index27.js";
|
|
49
|
+
import { resolveEditorDismissal as Ie } from "./index28.js";
|
|
50
|
+
import { SourceDocumentContainer as Le } from "./index32.js";
|
|
51
|
+
import { usePayableAchInstructions as Re } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
|
|
51
52
|
import "../../../../shared/counterpart-management/feature/dist/index.js";
|
|
52
|
-
import { useVendorSectionProps as
|
|
53
|
-
import { usePayToSave as
|
|
53
|
+
import { useVendorSectionProps as ze } from "./index35.js";
|
|
54
|
+
import { usePayToSave as Be } from "./index36.js";
|
|
54
55
|
import { billDialogTestIds as i } from "./index43.js";
|
|
55
|
-
import { useCallback as a, useEffect as
|
|
56
|
-
import { Fragment as
|
|
57
|
-
import { Trash2Icon as
|
|
56
|
+
import { useCallback as a, useEffect as Ve, useMemo as o, useRef as He, useState as s } from "react";
|
|
57
|
+
import { Fragment as Ue, jsx as c, jsxs as We } from "react/jsx-runtime";
|
|
58
|
+
import { Trash2Icon as Ge } from "lucide-react";
|
|
58
59
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js
|
|
59
|
-
function
|
|
60
|
-
let
|
|
61
|
-
...
|
|
62
|
-
...
|
|
63
|
-
}), [
|
|
64
|
-
|
|
65
|
-
}, []), [
|
|
60
|
+
function Ke({ open: Ke, onOpenChange: l, payableId: qe, initialCounterpartId: Je, readOnly: u = !1, copy: d, onCollapse: Ye, onEdit: Xe, onOpenBill: f, renderPaymentFlows: Ze }) {
|
|
61
|
+
let p = o(() => ge(d), [d]), m = d?.messages, h = o(() => ({
|
|
62
|
+
...he,
|
|
63
|
+
...m
|
|
64
|
+
}), [m]), Qe = qe ? void 0 : Je, [g, $e] = s(Qe), [_, et] = s(!!Qe), [tt, nt] = s(!1), [v, y] = s(!1), [rt, b] = s(), x = a((e) => {
|
|
65
|
+
b(() => e);
|
|
66
|
+
}, []), [it, at] = s(), S = qe ?? it, C = ve(S, {
|
|
66
67
|
pollWhileOcrProcessing: !0,
|
|
67
68
|
pollWhilePolicyAssignmentUnsettled: !0
|
|
68
|
-
}),
|
|
69
|
-
payable:
|
|
70
|
-
lineItems:
|
|
71
|
-
labels:
|
|
72
|
-
}),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}, [
|
|
76
|
-
let
|
|
77
|
-
|
|
78
|
-
}, []),
|
|
79
|
-
payableId:
|
|
80
|
-
scheduledPaymentDate:
|
|
81
|
-
enabled:
|
|
82
|
-
}),
|
|
83
|
-
hasScheduledPayment:
|
|
84
|
-
scheduledDate:
|
|
85
|
-
labels:
|
|
86
|
-
}),
|
|
87
|
-
payableId:
|
|
88
|
-
counterpartId:
|
|
89
|
-
payableCounterpartId:
|
|
90
|
-
isVendorKnown:
|
|
91
|
-
onCounterpartChange:
|
|
92
|
-
requiredError:
|
|
93
|
-
payableCounterpartBankAccountId:
|
|
94
|
-
extractedVendor:
|
|
95
|
-
readOnly:
|
|
96
|
-
canEditVendor: !
|
|
97
|
-
canEditPaymentInstructions: !
|
|
98
|
-
canAddPaymentInstructions: !
|
|
99
|
-
confirmDiscard:
|
|
100
|
-
labels:
|
|
101
|
-
}),
|
|
69
|
+
}), w = _e(S), { initResponse: T } = te(), ot = !!T, st = t(T?.scopes, [n.AccountingConfigReadOrg]), E = ee({ enabled: st }), D = C.data, O = !S || !!D, k = !u && O && !!S && D?.status !== "draft", ct = !u && !!D && !ie(D?.status), A = u || ct, j = be({
|
|
70
|
+
payable: D,
|
|
71
|
+
lineItems: w.lineItems,
|
|
72
|
+
labels: h
|
|
73
|
+
}), M = D?.counterpart_id ?? void 0;
|
|
74
|
+
Ve(() => {
|
|
75
|
+
_ || M && ($e(M), et(!0));
|
|
76
|
+
}, [_, M]);
|
|
77
|
+
let lt = a((e) => {
|
|
78
|
+
et(!0), $e(e);
|
|
79
|
+
}, []), N = Ne({
|
|
80
|
+
payableId: S,
|
|
81
|
+
scheduledPaymentDate: D?.scheduled_payment_date,
|
|
82
|
+
enabled: u || k
|
|
83
|
+
}), P = Me({
|
|
84
|
+
hasScheduledPayment: N.hasScheduledPayment,
|
|
85
|
+
scheduledDate: N.scheduledDate,
|
|
86
|
+
labels: p.scheduledRelativeDay
|
|
87
|
+
}), F = we(T?.scopes), ut = t(T?.scopes, [n.PayableWriteOrg]), I = t(T?.scopes, [n.CounterpartWriteOrg]) && ut, L = I && ce(D?.status) && !N.hasScheduledPayment && !N.isResolving, dt = L && F, ft = L || I && D?.status === "rejected", pt = !u && O && (!S || D?.status === "draft") && !N.hasScheduledPayment && !N.isResolving, R = ze({
|
|
88
|
+
payableId: S,
|
|
89
|
+
counterpartId: u ? M : g,
|
|
90
|
+
payableCounterpartId: M,
|
|
91
|
+
isVendorKnown: u ? !!D : O,
|
|
92
|
+
onCounterpartChange: lt,
|
|
93
|
+
requiredError: j.errors?.vendor,
|
|
94
|
+
payableCounterpartBankAccountId: D?.counterpart_bank_account_id ?? void 0,
|
|
95
|
+
extractedVendor: D?.counterpart_raw_data ?? void 0,
|
|
96
|
+
readOnly: u,
|
|
97
|
+
canEditVendor: !u || dt,
|
|
98
|
+
canEditPaymentInstructions: !u || L,
|
|
99
|
+
canAddPaymentInstructions: !u || ft,
|
|
100
|
+
confirmDiscard: x,
|
|
101
|
+
labels: d?.vendorSection
|
|
102
|
+
}), mt = R.activePayToOperation === "missingInstructions" ? pt || ft : R.activePayToOperation === "existingInstructions" ? pt || L : R.activePayToOperation === "vendor" && u ? dt : !1, ht = !!(S && _) && !g, z = C.refetch, gt = a(async () => {
|
|
102
103
|
let { data: e } = await z();
|
|
103
104
|
return e?.status ?? void 0;
|
|
104
|
-
}, [z]), { vendorWithInlineSave: B, isSavingPayToEdits:
|
|
105
|
+
}, [z]), { vendorWithInlineSave: B, isSavingPayToEdits: _t } = Be({
|
|
105
106
|
vendor: R,
|
|
106
|
-
payableId:
|
|
107
|
-
linkedCounterpartId:
|
|
108
|
-
linkedBankAccountId:
|
|
109
|
-
canSavePayToEdits:
|
|
110
|
-
readOnly:
|
|
107
|
+
payableId: S,
|
|
108
|
+
linkedCounterpartId: D?.counterpart_id,
|
|
109
|
+
linkedBankAccountId: D?.counterpart_bank_account_id,
|
|
110
|
+
canSavePayToEdits: mt,
|
|
111
|
+
readOnly: u,
|
|
111
112
|
refreshPayable: z,
|
|
112
|
-
labels:
|
|
113
|
-
}),
|
|
114
|
-
...
|
|
115
|
-
draftSaved:
|
|
116
|
-
} :
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
]), V =
|
|
121
|
-
payableId:
|
|
122
|
-
form:
|
|
123
|
-
labels:
|
|
124
|
-
counterpartId:
|
|
113
|
+
labels: p.detail
|
|
114
|
+
}), vt = o(() => k ? {
|
|
115
|
+
...m,
|
|
116
|
+
draftSaved: h.submittedSaved
|
|
117
|
+
} : m, [
|
|
118
|
+
k,
|
|
119
|
+
m,
|
|
120
|
+
h.submittedSaved
|
|
121
|
+
]), V = ye({
|
|
122
|
+
payableId: qe,
|
|
123
|
+
form: j,
|
|
124
|
+
labels: vt,
|
|
125
|
+
counterpartId: g,
|
|
125
126
|
isVendorPending: R.mode === "creating" || R.isPendingVendor,
|
|
126
127
|
onVendorIncomplete: R.revealIncompleteVendor,
|
|
127
|
-
clearCounterpart:
|
|
128
|
+
clearCounterpart: ht,
|
|
128
129
|
prepareVendorForSave: R.prepareVendorForSave,
|
|
129
|
-
onPayableCreated:
|
|
130
|
-
onSaved:
|
|
131
|
-
onDraftSaved: () =>
|
|
132
|
-
onFinalized: () =>
|
|
133
|
-
readSavedStatus:
|
|
134
|
-
}),
|
|
130
|
+
onPayableCreated: at,
|
|
131
|
+
onSaved: at,
|
|
132
|
+
onDraftSaved: () => l(!1),
|
|
133
|
+
onFinalized: () => l(!1),
|
|
134
|
+
readSavedStatus: k ? gt : void 0
|
|
135
|
+
}), yt = !!(V.isSavingDraft || V.isFinalizing || R.isVendorSavePending), H = u ? S : void 0, U = ke({
|
|
135
136
|
payableId: H,
|
|
136
|
-
status:
|
|
137
|
-
}), W =
|
|
138
|
-
counterpartId:
|
|
139
|
-
currency:
|
|
140
|
-
currentBankAccountId:
|
|
141
|
-
enabled:
|
|
142
|
-
}), K =
|
|
137
|
+
status: D?.status
|
|
138
|
+
}), W = He(null), [bt, xt] = s(!1), St = ae(D), G = Re({
|
|
139
|
+
counterpartId: u ? M : void 0,
|
|
140
|
+
currency: D?.currency,
|
|
141
|
+
currentBankAccountId: u ? D?.counterpart_bank_account_id ?? void 0 : void 0,
|
|
142
|
+
enabled: F && u
|
|
143
|
+
}), K = Te({
|
|
143
144
|
payableId: H,
|
|
144
|
-
approvalPolicyId:
|
|
145
|
-
status:
|
|
146
|
-
updatedAt:
|
|
147
|
-
payableFetchedAt:
|
|
148
|
-
enabled:
|
|
149
|
-
copy:
|
|
150
|
-
}),
|
|
151
|
-
status:
|
|
152
|
-
scopes:
|
|
145
|
+
approvalPolicyId: D?.approval_policy_id,
|
|
146
|
+
status: D?.status,
|
|
147
|
+
updatedAt: D?.updated_at,
|
|
148
|
+
payableFetchedAt: C.dataUpdatedAt,
|
|
149
|
+
enabled: u,
|
|
150
|
+
copy: p.approvalPolicyCopy
|
|
151
|
+
}), Ct = Ce({
|
|
152
|
+
status: D?.status,
|
|
153
|
+
scopes: T?.scopes,
|
|
153
154
|
arePendingApproversUnknown: K.isLoading,
|
|
154
|
-
hasApprovalPolicy: !!
|
|
155
|
+
hasApprovalPolicy: !!D?.approval_policy_id,
|
|
155
156
|
hasWaitingRequest: U.hasWaitingRequest
|
|
156
|
-
}),
|
|
157
|
+
}), wt = Ee({
|
|
157
158
|
isCapabilityUnknown: U.isLoading || K.isLoading,
|
|
158
159
|
canApproveNow: !!U.id,
|
|
159
|
-
canOverridePolicy:
|
|
160
|
-
status:
|
|
161
|
-
hasApprovalPolicy: !!
|
|
160
|
+
canOverridePolicy: Ct,
|
|
161
|
+
status: D?.status,
|
|
162
|
+
hasApprovalPolicy: !!D?.approval_policy_id,
|
|
162
163
|
pendingApproverNames: K.pendingApprovers.flatMap((e) => e.names),
|
|
163
|
-
labels:
|
|
164
|
-
}),
|
|
164
|
+
labels: p
|
|
165
|
+
}), Tt = u || k ? S : void 0, Et = u ? Xe : void 0, q = a((e) => {
|
|
165
166
|
let t = () => {
|
|
166
167
|
R.discardPayToEdits(), e?.();
|
|
167
168
|
};
|
|
168
|
-
R.hasUnsavedVendorChanges ?
|
|
169
|
-
}, [
|
|
170
|
-
payableId:
|
|
171
|
-
status:
|
|
169
|
+
R.hasUnsavedVendorChanges ? x(t) : t();
|
|
170
|
+
}, [x, R]), { actions: Dt, decisionDialog: Ot, isActionPending: kt } = je({
|
|
171
|
+
payableId: Tt,
|
|
172
|
+
status: D?.status,
|
|
172
173
|
currentApprovalRequestId: U.id,
|
|
173
174
|
arePendingApproversUnknown: K.isLoading,
|
|
174
|
-
hasScheduledPayment:
|
|
175
|
-
scheduledPaymentIntentId:
|
|
176
|
-
isScheduledPaymentUnknown:
|
|
175
|
+
hasScheduledPayment: N.hasScheduledPayment,
|
|
176
|
+
scheduledPaymentIntentId: N.scheduledPaymentIntentId,
|
|
177
|
+
isScheduledPaymentUnknown: N.isResolving,
|
|
177
178
|
isPayabilityUnknown: G.isLoading,
|
|
178
|
-
hasApprovalPolicy: !!
|
|
179
|
+
hasApprovalPolicy: !!D?.approval_policy_id,
|
|
179
180
|
hasWaitingRequest: U.hasWaitingRequest,
|
|
180
181
|
pendingApprovers: K.pendingApprovers,
|
|
181
|
-
labels:
|
|
182
|
-
isMarkAsPaidPending:
|
|
182
|
+
labels: p.actions,
|
|
183
|
+
isMarkAsPaidPending: bt,
|
|
183
184
|
onMarkAsPaidSelect: () => W.current?.openMarkAsPaid(),
|
|
184
185
|
onPayBillSelect: () => q(() => W.current?.openPayBill()),
|
|
185
|
-
onEditSelect:
|
|
186
|
+
onEditSelect: Et,
|
|
186
187
|
onActionSucceeded: (e) => {
|
|
187
|
-
e === "reopen" ?
|
|
188
|
+
e === "reopen" ? Et?.() : k && l(!1);
|
|
188
189
|
}
|
|
189
|
-
}),
|
|
190
|
-
payableId:
|
|
191
|
-
status:
|
|
192
|
-
enabled: !
|
|
193
|
-
labels:
|
|
194
|
-
onDeleted: () =>
|
|
195
|
-
}),
|
|
190
|
+
}), At = Pe({
|
|
191
|
+
payableId: S,
|
|
192
|
+
status: D?.status,
|
|
193
|
+
enabled: !u,
|
|
194
|
+
labels: p.deleteDraft,
|
|
195
|
+
onDeleted: () => l(!1)
|
|
196
|
+
}), jt = yt || kt, Mt = D?.ocr_status === "processing", Nt = C.isLoading || w.isResolving || Mt, Pt = C.isLoading || w.isResolving || E.isResolving || G.isLoading, Ft = C.isError || w.isError || E.isError, It = o(() => [...At.menuItems, ...k || u && !Pt && !Ft ? Dt.menu.map((e) => ({
|
|
196
197
|
id: e.id,
|
|
197
198
|
label: e.label,
|
|
198
199
|
onSelect: e.onSelect,
|
|
@@ -200,150 +201,154 @@ function l({ open: l, onOpenChange: u, payableId: d, initialCounterpartId: Ge, r
|
|
|
200
201
|
icon: e.icon,
|
|
201
202
|
sectionHeading: e.sectionHeading
|
|
202
203
|
})) : []], [
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
]), J = o(() => (
|
|
204
|
+
Dt.menu,
|
|
205
|
+
At.menuItems,
|
|
206
|
+
k,
|
|
207
|
+
u,
|
|
208
|
+
Pt,
|
|
209
|
+
Ft
|
|
210
|
+
]), J = o(() => (E.data?.data ?? []).map((e) => ({
|
|
210
211
|
value: e.id,
|
|
211
|
-
label:
|
|
212
|
-
})), [
|
|
213
|
-
isInitResolved:
|
|
214
|
-
canReadGlCodes:
|
|
215
|
-
isResolving:
|
|
216
|
-
isError:
|
|
212
|
+
label: oe(e)
|
|
213
|
+
})), [E.data]), { unavailableMessage: Lt, disabled: Rt, rosterAvailable: zt } = se({
|
|
214
|
+
isInitResolved: ot,
|
|
215
|
+
canReadGlCodes: st,
|
|
216
|
+
isResolving: E.isResolving,
|
|
217
|
+
isError: E.isError,
|
|
217
218
|
optionCount: J.length,
|
|
218
|
-
labels:
|
|
219
|
-
}),
|
|
219
|
+
labels: p.lineItemsGlCodeUnavailable
|
|
220
|
+
}), Bt = D?.status === "rejected" || !u && k, Vt = t(T?.scopes, [n.ApprovalRequestReadOrg]), Ht = Bt && Vt, Ut = t(T?.scopes, [n.UserReadOrg]), { userNames: Wt, isError: Gt, isResolving: Kt } = ne({ enabled: (u || Bt) && Ut }), { historyQuery: Y, rows: qt, namesError: Jt } = Ae({
|
|
220
221
|
payableId: H,
|
|
221
|
-
userNames:
|
|
222
|
-
isRosterError:
|
|
223
|
-
labels:
|
|
224
|
-
}), X =
|
|
225
|
-
payableId:
|
|
226
|
-
payableStatus:
|
|
227
|
-
payableUpdatedAt:
|
|
228
|
-
enabled:
|
|
229
|
-
userNames:
|
|
230
|
-
labels:
|
|
231
|
-
}),
|
|
232
|
-
records:
|
|
222
|
+
userNames: Wt,
|
|
223
|
+
isRosterError: Ut && Gt,
|
|
224
|
+
labels: p.history
|
|
225
|
+
}), X = Oe({
|
|
226
|
+
payableId: S,
|
|
227
|
+
payableStatus: D?.status,
|
|
228
|
+
payableUpdatedAt: D?.updated_at,
|
|
229
|
+
enabled: Ht,
|
|
230
|
+
userNames: Wt,
|
|
231
|
+
labels: p.detail
|
|
232
|
+
}), Yt = o(() => xe({
|
|
233
|
+
records: N.paymentRecords,
|
|
233
234
|
events: Y.data?.data ?? [],
|
|
234
|
-
currencyCode:
|
|
235
|
-
labels:
|
|
235
|
+
currencyCode: D?.currency,
|
|
236
|
+
labels: p.detail
|
|
236
237
|
}), [
|
|
237
|
-
|
|
238
|
+
N.paymentRecords,
|
|
238
239
|
Y.data,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
]),
|
|
242
|
-
if (!
|
|
243
|
-
let e =
|
|
244
|
-
payable:
|
|
245
|
-
lineItems:
|
|
240
|
+
D?.currency,
|
|
241
|
+
p.detail
|
|
242
|
+
]), Xt = re(), Zt = o(() => {
|
|
243
|
+
if (!u || !D) return;
|
|
244
|
+
let e = Fe({
|
|
245
|
+
payable: D,
|
|
246
|
+
lineItems: w.lineItems,
|
|
246
247
|
glCodeOptions: J,
|
|
247
|
-
glCodeRosterAvailable:
|
|
248
|
-
history:
|
|
249
|
-
paymentHistory:
|
|
248
|
+
glCodeRosterAvailable: zt,
|
|
249
|
+
history: qt,
|
|
250
|
+
paymentHistory: Yt,
|
|
250
251
|
approvalPolicy: K.view,
|
|
251
|
-
labels:
|
|
252
|
-
|
|
252
|
+
labels: p.detail,
|
|
253
|
+
dueDateLabels: p.dueDate,
|
|
254
|
+
today: Xt,
|
|
255
|
+
hasScheduledPayment: N.hasScheduledPayment,
|
|
253
256
|
rejection: X,
|
|
254
257
|
payableAchInstructions: G.achInstructions,
|
|
255
|
-
payableAchInstructionsReadable:
|
|
258
|
+
payableAchInstructionsReadable: F && !G.isError
|
|
256
259
|
});
|
|
257
260
|
return R.mode === "resolved" && R.summary ? {
|
|
258
261
|
...e,
|
|
259
262
|
payTo: R.summary
|
|
260
263
|
} : e;
|
|
261
264
|
}, [
|
|
262
|
-
|
|
265
|
+
N.hasScheduledPayment,
|
|
263
266
|
K.view,
|
|
264
|
-
|
|
265
|
-
|
|
267
|
+
Xt,
|
|
268
|
+
F,
|
|
269
|
+
p.detail,
|
|
270
|
+
p.dueDate,
|
|
266
271
|
J,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
272
|
+
zt,
|
|
273
|
+
qt,
|
|
274
|
+
w.lineItems,
|
|
275
|
+
D,
|
|
271
276
|
G.achInstructions,
|
|
272
277
|
G.isError,
|
|
273
|
-
|
|
274
|
-
|
|
278
|
+
Yt,
|
|
279
|
+
u,
|
|
275
280
|
X,
|
|
276
281
|
R.mode,
|
|
277
282
|
R.summary
|
|
278
|
-
]),
|
|
279
|
-
if (
|
|
280
|
-
else switch (
|
|
281
|
-
isUnsavedPromptOpen:
|
|
282
|
-
isLocked:
|
|
283
|
+
]), Qt = D?.source_of_payable_data === "ocr", Z = St?.name, $t = u ? Z ? p.viewTitle(Z) : p.readOnlyTitle : Z && (Qt || k) ? p.extractedTitle(Z) : p.newTitle, en = u && D?.created_at ? p.addedOn(e(D.created_at.slice(0, 10))) : void 0, Q = j.isDirty || R.hasUnsavedVendorChanges || !!V.stagedFile || V.isFileDeletionPending, tn = a(() => {
|
|
284
|
+
if (u && R.isEditingPayTo) q(() => l(!1));
|
|
285
|
+
else switch (Ie({
|
|
286
|
+
isUnsavedPromptOpen: v,
|
|
287
|
+
isLocked: A,
|
|
283
288
|
isDirty: Q
|
|
284
289
|
})) {
|
|
285
290
|
case "dismiss-prompt":
|
|
286
|
-
|
|
291
|
+
y(!1);
|
|
287
292
|
return;
|
|
288
293
|
case "prompt":
|
|
289
|
-
|
|
294
|
+
y(!0);
|
|
290
295
|
return;
|
|
291
|
-
default:
|
|
296
|
+
default: l(!1);
|
|
292
297
|
}
|
|
293
298
|
}, [
|
|
294
299
|
Q,
|
|
295
|
-
|
|
296
|
-
|
|
300
|
+
A,
|
|
301
|
+
v,
|
|
297
302
|
q,
|
|
303
|
+
l,
|
|
298
304
|
u,
|
|
299
|
-
f,
|
|
300
305
|
R.isEditingPayTo
|
|
301
|
-
]),
|
|
302
|
-
if (!
|
|
303
|
-
let n = () =>
|
|
304
|
-
|
|
306
|
+
]), nn = a((e, t) => {
|
|
307
|
+
if (!f) return;
|
|
308
|
+
let n = () => f(e, t);
|
|
309
|
+
u && R.isEditingPayTo ? q(n) : !A && Q ? x(n) : n();
|
|
305
310
|
}, [
|
|
306
|
-
|
|
311
|
+
x,
|
|
307
312
|
Q,
|
|
308
|
-
|
|
313
|
+
A,
|
|
309
314
|
q,
|
|
310
|
-
h,
|
|
311
315
|
f,
|
|
316
|
+
u,
|
|
312
317
|
R.isEditingPayTo
|
|
313
|
-
]),
|
|
314
|
-
R.isEditingPayTo ? q(
|
|
318
|
+
]), rn = a(() => {
|
|
319
|
+
R.isEditingPayTo ? q(Ye) : Ye?.();
|
|
315
320
|
}, [
|
|
316
321
|
q,
|
|
317
|
-
|
|
322
|
+
Ye,
|
|
318
323
|
R.isEditingPayTo
|
|
319
|
-
]),
|
|
320
|
-
|
|
321
|
-
}, [
|
|
322
|
-
if (
|
|
324
|
+
]), an = a(() => {
|
|
325
|
+
y(!1), l(!1);
|
|
326
|
+
}, [l]), on = Nt || R.mode === "creating", sn = a(async () => {
|
|
327
|
+
if (on) return;
|
|
323
328
|
let e = await V.saveDraft();
|
|
324
|
-
|
|
329
|
+
y(!1), e && l(!1);
|
|
325
330
|
}, [
|
|
326
331
|
V,
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
]), $ =
|
|
330
|
-
payable:
|
|
331
|
-
onOpenPayable:
|
|
332
|
-
onRemoved: () =>
|
|
333
|
-
canManage:
|
|
334
|
-
}),
|
|
335
|
-
if (!(
|
|
332
|
+
on,
|
|
333
|
+
l
|
|
334
|
+
]), $ = Se({
|
|
335
|
+
payable: D,
|
|
336
|
+
onOpenPayable: f ? nn : void 0,
|
|
337
|
+
onRemoved: () => l(!1),
|
|
338
|
+
canManage: ut
|
|
339
|
+
}), cn = a((e) => {
|
|
340
|
+
if (!(jt || $.isBusy)) return e ? l(!0) : tn();
|
|
336
341
|
}, [
|
|
337
342
|
$.isBusy,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
]),
|
|
342
|
-
|
|
343
|
+
jt,
|
|
344
|
+
tn,
|
|
345
|
+
l
|
|
346
|
+
]), ln = $.isPossibleDuplicate, un = !u && Qt && !tt, dn = !u && !!X, fn = dn || ln || un ? /* @__PURE__ */ We(Ue, { children: [
|
|
347
|
+
dn && X ? /* @__PURE__ */ c(de, {
|
|
343
348
|
...X,
|
|
344
|
-
labels:
|
|
349
|
+
labels: p.rejectedBanner
|
|
345
350
|
}) : null,
|
|
346
|
-
|
|
351
|
+
ln ? /* @__PURE__ */ c(ue, {
|
|
347
352
|
title: $.title,
|
|
348
353
|
meta: $.meta,
|
|
349
354
|
onNotADuplicate: $.onNotADuplicate,
|
|
@@ -356,59 +361,59 @@ function l({ open: l, onOpenChange: u, payableId: d, initialCounterpartId: Ge, r
|
|
|
356
361
|
labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
|
|
357
362
|
testId: i.duplicateNotice
|
|
358
363
|
}) : null,
|
|
359
|
-
|
|
360
|
-
onDismiss: () =>
|
|
361
|
-
labels:
|
|
364
|
+
un ? /* @__PURE__ */ c(pe, {
|
|
365
|
+
onDismiss: () => nt(!0),
|
|
366
|
+
labels: d?.extractionNotice
|
|
362
367
|
}) : null
|
|
363
368
|
] }) : void 0;
|
|
364
|
-
return /* @__PURE__ */ Ue
|
|
365
|
-
/* @__PURE__ */ c(
|
|
366
|
-
open:
|
|
367
|
-
onOpenChange:
|
|
368
|
-
title:
|
|
369
|
-
subtitle:
|
|
370
|
-
notice:
|
|
369
|
+
return /* @__PURE__ */ We(Ue, { children: [
|
|
370
|
+
/* @__PURE__ */ c(le, {
|
|
371
|
+
open: Ke,
|
|
372
|
+
onOpenChange: cn,
|
|
373
|
+
title: $t,
|
|
374
|
+
subtitle: en,
|
|
375
|
+
notice: fn,
|
|
371
376
|
vendor: {
|
|
372
377
|
...B,
|
|
373
378
|
testId: i.vendorSection
|
|
374
379
|
},
|
|
375
|
-
values:
|
|
376
|
-
errors:
|
|
377
|
-
onChange:
|
|
380
|
+
values: j.values,
|
|
381
|
+
errors: j.errors,
|
|
382
|
+
onChange: j.onChange,
|
|
378
383
|
lineItems: {
|
|
379
|
-
items:
|
|
384
|
+
items: j.lineItemRows,
|
|
380
385
|
glCodeOptions: J,
|
|
381
|
-
glCodeDisabled:
|
|
382
|
-
glCodeUnavailableMessage:
|
|
383
|
-
discount:
|
|
384
|
-
onDiscountChange:
|
|
385
|
-
onDiscountBlur:
|
|
386
|
-
tax:
|
|
387
|
-
onTaxChange:
|
|
388
|
-
onTaxBlur:
|
|
389
|
-
total:
|
|
390
|
-
onTotalChange:
|
|
391
|
-
onTotalBlur:
|
|
392
|
-
onAddLineItem:
|
|
393
|
-
errors:
|
|
394
|
-
totalsErrors:
|
|
386
|
+
glCodeDisabled: Rt,
|
|
387
|
+
glCodeUnavailableMessage: Lt,
|
|
388
|
+
discount: j.discount,
|
|
389
|
+
onDiscountChange: j.onDiscountChange,
|
|
390
|
+
onDiscountBlur: j.onDiscountBlur,
|
|
391
|
+
tax: j.tax,
|
|
392
|
+
onTaxChange: j.onTaxChange,
|
|
393
|
+
onTaxBlur: j.onTaxBlur,
|
|
394
|
+
total: j.total,
|
|
395
|
+
onTotalChange: j.onTotalChange,
|
|
396
|
+
onTotalBlur: j.onTotalBlur,
|
|
397
|
+
onAddLineItem: j.onAddLineItem,
|
|
398
|
+
errors: j.lineItemErrors,
|
|
399
|
+
totalsErrors: j.totalsErrors,
|
|
395
400
|
testId: i.lineItems
|
|
396
401
|
},
|
|
397
|
-
documentPanel: /* @__PURE__ */ c(
|
|
398
|
-
payableId:
|
|
399
|
-
readOnly:
|
|
400
|
-
isDocumentPending: !!
|
|
401
|
-
file:
|
|
402
|
-
id:
|
|
403
|
-
name:
|
|
404
|
-
url:
|
|
405
|
-
mimetype:
|
|
402
|
+
documentPanel: /* @__PURE__ */ c(Le, {
|
|
403
|
+
payableId: S,
|
|
404
|
+
readOnly: A,
|
|
405
|
+
isDocumentPending: !!S && !D?.file && (C.isLoading || D?.ocr_status === "processing"),
|
|
406
|
+
file: D?.file ? {
|
|
407
|
+
id: D.file.id,
|
|
408
|
+
name: D.file.name,
|
|
409
|
+
url: D.file.url,
|
|
410
|
+
mimetype: D.file.mimetype
|
|
406
411
|
} : void 0,
|
|
407
412
|
staging: {
|
|
408
413
|
stagedFile: V.stagedFile,
|
|
409
414
|
onFileStaged: V.stageFile,
|
|
410
415
|
onClearStagedFile: V.clearStagedFile,
|
|
411
|
-
isSaving:
|
|
416
|
+
isSaving: yt
|
|
412
417
|
},
|
|
413
418
|
deletion: {
|
|
414
419
|
isPending: V.isFileDeletionPending,
|
|
@@ -417,78 +422,78 @@ function l({ open: l, onOpenChange: u, payableId: d, initialCounterpartId: Ge, r
|
|
|
417
422
|
isDeleting: V.isDeletingFile,
|
|
418
423
|
hasFailed: V.hasFileDeletionFailed
|
|
419
424
|
},
|
|
420
|
-
labels:
|
|
425
|
+
labels: d?.sourceDocument
|
|
421
426
|
}),
|
|
422
|
-
menuItems:
|
|
423
|
-
readOnly:
|
|
424
|
-
detail:
|
|
425
|
-
view:
|
|
426
|
-
actions:
|
|
427
|
-
scheduledSummary:
|
|
428
|
-
scheduledSummaryDate:
|
|
429
|
-
scheduledStatusLabel:
|
|
430
|
-
...
|
|
427
|
+
menuItems: It,
|
|
428
|
+
readOnly: A,
|
|
429
|
+
detail: u ? {
|
|
430
|
+
view: Zt,
|
|
431
|
+
actions: Dt,
|
|
432
|
+
scheduledSummary: P ? p.scheduledSummary(P.label) : void 0,
|
|
433
|
+
scheduledSummaryDate: P?.absoluteLabel,
|
|
434
|
+
scheduledStatusLabel: P ? p.scheduledStatusBadge(P.label) : void 0,
|
|
435
|
+
...wt,
|
|
431
436
|
payTo: {
|
|
432
437
|
onEdit: B.mode === "resolved" ? B.onEdit : void 0,
|
|
433
|
-
paymentInstructions:
|
|
438
|
+
paymentInstructions: D?.status === "paid" || D?.status === "canceled" ? void 0 : De(B.paymentInstructionsEditor, !!Zt?.payTo.hasPaymentInstructions),
|
|
434
439
|
detailsWarning: B.detailsWarning,
|
|
435
440
|
editForm: B.mode === "creating" ? B.newVendorForm : void 0
|
|
436
441
|
},
|
|
437
|
-
isLoading:
|
|
438
|
-
isError:
|
|
439
|
-
paymentHistoryError:
|
|
440
|
-
paymentHistoryLoading:
|
|
442
|
+
isLoading: Pt,
|
|
443
|
+
isError: Ft,
|
|
444
|
+
paymentHistoryError: N.isError || Y.isError,
|
|
445
|
+
paymentHistoryLoading: N.isResolving || Y.isLoading,
|
|
441
446
|
historyError: Y.isError,
|
|
442
|
-
historyLoading: Y.isLoading ||
|
|
443
|
-
historyNamesError:
|
|
447
|
+
historyLoading: Y.isLoading || Kt,
|
|
448
|
+
historyNamesError: Jt
|
|
444
449
|
} : void 0,
|
|
445
|
-
isLineItemsLoading:
|
|
446
|
-
isSaving:
|
|
450
|
+
isLineItemsLoading: Nt,
|
|
451
|
+
isSaving: jt || _t,
|
|
447
452
|
isSavingDraft: V.isSavingDraft,
|
|
448
453
|
isSubmitting: V.isFinalizing,
|
|
449
|
-
onCancel:
|
|
450
|
-
onCollapse:
|
|
454
|
+
onCancel: tn,
|
|
455
|
+
onCollapse: u ? rn : void 0,
|
|
451
456
|
onSaveDraft: V.saveDraft,
|
|
452
457
|
onFinalize: V.finalize,
|
|
453
458
|
scrollToErrorToken: V.scrollToErrorToken,
|
|
454
|
-
showSubmit: !
|
|
459
|
+
showSubmit: !A && O,
|
|
455
460
|
testId: i.dialog,
|
|
456
|
-
labels:
|
|
461
|
+
labels: d?.screen
|
|
457
462
|
}),
|
|
458
|
-
/* @__PURE__ */ c(
|
|
459
|
-
open:
|
|
460
|
-
onSaveDraft:
|
|
461
|
-
onDiscard:
|
|
462
|
-
onCancel: () =>
|
|
463
|
+
/* @__PURE__ */ c(me, {
|
|
464
|
+
open: v,
|
|
465
|
+
onSaveDraft: sn,
|
|
466
|
+
onDiscard: an,
|
|
467
|
+
onCancel: () => y(!1),
|
|
463
468
|
isSaving: V.isSavingDraft,
|
|
464
|
-
isSaveDraftDisabled:
|
|
465
|
-
labels:
|
|
469
|
+
isSaveDraftDisabled: on,
|
|
470
|
+
labels: p.unsavedChanges,
|
|
466
471
|
testId: i.unsavedDialog,
|
|
467
472
|
saveDraftTestId: i.unsavedSaveDraft,
|
|
468
473
|
discardTestId: i.unsavedDiscard,
|
|
469
474
|
closeTestId: i.unsavedClose
|
|
470
475
|
}),
|
|
471
|
-
/* @__PURE__ */ c(
|
|
472
|
-
open: !!
|
|
476
|
+
/* @__PURE__ */ c(fe, {
|
|
477
|
+
open: !!rt,
|
|
473
478
|
onDiscard: () => {
|
|
474
|
-
let e =
|
|
475
|
-
|
|
479
|
+
let e = rt;
|
|
480
|
+
b(void 0), e?.();
|
|
476
481
|
},
|
|
477
|
-
onKeepEditing: () =>
|
|
478
|
-
labels:
|
|
482
|
+
onKeepEditing: () => b(void 0),
|
|
483
|
+
labels: p.discardChanges,
|
|
479
484
|
testId: i.discardDialog,
|
|
480
485
|
discardTestId: i.discardConfirm
|
|
481
486
|
}),
|
|
482
487
|
/* @__PURE__ */ c(r, {
|
|
483
|
-
...
|
|
484
|
-
labels: { cancelButton:
|
|
488
|
+
...Ot,
|
|
489
|
+
labels: { cancelButton: p.actions.decisionDialog.cancelButton },
|
|
485
490
|
testId: i.decisionDialog,
|
|
486
491
|
confirmTestId: i.decisionConfirm,
|
|
487
492
|
reasonTestId: i.decisionReason
|
|
488
493
|
}),
|
|
489
494
|
/* @__PURE__ */ c(r, {
|
|
490
|
-
...
|
|
491
|
-
labels: { cancelButton:
|
|
495
|
+
...At.dialog,
|
|
496
|
+
labels: { cancelButton: p.actions.decisionDialog.cancelButton },
|
|
492
497
|
testId: i.deleteDraftDialog,
|
|
493
498
|
confirmTestId: i.deleteDraftConfirm
|
|
494
499
|
}),
|
|
@@ -498,7 +503,7 @@ function l({ open: l, onOpenChange: u, payableId: d, initialCounterpartId: Ge, r
|
|
|
498
503
|
onConfirm: $.removeConfirmation.onConfirm,
|
|
499
504
|
onCancel: $.removeConfirmation.onCancel,
|
|
500
505
|
isPending: $.removeConfirmation.isPending,
|
|
501
|
-
confirmIcon: $.isRemoveBillDestructive ? /* @__PURE__ */ c(
|
|
506
|
+
confirmIcon: $.isRemoveBillDestructive ? /* @__PURE__ */ c(Ge, {}) : void 0,
|
|
502
507
|
labels: { cancelButton: $.removeConfirmation.cancelButtonLabel },
|
|
503
508
|
testId: i.duplicateRemoveDialog,
|
|
504
509
|
confirmTestId: i.duplicateRemoveConfirm
|
|
@@ -511,15 +516,15 @@ function l({ open: l, onOpenChange: u, payableId: d, initialCounterpartId: Ge, r
|
|
|
511
516
|
isPending: $.keepRowConfirmation.isPending,
|
|
512
517
|
labels: { cancelButton: $.keepRowConfirmation.cancelButtonLabel }
|
|
513
518
|
}),
|
|
514
|
-
|
|
519
|
+
Ze?.({
|
|
515
520
|
ref: W,
|
|
516
|
-
payable:
|
|
521
|
+
payable: D,
|
|
517
522
|
payableId: H,
|
|
518
|
-
isPayBillEnabled:
|
|
519
|
-
hasScheduledPayment:
|
|
520
|
-
onMissingAchInstructions:
|
|
521
|
-
onMarkAsPaidPendingChange:
|
|
523
|
+
isPayBillEnabled: u,
|
|
524
|
+
hasScheduledPayment: N.hasScheduledPayment,
|
|
525
|
+
onMissingAchInstructions: I ? R.openPaymentInstructions : void 0,
|
|
526
|
+
onMarkAsPaidPendingChange: xt
|
|
522
527
|
})
|
|
523
528
|
] });
|
|
524
529
|
}
|
|
525
|
-
export {
|
|
530
|
+
export { Ke as BillDialog, Ke as default };
|