@taxbit/react-sdk 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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 === "", D = (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 = D(e == null ? void 0 : e.accountHolderTaxResidenceCountry1) || D(e == null ? void 0 : e.accountHolderTaxResidenceCountry2) || D(e == null ? void 0 : e.accountHolderTaxResidenceCountry3) || D(e == null ? void 0 : e.accountHolderTaxResidenceCountry4) || D(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.3", 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: D(
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) => D(e[`accountHolderTaxResidenceForeignTin${o}`]) || e[`accountHolderTaxResidenceForeignTin${o}IsNotRequired`] === "yes", r = (o) => D(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) => D(e) && e.length >= 2 && e.length <= 22 && !ct(e), cr = (e) => D(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) && D(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 (D(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 (D(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 (D(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 (D(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 (D(a) && !Ra.test(a))
1127
1134
  return ["mustBeNineDigits"];
1128
- if (V(a) && Ra.includes(a))
1135
+ if (D(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,50 @@ 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 = {
1537
+ return _(() => {
1538
+ const A = {
1529
1539
  method: "GET",
1530
1540
  headers: Wa({ bearerToken: e })
1531
1541
  };
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));
1542
+ fetch(c, A).then((f) => {
1543
+ if (f.ok)
1544
+ return f.json();
1545
+ throw f.status === 401 ? new Error("Unauthorized, please check your bearer token") : new Error("Something went wrong");
1546
+ }).then((f) => {
1547
+ s(La(f));
1538
1548
  });
1539
- }, [e, c]), Y(() => {
1549
+ }, [e, c]), _(() => {
1540
1550
  if (o && o.submissionStatus !== "NOT_SUBMITTED") {
1541
- const N = {
1551
+ const A = {
1542
1552
  method: "GET",
1543
1553
  headers: Wa({ bearerToken: e })
1544
1554
  };
1545
- fetch(h, N).then((T) => {
1546
- if (T.ok)
1547
- return T.json();
1555
+ fetch(k, A).then((f) => {
1556
+ if (f.ok)
1557
+ return f.json();
1548
1558
  throw new Error("Something went wrong");
1549
- }).then((T) => {
1550
- r(La(T));
1559
+ }).then((f) => {
1560
+ r(La(f));
1551
1561
  });
1552
1562
  }
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,
1563
+ }, [e, o, k]), {
1564
+ postData: v,
1558
1565
  status: o,
1559
- formSubmitted: l,
1566
+ formSubmitted: d,
1560
1567
  serverData: n
1561
1568
  };
1562
1569
  };
1563
- var Ya = { exports: {} }, ia = {};
1570
+ var _a = { exports: {} }, ta = {};
1564
1571
  /**
1565
1572
  * @license React
1566
1573
  * react-jsx-runtime.production.min.js
@@ -1573,22 +1580,22 @@ var Ya = { exports: {} }, ia = {};
1573
1580
  var _n;
1574
1581
  function hr() {
1575
1582
  if (_n)
1576
- return ia;
1583
+ return ta;
1577
1584
  _n = 1;
1578
1585
  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);
1586
+ function d(l, m, k) {
1587
+ var g, c = {}, v = null, A = null;
1588
+ k !== void 0 && (v = "" + k), m.key !== void 0 && (v = "" + m.key), m.ref !== void 0 && (A = m.ref);
1582
1589
  for (g in m)
1583
1590
  r.call(m, g) && !s.hasOwnProperty(g) && (c[g] = m[g]);
1584
- if (d && d.defaultProps)
1585
- for (g in m = d.defaultProps, m)
1591
+ if (l && l.defaultProps)
1592
+ for (g in m = l.defaultProps, m)
1586
1593
  c[g] === void 0 && (c[g] = m[g]);
1587
- return { $$typeof: a, type: d, key: p, ref: f, props: c, _owner: o.current };
1594
+ return { $$typeof: a, type: l, key: v, ref: A, props: c, _owner: o.current };
1588
1595
  }
1589
- return ia.Fragment = n, ia.jsx = l, ia.jsxs = l, ia;
1596
+ return ta.Fragment = n, ta.jsx = d, ta.jsxs = d, ta;
1590
1597
  }
1591
- var na = {};
1598
+ var ra = {};
1592
1599
  /**
1593
1600
  * @license React
1594
1601
  * react-jsx-runtime.development.js
@@ -1599,56 +1606,56 @@ var na = {};
1599
1606
  * LICENSE file in the root directory of this source tree.
1600
1607
  */
1601
1608
  var Qn;
1602
- function pr() {
1609
+ function vr() {
1603
1610
  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) {
1611
+ 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";
1612
+ function B(t) {
1606
1613
  if (t === null || typeof t != "object")
1607
1614
  return null;
1608
- var u = C && t[C] || t[N];
1615
+ var u = f && t[f] || t[y];
1609
1616
  return typeof u == "function" ? u : null;
1610
1617
  }
1611
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1612
- function R(t) {
1618
+ var I = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1619
+ function z(t) {
1613
1620
  {
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);
1621
+ for (var u = arguments.length, h = new Array(u > 1 ? u - 1 : 0), C = 1; C < u; C++)
1622
+ h[C - 1] = arguments[C];
1623
+ p("error", t, h);
1617
1624
  }
1618
1625
  }
1619
- function v(t, u, k) {
1626
+ function p(t, u, h) {
1620
1627
  {
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);
1628
+ var C = I.ReactDebugCurrentFrame, j = C.getStackAddendum();
1629
+ j !== "" && (u += "%s", h = h.concat([j]));
1630
+ var P = h.map(function(N) {
1631
+ return String(N);
1625
1632
  });
1626
- B.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, B);
1633
+ P.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, P);
1627
1634
  }
1628
1635
  }
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
1636
+ var G = !1, J = !1, X = !1, ce = !1, T = !1, M;
1637
+ M = Symbol.for("react.module.reference");
1638
+ function H(t) {
1639
+ 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
1640
  // types supported by any Flight configuration anywhere since
1634
1641
  // we don't know which Flight build this will end up being used
1635
1642
  // with.
1636
- t.$$typeof === ie || t.getModuleId !== void 0));
1643
+ t.$$typeof === M || t.getModuleId !== void 0));
1637
1644
  }
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;
1645
+ function te(t, u, h) {
1646
+ var C = t.displayName;
1647
+ if (C)
1648
+ return C;
1649
+ var j = u.displayName || u.name || "";
1650
+ return j !== "" ? h + "(" + j + ")" : h;
1644
1651
  }
1645
- function Ae(t) {
1652
+ function Se(t) {
1646
1653
  return t.displayName || "Context";
1647
1654
  }
1648
- function Z(t) {
1655
+ function q(t) {
1649
1656
  if (t == null)
1650
1657
  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")
1658
+ 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
1659
  return t.displayName || t.name || null;
1653
1660
  if (typeof t == "string")
1654
1661
  return t;
@@ -1661,28 +1668,28 @@ function pr() {
1661
1668
  return "Profiler";
1662
1669
  case o:
1663
1670
  return "StrictMode";
1664
- case h:
1671
+ case k:
1665
1672
  return "Suspense";
1666
1673
  case g:
1667
1674
  return "SuspenseList";
1668
1675
  }
1669
1676
  if (typeof t == "object")
1670
1677
  switch (t.$$typeof) {
1671
- case d:
1672
- var u = t;
1673
- return Ae(u) + ".Consumer";
1674
1678
  case l:
1675
- var k = t;
1676
- return Ae(k._context) + ".Provider";
1679
+ var u = t;
1680
+ return Se(u) + ".Consumer";
1681
+ case d:
1682
+ var h = t;
1683
+ return Se(h._context) + ".Provider";
1677
1684
  case m:
1678
- return Re(t, t.render, "ForwardRef");
1685
+ return te(t, t.render, "ForwardRef");
1679
1686
  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;
1687
+ var C = t.displayName || null;
1688
+ return C !== null ? C : q(t.type) || "Memo";
1689
+ case v: {
1690
+ var j = t, P = j._payload, N = j._init;
1684
1691
  try {
1685
- return Z(M(B));
1692
+ return q(N(P));
1686
1693
  } catch {
1687
1694
  return null;
1688
1695
  }
@@ -1690,18 +1697,18 @@ function pr() {
1690
1697
  }
1691
1698
  return null;
1692
1699
  }
1693
- var X = Object.assign, ne = 0, be, ue, Ce, Ie, Se, z, U;
1694
- function Ne() {
1700
+ var ie = Object.assign, re = 0, Ae, me, Ne, ge, Te, Me, ye;
1701
+ function O() {
1695
1702
  }
1696
- Ne.__reactDisabledLog = !0;
1697
- function la() {
1703
+ O.__reactDisabledLog = !0;
1704
+ function F() {
1698
1705
  {
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;
1706
+ if (re === 0) {
1707
+ Ae = console.log, me = console.info, Ne = console.warn, ge = console.error, Te = console.group, Me = console.groupCollapsed, ye = console.groupEnd;
1701
1708
  var t = {
1702
1709
  configurable: !0,
1703
1710
  enumerable: !0,
1704
- value: Ne,
1711
+ value: O,
1705
1712
  writable: !0
1706
1713
  };
1707
1714
  Object.defineProperties(console, {
@@ -1714,230 +1721,230 @@ function pr() {
1714
1721
  groupEnd: t
1715
1722
  });
1716
1723
  }
1717
- ne++;
1724
+ re++;
1718
1725
  }
1719
1726
  }
1720
- function da() {
1727
+ function we() {
1721
1728
  {
1722
- if (ne--, ne === 0) {
1729
+ if (re--, re === 0) {
1723
1730
  var t = {
1724
1731
  configurable: !0,
1725
1732
  enumerable: !0,
1726
1733
  writable: !0
1727
1734
  };
1728
1735
  Object.defineProperties(console, {
1729
- log: X({}, t, {
1730
- value: be
1736
+ log: ie({}, t, {
1737
+ value: Ae
1731
1738
  }),
1732
- info: X({}, t, {
1733
- value: ue
1739
+ info: ie({}, t, {
1740
+ value: me
1734
1741
  }),
1735
- warn: X({}, t, {
1736
- value: Ce
1742
+ warn: ie({}, t, {
1743
+ value: Ne
1737
1744
  }),
1738
- error: X({}, t, {
1739
- value: Ie
1745
+ error: ie({}, t, {
1746
+ value: ge
1740
1747
  }),
1741
- group: X({}, t, {
1742
- value: Se
1748
+ group: ie({}, t, {
1749
+ value: Te
1743
1750
  }),
1744
- groupCollapsed: X({}, t, {
1745
- value: z
1751
+ groupCollapsed: ie({}, t, {
1752
+ value: Me
1746
1753
  }),
1747
- groupEnd: X({}, t, {
1748
- value: U
1754
+ groupEnd: ie({}, t, {
1755
+ value: ye
1749
1756
  })
1750
1757
  });
1751
1758
  }
1752
- ne < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1759
+ re < 0 && z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1753
1760
  }
1754
1761
  }
1755
- var Pe = y.ReactCurrentDispatcher, we;
1756
- function Te(t, u, k) {
1762
+ var He = I.ReactCurrentDispatcher, Le;
1763
+ function je(t, u, h) {
1757
1764
  {
1758
- if (we === void 0)
1765
+ if (Le === void 0)
1759
1766
  try {
1760
1767
  throw Error();
1761
- } catch (O) {
1762
- var b = O.stack.trim().match(/\n( *(at )?)/);
1763
- we = b && b[1] || "";
1768
+ } catch (j) {
1769
+ var C = j.stack.trim().match(/\n( *(at )?)/);
1770
+ Le = C && C[1] || "";
1764
1771
  }
1765
1772
  return `
1766
- ` + we + t;
1773
+ ` + Le + t;
1767
1774
  }
1768
1775
  }
1769
- var He = !1, Me;
1776
+ var Ge = !1, Oe;
1770
1777
  {
1771
1778
  var ua = typeof WeakMap == "function" ? WeakMap : Map;
1772
- Me = new ua();
1779
+ Oe = new ua();
1773
1780
  }
1774
- function Fe(t, u) {
1775
- if (!t || He)
1781
+ function Ve(t, u) {
1782
+ if (!t || Ge)
1776
1783
  return "";
1777
1784
  {
1778
- var k = Me.get(t);
1779
- if (k !== void 0)
1780
- return k;
1785
+ var h = Oe.get(t);
1786
+ if (h !== void 0)
1787
+ return h;
1781
1788
  }
1782
- var b;
1783
- He = !0;
1784
- var O = Error.prepareStackTrace;
1789
+ var C;
1790
+ Ge = !0;
1791
+ var j = Error.prepareStackTrace;
1785
1792
  Error.prepareStackTrace = void 0;
1786
- var B;
1787
- B = Pe.current, Pe.current = null, la();
1793
+ var P;
1794
+ P = He.current, He.current = null, F();
1788
1795
  try {
1789
1796
  if (u) {
1790
- var M = function() {
1797
+ var N = function() {
1791
1798
  throw Error();
1792
1799
  };
1793
- if (Object.defineProperty(M.prototype, "props", {
1800
+ if (Object.defineProperty(N.prototype, "props", {
1794
1801
  set: function() {
1795
1802
  throw Error();
1796
1803
  }
1797
1804
  }), typeof Reflect == "object" && Reflect.construct) {
1798
1805
  try {
1799
- Reflect.construct(M, []);
1800
- } catch (te) {
1801
- b = te;
1806
+ Reflect.construct(N, []);
1807
+ } catch (ne) {
1808
+ C = ne;
1802
1809
  }
1803
- Reflect.construct(t, [], M);
1810
+ Reflect.construct(t, [], N);
1804
1811
  } else {
1805
1812
  try {
1806
- M.call();
1807
- } catch (te) {
1808
- b = te;
1813
+ N.call();
1814
+ } catch (ne) {
1815
+ C = ne;
1809
1816
  }
1810
- t.call(M.prototype);
1817
+ t.call(N.prototype);
1811
1818
  }
1812
1819
  } else {
1813
1820
  try {
1814
1821
  throw Error();
1815
- } catch (te) {
1816
- b = te;
1822
+ } catch (ne) {
1823
+ C = ne;
1817
1824
  }
1818
1825
  t();
1819
1826
  }
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)
1827
+ } catch (ne) {
1828
+ if (ne && C && typeof ne.stack == "string") {
1829
+ for (var S = ne.stack.split(`
1830
+ `), K = C.stack.split(`
1831
+ `), w = S.length - 1, L = K.length - 1; w >= 1 && L >= 0 && S[w] !== K[L]; )
1832
+ L--;
1833
+ for (; w >= 1 && L >= 0; w--, L--)
1834
+ if (S[w] !== K[L]) {
1835
+ if (w !== 1 || L !== 1)
1829
1836
  do
1830
- if (w--, H--, H < 0 || S[w] !== F[H]) {
1831
- var q = `
1837
+ if (w--, L--, L < 0 || S[w] !== K[L]) {
1838
+ var Z = `
1832
1839
  ` + 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;
1840
+ return t.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", t.displayName)), typeof t == "function" && Oe.set(t, Z), Z;
1834
1841
  }
1835
- while (w >= 1 && H >= 0);
1842
+ while (w >= 1 && L >= 0);
1836
1843
  break;
1837
1844
  }
1838
1845
  }
1839
1846
  } finally {
1840
- He = !1, Pe.current = B, da(), Error.prepareStackTrace = O;
1847
+ Ge = !1, He.current = P, we(), Error.prepareStackTrace = j;
1841
1848
  }
1842
- var me = t ? t.displayName || t.name : "", aa = me ? Te(me) : "";
1843
- return typeof t == "function" && Me.set(t, aa), aa;
1849
+ var he = t ? t.displayName || t.name : "", na = he ? je(he) : "";
1850
+ return typeof t == "function" && Oe.set(t, na), na;
1844
1851
  }
1845
- function ca(t, u, k) {
1846
- return Fe(t, !1);
1852
+ function ca(t, u, h) {
1853
+ return Ve(t, !1);
1847
1854
  }
1848
1855
  function ma(t) {
1849
1856
  var u = t.prototype;
1850
1857
  return !!(u && u.isReactComponent);
1851
1858
  }
1852
- function ye(t, u, k) {
1859
+ function ze(t, u, h) {
1853
1860
  if (t == null)
1854
1861
  return "";
1855
1862
  if (typeof t == "function")
1856
- return Fe(t, ma(t));
1863
+ return Ve(t, ma(t));
1857
1864
  if (typeof t == "string")
1858
- return Te(t);
1865
+ return je(t);
1859
1866
  switch (t) {
1860
- case h:
1861
- return Te("Suspense");
1867
+ case k:
1868
+ return je("Suspense");
1862
1869
  case g:
1863
- return Te("SuspenseList");
1870
+ return je("SuspenseList");
1864
1871
  }
1865
1872
  if (typeof t == "object")
1866
1873
  switch (t.$$typeof) {
1867
1874
  case m:
1868
1875
  return ca(t.render);
1869
1876
  case c:
1870
- return ye(t.type, u, k);
1871
- case p: {
1872
- var b = t, O = b._payload, B = b._init;
1877
+ return ze(t.type, u, h);
1878
+ case v: {
1879
+ var C = t, j = C._payload, P = C._init;
1873
1880
  try {
1874
- return ye(B(O), u, k);
1881
+ return ze(P(j), u, h);
1875
1882
  } catch {
1876
1883
  }
1877
1884
  }
1878
1885
  }
1879
1886
  return "";
1880
1887
  }
1881
- var je = Object.prototype.hasOwnProperty, Ke = {}, Ve = y.ReactDebugCurrentFrame;
1882
- function Oe(t) {
1888
+ var Ee = Object.prototype.hasOwnProperty, We = {}, Je = I.ReactDebugCurrentFrame;
1889
+ function Be(t) {
1883
1890
  if (t) {
1884
- var u = t._owner, k = ye(t.type, t._source, u ? u.type : null);
1885
- Ve.setExtraStackFrame(k);
1891
+ var u = t._owner, h = ze(t.type, t._source, u ? u.type : null);
1892
+ Je.setExtraStackFrame(h);
1886
1893
  } else
1887
- Ve.setExtraStackFrame(null);
1894
+ Je.setExtraStackFrame(null);
1888
1895
  }
1889
- function ga(t, u, k, b, O) {
1896
+ function ga(t, u, h, C, j) {
1890
1897
  {
1891
- var B = Function.call.bind(je);
1892
- for (var M in t)
1893
- if (B(t, M)) {
1898
+ var P = Function.call.bind(Ee);
1899
+ for (var N in t)
1900
+ if (P(t, N)) {
1894
1901
  var S = void 0;
1895
1902
  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;
1903
+ if (typeof t[N] != "function") {
1904
+ 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`.");
1905
+ throw K.name = "Invariant Violation", K;
1899
1906
  }
1900
- S = t[M](u, M, b, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1907
+ S = t[N](u, N, C, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1901
1908
  } catch (w) {
1902
1909
  S = w;
1903
1910
  }
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));
1911
+ 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
1912
  }
1906
1913
  }
1907
1914
  }
1908
1915
  var ka = Array.isArray;
1909
- function Le(t) {
1916
+ function xe(t) {
1910
1917
  return ka(t);
1911
1918
  }
1912
1919
  function ha(t) {
1913
1920
  {
1914
- var u = typeof Symbol == "function" && Symbol.toStringTag, k = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
1915
- return k;
1921
+ var u = typeof Symbol == "function" && Symbol.toStringTag, h = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
1922
+ return h;
1916
1923
  }
1917
1924
  }
1918
- function pa(t) {
1925
+ function va(t) {
1919
1926
  try {
1920
- return We(t), !1;
1927
+ return Ze(t), !1;
1921
1928
  } catch {
1922
1929
  return !0;
1923
1930
  }
1924
1931
  }
1925
- function We(t) {
1932
+ function Ze(t) {
1926
1933
  return "" + t;
1927
1934
  }
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);
1935
+ function qe(t) {
1936
+ if (va(t))
1937
+ 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
1938
  }
1932
- var pe = y.ReactCurrentOwner, va = {
1939
+ var be = I.ReactCurrentOwner, pa = {
1933
1940
  key: !0,
1934
1941
  ref: !0,
1935
1942
  __self: !0,
1936
1943
  __source: !0
1937
- }, Ze, qe, Ge;
1938
- Ge = {};
1944
+ }, Ye, _e, Ue;
1945
+ Ue = {};
1939
1946
  function fa(t) {
1940
- if (je.call(t, "ref")) {
1947
+ if (Ee.call(t, "ref")) {
1941
1948
  var u = Object.getOwnPropertyDescriptor(t, "ref").get;
1942
1949
  if (u && u.isReactWarning)
1943
1950
  return !1;
@@ -1945,7 +1952,7 @@ function pr() {
1945
1952
  return t.ref !== void 0;
1946
1953
  }
1947
1954
  function Aa(t) {
1948
- if (je.call(t, "key")) {
1955
+ if (Ee.call(t, "key")) {
1949
1956
  var u = Object.getOwnPropertyDescriptor(t, "key").get;
1950
1957
  if (u && u.isReactWarning)
1951
1958
  return !1;
@@ -1953,44 +1960,44 @@ function pr() {
1953
1960
  return t.key !== void 0;
1954
1961
  }
1955
1962
  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);
1963
+ if (typeof t.ref == "string" && be.current && u && be.current.stateNode !== u) {
1964
+ var h = q(be.current.type);
1965
+ 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
1966
  }
1960
1967
  }
1961
1968
  function Ca(t, u) {
1962
1969
  {
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));
1970
+ var h = function() {
1971
+ 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
1972
  };
1966
- k.isReactWarning = !0, Object.defineProperty(t, "key", {
1967
- get: k,
1973
+ h.isReactWarning = !0, Object.defineProperty(t, "key", {
1974
+ get: h,
1968
1975
  configurable: !0
1969
1976
  });
1970
1977
  }
1971
1978
  }
1972
1979
  function Ia(t, u) {
1973
1980
  {
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));
1981
+ var h = function() {
1982
+ _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
1983
  };
1977
- k.isReactWarning = !0, Object.defineProperty(t, "ref", {
1978
- get: k,
1984
+ h.isReactWarning = !0, Object.defineProperty(t, "ref", {
1985
+ get: h,
1979
1986
  configurable: !0
1980
1987
  });
1981
1988
  }
1982
1989
  }
1983
- var Sa = function(t, u, k, b, O, B, M) {
1990
+ var Sa = function(t, u, h, C, j, P, N) {
1984
1991
  var S = {
1985
1992
  // This tag allows us to uniquely identify this as a React Element
1986
1993
  $$typeof: a,
1987
1994
  // Built-in properties that belong on the element
1988
1995
  type: t,
1989
1996
  key: u,
1990
- ref: k,
1991
- props: M,
1997
+ ref: h,
1998
+ props: N,
1992
1999
  // Record the component responsible for creating this element.
1993
- _owner: B
2000
+ _owner: P
1994
2001
  };
1995
2002
  return S._store = {}, Object.defineProperty(S._store, "validated", {
1996
2003
  configurable: !1,
@@ -2001,49 +2008,49 @@ function pr() {
2001
2008
  configurable: !1,
2002
2009
  enumerable: !1,
2003
2010
  writable: !1,
2004
- value: b
2011
+ value: C
2005
2012
  }), Object.defineProperty(S, "_source", {
2006
2013
  configurable: !1,
2007
2014
  enumerable: !1,
2008
2015
  writable: !1,
2009
- value: O
2016
+ value: j
2010
2017
  }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
2011
2018
  };
2012
- function Na(t, u, k, b, O) {
2019
+ function Na(t, u, h, C, j) {
2013
2020
  {
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]);
2021
+ var P, N = {}, S = null, K = null;
2022
+ h !== void 0 && (qe(h), S = "" + h), Aa(u) && (qe(u.key), S = "" + u.key), fa(u) && (K = u.ref, ba(u, j));
2023
+ for (P in u)
2024
+ Ee.call(u, P) && !pa.hasOwnProperty(P) && (N[P] = u[P]);
2018
2025
  if (t && t.defaultProps) {
2019
2026
  var w = t.defaultProps;
2020
- for (B in w)
2021
- M[B] === void 0 && (M[B] = w[B]);
2027
+ for (P in w)
2028
+ N[P] === void 0 && (N[P] = w[P]);
2022
2029
  }
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);
2030
+ if (S || K) {
2031
+ var L = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
2032
+ S && Ca(N, L), K && Ia(N, L);
2026
2033
  }
2027
- return Sa(t, S, F, O, b, pe.current, M);
2034
+ return Sa(t, S, K, j, C, be.current, N);
2028
2035
  }
2029
2036
  }
2030
- var xe = y.ReactCurrentOwner, Ye = y.ReactDebugCurrentFrame;
2031
- function ce(t) {
2037
+ var De = I.ReactCurrentOwner, Qe = I.ReactDebugCurrentFrame;
2038
+ function ke(t) {
2032
2039
  if (t) {
2033
- var u = t._owner, k = ye(t.type, t._source, u ? u.type : null);
2034
- Ye.setExtraStackFrame(k);
2040
+ var u = t._owner, h = ze(t.type, t._source, u ? u.type : null);
2041
+ Qe.setExtraStackFrame(h);
2035
2042
  } else
2036
- Ye.setExtraStackFrame(null);
2043
+ Qe.setExtraStackFrame(null);
2037
2044
  }
2038
- var Ue;
2039
- Ue = !1;
2040
- function De(t) {
2045
+ var Fe;
2046
+ Fe = !1;
2047
+ function Ke(t) {
2041
2048
  return typeof t == "object" && t !== null && t.$$typeof === a;
2042
2049
  }
2043
- function _e() {
2050
+ function Xe() {
2044
2051
  {
2045
- if (xe.current) {
2046
- var t = Z(xe.current.type);
2052
+ if (De.current) {
2053
+ var t = q(De.current.type);
2047
2054
  if (t)
2048
2055
  return `
2049
2056
 
@@ -2055,56 +2062,56 @@ Check the render method of \`` + t + "`.";
2055
2062
  function Ta(t) {
2056
2063
  {
2057
2064
  if (t !== void 0) {
2058
- var u = t.fileName.replace(/^.*[\\\/]/, ""), k = t.lineNumber;
2065
+ var u = t.fileName.replace(/^.*[\\\/]/, ""), h = t.lineNumber;
2059
2066
  return `
2060
2067
 
2061
- Check your code at ` + u + ":" + k + ".";
2068
+ Check your code at ` + u + ":" + h + ".";
2062
2069
  }
2063
2070
  return "";
2064
2071
  }
2065
2072
  }
2066
- var Qe = {};
2073
+ var $e = {};
2067
2074
  function Ma(t) {
2068
2075
  {
2069
- var u = _e();
2076
+ var u = Xe();
2070
2077
  if (!u) {
2071
- var k = typeof t == "string" ? t : t.displayName || t.name;
2072
- k && (u = `
2078
+ var h = typeof t == "string" ? t : t.displayName || t.name;
2079
+ h && (u = `
2073
2080
 
2074
- Check the top-level render call using <` + k + ">.");
2081
+ Check the top-level render call using <` + h + ">.");
2075
2082
  }
2076
2083
  return u;
2077
2084
  }
2078
2085
  }
2079
- function Xe(t, u) {
2086
+ function ea(t, u) {
2080
2087
  {
2081
2088
  if (!t._store || t._store.validated || t.key != null)
2082
2089
  return;
2083
2090
  t._store.validated = !0;
2084
- var k = Ma(u);
2085
- if (Qe[k])
2091
+ var h = Ma(u);
2092
+ if ($e[h])
2086
2093
  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);
2094
+ $e[h] = !0;
2095
+ var C = "";
2096
+ 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
2097
  }
2091
2098
  }
2092
- function $e(t, u) {
2099
+ function aa(t, u) {
2093
2100
  {
2094
2101
  if (typeof t != "object")
2095
2102
  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);
2103
+ if (xe(t))
2104
+ for (var h = 0; h < t.length; h++) {
2105
+ var C = t[h];
2106
+ Ke(C) && ea(C, u);
2100
2107
  }
2101
- else if (De(t))
2108
+ else if (Ke(t))
2102
2109
  t._store && (t._store.validated = !0);
2103
2110
  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);
2111
+ var j = B(t);
2112
+ if (typeof j == "function" && j !== t.entries)
2113
+ for (var P = j.call(t), N; !(N = P.next()).done; )
2114
+ Ke(N.value) && ea(N.value, u);
2108
2115
  }
2109
2116
  }
2110
2117
  }
@@ -2113,81 +2120,81 @@ Check the top-level render call using <` + k + ">.");
2113
2120
  var u = t.type;
2114
2121
  if (u == null || typeof u == "string")
2115
2122
  return;
2116
- var k;
2123
+ var h;
2117
2124
  if (typeof u == "function")
2118
- k = u.propTypes;
2125
+ h = u.propTypes;
2119
2126
  else if (typeof u == "object" && (u.$$typeof === m || // Note: Memo only checks outer props here.
2120
2127
  // Inner props are checked in the reconciler.
2121
2128
  u.$$typeof === c))
2122
- k = u.propTypes;
2129
+ h = u.propTypes;
2123
2130
  else
2124
2131
  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");
2132
+ if (h) {
2133
+ var C = q(u);
2134
+ ga(h, t.props, "prop", C, t);
2135
+ } else if (u.PropTypes !== void 0 && !Fe) {
2136
+ Fe = !0;
2137
+ var j = q(u);
2138
+ z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
2132
2139
  }
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.");
2140
+ 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
2141
  }
2135
2142
  }
2136
2143
  function ja(t) {
2137
2144
  {
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);
2145
+ for (var u = Object.keys(t.props), h = 0; h < u.length; h++) {
2146
+ var C = u[h];
2147
+ if (C !== "children" && C !== "key") {
2148
+ ke(t), z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), ke(null);
2142
2149
  break;
2143
2150
  }
2144
2151
  }
2145
- t.ref !== null && (ce(t), R("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null));
2152
+ t.ref !== null && (ke(t), z("Invalid attribute `ref` supplied to `React.Fragment`."), ke(null));
2146
2153
  }
2147
2154
  }
2148
- function ea(t, u, k, b, O, B) {
2155
+ function ia(t, u, h, C, j, P) {
2149
2156
  {
2150
- var M = Be(t);
2151
- if (!M) {
2157
+ var N = H(t);
2158
+ if (!N) {
2152
2159
  var S = "";
2153
2160
  (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();
2161
+ var K = Ta(j);
2162
+ K ? S += K : S += Xe();
2156
2163
  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);
2164
+ 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
2165
  }
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);
2166
+ var L = Na(t, u, h, j, P);
2167
+ if (L == null)
2168
+ return L;
2169
+ if (N) {
2170
+ var Z = u.children;
2171
+ if (Z !== void 0)
2172
+ if (C)
2173
+ if (xe(Z)) {
2174
+ for (var he = 0; he < Z.length; he++)
2175
+ aa(Z[he], t);
2176
+ Object.freeze && Object.freeze(Z);
2170
2177
  } 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.");
2178
+ 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
2179
  else
2173
- $e(q, t);
2180
+ aa(Z, t);
2174
2181
  }
2175
- return t === r ? ja(H) : ya(H), H;
2182
+ return t === r ? ja(L) : ya(L), L;
2176
2183
  }
2177
2184
  }
2178
- function Oa(t, u, k) {
2179
- return ea(t, u, k, !0);
2185
+ function Oa(t, u, h) {
2186
+ return ia(t, u, h, !0);
2180
2187
  }
2181
- function za(t, u, k) {
2182
- return ea(t, u, k, !1);
2188
+ function za(t, u, h) {
2189
+ return ia(t, u, h, !1);
2183
2190
  }
2184
2191
  var Ea = za, Ba = Oa;
2185
- na.Fragment = r, na.jsx = Ea, na.jsxs = Ba;
2186
- }()), na;
2192
+ ra.Fragment = r, ra.jsx = Ea, ra.jsxs = Ba;
2193
+ }()), ra;
2187
2194
  }
2188
- process.env.NODE_ENV === "production" ? Ya.exports = hr() : Ya.exports = pr();
2189
- var i = Ya.exports;
2190
- const vr = {
2195
+ process.env.NODE_ENV === "production" ? _a.exports = hr() : _a.exports = vr();
2196
+ var i = _a.exports;
2197
+ const pr = {
2191
2198
  button: {
2192
2199
  back: "Назад",
2193
2200
  cancel: "Отказ",
@@ -2326,6 +2333,7 @@ const vr = {
2326
2333
  error: {
2327
2334
  invalid: "Невалиден",
2328
2335
  invalidDate: "Невалидна дата",
2336
+ invalidVat: "Невалиден номер по ДДС",
2329
2337
  mustBeFiveOrNineDigits: "Трябва да бъде пет или девет цифри",
2330
2338
  mustBeInDateFormat: "Трябва да бъде в този формат: ДД/ММ/ГГГГ",
2331
2339
  mustBeNineDigits: "Трябва да бъде девет цифри",
@@ -2884,6 +2892,7 @@ const vr = {
2884
2892
  error: {
2885
2893
  invalid: "Neplatné",
2886
2894
  invalidDate: "Neplatné datum",
2895
+ invalidVat: "Neplatné DIČ",
2887
2896
  mustBeFiveOrNineDigits: "Musí být pět nebo devět číslic",
2888
2897
  mustBeInDateFormat: "Musí být v tomto formátu: MM/DD/RRRR",
2889
2898
  mustBeNineDigits: "Musí být devět číslic",
@@ -3441,6 +3450,7 @@ const vr = {
3441
3450
  error: {
3442
3451
  invalid: "Ugyldig",
3443
3452
  invalidDate: "Ugyldig dato",
3453
+ invalidVat: "Ugyldigt momsregistreringsnummer",
3444
3454
  mustBeFiveOrNineDigits: "Skal være fem eller ni tal",
3445
3455
  mustBeInDateFormat: "Skal skrives som: MM/DD/ÅÅÅÅ",
3446
3456
  mustBeNineDigits: "Skal være ni tal",
@@ -3998,6 +4008,7 @@ const vr = {
3998
4008
  error: {
3999
4009
  invalid: "Ungültig",
4000
4010
  invalidDate: "Ungültiges Datum",
4011
+ invalidVat: "Ungültige Umsatzsteuer-Identifikationsnummer",
4001
4012
  mustBeFiveOrNineDigits: "Muss fünf- oder neunstellig sein",
4002
4013
  mustBeInDateFormat: "Muss in diesem Format vorliegen: MM/TT/JJJJ",
4003
4014
  mustBeNineDigits: "Muss neunstellig sein",
@@ -4555,6 +4566,7 @@ const vr = {
4555
4566
  error: {
4556
4567
  invalid: "Ungültig",
4557
4568
  invalidDate: "Ungültiges Datum",
4569
+ invalidVat: "Ungültige Umsatzsteuer-Identifikationsnummer",
4558
4570
  mustBeFiveOrNineDigits: "Muss fünf oder neun Ziffern aufweisen",
4559
4571
  mustBeInDateFormat: "Muss in diesem Format erfolgen: MM/TT/JJJJ",
4560
4572
  mustBeNineDigits: "Muss neun Ziffern aufweisen",
@@ -5112,6 +5124,8 @@ const vr = {
5112
5124
  error: {
5113
5125
  invalid: "Μη έγκυρο",
5114
5126
  invalidDate: "Μη έγκυρη ημερομηνία",
5127
+ // translate "Invalid VAT identification number"
5128
+ invalidVat: "Μη έγκυρος αριθμός ΦΠΑ",
5115
5129
  mustBeFiveOrNineDigits: "Πρέπει να αποτελείται από πέντε ή εννέα ψηφία",
5116
5130
  mustBeInDateFormat: "Πρέπει να έχει αυτή τη μορφή: ΜΜ/ΗΗ/ΕΕΕΕ",
5117
5131
  mustBeNineDigits: "Πρέπει να αποτελείται από εννέα ψηφία",
@@ -5669,6 +5683,8 @@ const vr = {
5669
5683
  error: {
5670
5684
  invalid: "Μη έγκυρο",
5671
5685
  invalidDate: "Μη έγκυρη ημερομηνία",
5686
+ // translate "Invalid VAT identification number"
5687
+ invalidVat: "Μη έγκυρος αριθμός ΦΠΑ",
5672
5688
  mustBeFiveOrNineDigits: "Πρέπει να περιέχει πέντε ή εννέα ψηφία",
5673
5689
  mustBeInDateFormat: "Πρέπει να έχει την εξής μορφή: ΗΗ/ΜΜ/ΕΕΕΕ",
5674
5690
  mustBeNineDigits: "Πρέπει να περιέχει εννέα ψηφία",
@@ -6226,6 +6242,7 @@ const vr = {
6226
6242
  error: {
6227
6243
  invalid: "Invalid",
6228
6244
  invalidDate: "Invalid Date",
6245
+ invalidVat: "Invalid VAT identification number",
6229
6246
  mustBeFiveOrNineDigits: "Must be five or nine digits",
6230
6247
  mustBeInDateFormat: "Must be in this format: DD/MM/YYYY",
6231
6248
  mustBeNineDigits: "Must be nine digits",
@@ -6783,6 +6800,7 @@ const vr = {
6783
6800
  error: {
6784
6801
  invalid: "Invalid",
6785
6802
  invalidDate: "Invalid Date",
6803
+ invalidVat: "Invalid VAT Identification Number",
6786
6804
  mustBeFiveOrNineDigits: "Must be five or nine digits",
6787
6805
  mustBeInDateFormat: "Must select a month, day, and year",
6788
6806
  mustBeNineDigits: "Must be nine digits",
@@ -7340,6 +7358,7 @@ const vr = {
7340
7358
  error: {
7341
7359
  invalid: "No válido",
7342
7360
  invalidDate: "Fecha no válida",
7361
+ invalidVat: "Número de IVA no válido",
7343
7362
  mustBeFiveOrNineDigits: "Debe tener de cinco a nueve dígitos.",
7344
7363
  mustBeInDateFormat: "Debe tener este formato: DD/MM/AAAA",
7345
7364
  mustBeNineDigits: "Debe tener nueve dígitos",
@@ -7897,6 +7916,7 @@ const vr = {
7897
7916
  error: {
7898
7917
  invalid: "Kehtetu",
7899
7918
  invalidDate: "Kehtetu kuupäev",
7919
+ invalidVat: "Kehtetu KMKR",
7900
7920
  mustBeFiveOrNineDigits: "Peab olema viis või üheksa numbrit",
7901
7921
  mustBeInDateFormat: "Peab olema vormingus: KK.PP.AAAA",
7902
7922
  mustBeNineDigits: "Peab olema üheksa numbrit",
@@ -8454,6 +8474,7 @@ const vr = {
8454
8474
  error: {
8455
8475
  invalid: "Virheellinen",
8456
8476
  invalidDate: "Virheellinen päivämäärä",
8477
+ invalidVat: "Virheellinen ALV-tunniste",
8457
8478
  mustBeFiveOrNineDigits: "Täytyy olla viisi tai yhdeksän numeroa",
8458
8479
  mustBeInDateFormat: "Täytyy olla tässä muodossa: KK/PP/VVVV",
8459
8480
  mustBeNineDigits: "Täytyy olla yhdeksän numeroa",
@@ -9011,6 +9032,7 @@ const vr = {
9011
9032
  error: {
9012
9033
  invalid: "Invalide",
9013
9034
  invalidDate: "Date non valide",
9035
+ invalidVat: "Numéro de TVA non valide",
9014
9036
  mustBeFiveOrNineDigits: "Doit compter cinq ou neuf chiffres",
9015
9037
  mustBeInDateFormat: "Doit être au format : JJ/MM/AAAA",
9016
9038
  mustBeNineDigits: "Doit compter neuf chiffres",
@@ -9568,6 +9590,7 @@ const vr = {
9568
9590
  error: {
9569
9591
  invalid: "Invalide",
9570
9592
  invalidDate: "Date invalide",
9593
+ invalidVat: "Numéro de TVA invalide",
9571
9594
  mustBeFiveOrNineDigits: "Doit contenir cinq ou neuf chiffres",
9572
9595
  mustBeInDateFormat: "Doit être au format : MM/JJ/AAAA",
9573
9596
  mustBeNineDigits: "Doit contenir neuf chiffres",
@@ -10125,6 +10148,7 @@ const vr = {
10125
10148
  error: {
10126
10149
  invalid: "Neamhbhailí",
10127
10150
  invalidDate: "Dáta Neamhbhailí",
10151
+ invalidVat: "Uimhir Aitheantais CBL Neamhbhailí",
10128
10152
  mustBeFiveOrNineDigits: "Ní mór cúig nó naoi ndigit a bheith ann",
10129
10153
  mustBeInDateFormat: "Caithfidh sé a bheith san fhormáid seo: MM/LL/BBBB",
10130
10154
  mustBeNineDigits: "Ní mór naoi ndigit a bheith ann",
@@ -10682,6 +10706,7 @@ const vr = {
10682
10706
  error: {
10683
10707
  invalid: "Neispravno",
10684
10708
  invalidDate: "Datum nije valjan",
10709
+ invalidVat: "Neispravan PDV ID broj",
10685
10710
  mustBeFiveOrNineDigits: "Mora imati pet ili devet znamenki",
10686
10711
  mustBeInDateFormat: "Mora biti u ovom obliku: MM/DD/GGGG",
10687
10712
  mustBeNineDigits: "Mora imati devet znamenki",
@@ -11100,7 +11125,7 @@ const vr = {
11100
11125
  "sl-si": "Slovenski",
11101
11126
  "sv-se": "Švedski"
11102
11127
  }
11103
- }, Rr = {
11128
+ }, Pr = {
11104
11129
  button: {
11105
11130
  back: "Vissza",
11106
11131
  cancel: "Mégse",
@@ -11239,6 +11264,7 @@ const vr = {
11239
11264
  error: {
11240
11265
  invalid: "Érvénytelen",
11241
11266
  invalidDate: "Érvénytelen dátum",
11267
+ invalidVat: "Érvénytelen HÉA-azonosító szám",
11242
11268
  mustBeFiveOrNineDigits: "Öt vagy kilenc számjegyből kell állnia",
11243
11269
  mustBeInDateFormat: "A következő formátumban kell lennie: HH/NN/ÉÉÉÉ",
11244
11270
  mustBeNineDigits: "Kilenc számjegyből kell állnia",
@@ -11657,7 +11683,7 @@ const vr = {
11657
11683
  "sl-si": "Szlovén",
11658
11684
  "sv-se": "Svéd"
11659
11685
  }
11660
- }, Pr = {
11686
+ }, Rr = {
11661
11687
  button: {
11662
11688
  back: "Indietro",
11663
11689
  cancel: "Annulla",
@@ -11796,6 +11822,7 @@ const vr = {
11796
11822
  error: {
11797
11823
  invalid: "Non valido",
11798
11824
  invalidDate: "Data non valida",
11825
+ invalidVat: "Numero di partita IVA non valido",
11799
11826
  mustBeFiveOrNineDigits: "Deve essere composto da cinque o nove cifre",
11800
11827
  mustBeInDateFormat: "Deve essere nel seguente formato: MM/GG/AAAA",
11801
11828
  mustBeNineDigits: "Deve essere composto da nove cifre",
@@ -12353,6 +12380,7 @@ const vr = {
12353
12380
  error: {
12354
12381
  invalid: "Neteisinga",
12355
12382
  invalidDate: "Neteisinga data",
12383
+ invalidVat: "Neteisingas PVM mokėtojo numeris",
12356
12384
  mustBeFiveOrNineDigits: "Turi būti penki arba devyni skaitmenys",
12357
12385
  mustBeInDateFormat: "Turi būti šio formato: MM/DD/MMMM",
12358
12386
  mustBeNineDigits: "Turi būti devyni skaitmenys",
@@ -12910,6 +12938,7 @@ const vr = {
12910
12938
  error: {
12911
12939
  invalid: "Nederīgs",
12912
12940
  invalidDate: "Nederīgs datums",
12941
+ invalidVat: "Nederīgs PVN numurs",
12913
12942
  mustBeFiveOrNineDigits: "Jābūt pieciem vai deviņiem cipariem",
12914
12943
  mustBeInDateFormat: "Jābūt šajā formātā: MM/DD/YYYY",
12915
12944
  mustBeNineDigits: "Jābūt deviņiem cipariem",
@@ -13467,6 +13496,7 @@ const vr = {
13467
13496
  error: {
13468
13497
  invalid: "Invalidu/a",
13469
13498
  invalidDate: "Data Invalida",
13499
+ invalidVat: "Numru ta’ Identifikazzjoni tal-VAT Invalidu",
13470
13500
  mustBeFiveOrNineDigits: "Trid tkun ħames jew disa’ ċifri",
13471
13501
  mustBeInDateFormat: "Trid tkun f’dan il-format: XX/JJ/SSSS",
13472
13502
  mustBeNineDigits: "Trid tkun f’disa’ ċifri",
@@ -14024,6 +14054,7 @@ const vr = {
14024
14054
  error: {
14025
14055
  invalid: "Ongeldig",
14026
14056
  invalidDate: "Ongeldige datum",
14057
+ invalidVat: "Ongeldig btw-identificatienummer",
14027
14058
  mustBeFiveOrNineDigits: "Moet uit vijf of negen cijfers bestaan",
14028
14059
  mustBeInDateFormat: "Moet de volgende notatie hebben: MM/DD/JJJJ",
14029
14060
  mustBeNineDigits: "Moet uit negen cijfers bestaan",
@@ -14581,6 +14612,7 @@ const vr = {
14581
14612
  error: {
14582
14613
  invalid: "Ongeldig",
14583
14614
  invalidDate: "Ongeldige datum",
14615
+ invalidVat: "Ongeldig btw-identificatienummer",
14584
14616
  mustBeFiveOrNineDigits: "Moet uit vijf of negen cijfers bestaan",
14585
14617
  mustBeInDateFormat: "Moet de volgende notatie hebben: MM/DD/JJJJ",
14586
14618
  mustBeNineDigits: "Moet uit negen cijfers bestaan",
@@ -15135,6 +15167,7 @@ const vr = {
15135
15167
  error: {
15136
15168
  invalid: "Ugyldig",
15137
15169
  invalidDate: "Ugyldig dato",
15170
+ invalidVat: "Ugyldig MVA-nummer",
15138
15171
  mustBeFiveOrNineDigits: "Må være fem eller ni sifre",
15139
15172
  mustBeInDateFormat: "Må velge måned, dag og år",
15140
15173
  mustBeNineDigits: "Må være ni sifre",
@@ -15695,6 +15728,7 @@ const vr = {
15695
15728
  error: {
15696
15729
  invalid: "Nieprawidłowe",
15697
15730
  invalidDate: "Nieprawidłowa data",
15731
+ invalidVat: "Nieprawidłowy numer identyfikacji podatkowej VAT",
15698
15732
  mustBeFiveOrNineDigits: "Musi mieć pięć lub dziewięć cyfr",
15699
15733
  mustBeInDateFormat: "Musi być w tym formacie MM/DD/RRRR",
15700
15734
  mustBeNineDigits: "Musi mieć dziewięć cyfr",
@@ -16252,6 +16286,7 @@ const vr = {
16252
16286
  error: {
16253
16287
  invalid: "Inválido",
16254
16288
  invalidDate: "Data inválida",
16289
+ invalidVat: "Número de identificação fiscal inválido",
16255
16290
  mustBeFiveOrNineDigits: "Deve ter cinco ou nove dígitos",
16256
16291
  mustBeInDateFormat: "Deve ter o seguinte formato: MM/DD/AAAA",
16257
16292
  mustBeNineDigits: "Deve ter nove dígitos",
@@ -16809,6 +16844,7 @@ const vr = {
16809
16844
  error: {
16810
16845
  invalid: "Nevalid",
16811
16846
  invalidDate: "Dată nevalidă",
16847
+ invalidVat: "Număr de identificare TVA nevalid",
16812
16848
  mustBeFiveOrNineDigits: "Trebuie să aibă cinci sau nouă cifre",
16813
16849
  mustBeInDateFormat: "Trebuie să fie în acest format: LL/ZZ/AAAA",
16814
16850
  mustBeNineDigits: "Trebuie să aibă nouă cifre",
@@ -17366,6 +17402,7 @@ const vr = {
17366
17402
  error: {
17367
17403
  invalid: "Neplatné",
17368
17404
  invalidDate: "Neplatný dátum",
17405
+ invalidVat: "Neplatné IČ DPH",
17369
17406
  mustBeFiveOrNineDigits: "Musí mať päť alebo deväť číslic",
17370
17407
  mustBeInDateFormat: "Musí byť v tomto formáte: DD/MM/RRRR",
17371
17408
  mustBeNineDigits: "Musí mať deväť číslic",
@@ -17923,6 +17960,7 @@ const vr = {
17923
17960
  error: {
17924
17961
  invalid: "Neveljavno",
17925
17962
  invalidDate: "Neveljaven datum",
17963
+ invalidVat: "Neveljavna identifikacijska številka za DDV",
17926
17964
  mustBeFiveOrNineDigits: "Vsebovati mora pet ali devet števk",
17927
17965
  mustBeInDateFormat: "Biti mora v tej obliki: MM/DD/LLLL",
17928
17966
  mustBeNineDigits: "Vsebovati mora devet števk",
@@ -18480,6 +18518,7 @@ const vr = {
18480
18518
  error: {
18481
18519
  invalid: "Ogiltig",
18482
18520
  invalidDate: "Ogiltigt datum",
18521
+ invalidVat: "Ogiltigt momsregistreringsnummer",
18483
18522
  mustBeFiveOrNineDigits: "Måste vara fem eller nio siffror",
18484
18523
  mustBeInDateFormat: "Måste vara i detta format: MM/DD/ÅÅÅÅ",
18485
18524
  mustBeNineDigits: "Måste vara nio siffror",
@@ -18899,7 +18938,7 @@ const vr = {
18899
18938
  12: "December"
18900
18939
  }
18901
18940
  }, Ja = {
18902
- "bg-bg": vr,
18941
+ "bg-bg": pr,
18903
18942
  "cs-cz": fr,
18904
18943
  "da-dk": Ar,
18905
18944
  "de-at": br,
@@ -18915,8 +18954,8 @@ const vr = {
18915
18954
  "fr-lu": zr,
18916
18955
  "ga-ie": Er,
18917
18956
  "hr-hr": Br,
18918
- "hu-hu": Rr,
18919
- "it-it": Pr,
18957
+ "hu-hu": Pr,
18958
+ "it-it": Rr,
18920
18959
  "lt-lt": wr,
18921
18960
  "lv-lv": Hr,
18922
18961
  "mt-mt": Lr,
@@ -19008,22 +19047,22 @@ const vr = {
19008
19047
  onSuccess: r,
19009
19048
  staging: o
19010
19049
  }) => {
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
19050
+ var v, A, f, y, B;
19051
+ 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 ? [
19052
+ {
19053
+ type: "vat",
19054
+ status: "invalid",
19055
+ identifier: (f = l == null ? void 0 : l.accountHolder) == null ? void 0 : f.vatin
19056
+ }
19057
+ ] : [], g = async (I) => {
19058
+ n && n(I), await d(I), r && r(I);
19059
+ }, c = (s == null ? void 0 : s.submissionStatus) === "NOT_SUBMITTED" ? s.submissionStatus : (y = s == null ? void 0 : s.DAC7Interview) == null ? void 0 : y.dataCollectionStatus;
19060
+ return {
19061
+ handleOnSubmit: g,
19062
+ externalValidations: k,
19063
+ formData: m,
19064
+ isComplete: ((B = s == null ? void 0 : s.DAC7Interview) == null ? void 0 : B.dataCollectionStatus) === "COMPLETE",
19065
+ isLoading: !c || c !== "NOT_SUBMITTED" && !l
19027
19066
  };
19028
19067
  }, ht = () => {
19029
19068
  const e = At(void 0);
@@ -19046,19 +19085,20 @@ const vr = {
19046
19085
  }, oo = ({
19047
19086
  data: e,
19048
19087
  language: a = "en-us",
19049
- onSubmit: n,
19050
- onProgress: r,
19051
- step: o = "AccountHolderClassification",
19052
- taxForms: s = ["DAC7"]
19088
+ externalValidations: n,
19089
+ onSubmit: r,
19090
+ onProgress: o,
19091
+ step: s = "AccountHolderClassification",
19092
+ taxForms: d = ["DAC7"]
19053
19093
  }) => {
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(
19094
+ const l = Za(e), [m, k] = W(a), [g, c] = W(d), [v, A] = W(), [f, y] = W(
19095
+ Yn(e, g)
19096
+ ), [B, I] = W([s]), [z, p] = W(
19057
19097
  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) => ({
19098
+ ), { isW9: G, isW8: J, isW8Ben: X, isW8BenE: ce, isDac7: T } = xa(
19099
+ f,
19100
+ g
19101
+ ), M = B[B.length - 1], H = ee(() => $n(f), [f]), te = (O) => ({
19062
19102
  AccountHolderContact: "accountHolderContactInformation",
19063
19103
  AccountHolderTax: "accountHolderTaxInformation",
19064
19104
  AccountHolderTaxClarification: "accountHolderTaxClarification",
@@ -19069,25 +19109,25 @@ const vr = {
19069
19109
  RegardedOwnerContact: "regardedOwnerContactInformation",
19070
19110
  RegardedOwnerTax: "regardedOwnerTaxInformation",
19071
19111
  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,
19112
+ })[O];
19113
+ _(() => {
19114
+ const O = H.indexOf(M);
19115
+ A({
19116
+ stepNumber: O + 1,
19117
+ stepIndex: O,
19118
+ totalSteps: H.length,
19079
19119
  percentComplete: Math.round(
19080
- z / (G.length - 1) * 100
19120
+ O / (H.length - 1) * 100
19081
19121
  ),
19082
- stepTitle: kt(ie(j), l),
19083
- stepId: ie(j),
19084
- steps: G.map((U) => ie(U)),
19085
- language: l
19122
+ stepTitle: kt(te(M), m),
19123
+ stepId: te(M),
19124
+ steps: H.map((F) => te(F)),
19125
+ language: m
19086
19126
  });
19087
- }, [l, j, G]), Y(() => {
19088
- g && r && r(g);
19089
- }, [r, g]);
19090
- const Be = {
19127
+ }, [m, M, H]), _(() => {
19128
+ v && o && o(v);
19129
+ }, [o, v]);
19130
+ const Se = {
19091
19131
  regardedOwnerUsPerson: void 0,
19092
19132
  regardedOwnerUsAccountType: void 0,
19093
19133
  regardedOwnerUsLlcClassification: void 0,
@@ -19096,91 +19136,94 @@ const vr = {
19096
19136
  regardedOwnerForeignAccountType: void 0,
19097
19137
  regardedOwnerForeignTrustClassification: void 0,
19098
19138
  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]);
19139
+ }, q = (O) => {
19140
+ const F = re(O);
19141
+ y(O), r(ur(O)), ge(F);
19142
+ }, ie = it(
19143
+ (O) => {
19144
+ JSON.stringify(O) !== JSON.stringify(l.current) && (y(Yn(O, g)), p(void 0), I([s]));
19105
19145
  },
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
19146
+ [g, s]
19147
+ ), re = (O) => {
19148
+ const F = $n(O), we = F.indexOf(M);
19149
+ return F[we + 1] || "Summary";
19150
+ }, Ae = (O) => {
19151
+ const F = re(O);
19152
+ F === "Summary" && p(void 0), ge(F);
19153
+ }, me = (O) => {
19154
+ const F = {
19155
+ ...f,
19156
+ ...O
19117
19157
  };
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));
19158
+ y(F), z === void 0 ? Ae(F) : I(["Summary"]);
19159
+ }, Ne = (O) => {
19160
+ f.accountHolderUsAccountType !== O.accountHolderUsAccountType || f.accountHolderForeignAccountType !== O.accountHolderForeignAccountType ? me({
19161
+ ...O,
19162
+ ...Se
19163
+ }) : me(O);
19164
+ }, ge = (O) => {
19165
+ I([...B, O]);
19166
+ }, Te = (O) => {
19167
+ I([O]), p(f);
19168
+ }, Me = z !== void 0 ? () => {
19169
+ y(z), p(void 0), I(["Summary"]);
19170
+ } : void 0, ye = B.length > 1 ? () => {
19171
+ I(B.slice(0, B.length - 1));
19132
19172
  } : void 0;
19133
19173
  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
19174
+ isW9: G,
19175
+ isW8: J,
19176
+ isW8Ben: X,
19177
+ isW8BenE: ce,
19178
+ isDac7: T,
19179
+ onPersistAccountHolderData: Ne,
19180
+ onPersistCollectedData: me,
19181
+ onSubmitTaxDocumentation: q,
19182
+ onResetTaxDocumentation: ie,
19183
+ editTo: Te,
19184
+ onCancel: Me,
19185
+ getStepId: te,
19186
+ goTo: ge,
19187
+ goBack: ye,
19188
+ goToNext: Ae,
19189
+ progress: v,
19190
+ stepName: M,
19191
+ data: f,
19192
+ setLanguage: k,
19193
+ language: m,
19194
+ supportedForms: g,
19195
+ setSupportedForms: c,
19196
+ externalValidations: n
19156
19197
  };
19157
19198
  }, so = ({
19158
19199
  data: e = {},
19159
- onSubmit: a,
19160
- onProgress: n,
19161
- language: r,
19162
- taxForms: o,
19163
- step: s,
19200
+ externalValidations: a,
19201
+ onSubmit: n,
19202
+ onProgress: r,
19203
+ language: o,
19204
+ taxForms: s,
19205
+ step: d,
19164
19206
  children: l
19165
19207
  }) => /* @__PURE__ */ i.jsx(
19166
19208
  ro,
19167
19209
  {
19168
19210
  value: oo({
19169
19211
  data: e,
19170
- onSubmit: a,
19171
- language: r,
19172
- taxForms: o,
19173
- step: s,
19174
- onProgress: n
19212
+ onSubmit: n,
19213
+ language: o,
19214
+ taxForms: s,
19215
+ externalValidations: a,
19216
+ step: d,
19217
+ onProgress: r
19175
19218
  }),
19176
19219
  children: l
19177
19220
  }
19178
19221
  ), [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 = {
19222
+ const n = (p) => {
19223
+ const G = $t(e);
19224
+ return G[p] ? G[p] : p;
19225
+ }, r = (p) => {
19226
+ const G = {
19184
19227
  accountHolderUsSmllcElection: "smllcElection",
19185
19228
  iConfirmIncomeIsNonUs: "iConfirmIncomeIsNonUs",
19186
19229
  accountHolderIsEuResident: "isEuResident",
@@ -19190,29 +19233,29 @@ const vr = {
19190
19233
  accountHolderVatIdentificationNumber: "vatIdentificationNumber",
19191
19234
  accountHolderCityOfBirth: "placeOfBirth"
19192
19235
  };
19193
- return L[v] ? L[v] : v;
19194
- }, o = (v) => {
19195
- const L = _t();
19196
- return L[v] ? L[v] : v;
19236
+ return G[p] ? G[p] : p;
19237
+ }, o = (p) => {
19238
+ const G = _t();
19239
+ return G[p] ? G[p] : p;
19197
19240
  };
19198
19241
  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;
19242
+ getLocalHint: (p) => _r(o(p), a),
19243
+ getLocalText: (p) => gt(p, a),
19244
+ getLocalTitle: (p) => kt(p, a),
19245
+ getLocalSubTitle: (p) => Qr(p, a),
19246
+ getLocalError: (p) => Yr(p, a),
19247
+ getLocalLocale: (p) => no(p, a),
19248
+ getLocalButton: (p) => Xr(p, a),
19249
+ getLocalPrompt: (p) => Zr(n(p), a),
19250
+ getLocalSubPrompt: (p) => qr(r(p), a),
19251
+ getLocalOption: (p) => {
19252
+ if (p)
19253
+ return Xn(p, a) ? Xn(p, a) : p;
19211
19254
  },
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) : "",
19255
+ getLocalCountry: (p) => p ? $r(p, a) : "",
19256
+ getLocalUsState: (p) => p ? eo(p, a) : "",
19257
+ getLocalCaProvince: (p) => p ? ao(p, a) : "",
19258
+ getLocalMonth: (p) => p ? io(p, a) : "",
19216
19259
  getHintKey: o,
19217
19260
  getPromptKey: n,
19218
19261
  getSubPromptKey: r
@@ -19228,89 +19271,98 @@ const vr = {
19228
19271
  const {
19229
19272
  language: e,
19230
19273
  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(
19274
+ supportedForms: n,
19275
+ externalValidations: r
19276
+ } = ae(), [o, s] = W(a), [d, l] = W(!1), [m, k] = W(/* @__PURE__ */ new Set()), g = ee(
19277
+ () => gr(o, n),
19278
+ [o, n]
19279
+ ), c = ee(
19236
19280
  () => Object.fromEntries(
19237
- [...d].map((I) => [I, !0])
19281
+ [...m].map((T) => [T, !0])
19238
19282
  ),
19239
- [d]
19240
- ), c = ee(() => {
19241
- const I = ut(r);
19283
+ [m]
19284
+ ), v = ee(() => {
19285
+ const T = ut(o);
19242
19286
  return Object.fromEntries(
19243
- Object.keys(g).map((j) => [
19244
- j,
19245
- I[j]
19287
+ Object.keys(c).map((M) => [
19288
+ M,
19289
+ T[M]
19246
19290
  ])
19247
19291
  );
19248
- }, [r, g]), p = ee(() => {
19249
- const I = mr(r);
19292
+ }, [o, c]), A = ee(() => {
19293
+ const T = mr(o, r);
19250
19294
  return Object.fromEntries(
19251
- Object.keys(g).map((j) => [j, I[j]]).filter(([, j]) => j)
19295
+ Object.keys(c).map((M) => [M, T[M]]).filter(([, M]) => M)
19252
19296
  );
19253
- }, [r, g]);
19254
- Y(() => {
19255
- o(a);
19297
+ }, [o, c, r]);
19298
+ _(() => {
19299
+ s(a);
19256
19300
  }, [a]);
19257
19301
  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
19302
+ (T, M) => {
19303
+ if (/accountHolderShowTaxResidence[234]/.test(T) && M === void 0) {
19304
+ const H = parseInt(T.slice(-1));
19305
+ M !== o[T] && s(co(o, H));
19306
+ } else if (/AddressCountry/.test(T)) {
19307
+ if (M !== o[T]) {
19308
+ const H = T.split("Address")[0] + "Address";
19309
+ s((te) => ({
19310
+ ...te,
19311
+ [T]: M,
19312
+ [H]: M
19269
19313
  }));
19270
19314
  }
19271
19315
  } else
19272
- j !== r[I] && o((G) => ({
19273
- ...G,
19274
- [I]: j
19316
+ M !== o[T] && s((H) => ({
19317
+ ...H,
19318
+ [T]: M
19275
19319
  }));
19276
19320
  },
19277
- [r]
19278
- ), C = () => {
19321
+ [o]
19322
+ ), y = (T) => {
19323
+ if (r && r.length > 0) {
19324
+ const M = r.find(
19325
+ (H) => H.type === "vat" && H.identifier === o.accountHolderVatIdentificationNumber
19326
+ );
19327
+ return T === "accountHolderVatIdentificationNumber" && !!M;
19328
+ }
19329
+ }, B = () => {
19279
19330
  l(!0);
19280
- }, N = () => {
19331
+ }, I = () => {
19281
19332
  l(!1);
19282
- }, T = Object.keys(p).length === 0, y = uo(r, e);
19333
+ }, z = Object.keys(A).length === 0, p = uo(o, e);
19283
19334
  return {
19284
- clearIfNotRequired: (...I) => (j) => {
19285
- j === "yes" && I.forEach((G) => {
19286
- f(G, "");
19335
+ clearIfNotRequired: (...T) => (M) => {
19336
+ M === "yes" && T.forEach((H) => {
19337
+ f(H, "");
19287
19338
  });
19288
19339
  },
19289
- fields: r,
19290
- setFields: o,
19340
+ fields: o,
19341
+ setFields: s,
19291
19342
  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,
19343
+ isErrorFree: z,
19344
+ showErrors: d,
19345
+ showErrorsForField: y,
19346
+ exposeErrors: B,
19347
+ hideErrors: I,
19348
+ getRequiredLocalPrompt: (T) => p.getLocalPrompt(T) + (v[T] ? "*" : ""),
19349
+ invalidFields: A,
19298
19350
  // (must be visible)
19299
- requiredFields: c,
19351
+ requiredFields: v,
19300
19352
  // (must be visible)
19301
- visibleFields: h,
19353
+ visibleFields: g,
19302
19354
  // (must be supported)
19303
- hideField: (I) => {
19304
- d.has(I) && m((j) => new Set([...j].filter((G) => G !== I))), f(I, void 0);
19355
+ hideField: (T) => {
19356
+ m.has(T) && k((M) => new Set([...M].filter((H) => H !== T))), f(T, void 0);
19305
19357
  },
19306
- showField: (I) => {
19307
- d.has(I) || m((j) => /* @__PURE__ */ new Set([...j, I]));
19358
+ showField: (T) => {
19359
+ m.has(T) || k((M) => /* @__PURE__ */ new Set([...M, T]));
19308
19360
  },
19309
- ...y
19361
+ ...p
19310
19362
  };
19311
- }, de = ({ children: e }) => /* @__PURE__ */ i.jsx(lo, { value: mo(), children: e }), go = ({ address: e, className: a }) => {
19363
+ }, ue = ({ children: e }) => /* @__PURE__ */ i.jsx(lo, { value: mo(), children: e }), go = ({ address: e, className: a }) => {
19312
19364
  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: [
19365
+ return /* @__PURE__ */ i.jsxs("div", { className: le(a, "address"), children: [
19314
19366
  /* @__PURE__ */ i.jsx("div", { children: e.street }),
19315
19367
  e.street2 && /* @__PURE__ */ i.jsx("div", { children: e.street2 }),
19316
19368
  /* @__PURE__ */ i.jsxs("div", { children: [
@@ -19320,19 +19372,25 @@ const vr = {
19320
19372
  ] }),
19321
19373
  e.country && /* @__PURE__ */ i.jsx("div", { children: n(e.country) })
19322
19374
  ] });
19323
- }, Ee = ({
19375
+ }, Re = ({
19324
19376
  name: e,
19325
19377
  hint: a
19326
19378
  }) => {
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,
19379
+ const {
19380
+ invalidFields: n,
19381
+ showErrors: r,
19382
+ showErrorsForField: o,
19383
+ getLocalError: s,
19384
+ getLocalHint: d
19385
+ } = E(), l = n[e] ? n[e].map((m) => s(m)) : void 0;
19386
+ return l && (r || o(e)) ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-error-message", children: l.map((m) => /* @__PURE__ */ i.jsxs(nt, { children: [
19387
+ m,
19330
19388
  /* @__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(
19389
+ ] }, m)) }) : a ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-hint", children: d(e) }) : null;
19390
+ }, pe = ({ children: e, title: a, actions: n, className: r }) => /* @__PURE__ */ i.jsxs(
19333
19391
  "form",
19334
19392
  {
19335
- className: se("taxbit-page", r),
19393
+ className: le("taxbit-page", r),
19336
19394
  onSubmit: () => !1,
19337
19395
  children: [
19338
19396
  /* @__PURE__ */ i.jsxs("header", { className: "taxbit-page-header", children: [
@@ -19342,27 +19400,27 @@ const vr = {
19342
19400
  e
19343
19401
  ]
19344
19402
  }
19345
- ), fe = ({
19403
+ ), Ie = ({
19346
19404
  children: e,
19347
19405
  className: a
19348
- }) => /* @__PURE__ */ i.jsx("div", { className: se(a, "taxbit-input-status"), children: e }), $a = ({
19406
+ }) => /* @__PURE__ */ i.jsx("div", { className: le(a, "taxbit-input-status"), children: e }), ei = ({
19349
19407
  label: e,
19350
19408
  subLabel: a,
19351
19409
  value: n,
19352
19410
  children: r,
19353
19411
  onEdit: o,
19354
19412
  name: s,
19355
- className: l
19413
+ className: d
19356
19414
  }) => {
19357
- const { invalidFields: d, showErrors: m, getLocalButton: h } = E();
19415
+ const { invalidFields: l, showErrors: m, showErrorsForField: k, getLocalButton: g } = E();
19358
19416
  return /* @__PURE__ */ i.jsxs(
19359
19417
  "div",
19360
19418
  {
19361
- className: se(
19419
+ className: le(
19362
19420
  "taxbit-row",
19363
- s && `taxbit-question-${oa(s)}`,
19364
- s && m && d[s] && "taxbit-error",
19365
- l
19421
+ s && `taxbit-question-${la(s)}`,
19422
+ s && (m || k(s)) && l[s] && "taxbit-error",
19423
+ d
19366
19424
  ),
19367
19425
  children: [
19368
19426
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-label", children: [
@@ -19375,20 +19433,20 @@ const vr = {
19375
19433
  "button",
19376
19434
  {
19377
19435
  onClick: o,
19378
- className: se(
19436
+ className: le(
19379
19437
  "taxbit-button",
19380
19438
  "taxbit-row-edit-button",
19381
19439
  "taxbit-row-action-button"
19382
19440
  ),
19383
19441
  type: "button",
19384
- children: /* @__PURE__ */ i.jsx("div", { className: "taxbit-row-edit-button-content", children: h("edit") })
19442
+ children: /* @__PURE__ */ i.jsx("div", { className: "taxbit-row-edit-button-content", children: g("edit") })
19385
19443
  }
19386
19444
  ) })
19387
19445
  ] })
19388
19446
  ]
19389
19447
  }
19390
19448
  );
19391
- }, oe = ({
19449
+ }, se = ({
19392
19450
  title: e,
19393
19451
  subTitle: a,
19394
19452
  showIf: n = !0,
@@ -19399,14 +19457,14 @@ const vr = {
19399
19457
  a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-section-sub-title", children: a })
19400
19458
  ] }),
19401
19459
  r
19402
- ] }) : r, ze = [{ value: "yes" }, { value: "no" }], ko = () => {
19460
+ ] }) : r, Pe = [{ value: "yes" }, { value: "no" }], ko = () => {
19403
19461
  const { language: e, setLanguage: a } = ae(), { getLocalLocale: n } = E(), r = (s) => {
19404
- const l = s.target.value;
19405
- a(l);
19462
+ const d = s.target.value;
19463
+ a(d);
19406
19464
  }, o = Lt.map((s) => ({
19407
19465
  ...s,
19408
19466
  label: n(s.value)
19409
- })).sort((s, l) => s.label.localeCompare(l.label));
19467
+ })).sort((s, d) => s.label.localeCompare(d.label));
19410
19468
  return /* @__PURE__ */ i.jsx(
19411
19469
  "select",
19412
19470
  {
@@ -19427,23 +19485,23 @@ const vr = {
19427
19485
  "RegardedOwnerContact",
19428
19486
  "RegardedOwnerTax",
19429
19487
  "Summary"
19430
- ], po = (e) => ho.includes(e), sa = (e) => {
19431
- if (po(e))
19488
+ ], vo = (e) => ho.includes(e), da = (e) => {
19489
+ if (vo(e))
19432
19490
  return e;
19433
19491
  throw new Error(`Invalid input step: ${e}`);
19434
- }, he = ({
19492
+ }, fe = ({
19435
19493
  onBack: e,
19436
19494
  onCancel: a,
19437
19495
  onNext: n,
19438
19496
  onSubmit: r,
19439
19497
  onReset: o
19440
19498
  }) => {
19441
- const { isErrorFree: s, exposeErrors: l, getLocalButton: d } = E(), m = s ? n : l, h = s ? r : l;
19499
+ const { isErrorFree: s, exposeErrors: d, getLocalButton: l } = E(), m = s ? n : d, k = s ? r : d;
19442
19500
  return /* @__PURE__ */ i.jsxs("footer", { className: "taxbit-step-actions", children: [
19443
19501
  /* @__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") })
19502
+ a && /* @__PURE__ */ i.jsx("button", { onClick: a, type: "button", className: "taxbit-button", children: l("cancel") }),
19503
+ e && /* @__PURE__ */ i.jsx("button", { onClick: e, type: "button", className: "taxbit-button", children: l("back") }),
19504
+ o && /* @__PURE__ */ i.jsx("button", { onClick: o, type: "button", className: "taxbit-button", children: l("reset") })
19447
19505
  ] }),
19448
19506
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-primary-actions", children: [
19449
19507
  n && /* @__PURE__ */ i.jsx(
@@ -19452,27 +19510,27 @@ const vr = {
19452
19510
  onClick: m,
19453
19511
  type: "button",
19454
19512
  className: "taxbit-button",
19455
- children: d("next")
19513
+ children: l("next")
19456
19514
  }
19457
19515
  ),
19458
19516
  r && /* @__PURE__ */ i.jsx(
19459
19517
  "button",
19460
19518
  {
19461
- onClick: h,
19519
+ onClick: k,
19462
19520
  type: "button",
19463
19521
  className: "taxbit-button",
19464
- children: d("submit")
19522
+ children: l("submit")
19465
19523
  }
19466
19524
  )
19467
19525
  ] })
19468
19526
  ] });
19469
- }, vo = ({ label: e, subLabel: a, name: n, onClick: r }) => {
19470
- const { fields: o, setValue: s, getLocalPrompt: l, getLocalSubPrompt: d } = E(), m = (c) => {
19527
+ }, po = ({ label: e, subLabel: a, name: n, onClick: r }) => {
19528
+ const { fields: o, setValue: s, getLocalPrompt: d, getLocalSubPrompt: l } = E(), m = (c) => {
19471
19529
  r && r(c), s(n, c);
19472
- }, h = o[n], g = (c) => {
19530
+ }, k = o[n], g = (c) => {
19473
19531
  m(c.target.checked ? "yes" : void 0);
19474
19532
  };
19475
- return /* @__PURE__ */ i.jsxs(fe, { children: [
19533
+ return /* @__PURE__ */ i.jsxs(Ie, { children: [
19476
19534
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-checkBox-label", children: [
19477
19535
  /* @__PURE__ */ i.jsx(
19478
19536
  "input",
@@ -19481,59 +19539,59 @@ const vr = {
19481
19539
  id: n,
19482
19540
  name: n,
19483
19541
  "aria-label": n,
19484
- checked: h === "yes",
19542
+ checked: k === "yes",
19485
19543
  onChange: g,
19486
19544
  className: "taxbit-check-box"
19487
19545
  }
19488
19546
  ),
19489
19547
  /* @__PURE__ */ i.jsxs("label", { htmlFor: n, children: [
19490
- e && l(n),
19491
- a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-sub-label", children: d(n) })
19548
+ e && d(n),
19549
+ a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-sub-label", children: l(n) })
19492
19550
  ] })
19493
19551
  ] }),
19494
- /* @__PURE__ */ i.jsx(Ee, { name: n })
19552
+ /* @__PURE__ */ i.jsx(Re, { name: n })
19495
19553
  ] });
19496
19554
  }, 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(
19555
+ 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
19556
  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)
19557
+ l !== "" ? parseInt(l) : void 0
19558
+ ) : Dn.length, k = xt.map((f) => ({
19559
+ ...f,
19560
+ label: r(f.value)
19561
+ })), g = (f, y, B) => {
19562
+ if (!y)
19505
19563
  return !0;
19506
- const y = Kn(
19507
- parseInt(N),
19508
- V(T) ? parseInt(T) : void 0
19564
+ const I = Kn(
19565
+ parseInt(y),
19566
+ D(B) ? parseInt(B) : void 0
19509
19567
  );
19510
- return V(C) && y >= parseInt(C);
19568
+ return D(f) && I >= parseInt(f);
19511
19569
  };
19512
19570
  return {
19513
19571
  mm: s,
19514
- dd: l,
19515
- yyyy: d,
19516
- handleDayChange: (C) => {
19517
- const N = C.target.value;
19518
- n(e, `${s || ""}/${N}/${d || ""}`);
19572
+ dd: d,
19573
+ yyyy: l,
19574
+ handleDayChange: (f) => {
19575
+ const y = f.target.value;
19576
+ n(e, `${s || ""}/${y}/${l || ""}`);
19519
19577
  },
19520
- handleMonthChange: (C) => {
19521
- const N = C.target.value;
19578
+ handleMonthChange: (f) => {
19579
+ const y = f.target.value;
19522
19580
  n(
19523
19581
  e,
19524
- `${N}/${g(l, N, d) ? l : ""}/${d || ""}`
19582
+ `${y}/${g(d, y, l) ? d : ""}/${l || ""}`
19525
19583
  );
19526
19584
  },
19527
- handleYearChange: (C) => {
19528
- const N = C.target.value;
19585
+ handleYearChange: (f) => {
19586
+ const y = f.target.value;
19529
19587
  n(
19530
19588
  e,
19531
- `${s || ""}/${g(l, s, N) ? l : ""}/${N}`
19589
+ `${s || ""}/${g(d, s, y) ? d : ""}/${y}`
19532
19590
  );
19533
19591
  },
19534
19592
  dayOptions: Dn.slice(0, m),
19535
19593
  birthYearOptions: Yt,
19536
- monthOptions: h
19594
+ monthOptions: k
19537
19595
  };
19538
19596
  }, Ao = ({
19539
19597
  name: e,
@@ -19543,15 +19601,15 @@ const vr = {
19543
19601
  const { getLocalPrompt: r } = E(), {
19544
19602
  dd: o,
19545
19603
  mm: s,
19546
- yyyy: l,
19547
- handleDayChange: d,
19604
+ yyyy: d,
19605
+ handleDayChange: l,
19548
19606
  handleMonthChange: m,
19549
- handleYearChange: h,
19607
+ handleYearChange: k,
19550
19608
  dayOptions: g,
19551
19609
  monthOptions: c,
19552
- birthYearOptions: p
19610
+ birthYearOptions: v
19553
19611
  } = fo(e);
19554
- return /* @__PURE__ */ i.jsxs(fe, { className: a, children: [
19612
+ return /* @__PURE__ */ i.jsxs(Ie, { className: a, children: [
19555
19613
  /* @__PURE__ */ i.jsxs("div", { className: "taxbit-row-value", children: [
19556
19614
  /* @__PURE__ */ i.jsxs(
19557
19615
  "select",
@@ -19560,69 +19618,69 @@ const vr = {
19560
19618
  value: s,
19561
19619
  name: `${e}Month`,
19562
19620
  "aria-label": `${e}Month`,
19563
- className: se(
19621
+ className: le(
19564
19622
  "taxbit-select",
19565
19623
  "taxbit-select-month",
19566
- P(s) ? "taxbit-placeholder" : ""
19624
+ R(s) ? "taxbit-placeholder" : ""
19567
19625
  ),
19568
19626
  children: [
19569
19627
  /* @__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))
19628
+ c.map((A) => /* @__PURE__ */ i.jsx("option", { value: A.value, children: A.label ? A.label : A.value }, A.value))
19571
19629
  ]
19572
19630
  }
19573
19631
  ),
19574
19632
  /* @__PURE__ */ i.jsxs(
19575
19633
  "select",
19576
19634
  {
19577
- onChange: d,
19635
+ onChange: l,
19578
19636
  value: o,
19579
19637
  name: `${e}Day`,
19580
19638
  "aria-label": `${e}Day`,
19581
- className: se(
19639
+ className: le(
19582
19640
  "taxbit-select",
19583
19641
  "taxbit-select-day",
19584
- P(o) ? "taxbit-placeholder" : ""
19642
+ R(o) ? "taxbit-placeholder" : ""
19585
19643
  ),
19586
19644
  children: [
19587
19645
  /* @__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))
19646
+ g.map((A) => /* @__PURE__ */ i.jsx("option", { value: A.value, children: parseInt(A.value) }, A.value))
19589
19647
  ]
19590
19648
  }
19591
19649
  ),
19592
19650
  /* @__PURE__ */ i.jsxs(
19593
19651
  "select",
19594
19652
  {
19595
- onChange: h,
19596
- value: l,
19653
+ onChange: k,
19654
+ value: d,
19597
19655
  name: `${e}Year`,
19598
19656
  "aria-label": `${e}Year`,
19599
- className: se(
19657
+ className: le(
19600
19658
  "taxbit-select",
19601
19659
  "taxbit-select-year",
19602
- P(l) ? "taxbit-placeholder" : ""
19660
+ R(d) ? "taxbit-placeholder" : ""
19603
19661
  ),
19604
19662
  children: [
19605
19663
  /* @__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))
19664
+ v.map((A) => /* @__PURE__ */ i.jsx("option", { value: A.value, children: A.value }, A.value))
19607
19665
  ]
19608
19666
  }
19609
19667
  )
19610
19668
  ] }),
19611
- /* @__PURE__ */ i.jsx(Ee, { name: e, hint: n })
19669
+ /* @__PURE__ */ i.jsx(Re, { name: e, hint: n })
19612
19670
  ] });
19613
19671
  }, 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);
19672
+ const { fields: n, setValue: r, hideErrors: o, getLocalOption: s } = E(), d = (k) => {
19673
+ r(e, k), o();
19674
+ }, l = n[e], m = (k) => {
19675
+ d(k.target.value);
19618
19676
  };
19619
- return /* @__PURE__ */ i.jsxs(fe, { children: [
19620
- /* @__PURE__ */ i.jsx("div", { className: "taxbit-radio-buttons", children: a.map((h) => /* @__PURE__ */ i.jsxs(
19677
+ return /* @__PURE__ */ i.jsxs(Ie, { children: [
19678
+ /* @__PURE__ */ i.jsx("div", { className: "taxbit-radio-buttons", children: a.map((k) => /* @__PURE__ */ i.jsxs(
19621
19679
  "div",
19622
19680
  {
19623
- className: se(
19681
+ className: le(
19624
19682
  "taxbit-radio-button",
19625
- h.value === d ? "selected" : !1
19683
+ k.value === l ? "selected" : !1
19626
19684
  ),
19627
19685
  children: [
19628
19686
  /* @__PURE__ */ i.jsx(
@@ -19630,19 +19688,19 @@ const vr = {
19630
19688
  {
19631
19689
  type: "radio",
19632
19690
  name: e,
19633
- "aria-label": `${e}-${h.value}`,
19634
- id: `${e}-${h.value}`,
19635
- value: h.value,
19636
- checked: h.value === d,
19691
+ "aria-label": `${e}-${k.value}`,
19692
+ id: `${e}-${k.value}`,
19693
+ value: k.value,
19694
+ checked: k.value === l,
19637
19695
  onChange: m
19638
19696
  }
19639
19697
  ),
19640
- /* @__PURE__ */ i.jsx("label", { htmlFor: `${e}-${h.value}`, children: h.label || s(h.value) })
19698
+ /* @__PURE__ */ i.jsx("label", { htmlFor: `${e}-${k.value}`, children: k.label || s(k.value) })
19641
19699
  ]
19642
19700
  },
19643
- h.value
19701
+ k.value
19644
19702
  )) }),
19645
- /* @__PURE__ */ i.jsx(Ee, { name: e })
19703
+ /* @__PURE__ */ i.jsx(Re, { name: e })
19646
19704
  ] });
19647
19705
  }, Co = ({
19648
19706
  name: e,
@@ -19652,17 +19710,17 @@ const vr = {
19652
19710
  onChange: o,
19653
19711
  disabled: s
19654
19712
  }) => {
19655
- const { fields: l, setValue: d, getLocalOption: m } = E(), h = l[e], g = (c) => {
19656
- o && o(), d(e, c.target.value);
19713
+ const { fields: d, setValue: l, getLocalOption: m } = E(), k = d[e], g = (c) => {
19714
+ o && o(), l(e, c.target.value);
19657
19715
  };
19658
- return /* @__PURE__ */ i.jsxs(fe, { className: r, children: [
19716
+ return /* @__PURE__ */ i.jsxs(Ie, { className: r, children: [
19659
19717
  /* @__PURE__ */ i.jsxs(
19660
19718
  "select",
19661
19719
  {
19662
19720
  name: e,
19663
19721
  "aria-label": e,
19664
19722
  onChange: g,
19665
- value: h || "",
19723
+ value: k || "",
19666
19724
  className: "taxbit-select",
19667
19725
  disabled: s,
19668
19726
  children: [
@@ -19671,7 +19729,7 @@ const vr = {
19671
19729
  ]
19672
19730
  }
19673
19731
  ),
19674
- /* @__PURE__ */ i.jsx(Ee, { name: e })
19732
+ /* @__PURE__ */ i.jsx(Re, { name: e })
19675
19733
  ] });
19676
19734
  }, Io = ({
19677
19735
  name: e,
@@ -19680,33 +19738,33 @@ const vr = {
19680
19738
  hint: r,
19681
19739
  children: o,
19682
19740
  disabled: s,
19683
- syncName: l
19741
+ syncName: d
19684
19742
  }) => {
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);
19743
+ const { fields: l, setValue: m } = E(), k = l[e] || "", g = (c) => {
19744
+ const v = n ? n(c.target.value) : c.target.value;
19745
+ d && (l[d] === l[e] || !l[d]) && m(d, v), m(e, v);
19688
19746
  };
19689
- return /* @__PURE__ */ i.jsxs(fe, { className: a, children: [
19747
+ return /* @__PURE__ */ i.jsxs(Ie, { className: a, children: [
19690
19748
  /* @__PURE__ */ i.jsx(
19691
19749
  "input",
19692
19750
  {
19693
19751
  type: "text",
19694
19752
  name: e,
19695
19753
  "aria-label": e,
19696
- value: h,
19754
+ value: k,
19697
19755
  onChange: g,
19698
19756
  className: "taxbit-input",
19699
19757
  disabled: s
19700
19758
  }
19701
19759
  ),
19702
- /* @__PURE__ */ i.jsx(Ee, { name: e, hint: r }),
19760
+ /* @__PURE__ */ i.jsx(Re, { name: e, hint: r }),
19703
19761
  o ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-input-status-footer", children: o }) : null
19704
19762
  ] });
19705
19763
  }, So = ({ name: e }) => {
19706
19764
  const { fields: a, setValue: n, getLocalPrompt: r } = E(), o = a[e], s = () => {
19707
19765
  n(e, o === void 0 ? "yes" : void 0);
19708
19766
  };
19709
- return /* @__PURE__ */ i.jsxs(fe, { children: [
19767
+ return /* @__PURE__ */ i.jsxs(Ie, { children: [
19710
19768
  /* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx(
19711
19769
  "button",
19712
19770
  {
@@ -19718,11 +19776,11 @@ const vr = {
19718
19776
  children: r(e)
19719
19777
  }
19720
19778
  ) }),
19721
- /* @__PURE__ */ i.jsx(Ee, { name: e })
19779
+ /* @__PURE__ */ i.jsx(Re, { name: e })
19722
19780
  ] });
19723
19781
  }, No = ({ onClick: e }) => {
19724
- const { getLocalButton: a } = E(), [n, r] = K(!0), o = "hideShowButton", s = () => {
19725
- r((l) => !l), e();
19782
+ const { getLocalButton: a } = E(), [n, r] = W(!0), o = "hideShowButton", s = () => {
19783
+ r((d) => !d), e();
19726
19784
  };
19727
19785
  return /* @__PURE__ */ i.jsx("div", { className: "taxbit-row-actions", children: /* @__PURE__ */ i.jsx(
19728
19786
  "button",
@@ -19731,7 +19789,7 @@ const vr = {
19731
19789
  id: o,
19732
19790
  name: o,
19733
19791
  onClick: s,
19734
- className: se(
19792
+ className: le(
19735
19793
  "taxbit-button",
19736
19794
  "taxbit-row-action-button",
19737
19795
  `taxbit-${n ? "show" : "hide"}-button`
@@ -19752,48 +19810,48 @@ const vr = {
19752
19810
  onChange: r,
19753
19811
  disabled: o,
19754
19812
  show: s = !1,
19755
- ...l
19813
+ ...d
19756
19814
  }) => {
19757
- const [d, m] = K(e), [h, g] = K(
19815
+ const [l, m] = W(e), [k, g] = W(
19758
19816
  Array(e.length + 1).join(a)
19759
- ), c = Un(), [p, f] = K([
19817
+ ), c = Za(), [v, A] = W([
19760
19818
  0,
19761
19819
  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(
19820
+ ]), f = Za(null);
19821
+ _(() => {
19822
+ e !== l && (m(e), g(Array(e.length + 1).join(a)));
19823
+ }, [e, a, l]);
19824
+ const y = (B) => {
19825
+ const I = B.target.selectionEnd === null ? B.target.value.length : B.target.selectionEnd;
19826
+ A([I, I]);
19827
+ const z = B.target.value, p = z.replace(
19770
19828
  new RegExp(
19771
- `${y ? `(^\\${a}{1,${y}})|` : ""}(\\${a}+)`,
19829
+ `${I ? `(^\\${a}{1,${I}})|` : ""}(\\${a}+)`,
19772
19830
  "g"
19773
19831
  ),
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);
19832
+ (J, X, ce) => !ce && I ? l.substring(0, J.length) : l.substring(l.length - J.length)
19833
+ ), G = z.split("").map((J, X) => X === I - 1 ? J : a).join("");
19834
+ g(G), m(p), r && r(p);
19777
19835
  };
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));
19836
+ return _(() => (clearTimeout(c.current), c.current = setTimeout(() => {
19837
+ f.current && A([
19838
+ f.current.selectionStart,
19839
+ f.current.selectionEnd
19840
+ ]), g(Array(k.length + 1).join(a));
19783
19841
  }, 1e3), () => {
19784
19842
  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(
19843
+ }), [a, k]), _(() => {
19844
+ f.current && (f.current.selectionStart = v[0], f.current.selectionEnd = v[1]);
19845
+ }, [v]), /* @__PURE__ */ i.jsx(
19788
19846
  "input",
19789
19847
  {
19790
- ...l,
19791
- ref: C,
19848
+ ...d,
19849
+ ref: f,
19792
19850
  type: "text",
19793
19851
  name: n,
19794
19852
  "aria-label": n,
19795
- value: s ? d : h,
19796
- onChange: N,
19853
+ value: s ? l : k,
19854
+ onChange: y,
19797
19855
  disabled: o
19798
19856
  }
19799
19857
  );
@@ -19805,12 +19863,12 @@ const vr = {
19805
19863
  children: o,
19806
19864
  disabled: s
19807
19865
  }) => {
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);
19866
+ const { fields: d, setValue: l } = E(), [m, k] = W(!0), g = d[e] || "", c = (v) => {
19867
+ const A = n ? n(v) : v;
19868
+ l(e, A);
19811
19869
  };
19812
19870
  return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
19813
- /* @__PURE__ */ i.jsxs(fe, { className: a, children: [
19871
+ /* @__PURE__ */ i.jsxs(Ie, { className: a, children: [
19814
19872
  /* @__PURE__ */ i.jsx(
19815
19873
  To,
19816
19874
  {
@@ -19823,10 +19881,10 @@ const vr = {
19823
19881
  disabled: s
19824
19882
  }
19825
19883
  ),
19826
- /* @__PURE__ */ i.jsx(Ee, { name: e, hint: r }),
19884
+ /* @__PURE__ */ i.jsx(Re, { name: e, hint: r }),
19827
19885
  o ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-input-status-footer", children: o }) : null
19828
19886
  ] }),
19829
- /* @__PURE__ */ i.jsx(No, { onClick: () => h((p) => !p) })
19887
+ /* @__PURE__ */ i.jsx(No, { onClick: () => k((v) => !v) })
19830
19888
  ] });
19831
19889
  }, et = [
19832
19890
  "City",
@@ -19841,28 +19899,28 @@ const vr = {
19841
19899
  getRequiredLocalPrompt: r,
19842
19900
  showField: o,
19843
19901
  hideField: s,
19844
- fields: l
19845
- } = E(), d = !!n[`${a}Country`];
19846
- return Y(() => {
19847
- d ? (o(a), et.forEach((m) => {
19902
+ fields: d
19903
+ } = E(), l = !!n[`${a}Country`];
19904
+ return _(() => {
19905
+ l ? (o(a), et.forEach((m) => {
19848
19906
  o(`${a}${m}`);
19849
19907
  })) : (s(a), et.forEach((m) => {
19850
19908
  s(`${a}${m}`);
19851
19909
  }));
19852
- }, [d, o, s, a]), d ? /* @__PURE__ */ i.jsx($a, { label: r(a), onEdit: e, name: a, children: /* @__PURE__ */ i.jsx(
19910
+ }, [l, o, s, a]), l ? /* @__PURE__ */ i.jsx(ei, { label: r(a), onEdit: e, name: a, children: /* @__PURE__ */ i.jsx(
19853
19911
  go,
19854
19912
  {
19855
19913
  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`]
19914
+ city: d[`${a}City`],
19915
+ state: d[`${a}State`],
19916
+ zip: d[`${a}Zip`],
19917
+ country: d[`${a}Country`],
19918
+ street: d[`${a}Street`],
19919
+ street2: d[`${a}Street2`]
19862
19920
  }
19863
19921
  }
19864
19922
  ) }) : null;
19865
- }, A = ({
19923
+ }, b = ({
19866
19924
  label: e,
19867
19925
  subLabel: a,
19868
19926
  name: n,
@@ -19871,54 +19929,54 @@ const vr = {
19871
19929
  }) => {
19872
19930
  const {
19873
19931
  visibleFields: s,
19874
- showField: l,
19875
- hideField: d,
19932
+ showField: d,
19933
+ hideField: l,
19876
19934
  getRequiredLocalPrompt: m,
19877
- getLocalSubPrompt: h
19935
+ getLocalSubPrompt: k
19878
19936
  } = E(), g = !!s[n];
19879
- return Y(() => {
19880
- g ? l(n) : d(n);
19881
- }, [g, n, l, d]), g ? /* @__PURE__ */ i.jsx(
19882
- $a,
19937
+ return _(() => {
19938
+ g ? d(n) : l(n);
19939
+ }, [g, n, d, l]), g ? /* @__PURE__ */ i.jsx(
19940
+ ei,
19883
19941
  {
19884
19942
  name: n,
19885
19943
  label: e ? m(n) : void 0,
19886
- subLabel: a ? h(n) : void 0,
19944
+ subLabel: a ? k(n) : void 0,
19887
19945
  onEdit: o,
19888
19946
  children: r
19889
19947
  }
19890
19948
  ) : null;
19891
- }, D = ({
19949
+ }, U = ({
19892
19950
  name: e,
19893
19951
  label: a,
19894
19952
  subLabel: n,
19895
19953
  onClick: r
19896
- }) => /* @__PURE__ */ i.jsx(A, { name: e, children: /* @__PURE__ */ i.jsx(
19897
- vo,
19954
+ }) => /* @__PURE__ */ i.jsx(b, { name: e, children: /* @__PURE__ */ i.jsx(
19955
+ po,
19898
19956
  {
19899
19957
  label: a,
19900
19958
  subLabel: n,
19901
19959
  name: e,
19902
19960
  onClick: r
19903
19961
  }
19904
- ) }), pt = ({
19962
+ ) }), vt = ({
19905
19963
  label: e,
19906
19964
  subLabel: a,
19907
19965
  name: n
19908
19966
  }) => {
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,
19967
+ const { showErrors: r, invalidFields: o, getLocalError: s } = E(), d = o[n] ? o[n].map((l) => s(l)) : void 0;
19968
+ 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: [
19969
+ l,
19912
19970
  /* @__PURE__ */ i.jsx("br", {})
19913
- ] }, d)) }) }) });
19914
- }, ve = ({
19971
+ ] }, l)) }) }) });
19972
+ }, Ce = ({
19915
19973
  name: e,
19916
19974
  label: a,
19917
19975
  hint: n,
19918
19976
  subLabel: r,
19919
19977
  onChange: o,
19920
19978
  disabled: s
19921
- }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19979
+ }) => /* @__PURE__ */ i.jsx(b, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19922
19980
  Mo,
19923
19981
  {
19924
19982
  name: e,
@@ -19926,85 +19984,85 @@ const vr = {
19926
19984
  hint: n,
19927
19985
  disabled: s
19928
19986
  }
19929
- ) }), W = ({
19987
+ ) }), V = ({
19930
19988
  name: e,
19931
19989
  label: a,
19932
19990
  subLabel: n,
19933
19991
  options: r
19934
- }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(bo, { name: e, options: r }) }), le = ({
19992
+ }) => /* @__PURE__ */ i.jsx(b, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(bo, { name: e, options: r }) }), de = ({
19935
19993
  name: e,
19936
19994
  label: a,
19937
19995
  options: n,
19938
19996
  subLabel: r,
19939
19997
  addBlank: o,
19940
19998
  onChange: s,
19941
- disabled: l
19942
- }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19999
+ disabled: d
20000
+ }) => /* @__PURE__ */ i.jsx(b, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19943
20001
  Co,
19944
20002
  {
19945
20003
  name: e,
19946
20004
  options: n,
19947
20005
  addBlank: o,
19948
20006
  onChange: s,
19949
- disabled: l
20007
+ disabled: d
19950
20008
  }
19951
- ) }), _ = ({
20009
+ ) }), Y = ({
19952
20010
  name: e,
19953
20011
  label: a,
19954
20012
  hint: n,
19955
20013
  subLabel: r,
19956
20014
  onChange: o,
19957
20015
  disabled: s,
19958
- syncName: l
19959
- }) => /* @__PURE__ */ i.jsx(A, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
20016
+ syncName: d
20017
+ }) => /* @__PURE__ */ i.jsx(b, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
19960
20018
  Io,
19961
20019
  {
19962
20020
  name: e,
19963
20021
  onChange: o,
19964
20022
  hint: n,
19965
20023
  disabled: s,
19966
- syncName: l
20024
+ syncName: d
19967
20025
  }
19968
20026
  ) }), yo = () => {
19969
20027
  const { fields: e, getLocalTitle: a } = E(), { getStepId: n, onPersistAccountHolderData: r, onCancel: o } = ae();
19970
20028
  return /* @__PURE__ */ i.jsxs(
19971
- ke,
20029
+ pe,
19972
20030
  {
19973
20031
  title: a(
19974
- n(sa("AccountHolderClassification"))
20032
+ n(da("AccountHolderClassification"))
19975
20033
  ),
19976
20034
  className: "taxbit-form-account-holder-classification",
19977
20035
  actions: /* @__PURE__ */ i.jsx(ko, {}),
19978
20036
  children: [
19979
20037
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
19980
20038
  /* @__PURE__ */ i.jsx(
19981
- W,
20039
+ V,
19982
20040
  {
19983
20041
  name: "accountHolderUsPerson",
19984
- options: ze,
20042
+ options: Pe,
19985
20043
  label: !0
19986
20044
  }
19987
20045
  ),
19988
20046
  /* @__PURE__ */ i.jsx(
19989
- W,
20047
+ V,
19990
20048
  {
19991
20049
  name: "accountHolderIsEuResident",
19992
- options: ze,
20050
+ options: Pe,
19993
20051
  label: !0,
19994
20052
  subLabel: !0
19995
20053
  }
19996
20054
  ),
19997
20055
  /* @__PURE__ */ i.jsx(
19998
- W,
20056
+ V,
19999
20057
  {
20000
20058
  name: "accountHolderIsIndividual",
20001
- options: ze,
20059
+ options: Pe,
20002
20060
  label: !0,
20003
20061
  subLabel: !0
20004
20062
  }
20005
20063
  ),
20006
20064
  /* @__PURE__ */ i.jsx(
20007
- W,
20065
+ V,
20008
20066
  {
20009
20067
  name: "accountHolderUsAccountType",
20010
20068
  options: ot,
@@ -20012,33 +20070,33 @@ const vr = {
20012
20070
  }
20013
20071
  ),
20014
20072
  /* @__PURE__ */ i.jsx(
20015
- W,
20073
+ V,
20016
20074
  {
20017
20075
  name: "accountHolderUsSmllcElection",
20018
- options: ze,
20076
+ options: Pe,
20019
20077
  label: !0,
20020
20078
  subLabel: !0
20021
20079
  }
20022
20080
  ),
20023
20081
  /* @__PURE__ */ i.jsx(
20024
- W,
20082
+ V,
20025
20083
  {
20026
20084
  name: "accountHolderUsLlcClassification",
20027
- options: Xa,
20085
+ options: $a,
20028
20086
  label: !0
20029
20087
  }
20030
20088
  ),
20031
- /* @__PURE__ */ i.jsx(_, { name: "accountHolderUsOtherClassification", label: !0 }),
20089
+ /* @__PURE__ */ i.jsx(Y, { name: "accountHolderUsOtherClassification", label: !0 }),
20032
20090
  /* @__PURE__ */ i.jsx(
20033
- W,
20091
+ V,
20034
20092
  {
20035
20093
  name: "accountHolderUsTrustEstateEin",
20036
- options: ze,
20094
+ options: Pe,
20037
20095
  label: !0
20038
20096
  }
20039
20097
  ),
20040
20098
  /* @__PURE__ */ i.jsx(
20041
- W,
20099
+ V,
20042
20100
  {
20043
20101
  name: "accountHolderForeignAccountType",
20044
20102
  options: rt,
@@ -20046,24 +20104,24 @@ const vr = {
20046
20104
  }
20047
20105
  ),
20048
20106
  /* @__PURE__ */ i.jsx(
20049
- W,
20107
+ V,
20050
20108
  {
20051
20109
  name: "accountHolderForeignOtherClassification",
20052
- options: _a,
20110
+ options: Qa,
20053
20111
  label: !0
20054
20112
  }
20055
20113
  ),
20056
20114
  /* @__PURE__ */ i.jsx(
20057
- W,
20115
+ V,
20058
20116
  {
20059
20117
  name: "accountHolderForeignTrustClassification",
20060
- options: Qa,
20118
+ options: Xa,
20061
20119
  label: !0
20062
20120
  }
20063
20121
  )
20064
20122
  ] }),
20065
20123
  /* @__PURE__ */ i.jsx(
20066
- he,
20124
+ fe,
20067
20125
  {
20068
20126
  onCancel: o,
20069
20127
  onNext: () => r(e)
@@ -20072,7 +20130,7 @@ const vr = {
20072
20130
  ]
20073
20131
  }
20074
20132
  );
20075
- }, jo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(yo, {}) }), Ga = ({
20133
+ }, jo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(yo, {}) }), Ga = ({
20076
20134
  prompt: e,
20077
20135
  prefix: a,
20078
20136
  showIf: n = !0
@@ -20081,42 +20139,42 @@ const vr = {
20081
20139
  fields: r,
20082
20140
  hideErrors: o,
20083
20141
  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)),
20142
+ getLocalCaProvince: d,
20143
+ getLocalUsState: l
20144
+ } = E(), m = r[`${a}Country`], k = ee(
20145
+ () => sa.map((v) => ({
20146
+ ...v,
20147
+ label: s(v.value)
20148
+ })).sort((v, A) => v.label.localeCompare(A.label)),
20091
20149
  [s]
20092
20150
  ), 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)),
20151
+ () => Jt.map((v) => ({
20152
+ ...v,
20153
+ label: l(v.value)
20154
+ })).sort((v, A) => v.label.localeCompare(A.label)),
20103
20155
  [l]
20156
+ ), c = ee(
20157
+ () => Mt.map((v) => ({
20158
+ ...v,
20159
+ label: d(v.value)
20160
+ })).sort((v, A) => v.label.localeCompare(A.label)),
20161
+ [d]
20104
20162
  );
20105
- return /* @__PURE__ */ i.jsxs(oe, { title: e, showIf: n, children: [
20163
+ return /* @__PURE__ */ i.jsxs(se, { title: e, showIf: n, children: [
20106
20164
  /* @__PURE__ */ i.jsx(
20107
- le,
20165
+ de,
20108
20166
  {
20109
20167
  name: `${a}Country`,
20110
- options: h,
20168
+ options: k,
20111
20169
  onChange: o,
20112
20170
  label: !0
20113
20171
  }
20114
20172
  ),
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,
20173
+ /* @__PURE__ */ i.jsx(Y, { name: `${a}Street`, label: !0 }),
20174
+ /* @__PURE__ */ i.jsx(Y, { name: `${a}Street2`, label: !0 }),
20175
+ /* @__PURE__ */ i.jsx(Y, { name: `${a}City`, label: !0 }),
20176
+ m !== "CA" && m !== "US" ? /* @__PURE__ */ i.jsx(Y, { label: !0, name: `${a}State` }) : /* @__PURE__ */ i.jsx(
20177
+ de,
20120
20178
  {
20121
20179
  name: `${a}State`,
20122
20180
  className: "taxbit-state",
@@ -20124,114 +20182,114 @@ const vr = {
20124
20182
  label: !0
20125
20183
  }
20126
20184
  ),
20127
- /* @__PURE__ */ i.jsx(_, { name: `${a}Zip`, label: !0 })
20185
+ /* @__PURE__ */ i.jsx(Y, { name: `${a}Zip`, label: !0 })
20128
20186
  ] });
20129
20187
  }, Oo = ({
20130
20188
  name: e,
20131
20189
  label: a,
20132
20190
  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) => ({
20191
+ }) => /* @__PURE__ */ i.jsx(b, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(Ao, { name: e }) }), zo = () => {
20192
+ const { onPersistCollectedData: e, goBack: a, onCancel: n, isW9: r, isW8: o, getStepId: s } = ae(), { fields: d, getLocalCountry: l, getLocalTitle: m } = E(), k = ee(
20193
+ () => sa.map((g) => ({
20136
20194
  ...g,
20137
- label: d(g.value)
20195
+ label: l(g.value)
20138
20196
  })).sort((g, c) => g.label.localeCompare(c.label)),
20139
- [d]
20197
+ [l]
20140
20198
  );
20141
20199
  return /* @__PURE__ */ i.jsxs(
20142
- ke,
20200
+ pe,
20143
20201
  {
20144
- title: m(s(sa("AccountHolderContact"))),
20202
+ title: m(s(da("AccountHolderContact"))),
20145
20203
  className: "taxbit-form-account-holder-contact-information",
20146
20204
  children: [
20147
20205
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20148
20206
  /* @__PURE__ */ i.jsx(
20149
- le,
20207
+ de,
20150
20208
  {
20151
20209
  label: !0,
20152
20210
  name: "accountHolderCountryOfCitizenship",
20153
- options: h
20211
+ options: k
20154
20212
  }
20155
20213
  ),
20156
20214
  /* @__PURE__ */ i.jsx(
20157
- _,
20215
+ Y,
20158
20216
  {
20159
20217
  label: !0,
20160
20218
  name: "accountHolderName",
20161
20219
  syncName: "accountHolderFinancialAccountName"
20162
20220
  }
20163
20221
  ),
20164
- /* @__PURE__ */ i.jsx(_, { label: !0, name: "accountHolderDbaName" }),
20222
+ /* @__PURE__ */ i.jsx(Y, { label: !0, name: "accountHolderDbaName" }),
20165
20223
  /* @__PURE__ */ i.jsx(Oo, { name: "accountHolderDateOfBirth", label: !0 }),
20166
20224
  /* @__PURE__ */ i.jsx(
20167
20225
  Ga,
20168
20226
  {
20169
20227
  prompt: m("primaryAddress"),
20170
20228
  prefix: "accountHolderAddress",
20171
- showIf: l.accountHolderIsEuResident === "yes" || o || r
20229
+ showIf: d.accountHolderIsEuResident === "yes" || o || r
20172
20230
  }
20173
20231
  ),
20174
- /* @__PURE__ */ i.jsx(D, { name: "accountHolderMailingAddressIsDifferent", label: !0 }),
20232
+ /* @__PURE__ */ i.jsx(U, { name: "accountHolderMailingAddressIsDifferent", label: !0 }),
20175
20233
  /* @__PURE__ */ i.jsx(
20176
20234
  Ga,
20177
20235
  {
20178
20236
  prompt: m("mailingAddress"),
20179
20237
  prefix: "accountHolderMailingAddress",
20180
- showIf: l.accountHolderMailingAddressIsDifferent === "yes"
20238
+ showIf: d.accountHolderMailingAddressIsDifferent === "yes"
20181
20239
  }
20182
20240
  )
20183
20241
  ] }),
20184
20242
  /* @__PURE__ */ i.jsx(
20185
- he,
20243
+ fe,
20186
20244
  {
20187
20245
  onCancel: n,
20188
20246
  onBack: a,
20189
- onNext: () => e(l)
20247
+ onNext: () => e(d)
20190
20248
  }
20191
20249
  )
20192
20250
  ]
20193
20251
  }
20194
20252
  );
20195
- }, Eo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(zo, {}) }), ta = ({
20253
+ }, Eo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(zo, {}) }), oa = ({
20196
20254
  index: e,
20197
20255
  showIf: a = !0,
20198
20256
  onShow: n,
20199
20257
  more: r,
20200
20258
  countryOptions: o
20201
20259
  }) => {
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 = [
20260
+ 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
20261
  s.accountHolderTaxResidenceCountry1,
20204
20262
  s.accountHolderTaxResidenceCountry2,
20205
20263
  s.accountHolderTaxResidenceCountry3,
20206
20264
  s.accountHolderTaxResidenceCountry4,
20207
20265
  s.accountHolderTaxResidenceCountry5
20208
20266
  ].filter(
20209
- (y) => y !== s[`accountHolderTaxResidenceCountry${e}`]
20210
- ), T = o.filter(
20211
- (y) => !N.includes(y.value)
20267
+ (I) => I !== s[`accountHolderTaxResidenceCountry${e}`]
20268
+ ), B = o.filter(
20269
+ (I) => !y.includes(I.value)
20212
20270
  );
20213
- return Y(() => {
20214
- a ? n && n() : (d(h), d(g), d(c), d(p));
20271
+ return _(() => {
20272
+ a ? n && n() : (l(k), l(g), l(c), l(v));
20215
20273
  }, [
20216
- h,
20217
- d,
20274
+ k,
20275
+ l,
20218
20276
  c,
20219
20277
  n,
20220
20278
  a,
20221
20279
  g,
20222
- p
20223
- ]), a ? /* @__PURE__ */ i.jsxs(oe, { title: l(f), showIf: a, children: [
20280
+ v
20281
+ ]), a ? /* @__PURE__ */ i.jsxs(se, { title: d(A), showIf: a, children: [
20224
20282
  /* @__PURE__ */ i.jsx(
20225
- le,
20283
+ de,
20226
20284
  {
20227
- name: h,
20285
+ name: k,
20228
20286
  className: "taxbit-country",
20229
- options: T,
20287
+ options: B,
20230
20288
  label: !0
20231
20289
  }
20232
20290
  ),
20233
20291
  /* @__PURE__ */ i.jsx(
20234
- ve,
20292
+ Ce,
20235
20293
  {
20236
20294
  name: g,
20237
20295
  label: !0,
@@ -20239,46 +20297,46 @@ const vr = {
20239
20297
  }
20240
20298
  ),
20241
20299
  /* @__PURE__ */ i.jsx(
20242
- D,
20300
+ U,
20243
20301
  {
20244
20302
  label: !0,
20245
20303
  name: c,
20246
20304
  onClick: m(g)
20247
20305
  }
20248
20306
  ),
20249
- r ? /* @__PURE__ */ i.jsx($a, { children: /* @__PURE__ */ i.jsx(So, { name: p }) }) : null
20307
+ r ? /* @__PURE__ */ i.jsx(ei, { children: /* @__PURE__ */ i.jsx(So, { name: v }) }) : null
20250
20308
  ] }) : null;
20251
20309
  }, Bo = () => {
20252
20310
  const { onPersistCollectedData: e, goBack: a, onCancel: n, getStepId: r } = ae(), {
20253
20311
  fields: o,
20254
20312
  getLocalTitle: s,
20255
- getLocalSubTitle: l,
20256
- getLocalCountry: d,
20313
+ getLocalSubTitle: d,
20314
+ getLocalCountry: l,
20257
20315
  clearIfNotRequired: m,
20258
- setValue: h
20316
+ setValue: k
20259
20317
  } = 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]
20318
+ () => jt.map((v) => ({
20319
+ ...v,
20320
+ label: l(v.value)
20321
+ })).sort((v, A) => v.label.localeCompare(A.label)),
20322
+ [l]
20265
20323
  ), c = ee(
20266
- () => ra.map((p) => ({
20267
- ...p,
20268
- label: d(p.value)
20269
- })).sort((p, f) => p.label.localeCompare(f.label)),
20270
- [d]
20324
+ () => sa.map((v) => ({
20325
+ ...v,
20326
+ label: l(v.value)
20327
+ })).sort((v, A) => v.label.localeCompare(A.label)),
20328
+ [l]
20271
20329
  );
20272
20330
  return /* @__PURE__ */ i.jsxs(
20273
- ke,
20331
+ pe,
20274
20332
  {
20275
- title: s(r(sa("AccountHolderTax"))),
20333
+ title: s(r(da("AccountHolderTax"))),
20276
20334
  className: "taxbit-form-account-holder-tax-information",
20277
20335
  children: [
20278
20336
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20279
- /* @__PURE__ */ i.jsx(ve, { name: "accountHolderUsTin", label: !0 }),
20337
+ /* @__PURE__ */ i.jsx(Ce, { name: "accountHolderUsTin", label: !0 }),
20280
20338
  /* @__PURE__ */ i.jsx(
20281
- ve,
20339
+ Ce,
20282
20340
  {
20283
20341
  name: "accountHolderForeignTin",
20284
20342
  disabled: o.accountHolderForeignTinIsNotRequired === "yes",
@@ -20286,7 +20344,7 @@ const vr = {
20286
20344
  }
20287
20345
  ),
20288
20346
  /* @__PURE__ */ i.jsx(
20289
- D,
20347
+ U,
20290
20348
  {
20291
20349
  name: "accountHolderForeignTinIsNotRequired",
20292
20350
  onClick: m("accountHolderForeignTin"),
@@ -20294,17 +20352,17 @@ const vr = {
20294
20352
  }
20295
20353
  ),
20296
20354
  /* @__PURE__ */ i.jsx(
20297
- ve,
20355
+ Ce,
20298
20356
  {
20299
20357
  name: "accountHolderFinancialAccountIdentifier",
20300
20358
  label: !0,
20301
20359
  subLabel: !0
20302
20360
  }
20303
20361
  ),
20304
- /* @__PURE__ */ i.jsx(_, { name: "accountHolderFinancialAccountName", label: !0, subLabel: !0 }),
20305
- /* @__PURE__ */ i.jsxs(oe, { showIf: o.accountHolderIsEuResident === "yes", children: [
20362
+ /* @__PURE__ */ i.jsx(Y, { name: "accountHolderFinancialAccountName", label: !0, subLabel: !0 }),
20363
+ /* @__PURE__ */ i.jsxs(se, { showIf: o.accountHolderIsEuResident === "yes", children: [
20306
20364
  /* @__PURE__ */ i.jsx(
20307
- le,
20365
+ de,
20308
20366
  {
20309
20367
  name: "accountHolderVatCountry",
20310
20368
  className: "taxbit-country",
@@ -20314,7 +20372,7 @@ const vr = {
20314
20372
  }
20315
20373
  ),
20316
20374
  /* @__PURE__ */ i.jsx(
20317
- ve,
20375
+ Ce,
20318
20376
  {
20319
20377
  name: "accountHolderVatIdentificationNumber",
20320
20378
  disabled: o.accountHolderVatIsNotRequired === "yes",
@@ -20323,7 +20381,7 @@ const vr = {
20323
20381
  }
20324
20382
  ),
20325
20383
  /* @__PURE__ */ i.jsx(
20326
- D,
20384
+ U,
20327
20385
  {
20328
20386
  label: !0,
20329
20387
  name: "accountHolderVatIsNotRequired",
@@ -20334,9 +20392,9 @@ const vr = {
20334
20392
  }
20335
20393
  )
20336
20394
  ] }),
20337
- /* @__PURE__ */ i.jsxs(oe, { showIf: o.accountHolderIsIndividual === "no", children: [
20395
+ /* @__PURE__ */ i.jsxs(se, { showIf: o.accountHolderIsIndividual === "no", children: [
20338
20396
  /* @__PURE__ */ i.jsx(
20339
- le,
20397
+ de,
20340
20398
  {
20341
20399
  name: "accountHolderBusinessRegistrationCountry",
20342
20400
  className: "taxbit-country",
@@ -20345,7 +20403,7 @@ const vr = {
20345
20403
  }
20346
20404
  ),
20347
20405
  /* @__PURE__ */ i.jsx(
20348
- ve,
20406
+ Ce,
20349
20407
  {
20350
20408
  name: "accountHolderBusinessRegistrationNumber",
20351
20409
  label: !0
@@ -20353,20 +20411,20 @@ const vr = {
20353
20411
  )
20354
20412
  ] }),
20355
20413
  /* @__PURE__ */ i.jsxs(
20356
- oe,
20414
+ se,
20357
20415
  {
20358
20416
  title: s("taxResidences"),
20359
- subTitle: l("taxResidences"),
20417
+ subTitle: d("taxResidences"),
20360
20418
  showIf: o.accountHolderIsIndividual !== void 0,
20361
20419
  children: [
20362
- /* @__PURE__ */ i.jsx(pt, { name: "accountHolderTaxResidences" }),
20420
+ /* @__PURE__ */ i.jsx(vt, { name: "accountHolderTaxResidences" }),
20363
20421
  /* @__PURE__ */ i.jsx(
20364
- ta,
20422
+ oa,
20365
20423
  {
20366
20424
  index: 1,
20367
20425
  showIf: o.accountHolderIsIndividual !== void 0,
20368
20426
  onShow: () => {
20369
- o.accountHolderTaxResidenceCountry1 === void 0 && h(
20427
+ o.accountHolderTaxResidenceCountry1 === void 0 && k(
20370
20428
  "accountHolderTaxResidenceCountry1",
20371
20429
  o.accountHolderAddressCountry
20372
20430
  );
@@ -20376,7 +20434,7 @@ const vr = {
20376
20434
  }
20377
20435
  ),
20378
20436
  /* @__PURE__ */ i.jsx(
20379
- ta,
20437
+ oa,
20380
20438
  {
20381
20439
  index: 2,
20382
20440
  showIf: o.accountHolderShowTaxResidence2 === "yes",
@@ -20385,7 +20443,7 @@ const vr = {
20385
20443
  }
20386
20444
  ),
20387
20445
  /* @__PURE__ */ i.jsx(
20388
- ta,
20446
+ oa,
20389
20447
  {
20390
20448
  index: 3,
20391
20449
  showIf: o.accountHolderShowTaxResidence3 === "yes",
@@ -20394,7 +20452,7 @@ const vr = {
20394
20452
  }
20395
20453
  ),
20396
20454
  /* @__PURE__ */ i.jsx(
20397
- ta,
20455
+ oa,
20398
20456
  {
20399
20457
  index: 4,
20400
20458
  showIf: o.accountHolderShowTaxResidence4 === "yes",
@@ -20403,7 +20461,7 @@ const vr = {
20403
20461
  }
20404
20462
  ),
20405
20463
  /* @__PURE__ */ i.jsx(
20406
- ta,
20464
+ oa,
20407
20465
  {
20408
20466
  index: 5,
20409
20467
  showIf: o.accountHolderShowTaxResidence5 === "yes",
@@ -20415,7 +20473,7 @@ const vr = {
20415
20473
  )
20416
20474
  ] }),
20417
20475
  /* @__PURE__ */ i.jsx(
20418
- he,
20476
+ fe,
20419
20477
  {
20420
20478
  onCancel: n,
20421
20479
  onBack: a,
@@ -20425,23 +20483,23 @@ const vr = {
20425
20483
  ]
20426
20484
  }
20427
20485
  );
20428
- }, Ro = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Bo, {}) }), Po = () => {
20486
+ }, Po = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(Bo, {}) }), Ro = () => {
20429
20487
  const { getLocalCountry: e, getLocalTitle: a, getLocalSubPrompt: n } = E(), r = ee(
20430
- () => ra.map((o) => ({
20488
+ () => sa.map((o) => ({
20431
20489
  ...o,
20432
20490
  label: e(o.value)
20433
20491
  })).sort((o, s) => o.label.localeCompare(s.label)),
20434
20492
  [e]
20435
20493
  );
20436
20494
  return /* @__PURE__ */ i.jsxs(
20437
- oe,
20495
+ se,
20438
20496
  {
20439
20497
  title: a("placeOfBirth"),
20440
20498
  subTitle: n("accountHolderCityOfBirth"),
20441
20499
  children: [
20442
- /* @__PURE__ */ i.jsx(_, { label: !0, name: "accountHolderCityOfBirth" }),
20500
+ /* @__PURE__ */ i.jsx(Y, { label: !0, name: "accountHolderCityOfBirth" }),
20443
20501
  /* @__PURE__ */ i.jsx(
20444
- le,
20502
+ de,
20445
20503
  {
20446
20504
  label: !0,
20447
20505
  name: "accountHolderCountryOfBirth",
@@ -20454,16 +20512,16 @@ const vr = {
20454
20512
  }, wo = () => {
20455
20513
  const { onPersistCollectedData: e, goBack: a, onCancel: n, getStepId: r } = ae(), { fields: o, getLocalTitle: s } = E();
20456
20514
  return /* @__PURE__ */ i.jsxs(
20457
- ke,
20515
+ pe,
20458
20516
  {
20459
20517
  title: s(
20460
- r(sa("AccountHolderTaxClarification"))
20518
+ r(da("AccountHolderTaxClarification"))
20461
20519
  ),
20462
20520
  className: "taxbit-form-account-holder-tax-clarification",
20463
20521
  children: [
20464
- /* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(Po, {}) }),
20522
+ /* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(Ro, {}) }),
20465
20523
  /* @__PURE__ */ i.jsx(
20466
- he,
20524
+ fe,
20467
20525
  {
20468
20526
  onCancel: n,
20469
20527
  onBack: a,
@@ -20473,39 +20531,39 @@ const vr = {
20473
20531
  ]
20474
20532
  }
20475
20533
  );
20476
- }, Ho = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(wo, {}) }), Lo = () => {
20534
+ }, Ho = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(wo, {}) }), Lo = () => {
20477
20535
  const { getLocalText: e } = E();
20478
20536
  return /* @__PURE__ */ i.jsx("div", { children: e("interviewIsComplete") });
20479
- }, Go = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Lo, {}) }), xo = () => {
20537
+ }, Go = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(Lo, {}) }), xo = () => {
20480
20538
  const { onPersistCollectedData: e, goBack: a, getStepId: n } = ae(), { fields: r, getLocalTitle: o } = E();
20481
20539
  return /* @__PURE__ */ i.jsxs(
20482
- ke,
20540
+ pe,
20483
20541
  {
20484
- title: o(n(sa("Exemptions"))),
20542
+ title: o(n(da("Exemptions"))),
20485
20543
  className: "taxbit-form-account-holder-exemptions",
20486
20544
  children: [
20487
20545
  /* @__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 })
20546
+ /* @__PURE__ */ i.jsx(de, { name: "exemptFatcaCode", options: Et, label: !0 }),
20547
+ /* @__PURE__ */ i.jsx(de, { name: "exemptPayeeCode", options: Dt, label: !0 })
20490
20548
  ] }),
20491
- /* @__PURE__ */ i.jsx(he, { onBack: a, onNext: () => e(r) })
20549
+ /* @__PURE__ */ i.jsx(fe, { onBack: a, onNext: () => e(r) })
20492
20550
  ]
20493
20551
  }
20494
20552
  );
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}`)
20553
+ }, Uo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(xo, {}) }), Do = () => {
20554
+ const { fields: e, getLocalTitle: a, getLocalOption: n } = E(), { onPersistCollectedData: r, goBack: o } = ae(), s = Pe.map((d) => ({
20555
+ ...d,
20556
+ label: n(`usPerson_${d.value}`)
20499
20557
  }));
20500
20558
  return /* @__PURE__ */ i.jsxs(
20501
- ke,
20559
+ pe,
20502
20560
  {
20503
20561
  title: a("regardedOwnerClassification"),
20504
- className: `taxbit-form-${oa("regardedOwnerClassification")}`,
20562
+ className: `taxbit-form-${la("regardedOwnerClassification")}`,
20505
20563
  children: [
20506
20564
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20507
20565
  /* @__PURE__ */ i.jsx(
20508
- W,
20566
+ V,
20509
20567
  {
20510
20568
  name: "regardedOwnerUsPerson",
20511
20569
  options: s,
@@ -20513,7 +20571,7 @@ const vr = {
20513
20571
  }
20514
20572
  ),
20515
20573
  /* @__PURE__ */ i.jsx(
20516
- W,
20574
+ V,
20517
20575
  {
20518
20576
  name: "regardedOwnerUsAccountType",
20519
20577
  options: Vt,
@@ -20521,76 +20579,76 @@ const vr = {
20521
20579
  }
20522
20580
  ),
20523
20581
  /* @__PURE__ */ i.jsx(
20524
- W,
20582
+ V,
20525
20583
  {
20526
20584
  name: "regardedOwnerForeignAccountType",
20527
- options: Pt,
20585
+ options: Rt,
20528
20586
  label: !0
20529
20587
  }
20530
20588
  ),
20531
20589
  /* @__PURE__ */ i.jsx(
20532
- W,
20590
+ V,
20533
20591
  {
20534
20592
  name: "regardedOwnerUsLlcClassification",
20535
- options: Xa,
20593
+ options: $a,
20536
20594
  label: !0
20537
20595
  }
20538
20596
  ),
20539
- /* @__PURE__ */ i.jsx(_, { name: "regardedOwnerUsOtherClassification", label: !0 }),
20597
+ /* @__PURE__ */ i.jsx(Y, { name: "regardedOwnerUsOtherClassification", label: !0 }),
20540
20598
  /* @__PURE__ */ i.jsx(
20541
- W,
20599
+ V,
20542
20600
  {
20543
20601
  name: "regardedOwnerUsTrustEstateEin",
20544
- options: ze,
20602
+ options: Pe,
20545
20603
  label: !0
20546
20604
  }
20547
20605
  ),
20548
20606
  /* @__PURE__ */ i.jsx(
20549
- W,
20607
+ V,
20550
20608
  {
20551
20609
  name: "regardedOwnerForeignOtherClassification",
20552
- options: _a,
20610
+ options: Qa,
20553
20611
  label: !0
20554
20612
  }
20555
20613
  ),
20556
20614
  /* @__PURE__ */ i.jsx(
20557
- W,
20615
+ V,
20558
20616
  {
20559
20617
  name: "regardedOwnerForeignTrustClassification",
20560
- options: Qa,
20618
+ options: Xa,
20561
20619
  label: !0
20562
20620
  }
20563
20621
  )
20564
20622
  ] }),
20565
- /* @__PURE__ */ i.jsx(he, { onBack: o, onNext: () => r(e) })
20623
+ /* @__PURE__ */ i.jsx(fe, { onBack: o, onNext: () => r(e) })
20566
20624
  ]
20567
20625
  }
20568
20626
  );
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)),
20627
+ }, Fo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(Do, {}) }), Ko = () => {
20628
+ const { onPersistCollectedData: e, goBack: a, onCancel: n } = ae(), { fields: r, getLocalCountry: o, getLocalTitle: s } = E(), d = ee(
20629
+ () => sa.map((l) => ({
20630
+ ...l,
20631
+ label: o(l.value)
20632
+ })).sort((l, m) => l.label.localeCompare(m.label)),
20575
20633
  [o]
20576
20634
  );
20577
20635
  return /* @__PURE__ */ i.jsxs(
20578
- ke,
20636
+ pe,
20579
20637
  {
20580
20638
  title: s("regardedOwnerContactInformation"),
20581
- className: `taxbit-form-${oa("regardedOwnerContactInformation")}`,
20639
+ className: `taxbit-form-${la("regardedOwnerContactInformation")}`,
20582
20640
  children: [
20583
20641
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
20584
20642
  /* @__PURE__ */ i.jsx(
20585
- le,
20643
+ de,
20586
20644
  {
20587
20645
  label: !0,
20588
20646
  name: "regardedOwnerCountryOfCitizenship",
20589
- options: l
20647
+ options: d
20590
20648
  }
20591
20649
  ),
20592
- /* @__PURE__ */ i.jsx(_, { label: !0, name: "regardedOwnerName" }),
20593
- /* @__PURE__ */ i.jsx(_, { label: !0, name: "regardedOwnerDbaName" }),
20650
+ /* @__PURE__ */ i.jsx(Y, { label: !0, name: "regardedOwnerName" }),
20651
+ /* @__PURE__ */ i.jsx(Y, { label: !0, name: "regardedOwnerDbaName" }),
20594
20652
  /* @__PURE__ */ i.jsx(
20595
20653
  Ga,
20596
20654
  {
@@ -20598,7 +20656,7 @@ const vr = {
20598
20656
  prefix: "regardedOwnerAddress"
20599
20657
  }
20600
20658
  ),
20601
- /* @__PURE__ */ i.jsx(D, { name: "regardedOwnerMailingAddressIsDifferent", label: !0 }),
20659
+ /* @__PURE__ */ i.jsx(U, { name: "regardedOwnerMailingAddressIsDifferent", label: !0 }),
20602
20660
  /* @__PURE__ */ i.jsx(
20603
20661
  Ga,
20604
20662
  {
@@ -20609,7 +20667,7 @@ const vr = {
20609
20667
  )
20610
20668
  ] }),
20611
20669
  /* @__PURE__ */ i.jsx(
20612
- he,
20670
+ fe,
20613
20671
  {
20614
20672
  onCancel: n,
20615
20673
  onBack: a,
@@ -20619,19 +20677,19 @@ const vr = {
20619
20677
  ]
20620
20678
  }
20621
20679
  );
20622
- }, Vo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Ko, {}) }), Wo = () => {
20680
+ }, Vo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(Ko, {}) }), Wo = () => {
20623
20681
  const { onPersistCollectedData: e, goBack: a } = ae(), { fields: n, getLocalTitle: r, clearIfNotRequired: o } = E();
20624
20682
  return /* @__PURE__ */ i.jsxs(
20625
- ke,
20683
+ pe,
20626
20684
  {
20627
20685
  title: r("regardedOwnerTaxInformation"),
20628
- className: `taxbit-form-${oa("regardedOwnerTaxInformation")}`,
20686
+ className: `taxbit-form-${la("regardedOwnerTaxInformation")}`,
20629
20687
  children: [
20630
20688
  /* @__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 }),
20689
+ /* @__PURE__ */ i.jsx(Ce, { name: "regardedOwnerUsTin", label: !0 }),
20690
+ /* @__PURE__ */ i.jsx(Ce, { name: "regardedOwnerForeignTin", label: !0 }),
20633
20691
  /* @__PURE__ */ i.jsx(
20634
- D,
20692
+ U,
20635
20693
  {
20636
20694
  name: "regardedOwnerForeignTinIsNotRequired",
20637
20695
  label: !0,
@@ -20639,11 +20697,11 @@ const vr = {
20639
20697
  }
20640
20698
  )
20641
20699
  ] }),
20642
- /* @__PURE__ */ i.jsx(he, { onBack: a, onNext: () => e(n) })
20700
+ /* @__PURE__ */ i.jsx(fe, { onBack: a, onNext: () => e(n) })
20643
20701
  ]
20644
20702
  }
20645
20703
  );
20646
- }, Jo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Wo, {}) }), $ = ({ text: e }) => {
20704
+ }, Jo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(Wo, {}) }), $ = ({ text: e }) => {
20647
20705
  const n = ((r) => {
20648
20706
  if (!r)
20649
20707
  return "";
@@ -20657,12 +20715,12 @@ const vr = {
20657
20715
  getLocalOption: r,
20658
20716
  getLocalCountry: o,
20659
20717
  getLocalText: s,
20660
- visibleFields: l
20718
+ visibleFields: d
20661
20719
  } = E();
20662
20720
  return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
20663
- /* @__PURE__ */ i.jsxs(oe, { title: n("accountHolder"), children: [
20721
+ /* @__PURE__ */ i.jsxs(se, { title: n("accountHolder"), children: [
20664
20722
  /* @__PURE__ */ i.jsx(
20665
- A,
20723
+ b,
20666
20724
  {
20667
20725
  label: !0,
20668
20726
  onEdit: () => a("AccountHolderClassification"),
@@ -20671,7 +20729,7 @@ const vr = {
20671
20729
  }
20672
20730
  ),
20673
20731
  /* @__PURE__ */ i.jsx(
20674
- A,
20732
+ b,
20675
20733
  {
20676
20734
  label: !0,
20677
20735
  onEdit: () => a("AccountHolderClassification"),
@@ -20680,7 +20738,7 @@ const vr = {
20680
20738
  }
20681
20739
  ),
20682
20740
  /* @__PURE__ */ i.jsx(
20683
- A,
20741
+ b,
20684
20742
  {
20685
20743
  label: !0,
20686
20744
  onEdit: () => a("AccountHolderClassification"),
@@ -20689,7 +20747,7 @@ const vr = {
20689
20747
  }
20690
20748
  ),
20691
20749
  /* @__PURE__ */ i.jsx(
20692
- A,
20750
+ b,
20693
20751
  {
20694
20752
  label: !0,
20695
20753
  onEdit: () => a("AccountHolderClassification"),
@@ -20698,7 +20756,7 @@ const vr = {
20698
20756
  }
20699
20757
  ),
20700
20758
  /* @__PURE__ */ i.jsx(
20701
- A,
20759
+ b,
20702
20760
  {
20703
20761
  label: !0,
20704
20762
  onEdit: () => a("AccountHolderClassification"),
@@ -20707,7 +20765,7 @@ const vr = {
20707
20765
  }
20708
20766
  ),
20709
20767
  /* @__PURE__ */ i.jsx(
20710
- A,
20768
+ b,
20711
20769
  {
20712
20770
  label: !0,
20713
20771
  onEdit: () => a("AccountHolderClassification"),
@@ -20716,7 +20774,7 @@ const vr = {
20716
20774
  }
20717
20775
  ),
20718
20776
  /* @__PURE__ */ i.jsx(
20719
- A,
20777
+ b,
20720
20778
  {
20721
20779
  label: !0,
20722
20780
  onEdit: () => a("AccountHolderClassification"),
@@ -20725,7 +20783,7 @@ const vr = {
20725
20783
  }
20726
20784
  ),
20727
20785
  /* @__PURE__ */ i.jsx(
20728
- A,
20786
+ b,
20729
20787
  {
20730
20788
  label: !0,
20731
20789
  onEdit: () => a("AccountHolderClassification"),
@@ -20734,7 +20792,7 @@ const vr = {
20734
20792
  }
20735
20793
  ),
20736
20794
  /* @__PURE__ */ i.jsx(
20737
- A,
20795
+ b,
20738
20796
  {
20739
20797
  label: !0,
20740
20798
  onEdit: () => a("AccountHolderClassification"),
@@ -20743,7 +20801,7 @@ const vr = {
20743
20801
  }
20744
20802
  ),
20745
20803
  /* @__PURE__ */ i.jsx(
20746
- A,
20804
+ b,
20747
20805
  {
20748
20806
  label: !0,
20749
20807
  onEdit: () => a("AccountHolderClassification"),
@@ -20752,7 +20810,7 @@ const vr = {
20752
20810
  }
20753
20811
  ),
20754
20812
  /* @__PURE__ */ i.jsx(
20755
- A,
20813
+ b,
20756
20814
  {
20757
20815
  label: !0,
20758
20816
  onEdit: () => a("AccountHolderClassification"),
@@ -20761,7 +20819,7 @@ const vr = {
20761
20819
  }
20762
20820
  ),
20763
20821
  /* @__PURE__ */ i.jsx(
20764
- A,
20822
+ b,
20765
20823
  {
20766
20824
  label: !0,
20767
20825
  name: "accountHolderName",
@@ -20770,7 +20828,7 @@ const vr = {
20770
20828
  }
20771
20829
  ),
20772
20830
  /* @__PURE__ */ i.jsx(
20773
- A,
20831
+ b,
20774
20832
  {
20775
20833
  label: !0,
20776
20834
  name: "accountHolderCountryOfCitizenship",
@@ -20779,7 +20837,7 @@ const vr = {
20779
20837
  }
20780
20838
  ),
20781
20839
  /* @__PURE__ */ i.jsx(
20782
- A,
20840
+ b,
20783
20841
  {
20784
20842
  label: !0,
20785
20843
  name: "accountHolderDateOfBirth",
@@ -20788,7 +20846,7 @@ const vr = {
20788
20846
  }
20789
20847
  ),
20790
20848
  /* @__PURE__ */ i.jsx(
20791
- A,
20849
+ b,
20792
20850
  {
20793
20851
  label: !0,
20794
20852
  name: "accountHolderCityOfBirth",
@@ -20797,7 +20855,7 @@ const vr = {
20797
20855
  }
20798
20856
  ),
20799
20857
  /* @__PURE__ */ i.jsx(
20800
- A,
20858
+ b,
20801
20859
  {
20802
20860
  label: !0,
20803
20861
  name: "accountHolderCountryOfBirth",
@@ -20806,7 +20864,7 @@ const vr = {
20806
20864
  }
20807
20865
  ),
20808
20866
  /* @__PURE__ */ i.jsx(
20809
- A,
20867
+ b,
20810
20868
  {
20811
20869
  label: !0,
20812
20870
  name: "accountHolderDbaName",
@@ -20829,7 +20887,7 @@ const vr = {
20829
20887
  }
20830
20888
  ),
20831
20889
  /* @__PURE__ */ i.jsx(
20832
- A,
20890
+ b,
20833
20891
  {
20834
20892
  label: !0,
20835
20893
  name: "accountHolderUsTin",
@@ -20838,7 +20896,7 @@ const vr = {
20838
20896
  }
20839
20897
  ),
20840
20898
  /* @__PURE__ */ i.jsx(
20841
- A,
20899
+ b,
20842
20900
  {
20843
20901
  label: !0,
20844
20902
  name: "accountHolderForeignTin",
@@ -20847,7 +20905,7 @@ const vr = {
20847
20905
  }
20848
20906
  ),
20849
20907
  /* @__PURE__ */ i.jsx(
20850
- A,
20908
+ b,
20851
20909
  {
20852
20910
  label: !0,
20853
20911
  name: "accountHolderForeignTinIsNotRequired",
@@ -20856,7 +20914,7 @@ const vr = {
20856
20914
  }
20857
20915
  ),
20858
20916
  /* @__PURE__ */ i.jsx(
20859
- A,
20917
+ b,
20860
20918
  {
20861
20919
  label: !0,
20862
20920
  name: "accountHolderFinancialAccountIdentifier",
@@ -20865,7 +20923,7 @@ const vr = {
20865
20923
  }
20866
20924
  ),
20867
20925
  /* @__PURE__ */ i.jsx(
20868
- A,
20926
+ b,
20869
20927
  {
20870
20928
  label: !0,
20871
20929
  name: "accountHolderFinancialAccountName",
@@ -20874,7 +20932,7 @@ const vr = {
20874
20932
  }
20875
20933
  ),
20876
20934
  /* @__PURE__ */ i.jsx(
20877
- A,
20935
+ b,
20878
20936
  {
20879
20937
  name: "accountHolderVatCountry",
20880
20938
  onEdit: () => a("AccountHolderTax"),
@@ -20883,7 +20941,7 @@ const vr = {
20883
20941
  }
20884
20942
  ),
20885
20943
  /* @__PURE__ */ i.jsx(
20886
- A,
20944
+ b,
20887
20945
  {
20888
20946
  name: "accountHolderVatIdentificationNumber",
20889
20947
  onEdit: () => a("AccountHolderTax"),
@@ -20892,7 +20950,7 @@ const vr = {
20892
20950
  }
20893
20951
  ),
20894
20952
  /* @__PURE__ */ i.jsx(
20895
- A,
20953
+ b,
20896
20954
  {
20897
20955
  name: "accountHolderBusinessRegistrationCountry",
20898
20956
  onEdit: () => a("AccountHolderTax"),
@@ -20901,7 +20959,7 @@ const vr = {
20901
20959
  }
20902
20960
  ),
20903
20961
  /* @__PURE__ */ i.jsx(
20904
- A,
20962
+ b,
20905
20963
  {
20906
20964
  name: "accountHolderBusinessRegistrationNumber",
20907
20965
  onEdit: () => a("AccountHolderTax"),
@@ -20910,14 +20968,14 @@ const vr = {
20910
20968
  }
20911
20969
  ),
20912
20970
  /* @__PURE__ */ i.jsxs(
20913
- oe,
20971
+ se,
20914
20972
  {
20915
20973
  title: n("taxResidences"),
20916
20974
  showIf: e.accountHolderIsEuResident === "yes" && e.accountHolderIsIndividual !== void 0,
20917
20975
  children: [
20918
- /* @__PURE__ */ i.jsx(pt, { name: "accountHolderTaxResidences" }),
20976
+ /* @__PURE__ */ i.jsx(vt, { name: "accountHolderTaxResidences" }),
20919
20977
  /* @__PURE__ */ i.jsx(
20920
- A,
20978
+ b,
20921
20979
  {
20922
20980
  label: !0,
20923
20981
  name: "accountHolderTaxResidenceCountry1",
@@ -20925,14 +20983,14 @@ const vr = {
20925
20983
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry1)
20926
20984
  }
20927
20985
  ),
20928
- /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin1", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20986
+ /* @__PURE__ */ i.jsx(b, { label: !0, name: "accountHolderTaxResidenceForeignTin1", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20929
20987
  $,
20930
20988
  {
20931
20989
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1
20932
20990
  }
20933
20991
  ) }),
20934
20992
  /* @__PURE__ */ i.jsx(
20935
- A,
20993
+ b,
20936
20994
  {
20937
20995
  label: !0,
20938
20996
  name: "accountHolderTaxResidenceCountry2",
@@ -20940,14 +20998,14 @@ const vr = {
20940
20998
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry2)
20941
20999
  }
20942
21000
  ),
20943
- /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin2", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
21001
+ /* @__PURE__ */ i.jsx(b, { label: !0, name: "accountHolderTaxResidenceForeignTin2", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20944
21002
  $,
20945
21003
  {
20946
21004
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2
20947
21005
  }
20948
21006
  ) }),
20949
21007
  /* @__PURE__ */ i.jsx(
20950
- A,
21008
+ b,
20951
21009
  {
20952
21010
  label: !0,
20953
21011
  name: "accountHolderTaxResidenceCountry3",
@@ -20955,14 +21013,14 @@ const vr = {
20955
21013
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry3)
20956
21014
  }
20957
21015
  ),
20958
- /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin3", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
21016
+ /* @__PURE__ */ i.jsx(b, { label: !0, name: "accountHolderTaxResidenceForeignTin3", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20959
21017
  $,
20960
21018
  {
20961
21019
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3
20962
21020
  }
20963
21021
  ) }),
20964
21022
  /* @__PURE__ */ i.jsx(
20965
- A,
21023
+ b,
20966
21024
  {
20967
21025
  label: !0,
20968
21026
  name: "accountHolderTaxResidenceCountry4",
@@ -20970,14 +21028,14 @@ const vr = {
20970
21028
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry4)
20971
21029
  }
20972
21030
  ),
20973
- /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin4", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
21031
+ /* @__PURE__ */ i.jsx(b, { label: !0, name: "accountHolderTaxResidenceForeignTin4", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20974
21032
  $,
20975
21033
  {
20976
21034
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4
20977
21035
  }
20978
21036
  ) }),
20979
21037
  /* @__PURE__ */ i.jsx(
20980
- A,
21038
+ b,
20981
21039
  {
20982
21040
  label: !0,
20983
21041
  name: "accountHolderTaxResidenceCountry5",
@@ -20985,7 +21043,7 @@ const vr = {
20985
21043
  children: o(e == null ? void 0 : e.accountHolderTaxResidenceCountry5)
20986
21044
  }
20987
21045
  ),
20988
- /* @__PURE__ */ i.jsx(A, { label: !0, name: "accountHolderTaxResidenceForeignTin5", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
21046
+ /* @__PURE__ */ i.jsx(b, { label: !0, name: "accountHolderTaxResidenceForeignTin5", children: (e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5IsNotRequired) == "yes" ? s("notRequired") : /* @__PURE__ */ i.jsx(
20989
21047
  $,
20990
21048
  {
20991
21049
  text: e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5
@@ -20996,13 +21054,13 @@ const vr = {
20996
21054
  )
20997
21055
  ] }),
20998
21056
  /* @__PURE__ */ i.jsxs(
20999
- oe,
21057
+ se,
21000
21058
  {
21001
21059
  title: n("regardedOwner"),
21002
- showIf: !!l.regardedOwnerUsPerson && e.regardedOwnerUsPerson !== void 0,
21060
+ showIf: !!d.regardedOwnerUsPerson && e.regardedOwnerUsPerson !== void 0,
21003
21061
  children: [
21004
21062
  /* @__PURE__ */ i.jsx(
21005
- A,
21063
+ b,
21006
21064
  {
21007
21065
  label: !0,
21008
21066
  name: "regardedOwnerName",
@@ -21011,7 +21069,7 @@ const vr = {
21011
21069
  }
21012
21070
  ),
21013
21071
  /* @__PURE__ */ i.jsx(
21014
- A,
21072
+ b,
21015
21073
  {
21016
21074
  label: !0,
21017
21075
  name: "regardedOwnerCountryOfCitizenship",
@@ -21020,7 +21078,7 @@ const vr = {
21020
21078
  }
21021
21079
  ),
21022
21080
  /* @__PURE__ */ i.jsx(
21023
- A,
21081
+ b,
21024
21082
  {
21025
21083
  label: !0,
21026
21084
  name: "regardedOwnerDbaName",
@@ -21029,7 +21087,7 @@ const vr = {
21029
21087
  }
21030
21088
  ),
21031
21089
  /* @__PURE__ */ i.jsx(
21032
- A,
21090
+ b,
21033
21091
  {
21034
21092
  label: !0,
21035
21093
  onEdit: () => a("RegardedOwnerClassification"),
@@ -21038,7 +21096,7 @@ const vr = {
21038
21096
  }
21039
21097
  ),
21040
21098
  /* @__PURE__ */ i.jsx(
21041
- A,
21099
+ b,
21042
21100
  {
21043
21101
  label: !0,
21044
21102
  onEdit: () => a("RegardedOwnerClassification"),
@@ -21061,7 +21119,7 @@ const vr = {
21061
21119
  }
21062
21120
  ),
21063
21121
  /* @__PURE__ */ i.jsx(
21064
- A,
21122
+ b,
21065
21123
  {
21066
21124
  label: !0,
21067
21125
  name: "regardedOwnerUsTin",
@@ -21070,7 +21128,7 @@ const vr = {
21070
21128
  }
21071
21129
  ),
21072
21130
  /* @__PURE__ */ i.jsx(
21073
- A,
21131
+ b,
21074
21132
  {
21075
21133
  label: !0,
21076
21134
  name: "regardedOwnerForeignTin",
@@ -21079,7 +21137,7 @@ const vr = {
21079
21137
  }
21080
21138
  ),
21081
21139
  /* @__PURE__ */ i.jsx(
21082
- A,
21140
+ b,
21083
21141
  {
21084
21142
  label: !0,
21085
21143
  name: "regardedOwnerForeignTinIsNotRequired",
@@ -21088,7 +21146,7 @@ const vr = {
21088
21146
  }
21089
21147
  ),
21090
21148
  /* @__PURE__ */ i.jsx(
21091
- A,
21149
+ b,
21092
21150
  {
21093
21151
  label: !0,
21094
21152
  name: "regardedOwnerUsTin",
@@ -21097,7 +21155,7 @@ const vr = {
21097
21155
  }
21098
21156
  ),
21099
21157
  /* @__PURE__ */ i.jsx(
21100
- A,
21158
+ b,
21101
21159
  {
21102
21160
  label: !0,
21103
21161
  name: "exemptFatcaCode",
@@ -21106,7 +21164,7 @@ const vr = {
21106
21164
  }
21107
21165
  ),
21108
21166
  /* @__PURE__ */ i.jsx(
21109
- A,
21167
+ b,
21110
21168
  {
21111
21169
  label: !0,
21112
21170
  name: "exemptPayeeCode",
@@ -21121,34 +21179,34 @@ const vr = {
21121
21179
  }, qo = () => {
21122
21180
  const { goBack: e, onSubmitTaxDocumentation: a, isW8: n, isW9: r } = ae(), { getLocalTitle: o, fields: s } = E();
21123
21181
  return /* @__PURE__ */ i.jsxs(
21124
- ke,
21182
+ pe,
21125
21183
  {
21126
21184
  title: o("summary"),
21127
- className: `taxbit-form-${oa("summary")}`,
21185
+ className: `taxbit-form-${la("summary")}`,
21128
21186
  children: [
21129
21187
  /* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
21130
21188
  /* @__PURE__ */ i.jsx(Zo, {}),
21131
- /* @__PURE__ */ i.jsxs(oe, { title: "Certify", showIf: r || n, children: [
21132
- /* @__PURE__ */ i.jsx(D, { name: "iCertifyToAll", label: !0 }),
21133
- /* @__PURE__ */ i.jsx(D, { name: "iConfirmTheTaxIdIsCorrect", label: !0 }),
21134
- /* @__PURE__ */ i.jsx(D, { name: "iAmNotSubjectToBackupWithholding", label: !0 }),
21135
- /* @__PURE__ */ i.jsx(D, { name: "iAmACitizenOfTheUs", label: !0 }),
21136
- /* @__PURE__ */ i.jsx(D, { name: "iAmExemptFromFatcaReporting", label: !0 }),
21137
- /* @__PURE__ */ i.jsx(D, { name: "iConfirmTheEntityIsTheBeneficialOwner", label: !0 }),
21138
- /* @__PURE__ */ i.jsx(D, { name: "iConfirmTheEntityIsNotAUsPerson", label: !0 }),
21139
- /* @__PURE__ */ i.jsx(D, { name: "iConfirmIncomeIsNonUs", label: !0, subLabel: !0 }),
21140
- /* @__PURE__ */ i.jsx(D, { name: "iConfirmTheBeneficialOwnerIsExempt", label: !0 }),
21141
- /* @__PURE__ */ i.jsx(D, { name: "iConfirmTheInformationIsCorrectComplete", label: !0 }),
21142
- /* @__PURE__ */ i.jsx(D, { name: "iAuthorizeWithholdingAgent", label: !0 })
21189
+ /* @__PURE__ */ i.jsxs(se, { title: "Certify", showIf: r || n, children: [
21190
+ /* @__PURE__ */ i.jsx(U, { name: "iCertifyToAll", label: !0 }),
21191
+ /* @__PURE__ */ i.jsx(U, { name: "iConfirmTheTaxIdIsCorrect", label: !0 }),
21192
+ /* @__PURE__ */ i.jsx(U, { name: "iAmNotSubjectToBackupWithholding", label: !0 }),
21193
+ /* @__PURE__ */ i.jsx(U, { name: "iAmACitizenOfTheUs", label: !0 }),
21194
+ /* @__PURE__ */ i.jsx(U, { name: "iAmExemptFromFatcaReporting", label: !0 }),
21195
+ /* @__PURE__ */ i.jsx(U, { name: "iConfirmTheEntityIsTheBeneficialOwner", label: !0 }),
21196
+ /* @__PURE__ */ i.jsx(U, { name: "iConfirmTheEntityIsNotAUsPerson", label: !0 }),
21197
+ /* @__PURE__ */ i.jsx(U, { name: "iConfirmIncomeIsNonUs", label: !0, subLabel: !0 }),
21198
+ /* @__PURE__ */ i.jsx(U, { name: "iConfirmTheBeneficialOwnerIsExempt", label: !0 }),
21199
+ /* @__PURE__ */ i.jsx(U, { name: "iConfirmTheInformationIsCorrectComplete", label: !0 }),
21200
+ /* @__PURE__ */ i.jsx(U, { name: "iAuthorizeWithholdingAgent", label: !0 })
21143
21201
  ] }),
21144
- /* @__PURE__ */ i.jsxs(oe, { title: "Acknowledge and Sign", showIf: r || n, children: [
21145
- /* @__PURE__ */ i.jsx(D, { name: "iAcknowlegeESignIsOk", label: !0 }),
21146
- /* @__PURE__ */ i.jsx(D, { name: "iHaveLegalCapacityToSign", label: !0 }),
21147
- /* @__PURE__ */ i.jsx(_, { label: !0, name: "signature" })
21202
+ /* @__PURE__ */ i.jsxs(se, { title: "Acknowledge and Sign", showIf: r || n, children: [
21203
+ /* @__PURE__ */ i.jsx(U, { name: "iAcknowlegeESignIsOk", label: !0 }),
21204
+ /* @__PURE__ */ i.jsx(U, { name: "iHaveLegalCapacityToSign", label: !0 }),
21205
+ /* @__PURE__ */ i.jsx(Y, { label: !0, name: "signature" })
21148
21206
  ] })
21149
21207
  ] }),
21150
21208
  /* @__PURE__ */ i.jsx(
21151
- he,
21209
+ fe,
21152
21210
  {
21153
21211
  onBack: e,
21154
21212
  onSubmit: () => a(s)
@@ -21157,11 +21215,11 @@ const vr = {
21157
21215
  ]
21158
21216
  }
21159
21217
  );
21160
- }, Yo = () => /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(qo, {}) }), _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21218
+ }, Yo = () => /* @__PURE__ */ i.jsx(ue, { children: /* @__PURE__ */ i.jsx(qo, {}) }), _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21161
21219
  __proto__: null,
21162
21220
  AccountHolderClassification: jo,
21163
21221
  AccountHolderContact: Eo,
21164
- AccountHolderTax: Ro,
21222
+ AccountHolderTax: Po,
21165
21223
  AccountHolderTaxClarification: Ho,
21166
21224
  Confirmation: Go,
21167
21225
  Exemptions: Uo,
@@ -21169,13 +21227,14 @@ const vr = {
21169
21227
  RegardedOwnerContact: Vo,
21170
21228
  RegardedOwnerTax: Jo,
21171
21229
  Summary: Yo
21172
- }, Symbol.toStringTag, { value: "Module" })), vt = ({
21230
+ }, Symbol.toStringTag, { value: "Module" })), pt = ({
21173
21231
  data: e,
21174
21232
  onSubmit: a,
21175
21233
  language: n,
21176
21234
  taxForms: r,
21177
21235
  complete: o,
21178
- onProgress: s
21236
+ onProgress: s,
21237
+ externalValidations: d
21179
21238
  }) => /* @__PURE__ */ i.jsx(
21180
21239
  so,
21181
21240
  {
@@ -21185,6 +21244,7 @@ const vr = {
21185
21244
  language: n,
21186
21245
  taxForms: r,
21187
21246
  step: o ? "Summary" : void 0,
21247
+ externalValidations: d,
21188
21248
  children: /* @__PURE__ */ i.jsx(
21189
21249
  Xo,
21190
21250
  {
@@ -21199,14 +21259,14 @@ const vr = {
21199
21259
  taxForms: a = Qo,
21200
21260
  data: n
21201
21261
  }) => {
21202
- const { stepName: r, setLanguage: o, setSupportedForms: s, onResetTaxDocumentation: l } = ae(), d = _o[r];
21203
- return Y(() => {
21262
+ const { stepName: r, setLanguage: o, setSupportedForms: s, onResetTaxDocumentation: d } = ae(), l = _o[r];
21263
+ return _(() => {
21204
21264
  o(e);
21205
- }, [e, o]), Y(() => {
21265
+ }, [e, o]), _(() => {
21206
21266
  s(a);
21207
- }, [a, s]), Y(() => {
21208
- n && l(n);
21209
- }, [n, l]), /* @__PURE__ */ i.jsx(d, {});
21267
+ }, [a, s]), _(() => {
21268
+ n && d(n);
21269
+ }, [n, d]), /* @__PURE__ */ i.jsx(l, {});
21210
21270
  }, as = ({
21211
21271
  data: e,
21212
21272
  onSubmit: a,
@@ -21214,7 +21274,7 @@ const vr = {
21214
21274
  language: r,
21215
21275
  complete: o
21216
21276
  }) => /* @__PURE__ */ i.jsx(
21217
- vt,
21277
+ pt,
21218
21278
  {
21219
21279
  data: e,
21220
21280
  language: r,
@@ -21230,25 +21290,32 @@ const vr = {
21230
21290
  language: r,
21231
21291
  taxForms: o,
21232
21292
  onProgress: s,
21233
- onSubmit: l,
21234
- onSuccess: d
21293
+ onSubmit: d,
21294
+ onSuccess: l
21235
21295
  }) => {
21236
- const { isComplete: m, isLoading: h, formData: g, handleOnSubmit: c } = to({
21296
+ const {
21297
+ isComplete: m,
21298
+ isLoading: k,
21299
+ formData: g,
21300
+ handleOnSubmit: c,
21301
+ externalValidations: v
21302
+ } = to({
21237
21303
  bearerToken: n,
21238
21304
  data: a,
21239
- onSubmit: l,
21240
- onSuccess: d,
21305
+ onSubmit: d,
21306
+ onSuccess: l,
21241
21307
  staging: e
21242
21308
  });
21243
- return h ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-loading", children: gt("retrievingInterviewStatus", r) }) : /* @__PURE__ */ i.jsx(
21244
- vt,
21309
+ return k ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-loading", children: gt("retrievingInterviewStatus", r) }) : /* @__PURE__ */ i.jsx(
21310
+ pt,
21245
21311
  {
21246
21312
  data: g,
21247
21313
  language: r,
21248
21314
  onSubmit: c,
21249
21315
  onProgress: s,
21250
21316
  taxForms: o,
21251
- complete: m
21317
+ complete: m,
21318
+ externalValidations: v
21252
21319
  }
21253
21320
  );
21254
21321
  }, is = ({
@@ -21258,7 +21325,7 @@ const vr = {
21258
21325
  language: r,
21259
21326
  onSubmit: o,
21260
21327
  onProgress: s,
21261
- onSuccess: l
21328
+ onSuccess: d
21262
21329
  }) => /* @__PURE__ */ i.jsx(
21263
21330
  $o,
21264
21331
  {
@@ -21269,13 +21336,13 @@ const vr = {
21269
21336
  staging: a,
21270
21337
  onSubmit: o,
21271
21338
  onProgress: s,
21272
- onSuccess: l
21339
+ onSuccess: d
21273
21340
  }
21274
21341
  );
21275
21342
  export {
21276
21343
  is as TaxBitDAC7Form,
21277
21344
  as as TaxBitDAC7FormUI,
21278
21345
  $o as TaxBitForm,
21279
- vt as TaxBitFormUI,
21346
+ pt as TaxBitFormUI,
21280
21347
  kr as useTaxBit
21281
21348
  };