@tesouro/embedded-components-react 0.7.40 → 0.7.42

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 (47) hide show
  1. package/README.md +2 -2
  2. package/dist/index.css +11 -0
  3. package/dist/index.d.ts +16 -14
  4. package/dist/lib/CounterpartsWidget.d.ts +16 -14
  5. package/dist/lib/CounterpartsWidgetPublic.d.ts +16 -14
  6. package/dist/lib/CustomersWidget.d.ts +16 -14
  7. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/mocks/acceptDisclosures.js +33 -28
  8. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/mocks/labels.js +6 -2
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/mocks/bankAccountOnboarding.js +40 -22
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/mocks/labels.js +14 -2
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +8 -10
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +274 -2
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +30 -4
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +21 -272
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +65 -26
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +341 -21
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +27 -65
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +26 -341
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +72 -27
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +85 -26
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +8 -74
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +55 -83
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +7 -6
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +42 -37
  30. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +30 -29
  31. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/constants.js +6 -6
  32. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsTable.js +143 -95
  33. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +60 -48
  34. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index.js +4 -4
  36. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +22 -15
  37. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +137 -135
  38. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/mocks/expenseManagement.js +163 -140
  39. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/mocks/labels.js +22 -16
  40. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/labels.js +12 -0
  41. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js +255 -88
  42. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +106 -108
  43. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  44. package/dist/scenarios/index.d.ts +1 -1
  45. package/package.json +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +0 -11
  47. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +0 -64
