@tesouro/embedded-components-react 0.5.115 → 0.5.117
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 +3 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -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/product-catalog/data-access/dist/index10.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1740,6 +1740,9 @@
|
|
|
1740
1740
|
.ttw\:grid-cols-\[180px_1fr\] {
|
|
1741
1741
|
grid-template-columns: 180px 1fr;
|
|
1742
1742
|
}
|
|
1743
|
+
.ttw\:grid-cols-\[max-content_1fr\] {
|
|
1744
|
+
grid-template-columns: max-content 1fr;
|
|
1745
|
+
}
|
|
1743
1746
|
.ttw\:grid-cols-\[minmax\(0\,1fr\)_auto\] {
|
|
1744
1747
|
grid-template-columns: minmax(0,1fr) auto;
|
|
1745
1748
|
}
|
|
@@ -2,10 +2,10 @@ import { OnboardingSuppressionReason as e } from "../../../shared/data-access/di
|
|
|
2
2
|
import { useOrganizationOnboardingSuppression as t } from "../../../shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js";
|
|
3
3
|
import "../../../shared/data-access/dist/index.js";
|
|
4
4
|
import { ApplicationClientSecretProvider as n, useApplicationClientSecret as r } from "./index3.js";
|
|
5
|
-
import { useCreateApplication as i } from "./
|
|
6
|
-
import { useUpdateApplication as a } from "./
|
|
7
|
-
import { useSubmitApplication as o } from "./
|
|
8
|
-
import { usePollApplicationCompletion as s } from "./
|
|
9
|
-
import { useResumableBankAccountApplication as c } from "./
|
|
10
|
-
import { useStartedBankAccountApplication as l } from "./
|
|
5
|
+
import { useCreateApplication as i } from "./index5.js";
|
|
6
|
+
import { useUpdateApplication as a } from "./index6.js";
|
|
7
|
+
import { useSubmitApplication as o } from "./index7.js";
|
|
8
|
+
import { usePollApplicationCompletion as s } from "./index8.js";
|
|
9
|
+
import { useResumableBankAccountApplication as c } from "./index10.js";
|
|
10
|
+
import { useStartedBankAccountApplication as l } from "./index11.js";
|
|
11
11
|
export { n as ApplicationClientSecretProvider, e as OnboardingSuppressionReason, r as useApplicationClientSecret, i as useCreateApplication, t as useOrganizationOnboardingSuppression, s as usePollApplicationCompletion, c as useResumableBankAccountApplication, l as useStartedBankAccountApplication, o as useSubmitApplication, a as useUpdateApplication };
|
|
@@ -2,40 +2,34 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { getBankAccountApplicationOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
-
import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
5
|
+
import { applicationStatusQueryOptions as e } from "../../../shared/data-access/dist/lib/applicationStatusQueryOptions.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
7
|
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { useMemo as o } from "react";
|
|
13
|
-
import { useQuery as s } from "@tanstack/react-query";
|
|
8
|
+
import { hasFreshAnswer as n } from "./index9.js";
|
|
9
|
+
import { useQuery as r } from "@tanstack/react-query";
|
|
14
10
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
let
|
|
24
|
-
...
|
|
25
|
-
client:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
retry: 2,
|
|
32
|
-
retryDelay: 300
|
|
33
|
-
});
|
|
11
|
+
var i = "DRAFT", a = "BANK_ACCOUNT", o = "STARTED_BY_YOU";
|
|
12
|
+
function s(e) {
|
|
13
|
+
return e.find((e) => e.product === a && e.ownership === o && e.status === i && !!e.applicationId && !!e.clientSecret);
|
|
14
|
+
}
|
|
15
|
+
function c(e) {
|
|
16
|
+
return e.filter((e) => e.product === a && e.ownership === o).map((e) => e.applicationId).filter((e) => !!e);
|
|
17
|
+
}
|
|
18
|
+
function l() {
|
|
19
|
+
let { client: i, widgetToken: a, authEpoch: o } = t(), l = !!a, u = r({
|
|
20
|
+
...e({
|
|
21
|
+
client: i,
|
|
22
|
+
widgetToken: a,
|
|
23
|
+
authEpoch: o
|
|
24
|
+
}),
|
|
25
|
+
enabled: l
|
|
26
|
+
}), d = l && n(u), f = d && !u.isError ? u.data?.applications ?? null : null, p = f ? s(f) : void 0;
|
|
34
27
|
return {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
applicationId: p?.applicationId ?? null,
|
|
29
|
+
clientSecret: p?.clientSecret ?? null,
|
|
30
|
+
isResolved: d,
|
|
31
|
+
ownApplicationIds: f ? c(f) : null
|
|
38
32
|
};
|
|
39
33
|
}
|
|
40
34
|
//#endregion
|
|
41
|
-
export { l as
|
|
35
|
+
export { l as useResumableBankAccountApplication };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { getBankAccountApplicationOptions as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { optionalOrganizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
|
+
import "../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { useInstallApplicationClientSecret as i } from "./index3.js";
|
|
11
|
+
import { hasFreshAnswer as a } from "./index9.js";
|
|
12
|
+
import { useMemo as o } from "react";
|
|
13
|
+
import { useQuery as s } from "@tanstack/react-query";
|
|
14
|
+
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js
|
|
15
|
+
var c = (e, t) => (n, r) => {
|
|
16
|
+
if (n === void 0 || r === void 0) return;
|
|
17
|
+
let [i] = r.queryKey;
|
|
18
|
+
if (i !== void 0 && i.baseUrl === e && i.path?.id === t) return n;
|
|
19
|
+
};
|
|
20
|
+
function l(l, u) {
|
|
21
|
+
let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = n();
|
|
22
|
+
i(l, u);
|
|
23
|
+
let h = !!(p && l && u), g = d.getConfig().baseUrl, _ = o(() => c(g, l), [g, l]), v = s({
|
|
24
|
+
...t(e({
|
|
25
|
+
client: d,
|
|
26
|
+
path: { id: l ?? "" },
|
|
27
|
+
headers: r(f)
|
|
28
|
+
}), m),
|
|
29
|
+
placeholderData: _,
|
|
30
|
+
enabled: h,
|
|
31
|
+
retry: 2,
|
|
32
|
+
retryDelay: 300
|
|
33
|
+
});
|
|
34
|
+
return {
|
|
35
|
+
application: v.data ?? null,
|
|
36
|
+
isResolved: !h || a(v),
|
|
37
|
+
isUnavailable: h && v.isError
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { l as useStartedBankAccountApplication };
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
-
import { optionalOrganizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
-
import { createApplicationMutation as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
1
|
+
import { applicationStatusInvalidationKey as e } from "../../../shared/data-access/dist/lib/applicationStatusQueryOptions.js";
|
|
2
|
+
import { cancelAllClients as t, invalidateAllClients as n } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
8
3
|
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import { useMutation as r } from "@tanstack/react-query";
|
|
10
4
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js
|
|
11
|
-
function
|
|
12
|
-
let { client:
|
|
13
|
-
|
|
14
|
-
client: i,
|
|
15
|
-
headers: t(a)
|
|
16
|
-
}));
|
|
5
|
+
async function r(r) {
|
|
6
|
+
let i = e({ client: r });
|
|
7
|
+
await t(i), await n(i);
|
|
17
8
|
}
|
|
18
9
|
//#endregion
|
|
19
|
-
export {
|
|
10
|
+
export { r as refreshApplicationStatus };
|
|
@@ -2,18 +2,22 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { createApplicationMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { optionalOrganizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { refreshApplicationStatus as r } from "./index4.js";
|
|
10
|
+
import { useMutation as i } from "@tanstack/react-query";
|
|
10
11
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js
|
|
11
|
-
function
|
|
12
|
-
let { client:
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
function a() {
|
|
13
|
+
let { client: a, organizationId: o } = t();
|
|
14
|
+
return i({
|
|
15
|
+
...e({
|
|
16
|
+
client: a,
|
|
17
|
+
headers: n(o)
|
|
18
|
+
}),
|
|
19
|
+
onSuccess: () => r(a)
|
|
20
|
+
});
|
|
17
21
|
}
|
|
18
22
|
//#endregion
|
|
19
|
-
export {
|
|
23
|
+
export { a as useCreateApplication };
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { updateApplicationMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { optionalOrganizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useMutation as r } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js
|
|
11
11
|
function i() {
|
|
12
|
-
let { client: i, organizationId: a } =
|
|
13
|
-
return r(
|
|
12
|
+
let { client: i, organizationId: a } = t();
|
|
13
|
+
return r(e({
|
|
14
14
|
client: i,
|
|
15
|
-
headers:
|
|
15
|
+
headers: n(a)
|
|
16
16
|
}));
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
|
-
export { i as
|
|
19
|
+
export { i as useUpdateApplication };
|
|
@@ -2,45 +2,22 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { submitApplicationMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { optionalOrganizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
8
|
import "../../../shared/data-access/dist/index.js";
|
|
8
|
-
import {
|
|
9
|
+
import { refreshApplicationStatus as r } from "./index4.js";
|
|
10
|
+
import { useMutation as i } from "@tanstack/react-query";
|
|
9
11
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
clearTimeout(a), r(new DOMException("Aborted", "AbortError"));
|
|
19
|
-
}, a = setTimeout(() => {
|
|
20
|
-
t?.removeEventListener("abort", i), n();
|
|
21
|
-
}, e);
|
|
22
|
-
t?.addEventListener("abort", i, { once: !0 });
|
|
12
|
+
function a() {
|
|
13
|
+
let { client: a, organizationId: o } = t();
|
|
14
|
+
return i({
|
|
15
|
+
...e({
|
|
16
|
+
client: a,
|
|
17
|
+
headers: n(o)
|
|
18
|
+
}),
|
|
19
|
+
onSuccess: () => r(a)
|
|
23
20
|
});
|
|
24
21
|
}
|
|
25
|
-
function c() {
|
|
26
|
-
let { client: c } = e();
|
|
27
|
-
return n(async (e, n = {}) => {
|
|
28
|
-
let { signal: l } = n, u = !1;
|
|
29
|
-
for (let n = 0; n < i; n++) {
|
|
30
|
-
if (l?.aborted) throw new DOMException("Aborted", "AbortError");
|
|
31
|
-
try {
|
|
32
|
-
let n = await t({
|
|
33
|
-
client: c,
|
|
34
|
-
signal: l
|
|
35
|
-
});
|
|
36
|
-
if (u = !0, n.data?.applications.some((t) => t.product === o && t.applicationId === e && t.status === a)) return { status: "complete" };
|
|
37
|
-
} catch (e) {
|
|
38
|
-
if (e instanceof DOMException && e.name === "AbortError") throw e;
|
|
39
|
-
}
|
|
40
|
-
n < 5 && await s(r, l);
|
|
41
|
-
}
|
|
42
|
-
return u ? { status: "timeout" } : { status: "error" };
|
|
43
|
-
}, [c]);
|
|
44
|
-
}
|
|
45
22
|
//#endregion
|
|
46
|
-
export {
|
|
23
|
+
export { a as useSubmitApplication };
|
|
@@ -1,6 +1,46 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { getApplicationStatus as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import "../../../shared/data-access/dist/index.js";
|
|
8
|
+
import { useCallback as n } from "react";
|
|
1
9
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js
|
|
2
|
-
|
|
3
|
-
|
|
10
|
+
var r = 1e3, i = 6, a = "COMPLETE", o = "BANK_ACCOUNT";
|
|
11
|
+
function s(e, t) {
|
|
12
|
+
return new Promise((n, r) => {
|
|
13
|
+
if (t?.aborted) {
|
|
14
|
+
r(new DOMException("Aborted", "AbortError"));
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
let i = () => {
|
|
18
|
+
clearTimeout(a), r(new DOMException("Aborted", "AbortError"));
|
|
19
|
+
}, a = setTimeout(() => {
|
|
20
|
+
t?.removeEventListener("abort", i), n();
|
|
21
|
+
}, e);
|
|
22
|
+
t?.addEventListener("abort", i, { once: !0 });
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function c() {
|
|
26
|
+
let { client: c } = t();
|
|
27
|
+
return n(async (t, n = {}) => {
|
|
28
|
+
let { signal: l } = n, u = !1;
|
|
29
|
+
for (let n = 0; n < i; n++) {
|
|
30
|
+
if (l?.aborted) throw new DOMException("Aborted", "AbortError");
|
|
31
|
+
try {
|
|
32
|
+
let n = await e({
|
|
33
|
+
client: c,
|
|
34
|
+
signal: l
|
|
35
|
+
});
|
|
36
|
+
if (u = !0, n.data?.applications.some((e) => e.product === o && e.applicationId === t && e.status === a)) return { status: "complete" };
|
|
37
|
+
} catch (e) {
|
|
38
|
+
if (e instanceof DOMException && e.name === "AbortError") throw e;
|
|
39
|
+
}
|
|
40
|
+
n < 5 && await s(r, l);
|
|
41
|
+
}
|
|
42
|
+
return u ? { status: "timeout" } : { status: "error" };
|
|
43
|
+
}, [c]);
|
|
4
44
|
}
|
|
5
45
|
//#endregion
|
|
6
|
-
export {
|
|
46
|
+
export { c as usePollApplicationCompletion };
|
|
@@ -1,34 +1,6 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
-
import { getApplicationStatusOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
-
import { withAuthEpoch as n } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
8
|
-
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import { hasFreshAnswer as r } from "./index8.js";
|
|
10
|
-
import { useQuery as i } from "@tanstack/react-query";
|
|
11
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return e.find((e) => e.product === o && e.ownership === s && e.status === a && !!e.applicationId && !!e.clientSecret);
|
|
15
|
-
}
|
|
16
|
-
function l(e) {
|
|
17
|
-
return e.filter((e) => e.product === o && e.ownership === s).map((e) => e.applicationId).filter((e) => !!e);
|
|
18
|
-
}
|
|
19
|
-
function u() {
|
|
20
|
-
let { client: a, widgetToken: o, authEpoch: s } = e(), u = !!o, d = i({
|
|
21
|
-
...n(t({ client: a }), s),
|
|
22
|
-
enabled: u,
|
|
23
|
-
retry: 2,
|
|
24
|
-
retryDelay: 300
|
|
25
|
-
}), f = u && r(d), p = f && !d.isError ? d.data?.applications ?? null : null, m = p ? c(p) : void 0;
|
|
26
|
-
return {
|
|
27
|
-
applicationId: m?.applicationId ?? null,
|
|
28
|
-
clientSecret: m?.clientSecret ?? null,
|
|
29
|
-
isResolved: f,
|
|
30
|
-
ownApplicationIds: p ? l(p) : null
|
|
31
|
-
};
|
|
2
|
+
function e(e) {
|
|
3
|
+
return (e.isSuccess || e.isError) && !e.isFetching;
|
|
32
4
|
}
|
|
33
5
|
//#endregion
|
|
34
|
-
export {
|
|
6
|
+
export { e as hasFreshAnswer };
|
|
@@ -33,12 +33,12 @@ import { OnboardingAnalyticsEvent as se, WIDGET_NAME as ce } from "./index19.js"
|
|
|
33
33
|
import { DEFAULT_LABELS as b } from "./index20.js";
|
|
34
34
|
import { withoutResumeOnlyOwnerFields as le, withoutStoredIdentifierMarkers as ue } from "./index21.js";
|
|
35
35
|
import { ApplicationClientSecretProvider as de, useApplicationClientSecret as fe } from "../../data-access/dist/index3.js";
|
|
36
|
-
import { useCreateApplication as pe } from "../../data-access/dist/
|
|
37
|
-
import { useUpdateApplication as me } from "../../data-access/dist/
|
|
38
|
-
import { useSubmitApplication as he } from "../../data-access/dist/
|
|
39
|
-
import { usePollApplicationCompletion as ge } from "../../data-access/dist/
|
|
40
|
-
import { useResumableBankAccountApplication as x } from "../../data-access/dist/
|
|
41
|
-
import { useStartedBankAccountApplication as _e } from "../../data-access/dist/
|
|
36
|
+
import { useCreateApplication as pe } from "../../data-access/dist/index5.js";
|
|
37
|
+
import { useUpdateApplication as me } from "../../data-access/dist/index6.js";
|
|
38
|
+
import { useSubmitApplication as he } from "../../data-access/dist/index7.js";
|
|
39
|
+
import { usePollApplicationCompletion as ge } from "../../data-access/dist/index8.js";
|
|
40
|
+
import { useResumableBankAccountApplication as x } from "../../data-access/dist/index10.js";
|
|
41
|
+
import { useStartedBankAccountApplication as _e } from "../../data-access/dist/index11.js";
|
|
42
42
|
import "../../data-access/dist/index.js";
|
|
43
43
|
import { useCallback as ve, useEffect as S, useMemo as C, useRef as ye, useState as w } from "react";
|
|
44
44
|
import { Fragment as be, jsx as T, jsxs as xe } from "react/jsx-runtime";
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js
|
|
4
|
-
function
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children: i
|
|
18
|
-
})]
|
|
19
|
-
}) : null;
|
|
4
|
+
function i({ label: i, value: a, testId: o }) {
|
|
5
|
+
return a ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(e, {
|
|
6
|
+
component: "span",
|
|
7
|
+
variant: "body2",
|
|
8
|
+
className: "ttw:text-muted-foreground",
|
|
9
|
+
children: i
|
|
10
|
+
}), /* @__PURE__ */ n(e, {
|
|
11
|
+
component: "span",
|
|
12
|
+
variant: "body2",
|
|
13
|
+
"data-testid": o,
|
|
14
|
+
className: "ttw:min-w-0 ttw:wrap-break-word ttw:whitespace-pre-line ttw:text-left ttw:font-medium ttw:text-foreground",
|
|
15
|
+
children: a
|
|
16
|
+
})] }) : null;
|
|
20
17
|
}
|
|
21
|
-
function
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
className: "ttw:
|
|
24
|
-
"data-testid":
|
|
25
|
-
children: e.map((e) => /* @__PURE__ */
|
|
18
|
+
function a({ rows: e, testIds: t }) {
|
|
19
|
+
return /* @__PURE__ */ n("div", {
|
|
20
|
+
className: "ttw:grid ttw:grid-cols-[max-content_1fr] ttw:gap-x-4 ttw:gap-y-2",
|
|
21
|
+
"data-testid": t?.root,
|
|
22
|
+
children: e.map((e) => /* @__PURE__ */ n(i, {
|
|
26
23
|
label: e.label,
|
|
27
24
|
value: e.value,
|
|
28
25
|
testId: e.testId
|
|
@@ -30,4 +27,4 @@ function i({ rows: e, testIds: n }) {
|
|
|
30
27
|
});
|
|
31
28
|
}
|
|
32
29
|
//#endregion
|
|
33
|
-
export {
|
|
30
|
+
export { a as BusinessDetailsSummary };
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js
|
|
4
|
-
function
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children: i
|
|
18
|
-
})]
|
|
19
|
-
}) : null;
|
|
4
|
+
function i({ label: i, value: a, testId: o, valueMonospace: s }) {
|
|
5
|
+
return a ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(e, {
|
|
6
|
+
component: "span",
|
|
7
|
+
variant: "body2",
|
|
8
|
+
className: "ttw:text-muted-foreground",
|
|
9
|
+
children: i
|
|
10
|
+
}), /* @__PURE__ */ n(e, {
|
|
11
|
+
component: "span",
|
|
12
|
+
variant: "body2",
|
|
13
|
+
"data-testid": o,
|
|
14
|
+
className: `ttw:min-w-0 ttw:wrap-break-word ttw:whitespace-pre-line ttw:text-left ttw:font-medium ttw:text-foreground ${s ? "ttw:font-mono ttw:tracking-wider" : ""}`,
|
|
15
|
+
children: a
|
|
16
|
+
})] }) : null;
|
|
20
17
|
}
|
|
21
|
-
function
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
className: "ttw:
|
|
24
|
-
"data-testid":
|
|
25
|
-
children: e.map((e) => /* @__PURE__ */
|
|
18
|
+
function a({ rows: e, testIds: t }) {
|
|
19
|
+
return /* @__PURE__ */ n("div", {
|
|
20
|
+
className: "ttw:grid ttw:grid-cols-[max-content_1fr] ttw:gap-x-4 ttw:gap-y-2",
|
|
21
|
+
"data-testid": t?.root,
|
|
22
|
+
children: e.map((e) => /* @__PURE__ */ n(i, {
|
|
26
23
|
label: e.label,
|
|
27
24
|
value: e.value,
|
|
28
25
|
testId: e.testId,
|
|
@@ -31,4 +28,4 @@ function i({ rows: e, testIds: n }) {
|
|
|
31
28
|
});
|
|
32
29
|
}
|
|
33
30
|
//#endregion
|
|
34
|
-
export {
|
|
31
|
+
export { a as AboutYouSummary };
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getBankAccountOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js
|
|
12
12
|
function a({ id: a, enabled: o }) {
|
|
13
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } =
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = n(), d = e({
|
|
14
14
|
client: s,
|
|
15
|
-
headers:
|
|
15
|
+
headers: r(c),
|
|
16
16
|
path: { id: a ?? "" }
|
|
17
17
|
});
|
|
18
18
|
return i({
|
|
19
|
-
...
|
|
19
|
+
...t(d, u),
|
|
20
20
|
enabled: !!(a && c && l) && (o === !0 || o === void 0)
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getBankAccountTransactionsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js
|
|
12
12
|
function a({ id: a, enabled: o, ...s }) {
|
|
13
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } =
|
|
13
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = n(), f = e({
|
|
14
14
|
client: c,
|
|
15
|
-
headers:
|
|
15
|
+
headers: r(l),
|
|
16
16
|
path: { id: a ?? "" },
|
|
17
17
|
query: s
|
|
18
18
|
});
|
|
19
19
|
return i({
|
|
20
|
-
...
|
|
20
|
+
...t(f, d),
|
|
21
21
|
enabled: !!(a && l && u) && (o === !0 || o === void 0)
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { downloadBankAccountTransactions as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useMutation as r } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js
|
|
@@ -20,12 +20,12 @@ function i(e) {
|
|
|
20
20
|
if (n?.[1]) return n[1].replace(/['"]/g, "").trim() || void 0;
|
|
21
21
|
}
|
|
22
22
|
function a() {
|
|
23
|
-
let { client: a, organizationId: o } =
|
|
24
|
-
return r({ mutationFn: async ({ id:
|
|
25
|
-
let { data: c, response: l } = await
|
|
23
|
+
let { client: a, organizationId: o } = t();
|
|
24
|
+
return r({ mutationFn: async ({ id: t, startDate: r, endDate: s }) => {
|
|
25
|
+
let { data: c, response: l } = await e({
|
|
26
26
|
client: a,
|
|
27
|
-
headers:
|
|
28
|
-
path: { id:
|
|
27
|
+
headers: n(o),
|
|
28
|
+
path: { id: t },
|
|
29
29
|
query: {
|
|
30
30
|
startDate: r,
|
|
31
31
|
endDate: s
|