@tesouro/embedded-components-react 0.5.270 → 0.5.272

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 (55) hide show
  1. package/dist/index.css +17 -0
  2. package/dist/index.d.ts +19 -0
  3. package/dist/index.js +4 -4
  4. package/dist/lib/BankAccountOnboardingWidget.d.ts +19 -0
  5. package/dist/lib/BankAccountOnboardingWidget.js +4 -4
  6. package/dist/lib/WidgetSuite.d.ts +19 -0
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +94 -73
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +7 -7
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +71 -57
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +61 -46
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +22 -24
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +28 -32
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldErrors.js +40 -0
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +26 -21
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +18 -18
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +6 -58
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +57 -31
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +31 -38
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +27 -26
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +34 -91
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +96 -12
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +14 -2
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +0 -2
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +4 -185
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +269 -25
  30. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +28 -21
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +21 -68
  32. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +59 -225
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +338 -26
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +29 -26
  35. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +26 -74
  36. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +71 -82
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +85 -8
  38. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +8 -57
  39. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +57 -9
  40. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +34 -261
  41. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +9 -62
  42. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +64 -0
  43. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +331 -2
  44. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +2 -48
  45. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +53 -139
  46. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +146 -50
  47. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +50 -28
  48. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +35 -6
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +22 -18
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +8 -4
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/invalidation.js +3 -3
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/reconcileSubmittedForApprovalQueries.js +1 -1
  53. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  54. package/dist/packages/shared-ui-shadcn/dist/index.js +14 -9
  55. package/package.json +1 -1
@@ -1,235 +1,69 @@
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
+ 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 "./index21.js";
3
+ import { BusinessDetailsEditForm as s } from "./index19.js";
4
+ import { BusinessDetailsSummary as c } from "./index20.js";
5
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
6
+ import { Pen as d } from "lucide-react";
5
7
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js
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,
8
+ function f({ isEditing: f, onEditClick: p, summaryRows: m, editFields: h, labels: g, isDisabled: _, taxIdRequired: v, taxIdPlaceholder: y, taxIdHelpText: b, testIds: x }) {
9
+ let S = {
10
+ ...o,
11
+ ...g
12
+ };
13
+ return f ? /* @__PURE__ */ l(s, {
14
+ fields: h,
15
+ labels: S,
16
+ isDisabled: _,
17
+ taxIdRequired: v,
18
+ taxIdPlaceholder: y,
19
+ taxIdHelpText: b,
20
+ testIds: x?.editForm
21
+ }) : /* @__PURE__ */ u("section", {
22
+ "data-testid": x?.root,
23
+ className: "ttw:relative ttw:min-w-0 ttw:rounded-lg ttw:bg-surface-subtle ttw:p-4",
19
24
  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, {
25
+ /* @__PURE__ */ u("div", {
26
+ className: "ttw:mb-3 ttw:flex ttw:items-center ttw:justify-between ttw:gap-3",
27
+ children: [/* @__PURE__ */ l(a, {
28
+ component: "h3",
29
+ variant: "h6",
30
+ className: "ttw:font-semibold ttw:text-foreground",
31
+ children: S.panelTitle
32
+ }), /* @__PURE__ */ l(r, { children: /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ l(i, {
33
+ asChild: !0,
34
+ onFocus: (e) => {
35
+ e.preventDefault();
36
+ },
37
+ children: /* @__PURE__ */ l(e, {
74
38
  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
- })]
39
+ variant: "ghost",
40
+ size: "icon-sm",
41
+ onClick: p,
42
+ disabled: _,
43
+ "aria-label": S.editButtonAriaLabel,
44
+ "data-testid": x?.editButton,
45
+ className: "ttw:rounded-lg ttw:bg-muted ttw:text-foreground ttw:hover:bg-primary/10 ttw:hover:text-foreground",
46
+ children: /* @__PURE__ */ l(d, {
47
+ className: "ttw:size-5",
48
+ "aria-hidden": !0
49
+ })
147
50
  })
148
- ]
51
+ }), /* @__PURE__ */ l(n, {
52
+ side: "top",
53
+ sideOffset: 4,
54
+ children: S.editTooltip
55
+ })] }) })]
149
56
  }),
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
- })]
57
+ /* @__PURE__ */ l("div", {
58
+ className: "ttw:mb-3 ttw:border-b ttw:border-border",
59
+ "aria-hidden": !0
208
60
  }),
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
61
+ /* @__PURE__ */ l(c, {
62
+ rows: m,
63
+ testIds: x?.summary
64
+ })
231
65
  ]
