@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.
- package/dist/src/contexts/FormUI/useFormUI.d.ts +1 -0
- package/dist/src/contexts/FormUI/useFormUIContext.d.ts +2 -0
- package/dist/src/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +3 -2
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +4 -2
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +2 -0
- package/dist/src/hooks/useTaxBit/useTaxBit.d.ts +0 -1
- package/dist/src/i18n/types/LocalizationKey.d.ts +1 -1
- package/dist/src/types/Progress.d.ts +2 -2
- package/dist/src/types/client/ClientTaxDocumentationStatus.d.ts +1 -0
- package/dist/src/types/client/ExternalValidations.d.ts +7 -0
- package/dist/src/types/client/index.d.ts +1 -0
- package/dist/src/types/server/TaxDocumentationStatus.d.ts +2 -1
- package/dist/src/validations/getInvalidFields.d.ts +2 -1
- package/dist/src/validations/invalidFieldRules.d.ts +2 -1
- package/dist/src/widgets/TaxBitForm/__tests__/TaxBitForm.complete.test.d.ts +0 -0
- package/dist/src/widgets/TaxBitForm/useTaxBitForm.d.ts +4 -3
- package/dist/src/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +3 -2
- package/dist/taxbit-react-sdk.js +1180 -1113
- package/dist/taxbit-react-sdk.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/taxbit-react-sdk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import at, { useState as
|
|
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
|
-
),
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
],
|
|
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 =
|
|
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 =
|
|
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),
|
|
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
|
-
],
|
|
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
|
-
],
|
|
393
|
+
], Xa = [
|
|
394
394
|
{ value: "simpleTrust" },
|
|
395
395
|
{ value: "complexTrust" },
|
|
396
396
|
{ value: "grantorTrust" }
|
|
397
|
-
], wt =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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),
|
|
466
|
+
], Ft = ot.map((e) => e.value), $a = [
|
|
467
467
|
{ value: "cCorporation" },
|
|
468
468
|
{ value: "sCorporation" },
|
|
469
469
|
{ value: "partnership" }
|
|
470
|
-
], Kt =
|
|
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 =
|
|
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
|
-
})),
|
|
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")),
|
|
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:
|
|
549
|
+
accountHolderIsDisregarded: l,
|
|
550
550
|
hasNoEUTaxId: m,
|
|
551
|
-
hasTaxResidence:
|
|
552
|
-
isDac7:
|
|
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
|
-
}),
|
|
692
|
-
var r, o, s,
|
|
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
|
-
...(
|
|
700
|
-
}), ((
|
|
701
|
-
...(
|
|
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((
|
|
705
|
-
)), (
|
|
706
|
-
JSON.stringify((
|
|
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
|
-
}, ((
|
|
714
|
-
...(
|
|
715
|
-
...(
|
|
716
|
-
}), ((
|
|
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
|
-
...(
|
|
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()}`),
|
|
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
|
-
|
|
724
|
+
qa(n)
|
|
725
725
|
]
|
|
726
726
|
)
|
|
727
|
-
), ir = "0.4.
|
|
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:
|
|
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 &&
|
|
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) =>
|
|
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:
|
|
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
|
-
},
|
|
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
|
-
],
|
|
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 (!
|
|
1017
|
+
if (!Ya(n) && D(a[`accountHolderTaxResidenceCountry${e}`]) && R(
|
|
1015
1018
|
a[`accountHolderTaxResidenceForeignTin${e}IsNotRequired`]
|
|
1016
1019
|
))
|
|
1017
1020
|
return ["invalid"];
|
|
1018
|
-
if (
|
|
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 (
|
|
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 (
|
|
1062
|
+
if (R(a))
|
|
1060
1063
|
return;
|
|
1061
|
-
if (!
|
|
1064
|
+
if (!Ra.test(a))
|
|
1062
1065
|
return ["mustBeNineDigits"];
|
|
1063
|
-
if (
|
|
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 (!
|
|
1069
|
+
if (!Ra.test(a))
|
|
1067
1070
|
return ["mustBeNineDigits"];
|
|
1068
|
-
if (
|
|
1071
|
+
if (Pa.includes(a))
|
|
1069
1072
|
return ["invalid"];
|
|
1070
1073
|
}
|
|
1071
1074
|
},
|
|
1072
|
-
accountHolderVatIdentificationNumber: (e) => {
|
|
1073
|
-
const
|
|
1074
|
-
if (
|
|
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" && !
|
|
1086
|
+
if (e.accountHolderIsIndividual === "no" && !Ya(a))
|
|
1080
1087
|
return ["invalid"];
|
|
1081
|
-
if (
|
|
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 (!
|
|
1093
|
+
if (!Ya(a) && R(e.accountHolderTaxResidenceForeignTin1IsNotRequired))
|
|
1087
1094
|
return ["invalid"];
|
|
1088
|
-
if (
|
|
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
|
-
) &&
|
|
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 (
|
|
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 (
|
|
1133
|
+
if (D(a) && !Ra.test(a))
|
|
1127
1134
|
return ["mustBeNineDigits"];
|
|
1128
|
-
if (
|
|
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 (!
|
|
1138
|
+
if (!Ra.test(a))
|
|
1132
1139
|
return ["mustBeNineDigits"];
|
|
1133
|
-
if (
|
|
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((
|
|
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
|
|
1158
|
+
}, mr = (e, a) => {
|
|
1159
|
+
const n = ut(e);
|
|
1153
1160
|
return Object.fromEntries(
|
|
1154
|
-
Object.keys(e).map((
|
|
1155
|
-
var
|
|
1156
|
-
const
|
|
1161
|
+
Object.keys(e).map((r) => {
|
|
1162
|
+
var s;
|
|
1163
|
+
const o = e[r];
|
|
1157
1164
|
return [
|
|
1158
|
-
|
|
1159
|
-
|
|
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(([,
|
|
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:
|
|
1279
|
-
hasNoEUTaxId:
|
|
1289
|
+
isW8: d,
|
|
1290
|
+
hasNoEUTaxId: l,
|
|
1280
1291
|
hasTaxResidence: m,
|
|
1281
|
-
isDac7:
|
|
1292
|
+
isDac7: k,
|
|
1282
1293
|
isIndividual: g
|
|
1283
|
-
} = xa(e, a), c =
|
|
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 &&
|
|
1306
|
-
accountHolderCountryOfBirth: g &&
|
|
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:
|
|
1374
|
-
iConfirmTheEntityIsTheBeneficialOwner:
|
|
1375
|
-
iConfirmTheBeneficialOwnerIsExempt:
|
|
1384
|
+
iConfirmIncomeIsNonUs: d,
|
|
1385
|
+
iConfirmTheEntityIsTheBeneficialOwner: d,
|
|
1386
|
+
iConfirmTheBeneficialOwnerIsExempt: d,
|
|
1376
1387
|
iConfirmTheTaxIdIsCorrect: o,
|
|
1377
|
-
iConfirmTheEntityIsNotAUsPerson:
|
|
1378
|
-
iConfirmTheInformationIsCorrectComplete:
|
|
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,
|
|
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: (
|
|
1394
|
-
accountHolderCityOfBirth: (
|
|
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: (
|
|
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: (
|
|
1399
|
-
accountHolderCountryOfCitizenship: (
|
|
1400
|
-
accountHolderAddress: (
|
|
1401
|
-
accountHolderAddressStreet: (
|
|
1402
|
-
accountHolderAddressStreet2: (
|
|
1403
|
-
accountHolderAddressCity: (J = (
|
|
1404
|
-
accountHolderAddressState: (
|
|
1405
|
-
accountHolderAddressZip: (
|
|
1406
|
-
accountHolderAddressCountry: (
|
|
1407
|
-
accountHolderMailingAddressIsDifferent: (
|
|
1408
|
-
accountHolderMailingAddress: (
|
|
1409
|
-
accountHolderMailingAddressStreet: (
|
|
1410
|
-
accountHolderMailingAddressStreet2: (
|
|
1411
|
-
accountHolderMailingAddressCity: (
|
|
1412
|
-
accountHolderMailingAddressState: (
|
|
1413
|
-
accountHolderMailingAddressZip: (
|
|
1414
|
-
accountHolderMailingAddressCountry: (
|
|
1415
|
-
accountHolderIsIndividual: ((
|
|
1416
|
-
accountHolderIsEuResident: ((
|
|
1417
|
-
accountHolderUsPerson: ((ua = e.accountHolder) == null ? void 0 : ua.isUsPerson) === !0 ? "yes" : ((
|
|
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" : ((
|
|
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
|
-
(
|
|
1434
|
+
(Ee = e.accountHolder) == null ? void 0 : Ee.usLlcClassification
|
|
1424
1435
|
),
|
|
1425
|
-
accountHolderUsOtherClassification: (
|
|
1426
|
-
accountHolderUsTrustEstateEin: ((
|
|
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
|
-
(
|
|
1445
|
+
(xe = e.accountHolder) == null ? void 0 : xe.foreignOtherClassification
|
|
1435
1446
|
),
|
|
1436
|
-
accountHolderFinancialAccountName:
|
|
1447
|
+
accountHolderFinancialAccountName: R(
|
|
1437
1448
|
(ha = e.accountHolder) == null ? void 0 : ha.financialAccountName
|
|
1438
|
-
) ? (
|
|
1439
|
-
accountHolderFinancialAccountIdentifier: (
|
|
1440
|
-
accountHolderVatIdentificationNumber: (
|
|
1441
|
-
accountHolderVatCountry: (
|
|
1442
|
-
accountHolderVatIsNotRequired: (
|
|
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: !
|
|
1446
|
-
accountHolderShowTaxResidence3: !
|
|
1447
|
-
accountHolderShowTaxResidence4: !
|
|
1448
|
-
accountHolderShowTaxResidence5: !
|
|
1449
|
-
accountHolderTaxResidenceCountry1: (
|
|
1450
|
-
accountHolderTaxResidenceForeignTin1: (
|
|
1451
|
-
accountHolderTaxResidenceForeignTin1IsNotRequired: (
|
|
1452
|
-
accountHolderTaxResidenceCountry2: (
|
|
1453
|
-
accountHolderTaxResidenceForeignTin2: (
|
|
1454
|
-
accountHolderTaxResidenceForeignTin2IsNotRequired: (
|
|
1455
|
-
accountHolderTaxResidenceCountry3: (
|
|
1456
|
-
accountHolderTaxResidenceForeignTin3: (
|
|
1457
|
-
accountHolderTaxResidenceForeignTin3IsNotRequired: (
|
|
1458
|
-
accountHolderTaxResidenceCountry4: (
|
|
1459
|
-
accountHolderTaxResidenceForeignTin4: (
|
|
1460
|
-
accountHolderTaxResidenceForeignTin4IsNotRequired: (Ri = (
|
|
1461
|
-
accountHolderTaxResidenceCountry5: (
|
|
1462
|
-
accountHolderTaxResidenceForeignTin5: (
|
|
1463
|
-
accountHolderTaxResidenceForeignTin5IsNotRequired: (
|
|
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: (
|
|
1466
|
-
regardedOwnerDbaName: (
|
|
1467
|
-
regardedOwnerDateOfBirth: (
|
|
1468
|
-
regardedOwnerUsTin: (
|
|
1469
|
-
regardedOwnerForeignTin: (
|
|
1470
|
-
regardedOwnerForeignTinIsNotRequired: (
|
|
1471
|
-
regardedOwnerCountryOfCitizenship: (
|
|
1472
|
-
regardedOwnerAddress: (
|
|
1473
|
-
regardedOwnerAddressStreet: (
|
|
1474
|
-
regardedOwnerAddressStreet2: (
|
|
1475
|
-
regardedOwnerAddressCity: (
|
|
1476
|
-
regardedOwnerAddressState: (
|
|
1477
|
-
regardedOwnerAddressZip: (
|
|
1478
|
-
regardedOwnerAddressCountry: (
|
|
1479
|
-
regardedOwnerMailingAddressIsDifferent: (
|
|
1480
|
-
regardedOwnerMailingAddress: (
|
|
1481
|
-
regardedOwnerMailingAddressStreet: (
|
|
1482
|
-
regardedOwnerMailingAddressStreet2: (
|
|
1483
|
-
regardedOwnerMailingAddressCity: (
|
|
1484
|
-
regardedOwnerMailingAddressState: (
|
|
1485
|
-
regardedOwnerMailingAddressZip: (
|
|
1486
|
-
regardedOwnerMailingAddressCountry: (
|
|
1487
|
-
regardedOwnerUsPerson: ((
|
|
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
|
-
(
|
|
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: (
|
|
1495
|
-
regardedOwnerUsTrustEstateEin: ((
|
|
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
|
-
(
|
|
1508
|
+
(Gn = e.regardedOwner) == null ? void 0 : Gn.foreignAccountType
|
|
1498
1509
|
),
|
|
1499
1510
|
regardedOwnerForeignTrustClassification: Jn(
|
|
1500
|
-
(
|
|
1511
|
+
(xn = e.regardedOwner) == null ? void 0 : xn.foreignTrustClassification
|
|
1501
1512
|
),
|
|
1502
1513
|
regardedOwnerForeignOtherClassification: Wn(
|
|
1503
|
-
(
|
|
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
|
-
|
|
1517
|
-
|
|
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(
|
|
1531
|
+
body: JSON.stringify(qa(A))
|
|
1522
1532
|
};
|
|
1523
|
-
fetch(g,
|
|
1524
|
-
y.status === 200 &&
|
|
1533
|
+
fetch(g, f).then((y) => {
|
|
1534
|
+
y.status === 200 && l(!0);
|
|
1525
1535
|
});
|
|
1526
1536
|
};
|
|
1527
|
-
|
|
1528
|
-
const
|
|
1537
|
+
return _(() => {
|
|
1538
|
+
const A = {
|
|
1529
1539
|
method: "GET",
|
|
1530
1540
|
headers: Wa({ bearerToken: e })
|
|
1531
1541
|
};
|
|
1532
|
-
fetch(c,
|
|
1533
|
-
if (
|
|
1534
|
-
return
|
|
1535
|
-
throw
|
|
1536
|
-
}).then((
|
|
1537
|
-
s(La(
|
|
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]),
|
|
1549
|
+
}, [e, c]), _(() => {
|
|
1540
1550
|
if (o && o.submissionStatus !== "NOT_SUBMITTED") {
|
|
1541
|
-
const
|
|
1551
|
+
const A = {
|
|
1542
1552
|
method: "GET",
|
|
1543
1553
|
headers: Wa({ bearerToken: e })
|
|
1544
1554
|
};
|
|
1545
|
-
fetch(
|
|
1546
|
-
if (
|
|
1547
|
-
return
|
|
1555
|
+
fetch(k, A).then((f) => {
|
|
1556
|
+
if (f.ok)
|
|
1557
|
+
return f.json();
|
|
1548
1558
|
throw new Error("Something went wrong");
|
|
1549
|
-
}).then((
|
|
1550
|
-
r(La(
|
|
1559
|
+
}).then((f) => {
|
|
1560
|
+
r(La(f));
|
|
1551
1561
|
});
|
|
1552
1562
|
}
|
|
1553
|
-
}, [e, o,
|
|
1554
|
-
|
|
1555
|
-
return {
|
|
1556
|
-
postData: p,
|
|
1557
|
-
formStatus: f,
|
|
1563
|
+
}, [e, o, k]), {
|
|
1564
|
+
postData: v,
|
|
1558
1565
|
status: o,
|
|
1559
|
-
formSubmitted:
|
|
1566
|
+
formSubmitted: d,
|
|
1560
1567
|
serverData: n
|
|
1561
1568
|
};
|
|
1562
1569
|
};
|
|
1563
|
-
var
|
|
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
|
|
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
|
|
1580
|
-
var g, c = {},
|
|
1581
|
-
|
|
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 (
|
|
1585
|
-
for (g in 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:
|
|
1594
|
+
return { $$typeof: a, type: l, key: v, ref: A, props: c, _owner: o.current };
|
|
1588
1595
|
}
|
|
1589
|
-
return
|
|
1596
|
+
return ta.Fragment = n, ta.jsx = d, ta.jsxs = d, ta;
|
|
1590
1597
|
}
|
|
1591
|
-
var
|
|
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
|
|
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"),
|
|
1605
|
-
function
|
|
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 =
|
|
1615
|
+
var u = f && t[f] || t[y];
|
|
1609
1616
|
return typeof u == "function" ? u : null;
|
|
1610
1617
|
}
|
|
1611
|
-
var
|
|
1612
|
-
function
|
|
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,
|
|
1615
|
-
|
|
1616
|
-
|
|
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
|
|
1626
|
+
function p(t, u, h) {
|
|
1620
1627
|
{
|
|
1621
|
-
var
|
|
1622
|
-
|
|
1623
|
-
var
|
|
1624
|
-
return String(
|
|
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
|
-
|
|
1633
|
+
P.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, P);
|
|
1627
1634
|
}
|
|
1628
1635
|
}
|
|
1629
|
-
var
|
|
1630
|
-
|
|
1631
|
-
function
|
|
1632
|
-
return !!(typeof t == "string" || typeof t == "function" || t === r || t === s ||
|
|
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 ===
|
|
1643
|
+
t.$$typeof === M || t.getModuleId !== void 0));
|
|
1637
1644
|
}
|
|
1638
|
-
function
|
|
1639
|
-
var
|
|
1640
|
-
if (
|
|
1641
|
-
return
|
|
1642
|
-
var
|
|
1643
|
-
return
|
|
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
|
|
1652
|
+
function Se(t) {
|
|
1646
1653
|
return t.displayName || "Context";
|
|
1647
1654
|
}
|
|
1648
|
-
function
|
|
1655
|
+
function q(t) {
|
|
1649
1656
|
if (t == null)
|
|
1650
1657
|
return null;
|
|
1651
|
-
if (typeof t.tag == "number" &&
|
|
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
|
|
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
|
|
1676
|
-
return
|
|
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
|
|
1685
|
+
return te(t, t.render, "ForwardRef");
|
|
1679
1686
|
case c:
|
|
1680
|
-
var
|
|
1681
|
-
return
|
|
1682
|
-
case
|
|
1683
|
-
var
|
|
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
|
|
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
|
|
1694
|
-
function
|
|
1700
|
+
var ie = Object.assign, re = 0, Ae, me, Ne, ge, Te, Me, ye;
|
|
1701
|
+
function O() {
|
|
1695
1702
|
}
|
|
1696
|
-
|
|
1697
|
-
function
|
|
1703
|
+
O.__reactDisabledLog = !0;
|
|
1704
|
+
function F() {
|
|
1698
1705
|
{
|
|
1699
|
-
if (
|
|
1700
|
-
|
|
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:
|
|
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
|
-
|
|
1724
|
+
re++;
|
|
1718
1725
|
}
|
|
1719
1726
|
}
|
|
1720
|
-
function
|
|
1727
|
+
function we() {
|
|
1721
1728
|
{
|
|
1722
|
-
if (
|
|
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:
|
|
1730
|
-
value:
|
|
1736
|
+
log: ie({}, t, {
|
|
1737
|
+
value: Ae
|
|
1731
1738
|
}),
|
|
1732
|
-
info:
|
|
1733
|
-
value:
|
|
1739
|
+
info: ie({}, t, {
|
|
1740
|
+
value: me
|
|
1734
1741
|
}),
|
|
1735
|
-
warn:
|
|
1736
|
-
value:
|
|
1742
|
+
warn: ie({}, t, {
|
|
1743
|
+
value: Ne
|
|
1737
1744
|
}),
|
|
1738
|
-
error:
|
|
1739
|
-
value:
|
|
1745
|
+
error: ie({}, t, {
|
|
1746
|
+
value: ge
|
|
1740
1747
|
}),
|
|
1741
|
-
group:
|
|
1742
|
-
value:
|
|
1748
|
+
group: ie({}, t, {
|
|
1749
|
+
value: Te
|
|
1743
1750
|
}),
|
|
1744
|
-
groupCollapsed:
|
|
1745
|
-
value:
|
|
1751
|
+
groupCollapsed: ie({}, t, {
|
|
1752
|
+
value: Me
|
|
1746
1753
|
}),
|
|
1747
|
-
groupEnd:
|
|
1748
|
-
value:
|
|
1754
|
+
groupEnd: ie({}, t, {
|
|
1755
|
+
value: ye
|
|
1749
1756
|
})
|
|
1750
1757
|
});
|
|
1751
1758
|
}
|
|
1752
|
-
|
|
1759
|
+
re < 0 && z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1753
1760
|
}
|
|
1754
1761
|
}
|
|
1755
|
-
var
|
|
1756
|
-
function
|
|
1762
|
+
var He = I.ReactCurrentDispatcher, Le;
|
|
1763
|
+
function je(t, u, h) {
|
|
1757
1764
|
{
|
|
1758
|
-
if (
|
|
1765
|
+
if (Le === void 0)
|
|
1759
1766
|
try {
|
|
1760
1767
|
throw Error();
|
|
1761
|
-
} catch (
|
|
1762
|
-
var
|
|
1763
|
-
|
|
1768
|
+
} catch (j) {
|
|
1769
|
+
var C = j.stack.trim().match(/\n( *(at )?)/);
|
|
1770
|
+
Le = C && C[1] || "";
|
|
1764
1771
|
}
|
|
1765
1772
|
return `
|
|
1766
|
-
` +
|
|
1773
|
+
` + Le + t;
|
|
1767
1774
|
}
|
|
1768
1775
|
}
|
|
1769
|
-
var
|
|
1776
|
+
var Ge = !1, Oe;
|
|
1770
1777
|
{
|
|
1771
1778
|
var ua = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1772
|
-
|
|
1779
|
+
Oe = new ua();
|
|
1773
1780
|
}
|
|
1774
|
-
function
|
|
1775
|
-
if (!t ||
|
|
1781
|
+
function Ve(t, u) {
|
|
1782
|
+
if (!t || Ge)
|
|
1776
1783
|
return "";
|
|
1777
1784
|
{
|
|
1778
|
-
var
|
|
1779
|
-
if (
|
|
1780
|
-
return
|
|
1785
|
+
var h = Oe.get(t);
|
|
1786
|
+
if (h !== void 0)
|
|
1787
|
+
return h;
|
|
1781
1788
|
}
|
|
1782
|
-
var
|
|
1783
|
-
|
|
1784
|
-
var
|
|
1789
|
+
var C;
|
|
1790
|
+
Ge = !0;
|
|
1791
|
+
var j = Error.prepareStackTrace;
|
|
1785
1792
|
Error.prepareStackTrace = void 0;
|
|
1786
|
-
var
|
|
1787
|
-
|
|
1793
|
+
var P;
|
|
1794
|
+
P = He.current, He.current = null, F();
|
|
1788
1795
|
try {
|
|
1789
1796
|
if (u) {
|
|
1790
|
-
var
|
|
1797
|
+
var N = function() {
|
|
1791
1798
|
throw Error();
|
|
1792
1799
|
};
|
|
1793
|
-
if (Object.defineProperty(
|
|
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(
|
|
1800
|
-
} catch (
|
|
1801
|
-
|
|
1806
|
+
Reflect.construct(N, []);
|
|
1807
|
+
} catch (ne) {
|
|
1808
|
+
C = ne;
|
|
1802
1809
|
}
|
|
1803
|
-
Reflect.construct(t, [],
|
|
1810
|
+
Reflect.construct(t, [], N);
|
|
1804
1811
|
} else {
|
|
1805
1812
|
try {
|
|
1806
|
-
|
|
1807
|
-
} catch (
|
|
1808
|
-
|
|
1813
|
+
N.call();
|
|
1814
|
+
} catch (ne) {
|
|
1815
|
+
C = ne;
|
|
1809
1816
|
}
|
|
1810
|
-
t.call(
|
|
1817
|
+
t.call(N.prototype);
|
|
1811
1818
|
}
|
|
1812
1819
|
} else {
|
|
1813
1820
|
try {
|
|
1814
1821
|
throw Error();
|
|
1815
|
-
} catch (
|
|
1816
|
-
|
|
1822
|
+
} catch (ne) {
|
|
1823
|
+
C = ne;
|
|
1817
1824
|
}
|
|
1818
1825
|
t();
|
|
1819
1826
|
}
|
|
1820
|
-
} catch (
|
|
1821
|
-
if (
|
|
1822
|
-
for (var S =
|
|
1823
|
-
`),
|
|
1824
|
-
`), w = S.length - 1,
|
|
1825
|
-
|
|
1826
|
-
for (; w >= 1 &&
|
|
1827
|
-
if (S[w] !==
|
|
1828
|
-
if (w !== 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--,
|
|
1831
|
-
var
|
|
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 &&
|
|
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 &&
|
|
1842
|
+
while (w >= 1 && L >= 0);
|
|
1836
1843
|
break;
|
|
1837
1844
|
}
|
|
1838
1845
|
}
|
|
1839
1846
|
} finally {
|
|
1840
|
-
|
|
1847
|
+
Ge = !1, He.current = P, we(), Error.prepareStackTrace = j;
|
|
1841
1848
|
}
|
|
1842
|
-
var
|
|
1843
|
-
return typeof t == "function" &&
|
|
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,
|
|
1846
|
-
return
|
|
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
|
|
1859
|
+
function ze(t, u, h) {
|
|
1853
1860
|
if (t == null)
|
|
1854
1861
|
return "";
|
|
1855
1862
|
if (typeof t == "function")
|
|
1856
|
-
return
|
|
1863
|
+
return Ve(t, ma(t));
|
|
1857
1864
|
if (typeof t == "string")
|
|
1858
|
-
return
|
|
1865
|
+
return je(t);
|
|
1859
1866
|
switch (t) {
|
|
1860
|
-
case
|
|
1861
|
-
return
|
|
1867
|
+
case k:
|
|
1868
|
+
return je("Suspense");
|
|
1862
1869
|
case g:
|
|
1863
|
-
return
|
|
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
|
|
1871
|
-
case
|
|
1872
|
-
var
|
|
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
|
|
1881
|
+
return ze(P(j), u, h);
|
|
1875
1882
|
} catch {
|
|
1876
1883
|
}
|
|
1877
1884
|
}
|
|
1878
1885
|
}
|
|
1879
1886
|
return "";
|
|
1880
1887
|
}
|
|
1881
|
-
var
|
|
1882
|
-
function
|
|
1888
|
+
var Ee = Object.prototype.hasOwnProperty, We = {}, Je = I.ReactDebugCurrentFrame;
|
|
1889
|
+
function Be(t) {
|
|
1883
1890
|
if (t) {
|
|
1884
|
-
var u = t._owner,
|
|
1885
|
-
|
|
1891
|
+
var u = t._owner, h = ze(t.type, t._source, u ? u.type : null);
|
|
1892
|
+
Je.setExtraStackFrame(h);
|
|
1886
1893
|
} else
|
|
1887
|
-
|
|
1894
|
+
Je.setExtraStackFrame(null);
|
|
1888
1895
|
}
|
|
1889
|
-
function ga(t, u,
|
|
1896
|
+
function ga(t, u, h, C, j) {
|
|
1890
1897
|
{
|
|
1891
|
-
var
|
|
1892
|
-
for (var
|
|
1893
|
-
if (
|
|
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[
|
|
1897
|
-
var
|
|
1898
|
-
throw
|
|
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[
|
|
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) && (
|
|
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
|
|
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,
|
|
1915
|
-
return
|
|
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
|
|
1925
|
+
function va(t) {
|
|
1919
1926
|
try {
|
|
1920
|
-
return
|
|
1927
|
+
return Ze(t), !1;
|
|
1921
1928
|
} catch {
|
|
1922
1929
|
return !0;
|
|
1923
1930
|
}
|
|
1924
1931
|
}
|
|
1925
|
-
function
|
|
1932
|
+
function Ze(t) {
|
|
1926
1933
|
return "" + t;
|
|
1927
1934
|
}
|
|
1928
|
-
function
|
|
1929
|
-
if (
|
|
1930
|
-
return
|
|
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
|
|
1939
|
+
var be = I.ReactCurrentOwner, pa = {
|
|
1933
1940
|
key: !0,
|
|
1934
1941
|
ref: !0,
|
|
1935
1942
|
__self: !0,
|
|
1936
1943
|
__source: !0
|
|
1937
|
-
},
|
|
1938
|
-
|
|
1944
|
+
}, Ye, _e, Ue;
|
|
1945
|
+
Ue = {};
|
|
1939
1946
|
function fa(t) {
|
|
1940
|
-
if (
|
|
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 (
|
|
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" &&
|
|
1957
|
-
var
|
|
1958
|
-
|
|
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
|
|
1964
|
-
|
|
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
|
-
|
|
1967
|
-
get:
|
|
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
|
|
1975
|
-
|
|
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
|
-
|
|
1978
|
-
get:
|
|
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,
|
|
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:
|
|
1991
|
-
props:
|
|
1997
|
+
ref: h,
|
|
1998
|
+
props: N,
|
|
1992
1999
|
// Record the component responsible for creating this element.
|
|
1993
|
-
_owner:
|
|
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:
|
|
2011
|
+
value: C
|
|
2005
2012
|
}), Object.defineProperty(S, "_source", {
|
|
2006
2013
|
configurable: !1,
|
|
2007
2014
|
enumerable: !1,
|
|
2008
2015
|
writable: !1,
|
|
2009
|
-
value:
|
|
2016
|
+
value: j
|
|
2010
2017
|
}), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
|
|
2011
2018
|
};
|
|
2012
|
-
function Na(t, u,
|
|
2019
|
+
function Na(t, u, h, C, j) {
|
|
2013
2020
|
{
|
|
2014
|
-
var
|
|
2015
|
-
|
|
2016
|
-
for (
|
|
2017
|
-
|
|
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 (
|
|
2021
|
-
|
|
2027
|
+
for (P in w)
|
|
2028
|
+
N[P] === void 0 && (N[P] = w[P]);
|
|
2022
2029
|
}
|
|
2023
|
-
if (S ||
|
|
2024
|
-
var
|
|
2025
|
-
S && Ca(
|
|
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,
|
|
2034
|
+
return Sa(t, S, K, j, C, be.current, N);
|
|
2028
2035
|
}
|
|
2029
2036
|
}
|
|
2030
|
-
var
|
|
2031
|
-
function
|
|
2037
|
+
var De = I.ReactCurrentOwner, Qe = I.ReactDebugCurrentFrame;
|
|
2038
|
+
function ke(t) {
|
|
2032
2039
|
if (t) {
|
|
2033
|
-
var u = t._owner,
|
|
2034
|
-
|
|
2040
|
+
var u = t._owner, h = ze(t.type, t._source, u ? u.type : null);
|
|
2041
|
+
Qe.setExtraStackFrame(h);
|
|
2035
2042
|
} else
|
|
2036
|
-
|
|
2043
|
+
Qe.setExtraStackFrame(null);
|
|
2037
2044
|
}
|
|
2038
|
-
var
|
|
2039
|
-
|
|
2040
|
-
function
|
|
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
|
|
2050
|
+
function Xe() {
|
|
2044
2051
|
{
|
|
2045
|
-
if (
|
|
2046
|
-
var t =
|
|
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(/^.*[\\\/]/, ""),
|
|
2065
|
+
var u = t.fileName.replace(/^.*[\\\/]/, ""), h = t.lineNumber;
|
|
2059
2066
|
return `
|
|
2060
2067
|
|
|
2061
|
-
Check your code at ` + u + ":" +
|
|
2068
|
+
Check your code at ` + u + ":" + h + ".";
|
|
2062
2069
|
}
|
|
2063
2070
|
return "";
|
|
2064
2071
|
}
|
|
2065
2072
|
}
|
|
2066
|
-
var
|
|
2073
|
+
var $e = {};
|
|
2067
2074
|
function Ma(t) {
|
|
2068
2075
|
{
|
|
2069
|
-
var u =
|
|
2076
|
+
var u = Xe();
|
|
2070
2077
|
if (!u) {
|
|
2071
|
-
var
|
|
2072
|
-
|
|
2078
|
+
var h = typeof t == "string" ? t : t.displayName || t.name;
|
|
2079
|
+
h && (u = `
|
|
2073
2080
|
|
|
2074
|
-
Check the top-level render call using <` +
|
|
2081
|
+
Check the top-level render call using <` + h + ">.");
|
|
2075
2082
|
}
|
|
2076
2083
|
return u;
|
|
2077
2084
|
}
|
|
2078
2085
|
}
|
|
2079
|
-
function
|
|
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
|
|
2085
|
-
if (
|
|
2091
|
+
var h = Ma(u);
|
|
2092
|
+
if ($e[h])
|
|
2086
2093
|
return;
|
|
2087
|
-
|
|
2088
|
-
var
|
|
2089
|
-
t && t._owner && t._owner !==
|
|
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
|
|
2099
|
+
function aa(t, u) {
|
|
2093
2100
|
{
|
|
2094
2101
|
if (typeof t != "object")
|
|
2095
2102
|
return;
|
|
2096
|
-
if (
|
|
2097
|
-
for (var
|
|
2098
|
-
var
|
|
2099
|
-
|
|
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 (
|
|
2108
|
+
else if (Ke(t))
|
|
2102
2109
|
t._store && (t._store.validated = !0);
|
|
2103
2110
|
else if (t) {
|
|
2104
|
-
var
|
|
2105
|
-
if (typeof
|
|
2106
|
-
for (var
|
|
2107
|
-
|
|
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
|
|
2123
|
+
var h;
|
|
2117
2124
|
if (typeof u == "function")
|
|
2118
|
-
|
|
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
|
-
|
|
2129
|
+
h = u.propTypes;
|
|
2123
2130
|
else
|
|
2124
2131
|
return;
|
|
2125
|
-
if (
|
|
2126
|
-
var
|
|
2127
|
-
ga(
|
|
2128
|
-
} else if (u.PropTypes !== void 0 && !
|
|
2129
|
-
|
|
2130
|
-
var
|
|
2131
|
-
|
|
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 &&
|
|
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),
|
|
2139
|
-
var
|
|
2140
|
-
if (
|
|
2141
|
-
|
|
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 && (
|
|
2152
|
+
t.ref !== null && (ke(t), z("Invalid attribute `ref` supplied to `React.Fragment`."), ke(null));
|
|
2146
2153
|
}
|
|
2147
2154
|
}
|
|
2148
|
-
function
|
|
2155
|
+
function ia(t, u, h, C, j, P) {
|
|
2149
2156
|
{
|
|
2150
|
-
var
|
|
2151
|
-
if (!
|
|
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
|
|
2155
|
-
|
|
2161
|
+
var K = Ta(j);
|
|
2162
|
+
K ? S += K : S += Xe();
|
|
2156
2163
|
var w;
|
|
2157
|
-
t === null ? w = "null" :
|
|
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
|
|
2160
|
-
if (
|
|
2161
|
-
return
|
|
2162
|
-
if (
|
|
2163
|
-
var
|
|
2164
|
-
if (
|
|
2165
|
-
if (
|
|
2166
|
-
if (
|
|
2167
|
-
for (var
|
|
2168
|
-
|
|
2169
|
-
Object.freeze && Object.freeze(
|
|
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
|
-
|
|
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
|
-
|
|
2180
|
+
aa(Z, t);
|
|
2174
2181
|
}
|
|
2175
|
-
return t === r ? ja(
|
|
2182
|
+
return t === r ? ja(L) : ya(L), L;
|
|
2176
2183
|
}
|
|
2177
2184
|
}
|
|
2178
|
-
function Oa(t, u,
|
|
2179
|
-
return
|
|
2185
|
+
function Oa(t, u, h) {
|
|
2186
|
+
return ia(t, u, h, !0);
|
|
2180
2187
|
}
|
|
2181
|
-
function za(t, u,
|
|
2182
|
-
return
|
|
2188
|
+
function za(t, u, h) {
|
|
2189
|
+
return ia(t, u, h, !1);
|
|
2183
2190
|
}
|
|
2184
2191
|
var Ea = za, Ba = Oa;
|
|
2185
|
-
|
|
2186
|
-
}()),
|
|
2192
|
+
ra.Fragment = r, ra.jsx = Ea, ra.jsxs = Ba;
|
|
2193
|
+
}()), ra;
|
|
2187
2194
|
}
|
|
2188
|
-
process.env.NODE_ENV === "production" ?
|
|
2189
|
-
var i =
|
|
2190
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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":
|
|
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":
|
|
18919
|
-
"it-it":
|
|
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
|
|
19012
|
-
const { status: s,
|
|
19013
|
-
|
|
19014
|
-
|
|
19015
|
-
|
|
19016
|
-
|
|
19017
|
-
|
|
19018
|
-
|
|
19019
|
-
|
|
19020
|
-
},
|
|
19021
|
-
|
|
19022
|
-
|
|
19023
|
-
|
|
19024
|
-
formData:
|
|
19025
|
-
isComplete: ((
|
|
19026
|
-
isLoading: !
|
|
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
|
-
|
|
19050
|
-
|
|
19051
|
-
|
|
19052
|
-
|
|
19088
|
+
externalValidations: n,
|
|
19089
|
+
onSubmit: r,
|
|
19090
|
+
onProgress: o,
|
|
19091
|
+
step: s = "AccountHolderClassification",
|
|
19092
|
+
taxForms: d = ["DAC7"]
|
|
19053
19093
|
}) => {
|
|
19054
|
-
const
|
|
19055
|
-
Yn(e,
|
|
19056
|
-
), [
|
|
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:
|
|
19059
|
-
|
|
19060
|
-
|
|
19061
|
-
),
|
|
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
|
-
})[
|
|
19073
|
-
|
|
19074
|
-
const
|
|
19075
|
-
|
|
19076
|
-
stepNumber:
|
|
19077
|
-
stepIndex:
|
|
19078
|
-
totalSteps:
|
|
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
|
-
|
|
19120
|
+
O / (H.length - 1) * 100
|
|
19081
19121
|
),
|
|
19082
|
-
stepTitle: kt(
|
|
19083
|
-
stepId:
|
|
19084
|
-
steps:
|
|
19085
|
-
language:
|
|
19122
|
+
stepTitle: kt(te(M), m),
|
|
19123
|
+
stepId: te(M),
|
|
19124
|
+
steps: H.map((F) => te(F)),
|
|
19125
|
+
language: m
|
|
19086
19126
|
});
|
|
19087
|
-
}, [
|
|
19088
|
-
|
|
19089
|
-
}, [
|
|
19090
|
-
const
|
|
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
|
-
},
|
|
19100
|
-
const
|
|
19101
|
-
|
|
19102
|
-
},
|
|
19103
|
-
(
|
|
19104
|
-
|
|
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
|
-
[
|
|
19107
|
-
),
|
|
19108
|
-
const
|
|
19109
|
-
return
|
|
19110
|
-
},
|
|
19111
|
-
const
|
|
19112
|
-
|
|
19113
|
-
},
|
|
19114
|
-
const
|
|
19115
|
-
...
|
|
19116
|
-
...
|
|
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
|
-
|
|
19119
|
-
},
|
|
19120
|
-
|
|
19121
|
-
...
|
|
19122
|
-
...
|
|
19123
|
-
}) :
|
|
19124
|
-
},
|
|
19125
|
-
|
|
19126
|
-
},
|
|
19127
|
-
|
|
19128
|
-
},
|
|
19129
|
-
|
|
19130
|
-
} : void 0,
|
|
19131
|
-
|
|
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:
|
|
19135
|
-
isW8:
|
|
19136
|
-
isW8Ben:
|
|
19137
|
-
isW8BenE:
|
|
19138
|
-
isDac7:
|
|
19139
|
-
onPersistAccountHolderData:
|
|
19140
|
-
onPersistCollectedData:
|
|
19141
|
-
onSubmitTaxDocumentation:
|
|
19142
|
-
onResetTaxDocumentation:
|
|
19143
|
-
editTo:
|
|
19144
|
-
onCancel:
|
|
19145
|
-
getStepId:
|
|
19146
|
-
goTo:
|
|
19147
|
-
goBack:
|
|
19148
|
-
goToNext:
|
|
19149
|
-
progress:
|
|
19150
|
-
stepName:
|
|
19151
|
-
data:
|
|
19152
|
-
setLanguage:
|
|
19153
|
-
language:
|
|
19154
|
-
supportedForms:
|
|
19155
|
-
setSupportedForms:
|
|
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
|
-
|
|
19160
|
-
|
|
19161
|
-
|
|
19162
|
-
|
|
19163
|
-
|
|
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:
|
|
19171
|
-
language:
|
|
19172
|
-
taxForms:
|
|
19173
|
-
|
|
19174
|
-
|
|
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 = (
|
|
19180
|
-
const
|
|
19181
|
-
return
|
|
19182
|
-
}, r = (
|
|
19183
|
-
const
|
|
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
|
|
19194
|
-
}, o = (
|
|
19195
|
-
const
|
|
19196
|
-
return
|
|
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: (
|
|
19200
|
-
getLocalText: (
|
|
19201
|
-
getLocalTitle: (
|
|
19202
|
-
getLocalSubTitle: (
|
|
19203
|
-
getLocalError: (
|
|
19204
|
-
getLocalLocale: (
|
|
19205
|
-
getLocalButton: (
|
|
19206
|
-
getLocalPrompt: (
|
|
19207
|
-
getLocalSubPrompt: (
|
|
19208
|
-
getLocalOption: (
|
|
19209
|
-
if (
|
|
19210
|
-
return Xn(
|
|
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: (
|
|
19213
|
-
getLocalUsState: (
|
|
19214
|
-
getLocalCaProvince: (
|
|
19215
|
-
getLocalMonth: (
|
|
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
|
-
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
|
|
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
|
-
[...
|
|
19281
|
+
[...m].map((T) => [T, !0])
|
|
19238
19282
|
),
|
|
19239
|
-
[
|
|
19240
|
-
),
|
|
19241
|
-
const
|
|
19283
|
+
[m]
|
|
19284
|
+
), v = ee(() => {
|
|
19285
|
+
const T = ut(o);
|
|
19242
19286
|
return Object.fromEntries(
|
|
19243
|
-
Object.keys(
|
|
19244
|
-
|
|
19245
|
-
|
|
19287
|
+
Object.keys(c).map((M) => [
|
|
19288
|
+
M,
|
|
19289
|
+
T[M]
|
|
19246
19290
|
])
|
|
19247
19291
|
);
|
|
19248
|
-
}, [
|
|
19249
|
-
const
|
|
19292
|
+
}, [o, c]), A = ee(() => {
|
|
19293
|
+
const T = mr(o, r);
|
|
19250
19294
|
return Object.fromEntries(
|
|
19251
|
-
Object.keys(
|
|
19295
|
+
Object.keys(c).map((M) => [M, T[M]]).filter(([, M]) => M)
|
|
19252
19296
|
);
|
|
19253
|
-
}, [
|
|
19254
|
-
|
|
19255
|
-
|
|
19297
|
+
}, [o, c, r]);
|
|
19298
|
+
_(() => {
|
|
19299
|
+
s(a);
|
|
19256
19300
|
}, [a]);
|
|
19257
19301
|
const f = it(
|
|
19258
|
-
(
|
|
19259
|
-
if (/accountHolderShowTaxResidence[234]/.test(
|
|
19260
|
-
const
|
|
19261
|
-
|
|
19262
|
-
} else if (/AddressCountry/.test(
|
|
19263
|
-
if (
|
|
19264
|
-
const
|
|
19265
|
-
|
|
19266
|
-
...
|
|
19267
|
-
[
|
|
19268
|
-
[
|
|
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
|
-
|
|
19273
|
-
...
|
|
19274
|
-
[
|
|
19316
|
+
M !== o[T] && s((H) => ({
|
|
19317
|
+
...H,
|
|
19318
|
+
[T]: M
|
|
19275
19319
|
}));
|
|
19276
19320
|
},
|
|
19277
|
-
[
|
|
19278
|
-
),
|
|
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
|
-
},
|
|
19331
|
+
}, I = () => {
|
|
19281
19332
|
l(!1);
|
|
19282
|
-
},
|
|
19333
|
+
}, z = Object.keys(A).length === 0, p = uo(o, e);
|
|
19283
19334
|
return {
|
|
19284
|
-
clearIfNotRequired: (...
|
|
19285
|
-
|
|
19286
|
-
f(
|
|
19335
|
+
clearIfNotRequired: (...T) => (M) => {
|
|
19336
|
+
M === "yes" && T.forEach((H) => {
|
|
19337
|
+
f(H, "");
|
|
19287
19338
|
});
|
|
19288
19339
|
},
|
|
19289
|
-
fields:
|
|
19290
|
-
setFields:
|
|
19340
|
+
fields: o,
|
|
19341
|
+
setFields: s,
|
|
19291
19342
|
setValue: f,
|
|
19292
|
-
isErrorFree:
|
|
19293
|
-
showErrors:
|
|
19294
|
-
|
|
19295
|
-
|
|
19296
|
-
|
|
19297
|
-
|
|
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:
|
|
19351
|
+
requiredFields: v,
|
|
19300
19352
|
// (must be visible)
|
|
19301
|
-
visibleFields:
|
|
19353
|
+
visibleFields: g,
|
|
19302
19354
|
// (must be supported)
|
|
19303
|
-
hideField: (
|
|
19304
|
-
|
|
19355
|
+
hideField: (T) => {
|
|
19356
|
+
m.has(T) && k((M) => new Set([...M].filter((H) => H !== T))), f(T, void 0);
|
|
19305
19357
|
},
|
|
19306
|
-
showField: (
|
|
19307
|
-
|
|
19358
|
+
showField: (T) => {
|
|
19359
|
+
m.has(T) || k((M) => /* @__PURE__ */ new Set([...M, T]));
|
|
19308
19360
|
},
|
|
19309
|
-
...
|
|
19361
|
+
...p
|
|
19310
19362
|
};
|
|
19311
|
-
},
|
|
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:
|
|
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
|
-
},
|
|
19375
|
+
}, Re = ({
|
|
19324
19376
|
name: e,
|
|
19325
19377
|
hint: a
|
|
19326
19378
|
}) => {
|
|
19327
|
-
const {
|
|
19328
|
-
|
|
19329
|
-
|
|
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
|
-
] },
|
|
19332
|
-
},
|
|
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:
|
|
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
|
-
),
|
|
19403
|
+
), Ie = ({
|
|
19346
19404
|
children: e,
|
|
19347
19405
|
className: a
|
|
19348
|
-
}) => /* @__PURE__ */ i.jsx("div", { className:
|
|
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:
|
|
19413
|
+
className: d
|
|
19356
19414
|
}) => {
|
|
19357
|
-
const { invalidFields:
|
|
19415
|
+
const { invalidFields: l, showErrors: m, showErrorsForField: k, getLocalButton: g } = E();
|
|
19358
19416
|
return /* @__PURE__ */ i.jsxs(
|
|
19359
19417
|
"div",
|
|
19360
19418
|
{
|
|
19361
|
-
className:
|
|
19419
|
+
className: le(
|
|
19362
19420
|
"taxbit-row",
|
|
19363
|
-
s && `taxbit-question-${
|
|
19364
|
-
s && m &&
|
|
19365
|
-
|
|
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:
|
|
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:
|
|
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
|
-
},
|
|
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,
|
|
19460
|
+
] }) : r, Pe = [{ value: "yes" }, { value: "no" }], ko = () => {
|
|
19403
19461
|
const { language: e, setLanguage: a } = ae(), { getLocalLocale: n } = E(), r = (s) => {
|
|
19404
|
-
const
|
|
19405
|
-
a(
|
|
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,
|
|
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
|
-
],
|
|
19431
|
-
if (
|
|
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
|
-
},
|
|
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:
|
|
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:
|
|
19445
|
-
e && /* @__PURE__ */ i.jsx("button", { onClick: e, type: "button", className: "taxbit-button", children:
|
|
19446
|
-
o && /* @__PURE__ */ i.jsx("button", { onClick: o, type: "button", className: "taxbit-button", children:
|
|
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:
|
|
19513
|
+
children: l("next")
|
|
19456
19514
|
}
|
|
19457
19515
|
),
|
|
19458
19516
|
r && /* @__PURE__ */ i.jsx(
|
|
19459
19517
|
"button",
|
|
19460
19518
|
{
|
|
19461
|
-
onClick:
|
|
19519
|
+
onClick: k,
|
|
19462
19520
|
type: "button",
|
|
19463
19521
|
className: "taxbit-button",
|
|
19464
|
-
children:
|
|
19522
|
+
children: l("submit")
|
|
19465
19523
|
}
|
|
19466
19524
|
)
|
|
19467
19525
|
] })
|
|
19468
19526
|
] });
|
|
19469
|
-
},
|
|
19470
|
-
const { fields: o, setValue: s, getLocalPrompt:
|
|
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
|
-
},
|
|
19530
|
+
}, k = o[n], g = (c) => {
|
|
19473
19531
|
m(c.target.checked ? "yes" : void 0);
|
|
19474
19532
|
};
|
|
19475
|
-
return /* @__PURE__ */ i.jsxs(
|
|
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:
|
|
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 &&
|
|
19491
|
-
a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-sub-label", children:
|
|
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(
|
|
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] || "",
|
|
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
|
-
|
|
19500
|
-
) : Dn.length,
|
|
19501
|
-
...
|
|
19502
|
-
label: r(
|
|
19503
|
-
})), g = (
|
|
19504
|
-
if (!
|
|
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
|
|
19507
|
-
parseInt(
|
|
19508
|
-
|
|
19564
|
+
const I = Kn(
|
|
19565
|
+
parseInt(y),
|
|
19566
|
+
D(B) ? parseInt(B) : void 0
|
|
19509
19567
|
);
|
|
19510
|
-
return
|
|
19568
|
+
return D(f) && I >= parseInt(f);
|
|
19511
19569
|
};
|
|
19512
19570
|
return {
|
|
19513
19571
|
mm: s,
|
|
19514
|
-
dd:
|
|
19515
|
-
yyyy:
|
|
19516
|
-
handleDayChange: (
|
|
19517
|
-
const
|
|
19518
|
-
n(e, `${s || ""}/${
|
|
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: (
|
|
19521
|
-
const
|
|
19578
|
+
handleMonthChange: (f) => {
|
|
19579
|
+
const y = f.target.value;
|
|
19522
19580
|
n(
|
|
19523
19581
|
e,
|
|
19524
|
-
`${
|
|
19582
|
+
`${y}/${g(d, y, l) ? d : ""}/${l || ""}`
|
|
19525
19583
|
);
|
|
19526
19584
|
},
|
|
19527
|
-
handleYearChange: (
|
|
19528
|
-
const
|
|
19585
|
+
handleYearChange: (f) => {
|
|
19586
|
+
const y = f.target.value;
|
|
19529
19587
|
n(
|
|
19530
19588
|
e,
|
|
19531
|
-
`${s || ""}/${g(
|
|
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:
|
|
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:
|
|
19547
|
-
handleDayChange:
|
|
19604
|
+
yyyy: d,
|
|
19605
|
+
handleDayChange: l,
|
|
19548
19606
|
handleMonthChange: m,
|
|
19549
|
-
handleYearChange:
|
|
19607
|
+
handleYearChange: k,
|
|
19550
19608
|
dayOptions: g,
|
|
19551
19609
|
monthOptions: c,
|
|
19552
|
-
birthYearOptions:
|
|
19610
|
+
birthYearOptions: v
|
|
19553
19611
|
} = fo(e);
|
|
19554
|
-
return /* @__PURE__ */ i.jsxs(
|
|
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:
|
|
19621
|
+
className: le(
|
|
19564
19622
|
"taxbit-select",
|
|
19565
19623
|
"taxbit-select-month",
|
|
19566
|
-
|
|
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((
|
|
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:
|
|
19635
|
+
onChange: l,
|
|
19578
19636
|
value: o,
|
|
19579
19637
|
name: `${e}Day`,
|
|
19580
19638
|
"aria-label": `${e}Day`,
|
|
19581
|
-
className:
|
|
19639
|
+
className: le(
|
|
19582
19640
|
"taxbit-select",
|
|
19583
19641
|
"taxbit-select-day",
|
|
19584
|
-
|
|
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((
|
|
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:
|
|
19596
|
-
value:
|
|
19653
|
+
onChange: k,
|
|
19654
|
+
value: d,
|
|
19597
19655
|
name: `${e}Year`,
|
|
19598
19656
|
"aria-label": `${e}Year`,
|
|
19599
|
-
className:
|
|
19657
|
+
className: le(
|
|
19600
19658
|
"taxbit-select",
|
|
19601
19659
|
"taxbit-select-year",
|
|
19602
|
-
|
|
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
|
-
|
|
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(
|
|
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(),
|
|
19615
|
-
r(e,
|
|
19616
|
-
},
|
|
19617
|
-
|
|
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(
|
|
19620
|
-
/* @__PURE__ */ i.jsx("div", { className: "taxbit-radio-buttons", children: a.map((
|
|
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:
|
|
19681
|
+
className: le(
|
|
19624
19682
|
"taxbit-radio-button",
|
|
19625
|
-
|
|
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}-${
|
|
19634
|
-
id: `${e}-${
|
|
19635
|
-
value:
|
|
19636
|
-
checked:
|
|
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}-${
|
|
19698
|
+
/* @__PURE__ */ i.jsx("label", { htmlFor: `${e}-${k.value}`, children: k.label || s(k.value) })
|
|
19641
19699
|
]
|
|
19642
19700
|
},
|
|
19643
|
-
|
|
19701
|
+
k.value
|
|
19644
19702
|
)) }),
|
|
19645
|
-
/* @__PURE__ */ i.jsx(
|
|
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:
|
|
19656
|
-
o && o(),
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
19741
|
+
syncName: d
|
|
19684
19742
|
}) => {
|
|
19685
|
-
const { fields:
|
|
19686
|
-
const
|
|
19687
|
-
|
|
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(
|
|
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:
|
|
19754
|
+
value: k,
|
|
19697
19755
|
onChange: g,
|
|
19698
19756
|
className: "taxbit-input",
|
|
19699
19757
|
disabled: s
|
|
19700
19758
|
}
|
|
19701
19759
|
),
|
|
19702
|
-
/* @__PURE__ */ i.jsx(
|
|
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(
|
|
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(
|
|
19779
|
+
/* @__PURE__ */ i.jsx(Re, { name: e })
|
|
19722
19780
|
] });
|
|
19723
19781
|
}, No = ({ onClick: e }) => {
|
|
19724
|
-
const { getLocalButton: a } = E(), [n, r] =
|
|
19725
|
-
r((
|
|
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:
|
|
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
|
-
...
|
|
19813
|
+
...d
|
|
19756
19814
|
}) => {
|
|
19757
|
-
const [
|
|
19815
|
+
const [l, m] = W(e), [k, g] = W(
|
|
19758
19816
|
Array(e.length + 1).join(a)
|
|
19759
|
-
), c =
|
|
19817
|
+
), c = Za(), [v, A] = W([
|
|
19760
19818
|
0,
|
|
19761
19819
|
0
|
|
19762
|
-
]),
|
|
19763
|
-
|
|
19764
|
-
e !==
|
|
19765
|
-
}, [e, a,
|
|
19766
|
-
const
|
|
19767
|
-
const
|
|
19768
|
-
|
|
19769
|
-
const
|
|
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
|
-
`${
|
|
19829
|
+
`${I ? `(^\\${a}{1,${I}})|` : ""}(\\${a}+)`,
|
|
19772
19830
|
"g"
|
|
19773
19831
|
),
|
|
19774
|
-
(J,
|
|
19775
|
-
),
|
|
19776
|
-
g(
|
|
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
|
|
19779
|
-
|
|
19780
|
-
|
|
19781
|
-
|
|
19782
|
-
]), g(Array(
|
|
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,
|
|
19786
|
-
|
|
19787
|
-
}, [
|
|
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
|
-
...
|
|
19791
|
-
ref:
|
|
19848
|
+
...d,
|
|
19849
|
+
ref: f,
|
|
19792
19850
|
type: "text",
|
|
19793
19851
|
name: n,
|
|
19794
19852
|
"aria-label": n,
|
|
19795
|
-
value: s ?
|
|
19796
|
-
onChange:
|
|
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:
|
|
19809
|
-
const
|
|
19810
|
-
|
|
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(
|
|
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(
|
|
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: () =>
|
|
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:
|
|
19845
|
-
} = E(),
|
|
19846
|
-
return
|
|
19847
|
-
|
|
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
|
-
}, [
|
|
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:
|
|
19857
|
-
state:
|
|
19858
|
-
zip:
|
|
19859
|
-
country:
|
|
19860
|
-
street:
|
|
19861
|
-
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
|
-
},
|
|
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:
|
|
19875
|
-
hideField:
|
|
19932
|
+
showField: d,
|
|
19933
|
+
hideField: l,
|
|
19876
19934
|
getRequiredLocalPrompt: m,
|
|
19877
|
-
getLocalSubPrompt:
|
|
19935
|
+
getLocalSubPrompt: k
|
|
19878
19936
|
} = E(), g = !!s[n];
|
|
19879
|
-
return
|
|
19880
|
-
g ?
|
|
19881
|
-
}, [g, n,
|
|
19882
|
-
|
|
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 ?
|
|
19944
|
+
subLabel: a ? k(n) : void 0,
|
|
19887
19945
|
onEdit: o,
|
|
19888
19946
|
children: r
|
|
19889
19947
|
}
|
|
19890
19948
|
) : null;
|
|
19891
|
-
},
|
|
19949
|
+
}, U = ({
|
|
19892
19950
|
name: e,
|
|
19893
19951
|
label: a,
|
|
19894
19952
|
subLabel: n,
|
|
19895
19953
|
onClick: r
|
|
19896
|
-
}) => /* @__PURE__ */ i.jsx(
|
|
19897
|
-
|
|
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
|
-
) }),
|
|
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(),
|
|
19910
|
-
return /* @__PURE__ */ i.jsx(
|
|
19911
|
-
|
|
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
|
-
] },
|
|
19914
|
-
},
|
|
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(
|
|
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
|
-
) }),
|
|
19987
|
+
) }), V = ({
|
|
19930
19988
|
name: e,
|
|
19931
19989
|
label: a,
|
|
19932
19990
|
subLabel: n,
|
|
19933
19991
|
options: r
|
|
19934
|
-
}) => /* @__PURE__ */ i.jsx(
|
|
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:
|
|
19942
|
-
}) => /* @__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:
|
|
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:
|
|
19959
|
-
}) => /* @__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:
|
|
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
|
-
|
|
20029
|
+
pe,
|
|
19972
20030
|
{
|
|
19973
20031
|
title: a(
|
|
19974
|
-
n(
|
|
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
|
-
|
|
20039
|
+
V,
|
|
19982
20040
|
{
|
|
19983
20041
|
name: "accountHolderUsPerson",
|
|
19984
|
-
options:
|
|
20042
|
+
options: Pe,
|
|
19985
20043
|
label: !0
|
|
19986
20044
|
}
|
|
19987
20045
|
),
|
|
19988
20046
|
/* @__PURE__ */ i.jsx(
|
|
19989
|
-
|
|
20047
|
+
V,
|
|
19990
20048
|
{
|
|
19991
20049
|
name: "accountHolderIsEuResident",
|
|
19992
|
-
options:
|
|
20050
|
+
options: Pe,
|
|
19993
20051
|
label: !0,
|
|
19994
20052
|
subLabel: !0
|
|
19995
20053
|
}
|
|
19996
20054
|
),
|
|
19997
20055
|
/* @__PURE__ */ i.jsx(
|
|
19998
|
-
|
|
20056
|
+
V,
|
|
19999
20057
|
{
|
|
20000
20058
|
name: "accountHolderIsIndividual",
|
|
20001
|
-
options:
|
|
20059
|
+
options: Pe,
|
|
20002
20060
|
label: !0,
|
|
20003
20061
|
subLabel: !0
|
|
20004
20062
|
}
|
|
20005
20063
|
),
|
|
20006
20064
|
/* @__PURE__ */ i.jsx(
|
|
20007
|
-
|
|
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
|
-
|
|
20073
|
+
V,
|
|
20016
20074
|
{
|
|
20017
20075
|
name: "accountHolderUsSmllcElection",
|
|
20018
|
-
options:
|
|
20076
|
+
options: Pe,
|
|
20019
20077
|
label: !0,
|
|
20020
20078
|
subLabel: !0
|
|
20021
20079
|
}
|
|
20022
20080
|
),
|
|
20023
20081
|
/* @__PURE__ */ i.jsx(
|
|
20024
|
-
|
|
20082
|
+
V,
|
|
20025
20083
|
{
|
|
20026
20084
|
name: "accountHolderUsLlcClassification",
|
|
20027
|
-
options:
|
|
20085
|
+
options: $a,
|
|
20028
20086
|
label: !0
|
|
20029
20087
|
}
|
|
20030
20088
|
),
|
|
20031
|
-
/* @__PURE__ */ i.jsx(
|
|
20089
|
+
/* @__PURE__ */ i.jsx(Y, { name: "accountHolderUsOtherClassification", label: !0 }),
|
|
20032
20090
|
/* @__PURE__ */ i.jsx(
|
|
20033
|
-
|
|
20091
|
+
V,
|
|
20034
20092
|
{
|
|
20035
20093
|
name: "accountHolderUsTrustEstateEin",
|
|
20036
|
-
options:
|
|
20094
|
+
options: Pe,
|
|
20037
20095
|
label: !0
|
|
20038
20096
|
}
|
|
20039
20097
|
),
|
|
20040
20098
|
/* @__PURE__ */ i.jsx(
|
|
20041
|
-
|
|
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
|
-
|
|
20107
|
+
V,
|
|
20050
20108
|
{
|
|
20051
20109
|
name: "accountHolderForeignOtherClassification",
|
|
20052
|
-
options:
|
|
20110
|
+
options: Qa,
|
|
20053
20111
|
label: !0
|
|
20054
20112
|
}
|
|
20055
20113
|
),
|
|
20056
20114
|
/* @__PURE__ */ i.jsx(
|
|
20057
|
-
|
|
20115
|
+
V,
|
|
20058
20116
|
{
|
|
20059
20117
|
name: "accountHolderForeignTrustClassification",
|
|
20060
|
-
options:
|
|
20118
|
+
options: Xa,
|
|
20061
20119
|
label: !0
|
|
20062
20120
|
}
|
|
20063
20121
|
)
|
|
20064
20122
|
] }),
|
|
20065
20123
|
/* @__PURE__ */ i.jsx(
|
|
20066
|
-
|
|
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(
|
|
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:
|
|
20085
|
-
getLocalUsState:
|
|
20086
|
-
} = E(), m = r[`${a}Country`],
|
|
20087
|
-
() =>
|
|
20088
|
-
...
|
|
20089
|
-
label: s(
|
|
20090
|
-
})).sort((
|
|
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((
|
|
20094
|
-
...
|
|
20095
|
-
label:
|
|
20096
|
-
})).sort((
|
|
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(
|
|
20163
|
+
return /* @__PURE__ */ i.jsxs(se, { title: e, showIf: n, children: [
|
|
20106
20164
|
/* @__PURE__ */ i.jsx(
|
|
20107
|
-
|
|
20165
|
+
de,
|
|
20108
20166
|
{
|
|
20109
20167
|
name: `${a}Country`,
|
|
20110
|
-
options:
|
|
20168
|
+
options: k,
|
|
20111
20169
|
onChange: o,
|
|
20112
20170
|
label: !0
|
|
20113
20171
|
}
|
|
20114
20172
|
),
|
|
20115
|
-
/* @__PURE__ */ i.jsx(
|
|
20116
|
-
/* @__PURE__ */ i.jsx(
|
|
20117
|
-
/* @__PURE__ */ i.jsx(
|
|
20118
|
-
m !== "CA" && m !== "US" ? /* @__PURE__ */ i.jsx(
|
|
20119
|
-
|
|
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(
|
|
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(
|
|
20134
|
-
const { onPersistCollectedData: e, goBack: a, onCancel: n, isW9: r, isW8: o, getStepId: s } = ae(), { fields:
|
|
20135
|
-
() =>
|
|
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:
|
|
20195
|
+
label: l(g.value)
|
|
20138
20196
|
})).sort((g, c) => g.label.localeCompare(c.label)),
|
|
20139
|
-
[
|
|
20197
|
+
[l]
|
|
20140
20198
|
);
|
|
20141
20199
|
return /* @__PURE__ */ i.jsxs(
|
|
20142
|
-
|
|
20200
|
+
pe,
|
|
20143
20201
|
{
|
|
20144
|
-
title: m(s(
|
|
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
|
-
|
|
20207
|
+
de,
|
|
20150
20208
|
{
|
|
20151
20209
|
label: !0,
|
|
20152
20210
|
name: "accountHolderCountryOfCitizenship",
|
|
20153
|
-
options:
|
|
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(
|
|
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:
|
|
20229
|
+
showIf: d.accountHolderIsEuResident === "yes" || o || r
|
|
20172
20230
|
}
|
|
20173
20231
|
),
|
|
20174
|
-
/* @__PURE__ */ i.jsx(
|
|
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:
|
|
20238
|
+
showIf: d.accountHolderMailingAddressIsDifferent === "yes"
|
|
20181
20239
|
}
|
|
20182
20240
|
)
|
|
20183
20241
|
] }),
|
|
20184
20242
|
/* @__PURE__ */ i.jsx(
|
|
20185
|
-
|
|
20243
|
+
fe,
|
|
20186
20244
|
{
|
|
20187
20245
|
onCancel: n,
|
|
20188
20246
|
onBack: a,
|
|
20189
|
-
onNext: () => e(
|
|
20247
|
+
onNext: () => e(d)
|
|
20190
20248
|
}
|
|
20191
20249
|
)
|
|
20192
20250
|
]
|
|
20193
20251
|
}
|
|
20194
20252
|
);
|
|
20195
|
-
}, Eo = () => /* @__PURE__ */ i.jsx(
|
|
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:
|
|
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
|
-
(
|
|
20210
|
-
),
|
|
20211
|
-
(
|
|
20267
|
+
(I) => I !== s[`accountHolderTaxResidenceCountry${e}`]
|
|
20268
|
+
), B = o.filter(
|
|
20269
|
+
(I) => !y.includes(I.value)
|
|
20212
20270
|
);
|
|
20213
|
-
return
|
|
20214
|
-
a ? n && n() : (
|
|
20271
|
+
return _(() => {
|
|
20272
|
+
a ? n && n() : (l(k), l(g), l(c), l(v));
|
|
20215
20273
|
}, [
|
|
20216
|
-
|
|
20217
|
-
|
|
20274
|
+
k,
|
|
20275
|
+
l,
|
|
20218
20276
|
c,
|
|
20219
20277
|
n,
|
|
20220
20278
|
a,
|
|
20221
20279
|
g,
|
|
20222
|
-
|
|
20223
|
-
]), a ? /* @__PURE__ */ i.jsxs(
|
|
20280
|
+
v
|
|
20281
|
+
]), a ? /* @__PURE__ */ i.jsxs(se, { title: d(A), showIf: a, children: [
|
|
20224
20282
|
/* @__PURE__ */ i.jsx(
|
|
20225
|
-
|
|
20283
|
+
de,
|
|
20226
20284
|
{
|
|
20227
|
-
name:
|
|
20285
|
+
name: k,
|
|
20228
20286
|
className: "taxbit-country",
|
|
20229
|
-
options:
|
|
20287
|
+
options: B,
|
|
20230
20288
|
label: !0
|
|
20231
20289
|
}
|
|
20232
20290
|
),
|
|
20233
20291
|
/* @__PURE__ */ i.jsx(
|
|
20234
|
-
|
|
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
|
-
|
|
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(
|
|
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:
|
|
20256
|
-
getLocalCountry:
|
|
20313
|
+
getLocalSubTitle: d,
|
|
20314
|
+
getLocalCountry: l,
|
|
20257
20315
|
clearIfNotRequired: m,
|
|
20258
|
-
setValue:
|
|
20316
|
+
setValue: k
|
|
20259
20317
|
} = E(), g = ee(
|
|
20260
|
-
() => jt.map((
|
|
20261
|
-
...
|
|
20262
|
-
label:
|
|
20263
|
-
})).sort((
|
|
20264
|
-
[
|
|
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
|
-
() =>
|
|
20267
|
-
...
|
|
20268
|
-
label:
|
|
20269
|
-
})).sort((
|
|
20270
|
-
[
|
|
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
|
-
|
|
20331
|
+
pe,
|
|
20274
20332
|
{
|
|
20275
|
-
title: s(r(
|
|
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(
|
|
20337
|
+
/* @__PURE__ */ i.jsx(Ce, { name: "accountHolderUsTin", label: !0 }),
|
|
20280
20338
|
/* @__PURE__ */ i.jsx(
|
|
20281
|
-
|
|
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
|
-
|
|
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
|
-
|
|
20355
|
+
Ce,
|
|
20298
20356
|
{
|
|
20299
20357
|
name: "accountHolderFinancialAccountIdentifier",
|
|
20300
20358
|
label: !0,
|
|
20301
20359
|
subLabel: !0
|
|
20302
20360
|
}
|
|
20303
20361
|
),
|
|
20304
|
-
/* @__PURE__ */ i.jsx(
|
|
20305
|
-
/* @__PURE__ */ i.jsxs(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
20395
|
+
/* @__PURE__ */ i.jsxs(se, { showIf: o.accountHolderIsIndividual === "no", children: [
|
|
20338
20396
|
/* @__PURE__ */ i.jsx(
|
|
20339
|
-
|
|
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
|
-
|
|
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
|
-
|
|
20414
|
+
se,
|
|
20357
20415
|
{
|
|
20358
20416
|
title: s("taxResidences"),
|
|
20359
|
-
subTitle:
|
|
20417
|
+
subTitle: d("taxResidences"),
|
|
20360
20418
|
showIf: o.accountHolderIsIndividual !== void 0,
|
|
20361
20419
|
children: [
|
|
20362
|
-
/* @__PURE__ */ i.jsx(
|
|
20420
|
+
/* @__PURE__ */ i.jsx(vt, { name: "accountHolderTaxResidences" }),
|
|
20363
20421
|
/* @__PURE__ */ i.jsx(
|
|
20364
|
-
|
|
20422
|
+
oa,
|
|
20365
20423
|
{
|
|
20366
20424
|
index: 1,
|
|
20367
20425
|
showIf: o.accountHolderIsIndividual !== void 0,
|
|
20368
20426
|
onShow: () => {
|
|
20369
|
-
o.accountHolderTaxResidenceCountry1 === void 0 &&
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
},
|
|
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
|
-
() =>
|
|
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
|
-
|
|
20495
|
+
se,
|
|
20438
20496
|
{
|
|
20439
20497
|
title: a("placeOfBirth"),
|
|
20440
20498
|
subTitle: n("accountHolderCityOfBirth"),
|
|
20441
20499
|
children: [
|
|
20442
|
-
/* @__PURE__ */ i.jsx(
|
|
20500
|
+
/* @__PURE__ */ i.jsx(Y, { label: !0, name: "accountHolderCityOfBirth" }),
|
|
20443
20501
|
/* @__PURE__ */ i.jsx(
|
|
20444
|
-
|
|
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
|
-
|
|
20515
|
+
pe,
|
|
20458
20516
|
{
|
|
20459
20517
|
title: s(
|
|
20460
|
-
r(
|
|
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(
|
|
20522
|
+
/* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(Ro, {}) }),
|
|
20465
20523
|
/* @__PURE__ */ i.jsx(
|
|
20466
|
-
|
|
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(
|
|
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(
|
|
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
|
-
|
|
20540
|
+
pe,
|
|
20483
20541
|
{
|
|
20484
|
-
title: o(n(
|
|
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(
|
|
20489
|
-
/* @__PURE__ */ i.jsx(
|
|
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(
|
|
20549
|
+
/* @__PURE__ */ i.jsx(fe, { onBack: a, onNext: () => e(r) })
|
|
20492
20550
|
]
|
|
20493
20551
|
}
|
|
20494
20552
|
);
|
|
20495
|
-
}, Uo = () => /* @__PURE__ */ i.jsx(
|
|
20496
|
-
const { fields: e, getLocalTitle: a, getLocalOption: n } = E(), { onPersistCollectedData: r, goBack: o } = ae(), s =
|
|
20497
|
-
...
|
|
20498
|
-
label: n(`usPerson_${
|
|
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
|
-
|
|
20559
|
+
pe,
|
|
20502
20560
|
{
|
|
20503
20561
|
title: a("regardedOwnerClassification"),
|
|
20504
|
-
className: `taxbit-form-${
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
20582
|
+
V,
|
|
20525
20583
|
{
|
|
20526
20584
|
name: "regardedOwnerForeignAccountType",
|
|
20527
|
-
options:
|
|
20585
|
+
options: Rt,
|
|
20528
20586
|
label: !0
|
|
20529
20587
|
}
|
|
20530
20588
|
),
|
|
20531
20589
|
/* @__PURE__ */ i.jsx(
|
|
20532
|
-
|
|
20590
|
+
V,
|
|
20533
20591
|
{
|
|
20534
20592
|
name: "regardedOwnerUsLlcClassification",
|
|
20535
|
-
options:
|
|
20593
|
+
options: $a,
|
|
20536
20594
|
label: !0
|
|
20537
20595
|
}
|
|
20538
20596
|
),
|
|
20539
|
-
/* @__PURE__ */ i.jsx(
|
|
20597
|
+
/* @__PURE__ */ i.jsx(Y, { name: "regardedOwnerUsOtherClassification", label: !0 }),
|
|
20540
20598
|
/* @__PURE__ */ i.jsx(
|
|
20541
|
-
|
|
20599
|
+
V,
|
|
20542
20600
|
{
|
|
20543
20601
|
name: "regardedOwnerUsTrustEstateEin",
|
|
20544
|
-
options:
|
|
20602
|
+
options: Pe,
|
|
20545
20603
|
label: !0
|
|
20546
20604
|
}
|
|
20547
20605
|
),
|
|
20548
20606
|
/* @__PURE__ */ i.jsx(
|
|
20549
|
-
|
|
20607
|
+
V,
|
|
20550
20608
|
{
|
|
20551
20609
|
name: "regardedOwnerForeignOtherClassification",
|
|
20552
|
-
options:
|
|
20610
|
+
options: Qa,
|
|
20553
20611
|
label: !0
|
|
20554
20612
|
}
|
|
20555
20613
|
),
|
|
20556
20614
|
/* @__PURE__ */ i.jsx(
|
|
20557
|
-
|
|
20615
|
+
V,
|
|
20558
20616
|
{
|
|
20559
20617
|
name: "regardedOwnerForeignTrustClassification",
|
|
20560
|
-
options:
|
|
20618
|
+
options: Xa,
|
|
20561
20619
|
label: !0
|
|
20562
20620
|
}
|
|
20563
20621
|
)
|
|
20564
20622
|
] }),
|
|
20565
|
-
/* @__PURE__ */ i.jsx(
|
|
20623
|
+
/* @__PURE__ */ i.jsx(fe, { onBack: o, onNext: () => r(e) })
|
|
20566
20624
|
]
|
|
20567
20625
|
}
|
|
20568
20626
|
);
|
|
20569
|
-
}, Fo = () => /* @__PURE__ */ i.jsx(
|
|
20570
|
-
const { onPersistCollectedData: e, goBack: a, onCancel: n } = ae(), { fields: r, getLocalCountry: o, getLocalTitle: s } = E(),
|
|
20571
|
-
() =>
|
|
20572
|
-
...
|
|
20573
|
-
label: o(
|
|
20574
|
-
})).sort((
|
|
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
|
-
|
|
20636
|
+
pe,
|
|
20579
20637
|
{
|
|
20580
20638
|
title: s("regardedOwnerContactInformation"),
|
|
20581
|
-
className: `taxbit-form-${
|
|
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
|
-
|
|
20643
|
+
de,
|
|
20586
20644
|
{
|
|
20587
20645
|
label: !0,
|
|
20588
20646
|
name: "regardedOwnerCountryOfCitizenship",
|
|
20589
|
-
options:
|
|
20647
|
+
options: d
|
|
20590
20648
|
}
|
|
20591
20649
|
),
|
|
20592
|
-
/* @__PURE__ */ i.jsx(
|
|
20593
|
-
/* @__PURE__ */ i.jsx(
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
20683
|
+
pe,
|
|
20626
20684
|
{
|
|
20627
20685
|
title: r("regardedOwnerTaxInformation"),
|
|
20628
|
-
className: `taxbit-form-${
|
|
20686
|
+
className: `taxbit-form-${la("regardedOwnerTaxInformation")}`,
|
|
20629
20687
|
children: [
|
|
20630
20688
|
/* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
|
|
20631
|
-
/* @__PURE__ */ i.jsx(
|
|
20632
|
-
/* @__PURE__ */ i.jsx(
|
|
20689
|
+
/* @__PURE__ */ i.jsx(Ce, { name: "regardedOwnerUsTin", label: !0 }),
|
|
20690
|
+
/* @__PURE__ */ i.jsx(Ce, { name: "regardedOwnerForeignTin", label: !0 }),
|
|
20633
20691
|
/* @__PURE__ */ i.jsx(
|
|
20634
|
-
|
|
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(
|
|
20700
|
+
/* @__PURE__ */ i.jsx(fe, { onBack: a, onNext: () => e(n) })
|
|
20643
20701
|
]
|
|
20644
20702
|
}
|
|
20645
20703
|
);
|
|
20646
|
-
}, Jo = () => /* @__PURE__ */ i.jsx(
|
|
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:
|
|
20718
|
+
visibleFields: d
|
|
20661
20719
|
} = E();
|
|
20662
20720
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
20663
|
-
/* @__PURE__ */ i.jsxs(
|
|
20721
|
+
/* @__PURE__ */ i.jsxs(se, { title: n("accountHolder"), children: [
|
|
20664
20722
|
/* @__PURE__ */ i.jsx(
|
|
20665
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
20976
|
+
/* @__PURE__ */ i.jsx(vt, { name: "accountHolderTaxResidences" }),
|
|
20919
20977
|
/* @__PURE__ */ i.jsx(
|
|
20920
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
21057
|
+
se,
|
|
21000
21058
|
{
|
|
21001
21059
|
title: n("regardedOwner"),
|
|
21002
|
-
showIf: !!
|
|
21060
|
+
showIf: !!d.regardedOwnerUsPerson && e.regardedOwnerUsPerson !== void 0,
|
|
21003
21061
|
children: [
|
|
21004
21062
|
/* @__PURE__ */ i.jsx(
|
|
21005
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
21182
|
+
pe,
|
|
21125
21183
|
{
|
|
21126
21184
|
title: o("summary"),
|
|
21127
|
-
className: `taxbit-form-${
|
|
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(
|
|
21132
|
-
/* @__PURE__ */ i.jsx(
|
|
21133
|
-
/* @__PURE__ */ i.jsx(
|
|
21134
|
-
/* @__PURE__ */ i.jsx(
|
|
21135
|
-
/* @__PURE__ */ i.jsx(
|
|
21136
|
-
/* @__PURE__ */ i.jsx(
|
|
21137
|
-
/* @__PURE__ */ i.jsx(
|
|
21138
|
-
/* @__PURE__ */ i.jsx(
|
|
21139
|
-
/* @__PURE__ */ i.jsx(
|
|
21140
|
-
/* @__PURE__ */ i.jsx(
|
|
21141
|
-
/* @__PURE__ */ i.jsx(
|
|
21142
|
-
/* @__PURE__ */ i.jsx(
|
|
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(
|
|
21145
|
-
/* @__PURE__ */ i.jsx(
|
|
21146
|
-
/* @__PURE__ */ i.jsx(
|
|
21147
|
-
/* @__PURE__ */ i.jsx(
|
|
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
|
-
|
|
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(
|
|
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:
|
|
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" })),
|
|
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:
|
|
21203
|
-
return
|
|
21262
|
+
const { stepName: r, setLanguage: o, setSupportedForms: s, onResetTaxDocumentation: d } = ae(), l = _o[r];
|
|
21263
|
+
return _(() => {
|
|
21204
21264
|
o(e);
|
|
21205
|
-
}, [e, o]),
|
|
21265
|
+
}, [e, o]), _(() => {
|
|
21206
21266
|
s(a);
|
|
21207
|
-
}, [a, s]),
|
|
21208
|
-
n &&
|
|
21209
|
-
}, [n,
|
|
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
|
-
|
|
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:
|
|
21234
|
-
onSuccess:
|
|
21293
|
+
onSubmit: d,
|
|
21294
|
+
onSuccess: l
|
|
21235
21295
|
}) => {
|
|
21236
|
-
const {
|
|
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:
|
|
21240
|
-
onSuccess:
|
|
21305
|
+
onSubmit: d,
|
|
21306
|
+
onSuccess: l,
|
|
21241
21307
|
staging: e
|
|
21242
21308
|
});
|
|
21243
|
-
return
|
|
21244
|
-
|
|
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:
|
|
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:
|
|
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
|
-
|
|
21346
|
+
pt as TaxBitFormUI,
|
|
21280
21347
|
kr as useTaxBit
|
|
21281
21348
|
};
|