@tesouro/embedded-components-react 0.5.215 → 0.5.216
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.d.ts +56 -2
- package/dist/index.js +13 -12
- package/dist/lib/BankAccountOnboardingWidget.d.ts +56 -2
- package/dist/lib/BankAccountOnboardingWidget.js +4 -3
- package/dist/lib/MarketingWidget.js +1 -1
- package/dist/lib/WidgetSuite.d.ts +53 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index11.js +72 -72
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js +60 -60
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index21.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +71 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index23.js +95 -33
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index24.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +16 -616
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index26.js +669 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +15 -13
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +52 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +31 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +33 -89
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +39 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +98 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +2 -185
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +4 -30
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +183 -21
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +26 -66
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +21 -233
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +66 -27
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +233 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +27 -72
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +26 -85
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +74 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +83 -55
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +37 -42
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +7 -33
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index5.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index6.js +157 -16
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/onboardingSuppressionReason.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +2 -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/application/bankAccountApplication.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index16.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index7.js +0 -161
|
@@ -1,235 +1,23 @@
|
|
|
1
|
-
import { Button as e, DatePicker as t, Input as n, InputGroup as r, InputGroupAddon as i, InputGroupInput as a, Label as o, RadioGroup as s, RadioGroupItem as c, Select as l, SelectContent as u, SelectItem as d, SelectTrigger as f, SelectValue as p } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { useState as m } from "react";
|
|
3
|
-
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
4
|
-
import { EyeIcon as _, EyeOffIcon as v } from "lucide-react";
|
|
5
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
onChange: (e) => x.firstName.onValueChange(e.target.value),
|
|
27
|
-
disabled: w,
|
|
28
|
-
required: !0
|
|
29
|
-
})] }),
|
|
30
|
-
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
31
|
-
htmlFor: "lastName",
|
|
32
|
-
children: C.lastName
|
|
33
|
-
}), /* @__PURE__ */ h(n, {
|
|
34
|
-
id: "lastName",
|
|
35
|
-
value: x.lastName.value,
|
|
36
|
-
onChange: (e) => x.lastName.onValueChange(e.target.value),
|
|
37
|
-
disabled: w,
|
|
38
|
-
required: !0
|
|
39
|
-
})] }),
|
|
40
|
-
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
41
|
-
htmlFor: "dateOfBirth",
|
|
42
|
-
children: C.dateOfBirth
|
|
43
|
-
}), /* @__PURE__ */ h(t, {
|
|
44
|
-
id: "dateOfBirth",
|
|
45
|
-
value: x.dateOfBirth.value,
|
|
46
|
-
onChange: x.dateOfBirth.onValueChange,
|
|
47
|
-
placeholder: C.dateOfBirthPlaceholder,
|
|
48
|
-
disabled: w,
|
|
49
|
-
maxDate: k
|
|
50
|
-
})] }),
|
|
51
|
-
/* @__PURE__ */ g("div", { children: [
|
|
52
|
-
/* @__PURE__ */ h(y, {
|
|
53
|
-
htmlFor: "ssn",
|
|
54
|
-
children: C.ssn
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ g("div", {
|
|
57
|
-
className: "ttw:flex ttw:gap-2",
|
|
58
|
-
children: [/* @__PURE__ */ h(n, {
|
|
59
|
-
id: "ssn",
|
|
60
|
-
className: "ttw:flex-1 ttw:font-mono ttw:tracking-wider",
|
|
61
|
-
type: "text",
|
|
62
|
-
value: L ? A : j,
|
|
63
|
-
onChange: (e) => x.ssn.onValueChange(e.target.value),
|
|
64
|
-
onFocus: () => I(!0),
|
|
65
|
-
onBlur: () => I(!1),
|
|
66
|
-
disabled: w,
|
|
67
|
-
autoComplete: "off",
|
|
68
|
-
inputMode: "numeric",
|
|
69
|
-
maxLength: 11,
|
|
70
|
-
required: M,
|
|
71
|
-
placeholder: N,
|
|
72
|
-
"aria-describedby": P ? "ssn-on-file" : void 0
|
|
73
|
-
}), /* @__PURE__ */ h(e, {
|
|
74
|
-
type: "button",
|
|
75
|
-
variant: "outline",
|
|
76
|
-
size: "icon",
|
|
77
|
-
onClick: D,
|
|
78
|
-
disabled: w,
|
|
79
|
-
"aria-label": E,
|
|
80
|
-
children: h(T ? v : _, { className: "ttw:size-4" })
|
|
81
|
-
})]
|
|
82
|
-
}),
|
|
83
|
-
P ? /* @__PURE__ */ h("p", {
|
|
84
|
-
id: "ssn-on-file",
|
|
85
|
-
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
86
|
-
children: P
|
|
87
|
-
}) : null
|
|
88
|
-
] }),
|
|
89
|
-
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
90
|
-
htmlFor: "homeAddress",
|
|
91
|
-
children: C.homeAddress
|
|
92
|
-
}), /* @__PURE__ */ h(n, {
|
|
93
|
-
id: "homeAddress",
|
|
94
|
-
value: x.homeAddress.value,
|
|
95
|
-
onChange: (e) => x.homeAddress.onValueChange(e.target.value),
|
|
96
|
-
disabled: w,
|
|
97
|
-
required: !0
|
|
98
|
-
})] }),
|
|
99
|
-
/* @__PURE__ */ g("div", {
|
|
100
|
-
className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
|
|
101
|
-
children: [
|
|
102
|
-
/* @__PURE__ */ g("div", {
|
|
103
|
-
className: "ttw:min-w-0",
|
|
104
|
-
children: [/* @__PURE__ */ h(y, {
|
|
105
|
-
htmlFor: "city",
|
|
106
|
-
children: C.city
|
|
107
|
-
}), /* @__PURE__ */ h(n, {
|
|
108
|
-
id: "city",
|
|
109
|
-
value: x.city.value,
|
|
110
|
-
onChange: (e) => x.city.onValueChange(e.target.value),
|
|
111
|
-
disabled: w,
|
|
112
|
-
required: !0
|
|
113
|
-
})]
|
|
114
|
-
}),
|
|
115
|
-
/* @__PURE__ */ g("div", {
|
|
116
|
-
className: "ttw:min-w-0",
|
|
117
|
-
children: [/* @__PURE__ */ h(y, {
|
|
118
|
-
htmlFor: "state",
|
|
119
|
-
children: C.state
|
|
120
|
-
}), /* @__PURE__ */ g(l, {
|
|
121
|
-
value: x.state.value,
|
|
122
|
-
onValueChange: x.state.onValueChange,
|
|
123
|
-
disabled: w,
|
|
124
|
-
children: [/* @__PURE__ */ h(f, {
|
|
125
|
-
id: "state",
|
|
126
|
-
className: b,
|
|
127
|
-
children: /* @__PURE__ */ h(p, { placeholder: C.statePlaceholder })
|
|
128
|
-
}), /* @__PURE__ */ h(u, { children: x.state.options.map((e) => /* @__PURE__ */ h(d, {
|
|
129
|
-
value: e.value,
|
|
130
|
-
children: e.label
|
|
131
|
-
}, e.value)) })]
|
|
132
|
-
})]
|
|
133
|
-
}),
|
|
134
|
-
/* @__PURE__ */ g("div", {
|
|
135
|
-
className: "ttw:min-w-0",
|
|
136
|
-
children: [/* @__PURE__ */ h(y, {
|
|
137
|
-
htmlFor: "zipCode",
|
|
138
|
-
children: C.zipCode
|
|
139
|
-
}), /* @__PURE__ */ h(n, {
|
|
140
|
-
id: "zipCode",
|
|
141
|
-
value: x.zipCode.value,
|
|
142
|
-
onChange: (e) => x.zipCode.onValueChange(e.target.value),
|
|
143
|
-
disabled: w,
|
|
144
|
-
required: !0,
|
|
145
|
-
inputMode: "numeric"
|
|
146
|
-
})]
|
|
147
|
-
})
|
|
148
|
-
]
|
|
149
|
-
}),
|
|
150
|
-
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
151
|
-
htmlFor: "mobilePhoneNumber",
|
|
152
|
-
children: C.mobilePhoneNumber
|
|
153
|
-
}), /* @__PURE__ */ h(n, {
|
|
154
|
-
id: "mobilePhoneNumber",
|
|
155
|
-
type: "tel",
|
|
156
|
-
value: x.mobilePhoneNumber.value,
|
|
157
|
-
onChange: (e) => x.mobilePhoneNumber.onValueChange(e.target.value),
|
|
158
|
-
disabled: w,
|
|
159
|
-
required: !0
|
|
160
|
-
})] }),
|
|
161
|
-
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
162
|
-
htmlFor: "workEmail",
|
|
163
|
-
children: C.workEmail
|
|
164
|
-
}), /* @__PURE__ */ h(n, {
|
|
165
|
-
id: "workEmail",
|
|
166
|
-
type: "email",
|
|
167
|
-
value: x.workEmail.value,
|
|
168
|
-
onChange: (e) => x.workEmail.onValueChange(e.target.value),
|
|
169
|
-
disabled: w,
|
|
170
|
-
required: !0
|
|
171
|
-
})] }),
|
|
172
|
-
/* @__PURE__ */ g("fieldset", {
|
|
173
|
-
"data-testid": S?.ownsOver25Question,
|
|
174
|
-
children: [/* @__PURE__ */ h("legend", {
|
|
175
|
-
id: "ownsOver25Legend",
|
|
176
|
-
className: "ttw:mb-2 ttw:text-sm ttw:font-medium",
|
|
177
|
-
children: C.ownsOver25Question
|
|
178
|
-
}), /* @__PURE__ */ g(s, {
|
|
179
|
-
value: x.ownsOver25Percent.value,
|
|
180
|
-
onValueChange: x.ownsOver25Percent.onValueChange,
|
|
181
|
-
className: "ttw:flex ttw:gap-4",
|
|
182
|
-
disabled: w,
|
|
183
|
-
"aria-labelledby": "ownsOver25Legend",
|
|
184
|
-
children: [/* @__PURE__ */ g("div", {
|
|
185
|
-
className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
|
|
186
|
-
children: [/* @__PURE__ */ h(c, {
|
|
187
|
-
value: "yes",
|
|
188
|
-
id: "ownsOver25Yes",
|
|
189
|
-
className: "ttw:cursor-pointer"
|
|
190
|
-
}), /* @__PURE__ */ h(o, {
|
|
191
|
-
htmlFor: "ownsOver25Yes",
|
|
192
|
-
className: "ttw:cursor-pointer",
|
|
193
|
-
children: C.ownsOver25Yes
|
|
194
|
-
})]
|
|
195
|
-
}), /* @__PURE__ */ g("div", {
|
|
196
|
-
className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
|
|
197
|
-
children: [/* @__PURE__ */ h(c, {
|
|
198
|
-
value: "no",
|
|
199
|
-
id: "ownsOver25No",
|
|
200
|
-
className: "ttw:cursor-pointer"
|
|
201
|
-
}), /* @__PURE__ */ h(o, {
|
|
202
|
-
htmlFor: "ownsOver25No",
|
|
203
|
-
className: "ttw:cursor-pointer",
|
|
204
|
-
children: C.ownsOver25No
|
|
205
|
-
})]
|
|
206
|
-
})]
|
|
207
|
-
})]
|
|
208
|
-
}),
|
|
209
|
-
O ? /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
210
|
-
htmlFor: "ownershipPercentage",
|
|
211
|
-
children: C.ownershipPercentage
|
|
212
|
-
}), /* @__PURE__ */ g(r, {
|
|
213
|
-
className: "ttw:w-32",
|
|
214
|
-
children: [/* @__PURE__ */ h(a, {
|
|
215
|
-
id: "ownershipPercentage",
|
|
216
|
-
type: "number",
|
|
217
|
-
min: 25,
|
|
218
|
-
max: 100,
|
|
219
|
-
"data-has-end-addon": "",
|
|
220
|
-
placeholder: C.ownershipPercentagePlaceholder,
|
|
221
|
-
value: x.ownershipPercentage.value ?? "",
|
|
222
|
-
onChange: (e) => x.ownershipPercentage.onValueChange(e.target.value === "" ? null : Number(e.target.value)),
|
|
223
|
-
disabled: w,
|
|
224
|
-
required: !0
|
|
225
|
-
}), /* @__PURE__ */ h(i, {
|
|
226
|
-
align: "inline-end",
|
|
227
|
-
"aria-hidden": !0,
|
|
228
|
-
children: "%"
|
|
229
|
-
})]
|
|
230
|
-
})] }) : null
|
|
231
|
-
]
|
|
232
|
-
});
|
|
233
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
panelTitle: "Business Details",
|
|
4
|
+
editButtonAriaLabel: "Edit business details",
|
|
5
|
+
editTooltip: "Edit business details",
|
|
6
|
+
companyLegalName: "Legal company name",
|
|
7
|
+
companyDbaName: "Doing business as (optional)",
|
|
8
|
+
businessAddress: "Business address",
|
|
9
|
+
city: "City",
|
|
10
|
+
state: "State",
|
|
11
|
+
statePlaceholder: "Select state",
|
|
12
|
+
zipCode: "Postal code",
|
|
13
|
+
companyPhoneNumber: "Company phone number",
|
|
14
|
+
companyStructure: "Company structure",
|
|
15
|
+
companyStructurePlaceholder: "Select structure",
|
|
16
|
+
website: "Website (optional)",
|
|
17
|
+
websiteInvalid: "Enter a valid website URL (no spaces).",
|
|
18
|
+
taxId: "Tax ID (EIN)",
|
|
19
|
+
naicsCode: "Industry (NAICS code)",
|
|
20
|
+
naicsCodePlaceholder: "Search by code or industry"
|
|
21
|
+
};
|
|
234
22
|
//#endregion
|
|
235
|
-
export {
|
|
23
|
+
export { e as BUSINESS_DETAILS_PANEL_LABELS_EN };
|
|
@@ -1,31 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Button as e, Tooltip as t, TooltipContent as n, TooltipProvider as r, TooltipTrigger as i, Typography as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BUSINESS_DETAILS_PANEL_LABELS_EN as o } from "./index20.js";
|
|
3
|
+
import { BusinessDetailsEditForm as s } from "./index18.js";
|
|
4
|
+
import { BusinessDetailsSummary as c } from "./index19.js";
|
|
5
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
import { Pen as d } from "lucide-react";
|
|
3
7
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
className: "ttw:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
8
|
+
function f({ isEditing: f, onEditClick: p, summaryRows: m, editFields: h, labels: g, isDisabled: _, websiteInvalid: v, taxIdRequired: y, taxIdPlaceholder: b, taxIdHelpText: x, testIds: S }) {
|
|
9
|
+
let C = {
|
|
10
|
+
...o,
|
|
11
|
+
...g
|
|
12
|
+
};
|
|
13
|
+
return f ? /* @__PURE__ */ l(s, {
|
|
14
|
+
fields: h,
|
|
15
|
+
labels: C,
|
|
16
|
+
isDisabled: _,
|
|
17
|
+
websiteInvalid: v,
|
|
18
|
+
taxIdRequired: y,
|
|
19
|
+
taxIdPlaceholder: b,
|
|
20
|
+
taxIdHelpText: x,
|
|
21
|
+
testIds: S?.editForm
|
|
22
|
+
}) : /* @__PURE__ */ u("section", {
|
|
23
|
+
"data-testid": S?.root,
|
|
24
|
+
className: "ttw:relative ttw:min-w-0 ttw:rounded-lg ttw:bg-surface-subtle ttw:p-4",
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ u("div", {
|
|
27
|
+
className: "ttw:mb-3 ttw:flex ttw:items-center ttw:justify-between ttw:gap-3",
|
|
28
|
+
children: [/* @__PURE__ */ l(a, {
|
|
29
|
+
component: "h3",
|
|
30
|
+
variant: "h6",
|
|
31
|
+
className: "ttw:font-semibold ttw:text-foreground",
|
|
32
|
+
children: C.panelTitle
|
|
33
|
+
}), /* @__PURE__ */ l(r, { children: /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ l(i, {
|
|
34
|
+
asChild: !0,
|
|
35
|
+
onFocus: (e) => {
|
|
36
|
+
e.preventDefault();
|
|
37
|
+
},
|
|
38
|
+
children: /* @__PURE__ */ l(e, {
|
|
39
|
+
type: "button",
|
|
40
|
+
variant: "ghost",
|
|
41
|
+
size: "icon-sm",
|
|
42
|
+
onClick: p,
|
|
43
|
+
disabled: _,
|
|
44
|
+
"aria-label": C.editButtonAriaLabel,
|
|
45
|
+
"data-testid": S?.editButton,
|
|
46
|
+
className: "ttw:rounded-lg ttw:bg-muted ttw:text-foreground ttw:hover:bg-primary/10 ttw:hover:text-foreground",
|
|
47
|
+
children: /* @__PURE__ */ l(d, {
|
|
48
|
+
className: "ttw:size-5",
|
|
49
|
+
"aria-hidden": !0
|
|
50
|
+
})
|
|
51
|
+
})
|
|
52
|
+
}), /* @__PURE__ */ l(n, {
|
|
53
|
+
side: "top",
|
|
54
|
+
sideOffset: 4,
|
|
55
|
+
children: C.editTooltip
|
|
56
|
+
})] }) })]
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ l("div", {
|
|
59
|
+
className: "ttw:mb-3 ttw:border-b ttw:border-border",
|
|
60
|
+
"aria-hidden": !0
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ l(c, {
|
|
63
|
+
rows: m,
|
|
64
|
+
testIds: S?.summary
|
|
65
|
+
})
|
|
66
|
+
]
|
|
28
67
|
});
|
|
29
68
|
}
|
|
30
69
|
//#endregion
|
|
31
|
-
export {
|
|
70
|
+
export { o as BUSINESS_DETAILS_PANEL_LABELS_EN, f as BusinessDetailsPanel };
|
|
@@ -1,28 +1,235 @@
|
|
|
1
|
+
import { Button as e, DatePicker as t, Input as n, InputGroup as r, InputGroupAddon as i, InputGroupInput as a, Label as o, RadioGroup as s, RadioGroupItem as c, Select as l, SelectContent as u, SelectItem as d, SelectTrigger as f, SelectValue as p } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { useState as m } from "react";
|
|
3
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
4
|
+
import { EyeIcon as _, EyeOffIcon as v } from "lucide-react";
|
|
1
5
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
6
|
+
function y({ htmlFor: e, children: t }) {
|
|
7
|
+
return /* @__PURE__ */ h(o, {
|
|
8
|
+
htmlFor: e,
|
|
9
|
+
className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
|
|
10
|
+
children: t
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
var b = "ttw:w-full";
|
|
14
|
+
function x({ fields: x, testIds: S, labels: C, isDisabled: w, ssnRevealed: T, ssnToggleAriaLabel: E, onToggleSsnVisibility: D, showOwnershipPercentage: O, maxBirthDate: k, ssnMaskedDisplay: A, ssnFormattedDisplay: j, ssnRequired: M, ssnPlaceholder: N, ssnHelpText: P }) {
|
|
15
|
+
let [F, I] = m(!1), L = !T && !F;
|
|
16
|
+
return /* @__PURE__ */ g("section", {
|
|
17
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
18
|
+
"data-testid": S?.root,
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
21
|
+
htmlFor: "firstName",
|
|
22
|
+
children: C.firstName
|
|
23
|
+
}), /* @__PURE__ */ h(n, {
|
|
24
|
+
id: "firstName",
|
|
25
|
+
value: x.firstName.value,
|
|
26
|
+
onChange: (e) => x.firstName.onValueChange(e.target.value),
|
|
27
|
+
disabled: w,
|
|
28
|
+
required: !0
|
|
29
|
+
})] }),
|
|
30
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
31
|
+
htmlFor: "lastName",
|
|
32
|
+
children: C.lastName
|
|
33
|
+
}), /* @__PURE__ */ h(n, {
|
|
34
|
+
id: "lastName",
|
|
35
|
+
value: x.lastName.value,
|
|
36
|
+
onChange: (e) => x.lastName.onValueChange(e.target.value),
|
|
37
|
+
disabled: w,
|
|
38
|
+
required: !0
|
|
39
|
+
})] }),
|
|
40
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
41
|
+
htmlFor: "dateOfBirth",
|
|
42
|
+
children: C.dateOfBirth
|
|
43
|
+
}), /* @__PURE__ */ h(t, {
|
|
44
|
+
id: "dateOfBirth",
|
|
45
|
+
value: x.dateOfBirth.value,
|
|
46
|
+
onChange: x.dateOfBirth.onValueChange,
|
|
47
|
+
placeholder: C.dateOfBirthPlaceholder,
|
|
48
|
+
disabled: w,
|
|
49
|
+
maxDate: k
|
|
50
|
+
})] }),
|
|
51
|
+
/* @__PURE__ */ g("div", { children: [
|
|
52
|
+
/* @__PURE__ */ h(y, {
|
|
53
|
+
htmlFor: "ssn",
|
|
54
|
+
children: C.ssn
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ g("div", {
|
|
57
|
+
className: "ttw:flex ttw:gap-2",
|
|
58
|
+
children: [/* @__PURE__ */ h(n, {
|
|
59
|
+
id: "ssn",
|
|
60
|
+
className: "ttw:flex-1 ttw:font-mono ttw:tracking-wider",
|
|
61
|
+
type: "text",
|
|
62
|
+
value: L ? A : j,
|
|
63
|
+
onChange: (e) => x.ssn.onValueChange(e.target.value),
|
|
64
|
+
onFocus: () => I(!0),
|
|
65
|
+
onBlur: () => I(!1),
|
|
66
|
+
disabled: w,
|
|
67
|
+
autoComplete: "off",
|
|
68
|
+
inputMode: "numeric",
|
|
69
|
+
maxLength: 11,
|
|
70
|
+
required: M,
|
|
71
|
+
placeholder: N,
|
|
72
|
+
"aria-describedby": P ? "ssn-on-file" : void 0
|
|
73
|
+
}), /* @__PURE__ */ h(e, {
|
|
74
|
+
type: "button",
|
|
75
|
+
variant: "outline",
|
|
76
|
+
size: "icon",
|
|
77
|
+
onClick: D,
|
|
78
|
+
disabled: w,
|
|
79
|
+
"aria-label": E,
|
|
80
|
+
children: h(T ? v : _, { className: "ttw:size-4" })
|
|
81
|
+
})]
|
|
82
|
+
}),
|
|
83
|
+
P ? /* @__PURE__ */ h("p", {
|
|
84
|
+
id: "ssn-on-file",
|
|
85
|
+
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
86
|
+
children: P
|
|
87
|
+
}) : null
|
|
88
|
+
] }),
|
|
89
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
90
|
+
htmlFor: "homeAddress",
|
|
91
|
+
children: C.homeAddress
|
|
92
|
+
}), /* @__PURE__ */ h(n, {
|
|
93
|
+
id: "homeAddress",
|
|
94
|
+
value: x.homeAddress.value,
|
|
95
|
+
onChange: (e) => x.homeAddress.onValueChange(e.target.value),
|
|
96
|
+
disabled: w,
|
|
97
|
+
required: !0
|
|
98
|
+
})] }),
|
|
99
|
+
/* @__PURE__ */ g("div", {
|
|
100
|
+
className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ g("div", {
|
|
103
|
+
className: "ttw:min-w-0",
|
|
104
|
+
children: [/* @__PURE__ */ h(y, {
|
|
105
|
+
htmlFor: "city",
|
|
106
|
+
children: C.city
|
|
107
|
+
}), /* @__PURE__ */ h(n, {
|
|
108
|
+
id: "city",
|
|
109
|
+
value: x.city.value,
|
|
110
|
+
onChange: (e) => x.city.onValueChange(e.target.value),
|
|
111
|
+
disabled: w,
|
|
112
|
+
required: !0
|
|
113
|
+
})]
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ g("div", {
|
|
116
|
+
className: "ttw:min-w-0",
|
|
117
|
+
children: [/* @__PURE__ */ h(y, {
|
|
118
|
+
htmlFor: "state",
|
|
119
|
+
children: C.state
|
|
120
|
+
}), /* @__PURE__ */ g(l, {
|
|
121
|
+
value: x.state.value,
|
|
122
|
+
onValueChange: x.state.onValueChange,
|
|
123
|
+
disabled: w,
|
|
124
|
+
children: [/* @__PURE__ */ h(f, {
|
|
125
|
+
id: "state",
|
|
126
|
+
className: b,
|
|
127
|
+
children: /* @__PURE__ */ h(p, { placeholder: C.statePlaceholder })
|
|
128
|
+
}), /* @__PURE__ */ h(u, { children: x.state.options.map((e) => /* @__PURE__ */ h(d, {
|
|
129
|
+
value: e.value,
|
|
130
|
+
children: e.label
|
|
131
|
+
}, e.value)) })]
|
|
132
|
+
})]
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ g("div", {
|
|
135
|
+
className: "ttw:min-w-0",
|
|
136
|
+
children: [/* @__PURE__ */ h(y, {
|
|
137
|
+
htmlFor: "zipCode",
|
|
138
|
+
children: C.zipCode
|
|
139
|
+
}), /* @__PURE__ */ h(n, {
|
|
140
|
+
id: "zipCode",
|
|
141
|
+
value: x.zipCode.value,
|
|
142
|
+
onChange: (e) => x.zipCode.onValueChange(e.target.value),
|
|
143
|
+
disabled: w,
|
|
144
|
+
required: !0,
|
|
145
|
+
inputMode: "numeric"
|
|
146
|
+
})]
|
|
147
|
+
})
|
|
148
|
+
]
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
151
|
+
htmlFor: "mobilePhoneNumber",
|
|
152
|
+
children: C.mobilePhoneNumber
|
|
153
|
+
}), /* @__PURE__ */ h(n, {
|
|
154
|
+
id: "mobilePhoneNumber",
|
|
155
|
+
type: "tel",
|
|
156
|
+
value: x.mobilePhoneNumber.value,
|
|
157
|
+
onChange: (e) => x.mobilePhoneNumber.onValueChange(e.target.value),
|
|
158
|
+
disabled: w,
|
|
159
|
+
required: !0
|
|
160
|
+
})] }),
|
|
161
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
162
|
+
htmlFor: "workEmail",
|
|
163
|
+
children: C.workEmail
|
|
164
|
+
}), /* @__PURE__ */ h(n, {
|
|
165
|
+
id: "workEmail",
|
|
166
|
+
type: "email",
|
|
167
|
+
value: x.workEmail.value,
|
|
168
|
+
onChange: (e) => x.workEmail.onValueChange(e.target.value),
|
|
169
|
+
disabled: w,
|
|
170
|
+
required: !0
|
|
171
|
+
})] }),
|
|
172
|
+
/* @__PURE__ */ g("fieldset", {
|
|
173
|
+
"data-testid": S?.ownsOver25Question,
|
|
174
|
+
children: [/* @__PURE__ */ h("legend", {
|
|
175
|
+
id: "ownsOver25Legend",
|
|
176
|
+
className: "ttw:mb-2 ttw:text-sm ttw:font-medium",
|
|
177
|
+
children: C.ownsOver25Question
|
|
178
|
+
}), /* @__PURE__ */ g(s, {
|
|
179
|
+
value: x.ownsOver25Percent.value,
|
|
180
|
+
onValueChange: x.ownsOver25Percent.onValueChange,
|
|
181
|
+
className: "ttw:flex ttw:gap-4",
|
|
182
|
+
disabled: w,
|
|
183
|
+
"aria-labelledby": "ownsOver25Legend",
|
|
184
|
+
children: [/* @__PURE__ */ g("div", {
|
|
185
|
+
className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
|
|
186
|
+
children: [/* @__PURE__ */ h(c, {
|
|
187
|
+
value: "yes",
|
|
188
|
+
id: "ownsOver25Yes",
|
|
189
|
+
className: "ttw:cursor-pointer"
|
|
190
|
+
}), /* @__PURE__ */ h(o, {
|
|
191
|
+
htmlFor: "ownsOver25Yes",
|
|
192
|
+
className: "ttw:cursor-pointer",
|
|
193
|
+
children: C.ownsOver25Yes
|
|
194
|
+
})]
|
|
195
|
+
}), /* @__PURE__ */ g("div", {
|
|
196
|
+
className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
|
|
197
|
+
children: [/* @__PURE__ */ h(c, {
|
|
198
|
+
value: "no",
|
|
199
|
+
id: "ownsOver25No",
|
|
200
|
+
className: "ttw:cursor-pointer"
|
|
201
|
+
}), /* @__PURE__ */ h(o, {
|
|
202
|
+
htmlFor: "ownsOver25No",
|
|
203
|
+
className: "ttw:cursor-pointer",
|
|
204
|
+
children: C.ownsOver25No
|
|
205
|
+
})]
|
|
206
|
+
})]
|
|
207
|
+
})]
|
|
208
|
+
}),
|
|
209
|
+
O ? /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h(y, {
|
|
210
|
+
htmlFor: "ownershipPercentage",
|
|
211
|
+
children: C.ownershipPercentage
|
|
212
|
+
}), /* @__PURE__ */ g(r, {
|
|
213
|
+
className: "ttw:w-32",
|
|
214
|
+
children: [/* @__PURE__ */ h(a, {
|
|
215
|
+
id: "ownershipPercentage",
|
|
216
|
+
type: "number",
|
|
217
|
+
min: 25,
|
|
218
|
+
max: 100,
|
|
219
|
+
"data-has-end-addon": "",
|
|
220
|
+
placeholder: C.ownershipPercentagePlaceholder,
|
|
221
|
+
value: x.ownershipPercentage.value ?? "",
|
|
222
|
+
onChange: (e) => x.ownershipPercentage.onValueChange(e.target.value === "" ? null : Number(e.target.value)),
|
|
223
|
+
disabled: w,
|
|
224
|
+
required: !0
|
|
225
|
+
}), /* @__PURE__ */ h(i, {
|
|
226
|
+
align: "inline-end",
|
|
227
|
+
"aria-hidden": !0,
|
|
228
|
+
children: "%"
|
|
229
|
+
})]
|
|
230
|
+
})] }) : null
|
|
231
|
+
]
|
|
232
|
+
});
|
|
233
|
+
}
|
|
27
234
|
//#endregion
|
|
28
|
-
export {
|
|
235
|
+
export { x as AboutYouEditForm };
|