@tesouro/embedded-components-react 0.7.53 → 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 (76) hide show
  1. package/README.md +13 -3
  2. package/dist/experimental/RemoteCheckCapture.d.ts +1 -32
  3. package/dist/experimental/index.d.ts +1 -32
  4. package/dist/index.css +12 -0
  5. package/dist/index.d.ts +58 -47
  6. package/dist/index.js +47 -46
  7. package/dist/lib/AcceptDisclosuresWidget.d.ts +1 -32
  8. package/dist/lib/BalancesWidget.d.ts +0 -31
  9. package/dist/lib/BankAccountOnboardingWidget.d.ts +1 -32
  10. package/dist/lib/BankAccountsWidget.d.ts +1 -32
  11. package/dist/lib/BankingComplianceBannerWidget.d.ts +643 -0
  12. package/dist/lib/BankingComplianceBannerWidget.js +5 -0
  13. package/dist/lib/BillPayWidget.d.ts +0 -31
  14. package/dist/lib/CardDetailsWidget.d.ts +1 -32
  15. package/dist/lib/CounterpartsWidget.d.ts +0 -31
  16. package/dist/lib/CounterpartsWidgetPublic.d.ts +0 -31
  17. package/dist/lib/CreditCardsWidget.d.ts +0 -31
  18. package/dist/lib/CustomersWidget.d.ts +1 -33
  19. package/dist/lib/DebitCardsWidget.d.ts +0 -31
  20. package/dist/lib/ExpenseManagementWidget.d.ts +0 -31
  21. package/dist/lib/InsightsWidget.d.ts +0 -31
  22. package/dist/lib/LinkedAccountsWidget.d.ts +1 -32
  23. package/dist/lib/OfferWidget.d.ts +1 -32
  24. package/dist/lib/ProductsWidget.d.ts +1 -32
  25. package/dist/lib/ReceivablesWidget.d.ts +1 -32
  26. package/dist/lib/SettingsWidget.d.ts +0 -31
  27. package/dist/lib/TransfersWidget.d.ts +0 -31
  28. package/dist/lib/WidgetProvider.d.ts +2 -33
  29. package/dist/lib/WidgetProvider.js +9 -10
  30. package/dist/lib/WidgetProviderPublic.d.ts +0 -31
  31. package/dist/lib/WidgetSuite.d.ts +1 -32
  32. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +8 -9
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +395 -396
  34. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +8 -9
  35. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/data-access/dist/index.js +3 -0
  36. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/data-access/dist/index2.js +7 -0
  37. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/data-access/dist/index3.js +42 -0
  38. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/index.js +4 -0
  39. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/BankingComplianceBannerWidget.js +52 -0
  40. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/BankingComplianceBannerWidget/isFdicBacked.js +8 -0
  41. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/analytics/events.js +4 -0
  42. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/feature/dist/lib/testIds.js +10 -0
  43. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index.js +3 -0
  44. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index2.js +40 -0
  45. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index3.js +10 -0
  46. package/dist/libs/tesouro-embedded-components-react/banking-compliance-banner-widget/ui/dist/index4.js +60 -0
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +16 -18
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js +8 -9
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +8 -9
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +8 -9
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +8 -9
  52. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +83 -84
  53. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +15 -16
  54. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/lib/CardsWidget.js +8 -9
  55. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +9 -10
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +25 -26
  57. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +8 -9
  58. package/dist/libs/tesouro-embedded-components-react/offer-widget/feature/dist/lib/OfferWidget/OfferWidget.js +8 -9
  59. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js +8 -9
  60. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/RemoteCheckCaptureWidget.js +9 -10
  61. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index8.js +8 -9
  62. package/dist/libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index3.js +8 -9
  63. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +9 -10
  64. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +8 -9
  65. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +8 -9
  66. package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js +8 -9
  67. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +16 -17
  68. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +45 -49
  69. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +91 -95
  70. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +0 -1
  71. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/index.js +0 -1
  72. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +2 -1
  73. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  74. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js +120 -121
  75. package/package.json +1 -1
  76. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/types.js +0 -8
@@ -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
@@ -25,13 +25,13 @@ import { ReceivableFormDialog as _ } from "../../../../ui/dist/index43.js";
25
25
  import { ReceivablePaymentDialog as v } from "../../../../ui/dist/index44.js";
