@tesouro/embedded-components-react 0.5.36 → 0.5.37
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 +14 -14
- package/dist/index.d.ts +41 -3
- package/dist/index.js +5 -5
- package/dist/lib/BankAccountOnboardingWidget.d.ts +41 -3
- package/dist/lib/BankAccountOnboardingWidget.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +184 -109
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index11.js +29 -174
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +117 -67
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +137 -44
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js +77 -107
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js +84 -87
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +116 -88
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +99 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +100 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index19.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index20.js +26 -383
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index21.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +407 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index6.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index7.js +22 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index8.js +11 -182
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index9.js +8 -29
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +34 -91
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +96 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +4 -175
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +180 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +31 -21
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +21 -65
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +60 -215
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +230 -29
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +32 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +26 -71
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +71 -82
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +87 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +38 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +2 -46
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +48 -139
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +138 -48
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +47 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +32 -33
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +31 -38
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Checkbox as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BUSINESS_DETAILS_LABELS_EN as t, interpolateBankName as n } from "./index7.js";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js
|
|
5
|
+
var a = "ttw:cursor-pointer ttw:text-primary ttw:underline ttw:underline-offset-2";
|
|
6
|
+
function o({ href: e, children: t }) {
|
|
7
|
+
return e ? /* @__PURE__ */ r("a", {
|
|
8
|
+
href: e,
|
|
9
|
+
target: "_blank",
|
|
10
|
+
rel: "noopener noreferrer",
|
|
11
|
+
className: a,
|
|
12
|
+
children: t
|
|
13
|
+
}) : /* @__PURE__ */ r("span", {
|
|
14
|
+
className: a,
|
|
15
|
+
children: t
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function s({ value: a, onChange: s, isSubmitting: c, labels: l, bankName: u, termsHref: d, privacyHref: f, electronicCommunicationHref: p, patriotActHref: m, testIds: h }) {
|
|
19
|
+
let g = {
|
|
20
|
+
...t,
|
|
21
|
+
...l,
|
|
22
|
+
companyStructureOptions: {
|
|
23
|
+
...t.companyStructureOptions,
|
|
24
|
+
...l?.companyStructureOptions ?? {}
|
|
25
|
+
}
|
|
26
|
+
}, _ = (e, t) => s({
|
|
27
|
+
...a,
|
|
28
|
+
[e]: t
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ i("div", {
|
|
31
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
32
|
+
children: [/* @__PURE__ */ i("div", {
|
|
33
|
+
className: "ttw:flex ttw:items-start ttw:gap-2",
|
|
34
|
+
children: [/* @__PURE__ */ r(e, {
|
|
35
|
+
id: "isAuthorized",
|
|
36
|
+
"data-testid": h?.authorizationCheckbox,
|
|
37
|
+
checked: a.isAuthorized === !0,
|
|
38
|
+
onCheckedChange: (e) => _("isAuthorized", e === !0 || null),
|
|
39
|
+
disabled: c,
|
|
40
|
+
className: "ttw:mt-0.5",
|
|
41
|
+
"aria-labelledby": "bank-account-onboarding-authorization-text"
|
|
42
|
+
}), /* @__PURE__ */ r("p", {
|
|
43
|
+
id: "bank-account-onboarding-authorization-text",
|
|
44
|
+
className: "ttw:text-sm ttw:font-normal ttw:leading-snug",
|
|
45
|
+
children: g.isAuthorizedQuestion
|
|
46
|
+
})]
|
|
47
|
+
}), /* @__PURE__ */ i("div", {
|
|
48
|
+
className: "ttw:flex ttw:items-start ttw:gap-2",
|
|
49
|
+
children: [/* @__PURE__ */ r(e, {
|
|
50
|
+
id: "isCheckboxChecked",
|
|
51
|
+
"data-testid": h?.disclosureCheckbox,
|
|
52
|
+
checked: a.isCheckboxChecked,
|
|
53
|
+
onCheckedChange: (e) => _("isCheckboxChecked", e === !0),
|
|
54
|
+
disabled: c,
|
|
55
|
+
className: "ttw:mt-0.5",
|
|
56
|
+
"aria-labelledby": "bank-account-onboarding-disclosure-text"
|
|
57
|
+
}), /* @__PURE__ */ i("p", {
|
|
58
|
+
id: "bank-account-onboarding-disclosure-text",
|
|
59
|
+
className: "ttw:text-sm ttw:font-normal ttw:leading-snug",
|
|
60
|
+
children: [
|
|
61
|
+
n(g.acceptDisclosuresPrefix, u),
|
|
62
|
+
/* @__PURE__ */ r(o, {
|
|
63
|
+
href: d,
|
|
64
|
+
children: g.termsOfUse
|
|
65
|
+
}),
|
|
66
|
+
g.acceptDisclosuresTermsPrivacyJoin,
|
|
67
|
+
/* @__PURE__ */ r(o, {
|
|
68
|
+
href: f,
|
|
69
|
+
children: g.privacyPolicy
|
|
70
|
+
}),
|
|
71
|
+
n(g.acceptDisclosuresAfterPrivacy, u),
|
|
72
|
+
/* @__PURE__ */ r(o, {
|
|
73
|
+
href: p,
|
|
74
|
+
children: g.electronicCommunication
|
|
75
|
+
}),
|
|
76
|
+
n(g.acceptDisclosuresAfterElectronic, u),
|
|
77
|
+
/* @__PURE__ */ r(o, {
|
|
78
|
+
href: m,
|
|
79
|
+
children: g.patriotAct
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
})]
|
|
83
|
+
})]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
export { s as BusinessDisclosuresSection };
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js
CHANGED
|
@@ -95,34 +95,44 @@ function w({ fields: o, display: w, isExisting: T, isValid: E, isDisabled: D, la
|
|
|
95
95
|
children: O.dateOfBirthMinAgeError
|
|
96
96
|
}) : null
|
|
97
97
|
] }),
|
|
98
|
-
/* @__PURE__ */ g("div", { children: [
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
98
|
+
/* @__PURE__ */ g("div", { children: [
|
|
99
|
+
/* @__PURE__ */ g(S, {
|
|
100
|
+
htmlFor: "owner-ssn",
|
|
101
|
+
children: [O.ssn, w.ssnRequired ? O.requiredFieldMarker : null]
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ g("div", {
|
|
104
|
+
className: "ttw:flex ttw:gap-2",
|
|
105
|
+
children: [/* @__PURE__ */ h(n, {
|
|
106
|
+
id: "owner-ssn",
|
|
107
|
+
className: "ttw:flex-1 ttw:font-mono ttw:tracking-wider",
|
|
108
|
+
type: "text",
|
|
109
|
+
value: R ? w.ssnMaskedDisplay : w.ssnFormattedDisplay,
|
|
110
|
+
onChange: (e) => o.ssn.onValueChange(e.target.value),
|
|
111
|
+
onFocus: () => L(!0),
|
|
112
|
+
onBlur: () => L(!1),
|
|
113
|
+
disabled: D,
|
|
114
|
+
autoComplete: "off",
|
|
115
|
+
inputMode: "numeric",
|
|
116
|
+
maxLength: 11,
|
|
117
|
+
required: w.ssnRequired,
|
|
118
|
+
placeholder: w.ssnPlaceholder,
|
|
119
|
+
"aria-describedby": w.ssnHelpText ? "owner-ssn-on-file" : void 0
|
|
120
|
+
}), /* @__PURE__ */ h(e, {
|
|
121
|
+
type: "button",
|
|
122
|
+
variant: "outline",
|
|
123
|
+
size: "icon",
|
|
124
|
+
onClick: P,
|
|
125
|
+
disabled: D,
|
|
126
|
+
"aria-label": N,
|
|
127
|
+
children: h(M ? v : _, { className: "ttw:size-4" })
|
|
128
|
+
})]
|
|
129
|
+
}),
|
|
130
|
+
w.ssnHelpText ? /* @__PURE__ */ h("p", {
|
|
131
|
+
id: "owner-ssn-on-file",
|
|
132
|
+
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
133
|
+
children: w.ssnHelpText
|
|
134
|
+
}) : null
|
|
135
|
+
] }),
|
|
126
136
|
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ g(S, {
|
|
127
137
|
htmlFor: "owner-home-address",
|
|
128
138
|
children: [O.homeAddress, O.requiredFieldMarker]
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js
CHANGED
|
@@ -1,48 +1,4 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js
|
|
2
|
-
var e = {
|
|
3
|
-
heading: "Owners",
|
|
4
|
-
subheading: "List everyone who owns 25% or more of the business.",
|
|
5
|
-
primaryOwnerShareLabel: "Ownership share",
|
|
6
|
-
emptyOwnersText: "No beneficial owners",
|
|
7
|
-
addOwner: "Add owner",
|
|
8
|
-
edit: "Edit",
|
|
9
|
-
remove: "Remove",
|
|
10
|
-
cancel: "Cancel",
|
|
11
|
-
save: "Save owner",
|
|
12
|
-
close: "Close",
|
|
13
|
-
addOwnerSubmit: "Add owner",
|
|
14
|
-
saveOwnerSubmit: "Save owner",
|
|
15
|
-
ownerNameColumn: "Name",
|
|
16
|
-
ownerShareColumn: "Share",
|
|
17
|
-
ownerActionsColumn: "Actions",
|
|
18
|
-
formHeadingAdd: "Add additional owner",
|
|
19
|
-
formHeadingEdit: "Edit additional owner",
|
|
20
|
-
firstName: "First name",
|
|
21
|
-
lastName: "Last name",
|
|
22
|
-
dateOfBirth: "Date of birth",
|
|
23
|
-
dateOfBirthPlaceholder: "Pick a date",
|
|
24
|
-
dateOfBirthMinAgeError: "Owner must be at least 18 years old",
|
|
25
|
-
ssn: "SSN",
|
|
26
|
-
ssnInvalid: "SSN must be 9 digits",
|
|
27
|
-
ssnShow: "Show SSN",
|
|
28
|
-
ssnHide: "Hide SSN",
|
|
29
|
-
homeAddress: "Home address",
|
|
30
|
-
city: "City",
|
|
31
|
-
state: "State",
|
|
32
|
-
statePlaceholder: "Select state",
|
|
33
|
-
zipCode: "ZIP code",
|
|
34
|
-
mobilePhoneNumber: "Mobile phone number",
|
|
35
|
-
mobilePhoneNumberInvalid: "Phone must be 10 digits",
|
|
36
|
-
ownershipPercentage: "What percentage of business do you own? (minimum 25%)",
|
|
37
|
-
ownershipPercentagePlaceholder: "e.g., 25",
|
|
38
|
-
ownershipPercentageMinError: "Owners must have 25% or more",
|
|
39
|
-
requiredFieldMarker: " *",
|
|
40
|
-
percentSuffix: "%",
|
|
41
|
-
deleteOwnerHeading: "Delete owner profile?",
|
|
42
|
-
deleteOwnerPromptBeforeName: "Are you sure you want to delete profile",
|
|
43
|
-
deleteOwnerPromptAfterName: "as a business owner?",
|
|
44
|
-
deleteOwnerConfirm: "Delete",
|
|
45
|
-
totalOwnershipExceedsTemplate: (e) => `Total ownership exceeds 100%. Current total: ${e}%`
|
|
46
|
-
};
|
|
2
|
+
var e = (e) => `Ending in ${e}. Leave blank to keep it, or enter it again to change it.`;
|
|
47
3
|
//#endregion
|
|
48
|
-
export { e as
|
|
4
|
+
export { e as IDENTIFIER_ON_FILE_TEMPLATE_EN };
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js
CHANGED
|
@@ -1,141 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ADDITIONAL_OWNERS_LABELS_EN as l } from "./index4.js";
|
|
3
|
-
import { AdditionalOwnerDeleteOverlay as u } from "./index2.js";
|
|
4
|
-
import { AdditionalOwnerFormOverlay as d } from "./index3.js";
|
|
5
|
-
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
6
|
-
import { PencilIcon as m, PlusIcon as h, Trash2Icon as g } from "lucide-react";
|
|
1
|
+
import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index4.js";
|
|
7
2
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/* @__PURE__ */ f(a, {
|
|
55
|
-
className: "ttw:px-4",
|
|
56
|
-
children: e.name
|
|
57
|
-
}),
|
|
58
|
-
/* @__PURE__ */ f(a, {
|
|
59
|
-
className: "ttw:px-4",
|
|
60
|
-
children: e.shareDisplay
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ f(a, {
|
|
63
|
-
className: "ttw:px-4 ttw:text-right",
|
|
64
|
-
children: /* @__PURE__ */ p("div", {
|
|
65
|
-
className: "ttw:flex ttw:justify-end ttw:gap-2",
|
|
66
|
-
children: [/* @__PURE__ */ f(n, {
|
|
67
|
-
type: "button",
|
|
68
|
-
variant: "ghost",
|
|
69
|
-
size: "icon-sm",
|
|
70
|
-
"aria-label": N.edit,
|
|
71
|
-
onClick: () => w(t),
|
|
72
|
-
disabled: A || P,
|
|
73
|
-
children: /* @__PURE__ */ f(m, { className: "ttw:size-4" })
|
|
74
|
-
}), /* @__PURE__ */ f(n, {
|
|
75
|
-
type: "button",
|
|
76
|
-
variant: "ghost",
|
|
77
|
-
size: "icon-sm",
|
|
78
|
-
"aria-label": N.remove,
|
|
79
|
-
onClick: () => T(t),
|
|
80
|
-
disabled: A || P,
|
|
81
|
-
children: /* @__PURE__ */ f(g, { className: "ttw:size-4" })
|
|
82
|
-
})]
|
|
83
|
-
})
|
|
84
|
-
})
|
|
85
|
-
]
|
|
86
|
-
}, t)),
|
|
87
|
-
!b && _.length === 0 ? /* @__PURE__ */ f(c, {
|
|
88
|
-
className: "ttw:hover:bg-transparent",
|
|
89
|
-
children: /* @__PURE__ */ f(a, {
|
|
90
|
-
colSpan: 3,
|
|
91
|
-
className: "ttw:px-4 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
|
|
92
|
-
children: N.emptyOwnersText
|
|
93
|
-
})
|
|
94
|
-
}) : null
|
|
95
|
-
] })] })
|
|
96
|
-
}), P ? null : /* @__PURE__ */ p(n, {
|
|
97
|
-
type: "button",
|
|
98
|
-
variant: "ghost",
|
|
99
|
-
onClick: C,
|
|
100
|
-
disabled: S || A,
|
|
101
|
-
"data-testid": M?.addOwnerButton,
|
|
102
|
-
className: "ttw:h-auto ttw:w-fit ttw:justify-start ttw:gap-1.5 ttw:px-0 ttw:has-[>svg]:px-0 ttw:pl-4 ttw:font-normal ttw:text-primary ttw:hover:bg-transparent ttw:hover:text-primary/90",
|
|
103
|
-
children: [/* @__PURE__ */ f(h, { className: "ttw:size-4" }), N.addOwner]
|
|
104
|
-
})]
|
|
105
|
-
}),
|
|
106
|
-
x ? /* @__PURE__ */ f(e, {
|
|
107
|
-
variant: "destructive",
|
|
108
|
-
children: /* @__PURE__ */ f(t, { children: x })
|
|
109
|
-
}) : null,
|
|
110
|
-
k ? /* @__PURE__ */ f(d, {
|
|
111
|
-
fields: k.fields,
|
|
112
|
-
display: k.display,
|
|
113
|
-
isExisting: k.isExisting,
|
|
114
|
-
isValid: k.isValid,
|
|
115
|
-
isDisabled: A,
|
|
116
|
-
labels: N,
|
|
117
|
-
onCancel: k.onCancel,
|
|
118
|
-
onSubmit: k.onSubmit,
|
|
119
|
-
onClose: k.onCancel,
|
|
120
|
-
ssnRevealed: k.ssnRevealed,
|
|
121
|
-
ssnToggleAriaLabel: k.ssnToggleAriaLabel,
|
|
122
|
-
onToggleSsnVisibility: k.onToggleSsnVisibility,
|
|
123
|
-
testIds: { overlay: M?.overlay }
|
|
124
|
-
}) : null,
|
|
125
|
-
E ? /* @__PURE__ */ f(u, {
|
|
126
|
-
ownerName: E,
|
|
127
|
-
labels: N,
|
|
128
|
-
isDisabled: A,
|
|
129
|
-
onCancel: O,
|
|
130
|
-
onConfirm: D,
|
|
131
|
-
onClose: O,
|
|
132
|
-
testIds: {
|
|
133
|
-
...M?.deleteOverlay,
|
|
134
|
-
overlay: M?.overlay
|
|
135
|
-
}
|
|
136
|
-
}) : null
|
|
137
|
-
]
|
|
138
|
-
});
|
|
139
|
-
}
|
|
3
|
+
var t = {
|
|
4
|
+
heading: "Owners",
|
|
5
|
+
subheading: "List everyone who owns 25% or more of the business.",
|
|
6
|
+
primaryOwnerShareLabel: "Ownership share",
|
|
7
|
+
emptyOwnersText: "No beneficial owners",
|
|
8
|
+
addOwner: "Add owner",
|
|
9
|
+
edit: "Edit",
|
|
10
|
+
remove: "Remove",
|
|
11
|
+
cancel: "Cancel",
|
|
12
|
+
save: "Save owner",
|
|
13
|
+
close: "Close",
|
|
14
|
+
addOwnerSubmit: "Add owner",
|
|
15
|
+
saveOwnerSubmit: "Save owner",
|
|
16
|
+
ownerNameColumn: "Name",
|
|
17
|
+
ownerShareColumn: "Share",
|
|
18
|
+
ownerActionsColumn: "Actions",
|
|
19
|
+
formHeadingAdd: "Add additional owner",
|
|
20
|
+
formHeadingEdit: "Edit additional owner",
|
|
21
|
+
firstName: "First name",
|
|
22
|
+
lastName: "Last name",
|
|
23
|
+
dateOfBirth: "Date of birth",
|
|
24
|
+
dateOfBirthPlaceholder: "Pick a date",
|
|
25
|
+
dateOfBirthMinAgeError: "Owner must be at least 18 years old",
|
|
26
|
+
ssn: "SSN",
|
|
27
|
+
ssnOnFileTemplate: e,
|
|
28
|
+
ssnInvalid: "SSN must be 9 digits",
|
|
29
|
+
ssnShow: "Show SSN",
|
|
30
|
+
ssnHide: "Hide SSN",
|
|
31
|
+
homeAddress: "Home address",
|
|
32
|
+
city: "City",
|
|
33
|
+
state: "State",
|
|
34
|
+
statePlaceholder: "Select state",
|
|
35
|
+
zipCode: "ZIP code",
|
|
36
|
+
mobilePhoneNumber: "Mobile phone number",
|
|
37
|
+
mobilePhoneNumberInvalid: "Phone must be 10 digits",
|
|
38
|
+
ownershipPercentage: "What percentage of business do you own? (minimum 25%)",
|
|
39
|
+
ownershipPercentagePlaceholder: "e.g., 25",
|
|
40
|
+
ownershipPercentageMinError: "Owners must have 25% or more",
|
|
41
|
+
requiredFieldMarker: " *",
|
|
42
|
+
percentSuffix: "%",
|
|
43
|
+
deleteOwnerHeading: "Delete owner profile?",
|
|
44
|
+
deleteOwnerPromptBeforeName: "Are you sure you want to delete profile",
|
|
45
|
+
deleteOwnerPromptAfterName: "as a business owner?",
|
|
46
|
+
deleteOwnerConfirm: "Delete",
|
|
47
|
+
totalOwnershipExceedsTemplate: (e) => `Total ownership exceeds 100%. Current total: ${e}%`
|
|
48
|
+
};
|
|
140
49
|
//#endregion
|
|
141
|
-
export {
|
|
50
|
+
export { t as ADDITIONAL_OWNERS_LABELS_EN };
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js
CHANGED
|
@@ -1,51 +1,141 @@
|
|
|
1
|
+
import { Alert as e, AlertDescription as t, Button as n, Table as r, TableBody as i, TableCell as a, TableHead as o, TableHeader as s, TableRow as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as l } from "./index5.js";
|
|
3
|
+
import { AdditionalOwnerDeleteOverlay as u } from "./index2.js";
|
|
4
|
+
import { AdditionalOwnerFormOverlay as d } from "./index3.js";
|
|
5
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
6
|
+
import { PencilIcon as m, PlusIcon as h, Trash2Icon as g } from "lucide-react";
|
|
1
7
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js
|
|
2
|
-
function
|
|
3
|
-
|
|
8
|
+
function _({ ownerRows: _, primaryOwnerName: v, primaryOwnerShareDisplay: y, showPrimaryOwner: b = !0, totalOwnershipError: x, addOwnerDisabled: S, onAddOwner: C, onEditOwner: w, onDeleteOwnerRequest: T, deletingOwnerName: E, onDeleteOwnerConfirm: D, onDeleteOwnerCancel: O, editingOverlay: k, isSubmitting: A, labels: j, testIds: M }) {
|
|
9
|
+
let N = {
|
|
10
|
+
...l,
|
|
11
|
+
...j
|
|
12
|
+
}, P = k !== null || E !== null;
|
|
13
|
+
return /* @__PURE__ */ p("div", {
|
|
14
|
+
className: "ttw:relative ttw:flex ttw:flex-col ttw:gap-6",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ p("div", {
|
|
17
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
18
|
+
children: [/* @__PURE__ */ f("div", {
|
|
19
|
+
className: "ttw:overflow-hidden ttw:rounded-md ttw:border ttw:border-border",
|
|
20
|
+
children: /* @__PURE__ */ p(r, { children: [/* @__PURE__ */ f(s, { children: /* @__PURE__ */ p(c, {
|
|
21
|
+
className: "ttw:border-border ttw:bg-muted ttw:hover:bg-muted",
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ f(o, {
|
|
24
|
+
className: "ttw:px-4 ttw:py-3",
|
|
25
|
+
children: N.ownerNameColumn
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ f(o, {
|
|
28
|
+
className: "ttw:px-4 ttw:py-3",
|
|
29
|
+
children: N.ownerShareColumn
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ f(o, {
|
|
32
|
+
className: "ttw:px-4 ttw:py-3 ttw:text-right",
|
|
33
|
+
children: N.ownerActionsColumn
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
}) }), /* @__PURE__ */ p(i, { children: [
|
|
37
|
+
b ? /* @__PURE__ */ p(c, {
|
|
38
|
+
className: "ttw:hover:bg-transparent",
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ f(a, {
|
|
41
|
+
className: "ttw:px-4",
|
|
42
|
+
children: v
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ f(a, {
|
|
45
|
+
className: "ttw:px-4",
|
|
46
|
+
children: y
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ f(a, { className: "ttw:px-4" })
|
|
49
|
+
]
|
|
50
|
+
}) : null,
|
|
51
|
+
_.map((e, t) => /* @__PURE__ */ p(c, {
|
|
52
|
+
className: "ttw:hover:bg-transparent",
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ f(a, {
|
|
55
|
+
className: "ttw:px-4",
|
|
56
|
+
children: e.name
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ f(a, {
|
|
59
|
+
className: "ttw:px-4",
|
|
60
|
+
children: e.shareDisplay
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ f(a, {
|
|
63
|
+
className: "ttw:px-4 ttw:text-right",
|
|
64
|
+
children: /* @__PURE__ */ p("div", {
|
|
65
|
+
className: "ttw:flex ttw:justify-end ttw:gap-2",
|
|
66
|
+
children: [/* @__PURE__ */ f(n, {
|
|
67
|
+
type: "button",
|
|
68
|
+
variant: "ghost",
|
|
69
|
+
size: "icon-sm",
|
|
70
|
+
"aria-label": N.edit,
|
|
71
|
+
onClick: () => w(t),
|
|
72
|
+
disabled: A || P,
|
|
73
|
+
children: /* @__PURE__ */ f(m, { className: "ttw:size-4" })
|
|
74
|
+
}), /* @__PURE__ */ f(n, {
|
|
75
|
+
type: "button",
|
|
76
|
+
variant: "ghost",
|
|
77
|
+
size: "icon-sm",
|
|
78
|
+
"aria-label": N.remove,
|
|
79
|
+
onClick: () => T(t),
|
|
80
|
+
disabled: A || P,
|
|
81
|
+
children: /* @__PURE__ */ f(g, { className: "ttw:size-4" })
|
|
82
|
+
})]
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
]
|
|
86
|
+
}, t)),
|
|
87
|
+
!b && _.length === 0 ? /* @__PURE__ */ f(c, {
|
|
88
|
+
className: "ttw:hover:bg-transparent",
|
|
89
|
+
children: /* @__PURE__ */ f(a, {
|
|
90
|
+
colSpan: 3,
|
|
91
|
+
className: "ttw:px-4 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
|
|
92
|
+
children: N.emptyOwnersText
|
|
93
|
+
})
|
|
94
|
+
}) : null
|
|
95
|
+
] })] })
|
|
96
|
+
}), P ? null : /* @__PURE__ */ p(n, {
|
|
97
|
+
type: "button",
|
|
98
|
+
variant: "ghost",
|
|
99
|
+
onClick: C,
|
|
100
|
+
disabled: S || A,
|
|
101
|
+
"data-testid": M?.addOwnerButton,
|
|
102
|
+
className: "ttw:h-auto ttw:w-fit ttw:justify-start ttw:gap-1.5 ttw:px-0 ttw:has-[>svg]:px-0 ttw:pl-4 ttw:font-normal ttw:text-primary ttw:hover:bg-transparent ttw:hover:text-primary/90",
|
|
103
|
+
children: [/* @__PURE__ */ f(h, { className: "ttw:size-4" }), N.addOwner]
|
|
104
|
+
})]
|
|
105
|
+
}),
|
|
106
|
+
x ? /* @__PURE__ */ f(e, {
|
|
107
|
+
variant: "destructive",
|
|
108
|
+
children: /* @__PURE__ */ f(t, { children: x })
|
|
109
|
+
}) : null,
|
|
110
|
+
k ? /* @__PURE__ */ f(d, {
|
|
111
|
+
fields: k.fields,
|
|
112
|
+
display: k.display,
|
|
113
|
+
isExisting: k.isExisting,
|
|
114
|
+
isValid: k.isValid,
|
|
115
|
+
isDisabled: A,
|
|
116
|
+
labels: N,
|
|
117
|
+
onCancel: k.onCancel,
|
|
118
|
+
onSubmit: k.onSubmit,
|
|
119
|
+
onClose: k.onCancel,
|
|
120
|
+
ssnRevealed: k.ssnRevealed,
|
|
121
|
+
ssnToggleAriaLabel: k.ssnToggleAriaLabel,
|
|
122
|
+
onToggleSsnVisibility: k.onToggleSsnVisibility,
|
|
123
|
+
testIds: { overlay: M?.overlay }
|
|
124
|
+
}) : null,
|
|
125
|
+
E ? /* @__PURE__ */ f(u, {
|
|
126
|
+
ownerName: E,
|
|
127
|
+
labels: N,
|
|
128
|
+
isDisabled: A,
|
|
129
|
+
onCancel: O,
|
|
130
|
+
onConfirm: D,
|
|
131
|
+
onClose: O,
|
|
132
|
+
testIds: {
|
|
133
|
+
...M?.deleteOverlay,
|
|
134
|
+
overlay: M?.overlay
|
|
135
|
+
}
|
|
136
|
+
}) : null
|
|
137
|
+
]
|
|
138
|
+
});
|
|
4
139
|
}
|
|
5
|
-
var t = {
|
|
6
|
-
heading: "Tell us about your business",
|
|
7
|
-
subheading: "Provide your business details to get started.",
|
|
8
|
-
companyLegalName: "Legal company name",
|
|
9
|
-
companyDbaName: "Doing business as (optional)",
|
|
10
|
-
businessAddress: "Business address",
|
|
11
|
-
city: "City",
|
|
12
|
-
state: "State",
|
|
13
|
-
statePlaceholder: "Select state",
|
|
14
|
-
zipCode: "Postal code",
|
|
15
|
-
companyPhoneNumber: "Company phone number",
|
|
16
|
-
companyPhoneNumberInvalid: "Phone must be 10 digits",
|
|
17
|
-
companyStructure: "Company structure",
|
|
18
|
-
companyStructurePlaceholder: "Select structure",
|
|
19
|
-
website: "Website (optional)",
|
|
20
|
-
websiteInvalid: "Enter a valid website URL (no spaces).",
|
|
21
|
-
taxId: "Tax ID (EIN)",
|
|
22
|
-
taxIdInvalid: "Tax ID must be 9 digits",
|
|
23
|
-
naicsCode: "Industry (NAICS code)",
|
|
24
|
-
naicsCodePlaceholder: "Search by code or industry",
|
|
25
|
-
isAuthorizedQuestion: "I am legally authorized to view and manage financial accounts for my company.",
|
|
26
|
-
isAuthorizedYes: "Yes",
|
|
27
|
-
isAuthorizedNo: "No",
|
|
28
|
-
acceptDisclosuresPrefix: "I agree to {bankName}'s ",
|
|
29
|
-
termsOfUse: "Terms of Use",
|
|
30
|
-
privacyPolicy: "Privacy Policy",
|
|
31
|
-
acceptDisclosuresTermsPrivacyJoin: " and ",
|
|
32
|
-
acceptDisclosuresAfterPrivacy: ", and to receive electronic communication about my accounts and services per {bankName}'s ",
|
|
33
|
-
electronicCommunication: "Electronic Communications Agreement",
|
|
34
|
-
acceptDisclosuresAfterElectronic: ", and acknowledge receipt of {bankName}'s ",
|
|
35
|
-
patriotAct: "USA PATRIOT Act disclosure.",
|
|
36
|
-
companyStructureOptions: {
|
|
37
|
-
CORPORATION_PUBLIC: "Public corporation",
|
|
38
|
-
CORPORATION_PRIVATE: "Private corporation",
|
|
39
|
-
CORPORATION_NOT_FOR_PROFIT: "Not-for-profit corporation",
|
|
40
|
-
LLC: "Limited liability company (LLC)",
|
|
41
|
-
LLP: "Limited liability partnership (LLP)",
|
|
42
|
-
PARTNERSHIP: "Partnership",
|
|
43
|
-
SOLE_PROPRIETORSHIP: "Sole proprietorship",
|
|
44
|
-
GOVERNMENT: "Government",
|
|
45
|
-
COOPERATIVE: "Cooperative",
|
|
46
|
-
ASSOCIATION: "Association",
|
|
47
|
-
OTHER: "Other"
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
140
|
//#endregion
|
|
51
|
-
export {
|
|
141
|
+
export { _ as AdditionalOwnersForm };
|