@tesouro/embedded-components-react 0.5.226 → 0.5.227

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
  2. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
  3. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
  5. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
  7. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
  8. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
  22. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
  23. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
  24. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
  25. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
  26. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
  27. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
  28. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
  30. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
  31. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
  32. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
  33. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
  35. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
  36. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
  37. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
  38. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
  39. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
  40. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
  41. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
  42. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
  43. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
  44. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
  45. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
  46. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +12 -12
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
  51. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
  52. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
  53. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
  54. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
  55. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
  56. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
  57. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
  58. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
  59. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
  60. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
  61. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
  62. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
  63. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
  64. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
  65. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
  66. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
  67. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
  68. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
  69. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
  70. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
  71. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
  72. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +39 -38
  73. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
  74. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
  75. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
  76. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
  77. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
  78. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
  79. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
  80. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
  81. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
  82. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
  83. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
  84. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
  85. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
  86. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
  87. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
  88. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
  89. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
  90. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
  91. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
  92. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
  93. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
  94. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
  95. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
  96. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
  97. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  98. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
  99. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
  100. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
  101. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
  102. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
  103. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
  104. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
  105. package/package.json +1 -1
@@ -3,222 +3,226 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { EmbeddedToaster as t } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
6
+ import { OrganizationStatus as t } from "../../../shared/data-access/dist/lib/organizationStatus.js";
7
+ import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import "../../../shared/data-access/dist/index.js";
9
+ import { EmbeddedToaster as r } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
7
10
  import "../../../shared/ui/dist/index.js";
8
- import { useAnalyticsTrack as n } from "../../../shared/feature/dist/lib/analytics/hooks.js";
9
- import { WidgetProvider as r } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
10
- import { useRefetchWidget as i, useWidgetConfig as a, useWidgetError as o, useWidgetInitStaleForToken as s } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
11
- import { CardProgram as c } from "../../../shared/feature/dist/lib/card/cardProgram.js";
11
+ import { useAnalyticsTrack as i } from "../../../shared/feature/dist/lib/analytics/hooks.js";
12
+ import { WidgetProvider as a } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
13
+ import { useRefetchWidget as o, useWidgetConfig as s, useWidgetError as c, useWidgetInitStaleForToken as l } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
14
+ import { CardProgram as u } from "../../../shared/feature/dist/lib/card/cardProgram.js";
12
15
  import "../../../shared/feature/dist/index.js";