26
26
  import { ReceivablePreview as y } from "../../../../ui/dist/index48.js";
27
27
  import { ReceivableRecurrenceEmailDialog as b } from "../../../../ui/dist/index50.js";
28
- import { ReceivableRecurrenceSection as x } from "../../../../ui/dist/index52.js";
29
- import { ReceivableRemindersSection as ee } from "../../../../ui/dist/index54.js";
30
- import { ReceivablesScreen as te } from "../../../../ui/dist/index56.js";
31
- import { UnsavedInvoiceDialog as ne } from "../../../../ui/dist/index57.js";
28
+ import { ReceivableRecurrenceSection as ee } from "../../../../ui/dist/index52.js";
29
+ import { ReceivableRemindersSection as te } from "../../../../ui/dist/index54.js";
30
+ import { ReceivablesScreen as ne } from "../../../../ui/dist/index56.js";
31
+ import { UnsavedInvoiceDialog as re } from "../../../../ui/dist/index57.js";
32
32
  import "../../../../ui/dist/index.js";
33
- import { ReceivableAttachmentsSection as re } from "./ReceivableAttachmentsSection.js";
34
- import { ReceivableCustomerSection as ie } from "./ReceivableCustomerSection.js";
33
+ import { ReceivableAttachmentsSection as ie } from "./ReceivableAttachmentsSection.js";
34
+ import { ReceivableCustomerSection as x } from "./ReceivableCustomerSection.js";
35
35
  import { MeasureUnitsManagerContainer as S } from "../../../../../shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js";
36
36
  import { ProductSelector as C } from "../../../../../shared/product-catalog/feature/dist/lib/ProductSelector.js";
37
37
  import "../../../../../shared/product-catalog/feature/dist/index.js";
@@ -39,7 +39,7 @@ import { useReceivablesWidget as w } from "./useReceivablesWidget.js";
39
39
  import { useEffect as T, useId as E } from "react";
40
40
  import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
