@taxbit/react-sdk 0.2.1 → 0.2.3

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.
@@ -1,53 +1,48 @@
1
- import jn, { useState as K, useEffect as Q, createContext as Vn, useContext as Wn, useCallback as Fa, useMemo as J, useRef as kn } from "react";
2
- const Va = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging" : ""}.taxbit.com/v1/${e}`, Wa = {
1
+ import jn, { useState as U, useEffect as Q, createContext as Vn, useContext as Wn, useCallback as xa, useMemo as J, useRef as kn } from "react";
2
+ const Ka = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging" : ""}.taxbit.com/v1/${e}`, Va = {
3
3
  taxDocumentation: {
4
- post: (e) => Va("tax-documentation", e),
5
- get: (e) => Va("tax-documentation?unmask_tin=true", e)
4
+ post: (e) => Ka("tax-documentation", e),
5
+ get: (e) => Ka("tax-documentation?unmask_tin=true", e)
6
6
  },
7
7
  taxDocumentationStatus: {
8
- get: (e) => Va("tax-documentation-status", e)
8
+ get: (e) => Ka("tax-documentation-status", e)
9
9
  }
10
- };
11
- var xa = /* @__PURE__ */ ((e) => (e.Undocumented = "UNDOCUMENTED", e.Undetermined = "UNDETERMINED", e.Submitted = "SUBMITTED", e.NotSubmitted = "NOT_SUBMITTED", e))(xa || {}), On = /* @__PURE__ */ ((e) => (e.Collected = "COLLECTED", e.NotCollected = "NOT_COLLECTED", e.PartiallyCollected = "PARTIALLY_COLLECTED", e.Complete = "COMPLETE", e.Incomplete = "INCOMPLETE", e))(On || {});
12
- const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function" || e !== Object(e) ? e : Object.fromEntries(
10
+ }, Jn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_]/g, "")), la = (e) => Array.isArray(e) ? e.map((a) => la(a)) : typeof e == "function" || e !== Object(e) ? e : Object.fromEntries(
13
11
  Object.entries(e).map(
14
12
  ([a, n]) => [
15
- a.replace(
16
- /([-_][a-z])/gi,
17
- (r) => r.toUpperCase().replace(/[-_]/g, "")
18
- ),
19
- Ua(n)
13
+ Jn(a),
14
+ la(n)
20
15
  ]
21
16
  )
22
- ), de = (...e) => e.filter(Boolean).join(" "), Jn = (e) => {
17
+ ), de = (...e) => e.filter(Boolean).join(" "), Zn = (e) => {
23
18
  try {
24
19
  const a = (/* @__PURE__ */ new Date()).getUTCFullYear(), n = e.substring(e.length - 4, e.length), r = a - Number(n);
25
20
  return r > -1 && r < 131;
26
21
  } catch {
27
22
  return !1;
28
23
  }
29
- }, Zn = (e) => /^\d{2}\/\d{2}\/\d{4}$/.test(e), qn = (e) => {
24
+ }, qn = (e) => /^\d{2}\/\d{2}\/\d{4}$/.test(e), Yn = (e) => {
30
25
  const a = new Date(e);
31
26
  return !isNaN(a.getTime()) && e === a.toLocaleDateString("en-US", {
32
27
  month: "2-digit",
33
28
  day: "2-digit",
34
29
  year: "numeric"
35
30
  });
36
- }, z = (e) => e === void 0 || e === "", ae = (e) => !z(e), la = (e, a) => {
37
- const n = !!(a != null && a.includes("W-9")) && ((e == null ? void 0 : e.accountHolderUsAccountType) !== void 0 && (e == null ? void 0 : e.regardedOwnerUsPerson) === void 0 || (e == null ? void 0 : e.regardedOwnerUsPerson) === "yes"), r = !!(a != null && a.includes("W-8BEN") || a != null && a.includes("W-8BEN-E")) && ((e == null ? void 0 : e.accountHolderUsPerson) === "no" && (e == null ? void 0 : e.regardedOwnerUsPerson) === void 0 || (e == null ? void 0 : e.regardedOwnerUsPerson) === "no"), s = !!(a != null && a.includes("W-8BEN")) && ((e == null ? void 0 : e.accountHolderForeignAccountType) === "individual" || (e == null ? void 0 : e.regardedOwnerForeignAccountType) === "individual"), o = !!(a != null && a.includes("W-8BEN-E")) && ((e == null ? void 0 : e.accountHolderForeignAccountType) !== "individual" && (e == null ? void 0 : e.accountHolderForeignAccountType) !== "disregardedEntity" || (e == null ? void 0 : e.regardedOwnerForeignAccountType) !== "individual"), u = a == null ? void 0 : a.includes("DAC7"), l = e.accountHolderForeignAccountType === "disregardedEntity" || e.accountHolderUsAccountType === "disregardedEntity" || e.accountHolderUsAccountType === "smllc" && e.accountHolderUsSmllcElection === "no", c = (e == null ? void 0 : e.accountHolderIsEuResident) === "yes" && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1) && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2) && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3) && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4) && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5);
31
+ }, z = (e) => e === void 0 || e === "", ae = (e) => !z(e), da = (e, a) => {
32
+ const n = !!(a != null && a.includes("W-9")) && ((e == null ? void 0 : e.accountHolderUsAccountType) !== void 0 && (e == null ? void 0 : e.regardedOwnerUsPerson) === void 0 || (e == null ? void 0 : e.regardedOwnerUsPerson) === "yes"), r = !!(a != null && a.includes("W-8BEN") || a != null && a.includes("W-8BEN-E")) && ((e == null ? void 0 : e.accountHolderUsPerson) === "no" && (e == null ? void 0 : e.regardedOwnerUsPerson) === void 0 || (e == null ? void 0 : e.regardedOwnerUsPerson) === "no"), s = !!(a != null && a.includes("W-8BEN")) && ((e == null ? void 0 : e.accountHolderForeignAccountType) === "individual" || (e == null ? void 0 : e.regardedOwnerForeignAccountType) === "individual"), o = !!(a != null && a.includes("W-8BEN-E")) && ((e == null ? void 0 : e.accountHolderForeignAccountType) !== "individual" && (e == null ? void 0 : e.accountHolderForeignAccountType) !== "disregardedEntity" || (e == null ? void 0 : e.regardedOwnerForeignAccountType) !== "individual"), u = a == null ? void 0 : a.includes("DAC7"), d = e.accountHolderForeignAccountType === "disregardedEntity" || e.accountHolderUsAccountType === "disregardedEntity" || e.accountHolderUsAccountType === "smllc" && e.accountHolderUsSmllcElection === "no", l = (e == null ? void 0 : e.accountHolderIsEuResident) === "yes" && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1) && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2) && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3) && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4) && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5);
38
33
  return {
39
- accountHolderIsDisregarded: l,
40
- hasNoTaxId: c,
34
+ accountHolderIsDisregarded: d,
35
+ hasNoTaxId: l,
41
36
  isDac7: u,
42
37
  isW9: n,
43
38
  isW8: r,
44
39
  isW8Ben: s,
45
40
  isW8BenE: o
46
41
  };
