@taxbit/react-sdk 0.4.0 → 0.4.2

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,18 +1,18 @@
1
- import at, { useState as K, useEffect as q, createContext as bt, useContext as Ct, useMemo as $, useCallback as it, Fragment as nt, useRef as xn } from "react";
2
- const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging" : ""}.taxbit.com/v1/${e}`, Ua = {
1
+ import at, { useState as K, useEffect as Y, createContext as At, useContext as bt, useMemo as ee, useCallback as it, Fragment as nt, useRef as Un } from "react";
2
+ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging" : ""}.taxbit.com/v1/${e}`, Da = {
3
3
  taxDocumentation: {
4
- post: (e) => xa("tax-documentation", e),
5
- get: (e) => xa("tax-documentation?unmask_tin=true", e)
4
+ post: (e) => Ua("tax-documentation", e),
5
+ get: (e) => Ua("tax-documentation?unmask_tin=true", e)
6
6
  },
7
7
  taxDocumentationStatus: {
8
- get: (e) => xa("tax-documentation-status", e)
8
+ get: (e) => Ua("tax-documentation-status", e)
9
9
  }
10
- }, It = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_]/g, "")), La = (e) => Array.isArray(e) ? e.map((a) => La(a)) : e !== Object(e) ? e : Object.fromEntries(
10
+ }, Ct = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_]/g, "")), La = (e) => Array.isArray(e) ? e.map((a) => La(a)) : e !== Object(e) ? e : Object.fromEntries(
11
11
  Object.entries(e).map(([a, n]) => [
12
- It(a),
12
+ Ct(a),
13
13
  La(n)
14
14
  ])
15
- ), se = (...e) => e.filter(Boolean).join(" "), St = (e) => {
15
+ ), se = (...e) => e.filter(Boolean).join(" "), It = (e) => {
16
16
  try {
17
17
  const a = (/* @__PURE__ */ new Date()).getUTCFullYear(), n = e.substring(e.length - 4, e.length), r = a - Number(n);
18
18
  if (r > 0 && r < 131)
@@ -22,7 +22,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
22
22
  } catch {
23
23
  return !1;
24
24
  }
25
- }, Nt = (e) => /^\d{2}\/\d{2}\/\d{4}$/.test(e), Tt = (e) => {
25
+ }, St = (e) => /^\d{2}\/\d{2}\/\d{4}$/.test(e), Nt = (e) => {
26
26
  const a = new Date(e);
27
27
  return !isNaN(a.getTime()) && e === a.toLocaleDateString("en-US", {
28
28
  month: "2-digit",
@@ -31,7 +31,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
31
31
  });
32
32
  }, ge = (e) => e.map((a) => ({
33
33
  value: a
34
- })), Mt = [
34
+ })), Tt = [
35
35
  "AB",
36
36
  "BC",
37
37
  "MB",
@@ -45,7 +45,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
45
45
  "QC",
46
46
  "SK",
47
47
  "YT"
48
- ], yt = ge(Mt), jt = [
48
+ ], Mt = ge(Tt), yt = [
49
49
  "AD",
50
50
  "AE",
51
51
  "AF",
@@ -323,7 +323,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
323
323
  "SE",
324
324
  "SI",
325
325
  "SK"
326
- ], ra = ge(jt), Ot = ge(tt), re = (e) => e ? tt.includes(e) : !1, zt = [
326
+ ], ra = ge(yt), jt = ge(tt), re = (e) => e ? tt.includes(e) : !1, Ot = [
327
327
  "01",
328
328
  "02",
329
329
  "03",
@@ -355,7 +355,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
355
355
  "29",
356
356
  "30",
357
357
  "31"
358
- ], Un = ge(zt), Et = [
358
+ ], Dn = ge(Ot), zt = [
359
359
  "A",
360
360
  "B",
361
361
  "C",
@@ -369,14 +369,14 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
369
369
  "K",
370
370
  "L",
371
371
  "M"
372
- ], Bt = ge(Et), rt = [
372
+ ], Et = ge(zt), rt = [
373
373
  { value: "individual" },
374
374
  { value: "corporation" },
375
375
  { value: "partnership" },
376
376
  { value: "trust" },
377
377
  { value: "other" },
378
378
  { value: "disregardedEntity" }
379
- ], Pt = rt.map((e) => e.value), _a = [
379
+ ], Bt = rt.map((e) => e.value), _a = [
380
380
  { value: "taxExemptOrganization" },
381
381
  { value: "privateFoundation" },
382
382
  { value: "internationalOrganization" },
@@ -384,7 +384,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
384
384
  { value: "foreignGovernmentControlledEntity" },
385
385
  { value: "foreignGovernmentIntegralPart" },
386
386
  { value: "estate" }
387
- ], Rt = _a.map((e) => e.value), wt = [
387
+ ], Rt = _a.map((e) => e.value), Pt = [
388
388
  { value: "individual" },
389
389
  { value: "corporation" },
390
390
  { value: "partnership" },
@@ -394,7 +394,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
394
394
  { value: "simpleTrust" },
395
395
  { value: "complexTrust" },
396
396
  { value: "grantorTrust" }
397
- ], Ht = Qa.map((e) => e.value), Lt = [
397
+ ], wt = Qa.map((e) => e.value), Ht = [
398
398
  "bg-bg",
399
399
  "cs-cz",
400
400
  "da-dk",
@@ -425,7 +425,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
425
425
  "sk-sk",
426
426
  "sl-si",
427
427
  "sv-se"
428
- ], Gt = ge(Lt), Dt = [
428
+ ], Lt = ge(Ht), Gt = [
429
429
  "01",
430
430
  "02",
431
431
  "03",
@@ -438,7 +438,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
438
438
  "10",
439
439
  "11",
440
440
  "12"
441
- ], xt = ge(Dt), Ut = [
441
+ ], xt = ge(Gt), Ut = [
442
442
  "A",
443
443
  "B",
444
444
  "C",
@@ -452,7 +452,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
452
452
  "K",
453
453
  "L",
454
454
  "M"
455
- ], Ft = ge(Ut), ot = [
455
+ ], Dt = ge(Ut), ot = [
456
456
  { value: "individual" },
457
457
  { value: "soleProprietor" },
458
458
  { value: "llc" },
@@ -463,13 +463,13 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
463
463
  { value: "trustEstate" },
464
464
  { value: "other" },
465
465
  { value: "disregardedEntity" }
466
- ], Kt = ot.map((e) => e.value), Xa = [
466
+ ], Ft = ot.map((e) => e.value), Xa = [
467
467
  { value: "cCorporation" },
468
468
  { value: "sCorporation" },
469
469
  { value: "partnership" }
470
- ], Vt = Xa.map(
470
+ ], Kt = Xa.map(
471
471
  (e) => e.value
472
- ), Wt = [
472
+ ), Vt = [
473
473
  { value: "individual" },
474
474
  { value: "llc" },
475
475
  { value: "cCorporation" },
@@ -477,7 +477,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
477
477
  { value: "partnership" },
478
478
  { value: "trustEstate" },
479
479
  { value: "other" }
480
- ], Jt = [
480
+ ], Wt = [
481
481
  "AL",
482
482
  "AK",
483
483
  "AS",
@@ -538,13 +538,13 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
538
538
  "WV",
539
539
  "WI",
540
540
  "WY"
541
- ], Zt = ge(Jt), st = /* @__PURE__ */ new Date(), qt = st.getFullYear() - 120, Fn = st.getFullYear(), Yt = Array.from(
542
- { length: Fn - qt },
541
+ ], Jt = ge(Wt), st = /* @__PURE__ */ new Date(), Zt = st.getFullYear() - 120, Fn = st.getFullYear(), qt = Array.from(
542
+ { length: Fn - Zt },
543
543
  (e, a) => Fn - a
544
- ), _t = Yt.map((e) => ({
544
+ ), Yt = qt.map((e) => ({
545
545
  value: e
546
- })), P = (e) => e === void 0 || e === "", V = (e) => !P(e), Da = (e, a) => {
547
- const n = !a && ((e == null ? void 0 : e.accountHolderUsAccountType) !== void 0 && (e == null ? void 0 : e.regardedOwnerUsPerson) === void 0 || (e == null ? void 0 : e.regardedOwnerUsPerson) === "yes") || !!(a != null && a.includes("W-9")), r = !a && ((e == null ? void 0 : e.accountHolderUsPerson) === "no" && (e == null ? void 0 : e.regardedOwnerUsPerson) === void 0 || (e == null ? void 0 : e.regardedOwnerUsPerson) === "no") || !!(a != null && a.includes("W-8BEN")) || !!(a != null && a.includes("W-8BEN-E")), o = !a && ((e == null ? void 0 : e.accountHolderForeignAccountType) === "individual" || (e == null ? void 0 : e.regardedOwnerForeignAccountType) === "individual") || !!(a != null && a.includes("W-8BEN")), s = !a && (!!(e != null && e.accountHolderForeignAccountType) && e.accountHolderForeignAccountType !== "individual" && e.accountHolderForeignAccountType !== "disregardedEntity" || !!(e != null && e.regardedOwnerForeignAccountType) && e.regardedOwnerForeignAccountType !== "individual") || !!(a != null && a.includes("W-8BEN-E")), l = !a && (e == null ? void 0 : e.accountHolderIsEuResident) !== void 0 || !!(a != null && a.includes("DAC7")), d = e.accountHolderForeignAccountType === "disregardedEntity" || e.accountHolderUsAccountType === "disregardedEntity" || e.accountHolderUsAccountType === "smllc" && e.accountHolderUsSmllcElection === "no", m = (e == null ? void 0 : e.accountHolderIsEuResident) === "yes" && (P(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1) && re(e == null ? void 0 : e.accountHolderTaxResidenceCountry1) || !re(e == null ? void 0 : e.accountHolderTaxResidenceCountry1)) && (P(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2) && re(e == null ? void 0 : e.accountHolderTaxResidenceCountry2) || !re(e == null ? void 0 : e.accountHolderTaxResidenceCountry2)) && (P(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3) && re(e == null ? void 0 : e.accountHolderTaxResidenceCountry3) || !re(e == null ? void 0 : e.accountHolderTaxResidenceCountry3)) && (P(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4) && re(e == null ? void 0 : e.accountHolderTaxResidenceCountry4) || !re(e == null ? void 0 : e.accountHolderTaxResidenceCountry4)) && (P(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5) && re(e == null ? void 0 : e.accountHolderTaxResidenceCountry5) || !re(e == null ? void 0 : e.accountHolderTaxResidenceCountry5)), h = V(e == null ? void 0 : e.accountHolderTaxResidenceCountry1) || V(e == null ? void 0 : e.accountHolderTaxResidenceCountry2) || V(e == null ? void 0 : e.accountHolderTaxResidenceCountry3) || V(e == null ? void 0 : e.accountHolderTaxResidenceCountry4) || V(e == null ? void 0 : e.accountHolderTaxResidenceCountry5), k = (e == null ? void 0 : e.accountHolderIsIndividual) === "yes" || (e == null ? void 0 : e.accountHolderUsAccountType) === "individual" || (e == null ? void 0 : e.accountHolderForeignAccountType) === "individual" || (e == null ? void 0 : e.accountHolderUsAccountType) === "disregardedEntity" && ((e == null ? void 0 : e.regardedOwnerForeignAccountType) === "individual" || (e == null ? void 0 : e.regardedOwnerUsAccountType) === "individual") || (e == null ? void 0 : e.accountHolderForeignAccountType) === "disregardedEntity" && ((e == null ? void 0 : e.regardedOwnerForeignAccountType) === "individual" || (e == null ? void 0 : e.regardedOwnerUsAccountType) === "individual");
546
+ })), P = (e) => e === void 0 || e === "", V = (e) => !P(e), xa = (e, a) => {
547
+ const n = !a && ((e == null ? void 0 : e.accountHolderUsAccountType) !== void 0 && (e == null ? void 0 : e.regardedOwnerUsPerson) === void 0 || (e == null ? void 0 : e.regardedOwnerUsPerson) === "yes") || !!(a != null && a.includes("W-9")), r = !a && ((e == null ? void 0 : e.accountHolderUsPerson) === "no" && (e == null ? void 0 : e.regardedOwnerUsPerson) === void 0 || (e == null ? void 0 : e.regardedOwnerUsPerson) === "no") || !!(a != null && a.includes("W-8BEN")) || !!(a != null && a.includes("W-8BEN-E")), o = !a && ((e == null ? void 0 : e.accountHolderForeignAccountType) === "individual" || (e == null ? void 0 : e.regardedOwnerForeignAccountType) === "individual") || !!(a != null && a.includes("W-8BEN")), s = !a && (!!(e != null && e.accountHolderForeignAccountType) && e.accountHolderForeignAccountType !== "individual" && e.accountHolderForeignAccountType !== "disregardedEntity" || !!(e != null && e.regardedOwnerForeignAccountType) && e.regardedOwnerForeignAccountType !== "individual") || !!(a != null && a.includes("W-8BEN-E")), l = !a && (e == null ? void 0 : e.accountHolderIsEuResident) !== void 0 || !!(a != null && a.includes("DAC7")), d = e.accountHolderForeignAccountType === "disregardedEntity" || e.accountHolderUsAccountType === "disregardedEntity" || e.accountHolderUsAccountType === "smllc" && e.accountHolderUsSmllcElection === "no", m = (e == null ? void 0 : e.accountHolderIsEuResident) === "yes" && (P(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1) && re(e == null ? void 0 : e.accountHolderTaxResidenceCountry1) || !re(e == null ? void 0 : e.accountHolderTaxResidenceCountry1)) && (P(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2) && re(e == null ? void 0 : e.accountHolderTaxResidenceCountry2) || !re(e == null ? void 0 : e.accountHolderTaxResidenceCountry2)) && (P(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3) && re(e == null ? void 0 : e.accountHolderTaxResidenceCountry3) || !re(e == null ? void 0 : e.accountHolderTaxResidenceCountry3)) && (P(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4) && re(e == null ? void 0 : e.accountHolderTaxResidenceCountry4) || !re(e == null ? void 0 : e.accountHolderTaxResidenceCountry4)) && (P(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5) && re(e == null ? void 0 : e.accountHolderTaxResidenceCountry5) || !re(e == null ? void 0 : e.accountHolderTaxResidenceCountry5)), h = V(e == null ? void 0 : e.accountHolderTaxResidenceCountry1) || V(e == null ? void 0 : e.accountHolderTaxResidenceCountry2) || V(e == null ? void 0 : e.accountHolderTaxResidenceCountry3) || V(e == null ? void 0 : e.accountHolderTaxResidenceCountry4) || V(e == null ? void 0 : e.accountHolderTaxResidenceCountry5), g = (e == null ? void 0 : e.accountHolderIsIndividual) === "yes" || (e == null ? void 0 : e.accountHolderUsAccountType) === "individual" || (e == null ? void 0 : e.accountHolderForeignAccountType) === "individual" || (e == null ? void 0 : e.accountHolderUsAccountType) === "disregardedEntity" && ((e == null ? void 0 : e.regardedOwnerForeignAccountType) === "individual" || (e == null ? void 0 : e.regardedOwnerUsAccountType) === "individual") || (e == null ? void 0 : e.accountHolderForeignAccountType) === "disregardedEntity" && ((e == null ? void 0 : e.regardedOwnerForeignAccountType) === "individual" || (e == null ? void 0 : e.regardedOwnerUsAccountType) === "individual");
548
548
  return {
549
549
  accountHolderIsDisregarded: d,
550
550
  hasNoEUTaxId: m,
@@ -554,9 +554,9 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
554
554
  isW8: r,
555
555
  isW8Ben: o,
556
556
  isW8BenE: s,
557
- isIndividual: k
557
+ isIndividual: g
558
558
  };
559
- }, Qt = () => ({
559
+ }, _t = () => ({
560
560
  accountHolderDateOfBirth: "dateOfBirth",
561
561
  regardedOwnerDateOfBirth: "dateOfBirth"
562
562
  }), Kn = (e, a) => new Date(a ?? 2012, e, 0).getDate(), lt = (e, a) => {
@@ -595,10 +595,10 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
595
595
  default:
596
596
  return "name";
597
597
  }
598
- }, Xt = (e) => e.accountHolderUsAccountType !== void 0 ? lt(
598
+ }, Qt = (e) => e.accountHolderUsAccountType !== void 0 ? lt(
599
599
  e.accountHolderUsAccountType,
600
600
  e.accountHolderUsSmllcElection
601
- ) : e.accountHolderForeignAccountType !== void 0 ? dt(e.accountHolderForeignAccountType) : e.accountHolderIsIndividual === "yes" ? "nameOfIndividual" : e.accountHolderIsIndividual === "no" ? "nameOfEntity" : "name", $t = (e) => e.regardedOwnerUsPerson === "yes" ? lt(e.regardedOwnerUsAccountType) : e.regardedOwnerUsPerson === "no" ? dt(e.regardedOwnerForeignAccountType) : "name", er = (e) => ({
601
+ ) : e.accountHolderForeignAccountType !== void 0 ? dt(e.accountHolderForeignAccountType) : e.accountHolderIsIndividual === "yes" ? "nameOfIndividual" : e.accountHolderIsIndividual === "no" ? "nameOfEntity" : "name", Xt = (e) => e.regardedOwnerUsPerson === "yes" ? lt(e.regardedOwnerUsAccountType) : e.regardedOwnerUsPerson === "no" ? dt(e.regardedOwnerForeignAccountType) : "name", $t = (e) => ({
602
602
  accountHolderIsIndividual: "isIndividual",
603
603
  accountHolderUsPerson: "usPerson",
604
604
  accountHolderUsAccountType: "usAccountType",
@@ -638,7 +638,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
638
638
  accountHolderVatIsNotRequired: "vatIsNotRequired",
639
639
  accountHolderBusinessRegistrationCountry: "businessRegistrationCountry",
640
640
  accountHolderBusinessRegistrationNumber: "businessRegistrationNumber",
641
- accountHolderName: Xt(e),
641
+ accountHolderName: Qt(e),
642
642
  accountHolderDateOfBirth: "dateOfBirth",
643
643
  accountHolderDbaName: "dbaName",
644
644
  accountHolderAddress: "address",
@@ -670,7 +670,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
670
670
  regardedOwnerForeignTrustClassification: "foreignTrustClassification",
671
671
  regardedOwnerForeignOtherClassification: "foreignOtherClassification",
672
672
  regardedOwnerCountryOfCitizenship: "countryOfCitizenship",
673
- regardedOwnerName: $t(e),
673
+ regardedOwnerName: Xt(e),
674
674
  regardedOwnerDateOfBirth: "dateOfBirth",
675
675
  regardedOwnerDbaName: "dbaName",
676
676
  regardedOwnerAddress: "address",
@@ -688,21 +688,43 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
688
688
  regardedOwnerMailingAddressState: "state",
689
689
  regardedOwnerMailingAddressZip: "zip",
690
690
  regardedOwnerMailingAddressCountry: "country"
691
- }), oa = (e) => e.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), ut = (e, a) => {
692
- if (!a)
693
- return e || {};
694
- const n = { ...e };
695
- return ir(a).forEach((r) => {
696
- ar(a[r]) ? (n[r] || (n[r] = {}), n[r] = ut(n[r], a[r])) : n[r] = a[r];
697
- }), n;
698
- }, ar = (e) => !!e && typeof e == "object" && !Array.isArray(e), ir = (e) => Object.keys(e), nr = (e) => e.replace(/[A-Z]/g, (a) => `_${a.toLowerCase()}`), Za = (e) => Array.isArray(e) ? e.map((a) => Za(a)) : typeof e == "function" || e !== Object(e) ? e : Object.fromEntries(
691
+ }), oa = (e) => e.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), er = (e, a) => {
692
+ var r, o, s, l, d, m, h, g, c, p, f, C, N, T, y, R, v, L, J, I;
693
+ const n = { ...e, ...a };
694
+ return (e != null && e.accountHolder || a != null && a.accountHolder) && (n.accountHolder = {
695
+ ...e == null ? void 0 : e.accountHolder,
696
+ ...a == null ? void 0 : a.accountHolder
697
+ }, ((r = e == null ? void 0 : e.accountHolder) != null && r.address || (o = a == null ? void 0 : a.accountHolder) != null && o.address) && (n.accountHolder.address = {
698
+ ...(s = e == null ? void 0 : e.accountHolder) == null ? void 0 : s.address,
699
+ ...(l = a == null ? void 0 : a.accountHolder) == null ? void 0 : l.address
700
+ }), ((d = e == null ? void 0 : e.accountHolder) != null && d.mailingAddress || (m = a == null ? void 0 : a.accountHolder) != null && m.mailingAddress) && (n.accountHolder.mailingAddress = {
701
+ ...(h = e == null ? void 0 : e.accountHolder) == null ? void 0 : h.mailingAddress,
702
+ ...(g = a == null ? void 0 : a.accountHolder) == null ? void 0 : g.mailingAddress
703
+ }), (c = e == null ? void 0 : e.accountHolder) != null && c.taxResidences && (n.accountHolder.taxResidences = JSON.parse(
704
+ JSON.stringify((p = e == null ? void 0 : e.accountHolder) == null ? void 0 : p.taxResidences)
705
+ )), (f = a == null ? void 0 : a.accountHolder) != null && f.taxResidences && (n.accountHolder.taxResidences = JSON.parse(
706
+ JSON.stringify((C = a == null ? void 0 : a.accountHolder) == null ? void 0 : C.taxResidences)
707
+ ))), (e != null && e.regardedOwner || a != null && a.regardedOwner) && (n.regardedOwner = {
708
+ ...e == null ? void 0 : e.regardedOwner,
709
+ ...a == null ? void 0 : a.regardedOwner
710
+ }, n.regardedOwner = {
711
+ ...e == null ? void 0 : e.regardedOwner,
712
+ ...a == null ? void 0 : a.regardedOwner
713
+ }, ((N = e == null ? void 0 : e.regardedOwner) != null && N.address || (T = a == null ? void 0 : a.regardedOwner) != null && T.address) && (n.regardedOwner.address = {
714
+ ...(y = e == null ? void 0 : e.regardedOwner) == null ? void 0 : y.address,
715
+ ...(R = a == null ? void 0 : a.regardedOwner) == null ? void 0 : R.address
716
+ }), ((v = e == null ? void 0 : e.regardedOwner) != null && v.mailingAddress || (L = a == null ? void 0 : a.regardedOwner) != null && L.mailingAddress) && (n.regardedOwner.mailingAddress = {
717
+ ...(J = e == null ? void 0 : e.regardedOwner) == null ? void 0 : J.mailingAddress,
718
+ ...(I = a == null ? void 0 : a.regardedOwner) == null ? void 0 : I.mailingAddress
719
+ })), n;
720
+ }, ar = (e) => e.replace(/[A-Z]/g, (a) => `_${a.toLowerCase()}`), Za = (e) => Array.isArray(e) ? e.map((a) => Za(a)) : typeof e == "function" || e !== Object(e) ? e : Object.fromEntries(
699
721
  Object.entries(e).map(
700
722
  ([a, n]) => [
701
- nr(a),
723
+ ar(a),
702
724
  Za(n)
703
725
  ]
704
726
  )
705
- ), tr = "0.4.0", L = (e) => e === void 0 ? void 0 : e === "yes", rr = (e) => {
727
+ ), ir = "0.4.2", x = (e) => e === void 0 ? void 0 : e === "yes", nr = (e) => {
706
728
  const a = {
707
729
  city: e.accountHolderAddressCity,
708
730
  country: e.accountHolderAddressCountry,
@@ -712,7 +734,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
712
734
  postalCode: e.accountHolderAddressZip
713
735
  };
714
736
  return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
715
- }, or = (e) => {
737
+ }, tr = (e) => {
716
738
  const a = {
717
739
  city: e.regardedOwnerAddressCity,
718
740
  country: e.regardedOwnerAddressCountry,
@@ -722,7 +744,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
722
744
  postalCode: e.regardedOwnerAddressZip
723
745
  };
724
746
  return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
725
- }, sr = (e) => {
747
+ }, rr = (e) => {
726
748
  const a = {
727
749
  city: e.accountHolderMailingAddressCity,
728
750
  country: e.accountHolderMailingAddressCountry,
@@ -732,7 +754,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
732
754
  postalCode: e.accountHolderMailingAddressZip
733
755
  };
734
756
  return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
735
- }, lr = (e) => {
757
+ }, or = (e) => {
736
758
  const a = {
737
759
  city: e.regardedOwnerMailingAddressCity,
738
760
  country: e.regardedOwnerMailingAddressCountry,
@@ -742,40 +764,40 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
742
764
  postalCode: e.regardedOwnerMailingAddressZip
743
765
  };
744
766
  return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
745
- }, dr = (e) => {
767
+ }, sr = (e) => {
746
768
  const n = [
747
769
  {
748
770
  country: e.accountHolderTaxResidenceCountry1,
749
771
  tin: e.accountHolderTaxResidenceForeignTin1,
750
- tinNotRequired: L(
772
+ tinNotRequired: x(
751
773
  e.accountHolderTaxResidenceForeignTin1IsNotRequired
752
774
  )
753
775
  },
754
776
  {
755
777
  country: e.accountHolderTaxResidenceCountry2,
756
778
  tin: e.accountHolderTaxResidenceForeignTin2,
757
- tinNotRequired: L(
779
+ tinNotRequired: x(
758
780
  e.accountHolderTaxResidenceForeignTin2IsNotRequired
759
781
  )
760
782
  },
761
783
  {
762
784
  country: e.accountHolderTaxResidenceCountry3,
763
785
  tin: e.accountHolderTaxResidenceForeignTin3,
764
- tinNotRequired: L(
786
+ tinNotRequired: x(
765
787
  e.accountHolderTaxResidenceForeignTin3IsNotRequired
766
788
  )
767
789
  },
768
790
  {
769
791
  country: e.accountHolderTaxResidenceCountry4,
770
792
  tin: e.accountHolderTaxResidenceForeignTin4,
771
- tinNotRequired: L(
793
+ tinNotRequired: x(
772
794
  e.accountHolderTaxResidenceForeignTin4IsNotRequired
773
795
  )
774
796
  },
775
797
  {
776
798
  country: e.accountHolderTaxResidenceCountry5,
777
799
  tin: e.accountHolderTaxResidenceForeignTin5,
778
- tinNotRequired: L(
800
+ tinNotRequired: x(
779
801
  e.accountHolderTaxResidenceForeignTin5IsNotRequired
780
802
  )
781
803
  }
@@ -783,14 +805,14 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
783
805
  (r) => Object.entries(r).some(([, o]) => o !== void 0)
784
806
  );
785
807
  return n.length > 0 ? n : void 0;
786
- }, ur = (e) => {
808
+ }, lr = (e) => {
787
809
  const a = {
788
- address: rr(e),
810
+ address: nr(e),
789
811
  countryOfCitizenship: e.accountHolderCountryOfCitizenship,
790
812
  dateOfBirth: e.accountHolderDateOfBirth,
791
813
  dbaName: e.accountHolderDbaName,
792
- mailingAddress: sr(e),
793
- mailingAddressIsDifferent: L(
814
+ mailingAddress: rr(e),
815
+ mailingAddressIsDifferent: x(
794
816
  e.accountHolderMailingAddressIsDifferent
795
817
  ),
796
818
  name: e.accountHolderName,
@@ -799,75 +821,75 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
799
821
  financialAccountIdentifier: e.accountHolderFinancialAccountIdentifier,
800
822
  financialAccountName: e.accountHolderFinancialAccountName,
801
823
  ftin: e.accountHolderForeignTin,
802
- ftinNotLegallyRequired: L(
824
+ ftinNotLegallyRequired: x(
803
825
  e.accountHolderForeignTinIsNotRequired
804
826
  ),
805
- taxResidences: dr(e),
827
+ taxResidences: sr(e),
806
828
  tin: e.accountHolderUsTin,
807
829
  vatin: e.accountHolderVatIdentificationNumber,
808
830
  vatinCountry: e.accountHolderVatCountry,
809
831
  businessRegistrationCountry: e.accountHolderBusinessRegistrationCountry,
810
832
  businessRegistrationNumber: e.accountHolderBusinessRegistrationNumber,
811
- vatinNotRequired: L(e.accountHolderVatIsNotRequired),
833
+ vatinNotRequired: x(e.accountHolderVatIsNotRequired),
812
834
  exemptFatcaCode: e.exemptFatcaCode,
813
835
  exemptPayeeCode: e.exemptPayeeCode,
814
- isIndividual: L(e.accountHolderIsIndividual),
815
- isEuResident: L(e.accountHolderIsEuResident),
816
- isUsPerson: L(e.accountHolderUsPerson),
836
+ isIndividual: x(e.accountHolderIsIndividual),
837
+ isEuResident: x(e.accountHolderIsEuResident),
838
+ isUsPerson: x(e.accountHolderUsPerson),
817
839
  usAccountType: e.accountHolderUsAccountType,
818
- usSmllcElection: L(e.accountHolderUsSmllcElection),
840
+ usSmllcElection: x(e.accountHolderUsSmllcElection),
819
841
  usLlcClassification: e.accountHolderUsLlcClassification,
820
842
  usOtherClassification: e.accountHolderUsOtherClassification,
821
- usTrustEstateEin: L(e.accountHolderUsTrustEstateEin),
843
+ usTrustEstateEin: x(e.accountHolderUsTrustEstateEin),
822
844
  foreignAccountType: e.accountHolderForeignAccountType,
823
845
  foreignTrustClassification: e.accountHolderForeignTrustClassification,
824
846
  foreignOtherClassification: e.accountHolderForeignOtherClassification
825
847
  };
826
848
  return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
827
- }, cr = (e) => {
849
+ }, dr = (e) => {
828
850
  const a = {
829
- address: or(e),
851
+ address: tr(e),
830
852
  countryOfCitizenship: e.regardedOwnerCountryOfCitizenship,
831
853
  dateOfBirth: e.regardedOwnerDateOfBirth,
832
854
  dbaName: e.regardedOwnerDbaName,
833
- mailingAddress: lr(e),
834
- mailingAddressIsDifferent: L(
855
+ mailingAddress: or(e),
856
+ mailingAddressIsDifferent: x(
835
857
  e.regardedOwnerMailingAddressIsDifferent
836
858
  ),
837
859
  name: e.regardedOwnerName,
838
860
  ftin: e.regardedOwnerForeignTin,
839
- ftinNotLegallyRequired: L(
861
+ ftinNotLegallyRequired: x(
840
862
  e.regardedOwnerForeignTinIsNotRequired
841
863
  ),
842
864
  tin: e.regardedOwnerUsTin,
843
865
  exemptFatcaCode: e.exemptFatcaCode,
844
866
  exemptPayeeCode: e.exemptPayeeCode,
845
- isUsPerson: L(e.regardedOwnerUsPerson),
867
+ isUsPerson: x(e.regardedOwnerUsPerson),
846
868
  usAccountType: e.regardedOwnerUsAccountType,
847
869
  usLlcClassification: e.regardedOwnerUsLlcClassification,
848
870
  usOtherClassification: e.regardedOwnerUsOtherClassification,
849
- usTrustEstateEin: L(e.regardedOwnerUsTrustEstateEin),
871
+ usTrustEstateEin: x(e.regardedOwnerUsTrustEstateEin),
850
872
  foreignAccountType: e.regardedOwnerForeignAccountType,
851
873
  foreignTrustClassification: e.regardedOwnerForeignTrustClassification,
852
874
  foreignOtherClassification: e.regardedOwnerForeignOtherClassification
853
875
  };
854
876
  return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
855
- }, mr = (e) => ({
856
- accountHolder: ur(e),
857
- regardedOwner: cr(e),
858
- hasCertified: L(e.iCertifyToAll),
859
- isNotSubjectBackupWithholding: L(
877
+ }, ur = (e) => ({
878
+ accountHolder: lr(e),
879
+ regardedOwner: dr(e),
880
+ hasCertified: x(e.iCertifyToAll),
881
+ isNotSubjectBackupWithholding: x(
860
882
  e.iAmNotSubjectToBackupWithholding
861
883
  ),
862
- isConfirmedCorrectComplete: L(
884
+ isConfirmedCorrectComplete: x(
863
885
  e.iConfirmTheInformationIsCorrectComplete
864
886
  ),
865
887
  signature: e.signature,
866
888
  documentType: "COMPREHENSIVE",
867
- source: `Taxbit React SDK v${tr}`,
889
+ source: `Taxbit React SDK v${ir}`,
868
890
  signatureDate: (/* @__PURE__ */ new Date()).toISOString()
869
891
  }), Vn = (e) => {
870
- if (e && Pt.includes(
892
+ if (e && Bt.includes(
871
893
  e
872
894
  ))
873
895
  return e;
@@ -877,20 +899,20 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
877
899
  ))
878
900
  return e;
879
901
  }, Jn = (e) => {
880
- if (e && Ht.includes(
902
+ if (e && wt.includes(
881
903
  e
882
904
  ))
883
905
  return e;
884
906
  }, Zn = (e) => {
885
- if (e && Vt.includes(e))
907
+ if (e && Kt.includes(e))
886
908
  return e;
887
909
  }, qn = (e) => {
888
- if (e && Kt.includes(
910
+ if (e && Ft.includes(
889
911
  e
890
912
  ))
891
913
  return e;
892
- }, ct = (e) => {
893
- const { hasNoEUTaxId: a } = Da(e), n = (o) => V(e[`accountHolderTaxResidenceForeignTin${o}`]) || e[`accountHolderTaxResidenceForeignTin${o}IsNotRequired`] === "yes", r = (o) => V(e[`accountHolderTaxResidenceCountry${o}`]) && P(e[`accountHolderTaxResidenceForeignTin${o}IsNotRequired`]);
914
+ }, ut = (e) => {
915
+ const { hasNoEUTaxId: a } = xa(e), n = (o) => V(e[`accountHolderTaxResidenceForeignTin${o}`]) || e[`accountHolderTaxResidenceForeignTin${o}IsNotRequired`] === "yes", r = (o) => V(e[`accountHolderTaxResidenceCountry${o}`]) && P(e[`accountHolderTaxResidenceForeignTin${o}IsNotRequired`]);
894
916
  return {
895
917
  accountHolderUsPerson: !0,
896
918
  accountHolderIsEuResident: !0,
@@ -970,7 +992,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
970
992
  iConfirmTheInformationIsCorrectComplete: !0,
971
993
  signature: !0
972
994
  };
973
- }, Pa = [
995
+ }, Ra = [
974
996
  "000000000",
975
997
  "111111111",
976
998
  "222222222",
@@ -987,7 +1009,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
987
1009
  "876543210",
988
1010
  "987654321",
989
1011
  "098765432"
990
- ], Ra = /^\d{9}$|^\d{3}-\d{2}-\d{4}$|^\d{2}-\d{7}$/, Fa = /^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/, Ka = /^\d{5}$|^\d{5}-\d{4}$/, mt = (e) => /^(.)\1+$/.test(e), qa = (e) => V(e) && e.length >= 2 && e.length <= 22 && !mt(e), gr = (e) => V(e) && e.length >= 8 && e.length <= 14 && !mt(e), wa = (e) => (a) => {
1012
+ ], Pa = /^\d{9}$|^\d{3}-\d{2}-\d{4}$|^\d{2}-\d{7}$/, Fa = /^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/, Ka = /^\d{5}$|^\d{5}-\d{4}$/, ct = (e) => /^(.)\1+$/.test(e), qa = (e) => V(e) && e.length >= 2 && e.length <= 22 && !ct(e), cr = (e) => V(e) && e.length >= 8 && e.length <= 14 && !ct(e), wa = (e) => (a) => {
991
1013
  const n = a[`accountHolderTaxResidenceForeignTin${e}`];
992
1014
  if (!qa(n) && V(a[`accountHolderTaxResidenceCountry${e}`]) && P(
993
1015
  a[`accountHolderTaxResidenceForeignTin${e}IsNotRequired`]
@@ -999,11 +1021,11 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
999
1021
  accountHolderDateOfBirth: (e) => {
1000
1022
  const a = e.accountHolderDateOfBirth;
1001
1023
  if (V(a)) {
1002
- if (!Nt(a))
1024
+ if (!St(a))
1003
1025
  return ["mustBeInDateFormat"];
1004
- if (!Tt(a))
1026
+ if (!Nt(a))
1005
1027
  return ["invalidDate"];
1006
- if (!St(a))
1028
+ if (!It(a))
1007
1029
  return ["mustBeValidBirthDate"];
1008
1030
  }
1009
1031
  },
@@ -1036,20 +1058,20 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1036
1058
  if ((e == null ? void 0 : e.accountHolderUsAccountType) !== void 0) {
1037
1059
  if (P(a))
1038
1060
  return;
1039
- if (!Ra.test(a))
1061
+ if (!Pa.test(a))
1040
1062
  return ["mustBeNineDigits"];
1041
- if (Pa.includes(a))
1063
+ if (Ra.includes(a))
1042
1064
  return ["invalid"];
1043
1065
  } else if ((e == null ? void 0 : e.accountHolderUsPerson) === "no" && a !== void 0 && a !== "") {
1044
- if (!Ra.test(a))
1066
+ if (!Pa.test(a))
1045
1067
  return ["mustBeNineDigits"];
1046
- if (Pa.includes(a))
1068
+ if (Ra.includes(a))
1047
1069
  return ["invalid"];
1048
1070
  }
1049
1071
  },
1050
1072
  accountHolderVatIdentificationNumber: (e) => {
1051
1073
  const a = e.accountHolderVatIdentificationNumber;
1052
- if (e.accountHolderVatIsNotRequired !== "yes" && !gr(a))
1074
+ if (e.accountHolderVatIsNotRequired !== "yes" && !cr(a))
1053
1075
  return ["invalid"];
1054
1076
  },
1055
1077
  accountHolderBusinessRegistrationNumber: (e) => {
@@ -1101,14 +1123,14 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1101
1123
  regardedOwnerUsTin: (e) => {
1102
1124
  const a = e.regardedOwnerUsTin;
1103
1125
  if ((e == null ? void 0 : e.regardedOwnerUsPerson) === "yes") {
1104
- if (V(a) && !Ra.test(a))
1126
+ if (V(a) && !Pa.test(a))
1105
1127
  return ["mustBeNineDigits"];
1106
- if (V(a) && Pa.includes(a))
1128
+ if (V(a) && Ra.includes(a))
1107
1129
  return ["invalid"];
1108
1130
  } else if ((e == null ? void 0 : e.regardedOwnerUsPerson) === "no" && a !== void 0 && a !== "") {
1109
- if (!Ra.test(a))
1131
+ if (!Pa.test(a))
1110
1132
  return ["mustBeNineDigits"];
1111
- if (Pa.includes(a))
1133
+ if (Ra.includes(a))
1112
1134
  return ["invalid"];
1113
1135
  }
1114
1136
  },
@@ -1126,8 +1148,8 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1126
1148
  if (e.signature !== e.accountHolderName && (e.accountHolderUsAccountType === "individual" || e.accountHolderForeignAccountType === "individual"))
1127
1149
  return ["mustMatchName"];
1128
1150
  }
1129
- }, kr = (e) => {
1130
- const a = ct(e);
1151
+ }, mr = (e) => {
1152
+ const a = ut(e);
1131
1153
  return Object.fromEntries(
1132
1154
  Object.keys(e).map((n) => {
1133
1155
  var o;
@@ -1138,7 +1160,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1138
1160
  ];
1139
1161
  }).filter(([, n]) => n)
1140
1162
  );
1141
- }, gt = (e) => ({
1163
+ }, mt = (e) => ({
1142
1164
  accountHolderUsPerson: e.includes("W-9") && (e.includes("W-8BEN") || e.includes("W-8BEN-E")),
1143
1165
  accountHolderIsEuResident: e.includes("DAC7"),
1144
1166
  accountHolderIsIndividual: e.includes("DAC7") && !(e.includes("W-9") || e.includes("W-8BEN") || e.includes("W-8BEN-E")),
@@ -1248,8 +1270,8 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1248
1270
  accountHolderMailingAddress: e.includes("W-8BEN") || e.includes("W-8BEN-E") || e.includes("W-9"),
1249
1271
  regardedOwnerAddress: e.includes("W-8BEN") || e.includes("W-8BEN-E") || e.includes("W-9"),
1250
1272
  regardedOwnerMailingAddress: e.includes("W-8BEN") || e.includes("W-8BEN-E") || e.includes("W-9")
1251
- }), hr = (e = {}, a) => {
1252
- const n = gt(a), {
1273
+ }), gr = (e = {}, a) => {
1274
+ const n = mt(a), {
1253
1275
  accountHolderIsDisregarded: r,
1254
1276
  isW9: o,
1255
1277
  isW8BenE: s,
@@ -1257,8 +1279,8 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1257
1279
  hasNoEUTaxId: d,
1258
1280
  hasTaxResidence: m,
1259
1281
  isDac7: h,
1260
- isIndividual: k
1261
- } = Da(e, a), c = h && e.accountHolderIsEuResident === "yes";
1282
+ isIndividual: g
1283
+ } = xa(e, a), c = h && e.accountHolderIsEuResident === "yes";
1262
1284
  return {
1263
1285
  ...n,
1264
1286
  // Account Holder Account Classification
@@ -1280,8 +1302,8 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1280
1302
  accountHolderAddressStreet: e.accountHolderIsEuResident === "yes" || e.accountHolderUsPerson !== void 0 || e.accountHolderUsAccountType !== void 0,
1281
1303
  accountHolderAddressZip: e.accountHolderIsEuResident === "yes" || e.accountHolderUsPerson !== void 0 || e.accountHolderUsAccountType !== void 0,
1282
1304
  accountHolderCountryOfCitizenship: e.accountHolderUsPerson === "no",
1283
- accountHolderCityOfBirth: k && d && m,
1284
- accountHolderCountryOfBirth: k && d && m,
1305
+ accountHolderCityOfBirth: g && d && m,
1306
+ accountHolderCountryOfBirth: g && d && m,
1285
1307
  accountHolderDateOfBirth: e.accountHolderIsIndividual === "yes" && e.accountHolderIsEuResident === "yes" || e.accountHolderForeignAccountType === "individual",
1286
1308
  accountHolderMailingAddressIsDifferent: e.accountHolderUsPerson === "no",
1287
1309
  accountHolderMailingAddressCity: e.accountHolderMailingAddressIsDifferent === "yes",
@@ -1296,8 +1318,8 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1296
1318
  accountHolderVatIdentificationNumber: c,
1297
1319
  accountHolderVatIsNotRequired: c,
1298
1320
  accountHolderVatCountry: c,
1299
- accountHolderBusinessRegistrationNumber: !k && e.accountHolderIsEuResident === "yes",
1300
- accountHolderBusinessRegistrationCountry: !k && e.accountHolderIsEuResident === "yes",
1321
+ accountHolderBusinessRegistrationNumber: !g && e.accountHolderIsEuResident === "yes",
1322
+ accountHolderBusinessRegistrationCountry: !g && e.accountHolderIsEuResident === "yes",
1301
1323
  accountHolderTaxResidenceCountry1: c,
1302
1324
  accountHolderTaxResidenceForeignTin1: c,
1303
1325
  accountHolderShowTaxResidence2: c,
@@ -1362,7 +1384,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1362
1384
  regardedOwnerMailingAddress: e.regardedOwnerMailingAddressIsDifferent === "yes"
1363
1385
  };
1364
1386
  }, Yn = (e, a) => {
1365
- var o, s, l, d, m, h, k, c, v, A, C, S, N, O, R, p, U, ae, T, y, G, te, Be, Pe, Ae, J, Q, ie, be, ue, Ce, Ie, Se, z, D, Ne, la, da, Re, we, Te, He, Me, ua, Fe, ca, ma, ye, je, Ke, Ve, Oe, ga, ka, Le, ha, va, We, Je, ve, pa, Ze, qe, Ge, fa, Aa, ba, Ca, Ia, Sa, Na, De, Ye, ce, xe, Ue, _e, Ta, Qe, Ma, Xe, $e, ya, ja, ea, Oa, za, Ea, Ba, t, u, g, b, j, B, M, I, F, w, H, Z, me, aa, ne, ei, ai, ii, ni, ti, ri, oi, si, li, di, ui, ci, mi, gi, ki, hi, vi, pi, fi, Ai, bi, Ci, Ii, Si, Ni, Ti, Mi, yi, ji, Oi, zi, Ei, Bi, Pi, Ri, wi, Hi, Li, Gi, Di, xi, Ui, Fi, Ki, Vi, Wi, Ji, Zi, qi, Yi, _i, Qi, Xi, $i, en, an, nn, tn, rn, on, sn, ln, dn, un, cn, mn, gn, kn, hn, vn, pn, fn, An, bn, Cn, In, Sn, Nn, Tn, Mn, yn, jn, On, zn, En, Bn, Pn, Rn, wn, Hn, Ln, Gn, Dn;
1387
+ var o, s, l, d, m, h, g, c, p, f, C, N, T, y, R, v, L, J, I, j, G, ie, Be, Re, Ae, Z, X, ne, be, ue, Ce, Ie, Se, z, U, Ne, la, da, Pe, we, Te, He, Me, ua, Fe, ca, ma, ye, je, Ke, Ve, Oe, ga, ka, Le, ha, pa, We, Je, pe, va, Ze, qe, Ge, fa, Aa, ba, Ca, Ia, Sa, Na, xe, Ye, ce, Ue, De, _e, Ta, Qe, Ma, Xe, $e, ya, ja, ea, Oa, za, Ea, Ba, t, u, k, b, O, B, M, S, F, w, H, q, me, aa, te, ei, ai, ii, ni, ti, ri, oi, si, li, di, ui, ci, mi, gi, ki, hi, pi, vi, fi, Ai, bi, Ci, Ii, Si, Ni, Ti, Mi, yi, ji, Oi, zi, Ei, Bi, Ri, Pi, wi, Hi, Li, Gi, xi, Ui, Di, Fi, Ki, Vi, Wi, Ji, Zi, qi, Yi, _i, Qi, Xi, $i, en, an, nn, tn, rn, on, sn, ln, dn, un, cn, mn, gn, kn, hn, pn, vn, fn, An, bn, Cn, In, Sn, Nn, Tn, Mn, yn, jn, On, zn, En, Bn, Rn, Pn, wn, Hn, Ln, Gn, xn;
1366
1388
  if (e == null)
1367
1389
  return {};
1368
1390
  const n = {
@@ -1372,24 +1394,24 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1372
1394
  accountHolderCityOfBirth: (d = e.accountHolder) == null ? void 0 : d.cityOfBirth,
1373
1395
  accountHolderCountryOfBirth: (m = e.accountHolder) == null ? void 0 : m.countryOfBirth,
1374
1396
  accountHolderUsTin: (h = e.accountHolder) == null ? void 0 : h.tin,
1375
- accountHolderForeignTin: (k = e.accountHolder) != null && k.ftinNotLegallyRequired || (c = e.accountHolder) == null ? void 0 : c.ftin,
1376
- accountHolderForeignTinIsNotRequired: (v = e.accountHolder) != null && v.ftinNotLegallyRequired ? "yes" : void 0,
1377
- accountHolderCountryOfCitizenship: (A = e.accountHolder) == null ? void 0 : A.countryOfCitizenship,
1378
- accountHolderAddress: (S = (C = e.accountHolder) == null ? void 0 : C.address) == null ? void 0 : S.country,
1379
- accountHolderAddressStreet: (O = (N = e.accountHolder) == null ? void 0 : N.address) == null ? void 0 : O.firstLine,
1380
- accountHolderAddressStreet2: (p = (R = e.accountHolder) == null ? void 0 : R.address) == null ? void 0 : p.secondLine,
1381
- accountHolderAddressCity: (ae = (U = e.accountHolder) == null ? void 0 : U.address) == null ? void 0 : ae.city,
1382
- accountHolderAddressState: (y = (T = e.accountHolder) == null ? void 0 : T.address) == null ? void 0 : y.stateOrProvince,
1383
- accountHolderAddressZip: (te = (G = e.accountHolder) == null ? void 0 : G.address) == null ? void 0 : te.postalCode,
1384
- accountHolderAddressCountry: (Pe = (Be = e.accountHolder) == null ? void 0 : Be.address) == null ? void 0 : Pe.country,
1397
+ accountHolderForeignTin: (g = e.accountHolder) != null && g.ftinNotLegallyRequired || (c = e.accountHolder) == null ? void 0 : c.ftin,
1398
+ accountHolderForeignTinIsNotRequired: (p = e.accountHolder) != null && p.ftinNotLegallyRequired ? "yes" : void 0,
1399
+ accountHolderCountryOfCitizenship: (f = e.accountHolder) == null ? void 0 : f.countryOfCitizenship,
1400
+ accountHolderAddress: (N = (C = e.accountHolder) == null ? void 0 : C.address) == null ? void 0 : N.country,
1401
+ accountHolderAddressStreet: (y = (T = e.accountHolder) == null ? void 0 : T.address) == null ? void 0 : y.firstLine,
1402
+ accountHolderAddressStreet2: (v = (R = e.accountHolder) == null ? void 0 : R.address) == null ? void 0 : v.secondLine,
1403
+ accountHolderAddressCity: (J = (L = e.accountHolder) == null ? void 0 : L.address) == null ? void 0 : J.city,
1404
+ accountHolderAddressState: (j = (I = e.accountHolder) == null ? void 0 : I.address) == null ? void 0 : j.stateOrProvince,
1405
+ accountHolderAddressZip: (ie = (G = e.accountHolder) == null ? void 0 : G.address) == null ? void 0 : ie.postalCode,
1406
+ accountHolderAddressCountry: (Re = (Be = e.accountHolder) == null ? void 0 : Be.address) == null ? void 0 : Re.country,
1385
1407
  accountHolderMailingAddressIsDifferent: (Ae = e.accountHolder) != null && Ae.mailingAddressIsDifferent ? "yes" : void 0,
1386
- accountHolderMailingAddress: (Q = (J = e.accountHolder) == null ? void 0 : J.mailingAddress) == null ? void 0 : Q.country,
1387
- accountHolderMailingAddressStreet: (be = (ie = e.accountHolder) == null ? void 0 : ie.mailingAddress) == null ? void 0 : be.firstLine,
1408
+ accountHolderMailingAddress: (X = (Z = e.accountHolder) == null ? void 0 : Z.mailingAddress) == null ? void 0 : X.country,
1409
+ accountHolderMailingAddressStreet: (be = (ne = e.accountHolder) == null ? void 0 : ne.mailingAddress) == null ? void 0 : be.firstLine,
1388
1410
  accountHolderMailingAddressStreet2: (Ce = (ue = e.accountHolder) == null ? void 0 : ue.mailingAddress) == null ? void 0 : Ce.secondLine,
1389
1411
  accountHolderMailingAddressCity: (Se = (Ie = e.accountHolder) == null ? void 0 : Ie.mailingAddress) == null ? void 0 : Se.city,
1390
- accountHolderMailingAddressState: (D = (z = e.accountHolder) == null ? void 0 : z.mailingAddress) == null ? void 0 : D.stateOrProvince,
1412
+ accountHolderMailingAddressState: (U = (z = e.accountHolder) == null ? void 0 : z.mailingAddress) == null ? void 0 : U.stateOrProvince,
1391
1413
  accountHolderMailingAddressZip: (la = (Ne = e.accountHolder) == null ? void 0 : Ne.mailingAddress) == null ? void 0 : la.postalCode,
1392
- accountHolderMailingAddressCountry: (Re = (da = e.accountHolder) == null ? void 0 : da.mailingAddress) == null ? void 0 : Re.country,
1414
+ accountHolderMailingAddressCountry: (Pe = (da = e.accountHolder) == null ? void 0 : da.mailingAddress) == null ? void 0 : Pe.country,
1393
1415
  accountHolderIsIndividual: ((we = e.accountHolder) == null ? void 0 : we.isIndividual) === !0 ? "yes" : ((Te = e.accountHolder) == null ? void 0 : Te.isIndividual) === !1 ? "no" : void 0,
1394
1416
  accountHolderIsEuResident: ((He = e.accountHolder) == null ? void 0 : He.isEuResident) === !0 ? "yes" : ((Me = e.accountHolder) == null ? void 0 : Me.isEuResident) === !1 ? "no" : void 0,
1395
1417
  accountHolderUsPerson: ((ua = e.accountHolder) == null ? void 0 : ua.isUsPerson) === !0 ? "yes" : ((Fe = e.accountHolder) == null ? void 0 : Fe.isUsPerson) === !1 ? "no" : void 0,
@@ -1413,31 +1435,31 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1413
1435
  ),
1414
1436
  accountHolderFinancialAccountName: P(
1415
1437
  (ha = e.accountHolder) == null ? void 0 : ha.financialAccountName
1416
- ) ? (va = e.accountHolder) == null ? void 0 : va.name : (We = e.accountHolder) == null ? void 0 : We.financialAccountName,
1438
+ ) ? (pa = e.accountHolder) == null ? void 0 : pa.name : (We = e.accountHolder) == null ? void 0 : We.financialAccountName,
1417
1439
  accountHolderFinancialAccountIdentifier: (Je = e.accountHolder) == null ? void 0 : Je.financialAccountIdentifier,
1418
- accountHolderVatIdentificationNumber: (ve = e.accountHolder) != null && ve.vatinNotRequired || (pa = e.accountHolder) == null ? void 0 : pa.vatin,
1440
+ accountHolderVatIdentificationNumber: (pe = e.accountHolder) != null && pe.vatinNotRequired || (va = e.accountHolder) == null ? void 0 : va.vatin,
1419
1441
  accountHolderVatCountry: (Ze = e.accountHolder) != null && Ze.vatinNotRequired || (qe = e.accountHolder) == null ? void 0 : qe.vatinCountry,
1420
1442
  accountHolderVatIsNotRequired: (Ge = e.accountHolder) != null && Ge.vatinNotRequired ? "yes" : void 0,
1421
1443
  accountHolderBusinessRegistrationNumber: (fa = e.accountHolder) == null ? void 0 : fa.businessRegistrationNumber,
1422
1444
  accountHolderBusinessRegistrationCountry: (Aa = e.accountHolder) == null ? void 0 : Aa.businessRegistrationCountry,
1423
- accountHolderShowTaxResidence2: !P((Ia = (Ca = (ba = e.accountHolder) == null ? void 0 : ba.taxResidences) == null ? void 0 : Ca[1]) == null ? void 0 : Ia.country) || !P((De = (Na = (Sa = e.accountHolder) == null ? void 0 : Sa.taxResidences) == null ? void 0 : Na[1]) == null ? void 0 : De.tin) ? "yes" : void 0,
1424
- accountHolderShowTaxResidence3: !P((xe = (ce = (Ye = e.accountHolder) == null ? void 0 : Ye.taxResidences) == null ? void 0 : ce[2]) == null ? void 0 : xe.country) || !P((Ta = (_e = (Ue = e.accountHolder) == null ? void 0 : Ue.taxResidences) == null ? void 0 : _e[2]) == null ? void 0 : Ta.tin) ? "yes" : void 0,
1445
+ accountHolderShowTaxResidence2: !P((Ia = (Ca = (ba = e.accountHolder) == null ? void 0 : ba.taxResidences) == null ? void 0 : Ca[1]) == null ? void 0 : Ia.country) || !P((xe = (Na = (Sa = e.accountHolder) == null ? void 0 : Sa.taxResidences) == null ? void 0 : Na[1]) == null ? void 0 : xe.tin) ? "yes" : void 0,
1446
+ accountHolderShowTaxResidence3: !P((Ue = (ce = (Ye = e.accountHolder) == null ? void 0 : Ye.taxResidences) == null ? void 0 : ce[2]) == null ? void 0 : Ue.country) || !P((Ta = (_e = (De = e.accountHolder) == null ? void 0 : De.taxResidences) == null ? void 0 : _e[2]) == null ? void 0 : Ta.tin) ? "yes" : void 0,
1425
1447
  accountHolderShowTaxResidence4: !P((Xe = (Ma = (Qe = e.accountHolder) == null ? void 0 : Qe.taxResidences) == null ? void 0 : Ma[3]) == null ? void 0 : Xe.country) || !P((ja = (ya = ($e = e.accountHolder) == null ? void 0 : $e.taxResidences) == null ? void 0 : ya[3]) == null ? void 0 : ja.tin) ? "yes" : void 0,
1426
1448
  accountHolderShowTaxResidence5: !P((za = (Oa = (ea = e.accountHolder) == null ? void 0 : ea.taxResidences) == null ? void 0 : Oa[4]) == null ? void 0 : za.country) || !P((t = (Ba = (Ea = e.accountHolder) == null ? void 0 : Ea.taxResidences) == null ? void 0 : Ba[4]) == null ? void 0 : t.tin) ? "yes" : void 0,
1427
- accountHolderTaxResidenceCountry1: (b = (g = (u = e.accountHolder) == null ? void 0 : u.taxResidences) == null ? void 0 : g[0]) == null ? void 0 : b.country,
1428
- accountHolderTaxResidenceForeignTin1: (M = (B = (j = e.accountHolder) == null ? void 0 : j.taxResidences) == null ? void 0 : B[0]) != null && M.tinNotRequired || (w = (F = (I = e.accountHolder) == null ? void 0 : I.taxResidences) == null ? void 0 : F[0]) == null ? void 0 : w.tin,
1429
- accountHolderTaxResidenceForeignTin1IsNotRequired: (me = (Z = (H = e.accountHolder) == null ? void 0 : H.taxResidences) == null ? void 0 : Z[0]) != null && me.tinNotRequired ? "yes" : void 0,
1430
- accountHolderTaxResidenceCountry2: (ei = (ne = (aa = e.accountHolder) == null ? void 0 : aa.taxResidences) == null ? void 0 : ne[1]) == null ? void 0 : ei.country,
1449
+ accountHolderTaxResidenceCountry1: (b = (k = (u = e.accountHolder) == null ? void 0 : u.taxResidences) == null ? void 0 : k[0]) == null ? void 0 : b.country,
1450
+ accountHolderTaxResidenceForeignTin1: (M = (B = (O = e.accountHolder) == null ? void 0 : O.taxResidences) == null ? void 0 : B[0]) != null && M.tinNotRequired || (w = (F = (S = e.accountHolder) == null ? void 0 : S.taxResidences) == null ? void 0 : F[0]) == null ? void 0 : w.tin,
1451
+ accountHolderTaxResidenceForeignTin1IsNotRequired: (me = (q = (H = e.accountHolder) == null ? void 0 : H.taxResidences) == null ? void 0 : q[0]) != null && me.tinNotRequired ? "yes" : void 0,
1452
+ accountHolderTaxResidenceCountry2: (ei = (te = (aa = e.accountHolder) == null ? void 0 : aa.taxResidences) == null ? void 0 : te[1]) == null ? void 0 : ei.country,
1431
1453
  accountHolderTaxResidenceForeignTin2: (ni = (ii = (ai = e.accountHolder) == null ? void 0 : ai.taxResidences) == null ? void 0 : ii[1]) != null && ni.tinNotRequired || (oi = (ri = (ti = e.accountHolder) == null ? void 0 : ti.taxResidences) == null ? void 0 : ri[1]) == null ? void 0 : oi.tin,
1432
1454
  accountHolderTaxResidenceForeignTin2IsNotRequired: (di = (li = (si = e.accountHolder) == null ? void 0 : si.taxResidences) == null ? void 0 : li[1]) != null && di.tinNotRequired ? "yes" : void 0,
1433
1455
  accountHolderTaxResidenceCountry3: (mi = (ci = (ui = e.accountHolder) == null ? void 0 : ui.taxResidences) == null ? void 0 : ci[2]) == null ? void 0 : mi.country,
1434
- accountHolderTaxResidenceForeignTin3: (hi = (ki = (gi = e.accountHolder) == null ? void 0 : gi.taxResidences) == null ? void 0 : ki[2]) != null && hi.tinNotRequired || (fi = (pi = (vi = e.accountHolder) == null ? void 0 : vi.taxResidences) == null ? void 0 : pi[2]) == null ? void 0 : fi.tin,
1456
+ accountHolderTaxResidenceForeignTin3: (hi = (ki = (gi = e.accountHolder) == null ? void 0 : gi.taxResidences) == null ? void 0 : ki[2]) != null && hi.tinNotRequired || (fi = (vi = (pi = e.accountHolder) == null ? void 0 : pi.taxResidences) == null ? void 0 : vi[2]) == null ? void 0 : fi.tin,
1435
1457
  accountHolderTaxResidenceForeignTin3IsNotRequired: (Ci = (bi = (Ai = e.accountHolder) == null ? void 0 : Ai.taxResidences) == null ? void 0 : bi[2]) != null && Ci.tinNotRequired ? "yes" : void 0,
1436
1458
  accountHolderTaxResidenceCountry4: (Ni = (Si = (Ii = e.accountHolder) == null ? void 0 : Ii.taxResidences) == null ? void 0 : Si[3]) == null ? void 0 : Ni.country,
1437
1459
  accountHolderTaxResidenceForeignTin4: (yi = (Mi = (Ti = e.accountHolder) == null ? void 0 : Ti.taxResidences) == null ? void 0 : Mi[3]) != null && yi.tinNotRequired || (zi = (Oi = (ji = e.accountHolder) == null ? void 0 : ji.taxResidences) == null ? void 0 : Oi[3]) == null ? void 0 : zi.tin,
1438
- accountHolderTaxResidenceForeignTin4IsNotRequired: (Pi = (Bi = (Ei = e.accountHolder) == null ? void 0 : Ei.taxResidences) == null ? void 0 : Bi[3]) != null && Pi.tinNotRequired ? "yes" : void 0,
1439
- accountHolderTaxResidenceCountry5: (Hi = (wi = (Ri = e.accountHolder) == null ? void 0 : Ri.taxResidences) == null ? void 0 : wi[4]) == null ? void 0 : Hi.country,
1440
- accountHolderTaxResidenceForeignTin5: (Di = (Gi = (Li = e.accountHolder) == null ? void 0 : Li.taxResidences) == null ? void 0 : Gi[4]) != null && Di.tinNotRequired || (Fi = (Ui = (xi = e.accountHolder) == null ? void 0 : xi.taxResidences) == null ? void 0 : Ui[4]) == null ? void 0 : Fi.tin,
1460
+ accountHolderTaxResidenceForeignTin4IsNotRequired: (Ri = (Bi = (Ei = e.accountHolder) == null ? void 0 : Ei.taxResidences) == null ? void 0 : Bi[3]) != null && Ri.tinNotRequired ? "yes" : void 0,
1461
+ accountHolderTaxResidenceCountry5: (Hi = (wi = (Pi = e.accountHolder) == null ? void 0 : Pi.taxResidences) == null ? void 0 : wi[4]) == null ? void 0 : Hi.country,
1462
+ accountHolderTaxResidenceForeignTin5: (xi = (Gi = (Li = e.accountHolder) == null ? void 0 : Li.taxResidences) == null ? void 0 : Gi[4]) != null && xi.tinNotRequired || (Fi = (Di = (Ui = e.accountHolder) == null ? void 0 : Ui.taxResidences) == null ? void 0 : Di[4]) == null ? void 0 : Fi.tin,
1441
1463
  accountHolderTaxResidenceForeignTin5IsNotRequired: (Wi = (Vi = (Ki = e.accountHolder) == null ? void 0 : Ki.taxResidences) == null ? void 0 : Vi[4]) != null && Wi.tinNotRequired ? "yes" : void 0,
1442
1464
  accountHolderTaxResidences: void 0,
1443
1465
  regardedOwnerName: (Ji = e.regardedOwner) == null ? void 0 : Ji.name,
@@ -1455,7 +1477,7 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1455
1477
  regardedOwnerAddressZip: (mn = (cn = e.regardedOwner) == null ? void 0 : cn.address) == null ? void 0 : mn.postalCode,
1456
1478
  regardedOwnerAddressCountry: (kn = (gn = e.regardedOwner) == null ? void 0 : gn.address) == null ? void 0 : kn.country,
1457
1479
  regardedOwnerMailingAddressIsDifferent: (hn = e.regardedOwner) != null && hn.mailingAddressIsDifferent ? "yes" : void 0,
1458
- regardedOwnerMailingAddress: (pn = (vn = e.regardedOwner) == null ? void 0 : vn.mailingAddress) == null ? void 0 : pn.country,
1480
+ regardedOwnerMailingAddress: (vn = (pn = e.regardedOwner) == null ? void 0 : pn.mailingAddress) == null ? void 0 : vn.country,
1459
1481
  regardedOwnerMailingAddressStreet: (An = (fn = e.regardedOwner) == null ? void 0 : fn.mailingAddress) == null ? void 0 : An.firstLine,
1460
1482
  regardedOwnerMailingAddressStreet2: (Cn = (bn = e.regardedOwner) == null ? void 0 : bn.mailingAddress) == null ? void 0 : Cn.secondLine,
1461
1483
  regardedOwnerMailingAddressCity: (Sn = (In = e.regardedOwner) == null ? void 0 : In.mailingAddress) == null ? void 0 : Sn.city,
@@ -1467,9 +1489,9 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1467
1489
  (Bn = e.regardedOwner) == null ? void 0 : Bn.usAccountType
1468
1490
  ),
1469
1491
  regardedOwnerUsLlcClassification: Zn(
1470
- (Pn = e.regardedOwner) == null ? void 0 : Pn.usLlcClassification
1492
+ (Rn = e.regardedOwner) == null ? void 0 : Rn.usLlcClassification
1471
1493
  ),
1472
- regardedOwnerUsOtherClassification: (Rn = e.regardedOwner) == null ? void 0 : Rn.usOtherClassification,
1494
+ regardedOwnerUsOtherClassification: (Pn = e.regardedOwner) == null ? void 0 : Pn.usOtherClassification,
1473
1495
  regardedOwnerUsTrustEstateEin: ((wn = e.regardedOwner) == null ? void 0 : wn.usTrustEstateEin) === !0 ? "yes" : ((Hn = e.regardedOwner) == null ? void 0 : Hn.usTrustEstateEin) === !1 ? "no" : void 0,
1474
1496
  regardedOwnerForeignAccountType: Vn(
1475
1497
  (Ln = e.regardedOwner) == null ? void 0 : Ln.foreignAccountType
@@ -1478,61 +1500,61 @@ const xa = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1478
1500
  (Gn = e.regardedOwner) == null ? void 0 : Gn.foreignTrustClassification
1479
1501
  ),
1480
1502
  regardedOwnerForeignOtherClassification: Wn(
1481
- (Dn = e.regardedOwner) == null ? void 0 : Dn.foreignOtherClassification
1503
+ (xn = e.regardedOwner) == null ? void 0 : xn.foreignOtherClassification
1482
1504
  ),
1483
1505
  iConfirmTheInformationIsCorrectComplete: void 0,
1484
1506
  isNotSubjectBackupWithholding: void 0
1485
- }, r = gt(a);
1507
+ }, r = mt(a);
1486
1508
  return Object.fromEntries(
1487
1509
  Object.entries(n).filter(
1488
- ([At]) => r[At]
1510
+ ([ft]) => r[ft]
1489
1511
  )
1490
1512
  );
1491
1513
  }, Wa = ({ bearerToken: e }) => new Headers({
1492
1514
  Authorization: `Bearer ${e}`
1493
- }), vr = (e, a) => {
1515
+ }), kr = (e, a) => {
1494
1516
  var C;
1495
- const [n, r] = K(), [o, s] = K(), [l, d] = K(!1), m = a ? "STAGING" : "PRODUCTION", h = Ua.taxDocumentation.get(m), k = Ua.taxDocumentation.post(m), c = Ua.taxDocumentationStatus.get(m), v = async (S) => {
1496
- const N = {
1517
+ const [n, r] = K(), [o, s] = K(), [l, d] = K(!1), m = a ? "STAGING" : "PRODUCTION", h = Da.taxDocumentation.get(m), g = Da.taxDocumentation.post(m), c = Da.taxDocumentationStatus.get(m), p = async (N) => {
1518
+ const T = {
1497
1519
  method: "POST",
1498
1520
  headers: Wa({ bearerToken: e }),
1499
- body: JSON.stringify(Za(S))
1521
+ body: JSON.stringify(Za(N))
1500
1522
  };
1501
- fetch(k, N).then((O) => {
1502
- O.status === 200 && d(!0);
1523
+ fetch(g, T).then((y) => {
1524
+ y.status === 200 && d(!0);
1503
1525
  });
1504
1526
  };
1505
- q(() => {
1506
- const S = {
1527
+ Y(() => {
1528
+ const N = {
1507
1529
  method: "GET",
1508
1530
  headers: Wa({ bearerToken: e })
1509
1531
  };
1510
- fetch(c, S).then((N) => {
1511
- if (N.ok)
1512
- return N.json();
1513
- throw N.status === 401 ? new Error("Unauthorized, please check your bearer token") : new Error("Something went wrong");
1514
- }).then((N) => {
1515
- s(La(N));
1532
+ fetch(c, N).then((T) => {
1533
+ if (T.ok)
1534
+ return T.json();
1535
+ throw T.status === 401 ? new Error("Unauthorized, please check your bearer token") : new Error("Something went wrong");
1536
+ }).then((T) => {
1537
+ s(La(T));
1516
1538
  });
1517
- }, [e, c]), q(() => {
1539
+ }, [e, c]), Y(() => {
1518
1540
  if (o && o.submissionStatus !== "NOT_SUBMITTED") {
1519
- const S = {
1541
+ const N = {
1520
1542
  method: "GET",
1521
1543
  headers: Wa({ bearerToken: e })
1522
1544
  };
1523
- fetch(h, S).then((N) => {
1524
- if (N.ok)
1525
- return N.json();
1545
+ fetch(h, N).then((T) => {
1546
+ if (T.ok)
1547
+ return T.json();
1526
1548
  throw new Error("Something went wrong");
1527
- }).then((N) => {
1528
- r(La(N));
1549
+ }).then((T) => {
1550
+ r(La(T));
1529
1551
  });
1530
1552
  }
1531
1553
  }, [e, o, h]);
1532
- const A = (o == null ? void 0 : o.submissionStatus) === "NOT_SUBMITTED" ? o.submissionStatus : (C = o == null ? void 0 : o.DAC7Interview) == null ? void 0 : C.dataCollectionStatus;
1554
+ const f = (o == null ? void 0 : o.submissionStatus) === "NOT_SUBMITTED" ? o.submissionStatus : (C = o == null ? void 0 : o.DAC7Interview) == null ? void 0 : C.dataCollectionStatus;
1533
1555
  return {
1534
- postData: v,
1535
- formStatus: A,
1556
+ postData: p,
1557
+ formStatus: f,
1536
1558
  status: o,
1537
1559
  formSubmitted: l,
1538
1560
  serverData: n
@@ -1549,20 +1571,20 @@ var Ya = { exports: {} }, ia = {};
1549
1571
  * LICENSE file in the root directory of this source tree.
1550
1572
  */
1551
1573
  var _n;
1552
- function pr() {
1574
+ function hr() {
1553
1575
  if (_n)
1554
1576
  return ia;
1555
1577
  _n = 1;
1556
1578
  var e = at, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
1557
1579
  function l(d, m, h) {
1558
- var k, c = {}, v = null, A = null;
1559
- h !== void 0 && (v = "" + h), m.key !== void 0 && (v = "" + m.key), m.ref !== void 0 && (A = m.ref);
1560
- for (k in m)
1561
- r.call(m, k) && !s.hasOwnProperty(k) && (c[k] = m[k]);
1580
+ var g, c = {}, p = null, f = null;
1581
+ h !== void 0 && (p = "" + h), m.key !== void 0 && (p = "" + m.key), m.ref !== void 0 && (f = m.ref);
1582
+ for (g in m)
1583
+ r.call(m, g) && !s.hasOwnProperty(g) && (c[g] = m[g]);
1562
1584
  if (d && d.defaultProps)
1563
- for (k in m = d.defaultProps, m)
1564
- c[k] === void 0 && (c[k] = m[k]);
1565
- return { $$typeof: a, type: d, key: v, ref: A, props: c, _owner: o.current };
1585
+ for (g in m = d.defaultProps, m)
1586
+ c[g] === void 0 && (c[g] = m[g]);
1587
+ return { $$typeof: a, type: d, key: p, ref: f, props: c, _owner: o.current };
1566
1588
  }
1567
1589
  return ia.Fragment = n, ia.jsx = l, ia.jsxs = l, ia;
1568
1590
  }
@@ -1577,53 +1599,53 @@ var na = {};
1577
1599
  * LICENSE file in the root directory of this source tree.
1578
1600
  */
1579
1601
  var Qn;
1580
- function fr() {
1602
+ function pr() {
1581
1603
  return Qn || (Qn = 1, process.env.NODE_ENV !== "production" && function() {
1582
- var e = at, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), C = Symbol.iterator, S = "@@iterator";
1583
- function N(t) {
1604
+ var e = at, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), C = Symbol.iterator, N = "@@iterator";
1605
+ function T(t) {
1584
1606
  if (t === null || typeof t != "object")
1585
1607
  return null;
1586
- var u = C && t[C] || t[S];
1608
+ var u = C && t[C] || t[N];
1587
1609
  return typeof u == "function" ? u : null;
1588
1610
  }
1589
- var O = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1611
+ var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1590
1612
  function R(t) {
1591
1613
  {
1592
- for (var u = arguments.length, g = new Array(u > 1 ? u - 1 : 0), b = 1; b < u; b++)
1593
- g[b - 1] = arguments[b];
1594
- p("error", t, g);
1614
+ for (var u = arguments.length, k = new Array(u > 1 ? u - 1 : 0), b = 1; b < u; b++)
1615
+ k[b - 1] = arguments[b];
1616
+ v("error", t, k);
1595
1617
  }
1596
1618
  }
1597
- function p(t, u, g) {
1619
+ function v(t, u, k) {
1598
1620
  {
1599
- var b = O.ReactDebugCurrentFrame, j = b.getStackAddendum();
1600
- j !== "" && (u += "%s", g = g.concat([j]));
1601
- var B = g.map(function(M) {
1621
+ var b = y.ReactDebugCurrentFrame, O = b.getStackAddendum();
1622
+ O !== "" && (u += "%s", k = k.concat([O]));
1623
+ var B = k.map(function(M) {
1602
1624
  return String(M);
1603
1625
  });
1604
1626
  B.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, B);
1605
1627
  }
1606
1628
  }
1607
- var U = !1, ae = !1, T = !1, y = !1, G = !1, te;
1608
- te = Symbol.for("react.module.reference");
1629
+ var L = !1, J = !1, I = !1, j = !1, G = !1, ie;
1630
+ ie = Symbol.for("react.module.reference");
1609
1631
  function Be(t) {
1610
- return !!(typeof t == "string" || typeof t == "function" || t === r || t === s || G || t === o || t === h || t === k || y || t === A || U || ae || T || typeof t == "object" && t !== null && (t.$$typeof === v || t.$$typeof === c || t.$$typeof === l || t.$$typeof === d || t.$$typeof === m || // This needs to include all possible module reference object
1632
+ return !!(typeof t == "string" || typeof t == "function" || t === r || t === s || G || t === o || t === h || t === g || j || t === f || L || J || I || typeof t == "object" && t !== null && (t.$$typeof === p || t.$$typeof === c || t.$$typeof === l || t.$$typeof === d || t.$$typeof === m || // This needs to include all possible module reference object
1611
1633
  // types supported by any Flight configuration anywhere since
1612
1634
  // we don't know which Flight build this will end up being used
1613
1635
  // with.
1614
- t.$$typeof === te || t.getModuleId !== void 0));
1636
+ t.$$typeof === ie || t.getModuleId !== void 0));
1615
1637
  }
1616
- function Pe(t, u, g) {
1638
+ function Re(t, u, k) {
1617
1639
  var b = t.displayName;
1618
1640
  if (b)
1619
1641
  return b;
1620
- var j = u.displayName || u.name || "";
1621
- return j !== "" ? g + "(" + j + ")" : g;
1642
+ var O = u.displayName || u.name || "";
1643
+ return O !== "" ? k + "(" + O + ")" : k;
1622
1644
  }
1623
1645
  function Ae(t) {
1624
1646
  return t.displayName || "Context";
1625
1647
  }
1626
- function J(t) {
1648
+ function Z(t) {
1627
1649
  if (t == null)
1628
1650
  return null;
1629
1651
  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")
@@ -1641,7 +1663,7 @@ function fr() {
1641
1663
  return "StrictMode";
1642
1664
  case h:
1643
1665
  return "Suspense";
1644
- case k:
1666
+ case g:
1645
1667
  return "SuspenseList";
1646
1668
  }
1647
1669
  if (typeof t == "object")
@@ -1650,17 +1672,17 @@ function fr() {
1650
1672
  var u = t;
1651
1673
  return Ae(u) + ".Consumer";
1652
1674
  case l:
1653
- var g = t;
1654
- return Ae(g._context) + ".Provider";
1675
+ var k = t;
1676
+ return Ae(k._context) + ".Provider";
1655
1677
  case m:
1656
- return Pe(t, t.render, "ForwardRef");
1678
+ return Re(t, t.render, "ForwardRef");
1657
1679
  case c:
1658
1680
  var b = t.displayName || null;
1659
- return b !== null ? b : J(t.type) || "Memo";
1660
- case v: {
1661
- var j = t, B = j._payload, M = j._init;
1681
+ return b !== null ? b : Z(t.type) || "Memo";
1682
+ case p: {
1683
+ var O = t, B = O._payload, M = O._init;
1662
1684
  try {
1663
- return J(M(B));
1685
+ return Z(M(B));
1664
1686
  } catch {
1665
1687
  return null;
1666
1688
  }
@@ -1668,14 +1690,14 @@ function fr() {
1668
1690
  }
1669
1691
  return null;
1670
1692
  }
1671
- var Q = Object.assign, ie = 0, be, ue, Ce, Ie, Se, z, D;
1693
+ var X = Object.assign, ne = 0, be, ue, Ce, Ie, Se, z, U;
1672
1694
  function Ne() {
1673
1695
  }
1674
1696
  Ne.__reactDisabledLog = !0;
1675
1697
  function la() {
1676
1698
  {
1677
- if (ie === 0) {
1678
- be = console.log, ue = console.info, Ce = console.warn, Ie = console.error, Se = console.group, z = console.groupCollapsed, D = console.groupEnd;
1699
+ if (ne === 0) {
1700
+ be = console.log, ue = console.info, Ce = console.warn, Ie = console.error, Se = console.group, z = console.groupCollapsed, U = console.groupEnd;
1679
1701
  var t = {
1680
1702
  configurable: !0,
1681
1703
  enumerable: !0,
@@ -1692,52 +1714,52 @@ function fr() {
1692
1714
  groupEnd: t
1693
1715
  });
1694
1716
  }
1695
- ie++;
1717
+ ne++;
1696
1718
  }
1697
1719
  }
1698
1720
  function da() {
1699
1721
  {
1700
- if (ie--, ie === 0) {
1722
+ if (ne--, ne === 0) {
1701
1723
  var t = {
1702
1724
  configurable: !0,
1703
1725
  enumerable: !0,
1704
1726
  writable: !0
1705
1727
  };
1706
1728
  Object.defineProperties(console, {
1707
- log: Q({}, t, {
1729
+ log: X({}, t, {
1708
1730
  value: be
1709
1731
  }),
1710
- info: Q({}, t, {
1732
+ info: X({}, t, {
1711
1733
  value: ue
1712
1734
  }),
1713
- warn: Q({}, t, {
1735
+ warn: X({}, t, {
1714
1736
  value: Ce
1715
1737
  }),
1716
- error: Q({}, t, {
1738
+ error: X({}, t, {
1717
1739
  value: Ie
1718
1740
  }),
1719
- group: Q({}, t, {
1741
+ group: X({}, t, {
1720
1742
  value: Se
1721
1743
  }),
1722
- groupCollapsed: Q({}, t, {
1744
+ groupCollapsed: X({}, t, {
1723
1745
  value: z
1724
1746
  }),
1725
- groupEnd: Q({}, t, {
1726
- value: D
1747
+ groupEnd: X({}, t, {
1748
+ value: U
1727
1749
  })
1728
1750
  });
1729
1751
  }
1730
- ie < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1752
+ ne < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1731
1753
  }
1732
1754
  }
1733
- var Re = O.ReactCurrentDispatcher, we;
1734
- function Te(t, u, g) {
1755
+ var Pe = y.ReactCurrentDispatcher, we;
1756
+ function Te(t, u, k) {
1735
1757
  {
1736
1758
  if (we === void 0)
1737
1759
  try {
1738
1760
  throw Error();
1739
- } catch (j) {
1740
- var b = j.stack.trim().match(/\n( *(at )?)/);
1761
+ } catch (O) {
1762
+ var b = O.stack.trim().match(/\n( *(at )?)/);
1741
1763
  we = b && b[1] || "";
1742
1764
  }
1743
1765
  return `
@@ -1753,16 +1775,16 @@ function fr() {
1753
1775
  if (!t || He)
1754
1776
  return "";
1755
1777
  {
1756
- var g = Me.get(t);
1757
- if (g !== void 0)
1758
- return g;
1778
+ var k = Me.get(t);
1779
+ if (k !== void 0)
1780
+ return k;
1759
1781
  }
1760
1782
  var b;
1761
1783
  He = !0;
1762
- var j = Error.prepareStackTrace;
1784
+ var O = Error.prepareStackTrace;
1763
1785
  Error.prepareStackTrace = void 0;
1764
1786
  var B;
1765
- B = Re.current, Re.current = null, la();
1787
+ B = Pe.current, Pe.current = null, la();
1766
1788
  try {
1767
1789
  if (u) {
1768
1790
  var M = function() {
@@ -1775,59 +1797,59 @@ function fr() {
1775
1797
  }), typeof Reflect == "object" && Reflect.construct) {
1776
1798
  try {
1777
1799
  Reflect.construct(M, []);
1778
- } catch (ne) {
1779
- b = ne;
1800
+ } catch (te) {
1801
+ b = te;
1780
1802
  }
1781
1803
  Reflect.construct(t, [], M);
1782
1804
  } else {
1783
1805
  try {
1784
1806
  M.call();
1785
- } catch (ne) {
1786
- b = ne;
1807
+ } catch (te) {
1808
+ b = te;
1787
1809
  }
1788
1810
  t.call(M.prototype);
1789
1811
  }
1790
1812
  } else {
1791
1813
  try {
1792
1814
  throw Error();
1793
- } catch (ne) {
1794
- b = ne;
1815
+ } catch (te) {
1816
+ b = te;
1795
1817
  }
1796
1818
  t();
1797
1819
  }
1798
- } catch (ne) {
1799
- if (ne && b && typeof ne.stack == "string") {
1800
- for (var I = ne.stack.split(`
1820
+ } catch (te) {
1821
+ if (te && b && typeof te.stack == "string") {
1822
+ for (var S = te.stack.split(`
1801
1823
  `), F = b.stack.split(`
1802
- `), w = I.length - 1, H = F.length - 1; w >= 1 && H >= 0 && I[w] !== F[H]; )
1824
+ `), w = S.length - 1, H = F.length - 1; w >= 1 && H >= 0 && S[w] !== F[H]; )
1803
1825
  H--;
1804
1826
  for (; w >= 1 && H >= 0; w--, H--)
1805
- if (I[w] !== F[H]) {
1827
+ if (S[w] !== F[H]) {
1806
1828
  if (w !== 1 || H !== 1)
1807
1829
  do
1808
- if (w--, H--, H < 0 || I[w] !== F[H]) {
1809
- var Z = `
1810
- ` + I[w].replace(" at new ", " at ");
1811
- return t.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", t.displayName)), typeof t == "function" && Me.set(t, Z), Z;
1830
+ if (w--, H--, H < 0 || S[w] !== F[H]) {
1831
+ var q = `
1832
+ ` + S[w].replace(" at new ", " at ");
1833
+ return t.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", t.displayName)), typeof t == "function" && Me.set(t, q), q;
1812
1834
  }
1813
1835
  while (w >= 1 && H >= 0);
1814
1836
  break;
1815
1837
  }
1816
1838
  }
1817
1839
  } finally {
1818
- He = !1, Re.current = B, da(), Error.prepareStackTrace = j;
1840
+ He = !1, Pe.current = B, da(), Error.prepareStackTrace = O;
1819
1841
  }
1820
1842
  var me = t ? t.displayName || t.name : "", aa = me ? Te(me) : "";
1821
1843
  return typeof t == "function" && Me.set(t, aa), aa;
1822
1844
  }
1823
- function ca(t, u, g) {
1845
+ function ca(t, u, k) {
1824
1846
  return Fe(t, !1);
1825
1847
  }
1826
1848
  function ma(t) {
1827
1849
  var u = t.prototype;
1828
1850
  return !!(u && u.isReactComponent);
1829
1851
  }
1830
- function ye(t, u, g) {
1852
+ function ye(t, u, k) {
1831
1853
  if (t == null)
1832
1854
  return "";
1833
1855
  if (typeof t == "function")
@@ -1837,7 +1859,7 @@ function fr() {
1837
1859
  switch (t) {
1838
1860
  case h:
1839
1861
  return Te("Suspense");
1840
- case k:
1862
+ case g:
1841
1863
  return Te("SuspenseList");
1842
1864
  }
1843
1865
  if (typeof t == "object")
@@ -1845,41 +1867,41 @@ function fr() {
1845
1867
  case m:
1846
1868
  return ca(t.render);
1847
1869
  case c:
1848
- return ye(t.type, u, g);
1849
- case v: {
1850
- var b = t, j = b._payload, B = b._init;
1870
+ return ye(t.type, u, k);
1871
+ case p: {
1872
+ var b = t, O = b._payload, B = b._init;
1851
1873
  try {
1852
- return ye(B(j), u, g);
1874
+ return ye(B(O), u, k);
1853
1875
  } catch {
1854
1876
  }
1855
1877
  }
1856
1878
  }
1857
1879
  return "";
1858
1880
  }
1859
- var je = Object.prototype.hasOwnProperty, Ke = {}, Ve = O.ReactDebugCurrentFrame;
1881
+ var je = Object.prototype.hasOwnProperty, Ke = {}, Ve = y.ReactDebugCurrentFrame;
1860
1882
  function Oe(t) {
1861
1883
  if (t) {
1862
- var u = t._owner, g = ye(t.type, t._source, u ? u.type : null);
1863
- Ve.setExtraStackFrame(g);
1884
+ var u = t._owner, k = ye(t.type, t._source, u ? u.type : null);
1885
+ Ve.setExtraStackFrame(k);
1864
1886
  } else
1865
1887
  Ve.setExtraStackFrame(null);
1866
1888
  }
1867
- function ga(t, u, g, b, j) {
1889
+ function ga(t, u, k, b, O) {
1868
1890
  {
1869
1891
  var B = Function.call.bind(je);
1870
1892
  for (var M in t)
1871
1893
  if (B(t, M)) {
1872
- var I = void 0;
1894
+ var S = void 0;
1873
1895
  try {
1874
1896
  if (typeof t[M] != "function") {
1875
- var F = Error((b || "React class") + ": " + g + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1897
+ var F = Error((b || "React class") + ": " + k + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1876
1898
  throw F.name = "Invariant Violation", F;
1877
1899
  }
1878
- I = t[M](u, M, b, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1900
+ S = t[M](u, M, b, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1879
1901
  } catch (w) {
1880
- I = w;
1902
+ S = w;
1881
1903
  }
1882
- I && !(I instanceof Error) && (Oe(j), 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).", b || "React class", g, M, typeof I), Oe(null)), I instanceof Error && !(I.message in Ke) && (Ke[I.message] = !0, Oe(j), R("Failed %s type: %s", g, I.message), Oe(null));
1904
+ S && !(S instanceof Error) && (Oe(O), 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).", b || "React class", k, M, typeof S), Oe(null)), S instanceof Error && !(S.message in Ke) && (Ke[S.message] = !0, Oe(O), R("Failed %s type: %s", k, S.message), Oe(null));
1883
1905
  }
1884
1906
  }
1885
1907
  }
@@ -1889,11 +1911,11 @@ function fr() {
1889
1911
  }
1890
1912
  function ha(t) {
1891
1913
  {
1892
- var u = typeof Symbol == "function" && Symbol.toStringTag, g = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
1893
- return g;
1914
+ var u = typeof Symbol == "function" && Symbol.toStringTag, k = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
1915
+ return k;
1894
1916
  }
1895
1917
  }
1896
- function va(t) {
1918
+ function pa(t) {
1897
1919
  try {
1898
1920
  return We(t), !1;
1899
1921
  } catch {
@@ -1904,10 +1926,10 @@ function fr() {
1904
1926
  return "" + t;
1905
1927
  }
1906
1928
  function Je(t) {
1907
- if (va(t))
1929
+ if (pa(t))
1908
1930
  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)), We(t);
1909
1931
  }
1910
- var ve = O.ReactCurrentOwner, pa = {
1932
+ var pe = y.ReactCurrentOwner, va = {
1911
1933
  key: !0,
1912
1934
  ref: !0,
1913
1935
  __self: !0,
@@ -1931,97 +1953,97 @@ function fr() {
1931
1953
  return t.key !== void 0;
1932
1954
  }
1933
1955
  function ba(t, u) {
1934
- if (typeof t.ref == "string" && ve.current && u && ve.current.stateNode !== u) {
1935
- var g = J(ve.current.type);
1936
- Ge[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', J(ve.current.type), t.ref), Ge[g] = !0);
1956
+ if (typeof t.ref == "string" && pe.current && u && pe.current.stateNode !== u) {
1957
+ var k = Z(pe.current.type);
1958
+ Ge[k] || (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', Z(pe.current.type), t.ref), Ge[k] = !0);
1937
1959
  }
1938
1960
  }
1939
1961
  function Ca(t, u) {
1940
1962
  {
1941
- var g = function() {
1963
+ var k = function() {
1942
1964
  Ze || (Ze = !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)", u));
1943
1965
  };
1944
- g.isReactWarning = !0, Object.defineProperty(t, "key", {
1945
- get: g,
1966
+ k.isReactWarning = !0, Object.defineProperty(t, "key", {
1967
+ get: k,
1946
1968
  configurable: !0
1947
1969
  });
1948
1970
  }
1949
1971
  }
1950
1972
  function Ia(t, u) {
1951
1973
  {
1952
- var g = function() {
1974
+ var k = function() {
1953
1975
  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)", u));
1954
1976
  };
1955
- g.isReactWarning = !0, Object.defineProperty(t, "ref", {
1956
- get: g,
1977
+ k.isReactWarning = !0, Object.defineProperty(t, "ref", {
1978
+ get: k,
1957
1979
  configurable: !0
1958
1980
  });
1959
1981
  }
1960
1982
  }
1961
- var Sa = function(t, u, g, b, j, B, M) {
1962
- var I = {
1983
+ var Sa = function(t, u, k, b, O, B, M) {
1984
+ var S = {
1963
1985
  // This tag allows us to uniquely identify this as a React Element
1964
1986
  $$typeof: a,
1965
1987
  // Built-in properties that belong on the element
1966
1988
  type: t,
1967
1989
  key: u,
1968
- ref: g,
1990
+ ref: k,
1969
1991
  props: M,
1970
1992
  // Record the component responsible for creating this element.
1971
1993
  _owner: B
1972
1994
  };
1973
- return I._store = {}, Object.defineProperty(I._store, "validated", {
1995
+ return S._store = {}, Object.defineProperty(S._store, "validated", {
1974
1996
  configurable: !1,
1975
1997
  enumerable: !1,
1976
1998
  writable: !0,
1977
1999
  value: !1
1978
- }), Object.defineProperty(I, "_self", {
2000
+ }), Object.defineProperty(S, "_self", {
1979
2001
  configurable: !1,
1980
2002
  enumerable: !1,
1981
2003
  writable: !1,
1982
2004
  value: b
1983
- }), Object.defineProperty(I, "_source", {
2005
+ }), Object.defineProperty(S, "_source", {
1984
2006
  configurable: !1,
1985
2007
  enumerable: !1,
1986
2008
  writable: !1,
1987
- value: j
1988
- }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
2009
+ value: O
2010
+ }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
1989
2011
  };
1990
- function Na(t, u, g, b, j) {
2012
+ function Na(t, u, k, b, O) {
1991
2013
  {
1992
- var B, M = {}, I = null, F = null;
1993
- g !== void 0 && (Je(g), I = "" + g), Aa(u) && (Je(u.key), I = "" + u.key), fa(u) && (F = u.ref, ba(u, j));
2014
+ var B, M = {}, S = null, F = null;
2015
+ k !== void 0 && (Je(k), S = "" + k), Aa(u) && (Je(u.key), S = "" + u.key), fa(u) && (F = u.ref, ba(u, O));
1994
2016
  for (B in u)
1995
- je.call(u, B) && !pa.hasOwnProperty(B) && (M[B] = u[B]);
2017
+ je.call(u, B) && !va.hasOwnProperty(B) && (M[B] = u[B]);
1996
2018
  if (t && t.defaultProps) {
1997
2019
  var w = t.defaultProps;
1998
2020
  for (B in w)
1999
2021
  M[B] === void 0 && (M[B] = w[B]);
2000
2022
  }
2001
- if (I || F) {
2023
+ if (S || F) {
2002
2024
  var H = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
2003
- I && Ca(M, H), F && Ia(M, H);
2025
+ S && Ca(M, H), F && Ia(M, H);
2004
2026
  }
2005
- return Sa(t, I, F, j, b, ve.current, M);
2027
+ return Sa(t, S, F, O, b, pe.current, M);
2006
2028
  }
2007
2029
  }
2008
- var De = O.ReactCurrentOwner, Ye = O.ReactDebugCurrentFrame;
2030
+ var xe = y.ReactCurrentOwner, Ye = y.ReactDebugCurrentFrame;
2009
2031
  function ce(t) {
2010
2032
  if (t) {
2011
- var u = t._owner, g = ye(t.type, t._source, u ? u.type : null);
2012
- Ye.setExtraStackFrame(g);
2033
+ var u = t._owner, k = ye(t.type, t._source, u ? u.type : null);
2034
+ Ye.setExtraStackFrame(k);
2013
2035
  } else
2014
2036
  Ye.setExtraStackFrame(null);
2015
2037
  }
2016
- var xe;
2017
- xe = !1;
2018
- function Ue(t) {
2038
+ var Ue;
2039
+ Ue = !1;
2040
+ function De(t) {
2019
2041
  return typeof t == "object" && t !== null && t.$$typeof === a;
2020
2042
  }
2021
2043
  function _e() {
2022
2044
  {
2023
- if (De.current) {
2024
- var t = J(De.current.type);
2045
+ if (xe.current) {
2046
+ var t = Z(xe.current.type);
2025
2047
  if (t)
2026
2048
  return `
2027
2049
 
@@ -2033,10 +2055,10 @@ Check the render method of \`` + t + "`.";
2033
2055
  function Ta(t) {
2034
2056
  {
2035
2057
  if (t !== void 0) {
2036
- var u = t.fileName.replace(/^.*[\\\/]/, ""), g = t.lineNumber;
2058
+ var u = t.fileName.replace(/^.*[\\\/]/, ""), k = t.lineNumber;
2037
2059
  return `
2038
2060
 
2039
- Check your code at ` + u + ":" + g + ".";
2061
+ Check your code at ` + u + ":" + k + ".";
2040
2062
  }
2041
2063
  return "";
2042
2064
  }
@@ -2046,10 +2068,10 @@ Check your code at ` + u + ":" + g + ".";
2046
2068
  {
2047
2069
  var u = _e();
2048
2070
  if (!u) {
2049
- var g = typeof t == "string" ? t : t.displayName || t.name;
2050
- g && (u = `
2071
+ var k = typeof t == "string" ? t : t.displayName || t.name;
2072
+ k && (u = `
2051
2073
 
2052
- Check the top-level render call using <` + g + ">.");
2074
+ Check the top-level render call using <` + k + ">.");
2053
2075
  }
2054
2076
  return u;
2055
2077
  }
@@ -2059,12 +2081,12 @@ Check the top-level render call using <` + g + ">.");
2059
2081
  if (!t._store || t._store.validated || t.key != null)
2060
2082
  return;
2061
2083
  t._store.validated = !0;
2062
- var g = Ma(u);
2063
- if (Qe[g])
2084
+ var k = Ma(u);
2085
+ if (Qe[k])
2064
2086
  return;
2065
- Qe[g] = !0;
2087
+ Qe[k] = !0;
2066
2088
  var b = "";
2067
- t && t._owner && t._owner !== De.current && (b = " It was passed a child from " + J(t._owner.type) + "."), ce(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, b), ce(null);
2089
+ t && t._owner && t._owner !== xe.current && (b = " It was passed a child from " + Z(t._owner.type) + "."), ce(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.', k, b), ce(null);
2068
2090
  }
2069
2091
  }
2070
2092
  function $e(t, u) {
@@ -2072,17 +2094,17 @@ Check the top-level render call using <` + g + ">.");
2072
2094
  if (typeof t != "object")
2073
2095
  return;
2074
2096
  if (Le(t))
2075
- for (var g = 0; g < t.length; g++) {
2076
- var b = t[g];
2077
- Ue(b) && Xe(b, u);
2097
+ for (var k = 0; k < t.length; k++) {
2098
+ var b = t[k];
2099
+ De(b) && Xe(b, u);
2078
2100
  }
2079
- else if (Ue(t))
2101
+ else if (De(t))
2080
2102
  t._store && (t._store.validated = !0);
2081
2103
  else if (t) {
2082
- var j = N(t);
2083
- if (typeof j == "function" && j !== t.entries)
2084
- for (var B = j.call(t), M; !(M = B.next()).done; )
2085
- Ue(M.value) && Xe(M.value, u);
2104
+ var O = T(t);
2105
+ if (typeof O == "function" && O !== t.entries)
2106
+ for (var B = O.call(t), M; !(M = B.next()).done; )
2107
+ De(M.value) && Xe(M.value, u);
2086
2108
  }
2087
2109
  }
2088
2110
  }
@@ -2091,30 +2113,30 @@ Check the top-level render call using <` + g + ">.");
2091
2113
  var u = t.type;
2092
2114
  if (u == null || typeof u == "string")
2093
2115
  return;
2094
- var g;
2116
+ var k;
2095
2117
  if (typeof u == "function")
2096
- g = u.propTypes;
2118
+ k = u.propTypes;
2097
2119
  else if (typeof u == "object" && (u.$$typeof === m || // Note: Memo only checks outer props here.
2098
2120
  // Inner props are checked in the reconciler.
2099
2121
  u.$$typeof === c))
2100
- g = u.propTypes;
2122
+ k = u.propTypes;
2101
2123
  else
2102
2124
  return;
2103
- if (g) {
2104
- var b = J(u);
2105
- ga(g, t.props, "prop", b, t);
2106
- } else if (u.PropTypes !== void 0 && !xe) {
2107
- xe = !0;
2108
- var j = J(u);
2109
- R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
2125
+ if (k) {
2126
+ var b = Z(u);
2127
+ ga(k, t.props, "prop", b, t);
2128
+ } else if (u.PropTypes !== void 0 && !Ue) {
2129
+ Ue = !0;
2130
+ var O = Z(u);
2131
+ R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
2110
2132
  }
2111
2133
  typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2112
2134
  }
2113
2135
  }
2114
2136
  function ja(t) {
2115
2137
  {
2116
- for (var u = Object.keys(t.props), g = 0; g < u.length; g++) {
2117
- var b = u[g];
2138
+ for (var u = Object.keys(t.props), k = 0; k < u.length; k++) {
2139
+ var b = u[k];
2118
2140
  if (b !== "children" && b !== "key") {
2119
2141
  ce(t), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), ce(null);
2120
2142
  break;
@@ -2123,49 +2145,49 @@ Check the top-level render call using <` + g + ">.");
2123
2145
  t.ref !== null && (ce(t), R("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null));
2124
2146
  }
2125
2147
  }
2126
- function ea(t, u, g, b, j, B) {
2148
+ function ea(t, u, k, b, O, B) {
2127
2149
  {
2128
2150
  var M = Be(t);
2129
2151
  if (!M) {
2130
- var I = "";
2131
- (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2132
- var F = Ta(j);
2133
- F ? I += F : I += _e();
2152
+ var S = "";
2153
+ (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2154
+ var F = Ta(O);
2155
+ F ? S += F : S += _e();
2134
2156
  var w;
2135
- t === null ? w = "null" : Le(t) ? w = "array" : t !== void 0 && t.$$typeof === a ? (w = "<" + (J(t.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : w = 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", w, I);
2157
+ t === null ? w = "null" : Le(t) ? w = "array" : t !== void 0 && t.$$typeof === a ? (w = "<" + (Z(t.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : w = 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", w, S);
2136
2158
  }
2137
- var H = Na(t, u, g, j, B);
2159
+ var H = Na(t, u, k, O, B);
2138
2160
  if (H == null)
2139
2161
  return H;
2140
2162
  if (M) {
2141
- var Z = u.children;
2142
- if (Z !== void 0)
2163
+ var q = u.children;
2164
+ if (q !== void 0)
2143
2165
  if (b)
2144
- if (Le(Z)) {
2145
- for (var me = 0; me < Z.length; me++)
2146
- $e(Z[me], t);
2147
- Object.freeze && Object.freeze(Z);
2166
+ if (Le(q)) {
2167
+ for (var me = 0; me < q.length; me++)
2168
+ $e(q[me], t);
2169
+ Object.freeze && Object.freeze(q);
2148
2170
  } else
2149
2171
  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.");
2150
2172
  else
2151
- $e(Z, t);
2173
+ $e(q, t);
2152
2174
  }
2153
2175
  return t === r ? ja(H) : ya(H), H;
2154
2176
  }
2155
2177
  }
2156
- function Oa(t, u, g) {
2157
- return ea(t, u, g, !0);
2178
+ function Oa(t, u, k) {
2179
+ return ea(t, u, k, !0);
2158
2180
  }
2159
- function za(t, u, g) {
2160
- return ea(t, u, g, !1);
2181
+ function za(t, u, k) {
2182
+ return ea(t, u, k, !1);
2161
2183
  }
2162
2184
  var Ea = za, Ba = Oa;
2163
2185
  na.Fragment = r, na.jsx = Ea, na.jsxs = Ba;
2164
2186
  }()), na;
2165
2187
  }
2166
- process.env.NODE_ENV === "production" ? Ya.exports = pr() : Ya.exports = fr();
2188
+ process.env.NODE_ENV === "production" ? Ya.exports = hr() : Ya.exports = pr();
2167
2189
  var i = Ya.exports;
2168
- const Ar = {
2190
+ const vr = {
2169
2191
  button: {
2170
2192
  back: "Назад",
2171
2193
  cancel: "Отказ",
@@ -2722,7 +2744,7 @@ const Ar = {
2722
2744
  "sl-si": "Словенски",
2723
2745
  "sv-se": "Шведски"
2724
2746
  }
2725
- }, br = {
2747
+ }, fr = {
2726
2748
  button: {
2727
2749
  back: "Zpět",
2728
2750
  cancel: "Zrušit",
@@ -3280,7 +3302,7 @@ const Ar = {
3280
3302
  "sl-si": "Slovinsky",
3281
3303
  "sv-se": "Švédsky"
3282
3304
  }
3283
- }, Cr = {
3305
+ }, Ar = {
3284
3306
  button: {
3285
3307
  back: "Tilbage",
3286
3308
  cancel: "Annuller",
@@ -3837,7 +3859,7 @@ const Ar = {
3837
3859
  "sl-si": "Slovensk",
3838
3860
  "sv-se": "Svensk"
3839
3861
  }
3840
- }, Ir = {
3862
+ }, br = {
3841
3863
  button: {
3842
3864
  back: "Zurück",
3843
3865
  cancel: "Abbrechen",
@@ -4394,7 +4416,7 @@ const Ar = {
4394
4416
  "sl-si": "Slowenisch",
4395
4417
  "sv-se": "Schwedisch"
4396
4418
  }
4397
- }, Sr = {
4419
+ }, Cr = {
4398
4420
  button: {
4399
4421
  back: "Zurück",
4400
4422
  cancel: "Abbrechen",
@@ -4951,7 +4973,7 @@ const Ar = {
4951
4973
  "sl-si": "Slowenisch",
4952
4974
  "sv-se": "Schwedisch"
4953
4975
  }
4954
- }, Nr = {
4976
+ }, Ir = {
4955
4977
  button: {
4956
4978
  back: "Πίσω",
4957
4979
  cancel: "Άκυρο",
@@ -5508,7 +5530,7 @@ const Ar = {
5508
5530
  "sl-si": "Σλοβενικά",
5509
5531
  "sv-se": "Σουηδικά"
5510
5532
  }
5511
- }, Tr = {
5533
+ }, Sr = {
5512
5534
  button: {
5513
5535
  back: "Πίσω",
5514
5536
  cancel: "Άκυρο",
@@ -6065,7 +6087,7 @@ const Ar = {
6065
6087
  "sl-si": "Σλοβενικά",
6066
6088
  "sv-se": "Σουηδικά"
6067
6089
  }
6068
- }, Mr = {
6090
+ }, Nr = {
6069
6091
  button: {
6070
6092
  back: "Back",
6071
6093
  cancel: "Cancel",
@@ -6622,7 +6644,7 @@ const Ar = {
6622
6644
  11: "November",
6623
6645
  12: "December"
6624
6646
  }
6625
- }, yr = {
6647
+ }, Tr = {
6626
6648
  button: {
6627
6649
  back: "Back",
6628
6650
  cancel: "Cancel",
@@ -7179,7 +7201,7 @@ const Ar = {
7179
7201
  "sl-si": "Slovenian",
7180
7202
  "sv-se": "Swedish"
7181
7203
  }
7182
- }, jr = {
7204
+ }, Mr = {
7183
7205
  button: {
7184
7206
  back: "Atrás",
7185
7207
  cancel: "Cancelar",
@@ -7736,7 +7758,7 @@ const Ar = {
7736
7758
  11: "Noviembre",
7737
7759
  12: "Diciembre"
7738
7760
  }
7739
- }, Or = {
7761
+ }, yr = {
7740
7762
  button: {
7741
7763
  back: "Tagasi",
7742
7764
  cancel: "Tühista",
@@ -8293,7 +8315,7 @@ const Ar = {
8293
8315
  "sl-si": "Sloveenia",
8294
8316
  "sv-se": "Rootsi Keel"
8295
8317
  }
8296
- }, zr = {
8318
+ }, jr = {
8297
8319
  button: {
8298
8320
  back: "Takaisin",
8299
8321
  cancel: "Peruuta",
@@ -8386,7 +8408,7 @@ const Ar = {
8386
8408
  smllcElection: "Valinta 8832 tai 2553",
8387
8409
  iConfirmIncomeIsNonUs: "(a) tulot, jotka eivät tosiasiallisesti liity kaupan tai liiketoiminnan harjoittamiseen Yhdysvalloissa; (b) tulot, jotka liittyvät tosiasiallisesti kaupan tai liiketoiminnan harjoittamiseen Yhdysvalloissa, mutta jotka eivät ole verotuksen alaisia ​​sovellettavan tuloverosopimuksen mukaisesti; c) yhtiömiehen osuus henkilöyhtiöön tosiasiallisesti liittyvistä verotettavista tuloista; tai (d) yhtiömiehen määrä, joka on realisoitunut 1446(f) pykälän mukaisen ennakonpidätyksen alaisen henkilöyhtiöosuuden siirrosta;",
8388
8410
  isEuResident: "Ilmoita, asutko jossain Euroopan unionin jäsenvaltiossa.",
8389
- isIndividual: "Valitse Kyllä, jos tilin haltija on yksityishenkilö. Valitse Ei, jos edustat yritystä, organisaatiota tai muuta yhteisöä.",
8411
+ isIndividual: 'Valitse "Kyllä", jos tili on yksityishenkilölle. Valitse "Ei", jos edustat yritystä, organisaatiota tai muuta yksikköä.',
8390
8412
  financialAccountIdentifier: "Rahoitustilin tunnus (eli pankkitilin numero), jota käytetään tälle tilille suoritettavissa maksuissa.",
8391
8413
  financialAccountName: "Tälle tilille suoritettavissa maksuissa käytettävään rahoitustiliin liittyvä nimi.",
8392
8414
  vatIdentificationNumber: "Yksilöllinen tunniste arvonlisäverovelvollisille yrityksille tai yksityishenkilöille.",
@@ -8850,7 +8872,7 @@ const Ar = {
8850
8872
  "sl-si": "Slovenia",
8851
8873
  "sv-se": "Ruotsi"
8852
8874
  }
8853
- }, Er = {
8875
+ }, Or = {
8854
8876
  button: {
8855
8877
  back: "Retour",
8856
8878
  cancel: "Annuler",
@@ -9407,7 +9429,7 @@ const Ar = {
9407
9429
  11: "Novembre",
9408
9430
  12: "Décembre"
9409
9431
  }
9410
- }, Br = {
9432
+ }, zr = {
9411
9433
  button: {
9412
9434
  back: "Retour",
9413
9435
  cancel: "Annuler",
@@ -9964,7 +9986,7 @@ const Ar = {
9964
9986
  "sl-si": "Slovène",
9965
9987
  "sv-se": "Suédois"
9966
9988
  }
9967
- }, Pr = {
9989
+ }, Er = {
9968
9990
  button: {
9969
9991
  back: "Siar",
9970
9992
  cancel: "Cealaigh",
@@ -10057,7 +10079,7 @@ const Ar = {
10057
10079
  smllcElection: "Toghchán 8832 nó 2553",
10058
10080
  iConfirmIncomeIsNonUs: "(a) ioncam nach bhfuil baint éifeachtach aige le trádáil nó gnó a sheoladh sna Stáit Aontaithe; (b) ioncam a bhaineann go héifeachtach le trádáil nó gnó a sheoladh sna Stáit Aontaithe ach nach bhfuil faoi réir cánach faoi chonradh cánach ioncaim is infheidhme; (c) sciar an chomhpháirtí d'ioncam inchánach comhpháirtíochta atá nasctha go héifeachtach; nó (d) méid an chomhpháirtí arna réadú ó leas comhpháirtíochta a aistriú faoi réir siarchoimeád faoi alt 1446(f);",
10059
10081
  isEuResident: "Cuir in iúl an bhfuil cónaí ort i mBallstát ar bith den Aontas Eorpach.",
10060
- isIndividual: 'Roghnaigh "Sea" má tá an chuntas do dhuine aonair. Roghnaigh "Ní hea" má tá tú ag ionadaíocht a dhéanamh ar ghnó, eagraíocht nó aonán eile.',
10082
+ isIndividual: 'Roghnaigh "" má tá an cuntas do dhuine aonair. Roghnaigh "Níl" má tá tú ag ionadaíocht ar ghnó, eagraíocht, nó aonán eile.',
10061
10083
  financialAccountIdentifier: "Aitheantóir Cuntais Airgeadais (i.e., uimhir chuntais bainc) a úsáidtear le haghaidh íocaíochtaí a dhéantar isteach sa chuntas seo.",
10062
10084
  financialAccountName: "An t-ainm a bhaineann leis an gCuntas Airgeadais a úsáidtear le haghaidh íocaíochtaí a rinneadh isteach sa chuntas seo.",
10063
10085
  vatIdentificationNumber: "Aitheantóir uathúil do ghnóthais nó do dhaoine aonair atá cláraithe le haghaidh CBL.",
@@ -10521,7 +10543,7 @@ const Ar = {
10521
10543
  "sl-si": "Slóivéinis",
10522
10544
  "sv-se": "Sualainnis"
10523
10545
  }
10524
- }, Rr = {
10546
+ }, Br = {
10525
10547
  button: {
10526
10548
  back: "Natrag",
10527
10549
  cancel: "Odustani",
@@ -11078,7 +11100,7 @@ const Ar = {
11078
11100
  "sl-si": "Slovenski",
11079
11101
  "sv-se": "Švedski"
11080
11102
  }
11081
- }, wr = {
11103
+ }, Rr = {
11082
11104
  button: {
11083
11105
  back: "Vissza",
11084
11106
  cancel: "Mégse",
@@ -11171,7 +11193,7 @@ const Ar = {
11171
11193
  smllcElection: "8832-es vagy 2553-as választás",
11172
11194
  iConfirmIncomeIsNonUs: "(a) az Egyesült Államokban folytatott kereskedelmi vagy üzleti tevékenységgel ténylegesen nem összefüggő jövedelem; (b) az Egyesült Államokban folytatott kereskedelmi vagy üzleti tevékenységgel ténylegesen összefüggő, de az alkalmazandó jövedelemadó-egyezmény alapján nem adóköteles jövedelem; (c) a partner részesedése a ténylegesen összefüggő adóköteles jövedelemből; vagy (d) a partner által az 1446(f) szakasz alapján adóvisszatartásra kötelezett partneri részesedés átruházásából realizált összeg.",
11173
11195
  isEuResident: "Jelölje be, ha az Európai Unió bármelyik tagállamában rendelkezik lakóhellyel.",
11174
- isIndividual: "Jelölje be, ha az egyéni fiókhoz tartozik. Jelölje be a „Nem”-et, ha vállalkozást, szervezetet vagy más szervezetet képvisel.",
11196
+ isIndividual: "Válassza az „Igen” lehetőséget, ha a számla egyén számára van. Válassza a „Nem” lehetőséget, ha vállalkozást, szervezetet vagy más entitást képvisel.",
11175
11197
  financialAccountIdentifier: "Pénzügyi számlaazonosító (azaz bankszámlaszám), amelyet az erre a számlára történő kifizetésekhez használnak.",
11176
11198
  financialAccountName: "A számlára történő kifizetésekhez használt pénzügyi számlához kapcsolódó név.",
11177
11199
  vatIdentificationNumber: "HÉA-regisztrált vállalkozások vagy magánszemélyek egyedi azonosítója.",
@@ -11635,7 +11657,7 @@ const Ar = {
11635
11657
  "sl-si": "Szlovén",
11636
11658
  "sv-se": "Svéd"
11637
11659
  }
11638
- }, Hr = {
11660
+ }, Pr = {
11639
11661
  button: {
11640
11662
  back: "Indietro",
11641
11663
  cancel: "Annulla",
@@ -12192,7 +12214,7 @@ const Ar = {
12192
12214
  "sl-si": "Sloveno",
12193
12215
  "sv-se": "Svedese"
12194
12216
  }
12195
- }, Lr = {
12217
+ }, wr = {
12196
12218
  button: {
12197
12219
  back: "Atgal",
12198
12220
  cancel: "Atšaukti",
@@ -12749,7 +12771,7 @@ const Ar = {
12749
12771
  "sl-si": "Slovėnų",
12750
12772
  "sv-se": "Švedų"
12751
12773
  }
12752
- }, Gr = {
12774
+ }, Hr = {
12753
12775
  button: {
12754
12776
  back: "Aizmugure",
12755
12777
  cancel: "Atcelt",
@@ -13306,7 +13328,7 @@ const Ar = {
13306
13328
  "sl-si": "Slovēņu",
13307
13329
  "sv-se": "Zviedru"
13308
13330
  }
13309
- }, Dr = {
13331
+ }, Lr = {
13310
13332
  button: {
13311
13333
  back: "Lura",
13312
13334
  cancel: "Ikkanċella",
@@ -13863,7 +13885,7 @@ const Ar = {
13863
13885
  "sl-si": "Sloven",
13864
13886
  "sv-se": "Svediż"
13865
13887
  }
13866
- }, xr = {
13888
+ }, Gr = {
13867
13889
  button: {
13868
13890
  back: "Terug",
13869
13891
  cancel: "Annuleren",
@@ -14420,7 +14442,7 @@ const Ar = {
14420
14442
  "sl-si": "Sloveens",
14421
14443
  "sv-se": "Zweeds"
14422
14444
  }
14423
- }, Ur = {
14445
+ }, xr = {
14424
14446
  button: {
14425
14447
  back: "Terug",
14426
14448
  cancel: "Annuleren",
@@ -14977,7 +14999,7 @@ const Ar = {
14977
14999
  11: "November",
14978
15000
  12: "December"
14979
15001
  }
14980
- }, Fr = {
15002
+ }, Ur = {
14981
15003
  button: {
14982
15004
  back: "Tilbake",
14983
15005
  cancel: "Avbryt",
@@ -15534,7 +15556,7 @@ const Ar = {
15534
15556
  "sl-si": "Slovensk",
15535
15557
  "sv-se": "Svensk"
15536
15558
  }
15537
- }, Kr = {
15559
+ }, Dr = {
15538
15560
  button: {
15539
15561
  back: "Wstecz",
15540
15562
  cancel: "Anuluj",
@@ -16091,7 +16113,7 @@ const Ar = {
16091
16113
  "sl-si": "Słoweński",
16092
16114
  "sv-se": "Szwedzki"
16093
16115
  }
16094
- }, Vr = {
16116
+ }, Fr = {
16095
16117
  button: {
16096
16118
  back: "Voltar",
16097
16119
  cancel: "Cancelar",
@@ -16648,7 +16670,7 @@ const Ar = {
16648
16670
  11: "Novembro",
16649
16671
  12: "Dezembro"
16650
16672
  }
16651
- }, Wr = {
16673
+ }, Kr = {
16652
16674
  button: {
16653
16675
  back: "Înapoi",
16654
16676
  cancel: "Anulați",
@@ -17205,7 +17227,7 @@ const Ar = {
17205
17227
  "sl-si": "Slovenă",
17206
17228
  "sv-se": "Suedez"
17207
17229
  }
17208
- }, Jr = {
17230
+ }, Vr = {
17209
17231
  button: {
17210
17232
  back: "Späť",
17211
17233
  cancel: "Zrušiť",
@@ -17762,7 +17784,7 @@ const Ar = {
17762
17784
  "sl-si": "Slovensky",
17763
17785
  "sv-se": "Švédsky"
17764
17786
  }
17765
- }, Zr = {
17787
+ }, Wr = {
17766
17788
  button: {
17767
17789
  back: "Nazaj",
17768
17790
  cancel: "Prekliči",
@@ -18319,7 +18341,7 @@ const Ar = {
18319
18341
  "sl-si": "Slovenščina",
18320
18342
  "sv-se": "Švedščina"
18321
18343
  }
18322
- }, qr = {
18344
+ }, Jr = {
18323
18345
  button: {
18324
18346
  back: "Tillbaka",
18325
18347
  cancel: "Avbryt",
@@ -18877,118 +18899,142 @@ const Ar = {
18877
18899
  12: "December"
18878
18900
  }
18879
18901
  }, Ja = {
18880
- "bg-bg": Ar,
18881
- "cs-cz": br,
18882
- "da-dk": Cr,
18883
- "de-at": Ir,
18884
- "de-de": Sr,
18885
- "el-gr": Tr,
18886
- "el-cy": Nr,
18887
- "en-gb": Mr,
18888
- "en-us": yr,
18889
- "es-es": jr,
18890
- "et-ee": Or,
18891
- "fi-fi": zr,
18892
- "fr-fr": Er,
18893
- "fr-lu": Br,
18894
- "ga-ie": Pr,
18895
- "hr-hr": Rr,
18896
- "hu-hu": wr,
18897
- "it-it": Hr,
18898
- "lt-lt": Lr,
18899
- "lv-lv": Gr,
18900
- "mt-mt": Dr,
18901
- "nl-be": xr,
18902
- "nl-nl": Ur,
18903
- "no-no": Fr,
18904
- "pl-pl": Kr,
18905
- "pt-pt": Vr,
18906
- "ro-ro": Wr,
18907
- "sk-sk": Jr,
18908
- "sl-si": Zr,
18909
- "sv-se": qr
18910
- }, Yr = (e, a) => {
18911
- const n = _(a).prompt[e];
18902
+ "bg-bg": vr,
18903
+ "cs-cz": fr,
18904
+ "da-dk": Ar,
18905
+ "de-at": br,
18906
+ "de-de": Cr,
18907
+ "el-gr": Sr,
18908
+ "el-cy": Ir,
18909
+ "en-gb": Nr,
18910
+ "en-us": Tr,
18911
+ "es-es": Mr,
18912
+ "et-ee": yr,
18913
+ "fi-fi": jr,
18914
+ "fr-fr": Or,
18915
+ "fr-lu": zr,
18916
+ "ga-ie": Er,
18917
+ "hr-hr": Br,
18918
+ "hu-hu": Rr,
18919
+ "it-it": Pr,
18920
+ "lt-lt": wr,
18921
+ "lv-lv": Hr,
18922
+ "mt-mt": Lr,
18923
+ "nl-be": Gr,
18924
+ "nl-nl": xr,
18925
+ "no-no": Ur,
18926
+ "pl-pl": Dr,
18927
+ "pt-pt": Fr,
18928
+ "ro-ro": Kr,
18929
+ "sk-sk": Vr,
18930
+ "sl-si": Wr,
18931
+ "sv-se": Jr
18932
+ }, Zr = (e, a) => {
18933
+ const n = Q(a).prompt[e];
18912
18934
  return n || (console.log(
18913
18935
  'Missing prompt for key: "' + e + '" in locale: "' + a + '"'
18914
18936
  ), e);
18915
- }, _r = (e, a) => {
18916
- const n = _(a).subPrompt[e];
18937
+ }, qr = (e, a) => {
18938
+ const n = Q(a).subPrompt[e];
18917
18939
  return n || (console.log(
18918
18940
  'Missing subPrompt for key: "' + e + '" in locale: "' + a + '"'
18919
18941
  ), e);
18920
- }, Qr = (e, a) => {
18921
- const n = _(a).error[e];
18942
+ }, Yr = (e, a) => {
18943
+ const n = Q(a).error[e];
18922
18944
  return n || (console.log(
18923
18945
  'Missing error for key: "' + e + '" in locale: "' + a + '"'
18924
18946
  ), e);
18925
- }, Xr = (e, a) => {
18926
- const n = _(a).hint[e];
18947
+ }, _r = (e, a) => {
18948
+ const n = Q(a).hint[e];
18927
18949
  return n || (console.log(
18928
18950
  'Missing hint for key: "' + e + '" in locale: "' + a + '"'
18929
18951
  ), e);
18930
- }, kt = (e, a) => {
18931
- const n = _(a).text[e];
18952
+ }, gt = (e, a) => {
18953
+ const n = Q(a).text[e];
18932
18954
  return n || (console.log(
18933
18955
  'Missing text for key: "' + e + '" in locale: "' + a + '"'
18934
18956
  ), e);
18935
- }, ht = (e, a) => {
18936
- const n = _(a).title[e];
18957
+ }, kt = (e, a) => {
18958
+ const n = Q(a).title[e];
18937
18959
  return n || (console.log(
18938
18960
  'Missing title for key: "' + e + '" in locale: "' + a + '"'
18939
18961
  ), e);
18940
- }, $r = (e, a) => {
18941
- const n = _(a).subTitle[e];
18962
+ }, Qr = (e, a) => {
18963
+ const n = Q(a).subTitle[e];
18942
18964
  return n || (console.log(
18943
18965
  'Missing subTitle for key: "' + e + '" in locale: "' + a + '"'
18944
18966
  ), e);
18945
- }, eo = (e, a) => {
18946
- const n = _(a).button[e];
18967
+ }, Xr = (e, a) => {
18968
+ const n = Q(a).button[e];
18947
18969
  return n || (console.log(
18948
18970
  'Missing button for key: "' + e + '" in locale: "' + a + '"'
18949
18971
  ), e);
18950
18972
  }, Xn = (e, a) => {
18951
18973
  if (!e)
18952
18974
  return "";
18953
- const n = _(a).option[e];
18975
+ const n = Q(a).option[e];
18954
18976
  return n || (console.log(
18955
18977
  'Missing option for key: "' + e + '" in locale: "' + a + '"'
18956
18978
  ), e);
18957
- }, ao = (e, a) => {
18958
- const n = _(a).country[e];
18979
+ }, $r = (e, a) => {
18980
+ const n = Q(a).country[e];
18959
18981
  return n || (console.log(
18960
18982
  'Missing country for key: "' + e + '" in locale: "' + a + '"'
18961
18983
  ), e);
18962
- }, io = (e, a) => {
18963
- const n = _(a).usState[e];
18984
+ }, eo = (e, a) => {
18985
+ const n = Q(a).usState[e];
18964
18986
  return n || (console.log(
18965
18987
  'Missing usState for key: "' + e + '" in locale: "' + a + '"'
18966
18988
  ), e);
18967
- }, no = (e, a) => {
18968
- const n = _(a).caProvince[e];
18989
+ }, ao = (e, a) => {
18990
+ const n = Q(a).caProvince[e];
18969
18991
  return n || (console.log(
18970
18992
  'Missing caProvince for key: "' + e + '" in locale: "' + a + '"'
18971
18993
  ), e);
18972
- }, to = (e, a) => {
18973
- const n = _(a).month[e];
18994
+ }, io = (e, a) => {
18995
+ const n = Q(a).month[e];
18974
18996
  return n || (console.log(
18975
18997
  'Missing month for key: "' + e + '" in locale: "' + a + '"'
18976
18998
  ), e);
18977
- }, ro = (e, a) => {
18978
- const n = _(a).locale[e];
18999
+ }, no = (e, a) => {
19000
+ const n = Q(a).locale[e];
18979
19001
  return n || (console.log(
18980
19002
  'Missing locale for key: "' + e + '" in locale: "' + a + '"'
18981
19003
  ), e);
18982
- }, _ = (e = "en-us") => Ja[e] ? Ja[e] : (console.log(`Locale '${e}' not found. Using en-us`), Ja["en-us"]), vt = () => {
18983
- const e = bt(void 0);
19004
+ }, Q = (e = "en-us") => Ja[e] ? Ja[e] : (console.log(`Locale '${e}' not found. Using en-us`), Ja["en-us"]), to = ({
19005
+ bearerToken: e,
19006
+ data: a,
19007
+ onSubmit: n,
19008
+ onSuccess: r,
19009
+ staging: o
19010
+ }) => {
19011
+ var p;
19012
+ const { status: s, formStatus: l, postData: d, serverData: m } = kr(
19013
+ e,
19014
+ o
19015
+ ), [h, g] = K(
19016
+ a
19017
+ );
19018
+ return Y(() => {
19019
+ m && g(er(m, a));
19020
+ }, [a, m]), {
19021
+ handleOnSubmit: async (f) => {
19022
+ n && n(f), await d(f), r && r(f);
19023
+ },
19024
+ formData: h,
19025
+ isComplete: ((p = s == null ? void 0 : s.DAC7Interview) == null ? void 0 : p.dataCollectionStatus) === "COMPLETE",
19026
+ isLoading: !l || l !== "NOT_SUBMITTED" && !m
19027
+ };
19028
+ }, ht = () => {
19029
+ const e = At(void 0);
18984
19030
  return [() => {
18985
- const n = Ct(e);
19031
+ const n = bt(e);
18986
19032
  if (n === void 0)
18987
19033
  throw new Error("useCtx must be inside a Provider with a value");
18988
19034
  return n;
18989
19035
  }, e.Provider];
18990
- }, [ee, oo] = vt(), $n = (e) => {
18991
- const { hasNoEUTaxId: a, accountHolderIsDisregarded: n } = Da(e), r = [
19036
+ }, [ae, ro] = ht(), $n = (e) => {
19037
+ const { hasNoEUTaxId: a, accountHolderIsDisregarded: n } = xa(e), r = [
18992
19038
  "AccountHolderClassification",
18993
19039
  "AccountHolderContact"
18994
19040
  ];
@@ -18997,7 +19043,7 @@ const Ar = {
18997
19043
  "RegardedOwnerContact",
18998
19044
  "RegardedOwnerTax"
18999
19045
  ), r.push("Summary"), r.push("Confirmation"), r;
19000
- }, so = ({
19046
+ }, oo = ({
19001
19047
  data: e,
19002
19048
  language: a = "en-us",
19003
19049
  onSubmit: n,
@@ -19005,43 +19051,42 @@ const Ar = {
19005
19051
  step: o = "AccountHolderClassification",
19006
19052
  taxForms: s = ["DAC7"]
19007
19053
  }) => {
19008
- const [l, d] = K(a), [m, h] = K(s), [k, c] = K(), [v, A] = K(
19054
+ const [l, d] = K(a), [m, h] = K(s), [g, c] = K(), [p, f] = K(
19009
19055
  Yn(e, m)
19010
- ), [C, S] = K([o]), [N, O] = K(
19056
+ ), [C, N] = K([o]), [T, y] = K(
19011
19057
  void 0
19012
- ), { isW9: R, isW8: p, isW8Ben: U, isW8BenE: ae, isDac7: T } = Da(
19013
- v,
19058
+ ), { isW9: R, isW8: v, isW8Ben: L, isW8BenE: J, isDac7: I } = xa(
19059
+ p,
19014
19060
  m
19015
- ), y = C[C.length - 1], G = $(() => $n(v), [v]), te = (z) => {
19016
- const D = {
19017
- AccountHolderContact: "accountHolderContactInformation",
19018
- AccountHolderTax: "accountHolderTaxInformation",
19019
- AccountHolderTaxClarification: "accountHolderTaxClarification",
19020
- AccountHolderClassification: "accountHolderClassification",
19021
- Confirmation: "confirmation",
19022
- Exemptions: "exemptions",
19023
- RegardedOwnerClassification: "regardedOwnerClassification",
19024
- RegardedOwnerContact: "regardedOwnerContactInformation",
19025
- RegardedOwnerTax: "regardedOwnerTaxInformation",
19026
- Summary: "summary"
19027
- };
19028
- return D[z] ? D[z] : z;
19029
- };
19030
- q(() => {
19031
- const z = G.indexOf(y);
19061
+ ), j = C[C.length - 1], G = ee(() => $n(p), [p]), ie = (z) => ({
19062
+ AccountHolderContact: "accountHolderContactInformation",
19063
+ AccountHolderTax: "accountHolderTaxInformation",
19064
+ AccountHolderTaxClarification: "accountHolderTaxClarification",
19065
+ AccountHolderClassification: "accountHolderClassification",
19066
+ Confirmation: "confirmation",
19067
+ Exemptions: "exemptions",
19068
+ RegardedOwnerClassification: "regardedOwnerClassification",
19069
+ RegardedOwnerContact: "regardedOwnerContactInformation",
19070
+ RegardedOwnerTax: "regardedOwnerTaxInformation",
19071
+ Summary: "summary"
19072
+ })[z];
19073
+ Y(() => {
19074
+ const z = G.indexOf(j);
19032
19075
  c({
19033
19076
  stepNumber: z + 1,
19077
+ stepIndex: z,
19034
19078
  totalSteps: G.length,
19035
19079
  percentComplete: Math.round(
19036
19080
  z / (G.length - 1) * 100
19037
19081
  ),
19038
- stepTitle: ht(te(y), l),
19039
- stepId: te(y),
19082
+ stepTitle: kt(ie(j), l),
19083
+ stepId: ie(j),
19084
+ steps: G.map((U) => ie(U)),
19040
19085
  language: l
19041
19086
  });
19042
- }, [l, y, G]), q(() => {
19043
- k && r && r(k);
19044
- }, [r, k]);
19087
+ }, [l, j, G]), Y(() => {
19088
+ g && r && r(g);
19089
+ }, [r, g]);
19045
19090
  const Be = {
19046
19091
  regardedOwnerUsPerson: void 0,
19047
19092
  regardedOwnerUsAccountType: void 0,
@@ -19051,65 +19096,65 @@ const Ar = {
19051
19096
  regardedOwnerForeignAccountType: void 0,
19052
19097
  regardedOwnerForeignTrustClassification: void 0,
19053
19098
  regardedOwnerForeignOtherClassification: void 0
19054
- }, Pe = (z) => {
19055
- const D = J(z);
19056
- A(z), n(mr(z)), ue(D);
19099
+ }, Re = (z) => {
19100
+ const U = Z(z);
19101
+ f(z), n(ur(z)), ue(U);
19057
19102
  }, Ae = it(
19058
19103
  (z) => {
19059
- A(Yn(z, m)), O(void 0), S([o]);
19104
+ f(Yn(z, m)), y(void 0), N([o]);
19060
19105
  },
19061
19106
  [m, o]
19062
- ), J = (z) => {
19063
- const D = $n(z), Ne = D.indexOf(y);
19064
- return D[Ne + 1] || "Summary";
19065
- }, Q = (z) => {
19066
- const D = J(z);
19067
- D === "Summary" && O(void 0), ue(D);
19068
- }, ie = (z) => {
19069
- const D = {
19070
- ...v,
19107
+ ), Z = (z) => {
19108
+ const U = $n(z), Ne = U.indexOf(j);
19109
+ return U[Ne + 1] || "Summary";
19110
+ }, X = (z) => {
19111
+ const U = Z(z);
19112
+ U === "Summary" && y(void 0), ue(U);
19113
+ }, ne = (z) => {
19114
+ const U = {
19115
+ ...p,
19071
19116
  ...z
19072
19117
  };
19073
- A(D), N === void 0 ? Q(D) : S(["Summary"]);
19118
+ f(U), T === void 0 ? X(U) : N(["Summary"]);
19074
19119
  }, be = (z) => {
19075
- v.accountHolderUsAccountType !== z.accountHolderUsAccountType || v.accountHolderForeignAccountType !== z.accountHolderForeignAccountType ? ie({
19120
+ p.accountHolderUsAccountType !== z.accountHolderUsAccountType || p.accountHolderForeignAccountType !== z.accountHolderForeignAccountType ? ne({
19076
19121
  ...z,
19077
19122
  ...Be
19078
- }) : ie(z);
19123
+ }) : ne(z);
19079
19124
  }, ue = (z) => {
19080
- S([...C, z]);
19125
+ N([...C, z]);
19081
19126
  }, Ce = (z) => {
19082
- S([z]), O(v);
19083
- }, Ie = N !== void 0 ? () => {
19084
- A(N), O(void 0), S(["Summary"]);
19127
+ N([z]), y(p);
19128
+ }, Ie = T !== void 0 ? () => {
19129
+ f(T), y(void 0), N(["Summary"]);
19085
19130
  } : void 0, Se = C.length > 1 ? () => {
19086
- S(C.slice(0, C.length - 1));
19131
+ N(C.slice(0, C.length - 1));
19087
19132
  } : void 0;
19088
19133
  return {
19089
19134
  isW9: R,
19090
- isW8: p,
19091
- isW8Ben: U,
19092
- isW8BenE: ae,
19093
- isDac7: T,
19135
+ isW8: v,
19136
+ isW8Ben: L,
19137
+ isW8BenE: J,
19138
+ isDac7: I,
19094
19139
  onPersistAccountHolderData: be,
19095
- onPersistCollectedData: ie,
19096
- onSubmitTaxDocumentation: Pe,
19140
+ onPersistCollectedData: ne,
19141
+ onSubmitTaxDocumentation: Re,
19097
19142
  onResetTaxDocumentation: Ae,
19098
19143
  editTo: Ce,
19099
19144
  onCancel: Ie,
19100
- getTitleKey: te,
19145
+ getStepId: ie,
19101
19146
  goTo: ue,
19102
19147
  goBack: Se,
19103
- goToNext: Q,
19104
- progress: k,
19105
- stepName: y,
19106
- data: v,
19148
+ goToNext: X,
19149
+ progress: g,
19150
+ stepName: j,
19151
+ data: p,
19107
19152
  setLanguage: d,
19108
19153
  language: l,
19109
19154
  supportedForms: m,
19110
19155
  setSupportedForms: h
19111
19156
  };
19112
- }, lo = ({
19157
+ }, so = ({
19113
19158
  data: e = {},
19114
19159
  onSubmit: a,
19115
19160
  onProgress: n,
@@ -19118,9 +19163,9 @@ const Ar = {
19118
19163
  step: s,
19119
19164
  children: l
19120
19165
  }) => /* @__PURE__ */ i.jsx(
19121
- oo,
19166
+ ro,
19122
19167
  {
19123
- value: so({
19168
+ value: oo({
19124
19169
  data: e,
19125
19170
  onSubmit: a,
19126
19171
  language: r,
@@ -19130,12 +19175,12 @@ const Ar = {
19130
19175
  }),
19131
19176
  children: l
19132
19177
  }
19133
- ), [E, uo] = vt(), co = (e, a) => {
19134
- const n = (p) => {
19135
- const U = er(e);
19136
- return U[p] ? U[p] : p;
19137
- }, r = (p) => {
19138
- const U = {
19178
+ ), [E, lo] = ht(), uo = (e, a) => {
19179
+ const n = (v) => {
19180
+ const L = $t(e);
19181
+ return L[v] ? L[v] : v;
19182
+ }, r = (v) => {
19183
+ const L = {
19139
19184
  accountHolderUsSmllcElection: "smllcElection",
19140
19185
  iConfirmIncomeIsNonUs: "iConfirmIncomeIsNonUs",
19141
19186
  accountHolderIsEuResident: "isEuResident",
@@ -19145,125 +19190,125 @@ const Ar = {
19145
19190
  accountHolderVatIdentificationNumber: "vatIdentificationNumber",
19146
19191
  accountHolderCityOfBirth: "placeOfBirth"
19147
19192
  };
19148
- return U[p] ? U[p] : p;
19149
- }, o = (p) => {
19150
- const U = Qt();
19151
- return U[p] ? U[p] : p;
19193
+ return L[v] ? L[v] : v;
19194
+ }, o = (v) => {
19195
+ const L = _t();
19196
+ return L[v] ? L[v] : v;
19152
19197
  };
19153
19198
  return {
19154
- getLocalHint: (p) => Xr(o(p), a),
19155
- getLocalText: (p) => kt(p, a),
19156
- getLocalTitle: (p) => ht(p, a),
19157
- getLocalSubTitle: (p) => $r(p, a),
19158
- getLocalError: (p) => Qr(p, a),
19159
- getLocalLocale: (p) => ro(p, a),
19160
- getLocalButton: (p) => eo(p, a),
19161
- getLocalPrompt: (p) => Yr(n(p), a),
19162
- getLocalSubPrompt: (p) => _r(r(p), a),
19163
- getLocalOption: (p) => {
19164
- if (p)
19165
- return Xn(p, a) ? Xn(p, a) : p;
19199
+ getLocalHint: (v) => _r(o(v), a),
19200
+ getLocalText: (v) => gt(v, a),
19201
+ getLocalTitle: (v) => kt(v, a),
19202
+ getLocalSubTitle: (v) => Qr(v, a),
19203
+ getLocalError: (v) => Yr(v, a),
19204
+ getLocalLocale: (v) => no(v, a),
19205
+ getLocalButton: (v) => Xr(v, a),
19206
+ getLocalPrompt: (v) => Zr(n(v), a),
19207
+ getLocalSubPrompt: (v) => qr(r(v), a),
19208
+ getLocalOption: (v) => {
19209
+ if (v)
19210
+ return Xn(v, a) ? Xn(v, a) : v;
19166
19211
  },
19167
- getLocalCountry: (p) => p ? ao(p, a) : "",
19168
- getLocalUsState: (p) => p ? io(p, a) : "",
19169
- getLocalCaProvince: (p) => p ? no(p, a) : "",
19170
- getLocalMonth: (p) => p ? to(p, a) : "",
19212
+ getLocalCountry: (v) => v ? $r(v, a) : "",
19213
+ getLocalUsState: (v) => v ? eo(v, a) : "",
19214
+ getLocalCaProvince: (v) => v ? ao(v, a) : "",
19215
+ getLocalMonth: (v) => v ? io(v, a) : "",
19171
19216
  getHintKey: o,
19172
19217
  getPromptKey: n,
19173
19218
  getSubPromptKey: r
19174
19219
  };
19175
- }, mo = (e, a) => {
19220
+ }, co = (e, a) => {
19176
19221
  const n = { ...e };
19177
19222
  for (; a < 5; ) {
19178
19223
  const r = a + 1;
19179
19224
  n[`accountHolderShowTaxResidence${a}`] = e[`accountHolderShowTaxResidence${r}`], n[`accountHolderTaxResidenceCountry${a}`] = e[`accountHolderTaxResidenceCountry${r}`], n[`accountHolderTaxResidenceForeignTin${a}`] = e[`accountHolderTaxResidenceForeignTin${r}`], n[`accountHolderTaxResidenceForeignTin${a}IsNotRequired`] = e[`accountHolderTaxResidenceForeignTin${r}IsNotRequired`], a++;
19180
19225
  }
19181
19226
  return { ...n, accountHolderShowTaxResidence5: void 0 };
19182
- }, go = () => {
19227
+ }, mo = () => {
19183
19228
  const {
19184
19229
  language: e,
19185
19230
  data: a,
19186
19231
  supportedForms: n
19187
- } = ee(), [r, o] = K(a), [s, l] = K(!1), [d, m] = K(/* @__PURE__ */ new Set()), h = $(
19188
- () => hr(r, n),
19232
+ } = ae(), [r, o] = K(a), [s, l] = K(!1), [d, m] = K(/* @__PURE__ */ new Set()), h = ee(
19233
+ () => gr(r, n),
19189
19234
  [r, n]
19190
- ), k = $(
19235
+ ), g = ee(
19191
19236
  () => Object.fromEntries(
19192
- [...d].map((T) => [T, !0])
19237
+ [...d].map((I) => [I, !0])
19193
19238
  ),
19194
19239
  [d]
19195
- ), c = $(() => {
19196
- const T = ct(r);
19240
+ ), c = ee(() => {
19241
+ const I = ut(r);
19197
19242
  return Object.fromEntries(
19198
- Object.keys(k).map((y) => [
19199
- y,
19200
- T[y]
19243
+ Object.keys(g).map((j) => [
19244
+ j,
19245
+ I[j]
19201
19246
  ])
19202
19247
  );
19203
- }, [r, k]), v = $(() => {
19204
- const T = kr(r);
19248
+ }, [r, g]), p = ee(() => {
19249
+ const I = mr(r);
19205
19250
  return Object.fromEntries(
19206
- Object.keys(k).map((y) => [y, T[y]]).filter(([, y]) => y)
19251
+ Object.keys(g).map((j) => [j, I[j]]).filter(([, j]) => j)
19207
19252
  );
19208
- }, [r, k]);
19209
- q(() => {
19253
+ }, [r, g]);
19254
+ Y(() => {
19210
19255
  o(a);
19211
19256
  }, [a]);
19212
- const A = it(
19213
- (T, y) => {
19214
- if (/accountHolderShowTaxResidence[234]/.test(T) && y === void 0) {
19215
- const G = parseInt(T.slice(-1));
19216
- y !== r[T] && o(mo(r, G));
19217
- } else if (/AddressCountry/.test(T)) {
19218
- if (y !== r[T]) {
19219
- const G = T.split("Address")[0] + "Address";
19220
- o((te) => ({
19221
- ...te,
19222
- [T]: y,
19223
- [G]: y
19257
+ const f = it(
19258
+ (I, j) => {
19259
+ if (/accountHolderShowTaxResidence[234]/.test(I) && j === void 0) {
19260
+ const G = parseInt(I.slice(-1));
19261
+ j !== r[I] && o(co(r, G));
19262
+ } else if (/AddressCountry/.test(I)) {
19263
+ if (j !== r[I]) {
19264
+ const G = I.split("Address")[0] + "Address";
19265
+ o((ie) => ({
19266
+ ...ie,
19267
+ [I]: j,
19268
+ [G]: j
19224
19269
  }));
19225
19270
  }
19226
19271
  } else
19227
- y !== r[T] && o((G) => ({
19272
+ j !== r[I] && o((G) => ({
19228
19273
  ...G,
19229
- [T]: y
19274
+ [I]: j
19230
19275
  }));
19231
19276
  },
19232
19277
  [r]
19233
19278
  ), C = () => {
19234
19279
  l(!0);
19235
- }, S = () => {
19280
+ }, N = () => {
19236
19281
  l(!1);
19237
- }, N = Object.keys(v).length === 0, O = co(r, e);
19282
+ }, T = Object.keys(p).length === 0, y = uo(r, e);
19238
19283
  return {
19239
- clearIfNotRequired: (...T) => (y) => {
19240
- y === "yes" && T.forEach((G) => {
19241
- A(G, "");
19284
+ clearIfNotRequired: (...I) => (j) => {
19285
+ j === "yes" && I.forEach((G) => {
19286
+ f(G, "");
19242
19287
  });
19243
19288
  },
19244
19289
  fields: r,
19245
19290
  setFields: o,
19246
- setValue: A,
19247
- isErrorFree: N,
19291
+ setValue: f,
19292
+ isErrorFree: T,
19248
19293
  showErrors: s,
19249
19294
  exposeErrors: C,
19250
- hideErrors: S,
19251
- getRequiredLocalPrompt: (T) => O.getLocalPrompt(T) + (c[T] ? "*" : ""),
19252
- invalidFields: v,
19295
+ hideErrors: N,
19296
+ getRequiredLocalPrompt: (I) => y.getLocalPrompt(I) + (c[I] ? "*" : ""),
19297
+ invalidFields: p,
19253
19298
  // (must be visible)
19254
19299
  requiredFields: c,
19255
19300
  // (must be visible)
19256
19301
  visibleFields: h,
19257
19302
  // (must be supported)
19258
- hideField: (T) => {
19259
- d.has(T) && m((y) => new Set([...y].filter((G) => G !== T))), A(T, void 0);
19303
+ hideField: (I) => {
19304
+ d.has(I) && m((j) => new Set([...j].filter((G) => G !== I))), f(I, void 0);
19260
19305
  },
19261
- showField: (T) => {
19262
- d.has(T) || m((y) => /* @__PURE__ */ new Set([...y, T]));
19306
+ showField: (I) => {
19307
+ d.has(I) || m((j) => /* @__PURE__ */ new Set([...j, I]));
19263
19308
  },
19264
- ...O
19309
+ ...y
19265
19310
  };
19266
- }, de = ({ children: e }) => /* @__PURE__ */ i.jsx(uo, { value: go(), children: e }), ko = ({ address: e, className: a }) => {
19311
+ }, de = ({ children: e }) => /* @__PURE__ */ i.jsx(lo, { value: mo(), children: e }), go = ({ address: e, className: a }) => {
19267
19312
  const { getLocalCountry: n, getLocalUsState: r, getLocalCaProvince: o } = E(), s = e.country === "US" ? r(e.state) : e.country === "CA" ? o(e.state) : e.state;
19268
19313
  return /* @__PURE__ */ i.jsxs("div", { className: se(a, "address"), children: [
19269
19314
  /* @__PURE__ */ i.jsx("div", { children: e.street }),
@@ -19354,11 +19399,11 @@ const Ar = {
19354
19399
  a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-section-sub-title", children: a })
19355
19400
  ] }),
19356
19401
  r
19357
- ] }) : r, ze = [{ value: "yes" }, { value: "no" }], ho = () => {
19358
- const { language: e, setLanguage: a } = ee(), { getLocalLocale: n } = E(), r = (s) => {
19402
+ ] }) : r, ze = [{ value: "yes" }, { value: "no" }], ko = () => {
19403
+ const { language: e, setLanguage: a } = ae(), { getLocalLocale: n } = E(), r = (s) => {
19359
19404
  const l = s.target.value;
19360
19405
  a(l);
19361
- }, o = Gt.map((s) => ({
19406
+ }, o = Lt.map((s) => ({
19362
19407
  ...s,
19363
19408
  label: n(s.value)
19364
19409
  })).sort((s, l) => s.label.localeCompare(l.label));
@@ -19371,7 +19416,7 @@ const Ar = {
19371
19416
  children: o.map((s) => /* @__PURE__ */ i.jsx("option", { value: s.value, children: s.label }, s.value))
19372
19417
  }
19373
19418
  );
19374
- }, vo = [
19419
+ }, ho = [
19375
19420
  "AccountHolderClassification",
19376
19421
  "AccountHolderContact",
19377
19422
  "AccountHolderTax",
@@ -19382,7 +19427,7 @@ const Ar = {
19382
19427
  "RegardedOwnerContact",
19383
19428
  "RegardedOwnerTax",
19384
19429
  "Summary"
19385
- ], po = (e) => vo.includes(e), sa = (e) => {
19430
+ ], po = (e) => ho.includes(e), sa = (e) => {
19386
19431
  if (po(e))
19387
19432
  return e;
19388
19433
  throw new Error(`Invalid input step: ${e}`);
@@ -19421,10 +19466,10 @@ const Ar = {
19421
19466
  )
19422
19467
  ] })
19423
19468
  ] });
19424
- }, fo = ({ label: e, subLabel: a, name: n, onClick: r }) => {
19469
+ }, vo = ({ label: e, subLabel: a, name: n, onClick: r }) => {
19425
19470
  const { fields: o, setValue: s, getLocalPrompt: l, getLocalSubPrompt: d } = E(), m = (c) => {
19426
19471
  r && r(c), s(n, c);
19427
- }, h = o[n], k = (c) => {
19472
+ }, h = o[n], g = (c) => {
19428
19473
  m(c.target.checked ? "yes" : void 0);
19429
19474
  };
19430
19475
  return /* @__PURE__ */ i.jsxs(fe, { children: [
@@ -19437,7 +19482,7 @@ const Ar = {
19437
19482
  name: n,
19438
19483
  "aria-label": n,
19439
19484
  checked: h === "yes",
19440
- onChange: k,
19485
+ onChange: g,
19441
19486
  className: "taxbit-check-box"
19442
19487
  }
19443
19488
  ),
@@ -19448,49 +19493,49 @@ const Ar = {
19448
19493
  ] }),
19449
19494
  /* @__PURE__ */ i.jsx(Ee, { name: n })
19450
19495
  ] });
19451
- }, Ao = (e) => {
19496
+ }, fo = (e) => {
19452
19497
  const { fields: a, setValue: n, getLocalMonth: r } = E(), o = a[e] || "", s = o.split("/")[0] || "", l = o.split("/")[1] || "", d = o.split("/")[2] || "", m = s !== "" ? Kn(
19453
19498
  parseInt(s),
19454
19499
  d !== "" ? parseInt(d) : void 0
19455
- ) : Un.length, h = xt.map((C) => ({
19500
+ ) : Dn.length, h = xt.map((C) => ({
19456
19501
  ...C,
19457
19502
  label: r(C.value)
19458
- })), k = (C, S, N) => {
19459
- if (!S)
19503
+ })), g = (C, N, T) => {
19504
+ if (!N)
19460
19505
  return !0;
19461
- const O = Kn(
19462
- parseInt(S),
19463
- V(N) ? parseInt(N) : void 0
19506
+ const y = Kn(
19507
+ parseInt(N),
19508
+ V(T) ? parseInt(T) : void 0
19464
19509
  );
19465
- return V(C) && O >= parseInt(C);
19510
+ return V(C) && y >= parseInt(C);
19466
19511
  };
19467
19512
  return {
19468
19513
  mm: s,
19469
19514
  dd: l,
19470
19515
  yyyy: d,
19471
19516
  handleDayChange: (C) => {
19472
- const S = C.target.value;
19473
- n(e, `${s || ""}/${S}/${d || ""}`);
19517
+ const N = C.target.value;
19518
+ n(e, `${s || ""}/${N}/${d || ""}`);
19474
19519
  },
19475
19520
  handleMonthChange: (C) => {
19476
- const S = C.target.value;
19521
+ const N = C.target.value;
19477
19522
  n(
19478
19523
  e,
19479
- `${S}/${k(l, S, d) ? l : ""}/${d || ""}`
19524
+ `${N}/${g(l, N, d) ? l : ""}/${d || ""}`
19480
19525
  );
19481
19526
  },
19482
19527
  handleYearChange: (C) => {
19483
- const S = C.target.value;
19528
+ const N = C.target.value;
19484
19529
  n(
19485
19530
  e,
19486
- `${s || ""}/${k(l, s, S) ? l : ""}/${S}`
19531
+ `${s || ""}/${g(l, s, N) ? l : ""}/${N}`
19487
19532
  );
19488
19533
  },
19489
- dayOptions: Un.slice(0, m),
19490
- birthYearOptions: _t,
19534
+ dayOptions: Dn.slice(0, m),
19535
+ birthYearOptions: Yt,
19491
19536
  monthOptions: h
19492
19537
  };
19493
- }, bo = ({
19538
+ }, Ao = ({
19494
19539
  name: e,
19495
19540
  className: a,
19496
19541
  hint: n
@@ -19502,10 +19547,10 @@ const Ar = {
19502
19547
  handleDayChange: d,
19503
19548
  handleMonthChange: m,
19504
19549
  handleYearChange: h,
19505
- dayOptions: k,
19550
+ dayOptions: g,
19506
19551
  monthOptions: c,
19507
- birthYearOptions: v
19508
- } = Ao(e);
19552
+ birthYearOptions: p
19553
+ } = fo(e);
19509
19554
  return /* @__PURE__ */ i.jsxs(fe, { className: a, children: [
19510
19555
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-row-value", children: [
19511
19556
  /* @__PURE__ */ i.jsxs(
@@ -19522,7 +19567,7 @@ const Ar = {
19522
19567
  ),
19523
19568
  children: [
19524
19569
  /* @__PURE__ */ i.jsx("option", { value: "", disabled: !0, hidden: !0, children: r("month") }),
19525
- c.map((A) => /* @__PURE__ */ i.jsx("option", { value: A.value, children: A.label ? A.label : A.value }, A.value))
19570
+ c.map((f) => /* @__PURE__ */ i.jsx("option", { value: f.value, children: f.label ? f.label : f.value }, f.value))
19526
19571
  ]
19527
19572
  }
19528
19573
  ),
@@ -19540,7 +19585,7 @@ const Ar = {
19540
19585
  ),
19541
19586
  children: [
19542
19587
  /* @__PURE__ */ i.jsx("option", { value: "", disabled: !0, hidden: !0, children: r("day") }),
19543
- k.map((A) => /* @__PURE__ */ i.jsx("option", { value: A.value, children: parseInt(A.value) }, A.value))
19588
+ g.map((f) => /* @__PURE__ */ i.jsx("option", { value: f.value, children: parseInt(f.value) }, f.value))
19544
19589
  ]
19545
19590
  }
19546
19591
  ),
@@ -19558,14 +19603,14 @@ const Ar = {
19558
19603
  ),
19559
19604
  children: [
19560
19605
  /* @__PURE__ */ i.jsx("option", { value: "", disabled: !0, hidden: !0, children: r("year") }),
19561
- v.map((A) => /* @__PURE__ */ i.jsx("option", { value: A.value, children: A.value }, A.value))
19606
+ p.map((f) => /* @__PURE__ */ i.jsx("option", { value: f.value, children: f.value }, f.value))
19562
19607
  ]
19563
19608
  }
19564
19609
  )
19565
19610
  ] }),
19566
19611
  /* @__PURE__ */ i.jsx(Ee, { name: e, hint: n })
19567
19612
  ] });
19568
- }, Co = ({ name: e, options: a }) => {
19613
+ }, bo = ({ name: e, options: a }) => {
19569
19614
  const { fields: n, setValue: r, hideErrors: o, getLocalOption: s } = E(), l = (h) => {
19570
19615
  r(e, h), o();
19571
19616
  }, d = n[e], m = (h) => {
@@ -19599,7 +19644,7 @@ const Ar = {
19599
19644
  )) }),
19600
19645
  /* @__PURE__ */ i.jsx(Ee, { name: e })
19601
19646
  ] });
19602
- }, Io = ({
19647
+ }, Co = ({
19603
19648
  name: e,
19604
19649
  options: a,
19605
19650
  addBlank: n = !0,
@@ -19607,7 +19652,7 @@ const Ar = {
19607
19652
  onChange: o,
19608
19653
  disabled: s
19609
19654
  }) => {
19610
- const { fields: l, setValue: d, getLocalOption: m } = E(), h = l[e], k = (c) => {
19655
+ const { fields: l, setValue: d, getLocalOption: m } = E(), h = l[e], g = (c) => {
19611
19656
  o && o(), d(e, c.target.value);
19612
19657
  };
19613
19658
  return /* @__PURE__ */ i.jsxs(fe, { className: r, children: [
@@ -19616,7 +19661,7 @@ const Ar = {
19616
19661
  {
19617
19662
  name: e,
19618
19663
  "aria-label": e,
19619
- onChange: k,
19664
+ onChange: g,
19620
19665
  value: h || "",
19621
19666
  className: "taxbit-select",
19622
19667
  disabled: s,
@@ -19628,7 +19673,7 @@ const Ar = {
19628
19673
  ),
19629
19674
  /* @__PURE__ */ i.jsx(Ee, { name: e })
19630
19675
  ] });
19631
- }, So = ({
19676
+ }, Io = ({
19632
19677
  name: e,
19633
19678
  className: a,
19634
19679
  onChange: n,
@@ -19637,9 +19682,9 @@ const Ar = {
19637
19682
  disabled: s,
19638
19683
  syncName: l
19639
19684
  }) => {
19640
- const { fields: d, setValue: m } = E(), h = d[e] || "", k = (c) => {
19641
- const v = n ? n(c.target.value) : c.target.value;
19642
- l && (d[l] === d[e] || !d[l]) && m(l, v), m(e, v);
19685
+ const { fields: d, setValue: m } = E(), h = d[e] || "", g = (c) => {
19686
+ const p = n ? n(c.target.value) : c.target.value;
19687
+ l && (d[l] === d[e] || !d[l]) && m(l, p), m(e, p);
19643
19688
  };
19644
19689
  return /* @__PURE__ */ i.jsxs(fe, { className: a, children: [
19645
19690
  /* @__PURE__ */ i.jsx(
@@ -19649,7 +19694,7 @@ const Ar = {
19649
19694
  name: e,
19650
19695
  "aria-label": e,
19651
19696
  value: h,
19652
- onChange: k,
19697
+ onChange: g,
19653
19698
  className: "taxbit-input",
19654
19699
  disabled: s
19655
19700
  }
@@ -19657,7 +19702,7 @@ const Ar = {
19657
19702
  /* @__PURE__ */ i.jsx(Ee, { name: e, hint: r }),
19658
19703
  o ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-input-status-footer", children: o }) : null
19659
19704
  ] });
19660
- }, No = ({ name: e }) => {
19705
+ }, So = ({ name: e }) => {
19661
19706
  const { fields: a, setValue: n, getLocalPrompt: r } = E(), o = a[e], s = () => {
19662
19707
  n(e, o === void 0 ? "yes" : void 0);
19663
19708
  };
@@ -19675,7 +19720,7 @@ const Ar = {
19675
19720
  ) }),
19676
19721
  /* @__PURE__ */ i.jsx(Ee, { name: e })
19677
19722
  ] });
19678
- }, To = ({ onClick: e }) => {
19723
+ }, No = ({ onClick: e }) => {
19679
19724
  const { getLocalButton: a } = E(), [n, r] = K(!0), o = "hideShowButton", s = () => {
19680
19725
  r((l) => !l), e();
19681
19726
  };
@@ -19700,7 +19745,7 @@ const Ar = {
19700
19745
  )
19701
19746
  }
19702
19747
  ) });
19703
- }, Mo = ({
19748
+ }, To = ({
19704
19749
  value: e = "",
19705
19750
  mask: a = "•",
19706
19751
  name: n,
@@ -19709,37 +19754,37 @@ const Ar = {
19709
19754
  show: s = !1,
19710
19755
  ...l
19711
19756
  }) => {
19712
- const [d, m] = K(e), [h, k] = K(
19757
+ const [d, m] = K(e), [h, g] = K(
19713
19758
  Array(e.length + 1).join(a)
19714
- ), c = xn(), [v, A] = K([
19759
+ ), c = Un(), [p, f] = K([
19715
19760
  0,
19716
19761
  0
19717
- ]), C = xn(null);
19718
- q(() => {
19719
- e !== d && (m(e), k(Array(e.length + 1).join(a)));
19762
+ ]), C = Un(null);
19763
+ Y(() => {
19764
+ e !== d && (m(e), g(Array(e.length + 1).join(a)));
19720
19765
  }, [e, a, d]);
19721
- const S = (N) => {
19722
- const O = N.target.selectionEnd === null ? N.target.value.length : N.target.selectionEnd;
19723
- A([O, O]);
19724
- const R = N.target.value, p = R.replace(
19766
+ const N = (T) => {
19767
+ const y = T.target.selectionEnd === null ? T.target.value.length : T.target.selectionEnd;
19768
+ f([y, y]);
19769
+ const R = T.target.value, v = R.replace(
19725
19770
  new RegExp(
19726
- `${O ? `(^\\${a}{1,${O}})|` : ""}(\\${a}+)`,
19771
+ `${y ? `(^\\${a}{1,${y}})|` : ""}(\\${a}+)`,
19727
19772
  "g"
19728
19773
  ),
19729
- (ae, T, y) => !y && O ? d.substring(0, ae.length) : d.substring(d.length - ae.length)
19730
- ), U = R.split("").map((ae, T) => T === O - 1 ? ae : a).join("");
19731
- k(U), m(p), r && r(p);
19774
+ (J, I, j) => !j && y ? d.substring(0, J.length) : d.substring(d.length - J.length)
19775
+ ), L = R.split("").map((J, I) => I === y - 1 ? J : a).join("");
19776
+ g(L), m(v), r && r(v);
19732
19777
  };
19733
- return q(() => (clearTimeout(c.current), c.current = setTimeout(() => {
19734
- C.current && A([
19778
+ return Y(() => (clearTimeout(c.current), c.current = setTimeout(() => {
19779
+ C.current && f([
19735
19780
  C.current.selectionStart,
19736
19781
  C.current.selectionEnd
19737
- ]), k(Array(h.length + 1).join(a));
19782
+ ]), g(Array(h.length + 1).join(a));
19738
19783
  }, 1e3), () => {
19739
19784
  clearTimeout(c.current);
19740
- }), [a, h]), q(() => {
19741
- C.current && (C.current.selectionStart = v[0], C.current.selectionEnd = v[1]);
19742
- }, [v]), /* @__PURE__ */ i.jsx(
19785
+ }), [a, h]), Y(() => {
19786
+ C.current && (C.current.selectionStart = p[0], C.current.selectionEnd = p[1]);
19787
+ }, [p]), /* @__PURE__ */ i.jsx(
19743
19788
  "input",
19744
19789
  {
19745
19790
  ...l,
@@ -19748,11 +19793,11 @@ const Ar = {
19748
19793
  name: n,
19749
19794
  "aria-label": n,
19750
19795
  value: s ? d : h,
19751
- onChange: S,
19796
+ onChange: N,
19752
19797
  disabled: o
19753
19798
  }
19754
19799
  );
19755
- }, yo = ({
19800
+ }, Mo = ({
19756
19801
  name: e,
19757
19802
  className: a,
19758
19803
  onChange: n,
@@ -19760,16 +19805,16 @@ const Ar = {
19760
19805
  children: o,
19761
19806
  disabled: s
19762
19807
  }) => {
19763
- const { fields: l, setValue: d } = E(), [m, h] = K(!0), k = l[e] || "", c = (v) => {
19764
- const A = n ? n(v) : v;
19765
- d(e, A);
19808
+ const { fields: l, setValue: d } = E(), [m, h] = K(!0), g = l[e] || "", c = (p) => {
19809
+ const f = n ? n(p) : p;
19810
+ d(e, f);
19766
19811
  };
19767
19812
  return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
19768
19813
  /* @__PURE__ */ i.jsxs(fe, { className: a, children: [
19769
19814
  /* @__PURE__ */ i.jsx(
19770
- Mo,
19815
+ To,
19771
19816
  {
19772
- value: k,
19817
+ value: g,
19773
19818
  onChange: c,
19774
19819
  className: "taxbit-input",
19775
19820
  name: e,
@@ -19781,7 +19826,7 @@ const Ar = {
19781
19826
  /* @__PURE__ */ i.jsx(Ee, { name: e, hint: r }),
19782
19827
  o ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-input-status-footer", children: o }) : null
19783
19828
  ] }),
19784
- /* @__PURE__ */ i.jsx(To, { onClick: () => h((v) => !v) })
19829
+ /* @__PURE__ */ i.jsx(No, { onClick: () => h((p) => !p) })
19785
19830
  ] });
19786
19831
  }, et = [
19787
19832
  "City",
@@ -19798,14 +19843,14 @@ const Ar = {
19798
19843
  hideField: s,
19799
19844
  fields: l
19800
19845
  } = E(), d = !!n[`${a}Country`];
19801
- return q(() => {
19846
+ return Y(() => {
19802
19847
  d ? (o(a), et.forEach((m) => {
19803
19848
  o(`${a}${m}`);
19804
19849
  })) : (s(a), et.forEach((m) => {
19805
19850
  s(`${a}${m}`);
19806
19851
  }));
19807
19852
  }, [d, o, s, a]), d ? /* @__PURE__ */ i.jsx($a, { label: r(a), onEdit: e, name: a, children: /* @__PURE__ */ i.jsx(
19808
- ko,
19853
+ go,
19809
19854
  {
19810
19855
  address: {
19811
19856
  city: l[`${a}City`],
@@ -19817,7 +19862,7 @@ const Ar = {
19817
19862
  }
19818
19863
  }
19819
19864
  ) }) : null;
19820
- }, f = ({
19865
+ }, A = ({
19821
19866
  label: e,
19822
19867
  subLabel: a,
19823
19868
  name: n,
@@ -19830,10 +19875,10 @@ const Ar = {
19830
19875
  hideField: d,
19831
19876
  getRequiredLocalPrompt: m,
19832
19877
  getLocalSubPrompt: h
19833
- } = E(), k = !!s[n];
19834
- return q(() => {
19835
- k ? l(n) : d(n);
19836
- }, [k, n, l, d]), k ? /* @__PURE__ */ i.jsx(
19878
+ } = E(), g = !!s[n];
19879
+ return Y(() => {
19880
+ g ? l(n) : d(n);
19881
+ }, [g, n, l, d]), g ? /* @__PURE__ */ i.jsx(
19837
19882
  $a,
19838
19883
  {
19839
19884
  name: n,
@@ -19843,13 +19888,13 @@ const Ar = {
19843
19888
  children: r
19844
19889
  }
19845
19890
  ) : null;
19846
- }, x = ({
19891
+ }, D = ({
19847
19892
  name: e,
19848
19893
  label: a,
19849
19894
  subLabel: n,
19850
19895
  onClick: r
19851
- }) => /* @__PURE__ */ i.jsx(f, { name: e, children: /* @__PURE__ */ i.jsx(
19852
- fo,
19896
+ }) => /* @__PURE__ */ i.jsx(A, { name: e, children: /* @__PURE__ */ i.jsx(
19897
+ vo,
19853
19898
  {
19854
19899
  label: a,
19855
19900
  subLabel: n,
@@ -19862,19 +19907,19 @@ const Ar = {
19862
19907
  name: n
19863
19908
  }) => {
19864
19909
  const { showErrors: r, invalidFields: o, getLocalError: s } = E(), l = o[n] ? o[n].map((d) => s(d)) : void 0;
19865
- return /* @__PURE__ */ i.jsx(f, { name: n, label: e, subLabel: a, children: r && l && /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx("div", { className: "taxbit-error-message", children: l.map((d) => /* @__PURE__ */ i.jsxs(nt, { children: [
19910
+ return /* @__PURE__ */ i.jsx(A, { name: n, label: e, subLabel: a, children: r && l && /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx("div", { className: "taxbit-error-message", children: l.map((d) => /* @__PURE__ */ i.jsxs(nt, { children: [
19866
19911
  d,
19867
19912
  /* @__PURE__ */ i.jsx("br", {})
19868
19913
  ] }, d)) }) }) });
19869
- }, pe = ({
19914
+ }, ve = ({
19870
19915
  name: e,
19871
19916
  label: a,
19872
19917
  hint: n,
19873
19918
  subLabel: r,
19874
19919
  onChange: o,
19875
19920
  disabled: s
19876
- }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19877
- yo,
19921
+ }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19922
+ Mo,
19878
19923
  {
19879
19924
  name: e,
19880
19925
  onChange: o,
@@ -19886,7 +19931,7 @@ const Ar = {
19886
19931
  label: a,
19887
19932
  subLabel: n,
19888
19933
  options: r
19889
- }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(Co, { name: e, options: r }) }), le = ({
19934
+ }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(bo, { name: e, options: r }) }), le = ({
19890
19935
  name: e,
19891
19936
  label: a,
19892
19937
  options: n,
@@ -19894,8 +19939,8 @@ const Ar = {
19894
19939
  addBlank: o,
19895
19940
  onChange: s,
19896
19941
  disabled: l
19897
- }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19898
- Io,
19942
+ }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19943
+ Co,
19899
19944
  {
19900
19945
  name: e,
19901
19946
  options: n,
@@ -19903,7 +19948,7 @@ const Ar = {
19903
19948
  onChange: s,
19904
19949
  disabled: l
19905
19950
  }
19906
- ) }), Y = ({
19951
+ ) }), _ = ({
19907
19952
  name: e,
19908
19953
  label: a,
19909
19954
  hint: n,
@@ -19911,8 +19956,8 @@ const Ar = {
19911
19956
  onChange: o,
19912
19957
  disabled: s,
19913
19958
  syncName: l
19914
- }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19915
- So,
19959
+ }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19960
+ Io,
19916
19961
  {
19917
19962
  name: e,
19918
19963
  onChange: o,
@@ -19920,8 +19965,8 @@ const Ar = {
19920
19965
  disabled: s,
19921
19966
  syncName: l
19922
19967
  }
19923
- ) }), jo = () => {
19924
- const { fields: e, getLocalTitle: a } = E(), { getTitleKey: n, onPersistAccountHolderData: r, onCancel: o } = ee();
19968
+ ) }), yo = () => {
19969
+ const { fields: e, getLocalTitle: a } = E(), { getStepId: n, onPersistAccountHolderData: r, onCancel: o } = ae();
19925
19970
  return /* @__PURE__ */ i.jsxs(
19926
19971
  ke,
19927
19972
  {
@@ -19929,7 +19974,7 @@ const Ar = {
19929
19974
  n(sa("AccountHolderClassification"))
19930
19975
  ),
19931
19976
  className: "taxbit-form-account-holder-classification",
19932
- actions: /* @__PURE__ */ i.jsx(ho, {}),
19977
+ actions: /* @__PURE__ */ i.jsx(ko, {}),
19933
19978
  children: [
19934
19979
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
19935
19980
  /* @__PURE__ */ i.jsx(
@@ -19983,7 +20028,7 @@ const Ar = {
19983
20028
  label: !0
19984
20029
  }
19985
20030
  ),
19986
- /* @__PURE__ */ i.jsx(Y, { name: "accountHolderUsOtherClassification", label: !0 }),
20031
+ /* @__PURE__ */ i.jsx(_, { name: "accountHolderUsOtherClassification", label: !0 }),
19987
20032
  /* @__PURE__ */ i.jsx(
19988
20033
  W,
19989
20034
  {
@@ -20027,7 +20072,7 @@ const Ar = {
20027
20072
  ]
20028
20073
  }
20029
20074
  );
20030
- }, Oo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(jo, {}) }), Ga = ({
20075
+ }, jo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(yo, {}) }), Ga = ({
20031
20076
  prompt: e,
20032
20077
  prefix: a,
20033
20078
  showIf: n = !0
@@ -20038,23 +20083,23 @@ const Ar = {
20038
20083
  getLocalCountry: s,
20039
20084
  getLocalCaProvince: l,
20040
20085
  getLocalUsState: d
20041
- } = E(), m = r[`${a}Country`], h = $(
20042
- () => ra.map((v) => ({
20043
- ...v,
20044
- label: s(v.value)
20045
- })).sort((v, A) => v.label.localeCompare(A.label)),
20086
+ } = E(), m = r[`${a}Country`], h = ee(
20087
+ () => ra.map((p) => ({
20088
+ ...p,
20089
+ label: s(p.value)
20090
+ })).sort((p, f) => p.label.localeCompare(f.label)),
20046
20091
  [s]
20047
- ), k = $(
20048
- () => Zt.map((v) => ({
20049
- ...v,
20050
- label: d(v.value)
20051
- })).sort((v, A) => v.label.localeCompare(A.label)),
20092
+ ), g = ee(
20093
+ () => Jt.map((p) => ({
20094
+ ...p,
20095
+ label: d(p.value)
20096
+ })).sort((p, f) => p.label.localeCompare(f.label)),
20052
20097
  [d]
20053
- ), c = $(
20054
- () => yt.map((v) => ({
20055
- ...v,
20056
- label: l(v.value)
20057
- })).sort((v, A) => v.label.localeCompare(A.label)),
20098
+ ), c = ee(
20099
+ () => Mt.map((p) => ({
20100
+ ...p,
20101
+ label: l(p.value)
20102
+ })).sort((p, f) => p.label.localeCompare(f.label)),
20058
20103
  [l]
20059
20104
  );
20060
20105
  return /* @__PURE__ */ i.jsxs(oe, { title: e, showIf: n, children: [
@@ -20067,38 +20112,36 @@ const Ar = {
20067
20112
  label: !0
20068
20113
  }
20069
20114
  ),
20070
- /* @__PURE__ */ i.jsx(Y, { name: `${a}Street`, label: !0 }),
20071
- /* @__PURE__ */ i.jsx(Y, { name: `${a}Street2`, label: !0 }),
20072
- /* @__PURE__ */ i.jsx(Y, { name: `${a}City`, label: !0 }),
20073
- m !== "CA" && m !== "US" ? /* @__PURE__ */ i.jsx(Y, { label: !0, name: `${a}State` }) : /* @__PURE__ */ i.jsx(
20115
+ /* @__PURE__ */ i.jsx(_, { name: `${a}Street`, label: !0 }),
20116
+ /* @__PURE__ */ i.jsx(_, { name: `${a}Street2`, label: !0 }),
20117
+ /* @__PURE__ */ i.jsx(_, { name: `${a}City`, label: !0 }),
20118
+ m !== "CA" && m !== "US" ? /* @__PURE__ */ i.jsx(_, { label: !0, name: `${a}State` }) : /* @__PURE__ */ i.jsx(
20074
20119
  le,
20075
20120
  {
20076
20121
  name: `${a}State`,
20077
20122
  className: "taxbit-state",
20078
- options: m === "CA" ? c : k,
20123
+ options: m === "CA" ? c : g,
20079
20124
  label: !0
20080
20125
  }
20081
20126
  ),
20082
- /* @__PURE__ */ i.jsx(Y, { name: `${a}Zip`, label: !0 })
20127
+ /* @__PURE__ */ i.jsx(_, { name: `${a}Zip`, label: !0 })
20083
20128
  ] });
20084
- }, zo = ({
20129
+ }, Oo = ({
20085
20130
  name: e,
20086
20131
  label: a,
20087
20132
  subLabel: n
20088
- }) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(bo, { name: e }) }), Eo = () => {
20089
- const { onPersistCollectedData: e, goBack: a, onCancel: n, isW9: r, isW8: o, getTitleKey: s } = ee(), { fields: l, getLocalCountry: d, getLocalTitle: m } = E(), h = $(
20090
- () => ra.map((k) => ({
20091
- ...k,
20092
- label: d(k.value)
20093
- })).sort((k, c) => k.label.localeCompare(c.label)),
20133
+ }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(Ao, { name: e }) }), zo = () => {
20134
+ const { onPersistCollectedData: e, goBack: a, onCancel: n, isW9: r, isW8: o, getStepId: s } = ae(), { fields: l, getLocalCountry: d, getLocalTitle: m } = E(), h = ee(
20135
+ () => ra.map((g) => ({
20136
+ ...g,
20137
+ label: d(g.value)
20138
+ })).sort((g, c) => g.label.localeCompare(c.label)),
20094
20139
  [d]
20095
20140
  );
20096
20141
  return /* @__PURE__ */ i.jsxs(
20097
20142
  ke,
20098
20143
  {
20099
- title: m(
20100
- s(sa("AccountHolderContact"))
20101
- ),
20144
+ title: m(s(sa("AccountHolderContact"))),
20102
20145
  className: "taxbit-form-account-holder-contact-information",
20103
20146
  children: [
20104
20147
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
@@ -20111,15 +20154,15 @@ const Ar = {
20111
20154
  }
20112
20155
  ),
20113
20156
  /* @__PURE__ */ i.jsx(
20114
- Y,
20157
+ _,
20115
20158
  {
20116
20159
  label: !0,
20117
20160
  name: "accountHolderName",
20118
20161
  syncName: "accountHolderFinancialAccountName"
20119
20162
  }
20120
20163
  ),
20121
- /* @__PURE__ */ i.jsx(Y, { label: !0, name: "accountHolderDbaName" }),
20122
- /* @__PURE__ */ i.jsx(zo, { name: "accountHolderDateOfBirth", label: !0 }),
20164
+ /* @__PURE__ */ i.jsx(_, { label: !0, name: "accountHolderDbaName" }),
20165
+ /* @__PURE__ */ i.jsx(Oo, { name: "accountHolderDateOfBirth", label: !0 }),
20123
20166
  /* @__PURE__ */ i.jsx(
20124
20167
  Ga,
20125
20168
  {
@@ -20128,7 +20171,7 @@ const Ar = {
20128
20171
  showIf: l.accountHolderIsEuResident === "yes" || o || r
20129
20172
  }
20130
20173
  ),
20131
- /* @__PURE__ */ i.jsx(x, { name: "accountHolderMailingAddressIsDifferent", label: !0 }),
20174
+ /* @__PURE__ */ i.jsx(D, { name: "accountHolderMailingAddressIsDifferent", label: !0 }),
20132
20175
  /* @__PURE__ */ i.jsx(
20133
20176
  Ga,
20134
20177
  {
@@ -20149,81 +20192,81 @@ const Ar = {
20149
20192
  ]
20150
20193
  }
20151
20194
  );
20152
- }, Bo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Eo, {}) }), ta = ({
20195
+ }, Eo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(zo, {}) }), ta = ({
20153
20196
  index: e,
20154
20197
  showIf: a = !0,
20155
20198
  onShow: n,
20156
20199
  more: r,
20157
20200
  countryOptions: o
20158
20201
  }) => {
20159
- const { fields: s, getLocalTitle: l, hideField: d, clearIfNotRequired: m } = E(), h = `accountHolderTaxResidenceCountry${e}`, k = `accountHolderTaxResidenceForeignTin${e}`, c = `accountHolderTaxResidenceForeignTin${e}IsNotRequired`, v = `accountHolderShowTaxResidence${e + 1}`, A = `taxResidence${e}`, S = [
20202
+ const { fields: s, getLocalTitle: l, hideField: d, clearIfNotRequired: m } = E(), h = `accountHolderTaxResidenceCountry${e}`, g = `accountHolderTaxResidenceForeignTin${e}`, c = `accountHolderTaxResidenceForeignTin${e}IsNotRequired`, p = `accountHolderShowTaxResidence${e + 1}`, f = `taxResidence${e}`, N = [
20160
20203
  s.accountHolderTaxResidenceCountry1,
20161
20204
  s.accountHolderTaxResidenceCountry2,
20162
20205
  s.accountHolderTaxResidenceCountry3,
20163
20206
  s.accountHolderTaxResidenceCountry4,
20164
20207
  s.accountHolderTaxResidenceCountry5
20165
20208
  ].filter(
20166
- (O) => O !== s[`accountHolderTaxResidenceCountry${e}`]
20167
- ), N = o.filter(
20168
- (O) => !S.includes(O.value)
20209
+ (y) => y !== s[`accountHolderTaxResidenceCountry${e}`]
20210
+ ), T = o.filter(
20211
+ (y) => !N.includes(y.value)
20169
20212
  );
20170
- return q(() => {
20171
- a ? n && n() : (d(h), d(k), d(c), d(v));
20213
+ return Y(() => {
20214
+ a ? n && n() : (d(h), d(g), d(c), d(p));
20172
20215
  }, [
20173
20216
  h,
20174
20217
  d,
20175
20218
  c,
20176
20219
  n,
20177
20220
  a,
20178
- k,
20179
- v
20180
- ]), a ? /* @__PURE__ */ i.jsxs(oe, { title: l(A), showIf: a, children: [
20221
+ g,
20222
+ p
20223
+ ]), a ? /* @__PURE__ */ i.jsxs(oe, { title: l(f), showIf: a, children: [
20181
20224
  /* @__PURE__ */ i.jsx(
20182
20225
  le,
20183
20226
  {
20184
20227
  name: h,
20185
20228
  className: "taxbit-country",
20186
- options: N,
20229
+ options: T,
20187
20230
  label: !0
20188
20231
  }
20189
20232
  ),
20190
20233
  /* @__PURE__ */ i.jsx(
20191
- pe,
20234
+ ve,
20192
20235
  {
20193
- name: k,
20236
+ name: g,
20194
20237
  label: !0,
20195
20238
  disabled: s[c] === "yes"
20196
20239
  }
20197
20240
  ),
20198
20241
  /* @__PURE__ */ i.jsx(
20199
- x,
20242
+ D,
20200
20243
  {
20201
20244
  label: !0,
20202
20245
  name: c,
20203
- onClick: m(k)
20246
+ onClick: m(g)
20204
20247
  }
20205
20248
  ),
20206
- r ? /* @__PURE__ */ i.jsx($a, { children: /* @__PURE__ */ i.jsx(No, { name: v }) }) : null
20249
+ r ? /* @__PURE__ */ i.jsx($a, { children: /* @__PURE__ */ i.jsx(So, { name: p }) }) : null
20207
20250
  ] }) : null;
20208
- }, Po = () => {
20209
- const { onPersistCollectedData: e, goBack: a, onCancel: n, getTitleKey: r } = ee(), {
20251
+ }, Bo = () => {
20252
+ const { onPersistCollectedData: e, goBack: a, onCancel: n, getStepId: r } = ae(), {
20210
20253
  fields: o,
20211
20254
  getLocalTitle: s,
20212
20255
  getLocalSubTitle: l,
20213
20256
  getLocalCountry: d,
20214
20257
  clearIfNotRequired: m,
20215
20258
  setValue: h
20216
- } = E(), k = $(
20217
- () => Ot.map((v) => ({
20218
- ...v,
20219
- label: d(v.value)
20220
- })).sort((v, A) => v.label.localeCompare(A.label)),
20259
+ } = E(), g = ee(
20260
+ () => jt.map((p) => ({
20261
+ ...p,
20262
+ label: d(p.value)
20263
+ })).sort((p, f) => p.label.localeCompare(f.label)),
20221
20264
  [d]
20222
- ), c = $(
20223
- () => ra.map((v) => ({
20224
- ...v,
20225
- label: d(v.value)
20226
- })).sort((v, A) => v.label.localeCompare(A.label)),
20265
+ ), c = ee(
20266
+ () => ra.map((p) => ({
20267
+ ...p,
20268
+ label: d(p.value)
20269
+ })).sort((p, f) => p.label.localeCompare(f.label)),
20227
20270
  [d]
20228
20271
  );
20229
20272
  return /* @__PURE__ */ i.jsxs(
@@ -20233,9 +20276,9 @@ const Ar = {
20233
20276
  className: "taxbit-form-account-holder-tax-information",
20234
20277
  children: [
20235
20278
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20236
- /* @__PURE__ */ i.jsx(pe, { name: "accountHolderUsTin", label: !0 }),
20279
+ /* @__PURE__ */ i.jsx(ve, { name: "accountHolderUsTin", label: !0 }),
20237
20280
  /* @__PURE__ */ i.jsx(
20238
- pe,
20281
+ ve,
20239
20282
  {
20240
20283
  name: "accountHolderForeignTin",
20241
20284
  disabled: o.accountHolderForeignTinIsNotRequired === "yes",
@@ -20243,7 +20286,7 @@ const Ar = {
20243
20286
  }
20244
20287
  ),
20245
20288
  /* @__PURE__ */ i.jsx(
20246
- x,
20289
+ D,
20247
20290
  {
20248
20291
  name: "accountHolderForeignTinIsNotRequired",
20249
20292
  onClick: m("accountHolderForeignTin"),
@@ -20251,27 +20294,27 @@ const Ar = {
20251
20294
  }
20252
20295
  ),
20253
20296
  /* @__PURE__ */ i.jsx(
20254
- pe,
20297
+ ve,
20255
20298
  {
20256
20299
  name: "accountHolderFinancialAccountIdentifier",
20257
20300
  label: !0,
20258
20301
  subLabel: !0
20259
20302
  }
20260
20303
  ),
20261
- /* @__PURE__ */ i.jsx(Y, { name: "accountHolderFinancialAccountName", label: !0, subLabel: !0 }),
20304
+ /* @__PURE__ */ i.jsx(_, { name: "accountHolderFinancialAccountName", label: !0, subLabel: !0 }),
20262
20305
  /* @__PURE__ */ i.jsxs(oe, { showIf: o.accountHolderIsEuResident === "yes", children: [
20263
20306
  /* @__PURE__ */ i.jsx(
20264
20307
  le,
20265
20308
  {
20266
20309
  name: "accountHolderVatCountry",
20267
20310
  className: "taxbit-country",
20268
- options: k,
20311
+ options: g,
20269
20312
  disabled: o.accountHolderVatIsNotRequired === "yes",
20270
20313
  label: !0
20271
20314
  }
20272
20315
  ),
20273
20316
  /* @__PURE__ */ i.jsx(
20274
- pe,
20317
+ ve,
20275
20318
  {
20276
20319
  name: "accountHolderVatIdentificationNumber",
20277
20320
  disabled: o.accountHolderVatIsNotRequired === "yes",
@@ -20280,7 +20323,7 @@ const Ar = {
20280
20323
  }
20281
20324
  ),
20282
20325
  /* @__PURE__ */ i.jsx(
20283
- x,
20326
+ D,
20284
20327
  {
20285
20328
  label: !0,
20286
20329
  name: "accountHolderVatIsNotRequired",
@@ -20302,7 +20345,7 @@ const Ar = {
20302
20345
  }
20303
20346
  ),
20304
20347
  /* @__PURE__ */ i.jsx(
20305
- pe,
20348
+ ve,
20306
20349
  {
20307
20350
  name: "accountHolderBusinessRegistrationNumber",
20308
20351
  label: !0
@@ -20382,8 +20425,8 @@ const Ar = {
20382
20425
  ]
20383
20426
  }
20384
20427
  );
20385
- }, Ro = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Po, {}) }), wo = () => {
20386
- const { getLocalCountry: e, getLocalTitle: a, getLocalSubPrompt: n } = E(), r = $(
20428
+ }, Ro = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Bo, {}) }), Po = () => {
20429
+ const { getLocalCountry: e, getLocalTitle: a, getLocalSubPrompt: n } = E(), r = ee(
20387
20430
  () => ra.map((o) => ({
20388
20431
  ...o,
20389
20432
  label: e(o.value)
@@ -20396,7 +20439,7 @@ const Ar = {
20396
20439
  title: a("placeOfBirth"),
20397
20440
  subTitle: n("accountHolderCityOfBirth"),
20398
20441
  children: [
20399
- /* @__PURE__ */ i.jsx(Y, { label: !0, name: "accountHolderCityOfBirth" }),
20442
+ /* @__PURE__ */ i.jsx(_, { label: !0, name: "accountHolderCityOfBirth" }),
20400
20443
  /* @__PURE__ */ i.jsx(
20401
20444
  le,
20402
20445
  {
@@ -20408,8 +20451,8 @@ const Ar = {
20408
20451
  ]
20409
20452
  }
20410
20453
  );
20411
- }, Ho = () => {
20412
- const { onPersistCollectedData: e, goBack: a, onCancel: n, getTitleKey: r } = ee(), { fields: o, getLocalTitle: s } = E();
20454
+ }, wo = () => {
20455
+ const { onPersistCollectedData: e, goBack: a, onCancel: n, getStepId: r } = ae(), { fields: o, getLocalTitle: s } = E();
20413
20456
  return /* @__PURE__ */ i.jsxs(
20414
20457
  ke,
20415
20458
  {
@@ -20418,7 +20461,7 @@ const Ar = {
20418
20461
  ),
20419
20462
  className: "taxbit-form-account-holder-tax-clarification",
20420
20463
  children: [
20421
- /* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(wo, {}) }),
20464
+ /* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(Po, {}) }),
20422
20465
  /* @__PURE__ */ i.jsx(
20423
20466
  he,
20424
20467
  {
@@ -20430,11 +20473,11 @@ const Ar = {
20430
20473
  ]
20431
20474
  }
20432
20475
  );
20433
- }, Lo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Ho, {}) }), Go = () => {
20476
+ }, Ho = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(wo, {}) }), Lo = () => {
20434
20477
  const { getLocalText: e } = E();
20435
20478
  return /* @__PURE__ */ i.jsx("div", { children: e("interviewIsComplete") });
20436
- }, Do = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Go, {}) }), xo = () => {
20437
- const { onPersistCollectedData: e, goBack: a, getTitleKey: n } = ee(), { fields: r, getLocalTitle: o } = E();
20479
+ }, Go = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Lo, {}) }), xo = () => {
20480
+ const { onPersistCollectedData: e, goBack: a, getStepId: n } = ae(), { fields: r, getLocalTitle: o } = E();
20438
20481
  return /* @__PURE__ */ i.jsxs(
20439
20482
  ke,
20440
20483
  {
@@ -20442,15 +20485,15 @@ const Ar = {
20442
20485
  className: "taxbit-form-account-holder-exemptions",
20443
20486
  children: [
20444
20487
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20445
- /* @__PURE__ */ i.jsx(le, { name: "exemptFatcaCode", options: Bt, label: !0 }),
20446
- /* @__PURE__ */ i.jsx(le, { name: "exemptPayeeCode", options: Ft, label: !0 })
20488
+ /* @__PURE__ */ i.jsx(le, { name: "exemptFatcaCode", options: Et, label: !0 }),
20489
+ /* @__PURE__ */ i.jsx(le, { name: "exemptPayeeCode", options: Dt, label: !0 })
20447
20490
  ] }),
20448
20491
  /* @__PURE__ */ i.jsx(he, { onBack: a, onNext: () => e(r) })
20449
20492
  ]
20450
20493
  }
20451
20494
  );
20452
- }, Uo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(xo, {}) }), Fo = () => {
20453
- const { fields: e, getLocalTitle: a, getLocalOption: n } = E(), { onPersistCollectedData: r, goBack: o } = ee(), s = ze.map((l) => ({
20495
+ }, Uo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(xo, {}) }), Do = () => {
20496
+ const { fields: e, getLocalTitle: a, getLocalOption: n } = E(), { onPersistCollectedData: r, goBack: o } = ae(), s = ze.map((l) => ({
20454
20497
  ...l,
20455
20498
  label: n(`usPerson_${l.value}`)
20456
20499
  }));
@@ -20473,7 +20516,7 @@ const Ar = {
20473
20516
  W,
20474
20517
  {
20475
20518
  name: "regardedOwnerUsAccountType",
20476
- options: Wt,
20519
+ options: Vt,
20477
20520
  label: !0
20478
20521
  }
20479
20522
  ),
@@ -20481,7 +20524,7 @@ const Ar = {
20481
20524
  W,
20482
20525
  {
20483
20526
  name: "regardedOwnerForeignAccountType",
20484
- options: wt,
20527
+ options: Pt,
20485
20528
  label: !0
20486
20529
  }
20487
20530
  ),
@@ -20493,7 +20536,7 @@ const Ar = {
20493
20536
  label: !0
20494
20537
  }
20495
20538
  ),
20496
- /* @__PURE__ */ i.jsx(Y, { name: "regardedOwnerUsOtherClassification", label: !0 }),
20539
+ /* @__PURE__ */ i.jsx(_, { name: "regardedOwnerUsOtherClassification", label: !0 }),
20497
20540
  /* @__PURE__ */ i.jsx(
20498
20541
  W,
20499
20542
  {
@@ -20523,8 +20566,8 @@ const Ar = {
20523
20566
  ]
20524
20567
  }
20525
20568
  );
20526
- }, Ko = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Fo, {}) }), Vo = () => {
20527
- const { onPersistCollectedData: e, goBack: a, onCancel: n } = ee(), { fields: r, getLocalCountry: o, getLocalTitle: s } = E(), l = $(
20569
+ }, Fo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Do, {}) }), Ko = () => {
20570
+ const { onPersistCollectedData: e, goBack: a, onCancel: n } = ae(), { fields: r, getLocalCountry: o, getLocalTitle: s } = E(), l = ee(
20528
20571
  () => ra.map((d) => ({
20529
20572
  ...d,
20530
20573
  label: o(d.value)
@@ -20546,8 +20589,8 @@ const Ar = {
20546
20589
  options: l
20547
20590
  }
20548
20591
  ),
20549
- /* @__PURE__ */ i.jsx(Y, { label: !0, name: "regardedOwnerName" }),
20550
- /* @__PURE__ */ i.jsx(Y, { label: !0, name: "regardedOwnerDbaName" }),
20592
+ /* @__PURE__ */ i.jsx(_, { label: !0, name: "regardedOwnerName" }),
20593
+ /* @__PURE__ */ i.jsx(_, { label: !0, name: "regardedOwnerDbaName" }),
20551
20594
  /* @__PURE__ */ i.jsx(
20552
20595
  Ga,
20553
20596
  {
@@ -20555,7 +20598,7 @@ const Ar = {
20555
20598
  prefix: "regardedOwnerAddress"
20556
20599
  }
20557
20600
  ),
20558
- /* @__PURE__ */ i.jsx(x, { name: "regardedOwnerMailingAddressIsDifferent", label: !0 }),
20601
+ /* @__PURE__ */ i.jsx(D, { name: "regardedOwnerMailingAddressIsDifferent", label: !0 }),
20559
20602
  /* @__PURE__ */ i.jsx(
20560
20603
  Ga,
20561
20604
  {
@@ -20576,8 +20619,8 @@ const Ar = {
20576
20619
  ]
20577
20620
  }
20578
20621
  );
20579
- }, Wo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Vo, {}) }), Jo = () => {
20580
- const { onPersistCollectedData: e, goBack: a } = ee(), { fields: n, getLocalTitle: r, clearIfNotRequired: o } = E();
20622
+ }, Vo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Ko, {}) }), Wo = () => {
20623
+ const { onPersistCollectedData: e, goBack: a } = ae(), { fields: n, getLocalTitle: r, clearIfNotRequired: o } = E();
20581
20624
  return /* @__PURE__ */ i.jsxs(
20582
20625
  ke,
20583
20626
  {
@@ -20585,10 +20628,10 @@ const Ar = {
20585
20628
  className: `taxbit-form-${oa("regardedOwnerTaxInformation")}`,
20586
20629
  children: [
20587
20630
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20588
- /* @__PURE__ */ i.jsx(pe, { name: "regardedOwnerUsTin", label: !0 }),
20589
- /* @__PURE__ */ i.jsx(pe, { name: "regardedOwnerForeignTin", label: !0 }),
20631
+ /* @__PURE__ */ i.jsx(ve, { name: "regardedOwnerUsTin", label: !0 }),
20632
+ /* @__PURE__ */ i.jsx(ve, { name: "regardedOwnerForeignTin", label: !0 }),
20590
20633
  /* @__PURE__ */ i.jsx(
20591
- x,
20634
+ D,
20592
20635
  {
20593
20636
  name: "regardedOwnerForeignTinIsNotRequired",
20594
20637
  label: !0,
@@ -20600,7 +20643,7 @@ const Ar = {
20600
20643
  ]
20601
20644
  }
20602
20645
  );
20603
- }, Zo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Jo, {}) }), X = ({ text: e }) => {
20646
+ }, Jo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Wo, {}) }), $ = ({ text: e }) => {
20604
20647
  const n = ((r) => {
20605
20648
  if (!r)
20606
20649
  return "";
@@ -20608,8 +20651,8 @@ const Ar = {
20608
20651
  return "*".repeat(o) + r.substring(o);
20609
20652
  })(e);
20610
20653
  return /* @__PURE__ */ i.jsx("span", { children: n });
20611
- }, qo = () => {
20612
- const { data: e, editTo: a } = ee(), {
20654
+ }, Zo = () => {
20655
+ const { data: e, editTo: a } = ae(), {
20613
20656
  getLocalTitle: n,
20614
20657
  getLocalOption: r,
20615
20658
  getLocalCountry: o,
@@ -20619,7 +20662,7 @@ const Ar = {
20619
20662
  return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
20620
20663
  /* @__PURE__ */ i.jsxs(oe, { title: n("accountHolder"), children: [
20621
20664
  /* @__PURE__ */ i.jsx(
20622
- f,
20665
+ A,
20623
20666
  {
20624
20667
  label: !0,
20625
20668
  onEdit: () => a("AccountHolderClassification"),
@@ -20628,7 +20671,7 @@ const Ar = {
20628
20671
  }
20629
20672
  ),
20630
20673
  /* @__PURE__ */ i.jsx(
20631
- f,
20674
+ A,
20632
20675
  {
20633
20676
  label: !0,
20634
20677
  onEdit: () => a("AccountHolderClassification"),
@@ -20637,7 +20680,7 @@ const Ar = {
20637
20680
  }
20638
20681
  ),
20639
20682
  /* @__PURE__ */ i.jsx(
20640
- f,
20683
+ A,
20641
20684
  {
20642
20685
  label: !0,
20643
20686
  onEdit: () => a("AccountHolderClassification"),
@@ -20646,7 +20689,7 @@ const Ar = {
20646
20689
  }
20647
20690
  ),
20648
20691
  /* @__PURE__ */ i.jsx(
20649
- f,
20692
+ A,
20650
20693
  {
20651
20694
  label: !0,
20652
20695
  onEdit: () => a("AccountHolderClassification"),
@@ -20655,7 +20698,7 @@ const Ar = {
20655
20698
  }
20656
20699
  ),
20657
20700
  /* @__PURE__ */ i.jsx(
20658
- f,
20701
+ A,
20659
20702
  {
20660
20703
  label: !0,
20661
20704
  onEdit: () => a("AccountHolderClassification"),
@@ -20664,7 +20707,7 @@ const Ar = {
20664
20707
  }
20665
20708
  ),
20666
20709
  /* @__PURE__ */ i.jsx(
20667
- f,
20710
+ A,
20668
20711
  {
20669
20712
  label: !0,
20670
20713
  onEdit: () => a("AccountHolderClassification"),
@@ -20673,7 +20716,7 @@ const Ar = {
20673
20716
  }
20674
20717
  ),
20675
20718
  /* @__PURE__ */ i.jsx(
20676
- f,
20719
+ A,
20677
20720
  {
20678
20721
  label: !0,
20679
20722
  onEdit: () => a("AccountHolderClassification"),
@@ -20682,7 +20725,7 @@ const Ar = {
20682
20725
  }
20683
20726
  ),
20684
20727
  /* @__PURE__ */ i.jsx(
20685
- f,
20728
+ A,
20686
20729
  {
20687
20730
  label: !0,
20688
20731
  onEdit: () => a("AccountHolderClassification"),
@@ -20691,7 +20734,7 @@ const Ar = {
20691
20734
  }
20692
20735
  ),
20693
20736
  /* @__PURE__ */ i.jsx(
20694
- f,
20737
+ A,
20695
20738
  {
20696
20739
  label: !0,
20697
20740
  onEdit: () => a("AccountHolderClassification"),
@@ -20700,7 +20743,7 @@ const Ar = {
20700
20743
  }
20701
20744
  ),
20702
20745
  /* @__PURE__ */ i.jsx(
20703
- f,
20746
+ A,
20704
20747
  {
20705
20748
  label: !0,
20706
20749
  onEdit: () => a("AccountHolderClassification"),
@@ -20709,7 +20752,7 @@ const Ar = {
20709
20752
  }
20710
20753
  ),
20711
20754
  /* @__PURE__ */ i.jsx(
20712
- f,
20755
+ A,
20713
20756
  {
20714
20757
  label: !0,
20715
20758
  onEdit: () => a("AccountHolderClassification"),
@@ -20718,7 +20761,7 @@ const Ar = {
20718
20761
  }
20719
20762
  ),
20720
20763
  /* @__PURE__ */ i.jsx(
20721
- f,
20764
+ A,
20722
20765
  {
20723
20766
  label: !0,
20724
20767
  name: "accountHolderName",
@@ -20727,7 +20770,7 @@ const Ar = {
20727
20770
  }
20728
20771
  ),
20729
20772
  /* @__PURE__ */ i.jsx(
20730
- f,
20773
+ A,
20731
20774
  {
20732
20775
  label: !0,
20733
20776
  name: "accountHolderCountryOfCitizenship",
@@ -20736,7 +20779,7 @@ const Ar = {
20736
20779
  }
20737
20780
  ),
20738
20781
  /* @__PURE__ */ i.jsx(
20739
- f,
20782
+ A,
20740
20783
  {
20741
20784
  label: !0,
20742
20785
  name: "accountHolderDateOfBirth",
@@ -20745,7 +20788,7 @@ const Ar = {
20745
20788
  }
20746
20789
  ),
20747
20790
  /* @__PURE__ */ i.jsx(
20748
- f,
20791
+ A,
20749
20792
  {
20750
20793
  label: !0,
20751
20794
  name: "accountHolderCityOfBirth",
@@ -20754,7 +20797,7 @@ const Ar = {
20754
20797
  }
20755
20798
  ),
20756
20799
  /* @__PURE__ */ i.jsx(
20757
- f,
20800
+ A,
20758
20801
  {
20759
20802
  label: !0,
20760
20803
  name: "accountHolderCountryOfBirth",
@@ -20763,7 +20806,7 @@ const Ar = {
20763
20806
  }
20764
20807
  ),
20765
20808
  /* @__PURE__ */ i.jsx(
20766
- f,
20809
+ A,
20767
20810
  {
20768
20811
  label: !0,
20769
20812
  name: "accountHolderDbaName",
@@ -20786,25 +20829,25 @@ const Ar = {
20786
20829
  }
20787
20830
  ),
20788
20831
  /* @__PURE__ */ i.jsx(
20789
- f,
20832
+ A,
20790
20833
  {
20791
20834
  label: !0,
20792
20835
  name: "accountHolderUsTin",
20793
20836
  onEdit: () => a("AccountHolderTax"),
20794
- children: /* @__PURE__ */ i.jsx(X, { text: e == null ? void 0 : e.accountHolderUsTin })
20837
+ children: /* @__PURE__ */ i.jsx($, { text: e == null ? void 0 : e.accountHolderUsTin })
20795
20838
  }
20796
20839
  ),
20797
20840
  /* @__PURE__ */ i.jsx(
20798
- f,
20841
+ A,
20799
20842
  {
20800
20843
  label: !0,
20801
20844
  name: "accountHolderForeignTin",
20802
20845
  onEdit: () => a("AccountHolderTax"),
20803
- children: /* @__PURE__ */ i.jsx(X, { text: e == null ? void 0 : e.accountHolderForeignTin })
20846
+ children: /* @__PURE__ */ i.jsx($, { text: e == null ? void 0 : e.accountHolderForeignTin })
20804
20847
  }
20805
20848
  ),
20806
20849
  /* @__PURE__ */ i.jsx(
20807
- f,
20850
+ A,
20808
20851
  {
20809
20852
  label: !0,
20810
20853
  name: "accountHolderForeignTinIsNotRequired",
@@ -20813,16 +20856,16 @@ const Ar = {
20813
20856
  }
20814
20857
  ),
20815
20858
  /* @__PURE__ */ i.jsx(
20816
- f,
20859
+ A,
20817
20860
  {
20818
20861
  label: !0,
20819
20862
  name: "accountHolderFinancialAccountIdentifier",
20820
20863
  onEdit: () => a("AccountHolderTax"),
20821
- children: /* @__PURE__ */ i.jsx(X, { text: e == null ? void 0 : e.accountHolderFinancialAccountIdentifier })
20864
+ children: /* @__PURE__ */ i.jsx($, { text: e == null ? void 0 : e.accountHolderFinancialAccountIdentifier })
20822
20865
  }
20823
20866
  ),
20824
20867
  /* @__PURE__ */ i.jsx(
20825
- f,
20868
+ A,
20826
20869
  {
20827
20870
  label: !0,
20828
20871
  name: "accountHolderFinancialAccountName",
@@ -20831,7 +20874,7 @@ const Ar = {
20831
20874
  }
20832
20875
  ),
20833
20876
  /* @__PURE__ */ i.jsx(
20834
- f,
20877
+ A,
20835
20878
  {
20836
20879
  name: "accountHolderVatCountry",
20837
20880
  onEdit: () => a("AccountHolderTax"),
@@ -20840,16 +20883,16 @@ const Ar = {
20840
20883
  }
20841
20884
  ),
20842
20885
  /* @__PURE__ */ i.jsx(
20843
- f,
20886
+ A,
20844
20887
  {
20845
20888
  name: "accountHolderVatIdentificationNumber",
20846
20889
  onEdit: () => a("AccountHolderTax"),
20847
20890
  label: !0,
20848
- children: (e == null ? void 0 : e.accountHolderVatIsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(X, { text: e == null ? void 0 : e.accountHolderVatIdentificationNumber })
20891
+ children: (e == null ? void 0 : e.accountHolderVatIsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx($, { text: e == null ? void 0 : e.accountHolderVatIdentificationNumber })
20849
20892
  }
20850
20893
  ),
20851
20894
  /* @__PURE__ */ i.jsx(
20852
- f,
20895
+ A,
20853
20896
  {
20854
20897
  name: "accountHolderBusinessRegistrationCountry",
20855
20898
  onEdit: () => a("AccountHolderTax"),
@@ -20858,12 +20901,12 @@ const Ar = {
20858
20901
  }
20859
20902
  ),
20860
20903
  /* @__PURE__ */ i.jsx(
20861
- f,
20904
+ A,
20862
20905
  {
20863
20906
  name: "accountHolderBusinessRegistrationNumber",
20864
20907
  onEdit: () => a("AccountHolderTax"),
20865
20908
  label: !0,
20866
- children: /* @__PURE__ */ i.jsx(X, { text: e == null ? void 0 : e.accountHolderBusinessRegistrationNumber })
20909
+ children: /* @__PURE__ */ i.jsx($, { text: e == null ? void 0 : e.accountHolderBusinessRegistrationNumber })
20867
20910
  }
20868
20911
  ),
20869
20912
  /* @__PURE__ */ i.jsxs(
@@ -20874,7 +20917,7 @@ const Ar = {
20874
20917
  children: [
20875
20918
  /* @__PURE__ */ i.jsx(pt, { name: "accountHolderTaxResidences" }),
20876
20919
  /* @__PURE__ */ i.jsx(
20877
- f,
20920
+ A,
20878
20921
  {
20879
20922
  label: !0,
20880
20923
  name: "accountHolderTaxResidenceCountry1",
@@ -20882,14 +20925,14 @@ const Ar = {
20882
20925
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry1)
20883
20926
  }
20884
20927
  ),
20885
- /* @__PURE__ */ i.jsx(f, { label: !0, name: "accountHolderTaxResidenceForeignTin1", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20886
- X,
20928
+ /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin1", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20929
+ $,
20887
20930
  {
20888
20931
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1
20889
20932
  }
20890
20933
  ) }),
20891
20934
  /* @__PURE__ */ i.jsx(
20892
- f,
20935
+ A,
20893
20936
  {
20894
20937
  label: !0,
20895
20938
  name: "accountHolderTaxResidenceCountry2",
@@ -20897,14 +20940,14 @@ const Ar = {
20897
20940
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry2)
20898
20941
  }
20899
20942
  ),
20900
- /* @__PURE__ */ i.jsx(f, { label: !0, name: "accountHolderTaxResidenceForeignTin2", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20901
- X,
20943
+ /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin2", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20944
+ $,
20902
20945
  {
20903
20946
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2
20904
20947
  }
20905
20948
  ) }),
20906
20949
  /* @__PURE__ */ i.jsx(
20907
- f,
20950
+ A,
20908
20951
  {
20909
20952
  label: !0,
20910
20953
  name: "accountHolderTaxResidenceCountry3",
@@ -20912,14 +20955,14 @@ const Ar = {
20912
20955
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry3)
20913
20956
  }
20914
20957
  ),
20915
- /* @__PURE__ */ i.jsx(f, { label: !0, name: "accountHolderTaxResidenceForeignTin3", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20916
- X,
20958
+ /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin3", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20959
+ $,
20917
20960
  {
20918
20961
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3
20919
20962
  }
20920
20963
  ) }),
20921
20964
  /* @__PURE__ */ i.jsx(
20922
- f,
20965
+ A,
20923
20966
  {
20924
20967
  label: !0,
20925
20968
  name: "accountHolderTaxResidenceCountry4",
@@ -20927,14 +20970,14 @@ const Ar = {
20927
20970
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry4)
20928
20971
  }
20929
20972
  ),
20930
- /* @__PURE__ */ i.jsx(f, { label: !0, name: "accountHolderTaxResidenceForeignTin4", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20931
- X,
20973
+ /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin4", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20974
+ $,
20932
20975
  {
20933
20976
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4
20934
20977
  }
20935
20978
  ) }),
20936
20979
  /* @__PURE__ */ i.jsx(
20937
- f,
20980
+ A,
20938
20981
  {
20939
20982
  label: !0,
20940
20983
  name: "accountHolderTaxResidenceCountry5",
@@ -20942,8 +20985,8 @@ const Ar = {
20942
20985
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry5)
20943
20986
  }
20944
20987
  ),
20945
- /* @__PURE__ */ i.jsx(f, { label: !0, name: "accountHolderTaxResidenceForeignTin5", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20946
- X,
20988
+ /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin5", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20989
+ $,
20947
20990
  {
20948
20991
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5
20949
20992
  }
@@ -20959,7 +21002,7 @@ const Ar = {
20959
21002
  showIf: !!l.regardedOwnerUsPerson && e.regardedOwnerUsPerson !== void 0,
20960
21003
  children: [
20961
21004
  /* @__PURE__ */ i.jsx(
20962
- f,
21005
+ A,
20963
21006
  {
20964
21007
  label: !0,
20965
21008
  name: "regardedOwnerName",
@@ -20968,7 +21011,7 @@ const Ar = {
20968
21011
  }
20969
21012
  ),
20970
21013
  /* @__PURE__ */ i.jsx(
20971
- f,
21014
+ A,
20972
21015
  {
20973
21016
  label: !0,
20974
21017
  name: "regardedOwnerCountryOfCitizenship",
@@ -20977,7 +21020,7 @@ const Ar = {
20977
21020
  }
20978
21021
  ),
20979
21022
  /* @__PURE__ */ i.jsx(
20980
- f,
21023
+ A,
20981
21024
  {
20982
21025
  label: !0,
20983
21026
  name: "regardedOwnerDbaName",
@@ -20986,7 +21029,7 @@ const Ar = {
20986
21029
  }
20987
21030
  ),
20988
21031
  /* @__PURE__ */ i.jsx(
20989
- f,
21032
+ A,
20990
21033
  {
20991
21034
  label: !0,
20992
21035
  onEdit: () => a("RegardedOwnerClassification"),
@@ -20995,7 +21038,7 @@ const Ar = {
20995
21038
  }
20996
21039
  ),
20997
21040
  /* @__PURE__ */ i.jsx(
20998
- f,
21041
+ A,
20999
21042
  {
21000
21043
  label: !0,
21001
21044
  onEdit: () => a("RegardedOwnerClassification"),
@@ -21018,25 +21061,25 @@ const Ar = {
21018
21061
  }
21019
21062
  ),
21020
21063
  /* @__PURE__ */ i.jsx(
21021
- f,
21064
+ A,
21022
21065
  {
21023
21066
  label: !0,
21024
21067
  name: "regardedOwnerUsTin",
21025
21068
  onEdit: () => a("RegardedOwnerTax"),
21026
- children: /* @__PURE__ */ i.jsx(X, { text: e == null ? void 0 : e.regardedOwnerUsTin })
21069
+ children: /* @__PURE__ */ i.jsx($, { text: e == null ? void 0 : e.regardedOwnerUsTin })
21027
21070
  }
21028
21071
  ),
21029
21072
  /* @__PURE__ */ i.jsx(
21030
- f,
21073
+ A,
21031
21074
  {
21032
21075
  label: !0,
21033
21076
  name: "regardedOwnerForeignTin",
21034
21077
  onEdit: () => a("RegardedOwnerTax"),
21035
- children: /* @__PURE__ */ i.jsx(X, { text: e == null ? void 0 : e.regardedOwnerForeignTin })
21078
+ children: /* @__PURE__ */ i.jsx($, { text: e == null ? void 0 : e.regardedOwnerForeignTin })
21036
21079
  }
21037
21080
  ),
21038
21081
  /* @__PURE__ */ i.jsx(
21039
- f,
21082
+ A,
21040
21083
  {
21041
21084
  label: !0,
21042
21085
  name: "regardedOwnerForeignTinIsNotRequired",
@@ -21045,16 +21088,16 @@ const Ar = {
21045
21088
  }
21046
21089
  ),
21047
21090
  /* @__PURE__ */ i.jsx(
21048
- f,
21091
+ A,
21049
21092
  {
21050
21093
  label: !0,
21051
21094
  name: "regardedOwnerUsTin",
21052
21095
  onEdit: () => a("RegardedOwnerTax"),
21053
- children: /* @__PURE__ */ i.jsx(X, { text: e == null ? void 0 : e.regardedOwnerUsTin })
21096
+ children: /* @__PURE__ */ i.jsx($, { text: e == null ? void 0 : e.regardedOwnerUsTin })
21054
21097
  }
21055
21098
  ),
21056
21099
  /* @__PURE__ */ i.jsx(
21057
- f,
21100
+ A,
21058
21101
  {
21059
21102
  label: !0,
21060
21103
  name: "exemptFatcaCode",
@@ -21063,7 +21106,7 @@ const Ar = {
21063
21106
  }
21064
21107
  ),
21065
21108
  /* @__PURE__ */ i.jsx(
21066
- f,
21109
+ A,
21067
21110
  {
21068
21111
  label: !0,
21069
21112
  name: "exemptPayeeCode",
@@ -21075,8 +21118,8 @@ const Ar = {
21075
21118
  }
21076
21119
  )
21077
21120
  ] });
21078
- }, Yo = () => {
21079
- const { goBack: e, onSubmitTaxDocumentation: a, isW8: n, isW9: r } = ee(), { getLocalTitle: o, fields: s } = E();
21121
+ }, qo = () => {
21122
+ const { goBack: e, onSubmitTaxDocumentation: a, isW8: n, isW9: r } = ae(), { getLocalTitle: o, fields: s } = E();
21080
21123
  return /* @__PURE__ */ i.jsxs(
21081
21124
  ke,
21082
21125
  {
@@ -21084,24 +21127,24 @@ const Ar = {
21084
21127
  className: `taxbit-form-${oa("summary")}`,
21085
21128
  children: [
21086
21129
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
21087
- /* @__PURE__ */ i.jsx(qo, {}),
21130
+ /* @__PURE__ */ i.jsx(Zo, {}),
21088
21131
  /* @__PURE__ */ i.jsxs(oe, { title: "Certify", showIf: r || n, children: [
21089
- /* @__PURE__ */ i.jsx(x, { name: "iCertifyToAll", label: !0 }),
21090
- /* @__PURE__ */ i.jsx(x, { name: "iConfirmTheTaxIdIsCorrect", label: !0 }),
21091
- /* @__PURE__ */ i.jsx(x, { name: "iAmNotSubjectToBackupWithholding", label: !0 }),
21092
- /* @__PURE__ */ i.jsx(x, { name: "iAmACitizenOfTheUs", label: !0 }),
21093
- /* @__PURE__ */ i.jsx(x, { name: "iAmExemptFromFatcaReporting", label: !0 }),
21094
- /* @__PURE__ */ i.jsx(x, { name: "iConfirmTheEntityIsTheBeneficialOwner", label: !0 }),
21095
- /* @__PURE__ */ i.jsx(x, { name: "iConfirmTheEntityIsNotAUsPerson", label: !0 }),
21096
- /* @__PURE__ */ i.jsx(x, { name: "iConfirmIncomeIsNonUs", label: !0, subLabel: !0 }),
21097
- /* @__PURE__ */ i.jsx(x, { name: "iConfirmTheBeneficialOwnerIsExempt", label: !0 }),
21098
- /* @__PURE__ */ i.jsx(x, { name: "iConfirmTheInformationIsCorrectComplete", label: !0 }),
21099
- /* @__PURE__ */ i.jsx(x, { name: "iAuthorizeWithholdingAgent", label: !0 })
21132
+ /* @__PURE__ */ i.jsx(D, { name: "iCertifyToAll", label: !0 }),
21133
+ /* @__PURE__ */ i.jsx(D, { name: "iConfirmTheTaxIdIsCorrect", label: !0 }),
21134
+ /* @__PURE__ */ i.jsx(D, { name: "iAmNotSubjectToBackupWithholding", label: !0 }),
21135
+ /* @__PURE__ */ i.jsx(D, { name: "iAmACitizenOfTheUs", label: !0 }),
21136
+ /* @__PURE__ */ i.jsx(D, { name: "iAmExemptFromFatcaReporting", label: !0 }),
21137
+ /* @__PURE__ */ i.jsx(D, { name: "iConfirmTheEntityIsTheBeneficialOwner", label: !0 }),
21138
+ /* @__PURE__ */ i.jsx(D, { name: "iConfirmTheEntityIsNotAUsPerson", label: !0 }),
21139
+ /* @__PURE__ */ i.jsx(D, { name: "iConfirmIncomeIsNonUs", label: !0, subLabel: !0 }),
21140
+ /* @__PURE__ */ i.jsx(D, { name: "iConfirmTheBeneficialOwnerIsExempt", label: !0 }),
21141
+ /* @__PURE__ */ i.jsx(D, { name: "iConfirmTheInformationIsCorrectComplete", label: !0 }),
21142
+ /* @__PURE__ */ i.jsx(D, { name: "iAuthorizeWithholdingAgent", label: !0 })
21100
21143
  ] }),
21101
21144
  /* @__PURE__ */ i.jsxs(oe, { title: "Acknowledge and Sign", showIf: r || n, children: [
21102
- /* @__PURE__ */ i.jsx(x, { name: "iAcknowlegeESignIsOk", label: !0 }),
21103
- /* @__PURE__ */ i.jsx(x, { name: "iHaveLegalCapacityToSign", label: !0 }),
21104
- /* @__PURE__ */ i.jsx(Y, { label: !0, name: "signature" })
21145
+ /* @__PURE__ */ i.jsx(D, { name: "iAcknowlegeESignIsOk", label: !0 }),
21146
+ /* @__PURE__ */ i.jsx(D, { name: "iHaveLegalCapacityToSign", label: !0 }),
21147
+ /* @__PURE__ */ i.jsx(_, { label: !0, name: "signature" })
21105
21148
  ] })
21106
21149
  ] }),
21107
21150
  /* @__PURE__ */ i.jsx(
@@ -21114,19 +21157,19 @@ const Ar = {
21114
21157
  ]
21115
21158
  }
21116
21159
  );
21117
- }, _o = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Yo, {}) }), Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21160
+ }, Yo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(qo, {}) }), _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21118
21161
  __proto__: null,
21119
- AccountHolderClassification: Oo,
21120
- AccountHolderContact: Bo,
21162
+ AccountHolderClassification: jo,
21163
+ AccountHolderContact: Eo,
21121
21164
  AccountHolderTax: Ro,
21122
- AccountHolderTaxClarification: Lo,
21123
- Confirmation: Do,
21165
+ AccountHolderTaxClarification: Ho,
21166
+ Confirmation: Go,
21124
21167
  Exemptions: Uo,
21125
- RegardedOwnerClassification: Ko,
21126
- RegardedOwnerContact: Wo,
21127
- RegardedOwnerTax: Zo,
21128
- Summary: _o
21129
- }, Symbol.toStringTag, { value: "Module" })), ft = ({
21168
+ RegardedOwnerClassification: Fo,
21169
+ RegardedOwnerContact: Vo,
21170
+ RegardedOwnerTax: Jo,
21171
+ Summary: Yo
21172
+ }, Symbol.toStringTag, { value: "Module" })), vt = ({
21130
21173
  data: e,
21131
21174
  onSubmit: a,
21132
21175
  language: n,
@@ -21134,7 +21177,7 @@ const Ar = {
21134
21177
  complete: o,
21135
21178
  onProgress: s
21136
21179
  }) => /* @__PURE__ */ i.jsx(
21137
- lo,
21180
+ so,
21138
21181
  {
21139
21182
  data: e,
21140
21183
  onSubmit: a,
@@ -21143,7 +21186,7 @@ const Ar = {
21143
21186
  taxForms: r,
21144
21187
  step: o ? "Summary" : void 0,
21145
21188
  children: /* @__PURE__ */ i.jsx(
21146
- $o,
21189
+ Xo,
21147
21190
  {
21148
21191
  language: n,
21149
21192
  taxForms: r,
@@ -21151,27 +21194,27 @@ const Ar = {
21151
21194
  }
21152
21195
  )
21153
21196
  }
21154
- ), Xo = ["DAC7", "W-9", "W-8BEN", "W-8BEN-E"], $o = ({
21197
+ ), Qo = ["DAC7", "W-9", "W-8BEN", "W-8BEN-E"], Xo = ({
21155
21198
  language: e = "en-us",
21156
- taxForms: a = Xo,
21199
+ taxForms: a = Qo,
21157
21200
  data: n
21158
21201
  }) => {
21159
- const { stepName: r, setLanguage: o, setSupportedForms: s, onResetTaxDocumentation: l } = ee(), d = Qo[r];
21160
- return q(() => {
21202
+ const { stepName: r, setLanguage: o, setSupportedForms: s, onResetTaxDocumentation: l } = ae(), d = _o[r];
21203
+ return Y(() => {
21161
21204
  o(e);
21162
- }, [e, o]), q(() => {
21205
+ }, [e, o]), Y(() => {
21163
21206
  s(a);
21164
- }, [a, s]), q(() => {
21207
+ }, [a, s]), Y(() => {
21165
21208
  n && l(n);
21166
21209
  }, [n, l]), /* @__PURE__ */ i.jsx(d, {});
21167
- }, is = ({
21210
+ }, as = ({
21168
21211
  data: e,
21169
21212
  onSubmit: a,
21170
21213
  onProgress: n,
21171
21214
  language: r,
21172
21215
  complete: o
21173
21216
  }) => /* @__PURE__ */ i.jsx(
21174
- ft,
21217
+ vt,
21175
21218
  {
21176
21219
  data: e,
21177
21220
  language: r,
@@ -21180,7 +21223,7 @@ const Ar = {
21180
21223
  taxForms: ["DAC7"],
21181
21224
  onProgress: n
21182
21225
  }
21183
- ), es = ({
21226
+ ), $o = ({
21184
21227
  staging: e,
21185
21228
  data: a,
21186
21229
  bearerToken: n,
@@ -21190,40 +21233,34 @@ const Ar = {
21190
21233
  onSubmit: l,
21191
21234
  onSuccess: d
21192
21235
  }) => {
21193
- var S;
21194
- const { status: m, formStatus: h, postData: k, serverData: c } = vr(
21195
- n,
21196
- e
21197
- ), [v, A] = K(
21198
- a
21199
- );
21200
- if (q(() => {
21201
- c && A(ut(c, a));
21202
- }, [a, c]), !h || h !== "NOT_SUBMITTED" && !c)
21203
- return /* @__PURE__ */ i.jsx("div", { children: kt("retrievingInterviewStatus", r) });
21204
- const C = async (N) => {
21205
- l && l(N), await k(N), d && d(N);
21206
- };
21207
- return /* @__PURE__ */ i.jsx(
21208
- ft,
21236
+ const { isComplete: m, isLoading: h, formData: g, handleOnSubmit: c } = to({
21237
+ bearerToken: n,
21238
+ data: a,
21239
+ onSubmit: l,
21240
+ onSuccess: d,
21241
+ staging: e
21242
+ });
21243
+ return h ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-loading", children: gt("retrievingInterviewStatus", r) }) : /* @__PURE__ */ i.jsx(
21244
+ vt,
21209
21245
  {
21210
- data: v,
21246
+ data: g,
21211
21247
  language: r,
21212
- onSubmit: C,
21248
+ onSubmit: c,
21213
21249
  onProgress: s,
21214
21250
  taxForms: o,
21215
- complete: ((S = m == null ? void 0 : m.DAC7Interview) == null ? void 0 : S.dataCollectionStatus) === "COMPLETE"
21251
+ complete: m
21216
21252
  }
21217
21253
  );
21218
- }, ns = ({
21254
+ }, is = ({
21219
21255
  data: e,
21220
21256
  staging: a,
21221
21257
  bearerToken: n,
21222
21258
  language: r,
21223
21259
  onSubmit: o,
21224
- onSuccess: s
21260
+ onProgress: s,
21261
+ onSuccess: l
21225
21262
  }) => /* @__PURE__ */ i.jsx(
21226
- es,
21263
+ $o,
21227
21264
  {
21228
21265
  bearerToken: n,
21229
21266
  data: e,
@@ -21231,13 +21268,14 @@ const Ar = {
21231
21268
  taxForms: ["DAC7"],
21232
21269
  staging: a,
21233
21270
  onSubmit: o,
21234
- onSuccess: s
21271
+ onProgress: s,
21272
+ onSuccess: l
21235
21273
  }
21236
21274
  );
21237
21275
  export {
21238
- ns as TaxBitDAC7Form,
21239
- is as TaxBitDAC7FormUI,
21240
- es as TaxBitForm,
21241
- ft as TaxBitFormUI,
21242
- vr as useTaxBit
21276
+ is as TaxBitDAC7Form,
21277
+ as as TaxBitDAC7FormUI,
21278
+ $o as TaxBitForm,
21279
+ vt as TaxBitFormUI,
21280
+ kr as useTaxBit
21243
21281
  };