@tesouro/embedded-components-react 0.5.45 → 0.5.46

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