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