@tesouro/embedded-components-react 0.5.225 → 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/README.md +21 -21
- package/dist/index.d.ts +23 -2
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +23 -2
- package/dist/lib/ReceivablesWidget.js +1 -1
- 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/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +50 -36
- 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/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +51 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +20 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +17 -202
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +220 -31
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +32 -145
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +126 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +145 -117
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +46 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +113 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +58 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +98 -225
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +111 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +225 -462
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +34 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +627 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +39 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +34 -112
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +75 -310
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +124 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +324 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +20 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +56 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +33 -29
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +184 -162
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +78 -69
- 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/counterpart-management/feature/dist/lib/CounterpartSelector.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -39
- 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/rest/@tanstack/react-query.gen.js +210 -199
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +60 -52
- 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
|
@@ -11,7 +11,7 @@ import "../../../data-access/dist/invalidation.js";
|
|
|
11
11
|
import { useQueries as i } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js
|
|
13
13
|
function a({ payableIds: a, enabled: o }) {
|
|
14
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u,
|
|
14
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = t(), f = !!(c && l) && (o === !0 || o === void 0);
|
|
15
15
|
return i({
|
|
16
16
|
queries: a.map((t) => ({
|
|
17
17
|
...e(r({
|
|
@@ -20,7 +20,7 @@ function a({ payableIds: a, enabled: o }) {
|
|
|
20
20
|
payableId: t
|
|
21
21
|
}), {
|
|
22
22
|
authEpoch: u,
|
|
23
|
-
|
|
23
|
+
organizationStatus: d
|
|
24
24
|
}),
|
|
25
25
|
enabled: f && !!t
|
|
26
26
|
})),
|
|
@@ -23,7 +23,7 @@ function g({ onOpenBill: g, labels: _ } = {}) {
|
|
|
23
23
|
let v = {
|
|
24
24
|
...s,
|
|
25
25
|
..._
|
|
26
|
-
}, y = _?.tooManyFilesError ?? s.tooManyFilesError, b = _?.remainingCapacityError ?? s.remainingCapacityError, { client: x, organizationId: S, authEpoch: C,
|
|
26
|
+
}, y = _?.tooManyFilesError ?? s.tooManyFilesError, b = _?.remainingCapacityError ?? s.remainingCapacityError, { client: x, organizationId: S, authEpoch: C, organizationStatus: w } = r(), T = h(), E = f(() => o(S), [S]), D = l(), [O, k] = p(!1), { data: A = [] } = m({
|
|
27
27
|
queryKey: E,
|
|
28
28
|
queryFn: () => T.getQueryData(E) ?? [],
|
|
29
29
|
staleTime: Infinity,
|
|
@@ -88,7 +88,7 @@ function g({ onOpenBill: g, labels: _ } = {}) {
|
|
|
88
88
|
path: { payable_id: o }
|
|
89
89
|
}), {
|
|
90
90
|
authEpoch: C,
|
|
91
|
-
|
|
91
|
+
organizationStatus: w
|
|
92
92
|
}),
|
|
93
93
|
retry: !1
|
|
94
94
|
}).catch((e) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { getPayables as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { getPayablesOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
-
import {
|
|
7
|
+
import { withAuthEpochInfinite as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
8
8
|
import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
9
|
import { organizationHeaders as i } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
10
10
|
import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
@@ -13,19 +13,15 @@ import { useMemo as c } from "react";
|
|
|
13
13
|
import { useInfiniteQuery as l } from "@tanstack/react-query";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js
|
|
15
15
|
function u({ enabled: u, maxPages: d = 3, ...f } = {}) {
|
|
16
|
-
let { client: p, organizationId: m, widgetToken: h, authEpoch: g,
|
|
16
|
+
let { client: p, organizationId: m, widgetToken: h, authEpoch: g, organizationStatus: _ } = r(), v = i(m), y = !!(m && h) && (u === !0 || u === void 0), b = t({
|
|
17
17
|
client: p,
|
|
18
18
|
headers: v,
|
|
19
19
|
query: f
|
|
20
20
|
}), x = l({
|
|
21
|
-
queryKey
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}).queryKey,
|
|
26
|
-
"first-pages",
|
|
27
|
-
d
|
|
28
|
-
],
|
|
21
|
+
...n(b.queryKey, {
|
|
22
|
+
authEpoch: g,
|
|
23
|
+
organizationStatus: _
|
|
24
|
+
}, { suffix: ["first-pages", d] }),
|
|
29
25
|
enabled: y,
|
|
30
26
|
initialPageParam: void 0,
|
|
31
27
|
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
@@ -13,7 +13,7 @@ import { useMemo as a } from "react";
|
|
|
13
13
|
import { useQueries as o } from "@tanstack/react-query";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js
|
|
15
15
|
function s({ filters: s, enabled: c }) {
|
|
16
|
-
let { client: l, organizationId: u, widgetToken: d, authEpoch: f,
|
|
16
|
+
let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationStatus: p } = n(), m = r(u), h = !!(u && d) && (c === !0 || c === void 0), g = o({ queries: s.map((n) => ({
|
|
17
17
|
...t(e({
|
|
18
18
|
client: l,
|
|
19
19
|
headers: m,
|
|
@@ -23,7 +23,7 @@ function s({ filters: s, enabled: c }) {
|
|
|
23
23
|
}
|
|
24
24
|
}), {
|
|
25
25
|
authEpoch: f,
|
|
26
|
-
|
|
26
|
+
organizationStatus: p
|
|
27
27
|
}),
|
|
28
28
|
enabled: h
|
|
29
29
|
})) });
|
|
@@ -12,7 +12,7 @@ import "../../../data-access/dist/invalidation.js";
|
|
|
12
12
|
import { useQuery as a } from "@tanstack/react-query";
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js
|
|
14
14
|
function o({ enabled: o, pollWhileOcrProcessing: s = !1, ...c } = {}) {
|
|
15
|
-
let { client: l, organizationId: u, widgetToken: d, authEpoch: f,
|
|
15
|
+
let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationStatus: p } = n(), m = !!(u && d) && (o === !0 || o === void 0), h = e({
|
|
16
16
|
client: l,
|
|
17
17
|
headers: r(u),
|
|
18
18
|
query: c
|
|
@@ -20,7 +20,7 @@ function o({ enabled: o, pollWhileOcrProcessing: s = !1, ...c } = {}) {
|
|
|
20
20
|
return a({
|
|
21
21
|
...t(h, {
|
|
22
22
|
authEpoch: f,
|
|
23
|
-
|
|
23
|
+
organizationStatus: p
|
|
24
24
|
}),
|
|
25
25
|
enabled: m,
|
|
26
26
|
...s ? { refetchInterval: (e) => (e.state.data?.data ?? []).some((e) => e.ocr_status === "processing") ? i : !1 } : {}
|
|
@@ -12,7 +12,7 @@ import "../../../data-access/dist/index.js";
|
|
|
12
12
|
import { useQuery as a } from "@tanstack/react-query";
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js
|
|
14
14
|
function o({ enabled: o } = {}) {
|
|
15
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u,
|
|
15
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = !!(c && l) && (o === !0 || o === void 0), p = e({
|
|
16
16
|
client: s,
|
|
17
17
|
headers: r(c),
|
|
18
18
|
query: i
|
|
@@ -20,7 +20,7 @@ function o({ enabled: o } = {}) {
|
|
|
20
20
|
return a({
|
|
21
21
|
...t(p, {
|
|
22
22
|
authEpoch: u,
|
|
23
|
-
|
|
23
|
+
organizationStatus: d
|
|
24
24
|
}),
|
|
25
25
|
enabled: f,
|
|
26
26
|
select: (e) => ({ count: e.data[0]?.metric_value ?? 0 })
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js
CHANGED
|
@@ -11,14 +11,14 @@ import { withNotFoundOutcome as i } from "./index5.js";
|
|
|
11
11
|
import { useQuery as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js
|
|
13
13
|
function o({ cardId: o, enabled: s }) {
|
|
14
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d,
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = e({
|
|
15
15
|
client: c,
|
|
16
16
|
headers: r(l),
|
|
17
17
|
path: { cardId: o ?? "" }
|
|
18
18
|
}), m = a({
|
|
19
19
|
...t(p, {
|
|
20
20
|
authEpoch: d,
|
|
21
|
-
|
|
21
|
+
organizationStatus: f
|
|
22
22
|
}),
|
|
23
23
|
enabled: !!(o && l && u) && s !== !1
|
|
24
24
|
});
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js
CHANGED
|
@@ -11,14 +11,14 @@ import "../../../shared/data-access/dist/index.js";
|
|
|
11
11
|
import { useQuery as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js
|
|
13
13
|
function o({ cardId: o, enabled: s }) {
|
|
14
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d,
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = !!(o && l && u) && s, m = p ? o ?? "" : "", h = e({
|
|
15
15
|
client: c,
|
|
16
16
|
headers: r(l),
|
|
17
17
|
path: { id: m }
|
|
18
18
|
}), g = a({
|
|
19
19
|
...t(h, {
|
|
20
20
|
authEpoch: d,
|
|
21
|
-
|
|
21
|
+
organizationStatus: f
|
|
22
22
|
}),
|
|
23
23
|
enabled: p,
|
|
24
24
|
staleTime: 0,
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js
CHANGED
|
@@ -11,14 +11,14 @@ import { withNotFoundOutcome as i } from "./index5.js";
|
|
|
11
11
|
import { useQuery as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js
|
|
13
13
|
function o({ cardId: o, enabled: s }) {
|
|
14
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d,
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = e({
|
|
15
15
|
client: c,
|
|
16
16
|
headers: r(l),
|
|
17
17
|
path: { id: o ?? "" }
|
|
18
18
|
}), m = a({
|
|
19
19
|
...t(p, {
|
|
20
20
|
authEpoch: d,
|
|
21
|
-
|
|
21
|
+
organizationStatus: f
|
|
22
22
|
}),
|
|
23
23
|
enabled: !!(o && l && u) && s !== !1
|
|
24
24
|
});
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js
CHANGED
|
@@ -3,222 +3,226 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { OrganizationStatus as t } from "../../../shared/data-access/dist/lib/organizationStatus.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import "../../../shared/data-access/dist/index.js";
|
|
9
|
+
import { EmbeddedToaster as r } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
7
10
|
import "../../../shared/ui/dist/index.js";
|
|
8
|
-
import { useAnalyticsTrack as
|
|
9
|
-
import { WidgetProvider as
|
|
10
|
-
import { useRefetchWidget as
|
|
11
|
-
import { CardProgram as
|
|
11
|
+
import { useAnalyticsTrack as i } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
12
|
+
import { WidgetProvider as a } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
13
|
+
import { useRefetchWidget as o, useWidgetConfig as s, useWidgetError as c, useWidgetInitStaleForToken as l } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
14
|
+
import { CardProgram as u } from "../../../shared/feature/dist/lib/card/cardProgram.js";
|
|
12
15
|
import "../../../shared/feature/dist/index.js";
|
|
13
|
-
import { resolveCardDetailsFeatureLabels as
|
|
14
|
-
import { CardDetailsWidgetAnalyticsEvent as
|
|
15
|
-
import { copyTextToClipboard as
|
|
16
|
-
import { CardProgramValidity as
|
|
17
|
-
import { activateCardPanelTestIds as
|
|
18
|
-
import { useCreditCardDetailsQuery as
|
|
19
|
-
import { useDebitCardCredentialsQuery as
|
|
20
|
-
import { useDebitCardDetailsQuery as
|
|
16
|
+
import { resolveCardDetailsFeatureLabels as d } from "./index5.js";
|
|
17
|
+
import { CardDetailsWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index2.js";
|
|
18
|
+
import { copyTextToClipboard as m, formatCardNumber as h, formatExpirationDate as ee } from "./index3.js";
|
|
19
|
+
import { CardProgramValidity as g, resolveCanRevealCredentials as te, resolveCardDetailsPanelState as ne, resolveCardDetailsPresentation as re, resolveCardDetailsRevealState as ie, resolveCardProgramValidity as ae } from "./index4.js";
|
|
20
|
+
import { activateCardPanelTestIds as oe, cardDetailsPanelTestIds as se } from "./index6.js";
|
|
21
|
+
import { useCreditCardDetailsQuery as ce } from "../../data-access/dist/index6.js";
|
|
22
|
+
import { useDebitCardCredentialsQuery as le } from "../../data-access/dist/index7.js";
|
|
23
|
+
import { useDebitCardDetailsQuery as ue } from "../../data-access/dist/index8.js";
|
|
21
24
|
import "../../data-access/dist/index.js";
|
|
22
|
-
import { CardDetailsPanel as
|
|
23
|
-
import { ActivateCardPanel as
|
|
25
|
+
import { CardDetailsPanel as de } from "../../ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js";
|
|
26
|
+
import { ActivateCardPanel as _ } from "../../ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js";
|
|
24
27
|
import "../../ui/dist/index.js";
|
|
25
|
-
import { useActivateCard as
|
|
26
|
-
import { useCardLock as
|
|
27
|
-
import { useEditCardNickname as
|
|
28
|
-
import { useCallback as
|
|
29
|
-
import { Fragment as
|
|
28
|
+
import { useActivateCard as fe } from "./index9.js";
|
|
29
|
+
import { useCardLock as pe } from "./index11.js";
|
|
30
|
+
import { useEditCardNickname as me } from "./index12.js";
|
|
31
|
+
import { useCallback as v, useEffect as y, useMemo as b, useState as x } from "react";
|
|
32
|
+
import { Fragment as he, jsx as S, jsxs as ge } from "react/jsx-runtime";
|
|
30
33
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js
|
|
31
|
-
function C({ cardId:
|
|
32
|
-
let k =
|
|
33
|
-
|
|
34
|
-
k(
|
|
34
|
+
function C({ cardId: a, cardProgram: p, onClose: C, labels: w, activateLabels: _e, featureLabels: T, cardArtSrc: E, bankLogoSrc: D, bankLogoAlt: O }) {
|
|
35
|
+
let k = i(), A = c(), j = o(), { initResponse: M } = s(), { organizationStatus: ve } = n(), ye = l();
|
|
36
|
+
y(() => {
|
|
37
|
+
k(f.Mounted);
|
|
35
38
|
}, [k]);
|
|
36
|
-
let N =
|
|
37
|
-
cardId:
|
|
39
|
+
let N = b(() => d(T), [T]), P = ae(p), F = p === u.Credit, be = p === u.Debit, xe = ce({
|
|
40
|
+
cardId: a,
|
|
38
41
|
enabled: F
|
|
39
|
-
}),
|
|
40
|
-
cardId:
|
|
41
|
-
enabled:
|
|
42
|
-
}), { data: L, isError:
|
|
42
|
+
}), I = ue({
|
|
43
|
+
cardId: a,
|
|
44
|
+
enabled: be
|
|
45
|
+
}), { data: L, isError: Se, isNotFound: Ce, refetch: R } = F ? xe : I, z = ve === t.None, B = ne({
|
|
43
46
|
programValidity: P,
|
|
44
|
-
isNotFound:
|
|
45
|
-
isError: !!A ||
|
|
47
|
+
isNotFound: Ce,
|
|
48
|
+
isError: !!A || Se || z,
|
|
46
49
|
hasCard: !!L
|
|
47
50
|
});
|
|
48
|
-
|
|
49
|
-
if (P ===
|
|
50
|
-
let e = `"${
|
|
51
|
-
console.error(P ===
|
|
52
|
-
}, [
|
|
53
|
-
let [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}, [
|
|
57
|
-
let
|
|
58
|
-
panelState:
|
|
59
|
-
cardProgram:
|
|
51
|
+
y(() => {
|
|
52
|
+
if (P === g.Supported) return;
|
|
53
|
+
let e = `"${u.Credit}" or "${u.Debit}"`;
|
|
54
|
+
console.error(P === g.Missing ? `[CardDetailsWidget] cardProgram is required and was not set. Pass ${e} — it selects which card program to read, so there is no default. No card was fetched.` : `[CardDetailsWidget] cardProgram must be ${e}, received ${JSON.stringify(p)}. No card was fetched.`);
|
|
55
|
+
}, [p, P]);
|
|
56
|
+
let [we, V] = x(), H = we === a;
|
|
57
|
+
y(() => {
|
|
58
|
+
V(void 0);
|
|
59
|
+
}, [a]);
|
|
60
|
+
let U = te({
|
|
61
|
+
panelState: B,
|
|
62
|
+
cardProgram: p,
|
|
60
63
|
cardStatus: L?.cardStatus
|
|
61
64
|
});
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}, [
|
|
65
|
-
let
|
|
66
|
-
cardId:
|
|
67
|
-
enabled:
|
|
68
|
-
}),
|
|
69
|
-
isRevealRequested:
|
|
70
|
-
isError:
|
|
71
|
-
hasCredentials: !!
|
|
72
|
-
}),
|
|
65
|
+
y(() => {
|
|
66
|
+
H && !U && V(void 0);
|
|
67
|
+
}, [H, U]);
|
|
68
|
+
let W = le({
|
|
69
|
+
cardId: a,
|
|
70
|
+
enabled: U && H
|
|
71
|
+
}), G = ie({
|
|
72
|
+
isRevealRequested: H,
|
|
73
|
+
isError: W.isError,
|
|
74
|
+
hasCredentials: !!W.data
|
|
75
|
+
}), K = b(() => B === "loaded" && L ? re({
|
|
73
76
|
card: L,
|
|
74
|
-
cardProgram:
|
|
77
|
+
cardProgram: p,
|
|
75
78
|
labels: N
|
|
76
79
|
}) : void 0, [
|
|
77
80
|
L,
|
|
78
|
-
|
|
81
|
+
p,
|
|
79
82
|
N,
|
|
80
|
-
|
|
81
|
-
]),
|
|
82
|
-
await
|
|
83
|
-
}, [N.copySuccessToast, k]),
|
|
84
|
-
cardId:
|
|
85
|
-
cardProgram:
|
|
86
|
-
card:
|
|
83
|
+
B
|
|
84
|
+
]), Te = v(async (t) => {
|
|
85
|
+
await m(t) && (e.success(N.copySuccessToast), k(f.ValueCopied));
|
|
86
|
+
}, [N.copySuccessToast, k]), q = B === "loaded" ? L : void 0, J = fe({
|
|
87
|
+
cardId: a,
|
|
88
|
+
cardProgram: p,
|
|
89
|
+
card: q,
|
|
87
90
|
scopes: M?.scopes,
|
|
88
|
-
currentUserId:
|
|
91
|
+
currentUserId: ye ? void 0 : M?.userId ?? void 0,
|
|
89
92
|
conflictToast: N.activationConflictToast
|
|
90
|
-
}),
|
|
91
|
-
cardId:
|
|
92
|
-
cardProgram:
|
|
93
|
-
card:
|
|
93
|
+
}), Y = pe({
|
|
94
|
+
cardId: a,
|
|
95
|
+
cardProgram: p,
|
|
96
|
+
card: q,
|
|
94
97
|
scopes: M?.scopes,
|
|
95
98
|
conflictToast: N.lockConflictToast
|
|
96
|
-
}),
|
|
97
|
-
cardId:
|
|
98
|
-
cardProgram:
|
|
99
|
-
card:
|
|
100
|
-
nickname:
|
|
99
|
+
}), X = me({
|
|
100
|
+
cardId: a,
|
|
101
|
+
cardProgram: p,
|
|
102
|
+
card: q,
|
|
103
|
+
nickname: K?.nickname,
|
|
101
104
|
scopes: M?.scopes,
|
|
102
105
|
conflictToast: N.nicknameConflictToast,
|
|
103
106
|
successToast: N.nicknameUpdatedToast
|
|
104
|
-
}), { refetch:
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
+
}), { refetch: Z } = W, Ee = v(() => {
|
|
108
|
+
if (H) {
|
|
109
|
+
Z();
|
|
107
110
|
return;
|
|
108
111
|
}
|
|
109
|
-
|
|
112
|
+
V(a);
|
|
110
113
|
}, [
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
]),
|
|
115
|
-
|
|
116
|
-
}, []), Q =
|
|
117
|
-
|
|
118
|
-
}, [C]),
|
|
119
|
-
|
|
120
|
-
}, [
|
|
114
|
+
a,
|
|
115
|
+
H,
|
|
116
|
+
Z
|
|
117
|
+
]), De = v(() => {
|
|
118
|
+
V(void 0);
|
|
119
|
+
}, []), Q = v(() => {
|
|
120
|
+
V(void 0), C?.();
|
|
121
|
+
}, [C]), Oe = v(() => {
|
|
122
|
+
J.finish(), Q();
|
|
123
|
+
}, [J.finish, Q]), ke = b(() => W.isForbidden ? {
|
|
121
124
|
...w,
|
|
122
125
|
credentials: {
|
|
123
126
|
...w?.credentials,
|
|
124
127
|
errorDescription: N.revealNotPermittedDescription
|
|
125
128
|
}
|
|
126
129
|
} : w, [
|
|
127
|
-
|
|
130
|
+
W.isForbidden,
|
|
128
131
|
w,
|
|
129
132
|
N.revealNotPermittedDescription
|
|
130
|
-
]), $ =
|
|
131
|
-
if (
|
|
132
|
-
cardNumber:
|
|
133
|
-
expirationDate:
|
|
134
|
-
securityCode:
|
|
133
|
+
]), $ = b(() => {
|
|
134
|
+
if (G === "revealed" && W.data) return {
|
|
135
|
+
cardNumber: h(W.data.pan),
|
|
136
|
+
expirationDate: ee(W.data.expirationDate),
|
|
137
|
+
securityCode: W.data.cvv
|
|
135
138
|
};
|
|
136
|
-
}, [
|
|
137
|
-
if (A) {
|
|
139
|
+
}, [W.data, G]), Ae = v(() => {
|
|
140
|
+
if (A || z) {
|
|
138
141
|
j();
|
|
139
142
|
return;
|
|
140
143
|
}
|
|
141
144
|
R();
|
|
142
145
|
}, [
|
|
146
|
+
z,
|
|
143
147
|
R,
|
|
144
148
|
j,
|
|
145
149
|
A
|
|
146
150
|
]);
|
|
147
|
-
return /* @__PURE__ */
|
|
148
|
-
testIds:
|
|
149
|
-
labels:
|
|
150
|
-
state:
|
|
151
|
-
values:
|
|
152
|
-
errors:
|
|
153
|
-
isSubmitDisabled:
|
|
154
|
-
onValuesChange:
|
|
155
|
-
onSubmit:
|
|
156
|
-
onClose:
|
|
157
|
-
onDone: C ?
|
|
151
|
+
return /* @__PURE__ */ ge(he, { children: [/* @__PURE__ */ S(r, {}), J.isOpen ? /* @__PURE__ */ S(_, {
|
|
152
|
+
testIds: oe,
|
|
153
|
+
labels: _e,
|
|
154
|
+
state: J.state,
|
|
155
|
+
values: J.values,
|
|
156
|
+
errors: J.errors,
|
|
157
|
+
isSubmitDisabled: J.isSubmitDisabled,
|
|
158
|
+
onValuesChange: J.onValuesChange,
|
|
159
|
+
onSubmit: J.onSubmit,
|
|
160
|
+
onClose: J.close,
|
|
161
|
+
onDone: C ? Oe : void 0,
|
|
158
162
|
cardArtSrc: E,
|
|
159
163
|
bankLogoSrc: D,
|
|
160
164
|
bankLogoAlt: O,
|
|
161
|
-
cardholderName:
|
|
162
|
-
maskedCardNumber:
|
|
163
|
-
programLabel:
|
|
164
|
-
}) : /* @__PURE__ */
|
|
165
|
-
testIds:
|
|
166
|
-
labels:
|
|
167
|
-
state:
|
|
168
|
-
nickname:
|
|
169
|
-
statusLabel:
|
|
170
|
-
statusTone:
|
|
171
|
-
formFactorLabel:
|
|
165
|
+
cardholderName: K?.cardholderName,
|
|
166
|
+
maskedCardNumber: K?.maskedCardNumber,
|
|
167
|
+
programLabel: K?.programLabel
|
|
168
|
+
}) : /* @__PURE__ */ S(de, {
|
|
169
|
+
testIds: se,
|
|
170
|
+
labels: ke,
|
|
171
|
+
state: B,
|
|
172
|
+
nickname: K?.nickname,
|
|
173
|
+
statusLabel: K?.statusLabel,
|
|
174
|
+
statusTone: K?.statusTone,
|
|
175
|
+
formFactorLabel: K?.formFactorLabel,
|
|
172
176
|
onClose: C ? Q : void 0,
|
|
173
177
|
cardArtSrc: E,
|
|
174
178
|
bankLogoSrc: D,
|
|
175
179
|
bankLogoAlt: O,
|
|
176
|
-
cardholderName:
|
|
177
|
-
maskedCardNumber:
|
|
178
|
-
programLabel:
|
|
179
|
-
billingAddress:
|
|
180
|
-
allowedCategories:
|
|
181
|
-
spendLimitLabels:
|
|
182
|
-
perTransactionMaxLabel:
|
|
183
|
-
onCopy:
|
|
184
|
-
onEditNickname:
|
|
185
|
-
nicknameEditState:
|
|
186
|
-
nicknameDraft:
|
|
187
|
-
onNicknameDraftChange:
|
|
188
|
-
onSaveNickname:
|
|
189
|
-
onCancelNicknameEdit:
|
|
190
|
-
isNicknameSaveDisabled:
|
|
191
|
-
onActivate:
|
|
192
|
-
onViewCard:
|
|
193
|
-
onHideCard:
|
|
194
|
-
revealState:
|
|
180
|
+
cardholderName: K?.cardholderName,
|
|
181
|
+
maskedCardNumber: K?.maskedCardNumber,
|
|
182
|
+
programLabel: K?.programLabel,
|
|
183
|
+
billingAddress: K?.billingAddress,
|
|
184
|
+
allowedCategories: K?.allowedCategories,
|
|
185
|
+
spendLimitLabels: K?.spendLimitLabels,
|
|
186
|
+
perTransactionMaxLabel: K?.perTransactionMaxLabel,
|
|
187
|
+
onCopy: Te,
|
|
188
|
+
onEditNickname: X.onEditNickname,
|
|
189
|
+
nicknameEditState: X.editState,
|
|
190
|
+
nicknameDraft: X.draft,
|
|
191
|
+
onNicknameDraftChange: X.onDraftChange,
|
|
192
|
+
onSaveNickname: X.onSave,
|
|
193
|
+
onCancelNicknameEdit: X.onCancel,
|
|
194
|
+
isNicknameSaveDisabled: X.isSaveDisabled,
|
|
195
|
+
onActivate: J.canActivate ? J.open : void 0,
|
|
196
|
+
onViewCard: U ? Ee : void 0,
|
|
197
|
+
onHideCard: U ? De : void 0,
|
|
198
|
+
revealState: G,
|
|
195
199
|
revealedCardNumber: $?.cardNumber,
|
|
196
200
|
revealedExpirationDate: $?.expirationDate,
|
|
197
201
|
revealedSecurityCode: $?.securityCode,
|
|
198
|
-
isLocked:
|
|
199
|
-
lockState:
|
|
200
|
-
onLockCard:
|
|
201
|
-
onUnlockCard:
|
|
202
|
-
onRetry: P ===
|
|
202
|
+
isLocked: Y.isLocked,
|
|
203
|
+
lockState: Y.lockState,
|
|
204
|
+
onLockCard: Y.onLockCard,
|
|
205
|
+
onUnlockCard: Y.onUnlockCard,
|
|
206
|
+
onRetry: P === g.Supported ? Ae : void 0
|
|
203
207
|
})] });
|
|
204
208
|
}
|
|
205
|
-
function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient:
|
|
206
|
-
return /* @__PURE__ */
|
|
207
|
-
widgetName:
|
|
209
|
+
function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: m, ...h }) {
|
|
210
|
+
return /* @__PURE__ */ S(a, {
|
|
211
|
+
widgetName: p,
|
|
208
212
|
baseUrl: e,
|
|
209
213
|
widgetToken: t,
|
|
210
214
|
organizationId: n,
|
|
211
|
-
configClient:
|
|
212
|
-
gatewayRouting:
|
|
215
|
+
configClient: r,
|
|
216
|
+
gatewayRouting: i,
|
|
213
217
|
linkComponent: o,
|
|
214
218
|
implementation: s,
|
|
215
219
|
uiFramework: c,
|
|
216
220
|
errorFallback: l,
|
|
217
221
|
onError: u,
|
|
218
|
-
analytics:
|
|
219
|
-
disclosuresAcceptance:
|
|
222
|
+
analytics: d,
|
|
223
|
+
disclosuresAcceptance: f,
|
|
220
224
|
providerLabels: m,
|
|
221
|
-
children: /* @__PURE__ */
|
|
225
|
+
children: /* @__PURE__ */ S(C, { ...h })
|
|
222
226
|
});
|
|
223
227
|
}
|
|
224
228
|
//#endregion
|
|
@@ -9,14 +9,14 @@ import "../../../../shared/data-access/dist/index.js";
|
|
|
9
9
|
import { useQuery as r } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js
|
|
11
11
|
function i({ enabled: i } = {}) {
|
|
12
|
-
let { client: a, organizationId: o, widgetToken: s, authEpoch: c,
|
|
12
|
+
let { client: a, organizationId: o, widgetToken: s, authEpoch: c, organizationStatus: l } = n(), u = e({
|
|
13
13
|
client: a,
|
|
14
14
|
path: { organizationId: o ?? "" }
|
|
15
15
|
});
|
|
16
16
|
return r({
|
|
17
17
|
...t(u, {
|
|
18
18
|
authEpoch: c,
|
|
19
|
-
|
|
19
|
+
organizationStatus: l
|
|
20
20
|
}),
|
|
21
21
|
enabled: !!(o && s) && (i === !0 || i === void 0)
|
|
22
22
|
});
|
|
@@ -10,7 +10,7 @@ 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/cards-widget/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 = 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(f, {
|
|
20
20
|
authEpoch: u,
|
|
21
|
-
|
|
21
|
+
organizationStatus: d
|
|
22
22
|
}, { carryWithinOrg: !0 }),
|
|
23
23
|
enabled: !!(c && l) && (a === !0 || a === void 0)
|
|
24
24
|
});
|
|
@@ -10,7 +10,7 @@ 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/cards-widget/data-access/dist/index3.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 = 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(f, {
|
|
20
20
|
authEpoch: u,
|
|
21
|
-
|
|
21
|
+
organizationStatus: d
|
|
22
22
|
}, { carryWithinOrg: !0 }),
|
|
23
23
|
enabled: !!(c && l) && (a === !0 || a === void 0)
|
|
24
24
|
});
|