@tesouro/embedded-components-react 0.3.26 → 0.3.28

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 (63) hide show
  1. package/README.md +3 -0
  2. package/dist/experimental/WidgetSuite.d.ts +32 -3
  3. package/dist/experimental/index.d.ts +32 -3
  4. package/dist/index.d.ts +60 -25
  5. package/dist/lib/AcceptDisclosuresWidget.d.ts +32 -3
  6. package/dist/lib/BalancesWidget.d.ts +31 -2
  7. package/dist/lib/BankAccountOnboardingWidget.d.ts +32 -3
  8. package/dist/lib/BankAccountsWidget.d.ts +32 -3
  9. package/dist/lib/BillPayWidget.d.ts +31 -2
  10. package/dist/lib/CardDetailsWidget.d.ts +32 -3
  11. package/dist/lib/CardsWidget.d.ts +32 -3
  12. package/dist/lib/ChartOfAccountsWidget.d.ts +32 -3
  13. package/dist/lib/CounterpartsWidget.d.ts +32 -3
  14. package/dist/lib/CreateCardWidget.d.ts +32 -3
  15. package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +32 -3
  16. package/dist/lib/ExpenseManagementWidget.d.ts +32 -3
  17. package/dist/lib/ExpenseRequirementsWidget.d.ts +32 -3
  18. package/dist/lib/HelpWidget.d.ts +32 -3
  19. package/dist/lib/InsightsWidget.d.ts +31 -2
  20. package/dist/lib/InvoicingWidget.d.ts +32 -3
  21. package/dist/lib/LinkedAccountsWidget.d.ts +32 -3
  22. package/dist/lib/ProductsWidget.d.ts +32 -3
  23. package/dist/lib/ProfileWidget.d.ts +32 -3
  24. package/dist/lib/ReceiptMatchWidget.d.ts +32 -3
  25. package/dist/lib/ReceivablesWidget.d.ts +32 -3
  26. package/dist/lib/SettingsWidget.d.ts +32 -3
  27. package/dist/lib/TagsWidget.d.ts +32 -3
  28. package/dist/lib/TeamWidget.d.ts +32 -3
  29. package/dist/lib/TransfersWidget.d.ts +31 -2
  30. package/dist/lib/WidgetProvider.d.ts +39 -4
  31. package/dist/lib/WidgetProviderPublic.d.ts +31 -2
  32. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js +3 -2
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +131 -130
  34. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +3 -2
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +4 -3
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -2
  37. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +3 -2
  38. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +3 -2
  39. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +3 -2
  40. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +88 -87
  41. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +7 -6
  42. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +2 -1
  43. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js +3 -2
  44. package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +2 -1
  45. package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +5 -4
  46. package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +3 -2
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +3 -2
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +5 -4
  49. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +3 -2
  50. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +3 -2
  51. package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +3 -2
  52. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +3 -2
  53. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +50 -48
  54. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetErrorBoundary.js +13 -13
  55. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +174 -163
  56. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +12 -1
  57. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/labels.js +7 -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/shared/feature/dist/lib/analytics/events.js +1 -0
  60. package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +3 -2
  61. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +3 -2
  62. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +3 -2
  63. package/package.json +1 -1
@@ -13,32 +13,32 @@ import { WidgetProvider as s } from "../../../shared/feature/dist/lib/WidgetProv
13
13
  import { getStateOptions as c } from "../../../shared/util/dist/lib/usStates.js";
14
14
  import { extractApiErrorMessage as l } from "../../../shared/util/dist/lib/apiErrors.js";
15
15
  import { useRefetchWidget as ee, useWidgetConfig as u } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
16
- import { getNaicsOptions as te } from "../../../shared/feature/dist/lib/naicsCodeMap.js";
16
+ import { getNaicsOptions as d } from "../../../shared/feature/dist/lib/naicsCodeMap.js";
17
17
  import "../../../shared/feature/dist/index.js";