41
41
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js
42
- function A({ auditHistoryLabels: i, bankAttribution: l, counterpartFormLabels: A, counterpartMessageLabels: j, detailsLabels: M, embeddedBankName: N, filterBarLabels: P, filterLabels: F, formLabels: I, headerStart: L, initialCounterpartId: ae, initialView: R, measureUnitDeleteLabels: z, measureUnitsLabels: B, messageLabels: V, onReceivableCreated: H, onReceivableOpened: U, onTemplateSettingsClick: W, pageSizeOptions: G = u, paymentLabels: K, previewLabels: q, productMessageLabels: J, screenLabels: Y, actionLabels: oe, actionsModalLabels: se }) {
42
+ function A({ auditHistoryLabels: i, bankAttribution: l, counterpartFormLabels: A, counterpartMessageLabels: j, detailsLabels: M, embeddedBankName: N, filterBarLabels: P, filterLabels: F, formLabels: I, headerStart: L, initialCounterpartId: R, initialView: z, measureUnitDeleteLabels: B, measureUnitsLabels: ae, messageLabels: V, onReceivableCreated: H, onReceivableOpened: U, onTemplateSettingsClick: W, pageSizeOptions: G = u, paymentLabels: K, previewLabels: q, productMessageLabels: J, screenLabels: Y, actionLabels: oe, actionsModalLabels: se }) {
43
43
  let X = r();
44
44
  T(() => {
45
45
  X(c.Mounted);
@@ -49,8 +49,8 @@ function A({ auditHistoryLabels: i, bankAttribution: l, counterpartFormLabels: A
49
49
  counterpartMessageLabels: j,
50
50
  embeddedBankName: N,
51
51
  filterLabels: F,
52
- initialCounterpartId: ae,
53
- initialView: R,
52
+ initialCounterpartId: R,
53
+ initialView: z,
54
54
  messageLabels: V,
55
55
  onReceivableCreated: H,
56
56
  onReceivableOpened: U,
@@ -59,7 +59,7 @@ function A({ auditHistoryLabels: i, bankAttribution: l, counterpartFormLabels: A
59
59
  }), Q = E(), ce = E(), $ = E(), le = E(), ue = E(), de = E();
60
60
  return /* @__PURE__ */ k(D, { children: [
61
61
  /* @__PURE__ */ O(n, { position: "bottom-left" }),
62
- /* @__PURE__ */ O(te, {
62
+ /* @__PURE__ */ O(ne, {
63
63
  rows: Z.table.rows,
64
64
  isLoading: Z.isTableLoading,
65
65
  isError: Z.isError,
@@ -100,7 +100,7 @@ function A({ auditHistoryLabels: i, bankAttribution: l, counterpartFormLabels: A
100
100
  autoFocusLineItemId: Z.form.autoFocusLineItemId,
101
101
  lineItemsLoading: Z.form.lineItemsLoading,
102
102
  inProgress: Z.form.fieldsDisabled || Z.actionsSuspended,
103
- customerSection: /* @__PURE__ */ O(ie, {
103
+ customerSection: /* @__PURE__ */ O(x, {
104
104
  idPrefix: ce,
105
105
  customerId: Z.form.values.customerId,
106
106
  customer: Z.form.customer,
@@ -160,7 +160,7 @@ function A({ auditHistoryLabels: i, bankAttribution: l, counterpartFormLabels: A
160
160
  ...Z.form.paymentTerms.calendar,
161
161
  onSelect: Z.form.paymentTerms.selectCustomDate
162
162
  }),
163
- recurrenceSection: Z.form.showRecurrenceSection && (Z.form.recurrenceLoading ? /* @__PURE__ */ O(t, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ O(x, {
163
+ recurrenceSection: Z.form.showRecurrenceSection && (Z.form.recurrenceLoading ? /* @__PURE__ */ O(t, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ O(ee, {
164
164
  idPrefix: $,
165
165
  view: Z.form.recurrence.view,
166
166
  disabled: Z.form.fieldsDisabled,
@@ -183,7 +183,7 @@ function A({ auditHistoryLabels: i, bankAttribution: l, counterpartFormLabels: A
183
183
  }),
184
184
  labels: I
185
185
  })),
186
- remindersSection: Z.form.reminders.view && /* @__PURE__ */ O(ee, {
186
+ remindersSection: Z.form.reminders.view && /* @__PURE__ */ O(te, {
187
187
  idPrefix: ue,
188
188
  view: Z.form.reminders.view,
189
189
  onToggle: Z.form.reminders.toggle,
@@ -211,7 +211,7 @@ function A({ auditHistoryLabels: i, bankAttribution: l, counterpartFormLabels: A
211
211
  onFormCancel: Z.form.bankAccount.cancelAddAccount,
212
212
  labels: I
213
213
  }),
214
- attachmentsSection: Z.form.attachmentsView && /* @__PURE__ */ O(re, {
214
+ attachmentsSection: Z.form.attachmentsView && /* @__PURE__ */ O(ie, {
215
215
  view: Z.form.attachmentsView,
216
216
  disabled: Z.form.fieldsDisabled,
217
217
  onFilesSelect: Z.form.selectAttachmentFiles,
@@ -237,7 +237,7 @@ function A({ auditHistoryLabels: i, bankAttribution: l, counterpartFormLabels: A
237
237
  onPrimaryClick: Z.form.selectPrimaryMode,
238
238
  labels: I
239
239
  }),
240
- /* @__PURE__ */ O(ne, {
240
+ /* @__PURE__ */ O(re, {
241
241
  ...Z.form.unsavedPrompt,
242
242
  labels: I
243
243
  }),
@@ -346,13 +346,13 @@ function A({ auditHistoryLabels: i, bankAttribution: l, counterpartFormLabels: A
346
346
  open: Z.measureUnitsOpen,
347
347
  onClose: Z.closeMeasureUnits,
348
348
  suspended: Z.actionsSuspended,
349
- managerLabels: B,
350
- deleteLabels: z,
349
+ managerLabels: ae,
350
+ deleteLabels: B,
351
351
  messageLabels: J
352
352
  })
353
353
  ] });
354
354
  }
355
- function j({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
355
+ function j({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, uiFramework: s, errorFallback: c, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: p, ...m }) {
356
356
  return /* @__PURE__ */ O(i, {
357
357
  widgetName: l,
358
358
  baseUrl: e,
@@ -361,14 +361,13 @@ function j({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
361
361
  configClient: r,
362
362
  gatewayRouting: a,
363
363
  linkComponent: o,
364
- implementation: s,
365
- uiFramework: c,
366
- errorFallback: u,
367
- onError: d,
368
- analytics: f,
369
- disclosuresAcceptance: p,
370
- providerLabels: m,
371
- children: /* @__PURE__ */ O(A, { ...h })
364
+ uiFramework: s,
365
+ errorFallback: c,
366
+ onError: u,
367
+ analytics: d,
368
+ disclosuresAcceptance: f,
369
+ providerLabels: p,
370
+ children: /* @__PURE__ */ O(A, { ...m })
372
371
  });
373
372
  }
374
373
  //#endregion
@@ -22,7 +22,7 @@ function c({ labels: t, featureLabels: n }) {
22
22
  ...c
23
23
  })] });
24
24
  }
25
- function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: s, linkComponent: l, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
25
+ function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: s, linkComponent: l, uiFramework: u, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
26
26
  return /* @__PURE__ */ o(t, {
27
27
  widgetName: n,
28
28
  baseUrl: e,
@@ -31,14 +31,13 @@ function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gat
31
31
  configClient: a,
32
32
  gatewayRouting: s,
33
33
  linkComponent: l,
34
- implementation: u,
35
- uiFramework: d,
36
- errorFallback: f,
37
- onError: p,
38
- analytics: m,
39
- disclosuresAcceptance: h,
40
- providerLabels: g,
41
- children: /* @__PURE__ */ o(c, { ..._ })
34
+ uiFramework: u,
35
+ errorFallback: d,
36
+ onError: f,
37
+ analytics: p,
38
+ disclosuresAcceptance: m,
39
+ providerLabels: h,
40
+ children: /* @__PURE__ */ o(c, { ...g })
42
41
  });
43
42
  }
44
43
  //#endregion
@@ -137,7 +137,7 @@ function A({ content: n, onPrimaryCtaClick: s, labels: l, statusLabels: p }) {
137
137
  }
138
138
  });
139
139
  }
140
- function j({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
140
+ function j({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: o, uiFramework: s, errorFallback: c, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: p, ...m }) {
141
141
  return /* @__PURE__ */ S(n, {
142
142
  widgetName: l,
143
143
  baseUrl: e,
@@ -146,14 +146,13 @@ function j({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
146
146
  configClient: i,
147
147
  gatewayRouting: a,
148
148
  linkComponent: o,
149
- implementation: s,
150
- uiFramework: c,
151
- errorFallback: u,
152
- onError: d,
153
- analytics: f,
154
- disclosuresAcceptance: p,
155
- providerLabels: m,
156
- children: /* @__PURE__ */ S(A, { ...h })
149
+ uiFramework: s,
150
+ errorFallback: c,
151
+ onError: u,
152
+ analytics: d,
153
+ disclosuresAcceptance: f,
154
+ providerLabels: p,
155
+ children: /* @__PURE__ */ S(A, { ...m })
157
156
  });
158
157
  }
159
158
  //#endregion
@@ -113,7 +113,7 @@ function g({ pageSizeOptions: t = o, screenLabels: a, formLabels: g, detailsLabe
113
113
  })
114
114
  ] });
115
115
  }
116
- function _({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: h, ..._ }) {
116
+ function _({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: p, ...h }) {
117
117
  return /* @__PURE__ */ m(t, {
118
118
  widgetName: a,
119
119
  baseUrl: e,
@@ -122,14 +122,13 @@ function _({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
122
122
  configClient: i,
123
123
  gatewayRouting: o,
124
124
  linkComponent: s,
125
- implementation: c,
126
- uiFramework: l,
127
- errorFallback: u,
128
- onError: d,
129
- analytics: f,
130
- disclosuresAcceptance: p,
131
- providerLabels: h,
132
- children: /* @__PURE__ */ m(g, { ..._ })
125
+ uiFramework: c,
126
+ errorFallback: l,
127
+ onError: u,
128
+ analytics: d,
129
+ disclosuresAcceptance: f,
130
+ providerLabels: p,
131
+ children: /* @__PURE__ */ m(g, { ...h })
133
132
  });
134
133
  }
135
134
  //#endregion