@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.
Files changed (61) hide show
  1. package/README.md +0 -3
  2. package/dist/experimental/RemoteCheckCapture.d.ts +1 -32
  3. package/dist/experimental/index.d.ts +1 -32
  4. package/dist/index.d.ts +12 -44
  5. package/dist/index.js +47 -48
  6. package/dist/lib/AcceptDisclosuresWidget.d.ts +1 -32
  7. package/dist/lib/BalancesWidget.d.ts +0 -31
  8. package/dist/lib/BankAccountOnboardingWidget.d.ts +1 -32
  9. package/dist/lib/BankAccountsWidget.d.ts +1 -32
  10. package/dist/lib/BankingComplianceBannerWidget.d.ts +0 -31
  11. package/dist/lib/BillPayWidget.d.ts +0 -31
  12. package/dist/lib/CardDetailsWidget.d.ts +1 -32
  13. package/dist/lib/CounterpartsWidget.d.ts +0 -31
  14. package/dist/lib/CounterpartsWidgetPublic.d.ts +0 -31
  15. package/dist/lib/CreditCardsWidget.d.ts +0 -31
  16. package/dist/lib/CustomersWidget.d.ts +1 -33
  17. package/dist/lib/DebitCardsWidget.d.ts +0 -31
  18. package/dist/lib/ExpenseManagementWidget.d.ts +0 -31
  19. package/dist/lib/InsightsWidget.d.ts +0 -31
  20. package/dist/lib/LinkedAccountsWidget.d.ts +1 -32
  21. package/dist/lib/OfferWidget.d.ts +1 -32
  22. package/dist/lib/ProductsWidget.d.ts +1 -32
  23. package/dist/lib/ReceivablesWidget.d.ts +1 -32
  24. package/dist/lib/SettingsWidget.d.ts +0 -31
  25. package/dist/lib/TransfersWidget.d.ts +0 -31
  26. package/dist/lib/WidgetProvider.d.ts +2 -33
  27. package/dist/lib/WidgetProvider.js +9 -10
  28. package/dist/lib/WidgetProviderPublic.d.ts +0 -31
  29. package/dist/lib/WidgetSuite.d.ts +1 -32
  30. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +8 -9
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +395 -396
  32. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +8 -9
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +16 -18
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js +8 -9
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +8 -9
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +8 -9
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +8 -9
  38. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +83 -84
  39. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +15 -16
  40. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CardsWidget.js +8 -9
  41. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +9 -10
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +25 -26
  43. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +8 -9
  44. package/dist/libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js +8 -9
  45. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js +8 -9
  46. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js +9 -10
  47. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index8.js +8 -9
  48. package/dist/libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index3.js +8 -9
  49. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +9 -10
  50. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +8 -9
  51. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +8 -9
  52. package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js +8 -9
  53. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +16 -17
  54. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +45 -49
  55. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +91 -95
  56. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +0 -1
  57. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/index.js +0 -1
  58. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js +120 -121
  60. package/package.json +1 -1
  61. 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, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
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
- implementation: u,
58
- uiFramework: d,
59
- errorFallback: f,
60
- onError: p,
61
- analytics: m,
62
- disclosuresAcceptance: h,
63
- providerLabels: g,
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, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
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
- implementation: u,
38
- uiFramework: d,
39
- errorFallback: f,
40
- onError: p,
41
- analytics: m,
42
- disclosuresAcceptance: h,
43
- providerLabels: g,
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, implementation: l, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
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
- implementation: l,
57
- uiFramework: d,
58
- errorFallback: f,
59
- onError: p,
60
- analytics: m,
61
- disclosuresAcceptance: h,
62
- providerLabels: g,
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, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
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
- implementation: c,
46
- uiFramework: d,
47
- errorFallback: f,
48
- onError: p,
49
- analytics: m,
50
- disclosuresAcceptance: h,
51
- providerLabels: g,
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, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
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
- implementation: u,
30
- uiFramework: d,
31
- errorFallback: f,
32
- onError: p,
33
- analytics: m,
34
- disclosuresAcceptance: h,
35
- providerLabels: g,
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, implementation: s, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
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
- implementation: s,
97
- uiFramework: l,
98
- errorFallback: u,
99
- onError: d,
100
- analytics: f,
101
- disclosuresAcceptance: p,
102
- providerLabels: m,
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;
@@ -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, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: h, ..._ }) {
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
- implementation: c,
63
- uiFramework: l,
64
- errorFallback: u,
65
- onError: d,
66
- analytics: f,
67
- disclosuresAcceptance: p,
68
- providerLabels: h,
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 h, formatExpirationDate as ee } from "./formatters.js";
19
- import { CardProgramValidity as g, resolveCanRevealCredentials as te, resolveCardDetailsPanelState as ne, resolveCardDetailsPresentation as re, resolveCardDetailsRevealState as ie, resolveCardProgramValidity as ae } from "./cardDetailsView.js";
20
- import { activateCardPanelTestIds as oe, cardDetailsPanelTestIds as se } from "./testIds.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";
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 de } from "../../../ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js";
26
- import { ActivateCardPanel as _ } from "../../../ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js";
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 fe } from "./useActivateCard.js";
29
- import { useCardLock as pe } from "./useCardLock.js";
30
- import { useEditCardNickname as me } from "./useEditCardNickname.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";
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 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);
38
- }, [k]);
39
- let N = b(() => d(T), [T]), P = ae(p), F = p === u.Credit, be = p === u.Debit, xe = ce({
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 = ue({
42
+ }), I = de({
43
43
  cardId: a,
44
44
  enabled: be
45
- }), { data: L, isError: Se, isNotFound: Ce, refetch: R } = F ? xe : I, z = ve === t.None, B = ne({
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: !!A || Se || z,
48
+ isError: !!k || Se || z,
49
49
  hasCard: !!L
50
50
  });
51
- y(() => {
52
- if (P === g.Supported) return;
51
+ v(() => {
52
+ if (P === h.Supported) return;
53
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.`);
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] = x(), H = we === a;
57
- y(() => {
56
+ let [we, V] = b(), H = we === a;
57
+ v(() => {
58
58
  V(void 0);
59
59
  }, [a]);
60
- let U = te({
60
+ let U = ne({
61
61
  panelState: B,
62
62
  cardProgram: p,
63
63
  cardStatus: L?.cardStatus
64
64
  });
65
- y(() => {
65
+ v(() => {
66
66
  H && !U && V(void 0);
67
67
  }, [H, U]);
68
- let W = le({
68
+ let W = ue({
69
69
  cardId: a,
70
70
  enabled: U && H
71
- }), G = ie({
71
+ }), G = ae({
72
72
  isRevealRequested: H,
73
73
  isError: W.isError,
74
74
  hasCredentials: !!W.data
75
- }), K = b(() => B === "loaded" && L ? re({
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 = 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({
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: M?.scopes,
91
- currentUserId: ye ? void 0 : M?.userId ?? void 0,
90
+ scopes: j?.scopes,
91
+ currentUserId: M ? void 0 : j?.userId ?? void 0,
92
92
  conflictToast: N.activationConflictToast
93
- }), Y = pe({
93
+ }), Y = me({
94
94
  cardId: a,
95
95
  cardProgram: p,
96
96
  card: q,
97
- scopes: M?.scopes,
97
+ scopes: j?.scopes,
98
98
  conflictToast: N.lockConflictToast
99
- }), X = me({
99
+ }), X = he({
100
100
  cardId: a,
101
101
  cardProgram: p,
102
102
  card: q,
103
103
  nickname: K?.nickname,
104
- scopes: M?.scopes,
104
+ scopes: j?.scopes,
105
105
  conflictToast: N.nicknameConflictToast,
106
106
  successToast: N.nicknameUpdatedToast
107
- }), { refetch: Z } = W, Ee = v(() => {
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 = v(() => {
117
+ ]), De = _(() => {
118
118
  V(void 0);
119
- }, []), Q = v(() => {
120
- V(void 0), C?.();
121
- }, [C]), Oe = v(() => {
119
+ }, []), Q = _(() => {
120
+ V(void 0), S?.();
121
+ }, [S]), Oe = _(() => {
122
122
  J.finish(), Q();
123
- }, [J.finish, Q]), ke = b(() => W.isForbidden ? {
124
- ...w,
123
+ }, [J.finish, Q]), ke = y(() => W.isForbidden ? {
124
+ ...C,
125
125
  credentials: {
126
- ...w?.credentials,
126
+ ...C?.credentials,
127
127
  errorDescription: N.revealNotPermittedDescription
128
128
  }
129
- } : w, [
129
+ } : C, [
130
130
  W.isForbidden,
131
- w,
131
+ C,
132
132
  N.revealNotPermittedDescription
133
- ]), $ = b(() => {
133
+ ]), $ = y(() => {
134
134
  if (G === "revealed" && W.data) return {
135
- cardNumber: h(W.data.pan),
136
- expirationDate: ee(W.data.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 = v(() => {
140
- if (A || z) {
141
- j();
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
- j,
149
- A
148
+ A,
149
+ k
150
150
  ]);
151
- return /* @__PURE__ */ ge(he, { children: [/* @__PURE__ */ S(r, {}), J.isOpen ? /* @__PURE__ */ S(_, {
152
- testIds: oe,
153
- labels: _e,
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: C ? Oe : void 0,
162
- cardArtSrc: E,
163
- bankLogoSrc: D,
164
- bankLogoAlt: O,
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__ */ S(de, {
169
- testIds: se,
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: C ? Q : void 0,
177
- cardArtSrc: E,
178
- bankLogoSrc: D,
179
- bankLogoAlt: O,
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 === g.Supported ? Ae : void 0
206
+ onRetry: P === h.Supported ? Ae : void 0
207
207
  })] });
208
208
  }
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, {
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
- implementation: s,
219
- uiFramework: c,
220
- errorFallback: l,
221
- onError: u,
222
- analytics: d,
223
- disclosuresAcceptance: f,
224
- providerLabels: m,
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 { w as CardDetailsWidget, w as default };
228
+ export { C as CardDetailsWidget, C as default };
@@ -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, k] = g(null), [Ve, 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), k(null), He(Te), We(null), Ke(null), j(!1), N(""), F(null), L(!1), z(""), V(!1), U([]), T(l.Setup);
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(Ve)), bt = m(() => {
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: Ve
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), k(null);
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: k,
344
+ onMailingOptionSelect: Ve,
345
345
  businessAddress: at,
346
346
  isBusinessAddressVisible: ct,
347
347
  isManualAddressVisible: lt,
348
- manualAddress: Ve,
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, implementation: o, uiFramework: ee, errorFallback: te, onError: ne, analytics: re, disclosuresAcceptance: c, providerLabels: l, ...u }) {
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
- implementation: o,
380
- uiFramework: ee,
381
- errorFallback: te,
382
- onError: ne,
383
- analytics: re,
384
- disclosuresAcceptance: c,
385
- providerLabels: l,
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
@@ -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, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: h, ..._ }) {
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
- implementation: c,
86
- uiFramework: l,
87
- errorFallback: u,
88
- onError: d,
89
- analytics: f,
90
- disclosuresAcceptance: p,
91
- providerLabels: h,
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, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: m, providerLabels: g, passThrough: _, ...v }) {
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: _ === !0 && e === void 0 && t === void 0 ? void 0 : o,
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
- implementation: c,
130
- uiFramework: l,
131
- errorFallback: u,
132
- onError: d,
133
- analytics: f,
134
- disclosuresAcceptance: m,
135
- providerLabels: g,
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