18
- import { bankAccountOnboardingTestIds as d } from "./index9.js";
19
- import { ADDITIONAL_OWNERS_LABELS_EN as ne } from "../../ui/dist/index4.js";
20
- import { interpolateBankName as f } from "../../ui/dist/index6.js";
21
- import { ResultStep as re } from "../../ui/dist/index11.js";
22
- import { MarketingWidget as ie } from "../../ui/dist/index28.js";
18
+ import { bankAccountOnboardingTestIds as f } from "./index9.js";
19
+ import { ADDITIONAL_OWNERS_LABELS_EN as p } from "../../ui/dist/index4.js";
20
+ import { interpolateBankName as m } from "../../ui/dist/index6.js";
21
+ import { ResultStep as te } from "../../ui/dist/index11.js";
22
+ import { MarketingWidget as ne } from "../../ui/dist/index28.js";
23
23
  import "../../ui/dist/index.js";
24
- import { BusinessDetailsStep as ae } from "./index10.js";
25
- import { PersonalDetailsStep as oe } from "./index12.js";
26
- import { AdditionalOwnersStep as se } from "./index14.js";
27
- import { buildCreateApplicationBody as ce, buildUpdateApplicationBody as le } from "./index15.js";
28
- import { OnboardingAnalyticsEvent as p, WIDGET_NAME as m } from "./index16.js";
29
- import { DEFAULT_LABELS as h } from "./index17.js";
30
- import { ApplicationClientSecretProvider as ue, useApplicationClientSecret as de } from "../../data-access/dist/index2.js";
31
- import { useCreateApplication as fe } from "../../data-access/dist/index4.js";
32
- import { useUpdateApplication as pe } from "../../data-access/dist/index6.js";
33
- import { useSubmitApplication as me } from "../../data-access/dist/index7.js";
34
- import { usePollApplicationCompletion as he } from "../../data-access/dist/index8.js";
35
- import { OnboardingSuppressionReason as g } from "../../data-access/dist/index9.js";
36
- import { useOrganizationOnboardingSuppression as ge } from "../../data-access/dist/index10.js";
24
+ import { BusinessDetailsStep as re } from "./index10.js";
25
+ import { PersonalDetailsStep as ie } from "./index12.js";
26
+ import { AdditionalOwnersStep as ae } from "./index14.js";
27
+ import { buildCreateApplicationBody as oe, buildUpdateApplicationBody as se } from "./index15.js";
28
+ import { OnboardingAnalyticsEvent as h, WIDGET_NAME as g } from "./index16.js";
29
+ import { DEFAULT_LABELS as _ } from "./index17.js";
30
+ import { ApplicationClientSecretProvider as ce, useApplicationClientSecret as le } from "../../data-access/dist/index2.js";
31
+ import { useCreateApplication as ue } from "../../data-access/dist/index4.js";
32
+ import { useUpdateApplication as de } from "../../data-access/dist/index6.js";
33
+ import { useSubmitApplication as fe } from "../../data-access/dist/index7.js";
34
+ import { usePollApplicationCompletion as pe } from "../../data-access/dist/index8.js";
35
+ import { OnboardingSuppressionReason as v } from "../../data-access/dist/index9.js";
36
+ import { useOrganizationOnboardingSuppression as me } from "../../data-access/dist/index10.js";
37
37
  import "../../data-access/dist/index.js";
