@taxbit/react-sdk 0.4.2 → 0.4.4

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,4 +1,4 @@
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";
1
+ import at, { useState as W, useEffect as _, createContext as At, useContext as bt, useRef as Za, useMemo as ee, useCallback as it, Fragment as nt } from "react";
2
2
  const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging" : ""}.taxbit.com/v1/${e}`, Da = {
3
3
  taxDocumentation: {
4
4
  post: (e) => Ua("tax-documentation", e),
@@ -12,7 +12,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
12
12
  Ct(a),
13
13
  La(n)
14
14
  ])
15
- ), se = (...e) => e.filter(Boolean).join(" "), It = (e) => {
15
+ ), le = (...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)
@@ -29,7 +29,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
29
29
  day: "2-digit",
30
30
  year: "numeric"
31
31
  });
32
- }, ge = (e) => e.map((a) => ({
32
+ }, ve = (e) => e.map((a) => ({
33
33
  value: a
34
34
  })), Tt = [
35
35
  "AB",
@@ -45,7 +45,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
45
45
  "QC",
46
46
  "SK",
47
47
  "YT"
48
- ], Mt = ge(Tt), yt = [
48
+ ], Mt = ve(Tt), yt = [
49
49
  "AD",
50
50
  "AE",
51
51
  "AF",
@@ -323,7 +323,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
323
323
  "SE",
324
324
  "SI",
325
325
  "SK"
326
- ], ra = ge(yt), jt = ge(tt), re = (e) => e ? tt.includes(e) : !1, Ot = [
326
+ ], sa = ve(yt), jt = ve(tt), oe = (e) => e ? tt.includes(e) : !1, Ot = [
327
327
  "01",
328
328
  "02",
329
329
  "03",
@@ -355,7 +355,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
355
355
  "29",
356
356
  "30",
357
357
  "31"
358
- ], Dn = ge(Ot), zt = [
358
+ ], Dn = ve(Ot), zt = [
359
359
  "A",
360
360
  "B",
361
361
  "C",
@@ -369,14 +369,14 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
369
369
  "K",
370
370
  "L",
371
371
  "M"
372
- ], Et = ge(zt), rt = [
372
+ ], Et = ve(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
- ], Bt = rt.map((e) => e.value), _a = [
379
+ ], Bt = rt.map((e) => e.value), Qa = [
380
380
  { value: "taxExemptOrganization" },
381
381
  { value: "privateFoundation" },
382
382
  { value: "internationalOrganization" },
@@ -384,17 +384,17 @@ const Ua = (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), Pt = [
387
+ ], Pt = Qa.map((e) => e.value), Rt = [
388
388
  { value: "individual" },
389
389
  { value: "corporation" },
390
390
  { value: "partnership" },
391
391
  { value: "trust" },
392
392
  { value: "other" }
393
- ], Qa = [
393
+ ], Xa = [
394
394
  { value: "simpleTrust" },
395
395
  { value: "complexTrust" },
396
396
  { value: "grantorTrust" }
397
- ], wt = Qa.map((e) => e.value), Ht = [
397
+ ], wt = Xa.map((e) => e.value), Ht = [
398
398
  "bg-bg",
399
399
  "cs-cz",
400
400
  "da-dk",
@@ -425,7 +425,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
425
425
  "sk-sk",
426
426
  "sl-si",
427
427
  "sv-se"
428
- ], Lt = ge(Ht), Gt = [
428
+ ], Lt = ve(Ht), Gt = [
429
429
  "01",
430
430
  "02",
431
431
  "03",
@@ -438,7 +438,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
438
438
  "10",
439
439
  "11",
440
440
  "12"
441
- ], xt = ge(Gt), Ut = [
441
+ ], xt = ve(Gt), Ut = [
442
442
  "A",
443
443
  "B",
444
444
  "C",
@@ -452,7 +452,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
452
452
  "K",
453
453
  "L",
454
454
  "M"
455
- ], Dt = ge(Ut), ot = [
455
+ ], Dt = ve(Ut), ot = [
456
456
  { value: "individual" },
457
457
  { value: "soleProprietor" },
458
458
  { value: "llc" },
@@ -463,11 +463,11 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
463
463
  { value: "trustEstate" },
464
464
  { value: "other" },
465
465
  { value: "disregardedEntity" }
466
- ], Ft = ot.map((e) => e.value), Xa = [
466
+ ], Ft = ot.map((e) => e.value), $a = [
467
467
  { value: "cCorporation" },
468
468
  { value: "sCorporation" },
469
469
  { value: "partnership" }
470
- ], Kt = Xa.map(
470
+ ], Kt = $a.map(
471
471
  (e) => e.value
472
472
  ), Vt = [
473
473
  { value: "individual" },
@@ -538,18 +538,18 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
538
538
  "WV",
539
539
  "WI",
540
540
  "WY"
541
- ], Jt = ge(Wt), st = /* @__PURE__ */ new Date(), Zt = st.getFullYear() - 120, Fn = st.getFullYear(), qt = Array.from(
541
+ ], Jt = ve(Wt), st = /* @__PURE__ */ new Date(), Zt = st.getFullYear() - 120, Fn = st.getFullYear(), qt = Array.from(
542
542
  { length: Fn - Zt },
543
543
  (e, a) => Fn - a
544
544
  ), Yt = qt.map((e) => ({
545
545
  value: e
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");
546
+ })), R = (e) => e === void 0 || e === "", U = (e) => !R(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")), d = !a && (e == null ? void 0 : e.accountHolderIsEuResident) !== void 0 || !!(a != null && a.includes("DAC7")), l = e.accountHolderForeignAccountType === "disregardedEntity" || e.accountHolderUsAccountType === "disregardedEntity" || e.accountHolderUsAccountType === "smllc" && e.accountHolderUsSmllcElection === "no", m = (e == null ? void 0 : e.accountHolderIsEuResident) === "yes" && (R(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1) && oe(e == null ? void 0 : e.accountHolderTaxResidenceCountry1) || !oe(e == null ? void 0 : e.accountHolderTaxResidenceCountry1)) && (R(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2) && oe(e == null ? void 0 : e.accountHolderTaxResidenceCountry2) || !oe(e == null ? void 0 : e.accountHolderTaxResidenceCountry2)) && (R(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3) && oe(e == null ? void 0 : e.accountHolderTaxResidenceCountry3) || !oe(e == null ? void 0 : e.accountHolderTaxResidenceCountry3)) && (R(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4) && oe(e == null ? void 0 : e.accountHolderTaxResidenceCountry4) || !oe(e == null ? void 0 : e.accountHolderTaxResidenceCountry4)) && (R(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5) && oe(e == null ? void 0 : e.accountHolderTaxResidenceCountry5) || !oe(e == null ? void 0 : e.accountHolderTaxResidenceCountry5)), k = U(e == null ? void 0 : e.accountHolderTaxResidenceCountry1) || U(e == null ? void 0 : e.accountHolderTaxResidenceCountry2) || U(e == null ? void 0 : e.accountHolderTaxResidenceCountry3) || U(e == null ? void 0 : e.accountHolderTaxResidenceCountry4) || U(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
- accountHolderIsDisregarded: d,
549
+ accountHolderIsDisregarded: l,
550
550
  hasNoEUTaxId: m,
551
- hasTaxResidence: h,
552
- isDac7: l,
551
+ hasTaxResidence: k,
552
+ isDac7: d,
553
553
  isW9: n,
554
554
  isW8: r,
555
555
  isW8Ben: o,
@@ -688,43 +688,43 @@ const Ua = (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(), 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;
691
+ }), la = (e) => e.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), er = (e, a) => {
692
+ var r, o, s, d, l, m, k, g, c, v, A, f, y, B, I, z, p, G, J, X;
693
693
  const n = { ...e, ...a };
694
694
  return (e != null && e.accountHolder || a != null && a.accountHolder) && (n.accountHolder = {
695
695
  ...e == null ? void 0 : e.accountHolder,
696
696
  ...a == null ? void 0 : a.accountHolder
697
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
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,
699
+ ...(d = a == null ? void 0 : a.accountHolder) == null ? void 0 : d.address
700
+ }), ((l = e == null ? void 0 : e.accountHolder) != null && l.mailingAddress || (m = a == null ? void 0 : a.accountHolder) != null && m.mailingAddress) && (n.accountHolder.mailingAddress = {
701
+ ...(k = e == null ? void 0 : e.accountHolder) == null ? void 0 : k.mailingAddress,
702
702
  ...(g = a == null ? void 0 : a.accountHolder) == null ? void 0 : g.mailingAddress
703
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)
704
+ JSON.stringify((v = e == null ? void 0 : e.accountHolder) == null ? void 0 : v.taxResidences)
705
+ )), (A = a == null ? void 0 : a.accountHolder) != null && A.taxResidences && (n.accountHolder.taxResidences = JSON.parse(
706
+ JSON.stringify((f = a == null ? void 0 : a.accountHolder) == null ? void 0 : f.taxResidences)
707
707
  ))), (e != null && e.regardedOwner || a != null && a.regardedOwner) && (n.regardedOwner = {
708
708
  ...e == null ? void 0 : e.regardedOwner,
709
709
  ...a == null ? void 0 : a.regardedOwner
710
710
  }, n.regardedOwner = {
711
711
  ...e == null ? void 0 : e.regardedOwner,
712
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 = {
713
+ }, ((y = e == null ? void 0 : e.regardedOwner) != null && y.address || (B = a == null ? void 0 : a.regardedOwner) != null && B.address) && (n.regardedOwner.address = {
714
+ ...(I = e == null ? void 0 : e.regardedOwner) == null ? void 0 : I.address,
715
+ ...(z = a == null ? void 0 : a.regardedOwner) == null ? void 0 : z.address
716
+ }), ((p = e == null ? void 0 : e.regardedOwner) != null && p.mailingAddress || (G = a == null ? void 0 : a.regardedOwner) != null && G.mailingAddress) && (n.regardedOwner.mailingAddress = {
717
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
718
+ ...(X = a == null ? void 0 : a.regardedOwner) == null ? void 0 : X.mailingAddress
719
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(
720
+ }, ar = (e) => e.replace(/[A-Z]/g, (a) => `_${a.toLowerCase()}`), qa = (e) => Array.isArray(e) ? e.map((a) => qa(a)) : typeof e == "function" || e !== Object(e) ? e : Object.fromEntries(
721
721
  Object.entries(e).map(
722
722
  ([a, n]) => [
723
723
  ar(a),
724
- Za(n)
724
+ qa(n)
725
725
  ]
726
726
  )
727
- ), ir = "0.4.2", x = (e) => e === void 0 ? void 0 : e === "yes", nr = (e) => {
727
+ ), ir = "0.4.4", x = (e) => e === void 0 ? void 0 : e === "yes", nr = (e) => {
728
728
  const a = {
729
729
  city: e.accountHolderAddressCity,
730
730
  country: e.accountHolderAddressCountry,
@@ -819,7 +819,9 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
819
819
  cityOfBirth: e.accountHolderCityOfBirth,
820
820
  countryOfBirth: e.accountHolderCountryOfBirth,
821
821
  financialAccountIdentifier: e.accountHolderFinancialAccountIdentifier,
822
- financialAccountName: e.accountHolderFinancialAccountName,
822
+ financialAccountName: U(
823
+ e.accountHolderFinancialAccountIdentifier
824
+ ) ? e.accountHolderFinancialAccountName : void 0,
823
825
  ftin: e.accountHolderForeignTin,
824
826
  ftinNotLegallyRequired: x(
825
827
  e.accountHolderForeignTinIsNotRequired
@@ -894,7 +896,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
894
896
  ))
895
897
  return e;
896
898
  }, Wn = (e) => {
897
- if (e && Rt.includes(
899
+ if (e && Pt.includes(
898
900
  e
899
901
  ))
900
902
  return e;
@@ -912,7 +914,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
912
914
  ))
913
915
  return e;
914
916
  }, 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`]);
917
+ const { hasNoEUTaxId: a } = xa(e), n = (o) => U(e[`accountHolderTaxResidenceForeignTin${o}`]) || e[`accountHolderTaxResidenceForeignTin${o}IsNotRequired`] === "yes", r = (o) => U(e[`accountHolderTaxResidenceCountry${o}`]) && R(e[`accountHolderTaxResidenceForeignTin${o}IsNotRequired`]);
916
918
  return {
917
919
  accountHolderUsPerson: !0,
918
920
  accountHolderIsEuResident: !0,
@@ -931,6 +933,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
931
933
  e.accountHolderUsAccountType
932
934
  ),
933
935
  accountHolderDateOfBirth: (e == null ? void 0 : e.accountHolderForeignAccountType) === "individual" || (e == null ? void 0 : e.accountHolderIsIndividual) === "yes",
936
+ accountHolderFinancialAccountName: !!(e != null && e.accountHolderFinancialAccountIdentifier),
934
937
  accountHolderAddress: !0,
935
938
  accountHolderAddressCountry: !0,
936
939
  accountHolderAddressStreet: !0,
@@ -952,7 +955,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
952
955
  accountHolderCityOfBirth: a,
953
956
  accountHolderCountryOfBirth: a,
954
957
  accountHolderTaxResidenceCountry1: !0,
955
- accountHolderTaxResidenceForeignTin1: P(
958
+ accountHolderTaxResidenceForeignTin1: R(
956
959
  e.accountHolderTaxResidenceForeignTin1IsNotRequired
957
960
  ),
958
961
  accountHolderTaxResidenceCountry2: n("2"),
@@ -992,7 +995,7 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
992
995
  iConfirmTheInformationIsCorrectComplete: !0,
993
996
  signature: !0
994
997
  };
995
- }, Ra = [
998
+ }, Pa = [
996
999
  "000000000",
997
1000
  "111111111",
998
1001
  "222222222",
@@ -1009,18 +1012,18 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1009
1012
  "876543210",
1010
1013
  "987654321",
1011
1014
  "098765432"
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) => {
1015
+ ], 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}$/, ct = (e) => /^(.)\1+$/.test(e), Ya = (e) => U(e) && e.length >= 2 && e.length <= 22 && !ct(e), cr = (e) => U(e) && e.length >= 8 && e.length <= 14 && !ct(e), wa = (e) => (a) => {
1013
1016
  const n = a[`accountHolderTaxResidenceForeignTin${e}`];
1014
- if (!qa(n) && V(a[`accountHolderTaxResidenceCountry${e}`]) && P(
1017
+ if (!Ya(n) && U(a[`accountHolderTaxResidenceCountry${e}`]) && R(
1015
1018
  a[`accountHolderTaxResidenceForeignTin${e}IsNotRequired`]
1016
1019
  ))
1017
1020
  return ["invalid"];
1018
- if (V(n) && a[`accountHolderTaxResidenceCountry${e}`] === a.accountHolderVatCountry && n === a.accountHolderVatIdentificationNumber)
1021
+ if (U(n) && a[`accountHolderTaxResidenceCountry${e}`] === a.accountHolderVatCountry && n === a.accountHolderVatIdentificationNumber)
1019
1022
  return ["mustNotMatchVatin"];
1020
1023
  }, Va = {
1021
1024
  accountHolderDateOfBirth: (e) => {
1022
1025
  const a = e.accountHolderDateOfBirth;
1023
- if (V(a)) {
1026
+ if (U(a)) {
1024
1027
  if (!St(a))
1025
1028
  return ["mustBeInDateFormat"];
1026
1029
  if (!Nt(a))
@@ -1056,36 +1059,40 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1056
1059
  accountHolderUsTin: (e) => {
1057
1060
  const a = e.accountHolderUsTin;
1058
1061
  if ((e == null ? void 0 : e.accountHolderUsAccountType) !== void 0) {
1059
- if (P(a))
1062
+ if (R(a))
1060
1063
  return;
1061
- if (!Pa.test(a))
1064
+ if (!Ra.test(a))
1062
1065
  return ["mustBeNineDigits"];
1063
- if (Ra.includes(a))
1066
+ if (Pa.includes(a))
1064
1067
  return ["invalid"];
1065
1068
  } else if ((e == null ? void 0 : e.accountHolderUsPerson) === "no" && a !== void 0 && a !== "") {
1066
- if (!Pa.test(a))
1069
+ if (!Ra.test(a))
1067
1070
  return ["mustBeNineDigits"];
1068
- if (Ra.includes(a))
1071
+ if (Pa.includes(a))
1069
1072
  return ["invalid"];
1070
1073
  }
1071
1074
  },
1072
- accountHolderVatIdentificationNumber: (e) => {
1073
- const a = e.accountHolderVatIdentificationNumber;
1074
- if (e.accountHolderVatIsNotRequired !== "yes" && !cr(a))
1075
+ accountHolderVatIdentificationNumber: (e, a) => {
1076
+ const n = e.accountHolderVatIdentificationNumber;
1077
+ if (a && a.find(
1078
+ (o) => o.type === "vat" && o.identifier === n
1079
+ ))
1080
+ return ["invalidVat"];
1081
+ if (e.accountHolderVatIsNotRequired !== "yes" && !cr(n))
1075
1082
  return ["invalid"];
1076
1083
  },
1077
1084
  accountHolderBusinessRegistrationNumber: (e) => {
1078
1085
  const a = e.accountHolderBusinessRegistrationNumber;
1079
- if (e.accountHolderIsIndividual === "no" && !qa(a))
1086
+ if (e.accountHolderIsIndividual === "no" && !Ya(a))
1080
1087
  return ["invalid"];
1081
- if (V(a) && e.accountHolderBusinessRegistrationCountry === e.accountHolderVatCountry && a === e.accountHolderVatIdentificationNumber)
1088
+ if (U(a) && e.accountHolderBusinessRegistrationCountry === e.accountHolderVatCountry && a === e.accountHolderVatIdentificationNumber)
1082
1089
  return ["mustNotMatchVatin"];
1083
1090
  },
1084
1091
  accountHolderTaxResidenceForeignTin1: (e) => {
1085
1092
  const a = e.accountHolderTaxResidenceForeignTin1;
1086
- if (!qa(a) && P(e.accountHolderTaxResidenceForeignTin1IsNotRequired))
1093
+ if (!Ya(a) && R(e.accountHolderTaxResidenceForeignTin1IsNotRequired))
1087
1094
  return ["invalid"];
1088
- if (V(a) && e.accountHolderTaxResidenceCountry1 === e.accountHolderVatCountry && a === e.accountHolderVatIdentificationNumber)
1095
+ if (U(a) && e.accountHolderTaxResidenceCountry1 === e.accountHolderVatCountry && a === e.accountHolderVatIdentificationNumber)
1089
1096
  return ["mustNotMatchVatin"];
1090
1097
  },
1091
1098
  accountHolderTaxResidenceForeignTin2: wa("2"),
@@ -1096,13 +1103,13 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1096
1103
  const a = e.regardedOwnerDbaName;
1097
1104
  if (e.regardedOwnerUsAccountType && ["cCorporation", "sCorporation", "partnership"].includes(
1098
1105
  e.regardedOwnerUsAccountType
1099
- ) && P(a))
1106
+ ) && R(a))
1100
1107
  return ["required"];
1101
1108
  },
1102
1109
  regardedOwnerAddressZip: (e) => {
1103
1110
  const a = e.regardedOwnerAddressZip;
1104
1111
  if (e.regardedOwnerAddressCountry === "US") {
1105
- if (P(a))
1112
+ if (R(a))
1106
1113
  return ["required"];
1107
1114
  if (!/^\d{5}$|^\d{5}-\d{4}|^\d{9}$/.test(a))
1108
1115
  return ["mustBeFiveOrNineDigits"];
@@ -1123,14 +1130,14 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1123
1130
  regardedOwnerUsTin: (e) => {
1124
1131
  const a = e.regardedOwnerUsTin;
1125
1132
  if ((e == null ? void 0 : e.regardedOwnerUsPerson) === "yes") {
1126
- if (V(a) && !Pa.test(a))
1133
+ if (U(a) && !Ra.test(a))
1127
1134
  return ["mustBeNineDigits"];
1128
- if (V(a) && Ra.includes(a))
1135
+ if (U(a) && Pa.includes(a))
1129
1136
  return ["invalid"];
1130
1137
  } else if ((e == null ? void 0 : e.regardedOwnerUsPerson) === "no" && a !== void 0 && a !== "") {
1131
- if (!Pa.test(a))
1138
+ if (!Ra.test(a))
1132
1139
  return ["mustBeNineDigits"];
1133
- if (Ra.includes(a))
1140
+ if (Pa.includes(a))
1134
1141
  return ["invalid"];
1135
1142
  }
1136
1143
  },
@@ -1142,23 +1149,27 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1142
1149
  e.accountHolderTaxResidenceCountry4,
1143
1150
  e.accountHolderTaxResidenceCountry5
1144
1151
  ], o = e.accountHolderVatCountry, s = [];
1145
- return e.accountHolderVatIsNotRequired !== "yes" && !r.includes(o) && s.push("residencesMustIncludeVatCountry"), r.includes(a) || s.push("residencesMustIncludeAddressCountry"), r.every((l) => !re(l)) && n && s.push("residencesMustIncludeAnEUCountry"), s.length > 0 ? s : void 0;
1152
+ return e.accountHolderVatIsNotRequired !== "yes" && !r.includes(o) && s.push("residencesMustIncludeVatCountry"), r.includes(a) || s.push("residencesMustIncludeAddressCountry"), r.every((d) => !oe(d)) && n && s.push("residencesMustIncludeAnEUCountry"), s.length > 0 ? s : void 0;
1146
1153
  },
1147
1154
  signature: (e) => {
1148
1155
  if (e.signature !== e.accountHolderName && (e.accountHolderUsAccountType === "individual" || e.accountHolderForeignAccountType === "individual"))
1149
1156
  return ["mustMatchName"];
1150
1157
  }
1151
- }, mr = (e) => {
1152
- const a = ut(e);
1158
+ }, mr = (e, a) => {
1159
+ const n = ut(e);
1153
1160
  return Object.fromEntries(
1154
- Object.keys(e).map((n) => {
1155
- var o;
1156
- const r = e[n];
1161
+ Object.keys(e).map((r) => {
1162
+ var s;
1163
+ const o = e[r];
1157
1164
  return [
1158
- n,
1159
- a[n] && P(r) && ["required"] || ((o = Va[n]) == null ? void 0 : o.call(Va, e)) || void 0
1165
+ r,
1166
+ n[r] && R(o) && ["required"] || ((s = Va[r]) == null ? void 0 : s.call(
1167
+ Va,
1168
+ e,
1169
+ a
1170
+ )) || void 0
1160
1171
  ];
1161
- }).filter(([, n]) => n)
1172
+ }).filter(([, r]) => r)
1162
1173
  );
1163
1174
  }, mt = (e) => ({
1164
1175
  accountHolderUsPerson: e.includes("W-9") && (e.includes("W-8BEN") || e.includes("W-8BEN-E")),
@@ -1275,12 +1286,12 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1275
1286
  accountHolderIsDisregarded: r,
1276
1287
  isW9: o,
1277
1288
  isW8BenE: s,
1278
- isW8: l,
1279
- hasNoEUTaxId: d,
1289
+ isW8: d,
1290
+ hasNoEUTaxId: l,
1280
1291
  hasTaxResidence: m,
1281
- isDac7: h,
1292
+ isDac7: k,
1282
1293
  isIndividual: g
1283
- } = xa(e, a), c = h && e.accountHolderIsEuResident === "yes";
1294
+ } = xa(e, a), c = k && e.accountHolderIsEuResident === "yes";
1284
1295
  return {
1285
1296
  ...n,
1286
1297
  // Account Holder Account Classification
@@ -1302,8 +1313,8 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1302
1313
  accountHolderAddressStreet: e.accountHolderIsEuResident === "yes" || e.accountHolderUsPerson !== void 0 || e.accountHolderUsAccountType !== void 0,
1303
1314
  accountHolderAddressZip: e.accountHolderIsEuResident === "yes" || e.accountHolderUsPerson !== void 0 || e.accountHolderUsAccountType !== void 0,
1304
1315
  accountHolderCountryOfCitizenship: e.accountHolderUsPerson === "no",
1305
- accountHolderCityOfBirth: g && d && m,
1306
- accountHolderCountryOfBirth: g && d && m,
1316
+ accountHolderCityOfBirth: g && l && m,
1317
+ accountHolderCountryOfBirth: g && l && m,
1307
1318
  accountHolderDateOfBirth: e.accountHolderIsIndividual === "yes" && e.accountHolderIsEuResident === "yes" || e.accountHolderForeignAccountType === "individual",
1308
1319
  accountHolderMailingAddressIsDifferent: e.accountHolderUsPerson === "no",
1309
1320
  accountHolderMailingAddressCity: e.accountHolderMailingAddressIsDifferent === "yes",
@@ -1370,12 +1381,12 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1370
1381
  iAmNotSubjectToBackupWithholding: o,
1371
1382
  iAmACitizenOfTheUs: o,
1372
1383
  iAuthorizeWithholdingAgent: s,
1373
- iConfirmIncomeIsNonUs: l,
1374
- iConfirmTheEntityIsTheBeneficialOwner: l,
1375
- iConfirmTheBeneficialOwnerIsExempt: l,
1384
+ iConfirmIncomeIsNonUs: d,
1385
+ iConfirmTheEntityIsTheBeneficialOwner: d,
1386
+ iConfirmTheBeneficialOwnerIsExempt: d,
1376
1387
  iConfirmTheTaxIdIsCorrect: o,
1377
- iConfirmTheEntityIsNotAUsPerson: l,
1378
- iConfirmTheInformationIsCorrectComplete: h,
1388
+ iConfirmTheEntityIsNotAUsPerson: d,
1389
+ iConfirmTheInformationIsCorrectComplete: k,
1379
1390
  iHaveLegalCapacityToSign: o,
1380
1391
  accountHolderTaxResidences: c,
1381
1392
  accountHolderAddress: e.accountHolderIsEuResident === "yes" || e.accountHolderUsPerson !== void 0 || e.accountHolderUsAccountType !== void 0,
@@ -1384,46 +1395,46 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1384
1395
  regardedOwnerMailingAddress: e.regardedOwnerMailingAddressIsDifferent === "yes"
1385
1396
  };
1386
1397
  }, Yn = (e, a) => {
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;
1398
+ var o, s, d, l, m, k, g, c, v, A, f, y, B, I, z, p, G, J, X, ce, T, M, H, te, Se, q, ie, re, Ae, me, Ne, ge, Te, Me, ye, O, F, we, He, Le, je, Ge, Oe, ua, Ve, ca, ma, ze, Ee, We, Je, Be, ga, ka, xe, ha, va, Ze, qe, be, pa, Ye, _e, Ue, fa, Aa, ba, Ca, Ia, Sa, Na, De, Qe, ke, Fe, Ke, Xe, Ta, $e, Ma, ea, aa, ya, ja, ia, Oa, za, Ea, Ba, t, u, h, C, j, P, N, S, K, w, L, Z, he, na, ne, 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, 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, vn, pn, fn, An, bn, Cn, In, Sn, Nn, Tn, Mn, yn, jn, On, zn, En, Bn, Pn, Rn, wn, Hn, Ln, Gn, xn, Un;
1388
1399
  if (e == null)
1389
1400
  return {};
1390
1401
  const n = {
1391
1402
  accountHolderName: (o = e.accountHolder) == null ? void 0 : o.name,
1392
1403
  accountHolderDbaName: (s = e.accountHolder) == null ? void 0 : s.dbaName,
1393
- accountHolderDateOfBirth: (l = e.accountHolder) == null ? void 0 : l.dateOfBirth,
1394
- accountHolderCityOfBirth: (d = e.accountHolder) == null ? void 0 : d.cityOfBirth,
1404
+ accountHolderDateOfBirth: (d = e.accountHolder) == null ? void 0 : d.dateOfBirth,
1405
+ accountHolderCityOfBirth: (l = e.accountHolder) == null ? void 0 : l.cityOfBirth,
1395
1406
  accountHolderCountryOfBirth: (m = e.accountHolder) == null ? void 0 : m.countryOfBirth,
1396
- accountHolderUsTin: (h = e.accountHolder) == null ? void 0 : h.tin,
1407
+ accountHolderUsTin: (k = e.accountHolder) == null ? void 0 : k.tin,
1397
1408
  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,
1407
- accountHolderMailingAddressIsDifferent: (Ae = e.accountHolder) != null && Ae.mailingAddressIsDifferent ? "yes" : void 0,
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,
1410
- accountHolderMailingAddressStreet2: (Ce = (ue = e.accountHolder) == null ? void 0 : ue.mailingAddress) == null ? void 0 : Ce.secondLine,
1411
- accountHolderMailingAddressCity: (Se = (Ie = e.accountHolder) == null ? void 0 : Ie.mailingAddress) == null ? void 0 : Se.city,
1412
- accountHolderMailingAddressState: (U = (z = e.accountHolder) == null ? void 0 : z.mailingAddress) == null ? void 0 : U.stateOrProvince,
1413
- accountHolderMailingAddressZip: (la = (Ne = e.accountHolder) == null ? void 0 : Ne.mailingAddress) == null ? void 0 : la.postalCode,
1414
- accountHolderMailingAddressCountry: (Pe = (da = e.accountHolder) == null ? void 0 : da.mailingAddress) == null ? void 0 : Pe.country,
1415
- accountHolderIsIndividual: ((we = e.accountHolder) == null ? void 0 : we.isIndividual) === !0 ? "yes" : ((Te = e.accountHolder) == null ? void 0 : Te.isIndividual) === !1 ? "no" : void 0,
1416
- accountHolderIsEuResident: ((He = e.accountHolder) == null ? void 0 : He.isEuResident) === !0 ? "yes" : ((Me = e.accountHolder) == null ? void 0 : Me.isEuResident) === !1 ? "no" : void 0,
1417
- accountHolderUsPerson: ((ua = e.accountHolder) == null ? void 0 : ua.isUsPerson) === !0 ? "yes" : ((Fe = e.accountHolder) == null ? void 0 : Fe.isUsPerson) === !1 ? "no" : void 0,
1409
+ accountHolderForeignTinIsNotRequired: (v = e.accountHolder) != null && v.ftinNotLegallyRequired ? "yes" : void 0,
1410
+ accountHolderCountryOfCitizenship: (A = e.accountHolder) == null ? void 0 : A.countryOfCitizenship,
1411
+ accountHolderAddress: (y = (f = e.accountHolder) == null ? void 0 : f.address) == null ? void 0 : y.country,
1412
+ accountHolderAddressStreet: (I = (B = e.accountHolder) == null ? void 0 : B.address) == null ? void 0 : I.firstLine,
1413
+ accountHolderAddressStreet2: (p = (z = e.accountHolder) == null ? void 0 : z.address) == null ? void 0 : p.secondLine,
1414
+ accountHolderAddressCity: (J = (G = e.accountHolder) == null ? void 0 : G.address) == null ? void 0 : J.city,
1415
+ accountHolderAddressState: (ce = (X = e.accountHolder) == null ? void 0 : X.address) == null ? void 0 : ce.stateOrProvince,
1416
+ accountHolderAddressZip: (M = (T = e.accountHolder) == null ? void 0 : T.address) == null ? void 0 : M.postalCode,
1417
+ accountHolderAddressCountry: (te = (H = e.accountHolder) == null ? void 0 : H.address) == null ? void 0 : te.country,
1418
+ accountHolderMailingAddressIsDifferent: (Se = e.accountHolder) != null && Se.mailingAddressIsDifferent ? "yes" : void 0,
1419
+ accountHolderMailingAddress: (ie = (q = e.accountHolder) == null ? void 0 : q.mailingAddress) == null ? void 0 : ie.country,
1420
+ accountHolderMailingAddressStreet: (Ae = (re = e.accountHolder) == null ? void 0 : re.mailingAddress) == null ? void 0 : Ae.firstLine,
1421
+ accountHolderMailingAddressStreet2: (Ne = (me = e.accountHolder) == null ? void 0 : me.mailingAddress) == null ? void 0 : Ne.secondLine,
1422
+ accountHolderMailingAddressCity: (Te = (ge = e.accountHolder) == null ? void 0 : ge.mailingAddress) == null ? void 0 : Te.city,
1423
+ accountHolderMailingAddressState: (ye = (Me = e.accountHolder) == null ? void 0 : Me.mailingAddress) == null ? void 0 : ye.stateOrProvince,
1424
+ accountHolderMailingAddressZip: (F = (O = e.accountHolder) == null ? void 0 : O.mailingAddress) == null ? void 0 : F.postalCode,
1425
+ accountHolderMailingAddressCountry: (He = (we = e.accountHolder) == null ? void 0 : we.mailingAddress) == null ? void 0 : He.country,
1426
+ accountHolderIsIndividual: ((Le = e.accountHolder) == null ? void 0 : Le.isIndividual) === !0 ? "yes" : ((je = e.accountHolder) == null ? void 0 : je.isIndividual) === !1 ? "no" : void 0,
1427
+ accountHolderIsEuResident: ((Ge = e.accountHolder) == null ? void 0 : Ge.isEuResident) === !0 ? "yes" : ((Oe = e.accountHolder) == null ? void 0 : Oe.isEuResident) === !1 ? "no" : void 0,
1428
+ accountHolderUsPerson: ((ua = e.accountHolder) == null ? void 0 : ua.isUsPerson) === !0 ? "yes" : ((Ve = e.accountHolder) == null ? void 0 : Ve.isUsPerson) === !1 ? "no" : void 0,
1418
1429
  accountHolderUsAccountType: qn(
1419
1430
  (ca = e.accountHolder) == null ? void 0 : ca.usAccountType
1420
1431
  ),
1421
- accountHolderUsSmllcElection: ((ma = e.accountHolder) == null ? void 0 : ma.usSmllcElection) === !0 ? "yes" : ((ye = e.accountHolder) == null ? void 0 : ye.usSmllcElection) === !1 ? "no" : void 0,
1432
+ accountHolderUsSmllcElection: ((ma = e.accountHolder) == null ? void 0 : ma.usSmllcElection) === !0 ? "yes" : ((ze = e.accountHolder) == null ? void 0 : ze.usSmllcElection) === !1 ? "no" : void 0,
1422
1433
  accountHolderUsLlcClassification: Zn(
1423
- (je = e.accountHolder) == null ? void 0 : je.usLlcClassification
1434
+ (Ee = e.accountHolder) == null ? void 0 : Ee.usLlcClassification
1424
1435
  ),
1425
- accountHolderUsOtherClassification: (Ke = e.accountHolder) == null ? void 0 : Ke.usOtherClassification,
1426
- accountHolderUsTrustEstateEin: ((Ve = e.accountHolder) == null ? void 0 : Ve.usTrustEstateEin) === !0 ? "yes" : ((Oe = e.accountHolder) == null ? void 0 : Oe.usTrustEstateEin) === !1 ? "no" : void 0,
1436
+ accountHolderUsOtherClassification: (We = e.accountHolder) == null ? void 0 : We.usOtherClassification,
1437
+ accountHolderUsTrustEstateEin: ((Je = e.accountHolder) == null ? void 0 : Je.usTrustEstateEin) === !0 ? "yes" : ((Be = e.accountHolder) == null ? void 0 : Be.usTrustEstateEin) === !1 ? "no" : void 0,
1427
1438
  accountHolderForeignAccountType: Vn(
1428
1439
  (ga = e.accountHolder) == null ? void 0 : ga.foreignAccountType
1429
1440
  ),
@@ -1431,76 +1442,76 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1431
1442
  (ka = e.accountHolder) == null ? void 0 : ka.foreignTrustClassification
1432
1443
  ),
1433
1444
  accountHolderForeignOtherClassification: Wn(
1434
- (Le = e.accountHolder) == null ? void 0 : Le.foreignOtherClassification
1445
+ (xe = e.accountHolder) == null ? void 0 : xe.foreignOtherClassification
1435
1446
  ),
1436
- accountHolderFinancialAccountName: P(
1447
+ accountHolderFinancialAccountName: R(
1437
1448
  (ha = e.accountHolder) == null ? void 0 : ha.financialAccountName
1438
- ) ? (pa = e.accountHolder) == null ? void 0 : pa.name : (We = e.accountHolder) == null ? void 0 : We.financialAccountName,
1439
- accountHolderFinancialAccountIdentifier: (Je = e.accountHolder) == null ? void 0 : Je.financialAccountIdentifier,
1440
- accountHolderVatIdentificationNumber: (pe = e.accountHolder) != null && pe.vatinNotRequired || (va = e.accountHolder) == null ? void 0 : va.vatin,
1441
- accountHolderVatCountry: (Ze = e.accountHolder) != null && Ze.vatinNotRequired || (qe = e.accountHolder) == null ? void 0 : qe.vatinCountry,
1442
- accountHolderVatIsNotRequired: (Ge = e.accountHolder) != null && Ge.vatinNotRequired ? "yes" : void 0,
1449
+ ) ? (va = e.accountHolder) == null ? void 0 : va.name : (Ze = e.accountHolder) == null ? void 0 : Ze.financialAccountName,
1450
+ accountHolderFinancialAccountIdentifier: (qe = e.accountHolder) == null ? void 0 : qe.financialAccountIdentifier,
1451
+ accountHolderVatIdentificationNumber: (be = e.accountHolder) != null && be.vatinNotRequired || (pa = e.accountHolder) == null ? void 0 : pa.vatin,
1452
+ accountHolderVatCountry: (Ye = e.accountHolder) != null && Ye.vatinNotRequired || (_e = e.accountHolder) == null ? void 0 : _e.vatinCountry,
1453
+ accountHolderVatIsNotRequired: (Ue = e.accountHolder) != null && Ue.vatinNotRequired ? "yes" : void 0,
1443
1454
  accountHolderBusinessRegistrationNumber: (fa = e.accountHolder) == null ? void 0 : fa.businessRegistrationNumber,
1444
1455
  accountHolderBusinessRegistrationCountry: (Aa = e.accountHolder) == null ? void 0 : Aa.businessRegistrationCountry,
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,
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,
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,
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,
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,
1454
- accountHolderTaxResidenceForeignTin2IsNotRequired: (di = (li = (si = e.accountHolder) == null ? void 0 : si.taxResidences) == null ? void 0 : li[1]) != null && di.tinNotRequired ? "yes" : void 0,
1455
- accountHolderTaxResidenceCountry3: (mi = (ci = (ui = e.accountHolder) == null ? void 0 : ui.taxResidences) == null ? void 0 : ci[2]) == null ? void 0 : mi.country,
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,
1457
- accountHolderTaxResidenceForeignTin3IsNotRequired: (Ci = (bi = (Ai = e.accountHolder) == null ? void 0 : Ai.taxResidences) == null ? void 0 : bi[2]) != null && Ci.tinNotRequired ? "yes" : void 0,
1458
- accountHolderTaxResidenceCountry4: (Ni = (Si = (Ii = e.accountHolder) == null ? void 0 : Ii.taxResidences) == null ? void 0 : Si[3]) == null ? void 0 : Ni.country,
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,
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,
1463
- accountHolderTaxResidenceForeignTin5IsNotRequired: (Wi = (Vi = (Ki = e.accountHolder) == null ? void 0 : Ki.taxResidences) == null ? void 0 : Vi[4]) != null && Wi.tinNotRequired ? "yes" : void 0,
1456
+ accountHolderShowTaxResidence2: !R((Ia = (Ca = (ba = e.accountHolder) == null ? void 0 : ba.taxResidences) == null ? void 0 : Ca[1]) == null ? void 0 : Ia.country) || !R((De = (Na = (Sa = e.accountHolder) == null ? void 0 : Sa.taxResidences) == null ? void 0 : Na[1]) == null ? void 0 : De.tin) ? "yes" : void 0,
1457
+ accountHolderShowTaxResidence3: !R((Fe = (ke = (Qe = e.accountHolder) == null ? void 0 : Qe.taxResidences) == null ? void 0 : ke[2]) == null ? void 0 : Fe.country) || !R((Ta = (Xe = (Ke = e.accountHolder) == null ? void 0 : Ke.taxResidences) == null ? void 0 : Xe[2]) == null ? void 0 : Ta.tin) ? "yes" : void 0,
1458
+ accountHolderShowTaxResidence4: !R((ea = (Ma = ($e = e.accountHolder) == null ? void 0 : $e.taxResidences) == null ? void 0 : Ma[3]) == null ? void 0 : ea.country) || !R((ja = (ya = (aa = e.accountHolder) == null ? void 0 : aa.taxResidences) == null ? void 0 : ya[3]) == null ? void 0 : ja.tin) ? "yes" : void 0,
1459
+ accountHolderShowTaxResidence5: !R((za = (Oa = (ia = e.accountHolder) == null ? void 0 : ia.taxResidences) == null ? void 0 : Oa[4]) == null ? void 0 : za.country) || !R((t = (Ba = (Ea = e.accountHolder) == null ? void 0 : Ea.taxResidences) == null ? void 0 : Ba[4]) == null ? void 0 : t.tin) ? "yes" : void 0,
1460
+ accountHolderTaxResidenceCountry1: (C = (h = (u = e.accountHolder) == null ? void 0 : u.taxResidences) == null ? void 0 : h[0]) == null ? void 0 : C.country,
1461
+ accountHolderTaxResidenceForeignTin1: (N = (P = (j = e.accountHolder) == null ? void 0 : j.taxResidences) == null ? void 0 : P[0]) != null && N.tinNotRequired || (w = (K = (S = e.accountHolder) == null ? void 0 : S.taxResidences) == null ? void 0 : K[0]) == null ? void 0 : w.tin,
1462
+ accountHolderTaxResidenceForeignTin1IsNotRequired: (he = (Z = (L = e.accountHolder) == null ? void 0 : L.taxResidences) == null ? void 0 : Z[0]) != null && he.tinNotRequired ? "yes" : void 0,
1463
+ accountHolderTaxResidenceCountry2: (ai = (ne = (na = e.accountHolder) == null ? void 0 : na.taxResidences) == null ? void 0 : ne[1]) == null ? void 0 : ai.country,
1464
+ accountHolderTaxResidenceForeignTin2: (ti = (ni = (ii = e.accountHolder) == null ? void 0 : ii.taxResidences) == null ? void 0 : ni[1]) != null && ti.tinNotRequired || (si = (oi = (ri = e.accountHolder) == null ? void 0 : ri.taxResidences) == null ? void 0 : oi[1]) == null ? void 0 : si.tin,
1465
+ accountHolderTaxResidenceForeignTin2IsNotRequired: (ui = (di = (li = e.accountHolder) == null ? void 0 : li.taxResidences) == null ? void 0 : di[1]) != null && ui.tinNotRequired ? "yes" : void 0,
1466
+ accountHolderTaxResidenceCountry3: (gi = (mi = (ci = e.accountHolder) == null ? void 0 : ci.taxResidences) == null ? void 0 : mi[2]) == null ? void 0 : gi.country,
1467
+ accountHolderTaxResidenceForeignTin3: (vi = (hi = (ki = e.accountHolder) == null ? void 0 : ki.taxResidences) == null ? void 0 : hi[2]) != null && vi.tinNotRequired || (Ai = (fi = (pi = e.accountHolder) == null ? void 0 : pi.taxResidences) == null ? void 0 : fi[2]) == null ? void 0 : Ai.tin,
1468
+ accountHolderTaxResidenceForeignTin3IsNotRequired: (Ii = (Ci = (bi = e.accountHolder) == null ? void 0 : bi.taxResidences) == null ? void 0 : Ci[2]) != null && Ii.tinNotRequired ? "yes" : void 0,
1469
+ accountHolderTaxResidenceCountry4: (Ti = (Ni = (Si = e.accountHolder) == null ? void 0 : Si.taxResidences) == null ? void 0 : Ni[3]) == null ? void 0 : Ti.country,
1470
+ accountHolderTaxResidenceForeignTin4: (ji = (yi = (Mi = e.accountHolder) == null ? void 0 : Mi.taxResidences) == null ? void 0 : yi[3]) != null && ji.tinNotRequired || (Ei = (zi = (Oi = e.accountHolder) == null ? void 0 : Oi.taxResidences) == null ? void 0 : zi[3]) == null ? void 0 : Ei.tin,
1471
+ accountHolderTaxResidenceForeignTin4IsNotRequired: (Ri = (Pi = (Bi = e.accountHolder) == null ? void 0 : Bi.taxResidences) == null ? void 0 : Pi[3]) != null && Ri.tinNotRequired ? "yes" : void 0,
1472
+ accountHolderTaxResidenceCountry5: (Li = (Hi = (wi = e.accountHolder) == null ? void 0 : wi.taxResidences) == null ? void 0 : Hi[4]) == null ? void 0 : Li.country,
1473
+ accountHolderTaxResidenceForeignTin5: (Ui = (xi = (Gi = e.accountHolder) == null ? void 0 : Gi.taxResidences) == null ? void 0 : xi[4]) != null && Ui.tinNotRequired || (Ki = (Fi = (Di = e.accountHolder) == null ? void 0 : Di.taxResidences) == null ? void 0 : Fi[4]) == null ? void 0 : Ki.tin,
1474
+ accountHolderTaxResidenceForeignTin5IsNotRequired: (Ji = (Wi = (Vi = e.accountHolder) == null ? void 0 : Vi.taxResidences) == null ? void 0 : Wi[4]) != null && Ji.tinNotRequired ? "yes" : void 0,
1464
1475
  accountHolderTaxResidences: void 0,
1465
- regardedOwnerName: (Ji = e.regardedOwner) == null ? void 0 : Ji.name,
1466
- regardedOwnerDbaName: (Zi = e.regardedOwner) == null ? void 0 : Zi.dbaName,
1467
- regardedOwnerDateOfBirth: (qi = e.regardedOwner) == null ? void 0 : qi.dateOfBirth,
1468
- regardedOwnerUsTin: (Yi = e.regardedOwner) == null ? void 0 : Yi.tin,
1469
- regardedOwnerForeignTin: (_i = e.regardedOwner) != null && _i.ftinNotLegallyRequired || (Qi = e.regardedOwner) == null ? void 0 : Qi.ftin,
1470
- regardedOwnerForeignTinIsNotRequired: (Xi = e.regardedOwner) != null && Xi.ftinNotLegallyRequired ? "yes" : void 0,
1471
- regardedOwnerCountryOfCitizenship: ($i = e.regardedOwner) == null ? void 0 : $i.countryOfCitizenship,
1472
- regardedOwnerAddress: (an = (en = e.regardedOwner) == null ? void 0 : en.address) == null ? void 0 : an.country,
1473
- regardedOwnerAddressStreet: (tn = (nn = e.regardedOwner) == null ? void 0 : nn.address) == null ? void 0 : tn.firstLine,
1474
- regardedOwnerAddressStreet2: (on = (rn = e.regardedOwner) == null ? void 0 : rn.address) == null ? void 0 : on.secondLine,
1475
- regardedOwnerAddressCity: (ln = (sn = e.regardedOwner) == null ? void 0 : sn.address) == null ? void 0 : ln.city,
1476
- regardedOwnerAddressState: (un = (dn = e.regardedOwner) == null ? void 0 : dn.address) == null ? void 0 : un.stateOrProvince,
1477
- regardedOwnerAddressZip: (mn = (cn = e.regardedOwner) == null ? void 0 : cn.address) == null ? void 0 : mn.postalCode,
1478
- regardedOwnerAddressCountry: (kn = (gn = e.regardedOwner) == null ? void 0 : gn.address) == null ? void 0 : kn.country,
1479
- regardedOwnerMailingAddressIsDifferent: (hn = e.regardedOwner) != null && hn.mailingAddressIsDifferent ? "yes" : void 0,
1480
- regardedOwnerMailingAddress: (vn = (pn = e.regardedOwner) == null ? void 0 : pn.mailingAddress) == null ? void 0 : vn.country,
1481
- regardedOwnerMailingAddressStreet: (An = (fn = e.regardedOwner) == null ? void 0 : fn.mailingAddress) == null ? void 0 : An.firstLine,
1482
- regardedOwnerMailingAddressStreet2: (Cn = (bn = e.regardedOwner) == null ? void 0 : bn.mailingAddress) == null ? void 0 : Cn.secondLine,
1483
- regardedOwnerMailingAddressCity: (Sn = (In = e.regardedOwner) == null ? void 0 : In.mailingAddress) == null ? void 0 : Sn.city,
1484
- regardedOwnerMailingAddressState: (Tn = (Nn = e.regardedOwner) == null ? void 0 : Nn.mailingAddress) == null ? void 0 : Tn.stateOrProvince,
1485
- regardedOwnerMailingAddressZip: (yn = (Mn = e.regardedOwner) == null ? void 0 : Mn.mailingAddress) == null ? void 0 : yn.postalCode,
1486
- regardedOwnerMailingAddressCountry: (On = (jn = e.regardedOwner) == null ? void 0 : jn.mailingAddress) == null ? void 0 : On.country,
1487
- regardedOwnerUsPerson: ((zn = e.regardedOwner) == null ? void 0 : zn.isUsPerson) === !0 ? "yes" : ((En = e.regardedOwner) == null ? void 0 : En.isUsPerson) === !1 ? "no" : void 0,
1476
+ regardedOwnerName: (Zi = e.regardedOwner) == null ? void 0 : Zi.name,
1477
+ regardedOwnerDbaName: (qi = e.regardedOwner) == null ? void 0 : qi.dbaName,
1478
+ regardedOwnerDateOfBirth: (Yi = e.regardedOwner) == null ? void 0 : Yi.dateOfBirth,
1479
+ regardedOwnerUsTin: (_i = e.regardedOwner) == null ? void 0 : _i.tin,
1480
+ regardedOwnerForeignTin: (Qi = e.regardedOwner) != null && Qi.ftinNotLegallyRequired || (Xi = e.regardedOwner) == null ? void 0 : Xi.ftin,
1481
+ regardedOwnerForeignTinIsNotRequired: ($i = e.regardedOwner) != null && $i.ftinNotLegallyRequired ? "yes" : void 0,
1482
+ regardedOwnerCountryOfCitizenship: (en = e.regardedOwner) == null ? void 0 : en.countryOfCitizenship,
1483
+ regardedOwnerAddress: (nn = (an = e.regardedOwner) == null ? void 0 : an.address) == null ? void 0 : nn.country,
1484
+ regardedOwnerAddressStreet: (rn = (tn = e.regardedOwner) == null ? void 0 : tn.address) == null ? void 0 : rn.firstLine,
1485
+ regardedOwnerAddressStreet2: (sn = (on = e.regardedOwner) == null ? void 0 : on.address) == null ? void 0 : sn.secondLine,
1486
+ regardedOwnerAddressCity: (dn = (ln = e.regardedOwner) == null ? void 0 : ln.address) == null ? void 0 : dn.city,
1487
+ regardedOwnerAddressState: (cn = (un = e.regardedOwner) == null ? void 0 : un.address) == null ? void 0 : cn.stateOrProvince,
1488
+ regardedOwnerAddressZip: (gn = (mn = e.regardedOwner) == null ? void 0 : mn.address) == null ? void 0 : gn.postalCode,
1489
+ regardedOwnerAddressCountry: (hn = (kn = e.regardedOwner) == null ? void 0 : kn.address) == null ? void 0 : hn.country,
1490
+ regardedOwnerMailingAddressIsDifferent: (vn = e.regardedOwner) != null && vn.mailingAddressIsDifferent ? "yes" : void 0,
1491
+ regardedOwnerMailingAddress: (fn = (pn = e.regardedOwner) == null ? void 0 : pn.mailingAddress) == null ? void 0 : fn.country,
1492
+ regardedOwnerMailingAddressStreet: (bn = (An = e.regardedOwner) == null ? void 0 : An.mailingAddress) == null ? void 0 : bn.firstLine,
1493
+ regardedOwnerMailingAddressStreet2: (In = (Cn = e.regardedOwner) == null ? void 0 : Cn.mailingAddress) == null ? void 0 : In.secondLine,
1494
+ regardedOwnerMailingAddressCity: (Nn = (Sn = e.regardedOwner) == null ? void 0 : Sn.mailingAddress) == null ? void 0 : Nn.city,
1495
+ regardedOwnerMailingAddressState: (Mn = (Tn = e.regardedOwner) == null ? void 0 : Tn.mailingAddress) == null ? void 0 : Mn.stateOrProvince,
1496
+ regardedOwnerMailingAddressZip: (jn = (yn = e.regardedOwner) == null ? void 0 : yn.mailingAddress) == null ? void 0 : jn.postalCode,
1497
+ regardedOwnerMailingAddressCountry: (zn = (On = e.regardedOwner) == null ? void 0 : On.mailingAddress) == null ? void 0 : zn.country,
1498
+ regardedOwnerUsPerson: ((En = e.regardedOwner) == null ? void 0 : En.isUsPerson) === !0 ? "yes" : ((Bn = e.regardedOwner) == null ? void 0 : Bn.isUsPerson) === !1 ? "no" : void 0,
1488
1499
  regardedOwnerUsAccountType: qn(
1489
- (Bn = e.regardedOwner) == null ? void 0 : Bn.usAccountType
1500
+ (Pn = e.regardedOwner) == null ? void 0 : Pn.usAccountType
1490
1501
  ),
1491
1502
  regardedOwnerUsLlcClassification: Zn(
1492
1503
  (Rn = e.regardedOwner) == null ? void 0 : Rn.usLlcClassification
1493
1504
  ),
1494
- regardedOwnerUsOtherClassification: (Pn = e.regardedOwner) == null ? void 0 : Pn.usOtherClassification,
1495
- regardedOwnerUsTrustEstateEin: ((wn = e.regardedOwner) == null ? void 0 : wn.usTrustEstateEin) === !0 ? "yes" : ((Hn = e.regardedOwner) == null ? void 0 : Hn.usTrustEstateEin) === !1 ? "no" : void 0,
1505
+ regardedOwnerUsOtherClassification: (wn = e.regardedOwner) == null ? void 0 : wn.usOtherClassification,
1506
+ regardedOwnerUsTrustEstateEin: ((Hn = e.regardedOwner) == null ? void 0 : Hn.usTrustEstateEin) === !0 ? "yes" : ((Ln = e.regardedOwner) == null ? void 0 : Ln.usTrustEstateEin) === !1 ? "no" : void 0,
1496
1507
  regardedOwnerForeignAccountType: Vn(
1497
- (Ln = e.regardedOwner) == null ? void 0 : Ln.foreignAccountType
1508
+ (Gn = e.regardedOwner) == null ? void 0 : Gn.foreignAccountType
1498
1509
  ),
1499
1510
  regardedOwnerForeignTrustClassification: Jn(
1500
- (Gn = e.regardedOwner) == null ? void 0 : Gn.foreignTrustClassification
1511
+ (xn = e.regardedOwner) == null ? void 0 : xn.foreignTrustClassification
1501
1512
  ),
1502
1513
  regardedOwnerForeignOtherClassification: Wn(
1503
- (xn = e.regardedOwner) == null ? void 0 : xn.foreignOtherClassification
1514
+ (Un = e.regardedOwner) == null ? void 0 : Un.foreignOtherClassification
1504
1515
  ),
1505
1516
  iConfirmTheInformationIsCorrectComplete: void 0,
1506
1517
  isNotSubjectBackupWithholding: void 0
@@ -1513,54 +1524,53 @@ const Ua = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
1513
1524
  }, Wa = ({ bearerToken: e }) => new Headers({
1514
1525
  Authorization: `Bearer ${e}`
1515
1526
  }), kr = (e, a) => {
1516
- var C;
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 = {
1527
+ const [n, r] = W(), [o, s] = W(), [d, l] = W(!1), m = a ? "STAGING" : "PRODUCTION", k = Da.taxDocumentation.get(m), g = Da.taxDocumentation.post(m), c = Da.taxDocumentationStatus.get(m), v = async (A) => {
1528
+ const f = {
1519
1529
  method: "POST",
1520
1530
  headers: Wa({ bearerToken: e }),
1521
- body: JSON.stringify(Za(N))
1531
+ body: JSON.stringify(qa(A))
1522
1532
  };
1523
- fetch(g, T).then((y) => {
1524
- y.status === 200 && d(!0);
1533
+ fetch(g, f).then((y) => {
1534
+ y.status === 200 && l(!0);
1525
1535
  });
1526
1536
  };
1527
- Y(() => {
1528
- const N = {
1529
- method: "GET",
1530
- headers: Wa({ bearerToken: e })
1531
- };
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));
1538
- });
1539
- }, [e, c]), Y(() => {
1537
+ return _(() => {
1538
+ if (U(e)) {
1539
+ const A = {
1540
+ method: "GET",
1541
+ headers: Wa({ bearerToken: e })
1542
+ };
1543
+ fetch(c, A).then((f) => {
1544
+ if (f.ok)
1545
+ return f.json();
1546
+ throw f.status === 401 ? new Error("Unauthorized, please check your bearer token") : new Error("Something went wrong");
1547
+ }).then((f) => {
1548
+ s(La(f));
1549
+ });
1550
+ } else
1551
+ console.error("Bearer token is missing");
1552
+ }, [e, c]), _(() => {
1540
1553
  if (o && o.submissionStatus !== "NOT_SUBMITTED") {
1541
- const N = {
1554
+ const A = {
1542
1555
  method: "GET",
1543
1556
  headers: Wa({ bearerToken: e })
1544
1557
  };
1545
- fetch(h, N).then((T) => {
1546
- if (T.ok)
1547
- return T.json();
1558
+ fetch(k, A).then((f) => {
1559
+ if (f.ok)
1560
+ return f.json();
1548
1561
  throw new Error("Something went wrong");
1549
- }).then((T) => {
1550
- r(La(T));
1562
+ }).then((f) => {
1563
+ r(La(f));
1551
1564
  });
1552
1565
  }
1553
- }, [e, o, h]);
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;
1555
- return {
1556
- postData: p,
1557
- formStatus: f,
1566
+ }, [e, o, k]), {
1567
+ postData: v,
1558
1568
  status: o,
1559
- formSubmitted: l,
1569
+ formSubmitted: d,
1560
1570
  serverData: n
1561
1571
  };
1562
1572
  };
1563
- var Ya = { exports: {} }, ia = {};
1573
+ var _a = { exports: {} }, ta = {};
1564
1574
  /**
1565
1575
  * @license React
1566
1576
  * react-jsx-runtime.production.min.js
@@ -1573,22 +1583,22 @@ var Ya = { exports: {} }, ia = {};
1573
1583
  var _n;
1574
1584
  function hr() {
1575
1585
  if (_n)
1576
- return ia;
1586
+ return ta;
1577
1587
  _n = 1;
1578
1588
  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 };
1579
- function l(d, m, h) {
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);
1589
+ function d(l, m, k) {
1590
+ var g, c = {}, v = null, A = null;
1591
+ k !== void 0 && (v = "" + k), m.key !== void 0 && (v = "" + m.key), m.ref !== void 0 && (A = m.ref);
1582
1592
  for (g in m)
1583
1593
  r.call(m, g) && !s.hasOwnProperty(g) && (c[g] = m[g]);
1584
- if (d && d.defaultProps)
1585
- for (g in m = d.defaultProps, m)
1594
+ if (l && l.defaultProps)
1595
+ for (g in m = l.defaultProps, m)
1586
1596
  c[g] === void 0 && (c[g] = m[g]);
1587
- return { $$typeof: a, type: d, key: p, ref: f, props: c, _owner: o.current };
1597
+ return { $$typeof: a, type: l, key: v, ref: A, props: c, _owner: o.current };
1588
1598
  }
1589
- return ia.Fragment = n, ia.jsx = l, ia.jsxs = l, ia;
1599
+ return ta.Fragment = n, ta.jsx = d, ta.jsxs = d, ta;
1590
1600
  }
1591
- var na = {};
1601
+ var ra = {};
1592
1602
  /**
1593
1603
  * @license React
1594
1604
  * react-jsx-runtime.development.js
@@ -1599,56 +1609,56 @@ var na = {};
1599
1609
  * LICENSE file in the root directory of this source tree.
1600
1610
  */
1601
1611
  var Qn;
1602
- function pr() {
1612
+ function vr() {
1603
1613
  return Qn || (Qn = 1, process.env.NODE_ENV !== "production" && function() {
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) {
1614
+ 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"), d = Symbol.for("react.provider"), l = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), f = Symbol.iterator, y = "@@iterator";
1615
+ function B(t) {
1606
1616
  if (t === null || typeof t != "object")
1607
1617
  return null;
1608
- var u = C && t[C] || t[N];
1618
+ var u = f && t[f] || t[y];
1609
1619
  return typeof u == "function" ? u : null;
1610
1620
  }
1611
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1612
- function R(t) {
1621
+ var I = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1622
+ function z(t) {
1613
1623
  {
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);
1624
+ for (var u = arguments.length, h = new Array(u > 1 ? u - 1 : 0), C = 1; C < u; C++)
1625
+ h[C - 1] = arguments[C];
1626
+ p("error", t, h);
1617
1627
  }
1618
1628
  }
1619
- function v(t, u, k) {
1629
+ function p(t, u, h) {
1620
1630
  {
1621
- var b = y.ReactDebugCurrentFrame, O = b.getStackAddendum();
1622
- O !== "" && (u += "%s", k = k.concat([O]));
1623
- var B = k.map(function(M) {
1624
- return String(M);
1631
+ var C = I.ReactDebugCurrentFrame, j = C.getStackAddendum();
1632
+ j !== "" && (u += "%s", h = h.concat([j]));
1633
+ var P = h.map(function(N) {
1634
+ return String(N);
1625
1635
  });
1626
- B.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, B);
1636
+ P.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, P);
1627
1637
  }
1628
1638
  }
1629
- var L = !1, J = !1, I = !1, j = !1, G = !1, ie;
1630
- ie = Symbol.for("react.module.reference");
1631
- function Be(t) {
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
1639
+ var G = !1, J = !1, X = !1, ce = !1, T = !1, M;
1640
+ M = Symbol.for("react.module.reference");
1641
+ function H(t) {
1642
+ return !!(typeof t == "string" || typeof t == "function" || t === r || t === s || T || t === o || t === k || t === g || ce || t === A || G || J || X || typeof t == "object" && t !== null && (t.$$typeof === v || t.$$typeof === c || t.$$typeof === d || t.$$typeof === l || t.$$typeof === m || // This needs to include all possible module reference object
1633
1643
  // types supported by any Flight configuration anywhere since
1634
1644
  // we don't know which Flight build this will end up being used
1635
1645
  // with.
1636
- t.$$typeof === ie || t.getModuleId !== void 0));
1646
+ t.$$typeof === M || t.getModuleId !== void 0));
1637
1647
  }
1638
- function Re(t, u, k) {
1639
- var b = t.displayName;
1640
- if (b)
1641
- return b;
1642
- var O = u.displayName || u.name || "";
1643
- return O !== "" ? k + "(" + O + ")" : k;
1648
+ function te(t, u, h) {
1649
+ var C = t.displayName;
1650
+ if (C)
1651
+ return C;
1652
+ var j = u.displayName || u.name || "";
1653
+ return j !== "" ? h + "(" + j + ")" : h;
1644
1654
  }
1645
- function Ae(t) {
1655
+ function Se(t) {
1646
1656
  return t.displayName || "Context";
1647
1657
  }
1648
- function Z(t) {
1658
+ function q(t) {
1649
1659
  if (t == null)
1650
1660
  return null;
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")
1661
+ if (typeof t.tag == "number" && z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
1652
1662
  return t.displayName || t.name || null;
1653
1663
  if (typeof t == "string")
1654
1664
  return t;
@@ -1661,28 +1671,28 @@ function pr() {
1661
1671
  return "Profiler";
1662
1672
  case o:
1663
1673
  return "StrictMode";
1664
- case h:
1674
+ case k:
1665
1675
  return "Suspense";
1666
1676
  case g:
1667
1677
  return "SuspenseList";
1668
1678
  }
1669
1679
  if (typeof t == "object")
1670
1680
  switch (t.$$typeof) {
1671
- case d:
1672
- var u = t;
1673
- return Ae(u) + ".Consumer";
1674
1681
  case l:
1675
- var k = t;
1676
- return Ae(k._context) + ".Provider";
1682
+ var u = t;
1683
+ return Se(u) + ".Consumer";
1684
+ case d:
1685
+ var h = t;
1686
+ return Se(h._context) + ".Provider";
1677
1687
  case m:
1678
- return Re(t, t.render, "ForwardRef");
1688
+ return te(t, t.render, "ForwardRef");
1679
1689
  case c:
1680
- var b = t.displayName || null;
1681
- return b !== null ? b : Z(t.type) || "Memo";
1682
- case p: {
1683
- var O = t, B = O._payload, M = O._init;
1690
+ var C = t.displayName || null;
1691
+ return C !== null ? C : q(t.type) || "Memo";
1692
+ case v: {
1693
+ var j = t, P = j._payload, N = j._init;
1684
1694
  try {
1685
- return Z(M(B));
1695
+ return q(N(P));
1686
1696
  } catch {
1687
1697
  return null;
1688
1698
  }
@@ -1690,18 +1700,18 @@ function pr() {
1690
1700
  }
1691
1701
  return null;
1692
1702
  }
1693
- var X = Object.assign, ne = 0, be, ue, Ce, Ie, Se, z, U;
1694
- function Ne() {
1703
+ var ie = Object.assign, re = 0, Ae, me, Ne, ge, Te, Me, ye;
1704
+ function O() {
1695
1705
  }
1696
- Ne.__reactDisabledLog = !0;
1697
- function la() {
1706
+ O.__reactDisabledLog = !0;
1707
+ function F() {
1698
1708
  {
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;
1709
+ if (re === 0) {
1710
+ Ae = console.log, me = console.info, Ne = console.warn, ge = console.error, Te = console.group, Me = console.groupCollapsed, ye = console.groupEnd;
1701
1711
  var t = {
1702
1712
  configurable: !0,
1703
1713
  enumerable: !0,
1704
- value: Ne,
1714
+ value: O,
1705
1715
  writable: !0
1706
1716
  };
1707
1717
  Object.defineProperties(console, {
@@ -1714,230 +1724,230 @@ function pr() {
1714
1724
  groupEnd: t
1715
1725
  });
1716
1726
  }
1717
- ne++;
1727
+ re++;
1718
1728
  }
1719
1729
  }
1720
- function da() {
1730
+ function we() {
1721
1731
  {
1722
- if (ne--, ne === 0) {
1732
+ if (re--, re === 0) {
1723
1733
  var t = {
1724
1734
  configurable: !0,
1725
1735
  enumerable: !0,
1726
1736
  writable: !0
1727
1737
  };
1728
1738
  Object.defineProperties(console, {
1729
- log: X({}, t, {
1730
- value: be
1739
+ log: ie({}, t, {
1740
+ value: Ae
1731
1741
  }),
1732
- info: X({}, t, {
1733
- value: ue
1742
+ info: ie({}, t, {
1743
+ value: me
1734
1744
  }),
1735
- warn: X({}, t, {
1736
- value: Ce
1745
+ warn: ie({}, t, {
1746
+ value: Ne
1737
1747
  }),
1738
- error: X({}, t, {
1739
- value: Ie
1748
+ error: ie({}, t, {
1749
+ value: ge
1740
1750
  }),
1741
- group: X({}, t, {
1742
- value: Se
1751
+ group: ie({}, t, {
1752
+ value: Te
1743
1753
  }),
1744
- groupCollapsed: X({}, t, {
1745
- value: z
1754
+ groupCollapsed: ie({}, t, {
1755
+ value: Me
1746
1756
  }),
1747
- groupEnd: X({}, t, {
1748
- value: U
1757
+ groupEnd: ie({}, t, {
1758
+ value: ye
1749
1759
  })
1750
1760
  });
1751
1761
  }
1752
- ne < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1762
+ re < 0 && z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1753
1763
  }
1754
1764
  }
1755
- var Pe = y.ReactCurrentDispatcher, we;
1756
- function Te(t, u, k) {
1765
+ var He = I.ReactCurrentDispatcher, Le;
1766
+ function je(t, u, h) {
1757
1767
  {
1758
- if (we === void 0)
1768
+ if (Le === void 0)
1759
1769
  try {
1760
1770
  throw Error();
1761
- } catch (O) {
1762
- var b = O.stack.trim().match(/\n( *(at )?)/);
1763
- we = b && b[1] || "";
1771
+ } catch (j) {
1772
+ var C = j.stack.trim().match(/\n( *(at )?)/);
1773
+ Le = C && C[1] || "";
1764
1774
  }
1765
1775
  return `
1766
- ` + we + t;
1776
+ ` + Le + t;
1767
1777
  }
1768
1778
  }
1769
- var He = !1, Me;
1779
+ var Ge = !1, Oe;
1770
1780
  {
1771
1781
  var ua = typeof WeakMap == "function" ? WeakMap : Map;
1772
- Me = new ua();
1782
+ Oe = new ua();
1773
1783
  }
1774
- function Fe(t, u) {
1775
- if (!t || He)
1784
+ function Ve(t, u) {
1785
+ if (!t || Ge)
1776
1786
  return "";
1777
1787
  {
1778
- var k = Me.get(t);
1779
- if (k !== void 0)
1780
- return k;
1788
+ var h = Oe.get(t);
1789
+ if (h !== void 0)
1790
+ return h;
1781
1791
  }
1782
- var b;
1783
- He = !0;
1784
- var O = Error.prepareStackTrace;
1792
+ var C;
1793
+ Ge = !0;
1794
+ var j = Error.prepareStackTrace;
1785
1795
  Error.prepareStackTrace = void 0;
1786
- var B;
1787
- B = Pe.current, Pe.current = null, la();
1796
+ var P;
1797
+ P = He.current, He.current = null, F();
1788
1798
  try {
1789
1799
  if (u) {
1790
- var M = function() {
1800
+ var N = function() {
1791
1801
  throw Error();
1792
1802
  };
1793
- if (Object.defineProperty(M.prototype, "props", {
1803
+ if (Object.defineProperty(N.prototype, "props", {
1794
1804
  set: function() {
1795
1805
  throw Error();
1796
1806
  }
1797
1807
  }), typeof Reflect == "object" && Reflect.construct) {
1798
1808
  try {
1799
- Reflect.construct(M, []);
1800
- } catch (te) {
1801
- b = te;
1809
+ Reflect.construct(N, []);
1810
+ } catch (ne) {
1811
+ C = ne;
1802
1812
  }
1803
- Reflect.construct(t, [], M);
1813
+ Reflect.construct(t, [], N);
1804
1814
  } else {
1805
1815
  try {
1806
- M.call();
1807
- } catch (te) {
1808
- b = te;
1816
+ N.call();
1817
+ } catch (ne) {
1818
+ C = ne;
1809
1819
  }
1810
- t.call(M.prototype);
1820
+ t.call(N.prototype);
1811
1821
  }
1812
1822
  } else {
1813
1823
  try {
1814
1824
  throw Error();
1815
- } catch (te) {
1816
- b = te;
1825
+ } catch (ne) {
1826
+ C = ne;
1817
1827
  }
1818
1828
  t();
1819
1829
  }
1820
- } catch (te) {
1821
- if (te && b && typeof te.stack == "string") {
1822
- for (var S = te.stack.split(`
1823
- `), F = b.stack.split(`
1824
- `), w = S.length - 1, H = F.length - 1; w >= 1 && H >= 0 && S[w] !== F[H]; )
1825
- H--;
1826
- for (; w >= 1 && H >= 0; w--, H--)
1827
- if (S[w] !== F[H]) {
1828
- if (w !== 1 || H !== 1)
1830
+ } catch (ne) {
1831
+ if (ne && C && typeof ne.stack == "string") {
1832
+ for (var S = ne.stack.split(`
1833
+ `), K = C.stack.split(`
1834
+ `), w = S.length - 1, L = K.length - 1; w >= 1 && L >= 0 && S[w] !== K[L]; )
1835
+ L--;
1836
+ for (; w >= 1 && L >= 0; w--, L--)
1837
+ if (S[w] !== K[L]) {
1838
+ if (w !== 1 || L !== 1)
1829
1839
  do
1830
- if (w--, H--, H < 0 || S[w] !== F[H]) {
1831
- var q = `
1840
+ if (w--, L--, L < 0 || S[w] !== K[L]) {
1841
+ var Z = `
1832
1842
  ` + 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;
1843
+ return t.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", t.displayName)), typeof t == "function" && Oe.set(t, Z), Z;
1834
1844
  }
1835
- while (w >= 1 && H >= 0);
1845
+ while (w >= 1 && L >= 0);
1836
1846
  break;
1837
1847
  }
1838
1848
  }
1839
1849
  } finally {
1840
- He = !1, Pe.current = B, da(), Error.prepareStackTrace = O;
1850
+ Ge = !1, He.current = P, we(), Error.prepareStackTrace = j;
1841
1851
  }
1842
- var me = t ? t.displayName || t.name : "", aa = me ? Te(me) : "";
1843
- return typeof t == "function" && Me.set(t, aa), aa;
1852
+ var he = t ? t.displayName || t.name : "", na = he ? je(he) : "";
1853
+ return typeof t == "function" && Oe.set(t, na), na;
1844
1854
  }
1845
- function ca(t, u, k) {
1846
- return Fe(t, !1);
1855
+ function ca(t, u, h) {
1856
+ return Ve(t, !1);
1847
1857
  }
1848
1858
  function ma(t) {
1849
1859
  var u = t.prototype;
1850
1860
  return !!(u && u.isReactComponent);
1851
1861
  }
1852
- function ye(t, u, k) {
1862
+ function ze(t, u, h) {
1853
1863
  if (t == null)
1854
1864
  return "";
1855
1865
  if (typeof t == "function")
1856
- return Fe(t, ma(t));
1866
+ return Ve(t, ma(t));
1857
1867
  if (typeof t == "string")
1858
- return Te(t);
1868
+ return je(t);
1859
1869
  switch (t) {
1860
- case h:
1861
- return Te("Suspense");
1870
+ case k:
1871
+ return je("Suspense");
1862
1872
  case g:
1863
- return Te("SuspenseList");
1873
+ return je("SuspenseList");
1864
1874
  }
1865
1875
  if (typeof t == "object")
1866
1876
  switch (t.$$typeof) {
1867
1877
  case m:
1868
1878
  return ca(t.render);
1869
1879
  case c:
1870
- return ye(t.type, u, k);
1871
- case p: {
1872
- var b = t, O = b._payload, B = b._init;
1880
+ return ze(t.type, u, h);
1881
+ case v: {
1882
+ var C = t, j = C._payload, P = C._init;
1873
1883
  try {
1874
- return ye(B(O), u, k);
1884
+ return ze(P(j), u, h);
1875
1885
  } catch {
1876
1886
  }
1877
1887
  }
1878
1888
  }
1879
1889
  return "";
1880
1890
  }
1881
- var je = Object.prototype.hasOwnProperty, Ke = {}, Ve = y.ReactDebugCurrentFrame;
1882
- function Oe(t) {
1891
+ var Ee = Object.prototype.hasOwnProperty, We = {}, Je = I.ReactDebugCurrentFrame;
1892
+ function Be(t) {
1883
1893
  if (t) {
1884
- var u = t._owner, k = ye(t.type, t._source, u ? u.type : null);
1885
- Ve.setExtraStackFrame(k);
1894
+ var u = t._owner, h = ze(t.type, t._source, u ? u.type : null);
1895
+ Je.setExtraStackFrame(h);
1886
1896
  } else
1887
- Ve.setExtraStackFrame(null);
1897
+ Je.setExtraStackFrame(null);
1888
1898
  }
1889
- function ga(t, u, k, b, O) {
1899
+ function ga(t, u, h, C, j) {
1890
1900
  {
1891
- var B = Function.call.bind(je);
1892
- for (var M in t)
1893
- if (B(t, M)) {
1901
+ var P = Function.call.bind(Ee);
1902
+ for (var N in t)
1903
+ if (P(t, N)) {
1894
1904
  var S = void 0;
1895
1905
  try {
1896
- if (typeof t[M] != "function") {
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`.");
1898
- throw F.name = "Invariant Violation", F;
1906
+ if (typeof t[N] != "function") {
1907
+ var K = Error((C || "React class") + ": " + h + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1908
+ throw K.name = "Invariant Violation", K;
1899
1909
  }
1900
- S = t[M](u, M, b, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1910
+ S = t[N](u, N, C, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1901
1911
  } catch (w) {
1902
1912
  S = w;
1903
1913
  }
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));
1914
+ S && !(S instanceof Error) && (Be(j), z("%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).", C || "React class", h, N, typeof S), Be(null)), S instanceof Error && !(S.message in We) && (We[S.message] = !0, Be(j), z("Failed %s type: %s", h, S.message), Be(null));
1905
1915
  }
1906
1916
  }
1907
1917
  }
1908
1918
  var ka = Array.isArray;
1909
- function Le(t) {
1919
+ function xe(t) {
1910
1920
  return ka(t);
1911
1921
  }
1912
1922
  function ha(t) {
1913
1923
  {
1914
- var u = typeof Symbol == "function" && Symbol.toStringTag, k = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
1915
- return k;
1924
+ var u = typeof Symbol == "function" && Symbol.toStringTag, h = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
1925
+ return h;
1916
1926
  }
1917
1927
  }
1918
- function pa(t) {
1928
+ function va(t) {
1919
1929
  try {
1920
- return We(t), !1;
1930
+ return Ze(t), !1;
1921
1931
  } catch {
1922
1932
  return !0;
1923
1933
  }
1924
1934
  }
1925
- function We(t) {
1935
+ function Ze(t) {
1926
1936
  return "" + t;
1927
1937
  }
1928
- function Je(t) {
1929
- if (pa(t))
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);
1938
+ function qe(t) {
1939
+ if (va(t))
1940
+ return z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ha(t)), Ze(t);
1931
1941
  }
1932
- var pe = y.ReactCurrentOwner, va = {
1942
+ var be = I.ReactCurrentOwner, pa = {
1933
1943
  key: !0,
1934
1944
  ref: !0,
1935
1945
  __self: !0,
1936
1946
  __source: !0
1937
- }, Ze, qe, Ge;
1938
- Ge = {};
1947
+ }, Ye, _e, Ue;
1948
+ Ue = {};
1939
1949
  function fa(t) {
1940
- if (je.call(t, "ref")) {
1950
+ if (Ee.call(t, "ref")) {
1941
1951
  var u = Object.getOwnPropertyDescriptor(t, "ref").get;
1942
1952
  if (u && u.isReactWarning)
1943
1953
  return !1;
@@ -1945,7 +1955,7 @@ function pr() {
1945
1955
  return t.ref !== void 0;
1946
1956
  }
1947
1957
  function Aa(t) {
1948
- if (je.call(t, "key")) {
1958
+ if (Ee.call(t, "key")) {
1949
1959
  var u = Object.getOwnPropertyDescriptor(t, "key").get;
1950
1960
  if (u && u.isReactWarning)
1951
1961
  return !1;
@@ -1953,44 +1963,44 @@ function pr() {
1953
1963
  return t.key !== void 0;
1954
1964
  }
1955
1965
  function ba(t, u) {
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);
1966
+ if (typeof t.ref == "string" && be.current && u && be.current.stateNode !== u) {
1967
+ var h = q(be.current.type);
1968
+ Ue[h] || (z('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', q(be.current.type), t.ref), Ue[h] = !0);
1959
1969
  }
1960
1970
  }
1961
1971
  function Ca(t, u) {
1962
1972
  {
1963
- var k = function() {
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));
1973
+ var h = function() {
1974
+ Ye || (Ye = !0, z("%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));
1965
1975
  };
1966
- k.isReactWarning = !0, Object.defineProperty(t, "key", {
1967
- get: k,
1976
+ h.isReactWarning = !0, Object.defineProperty(t, "key", {
1977
+ get: h,
1968
1978
  configurable: !0
1969
1979
  });
1970
1980
  }
1971
1981
  }
1972
1982
  function Ia(t, u) {
1973
1983
  {
1974
- var k = function() {
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));
1984
+ var h = function() {
1985
+ _e || (_e = !0, z("%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));
1976
1986
  };
1977
- k.isReactWarning = !0, Object.defineProperty(t, "ref", {
1978
- get: k,
1987
+ h.isReactWarning = !0, Object.defineProperty(t, "ref", {
1988
+ get: h,
1979
1989
  configurable: !0
1980
1990
  });
1981
1991
  }
1982
1992
  }
1983
- var Sa = function(t, u, k, b, O, B, M) {
1993
+ var Sa = function(t, u, h, C, j, P, N) {
1984
1994
  var S = {
1985
1995
  // This tag allows us to uniquely identify this as a React Element
1986
1996
  $$typeof: a,
1987
1997
  // Built-in properties that belong on the element
1988
1998
  type: t,
1989
1999
  key: u,
1990
- ref: k,
1991
- props: M,
2000
+ ref: h,
2001
+ props: N,
1992
2002
  // Record the component responsible for creating this element.
1993
- _owner: B
2003
+ _owner: P
1994
2004
  };
1995
2005
  return S._store = {}, Object.defineProperty(S._store, "validated", {
1996
2006
  configurable: !1,
@@ -2001,49 +2011,49 @@ function pr() {
2001
2011
  configurable: !1,
2002
2012
  enumerable: !1,
2003
2013
  writable: !1,
2004
- value: b
2014
+ value: C
2005
2015
  }), Object.defineProperty(S, "_source", {
2006
2016
  configurable: !1,
2007
2017
  enumerable: !1,
2008
2018
  writable: !1,
2009
- value: O
2019
+ value: j
2010
2020
  }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
2011
2021
  };
2012
- function Na(t, u, k, b, O) {
2022
+ function Na(t, u, h, C, j) {
2013
2023
  {
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));
2016
- for (B in u)
2017
- je.call(u, B) && !va.hasOwnProperty(B) && (M[B] = u[B]);
2024
+ var P, N = {}, S = null, K = null;
2025
+ h !== void 0 && (qe(h), S = "" + h), Aa(u) && (qe(u.key), S = "" + u.key), fa(u) && (K = u.ref, ba(u, j));
2026
+ for (P in u)
2027
+ Ee.call(u, P) && !pa.hasOwnProperty(P) && (N[P] = u[P]);
2018
2028
  if (t && t.defaultProps) {
2019
2029
  var w = t.defaultProps;
2020
- for (B in w)
2021
- M[B] === void 0 && (M[B] = w[B]);
2030
+ for (P in w)
2031
+ N[P] === void 0 && (N[P] = w[P]);
2022
2032
  }
2023
- if (S || F) {
2024
- var H = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
2025
- S && Ca(M, H), F && Ia(M, H);
2033
+ if (S || K) {
2034
+ var L = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
2035
+ S && Ca(N, L), K && Ia(N, L);
2026
2036
  }
2027
- return Sa(t, S, F, O, b, pe.current, M);
2037
+ return Sa(t, S, K, j, C, be.current, N);
2028
2038
  }
2029
2039
  }
2030
- var xe = y.ReactCurrentOwner, Ye = y.ReactDebugCurrentFrame;
2031
- function ce(t) {
2040
+ var De = I.ReactCurrentOwner, Qe = I.ReactDebugCurrentFrame;
2041
+ function ke(t) {
2032
2042
  if (t) {
2033
- var u = t._owner, k = ye(t.type, t._source, u ? u.type : null);
2034
- Ye.setExtraStackFrame(k);
2043
+ var u = t._owner, h = ze(t.type, t._source, u ? u.type : null);
2044
+ Qe.setExtraStackFrame(h);
2035
2045
  } else
2036
- Ye.setExtraStackFrame(null);
2046
+ Qe.setExtraStackFrame(null);
2037
2047
  }
2038
- var Ue;
2039
- Ue = !1;
2040
- function De(t) {
2048
+ var Fe;
2049
+ Fe = !1;
2050
+ function Ke(t) {
2041
2051
  return typeof t == "object" && t !== null && t.$$typeof === a;
2042
2052
  }
2043
- function _e() {
2053
+ function Xe() {
2044
2054
  {
2045
- if (xe.current) {
2046
- var t = Z(xe.current.type);
2055
+ if (De.current) {
2056
+ var t = q(De.current.type);
2047
2057
  if (t)
2048
2058
  return `
2049
2059
 
@@ -2055,56 +2065,56 @@ Check the render method of \`` + t + "`.";
2055
2065
  function Ta(t) {
2056
2066
  {
2057
2067
  if (t !== void 0) {
2058
- var u = t.fileName.replace(/^.*[\\\/]/, ""), k = t.lineNumber;
2068
+ var u = t.fileName.replace(/^.*[\\\/]/, ""), h = t.lineNumber;
2059
2069
  return `
2060
2070
 
2061
- Check your code at ` + u + ":" + k + ".";
2071
+ Check your code at ` + u + ":" + h + ".";
2062
2072
  }
2063
2073
  return "";
2064
2074
  }
2065
2075
  }
2066
- var Qe = {};
2076
+ var $e = {};
2067
2077
  function Ma(t) {
2068
2078
  {
2069
- var u = _e();
2079
+ var u = Xe();
2070
2080
  if (!u) {
2071
- var k = typeof t == "string" ? t : t.displayName || t.name;
2072
- k && (u = `
2081
+ var h = typeof t == "string" ? t : t.displayName || t.name;
2082
+ h && (u = `
2073
2083
 
2074
- Check the top-level render call using <` + k + ">.");
2084
+ Check the top-level render call using <` + h + ">.");
2075
2085
  }
2076
2086
  return u;
2077
2087
  }
2078
2088
  }
2079
- function Xe(t, u) {
2089
+ function ea(t, u) {
2080
2090
  {
2081
2091
  if (!t._store || t._store.validated || t.key != null)
2082
2092
  return;
2083
2093
  t._store.validated = !0;
2084
- var k = Ma(u);
2085
- if (Qe[k])
2094
+ var h = Ma(u);
2095
+ if ($e[h])
2086
2096
  return;
2087
- Qe[k] = !0;
2088
- var b = "";
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);
2097
+ $e[h] = !0;
2098
+ var C = "";
2099
+ t && t._owner && t._owner !== De.current && (C = " It was passed a child from " + q(t._owner.type) + "."), ke(t), z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, C), ke(null);
2090
2100
  }
2091
2101
  }
2092
- function $e(t, u) {
2102
+ function aa(t, u) {
2093
2103
  {
2094
2104
  if (typeof t != "object")
2095
2105
  return;
2096
- if (Le(t))
2097
- for (var k = 0; k < t.length; k++) {
2098
- var b = t[k];
2099
- De(b) && Xe(b, u);
2106
+ if (xe(t))
2107
+ for (var h = 0; h < t.length; h++) {
2108
+ var C = t[h];
2109
+ Ke(C) && ea(C, u);
2100
2110
  }
2101
- else if (De(t))
2111
+ else if (Ke(t))
2102
2112
  t._store && (t._store.validated = !0);
2103
2113
  else if (t) {
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);
2114
+ var j = B(t);
2115
+ if (typeof j == "function" && j !== t.entries)
2116
+ for (var P = j.call(t), N; !(N = P.next()).done; )
2117
+ Ke(N.value) && ea(N.value, u);
2108
2118
  }
2109
2119
  }
2110
2120
  }
@@ -2113,81 +2123,81 @@ Check the top-level render call using <` + k + ">.");
2113
2123
  var u = t.type;
2114
2124
  if (u == null || typeof u == "string")
2115
2125
  return;
2116
- var k;
2126
+ var h;
2117
2127
  if (typeof u == "function")
2118
- k = u.propTypes;
2128
+ h = u.propTypes;
2119
2129
  else if (typeof u == "object" && (u.$$typeof === m || // Note: Memo only checks outer props here.
2120
2130
  // Inner props are checked in the reconciler.
2121
2131
  u.$$typeof === c))
2122
- k = u.propTypes;
2132
+ h = u.propTypes;
2123
2133
  else
2124
2134
  return;
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");
2135
+ if (h) {
2136
+ var C = q(u);
2137
+ ga(h, t.props, "prop", C, t);
2138
+ } else if (u.PropTypes !== void 0 && !Fe) {
2139
+ Fe = !0;
2140
+ var j = q(u);
2141
+ z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
2132
2142
  }
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.");
2143
+ typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2134
2144
  }
2135
2145
  }
2136
2146
  function ja(t) {
2137
2147
  {
2138
- for (var u = Object.keys(t.props), k = 0; k < u.length; k++) {
2139
- var b = u[k];
2140
- if (b !== "children" && b !== "key") {
2141
- ce(t), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), ce(null);
2148
+ for (var u = Object.keys(t.props), h = 0; h < u.length; h++) {
2149
+ var C = u[h];
2150
+ if (C !== "children" && C !== "key") {
2151
+ ke(t), z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), ke(null);
2142
2152
  break;
2143
2153
  }
2144
2154
  }
2145
- t.ref !== null && (ce(t), R("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null));
2155
+ t.ref !== null && (ke(t), z("Invalid attribute `ref` supplied to `React.Fragment`."), ke(null));
2146
2156
  }
2147
2157
  }
2148
- function ea(t, u, k, b, O, B) {
2158
+ function ia(t, u, h, C, j, P) {
2149
2159
  {
2150
- var M = Be(t);
2151
- if (!M) {
2160
+ var N = H(t);
2161
+ if (!N) {
2152
2162
  var S = "";
2153
2163
  (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();
2164
+ var K = Ta(j);
2165
+ K ? S += K : S += Xe();
2156
2166
  var w;
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);
2167
+ t === null ? w = "null" : xe(t) ? w = "array" : t !== void 0 && t.$$typeof === a ? (w = "<" + (q(t.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : w = typeof t, z("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);
2158
2168
  }
2159
- var H = Na(t, u, k, O, B);
2160
- if (H == null)
2161
- return H;
2162
- if (M) {
2163
- var q = u.children;
2164
- if (q !== void 0)
2165
- if (b)
2166
- if (Le(q)) {
2167
- for (var me = 0; me < q.length; me++)
2168
- $e(q[me], t);
2169
- Object.freeze && Object.freeze(q);
2169
+ var L = Na(t, u, h, j, P);
2170
+ if (L == null)
2171
+ return L;
2172
+ if (N) {
2173
+ var Z = u.children;
2174
+ if (Z !== void 0)
2175
+ if (C)
2176
+ if (xe(Z)) {
2177
+ for (var he = 0; he < Z.length; he++)
2178
+ aa(Z[he], t);
2179
+ Object.freeze && Object.freeze(Z);
2170
2180
  } else
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.");
2181
+ z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
2172
2182
  else
2173
- $e(q, t);
2183
+ aa(Z, t);
2174
2184
  }
2175
- return t === r ? ja(H) : ya(H), H;
2185
+ return t === r ? ja(L) : ya(L), L;
2176
2186
  }
2177
2187
  }
2178
- function Oa(t, u, k) {
2179
- return ea(t, u, k, !0);
2188
+ function Oa(t, u, h) {
2189
+ return ia(t, u, h, !0);
2180
2190
  }
2181
- function za(t, u, k) {
2182
- return ea(t, u, k, !1);
2191
+ function za(t, u, h) {
2192
+ return ia(t, u, h, !1);
2183
2193
  }
2184
2194
  var Ea = za, Ba = Oa;
2185
- na.Fragment = r, na.jsx = Ea, na.jsxs = Ba;
2186
- }()), na;
2195
+ ra.Fragment = r, ra.jsx = Ea, ra.jsxs = Ba;
2196
+ }()), ra;
2187
2197
  }
2188
- process.env.NODE_ENV === "production" ? Ya.exports = hr() : Ya.exports = pr();
2189
- var i = Ya.exports;
2190
- const vr = {
2198
+ process.env.NODE_ENV === "production" ? _a.exports = hr() : _a.exports = vr();
2199
+ var i = _a.exports;
2200
+ const pr = {
2191
2201
  button: {
2192
2202
  back: "Назад",
2193
2203
  cancel: "Отказ",
@@ -2326,6 +2336,7 @@ const vr = {
2326
2336
  error: {
2327
2337
  invalid: "Невалиден",
2328
2338
  invalidDate: "Невалидна дата",
2339
+ invalidVat: "Невалиден номер по ДДС",
2329
2340
  mustBeFiveOrNineDigits: "Трябва да бъде пет или девет цифри",
2330
2341
  mustBeInDateFormat: "Трябва да бъде в този формат: ДД/ММ/ГГГГ",
2331
2342
  mustBeNineDigits: "Трябва да бъде девет цифри",
@@ -2884,6 +2895,7 @@ const vr = {
2884
2895
  error: {
2885
2896
  invalid: "Neplatné",
2886
2897
  invalidDate: "Neplatné datum",
2898
+ invalidVat: "Neplatné DIČ",
2887
2899
  mustBeFiveOrNineDigits: "Musí být pět nebo devět číslic",
2888
2900
  mustBeInDateFormat: "Musí být v tomto formátu: MM/DD/RRRR",
2889
2901
  mustBeNineDigits: "Musí být devět číslic",
@@ -3441,6 +3453,7 @@ const vr = {
3441
3453
  error: {
3442
3454
  invalid: "Ugyldig",
3443
3455
  invalidDate: "Ugyldig dato",
3456
+ invalidVat: "Ugyldigt momsregistreringsnummer",
3444
3457
  mustBeFiveOrNineDigits: "Skal være fem eller ni tal",
3445
3458
  mustBeInDateFormat: "Skal skrives som: MM/DD/ÅÅÅÅ",
3446
3459
  mustBeNineDigits: "Skal være ni tal",
@@ -3998,6 +4011,7 @@ const vr = {
3998
4011
  error: {
3999
4012
  invalid: "Ungültig",
4000
4013
  invalidDate: "Ungültiges Datum",
4014
+ invalidVat: "Ungültige Umsatzsteuer-Identifikationsnummer",
4001
4015
  mustBeFiveOrNineDigits: "Muss fünf- oder neunstellig sein",
4002
4016
  mustBeInDateFormat: "Muss in diesem Format vorliegen: MM/TT/JJJJ",
4003
4017
  mustBeNineDigits: "Muss neunstellig sein",
@@ -4555,6 +4569,7 @@ const vr = {
4555
4569
  error: {
4556
4570
  invalid: "Ungültig",
4557
4571
  invalidDate: "Ungültiges Datum",
4572
+ invalidVat: "Ungültige Umsatzsteuer-Identifikationsnummer",
4558
4573
  mustBeFiveOrNineDigits: "Muss fünf oder neun Ziffern aufweisen",
4559
4574
  mustBeInDateFormat: "Muss in diesem Format erfolgen: MM/TT/JJJJ",
4560
4575
  mustBeNineDigits: "Muss neun Ziffern aufweisen",
@@ -5112,6 +5127,8 @@ const vr = {
5112
5127
  error: {
5113
5128
  invalid: "Μη έγκυρο",
5114
5129
  invalidDate: "Μη έγκυρη ημερομηνία",
5130
+ // translate "Invalid VAT identification number"
5131
+ invalidVat: "Μη έγκυρος αριθμός ΦΠΑ",
5115
5132
  mustBeFiveOrNineDigits: "Πρέπει να αποτελείται από πέντε ή εννέα ψηφία",
5116
5133
  mustBeInDateFormat: "Πρέπει να έχει αυτή τη μορφή: ΜΜ/ΗΗ/ΕΕΕΕ",
5117
5134
  mustBeNineDigits: "Πρέπει να αποτελείται από εννέα ψηφία",
@@ -5669,6 +5686,8 @@ const vr = {
5669
5686
  error: {
5670
5687
  invalid: "Μη έγκυρο",
5671
5688
  invalidDate: "Μη έγκυρη ημερομηνία",
5689
+ // translate "Invalid VAT identification number"
5690
+ invalidVat: "Μη έγκυρος αριθμός ΦΠΑ",
5672
5691
  mustBeFiveOrNineDigits: "Πρέπει να περιέχει πέντε ή εννέα ψηφία",
5673
5692
  mustBeInDateFormat: "Πρέπει να έχει την εξής μορφή: ΗΗ/ΜΜ/ΕΕΕΕ",
5674
5693
  mustBeNineDigits: "Πρέπει να περιέχει εννέα ψηφία",
@@ -6226,6 +6245,7 @@ const vr = {
6226
6245
  error: {
6227
6246
  invalid: "Invalid",
6228
6247
  invalidDate: "Invalid Date",
6248
+ invalidVat: "Invalid VAT identification number",
6229
6249
  mustBeFiveOrNineDigits: "Must be five or nine digits",
6230
6250
  mustBeInDateFormat: "Must be in this format: DD/MM/YYYY",
6231
6251
  mustBeNineDigits: "Must be nine digits",
@@ -6783,6 +6803,7 @@ const vr = {
6783
6803
  error: {
6784
6804
  invalid: "Invalid",
6785
6805
  invalidDate: "Invalid Date",
6806
+ invalidVat: "Invalid VAT Identification Number",
6786
6807
  mustBeFiveOrNineDigits: "Must be five or nine digits",
6787
6808
  mustBeInDateFormat: "Must select a month, day, and year",
6788
6809
  mustBeNineDigits: "Must be nine digits",
@@ -7340,6 +7361,7 @@ const vr = {
7340
7361
  error: {
7341
7362
  invalid: "No válido",
7342
7363
  invalidDate: "Fecha no válida",
7364
+ invalidVat: "Número de IVA no válido",
7343
7365
  mustBeFiveOrNineDigits: "Debe tener de cinco a nueve dígitos.",
7344
7366
  mustBeInDateFormat: "Debe tener este formato: DD/MM/AAAA",
7345
7367
  mustBeNineDigits: "Debe tener nueve dígitos",
@@ -7897,6 +7919,7 @@ const vr = {
7897
7919
  error: {
7898
7920
  invalid: "Kehtetu",
7899
7921
  invalidDate: "Kehtetu kuupäev",
7922
+ invalidVat: "Kehtetu KMKR",
7900
7923
  mustBeFiveOrNineDigits: "Peab olema viis või üheksa numbrit",
7901
7924
  mustBeInDateFormat: "Peab olema vormingus: KK.PP.AAAA",
7902
7925
  mustBeNineDigits: "Peab olema üheksa numbrit",
@@ -8454,6 +8477,7 @@ const vr = {
8454
8477
  error: {
8455
8478
  invalid: "Virheellinen",
8456
8479
  invalidDate: "Virheellinen päivämäärä",
8480
+ invalidVat: "Virheellinen ALV-tunniste",
8457
8481
  mustBeFiveOrNineDigits: "Täytyy olla viisi tai yhdeksän numeroa",
8458
8482
  mustBeInDateFormat: "Täytyy olla tässä muodossa: KK/PP/VVVV",
8459
8483
  mustBeNineDigits: "Täytyy olla yhdeksän numeroa",
@@ -9011,6 +9035,7 @@ const vr = {
9011
9035
  error: {
9012
9036
  invalid: "Invalide",
9013
9037
  invalidDate: "Date non valide",
9038
+ invalidVat: "Numéro de TVA non valide",
9014
9039
  mustBeFiveOrNineDigits: "Doit compter cinq ou neuf chiffres",
9015
9040
  mustBeInDateFormat: "Doit être au format : JJ/MM/AAAA",
9016
9041
  mustBeNineDigits: "Doit compter neuf chiffres",
@@ -9568,6 +9593,7 @@ const vr = {
9568
9593
  error: {
9569
9594
  invalid: "Invalide",
9570
9595
  invalidDate: "Date invalide",
9596
+ invalidVat: "Numéro de TVA invalide",
9571
9597
  mustBeFiveOrNineDigits: "Doit contenir cinq ou neuf chiffres",
9572
9598
  mustBeInDateFormat: "Doit être au format : MM/JJ/AAAA",
9573
9599
  mustBeNineDigits: "Doit contenir neuf chiffres",
@@ -10125,6 +10151,7 @@ const vr = {
10125
10151
  error: {
10126
10152
  invalid: "Neamhbhailí",
10127
10153
  invalidDate: "Dáta Neamhbhailí",
10154
+ invalidVat: "Uimhir Aitheantais CBL Neamhbhailí",
10128
10155
  mustBeFiveOrNineDigits: "Ní mór cúig nó naoi ndigit a bheith ann",
10129
10156
  mustBeInDateFormat: "Caithfidh sé a bheith san fhormáid seo: MM/LL/BBBB",
10130
10157
  mustBeNineDigits: "Ní mór naoi ndigit a bheith ann",
@@ -10682,6 +10709,7 @@ const vr = {
10682
10709
  error: {
10683
10710
  invalid: "Neispravno",
10684
10711
  invalidDate: "Datum nije valjan",
10712
+ invalidVat: "Neispravan PDV ID broj",
10685
10713
  mustBeFiveOrNineDigits: "Mora imati pet ili devet znamenki",
10686
10714
  mustBeInDateFormat: "Mora biti u ovom obliku: MM/DD/GGGG",
10687
10715
  mustBeNineDigits: "Mora imati devet znamenki",
@@ -11100,7 +11128,7 @@ const vr = {
11100
11128
  "sl-si": "Slovenski",
11101
11129
  "sv-se": "Švedski"
11102
11130
  }
11103
- }, Rr = {
11131
+ }, Pr = {
11104
11132
  button: {
11105
11133
  back: "Vissza",
11106
11134
  cancel: "Mégse",
@@ -11239,6 +11267,7 @@ const vr = {
11239
11267
  error: {
11240
11268
  invalid: "Érvénytelen",
11241
11269
  invalidDate: "Érvénytelen dátum",
11270
+ invalidVat: "Érvénytelen HÉA-azonosító szám",
11242
11271
  mustBeFiveOrNineDigits: "Öt vagy kilenc számjegyből kell állnia",
11243
11272
  mustBeInDateFormat: "A következő formátumban kell lennie: HH/NN/ÉÉÉÉ",
11244
11273
  mustBeNineDigits: "Kilenc számjegyből kell állnia",
@@ -11657,7 +11686,7 @@ const vr = {
11657
11686
  "sl-si": "Szlovén",
11658
11687
  "sv-se": "Svéd"
11659
11688
  }
11660
- }, Pr = {
11689
+ }, Rr = {
11661
11690
  button: {
11662
11691
  back: "Indietro",
11663
11692
  cancel: "Annulla",
@@ -11796,6 +11825,7 @@ const vr = {
11796
11825
  error: {
11797
11826
  invalid: "Non valido",
11798
11827
  invalidDate: "Data non valida",
11828
+ invalidVat: "Numero di partita IVA non valido",
11799
11829
  mustBeFiveOrNineDigits: "Deve essere composto da cinque o nove cifre",
11800
11830
  mustBeInDateFormat: "Deve essere nel seguente formato: MM/GG/AAAA",
11801
11831
  mustBeNineDigits: "Deve essere composto da nove cifre",
@@ -12353,6 +12383,7 @@ const vr = {
12353
12383
  error: {
12354
12384
  invalid: "Neteisinga",
12355
12385
  invalidDate: "Neteisinga data",
12386
+ invalidVat: "Neteisingas PVM mokėtojo numeris",
12356
12387
  mustBeFiveOrNineDigits: "Turi būti penki arba devyni skaitmenys",
12357
12388
  mustBeInDateFormat: "Turi būti šio formato: MM/DD/MMMM",
12358
12389
  mustBeNineDigits: "Turi būti devyni skaitmenys",
@@ -12910,6 +12941,7 @@ const vr = {
12910
12941
  error: {
12911
12942
  invalid: "Nederīgs",
12912
12943
  invalidDate: "Nederīgs datums",
12944
+ invalidVat: "Nederīgs PVN numurs",
12913
12945
  mustBeFiveOrNineDigits: "Jābūt pieciem vai deviņiem cipariem",
12914
12946
  mustBeInDateFormat: "Jābūt šajā formātā: MM/DD/YYYY",
12915
12947
  mustBeNineDigits: "Jābūt deviņiem cipariem",
@@ -13467,6 +13499,7 @@ const vr = {
13467
13499
  error: {
13468
13500
  invalid: "Invalidu/a",
13469
13501
  invalidDate: "Data Invalida",
13502
+ invalidVat: "Numru ta’ Identifikazzjoni tal-VAT Invalidu",
13470
13503
  mustBeFiveOrNineDigits: "Trid tkun ħames jew disa’ ċifri",
13471
13504
  mustBeInDateFormat: "Trid tkun f’dan il-format: XX/JJ/SSSS",
13472
13505
  mustBeNineDigits: "Trid tkun f’disa’ ċifri",
@@ -14024,6 +14057,7 @@ const vr = {
14024
14057
  error: {
14025
14058
  invalid: "Ongeldig",
14026
14059
  invalidDate: "Ongeldige datum",
14060
+ invalidVat: "Ongeldig btw-identificatienummer",
14027
14061
  mustBeFiveOrNineDigits: "Moet uit vijf of negen cijfers bestaan",
14028
14062
  mustBeInDateFormat: "Moet de volgende notatie hebben: MM/DD/JJJJ",
14029
14063
  mustBeNineDigits: "Moet uit negen cijfers bestaan",
@@ -14581,6 +14615,7 @@ const vr = {
14581
14615
  error: {
14582
14616
  invalid: "Ongeldig",
14583
14617
  invalidDate: "Ongeldige datum",
14618
+ invalidVat: "Ongeldig btw-identificatienummer",
14584
14619
  mustBeFiveOrNineDigits: "Moet uit vijf of negen cijfers bestaan",
14585
14620
  mustBeInDateFormat: "Moet de volgende notatie hebben: MM/DD/JJJJ",
14586
14621
  mustBeNineDigits: "Moet uit negen cijfers bestaan",
@@ -15135,6 +15170,7 @@ const vr = {
15135
15170
  error: {
15136
15171
  invalid: "Ugyldig",
15137
15172
  invalidDate: "Ugyldig dato",
15173
+ invalidVat: "Ugyldig MVA-nummer",
15138
15174
  mustBeFiveOrNineDigits: "Må være fem eller ni sifre",
15139
15175
  mustBeInDateFormat: "Må velge måned, dag og år",
15140
15176
  mustBeNineDigits: "Må være ni sifre",
@@ -15695,6 +15731,7 @@ const vr = {
15695
15731
  error: {
15696
15732
  invalid: "Nieprawidłowe",
15697
15733
  invalidDate: "Nieprawidłowa data",
15734
+ invalidVat: "Nieprawidłowy numer identyfikacji podatkowej VAT",
15698
15735
  mustBeFiveOrNineDigits: "Musi mieć pięć lub dziewięć cyfr",
15699
15736
  mustBeInDateFormat: "Musi być w tym formacie MM/DD/RRRR",
15700
15737
  mustBeNineDigits: "Musi mieć dziewięć cyfr",
@@ -16252,6 +16289,7 @@ const vr = {
16252
16289
  error: {
16253
16290
  invalid: "Inválido",
16254
16291
  invalidDate: "Data inválida",
16292
+ invalidVat: "Número de identificação fiscal inválido",
16255
16293
  mustBeFiveOrNineDigits: "Deve ter cinco ou nove dígitos",
16256
16294
  mustBeInDateFormat: "Deve ter o seguinte formato: MM/DD/AAAA",
16257
16295
  mustBeNineDigits: "Deve ter nove dígitos",
@@ -16809,6 +16847,7 @@ const vr = {
16809
16847
  error: {
16810
16848
  invalid: "Nevalid",
16811
16849
  invalidDate: "Dată nevalidă",
16850
+ invalidVat: "Număr de identificare TVA nevalid",
16812
16851
  mustBeFiveOrNineDigits: "Trebuie să aibă cinci sau nouă cifre",
16813
16852
  mustBeInDateFormat: "Trebuie să fie în acest format: LL/ZZ/AAAA",
16814
16853
  mustBeNineDigits: "Trebuie să aibă nouă cifre",
@@ -17366,6 +17405,7 @@ const vr = {
17366
17405
  error: {
17367
17406
  invalid: "Neplatné",
17368
17407
  invalidDate: "Neplatný dátum",
17408
+ invalidVat: "Neplatné IČ DPH",
17369
17409
  mustBeFiveOrNineDigits: "Musí mať päť alebo deväť číslic",
17370
17410
  mustBeInDateFormat: "Musí byť v tomto formáte: DD/MM/RRRR",
17371
17411
  mustBeNineDigits: "Musí mať deväť číslic",
@@ -17923,6 +17963,7 @@ const vr = {
17923
17963
  error: {
17924
17964
  invalid: "Neveljavno",
17925
17965
  invalidDate: "Neveljaven datum",
17966
+ invalidVat: "Neveljavna identifikacijska številka za DDV",
17926
17967
  mustBeFiveOrNineDigits: "Vsebovati mora pet ali devet števk",
17927
17968
  mustBeInDateFormat: "Biti mora v tej obliki: MM/DD/LLLL",
17928
17969
  mustBeNineDigits: "Vsebovati mora devet števk",
@@ -18480,6 +18521,7 @@ const vr = {
18480
18521
  error: {
18481
18522
  invalid: "Ogiltig",
18482
18523
  invalidDate: "Ogiltigt datum",
18524
+ invalidVat: "Ogiltigt momsregistreringsnummer",
18483
18525
  mustBeFiveOrNineDigits: "Måste vara fem eller nio siffror",
18484
18526
  mustBeInDateFormat: "Måste vara i detta format: MM/DD/ÅÅÅÅ",
18485
18527
  mustBeNineDigits: "Måste vara nio siffror",
@@ -18899,7 +18941,7 @@ const vr = {
18899
18941
  12: "December"
18900
18942
  }
18901
18943
  }, Ja = {
18902
- "bg-bg": vr,
18944
+ "bg-bg": pr,
18903
18945
  "cs-cz": fr,
18904
18946
  "da-dk": Ar,
18905
18947
  "de-at": br,
@@ -18915,8 +18957,8 @@ const vr = {
18915
18957
  "fr-lu": zr,
18916
18958
  "ga-ie": Er,
18917
18959
  "hr-hr": Br,
18918
- "hu-hu": Rr,
18919
- "it-it": Pr,
18960
+ "hu-hu": Pr,
18961
+ "it-it": Rr,
18920
18962
  "lt-lt": wr,
18921
18963
  "lv-lv": Hr,
18922
18964
  "mt-mt": Lr,
@@ -19008,22 +19050,22 @@ const vr = {
19008
19050
  onSuccess: r,
19009
19051
  staging: o
19010
19052
  }) => {
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
19053
+ var v, A, f, y, B;
19054
+ const { status: s, postData: d, serverData: l } = kr(e, o), m = er(l, a), k = ((v = s == null ? void 0 : s.DAC7Interview) == null ? void 0 : v.vatStatus) === "INVALID" && ((A = l == null ? void 0 : l.accountHolder) == null ? void 0 : A.vatin) !== void 0 ? [
19055
+ {
19056
+ type: "vat",
19057
+ status: "invalid",
19058
+ identifier: (f = l == null ? void 0 : l.accountHolder) == null ? void 0 : f.vatin
19059
+ }
19060
+ ] : [], g = async (I) => {
19061
+ n && n(I), await d(I), r && r(I);
19062
+ }, c = (s == null ? void 0 : s.submissionStatus) === "NOT_SUBMITTED" ? s.submissionStatus : (y = s == null ? void 0 : s.DAC7Interview) == null ? void 0 : y.dataCollectionStatus;
19063
+ return {
19064
+ handleOnSubmit: g,
19065
+ externalValidations: k,
19066
+ formData: m,
19067
+ isComplete: ((B = s == null ? void 0 : s.DAC7Interview) == null ? void 0 : B.dataCollectionStatus) === "COMPLETE",
19068
+ isLoading: !c || c !== "NOT_SUBMITTED" && !l
19027
19069
  };
19028
19070
  }, ht = () => {
19029
19071
  const e = At(void 0);
@@ -19046,19 +19088,20 @@ const vr = {
19046
19088
  }, oo = ({
19047
19089
  data: e,
19048
19090
  language: a = "en-us",
19049
- onSubmit: n,
19050
- onProgress: r,
19051
- step: o = "AccountHolderClassification",
19052
- taxForms: s = ["DAC7"]
19091
+ externalValidations: n,
19092
+ onSubmit: r,
19093
+ onProgress: o,
19094
+ step: s = "AccountHolderClassification",
19095
+ taxForms: d = ["DAC7"]
19053
19096
  }) => {
19054
- const [l, d] = K(a), [m, h] = K(s), [g, c] = K(), [p, f] = K(
19055
- Yn(e, m)
19056
- ), [C, N] = K([o]), [T, y] = K(
19097
+ const l = Za(e), [m, k] = W(a), [g, c] = W(d), [v, A] = W(), [f, y] = W(
19098
+ Yn(e, g)
19099
+ ), [B, I] = W([s]), [z, p] = W(
19057
19100
  void 0
19058
- ), { isW9: R, isW8: v, isW8Ben: L, isW8BenE: J, isDac7: I } = xa(
19059
- p,
19060
- m
19061
- ), j = C[C.length - 1], G = ee(() => $n(p), [p]), ie = (z) => ({
19101
+ ), { isW9: G, isW8: J, isW8Ben: X, isW8BenE: ce, isDac7: T } = xa(
19102
+ f,
19103
+ g
19104
+ ), M = B[B.length - 1], H = ee(() => $n(f), [f]), te = (O) => ({
19062
19105
  AccountHolderContact: "accountHolderContactInformation",
19063
19106
  AccountHolderTax: "accountHolderTaxInformation",
19064
19107
  AccountHolderTaxClarification: "accountHolderTaxClarification",
@@ -19069,25 +19112,25 @@ const vr = {
19069
19112
  RegardedOwnerContact: "regardedOwnerContactInformation",
19070
19113
  RegardedOwnerTax: "regardedOwnerTaxInformation",
19071
19114
  Summary: "summary"
19072
- })[z];
19073
- Y(() => {
19074
- const z = G.indexOf(j);
19075
- c({
19076
- stepNumber: z + 1,
19077
- stepIndex: z,
19078
- totalSteps: G.length,
19115
+ })[O];
19116
+ _(() => {
19117
+ const O = H.indexOf(M);
19118
+ A({
19119
+ stepNumber: O + 1,
19120
+ stepIndex: O,
19121
+ totalSteps: H.length,
19079
19122
  percentComplete: Math.round(
19080
- z / (G.length - 1) * 100
19123
+ O / (H.length - 1) * 100
19081
19124
  ),
19082
- stepTitle: kt(ie(j), l),
19083
- stepId: ie(j),
19084
- steps: G.map((U) => ie(U)),
19085
- language: l
19125
+ stepTitle: kt(te(M), m),
19126
+ stepId: te(M),
19127
+ steps: H.map((F) => te(F)),
19128
+ language: m
19086
19129
  });
19087
- }, [l, j, G]), Y(() => {
19088
- g && r && r(g);
19089
- }, [r, g]);
19090
- const Be = {
19130
+ }, [m, M, H]), _(() => {
19131
+ v && o && o(v);
19132
+ }, [o, v]);
19133
+ const Se = {
19091
19134
  regardedOwnerUsPerson: void 0,
19092
19135
  regardedOwnerUsAccountType: void 0,
19093
19136
  regardedOwnerUsLlcClassification: void 0,
@@ -19096,91 +19139,94 @@ const vr = {
19096
19139
  regardedOwnerForeignAccountType: void 0,
19097
19140
  regardedOwnerForeignTrustClassification: void 0,
19098
19141
  regardedOwnerForeignOtherClassification: void 0
19099
- }, Re = (z) => {
19100
- const U = Z(z);
19101
- f(z), n(ur(z)), ue(U);
19102
- }, Ae = it(
19103
- (z) => {
19104
- f(Yn(z, m)), y(void 0), N([o]);
19142
+ }, q = (O) => {
19143
+ const F = re(O);
19144
+ y(O), r(ur(O)), ge(F);
19145
+ }, ie = it(
19146
+ (O) => {
19147
+ JSON.stringify(O) !== JSON.stringify(l.current) && (y(Yn(O, g)), p(void 0), I([s]));
19105
19148
  },
19106
- [m, o]
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,
19116
- ...z
19149
+ [g, s]
19150
+ ), re = (O) => {
19151
+ const F = $n(O), we = F.indexOf(M);
19152
+ return F[we + 1] || "Summary";
19153
+ }, Ae = (O) => {
19154
+ const F = re(O);
19155
+ F === "Summary" && p(void 0), ge(F);
19156
+ }, me = (O) => {
19157
+ const F = {
19158
+ ...f,
19159
+ ...O
19117
19160
  };
19118
- f(U), T === void 0 ? X(U) : N(["Summary"]);
19119
- }, be = (z) => {
19120
- p.accountHolderUsAccountType !== z.accountHolderUsAccountType || p.accountHolderForeignAccountType !== z.accountHolderForeignAccountType ? ne({
19121
- ...z,
19122
- ...Be
19123
- }) : ne(z);
19124
- }, ue = (z) => {
19125
- N([...C, z]);
19126
- }, Ce = (z) => {
19127
- N([z]), y(p);
19128
- }, Ie = T !== void 0 ? () => {
19129
- f(T), y(void 0), N(["Summary"]);
19130
- } : void 0, Se = C.length > 1 ? () => {
19131
- N(C.slice(0, C.length - 1));
19161
+ y(F), z === void 0 ? Ae(F) : I(["Summary"]);
19162
+ }, Ne = (O) => {
19163
+ f.accountHolderUsAccountType !== O.accountHolderUsAccountType || f.accountHolderForeignAccountType !== O.accountHolderForeignAccountType ? me({
19164
+ ...O,
19165
+ ...Se
19166
+ }) : me(O);
19167
+ }, ge = (O) => {
19168
+ I([...B, O]);
19169
+ }, Te = (O) => {
19170
+ I([O]), p(f);
19171
+ }, Me = z !== void 0 ? () => {
19172
+ y(z), p(void 0), I(["Summary"]);
19173
+ } : void 0, ye = B.length > 1 ? () => {
19174
+ I(B.slice(0, B.length - 1));
19132
19175
  } : void 0;
19133
19176
  return {
19134
- isW9: R,
19135
- isW8: v,
19136
- isW8Ben: L,
19137
- isW8BenE: J,
19138
- isDac7: I,
19139
- onPersistAccountHolderData: be,
19140
- onPersistCollectedData: ne,
19141
- onSubmitTaxDocumentation: Re,
19142
- onResetTaxDocumentation: Ae,
19143
- editTo: Ce,
19144
- onCancel: Ie,
19145
- getStepId: ie,
19146
- goTo: ue,
19147
- goBack: Se,
19148
- goToNext: X,
19149
- progress: g,
19150
- stepName: j,
19151
- data: p,
19152
- setLanguage: d,
19153
- language: l,
19154
- supportedForms: m,
19155
- setSupportedForms: h
19177
+ isW9: G,
19178
+ isW8: J,
19179
+ isW8Ben: X,
19180
+ isW8BenE: ce,
19181
+ isDac7: T,
19182
+ onPersistAccountHolderData: Ne,
19183
+ onPersistCollectedData: me,
19184
+ onSubmitTaxDocumentation: q,
19185
+ onResetTaxDocumentation: ie,
19186
+ editTo: Te,
19187
+ onCancel: Me,
19188
+ getStepId: te,
19189
+ goTo: ge,
19190
+ goBack: ye,
19191
+ goToNext: Ae,
19192
+ progress: v,
19193
+ stepName: M,
19194
+ data: f,
19195
+ setLanguage: k,
19196
+ language: m,
19197
+ supportedForms: g,
19198
+ setSupportedForms: c,
19199
+ externalValidations: n
19156
19200
  };
19157
19201
  }, so = ({
19158
19202
  data: e = {},
19159
- onSubmit: a,
19160
- onProgress: n,
19161
- language: r,
19162
- taxForms: o,
19163
- step: s,
19203
+ externalValidations: a,
19204
+ onSubmit: n,
19205
+ onProgress: r,
19206
+ language: o,
19207
+ taxForms: s,
19208
+ step: d,
19164
19209
  children: l
19165
19210
  }) => /* @__PURE__ */ i.jsx(
19166
19211
  ro,
19167
19212
  {
19168
19213
  value: oo({
19169
19214
  data: e,
19170
- onSubmit: a,
19171
- language: r,
19172
- taxForms: o,
19173
- step: s,
19174
- onProgress: n
19215
+ onSubmit: n,
19216
+ language: o,
19217
+ taxForms: s,
19218
+ externalValidations: a,
19219
+ step: d,
19220
+ onProgress: r
19175
19221
  }),
19176
19222
  children: l
19177
19223
  }
19178
19224
  ), [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 = {
19225
+ const n = (p) => {
19226
+ const G = $t(e);
19227
+ return G[p] ? G[p] : p;
19228
+ }, r = (p) => {
19229
+ const G = {
19184
19230
  accountHolderUsSmllcElection: "smllcElection",
19185
19231
  iConfirmIncomeIsNonUs: "iConfirmIncomeIsNonUs",
19186
19232
  accountHolderIsEuResident: "isEuResident",
@@ -19190,29 +19236,29 @@ const vr = {
19190
19236
  accountHolderVatIdentificationNumber: "vatIdentificationNumber",
19191
19237
  accountHolderCityOfBirth: "placeOfBirth"
19192
19238
  };
19193
- return L[v] ? L[v] : v;
19194
- }, o = (v) => {
19195
- const L = _t();
19196
- return L[v] ? L[v] : v;
19239
+ return G[p] ? G[p] : p;
19240
+ }, o = (p) => {
19241
+ const G = _t();
19242
+ return G[p] ? G[p] : p;
19197
19243
  };
19198
19244
  return {
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;
19245
+ getLocalHint: (p) => _r(o(p), a),
19246
+ getLocalText: (p) => gt(p, a),
19247
+ getLocalTitle: (p) => kt(p, a),
19248
+ getLocalSubTitle: (p) => Qr(p, a),
19249
+ getLocalError: (p) => Yr(p, a),
19250
+ getLocalLocale: (p) => no(p, a),
19251
+ getLocalButton: (p) => Xr(p, a),
19252
+ getLocalPrompt: (p) => Zr(n(p), a),
19253
+ getLocalSubPrompt: (p) => qr(r(p), a),
19254
+ getLocalOption: (p) => {
19255
+ if (p)
19256
+ return Xn(p, a) ? Xn(p, a) : p;
19211
19257
  },
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) : "",
19258
+ getLocalCountry: (p) => p ? $r(p, a) : "",
19259
+ getLocalUsState: (p) => p ? eo(p, a) : "",
19260
+ getLocalCaProvince: (p) => p ? ao(p, a) : "",
19261
+ getLocalMonth: (p) => p ? io(p, a) : "",
19216
19262
  getHintKey: o,
19217
19263
  getPromptKey: n,
19218
19264
  getSubPromptKey: r
@@ -19228,89 +19274,98 @@ const vr = {
19228
19274
  const {
19229
19275
  language: e,
19230
19276
  data: a,
19231
- supportedForms: n
19232
- } = ae(), [r, o] = K(a), [s, l] = K(!1), [d, m] = K(/* @__PURE__ */ new Set()), h = ee(
19233
- () => gr(r, n),
19234
- [r, n]
19235
- ), g = ee(
19277
+ supportedForms: n,
19278
+ externalValidations: r
19279
+ } = ae(), [o, s] = W(a), [d, l] = W(!1), [m, k] = W(/* @__PURE__ */ new Set()), g = ee(
19280
+ () => gr(o, n),
19281
+ [o, n]
19282
+ ), c = ee(
19236
19283
  () => Object.fromEntries(
19237
- [...d].map((I) => [I, !0])
19284
+ [...m].map((T) => [T, !0])
19238
19285
  ),
19239
- [d]
19240
- ), c = ee(() => {
19241
- const I = ut(r);
19286
+ [m]
19287
+ ), v = ee(() => {
19288
+ const T = ut(o);
19242
19289
  return Object.fromEntries(
19243
- Object.keys(g).map((j) => [
19244
- j,
19245
- I[j]
19290
+ Object.keys(c).map((M) => [
19291
+ M,
19292
+ T[M]
19246
19293
  ])
19247
19294
  );
19248
- }, [r, g]), p = ee(() => {
19249
- const I = mr(r);
19295
+ }, [o, c]), A = ee(() => {
19296
+ const T = mr(o, r);
19250
19297
  return Object.fromEntries(
19251
- Object.keys(g).map((j) => [j, I[j]]).filter(([, j]) => j)
19298
+ Object.keys(c).map((M) => [M, T[M]]).filter(([, M]) => M)
19252
19299
  );
19253
- }, [r, g]);
19254
- Y(() => {
19255
- o(a);
19300
+ }, [o, c, r]);
19301
+ _(() => {
19302
+ s(a);
19256
19303
  }, [a]);
19257
19304
  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
19305
+ (T, M) => {
19306
+ if (/accountHolderShowTaxResidence[234]/.test(T) && M === void 0) {
19307
+ const H = parseInt(T.slice(-1));
19308
+ M !== o[T] && s(co(o, H));
19309
+ } else if (/AddressCountry/.test(T)) {
19310
+ if (M !== o[T]) {
19311
+ const H = T.split("Address")[0] + "Address";
19312
+ s((te) => ({
19313
+ ...te,
19314
+ [T]: M,
19315
+ [H]: M
19269
19316
  }));
19270
19317
  }
19271
19318
  } else
19272
- j !== r[I] && o((G) => ({
19273
- ...G,
19274
- [I]: j
19319
+ M !== o[T] && s((H) => ({
19320
+ ...H,
19321
+ [T]: M
19275
19322
  }));
19276
19323
  },
19277
- [r]
19278
- ), C = () => {
19324
+ [o]
19325
+ ), y = (T) => {
19326
+ if (r && r.length > 0) {
19327
+ const M = r.find(
19328
+ (H) => H.type === "vat" && H.identifier === o.accountHolderVatIdentificationNumber
19329
+ );
19330
+ return T === "accountHolderVatIdentificationNumber" && !!M;
19331
+ }
19332
+ }, B = () => {
19279
19333
  l(!0);
19280
- }, N = () => {
19334
+ }, I = () => {
19281
19335
  l(!1);
19282
- }, T = Object.keys(p).length === 0, y = uo(r, e);
19336
+ }, z = Object.keys(A).length === 0, p = uo(o, e);
19283
19337
  return {
19284
- clearIfNotRequired: (...I) => (j) => {
19285
- j === "yes" && I.forEach((G) => {
19286
- f(G, "");
19338
+ clearIfNotRequired: (...T) => (M) => {
19339
+ M === "yes" && T.forEach((H) => {
19340
+ f(H, "");
19287
19341
  });
19288
19342
  },
19289
- fields: r,
19290
- setFields: o,
19343
+ fields: o,
19344
+ setFields: s,
19291
19345
  setValue: f,
19292
- isErrorFree: T,
19293
- showErrors: s,
19294
- exposeErrors: C,
19295
- hideErrors: N,
19296
- getRequiredLocalPrompt: (I) => y.getLocalPrompt(I) + (c[I] ? "*" : ""),
19297
- invalidFields: p,
19346
+ isErrorFree: z,
19347
+ showErrors: d,
19348
+ showErrorsForField: y,
19349
+ exposeErrors: B,
19350
+ hideErrors: I,
19351
+ getRequiredLocalPrompt: (T) => p.getLocalPrompt(T) + (v[T] ? "*" : ""),
19352
+ invalidFields: A,
19298
19353
  // (must be visible)
19299
- requiredFields: c,
19354
+ requiredFields: v,
19300
19355
  // (must be visible)
19301
- visibleFields: h,
19356
+ visibleFields: g,
19302
19357
  // (must be supported)
19303
- hideField: (I) => {
19304
- d.has(I) && m((j) => new Set([...j].filter((G) => G !== I))), f(I, void 0);
19358
+ hideField: (T) => {
19359
+ m.has(T) && k((M) => new Set([...M].filter((H) => H !== T))), f(T, void 0);
19305
19360
  },
19306
- showField: (I) => {
19307
- d.has(I) || m((j) => /* @__PURE__ */ new Set([...j, I]));
19361
+ showField: (T) => {
19362
+ m.has(T) || k((M) => /* @__PURE__ */ new Set([...M, T]));
19308
19363
  },
19309
- ...y
19364
+ ...p
19310
19365
  };
19311
- }, de = ({ children: e }) => /* @__PURE__ */ i.jsx(lo, { value: mo(), children: e }), go = ({ address: e, className: a }) => {
19366
+ }, ue = ({ children: e }) => /* @__PURE__ */ i.jsx(lo, { value: mo(), children: e }), go = ({ address: e, className: a }) => {
19312
19367
  const { getLocalCountry: n, getLocalUsState: r, getLocalCaProvince: o } = E(), s = e.country === "US" ? r(e.state) : e.country === "CA" ? o(e.state) : e.state;
19313
- return /* @__PURE__ */ i.jsxs("div", { className: se(a, "address"), children: [
19368
+ return /* @__PURE__ */ i.jsxs("div", { className: le(a, "address"), children: [
19314
19369
  /* @__PURE__ */ i.jsx("div", { children: e.street }),
19315
19370
  e.street2 && /* @__PURE__ */ i.jsx("div", { children: e.street2 }),
19316
19371
  /* @__PURE__ */ i.jsxs("div", { children: [
@@ -19320,19 +19375,25 @@ const vr = {
19320
19375
  ] }),
19321
19376
  e.country && /* @__PURE__ */ i.jsx("div", { children: n(e.country) })
19322
19377
  ] });
19323
- }, Ee = ({
19378
+ }, Re = ({
19324
19379
  name: e,
19325
19380
  hint: a
19326
19381
  }) => {
19327
- const { invalidFields: n, showErrors: r, getLocalError: o, getLocalHint: s } = E(), l = n[e] ? n[e].map((d) => o(d)) : void 0;
19328
- return l && r ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-error-message", children: l.map((d) => /* @__PURE__ */ i.jsxs(nt, { children: [
19329
- d,
19382
+ const {
19383
+ invalidFields: n,
19384
+ showErrors: r,
19385
+ showErrorsForField: o,
19386
+ getLocalError: s,
19387
+ getLocalHint: d
19388
+ } = E(), l = n[e] ? n[e].map((m) => s(m)) : void 0;
19389
+ return l && (r || o(e)) ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-error-message", children: l.map((m) => /* @__PURE__ */ i.jsxs(nt, { children: [
19390
+ m,
19330
19391
  /* @__PURE__ */ i.jsx("br", {})
19331
- ] }, d)) }) : a ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-hint", children: s(e) }) : null;
19332
- }, ke = ({ children: e, title: a, actions: n, className: r }) => /* @__PURE__ */ i.jsxs(
19392
+ ] }, m)) }) : a ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-hint", children: d(e) }) : null;
19393
+ }, pe = ({ children: e, title: a, actions: n, className: r }) => /* @__PURE__ */ i.jsxs(
19333
19394
  "form",
19334
19395
  {
19335
- className: se("taxbit-page", r),
19396
+ className: le("taxbit-page", r),
19336
19397
  onSubmit: () => !1,
19337
19398
  children: [
19338
19399
  /* @__PURE__ */ i.jsxs("header", { className: "taxbit-page-header", children: [
@@ -19342,27 +19403,27 @@ const vr = {
19342
19403
  e
19343
19404
  ]
19344
19405
  }
19345
- ), fe = ({
19406
+ ), Ie = ({
19346
19407
  children: e,
19347
19408
  className: a
19348
- }) => /* @__PURE__ */ i.jsx("div", { className: se(a, "taxbit-input-status"), children: e }), $a = ({
19409
+ }) => /* @__PURE__ */ i.jsx("div", { className: le(a, "taxbit-input-status"), children: e }), ei = ({
19349
19410
  label: e,
19350
19411
  subLabel: a,
19351
19412
  value: n,
19352
19413
  children: r,
19353
19414
  onEdit: o,
19354
19415
  name: s,
19355
- className: l
19416
+ className: d
19356
19417
  }) => {
19357
- const { invalidFields: d, showErrors: m, getLocalButton: h } = E();
19418
+ const { invalidFields: l, showErrors: m, showErrorsForField: k, getLocalButton: g } = E();
19358
19419
  return /* @__PURE__ */ i.jsxs(
19359
19420
  "div",
19360
19421
  {
19361
- className: se(
19422
+ className: le(
19362
19423
  "taxbit-row",
19363
- s && `taxbit-question-${oa(s)}`,
19364
- s && m && d[s] && "taxbit-error",
19365
- l
19424
+ s && `taxbit-question-${la(s)}`,
19425
+ s && (m || k(s)) && l[s] && "taxbit-error",
19426
+ d
19366
19427
  ),
19367
19428
  children: [
19368
19429
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-label", children: [
@@ -19375,20 +19436,20 @@ const vr = {
19375
19436
  "button",
19376
19437
  {
19377
19438
  onClick: o,
19378
- className: se(
19439
+ className: le(
19379
19440
  "taxbit-button",
19380
19441
  "taxbit-row-edit-button",
19381
19442
  "taxbit-row-action-button"
19382
19443
  ),
19383
19444
  type: "button",
19384
- children: /* @__PURE__ */ i.jsx("div", { className: "taxbit-row-edit-button-content", children: h("edit") })
19445
+ children: /* @__PURE__ */ i.jsx("div", { className: "taxbit-row-edit-button-content", children: g("edit") })
19385
19446
  }
19386
19447
  ) })
19387
19448
  ] })
19388
19449
  ]
19389
19450
  }
19390
19451
  );
19391
- }, oe = ({
19452
+ }, se = ({
19392
19453
  title: e,
19393
19454
  subTitle: a,
19394
19455
  showIf: n = !0,
@@ -19399,14 +19460,14 @@ const vr = {
19399
19460
  a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-section-sub-title", children: a })
19400
19461
  ] }),
19401
19462
  r
19402
- ] }) : r, ze = [{ value: "yes" }, { value: "no" }], ko = () => {
19463
+ ] }) : r, Pe = [{ value: "yes" }, { value: "no" }], ko = () => {
19403
19464
  const { language: e, setLanguage: a } = ae(), { getLocalLocale: n } = E(), r = (s) => {
19404
- const l = s.target.value;
19405
- a(l);
19465
+ const d = s.target.value;
19466
+ a(d);
19406
19467
  }, o = Lt.map((s) => ({
19407
19468
  ...s,
19408
19469
  label: n(s.value)
19409
- })).sort((s, l) => s.label.localeCompare(l.label));
19470
+ })).sort((s, d) => s.label.localeCompare(d.label));
19410
19471
  return /* @__PURE__ */ i.jsx(
19411
19472
  "select",
19412
19473
  {
@@ -19427,23 +19488,23 @@ const vr = {
19427
19488
  "RegardedOwnerContact",
19428
19489
  "RegardedOwnerTax",
19429
19490
  "Summary"
19430
- ], po = (e) => ho.includes(e), sa = (e) => {
19431
- if (po(e))
19491
+ ], vo = (e) => ho.includes(e), da = (e) => {
19492
+ if (vo(e))
19432
19493
  return e;
19433
19494
  throw new Error(`Invalid input step: ${e}`);
19434
- }, he = ({
19495
+ }, fe = ({
19435
19496
  onBack: e,
19436
19497
  onCancel: a,
19437
19498
  onNext: n,
19438
19499
  onSubmit: r,
19439
19500
  onReset: o
19440
19501
  }) => {
19441
- const { isErrorFree: s, exposeErrors: l, getLocalButton: d } = E(), m = s ? n : l, h = s ? r : l;
19502
+ const { isErrorFree: s, exposeErrors: d, getLocalButton: l } = E(), m = s ? n : d, k = s ? r : d;
19442
19503
  return /* @__PURE__ */ i.jsxs("footer", { className: "taxbit-step-actions", children: [
19443
19504
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-secondary-actions", children: [
19444
- a && /* @__PURE__ */ i.jsx("button", { onClick: a, type: "button", className: "taxbit-button", children: d("cancel") }),
19445
- e && /* @__PURE__ */ i.jsx("button", { onClick: e, type: "button", className: "taxbit-button", children: d("back") }),
19446
- o && /* @__PURE__ */ i.jsx("button", { onClick: o, type: "button", className: "taxbit-button", children: d("reset") })
19505
+ a && /* @__PURE__ */ i.jsx("button", { onClick: a, type: "button", className: "taxbit-button", children: l("cancel") }),
19506
+ e && /* @__PURE__ */ i.jsx("button", { onClick: e, type: "button", className: "taxbit-button", children: l("back") }),
19507
+ o && /* @__PURE__ */ i.jsx("button", { onClick: o, type: "button", className: "taxbit-button", children: l("reset") })
19447
19508
  ] }),
19448
19509
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-primary-actions", children: [
19449
19510
  n && /* @__PURE__ */ i.jsx(
@@ -19452,27 +19513,27 @@ const vr = {
19452
19513
  onClick: m,
19453
19514
  type: "button",
19454
19515
  className: "taxbit-button",
19455
- children: d("next")
19516
+ children: l("next")
19456
19517
  }
19457
19518
  ),
19458
19519
  r && /* @__PURE__ */ i.jsx(
19459
19520
  "button",
19460
19521
  {
19461
- onClick: h,
19522
+ onClick: k,
19462
19523
  type: "button",
19463
19524
  className: "taxbit-button",
19464
- children: d("submit")
19525
+ children: l("submit")
19465
19526
  }
19466
19527
  )
19467
19528
  ] })
19468
19529
  ] });
19469
- }, vo = ({ label: e, subLabel: a, name: n, onClick: r }) => {
19470
- const { fields: o, setValue: s, getLocalPrompt: l, getLocalSubPrompt: d } = E(), m = (c) => {
19530
+ }, po = ({ label: e, subLabel: a, name: n, onClick: r }) => {
19531
+ const { fields: o, setValue: s, getLocalPrompt: d, getLocalSubPrompt: l } = E(), m = (c) => {
19471
19532
  r && r(c), s(n, c);
19472
- }, h = o[n], g = (c) => {
19533
+ }, k = o[n], g = (c) => {
19473
19534
  m(c.target.checked ? "yes" : void 0);
19474
19535
  };
19475
- return /* @__PURE__ */ i.jsxs(fe, { children: [
19536
+ return /* @__PURE__ */ i.jsxs(Ie, { children: [
19476
19537
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-checkBox-label", children: [
19477
19538
  /* @__PURE__ */ i.jsx(
19478
19539
  "input",
@@ -19481,59 +19542,59 @@ const vr = {
19481
19542
  id: n,
19482
19543
  name: n,
19483
19544
  "aria-label": n,
19484
- checked: h === "yes",
19545
+ checked: k === "yes",
19485
19546
  onChange: g,
19486
19547
  className: "taxbit-check-box"
19487
19548
  }
19488
19549
  ),
19489
19550
  /* @__PURE__ */ i.jsxs("label", { htmlFor: n, children: [
19490
- e && l(n),
19491
- a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-sub-label", children: d(n) })
19551
+ e && d(n),
19552
+ a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-sub-label", children: l(n) })
19492
19553
  ] })
19493
19554
  ] }),
19494
- /* @__PURE__ */ i.jsx(Ee, { name: n })
19555
+ /* @__PURE__ */ i.jsx(Re, { name: n })
19495
19556
  ] });
19496
19557
  }, fo = (e) => {
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(
19558
+ const { fields: a, setValue: n, getLocalMonth: r } = E(), o = a[e] || "", s = o.split("/")[0] || "", d = o.split("/")[1] || "", l = o.split("/")[2] || "", m = s !== "" ? Kn(
19498
19559
  parseInt(s),
19499
- d !== "" ? parseInt(d) : void 0
19500
- ) : Dn.length, h = xt.map((C) => ({
19501
- ...C,
19502
- label: r(C.value)
19503
- })), g = (C, N, T) => {
19504
- if (!N)
19560
+ l !== "" ? parseInt(l) : void 0
19561
+ ) : Dn.length, k = xt.map((f) => ({
19562
+ ...f,
19563
+ label: r(f.value)
19564
+ })), g = (f, y, B) => {
19565
+ if (!y)
19505
19566
  return !0;
19506
- const y = Kn(
19507
- parseInt(N),
19508
- V(T) ? parseInt(T) : void 0
19567
+ const I = Kn(
19568
+ parseInt(y),
19569
+ U(B) ? parseInt(B) : void 0
19509
19570
  );
19510
- return V(C) && y >= parseInt(C);
19571
+ return U(f) && I >= parseInt(f);
19511
19572
  };
19512
19573
  return {
19513
19574
  mm: s,
19514
- dd: l,
19515
- yyyy: d,
19516
- handleDayChange: (C) => {
19517
- const N = C.target.value;
19518
- n(e, `${s || ""}/${N}/${d || ""}`);
19575
+ dd: d,
19576
+ yyyy: l,
19577
+ handleDayChange: (f) => {
19578
+ const y = f.target.value;
19579
+ n(e, `${s || ""}/${y}/${l || ""}`);
19519
19580
  },
19520
- handleMonthChange: (C) => {
19521
- const N = C.target.value;
19581
+ handleMonthChange: (f) => {
19582
+ const y = f.target.value;
19522
19583
  n(
19523
19584
  e,
19524
- `${N}/${g(l, N, d) ? l : ""}/${d || ""}`
19585
+ `${y}/${g(d, y, l) ? d : ""}/${l || ""}`
19525
19586
  );
19526
19587
  },
19527
- handleYearChange: (C) => {
19528
- const N = C.target.value;
19588
+ handleYearChange: (f) => {
19589
+ const y = f.target.value;
19529
19590
  n(
19530
19591
  e,
19531
- `${s || ""}/${g(l, s, N) ? l : ""}/${N}`
19592
+ `${s || ""}/${g(d, s, y) ? d : ""}/${y}`
19532
19593
  );
19533
19594
  },
19534
19595
  dayOptions: Dn.slice(0, m),
19535
19596
  birthYearOptions: Yt,
19536
- monthOptions: h
19597
+ monthOptions: k
19537
19598
  };
19538
19599
  }, Ao = ({
19539
19600
  name: e,
@@ -19543,15 +19604,15 @@ const vr = {
19543
19604
  const { getLocalPrompt: r } = E(), {
19544
19605
  dd: o,
19545
19606
  mm: s,
19546
- yyyy: l,
19547
- handleDayChange: d,
19607
+ yyyy: d,
19608
+ handleDayChange: l,
19548
19609
  handleMonthChange: m,
19549
- handleYearChange: h,
19610
+ handleYearChange: k,
19550
19611
  dayOptions: g,
19551
19612
  monthOptions: c,
19552
- birthYearOptions: p
19613
+ birthYearOptions: v
19553
19614
  } = fo(e);
19554
- return /* @__PURE__ */ i.jsxs(fe, { className: a, children: [
19615
+ return /* @__PURE__ */ i.jsxs(Ie, { className: a, children: [
19555
19616
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-row-value", children: [
19556
19617
  /* @__PURE__ */ i.jsxs(
19557
19618
  "select",
@@ -19560,69 +19621,69 @@ const vr = {
19560
19621
  value: s,
19561
19622
  name: `${e}Month`,
19562
19623
  "aria-label": `${e}Month`,
19563
- className: se(
19624
+ className: le(
19564
19625
  "taxbit-select",
19565
19626
  "taxbit-select-month",
19566
- P(s) ? "taxbit-placeholder" : ""
19627
+ R(s) ? "taxbit-placeholder" : ""
19567
19628
  ),
19568
19629
  children: [
19569
19630
  /* @__PURE__ */ i.jsx("option", { value: "", disabled: !0, hidden: !0, children: r("month") }),
19570
- c.map((f) => /* @__PURE__ */ i.jsx("option", { value: f.value, children: f.label ? f.label : f.value }, f.value))
19631
+ c.map((A) => /* @__PURE__ */ i.jsx("option", { value: A.value, children: A.label ? A.label : A.value }, A.value))
19571
19632
  ]
19572
19633
  }
19573
19634
  ),
19574
19635
  /* @__PURE__ */ i.jsxs(
19575
19636
  "select",
19576
19637
  {
19577
- onChange: d,
19638
+ onChange: l,
19578
19639
  value: o,
19579
19640
  name: `${e}Day`,
19580
19641
  "aria-label": `${e}Day`,
19581
- className: se(
19642
+ className: le(
19582
19643
  "taxbit-select",
19583
19644
  "taxbit-select-day",
19584
- P(o) ? "taxbit-placeholder" : ""
19645
+ R(o) ? "taxbit-placeholder" : ""
19585
19646
  ),
19586
19647
  children: [
19587
19648
  /* @__PURE__ */ i.jsx("option", { value: "", disabled: !0, hidden: !0, children: r("day") }),
19588
- g.map((f) => /* @__PURE__ */ i.jsx("option", { value: f.value, children: parseInt(f.value) }, f.value))
19649
+ g.map((A) => /* @__PURE__ */ i.jsx("option", { value: A.value, children: parseInt(A.value) }, A.value))
19589
19650
  ]
19590
19651
  }
19591
19652
  ),
19592
19653
  /* @__PURE__ */ i.jsxs(
19593
19654
  "select",
19594
19655
  {
19595
- onChange: h,
19596
- value: l,
19656
+ onChange: k,
19657
+ value: d,
19597
19658
  name: `${e}Year`,
19598
19659
  "aria-label": `${e}Year`,
19599
- className: se(
19660
+ className: le(
19600
19661
  "taxbit-select",
19601
19662
  "taxbit-select-year",
19602
- P(l) ? "taxbit-placeholder" : ""
19663
+ R(d) ? "taxbit-placeholder" : ""
19603
19664
  ),
19604
19665
  children: [
19605
19666
  /* @__PURE__ */ i.jsx("option", { value: "", disabled: !0, hidden: !0, children: r("year") }),
19606
- p.map((f) => /* @__PURE__ */ i.jsx("option", { value: f.value, children: f.value }, f.value))
19667
+ v.map((A) => /* @__PURE__ */ i.jsx("option", { value: A.value, children: A.value }, A.value))
19607
19668
  ]
19608
19669
  }
19609
19670
  )
19610
19671
  ] }),
19611
- /* @__PURE__ */ i.jsx(Ee, { name: e, hint: n })
19672
+ /* @__PURE__ */ i.jsx(Re, { name: e, hint: n })
19612
19673
  ] });
19613
19674
  }, bo = ({ name: e, options: a }) => {
19614
- const { fields: n, setValue: r, hideErrors: o, getLocalOption: s } = E(), l = (h) => {
19615
- r(e, h), o();
19616
- }, d = n[e], m = (h) => {
19617
- l(h.target.value);
19675
+ const { fields: n, setValue: r, hideErrors: o, getLocalOption: s } = E(), d = (k) => {
19676
+ r(e, k), o();
19677
+ }, l = n[e], m = (k) => {
19678
+ d(k.target.value);
19618
19679
  };
19619
- return /* @__PURE__ */ i.jsxs(fe, { children: [
19620
- /* @__PURE__ */ i.jsx("div", { className: "taxbit-radio-buttons", children: a.map((h) => /* @__PURE__ */ i.jsxs(
19680
+ return /* @__PURE__ */ i.jsxs(Ie, { children: [
19681
+ /* @__PURE__ */ i.jsx("div", { className: "taxbit-radio-buttons", children: a.map((k) => /* @__PURE__ */ i.jsxs(
19621
19682
  "div",
19622
19683
  {
19623
- className: se(
19684
+ className: le(
19624
19685
  "taxbit-radio-button",
19625
- h.value === d ? "selected" : !1
19686
+ k.value === l ? "selected" : !1
19626
19687
  ),
19627
19688
  children: [
19628
19689
  /* @__PURE__ */ i.jsx(
@@ -19630,19 +19691,19 @@ const vr = {
19630
19691
  {
19631
19692
  type: "radio",
19632
19693
  name: e,
19633
- "aria-label": `${e}-${h.value}`,
19634
- id: `${e}-${h.value}`,
19635
- value: h.value,
19636
- checked: h.value === d,
19694
+ "aria-label": `${e}-${k.value}`,
19695
+ id: `${e}-${k.value}`,
19696
+ value: k.value,
19697
+ checked: k.value === l,
19637
19698
  onChange: m
19638
19699
  }
19639
19700
  ),
19640
- /* @__PURE__ */ i.jsx("label", { htmlFor: `${e}-${h.value}`, children: h.label || s(h.value) })
19701
+ /* @__PURE__ */ i.jsx("label", { htmlFor: `${e}-${k.value}`, children: k.label || s(k.value) })
19641
19702
  ]
19642
19703
  },
19643
- h.value
19704
+ k.value
19644
19705
  )) }),
19645
- /* @__PURE__ */ i.jsx(Ee, { name: e })
19706
+ /* @__PURE__ */ i.jsx(Re, { name: e })
19646
19707
  ] });
19647
19708
  }, Co = ({
19648
19709
  name: e,
@@ -19652,17 +19713,17 @@ const vr = {
19652
19713
  onChange: o,
19653
19714
  disabled: s
19654
19715
  }) => {
19655
- const { fields: l, setValue: d, getLocalOption: m } = E(), h = l[e], g = (c) => {
19656
- o && o(), d(e, c.target.value);
19716
+ const { fields: d, setValue: l, getLocalOption: m } = E(), k = d[e], g = (c) => {
19717
+ o && o(), l(e, c.target.value);
19657
19718
  };
19658
- return /* @__PURE__ */ i.jsxs(fe, { className: r, children: [
19719
+ return /* @__PURE__ */ i.jsxs(Ie, { className: r, children: [
19659
19720
  /* @__PURE__ */ i.jsxs(
19660
19721
  "select",
19661
19722
  {
19662
19723
  name: e,
19663
19724
  "aria-label": e,
19664
19725
  onChange: g,
19665
- value: h || "",
19726
+ value: k || "",
19666
19727
  className: "taxbit-select",
19667
19728
  disabled: s,
19668
19729
  children: [
@@ -19671,7 +19732,7 @@ const vr = {
19671
19732
  ]
19672
19733
  }
19673
19734
  ),
19674
- /* @__PURE__ */ i.jsx(Ee, { name: e })
19735
+ /* @__PURE__ */ i.jsx(Re, { name: e })
19675
19736
  ] });
19676
19737
  }, Io = ({
19677
19738
  name: e,
@@ -19680,33 +19741,33 @@ const vr = {
19680
19741
  hint: r,
19681
19742
  children: o,
19682
19743
  disabled: s,
19683
- syncName: l
19744
+ syncName: d
19684
19745
  }) => {
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);
19746
+ const { fields: l, setValue: m } = E(), k = l[e] || "", g = (c) => {
19747
+ const v = n ? n(c.target.value) : c.target.value;
19748
+ d && (l[d] === l[e] || !l[d]) && m(d, v), m(e, v);
19688
19749
  };
19689
- return /* @__PURE__ */ i.jsxs(fe, { className: a, children: [
19750
+ return /* @__PURE__ */ i.jsxs(Ie, { className: a, children: [
19690
19751
  /* @__PURE__ */ i.jsx(
19691
19752
  "input",
19692
19753
  {
19693
19754
  type: "text",
19694
19755
  name: e,
19695
19756
  "aria-label": e,
19696
- value: h,
19757
+ value: k,
19697
19758
  onChange: g,
19698
19759
  className: "taxbit-input",
19699
19760
  disabled: s
19700
19761
  }
19701
19762
  ),
19702
- /* @__PURE__ */ i.jsx(Ee, { name: e, hint: r }),
19763
+ /* @__PURE__ */ i.jsx(Re, { name: e, hint: r }),
19703
19764
  o ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-input-status-footer", children: o }) : null
19704
19765
  ] });
19705
19766
  }, So = ({ name: e }) => {
19706
19767
  const { fields: a, setValue: n, getLocalPrompt: r } = E(), o = a[e], s = () => {
19707
19768
  n(e, o === void 0 ? "yes" : void 0);
19708
19769
  };
19709
- return /* @__PURE__ */ i.jsxs(fe, { children: [
19770
+ return /* @__PURE__ */ i.jsxs(Ie, { children: [
19710
19771
  /* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx(
19711
19772
  "button",
19712
19773
  {
@@ -19718,11 +19779,11 @@ const vr = {
19718
19779
  children: r(e)
19719
19780
  }
19720
19781
  ) }),
19721
- /* @__PURE__ */ i.jsx(Ee, { name: e })
19782
+ /* @__PURE__ */ i.jsx(Re, { name: e })
19722
19783
  ] });
19723
19784
  }, No = ({ onClick: e }) => {
19724
- const { getLocalButton: a } = E(), [n, r] = K(!0), o = "hideShowButton", s = () => {
19725
- r((l) => !l), e();
19785
+ const { getLocalButton: a } = E(), [n, r] = W(!0), o = "hideShowButton", s = () => {
19786
+ r((d) => !d), e();
19726
19787
  };
19727
19788
  return /* @__PURE__ */ i.jsx("div", { className: "taxbit-row-actions", children: /* @__PURE__ */ i.jsx(
19728
19789
  "button",
@@ -19731,7 +19792,7 @@ const vr = {
19731
19792
  id: o,
19732
19793
  name: o,
19733
19794
  onClick: s,
19734
- className: se(
19795
+ className: le(
19735
19796
  "taxbit-button",
19736
19797
  "taxbit-row-action-button",
19737
19798
  `taxbit-${n ? "show" : "hide"}-button`
@@ -19752,48 +19813,48 @@ const vr = {
19752
19813
  onChange: r,
19753
19814
  disabled: o,
19754
19815
  show: s = !1,
19755
- ...l
19816
+ ...d
19756
19817
  }) => {
19757
- const [d, m] = K(e), [h, g] = K(
19818
+ const [l, m] = W(e), [k, g] = W(
19758
19819
  Array(e.length + 1).join(a)
19759
- ), c = Un(), [p, f] = K([
19820
+ ), c = Za(), [v, A] = W([
19760
19821
  0,
19761
19822
  0
19762
- ]), C = Un(null);
19763
- Y(() => {
19764
- e !== d && (m(e), g(Array(e.length + 1).join(a)));
19765
- }, [e, a, d]);
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(
19823
+ ]), f = Za(null);
19824
+ _(() => {
19825
+ e !== l && (m(e), g(Array(e.length + 1).join(a)));
19826
+ }, [e, a, l]);
19827
+ const y = (B) => {
19828
+ const I = B.target.selectionEnd === null ? B.target.value.length : B.target.selectionEnd;
19829
+ A([I, I]);
19830
+ const z = B.target.value, p = z.replace(
19770
19831
  new RegExp(
19771
- `${y ? `(^\\${a}{1,${y}})|` : ""}(\\${a}+)`,
19832
+ `${I ? `(^\\${a}{1,${I}})|` : ""}(\\${a}+)`,
19772
19833
  "g"
19773
19834
  ),
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);
19835
+ (J, X, ce) => !ce && I ? l.substring(0, J.length) : l.substring(l.length - J.length)
19836
+ ), G = z.split("").map((J, X) => X === I - 1 ? J : a).join("");
19837
+ g(G), m(p), r && r(p);
19777
19838
  };
19778
- return Y(() => (clearTimeout(c.current), c.current = setTimeout(() => {
19779
- C.current && f([
19780
- C.current.selectionStart,
19781
- C.current.selectionEnd
19782
- ]), g(Array(h.length + 1).join(a));
19839
+ return _(() => (clearTimeout(c.current), c.current = setTimeout(() => {
19840
+ f.current && A([
19841
+ f.current.selectionStart,
19842
+ f.current.selectionEnd
19843
+ ]), g(Array(k.length + 1).join(a));
19783
19844
  }, 1e3), () => {
19784
19845
  clearTimeout(c.current);
19785
- }), [a, h]), Y(() => {
19786
- C.current && (C.current.selectionStart = p[0], C.current.selectionEnd = p[1]);
19787
- }, [p]), /* @__PURE__ */ i.jsx(
19846
+ }), [a, k]), _(() => {
19847
+ f.current && (f.current.selectionStart = v[0], f.current.selectionEnd = v[1]);
19848
+ }, [v]), /* @__PURE__ */ i.jsx(
19788
19849
  "input",
19789
19850
  {
19790
- ...l,
19791
- ref: C,
19851
+ ...d,
19852
+ ref: f,
19792
19853
  type: "text",
19793
19854
  name: n,
19794
19855
  "aria-label": n,
19795
- value: s ? d : h,
19796
- onChange: N,
19856
+ value: s ? l : k,
19857
+ onChange: y,
19797
19858
  disabled: o
19798
19859
  }
19799
19860
  );
@@ -19805,12 +19866,12 @@ const vr = {
19805
19866
  children: o,
19806
19867
  disabled: s
19807
19868
  }) => {
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);
19869
+ const { fields: d, setValue: l } = E(), [m, k] = W(!0), g = d[e] || "", c = (v) => {
19870
+ const A = n ? n(v) : v;
19871
+ l(e, A);
19811
19872
  };
19812
19873
  return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
19813
- /* @__PURE__ */ i.jsxs(fe, { className: a, children: [
19874
+ /* @__PURE__ */ i.jsxs(Ie, { className: a, children: [
19814
19875
  /* @__PURE__ */ i.jsx(
19815
19876
  To,
19816
19877
  {
@@ -19823,10 +19884,10 @@ const vr = {
19823
19884
  disabled: s
19824
19885
  }
19825
19886
  ),
19826
- /* @__PURE__ */ i.jsx(Ee, { name: e, hint: r }),
19887
+ /* @__PURE__ */ i.jsx(Re, { name: e, hint: r }),
19827
19888
  o ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-input-status-footer", children: o }) : null
19828
19889
  ] }),
19829
- /* @__PURE__ */ i.jsx(No, { onClick: () => h((p) => !p) })
19890
+ /* @__PURE__ */ i.jsx(No, { onClick: () => k((v) => !v) })
19830
19891
  ] });
19831
19892
  }, et = [
19832
19893
  "City",
@@ -19841,28 +19902,28 @@ const vr = {
19841
19902
  getRequiredLocalPrompt: r,
19842
19903
  showField: o,
19843
19904
  hideField: s,
19844
- fields: l
19845
- } = E(), d = !!n[`${a}Country`];
19846
- return Y(() => {
19847
- d ? (o(a), et.forEach((m) => {
19905
+ fields: d
19906
+ } = E(), l = !!n[`${a}Country`];
19907
+ return _(() => {
19908
+ l ? (o(a), et.forEach((m) => {
19848
19909
  o(`${a}${m}`);
19849
19910
  })) : (s(a), et.forEach((m) => {
19850
19911
  s(`${a}${m}`);
19851
19912
  }));
19852
- }, [d, o, s, a]), d ? /* @__PURE__ */ i.jsx($a, { label: r(a), onEdit: e, name: a, children: /* @__PURE__ */ i.jsx(
19913
+ }, [l, o, s, a]), l ? /* @__PURE__ */ i.jsx(ei, { label: r(a), onEdit: e, name: a, children: /* @__PURE__ */ i.jsx(
19853
19914
  go,
19854
19915
  {
19855
19916
  address: {
19856
- city: l[`${a}City`],
19857
- state: l[`${a}State`],
19858
- zip: l[`${a}Zip`],
19859
- country: l[`${a}Country`],
19860
- street: l[`${a}Street`],
19861
- street2: l[`${a}Street2`]
19917
+ city: d[`${a}City`],
19918
+ state: d[`${a}State`],
19919
+ zip: d[`${a}Zip`],
19920
+ country: d[`${a}Country`],
19921
+ street: d[`${a}Street`],
19922
+ street2: d[`${a}Street2`]
19862
19923
  }
19863
19924
  }
19864
19925
  ) }) : null;
19865
- }, A = ({
19926
+ }, b = ({
19866
19927
  label: e,
19867
19928
  subLabel: a,
19868
19929
  name: n,
@@ -19871,19 +19932,19 @@ const vr = {
19871
19932
  }) => {
19872
19933
  const {
19873
19934
  visibleFields: s,
19874
- showField: l,
19875
- hideField: d,
19935
+ showField: d,
19936
+ hideField: l,
19876
19937
  getRequiredLocalPrompt: m,
19877
- getLocalSubPrompt: h
19938
+ getLocalSubPrompt: k
19878
19939
  } = E(), g = !!s[n];
19879
- return Y(() => {
19880
- g ? l(n) : d(n);
19881
- }, [g, n, l, d]), g ? /* @__PURE__ */ i.jsx(
19882
- $a,
19940
+ return _(() => {
19941
+ g ? d(n) : l(n);
19942
+ }, [g, n, d, l]), g ? /* @__PURE__ */ i.jsx(
19943
+ ei,
19883
19944
  {
19884
19945
  name: n,
19885
19946
  label: e ? m(n) : void 0,
19886
- subLabel: a ? h(n) : void 0,
19947
+ subLabel: a ? k(n) : void 0,
19887
19948
  onEdit: o,
19888
19949
  children: r
19889
19950
  }
@@ -19893,32 +19954,32 @@ const vr = {
19893
19954
  label: a,
19894
19955
  subLabel: n,
19895
19956
  onClick: r
19896
- }) => /* @__PURE__ */ i.jsx(A, { name: e, children: /* @__PURE__ */ i.jsx(
19897
- vo,
19957
+ }) => /* @__PURE__ */ i.jsx(b, { name: e, children: /* @__PURE__ */ i.jsx(
19958
+ po,
19898
19959
  {
19899
19960
  label: a,
19900
19961
  subLabel: n,
19901
19962
  name: e,
19902
19963
  onClick: r
19903
19964
  }
19904
- ) }), pt = ({
19965
+ ) }), vt = ({
19905
19966
  label: e,
19906
19967
  subLabel: a,
19907
19968
  name: n
19908
19969
  }) => {
19909
- const { showErrors: r, invalidFields: o, getLocalError: s } = E(), l = o[n] ? o[n].map((d) => s(d)) : void 0;
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: [
19911
- d,
19970
+ const { showErrors: r, invalidFields: o, getLocalError: s } = E(), d = o[n] ? o[n].map((l) => s(l)) : void 0;
19971
+ return /* @__PURE__ */ i.jsx(b, { name: n, label: e, subLabel: a, children: r && d && /* @__PURE__ */ i.jsx(Ie, { children: /* @__PURE__ */ i.jsx("div", { className: "taxbit-error-message", children: d.map((l) => /* @__PURE__ */ i.jsxs(nt, { children: [
19972
+ l,
19912
19973
  /* @__PURE__ */ i.jsx("br", {})
19913
- ] }, d)) }) }) });
19914
- }, ve = ({
19974
+ ] }, l)) }) }) });
19975
+ }, Ce = ({
19915
19976
  name: e,
19916
19977
  label: a,
19917
19978
  hint: n,
19918
19979
  subLabel: r,
19919
19980
  onChange: o,
19920
19981
  disabled: s
19921
- }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19982
+ }) => /* @__PURE__ */ i.jsx(b, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19922
19983
  Mo,
19923
19984
  {
19924
19985
  name: e,
@@ -19926,85 +19987,85 @@ const vr = {
19926
19987
  hint: n,
19927
19988
  disabled: s
19928
19989
  }
19929
- ) }), W = ({
19990
+ ) }), V = ({
19930
19991
  name: e,
19931
19992
  label: a,
19932
19993
  subLabel: n,
19933
19994
  options: r
19934
- }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(bo, { name: e, options: r }) }), le = ({
19995
+ }) => /* @__PURE__ */ i.jsx(b, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(bo, { name: e, options: r }) }), de = ({
19935
19996
  name: e,
19936
19997
  label: a,
19937
19998
  options: n,
19938
19999
  subLabel: r,
19939
20000
  addBlank: o,
19940
20001
  onChange: s,
19941
- disabled: l
19942
- }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
20002
+ disabled: d
20003
+ }) => /* @__PURE__ */ i.jsx(b, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19943
20004
  Co,
19944
20005
  {
19945
20006
  name: e,
19946
20007
  options: n,
19947
20008
  addBlank: o,
19948
20009
  onChange: s,
19949
- disabled: l
20010
+ disabled: d
19950
20011
  }
19951
- ) }), _ = ({
20012
+ ) }), Y = ({
19952
20013
  name: e,
19953
20014
  label: a,
19954
20015
  hint: n,
19955
20016
  subLabel: r,
19956
20017
  onChange: o,
19957
20018
  disabled: s,
19958
- syncName: l
19959
- }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
20019
+ syncName: d
20020
+ }) => /* @__PURE__ */ i.jsx(b, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19960
20021
  Io,
19961
20022
  {
19962
20023
  name: e,
19963
20024
  onChange: o,
19964
20025
  hint: n,
19965
20026
  disabled: s,
19966
- syncName: l
20027
+ syncName: d
19967
20028
  }
19968
20029
  ) }), yo = () => {
19969
20030
  const { fields: e, getLocalTitle: a } = E(), { getStepId: n, onPersistAccountHolderData: r, onCancel: o } = ae();
19970
20031
  return /* @__PURE__ */ i.jsxs(
19971
- ke,
20032
+ pe,
19972
20033
  {
19973
20034
  title: a(
19974
- n(sa("AccountHolderClassification"))
20035
+ n(da("AccountHolderClassification"))
19975
20036
  ),
19976
20037
  className: "taxbit-form-account-holder-classification",
19977
20038
  actions: /* @__PURE__ */ i.jsx(ko, {}),
19978
20039
  children: [
19979
20040
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
19980
20041
  /* @__PURE__ */ i.jsx(
19981
- W,
20042
+ V,
19982
20043
  {
19983
20044
  name: "accountHolderUsPerson",
19984
- options: ze,
20045
+ options: Pe,
19985
20046
  label: !0
19986
20047
  }
19987
20048
  ),
19988
20049
  /* @__PURE__ */ i.jsx(
19989
- W,
20050
+ V,
19990
20051
  {
19991
20052
  name: "accountHolderIsEuResident",
19992
- options: ze,
20053
+ options: Pe,
19993
20054
  label: !0,
19994
20055
  subLabel: !0
19995
20056
  }
19996
20057
  ),
19997
20058
  /* @__PURE__ */ i.jsx(
19998
- W,
20059
+ V,
19999
20060
  {
20000
20061
  name: "accountHolderIsIndividual",
20001
- options: ze,
20062
+ options: Pe,
20002
20063
  label: !0,
20003
20064
  subLabel: !0
20004
20065
  }
20005
20066
  ),
20006
20067
  /* @__PURE__ */ i.jsx(
20007
- W,
20068
+ V,
20008
20069
  {
20009
20070
  name: "accountHolderUsAccountType",
20010
20071
  options: ot,
@@ -20012,33 +20073,33 @@ const vr = {
20012
20073
  }
20013
20074
  ),
20014
20075
  /* @__PURE__ */ i.jsx(
20015
- W,
20076
+ V,
20016
20077
  {
20017
20078
  name: "accountHolderUsSmllcElection",
20018
- options: ze,
20079
+ options: Pe,
20019
20080
  label: !0,
20020
20081
  subLabel: !0
20021
20082
  }
20022
20083
  ),
20023
20084
  /* @__PURE__ */ i.jsx(
20024
- W,
20085
+ V,
20025
20086
  {
20026
20087
  name: "accountHolderUsLlcClassification",
20027
- options: Xa,
20088
+ options: $a,
20028
20089
  label: !0
20029
20090
  }
20030
20091
  ),
20031
- /* @__PURE__ */ i.jsx(_, { name: "accountHolderUsOtherClassification", label: !0 }),
20092
+ /* @__PURE__ */ i.jsx(Y, { name: "accountHolderUsOtherClassification", label: !0 }),
20032
20093
  /* @__PURE__ */ i.jsx(
20033
- W,
20094
+ V,
20034
20095
  {
20035
20096
  name: "accountHolderUsTrustEstateEin",
20036
- options: ze,
20097
+ options: Pe,
20037
20098
  label: !0
20038
20099
  }
20039
20100
  ),
20040
20101
  /* @__PURE__ */ i.jsx(
20041
- W,
20102
+ V,
20042
20103
  {
20043
20104
  name: "accountHolderForeignAccountType",
20044
20105
  options: rt,
@@ -20046,24 +20107,24 @@ const vr = {
20046
20107
  }
20047
20108
  ),
20048
20109
  /* @__PURE__ */ i.jsx(
20049
- W,
20110
+ V,
20050
20111
  {
20051
20112
  name: "accountHolderForeignOtherClassification",
20052
- options: _a,
20113
+ options: Qa,
20053
20114
  label: !0
20054
20115
  }
20055
20116
  ),
20056
20117
  /* @__PURE__ */ i.jsx(
20057
- W,
20118
+ V,
20058
20119
  {
20059
20120
  name: "accountHolderForeignTrustClassification",
20060
- options: Qa,
20121
+ options: Xa,
20061
20122
  label: !0
20062
20123
  }
20063
20124
  )
20064
20125
  ] }),
20065
20126
  /* @__PURE__ */ i.jsx(
20066
- he,
20127
+ fe,
20067
20128
  {
20068
20129
  onCancel: o,
20069
20130
  onNext: () => r(e)
@@ -20072,7 +20133,7 @@ const vr = {
20072
20133
  ]
20073
20134
  }
20074
20135
  );
20075
- }, jo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(yo, {}) }), Ga = ({
20136
+ }, jo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(yo, {}) }), Ga = ({
20076
20137
  prompt: e,
20077
20138
  prefix: a,
20078
20139
  showIf: n = !0
@@ -20081,42 +20142,42 @@ const vr = {
20081
20142
  fields: r,
20082
20143
  hideErrors: o,
20083
20144
  getLocalCountry: s,
20084
- getLocalCaProvince: l,
20085
- getLocalUsState: d
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)),
20145
+ getLocalCaProvince: d,
20146
+ getLocalUsState: l
20147
+ } = E(), m = r[`${a}Country`], k = ee(
20148
+ () => sa.map((v) => ({
20149
+ ...v,
20150
+ label: s(v.value)
20151
+ })).sort((v, A) => v.label.localeCompare(A.label)),
20091
20152
  [s]
20092
20153
  ), g = ee(
20093
- () => Jt.map((p) => ({
20094
- ...p,
20095
- label: d(p.value)
20096
- })).sort((p, f) => p.label.localeCompare(f.label)),
20097
- [d]
20098
- ), c = ee(
20099
- () => Mt.map((p) => ({
20100
- ...p,
20101
- label: l(p.value)
20102
- })).sort((p, f) => p.label.localeCompare(f.label)),
20154
+ () => Jt.map((v) => ({
20155
+ ...v,
20156
+ label: l(v.value)
20157
+ })).sort((v, A) => v.label.localeCompare(A.label)),
20103
20158
  [l]
20159
+ ), c = ee(
20160
+ () => Mt.map((v) => ({
20161
+ ...v,
20162
+ label: d(v.value)
20163
+ })).sort((v, A) => v.label.localeCompare(A.label)),
20164
+ [d]
20104
20165
  );
20105
- return /* @__PURE__ */ i.jsxs(oe, { title: e, showIf: n, children: [
20166
+ return /* @__PURE__ */ i.jsxs(se, { title: e, showIf: n, children: [
20106
20167
  /* @__PURE__ */ i.jsx(
20107
- le,
20168
+ de,
20108
20169
  {
20109
20170
  name: `${a}Country`,
20110
- options: h,
20171
+ options: k,
20111
20172
  onChange: o,
20112
20173
  label: !0
20113
20174
  }
20114
20175
  ),
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(
20119
- le,
20176
+ /* @__PURE__ */ i.jsx(Y, { name: `${a}Street`, label: !0 }),
20177
+ /* @__PURE__ */ i.jsx(Y, { name: `${a}Street2`, label: !0 }),
20178
+ /* @__PURE__ */ i.jsx(Y, { name: `${a}City`, label: !0 }),
20179
+ m !== "CA" && m !== "US" ? /* @__PURE__ */ i.jsx(Y, { label: !0, name: `${a}State` }) : /* @__PURE__ */ i.jsx(
20180
+ de,
20120
20181
  {
20121
20182
  name: `${a}State`,
20122
20183
  className: "taxbit-state",
@@ -20124,51 +20185,51 @@ const vr = {
20124
20185
  label: !0
20125
20186
  }
20126
20187
  ),
20127
- /* @__PURE__ */ i.jsx(_, { name: `${a}Zip`, label: !0 })
20188
+ /* @__PURE__ */ i.jsx(Y, { name: `${a}Zip`, label: !0 })
20128
20189
  ] });
20129
20190
  }, Oo = ({
20130
20191
  name: e,
20131
20192
  label: a,
20132
20193
  subLabel: n
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) => ({
20194
+ }) => /* @__PURE__ */ i.jsx(b, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(Ao, { name: e }) }), zo = () => {
20195
+ const { onPersistCollectedData: e, goBack: a, onCancel: n, isW9: r, isW8: o, getStepId: s } = ae(), { fields: d, getLocalCountry: l, getLocalTitle: m } = E(), k = ee(
20196
+ () => sa.map((g) => ({
20136
20197
  ...g,
20137
- label: d(g.value)
20198
+ label: l(g.value)
20138
20199
  })).sort((g, c) => g.label.localeCompare(c.label)),
20139
- [d]
20200
+ [l]
20140
20201
  );
20141
20202
  return /* @__PURE__ */ i.jsxs(
20142
- ke,
20203
+ pe,
20143
20204
  {
20144
- title: m(s(sa("AccountHolderContact"))),
20205
+ title: m(s(da("AccountHolderContact"))),
20145
20206
  className: "taxbit-form-account-holder-contact-information",
20146
20207
  children: [
20147
20208
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20148
20209
  /* @__PURE__ */ i.jsx(
20149
- le,
20210
+ de,
20150
20211
  {
20151
20212
  label: !0,
20152
20213
  name: "accountHolderCountryOfCitizenship",
20153
- options: h
20214
+ options: k
20154
20215
  }
20155
20216
  ),
20156
20217
  /* @__PURE__ */ i.jsx(
20157
- _,
20218
+ Y,
20158
20219
  {
20159
20220
  label: !0,
20160
20221
  name: "accountHolderName",
20161
20222
  syncName: "accountHolderFinancialAccountName"
20162
20223
  }
20163
20224
  ),
20164
- /* @__PURE__ */ i.jsx(_, { label: !0, name: "accountHolderDbaName" }),
20225
+ /* @__PURE__ */ i.jsx(Y, { label: !0, name: "accountHolderDbaName" }),
20165
20226
  /* @__PURE__ */ i.jsx(Oo, { name: "accountHolderDateOfBirth", label: !0 }),
20166
20227
  /* @__PURE__ */ i.jsx(
20167
20228
  Ga,
20168
20229
  {
20169
20230
  prompt: m("primaryAddress"),
20170
20231
  prefix: "accountHolderAddress",
20171
- showIf: l.accountHolderIsEuResident === "yes" || o || r
20232
+ showIf: d.accountHolderIsEuResident === "yes" || o || r
20172
20233
  }
20173
20234
  ),
20174
20235
  /* @__PURE__ */ i.jsx(D, { name: "accountHolderMailingAddressIsDifferent", label: !0 }),
@@ -20177,61 +20238,61 @@ const vr = {
20177
20238
  {
20178
20239
  prompt: m("mailingAddress"),
20179
20240
  prefix: "accountHolderMailingAddress",
20180
- showIf: l.accountHolderMailingAddressIsDifferent === "yes"
20241
+ showIf: d.accountHolderMailingAddressIsDifferent === "yes"
20181
20242
  }
20182
20243
  )
20183
20244
  ] }),
20184
20245
  /* @__PURE__ */ i.jsx(
20185
- he,
20246
+ fe,
20186
20247
  {
20187
20248
  onCancel: n,
20188
20249
  onBack: a,
20189
- onNext: () => e(l)
20250
+ onNext: () => e(d)
20190
20251
  }
20191
20252
  )
20192
20253
  ]
20193
20254
  }
20194
20255
  );
20195
- }, Eo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(zo, {}) }), ta = ({
20256
+ }, Eo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(zo, {}) }), oa = ({
20196
20257
  index: e,
20197
20258
  showIf: a = !0,
20198
20259
  onShow: n,
20199
20260
  more: r,
20200
20261
  countryOptions: o
20201
20262
  }) => {
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 = [
20263
+ const { fields: s, getLocalTitle: d, hideField: l, clearIfNotRequired: m } = E(), k = `accountHolderTaxResidenceCountry${e}`, g = `accountHolderTaxResidenceForeignTin${e}`, c = `accountHolderTaxResidenceForeignTin${e}IsNotRequired`, v = `accountHolderShowTaxResidence${e + 1}`, A = `taxResidence${e}`, y = [
20203
20264
  s.accountHolderTaxResidenceCountry1,
20204
20265
  s.accountHolderTaxResidenceCountry2,
20205
20266
  s.accountHolderTaxResidenceCountry3,
20206
20267
  s.accountHolderTaxResidenceCountry4,
20207
20268
  s.accountHolderTaxResidenceCountry5
20208
20269
  ].filter(
20209
- (y) => y !== s[`accountHolderTaxResidenceCountry${e}`]
20210
- ), T = o.filter(
20211
- (y) => !N.includes(y.value)
20270
+ (I) => I !== s[`accountHolderTaxResidenceCountry${e}`]
20271
+ ), B = o.filter(
20272
+ (I) => !y.includes(I.value)
20212
20273
  );
20213
- return Y(() => {
20214
- a ? n && n() : (d(h), d(g), d(c), d(p));
20274
+ return _(() => {
20275
+ a ? n && n() : (l(k), l(g), l(c), l(v));
20215
20276
  }, [
20216
- h,
20217
- d,
20277
+ k,
20278
+ l,
20218
20279
  c,
20219
20280
  n,
20220
20281
  a,
20221
20282
  g,
20222
- p
20223
- ]), a ? /* @__PURE__ */ i.jsxs(oe, { title: l(f), showIf: a, children: [
20283
+ v
20284
+ ]), a ? /* @__PURE__ */ i.jsxs(se, { title: d(A), showIf: a, children: [
20224
20285
  /* @__PURE__ */ i.jsx(
20225
- le,
20286
+ de,
20226
20287
  {
20227
- name: h,
20288
+ name: k,
20228
20289
  className: "taxbit-country",
20229
- options: T,
20290
+ options: B,
20230
20291
  label: !0
20231
20292
  }
20232
20293
  ),
20233
20294
  /* @__PURE__ */ i.jsx(
20234
- ve,
20295
+ Ce,
20235
20296
  {
20236
20297
  name: g,
20237
20298
  label: !0,
@@ -20246,39 +20307,39 @@ const vr = {
20246
20307
  onClick: m(g)
20247
20308
  }
20248
20309
  ),
20249
- r ? /* @__PURE__ */ i.jsx($a, { children: /* @__PURE__ */ i.jsx(So, { name: p }) }) : null
20310
+ r ? /* @__PURE__ */ i.jsx(ei, { children: /* @__PURE__ */ i.jsx(So, { name: v }) }) : null
20250
20311
  ] }) : null;
20251
20312
  }, Bo = () => {
20252
20313
  const { onPersistCollectedData: e, goBack: a, onCancel: n, getStepId: r } = ae(), {
20253
20314
  fields: o,
20254
20315
  getLocalTitle: s,
20255
- getLocalSubTitle: l,
20256
- getLocalCountry: d,
20316
+ getLocalSubTitle: d,
20317
+ getLocalCountry: l,
20257
20318
  clearIfNotRequired: m,
20258
- setValue: h
20319
+ setValue: k
20259
20320
  } = E(), g = ee(
20260
- () => jt.map((p) => ({
20261
- ...p,
20262
- label: d(p.value)
20263
- })).sort((p, f) => p.label.localeCompare(f.label)),
20264
- [d]
20321
+ () => jt.map((v) => ({
20322
+ ...v,
20323
+ label: l(v.value)
20324
+ })).sort((v, A) => v.label.localeCompare(A.label)),
20325
+ [l]
20265
20326
  ), c = ee(
20266
- () => ra.map((p) => ({
20267
- ...p,
20268
- label: d(p.value)
20269
- })).sort((p, f) => p.label.localeCompare(f.label)),
20270
- [d]
20327
+ () => sa.map((v) => ({
20328
+ ...v,
20329
+ label: l(v.value)
20330
+ })).sort((v, A) => v.label.localeCompare(A.label)),
20331
+ [l]
20271
20332
  );
20272
20333
  return /* @__PURE__ */ i.jsxs(
20273
- ke,
20334
+ pe,
20274
20335
  {
20275
- title: s(r(sa("AccountHolderTax"))),
20336
+ title: s(r(da("AccountHolderTax"))),
20276
20337
  className: "taxbit-form-account-holder-tax-information",
20277
20338
  children: [
20278
20339
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20279
- /* @__PURE__ */ i.jsx(ve, { name: "accountHolderUsTin", label: !0 }),
20340
+ /* @__PURE__ */ i.jsx(Ce, { name: "accountHolderUsTin", label: !0 }),
20280
20341
  /* @__PURE__ */ i.jsx(
20281
- ve,
20342
+ Ce,
20282
20343
  {
20283
20344
  name: "accountHolderForeignTin",
20284
20345
  disabled: o.accountHolderForeignTinIsNotRequired === "yes",
@@ -20294,17 +20355,17 @@ const vr = {
20294
20355
  }
20295
20356
  ),
20296
20357
  /* @__PURE__ */ i.jsx(
20297
- ve,
20358
+ Ce,
20298
20359
  {
20299
20360
  name: "accountHolderFinancialAccountIdentifier",
20300
20361
  label: !0,
20301
20362
  subLabel: !0
20302
20363
  }
20303
20364
  ),
20304
- /* @__PURE__ */ i.jsx(_, { name: "accountHolderFinancialAccountName", label: !0, subLabel: !0 }),
20305
- /* @__PURE__ */ i.jsxs(oe, { showIf: o.accountHolderIsEuResident === "yes", children: [
20365
+ /* @__PURE__ */ i.jsx(Y, { name: "accountHolderFinancialAccountName", label: !0, subLabel: !0 }),
20366
+ /* @__PURE__ */ i.jsxs(se, { showIf: o.accountHolderIsEuResident === "yes", children: [
20306
20367
  /* @__PURE__ */ i.jsx(
20307
- le,
20368
+ de,
20308
20369
  {
20309
20370
  name: "accountHolderVatCountry",
20310
20371
  className: "taxbit-country",
@@ -20314,7 +20375,7 @@ const vr = {
20314
20375
  }
20315
20376
  ),
20316
20377
  /* @__PURE__ */ i.jsx(
20317
- ve,
20378
+ Ce,
20318
20379
  {
20319
20380
  name: "accountHolderVatIdentificationNumber",
20320
20381
  disabled: o.accountHolderVatIsNotRequired === "yes",
@@ -20334,9 +20395,9 @@ const vr = {
20334
20395
  }
20335
20396
  )
20336
20397
  ] }),
20337
- /* @__PURE__ */ i.jsxs(oe, { showIf: o.accountHolderIsIndividual === "no", children: [
20398
+ /* @__PURE__ */ i.jsxs(se, { showIf: o.accountHolderIsIndividual === "no", children: [
20338
20399
  /* @__PURE__ */ i.jsx(
20339
- le,
20400
+ de,
20340
20401
  {
20341
20402
  name: "accountHolderBusinessRegistrationCountry",
20342
20403
  className: "taxbit-country",
@@ -20345,7 +20406,7 @@ const vr = {
20345
20406
  }
20346
20407
  ),
20347
20408
  /* @__PURE__ */ i.jsx(
20348
- ve,
20409
+ Ce,
20349
20410
  {
20350
20411
  name: "accountHolderBusinessRegistrationNumber",
20351
20412
  label: !0
@@ -20353,20 +20414,20 @@ const vr = {
20353
20414
  )
20354
20415
  ] }),
20355
20416
  /* @__PURE__ */ i.jsxs(
20356
- oe,
20417
+ se,
20357
20418
  {
20358
20419
  title: s("taxResidences"),
20359
- subTitle: l("taxResidences"),
20420
+ subTitle: d("taxResidences"),
20360
20421
  showIf: o.accountHolderIsIndividual !== void 0,
20361
20422
  children: [
20362
- /* @__PURE__ */ i.jsx(pt, { name: "accountHolderTaxResidences" }),
20423
+ /* @__PURE__ */ i.jsx(vt, { name: "accountHolderTaxResidences" }),
20363
20424
  /* @__PURE__ */ i.jsx(
20364
- ta,
20425
+ oa,
20365
20426
  {
20366
20427
  index: 1,
20367
20428
  showIf: o.accountHolderIsIndividual !== void 0,
20368
20429
  onShow: () => {
20369
- o.accountHolderTaxResidenceCountry1 === void 0 && h(
20430
+ o.accountHolderTaxResidenceCountry1 === void 0 && k(
20370
20431
  "accountHolderTaxResidenceCountry1",
20371
20432
  o.accountHolderAddressCountry
20372
20433
  );
@@ -20376,7 +20437,7 @@ const vr = {
20376
20437
  }
20377
20438
  ),
20378
20439
  /* @__PURE__ */ i.jsx(
20379
- ta,
20440
+ oa,
20380
20441
  {
20381
20442
  index: 2,
20382
20443
  showIf: o.accountHolderShowTaxResidence2 === "yes",
@@ -20385,7 +20446,7 @@ const vr = {
20385
20446
  }
20386
20447
  ),
20387
20448
  /* @__PURE__ */ i.jsx(
20388
- ta,
20449
+ oa,
20389
20450
  {
20390
20451
  index: 3,
20391
20452
  showIf: o.accountHolderShowTaxResidence3 === "yes",
@@ -20394,7 +20455,7 @@ const vr = {
20394
20455
  }
20395
20456
  ),
20396
20457
  /* @__PURE__ */ i.jsx(
20397
- ta,
20458
+ oa,
20398
20459
  {
20399
20460
  index: 4,
20400
20461
  showIf: o.accountHolderShowTaxResidence4 === "yes",
@@ -20403,7 +20464,7 @@ const vr = {
20403
20464
  }
20404
20465
  ),
20405
20466
  /* @__PURE__ */ i.jsx(
20406
- ta,
20467
+ oa,
20407
20468
  {
20408
20469
  index: 5,
20409
20470
  showIf: o.accountHolderShowTaxResidence5 === "yes",
@@ -20415,7 +20476,7 @@ const vr = {
20415
20476
  )
20416
20477
  ] }),
20417
20478
  /* @__PURE__ */ i.jsx(
20418
- he,
20479
+ fe,
20419
20480
  {
20420
20481
  onCancel: n,
20421
20482
  onBack: a,
@@ -20425,23 +20486,23 @@ const vr = {
20425
20486
  ]
20426
20487
  }
20427
20488
  );
20428
- }, Ro = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Bo, {}) }), Po = () => {
20489
+ }, Po = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(Bo, {}) }), Ro = () => {
20429
20490
  const { getLocalCountry: e, getLocalTitle: a, getLocalSubPrompt: n } = E(), r = ee(
20430
- () => ra.map((o) => ({
20491
+ () => sa.map((o) => ({
20431
20492
  ...o,
20432
20493
  label: e(o.value)
20433
20494
  })).sort((o, s) => o.label.localeCompare(s.label)),
20434
20495
  [e]
20435
20496
  );
20436
20497
  return /* @__PURE__ */ i.jsxs(
20437
- oe,
20498
+ se,
20438
20499
  {
20439
20500
  title: a("placeOfBirth"),
20440
20501
  subTitle: n("accountHolderCityOfBirth"),
20441
20502
  children: [
20442
- /* @__PURE__ */ i.jsx(_, { label: !0, name: "accountHolderCityOfBirth" }),
20503
+ /* @__PURE__ */ i.jsx(Y, { label: !0, name: "accountHolderCityOfBirth" }),
20443
20504
  /* @__PURE__ */ i.jsx(
20444
- le,
20505
+ de,
20445
20506
  {
20446
20507
  label: !0,
20447
20508
  name: "accountHolderCountryOfBirth",
@@ -20454,16 +20515,16 @@ const vr = {
20454
20515
  }, wo = () => {
20455
20516
  const { onPersistCollectedData: e, goBack: a, onCancel: n, getStepId: r } = ae(), { fields: o, getLocalTitle: s } = E();
20456
20517
  return /* @__PURE__ */ i.jsxs(
20457
- ke,
20518
+ pe,
20458
20519
  {
20459
20520
  title: s(
20460
- r(sa("AccountHolderTaxClarification"))
20521
+ r(da("AccountHolderTaxClarification"))
20461
20522
  ),
20462
20523
  className: "taxbit-form-account-holder-tax-clarification",
20463
20524
  children: [
20464
- /* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(Po, {}) }),
20525
+ /* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(Ro, {}) }),
20465
20526
  /* @__PURE__ */ i.jsx(
20466
- he,
20527
+ fe,
20467
20528
  {
20468
20529
  onCancel: n,
20469
20530
  onBack: a,
@@ -20473,39 +20534,39 @@ const vr = {
20473
20534
  ]
20474
20535
  }
20475
20536
  );
20476
- }, Ho = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(wo, {}) }), Lo = () => {
20537
+ }, Ho = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(wo, {}) }), Lo = () => {
20477
20538
  const { getLocalText: e } = E();
20478
20539
  return /* @__PURE__ */ i.jsx("div", { children: e("interviewIsComplete") });
20479
- }, Go = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Lo, {}) }), xo = () => {
20540
+ }, Go = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(Lo, {}) }), xo = () => {
20480
20541
  const { onPersistCollectedData: e, goBack: a, getStepId: n } = ae(), { fields: r, getLocalTitle: o } = E();
20481
20542
  return /* @__PURE__ */ i.jsxs(
20482
- ke,
20543
+ pe,
20483
20544
  {
20484
- title: o(n(sa("Exemptions"))),
20545
+ title: o(n(da("Exemptions"))),
20485
20546
  className: "taxbit-form-account-holder-exemptions",
20486
20547
  children: [
20487
20548
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20488
- /* @__PURE__ */ i.jsx(le, { name: "exemptFatcaCode", options: Et, label: !0 }),
20489
- /* @__PURE__ */ i.jsx(le, { name: "exemptPayeeCode", options: Dt, label: !0 })
20549
+ /* @__PURE__ */ i.jsx(de, { name: "exemptFatcaCode", options: Et, label: !0 }),
20550
+ /* @__PURE__ */ i.jsx(de, { name: "exemptPayeeCode", options: Dt, label: !0 })
20490
20551
  ] }),
20491
- /* @__PURE__ */ i.jsx(he, { onBack: a, onNext: () => e(r) })
20552
+ /* @__PURE__ */ i.jsx(fe, { onBack: a, onNext: () => e(r) })
20492
20553
  ]
20493
20554
  }
20494
20555
  );
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) => ({
20497
- ...l,
20498
- label: n(`usPerson_${l.value}`)
20556
+ }, Uo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(xo, {}) }), Do = () => {
20557
+ const { fields: e, getLocalTitle: a, getLocalOption: n } = E(), { onPersistCollectedData: r, goBack: o } = ae(), s = Pe.map((d) => ({
20558
+ ...d,
20559
+ label: n(`usPerson_${d.value}`)
20499
20560
  }));
20500
20561
  return /* @__PURE__ */ i.jsxs(
20501
- ke,
20562
+ pe,
20502
20563
  {
20503
20564
  title: a("regardedOwnerClassification"),
20504
- className: `taxbit-form-${oa("regardedOwnerClassification")}`,
20565
+ className: `taxbit-form-${la("regardedOwnerClassification")}`,
20505
20566
  children: [
20506
20567
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20507
20568
  /* @__PURE__ */ i.jsx(
20508
- W,
20569
+ V,
20509
20570
  {
20510
20571
  name: "regardedOwnerUsPerson",
20511
20572
  options: s,
@@ -20513,7 +20574,7 @@ const vr = {
20513
20574
  }
20514
20575
  ),
20515
20576
  /* @__PURE__ */ i.jsx(
20516
- W,
20577
+ V,
20517
20578
  {
20518
20579
  name: "regardedOwnerUsAccountType",
20519
20580
  options: Vt,
@@ -20521,76 +20582,76 @@ const vr = {
20521
20582
  }
20522
20583
  ),
20523
20584
  /* @__PURE__ */ i.jsx(
20524
- W,
20585
+ V,
20525
20586
  {
20526
20587
  name: "regardedOwnerForeignAccountType",
20527
- options: Pt,
20588
+ options: Rt,
20528
20589
  label: !0
20529
20590
  }
20530
20591
  ),
20531
20592
  /* @__PURE__ */ i.jsx(
20532
- W,
20593
+ V,
20533
20594
  {
20534
20595
  name: "regardedOwnerUsLlcClassification",
20535
- options: Xa,
20596
+ options: $a,
20536
20597
  label: !0
20537
20598
  }
20538
20599
  ),
20539
- /* @__PURE__ */ i.jsx(_, { name: "regardedOwnerUsOtherClassification", label: !0 }),
20600
+ /* @__PURE__ */ i.jsx(Y, { name: "regardedOwnerUsOtherClassification", label: !0 }),
20540
20601
  /* @__PURE__ */ i.jsx(
20541
- W,
20602
+ V,
20542
20603
  {
20543
20604
  name: "regardedOwnerUsTrustEstateEin",
20544
- options: ze,
20605
+ options: Pe,
20545
20606
  label: !0
20546
20607
  }
20547
20608
  ),
20548
20609
  /* @__PURE__ */ i.jsx(
20549
- W,
20610
+ V,
20550
20611
  {
20551
20612
  name: "regardedOwnerForeignOtherClassification",
20552
- options: _a,
20613
+ options: Qa,
20553
20614
  label: !0
20554
20615
  }
20555
20616
  ),
20556
20617
  /* @__PURE__ */ i.jsx(
20557
- W,
20618
+ V,
20558
20619
  {
20559
20620
  name: "regardedOwnerForeignTrustClassification",
20560
- options: Qa,
20621
+ options: Xa,
20561
20622
  label: !0
20562
20623
  }
20563
20624
  )
20564
20625
  ] }),
20565
- /* @__PURE__ */ i.jsx(he, { onBack: o, onNext: () => r(e) })
20626
+ /* @__PURE__ */ i.jsx(fe, { onBack: o, onNext: () => r(e) })
20566
20627
  ]
20567
20628
  }
20568
20629
  );
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(
20571
- () => ra.map((d) => ({
20572
- ...d,
20573
- label: o(d.value)
20574
- })).sort((d, m) => d.label.localeCompare(m.label)),
20630
+ }, Fo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(Do, {}) }), Ko = () => {
20631
+ const { onPersistCollectedData: e, goBack: a, onCancel: n } = ae(), { fields: r, getLocalCountry: o, getLocalTitle: s } = E(), d = ee(
20632
+ () => sa.map((l) => ({
20633
+ ...l,
20634
+ label: o(l.value)
20635
+ })).sort((l, m) => l.label.localeCompare(m.label)),
20575
20636
  [o]
20576
20637
  );
20577
20638
  return /* @__PURE__ */ i.jsxs(
20578
- ke,
20639
+ pe,
20579
20640
  {
20580
20641
  title: s("regardedOwnerContactInformation"),
20581
- className: `taxbit-form-${oa("regardedOwnerContactInformation")}`,
20642
+ className: `taxbit-form-${la("regardedOwnerContactInformation")}`,
20582
20643
  children: [
20583
20644
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20584
20645
  /* @__PURE__ */ i.jsx(
20585
- le,
20646
+ de,
20586
20647
  {
20587
20648
  label: !0,
20588
20649
  name: "regardedOwnerCountryOfCitizenship",
20589
- options: l
20650
+ options: d
20590
20651
  }
20591
20652
  ),
20592
- /* @__PURE__ */ i.jsx(_, { label: !0, name: "regardedOwnerName" }),
20593
- /* @__PURE__ */ i.jsx(_, { label: !0, name: "regardedOwnerDbaName" }),
20653
+ /* @__PURE__ */ i.jsx(Y, { label: !0, name: "regardedOwnerName" }),
20654
+ /* @__PURE__ */ i.jsx(Y, { label: !0, name: "regardedOwnerDbaName" }),
20594
20655
  /* @__PURE__ */ i.jsx(
20595
20656
  Ga,
20596
20657
  {
@@ -20609,7 +20670,7 @@ const vr = {
20609
20670
  )
20610
20671
  ] }),
20611
20672
  /* @__PURE__ */ i.jsx(
20612
- he,
20673
+ fe,
20613
20674
  {
20614
20675
  onCancel: n,
20615
20676
  onBack: a,
@@ -20619,17 +20680,17 @@ const vr = {
20619
20680
  ]
20620
20681
  }
20621
20682
  );
20622
- }, Vo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Ko, {}) }), Wo = () => {
20683
+ }, Vo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(Ko, {}) }), Wo = () => {
20623
20684
  const { onPersistCollectedData: e, goBack: a } = ae(), { fields: n, getLocalTitle: r, clearIfNotRequired: o } = E();
20624
20685
  return /* @__PURE__ */ i.jsxs(
20625
- ke,
20686
+ pe,
20626
20687
  {
20627
20688
  title: r("regardedOwnerTaxInformation"),
20628
- className: `taxbit-form-${oa("regardedOwnerTaxInformation")}`,
20689
+ className: `taxbit-form-${la("regardedOwnerTaxInformation")}`,
20629
20690
  children: [
20630
20691
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20631
- /* @__PURE__ */ i.jsx(ve, { name: "regardedOwnerUsTin", label: !0 }),
20632
- /* @__PURE__ */ i.jsx(ve, { name: "regardedOwnerForeignTin", label: !0 }),
20692
+ /* @__PURE__ */ i.jsx(Ce, { name: "regardedOwnerUsTin", label: !0 }),
20693
+ /* @__PURE__ */ i.jsx(Ce, { name: "regardedOwnerForeignTin", label: !0 }),
20633
20694
  /* @__PURE__ */ i.jsx(
20634
20695
  D,
20635
20696
  {
@@ -20639,11 +20700,11 @@ const vr = {
20639
20700
  }
20640
20701
  )
20641
20702
  ] }),
20642
- /* @__PURE__ */ i.jsx(he, { onBack: a, onNext: () => e(n) })
20703
+ /* @__PURE__ */ i.jsx(fe, { onBack: a, onNext: () => e(n) })
20643
20704
  ]
20644
20705
  }
20645
20706
  );
20646
- }, Jo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Wo, {}) }), $ = ({ text: e }) => {
20707
+ }, Jo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(Wo, {}) }), $ = ({ text: e }) => {
20647
20708
  const n = ((r) => {
20648
20709
  if (!r)
20649
20710
  return "";
@@ -20657,12 +20718,12 @@ const vr = {
20657
20718
  getLocalOption: r,
20658
20719
  getLocalCountry: o,
20659
20720
  getLocalText: s,
20660
- visibleFields: l
20721
+ visibleFields: d
20661
20722
  } = E();
20662
20723
  return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
20663
- /* @__PURE__ */ i.jsxs(oe, { title: n("accountHolder"), children: [
20724
+ /* @__PURE__ */ i.jsxs(se, { title: n("accountHolder"), children: [
20664
20725
  /* @__PURE__ */ i.jsx(
20665
- A,
20726
+ b,
20666
20727
  {
20667
20728
  label: !0,
20668
20729
  onEdit: () => a("AccountHolderClassification"),
@@ -20671,7 +20732,7 @@ const vr = {
20671
20732
  }
20672
20733
  ),
20673
20734
  /* @__PURE__ */ i.jsx(
20674
- A,
20735
+ b,
20675
20736
  {
20676
20737
  label: !0,
20677
20738
  onEdit: () => a("AccountHolderClassification"),
@@ -20680,7 +20741,7 @@ const vr = {
20680
20741
  }
20681
20742
  ),
20682
20743
  /* @__PURE__ */ i.jsx(
20683
- A,
20744
+ b,
20684
20745
  {
20685
20746
  label: !0,
20686
20747
  onEdit: () => a("AccountHolderClassification"),
@@ -20689,7 +20750,7 @@ const vr = {
20689
20750
  }
20690
20751
  ),
20691
20752
  /* @__PURE__ */ i.jsx(
20692
- A,
20753
+ b,
20693
20754
  {
20694
20755
  label: !0,
20695
20756
  onEdit: () => a("AccountHolderClassification"),
@@ -20698,7 +20759,7 @@ const vr = {
20698
20759
  }
20699
20760
  ),
20700
20761
  /* @__PURE__ */ i.jsx(
20701
- A,
20762
+ b,
20702
20763
  {
20703
20764
  label: !0,
20704
20765
  onEdit: () => a("AccountHolderClassification"),
@@ -20707,7 +20768,7 @@ const vr = {
20707
20768
  }
20708
20769
  ),
20709
20770
  /* @__PURE__ */ i.jsx(
20710
- A,
20771
+ b,
20711
20772
  {
20712
20773
  label: !0,
20713
20774
  onEdit: () => a("AccountHolderClassification"),
@@ -20716,7 +20777,7 @@ const vr = {
20716
20777
  }
20717
20778
  ),
20718
20779
  /* @__PURE__ */ i.jsx(
20719
- A,
20780
+ b,
20720
20781
  {
20721
20782
  label: !0,
20722
20783
  onEdit: () => a("AccountHolderClassification"),
@@ -20725,7 +20786,7 @@ const vr = {
20725
20786
  }
20726
20787
  ),
20727
20788
  /* @__PURE__ */ i.jsx(
20728
- A,
20789
+ b,
20729
20790
  {
20730
20791
  label: !0,
20731
20792
  onEdit: () => a("AccountHolderClassification"),
@@ -20734,7 +20795,7 @@ const vr = {
20734
20795
  }
20735
20796
  ),
20736
20797
  /* @__PURE__ */ i.jsx(
20737
- A,
20798
+ b,
20738
20799
  {
20739
20800
  label: !0,
20740
20801
  onEdit: () => a("AccountHolderClassification"),
@@ -20743,7 +20804,7 @@ const vr = {
20743
20804
  }
20744
20805
  ),
20745
20806
  /* @__PURE__ */ i.jsx(
20746
- A,
20807
+ b,
20747
20808
  {
20748
20809
  label: !0,
20749
20810
  onEdit: () => a("AccountHolderClassification"),
@@ -20752,7 +20813,7 @@ const vr = {
20752
20813
  }
20753
20814
  ),
20754
20815
  /* @__PURE__ */ i.jsx(
20755
- A,
20816
+ b,
20756
20817
  {
20757
20818
  label: !0,
20758
20819
  onEdit: () => a("AccountHolderClassification"),
@@ -20761,7 +20822,7 @@ const vr = {
20761
20822
  }
20762
20823
  ),
20763
20824
  /* @__PURE__ */ i.jsx(
20764
- A,
20825
+ b,
20765
20826
  {
20766
20827
  label: !0,
20767
20828
  name: "accountHolderName",
@@ -20770,7 +20831,7 @@ const vr = {
20770
20831
  }
20771
20832
  ),
20772
20833
  /* @__PURE__ */ i.jsx(
20773
- A,
20834
+ b,
20774
20835
  {
20775
20836
  label: !0,
20776
20837
  name: "accountHolderCountryOfCitizenship",
@@ -20779,7 +20840,7 @@ const vr = {
20779
20840
  }
20780
20841
  ),
20781
20842
  /* @__PURE__ */ i.jsx(
20782
- A,
20843
+ b,
20783
20844
  {
20784
20845
  label: !0,
20785
20846
  name: "accountHolderDateOfBirth",
@@ -20788,7 +20849,7 @@ const vr = {
20788
20849
  }
20789
20850
  ),
20790
20851
  /* @__PURE__ */ i.jsx(
20791
- A,
20852
+ b,
20792
20853
  {
20793
20854
  label: !0,
20794
20855
  name: "accountHolderCityOfBirth",
@@ -20797,7 +20858,7 @@ const vr = {
20797
20858
  }
20798
20859
  ),
20799
20860
  /* @__PURE__ */ i.jsx(
20800
- A,
20861
+ b,
20801
20862
  {
20802
20863
  label: !0,
20803
20864
  name: "accountHolderCountryOfBirth",
@@ -20806,7 +20867,7 @@ const vr = {
20806
20867
  }
20807
20868
  ),
20808
20869
  /* @__PURE__ */ i.jsx(
20809
- A,
20870
+ b,
20810
20871
  {
20811
20872
  label: !0,
20812
20873
  name: "accountHolderDbaName",
@@ -20829,7 +20890,7 @@ const vr = {
20829
20890
  }
20830
20891
  ),
20831
20892
  /* @__PURE__ */ i.jsx(
20832
- A,
20893
+ b,
20833
20894
  {
20834
20895
  label: !0,
20835
20896
  name: "accountHolderUsTin",
@@ -20838,7 +20899,7 @@ const vr = {
20838
20899
  }
20839
20900
  ),
20840
20901
  /* @__PURE__ */ i.jsx(
20841
- A,
20902
+ b,
20842
20903
  {
20843
20904
  label: !0,
20844
20905
  name: "accountHolderForeignTin",
@@ -20847,7 +20908,7 @@ const vr = {
20847
20908
  }
20848
20909
  ),
20849
20910
  /* @__PURE__ */ i.jsx(
20850
- A,
20911
+ b,
20851
20912
  {
20852
20913
  label: !0,
20853
20914
  name: "accountHolderForeignTinIsNotRequired",
@@ -20856,7 +20917,7 @@ const vr = {
20856
20917
  }
20857
20918
  ),
20858
20919
  /* @__PURE__ */ i.jsx(
20859
- A,
20920
+ b,
20860
20921
  {
20861
20922
  label: !0,
20862
20923
  name: "accountHolderFinancialAccountIdentifier",
@@ -20865,7 +20926,7 @@ const vr = {
20865
20926
  }
20866
20927
  ),
20867
20928
  /* @__PURE__ */ i.jsx(
20868
- A,
20929
+ b,
20869
20930
  {
20870
20931
  label: !0,
20871
20932
  name: "accountHolderFinancialAccountName",
@@ -20874,7 +20935,7 @@ const vr = {
20874
20935
  }
20875
20936
  ),
20876
20937
  /* @__PURE__ */ i.jsx(
20877
- A,
20938
+ b,
20878
20939
  {
20879
20940
  name: "accountHolderVatCountry",
20880
20941
  onEdit: () => a("AccountHolderTax"),
@@ -20883,7 +20944,7 @@ const vr = {
20883
20944
  }
20884
20945
  ),
20885
20946
  /* @__PURE__ */ i.jsx(
20886
- A,
20947
+ b,
20887
20948
  {
20888
20949
  name: "accountHolderVatIdentificationNumber",
20889
20950
  onEdit: () => a("AccountHolderTax"),
@@ -20892,7 +20953,7 @@ const vr = {
20892
20953
  }
20893
20954
  ),
20894
20955
  /* @__PURE__ */ i.jsx(
20895
- A,
20956
+ b,
20896
20957
  {
20897
20958
  name: "accountHolderBusinessRegistrationCountry",
20898
20959
  onEdit: () => a("AccountHolderTax"),
@@ -20901,7 +20962,7 @@ const vr = {
20901
20962
  }
20902
20963
  ),
20903
20964
  /* @__PURE__ */ i.jsx(
20904
- A,
20965
+ b,
20905
20966
  {
20906
20967
  name: "accountHolderBusinessRegistrationNumber",
20907
20968
  onEdit: () => a("AccountHolderTax"),
@@ -20910,14 +20971,14 @@ const vr = {
20910
20971
  }
20911
20972
  ),
20912
20973
  /* @__PURE__ */ i.jsxs(
20913
- oe,
20974
+ se,
20914
20975
  {
20915
20976
  title: n("taxResidences"),
20916
20977
  showIf: e.accountHolderIsEuResident === "yes" && e.accountHolderIsIndividual !== void 0,
20917
20978
  children: [
20918
- /* @__PURE__ */ i.jsx(pt, { name: "accountHolderTaxResidences" }),
20979
+ /* @__PURE__ */ i.jsx(vt, { name: "accountHolderTaxResidences" }),
20919
20980
  /* @__PURE__ */ i.jsx(
20920
- A,
20981
+ b,
20921
20982
  {
20922
20983
  label: !0,
20923
20984
  name: "accountHolderTaxResidenceCountry1",
@@ -20925,14 +20986,14 @@ const vr = {
20925
20986
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry1)
20926
20987
  }
20927
20988
  ),
20928
- /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin1", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20989
+ /* @__PURE__ */ i.jsx(b, { label: !0, name: "accountHolderTaxResidenceForeignTin1", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20929
20990
  $,
20930
20991
  {
20931
20992
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1
20932
20993
  }
20933
20994
  ) }),
20934
20995
  /* @__PURE__ */ i.jsx(
20935
- A,
20996
+ b,
20936
20997
  {
20937
20998
  label: !0,
20938
20999
  name: "accountHolderTaxResidenceCountry2",
@@ -20940,14 +21001,14 @@ const vr = {
20940
21001
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry2)
20941
21002
  }
20942
21003
  ),
20943
- /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin2", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
21004
+ /* @__PURE__ */ i.jsx(b, { label: !0, name: "accountHolderTaxResidenceForeignTin2", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20944
21005
  $,
20945
21006
  {
20946
21007
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2
20947
21008
  }
20948
21009
  ) }),
20949
21010
  /* @__PURE__ */ i.jsx(
20950
- A,
21011
+ b,
20951
21012
  {
20952
21013
  label: !0,
20953
21014
  name: "accountHolderTaxResidenceCountry3",
@@ -20955,14 +21016,14 @@ const vr = {
20955
21016
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry3)
20956
21017
  }
20957
21018
  ),
20958
- /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin3", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
21019
+ /* @__PURE__ */ i.jsx(b, { label: !0, name: "accountHolderTaxResidenceForeignTin3", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20959
21020
  $,
20960
21021
  {
20961
21022
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3
20962
21023
  }
20963
21024
  ) }),
20964
21025
  /* @__PURE__ */ i.jsx(
20965
- A,
21026
+ b,
20966
21027
  {
20967
21028
  label: !0,
20968
21029
  name: "accountHolderTaxResidenceCountry4",
@@ -20970,14 +21031,14 @@ const vr = {
20970
21031
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry4)
20971
21032
  }
20972
21033
  ),
20973
- /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin4", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
21034
+ /* @__PURE__ */ i.jsx(b, { label: !0, name: "accountHolderTaxResidenceForeignTin4", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20974
21035
  $,
20975
21036
  {
20976
21037
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4
20977
21038
  }
20978
21039
  ) }),
20979
21040
  /* @__PURE__ */ i.jsx(
20980
- A,
21041
+ b,
20981
21042
  {
20982
21043
  label: !0,
20983
21044
  name: "accountHolderTaxResidenceCountry5",
@@ -20985,7 +21046,7 @@ const vr = {
20985
21046
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry5)
20986
21047
  }
20987
21048
  ),
20988
- /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin5", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
21049
+ /* @__PURE__ */ i.jsx(b, { label: !0, name: "accountHolderTaxResidenceForeignTin5", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20989
21050
  $,
20990
21051
  {
20991
21052
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5
@@ -20996,13 +21057,13 @@ const vr = {
20996
21057
  )
20997
21058
  ] }),
20998
21059
  /* @__PURE__ */ i.jsxs(
20999
- oe,
21060
+ se,
21000
21061
  {
21001
21062
  title: n("regardedOwner"),
21002
- showIf: !!l.regardedOwnerUsPerson && e.regardedOwnerUsPerson !== void 0,
21063
+ showIf: !!d.regardedOwnerUsPerson && e.regardedOwnerUsPerson !== void 0,
21003
21064
  children: [
21004
21065
  /* @__PURE__ */ i.jsx(
21005
- A,
21066
+ b,
21006
21067
  {
21007
21068
  label: !0,
21008
21069
  name: "regardedOwnerName",
@@ -21011,7 +21072,7 @@ const vr = {
21011
21072
  }
21012
21073
  ),
21013
21074
  /* @__PURE__ */ i.jsx(
21014
- A,
21075
+ b,
21015
21076
  {
21016
21077
  label: !0,
21017
21078
  name: "regardedOwnerCountryOfCitizenship",
@@ -21020,7 +21081,7 @@ const vr = {
21020
21081
  }
21021
21082
  ),
21022
21083
  /* @__PURE__ */ i.jsx(
21023
- A,
21084
+ b,
21024
21085
  {
21025
21086
  label: !0,
21026
21087
  name: "regardedOwnerDbaName",
@@ -21029,7 +21090,7 @@ const vr = {
21029
21090
  }
21030
21091
  ),
21031
21092
  /* @__PURE__ */ i.jsx(
21032
- A,
21093
+ b,
21033
21094
  {
21034
21095
  label: !0,
21035
21096
  onEdit: () => a("RegardedOwnerClassification"),
@@ -21038,7 +21099,7 @@ const vr = {
21038
21099
  }
21039
21100
  ),
21040
21101
  /* @__PURE__ */ i.jsx(
21041
- A,
21102
+ b,
21042
21103
  {
21043
21104
  label: !0,
21044
21105
  onEdit: () => a("RegardedOwnerClassification"),
@@ -21061,7 +21122,7 @@ const vr = {
21061
21122
  }
21062
21123
  ),
21063
21124
  /* @__PURE__ */ i.jsx(
21064
- A,
21125
+ b,
21065
21126
  {
21066
21127
  label: !0,
21067
21128
  name: "regardedOwnerUsTin",
@@ -21070,7 +21131,7 @@ const vr = {
21070
21131
  }
21071
21132
  ),
21072
21133
  /* @__PURE__ */ i.jsx(
21073
- A,
21134
+ b,
21074
21135
  {
21075
21136
  label: !0,
21076
21137
  name: "regardedOwnerForeignTin",
@@ -21079,7 +21140,7 @@ const vr = {
21079
21140
  }
21080
21141
  ),
21081
21142
  /* @__PURE__ */ i.jsx(
21082
- A,
21143
+ b,
21083
21144
  {
21084
21145
  label: !0,
21085
21146
  name: "regardedOwnerForeignTinIsNotRequired",
@@ -21088,7 +21149,7 @@ const vr = {
21088
21149
  }
21089
21150
  ),
21090
21151
  /* @__PURE__ */ i.jsx(
21091
- A,
21152
+ b,
21092
21153
  {
21093
21154
  label: !0,
21094
21155
  name: "regardedOwnerUsTin",
@@ -21097,7 +21158,7 @@ const vr = {
21097
21158
  }
21098
21159
  ),
21099
21160
  /* @__PURE__ */ i.jsx(
21100
- A,
21161
+ b,
21101
21162
  {
21102
21163
  label: !0,
21103
21164
  name: "exemptFatcaCode",
@@ -21106,7 +21167,7 @@ const vr = {
21106
21167
  }
21107
21168
  ),
21108
21169
  /* @__PURE__ */ i.jsx(
21109
- A,
21170
+ b,
21110
21171
  {
21111
21172
  label: !0,
21112
21173
  name: "exemptPayeeCode",
@@ -21121,14 +21182,14 @@ const vr = {
21121
21182
  }, qo = () => {
21122
21183
  const { goBack: e, onSubmitTaxDocumentation: a, isW8: n, isW9: r } = ae(), { getLocalTitle: o, fields: s } = E();
21123
21184
  return /* @__PURE__ */ i.jsxs(
21124
- ke,
21185
+ pe,
21125
21186
  {
21126
21187
  title: o("summary"),
21127
- className: `taxbit-form-${oa("summary")}`,
21188
+ className: `taxbit-form-${la("summary")}`,
21128
21189
  children: [
21129
21190
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
21130
21191
  /* @__PURE__ */ i.jsx(Zo, {}),
21131
- /* @__PURE__ */ i.jsxs(oe, { title: "Certify", showIf: r || n, children: [
21192
+ /* @__PURE__ */ i.jsxs(se, { title: "Certify", showIf: r || n, children: [
21132
21193
  /* @__PURE__ */ i.jsx(D, { name: "iCertifyToAll", label: !0 }),
21133
21194
  /* @__PURE__ */ i.jsx(D, { name: "iConfirmTheTaxIdIsCorrect", label: !0 }),
21134
21195
  /* @__PURE__ */ i.jsx(D, { name: "iAmNotSubjectToBackupWithholding", label: !0 }),
@@ -21141,14 +21202,14 @@ const vr = {
21141
21202
  /* @__PURE__ */ i.jsx(D, { name: "iConfirmTheInformationIsCorrectComplete", label: !0 }),
21142
21203
  /* @__PURE__ */ i.jsx(D, { name: "iAuthorizeWithholdingAgent", label: !0 })
21143
21204
  ] }),
21144
- /* @__PURE__ */ i.jsxs(oe, { title: "Acknowledge and Sign", showIf: r || n, children: [
21205
+ /* @__PURE__ */ i.jsxs(se, { title: "Acknowledge and Sign", showIf: r || n, children: [
21145
21206
  /* @__PURE__ */ i.jsx(D, { name: "iAcknowlegeESignIsOk", label: !0 }),
21146
21207
  /* @__PURE__ */ i.jsx(D, { name: "iHaveLegalCapacityToSign", label: !0 }),
21147
- /* @__PURE__ */ i.jsx(_, { label: !0, name: "signature" })
21208
+ /* @__PURE__ */ i.jsx(Y, { label: !0, name: "signature" })
21148
21209
  ] })
21149
21210
  ] }),
21150
21211
  /* @__PURE__ */ i.jsx(
21151
- he,
21212
+ fe,
21152
21213
  {
21153
21214
  onBack: e,
21154
21215
  onSubmit: () => a(s)
@@ -21157,11 +21218,11 @@ const vr = {
21157
21218
  ]
21158
21219
  }
21159
21220
  );
21160
- }, Yo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(qo, {}) }), _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21221
+ }, Yo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(qo, {}) }), _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21161
21222
  __proto__: null,
21162
21223
  AccountHolderClassification: jo,
21163
21224
  AccountHolderContact: Eo,
21164
- AccountHolderTax: Ro,
21225
+ AccountHolderTax: Po,
21165
21226
  AccountHolderTaxClarification: Ho,
21166
21227
  Confirmation: Go,
21167
21228
  Exemptions: Uo,
@@ -21169,13 +21230,14 @@ const vr = {
21169
21230
  RegardedOwnerContact: Vo,
21170
21231
  RegardedOwnerTax: Jo,
21171
21232
  Summary: Yo
21172
- }, Symbol.toStringTag, { value: "Module" })), vt = ({
21233
+ }, Symbol.toStringTag, { value: "Module" })), pt = ({
21173
21234
  data: e,
21174
21235
  onSubmit: a,
21175
21236
  language: n,
21176
21237
  taxForms: r,
21177
21238
  complete: o,
21178
- onProgress: s
21239
+ onProgress: s,
21240
+ externalValidations: d
21179
21241
  }) => /* @__PURE__ */ i.jsx(
21180
21242
  so,
21181
21243
  {
@@ -21185,6 +21247,7 @@ const vr = {
21185
21247
  language: n,
21186
21248
  taxForms: r,
21187
21249
  step: o ? "Summary" : void 0,
21250
+ externalValidations: d,
21188
21251
  children: /* @__PURE__ */ i.jsx(
21189
21252
  Xo,
21190
21253
  {
@@ -21199,14 +21262,14 @@ const vr = {
21199
21262
  taxForms: a = Qo,
21200
21263
  data: n
21201
21264
  }) => {
21202
- const { stepName: r, setLanguage: o, setSupportedForms: s, onResetTaxDocumentation: l } = ae(), d = _o[r];
21203
- return Y(() => {
21265
+ const { stepName: r, setLanguage: o, setSupportedForms: s, onResetTaxDocumentation: d } = ae(), l = _o[r];
21266
+ return _(() => {
21204
21267
  o(e);
21205
- }, [e, o]), Y(() => {
21268
+ }, [e, o]), _(() => {
21206
21269
  s(a);
21207
- }, [a, s]), Y(() => {
21208
- n && l(n);
21209
- }, [n, l]), /* @__PURE__ */ i.jsx(d, {});
21270
+ }, [a, s]), _(() => {
21271
+ n && d(n);
21272
+ }, [n, d]), /* @__PURE__ */ i.jsx(l, {});
21210
21273
  }, as = ({
21211
21274
  data: e,
21212
21275
  onSubmit: a,
@@ -21214,7 +21277,7 @@ const vr = {
21214
21277
  language: r,
21215
21278
  complete: o
21216
21279
  }) => /* @__PURE__ */ i.jsx(
21217
- vt,
21280
+ pt,
21218
21281
  {
21219
21282
  data: e,
21220
21283
  language: r,
@@ -21230,25 +21293,32 @@ const vr = {
21230
21293
  language: r,
21231
21294
  taxForms: o,
21232
21295
  onProgress: s,
21233
- onSubmit: l,
21234
- onSuccess: d
21296
+ onSubmit: d,
21297
+ onSuccess: l
21235
21298
  }) => {
21236
- const { isComplete: m, isLoading: h, formData: g, handleOnSubmit: c } = to({
21299
+ const {
21300
+ isComplete: m,
21301
+ isLoading: k,
21302
+ formData: g,
21303
+ handleOnSubmit: c,
21304
+ externalValidations: v
21305
+ } = to({
21237
21306
  bearerToken: n,
21238
21307
  data: a,
21239
- onSubmit: l,
21240
- onSuccess: d,
21308
+ onSubmit: d,
21309
+ onSuccess: l,
21241
21310
  staging: e
21242
21311
  });
21243
- return h ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-loading", children: gt("retrievingInterviewStatus", r) }) : /* @__PURE__ */ i.jsx(
21244
- vt,
21312
+ return k ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-loading", children: gt("retrievingInterviewStatus", r) }) : /* @__PURE__ */ i.jsx(
21313
+ pt,
21245
21314
  {
21246
21315
  data: g,
21247
21316
  language: r,
21248
21317
  onSubmit: c,
21249
21318
  onProgress: s,
21250
21319
  taxForms: o,
21251
- complete: m
21320
+ complete: m,
21321
+ externalValidations: v
21252
21322
  }
21253
21323
  );
21254
21324
  }, is = ({
@@ -21258,7 +21328,7 @@ const vr = {
21258
21328
  language: r,
21259
21329
  onSubmit: o,
21260
21330
  onProgress: s,
21261
- onSuccess: l
21331
+ onSuccess: d
21262
21332
  }) => /* @__PURE__ */ i.jsx(
21263
21333
  $o,
21264
21334
  {
@@ -21269,13 +21339,13 @@ const vr = {
21269
21339
  staging: a,
21270
21340
  onSubmit: o,
21271
21341
  onProgress: s,
21272
- onSuccess: l
21342
+ onSuccess: d
21273
21343
  }
21274
21344
  );
21275
21345
  export {
21276
21346
  is as TaxBitDAC7Form,
21277
21347
  as as TaxBitDAC7FormUI,
21278
21348
  $o as TaxBitForm,
21279
- vt as TaxBitFormUI,
21349
+ pt as TaxBitFormUI,
21280
21350
  kr as useTaxBit
21281
21351
  };