232
66
  });
233
67
  }
234
68
  //#endregion
235
- export { x as AboutYouEditForm };
69
+ export { o as BUSINESS_DETAILS_PANEL_LABELS_EN, f as BusinessDetailsPanel };
@@ -1,31 +1,343 @@
1
- import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
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 { FieldError as m, fieldErrorAria as h, onCompositeBlur as g, selectBlurHandlers as _ } from "./index3.js";
3
+ import { useState as v } from "react";
4
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
5
+ import { EyeIcon as x, EyeOffIcon as S } from "lucide-react";
3
6
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js
4
- function i({ label: i, value: a, testId: o, valueMonospace: s }) {
5
- return a ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(e, {
6
- component: "span",
7
- variant: "body2",
8
- className: "ttw:text-muted-foreground",
9
- children: i
10
- }), /* @__PURE__ */ n(e, {
11
- component: "span",
12
- variant: "body2",
13
- "data-testid": o,
14
- className: `ttw:min-w-0 ttw:wrap-break-word ttw:whitespace-pre-line ttw:text-left ttw:font-medium ttw:text-foreground ${s ? "ttw:font-mono ttw:tracking-wider" : ""}`,
15
- children: a
16
- })] }) : null;
7
+ function C({ htmlFor: e, children: t }) {
8
+ return /* @__PURE__ */ y(o, {
9
+ htmlFor: e,
10
+ className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
11
+ children: t
12
+ });
17
13
  }