38
- import { useCallback as _, useEffect as v, useMemo as y, useRef as _e, useState as b } from "react";
39
- import { Fragment as ve, jsx as x, jsxs as S } from "react/jsx-runtime";
38
+ import { useCallback as y, useEffect as b, useMemo as x, useRef as he, useState as S } from "react";
39
+ import { Fragment as ge, jsx as C, jsxs as w } from "react/jsx-runtime";
40
40
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js
41
- var ye = {
41
+ var _e = {
42
42
  companyLegalName: "",
43
43
  companyDbaName: "",
44
44
  businessAddress: "",
@@ -52,7 +52,7 @@ var ye = {
52
52
  naicsCode: "",
53
53
  isAuthorized: null,
54
54
  isCheckboxChecked: !1
55
- }, be = {
55
+ }, ve = {
56
56
  firstName: "",
57
57
  lastName: "",
58
58
  dateOfBirth: void 0,
@@ -66,7 +66,7 @@ var ye = {
66
66
  ownsOver25Percent: null,
67
67
  ownershipPercentage: null
68
68
  };
69
- function xe(e, t) {
69
+ function ye(e, t) {
70
70
  if (e === 0) return {
71
71
  title: t.businessReviewTitle,
72
72
  subtitle: t.businessReviewSubtitle
@@ -76,7 +76,7 @@ function xe(e, t) {
76
76
  subtitle: t.personalReviewSubtitle
77
77
  };
78
78
  let n = {
79
- ...ne,
79
+ ...p,
80
80
  ...t.additionalOwners
81
81
  };
82
82
  return {
@@ -84,55 +84,55 @@ function xe(e, t) {
84
84
  subtitle: n.subheading
85
85
  };
86
86
  }
87
- function Se({ onEmbeddedOnboardingCompletedSuccessfully: s, onNavigateToDashboard: ne, labels: m, initialBusinessDetails: ue, initialPersonalDetails: Se, initialAdditionalOwners: C, bankLogoSrc: Ce, disclosureLinks: we, marketingContent: w = null, open: T, defaultOpen: E, onOpenChange: Te }) {
88
- let D = o();
89
- v(() => {
90
- D(p.Mounted);
91
- }, [D]);
92
- let O = {
93
- ...h,
94
- ...m,
87
+ function be({ onEmbeddedOnboardingCompletedSuccessfully: s, onNavigateToDashboard: p, labels: g, initialBusinessDetails: ce, initialPersonalDetails: be, initialAdditionalOwners: T, bankLogoSrc: xe, disclosureLinks: Se, marketingContent: E = null, open: D, defaultOpen: Ce, onOpenChange: we }) {
88
+ let O = o();
89
+ b(() => {
90
+ O(h.Mounted);
91
+ }, [O]);
92
+ let k = {
93
+ ..._,
94
+ ...g,
95
95
  stepIndicator: {
96
- ...h.stepIndicator,
97
- ...m?.stepIndicator
96
+ ..._.stepIndicator,
97
+ ...g?.stepIndicator
98
98
  },
99
- businessDetails: m?.businessDetails ?? {},
100
- personalDetails: m?.personalDetails ?? {},
101
- additionalOwners: m?.additionalOwners ?? {},
99
+ businessDetails: g?.businessDetails ?? {},
100
+ personalDetails: g?.personalDetails ?? {},
101
+ additionalOwners: g?.additionalOwners ?? {},
102
102
  result: {
103
- ...h.result,
104
- ...m?.result
103
+ ..._.result,
104
+ ...g?.result
105
105
  }
106
- }, k = u().initResponse, { termsHref: Ee, privacyHref: De, electronicCommunicationHref: Oe, patriotActHref: ke } = we ?? {}, Ae = w !== null, A = T === void 0, [je, j] = b(!1), [Me, Ne] = b(!0), [Pe, Fe] = b(() => E ?? !1), Ie = Ce ?? w?.bankLogoSrc ?? void 0, M = A ? Pe : T, Le = E ?? !1, N = _((e) => {
107
- A && Fe(e), Te?.(e);
108
- }, [Te, A]), Re = _(() => {
109
- D(p.OpenMarketing), j(!0);
110
- }, [D]), ze = _(() => {
111
- j(!1);
112
- }, []), Be = _(() => {
113
- D(p.BeginOnboarding), j(!1), N(!0);
114
- }, [N, D]), Ve = _(() => {
115
- Ne(!1), s();
116
- }, [s]), He = ee(), [P, F] = b(0), [Ue, We] = b(() => ({
117
- ...ye,
118
- ...ue
119
- })), [I, Ge] = b(() => ({
120
- ...be,
121
- ...Se
122
- })), [Ke, qe] = b(() => C ?? []), [L, Je] = b(null), [R, Ye] = b(null), [z, Xe] = b(null), [B, Ze] = b(null), [Qe, V] = b(null), [H, U] = b(!1), [W, G] = b(null), K = fe(), q = pe(), $e = me(), et = he(), { setClientSecret: tt } = de(), { data: nt, refetch: rt } = i(), { mutateAsync: it } = r(), J = ge(), Y = _e(null);
123
- v(() => () => Y.current?.abort(), []);
124
- let at = y(() => te(O.businessDetails.naicsTitles), [O.businessDetails.naicsTitles]), ot = y(() => c(O.businessDetails.stateTitles), [O.businessDetails.stateTitles]), st = y(() => c(O.personalDetails.stateTitles), [O.personalDetails.stateTitles]), ct = y(() => c(O.additionalOwners.stateTitles), [O.additionalOwners.stateTitles]), X = H || W !== null, lt = k?.status === "ACTIVE" || k?.status === "INACTIVE", ut = k?.status === "INVITED", Z = !!k && !X && (lt || ut || J.isSuppressed), Q = Z ? lt ? g.UserAlreadyOnboarded : ut ? g.UserInvitedToOrganization : J.reason : null;
125
- if (v(() => {
126
- !Z || !Q || (D(p.Suppressed, { reason: Q }), console.info(`[onboarding] not shown: ${Q}`));
106
+ }, A = u().initResponse, { termsHref: Te, privacyHref: Ee, electronicCommunicationHref: De, patriotActHref: Oe } = Se ?? {}, ke = E !== null, j = D === void 0, [Ae, M] = S(!1), [je, Me] = S(!0), [Ne, Pe] = S(() => Ce ?? !1), Fe = xe ?? E?.bankLogoSrc ?? void 0, Ie = j ? Ne : D, Le = Ce ?? !1, N = y((e) => {
107
+ j && Pe(e), we?.(e);
108
+ }, [we, j]), Re = y(() => {
109
+ O(h.OpenMarketing), M(!0);
110
+ }, [O]), ze = y(() => {
111
+ M(!1);
112
+ }, []), Be = y(() => {
113
+ O(h.BeginOnboarding), M(!1), N(!0);
114
+ }, [N, O]), Ve = y(() => {
115
+ Me(!1), s();
116
+ }, [s]), He = ee(), [P, F] = S(0), [Ue, We] = S(() => ({
117
+ ..._e,
118
+ ...ce
119
+ })), [I, Ge] = S(() => ({
120
+ ...ve,
121
+ ...be
122
+ })), [Ke, qe] = S(() => T ?? []), [L, Je] = S(null), [R, Ye] = S(null), [z, Xe] = S(null), [B, Ze] = S(null), [Qe, V] = S(null), [H, U] = S(!1), [W, G] = S(null), K = ue(), q = de(), $e = fe(), et = pe(), { setClientSecret: tt } = le(), { data: nt, refetch: rt } = i(), { mutateAsync: it } = r(), J = me(), Y = he(null);
123
+ b(() => () => Y.current?.abort(), []);
124
+ let at = x(() => d(k.businessDetails.naicsTitles), [k.businessDetails.naicsTitles]), ot = x(() => c(k.businessDetails.stateTitles), [k.businessDetails.stateTitles]), st = x(() => c(k.personalDetails.stateTitles), [k.personalDetails.stateTitles]), ct = x(() => c(k.additionalOwners.stateTitles), [k.additionalOwners.stateTitles]), X = H || W !== null, lt = A?.status === "ACTIVE" || A?.status === "INACTIVE", ut = A?.status === "INVITED", Z = !!A && !X && (lt || ut || J.isSuppressed), Q = Z ? lt ? v.UserAlreadyOnboarded : ut ? v.UserInvitedToOrganization : J.reason : null;
125
+ if (b(() => {
126
+ !Z || !Q || (O(h.Suppressed, { reason: Q }), console.info(`[onboarding] not shown: ${Q}`));
127
127
  }, [
128
128
  Z,
129
129
  Q,
130
- D
131
- ]), !k || !X && (Z || !J.isResolved)) return null;
130
+ O
131
+ ]), !A || !X && (Z || !J.isResolved)) return null;
132
132
  let dt = L?.companyStructure === "SOLE_PROPRIETORSHIP", ft = [
133
- O.stepIndicator.business,
134
- O.stepIndicator.personal,
135
- O.stepIndicator.ownership
133
+ k.stepIndicator.business,
134
+ k.stepIndicator.personal,
135
+ k.stepIndicator.ownership
136
136
  ], pt = P === 0 ? L : P === 1 ? R : P === 2 ? z : null, $ = K.isPending || q.isPending || $e.isPending || H, mt = () => {
137
137
  V(null), F((e) => e === 0 ? 0 : e - 1);
138
138
  }, ht = () => {
@@ -145,7 +145,7 @@ function Se({ onEmbeddedOnboardingCompletedSuccessfully: s, onNavigateToDashboar
145
145
  try {
146
146
  let r = await $e.mutateAsync({ path: { id: e } });
147
147
  if (t.signal.aborted) return;
148
- if (!r.id) throw Error(O.submitFailedError);
148
+ if (!r.id) throw Error(k.submitFailedError);
149
149
  if (n = !0, (await et(e, { signal: t.signal })).status === "complete") {
150
150
  let e = nt;
151
151
  if (e === void 0 && (e = (await rt()).data), t.signal.aborted) return;
@@ -169,7 +169,7 @@ function Se({ onEmbeddedOnboardingCompletedSuccessfully: s, onNavigateToDashboar
169
169
  if (!L) return;
170
170
  let e = B;
171
171
  if (!e) {
172
- let t = await K.mutateAsync({ body: ce(L) });
172
+ let t = await K.mutateAsync({ body: oe(L) });
173
173
  e = t.id, Ze(e), t.clientSecret && tt(t.clientSecret);
174
174
  }
175
175
  F(1);
@@ -177,7 +177,7 @@ function Se({ onEmbeddedOnboardingCompletedSuccessfully: s, onNavigateToDashboar
177
177
  if (!R || !L || !B) return;
178
178
  await q.mutateAsync({
179
179
  path: { id: B },
180
- body: le({
180
+ body: se({
181
181
  businessDetails: L,
182
182
  applicant: R
183
183
  })
@@ -186,31 +186,31 @@ function Se({ onEmbeddedOnboardingCompletedSuccessfully: s, onNavigateToDashboar
186
186
  if (!z || !B) return;
187
187
  await q.mutateAsync({
188
188
  path: { id: B },
189
- body: le({ businessOwners: z })
189
+ body: se({ businessOwners: z })
190
190
  }), await gt(B);
191
191
  }
192
192
  } catch (e) {
193
- let t = l(e) ?? (e instanceof Error ? e.message : void 0) ?? O.genericRetryError;
193
+ let t = l(e) ?? (e instanceof Error ? e.message : void 0) ?? k.genericRetryError;
194
194
  V(t);
195
195
  }
196
- }, vt = xe(Math.min(P, 2), O), yt = k.bankName?.trim() || O.fallbackBankName, bt = f(O.shellFdicDisclaimer, yt);
196
+ }, vt = ye(Math.min(P, 2), k), yt = A.bankName?.trim() || k.fallbackBankName, bt = m(k.shellFdicDisclaimer, yt);
197
197
  if (X) {
198
- let r = L?.companyLegalName ?? "", i = k.bankName?.trim() || O.fallbackBankName, a = W ?? "pending", o = a === "success", s = {
199
- ...h.result,
200
- ...O.result
198
+ let r = L?.companyLegalName ?? "", i = A.bankName?.trim() || k.fallbackBankName, a = W ?? "pending", o = a === "success", s = {
199
+ ..._.result,
200
+ ...k.result
201
201
  };
202
- return /* @__PURE__ */ x(e, {
203
- open: M,
202
+ return /* @__PURE__ */ C(e, {
203
+ open: Ie,
204
204
  onOpenChange: N,
205
- children: /* @__PURE__ */ S(t, {
205
+ children: /* @__PURE__ */ w(t, {
206
206
  className: "ttw:grid ttw:max-h-[95vh] ttw:w-[720px] ttw:max-w-[calc(100vw-2rem)] ttw:grid-rows-[1fr] ttw:gap-0 ttw:overflow-hidden ttw:rounded-2xl ttw:p-0",
207
- children: [/* @__PURE__ */ x(n, {
207
+ children: [/* @__PURE__ */ C(n, {
208
208
  className: "ttw:sr-only",
209
- children: O.modalTitle
210
- }), /* @__PURE__ */ x(re, {
209
+ children: k.modalTitle
210
+ }), /* @__PURE__ */ C(te, {
211
211
  testIds: {
212
- processing: d.resultProcessing,
213
- dashboardButton: d.resultDashboardButton
212
+ processing: f.resultProcessing,
213
+ dashboardButton: f.resultDashboardButton
214
214
  },
215
215
  status: a,
216
216
  isLoading: H,
@@ -221,32 +221,32 @@ function Se({ onEmbeddedOnboardingCompletedSuccessfully: s, onNavigateToDashboar
221
221
  followUpEmail: R?.workEmail ?? "",
222
222
  emailBoxLead: s.pendingEmailBoxLead,
223
223
  navigateToDashboardLabel: s.navigateToDashboard,
224
- bankLogoSrc: Ie,
225
- bankLogoAlt: f(s.bankLogoAlt, i),
226
- fdicDisclaimer: f(s.fdicDisclaimer, i),
227
- onNavigateToDashboard: ne
224
+ bankLogoSrc: Fe,
225
+ bankLogoAlt: m(s.bankLogoAlt, i),
226
+ fdicDisclaimer: m(s.fdicDisclaimer, i),
227
+ onNavigateToDashboard: p
228
228
  })]
229
229
  })
230
230
  });
231
231
  }
232
- let xt = P === 2 ? O.submit : O.next, St = pt === null || $;
233
- return /* @__PURE__ */ S(ve, { children: [Ae && Me && w ? /* @__PURE__ */ x(ie, {
234
- open: je,
232
+ let xt = P === 2 ? k.submit : k.next, St = pt === null || $;
233
+ return /* @__PURE__ */ w(ge, { children: [ke && je && E ? /* @__PURE__ */ C(ne, {
234
+ open: Ae,
235
235
  isVisible: !0,
236
- vspLogo: w.vspLogo,
237
- bankingText: w.bankingText,
238
- primaryCaption: w.primaryCaption,
239
- secondaryCaption: w.secondaryCaption,
240
- providedByCaption: w.providedByCaption,
241
- modalPrimaryImg: w.modalPrimaryImg,
242
- primaryModalHeader: w.primaryModalHeader,
243
- benefits: w.benefits,
244
- appearance: w.appearance,
236
+ vspLogo: E.vspLogo,
237
+ bankingText: E.bankingText,
238
+ primaryCaption: E.primaryCaption,
239
+ secondaryCaption: E.secondaryCaption,
240
+ providedByCaption: E.providedByCaption,
241
+ modalPrimaryImg: E.modalPrimaryImg,
242
+ primaryModalHeader: E.primaryModalHeader,
243
+ benefits: E.benefits,
244
+ appearance: E.appearance,
245
245
  onOpenMarketingModal: Re,
246
246
  onCloseMarketingModal: ze,
247
247
  onPrimaryCtaClick: Be
248
- }) : null, /* @__PURE__ */ S(a, {
249
- open: M,
248
+ }) : null, /* @__PURE__ */ w(a, {
249
+ open: Ie,
250
250
  defaultOpen: Le,
251
251
  onOpenChange: N,
252
252
  title: vt.title,
@@ -264,45 +264,45 @@ function Se({ onEmbeddedOnboardingCompletedSuccessfully: s, onNavigateToDashboar
264
264
  nextIcon: null,
265
265
  errorMessage: Qe,
266
266
  labels: {
267
- backButton: P === 0 ? O.cancel : O.back,
268
- cancelButton: O.cancel
267
+ backButton: P === 0 ? k.cancel : k.back,
268
+ cancelButton: k.cancel
269
269
  },
270
270
  testIds: {
271
- root: d.shell,
272
- dismiss: d.shellDismiss,
273
- back: d.shellBack,
274
- cancel: d.shellCancel,
275
- next: d.shellNext,
271
+ root: f.shell,
272
+ dismiss: f.shellDismiss,
273
+ back: f.shellBack,
274
+ cancel: f.shellCancel,
275
+ next: f.shellNext,
276
276
  scrollRegion: {
277
- root: d.shellScrollRegion,
278
- fade: d.shellScrollFade,
279
- hint: d.shellScrollHint
277
+ root: f.shellScrollRegion,
278
+ fade: f.shellScrollFade,
279
+ hint: f.shellScrollHint
280
280
  }
281
281
  },
282
282
  children: [
283
- P === 0 ? /* @__PURE__ */ x(ae, {
283
+ P === 0 ? /* @__PURE__ */ C(re, {
284
284
  value: Ue,
285
285
  onValueChange: We,
286
286
  onSnapshotChange: Je,
287
287
  naicsOptions: at,
288
288
  stateOptions: ot,
289
289
  isSubmitting: $,
290
- labels: O.businessDetails,
290
+ labels: k.businessDetails,
291
291
  bankName: yt,
292
- termsHref: Ee,
293
- privacyHref: De,
294
- electronicCommunicationHref: Oe,
295
- patriotActHref: ke
292
+ termsHref: Te,
293
+ privacyHref: Ee,
294
+ electronicCommunicationHref: De,
295
+ patriotActHref: Oe
296
296
  }, "business") : null,
297
- P === 1 ? /* @__PURE__ */ x(oe, {
297
+ P === 1 ? /* @__PURE__ */ C(ie, {
298
298
  value: I,
299
299
  onValueChange: Ge,
300
300
  onSnapshotChange: Ye,
301
301
  stateOptions: st,
302
302
  isSubmitting: $,
303
- labels: O.personalDetails
303
+ labels: k.personalDetails
304
304
  }, "personal") : null,
305
- P === 2 ? /* @__PURE__ */ x(se, {
305
+ P === 2 ? /* @__PURE__ */ C(ae, {
306
306
  owners: Ke,
307
307
  onOwnersChange: qe,
308
308
  primaryOwnerName: `${I.firstName} ${I.lastName}`.trim(),
@@ -310,13 +310,13 @@ function Se({ onEmbeddedOnboardingCompletedSuccessfully: s, onNavigateToDashboar
310
310
  stateOptions: ct,
311
311
  onSnapshotChange: Xe,
312
312
  isSubmitting: $,
313
- labels: O.additionalOwners
313
+ labels: k.additionalOwners
314
314
  }) : null
315
315
  ]
316
316
  })] });
317
317
  }
318
- function C({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: c, errorFallback: l, onError: ee, analytics: u, disclosuresAcceptance: te, ...d }) {
319
- return /* @__PURE__ */ x(s, {
318
+ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: c, errorFallback: l, onError: ee, analytics: u, disclosuresAcceptance: d, providerLabels: f, ...p }) {
319
+ return /* @__PURE__ */ C(s, {
320
320
  baseUrl: e,
321
321
  widgetToken: t,
322
322
  organizationId: n,
@@ -328,14 +328,15 @@ function C({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
328
328
  errorFallback: l,
329
329
  onError: ee,
330
330
  analytics: u,
331
- disclosuresAcceptance: te,
332
- widgetName: m,
333
- children: /* @__PURE__ */ x(Ce, { ...d })
331
+ disclosuresAcceptance: d,
332
+ providerLabels: f,
333
+ widgetName: g,
334
+ children: /* @__PURE__ */ C(xe, { ...p })
334
335
  });
335
336
  }
336
- function Ce(e) {
337
- let { initResponse: t } = u(), n = t?.userId ?? null, [r, i] = b(n), [a, o] = b(0);
338
- return n !== r && (i(n), r !== null && n !== null && o((e) => e + 1)), /* @__PURE__ */ x(ue, { children: /* @__PURE__ */ x(Se, { ...e }, a) }, a);
337
+ function xe(e) {
338
+ let { initResponse: t } = u(), n = t?.userId ?? null, [r, i] = S(n), [a, o] = S(0);
339
+ return n !== r && (i(n), r !== null && n !== null && o((e) => e + 1)), /* @__PURE__ */ C(ce, { children: /* @__PURE__ */ C(be, { ...e }, a) }, a);
339
340
  }
340
341
  //#endregion
341
- export { C as BankAccountOnboardingWidget, C as default };
342
+ export { T as BankAccountOnboardingWidget, T as default };
@@ -45,7 +45,7 @@ function l({ labels: t, accountDetailsLabels: n, featureLabels: l, isBankingTagl
45
45
  ...C
46
46
  })] });
47
47
  }
48
- function u({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
48
+ function u({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
49
49
  return /* @__PURE__ */ s(t, {
50
50
  widgetName: n,
51
51
  baseUrl: e,
@@ -60,7 +60,8 @@ function u({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gat
60
60
  onError: p,
61
61
  analytics: m,
62
62
  disclosuresAcceptance: h,
63
- children: /* @__PURE__ */ s(l, { ...g })
63
+ providerLabels: g,
64
+ children: /* @__PURE__ */ s(l, { ..._ })
64
65
  });
65
66
  }
66
67
  //#endregion
@@ -19,7 +19,7 @@ function c(n) {
19
19
  i(t.Mounted);
20
20
  }, [i]), /* @__PURE__ */ o(r, { ...n });
21
21
  }
22
- function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, pageTitleComponent: v = s, ...y }) {
22
+ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, providerLabels: v, pageTitleComponent: y = s, ...b }) {
23
23
  return /* @__PURE__ */ o(i, {
24
24
  widgetName: n,
25
25
  baseUrl: e,
@@ -35,9 +35,10 @@ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gat
35
35
  finopsThemeColors: h,
36
36
  analytics: g,
37
37
  disclosuresAcceptance: _,
38
+ providerLabels: v,
38
39
  children: /* @__PURE__ */ o(c, {
39
- ...y,
40
- pageTitleComponent: v
40
+ ...b,
41
+ pageTitleComponent: y
41
42
  })
42
43
  });
43
44
  }
@@ -92,7 +92,7 @@ function w({ labels: i, tabsLabels: p, approvalPolicyLabels: w, approvalPolicyCo
92
92
  }) : null
93
93
  ] });
94
94
  }
95
- function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, ...m }) {
95
+ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: m, ...h }) {
96
96
  return /* @__PURE__ */ b(i, {
97
97
  widgetName: p,
98
98
  baseUrl: e,
@@ -107,7 +107,8 @@ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
107
107
  onError: u,
108
108
  analytics: d,
109
109
  disclosuresAcceptance: f,
110
- children: /* @__PURE__ */ b(w, { ...m })
110
+ providerLabels: m,
111
+ children: /* @__PURE__ */ b(w, { ...h })
111
112
  });
112
113
  }
113
114
  //#endregion
@@ -83,7 +83,7 @@ function w({ cardId: r, cardProgram: l, onClose: w, labels: T, featureLabels: E,
83
83
  onRetry: N === d.Supported ? G : void 0
84
84
  })] });
85
85
  }
86
- function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, ...m }) {
86
+ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
87
87
  return /* @__PURE__ */ S(r, {
88
88
  widgetName: l,
89
89
  baseUrl: e,
@@ -98,7 +98,8 @@ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gat
98
98
  onError: d,
99
99
  analytics: f,
100
100
  disclosuresAcceptance: p,
101
- children: /* @__PURE__ */ S(w, { ...m })
101
+ providerLabels: m,
102
+ children: /* @__PURE__ */ S(w, { ...h })
102
103
  });
103
104
  }
104
105
  //#endregion
@@ -73,7 +73,7 @@ function h({ cardProgram: e, pagination: t, defaultPagination: h, onPaginationCh
73
73
  }, H)
74
74
  })] });
75
75
  }
76
- function g({ baseUrl: n, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: m, ...g }) {
76
+ function g({ baseUrl: n, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: m, providerLabels: g, ..._ }) {
77
77
  return /* @__PURE__ */ p(e, {
78
78
  widgetName: t,
79
79
  baseUrl: n,
@@ -88,7 +88,8 @@ function g({ baseUrl: n, widgetToken: r, organizationId: i, configClient: a, gat
88
88
  onError: d,
89
89
  analytics: f,
90
90
  disclosuresAcceptance: m,
91
- children: /* @__PURE__ */ p(h, { ...g })
91
+ providerLabels: g,
92
+ children: /* @__PURE__ */ p(h, { ..._ })
92
93
  });
93
94
  }
94
95
  //#endregion
@@ -202,7 +202,7 @@ function g({ counterpartType: t, pageSizeOptions: s = c, onViewAllDocuments: g,
202
202
  })
203
203
  ] });
204
204
  }
205
- 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, ...h }) {
205
+ 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, ..._ }) {
206
206
  return /* @__PURE__ */ m(t, {
207
207
  widgetName: s,
208
208
  baseUrl: e,
@@ -217,7 +217,8 @@ function _({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
217
217
  onError: d,
218
218
  analytics: f,
219
219
  disclosuresAcceptance: p,
220
- children: /* @__PURE__ */ m(g, { ...h }, h.counterpartType)
220
+ providerLabels: h,
221
+ children: /* @__PURE__ */ m(g, { ..._ }, _.counterpartType)
221
222
  });
222
223
  }
223
224
  //#endregion