47
- }, Yn = () => ({
42
+ }, _n = () => ({
48
43
  accountHolderDateOfBirth: "dateOfBirth",
49
44
  regardedOwnerDateOfBirth: "dateOfBirth"
50
- }), hn = (e, a) => new Date(a ?? 2012, e, 0).getDate(), Bn = (e, a) => {
45
+ }), hn = (e, a) => new Date(a ?? 2012, e, 0).getDate(), On = (e, a) => {
51
46
  switch (e) {
52
47
  case "individual":
53
48
  return "nameOfIndividual";
@@ -70,7 +65,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
70
65
  default:
71
66
  return "name";
72
67
  }
73
- }, zn = (e) => {
68
+ }, Bn = (e) => {
74
69
  switch (e) {
75
70
  case "individual":
76
71
  return "nameOfIndividual";
@@ -83,10 +78,10 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
83
78
  default:
84
79
  return "name";
85
80
  }
86
- }, _n = (e) => e.accountHolderUsAccountType !== void 0 ? Bn(
81
+ }, Qn = (e) => e.accountHolderUsAccountType !== void 0 ? On(
87
82
  e.accountHolderUsAccountType,
88
83
  e.accountHolderUsSmllcElection
89
- ) : e.accountHolderForeignAccountType !== void 0 ? zn(e.accountHolderForeignAccountType) : e.accountHolderIsIndividual === "yes" ? "nameOfIndividual" : e.accountHolderIsIndividual === "no" ? "nameOfBusiness" : "name", Qn = (e) => e.regardedOwnerUsPerson === "yes" ? Bn(e.regardedOwnerUsAccountType) : e.regardedOwnerUsPerson === "no" ? zn(e.regardedOwnerForeignAccountType) : "name", Xn = (e) => ({
84
+ ) : e.accountHolderForeignAccountType !== void 0 ? Bn(e.accountHolderForeignAccountType) : e.accountHolderIsIndividual === "yes" ? "nameOfIndividual" : e.accountHolderIsIndividual === "no" ? "nameOfBusiness" : "name", Xn = (e) => e.regardedOwnerUsPerson === "yes" ? On(e.regardedOwnerUsAccountType) : e.regardedOwnerUsPerson === "no" ? Bn(e.regardedOwnerForeignAccountType) : "name", $n = (e) => ({
90
85
  accountHolderIsIndividual: "isIndividual",
91
86
  accountHolderUsPerson: "usPerson",
92
87
  accountHolderUsAccountType: "usAccountType",
@@ -124,7 +119,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
124
119
  accountHolderVatIdentificationNumber: "vatIdentificationNumber",
125
120
  accountHolderVatCountry: "vatCountry",
126
121
  accountHolderVatIdentificationNumberIsNotRequired: "vatIdentificationNumberIsNotRequired",
127
- accountHolderName: _n(e),
122
+ accountHolderName: Qn(e),
128
123
  accountHolderDateOfBirth: "dateOfBirth",
129
124
  accountHolderDbaName: "dbaName",
130
125
  accountHolderAddressStreet: "street",
@@ -154,7 +149,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
154
149
  regardedOwnerForeignTrustClassification: "foreignTrustClassification",
155
150
  regardedOwnerForeignOtherClassification: "foreignOtherClassification",
156
151
  regardedOwnerCountryOfCitizenship: "countryOfCitizenship",
157
- regardedOwnerName: Qn(e),
152
+ regardedOwnerName: Xn(e),
158
153
  regardedOwnerDateOfBirth: "dateOfBirth",
159
154
  regardedOwnerDbaName: "dbaName",
160
155
  regardedOwnerAddressStreet: "street",
@@ -170,9 +165,187 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
170
165
  regardedOwnerMailingAddressState: "state",
171
166
  regardedOwnerMailingAddressZip: "zip",
172
167
  regardedOwnerMailingAddressCountry: "country"
173
- }), En = (e) => e.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), ve = (e) => e.map((a) => ({
168
+ }), zn = (e) => e.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), et = (e) => e.replace(/[A-Z]/g, (a) => `_${a.toLowerCase()}`), Xa = (e) => Array.isArray(e) ? e.map((a) => Xa(a)) : typeof e == "function" || e !== Object(e) ? e : Object.fromEntries(
169
+ Object.entries(e).map(
170
+ ([a, n]) => [
171
+ et(a),
172
+ Xa(n)
173
+ ]
174
+ )
175
+ ), H = (e) => e === void 0 ? void 0 : e === "yes", at = (e) => {
176
+ const a = {
177
+ city: e.accountHolderAddressCity,
178
+ country: e.accountHolderAddressCountry,
179
+ state_or_province: e.accountHolderAddressState,
180
+ first_line: e.accountHolderAddressStreet,
181
+ second_line: e.accountHolderAddressStreet2,
182
+ postal_code: e.accountHolderAddressZip
183
+ };
184
+ return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
185
+ }, it = (e) => {
186
+ const a = {
187
+ city: e.regardedOwnerAddressCity,
188
+ country: e.regardedOwnerAddressCountry,
189
+ state_or_province: e.regardedOwnerAddressState,
190
+ first_line: e.regardedOwnerAddressStreet,
191
+ second_line: e.regardedOwnerAddressStreet2,
192
+ postal_code: e.regardedOwnerAddressZip
193
+ };
194
+ return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
195
+ }, nt = (e) => {
196
+ const a = {
197
+ city: e.accountHolderMailingAddressCity,
198
+ country: e.accountHolderMailingAddressCountry,
199
+ state_or_province: e.accountHolderMailingAddressState,
200
+ first_line: e.accountHolderMailingAddressStreet,
201
+ second_line: e.accountHolderMailingAddressStreet2,
202
+ postal_code: e.accountHolderMailingAddressZip
203
+ };
204
+ return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
205
+ }, tt = (e) => {
206
+ const a = {
207
+ city: e.regardedOwnerMailingAddressCity,
208
+ country: e.regardedOwnerMailingAddressCountry,
209
+ state_or_province: e.regardedOwnerMailingAddressState,
210
+ first_line: e.regardedOwnerMailingAddressStreet,
211
+ second_line: e.regardedOwnerMailingAddressStreet2,
212
+ postal_code: e.regardedOwnerMailingAddressZip
213
+ };
214
+ return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
215
+ }, rt = (e) => {
216
+ const n = [
217
+ {
218
+ country: e.accountHolderTaxResidenceCountry1,
219
+ tin: e.accountHolderTaxResidenceForeignTin1,
220
+ tin_not_required: H(
221
+ e.accountHolderTaxResidenceForeignTin1IsNotRequired
222
+ )
223
+ },
224
+ {
225
+ country: e.accountHolderTaxResidenceCountry2,
226
+ tin: e.accountHolderTaxResidenceForeignTin2,
227
+ tin_not_required: H(
228
+ e.accountHolderTaxResidenceForeignTin2IsNotRequired
229
+ )
230
+ },
231
+ {
232
+ country: e.accountHolderTaxResidenceCountry3,
233
+ tin: e.accountHolderTaxResidenceForeignTin3,
234
+ tin_not_required: H(
235
+ e.accountHolderTaxResidenceForeignTin3IsNotRequired
236
+ )
237
+ },
238
+ {
239
+ country: e.accountHolderTaxResidenceCountry4,
240
+ tin: e.accountHolderTaxResidenceForeignTin4,
241
+ tin_not_required: H(
242
+ e.accountHolderTaxResidenceForeignTin4IsNotRequired
243
+ )
244
+ },
245
+ {
246
+ country: e.accountHolderTaxResidenceCountry5,
247
+ tin: e.accountHolderTaxResidenceForeignTin5,
248
+ tin_not_required: H(
249
+ e.accountHolderTaxResidenceForeignTin5IsNotRequired
250
+ )
251
+ }
252
+ ].filter(
253
+ (r) => Object.entries(r).some(([, s]) => s !== void 0)
254
+ );
255
+ return n.length > 0 ? n : void 0;
256
+ }, ot = (e) => {
257
+ const a = {
258
+ address: at(e),
259
+ country_of_citizenship: e.accountHolderCountryOfCitizenship,
260
+ date_of_birth: e.accountHolderDateOfBirth,
261
+ dba_name: e.accountHolderDbaName,
262
+ mailing_address: nt(e),
263
+ mailing_address_is_different: H(
264
+ e.accountHolderMailingAddressIsDifferent
265
+ ),
266
+ name: e.accountHolderName,
267
+ city_of_birth: e.accountHolderCityOfBirth,
268
+ country_of_birth: e.accountHolderCountryOfBirth,
269
+ financial_account_identifier: e.accountHolderFinancialAccountIdentifier,
270
+ financial_account_name: e.accountHolderFinancialAccountName,
271
+ ftin: e.accountHolderForeignTin,
272
+ ftin_not_legally_required: H(
273
+ e.accountHolderForeignTinIsNotRequired
274
+ ),
275
+ tax_residences: rt(e),
276
+ tin: e.accountHolderUsTin,
277
+ vatin: e.accountHolderVatIdentificationNumber,
278
+ vatin_country: e.accountHolderVatCountry,
279
+ vatin_not_required: H(
280
+ e.accountHolderVatIdentificationNumberIsNotRequired
281
+ ),
282
+ exempt_fatca_code: e.exemptFatcaCode,
283
+ exempt_payee_code: e.exemptPayeeCode,
284
+ is_individual: H(e.accountHolderIsIndividual),
285
+ is_eu_resident: H(e.accountHolderIsEuResident),
286
+ is_us_person: H(e.accountHolderUsPerson),
287
+ us_account_type: e.accountHolderUsAccountType,
288
+ us_smllc_election: H(e.accountHolderUsSmllcElection),
289
+ us_llc_classification: e.accountHolderUsLlcClassification,
290
+ us_other_classification: e.accountHolderUsOtherClassification,
291
+ us_trust_estate_ein: H(
292
+ e.accountHolderUsTrustEstateEin
293
+ ),
294
+ foreign_account_type: e.accountHolderForeignAccountType,
295
+ foreign_trust_classification: e.accountHolderForeignTrustClassification,
296
+ foreign_other_classification: e.accountHolderForeignOtherClassification
297
+ };
298
+ return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
299
+ }, st = (e) => {
300
+ const a = {
301
+ address: it(e),
302
+ country_of_citizenship: e.regardedOwnerCountryOfCitizenship,
303
+ date_of_birth: e.regardedOwnerDateOfBirth,
304
+ dba_name: e.regardedOwnerDbaName,
305
+ mailing_address: tt(e),
306
+ mailing_address_is_different: H(
307
+ e.regardedOwnerMailingAddressIsDifferent
308
+ ),
309
+ name: e.regardedOwnerName,
310
+ ftin: e.regardedOwnerForeignTin,
311
+ ftin_not_legally_required: H(
312
+ e.regardedOwnerForeignTinIsNotRequired
313
+ ),
314
+ tin: e.regardedOwnerUsTin,
315
+ exempt_fatca_code: e.exemptFatcaCode,
316
+ exempt_payee_code: e.exemptPayeeCode,
317
+ is_us_person: H(e.regardedOwnerUsPerson),
318
+ us_account_type: e.regardedOwnerUsAccountType,
319
+ us_llc_classification: e.regardedOwnerUsLlcClassification,
320
+ us_other_classification: e.regardedOwnerUsOtherClassification,
321
+ us_trust_estate_ein: H(
322
+ e.regardedOwnerUsTrustEstateEin
323
+ ),
324
+ foreign_account_type: e.regardedOwnerForeignAccountType,
325
+ foreign_trust_classification: e.regardedOwnerForeignTrustClassification,
326
+ foreign_other_classification: e.regardedOwnerForeignOtherClassification
327
+ };
328
+ return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
329
+ }, lt = (e) => {
330
+ const a = ot(e), n = st(e);
331
+ return {
332
+ account_holder: a,
333
+ regarded_owner: n,
334
+ has_certified: H(e.iCertifyToAll),
335
+ is_not_subject_backup_withholding: H(
336
+ e.iAmNotSubjectToBackupWithholding
337
+ ),
338
+ signature: e.signature,
339
+ document_type: "COMPREHENSIVE",
340
+ source: "SDK",
341
+ signature_timestamp: (/* @__PURE__ */ new Date()).toISOString()
342
+ };
343
+ }, dt = (e) => {
344
+ const a = lt(e);
345
+ return la(a);
346
+ }, ve = (e) => e.map((a) => ({
174
347
  value: a
175
- })), $n = [
348
+ })), ut = [
176
349
  "AB",
177
350
  "BC",
178
351
  "MB",
@@ -186,7 +359,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
186
359
  "QC",
187
360
  "SK",
188
361
  "YT"
189
- ], et = ve($n), at = [
362
+ ], ct = ve(ut), mt = [
190
363
  "AD",
191
364
  "AE",
192
365
  "AF",
@@ -436,7 +609,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
436
609
  "ZA",
437
610
  "ZM",
438
611
  "ZW"
439
- ], it = [
612
+ ], gt = [
440
613
  "AT",
441
614
  "BE",
442
615
  "BG",
@@ -464,7 +637,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
464
637
  "SE",
465
638
  "SI",
466
639
  "SK"
467
- ], da = ve(at), nt = ve(it), tt = [
640
+ ], ua = ve(mt), kt = ve(gt), ht = [
468
641
  "01",
469
642
  "02",
470
643
  "03",
@@ -496,7 +669,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
496
669
  "29",
497
670
  "30",
498
671
  "31"
499
- ], vn = ve(tt), rt = [
672
+ ], vn = ve(ht), vt = [
500
673
  "A",
501
674
  "B",
502
675
  "C",
@@ -510,14 +683,14 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
510
683
  "K",
511
684
  "L",
512
685
  "M"
513
- ], ot = ve(rt), Rn = [
686
+ ], ft = ve(vt), En = [
514
687
  { value: "individual" },
515
688
  { value: "corporation" },
516
689
  { value: "partnership" },
517
690
  { value: "trust" },
518
691
  { value: "other" },
519
692
  { value: "disregardedEntity" }
520
- ], st = Rn.map((e) => e.value), ai = [
693
+ ], pt = En.map((e) => e.value), ai = [
521
694
  { value: "taxExemptOrganization" },
522
695
  { value: "privateFoundation" },
523
696
  { value: "internationalOrganization" },
@@ -525,7 +698,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
525
698
  { value: "foreignGovernmentControlledEntity" },
526
699
  { value: "foreignGovernmentIntegralPart" },
527
700
  { value: "estate" }
528
- ], lt = ai.map((e) => e.value), dt = [
701
+ ], At = ai.map((e) => e.value), bt = [
529
702
  { value: "individual" },
530
703
  { value: "corporation" },
531
704
  { value: "partnership" },
@@ -535,7 +708,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
535
708
  { value: "simpleTrust" },
536
709
  { value: "complexTrust" },
537
710
  { value: "grantorTrust" }
538
- ], ut = ii.map((e) => e.value), ct = [
711
+ ], Ct = ii.map((e) => e.value), Nt = [
539
712
  "bg-bg",
540
713
  "cs-cz",
541
714
  "da-dk",
@@ -566,7 +739,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
566
739
  "sk-sk",
567
740
  "sl-si",
568
741
  "sv-se"
569
- ], mt = ve(ct), gt = [
742
+ ], St = ve(Nt), It = [
570
743
  "01",
571
744
  "02",
572
745
  "03",
@@ -579,7 +752,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
579
752
  "10",
580
753
  "11",
581
754
  "12"
582
- ], kt = ve(gt), ht = [
755
+ ], Tt = ve(It), Mt = [
583
756
  "A",
584
757
  "B",
585
758
  "C",
@@ -593,7 +766,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
593
766
  "K",
594
767
  "L",
595
768
  "M"
596
- ], vt = ve(ht), Pn = [
769
+ ], yt = ve(Mt), Rn = [
597
770
  { value: "individual" },
598
771
  { value: "soleProprietor" },
599
772
  { value: "llc" },
@@ -604,13 +777,13 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
604
777
  { value: "trustEstate" },
605
778
  { value: "other" },
606
779
  { value: "disregardedEntity" }
607
- ], ft = Pn.map((e) => e.value), ni = [
780
+ ], jt = Rn.map((e) => e.value), ni = [
608
781
  { value: "cCorporation" },
609
782
  { value: "sCorporation" },
610
783
  { value: "partnership" }
611
- ], pt = ni.map(
784
+ ], Ot = ni.map(
612
785
  (e) => e.value
613
- ), At = [
786
+ ), Bt = [
614
787
  { value: "individual" },
615
788
  { value: "llc" },
616
789
  { value: "cCorporation" },
@@ -618,7 +791,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
618
791
  { value: "partnership" },
619
792
  { value: "trustEstate" },
620
793
  { value: "other" }
621
- ], bt = [
794
+ ], zt = [
622
795
  "AL",
623
796
  "AK",
624
797
  "AS",
@@ -679,35 +852,35 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
679
852
  "WV",
680
853
  "WI",
681
854
  "WY"
682
- ], Ct = ve(bt), wn = /* @__PURE__ */ new Date(), Nt = wn.getFullYear() - 120, fn = wn.getFullYear(), St = Array.from(
683
- { length: fn - Nt },
855
+ ], Et = ve(zt), Pn = /* @__PURE__ */ new Date(), Rt = Pn.getFullYear() - 120, fn = Pn.getFullYear(), Pt = Array.from(
856
+ { length: fn - Rt },
684
857
  (e, a) => fn - a
685
- ), It = St.map((e) => ({
858
+ ), wt = Pt.map((e) => ({
686
859
  value: e
687
860
  })), pn = (e) => {
688
- if (e && st.includes(
861
+ if (e && pt.includes(
689
862
  e
690
863
  ))
691
864
  return e;
692
865
  }, An = (e) => {
693
- if (e && lt.includes(
866
+ if (e && At.includes(
694
867
  e
695
868
  ))
696
869
  return e;
697
870
  }, bn = (e) => {
698
- if (e && ut.includes(
871
+ if (e && Ct.includes(
699
872
  e
700
873
  ))
701
874
  return e;
702
875
  }, Cn = (e) => {
703
- if (e && pt.includes(e))
876
+ if (e && Ot.includes(e))
704
877
  return e;
705
878
  }, Nn = (e) => {
706
- if (e && ft.includes(
879
+ if (e && jt.includes(
707
880
  e
708
881
  ))
709
882
  return e;
710
- }, Ra = [
883
+ }, Pa = [
711
884
  "000000000",
712
885
  "111111111",
713
886
  "222222222",
@@ -724,47 +897,47 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
724
897
  "876543210",
725
898
  "987654321",
726
899
  "098765432"
727
- ], Pa = /^\d{9}$|^\d{3}-\d{2}-\d{4}$|^\d{2}-\d{7}$/, Ja = /^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/, Za = /^\d{5}$|^\d{5}-\d{4}$/, Gn = (e) => /^(.)\1+$/.test(e), Ln = (e) => ae(e) && e.length >= 2 && e.length <= 22 && !Gn(e), Tt = (e) => ae(e) && e.length >= 8 && e.length <= 12 && !Gn(e), wa = (e) => (a) => {
900
+ ], wa = /^\d{9}$|^\d{3}-\d{2}-\d{4}$|^\d{2}-\d{7}$/, Wa = /^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/, Ja = /^\d{5}$|^\d{5}-\d{4}$/, wn = (e) => /^(.)\1+$/.test(e), Gn = (e) => ae(e) && e.length >= 2 && e.length <= 22 && !wn(e), Gt = (e) => ae(e) && e.length >= 8 && e.length <= 12 && !wn(e), Ga = (e) => (a) => {
728
901
  const n = a[`accountHolderTaxResidenceForeignTin${e}`];
729
- if (!Ln(n) && ae(a[`accountHolderTaxResidenceCountry${e}`]) && z(
902
+ if (!Gn(n) && ae(a[`accountHolderTaxResidenceCountry${e}`]) && z(
730
903
  a[`accountHolderTaxResidenceForeignTin${e}IsNotRequired`]
731
904
  ))
732
905
  return "invalid";
733
906
  if (ae(n) && a[`accountHolderTaxResidenceCountry${e}`] === a.accountHolderVatCountry && n === a.accountHolderVatIdentificationNumber)
734
907
  return "mustNotMatchVatin";
735
- }, qa = {
908
+ }, Za = {
736
909
  accountHolderDateOfBirth: (e) => {
737
910
  const a = e.accountHolderDateOfBirth;
738
911
  if (ae(a)) {
739
- if (!Zn(a))
740
- return "mustBeInDateFormat";
741
912
  if (!qn(a))
913
+ return "mustBeInDateFormat";
914
+ if (!Yn(a))
742
915
  return "invalidDate";
743
- if (!Jn(a))
916
+ if (!Zn(a))
744
917
  return "mustBeValidBirthDate";
745
918
  }
746
919
  },
747
920
  accountHolderAddressZip: (e) => {
748
921
  const a = e.accountHolderAddressZip;
749
922
  if (e.accountHolderAddressCountry === "US") {
750
- if (!Za.test(a))
923
+ if (!Ja.test(a))
751
924
  return "mustBeFiveOrNineDigits";
752
925
  } else if (e.accountHolderAddressCountry === "CA") {
753
926
  if (a.length !== 6)
754
927
  return "mustBeSixCharacters";
755
- if (!Ja.test(a))
928
+ if (!Wa.test(a))
756
929
  return "invalid";
757
930
  }
758
931
  },
759
932
  accountHolderMailingAddressZip: (e) => {
760
933
  const a = e.accountHolderMailingAddressZip;
761
934
  if (e.accountHolderMailingAddressCountry === "US") {
762
- if (!Za.test(a))
935
+ if (!Ja.test(a))
763
936
  return "mustBeFiveOrNineDigits";
764
937
  } else if (e.accountHolderMailingAddressCountry === "CA") {
765
938
  if (a.length !== 6)
766
939
  return "mustBeSixCharacters";
767
- if (!Ja.test(a))
940
+ if (!Wa.test(a))
768
941
  return "invalid";
769
942
  }
770
943
  },
@@ -773,20 +946,20 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
773
946
  if ((e == null ? void 0 : e.accountHolderUsAccountType) !== void 0) {
774
947
  if (z(a))
775
948
  return;
776
- if (!Pa.test(a))
949
+ if (!wa.test(a))
777
950
  return "mustBeNineDigits";
778
- if (Ra.includes(a))
951
+ if (Pa.includes(a))
779
952
  return "invalid";
780
953
  } else if ((e == null ? void 0 : e.accountHolderUsPerson) === "no" && a !== void 0 && a !== "") {
781
- if (!Pa.test(a))
954
+ if (!wa.test(a))
782
955
  return "mustBeNineDigits";
783
- if (Ra.includes(a))
956
+ if (Pa.includes(a))
784
957
  return "invalid";
785
958
  }
786
959
  },
787
960
  accountHolderVatIdentificationNumber: (e) => {
788
961
  const a = e.accountHolderVatIdentificationNumber;
789
- if (e.accountHolderVatIdentificationNumberIsNotRequired !== "yes" && !Tt(a))
962
+ if (e.accountHolderVatIdentificationNumberIsNotRequired !== "yes" && !Gt(a))
790
963
  return "invalid";
791
964
  },
792
965
  accountHolderVatCountry: (e) => {
@@ -802,15 +975,15 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
802
975
  },
803
976
  accountHolderTaxResidenceForeignTin1: (e) => {
804
977
  const a = e.accountHolderTaxResidenceForeignTin1;
805
- if (!Ln(a) && z(e.accountHolderTaxResidenceForeignTin1IsNotRequired))
978
+ if (!Gn(a) && z(e.accountHolderTaxResidenceForeignTin1IsNotRequired))
806
979
  return "invalid";
807
980
  if (ae(a) && e.accountHolderTaxResidenceCountry1 === e.accountHolderVatCountry && a === e.accountHolderVatIdentificationNumber)
808
981
  return "mustNotMatchVatin";
809
982
  },
810
- accountHolderTaxResidenceForeignTin2: wa("2"),
811
- accountHolderTaxResidenceForeignTin3: wa("3"),
812
- accountHolderTaxResidenceForeignTin4: wa("4"),
813
- accountHolderTaxResidenceForeignTin5: wa("5"),
983
+ accountHolderTaxResidenceForeignTin2: Ga("2"),
984
+ accountHolderTaxResidenceForeignTin3: Ga("3"),
985
+ accountHolderTaxResidenceForeignTin4: Ga("4"),
986
+ accountHolderTaxResidenceForeignTin5: Ga("5"),
814
987
  regardedOwnerDbaName: (e) => {
815
988
  const a = e.regardedOwnerDbaName;
816
989
  if (e.regardedOwnerUsAccountType && ["cCorporation", "sCorporation", "partnership"].includes(
@@ -830,26 +1003,26 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
830
1003
  regardedOwnerMailingAddressZip: (e) => {
831
1004
  const a = e.regardedOwnerMailingAddressZip;
832
1005
  if (e.regardedOwnerMailingAddressCountry === "US") {
833
- if (!Za.test(a))
1006
+ if (!Ja.test(a))
834
1007
  return "mustBeFiveOrNineDigits";
835
1008
  } else if (e.regardedOwnerMailingAddressCountry === "CA") {
836
1009
  if (a.length !== 6)
837
1010
  return "mustBeSixCharacters";
838
- if (!Ja.test(a))
1011
+ if (!Wa.test(a))
839
1012
  return "invalid";
840
1013
  }
841
1014
  },
842
1015
  regardedOwnerUsTin: (e) => {
843
1016
  const a = e.regardedOwnerUsTin;
844
1017
  if ((e == null ? void 0 : e.regardedOwnerUsPerson) === "yes") {
845
- if (ae(a) && !Pa.test(a))
1018
+ if (ae(a) && !wa.test(a))
846
1019
  return "mustBeNineDigits";
847
- if (ae(a) && Ra.includes(a))
1020
+ if (ae(a) && Pa.includes(a))
848
1021
  return "invalid";
849
1022
  } else if ((e == null ? void 0 : e.regardedOwnerUsPerson) === "no" && a !== void 0 && a !== "") {
850
- if (!Pa.test(a))
1023
+ if (!wa.test(a))
851
1024
  return "mustBeNineDigits";
852
- if (Ra.includes(a))
1025
+ if (Pa.includes(a))
853
1026
  return "invalid";
854
1027
  }
855
1028
  },
@@ -868,29 +1041,29 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
868
1041
  if (e.signature !== e.accountHolderName && (e.accountHolderUsAccountType === "individual" || e.accountHolderForeignAccountType === "individual"))
869
1042
  return "mustMatchName";
870
1043
  }
871
- }, Mt = (e, a, n) => Object.fromEntries(
1044
+ }, Lt = (e, a, n) => Object.fromEntries(
872
1045
  Object.keys(e).map((r) => {
873
1046
  var o;
874
1047
  const s = e[r];
875
1048
  return [
876
1049
  r,
877
- n[r] && (a[r] && z(s) && "required" || ((o = qa[r]) == null ? void 0 : o.call(qa, e)) || void 0)
1050
+ n[r] && (a[r] && z(s) && "required" || ((o = Za[r]) == null ? void 0 : o.call(Za, e)) || void 0)
878
1051
  ];
879
1052
  }).filter(([, r]) => r)
880
- ), yt = (e, a) => Object.fromEntries(
1053
+ ), Ht = (e, a) => Object.fromEntries(
881
1054
  Object.keys(e).map((n) => {
882
1055
  var r;
883
1056
  return [
884
1057
  n,
885
- a[n] && ((r = Ya[n]) == null ? void 0 : r.call(Ya, e))
1058
+ a[n] && ((r = qa[n]) == null ? void 0 : r.call(qa, e))
886
1059
  ];
887
1060
  }).filter(([, n]) => n)
888
- ), jt = (e, a) => Object.fromEntries(
1061
+ ), Dt = (e, a) => Object.fromEntries(
889
1062
  Object.keys(e).map((n) => [
890
1063
  n,
891
1064
  a[n] && e[n]
892
1065
  ]).filter(([, n]) => n)
893
- ), Hn = (e) => ({
1066
+ ), Ln = (e) => ({
894
1067
  accountHolderUsPerson: e.includes("W-9") && (e.includes("W-8BEN") || e.includes("W-8BEN-E")),
895
1068
  accountHolderIsEuResident: e.includes("DAC7"),
896
1069
  accountHolderIsIndividual: e.includes("DAC7") && !(e.includes("W-9") || e.includes("W-8BEN") || e.includes("W-8BEN-E")),
@@ -993,20 +1166,14 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
993
1166
  exemptPayeeCode: e.includes("W-9"),
994
1167
  exemptFatcaCode: e.includes("W-9"),
995
1168
  accountHolderCountryIsResidence: e.includes("DAC7")
996
- }), Ot = (e, a, n) => {
1169
+ }), Ft = (e, a, n) => {
997
1170
  const {
998
1171
  accountHolderIsDisregarded: r,
999
1172
  isW9: s,
1000
1173
  isW8BenE: o,
1001
1174
  isW8: u,
1002
- hasNoTaxId: l
1003
- } = la(e, n), c = [
1004
- e.accountHolderTaxResidenceCountry1,
1005
- e.accountHolderTaxResidenceCountry2,
1006
- e.accountHolderTaxResidenceCountry3,
1007
- e.accountHolderTaxResidenceCountry4,
1008
- e.accountHolderTaxResidenceCountry5
1009
- ], m = {
1175
+ hasNoTaxId: d
1176
+ } = da(e, n), l = e.accountHolderIsIndividual !== void 0 && e.accountHolderIsEuResident === "yes", m = {
1010
1177
  // Account Holder Account Classification
1011
1178
  accountHolderUsPerson: !0,
1012
1179
  accountHolderIsEuResident: !0,
@@ -1030,8 +1197,8 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
1030
1197
  accountHolderAddressStreet: e.accountHolderIsEuResident === "yes" || e.accountHolderUsPerson !== void 0,
1031
1198
  accountHolderAddressZip: e.accountHolderIsEuResident === "yes" || e.accountHolderUsPerson !== void 0,
1032
1199
  accountHolderCountryOfCitizenship: e.accountHolderUsPerson === "no",
1033
- accountHolderCityOfBirth: l,
1034
- accountHolderCountryOfBirth: l,
1200
+ accountHolderCityOfBirth: d,
1201
+ accountHolderCountryOfBirth: d,
1035
1202
  accountHolderDateOfBirth: e.accountHolderIsIndividual === "yes" && e.accountHolderIsEuResident === "yes" || e.accountHolderForeignAccountType === "individual",
1036
1203
  accountHolderDbaName: !0,
1037
1204
  accountHolderMailingAddressIsDifferent: e.accountHolderUsPerson === "no",
@@ -1043,30 +1210,30 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
1043
1210
  accountHolderMailingAddressZip: e.accountHolderMailingAddressIsDifferent === "yes",
1044
1211
  // Account Holder Tax Numbers
1045
1212
  accountHolderUsTin: !0,
1046
- accountHolderFinancialAccountIdentifier: e.accountHolderIsIndividual !== void 0 && e.accountHolderIsEuResident === "yes",
1047
- accountHolderFinancialAccountName: e.accountHolderIsIndividual !== void 0 && e.accountHolderIsEuResident === "yes",
1048
- accountHolderVatIdentificationNumber: e.accountHolderIsIndividual !== void 0 && e.accountHolderIsEuResident === "yes",
1049
- accountHolderVatIdentificationNumberIsNotRequired: e.accountHolderIsIndividual !== void 0 && e.accountHolderIsEuResident === "yes",
1050
- accountHolderVatCountry: e.accountHolderIsIndividual !== void 0 && e.accountHolderIsEuResident === "yes",
1051
- accountHolderTaxResidenceCountry1: e.accountHolderIsIndividual !== void 0 && e.accountHolderIsEuResident === "yes",
1052
- accountHolderTaxResidenceForeignTin1: e.accountHolderIsIndividual !== void 0 && e.accountHolderIsEuResident === "yes",
1053
- accountHolderShowTaxResidence2: e.accountHolderIsIndividual !== void 0 && e.accountHolderIsEuResident === "yes",
1054
- accountHolderTaxResidenceCountry2: e.accountHolderShowTaxResidence2 === "yes",
1055
- accountHolderTaxResidenceForeignTin2: e.accountHolderShowTaxResidence2 === "yes",
1056
- accountHolderShowTaxResidence3: e.accountHolderShowTaxResidence2 === "yes",
1057
- accountHolderTaxResidenceCountry3: e.accountHolderShowTaxResidence3 === "yes",
1058
- accountHolderTaxResidenceForeignTin3: e.accountHolderShowTaxResidence3 === "yes",
1059
- accountHolderShowTaxResidence4: e.accountHolderShowTaxResidence3 === "yes",
1060
- accountHolderTaxResidenceCountry4: e.accountHolderShowTaxResidence4 === "yes",
1061
- accountHolderTaxResidenceForeignTin4: e.accountHolderShowTaxResidence4 === "yes",
1062
- accountHolderShowTaxResidence5: e.accountHolderShowTaxResidence4 === "yes",
1063
- accountHolderTaxResidenceCountry5: e.accountHolderShowTaxResidence5 === "yes",
1064
- accountHolderTaxResidenceForeignTin5: e.accountHolderShowTaxResidence5 === "yes",
1065
- accountHolderTaxResidenceForeignTin1IsNotRequired: e.accountHolderIsIndividual !== void 0,
1066
- accountHolderTaxResidenceForeignTin2IsNotRequired: e.accountHolderShowTaxResidence2 === "yes",
1067
- accountHolderTaxResidenceForeignTin3IsNotRequired: e.accountHolderShowTaxResidence3 === "yes",
1068
- accountHolderTaxResidenceForeignTin4IsNotRequired: e.accountHolderShowTaxResidence4 === "yes",
1069
- accountHolderTaxResidenceForeignTin5IsNotRequired: e.accountHolderShowTaxResidence5 === "yes",
1213
+ accountHolderFinancialAccountIdentifier: l,
1214
+ accountHolderFinancialAccountName: l,
1215
+ accountHolderVatIdentificationNumber: l,
1216
+ accountHolderVatIdentificationNumberIsNotRequired: l,
1217
+ accountHolderVatCountry: l,
1218
+ accountHolderTaxResidenceCountry1: l,
1219
+ accountHolderTaxResidenceForeignTin1: l,
1220
+ accountHolderShowTaxResidence2: l,
1221
+ accountHolderTaxResidenceForeignTin1IsNotRequired: l,
1222
+ accountHolderTaxResidenceCountry2: l && e.accountHolderShowTaxResidence2 === "yes",
1223
+ accountHolderTaxResidenceForeignTin2: l && e.accountHolderShowTaxResidence2 === "yes",
1224
+ accountHolderShowTaxResidence3: l && e.accountHolderShowTaxResidence2 === "yes",
1225
+ accountHolderTaxResidenceForeignTin2IsNotRequired: l && e.accountHolderShowTaxResidence2 === "yes",
1226
+ accountHolderTaxResidenceCountry3: l && e.accountHolderShowTaxResidence3 === "yes",
1227
+ accountHolderTaxResidenceForeignTin3: l && e.accountHolderShowTaxResidence3 === "yes",
1228
+ accountHolderShowTaxResidence4: l && e.accountHolderShowTaxResidence3 === "yes",
1229
+ accountHolderTaxResidenceForeignTin3IsNotRequired: l && e.accountHolderShowTaxResidence3 === "yes",
1230
+ accountHolderTaxResidenceCountry4: l && e.accountHolderShowTaxResidence4 === "yes",
1231
+ accountHolderTaxResidenceForeignTin4: l && e.accountHolderShowTaxResidence4 === "yes",
1232
+ accountHolderShowTaxResidence5: l && e.accountHolderShowTaxResidence4 === "yes",
1233
+ accountHolderTaxResidenceForeignTin4IsNotRequired: l && e.accountHolderShowTaxResidence4 === "yes",
1234
+ accountHolderTaxResidenceCountry5: l && e.accountHolderShowTaxResidence5 === "yes",
1235
+ accountHolderTaxResidenceForeignTin5: l && e.accountHolderShowTaxResidence5 === "yes",
1236
+ accountHolderTaxResidenceForeignTin5IsNotRequired: l && e.accountHolderShowTaxResidence5 === "yes",
1070
1237
  // Regarded Owner Account Classification
1071
1238
  regardedOwnerUsPerson: !0,
1072
1239
  regardedOwnerUsAccountType: r && (e.regardedOwnerUsPerson === "yes" || !a.regardedOwnerUsPerson),
@@ -1114,9 +1281,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
1114
1281
  iConfirmTheTaxIdIsCorrect: s,
1115
1282
  iConfirmTheEntityIsNotAUsPerson: u,
1116
1283
  iHaveLegalCapacityToSign: s,
1117
- accountHolderCountryIsResidence: !c.includes(
1118
- e.accountHolderAddressCountry
1119
- )
1284
+ accountHolderCountryIsResidence: l
1120
1285
  };
1121
1286
  return Object.fromEntries(
1122
1287
  Object.keys(m).map((k) => [
@@ -1124,9 +1289,9 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
1124
1289
  m[k] && a[k]
1125
1290
  ]).filter(([, k]) => k)
1126
1291
  );
1127
- }, Ga = (e) => e.accountHolderAddressCountry === "US", S = () => !0, La = (e) => (a) => ae(a[`accountHolderTaxResidenceForeignTin${e}`]) || a[`accountHolderTaxResidenceForeignTin${e}IsNotRequired`] === "yes", Ha = (e) => (a) => ae(a[`accountHolderTaxResidenceCountry${e}`]) && z(
1292
+ }, La = (e) => e.accountHolderAddressCountry === "US", S = () => !0, Ha = (e) => (a) => ae(a[`accountHolderTaxResidenceForeignTin${e}`]) || a[`accountHolderTaxResidenceForeignTin${e}IsNotRequired`] === "yes", Da = (e) => (a) => ae(a[`accountHolderTaxResidenceCountry${e}`]) && z(
1128
1293
  a[`accountHolderTaxResidenceForeignTin${e}IsNotRequired`]
1129
- ), Ya = {
1294
+ ), qa = {
1130
1295
  accountHolderUsPerson: S,
1131
1296
  accountHolderIsEuResident: S,
1132
1297
  accountHolderIsIndividual: S,
@@ -1146,12 +1311,12 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
1146
1311
  accountHolderDateOfBirth: (e) => (e == null ? void 0 : e.accountHolderForeignAccountType) === "individual" || (e == null ? void 0 : e.accountHolderIsIndividual) === "yes",
1147
1312
  accountHolderAddressCountry: S,
1148
1313
  accountHolderAddressStreet: S,
1149
- accountHolderAddressState: Ga,
1314
+ accountHolderAddressState: La,
1150
1315
  accountHolderAddressCity: S,
1151
1316
  accountHolderAddressZip: (e) => e.accountHolderAddressCountry === "US" || e.accountHolderAddressCountry === "CA",
1152
1317
  accountHolderMailingAddressCountry: S,
1153
1318
  accountHolderMailingAddressStreet: S,
1154
- accountHolderMailingAddressState: Ga,
1319
+ accountHolderMailingAddressState: La,
1155
1320
  accountHolderMailingAddressCity: S,
1156
1321
  accountHolderMailingAddressZip: (e) => e.accountHolderMailingAddressCountry === "US" || e.accountHolderMailingAddressCountry === "CA",
1157
1322
  accountHolderUsTin: (e) => (e == null ? void 0 : e.accountHolderUsPerson) === "yes",
@@ -1159,23 +1324,23 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
1159
1324
  accountHolderVatIdentificationNumber: (e) => e.accountHolderVatIdentificationNumberIsNotRequired !== "yes",
1160
1325
  accountHolderVatCountry: S,
1161
1326
  accountHolderCityOfBirth: (e) => {
1162
- const { hasNoTaxId: a } = la(e);
1327
+ const { hasNoTaxId: a } = da(e);
1163
1328
  return a;
1164
1329
  },
1165
1330
  accountHolderCountryOfBirth: (e) => {
1166
- const { hasNoTaxId: a } = la(e);
1331
+ const { hasNoTaxId: a } = da(e);
1167
1332
  return a;
1168
1333
  },
1169
1334
  accountHolderTaxResidenceCountry1: S,
1170
1335
  accountHolderTaxResidenceForeignTin1: (e) => z(e.accountHolderTaxResidenceForeignTin1IsNotRequired),
1171
- accountHolderTaxResidenceCountry2: La("2"),
1172
- accountHolderTaxResidenceForeignTin2: Ha("2"),
1173
- accountHolderTaxResidenceCountry3: La("3"),
1174
- accountHolderTaxResidenceForeignTin3: Ha("3"),
1175
- accountHolderTaxResidenceCountry4: La("4"),
1176
- accountHolderTaxResidenceForeignTin4: Ha("4"),
1177
- accountHolderTaxResidenceCountry5: La("5"),
1178
- accountHolderTaxResidenceForeignTin5: Ha("5"),
1336
+ accountHolderTaxResidenceCountry2: Ha("2"),
1337
+ accountHolderTaxResidenceForeignTin2: Da("2"),
1338
+ accountHolderTaxResidenceCountry3: Ha("3"),
1339
+ accountHolderTaxResidenceForeignTin3: Da("3"),
1340
+ accountHolderTaxResidenceCountry4: Ha("4"),
1341
+ accountHolderTaxResidenceForeignTin4: Da("4"),
1342
+ accountHolderTaxResidenceCountry5: Ha("5"),
1343
+ accountHolderTaxResidenceForeignTin5: Da("5"),
1179
1344
  regardedOwnerUsPerson: S,
1180
1345
  regardedOwnerUsAccountType: S,
1181
1346
  regardedOwnerUsLlcClassification: S,
@@ -1192,83 +1357,83 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
1192
1357
  regardedOwnerDateOfBirth: S,
1193
1358
  regardedOwnerAddressCountry: S,
1194
1359
  regardedOwnerAddressStreet: S,
1195
- regardedOwnerAddressState: Ga,
1360
+ regardedOwnerAddressState: La,
1196
1361
  regardedOwnerAddressCity: S,
1197
1362
  regardedOwnerAddressZip: (e) => e.regardedOwnerAddressCountry === "US" || e.regardedOwnerAddressCountry === "CA",
1198
1363
  regardedOwnerMailingAddressCountry: S,
1199
1364
  regardedOwnerMailingAddressStreet: S,
1200
- regardedOwnerMailingAddressState: Ga,
1365
+ regardedOwnerMailingAddressState: La,
1201
1366
  regardedOwnerMailingAddressCity: S,
1202
1367
  regardedOwnerMailingAddressZip: (e) => e.regardedOwnerMailingAddressCountry === "US" || e.regardedOwnerMailingAddressCountry === "CA",
1203
1368
  regardedOwnerUsTin: (e) => (e == null ? void 0 : e.regardedOwnerUsPerson) === "yes",
1204
1369
  regardedOwnerForeignTin: (e) => e.regardedOwnerForeignTinIsNotRequired !== "yes",
1205
1370
  signature: S
1206
1371
  }, Sn = (e, a) => {
1207
- var s, o, u, l, c, m, k, v, b, p, C, T, E, y, R, _, L, ie, ue, be, Ce, te, re, Ne, oe, V, q, $, B, x, ce, se, Re, Pe, we, Ge, Ve, h, G, le, me, Le, je, ua, We, ca, ma, Oe, Be, Je, Ze, ze, ga, ka, He, ha, va, qe, Ye, Se, fa, _e, Qe, De, pa, Aa, ba, Ca, Na, Sa, Ia, Fe, Xe, ge, xe, Ue, $e, Ta, ea, Ma, aa, ia, ya, ja, na, Oa, Ba, za, Ea, t, d, g, A, M, j, I, N, D, P, w, W, ke, ta, ee, ti, ri, oi, si, li, di, ui, ci, mi, gi, ki, hi, vi, fi, pi, Ai, bi, Ci, Ni, Si, Ii, Ti, Mi, yi, ji, Oi, Bi, zi, Ei, Ri, Pi, wi, Gi, Li, Hi, Di, Fi, xi, Ui, Ki, Vi, Wi, Ji, Zi, qi, Yi, _i, Qi, Xi, $i, en, an, nn, tn, rn, on, sn, ln, dn, un, cn, mn, gn;
1372
+ var s, o, u, d, l, m, k, v, b, p, C, I, M, G, E, _, L, ie, ue, be, Ce, te, re, Ne, oe, K, q, $, B, V, ce, se, Re, Pe, we, Ge, Ve, h, w, le, me, Le, ye, ca, We, ma, ga, je, Oe, Je, Ze, Be, ka, ha, He, va, fa, qe, Ye, Se, pa, _e, Qe, De, Aa, ba, Ca, Na, Sa, Ia, Ta, Fe, Xe, ge, xe, Ue, $e, Ma, ea, ya, aa, ia, ja, Oa, na, Ba, za, Ea, Ra, t, c, g, A, y, j, T, N, D, R, P, W, ke, ta, ee, ti, ri, oi, si, li, di, ui, ci, mi, gi, ki, hi, vi, fi, pi, Ai, bi, Ci, Ni, Si, Ii, Ti, Mi, yi, ji, Oi, Bi, zi, Ei, Ri, Pi, wi, Gi, Li, Hi, Di, Fi, xi, Ui, Ki, Vi, Wi, Ji, Zi, qi, Yi, _i, Qi, Xi, $i, en, an, nn, tn, rn, on, sn, ln, dn, un, cn, mn, gn;
1208
1373
  if (e == null)
1209
1374
  return {};
1210
- const n = Hn(a), r = {
1375
+ const n = Ln(a), r = {
1211
1376
  accountHolderName: (s = e.accountHolder) == null ? void 0 : s.name,
1212
1377
  accountHolderDbaName: (o = e.accountHolder) == null ? void 0 : o.dbaName,
1213
1378
  accountHolderDateOfBirth: (u = e.accountHolder) == null ? void 0 : u.dateOfBirth,
1214
- accountHolderCityOfBirth: (l = e.accountHolder) == null ? void 0 : l.cityOfBirth,
1215
- accountHolderCountryOfBirth: (c = e.accountHolder) == null ? void 0 : c.countryOfBirth,
1379
+ accountHolderCityOfBirth: (d = e.accountHolder) == null ? void 0 : d.cityOfBirth,
1380
+ accountHolderCountryOfBirth: (l = e.accountHolder) == null ? void 0 : l.countryOfBirth,
1216
1381
  accountHolderUsTin: (m = e.accountHolder) == null ? void 0 : m.tin,
1217
1382
  accountHolderForeignTin: (k = e.accountHolder) == null ? void 0 : k.ftin,
1218
1383
  accountHolderForeignTinIsNotRequired: (v = e.accountHolder) != null && v.ftinNotLegallyRequired ? "yes" : void 0,
1219
1384
  accountHolderCountryOfCitizenship: (b = e.accountHolder) == null ? void 0 : b.countryOfCitizenship,
1220
1385
  accountHolderAddressStreet: (C = (p = e.accountHolder) == null ? void 0 : p.address) == null ? void 0 : C.firstLine,
1221
- accountHolderAddressStreet2: (E = (T = e.accountHolder) == null ? void 0 : T.address) == null ? void 0 : E.secondLine,
1222
- accountHolderAddressCity: (R = (y = e.accountHolder) == null ? void 0 : y.address) == null ? void 0 : R.city,
1386
+ accountHolderAddressStreet2: (M = (I = e.accountHolder) == null ? void 0 : I.address) == null ? void 0 : M.secondLine,
1387
+ accountHolderAddressCity: (E = (G = e.accountHolder) == null ? void 0 : G.address) == null ? void 0 : E.city,
1223
1388
  accountHolderAddressState: (L = (_ = e.accountHolder) == null ? void 0 : _.address) == null ? void 0 : L.stateOrProvince,
1224
1389
  accountHolderAddressZip: (ue = (ie = e.accountHolder) == null ? void 0 : ie.address) == null ? void 0 : ue.postalCode,
1225
1390
  accountHolderAddressCountry: (Ce = (be = e.accountHolder) == null ? void 0 : be.address) == null ? void 0 : Ce.country,
1226
1391
  accountHolderMailingAddressIsDifferent: (te = e.accountHolder) != null && te.mailingAddressIsDifferent ? "yes" : void 0,
1227
1392
  accountHolderMailingAddressStreet: (Ne = (re = e.accountHolder) == null ? void 0 : re.mailingAddress) == null ? void 0 : Ne.firstLine,
1228
- accountHolderMailingAddressStreet2: (V = (oe = e.accountHolder) == null ? void 0 : oe.mailingAddress) == null ? void 0 : V.secondLine,
1393
+ accountHolderMailingAddressStreet2: (K = (oe = e.accountHolder) == null ? void 0 : oe.mailingAddress) == null ? void 0 : K.secondLine,
1229
1394
  accountHolderMailingAddressCity: ($ = (q = e.accountHolder) == null ? void 0 : q.mailingAddress) == null ? void 0 : $.city,
1230
- accountHolderMailingAddressState: (x = (B = e.accountHolder) == null ? void 0 : B.mailingAddress) == null ? void 0 : x.stateOrProvince,
1395
+ accountHolderMailingAddressState: (V = (B = e.accountHolder) == null ? void 0 : B.mailingAddress) == null ? void 0 : V.stateOrProvince,
1231
1396
  accountHolderMailingAddressZip: (se = (ce = e.accountHolder) == null ? void 0 : ce.mailingAddress) == null ? void 0 : se.postalCode,
1232
1397
  accountHolderMailingAddressCountry: (Pe = (Re = e.accountHolder) == null ? void 0 : Re.mailingAddress) == null ? void 0 : Pe.country,
1233
1398
  accountHolderIsIndividual: ((we = e.accountHolder) == null ? void 0 : we.isIndividual) === !0 ? "yes" : ((Ge = e.accountHolder) == null ? void 0 : Ge.isIndividual) === !1 ? "no" : void 0,
1234
1399
  accountHolderIsEuResident: ((Ve = e.accountHolder) == null ? void 0 : Ve.isEuResident) === !0 ? "yes" : ((h = e.accountHolder) == null ? void 0 : h.isEuResident) === !1 ? "no" : void 0,
1235
- accountHolderUsPerson: ((G = e.accountHolder) == null ? void 0 : G.isUsPerson) === !0 ? "yes" : ((le = e.accountHolder) == null ? void 0 : le.isUsPerson) === !1 ? "no" : void 0,
1400
+ accountHolderUsPerson: ((w = e.accountHolder) == null ? void 0 : w.isUsPerson) === !0 ? "yes" : ((le = e.accountHolder) == null ? void 0 : le.isUsPerson) === !1 ? "no" : void 0,
1236
1401
  accountHolderUsAccountType: Nn(
1237
1402
  (me = e.accountHolder) == null ? void 0 : me.usAccountType
1238
1403
  ),
1239
- accountHolderUsSmllcElection: ((Le = e.accountHolder) == null ? void 0 : Le.usSmllcElection) === !0 ? "yes" : ((je = e.accountHolder) == null ? void 0 : je.usSmllcElection) === !1 ? "no" : void 0,
1404
+ accountHolderUsSmllcElection: ((Le = e.accountHolder) == null ? void 0 : Le.usSmllcElection) === !0 ? "yes" : ((ye = e.accountHolder) == null ? void 0 : ye.usSmllcElection) === !1 ? "no" : void 0,
1240
1405
  accountHolderUsLlcClassification: Cn(
1241
- (ua = e.accountHolder) == null ? void 0 : ua.usLlcClassification
1406
+ (ca = e.accountHolder) == null ? void 0 : ca.usLlcClassification
1242
1407
  ),
1243
1408
  accountHolderUsOtherClassification: (We = e.accountHolder) == null ? void 0 : We.usOtherClassification,
1244
- accountHolderUsTrustEstateEin: ((ca = e.accountHolder) == null ? void 0 : ca.usTrustEstateEin) === !0 ? "yes" : ((ma = e.accountHolder) == null ? void 0 : ma.usTrustEstateEin) === !1 ? "no" : void 0,
1409
+ accountHolderUsTrustEstateEin: ((ma = e.accountHolder) == null ? void 0 : ma.usTrustEstateEin) === !0 ? "yes" : ((ga = e.accountHolder) == null ? void 0 : ga.usTrustEstateEin) === !1 ? "no" : void 0,
1245
1410
  accountHolderForeignAccountType: pn(
1246
- (Oe = e.accountHolder) == null ? void 0 : Oe.foreignAccountType
1411
+ (je = e.accountHolder) == null ? void 0 : je.foreignAccountType
1247
1412
  ),
1248
1413
  accountHolderForeignTrustClassification: bn(
1249
- (Be = e.accountHolder) == null ? void 0 : Be.foreignTrustClassification
1414
+ (Oe = e.accountHolder) == null ? void 0 : Oe.foreignTrustClassification
1250
1415
  ),
1251
1416
  accountHolderForeignOtherClassification: An(
1252
1417
  (Je = e.accountHolder) == null ? void 0 : Je.foreignOtherClassification
1253
1418
  ),
1254
1419
  accountHolderFinancialAccountName: z(
1255
1420
  (Ze = e.accountHolder) == null ? void 0 : Ze.financialAccountName
1256
- ) ? (ze = e.accountHolder) == null ? void 0 : ze.name : (ga = e.accountHolder) == null ? void 0 : ga.financialAccountName,
1257
- accountHolderFinancialAccountIdentifier: (ka = e.accountHolder) == null ? void 0 : ka.financialAccountIdentifier,
1421
+ ) ? (Be = e.accountHolder) == null ? void 0 : Be.name : (ka = e.accountHolder) == null ? void 0 : ka.financialAccountName,
1422
+ accountHolderFinancialAccountIdentifier: (ha = e.accountHolder) == null ? void 0 : ha.financialAccountIdentifier,
1258
1423
  accountHolderVatIdentificationNumber: (He = e.accountHolder) == null ? void 0 : He.vatin,
1259
- accountHolderVatIdentificationNumberIsNotRequired: (ha = e.accountHolder) != null && ha.vatinNotRequired ? "yes" : void 0,
1260
- accountHolderShowTaxResidence2: !z((Ye = (qe = (va = e.accountHolder) == null ? void 0 : va.taxResidences) == null ? void 0 : qe[1]) == null ? void 0 : Ye.country) || !z((_e = (fa = (Se = e.accountHolder) == null ? void 0 : Se.taxResidences) == null ? void 0 : fa[1]) == null ? void 0 : _e.tin) ? "yes" : void 0,
1261
- accountHolderShowTaxResidence3: !z((pa = (De = (Qe = e.accountHolder) == null ? void 0 : Qe.taxResidences) == null ? void 0 : De[2]) == null ? void 0 : pa.country) || !z((Ca = (ba = (Aa = e.accountHolder) == null ? void 0 : Aa.taxResidences) == null ? void 0 : ba[2]) == null ? void 0 : Ca.tin) ? "yes" : void 0,
1262
- accountHolderShowTaxResidence4: !z((Ia = (Sa = (Na = e.accountHolder) == null ? void 0 : Na.taxResidences) == null ? void 0 : Sa[3]) == null ? void 0 : Ia.country) || !z((ge = (Xe = (Fe = e.accountHolder) == null ? void 0 : Fe.taxResidences) == null ? void 0 : Xe[3]) == null ? void 0 : ge.tin) ? "yes" : void 0,
1263
- accountHolderShowTaxResidence5: !z(($e = (Ue = (xe = e.accountHolder) == null ? void 0 : xe.taxResidences) == null ? void 0 : Ue[4]) == null ? void 0 : $e.country) || !z((Ma = (ea = (Ta = e.accountHolder) == null ? void 0 : Ta.taxResidences) == null ? void 0 : ea[4]) == null ? void 0 : Ma.tin) ? "yes" : void 0,
1424
+ accountHolderVatIdentificationNumberIsNotRequired: (va = e.accountHolder) != null && va.vatinNotRequired ? "yes" : void 0,
1425
+ accountHolderShowTaxResidence2: !z((Ye = (qe = (fa = e.accountHolder) == null ? void 0 : fa.taxResidences) == null ? void 0 : qe[1]) == null ? void 0 : Ye.country) || !z((_e = (pa = (Se = e.accountHolder) == null ? void 0 : Se.taxResidences) == null ? void 0 : pa[1]) == null ? void 0 : _e.tin) ? "yes" : void 0,
1426
+ accountHolderShowTaxResidence3: !z((Aa = (De = (Qe = e.accountHolder) == null ? void 0 : Qe.taxResidences) == null ? void 0 : De[2]) == null ? void 0 : Aa.country) || !z((Na = (Ca = (ba = e.accountHolder) == null ? void 0 : ba.taxResidences) == null ? void 0 : Ca[2]) == null ? void 0 : Na.tin) ? "yes" : void 0,
1427
+ accountHolderShowTaxResidence4: !z((Ta = (Ia = (Sa = e.accountHolder) == null ? void 0 : Sa.taxResidences) == null ? void 0 : Ia[3]) == null ? void 0 : Ta.country) || !z((ge = (Xe = (Fe = e.accountHolder) == null ? void 0 : Fe.taxResidences) == null ? void 0 : Xe[3]) == null ? void 0 : ge.tin) ? "yes" : void 0,
1428
+ accountHolderShowTaxResidence5: !z(($e = (Ue = (xe = e.accountHolder) == null ? void 0 : xe.taxResidences) == null ? void 0 : Ue[4]) == null ? void 0 : $e.country) || !z((ya = (ea = (Ma = e.accountHolder) == null ? void 0 : Ma.taxResidences) == null ? void 0 : ea[4]) == null ? void 0 : ya.tin) ? "yes" : void 0,
1264
1429
  accountHolderVatCountry: (aa = e.accountHolder) == null ? void 0 : aa.vatinCountry,
1265
- accountHolderTaxResidenceCountry1: (ja = (ya = (ia = e.accountHolder) == null ? void 0 : ia.taxResidences) == null ? void 0 : ya[0]) == null ? void 0 : ja.country,
1266
- accountHolderTaxResidenceForeignTin1: (Ba = (Oa = (na = e.accountHolder) == null ? void 0 : na.taxResidences) == null ? void 0 : Oa[0]) == null ? void 0 : Ba.tin,
1267
- accountHolderTaxResidenceForeignTin1IsNotRequired: (t = (Ea = (za = e.accountHolder) == null ? void 0 : za.taxResidences) == null ? void 0 : Ea[0]) != null && t.tinNotRequired ? "yes" : void 0,
1268
- accountHolderTaxResidenceCountry2: (A = (g = (d = e.accountHolder) == null ? void 0 : d.taxResidences) == null ? void 0 : g[1]) == null ? void 0 : A.country,
1269
- accountHolderTaxResidenceForeignTin2: (I = (j = (M = e.accountHolder) == null ? void 0 : M.taxResidences) == null ? void 0 : j[1]) == null ? void 0 : I.tin,
1270
- accountHolderTaxResidenceForeignTin2IsNotRequired: (P = (D = (N = e.accountHolder) == null ? void 0 : N.taxResidences) == null ? void 0 : D[1]) != null && P.tinNotRequired ? "yes" : void 0,
1271
- accountHolderTaxResidenceCountry3: (ke = (W = (w = e.accountHolder) == null ? void 0 : w.taxResidences) == null ? void 0 : W[2]) == null ? void 0 : ke.country,
1430
+ accountHolderTaxResidenceCountry1: (Oa = (ja = (ia = e.accountHolder) == null ? void 0 : ia.taxResidences) == null ? void 0 : ja[0]) == null ? void 0 : Oa.country,
1431
+ accountHolderTaxResidenceForeignTin1: (za = (Ba = (na = e.accountHolder) == null ? void 0 : na.taxResidences) == null ? void 0 : Ba[0]) == null ? void 0 : za.tin,
1432
+ accountHolderTaxResidenceForeignTin1IsNotRequired: (t = (Ra = (Ea = e.accountHolder) == null ? void 0 : Ea.taxResidences) == null ? void 0 : Ra[0]) != null && t.tinNotRequired ? "yes" : void 0,
1433
+ accountHolderTaxResidenceCountry2: (A = (g = (c = e.accountHolder) == null ? void 0 : c.taxResidences) == null ? void 0 : g[1]) == null ? void 0 : A.country,
1434
+ accountHolderTaxResidenceForeignTin2: (T = (j = (y = e.accountHolder) == null ? void 0 : y.taxResidences) == null ? void 0 : j[1]) == null ? void 0 : T.tin,
1435
+ accountHolderTaxResidenceForeignTin2IsNotRequired: (R = (D = (N = e.accountHolder) == null ? void 0 : N.taxResidences) == null ? void 0 : D[1]) != null && R.tinNotRequired ? "yes" : void 0,
1436
+ accountHolderTaxResidenceCountry3: (ke = (W = (P = e.accountHolder) == null ? void 0 : P.taxResidences) == null ? void 0 : W[2]) == null ? void 0 : ke.country,
1272
1437
  accountHolderTaxResidenceForeignTin3: (ti = (ee = (ta = e.accountHolder) == null ? void 0 : ta.taxResidences) == null ? void 0 : ee[2]) == null ? void 0 : ti.tin,
1273
1438
  accountHolderTaxResidenceForeignTin3IsNotRequired: (si = (oi = (ri = e.accountHolder) == null ? void 0 : ri.taxResidences) == null ? void 0 : oi[2]) != null && si.tinNotRequired ? "yes" : void 0,
1274
1439
  accountHolderTaxResidenceCountry4: (ui = (di = (li = e.accountHolder) == null ? void 0 : li.taxResidences) == null ? void 0 : di[3]) == null ? void 0 : ui.country,
@@ -1321,225 +1486,58 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
1321
1486
  ([Kn]) => n[Kn]
1322
1487
  )
1323
1488
  );
1324
- }, H = (e) => e === void 0 ? void 0 : e === "yes", Bt = (e) => {
1325
- const a = {
1326
- city: e.accountHolderAddressCity,
1327
- country: e.accountHolderAddressCountry,
1328
- state_or_province: e.accountHolderAddressState,
1329
- first_line: e.accountHolderAddressStreet,
1330
- second_line: e.accountHolderAddressStreet2,
1331
- postal_code: e.accountHolderAddressZip
1332
- };
1333
- return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
1334
- }, zt = (e) => {
1335
- const a = {
1336
- city: e.regardedOwnerAddressCity,
1337
- country: e.regardedOwnerAddressCountry,
1338
- state_or_province: e.regardedOwnerAddressState,
1339
- first_line: e.regardedOwnerAddressStreet,
1340
- second_line: e.regardedOwnerAddressStreet2,
1341
- postal_code: e.regardedOwnerAddressZip
1342
- };
1343
- return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
1344
- }, Et = (e) => {
1345
- const a = {
1346
- city: e.accountHolderMailingAddressCity,
1347
- country: e.accountHolderMailingAddressCountry,
1348
- state_or_province: e.accountHolderMailingAddressState,
1349
- first_line: e.accountHolderMailingAddressStreet,
1350
- second_line: e.accountHolderMailingAddressStreet2,
1351
- postal_code: e.accountHolderMailingAddressZip
1352
- };
1353
- return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
1354
- }, Rt = (e) => {
1355
- const a = {
1356
- city: e.regardedOwnerMailingAddressCity,
1357
- country: e.regardedOwnerMailingAddressCountry,
1358
- state_or_province: e.regardedOwnerMailingAddressState,
1359
- first_line: e.regardedOwnerMailingAddressStreet,
1360
- second_line: e.regardedOwnerMailingAddressStreet2,
1361
- postal_code: e.regardedOwnerMailingAddressZip
1362
- };
1363
- return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
1364
- }, Pt = (e) => {
1365
- const n = [
1366
- {
1367
- country: e.accountHolderTaxResidenceCountry1,
1368
- tin: e.accountHolderTaxResidenceForeignTin1,
1369
- tin_not_required: H(
1370
- e.accountHolderTaxResidenceForeignTin1IsNotRequired
1371
- )
1372
- },
1373
- {
1374
- country: e.accountHolderTaxResidenceCountry2,
1375
- tin: e.accountHolderTaxResidenceForeignTin2,
1376
- tin_not_required: H(
1377
- e.accountHolderTaxResidenceForeignTin2IsNotRequired
1378
- )
1379
- },
1380
- {
1381
- country: e.accountHolderTaxResidenceCountry3,
1382
- tin: e.accountHolderTaxResidenceForeignTin3,
1383
- tin_not_required: H(
1384
- e.accountHolderTaxResidenceForeignTin3IsNotRequired
1385
- )
1386
- },
1387
- {
1388
- country: e.accountHolderTaxResidenceCountry4,
1389
- tin: e.accountHolderTaxResidenceForeignTin4,
1390
- tin_not_required: H(
1391
- e.accountHolderTaxResidenceForeignTin4IsNotRequired
1392
- )
1393
- },
1394
- {
1395
- country: e.accountHolderTaxResidenceCountry5,
1396
- tin: e.accountHolderTaxResidenceForeignTin5,
1397
- tin_not_required: H(
1398
- e.accountHolderTaxResidenceForeignTin5IsNotRequired
1399
- )
1400
- }
1401
- ].filter(
1402
- (r) => Object.entries(r).some(([, s]) => s !== void 0)
1403
- );
1404
- return n.length > 0 ? n : void 0;
1405
- }, wt = (e) => {
1406
- const a = {
1407
- address: Bt(e),
1408
- country_of_citizenship: e.accountHolderCountryOfCitizenship,
1409
- date_of_birth: e.accountHolderDateOfBirth,
1410
- dba_name: e.accountHolderDbaName,
1411
- mailing_address: Et(e),
1412
- mailing_address_is_different: H(
1413
- e.accountHolderMailingAddressIsDifferent
1414
- ),
1415
- name: e.accountHolderName,
1416
- city_of_birth: e.accountHolderCityOfBirth,
1417
- country_of_birth: e.accountHolderCountryOfBirth,
1418
- financial_account_identifier: e.accountHolderFinancialAccountIdentifier,
1419
- financial_account_name: e.accountHolderFinancialAccountName,
1420
- ftin: e.accountHolderForeignTin,
1421
- ftin_not_legally_required: H(
1422
- e.accountHolderForeignTinIsNotRequired
1423
- ),
1424
- tax_residences: Pt(e),
1425
- tin: e.accountHolderUsTin,
1426
- vatin: e.accountHolderVatIdentificationNumber,
1427
- vatin_country: e.accountHolderVatCountry,
1428
- vatin_not_required: H(
1429
- e.accountHolderVatIdentificationNumberIsNotRequired
1430
- ),
1431
- exempt_fatca_code: e.exemptFatcaCode,
1432
- exempt_payee_code: e.exemptPayeeCode,
1433
- is_individual: H(e.accountHolderIsIndividual),
1434
- is_eu_resident: H(e.accountHolderIsEuResident),
1435
- is_us_person: H(e.accountHolderUsPerson),
1436
- us_account_type: e.accountHolderUsAccountType,
1437
- us_smllc_election: H(e.accountHolderUsSmllcElection),
1438
- us_llc_classification: e.accountHolderUsLlcClassification,
1439
- us_other_classification: e.accountHolderUsOtherClassification,
1440
- us_trust_estate_ein: H(
1441
- e.accountHolderUsTrustEstateEin
1442
- ),
1443
- foreign_account_type: e.accountHolderForeignAccountType,
1444
- foreign_trust_classification: e.accountHolderForeignTrustClassification,
1445
- foreign_other_classification: e.accountHolderForeignOtherClassification
1446
- };
1447
- return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
1448
- }, Gt = (e) => {
1449
- const a = {
1450
- address: zt(e),
1451
- country_of_citizenship: e.regardedOwnerCountryOfCitizenship,
1452
- date_of_birth: e.regardedOwnerDateOfBirth,
1453
- dba_name: e.regardedOwnerDbaName,
1454
- mailing_address: Rt(e),
1455
- mailing_address_is_different: H(
1456
- e.regardedOwnerMailingAddressIsDifferent
1457
- ),
1458
- name: e.regardedOwnerName,
1459
- ftin: e.regardedOwnerForeignTin,
1460
- ftin_not_legally_required: H(
1461
- e.regardedOwnerForeignTinIsNotRequired
1462
- ),
1463
- tin: e.regardedOwnerUsTin,
1464
- exempt_fatca_code: e.exemptFatcaCode,
1465
- exempt_payee_code: e.exemptPayeeCode,
1466
- is_us_person: H(e.regardedOwnerUsPerson),
1467
- us_account_type: e.regardedOwnerUsAccountType,
1468
- us_llc_classification: e.regardedOwnerUsLlcClassification,
1469
- us_other_classification: e.regardedOwnerUsOtherClassification,
1470
- us_trust_estate_ein: H(
1471
- e.regardedOwnerUsTrustEstateEin
1472
- ),
1473
- foreign_account_type: e.regardedOwnerForeignAccountType,
1474
- foreign_trust_classification: e.regardedOwnerForeignTrustClassification,
1475
- foreign_other_classification: e.regardedOwnerForeignOtherClassification
1476
- };
1477
- return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
1478
- }, Lt = (e) => {
1479
- const a = wt(e), n = Gt(e);
1480
- return {
1481
- account_holder: a,
1482
- regarded_owner: n,
1483
- has_certified: H(e.iCertifyToAll),
1484
- is_not_subject_backup_withholding: H(
1485
- e.iAmNotSubjectToBackupWithholding
1486
- ),
1487
- signature: e.signature,
1488
- document_type: "COMPREHENSIVE",
1489
- source: "SDK"
1490
- };
1491
- }, _a = ({ bearerToken: e }) => new Headers({
1489
+ }, Ya = ({ bearerToken: e }) => new Headers({
1492
1490
  Authorization: `Bearer ${e}`
1493
- }), Ht = (e, a, n) => {
1494
- var T;
1495
- const [r, s] = K(), [o, u] = K(), [l, c] = K(!1), m = a ? "STAGING" : "PRODUCTION", k = Wa.taxDocumentation.get(m), v = Wa.taxDocumentation.post(m), b = Wa.taxDocumentationStatus.get(m), p = (E) => {
1496
- const y = {
1491
+ }), xt = (e, a) => {
1492
+ var C;
1493
+ const [n, r] = U(), [s, o] = U(), [u, d] = U(!1), l = a ? "STAGING" : "PRODUCTION", m = Va.taxDocumentation.get(l), k = Va.taxDocumentation.post(l), v = Va.taxDocumentationStatus.get(l), b = async (I) => {
1494
+ const M = {
1497
1495
  method: "POST",
1498
- headers: _a({ bearerToken: e }),
1499
- body: JSON.stringify(E)
1496
+ headers: Ya({ bearerToken: e }),
1497
+ body: JSON.stringify(Xa(I))
1500
1498
  };
1501
- fetch(v, y).then((R) => {
1502
- R.status === 200 && (c(!0), n && n(E));
1499
+ fetch(k, M).then((G) => {
1500
+ G.status === 200 && d(!0);
1503
1501
  });
1504
1502
  };
1505
1503
  Q(() => {
1506
- const E = {
1504
+ const I = {
1507
1505
  method: "GET",
1508
- headers: _a({ bearerToken: e })
1506
+ headers: Ya({ bearerToken: e })
1509
1507
  };
1510
- fetch(b, E).then((y) => {
1511
- if (y.ok)
1512
- return y.json();
1513
- throw y.status === 401 ? new Error("Unauthorized, please check your bearer token") : new Error("Something went wrong");
1514
- }).then((y) => {
1515
- u(Ua(y));
1508
+ fetch(v, I).then((M) => {
1509
+ if (M.ok)
1510
+ return M.json();
1511
+ throw M.status === 401 ? new Error("Unauthorized, please check your bearer token") : new Error("Something went wrong");
1512
+ }).then((M) => {
1513
+ o(la(M));
1516
1514
  });
1517
- }, [e, b, l]), Q(() => {
1518
- if (o && o.submissionStatus !== xa.NotSubmitted) {
1519
- const E = {
1515
+ }, [e, v, u]), Q(() => {
1516
+ if (s && s.submissionStatus !== "NOT_SUBMITTED") {
1517
+ const I = {
1520
1518
  method: "GET",
1521
- headers: _a({ bearerToken: e })
1519
+ headers: Ya({ bearerToken: e })
1522
1520
  };
1523
- fetch(k, E).then((y) => {
1524
- if (y.ok)
1525
- return y.json();
1521
+ fetch(m, I).then((M) => {
1522
+ if (M.ok)
1523
+ return M.json();
1526
1524
  throw new Error("Something went wrong");
1527
- }).then((y) => {
1528
- s(
1529
- Ua(
1530
- y
1525
+ }).then((M) => {
1526
+ r(
1527
+ la(
1528
+ M
1531
1529
  )
1532
1530
  );
1533
1531
  });
1534
1532
  }
1535
- }, [e, o, k]);
1536
- const C = (o == null ? void 0 : o.submissionStatus) === xa.NotSubmitted ? o.submissionStatus : (T = o == null ? void 0 : o.DAC7Interview) == null ? void 0 : T.dataCollectionStatus;
1533
+ }, [e, s, m]);
1534
+ const p = (s == null ? void 0 : s.submissionStatus) === "NOT_SUBMITTED" ? s.submissionStatus : (C = s == null ? void 0 : s.DAC7Interview) == null ? void 0 : C.dataCollectionStatus;
1537
1535
  return {
1538
- submitForm: p,
1539
- formStatus: C,
1540
- status: o,
1541
- formSubmitted: l,
1542
- serverData: r
1536
+ postData: b,
1537
+ formStatus: p,
1538
+ status: s,
1539
+ formSubmitted: u,
1540
+ serverData: n
1543
1541
  };
1544
1542
  };
1545
1543
  var $a = { exports: {} }, ra = {};
@@ -1553,20 +1551,20 @@ var $a = { exports: {} }, ra = {};
1553
1551
  * LICENSE file in the root directory of this source tree.
1554
1552
  */
1555
1553
  var In;
1556
- function Dt() {
1554
+ function Ut() {
1557
1555
  if (In)
1558
1556
  return ra;
1559
1557
  In = 1;
1560
1558
  var e = jn, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
1561
- function u(l, c, m) {
1559
+ function u(d, l, m) {
1562
1560
  var k, v = {}, b = null, p = null;
1563
- m !== void 0 && (b = "" + m), c.key !== void 0 && (b = "" + c.key), c.ref !== void 0 && (p = c.ref);
1564
- for (k in c)
1565
- r.call(c, k) && !o.hasOwnProperty(k) && (v[k] = c[k]);
1566
- if (l && l.defaultProps)
1567
- for (k in c = l.defaultProps, c)
1568
- v[k] === void 0 && (v[k] = c[k]);
1569
- return { $$typeof: a, type: l, key: b, ref: p, props: v, _owner: s.current };
1561
+ m !== void 0 && (b = "" + m), l.key !== void 0 && (b = "" + l.key), l.ref !== void 0 && (p = l.ref);
1562
+ for (k in l)
1563
+ r.call(l, k) && !o.hasOwnProperty(k) && (v[k] = l[k]);
1564
+ if (d && d.defaultProps)
1565
+ for (k in l = d.defaultProps, l)
1566
+ v[k] === void 0 && (v[k] = l[k]);
1567
+ return { $$typeof: a, type: d, key: b, ref: p, props: v, _owner: s.current };
1570
1568
  }
1571
1569
  return ra.Fragment = n, ra.jsx = u, ra.jsxs = u, ra;
1572
1570
  }
@@ -1581,56 +1579,56 @@ var oa = {};
1581
1579
  * LICENSE file in the root directory of this source tree.
1582
1580
  */
1583
1581
  var Tn;
1584
- function Ft() {
1582
+ function Kt() {
1585
1583
  return Tn || (Tn = 1, process.env.NODE_ENV !== "production" && function() {
1586
- var e = jn, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), C = Symbol.iterator, T = "@@iterator";
1587
- function E(t) {
1584
+ var e = jn, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), C = Symbol.iterator, I = "@@iterator";
1585
+ function M(t) {
1588
1586
  if (t === null || typeof t != "object")
1589
1587
  return null;
1590
- var d = C && t[C] || t[T];
1591
- return typeof d == "function" ? d : null;
1588
+ var c = C && t[C] || t[I];
1589
+ return typeof c == "function" ? c : null;
1592
1590
  }
1593
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1594
- function R(t) {
1591
+ var G = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1592
+ function E(t) {
1595
1593
  {
1596
- for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), A = 1; A < d; A++)
1594
+ for (var c = arguments.length, g = new Array(c > 1 ? c - 1 : 0), A = 1; A < c; A++)
1597
1595
  g[A - 1] = arguments[A];
1598
1596
  _("error", t, g);
1599
1597
  }
1600
1598
  }
1601
- function _(t, d, g) {
1599
+ function _(t, c, g) {
1602
1600
  {
1603
- var A = y.ReactDebugCurrentFrame, M = A.getStackAddendum();
1604
- M !== "" && (d += "%s", g = g.concat([M]));
1605
- var j = g.map(function(I) {
1606
- return String(I);
1601
+ var A = G.ReactDebugCurrentFrame, y = A.getStackAddendum();
1602
+ y !== "" && (c += "%s", g = g.concat([y]));
1603
+ var j = g.map(function(T) {
1604
+ return String(T);
1607
1605
  });
1608
- j.unshift("Warning: " + d), Function.prototype.apply.call(console[t], console, j);
1606
+ j.unshift("Warning: " + c), Function.prototype.apply.call(console[t], console, j);
1609
1607
  }
1610
1608
  }
1611
1609
  var L = !1, ie = !1, ue = !1, be = !1, Ce = !1, te;
1612
1610
  te = Symbol.for("react.module.reference");
1613
1611
  function re(t) {
1614
- return !!(typeof t == "string" || typeof t == "function" || t === r || t === o || Ce || t === s || t === m || t === k || be || t === p || L || ie || ue || typeof t == "object" && t !== null && (t.$$typeof === b || t.$$typeof === v || t.$$typeof === u || t.$$typeof === l || t.$$typeof === c || // This needs to include all possible module reference object
1612
+ return !!(typeof t == "string" || typeof t == "function" || t === r || t === o || Ce || t === s || t === m || t === k || be || t === p || L || ie || ue || typeof t == "object" && t !== null && (t.$$typeof === b || t.$$typeof === v || t.$$typeof === u || t.$$typeof === d || t.$$typeof === l || // This needs to include all possible module reference object
1615
1613
  // types supported by any Flight configuration anywhere since
1616
1614
  // we don't know which Flight build this will end up being used
1617
1615
  // with.
1618
1616
  t.$$typeof === te || t.getModuleId !== void 0));
1619
1617
  }
1620
- function Ne(t, d, g) {
1618
+ function Ne(t, c, g) {
1621
1619
  var A = t.displayName;
1622
1620
  if (A)
1623
1621
  return A;
1624
- var M = d.displayName || d.name || "";
1625
- return M !== "" ? g + "(" + M + ")" : g;
1622
+ var y = c.displayName || c.name || "";
1623
+ return y !== "" ? g + "(" + y + ")" : g;
1626
1624
  }
1627
1625
  function oe(t) {
1628
1626
  return t.displayName || "Context";
1629
1627
  }
1630
- function V(t) {
1628
+ function K(t) {
1631
1629
  if (t == null)
1632
1630
  return null;
1633
- if (typeof t.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
1631
+ if (typeof t.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
1634
1632
  return t.displayName || t.name || null;
1635
1633
  if (typeof t == "string")
1636
1634
  return t;
@@ -1650,21 +1648,21 @@ function Ft() {
1650
1648
  }
1651
1649
  if (typeof t == "object")
1652
1650
  switch (t.$$typeof) {
1653
- case l:
1654
- var d = t;
1655
- return oe(d) + ".Consumer";
1651
+ case d:
1652
+ var c = t;
1653
+ return oe(c) + ".Consumer";
1656
1654
  case u:
1657
1655
  var g = t;
1658
1656
  return oe(g._context) + ".Provider";
1659
- case c:
1657
+ case l:
1660
1658
  return Ne(t, t.render, "ForwardRef");
1661
1659
  case v:
1662
1660
  var A = t.displayName || null;
1663
- return A !== null ? A : V(t.type) || "Memo";
1661
+ return A !== null ? A : K(t.type) || "Memo";
1664
1662
  case b: {
1665
- var M = t, j = M._payload, I = M._init;
1663
+ var y = t, j = y._payload, T = y._init;
1666
1664
  try {
1667
- return V(I(j));
1665
+ return K(T(j));
1668
1666
  } catch {
1669
1667
  return null;
1670
1668
  }
@@ -1672,14 +1670,14 @@ function Ft() {
1672
1670
  }
1673
1671
  return null;
1674
1672
  }
1675
- var q = Object.assign, $ = 0, B, x, ce, se, Re, Pe, we;
1673
+ var q = Object.assign, $ = 0, B, V, ce, se, Re, Pe, we;
1676
1674
  function Ge() {
1677
1675
  }
1678
1676
  Ge.__reactDisabledLog = !0;
1679
1677
  function Ve() {
1680
1678
  {
1681
1679
  if ($ === 0) {
1682
- B = console.log, x = console.info, ce = console.warn, se = console.error, Re = console.group, Pe = console.groupCollapsed, we = console.groupEnd;
1680
+ B = console.log, V = console.info, ce = console.warn, se = console.error, Re = console.group, Pe = console.groupCollapsed, we = console.groupEnd;
1683
1681
  var t = {
1684
1682
  configurable: !0,
1685
1683
  enumerable: !0,
@@ -1712,7 +1710,7 @@ function Ft() {
1712
1710
  value: B
1713
1711
  }),
1714
1712
  info: q({}, t, {
1715
- value: x
1713
+ value: V
1716
1714
  }),
1717
1715
  warn: q({}, t, {
1718
1716
  value: ce
@@ -1731,65 +1729,65 @@ function Ft() {
1731
1729
  })
1732
1730
  });
1733
1731
  }
1734
- $ < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1732
+ $ < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1735
1733
  }
1736
1734
  }
1737
- var G = y.ReactCurrentDispatcher, le;
1738
- function me(t, d, g) {
1735
+ var w = G.ReactCurrentDispatcher, le;
1736
+ function me(t, c, g) {
1739
1737
  {
1740
1738
  if (le === void 0)
1741
1739
  try {
1742
1740
  throw Error();
1743
- } catch (M) {
1744
- var A = M.stack.trim().match(/\n( *(at )?)/);
1741
+ } catch (y) {
1742
+ var A = y.stack.trim().match(/\n( *(at )?)/);
1745
1743
  le = A && A[1] || "";
1746
1744
  }
1747
1745
  return `
1748
1746
  ` + le + t;
1749
1747
  }
1750
1748
  }
1751
- var Le = !1, je;
1749
+ var Le = !1, ye;
1752
1750
  {
1753
- var ua = typeof WeakMap == "function" ? WeakMap : Map;
1754
- je = new ua();
1751
+ var ca = typeof WeakMap == "function" ? WeakMap : Map;
1752
+ ye = new ca();
1755
1753
  }
1756
- function We(t, d) {
1754
+ function We(t, c) {
1757
1755
  if (!t || Le)
1758
1756
  return "";
1759
1757
  {
1760
- var g = je.get(t);
1758
+ var g = ye.get(t);
1761
1759
  if (g !== void 0)
1762
1760
  return g;
1763
1761
  }
1764
1762
  var A;
1765
1763
  Le = !0;
1766
- var M = Error.prepareStackTrace;
1764
+ var y = Error.prepareStackTrace;
1767
1765
  Error.prepareStackTrace = void 0;
1768
1766
  var j;
1769
- j = G.current, G.current = null, Ve();
1767
+ j = w.current, w.current = null, Ve();
1770
1768
  try {
1771
- if (d) {
1772
- var I = function() {
1769
+ if (c) {
1770
+ var T = function() {
1773
1771
  throw Error();
1774
1772
  };
1775
- if (Object.defineProperty(I.prototype, "props", {
1773
+ if (Object.defineProperty(T.prototype, "props", {
1776
1774
  set: function() {
1777
1775
  throw Error();
1778
1776
  }
1779
1777
  }), typeof Reflect == "object" && Reflect.construct) {
1780
1778
  try {
1781
- Reflect.construct(I, []);
1779
+ Reflect.construct(T, []);
1782
1780
  } catch (ee) {
1783
1781
  A = ee;
1784
1782
  }
1785
- Reflect.construct(t, [], I);
1783
+ Reflect.construct(t, [], T);
1786
1784
  } else {
1787
1785
  try {
1788
- I.call();
1786
+ T.call();
1789
1787
  } catch (ee) {
1790
1788
  A = ee;
1791
1789
  }
1792
- t.call(I.prototype);
1790
+ t.call(T.prototype);
1793
1791
  }
1794
1792
  } else {
1795
1793
  try {
@@ -1803,39 +1801,39 @@ function Ft() {
1803
1801
  if (ee && A && typeof ee.stack == "string") {
1804
1802
  for (var N = ee.stack.split(`
1805
1803
  `), D = A.stack.split(`
1806
- `), P = N.length - 1, w = D.length - 1; P >= 1 && w >= 0 && N[P] !== D[w]; )
1807
- w--;
1808
- for (; P >= 1 && w >= 0; P--, w--)
1809
- if (N[P] !== D[w]) {
1810
- if (P !== 1 || w !== 1)
1804
+ `), R = N.length - 1, P = D.length - 1; R >= 1 && P >= 0 && N[R] !== D[P]; )
1805
+ P--;
1806
+ for (; R >= 1 && P >= 0; R--, P--)
1807
+ if (N[R] !== D[P]) {
1808
+ if (R !== 1 || P !== 1)
1811
1809
  do
1812
- if (P--, w--, w < 0 || N[P] !== D[w]) {
1810
+ if (R--, P--, P < 0 || N[R] !== D[P]) {
1813
1811
  var W = `
1814
- ` + N[P].replace(" at new ", " at ");
1815
- return t.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", t.displayName)), typeof t == "function" && je.set(t, W), W;
1812
+ ` + N[R].replace(" at new ", " at ");
1813
+ return t.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", t.displayName)), typeof t == "function" && ye.set(t, W), W;
1816
1814
  }
1817
- while (P >= 1 && w >= 0);
1815
+ while (R >= 1 && P >= 0);
1818
1816
  break;
1819
1817
  }
1820
1818
  }
1821
1819
  } finally {
1822
- Le = !1, G.current = j, h(), Error.prepareStackTrace = M;
1820
+ Le = !1, w.current = j, h(), Error.prepareStackTrace = y;
1823
1821
  }
1824
1822
  var ke = t ? t.displayName || t.name : "", ta = ke ? me(ke) : "";
1825
- return typeof t == "function" && je.set(t, ta), ta;
1823
+ return typeof t == "function" && ye.set(t, ta), ta;
1826
1824
  }
1827
- function ca(t, d, g) {
1825
+ function ma(t, c, g) {
1828
1826
  return We(t, !1);
1829
1827
  }
1830
- function ma(t) {
1831
- var d = t.prototype;
1832
- return !!(d && d.isReactComponent);
1828
+ function ga(t) {
1829
+ var c = t.prototype;
1830
+ return !!(c && c.isReactComponent);
1833
1831
  }
1834
- function Oe(t, d, g) {
1832
+ function je(t, c, g) {
1835
1833
  if (t == null)
1836
1834
  return "";
1837
1835
  if (typeof t == "function")
1838
- return We(t, ma(t));
1836
+ return We(t, ga(t));
1839
1837
  if (typeof t == "string")
1840
1838
  return me(t);
1841
1839
  switch (t) {
@@ -1846,58 +1844,58 @@ function Ft() {
1846
1844
  }
1847
1845
  if (typeof t == "object")
1848
1846
  switch (t.$$typeof) {
1849
- case c:
1850
- return ca(t.render);
1847
+ case l:
1848
+ return ma(t.render);
1851
1849
  case v:
1852
- return Oe(t.type, d, g);
1850
+ return je(t.type, c, g);
1853
1851
  case b: {
1854
- var A = t, M = A._payload, j = A._init;
1852
+ var A = t, y = A._payload, j = A._init;
1855
1853
  try {
1856
- return Oe(j(M), d, g);
1854
+ return je(j(y), c, g);
1857
1855
  } catch {
1858
1856
  }
1859
1857
  }
1860
1858
  }
1861
1859
  return "";
1862
1860
  }
1863
- var Be = Object.prototype.hasOwnProperty, Je = {}, Ze = y.ReactDebugCurrentFrame;
1864
- function ze(t) {
1861
+ var Oe = Object.prototype.hasOwnProperty, Je = {}, Ze = G.ReactDebugCurrentFrame;
1862
+ function Be(t) {
1865
1863
  if (t) {
1866
- var d = t._owner, g = Oe(t.type, t._source, d ? d.type : null);
1864
+ var c = t._owner, g = je(t.type, t._source, c ? c.type : null);
1867
1865
  Ze.setExtraStackFrame(g);
1868
1866
  } else
1869
1867
  Ze.setExtraStackFrame(null);
1870
1868
  }
1871
- function ga(t, d, g, A, M) {
1869
+ function ka(t, c, g, A, y) {
1872
1870
  {
1873
- var j = Function.call.bind(Be);
1874
- for (var I in t)
1875
- if (j(t, I)) {
1871
+ var j = Function.call.bind(Oe);
1872
+ for (var T in t)
1873
+ if (j(t, T)) {
1876
1874
  var N = void 0;
1877
1875
  try {
1878
- if (typeof t[I] != "function") {
1879
- var D = Error((A || "React class") + ": " + g + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1876
+ if (typeof t[T] != "function") {
1877
+ var D = Error((A || "React class") + ": " + g + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1880
1878
  throw D.name = "Invariant Violation", D;
1881
1879
  }
1882
- N = t[I](d, I, A, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1883
- } catch (P) {
1884
- N = P;
1880
+ N = t[T](c, T, A, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1881
+ } catch (R) {
1882
+ N = R;
1885
1883
  }
1886
- N && !(N instanceof Error) && (ze(M), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", A || "React class", g, I, typeof N), ze(null)), N instanceof Error && !(N.message in Je) && (Je[N.message] = !0, ze(M), R("Failed %s type: %s", g, N.message), ze(null));
1884
+ N && !(N instanceof Error) && (Be(y), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", A || "React class", g, T, typeof N), Be(null)), N instanceof Error && !(N.message in Je) && (Je[N.message] = !0, Be(y), E("Failed %s type: %s", g, N.message), Be(null));
1887
1885
  }
1888
1886
  }
1889
1887
  }
1890
- var ka = Array.isArray;
1888
+ var ha = Array.isArray;
1891
1889
  function He(t) {
1892
- return ka(t);
1890
+ return ha(t);
1893
1891
  }
1894
- function ha(t) {
1892
+ function va(t) {
1895
1893
  {
1896
- var d = typeof Symbol == "function" && Symbol.toStringTag, g = d && t[Symbol.toStringTag] || t.constructor.name || "Object";
1894
+ var c = typeof Symbol == "function" && Symbol.toStringTag, g = c && t[Symbol.toStringTag] || t.constructor.name || "Object";
1897
1895
  return g;
1898
1896
  }
1899
1897
  }
1900
- function va(t) {
1898
+ function fa(t) {
1901
1899
  try {
1902
1900
  return qe(t), !1;
1903
1901
  } catch {
@@ -1908,42 +1906,42 @@ function Ft() {
1908
1906
  return "" + t;
1909
1907
  }
1910
1908
  function Ye(t) {
1911
- if (va(t))
1912
- return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ha(t)), qe(t);
1909
+ if (fa(t))
1910
+ return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", va(t)), qe(t);
1913
1911
  }
1914
- var Se = y.ReactCurrentOwner, fa = {
1912
+ var Se = G.ReactCurrentOwner, pa = {
1915
1913
  key: !0,
1916
1914
  ref: !0,
1917
1915
  __self: !0,
1918
1916
  __source: !0
1919
1917
  }, _e, Qe, De;
1920
1918
  De = {};
1921
- function pa(t) {
1922
- if (Be.call(t, "ref")) {
1923
- var d = Object.getOwnPropertyDescriptor(t, "ref").get;
1924
- if (d && d.isReactWarning)
1919
+ function Aa(t) {
1920
+ if (Oe.call(t, "ref")) {
1921
+ var c = Object.getOwnPropertyDescriptor(t, "ref").get;
1922
+ if (c && c.isReactWarning)
1925
1923
  return !1;
1926
1924
  }
1927
1925
  return t.ref !== void 0;
1928
1926
  }
1929
- function Aa(t) {
1930
- if (Be.call(t, "key")) {
1931
- var d = Object.getOwnPropertyDescriptor(t, "key").get;
1932
- if (d && d.isReactWarning)
1927
+ function ba(t) {
1928
+ if (Oe.call(t, "key")) {
1929
+ var c = Object.getOwnPropertyDescriptor(t, "key").get;
1930
+ if (c && c.isReactWarning)
1933
1931
  return !1;
1934
1932
  }
1935
1933
  return t.key !== void 0;
1936
1934
  }
1937
- function ba(t, d) {
1938
- if (typeof t.ref == "string" && Se.current && d && Se.current.stateNode !== d) {
1939
- var g = V(Se.current.type);
1940
- De[g] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', V(Se.current.type), t.ref), De[g] = !0);
1935
+ function Ca(t, c) {
1936
+ if (typeof t.ref == "string" && Se.current && c && Se.current.stateNode !== c) {
1937
+ var g = K(Se.current.type);
1938
+ De[g] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', K(Se.current.type), t.ref), De[g] = !0);
1941
1939
  }
1942
1940
  }
1943
- function Ca(t, d) {
1941
+ function Na(t, c) {
1944
1942
  {
1945
1943
  var g = function() {
1946
- _e || (_e = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
1944
+ _e || (_e = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
1947
1945
  };
1948
1946
  g.isReactWarning = !0, Object.defineProperty(t, "key", {
1949
1947
  get: g,
@@ -1951,10 +1949,10 @@ function Ft() {
1951
1949
  });
1952
1950
  }
1953
1951
  }
1954
- function Na(t, d) {
1952
+ function Sa(t, c) {
1955
1953
  {
1956
1954
  var g = function() {
1957
- Qe || (Qe = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
1955
+ Qe || (Qe = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
1958
1956
  };
1959
1957
  g.isReactWarning = !0, Object.defineProperty(t, "ref", {
1960
1958
  get: g,
@@ -1962,15 +1960,15 @@ function Ft() {
1962
1960
  });
1963
1961
  }
1964
1962
  }
1965
- var Sa = function(t, d, g, A, M, j, I) {
1963
+ var Ia = function(t, c, g, A, y, j, T) {
1966
1964
  var N = {
1967
1965
  // This tag allows us to uniquely identify this as a React Element
1968
1966
  $$typeof: a,
1969
1967
  // Built-in properties that belong on the element
1970
1968
  type: t,
1971
- key: d,
1969
+ key: c,
1972
1970
  ref: g,
1973
- props: I,
1971
+ props: T,
1974
1972
  // Record the component responsible for creating this element.
1975
1973
  _owner: j
1976
1974
  };
@@ -1988,31 +1986,31 @@ function Ft() {
1988
1986
  configurable: !1,
1989
1987
  enumerable: !1,
1990
1988
  writable: !1,
1991
- value: M
1989
+ value: y
1992
1990
  }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
1993
1991
  };
1994
- function Ia(t, d, g, A, M) {
1992
+ function Ta(t, c, g, A, y) {
1995
1993
  {
1996
- var j, I = {}, N = null, D = null;
1997
- g !== void 0 && (Ye(g), N = "" + g), Aa(d) && (Ye(d.key), N = "" + d.key), pa(d) && (D = d.ref, ba(d, M));
1998
- for (j in d)
1999
- Be.call(d, j) && !fa.hasOwnProperty(j) && (I[j] = d[j]);
1994
+ var j, T = {}, N = null, D = null;
1995
+ g !== void 0 && (Ye(g), N = "" + g), ba(c) && (Ye(c.key), N = "" + c.key), Aa(c) && (D = c.ref, Ca(c, y));
1996
+ for (j in c)
1997
+ Oe.call(c, j) && !pa.hasOwnProperty(j) && (T[j] = c[j]);
2000
1998
  if (t && t.defaultProps) {
2001
- var P = t.defaultProps;
2002
- for (j in P)
2003
- I[j] === void 0 && (I[j] = P[j]);
1999
+ var R = t.defaultProps;
2000
+ for (j in R)
2001
+ T[j] === void 0 && (T[j] = R[j]);
2004
2002
  }
2005
2003
  if (N || D) {
2006
- var w = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
2007
- N && Ca(I, w), D && Na(I, w);
2004
+ var P = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
2005
+ N && Na(T, P), D && Sa(T, P);
2008
2006
  }
2009
- return Sa(t, N, D, M, A, Se.current, I);
2007
+ return Ia(t, N, D, y, A, Se.current, T);
2010
2008
  }
2011
2009
  }
2012
- var Fe = y.ReactCurrentOwner, Xe = y.ReactDebugCurrentFrame;
2010
+ var Fe = G.ReactCurrentOwner, Xe = G.ReactDebugCurrentFrame;
2013
2011
  function ge(t) {
2014
2012
  if (t) {
2015
- var d = t._owner, g = Oe(t.type, t._source, d ? d.type : null);
2013
+ var c = t._owner, g = je(t.type, t._source, c ? c.type : null);
2016
2014
  Xe.setExtraStackFrame(g);
2017
2015
  } else
2018
2016
  Xe.setExtraStackFrame(null);
@@ -2025,7 +2023,7 @@ function Ft() {
2025
2023
  function $e() {
2026
2024
  {
2027
2025
  if (Fe.current) {
2028
- var t = V(Fe.current.type);
2026
+ var t = K(Fe.current.type);
2029
2027
  if (t)
2030
2028
  return `
2031
2029
 
@@ -2034,115 +2032,115 @@ Check the render method of \`` + t + "`.";
2034
2032
  return "";
2035
2033
  }
2036
2034
  }
2037
- function Ta(t) {
2035
+ function Ma(t) {
2038
2036
  {
2039
2037
  if (t !== void 0) {
2040
- var d = t.fileName.replace(/^.*[\\\/]/, ""), g = t.lineNumber;
2038
+ var c = t.fileName.replace(/^.*[\\\/]/, ""), g = t.lineNumber;
2041
2039
  return `
2042
2040
 
2043
- Check your code at ` + d + ":" + g + ".";
2041
+ Check your code at ` + c + ":" + g + ".";
2044
2042
  }
2045
2043
  return "";
2046
2044
  }
2047
2045
  }
2048
2046
  var ea = {};
2049
- function Ma(t) {
2047
+ function ya(t) {
2050
2048
  {
2051
- var d = $e();
2052
- if (!d) {
2049
+ var c = $e();
2050
+ if (!c) {
2053
2051
  var g = typeof t == "string" ? t : t.displayName || t.name;
2054
- g && (d = `
2052
+ g && (c = `
2055
2053
 
2056
2054
  Check the top-level render call using <` + g + ">.");
2057
2055
  }
2058
- return d;
2056
+ return c;
2059
2057
  }
2060
2058
  }
2061
- function aa(t, d) {
2059
+ function aa(t, c) {
2062
2060
  {
2063
2061
  if (!t._store || t._store.validated || t.key != null)
2064
2062
  return;
2065
2063
  t._store.validated = !0;
2066
- var g = Ma(d);
2064
+ var g = ya(c);
2067
2065
  if (ea[g])
2068
2066
  return;
2069
2067
  ea[g] = !0;
2070
2068
  var A = "";
2071
- t && t._owner && t._owner !== Fe.current && (A = " It was passed a child from " + V(t._owner.type) + "."), ge(t), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, A), ge(null);
2069
+ t && t._owner && t._owner !== Fe.current && (A = " It was passed a child from " + K(t._owner.type) + "."), ge(t), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, A), ge(null);
2072
2070
  }
2073
2071
  }
2074
- function ia(t, d) {
2072
+ function ia(t, c) {
2075
2073
  {
2076
2074
  if (typeof t != "object")
2077
2075
  return;
2078
2076
  if (He(t))
2079
2077
  for (var g = 0; g < t.length; g++) {
2080
2078
  var A = t[g];
2081
- Ue(A) && aa(A, d);
2079
+ Ue(A) && aa(A, c);
2082
2080
  }
2083
2081
  else if (Ue(t))
2084
2082
  t._store && (t._store.validated = !0);
2085
2083
  else if (t) {
2086
- var M = E(t);
2087
- if (typeof M == "function" && M !== t.entries)
2088
- for (var j = M.call(t), I; !(I = j.next()).done; )
2089
- Ue(I.value) && aa(I.value, d);
2084
+ var y = M(t);
2085
+ if (typeof y == "function" && y !== t.entries)
2086
+ for (var j = y.call(t), T; !(T = j.next()).done; )
2087
+ Ue(T.value) && aa(T.value, c);
2090
2088
  }
2091
2089
  }
2092
2090
  }
2093
- function ya(t) {
2091
+ function ja(t) {
2094
2092
  {
2095
- var d = t.type;
2096
- if (d == null || typeof d == "string")
2093
+ var c = t.type;
2094
+ if (c == null || typeof c == "string")
2097
2095
  return;
2098
2096
  var g;
2099
- if (typeof d == "function")
2100
- g = d.propTypes;
2101
- else if (typeof d == "object" && (d.$$typeof === c || // Note: Memo only checks outer props here.
2097
+ if (typeof c == "function")
2098
+ g = c.propTypes;
2099
+ else if (typeof c == "object" && (c.$$typeof === l || // Note: Memo only checks outer props here.
2102
2100
  // Inner props are checked in the reconciler.
2103
- d.$$typeof === v))
2104
- g = d.propTypes;
2101
+ c.$$typeof === v))
2102
+ g = c.propTypes;
2105
2103
  else
2106
2104
  return;
2107
2105
  if (g) {
2108
- var A = V(d);
2109
- ga(g, t.props, "prop", A, t);
2110
- } else if (d.PropTypes !== void 0 && !xe) {
2106
+ var A = K(c);
2107
+ ka(g, t.props, "prop", A, t);
2108
+ } else if (c.PropTypes !== void 0 && !xe) {
2111
2109
  xe = !0;
2112
- var M = V(d);
2113
- R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
2110
+ var y = K(c);
2111
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
2114
2112
  }
2115
- typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2113
+ typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2116
2114
  }
2117
2115
  }
2118
- function ja(t) {
2116
+ function Oa(t) {
2119
2117
  {
2120
- for (var d = Object.keys(t.props), g = 0; g < d.length; g++) {
2121
- var A = d[g];
2118
+ for (var c = Object.keys(t.props), g = 0; g < c.length; g++) {
2119
+ var A = c[g];
2122
2120
  if (A !== "children" && A !== "key") {
2123
- ge(t), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), ge(null);
2121
+ ge(t), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), ge(null);
2124
2122
  break;
2125
2123
  }
2126
2124
  }
2127
- t.ref !== null && (ge(t), R("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
2125
+ t.ref !== null && (ge(t), E("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
2128
2126
  }
2129
2127
  }
2130
- function na(t, d, g, A, M, j) {
2128
+ function na(t, c, g, A, y, j) {
2131
2129
  {
2132
- var I = re(t);
2133
- if (!I) {
2130
+ var T = re(t);
2131
+ if (!T) {
2134
2132
  var N = "";
2135
2133
  (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2136
- var D = Ta(M);
2134
+ var D = Ma(y);
2137
2135
  D ? N += D : N += $e();
2138
- var P;
2139
- t === null ? P = "null" : He(t) ? P = "array" : t !== void 0 && t.$$typeof === a ? (P = "<" + (V(t.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : P = typeof t, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, N);
2136
+ var R;
2137
+ t === null ? R = "null" : He(t) ? R = "array" : t !== void 0 && t.$$typeof === a ? (R = "<" + (K(t.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : R = typeof t, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, N);
2140
2138
  }
2141
- var w = Ia(t, d, g, M, j);
2142
- if (w == null)
2143
- return w;
2144
- if (I) {
2145
- var W = d.children;
2139
+ var P = Ta(t, c, g, y, j);
2140
+ if (P == null)
2141
+ return P;
2142
+ if (T) {
2143
+ var W = c.children;
2146
2144
  if (W !== void 0)
2147
2145
  if (A)
2148
2146
  if (He(W)) {
@@ -2150,26 +2148,26 @@ Check the top-level render call using <` + g + ">.");
2150
2148
  ia(W[ke], t);
2151
2149
  Object.freeze && Object.freeze(W);
2152
2150
  } else
2153
- R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
2151
+ E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
2154
2152
  else
2155
2153
  ia(W, t);
2156
2154
  }
2157
- return t === r ? ja(w) : ya(w), w;
2155
+ return t === r ? Oa(P) : ja(P), P;
2158
2156
  }
2159
2157
  }
2160
- function Oa(t, d, g) {
2161
- return na(t, d, g, !0);
2158
+ function Ba(t, c, g) {
2159
+ return na(t, c, g, !0);
2162
2160
  }
2163
- function Ba(t, d, g) {
2164
- return na(t, d, g, !1);
2161
+ function za(t, c, g) {
2162
+ return na(t, c, g, !1);
2165
2163
  }
2166
- var za = Ba, Ea = Oa;
2167
- oa.Fragment = r, oa.jsx = za, oa.jsxs = Ea;
2164
+ var Ea = za, Ra = Ba;
2165
+ oa.Fragment = r, oa.jsx = Ea, oa.jsxs = Ra;
2168
2166
  }()), oa;
2169
2167
  }
2170
- process.env.NODE_ENV === "production" ? $a.exports = Dt() : $a.exports = Ft();
2168
+ process.env.NODE_ENV === "production" ? $a.exports = Ut() : $a.exports = Kt();
2171
2169
  var i = $a.exports;
2172
- const xt = {
2170
+ const Vt = {
2173
2171
  button: {
2174
2172
  back: "Назад",
2175
2173
  cancel: "Отказ",
@@ -2723,7 +2721,7 @@ const xt = {
2723
2721
  "sl-si": "Словенски",
2724
2722
  "sv-se": "Шведски"
2725
2723
  }
2726
- }, Ut = {
2724
+ }, Wt = {
2727
2725
  button: {
2728
2726
  back: "Zpět",
2729
2727
  cancel: "Zrušit",
@@ -3277,7 +3275,7 @@ const xt = {
3277
3275
  "sl-si": "Slovinsky",
3278
3276
  "sv-se": "Švédsky"
3279
3277
  }
3280
- }, Kt = {
3278
+ }, Jt = {
3281
3279
  button: {
3282
3280
  back: "Tilbage",
3283
3281
  cancel: "Annuller",
@@ -3831,7 +3829,7 @@ const xt = {
3831
3829
  "sl-si": "Slovensk",
3832
3830
  "sv-se": "Svensk"
3833
3831
  }
3834
- }, Vt = {
3832
+ }, Zt = {
3835
3833
  button: {
3836
3834
  back: "Zurück",
3837
3835
  cancel: "Abbrechen",
@@ -4385,7 +4383,7 @@ const xt = {
4385
4383
  "sl-si": "Slowenisch",
4386
4384
  "sv-se": "Schwedisch"
4387
4385
  }
4388
- }, Wt = {
4386
+ }, qt = {
4389
4387
  button: {
4390
4388
  back: "Zurück",
4391
4389
  cancel: "Abbrechen",
@@ -4939,7 +4937,7 @@ const xt = {
4939
4937
  "sl-si": "Slowenisch",
4940
4938
  "sv-se": "Schwedisch"
4941
4939
  }
4942
- }, Jt = {
4940
+ }, Yt = {
4943
4941
  button: {
4944
4942
  back: "Πίσω",
4945
4943
  cancel: "Άκυρο",
@@ -5493,7 +5491,7 @@ const xt = {
5493
5491
  "sl-si": "Σλοβενικά",
5494
5492
  "sv-se": "Σουηδικά"
5495
5493
  }
5496
- }, Zt = {
5494
+ }, _t = {
5497
5495
  button: {
5498
5496
  back: "Πίσω",
5499
5497
  cancel: "Άκυρο",
@@ -6047,7 +6045,7 @@ const xt = {
6047
6045
  "sl-si": "Σλοβενικά",
6048
6046
  "sv-se": "Σουηδικά"
6049
6047
  }
6050
- }, qt = {
6048
+ }, Qt = {
6051
6049
  button: {
6052
6050
  back: "Back",
6053
6051
  cancel: "Cancel",
@@ -6601,7 +6599,7 @@ const xt = {
6601
6599
  11: "November",
6602
6600
  12: "December"
6603
6601
  }
6604
- }, Yt = {
6602
+ }, Xt = {
6605
6603
  button: {
6606
6604
  back: "Back",
6607
6605
  cancel: "Cancel",
@@ -7155,7 +7153,7 @@ const xt = {
7155
7153
  "sl-si": "Slovenian",
7156
7154
  "sv-se": "Swedish"
7157
7155
  }
7158
- }, _t = {
7156
+ }, $t = {
7159
7157
  button: {
7160
7158
  back: "Atrás",
7161
7159
  cancel: "Cancelar",
@@ -7709,7 +7707,7 @@ const xt = {
7709
7707
  11: "Noviembre",
7710
7708
  12: "Diciembre"
7711
7709
  }
7712
- }, Qt = {
7710
+ }, er = {
7713
7711
  button: {
7714
7712
  back: "Tagasi",
7715
7713
  cancel: "Tühista",
@@ -8263,7 +8261,7 @@ const xt = {
8263
8261
  "sl-si": "Sloveenia",
8264
8262
  "sv-se": "Rootsi Keel"
8265
8263
  }
8266
- }, Xt = {
8264
+ }, ar = {
8267
8265
  button: {
8268
8266
  back: "Takaisin",
8269
8267
  cancel: "Peruuta",
@@ -8817,7 +8815,7 @@ const xt = {
8817
8815
  "sl-si": "Slovenia",
8818
8816
  "sv-se": "Ruotsi"
8819
8817
  }
8820
- }, $t = {
8818
+ }, ir = {
8821
8819
  button: {
8822
8820
  back: "Retour",
8823
8821
  cancel: "Annuler",
@@ -9371,7 +9369,7 @@ const xt = {
9371
9369
  11: "Novembre",
9372
9370
  12: "Décembre"
9373
9371
  }
9374
- }, er = {
9372
+ }, nr = {
9375
9373
  button: {
9376
9374
  back: "Retour",
9377
9375
  cancel: "Annuler",
@@ -9925,7 +9923,7 @@ const xt = {
9925
9923
  "sl-si": "Slovène",
9926
9924
  "sv-se": "Suédois"
9927
9925
  }
9928
- }, ar = {
9926
+ }, tr = {
9929
9927
  button: {
9930
9928
  back: "Siar",
9931
9929
  cancel: "Cealaigh",
@@ -10479,7 +10477,7 @@ const xt = {
10479
10477
  "sl-si": "Slóivéinis",
10480
10478
  "sv-se": "Sualainnis"
10481
10479
  }
10482
- }, ir = {
10480
+ }, rr = {
10483
10481
  button: {
10484
10482
  back: "Natrag",
10485
10483
  cancel: "Odustani",
@@ -11033,7 +11031,7 @@ const xt = {
11033
11031
  "sl-si": "Slovenski",
11034
11032
  "sv-se": "Švedski"
11035
11033
  }
11036
- }, nr = {
11034
+ }, or = {
11037
11035
  button: {
11038
11036
  back: "Vissza",
11039
11037
  cancel: "Mégse",
@@ -11587,7 +11585,7 @@ const xt = {
11587
11585
  "sl-si": "Szlovén",
11588
11586
  "sv-se": "Svéd"
11589
11587
  }
11590
- }, tr = {
11588
+ }, sr = {
11591
11589
  button: {
11592
11590
  back: "Indietro",
11593
11591
  cancel: "Annulla",
@@ -12141,7 +12139,7 @@ const xt = {
12141
12139
  "sl-si": "Sloveno",
12142
12140
  "sv-se": "Svedese"
12143
12141
  }
12144
- }, rr = {
12142
+ }, lr = {
12145
12143
  button: {
12146
12144
  back: "Atgal",
12147
12145
  cancel: "Atšaukti",
@@ -12695,7 +12693,7 @@ const xt = {
12695
12693
  "sl-si": "Slovėnų",
12696
12694
  "sv-se": "Švedų"
12697
12695
  }
12698
- }, or = {
12696
+ }, dr = {
12699
12697
  button: {
12700
12698
  back: "Aizmugure",
12701
12699
  cancel: "Atcelt",
@@ -13249,7 +13247,7 @@ const xt = {
13249
13247
  "sl-si": "Slovēņu",
13250
13248
  "sv-se": "Zviedru"
13251
13249
  }
13252
- }, sr = {
13250
+ }, ur = {
13253
13251
  button: {
13254
13252
  back: "Lura",
13255
13253
  cancel: "Ikkanċella",
@@ -13803,7 +13801,7 @@ const xt = {
13803
13801
  "sl-si": "Sloven",
13804
13802
  "sv-se": "Svediż"
13805
13803
  }
13806
- }, lr = {
13804
+ }, cr = {
13807
13805
  button: {
13808
13806
  back: "Terug",
13809
13807
  cancel: "Annuleren",
@@ -14357,7 +14355,7 @@ const xt = {
14357
14355
  "sl-si": "Sloveens",
14358
14356
  "sv-se": "Zweeds"
14359
14357
  }
14360
- }, dr = {
14358
+ }, mr = {
14361
14359
  button: {
14362
14360
  back: "Terug",
14363
14361
  cancel: "Annuleren",
@@ -14911,7 +14909,7 @@ const xt = {
14911
14909
  11: "November",
14912
14910
  12: "December"
14913
14911
  }
14914
- }, ur = {
14912
+ }, gr = {
14915
14913
  button: {
14916
14914
  back: "Tilbake",
14917
14915
  cancel: "Avbryt",
@@ -15465,7 +15463,7 @@ const xt = {
15465
15463
  "sl-si": "Slovensk",
15466
15464
  "sv-se": "Svensk"
15467
15465
  }
15468
- }, cr = {
15466
+ }, kr = {
15469
15467
  button: {
15470
15468
  back: "Wstecz",
15471
15469
  cancel: "Anuluj",
@@ -16019,7 +16017,7 @@ const xt = {
16019
16017
  "sl-si": "Słoweński",
16020
16018
  "sv-se": "Szwedzki"
16021
16019
  }
16022
- }, mr = {
16020
+ }, hr = {
16023
16021
  button: {
16024
16022
  back: "Voltar",
16025
16023
  cancel: "Cancelar",
@@ -16573,7 +16571,7 @@ const xt = {
16573
16571
  11: "Novembro",
16574
16572
  12: "Dezembro"
16575
16573
  }
16576
- }, gr = {
16574
+ }, vr = {
16577
16575
  button: {
16578
16576
  back: "Înapoi",
16579
16577
  cancel: "Anulați",
@@ -17127,7 +17125,7 @@ const xt = {
17127
17125
  "sl-si": "Slovenă",
17128
17126
  "sv-se": "Suedez"
17129
17127
  }
17130
- }, kr = {
17128
+ }, fr = {
17131
17129
  button: {
17132
17130
  back: "Späť",
17133
17131
  cancel: "Zrušiť",
@@ -17681,7 +17679,7 @@ const xt = {
17681
17679
  "sl-si": "Slovensky",
17682
17680
  "sv-se": "Švédsky"
17683
17681
  }
17684
- }, hr = {
17682
+ }, pr = {
17685
17683
  button: {
17686
17684
  back: "Nazaj",
17687
17685
  cancel: "Prekliči",
@@ -18235,7 +18233,7 @@ const xt = {
18235
18233
  "sl-si": "Slovenščina",
18236
18234
  "sv-se": "Švedščina"
18237
18235
  }
18238
- }, vr = {
18236
+ }, Ar = {
18239
18237
  button: {
18240
18238
  back: "Tillbaka",
18241
18239
  cancel: "Avbryt",
@@ -18789,53 +18787,53 @@ const xt = {
18789
18787
  11: "November",
18790
18788
  12: "December"
18791
18789
  }
18792
- }, Qa = {
18793
- "bg-bg": xt,
18794
- "cs-cz": Ut,
18795
- "da-dk": Kt,
18796
- "de-at": Vt,
18797
- "de-de": Wt,
18798
- "el-gr": Zt,
18799
- "el-cy": Jt,
18800
- "en-gb": qt,
18801
- "en-us": Yt,
18802
- "es-es": _t,
18803
- "et-ee": Qt,
18804
- "fi-fi": Xt,
18805
- "fr-fr": $t,
18806
- "fr-lu": er,
18807
- "ga-ie": ar,
18808
- "hr-hr": ir,
18809
- "hu-hu": nr,
18810
- "it-it": tr,
18811
- "lt-lt": rr,
18812
- "lv-lv": or,
18813
- "mt-mt": sr,
18814
- "nl-be": lr,
18815
- "nl-nl": dr,
18816
- "no-no": ur,
18817
- "pl-pl": cr,
18818
- "pt-pt": mr,
18819
- "ro-ro": gr,
18820
- "sk-sk": kr,
18821
- "sl-si": hr,
18822
- "sv-se": vr
18790
+ }, _a = {
18791
+ "bg-bg": Vt,
18792
+ "cs-cz": Wt,
18793
+ "da-dk": Jt,
18794
+ "de-at": Zt,
18795
+ "de-de": qt,
18796
+ "el-gr": _t,
18797
+ "el-cy": Yt,
18798
+ "en-gb": Qt,
18799
+ "en-us": Xt,
18800
+ "es-es": $t,
18801
+ "et-ee": er,
18802
+ "fi-fi": ar,
18803
+ "fr-fr": ir,
18804
+ "fr-lu": nr,
18805
+ "ga-ie": tr,
18806
+ "hr-hr": rr,
18807
+ "hu-hu": or,
18808
+ "it-it": sr,
18809
+ "lt-lt": lr,
18810
+ "lv-lv": dr,
18811
+ "mt-mt": ur,
18812
+ "nl-be": cr,
18813
+ "nl-nl": mr,
18814
+ "no-no": gr,
18815
+ "pl-pl": kr,
18816
+ "pt-pt": hr,
18817
+ "ro-ro": vr,
18818
+ "sk-sk": fr,
18819
+ "sl-si": pr,
18820
+ "sv-se": Ar
18823
18821
  }, Mn = (e, a) => {
18824
18822
  const n = Z(a).prompt[e];
18825
18823
  return n || (console.log(
18826
18824
  'Missing prompt for key: "' + e + '" in locale: "' + a + '"'
18827
18825
  ), e);
18828
- }, fr = (e, a) => {
18826
+ }, br = (e, a) => {
18829
18827
  const n = Z(a).subPrompt[e];
18830
18828
  return n || (console.log(
18831
18829
  'Missing subPrompt for key: "' + e + '" in locale: "' + a + '"'
18832
18830
  ), e);
18833
- }, pr = (e, a) => {
18831
+ }, Cr = (e, a) => {
18834
18832
  const n = Z(a).error[e];
18835
18833
  return n || (console.log(
18836
18834
  'Missing error for key: "' + e + '" in locale: "' + a + '"'
18837
18835
  ), e);
18838
- }, Ar = (e, a) => {
18836
+ }, Nr = (e, a) => {
18839
18837
  const n = Z(a).hint[e];
18840
18838
  return n || (console.log(
18841
18839
  'Missing hint for key: "' + e + '" in locale: "' + a + '"'
@@ -18845,17 +18843,17 @@ const xt = {
18845
18843
  return n || (console.log(
18846
18844
  'Missing text for key: "' + e + '" in locale: "' + a + '"'
18847
18845
  ), e);
18848
- }, br = (e, a) => {
18846
+ }, Sr = (e, a) => {
18849
18847
  const n = Z(a).title[e];
18850
18848
  return n || (console.log(
18851
18849
  'Missing title for key: "' + e + '" in locale: "' + a + '"'
18852
18850
  ), e);
18853
- }, Cr = (e, a) => {
18851
+ }, Ir = (e, a) => {
18854
18852
  const n = Z(a).subTitle[e];
18855
18853
  return n || (console.log(
18856
18854
  'Missing subTitle for key: "' + e + '" in locale: "' + a + '"'
18857
18855
  ), e);
18858
- }, Nr = (e, a) => {
18856
+ }, Tr = (e, a) => {
18859
18857
  const n = Z(a).button[e];
18860
18858
  return n || (console.log(
18861
18859
  'Missing button for key: "' + e + '" in locale: "' + a + '"'
@@ -18867,39 +18865,39 @@ const xt = {
18867
18865
  return n || (console.log(
18868
18866
  'Missing option for key: "' + e + '" in locale: "' + a + '"'
18869
18867
  ), e);
18870
- }, Sr = (e, a) => {
18868
+ }, Mr = (e, a) => {
18871
18869
  if (!e)
18872
18870
  return "";
18873
18871
  const n = Z(a).notification[e];
18874
18872
  return n || (console.log(
18875
18873
  'Missing notification for key: "' + e + '" in locale: "' + a + '"'
18876
18874
  ), e);
18877
- }, Ir = (e, a) => {
18875
+ }, yr = (e, a) => {
18878
18876
  const n = Z(a).country[e];
18879
18877
  return n || (console.log(
18880
18878
  'Missing country for key: "' + e + '" in locale: "' + a + '"'
18881
18879
  ), e);
18882
- }, Tr = (e, a) => {
18880
+ }, jr = (e, a) => {
18883
18881
  const n = Z(a).usState[e];
18884
18882
  return n || (console.log(
18885
18883
  'Missing usState for key: "' + e + '" in locale: "' + a + '"'
18886
18884
  ), e);
18887
- }, Mr = (e, a) => {
18885
+ }, Or = (e, a) => {
18888
18886
  const n = Z(a).caProvince[e];
18889
18887
  return n || (console.log(
18890
18888
  'Missing caProvince for key: "' + e + '" in locale: "' + a + '"'
18891
18889
  ), e);
18892
- }, yr = (e, a) => {
18890
+ }, Br = (e, a) => {
18893
18891
  const n = Z(a).month[e];
18894
18892
  return n || (console.log(
18895
18893
  'Missing month for key: "' + e + '" in locale: "' + a + '"'
18896
18894
  ), e);
18897
- }, jr = (e, a) => {
18895
+ }, zr = (e, a) => {
18898
18896
  const n = Z(a).locale[e];
18899
18897
  return n || (console.log(
18900
18898
  'Missing locale for key: "' + e + '" in locale: "' + a + '"'
18901
18899
  ), e);
18902
- }, Z = (e = "en-us") => Qa[e] ? Qa[e] : (console.log(`Locale '${e}' not found. Using en-us`), Qa["en-us"]), Dn = () => {
18900
+ }, Z = (e = "en-us") => _a[e] ? _a[e] : (console.log(`Locale '${e}' not found. Using en-us`), _a["en-us"]), Hn = () => {
18903
18901
  const e = Vn(void 0);
18904
18902
  return [() => {
18905
18903
  const n = Wn(e);
@@ -18907,20 +18905,20 @@ const xt = {
18907
18905
  throw new Error("useCtx must be inside a Provider with a value");
18908
18906
  return n;
18909
18907
  }, e.Provider];
18910
- }, [X, Or] = Dn(), Br = ({
18908
+ }, [X, Er] = Hn(), Rr = ({
18911
18909
  data: e,
18912
18910
  language: a = "en-us",
18913
18911
  onSubmit: n,
18914
18912
  step: r = "AccountHolderClassification",
18915
18913
  taxForms: s = ["DAC7"]
18916
18914
  }) => {
18917
- const [o, u] = K(a), [l, c] = K(s), [m, k] = K(
18918
- Sn(e, l)
18919
- ), [v, b] = K([r]), [p, C] = K(
18915
+ const [o, u] = U(a), [d, l] = U(s), [m, k] = U(
18916
+ Sn(e, d)
18917
+ ), [v, b] = U([r]), [p, C] = U(
18920
18918
  void 0
18921
- ), { isW9: T, isW8: E, isW8Ben: y, isW8BenE: R, isDac7: _ } = la(
18919
+ ), { isW9: I, isW8: M, isW8Ben: G, isW8BenE: E, isDac7: _ } = da(
18922
18920
  m,
18923
- l
18921
+ d
18924
18922
  ), L = v[v.length - 1], ie = {
18925
18923
  regardedOwnerUsPerson: void 0,
18926
18924
  regardedOwnerUsAccountType: void 0,
@@ -18931,29 +18929,24 @@ const xt = {
18931
18929
  regardedOwnerForeignTrustClassification: void 0,
18932
18930
  regardedOwnerForeignOtherClassification: void 0
18933
18931
  }, ue = (B) => {
18934
- k(B);
18935
- const x = Lt(B);
18936
- n({
18937
- ...x,
18938
- signature_timestamp: (/* @__PURE__ */ new Date()).toISOString()
18939
- });
18940
- }, be = Fa(
18932
+ k(B), n(dt(B));
18933
+ }, be = xa(
18941
18934
  (B) => {
18942
- k(Sn(B, l)), C(void 0), b([r]);
18935
+ k(Sn(B, d)), C(void 0), b([r]);
18943
18936
  },
18944
- [l, r]
18937
+ [d, r]
18945
18938
  ), Ce = (B) => {
18946
- const { accountHolderIsDisregarded: x, hasNoTaxId: ce } = la(B), se = l.includes("DAC7");
18947
- return L === "AccountHolderClassification" ? se ? "AccountHolderContact" : x ? "RegardedOwnerClassification" : "AccountHolderContact" : L === "AccountHolderContact" ? se && B.accountHolderIsEuResident === "no" ? "Summary" : "AccountHolderTax" : L === "AccountHolderTax" ? ce ? "AccountHolderTaxClarification" : "Summary" : L === "RegardedOwnerClassification" ? "RegardedOwnerContact" : L === "RegardedOwnerContact" ? "RegardedOwnerTax" : "Summary";
18939
+ const { accountHolderIsDisregarded: V, hasNoTaxId: ce } = da(B), se = d.includes("DAC7");
18940
+ return L === "AccountHolderClassification" ? se ? "AccountHolderContact" : V ? "RegardedOwnerClassification" : "AccountHolderContact" : L === "AccountHolderContact" ? se && B.accountHolderIsEuResident === "no" ? "Summary" : "AccountHolderTax" : L === "AccountHolderTax" ? ce ? "AccountHolderTaxClarification" : "Summary" : L === "RegardedOwnerClassification" ? "RegardedOwnerContact" : L === "RegardedOwnerContact" ? "RegardedOwnerTax" : "Summary";
18948
18941
  }, te = (B) => {
18949
- const x = Ce(B);
18950
- x === "Summary" && C(void 0), oe(x);
18942
+ const V = Ce(B);
18943
+ V === "Summary" && C(void 0), oe(V);
18951
18944
  }, re = (B) => {
18952
- const x = {
18945
+ const V = {
18953
18946
  ...m,
18954
18947
  ...B
18955
18948
  };
18956
- k(x), p === void 0 ? te(x) : b(["Summary"]);
18949
+ k(V), p === void 0 ? te(V) : b(["Summary"]);
18957
18950
  }, Ne = (B) => {
18958
18951
  m.accountHolderUsAccountType !== B.accountHolderUsAccountType || m.accountHolderForeignAccountType !== B.accountHolderForeignAccountType ? re({
18959
18952
  ...B,
@@ -18961,7 +18954,7 @@ const xt = {
18961
18954
  }) : re(B);
18962
18955
  }, oe = (B) => {
18963
18956
  b([...v, B]);
18964
- }, V = (B) => {
18957
+ }, K = (B) => {
18965
18958
  b([B]), C(m);
18966
18959
  }, q = p !== void 0 ? () => {
18967
18960
  k(p), C(void 0), b(["Summary"]);
@@ -18969,16 +18962,16 @@ const xt = {
18969
18962
  b(v.slice(0, v.length - 1));
18970
18963
  } : void 0;
18971
18964
  return {
18972
- isW9: T,
18973
- isW8: E,
18974
- isW8Ben: y,
18975
- isW8BenE: R,
18965
+ isW9: I,
18966
+ isW8: M,
18967
+ isW8Ben: G,
18968
+ isW8BenE: E,
18976
18969
  isDac7: _,
18977
18970
  onPersistAccountHolderData: Ne,
18978
18971
  onPersistCollectedData: re,
18979
18972
  onSubmitTaxDocumentation: ue,
18980
18973
  onResetTaxDocumentation: be,
18981
- editTo: V,
18974
+ editTo: K,
18982
18975
  onCancel: q,
18983
18976
  goTo: oe,
18984
18977
  goBack: $,
@@ -18987,10 +18980,10 @@ const xt = {
18987
18980
  data: m,
18988
18981
  setLanguage: u,
18989
18982
  language: o,
18990
- supportedForms: l,
18991
- setSupportedForms: c
18983
+ supportedForms: d,
18984
+ setSupportedForms: l
18992
18985
  };
18993
- }, zr = ({
18986
+ }, Pr = ({
18994
18987
  data: e = {},
18995
18988
  onSubmit: a,
18996
18989
  language: n,
@@ -18998,9 +18991,9 @@ const xt = {
18998
18991
  step: s,
18999
18992
  children: o
19000
18993
  }) => /* @__PURE__ */ i.jsx(
19001
- Or,
18994
+ Er,
19002
18995
  {
19003
- value: Br({
18996
+ value: Rr({
19004
18997
  data: e,
19005
18998
  onSubmit: a,
19006
18999
  language: n,
@@ -19009,73 +19002,73 @@ const xt = {
19009
19002
  }),
19010
19003
  children: o
19011
19004
  }
19012
- ), [O, Er] = Dn(), Rr = (e, a) => Object.keys(e).reduce(
19005
+ ), [O, wr] = Hn(), Gr = (e, a) => Object.keys(e).reduce(
19013
19006
  (n, r) => {
19014
19007
  var s;
19015
19008
  if (a.has(r)) {
19016
- const o = (s = Xa[r]) == null ? void 0 : s.call(Xa, e);
19009
+ const o = (s = Qa[r]) == null ? void 0 : s.call(Qa, e);
19017
19010
  o && (n[r] = o);
19018
19011
  }
19019
19012
  return n;
19020
19013
  },
19021
19014
  {}
19022
- ), Xa = {
19015
+ ), Qa = {
19023
19016
  accountHolderVatIdentificationNumber: (e) => {
19024
19017
  const a = e.accountHolderVatIdentificationNumber;
19025
19018
  if (!z(a) && (a.length < 5 || a.length > 20))
19026
19019
  return "vatUnexpectedFormat";
19027
19020
  }
19028
- }, Pr = () => {
19021
+ }, Lr = () => {
19029
19022
  const {
19030
19023
  language: e,
19031
19024
  data: a,
19032
19025
  supportedForms: n
19033
- } = X(), [r, s] = K(a), [o, u] = K(!1), [l, c] = K(/* @__PURE__ */ new Set()), m = J(
19034
- () => Hn(n),
19026
+ } = X(), [r, s] = U(a), [o, u] = U(!1), [d, l] = U(/* @__PURE__ */ new Set()), m = J(
19027
+ () => Ln(n),
19035
19028
  [n]
19036
19029
  ), k = J(
19037
- () => Ot(r, m, n),
19030
+ () => Ft(r, m, n),
19038
19031
  [r, m, n]
19039
19032
  ), v = J(
19040
19033
  () => Object.fromEntries(
19041
- [...l].map((h) => [h, !0])
19034
+ [...d].map((h) => [h, !0])
19042
19035
  ),
19043
- [l]
19036
+ [d]
19044
19037
  ), b = J(
19045
- () => yt(r, v),
19038
+ () => Ht(r, v),
19046
19039
  [r, v]
19047
19040
  ), p = J(
19048
- () => Mt(r, b, v),
19041
+ () => Lt(r, b, v),
19049
19042
  [r, b, v]
19050
19043
  ), C = J(
19051
- () => jt(r, k),
19044
+ () => Dt(r, k),
19052
19045
  [r, k]
19053
- ), T = J(
19054
- () => Rr(r, l),
19055
- [r, l]
19046
+ ), I = J(
19047
+ () => Gr(r, d),
19048
+ [r, d]
19056
19049
  );
19057
19050
  Q(() => {
19058
19051
  s(a);
19059
19052
  }, [a]);
19060
- const E = Fa(
19061
- (h, G) => {
19062
- if (G !== r[h]) {
19053
+ const M = xa(
19054
+ (h, w) => {
19055
+ if (w !== r[h]) {
19063
19056
  const le = {
19064
- [h]: G
19057
+ [h]: w
19065
19058
  };
19066
19059
  s((me) => ({ ...me, ...le }));
19067
19060
  }
19068
19061
  },
19069
19062
  [r]
19070
- ), y = () => {
19063
+ ), G = () => {
19071
19064
  u(!0);
19072
- }, R = () => {
19065
+ }, E = () => {
19073
19066
  u(!1);
19074
19067
  }, _ = Object.keys(p).length === 0, L = (h) => {
19075
- const G = Xn(r);
19076
- return G[h] ? G[h] : h;
19068
+ const w = $n(r);
19069
+ return w[h] ? w[h] : h;
19077
19070
  }, ie = (h) => {
19078
- const G = {
19071
+ const w = {
19079
19072
  accountHolderUsSmllcElection: "smllcElection",
19080
19073
  iConfirmIncomeIsNonUs: "iConfirmIncomeIsNonUs",
19081
19074
  accountHolderIsEuResident: "isEuResident",
@@ -19084,30 +19077,30 @@ const xt = {
19084
19077
  accountHolderVatIdentificationNumber: "vatIdentificationNumber",
19085
19078
  accountHolderCityOfBirth: "placeOfBirth"
19086
19079
  };
19087
- return G[h] ? G[h] : h;
19080
+ return w[h] ? w[h] : h;
19088
19081
  }, ue = (h) => {
19089
- const G = Yn();
19090
- return G[h] ? G[h] : h;
19091
- }, be = (h) => Ar(ue(h), e), Ce = (h) => ei(h, e), te = (h) => br(h, e), re = (h) => Cr(h, e), Ne = (h) => pr(h, e), oe = (h) => jr(h, e), V = (h) => Nr(h, e), q = (h) => Mn(L(h), e), $ = (h) => Sr(h, e), B = (h) => Mn(L(h), e) + (b[h] ? "*" : ""), x = (h) => fr(ie(h), e), ce = Fa(
19082
+ const w = _n();
19083
+ return w[h] ? w[h] : h;
19084
+ }, be = (h) => Nr(ue(h), e), Ce = (h) => ei(h, e), te = (h) => Sr(h, e), re = (h) => Ir(h, e), Ne = (h) => Cr(h, e), oe = (h) => zr(h, e), K = (h) => Tr(h, e), q = (h) => Mn(L(h), e), $ = (h) => Mr(h, e), B = (h) => Mn(L(h), e) + (b[h] ? "*" : ""), V = (h) => br(ie(h), e), ce = xa(
19092
19085
  (h) => {
19093
19086
  if (h)
19094
19087
  return yn(h, e) ? yn(h, e) : h;
19095
19088
  },
19096
19089
  [e]
19097
- ), se = Fa(
19098
- (h) => h ? Ir(h, e) : "",
19090
+ ), se = xa(
19091
+ (h) => h ? yr(h, e) : "",
19099
19092
  [e]
19100
19093
  );
19101
19094
  return {
19102
19095
  fields: r,
19103
19096
  setFields: s,
19104
- setValue: E,
19097
+ setValue: M,
19105
19098
  isErrorFree: _,
19106
19099
  showErrors: o,
19107
- exposeErrors: y,
19108
- hideErrors: R,
19109
- getLocalButton: V,
19110
- getLocalCaProvince: (h) => h ? Mr(h, e) : "",
19100
+ exposeErrors: G,
19101
+ hideErrors: E,
19102
+ getLocalButton: K,
19103
+ getLocalCaProvince: (h) => h ? Or(h, e) : "",
19111
19104
  getLocalCountry: se,
19112
19105
  getLocalError: Ne,
19113
19106
  getLocalHint: be,
@@ -19117,15 +19110,15 @@ const xt = {
19117
19110
  getLocalOption: ce,
19118
19111
  getLocalPrompt: q,
19119
19112
  getPromptKey: L,
19120
- getLocalSubPrompt: x,
19113
+ getLocalSubPrompt: V,
19121
19114
  getSubPromptKey: ie,
19122
19115
  getLocalText: Ce,
19123
19116
  getLocalTitle: te,
19124
19117
  getLocalSubTitle: re,
19125
- getLocalUsState: (h) => h ? Tr(h, e) : "",
19126
- getLocalMonth: (h) => h ? yr(h, e) : "",
19118
+ getLocalUsState: (h) => h ? jr(h, e) : "",
19119
+ getLocalMonth: (h) => h ? Br(h, e) : "",
19127
19120
  getRequiredLocalPrompt: B,
19128
- notifiedFields: T,
19121
+ notifiedFields: I,
19129
19122
  // (must be visible)
19130
19123
  invalidFields: p,
19131
19124
  // (must be visible)
@@ -19136,13 +19129,13 @@ const xt = {
19136
19129
  visibleFields: k,
19137
19130
  // (must be supported)
19138
19131
  hideField: (h) => {
19139
- l.has(h) && c((G) => new Set([...G].filter((le) => le !== h))), E(h, void 0);
19132
+ d.has(h) && l((w) => new Set([...w].filter((le) => le !== h))), M(h, void 0);
19140
19133
  },
19141
19134
  showField: (h) => {
19142
- l.has(h) || c((G) => /* @__PURE__ */ new Set([...G, h]));
19135
+ d.has(h) || l((w) => /* @__PURE__ */ new Set([...w, h]));
19143
19136
  }
19144
19137
  };
19145
- }, fe = ({ children: e }) => /* @__PURE__ */ i.jsx(Er, { value: Pr(), children: e }), Da = ({ address: e, className: a }) => {
19138
+ }, fe = ({ children: e }) => /* @__PURE__ */ i.jsx(wr, { value: Lr(), children: e }), Fa = ({ address: e, className: a }) => {
19146
19139
  const { getLocalCountry: n, getLocalUsState: r, getLocalCaProvince: s } = O(), o = e.country === "US" ? r(e.state) : e.country === "CA" ? s(e.state) : e.state;
19147
19140
  return /* @__PURE__ */ i.jsxs("div", { className: de(a, "address"), children: [
19148
19141
  /* @__PURE__ */ i.jsx("div", { children: e.street }),
@@ -19154,7 +19147,7 @@ const xt = {
19154
19147
  ] }),
19155
19148
  e.country && /* @__PURE__ */ i.jsx("div", { children: n(e.country) })
19156
19149
  ] });
19157
- }, Me = ({
19150
+ }, Ee = ({
19158
19151
  name: e,
19159
19152
  hint: a
19160
19153
  }) => {
@@ -19163,7 +19156,7 @@ const xt = {
19163
19156
  }, pe = ({ children: e, title: a, actions: n }) => /* @__PURE__ */ i.jsxs(
19164
19157
  "form",
19165
19158
  {
19166
- className: de("taxbit-page", `taxbit-form-${En(a)}`),
19159
+ className: de("taxbit-page", `taxbit-form-${zn(a)}`),
19167
19160
  onSubmit: () => !1,
19168
19161
  children: [
19169
19162
  (a || n) && /* @__PURE__ */ i.jsxs("header", { className: "taxbit-page-header", children: [
@@ -19173,10 +19166,10 @@ const xt = {
19173
19166
  e
19174
19167
  ]
19175
19168
  }
19176
- ), ye = ({
19169
+ ), Me = ({
19177
19170
  children: e,
19178
19171
  className: a
19179
- }) => /* @__PURE__ */ i.jsx("div", { className: de(a, "taxbit-input-status"), children: e }), wr = ({ name: e }) => {
19172
+ }) => /* @__PURE__ */ i.jsx("div", { className: de(a, "taxbit-input-status"), children: e }), Hr = ({ name: e }) => {
19180
19173
  const { notifiedFields: a, getLocalNotification: n } = O(), r = a[e] ? n(a[e]) : "";
19181
19174
  return r ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-notification", children: r }) : null;
19182
19175
  }, Ie = ({
@@ -19188,14 +19181,14 @@ const xt = {
19188
19181
  name: o,
19189
19182
  className: u
19190
19183
  }) => {
19191
- const { invalidFields: l, showErrors: c, getLocalButton: m } = O();
19184
+ const { invalidFields: d, showErrors: l, getLocalButton: m } = O();
19192
19185
  return /* @__PURE__ */ i.jsxs(
19193
19186
  "div",
19194
19187
  {
19195
19188
  className: de(
19196
19189
  "taxbit-row",
19197
- o && `taxbit-question-${En(o)}`,
19198
- o && c && l[o] && "taxbit-error",
19190
+ o && `taxbit-question-${zn(o)}`,
19191
+ o && l && d[o] && "taxbit-error",
19199
19192
  u
19200
19193
  ),
19201
19194
  children: [
@@ -19232,11 +19225,11 @@ const xt = {
19232
19225
  a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-section-sub-title", children: a })
19233
19226
  ] }),
19234
19227
  r
19235
- ] }) : r, Ee = [{ value: "yes" }, { value: "no" }], Gr = () => {
19228
+ ] }) : r, ze = [{ value: "yes" }, { value: "no" }], Dr = () => {
19236
19229
  const { language: e, setLanguage: a } = X(), { getLocalLocale: n } = O(), r = (o) => {
19237
19230
  const u = o.target.value;
19238
19231
  a(u);
19239
- }, s = mt.map((o) => ({
19232
+ }, s = St.map((o) => ({
19240
19233
  ...o,
19241
19234
  label: n(o.value)
19242
19235
  })).sort((o, u) => o.label.localeCompare(u.label));
@@ -19256,25 +19249,25 @@ const xt = {
19256
19249
  onSubmit: r,
19257
19250
  onReset: s
19258
19251
  }) => {
19259
- const { isErrorFree: o, exposeErrors: u, getLocalButton: l } = O(), c = o ? n : u, m = o ? r : u;
19252
+ const { isErrorFree: o, exposeErrors: u, getLocalButton: d } = O(), l = o ? n : u, m = o ? r : u;
19260
19253
  return /* @__PURE__ */ i.jsxs("footer", { className: "taxbit-step-actions", children: [
19261
19254
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-secondary-actions", children: [
19262
- a && /* @__PURE__ */ i.jsx("button", { onClick: a, tabIndex: -1, type: "button", children: l("cancel") }),
19263
- e && /* @__PURE__ */ i.jsx("button", { onClick: e, tabIndex: -1, type: "button", children: l("back") }),
19264
- s && /* @__PURE__ */ i.jsx("button", { onClick: s, type: "button", children: l("reset") })
19255
+ a && /* @__PURE__ */ i.jsx("button", { onClick: a, tabIndex: -1, type: "button", children: d("cancel") }),
19256
+ e && /* @__PURE__ */ i.jsx("button", { onClick: e, tabIndex: -1, type: "button", children: d("back") }),
19257
+ s && /* @__PURE__ */ i.jsx("button", { onClick: s, type: "button", children: d("reset") })
19265
19258
  ] }),
19266
19259
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-primary-actions", children: [
19267
- n && /* @__PURE__ */ i.jsx("button", { onClick: c, type: "button", children: l("next") }),
19268
- r && /* @__PURE__ */ i.jsx("button", { onClick: m, type: "button", children: l("submit") })
19260
+ n && /* @__PURE__ */ i.jsx("button", { onClick: l, type: "button", children: d("next") }),
19261
+ r && /* @__PURE__ */ i.jsx("button", { onClick: m, type: "button", children: d("submit") })
19269
19262
  ] })
19270
19263
  ] });
19271
- }, Lr = ({ label: e, subLabel: a, name: n, onClick: r }) => {
19272
- const { fields: s, setValue: o, getLocalPrompt: u, getLocalSubPrompt: l } = O(), c = (v) => {
19264
+ }, Fr = ({ label: e, subLabel: a, name: n, onClick: r }) => {
19265
+ const { fields: s, setValue: o, getLocalPrompt: u, getLocalSubPrompt: d } = O(), l = (v) => {
19273
19266
  r && r(v), o(n, v);
19274
19267
  }, m = s[n], k = (v) => {
19275
- c(v.target.checked ? "yes" : void 0);
19268
+ l(v.target.checked ? "yes" : void 0);
19276
19269
  };
19277
- return /* @__PURE__ */ i.jsxs(ye, { children: [
19270
+ return /* @__PURE__ */ i.jsxs(Me, { children: [
19278
19271
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-checkBox-label", children: [
19279
19272
  /* @__PURE__ */ i.jsx(
19280
19273
  "input",
@@ -19289,54 +19282,54 @@ const xt = {
19289
19282
  ),
19290
19283
  /* @__PURE__ */ i.jsxs("label", { htmlFor: n, children: [
19291
19284
  e && u(n),
19292
- a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-sub-label", children: l(n) })
19285
+ a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-sub-label", children: d(n) })
19293
19286
  ] })
19294
19287
  ] }),
19295
- /* @__PURE__ */ i.jsx(Me, { name: n })
19288
+ /* @__PURE__ */ i.jsx(Ee, { name: n })
19296
19289
  ] });
19297
- }, Hr = (e) => {
19298
- const { fields: a, setValue: n, getLocalMonth: r } = O(), s = a[e] || "", o = s.split("/")[0] || "", u = s.split("/")[1] || "", l = s.split("/")[2] || "", c = o !== "" ? hn(
19290
+ }, xr = (e) => {
19291
+ const { fields: a, setValue: n, getLocalMonth: r } = O(), s = a[e] || "", o = s.split("/")[0] || "", u = s.split("/")[1] || "", d = s.split("/")[2] || "", l = o !== "" ? hn(
19299
19292
  parseInt(o),
19300
- l !== "" ? parseInt(l) : void 0
19301
- ) : vn.length, m = kt.map((C) => ({
19293
+ d !== "" ? parseInt(d) : void 0
19294
+ ) : vn.length, m = Tt.map((C) => ({
19302
19295
  ...C,
19303
19296
  label: r(C.value)
19304
- })), k = (C, T, E) => {
19305
- if (!T)
19297
+ })), k = (C, I, M) => {
19298
+ if (!I)
19306
19299
  return !0;
19307
- const y = hn(
19308
- parseInt(T),
19309
- ae(E) ? parseInt(E) : void 0
19300
+ const G = hn(
19301
+ parseInt(I),
19302
+ ae(M) ? parseInt(M) : void 0
19310
19303
  );
19311
- return ae(C) && y >= parseInt(C);
19304
+ return ae(C) && G >= parseInt(C);
19312
19305
  };
19313
19306
  return {
19314
19307
  mm: o,
19315
19308
  dd: u,
19316
- yyyy: l,
19309
+ yyyy: d,
19317
19310
  handleDayChange: (C) => {
19318
- const T = C.target.value;
19319
- n(e, `${o || ""}/${T}/${l || ""}`);
19311
+ const I = C.target.value;
19312
+ n(e, `${o || ""}/${I}/${d || ""}`);
19320
19313
  },
19321
19314
  handleMonthChange: (C) => {
19322
- const T = C.target.value;
19315
+ const I = C.target.value;
19323
19316
  n(
19324
19317
  e,
19325
- `${T}/${k(u, T, l) ? u : ""}/${l || ""}`
19318
+ `${I}/${k(u, I, d) ? u : ""}/${d || ""}`
19326
19319
  );
19327
19320
  },
19328
19321
  handleYearChange: (C) => {
19329
- const T = C.target.value;
19322
+ const I = C.target.value;
19330
19323
  n(
19331
19324
  e,
19332
- `${o || ""}/${k(u, o, T) ? u : ""}/${T}`
19325
+ `${o || ""}/${k(u, o, I) ? u : ""}/${I}`
19333
19326
  );
19334
19327
  },
19335
- dayOptions: vn.slice(0, c),
19336
- birthYearOptions: It,
19328
+ dayOptions: vn.slice(0, l),
19329
+ birthYearOptions: wt,
19337
19330
  monthOptions: m
19338
19331
  };
19339
- }, Dr = ({
19332
+ }, Ur = ({
19340
19333
  name: e,
19341
19334
  className: a,
19342
19335
  hint: n
@@ -19345,19 +19338,19 @@ const xt = {
19345
19338
  dd: s,
19346
19339
  mm: o,
19347
19340
  yyyy: u,
19348
- handleDayChange: l,
19349
- handleMonthChange: c,
19341
+ handleDayChange: d,
19342
+ handleMonthChange: l,
19350
19343
  handleYearChange: m,
19351
19344
  dayOptions: k,
19352
19345
  monthOptions: v,
19353
19346
  birthYearOptions: b
19354
- } = Hr(e);
19355
- return /* @__PURE__ */ i.jsxs(ye, { className: a, children: [
19347
+ } = xr(e);
19348
+ return /* @__PURE__ */ i.jsxs(Me, { className: a, children: [
19356
19349
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-row-value", children: [
19357
19350
  /* @__PURE__ */ i.jsxs(
19358
19351
  "select",
19359
19352
  {
19360
- onChange: c,
19353
+ onChange: l,
19361
19354
  value: o,
19362
19355
  className: de(
19363
19356
  "taxbit-select",
@@ -19373,7 +19366,7 @@ const xt = {
19373
19366
  /* @__PURE__ */ i.jsxs(
19374
19367
  "select",
19375
19368
  {
19376
- onChange: l,
19369
+ onChange: d,
19377
19370
  value: s,
19378
19371
  className: de(
19379
19372
  "taxbit-select",
@@ -19403,21 +19396,21 @@ const xt = {
19403
19396
  }
19404
19397
  )
19405
19398
  ] }),
19406
- /* @__PURE__ */ i.jsx(Me, { name: e, hint: n })
19399
+ /* @__PURE__ */ i.jsx(Ee, { name: e, hint: n })
19407
19400
  ] });
19408
- }, Fr = ({ name: e, options: a }) => {
19401
+ }, Kr = ({ name: e, options: a }) => {
19409
19402
  const { fields: n, setValue: r, hideErrors: s, getLocalOption: o } = O(), u = (m) => {
19410
19403
  r(e, m), s();
19411
- }, l = n[e], c = (m) => {
19404
+ }, d = n[e], l = (m) => {
19412
19405
  u(m.target.value);
19413
19406
  };
19414
- return /* @__PURE__ */ i.jsxs(ye, { children: [
19407
+ return /* @__PURE__ */ i.jsxs(Me, { children: [
19415
19408
  /* @__PURE__ */ i.jsx("div", { className: "taxbit-radio-buttons", children: a.map((m) => /* @__PURE__ */ i.jsxs(
19416
19409
  "div",
19417
19410
  {
19418
19411
  className: de(
19419
19412
  "taxbit-radio-button",
19420
- m.value === l ? "selected" : !1
19413
+ m.value === d ? "selected" : !1
19421
19414
  ),
19422
19415
  children: [
19423
19416
  /* @__PURE__ */ i.jsx(
@@ -19427,8 +19420,8 @@ const xt = {
19427
19420
  name: e,
19428
19421
  id: `${e}-${m.value}`,
19429
19422
  value: m.value,
19430
- checked: m.value === l,
19431
- onChange: c
19423
+ checked: m.value === d,
19424
+ onChange: l
19432
19425
  }
19433
19426
  ),
19434
19427
  /* @__PURE__ */ i.jsx("label", { htmlFor: `${e}-${m.value}`, children: m.label || o(m.value) })
@@ -19436,35 +19429,35 @@ const xt = {
19436
19429
  },
19437
19430
  m.value
19438
19431
  )) }),
19439
- /* @__PURE__ */ i.jsx(Me, { name: e })
19432
+ /* @__PURE__ */ i.jsx(Ee, { name: e })
19440
19433
  ] });
19441
- }, Fn = ({
19434
+ }, Dn = ({
19442
19435
  name: e,
19443
19436
  options: a,
19444
19437
  addBlank: n = !0,
19445
19438
  className: r,
19446
19439
  onChange: s
19447
19440
  }) => {
19448
- const { fields: o, setValue: u, getLocalOption: l } = O(), c = o[e], m = (k) => {
19441
+ const { fields: o, setValue: u, getLocalOption: d } = O(), l = o[e], m = (k) => {
19449
19442
  s && s(), u(e, k.target.value);
19450
19443
  };
19451
- return /* @__PURE__ */ i.jsxs(ye, { className: r, children: [
19444
+ return /* @__PURE__ */ i.jsxs(Me, { className: r, children: [
19452
19445
  /* @__PURE__ */ i.jsxs(
19453
19446
  "select",
19454
19447
  {
19455
19448
  name: e,
19456
19449
  onChange: m,
19457
- value: c,
19450
+ value: l,
19458
19451
  className: "taxbit-select",
19459
19452
  children: [
19460
19453
  n && /* @__PURE__ */ i.jsx("option", { value: "" }),
19461
- a.map((k) => /* @__PURE__ */ i.jsx("option", { value: k.value, children: "label" in k ? k.label : l(k.value) }, k.value))
19454
+ a.map((k) => /* @__PURE__ */ i.jsx("option", { value: k.value, children: "label" in k ? k.label : d(k.value) }, k.value))
19462
19455
  ]
19463
19456
  }
19464
19457
  ),
19465
- /* @__PURE__ */ i.jsx(Me, { name: e })
19458
+ /* @__PURE__ */ i.jsx(Ee, { name: e })
19466
19459
  ] });
19467
- }, xn = ({
19460
+ }, Fn = ({
19468
19461
  name: e,
19469
19462
  className: a,
19470
19463
  onChange: n,
@@ -19473,11 +19466,11 @@ const xt = {
19473
19466
  disabled: o,
19474
19467
  syncName: u
19475
19468
  }) => {
19476
- const { fields: l, setValue: c } = O(), m = l[e] || "", k = (v) => {
19469
+ const { fields: d, setValue: l } = O(), m = d[e] || "", k = (v) => {
19477
19470
  const b = n ? n(v.target.value) : v.target.value;
19478
- u && (l[u] === l[e] || !l[u]) && c(u, b), c(e, b);
19471
+ u && (d[u] === d[e] || !d[u]) && l(u, b), l(e, b);
19479
19472
  };
19480
- return /* @__PURE__ */ i.jsxs(ye, { className: a, children: [
19473
+ return /* @__PURE__ */ i.jsxs(Me, { className: a, children: [
19481
19474
  /* @__PURE__ */ i.jsx(
19482
19475
  "input",
19483
19476
  {
@@ -19489,14 +19482,14 @@ const xt = {
19489
19482
  disabled: o
19490
19483
  }
19491
19484
  ),
19492
- /* @__PURE__ */ i.jsx(Me, { name: e, hint: r }),
19485
+ /* @__PURE__ */ i.jsx(Ee, { name: e, hint: r }),
19493
19486
  s ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-input-status-footer", children: s }) : null
19494
19487
  ] });
19495
- }, xr = ({ name: e }) => {
19488
+ }, Vr = ({ name: e }) => {
19496
19489
  const { fields: a, setValue: n, getLocalPrompt: r } = O(), s = a[e], o = () => {
19497
19490
  n(e, s === void 0 ? "yes" : void 0);
19498
19491
  };
19499
- return /* @__PURE__ */ i.jsxs(ye, { children: [
19492
+ return /* @__PURE__ */ i.jsxs(Me, { children: [
19500
19493
  /* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx(
19501
19494
  "button",
19502
19495
  {
@@ -19508,10 +19501,10 @@ const xt = {
19508
19501
  children: r(e)
19509
19502
  }
19510
19503
  ) }),
19511
- /* @__PURE__ */ i.jsx(Me, { name: e })
19504
+ /* @__PURE__ */ i.jsx(Ee, { name: e })
19512
19505
  ] });
19513
- }, Ur = ({ onClick: e }) => {
19514
- const { getLocalButton: a } = O(), [n, r] = K(!0), s = "hideShowButton", o = () => {
19506
+ }, Wr = ({ onClick: e }) => {
19507
+ const { getLocalButton: a } = O(), [n, r] = U(!0), s = "hideShowButton", o = () => {
19515
19508
  r((u) => !u), e();
19516
19509
  };
19517
19510
  return /* @__PURE__ */ i.jsx("div", { className: "taxbit-row-actions", children: /* @__PURE__ */ i.jsx(
@@ -19534,42 +19527,42 @@ const xt = {
19534
19527
  )
19535
19528
  }
19536
19529
  ) });
19537
- }, Kr = ({
19530
+ }, Jr = ({
19538
19531
  value: e = "",
19539
19532
  mask: a = "•",
19540
19533
  onChange: n,
19541
19534
  show: r = !1,
19542
19535
  ...s
19543
19536
  }) => {
19544
- const [o, u] = K(e), [l, c] = K(
19537
+ const [o, u] = U(e), [d, l] = U(
19545
19538
  Array(e.length + 1).join(a)
19546
- ), m = kn(), [k, v] = K([
19539
+ ), m = kn(), [k, v] = U([
19547
19540
  0,
19548
19541
  0
19549
19542
  ]), b = kn(null);
19550
19543
  Q(() => {
19551
- e !== o && (u(e), c(Array(e.length + 1).join(a)));
19544
+ e !== o && (u(e), l(Array(e.length + 1).join(a)));
19552
19545
  }, [e, a, o]);
19553
19546
  const p = (C) => {
19554
- const T = C.target.selectionEnd === null ? C.target.value.length : C.target.selectionEnd;
19555
- v([T, T]);
19556
- const E = C.target.value, y = E.replace(
19547
+ const I = C.target.selectionEnd === null ? C.target.value.length : C.target.selectionEnd;
19548
+ v([I, I]);
19549
+ const M = C.target.value, G = M.replace(
19557
19550
  new RegExp(
19558
- `${T ? `(^\\${a}{1,${T}})|` : ""}(\\${a}+)`,
19551
+ `${I ? `(^\\${a}{1,${I}})|` : ""}(\\${a}+)`,
19559
19552
  "g"
19560
19553
  ),
19561
- (_, L, ie) => !ie && T ? o.substring(0, _.length) : o.substring(o.length - _.length)
19562
- ), R = E.split("").map((_, L) => L === T - 1 ? _ : a).join("");
19563
- c(R), u(y), n && n(y);
19554
+ (_, L, ie) => !ie && I ? o.substring(0, _.length) : o.substring(o.length - _.length)
19555
+ ), E = M.split("").map((_, L) => L === I - 1 ? _ : a).join("");
19556
+ l(E), u(G), n && n(G);
19564
19557
  };
19565
19558
  return Q(() => (clearTimeout(m.current), m.current = setTimeout(() => {
19566
19559
  b.current && v([
19567
19560
  b.current.selectionStart,
19568
19561
  b.current.selectionEnd
19569
- ]), c(Array(l.length + 1).join(a));
19562
+ ]), l(Array(d.length + 1).join(a));
19570
19563
  }, 1e3), () => {
19571
19564
  clearTimeout(m.current);
19572
- }), [a, l]), Q(() => {
19565
+ }), [a, d]), Q(() => {
19573
19566
  b.current && (b.current.selectionStart = k[0], b.current.selectionEnd = k[1]);
19574
19567
  }, [k]), /* @__PURE__ */ i.jsx(
19575
19568
  "input",
@@ -19577,37 +19570,37 @@ const xt = {
19577
19570
  ...s,
19578
19571
  ref: b,
19579
19572
  type: "text",
19580
- value: r ? o : l,
19573
+ value: r ? o : d,
19581
19574
  onChange: p
19582
19575
  }
19583
19576
  );
19584
- }, Vr = ({
19577
+ }, Zr = ({
19585
19578
  name: e,
19586
19579
  className: a,
19587
19580
  onChange: n,
19588
19581
  hint: r,
19589
19582
  children: s
19590
19583
  }) => {
19591
- const { fields: o, setValue: u } = O(), [l, c] = K(!0), m = o[e] || "", k = (v) => {
19584
+ const { fields: o, setValue: u } = O(), [d, l] = U(!0), m = o[e] || "", k = (v) => {
19592
19585
  const b = n ? n(v) : v;
19593
19586
  u(e, b);
19594
19587
  };
19595
19588
  return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
19596
- /* @__PURE__ */ i.jsxs(ye, { className: a, children: [
19589
+ /* @__PURE__ */ i.jsxs(Me, { className: a, children: [
19597
19590
  /* @__PURE__ */ i.jsx(
19598
- Kr,
19591
+ Jr,
19599
19592
  {
19600
19593
  value: m,
19601
19594
  onChange: k,
19602
19595
  className: "taxbit-input",
19603
19596
  mask: "*",
19604
- show: !l
19597
+ show: !d
19605
19598
  }
19606
19599
  ),
19607
- /* @__PURE__ */ i.jsx(Me, { name: e, hint: r }),
19600
+ /* @__PURE__ */ i.jsx(Ee, { name: e, hint: r }),
19608
19601
  s ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-input-status-footer", children: s }) : null
19609
19602
  ] }),
19610
- /* @__PURE__ */ i.jsx(Ur, { onClick: () => c((v) => !v) })
19603
+ /* @__PURE__ */ i.jsx(Wr, { onClick: () => l((v) => !v) })
19611
19604
  ] });
19612
19605
  }, f = ({
19613
19606
  label: e,
@@ -19619,14 +19612,14 @@ const xt = {
19619
19612
  }) => {
19620
19613
  const {
19621
19614
  visibleFields: u,
19622
- showField: l,
19623
- hideField: c,
19615
+ showField: d,
19616
+ hideField: l,
19624
19617
  getRequiredLocalPrompt: m,
19625
19618
  getLocalSubPrompt: k
19626
19619
  } = O(), v = !!u[n];
19627
19620
  return Q(() => {
19628
- v ? l(n) : c(n);
19629
- }, [v, n, l, c]), v ? /* @__PURE__ */ i.jsxs(
19621
+ v ? d(n) : l(n);
19622
+ }, [v, n, d, l]), v ? /* @__PURE__ */ i.jsxs(
19630
19623
  Ie,
19631
19624
  {
19632
19625
  name: n,
@@ -19635,7 +19628,7 @@ const xt = {
19635
19628
  onEdit: s,
19636
19629
  children: [
19637
19630
  r,
19638
- o ? /* @__PURE__ */ i.jsx(wr, { name: n }) : null
19631
+ o ? /* @__PURE__ */ i.jsx(Hr, { name: n }) : null
19639
19632
  ]
19640
19633
  }
19641
19634
  ) : null;
@@ -19645,31 +19638,34 @@ const xt = {
19645
19638
  subLabel: n,
19646
19639
  onClick: r
19647
19640
  }) => /* @__PURE__ */ i.jsx(f, { name: e, children: /* @__PURE__ */ i.jsx(
19648
- Lr,
19641
+ Fr,
19649
19642
  {
19650
19643
  label: a,
19651
19644
  subLabel: n,
19652
19645
  name: e,
19653
19646
  onClick: r
19654
19647
  }
19655
- ) }), Wr = ({
19648
+ ) }), xn = ({
19656
19649
  label: e,
19657
19650
  name: a
19658
- }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsx(f, { name: a, children: /* @__PURE__ */ i.jsxs(ye, { children: [
19659
- e && /* @__PURE__ */ i.jsx("div", { className: "taxbit-label", children: e }),
19660
- /* @__PURE__ */ i.jsx(Me, { name: a })
19661
- ] }) }) }), Ke = ({
19651
+ }) => {
19652
+ const { showErrors: n, invalidFields: r, getLocalError: s } = O(), o = r[a] ? s(r[a]) : "";
19653
+ return /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsx(f, { name: a, children: n && o && e && /* @__PURE__ */ i.jsxs(Me, { children: [
19654
+ /* @__PURE__ */ i.jsx("div", { className: "taxbit-label", children: e }),
19655
+ /* @__PURE__ */ i.jsx("div", { className: "taxbit-error-message", children: o })
19656
+ ] }) }) });
19657
+ }, Ke = ({
19662
19658
  name: e,
19663
19659
  label: a,
19664
19660
  hint: n,
19665
19661
  subLabel: r,
19666
19662
  onChange: s
19667
- }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(Vr, { name: e, onChange: s, hint: n }) }), U = ({
19663
+ }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(Zr, { name: e, onChange: s, hint: n }) }), x = ({
19668
19664
  name: e,
19669
19665
  label: a,
19670
19666
  subLabel: n,
19671
19667
  options: r
19672
- }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(Fr, { name: e, options: r }) }), Te = ({
19668
+ }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(Kr, { name: e, options: r }) }), Te = ({
19673
19669
  name: e,
19674
19670
  label: a,
19675
19671
  options: n,
@@ -19677,7 +19673,7 @@ const xt = {
19677
19673
  addBlank: s,
19678
19674
  onChange: o
19679
19675
  }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19680
- Fn,
19676
+ Dn,
19681
19677
  {
19682
19678
  name: e,
19683
19679
  options: n,
@@ -19693,7 +19689,7 @@ const xt = {
19693
19689
  disabled: o,
19694
19690
  syncName: u
19695
19691
  }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19696
- xn,
19692
+ Fn,
19697
19693
  {
19698
19694
  name: e,
19699
19695
  onChange: s,
@@ -19701,59 +19697,59 @@ const xt = {
19701
19697
  disabled: o,
19702
19698
  syncName: u
19703
19699
  }
19704
- ) }), Jr = () => {
19700
+ ) }), qr = () => {
19705
19701
  const { fields: e, getLocalTitle: a } = O(), { onPersistAccountHolderData: n, onCancel: r } = X();
19706
19702
  return /* @__PURE__ */ i.jsxs(
19707
19703
  pe,
19708
19704
  {
19709
19705
  title: a("accountHolderClassification"),
19710
- actions: /* @__PURE__ */ i.jsx(Gr, {}),
19706
+ actions: /* @__PURE__ */ i.jsx(Dr, {}),
19711
19707
  children: [
19712
19708
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
19713
19709
  /* @__PURE__ */ i.jsx(
19714
- U,
19710
+ x,
19715
19711
  {
19716
19712
  name: "accountHolderUsPerson",
19717
- options: Ee,
19713
+ options: ze,
19718
19714
  label: !0
19719
19715
  }
19720
19716
  ),
19721
19717
  /* @__PURE__ */ i.jsx(
19722
- U,
19718
+ x,
19723
19719
  {
19724
19720
  name: "accountHolderIsEuResident",
19725
- options: Ee,
19721
+ options: ze,
19726
19722
  label: !0,
19727
19723
  subLabel: !0
19728
19724
  }
19729
19725
  ),
19730
19726
  /* @__PURE__ */ i.jsx(
19731
- U,
19727
+ x,
19732
19728
  {
19733
19729
  name: "accountHolderIsIndividual",
19734
- options: Ee,
19730
+ options: ze,
19735
19731
  label: !0
19736
19732
  }
19737
19733
  ),
19738
19734
  /* @__PURE__ */ i.jsx(
19739
- U,
19735
+ x,
19740
19736
  {
19741
19737
  name: "accountHolderUsAccountType",
19742
- options: Pn,
19738
+ options: Rn,
19743
19739
  label: !0
19744
19740
  }
19745
19741
  ),
19746
19742
  /* @__PURE__ */ i.jsx(
19747
- U,
19743
+ x,
19748
19744
  {
19749
19745
  name: "accountHolderUsSmllcElection",
19750
- options: Ee,
19746
+ options: ze,
19751
19747
  label: !0,
19752
19748
  subLabel: !0
19753
19749
  }
19754
19750
  ),
19755
19751
  /* @__PURE__ */ i.jsx(
19756
- U,
19752
+ x,
19757
19753
  {
19758
19754
  name: "accountHolderUsLlcClassification",
19759
19755
  options: ni,
@@ -19762,23 +19758,23 @@ const xt = {
19762
19758
  ),
19763
19759
  /* @__PURE__ */ i.jsx(Y, { name: "accountHolderUsOtherClassification", label: !0 }),
19764
19760
  /* @__PURE__ */ i.jsx(
19765
- U,
19761
+ x,
19766
19762
  {
19767
19763
  name: "accountHolderUsTrustEstateEin",
19768
- options: Ee,
19764
+ options: ze,
19769
19765
  label: !0
19770
19766
  }
19771
19767
  ),
19772
19768
  /* @__PURE__ */ i.jsx(
19773
- U,
19769
+ x,
19774
19770
  {
19775
19771
  name: "accountHolderForeignAccountType",
19776
- options: Rn,
19772
+ options: En,
19777
19773
  label: !0
19778
19774
  }
19779
19775
  ),
19780
19776
  /* @__PURE__ */ i.jsx(
19781
- U,
19777
+ x,
19782
19778
  {
19783
19779
  name: "accountHolderForeignOtherClassification",
19784
19780
  options: ai,
@@ -19786,7 +19782,7 @@ const xt = {
19786
19782
  }
19787
19783
  ),
19788
19784
  /* @__PURE__ */ i.jsx(
19789
- U,
19785
+ x,
19790
19786
  {
19791
19787
  name: "accountHolderForeignTrustClassification",
19792
19788
  options: ii,
@@ -19804,7 +19800,7 @@ const xt = {
19804
19800
  ]
19805
19801
  }
19806
19802
  );
19807
- }, Zr = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(Jr, {}) }), Ka = ({
19803
+ }, Yr = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(qr, {}) }), Ua = ({
19808
19804
  prompt: e,
19809
19805
  prefix: a,
19810
19806
  showIf: n = !0
@@ -19814,30 +19810,30 @@ const xt = {
19814
19810
  hideErrors: s,
19815
19811
  getLocalCountry: o,
19816
19812
  getLocalCaProvince: u,
19817
- getLocalUsState: l,
19818
- hideField: c
19813
+ getLocalUsState: d,
19814
+ hideField: l
19819
19815
  } = O(), m = r[`${a}Country`], k = J(
19820
- () => da.map((p) => ({
19816
+ () => ua.map((p) => ({
19821
19817
  ...p,
19822
19818
  label: o(p.value)
19823
19819
  })).sort((p, C) => p.label.localeCompare(C.label)),
19824
19820
  [o]
19825
19821
  ), v = J(
19826
- () => Ct.map((p) => ({
19822
+ () => Et.map((p) => ({
19827
19823
  ...p,
19828
- label: l(p.value)
19824
+ label: d(p.value)
19829
19825
  })).sort((p, C) => p.label.localeCompare(C.label)),
19830
- [l]
19826
+ [d]
19831
19827
  ), b = J(
19832
- () => et.map((p) => ({
19828
+ () => ct.map((p) => ({
19833
19829
  ...p,
19834
19830
  label: u(p.value)
19835
19831
  })).sort((p, C) => p.label.localeCompare(C.label)),
19836
19832
  [u]
19837
19833
  );
19838
19834
  return Q(() => {
19839
- n || (c(`${a}Street`), c(`${a}Street2`), c(`${a}City`), c(`${a}State`), c(`${a}Country`), c(`${a}Zip`));
19840
- }, [c, a, n]), n ? /* @__PURE__ */ i.jsxs(he, { title: e, children: [
19835
+ n || (l(`${a}Street`), l(`${a}Street2`), l(`${a}City`), l(`${a}State`), l(`${a}Country`), l(`${a}Zip`));
19836
+ }, [l, a, n]), n ? /* @__PURE__ */ i.jsxs(he, { title: e, children: [
19841
19837
  /* @__PURE__ */ i.jsx(
19842
19838
  Te,
19843
19839
  {
@@ -19861,26 +19857,26 @@ const xt = {
19861
19857
  ),
19862
19858
  /* @__PURE__ */ i.jsx(Y, { name: `${a}Zip`, label: !0 })
19863
19859
  ] }) : null;
19864
- }, qr = ({
19860
+ }, _r = ({
19865
19861
  name: e,
19866
19862
  label: a,
19867
19863
  subLabel: n
19868
- }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(Dr, { name: e }) }), Yr = () => {
19869
- const { onPersistCollectedData: e, goBack: a, onCancel: n, isW9: r, isW8: s } = X(), { fields: o, getLocalCountry: u, getLocalTitle: l } = O(), c = J(
19870
- () => da.map((m) => ({
19864
+ }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(Ur, { name: e }) }), Qr = () => {
19865
+ const { onPersistCollectedData: e, goBack: a, onCancel: n, isW9: r, isW8: s } = X(), { fields: o, getLocalCountry: u, getLocalTitle: d } = O(), l = J(
19866
+ () => ua.map((m) => ({
19871
19867
  ...m,
19872
19868
  label: u(m.value)
19873
19869
  })).sort((m, k) => m.label.localeCompare(k.label)),
19874
19870
  [u]
19875
19871
  );
19876
- return /* @__PURE__ */ i.jsxs(pe, { title: l("accountHolderContactInformation"), children: [
19872
+ return /* @__PURE__ */ i.jsxs(pe, { title: d("accountHolderContactInformation"), children: [
19877
19873
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
19878
19874
  /* @__PURE__ */ i.jsx(
19879
19875
  Te,
19880
19876
  {
19881
19877
  label: !0,
19882
19878
  name: "accountHolderCountryOfCitizenship",
19883
- options: c
19879
+ options: l
19884
19880
  }
19885
19881
  ),
19886
19882
  /* @__PURE__ */ i.jsx(
@@ -19892,20 +19888,20 @@ const xt = {
19892
19888
  }
19893
19889
  ),
19894
19890
  /* @__PURE__ */ i.jsx(Y, { label: !0, name: "accountHolderDbaName" }),
19895
- /* @__PURE__ */ i.jsx(qr, { name: "accountHolderDateOfBirth", label: !0 }),
19891
+ /* @__PURE__ */ i.jsx(_r, { name: "accountHolderDateOfBirth", label: !0 }),
19896
19892
  /* @__PURE__ */ i.jsx(
19897
- Ka,
19893
+ Ua,
19898
19894
  {
19899
- prompt: l("primaryAddress"),
19895
+ prompt: d("primaryAddress"),
19900
19896
  prefix: "accountHolderAddress",
19901
19897
  showIf: o.accountHolderIsEuResident === "yes" || s || r
19902
19898
  }
19903
19899
  ),
19904
19900
  /* @__PURE__ */ i.jsx(F, { name: "accountHolderMailingAddressIsDifferent", label: !0 }),
19905
19901
  /* @__PURE__ */ i.jsx(
19906
- Ka,
19902
+ Ua,
19907
19903
  {
19908
- prompt: l("mailingAddress"),
19904
+ prompt: d("mailingAddress"),
19909
19905
  prefix: "accountHolderMailingAddress",
19910
19906
  showIf: o.accountHolderMailingAddressIsDifferent === "yes"
19911
19907
  }
@@ -19920,26 +19916,26 @@ const xt = {
19920
19916
  }
19921
19917
  )
19922
19918
  ] });
19923
- }, _r = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(Yr, {}) }), sa = ({
19919
+ }, Xr = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(Qr, {}) }), sa = ({
19924
19920
  index: e,
19925
19921
  showIf: a = !0,
19926
19922
  more: n,
19927
19923
  countryOptions: r
19928
19924
  }) => {
19929
- const { fields: s, getLocalTitle: o, getLocalSubTitle: u, hideField: l } = O(), c = `accountHolderTaxResidenceCountry${e}`, m = `accountHolderTaxResidenceForeignTin${e}`, k = `accountHolderTaxResidenceForeignTin${e}IsNotRequired`, v = `accountHolderShowTaxResidence${e + 1}`, b = `taxResidence${e}`, C = [
19925
+ const { fields: s, getLocalTitle: o, getLocalSubTitle: u, hideField: d } = O(), l = `accountHolderTaxResidenceCountry${e}`, m = `accountHolderTaxResidenceForeignTin${e}`, k = `accountHolderTaxResidenceForeignTin${e}IsNotRequired`, v = `accountHolderShowTaxResidence${e + 1}`, b = `taxResidence${e}`, C = [
19930
19926
  s.accountHolderTaxResidenceCountry1,
19931
19927
  s.accountHolderTaxResidenceCountry2,
19932
19928
  s.accountHolderTaxResidenceCountry3,
19933
19929
  s.accountHolderTaxResidenceCountry4,
19934
19930
  s.accountHolderTaxResidenceCountry5
19935
19931
  ].filter(
19936
- (E) => E !== s[`accountHolderTaxResidenceCountry${e}`]
19937
- ), T = r.filter(
19938
- (E) => !C.includes(E.value)
19932
+ (M) => M !== s[`accountHolderTaxResidenceCountry${e}`]
19933
+ ), I = r.filter(
19934
+ (M) => !C.includes(M.value)
19939
19935
  );
19940
19936
  return Q(() => {
19941
- a || (l(c), l(m), l(k));
19942
- }, [c, l, k, a, m]), a ? /* @__PURE__ */ i.jsxs(
19937
+ a || (d(l), d(m), d(k));
19938
+ }, [l, d, k, a, m]), a ? /* @__PURE__ */ i.jsxs(
19943
19939
  he,
19944
19940
  {
19945
19941
  title: o(b),
@@ -19949,30 +19945,30 @@ const xt = {
19949
19945
  /* @__PURE__ */ i.jsx(
19950
19946
  Te,
19951
19947
  {
19952
- name: c,
19948
+ name: l,
19953
19949
  className: "taxbit-country",
19954
- options: T,
19950
+ options: I,
19955
19951
  label: !0
19956
19952
  }
19957
19953
  ),
19958
19954
  /* @__PURE__ */ i.jsx(Ke, { name: m, label: !0 }),
19959
19955
  /* @__PURE__ */ i.jsx(F, { label: !0, name: k }),
19960
- n ? /* @__PURE__ */ i.jsx(Ie, { children: /* @__PURE__ */ i.jsx(xr, { name: v }) }) : null
19956
+ n ? /* @__PURE__ */ i.jsx(Ie, { children: /* @__PURE__ */ i.jsx(Vr, { name: v }) }) : null
19961
19957
  ]
19962
19958
  }
19963
19959
  ) : null;
19964
- }, Qr = () => {
19960
+ }, $r = () => {
19965
19961
  const { onPersistCollectedData: e, goBack: a, onCancel: n } = X(), { fields: r, getLocalTitle: s, getLocalCountry: o } = O(), u = J(
19966
- () => nt.map((c) => ({
19967
- ...c,
19968
- label: o(c.value)
19969
- })).sort((c, m) => c.label.localeCompare(m.label)),
19962
+ () => kt.map((l) => ({
19963
+ ...l,
19964
+ label: o(l.value)
19965
+ })).sort((l, m) => l.label.localeCompare(m.label)),
19970
19966
  [o]
19971
- ), l = J(
19972
- () => da.map((c) => ({
19973
- ...c,
19974
- label: o(c.value)
19975
- })).sort((c, m) => c.label.localeCompare(m.label)),
19967
+ ), d = J(
19968
+ () => ua.map((l) => ({
19969
+ ...l,
19970
+ label: o(l.value)
19971
+ })).sort((l, m) => l.label.localeCompare(m.label)),
19976
19972
  [o]
19977
19973
  );
19978
19974
  return /* @__PURE__ */ i.jsxs(pe, { title: s("accountHolderTaxInformation"), children: [
@@ -20016,7 +20012,7 @@ const xt = {
20016
20012
  )
20017
20013
  ] }),
20018
20014
  /* @__PURE__ */ i.jsx(
20019
- Wr,
20015
+ xn,
20020
20016
  {
20021
20017
  label: o(r.accountHolderAddressCountry),
20022
20018
  name: "accountHolderCountryIsResidence"
@@ -20027,7 +20023,7 @@ const xt = {
20027
20023
  {
20028
20024
  index: 1,
20029
20025
  showIf: r.accountHolderIsIndividual !== void 0,
20030
- countryOptions: l,
20026
+ countryOptions: d,
20031
20027
  more: !0
20032
20028
  }
20033
20029
  ),
@@ -20036,7 +20032,7 @@ const xt = {
20036
20032
  {
20037
20033
  index: 2,
20038
20034
  showIf: r.accountHolderShowTaxResidence2 === "yes",
20039
- countryOptions: l,
20035
+ countryOptions: d,
20040
20036
  more: !0
20041
20037
  }
20042
20038
  ),
@@ -20045,7 +20041,7 @@ const xt = {
20045
20041
  {
20046
20042
  index: 3,
20047
20043
  showIf: r.accountHolderShowTaxResidence3 === "yes",
20048
- countryOptions: l,
20044
+ countryOptions: d,
20049
20045
  more: !0
20050
20046
  }
20051
20047
  ),
@@ -20054,7 +20050,7 @@ const xt = {
20054
20050
  {
20055
20051
  index: 4,
20056
20052
  showIf: r.accountHolderShowTaxResidence4 === "yes",
20057
- countryOptions: l,
20053
+ countryOptions: d,
20058
20054
  more: !0
20059
20055
  }
20060
20056
  ),
@@ -20063,7 +20059,7 @@ const xt = {
20063
20059
  {
20064
20060
  index: 5,
20065
20061
  showIf: r.accountHolderShowTaxResidence5 === "yes",
20066
- countryOptions: l
20062
+ countryOptions: d
20067
20063
  }
20068
20064
  )
20069
20065
  ] }),
@@ -20076,24 +20072,24 @@ const xt = {
20076
20072
  }
20077
20073
  )
20078
20074
  ] });
20079
- }, Xr = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(Qr, {}) }), $r = () => {
20075
+ }, eo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx($r, {}) }), ao = () => {
20080
20076
  const { onPersistCollectedData: e, goBack: a } = X(), { fields: n } = O();
20081
20077
  return /* @__PURE__ */ i.jsxs(pe, { title: "exemptions", children: [
20082
20078
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20083
- /* @__PURE__ */ i.jsx(Te, { name: "exemptFatcaCode", options: ot, label: !0 }),
20084
- /* @__PURE__ */ i.jsx(Te, { name: "exemptPayeeCode", options: vt, label: !0 })
20079
+ /* @__PURE__ */ i.jsx(Te, { name: "exemptFatcaCode", options: ft, label: !0 }),
20080
+ /* @__PURE__ */ i.jsx(Te, { name: "exemptPayeeCode", options: yt, label: !0 })
20085
20081
  ] }),
20086
20082
  /* @__PURE__ */ i.jsx(Ae, { onBack: a, onNext: () => e(n) })
20087
20083
  ] });
20088
- }, eo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx($r, {}) }), ao = () => {
20089
- const { fields: e, getLocalTitle: a, getLocalOption: n } = O(), { onPersistCollectedData: r, goBack: s } = X(), o = Ee.map((u) => ({
20084
+ }, io = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(ao, {}) }), no = () => {
20085
+ const { fields: e, getLocalTitle: a, getLocalOption: n } = O(), { onPersistCollectedData: r, goBack: s } = X(), o = ze.map((u) => ({
20090
20086
  ...u,
20091
20087
  label: n(`usPerson_${u.value}`)
20092
20088
  }));
20093
20089
  return /* @__PURE__ */ i.jsxs(pe, { title: a("regardedOwnerClassification"), children: [
20094
20090
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20095
20091
  /* @__PURE__ */ i.jsx(
20096
- U,
20092
+ x,
20097
20093
  {
20098
20094
  name: "regardedOwnerUsPerson",
20099
20095
  options: o,
@@ -20101,23 +20097,23 @@ const xt = {
20101
20097
  }
20102
20098
  ),
20103
20099
  /* @__PURE__ */ i.jsx(
20104
- U,
20100
+ x,
20105
20101
  {
20106
20102
  name: "regardedOwnerUsAccountType",
20107
- options: At,
20103
+ options: Bt,
20108
20104
  label: !0
20109
20105
  }
20110
20106
  ),
20111
20107
  /* @__PURE__ */ i.jsx(
20112
- U,
20108
+ x,
20113
20109
  {
20114
20110
  name: "regardedOwnerForeignAccountType",
20115
- options: dt,
20111
+ options: bt,
20116
20112
  label: !0
20117
20113
  }
20118
20114
  ),
20119
20115
  /* @__PURE__ */ i.jsx(
20120
- U,
20116
+ x,
20121
20117
  {
20122
20118
  name: "regardedOwnerUsLlcClassification",
20123
20119
  options: ni,
@@ -20126,15 +20122,15 @@ const xt = {
20126
20122
  ),
20127
20123
  /* @__PURE__ */ i.jsx(Y, { name: "regardedOwnerUsOtherClassification", label: !0 }),
20128
20124
  /* @__PURE__ */ i.jsx(
20129
- U,
20125
+ x,
20130
20126
  {
20131
20127
  name: "regardedOwnerUsTrustEstateEin",
20132
- options: Ee,
20128
+ options: ze,
20133
20129
  label: !0
20134
20130
  }
20135
20131
  ),
20136
20132
  /* @__PURE__ */ i.jsx(
20137
- U,
20133
+ x,
20138
20134
  {
20139
20135
  name: "regardedOwnerForeignOtherClassification",
20140
20136
  options: ai,
@@ -20142,7 +20138,7 @@ const xt = {
20142
20138
  }
20143
20139
  ),
20144
20140
  /* @__PURE__ */ i.jsx(
20145
- U,
20141
+ x,
20146
20142
  {
20147
20143
  name: "regardedOwnerForeignTrustClassification",
20148
20144
  options: ii,
@@ -20152,12 +20148,12 @@ const xt = {
20152
20148
  ] }),
20153
20149
  /* @__PURE__ */ i.jsx(Ae, { onBack: s, onNext: () => r(e) })
20154
20150
  ] });
20155
- }, io = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(ao, {}) }), no = () => {
20151
+ }, to = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(no, {}) }), ro = () => {
20156
20152
  const { onPersistCollectedData: e, goBack: a, onCancel: n } = X(), { fields: r, getLocalCountry: s, getLocalTitle: o } = O(), u = J(
20157
- () => da.map((l) => ({
20158
- ...l,
20159
- label: s(l.value)
20160
- })).sort((l, c) => l.label.localeCompare(c.label)),
20153
+ () => ua.map((d) => ({
20154
+ ...d,
20155
+ label: s(d.value)
20156
+ })).sort((d, l) => d.label.localeCompare(l.label)),
20161
20157
  [s]
20162
20158
  );
20163
20159
  return /* @__PURE__ */ i.jsxs(pe, { title: o("regardedOwnerContactInformation"), children: [
@@ -20173,7 +20169,7 @@ const xt = {
20173
20169
  /* @__PURE__ */ i.jsx(Y, { label: !0, name: "regardedOwnerName" }),
20174
20170
  /* @__PURE__ */ i.jsx(Y, { label: !0, name: "regardedOwnerDbaName" }),
20175
20171
  /* @__PURE__ */ i.jsx(
20176
- Ka,
20172
+ Ua,
20177
20173
  {
20178
20174
  prompt: "Permanent Address",
20179
20175
  prefix: "regardedOwnerAddress"
@@ -20181,7 +20177,7 @@ const xt = {
20181
20177
  ),
20182
20178
  /* @__PURE__ */ i.jsx(F, { name: "regardedOwnerMailingAddressIsDifferent", label: !0 }),
20183
20179
  /* @__PURE__ */ i.jsx(
20184
- Ka,
20180
+ Ua,
20185
20181
  {
20186
20182
  prompt: "Mailing Address",
20187
20183
  prefix: "regardedOwnerMailingAddress",
@@ -20198,7 +20194,7 @@ const xt = {
20198
20194
  }
20199
20195
  )
20200
20196
  ] });
20201
- }, to = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(no, {}) }), ro = () => {
20197
+ }, oo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(ro, {}) }), so = () => {
20202
20198
  const { onPersistCollectedData: e, goBack: a } = X(), { fields: n, getLocalTitle: r } = O();
20203
20199
  return /* @__PURE__ */ i.jsxs(pe, { title: r("regardedOwnerTaxInformation"), children: [
20204
20200
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
@@ -20208,7 +20204,7 @@ const xt = {
20208
20204
  ] }),
20209
20205
  /* @__PURE__ */ i.jsx(Ae, { onBack: a, onNext: () => e(n) })
20210
20206
  ] });
20211
- }, oo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(ro, {}) }), ne = ({ text: e }) => {
20207
+ }, lo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(so, {}) }), ne = ({ text: e }) => {
20212
20208
  const n = ((r) => {
20213
20209
  if (!r)
20214
20210
  return "";
@@ -20216,13 +20212,13 @@ const xt = {
20216
20212
  return "*".repeat(s) + r.substring(s);
20217
20213
  })(e);
20218
20214
  return /* @__PURE__ */ i.jsx("span", { children: n });
20219
- }, so = () => {
20215
+ }, uo = () => {
20220
20216
  const { data: e, editTo: a, isW9: n, isW8: r } = X(), {
20221
20217
  getLocalTitle: s,
20222
20218
  getLocalOption: o,
20223
20219
  getLocalCountry: u,
20224
- getLocalText: l,
20225
- visibleFields: c
20220
+ getLocalText: d,
20221
+ visibleFields: l
20226
20222
  } = O();
20227
20223
  return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
20228
20224
  /* @__PURE__ */ i.jsxs(he, { title: s("accountHolder"), children: [
@@ -20385,7 +20381,7 @@ const xt = {
20385
20381
  label: s("address"),
20386
20382
  onEdit: () => a("AccountHolderContact"),
20387
20383
  children: /* @__PURE__ */ i.jsx(
20388
- Da,
20384
+ Fa,
20389
20385
  {
20390
20386
  address: {
20391
20387
  street: e == null ? void 0 : e.accountHolderAddressStreet,
@@ -20405,7 +20401,7 @@ const xt = {
20405
20401
  label: s("mailingAddress"),
20406
20402
  onEdit: () => a("AccountHolderContact"),
20407
20403
  children: /* @__PURE__ */ i.jsx(
20408
- Da,
20404
+ Fa,
20409
20405
  {
20410
20406
  address: {
20411
20407
  street: e == null ? void 0 : e.accountHolderMailingAddressStreet,
@@ -20481,10 +20477,17 @@ const xt = {
20481
20477
  label: !0,
20482
20478
  children: [
20483
20479
  (e == null ? void 0 : e.accountHolderVatIdentificationNumber) && /* @__PURE__ */ i.jsx(ne, { text: e == null ? void 0 : e.accountHolderVatIdentificationNumber }),
20484
- (e == null ? void 0 : e.accountHolderVatIdentificationNumberIsNotRequired) == "yes" && l("notRequired")
20480
+ (e == null ? void 0 : e.accountHolderVatIdentificationNumberIsNotRequired) == "yes" && d("notRequired")
20485
20481
  ]
20486
20482
  }
20487
20483
  ),
20484
+ /* @__PURE__ */ i.jsx(
20485
+ xn,
20486
+ {
20487
+ label: u(e.accountHolderAddressCountry),
20488
+ name: "accountHolderCountryIsResidence"
20489
+ }
20490
+ ),
20488
20491
  /* @__PURE__ */ i.jsxs(
20489
20492
  he,
20490
20493
  {
@@ -20508,7 +20511,7 @@ const xt = {
20508
20511
  }
20509
20512
  ),
20510
20513
  " ",
20511
- (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1IsNotRequired) == "yes" && l("notRequired")
20514
+ (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1IsNotRequired) == "yes" && d("notRequired")
20512
20515
  ] }),
20513
20516
  /* @__PURE__ */ i.jsx(
20514
20517
  f,
@@ -20527,7 +20530,7 @@ const xt = {
20527
20530
  }
20528
20531
  ),
20529
20532
  " ",
20530
- (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2IsNotRequired) == "yes" && l("notRequired")
20533
+ (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2IsNotRequired) == "yes" && d("notRequired")
20531
20534
  ] }),
20532
20535
  /* @__PURE__ */ i.jsx(
20533
20536
  f,
@@ -20546,7 +20549,7 @@ const xt = {
20546
20549
  }
20547
20550
  ),
20548
20551
  " ",
20549
- (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3IsNotRequired) == "yes" && l("notRequired")
20552
+ (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3IsNotRequired) == "yes" && d("notRequired")
20550
20553
  ] }),
20551
20554
  /* @__PURE__ */ i.jsx(
20552
20555
  f,
@@ -20565,7 +20568,7 @@ const xt = {
20565
20568
  }
20566
20569
  ),
20567
20570
  " ",
20568
- (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4IsNotRequired) == "yes" && l("notRequired")
20571
+ (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4IsNotRequired) == "yes" && d("notRequired")
20569
20572
  ] }),
20570
20573
  /* @__PURE__ */ i.jsx(
20571
20574
  f,
@@ -20584,7 +20587,7 @@ const xt = {
20584
20587
  }
20585
20588
  ),
20586
20589
  " ",
20587
- (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5IsNotRequired) == "yes" && l("notRequired")
20590
+ (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5IsNotRequired) == "yes" && d("notRequired")
20588
20591
  ] })
20589
20592
  ]
20590
20593
  }
@@ -20594,7 +20597,7 @@ const xt = {
20594
20597
  he,
20595
20598
  {
20596
20599
  title: s("regardedOwner"),
20597
- showIf: !!c.regardedOwnerUsPerson && e.regardedOwnerUsPerson !== void 0,
20600
+ showIf: !!l.regardedOwnerUsPerson && e.regardedOwnerUsPerson !== void 0,
20598
20601
  children: [
20599
20602
  /* @__PURE__ */ i.jsx(
20600
20603
  f,
@@ -20641,13 +20644,13 @@ const xt = {
20641
20644
  children: o(e == null ? void 0 : e.regardedOwnerForeignAccountType)
20642
20645
  }
20643
20646
  ),
20644
- !!c.regardedOwnerUsPerson && e.regardedOwnerUsPerson !== void 0 && /* @__PURE__ */ i.jsx(
20647
+ !!l.regardedOwnerUsPerson && e.regardedOwnerUsPerson !== void 0 && /* @__PURE__ */ i.jsx(
20645
20648
  Ie,
20646
20649
  {
20647
20650
  label: s("address"),
20648
20651
  onEdit: () => a("RegardedOwnerContact"),
20649
20652
  children: /* @__PURE__ */ i.jsx(
20650
- Da,
20653
+ Fa,
20651
20654
  {
20652
20655
  address: {
20653
20656
  street: e == null ? void 0 : e.regardedOwnerAddressStreet,
@@ -20667,7 +20670,7 @@ const xt = {
20667
20670
  label: s("mailingAddress"),
20668
20671
  onEdit: () => a("RegardedOwnerContact"),
20669
20672
  children: /* @__PURE__ */ i.jsx(
20670
- Da,
20673
+ Fa,
20671
20674
  {
20672
20675
  address: {
20673
20676
  street: e == null ? void 0 : e.regardedOwnerMailingAddressStreet,
@@ -20739,11 +20742,11 @@ const xt = {
20739
20742
  }
20740
20743
  )
20741
20744
  ] });
20742
- }, lo = () => {
20745
+ }, co = () => {
20743
20746
  const { goBack: e, onSubmitTaxDocumentation: a, isW8: n, isW9: r } = X(), { getLocalTitle: s, submittableFields: o } = O();
20744
20747
  return /* @__PURE__ */ i.jsxs(pe, { title: s("summary"), children: [
20745
20748
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20746
- /* @__PURE__ */ i.jsx(so, {}),
20749
+ /* @__PURE__ */ i.jsx(uo, {}),
20747
20750
  /* @__PURE__ */ i.jsxs(he, { title: "Certify", showIf: r || n, children: [
20748
20751
  /* @__PURE__ */ i.jsx(F, { name: "iCertifyToAll", label: !0 }),
20749
20752
  /* @__PURE__ */ i.jsx(F, { name: "iConfirmTheTaxIdIsCorrect", label: !0 }),
@@ -20770,14 +20773,14 @@ const xt = {
20770
20773
  }
20771
20774
  )
20772
20775
  ] });
20773
- }, uo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(lo, {}) }), co = () => {
20776
+ }, mo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(co, {}) }), go = () => {
20774
20777
  const {
20775
20778
  getLocalCountry: e,
20776
20779
  getRequiredLocalPrompt: a,
20777
20780
  getLocalTitle: n,
20778
20781
  getLocalSubPrompt: r
20779
20782
  } = O(), s = J(
20780
- () => da.map((o) => ({
20783
+ () => ua.map((o) => ({
20781
20784
  ...o,
20782
20785
  label: e(o.value)
20783
20786
  })).sort((o, u) => o.label.localeCompare(u.label)),
@@ -20789,9 +20792,9 @@ const xt = {
20789
20792
  title: n("placeOfBirth"),
20790
20793
  subTitle: r("accountHolderCityOfBirth"),
20791
20794
  children: [
20792
- /* @__PURE__ */ i.jsx(Ie, { label: a("accountHolderCityOfBirth"), children: /* @__PURE__ */ i.jsx(xn, { name: "accountHolderCityOfBirth" }) }),
20795
+ /* @__PURE__ */ i.jsx(Ie, { label: a("accountHolderCityOfBirth"), children: /* @__PURE__ */ i.jsx(Fn, { name: "accountHolderCityOfBirth" }) }),
20793
20796
  /* @__PURE__ */ i.jsx(Ie, { label: a("accountHolderCountryOfBirth"), children: /* @__PURE__ */ i.jsx(
20794
- Fn,
20797
+ Dn,
20795
20798
  {
20796
20799
  name: "accountHolderCountryOfBirth",
20797
20800
  options: s
@@ -20800,10 +20803,10 @@ const xt = {
20800
20803
  ]
20801
20804
  }
20802
20805
  );
20803
- }, mo = () => {
20806
+ }, ko = () => {
20804
20807
  const { onPersistCollectedData: e, goBack: a, onCancel: n } = X(), { fields: r, getLocalTitle: s } = O();
20805
20808
  return /* @__PURE__ */ i.jsxs(pe, { title: s("accountHolderTaxInformation"), children: [
20806
- /* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(co, {}) }),
20809
+ /* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(go, {}) }),
20807
20810
  /* @__PURE__ */ i.jsx(
20808
20811
  Ae,
20809
20812
  {
@@ -20813,14 +20816,14 @@ const xt = {
20813
20816
  }
20814
20817
  )
20815
20818
  ] });
20816
- }, go = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(mo, {}) }), Un = ({
20819
+ }, ho = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(ko, {}) }), Un = ({
20817
20820
  data: e,
20818
20821
  onSubmit: a,
20819
20822
  language: n,
20820
20823
  taxForms: r,
20821
20824
  complete: s
20822
20825
  }) => /* @__PURE__ */ i.jsx(
20823
- zr,
20826
+ Pr,
20824
20827
  {
20825
20828
  data: e,
20826
20829
  onSubmit: a,
@@ -20828,7 +20831,7 @@ const xt = {
20828
20831
  taxForms: r,
20829
20832
  step: s ? "Summary" : void 0,
20830
20833
  children: /* @__PURE__ */ i.jsx(
20831
- ho,
20834
+ fo,
20832
20835
  {
20833
20836
  language: n,
20834
20837
  taxForms: r,
@@ -20836,9 +20839,9 @@ const xt = {
20836
20839
  }
20837
20840
  )
20838
20841
  }
20839
- ), ko = ["DAC7", "W-9", "W-8BEN", "W-8BEN-E"], ho = ({
20842
+ ), vo = ["DAC7", "W-9", "W-8BEN", "W-8BEN-E"], fo = ({
20840
20843
  language: e = "en-us",
20841
- taxForms: a = ko,
20844
+ taxForms: a = vo,
20842
20845
  data: n
20843
20846
  }) => {
20844
20847
  const { stepName: r, setLanguage: s, setSupportedForms: o, onResetTaxDocumentation: u } = X();
@@ -20849,31 +20852,33 @@ const xt = {
20849
20852
  }, [a, o]), Q(() => {
20850
20853
  n && u(n);
20851
20854
  }, [n, u]);
20852
- const c = {
20853
- AccountHolderClassification: Zr,
20854
- AccountHolderContact: _r,
20855
- AccountHolderTax: Xr,
20856
- AccountHolderTaxClarification: go,
20857
- Exemptions: eo,
20858
- RegardedOwnerClassification: io,
20859
- RegardedOwnerContact: to,
20860
- RegardedOwnerTax: oo,
20861
- Summary: uo
20855
+ const l = {
20856
+ AccountHolderClassification: Yr,
20857
+ AccountHolderContact: Xr,
20858
+ AccountHolderTax: eo,
20859
+ AccountHolderTaxClarification: ho,
20860
+ Exemptions: io,
20861
+ RegardedOwnerClassification: to,
20862
+ RegardedOwnerContact: oo,
20863
+ RegardedOwnerTax: lo,
20864
+ Summary: mo
20862
20865
  }[r];
20863
- return /* @__PURE__ */ i.jsx(c, {});
20864
- }, po = ({
20866
+ return /* @__PURE__ */ i.jsx(l, {});
20867
+ }, bo = ({
20865
20868
  data: e,
20866
20869
  onSubmit: a,
20867
- language: n
20870
+ language: n,
20871
+ complete: r
20868
20872
  }) => /* @__PURE__ */ i.jsx(
20869
20873
  Un,
20870
20874
  {
20871
20875
  data: e,
20872
20876
  language: n,
20873
20877
  onSubmit: a,
20878
+ complete: r,
20874
20879
  taxForms: ["DAC7"]
20875
20880
  }
20876
- ), vo = ({
20881
+ ), po = ({
20877
20882
  staging: e,
20878
20883
  data: a,
20879
20884
  bearerToken: n,
@@ -20882,25 +20887,33 @@ const xt = {
20882
20887
  onSubmit: o,
20883
20888
  onSuccess: u
20884
20889
  }) => {
20885
- var C;
20886
- const { status: l, formStatus: c, submitForm: m, formSubmitted: k, serverData: v } = Ht(n, e, u), [b, p] = K(
20890
+ var I;
20891
+ const { status: d, formStatus: l, postData: m, formSubmitted: k, serverData: v } = xt(
20892
+ n,
20893
+ e
20894
+ ), [b, p] = U(
20887
20895
  a
20888
20896
  );
20889
- return Q(() => {
20897
+ if (Q(() => {
20890
20898
  v && p({ ...v, ...a });
20891
- }, [a, v]), !c || c !== xa.NotSubmitted && !v ? /* @__PURE__ */ i.jsx("div", { children: ei("retrievingInterviewStatus", r) }) : k ? /* @__PURE__ */ i.jsx("div", { children: ei("interviewIsComplete", r) }) : /* @__PURE__ */ i.jsx(
20899
+ }, [a, v]), !l || l !== "NOT_SUBMITTED" && !v)
20900
+ return /* @__PURE__ */ i.jsx("div", { children: ei("retrievingInterviewStatus", r) });
20901
+ if (k)
20902
+ return /* @__PURE__ */ i.jsx("div", { children: ei("interviewIsComplete", r) });
20903
+ const C = async (M) => {
20904
+ o && o(M), await m(M), u && u(M);
20905
+ };
20906
+ return /* @__PURE__ */ i.jsx(
20892
20907
  Un,
20893
20908
  {
20894
20909
  data: b,
20895
20910
  language: r,
20896
- onSubmit: (T) => {
20897
- m(T), o && o(T);
20898
- },
20911
+ onSubmit: C,
20899
20912
  taxForms: s,
20900
- complete: ((C = l == null ? void 0 : l.DAC7Interview) == null ? void 0 : C.dataCollectionStatus) === On.Complete
20913
+ complete: ((I = d == null ? void 0 : d.DAC7Interview) == null ? void 0 : I.dataCollectionStatus) === "COMPLETE"
20901
20914
  }
20902
20915
  );
20903
- }, Ao = ({
20916
+ }, Co = ({
20904
20917
  data: e,
20905
20918
  staging: a,
20906
20919
  bearerToken: n,
@@ -20908,7 +20921,7 @@ const xt = {
20908
20921
  onSubmit: s,
20909
20922
  onSuccess: o
20910
20923
  }) => /* @__PURE__ */ i.jsx(
20911
- vo,
20924
+ po,
20912
20925
  {
20913
20926
  bearerToken: n,
20914
20927
  data: e,
@@ -20920,9 +20933,9 @@ const xt = {
20920
20933
  }
20921
20934
  );
20922
20935
  export {
20923
- Ao as TaxBitDAC7Form,
20924
- po as TaxBitDAC7FormUI,
20925
- vo as TaxBitForm,
20936
+ Co as TaxBitDAC7Form,
20937
+ bo as TaxBitDAC7FormUI,
20938
+ po as TaxBitForm,
20926
20939
  Un as TaxBitFormUI,
20927
- Ht as useTaxBit
20940
+ xt as useTaxBit
20928
20941
  };