13
- import { resolveCardDetailsFeatureLabels as l } from "./index5.js";
14
- import { CardDetailsWidgetAnalyticsEvent as u, WIDGET_NAME as d } from "./index2.js";
15
- import { copyTextToClipboard as f, formatCardNumber as p, formatExpirationDate as m } from "./index3.js";
16
- import { CardProgramValidity as h, resolveCanRevealCredentials as ee, resolveCardDetailsPanelState as te, resolveCardDetailsPresentation as g, resolveCardDetailsRevealState as ne, resolveCardProgramValidity as re } from "./index4.js";
17
- import { activateCardPanelTestIds as ie, cardDetailsPanelTestIds as ae } from "./index6.js";
18
- import { useCreditCardDetailsQuery as oe } from "../../data-access/dist/index6.js";
19
- import { useDebitCardCredentialsQuery as se } from "../../data-access/dist/index7.js";
20
- import { useDebitCardDetailsQuery as ce } from "../../data-access/dist/index8.js";
16
+ import { resolveCardDetailsFeatureLabels as d } from "./index5.js";
17
+ import { CardDetailsWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index2.js";
18
+ import { copyTextToClipboard as m, formatCardNumber as h, formatExpirationDate as ee } from "./index3.js";
19
+ import { CardProgramValidity as g, resolveCanRevealCredentials as te, resolveCardDetailsPanelState as ne, resolveCardDetailsPresentation as re, resolveCardDetailsRevealState as ie, resolveCardProgramValidity as ae } from "./index4.js";
20
+ import { activateCardPanelTestIds as oe, cardDetailsPanelTestIds as se } from "./index6.js";
21
+ import { useCreditCardDetailsQuery as ce } from "../../data-access/dist/index6.js";
22
+ import { useDebitCardCredentialsQuery as le } from "../../data-access/dist/index7.js";
23
+ import { useDebitCardDetailsQuery as ue } from "../../data-access/dist/index8.js";
21
24
  import "../../data-access/dist/index.js";
22
- import { CardDetailsPanel as le } from "../../ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js";
23
- import { ActivateCardPanel as ue } from "../../ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js";
25
+ import { CardDetailsPanel as de } from "../../ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js";
26
+ import { ActivateCardPanel as _ } from "../../ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js";
24
27
  import "../../ui/dist/index.js";
25
- import { useActivateCard as de } from "./index9.js";
26
- import { useCardLock as fe } from "./index11.js";
27
- import { useEditCardNickname as pe } from "./index12.js";
28
- import { useCallback as _, useEffect as v, useMemo as y, useState as b } from "react";
29
- import { Fragment as me, jsx as x, jsxs as S } from "react/jsx-runtime";
28
+ import { useActivateCard as fe } from "./index9.js";
29
+ import { useCardLock as pe } from "./index11.js";
30
+ import { useEditCardNickname as me } from "./index12.js";
31
+ import { useCallback as v, useEffect as y, useMemo as b, useState as x } from "react";
32
+ import { Fragment as he, jsx as S, jsxs as ge } from "react/jsx-runtime";
30
33
  //#region ../../libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js
31
- function C({ cardId: r, cardProgram: d, onClose: C, labels: w, activateLabels: he, featureLabels: T, cardArtSrc: E, bankLogoSrc: D, bankLogoAlt: O }) {
32
- let k = n(), A = o(), j = i(), { initResponse: M } = a(), ge = s();
33
- v(() => {
34
- k(u.Mounted);
34
+ function C({ cardId: a, cardProgram: p, onClose: C, labels: w, activateLabels: _e, featureLabels: T, cardArtSrc: E, bankLogoSrc: D, bankLogoAlt: O }) {
35
+ let k = i(), A = c(), j = o(), { initResponse: M } = s(), { organizationStatus: ve } = n(), ye = l();
36
+ y(() => {
37
+ k(f.Mounted);
35
38
  }, [k]);
36
- let N = y(() => l(T), [T]), P = re(d), F = d === c.Credit, I = d === c.Debit, _e = oe({
37
- cardId: r,
39
+ let N = b(() => d(T), [T]), P = ae(p), F = p === u.Credit, be = p === u.Debit, xe = ce({
40
+ cardId: a,
38
41
  enabled: F
39
- }), ve = ce({
40
- cardId: r,
41
- enabled: I
42
- }), { data: L, isError: ye, isNotFound: be, refetch: R } = F ? _e : ve, z = te({
42
+ }), I = ue({
43
+ cardId: a,
44
+ enabled: be
45
+ }), { data: L, isError: Se, isNotFound: Ce, refetch: R } = F ? xe : I, z = ve === t.None, B = ne({
43
46
  programValidity: P,
44
- isNotFound: be,
45
- isError: !!A || ye,
47
+ isNotFound: Ce,
48
+ isError: !!A || Se || z,
46
49
  hasCard: !!L
47
50
  });
48
- v(() => {
49
- if (P === h.Supported) return;
50
- let e = `"${c.Credit}" or "${c.Debit}"`;
51
- 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(d)}. No card was fetched.`);
52
- }, [d, P]);
53
- let [xe, B] = b(), V = xe === r;
54
- v(() => {
55
- B(void 0);
56
- }, [r]);
57
- let H = ee({
58
- panelState: z,
59
- cardProgram: d,
51
+ y(() => {
52
+ if (P === g.Supported) return;
53
+ let e = `"${u.Credit}" or "${u.Debit}"`;
54
+ console.error(P === g.Missing ? `[CardDetailsWidget] cardProgram is required and was not set. Pass ${e} — it selects which card program to read, so there is no default. No card was fetched.` : `[CardDetailsWidget] cardProgram must be ${e}, received ${JSON.stringify(p)}. No card was fetched.`);
55
+ }, [p, P]);
56
+ let [we, V] = x(), H = we === a;
57
+ y(() => {
58
+ V(void 0);
59
+ }, [a]);
60
+ let U = te({
61
+ panelState: B,
62
+ cardProgram: p,
60
63
  cardStatus: L?.cardStatus
61
64
  });
62
- v(() => {
63
- V && !H && B(void 0);
64
- }, [V, H]);
65
- let U = se({
66
- cardId: r,
67
- enabled: H && V
68
- }), W = ne({
69
- isRevealRequested: V,
70
- isError: U.isError,
71
- hasCredentials: !!U.data
72
- }), G = y(() => z === "loaded" && L ? g({
65
+ y(() => {
66
+ H && !U && V(void 0);
67
+ }, [H, U]);
68
+ let W = le({
69
+ cardId: a,
70
+ enabled: U && H
71
+ }), G = ie({
72
+ isRevealRequested: H,
73
+ isError: W.isError,
74
+ hasCredentials: !!W.data
75
+ }), K = b(() => B === "loaded" && L ? re({
73
76
  card: L,
74
- cardProgram: d,
77
+ cardProgram: p,
75
78
  labels: N
76
79
  }) : void 0, [
77
80
  L,
78
- d,
81
+ p,
79
82
  N,
80
- z
81
- ]), Se = _(async (t) => {
82
- await f(t) && (e.success(N.copySuccessToast), k(u.ValueCopied));
83
- }, [N.copySuccessToast, k]), K = z === "loaded" ? L : void 0, q = de({
84
- cardId: r,
85
- cardProgram: d,
86
- card: K,
83
+ B
84
+ ]), Te = v(async (t) => {
85
+ await m(t) && (e.success(N.copySuccessToast), k(f.ValueCopied));
86
+ }, [N.copySuccessToast, k]), q = B === "loaded" ? L : void 0, J = fe({
87
+ cardId: a,
88
+ cardProgram: p,
89
+ card: q,
87
90
  scopes: M?.scopes,
88
- currentUserId: ge ? void 0 : M?.userId ?? void 0,
91
+ currentUserId: ye ? void 0 : M?.userId ?? void 0,
89
92
  conflictToast: N.activationConflictToast
90
- }), J = fe({
91
- cardId: r,
92
- cardProgram: d,
93
- card: K,
93
+ }), Y = pe({
94
+ cardId: a,
95
+ cardProgram: p,
96
+ card: q,
94
97
  scopes: M?.scopes,
95
98
  conflictToast: N.lockConflictToast
96
- }), Y = pe({
97
- cardId: r,
98
- cardProgram: d,
99
- card: K,
100
- nickname: G?.nickname,
99
+ }), X = me({
100
+ cardId: a,
101
+ cardProgram: p,
102
+ card: q,
103
+ nickname: K?.nickname,
101
104
  scopes: M?.scopes,
102
105
  conflictToast: N.nicknameConflictToast,
103
106
  successToast: N.nicknameUpdatedToast
104
- }), { refetch: X } = U, Ce = _(() => {
105
- if (V) {
106
- X();
107
+ }), { refetch: Z } = W, Ee = v(() => {
108
+ if (H) {
109
+ Z();
107
110
  return;
108
111
  }
109
- B(r);
112
+ V(a);
110
113
  }, [
111
- r,
112
- V,
113
- X
114
- ]), Z = _(() => {
115
- B(void 0);
116
- }, []), Q = _(() => {
117
- B(void 0), C?.();
118
- }, [C]), we = _(() => {
119
- q.finish(), Q();
120
- }, [q.finish, Q]), Te = y(() => U.isForbidden ? {
114
+ a,
115
+ H,
116
+ Z
117
+ ]), De = v(() => {
118
+ V(void 0);
119
+ }, []), Q = v(() => {
120
+ V(void 0), C?.();
121
+ }, [C]), Oe = v(() => {
122
+ J.finish(), Q();
123
+ }, [J.finish, Q]), ke = b(() => W.isForbidden ? {
121
124
  ...w,
122
125
  credentials: {
123
126
  ...w?.credentials,
124
127
  errorDescription: N.revealNotPermittedDescription
125
128
  }
126
129
  } : w, [
127
- U.isForbidden,
130
+ W.isForbidden,
128
131
  w,
129
132
  N.revealNotPermittedDescription
130
- ]), $ = y(() => {
131
- if (W === "revealed" && U.data) return {
132
- cardNumber: p(U.data.pan),
133
- expirationDate: m(U.data.expirationDate),
134
- securityCode: U.data.cvv
133
+ ]), $ = b(() => {
134
+ if (G === "revealed" && W.data) return {
135
+ cardNumber: h(W.data.pan),
136
+ expirationDate: ee(W.data.expirationDate),
137
+ securityCode: W.data.cvv
135
138
  };
136
- }, [U.data, W]), Ee = _(() => {
137
- if (A) {
139
+ }, [W.data, G]), Ae = v(() => {
140
+ if (A || z) {
138
141
  j();
139
142
  return;
140
143
  }
141
144
  R();
142
145
  }, [
146
+ z,
143
147
  R,
144
148
  j,
145
149
  A
146
150
  ]);
147
- return /* @__PURE__ */ S(me, { children: [/* @__PURE__ */ x(t, {}), q.isOpen ? /* @__PURE__ */ x(ue, {
148
- testIds: ie,
149
- labels: he,
150
- state: q.state,
151
- values: q.values,
152
- errors: q.errors,
153
- isSubmitDisabled: q.isSubmitDisabled,
154
- onValuesChange: q.onValuesChange,
155
- onSubmit: q.onSubmit,
156
- onClose: q.close,
157
- onDone: C ? we : void 0,
151
+ return /* @__PURE__ */ ge(he, { children: [/* @__PURE__ */ S(r, {}), J.isOpen ? /* @__PURE__ */ S(_, {
152
+ testIds: oe,
153
+ labels: _e,
154
+ state: J.state,
155
+ values: J.values,
156
+ errors: J.errors,
157
+ isSubmitDisabled: J.isSubmitDisabled,
158
+ onValuesChange: J.onValuesChange,
159
+ onSubmit: J.onSubmit,
160
+ onClose: J.close,
161
+ onDone: C ? Oe : void 0,
158
162
  cardArtSrc: E,
159
163
  bankLogoSrc: D,
160
164
  bankLogoAlt: O,
161
- cardholderName: G?.cardholderName,
162
- maskedCardNumber: G?.maskedCardNumber,
163
- programLabel: G?.programLabel
164
- }) : /* @__PURE__ */ x(le, {
165
- testIds: ae,
166
- labels: Te,
167
- state: z,
168
- nickname: G?.nickname,
169
- statusLabel: G?.statusLabel,
170
- statusTone: G?.statusTone,
171
- formFactorLabel: G?.formFactorLabel,
165
+ cardholderName: K?.cardholderName,
166
+ maskedCardNumber: K?.maskedCardNumber,
167
+ programLabel: K?.programLabel
168
+ }) : /* @__PURE__ */ S(de, {
169
+ testIds: se,
170
+ labels: ke,
171
+ state: B,
172
+ nickname: K?.nickname,
173
+ statusLabel: K?.statusLabel,
174
+ statusTone: K?.statusTone,
175
+ formFactorLabel: K?.formFactorLabel,
172
176
  onClose: C ? Q : void 0,
173
177
  cardArtSrc: E,
174
178
  bankLogoSrc: D,
175
179
  bankLogoAlt: O,
176
- cardholderName: G?.cardholderName,
177
- maskedCardNumber: G?.maskedCardNumber,
178
- programLabel: G?.programLabel,
179
- billingAddress: G?.billingAddress,
180
- allowedCategories: G?.allowedCategories,
181
- spendLimitLabels: G?.spendLimitLabels,
182
- perTransactionMaxLabel: G?.perTransactionMaxLabel,
183
- onCopy: Se,
184
- onEditNickname: Y.onEditNickname,
185
- nicknameEditState: Y.editState,
186
- nicknameDraft: Y.draft,
187
- onNicknameDraftChange: Y.onDraftChange,
188
- onSaveNickname: Y.onSave,
189
- onCancelNicknameEdit: Y.onCancel,
190
- isNicknameSaveDisabled: Y.isSaveDisabled,
191
- onActivate: q.canActivate ? q.open : void 0,
192
- onViewCard: H ? Ce : void 0,
193
- onHideCard: H ? Z : void 0,
194
- revealState: W,
180
+ cardholderName: K?.cardholderName,
181
+ maskedCardNumber: K?.maskedCardNumber,
182
+ programLabel: K?.programLabel,
183
+ billingAddress: K?.billingAddress,
184
+ allowedCategories: K?.allowedCategories,
185
+ spendLimitLabels: K?.spendLimitLabels,
186
+ perTransactionMaxLabel: K?.perTransactionMaxLabel,
187
+ onCopy: Te,
188
+ onEditNickname: X.onEditNickname,
189
+ nicknameEditState: X.editState,
190
+ nicknameDraft: X.draft,
191
+ onNicknameDraftChange: X.onDraftChange,
192
+ onSaveNickname: X.onSave,
193
+ onCancelNicknameEdit: X.onCancel,
194
+ isNicknameSaveDisabled: X.isSaveDisabled,
195
+ onActivate: J.canActivate ? J.open : void 0,
196
+ onViewCard: U ? Ee : void 0,
197
+ onHideCard: U ? De : void 0,
198
+ revealState: G,
195
199
  revealedCardNumber: $?.cardNumber,
196
200
  revealedExpirationDate: $?.expirationDate,
197
201
  revealedSecurityCode: $?.securityCode,
198
- isLocked: J.isLocked,
199
- lockState: J.lockState,
200
- onLockCard: J.onLockCard,
201
- onUnlockCard: J.onUnlockCard,
202
- onRetry: P === h.Supported ? Ee : void 0
202
+ isLocked: Y.isLocked,
203
+ lockState: Y.lockState,
204
+ onLockCard: Y.onLockCard,
205
+ onUnlockCard: Y.onUnlockCard,
206
+ onRetry: P === g.Supported ? Ae : void 0
203
207
  })] });
204
208
  }
205
- function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
206
- return /* @__PURE__ */ x(r, {
207
- widgetName: d,
209
+ function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: m, ...h }) {
210
+ return /* @__PURE__ */ S(a, {
211
+ widgetName: p,
208
212
  baseUrl: e,
209
213
  widgetToken: t,
210
214
  organizationId: n,
211
- configClient: i,
212
- gatewayRouting: a,
215
+ configClient: r,
216
+ gatewayRouting: i,
213
217
  linkComponent: o,
214
218
  implementation: s,
215
219
  uiFramework: c,
216
220
  errorFallback: l,
217
221
  onError: u,
218
- analytics: f,
219
- disclosuresAcceptance: p,
222
+ analytics: d,
223
+ disclosuresAcceptance: f,
220
224
  providerLabels: m,
221
- children: /* @__PURE__ */ x(C, { ...h })
225
+ children: /* @__PURE__ */ S(C, { ...h })
222
226
  });
223
227
  }
224
228
  //#endregion
@@ -9,14 +9,14 @@ import "../../../../shared/data-access/dist/index.js";
9
9
  import { useQuery as r } from "@tanstack/react-query";
10
10
  //#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js
11
11
  function i({ enabled: i } = {}) {
12
- let { client: a, organizationId: o, widgetToken: s, authEpoch: c, organizationPending: l } = n(), u = e({
12
+ let { client: a, organizationId: o, widgetToken: s, authEpoch: c, organizationStatus: l } = n(), u = e({
13
13
  client: a,
14
14
  path: { organizationId: o ?? "" }
15
15
  });
16
16
  return r({
17
17
  ...t(u, {
18
18
  authEpoch: c,
19
- organizationPending: l
19
+ organizationStatus: l
20
20
  }),
21
21
  enabled: !!(o && s) && (i === !0 || i === void 0)
22
22
  });
@@ -10,7 +10,7 @@ import "../../../shared/data-access/dist/index.js";
10
10
  import { useQuery as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js
12
12
  function a({ enabled: a, ...o } = {}) {
13
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationPending: d } = n(), f = e({
13
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
14
14
  query: o,
15
15
  client: s,
16
16
  headers: r(c)
@@ -18,7 +18,7 @@ function a({ enabled: a, ...o } = {}) {
18
18
  return i({
19
19
  ...t(f, {
20
20
  authEpoch: u,
21
- organizationPending: d
21
+ organizationStatus: d
22
22
  }, { carryWithinOrg: !0 }),
23
23
  enabled: !!(c && l) && (a === !0 || a === void 0)
24
24
  });
@@ -10,7 +10,7 @@ import "../../../shared/data-access/dist/index.js";
10
10
  import { useQuery as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js
12
12
  function a({ enabled: a, ...o } = {}) {
13
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationPending: d } = n(), f = e({
13
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
14
14
  query: o,
15
15
  client: s,
16
16
  headers: r(c)
@@ -18,7 +18,7 @@ function a({ enabled: a, ...o } = {}) {
18
18
  return i({
19
19
  ...t(f, {
20
20
  authEpoch: u,
21
- organizationPending: d
21
+ organizationStatus: d
22
22
  }, { carryWithinOrg: !0 }),
23
23
  enabled: !!(c && l) && (a === !0 || a === void 0)
24
24
  });