@taxbit/react-sdk 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +2 -2
- package/dist/contexts/TaxDocumentation/useTaxDocumentation.d.ts +3 -4
- package/dist/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +2 -188
- package/dist/hooks/useTaxBit/useTaxBit.d.ts +5 -105
- package/dist/taxbit-react-sdk.es.js +1027 -1012
- package/dist/taxbit-react-sdk.umd.js +9 -9
- package/dist/types/Utilities.d.ts +2 -0
- package/dist/types/client/ClientTaxDocumentation.d.ts +79 -0
- package/dist/types/client/ClientTaxDocumentationStatus.d.ts +9 -0
- package/dist/types/client/index.d.ts +2 -4
- package/dist/types/server/ComprehensiveTaxDocumentation.d.ts +3 -0
- package/dist/utils/getHintKeyMap.d.ts +1 -1
- package/dist/utils/getPromptKeyMap.d.ts +1 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/snakeCaseKeys.d.ts +1 -0
- package/dist/utils/transformForClient/index.d.ts +1 -0
- package/dist/utils/transformForClient/transformForClient.d.ts +3 -0
- package/dist/utils/transformOutbound/transformOutbound.d.ts +2 -2
- package/dist/widgets/TaxBitForm/TaxBitForm.d.ts +3 -3
- package/dist/wizard/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import On, { useState as U, useEffect as Q, createContext as Jn, useContext as Zn, useCallback as xa, useMemo as J, useRef as hn } from "react";
|
|
2
2
|
const Va = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging" : ""}.taxbit.com/v1/${e}`, Wa = {
|
|
3
3
|
taxDocumentation: {
|
|
4
4
|
post: (e) => Va("tax-documentation", e),
|
|
@@ -8,46 +8,43 @@ const Va = (e, a) => `https://api.multi1.enterprise${a === "STAGING" ? "-staging
|
|
|
8
8
|
get: (e) => Va("tax-documentation-status", e)
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
var
|
|
12
|
-
const
|
|
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(
|
|
13
13
|
Object.entries(e).map(
|
|
14
14
|
([a, n]) => [
|
|
15
|
-
a
|
|
16
|
-
|
|
17
|
-
(r) => r.toUpperCase().replace(/[-_]/g, "")
|
|
18
|
-
),
|
|
19
|
-
Ua(n)
|
|
15
|
+
qn(a),
|
|
16
|
+
la(n)
|
|
20
17
|
]
|
|
21
18
|
)
|
|
22
|
-
), de = (...e) => e.filter(Boolean).join(" "),
|
|
19
|
+
), de = (...e) => e.filter(Boolean).join(" "), Yn = (e) => {
|
|
23
20
|
try {
|
|
24
21
|
const a = (/* @__PURE__ */ new Date()).getUTCFullYear(), n = e.substring(e.length - 4, e.length), r = a - Number(n);
|
|
25
22
|
return r > -1 && r < 131;
|
|
26
23
|
} catch {
|
|
27
24
|
return !1;
|
|
28
25
|
}
|
|
29
|
-
},
|
|
26
|
+
}, _n = (e) => /^\d{2}\/\d{2}\/\d{4}$/.test(e), Qn = (e) => {
|
|
30
27
|
const a = new Date(e);
|
|
31
28
|
return !isNaN(a.getTime()) && e === a.toLocaleDateString("en-US", {
|
|
32
29
|
month: "2-digit",
|
|
33
30
|
day: "2-digit",
|
|
34
31
|
year: "numeric"
|
|
35
32
|
});
|
|
36
|
-
}, z = (e) => e === void 0 || e === "", ae = (e) => !z(e),
|
|
37
|
-
const n = !!(a != null && a.includes("W-9")) && ((e == null ? void 0 : e.accountHolderUsAccountType) !== void 0 && (e == null ? void 0 : e.regardedOwnerUsPerson) === void 0 || (e == null ? void 0 : e.regardedOwnerUsPerson) === "yes"), r = !!(a != null && a.includes("W-8BEN") || a != null && a.includes("W-8BEN-E")) && ((e == null ? void 0 : e.accountHolderUsPerson) === "no" && (e == null ? void 0 : e.regardedOwnerUsPerson) === void 0 || (e == null ? void 0 : e.regardedOwnerUsPerson) === "no"), s = !!(a != null && a.includes("W-8BEN")) && ((e == null ? void 0 : e.accountHolderForeignAccountType) === "individual" || (e == null ? void 0 : e.regardedOwnerForeignAccountType) === "individual"), o = !!(a != null && a.includes("W-8BEN-E")) && ((e == null ? void 0 : e.accountHolderForeignAccountType) !== "individual" && (e == null ? void 0 : e.accountHolderForeignAccountType) !== "disregardedEntity" || (e == null ? void 0 : e.regardedOwnerForeignAccountType) !== "individual"), u = a == null ? void 0 : a.includes("DAC7"),
|
|
33
|
+
}, z = (e) => e === void 0 || e === "", ae = (e) => !z(e), da = (e, a) => {
|
|
34
|
+
const n = !!(a != null && a.includes("W-9")) && ((e == null ? void 0 : e.accountHolderUsAccountType) !== void 0 && (e == null ? void 0 : e.regardedOwnerUsPerson) === void 0 || (e == null ? void 0 : e.regardedOwnerUsPerson) === "yes"), r = !!(a != null && a.includes("W-8BEN") || a != null && a.includes("W-8BEN-E")) && ((e == null ? void 0 : e.accountHolderUsPerson) === "no" && (e == null ? void 0 : e.regardedOwnerUsPerson) === void 0 || (e == null ? void 0 : e.regardedOwnerUsPerson) === "no"), s = !!(a != null && a.includes("W-8BEN")) && ((e == null ? void 0 : e.accountHolderForeignAccountType) === "individual" || (e == null ? void 0 : e.regardedOwnerForeignAccountType) === "individual"), o = !!(a != null && a.includes("W-8BEN-E")) && ((e == null ? void 0 : e.accountHolderForeignAccountType) !== "individual" && (e == null ? void 0 : e.accountHolderForeignAccountType) !== "disregardedEntity" || (e == null ? void 0 : e.regardedOwnerForeignAccountType) !== "individual"), u = a == null ? void 0 : a.includes("DAC7"), d = e.accountHolderForeignAccountType === "disregardedEntity" || e.accountHolderUsAccountType === "disregardedEntity" || e.accountHolderUsAccountType === "smllc" && e.accountHolderUsSmllcElection === "no", l = (e == null ? void 0 : e.accountHolderIsEuResident) === "yes" && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1) && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2) && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3) && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4) && z(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5);
|
|
38
35
|
return {
|
|
39
|
-
accountHolderIsDisregarded:
|
|
40
|
-
hasNoTaxId:
|
|
36
|
+
accountHolderIsDisregarded: d,
|
|
37
|
+
hasNoTaxId: l,
|
|
41
38
|
isDac7: u,
|
|
42
39
|
isW9: n,
|
|
43
40
|
isW8: r,
|
|
44
41
|
isW8Ben: s,
|
|
45
42
|
isW8BenE: o
|
|
46
43
|
};
|
|
47
|
-
},
|
|
44
|
+
}, Xn = () => ({
|
|
48
45
|
accountHolderDateOfBirth: "dateOfBirth",
|
|
49
46
|
regardedOwnerDateOfBirth: "dateOfBirth"
|
|
50
|
-
}),
|
|
47
|
+
}), vn = (e, a) => new Date(a ?? 2012, e, 0).getDate(), zn = (e, a) => {
|
|
51
48
|
switch (e) {
|
|
52
49
|
case "individual":
|
|
53
50
|
return "nameOfIndividual";
|
|
@@ -70,7 +67,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
70
67
|
default:
|
|
71
68
|
return "name";
|
|
72
69
|
}
|
|
73
|
-
},
|
|
70
|
+
}, En = (e) => {
|
|
74
71
|
switch (e) {
|
|
75
72
|
case "individual":
|
|
76
73
|
return "nameOfIndividual";
|
|
@@ -83,10 +80,10 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
83
80
|
default:
|
|
84
81
|
return "name";
|
|
85
82
|
}
|
|
86
|
-
},
|
|
83
|
+
}, $n = (e) => e.accountHolderUsAccountType !== void 0 ? zn(
|
|
87
84
|
e.accountHolderUsAccountType,
|
|
88
85
|
e.accountHolderUsSmllcElection
|
|
89
|
-
) : e.accountHolderForeignAccountType !== void 0 ?
|
|
86
|
+
) : e.accountHolderForeignAccountType !== void 0 ? En(e.accountHolderForeignAccountType) : e.accountHolderIsIndividual === "yes" ? "nameOfIndividual" : e.accountHolderIsIndividual === "no" ? "nameOfBusiness" : "name", et = (e) => e.regardedOwnerUsPerson === "yes" ? zn(e.regardedOwnerUsAccountType) : e.regardedOwnerUsPerson === "no" ? En(e.regardedOwnerForeignAccountType) : "name", at = (e) => ({
|
|
90
87
|
accountHolderIsIndividual: "isIndividual",
|
|
91
88
|
accountHolderUsPerson: "usPerson",
|
|
92
89
|
accountHolderUsAccountType: "usAccountType",
|
|
@@ -124,7 +121,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
124
121
|
accountHolderVatIdentificationNumber: "vatIdentificationNumber",
|
|
125
122
|
accountHolderVatCountry: "vatCountry",
|
|
126
123
|
accountHolderVatIdentificationNumberIsNotRequired: "vatIdentificationNumberIsNotRequired",
|
|
127
|
-
accountHolderName:
|
|
124
|
+
accountHolderName: $n(e),
|
|
128
125
|
accountHolderDateOfBirth: "dateOfBirth",
|
|
129
126
|
accountHolderDbaName: "dbaName",
|
|
130
127
|
accountHolderAddressStreet: "street",
|
|
@@ -154,7 +151,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
154
151
|
regardedOwnerForeignTrustClassification: "foreignTrustClassification",
|
|
155
152
|
regardedOwnerForeignOtherClassification: "foreignOtherClassification",
|
|
156
153
|
regardedOwnerCountryOfCitizenship: "countryOfCitizenship",
|
|
157
|
-
regardedOwnerName:
|
|
154
|
+
regardedOwnerName: et(e),
|
|
158
155
|
regardedOwnerDateOfBirth: "dateOfBirth",
|
|
159
156
|
regardedOwnerDbaName: "dbaName",
|
|
160
157
|
regardedOwnerAddressStreet: "street",
|
|
@@ -170,9 +167,187 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
170
167
|
regardedOwnerMailingAddressState: "state",
|
|
171
168
|
regardedOwnerMailingAddressZip: "zip",
|
|
172
169
|
regardedOwnerMailingAddressCountry: "country"
|
|
173
|
-
}),
|
|
170
|
+
}), Rn = (e) => e.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), it = (e) => e.replace(/[A-Z]/g, (a) => `_${a.toLowerCase()}`), $a = (e) => Array.isArray(e) ? e.map((a) => $a(a)) : typeof e == "function" || e !== Object(e) ? e : Object.fromEntries(
|
|
171
|
+
Object.entries(e).map(
|
|
172
|
+
([a, n]) => [
|
|
173
|
+
it(a),
|
|
174
|
+
$a(n)
|
|
175
|
+
]
|
|
176
|
+
)
|
|
177
|
+
), H = (e) => e === void 0 ? void 0 : e === "yes", nt = (e) => {
|
|
178
|
+
const a = {
|
|
179
|
+
city: e.accountHolderAddressCity,
|
|
180
|
+
country: e.accountHolderAddressCountry,
|
|
181
|
+
state_or_province: e.accountHolderAddressState,
|
|
182
|
+
first_line: e.accountHolderAddressStreet,
|
|
183
|
+
second_line: e.accountHolderAddressStreet2,
|
|
184
|
+
postal_code: e.accountHolderAddressZip
|
|
185
|
+
};
|
|
186
|
+
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
187
|
+
}, tt = (e) => {
|
|
188
|
+
const a = {
|
|
189
|
+
city: e.regardedOwnerAddressCity,
|
|
190
|
+
country: e.regardedOwnerAddressCountry,
|
|
191
|
+
state_or_province: e.regardedOwnerAddressState,
|
|
192
|
+
first_line: e.regardedOwnerAddressStreet,
|
|
193
|
+
second_line: e.regardedOwnerAddressStreet2,
|
|
194
|
+
postal_code: e.regardedOwnerAddressZip
|
|
195
|
+
};
|
|
196
|
+
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
197
|
+
}, rt = (e) => {
|
|
198
|
+
const a = {
|
|
199
|
+
city: e.accountHolderMailingAddressCity,
|
|
200
|
+
country: e.accountHolderMailingAddressCountry,
|
|
201
|
+
state_or_province: e.accountHolderMailingAddressState,
|
|
202
|
+
first_line: e.accountHolderMailingAddressStreet,
|
|
203
|
+
second_line: e.accountHolderMailingAddressStreet2,
|
|
204
|
+
postal_code: e.accountHolderMailingAddressZip
|
|
205
|
+
};
|
|
206
|
+
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
207
|
+
}, ot = (e) => {
|
|
208
|
+
const a = {
|
|
209
|
+
city: e.regardedOwnerMailingAddressCity,
|
|
210
|
+
country: e.regardedOwnerMailingAddressCountry,
|
|
211
|
+
state_or_province: e.regardedOwnerMailingAddressState,
|
|
212
|
+
first_line: e.regardedOwnerMailingAddressStreet,
|
|
213
|
+
second_line: e.regardedOwnerMailingAddressStreet2,
|
|
214
|
+
postal_code: e.regardedOwnerMailingAddressZip
|
|
215
|
+
};
|
|
216
|
+
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
217
|
+
}, st = (e) => {
|
|
218
|
+
const n = [
|
|
219
|
+
{
|
|
220
|
+
country: e.accountHolderTaxResidenceCountry1,
|
|
221
|
+
tin: e.accountHolderTaxResidenceForeignTin1,
|
|
222
|
+
tin_not_required: H(
|
|
223
|
+
e.accountHolderTaxResidenceForeignTin1IsNotRequired
|
|
224
|
+
)
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
country: e.accountHolderTaxResidenceCountry2,
|
|
228
|
+
tin: e.accountHolderTaxResidenceForeignTin2,
|
|
229
|
+
tin_not_required: H(
|
|
230
|
+
e.accountHolderTaxResidenceForeignTin2IsNotRequired
|
|
231
|
+
)
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
country: e.accountHolderTaxResidenceCountry3,
|
|
235
|
+
tin: e.accountHolderTaxResidenceForeignTin3,
|
|
236
|
+
tin_not_required: H(
|
|
237
|
+
e.accountHolderTaxResidenceForeignTin3IsNotRequired
|
|
238
|
+
)
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
country: e.accountHolderTaxResidenceCountry4,
|
|
242
|
+
tin: e.accountHolderTaxResidenceForeignTin4,
|
|
243
|
+
tin_not_required: H(
|
|
244
|
+
e.accountHolderTaxResidenceForeignTin4IsNotRequired
|
|
245
|
+
)
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
country: e.accountHolderTaxResidenceCountry5,
|
|
249
|
+
tin: e.accountHolderTaxResidenceForeignTin5,
|
|
250
|
+
tin_not_required: H(
|
|
251
|
+
e.accountHolderTaxResidenceForeignTin5IsNotRequired
|
|
252
|
+
)
|
|
253
|
+
}
|
|
254
|
+
].filter(
|
|
255
|
+
(r) => Object.entries(r).some(([, s]) => s !== void 0)
|
|
256
|
+
);
|
|
257
|
+
return n.length > 0 ? n : void 0;
|
|
258
|
+
}, lt = (e) => {
|
|
259
|
+
const a = {
|
|
260
|
+
address: nt(e),
|
|
261
|
+
country_of_citizenship: e.accountHolderCountryOfCitizenship,
|
|
262
|
+
date_of_birth: e.accountHolderDateOfBirth,
|
|
263
|
+
dba_name: e.accountHolderDbaName,
|
|
264
|
+
mailing_address: rt(e),
|
|
265
|
+
mailing_address_is_different: H(
|
|
266
|
+
e.accountHolderMailingAddressIsDifferent
|
|
267
|
+
),
|
|
268
|
+
name: e.accountHolderName,
|
|
269
|
+
city_of_birth: e.accountHolderCityOfBirth,
|
|
270
|
+
country_of_birth: e.accountHolderCountryOfBirth,
|
|
271
|
+
financial_account_identifier: e.accountHolderFinancialAccountIdentifier,
|
|
272
|
+
financial_account_name: e.accountHolderFinancialAccountName,
|
|
273
|
+
ftin: e.accountHolderForeignTin,
|
|
274
|
+
ftin_not_legally_required: H(
|
|
275
|
+
e.accountHolderForeignTinIsNotRequired
|
|
276
|
+
),
|
|
277
|
+
tax_residences: st(e),
|
|
278
|
+
tin: e.accountHolderUsTin,
|
|
279
|
+
vatin: e.accountHolderVatIdentificationNumber,
|
|
280
|
+
vatin_country: e.accountHolderVatCountry,
|
|
281
|
+
vatin_not_required: H(
|
|
282
|
+
e.accountHolderVatIdentificationNumberIsNotRequired
|
|
283
|
+
),
|
|
284
|
+
exempt_fatca_code: e.exemptFatcaCode,
|
|
285
|
+
exempt_payee_code: e.exemptPayeeCode,
|
|
286
|
+
is_individual: H(e.accountHolderIsIndividual),
|
|
287
|
+
is_eu_resident: H(e.accountHolderIsEuResident),
|
|
288
|
+
is_us_person: H(e.accountHolderUsPerson),
|
|
289
|
+
us_account_type: e.accountHolderUsAccountType,
|
|
290
|
+
us_smllc_election: H(e.accountHolderUsSmllcElection),
|
|
291
|
+
us_llc_classification: e.accountHolderUsLlcClassification,
|
|
292
|
+
us_other_classification: e.accountHolderUsOtherClassification,
|
|
293
|
+
us_trust_estate_ein: H(
|
|
294
|
+
e.accountHolderUsTrustEstateEin
|
|
295
|
+
),
|
|
296
|
+
foreign_account_type: e.accountHolderForeignAccountType,
|
|
297
|
+
foreign_trust_classification: e.accountHolderForeignTrustClassification,
|
|
298
|
+
foreign_other_classification: e.accountHolderForeignOtherClassification
|
|
299
|
+
};
|
|
300
|
+
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
301
|
+
}, dt = (e) => {
|
|
302
|
+
const a = {
|
|
303
|
+
address: tt(e),
|
|
304
|
+
country_of_citizenship: e.regardedOwnerCountryOfCitizenship,
|
|
305
|
+
date_of_birth: e.regardedOwnerDateOfBirth,
|
|
306
|
+
dba_name: e.regardedOwnerDbaName,
|
|
307
|
+
mailing_address: ot(e),
|
|
308
|
+
mailing_address_is_different: H(
|
|
309
|
+
e.regardedOwnerMailingAddressIsDifferent
|
|
310
|
+
),
|
|
311
|
+
name: e.regardedOwnerName,
|
|
312
|
+
ftin: e.regardedOwnerForeignTin,
|
|
313
|
+
ftin_not_legally_required: H(
|
|
314
|
+
e.regardedOwnerForeignTinIsNotRequired
|
|
315
|
+
),
|
|
316
|
+
tin: e.regardedOwnerUsTin,
|
|
317
|
+
exempt_fatca_code: e.exemptFatcaCode,
|
|
318
|
+
exempt_payee_code: e.exemptPayeeCode,
|
|
319
|
+
is_us_person: H(e.regardedOwnerUsPerson),
|
|
320
|
+
us_account_type: e.regardedOwnerUsAccountType,
|
|
321
|
+
us_llc_classification: e.regardedOwnerUsLlcClassification,
|
|
322
|
+
us_other_classification: e.regardedOwnerUsOtherClassification,
|
|
323
|
+
us_trust_estate_ein: H(
|
|
324
|
+
e.regardedOwnerUsTrustEstateEin
|
|
325
|
+
),
|
|
326
|
+
foreign_account_type: e.regardedOwnerForeignAccountType,
|
|
327
|
+
foreign_trust_classification: e.regardedOwnerForeignTrustClassification,
|
|
328
|
+
foreign_other_classification: e.regardedOwnerForeignOtherClassification
|
|
329
|
+
};
|
|
330
|
+
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
331
|
+
}, ut = (e) => {
|
|
332
|
+
const a = lt(e), n = dt(e);
|
|
333
|
+
return {
|
|
334
|
+
account_holder: a,
|
|
335
|
+
regarded_owner: n,
|
|
336
|
+
has_certified: H(e.iCertifyToAll),
|
|
337
|
+
is_not_subject_backup_withholding: H(
|
|
338
|
+
e.iAmNotSubjectToBackupWithholding
|
|
339
|
+
),
|
|
340
|
+
signature: e.signature,
|
|
341
|
+
document_type: "COMPREHENSIVE",
|
|
342
|
+
source: "SDK",
|
|
343
|
+
signature_timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
344
|
+
};
|
|
345
|
+
}, ct = (e) => {
|
|
346
|
+
const a = ut(e);
|
|
347
|
+
return la(a);
|
|
348
|
+
}, ve = (e) => e.map((a) => ({
|
|
174
349
|
value: a
|
|
175
|
-
})),
|
|
350
|
+
})), mt = [
|
|
176
351
|
"AB",
|
|
177
352
|
"BC",
|
|
178
353
|
"MB",
|
|
@@ -186,7 +361,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
186
361
|
"QC",
|
|
187
362
|
"SK",
|
|
188
363
|
"YT"
|
|
189
|
-
],
|
|
364
|
+
], gt = ve(mt), kt = [
|
|
190
365
|
"AD",
|
|
191
366
|
"AE",
|
|
192
367
|
"AF",
|
|
@@ -436,7 +611,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
436
611
|
"ZA",
|
|
437
612
|
"ZM",
|
|
438
613
|
"ZW"
|
|
439
|
-
],
|
|
614
|
+
], ht = [
|
|
440
615
|
"AT",
|
|
441
616
|
"BE",
|
|
442
617
|
"BG",
|
|
@@ -464,7 +639,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
464
639
|
"SE",
|
|
465
640
|
"SI",
|
|
466
641
|
"SK"
|
|
467
|
-
],
|
|
642
|
+
], ua = ve(kt), vt = ve(ht), ft = [
|
|
468
643
|
"01",
|
|
469
644
|
"02",
|
|
470
645
|
"03",
|
|
@@ -496,7 +671,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
496
671
|
"29",
|
|
497
672
|
"30",
|
|
498
673
|
"31"
|
|
499
|
-
],
|
|
674
|
+
], fn = ve(ft), pt = [
|
|
500
675
|
"A",
|
|
501
676
|
"B",
|
|
502
677
|
"C",
|
|
@@ -510,14 +685,14 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
510
685
|
"K",
|
|
511
686
|
"L",
|
|
512
687
|
"M"
|
|
513
|
-
],
|
|
688
|
+
], At = ve(pt), Pn = [
|
|
514
689
|
{ value: "individual" },
|
|
515
690
|
{ value: "corporation" },
|
|
516
691
|
{ value: "partnership" },
|
|
517
692
|
{ value: "trust" },
|
|
518
693
|
{ value: "other" },
|
|
519
694
|
{ value: "disregardedEntity" }
|
|
520
|
-
],
|
|
695
|
+
], bt = Pn.map((e) => e.value), ii = [
|
|
521
696
|
{ value: "taxExemptOrganization" },
|
|
522
697
|
{ value: "privateFoundation" },
|
|
523
698
|
{ value: "internationalOrganization" },
|
|
@@ -525,17 +700,17 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
525
700
|
{ value: "foreignGovernmentControlledEntity" },
|
|
526
701
|
{ value: "foreignGovernmentIntegralPart" },
|
|
527
702
|
{ value: "estate" }
|
|
528
|
-
],
|
|
703
|
+
], Ct = ii.map((e) => e.value), Nt = [
|
|
529
704
|
{ value: "individual" },
|
|
530
705
|
{ value: "corporation" },
|
|
531
706
|
{ value: "partnership" },
|
|
532
707
|
{ value: "trust" },
|
|
533
708
|
{ value: "other" }
|
|
534
|
-
],
|
|
709
|
+
], ni = [
|
|
535
710
|
{ value: "simpleTrust" },
|
|
536
711
|
{ value: "complexTrust" },
|
|
537
712
|
{ value: "grantorTrust" }
|
|
538
|
-
],
|
|
713
|
+
], St = ni.map((e) => e.value), It = [
|
|
539
714
|
"bg-bg",
|
|
540
715
|
"cs-cz",
|
|
541
716
|
"da-dk",
|
|
@@ -566,7 +741,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
566
741
|
"sk-sk",
|
|
567
742
|
"sl-si",
|
|
568
743
|
"sv-se"
|
|
569
|
-
],
|
|
744
|
+
], Tt = ve(It), Mt = [
|
|
570
745
|
"01",
|
|
571
746
|
"02",
|
|
572
747
|
"03",
|
|
@@ -579,7 +754,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
579
754
|
"10",
|
|
580
755
|
"11",
|
|
581
756
|
"12"
|
|
582
|
-
],
|
|
757
|
+
], yt = ve(Mt), jt = [
|
|
583
758
|
"A",
|
|
584
759
|
"B",
|
|
585
760
|
"C",
|
|
@@ -593,7 +768,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
593
768
|
"K",
|
|
594
769
|
"L",
|
|
595
770
|
"M"
|
|
596
|
-
],
|
|
771
|
+
], Ot = ve(jt), wn = [
|
|
597
772
|
{ value: "individual" },
|
|
598
773
|
{ value: "soleProprietor" },
|
|
599
774
|
{ value: "llc" },
|
|
@@ -604,13 +779,13 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
604
779
|
{ value: "trustEstate" },
|
|
605
780
|
{ value: "other" },
|
|
606
781
|
{ value: "disregardedEntity" }
|
|
607
|
-
],
|
|
782
|
+
], Bt = wn.map((e) => e.value), ti = [
|
|
608
783
|
{ value: "cCorporation" },
|
|
609
784
|
{ value: "sCorporation" },
|
|
610
785
|
{ value: "partnership" }
|
|
611
|
-
],
|
|
786
|
+
], zt = ti.map(
|
|
612
787
|
(e) => e.value
|
|
613
|
-
),
|
|
788
|
+
), Et = [
|
|
614
789
|
{ value: "individual" },
|
|
615
790
|
{ value: "llc" },
|
|
616
791
|
{ value: "cCorporation" },
|
|
@@ -618,7 +793,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
618
793
|
{ value: "partnership" },
|
|
619
794
|
{ value: "trustEstate" },
|
|
620
795
|
{ value: "other" }
|
|
621
|
-
],
|
|
796
|
+
], Rt = [
|
|
622
797
|
"AL",
|
|
623
798
|
"AK",
|
|
624
799
|
"AS",
|
|
@@ -679,35 +854,35 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
679
854
|
"WV",
|
|
680
855
|
"WI",
|
|
681
856
|
"WY"
|
|
682
|
-
],
|
|
683
|
-
{ length:
|
|
684
|
-
(e, a) =>
|
|
685
|
-
),
|
|
857
|
+
], Pt = ve(Rt), Gn = /* @__PURE__ */ new Date(), wt = Gn.getFullYear() - 120, pn = Gn.getFullYear(), Gt = Array.from(
|
|
858
|
+
{ length: pn - wt },
|
|
859
|
+
(e, a) => pn - a
|
|
860
|
+
), Lt = Gt.map((e) => ({
|
|
686
861
|
value: e
|
|
687
|
-
})),
|
|
688
|
-
if (e &&
|
|
689
|
-
e
|
|
690
|
-
))
|
|
691
|
-
return e;
|
|
692
|
-
}, An = (e) => {
|
|
693
|
-
if (e && lt.includes(
|
|
862
|
+
})), An = (e) => {
|
|
863
|
+
if (e && bt.includes(
|
|
694
864
|
e
|
|
695
865
|
))
|
|
696
866
|
return e;
|
|
697
867
|
}, bn = (e) => {
|
|
698
|
-
if (e &&
|
|
868
|
+
if (e && Ct.includes(
|
|
699
869
|
e
|
|
700
870
|
))
|
|
701
871
|
return e;
|
|
702
872
|
}, Cn = (e) => {
|
|
703
|
-
if (e &&
|
|
873
|
+
if (e && St.includes(
|
|
874
|
+
e
|
|
875
|
+
))
|
|
704
876
|
return e;
|
|
705
877
|
}, Nn = (e) => {
|
|
706
|
-
if (e &&
|
|
878
|
+
if (e && zt.includes(e))
|
|
879
|
+
return e;
|
|
880
|
+
}, Sn = (e) => {
|
|
881
|
+
if (e && Bt.includes(
|
|
707
882
|
e
|
|
708
883
|
))
|
|
709
884
|
return e;
|
|
710
|
-
},
|
|
885
|
+
}, Pa = [
|
|
711
886
|
"000000000",
|
|
712
887
|
"111111111",
|
|
713
888
|
"222222222",
|
|
@@ -724,9 +899,9 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
724
899
|
"876543210",
|
|
725
900
|
"987654321",
|
|
726
901
|
"098765432"
|
|
727
|
-
],
|
|
902
|
+
], wa = /^\d{9}$|^\d{3}-\d{2}-\d{4}$|^\d{2}-\d{7}$/, Ja = /^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/, Za = /^\d{5}$|^\d{5}-\d{4}$/, Ln = (e) => /^(.)\1+$/.test(e), Hn = (e) => ae(e) && e.length >= 2 && e.length <= 22 && !Ln(e), Ht = (e) => ae(e) && e.length >= 8 && e.length <= 12 && !Ln(e), Ga = (e) => (a) => {
|
|
728
903
|
const n = a[`accountHolderTaxResidenceForeignTin${e}`];
|
|
729
|
-
if (!
|
|
904
|
+
if (!Hn(n) && ae(a[`accountHolderTaxResidenceCountry${e}`]) && z(
|
|
730
905
|
a[`accountHolderTaxResidenceForeignTin${e}IsNotRequired`]
|
|
731
906
|
))
|
|
732
907
|
return "invalid";
|
|
@@ -736,11 +911,11 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
736
911
|
accountHolderDateOfBirth: (e) => {
|
|
737
912
|
const a = e.accountHolderDateOfBirth;
|
|
738
913
|
if (ae(a)) {
|
|
739
|
-
if (!
|
|
914
|
+
if (!_n(a))
|
|
740
915
|
return "mustBeInDateFormat";
|
|
741
|
-
if (!
|
|
916
|
+
if (!Qn(a))
|
|
742
917
|
return "invalidDate";
|
|
743
|
-
if (!
|
|
918
|
+
if (!Yn(a))
|
|
744
919
|
return "mustBeValidBirthDate";
|
|
745
920
|
}
|
|
746
921
|
},
|
|
@@ -773,20 +948,20 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
773
948
|
if ((e == null ? void 0 : e.accountHolderUsAccountType) !== void 0) {
|
|
774
949
|
if (z(a))
|
|
775
950
|
return;
|
|
776
|
-
if (!
|
|
951
|
+
if (!wa.test(a))
|
|
777
952
|
return "mustBeNineDigits";
|
|
778
|
-
if (
|
|
953
|
+
if (Pa.includes(a))
|
|
779
954
|
return "invalid";
|
|
780
955
|
} else if ((e == null ? void 0 : e.accountHolderUsPerson) === "no" && a !== void 0 && a !== "") {
|
|
781
|
-
if (!
|
|
956
|
+
if (!wa.test(a))
|
|
782
957
|
return "mustBeNineDigits";
|
|
783
|
-
if (
|
|
958
|
+
if (Pa.includes(a))
|
|
784
959
|
return "invalid";
|
|
785
960
|
}
|
|
786
961
|
},
|
|
787
962
|
accountHolderVatIdentificationNumber: (e) => {
|
|
788
963
|
const a = e.accountHolderVatIdentificationNumber;
|
|
789
|
-
if (e.accountHolderVatIdentificationNumberIsNotRequired !== "yes" && !
|
|
964
|
+
if (e.accountHolderVatIdentificationNumberIsNotRequired !== "yes" && !Ht(a))
|
|
790
965
|
return "invalid";
|
|
791
966
|
},
|
|
792
967
|
accountHolderVatCountry: (e) => {
|
|
@@ -802,15 +977,15 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
802
977
|
},
|
|
803
978
|
accountHolderTaxResidenceForeignTin1: (e) => {
|
|
804
979
|
const a = e.accountHolderTaxResidenceForeignTin1;
|
|
805
|
-
if (!
|
|
980
|
+
if (!Hn(a) && z(e.accountHolderTaxResidenceForeignTin1IsNotRequired))
|
|
806
981
|
return "invalid";
|
|
807
982
|
if (ae(a) && e.accountHolderTaxResidenceCountry1 === e.accountHolderVatCountry && a === e.accountHolderVatIdentificationNumber)
|
|
808
983
|
return "mustNotMatchVatin";
|
|
809
984
|
},
|
|
810
|
-
accountHolderTaxResidenceForeignTin2:
|
|
811
|
-
accountHolderTaxResidenceForeignTin3:
|
|
812
|
-
accountHolderTaxResidenceForeignTin4:
|
|
813
|
-
accountHolderTaxResidenceForeignTin5:
|
|
985
|
+
accountHolderTaxResidenceForeignTin2: Ga("2"),
|
|
986
|
+
accountHolderTaxResidenceForeignTin3: Ga("3"),
|
|
987
|
+
accountHolderTaxResidenceForeignTin4: Ga("4"),
|
|
988
|
+
accountHolderTaxResidenceForeignTin5: Ga("5"),
|
|
814
989
|
regardedOwnerDbaName: (e) => {
|
|
815
990
|
const a = e.regardedOwnerDbaName;
|
|
816
991
|
if (e.regardedOwnerUsAccountType && ["cCorporation", "sCorporation", "partnership"].includes(
|
|
@@ -842,14 +1017,14 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
842
1017
|
regardedOwnerUsTin: (e) => {
|
|
843
1018
|
const a = e.regardedOwnerUsTin;
|
|
844
1019
|
if ((e == null ? void 0 : e.regardedOwnerUsPerson) === "yes") {
|
|
845
|
-
if (ae(a) && !
|
|
1020
|
+
if (ae(a) && !wa.test(a))
|
|
846
1021
|
return "mustBeNineDigits";
|
|
847
|
-
if (ae(a) &&
|
|
1022
|
+
if (ae(a) && Pa.includes(a))
|
|
848
1023
|
return "invalid";
|
|
849
1024
|
} else if ((e == null ? void 0 : e.regardedOwnerUsPerson) === "no" && a !== void 0 && a !== "") {
|
|
850
|
-
if (!
|
|
1025
|
+
if (!wa.test(a))
|
|
851
1026
|
return "mustBeNineDigits";
|
|
852
|
-
if (
|
|
1027
|
+
if (Pa.includes(a))
|
|
853
1028
|
return "invalid";
|
|
854
1029
|
}
|
|
855
1030
|
},
|
|
@@ -868,7 +1043,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
868
1043
|
if (e.signature !== e.accountHolderName && (e.accountHolderUsAccountType === "individual" || e.accountHolderForeignAccountType === "individual"))
|
|
869
1044
|
return "mustMatchName";
|
|
870
1045
|
}
|
|
871
|
-
},
|
|
1046
|
+
}, Dt = (e, a, n) => Object.fromEntries(
|
|
872
1047
|
Object.keys(e).map((r) => {
|
|
873
1048
|
var o;
|
|
874
1049
|
const s = e[r];
|
|
@@ -877,7 +1052,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
877
1052
|
n[r] && (a[r] && z(s) && "required" || ((o = qa[r]) == null ? void 0 : o.call(qa, e)) || void 0)
|
|
878
1053
|
];
|
|
879
1054
|
}).filter(([, r]) => r)
|
|
880
|
-
),
|
|
1055
|
+
), Ft = (e, a) => Object.fromEntries(
|
|
881
1056
|
Object.keys(e).map((n) => {
|
|
882
1057
|
var r;
|
|
883
1058
|
return [
|
|
@@ -885,12 +1060,12 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
885
1060
|
a[n] && ((r = Ya[n]) == null ? void 0 : r.call(Ya, e))
|
|
886
1061
|
];
|
|
887
1062
|
}).filter(([, n]) => n)
|
|
888
|
-
),
|
|
1063
|
+
), xt = (e, a) => Object.fromEntries(
|
|
889
1064
|
Object.keys(e).map((n) => [
|
|
890
1065
|
n,
|
|
891
1066
|
a[n] && e[n]
|
|
892
1067
|
]).filter(([, n]) => n)
|
|
893
|
-
),
|
|
1068
|
+
), Dn = (e) => ({
|
|
894
1069
|
accountHolderUsPerson: e.includes("W-9") && (e.includes("W-8BEN") || e.includes("W-8BEN-E")),
|
|
895
1070
|
accountHolderIsEuResident: e.includes("DAC7"),
|
|
896
1071
|
accountHolderIsIndividual: e.includes("DAC7") && !(e.includes("W-9") || e.includes("W-8BEN") || e.includes("W-8BEN-E")),
|
|
@@ -993,20 +1168,14 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
993
1168
|
exemptPayeeCode: e.includes("W-9"),
|
|
994
1169
|
exemptFatcaCode: e.includes("W-9"),
|
|
995
1170
|
accountHolderCountryIsResidence: e.includes("DAC7")
|
|
996
|
-
}),
|
|
1171
|
+
}), Ut = (e, a, n) => {
|
|
997
1172
|
const {
|
|
998
1173
|
accountHolderIsDisregarded: r,
|
|
999
1174
|
isW9: s,
|
|
1000
1175
|
isW8BenE: o,
|
|
1001
1176
|
isW8: u,
|
|
1002
|
-
hasNoTaxId:
|
|
1003
|
-
} =
|
|
1004
|
-
e.accountHolderTaxResidenceCountry1,
|
|
1005
|
-
e.accountHolderTaxResidenceCountry2,
|
|
1006
|
-
e.accountHolderTaxResidenceCountry3,
|
|
1007
|
-
e.accountHolderTaxResidenceCountry4,
|
|
1008
|
-
e.accountHolderTaxResidenceCountry5
|
|
1009
|
-
], m = {
|
|
1177
|
+
hasNoTaxId: d
|
|
1178
|
+
} = da(e, n), l = e.accountHolderIsIndividual !== void 0 && e.accountHolderIsEuResident === "yes", m = {
|
|
1010
1179
|
// Account Holder Account Classification
|
|
1011
1180
|
accountHolderUsPerson: !0,
|
|
1012
1181
|
accountHolderIsEuResident: !0,
|
|
@@ -1030,8 +1199,8 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
1030
1199
|
accountHolderAddressStreet: e.accountHolderIsEuResident === "yes" || e.accountHolderUsPerson !== void 0,
|
|
1031
1200
|
accountHolderAddressZip: e.accountHolderIsEuResident === "yes" || e.accountHolderUsPerson !== void 0,
|
|
1032
1201
|
accountHolderCountryOfCitizenship: e.accountHolderUsPerson === "no",
|
|
1033
|
-
accountHolderCityOfBirth:
|
|
1034
|
-
accountHolderCountryOfBirth:
|
|
1202
|
+
accountHolderCityOfBirth: d,
|
|
1203
|
+
accountHolderCountryOfBirth: d,
|
|
1035
1204
|
accountHolderDateOfBirth: e.accountHolderIsIndividual === "yes" && e.accountHolderIsEuResident === "yes" || e.accountHolderForeignAccountType === "individual",
|
|
1036
1205
|
accountHolderDbaName: !0,
|
|
1037
1206
|
accountHolderMailingAddressIsDifferent: e.accountHolderUsPerson === "no",
|
|
@@ -1043,30 +1212,30 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
1043
1212
|
accountHolderMailingAddressZip: e.accountHolderMailingAddressIsDifferent === "yes",
|
|
1044
1213
|
// Account Holder Tax Numbers
|
|
1045
1214
|
accountHolderUsTin: !0,
|
|
1046
|
-
accountHolderFinancialAccountIdentifier:
|
|
1047
|
-
accountHolderFinancialAccountName:
|
|
1048
|
-
accountHolderVatIdentificationNumber:
|
|
1049
|
-
accountHolderVatIdentificationNumberIsNotRequired:
|
|
1050
|
-
accountHolderVatCountry:
|
|
1051
|
-
accountHolderTaxResidenceCountry1:
|
|
1052
|
-
accountHolderTaxResidenceForeignTin1:
|
|
1053
|
-
accountHolderShowTaxResidence2:
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
accountHolderTaxResidenceForeignTin5IsNotRequired: e.accountHolderShowTaxResidence5 === "yes",
|
|
1215
|
+
accountHolderFinancialAccountIdentifier: l,
|
|
1216
|
+
accountHolderFinancialAccountName: l,
|
|
1217
|
+
accountHolderVatIdentificationNumber: l,
|
|
1218
|
+
accountHolderVatIdentificationNumberIsNotRequired: l,
|
|
1219
|
+
accountHolderVatCountry: l,
|
|
1220
|
+
accountHolderTaxResidenceCountry1: l,
|
|
1221
|
+
accountHolderTaxResidenceForeignTin1: l,
|
|
1222
|
+
accountHolderShowTaxResidence2: l,
|
|
1223
|
+
accountHolderTaxResidenceForeignTin1IsNotRequired: l,
|
|
1224
|
+
accountHolderTaxResidenceCountry2: l && e.accountHolderShowTaxResidence2 === "yes",
|
|
1225
|
+
accountHolderTaxResidenceForeignTin2: l && e.accountHolderShowTaxResidence2 === "yes",
|
|
1226
|
+
accountHolderShowTaxResidence3: l && e.accountHolderShowTaxResidence2 === "yes",
|
|
1227
|
+
accountHolderTaxResidenceForeignTin2IsNotRequired: l && e.accountHolderShowTaxResidence2 === "yes",
|
|
1228
|
+
accountHolderTaxResidenceCountry3: l && e.accountHolderShowTaxResidence3 === "yes",
|
|
1229
|
+
accountHolderTaxResidenceForeignTin3: l && e.accountHolderShowTaxResidence3 === "yes",
|
|
1230
|
+
accountHolderShowTaxResidence4: l && e.accountHolderShowTaxResidence3 === "yes",
|
|
1231
|
+
accountHolderTaxResidenceForeignTin3IsNotRequired: l && e.accountHolderShowTaxResidence3 === "yes",
|
|
1232
|
+
accountHolderTaxResidenceCountry4: l && e.accountHolderShowTaxResidence4 === "yes",
|
|
1233
|
+
accountHolderTaxResidenceForeignTin4: l && e.accountHolderShowTaxResidence4 === "yes",
|
|
1234
|
+
accountHolderShowTaxResidence5: l && e.accountHolderShowTaxResidence4 === "yes",
|
|
1235
|
+
accountHolderTaxResidenceForeignTin4IsNotRequired: l && e.accountHolderShowTaxResidence4 === "yes",
|
|
1236
|
+
accountHolderTaxResidenceCountry5: l && e.accountHolderShowTaxResidence5 === "yes",
|
|
1237
|
+
accountHolderTaxResidenceForeignTin5: l && e.accountHolderShowTaxResidence5 === "yes",
|
|
1238
|
+
accountHolderTaxResidenceForeignTin5IsNotRequired: l && e.accountHolderShowTaxResidence5 === "yes",
|
|
1070
1239
|
// Regarded Owner Account Classification
|
|
1071
1240
|
regardedOwnerUsPerson: !0,
|
|
1072
1241
|
regardedOwnerUsAccountType: r && (e.regardedOwnerUsPerson === "yes" || !a.regardedOwnerUsPerson),
|
|
@@ -1114,9 +1283,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
1114
1283
|
iConfirmTheTaxIdIsCorrect: s,
|
|
1115
1284
|
iConfirmTheEntityIsNotAUsPerson: u,
|
|
1116
1285
|
iHaveLegalCapacityToSign: s,
|
|
1117
|
-
accountHolderCountryIsResidence:
|
|
1118
|
-
e.accountHolderAddressCountry
|
|
1119
|
-
)
|
|
1286
|
+
accountHolderCountryIsResidence: l
|
|
1120
1287
|
};
|
|
1121
1288
|
return Object.fromEntries(
|
|
1122
1289
|
Object.keys(m).map((k) => [
|
|
@@ -1124,7 +1291,7 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
1124
1291
|
m[k] && a[k]
|
|
1125
1292
|
]).filter(([, k]) => k)
|
|
1126
1293
|
);
|
|
1127
|
-
},
|
|
1294
|
+
}, 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(
|
|
1128
1295
|
a[`accountHolderTaxResidenceForeignTin${e}IsNotRequired`]
|
|
1129
1296
|
), Ya = {
|
|
1130
1297
|
accountHolderUsPerson: S,
|
|
@@ -1146,12 +1313,12 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
1146
1313
|
accountHolderDateOfBirth: (e) => (e == null ? void 0 : e.accountHolderForeignAccountType) === "individual" || (e == null ? void 0 : e.accountHolderIsIndividual) === "yes",
|
|
1147
1314
|
accountHolderAddressCountry: S,
|
|
1148
1315
|
accountHolderAddressStreet: S,
|
|
1149
|
-
accountHolderAddressState:
|
|
1316
|
+
accountHolderAddressState: La,
|
|
1150
1317
|
accountHolderAddressCity: S,
|
|
1151
1318
|
accountHolderAddressZip: (e) => e.accountHolderAddressCountry === "US" || e.accountHolderAddressCountry === "CA",
|
|
1152
1319
|
accountHolderMailingAddressCountry: S,
|
|
1153
1320
|
accountHolderMailingAddressStreet: S,
|
|
1154
|
-
accountHolderMailingAddressState:
|
|
1321
|
+
accountHolderMailingAddressState: La,
|
|
1155
1322
|
accountHolderMailingAddressCity: S,
|
|
1156
1323
|
accountHolderMailingAddressZip: (e) => e.accountHolderMailingAddressCountry === "US" || e.accountHolderMailingAddressCountry === "CA",
|
|
1157
1324
|
accountHolderUsTin: (e) => (e == null ? void 0 : e.accountHolderUsPerson) === "yes",
|
|
@@ -1159,23 +1326,23 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
1159
1326
|
accountHolderVatIdentificationNumber: (e) => e.accountHolderVatIdentificationNumberIsNotRequired !== "yes",
|
|
1160
1327
|
accountHolderVatCountry: S,
|
|
1161
1328
|
accountHolderCityOfBirth: (e) => {
|
|
1162
|
-
const { hasNoTaxId: a } =
|
|
1329
|
+
const { hasNoTaxId: a } = da(e);
|
|
1163
1330
|
return a;
|
|
1164
1331
|
},
|
|
1165
1332
|
accountHolderCountryOfBirth: (e) => {
|
|
1166
|
-
const { hasNoTaxId: a } =
|
|
1333
|
+
const { hasNoTaxId: a } = da(e);
|
|
1167
1334
|
return a;
|
|
1168
1335
|
},
|
|
1169
1336
|
accountHolderTaxResidenceCountry1: S,
|
|
1170
1337
|
accountHolderTaxResidenceForeignTin1: (e) => z(e.accountHolderTaxResidenceForeignTin1IsNotRequired),
|
|
1171
|
-
accountHolderTaxResidenceCountry2:
|
|
1172
|
-
accountHolderTaxResidenceForeignTin2:
|
|
1173
|
-
accountHolderTaxResidenceCountry3:
|
|
1174
|
-
accountHolderTaxResidenceForeignTin3:
|
|
1175
|
-
accountHolderTaxResidenceCountry4:
|
|
1176
|
-
accountHolderTaxResidenceForeignTin4:
|
|
1177
|
-
accountHolderTaxResidenceCountry5:
|
|
1178
|
-
accountHolderTaxResidenceForeignTin5:
|
|
1338
|
+
accountHolderTaxResidenceCountry2: Ha("2"),
|
|
1339
|
+
accountHolderTaxResidenceForeignTin2: Da("2"),
|
|
1340
|
+
accountHolderTaxResidenceCountry3: Ha("3"),
|
|
1341
|
+
accountHolderTaxResidenceForeignTin3: Da("3"),
|
|
1342
|
+
accountHolderTaxResidenceCountry4: Ha("4"),
|
|
1343
|
+
accountHolderTaxResidenceForeignTin4: Da("4"),
|
|
1344
|
+
accountHolderTaxResidenceCountry5: Ha("5"),
|
|
1345
|
+
accountHolderTaxResidenceForeignTin5: Da("5"),
|
|
1179
1346
|
regardedOwnerUsPerson: S,
|
|
1180
1347
|
regardedOwnerUsAccountType: S,
|
|
1181
1348
|
regardedOwnerUsLlcClassification: S,
|
|
@@ -1192,357 +1359,190 @@ const Ua = (e) => Array.isArray(e) ? e.map((a) => Ua(a)) : typeof e == "function
|
|
|
1192
1359
|
regardedOwnerDateOfBirth: S,
|
|
1193
1360
|
regardedOwnerAddressCountry: S,
|
|
1194
1361
|
regardedOwnerAddressStreet: S,
|
|
1195
|
-
regardedOwnerAddressState:
|
|
1362
|
+
regardedOwnerAddressState: La,
|
|
1196
1363
|
regardedOwnerAddressCity: S,
|
|
1197
1364
|
regardedOwnerAddressZip: (e) => e.regardedOwnerAddressCountry === "US" || e.regardedOwnerAddressCountry === "CA",
|
|
1198
1365
|
regardedOwnerMailingAddressCountry: S,
|
|
1199
1366
|
regardedOwnerMailingAddressStreet: S,
|
|
1200
|
-
regardedOwnerMailingAddressState:
|
|
1367
|
+
regardedOwnerMailingAddressState: La,
|
|
1201
1368
|
regardedOwnerMailingAddressCity: S,
|
|
1202
1369
|
regardedOwnerMailingAddressZip: (e) => e.regardedOwnerMailingAddressCountry === "US" || e.regardedOwnerMailingAddressCountry === "CA",
|
|
1203
1370
|
regardedOwnerUsTin: (e) => (e == null ? void 0 : e.regardedOwnerUsPerson) === "yes",
|
|
1204
1371
|
regardedOwnerForeignTin: (e) => e.regardedOwnerForeignTinIsNotRequired !== "yes",
|
|
1205
1372
|
signature: S
|
|
1206
|
-
},
|
|
1207
|
-
var s, o, u,
|
|
1373
|
+
}, In = (e, a) => {
|
|
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, kn;
|
|
1208
1375
|
if (e == null)
|
|
1209
1376
|
return {};
|
|
1210
|
-
const n =
|
|
1377
|
+
const n = Dn(a), r = {
|
|
1211
1378
|
accountHolderName: (s = e.accountHolder) == null ? void 0 : s.name,
|
|
1212
1379
|
accountHolderDbaName: (o = e.accountHolder) == null ? void 0 : o.dbaName,
|
|
1213
1380
|
accountHolderDateOfBirth: (u = e.accountHolder) == null ? void 0 : u.dateOfBirth,
|
|
1214
|
-
accountHolderCityOfBirth: (
|
|
1215
|
-
accountHolderCountryOfBirth: (
|
|
1381
|
+
accountHolderCityOfBirth: (d = e.accountHolder) == null ? void 0 : d.cityOfBirth,
|
|
1382
|
+
accountHolderCountryOfBirth: (l = e.accountHolder) == null ? void 0 : l.countryOfBirth,
|
|
1216
1383
|
accountHolderUsTin: (m = e.accountHolder) == null ? void 0 : m.tin,
|
|
1217
1384
|
accountHolderForeignTin: (k = e.accountHolder) == null ? void 0 : k.ftin,
|
|
1218
1385
|
accountHolderForeignTinIsNotRequired: (v = e.accountHolder) != null && v.ftinNotLegallyRequired ? "yes" : void 0,
|
|
1219
1386
|
accountHolderCountryOfCitizenship: (b = e.accountHolder) == null ? void 0 : b.countryOfCitizenship,
|
|
1220
1387
|
accountHolderAddressStreet: (C = (p = e.accountHolder) == null ? void 0 : p.address) == null ? void 0 : C.firstLine,
|
|
1221
|
-
accountHolderAddressStreet2: (
|
|
1222
|
-
accountHolderAddressCity: (
|
|
1388
|
+
accountHolderAddressStreet2: (M = (I = e.accountHolder) == null ? void 0 : I.address) == null ? void 0 : M.secondLine,
|
|
1389
|
+
accountHolderAddressCity: (E = (G = e.accountHolder) == null ? void 0 : G.address) == null ? void 0 : E.city,
|
|
1223
1390
|
accountHolderAddressState: (L = (_ = e.accountHolder) == null ? void 0 : _.address) == null ? void 0 : L.stateOrProvince,
|
|
1224
1391
|
accountHolderAddressZip: (ue = (ie = e.accountHolder) == null ? void 0 : ie.address) == null ? void 0 : ue.postalCode,
|
|
1225
1392
|
accountHolderAddressCountry: (Ce = (be = e.accountHolder) == null ? void 0 : be.address) == null ? void 0 : Ce.country,
|
|
1226
1393
|
accountHolderMailingAddressIsDifferent: (te = e.accountHolder) != null && te.mailingAddressIsDifferent ? "yes" : void 0,
|
|
1227
1394
|
accountHolderMailingAddressStreet: (Ne = (re = e.accountHolder) == null ? void 0 : re.mailingAddress) == null ? void 0 : Ne.firstLine,
|
|
1228
|
-
accountHolderMailingAddressStreet2: (
|
|
1395
|
+
accountHolderMailingAddressStreet2: (K = (oe = e.accountHolder) == null ? void 0 : oe.mailingAddress) == null ? void 0 : K.secondLine,
|
|
1229
1396
|
accountHolderMailingAddressCity: ($ = (q = e.accountHolder) == null ? void 0 : q.mailingAddress) == null ? void 0 : $.city,
|
|
1230
|
-
accountHolderMailingAddressState: (
|
|
1397
|
+
accountHolderMailingAddressState: (V = (B = e.accountHolder) == null ? void 0 : B.mailingAddress) == null ? void 0 : V.stateOrProvince,
|
|
1231
1398
|
accountHolderMailingAddressZip: (se = (ce = e.accountHolder) == null ? void 0 : ce.mailingAddress) == null ? void 0 : se.postalCode,
|
|
1232
1399
|
accountHolderMailingAddressCountry: (Pe = (Re = e.accountHolder) == null ? void 0 : Re.mailingAddress) == null ? void 0 : Pe.country,
|
|
1233
1400
|
accountHolderIsIndividual: ((we = e.accountHolder) == null ? void 0 : we.isIndividual) === !0 ? "yes" : ((Ge = e.accountHolder) == null ? void 0 : Ge.isIndividual) === !1 ? "no" : void 0,
|
|
1234
1401
|
accountHolderIsEuResident: ((Ve = e.accountHolder) == null ? void 0 : Ve.isEuResident) === !0 ? "yes" : ((h = e.accountHolder) == null ? void 0 : h.isEuResident) === !1 ? "no" : void 0,
|
|
1235
|
-
accountHolderUsPerson: ((
|
|
1236
|
-
accountHolderUsAccountType:
|
|
1402
|
+
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: Sn(
|
|
1237
1404
|
(me = e.accountHolder) == null ? void 0 : me.usAccountType
|
|
1238
1405
|
),
|
|
1239
|
-
accountHolderUsSmllcElection: ((Le = e.accountHolder) == null ? void 0 : Le.usSmllcElection) === !0 ? "yes" : ((
|
|
1240
|
-
accountHolderUsLlcClassification:
|
|
1241
|
-
(
|
|
1406
|
+
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: Nn(
|
|
1408
|
+
(ca = e.accountHolder) == null ? void 0 : ca.usLlcClassification
|
|
1242
1409
|
),
|
|
1243
1410
|
accountHolderUsOtherClassification: (We = e.accountHolder) == null ? void 0 : We.usOtherClassification,
|
|
1244
|
-
accountHolderUsTrustEstateEin: ((
|
|
1245
|
-
accountHolderForeignAccountType:
|
|
1246
|
-
(
|
|
1411
|
+
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: An(
|
|
1413
|
+
(je = e.accountHolder) == null ? void 0 : je.foreignAccountType
|
|
1247
1414
|
),
|
|
1248
|
-
accountHolderForeignTrustClassification:
|
|
1249
|
-
(
|
|
1415
|
+
accountHolderForeignTrustClassification: Cn(
|
|
1416
|
+
(Oe = e.accountHolder) == null ? void 0 : Oe.foreignTrustClassification
|
|
1250
1417
|
),
|
|
1251
|
-
accountHolderForeignOtherClassification:
|
|
1418
|
+
accountHolderForeignOtherClassification: bn(
|
|
1252
1419
|
(Je = e.accountHolder) == null ? void 0 : Je.foreignOtherClassification
|
|
1253
1420
|
),
|
|
1254
1421
|
accountHolderFinancialAccountName: z(
|
|
1255
1422
|
(Ze = e.accountHolder) == null ? void 0 : Ze.financialAccountName
|
|
1256
|
-
) ? (
|
|
1257
|
-
accountHolderFinancialAccountIdentifier: (
|
|
1423
|
+
) ? (Be = e.accountHolder) == null ? void 0 : Be.name : (ka = e.accountHolder) == null ? void 0 : ka.financialAccountName,
|
|
1424
|
+
accountHolderFinancialAccountIdentifier: (ha = e.accountHolder) == null ? void 0 : ha.financialAccountIdentifier,
|
|
1258
1425
|
accountHolderVatIdentificationNumber: (He = e.accountHolder) == null ? void 0 : He.vatin,
|
|
1259
|
-
accountHolderVatIdentificationNumberIsNotRequired: (
|
|
1260
|
-
accountHolderShowTaxResidence2: !z((Ye = (qe = (
|
|
1261
|
-
accountHolderShowTaxResidence3: !z((
|
|
1262
|
-
accountHolderShowTaxResidence4: !z((
|
|
1263
|
-
accountHolderShowTaxResidence5: !z(($e = (Ue = (xe = e.accountHolder) == null ? void 0 : xe.taxResidences) == null ? void 0 : Ue[4]) == null ? void 0 : $e.country) || !z((
|
|
1426
|
+
accountHolderVatIdentificationNumberIsNotRequired: (va = e.accountHolder) != null && va.vatinNotRequired ? "yes" : void 0,
|
|
1427
|
+
accountHolderShowTaxResidence2: !z((Ye = (qe = (fa = e.accountHolder) == null ? void 0 : fa.taxResidences) == null ? void 0 : qe[1]) == null ? void 0 : Ye.country) || !z((_e = (pa = (Se = e.accountHolder) == null ? void 0 : Se.taxResidences) == null ? void 0 : pa[1]) == null ? void 0 : _e.tin) ? "yes" : void 0,
|
|
1428
|
+
accountHolderShowTaxResidence3: !z((Aa = (De = (Qe = e.accountHolder) == null ? void 0 : Qe.taxResidences) == null ? void 0 : De[2]) == null ? void 0 : Aa.country) || !z((Na = (Ca = (ba = e.accountHolder) == null ? void 0 : ba.taxResidences) == null ? void 0 : Ca[2]) == null ? void 0 : Na.tin) ? "yes" : void 0,
|
|
1429
|
+
accountHolderShowTaxResidence4: !z((Ta = (Ia = (Sa = e.accountHolder) == null ? void 0 : Sa.taxResidences) == null ? void 0 : Ia[3]) == null ? void 0 : Ta.country) || !z((ge = (Xe = (Fe = e.accountHolder) == null ? void 0 : Fe.taxResidences) == null ? void 0 : Xe[3]) == null ? void 0 : ge.tin) ? "yes" : void 0,
|
|
1430
|
+
accountHolderShowTaxResidence5: !z(($e = (Ue = (xe = e.accountHolder) == null ? void 0 : xe.taxResidences) == null ? void 0 : Ue[4]) == null ? void 0 : $e.country) || !z((ya = (ea = (Ma = e.accountHolder) == null ? void 0 : Ma.taxResidences) == null ? void 0 : ea[4]) == null ? void 0 : ya.tin) ? "yes" : void 0,
|
|
1264
1431
|
accountHolderVatCountry: (aa = e.accountHolder) == null ? void 0 : aa.vatinCountry,
|
|
1265
|
-
accountHolderTaxResidenceCountry1: (
|
|
1266
|
-
accountHolderTaxResidenceForeignTin1: (
|
|
1267
|
-
accountHolderTaxResidenceForeignTin1IsNotRequired: (t = (
|
|
1268
|
-
accountHolderTaxResidenceCountry2: (A = (g = (
|
|
1269
|
-
accountHolderTaxResidenceForeignTin2: (
|
|
1270
|
-
accountHolderTaxResidenceForeignTin2IsNotRequired: (
|
|
1271
|
-
accountHolderTaxResidenceCountry3: (ke = (W = (
|
|
1272
|
-
accountHolderTaxResidenceForeignTin3: (
|
|
1273
|
-
accountHolderTaxResidenceForeignTin3IsNotRequired: (
|
|
1274
|
-
accountHolderTaxResidenceCountry4: (
|
|
1275
|
-
accountHolderTaxResidenceForeignTin4: (
|
|
1276
|
-
accountHolderTaxResidenceForeignTin4IsNotRequired: (
|
|
1277
|
-
accountHolderTaxResidenceCountry5: (
|
|
1278
|
-
accountHolderTaxResidenceForeignTin5: (
|
|
1279
|
-
accountHolderTaxResidenceForeignTin5IsNotRequired: (
|
|
1432
|
+
accountHolderTaxResidenceCountry1: (Oa = (ja = (ia = e.accountHolder) == null ? void 0 : ia.taxResidences) == null ? void 0 : ja[0]) == null ? void 0 : Oa.country,
|
|
1433
|
+
accountHolderTaxResidenceForeignTin1: (za = (Ba = (na = e.accountHolder) == null ? void 0 : na.taxResidences) == null ? void 0 : Ba[0]) == null ? void 0 : za.tin,
|
|
1434
|
+
accountHolderTaxResidenceForeignTin1IsNotRequired: (t = (Ra = (Ea = e.accountHolder) == null ? void 0 : Ea.taxResidences) == null ? void 0 : Ra[0]) != null && t.tinNotRequired ? "yes" : void 0,
|
|
1435
|
+
accountHolderTaxResidenceCountry2: (A = (g = (c = e.accountHolder) == null ? void 0 : c.taxResidences) == null ? void 0 : g[1]) == null ? void 0 : A.country,
|
|
1436
|
+
accountHolderTaxResidenceForeignTin2: (T = (j = (y = e.accountHolder) == null ? void 0 : y.taxResidences) == null ? void 0 : j[1]) == null ? void 0 : T.tin,
|
|
1437
|
+
accountHolderTaxResidenceForeignTin2IsNotRequired: (R = (D = (N = e.accountHolder) == null ? void 0 : N.taxResidences) == null ? void 0 : D[1]) != null && R.tinNotRequired ? "yes" : void 0,
|
|
1438
|
+
accountHolderTaxResidenceCountry3: (ke = (W = (P = e.accountHolder) == null ? void 0 : P.taxResidences) == null ? void 0 : W[2]) == null ? void 0 : ke.country,
|
|
1439
|
+
accountHolderTaxResidenceForeignTin3: (ri = (ee = (ta = e.accountHolder) == null ? void 0 : ta.taxResidences) == null ? void 0 : ee[2]) == null ? void 0 : ri.tin,
|
|
1440
|
+
accountHolderTaxResidenceForeignTin3IsNotRequired: (li = (si = (oi = e.accountHolder) == null ? void 0 : oi.taxResidences) == null ? void 0 : si[2]) != null && li.tinNotRequired ? "yes" : void 0,
|
|
1441
|
+
accountHolderTaxResidenceCountry4: (ci = (ui = (di = e.accountHolder) == null ? void 0 : di.taxResidences) == null ? void 0 : ui[3]) == null ? void 0 : ci.country,
|
|
1442
|
+
accountHolderTaxResidenceForeignTin4: (ki = (gi = (mi = e.accountHolder) == null ? void 0 : mi.taxResidences) == null ? void 0 : gi[3]) == null ? void 0 : ki.tin,
|
|
1443
|
+
accountHolderTaxResidenceForeignTin4IsNotRequired: (fi = (vi = (hi = e.accountHolder) == null ? void 0 : hi.taxResidences) == null ? void 0 : vi[3]) != null && fi.tinNotRequired ? "yes" : void 0,
|
|
1444
|
+
accountHolderTaxResidenceCountry5: (bi = (Ai = (pi = e.accountHolder) == null ? void 0 : pi.taxResidences) == null ? void 0 : Ai[4]) == null ? void 0 : bi.country,
|
|
1445
|
+
accountHolderTaxResidenceForeignTin5: (Si = (Ni = (Ci = e.accountHolder) == null ? void 0 : Ci.taxResidences) == null ? void 0 : Ni[4]) == null ? void 0 : Si.tin,
|
|
1446
|
+
accountHolderTaxResidenceForeignTin5IsNotRequired: (Mi = (Ti = (Ii = e.accountHolder) == null ? void 0 : Ii.taxResidences) == null ? void 0 : Ti[4]) != null && Mi.tinNotRequired ? "yes" : void 0,
|
|
1280
1447
|
accountHolderCountryIsResidence: void 0,
|
|
1281
|
-
regardedOwnerName: (
|
|
1282
|
-
regardedOwnerDbaName: (
|
|
1283
|
-
regardedOwnerDateOfBirth: (
|
|
1284
|
-
regardedOwnerUsTin: (
|
|
1285
|
-
regardedOwnerForeignTin: (
|
|
1286
|
-
regardedOwnerForeignTinIsNotRequired: (
|
|
1287
|
-
regardedOwnerCountryOfCitizenship: (
|
|
1288
|
-
regardedOwnerAddressStreet: (
|
|
1289
|
-
regardedOwnerAddressStreet2: (
|
|
1290
|
-
regardedOwnerAddressCity: (
|
|
1291
|
-
regardedOwnerAddressState: (
|
|
1292
|
-
regardedOwnerAddressZip: (
|
|
1293
|
-
regardedOwnerAddressCountry: (
|
|
1294
|
-
regardedOwnerMailingAddressStreet: (
|
|
1295
|
-
regardedOwnerMailingAddressStreet2: (
|
|
1296
|
-
regardedOwnerMailingAddressCity: (
|
|
1297
|
-
regardedOwnerMailingAddressState: (
|
|
1298
|
-
regardedOwnerMailingAddressZip: (
|
|
1299
|
-
regardedOwnerMailingAddressCountry: (
|
|
1300
|
-
regardedOwnerUsPerson: ((
|
|
1301
|
-
regardedOwnerUsAccountType:
|
|
1302
|
-
(
|
|
1448
|
+
regardedOwnerName: (yi = e.regardedOwner) == null ? void 0 : yi.name,
|
|
1449
|
+
regardedOwnerDbaName: (ji = e.regardedOwner) == null ? void 0 : ji.dbaName,
|
|
1450
|
+
regardedOwnerDateOfBirth: (Oi = e.regardedOwner) == null ? void 0 : Oi.dateOfBirth,
|
|
1451
|
+
regardedOwnerUsTin: (Bi = e.regardedOwner) == null ? void 0 : Bi.tin,
|
|
1452
|
+
regardedOwnerForeignTin: (zi = e.regardedOwner) == null ? void 0 : zi.ftin,
|
|
1453
|
+
regardedOwnerForeignTinIsNotRequired: (Ei = e.regardedOwner) != null && Ei.ftinNotLegallyRequired ? "yes" : void 0,
|
|
1454
|
+
regardedOwnerCountryOfCitizenship: (Ri = e.regardedOwner) == null ? void 0 : Ri.countryOfCitizenship,
|
|
1455
|
+
regardedOwnerAddressStreet: (wi = (Pi = e.regardedOwner) == null ? void 0 : Pi.address) == null ? void 0 : wi.firstLine,
|
|
1456
|
+
regardedOwnerAddressStreet2: (Li = (Gi = e.regardedOwner) == null ? void 0 : Gi.address) == null ? void 0 : Li.secondLine,
|
|
1457
|
+
regardedOwnerAddressCity: (Di = (Hi = e.regardedOwner) == null ? void 0 : Hi.address) == null ? void 0 : Di.city,
|
|
1458
|
+
regardedOwnerAddressState: (xi = (Fi = e.regardedOwner) == null ? void 0 : Fi.address) == null ? void 0 : xi.stateOrProvince,
|
|
1459
|
+
regardedOwnerAddressZip: (Ki = (Ui = e.regardedOwner) == null ? void 0 : Ui.address) == null ? void 0 : Ki.postalCode,
|
|
1460
|
+
regardedOwnerAddressCountry: (Wi = (Vi = e.regardedOwner) == null ? void 0 : Vi.address) == null ? void 0 : Wi.country,
|
|
1461
|
+
regardedOwnerMailingAddressStreet: (Zi = (Ji = e.regardedOwner) == null ? void 0 : Ji.mailingAddress) == null ? void 0 : Zi.firstLine,
|
|
1462
|
+
regardedOwnerMailingAddressStreet2: (Yi = (qi = e.regardedOwner) == null ? void 0 : qi.mailingAddress) == null ? void 0 : Yi.secondLine,
|
|
1463
|
+
regardedOwnerMailingAddressCity: (Qi = (_i = e.regardedOwner) == null ? void 0 : _i.mailingAddress) == null ? void 0 : Qi.city,
|
|
1464
|
+
regardedOwnerMailingAddressState: ($i = (Xi = e.regardedOwner) == null ? void 0 : Xi.mailingAddress) == null ? void 0 : $i.stateOrProvince,
|
|
1465
|
+
regardedOwnerMailingAddressZip: (an = (en = e.regardedOwner) == null ? void 0 : en.mailingAddress) == null ? void 0 : an.postalCode,
|
|
1466
|
+
regardedOwnerMailingAddressCountry: (tn = (nn = e.regardedOwner) == null ? void 0 : nn.mailingAddress) == null ? void 0 : tn.country,
|
|
1467
|
+
regardedOwnerUsPerson: ((rn = e.regardedOwner) == null ? void 0 : rn.isUsPerson) === !0 ? "yes" : ((on = e.regardedOwner) == null ? void 0 : on.isUsPerson) === !1 ? "no" : void 0,
|
|
1468
|
+
regardedOwnerUsAccountType: Sn(
|
|
1469
|
+
(sn = e.regardedOwner) == null ? void 0 : sn.usAccountType
|
|
1303
1470
|
),
|
|
1304
|
-
regardedOwnerUsLlcClassification:
|
|
1305
|
-
(
|
|
1471
|
+
regardedOwnerUsLlcClassification: Nn(
|
|
1472
|
+
(ln = e.regardedOwner) == null ? void 0 : ln.usLlcClassification
|
|
1306
1473
|
),
|
|
1307
|
-
regardedOwnerUsOtherClassification: (
|
|
1308
|
-
regardedOwnerUsTrustEstateEin: ((
|
|
1309
|
-
regardedOwnerForeignAccountType:
|
|
1310
|
-
(
|
|
1474
|
+
regardedOwnerUsOtherClassification: (dn = e.regardedOwner) == null ? void 0 : dn.usOtherClassification,
|
|
1475
|
+
regardedOwnerUsTrustEstateEin: ((un = e.regardedOwner) == null ? void 0 : un.usTrustEstateEin) === !0 ? "yes" : ((cn = e.regardedOwner) == null ? void 0 : cn.usTrustEstateEin) === !1 ? "no" : void 0,
|
|
1476
|
+
regardedOwnerForeignAccountType: An(
|
|
1477
|
+
(mn = e.regardedOwner) == null ? void 0 : mn.foreignAccountType
|
|
1311
1478
|
),
|
|
1312
|
-
regardedOwnerForeignTrustClassification:
|
|
1313
|
-
(
|
|
1479
|
+
regardedOwnerForeignTrustClassification: Cn(
|
|
1480
|
+
(gn = e.regardedOwner) == null ? void 0 : gn.foreignTrustClassification
|
|
1314
1481
|
),
|
|
1315
|
-
regardedOwnerForeignOtherClassification:
|
|
1316
|
-
(
|
|
1482
|
+
regardedOwnerForeignOtherClassification: bn(
|
|
1483
|
+
(kn = e.regardedOwner) == null ? void 0 : kn.foreignOtherClassification
|
|
1317
1484
|
)
|
|
1318
1485
|
};
|
|
1319
1486
|
return Object.fromEntries(
|
|
1320
1487
|
Object.entries(r).filter(
|
|
1321
|
-
([
|
|
1488
|
+
([Wn]) => n[Wn]
|
|
1322
1489
|
)
|
|
1323
1490
|
);
|
|
1324
|
-
}, H = (e) => e === void 0 ? void 0 : e === "yes", Bt = (e) => {
|
|
1325
|
-
const a = {
|
|
1326
|
-
city: e.accountHolderAddressCity,
|
|
1327
|
-
country: e.accountHolderAddressCountry,
|
|
1328
|
-
state_or_province: e.accountHolderAddressState,
|
|
1329
|
-
first_line: e.accountHolderAddressStreet,
|
|
1330
|
-
second_line: e.accountHolderAddressStreet2,
|
|
1331
|
-
postal_code: e.accountHolderAddressZip
|
|
1332
|
-
};
|
|
1333
|
-
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
1334
|
-
}, zt = (e) => {
|
|
1335
|
-
const a = {
|
|
1336
|
-
city: e.regardedOwnerAddressCity,
|
|
1337
|
-
country: e.regardedOwnerAddressCountry,
|
|
1338
|
-
state_or_province: e.regardedOwnerAddressState,
|
|
1339
|
-
first_line: e.regardedOwnerAddressStreet,
|
|
1340
|
-
second_line: e.regardedOwnerAddressStreet2,
|
|
1341
|
-
postal_code: e.regardedOwnerAddressZip
|
|
1342
|
-
};
|
|
1343
|
-
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
1344
|
-
}, Et = (e) => {
|
|
1345
|
-
const a = {
|
|
1346
|
-
city: e.accountHolderMailingAddressCity,
|
|
1347
|
-
country: e.accountHolderMailingAddressCountry,
|
|
1348
|
-
state_or_province: e.accountHolderMailingAddressState,
|
|
1349
|
-
first_line: e.accountHolderMailingAddressStreet,
|
|
1350
|
-
second_line: e.accountHolderMailingAddressStreet2,
|
|
1351
|
-
postal_code: e.accountHolderMailingAddressZip
|
|
1352
|
-
};
|
|
1353
|
-
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
1354
|
-
}, Rt = (e) => {
|
|
1355
|
-
const a = {
|
|
1356
|
-
city: e.regardedOwnerMailingAddressCity,
|
|
1357
|
-
country: e.regardedOwnerMailingAddressCountry,
|
|
1358
|
-
state_or_province: e.regardedOwnerMailingAddressState,
|
|
1359
|
-
first_line: e.regardedOwnerMailingAddressStreet,
|
|
1360
|
-
second_line: e.regardedOwnerMailingAddressStreet2,
|
|
1361
|
-
postal_code: e.regardedOwnerMailingAddressZip
|
|
1362
|
-
};
|
|
1363
|
-
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
1364
|
-
}, Pt = (e) => {
|
|
1365
|
-
const n = [
|
|
1366
|
-
{
|
|
1367
|
-
country: e.accountHolderTaxResidenceCountry1,
|
|
1368
|
-
tin: e.accountHolderTaxResidenceForeignTin1,
|
|
1369
|
-
tin_not_required: H(
|
|
1370
|
-
e.accountHolderTaxResidenceForeignTin1IsNotRequired
|
|
1371
|
-
)
|
|
1372
|
-
},
|
|
1373
|
-
{
|
|
1374
|
-
country: e.accountHolderTaxResidenceCountry2,
|
|
1375
|
-
tin: e.accountHolderTaxResidenceForeignTin2,
|
|
1376
|
-
tin_not_required: H(
|
|
1377
|
-
e.accountHolderTaxResidenceForeignTin2IsNotRequired
|
|
1378
|
-
)
|
|
1379
|
-
},
|
|
1380
|
-
{
|
|
1381
|
-
country: e.accountHolderTaxResidenceCountry3,
|
|
1382
|
-
tin: e.accountHolderTaxResidenceForeignTin3,
|
|
1383
|
-
tin_not_required: H(
|
|
1384
|
-
e.accountHolderTaxResidenceForeignTin3IsNotRequired
|
|
1385
|
-
)
|
|
1386
|
-
},
|
|
1387
|
-
{
|
|
1388
|
-
country: e.accountHolderTaxResidenceCountry4,
|
|
1389
|
-
tin: e.accountHolderTaxResidenceForeignTin4,
|
|
1390
|
-
tin_not_required: H(
|
|
1391
|
-
e.accountHolderTaxResidenceForeignTin4IsNotRequired
|
|
1392
|
-
)
|
|
1393
|
-
},
|
|
1394
|
-
{
|
|
1395
|
-
country: e.accountHolderTaxResidenceCountry5,
|
|
1396
|
-
tin: e.accountHolderTaxResidenceForeignTin5,
|
|
1397
|
-
tin_not_required: H(
|
|
1398
|
-
e.accountHolderTaxResidenceForeignTin5IsNotRequired
|
|
1399
|
-
)
|
|
1400
|
-
}
|
|
1401
|
-
].filter(
|
|
1402
|
-
(r) => Object.entries(r).some(([, s]) => s !== void 0)
|
|
1403
|
-
);
|
|
1404
|
-
return n.length > 0 ? n : void 0;
|
|
1405
|
-
}, wt = (e) => {
|
|
1406
|
-
const a = {
|
|
1407
|
-
address: Bt(e),
|
|
1408
|
-
country_of_citizenship: e.accountHolderCountryOfCitizenship,
|
|
1409
|
-
date_of_birth: e.accountHolderDateOfBirth,
|
|
1410
|
-
dba_name: e.accountHolderDbaName,
|
|
1411
|
-
mailing_address: Et(e),
|
|
1412
|
-
mailing_address_is_different: H(
|
|
1413
|
-
e.accountHolderMailingAddressIsDifferent
|
|
1414
|
-
),
|
|
1415
|
-
name: e.accountHolderName,
|
|
1416
|
-
city_of_birth: e.accountHolderCityOfBirth,
|
|
1417
|
-
country_of_birth: e.accountHolderCountryOfBirth,
|
|
1418
|
-
financial_account_identifier: e.accountHolderFinancialAccountIdentifier,
|
|
1419
|
-
financial_account_name: e.accountHolderFinancialAccountName,
|
|
1420
|
-
ftin: e.accountHolderForeignTin,
|
|
1421
|
-
ftin_not_legally_required: H(
|
|
1422
|
-
e.accountHolderForeignTinIsNotRequired
|
|
1423
|
-
),
|
|
1424
|
-
tax_residences: Pt(e),
|
|
1425
|
-
tin: e.accountHolderUsTin,
|
|
1426
|
-
vatin: e.accountHolderVatIdentificationNumber,
|
|
1427
|
-
vatin_country: e.accountHolderVatCountry,
|
|
1428
|
-
vatin_not_required: H(
|
|
1429
|
-
e.accountHolderVatIdentificationNumberIsNotRequired
|
|
1430
|
-
),
|
|
1431
|
-
exempt_fatca_code: e.exemptFatcaCode,
|
|
1432
|
-
exempt_payee_code: e.exemptPayeeCode,
|
|
1433
|
-
is_individual: H(e.accountHolderIsIndividual),
|
|
1434
|
-
is_eu_resident: H(e.accountHolderIsEuResident),
|
|
1435
|
-
is_us_person: H(e.accountHolderUsPerson),
|
|
1436
|
-
us_account_type: e.accountHolderUsAccountType,
|
|
1437
|
-
us_smllc_election: H(e.accountHolderUsSmllcElection),
|
|
1438
|
-
us_llc_classification: e.accountHolderUsLlcClassification,
|
|
1439
|
-
us_other_classification: e.accountHolderUsOtherClassification,
|
|
1440
|
-
us_trust_estate_ein: H(
|
|
1441
|
-
e.accountHolderUsTrustEstateEin
|
|
1442
|
-
),
|
|
1443
|
-
foreign_account_type: e.accountHolderForeignAccountType,
|
|
1444
|
-
foreign_trust_classification: e.accountHolderForeignTrustClassification,
|
|
1445
|
-
foreign_other_classification: e.accountHolderForeignOtherClassification
|
|
1446
|
-
};
|
|
1447
|
-
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
1448
|
-
}, Gt = (e) => {
|
|
1449
|
-
const a = {
|
|
1450
|
-
address: zt(e),
|
|
1451
|
-
country_of_citizenship: e.regardedOwnerCountryOfCitizenship,
|
|
1452
|
-
date_of_birth: e.regardedOwnerDateOfBirth,
|
|
1453
|
-
dba_name: e.regardedOwnerDbaName,
|
|
1454
|
-
mailing_address: Rt(e),
|
|
1455
|
-
mailing_address_is_different: H(
|
|
1456
|
-
e.regardedOwnerMailingAddressIsDifferent
|
|
1457
|
-
),
|
|
1458
|
-
name: e.regardedOwnerName,
|
|
1459
|
-
ftin: e.regardedOwnerForeignTin,
|
|
1460
|
-
ftin_not_legally_required: H(
|
|
1461
|
-
e.regardedOwnerForeignTinIsNotRequired
|
|
1462
|
-
),
|
|
1463
|
-
tin: e.regardedOwnerUsTin,
|
|
1464
|
-
exempt_fatca_code: e.exemptFatcaCode,
|
|
1465
|
-
exempt_payee_code: e.exemptPayeeCode,
|
|
1466
|
-
is_us_person: H(e.regardedOwnerUsPerson),
|
|
1467
|
-
us_account_type: e.regardedOwnerUsAccountType,
|
|
1468
|
-
us_llc_classification: e.regardedOwnerUsLlcClassification,
|
|
1469
|
-
us_other_classification: e.regardedOwnerUsOtherClassification,
|
|
1470
|
-
us_trust_estate_ein: H(
|
|
1471
|
-
e.regardedOwnerUsTrustEstateEin
|
|
1472
|
-
),
|
|
1473
|
-
foreign_account_type: e.regardedOwnerForeignAccountType,
|
|
1474
|
-
foreign_trust_classification: e.regardedOwnerForeignTrustClassification,
|
|
1475
|
-
foreign_other_classification: e.regardedOwnerForeignOtherClassification
|
|
1476
|
-
};
|
|
1477
|
-
return Object.entries(a).some(([, n]) => n !== void 0) ? a : void 0;
|
|
1478
|
-
}, Lt = (e) => {
|
|
1479
|
-
const a = wt(e), n = Gt(e);
|
|
1480
|
-
return {
|
|
1481
|
-
account_holder: a,
|
|
1482
|
-
regarded_owner: n,
|
|
1483
|
-
has_certified: H(e.iCertifyToAll),
|
|
1484
|
-
is_not_subject_backup_withholding: H(
|
|
1485
|
-
e.iAmNotSubjectToBackupWithholding
|
|
1486
|
-
),
|
|
1487
|
-
signature: e.signature,
|
|
1488
|
-
document_type: "COMPREHENSIVE",
|
|
1489
|
-
source: "SDK"
|
|
1490
|
-
};
|
|
1491
1491
|
}, _a = ({ bearerToken: e }) => new Headers({
|
|
1492
1492
|
Authorization: `Bearer ${e}`
|
|
1493
|
-
}),
|
|
1494
|
-
var
|
|
1495
|
-
const [
|
|
1496
|
-
const
|
|
1493
|
+
}), Kt = (e, a) => {
|
|
1494
|
+
var C;
|
|
1495
|
+
const [n, r] = U(), [s, o] = U(), [u, d] = U(!1), l = a ? "STAGING" : "PRODUCTION", m = Wa.taxDocumentation.get(l), k = Wa.taxDocumentation.post(l), v = Wa.taxDocumentationStatus.get(l), b = async (I) => {
|
|
1496
|
+
const M = {
|
|
1497
1497
|
method: "POST",
|
|
1498
1498
|
headers: _a({ bearerToken: e }),
|
|
1499
|
-
body: JSON.stringify(
|
|
1499
|
+
body: JSON.stringify($a(I))
|
|
1500
1500
|
};
|
|
1501
|
-
fetch(
|
|
1502
|
-
|
|
1501
|
+
fetch(k, M).then((G) => {
|
|
1502
|
+
G.status === 200 && d(!0);
|
|
1503
1503
|
});
|
|
1504
1504
|
};
|
|
1505
1505
|
Q(() => {
|
|
1506
|
-
const
|
|
1506
|
+
const I = {
|
|
1507
1507
|
method: "GET",
|
|
1508
1508
|
headers: _a({ bearerToken: e })
|
|
1509
1509
|
};
|
|
1510
|
-
fetch(
|
|
1511
|
-
if (
|
|
1512
|
-
return
|
|
1513
|
-
throw
|
|
1514
|
-
}).then((
|
|
1515
|
-
|
|
1510
|
+
fetch(v, I).then((M) => {
|
|
1511
|
+
if (M.ok)
|
|
1512
|
+
return M.json();
|
|
1513
|
+
throw M.status === 401 ? new Error("Unauthorized, please check your bearer token") : new Error("Something went wrong");
|
|
1514
|
+
}).then((M) => {
|
|
1515
|
+
o(la(M));
|
|
1516
1516
|
});
|
|
1517
|
-
}, [e,
|
|
1518
|
-
if (
|
|
1519
|
-
const
|
|
1517
|
+
}, [e, v, u]), Q(() => {
|
|
1518
|
+
if (s && s.submissionStatus !== Ua.NotSubmitted) {
|
|
1519
|
+
const I = {
|
|
1520
1520
|
method: "GET",
|
|
1521
1521
|
headers: _a({ bearerToken: e })
|
|
1522
1522
|
};
|
|
1523
|
-
fetch(
|
|
1524
|
-
if (
|
|
1525
|
-
return
|
|
1523
|
+
fetch(m, I).then((M) => {
|
|
1524
|
+
if (M.ok)
|
|
1525
|
+
return M.json();
|
|
1526
1526
|
throw new Error("Something went wrong");
|
|
1527
|
-
}).then((
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1527
|
+
}).then((M) => {
|
|
1528
|
+
r(
|
|
1529
|
+
la(
|
|
1530
|
+
M
|
|
1531
1531
|
)
|
|
1532
1532
|
);
|
|
1533
1533
|
});
|
|
1534
1534
|
}
|
|
1535
|
-
}, [e,
|
|
1536
|
-
const
|
|
1535
|
+
}, [e, s, m]);
|
|
1536
|
+
const p = (s == null ? void 0 : s.submissionStatus) === Ua.NotSubmitted ? s.submissionStatus : (C = s == null ? void 0 : s.DAC7Interview) == null ? void 0 : C.dataCollectionStatus;
|
|
1537
1537
|
return {
|
|
1538
|
-
|
|
1539
|
-
formStatus:
|
|
1540
|
-
status:
|
|
1541
|
-
formSubmitted:
|
|
1542
|
-
serverData:
|
|
1538
|
+
postData: b,
|
|
1539
|
+
formStatus: p,
|
|
1540
|
+
status: s,
|
|
1541
|
+
formSubmitted: u,
|
|
1542
|
+
serverData: n
|
|
1543
1543
|
};
|
|
1544
1544
|
};
|
|
1545
|
-
var
|
|
1545
|
+
var ei = { exports: {} }, ra = {};
|
|
1546
1546
|
/**
|
|
1547
1547
|
* @license React
|
|
1548
1548
|
* react-jsx-runtime.production.min.js
|
|
@@ -1552,21 +1552,21 @@ var $a = { exports: {} }, ra = {};
|
|
|
1552
1552
|
* This source code is licensed under the MIT license found in the
|
|
1553
1553
|
* LICENSE file in the root directory of this source tree.
|
|
1554
1554
|
*/
|
|
1555
|
-
var
|
|
1556
|
-
function
|
|
1557
|
-
if (
|
|
1555
|
+
var Tn;
|
|
1556
|
+
function Vt() {
|
|
1557
|
+
if (Tn)
|
|
1558
1558
|
return ra;
|
|
1559
|
-
|
|
1560
|
-
var e =
|
|
1561
|
-
function u(
|
|
1559
|
+
Tn = 1;
|
|
1560
|
+
var e = On, 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
|
+
function u(d, l, m) {
|
|
1562
1562
|
var k, v = {}, b = null, p = null;
|
|
1563
|
-
m !== void 0 && (b = "" + m),
|
|
1564
|
-
for (k in
|
|
1565
|
-
r.call(
|
|
1566
|
-
if (
|
|
1567
|
-
for (k in
|
|
1568
|
-
v[k] === void 0 && (v[k] =
|
|
1569
|
-
return { $$typeof: a, type:
|
|
1563
|
+
m !== void 0 && (b = "" + m), l.key !== void 0 && (b = "" + l.key), l.ref !== void 0 && (p = l.ref);
|
|
1564
|
+
for (k in l)
|
|
1565
|
+
r.call(l, k) && !o.hasOwnProperty(k) && (v[k] = l[k]);
|
|
1566
|
+
if (d && d.defaultProps)
|
|
1567
|
+
for (k in l = d.defaultProps, l)
|
|
1568
|
+
v[k] === void 0 && (v[k] = l[k]);
|
|
1569
|
+
return { $$typeof: a, type: d, key: b, ref: p, props: v, _owner: s.current };
|
|
1570
1570
|
}
|
|
1571
1571
|
return ra.Fragment = n, ra.jsx = u, ra.jsxs = u, ra;
|
|
1572
1572
|
}
|
|
@@ -1580,57 +1580,57 @@ var oa = {};
|
|
|
1580
1580
|
* This source code is licensed under the MIT license found in the
|
|
1581
1581
|
* LICENSE file in the root directory of this source tree.
|
|
1582
1582
|
*/
|
|
1583
|
-
var
|
|
1584
|
-
function
|
|
1585
|
-
return
|
|
1586
|
-
var e =
|
|
1587
|
-
function
|
|
1583
|
+
var Mn;
|
|
1584
|
+
function Wt() {
|
|
1585
|
+
return Mn || (Mn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1586
|
+
var e = On, 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
|
+
function M(t) {
|
|
1588
1588
|
if (t === null || typeof t != "object")
|
|
1589
1589
|
return null;
|
|
1590
|
-
var
|
|
1591
|
-
return typeof
|
|
1590
|
+
var c = C && t[C] || t[I];
|
|
1591
|
+
return typeof c == "function" ? c : null;
|
|
1592
1592
|
}
|
|
1593
|
-
var
|
|
1594
|
-
function
|
|
1593
|
+
var G = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1594
|
+
function E(t) {
|
|
1595
1595
|
{
|
|
1596
|
-
for (var
|
|
1596
|
+
for (var c = arguments.length, g = new Array(c > 1 ? c - 1 : 0), A = 1; A < c; A++)
|
|
1597
1597
|
g[A - 1] = arguments[A];
|
|
1598
1598
|
_("error", t, g);
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
|
-
function _(t,
|
|
1601
|
+
function _(t, c, g) {
|
|
1602
1602
|
{
|
|
1603
|
-
var A =
|
|
1604
|
-
|
|
1605
|
-
var j = g.map(function(
|
|
1606
|
-
return String(
|
|
1603
|
+
var A = G.ReactDebugCurrentFrame, y = A.getStackAddendum();
|
|
1604
|
+
y !== "" && (c += "%s", g = g.concat([y]));
|
|
1605
|
+
var j = g.map(function(T) {
|
|
1606
|
+
return String(T);
|
|
1607
1607
|
});
|
|
1608
|
-
j.unshift("Warning: " +
|
|
1608
|
+
j.unshift("Warning: " + c), Function.prototype.apply.call(console[t], console, j);
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
1611
1611
|
var L = !1, ie = !1, ue = !1, be = !1, Ce = !1, te;
|
|
1612
1612
|
te = Symbol.for("react.module.reference");
|
|
1613
1613
|
function re(t) {
|
|
1614
|
-
return !!(typeof t == "string" || typeof t == "function" || t === r || t === o || Ce || t === s || t === m || t === k || be || t === p || L || ie || ue || typeof t == "object" && t !== null && (t.$$typeof === b || t.$$typeof === v || t.$$typeof === u || t.$$typeof ===
|
|
1614
|
+
return !!(typeof t == "string" || typeof t == "function" || t === r || t === o || Ce || t === s || t === m || t === k || be || t === p || L || ie || ue || typeof t == "object" && t !== null && (t.$$typeof === b || t.$$typeof === v || t.$$typeof === u || t.$$typeof === d || t.$$typeof === l || // This needs to include all possible module reference object
|
|
1615
1615
|
// types supported by any Flight configuration anywhere since
|
|
1616
1616
|
// we don't know which Flight build this will end up being used
|
|
1617
1617
|
// with.
|
|
1618
1618
|
t.$$typeof === te || t.getModuleId !== void 0));
|
|
1619
1619
|
}
|
|
1620
|
-
function Ne(t,
|
|
1620
|
+
function Ne(t, c, g) {
|
|
1621
1621
|
var A = t.displayName;
|
|
1622
1622
|
if (A)
|
|
1623
1623
|
return A;
|
|
1624
|
-
var
|
|
1625
|
-
return
|
|
1624
|
+
var y = c.displayName || c.name || "";
|
|
1625
|
+
return y !== "" ? g + "(" + y + ")" : g;
|
|
1626
1626
|
}
|
|
1627
1627
|
function oe(t) {
|
|
1628
1628
|
return t.displayName || "Context";
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function K(t) {
|
|
1631
1631
|
if (t == null)
|
|
1632
1632
|
return null;
|
|
1633
|
-
if (typeof t.tag == "number" &&
|
|
1633
|
+
if (typeof t.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
1634
1634
|
return t.displayName || t.name || null;
|
|
1635
1635
|
if (typeof t == "string")
|
|
1636
1636
|
return t;
|
|
@@ -1650,21 +1650,21 @@ function Ft() {
|
|
|
1650
1650
|
}
|
|
1651
1651
|
if (typeof t == "object")
|
|
1652
1652
|
switch (t.$$typeof) {
|
|
1653
|
-
case
|
|
1654
|
-
var
|
|
1655
|
-
return oe(
|
|
1653
|
+
case d:
|
|
1654
|
+
var c = t;
|
|
1655
|
+
return oe(c) + ".Consumer";
|
|
1656
1656
|
case u:
|
|
1657
1657
|
var g = t;
|
|
1658
1658
|
return oe(g._context) + ".Provider";
|
|
1659
|
-
case
|
|
1659
|
+
case l:
|
|
1660
1660
|
return Ne(t, t.render, "ForwardRef");
|
|
1661
1661
|
case v:
|
|
1662
1662
|
var A = t.displayName || null;
|
|
1663
|
-
return A !== null ? A :
|
|
1663
|
+
return A !== null ? A : K(t.type) || "Memo";
|
|
1664
1664
|
case b: {
|
|
1665
|
-
var
|
|
1665
|
+
var y = t, j = y._payload, T = y._init;
|
|
1666
1666
|
try {
|
|
1667
|
-
return
|
|
1667
|
+
return K(T(j));
|
|
1668
1668
|
} catch {
|
|
1669
1669
|
return null;
|
|
1670
1670
|
}
|
|
@@ -1672,14 +1672,14 @@ function Ft() {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
return null;
|
|
1674
1674
|
}
|
|
1675
|
-
var q = Object.assign, $ = 0, B,
|
|
1675
|
+
var q = Object.assign, $ = 0, B, V, ce, se, Re, Pe, we;
|
|
1676
1676
|
function Ge() {
|
|
1677
1677
|
}
|
|
1678
1678
|
Ge.__reactDisabledLog = !0;
|
|
1679
1679
|
function Ve() {
|
|
1680
1680
|
{
|
|
1681
1681
|
if ($ === 0) {
|
|
1682
|
-
B = console.log,
|
|
1682
|
+
B = console.log, V = console.info, ce = console.warn, se = console.error, Re = console.group, Pe = console.groupCollapsed, we = console.groupEnd;
|
|
1683
1683
|
var t = {
|
|
1684
1684
|
configurable: !0,
|
|
1685
1685
|
enumerable: !0,
|
|
@@ -1712,7 +1712,7 @@ function Ft() {
|
|
|
1712
1712
|
value: B
|
|
1713
1713
|
}),
|
|
1714
1714
|
info: q({}, t, {
|
|
1715
|
-
value:
|
|
1715
|
+
value: V
|
|
1716
1716
|
}),
|
|
1717
1717
|
warn: q({}, t, {
|
|
1718
1718
|
value: ce
|
|
@@ -1731,65 +1731,65 @@ function Ft() {
|
|
|
1731
1731
|
})
|
|
1732
1732
|
});
|
|
1733
1733
|
}
|
|
1734
|
-
$ < 0 &&
|
|
1734
|
+
$ < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
var
|
|
1738
|
-
function me(t,
|
|
1737
|
+
var w = G.ReactCurrentDispatcher, le;
|
|
1738
|
+
function me(t, c, g) {
|
|
1739
1739
|
{
|
|
1740
1740
|
if (le === void 0)
|
|
1741
1741
|
try {
|
|
1742
1742
|
throw Error();
|
|
1743
|
-
} catch (
|
|
1744
|
-
var A =
|
|
1743
|
+
} catch (y) {
|
|
1744
|
+
var A = y.stack.trim().match(/\n( *(at )?)/);
|
|
1745
1745
|
le = A && A[1] || "";
|
|
1746
1746
|
}
|
|
1747
1747
|
return `
|
|
1748
1748
|
` + le + t;
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
|
-
var Le = !1,
|
|
1751
|
+
var Le = !1, ye;
|
|
1752
1752
|
{
|
|
1753
|
-
var
|
|
1754
|
-
|
|
1753
|
+
var ca = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1754
|
+
ye = new ca();
|
|
1755
1755
|
}
|
|
1756
|
-
function We(t,
|
|
1756
|
+
function We(t, c) {
|
|
1757
1757
|
if (!t || Le)
|
|
1758
1758
|
return "";
|
|
1759
1759
|
{
|
|
1760
|
-
var g =
|
|
1760
|
+
var g = ye.get(t);
|
|
1761
1761
|
if (g !== void 0)
|
|
1762
1762
|
return g;
|
|
1763
1763
|
}
|
|
1764
1764
|
var A;
|
|
1765
1765
|
Le = !0;
|
|
1766
|
-
var
|
|
1766
|
+
var y = Error.prepareStackTrace;
|
|
1767
1767
|
Error.prepareStackTrace = void 0;
|
|
1768
1768
|
var j;
|
|
1769
|
-
j =
|
|
1769
|
+
j = w.current, w.current = null, Ve();
|
|
1770
1770
|
try {
|
|
1771
|
-
if (
|
|
1772
|
-
var
|
|
1771
|
+
if (c) {
|
|
1772
|
+
var T = function() {
|
|
1773
1773
|
throw Error();
|
|
1774
1774
|
};
|
|
1775
|
-
if (Object.defineProperty(
|
|
1775
|
+
if (Object.defineProperty(T.prototype, "props", {
|
|
1776
1776
|
set: function() {
|
|
1777
1777
|
throw Error();
|
|
1778
1778
|
}
|
|
1779
1779
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1780
1780
|
try {
|
|
1781
|
-
Reflect.construct(
|
|
1781
|
+
Reflect.construct(T, []);
|
|
1782
1782
|
} catch (ee) {
|
|
1783
1783
|
A = ee;
|
|
1784
1784
|
}
|
|
1785
|
-
Reflect.construct(t, [],
|
|
1785
|
+
Reflect.construct(t, [], T);
|
|
1786
1786
|
} else {
|
|
1787
1787
|
try {
|
|
1788
|
-
|
|
1788
|
+
T.call();
|
|
1789
1789
|
} catch (ee) {
|
|
1790
1790
|
A = ee;
|
|
1791
1791
|
}
|
|
1792
|
-
t.call(
|
|
1792
|
+
t.call(T.prototype);
|
|
1793
1793
|
}
|
|
1794
1794
|
} else {
|
|
1795
1795
|
try {
|
|
@@ -1803,39 +1803,39 @@ function Ft() {
|
|
|
1803
1803
|
if (ee && A && typeof ee.stack == "string") {
|
|
1804
1804
|
for (var N = ee.stack.split(`
|
|
1805
1805
|
`), D = A.stack.split(`
|
|
1806
|
-
`),
|
|
1807
|
-
|
|
1808
|
-
for (;
|
|
1809
|
-
if (N[
|
|
1810
|
-
if (
|
|
1806
|
+
`), R = N.length - 1, P = D.length - 1; R >= 1 && P >= 0 && N[R] !== D[P]; )
|
|
1807
|
+
P--;
|
|
1808
|
+
for (; R >= 1 && P >= 0; R--, P--)
|
|
1809
|
+
if (N[R] !== D[P]) {
|
|
1810
|
+
if (R !== 1 || P !== 1)
|
|
1811
1811
|
do
|
|
1812
|
-
if (
|
|
1812
|
+
if (R--, P--, P < 0 || N[R] !== D[P]) {
|
|
1813
1813
|
var W = `
|
|
1814
|
-
` + N[
|
|
1815
|
-
return t.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", t.displayName)), typeof t == "function" &&
|
|
1814
|
+
` + N[R].replace(" at new ", " at ");
|
|
1815
|
+
return t.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", t.displayName)), typeof t == "function" && ye.set(t, W), W;
|
|
1816
1816
|
}
|
|
1817
|
-
while (
|
|
1817
|
+
while (R >= 1 && P >= 0);
|
|
1818
1818
|
break;
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
1821
|
} finally {
|
|
1822
|
-
Le = !1,
|
|
1822
|
+
Le = !1, w.current = j, h(), Error.prepareStackTrace = y;
|
|
1823
1823
|
}
|
|
1824
1824
|
var ke = t ? t.displayName || t.name : "", ta = ke ? me(ke) : "";
|
|
1825
|
-
return typeof t == "function" &&
|
|
1825
|
+
return typeof t == "function" && ye.set(t, ta), ta;
|
|
1826
1826
|
}
|
|
1827
|
-
function
|
|
1827
|
+
function ma(t, c, g) {
|
|
1828
1828
|
return We(t, !1);
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1831
|
-
var
|
|
1832
|
-
return !!(
|
|
1830
|
+
function ga(t) {
|
|
1831
|
+
var c = t.prototype;
|
|
1832
|
+
return !!(c && c.isReactComponent);
|
|
1833
1833
|
}
|
|
1834
|
-
function
|
|
1834
|
+
function je(t, c, g) {
|
|
1835
1835
|
if (t == null)
|
|
1836
1836
|
return "";
|
|
1837
1837
|
if (typeof t == "function")
|
|
1838
|
-
return We(t,
|
|
1838
|
+
return We(t, ga(t));
|
|
1839
1839
|
if (typeof t == "string")
|
|
1840
1840
|
return me(t);
|
|
1841
1841
|
switch (t) {
|
|
@@ -1846,58 +1846,58 @@ function Ft() {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
if (typeof t == "object")
|
|
1848
1848
|
switch (t.$$typeof) {
|
|
1849
|
-
case
|
|
1850
|
-
return
|
|
1849
|
+
case l:
|
|
1850
|
+
return ma(t.render);
|
|
1851
1851
|
case v:
|
|
1852
|
-
return
|
|
1852
|
+
return je(t.type, c, g);
|
|
1853
1853
|
case b: {
|
|
1854
|
-
var A = t,
|
|
1854
|
+
var A = t, y = A._payload, j = A._init;
|
|
1855
1855
|
try {
|
|
1856
|
-
return
|
|
1856
|
+
return je(j(y), c, g);
|
|
1857
1857
|
} catch {
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
1860
|
}
|
|
1861
1861
|
return "";
|
|
1862
1862
|
}
|
|
1863
|
-
var
|
|
1864
|
-
function
|
|
1863
|
+
var Oe = Object.prototype.hasOwnProperty, Je = {}, Ze = G.ReactDebugCurrentFrame;
|
|
1864
|
+
function Be(t) {
|
|
1865
1865
|
if (t) {
|
|
1866
|
-
var
|
|
1866
|
+
var c = t._owner, g = je(t.type, t._source, c ? c.type : null);
|
|
1867
1867
|
Ze.setExtraStackFrame(g);
|
|
1868
1868
|
} else
|
|
1869
1869
|
Ze.setExtraStackFrame(null);
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function ka(t, c, g, A, y) {
|
|
1872
1872
|
{
|
|
1873
|
-
var j = Function.call.bind(
|
|
1874
|
-
for (var
|
|
1875
|
-
if (j(t,
|
|
1873
|
+
var j = Function.call.bind(Oe);
|
|
1874
|
+
for (var T in t)
|
|
1875
|
+
if (j(t, T)) {
|
|
1876
1876
|
var N = void 0;
|
|
1877
1877
|
try {
|
|
1878
|
-
if (typeof t[
|
|
1879
|
-
var D = Error((A || "React class") + ": " + g + " type `" +
|
|
1878
|
+
if (typeof t[T] != "function") {
|
|
1879
|
+
var D = Error((A || "React class") + ": " + g + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1880
1880
|
throw D.name = "Invariant Violation", D;
|
|
1881
1881
|
}
|
|
1882
|
-
N = t[
|
|
1883
|
-
} catch (
|
|
1884
|
-
N =
|
|
1882
|
+
N = t[T](c, T, A, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1883
|
+
} catch (R) {
|
|
1884
|
+
N = R;
|
|
1885
1885
|
}
|
|
1886
|
-
N && !(N instanceof Error) && (
|
|
1886
|
+
N && !(N instanceof Error) && (Be(y), E("%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).", A || "React class", g, T, typeof N), Be(null)), N instanceof Error && !(N.message in Je) && (Je[N.message] = !0, Be(y), E("Failed %s type: %s", g, N.message), Be(null));
|
|
1887
1887
|
}
|
|
1888
1888
|
}
|
|
1889
1889
|
}
|
|
1890
|
-
var
|
|
1890
|
+
var ha = Array.isArray;
|
|
1891
1891
|
function He(t) {
|
|
1892
|
-
return
|
|
1892
|
+
return ha(t);
|
|
1893
1893
|
}
|
|
1894
|
-
function
|
|
1894
|
+
function va(t) {
|
|
1895
1895
|
{
|
|
1896
|
-
var
|
|
1896
|
+
var c = typeof Symbol == "function" && Symbol.toStringTag, g = c && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
1897
1897
|
return g;
|
|
1898
1898
|
}
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function fa(t) {
|
|
1901
1901
|
try {
|
|
1902
1902
|
return qe(t), !1;
|
|
1903
1903
|
} catch {
|
|
@@ -1908,42 +1908,42 @@ function Ft() {
|
|
|
1908
1908
|
return "" + t;
|
|
1909
1909
|
}
|
|
1910
1910
|
function Ye(t) {
|
|
1911
|
-
if (
|
|
1912
|
-
return
|
|
1911
|
+
if (fa(t))
|
|
1912
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", va(t)), qe(t);
|
|
1913
1913
|
}
|
|
1914
|
-
var Se =
|
|
1914
|
+
var Se = G.ReactCurrentOwner, pa = {
|
|
1915
1915
|
key: !0,
|
|
1916
1916
|
ref: !0,
|
|
1917
1917
|
__self: !0,
|
|
1918
1918
|
__source: !0
|
|
1919
1919
|
}, _e, Qe, De;
|
|
1920
1920
|
De = {};
|
|
1921
|
-
function
|
|
1922
|
-
if (
|
|
1923
|
-
var
|
|
1924
|
-
if (
|
|
1921
|
+
function Aa(t) {
|
|
1922
|
+
if (Oe.call(t, "ref")) {
|
|
1923
|
+
var c = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
1924
|
+
if (c && c.isReactWarning)
|
|
1925
1925
|
return !1;
|
|
1926
1926
|
}
|
|
1927
1927
|
return t.ref !== void 0;
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1930
|
-
if (
|
|
1931
|
-
var
|
|
1932
|
-
if (
|
|
1929
|
+
function ba(t) {
|
|
1930
|
+
if (Oe.call(t, "key")) {
|
|
1931
|
+
var c = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
1932
|
+
if (c && c.isReactWarning)
|
|
1933
1933
|
return !1;
|
|
1934
1934
|
}
|
|
1935
1935
|
return t.key !== void 0;
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1938
|
-
if (typeof t.ref == "string" && Se.current &&
|
|
1939
|
-
var g =
|
|
1940
|
-
De[g] || (
|
|
1937
|
+
function Ca(t, c) {
|
|
1938
|
+
if (typeof t.ref == "string" && Se.current && c && Se.current.stateNode !== c) {
|
|
1939
|
+
var g = K(Se.current.type);
|
|
1940
|
+
De[g] || (E('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', K(Se.current.type), t.ref), De[g] = !0);
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function Na(t, c) {
|
|
1944
1944
|
{
|
|
1945
1945
|
var g = function() {
|
|
1946
|
-
_e || (_e = !0,
|
|
1946
|
+
_e || (_e = !0, E("%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)", c));
|
|
1947
1947
|
};
|
|
1948
1948
|
g.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
1949
1949
|
get: g,
|
|
@@ -1951,10 +1951,10 @@ function Ft() {
|
|
|
1951
1951
|
});
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function Sa(t, c) {
|
|
1955
1955
|
{
|
|
1956
1956
|
var g = function() {
|
|
1957
|
-
Qe || (Qe = !0,
|
|
1957
|
+
Qe || (Qe = !0, E("%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)", c));
|
|
1958
1958
|
};
|
|
1959
1959
|
g.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
1960
1960
|
get: g,
|
|
@@ -1962,15 +1962,15 @@ function Ft() {
|
|
|
1962
1962
|
});
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
1965
|
-
var
|
|
1965
|
+
var Ia = function(t, c, g, A, y, j, T) {
|
|
1966
1966
|
var N = {
|
|
1967
1967
|
// This tag allows us to uniquely identify this as a React Element
|
|
1968
1968
|
$$typeof: a,
|
|
1969
1969
|
// Built-in properties that belong on the element
|
|
1970
1970
|
type: t,
|
|
1971
|
-
key:
|
|
1971
|
+
key: c,
|
|
1972
1972
|
ref: g,
|
|
1973
|
-
props:
|
|
1973
|
+
props: T,
|
|
1974
1974
|
// Record the component responsible for creating this element.
|
|
1975
1975
|
_owner: j
|
|
1976
1976
|
};
|
|
@@ -1988,31 +1988,31 @@ function Ft() {
|
|
|
1988
1988
|
configurable: !1,
|
|
1989
1989
|
enumerable: !1,
|
|
1990
1990
|
writable: !1,
|
|
1991
|
-
value:
|
|
1991
|
+
value: y
|
|
1992
1992
|
}), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
|
|
1993
1993
|
};
|
|
1994
|
-
function
|
|
1994
|
+
function Ta(t, c, g, A, y) {
|
|
1995
1995
|
{
|
|
1996
|
-
var j,
|
|
1997
|
-
g !== void 0 && (Ye(g), N = "" + g),
|
|
1998
|
-
for (j in
|
|
1999
|
-
|
|
1996
|
+
var j, T = {}, N = null, D = null;
|
|
1997
|
+
g !== void 0 && (Ye(g), N = "" + g), ba(c) && (Ye(c.key), N = "" + c.key), Aa(c) && (D = c.ref, Ca(c, y));
|
|
1998
|
+
for (j in c)
|
|
1999
|
+
Oe.call(c, j) && !pa.hasOwnProperty(j) && (T[j] = c[j]);
|
|
2000
2000
|
if (t && t.defaultProps) {
|
|
2001
|
-
var
|
|
2002
|
-
for (j in
|
|
2003
|
-
|
|
2001
|
+
var R = t.defaultProps;
|
|
2002
|
+
for (j in R)
|
|
2003
|
+
T[j] === void 0 && (T[j] = R[j]);
|
|
2004
2004
|
}
|
|
2005
2005
|
if (N || D) {
|
|
2006
|
-
var
|
|
2007
|
-
N &&
|
|
2006
|
+
var P = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
2007
|
+
N && Na(T, P), D && Sa(T, P);
|
|
2008
2008
|
}
|
|
2009
|
-
return
|
|
2009
|
+
return Ia(t, N, D, y, A, Se.current, T);
|
|
2010
2010
|
}
|
|
2011
2011
|
}
|
|
2012
|
-
var Fe =
|
|
2012
|
+
var Fe = G.ReactCurrentOwner, Xe = G.ReactDebugCurrentFrame;
|
|
2013
2013
|
function ge(t) {
|
|
2014
2014
|
if (t) {
|
|
2015
|
-
var
|
|
2015
|
+
var c = t._owner, g = je(t.type, t._source, c ? c.type : null);
|
|
2016
2016
|
Xe.setExtraStackFrame(g);
|
|
2017
2017
|
} else
|
|
2018
2018
|
Xe.setExtraStackFrame(null);
|
|
@@ -2025,7 +2025,7 @@ function Ft() {
|
|
|
2025
2025
|
function $e() {
|
|
2026
2026
|
{
|
|
2027
2027
|
if (Fe.current) {
|
|
2028
|
-
var t =
|
|
2028
|
+
var t = K(Fe.current.type);
|
|
2029
2029
|
if (t)
|
|
2030
2030
|
return `
|
|
2031
2031
|
|
|
@@ -2034,115 +2034,115 @@ Check the render method of \`` + t + "`.";
|
|
|
2034
2034
|
return "";
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2037
|
+
function Ma(t) {
|
|
2038
2038
|
{
|
|
2039
2039
|
if (t !== void 0) {
|
|
2040
|
-
var
|
|
2040
|
+
var c = t.fileName.replace(/^.*[\\\/]/, ""), g = t.lineNumber;
|
|
2041
2041
|
return `
|
|
2042
2042
|
|
|
2043
|
-
Check your code at ` +
|
|
2043
|
+
Check your code at ` + c + ":" + g + ".";
|
|
2044
2044
|
}
|
|
2045
2045
|
return "";
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
var ea = {};
|
|
2049
|
-
function
|
|
2049
|
+
function ya(t) {
|
|
2050
2050
|
{
|
|
2051
|
-
var
|
|
2052
|
-
if (!
|
|
2051
|
+
var c = $e();
|
|
2052
|
+
if (!c) {
|
|
2053
2053
|
var g = typeof t == "string" ? t : t.displayName || t.name;
|
|
2054
|
-
g && (
|
|
2054
|
+
g && (c = `
|
|
2055
2055
|
|
|
2056
2056
|
Check the top-level render call using <` + g + ">.");
|
|
2057
2057
|
}
|
|
2058
|
-
return
|
|
2058
|
+
return c;
|
|
2059
2059
|
}
|
|
2060
2060
|
}
|
|
2061
|
-
function aa(t,
|
|
2061
|
+
function aa(t, c) {
|
|
2062
2062
|
{
|
|
2063
2063
|
if (!t._store || t._store.validated || t.key != null)
|
|
2064
2064
|
return;
|
|
2065
2065
|
t._store.validated = !0;
|
|
2066
|
-
var g =
|
|
2066
|
+
var g = ya(c);
|
|
2067
2067
|
if (ea[g])
|
|
2068
2068
|
return;
|
|
2069
2069
|
ea[g] = !0;
|
|
2070
2070
|
var A = "";
|
|
2071
|
-
t && t._owner && t._owner !== Fe.current && (A = " It was passed a child from " +
|
|
2071
|
+
t && t._owner && t._owner !== Fe.current && (A = " It was passed a child from " + K(t._owner.type) + "."), ge(t), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, A), ge(null);
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
|
-
function ia(t,
|
|
2074
|
+
function ia(t, c) {
|
|
2075
2075
|
{
|
|
2076
2076
|
if (typeof t != "object")
|
|
2077
2077
|
return;
|
|
2078
2078
|
if (He(t))
|
|
2079
2079
|
for (var g = 0; g < t.length; g++) {
|
|
2080
2080
|
var A = t[g];
|
|
2081
|
-
Ue(A) && aa(A,
|
|
2081
|
+
Ue(A) && aa(A, c);
|
|
2082
2082
|
}
|
|
2083
2083
|
else if (Ue(t))
|
|
2084
2084
|
t._store && (t._store.validated = !0);
|
|
2085
2085
|
else if (t) {
|
|
2086
|
-
var
|
|
2087
|
-
if (typeof
|
|
2088
|
-
for (var j =
|
|
2089
|
-
Ue(
|
|
2086
|
+
var y = M(t);
|
|
2087
|
+
if (typeof y == "function" && y !== t.entries)
|
|
2088
|
+
for (var j = y.call(t), T; !(T = j.next()).done; )
|
|
2089
|
+
Ue(T.value) && aa(T.value, c);
|
|
2090
2090
|
}
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function ja(t) {
|
|
2094
2094
|
{
|
|
2095
|
-
var
|
|
2096
|
-
if (
|
|
2095
|
+
var c = t.type;
|
|
2096
|
+
if (c == null || typeof c == "string")
|
|
2097
2097
|
return;
|
|
2098
2098
|
var g;
|
|
2099
|
-
if (typeof
|
|
2100
|
-
g =
|
|
2101
|
-
else if (typeof
|
|
2099
|
+
if (typeof c == "function")
|
|
2100
|
+
g = c.propTypes;
|
|
2101
|
+
else if (typeof c == "object" && (c.$$typeof === l || // Note: Memo only checks outer props here.
|
|
2102
2102
|
// Inner props are checked in the reconciler.
|
|
2103
|
-
|
|
2104
|
-
g =
|
|
2103
|
+
c.$$typeof === v))
|
|
2104
|
+
g = c.propTypes;
|
|
2105
2105
|
else
|
|
2106
2106
|
return;
|
|
2107
2107
|
if (g) {
|
|
2108
|
-
var A =
|
|
2109
|
-
|
|
2110
|
-
} else if (
|
|
2108
|
+
var A = K(c);
|
|
2109
|
+
ka(g, t.props, "prop", A, t);
|
|
2110
|
+
} else if (c.PropTypes !== void 0 && !xe) {
|
|
2111
2111
|
xe = !0;
|
|
2112
|
-
var
|
|
2113
|
-
|
|
2112
|
+
var y = K(c);
|
|
2113
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
|
|
2114
2114
|
}
|
|
2115
|
-
typeof
|
|
2115
|
+
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2116
2116
|
}
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2118
|
+
function Oa(t) {
|
|
2119
2119
|
{
|
|
2120
|
-
for (var
|
|
2121
|
-
var A =
|
|
2120
|
+
for (var c = Object.keys(t.props), g = 0; g < c.length; g++) {
|
|
2121
|
+
var A = c[g];
|
|
2122
2122
|
if (A !== "children" && A !== "key") {
|
|
2123
|
-
ge(t),
|
|
2123
|
+
ge(t), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), ge(null);
|
|
2124
2124
|
break;
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
2127
|
-
t.ref !== null && (ge(t),
|
|
2127
|
+
t.ref !== null && (ge(t), E("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
2130
|
-
function na(t,
|
|
2130
|
+
function na(t, c, g, A, y, j) {
|
|
2131
2131
|
{
|
|
2132
|
-
var
|
|
2133
|
-
if (!
|
|
2132
|
+
var T = re(t);
|
|
2133
|
+
if (!T) {
|
|
2134
2134
|
var N = "";
|
|
2135
2135
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2136
|
-
var D =
|
|
2136
|
+
var D = Ma(y);
|
|
2137
2137
|
D ? N += D : N += $e();
|
|
2138
|
-
var
|
|
2139
|
-
t === null ?
|
|
2138
|
+
var R;
|
|
2139
|
+
t === null ? R = "null" : He(t) ? R = "array" : t !== void 0 && t.$$typeof === a ? (R = "<" + (K(t.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : R = typeof t, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, N);
|
|
2140
2140
|
}
|
|
2141
|
-
var
|
|
2142
|
-
if (
|
|
2143
|
-
return
|
|
2144
|
-
if (
|
|
2145
|
-
var W =
|
|
2141
|
+
var P = Ta(t, c, g, y, j);
|
|
2142
|
+
if (P == null)
|
|
2143
|
+
return P;
|
|
2144
|
+
if (T) {
|
|
2145
|
+
var W = c.children;
|
|
2146
2146
|
if (W !== void 0)
|
|
2147
2147
|
if (A)
|
|
2148
2148
|
if (He(W)) {
|
|
@@ -2150,26 +2150,26 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2150
2150
|
ia(W[ke], t);
|
|
2151
2151
|
Object.freeze && Object.freeze(W);
|
|
2152
2152
|
} else
|
|
2153
|
-
|
|
2153
|
+
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
2154
2154
|
else
|
|
2155
2155
|
ia(W, t);
|
|
2156
2156
|
}
|
|
2157
|
-
return t === r ?
|
|
2157
|
+
return t === r ? Oa(P) : ja(P), P;
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
|
-
function
|
|
2161
|
-
return na(t,
|
|
2160
|
+
function Ba(t, c, g) {
|
|
2161
|
+
return na(t, c, g, !0);
|
|
2162
2162
|
}
|
|
2163
|
-
function
|
|
2164
|
-
return na(t,
|
|
2163
|
+
function za(t, c, g) {
|
|
2164
|
+
return na(t, c, g, !1);
|
|
2165
2165
|
}
|
|
2166
|
-
var
|
|
2167
|
-
oa.Fragment = r, oa.jsx =
|
|
2166
|
+
var Ea = za, Ra = Ba;
|
|
2167
|
+
oa.Fragment = r, oa.jsx = Ea, oa.jsxs = Ra;
|
|
2168
2168
|
}()), oa;
|
|
2169
2169
|
}
|
|
2170
|
-
process.env.NODE_ENV === "production" ?
|
|
2171
|
-
var i =
|
|
2172
|
-
const
|
|
2170
|
+
process.env.NODE_ENV === "production" ? ei.exports = Vt() : ei.exports = Wt();
|
|
2171
|
+
var i = ei.exports;
|
|
2172
|
+
const Jt = {
|
|
2173
2173
|
button: {
|
|
2174
2174
|
back: "Назад",
|
|
2175
2175
|
cancel: "Отказ",
|
|
@@ -2723,7 +2723,7 @@ const xt = {
|
|
|
2723
2723
|
"sl-si": "Словенски",
|
|
2724
2724
|
"sv-se": "Шведски"
|
|
2725
2725
|
}
|
|
2726
|
-
},
|
|
2726
|
+
}, Zt = {
|
|
2727
2727
|
button: {
|
|
2728
2728
|
back: "Zpět",
|
|
2729
2729
|
cancel: "Zrušit",
|
|
@@ -3277,7 +3277,7 @@ const xt = {
|
|
|
3277
3277
|
"sl-si": "Slovinsky",
|
|
3278
3278
|
"sv-se": "Švédsky"
|
|
3279
3279
|
}
|
|
3280
|
-
},
|
|
3280
|
+
}, qt = {
|
|
3281
3281
|
button: {
|
|
3282
3282
|
back: "Tilbage",
|
|
3283
3283
|
cancel: "Annuller",
|
|
@@ -3831,7 +3831,7 @@ const xt = {
|
|
|
3831
3831
|
"sl-si": "Slovensk",
|
|
3832
3832
|
"sv-se": "Svensk"
|
|
3833
3833
|
}
|
|
3834
|
-
},
|
|
3834
|
+
}, Yt = {
|
|
3835
3835
|
button: {
|
|
3836
3836
|
back: "Zurück",
|
|
3837
3837
|
cancel: "Abbrechen",
|
|
@@ -4385,7 +4385,7 @@ const xt = {
|
|
|
4385
4385
|
"sl-si": "Slowenisch",
|
|
4386
4386
|
"sv-se": "Schwedisch"
|
|
4387
4387
|
}
|
|
4388
|
-
},
|
|
4388
|
+
}, _t = {
|
|
4389
4389
|
button: {
|
|
4390
4390
|
back: "Zurück",
|
|
4391
4391
|
cancel: "Abbrechen",
|
|
@@ -4939,7 +4939,7 @@ const xt = {
|
|
|
4939
4939
|
"sl-si": "Slowenisch",
|
|
4940
4940
|
"sv-se": "Schwedisch"
|
|
4941
4941
|
}
|
|
4942
|
-
},
|
|
4942
|
+
}, Qt = {
|
|
4943
4943
|
button: {
|
|
4944
4944
|
back: "Πίσω",
|
|
4945
4945
|
cancel: "Άκυρο",
|
|
@@ -5493,7 +5493,7 @@ const xt = {
|
|
|
5493
5493
|
"sl-si": "Σλοβενικά",
|
|
5494
5494
|
"sv-se": "Σουηδικά"
|
|
5495
5495
|
}
|
|
5496
|
-
},
|
|
5496
|
+
}, Xt = {
|
|
5497
5497
|
button: {
|
|
5498
5498
|
back: "Πίσω",
|
|
5499
5499
|
cancel: "Άκυρο",
|
|
@@ -6047,7 +6047,7 @@ const xt = {
|
|
|
6047
6047
|
"sl-si": "Σλοβενικά",
|
|
6048
6048
|
"sv-se": "Σουηδικά"
|
|
6049
6049
|
}
|
|
6050
|
-
},
|
|
6050
|
+
}, $t = {
|
|
6051
6051
|
button: {
|
|
6052
6052
|
back: "Back",
|
|
6053
6053
|
cancel: "Cancel",
|
|
@@ -6601,7 +6601,7 @@ const xt = {
|
|
|
6601
6601
|
11: "November",
|
|
6602
6602
|
12: "December"
|
|
6603
6603
|
}
|
|
6604
|
-
},
|
|
6604
|
+
}, er = {
|
|
6605
6605
|
button: {
|
|
6606
6606
|
back: "Back",
|
|
6607
6607
|
cancel: "Cancel",
|
|
@@ -7155,7 +7155,7 @@ const xt = {
|
|
|
7155
7155
|
"sl-si": "Slovenian",
|
|
7156
7156
|
"sv-se": "Swedish"
|
|
7157
7157
|
}
|
|
7158
|
-
},
|
|
7158
|
+
}, ar = {
|
|
7159
7159
|
button: {
|
|
7160
7160
|
back: "Atrás",
|
|
7161
7161
|
cancel: "Cancelar",
|
|
@@ -7709,7 +7709,7 @@ const xt = {
|
|
|
7709
7709
|
11: "Noviembre",
|
|
7710
7710
|
12: "Diciembre"
|
|
7711
7711
|
}
|
|
7712
|
-
},
|
|
7712
|
+
}, ir = {
|
|
7713
7713
|
button: {
|
|
7714
7714
|
back: "Tagasi",
|
|
7715
7715
|
cancel: "Tühista",
|
|
@@ -8263,7 +8263,7 @@ const xt = {
|
|
|
8263
8263
|
"sl-si": "Sloveenia",
|
|
8264
8264
|
"sv-se": "Rootsi Keel"
|
|
8265
8265
|
}
|
|
8266
|
-
},
|
|
8266
|
+
}, nr = {
|
|
8267
8267
|
button: {
|
|
8268
8268
|
back: "Takaisin",
|
|
8269
8269
|
cancel: "Peruuta",
|
|
@@ -8817,7 +8817,7 @@ const xt = {
|
|
|
8817
8817
|
"sl-si": "Slovenia",
|
|
8818
8818
|
"sv-se": "Ruotsi"
|
|
8819
8819
|
}
|
|
8820
|
-
},
|
|
8820
|
+
}, tr = {
|
|
8821
8821
|
button: {
|
|
8822
8822
|
back: "Retour",
|
|
8823
8823
|
cancel: "Annuler",
|
|
@@ -9371,7 +9371,7 @@ const xt = {
|
|
|
9371
9371
|
11: "Novembre",
|
|
9372
9372
|
12: "Décembre"
|
|
9373
9373
|
}
|
|
9374
|
-
},
|
|
9374
|
+
}, rr = {
|
|
9375
9375
|
button: {
|
|
9376
9376
|
back: "Retour",
|
|
9377
9377
|
cancel: "Annuler",
|
|
@@ -9925,7 +9925,7 @@ const xt = {
|
|
|
9925
9925
|
"sl-si": "Slovène",
|
|
9926
9926
|
"sv-se": "Suédois"
|
|
9927
9927
|
}
|
|
9928
|
-
},
|
|
9928
|
+
}, or = {
|
|
9929
9929
|
button: {
|
|
9930
9930
|
back: "Siar",
|
|
9931
9931
|
cancel: "Cealaigh",
|
|
@@ -10479,7 +10479,7 @@ const xt = {
|
|
|
10479
10479
|
"sl-si": "Slóivéinis",
|
|
10480
10480
|
"sv-se": "Sualainnis"
|
|
10481
10481
|
}
|
|
10482
|
-
},
|
|
10482
|
+
}, sr = {
|
|
10483
10483
|
button: {
|
|
10484
10484
|
back: "Natrag",
|
|
10485
10485
|
cancel: "Odustani",
|
|
@@ -11033,7 +11033,7 @@ const xt = {
|
|
|
11033
11033
|
"sl-si": "Slovenski",
|
|
11034
11034
|
"sv-se": "Švedski"
|
|
11035
11035
|
}
|
|
11036
|
-
},
|
|
11036
|
+
}, lr = {
|
|
11037
11037
|
button: {
|
|
11038
11038
|
back: "Vissza",
|
|
11039
11039
|
cancel: "Mégse",
|
|
@@ -11587,7 +11587,7 @@ const xt = {
|
|
|
11587
11587
|
"sl-si": "Szlovén",
|
|
11588
11588
|
"sv-se": "Svéd"
|
|
11589
11589
|
}
|
|
11590
|
-
},
|
|
11590
|
+
}, dr = {
|
|
11591
11591
|
button: {
|
|
11592
11592
|
back: "Indietro",
|
|
11593
11593
|
cancel: "Annulla",
|
|
@@ -12141,7 +12141,7 @@ const xt = {
|
|
|
12141
12141
|
"sl-si": "Sloveno",
|
|
12142
12142
|
"sv-se": "Svedese"
|
|
12143
12143
|
}
|
|
12144
|
-
},
|
|
12144
|
+
}, ur = {
|
|
12145
12145
|
button: {
|
|
12146
12146
|
back: "Atgal",
|
|
12147
12147
|
cancel: "Atšaukti",
|
|
@@ -12695,7 +12695,7 @@ const xt = {
|
|
|
12695
12695
|
"sl-si": "Slovėnų",
|
|
12696
12696
|
"sv-se": "Švedų"
|
|
12697
12697
|
}
|
|
12698
|
-
},
|
|
12698
|
+
}, cr = {
|
|
12699
12699
|
button: {
|
|
12700
12700
|
back: "Aizmugure",
|
|
12701
12701
|
cancel: "Atcelt",
|
|
@@ -13249,7 +13249,7 @@ const xt = {
|
|
|
13249
13249
|
"sl-si": "Slovēņu",
|
|
13250
13250
|
"sv-se": "Zviedru"
|
|
13251
13251
|
}
|
|
13252
|
-
},
|
|
13252
|
+
}, mr = {
|
|
13253
13253
|
button: {
|
|
13254
13254
|
back: "Lura",
|
|
13255
13255
|
cancel: "Ikkanċella",
|
|
@@ -13803,7 +13803,7 @@ const xt = {
|
|
|
13803
13803
|
"sl-si": "Sloven",
|
|
13804
13804
|
"sv-se": "Svediż"
|
|
13805
13805
|
}
|
|
13806
|
-
},
|
|
13806
|
+
}, gr = {
|
|
13807
13807
|
button: {
|
|
13808
13808
|
back: "Terug",
|
|
13809
13809
|
cancel: "Annuleren",
|
|
@@ -14357,7 +14357,7 @@ const xt = {
|
|
|
14357
14357
|
"sl-si": "Sloveens",
|
|
14358
14358
|
"sv-se": "Zweeds"
|
|
14359
14359
|
}
|
|
14360
|
-
},
|
|
14360
|
+
}, kr = {
|
|
14361
14361
|
button: {
|
|
14362
14362
|
back: "Terug",
|
|
14363
14363
|
cancel: "Annuleren",
|
|
@@ -14911,7 +14911,7 @@ const xt = {
|
|
|
14911
14911
|
11: "November",
|
|
14912
14912
|
12: "December"
|
|
14913
14913
|
}
|
|
14914
|
-
},
|
|
14914
|
+
}, hr = {
|
|
14915
14915
|
button: {
|
|
14916
14916
|
back: "Tilbake",
|
|
14917
14917
|
cancel: "Avbryt",
|
|
@@ -15465,7 +15465,7 @@ const xt = {
|
|
|
15465
15465
|
"sl-si": "Slovensk",
|
|
15466
15466
|
"sv-se": "Svensk"
|
|
15467
15467
|
}
|
|
15468
|
-
},
|
|
15468
|
+
}, vr = {
|
|
15469
15469
|
button: {
|
|
15470
15470
|
back: "Wstecz",
|
|
15471
15471
|
cancel: "Anuluj",
|
|
@@ -16019,7 +16019,7 @@ const xt = {
|
|
|
16019
16019
|
"sl-si": "Słoweński",
|
|
16020
16020
|
"sv-se": "Szwedzki"
|
|
16021
16021
|
}
|
|
16022
|
-
},
|
|
16022
|
+
}, fr = {
|
|
16023
16023
|
button: {
|
|
16024
16024
|
back: "Voltar",
|
|
16025
16025
|
cancel: "Cancelar",
|
|
@@ -16573,7 +16573,7 @@ const xt = {
|
|
|
16573
16573
|
11: "Novembro",
|
|
16574
16574
|
12: "Dezembro"
|
|
16575
16575
|
}
|
|
16576
|
-
},
|
|
16576
|
+
}, pr = {
|
|
16577
16577
|
button: {
|
|
16578
16578
|
back: "Înapoi",
|
|
16579
16579
|
cancel: "Anulați",
|
|
@@ -17127,7 +17127,7 @@ const xt = {
|
|
|
17127
17127
|
"sl-si": "Slovenă",
|
|
17128
17128
|
"sv-se": "Suedez"
|
|
17129
17129
|
}
|
|
17130
|
-
},
|
|
17130
|
+
}, Ar = {
|
|
17131
17131
|
button: {
|
|
17132
17132
|
back: "Späť",
|
|
17133
17133
|
cancel: "Zrušiť",
|
|
@@ -17681,7 +17681,7 @@ const xt = {
|
|
|
17681
17681
|
"sl-si": "Slovensky",
|
|
17682
17682
|
"sv-se": "Švédsky"
|
|
17683
17683
|
}
|
|
17684
|
-
},
|
|
17684
|
+
}, br = {
|
|
17685
17685
|
button: {
|
|
17686
17686
|
back: "Nazaj",
|
|
17687
17687
|
cancel: "Prekliči",
|
|
@@ -18235,7 +18235,7 @@ const xt = {
|
|
|
18235
18235
|
"sl-si": "Slovenščina",
|
|
18236
18236
|
"sv-se": "Švedščina"
|
|
18237
18237
|
}
|
|
18238
|
-
},
|
|
18238
|
+
}, Cr = {
|
|
18239
18239
|
button: {
|
|
18240
18240
|
back: "Tillbaka",
|
|
18241
18241
|
cancel: "Avbryt",
|
|
@@ -18790,137 +18790,137 @@ const xt = {
|
|
|
18790
18790
|
12: "December"
|
|
18791
18791
|
}
|
|
18792
18792
|
}, Qa = {
|
|
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
|
-
},
|
|
18793
|
+
"bg-bg": Jt,
|
|
18794
|
+
"cs-cz": Zt,
|
|
18795
|
+
"da-dk": qt,
|
|
18796
|
+
"de-at": Yt,
|
|
18797
|
+
"de-de": _t,
|
|
18798
|
+
"el-gr": Xt,
|
|
18799
|
+
"el-cy": Qt,
|
|
18800
|
+
"en-gb": $t,
|
|
18801
|
+
"en-us": er,
|
|
18802
|
+
"es-es": ar,
|
|
18803
|
+
"et-ee": ir,
|
|
18804
|
+
"fi-fi": nr,
|
|
18805
|
+
"fr-fr": tr,
|
|
18806
|
+
"fr-lu": rr,
|
|
18807
|
+
"ga-ie": or,
|
|
18808
|
+
"hr-hr": sr,
|
|
18809
|
+
"hu-hu": lr,
|
|
18810
|
+
"it-it": dr,
|
|
18811
|
+
"lt-lt": ur,
|
|
18812
|
+
"lv-lv": cr,
|
|
18813
|
+
"mt-mt": mr,
|
|
18814
|
+
"nl-be": gr,
|
|
18815
|
+
"nl-nl": kr,
|
|
18816
|
+
"no-no": hr,
|
|
18817
|
+
"pl-pl": vr,
|
|
18818
|
+
"pt-pt": fr,
|
|
18819
|
+
"ro-ro": pr,
|
|
18820
|
+
"sk-sk": Ar,
|
|
18821
|
+
"sl-si": br,
|
|
18822
|
+
"sv-se": Cr
|
|
18823
|
+
}, yn = (e, a) => {
|
|
18824
18824
|
const n = Z(a).prompt[e];
|
|
18825
18825
|
return n || (console.log(
|
|
18826
18826
|
'Missing prompt for key: "' + e + '" in locale: "' + a + '"'
|
|
18827
18827
|
), e);
|
|
18828
|
-
},
|
|
18828
|
+
}, Nr = (e, a) => {
|
|
18829
18829
|
const n = Z(a).subPrompt[e];
|
|
18830
18830
|
return n || (console.log(
|
|
18831
18831
|
'Missing subPrompt for key: "' + e + '" in locale: "' + a + '"'
|
|
18832
18832
|
), e);
|
|
18833
|
-
},
|
|
18833
|
+
}, Sr = (e, a) => {
|
|
18834
18834
|
const n = Z(a).error[e];
|
|
18835
18835
|
return n || (console.log(
|
|
18836
18836
|
'Missing error for key: "' + e + '" in locale: "' + a + '"'
|
|
18837
18837
|
), e);
|
|
18838
|
-
},
|
|
18838
|
+
}, Ir = (e, a) => {
|
|
18839
18839
|
const n = Z(a).hint[e];
|
|
18840
18840
|
return n || (console.log(
|
|
18841
18841
|
'Missing hint for key: "' + e + '" in locale: "' + a + '"'
|
|
18842
18842
|
), e);
|
|
18843
|
-
},
|
|
18843
|
+
}, ai = (e, a) => {
|
|
18844
18844
|
const n = Z(a).text[e];
|
|
18845
18845
|
return n || (console.log(
|
|
18846
18846
|
'Missing text for key: "' + e + '" in locale: "' + a + '"'
|
|
18847
18847
|
), e);
|
|
18848
|
-
},
|
|
18848
|
+
}, Tr = (e, a) => {
|
|
18849
18849
|
const n = Z(a).title[e];
|
|
18850
18850
|
return n || (console.log(
|
|
18851
18851
|
'Missing title for key: "' + e + '" in locale: "' + a + '"'
|
|
18852
18852
|
), e);
|
|
18853
|
-
},
|
|
18853
|
+
}, Mr = (e, a) => {
|
|
18854
18854
|
const n = Z(a).subTitle[e];
|
|
18855
18855
|
return n || (console.log(
|
|
18856
18856
|
'Missing subTitle for key: "' + e + '" in locale: "' + a + '"'
|
|
18857
18857
|
), e);
|
|
18858
|
-
},
|
|
18858
|
+
}, yr = (e, a) => {
|
|
18859
18859
|
const n = Z(a).button[e];
|
|
18860
18860
|
return n || (console.log(
|
|
18861
18861
|
'Missing button for key: "' + e + '" in locale: "' + a + '"'
|
|
18862
18862
|
), e);
|
|
18863
|
-
},
|
|
18863
|
+
}, jn = (e, a) => {
|
|
18864
18864
|
if (!e)
|
|
18865
18865
|
return "";
|
|
18866
18866
|
const n = Z(a).option[e];
|
|
18867
18867
|
return n || (console.log(
|
|
18868
18868
|
'Missing option for key: "' + e + '" in locale: "' + a + '"'
|
|
18869
18869
|
), e);
|
|
18870
|
-
},
|
|
18870
|
+
}, jr = (e, a) => {
|
|
18871
18871
|
if (!e)
|
|
18872
18872
|
return "";
|
|
18873
18873
|
const n = Z(a).notification[e];
|
|
18874
18874
|
return n || (console.log(
|
|
18875
18875
|
'Missing notification for key: "' + e + '" in locale: "' + a + '"'
|
|
18876
18876
|
), e);
|
|
18877
|
-
},
|
|
18877
|
+
}, Or = (e, a) => {
|
|
18878
18878
|
const n = Z(a).country[e];
|
|
18879
18879
|
return n || (console.log(
|
|
18880
18880
|
'Missing country for key: "' + e + '" in locale: "' + a + '"'
|
|
18881
18881
|
), e);
|
|
18882
|
-
},
|
|
18882
|
+
}, Br = (e, a) => {
|
|
18883
18883
|
const n = Z(a).usState[e];
|
|
18884
18884
|
return n || (console.log(
|
|
18885
18885
|
'Missing usState for key: "' + e + '" in locale: "' + a + '"'
|
|
18886
18886
|
), e);
|
|
18887
|
-
},
|
|
18887
|
+
}, zr = (e, a) => {
|
|
18888
18888
|
const n = Z(a).caProvince[e];
|
|
18889
18889
|
return n || (console.log(
|
|
18890
18890
|
'Missing caProvince for key: "' + e + '" in locale: "' + a + '"'
|
|
18891
18891
|
), e);
|
|
18892
|
-
},
|
|
18892
|
+
}, Er = (e, a) => {
|
|
18893
18893
|
const n = Z(a).month[e];
|
|
18894
18894
|
return n || (console.log(
|
|
18895
18895
|
'Missing month for key: "' + e + '" in locale: "' + a + '"'
|
|
18896
18896
|
), e);
|
|
18897
|
-
},
|
|
18897
|
+
}, Rr = (e, a) => {
|
|
18898
18898
|
const n = Z(a).locale[e];
|
|
18899
18899
|
return n || (console.log(
|
|
18900
18900
|
'Missing locale for key: "' + e + '" in locale: "' + a + '"'
|
|
18901
18901
|
), e);
|
|
18902
|
-
}, Z = (e = "en-us") => Qa[e] ? Qa[e] : (console.log(`Locale '${e}' not found. Using en-us`), Qa["en-us"]),
|
|
18903
|
-
const e =
|
|
18902
|
+
}, Z = (e = "en-us") => Qa[e] ? Qa[e] : (console.log(`Locale '${e}' not found. Using en-us`), Qa["en-us"]), Fn = () => {
|
|
18903
|
+
const e = Jn(void 0);
|
|
18904
18904
|
return [() => {
|
|
18905
|
-
const n =
|
|
18905
|
+
const n = Zn(e);
|
|
18906
18906
|
if (n === void 0)
|
|
18907
18907
|
throw new Error("useCtx must be inside a Provider with a value");
|
|
18908
18908
|
return n;
|
|
18909
18909
|
}, e.Provider];
|
|
18910
|
-
}, [X,
|
|
18910
|
+
}, [X, Pr] = Fn(), wr = ({
|
|
18911
18911
|
data: e,
|
|
18912
18912
|
language: a = "en-us",
|
|
18913
18913
|
onSubmit: n,
|
|
18914
18914
|
step: r = "AccountHolderClassification",
|
|
18915
18915
|
taxForms: s = ["DAC7"]
|
|
18916
18916
|
}) => {
|
|
18917
|
-
const [o, u] =
|
|
18918
|
-
|
|
18919
|
-
), [v, b] =
|
|
18917
|
+
const [o, u] = U(a), [d, l] = U(s), [m, k] = U(
|
|
18918
|
+
In(e, d)
|
|
18919
|
+
), [v, b] = U([r]), [p, C] = U(
|
|
18920
18920
|
void 0
|
|
18921
|
-
), { isW9:
|
|
18921
|
+
), { isW9: I, isW8: M, isW8Ben: G, isW8BenE: E, isDac7: _ } = da(
|
|
18922
18922
|
m,
|
|
18923
|
-
|
|
18923
|
+
d
|
|
18924
18924
|
), L = v[v.length - 1], ie = {
|
|
18925
18925
|
regardedOwnerUsPerson: void 0,
|
|
18926
18926
|
regardedOwnerUsAccountType: void 0,
|
|
@@ -18931,29 +18931,24 @@ const xt = {
|
|
|
18931
18931
|
regardedOwnerForeignTrustClassification: void 0,
|
|
18932
18932
|
regardedOwnerForeignOtherClassification: void 0
|
|
18933
18933
|
}, ue = (B) => {
|
|
18934
|
-
k(B);
|
|
18935
|
-
|
|
18936
|
-
n({
|
|
18937
|
-
...x,
|
|
18938
|
-
signature_timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
18939
|
-
});
|
|
18940
|
-
}, be = Fa(
|
|
18934
|
+
k(B), n(ct(B));
|
|
18935
|
+
}, be = xa(
|
|
18941
18936
|
(B) => {
|
|
18942
|
-
k(
|
|
18937
|
+
k(In(B, d)), C(void 0), b([r]);
|
|
18943
18938
|
},
|
|
18944
|
-
[
|
|
18939
|
+
[d, r]
|
|
18945
18940
|
), Ce = (B) => {
|
|
18946
|
-
const { accountHolderIsDisregarded:
|
|
18947
|
-
return L === "AccountHolderClassification" ? se ? "AccountHolderContact" :
|
|
18941
|
+
const { accountHolderIsDisregarded: V, hasNoTaxId: ce } = da(B), se = d.includes("DAC7");
|
|
18942
|
+
return L === "AccountHolderClassification" ? se ? "AccountHolderContact" : V ? "RegardedOwnerClassification" : "AccountHolderContact" : L === "AccountHolderContact" ? se && B.accountHolderIsEuResident === "no" ? "Summary" : "AccountHolderTax" : L === "AccountHolderTax" ? ce ? "AccountHolderTaxClarification" : "Summary" : L === "RegardedOwnerClassification" ? "RegardedOwnerContact" : L === "RegardedOwnerContact" ? "RegardedOwnerTax" : "Summary";
|
|
18948
18943
|
}, te = (B) => {
|
|
18949
|
-
const
|
|
18950
|
-
|
|
18944
|
+
const V = Ce(B);
|
|
18945
|
+
V === "Summary" && C(void 0), oe(V);
|
|
18951
18946
|
}, re = (B) => {
|
|
18952
|
-
const
|
|
18947
|
+
const V = {
|
|
18953
18948
|
...m,
|
|
18954
18949
|
...B
|
|
18955
18950
|
};
|
|
18956
|
-
k(
|
|
18951
|
+
k(V), p === void 0 ? te(V) : b(["Summary"]);
|
|
18957
18952
|
}, Ne = (B) => {
|
|
18958
18953
|
m.accountHolderUsAccountType !== B.accountHolderUsAccountType || m.accountHolderForeignAccountType !== B.accountHolderForeignAccountType ? re({
|
|
18959
18954
|
...B,
|
|
@@ -18961,7 +18956,7 @@ const xt = {
|
|
|
18961
18956
|
}) : re(B);
|
|
18962
18957
|
}, oe = (B) => {
|
|
18963
18958
|
b([...v, B]);
|
|
18964
|
-
},
|
|
18959
|
+
}, K = (B) => {
|
|
18965
18960
|
b([B]), C(m);
|
|
18966
18961
|
}, q = p !== void 0 ? () => {
|
|
18967
18962
|
k(p), C(void 0), b(["Summary"]);
|
|
@@ -18969,16 +18964,16 @@ const xt = {
|
|
|
18969
18964
|
b(v.slice(0, v.length - 1));
|
|
18970
18965
|
} : void 0;
|
|
18971
18966
|
return {
|
|
18972
|
-
isW9:
|
|
18973
|
-
isW8:
|
|
18974
|
-
isW8Ben:
|
|
18975
|
-
isW8BenE:
|
|
18967
|
+
isW9: I,
|
|
18968
|
+
isW8: M,
|
|
18969
|
+
isW8Ben: G,
|
|
18970
|
+
isW8BenE: E,
|
|
18976
18971
|
isDac7: _,
|
|
18977
18972
|
onPersistAccountHolderData: Ne,
|
|
18978
18973
|
onPersistCollectedData: re,
|
|
18979
18974
|
onSubmitTaxDocumentation: ue,
|
|
18980
18975
|
onResetTaxDocumentation: be,
|
|
18981
|
-
editTo:
|
|
18976
|
+
editTo: K,
|
|
18982
18977
|
onCancel: q,
|
|
18983
18978
|
goTo: oe,
|
|
18984
18979
|
goBack: $,
|
|
@@ -18987,10 +18982,10 @@ const xt = {
|
|
|
18987
18982
|
data: m,
|
|
18988
18983
|
setLanguage: u,
|
|
18989
18984
|
language: o,
|
|
18990
|
-
supportedForms:
|
|
18991
|
-
setSupportedForms:
|
|
18985
|
+
supportedForms: d,
|
|
18986
|
+
setSupportedForms: l
|
|
18992
18987
|
};
|
|
18993
|
-
},
|
|
18988
|
+
}, Gr = ({
|
|
18994
18989
|
data: e = {},
|
|
18995
18990
|
onSubmit: a,
|
|
18996
18991
|
language: n,
|
|
@@ -18998,9 +18993,9 @@ const xt = {
|
|
|
18998
18993
|
step: s,
|
|
18999
18994
|
children: o
|
|
19000
18995
|
}) => /* @__PURE__ */ i.jsx(
|
|
19001
|
-
|
|
18996
|
+
Pr,
|
|
19002
18997
|
{
|
|
19003
|
-
value:
|
|
18998
|
+
value: wr({
|
|
19004
18999
|
data: e,
|
|
19005
19000
|
onSubmit: a,
|
|
19006
19001
|
language: n,
|
|
@@ -19009,7 +19004,7 @@ const xt = {
|
|
|
19009
19004
|
}),
|
|
19010
19005
|
children: o
|
|
19011
19006
|
}
|
|
19012
|
-
), [O,
|
|
19007
|
+
), [O, Lr] = Fn(), Hr = (e, a) => Object.keys(e).reduce(
|
|
19013
19008
|
(n, r) => {
|
|
19014
19009
|
var s;
|
|
19015
19010
|
if (a.has(r)) {
|
|
@@ -19025,57 +19020,57 @@ const xt = {
|
|
|
19025
19020
|
if (!z(a) && (a.length < 5 || a.length > 20))
|
|
19026
19021
|
return "vatUnexpectedFormat";
|
|
19027
19022
|
}
|
|
19028
|
-
},
|
|
19023
|
+
}, Dr = () => {
|
|
19029
19024
|
const {
|
|
19030
19025
|
language: e,
|
|
19031
19026
|
data: a,
|
|
19032
19027
|
supportedForms: n
|
|
19033
|
-
} = X(), [r, s] =
|
|
19034
|
-
() =>
|
|
19028
|
+
} = X(), [r, s] = U(a), [o, u] = U(!1), [d, l] = U(/* @__PURE__ */ new Set()), m = J(
|
|
19029
|
+
() => Dn(n),
|
|
19035
19030
|
[n]
|
|
19036
19031
|
), k = J(
|
|
19037
|
-
() =>
|
|
19032
|
+
() => Ut(r, m, n),
|
|
19038
19033
|
[r, m, n]
|
|
19039
19034
|
), v = J(
|
|
19040
19035
|
() => Object.fromEntries(
|
|
19041
|
-
[...
|
|
19036
|
+
[...d].map((h) => [h, !0])
|
|
19042
19037
|
),
|
|
19043
|
-
[
|
|
19038
|
+
[d]
|
|
19044
19039
|
), b = J(
|
|
19045
|
-
() =>
|
|
19040
|
+
() => Ft(r, v),
|
|
19046
19041
|
[r, v]
|
|
19047
19042
|
), p = J(
|
|
19048
|
-
() =>
|
|
19043
|
+
() => Dt(r, b, v),
|
|
19049
19044
|
[r, b, v]
|
|
19050
19045
|
), C = J(
|
|
19051
|
-
() =>
|
|
19046
|
+
() => xt(r, k),
|
|
19052
19047
|
[r, k]
|
|
19053
|
-
),
|
|
19054
|
-
() =>
|
|
19055
|
-
[r,
|
|
19048
|
+
), I = J(
|
|
19049
|
+
() => Hr(r, d),
|
|
19050
|
+
[r, d]
|
|
19056
19051
|
);
|
|
19057
19052
|
Q(() => {
|
|
19058
19053
|
s(a);
|
|
19059
19054
|
}, [a]);
|
|
19060
|
-
const
|
|
19061
|
-
(h,
|
|
19062
|
-
if (
|
|
19055
|
+
const M = xa(
|
|
19056
|
+
(h, w) => {
|
|
19057
|
+
if (w !== r[h]) {
|
|
19063
19058
|
const le = {
|
|
19064
|
-
[h]:
|
|
19059
|
+
[h]: w
|
|
19065
19060
|
};
|
|
19066
19061
|
s((me) => ({ ...me, ...le }));
|
|
19067
19062
|
}
|
|
19068
19063
|
},
|
|
19069
19064
|
[r]
|
|
19070
|
-
),
|
|
19065
|
+
), G = () => {
|
|
19071
19066
|
u(!0);
|
|
19072
|
-
},
|
|
19067
|
+
}, E = () => {
|
|
19073
19068
|
u(!1);
|
|
19074
19069
|
}, _ = Object.keys(p).length === 0, L = (h) => {
|
|
19075
|
-
const
|
|
19076
|
-
return
|
|
19070
|
+
const w = at(r);
|
|
19071
|
+
return w[h] ? w[h] : h;
|
|
19077
19072
|
}, ie = (h) => {
|
|
19078
|
-
const
|
|
19073
|
+
const w = {
|
|
19079
19074
|
accountHolderUsSmllcElection: "smllcElection",
|
|
19080
19075
|
iConfirmIncomeIsNonUs: "iConfirmIncomeIsNonUs",
|
|
19081
19076
|
accountHolderIsEuResident: "isEuResident",
|
|
@@ -19084,30 +19079,30 @@ const xt = {
|
|
|
19084
19079
|
accountHolderVatIdentificationNumber: "vatIdentificationNumber",
|
|
19085
19080
|
accountHolderCityOfBirth: "placeOfBirth"
|
|
19086
19081
|
};
|
|
19087
|
-
return
|
|
19082
|
+
return w[h] ? w[h] : h;
|
|
19088
19083
|
}, ue = (h) => {
|
|
19089
|
-
const
|
|
19090
|
-
return
|
|
19091
|
-
}, be = (h) =>
|
|
19084
|
+
const w = Xn();
|
|
19085
|
+
return w[h] ? w[h] : h;
|
|
19086
|
+
}, be = (h) => Ir(ue(h), e), Ce = (h) => ai(h, e), te = (h) => Tr(h, e), re = (h) => Mr(h, e), Ne = (h) => Sr(h, e), oe = (h) => Rr(h, e), K = (h) => yr(h, e), q = (h) => yn(L(h), e), $ = (h) => jr(h, e), B = (h) => yn(L(h), e) + (b[h] ? "*" : ""), V = (h) => Nr(ie(h), e), ce = xa(
|
|
19092
19087
|
(h) => {
|
|
19093
19088
|
if (h)
|
|
19094
|
-
return
|
|
19089
|
+
return jn(h, e) ? jn(h, e) : h;
|
|
19095
19090
|
},
|
|
19096
19091
|
[e]
|
|
19097
|
-
), se =
|
|
19098
|
-
(h) => h ?
|
|
19092
|
+
), se = xa(
|
|
19093
|
+
(h) => h ? Or(h, e) : "",
|
|
19099
19094
|
[e]
|
|
19100
19095
|
);
|
|
19101
19096
|
return {
|
|
19102
19097
|
fields: r,
|
|
19103
19098
|
setFields: s,
|
|
19104
|
-
setValue:
|
|
19099
|
+
setValue: M,
|
|
19105
19100
|
isErrorFree: _,
|
|
19106
19101
|
showErrors: o,
|
|
19107
|
-
exposeErrors:
|
|
19108
|
-
hideErrors:
|
|
19109
|
-
getLocalButton:
|
|
19110
|
-
getLocalCaProvince: (h) => h ?
|
|
19102
|
+
exposeErrors: G,
|
|
19103
|
+
hideErrors: E,
|
|
19104
|
+
getLocalButton: K,
|
|
19105
|
+
getLocalCaProvince: (h) => h ? zr(h, e) : "",
|
|
19111
19106
|
getLocalCountry: se,
|
|
19112
19107
|
getLocalError: Ne,
|
|
19113
19108
|
getLocalHint: be,
|
|
@@ -19117,15 +19112,15 @@ const xt = {
|
|
|
19117
19112
|
getLocalOption: ce,
|
|
19118
19113
|
getLocalPrompt: q,
|
|
19119
19114
|
getPromptKey: L,
|
|
19120
|
-
getLocalSubPrompt:
|
|
19115
|
+
getLocalSubPrompt: V,
|
|
19121
19116
|
getSubPromptKey: ie,
|
|
19122
19117
|
getLocalText: Ce,
|
|
19123
19118
|
getLocalTitle: te,
|
|
19124
19119
|
getLocalSubTitle: re,
|
|
19125
|
-
getLocalUsState: (h) => h ?
|
|
19126
|
-
getLocalMonth: (h) => h ?
|
|
19120
|
+
getLocalUsState: (h) => h ? Br(h, e) : "",
|
|
19121
|
+
getLocalMonth: (h) => h ? Er(h, e) : "",
|
|
19127
19122
|
getRequiredLocalPrompt: B,
|
|
19128
|
-
notifiedFields:
|
|
19123
|
+
notifiedFields: I,
|
|
19129
19124
|
// (must be visible)
|
|
19130
19125
|
invalidFields: p,
|
|
19131
19126
|
// (must be visible)
|
|
@@ -19136,13 +19131,13 @@ const xt = {
|
|
|
19136
19131
|
visibleFields: k,
|
|
19137
19132
|
// (must be supported)
|
|
19138
19133
|
hideField: (h) => {
|
|
19139
|
-
|
|
19134
|
+
d.has(h) && l((w) => new Set([...w].filter((le) => le !== h))), M(h, void 0);
|
|
19140
19135
|
},
|
|
19141
19136
|
showField: (h) => {
|
|
19142
|
-
|
|
19137
|
+
d.has(h) || l((w) => /* @__PURE__ */ new Set([...w, h]));
|
|
19143
19138
|
}
|
|
19144
19139
|
};
|
|
19145
|
-
}, fe = ({ children: e }) => /* @__PURE__ */ i.jsx(
|
|
19140
|
+
}, fe = ({ children: e }) => /* @__PURE__ */ i.jsx(Lr, { value: Dr(), children: e }), Fa = ({ address: e, className: a }) => {
|
|
19146
19141
|
const { getLocalCountry: n, getLocalUsState: r, getLocalCaProvince: s } = O(), o = e.country === "US" ? r(e.state) : e.country === "CA" ? s(e.state) : e.state;
|
|
19147
19142
|
return /* @__PURE__ */ i.jsxs("div", { className: de(a, "address"), children: [
|
|
19148
19143
|
/* @__PURE__ */ i.jsx("div", { children: e.street }),
|
|
@@ -19154,7 +19149,7 @@ const xt = {
|
|
|
19154
19149
|
] }),
|
|
19155
19150
|
e.country && /* @__PURE__ */ i.jsx("div", { children: n(e.country) })
|
|
19156
19151
|
] });
|
|
19157
|
-
},
|
|
19152
|
+
}, Ee = ({
|
|
19158
19153
|
name: e,
|
|
19159
19154
|
hint: a
|
|
19160
19155
|
}) => {
|
|
@@ -19163,7 +19158,7 @@ const xt = {
|
|
|
19163
19158
|
}, pe = ({ children: e, title: a, actions: n }) => /* @__PURE__ */ i.jsxs(
|
|
19164
19159
|
"form",
|
|
19165
19160
|
{
|
|
19166
|
-
className: de("taxbit-page", `taxbit-form-${
|
|
19161
|
+
className: de("taxbit-page", `taxbit-form-${Rn(a)}`),
|
|
19167
19162
|
onSubmit: () => !1,
|
|
19168
19163
|
children: [
|
|
19169
19164
|
(a || n) && /* @__PURE__ */ i.jsxs("header", { className: "taxbit-page-header", children: [
|
|
@@ -19173,10 +19168,10 @@ const xt = {
|
|
|
19173
19168
|
e
|
|
19174
19169
|
]
|
|
19175
19170
|
}
|
|
19176
|
-
),
|
|
19171
|
+
), Me = ({
|
|
19177
19172
|
children: e,
|
|
19178
19173
|
className: a
|
|
19179
|
-
}) => /* @__PURE__ */ i.jsx("div", { className: de(a, "taxbit-input-status"), children: e }),
|
|
19174
|
+
}) => /* @__PURE__ */ i.jsx("div", { className: de(a, "taxbit-input-status"), children: e }), Fr = ({ name: e }) => {
|
|
19180
19175
|
const { notifiedFields: a, getLocalNotification: n } = O(), r = a[e] ? n(a[e]) : "";
|
|
19181
19176
|
return r ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-notification", children: r }) : null;
|
|
19182
19177
|
}, Ie = ({
|
|
@@ -19188,14 +19183,14 @@ const xt = {
|
|
|
19188
19183
|
name: o,
|
|
19189
19184
|
className: u
|
|
19190
19185
|
}) => {
|
|
19191
|
-
const { invalidFields:
|
|
19186
|
+
const { invalidFields: d, showErrors: l, getLocalButton: m } = O();
|
|
19192
19187
|
return /* @__PURE__ */ i.jsxs(
|
|
19193
19188
|
"div",
|
|
19194
19189
|
{
|
|
19195
19190
|
className: de(
|
|
19196
19191
|
"taxbit-row",
|
|
19197
|
-
o && `taxbit-question-${
|
|
19198
|
-
o &&
|
|
19192
|
+
o && `taxbit-question-${Rn(o)}`,
|
|
19193
|
+
o && l && d[o] && "taxbit-error",
|
|
19199
19194
|
u
|
|
19200
19195
|
),
|
|
19201
19196
|
children: [
|
|
@@ -19232,11 +19227,11 @@ const xt = {
|
|
|
19232
19227
|
a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-section-sub-title", children: a })
|
|
19233
19228
|
] }),
|
|
19234
19229
|
r
|
|
19235
|
-
] }) : r,
|
|
19230
|
+
] }) : r, ze = [{ value: "yes" }, { value: "no" }], xr = () => {
|
|
19236
19231
|
const { language: e, setLanguage: a } = X(), { getLocalLocale: n } = O(), r = (o) => {
|
|
19237
19232
|
const u = o.target.value;
|
|
19238
19233
|
a(u);
|
|
19239
|
-
}, s =
|
|
19234
|
+
}, s = Tt.map((o) => ({
|
|
19240
19235
|
...o,
|
|
19241
19236
|
label: n(o.value)
|
|
19242
19237
|
})).sort((o, u) => o.label.localeCompare(u.label));
|
|
@@ -19256,25 +19251,25 @@ const xt = {
|
|
|
19256
19251
|
onSubmit: r,
|
|
19257
19252
|
onReset: s
|
|
19258
19253
|
}) => {
|
|
19259
|
-
const { isErrorFree: o, exposeErrors: u, getLocalButton:
|
|
19254
|
+
const { isErrorFree: o, exposeErrors: u, getLocalButton: d } = O(), l = o ? n : u, m = o ? r : u;
|
|
19260
19255
|
return /* @__PURE__ */ i.jsxs("footer", { className: "taxbit-step-actions", children: [
|
|
19261
19256
|
/* @__PURE__ */ i.jsxs("div", { className: "taxbit-secondary-actions", children: [
|
|
19262
|
-
a && /* @__PURE__ */ i.jsx("button", { onClick: a, tabIndex: -1, type: "button", children:
|
|
19263
|
-
e && /* @__PURE__ */ i.jsx("button", { onClick: e, tabIndex: -1, type: "button", children:
|
|
19264
|
-
s && /* @__PURE__ */ i.jsx("button", { onClick: s, type: "button", children:
|
|
19257
|
+
a && /* @__PURE__ */ i.jsx("button", { onClick: a, tabIndex: -1, type: "button", children: d("cancel") }),
|
|
19258
|
+
e && /* @__PURE__ */ i.jsx("button", { onClick: e, tabIndex: -1, type: "button", children: d("back") }),
|
|
19259
|
+
s && /* @__PURE__ */ i.jsx("button", { onClick: s, type: "button", children: d("reset") })
|
|
19265
19260
|
] }),
|
|
19266
19261
|
/* @__PURE__ */ i.jsxs("div", { className: "taxbit-primary-actions", children: [
|
|
19267
|
-
n && /* @__PURE__ */ i.jsx("button", { onClick:
|
|
19268
|
-
r && /* @__PURE__ */ i.jsx("button", { onClick: m, type: "button", children:
|
|
19262
|
+
n && /* @__PURE__ */ i.jsx("button", { onClick: l, type: "button", children: d("next") }),
|
|
19263
|
+
r && /* @__PURE__ */ i.jsx("button", { onClick: m, type: "button", children: d("submit") })
|
|
19269
19264
|
] })
|
|
19270
19265
|
] });
|
|
19271
|
-
},
|
|
19272
|
-
const { fields: s, setValue: o, getLocalPrompt: u, getLocalSubPrompt:
|
|
19266
|
+
}, Ur = ({ label: e, subLabel: a, name: n, onClick: r }) => {
|
|
19267
|
+
const { fields: s, setValue: o, getLocalPrompt: u, getLocalSubPrompt: d } = O(), l = (v) => {
|
|
19273
19268
|
r && r(v), o(n, v);
|
|
19274
19269
|
}, m = s[n], k = (v) => {
|
|
19275
|
-
|
|
19270
|
+
l(v.target.checked ? "yes" : void 0);
|
|
19276
19271
|
};
|
|
19277
|
-
return /* @__PURE__ */ i.jsxs(
|
|
19272
|
+
return /* @__PURE__ */ i.jsxs(Me, { children: [
|
|
19278
19273
|
/* @__PURE__ */ i.jsxs("div", { className: "taxbit-checkBox-label", children: [
|
|
19279
19274
|
/* @__PURE__ */ i.jsx(
|
|
19280
19275
|
"input",
|
|
@@ -19289,54 +19284,54 @@ const xt = {
|
|
|
19289
19284
|
),
|
|
19290
19285
|
/* @__PURE__ */ i.jsxs("label", { htmlFor: n, children: [
|
|
19291
19286
|
e && u(n),
|
|
19292
|
-
a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-sub-label", children:
|
|
19287
|
+
a && /* @__PURE__ */ i.jsx("div", { className: "taxbit-sub-label", children: d(n) })
|
|
19293
19288
|
] })
|
|
19294
19289
|
] }),
|
|
19295
|
-
/* @__PURE__ */ i.jsx(
|
|
19290
|
+
/* @__PURE__ */ i.jsx(Ee, { name: n })
|
|
19296
19291
|
] });
|
|
19297
|
-
},
|
|
19298
|
-
const { fields: a, setValue: n, getLocalMonth: r } = O(), s = a[e] || "", o = s.split("/")[0] || "", u = s.split("/")[1] || "",
|
|
19292
|
+
}, Kr = (e) => {
|
|
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 !== "" ? vn(
|
|
19299
19294
|
parseInt(o),
|
|
19300
|
-
|
|
19301
|
-
) :
|
|
19295
|
+
d !== "" ? parseInt(d) : void 0
|
|
19296
|
+
) : fn.length, m = yt.map((C) => ({
|
|
19302
19297
|
...C,
|
|
19303
19298
|
label: r(C.value)
|
|
19304
|
-
})), k = (C,
|
|
19305
|
-
if (!
|
|
19299
|
+
})), k = (C, I, M) => {
|
|
19300
|
+
if (!I)
|
|
19306
19301
|
return !0;
|
|
19307
|
-
const
|
|
19308
|
-
parseInt(
|
|
19309
|
-
ae(
|
|
19302
|
+
const G = vn(
|
|
19303
|
+
parseInt(I),
|
|
19304
|
+
ae(M) ? parseInt(M) : void 0
|
|
19310
19305
|
);
|
|
19311
|
-
return ae(C) &&
|
|
19306
|
+
return ae(C) && G >= parseInt(C);
|
|
19312
19307
|
};
|
|
19313
19308
|
return {
|
|
19314
19309
|
mm: o,
|
|
19315
19310
|
dd: u,
|
|
19316
|
-
yyyy:
|
|
19311
|
+
yyyy: d,
|
|
19317
19312
|
handleDayChange: (C) => {
|
|
19318
|
-
const
|
|
19319
|
-
n(e, `${o || ""}/${
|
|
19313
|
+
const I = C.target.value;
|
|
19314
|
+
n(e, `${o || ""}/${I}/${d || ""}`);
|
|
19320
19315
|
},
|
|
19321
19316
|
handleMonthChange: (C) => {
|
|
19322
|
-
const
|
|
19317
|
+
const I = C.target.value;
|
|
19323
19318
|
n(
|
|
19324
19319
|
e,
|
|
19325
|
-
`${
|
|
19320
|
+
`${I}/${k(u, I, d) ? u : ""}/${d || ""}`
|
|
19326
19321
|
);
|
|
19327
19322
|
},
|
|
19328
19323
|
handleYearChange: (C) => {
|
|
19329
|
-
const
|
|
19324
|
+
const I = C.target.value;
|
|
19330
19325
|
n(
|
|
19331
19326
|
e,
|
|
19332
|
-
`${o || ""}/${k(u, o,
|
|
19327
|
+
`${o || ""}/${k(u, o, I) ? u : ""}/${I}`
|
|
19333
19328
|
);
|
|
19334
19329
|
},
|
|
19335
|
-
dayOptions:
|
|
19336
|
-
birthYearOptions:
|
|
19330
|
+
dayOptions: fn.slice(0, l),
|
|
19331
|
+
birthYearOptions: Lt,
|
|
19337
19332
|
monthOptions: m
|
|
19338
19333
|
};
|
|
19339
|
-
},
|
|
19334
|
+
}, Vr = ({
|
|
19340
19335
|
name: e,
|
|
19341
19336
|
className: a,
|
|
19342
19337
|
hint: n
|
|
@@ -19345,19 +19340,19 @@ const xt = {
|
|
|
19345
19340
|
dd: s,
|
|
19346
19341
|
mm: o,
|
|
19347
19342
|
yyyy: u,
|
|
19348
|
-
handleDayChange:
|
|
19349
|
-
handleMonthChange:
|
|
19343
|
+
handleDayChange: d,
|
|
19344
|
+
handleMonthChange: l,
|
|
19350
19345
|
handleYearChange: m,
|
|
19351
19346
|
dayOptions: k,
|
|
19352
19347
|
monthOptions: v,
|
|
19353
19348
|
birthYearOptions: b
|
|
19354
|
-
} =
|
|
19355
|
-
return /* @__PURE__ */ i.jsxs(
|
|
19349
|
+
} = Kr(e);
|
|
19350
|
+
return /* @__PURE__ */ i.jsxs(Me, { className: a, children: [
|
|
19356
19351
|
/* @__PURE__ */ i.jsxs("div", { className: "taxbit-row-value", children: [
|
|
19357
19352
|
/* @__PURE__ */ i.jsxs(
|
|
19358
19353
|
"select",
|
|
19359
19354
|
{
|
|
19360
|
-
onChange:
|
|
19355
|
+
onChange: l,
|
|
19361
19356
|
value: o,
|
|
19362
19357
|
className: de(
|
|
19363
19358
|
"taxbit-select",
|
|
@@ -19373,7 +19368,7 @@ const xt = {
|
|
|
19373
19368
|
/* @__PURE__ */ i.jsxs(
|
|
19374
19369
|
"select",
|
|
19375
19370
|
{
|
|
19376
|
-
onChange:
|
|
19371
|
+
onChange: d,
|
|
19377
19372
|
value: s,
|
|
19378
19373
|
className: de(
|
|
19379
19374
|
"taxbit-select",
|
|
@@ -19403,21 +19398,21 @@ const xt = {
|
|
|
19403
19398
|
}
|
|
19404
19399
|
)
|
|
19405
19400
|
] }),
|
|
19406
|
-
/* @__PURE__ */ i.jsx(
|
|
19401
|
+
/* @__PURE__ */ i.jsx(Ee, { name: e, hint: n })
|
|
19407
19402
|
] });
|
|
19408
|
-
},
|
|
19403
|
+
}, Wr = ({ name: e, options: a }) => {
|
|
19409
19404
|
const { fields: n, setValue: r, hideErrors: s, getLocalOption: o } = O(), u = (m) => {
|
|
19410
19405
|
r(e, m), s();
|
|
19411
|
-
},
|
|
19406
|
+
}, d = n[e], l = (m) => {
|
|
19412
19407
|
u(m.target.value);
|
|
19413
19408
|
};
|
|
19414
|
-
return /* @__PURE__ */ i.jsxs(
|
|
19409
|
+
return /* @__PURE__ */ i.jsxs(Me, { children: [
|
|
19415
19410
|
/* @__PURE__ */ i.jsx("div", { className: "taxbit-radio-buttons", children: a.map((m) => /* @__PURE__ */ i.jsxs(
|
|
19416
19411
|
"div",
|
|
19417
19412
|
{
|
|
19418
19413
|
className: de(
|
|
19419
19414
|
"taxbit-radio-button",
|
|
19420
|
-
m.value ===
|
|
19415
|
+
m.value === d ? "selected" : !1
|
|
19421
19416
|
),
|
|
19422
19417
|
children: [
|
|
19423
19418
|
/* @__PURE__ */ i.jsx(
|
|
@@ -19427,8 +19422,8 @@ const xt = {
|
|
|
19427
19422
|
name: e,
|
|
19428
19423
|
id: `${e}-${m.value}`,
|
|
19429
19424
|
value: m.value,
|
|
19430
|
-
checked: m.value ===
|
|
19431
|
-
onChange:
|
|
19425
|
+
checked: m.value === d,
|
|
19426
|
+
onChange: l
|
|
19432
19427
|
}
|
|
19433
19428
|
),
|
|
19434
19429
|
/* @__PURE__ */ i.jsx("label", { htmlFor: `${e}-${m.value}`, children: m.label || o(m.value) })
|
|
@@ -19436,35 +19431,35 @@ const xt = {
|
|
|
19436
19431
|
},
|
|
19437
19432
|
m.value
|
|
19438
19433
|
)) }),
|
|
19439
|
-
/* @__PURE__ */ i.jsx(
|
|
19434
|
+
/* @__PURE__ */ i.jsx(Ee, { name: e })
|
|
19440
19435
|
] });
|
|
19441
|
-
},
|
|
19436
|
+
}, xn = ({
|
|
19442
19437
|
name: e,
|
|
19443
19438
|
options: a,
|
|
19444
19439
|
addBlank: n = !0,
|
|
19445
19440
|
className: r,
|
|
19446
19441
|
onChange: s
|
|
19447
19442
|
}) => {
|
|
19448
|
-
const { fields: o, setValue: u, getLocalOption:
|
|
19443
|
+
const { fields: o, setValue: u, getLocalOption: d } = O(), l = o[e], m = (k) => {
|
|
19449
19444
|
s && s(), u(e, k.target.value);
|
|
19450
19445
|
};
|
|
19451
|
-
return /* @__PURE__ */ i.jsxs(
|
|
19446
|
+
return /* @__PURE__ */ i.jsxs(Me, { className: r, children: [
|
|
19452
19447
|
/* @__PURE__ */ i.jsxs(
|
|
19453
19448
|
"select",
|
|
19454
19449
|
{
|
|
19455
19450
|
name: e,
|
|
19456
19451
|
onChange: m,
|
|
19457
|
-
value:
|
|
19452
|
+
value: l,
|
|
19458
19453
|
className: "taxbit-select",
|
|
19459
19454
|
children: [
|
|
19460
19455
|
n && /* @__PURE__ */ i.jsx("option", { value: "" }),
|
|
19461
|
-
a.map((k) => /* @__PURE__ */ i.jsx("option", { value: k.value, children: "label" in k ? k.label :
|
|
19456
|
+
a.map((k) => /* @__PURE__ */ i.jsx("option", { value: k.value, children: "label" in k ? k.label : d(k.value) }, k.value))
|
|
19462
19457
|
]
|
|
19463
19458
|
}
|
|
19464
19459
|
),
|
|
19465
|
-
/* @__PURE__ */ i.jsx(
|
|
19460
|
+
/* @__PURE__ */ i.jsx(Ee, { name: e })
|
|
19466
19461
|
] });
|
|
19467
|
-
},
|
|
19462
|
+
}, Un = ({
|
|
19468
19463
|
name: e,
|
|
19469
19464
|
className: a,
|
|
19470
19465
|
onChange: n,
|
|
@@ -19473,11 +19468,11 @@ const xt = {
|
|
|
19473
19468
|
disabled: o,
|
|
19474
19469
|
syncName: u
|
|
19475
19470
|
}) => {
|
|
19476
|
-
const { fields:
|
|
19471
|
+
const { fields: d, setValue: l } = O(), m = d[e] || "", k = (v) => {
|
|
19477
19472
|
const b = n ? n(v.target.value) : v.target.value;
|
|
19478
|
-
u && (
|
|
19473
|
+
u && (d[u] === d[e] || !d[u]) && l(u, b), l(e, b);
|
|
19479
19474
|
};
|
|
19480
|
-
return /* @__PURE__ */ i.jsxs(
|
|
19475
|
+
return /* @__PURE__ */ i.jsxs(Me, { className: a, children: [
|
|
19481
19476
|
/* @__PURE__ */ i.jsx(
|
|
19482
19477
|
"input",
|
|
19483
19478
|
{
|
|
@@ -19489,14 +19484,14 @@ const xt = {
|
|
|
19489
19484
|
disabled: o
|
|
19490
19485
|
}
|
|
19491
19486
|
),
|
|
19492
|
-
/* @__PURE__ */ i.jsx(
|
|
19487
|
+
/* @__PURE__ */ i.jsx(Ee, { name: e, hint: r }),
|
|
19493
19488
|
s ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-input-status-footer", children: s }) : null
|
|
19494
19489
|
] });
|
|
19495
|
-
},
|
|
19490
|
+
}, Jr = ({ name: e }) => {
|
|
19496
19491
|
const { fields: a, setValue: n, getLocalPrompt: r } = O(), s = a[e], o = () => {
|
|
19497
19492
|
n(e, s === void 0 ? "yes" : void 0);
|
|
19498
19493
|
};
|
|
19499
|
-
return /* @__PURE__ */ i.jsxs(
|
|
19494
|
+
return /* @__PURE__ */ i.jsxs(Me, { children: [
|
|
19500
19495
|
/* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsx(
|
|
19501
19496
|
"button",
|
|
19502
19497
|
{
|
|
@@ -19508,10 +19503,10 @@ const xt = {
|
|
|
19508
19503
|
children: r(e)
|
|
19509
19504
|
}
|
|
19510
19505
|
) }),
|
|
19511
|
-
/* @__PURE__ */ i.jsx(
|
|
19506
|
+
/* @__PURE__ */ i.jsx(Ee, { name: e })
|
|
19512
19507
|
] });
|
|
19513
|
-
},
|
|
19514
|
-
const { getLocalButton: a } = O(), [n, r] =
|
|
19508
|
+
}, Zr = ({ onClick: e }) => {
|
|
19509
|
+
const { getLocalButton: a } = O(), [n, r] = U(!0), s = "hideShowButton", o = () => {
|
|
19515
19510
|
r((u) => !u), e();
|
|
19516
19511
|
};
|
|
19517
19512
|
return /* @__PURE__ */ i.jsx("div", { className: "taxbit-row-actions", children: /* @__PURE__ */ i.jsx(
|
|
@@ -19534,42 +19529,42 @@ const xt = {
|
|
|
19534
19529
|
)
|
|
19535
19530
|
}
|
|
19536
19531
|
) });
|
|
19537
|
-
},
|
|
19532
|
+
}, qr = ({
|
|
19538
19533
|
value: e = "",
|
|
19539
19534
|
mask: a = "•",
|
|
19540
19535
|
onChange: n,
|
|
19541
19536
|
show: r = !1,
|
|
19542
19537
|
...s
|
|
19543
19538
|
}) => {
|
|
19544
|
-
const [o, u] =
|
|
19539
|
+
const [o, u] = U(e), [d, l] = U(
|
|
19545
19540
|
Array(e.length + 1).join(a)
|
|
19546
|
-
), m =
|
|
19541
|
+
), m = hn(), [k, v] = U([
|
|
19547
19542
|
0,
|
|
19548
19543
|
0
|
|
19549
|
-
]), b =
|
|
19544
|
+
]), b = hn(null);
|
|
19550
19545
|
Q(() => {
|
|
19551
|
-
e !== o && (u(e),
|
|
19546
|
+
e !== o && (u(e), l(Array(e.length + 1).join(a)));
|
|
19552
19547
|
}, [e, a, o]);
|
|
19553
19548
|
const p = (C) => {
|
|
19554
|
-
const
|
|
19555
|
-
v([
|
|
19556
|
-
const
|
|
19549
|
+
const I = C.target.selectionEnd === null ? C.target.value.length : C.target.selectionEnd;
|
|
19550
|
+
v([I, I]);
|
|
19551
|
+
const M = C.target.value, G = M.replace(
|
|
19557
19552
|
new RegExp(
|
|
19558
|
-
`${
|
|
19553
|
+
`${I ? `(^\\${a}{1,${I}})|` : ""}(\\${a}+)`,
|
|
19559
19554
|
"g"
|
|
19560
19555
|
),
|
|
19561
|
-
(_, L, ie) => !ie &&
|
|
19562
|
-
),
|
|
19563
|
-
|
|
19556
|
+
(_, L, ie) => !ie && I ? o.substring(0, _.length) : o.substring(o.length - _.length)
|
|
19557
|
+
), E = M.split("").map((_, L) => L === I - 1 ? _ : a).join("");
|
|
19558
|
+
l(E), u(G), n && n(G);
|
|
19564
19559
|
};
|
|
19565
19560
|
return Q(() => (clearTimeout(m.current), m.current = setTimeout(() => {
|
|
19566
19561
|
b.current && v([
|
|
19567
19562
|
b.current.selectionStart,
|
|
19568
19563
|
b.current.selectionEnd
|
|
19569
|
-
]),
|
|
19564
|
+
]), l(Array(d.length + 1).join(a));
|
|
19570
19565
|
}, 1e3), () => {
|
|
19571
19566
|
clearTimeout(m.current);
|
|
19572
|
-
}), [a,
|
|
19567
|
+
}), [a, d]), Q(() => {
|
|
19573
19568
|
b.current && (b.current.selectionStart = k[0], b.current.selectionEnd = k[1]);
|
|
19574
19569
|
}, [k]), /* @__PURE__ */ i.jsx(
|
|
19575
19570
|
"input",
|
|
@@ -19577,37 +19572,37 @@ const xt = {
|
|
|
19577
19572
|
...s,
|
|
19578
19573
|
ref: b,
|
|
19579
19574
|
type: "text",
|
|
19580
|
-
value: r ? o :
|
|
19575
|
+
value: r ? o : d,
|
|
19581
19576
|
onChange: p
|
|
19582
19577
|
}
|
|
19583
19578
|
);
|
|
19584
|
-
},
|
|
19579
|
+
}, Yr = ({
|
|
19585
19580
|
name: e,
|
|
19586
19581
|
className: a,
|
|
19587
19582
|
onChange: n,
|
|
19588
19583
|
hint: r,
|
|
19589
19584
|
children: s
|
|
19590
19585
|
}) => {
|
|
19591
|
-
const { fields: o, setValue: u } = O(), [
|
|
19586
|
+
const { fields: o, setValue: u } = O(), [d, l] = U(!0), m = o[e] || "", k = (v) => {
|
|
19592
19587
|
const b = n ? n(v) : v;
|
|
19593
19588
|
u(e, b);
|
|
19594
19589
|
};
|
|
19595
19590
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
19596
|
-
/* @__PURE__ */ i.jsxs(
|
|
19591
|
+
/* @__PURE__ */ i.jsxs(Me, { className: a, children: [
|
|
19597
19592
|
/* @__PURE__ */ i.jsx(
|
|
19598
|
-
|
|
19593
|
+
qr,
|
|
19599
19594
|
{
|
|
19600
19595
|
value: m,
|
|
19601
19596
|
onChange: k,
|
|
19602
19597
|
className: "taxbit-input",
|
|
19603
19598
|
mask: "*",
|
|
19604
|
-
show: !
|
|
19599
|
+
show: !d
|
|
19605
19600
|
}
|
|
19606
19601
|
),
|
|
19607
|
-
/* @__PURE__ */ i.jsx(
|
|
19602
|
+
/* @__PURE__ */ i.jsx(Ee, { name: e, hint: r }),
|
|
19608
19603
|
s ? /* @__PURE__ */ i.jsx("div", { className: "taxbit-input-status-footer", children: s }) : null
|
|
19609
19604
|
] }),
|
|
19610
|
-
/* @__PURE__ */ i.jsx(
|
|
19605
|
+
/* @__PURE__ */ i.jsx(Zr, { onClick: () => l((v) => !v) })
|
|
19611
19606
|
] });
|
|
19612
19607
|
}, f = ({
|
|
19613
19608
|
label: e,
|
|
@@ -19619,14 +19614,14 @@ const xt = {
|
|
|
19619
19614
|
}) => {
|
|
19620
19615
|
const {
|
|
19621
19616
|
visibleFields: u,
|
|
19622
|
-
showField:
|
|
19623
|
-
hideField:
|
|
19617
|
+
showField: d,
|
|
19618
|
+
hideField: l,
|
|
19624
19619
|
getRequiredLocalPrompt: m,
|
|
19625
19620
|
getLocalSubPrompt: k
|
|
19626
19621
|
} = O(), v = !!u[n];
|
|
19627
19622
|
return Q(() => {
|
|
19628
|
-
v ?
|
|
19629
|
-
}, [v, n,
|
|
19623
|
+
v ? d(n) : l(n);
|
|
19624
|
+
}, [v, n, d, l]), v ? /* @__PURE__ */ i.jsxs(
|
|
19630
19625
|
Ie,
|
|
19631
19626
|
{
|
|
19632
19627
|
name: n,
|
|
@@ -19635,7 +19630,7 @@ const xt = {
|
|
|
19635
19630
|
onEdit: s,
|
|
19636
19631
|
children: [
|
|
19637
19632
|
r,
|
|
19638
|
-
o ? /* @__PURE__ */ i.jsx(
|
|
19633
|
+
o ? /* @__PURE__ */ i.jsx(Fr, { name: n }) : null
|
|
19639
19634
|
]
|
|
19640
19635
|
}
|
|
19641
19636
|
) : null;
|
|
@@ -19645,31 +19640,34 @@ const xt = {
|
|
|
19645
19640
|
subLabel: n,
|
|
19646
19641
|
onClick: r
|
|
19647
19642
|
}) => /* @__PURE__ */ i.jsx(f, { name: e, children: /* @__PURE__ */ i.jsx(
|
|
19648
|
-
|
|
19643
|
+
Ur,
|
|
19649
19644
|
{
|
|
19650
19645
|
label: a,
|
|
19651
19646
|
subLabel: n,
|
|
19652
19647
|
name: e,
|
|
19653
19648
|
onClick: r
|
|
19654
19649
|
}
|
|
19655
|
-
) }),
|
|
19650
|
+
) }), Kn = ({
|
|
19656
19651
|
label: e,
|
|
19657
19652
|
name: a
|
|
19658
|
-
}) =>
|
|
19659
|
-
|
|
19660
|
-
/* @__PURE__ */ i.jsx(
|
|
19661
|
-
|
|
19653
|
+
}) => {
|
|
19654
|
+
const { showErrors: n, invalidFields: r, getLocalError: s } = O(), o = r[a] ? s(r[a]) : "";
|
|
19655
|
+
return /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsx(f, { name: a, children: n && o && e && /* @__PURE__ */ i.jsxs(Me, { children: [
|
|
19656
|
+
/* @__PURE__ */ i.jsx("div", { className: "taxbit-label", children: e }),
|
|
19657
|
+
/* @__PURE__ */ i.jsx("div", { className: "taxbit-error-message", children: o })
|
|
19658
|
+
] }) }) });
|
|
19659
|
+
}, Ke = ({
|
|
19662
19660
|
name: e,
|
|
19663
19661
|
label: a,
|
|
19664
19662
|
hint: n,
|
|
19665
19663
|
subLabel: r,
|
|
19666
19664
|
onChange: s
|
|
19667
|
-
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
|
|
19665
|
+
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(Yr, { name: e, onChange: s, hint: n }) }), x = ({
|
|
19668
19666
|
name: e,
|
|
19669
19667
|
label: a,
|
|
19670
19668
|
subLabel: n,
|
|
19671
19669
|
options: r
|
|
19672
|
-
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(
|
|
19670
|
+
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(Wr, { name: e, options: r }) }), Te = ({
|
|
19673
19671
|
name: e,
|
|
19674
19672
|
label: a,
|
|
19675
19673
|
options: n,
|
|
@@ -19677,7 +19675,7 @@ const xt = {
|
|
|
19677
19675
|
addBlank: s,
|
|
19678
19676
|
onChange: o
|
|
19679
19677
|
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
|
|
19680
|
-
|
|
19678
|
+
xn,
|
|
19681
19679
|
{
|
|
19682
19680
|
name: e,
|
|
19683
19681
|
options: n,
|
|
@@ -19693,7 +19691,7 @@ const xt = {
|
|
|
19693
19691
|
disabled: o,
|
|
19694
19692
|
syncName: u
|
|
19695
19693
|
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: r, children: /* @__PURE__ */ i.jsx(
|
|
19696
|
-
|
|
19694
|
+
Un,
|
|
19697
19695
|
{
|
|
19698
19696
|
name: e,
|
|
19699
19697
|
onChange: s,
|
|
@@ -19701,95 +19699,95 @@ const xt = {
|
|
|
19701
19699
|
disabled: o,
|
|
19702
19700
|
syncName: u
|
|
19703
19701
|
}
|
|
19704
|
-
) }),
|
|
19702
|
+
) }), _r = () => {
|
|
19705
19703
|
const { fields: e, getLocalTitle: a } = O(), { onPersistAccountHolderData: n, onCancel: r } = X();
|
|
19706
19704
|
return /* @__PURE__ */ i.jsxs(
|
|
19707
19705
|
pe,
|
|
19708
19706
|
{
|
|
19709
19707
|
title: a("accountHolderClassification"),
|
|
19710
|
-
actions: /* @__PURE__ */ i.jsx(
|
|
19708
|
+
actions: /* @__PURE__ */ i.jsx(xr, {}),
|
|
19711
19709
|
children: [
|
|
19712
19710
|
/* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
|
|
19713
19711
|
/* @__PURE__ */ i.jsx(
|
|
19714
|
-
|
|
19712
|
+
x,
|
|
19715
19713
|
{
|
|
19716
19714
|
name: "accountHolderUsPerson",
|
|
19717
|
-
options:
|
|
19715
|
+
options: ze,
|
|
19718
19716
|
label: !0
|
|
19719
19717
|
}
|
|
19720
19718
|
),
|
|
19721
19719
|
/* @__PURE__ */ i.jsx(
|
|
19722
|
-
|
|
19720
|
+
x,
|
|
19723
19721
|
{
|
|
19724
19722
|
name: "accountHolderIsEuResident",
|
|
19725
|
-
options:
|
|
19723
|
+
options: ze,
|
|
19726
19724
|
label: !0,
|
|
19727
19725
|
subLabel: !0
|
|
19728
19726
|
}
|
|
19729
19727
|
),
|
|
19730
19728
|
/* @__PURE__ */ i.jsx(
|
|
19731
|
-
|
|
19729
|
+
x,
|
|
19732
19730
|
{
|
|
19733
19731
|
name: "accountHolderIsIndividual",
|
|
19734
|
-
options:
|
|
19732
|
+
options: ze,
|
|
19735
19733
|
label: !0
|
|
19736
19734
|
}
|
|
19737
19735
|
),
|
|
19738
19736
|
/* @__PURE__ */ i.jsx(
|
|
19739
|
-
|
|
19737
|
+
x,
|
|
19740
19738
|
{
|
|
19741
19739
|
name: "accountHolderUsAccountType",
|
|
19742
|
-
options:
|
|
19740
|
+
options: wn,
|
|
19743
19741
|
label: !0
|
|
19744
19742
|
}
|
|
19745
19743
|
),
|
|
19746
19744
|
/* @__PURE__ */ i.jsx(
|
|
19747
|
-
|
|
19745
|
+
x,
|
|
19748
19746
|
{
|
|
19749
19747
|
name: "accountHolderUsSmllcElection",
|
|
19750
|
-
options:
|
|
19748
|
+
options: ze,
|
|
19751
19749
|
label: !0,
|
|
19752
19750
|
subLabel: !0
|
|
19753
19751
|
}
|
|
19754
19752
|
),
|
|
19755
19753
|
/* @__PURE__ */ i.jsx(
|
|
19756
|
-
|
|
19754
|
+
x,
|
|
19757
19755
|
{
|
|
19758
19756
|
name: "accountHolderUsLlcClassification",
|
|
19759
|
-
options:
|
|
19757
|
+
options: ti,
|
|
19760
19758
|
label: !0
|
|
19761
19759
|
}
|
|
19762
19760
|
),
|
|
19763
19761
|
/* @__PURE__ */ i.jsx(Y, { name: "accountHolderUsOtherClassification", label: !0 }),
|
|
19764
19762
|
/* @__PURE__ */ i.jsx(
|
|
19765
|
-
|
|
19763
|
+
x,
|
|
19766
19764
|
{
|
|
19767
19765
|
name: "accountHolderUsTrustEstateEin",
|
|
19768
|
-
options:
|
|
19766
|
+
options: ze,
|
|
19769
19767
|
label: !0
|
|
19770
19768
|
}
|
|
19771
19769
|
),
|
|
19772
19770
|
/* @__PURE__ */ i.jsx(
|
|
19773
|
-
|
|
19771
|
+
x,
|
|
19774
19772
|
{
|
|
19775
19773
|
name: "accountHolderForeignAccountType",
|
|
19776
|
-
options:
|
|
19774
|
+
options: Pn,
|
|
19777
19775
|
label: !0
|
|
19778
19776
|
}
|
|
19779
19777
|
),
|
|
19780
19778
|
/* @__PURE__ */ i.jsx(
|
|
19781
|
-
|
|
19779
|
+
x,
|
|
19782
19780
|
{
|
|
19783
19781
|
name: "accountHolderForeignOtherClassification",
|
|
19784
|
-
options:
|
|
19782
|
+
options: ii,
|
|
19785
19783
|
label: !0
|
|
19786
19784
|
}
|
|
19787
19785
|
),
|
|
19788
19786
|
/* @__PURE__ */ i.jsx(
|
|
19789
|
-
|
|
19787
|
+
x,
|
|
19790
19788
|
{
|
|
19791
19789
|
name: "accountHolderForeignTrustClassification",
|
|
19792
|
-
options:
|
|
19790
|
+
options: ni,
|
|
19793
19791
|
label: !0
|
|
19794
19792
|
}
|
|
19795
19793
|
)
|
|
@@ -19804,7 +19802,7 @@ const xt = {
|
|
|
19804
19802
|
]
|
|
19805
19803
|
}
|
|
19806
19804
|
);
|
|
19807
|
-
},
|
|
19805
|
+
}, Qr = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(_r, {}) }), Ka = ({
|
|
19808
19806
|
prompt: e,
|
|
19809
19807
|
prefix: a,
|
|
19810
19808
|
showIf: n = !0
|
|
@@ -19814,30 +19812,30 @@ const xt = {
|
|
|
19814
19812
|
hideErrors: s,
|
|
19815
19813
|
getLocalCountry: o,
|
|
19816
19814
|
getLocalCaProvince: u,
|
|
19817
|
-
getLocalUsState:
|
|
19818
|
-
hideField:
|
|
19815
|
+
getLocalUsState: d,
|
|
19816
|
+
hideField: l
|
|
19819
19817
|
} = O(), m = r[`${a}Country`], k = J(
|
|
19820
|
-
() =>
|
|
19818
|
+
() => ua.map((p) => ({
|
|
19821
19819
|
...p,
|
|
19822
19820
|
label: o(p.value)
|
|
19823
19821
|
})).sort((p, C) => p.label.localeCompare(C.label)),
|
|
19824
19822
|
[o]
|
|
19825
19823
|
), v = J(
|
|
19826
|
-
() =>
|
|
19824
|
+
() => Pt.map((p) => ({
|
|
19827
19825
|
...p,
|
|
19828
|
-
label:
|
|
19826
|
+
label: d(p.value)
|
|
19829
19827
|
})).sort((p, C) => p.label.localeCompare(C.label)),
|
|
19830
|
-
[
|
|
19828
|
+
[d]
|
|
19831
19829
|
), b = J(
|
|
19832
|
-
() =>
|
|
19830
|
+
() => gt.map((p) => ({
|
|
19833
19831
|
...p,
|
|
19834
19832
|
label: u(p.value)
|
|
19835
19833
|
})).sort((p, C) => p.label.localeCompare(C.label)),
|
|
19836
19834
|
[u]
|
|
19837
19835
|
);
|
|
19838
19836
|
return Q(() => {
|
|
19839
|
-
n || (
|
|
19840
|
-
}, [
|
|
19837
|
+
n || (l(`${a}Street`), l(`${a}Street2`), l(`${a}City`), l(`${a}State`), l(`${a}Country`), l(`${a}Zip`));
|
|
19838
|
+
}, [l, a, n]), n ? /* @__PURE__ */ i.jsxs(he, { title: e, children: [
|
|
19841
19839
|
/* @__PURE__ */ i.jsx(
|
|
19842
19840
|
Te,
|
|
19843
19841
|
{
|
|
@@ -19861,26 +19859,26 @@ const xt = {
|
|
|
19861
19859
|
),
|
|
19862
19860
|
/* @__PURE__ */ i.jsx(Y, { name: `${a}Zip`, label: !0 })
|
|
19863
19861
|
] }) : null;
|
|
19864
|
-
},
|
|
19862
|
+
}, Xr = ({
|
|
19865
19863
|
name: e,
|
|
19866
19864
|
label: a,
|
|
19867
19865
|
subLabel: n
|
|
19868
|
-
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(
|
|
19869
|
-
const { onPersistCollectedData: e, goBack: a, onCancel: n, isW9: r, isW8: s } = X(), { fields: o, getLocalCountry: u, getLocalTitle:
|
|
19870
|
-
() =>
|
|
19866
|
+
}) => /* @__PURE__ */ i.jsx(f, { name: e, label: a, subLabel: n, children: /* @__PURE__ */ i.jsx(Vr, { name: e }) }), $r = () => {
|
|
19867
|
+
const { onPersistCollectedData: e, goBack: a, onCancel: n, isW9: r, isW8: s } = X(), { fields: o, getLocalCountry: u, getLocalTitle: d } = O(), l = J(
|
|
19868
|
+
() => ua.map((m) => ({
|
|
19871
19869
|
...m,
|
|
19872
19870
|
label: u(m.value)
|
|
19873
19871
|
})).sort((m, k) => m.label.localeCompare(k.label)),
|
|
19874
19872
|
[u]
|
|
19875
19873
|
);
|
|
19876
|
-
return /* @__PURE__ */ i.jsxs(pe, { title:
|
|
19874
|
+
return /* @__PURE__ */ i.jsxs(pe, { title: d("accountHolderContactInformation"), children: [
|
|
19877
19875
|
/* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
|
|
19878
19876
|
/* @__PURE__ */ i.jsx(
|
|
19879
19877
|
Te,
|
|
19880
19878
|
{
|
|
19881
19879
|
label: !0,
|
|
19882
19880
|
name: "accountHolderCountryOfCitizenship",
|
|
19883
|
-
options:
|
|
19881
|
+
options: l
|
|
19884
19882
|
}
|
|
19885
19883
|
),
|
|
19886
19884
|
/* @__PURE__ */ i.jsx(
|
|
@@ -19892,11 +19890,11 @@ const xt = {
|
|
|
19892
19890
|
}
|
|
19893
19891
|
),
|
|
19894
19892
|
/* @__PURE__ */ i.jsx(Y, { label: !0, name: "accountHolderDbaName" }),
|
|
19895
|
-
/* @__PURE__ */ i.jsx(
|
|
19893
|
+
/* @__PURE__ */ i.jsx(Xr, { name: "accountHolderDateOfBirth", label: !0 }),
|
|
19896
19894
|
/* @__PURE__ */ i.jsx(
|
|
19897
19895
|
Ka,
|
|
19898
19896
|
{
|
|
19899
|
-
prompt:
|
|
19897
|
+
prompt: d("primaryAddress"),
|
|
19900
19898
|
prefix: "accountHolderAddress",
|
|
19901
19899
|
showIf: o.accountHolderIsEuResident === "yes" || s || r
|
|
19902
19900
|
}
|
|
@@ -19905,7 +19903,7 @@ const xt = {
|
|
|
19905
19903
|
/* @__PURE__ */ i.jsx(
|
|
19906
19904
|
Ka,
|
|
19907
19905
|
{
|
|
19908
|
-
prompt:
|
|
19906
|
+
prompt: d("mailingAddress"),
|
|
19909
19907
|
prefix: "accountHolderMailingAddress",
|
|
19910
19908
|
showIf: o.accountHolderMailingAddressIsDifferent === "yes"
|
|
19911
19909
|
}
|
|
@@ -19920,26 +19918,26 @@ const xt = {
|
|
|
19920
19918
|
}
|
|
19921
19919
|
)
|
|
19922
19920
|
] });
|
|
19923
|
-
},
|
|
19921
|
+
}, eo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx($r, {}) }), sa = ({
|
|
19924
19922
|
index: e,
|
|
19925
19923
|
showIf: a = !0,
|
|
19926
19924
|
more: n,
|
|
19927
19925
|
countryOptions: r
|
|
19928
19926
|
}) => {
|
|
19929
|
-
const { fields: s, getLocalTitle: o, getLocalSubTitle: u, hideField:
|
|
19927
|
+
const { fields: s, getLocalTitle: o, getLocalSubTitle: u, hideField: d } = O(), l = `accountHolderTaxResidenceCountry${e}`, m = `accountHolderTaxResidenceForeignTin${e}`, k = `accountHolderTaxResidenceForeignTin${e}IsNotRequired`, v = `accountHolderShowTaxResidence${e + 1}`, b = `taxResidence${e}`, C = [
|
|
19930
19928
|
s.accountHolderTaxResidenceCountry1,
|
|
19931
19929
|
s.accountHolderTaxResidenceCountry2,
|
|
19932
19930
|
s.accountHolderTaxResidenceCountry3,
|
|
19933
19931
|
s.accountHolderTaxResidenceCountry4,
|
|
19934
19932
|
s.accountHolderTaxResidenceCountry5
|
|
19935
19933
|
].filter(
|
|
19936
|
-
(
|
|
19937
|
-
),
|
|
19938
|
-
(
|
|
19934
|
+
(M) => M !== s[`accountHolderTaxResidenceCountry${e}`]
|
|
19935
|
+
), I = r.filter(
|
|
19936
|
+
(M) => !C.includes(M.value)
|
|
19939
19937
|
);
|
|
19940
19938
|
return Q(() => {
|
|
19941
|
-
a || (l
|
|
19942
|
-
}, [
|
|
19939
|
+
a || (d(l), d(m), d(k));
|
|
19940
|
+
}, [l, d, k, a, m]), a ? /* @__PURE__ */ i.jsxs(
|
|
19943
19941
|
he,
|
|
19944
19942
|
{
|
|
19945
19943
|
title: o(b),
|
|
@@ -19949,30 +19947,30 @@ const xt = {
|
|
|
19949
19947
|
/* @__PURE__ */ i.jsx(
|
|
19950
19948
|
Te,
|
|
19951
19949
|
{
|
|
19952
|
-
name:
|
|
19950
|
+
name: l,
|
|
19953
19951
|
className: "taxbit-country",
|
|
19954
|
-
options:
|
|
19952
|
+
options: I,
|
|
19955
19953
|
label: !0
|
|
19956
19954
|
}
|
|
19957
19955
|
),
|
|
19958
19956
|
/* @__PURE__ */ i.jsx(Ke, { name: m, label: !0 }),
|
|
19959
19957
|
/* @__PURE__ */ i.jsx(F, { label: !0, name: k }),
|
|
19960
|
-
n ? /* @__PURE__ */ i.jsx(Ie, { children: /* @__PURE__ */ i.jsx(
|
|
19958
|
+
n ? /* @__PURE__ */ i.jsx(Ie, { children: /* @__PURE__ */ i.jsx(Jr, { name: v }) }) : null
|
|
19961
19959
|
]
|
|
19962
19960
|
}
|
|
19963
19961
|
) : null;
|
|
19964
|
-
},
|
|
19962
|
+
}, ao = () => {
|
|
19965
19963
|
const { onPersistCollectedData: e, goBack: a, onCancel: n } = X(), { fields: r, getLocalTitle: s, getLocalCountry: o } = O(), u = J(
|
|
19966
|
-
() =>
|
|
19967
|
-
...
|
|
19968
|
-
label: o(
|
|
19969
|
-
})).sort((
|
|
19964
|
+
() => vt.map((l) => ({
|
|
19965
|
+
...l,
|
|
19966
|
+
label: o(l.value)
|
|
19967
|
+
})).sort((l, m) => l.label.localeCompare(m.label)),
|
|
19970
19968
|
[o]
|
|
19971
|
-
),
|
|
19972
|
-
() =>
|
|
19973
|
-
...
|
|
19974
|
-
label: o(
|
|
19975
|
-
})).sort((
|
|
19969
|
+
), d = J(
|
|
19970
|
+
() => ua.map((l) => ({
|
|
19971
|
+
...l,
|
|
19972
|
+
label: o(l.value)
|
|
19973
|
+
})).sort((l, m) => l.label.localeCompare(m.label)),
|
|
19976
19974
|
[o]
|
|
19977
19975
|
);
|
|
19978
19976
|
return /* @__PURE__ */ i.jsxs(pe, { title: s("accountHolderTaxInformation"), children: [
|
|
@@ -20016,7 +20014,7 @@ const xt = {
|
|
|
20016
20014
|
)
|
|
20017
20015
|
] }),
|
|
20018
20016
|
/* @__PURE__ */ i.jsx(
|
|
20019
|
-
|
|
20017
|
+
Kn,
|
|
20020
20018
|
{
|
|
20021
20019
|
label: o(r.accountHolderAddressCountry),
|
|
20022
20020
|
name: "accountHolderCountryIsResidence"
|
|
@@ -20027,7 +20025,7 @@ const xt = {
|
|
|
20027
20025
|
{
|
|
20028
20026
|
index: 1,
|
|
20029
20027
|
showIf: r.accountHolderIsIndividual !== void 0,
|
|
20030
|
-
countryOptions:
|
|
20028
|
+
countryOptions: d,
|
|
20031
20029
|
more: !0
|
|
20032
20030
|
}
|
|
20033
20031
|
),
|
|
@@ -20036,7 +20034,7 @@ const xt = {
|
|
|
20036
20034
|
{
|
|
20037
20035
|
index: 2,
|
|
20038
20036
|
showIf: r.accountHolderShowTaxResidence2 === "yes",
|
|
20039
|
-
countryOptions:
|
|
20037
|
+
countryOptions: d,
|
|
20040
20038
|
more: !0
|
|
20041
20039
|
}
|
|
20042
20040
|
),
|
|
@@ -20045,7 +20043,7 @@ const xt = {
|
|
|
20045
20043
|
{
|
|
20046
20044
|
index: 3,
|
|
20047
20045
|
showIf: r.accountHolderShowTaxResidence3 === "yes",
|
|
20048
|
-
countryOptions:
|
|
20046
|
+
countryOptions: d,
|
|
20049
20047
|
more: !0
|
|
20050
20048
|
}
|
|
20051
20049
|
),
|
|
@@ -20054,7 +20052,7 @@ const xt = {
|
|
|
20054
20052
|
{
|
|
20055
20053
|
index: 4,
|
|
20056
20054
|
showIf: r.accountHolderShowTaxResidence4 === "yes",
|
|
20057
|
-
countryOptions:
|
|
20055
|
+
countryOptions: d,
|
|
20058
20056
|
more: !0
|
|
20059
20057
|
}
|
|
20060
20058
|
),
|
|
@@ -20063,7 +20061,7 @@ const xt = {
|
|
|
20063
20061
|
{
|
|
20064
20062
|
index: 5,
|
|
20065
20063
|
showIf: r.accountHolderShowTaxResidence5 === "yes",
|
|
20066
|
-
countryOptions:
|
|
20064
|
+
countryOptions: d
|
|
20067
20065
|
}
|
|
20068
20066
|
)
|
|
20069
20067
|
] }),
|
|
@@ -20076,24 +20074,24 @@ const xt = {
|
|
|
20076
20074
|
}
|
|
20077
20075
|
)
|
|
20078
20076
|
] });
|
|
20079
|
-
},
|
|
20077
|
+
}, io = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(ao, {}) }), no = () => {
|
|
20080
20078
|
const { onPersistCollectedData: e, goBack: a } = X(), { fields: n } = O();
|
|
20081
20079
|
return /* @__PURE__ */ i.jsxs(pe, { title: "exemptions", children: [
|
|
20082
20080
|
/* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
|
|
20083
|
-
/* @__PURE__ */ i.jsx(Te, { name: "exemptFatcaCode", options:
|
|
20084
|
-
/* @__PURE__ */ i.jsx(Te, { name: "exemptPayeeCode", options:
|
|
20081
|
+
/* @__PURE__ */ i.jsx(Te, { name: "exemptFatcaCode", options: At, label: !0 }),
|
|
20082
|
+
/* @__PURE__ */ i.jsx(Te, { name: "exemptPayeeCode", options: Ot, label: !0 })
|
|
20085
20083
|
] }),
|
|
20086
20084
|
/* @__PURE__ */ i.jsx(Ae, { onBack: a, onNext: () => e(n) })
|
|
20087
20085
|
] });
|
|
20088
|
-
},
|
|
20089
|
-
const { fields: e, getLocalTitle: a, getLocalOption: n } = O(), { onPersistCollectedData: r, goBack: s } = X(), o =
|
|
20086
|
+
}, to = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(no, {}) }), ro = () => {
|
|
20087
|
+
const { fields: e, getLocalTitle: a, getLocalOption: n } = O(), { onPersistCollectedData: r, goBack: s } = X(), o = ze.map((u) => ({
|
|
20090
20088
|
...u,
|
|
20091
20089
|
label: n(`usPerson_${u.value}`)
|
|
20092
20090
|
}));
|
|
20093
20091
|
return /* @__PURE__ */ i.jsxs(pe, { title: a("regardedOwnerClassification"), children: [
|
|
20094
20092
|
/* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
|
|
20095
20093
|
/* @__PURE__ */ i.jsx(
|
|
20096
|
-
|
|
20094
|
+
x,
|
|
20097
20095
|
{
|
|
20098
20096
|
name: "regardedOwnerUsPerson",
|
|
20099
20097
|
options: o,
|
|
@@ -20101,63 +20099,63 @@ const xt = {
|
|
|
20101
20099
|
}
|
|
20102
20100
|
),
|
|
20103
20101
|
/* @__PURE__ */ i.jsx(
|
|
20104
|
-
|
|
20102
|
+
x,
|
|
20105
20103
|
{
|
|
20106
20104
|
name: "regardedOwnerUsAccountType",
|
|
20107
|
-
options:
|
|
20105
|
+
options: Et,
|
|
20108
20106
|
label: !0
|
|
20109
20107
|
}
|
|
20110
20108
|
),
|
|
20111
20109
|
/* @__PURE__ */ i.jsx(
|
|
20112
|
-
|
|
20110
|
+
x,
|
|
20113
20111
|
{
|
|
20114
20112
|
name: "regardedOwnerForeignAccountType",
|
|
20115
|
-
options:
|
|
20113
|
+
options: Nt,
|
|
20116
20114
|
label: !0
|
|
20117
20115
|
}
|
|
20118
20116
|
),
|
|
20119
20117
|
/* @__PURE__ */ i.jsx(
|
|
20120
|
-
|
|
20118
|
+
x,
|
|
20121
20119
|
{
|
|
20122
20120
|
name: "regardedOwnerUsLlcClassification",
|
|
20123
|
-
options:
|
|
20121
|
+
options: ti,
|
|
20124
20122
|
label: !0
|
|
20125
20123
|
}
|
|
20126
20124
|
),
|
|
20127
20125
|
/* @__PURE__ */ i.jsx(Y, { name: "regardedOwnerUsOtherClassification", label: !0 }),
|
|
20128
20126
|
/* @__PURE__ */ i.jsx(
|
|
20129
|
-
|
|
20127
|
+
x,
|
|
20130
20128
|
{
|
|
20131
20129
|
name: "regardedOwnerUsTrustEstateEin",
|
|
20132
|
-
options:
|
|
20130
|
+
options: ze,
|
|
20133
20131
|
label: !0
|
|
20134
20132
|
}
|
|
20135
20133
|
),
|
|
20136
20134
|
/* @__PURE__ */ i.jsx(
|
|
20137
|
-
|
|
20135
|
+
x,
|
|
20138
20136
|
{
|
|
20139
20137
|
name: "regardedOwnerForeignOtherClassification",
|
|
20140
|
-
options:
|
|
20138
|
+
options: ii,
|
|
20141
20139
|
label: !0
|
|
20142
20140
|
}
|
|
20143
20141
|
),
|
|
20144
20142
|
/* @__PURE__ */ i.jsx(
|
|
20145
|
-
|
|
20143
|
+
x,
|
|
20146
20144
|
{
|
|
20147
20145
|
name: "regardedOwnerForeignTrustClassification",
|
|
20148
|
-
options:
|
|
20146
|
+
options: ni,
|
|
20149
20147
|
label: !0
|
|
20150
20148
|
}
|
|
20151
20149
|
)
|
|
20152
20150
|
] }),
|
|
20153
20151
|
/* @__PURE__ */ i.jsx(Ae, { onBack: s, onNext: () => r(e) })
|
|
20154
20152
|
] });
|
|
20155
|
-
},
|
|
20153
|
+
}, oo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(ro, {}) }), so = () => {
|
|
20156
20154
|
const { onPersistCollectedData: e, goBack: a, onCancel: n } = X(), { fields: r, getLocalCountry: s, getLocalTitle: o } = O(), u = J(
|
|
20157
|
-
() =>
|
|
20158
|
-
...
|
|
20159
|
-
label: s(
|
|
20160
|
-
})).sort((
|
|
20155
|
+
() => ua.map((d) => ({
|
|
20156
|
+
...d,
|
|
20157
|
+
label: s(d.value)
|
|
20158
|
+
})).sort((d, l) => d.label.localeCompare(l.label)),
|
|
20161
20159
|
[s]
|
|
20162
20160
|
);
|
|
20163
20161
|
return /* @__PURE__ */ i.jsxs(pe, { title: o("regardedOwnerContactInformation"), children: [
|
|
@@ -20198,7 +20196,7 @@ const xt = {
|
|
|
20198
20196
|
}
|
|
20199
20197
|
)
|
|
20200
20198
|
] });
|
|
20201
|
-
},
|
|
20199
|
+
}, lo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(so, {}) }), uo = () => {
|
|
20202
20200
|
const { onPersistCollectedData: e, goBack: a } = X(), { fields: n, getLocalTitle: r } = O();
|
|
20203
20201
|
return /* @__PURE__ */ i.jsxs(pe, { title: r("regardedOwnerTaxInformation"), children: [
|
|
20204
20202
|
/* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
|
|
@@ -20208,7 +20206,7 @@ const xt = {
|
|
|
20208
20206
|
] }),
|
|
20209
20207
|
/* @__PURE__ */ i.jsx(Ae, { onBack: a, onNext: () => e(n) })
|
|
20210
20208
|
] });
|
|
20211
|
-
},
|
|
20209
|
+
}, co = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(uo, {}) }), ne = ({ text: e }) => {
|
|
20212
20210
|
const n = ((r) => {
|
|
20213
20211
|
if (!r)
|
|
20214
20212
|
return "";
|
|
@@ -20216,13 +20214,13 @@ const xt = {
|
|
|
20216
20214
|
return "*".repeat(s) + r.substring(s);
|
|
20217
20215
|
})(e);
|
|
20218
20216
|
return /* @__PURE__ */ i.jsx("span", { children: n });
|
|
20219
|
-
},
|
|
20217
|
+
}, mo = () => {
|
|
20220
20218
|
const { data: e, editTo: a, isW9: n, isW8: r } = X(), {
|
|
20221
20219
|
getLocalTitle: s,
|
|
20222
20220
|
getLocalOption: o,
|
|
20223
20221
|
getLocalCountry: u,
|
|
20224
|
-
getLocalText:
|
|
20225
|
-
visibleFields:
|
|
20222
|
+
getLocalText: d,
|
|
20223
|
+
visibleFields: l
|
|
20226
20224
|
} = O();
|
|
20227
20225
|
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
20228
20226
|
/* @__PURE__ */ i.jsxs(he, { title: s("accountHolder"), children: [
|
|
@@ -20385,7 +20383,7 @@ const xt = {
|
|
|
20385
20383
|
label: s("address"),
|
|
20386
20384
|
onEdit: () => a("AccountHolderContact"),
|
|
20387
20385
|
children: /* @__PURE__ */ i.jsx(
|
|
20388
|
-
|
|
20386
|
+
Fa,
|
|
20389
20387
|
{
|
|
20390
20388
|
address: {
|
|
20391
20389
|
street: e == null ? void 0 : e.accountHolderAddressStreet,
|
|
@@ -20405,7 +20403,7 @@ const xt = {
|
|
|
20405
20403
|
label: s("mailingAddress"),
|
|
20406
20404
|
onEdit: () => a("AccountHolderContact"),
|
|
20407
20405
|
children: /* @__PURE__ */ i.jsx(
|
|
20408
|
-
|
|
20406
|
+
Fa,
|
|
20409
20407
|
{
|
|
20410
20408
|
address: {
|
|
20411
20409
|
street: e == null ? void 0 : e.accountHolderMailingAddressStreet,
|
|
@@ -20481,10 +20479,17 @@ const xt = {
|
|
|
20481
20479
|
label: !0,
|
|
20482
20480
|
children: [
|
|
20483
20481
|
(e == null ? void 0 : e.accountHolderVatIdentificationNumber) && /* @__PURE__ */ i.jsx(ne, { text: e == null ? void 0 : e.accountHolderVatIdentificationNumber }),
|
|
20484
|
-
(e == null ? void 0 : e.accountHolderVatIdentificationNumberIsNotRequired) == "yes" &&
|
|
20482
|
+
(e == null ? void 0 : e.accountHolderVatIdentificationNumberIsNotRequired) == "yes" && d("notRequired")
|
|
20485
20483
|
]
|
|
20486
20484
|
}
|
|
20487
20485
|
),
|
|
20486
|
+
/* @__PURE__ */ i.jsx(
|
|
20487
|
+
Kn,
|
|
20488
|
+
{
|
|
20489
|
+
label: u(e.accountHolderAddressCountry),
|
|
20490
|
+
name: "accountHolderCountryIsResidence"
|
|
20491
|
+
}
|
|
20492
|
+
),
|
|
20488
20493
|
/* @__PURE__ */ i.jsxs(
|
|
20489
20494
|
he,
|
|
20490
20495
|
{
|
|
@@ -20508,7 +20513,7 @@ const xt = {
|
|
|
20508
20513
|
}
|
|
20509
20514
|
),
|
|
20510
20515
|
" ",
|
|
20511
|
-
(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1IsNotRequired) == "yes" &&
|
|
20516
|
+
(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin1IsNotRequired) == "yes" && d("notRequired")
|
|
20512
20517
|
] }),
|
|
20513
20518
|
/* @__PURE__ */ i.jsx(
|
|
20514
20519
|
f,
|
|
@@ -20527,7 +20532,7 @@ const xt = {
|
|
|
20527
20532
|
}
|
|
20528
20533
|
),
|
|
20529
20534
|
" ",
|
|
20530
|
-
(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2IsNotRequired) == "yes" &&
|
|
20535
|
+
(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin2IsNotRequired) == "yes" && d("notRequired")
|
|
20531
20536
|
] }),
|
|
20532
20537
|
/* @__PURE__ */ i.jsx(
|
|
20533
20538
|
f,
|
|
@@ -20546,7 +20551,7 @@ const xt = {
|
|
|
20546
20551
|
}
|
|
20547
20552
|
),
|
|
20548
20553
|
" ",
|
|
20549
|
-
(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3IsNotRequired) == "yes" &&
|
|
20554
|
+
(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin3IsNotRequired) == "yes" && d("notRequired")
|
|
20550
20555
|
] }),
|
|
20551
20556
|
/* @__PURE__ */ i.jsx(
|
|
20552
20557
|
f,
|
|
@@ -20565,7 +20570,7 @@ const xt = {
|
|
|
20565
20570
|
}
|
|
20566
20571
|
),
|
|
20567
20572
|
" ",
|
|
20568
|
-
(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4IsNotRequired) == "yes" &&
|
|
20573
|
+
(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin4IsNotRequired) == "yes" && d("notRequired")
|
|
20569
20574
|
] }),
|
|
20570
20575
|
/* @__PURE__ */ i.jsx(
|
|
20571
20576
|
f,
|
|
@@ -20584,7 +20589,7 @@ const xt = {
|
|
|
20584
20589
|
}
|
|
20585
20590
|
),
|
|
20586
20591
|
" ",
|
|
20587
|
-
(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5IsNotRequired) == "yes" &&
|
|
20592
|
+
(e == null ? void 0 : e.accountHolderTaxResidenceForeignTin5IsNotRequired) == "yes" && d("notRequired")
|
|
20588
20593
|
] })
|
|
20589
20594
|
]
|
|
20590
20595
|
}
|
|
@@ -20594,7 +20599,7 @@ const xt = {
|
|
|
20594
20599
|
he,
|
|
20595
20600
|
{
|
|
20596
20601
|
title: s("regardedOwner"),
|
|
20597
|
-
showIf: !!
|
|
20602
|
+
showIf: !!l.regardedOwnerUsPerson && e.regardedOwnerUsPerson !== void 0,
|
|
20598
20603
|
children: [
|
|
20599
20604
|
/* @__PURE__ */ i.jsx(
|
|
20600
20605
|
f,
|
|
@@ -20641,13 +20646,13 @@ const xt = {
|
|
|
20641
20646
|
children: o(e == null ? void 0 : e.regardedOwnerForeignAccountType)
|
|
20642
20647
|
}
|
|
20643
20648
|
),
|
|
20644
|
-
!!
|
|
20649
|
+
!!l.regardedOwnerUsPerson && e.regardedOwnerUsPerson !== void 0 && /* @__PURE__ */ i.jsx(
|
|
20645
20650
|
Ie,
|
|
20646
20651
|
{
|
|
20647
20652
|
label: s("address"),
|
|
20648
20653
|
onEdit: () => a("RegardedOwnerContact"),
|
|
20649
20654
|
children: /* @__PURE__ */ i.jsx(
|
|
20650
|
-
|
|
20655
|
+
Fa,
|
|
20651
20656
|
{
|
|
20652
20657
|
address: {
|
|
20653
20658
|
street: e == null ? void 0 : e.regardedOwnerAddressStreet,
|
|
@@ -20667,7 +20672,7 @@ const xt = {
|
|
|
20667
20672
|
label: s("mailingAddress"),
|
|
20668
20673
|
onEdit: () => a("RegardedOwnerContact"),
|
|
20669
20674
|
children: /* @__PURE__ */ i.jsx(
|
|
20670
|
-
|
|
20675
|
+
Fa,
|
|
20671
20676
|
{
|
|
20672
20677
|
address: {
|
|
20673
20678
|
street: e == null ? void 0 : e.regardedOwnerMailingAddressStreet,
|
|
@@ -20739,11 +20744,11 @@ const xt = {
|
|
|
20739
20744
|
}
|
|
20740
20745
|
)
|
|
20741
20746
|
] });
|
|
20742
|
-
},
|
|
20747
|
+
}, go = () => {
|
|
20743
20748
|
const { goBack: e, onSubmitTaxDocumentation: a, isW8: n, isW9: r } = X(), { getLocalTitle: s, submittableFields: o } = O();
|
|
20744
20749
|
return /* @__PURE__ */ i.jsxs(pe, { title: s("summary"), children: [
|
|
20745
20750
|
/* @__PURE__ */ i.jsxs("main", { className: "taxbit-page-main", children: [
|
|
20746
|
-
/* @__PURE__ */ i.jsx(
|
|
20751
|
+
/* @__PURE__ */ i.jsx(mo, {}),
|
|
20747
20752
|
/* @__PURE__ */ i.jsxs(he, { title: "Certify", showIf: r || n, children: [
|
|
20748
20753
|
/* @__PURE__ */ i.jsx(F, { name: "iCertifyToAll", label: !0 }),
|
|
20749
20754
|
/* @__PURE__ */ i.jsx(F, { name: "iConfirmTheTaxIdIsCorrect", label: !0 }),
|
|
@@ -20770,14 +20775,14 @@ const xt = {
|
|
|
20770
20775
|
}
|
|
20771
20776
|
)
|
|
20772
20777
|
] });
|
|
20773
|
-
},
|
|
20778
|
+
}, ko = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(go, {}) }), ho = () => {
|
|
20774
20779
|
const {
|
|
20775
20780
|
getLocalCountry: e,
|
|
20776
20781
|
getRequiredLocalPrompt: a,
|
|
20777
20782
|
getLocalTitle: n,
|
|
20778
20783
|
getLocalSubPrompt: r
|
|
20779
20784
|
} = O(), s = J(
|
|
20780
|
-
() =>
|
|
20785
|
+
() => ua.map((o) => ({
|
|
20781
20786
|
...o,
|
|
20782
20787
|
label: e(o.value)
|
|
20783
20788
|
})).sort((o, u) => o.label.localeCompare(u.label)),
|
|
@@ -20789,9 +20794,9 @@ const xt = {
|
|
|
20789
20794
|
title: n("placeOfBirth"),
|
|
20790
20795
|
subTitle: r("accountHolderCityOfBirth"),
|
|
20791
20796
|
children: [
|
|
20792
|
-
/* @__PURE__ */ i.jsx(Ie, { label: a("accountHolderCityOfBirth"), children: /* @__PURE__ */ i.jsx(
|
|
20797
|
+
/* @__PURE__ */ i.jsx(Ie, { label: a("accountHolderCityOfBirth"), children: /* @__PURE__ */ i.jsx(Un, { name: "accountHolderCityOfBirth" }) }),
|
|
20793
20798
|
/* @__PURE__ */ i.jsx(Ie, { label: a("accountHolderCountryOfBirth"), children: /* @__PURE__ */ i.jsx(
|
|
20794
|
-
|
|
20799
|
+
xn,
|
|
20795
20800
|
{
|
|
20796
20801
|
name: "accountHolderCountryOfBirth",
|
|
20797
20802
|
options: s
|
|
@@ -20800,10 +20805,10 @@ const xt = {
|
|
|
20800
20805
|
]
|
|
20801
20806
|
}
|
|
20802
20807
|
);
|
|
20803
|
-
},
|
|
20808
|
+
}, vo = () => {
|
|
20804
20809
|
const { onPersistCollectedData: e, goBack: a, onCancel: n } = X(), { fields: r, getLocalTitle: s } = O();
|
|
20805
20810
|
return /* @__PURE__ */ i.jsxs(pe, { title: s("accountHolderTaxInformation"), children: [
|
|
20806
|
-
/* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(
|
|
20811
|
+
/* @__PURE__ */ i.jsx("main", { className: "taxbit-page-main", children: /* @__PURE__ */ i.jsx(ho, {}) }),
|
|
20807
20812
|
/* @__PURE__ */ i.jsx(
|
|
20808
20813
|
Ae,
|
|
20809
20814
|
{
|
|
@@ -20813,14 +20818,14 @@ const xt = {
|
|
|
20813
20818
|
}
|
|
20814
20819
|
)
|
|
20815
20820
|
] });
|
|
20816
|
-
},
|
|
20821
|
+
}, fo = () => /* @__PURE__ */ i.jsx(fe, { children: /* @__PURE__ */ i.jsx(vo, {}) }), Vn = ({
|
|
20817
20822
|
data: e,
|
|
20818
20823
|
onSubmit: a,
|
|
20819
20824
|
language: n,
|
|
20820
20825
|
taxForms: r,
|
|
20821
20826
|
complete: s
|
|
20822
20827
|
}) => /* @__PURE__ */ i.jsx(
|
|
20823
|
-
|
|
20828
|
+
Gr,
|
|
20824
20829
|
{
|
|
20825
20830
|
data: e,
|
|
20826
20831
|
onSubmit: a,
|
|
@@ -20828,7 +20833,7 @@ const xt = {
|
|
|
20828
20833
|
taxForms: r,
|
|
20829
20834
|
step: s ? "Summary" : void 0,
|
|
20830
20835
|
children: /* @__PURE__ */ i.jsx(
|
|
20831
|
-
|
|
20836
|
+
Ao,
|
|
20832
20837
|
{
|
|
20833
20838
|
language: n,
|
|
20834
20839
|
taxForms: r,
|
|
@@ -20836,9 +20841,9 @@ const xt = {
|
|
|
20836
20841
|
}
|
|
20837
20842
|
)
|
|
20838
20843
|
}
|
|
20839
|
-
),
|
|
20844
|
+
), po = ["DAC7", "W-9", "W-8BEN", "W-8BEN-E"], Ao = ({
|
|
20840
20845
|
language: e = "en-us",
|
|
20841
|
-
taxForms: a =
|
|
20846
|
+
taxForms: a = po,
|
|
20842
20847
|
data: n
|
|
20843
20848
|
}) => {
|
|
20844
20849
|
const { stepName: r, setLanguage: s, setSupportedForms: o, onResetTaxDocumentation: u } = X();
|
|
@@ -20849,31 +20854,33 @@ const xt = {
|
|
|
20849
20854
|
}, [a, o]), Q(() => {
|
|
20850
20855
|
n && u(n);
|
|
20851
20856
|
}, [n, u]);
|
|
20852
|
-
const
|
|
20853
|
-
AccountHolderClassification:
|
|
20854
|
-
AccountHolderContact:
|
|
20855
|
-
AccountHolderTax:
|
|
20856
|
-
AccountHolderTaxClarification:
|
|
20857
|
-
Exemptions:
|
|
20858
|
-
RegardedOwnerClassification:
|
|
20859
|
-
RegardedOwnerContact:
|
|
20860
|
-
RegardedOwnerTax:
|
|
20861
|
-
Summary:
|
|
20857
|
+
const l = {
|
|
20858
|
+
AccountHolderClassification: Qr,
|
|
20859
|
+
AccountHolderContact: eo,
|
|
20860
|
+
AccountHolderTax: io,
|
|
20861
|
+
AccountHolderTaxClarification: fo,
|
|
20862
|
+
Exemptions: to,
|
|
20863
|
+
RegardedOwnerClassification: oo,
|
|
20864
|
+
RegardedOwnerContact: lo,
|
|
20865
|
+
RegardedOwnerTax: co,
|
|
20866
|
+
Summary: ko
|
|
20862
20867
|
}[r];
|
|
20863
|
-
return /* @__PURE__ */ i.jsx(
|
|
20864
|
-
},
|
|
20868
|
+
return /* @__PURE__ */ i.jsx(l, {});
|
|
20869
|
+
}, No = ({
|
|
20865
20870
|
data: e,
|
|
20866
20871
|
onSubmit: a,
|
|
20867
|
-
language: n
|
|
20872
|
+
language: n,
|
|
20873
|
+
complete: r
|
|
20868
20874
|
}) => /* @__PURE__ */ i.jsx(
|
|
20869
|
-
|
|
20875
|
+
Vn,
|
|
20870
20876
|
{
|
|
20871
20877
|
data: e,
|
|
20872
20878
|
language: n,
|
|
20873
20879
|
onSubmit: a,
|
|
20880
|
+
complete: r,
|
|
20874
20881
|
taxForms: ["DAC7"]
|
|
20875
20882
|
}
|
|
20876
|
-
),
|
|
20883
|
+
), bo = ({
|
|
20877
20884
|
staging: e,
|
|
20878
20885
|
data: a,
|
|
20879
20886
|
bearerToken: n,
|
|
@@ -20882,25 +20889,33 @@ const xt = {
|
|
|
20882
20889
|
onSubmit: o,
|
|
20883
20890
|
onSuccess: u
|
|
20884
20891
|
}) => {
|
|
20885
|
-
var
|
|
20886
|
-
const { status:
|
|
20892
|
+
var I;
|
|
20893
|
+
const { status: d, formStatus: l, postData: m, formSubmitted: k, serverData: v } = Kt(
|
|
20894
|
+
n,
|
|
20895
|
+
e
|
|
20896
|
+
), [b, p] = U(
|
|
20887
20897
|
a
|
|
20888
20898
|
);
|
|
20889
|
-
|
|
20899
|
+
if (Q(() => {
|
|
20890
20900
|
v && p({ ...v, ...a });
|
|
20891
|
-
}, [a, v]), !
|
|
20892
|
-
|
|
20901
|
+
}, [a, v]), !l || l !== Ua.NotSubmitted && !v)
|
|
20902
|
+
return /* @__PURE__ */ i.jsx("div", { children: ai("retrievingInterviewStatus", r) });
|
|
20903
|
+
if (k)
|
|
20904
|
+
return /* @__PURE__ */ i.jsx("div", { children: ai("interviewIsComplete", r) });
|
|
20905
|
+
const C = async (M) => {
|
|
20906
|
+
o && o(M), await m(M), u && u(M);
|
|
20907
|
+
};
|
|
20908
|
+
return /* @__PURE__ */ i.jsx(
|
|
20909
|
+
Vn,
|
|
20893
20910
|
{
|
|
20894
20911
|
data: b,
|
|
20895
20912
|
language: r,
|
|
20896
|
-
onSubmit:
|
|
20897
|
-
m(T), o && o(T);
|
|
20898
|
-
},
|
|
20913
|
+
onSubmit: C,
|
|
20899
20914
|
taxForms: s,
|
|
20900
|
-
complete: ((
|
|
20915
|
+
complete: ((I = d == null ? void 0 : d.DAC7Interview) == null ? void 0 : I.dataCollectionStatus) === Bn.Complete
|
|
20901
20916
|
}
|
|
20902
20917
|
);
|
|
20903
|
-
},
|
|
20918
|
+
}, So = ({
|
|
20904
20919
|
data: e,
|
|
20905
20920
|
staging: a,
|
|
20906
20921
|
bearerToken: n,
|
|
@@ -20908,7 +20923,7 @@ const xt = {
|
|
|
20908
20923
|
onSubmit: s,
|
|
20909
20924
|
onSuccess: o
|
|
20910
20925
|
}) => /* @__PURE__ */ i.jsx(
|
|
20911
|
-
|
|
20926
|
+
bo,
|
|
20912
20927
|
{
|
|
20913
20928
|
bearerToken: n,
|
|
20914
20929
|
data: e,
|
|
@@ -20920,9 +20935,9 @@ const xt = {
|
|
|
20920
20935
|
}
|
|
20921
20936
|
);
|
|
20922
20937
|
export {
|
|
20923
|
-
|
|
20924
|
-
|
|
20925
|
-
|
|
20926
|
-
|
|
20927
|
-
|
|
20938
|
+
So as TaxBitDAC7Form,
|
|
20939
|
+
No as TaxBitDAC7FormUI,
|
|
20940
|
+
bo as TaxBitForm,
|
|
20941
|
+
Vn as TaxBitFormUI,
|
|
20942
|
+
Kt as useTaxBit
|
|
20928
20943
|
};
|