@@ -1,2 +1,274 @@
1
- import "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import "react/jsx-runtime";
1
+ import { Combobox as e, Input as t, Label as n, Select as r, SelectContent as i, SelectItem as a, SelectTrigger as o, SelectValue as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { FieldError as c, fieldErrorAria as l, onCompositeBlur as u, selectBlurHandlers as d } from "./index3.js";
3
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
4
+ //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js
5
+ function m({ htmlFor: e, children: t }) {
6
+ return /* @__PURE__ */ f(n, {
7
+ htmlFor: e,
8
+ className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
9
+ children: t
10
+ });
11
+ }
12
+ var h = "ttw:w-full";
13
+ function g({ fields: n, testIds: g, labels: _, isDisabled: v, taxIdRequired: y, taxIdPlaceholder: b, taxIdHelpText: x }) {
14
+ let S = d(n.state.onBlur), C = d(n.companyStructure.onBlur);
15
+ return /* @__PURE__ */ p("section", {
16
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
17
+ "data-testid": g?.root,
18
+ children: [
19
+ /* @__PURE__ */ p("div", { children: [
20
+ /* @__PURE__ */ f(m, {
21
+ htmlFor: "companyLegalName",
22
+ children: _.companyLegalName
23
+ }),
24
+ /* @__PURE__ */ f(t, {
25
+ id: "companyLegalName",
26
+ value: n.companyLegalName.value,
27
+ onChange: (e) => n.companyLegalName.onValueChange(e.target.value),
28
+ onBlur: n.companyLegalName.onBlur,
29
+ ...l("companyLegalName", n.companyLegalName.error),
30
+ disabled: v,
31
+ required: !0
32
+ }),
33
+ /* @__PURE__ */ f(c, {
34
+ fieldId: "companyLegalName",
35
+ error: n.companyLegalName.error
36
+ })
37
+ ] }),
38
+ /* @__PURE__ */ p("div", { children: [
39
+ /* @__PURE__ */ f(m, {
40
+ htmlFor: "companyDbaName",
41
+ children: _.companyDbaName
42
+ }),
43
+ /* @__PURE__ */ f(t, {
44
+ id: "companyDbaName",
45
+ value: n.companyDbaName.value,
46
+ onChange: (e) => n.companyDbaName.onValueChange(e.target.value),
47
+ onBlur: n.companyDbaName.onBlur,
48
+ ...l("companyDbaName", n.companyDbaName.error),
49
+ disabled: v
50
+ }),
51
+ /* @__PURE__ */ f(c, {
52
+ fieldId: "companyDbaName",
53
+ error: n.companyDbaName.error
54
+ })
55
+ ] }),
56
+ /* @__PURE__ */ p("div", { children: [
57
+ /* @__PURE__ */ f(m, {
58
+ htmlFor: "businessAddress",
59
+ children: _.businessAddress
60
+ }),
61
+ /* @__PURE__ */ f(t, {
62
+ id: "businessAddress",
63
+ value: n.businessAddress.value,
64
+ onChange: (e) => n.businessAddress.onValueChange(e.target.value),
65
+ onBlur: n.businessAddress.onBlur,
66
+ ...l("businessAddress", n.businessAddress.error),
67
+ disabled: v,
68
+ required: !0
69
+ }),
70
+ /* @__PURE__ */ f(c, {
71
+ fieldId: "businessAddress",
72
+ error: n.businessAddress.error
73
+ })
74
+ ] }),
75
+ /* @__PURE__ */ p("div", {
76
+ className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
77
+ children: [
78
+ /* @__PURE__ */ p("div", {
79
+ className: "ttw:min-w-0",
80
+ children: [
81
+ /* @__PURE__ */ f(m, {
82
+ htmlFor: "city",
83
+ children: _.city
84
+ }),
85
+ /* @__PURE__ */ f(t, {
86
+ id: "city",
87
+ value: n.city.value,
88
+ onChange: (e) => n.city.onValueChange(e.target.value),
89
+ onBlur: n.city.onBlur,
90
+ ...l("city", n.city.error),
91
+ disabled: v,
92
+ required: !0
93
+ }),
94
+ /* @__PURE__ */ f(c, {
95
+ fieldId: "city",
96
+ error: n.city.error
97
+ })
98
+ ]
99
+ }),
100
+ /* @__PURE__ */ p("div", {
101
+ className: "ttw:min-w-0",
102
+ children: [
103
+ /* @__PURE__ */ f(m, {
104
+ htmlFor: "state",
105
+ children: _.state
106
+ }),
107
+ /* @__PURE__ */ p(r, {
108
+ value: n.state.value,
109
+ onValueChange: n.state.onValueChange,
110
+ onOpenChange: S.onOpenChange,
111
+ disabled: v,
112
+ children: [/* @__PURE__ */ f(o, {
113
+ id: "state",
114
+ className: h,
115
+ onBlur: S.onTriggerBlur,
116
+ ...l("state", n.state.error),
117
+ children: /* @__PURE__ */ f(s, { placeholder: _.statePlaceholder })
118
+ }), /* @__PURE__ */ f(i, { children: n.state.options.map((e) => /* @__PURE__ */ f(a, {
119
+ value: e.value,
120
+ children: e.label
121
+ }, e.value)) })]
122
+ }),
123
+ /* @__PURE__ */ f(c, {
124
+ fieldId: "state",
125
+ error: n.state.error
126
+ })
127
+ ]
128
+ }),
129
+ /* @__PURE__ */ p("div", {
130
+ className: "ttw:min-w-0",
131
+ children: [
132
+ /* @__PURE__ */ f(m, {
133
+ htmlFor: "zipCode",
134
+ children: _.zipCode
135
+ }),
136
+ /* @__PURE__ */ f(t, {
137
+ id: "zipCode",
138
+ value: n.zipCode.value,
139
+ onChange: (e) => n.zipCode.onValueChange(e.target.value),
140
+ onBlur: n.zipCode.onBlur,
141
+ ...l("zipCode", n.zipCode.error),
142
+ disabled: v,
143
+ required: !0,
144
+ inputMode: "numeric"
145
+ }),
146
+ /* @__PURE__ */ f(c, {
147
+ fieldId: "zipCode",
148
+ error: n.zipCode.error
149
+ })
150
+ ]
151
+ })
152
+ ]
153
+ }),
154
+ /* @__PURE__ */ p("div", { children: [
155
+ /* @__PURE__ */ f(m, {
156
+ htmlFor: "companyPhoneNumber",
157
+ children: _.companyPhoneNumber
158
+ }),
159
+ /* @__PURE__ */ f(t, {
160
+ id: "companyPhoneNumber",
161
+ type: "tel",
162
+ value: n.companyPhoneNumber.value,
163
+ onChange: (e) => n.companyPhoneNumber.onValueChange(e.target.value),
164
+ onBlur: n.companyPhoneNumber.onBlur,
165
+ ...l("companyPhoneNumber", n.companyPhoneNumber.error),
166
+ disabled: v,
167
+ required: !0
168
+ }),
169
+ /* @__PURE__ */ f(c, {
170
+ fieldId: "companyPhoneNumber",
171
+ error: n.companyPhoneNumber.error
172
+ })
173
+ ] }),
174
+ /* @__PURE__ */ p("div", { children: [
175
+ /* @__PURE__ */ f(m, {
176
+ htmlFor: "companyStructure",
177
+ children: _.companyStructure
178
+ }),
179
+ /* @__PURE__ */ p(r, {
180
+ value: n.companyStructure.value,
181
+ onValueChange: n.companyStructure.onValueChange,
182
+ onOpenChange: C.onOpenChange,
183
+ disabled: v,
184
+ children: [/* @__PURE__ */ f(o, {
185
+ id: "companyStructure",
186
+ className: h,
187
+ onBlur: C.onTriggerBlur,
188
+ ...l("companyStructure", n.companyStructure.error),
189
+ children: /* @__PURE__ */ f(s, { placeholder: _.companyStructurePlaceholder })
190
+ }), /* @__PURE__ */ f(i, { children: n.companyStructure.options.map((e) => /* @__PURE__ */ f(a, {
191
+ value: e.value,
192
+ children: e.label
193
+ }, e.value)) })]
194
+ }),
195
+ /* @__PURE__ */ f(c, {
196
+ fieldId: "companyStructure",
197
+ error: n.companyStructure.error
198
+ })
199
+ ] }),
200
+ /* @__PURE__ */ p("div", { children: [
201
+ /* @__PURE__ */ f(m, {
202
+ htmlFor: "website",
203
+ children: _.website
204
+ }),
205
+ /* @__PURE__ */ f(t, {
206
+ id: "website",
207
+ type: "url",
208
+ value: n.website.value,
209
+ onChange: (e) => n.website.onValueChange(e.target.value),
210
+ onBlur: n.website.onBlur,
211
+ ...l("website", n.website.error),
212
+ disabled: v
213
+ }),
214
+ /* @__PURE__ */ f(c, {
215
+ fieldId: "website",
216
+ error: n.website.error
217
+ })
218
+ ] }),
219
+ /* @__PURE__ */ p("div", { children: [
220
+ /* @__PURE__ */ f(m, {
221
+ htmlFor: "taxId",
222
+ children: _.taxId
223
+ }),
224
+ /* @__PURE__ */ f(t, {
225
+ id: "taxId",
226
+ value: n.taxId.value,
227
+ onChange: (e) => n.taxId.onValueChange(e.target.value),
228
+ onBlur: n.taxId.onBlur,
229
+ disabled: v,
230
+ required: y,
231
+ inputMode: "numeric",
232
+ maxLength: 9,
233
+ placeholder: b,
234
+ ...l("taxId", n.taxId.error, x ? "taxId-on-file" : void 0)
235
+ }),
236
+ /* @__PURE__ */ f(c, {
237
+ fieldId: "taxId",
238
+ error: n.taxId.error
239
+ }),
240
+ x ? /* @__PURE__ */ f("p", {
241
+ id: "taxId-on-file",
242
+ className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
243
+ children: x
244
+ }) : null
245
+ ] }),
246
+ /* @__PURE__ */ p("div", { children: [
247
+ /* @__PURE__ */ f(m, {
248
+ htmlFor: "naicsCode",
249
+ children: _.naicsCode
250
+ }),
251
+ /* @__PURE__ */ f(e, {
252
+ inputId: "naicsCode",
253
+ "data-testid": g?.naicsCombobox,
254
+ invalid: !!n.naicsCode.error,
255
+ describedBy: l("naicsCode", n.naicsCode.error)["aria-describedby"],
256
+ onBlur: u(n.naicsCode.onBlur),
257
+ items: n.naicsCode.options,
258
+ value: n.naicsCode.value,
259
+ onValueChange: (e) => {
260
+ n.naicsCode.onValueChange(Array.isArray(e) ? e[0] ?? "" : e);
261
+ },
262
+ labels: { placeholder: _.naicsCodePlaceholder },
263
+ disabled: v
264
+ }),
265
+ /* @__PURE__ */ f(c, {
266
+ fieldId: "naicsCode",
267
+ error: n.naicsCode.error
268
+ })
269
+ ] })
270
+ ]
271
+ });
272
+ }
273
+ //#endregion
274
+ export { g as BusinessDetailsEditForm };
@@ -1,4 +1,30 @@
1
- import "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import "react";
3
- import "react/jsx-runtime";
4
- import "@radix-ui/react-use-controllable-state";
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";
3
+ //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js
4
+ function i({ label: i, value: a, testId: o }) {
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",
15
+ children: a
16
+ })] }) : null;
17
+ }
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
+ }, e.testId ?? e.label))
27
+ });
28
+ }
29
+ //#endregion
30
+ export { a as BusinessDetailsSummary };
@@ -1,274 +1,23 @@
1
- import { Combobox as e, Input as t, Label as n, Select as r, SelectContent as i, SelectItem as a, SelectTrigger as o, SelectValue as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { FieldError as c, fieldErrorAria as l, onCompositeBlur as u, selectBlurHandlers as d } from "./index3.js";
3
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
4
1
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js
5
- function m({ htmlFor: e, children: t }) {
6
- return /* @__PURE__ */ f(n, {
7
- htmlFor: e,
8
- className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
9
- children: t
10
- });
11
- }
12
- var h = "ttw:w-full";
13
- function g({ fields: n, testIds: g, labels: _, isDisabled: v, taxIdRequired: y, taxIdPlaceholder: b, taxIdHelpText: x }) {
14
- let S = d(n.state.onBlur), C = d(n.companyStructure.onBlur);
15
- return /* @__PURE__ */ p("section", {
16
- className: "ttw:flex ttw:flex-col ttw:gap-3",
17
- "data-testid": g?.root,
18
- children: [
19
- /* @__PURE__ */ p("div", { children: [
20
- /* @__PURE__ */ f(m, {
21
- htmlFor: "companyLegalName",
22
- children: _.companyLegalName
23
- }),
24
- /* @__PURE__ */ f(t, {
25
- id: "companyLegalName",
26
- value: n.companyLegalName.value,
27
- onChange: (e) => n.companyLegalName.onValueChange(e.target.value),
28
- onBlur: n.companyLegalName.onBlur,
29
- ...l("companyLegalName", n.companyLegalName.error),
30
- disabled: v,
31
- required: !0
32
- }),
33
- /* @__PURE__ */ f(c, {
34
- fieldId: "companyLegalName",
35
- error: n.companyLegalName.error
36
- })
37
- ] }),
38
- /* @__PURE__ */ p("div", { children: [
39
- /* @__PURE__ */ f(m, {
40
- htmlFor: "companyDbaName",
41
- children: _.companyDbaName
42
- }),
43
- /* @__PURE__ */ f(t, {
44
- id: "companyDbaName",
45
- value: n.companyDbaName.value,
46
- onChange: (e) => n.companyDbaName.onValueChange(e.target.value),
47
- onBlur: n.companyDbaName.onBlur,
48
- ...l("companyDbaName", n.companyDbaName.error),
49
- disabled: v
50
- }),
51
- /* @__PURE__ */ f(c, {
52
- fieldId: "companyDbaName",
53
- error: n.companyDbaName.error
54
- })
55
- ] }),
56
- /* @__PURE__ */ p("div", { children: [
57
- /* @__PURE__ */ f(m, {
58
- htmlFor: "businessAddress",
59
- children: _.businessAddress
60
- }),
61
- /* @__PURE__ */ f(t, {
62
- id: "businessAddress",
63
- value: n.businessAddress.value,
64
- onChange: (e) => n.businessAddress.onValueChange(e.target.value),
65
- onBlur: n.businessAddress.onBlur,
66
- ...l("businessAddress", n.businessAddress.error),
67
- disabled: v,
68
- required: !0
69
- }),
70
- /* @__PURE__ */ f(c, {
71
- fieldId: "businessAddress",
72
- error: n.businessAddress.error
73
- })
74
- ] }),
75
- /* @__PURE__ */ p("div", {
76
- className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
77
- children: [
78
- /* @__PURE__ */ p("div", {
79
- className: "ttw:min-w-0",
80
- children: [
81
- /* @__PURE__ */ f(m, {
82
- htmlFor: "city",
83
- children: _.city
84
- }),
85
- /* @__PURE__ */ f(t, {
86
- id: "city",
87
- value: n.city.value,
88
- onChange: (e) => n.city.onValueChange(e.target.value),
89
- onBlur: n.city.onBlur,
90
- ...l("city", n.city.error),
91
- disabled: v,
92
- required: !0
93
- }),
94
- /* @__PURE__ */ f(c, {
95
- fieldId: "city",
96
- error: n.city.error
97
- })
98
- ]
99
- }),
100
- /* @__PURE__ */ p("div", {
101
- className: "ttw:min-w-0",
102
- children: [
103
- /* @__PURE__ */ f(m, {
104
- htmlFor: "state",
105
- children: _.state
106
- }),
107
- /* @__PURE__ */ p(r, {
108
- value: n.state.value,
109
- onValueChange: n.state.onValueChange,
110
- onOpenChange: S.onOpenChange,
111
- disabled: v,
112
- children: [/* @__PURE__ */ f(o, {
113
- id: "state",
114
- className: h,
115
- onBlur: S.onTriggerBlur,
116
- ...l("state", n.state.error),
117
- children: /* @__PURE__ */ f(s, { placeholder: _.statePlaceholder })
118
- }), /* @__PURE__ */ f(i, { children: n.state.options.map((e) => /* @__PURE__ */ f(a, {
119
- value: e.value,
120
- children: e.label
121
- }, e.value)) })]
122
- }),
123
- /* @__PURE__ */ f(c, {
124
- fieldId: "state",
125
- error: n.state.error
126
- })
127
- ]
128
- }),
129
- /* @__PURE__ */ p("div", {
130
- className: "ttw:min-w-0",
131
- children: [
132
- /* @__PURE__ */ f(m, {
133
- htmlFor: "zipCode",
134
- children: _.zipCode
135
- }),
136
- /* @__PURE__ */ f(t, {
137
- id: "zipCode",
138
- value: n.zipCode.value,
139
- onChange: (e) => n.zipCode.onValueChange(e.target.value),
140
- onBlur: n.zipCode.onBlur,
141
- ...l("zipCode", n.zipCode.error),
142
- disabled: v,
143
- required: !0,
144
- inputMode: "numeric"
145
- }),
146
- /* @__PURE__ */ f(c, {
147
- fieldId: "zipCode",
148
- error: n.zipCode.error
149
- })
150
- ]
151
- })
152
- ]
153
- }),
154
- /* @__PURE__ */ p("div", { children: [
155
- /* @__PURE__ */ f(m, {
156
- htmlFor: "companyPhoneNumber",
157
- children: _.companyPhoneNumber
158
- }),
159
- /* @__PURE__ */ f(t, {
160
- id: "companyPhoneNumber",
161
- type: "tel",
162
- value: n.companyPhoneNumber.value,
163
- onChange: (e) => n.companyPhoneNumber.onValueChange(e.target.value),
164
- onBlur: n.companyPhoneNumber.onBlur,
165
- ...l("companyPhoneNumber", n.companyPhoneNumber.error),
166
- disabled: v,
167
- required: !0
168
- }),
169
- /* @__PURE__ */ f(c, {
170
- fieldId: "companyPhoneNumber",
171
- error: n.companyPhoneNumber.error
172
- })
173
- ] }),
174
- /* @__PURE__ */ p("div", { children: [
175
- /* @__PURE__ */ f(m, {
176
- htmlFor: "companyStructure",
177
- children: _.companyStructure
178
- }),
179
- /* @__PURE__ */ p(r, {
180
- value: n.companyStructure.value,
181
- onValueChange: n.companyStructure.onValueChange,
182
- onOpenChange: C.onOpenChange,
183
- disabled: v,
184
- children: [/* @__PURE__ */ f(o, {
185
- id: "companyStructure",
186
- className: h,
187
- onBlur: C.onTriggerBlur,
188
- ...l("companyStructure", n.companyStructure.error),
189
- children: /* @__PURE__ */ f(s, { placeholder: _.companyStructurePlaceholder })
190
- }), /* @__PURE__ */ f(i, { children: n.companyStructure.options.map((e) => /* @__PURE__ */ f(a, {
191
- value: e.value,
192
- children: e.label
193
- }, e.value)) })]
194
- }),
195
- /* @__PURE__ */ f(c, {
196
- fieldId: "companyStructure",
197
- error: n.companyStructure.error
198
- })
199
- ] }),
200
- /* @__PURE__ */ p("div", { children: [
201
- /* @__PURE__ */ f(m, {
202
- htmlFor: "website",
203
- children: _.website
204
- }),
205
- /* @__PURE__ */ f(t, {
206
- id: "website",
207
- type: "url",
208
- value: n.website.value,
209
- onChange: (e) => n.website.onValueChange(e.target.value),
210
- onBlur: n.website.onBlur,
211
- ...l("website", n.website.error),
212
- disabled: v
213
- }),
214
- /* @__PURE__ */ f(c, {
215
- fieldId: "website",
216
- error: n.website.error
217
- })
218
- ] }),
219
- /* @__PURE__ */ p("div", { children: [
220
- /* @__PURE__ */ f(m, {
221
- htmlFor: "taxId",
222
- children: _.taxId
223
- }),
224
- /* @__PURE__ */ f(t, {
225
- id: "taxId",
226
- value: n.taxId.value,
227
- onChange: (e) => n.taxId.onValueChange(e.target.value),
228
- onBlur: n.taxId.onBlur,
229
- disabled: v,
230
- required: y,
231
- inputMode: "numeric",
232
- maxLength: 9,
233
- placeholder: b,
234
- ...l("taxId", n.taxId.error, x ? "taxId-on-file" : void 0)
235
- }),
236
- /* @__PURE__ */ f(c, {
237
- fieldId: "taxId",
238
- error: n.taxId.error
239
- }),
240
- x ? /* @__PURE__ */ f("p", {
241
- id: "taxId-on-file",
242
- className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
243
- children: x
244
- }) : null
245
- ] }),
246
- /* @__PURE__ */ p("div", { children: [
247
- /* @__PURE__ */ f(m, {
248
- htmlFor: "naicsCode",
249
- children: _.naicsCode
250
- }),
251
- /* @__PURE__ */ f(e, {
252
- inputId: "naicsCode",
253
- "data-testid": g?.naicsCombobox,
254
- invalid: !!n.naicsCode.error,
255
- describedBy: l("naicsCode", n.naicsCode.error)["aria-describedby"],
256
- onBlur: u(n.naicsCode.onBlur),
257
- items: n.naicsCode.options,
258
- value: n.naicsCode.value,
259
- onValueChange: (e) => {
260
- n.naicsCode.onValueChange(Array.isArray(e) ? e[0] ?? "" : e);
261
- },
262
- labels: { placeholder: _.naicsCodePlaceholder },
263
- disabled: v
264
- }),
265
- /* @__PURE__ */ f(c, {
266
- fieldId: "naicsCode",
267
- error: n.naicsCode.error
268
- })
269
- ] })
270
- ]
271
- });
272
- }
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
+ };
273
22
  //#endregion
274
- export { g as BusinessDetailsEditForm };
23
+ export { e as BUSINESS_DETAILS_PANEL_LABELS_EN };