@tesouro/embedded-components-react 0.3.55 → 0.3.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +65 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +3 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +30 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +37 -158
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +165 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +48 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +1 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +47 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +7 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +54 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +24 -60
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +98 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +51 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +131 -140
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -11,169 +11,160 @@ import "../../../shared/feature/dist/index.js";
|
|
|
11
11
|
import { useAllPayableLineItemsQuery as i } from "../../data-access/dist/index9.js";
|
|
12
12
|
import { usePayableQuery as a } from "../../data-access/dist/index15.js";
|
|
13
13
|
import "../../data-access/dist/index.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { MarkAsPaidDialog as u } from "../../ui/dist/index87.js";
|
|
14
|
+
import { BillDecisionDialog as o } from "../../ui/dist/index50.js";
|
|
15
|
+
import { BillDetailsSheet as s } from "../../ui/dist/index56.js";
|
|
16
|
+
import { BillDuplicateNotice as c } from "../../ui/dist/index60.js";
|
|
17
|
+
import { MarkAsPaidDialog as l } from "../../ui/dist/index87.js";
|
|
19
18
|
import "../../ui/dist/index.js";
|
|
20
|
-
import { usePayableDuplicateReview as
|
|
19
|
+
import { usePayableDuplicateReview as u } from "./index10.js";
|
|
21
20
|
import "./index11.js";
|
|
22
|
-
import { resolveAmountDueMinorUnits as
|
|
23
|
-
import { PayBillFlow as
|
|
24
|
-
import "./
|
|
25
|
-
import { mergeMarkAsPaidFlowLabels as
|
|
26
|
-
import { useMarkAsPaidFlow as
|
|
21
|
+
import { resolveAmountDueMinorUnits as d } from "./index17.js";
|
|
22
|
+
import { PayBillFlow as f } from "./index23.js";
|
|
23
|
+
import "./index24.js";
|
|
24
|
+
import { mergeMarkAsPaidFlowLabels as p } from "./index12.js";
|
|
25
|
+
import { useMarkAsPaidFlow as m } from "./index14.js";
|
|
27
26
|
import "./index15.js";
|
|
28
|
-
import { mergeDecisionDialogCopy as
|
|
29
|
-
import { useApprovalPolicyCardView as
|
|
30
|
-
import { useCurrentApprovalRequestId as
|
|
31
|
-
import { usePayableDetailActions as
|
|
32
|
-
import { useScheduledPayment as
|
|
33
|
-
import { BILL_DETAILS_LABELS_EN as
|
|
34
|
-
import { mapPayableToBillDetails as
|
|
35
|
-
import { useMemo as
|
|
36
|
-
import { Fragment as
|
|
27
|
+
import { mergeDecisionDialogCopy as h } from "./index38.js";
|
|
28
|
+
import { useApprovalPolicyCardView as g } from "./index29.js";
|
|
29
|
+
import { useCurrentApprovalRequestId as _ } from "./index30.js";
|
|
30
|
+
import { usePayableDetailActions as v } from "./index31.js";
|
|
31
|
+
import { useScheduledPayment as y } from "./index32.js";
|
|
32
|
+
import { BILL_DETAILS_LABELS_EN as b } from "./index55.js";
|
|
33
|
+
import { mapPayableToBillDetails as x } from "./index56.js";
|
|
34
|
+
import { useMemo as S, useRef as C } from "react";
|
|
35
|
+
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
37
36
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js
|
|
38
|
-
function O
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
let L = C(() => ({
|
|
43
|
-
...x,
|
|
44
|
-
...F,
|
|
37
|
+
function D({ open: D, onOpenChange: O, payableId: k, onClose: A, onExpand: j, testId: M, labels: N, poweredByBankName: P }) {
|
|
38
|
+
let F = S(() => ({
|
|
39
|
+
...b,
|
|
40
|
+
...N,
|
|
45
41
|
sheet: {
|
|
46
|
-
...
|
|
47
|
-
...
|
|
42
|
+
...b.sheet,
|
|
43
|
+
...N?.sheet,
|
|
48
44
|
statusBadge: {
|
|
49
|
-
...
|
|
50
|
-
...
|
|
45
|
+
...b.sheet.statusBadge,
|
|
46
|
+
...N?.sheet?.statusBadge
|
|
51
47
|
},
|
|
52
48
|
approvalPolicy: {
|
|
53
|
-
...
|
|
54
|
-
...
|
|
49
|
+
...b.sheet.approvalPolicy,
|
|
50
|
+
...N?.sheet?.approvalPolicy
|
|
55
51
|
},
|
|
56
52
|
dueDate: {
|
|
57
|
-
...
|
|
58
|
-
...
|
|
53
|
+
...b.sheet.dueDate,
|
|
54
|
+
...N?.sheet?.dueDate
|
|
59
55
|
}
|
|
60
56
|
},
|
|
61
|
-
decisionDialog:
|
|
57
|
+
decisionDialog: h(b.decisionDialog, N?.decisionDialog),
|
|
62
58
|
approvalPolicyCopy: {
|
|
63
|
-
...
|
|
64
|
-
...
|
|
59
|
+
...b.approvalPolicyCopy,
|
|
60
|
+
...N?.approvalPolicyCopy
|
|
65
61
|
},
|
|
66
|
-
markAsPaid:
|
|
62
|
+
markAsPaid: p(N?.markAsPaid),
|
|
67
63
|
actionSuccess: {
|
|
68
|
-
...
|
|
69
|
-
...
|
|
64
|
+
...b.actionSuccess,
|
|
65
|
+
...N?.actionSuccess
|
|
70
66
|
}
|
|
71
|
-
}), [
|
|
72
|
-
payableId:
|
|
73
|
-
status:
|
|
74
|
-
}),
|
|
75
|
-
payableId:
|
|
76
|
-
approvalPolicyId:
|
|
77
|
-
copy:
|
|
78
|
-
}),
|
|
79
|
-
payableId:
|
|
80
|
-
scheduledPaymentDate:
|
|
81
|
-
}),
|
|
82
|
-
payableId:
|
|
83
|
-
amountDueMinorUnits:
|
|
84
|
-
amountToPayMinorUnits:
|
|
85
|
-
currencyCode:
|
|
86
|
-
dueDate:
|
|
87
|
-
hasScheduledPayment:
|
|
88
|
-
testId:
|
|
89
|
-
labels:
|
|
90
|
-
}), { actions:
|
|
91
|
-
payableId:
|
|
92
|
-
status:
|
|
93
|
-
currentApprovalRequestId:
|
|
94
|
-
isPolicyApprover:
|
|
95
|
-
hasWaitingRequest:
|
|
96
|
-
hasScheduledPayment:
|
|
97
|
-
scheduledPaymentIntentId:
|
|
98
|
-
isScheduledPaymentUnknown:
|
|
99
|
-
pendingApprovers:
|
|
100
|
-
arePendingApproversUnknown:
|
|
67
|
+
}), [N]), I = a(k), L = i(k), R = n(), z = I.data, B = C(null), V = _({
|
|
68
|
+
payableId: k,
|
|
69
|
+
status: z?.status
|
|
70
|
+
}), H = g({
|
|
71
|
+
payableId: k,
|
|
72
|
+
approvalPolicyId: z?.approval_policy_id,
|
|
73
|
+
copy: F.approvalPolicyCopy
|
|
74
|
+
}), U = y({
|
|
75
|
+
payableId: k,
|
|
76
|
+
scheduledPaymentDate: z?.scheduled_payment_date
|
|
77
|
+
}), W = m({
|
|
78
|
+
payableId: k,
|
|
79
|
+
amountDueMinorUnits: d(z) ?? 0,
|
|
80
|
+
amountToPayMinorUnits: z?.amount_to_pay ?? void 0,
|
|
81
|
+
currencyCode: z?.currency ?? void 0,
|
|
82
|
+
dueDate: z?.due_date,
|
|
83
|
+
hasScheduledPayment: U.hasScheduledPayment,
|
|
84
|
+
testId: M,
|
|
85
|
+
labels: F.markAsPaid
|
|
86
|
+
}), { actions: G, decisionDialog: K } = v({
|
|
87
|
+
payableId: z ? k : void 0,
|
|
88
|
+
status: z?.status,
|
|
89
|
+
currentApprovalRequestId: V.id,
|
|
90
|
+
isPolicyApprover: V.isPolicyApprover,
|
|
91
|
+
hasWaitingRequest: V.hasWaitingRequest,
|
|
92
|
+
hasScheduledPayment: U.hasScheduledPayment,
|
|
93
|
+
scheduledPaymentIntentId: U.scheduledPaymentIntentId,
|
|
94
|
+
isScheduledPaymentUnknown: U.isResolving,
|
|
95
|
+
pendingApprovers: H.pendingApprovers,
|
|
96
|
+
arePendingApproversUnknown: H.isLoading,
|
|
101
97
|
labels: {
|
|
102
|
-
payBill:
|
|
103
|
-
markAsPaid:
|
|
104
|
-
reject:
|
|
105
|
-
approve:
|
|
106
|
-
cancel:
|
|
107
|
-
cancelScheduledPayment:
|
|
108
|
-
reopen:
|
|
109
|
-
forceApprove:
|
|
110
|
-
forceReject:
|
|
111
|
-
policyOverridesHeading:
|
|
112
|
-
decisionDialog:
|
|
113
|
-
actionError:
|
|
114
|
-
actionSuccess:
|
|
98
|
+
payBill: F.sheet.payButton,
|
|
99
|
+
markAsPaid: F.sheet.markAsPaidButton,
|
|
100
|
+
reject: F.sheet.rejectButton,
|
|
101
|
+
approve: F.sheet.approveButton,
|
|
102
|
+
cancel: F.sheet.cancelButton,
|
|
103
|
+
cancelScheduledPayment: F.sheet.cancelScheduledPaymentButton,
|
|
104
|
+
reopen: F.sheet.reopenButton,
|
|
105
|
+
forceApprove: F.sheet.forceApproveButton,
|
|
106
|
+
forceReject: F.sheet.forceRejectButton,
|
|
107
|
+
policyOverridesHeading: F.sheet.policyOverridesGroup,
|
|
108
|
+
decisionDialog: F.decisionDialog,
|
|
109
|
+
actionError: F.actionError,
|
|
110
|
+
actionSuccess: F.actionSuccess
|
|
115
111
|
},
|
|
116
|
-
isMarkAsPaidPending:
|
|
117
|
-
onMarkAsPaidSelect:
|
|
118
|
-
onPayBillSelect: () =>
|
|
119
|
-
|
|
120
|
-
N();
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
H.current?.open();
|
|
124
|
-
}
|
|
125
|
-
}), Y = G.hasScheduledPayment && G.scheduledDateLabel ? /* @__PURE__ */ E("p", {
|
|
112
|
+
isMarkAsPaidPending: W.isPending,
|
|
113
|
+
onMarkAsPaidSelect: W.open,
|
|
114
|
+
onPayBillSelect: () => B.current?.open()
|
|
115
|
+
}), q = U.hasScheduledPayment && U.scheduledDateLabel ? /* @__PURE__ */ T("p", {
|
|
126
116
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
127
|
-
children:
|
|
128
|
-
}) : void 0, { initResponse:
|
|
129
|
-
payable:
|
|
130
|
-
canManage: e(
|
|
131
|
-
}),
|
|
132
|
-
onNotADuplicate:
|
|
133
|
-
isActionDisabled:
|
|
134
|
-
}) : void 0,
|
|
135
|
-
payable:
|
|
136
|
-
lineItems:
|
|
137
|
-
ledgerAccounts:
|
|
138
|
-
labels:
|
|
139
|
-
hasScheduledPayment:
|
|
117
|
+
children: F.scheduledSummary(U.scheduledDateLabel)
|
|
118
|
+
}) : void 0, { initResponse: J } = r(), Y = u({
|
|
119
|
+
payable: z,
|
|
120
|
+
canManage: e(J?.scopes, [t.PayableWriteOrg])
|
|
121
|
+
}), X = Y.isPossibleDuplicate ? /* @__PURE__ */ T(c, {
|
|
122
|
+
onNotADuplicate: Y.onNotADuplicate,
|
|
123
|
+
isActionDisabled: Y.isBusy
|
|
124
|
+
}) : void 0, Z = X || q ? /* @__PURE__ */ E(w, { children: [X, q] }) : void 0, Q = S(() => z ? x({
|
|
125
|
+
payable: z,
|
|
126
|
+
lineItems: L.lineItems,
|
|
127
|
+
ledgerAccounts: R.data?.data ?? [],
|
|
128
|
+
labels: F,
|
|
129
|
+
hasScheduledPayment: U.hasScheduledPayment
|
|
140
130
|
}) : void 0, [
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
]),
|
|
147
|
-
return /* @__PURE__ */
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
open:
|
|
150
|
-
onOpenChange:
|
|
151
|
-
details:
|
|
152
|
-
actions:
|
|
153
|
-
approvalPolicy:
|
|
154
|
-
isLoading:
|
|
155
|
-
isError:
|
|
156
|
-
notice:
|
|
157
|
-
onClose:
|
|
158
|
-
onExpand:
|
|
159
|
-
testId:
|
|
160
|
-
labels:
|
|
131
|
+
z,
|
|
132
|
+
L.lineItems,
|
|
133
|
+
R.data,
|
|
134
|
+
F,
|
|
135
|
+
U.hasScheduledPayment
|
|
136
|
+
]), $ = I.isLoading || L.isResolving || R.isResolving, ee = I.isError || L.isError || R.isError;
|
|
137
|
+
return /* @__PURE__ */ E(w, { children: [
|
|
138
|
+
/* @__PURE__ */ T(s, {
|
|
139
|
+
open: D,
|
|
140
|
+
onOpenChange: O,
|
|
141
|
+
details: Q,
|
|
142
|
+
actions: G,
|
|
143
|
+
approvalPolicy: H.view,
|
|
144
|
+
isLoading: $,
|
|
145
|
+
isError: ee,
|
|
146
|
+
notice: Z,
|
|
147
|
+
onClose: A,
|
|
148
|
+
onExpand: j,
|
|
149
|
+
testId: M,
|
|
150
|
+
labels: F.sheet
|
|
161
151
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
...
|
|
164
|
-
labels: { cancelButton:
|
|
165
|
-
testId:
|
|
166
|
-
confirmTestId:
|
|
167
|
-
reasonTestId:
|
|
168
|
-
reasonFieldId:
|
|
152
|
+
/* @__PURE__ */ T(o, {
|
|
153
|
+
...K,
|
|
154
|
+
labels: { cancelButton: F.decisionDialog.cancelButton },
|
|
155
|
+
testId: M ? `${M}-decision-dialog` : void 0,
|
|
156
|
+
confirmTestId: M ? `${M}-decision-confirm` : void 0,
|
|
157
|
+
reasonTestId: M ? `${M}-decision-reason` : void 0,
|
|
158
|
+
reasonFieldId: M ? `${M}-decision-reason-field` : void 0
|
|
169
159
|
}),
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
|
|
172
|
-
ref:
|
|
173
|
-
payable:
|
|
174
|
-
|
|
160
|
+
/* @__PURE__ */ T(l, { ...W.dialogProps }),
|
|
161
|
+
z ? /* @__PURE__ */ T(f, {
|
|
162
|
+
ref: B,
|
|
163
|
+
payable: z,
|
|
164
|
+
onMissingAchInstructions: j,
|
|
165
|
+
poweredByBankName: P
|
|
175
166
|
}) : null
|
|
176
167
|
] });
|
|
177
168
|
}
|
|
178
169
|
//#endregion
|
|
179
|
-
export {
|
|
170
|
+
export { D as BillDetailsContainer, D as default };
|
|
@@ -12,15 +12,15 @@ import "../../../data-access/dist/index.js";
|
|
|
12
12
|
import { counterpartBankAccountsInvalidationKey as l, counterpartInvalidationKey as u } from "./index2.js";
|
|
13
13
|
import { useMutation as d, useQuery as f } from "@tanstack/react-query";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js
|
|
15
|
-
function p(e) {
|
|
16
|
-
let { client:
|
|
17
|
-
client:
|
|
18
|
-
headers: n(
|
|
15
|
+
function p(e, { enabled: r = !0 } = {}) {
|
|
16
|
+
let { client: i, organizationId: a, widgetToken: o, authEpoch: l } = t(), u = !!(r && a && o && e), d = s({
|
|
17
|
+
client: i,
|
|
18
|
+
headers: n(a),
|
|
19
19
|
path: { counterpart_id: e ?? "" }
|
|
20
20
|
});
|
|
21
21
|
return f({
|
|
22
|
-
...c(
|
|
23
|
-
enabled:
|
|
22
|
+
...c(d, l),
|
|
23
|
+
enabled: u
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
function m() {
|
|
@@ -13,10 +13,11 @@ import { useCounterpartAddressesForRowsQuery as E, useCounterpartAddressesQuery
|
|
|
13
13
|
import "../../data-access/dist/index.js";
|
|
14
14
|
import { useAddressForm as O } from "./lib/useAddressForm.js";
|
|
15
15
|
import { useCounterpartDetails as k } from "./lib/useCounterpartDetails.js";
|
|
16
|
-
import {
|
|
16
|
+
import { usePayableAchInstructions as A } from "./lib/usePayableAchInstructions.js";
|
|
17
|
+
import { useCounterpartForm as j } from "./lib/useCounterpartForm.js";
|
|
17
18
|
import "./lib/useCounterpartSelector.js";
|
|
18
|
-
import { CounterpartSelector as
|
|
19
|
-
import { useDeleteController as
|
|
19
|
+
import { CounterpartSelector as M } from "./lib/CounterpartSelector.js";
|
|
20
|
+
import { useDeleteController as N } from "./lib/useDeleteController.js";
|
|
20
21
|
import "./lib/useSubEntityForm.js";
|
|
21
|
-
import { useBankAccountForm as
|
|
22
|
-
export { e as AchFieldGroup, a as AddressFormSheet, i as BankAccountFormSheet, s as COUNTERPART_MESSAGE_LABELS_EN, o as ConfirmDeleteDialog, t as CounterpartFormFields, n as CounterpartFormSheet,
|
|
22
|
+
import { useBankAccountForm as P } from "./lib/subEntityForms.js";
|
|
23
|
+
export { e as AchFieldGroup, a as AddressFormSheet, i as BankAccountFormSheet, s as COUNTERPART_MESSAGE_LABELS_EN, o as ConfirmDeleteDialog, t as CounterpartFormFields, n as CounterpartFormSheet, M as CounterpartSelector, c as buildAnalyticsMap, l as buildCounterpartRows, u as counterpartFormBankAccountToCreatePayload, d as counterpartFormBankAccountToUpdatePayload, f as formatCounterpartDate, p as formatMoney, m as getAchInstructions, h as getCounterpartEmail, g as getCounterpartName, _ as getPayableAchInstructions, v as hasAchFormValues, y as hasSelectedText, b as resolveCounterpartBankAccountWrite, O as useAddressForm, P as useBankAccountForm, E as useCounterpartAddressesForRowsQuery, D as useCounterpartAddressesQuery, C as useCounterpartBankAccountsQuery, k as useCounterpartDetails, j as useCounterpartForm, S as useCounterpartsQuery, w as useCreateCounterpartBankAccountMutation, N as useDeleteController, r as useFocusFirstInvalidField, A as usePayableAchInstructions, T as useUpdateCounterpartBankAccountMutation, x as validateAchFormValues };
|
|
@@ -129,9 +129,8 @@ function b(e) {
|
|
|
129
129
|
let t = (e ?? []).filter((e) => e.currency === "USD" && (!!e.routing_number || !!e.account_number));
|
|
130
130
|
return t.find((e) => e.is_default_for_currency) ?? t[0];
|
|
131
131
|
}
|
|
132
|
-
function x(e) {
|
|
133
|
-
|
|
134
|
-
return t.find((e) => e.is_default_for_currency) ?? t[0];
|
|
132
|
+
function x(e, t = "USD") {
|
|
133
|
+
return (e ?? []).find((e) => e.currency === t && e.is_default_for_currency && !!e.account_holder_name && !!e.routing_number && !!e.account_number);
|
|
135
134
|
}
|
|
136
135
|
function S(e, t = {}) {
|
|
137
136
|
let n = e.line2.trim();
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { getPayableAchInstructions as e } from "./helpers.js";
|
|
6
|
+
import { useCounterpartBankAccountsQuery as t } from "../../../data-access/dist/index5.js";
|
|
7
|
+
import "../../../data-access/dist/index.js";
|
|
8
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js
|
|
9
|
+
function n({ counterpartId: n, currency: r, enabled: i = !0 } = {}) {
|
|
10
|
+
let a = t(n, { enabled: i });
|
|
11
|
+
return {
|
|
12
|
+
achInstructions: e(a.data?.data, r ?? void 0),
|
|
13
|
+
isLoading: a.isLoading,
|
|
14
|
+
isError: a.isError
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { n as usePayableAchInstructions };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.3.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.3.57", n = "c2b9c135886a1756b0e32c4577811bfab6f8c3e1", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|