@tesouro/embedded-components-react 0.5.271 → 0.5.273

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +4 -0
  2. package/dist/index.css +17 -0
  3. package/dist/index.d.ts +19 -0
  4. package/dist/index.js +4 -4
  5. package/dist/lib/BankAccountOnboardingWidget.d.ts +19 -0
  6. package/dist/lib/BankAccountOnboardingWidget.js +4 -4
  7. package/dist/lib/WidgetSuite.d.ts +19 -0
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +94 -73
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +7 -7
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +71 -57
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +61 -46
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +22 -24
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -2
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +28 -32
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldErrors.js +40 -0
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +2 -2
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +26 -21
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +18 -18
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +6 -58
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +57 -31
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +31 -38
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +27 -26
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +34 -91
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +96 -12
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +14 -2
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +0 -2
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +4 -185
  30. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +269 -25
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +28 -21
  32. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +21 -68
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +59 -225
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +338 -26
  35. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +29 -26
  36. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +26 -74
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +71 -82
  38. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +85 -8
  39. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +8 -57
  40. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +57 -9
  41. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +34 -261
  42. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +9 -62
  43. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +64 -0
  44. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +331 -2
  45. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +2 -48
  46. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +53 -139
  47. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +146 -50
  48. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +50 -28
  49. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +35 -6
  50. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  51. package/dist/packages/shared-ui-shadcn/dist/index.js +14 -9
  52. package/package.json +7 -2
