@tesouro/embedded-components-react 0.5.95 → 0.5.96
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/cards-widget/create-card/data-access/dist/index2.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index2.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/feature/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/feature/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/feature/dist/index8.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/CardArt.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/CardControls/CardControlRow.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/CardControls/CardControls.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/CardControls/MerchantCategoriesControl.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/CardControls/PerTransactionMaximumControl.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/CardControls/SpendLimitControl.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/CardControls/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/CardControls/limitDecimalPlaces.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/CreateCardWidget.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/ManualAddressFields.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/PreparingView.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/SetupView.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/SuccessView.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/lib/CreateCardWidget/types.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index2.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/shared/util/dist/lib/widgetName.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index2.js +0 -13
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index3.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index4.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index5.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index6.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index7.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index2.js +0 -4
- /package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/data-access/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/feature/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{create-card-widget → cards-widget/create-card}/ui/dist/index.js +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
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 "../../../../shared/data-access/dist/index.js";
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index2.js
|
|
8
|
+
function t() {
|
|
9
|
+
let { organizationId: t, widgetToken: n } = e();
|
|
10
|
+
return { isReady: !!(t && n) };
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as useCreateCard };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { getDebitCardsQueryKey as t, getVelocityControlsQueryKey as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js
|
|
5
|
+
function r({ client: n, organizationId: r }) {
|
|
6
|
+
return t({
|
|
7
|
+
client: n,
|
|
8
|
+
headers: e(r)
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function i({ client: t, organizationId: r }) {
|
|
12
|
+
return n({
|
|
13
|
+
client: t,
|
|
14
|
+
headers: e(r)
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { r as debitCardsInvalidationKey, i as velocityControlsInvalidationKey };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.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
|
+
import { createDebitCardMutation as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { debitCardsInvalidationKey as i } from "./index3.js";
|
|
11
|
+
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js
|
|
13
|
+
function o() {
|
|
14
|
+
let { client: o, organizationId: s } = t(), c = n(s), l = r({
|
|
15
|
+
client: o,
|
|
16
|
+
headers: c
|
|
17
|
+
});
|
|
18
|
+
return a({
|
|
19
|
+
...l,
|
|
20
|
+
onSuccess: async (...t) => {
|
|
21
|
+
await e(i({
|
|
22
|
+
client: o,
|
|
23
|
+
organizationId: s
|
|
24
|
+
})), await l.onSuccess?.(...t);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { o as useCreateDebitCardMutation };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.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
|
+
import { createVelocityControlMutation as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { velocityControlsInvalidationKey as i } from "./index3.js";
|
|
11
|
+
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js
|
|
13
|
+
function o() {
|
|
14
|
+
let { client: o, organizationId: s } = t(), c = n(s), l = r({
|
|
15
|
+
client: o,
|
|
16
|
+
headers: c
|
|
17
|
+
});
|
|
18
|
+
return a({
|
|
19
|
+
...l,
|
|
20
|
+
onSuccess: async (...t) => {
|
|
21
|
+
await e(i({
|
|
22
|
+
client: o,
|
|
23
|
+
organizationId: s
|
|
24
|
+
})), await l.onSuccess?.(...t);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { o as useCreateVelocityControlMutation };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.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
|
+
import { manageDebitCardAccessMutation as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { debitCardsInvalidationKey as i } from "./index3.js";
|
|
11
|
+
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js
|
|
13
|
+
function o() {
|
|
14
|
+
let { client: o, organizationId: s } = t(), c = n(s), l = r({
|
|
15
|
+
client: o,
|
|
16
|
+
headers: c
|
|
17
|
+
});
|
|
18
|
+
return a({
|
|
19
|
+
...l,
|
|
20
|
+
onSuccess: async (...t) => {
|
|
21
|
+
await e(i({
|
|
22
|
+
client: o,
|
|
23
|
+
organizationId: s
|
|
24
|
+
})), await l.onSuccess?.(...t);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { o as useManageDebitCardAccessMutation };
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { getOrganizationOptions 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 { useQuery as r } from "@tanstack/react-query";
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js
|
|
11
|
+
function i({ enabled: i } = {}) {
|
|
12
|
+
let { client: a, organizationId: o, widgetToken: s, authEpoch: c } = e(), l = t({
|
|
13
|
+
client: a,
|
|
14
|
+
path: { organizationId: o ?? "" }
|
|
15
|
+
});
|
|
16
|
+
return r({
|
|
17
|
+
...n(l, c),
|
|
18
|
+
enabled: !!(o && s) && (i === !0 || i === void 0)
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { i as useCreateCardOrganizationQuery };
|
package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index2.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CARDS_WIDGET_NAME as e } from "../../../shared/util/dist/lib/widgetName.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index2.js
|
|
3
|
+
var t = `${e}.create_card`, n = { Mounted: `${t}.mounted` };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { n as CreateCardWidgetAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MailingOptionValue as e } from "../../ui/dist/lib/CreateCardWidget/types.js";
|
|
2
2
|
import "../../ui/dist/index.js";
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index3.js
|
|
4
4
|
var t = {
|
|
5
5
|
Virtual: "virtual",
|
|
6
6
|
Physical: "physical"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseDecimalAmountToMinorUnits as e } from "
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
1
|
+
import { parseDecimalAmountToMinorUnits as e } from "../../../../shared/util/dist/lib/parseDecimalAmountToMinorUnits.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index4.js
|
|
3
3
|
var t = {
|
|
4
4
|
OneTime: "LIFETIME",
|
|
5
5
|
Daily: "DAY",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { hasAnyScope as e } from "
|
|
2
|
-
import { Scope as t } from "
|
|
3
|
-
import "
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
1
|
+
import { hasAnyScope as e } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
2
|
+
import { Scope as t } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index6.js
|
|
5
5
|
var n = "authorization_control:write:org";
|
|
6
6
|
function r(r) {
|
|
7
7
|
let i = new Set(r ?? []);
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { Scope as e } from "
|
|
6
|
-
import { useAllOrganizationUsersQuery as t } from "
|
|
7
|
-
import "
|
|
5
|
+
import { Scope as e } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
6
|
+
import { useAllOrganizationUsersQuery as t } from "../../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
|
|
7
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
8
8
|
import { useCallback as n, useMemo as r } from "react";
|
|
9
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
9
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index7.js
|
|
10
10
|
var i = e.DebitCardReadOrg;
|
|
11
11
|
function a(e) {
|
|
12
12
|
let t = e.name?.trim(), n = e.email?.trim();
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "
|
|
6
|
-
import { Scope as t } from "
|
|
7
|
-
import { useAllBankAccountsQuery as n } from "
|
|
8
|
-
import { useAllMerchantCategoryGroupsQuery as r } from "
|
|
9
|
-
import { useAllOrganizationUsersQuery as i } from "
|
|
10
|
-
import "
|
|
11
|
-
import { EmbeddedToaster as a } from "
|
|
12
|
-
import "
|
|
13
|
-
import { useAnalyticsTrack as o } from "
|
|
14
|
-
import { WidgetProvider as s } from "
|
|
15
|
-
import { getStateOptions as ee } from "
|
|
16
|
-
import { useWidgetConfig as te } from "
|
|
17
|
-
import "
|
|
18
|
-
import { filterUsersForOrganization as ne } from "
|
|
5
|
+
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { Scope as t } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
+
import { useAllBankAccountsQuery as n } from "../../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
|
|
8
|
+
import { useAllMerchantCategoryGroupsQuery as r } from "../../../../shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
|
|
9
|
+
import { useAllOrganizationUsersQuery as i } from "../../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
|
+
import { EmbeddedToaster as a } from "../../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
12
|
+
import "../../../../shared/ui/dist/index.js";
|
|
13
|
+
import { useAnalyticsTrack as o } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
14
|
+
import { WidgetProvider as s } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
15
|
+
import { getStateOptions as ee } from "../../../../shared/util/dist/lib/usStates.js";
|
|
16
|
+
import { useWidgetConfig as te } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
17
|
+
import "../../../../shared/feature/dist/index.js";
|
|
18
|
+
import { filterUsersForOrganization as ne } from "../../../../../shared/util-validation/dist/index7.js";
|
|
19
19
|
import { CREATE_CARD_WIDGET_LABELS_EN as c } from "../../ui/dist/lib/CreateCardWidget/labels.js";
|
|
20
20
|
import { CreateCardView as l, MailingOptionValue as u } from "../../ui/dist/lib/CreateCardWidget/types.js";
|
|
21
21
|
import { CreateCardWidget as re } from "../../ui/dist/lib/CreateCardWidget/CreateCardWidget.js";
|
|
@@ -34,7 +34,7 @@ import { useCreateCardOrganizationQuery as xe } from "../../data-access/dist/ind
|
|
|
34
34
|
import "../../data-access/dist/index.js";
|
|
35
35
|
import { useEffect as p, useMemo as m, useRef as h, useState as g } from "react";
|
|
36
36
|
import { Fragment as Se, jsx as _, jsxs as Ce } from "react/jsx-runtime";
|
|
37
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
37
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js
|
|
38
38
|
var we = t.DebitCardIssueOrg, Te = {
|
|
39
39
|
street: "",
|
|
40
40
|
city: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cn as e } from "
|
|
1
|
+
import { cn as e } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CardArt.js
|
|
4
4
|
function n({ src: n, alt: r, className: i }) {
|
|
5
5
|
return /* @__PURE__ */ t("img", {
|
|
6
6
|
src: n,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Collapsible as e, CollapsibleContent as t, Switch as n } from "
|
|
1
|
+
import { Collapsible as e, CollapsibleContent as t, Switch as n } from "../../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { useId as r } from "react";
|
|
3
3
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CardControls/CardControlRow.js
|
|
5
5
|
function o({ title: o, description: s, checked: c, onCheckedChange: l, disabled: u = !1, children: d }) {
|
|
6
6
|
let f = r(), p = `${f}-title`, m = `${f}-description`, h = `${f}-drawer`;
|
|
7
7
|
return /* @__PURE__ */ a("div", {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { cn as e } from "
|
|
1
|
+
import { cn as e } from "../../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { resolveCardControlsLabels as t } from "./labels.js";
|
|
3
3
|
import { MerchantCategoriesControl as n } from "./MerchantCategoriesControl.js";
|
|
4
4
|
import { PerTransactionMaximumControl as r } from "./PerTransactionMaximumControl.js";
|
|
5
5
|
import { SpendLimitControl as i } from "./SpendLimitControl.js";
|
|
6
6
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CardControls/CardControls.js
|
|
8
8
|
var s = () => void 0;
|
|
9
9
|
function c({ labels: c, className: l, isSpendLimitEnabled: u = !1, onSpendLimitEnabledChange: d = s, spendLimitAmount: f = "", onSpendLimitAmountChange: p = s, spendLimitPeriodOptions: m = [], selectedSpendLimitPeriod: h = null, onSpendLimitPeriodSelect: g = s, spendLimitPeriodNotices: _, isMerchantCategoriesEnabled: v = !1, onMerchantCategoriesEnabledChange: y = s, merchantCategoryOptions: b = [], selectedMerchantCategories: x = [], onMerchantCategoryToggle: S = s, isMerchantCategoriesToggleDisabled: C = !1, isPerTransactionMaximumEnabled: w = !1, onPerTransactionMaximumEnabledChange: T = s, perTransactionMaximumAmount: E = "", onPerTransactionMaximumAmountChange: D = s }) {
|
|
10
10
|
let O = t(c);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { cn as e } from "
|
|
1
|
+
import { cn as e } from "../../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { CardControlRow as t } from "./CardControlRow.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { CheckIcon as i } from "lucide-react";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CardControls/MerchantCategoriesControl.js
|
|
6
6
|
function a({ labels: a, isEnabled: o, onEnabledChange: s, categoryOptions: c, selectedCategories: l, onCategoryToggle: u, isToggleDisabled: d = !1 }) {
|
|
7
7
|
return /* @__PURE__ */ n(t, {
|
|
8
8
|
title: a.title,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { InputGroup as e, InputGroupAddon as t, InputGroupInput as n } from "
|
|
1
|
+
import { InputGroup as e, InputGroupAddon as t, InputGroupInput as n } from "../../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { formatAmountAriaLabel as r } from "./labels.js";
|
|
3
3
|
import { CardControlRow as i } from "./CardControlRow.js";
|
|
4
4
|
import { limitDecimalPlaces as a } from "./limitDecimalPlaces.js";
|
|
5
5
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CardControls/PerTransactionMaximumControl.js
|
|
7
7
|
function c({ labels: c, currencySymbol: l, isEnabled: u, onEnabledChange: d, amount: f, onAmountChange: p }) {
|
|
8
8
|
return /* @__PURE__ */ o(i, {
|
|
9
9
|
title: c.title,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Alert as e, AlertDescription as t, InputGroup as n, InputGroupAddon as r, InputGroupInput as i, Tabs as a, TabsContent as o, TabsList as s, TabsTrigger as c } from "
|
|
1
|
+
import { Alert as e, AlertDescription as t, InputGroup as n, InputGroupAddon as r, InputGroupInput as i, Tabs as a, TabsContent as o, TabsList as s, TabsTrigger as c } from "../../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { formatAmountAriaLabel as l } from "./labels.js";
|
|
3
3
|
import { CardControlRow as u } from "./CardControlRow.js";
|
|
4
4
|
import { limitDecimalPlaces as d } from "./limitDecimalPlaces.js";
|
|
5
5
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
6
6
|
import { InfoIcon as m, TriangleAlertIcon as h } from "lucide-react";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CardControls/SpendLimitControl.js
|
|
8
8
|
function g({ notice: n }) {
|
|
9
9
|
if (!n) return null;
|
|
10
10
|
let r = n.variant === "warning";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CardControls/labels.js
|
|
2
2
|
var e = {
|
|
3
3
|
currencySymbol: "$",
|
|
4
4
|
spendLimit: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CardControls/limitDecimalPlaces.js
|
|
2
2
|
function e(e, t = 2) {
|
|
3
3
|
let n = e.indexOf(".");
|
|
4
4
|
return n === -1 ? e : e.slice(0, n + 1 + t);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { Button as e, cn as t } from "
|
|
5
|
+
import { Button as e, cn as t } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import { resolveCreateCardWidgetLabels as n } from "./labels.js";
|
|
7
7
|
import { CreateCardView as r } from "./types.js";
|
|
8
8
|
import { PreparingView as i } from "./PreparingView.js";
|
|
@@ -11,7 +11,7 @@ import { SetupView as a } from "./SetupView.js";
|
|
|
11
11
|
import { SuccessView as o } from "./SuccessView.js";
|
|
12
12
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
13
13
|
import { ChevronRightIcon as u, XIcon as d } from "lucide-react";
|
|
14
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
14
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/CreateCardWidget.js
|
|
15
15
|
var f = {
|
|
16
16
|
street: "",
|
|
17
17
|
city: "",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Input as e, Label as t, Select as n, SelectContent as r, SelectItem as i, SelectTrigger as a, SelectValue as o } from "
|
|
1
|
+
import { Input as e, Label as t, Select as n, SelectContent as r, SelectItem as i, SelectTrigger as a, SelectValue as o } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { useId as s } from "react";
|
|
3
3
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/ManualAddressFields.js
|
|
5
5
|
function u({ values: u, stateOptions: d, onChange: f, labels: p }) {
|
|
6
6
|
let m = s(), h = `${m}-street`, g = `${m}-city`, _ = `${m}-state`, v = `${m}-zip`;
|
|
7
7
|
return /* @__PURE__ */ l("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Spinner as e } from "
|
|
1
|
+
import { Spinner as e } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { CardArt as t } from "./CardArt.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/PreparingView.js
|
|
5
5
|
function i({ cardArtSrc: i, labels: a }) {
|
|
6
6
|
return /* @__PURE__ */ r("div", {
|
|
7
7
|
className: "ttw:flex ttw:min-h-full ttw:flex-1 ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-6 ttw:bg-gradient-to-b ttw:from-background ttw:to-primary/10 ttw:px-6 ttw:py-12",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Label as e, RadioGroup as t, RadioGroupItem as n, Select as r, SelectContent as i, SelectItem as a, SelectTrigger as o, SelectValue as s, Separator as c } from "
|
|
2
|
-
import { ErrorState as l } from "
|
|
3
|
-
import "
|
|
1
|
+
import { Label as e, RadioGroup as t, RadioGroupItem as n, Select as r, SelectContent as i, SelectItem as a, SelectTrigger as o, SelectValue as s, Separator as c } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ErrorState as l } from "../../../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
3
|
+
import "../../../../../../shared/ui/dist/index.js";
|
|
4
4
|
import { MailingOptionValue as u } from "./types.js";
|
|
5
5
|
import { CardArt as d } from "./CardArt.js";
|
|
6
6
|
import { CardControls as f } from "./CardControls/CardControls.js";
|
|
7
7
|
import { ManualAddressFields as p } from "./ManualAddressFields.js";
|
|
8
8
|
import { useId as m } from "react";
|
|
9
9
|
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/SetupView.js
|
|
11
11
|
function v({ cardArtSrc: v, labels: y, cardholderOptions: b, selectedCardholder: x, onCardholderSelect: S, isCardholderError: C = !1, onCardholderRetry: w, cardFormatOptions: T, selectedCardFormat: E, onCardFormatSelect: D, isFundingAccountVisible: O, fundingAccountOptions: k, selectedFundingAccount: A, onFundingAccountSelect: j, isFundingAccountError: M = !1, onFundingAccountRetry: N, isMailingSectionVisible: P, selectedMailingOption: F, onMailingOptionSelect: I, businessAddress: L, isBusinessAddressVisible: R, isManualAddressVisible: z, manualAddress: B, onManualAddressChange: V, stateOptions: H, isCardControlsSectionVisible: U, cardControls: W }) {
|
|
12
12
|
let G = m(), K = `${G}-cardholder`, q = `${G}-card-format`, J = `${G}-funding-account`, Y = `${G}-mailing-business`, X = `${G}-mailing-custom`;
|
|
13
13
|
return /* @__PURE__ */ _("div", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Button as e } from "
|
|
1
|
+
import { Button as e } from "../../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { CardArt as t } from "./CardArt.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { CheckIcon as i, ChevronRightIcon as a } from "lucide-react";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/SuccessView.js
|
|
6
6
|
function o({ cardArtSrc: o, labels: s, onCreateAnotherClick: c, onViewCardClick: l }) {
|
|
7
7
|
return /* @__PURE__ */ r("div", {
|
|
8
8
|
className: "ttw:flex ttw:min-h-0 ttw:flex-1 ttw:flex-col",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CARD_CONTROLS_LABELS_EN as e, resolveCardControlsLabels as t } from "./CardControls/labels.js";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/labels.js
|
|
3
3
|
var n = {
|
|
4
4
|
header: {
|
|
5
5
|
title: "Create a new card",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/ui/dist/lib/CreateCardWidget/types.js
|
|
2
2
|
var e = {
|
|
3
3
|
Setup: "setup",
|
|
4
4
|
Preparing: "preparing",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { CARDS_WIDGET_NAME as e } from "../../shared/util/dist/lib/widgetName.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/cards-widget/feature/dist/index2.js
|
|
2
|
-
var
|
|
3
|
+
var t = { Mounted: `${e}.mounted` }, n = e;
|
|
3
4
|
//#endregion
|
|
4
|
-
export {
|
|
5
|
+
export { t as CardsWidgetAnalyticsEvent, n as WIDGET_NAME };
|
|
@@ -13,8 +13,8 @@ import "../../ui/dist/index.js";
|
|
|
13
13
|
import { useCardsWidget as s } from "./index8.js";
|
|
14
14
|
import { CardDetailsWidget as c } from "../../../card-details-widget/feature/dist/index13.js";
|
|
15
15
|
import "../../../card-details-widget/feature/dist/index.js";
|
|
16
|
-
import { CreateCardWidget as l } from "
|
|
17
|
-
import "
|
|
16
|
+
import { CreateCardWidget as l } from "../../create-card/feature/dist/index8.js";
|
|
17
|
+
import "../../create-card/feature/dist/index.js";
|
|
18
18
|
import { useCallback as u, useMemo as d, useState as f } from "react";
|
|
19
19
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
20
20
|
//#region ../../libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.96", n = "94071d7c62372bd2690881a9f5ef0ae931a32c70", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/package.json
CHANGED
package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index2.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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 "../../../shared/data-access/dist/index.js";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index2.js
|
|
8
|
-
function t() {
|
|
9
|
-
let { organizationId: t, widgetToken: n } = e();
|
|
10
|
-
return { isReady: !!(t && n) };
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { t as useCreateCard };
|
package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index3.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { organizationHeaders as e } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
-
import { getDebitCardsQueryKey as t, getVelocityControlsQueryKey as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
-
import "../../../shared/data-access/dist/index.js";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index3.js
|
|
5
|
-
function r({ client: n, organizationId: r }) {
|
|
6
|
-
return t({
|
|
7
|
-
client: n,
|
|
8
|
-
headers: e(r)
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
function i({ client: t, organizationId: r }) {
|
|
12
|
-
return n({
|
|
13
|
-
client: t,
|
|
14
|
-
headers: e(r)
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { r as debitCardsInvalidationKey, i as velocityControlsInvalidationKey };
|
package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index4.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.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
|
-
import { createDebitCardMutation as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
-
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import { debitCardsInvalidationKey as i } from "./index3.js";
|
|
11
|
-
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index4.js
|
|
13
|
-
function o() {
|
|
14
|
-
let { client: o, organizationId: s } = t(), c = n(s), l = r({
|
|
15
|
-
client: o,
|
|
16
|
-
headers: c
|
|
17
|
-
});
|
|
18
|
-
return a({
|
|
19
|
-
...l,
|
|
20
|
-
onSuccess: async (...t) => {
|
|
21
|
-
await e(i({
|
|
22
|
-
client: o,
|
|
23
|
-
organizationId: s
|
|
24
|
-
})), await l.onSuccess?.(...t);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
export { o as useCreateDebitCardMutation };
|
package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index5.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.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
|
-
import { createVelocityControlMutation as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
-
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import { velocityControlsInvalidationKey as i } from "./index3.js";
|
|
11
|
-
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index5.js
|
|
13
|
-
function o() {
|
|
14
|
-
let { client: o, organizationId: s } = t(), c = n(s), l = r({
|
|
15
|
-
client: o,
|
|
16
|
-
headers: c
|
|
17
|
-
});
|
|
18
|
-
return a({
|
|
19
|
-
...l,
|
|
20
|
-
onSuccess: async (...t) => {
|
|
21
|
-
await e(i({
|
|
22
|
-
client: o,
|
|
23
|
-
organizationId: s
|
|
24
|
-
})), await l.onSuccess?.(...t);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
export { o as useCreateVelocityControlMutation };
|
package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index6.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.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
|
-
import { manageDebitCardAccessMutation as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
-
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import { debitCardsInvalidationKey as i } from "./index3.js";
|
|
11
|
-
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index6.js
|
|
13
|
-
function o() {
|
|
14
|
-
let { client: o, organizationId: s } = t(), c = n(s), l = r({
|
|
15
|
-
client: o,
|
|
16
|
-
headers: c
|
|
17
|
-
});
|
|
18
|
-
return a({
|
|
19
|
-
...l,
|
|
20
|
-
onSuccess: async (...t) => {
|
|
21
|
-
await e(i({
|
|
22
|
-
client: o,
|
|
23
|
-
organizationId: s
|
|
24
|
-
})), await l.onSuccess?.(...t);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
export { o as useManageDebitCardAccessMutation };
|
package/dist/libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index7.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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 { getOrganizationOptions 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 { useQuery as r } from "@tanstack/react-query";
|
|
10
|
-
//#region ../../libs/tesouro-embedded-components-react/create-card-widget/data-access/dist/index7.js
|
|
11
|
-
function i({ enabled: i } = {}) {
|
|
12
|
-
let { client: a, organizationId: o, widgetToken: s, authEpoch: c } = e(), l = t({
|
|
13
|
-
client: a,
|
|
14
|
-
path: { organizationId: o ?? "" }
|
|
15
|
-
});
|
|
16
|
-
return r({
|
|
17
|
-
...n(l, c),
|
|
18
|
-
enabled: !!(o && s) && (i === !0 || i === void 0)
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
export { i as useCreateCardOrganizationQuery };
|
|
File without changes
|
|
File without changes
|