@tesouro/embedded-components-react 0.5.226 → 0.5.227
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/balances-widget/feature/dist/index3.js +41 -39
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +39 -38
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
- 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/product-catalog/data-access/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import "../../../data-access/dist/index.js";
|
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js
|
|
12
12
|
function a({ enabled: a, ...o } = {}) {
|
|
13
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u,
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = !!(c && l) && (a === !0 || a === void 0), p = e({
|
|
14
14
|
query: o,
|
|
15
15
|
client: s,
|
|
16
16
|
headers: r(c)
|
|
@@ -18,7 +18,7 @@ function a({ enabled: a, ...o } = {}) {
|
|
|
18
18
|
return i({
|
|
19
19
|
...t(p, {
|
|
20
20
|
authEpoch: u,
|
|
21
|
-
|
|
21
|
+
organizationStatus: d
|
|
22
22
|
}, { carryWithinOrg: !0 }),
|
|
23
23
|
enabled: f
|
|
24
24
|
});
|
|
@@ -12,7 +12,7 @@ import { queryOptions as a, useQuery as o } from "@tanstack/react-query";
|
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js
|
|
13
13
|
var s = 100;
|
|
14
14
|
function c({ enabled: c, ...l } = {}) {
|
|
15
|
-
let { client: u, organizationId: d, widgetToken: f, authEpoch: p,
|
|
15
|
+
let { client: u, organizationId: d, widgetToken: f, authEpoch: p, organizationStatus: m } = r(), h = i(d), g = a({
|
|
16
16
|
queryKey: [...t({
|
|
17
17
|
client: u,
|
|
18
18
|
headers: h,
|
|
@@ -45,7 +45,7 @@ function c({ enabled: c, ...l } = {}) {
|
|
|
45
45
|
return o({
|
|
46
46
|
...n(g, {
|
|
47
47
|
authEpoch: p,
|
|
48
|
-
|
|
48
|
+
organizationStatus: m
|
|
49
49
|
}),
|
|
50
50
|
enabled: !!(d && f) && (c === !0 || c === void 0)
|
|
51
51
|
});
|
|
@@ -10,7 +10,7 @@ import "../../../data-access/dist/index.js";
|
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js
|
|
12
12
|
function a(a, { enabled: o = !0 } = {}) {
|
|
13
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u,
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = !!(c && l && a) && o, p = e({
|
|
14
14
|
client: s,
|
|
15
15
|
headers: r(c),
|
|
16
16
|
path: { product_id: a ?? "" }
|
|
@@ -18,7 +18,7 @@ function a(a, { enabled: o = !0 } = {}) {
|
|
|
18
18
|
return i({
|
|
19
19
|
...t(p, {
|
|
20
20
|
authEpoch: u,
|
|
21
|
-
|
|
21
|
+
organizationStatus: d
|
|
22
22
|
}),
|
|
23
23
|
enabled: f
|
|
24
24
|
});
|
|
@@ -10,14 +10,14 @@ import "../../../data-access/dist/index.js";
|
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js
|
|
12
12
|
function a({ enabled: a = !0 } = {}) {
|
|
13
|
-
let { client: o, organizationId: s, widgetToken: c, authEpoch: l,
|
|
13
|
+
let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: u } = n(), d = !!(s && c) && a, f = e({
|
|
14
14
|
client: o,
|
|
15
15
|
headers: r(s)
|
|
16
16
|
});
|
|
17
17
|
return i({
|
|
18
18
|
...t(f, {
|
|
19
19
|
authEpoch: l,
|
|
20
|
-
|
|
20
|
+
organizationStatus: u
|
|
21
21
|
}),
|
|
22
22
|
enabled: d
|
|
23
23
|
});
|
package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js
CHANGED
|
@@ -14,7 +14,7 @@ import { useQueries as s } from "@tanstack/react-query";
|
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js
|
|
15
15
|
var c = 25;
|
|
16
16
|
function l({ enabled: l, transfersPerAccount: u = c } = {}) {
|
|
17
|
-
let { client: d, organizationId: f, widgetToken: p, authEpoch: m,
|
|
17
|
+
let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationStatus: h } = n(), g = r(f), _ = !!(f && p) && (l === !0 || l === void 0), v = a({ enabled: _ }), y = o(() => [...v.data?.data?.map((e) => e.id).filter(Boolean) ?? []].sort(), [v.data?.data]), b = s({ queries: y.map((n) => ({
|
|
18
18
|
...t(e({
|
|
19
19
|
client: d,
|
|
20
20
|
headers: g,
|
|
@@ -22,7 +22,7 @@ function l({ enabled: l, transfersPerAccount: u = c } = {}) {
|
|
|
22
22
|
query: { limit: u }
|
|
23
23
|
}), {
|
|
24
24
|
authEpoch: m,
|
|
25
|
-
|
|
25
|
+
organizationStatus: h
|
|
26
26
|
}),
|
|
27
27
|
enabled: _
|
|
28
28
|
})) });
|
|
@@ -3,121 +3,123 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { TESOURO_NEW_EMBEDDED_BANK_ACCOUNT_CREATED_SUCCESS_EVENT as e, TESOURO_NEW_EXTERNAL_BANK_ACCOUNT_LINKED_SUCCESS_EVENT as t } from "../../../shared/util/dist/lib/widgetDomEvents.js";
|
|
6
|
-
import {
|
|
6
|
+
import { isOrganizationOnItsWay as n } from "../../../shared/data-access/dist/lib/organizationStatus.js";
|
|
7
|
+
import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { Scope as i } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
9
|
import "../../../shared/data-access/dist/index.js";
|
|
8
|
-
import { useAnalyticsTrack as
|
|
9
|
-
import { useWidgetConfig as
|
|
10
|
+
import { useAnalyticsTrack as a } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
11
|
+
import { useWidgetConfig as ee } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
12
|
import "../../../shared/feature/dist/index.js";
|
|
11
|
-
import { DEFAULT_FEATURE_LABELS as
|
|
12
|
-
import { TRANSFERS_ANALYTICS_EVENTS as
|
|
13
|
-
import { isPaginatedAccountsQueryInFlight as
|
|
14
|
-
import { useTransferBankAccountsQuery as
|
|
15
|
-
import { useTransferExternalAccountsQuery as
|
|
16
|
-
import { useMergedRecentBankAccountTransfersQuery as
|
|
13
|
+
import { DEFAULT_FEATURE_LABELS as o } from "./index3.js";
|
|
14
|
+
import { TRANSFERS_ANALYTICS_EVENTS as s } from "./index2.js";
|
|
15
|
+
import { isPaginatedAccountsQueryInFlight as c } from "../../data-access/dist/index2.js";
|
|
16
|
+
import { useTransferBankAccountsQuery as l } from "../../data-access/dist/index4.js";
|
|
17
|
+
import { useTransferExternalAccountsQuery as te } from "../../data-access/dist/index5.js";
|
|
18
|
+
import { useMergedRecentBankAccountTransfersQuery as u } from "../../data-access/dist/index6.js";
|
|
17
19
|
import "../../data-access/dist/index.js";
|
|
18
|
-
import { mapTransferToRowView as
|
|
19
|
-
import { transfersWidgetTestIds as
|
|
20
|
-
import { TRANSFERS_WIDGET_LABELS_EN as
|
|
20
|
+
import { mapTransferToRowView as d, useTransferMoneyModalController as f } from "./index4.js";
|
|
21
|
+
import { transfersWidgetTestIds as p } from "./index5.js";
|
|
22
|
+
import { TRANSFERS_WIDGET_LABELS_EN as ne } from "../../ui/dist/lib/TransfersWidget/labels.js";
|
|
21
23
|
import { TransfersWidget as m } from "../../ui/dist/lib/TransfersWidget/TransfersWidget.js";
|
|
22
24
|
import "../../ui/dist/index.js";
|
|
23
25
|
import { useCallback as h, useEffect as g, useMemo as _ } from "react";
|
|
24
26
|
import { jsx as v } from "react/jsx-runtime";
|
|
25
27
|
//#region ../../libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js
|
|
26
|
-
var y = [
|
|
28
|
+
var y = [i.TransferWriteOrg, i.BankAccountReadOrg], b = [t, e];
|
|
27
29
|
function x(e) {
|
|
28
30
|
return e.slice(-4);
|
|
29
31
|
}
|
|
30
32
|
function S({ labels: e, featureLabels: t, isTransferMoneyOpen: S, defaultIsTransferMoneyOpen: C, onTransferMoneyOpenChange: w }) {
|
|
31
33
|
let T = {
|
|
32
|
-
...
|
|
34
|
+
...o,
|
|
33
35
|
...t
|
|
34
36
|
}, E = {
|
|
35
|
-
...
|
|
37
|
+
...ne,
|
|
36
38
|
...e,
|
|
37
39
|
...t?.routeSeparator === void 0 ? {} : { listAccountsSeparator: t.routeSeparator }
|
|
38
|
-
}, D =
|
|
40
|
+
}, D = a(), { initResponse: O } = ee(), k = n(r().organizationStatus);
|
|
39
41
|
g(() => {
|
|
40
|
-
D(
|
|
42
|
+
D(s.Mounted);
|
|
41
43
|
}, [D]);
|
|
42
|
-
let
|
|
44
|
+
let A = O?.scopes ?? [], j = A.includes(i.ExternalBankAccountReadOrg), M = A.includes(i.PaymentRailAch), N = j && M, P = y.every((e) => A.includes(e)), { mergedTransfers: F, isLoading: I, isError: L, refetch: R } = u(), z = l(), { data: B, isError: V, refetch: H } = z, U = te({ enabled: j }), { data: W, isError: G, refetch: K } = U, q = B?.data ?? [], J = _(() => N ? (W?.data ?? []).filter((e) => e.verificationStatus === "VERIFIED" && e.accountStatus === "ACTIVE") : [], [N, W?.data]), Y = _(() => {
|
|
43
45
|
let e = /* @__PURE__ */ new Map();
|
|
44
|
-
for (let t of
|
|
46
|
+
for (let t of q) {
|
|
45
47
|
let n = x(t.accountNumber), r = t.nickname?.trim() || E.accountFallbackName;
|
|
46
48
|
e.set(t.id, `${r} ···${n}`);
|
|
47
49
|
}
|
|
48
|
-
for (let t of
|
|
50
|
+
for (let t of J) {
|
|
49
51
|
let n = x(t.accountNumber), r = t.nickname?.trim() || t.nameOnAccount;
|
|
50
52
|
e.set(t.id, `${r} ···${n}`);
|
|
51
53
|
}
|
|
52
54
|
return e;
|
|
53
55
|
}, [
|
|
54
|
-
G,
|
|
55
|
-
E.accountFallbackName,
|
|
56
|
-
K
|
|
57
|
-
]), J = _(() => N.map((e) => u(e, q, E, T)), [
|
|
58
56
|
q,
|
|
57
|
+
E.accountFallbackName,
|
|
58
|
+
J
|
|
59
|
+
]), X = _(() => F.map((e) => d(e, Y, E, T)), [
|
|
60
|
+
Y,
|
|
59
61
|
T,
|
|
60
62
|
E,
|
|
61
|
-
|
|
62
|
-
]),
|
|
63
|
-
|
|
63
|
+
F
|
|
64
|
+
]), Z = h(() => {
|
|
65
|
+
R(), H(), j && K();
|
|
64
66
|
}, [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
j,
|
|
68
|
+
H,
|
|
69
|
+
K,
|
|
70
|
+
R
|
|
69
71
|
]);
|
|
70
72
|
g(() => {
|
|
71
73
|
let e = () => {
|
|
72
|
-
|
|
74
|
+
Z();
|
|
73
75
|
};
|
|
74
76
|
for (let t of b) window.addEventListener(t, e);
|
|
75
77
|
return () => {
|
|
76
78
|
for (let t of b) window.removeEventListener(t, e);
|
|
77
79
|
};
|
|
78
|
-
}, [
|
|
79
|
-
let { modalProps:
|
|
80
|
+
}, [Z]);
|
|
81
|
+
let { modalProps: re, openModal: ie } = f({
|
|
80
82
|
labels: E,
|
|
81
83
|
featureLabels: T,
|
|
82
|
-
embeddedBankAccounts:
|
|
83
|
-
verifiedExternalBankAccounts:
|
|
84
|
+
embeddedBankAccounts: q,
|
|
85
|
+
verifiedExternalBankAccounts: J,
|
|
84
86
|
track: D,
|
|
85
87
|
isTransferMoneyOpen: S,
|
|
86
88
|
defaultIsTransferMoneyOpen: C,
|
|
87
89
|
onTransferMoneyOpenChange: w
|
|
88
|
-
}),
|
|
90
|
+
}), ae = c(z), oe = j && c(U), se = k && !B || I || ae || oe, Q = L || V || j && G, ce = q.length + J.length, $ = !(q.length > 0) || ce <= 1;
|
|
89
91
|
return /* @__PURE__ */ v(m, {
|
|
90
|
-
transferRows:
|
|
91
|
-
isLoading:
|
|
92
|
+
transferRows: X,
|
|
93
|
+
isLoading: se,
|
|
92
94
|
isError: Q,
|
|
93
|
-
onRetry: Q ? () => void
|
|
94
|
-
showTransferMoneyCta:
|
|
95
|
+
onRetry: Q ? () => void Z() : void 0,
|
|
96
|
+
showTransferMoneyCta: P,
|
|
95
97
|
isTransferMoneyCtaDisabled: $,
|
|
96
|
-
onTransferMoneyClick:
|
|
98
|
+
onTransferMoneyClick: P && !$ ? () => ie() : void 0,
|
|
97
99
|
transferMoneyModal: {
|
|
98
|
-
...
|
|
100
|
+
...re,
|
|
99
101
|
testIds: {
|
|
100
|
-
root:
|
|
101
|
-
closeButton:
|
|
102
|
-
fromAccountTrigger:
|
|
103
|
-
toAccountTrigger:
|
|
104
|
-
accountsConfirm:
|
|
105
|
-
amountInput:
|
|
102
|
+
root: p.modal,
|
|
103
|
+
closeButton: p.modalCloseButton,
|
|
104
|
+
fromAccountTrigger: p.modalFromAccountTrigger,
|
|
105
|
+
toAccountTrigger: p.modalToAccountTrigger,
|
|
106
|
+
accountsConfirm: p.modalAccountsConfirmButton,
|
|
107
|
+
amountInput: p.modalAmountInput,
|
|
106
108
|
reviewStep: {
|
|
107
|
-
confirm:
|
|
108
|
-
goBack:
|
|
109
|
+
confirm: p.modalConfirmTransferButton,
|
|
110
|
+
goBack: p.modalGoBackButton
|
|
109
111
|
},
|
|
110
|
-
resultStep: { backToTransfers:
|
|
112
|
+
resultStep: { backToTransfers: p.modalBackToTransfersButton }
|
|
111
113
|
}
|
|
112
114
|
},
|
|
113
115
|
labels: e,
|
|
114
116
|
testIds: {
|
|
115
|
-
transferMoneyButton:
|
|
116
|
-
skeleton:
|
|
117
|
-
error:
|
|
118
|
-
retry:
|
|
119
|
-
empty:
|
|
120
|
-
transferRow:
|
|
117
|
+
transferMoneyButton: p.transferMoneyButton,
|
|
118
|
+
skeleton: p.skeleton,
|
|
119
|
+
error: p.error,
|
|
120
|
+
retry: p.retry,
|
|
121
|
+
empty: p.empty,
|
|
122
|
+
transferRow: p.transferRow
|
|
121
123
|
}
|
|
122
124
|
});
|
|
123
125
|
}
|