@taxbit/react-sdk 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/useTaxBit/useTaxBit.d.ts +2 -3
- package/dist/{taxbit-react-sdk.es.js → taxbit-react-sdk.js} +367 -369
- package/dist/{taxbit-react-sdk.umd.js → taxbit-react-sdk.umd.cjs} +8 -8
- package/dist/types/client/ClientTaxDocumentation.d.ts +4 -3
- package/dist/types/client/ClientTaxDocumentationStatus.d.ts +3 -4
- package/dist/types/client/index.d.ts +2 -2
- package/dist/types/server/TaxDocumentationStatus.d.ts +3 -4
- package/package.json +5 -5
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import jn, { useState as U, useEffect as Q, createContext as Vn, useContext as Wn, useCallback as xa, useMemo as J, useRef as kn } from "react";
|
|
2
|
+
const Ka = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging" : ""}.taxbit.com/v1/${e}`, Va = {
|
|
3
3
|
taxDocumentation: {
|
|
4
|
-
post: (e) =>
|
|
5
|
-
get: (e) =>
|
|
4
|
+
post: (e) => Ka("tax-documentation", e),
|
|
5
|
+
get: (e) => Ka("tax-documentation?unmask_tin=true", e)
|
|
6
6
|
},
|
|
7
7
|
taxDocumentationStatus: {
|
|
8
|
-
get: (e) =>
|
|
8
|
+
get: (e) => Ka("tax-documentation-status", e)
|
|
9
9
|
}
|
|
10
|
-
}
|
|
11
|
-
var Ua = /* @__PURE__ */ ((e) => (e.Undocumented = "UNDOCUMENTED", e.Undetermined = "UNDETERMINED", e.Submitted = "SUBMITTED", e.NotSubmitted = "NOT_SUBMITTED", e))(Ua || {}), Bn = /* @__PURE__ */ ((e) => (e.Collected = "COLLECTED", e.NotCollected = "NOT_COLLECTED", e.PartiallyCollected = "PARTIALLY_COLLECTED", e.Complete = "COMPLETE", e.Incomplete = "INCOMPLETE", e))(Bn || {});
|
|
12
|
-
const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_]/g, "")), la = (e) => Array.isArray(e) ? e.map((a) => la(a)) : typeof e == "function" || e !== Object(e) ? e : Object.fromEntries(
|
|
10
|
+
}, Jn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_]/g, "")), la = (e) => Array.isArray(e) ? e.map((a) => la(a)) : typeof e == "function" || e !== Object(e) ? e : Object.fromEntries(
|
|
13
11
|
Object.entries(e).map(
|
|
14
12
|
([a, n]) => [
|
|
15
|
-
|
|
13
|
+
Jn(a),
|
|
16
14
|
la(n)
|
|
17
15
|
]
|
|
18
16
|
)
|
|
19
|
-
), de = (...e) => e.filter(Boolean).join(" "),
|
|
17
|
+
), de = (...e) => e.filter(Boolean).join(" "), Zn = (e) => {
|
|
20
18
|
try {
|
|
21
19
|
const a = (/* @__PURE__ */ new Date()).getUTCFullYear(), n = e.substring(e.length - 4, e.length), r = a - Number(n);
|
|
22
20
|
return r > -1 && r < 131;
|
|
23
21
|
} catch {
|
|
24
22
|
return !1;
|
|
25
23
|
}
|
|
26
|
-
},
|
|
24
|
+
}, qn = (e) => /^\d{2}\/\d{2}\/\d{4}$/.test(e), Yn = (e) => {
|
|
27
25
|
const a = new Date(e);
|
|
28
26
|
return !isNaN(a.getTime()) && e === a.toLocaleDateString("en-US", {
|
|
29
27
|
month: "2-digit",
|
|
@@ -41,10 +39,10 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
41
39
|
isW8Ben: s,
|
|
42
40
|
isW8BenE: o
|
|
43
41
|
};
|
|
44
|
-
},
|
|
42
|
+
}, _n = () => ({
|
|
45
43
|
accountHolderDateOfBirth: "dateOfBirth",
|
|
46
44
|
regardedOwnerDateOfBirth: "dateOfBirth"
|
|
47
|
-
}),
|
|
45
|
+
}), hn = (e, a) => new Date(a ?? 2012, e, 0).getDate(), On = (e, a) => {
|
|
48
46
|
switch (e) {
|
|
49
47
|
case "individual":
|
|
50
48
|
return "nameOfIndividual";
|
|
@@ -67,7 +65,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
67
65
|
default:
|
|
68
66
|
return "name";
|
|
69
67
|
}
|
|
70
|
-
},
|
|
68
|
+
}, Bn = (e) => {
|
|
71
69
|
switch (e) {
|
|
72
70
|
case "individual":
|
|
73
71
|
return "nameOfIndividual";
|
|
@@ -80,10 +78,10 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
80
78
|
default:
|
|
81
79
|
return "name";
|
|
82
80
|
}
|
|
83
|
-
},
|
|
81
|
+
}, Qn = (e) => e.accountHolderUsAccountType !== void 0 ? On(
|
|
84
82
|
e.accountHolderUsAccountType,
|
|
85
83
|
e.accountHolderUsSmllcElection
|
|
86
|
-
) : e.accountHolderForeignAccountType !== void 0 ?
|
|
84
|
+
) : e.accountHolderForeignAccountType !== void 0 ? Bn(e.accountHolderForeignAccountType) : e.accountHolderIsIndividual === "yes" ? "nameOfIndividual" : e.accountHolderIsIndividual === "no" ? "nameOfBusiness" : "name", Xn = (e) => e.regardedOwnerUsPerson === "yes" ? On(e.regardedOwnerUsAccountType) : e.regardedOwnerUsPerson === "no" ? Bn(e.regardedOwnerForeignAccountType) : "name", $n = (e) => ({
|
|
87
85
|
accountHolderIsIndividual: "isIndividual",
|
|
88
86
|
accountHolderUsPerson: "usPerson",
|
|
89
87
|
accountHolderUsAccountType: "usAccountType",
|
|
@@ -121,7 +119,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
121
119
|
accountHolderVatIdentificationNumber: "vatIdentificationNumber",
|
|
122
120
|
accountHolderVatCountry: "vatCountry",
|
|
123
121
|
accountHolderVatIdentificationNumberIsNotRequired: "vatIdentificationNumberIsNotRequired",
|
|
124
|
-
accountHolderName:
|
|
122
|
+
accountHolderName: Qn(e),
|
|
125
123
|
accountHolderDateOfBirth: "dateOfBirth",
|
|
126
124
|
accountHolderDbaName: "dbaName",
|
|
127
125
|
accountHolderAddressStreet: "street",
|
|
@@ -151,7 +149,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
151
149
|
regardedOwnerForeignTrustClassification: "foreignTrustClassification",
|
|
152
150
|
regardedOwnerForeignOtherClassification: "foreignOtherClassification",
|
|
153
151
|
regardedOwnerCountryOfCitizenship: "countryOfCitizenship",
|
|
154
|
-
regardedOwnerName:
|
|
152
|
+
regardedOwnerName: Xn(e),
|
|
155
153
|
regardedOwnerDateOfBirth: "dateOfBirth",
|
|
156
154
|
regardedOwnerDbaName: "dbaName",
|
|
157
155
|
regardedOwnerAddressStreet: "street",
|
|
@@ -167,14 +165,14 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
167
165
|
regardedOwnerMailingAddressState: "state",
|
|
168
166
|
regardedOwnerMailingAddressZip: "zip",
|
|
169
167
|
regardedOwnerMailingAddressCountry: "country"
|
|
170
|
-
}),
|
|
168
|
+
}), zn = (e) => e.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), et = (e) => e.replace(/[A-Z]/g, (a) => `_${a.toLowerCase()}`), Xa = (e) => Array.isArray(e) ? e.map((a) => Xa(a)) : typeof e == "function" || e !== Object(e) ? e : Object.fromEntries(
|
|
171
169
|
Object.entries(e).map(
|
|
172
170
|
([a, n]) => [
|
|
173
|
-
|
|
174
|
-
|
|
171
|
+
et(a),
|
|
172
|
+
Xa(n)
|
|
175
173
|
]
|
|
176
174
|
)
|
|
177
|
-
), H = (e) => e === void 0 ? void 0 : e === "yes",
|
|
175
|
+
), H = (e) => e === void 0 ? void 0 : e === "yes", at = (e) => {
|
|
178
176
|
const a = {
|
|
179
177
|
city: e.accountHolderAddressCity,
|
|
180
178
|
country: e.accountHolderAddressCountry,
|
|
@@ -184,7 +182,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
184
182
|
postal_code: e.accountHolderAddressZip
|
|
185
183
|
};
|
|
186
184
|
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
187
|
-
},
|
|
185
|
+
}, it = (e) => {
|
|
188
186
|
const a = {
|
|
189
187
|
city: e.regardedOwnerAddressCity,
|
|
190
188
|
country: e.regardedOwnerAddressCountry,
|
|
@@ -194,7 +192,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
194
192
|
postal_code: e.regardedOwnerAddressZip
|
|
195
193
|
};
|
|
196
194
|
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
197
|
-
},
|
|
195
|
+
}, nt = (e) => {
|
|
198
196
|
const a = {
|
|
199
197
|
city: e.accountHolderMailingAddressCity,
|
|
200
198
|
country: e.accountHolderMailingAddressCountry,
|
|
@@ -204,7 +202,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
204
202
|
postal_code: e.accountHolderMailingAddressZip
|
|
205
203
|
};
|
|
206
204
|
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
207
|
-
},
|
|
205
|
+
}, tt = (e) => {
|
|
208
206
|
const a = {
|
|
209
207
|
city: e.regardedOwnerMailingAddressCity,
|
|
210
208
|
country: e.regardedOwnerMailingAddressCountry,
|
|
@@ -214,7 +212,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
214
212
|
postal_code: e.regardedOwnerMailingAddressZip
|
|
215
213
|
};
|
|
216
214
|
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
217
|
-
},
|
|
215
|
+
}, rt = (e) => {
|
|
218
216
|
const n = [
|
|
219
217
|
{
|
|
220
218
|
country: e.accountHolderTaxResidenceCountry1,
|
|
@@ -255,13 +253,13 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
255
253
|
(r) => Object.entries(r).some(([, s]) => s !== void 0)
|
|
256
254
|
);
|
|
257
255
|
return n.length > 0 ? n : void 0;
|
|
258
|
-
},
|
|
256
|
+
}, ot = (e) => {
|
|
259
257
|
const a = {
|
|
260
|
-
address:
|
|
258
|
+
address: at(e),
|
|
261
259
|
country_of_citizenship: e.accountHolderCountryOfCitizenship,
|
|
262
260
|
date_of_birth: e.accountHolderDateOfBirth,
|
|
263
261
|
dba_name: e.accountHolderDbaName,
|
|
264
|
-
mailing_address:
|
|
262
|
+
mailing_address: nt(e),
|
|
265
263
|
mailing_address_is_different: H(
|
|
266
264
|
e.accountHolderMailingAddressIsDifferent
|
|
267
265
|
),
|
|
@@ -274,7 +272,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
274
272
|
ftin_not_legally_required: H(
|
|
275
273
|
e.accountHolderForeignTinIsNotRequired
|
|
276
274
|
),
|
|
277
|
-
tax_residences:
|
|
275
|
+
tax_residences: rt(e),
|
|
278
276
|
tin: e.accountHolderUsTin,
|
|
279
277
|
vatin: e.accountHolderVatIdentificationNumber,
|
|
280
278
|
vatin_country: e.accountHolderVatCountry,
|
|
@@ -298,13 +296,13 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
298
296
|
foreign_other_classification: e.accountHolderForeignOtherClassification
|
|
299
297
|
};
|
|
300
298
|
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
301
|
-
},
|
|
299
|
+
}, st = (e) => {
|
|
302
300
|
const a = {
|
|
303
|
-
address:
|
|
301
|
+
address: it(e),
|
|
304
302
|
country_of_citizenship: e.regardedOwnerCountryOfCitizenship,
|
|
305
303
|
date_of_birth: e.regardedOwnerDateOfBirth,
|
|
306
304
|
dba_name: e.regardedOwnerDbaName,
|
|
307
|
-
mailing_address:
|
|
305
|
+
mailing_address: tt(e),
|
|
308
306
|
mailing_address_is_different: H(
|
|
309
307
|
e.regardedOwnerMailingAddressIsDifferent
|
|
310
308
|
),
|
|
@@ -328,8 +326,8 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
328
326
|
foreign_other_classification: e.regardedOwnerForeignOtherClassification
|
|
329
327
|
};
|
|
330
328
|
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
331
|
-
},
|
|
332
|
-
const a =
|
|
329
|
+
}, lt = (e) => {
|
|
330
|
+
const a = ot(e), n = st(e);
|
|
333
331
|
return {
|
|
334
332
|
account_holder: a,
|
|
335
333
|
regarded_owner: n,
|
|
@@ -342,12 +340,12 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
342
340
|
source: "SDK",
|
|
343
341
|
signature_timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
344
342
|
};
|
|
345
|
-
},
|
|
346
|
-
const a =
|
|
343
|
+
}, dt = (e) => {
|
|
344
|
+
const a = lt(e);
|
|
347
345
|
return la(a);
|
|
348
346
|
}, ve = (e) => e.map((a) => ({
|
|
349
347
|
value: a
|
|
350
|
-
})),
|
|
348
|
+
})), ut = [
|
|
351
349
|
"AB",
|
|
352
350
|
"BC",
|
|
353
351
|
"MB",
|
|
@@ -361,7 +359,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
361
359
|
"QC",
|
|
362
360
|
"SK",
|
|
363
361
|
"YT"
|
|
364
|
-
],
|
|
362
|
+
], ct = ve(ut), mt = [
|
|
365
363
|
"AD",
|
|
366
364
|
"AE",
|
|
367
365
|
"AF",
|
|
@@ -611,7 +609,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
611
609
|
"ZA",
|
|
612
610
|
"ZM",
|
|
613
611
|
"ZW"
|
|
614
|
-
],
|
|
612
|
+
], gt = [
|
|
615
613
|
"AT",
|
|
616
614
|
"BE",
|
|
617
615
|
"BG",
|
|
@@ -639,7 +637,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
639
637
|
"SE",
|
|
640
638
|
"SI",
|
|
641
639
|
"SK"
|
|
642
|
-
], ua = ve(
|
|
640
|
+
], ua = ve(mt), kt = ve(gt), ht = [
|
|
643
641
|
"01",
|
|
644
642
|
"02",
|
|
645
643
|
"03",
|
|
@@ -671,7 +669,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
671
669
|
"29",
|
|
672
670
|
"30",
|
|
673
671
|
"31"
|
|
674
|
-
],
|
|
672
|
+
], vn = ve(ht), vt = [
|
|
675
673
|
"A",
|
|
676
674
|
"B",
|
|
677
675
|
"C",
|
|
@@ -685,14 +683,14 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
685
683
|
"K",
|
|
686
684
|
"L",
|
|
687
685
|
"M"
|
|
688
|
-
],
|
|
686
|
+
], ft = ve(vt), En = [
|
|
689
687
|
{ value: "individual" },
|
|
690
688
|
{ value: "corporation" },
|
|
691
689
|
{ value: "partnership" },
|
|
692
690
|
{ value: "trust" },
|
|
693
691
|
{ value: "other" },
|
|
694
692
|
{ value: "disregardedEntity" }
|
|
695
|
-
],
|
|
693
|
+
], pt = En.map((e) => e.value), ai = [
|
|
696
694
|
{ value: "taxExemptOrganization" },
|
|
697
695
|
{ value: "privateFoundation" },
|
|
698
696
|
{ value: "internationalOrganization" },
|
|
@@ -700,17 +698,17 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
700
698
|
{ value: "foreignGovernmentControlledEntity" },
|
|
701
699
|
{ value: "foreignGovernmentIntegralPart" },
|
|
702
700
|
{ value: "estate" }
|
|
703
|
-
],
|
|
701
|
+
], At = ai.map((e) => e.value), bt = [
|
|
704
702
|
{ value: "individual" },
|
|
705
703
|
{ value: "corporation" },
|
|
706
704
|
{ value: "partnership" },
|
|
707
705
|
{ value: "trust" },
|
|
708
706
|
{ value: "other" }
|
|
709
|
-
],
|
|
707
|
+
], ii = [
|
|
710
708
|
{ value: "simpleTrust" },
|
|
711
709
|
{ value: "complexTrust" },
|
|
712
710
|
{ value: "grantorTrust" }
|
|
713
|
-
],
|
|
711
|
+
], Ct = ii.map((e) => e.value), Nt = [
|
|
714
712
|
"bg-bg",
|
|
715
713
|
"cs-cz",
|
|
716
714
|
"da-dk",
|
|
@@ -741,7 +739,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
741
739
|
"sk-sk",
|
|
742
740
|
"sl-si",
|
|
743
741
|
"sv-se"
|
|
744
|
-
],
|
|
742
|
+
], St = ve(Nt), It = [
|
|
745
743
|
"01",
|
|
746
744
|
"02",
|
|
747
745
|
"03",
|
|
@@ -754,7 +752,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
754
752
|
"10",
|
|
755
753
|
"11",
|
|
756
754
|
"12"
|
|
757
|
-
],
|
|
755
|
+
], Tt = ve(It), Mt = [
|
|
758
756
|
"A",
|
|
759
757
|
"B",
|
|
760
758
|
"C",
|
|
@@ -768,7 +766,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
768
766
|
"K",
|
|
769
767
|
"L",
|
|
770
768
|
"M"
|
|
771
|
-
],
|
|
769
|
+
], yt = ve(Mt), Rn = [
|
|
772
770
|
{ value: "individual" },
|
|
773
771
|
{ value: "soleProprietor" },
|
|
774
772
|
{ value: "llc" },
|
|
@@ -779,13 +777,13 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
779
777
|
{ value: "trustEstate" },
|
|
780
778
|
{ value: "other" },
|
|
781
779
|
{ value: "disregardedEntity" }
|
|
782
|
-
],
|
|
780
|
+
], jt = Rn.map((e) => e.value), ni = [
|
|
783
781
|
{ value: "cCorporation" },
|
|
784
782
|
{ value: "sCorporation" },
|
|
785
783
|
{ value: "partnership" }
|
|
786
|
-
],
|
|
784
|
+
], Ot = ni.map(
|
|
787
785
|
(e) => e.value
|
|
788
|
-
),
|
|
786
|
+
), Bt = [
|
|
789
787
|
{ value: "individual" },
|
|
790
788
|
{ value: "llc" },
|
|
791
789
|
{ value: "cCorporation" },
|
|
@@ -793,7 +791,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
793
791
|
{ value: "partnership" },
|
|
794
792
|
{ value: "trustEstate" },
|
|
795
793
|
{ value: "other" }
|
|
796
|
-
],
|
|
794
|
+
], zt = [
|
|
797
795
|
"AL",
|
|
798
796
|
"AK",
|
|
799
797
|
"AS",
|
|
@@ -854,13 +852,18 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
854
852
|
"WV",
|
|
855
853
|
"WI",
|
|
856
854
|
"WY"
|
|
857
|
-
],
|
|
858
|
-
{ length:
|
|
859
|
-
(e, a) =>
|
|
860
|
-
),
|
|
855
|
+
], Et = ve(zt), Pn = /* @__PURE__ */ new Date(), Rt = Pn.getFullYear() - 120, fn = Pn.getFullYear(), Pt = Array.from(
|
|
856
|
+
{ length: fn - Rt },
|
|
857
|
+
(e, a) => fn - a
|
|
858
|
+
), wt = Pt.map((e) => ({
|
|
861
859
|
value: e
|
|
862
|
-
})),
|
|
863
|
-
if (e &&
|
|
860
|
+
})), pn = (e) => {
|
|
861
|
+
if (e && pt.includes(
|
|
862
|
+
e
|
|
863
|
+
))
|
|
864
|
+
return e;
|
|
865
|
+
}, An = (e) => {
|
|
866
|
+
if (e && At.includes(
|
|
864
867
|
e
|
|
865
868
|
))
|
|
866
869
|
return e;
|
|
@@ -870,15 +873,10 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
870
873
|
))
|
|
871
874
|
return e;
|
|
872
875
|
}, Cn = (e) => {
|
|
873
|
-
if (e &&
|
|
874
|
-
e
|
|
875
|
-
))
|
|
876
|
+
if (e && Ot.includes(e))
|
|
876
877
|
return e;
|
|
877
878
|
}, Nn = (e) => {
|
|
878
|
-
if (e &&
|
|
879
|
-
return e;
|
|
880
|
-
}, Sn = (e) => {
|
|
881
|
-
if (e && Bt.includes(
|
|
879
|
+
if (e && jt.includes(
|
|
882
880
|
e
|
|
883
881
|
))
|
|
884
882
|
return e;
|
|
@@ -899,47 +897,47 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
899
897
|
"876543210",
|
|
900
898
|
"987654321",
|
|
901
899
|
"098765432"
|
|
902
|
-
], wa = /^\d{9}$|^\d{3}-\d{2}-\d{4}$|^\d{2}-\d{7}$/,
|
|
900
|
+
], wa = /^\d{9}$|^\d{3}-\d{2}-\d{4}$|^\d{2}-\d{7}$/, Wa = /^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/, Ja = /^\d{5}$|^\d{5}-\d{4}$/, wn = (e) => /^(.)\1+$/.test(e), Gn = (e) => ae(e) && e.length >= 2 && e.length <= 22 && !wn(e), Gt = (e) => ae(e) && e.length >= 8 && e.length <= 12 && !wn(e), Ga = (e) => (a) => {
|
|
903
901
|
const n = a[`accountHolderTaxResidenceForeignTin${e}`];
|
|
904
|
-
if (!
|
|
902
|
+
if (!Gn(n) && ae(a[`accountHolderTaxResidenceCountry${e}`]) && z(
|
|
905
903
|
a[`accountHolderTaxResidenceForeignTin${e}IsNotRequired`]
|
|
906
904
|
))
|
|
907
905
|
return "invalid";
|
|
908
906
|
if (ae(n) && a[`accountHolderTaxResidenceCountry${e}`] === a.accountHolderVatCountry && n === a.accountHolderVatIdentificationNumber)
|
|
909
907
|
return "mustNotMatchVatin";
|
|
910
|
-
},
|
|
908
|
+
}, Za = {
|
|
911
909
|
accountHolderDateOfBirth: (e) => {
|
|
912
910
|
const a = e.accountHolderDateOfBirth;
|
|
913
911
|
if (ae(a)) {
|
|
914
|
-
if (!
|
|
912
|
+
if (!qn(a))
|
|
915
913
|
return "mustBeInDateFormat";
|
|
916
|
-
if (!Qn(a))
|
|
917
|
-
return "invalidDate";
|
|
918
914
|
if (!Yn(a))
|
|
915
|
+
return "invalidDate";
|
|
916
|
+
if (!Zn(a))
|
|
919
917
|
return "mustBeValidBirthDate";
|
|
920
918
|
}
|
|
921
919
|
},
|
|
922
920
|
accountHolderAddressZip: (e) => {
|
|
923
921
|
const a = e.accountHolderAddressZip;
|
|
924
922
|
if (e.accountHolderAddressCountry === "US") {
|
|
925
|
-
if (!
|
|
923
|
+
if (!Ja.test(a))
|
|
926
924
|
return "mustBeFiveOrNineDigits";
|
|
927
925
|
} else if (e.accountHolderAddressCountry === "CA") {
|
|
928
926
|
if (a.length !== 6)
|
|
929
927
|
return "mustBeSixCharacters";
|
|
930
|
-
if (!
|
|
928
|
+
if (!Wa.test(a))
|
|
931
929
|
return "invalid";
|
|
932
930
|
}
|
|
933
931
|
},
|
|
934
932
|
accountHolderMailingAddressZip: (e) => {
|
|
935
933
|
const a = e.accountHolderMailingAddressZip;
|
|
936
934
|
if (e.accountHolderMailingAddressCountry === "US") {
|
|
937
|
-
if (!
|
|
935
|
+
if (!Ja.test(a))
|
|
938
936
|
return "mustBeFiveOrNineDigits";
|
|
939
937
|
} else if (e.accountHolderMailingAddressCountry === "CA") {
|
|
940
938
|
if (a.length !== 6)
|
|
941
939
|
return "mustBeSixCharacters";
|
|
942
|
-
if (!
|
|
940
|
+
if (!Wa.test(a))
|
|
943
941
|
return "invalid";
|
|
944
942
|
}
|
|
945
943
|
},
|
|
@@ -961,7 +959,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
961
959
|
},
|
|
962
960
|
accountHolderVatIdentificationNumber: (e) => {
|
|
963
961
|
const a = e.accountHolderVatIdentificationNumber;
|
|
964
|
-
if (e.accountHolderVatIdentificationNumberIsNotRequired !== "yes" && !
|
|
962
|
+
if (e.accountHolderVatIdentificationNumberIsNotRequired !== "yes" && !Gt(a))
|
|
965
963
|
return "invalid";
|
|
966
964
|
},
|
|
967
965
|
accountHolderVatCountry: (e) => {
|
|
@@ -977,7 +975,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
977
975
|
},
|
|
978
976
|
accountHolderTaxResidenceForeignTin1: (e) => {
|
|
979
977
|
const a = e.accountHolderTaxResidenceForeignTin1;
|
|
980
|
-
if (!
|
|
978
|
+
if (!Gn(a) && z(e.accountHolderTaxResidenceForeignTin1IsNotRequired))
|
|
981
979
|
return "invalid";
|
|
982
980
|
if (ae(a) && e.accountHolderTaxResidenceCountry1 === e.accountHolderVatCountry && a === e.accountHolderVatIdentificationNumber)
|
|
983
981
|
return "mustNotMatchVatin";
|
|
@@ -1005,12 +1003,12 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
1005
1003
|
regardedOwnerMailingAddressZip: (e) => {
|
|
1006
1004
|
const a = e.regardedOwnerMailingAddressZip;
|
|
1007
1005
|
if (e.regardedOwnerMailingAddressCountry === "US") {
|
|
1008
|
-
if (!
|
|
1006
|
+
if (!Ja.test(a))
|
|
1009
1007
|
return "mustBeFiveOrNineDigits";
|
|
1010
1008
|
} else if (e.regardedOwnerMailingAddressCountry === "CA") {
|
|
1011
1009
|
if (a.length !== 6)
|
|
1012
1010
|
return "mustBeSixCharacters";
|
|
1013
|
-
if (!
|
|
1011
|
+
if (!Wa.test(a))
|
|
1014
1012
|
return "invalid";
|
|
1015
1013
|
}
|
|
1016
1014
|
},
|
|
@@ -1043,29 +1041,29 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
1043
1041
|
if (e.signature !== e.accountHolderName && (e.accountHolderUsAccountType === "individual" || e.accountHolderForeignAccountType === "individual"))
|
|
1044
1042
|
return "mustMatchName";
|
|
1045
1043
|
}
|
|
1046
|
-
},
|
|
1044
|
+
}, Lt = (e, a, n) => Object.fromEntries(
|
|
1047
1045
|
Object.keys(e).map((r) => {
|
|
1048
1046
|
var o;
|
|
1049
1047
|
const s = e[r];
|
|
1050
1048
|
return [
|
|
1051
1049
|
r,
|
|
1052
|
-
n[r] && (a[r] && z(s) && "required" || ((o =
|
|
1050
|
+
n[r] && (a[r] && z(s) && "required" || ((o = Za[r]) == null ? void 0 : o.call(Za, e)) || void 0)
|
|
1053
1051
|
];
|
|
1054
1052
|
}).filter(([, r]) => r)
|
|
1055
|
-
),
|
|
1053
|
+
), Ht = (e, a) => Object.fromEntries(
|
|
1056
1054
|
Object.keys(e).map((n) => {
|
|
1057
1055
|
var r;
|
|
1058
1056
|
return [
|
|
1059
1057
|
n,
|
|
1060
|
-
a[n] && ((r =
|
|
1058
|
+
a[n] && ((r = qa[n]) == null ? void 0 : r.call(qa, e))
|
|
1061
1059
|
];
|
|
1062
1060
|
}).filter(([, n]) => n)
|
|
1063
|
-
),
|
|
1061
|
+
), Dt = (e, a) => Object.fromEntries(
|
|
1064
1062
|
Object.keys(e).map((n) => [
|
|
1065
1063
|
n,
|
|
1066
1064
|
a[n] && e[n]
|
|
1067
1065
|
]).filter(([, n]) => n)
|
|
1068
|
-
),
|
|
1066
|
+
), Ln = (e) => ({
|
|
1069
1067
|
accountHolderUsPerson: e.includes("W-9") && (e.includes("W-8BEN") || e.includes("W-8BEN-E")),
|
|
1070
1068
|
accountHolderIsEuResident: e.includes("DAC7"),
|
|
1071
1069
|
accountHolderIsIndividual: e.includes("DAC7") && !(e.includes("W-9") || e.includes("W-8BEN") || e.includes("W-8BEN-E")),
|
|
@@ -1168,7 +1166,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
1168
1166
|
exemptPayeeCode: e.includes("W-9"),
|
|
1169
1167
|
exemptFatcaCode: e.includes("W-9"),
|
|
1170
1168
|
accountHolderCountryIsResidence: e.includes("DAC7")
|
|
1171
|
-
}),
|
|
1169
|
+
}), Ft = (e, a, n) => {
|
|
1172
1170
|
const {
|
|
1173
1171
|
accountHolderIsDisregarded: r,
|
|
1174
1172
|
isW9: s,
|
|
@@ -1293,7 +1291,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
1293
1291
|
);
|
|
1294
1292
|
}, La = (e) => e.accountHolderAddressCountry === "US", S = () => !0, Ha = (e) => (a) => ae(a[`accountHolderTaxResidenceForeignTin${e}`]) || a[`accountHolderTaxResidenceForeignTin${e}IsNotRequired`] === "yes", Da = (e) => (a) => ae(a[`accountHolderTaxResidenceCountry${e}`]) && z(
|
|
1295
1293
|
a[`accountHolderTaxResidenceForeignTin${e}IsNotRequired`]
|
|
1296
|
-
),
|
|
1294
|
+
), qa = {
|
|
1297
1295
|
accountHolderUsPerson: S,
|
|
1298
1296
|
accountHolderIsEuResident: S,
|
|
1299
1297
|
accountHolderIsIndividual: S,
|
|
@@ -1370,11 +1368,11 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
1370
1368
|
regardedOwnerUsTin: (e) => (e == null ? void 0 : e.regardedOwnerUsPerson) === "yes",
|
|
1371
1369
|
regardedOwnerForeignTin: (e) => e.regardedOwnerForeignTinIsNotRequired !== "yes",
|
|
1372
1370
|
signature: S
|
|
1373
|
-
},
|
|
1374
|
-
var s, o, u, d, l, m, k, v, b, p, C, I, M, G, E, _, L, ie, ue, be, Ce, te, re, Ne, oe, K, q, $, B, V, ce, se, Re, Pe, we, Ge, Ve, h, w, le, me, Le, ye, ca, We, ma, ga, je, Oe, Je, Ze, Be, ka, ha, He, va, fa, qe, Ye, Se, pa, _e, Qe, De, Aa, ba, Ca, Na, Sa, Ia, Ta, Fe, Xe, ge, xe, Ue, $e, Ma, ea, ya, aa, ia, ja, Oa, na, Ba, za, Ea, Ra, t, c, g, A, y, j, T, N, D, R, P, W, ke, ta, ee, ri, oi, si, li, di, ui, ci, mi, gi, ki, hi, vi, fi, pi, Ai, bi, Ci, Ni, Si, Ii, Ti, Mi, yi, ji, Oi, Bi, zi, Ei, Ri, Pi, wi, Gi, Li, Hi, Di, Fi, xi, Ui, Ki, Vi, Wi, Ji, Zi, qi, Yi, _i, Qi, Xi, $i, en, an, nn, tn, rn, on, sn, ln, dn, un, cn, mn, gn
|
|
1371
|
+
}, Sn = (e, a) => {
|
|
1372
|
+
var s, o, u, d, l, m, k, v, b, p, C, I, M, G, E, _, L, ie, ue, be, Ce, te, re, Ne, oe, K, q, $, B, V, ce, se, Re, Pe, we, Ge, Ve, h, w, le, me, Le, ye, ca, We, ma, ga, je, Oe, Je, Ze, Be, ka, ha, He, va, fa, qe, Ye, Se, pa, _e, Qe, De, Aa, ba, Ca, Na, Sa, Ia, Ta, Fe, Xe, ge, xe, Ue, $e, Ma, ea, ya, aa, ia, ja, Oa, na, Ba, za, Ea, Ra, t, c, g, A, y, j, T, N, D, R, P, W, ke, ta, ee, ti, ri, oi, si, li, di, ui, ci, mi, gi, ki, hi, vi, fi, pi, Ai, bi, Ci, Ni, Si, Ii, Ti, Mi, yi, ji, Oi, Bi, zi, Ei, Ri, Pi, wi, Gi, Li, Hi, Di, Fi, xi, Ui, Ki, Vi, Wi, Ji, Zi, qi, Yi, _i, Qi, Xi, $i, en, an, nn, tn, rn, on, sn, ln, dn, un, cn, mn, gn;
|
|
1375
1373
|
if (e == null)
|
|
1376
1374
|
return {};
|
|
1377
|
-
const n =
|
|
1375
|
+
const n = Ln(a), r = {
|
|
1378
1376
|
accountHolderName: (s = e.accountHolder) == null ? void 0 : s.name,
|
|
1379
1377
|
accountHolderDbaName: (o = e.accountHolder) == null ? void 0 : o.dbaName,
|
|
1380
1378
|
accountHolderDateOfBirth: (u = e.accountHolder) == null ? void 0 : u.dateOfBirth,
|
|
@@ -1400,22 +1398,22 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
1400
1398
|
accountHolderIsIndividual: ((we = e.accountHolder) == null ? void 0 : we.isIndividual) === !0 ? "yes" : ((Ge = e.accountHolder) == null ? void 0 : Ge.isIndividual) === !1 ? "no" : void 0,
|
|
1401
1399
|
accountHolderIsEuResident: ((Ve = e.accountHolder) == null ? void 0 : Ve.isEuResident) === !0 ? "yes" : ((h = e.accountHolder) == null ? void 0 : h.isEuResident) === !1 ? "no" : void 0,
|
|
1402
1400
|
accountHolderUsPerson: ((w = e.accountHolder) == null ? void 0 : w.isUsPerson) === !0 ? "yes" : ((le = e.accountHolder) == null ? void 0 : le.isUsPerson) === !1 ? "no" : void 0,
|
|
1403
|
-
accountHolderUsAccountType:
|
|
1401
|
+
accountHolderUsAccountType: Nn(
|
|
1404
1402
|
(me = e.accountHolder) == null ? void 0 : me.usAccountType
|
|
1405
1403
|
),
|
|
1406
1404
|
accountHolderUsSmllcElection: ((Le = e.accountHolder) == null ? void 0 : Le.usSmllcElection) === !0 ? "yes" : ((ye = e.accountHolder) == null ? void 0 : ye.usSmllcElection) === !1 ? "no" : void 0,
|
|
1407
|
-
accountHolderUsLlcClassification:
|
|
1405
|
+
accountHolderUsLlcClassification: Cn(
|
|
1408
1406
|
(ca = e.accountHolder) == null ? void 0 : ca.usLlcClassification
|
|
1409
1407
|
),
|
|
1410
1408
|
accountHolderUsOtherClassification: (We = e.accountHolder) == null ? void 0 : We.usOtherClassification,
|
|
1411
1409
|
accountHolderUsTrustEstateEin: ((ma = e.accountHolder) == null ? void 0 : ma.usTrustEstateEin) === !0 ? "yes" : ((ga = e.accountHolder) == null ? void 0 : ga.usTrustEstateEin) === !1 ? "no" : void 0,
|
|
1412
|
-
accountHolderForeignAccountType:
|
|
1410
|
+
accountHolderForeignAccountType: pn(
|
|
1413
1411
|
(je = e.accountHolder) == null ? void 0 : je.foreignAccountType
|
|
1414
1412
|
),
|
|
1415
|
-
accountHolderForeignTrustClassification:
|
|
1413
|
+
accountHolderForeignTrustClassification: bn(
|
|
1416
1414
|
(Oe = e.accountHolder) == null ? void 0 : Oe.foreignTrustClassification
|
|
1417
1415
|
),
|
|
1418
|
-
accountHolderForeignOtherClassification:
|
|
1416
|
+
accountHolderForeignOtherClassification: An(
|
|
1419
1417
|
(Je = e.accountHolder) == null ? void 0 : Je.foreignOtherClassification
|
|
1420
1418
|
),
|
|
1421
1419
|
accountHolderFinancialAccountName: z(
|
|
@@ -1436,67 +1434,67 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
1436
1434
|
accountHolderTaxResidenceForeignTin2: (T = (j = (y = e.accountHolder) == null ? void 0 : y.taxResidences) == null ? void 0 : j[1]) == null ? void 0 : T.tin,
|
|
1437
1435
|
accountHolderTaxResidenceForeignTin2IsNotRequired: (R = (D = (N = e.accountHolder) == null ? void 0 : N.taxResidences) == null ? void 0 : D[1]) != null && R.tinNotRequired ? "yes" : void 0,
|
|
1438
1436
|
accountHolderTaxResidenceCountry3: (ke = (W = (P = e.accountHolder) == null ? void 0 : P.taxResidences) == null ? void 0 : W[2]) == null ? void 0 : ke.country,
|
|
1439
|
-
accountHolderTaxResidenceForeignTin3: (
|
|
1440
|
-
accountHolderTaxResidenceForeignTin3IsNotRequired: (
|
|
1441
|
-
accountHolderTaxResidenceCountry4: (
|
|
1442
|
-
accountHolderTaxResidenceForeignTin4: (
|
|
1443
|
-
accountHolderTaxResidenceForeignTin4IsNotRequired: (
|
|
1444
|
-
accountHolderTaxResidenceCountry5: (
|
|
1445
|
-
accountHolderTaxResidenceForeignTin5: (
|
|
1446
|
-
accountHolderTaxResidenceForeignTin5IsNotRequired: (
|
|
1437
|
+
accountHolderTaxResidenceForeignTin3: (ti = (ee = (ta = e.accountHolder) == null ? void 0 : ta.taxResidences) == null ? void 0 : ee[2]) == null ? void 0 : ti.tin,
|
|
1438
|
+
accountHolderTaxResidenceForeignTin3IsNotRequired: (si = (oi = (ri = e.accountHolder) == null ? void 0 : ri.taxResidences) == null ? void 0 : oi[2]) != null && si.tinNotRequired ? "yes" : void 0,
|
|
1439
|
+
accountHolderTaxResidenceCountry4: (ui = (di = (li = e.accountHolder) == null ? void 0 : li.taxResidences) == null ? void 0 : di[3]) == null ? void 0 : ui.country,
|
|
1440
|
+
accountHolderTaxResidenceForeignTin4: (gi = (mi = (ci = e.accountHolder) == null ? void 0 : ci.taxResidences) == null ? void 0 : mi[3]) == null ? void 0 : gi.tin,
|
|
1441
|
+
accountHolderTaxResidenceForeignTin4IsNotRequired: (vi = (hi = (ki = e.accountHolder) == null ? void 0 : ki.taxResidences) == null ? void 0 : hi[3]) != null && vi.tinNotRequired ? "yes" : void 0,
|
|
1442
|
+
accountHolderTaxResidenceCountry5: (Ai = (pi = (fi = e.accountHolder) == null ? void 0 : fi.taxResidences) == null ? void 0 : pi[4]) == null ? void 0 : Ai.country,
|
|
1443
|
+
accountHolderTaxResidenceForeignTin5: (Ni = (Ci = (bi = e.accountHolder) == null ? void 0 : bi.taxResidences) == null ? void 0 : Ci[4]) == null ? void 0 : Ni.tin,
|
|
1444
|
+
accountHolderTaxResidenceForeignTin5IsNotRequired: (Ti = (Ii = (Si = e.accountHolder) == null ? void 0 : Si.taxResidences) == null ? void 0 : Ii[4]) != null && Ti.tinNotRequired ? "yes" : void 0,
|
|
1447
1445
|
accountHolderCountryIsResidence: void 0,
|
|
1448
|
-
regardedOwnerName: (
|
|
1449
|
-
regardedOwnerDbaName: (
|
|
1450
|
-
regardedOwnerDateOfBirth: (
|
|
1451
|
-
regardedOwnerUsTin: (
|
|
1452
|
-
regardedOwnerForeignTin: (
|
|
1453
|
-
regardedOwnerForeignTinIsNotRequired: (
|
|
1454
|
-
regardedOwnerCountryOfCitizenship: (
|
|
1455
|
-
regardedOwnerAddressStreet: (
|
|
1456
|
-
regardedOwnerAddressStreet2: (
|
|
1457
|
-
regardedOwnerAddressCity: (
|
|
1458
|
-
regardedOwnerAddressState: (
|
|
1459
|
-
regardedOwnerAddressZip: (
|
|
1460
|
-
regardedOwnerAddressCountry: (
|
|
1461
|
-
regardedOwnerMailingAddressStreet: (
|
|
1462
|
-
regardedOwnerMailingAddressStreet2: (
|
|
1463
|
-
regardedOwnerMailingAddressCity: (
|
|
1464
|
-
regardedOwnerMailingAddressState: (
|
|
1465
|
-
regardedOwnerMailingAddressZip: (
|
|
1466
|
-
regardedOwnerMailingAddressCountry: (
|
|
1467
|
-
regardedOwnerUsPerson: ((
|
|
1468
|
-
regardedOwnerUsAccountType:
|
|
1469
|
-
(
|
|
1446
|
+
regardedOwnerName: (Mi = e.regardedOwner) == null ? void 0 : Mi.name,
|
|
1447
|
+
regardedOwnerDbaName: (yi = e.regardedOwner) == null ? void 0 : yi.dbaName,
|
|
1448
|
+
regardedOwnerDateOfBirth: (ji = e.regardedOwner) == null ? void 0 : ji.dateOfBirth,
|
|
1449
|
+
regardedOwnerUsTin: (Oi = e.regardedOwner) == null ? void 0 : Oi.tin,
|
|
1450
|
+
regardedOwnerForeignTin: (Bi = e.regardedOwner) == null ? void 0 : Bi.ftin,
|
|
1451
|
+
regardedOwnerForeignTinIsNotRequired: (zi = e.regardedOwner) != null && zi.ftinNotLegallyRequired ? "yes" : void 0,
|
|
1452
|
+
regardedOwnerCountryOfCitizenship: (Ei = e.regardedOwner) == null ? void 0 : Ei.countryOfCitizenship,
|
|
1453
|
+
regardedOwnerAddressStreet: (Pi = (Ri = e.regardedOwner) == null ? void 0 : Ri.address) == null ? void 0 : Pi.firstLine,
|
|
1454
|
+
regardedOwnerAddressStreet2: (Gi = (wi = e.regardedOwner) == null ? void 0 : wi.address) == null ? void 0 : Gi.secondLine,
|
|
1455
|
+
regardedOwnerAddressCity: (Hi = (Li = e.regardedOwner) == null ? void 0 : Li.address) == null ? void 0 : Hi.city,
|
|
1456
|
+
regardedOwnerAddressState: (Fi = (Di = e.regardedOwner) == null ? void 0 : Di.address) == null ? void 0 : Fi.stateOrProvince,
|
|
1457
|
+
regardedOwnerAddressZip: (Ui = (xi = e.regardedOwner) == null ? void 0 : xi.address) == null ? void 0 : Ui.postalCode,
|
|
1458
|
+
regardedOwnerAddressCountry: (Vi = (Ki = e.regardedOwner) == null ? void 0 : Ki.address) == null ? void 0 : Vi.country,
|
|
1459
|
+
regardedOwnerMailingAddressStreet: (Ji = (Wi = e.regardedOwner) == null ? void 0 : Wi.mailingAddress) == null ? void 0 : Ji.firstLine,
|
|
1460
|
+
regardedOwnerMailingAddressStreet2: (qi = (Zi = e.regardedOwner) == null ? void 0 : Zi.mailingAddress) == null ? void 0 : qi.secondLine,
|
|
1461
|
+
regardedOwnerMailingAddressCity: (_i = (Yi = e.regardedOwner) == null ? void 0 : Yi.mailingAddress) == null ? void 0 : _i.city,
|
|
1462
|
+
regardedOwnerMailingAddressState: (Xi = (Qi = e.regardedOwner) == null ? void 0 : Qi.mailingAddress) == null ? void 0 : Xi.stateOrProvince,
|
|
1463
|
+
regardedOwnerMailingAddressZip: (en = ($i = e.regardedOwner) == null ? void 0 : $i.mailingAddress) == null ? void 0 : en.postalCode,
|
|
1464
|
+
regardedOwnerMailingAddressCountry: (nn = (an = e.regardedOwner) == null ? void 0 : an.mailingAddress) == null ? void 0 : nn.country,
|
|
1465
|
+
regardedOwnerUsPerson: ((tn = e.regardedOwner) == null ? void 0 : tn.isUsPerson) === !0 ? "yes" : ((rn = e.regardedOwner) == null ? void 0 : rn.isUsPerson) === !1 ? "no" : void 0,
|
|
1466
|
+
regardedOwnerUsAccountType: Nn(
|
|
1467
|
+
(on = e.regardedOwner) == null ? void 0 : on.usAccountType
|
|
1470
1468
|
),
|
|
1471
|
-
regardedOwnerUsLlcClassification:
|
|
1472
|
-
(
|
|
1469
|
+
regardedOwnerUsLlcClassification: Cn(
|
|
1470
|
+
(sn = e.regardedOwner) == null ? void 0 : sn.usLlcClassification
|
|
1473
1471
|
),
|
|
1474
|
-
regardedOwnerUsOtherClassification: (
|
|
1475
|
-
regardedOwnerUsTrustEstateEin: ((
|
|
1476
|
-
regardedOwnerForeignAccountType:
|
|
1477
|
-
(
|
|
1472
|
+
regardedOwnerUsOtherClassification: (ln = e.regardedOwner) == null ? void 0 : ln.usOtherClassification,
|
|
1473
|
+
regardedOwnerUsTrustEstateEin: ((dn = e.regardedOwner) == null ? void 0 : dn.usTrustEstateEin) === !0 ? "yes" : ((un = e.regardedOwner) == null ? void 0 : un.usTrustEstateEin) === !1 ? "no" : void 0,
|
|
1474
|
+
regardedOwnerForeignAccountType: pn(
|
|
1475
|
+
(cn = e.regardedOwner) == null ? void 0 : cn.foreignAccountType
|
|
1478
1476
|
),
|
|
1479
|
-
regardedOwnerForeignTrustClassification:
|
|
1480
|
-
(
|
|
1477
|
+
regardedOwnerForeignTrustClassification: bn(
|
|
1478
|
+
(mn = e.regardedOwner) == null ? void 0 : mn.foreignTrustClassification
|
|
1481
1479
|
),
|
|
1482
|
-
regardedOwnerForeignOtherClassification:
|
|
1483
|
-
(
|
|
1480
|
+
regardedOwnerForeignOtherClassification: An(
|
|
1481
|
+
(gn = e.regardedOwner) == null ? void 0 : gn.foreignOtherClassification
|
|
1484
1482
|
)
|
|
1485
1483
|
};
|
|
1486
1484
|
return Object.fromEntries(
|
|
1487
1485
|
Object.entries(r).filter(
|
|
1488
|
-
([
|
|
1486
|
+
([Kn]) => n[Kn]
|
|
1489
1487
|
)
|
|
1490
1488
|
);
|
|
1491
|
-
},
|
|
1489
|
+
}, Ya = ({ bearerToken: e }) => new Headers({
|
|
1492
1490
|
Authorization: `Bearer ${e}`
|
|
1493
|
-
}),
|
|
1491
|
+
}), xt = (e, a) => {
|
|
1494
1492
|
var C;
|
|
1495
|
-
const [n, r] = U(), [s, o] = U(), [u, d] = U(!1), l = a ? "STAGING" : "PRODUCTION", m =
|
|
1493
|
+
const [n, r] = U(), [s, o] = U(), [u, d] = U(!1), l = a ? "STAGING" : "PRODUCTION", m = Va.taxDocumentation.get(l), k = Va.taxDocumentation.post(l), v = Va.taxDocumentationStatus.get(l), b = async (I) => {
|
|
1496
1494
|
const M = {
|
|
1497
1495
|
method: "POST",
|
|
1498
|
-
headers:
|
|
1499
|
-
body: JSON.stringify(
|
|
1496
|
+
headers: Ya({ bearerToken: e }),
|
|
1497
|
+
body: JSON.stringify(Xa(I))
|
|
1500
1498
|
};
|
|
1501
1499
|
fetch(k, M).then((G) => {
|
|
1502
1500
|
G.status === 200 && d(!0);
|
|
@@ -1505,7 +1503,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
1505
1503
|
Q(() => {
|
|
1506
1504
|
const I = {
|
|
1507
1505
|
method: "GET",
|
|
1508
|
-
headers:
|
|
1506
|
+
headers: Ya({ bearerToken: e })
|
|
1509
1507
|
};
|
|
1510
1508
|
fetch(v, I).then((M) => {
|
|
1511
1509
|
if (M.ok)
|
|
@@ -1515,10 +1513,10 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
1515
1513
|
o(la(M));
|
|
1516
1514
|
});
|
|
1517
1515
|
}, [e, v, u]), Q(() => {
|
|
1518
|
-
if (s && s.submissionStatus !==
|
|
1516
|
+
if (s && s.submissionStatus !== "NOT_SUBMITTED") {
|
|
1519
1517
|
const I = {
|
|
1520
1518
|
method: "GET",
|
|
1521
|
-
headers:
|
|
1519
|
+
headers: Ya({ bearerToken: e })
|
|
1522
1520
|
};
|
|
1523
1521
|
fetch(m, I).then((M) => {
|
|
1524
1522
|
if (M.ok)
|
|
@@ -1533,7 +1531,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
1533
1531
|
});
|
|
1534
1532
|
}
|
|
1535
1533
|
}, [e, s, m]);
|
|
1536
|
-
const p = (s == null ? void 0 : s.submissionStatus) ===
|
|
1534
|
+
const p = (s == null ? void 0 : s.submissionStatus) === "NOT_SUBMITTED" ? s.submissionStatus : (C = s == null ? void 0 : s.DAC7Interview) == null ? void 0 : C.dataCollectionStatus;
|
|
1537
1535
|
return {
|
|
1538
1536
|
postData: b,
|
|
1539
1537
|
formStatus: p,
|
|
@@ -1542,7 +1540,7 @@ const qn = (e) => e.replace(/([-_][a-z])/gi, (a) => a.toUpperCase().replace(/[-_
|
|
|
1542
1540
|
serverData: n
|
|
1543
1541
|
};
|
|
1544
1542
|
};
|
|
1545
|
-
var
|
|
1543
|
+
var $a = { exports: {} }, ra = {};
|
|
1546
1544
|
/**
|
|
1547
1545
|
* @license React
|
|
1548
1546
|
* react-jsx-runtime.production.min.js
|
|
@@ -1552,12 +1550,12 @@ var ei = { exports: {} }, ra = {};
|
|
|
1552
1550
|
* This source code is licensed under the MIT license found in the
|
|
1553
1551
|
* LICENSE file in the root directory of this source tree.
|
|
1554
1552
|
*/
|
|
1555
|
-
var
|
|
1556
|
-
function
|
|
1557
|
-
if (
|
|
1553
|
+
var In;
|
|
1554
|
+
function Ut() {
|
|
1555
|
+
if (In)
|
|
1558
1556
|
return ra;
|
|
1559
|
-
|
|
1560
|
-
var e =
|
|
1557
|
+
In = 1;
|
|
1558
|
+
var e = jn, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1561
1559
|
function u(d, l, m) {
|
|
1562
1560
|
var k, v = {}, b = null, p = null;
|
|
1563
1561
|
m !== void 0 && (b = "" + m), l.key !== void 0 && (b = "" + l.key), l.ref !== void 0 && (p = l.ref);
|
|
@@ -1580,10 +1578,10 @@ var oa = {};
|
|
|
1580
1578
|
* This source code is licensed under the MIT license found in the
|
|
1581
1579
|
* LICENSE file in the root directory of this source tree.
|
|
1582
1580
|
*/
|
|
1583
|
-
var
|
|
1584
|
-
function
|
|
1585
|
-
return
|
|
1586
|
-
var e =
|
|
1581
|
+
var Tn;
|
|
1582
|
+
function Kt() {
|
|
1583
|
+
return Tn || (Tn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1584
|
+
var e = jn, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), C = Symbol.iterator, I = "@@iterator";
|
|
1587
1585
|
function M(t) {
|
|
1588
1586
|
if (t === null || typeof t != "object")
|
|
1589
1587
|
return null;
|
|
@@ -2167,9 +2165,9 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2167
2165
|
oa.Fragment = r, oa.jsx = Ea, oa.jsxs = Ra;
|
|
2168
2166
|
}()), oa;
|
|
2169
2167
|
}
|
|
2170
|
-
process.env.NODE_ENV === "production" ?
|
|
2171
|
-
var i =
|
|
2172
|
-
const
|
|
2168
|
+
process.env.NODE_ENV === "production" ? $a.exports = Ut() : $a.exports = Kt();
|
|
2169
|
+
var i = $a.exports;
|
|
2170
|
+
const Vt = {
|
|
2173
2171
|
button: {
|
|
2174
2172
|
back: "Назад",
|
|
2175
2173
|
cancel: "Отказ",
|
|
@@ -2723,7 +2721,7 @@ const Jt = {
|
|
|
2723
2721
|
"sl-si": "Словенски",
|
|
2724
2722
|
"sv-se": "Шведски"
|
|
2725
2723
|
}
|
|
2726
|
-
},
|
|
2724
|
+
}, Wt = {
|
|
2727
2725
|
button: {
|
|
2728
2726
|
back: "Zpět",
|
|
2729
2727
|
cancel: "Zrušit",
|
|
@@ -3277,7 +3275,7 @@ const Jt = {
|
|
|
3277
3275
|
"sl-si": "Slovinsky",
|
|
3278
3276
|
"sv-se": "Švédsky"
|
|
3279
3277
|
}
|
|
3280
|
-
},
|
|
3278
|
+
}, Jt = {
|
|
3281
3279
|
button: {
|
|
3282
3280
|
back: "Tilbage",
|
|
3283
3281
|
cancel: "Annuller",
|
|
@@ -3831,7 +3829,7 @@ const Jt = {
|
|
|
3831
3829
|
"sl-si": "Slovensk",
|
|
3832
3830
|
"sv-se": "Svensk"
|
|
3833
3831
|
}
|
|
3834
|
-
},
|
|
3832
|
+
}, Zt = {
|
|
3835
3833
|
button: {
|
|
3836
3834
|
back: "Zurück",
|
|
3837
3835
|
cancel: "Abbrechen",
|
|
@@ -4385,7 +4383,7 @@ const Jt = {
|
|
|
4385
4383
|
"sl-si": "Slowenisch",
|
|
4386
4384
|
"sv-se": "Schwedisch"
|
|
4387
4385
|
}
|
|
4388
|
-
},
|
|
4386
|
+
}, qt = {
|
|
4389
4387
|
button: {
|
|
4390
4388
|
back: "Zurück",
|
|
4391
4389
|
cancel: "Abbrechen",
|
|
@@ -4939,7 +4937,7 @@ const Jt = {
|
|
|
4939
4937
|
"sl-si": "Slowenisch",
|
|
4940
4938
|
"sv-se": "Schwedisch"
|
|
4941
4939
|
}
|
|
4942
|
-
},
|
|
4940
|
+
}, Yt = {
|
|
4943
4941
|
button: {
|
|
4944
4942
|
back: "Πίσω",
|
|
4945
4943
|
cancel: "Άκυρο",
|
|
@@ -5493,7 +5491,7 @@ const Jt = {
|
|
|
5493
5491
|
"sl-si": "Σλοβενικά",
|
|
5494
5492
|
"sv-se": "Σουηδικά"
|
|
5495
5493
|
}
|
|
5496
|
-
},
|
|
5494
|
+
}, _t = {
|
|
5497
5495
|
button: {
|
|
5498
5496
|
back: "Πίσω",
|
|
5499
5497
|
cancel: "Άκυρο",
|
|
@@ -6047,7 +6045,7 @@ const Jt = {
|
|
|
6047
6045
|
"sl-si": "Σλοβενικά",
|
|
6048
6046
|
"sv-se": "Σουηδικά"
|
|
6049
6047
|
}
|
|
6050
|
-
},
|
|
6048
|
+
}, Qt = {
|
|
6051
6049
|
button: {
|
|
6052
6050
|
back: "Back",
|
|
6053
6051
|
cancel: "Cancel",
|
|
@@ -6601,7 +6599,7 @@ const Jt = {
|
|
|
6601
6599
|
11: "November",
|
|
6602
6600
|
12: "December"
|
|
6603
6601
|
}
|
|
6604
|
-
},
|
|
6602
|
+
}, Xt = {
|
|
6605
6603
|
button: {
|
|
6606
6604
|
back: "Back",
|
|
6607
6605
|
cancel: "Cancel",
|
|
@@ -7155,7 +7153,7 @@ const Jt = {
|
|
|
7155
7153
|
"sl-si": "Slovenian",
|
|
7156
7154
|
"sv-se": "Swedish"
|
|
7157
7155
|
}
|
|
7158
|
-
},
|
|
7156
|
+
}, $t = {
|
|
7159
7157
|
button: {
|
|
7160
7158
|
back: "Atrás",
|
|
7161
7159
|
cancel: "Cancelar",
|
|
@@ -7709,7 +7707,7 @@ const Jt = {
|
|
|
7709
7707
|
11: "Noviembre",
|
|
7710
7708
|
12: "Diciembre"
|
|
7711
7709
|
}
|
|
7712
|
-
},
|
|
7710
|
+
}, er = {
|
|
7713
7711
|
button: {
|
|
7714
7712
|
back: "Tagasi",
|
|
7715
7713
|
cancel: "Tühista",
|
|
@@ -8263,7 +8261,7 @@ const Jt = {
|
|
|
8263
8261
|
"sl-si": "Sloveenia",
|
|
8264
8262
|
"sv-se": "Rootsi Keel"
|
|
8265
8263
|
}
|
|
8266
|
-
},
|
|
8264
|
+
}, ar = {
|
|
8267
8265
|
button: {
|
|
8268
8266
|
back: "Takaisin",
|
|
8269
8267
|
cancel: "Peruuta",
|
|
@@ -8817,7 +8815,7 @@ const Jt = {
|
|
|
8817
8815
|
"sl-si": "Slovenia",
|
|
8818
8816
|
"sv-se": "Ruotsi"
|
|
8819
8817
|
}
|
|
8820
|
-
},
|
|
8818
|
+
}, ir = {
|
|
8821
8819
|
button: {
|
|
8822
8820
|
back: "Retour",
|
|
8823
8821
|
cancel: "Annuler",
|
|
@@ -9371,7 +9369,7 @@ const Jt = {
|
|
|
9371
9369
|
11: "Novembre",
|
|
9372
9370
|
12: "Décembre"
|
|
9373
9371
|
}
|
|
9374
|
-
},
|
|
9372
|
+
}, nr = {
|
|
9375
9373
|
button: {
|
|
9376
9374
|
back: "Retour",
|
|
9377
9375
|
cancel: "Annuler",
|
|
@@ -9925,7 +9923,7 @@ const Jt = {
|
|
|
9925
9923
|
"sl-si": "Slovène",
|
|
9926
9924
|
"sv-se": "Suédois"
|
|
9927
9925
|
}
|
|
9928
|
-
},
|
|
9926
|
+
}, tr = {
|
|
9929
9927
|
button: {
|
|
9930
9928
|
back: "Siar",
|
|
9931
9929
|
cancel: "Cealaigh",
|
|
@@ -10479,7 +10477,7 @@ const Jt = {
|
|
|
10479
10477
|
"sl-si": "Slóivéinis",
|
|
10480
10478
|
"sv-se": "Sualainnis"
|
|
10481
10479
|
}
|
|
10482
|
-
},
|
|
10480
|
+
}, rr = {
|
|
10483
10481
|
button: {
|
|
10484
10482
|
back: "Natrag",
|
|
10485
10483
|
cancel: "Odustani",
|
|
@@ -11033,7 +11031,7 @@ const Jt = {
|
|
|
11033
11031
|
"sl-si": "Slovenski",
|
|
11034
11032
|
"sv-se": "Švedski"
|
|
11035
11033
|
}
|
|
11036
|
-
},
|
|
11034
|
+
}, or = {
|
|
11037
11035
|
button: {
|
|
11038
11036
|
back: "Vissza",
|
|
11039
11037
|
cancel: "Mégse",
|
|
@@ -11587,7 +11585,7 @@ const Jt = {
|
|
|
11587
11585
|
"sl-si": "Szlovén",
|
|
11588
11586
|
"sv-se": "Svéd"
|
|
11589
11587
|
}
|
|
11590
|
-
},
|
|
11588
|
+
}, sr = {
|
|
11591
11589
|
button: {
|
|
11592
11590
|
back: "Indietro",
|
|
11593
11591
|
cancel: "Annulla",
|
|
@@ -12141,7 +12139,7 @@ const Jt = {
|
|
|
12141
12139
|
"sl-si": "Sloveno",
|
|
12142
12140
|
"sv-se": "Svedese"
|
|
12143
12141
|
}
|
|
12144
|
-
},
|
|
12142
|
+
}, lr = {
|
|
12145
12143
|
button: {
|
|
12146
12144
|
back: "Atgal",
|
|
12147
12145
|
cancel: "Atšaukti",
|
|
@@ -12695,7 +12693,7 @@ const Jt = {
|
|
|
12695
12693
|
"sl-si": "Slovėnų",
|
|
12696
12694
|
"sv-se": "Švedų"
|
|
12697
12695
|
}
|
|
12698
|
-
},
|
|
12696
|
+
}, dr = {
|
|
12699
12697
|
button: {
|
|
12700
12698
|
back: "Aizmugure",
|
|
12701
12699
|
cancel: "Atcelt",
|
|
@@ -13249,7 +13247,7 @@ const Jt = {
|
|
|
13249
13247
|
"sl-si": "Slovēņu",
|
|
13250
13248
|
"sv-se": "Zviedru"
|
|
13251
13249
|
}
|
|
13252
|
-
},
|
|
13250
|
+
}, ur = {
|
|
13253
13251
|
button: {
|
|
13254
13252
|
back: "Lura",
|
|
13255
13253
|
cancel: "Ikkanċella",
|
|
@@ -13803,7 +13801,7 @@ const Jt = {
|
|
|
13803
13801
|
"sl-si": "Sloven",
|
|
13804
13802
|
"sv-se": "Svediż"
|
|
13805
13803
|
}
|
|
13806
|
-
},
|
|
13804
|
+
}, cr = {
|
|
13807
13805
|
button: {
|
|
13808
13806
|
back: "Terug",
|
|
13809
13807
|
cancel: "Annuleren",
|
|
@@ -14357,7 +14355,7 @@ const Jt = {
|
|
|
14357
14355
|
"sl-si": "Sloveens",
|
|
14358
14356
|
"sv-se": "Zweeds"
|
|
14359
14357
|
}
|
|
14360
|
-
},
|
|
14358
|
+
}, mr = {
|
|
14361
14359
|
button: {
|
|
14362
14360
|
back: "Terug",
|
|
14363
14361
|
cancel: "Annuleren",
|
|
@@ -14911,7 +14909,7 @@ const Jt = {
|
|
|
14911
14909
|
11: "November",
|
|
14912
14910
|
12: "December"
|
|
14913
14911
|
}
|
|
14914
|
-
},
|
|
14912
|
+
}, gr = {
|
|
14915
14913
|
button: {
|
|
14916
14914
|
back: "Tilbake",
|
|
14917
14915
|
cancel: "Avbryt",
|
|
@@ -15465,7 +15463,7 @@ const Jt = {
|
|
|
15465
15463
|
"sl-si": "Slovensk",
|
|
15466
15464
|
"sv-se": "Svensk"
|
|
15467
15465
|
}
|
|
15468
|
-
},
|
|
15466
|
+
}, kr = {
|
|
15469
15467
|
button: {
|
|
15470
15468
|
back: "Wstecz",
|
|
15471
15469
|
cancel: "Anuluj",
|
|
@@ -16019,7 +16017,7 @@ const Jt = {
|
|
|
16019
16017
|
"sl-si": "Słoweński",
|
|
16020
16018
|
"sv-se": "Szwedzki"
|
|
16021
16019
|
}
|
|
16022
|
-
},
|
|
16020
|
+
}, hr = {
|
|
16023
16021
|
button: {
|
|
16024
16022
|
back: "Voltar",
|
|
16025
16023
|
cancel: "Cancelar",
|
|
@@ -16573,7 +16571,7 @@ const Jt = {
|
|
|
16573
16571
|
11: "Novembro",
|
|
16574
16572
|
12: "Dezembro"
|
|
16575
16573
|
}
|
|
16576
|
-
},
|
|
16574
|
+
}, vr = {
|
|
16577
16575
|
button: {
|
|
16578
16576
|
back: "Înapoi",
|
|
16579
16577
|
cancel: "Anulați",
|
|
@@ -17127,7 +17125,7 @@ const Jt = {
|
|
|
17127
17125
|
"sl-si": "Slovenă",
|
|
17128
17126
|
"sv-se": "Suedez"
|
|
17129
17127
|
}
|
|
17130
|
-
},
|
|
17128
|
+
}, fr = {
|
|
17131
17129
|
button: {
|
|
17132
17130
|
back: "Späť",
|
|
17133
17131
|
cancel: "Zrušiť",
|
|
@@ -17681,7 +17679,7 @@ const Jt = {
|
|
|
17681
17679
|
"sl-si": "Slovensky",
|
|
17682
17680
|
"sv-se": "Švédsky"
|
|
17683
17681
|
}
|
|
17684
|
-
},
|
|
17682
|
+
}, pr = {
|
|
17685
17683
|
button: {
|
|
17686
17684
|
back: "Nazaj",
|
|
17687
17685
|
cancel: "Prekliči",
|
|
@@ -18235,7 +18233,7 @@ const Jt = {
|
|
|
18235
18233
|
"sl-si": "Slovenščina",
|
|
18236
18234
|
"sv-se": "Švedščina"
|
|
18237
18235
|
}
|
|
18238
|
-
},
|
|
18236
|
+
}, Ar = {
|
|
18239
18237
|
button: {
|
|
18240
18238
|
back: "Tillbaka",
|
|
18241
18239
|
cancel: "Avbryt",
|
|
@@ -18789,125 +18787,125 @@ const Jt = {
|
|
|
18789
18787
|
11: "November",
|
|
18790
18788
|
12: "December"
|
|
18791
18789
|
}
|
|
18792
|
-
},
|
|
18793
|
-
"bg-bg":
|
|
18794
|
-
"cs-cz":
|
|
18795
|
-
"da-dk":
|
|
18796
|
-
"de-at":
|
|
18797
|
-
"de-de":
|
|
18798
|
-
"el-gr":
|
|
18799
|
-
"el-cy":
|
|
18800
|
-
"en-gb":
|
|
18801
|
-
"en-us":
|
|
18802
|
-
"es-es":
|
|
18803
|
-
"et-ee":
|
|
18804
|
-
"fi-fi":
|
|
18805
|
-
"fr-fr":
|
|
18806
|
-
"fr-lu":
|
|
18807
|
-
"ga-ie":
|
|
18808
|
-
"hr-hr":
|
|
18809
|
-
"hu-hu":
|
|
18810
|
-
"it-it":
|
|
18811
|
-
"lt-lt":
|
|
18812
|
-
"lv-lv":
|
|
18813
|
-
"mt-mt":
|
|
18814
|
-
"nl-be":
|
|
18815
|
-
"nl-nl":
|
|
18816
|
-
"no-no":
|
|
18817
|
-
"pl-pl":
|
|
18818
|
-
"pt-pt":
|
|
18819
|
-
"ro-ro":
|
|
18820
|
-
"sk-sk":
|
|
18821
|
-
"sl-si":
|
|
18822
|
-
"sv-se":
|
|
18823
|
-
},
|
|
18790
|
+
}, _a = {
|
|
18791
|
+
"bg-bg": Vt,
|
|
18792
|
+
"cs-cz": Wt,
|
|
18793
|
+
"da-dk": Jt,
|
|
18794
|
+
"de-at": Zt,
|
|
18795
|
+
"de-de": qt,
|
|
18796
|
+
"el-gr": _t,
|
|
18797
|
+
"el-cy": Yt,
|
|
18798
|
+
"en-gb": Qt,
|
|
18799
|
+
"en-us": Xt,
|
|
18800
|
+
"es-es": $t,
|
|
18801
|
+
"et-ee": er,
|
|
18802
|
+
"fi-fi": ar,
|
|
18803
|
+
"fr-fr": ir,
|
|
18804
|
+
"fr-lu": nr,
|
|
18805
|
+
"ga-ie": tr,
|
|
18806
|
+
"hr-hr": rr,
|
|
18807
|
+
"hu-hu": or,
|
|
18808
|
+
"it-it": sr,
|
|
18809
|
+
"lt-lt": lr,
|
|
18810
|
+
"lv-lv": dr,
|
|
18811
|
+
"mt-mt": ur,
|
|
18812
|
+
"nl-be": cr,
|
|
18813
|
+
"nl-nl": mr,
|
|
18814
|
+
"no-no": gr,
|
|
18815
|
+
"pl-pl": kr,
|
|
18816
|
+
"pt-pt": hr,
|
|
18817
|
+
"ro-ro": vr,
|
|
18818
|
+
"sk-sk": fr,
|
|
18819
|
+
"sl-si": pr,
|
|
18820
|
+
"sv-se": Ar
|
|
18821
|
+
}, Mn = (e, a) => {
|
|
18824
18822
|
const n = Z(a).prompt[e];
|
|
18825
18823
|
return n || (console.log(
|
|
18826
18824
|
'Missing prompt for key: "' + e + '" in locale: "' + a + '"'
|
|
18827
18825
|
), e);
|
|
18828
|
-
},
|
|
18826
|
+
}, br = (e, a) => {
|
|
18829
18827
|
const n = Z(a).subPrompt[e];
|
|
18830
18828
|
return n || (console.log(
|
|
18831
18829
|
'Missing subPrompt for key: "' + e + '" in locale: "' + a + '"'
|
|
18832
18830
|
), e);
|
|
18833
|
-
},
|
|
18831
|
+
}, Cr = (e, a) => {
|
|
18834
18832
|
const n = Z(a).error[e];
|
|
18835
18833
|
return n || (console.log(
|
|
18836
18834
|
'Missing error for key: "' + e + '" in locale: "' + a + '"'
|
|
18837
18835
|
), e);
|
|
18838
|
-
},
|
|
18836
|
+
}, Nr = (e, a) => {
|
|
18839
18837
|
const n = Z(a).hint[e];
|
|
18840
18838
|
return n || (console.log(
|
|
18841
18839
|
'Missing hint for key: "' + e + '" in locale: "' + a + '"'
|
|
18842
18840
|
), e);
|
|
18843
|
-
},
|
|
18841
|
+
}, ei = (e, a) => {
|
|
18844
18842
|
const n = Z(a).text[e];
|
|
18845
18843
|
return n || (console.log(
|
|
18846
18844
|
'Missing text for key: "' + e + '" in locale: "' + a + '"'
|
|
18847
18845
|
), e);
|
|
18848
|
-
},
|
|
18846
|
+
}, Sr = (e, a) => {
|
|
18849
18847
|
const n = Z(a).title[e];
|
|
18850
18848
|
return n || (console.log(
|
|
18851
18849
|
'Missing title for key: "' + e + '" in locale: "' + a + '"'
|
|
18852
18850
|
), e);
|
|
18853
|
-
},
|
|
18851
|
+
}, Ir = (e, a) => {
|
|
18854
18852
|
const n = Z(a).subTitle[e];
|
|
18855
18853
|
return n || (console.log(
|
|
18856
18854
|
'Missing subTitle for key: "' + e + '" in locale: "' + a + '"'
|
|
18857
18855
|
), e);
|
|
18858
|
-
},
|
|
18856
|
+
}, Tr = (e, a) => {
|
|
18859
18857
|
const n = Z(a).button[e];
|
|
18860
18858
|
return n || (console.log(
|
|
18861
18859
|
'Missing button for key: "' + e + '" in locale: "' + a + '"'
|
|
18862
18860
|
), e);
|
|
18863
|
-
},
|
|
18861
|
+
}, yn = (e, a) => {
|
|
18864
18862
|
if (!e)
|
|
18865
18863
|
return "";
|
|
18866
18864
|
const n = Z(a).option[e];
|
|
18867
18865
|
return n || (console.log(
|
|
18868
18866
|
'Missing option for key: "' + e + '" in locale: "' + a + '"'
|
|
18869
18867
|
), e);
|
|
18870
|
-
},
|
|
18868
|
+
}, Mr = (e, a) => {
|
|
18871
18869
|
if (!e)
|
|
18872
18870
|
return "";
|
|
18873
18871
|
const n = Z(a).notification[e];
|
|
18874
18872
|
return n || (console.log(
|
|
18875
18873
|
'Missing notification for key: "' + e + '" in locale: "' + a + '"'
|
|
18876
18874
|
), e);
|
|
18877
|
-
},
|
|
18875
|
+
}, yr = (e, a) => {
|
|
18878
18876
|
const n = Z(a).country[e];
|
|
18879
18877
|
return n || (console.log(
|
|
18880
18878
|
'Missing country for key: "' + e + '" in locale: "' + a + '"'
|
|
18881
18879
|
), e);
|
|
18882
|
-
},
|
|
18880
|
+
}, jr = (e, a) => {
|
|
18883
18881
|
const n = Z(a).usState[e];
|
|
18884
18882
|
return n || (console.log(
|
|
18885
18883
|
'Missing usState for key: "' + e + '" in locale: "' + a + '"'
|
|
18886
18884
|
), e);
|
|
18887
|
-
},
|
|
18885
|
+
}, Or = (e, a) => {
|
|
18888
18886
|
const n = Z(a).caProvince[e];
|
|
18889
18887
|
return n || (console.log(
|
|
18890
18888
|
'Missing caProvince for key: "' + e + '" in locale: "' + a + '"'
|
|
18891
18889
|
), e);
|
|
18892
|
-
},
|
|
18890
|
+
}, Br = (e, a) => {
|
|
18893
18891
|
const n = Z(a).month[e];
|
|
18894
18892
|
return n || (console.log(
|
|
18895
18893
|
'Missing month for key: "' + e + '" in locale: "' + a + '"'
|
|
18896
18894
|
), e);
|
|
18897
|
-
},
|
|
18895
|
+
}, zr = (e, a) => {
|
|
18898
18896
|
const n = Z(a).locale[e];
|
|
18899
18897
|
return n || (console.log(
|
|
18900
18898
|
'Missing locale for key: "' + e + '" in locale: "' + a + '"'
|
|
18901
18899
|
), e);
|
|
18902
|
-
}, Z = (e = "en-us") =>
|
|
18903
|
-
const e =
|
|
18900
|
+
}, Z = (e = "en-us") => _a[e] ? _a[e] : (console.log(`Locale '${e}' not found. Using en-us`), _a["en-us"]), Hn = () => {
|
|
18901
|
+
const e = Vn(void 0);
|
|
18904
18902
|
return [() => {
|
|
18905
|
-
const n =
|
|
18903
|
+
const n = Wn(e);
|
|
18906
18904
|
if (n === void 0)
|
|
18907
18905
|
throw new Error("useCtx must be inside a Provider with a value");
|
|
18908
18906
|
return n;
|
|
18909
18907
|
}, e.Provider];
|
|
18910
|
-
}, [X,
|
|
18908
|
+
}, [X, Er] = Hn(), Rr = ({
|
|
18911
18909
|
data: e,
|
|
18912
18910
|
language: a = "en-us",
|
|
18913
18911
|
onSubmit: n,
|
|
@@ -18915,7 +18913,7 @@ const Jt = {
|
|
|
18915
18913
|
taxForms: s = ["DAC7"]
|
|
18916
18914
|
}) => {
|
|
18917
18915
|
const [o, u] = U(a), [d, l] = U(s), [m, k] = U(
|
|
18918
|
-
|
|
18916
|
+
Sn(e, d)
|
|
18919
18917
|
), [v, b] = U([r]), [p, C] = U(
|
|
18920
18918
|
void 0
|
|
18921
18919
|
), { isW9: I, isW8: M, isW8Ben: G, isW8BenE: E, isDac7: _ } = da(
|
|
@@ -18931,10 +18929,10 @@ const Jt = {
|
|
|
18931
18929
|
regardedOwnerForeignTrustClassification: void 0,
|
|
18932
18930
|
regardedOwnerForeignOtherClassification: void 0
|
|
18933
18931
|
}, ue = (B) => {
|
|
18934
|
-
k(B), n(
|
|
18932
|
+
k(B), n(dt(B));
|
|
18935
18933
|
}, be = xa(
|
|
18936
18934
|
(B) => {
|
|
18937
|
-
k(
|
|
18935
|
+
k(Sn(B, d)), C(void 0), b([r]);
|
|
18938
18936
|
},
|
|
18939
18937
|
[d, r]
|
|
18940
18938
|
), Ce = (B) => {
|
|
@@ -18985,7 +18983,7 @@ const Jt = {
|
|
|
18985
18983
|
supportedForms: d,
|
|
18986
18984
|
setSupportedForms: l
|
|
18987
18985
|
};
|
|
18988
|
-
},
|
|
18986
|
+
}, Pr = ({
|
|
18989
18987
|
data: e = {},
|
|
18990
18988
|
onSubmit: a,
|
|
18991
18989
|
language: n,
|
|
@@ -18993,9 +18991,9 @@ const Jt = {
|
|
|
18993
18991
|
step: s,
|
|
18994
18992
|
children: o
|
|
18995
18993
|
}) => /* @__PURE__ */ i.jsx(
|
|
18996
|
-
|
|
18994
|
+
Er,
|
|
18997
18995
|
{
|
|
18998
|
-
value:
|
|
18996
|
+
value: Rr({
|
|
18999
18997
|
data: e,
|
|
19000
18998
|
onSubmit: a,
|
|
19001
18999
|
language: n,
|
|
@@ -19004,32 +19002,32 @@ const Jt = {
|
|
|
19004
19002
|
}),
|
|
19005
19003
|
children: o
|
|
19006
19004
|
}
|
|
19007
|
-
), [O,
|
|
19005
|
+
), [O, wr] = Hn(), Gr = (e, a) => Object.keys(e).reduce(
|
|
19008
19006
|
(n, r) => {
|
|
19009
19007
|
var s;
|
|
19010
19008
|
if (a.has(r)) {
|
|
19011
|
-
const o = (s =
|
|
19009
|
+
const o = (s = Qa[r]) == null ? void 0 : s.call(Qa, e);
|
|
19012
19010
|
o && (n[r] = o);
|
|
19013
19011
|
}
|
|
19014
19012
|
return n;
|
|
19015
19013
|
},
|
|
19016
19014
|
{}
|
|
19017
|
-
),
|
|
19015
|
+
), Qa = {
|
|
19018
19016
|
accountHolderVatIdentificationNumber: (e) => {
|
|
19019
19017
|
const a = e.accountHolderVatIdentificationNumber;
|
|
19020
19018
|
if (!z(a) && (a.length < 5 || a.length > 20))
|
|
19021
19019
|
return "vatUnexpectedFormat";
|
|
19022
19020
|
}
|
|
19023
|
-
},
|
|
19021
|
+
}, Lr = () => {
|
|
19024
19022
|
const {
|
|
19025
19023
|
language: e,
|
|
19026
19024
|
data: a,
|
|
19027
19025
|
supportedForms: n
|
|
19028
19026
|
} = X(), [r, s] = U(a), [o, u] = U(!1), [d, l] = U(/* @__PURE__ */ new Set()), m = J(
|
|
19029
|
-
() =>
|
|
19027
|
+
() => Ln(n),
|
|
19030
19028
|
[n]
|
|
19031
19029
|
), k = J(
|
|
19032
|
-
() =>
|
|
19030
|
+
() => Ft(r, m, n),
|
|
19033
19031
|
[r, m, n]
|
|
19034
19032
|
), v = J(
|
|
19035
19033
|
() => Object.fromEntries(
|
|
@@ -19037,16 +19035,16 @@ const Jt = {
|
|
|
19037
19035
|
),
|
|
19038
19036
|
[d]
|
|
19039
19037
|
), b = J(
|
|
19040
|
-
() =>
|
|
19038
|
+
() => Ht(r, v),
|
|
19041
19039
|
[r, v]
|
|
19042
19040
|
), p = J(
|
|
19043
|
-
() =>
|
|
19041
|
+
() => Lt(r, b, v),
|
|
19044
19042
|
[r, b, v]
|
|
19045
19043
|
), C = J(
|
|
19046
|
-
() =>
|
|
19044
|
+
() => Dt(r, k),
|
|
19047
19045
|
[r, k]
|
|
19048
19046
|
), I = J(
|
|
19049
|
-
() =>
|
|
19047
|
+
() => Gr(r, d),
|
|
19050
19048
|
[r, d]
|
|
19051
19049
|
);
|
|
19052
19050
|
Q(() => {
|
|
@@ -19067,7 +19065,7 @@ const Jt = {
|
|
|
19067
19065
|
}, E = () => {
|
|
19068
19066
|
u(!1);
|
|
19069
19067
|
}, _ = Object.keys(p).length === 0, L = (h) => {
|
|
19070
|
-
const w =
|
|
19068
|
+
const w = $n(r);
|
|
19071
19069
|
return w[h] ? w[h] : h;
|
|
19072
19070
|
}, ie = (h) => {
|
|
19073
19071
|
const w = {
|
|
@@ -19081,16 +19079,16 @@ const Jt = {
|
|
|
19081
19079
|
};
|
|
19082
19080
|
return w[h] ? w[h] : h;
|
|
19083
19081
|
}, ue = (h) => {
|
|
19084
|
-
const w =
|
|
19082
|
+
const w = _n();
|
|
19085
19083
|
return w[h] ? w[h] : h;
|
|
19086
|
-
}, be = (h) =>
|
|
19084
|
+
}, be = (h) => Nr(ue(h), e), Ce = (h) => ei(h, e), te = (h) => Sr(h, e), re = (h) => Ir(h, e), Ne = (h) => Cr(h, e), oe = (h) => zr(h, e), K = (h) => Tr(h, e), q = (h) => Mn(L(h), e), $ = (h) => Mr(h, e), B = (h) => Mn(L(h), e) + (b[h] ? "*" : ""), V = (h) => br(ie(h), e), ce = xa(
|
|
19087
19085
|
(h) => {
|
|
19088
19086
|
if (h)
|
|
19089
|
-
return
|
|
19087
|
+
return yn(h, e) ? yn(h, e) : h;
|
|
19090
19088
|
},
|
|
19091
19089
|
[e]
|
|
19092
19090
|
), se = xa(
|
|
19093
|
-
(h) => h ?
|
|
19091
|
+
(h) => h ? yr(h, e) : "",
|
|
19094
19092
|
[e]
|
|
19095
19093
|
);
|
|
19096
19094
|
return {
|
|
@@ -19102,7 +19100,7 @@ const Jt = {
|
|
|
19102
19100
|
exposeErrors: G,
|
|
19103
19101
|
hideErrors: E,
|
|
19104
19102
|
getLocalButton: K,
|
|
19105
|
-
getLocalCaProvince: (h) => h ?
|
|
19103
|
+
getLocalCaProvince: (h) => h ? Or(h, e) : "",
|
|
19106
19104
|
getLocalCountry: se,
|
|
19107
19105
|
getLocalError: Ne,
|
|
19108
19106
|
getLocalHint: be,
|
|
@@ -19117,8 +19115,8 @@ const Jt = {
|
|
|
19117
19115
|
getLocalText: Ce,
|
|
19118
19116
|
getLocalTitle: te,
|
|
19119
19117
|
getLocalSubTitle: re,
|
|
19120
|
-
getLocalUsState: (h) => h ?
|
|
19121
|
-
getLocalMonth: (h) => h ?
|
|
19118
|
+
getLocalUsState: (h) => h ? jr(h, e) : "",
|
|
19119
|
+
getLocalMonth: (h) => h ? Br(h, e) : "",
|
|
19122
19120
|
getRequiredLocalPrompt: B,
|
|
19123
19121
|
notifiedFields: I,
|
|
19124
19122
|
// (must be visible)
|
|
@@ -19137,7 +19135,7 @@ const Jt = {
|
|
|
19137
19135
|
d.has(h) || l((w) => /* @__PURE__ */ new Set([...w, h]));
|
|
19138
19136
|
}
|
|
19139
19137
|
};
|
|
19140
|
-
}, fe = ({ children: e }) => /* @__PURE__ */ i.jsx(
|
|
19138
|
+
}, fe = ({ children: e }) => /* @__PURE__ */ i.jsx(wr, { value: Lr(), children: e }), Fa = ({ address: e, className: a }) => {
|
|
19141
19139
|
const { getLocalCountry: n, getLocalUsState: r, getLocalCaProvince: s } = O(), o = e.country === "US" ? r(e.state) : e.country === "CA" ? s(e.state) : e.state;
|
|
19142
19140
|
return /* @__PURE__ */ i.jsxs("div", { className: de(a, "address"), children: [
|
|
19143
19141
|
/* @__PURE__ */ i.jsx("div", { children: e.street }),
|
|
@@ -19158,7 +19156,7 @@ const Jt = {
|
|
|
19158
19156
|
}, pe = ({ children: e, title: a, actions: n }) => /* @__PURE__ */ i.jsxs(
|
|
19159
19157
|
"form",
|
|
19160
19158
|
{
|
|
19161
|
-
className: de("taxbit-page", `taxbit-form-${
|
|
19159
|
+
className: de("taxbit-page", `taxbit-form-${zn(a)}`),
|
|
19162
19160
|
onSubmit: () => !1,
|
|
19163
19161
|
children: [
|
|
19164
19162
|
(a || n) && /* @__PURE__ */ i.jsxs("header", { className: "taxbit-page-header", children: [
|
|
@@ -19171,7 +19169,7 @@ const Jt = {
|
|
|
19171
19169
|
), Me = ({
|
|
19172
19170
|
children: e,
|
|
19173
19171
|
className: a
|
|
19174
|
-
}) => /* @__PURE__ */ i.jsx("div", { className: de(a, "taxbit-input-status"), children: e }),
|
|
19172
|
+
}) => /* @__PURE__ */ i.jsx("div", { className: de(a, "taxbit-input-status"), children: e }), Hr = ({ name: e }) => {
|
|
19175
19173
|
const { notifiedFields: a, getLocalNotification: n } = O(), r = a[e] ? n(a[e]) : "";
|
|
19176
19174
|
return r ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-notification", children: r }) : null;
|
|
19177
19175
|
}, Ie = ({
|
|
@@ -19189,7 +19187,7 @@ const Jt = {
|
|
|
19189
19187
|
{
|
|
19190
19188
|
className: de(
|
|
19191
19189
|
"taxbit-row",
|
|
19192
|
-
o && `taxbit-question-${
|
|
19190
|
+
o && `taxbit-question-${zn(o)}`,
|
|
19193
19191
|
o && l && d[o] && "taxbit-error",
|
|
19194
19192
|
u
|
|
19195
19193
|
),
|
|
@@ -19227,11 +19225,11 @@ const Jt = {
|
|
|
19227
19225
|
a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-section-sub-title", children: a })
|
|
19228
19226
|
] }),
|
|
19229
19227
|
r
|
|
19230
|
-
] }) : r, ze = [{ value: "yes" }, { value: "no" }],
|
|
19228
|
+
] }) : r, ze = [{ value: "yes" }, { value: "no" }], Dr = () => {
|
|
19231
19229
|
const { language: e, setLanguage: a } = X(), { getLocalLocale: n } = O(), r = (o) => {
|
|
19232
19230
|
const u = o.target.value;
|
|
19233
19231
|
a(u);
|
|
19234
|
-
}, s =
|
|
19232
|
+
}, s = St.map((o) => ({
|
|
19235
19233
|
...o,
|
|
19236
19234
|
label: n(o.value)
|
|
19237
19235
|
})).sort((o, u) => o.label.localeCompare(u.label));
|
|
@@ -19263,7 +19261,7 @@ const Jt = {
|
|
|
19263
19261
|
r && /* @__PURE__ */ i.jsx("button", { onClick: m, type: "button", children: d("submit") })
|
|
19264
19262
|
] })
|
|
19265
19263
|
] });
|
|
19266
|
-
},
|
|
19264
|
+
}, Fr = ({ label: e, subLabel: a, name: n, onClick: r }) => {
|
|
19267
19265
|
const { fields: s, setValue: o, getLocalPrompt: u, getLocalSubPrompt: d } = O(), l = (v) => {
|
|
19268
19266
|
r && r(v), o(n, v);
|
|
19269
19267
|
}, m = s[n], k = (v) => {
|
|
@@ -19289,17 +19287,17 @@ const Jt = {
|
|
|
19289
19287
|
] }),
|
|
19290
19288
|
/* @__PURE__ */ i.jsx(Ee, { name: n })
|
|
19291
19289
|
] });
|
|
19292
|
-
},
|
|
19293
|
-
const { fields: a, setValue: n, getLocalMonth: r } = O(), s = a[e] || "", o = s.split("/")[0] || "", u = s.split("/")[1] || "", d = s.split("/")[2] || "", l = o !== "" ?
|
|
19290
|
+
}, xr = (e) => {
|
|
19291
|
+
const { fields: a, setValue: n, getLocalMonth: r } = O(), s = a[e] || "", o = s.split("/")[0] || "", u = s.split("/")[1] || "", d = s.split("/")[2] || "", l = o !== "" ? hn(
|
|
19294
19292
|
parseInt(o),
|
|
19295
19293
|
d !== "" ? parseInt(d) : void 0
|
|
19296
|
-
) :
|
|
19294
|
+
) : vn.length, m = Tt.map((C) => ({
|
|
19297
19295
|
...C,
|
|
19298
19296
|
label: r(C.value)
|
|
19299
19297
|
})), k = (C, I, M) => {
|
|
19300
19298
|
if (!I)
|
|
19301
19299
|
return !0;
|
|
19302
|
-
const G =
|
|
19300
|
+
const G = hn(
|
|
19303
19301
|
parseInt(I),
|
|
19304
19302
|
ae(M) ? parseInt(M) : void 0
|
|
19305
19303
|
);
|
|
@@ -19327,11 +19325,11 @@ const Jt = {
|
|
|
19327
19325
|
`${o || ""}/${k(u, o, I) ? u : ""}/${I}`
|
|
19328
19326
|
);
|
|
19329
19327
|
},
|
|
19330
|
-
dayOptions:
|
|
19331
|
-
birthYearOptions:
|
|
19328
|
+
dayOptions: vn.slice(0, l),
|
|
19329
|
+
birthYearOptions: wt,
|
|
19332
19330
|
monthOptions: m
|
|
19333
19331
|
};
|
|
19334
|
-
},
|
|
19332
|
+
}, Ur = ({
|
|
19335
19333
|
name: e,
|
|
19336
19334
|
className: a,
|
|
19337
19335
|
hint: n
|
|
@@ -19346,7 +19344,7 @@ const Jt = {
|
|
|
19346
19344
|
dayOptions: k,
|
|
19347
19345
|
monthOptions: v,
|
|
19348
19346
|
birthYearOptions: b
|
|
19349
|
-
} =
|
|
19347
|
+
} = xr(e);
|
|
19350
19348
|
return /* @__PURE__ */ i.jsxs(Me, { className: a, children: [
|
|
19351
19349
|
/* @__PURE__ */ i.jsxs("div", { className: "taxbit-row-value", children: [
|
|
19352
19350
|
/* @__PURE__ */ i.jsxs(
|
|
@@ -19400,7 +19398,7 @@ const Jt = {
|
|
|
19400
19398
|
] }),
|
|
19401
19399
|
/* @__PURE__ */ i.jsx(Ee, { name: e, hint: n })
|
|
19402
19400
|
] });
|
|
19403
|
-
},
|
|
19401
|
+
}, Kr = ({ name: e, options: a }) => {
|
|
19404
19402
|
const { fields: n, setValue: r, hideErrors: s, getLocalOption: o } = O(), u = (m) => {
|
|
19405
19403
|
r(e, m), s();
|
|
19406
19404
|
}, d = n[e], l = (m) => {
|
|
@@ -19433,7 +19431,7 @@ const Jt = {
|
|
|
19433
19431
|
)) }),
|
|
19434
19432
|
/* @__PURE__ */ i.jsx(Ee, { name: e })
|
|
19435
19433
|
] });
|
|
19436
|
-
},
|
|
19434
|
+
}, Dn = ({
|
|
19437
19435
|
name: e,
|
|
19438
19436
|
options: a,
|
|
19439
19437
|
addBlank: n = !0,
|
|
@@ -19459,7 +19457,7 @@ const Jt = {
|
|
|
19459
19457
|
),
|
|
19460
19458
|
/* @__PURE__ */ i.jsx(Ee, { name: e })
|
|
19461
19459
|
] });
|
|
19462
|
-
},
|
|
19460
|
+
}, Fn = ({
|
|
19463
19461
|
name: e,
|
|
19464
19462
|
className: a,
|
|
19465
19463
|
onChange: n,
|
|
@@ -19487,7 +19485,7 @@ const Jt = {
|
|
|
19487
19485
|
/* @__PURE__ */ i.jsx(Ee, { name: e, hint: r }),
|
|
19488
19486
|
s ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-input-status-footer", children: s }) : null
|
|
19489
19487
|
] });
|
|
19490
|
-
},
|
|
19488
|
+
}, Vr = ({ name: e }) => {
|
|
19491
19489
|
const { fields: a, setValue: n, getLocalPrompt: r } = O(), s = a[e], o = () => {
|
|
19492
19490
|
n(e, s === void 0 ? "yes" : void 0);
|
|
19493
19491
|
};
|
|
@@ -19505,7 +19503,7 @@ const Jt = {
|
|
|
19505
19503
|
) }),
|
|
19506
19504
|
/* @__PURE__ */ i.jsx(Ee, { name: e })
|
|
19507
19505
|
] });
|
|
19508
|
-
},
|
|
19506
|
+
}, Wr = ({ onClick: e }) => {
|
|
19509
19507
|
const { getLocalButton: a } = O(), [n, r] = U(!0), s = "hideShowButton", o = () => {
|
|
19510
19508
|
r((u) => !u), e();
|
|
19511
19509
|
};
|
|
@@ -19529,7 +19527,7 @@ const Jt = {
|
|
|
19529
19527
|
)
|
|
19530
19528
|
}
|
|
19531
19529
|
) });
|
|
19532
|
-
},
|
|
19530
|
+
}, Jr = ({
|
|
19533
19531
|
value: e = "",
|
|
19534
19532
|
mask: a = "•",
|
|
19535
19533
|
onChange: n,
|
|
@@ -19538,10 +19536,10 @@ const Jt = {
|
|
|
19538
19536
|
}) => {
|
|
19539
19537
|
const [o, u] = U(e), [d, l] = U(
|
|
19540
19538
|
Array(e.length + 1).join(a)
|
|
19541
|
-
), m =
|
|
19539
|
+
), m = kn(), [k, v] = U([
|
|
19542
19540
|
0,
|
|
19543
19541
|
0
|
|
19544
|
-
]), b =
|
|
19542
|
+
]), b = kn(null);
|
|
19545
19543
|
Q(() => {
|
|
19546
19544
|
e !== o && (u(e), l(Array(e.length + 1).join(a)));
|
|
19547
19545
|
}, [e, a, o]);
|
|
@@ -19576,7 +19574,7 @@ const Jt = {
|
|
|
19576
19574
|
onChange: p
|
|
19577
19575
|
}
|
|
19578
19576
|
);
|
|
19579
|
-
},
|
|
19577
|
+
}, Zr = ({
|
|
19580
19578
|
name: e,
|
|
19581
19579
|
className: a,
|
|
19582
19580
|
onChange: n,
|
|
@@ -19590,7 +19588,7 @@ const Jt = {
|
|
|
19590
19588
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
19591
19589
|
/* @__PURE__ */ i.jsxs(Me, { className: a, children: [
|
|
19592
19590
|
/* @__PURE__ */ i.jsx(
|
|
19593
|
-
|
|
19591
|
+
Jr,
|
|
19594
19592
|
{
|
|
19595
19593
|
value: m,
|
|
19596
19594
|
onChange: k,
|
|
@@ -19602,7 +19600,7 @@ const Jt = {
|
|
|
19602
19600
|
/* @__PURE__ */ i.jsx(Ee, { name: e, hint: r }),
|
|
19603
19601
|
s ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-input-status-footer", children: s }) : null
|
|
19604
19602
|
] }),
|
|
19605
|
-
/* @__PURE__ */ i.jsx(
|
|
19603
|
+
/* @__PURE__ */ i.jsx(Wr, { onClick: () => l((v) => !v) })
|
|
19606
19604
|
] });
|
|
19607
19605
|
}, f = ({
|
|
19608
19606
|
label: e,
|
|
@@ -19630,7 +19628,7 @@ const Jt = {
|
|
|
19630
19628
|
onEdit: s,
|
|
19631
19629
|
children: [
|
|
19632
19630
|
r,
|
|
19633
|
-
o ? /* @__PURE__ */ i.jsx(
|
|
19631
|
+
o ? /* @__PURE__ */ i.jsx(Hr, { name: n }) : null
|
|
19634
19632
|
]
|
|
19635
19633
|
}
|
|
19636
19634
|
) : null;
|
|
@@ -19640,14 +19638,14 @@ const Jt = {
|
|
|
19640
19638
|
subLabel: n,
|
|
19641
19639
|
onClick: r
|
|
19642
19640
|
}) => /* @__PURE__ */ i.jsx(f, { name: e, children: /* @__PURE__ */ i.jsx(
|
|
19643
|
-
|
|
19641
|
+
Fr,
|
|
19644
19642
|
{
|
|
19645
19643
|
label: a,
|
|
19646
19644
|
subLabel: n,
|
|
19647
19645
|
name: e,
|
|
19648
19646
|
onClick: r
|
|
19649
19647
|
}
|
|
19650
|
-
) }),
|
|
19648
|
+
) }), xn = ({
|
|
19651
19649
|
label: e,
|
|
19652
19650
|
name: a
|
|
19653
19651
|
}) => {
|
|
@@ -19662,12 +19660,12 @@ const Jt = {
|
|
|
19662
19660
|
hint: n,
|
|
19663
19661
|
subLabel: r,
|
|
19664
19662
|
onChange: s
|
|
19665
|
-
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
|
|
19663
|
+
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(Zr, { name: e, onChange: s, hint: n }) }), x = ({
|
|
19666
19664
|
name: e,
|
|
19667
19665
|
label: a,
|
|
19668
19666
|
subLabel: n,
|
|
19669
19667
|
options: r
|
|
19670
|
-
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(
|
|
19668
|
+
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(Kr, { name: e, options: r }) }), Te = ({
|
|
19671
19669
|
name: e,
|
|
19672
19670
|
label: a,
|
|
19673
19671
|
options: n,
|
|
@@ -19675,7 +19673,7 @@ const Jt = {
|
|
|
19675
19673
|
addBlank: s,
|
|
19676
19674
|
onChange: o
|
|
19677
19675
|
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
|
|
19678
|
-
|
|
19676
|
+
Dn,
|
|
19679
19677
|
{
|
|
19680
19678
|
name: e,
|
|
19681
19679
|
options: n,
|
|
@@ -19691,7 +19689,7 @@ const Jt = {
|
|
|
19691
19689
|
disabled: o,
|
|
19692
19690
|
syncName: u
|
|
19693
19691
|
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
|
|
19694
|
-
|
|
19692
|
+
Fn,
|
|
19695
19693
|
{
|
|
19696
19694
|
name: e,
|
|
19697
19695
|
onChange: s,
|
|
@@ -19699,13 +19697,13 @@ const Jt = {
|
|
|
19699
19697
|
disabled: o,
|
|
19700
19698
|
syncName: u
|
|
19701
19699
|
}
|
|
19702
|
-
) }),
|
|
19700
|
+
) }), qr = () => {
|
|
19703
19701
|
const { fields: e, getLocalTitle: a } = O(), { onPersistAccountHolderData: n, onCancel: r } = X();
|
|
19704
19702
|
return /* @__PURE__ */ i.jsxs(
|
|
19705
19703
|
pe,
|
|
19706
19704
|
{
|
|
19707
19705
|
title: a("accountHolderClassification"),
|
|
19708
|
-
actions: /* @__PURE__ */ i.jsx(
|
|
19706
|
+
actions: /* @__PURE__ */ i.jsx(Dr, {}),
|
|
19709
19707
|
children: [
|
|
19710
19708
|
/* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
|
|
19711
19709
|
/* @__PURE__ */ i.jsx(
|
|
@@ -19737,7 +19735,7 @@ const Jt = {
|
|
|
19737
19735
|
x,
|
|
19738
19736
|
{
|
|
19739
19737
|
name: "accountHolderUsAccountType",
|
|
19740
|
-
options:
|
|
19738
|
+
options: Rn,
|
|
19741
19739
|
label: !0
|
|
19742
19740
|
}
|
|
19743
19741
|
),
|
|
@@ -19754,7 +19752,7 @@ const Jt = {
|
|
|
19754
19752
|
x,
|
|
19755
19753
|
{
|
|
19756
19754
|
name: "accountHolderUsLlcClassification",
|
|
19757
|
-
options:
|
|
19755
|
+
options: ni,
|
|
19758
19756
|
label: !0
|
|
19759
19757
|
}
|
|
19760
19758
|
),
|
|
@@ -19771,7 +19769,7 @@ const Jt = {
|
|
|
19771
19769
|
x,
|
|
19772
19770
|
{
|
|
19773
19771
|
name: "accountHolderForeignAccountType",
|
|
19774
|
-
options:
|
|
19772
|
+
options: En,
|
|
19775
19773
|
label: !0
|
|
19776
19774
|
}
|
|
19777
19775
|
),
|
|
@@ -19779,7 +19777,7 @@ const Jt = {
|
|
|
19779
19777
|
x,
|
|
19780
19778
|
{
|
|
19781
19779
|
name: "accountHolderForeignOtherClassification",
|
|
19782
|
-
options:
|
|
19780
|
+
options: ai,
|
|
19783
19781
|
label: !0
|
|
19784
19782
|
}
|
|
19785
19783
|
),
|
|
@@ -19787,7 +19785,7 @@ const Jt = {
|
|
|
19787
19785
|
x,
|
|
19788
19786
|
{
|
|
19789
19787
|
name: "accountHolderForeignTrustClassification",
|
|
19790
|
-
options:
|
|
19788
|
+
options: ii,
|
|
19791
19789
|
label: !0
|
|
19792
19790
|
}
|
|
19793
19791
|
)
|
|
@@ -19802,7 +19800,7 @@ const Jt = {
|
|
|
19802
19800
|
]
|
|
19803
19801
|
}
|
|
19804
19802
|
);
|
|
19805
|
-
},
|
|
19803
|
+
}, Yr = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(qr, {}) }), Ua = ({
|
|
19806
19804
|
prompt: e,
|
|
19807
19805
|
prefix: a,
|
|
19808
19806
|
showIf: n = !0
|
|
@@ -19821,13 +19819,13 @@ const Jt = {
|
|
|
19821
19819
|
})).sort((p, C) => p.label.localeCompare(C.label)),
|
|
19822
19820
|
[o]
|
|
19823
19821
|
), v = J(
|
|
19824
|
-
() =>
|
|
19822
|
+
() => Et.map((p) => ({
|
|
19825
19823
|
...p,
|
|
19826
19824
|
label: d(p.value)
|
|
19827
19825
|
})).sort((p, C) => p.label.localeCompare(C.label)),
|
|
19828
19826
|
[d]
|
|
19829
19827
|
), b = J(
|
|
19830
|
-
() =>
|
|
19828
|
+
() => ct.map((p) => ({
|
|
19831
19829
|
...p,
|
|
19832
19830
|
label: u(p.value)
|
|
19833
19831
|
})).sort((p, C) => p.label.localeCompare(C.label)),
|
|
@@ -19859,11 +19857,11 @@ const Jt = {
|
|
|
19859
19857
|
),
|
|
19860
19858
|
/* @__PURE__ */ i.jsx(Y, { name: `${a}Zip`, label: !0 })
|
|
19861
19859
|
] }) : null;
|
|
19862
|
-
},
|
|
19860
|
+
}, _r = ({
|
|
19863
19861
|
name: e,
|
|
19864
19862
|
label: a,
|
|
19865
19863
|
subLabel: n
|
|
19866
|
-
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(
|
|
19864
|
+
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(Ur, { name: e }) }), Qr = () => {
|
|
19867
19865
|
const { onPersistCollectedData: e, goBack: a, onCancel: n, isW9: r, isW8: s } = X(), { fields: o, getLocalCountry: u, getLocalTitle: d } = O(), l = J(
|
|
19868
19866
|
() => ua.map((m) => ({
|
|
19869
19867
|
...m,
|
|
@@ -19890,9 +19888,9 @@ const Jt = {
|
|
|
19890
19888
|
}
|
|
19891
19889
|
),
|
|
19892
19890
|
/* @__PURE__ */ i.jsx(Y, { label: !0, name: "accountHolderDbaName" }),
|
|
19893
|
-
/* @__PURE__ */ i.jsx(
|
|
19891
|
+
/* @__PURE__ */ i.jsx(_r, { name: "accountHolderDateOfBirth", label: !0 }),
|
|
19894
19892
|
/* @__PURE__ */ i.jsx(
|
|
19895
|
-
|
|
19893
|
+
Ua,
|
|
19896
19894
|
{
|
|
19897
19895
|
prompt: d("primaryAddress"),
|
|
19898
19896
|
prefix: "accountHolderAddress",
|
|
@@ -19901,7 +19899,7 @@ const Jt = {
|
|
|
19901
19899
|
),
|
|
19902
19900
|
/* @__PURE__ */ i.jsx(F, { name: "accountHolderMailingAddressIsDifferent", label: !0 }),
|
|
19903
19901
|
/* @__PURE__ */ i.jsx(
|
|
19904
|
-
|
|
19902
|
+
Ua,
|
|
19905
19903
|
{
|
|
19906
19904
|
prompt: d("mailingAddress"),
|
|
19907
19905
|
prefix: "accountHolderMailingAddress",
|
|
@@ -19918,7 +19916,7 @@ const Jt = {
|
|
|
19918
19916
|
}
|
|
19919
19917
|
)
|
|
19920
19918
|
] });
|
|
19921
|
-
},
|
|
19919
|
+
}, Xr = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(Qr, {}) }), sa = ({
|
|
19922
19920
|
index: e,
|
|
19923
19921
|
showIf: a = !0,
|
|
19924
19922
|
more: n,
|
|
@@ -19955,13 +19953,13 @@ const Jt = {
|
|
|
19955
19953
|
),
|
|
19956
19954
|
/* @__PURE__ */ i.jsx(Ke, { name: m, label: !0 }),
|
|
19957
19955
|
/* @__PURE__ */ i.jsx(F, { label: !0, name: k }),
|
|
19958
|
-
n ? /* @__PURE__ */ i.jsx(Ie, { children: /* @__PURE__ */ i.jsx(
|
|
19956
|
+
n ? /* @__PURE__ */ i.jsx(Ie, { children: /* @__PURE__ */ i.jsx(Vr, { name: v }) }) : null
|
|
19959
19957
|
]
|
|
19960
19958
|
}
|
|
19961
19959
|
) : null;
|
|
19962
|
-
},
|
|
19960
|
+
}, $r = () => {
|
|
19963
19961
|
const { onPersistCollectedData: e, goBack: a, onCancel: n } = X(), { fields: r, getLocalTitle: s, getLocalCountry: o } = O(), u = J(
|
|
19964
|
-
() =>
|
|
19962
|
+
() => kt.map((l) => ({
|
|
19965
19963
|
...l,
|
|
19966
19964
|
label: o(l.value)
|
|
19967
19965
|
})).sort((l, m) => l.label.localeCompare(m.label)),
|
|
@@ -20014,7 +20012,7 @@ const Jt = {
|
|
|
20014
20012
|
)
|
|
20015
20013
|
] }),
|
|
20016
20014
|
/* @__PURE__ */ i.jsx(
|
|
20017
|
-
|
|
20015
|
+
xn,
|
|
20018
20016
|
{
|
|
20019
20017
|
label: o(r.accountHolderAddressCountry),
|
|
20020
20018
|
name: "accountHolderCountryIsResidence"
|
|
@@ -20074,16 +20072,16 @@ const Jt = {
|
|
|
20074
20072
|
}
|
|
20075
20073
|
)
|
|
20076
20074
|
] });
|
|
20077
|
-
},
|
|
20075
|
+
}, eo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx($r, {}) }), ao = () => {
|
|
20078
20076
|
const { onPersistCollectedData: e, goBack: a } = X(), { fields: n } = O();
|
|
20079
20077
|
return /* @__PURE__ */ i.jsxs(pe, { title: "exemptions", children: [
|
|
20080
20078
|
/* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
|
|
20081
|
-
/* @__PURE__ */ i.jsx(Te, { name: "exemptFatcaCode", options:
|
|
20082
|
-
/* @__PURE__ */ i.jsx(Te, { name: "exemptPayeeCode", options:
|
|
20079
|
+
/* @__PURE__ */ i.jsx(Te, { name: "exemptFatcaCode", options: ft, label: !0 }),
|
|
20080
|
+
/* @__PURE__ */ i.jsx(Te, { name: "exemptPayeeCode", options: yt, label: !0 })
|
|
20083
20081
|
] }),
|
|
20084
20082
|
/* @__PURE__ */ i.jsx(Ae, { onBack: a, onNext: () => e(n) })
|
|
20085
20083
|
] });
|
|
20086
|
-
},
|
|
20084
|
+
}, io = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(ao, {}) }), no = () => {
|
|
20087
20085
|
const { fields: e, getLocalTitle: a, getLocalOption: n } = O(), { onPersistCollectedData: r, goBack: s } = X(), o = ze.map((u) => ({
|
|
20088
20086
|
...u,
|
|
20089
20087
|
label: n(`usPerson_${u.value}`)
|
|
@@ -20102,7 +20100,7 @@ const Jt = {
|
|
|
20102
20100
|
x,
|
|
20103
20101
|
{
|
|
20104
20102
|
name: "regardedOwnerUsAccountType",
|
|
20105
|
-
options:
|
|
20103
|
+
options: Bt,
|
|
20106
20104
|
label: !0
|
|
20107
20105
|
}
|
|
20108
20106
|
),
|
|
@@ -20110,7 +20108,7 @@ const Jt = {
|
|
|
20110
20108
|
x,
|
|
20111
20109
|
{
|
|
20112
20110
|
name: "regardedOwnerForeignAccountType",
|
|
20113
|
-
options:
|
|
20111
|
+
options: bt,
|
|
20114
20112
|
label: !0
|
|
20115
20113
|
}
|
|
20116
20114
|
),
|
|
@@ -20118,7 +20116,7 @@ const Jt = {
|
|
|
20118
20116
|
x,
|
|
20119
20117
|
{
|
|
20120
20118
|
name: "regardedOwnerUsLlcClassification",
|
|
20121
|
-
options:
|
|
20119
|
+
options: ni,
|
|
20122
20120
|
label: !0
|
|
20123
20121
|
}
|
|
20124
20122
|
),
|
|
@@ -20135,7 +20133,7 @@ const Jt = {
|
|
|
20135
20133
|
x,
|
|
20136
20134
|
{
|
|
20137
20135
|
name: "regardedOwnerForeignOtherClassification",
|
|
20138
|
-
options:
|
|
20136
|
+
options: ai,
|
|
20139
20137
|
label: !0
|
|
20140
20138
|
}
|
|
20141
20139
|
),
|
|
@@ -20143,14 +20141,14 @@ const Jt = {
|
|
|
20143
20141
|
x,
|
|
20144
20142
|
{
|
|
20145
20143
|
name: "regardedOwnerForeignTrustClassification",
|
|
20146
|
-
options:
|
|
20144
|
+
options: ii,
|
|
20147
20145
|
label: !0
|
|
20148
20146
|
}
|
|
20149
20147
|
)
|
|
20150
20148
|
] }),
|
|
20151
20149
|
/* @__PURE__ */ i.jsx(Ae, { onBack: s, onNext: () => r(e) })
|
|
20152
20150
|
] });
|
|
20153
|
-
},
|
|
20151
|
+
}, to = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(no, {}) }), ro = () => {
|
|
20154
20152
|
const { onPersistCollectedData: e, goBack: a, onCancel: n } = X(), { fields: r, getLocalCountry: s, getLocalTitle: o } = O(), u = J(
|
|
20155
20153
|
() => ua.map((d) => ({
|
|
20156
20154
|
...d,
|
|
@@ -20171,7 +20169,7 @@ const Jt = {
|
|
|
20171
20169
|
/* @__PURE__ */ i.jsx(Y, { label: !0, name: "regardedOwnerName" }),
|
|
20172
20170
|
/* @__PURE__ */ i.jsx(Y, { label: !0, name: "regardedOwnerDbaName" }),
|
|
20173
20171
|
/* @__PURE__ */ i.jsx(
|
|
20174
|
-
|
|
20172
|
+
Ua,
|
|
20175
20173
|
{
|
|
20176
20174
|
prompt: "Permanent Address",
|
|
20177
20175
|
prefix: "regardedOwnerAddress"
|
|
@@ -20179,7 +20177,7 @@ const Jt = {
|
|
|
20179
20177
|
),
|
|
20180
20178
|
/* @__PURE__ */ i.jsx(F, { name: "regardedOwnerMailingAddressIsDifferent", label: !0 }),
|
|
20181
20179
|
/* @__PURE__ */ i.jsx(
|
|
20182
|
-
|
|
20180
|
+
Ua,
|
|
20183
20181
|
{
|
|
20184
20182
|
prompt: "Mailing Address",
|
|
20185
20183
|
prefix: "regardedOwnerMailingAddress",
|
|
@@ -20196,7 +20194,7 @@ const Jt = {
|
|
|
20196
20194
|
}
|
|
20197
20195
|
)
|
|
20198
20196
|
] });
|
|
20199
|
-
},
|
|
20197
|
+
}, oo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(ro, {}) }), so = () => {
|
|
20200
20198
|
const { onPersistCollectedData: e, goBack: a } = X(), { fields: n, getLocalTitle: r } = O();
|
|
20201
20199
|
return /* @__PURE__ */ i.jsxs(pe, { title: r("regardedOwnerTaxInformation"), children: [
|
|
20202
20200
|
/* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
|
|
@@ -20206,7 +20204,7 @@ const Jt = {
|
|
|
20206
20204
|
] }),
|
|
20207
20205
|
/* @__PURE__ */ i.jsx(Ae, { onBack: a, onNext: () => e(n) })
|
|
20208
20206
|
] });
|
|
20209
|
-
},
|
|
20207
|
+
}, lo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(so, {}) }), ne = ({ text: e }) => {
|
|
20210
20208
|
const n = ((r) => {
|
|
20211
20209
|
if (!r)
|
|
20212
20210
|
return "";
|
|
@@ -20214,7 +20212,7 @@ const Jt = {
|
|
|
20214
20212
|
return "*".repeat(s) + r.substring(s);
|
|
20215
20213
|
})(e);
|
|
20216
20214
|
return /* @__PURE__ */ i.jsx("span", { children: n });
|
|
20217
|
-
},
|
|
20215
|
+
}, uo = () => {
|
|
20218
20216
|
const { data: e, editTo: a, isW9: n, isW8: r } = X(), {
|
|
20219
20217
|
getLocalTitle: s,
|
|
20220
20218
|
getLocalOption: o,
|
|
@@ -20484,7 +20482,7 @@ const Jt = {
|
|
|
20484
20482
|
}
|
|
20485
20483
|
),
|
|
20486
20484
|
/* @__PURE__ */ i.jsx(
|
|
20487
|
-
|
|
20485
|
+
xn,
|
|
20488
20486
|
{
|
|
20489
20487
|
label: u(e.accountHolderAddressCountry),
|
|
20490
20488
|
name: "accountHolderCountryIsResidence"
|
|
@@ -20744,11 +20742,11 @@ const Jt = {
|
|
|
20744
20742
|
}
|
|
20745
20743
|
)
|
|
20746
20744
|
] });
|
|
20747
|
-
},
|
|
20745
|
+
}, co = () => {
|
|
20748
20746
|
const { goBack: e, onSubmitTaxDocumentation: a, isW8: n, isW9: r } = X(), { getLocalTitle: s, submittableFields: o } = O();
|
|
20749
20747
|
return /* @__PURE__ */ i.jsxs(pe, { title: s("summary"), children: [
|
|
20750
20748
|
/* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
|
|
20751
|
-
/* @__PURE__ */ i.jsx(
|
|
20749
|
+
/* @__PURE__ */ i.jsx(uo, {}),
|
|
20752
20750
|
/* @__PURE__ */ i.jsxs(he, { title: "Certify", showIf: r || n, children: [
|
|
20753
20751
|
/* @__PURE__ */ i.jsx(F, { name: "iCertifyToAll", label: !0 }),
|
|
20754
20752
|
/* @__PURE__ */ i.jsx(F, { name: "iConfirmTheTaxIdIsCorrect", label: !0 }),
|
|
@@ -20775,7 +20773,7 @@ const Jt = {
|
|
|
20775
20773
|
}
|
|
20776
20774
|
)
|
|
20777
20775
|
] });
|
|
20778
|
-
},
|
|
20776
|
+
}, mo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(co, {}) }), go = () => {
|
|
20779
20777
|
const {
|
|
20780
20778
|
getLocalCountry: e,
|
|
20781
20779
|
getRequiredLocalPrompt: a,
|
|
@@ -20794,9 +20792,9 @@ const Jt = {
|
|
|
20794
20792
|
title: n("placeOfBirth"),
|
|
20795
20793
|
subTitle: r("accountHolderCityOfBirth"),
|
|
20796
20794
|
children: [
|
|
20797
|
-
/* @__PURE__ */ i.jsx(Ie, { label: a("accountHolderCityOfBirth"), children: /* @__PURE__ */ i.jsx(
|
|
20795
|
+
/* @__PURE__ */ i.jsx(Ie, { label: a("accountHolderCityOfBirth"), children: /* @__PURE__ */ i.jsx(Fn, { name: "accountHolderCityOfBirth" }) }),
|
|
20798
20796
|
/* @__PURE__ */ i.jsx(Ie, { label: a("accountHolderCountryOfBirth"), children: /* @__PURE__ */ i.jsx(
|
|
20799
|
-
|
|
20797
|
+
Dn,
|
|
20800
20798
|
{
|
|
20801
20799
|
name: "accountHolderCountryOfBirth",
|
|
20802
20800
|
options: s
|
|
@@ -20805,10 +20803,10 @@ const Jt = {
|
|
|
20805
20803
|
]
|
|
20806
20804
|
}
|
|
20807
20805
|
);
|
|
20808
|
-
},
|
|
20806
|
+
}, ko = () => {
|
|
20809
20807
|
const { onPersistCollectedData: e, goBack: a, onCancel: n } = X(), { fields: r, getLocalTitle: s } = O();
|
|
20810
20808
|
return /* @__PURE__ */ i.jsxs(pe, { title: s("accountHolderTaxInformation"), children: [
|
|
20811
|
-
/* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(
|
|
20809
|
+
/* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(go, {}) }),
|
|
20812
20810
|
/* @__PURE__ */ i.jsx(
|
|
20813
20811
|
Ae,
|
|
20814
20812
|
{
|
|
@@ -20818,14 +20816,14 @@ const Jt = {
|
|
|
20818
20816
|
}
|
|
20819
20817
|
)
|
|
20820
20818
|
] });
|
|
20821
|
-
},
|
|
20819
|
+
}, ho = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(ko, {}) }), Un = ({
|
|
20822
20820
|
data: e,
|
|
20823
20821
|
onSubmit: a,
|
|
20824
20822
|
language: n,
|
|
20825
20823
|
taxForms: r,
|
|
20826
20824
|
complete: s
|
|
20827
20825
|
}) => /* @__PURE__ */ i.jsx(
|
|
20828
|
-
|
|
20826
|
+
Pr,
|
|
20829
20827
|
{
|
|
20830
20828
|
data: e,
|
|
20831
20829
|
onSubmit: a,
|
|
@@ -20833,7 +20831,7 @@ const Jt = {
|
|
|
20833
20831
|
taxForms: r,
|
|
20834
20832
|
step: s ? "Summary" : void 0,
|
|
20835
20833
|
children: /* @__PURE__ */ i.jsx(
|
|
20836
|
-
|
|
20834
|
+
fo,
|
|
20837
20835
|
{
|
|
20838
20836
|
language: n,
|
|
20839
20837
|
taxForms: r,
|
|
@@ -20841,9 +20839,9 @@ const Jt = {
|
|
|
20841
20839
|
}
|
|
20842
20840
|
)
|
|
20843
20841
|
}
|
|
20844
|
-
),
|
|
20842
|
+
), vo = ["DAC7", "W-9", "W-8BEN", "W-8BEN-E"], fo = ({
|
|
20845
20843
|
language: e = "en-us",
|
|
20846
|
-
taxForms: a =
|
|
20844
|
+
taxForms: a = vo,
|
|
20847
20845
|
data: n
|
|
20848
20846
|
}) => {
|
|
20849
20847
|
const { stepName: r, setLanguage: s, setSupportedForms: o, onResetTaxDocumentation: u } = X();
|
|
@@ -20855,24 +20853,24 @@ const Jt = {
|
|
|
20855
20853
|
n && u(n);
|
|
20856
20854
|
}, [n, u]);
|
|
20857
20855
|
const l = {
|
|
20858
|
-
AccountHolderClassification:
|
|
20859
|
-
AccountHolderContact:
|
|
20860
|
-
AccountHolderTax:
|
|
20861
|
-
AccountHolderTaxClarification:
|
|
20862
|
-
Exemptions:
|
|
20863
|
-
RegardedOwnerClassification:
|
|
20864
|
-
RegardedOwnerContact:
|
|
20865
|
-
RegardedOwnerTax:
|
|
20866
|
-
Summary:
|
|
20856
|
+
AccountHolderClassification: Yr,
|
|
20857
|
+
AccountHolderContact: Xr,
|
|
20858
|
+
AccountHolderTax: eo,
|
|
20859
|
+
AccountHolderTaxClarification: ho,
|
|
20860
|
+
Exemptions: io,
|
|
20861
|
+
RegardedOwnerClassification: to,
|
|
20862
|
+
RegardedOwnerContact: oo,
|
|
20863
|
+
RegardedOwnerTax: lo,
|
|
20864
|
+
Summary: mo
|
|
20867
20865
|
}[r];
|
|
20868
20866
|
return /* @__PURE__ */ i.jsx(l, {});
|
|
20869
|
-
},
|
|
20867
|
+
}, bo = ({
|
|
20870
20868
|
data: e,
|
|
20871
20869
|
onSubmit: a,
|
|
20872
20870
|
language: n,
|
|
20873
20871
|
complete: r
|
|
20874
20872
|
}) => /* @__PURE__ */ i.jsx(
|
|
20875
|
-
|
|
20873
|
+
Un,
|
|
20876
20874
|
{
|
|
20877
20875
|
data: e,
|
|
20878
20876
|
language: n,
|
|
@@ -20880,7 +20878,7 @@ const Jt = {
|
|
|
20880
20878
|
complete: r,
|
|
20881
20879
|
taxForms: ["DAC7"]
|
|
20882
20880
|
}
|
|
20883
|
-
),
|
|
20881
|
+
), po = ({
|
|
20884
20882
|
staging: e,
|
|
20885
20883
|
data: a,
|
|
20886
20884
|
bearerToken: n,
|
|
@@ -20890,7 +20888,7 @@ const Jt = {
|
|
|
20890
20888
|
onSuccess: u
|
|
20891
20889
|
}) => {
|
|
20892
20890
|
var I;
|
|
20893
|
-
const { status: d, formStatus: l, postData: m, formSubmitted: k, serverData: v } =
|
|
20891
|
+
const { status: d, formStatus: l, postData: m, formSubmitted: k, serverData: v } = xt(
|
|
20894
20892
|
n,
|
|
20895
20893
|
e
|
|
20896
20894
|
), [b, p] = U(
|
|
@@ -20898,24 +20896,24 @@ const Jt = {
|
|
|
20898
20896
|
);
|
|
20899
20897
|
if (Q(() => {
|
|
20900
20898
|
v && p({ ...v, ...a });
|
|
20901
|
-
}, [a, v]), !l || l !==
|
|
20902
|
-
return /* @__PURE__ */ i.jsx("div", { children:
|
|
20899
|
+
}, [a, v]), !l || l !== "NOT_SUBMITTED" && !v)
|
|
20900
|
+
return /* @__PURE__ */ i.jsx("div", { children: ei("retrievingInterviewStatus", r) });
|
|
20903
20901
|
if (k)
|
|
20904
|
-
return /* @__PURE__ */ i.jsx("div", { children:
|
|
20902
|
+
return /* @__PURE__ */ i.jsx("div", { children: ei("interviewIsComplete", r) });
|
|
20905
20903
|
const C = async (M) => {
|
|
20906
20904
|
o && o(M), await m(M), u && u(M);
|
|
20907
20905
|
};
|
|
20908
20906
|
return /* @__PURE__ */ i.jsx(
|
|
20909
|
-
|
|
20907
|
+
Un,
|
|
20910
20908
|
{
|
|
20911
20909
|
data: b,
|
|
20912
20910
|
language: r,
|
|
20913
20911
|
onSubmit: C,
|
|
20914
20912
|
taxForms: s,
|
|
20915
|
-
complete: ((I = d == null ? void 0 : d.DAC7Interview) == null ? void 0 : I.dataCollectionStatus) ===
|
|
20913
|
+
complete: ((I = d == null ? void 0 : d.DAC7Interview) == null ? void 0 : I.dataCollectionStatus) === "COMPLETE"
|
|
20916
20914
|
}
|
|
20917
20915
|
);
|
|
20918
|
-
},
|
|
20916
|
+
}, Co = ({
|
|
20919
20917
|
data: e,
|
|
20920
20918
|
staging: a,
|
|
20921
20919
|
bearerToken: n,
|
|
@@ -20923,7 +20921,7 @@ const Jt = {
|
|
|
20923
20921
|
onSubmit: s,
|
|
20924
20922
|
onSuccess: o
|
|
20925
20923
|
}) => /* @__PURE__ */ i.jsx(
|
|
20926
|
-
|
|
20924
|
+
po,
|
|
20927
20925
|
{
|
|
20928
20926
|
bearerToken: n,
|
|
20929
20927
|
data: e,
|
|
@@ -20935,9 +20933,9 @@ const Jt = {
|
|
|
20935
20933
|
}
|
|
20936
20934
|
);
|
|
20937
20935
|
export {
|
|
20938
|
-
|
|
20939
|
-
|
|
20940
|
-
|
|
20941
|
-
|
|
20942
|
-
|
|
20936
|
+
Co as TaxBitDAC7Form,
|
|
20937
|
+
bo as TaxBitDAC7FormUI,
|
|
20938
|
+
po as TaxBitForm,
|
|
20939
|
+
Un as TaxBitFormUI,
|
|
20940
|
+
xt as useTaxBit
|
|
20943
20941
|
};
|