@adyen/kyc-components 3.76.0 → 3.76.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/{AcceptTermsOfServiceComponent-f89NhT6Y.js → AcceptTermsOfServiceComponent-BHS7o-J0.js} +6 -6
- package/dist/{AccountSetupRejected-Dg9tH0XT.js → AccountSetupRejected-BXzltkq_.js} +2 -2
- package/dist/{Avatar-C57g8nUO.js → Avatar-CNCNxOpE.js} +1 -1
- package/dist/{BusinessDetailsDropin-DR3v1Rf0.js → BusinessDetailsDropin-DecbmOCD.js} +7 -7
- package/dist/{BusinessFinancingComponent-D_bZTUp4.js → BusinessFinancingComponent-BLiaqb-a.js} +2 -2
- package/dist/{BusinessFinancingDropin-DrCrJLhb.js → BusinessFinancingDropin-B8Xs4eIz.js} +8 -8
- package/dist/{BusinessFinancingPage-DZdrpJam.js → BusinessFinancingPage-DevVX6Vl.js} +2 -2
- package/dist/{BusinessTypeSelectionPage-q7Wzp4gT.js → BusinessTypeSelectionPage-D0PA3a1J.js} +4 -4
- package/dist/{ContractViewer-C8bj_pBL.js → ContractViewer-DGWYUmYj.js} +1 -1
- package/dist/{CreateIndividualComponent-BQOoUDXb.js → CreateIndividualComponent-1Fvo88CM.js} +3 -3
- package/dist/{CreateTransferInstrumentComponent-gS1HTxmT.js → CreateTransferInstrumentComponent-CqDIpaS2.js} +2 -2
- package/dist/{CustomerSupport-DNvgl7bC.js → CustomerSupport-CF_I-4de.js} +5 -5
- package/dist/{DebugModal-CNXwv6Er.js → DebugModal-5HR2hAF0.js} +8 -8
- package/dist/{DecisionMakerDetailsPage-BeSMs8pf.js → DecisionMakerDetailsPage-CH870z41.js} +3 -3
- package/dist/{DecisionMakers-BJ2XR6QT.js → DecisionMakers-B0UCCU2x.js} +4 -4
- package/dist/{EmbeddedStatus-DXTXbpkO.js → EmbeddedStatus-ByVn9RXe.js} +2 -2
- package/dist/{FormEndState-F79j5W8c.js → FormEndState-Bvjb-giP.js} +1 -1
- package/dist/{FormFlow-DFnY9ENe.js → FormFlow-LAmdANlE.js} +2 -2
- package/dist/{IndividualOnfidoDropin-AWJw8bqQ.js → IndividualOnfidoDropin-BkqYoBKB.js} +27 -74
- package/dist/{Introduction-9PvOeYno.js → Introduction-BsuUdnUx.js} +3 -3
- package/dist/{LegalRepresentativeDetailsPage-BvXePOx7.js → LegalRepresentativeDetailsPage-AIJNV68t.js} +3 -3
- package/dist/{ManageIndividualComponent-BXJBW6e6.js → ManageIndividualComponent-b7EYGnBi.js} +3 -3
- package/dist/{ManagePCIComponent-CNvY7iyG.js → ManagePCIComponent-CmX-yAMi.js} +3 -3
- package/dist/{ManageTermsOfServiceComponent-B-qvSFYs.js → ManageTermsOfServiceComponent-BldGhZYo.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-YGD31-Kn.js → ManageTransferInstrumentComponent-CnY2dNtS.js} +3 -3
- package/dist/{OnboardingDropinComponent-DWw-dCwC.js → OnboardingDropinComponent-D25NXPCj.js} +32 -32
- package/dist/{ProviderButton-CNHj_6dv.js → ProviderButton-Ddp5AU3z.js} +2 -2
- package/dist/{Review-BvLm0IfR.js → Review-C8AX-G32.js} +3 -3
- package/dist/{RootBusinessDetailsPage-BzFNlSlk.js → RootBusinessDetailsPage-BV-EwgFn.js} +2 -2
- package/dist/{RootIndividualDetailsPage-nARgmjUv.js → RootIndividualDetailsPage-COAjUEqn.js} +3 -3
- package/dist/{SignPCIComponent-Dv7eq-uJ.js → SignPCIComponent-BNLPl8cS.js} +5 -5
- package/dist/{SingpassSelection-DSdSs-H8.js → SingpassSelection-DGz54sJ4.js} +2 -2
- package/dist/{SoleProprietorshipPage-BBsgEE_L.js → SoleProprietorshipPage-nAT_qnHJ.js} +2 -2
- package/dist/{SourceOfFunds.module-CDguFVhK.js → SourceOfFunds.module-CXdN4wkI.js} +1 -1
- package/dist/{SourceOfFundsPage-B0t4wKWa.js → SourceOfFundsPage-BOqPXlsq.js} +9 -9
- package/dist/{StoreProvider-DVGwcDPm.js → StoreProvider-hYJ67cKj.js} +302 -220
- package/dist/{TaskItemStatus-fIaRR0Zz.js → TaskItemStatus-DKGCwCHM.js} +2 -2
- package/dist/{TaxReportingDropin-vq83EKLq.js → TaxReportingDropin--1v36Xg_.js} +7 -7
- package/dist/{TileGroup-33C3Ot6F.js → TileGroup-VOKhuoWN.js} +2 -2
- package/dist/{TrustDetailsPage-DYE-6--m.js → TrustDetailsPage-CW9yV0is.js} +5 -5
- package/dist/{TrustMemberCompanyPage-Dc-YrJbn.js → TrustMemberCompanyPage-NsbkfmAD.js} +3 -3
- package/dist/{TrustMemberIndividualPage-CROWOG1Q.js → TrustMemberIndividualPage-COZTRCNm.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-D_2IWImy.js → UnincorporatedPartnershipIndividualPage-DKpL6sh9.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-m39PWvqZ.js → UnincorporatedPartnershipMemberCompanyPage-DEzxJWkD.js} +2 -2
- package/dist/{VerificationErrorAlert-2yQJqrpj.js → VerificationErrorAlert-C4Mwf7GJ.js} +1 -1
- package/dist/{ViewVerificationStatusComponent-BG3zFkYq.js → ViewVerificationStatusComponent-DJ-wLMv6.js} +2 -2
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +14 -14
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-pci.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +2 -2
- package/dist/adyen-manage-transfer-instruments.js +2 -2
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-sign-pci.js +2 -2
- package/dist/adyen-terms-of-service.js +2 -2
- package/dist/adyen-transfer-instrument.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/{css-BZbAc7lB.js → css-C7QjkvaT.js} +1 -1
- package/dist/{getFieldsWithExistingData-4LZZrs1H.js → getFieldsWithExistingData-DbmLjWf2.js} +2 -2
- package/dist/{hasDataChanged-DddXfzyt.js → hasDataChanged-C02eKM2t.js} +1 -1
- package/dist/{json-Bpix-qUp.js → json-BwWvHRIX.js} +1 -1
- package/dist/{localizeDateString-BoDb0gXG.js → localizeDateString-CDsvrYfZ.js} +1 -1
- package/dist/{mapFinancialReportsToFinancialInformation-Cc1xPLeI.js → mapFinancialReportsToFinancialInformation-BFUFdQy3.js} +2 -2
- package/dist/{plaintext-DslnnxDi.js → plaintext-Jbf95yD-.js} +1 -1
- package/dist/{resolveEnvironment-B2Go5Bg5.js → resolveEnvironment-Cv3oy5Yp.js} +3 -3
- package/dist/{rules-gdMCHkpn.js → rules-otO1d-Rs.js} +2 -2
- package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +1 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +2 -1
- package/dist/{useMultiForm-Bk-Tet1R.js → useMultiForm-DgD6DVNo.js} +2 -2
- package/dist/{useOnboardingStatus-DP8CFL5I.js → useOnboardingStatus-CV2tRPS6.js} +1 -1
- package/dist/{useSalesChannelsSettings-D-VTziXi.js → useSalesChannelsSettings-lE3Ur4yG.js} +1 -1
- package/dist/{useTermsOfServiceStatus-6yC_r_ou.js → useTermsOfServiceStatus-BJ66eDbo.js} +1 -1
- package/dist/{useUpdateLegalEntity-4_hA_-6i.js → useUpdateLegalEntity-CVBLyyjw.js} +2 -2
- package/dist/{utils-CrH_GCh9.js → utils-CBhn1Rlf.js} +4 -4
- package/dist/{validate-eCQVu79t.js → validate-RdZMRAgy.js} +2 -2
- package/dist/{yaml-DMBOgwJn.js → yaml-D8bZEAYP.js} +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout,
|
|
|
19
19
|
{
|
|
20
20
|
try {
|
|
21
21
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
22
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
22
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f7e2be10-5e48-4ad6-b8e1-1d9f944f965f", e._sentryDebugIdIdentifier = "sentry-dbid-f7e2be10-5e48-4ad6-b8e1-1d9f944f965f");
|
|
23
23
|
} catch (e) {
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -9283,6 +9283,29 @@ function ServerValidationErrors({
|
|
|
9283
9283
|
)) })
|
|
9284
9284
|
] }) });
|
|
9285
9285
|
}
|
|
9286
|
+
const KEY_MARKETS = [
|
|
9287
|
+
CountryCodes.UnitedStates,
|
|
9288
|
+
CountryCodes.UnitedKingdom,
|
|
9289
|
+
CountryCodes.Germany,
|
|
9290
|
+
CountryCodes.France,
|
|
9291
|
+
CountryCodes.Canada,
|
|
9292
|
+
CountryCodes.Australia
|
|
9293
|
+
];
|
|
9294
|
+
function isOnfidoAutofillFlowEnabled(country, taskType, isExperimentEnabled) {
|
|
9295
|
+
const market = KEY_MARKETS.includes(country) ? "KeyMarkets" : "AdditionalMarkets";
|
|
9296
|
+
let type;
|
|
9297
|
+
switch (taskType) {
|
|
9298
|
+
case TaskTypes.INDIVIDUAL:
|
|
9299
|
+
type = "PureIndividuals";
|
|
9300
|
+
break;
|
|
9301
|
+
case TaskTypes.DECISION_MAKER:
|
|
9302
|
+
type = "DecisionMakers";
|
|
9303
|
+
break;
|
|
9304
|
+
default:
|
|
9305
|
+
return false;
|
|
9306
|
+
}
|
|
9307
|
+
return isExperimentEnabled(`EnableAutofillFlowFor${type}In${market}`);
|
|
9308
|
+
}
|
|
9286
9309
|
var VerificationErrorType = /* @__PURE__ */ ((VerificationErrorType2) => {
|
|
9287
9310
|
VerificationErrorType2["DATA_MISSING"] = "dataMissing";
|
|
9288
9311
|
VerificationErrorType2["INVALID_INPUT"] = "invalidInput";
|
|
@@ -10115,7 +10138,12 @@ const mapPayoutAccountSchemaToApiBankAccount = (payoutAccount, bankCountry) => (
|
|
|
10115
10138
|
});
|
|
10116
10139
|
const useCapabilityProblems = () => {
|
|
10117
10140
|
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
10118
|
-
|
|
10141
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
10142
|
+
return rootLegalEntity ? getCapabilityProblems(
|
|
10143
|
+
rootLegalEntity,
|
|
10144
|
+
getLegalEntityCountry(rootLegalEntity),
|
|
10145
|
+
isExperimentEnabled
|
|
10146
|
+
) : void 0;
|
|
10119
10147
|
};
|
|
10120
10148
|
const getProblemsForEntity = (capabilityProblems, entityType, entityId) => {
|
|
10121
10149
|
var _a2;
|
|
@@ -29496,6 +29524,47 @@ function Individual(props) {
|
|
|
29496
29524
|
};
|
|
29497
29525
|
return /* @__PURE__ */ jsx$1("div", { className: "adyen-kyc-individual", children: renderActiveForm(propActiveForm) });
|
|
29498
29526
|
}
|
|
29527
|
+
const individualOnfidoObscuredFields = [
|
|
29528
|
+
"additionalPersonalDetails.idNumber",
|
|
29529
|
+
"additionalPersonalDetails.idNumberExempt"
|
|
29530
|
+
];
|
|
29531
|
+
const individualOnfidoBaseMapping = {
|
|
29532
|
+
"basicDetails.firstName": "individual.name.firstName",
|
|
29533
|
+
"basicDetails.lastName": "individual.name.lastName",
|
|
29534
|
+
"basicDetails.phoneNumber.number": "individual.phone.number",
|
|
29535
|
+
"basicDetails.phoneNumber.phoneCountryCode": "individual.phone.phoneCountryCode",
|
|
29536
|
+
"basicDetails.phoneNumber.type": "individual.phone.type",
|
|
29537
|
+
"basicDetails.email": "individual.email",
|
|
29538
|
+
"additionalPersonalDetails.birthDate": "individual.birthData.dateOfBirth",
|
|
29539
|
+
"additionalPersonalDetails.idNumber": "individual.identificationData.number",
|
|
29540
|
+
"additionalPersonalDetails.idNumberExempt": "individual.identificationData.nationalIdExempt",
|
|
29541
|
+
"additionalPersonalDetails.typeOfIdentity": "individual.identificationData.type",
|
|
29542
|
+
"additionalPersonalDetails.issuerState": "individual.identificationData.issuerState",
|
|
29543
|
+
"additionalPersonalDetails.licenseCardNumber": "individual.identificationData.cardNumber",
|
|
29544
|
+
"additionalPersonalDetails.expiryDate": "individual.identificationData.expiryDate",
|
|
29545
|
+
"additionalPersonalDetails.nationality": "individual.nationality",
|
|
29546
|
+
"additionalPersonalDetails.taxInformation": "individual.taxInformation",
|
|
29547
|
+
// Address fields
|
|
29548
|
+
"additionalPersonalDetails.city": "individual.residentialAddress.city",
|
|
29549
|
+
"additionalPersonalDetails.country": "individual.residentialAddress.country",
|
|
29550
|
+
"additionalPersonalDetails.postalCode": "individual.residentialAddress.postalCode",
|
|
29551
|
+
"additionalPersonalDetails.stateOrProvince": "individual.residentialAddress.stateOrProvince",
|
|
29552
|
+
"additionalPersonalDetails.address": "individual.residentialAddress.street",
|
|
29553
|
+
"additionalPersonalDetails.otherAddressInformation": "individual.residentialAddress.street2"
|
|
29554
|
+
};
|
|
29555
|
+
const individualOnfidoApiKeyMapping = {
|
|
29556
|
+
...reverseMapping(individualOnfidoBaseMapping)
|
|
29557
|
+
};
|
|
29558
|
+
const individualOnfidoDocumentMapping = {
|
|
29559
|
+
["passport"]: "idVerificationMethod.idDocument",
|
|
29560
|
+
["proofOfResidency"]: "proofOfResidency.proofOfResidency",
|
|
29561
|
+
["proofOfNationalIdNumber"]: "proofOfNationalId.proofOfNationalId",
|
|
29562
|
+
["proofOfRelationship"]: "proofOfRelationship.proofOfRelationship"
|
|
29563
|
+
};
|
|
29564
|
+
const remediationIndividualOnfidoApiKeyMapping = {
|
|
29565
|
+
...individualOnfidoApiKeyMapping,
|
|
29566
|
+
...individualOnfidoDocumentMapping
|
|
29567
|
+
};
|
|
29499
29568
|
var ConstitutionalDocumentTypes = /* @__PURE__ */ ((ConstitutionalDocumentTypes2) => {
|
|
29500
29569
|
ConstitutionalDocumentTypes2["BUSINESS_NAME_FILING"] = "doingBusinessAsNameFiling";
|
|
29501
29570
|
ConstitutionalDocumentTypes2["TAX_FILING"] = "taxFiling";
|
|
@@ -30331,16 +30400,18 @@ const UNRELATED_DATA_MISSING_ERROR_CODES = [
|
|
|
30331
30400
|
"2_8250"
|
|
30332
30401
|
];
|
|
30333
30402
|
const UNRELATED_INVALID_INPUT_ERROR_CODES = ["1_14", "2_901", "2_902"];
|
|
30334
|
-
const getComponentMappingFromLEFieldPath = (context, entityType) => {
|
|
30403
|
+
const getComponentMappingFromLEFieldPath = (context, entityType, country, isExperimentEnabled) => {
|
|
30335
30404
|
if (!(context == null ? void 0 : context.key)) {
|
|
30336
30405
|
return;
|
|
30337
30406
|
}
|
|
30338
30407
|
if (context.key === "idVerificationMethod") {
|
|
30339
30408
|
return "idVerificationMethod.idVerificationMethod";
|
|
30340
30409
|
}
|
|
30410
|
+
const isOnfidoAutofillFlow = isExperimentEnabled ? isOnfidoAutofillFlowEnabled(country, TaskTypes.INDIVIDUAL, isExperimentEnabled) : false;
|
|
30411
|
+
const individualRemediationKeyMapping = isOnfidoAutofillFlow ? remediationIndividualOnfidoApiKeyMapping : remediationIndividualApiKeyMapping;
|
|
30341
30412
|
switch (entityType) {
|
|
30342
30413
|
case LegalEntityType.INDIVIDUAL:
|
|
30343
|
-
return context.key in
|
|
30414
|
+
return context.key in individualRemediationKeyMapping ? individualRemediationKeyMapping[context.key] : void 0;
|
|
30344
30415
|
case LegalEntityType.ORGANIZATION:
|
|
30345
30416
|
return context.key in remediationBusinessDetailsApiKeyMapping ? remediationBusinessDetailsApiKeyMapping[context.key] : void 0;
|
|
30346
30417
|
case EntityType.BANK_ACCOUNT:
|
|
@@ -30363,14 +30434,16 @@ const getLinkedRemedidationFormFields = (accFormsAndFields, field) => {
|
|
|
30363
30434
|
return;
|
|
30364
30435
|
}
|
|
30365
30436
|
};
|
|
30366
|
-
const getRemediationsWithFormsAndFields = (remediatingActions, entityType) => {
|
|
30437
|
+
const getRemediationsWithFormsAndFields = (remediatingActions, entityType, country, isExperimentEnabled) => {
|
|
30367
30438
|
const mappedRemediations = remediatingActions.reduce(
|
|
30368
30439
|
(acc, { code: remediationCode }) => {
|
|
30369
30440
|
const apiFieldPathToRemediate = invalidInputRemediationActionMappings[remediationCode];
|
|
30370
30441
|
if (!apiFieldPathToRemediate) {
|
|
30371
30442
|
return acc;
|
|
30372
30443
|
}
|
|
30373
|
-
const mappedCompFields = apiFieldPathToRemediate.map(
|
|
30444
|
+
const mappedCompFields = apiFieldPathToRemediate.map(
|
|
30445
|
+
(context) => getComponentMappingFromLEFieldPath(context, entityType, country, isExperimentEnabled)
|
|
30446
|
+
).filter(Boolean);
|
|
30374
30447
|
if (!mappedCompFields) {
|
|
30375
30448
|
return acc;
|
|
30376
30449
|
}
|
|
@@ -30405,7 +30478,7 @@ const getRemediationsWithFormsAndFields = (remediatingActions, entityType) => {
|
|
|
30405
30478
|
};
|
|
30406
30479
|
};
|
|
30407
30480
|
const isUnRelatedErrorCode = (error) => UNRELATED_DATA_MISSING_ERROR_CODES.includes(error == null ? void 0 : error.code) || UNRELATED_INVALID_INPUT_ERROR_CODES.includes(error == null ? void 0 : error.code);
|
|
30408
|
-
const getInvalidInputError = (parentVerificationError, entityType) => {
|
|
30481
|
+
const getInvalidInputError = (parentVerificationError, entityType, country, isExperimentEnabled) => {
|
|
30409
30482
|
const { allForms, childErrorsWithRemActions } = (parentVerificationError.subErrors ?? []).reduce(
|
|
30410
30483
|
(acc, { code: errorCode, remediatingActions }) => {
|
|
30411
30484
|
if (!(remediatingActions == null ? void 0 : remediatingActions.length)) {
|
|
@@ -30413,7 +30486,9 @@ const getInvalidInputError = (parentVerificationError, entityType) => {
|
|
|
30413
30486
|
}
|
|
30414
30487
|
const { forms, remediationsWithFormsAndFields } = getRemediationsWithFormsAndFields(
|
|
30415
30488
|
remediatingActions,
|
|
30416
|
-
entityType
|
|
30489
|
+
entityType,
|
|
30490
|
+
country,
|
|
30491
|
+
isExperimentEnabled
|
|
30417
30492
|
);
|
|
30418
30493
|
acc.childErrorsWithRemActions[errorCode] = remediationsWithFormsAndFields;
|
|
30419
30494
|
forms.forEach((formId) => acc.allForms.add(formId));
|
|
@@ -30473,13 +30548,13 @@ function getPriorityStatus(entityProblems, newStatusWithReason) {
|
|
|
30473
30548
|
function getMissingDataError(verificationError, entityProblems) {
|
|
30474
30549
|
return entityProblems.missingData ? [...entityProblems.missingData, verificationError] : [verificationError];
|
|
30475
30550
|
}
|
|
30476
|
-
function getEntityProblems(verificationErrors, entityType) {
|
|
30551
|
+
function getEntityProblems(verificationErrors, entityType, country, isExperimentEnabled) {
|
|
30477
30552
|
return verificationErrors.reduce((entityProblems, verificationError) => {
|
|
30478
30553
|
const currEntityProblems = cloneObject(entityProblems);
|
|
30479
30554
|
switch (verificationError.type) {
|
|
30480
30555
|
case VerificationErrorType.INVALID_INPUT: {
|
|
30481
30556
|
if (!isUnRelatedErrorCode(verificationError) && verificationError.subErrors) {
|
|
30482
|
-
const { verificationErrors: newVerificationErrors, remediationActions } = getInvalidInputError(verificationError, entityType);
|
|
30557
|
+
const { verificationErrors: newVerificationErrors, remediationActions } = getInvalidInputError(verificationError, entityType, country, isExperimentEnabled);
|
|
30483
30558
|
currEntityProblems.verificationErrors = mergeFormLevelErrors(
|
|
30484
30559
|
currEntityProblems.verificationErrors,
|
|
30485
30560
|
newVerificationErrors
|
|
@@ -30572,7 +30647,7 @@ const overrideVerificationErrors = (verificationErrors, country) => verification
|
|
|
30572
30647
|
}
|
|
30573
30648
|
return verificationError;
|
|
30574
30649
|
});
|
|
30575
|
-
function getCapabilityProblems(entity, country) {
|
|
30650
|
+
function getCapabilityProblems(entity, country, isExperimentEnabled) {
|
|
30576
30651
|
const problems = (entity == null ? void 0 : entity.problems) ?? [];
|
|
30577
30652
|
const aggregatedErrorsByEntity = aggregateProblemsByEntity(problems, entity);
|
|
30578
30653
|
return entriesOf(aggregatedErrorsByEntity).reduce(
|
|
@@ -30582,7 +30657,9 @@ function getCapabilityProblems(entity, country) {
|
|
|
30582
30657
|
...capabilityProblems[baseEntityType],
|
|
30583
30658
|
[entityId]: getEntityProblems(
|
|
30584
30659
|
overrideVerificationErrors(verificationErrors, country),
|
|
30585
|
-
exactEntityType
|
|
30660
|
+
exactEntityType,
|
|
30661
|
+
country,
|
|
30662
|
+
isExperimentEnabled
|
|
30586
30663
|
)
|
|
30587
30664
|
}
|
|
30588
30665
|
}),
|
|
@@ -31584,7 +31661,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
|
|
|
31584
31661
|
};
|
|
31585
31662
|
};
|
|
31586
31663
|
const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
|
|
31587
|
-
const sdkVersion = "3.76.
|
|
31664
|
+
const sdkVersion = "3.76.2";
|
|
31588
31665
|
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
31589
31666
|
const { mutateAsync } = usePushAnalyticEvent(sessionId ?? "");
|
|
31590
31667
|
useEffect(() => {
|
|
@@ -31624,7 +31701,7 @@ const AnalyticsProvider = ({
|
|
|
31624
31701
|
const userEvents2 = useMemo(() => createUserEvents(), []);
|
|
31625
31702
|
const onboardingVersion = isLoading ? void 0 : isError ? 1 : versionData == null ? void 0 : versionData.version;
|
|
31626
31703
|
const sessionData = {
|
|
31627
|
-
sdkVersion: "3.76.
|
|
31704
|
+
sdkVersion: "3.76.2",
|
|
31628
31705
|
componentName,
|
|
31629
31706
|
userAgent: navigator.userAgent,
|
|
31630
31707
|
legalEntityId: rootLegalEntityId,
|
|
@@ -32028,7 +32105,7 @@ function StateProvider({
|
|
|
32028
32105
|
);
|
|
32029
32106
|
return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children });
|
|
32030
32107
|
}
|
|
32031
|
-
const DebugModal = lazy(async () => (await import("./DebugModal-
|
|
32108
|
+
const DebugModal = lazy(async () => (await import("./DebugModal-5HR2hAF0.js").then((n) => n.D)).DebugModal);
|
|
32032
32109
|
const DebugListener = () => {
|
|
32033
32110
|
const [debugUiOpen, setDebugUiOpen] = useState(false);
|
|
32034
32111
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -32151,7 +32228,7 @@ export {
|
|
|
32151
32228
|
createFormUtils as ay,
|
|
32152
32229
|
Field as az,
|
|
32153
32230
|
useI18nContext as b,
|
|
32154
|
-
|
|
32231
|
+
COUNTRIES_WITH_STATES_DATASET as b$,
|
|
32155
32232
|
datasetUtilities as b0,
|
|
32156
32233
|
getCapabilityProblems as b1,
|
|
32157
32234
|
Modal as b2,
|
|
@@ -32162,33 +32239,33 @@ export {
|
|
|
32162
32239
|
Spacer as b7,
|
|
32163
32240
|
Confirm as b8,
|
|
32164
32241
|
mapTransferInstrumentToPayoutAccount as b9,
|
|
32165
|
-
|
|
32166
|
-
|
|
32167
|
-
|
|
32168
|
-
|
|
32169
|
-
|
|
32170
|
-
|
|
32171
|
-
|
|
32172
|
-
|
|
32173
|
-
|
|
32174
|
-
|
|
32175
|
-
|
|
32176
|
-
|
|
32177
|
-
|
|
32178
|
-
|
|
32179
|
-
|
|
32180
|
-
|
|
32181
|
-
|
|
32182
|
-
|
|
32183
|
-
|
|
32184
|
-
|
|
32185
|
-
|
|
32186
|
-
|
|
32187
|
-
|
|
32188
|
-
|
|
32189
|
-
|
|
32190
|
-
|
|
32191
|
-
|
|
32242
|
+
getOwnDecisionMakers as bA,
|
|
32243
|
+
getAvailableDecisionMakerRoleTypes as bB,
|
|
32244
|
+
getAllowedDecisionMakerRoles as bC,
|
|
32245
|
+
DecisionMakerType as bD,
|
|
32246
|
+
defaultFieldMetadata$1 as bE,
|
|
32247
|
+
fieldConfig as bF,
|
|
32248
|
+
getAsyncPhoneValidationRules as bG,
|
|
32249
|
+
ContactDetails as bH,
|
|
32250
|
+
Checkbox as bI,
|
|
32251
|
+
MaybeModal as bJ,
|
|
32252
|
+
Select as bK,
|
|
32253
|
+
useFormContext as bL,
|
|
32254
|
+
getFormProps as bM,
|
|
32255
|
+
isEmpty as bN,
|
|
32256
|
+
getRequiredForms as bO,
|
|
32257
|
+
addValidityToForms as bP,
|
|
32258
|
+
useFormComposer as bQ,
|
|
32259
|
+
reverseMapping as bR,
|
|
32260
|
+
formatObject as bS,
|
|
32261
|
+
isEeaCountry as bT,
|
|
32262
|
+
Link as bU,
|
|
32263
|
+
InputNumber as bV,
|
|
32264
|
+
InputDate as bW,
|
|
32265
|
+
Currency as bX,
|
|
32266
|
+
CURRENCY_FIELD as bY,
|
|
32267
|
+
InputCurrency as bZ,
|
|
32268
|
+
getAddressSchemaForCountry as b_,
|
|
32192
32269
|
cloneObject as ba,
|
|
32193
32270
|
currencyByCountry as bb,
|
|
32194
32271
|
entriesOf as bc,
|
|
@@ -32198,186 +32275,191 @@ export {
|
|
|
32198
32275
|
httpDelete as bg,
|
|
32199
32276
|
httpPost as bh,
|
|
32200
32277
|
getProblemsForEntity as bi,
|
|
32201
|
-
|
|
32202
|
-
|
|
32203
|
-
|
|
32204
|
-
|
|
32205
|
-
|
|
32206
|
-
|
|
32207
|
-
|
|
32208
|
-
|
|
32209
|
-
|
|
32210
|
-
|
|
32211
|
-
|
|
32212
|
-
|
|
32213
|
-
|
|
32214
|
-
|
|
32215
|
-
|
|
32216
|
-
|
|
32217
|
-
|
|
32278
|
+
isOnfidoAutofillFlowEnabled as bj,
|
|
32279
|
+
individualComponentsKeyMapping as bk,
|
|
32280
|
+
businessDetailsComponentsKeyMapping as bl,
|
|
32281
|
+
Svg as bm,
|
|
32282
|
+
useQueryClient as bn,
|
|
32283
|
+
PayoutDetailsDropin as bo,
|
|
32284
|
+
refreshSession as bp,
|
|
32285
|
+
InputText as bq,
|
|
32286
|
+
splitTaskIdentifier as br,
|
|
32287
|
+
listToRecord as bs,
|
|
32288
|
+
valuesOf as bt,
|
|
32289
|
+
ExperimentNames as bu,
|
|
32290
|
+
KEYBOARD_KEYS as bv,
|
|
32291
|
+
getTranslationKeysByPrefix as bw,
|
|
32292
|
+
StepProgressIndicator as bx,
|
|
32293
|
+
getCapabilities as by,
|
|
32294
|
+
EntityTypeRadioGroupCard as bz,
|
|
32218
32295
|
useDataset as c,
|
|
32219
|
-
|
|
32220
|
-
|
|
32221
|
-
|
|
32222
|
-
|
|
32223
|
-
|
|
32224
|
-
|
|
32225
|
-
|
|
32226
|
-
|
|
32227
|
-
|
|
32228
|
-
|
|
32229
|
-
|
|
32230
|
-
|
|
32231
|
-
|
|
32232
|
-
|
|
32233
|
-
|
|
32234
|
-
|
|
32235
|
-
|
|
32236
|
-
|
|
32237
|
-
|
|
32238
|
-
|
|
32239
|
-
|
|
32240
|
-
|
|
32241
|
-
|
|
32242
|
-
|
|
32243
|
-
|
|
32244
|
-
|
|
32245
|
-
|
|
32246
|
-
|
|
32247
|
-
|
|
32248
|
-
|
|
32249
|
-
|
|
32250
|
-
|
|
32251
|
-
|
|
32252
|
-
|
|
32253
|
-
|
|
32254
|
-
|
|
32255
|
-
|
|
32256
|
-
|
|
32257
|
-
|
|
32258
|
-
|
|
32259
|
-
|
|
32260
|
-
|
|
32261
|
-
|
|
32262
|
-
|
|
32263
|
-
|
|
32264
|
-
|
|
32265
|
-
|
|
32266
|
-
|
|
32267
|
-
|
|
32268
|
-
|
|
32269
|
-
|
|
32270
|
-
|
|
32271
|
-
|
|
32272
|
-
|
|
32273
|
-
|
|
32274
|
-
|
|
32275
|
-
|
|
32276
|
-
|
|
32277
|
-
|
|
32278
|
-
|
|
32279
|
-
|
|
32280
|
-
|
|
32281
|
-
|
|
32282
|
-
|
|
32296
|
+
isLowRiskCountry as c$,
|
|
32297
|
+
Address as c0,
|
|
32298
|
+
getAddressSchemaLabelsByCountry as c1,
|
|
32299
|
+
getAssociatedLeAnalyticsPayload as c2,
|
|
32300
|
+
trackNavigation as c3,
|
|
32301
|
+
isValidationError as c4,
|
|
32302
|
+
processValidationErrors as c5,
|
|
32303
|
+
isMaintenanceModeError as c6,
|
|
32304
|
+
matchesRegex as c7,
|
|
32305
|
+
trimValWithOneSpace as c8,
|
|
32306
|
+
NO_ALPHABET_REGEX as c9,
|
|
32307
|
+
useProviderStatus as cA,
|
|
32308
|
+
addressValidators as cB,
|
|
32309
|
+
getAsyncIdNumberValidationRule as cC,
|
|
32310
|
+
addressFormatters as cD,
|
|
32311
|
+
useScenarios as cE,
|
|
32312
|
+
setHasMotionCaptureScenario as cF,
|
|
32313
|
+
useScenarioConfiguration as cG,
|
|
32314
|
+
getPropsFromConfigurations as cH,
|
|
32315
|
+
individualForms as cI,
|
|
32316
|
+
showIndividualMotionCapture as cJ,
|
|
32317
|
+
Individual as cK,
|
|
32318
|
+
composePerScenarioFormConfigurations as cL,
|
|
32319
|
+
omitObscuredFieldsIfUnchanged as cM,
|
|
32320
|
+
filterOutUnwantedAssociationsIfRootLE as cN,
|
|
32321
|
+
mapAddressLabels as cO,
|
|
32322
|
+
individualDocumentForms as cP,
|
|
32323
|
+
individualDocumentMapping as cQ,
|
|
32324
|
+
individualObscuredFields as cR,
|
|
32325
|
+
mergeAttachments as cS,
|
|
32326
|
+
getFileExtention as cT,
|
|
32327
|
+
hasNomineesChanged as cU,
|
|
32328
|
+
attachNomineeToRole as cV,
|
|
32329
|
+
idVerificationProviderId as cW,
|
|
32330
|
+
doArraysMatch as cX,
|
|
32331
|
+
createFormRules as cY,
|
|
32332
|
+
allowedCountriesForNominee as cZ,
|
|
32333
|
+
Scenarios as c_,
|
|
32334
|
+
EMOJI_REGEX as ca,
|
|
32335
|
+
hasRepeatedCharacters as cb,
|
|
32336
|
+
isInvalidName as cc,
|
|
32337
|
+
INDIVIDUAL_VALID_CHAR_REGEX as cd,
|
|
32338
|
+
getFormattingRegEx as ce,
|
|
32339
|
+
SPECIAL_CHARS as cf,
|
|
32340
|
+
standardKatakanaValidator as cg,
|
|
32341
|
+
standardKanjiValidator as ch,
|
|
32342
|
+
getSSNType as ci,
|
|
32343
|
+
defaultFieldMetadata as cj,
|
|
32344
|
+
defaultFieldConfig as ck,
|
|
32345
|
+
defaultFieldMetadata$5 as cl,
|
|
32346
|
+
defaultFieldConfig$4 as cm,
|
|
32347
|
+
getAgeToday as cn,
|
|
32348
|
+
euCountries as co,
|
|
32349
|
+
getIdDocument as cp,
|
|
32350
|
+
getDocument as cq,
|
|
32351
|
+
mapExistingFile as cr,
|
|
32352
|
+
getPageName as cs,
|
|
32353
|
+
getLocalizedIdDocumentTypeOptions as ct,
|
|
32354
|
+
getPage as cu,
|
|
32355
|
+
createDocumentRequest as cv,
|
|
32356
|
+
individualApiKeyMapping as cw,
|
|
32357
|
+
getNomineeFromAssociation as cx,
|
|
32358
|
+
drop as cy,
|
|
32359
|
+
documentApiUtils as cz,
|
|
32283
32360
|
datasetIdentifier as d,
|
|
32284
|
-
|
|
32285
|
-
|
|
32286
|
-
|
|
32287
|
-
|
|
32288
|
-
|
|
32289
|
-
|
|
32290
|
-
|
|
32291
|
-
|
|
32292
|
-
|
|
32293
|
-
|
|
32294
|
-
|
|
32295
|
-
|
|
32296
|
-
|
|
32297
|
-
|
|
32298
|
-
|
|
32299
|
-
|
|
32300
|
-
|
|
32301
|
-
|
|
32302
|
-
|
|
32303
|
-
|
|
32304
|
-
|
|
32305
|
-
|
|
32306
|
-
|
|
32307
|
-
|
|
32308
|
-
|
|
32309
|
-
|
|
32310
|
-
|
|
32311
|
-
|
|
32312
|
-
|
|
32313
|
-
|
|
32314
|
-
|
|
32315
|
-
|
|
32316
|
-
|
|
32317
|
-
|
|
32318
|
-
|
|
32319
|
-
|
|
32320
|
-
|
|
32321
|
-
|
|
32322
|
-
|
|
32323
|
-
|
|
32324
|
-
|
|
32325
|
-
|
|
32326
|
-
|
|
32327
|
-
|
|
32328
|
-
|
|
32329
|
-
|
|
32330
|
-
|
|
32331
|
-
|
|
32332
|
-
|
|
32333
|
-
|
|
32334
|
-
|
|
32335
|
-
|
|
32336
|
-
|
|
32337
|
-
|
|
32338
|
-
|
|
32339
|
-
|
|
32340
|
-
|
|
32341
|
-
|
|
32342
|
-
|
|
32343
|
-
|
|
32344
|
-
|
|
32345
|
-
|
|
32346
|
-
|
|
32361
|
+
businessDetailsApiKeyMapping as d$,
|
|
32362
|
+
isTruthyValidator as d0,
|
|
32363
|
+
licenseCardNumberDefaultMetadata as d1,
|
|
32364
|
+
licenseCardNumberDefaultConfig as d2,
|
|
32365
|
+
idNumberFields as d3,
|
|
32366
|
+
IdentityNumber as d4,
|
|
32367
|
+
additionallIdNumberOptions as d5,
|
|
32368
|
+
MaskedInput as d6,
|
|
32369
|
+
formatDateObj as d7,
|
|
32370
|
+
DriversLicense as d8,
|
|
32371
|
+
addressFields as d9,
|
|
32372
|
+
MemoizedDocumentUpload as dA,
|
|
32373
|
+
MemoizedProofOfResidencyUpload as dB,
|
|
32374
|
+
individualOnfidoApiKeyMapping as dC,
|
|
32375
|
+
individualOnfidoBaseMapping as dD,
|
|
32376
|
+
individualOnfidoDocumentMapping as dE,
|
|
32377
|
+
individualOnfidoObscuredFields as dF,
|
|
32378
|
+
FormContext as dG,
|
|
32379
|
+
FormRouterContextProvider as dH,
|
|
32380
|
+
ValidationResult as dI,
|
|
32381
|
+
isNotEmptyValidator as dJ,
|
|
32382
|
+
emailPattern as dK,
|
|
32383
|
+
getNestedPropertyKeys as dL,
|
|
32384
|
+
useId as dM,
|
|
32385
|
+
ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES as dN,
|
|
32386
|
+
KNOWN_BROKEN_PRIMARY_SOURCE_CONNECTIONS as dO,
|
|
32387
|
+
useGlobalData as dP,
|
|
32388
|
+
getForms as dQ,
|
|
32389
|
+
BasicInformation as dR,
|
|
32390
|
+
CompanyStructure as dS,
|
|
32391
|
+
AdditionalInformation as dT,
|
|
32392
|
+
MemoizedConstitutionalDocument as dU,
|
|
32393
|
+
FinancialInformation as dV,
|
|
32394
|
+
solePropBusinessDetailsKeyMapping as dW,
|
|
32395
|
+
operationalAddressIsSameIds as dX,
|
|
32396
|
+
COUNTRIES_USING_COMPANY_SEARCH as dY,
|
|
32397
|
+
FIELDS_NEEDED_FOR_COMPANY_SEARCH as dZ,
|
|
32398
|
+
solePropBusinessDetailsApiKeyMapping as d_,
|
|
32399
|
+
getDefaultTaxIdNumberType as da,
|
|
32400
|
+
getAgeRangeForLegalRepresentative as db,
|
|
32401
|
+
IndividualIdNumberTypeSelector as dc,
|
|
32402
|
+
TaxInformationField as dd,
|
|
32403
|
+
PatriotActDisclosure as de,
|
|
32404
|
+
isLegalRepresentativeNeeded as df,
|
|
32405
|
+
decisionMakerRoleFields as dg,
|
|
32406
|
+
nomineeFields as dh,
|
|
32407
|
+
contactDetailFields as di,
|
|
32408
|
+
DecisionMakerRole as dj,
|
|
32409
|
+
NomineeDecisionMakerRole as dk,
|
|
32410
|
+
LocalizedNameFields as dl,
|
|
32411
|
+
keysOf as dm,
|
|
32412
|
+
RadioWithLabel as dn,
|
|
32413
|
+
pick as dp,
|
|
32414
|
+
IdVerification as dq,
|
|
32415
|
+
isPersonUnderAge as dr,
|
|
32416
|
+
IdDocumentManualUpload as ds,
|
|
32417
|
+
idDocumentUploadFields as dt,
|
|
32418
|
+
useFormRouterContext as du,
|
|
32419
|
+
useCapabilities as dv,
|
|
32420
|
+
hasMotionCaptureScenario as dw,
|
|
32421
|
+
setShowIndividualMotionCapture as dx,
|
|
32422
|
+
shouldShowMotionCapture as dy,
|
|
32423
|
+
MemoizedProofOfRelationship as dz,
|
|
32347
32424
|
uuidv4 as e,
|
|
32348
|
-
|
|
32349
|
-
|
|
32350
|
-
|
|
32351
|
-
|
|
32352
|
-
|
|
32353
|
-
|
|
32354
|
-
|
|
32355
|
-
|
|
32356
|
-
|
|
32357
|
-
|
|
32358
|
-
|
|
32359
|
-
|
|
32360
|
-
|
|
32361
|
-
|
|
32362
|
-
|
|
32363
|
-
|
|
32364
|
-
|
|
32365
|
-
|
|
32366
|
-
|
|
32367
|
-
|
|
32368
|
-
|
|
32369
|
-
|
|
32370
|
-
|
|
32371
|
-
|
|
32372
|
-
|
|
32373
|
-
|
|
32374
|
-
|
|
32375
|
-
|
|
32376
|
-
|
|
32377
|
-
|
|
32378
|
-
|
|
32379
|
-
|
|
32380
|
-
|
|
32425
|
+
COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as e0,
|
|
32426
|
+
augmentWithCountryConfigs as e1,
|
|
32427
|
+
companyTypeMetadata as e2,
|
|
32428
|
+
getProp as e3,
|
|
32429
|
+
documentFormsIds as e4,
|
|
32430
|
+
defaultFieldMetadata$6 as e5,
|
|
32431
|
+
inferCompanyRegistrationNumberType as e6,
|
|
32432
|
+
getCompanyRegistrationNumberOptions as e7,
|
|
32433
|
+
defaultFieldConfig$5 as e8,
|
|
32434
|
+
countryToTaxInfoTypeMap as e9,
|
|
32435
|
+
useLegalEntities as eA,
|
|
32436
|
+
PayoutDetailsPage$1 as eB,
|
|
32437
|
+
getKeyForField as ea,
|
|
32438
|
+
verifiedBusiness as eb,
|
|
32439
|
+
useStateContext as ec,
|
|
32440
|
+
setIsBankAccountRequestedForOrganization as ed,
|
|
32441
|
+
rules as ee,
|
|
32442
|
+
useCompanySelection as ef,
|
|
32443
|
+
useVerifyTin as eg,
|
|
32444
|
+
setVerifiedBusiness as eh,
|
|
32445
|
+
FormWrapper as ei,
|
|
32446
|
+
solePropBusinessDetailsDocumentMapping as ej,
|
|
32447
|
+
businessDetailsDocumentMapping as ek,
|
|
32448
|
+
UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL as el,
|
|
32449
|
+
UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED as em,
|
|
32450
|
+
UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL as en,
|
|
32451
|
+
UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED as eo,
|
|
32452
|
+
UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL as ep,
|
|
32453
|
+
trustComponentsKeyMapping as eq,
|
|
32454
|
+
trustApiKeyMapping as er,
|
|
32455
|
+
trustForms as es,
|
|
32456
|
+
Trust as et,
|
|
32457
|
+
trustDocumentMapping as eu,
|
|
32458
|
+
trustConstitutionalDocumentFormId as ev,
|
|
32459
|
+
Currencies as ew,
|
|
32460
|
+
InputGroup as ex,
|
|
32461
|
+
useGlobalDataSlice as ey,
|
|
32462
|
+
Dropzone as ez,
|
|
32381
32463
|
ApiProvider as f,
|
|
32382
32464
|
getLegalEntityCountry as g,
|
|
32383
32465
|
StoreProvider as h,
|