@@ -1,4 +1,333 @@
1
+ import { Button as e, DatePicker as t, Input as n, InputGroup as r, InputGroupAddon as i, InputGroupInput as a, Label as o, Select as s, SelectContent as c, SelectItem as l, SelectTrigger as u, SelectValue as d, Separator as f } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { OnboardingShellOverlayPortal as p } from "../../../shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js";
3
+ import "../../../shared/ui/dist/index.js";
4
+ import { FieldError as m, fieldErrorAria as h, onCompositeBlur as g, selectBlurHandlers as _ } from "./index3.js";
5
+ import * as v from "react";
6
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
7
+ import { EyeIcon as x, EyeOffIcon as S, PlusIcon as C, UserPlusIcon as w, XIcon as T } from "lucide-react";
1
8
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js
2
- var e = (e) => `Ending in ${e}. Leave blank to keep it, or enter it again to change it.`;
9
+ function E({ htmlFor: e, children: t }) {
10
+ return /* @__PURE__ */ y(o, {
11
+ htmlFor: e,
12
+ className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
13
+ children: t
14
+ });
15
+ }
16
+ var D = "ttw:w-full";
17
+ function O({ fields: o, display: O, isExisting: k, isValid: A, isDisabled: j, labels: M, onCancel: N, onSubmit: P, onClose: F, ssnRevealed: I, ssnToggleAriaLabel: L, onToggleSsnVisibility: R, testIds: z }) {
18
+ let [B, V] = v.useState(!1), H = !I && !B, U = _(o.state.onBlur), W = k ? M.saveOwnerSubmit : M.addOwnerSubmit;
19
+ return /* @__PURE__ */ y(p, {
20
+ expandContainer: !0,
21
+ testIds: z?.overlay,
22
+ children: /* @__PURE__ */ b("div", {
23
+ className: "ttw:flex ttw:h-full ttw:w-full ttw:min-h-0 ttw:flex-col ttw:px-8 ttw:pb-8 ttw:pt-8",
24
+ role: "dialog",
25
+ "aria-modal": "true",
26
+ "aria-labelledby": "additional-owner-form-title",
27
+ children: [
28
+ /* @__PURE__ */ b("div", {
29
+ className: "ttw:relative ttw:shrink-0",
30
+ children: [
31
+ /* @__PURE__ */ y(e, {
32
+ type: "button",
33
+ variant: "ghost",
34
+ size: "icon-sm",
35
+ onClick: F,
36
+ disabled: j,
37
+ "aria-label": M.close,
38
+ className: "ttw:absolute ttw:top-0 ttw:right-0",
39
+ children: /* @__PURE__ */ y(T, { className: "ttw:size-4" })
40
+ }),
41
+ /* @__PURE__ */ y("div", {
42
+ className: "ttw:mb-3 ttw:flex ttw:size-10 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-primary/10",
43
+ "aria-hidden": !0,
44
+ children: /* @__PURE__ */ y(w, { className: "ttw:size-5 ttw:text-primary" })
45
+ }),
46
+ /* @__PURE__ */ y("h2", {
47
+ id: "additional-owner-form-title",
48
+ className: "ttw:pr-10 ttw:text-xl ttw:font-semibold ttw:tracking-tight",
49
+ children: k ? M.formHeadingEdit : M.formHeadingAdd
50
+ })
51
+ ]
52
+ }),
53
+ /* @__PURE__ */ y(f, { className: "ttw:my-4 ttw:shrink-0" }),
54
+ /* @__PURE__ */ b("div", {
55
+ className: "ttw:flex ttw:min-h-0 ttw:flex-1 ttw:flex-col ttw:gap-3 ttw:overflow-y-auto ttw:pb-4",
56
+ children: [
57
+ /* @__PURE__ */ b("div", {
58
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-3",
59
+ children: [/* @__PURE__ */ b("div", { children: [
60
+ /* @__PURE__ */ b(E, {
61
+ htmlFor: "owner-first-name",
62
+ children: [M.firstName, M.requiredFieldMarker]
63
+ }),
64
+ /* @__PURE__ */ y(n, {
65
+ id: "owner-first-name",
66
+ value: o.firstName.value,
67
+ onChange: (e) => o.firstName.onValueChange(e.target.value),
68
+ onBlur: o.firstName.onBlur,
69
+ ...h("owner-first-name", o.firstName.error),
70
+ disabled: j,
71
+ required: !0
72
+ }),
73
+ /* @__PURE__ */ y(m, {
74
+ fieldId: "owner-first-name",
75
+ error: o.firstName.error
76
+ })
77
+ ] }), /* @__PURE__ */ b("div", { children: [
78
+ /* @__PURE__ */ b(E, {
79
+ htmlFor: "owner-last-name",
80
+ children: [M.lastName, M.requiredFieldMarker]
81
+ }),
82
+ /* @__PURE__ */ y(n, {
83
+ id: "owner-last-name",
84
+ value: o.lastName.value,
85
+ onChange: (e) => o.lastName.onValueChange(e.target.value),
86
+ onBlur: o.lastName.onBlur,
87
+ ...h("owner-last-name", o.lastName.error),
88
+ disabled: j,
89
+ required: !0
90
+ }),
91
+ /* @__PURE__ */ y(m, {
92
+ fieldId: "owner-last-name",
93
+ error: o.lastName.error
94
+ })
95
+ ] })]
96
+ }),
97
+ /* @__PURE__ */ b("div", { children: [
98
+ /* @__PURE__ */ b(E, {
99
+ htmlFor: "owner-dob",
100
+ children: [M.dateOfBirth, M.requiredFieldMarker]
101
+ }),
102
+ /* @__PURE__ */ y(t, {
103
+ id: "owner-dob",
104
+ value: o.dateOfBirth.value,
105
+ onChange: o.dateOfBirth.onValueChange,
106
+ placeholder: M.dateOfBirthPlaceholder,
107
+ disabled: j,
108
+ maxDate: O.maxBirthDate,
109
+ onBlur: o.dateOfBirth.onBlur,
110
+ ...h("owner-dob", o.dateOfBirth.error)
111
+ }),
112
+ /* @__PURE__ */ y(m, {
113
+ fieldId: "owner-dob",
114
+ error: o.dateOfBirth.error
115
+ })
116
+ ] }),
117
+ /* @__PURE__ */ b("div", { children: [
118
+ /* @__PURE__ */ b(E, {
119
+ htmlFor: "owner-ssn",
120
+ children: [M.ssn, O.ssnRequired ? M.requiredFieldMarker : null]
121
+ }),
122
+ /* @__PURE__ */ b("div", {
123
+ className: "ttw:flex ttw:gap-2",
124
+ onBlur: g(o.ssn.onBlur),
125
+ children: [/* @__PURE__ */ y(n, {
126
+ id: "owner-ssn",
127
+ className: "ttw:flex-1 ttw:font-mono ttw:tracking-wider",
128
+ type: "text",
129
+ value: H ? O.ssnMaskedDisplay : O.ssnFormattedDisplay,
130
+ onChange: (e) => o.ssn.onValueChange(e.target.value),
131
+ onFocus: () => V(!0),
132
+ onBlur: () => V(!1),
133
+ disabled: j,
134
+ autoComplete: "off",
135
+ inputMode: "numeric",
136
+ maxLength: 11,
137
+ required: O.ssnRequired,
138
+ placeholder: O.ssnPlaceholder,
139
+ ...h("owner-ssn", o.ssn.error, O.ssnHelpText ? "owner-ssn-on-file" : void 0)
140
+ }), /* @__PURE__ */ y(e, {
141
+ type: "button",
142
+ variant: "outline",
143
+ size: "icon",
144
+ onClick: R,
145
+ disabled: j,
146
+ "aria-label": L,
147
+ children: y(I ? S : x, { className: "ttw:size-4" })
148
+ })]
149
+ }),
150
+ O.ssnHelpText ? /* @__PURE__ */ y("p", {
151
+ id: "owner-ssn-on-file",
152
+ className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
153
+ children: O.ssnHelpText
154
+ }) : null,
155
+ /* @__PURE__ */ y(m, {
156
+ fieldId: "owner-ssn",
157
+ error: o.ssn.error
158
+ })
159
+ ] }),
160
+ /* @__PURE__ */ b("div", { children: [
161
+ /* @__PURE__ */ b(E, {
162
+ htmlFor: "owner-home-address",
163
+ children: [M.homeAddress, M.requiredFieldMarker]
164
+ }),
165
+ /* @__PURE__ */ y(n, {
166
+ id: "owner-home-address",
167
+ value: o.homeAddress.value,
168
+ onChange: (e) => o.homeAddress.onValueChange(e.target.value),
169
+ onBlur: o.homeAddress.onBlur,
170
+ ...h("owner-home-address", o.homeAddress.error),
171
+ disabled: j,
172
+ required: !0
173
+ }),
174
+ /* @__PURE__ */ y(m, {
175
+ fieldId: "owner-home-address",
176
+ error: o.homeAddress.error
177
+ })
178
+ ] }),
179
+ /* @__PURE__ */ b("div", {
180
+ className: "ttw:grid ttw:grid-cols-3 ttw:gap-3",
181
+ children: [
182
+ /* @__PURE__ */ b("div", {
183
+ className: "ttw:min-w-0",
184
+ children: [
185
+ /* @__PURE__ */ b(E, {
186
+ htmlFor: "owner-city",
187
+ children: [M.city, M.requiredFieldMarker]
188
+ }),
189
+ /* @__PURE__ */ y(n, {
190
+ id: "owner-city",
191
+ value: o.city.value,
192
+ onChange: (e) => o.city.onValueChange(e.target.value),
193
+ onBlur: o.city.onBlur,
194
+ ...h("owner-city", o.city.error),
195
+ disabled: j,
196
+ required: !0
197
+ }),
198
+ /* @__PURE__ */ y(m, {
199
+ fieldId: "owner-city",
200
+ error: o.city.error
201
+ })
202
+ ]
203
+ }),
204
+ /* @__PURE__ */ b("div", {
205
+ className: "ttw:min-w-0",
206
+ children: [
207
+ /* @__PURE__ */ b(E, {
208
+ htmlFor: "owner-state",
209
+ children: [M.state, M.requiredFieldMarker]
210
+ }),
211
+ /* @__PURE__ */ b(s, {
212
+ value: o.state.value,
213
+ onValueChange: o.state.onValueChange,
214
+ onOpenChange: U.onOpenChange,
215
+ disabled: j,
216
+ children: [/* @__PURE__ */ y(u, {
217
+ id: "owner-state",
218
+ className: D,
219
+ onBlur: U.onTriggerBlur,
220
+ ...h("owner-state", o.state.error),
221
+ children: /* @__PURE__ */ y(d, { placeholder: M.statePlaceholder })
222
+ }), /* @__PURE__ */ y(c, { children: o.state.options.map((e) => /* @__PURE__ */ y(l, {
223
+ value: e.value,
224
+ children: e.label
225
+ }, e.value)) })]
226
+ }),
227
+ /* @__PURE__ */ y(m, {
228
+ fieldId: "owner-state",
229
+ error: o.state.error
230
+ })
231
+ ]
232
+ }),
233
+ /* @__PURE__ */ b("div", {
234
+ className: "ttw:min-w-0",
235
+ children: [
236
+ /* @__PURE__ */ b(E, {
237
+ htmlFor: "owner-zip",
238
+ children: [M.zipCode, M.requiredFieldMarker]
239
+ }),
240
+ /* @__PURE__ */ y(n, {
241
+ id: "owner-zip",
242
+ value: o.zipCode.value,
243
+ onChange: (e) => o.zipCode.onValueChange(e.target.value),
244
+ onBlur: o.zipCode.onBlur,
245
+ ...h("owner-zip", o.zipCode.error),
246
+ disabled: j,
247
+ required: !0,
248
+ inputMode: "numeric"
249
+ }),
250
+ /* @__PURE__ */ y(m, {
251
+ fieldId: "owner-zip",
252
+ error: o.zipCode.error
253
+ })
254
+ ]
255
+ })
256
+ ]
257
+ }),
258
+ /* @__PURE__ */ b("div", { children: [
259
+ /* @__PURE__ */ b(E, {
260
+ htmlFor: "owner-phone",
261
+ children: [M.mobilePhoneNumber, M.requiredFieldMarker]
262
+ }),
263
+ /* @__PURE__ */ y(n, {
264
+ id: "owner-phone",
265
+ type: "tel",
266
+ value: o.mobilePhoneNumber.value,
267
+ onChange: (e) => o.mobilePhoneNumber.onValueChange(e.target.value),
268
+ onBlur: o.mobilePhoneNumber.onBlur,
269
+ ...h("owner-phone", o.mobilePhoneNumber.error),
270
+ disabled: j,
271
+ required: !0
272
+ }),
273
+ /* @__PURE__ */ y(m, {
274
+ fieldId: "owner-phone",
275
+ error: o.mobilePhoneNumber.error
276
+ })
277
+ ] }),
278
+ /* @__PURE__ */ b("div", { children: [
279
+ /* @__PURE__ */ b(E, {
280
+ htmlFor: "owner-ownership",
281
+ children: [M.ownershipPercentage, M.requiredFieldMarker]
282
+ }),
283
+ /* @__PURE__ */ b(r, {
284
+ className: "ttw:w-32",
285
+ children: [/* @__PURE__ */ y(a, {
286
+ id: "owner-ownership",
287
+ type: "number",
288
+ min: 25,
289
+ max: 100,
290
+ "data-has-end-addon": "",
291
+ placeholder: M.ownershipPercentagePlaceholder,
292
+ value: o.ownershipPercentage.value ?? "",
293
+ onChange: (e) => o.ownershipPercentage.onValueChange(e.target.value === "" ? null : Number(e.target.value)),
294
+ onBlur: o.ownershipPercentage.onBlur,
295
+ ...h("owner-ownership", o.ownershipPercentage.error),
296
+ disabled: j,
297
+ required: !0
298
+ }), /* @__PURE__ */ y(i, {
299
+ align: "inline-end",
300
+ "aria-hidden": !0,
301
+ children: M.percentSuffix
302
+ })]
303
+ }),
304
+ /* @__PURE__ */ y(m, {
305
+ fieldId: "owner-ownership",
306
+ error: o.ownershipPercentage.error
307
+ })
308
+ ] })
309
+ ]
310
+ }),
311
+ /* @__PURE__ */ y(f, { className: "ttw:my-4 ttw:shrink-0" }),
312
+ /* @__PURE__ */ b("div", {
313
+ className: "ttw:flex ttw:shrink-0 ttw:justify-end ttw:gap-3",
314
+ children: [/* @__PURE__ */ y(e, {
315
+ type: "button",
316
+ variant: "outline",
317
+ onClick: N,
318
+ disabled: j,
319
+ children: M.cancel
320
+ }), /* @__PURE__ */ b(e, {
321
+ type: "button",
322
+ onClick: P,
323
+ disabled: j || !A,
324
+ className: "ttw:gap-1.5",
325
+ children: [W, /* @__PURE__ */ y(C, { className: "ttw:size-4" })]
326
+ })]
327
+ })
328
+ ]
329
+ })
330
+ });
331
+ }
3
332
  //#endregion
