@tesouro/embedded-components-react 0.10.6 → 0.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +9 -0
- package/dist/index.d.ts +46 -7
- package/dist/index.js +4 -4
- package/dist/lib/BankAccountOnboardingWidget.d.ts +46 -7
- package/dist/lib/BankAccountOnboardingWidget.js +4 -4
- package/dist/lib/WidgetSuite.d.ts +46 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +175 -98
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +365 -343
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/ReviewStep.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/TermsStep.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/apiMapping.js +15 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicantOwnerSummary.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +3 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +5 -340
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +422 -58
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +50 -30
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +39 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +6 -58
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +62 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +31 -38
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +34 -91
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +96 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +12 -276
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +294 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +23 -53
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +46 -343
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +268 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +29 -59
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +53 -118
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +123 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +5 -80
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js +10 -64
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index33.js +64 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index34.js +6 -44
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index35.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +110 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +89 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +67 -61
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellStepper.js +16 -19
- package/package.json +1 -1
|
@@ -1,54 +1,24 @@
|
|
|
1
|
-
import { Button as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { BUSINESS_DETAILS_PANEL_LABELS_EN as n } from "./index22.js";
|
|
3
|
-
import { BusinessDetailsEditForm as r } from "./index20.js";
|
|
4
|
-
import { BusinessDetailsSummary as i } from "./index21.js";
|
|
5
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
1
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/* @__PURE__ */ a("div", {
|
|
31
|
-
className: "ttw:mb-3 ttw:border-b ttw:border-border",
|
|
32
|
-
"aria-hidden": !0
|
|
33
|
-
}),
|
|
34
|
-
/* @__PURE__ */ a(i, {
|
|
35
|
-
rows: l,
|
|
36
|
-
testIds: g?.summary
|
|
37
|
-
}),
|
|
38
|
-
/* @__PURE__ */ a("div", {
|
|
39
|
-
className: "ttw:mt-4 ttw:flex ttw:justify-start",
|
|
40
|
-
children: /* @__PURE__ */ a(e, {
|
|
41
|
-
type: "button",
|
|
42
|
-
variant: "secondary",
|
|
43
|
-
size: "sm",
|
|
44
|
-
onClick: c,
|
|
45
|
-
disabled: f,
|
|
46
|
-
"aria-label": _.editButtonAriaLabel,
|
|
47
|
-
"data-testid": g?.editButton,
|
|
48
|
-
children: _.editButton
|
|
49
|
-
})
|
|
50
|
-
})
|
|
51
|
-
]
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
export { n as BUSINESS_DETAILS_PANEL_LABELS_EN, s as BusinessDetailsPanel };
|
|
2
|
+
var e = {
|
|
3
|
+
panelTitle: "Business details",
|
|
4
|
+
editButtonAriaLabel: "Edit business details",
|
|
5
|
+
editButton: "Edit business details",
|
|
6
|
+
requiredFieldsNote: "Required fields are marked with an asterisk *",
|
|
7
|
+
requiredFieldMarker: " *",
|
|
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
|
+
companyStructure: "Company structure",
|
|
17
|
+
companyStructurePlaceholder: "Select structure",
|
|
18
|
+
website: "Website (optional)",
|
|
19
|
+
websiteInvalid: "Enter a valid website URL (no spaces).",
|
|
20
|
+
taxId: "Tax ID (EIN)",
|
|
21
|
+
naicsCode: "Industry (NAICS code)",
|
|
22
|
+
naicsCodePlaceholder: "Search by code or industry"
|
|
23
|
+
};
|
|
24
|
+
export { e as BUSINESS_DETAILS_PANEL_LABELS_EN };
|
|
@@ -1,351 +1,54 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Button as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BUSINESS_DETAILS_PANEL_LABELS_EN as n } from "./index23.js";
|
|
3
|
+
import { BusinessDetailsEditForm as r } from "./index21.js";
|
|
4
|
+
import { BusinessDetailsSummary as i } from "./index22.js";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
function s({ isEditing: s, onEditClick: c, summaryRows: l, editFields: u, labels: d, isDisabled: f, taxIdRequired: p, taxIdPlaceholder: m, taxIdHelpText: h, testIds: g }) {
|
|
8
|
+
let _ = {
|
|
9
|
+
...n,
|
|
10
|
+
...d
|
|
11
|
+
};
|
|
12
|
+
return s ? /* @__PURE__ */ a(r, {
|
|
13
|
+
fields: u,
|
|
14
|
+
labels: _,
|
|
15
|
+
isDisabled: f,
|
|
16
|
+
taxIdRequired: p,
|
|
17
|
+
taxIdPlaceholder: m,
|
|
18
|
+
taxIdHelpText: h,
|
|
19
|
+
testIds: g?.editForm
|
|
20
|
+
}) : /* @__PURE__ */ o("section", {
|
|
21
|
+
"data-testid": g?.root,
|
|
22
|
+
className: "ttw:relative ttw:min-w-0",
|
|
20
23
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
/* @__PURE__ */ a(t, {
|
|
25
|
+
component: "h3",
|
|
26
|
+
variant: "h6",
|
|
27
|
+
className: "ttw:mb-3 ttw:font-semibold ttw:text-foreground",
|
|
28
|
+
children: _.panelTitle
|
|
24
29
|
}),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
children: [D.firstName, D.requiredFieldMarker]
|
|
29
|
-
}),
|
|
30
|
-
/* @__PURE__ */ y(n, {
|
|
31
|
-
id: "firstName",
|
|
32
|
-
value: T.firstName.value,
|
|
33
|
-
onChange: (e) => T.firstName.onValueChange(e.target.value),
|
|
34
|
-
onBlur: T.firstName.onBlur,
|
|
35
|
-
...h("firstName", T.firstName.error),
|
|
36
|
-
disabled: O,
|
|
37
|
-
required: !0
|
|
38
|
-
}),
|
|
39
|
-
/* @__PURE__ */ y(m, {
|
|
40
|
-
fieldId: "firstName",
|
|
41
|
-
error: T.firstName.error
|
|
42
|
-
})
|
|
43
|
-
] }),
|
|
44
|
-
/* @__PURE__ */ b("div", { children: [
|
|
45
|
-
/* @__PURE__ */ b(C, {
|
|
46
|
-
htmlFor: "lastName",
|
|
47
|
-
children: [D.lastName, D.requiredFieldMarker]
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ y(n, {
|
|
50
|
-
id: "lastName",
|
|
51
|
-
value: T.lastName.value,
|
|
52
|
-
onChange: (e) => T.lastName.onValueChange(e.target.value),
|
|
53
|
-
onBlur: T.lastName.onBlur,
|
|
54
|
-
...h("lastName", T.lastName.error),
|
|
55
|
-
disabled: O,
|
|
56
|
-
required: !0
|
|
57
|
-
}),
|
|
58
|
-
/* @__PURE__ */ y(m, {
|
|
59
|
-
fieldId: "lastName",
|
|
60
|
-
error: T.lastName.error
|
|
61
|
-
})
|
|
62
|
-
] }),
|
|
63
|
-
/* @__PURE__ */ b("div", { children: [
|
|
64
|
-
/* @__PURE__ */ b(C, {
|
|
65
|
-
htmlFor: "dateOfBirth",
|
|
66
|
-
children: [D.dateOfBirth, D.requiredFieldMarker]
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ y(t, {
|
|
69
|
-
id: "dateOfBirth",
|
|
70
|
-
value: T.dateOfBirth.value,
|
|
71
|
-
onChange: T.dateOfBirth.onValueChange,
|
|
72
|
-
placeholder: D.dateOfBirthPlaceholder,
|
|
73
|
-
disabled: O,
|
|
74
|
-
onBlur: T.dateOfBirth.onBlur,
|
|
75
|
-
required: !0,
|
|
76
|
-
...h("dateOfBirth", T.dateOfBirth.error, T.dateOfBirth.error ? void 0 : "dateOfBirth-hint")
|
|
77
|
-
}),
|
|
78
|
-
T.dateOfBirth.error ? null : /* @__PURE__ */ y("p", {
|
|
79
|
-
id: "dateOfBirth-hint",
|
|
80
|
-
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
81
|
-
children: D.dateOfBirthHint
|
|
82
|
-
}),
|
|
83
|
-
/* @__PURE__ */ y(m, {
|
|
84
|
-
fieldId: "dateOfBirth",
|
|
85
|
-
error: T.dateOfBirth.error
|
|
86
|
-
})
|
|
87
|
-
] }),
|
|
88
|
-
/* @__PURE__ */ b("div", { children: [
|
|
89
|
-
/* @__PURE__ */ b(C, {
|
|
90
|
-
htmlFor: "ssn",
|
|
91
|
-
children: [D.ssn, F ? D.requiredFieldMarker : null]
|
|
92
|
-
}),
|
|
93
|
-
/* @__PURE__ */ b("div", {
|
|
94
|
-
className: "ttw:flex ttw:gap-2",
|
|
95
|
-
onBlur: g(T.ssn.onBlur),
|
|
96
|
-
children: [/* @__PURE__ */ y(n, {
|
|
97
|
-
id: "ssn",
|
|
98
|
-
className: "ttw:flex-1 ttw:font-mono ttw:tracking-wider",
|
|
99
|
-
type: "text",
|
|
100
|
-
value: B ? N : P,
|
|
101
|
-
onChange: (e) => T.ssn.onValueChange(e.target.value),
|
|
102
|
-
onFocus: () => z(!0),
|
|
103
|
-
onBlur: () => z(!1),
|
|
104
|
-
disabled: O,
|
|
105
|
-
autoComplete: "off",
|
|
106
|
-
inputMode: "numeric",
|
|
107
|
-
maxLength: 11,
|
|
108
|
-
required: F,
|
|
109
|
-
placeholder: I,
|
|
110
|
-
...h("ssn", T.ssn.error, L ? "ssn-on-file" : void 0)
|
|
111
|
-
}), /* @__PURE__ */ y(e, {
|
|
112
|
-
type: "button",
|
|
113
|
-
variant: "outline",
|
|
114
|
-
size: "icon",
|
|
115
|
-
onClick: j,
|
|
116
|
-
disabled: O,
|
|
117
|
-
"aria-label": A,
|
|
118
|
-
children: y(k ? S : x, { className: "ttw:size-4" })
|
|
119
|
-
})]
|
|
120
|
-
}),
|
|
121
|
-
L ? /* @__PURE__ */ y("p", {
|
|
122
|
-
id: "ssn-on-file",
|
|
123
|
-
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
124
|
-
children: L
|
|
125
|
-
}) : null,
|
|
126
|
-
/* @__PURE__ */ y(m, {
|
|
127
|
-
fieldId: "ssn",
|
|
128
|
-
error: T.ssn.error
|
|
129
|
-
})
|
|
130
|
-
] }),
|
|
131
|
-
/* @__PURE__ */ b("div", { children: [
|
|
132
|
-
/* @__PURE__ */ b(C, {
|
|
133
|
-
htmlFor: "homeAddress",
|
|
134
|
-
children: [D.homeAddress, D.requiredFieldMarker]
|
|
135
|
-
}),
|
|
136
|
-
/* @__PURE__ */ y(n, {
|
|
137
|
-
id: "homeAddress",
|
|
138
|
-
value: T.homeAddress.value,
|
|
139
|
-
onChange: (e) => T.homeAddress.onValueChange(e.target.value),
|
|
140
|
-
onBlur: T.homeAddress.onBlur,
|
|
141
|
-
...h("homeAddress", T.homeAddress.error),
|
|
142
|
-
disabled: O,
|
|
143
|
-
required: !0
|
|
144
|
-
}),
|
|
145
|
-
/* @__PURE__ */ y(m, {
|
|
146
|
-
fieldId: "homeAddress",
|
|
147
|
-
error: T.homeAddress.error
|
|
148
|
-
})
|
|
149
|
-
] }),
|
|
150
|
-
/* @__PURE__ */ b("div", {
|
|
151
|
-
className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
|
|
152
|
-
children: [
|
|
153
|
-
/* @__PURE__ */ b("div", {
|
|
154
|
-
className: "ttw:min-w-0",
|
|
155
|
-
children: [
|
|
156
|
-
/* @__PURE__ */ b(C, {
|
|
157
|
-
htmlFor: "city",
|
|
158
|
-
children: [D.city, D.requiredFieldMarker]
|
|
159
|
-
}),
|
|
160
|
-
/* @__PURE__ */ y(n, {
|
|
161
|
-
id: "city",
|
|
162
|
-
value: T.city.value,
|
|
163
|
-
onChange: (e) => T.city.onValueChange(e.target.value),
|
|
164
|
-
onBlur: T.city.onBlur,
|
|
165
|
-
...h("city", T.city.error),
|
|
166
|
-
disabled: O,
|
|
167
|
-
required: !0
|
|
168
|
-
}),
|
|
169
|
-
/* @__PURE__ */ y(m, {
|
|
170
|
-
fieldId: "city",
|
|
171
|
-
error: T.city.error
|
|
172
|
-
})
|
|
173
|
-
]
|
|
174
|
-
}),
|
|
175
|
-
/* @__PURE__ */ b("div", {
|
|
176
|
-
className: "ttw:min-w-0",
|
|
177
|
-
children: [
|
|
178
|
-
/* @__PURE__ */ b(C, {
|
|
179
|
-
htmlFor: "state",
|
|
180
|
-
children: [D.state, D.requiredFieldMarker]
|
|
181
|
-
}),
|
|
182
|
-
/* @__PURE__ */ b(l, {
|
|
183
|
-
value: T.state.value,
|
|
184
|
-
onValueChange: T.state.onValueChange,
|
|
185
|
-
onOpenChange: V.onOpenChange,
|
|
186
|
-
disabled: O,
|
|
187
|
-
children: [/* @__PURE__ */ y(f, {
|
|
188
|
-
id: "state",
|
|
189
|
-
className: w,
|
|
190
|
-
onBlur: V.onTriggerBlur,
|
|
191
|
-
...h("state", T.state.error),
|
|
192
|
-
children: /* @__PURE__ */ y(p, { placeholder: D.statePlaceholder })
|
|
193
|
-
}), /* @__PURE__ */ y(u, { children: T.state.options.map((e) => /* @__PURE__ */ y(d, {
|
|
194
|
-
value: e.value,
|
|
195
|
-
children: e.label
|
|
196
|
-
}, e.value)) })]
|
|
197
|
-
}),
|
|
198
|
-
/* @__PURE__ */ y(m, {
|
|
199
|
-
fieldId: "state",
|
|
200
|
-
error: T.state.error
|
|
201
|
-
})
|
|
202
|
-
]
|
|
203
|
-
}),
|
|
204
|
-
/* @__PURE__ */ b("div", {
|
|
205
|
-
className: "ttw:min-w-0",
|
|
206
|
-
children: [
|
|
207
|
-
/* @__PURE__ */ b(C, {
|
|
208
|
-
htmlFor: "zipCode",
|
|
209
|
-
children: [D.zipCode, D.requiredFieldMarker]
|
|
210
|
-
}),
|
|
211
|
-
/* @__PURE__ */ y(n, {
|
|
212
|
-
id: "zipCode",
|
|
213
|
-
value: T.zipCode.value,
|
|
214
|
-
onChange: (e) => T.zipCode.onValueChange(e.target.value),
|
|
215
|
-
onBlur: T.zipCode.onBlur,
|
|
216
|
-
...h("zipCode", T.zipCode.error),
|
|
217
|
-
disabled: O,
|
|
218
|
-
required: !0,
|
|
219
|
-
inputMode: "numeric"
|
|
220
|
-
}),
|
|
221
|
-
/* @__PURE__ */ y(m, {
|
|
222
|
-
fieldId: "zipCode",
|
|
223
|
-
error: T.zipCode.error
|
|
224
|
-
})
|
|
225
|
-
]
|
|
226
|
-
})
|
|
227
|
-
]
|
|
30
|
+
/* @__PURE__ */ a("div", {
|
|
31
|
+
className: "ttw:mb-3 ttw:border-b ttw:border-border",
|
|
32
|
+
"aria-hidden": !0
|
|
228
33
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
children: [D.mobilePhoneNumber, D.requiredFieldMarker]
|
|
233
|
-
}),
|
|
234
|
-
/* @__PURE__ */ y(n, {
|
|
235
|
-
id: "mobilePhoneNumber",
|
|
236
|
-
type: "tel",
|
|
237
|
-
value: T.mobilePhoneNumber.value,
|
|
238
|
-
onChange: (e) => T.mobilePhoneNumber.onValueChange(e.target.value),
|
|
239
|
-
onBlur: T.mobilePhoneNumber.onBlur,
|
|
240
|
-
...h("mobilePhoneNumber", T.mobilePhoneNumber.error),
|
|
241
|
-
disabled: O,
|
|
242
|
-
required: !0
|
|
243
|
-
}),
|
|
244
|
-
/* @__PURE__ */ y(m, {
|
|
245
|
-
fieldId: "mobilePhoneNumber",
|
|
246
|
-
error: T.mobilePhoneNumber.error
|
|
247
|
-
})
|
|
248
|
-
] }),
|
|
249
|
-
/* @__PURE__ */ b("div", { children: [
|
|
250
|
-
/* @__PURE__ */ b(C, {
|
|
251
|
-
htmlFor: "workEmail",
|
|
252
|
-
children: [D.workEmail, D.requiredFieldMarker]
|
|
253
|
-
}),
|
|
254
|
-
/* @__PURE__ */ y(n, {
|
|
255
|
-
id: "workEmail",
|
|
256
|
-
type: "email",
|
|
257
|
-
value: T.workEmail.value,
|
|
258
|
-
onChange: (e) => T.workEmail.onValueChange(e.target.value),
|
|
259
|
-
onBlur: T.workEmail.onBlur,
|
|
260
|
-
...h("workEmail", T.workEmail.error),
|
|
261
|
-
disabled: O,
|
|
262
|
-
required: !0
|
|
263
|
-
}),
|
|
264
|
-
/* @__PURE__ */ y(m, {
|
|
265
|
-
fieldId: "workEmail",
|
|
266
|
-
error: T.workEmail.error
|
|
267
|
-
})
|
|
268
|
-
] }),
|
|
269
|
-
/* @__PURE__ */ b("fieldset", {
|
|
270
|
-
"data-testid": E?.ownsOver25Question,
|
|
271
|
-
children: [
|
|
272
|
-
/* @__PURE__ */ b("legend", {
|
|
273
|
-
id: "ownsOver25Legend",
|
|
274
|
-
className: "ttw:mb-2 ttw:text-sm ttw:font-medium",
|
|
275
|
-
children: [D.ownsOver25Question, D.requiredFieldMarker]
|
|
276
|
-
}),
|
|
277
|
-
/* @__PURE__ */ b(s, {
|
|
278
|
-
value: T.ownsOver25Percent.value,
|
|
279
|
-
onValueChange: T.ownsOver25Percent.onValueChange,
|
|
280
|
-
className: "ttw:flex ttw:gap-4",
|
|
281
|
-
disabled: O,
|
|
282
|
-
"aria-labelledby": "ownsOver25Legend",
|
|
283
|
-
"aria-describedby": h("ownsOver25", T.ownsOver25Percent.error)["aria-describedby"],
|
|
284
|
-
onBlur: g(T.ownsOver25Percent.onBlur),
|
|
285
|
-
children: [/* @__PURE__ */ b("div", {
|
|
286
|
-
className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
|
|
287
|
-
children: [/* @__PURE__ */ y(c, {
|
|
288
|
-
value: "yes",
|
|
289
|
-
id: "ownsOver25Yes",
|
|
290
|
-
"aria-invalid": T.ownsOver25Percent.error ? !0 : void 0,
|
|
291
|
-
className: "ttw:cursor-pointer"
|
|
292
|
-
}), /* @__PURE__ */ y(o, {
|
|
293
|
-
htmlFor: "ownsOver25Yes",
|
|
294
|
-
className: "ttw:cursor-pointer",
|
|
295
|
-
children: D.ownsOver25Yes
|
|
296
|
-
})]
|
|
297
|
-
}), /* @__PURE__ */ b("div", {
|
|
298
|
-
className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
|
|
299
|
-
children: [/* @__PURE__ */ y(c, {
|
|
300
|
-
value: "no",
|
|
301
|
-
id: "ownsOver25No",
|
|
302
|
-
"aria-invalid": T.ownsOver25Percent.error ? !0 : void 0,
|
|
303
|
-
className: "ttw:cursor-pointer"
|
|
304
|
-
}), /* @__PURE__ */ y(o, {
|
|
305
|
-
htmlFor: "ownsOver25No",
|
|
306
|
-
className: "ttw:cursor-pointer",
|
|
307
|
-
children: D.ownsOver25No
|
|
308
|
-
})]
|
|
309
|
-
})]
|
|
310
|
-
}),
|
|
311
|
-
/* @__PURE__ */ y(m, {
|
|
312
|
-
fieldId: "ownsOver25",
|
|
313
|
-
error: T.ownsOver25Percent.error
|
|
314
|
-
})
|
|
315
|
-
]
|
|
34
|
+
/* @__PURE__ */ a(i, {
|
|
35
|
+
rows: l,
|
|
36
|
+
testIds: g?.summary
|
|
316
37
|
}),
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
placeholder: D.ownershipPercentagePlaceholder,
|
|
331
|
-
value: T.ownershipPercentage.value ?? "",
|
|
332
|
-
onChange: (e) => T.ownershipPercentage.onValueChange(e.target.value === "" ? null : Number(e.target.value)),
|
|
333
|
-
onBlur: T.ownershipPercentage.onBlur,
|
|
334
|
-
...h("ownershipPercentage", T.ownershipPercentage.error),
|
|
335
|
-
disabled: O,
|
|
336
|
-
required: !0
|
|
337
|
-
}), /* @__PURE__ */ y(i, {
|
|
338
|
-
align: "inline-end",
|
|
339
|
-
"aria-hidden": !0,
|
|
340
|
-
children: "%"
|
|
341
|
-
})]
|
|
342
|
-
}),
|
|
343
|
-
/* @__PURE__ */ y(m, {
|
|
344
|
-
fieldId: "ownershipPercentage",
|
|
345
|
-
error: T.ownershipPercentage.error
|
|
346
|
-
})
|
|
347
|
-
] }) : null
|
|
38
|
+
/* @__PURE__ */ a("div", {
|
|
39
|
+
className: "ttw:mt-4 ttw:flex ttw:justify-start",
|
|
40
|
+
children: /* @__PURE__ */ a(e, {
|
|
41
|
+
type: "button",
|
|
42
|
+
variant: "secondary",
|
|
43
|
+
size: "sm",
|
|
44
|
+
onClick: c,
|
|
45
|
+
disabled: f,
|
|
46
|
+
"aria-label": _.editButtonAriaLabel,
|
|
47
|
+
"data-testid": g?.editButton,
|
|
48
|
+
children: _.editButton
|
|
49
|
+
})
|
|
50
|
+
})
|
|
348
51
|
]
|
|
349
52
|
});
|
|
350
53
|
}
|
|
351
|
-
export {
|
|
54
|
+
export { n as BUSINESS_DETAILS_PANEL_LABELS_EN, s as BusinessDetailsPanel };
|