@tesouro/embedded-components-react 0.10.6 → 0.10.10
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/dist/index.css +9 -0
- package/dist/index.d.ts +46 -7
- package/dist/index.js +4 -4
- package/dist/lib/BankAccountOnboardingWidget.d.ts +46 -7
- package/dist/lib/BankAccountOnboardingWidget.js +4 -4
- package/dist/lib/WidgetSuite.d.ts +46 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +175 -98
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +365 -343
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/ReviewStep.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/TermsStep.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/apiMapping.js +15 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicantOwnerSummary.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +3 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +5 -340
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +422 -58
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +50 -30
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +39 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +6 -58
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +62 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +31 -38
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +34 -91
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +96 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +12 -276
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +294 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +23 -53
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +46 -343
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +268 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +29 -59
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +53 -118
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +123 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +5 -80
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js +10 -64
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index33.js +64 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index34.js +6 -44
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index35.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +110 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +89 -5
- 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/ui/dist/lib/OnboardingShell/OnboardingShell.js +67 -61
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellStepper.js +16 -19
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { BusinessDetailsPanel as e } from "../../../../ui/dist/
|
|
5
|
+
import { BusinessDetailsPanel as e } from "../../../../ui/dist/index24.js";
|
|
6
6
|
import "../../../../ui/dist/index.js";
|
|
7
7
|
import { buildBusinessDetailsSchema as t } from "./stepSchemas.js";
|
|
8
8
|
import { bankAccountOnboardingTestIds as n } from "./testIds.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { AboutYouPanel as e } from "../../../../ui/dist/
|
|
5
|
+
import { AboutYouPanel as e } from "../../../../ui/dist/index28.js";
|
|
6
6
|
import "../../../../ui/dist/index.js";
|
|
7
7
|
import { buildPersonalDetailsSchema as t } from "./stepSchemas.js";
|
|
8
8
|
import { bankAccountOnboardingTestIds as n } from "./testIds.js";
|
|
@@ -21,9 +21,7 @@ var v = [
|
|
|
21
21
|
"state",
|
|
22
22
|
"zipCode",
|
|
23
23
|
"mobilePhoneNumber",
|
|
24
|
-
"workEmail"
|
|
25
|
-
"ownsOver25Percent",
|
|
26
|
-
"ownershipPercentage"
|
|
24
|
+
"workEmail"
|
|
27
25
|
], y = new Set(v);
|
|
28
26
|
function b({ value: b, onValueChange: x, onSnapshotChange: S, stateOptions: C, isSubmitting: w, showAllErrors: T = !1, labels: E }) {
|
|
29
27
|
let D = m(() => f(E), [E]), O = m(() => t(D), [D]).safeParse(b, a(D.invalidFieldError)), k = O.success ? O.data : null, A = r(v, b, O.error?.issues, D.requiredFieldError), { touched: j, touch: M } = o(() => i(v, b, A)), N = JSON.stringify({
|
|
@@ -59,7 +57,6 @@ function b({ value: b, onValueChange: x, onSnapshotChange: S, stateOptions: C, i
|
|
|
59
57
|
ssnRevealed: L,
|
|
60
58
|
ssnToggleAriaLabel: L ? B.ssnHide : B.ssnShow,
|
|
61
59
|
onToggleSsnVisibility: () => R((e) => !e),
|
|
62
|
-
showOwnershipPercentage: b.ownsOver25Percent === !0,
|
|
63
60
|
ssnMaskedDisplay: W.masked,
|
|
64
61
|
ssnFormattedDisplay: W.formatted,
|
|
65
62
|
ssnRequired: W.required,
|
|
@@ -69,10 +66,7 @@ function b({ value: b, onValueChange: x, onSnapshotChange: S, stateOptions: C, i
|
|
|
69
66
|
root: n.aboutYouPanel,
|
|
70
67
|
editButton: n.aboutYouEditButton,
|
|
71
68
|
summary: { root: n.aboutYouSummary },
|
|
72
|
-
editForm: {
|
|
73
|
-
root: n.aboutYouEditForm,
|
|
74
|
-
ownsOver25Question: n.aboutYouOwnsOver25Question
|
|
75
|
-
}
|
|
69
|
+
editForm: { root: n.aboutYouEditForm }
|
|
76
70
|
}
|
|
77
71
|
});
|
|
78
72
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { ADDITIONAL_OWNERS_LABELS_EN as e } from "../../../../ui/dist/
|
|
6
|
-
import { ApplicationReview as t } from "../../../../ui/dist/
|
|
5
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as e } from "../../../../ui/dist/index9.js";
|
|
6
|
+
import { ApplicationReview as t } from "../../../../ui/dist/index31.js";
|
|
7
7
|
import "../../../../ui/dist/index.js";
|
|
8
8
|
import { bankAccountOnboardingTestIds as n } from "./testIds.js";
|
|
9
9
|
import { buildBusinessDetailsPanelLabels as r, buildBusinessDetailsSummaryRows as i } from "./businessDetailsPanelMapping.js";
|
|
@@ -14,11 +14,11 @@ import { jsx as c } from "react/jsx-runtime";
|
|
|
14
14
|
function l(e) {
|
|
15
15
|
return e.filter((e) => e.value);
|
|
16
16
|
}
|
|
17
|
-
function u({ personalDetails: u, businessDetails: d, additionalOwners: f, primaryOwnerName: p, primaryOwnerPercentage: m,
|
|
18
|
-
let
|
|
19
|
-
let t = a(
|
|
17
|
+
function u({ personalDetails: u, businessDetails: d, additionalOwners: f, primaryOwnerName: p, primaryOwnerPercentage: m, isSoleProprietor: h = !1, personalStateOptions: g, businessStateOptions: _, naicsOptions: v, onEditPersonal: y, onEditBusiness: b, ownersEditAriaLabel: x, isSubmitting: S, labels: C }) {
|
|
18
|
+
let w = s(() => {
|
|
19
|
+
let t = a(C.personalDetails), n = r(C.businessDetails), s = {
|
|
20
20
|
...e,
|
|
21
|
-
...
|
|
21
|
+
...C.additionalOwners
|
|
22
22
|
}, c = [...m >= 25 ? [{
|
|
23
23
|
label: p,
|
|
24
24
|
value: `${m}${s.percentSuffix}`
|
|
@@ -31,24 +31,24 @@ function u({ personalDetails: u, businessDetails: d, additionalOwners: f, primar
|
|
|
31
31
|
id: "personal",
|
|
32
32
|
title: t.panelTitle,
|
|
33
33
|
rows: l(o(u, {
|
|
34
|
-
stateOptions:
|
|
35
|
-
labels:
|
|
34
|
+
stateOptions: g,
|
|
35
|
+
labels: C.personalDetails
|
|
36
36
|
})),
|
|
37
|
-
onEdit:
|
|
37
|
+
onEdit: y,
|
|
38
38
|
editAriaLabel: t.editButtonAriaLabel
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
id: "business",
|
|
42
42
|
title: n.panelTitle,
|
|
43
43
|
rows: l(i(d, {
|
|
44
|
-
stateOptions:
|
|
45
|
-
naicsOptions:
|
|
46
|
-
labels:
|
|
44
|
+
stateOptions: _,
|
|
45
|
+
naicsOptions: v,
|
|
46
|
+
labels: C.businessDetails
|
|
47
47
|
})),
|
|
48
|
-
onEdit:
|
|
48
|
+
onEdit: b,
|
|
49
49
|
editAriaLabel: n.editButtonAriaLabel
|
|
50
50
|
},
|
|
51
|
-
{
|
|
51
|
+
...h ? [] : [{
|
|
52
52
|
id: "owners",
|
|
53
53
|
title: s.reviewSectionTitle,
|
|
54
54
|
rows: c,
|
|
@@ -56,9 +56,9 @@ function u({ personalDetails: u, businessDetails: d, additionalOwners: f, primar
|
|
|
56
56
|
label: s.ownerNameColumn,
|
|
57
57
|
value: s.ownerShareColumn
|
|
58
58
|
},
|
|
59
|
-
onEdit:
|
|
60
|
-
editAriaLabel:
|
|
61
|
-
}
|
|
59
|
+
onEdit: b,
|
|
60
|
+
editAriaLabel: x
|
|
61
|
+
}]
|
|
62
62
|
];
|
|
63
63
|
}, [
|
|
64
64
|
u,
|
|
@@ -72,14 +72,15 @@ function u({ personalDetails: u, businessDetails: d, additionalOwners: f, primar
|
|
|
72
72
|
v,
|
|
73
73
|
y,
|
|
74
74
|
b,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
x,
|
|
76
|
+
C.personalDetails,
|
|
77
|
+
C.businessDetails,
|
|
78
|
+
C.additionalOwners
|
|
78
79
|
]);
|
|
79
80
|
return /* @__PURE__ */ c(t, {
|
|
80
|
-
sections:
|
|
81
|
-
isDisabled:
|
|
82
|
-
labels:
|
|
81
|
+
sections: w,
|
|
82
|
+
isDisabled: S,
|
|
83
|
+
labels: C.applicationReview,
|
|
83
84
|
testIds: {
|
|
84
85
|
root: n.review,
|
|
85
86
|
sections: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { BusinessDisclosuresSection as e } from "../../../../ui/dist/
|
|
5
|
+
import { BusinessDisclosuresSection as e } from "../../../../ui/dist/index29.js";
|
|
6
6
|
import "../../../../ui/dist/index.js";
|
|
7
7
|
import { bankAccountOnboardingTestIds as t } from "./testIds.js";
|
|
8
8
|
import { jsx as n } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ADDITIONAL_OWNERS_LABELS_EN as e } from "../../../../ui/dist/
|
|
1
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as e } from "../../../../ui/dist/index9.js";
|
|
2
2
|
import "../../../../ui/dist/index.js";
|
|
3
3
|
import { maskIdentifierLast4 as t } from "./fieldInput/maskIdentifierLast4.js";
|
|
4
4
|
import { storedIdentifierFieldDisplay as n } from "./fieldInput/storedIdentifier.js";
|
|
@@ -32,7 +32,12 @@ function o(n) {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
var s = 1;
|
|
35
|
-
function c(
|
|
35
|
+
function c(e, t) {
|
|
36
|
+
if (t) return s;
|
|
37
|
+
if (e.ownsOver25Percent === !1) return 0;
|
|
38
|
+
if (e.ownsOver25Percent === !0 && e.ownershipPercentage !== null && e.ownershipPercentage >= 25 && e.ownershipPercentage <= 100) return e.ownershipPercentage / 100;
|
|
39
|
+
}
|
|
40
|
+
function l(t, { isSoleProprietor: n = !1 } = {}) {
|
|
36
41
|
return {
|
|
37
42
|
firstName: t.firstName,
|
|
38
43
|
lastName: t.lastName,
|
|
@@ -49,10 +54,10 @@ function c(t, { isSoleProprietor: n = !1 } = {}) {
|
|
|
49
54
|
}),
|
|
50
55
|
mobilePhoneNumber: r(t.mobilePhoneNumber),
|
|
51
56
|
workEmailAddress: t.workEmail,
|
|
52
|
-
ownershipPercentage:
|
|
57
|
+
ownershipPercentage: c(t, n)
|
|
53
58
|
};
|
|
54
59
|
}
|
|
55
|
-
function
|
|
60
|
+
function u(t) {
|
|
56
61
|
return t.map((t) => ({
|
|
57
62
|
...t.id ? { id: t.id } : {},
|
|
58
63
|
firstName: t.firstName,
|
|
@@ -65,29 +70,29 @@ function l(t) {
|
|
|
65
70
|
postalCode: t.zipCode
|
|
66
71
|
}),
|
|
67
72
|
mobilePhoneNumber: r(t.mobilePhoneNumber),
|
|
68
|
-
ownershipPercentage: t.ownershipPercentage !== null && t.ownershipPercentage >= 25 ? t.ownershipPercentage / 100 : 0,
|
|
73
|
+
ownershipPercentage: t.ownershipPercentage !== null && t.ownershipPercentage >= 25 && t.ownershipPercentage <= 100 ? t.ownershipPercentage / 100 : 0,
|
|
69
74
|
...e(t.ssn, t.id ? t.ssnOnFileLast4 : void 0) ? {} : { personalIdentificationNumber: {
|
|
70
75
|
type: "SSN",
|
|
71
76
|
value: t.ssn
|
|
72
77
|
} }
|
|
73
78
|
}));
|
|
74
79
|
}
|
|
75
|
-
function
|
|
80
|
+
function d(e) {
|
|
76
81
|
let t = e.isSoleProprietor || e.businessDetails?.companyStructure === "SOLE_PROPRIETORSHIP";
|
|
77
82
|
return {
|
|
78
83
|
...e.businessDetails && { businessDetails: o(e.businessDetails) },
|
|
79
|
-
applicant:
|
|
84
|
+
applicant: l(e.applicant, { isSoleProprietor: t })
|
|
80
85
|
};
|
|
81
86
|
}
|
|
82
|
-
function
|
|
87
|
+
function f(e) {
|
|
83
88
|
let t = e.businessDetails?.companyStructure === "SOLE_PROPRIETORSHIP", n = t || !!e.isSoleProprietor, { consent: r } = e;
|
|
84
89
|
return {
|
|
85
90
|
...e.businessDetails && { businessDetails: o(e.businessDetails) },
|
|
86
91
|
...(e.applicant || r) && { applicant: {
|
|
87
|
-
...e.applicant ?
|
|
92
|
+
...e.applicant ? l(e.applicant, { isSoleProprietor: n }) : {},
|
|
88
93
|
...r
|
|
89
94
|
} },
|
|
90
|
-
...(t || e.businessOwners !== void 0) && { businessOwners: !t && e.businessOwners?.length ?
|
|
95
|
+
...(t || e.businessOwners !== void 0) && { businessOwners: !t && e.businessOwners?.length ? u(e.businessOwners) : null }
|
|
91
96
|
};
|
|
92
97
|
}
|
|
93
|
-
export {
|
|
98
|
+
export { l as buildApplicantForUpdate, o as buildBusinessDetails, u as buildBusinessOwners, d as buildCreateApplicationBody, f as buildUpdateApplicationBody, i as formatBirthDate, r as stripPhone };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { formatDate as e } from "./personalDetailsPanelMapping.js";
|
|
2
|
+
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicantOwnerSummary.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let r = e(t.dateOfBirth), i = t.ssn.replace(/\D/g, ""), a = i.length >= 4 ? i.slice(-4) : t.ssnOnFileLast4, o = [t.city, t.state].filter(Boolean).join(", "), s = [t.homeAddress, o].filter(Boolean).join(", ");
|
|
5
|
+
return [
|
|
6
|
+
r ? n.applicantBornTemplate(r) : "",
|
|
7
|
+
a ? n.applicantSsnEndingTemplate(a) : "",
|
|
8
|
+
s
|
|
9
|
+
].filter(Boolean).join(n.applicantSummarySeparator);
|
|
10
|
+
}
|
|
11
|
+
export { t as buildApplicantOwnerSummary };
|
|
@@ -2,8 +2,8 @@ import { OnboardingSuppressionReason as e } from "../../../../../shared/data-acc
|
|
|
2
2
|
import "../../../../../shared/data-access/dist/index.js";
|
|
3
3
|
import { deniedNoticeExpiresAt as t } from "../../../../../shared/feature/dist/lib/application/bankAccountApplication.js";
|
|
4
4
|
import "../../../../../shared/feature/dist/index.js";
|
|
5
|
-
import { interpolateBankName as n } from "../../../../ui/dist/
|
|
6
|
-
import { ApplicationStatusTone as r } from "../../../../ui/dist/
|
|
5
|
+
import { interpolateBankName as n } from "../../../../ui/dist/index12.js";
|
|
6
|
+
import { ApplicationStatusTone as r } from "../../../../ui/dist/index15.js";
|
|
7
7
|
import "../../../../ui/dist/index.js";
|
|
8
8
|
import { APPLICATION_STATUS_LABELS_EN as i } from "./labels.js";
|
|
9
9
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BUSINESS_DETAILS_LABELS_EN as e } from "../../../../ui/dist/
|
|
2
|
-
import { BUSINESS_DETAILS_PANEL_LABELS_EN as t } from "../../../../ui/dist/
|
|
1
|
+
import { BUSINESS_DETAILS_LABELS_EN as e } from "../../../../ui/dist/index12.js";
|
|
2
|
+
import { BUSINESS_DETAILS_PANEL_LABELS_EN as t } from "../../../../ui/dist/index23.js";
|
|
3
3
|
import "../../../../ui/dist/index.js";
|
|
4
4
|
import { maskIdentifierLast4 as n } from "./fieldInput/maskIdentifierLast4.js";
|
|
5
5
|
import { storedIdentifierFieldDisplay as r, usableStoredTaxIdLast4 as i } from "./fieldInput/storedIdentifier.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ADDITIONAL_OWNERS_LABELS_EN as e } from "../../../../ui/dist/
|
|
2
|
-
import { BUSINESS_DETAILS_LABELS_EN as t } from "../../../../ui/dist/
|
|
3
|
-
import { PERSONAL_DETAILS_LABELS_EN as n } from "../../../../ui/dist/
|
|
1
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as e } from "../../../../ui/dist/index9.js";
|
|
2
|
+
import { BUSINESS_DETAILS_LABELS_EN as t } from "../../../../ui/dist/index12.js";
|
|
3
|
+
import { PERSONAL_DETAILS_LABELS_EN as n } from "../../../../ui/dist/index13.js";
|
|
4
4
|
import "../../../../ui/dist/index.js";
|
|
5
5
|
import { isIdentifierEnteredOrStored as r, usableStoredTaxIdLast4 as i } from "./fieldInput/storedIdentifier.js";
|
|
6
6
|
import { buildAdditionalOwnerSchema as a, buildBusinessDetailsPanelFieldsSchema as o, buildPersonalDetailsSchema as s } from "./stepSchemas.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RESULT_LABELS_EN as e } from "../../../../ui/dist/
|
|
1
|
+
import { RESULT_LABELS_EN as e } from "../../../../ui/dist/index20.js";
|
|
2
2
|
import "../../../../ui/dist/index.js";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js
|
|
4
4
|
function t({ applicantName: e, submittedOn: t }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PERSONAL_DETAILS_LABELS_EN as e } from "../../../../ui/dist/
|
|
2
|
-
import { ABOUT_YOU_PANEL_LABELS_EN as t } from "../../../../ui/dist/
|
|
1
|
+
import { PERSONAL_DETAILS_LABELS_EN as e } from "../../../../ui/dist/index13.js";
|
|
2
|
+
import { ABOUT_YOU_PANEL_LABELS_EN as t } from "../../../../ui/dist/index27.js";
|
|
3
3
|
import "../../../../ui/dist/index.js";
|
|
4
4
|
import { maskIdentifierLast4 as n } from "./fieldInput/maskIdentifierLast4.js";
|
|
5
5
|
import { storedIdentifierFieldDisplay as r } from "./fieldInput/storedIdentifier.js";
|
|
@@ -40,13 +40,7 @@ function d(e) {
|
|
|
40
40
|
statePlaceholder: n.statePlaceholder,
|
|
41
41
|
zipCode: n.zipCode,
|
|
42
42
|
mobilePhoneNumber: n.mobilePhoneNumber,
|
|
43
|
-
workEmail: n.workEmail
|
|
44
|
-
ownsOver25Question: n.ownsOver25Question,
|
|
45
|
-
ownsOver25SummaryLabel: n.ownsOver25SummaryLabel,
|
|
46
|
-
ownsOver25Yes: n.ownsOver25Yes,
|
|
47
|
-
ownsOver25No: n.ownsOver25No,
|
|
48
|
-
ownershipPercentage: n.ownershipPercentage,
|
|
49
|
-
ownershipPercentagePlaceholder: n.ownershipPercentagePlaceholder
|
|
43
|
+
workEmail: n.workEmail
|
|
50
44
|
};
|
|
51
45
|
}
|
|
52
46
|
function f(e, t) {
|
|
@@ -102,11 +96,6 @@ function f(e, t) {
|
|
|
102
96
|
label: r.workEmail,
|
|
103
97
|
value: e.workEmail,
|
|
104
98
|
testId: "about-you-summary-email"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
label: r.ownershipPercentage,
|
|
108
|
-
value: e.ownershipPercentage === null ? "" : `${e.ownershipPercentage}%`,
|
|
109
|
-
testId: "about-you-summary-ownership-percentage"
|
|
110
99
|
}
|
|
111
100
|
];
|
|
112
101
|
}
|
|
@@ -156,18 +145,6 @@ function p(e, t, n) {
|
|
|
156
145
|
workEmail: {
|
|
157
146
|
value: e.workEmail,
|
|
158
147
|
onValueChange: r("workEmail")
|
|
159
|
-
},
|
|
160
|
-
ownsOver25Percent: {
|
|
161
|
-
value: e.ownsOver25Percent === null ? "" : e.ownsOver25Percent ? "yes" : "no",
|
|
162
|
-
onValueChange: (n) => t({
|
|
163
|
-
...e,
|
|
164
|
-
ownsOver25Percent: n === "" ? null : n === "yes",
|
|
165
|
-
ownershipPercentage: n === "yes" ? e.ownershipPercentage : null
|
|
166
|
-
})
|
|
167
|
-
},
|
|
168
|
-
ownershipPercentage: {
|
|
169
|
-
value: e.ownershipPercentage,
|
|
170
|
-
onValueChange: r("ownershipPercentage")
|
|
171
148
|
}
|
|
172
149
|
};
|
|
173
150
|
}
|
|
@@ -56,16 +56,12 @@ function p(t) {
|
|
|
56
56
|
zipCode: o.string().min(5, { message: t.zipCodeInvalid }),
|
|
57
57
|
mobilePhoneNumber: o.string().refine((e) => n(e).length === 10, { message: t.mobilePhoneNumberInvalid }),
|
|
58
58
|
workEmail: o.email({ message: t.workEmailInvalid }),
|
|
59
|
-
ownsOver25Percent: o.boolean(),
|
|
60
|
-
ownershipPercentage: o.number().
|
|
59
|
+
ownsOver25Percent: o.boolean().nullable(),
|
|
60
|
+
ownershipPercentage: o.number().nullable()
|
|
61
61
|
}).refine((t) => e(t.ssn, t.ssnOnFileLast4), {
|
|
62
62
|
message: t.ssnInvalid,
|
|
63
63
|
path: ["ssn"],
|
|
64
64
|
...s
|
|
65
|
-
}).refine((e) => e.ownsOver25Percent !== !0 || e.ownershipPercentage !== null && e.ownershipPercentage >= 25 && e.ownershipPercentage <= 100, {
|
|
66
|
-
message: t.ownershipPercentageRangeError,
|
|
67
|
-
path: ["ownershipPercentage"],
|
|
68
|
-
...s
|
|
69
65
|
});
|
|
70
66
|
}
|
|
71
67
|
function m(t) {
|
|
@@ -23,7 +23,9 @@ var e = {
|
|
|
23
23
|
aboutYouEditButton: "about-you-edit-button",
|
|
24
24
|
aboutYouSummary: "about-you-summary",
|
|
25
25
|
aboutYouEditForm: "about-you-edit-form",
|
|
26
|
-
|
|
26
|
+
ownersApplicantQuestion: "owners-applicant-question",
|
|
27
|
+
ownersApplicantEditor: "owners-applicant-editor",
|
|
28
|
+
ownersApplicantEditorSave: "owners-applicant-editor-save",
|
|
27
29
|
addOwnerButton: "bank-account-onboarding-add-owner-button",
|
|
28
30
|
ownerDeleteConfirmation: "additional-owner-delete-confirmation",
|
|
29
31
|
ownerDeleteContent: "additional-owner-delete-content",
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ADDITIONAL_OWNERS_LABELS_EN as e } from "./
|
|
2
|
-
import { AdditionalOwnerRowStatus as t } from "./
|
|
3
|
-
import { AdditionalOwnersForm as n } from "./
|
|
4
|
-
import { BUSINESS_DETAILS_LABELS_EN as r, interpolateBankName as i } from "./
|
|
5
|
-
import { PERSONAL_DETAILS_LABELS_EN as a } from "./
|
|
6
|
-
import "./
|
|
7
|
-
import { ApplicationStatusCard as o, ApplicationStatusTone as s } from "./
|
|
8
|
-
import { ResultStep as c } from "./
|
|
9
|
-
import { RESULT_LABELS_EN as l } from "./
|
|
10
|
-
import { BUSINESS_DETAILS_PANEL_LABELS_EN as u } from "./
|
|
11
|
-
import { BusinessDetailsPanel as d } from "./
|
|
12
|
-
import { ABOUT_YOU_PANEL_LABELS_EN as f } from "./
|
|
13
|
-
import { AboutYouPanel as p } from "./
|
|
14
|
-
import { BusinessDisclosuresSection as m } from "./
|
|
15
|
-
import "./
|
|
16
|
-
import { ApplicationReview as h } from "./
|
|
17
|
-
import "./
|
|
18
|
-
import { DeleteApplicationDialog as g } from "./
|
|
19
|
-
import "./
|
|
20
|
-
import { ApplicationDeletedScreen as _ } from "./
|
|
1
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as e } from "./index9.js";
|
|
2
|
+
import { AdditionalOwnerRowStatus as t } from "./index10.js";
|
|
3
|
+
import { AdditionalOwnersForm as n } from "./index11.js";
|
|
4
|
+
import { BUSINESS_DETAILS_LABELS_EN as r, interpolateBankName as i } from "./index12.js";
|
|
5
|
+
import { PERSONAL_DETAILS_LABELS_EN as a } from "./index13.js";
|
|
6
|
+
import "./index14.js";
|
|
7
|
+
import { ApplicationStatusCard as o, ApplicationStatusTone as s } from "./index15.js";
|
|
8
|
+
import { ResultStep as c } from "./index19.js";
|
|
9
|
+
import { RESULT_LABELS_EN as l } from "./index20.js";
|
|
10
|
+
import { BUSINESS_DETAILS_PANEL_LABELS_EN as u } from "./index23.js";
|
|
11
|
+
import { BusinessDetailsPanel as d } from "./index24.js";
|
|
12
|
+
import { ABOUT_YOU_PANEL_LABELS_EN as f } from "./index27.js";
|
|
13
|
+
import { AboutYouPanel as p } from "./index28.js";
|
|
14
|
+
import { BusinessDisclosuresSection as m } from "./index29.js";
|
|
15
|
+
import "./index30.js";
|
|
16
|
+
import { ApplicationReview as h } from "./index31.js";
|
|
17
|
+
import "./index32.js";
|
|
18
|
+
import { DeleteApplicationDialog as g } from "./index33.js";
|
|
19
|
+
import "./index34.js";
|
|
20
|
+
import { ApplicationDeletedScreen as _ } from "./index35.js";
|
|
21
21
|
export { f as ABOUT_YOU_PANEL_LABELS_EN, e as ADDITIONAL_OWNERS_LABELS_EN, p as AboutYouPanel, t as AdditionalOwnerRowStatus, n as AdditionalOwnersForm, _ as ApplicationDeletedScreen, h as ApplicationReview, o as ApplicationStatusCard, s as ApplicationStatusTone, r as BUSINESS_DETAILS_LABELS_EN, u as BUSINESS_DETAILS_PANEL_LABELS_EN, d as BusinessDetailsPanel, m as BusinessDisclosuresSection, g as DeleteApplicationDialog, a as PERSONAL_DETAILS_LABELS_EN, l as RESULT_LABELS_EN, c as ResultStep, i as interpolateBankName };
|