4
- export { e as IDENTIFIER_ON_FILE_TEMPLATE_EN };
333
+ export { O as AdditionalOwnerFormOverlay };
@@ -1,50 +1,4 @@
1
- import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index4.js";
2
1
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js
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
- };
2
+ var e = (e) => `Ending in ${e}. Leave blank to keep it, or enter it again to change it.`;
49
3
  //#endregion
50
- export { t as ADDITIONAL_OWNERS_LABELS_EN };
4
+ export { e as IDENTIFIER_ON_FILE_TEMPLATE_EN };
@@ -1,141 +1,55 @@
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
+ import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index5.js";
7
2
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js
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
- });
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
+ zipCodeInvalid: "ZIP code must be 5 digits",
37
+ mobilePhoneNumber: "Mobile phone number",
38
+ mobilePhoneNumberInvalid: "Phone must be 10 digits",
39
+ ownershipPercentage: "What percentage of business do you own? (minimum 25%)",
40
+ ownershipPercentagePlaceholder: "e.g., 25",
41
+ ownershipPercentageMinError: "Owners must have 25% ownership or more",
42
+ ownershipPercentageMaxError: "Ownership can't exceed 100%",
43
+ requiredFieldError: "This field is required",
44
+ invalidFieldError: "Enter a valid value",
45
+ ownerIncompleteError: "Some details are missing or invalid. Edit this owner.",
46
+ requiredFieldMarker: " *",
47
+ percentSuffix: "%",
48
+ deleteOwnerHeading: "Delete owner profile?",
49
+ deleteOwnerPromptBeforeName: "Are you sure you want to delete profile",
50
+ deleteOwnerPromptAfterName: "as a business owner?",
51
+ deleteOwnerConfirm: "Delete",
52
+ totalOwnershipExceedsTemplate: (e) => `Total ownership exceeds 100%. Current total: ${e}%`
53
+ };
140
54
  //#endregion
141
- export { _ as AdditionalOwnersForm };
55
+ export { t as ADDITIONAL_OWNERS_LABELS_EN };