18
- function a({ rows: e, testIds: t }) {
19
- return /* @__PURE__ */ n("div", {
20
- className: "ttw:grid ttw:grid-cols-[max-content_1fr] ttw:gap-x-4 ttw:gap-y-2",
21
- "data-testid": t?.root,
22
- children: e.map((e) => /* @__PURE__ */ n(i, {
23
- label: e.label,
24
- value: e.value,
25
- testId: e.testId,
26
- valueMonospace: e.valueMonospace
27
- }, e.testId ?? e.label))
14
+ var w = "ttw:w-full";
15
+ function T({ fields: T, testIds: E, labels: D, isDisabled: O, ssnRevealed: k, ssnToggleAriaLabel: A, onToggleSsnVisibility: j, showOwnershipPercentage: M, maxBirthDate: N, ssnMaskedDisplay: P, ssnFormattedDisplay: F, ssnRequired: I, ssnPlaceholder: L, ssnHelpText: R }) {
16
+ let [z, B] = v(!1), V = !k && !z, H = _(T.state.onBlur);
17
+ return /* @__PURE__ */ b("section", {
18
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
19
+ "data-testid": E?.root,
20
+ children: [
21
+ /* @__PURE__ */ b("div", { children: [
22
+ /* @__PURE__ */ y(C, {
23
+ htmlFor: "firstName",
24
+ children: D.firstName
25
+ }),
26
+ /* @__PURE__ */ y(n, {
27
+ id: "firstName",
28
+ value: T.firstName.value,
29
+ onChange: (e) => T.firstName.onValueChange(e.target.value),
30
+ onBlur: T.firstName.onBlur,
31
+ ...h("firstName", T.firstName.error),
32
+ disabled: O,
33
+ required: !0
34
+ }),
35
+ /* @__PURE__ */ y(m, {
36
+ fieldId: "firstName",
37
+ error: T.firstName.error
38
+ })
39
+ ] }),
40
+ /* @__PURE__ */ b("div", { children: [
41
+ /* @__PURE__ */ y(C, {
42
+ htmlFor: "lastName",
43
+ children: D.lastName
44
+ }),
45
+ /* @__PURE__ */ y(n, {
46
+ id: "lastName",
47
+ value: T.lastName.value,
48
+ onChange: (e) => T.lastName.onValueChange(e.target.value),
49
+ onBlur: T.lastName.onBlur,
50
+ ...h("lastName", T.lastName.error),
51
+ disabled: O,
52
+ required: !0
53
+ }),
54
+ /* @__PURE__ */ y(m, {
55
+ fieldId: "lastName",
56
+ error: T.lastName.error
57
+ })
58
+ ] }),
59
+ /* @__PURE__ */ b("div", { children: [
60
+ /* @__PURE__ */ y(C, {
61
+ htmlFor: "dateOfBirth",
62
+ children: D.dateOfBirth
63
+ }),
64
+ /* @__PURE__ */ y(t, {
65
+ id: "dateOfBirth",
66
+ value: T.dateOfBirth.value,
67
+ onChange: T.dateOfBirth.onValueChange,
68
+ placeholder: D.dateOfBirthPlaceholder,
69
+ disabled: O,
70
+ maxDate: N,
71
+ onBlur: T.dateOfBirth.onBlur,
72
+ ...h("dateOfBirth", T.dateOfBirth.error)
73
+ }),
74
+ /* @__PURE__ */ y(m, {
75
+ fieldId: "dateOfBirth",
76
+ error: T.dateOfBirth.error
77
+ })
78
+ ] }),
79
+ /* @__PURE__ */ b("div", { children: [
80
+ /* @__PURE__ */ y(C, {
81
+ htmlFor: "ssn",
82
+ children: D.ssn
83
+ }),
84
+ /* @__PURE__ */ b("div", {
85
+ className: "ttw:flex ttw:gap-2",
86
+ onBlur: g(T.ssn.onBlur),
87
+ children: [/* @__PURE__ */ y(n, {
88
+ id: "ssn",
89
+ className: "ttw:flex-1 ttw:font-mono ttw:tracking-wider",
90
+ type: "text",
91
+ value: V ? P : F,
92
+ onChange: (e) => T.ssn.onValueChange(e.target.value),
93
+ onFocus: () => B(!0),
94
+ onBlur: () => B(!1),
95
+ disabled: O,
96
+ autoComplete: "off",
97
+ inputMode: "numeric",
98
+ maxLength: 11,
99
+ required: I,
100
+ placeholder: L,
101
+ ...h("ssn", T.ssn.error, R ? "ssn-on-file" : void 0)
102
+ }), /* @__PURE__ */ y(e, {
103
+ type: "button",
104
+ variant: "outline",
105
+ size: "icon",
106
+ onClick: j,
107
+ disabled: O,
108
+ "aria-label": A,
109
+ children: y(k ? S : x, { className: "ttw:size-4" })
110
+ })]
111
+ }),
112
+ R ? /* @__PURE__ */ y("p", {
113
+ id: "ssn-on-file",
114
+ className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
115
+ children: R
116
+ }) : null,
117
+ /* @__PURE__ */ y(m, {
118
+ fieldId: "ssn",
119
+ error: T.ssn.error
120
+ })
121
+ ] }),
122
+ /* @__PURE__ */ b("div", { children: [
123
+ /* @__PURE__ */ y(C, {
124
+ htmlFor: "homeAddress",
125
+ children: D.homeAddress
126
+ }),
127
+ /* @__PURE__ */ y(n, {
128
+ id: "homeAddress",
129
+ value: T.homeAddress.value,
130
+ onChange: (e) => T.homeAddress.onValueChange(e.target.value),
131
+ onBlur: T.homeAddress.onBlur,
132
+ ...h("homeAddress", T.homeAddress.error),
133
+ disabled: O,
134
+ required: !0
135
+ }),
136
+ /* @__PURE__ */ y(m, {
137
+ fieldId: "homeAddress",
138
+ error: T.homeAddress.error
139
+ })
140
+ ] }),
141
+ /* @__PURE__ */ b("div", {
142
+ className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
143
+ children: [
144
+ /* @__PURE__ */ b("div", {
145
+ className: "ttw:min-w-0",
146
+ children: [
147
+ /* @__PURE__ */ y(C, {
148
+ htmlFor: "city",
149
+ children: D.city
150
+ }),
151
+ /* @__PURE__ */ y(n, {
152
+ id: "city",
153
+ value: T.city.value,
154
+ onChange: (e) => T.city.onValueChange(e.target.value),
155
+ onBlur: T.city.onBlur,
156
+ ...h("city", T.city.error),
157
+ disabled: O,
158
+ required: !0
159
+ }),
160
+ /* @__PURE__ */ y(m, {
161
+ fieldId: "city",
162
+ error: T.city.error
163
+ })
164
+ ]
165
+ }),
166
+ /* @__PURE__ */ b("div", {
167
+ className: "ttw:min-w-0",
168
+ children: [
169
+ /* @__PURE__ */ y(C, {
170
+ htmlFor: "state",
171
+ children: D.state
172
+ }),
173
+ /* @__PURE__ */ b(l, {
174
+ value: T.state.value,
175
+ onValueChange: T.state.onValueChange,
176
+ onOpenChange: H.onOpenChange,
177
+ disabled: O,
178
+ children: [/* @__PURE__ */ y(f, {
179
+ id: "state",
180
+ className: w,
181
+ onBlur: H.onTriggerBlur,
182
+ ...h("state", T.state.error),
183
+ children: /* @__PURE__ */ y(p, { placeholder: D.statePlaceholder })
184
+ }), /* @__PURE__ */ y(u, { children: T.state.options.map((e) => /* @__PURE__ */ y(d, {
185
+ value: e.value,
186
+ children: e.label
187
+ }, e.value)) })]
188
+ }),
189
+ /* @__PURE__ */ y(m, {
190
+ fieldId: "state",
191
+ error: T.state.error
192
+ })
193
+ ]
194
+ }),
195
+ /* @__PURE__ */ b("div", {
196
+ className: "ttw:min-w-0",
197
+ children: [
198
+ /* @__PURE__ */ y(C, {
199
+ htmlFor: "zipCode",
200
+ children: D.zipCode
201
+ }),
202
+ /* @__PURE__ */ y(n, {
203
+ id: "zipCode",
204
+ value: T.zipCode.value,
205
+ onChange: (e) => T.zipCode.onValueChange(e.target.value),
206
+ onBlur: T.zipCode.onBlur,
207
+ ...h("zipCode", T.zipCode.error),
208
+ disabled: O,
209
+ required: !0,
210
+ inputMode: "numeric"
211
+ }),
212
+ /* @__PURE__ */ y(m, {
213
+ fieldId: "zipCode",
214
+ error: T.zipCode.error
215
+ })
216
+ ]
217
+ })
218
+ ]
219
+ }),
220
+ /* @__PURE__ */ b("div", { children: [
221
+ /* @__PURE__ */ y(C, {
222
+ htmlFor: "mobilePhoneNumber",
223
+ children: D.mobilePhoneNumber
224
+ }),
225
+ /* @__PURE__ */ y(n, {
226
+ id: "mobilePhoneNumber",
227
+ type: "tel",
228
+ value: T.mobilePhoneNumber.value,
229
+ onChange: (e) => T.mobilePhoneNumber.onValueChange(e.target.value),
230
+ onBlur: T.mobilePhoneNumber.onBlur,
231
+ ...h("mobilePhoneNumber", T.mobilePhoneNumber.error),
232
+ disabled: O,
233
+ required: !0
234
+ }),
235
+ /* @__PURE__ */ y(m, {
236
+ fieldId: "mobilePhoneNumber",
237
+ error: T.mobilePhoneNumber.error
238
+ })
239
+ ] }),
240
+ /* @__PURE__ */ b("div", { children: [
241
+ /* @__PURE__ */ y(C, {
242
+ htmlFor: "workEmail",
243
+ children: D.workEmail
244
+ }),
245
+ /* @__PURE__ */ y(n, {
246
+ id: "workEmail",
247
+ type: "email",
248
+ value: T.workEmail.value,
249
+ onChange: (e) => T.workEmail.onValueChange(e.target.value),
250
+ onBlur: T.workEmail.onBlur,
251
+ ...h("workEmail", T.workEmail.error),
252
+ disabled: O,
253
+ required: !0
254
+ }),
255
+ /* @__PURE__ */ y(m, {
256
+ fieldId: "workEmail",
257
+ error: T.workEmail.error
258
+ })
259
+ ] }),
260
+ /* @__PURE__ */ b("fieldset", {
261
+ "data-testid": E?.ownsOver25Question,
262
+ children: [
263
+ /* @__PURE__ */ y("legend", {
264
+ id: "ownsOver25Legend",
265
+ className: "ttw:mb-2 ttw:text-sm ttw:font-medium",
266
+ children: D.ownsOver25Question
267
+ }),
268
+ /* @__PURE__ */ b(s, {
269
+ value: T.ownsOver25Percent.value,
270
+ onValueChange: T.ownsOver25Percent.onValueChange,
271
+ className: "ttw:flex ttw:gap-4",
272
+ disabled: O,
273
+ "aria-labelledby": "ownsOver25Legend",
274
+ "aria-describedby": h("ownsOver25", T.ownsOver25Percent.error)["aria-describedby"],
275
+ onBlur: g(T.ownsOver25Percent.onBlur),
276
+ children: [/* @__PURE__ */ b("div", {
277
+ className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
278
+ children: [/* @__PURE__ */ y(c, {
279
+ value: "yes",
280
+ id: "ownsOver25Yes",
281
+ "aria-invalid": T.ownsOver25Percent.error ? !0 : void 0,
282
+ className: "ttw:cursor-pointer"
283
+ }), /* @__PURE__ */ y(o, {
284
+ htmlFor: "ownsOver25Yes",
285
+ className: "ttw:cursor-pointer",
286
+ children: D.ownsOver25Yes
287
+ })]
288
+ }), /* @__PURE__ */ b("div", {
289
+ className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
290
+ children: [/* @__PURE__ */ y(c, {
291
+ value: "no",
292
+ id: "ownsOver25No",
293
+ "aria-invalid": T.ownsOver25Percent.error ? !0 : void 0,
294
+ className: "ttw:cursor-pointer"
295
+ }), /* @__PURE__ */ y(o, {
296
+ htmlFor: "ownsOver25No",
297
+ className: "ttw:cursor-pointer",
298
+ children: D.ownsOver25No
299
+ })]
300
+ })]
301
+ }),
302
+ /* @__PURE__ */ y(m, {
303
+ fieldId: "ownsOver25",
304
+ error: T.ownsOver25Percent.error
305
+ })
306
+ ]
307
+ }),
308
+ M ? /* @__PURE__ */ b("div", { children: [
309
+ /* @__PURE__ */ y(C, {
310
+ htmlFor: "ownershipPercentage",
311
+ children: D.ownershipPercentage
312
+ }),
313
+ /* @__PURE__ */ b(r, {
314
+ className: "ttw:w-32",
315
+ children: [/* @__PURE__ */ y(a, {
316
+ id: "ownershipPercentage",
317
+ type: "number",
318
+ min: 25,
319
+ max: 100,
320
+ "data-has-end-addon": "",
321
+ placeholder: D.ownershipPercentagePlaceholder,
322
+ value: T.ownershipPercentage.value ?? "",
323
+ onChange: (e) => T.ownershipPercentage.onValueChange(e.target.value === "" ? null : Number(e.target.value)),
324
+ onBlur: T.ownershipPercentage.onBlur,
325
+ ...h("ownershipPercentage", T.ownershipPercentage.error),
326
+ disabled: O,
327
+ required: !0
328
+ }), /* @__PURE__ */ y(i, {
329
+ align: "inline-end",
330
+ "aria-hidden": !0,
331
+ children: "%"
332
+ })]
333
+ }),
334
+ /* @__PURE__ */ y(m, {
335
+ fieldId: "ownershipPercentage",
336
+ error: T.ownershipPercentage.error
337
+ })
338
+ ] }) : null
339
+ ]
28
340
  });
29
341
  }
30
342
  //#endregion
31
- export { a as AboutYouSummary };
343
+ export { T as AboutYouEditForm };