@tesouro/embedded-components-react 0.3.25 → 0.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/experimental/WidgetSuite.d.ts +32 -3
- package/dist/experimental/index.d.ts +32 -3
- package/dist/index.d.ts +60 -25
- package/dist/lib/AcceptDisclosuresWidget.d.ts +32 -3
- package/dist/lib/BalancesWidget.d.ts +31 -2
- package/dist/lib/BankAccountOnboardingWidget.d.ts +32 -3
- package/dist/lib/BankAccountsWidget.d.ts +32 -3
- package/dist/lib/BillPayWidget.d.ts +31 -2
- package/dist/lib/CardDetailsWidget.d.ts +32 -3
- package/dist/lib/CardsWidget.d.ts +32 -3
- package/dist/lib/ChartOfAccountsWidget.d.ts +32 -3
- package/dist/lib/CounterpartsWidget.d.ts +32 -3
- package/dist/lib/CreateCardWidget.d.ts +32 -3
- package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +32 -3
- package/dist/lib/ExpenseManagementWidget.d.ts +32 -3
- package/dist/lib/ExpenseRequirementsWidget.d.ts +32 -3
- package/dist/lib/HelpWidget.d.ts +32 -3
- package/dist/lib/InsightsWidget.d.ts +31 -2
- package/dist/lib/InvoicingWidget.d.ts +32 -3
- package/dist/lib/LinkedAccountsWidget.d.ts +32 -3
- package/dist/lib/ProductsWidget.d.ts +32 -3
- package/dist/lib/ProfileWidget.d.ts +32 -3
- package/dist/lib/ReceiptMatchWidget.d.ts +32 -3
- package/dist/lib/ReceivablesWidget.d.ts +32 -3
- package/dist/lib/SettingsWidget.d.ts +32 -3
- package/dist/lib/TagsWidget.d.ts +32 -3
- package/dist/lib/TeamWidget.d.ts +32 -3
- package/dist/lib/TransfersWidget.d.ts +31 -2
- package/dist/lib/WidgetProvider.d.ts +39 -4
- package/dist/lib/WidgetProviderPublic.d.ts +31 -2
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +131 -130
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +88 -87
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +50 -48
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetErrorBoundary.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +174 -163
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/labels.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/events.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +3 -2
- 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
|
|
16
|
+
import { getNaicsOptions as d } from "../../../shared/feature/dist/lib/naicsCodeMap.js";
|
|
17
17
|
import "../../../shared/feature/dist/index.js";
|
|
18
|
-
import { bankAccountOnboardingTestIds as
|
|
19
|
-
import { ADDITIONAL_OWNERS_LABELS_EN as
|
|
20
|
-
import { interpolateBankName as
|
|
21
|
-
import { ResultStep as
|
|
22
|
-
import { MarketingWidget as
|
|
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
|
|
25
|
-
import { PersonalDetailsStep as
|
|
26
|
-
import { AdditionalOwnersStep as
|
|
27
|
-
import { buildCreateApplicationBody as
|
|
28
|
-
import { OnboardingAnalyticsEvent as
|
|
29
|
-
import { DEFAULT_LABELS as
|
|
30
|
-
import { ApplicationClientSecretProvider as
|
|
31
|
-
import { useCreateApplication as
|
|
32
|
-
import { useUpdateApplication as
|
|
33
|
-
import { useSubmitApplication as
|
|
34
|
-
import { usePollApplicationCompletion as
|
|
35
|
-
import { OnboardingSuppressionReason as
|
|
36
|
-
import { useOrganizationOnboardingSuppression as
|
|
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
|
|
39
|
-
import { Fragment as
|
|
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
|
|
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
|
-
},
|
|
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
|
|
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
|
-
...
|
|
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
|
|
88
|
-
let
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}, [
|
|
92
|
-
let
|
|
93
|
-
...
|
|
94
|
-
...
|
|
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
|
-
...
|
|
97
|
-
...
|
|
96
|
+
..._.stepIndicator,
|
|
97
|
+
...g?.stepIndicator
|
|
98
98
|
},
|
|
99
|
-
businessDetails:
|
|
100
|
-
personalDetails:
|
|
101
|
-
additionalOwners:
|
|
99
|
+
businessDetails: g?.businessDetails ?? {},
|
|
100
|
+
personalDetails: g?.personalDetails ?? {},
|
|
101
|
+
additionalOwners: g?.additionalOwners ?? {},
|
|
102
102
|
result: {
|
|
103
|
-
...
|
|
104
|
-
...
|
|
103
|
+
..._.result,
|
|
104
|
+
...g?.result
|
|
105
105
|
}
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
}, [
|
|
109
|
-
|
|
110
|
-
}, [
|
|
111
|
-
|
|
112
|
-
}, []), Be =
|
|
113
|
-
|
|
114
|
-
}, [N,
|
|
115
|
-
|
|
116
|
-
}, [s]), He = ee(), [P, F] =
|
|
117
|
-
...
|
|
118
|
-
...
|
|
119
|
-
})), [I, Ge] =
|
|
120
|
-
...
|
|
121
|
-
...
|
|
122
|
-
})), [Ke, qe] =
|
|
123
|
-
|
|
124
|
-
let at =
|
|
125
|
-
if (
|
|
126
|
-
!Z || !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
|
-
|
|
131
|
-
]), !
|
|
130
|
+
O
|
|
131
|
+
]), !A || !X && (Z || !J.isResolved)) return null;
|
|
132
132
|
let dt = L?.companyStructure === "SOLE_PROPRIETORSHIP", ft = [
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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(
|
|
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:
|
|
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:
|
|
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:
|
|
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) ??
|
|
193
|
+
let t = l(e) ?? (e instanceof Error ? e.message : void 0) ?? k.genericRetryError;
|
|
194
194
|
V(t);
|
|
195
195
|
}
|
|
196
|
-
}, vt =
|
|
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 =
|
|
199
|
-
...
|
|
200
|
-
...
|
|
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__ */
|
|
203
|
-
open:
|
|
202
|
+
return /* @__PURE__ */ C(e, {
|
|
203
|
+
open: Ie,
|
|
204
204
|
onOpenChange: N,
|
|
205
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
207
|
+
children: [/* @__PURE__ */ C(n, {
|
|
208
208
|
className: "ttw:sr-only",
|
|
209
|
-
children:
|
|
210
|
-
}), /* @__PURE__ */
|
|
209
|
+
children: k.modalTitle
|
|
210
|
+
}), /* @__PURE__ */ C(te, {
|
|
211
211
|
testIds: {
|
|
212
|
-
processing:
|
|
213
|
-
dashboardButton:
|
|
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:
|
|
225
|
-
bankLogoAlt:
|
|
226
|
-
fdicDisclaimer:
|
|
227
|
-
onNavigateToDashboard:
|
|
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 ?
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
-
open:
|
|
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:
|
|
237
|
-
bankingText:
|
|
238
|
-
primaryCaption:
|
|
239
|
-
secondaryCaption:
|
|
240
|
-
providedByCaption:
|
|
241
|
-
modalPrimaryImg:
|
|
242
|
-
primaryModalHeader:
|
|
243
|
-
benefits:
|
|
244
|
-
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__ */
|
|
249
|
-
open:
|
|
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 ?
|
|
268
|
-
cancelButton:
|
|
267
|
+
backButton: P === 0 ? k.cancel : k.back,
|
|
268
|
+
cancelButton: k.cancel
|
|
269
269
|
},
|
|
270
270
|
testIds: {
|
|
271
|
-
root:
|
|
272
|
-
dismiss:
|
|
273
|
-
back:
|
|
274
|
-
cancel:
|
|
275
|
-
next:
|
|
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:
|
|
278
|
-
fade:
|
|
279
|
-
hint:
|
|
277
|
+
root: f.shellScrollRegion,
|
|
278
|
+
fade: f.shellScrollFade,
|
|
279
|
+
hint: f.shellScrollHint
|
|
280
280
|
}
|
|
281
281
|
},
|
|
282
282
|
children: [
|
|
283
|
-
P === 0 ? /* @__PURE__ */
|
|
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:
|
|
290
|
+
labels: k.businessDetails,
|
|
291
291
|
bankName: yt,
|
|
292
|
-
termsHref:
|
|
293
|
-
privacyHref:
|
|
294
|
-
electronicCommunicationHref:
|
|
295
|
-
patriotActHref:
|
|
292
|
+
termsHref: Te,
|
|
293
|
+
privacyHref: Ee,
|
|
294
|
+
electronicCommunicationHref: De,
|
|
295
|
+
patriotActHref: Oe
|
|
296
296
|
}, "business") : null,
|
|
297
|
-
P === 1 ? /* @__PURE__ */
|
|
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:
|
|
303
|
+
labels: k.personalDetails
|
|
304
304
|
}, "personal") : null,
|
|
305
|
-
P === 2 ? /* @__PURE__ */
|
|
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:
|
|
313
|
+
labels: k.additionalOwners
|
|
314
314
|
}) : null
|
|
315
315
|
]
|
|
316
316
|
})] });
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
return /* @__PURE__ */
|
|
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:
|
|
332
|
-
|
|
333
|
-
|
|
331
|
+
disclosuresAcceptance: d,
|
|
332
|
+
providerLabels: f,
|
|
333
|
+
widgetName: g,
|
|
334
|
+
children: /* @__PURE__ */ C(xe, { ...p })
|
|
334
335
|
});
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
-
let { initResponse: t } = u(), n = t?.userId ?? null, [r, i] =
|
|
338
|
-
return n !== r && (i(n), r !== null && n !== null && o((e) => e + 1)), /* @__PURE__ */
|
|
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 {
|
|
342
|
+
export { T as BankAccountOnboardingWidget, T as default };
|
package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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: _,
|
|
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
|
-
...
|
|
40
|
-
pageTitleComponent:
|
|
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,
|
|
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
|
-
|
|
110
|
+
providerLabels: m,
|
|
111
|
+
children: /* @__PURE__ */ b(w, { ...h })
|
|
111
112
|
});
|
|
112
113
|
}
|
|
113
114
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as a, DialogFooter as
|
|
1
|
+
import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as a, DialogFooter as ee, DialogHeader as o, DialogTitle as s, Label as c, Popover as l, PopoverContent as u, PopoverTrigger as d, Select as f, SelectContent as p, SelectItem as m, SelectTrigger as h, SelectValue as g, cn as _ } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as v } from "./index88.js";
|
|
3
3
|
import { TONE_TEXT_CLASS as y } from "./index89.js";
|
|
4
4
|
import { useId as b } from "react";
|
|
5
|
-
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
5
|
+
import { Fragment as te, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
6
6
|
import { CalendarIcon as C } from "lucide-react";
|
|
7
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js
|
|
8
8
|
var w = {
|
|
@@ -22,7 +22,7 @@ function T({ open: y, onOpenChange: T, amountDueLabel: E, amountDue: D, dueDateS
|
|
|
22
22
|
"data-testid": K,
|
|
23
23
|
className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
|
|
24
24
|
children: [
|
|
25
|
-
/* @__PURE__ */ S(
|
|
25
|
+
/* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(s, { children: J.title }), /* @__PURE__ */ x(a, {
|
|
26
26
|
className: "ttw:sr-only",
|
|
27
27
|
children: J.hiddenDescription
|
|
28
28
|
})] }),
|
|
@@ -102,11 +102,11 @@ function T({ open: y, onOpenChange: T, amountDueLabel: E, amountDue: D, dueDateS
|
|
|
102
102
|
disabled: Q,
|
|
103
103
|
onValueChange: U,
|
|
104
104
|
children: [/* @__PURE__ */ x(h, {
|
|
105
|
-
className: "ttw:w-full ttw:data-[size=default]:h-14",
|
|
105
|
+
className: "ttw:w-full ttw:data-[size=default]:h-14 ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1",
|
|
106
106
|
"aria-labelledby": Z,
|
|
107
|
-
children:
|
|
108
|
-
|
|
109
|
-
children: [/* @__PURE__ */ S("span", {
|
|
107
|
+
children: /* @__PURE__ */ x(g, {
|
|
108
|
+
placeholder: J.payFromPlaceholder,
|
|
109
|
+
children: $ ? /* @__PURE__ */ S(te, { children: [/* @__PURE__ */ S("span", {
|
|
110
110
|
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
|
|
111
111
|
children: [/* @__PURE__ */ x("span", {
|
|
112
112
|
className: "ttw:truncate",
|
|
@@ -119,8 +119,8 @@ function T({ open: y, onOpenChange: T, amountDueLabel: E, amountDue: D, dueDateS
|
|
|
119
119
|
variant: "secondary",
|
|
120
120
|
className: "ttw:shrink-0",
|
|
121
121
|
children: J.poweredByBank(L)
|
|
122
|
-
}) : null]
|
|
123
|
-
})
|
|
122
|
+
}) : null] }) : null
|
|
123
|
+
})
|
|
124
124
|
}), /* @__PURE__ */ x(p, { children: I.map((e) => /* @__PURE__ */ x(m, {
|
|
125
125
|
value: e.id,
|
|
126
126
|
children: /* @__PURE__ */ S("span", {
|
|
@@ -148,7 +148,7 @@ function T({ open: y, onOpenChange: T, amountDueLabel: E, amountDue: D, dueDateS
|
|
|
148
148
|
}) : null
|
|
149
149
|
]
|
|
150
150
|
}),
|
|
151
|
-
/* @__PURE__ */ S(
|
|
151
|
+
/* @__PURE__ */ S(ee, {
|
|
152
152
|
className: "ttw:pt-4 ttw:sm:gap-3",
|
|
153
153
|
children: [/* @__PURE__ */ x(t, {
|
|
154
154
|
type: "button",
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
91
|
+
providerLabels: g,
|
|
92
|
+
children: /* @__PURE__ */ p(h, { ..._ })
|
|
92
93
|
});
|
|
93
94
|
}
|
|
94
95
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
220
|
+
providerLabels: h,
|
|
221
|
+
children: /* @__PURE__ */ m(g, { ..._ }, _.counterpartType)
|
|
221
222
|
});
|
|
222
223
|
}
|
|
223
224
|
//#endregion
|