@tesouro/embedded-components-react 0.7.56 → 0.7.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -3
- package/dist/experimental/RemoteCheckCapture.d.ts +1 -32
- package/dist/experimental/index.d.ts +1 -32
- package/dist/index.d.ts +12 -44
- package/dist/index.js +47 -48
- package/dist/lib/AcceptDisclosuresWidget.d.ts +1 -32
- package/dist/lib/BalancesWidget.d.ts +0 -31
- package/dist/lib/BankAccountOnboardingWidget.d.ts +1 -32
- package/dist/lib/BankAccountsWidget.d.ts +1 -32
- package/dist/lib/BankingComplianceBannerWidget.d.ts +0 -31
- package/dist/lib/BillPayWidget.d.ts +0 -31
- package/dist/lib/CardDetailsWidget.d.ts +1 -32
- package/dist/lib/CounterpartsWidget.d.ts +0 -31
- package/dist/lib/CounterpartsWidgetPublic.d.ts +0 -31
- package/dist/lib/CreditCardsWidget.d.ts +0 -31
- package/dist/lib/CustomersWidget.d.ts +1 -33
- package/dist/lib/DebitCardsWidget.d.ts +0 -31
- package/dist/lib/ExpenseManagementWidget.d.ts +0 -31
- package/dist/lib/InsightsWidget.d.ts +0 -31
- package/dist/lib/LinkedAccountsWidget.d.ts +1 -32
- package/dist/lib/OfferWidget.d.ts +1 -32
- package/dist/lib/ProductsWidget.d.ts +1 -32
- package/dist/lib/ReceivablesWidget.d.ts +1 -32
- package/dist/lib/SettingsWidget.d.ts +0 -31
- package/dist/lib/TransfersWidget.d.ts +0 -31
- package/dist/lib/WidgetProvider.d.ts +2 -33
- package/dist/lib/WidgetProvider.js +9 -10
- package/dist/lib/WidgetProviderPublic.d.ts +0 -31
- package/dist/lib/WidgetSuite.d.ts +1 -32
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +395 -396
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +83 -84
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +15 -16
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CardsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index8.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index3.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +9 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +45 -49
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +91 -95
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/index.js +0 -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/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js +120 -121
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/types.js +0 -8
|
@@ -45,7 +45,7 @@ function l({ labels: e, accountDetailsLabels: r, featureLabels: l, isBankingTagl
|
|
|
45
45
|
...C
|
|
46
46
|
})] });
|
|
47
47
|
}
|
|
48
|
-
function u({ baseUrl: t, widgetToken: n, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: c,
|
|
48
|
+
function u({ baseUrl: t, widgetToken: n, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: c, uiFramework: u, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
49
49
|
return /* @__PURE__ */ s(r, {
|
|
50
50
|
widgetName: e,
|
|
51
51
|
baseUrl: t,
|
|
@@ -54,14 +54,13 @@ function u({ baseUrl: t, widgetToken: n, organizationId: i, configClient: a, gat
|
|
|
54
54
|
configClient: a,
|
|
55
55
|
gatewayRouting: o,
|
|
56
56
|
linkComponent: c,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
children: /* @__PURE__ */ s(l, { ..._ })
|
|
57
|
+
uiFramework: u,
|
|
58
|
+
errorFallback: d,
|
|
59
|
+
onError: f,
|
|
60
|
+
analytics: p,
|
|
61
|
+
disclosuresAcceptance: m,
|
|
62
|
+
providerLabels: h,
|
|
63
|
+
children: /* @__PURE__ */ s(l, { ...g })
|
|
65
64
|
});
|
|
66
65
|
}
|
|
67
66
|
//#endregion
|
|
@@ -25,7 +25,7 @@ function l(e) {
|
|
|
25
25
|
function u(e) {
|
|
26
26
|
return c(), /* @__PURE__ */ s(r, { ...e });
|
|
27
27
|
}
|
|
28
|
-
function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: c,
|
|
28
|
+
function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: c, uiFramework: u, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
29
29
|
return /* @__PURE__ */ s(t, {
|
|
30
30
|
widgetName: a,
|
|
31
31
|
baseUrl: e,
|
|
@@ -34,17 +34,16 @@ function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
34
34
|
configClient: i,
|
|
35
35
|
gatewayRouting: o,
|
|
36
36
|
linkComponent: c,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
children: /* @__PURE__ */ s(l, { ..._ })
|
|
37
|
+
uiFramework: u,
|
|
38
|
+
errorFallback: d,
|
|
39
|
+
onError: f,
|
|
40
|
+
analytics: p,
|
|
41
|
+
disclosuresAcceptance: m,
|
|
42
|
+
providerLabels: h,
|
|
43
|
+
children: /* @__PURE__ */ s(l, { ...g })
|
|
45
44
|
});
|
|
46
45
|
}
|
|
47
|
-
function f({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: c,
|
|
46
|
+
function f({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: c, uiFramework: l, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
48
47
|
return /* @__PURE__ */ s(t, {
|
|
49
48
|
widgetName: a,
|
|
50
49
|
baseUrl: e,
|
|
@@ -53,14 +52,13 @@ function f({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
53
52
|
configClient: i,
|
|
54
53
|
gatewayRouting: o,
|
|
55
54
|
linkComponent: c,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
children: /* @__PURE__ */ s(u, { ..._ })
|
|
55
|
+
uiFramework: l,
|
|
56
|
+
errorFallback: d,
|
|
57
|
+
onError: f,
|
|
58
|
+
analytics: p,
|
|
59
|
+
disclosuresAcceptance: m,
|
|
60
|
+
providerLabels: h,
|
|
61
|
+
children: /* @__PURE__ */ s(u, { ...g })
|
|
64
62
|
});
|
|
65
63
|
}
|
|
66
64
|
//#endregion
|
|
@@ -33,7 +33,7 @@ function u({ onOpenBill: t, labels: i, ref: u }) {
|
|
|
33
33
|
testId: a.tray
|
|
34
34
|
}) : null;
|
|
35
35
|
}
|
|
36
|
-
function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: a, gatewayRouting: o, linkComponent: s,
|
|
36
|
+
function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: a, gatewayRouting: o, linkComponent: s, uiFramework: c, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
37
37
|
return /* @__PURE__ */ l(t, {
|
|
38
38
|
widgetName: i,
|
|
39
39
|
baseUrl: e,
|
|
@@ -42,14 +42,13 @@ function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: a, gat
|
|
|
42
42
|
configClient: a,
|
|
43
43
|
gatewayRouting: o,
|
|
44
44
|
linkComponent: s,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
children: /* @__PURE__ */ l(u, { ..._ })
|
|
45
|
+
uiFramework: c,
|
|
46
|
+
errorFallback: d,
|
|
47
|
+
onError: f,
|
|
48
|
+
analytics: p,
|
|
49
|
+
disclosuresAcceptance: m,
|
|
50
|
+
providerLabels: h,
|
|
51
|
+
children: /* @__PURE__ */ l(u, { ...g })
|
|
53
52
|
});
|
|
54
53
|
}
|
|
55
54
|
//#endregion
|
|
@@ -17,7 +17,7 @@ function s(t) {
|
|
|
17
17
|
i(r.Mounted);
|
|
18
18
|
}, [i]), /* @__PURE__ */ o(n, { ...t });
|
|
19
19
|
}
|
|
20
|
-
function c({ baseUrl: e, widgetToken: n, organizationId: r, configClient: a, gatewayRouting: c, linkComponent: l,
|
|
20
|
+
function c({ baseUrl: e, widgetToken: n, organizationId: r, configClient: a, gatewayRouting: c, linkComponent: l, uiFramework: u, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
21
21
|
return /* @__PURE__ */ o(t, {
|
|
22
22
|
widgetName: i,
|
|
23
23
|
baseUrl: e,
|
|
@@ -26,14 +26,13 @@ function c({ baseUrl: e, widgetToken: n, organizationId: r, configClient: a, gat
|
|
|
26
26
|
configClient: a,
|
|
27
27
|
gatewayRouting: c,
|
|
28
28
|
linkComponent: l,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
children: /* @__PURE__ */ o(s, { ..._ })
|
|
29
|
+
uiFramework: u,
|
|
30
|
+
errorFallback: d,
|
|
31
|
+
onError: f,
|
|
32
|
+
analytics: p,
|
|
33
|
+
disclosuresAcceptance: m,
|
|
34
|
+
providerLabels: h,
|
|
35
|
+
children: /* @__PURE__ */ o(s, { ...g })
|
|
37
36
|
});
|
|
38
37
|
}
|
|
39
38
|
//#endregion
|
|
@@ -84,7 +84,7 @@ function w({ labels: a, initialTab: c = S.Bills, poweredByBankName: w, onSetting
|
|
|
84
84
|
})
|
|
85
85
|
] });
|
|
86
86
|
}
|
|
87
|
-
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o,
|
|
87
|
+
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o, uiFramework: s, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: p, ...m }) {
|
|
88
88
|
return /* @__PURE__ */ b(a, {
|
|
89
89
|
widgetName: c,
|
|
90
90
|
baseUrl: e,
|
|
@@ -93,14 +93,13 @@ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
93
93
|
configClient: r,
|
|
94
94
|
gatewayRouting: i,
|
|
95
95
|
linkComponent: o,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
children: /* @__PURE__ */ b(w, { ...h })
|
|
96
|
+
uiFramework: s,
|
|
97
|
+
errorFallback: l,
|
|
98
|
+
onError: u,
|
|
99
|
+
analytics: d,
|
|
100
|
+
disclosuresAcceptance: f,
|
|
101
|
+
providerLabels: p,
|
|
102
|
+
children: /* @__PURE__ */ b(w, { ...m })
|
|
104
103
|
});
|
|
105
104
|
}
|
|
106
105
|
var E = T;
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js
CHANGED
|
@@ -50,7 +50,7 @@ function g({ payable: t, payableId: s, isPayBillEnabled: g = !0, hasScheduledPay
|
|
|
50
50
|
labels: w?.payBill
|
|
51
51
|
}) : null] });
|
|
52
52
|
}
|
|
53
|
-
function _({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: o,
|
|
53
|
+
function _({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: o, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: p, ...h }) {
|
|
54
54
|
return /* @__PURE__ */ m(t, {
|
|
55
55
|
widgetName: s,
|
|
56
56
|
baseUrl: e,
|
|
@@ -59,14 +59,13 @@ function _({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
59
59
|
configClient: i,
|
|
60
60
|
gatewayRouting: a,
|
|
61
61
|
linkComponent: o,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
children: /* @__PURE__ */ m(g, { ..._ })
|
|
62
|
+
uiFramework: c,
|
|
63
|
+
errorFallback: l,
|
|
64
|
+
onError: u,
|
|
65
|
+
analytics: d,
|
|
66
|
+
disclosuresAcceptance: f,
|
|
67
|
+
providerLabels: p,
|
|
68
|
+
children: /* @__PURE__ */ m(g, { ...h })
|
|
70
69
|
});
|
|
71
70
|
}
|
|
72
71
|
//#endregion
|
|
@@ -15,64 +15,64 @@ import { CardProgram as u } from "../../../../shared/feature/dist/lib/card/cardP
|
|
|
15
15
|
import "../../../../shared/feature/dist/index.js";
|
|
16
16
|
import { resolveCardDetailsFeatureLabels as d } from "./labels.js";
|
|
17
17
|
import { CardDetailsWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./analytics/events.js";
|
|
18
|
-
import { copyTextToClipboard as m, formatCardNumber as
|
|
19
|
-
import { CardProgramValidity as
|
|
20
|
-
import { activateCardPanelTestIds as
|
|
21
|
-
import { useCreditCardDetailsQuery as
|
|
22
|
-
import { useDebitCardCredentialsQuery as
|
|
23
|
-
import { useDebitCardDetailsQuery as
|
|
18
|
+
import { copyTextToClipboard as m, formatCardNumber as ee, formatExpirationDate as te } from "./formatters.js";
|
|
19
|
+
import { CardProgramValidity as h, resolveCanRevealCredentials as ne, resolveCardDetailsPanelState as re, resolveCardDetailsPresentation as ie, resolveCardDetailsRevealState as ae, resolveCardProgramValidity as oe } from "./cardDetailsView.js";
|
|
20
|
+
import { activateCardPanelTestIds as se, cardDetailsPanelTestIds as ce } from "./testIds.js";
|
|
21
|
+
import { useCreditCardDetailsQuery as le } from "../../../data-access/dist/index6.js";
|
|
22
|
+
import { useDebitCardCredentialsQuery as ue } from "../../../data-access/dist/index7.js";
|
|
23
|
+
import { useDebitCardDetailsQuery as de } from "../../../data-access/dist/index8.js";
|
|
24
24
|
import "../../../data-access/dist/index.js";
|
|
25
|
-
import { CardDetailsPanel as
|
|
26
|
-
import { ActivateCardPanel as
|
|
25
|
+
import { CardDetailsPanel as fe } from "../../../ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js";
|
|
26
|
+
import { ActivateCardPanel as g } from "../../../ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js";
|
|
27
27
|
import "../../../ui/dist/index.js";
|
|
28
|
-
import { useActivateCard as
|
|
29
|
-
import { useCardLock as
|
|
30
|
-
import { useEditCardNickname as
|
|
31
|
-
import { useCallback as
|
|
32
|
-
import { Fragment as
|
|
28
|
+
import { useActivateCard as pe } from "./useActivateCard.js";
|
|
29
|
+
import { useCardLock as me } from "./useCardLock.js";
|
|
30
|
+
import { useEditCardNickname as he } from "./useEditCardNickname.js";
|
|
31
|
+
import { useCallback as _, useEffect as v, useMemo as y, useState as b } from "react";
|
|
32
|
+
import { Fragment as ge, jsx as x, jsxs as _e } from "react/jsx-runtime";
|
|
33
33
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js
|
|
34
|
-
function
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}, [
|
|
39
|
-
let N =
|
|
34
|
+
function S({ cardId: a, cardProgram: p, onClose: S, labels: C, activateLabels: ve, featureLabels: w, cardArtSrc: T, bankLogoSrc: E, bankLogoAlt: D }) {
|
|
35
|
+
let O = i(), k = c(), A = o(), { initResponse: j } = s(), { organizationStatus: ye } = n(), M = l();
|
|
36
|
+
v(() => {
|
|
37
|
+
O(f.Mounted);
|
|
38
|
+
}, [O]);
|
|
39
|
+
let N = y(() => d(w), [w]), P = oe(p), F = p === u.Credit, be = p === u.Debit, xe = le({
|
|
40
40
|
cardId: a,
|
|
41
41
|
enabled: F
|
|
42
|
-
}), I =
|
|
42
|
+
}), I = de({
|
|
43
43
|
cardId: a,
|
|
44
44
|
enabled: be
|
|
45
|
-
}), { data: L, isError: Se, isNotFound: Ce, refetch: R } = F ? xe : I, z =
|
|
45
|
+
}), { data: L, isError: Se, isNotFound: Ce, refetch: R } = F ? xe : I, z = ye === t.None, B = re({
|
|
46
46
|
programValidity: P,
|
|
47
47
|
isNotFound: Ce,
|
|
48
|
-
isError: !!
|
|
48
|
+
isError: !!k || Se || z,
|
|
49
49
|
hasCard: !!L
|
|
50
50
|
});
|
|
51
|
-
|
|
52
|
-
if (P ===
|
|
51
|
+
v(() => {
|
|
52
|
+
if (P === h.Supported) return;
|
|
53
53
|
let e = `"${u.Credit}" or "${u.Debit}"`;
|
|
54
|
-
console.error(P ===
|
|
54
|
+
console.error(P === h.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
55
|
}, [p, P]);
|
|
56
|
-
let [we, V] =
|
|
57
|
-
|
|
56
|
+
let [we, V] = b(), H = we === a;
|
|
57
|
+
v(() => {
|
|
58
58
|
V(void 0);
|
|
59
59
|
}, [a]);
|
|
60
|
-
let U =
|
|
60
|
+
let U = ne({
|
|
61
61
|
panelState: B,
|
|
62
62
|
cardProgram: p,
|
|
63
63
|
cardStatus: L?.cardStatus
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
v(() => {
|
|
66
66
|
H && !U && V(void 0);
|
|
67
67
|
}, [H, U]);
|
|
68
|
-
let W =
|
|
68
|
+
let W = ue({
|
|
69
69
|
cardId: a,
|
|
70
70
|
enabled: U && H
|
|
71
|
-
}), G =
|
|
71
|
+
}), G = ae({
|
|
72
72
|
isRevealRequested: H,
|
|
73
73
|
isError: W.isError,
|
|
74
74
|
hasCredentials: !!W.data
|
|
75
|
-
}), K =
|
|
75
|
+
}), K = y(() => B === "loaded" && L ? ie({
|
|
76
76
|
card: L,
|
|
77
77
|
cardProgram: p,
|
|
78
78
|
labels: N
|
|
@@ -81,30 +81,30 @@ function C({ cardId: a, cardProgram: p, onClose: C, labels: w, activateLabels: _
|
|
|
81
81
|
p,
|
|
82
82
|
N,
|
|
83
83
|
B
|
|
84
|
-
]), Te =
|
|
85
|
-
await m(t) && (e.success(N.copySuccessToast),
|
|
86
|
-
}, [N.copySuccessToast,
|
|
84
|
+
]), Te = _(async (t) => {
|
|
85
|
+
await m(t) && (e.success(N.copySuccessToast), O(f.ValueCopied));
|
|
86
|
+
}, [N.copySuccessToast, O]), q = B === "loaded" ? L : void 0, J = pe({
|
|
87
87
|
cardId: a,
|
|
88
88
|
cardProgram: p,
|
|
89
89
|
card: q,
|
|
90
|
-
scopes:
|
|
91
|
-
currentUserId:
|
|
90
|
+
scopes: j?.scopes,
|
|
91
|
+
currentUserId: M ? void 0 : j?.userId ?? void 0,
|
|
92
92
|
conflictToast: N.activationConflictToast
|
|
93
|
-
}), Y =
|
|
93
|
+
}), Y = me({
|
|
94
94
|
cardId: a,
|
|
95
95
|
cardProgram: p,
|
|
96
96
|
card: q,
|
|
97
|
-
scopes:
|
|
97
|
+
scopes: j?.scopes,
|
|
98
98
|
conflictToast: N.lockConflictToast
|
|
99
|
-
}), X =
|
|
99
|
+
}), X = he({
|
|
100
100
|
cardId: a,
|
|
101
101
|
cardProgram: p,
|
|
102
102
|
card: q,
|
|
103
103
|
nickname: K?.nickname,
|
|
104
|
-
scopes:
|
|
104
|
+
scopes: j?.scopes,
|
|
105
105
|
conflictToast: N.nicknameConflictToast,
|
|
106
106
|
successToast: N.nicknameUpdatedToast
|
|
107
|
-
}), { refetch: Z } = W, Ee =
|
|
107
|
+
}), { refetch: Z } = W, Ee = _(() => {
|
|
108
108
|
if (H) {
|
|
109
109
|
Z();
|
|
110
110
|
return;
|
|
@@ -114,43 +114,43 @@ function C({ cardId: a, cardProgram: p, onClose: C, labels: w, activateLabels: _
|
|
|
114
114
|
a,
|
|
115
115
|
H,
|
|
116
116
|
Z
|
|
117
|
-
]), De =
|
|
117
|
+
]), De = _(() => {
|
|
118
118
|
V(void 0);
|
|
119
|
-
}, []), Q =
|
|
120
|
-
V(void 0),
|
|
121
|
-
}, [
|
|
119
|
+
}, []), Q = _(() => {
|
|
120
|
+
V(void 0), S?.();
|
|
121
|
+
}, [S]), Oe = _(() => {
|
|
122
122
|
J.finish(), Q();
|
|
123
|
-
}, [J.finish, Q]), ke =
|
|
124
|
-
...
|
|
123
|
+
}, [J.finish, Q]), ke = y(() => W.isForbidden ? {
|
|
124
|
+
...C,
|
|
125
125
|
credentials: {
|
|
126
|
-
...
|
|
126
|
+
...C?.credentials,
|
|
127
127
|
errorDescription: N.revealNotPermittedDescription
|
|
128
128
|
}
|
|
129
|
-
} :
|
|
129
|
+
} : C, [
|
|
130
130
|
W.isForbidden,
|
|
131
|
-
|
|
131
|
+
C,
|
|
132
132
|
N.revealNotPermittedDescription
|
|
133
|
-
]), $ =
|
|
133
|
+
]), $ = y(() => {
|
|
134
134
|
if (G === "revealed" && W.data) return {
|
|
135
|
-
cardNumber:
|
|
136
|
-
expirationDate:
|
|
135
|
+
cardNumber: ee(W.data.pan),
|
|
136
|
+
expirationDate: te(W.data.expirationDate),
|
|
137
137
|
securityCode: W.data.cvv
|
|
138
138
|
};
|
|
139
|
-
}, [W.data, G]), Ae =
|
|
140
|
-
if (
|
|
141
|
-
|
|
139
|
+
}, [W.data, G]), Ae = _(() => {
|
|
140
|
+
if (k || z) {
|
|
141
|
+
A();
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
144
|
R();
|
|
145
145
|
}, [
|
|
146
146
|
z,
|
|
147
147
|
R,
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
A,
|
|
149
|
+
k
|
|
150
150
|
]);
|
|
151
|
-
return /* @__PURE__ */ ge
|
|
152
|
-
testIds:
|
|
153
|
-
labels:
|
|
151
|
+
return /* @__PURE__ */ _e(ge, { children: [/* @__PURE__ */ x(r, {}), J.isOpen ? /* @__PURE__ */ x(g, {
|
|
152
|
+
testIds: se,
|
|
153
|
+
labels: ve,
|
|
154
154
|
state: J.state,
|
|
155
155
|
values: J.values,
|
|
156
156
|
errors: J.errors,
|
|
@@ -158,25 +158,25 @@ function C({ cardId: a, cardProgram: p, onClose: C, labels: w, activateLabels: _
|
|
|
158
158
|
onValuesChange: J.onValuesChange,
|
|
159
159
|
onSubmit: J.onSubmit,
|
|
160
160
|
onClose: J.close,
|
|
161
|
-
onDone:
|
|
162
|
-
cardArtSrc:
|
|
163
|
-
bankLogoSrc:
|
|
164
|
-
bankLogoAlt:
|
|
161
|
+
onDone: S ? Oe : void 0,
|
|
162
|
+
cardArtSrc: T,
|
|
163
|
+
bankLogoSrc: E,
|
|
164
|
+
bankLogoAlt: D,
|
|
165
165
|
cardholderName: K?.cardholderName,
|
|
166
166
|
maskedCardNumber: K?.maskedCardNumber,
|
|
167
167
|
programLabel: K?.programLabel
|
|
168
|
-
}) : /* @__PURE__ */
|
|
169
|
-
testIds:
|
|
168
|
+
}) : /* @__PURE__ */ x(fe, {
|
|
169
|
+
testIds: ce,
|
|
170
170
|
labels: ke,
|
|
171
171
|
state: B,
|
|
172
172
|
nickname: K?.nickname,
|
|
173
173
|
statusLabel: K?.statusLabel,
|
|
174
174
|
statusTone: K?.statusTone,
|
|
175
175
|
formFactorLabel: K?.formFactorLabel,
|
|
176
|
-
onClose:
|
|
177
|
-
cardArtSrc:
|
|
178
|
-
bankLogoSrc:
|
|
179
|
-
bankLogoAlt:
|
|
176
|
+
onClose: S ? Q : void 0,
|
|
177
|
+
cardArtSrc: T,
|
|
178
|
+
bankLogoSrc: E,
|
|
179
|
+
bankLogoAlt: D,
|
|
180
180
|
cardholderName: K?.cardholderName,
|
|
181
181
|
maskedCardNumber: K?.maskedCardNumber,
|
|
182
182
|
programLabel: K?.programLabel,
|
|
@@ -203,11 +203,11 @@ function C({ cardId: a, cardProgram: p, onClose: C, labels: w, activateLabels: _
|
|
|
203
203
|
lockState: Y.lockState,
|
|
204
204
|
onLockCard: Y.onLockCard,
|
|
205
205
|
onUnlockCard: Y.onUnlockCard,
|
|
206
|
-
onRetry: P ===
|
|
206
|
+
onRetry: P === h.Supported ? Ae : void 0
|
|
207
207
|
})] });
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
return /* @__PURE__ */
|
|
209
|
+
function C({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o, uiFramework: s, errorFallback: c, onError: l, analytics: u, disclosuresAcceptance: d, providerLabels: f, ...m }) {
|
|
210
|
+
return /* @__PURE__ */ x(a, {
|
|
211
211
|
widgetName: p,
|
|
212
212
|
baseUrl: e,
|
|
213
213
|
widgetToken: t,
|
|
@@ -215,15 +215,14 @@ function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
215
215
|
configClient: r,
|
|
216
216
|
gatewayRouting: i,
|
|
217
217
|
linkComponent: o,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
children: /* @__PURE__ */ S(C, { ...h })
|
|
218
|
+
uiFramework: s,
|
|
219
|
+
errorFallback: c,
|
|
220
|
+
onError: l,
|
|
221
|
+
analytics: u,
|
|
222
|
+
disclosuresAcceptance: d,
|
|
223
|
+
providerLabels: f,
|
|
224
|
+
children: /* @__PURE__ */ x(S, { ...m })
|
|
226
225
|
});
|
|
227
226
|
}
|
|
228
227
|
//#endregion
|
|
229
|
-
export {
|
|
228
|
+
export { C as CardDetailsWidget, C as default };
|
package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js
CHANGED
|
@@ -73,8 +73,8 @@ function y({ cardArtSrc: n, labels: s, featureLabels: fe, className: Oe, onClose
|
|
|
73
73
|
}, {
|
|
74
74
|
value: d.Physical,
|
|
75
75
|
label: w.setup.cardFormatPhysical
|
|
76
|
-
}], [w.setup.cardFormatPhysical, w.setup.cardFormatVirtual]), Fe = m(() => t(), []), [Ie, T] = g(l.Setup), [E, Le] = g(null), [D, Re] = g(null), [ze, Be] = g(null), [O,
|
|
77
|
-
Le(null), Re(null), Be(null),
|
|
76
|
+
}], [w.setup.cardFormatPhysical, w.setup.cardFormatVirtual]), Fe = m(() => t(), []), [Ie, T] = g(l.Setup), [E, Le] = g(null), [D, Re] = g(null), [ze, Be] = g(null), [O, Ve] = g(null), [k, He] = g(Te), [Ue, We] = g(null), [Ge, Ke] = g(null), [A, j] = g(!1), [M, N] = g(""), [P, F] = g(null), [I, L] = g(!1), [R, z] = g(""), [B, V] = g(!1), [H, U] = g([]), qe = () => {
|
|
77
|
+
Le(null), Re(null), Be(null), Ve(null), He(Te), We(null), Ke(null), j(!1), N(""), F(null), L(!1), z(""), V(!1), U([]), T(l.Setup);
|
|
78
78
|
}, Je = h(x);
|
|
79
79
|
x && x !== Je.current && (Je.current = x, qe());
|
|
80
80
|
let W = h(!0);
|
|
@@ -202,7 +202,7 @@ function y({ cardArtSrc: n, labels: s, featureLabels: fe, className: Oe, onClose
|
|
|
202
202
|
M,
|
|
203
203
|
pt,
|
|
204
204
|
ft
|
|
205
|
-
]), yt = !b || !S.canIssue || tt.isPending || nt.isPending || rt.isPending || G || X || q || Qe || !E || !D || !$ || mt || ht || gt || D === d.Physical && (!O || O === u.BusinessAddress && !ot || O === u.DifferentAddress && !le(
|
|
205
|
+
]), yt = !b || !S.canIssue || tt.isPending || nt.isPending || rt.isPending || G || X || q || Qe || !E || !D || !$ || mt || ht || gt || D === d.Physical && (!O || O === u.BusinessAddress && !ot || O === u.DifferentAddress && !le(k)), bt = m(() => {
|
|
206
206
|
let e = De(Ge, C);
|
|
207
207
|
return {
|
|
208
208
|
...s,
|
|
@@ -224,7 +224,7 @@ function y({ cardArtSrc: n, labels: s, featureLabels: fe, className: Oe, onClose
|
|
|
224
224
|
reference: t,
|
|
225
225
|
mailingOption: O,
|
|
226
226
|
orgAddress: it,
|
|
227
|
-
manualAddress:
|
|
227
|
+
manualAddress: k
|
|
228
228
|
});
|
|
229
229
|
if (!n) return;
|
|
230
230
|
T(l.Preparing);
|
|
@@ -329,7 +329,7 @@ function y({ cardArtSrc: n, labels: s, featureLabels: fe, className: Oe, onClose
|
|
|
329
329
|
cardFormatOptions: Pe,
|
|
330
330
|
selectedCardFormat: D,
|
|
331
331
|
onCardFormatSelect: (e) => {
|
|
332
|
-
Re(e),
|
|
332
|
+
Re(e), Ve(null);
|
|
333
333
|
},
|
|
334
334
|
isFundingAccountVisible: ut,
|
|
335
335
|
fundingAccountOptions: Z,
|
|
@@ -341,11 +341,11 @@ function y({ cardArtSrc: n, labels: s, featureLabels: fe, className: Oe, onClose
|
|
|
341
341
|
} : void 0,
|
|
342
342
|
isMailingSectionVisible: st,
|
|
343
343
|
selectedMailingOption: O,
|
|
344
|
-
onMailingOptionSelect:
|
|
344
|
+
onMailingOptionSelect: Ve,
|
|
345
345
|
businessAddress: at,
|
|
346
346
|
isBusinessAddressVisible: ct,
|
|
347
347
|
isManualAddressVisible: lt,
|
|
348
|
-
manualAddress:
|
|
348
|
+
manualAddress: k,
|
|
349
349
|
onManualAddressChange: (e) => He((t) => ({
|
|
350
350
|
...t,
|
|
351
351
|
...e
|
|
@@ -367,7 +367,7 @@ function y({ cardArtSrc: n, labels: s, featureLabels: fe, className: Oe, onClose
|
|
|
367
367
|
} : void 0
|
|
368
368
|
})] });
|
|
369
369
|
}
|
|
370
|
-
function Ae({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a,
|
|
370
|
+
function Ae({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, uiFramework: o, errorFallback: ee, onError: te, analytics: ne, disclosuresAcceptance: re, providerLabels: c, ...l }) {
|
|
371
371
|
return /* @__PURE__ */ _(s, {
|
|
372
372
|
widgetName: fe,
|
|
373
373
|
baseUrl: e,
|
|
@@ -376,14 +376,13 @@ function Ae({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, ga
|
|
|
376
376
|
configClient: r,
|
|
377
377
|
gatewayRouting: i,
|
|
378
378
|
linkComponent: a,
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
children: /* @__PURE__ */ _(y, { ...u })
|
|
379
|
+
uiFramework: o,
|
|
380
|
+
errorFallback: ee,
|
|
381
|
+
onError: te,
|
|
382
|
+
analytics: ne,
|
|
383
|
+
disclosuresAcceptance: re,
|
|
384
|
+
providerLabels: c,
|
|
385
|
+
children: /* @__PURE__ */ _(y, { ...l })
|
|
387
386
|
});
|
|
388
387
|
}
|
|
389
388
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CardsWidget.js
CHANGED
|
@@ -73,7 +73,7 @@ function g({ cardProgram: e, pagination: t, defaultPagination: g, onPaginationCh
|
|
|
73
73
|
}, W)
|
|
74
74
|
})] });
|
|
75
75
|
}
|
|
76
|
-
function _({ baseUrl: n, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s,
|
|
76
|
+
function _({ baseUrl: n, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: p, ...h }) {
|
|
77
77
|
return /* @__PURE__ */ m(e, {
|
|
78
78
|
widgetName: t,
|
|
79
79
|
baseUrl: n,
|
|
@@ -82,14 +82,13 @@ function _({ baseUrl: n, widgetToken: r, organizationId: i, configClient: a, gat
|
|
|
82
82
|
configClient: a,
|
|
83
83
|
gatewayRouting: o,
|
|
84
84
|
linkComponent: s,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
children: /* @__PURE__ */ m(g, { ..._ })
|
|
85
|
+
uiFramework: c,
|
|
86
|
+
errorFallback: l,
|
|
87
|
+
onError: u,
|
|
88
|
+
analytics: d,
|
|
89
|
+
disclosuresAcceptance: f,
|
|
90
|
+
providerLabels: p,
|
|
91
|
+
children: /* @__PURE__ */ m(g, { ...h })
|
|
93
92
|
});
|
|
94
93
|
}
|
|
95
94
|
//#endregion
|
|
@@ -117,23 +117,22 @@ function h({ counterpartType: n, pageSizeOptions: o = l, onViewAllDocuments: h,
|
|
|
117
117
|
})
|
|
118
118
|
] });
|
|
119
119
|
}
|
|
120
|
-
function g({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s,
|
|
120
|
+
function g({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: m, passThrough: g, ..._ }) {
|
|
121
121
|
return /* @__PURE__ */ p(n, {
|
|
122
|
-
widgetName:
|
|
122
|
+
widgetName: g === !0 && e === void 0 && t === void 0 ? void 0 : o,
|
|
123
123
|
baseUrl: e,
|
|
124
124
|
widgetToken: t,
|
|
125
125
|
organizationId: r,
|
|
126
126
|
configClient: i,
|
|
127
127
|
gatewayRouting: a,
|
|
128
128
|
linkComponent: s,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
children: /* @__PURE__ */ p(h, { ...v }, v.counterpartType)
|
|
129
|
+
uiFramework: c,
|
|
130
|
+
errorFallback: l,
|
|
131
|
+
onError: u,
|
|
132
|
+
analytics: d,
|
|
133
|
+
disclosuresAcceptance: f,
|
|
134
|
+
providerLabels: m,
|
|
135
|
+
children: /* @__PURE__ */ p(h, { ..._ }, _.counterpartType)
|
|
137
136
|
});
|
|
138
137
|
}
|
|
139
138
|
//#endregion
|