@adyen/kyc-components 2.48.1 → 2.49.0
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/es/adyen-kyc-components.es.js +2605 -347
- package/dist/es/bg-BG-CoqHl2bN.js +4067 -0
- package/dist/es/cs-CZ-ZdZfgN7e.js +4067 -0
- package/dist/es/da-DK-C7YJ7z9G.js +4067 -0
- package/dist/es/de-DE-Cx8Uim1K.js +985 -0
- package/dist/es/de-DE-DMNSJNzU.js +4067 -0
- package/dist/es/el-GR-B7_JR3z5.js +985 -0
- package/dist/es/el-GR-DHIn4T0S.js +4067 -0
- package/dist/es/en-US-7uBFgKyC.js +209 -0
- package/dist/es/en-US-CLmaFLwu.js +73 -0
- package/dist/es/en-US-CQv3D6--.js +37 -0
- package/dist/es/en-US-CkdCbOCX.js +985 -0
- package/dist/es/en-US-eaysbh-g.js +113 -0
- package/dist/es/en-US-gM26UC0X.js +57 -0
- package/dist/es/es-ES-NBv3HHhn.js +985 -0
- package/dist/es/es-ES-vjMWXX0n.js +4067 -0
- package/dist/es/et-EE-l01e62JA.js +4067 -0
- package/dist/es/fi-FI-PTCWFrgt.js +4067 -0
- package/dist/es/fr-FR-B7wXGYyE.js +4067 -0
- package/dist/es/fr-FR-DdSVMVsp.js +985 -0
- package/dist/es/hr-HR-0Te7j2ww.js +4067 -0
- package/dist/es/hu-HU-C-m6xnU2.js +4067 -0
- package/dist/es/it-IT-Bwdk3zuj.js +985 -0
- package/dist/es/it-IT-D1_ouE9J.js +4067 -0
- package/dist/es/ja-JP-Bsvzm8zu.js +985 -0
- package/dist/es/lt-LT-DKt8_B2y.js +4067 -0
- package/dist/es/lv-LV-DMln1gKL.js +4067 -0
- package/dist/es/nl-NL-Djq-MOEC.js +4067 -0
- package/dist/es/nl-NL-DofKaNkk.js +985 -0
- package/dist/es/no-NO-D1_9_3C7.js +4067 -0
- package/dist/es/phonePrefixes-GXP6tTuV.js +728 -0
- package/dist/es/pl-PL-DO4KOscW.js +4067 -0
- package/dist/es/pt-BR-CNtbeGFJ.js +113 -0
- package/dist/es/pt-PT-CNr5u8b-.js +4067 -0
- package/dist/es/pt-PT-DFEvMD1M.js +985 -0
- package/dist/es/ro-RO-DNWzwnJ-.js +4067 -0
- package/dist/es/ru-RU-PiM0ZI5h.js +985 -0
- package/dist/es/sk-SK-BOIEQnje.js +4067 -0
- package/dist/es/sl-SI-fpzqRd_U.js +4067 -0
- package/dist/es/sv-SE-C0GoLwTg.js +985 -0
- package/dist/es/sv-SE-DyLW6PPo.js +4067 -0
- package/dist/es/zh-CN-DJs6Hct-.js +985 -0
- package/dist/es/zh-TW-BWhLbns8.js +985 -0
- package/dist/style.css +668 -379
- package/dist/types/components/BasicInformation/component/BasicInformationComponent.d.ts +1 -1
- package/dist/types/components/BasicInformation/types.d.ts +4 -0
- package/dist/types/components/Dropins/HighExposureDropin/components/AdditionalFieldsForHighExposureParentCompany.d.ts +2 -1
- package/dist/types/components/Dropins/HighExposureDropin/components/AmountSelector/AmountSelector.d.ts +2 -0
- package/dist/types/components/Dropins/HighExposureDropin/components/AmountSelector/types.d.ts +16 -0
- package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureDropinComponent.d.ts +1 -0
- package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureFinancialInformation.d.ts +3 -0
- package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureLegalInformation.d.ts +3 -0
- package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureRegisteredAddress.d.ts +4 -0
- package/dist/types/components/Dropins/HighExposureDropin/defaultCurrencies.d.ts +3 -0
- package/dist/types/components/Dropins/HighExposureDropin/types.d.ts +82 -6
- package/dist/types/components/Individual/types.d.ts +2 -1
- package/dist/types/components/Individual/validators.d.ts +4 -1
- package/dist/types/components/PersonalDetails/component/PersonalDetailsComponent.d.ts +6 -0
- package/dist/types/components/PersonalDetails/types.d.ts +4 -0
- package/dist/types/components/ProofOfRelationship/index.d.ts +4 -0
- package/dist/types/components/ProofOfRelationship/types.d.ts +19 -0
- package/dist/types/components/StepProgressIndicator/StepProgressIndicator.d.ts +2 -1
- package/dist/types/components/TaskList/types.d.ts +2 -1
- package/dist/types/components/internal/Button/Button.d.ts +1 -1
- package/dist/types/components/internal/Button/types.d.ts +1 -0
- package/dist/types/components/internal/PhoneInput/PhoneInput.d.ts +2 -0
- package/dist/types/components/internal/PhoneInput/types.d.ts +0 -2
- package/dist/types/components/internal/PhoneInput/validate.d.ts +2 -2
- package/dist/types/core/Context/ConfigurationApiContext/ConfigurationApiContext.d.ts +2 -1
- package/dist/types/core/Services/agnostic/get-dataset.d.ts +3 -0
- package/dist/types/core/Services/componentApi/index.d.ts +0 -1
- package/dist/types/core/Services/kycExternalApi/index.d.ts +0 -1
- package/dist/types/core/hooks/useAssociatedLegalRepresentative.d.ts +6 -0
- package/dist/types/core/hooks/useDataset.d.ts +3 -2
- package/dist/types/core/models/api/data-set.d.ts +3 -3
- package/dist/types/core/models/api/document.d.ts +2 -1
- package/dist/types/core/models/api/legal-entity-association.d.ts +3 -1
- package/dist/types/datasets/countries/loadCountries.d.ts +3 -0
- package/dist/types/datasets/states/loadStatesDataset.d.ts +3 -0
- package/dist/types/language/loadLocale.d.ts +2 -0
- package/dist/types/utils/birth-date-utils.d.ts +14 -1
- package/dist/types/utils/datasetUtil.d.ts +3 -5
- package/dist/types/utils/dynamicImports.d.ts +4 -2
- package/dist/types/utils/entity-association-util.d.ts +1 -0
- package/dist/types/utils/mapping/componentApiMapping.d.ts +1 -0
- package/dist/types/utils/mapping/mapping.d.ts +1 -1
- package/dist/types/utils/roleMetadata.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/components/internal/ContextHelper/ContextHelper.d.ts +0 -6
- package/dist/types/components/internal/Disclaimer/Disclaimer.d.ts +0 -8
- package/dist/types/core/Services/componentApi/get-dataset.d.ts +0 -3
- package/dist/types/core/Services/kycExternalApi/get-dataset.d.ts +0 -3
|
@@ -1398,6 +1398,33 @@ const doesThisCompanyHaveLEI = "Does this company have a Legal Entity Identifier
|
|
|
1398
1398
|
const iDontKnow = "I don't know";
|
|
1399
1399
|
const becauseYoureUnderXWeNeedToCollectInformationAboutALegalRepresentative = "Because you're under %{age}, we need to collect information about a legal representative in another step";
|
|
1400
1400
|
const aLegalRepresentativeIsRequired = "A legal representative is required";
|
|
1401
|
+
const addressRegisteredWithSecretaryOfState = "Address registered with the Secretary of State for this company.";
|
|
1402
|
+
const isThisAddressTheMainHeadquarters = "Is this address the main headquarters?";
|
|
1403
|
+
const legalRepresentative = "Legal representative";
|
|
1404
|
+
const legalRepresentativeDetails = "Legal representative details";
|
|
1405
|
+
const failedFetchingLegalRepresentative = "Failed to get legal representative details";
|
|
1406
|
+
const legalRepresentativeFor = "legal representative for: %{firstName} %{lastName}";
|
|
1407
|
+
const relationshipTo = "Relationship to %{firstName} %{lastName}";
|
|
1408
|
+
const parent = "parent";
|
|
1409
|
+
const guardian = "guardian";
|
|
1410
|
+
const proofOfRelationship = "Proof of relationship";
|
|
1411
|
+
const birthCertificate = "Birth certificate";
|
|
1412
|
+
const guardianshipCertificate = "Guardianship certificate";
|
|
1413
|
+
const adoptionCertificate = "Adoption certificate";
|
|
1414
|
+
const financialInformation = "Financial information";
|
|
1415
|
+
const totalAssets = "Total assets";
|
|
1416
|
+
const totalAssetsHelper = "Total liabilities plus total equity";
|
|
1417
|
+
const annualTurnover = "Annual turnover";
|
|
1418
|
+
const annualTurnoverHelper = "The annual sales revenue minus all discounts and sales taxes. Also known as net sales.";
|
|
1419
|
+
const financialReportingDate = "Financial reporting date";
|
|
1420
|
+
const financialReportingDateHelper = "The date on which total assets and annual turnover were calculated is often the balance sheet date";
|
|
1421
|
+
const legalInformation = "Legal information";
|
|
1422
|
+
const legalInformationInsolvency = "Is this company involved in any legal proceedings related to insolvency?";
|
|
1423
|
+
const yesJudicialAdministration = "Yes, the company is under judicial administration, receivership or similar measures";
|
|
1424
|
+
const yesBankruptcyInsolvency = "Yes, the company is filling for bankruptcy or insolvency";
|
|
1425
|
+
const yesOtherLegalMeasures = "Yes, the company is facing other legal measures";
|
|
1426
|
+
const totalAssetsCurrency = "Total assets currency";
|
|
1427
|
+
const totalAssetsValue = "Total assets value";
|
|
1401
1428
|
const defaultTrans = {
|
|
1402
1429
|
smartling,
|
|
1403
1430
|
close,
|
|
@@ -2767,8 +2794,1425 @@ const defaultTrans = {
|
|
|
2767
2794
|
doesThisCompanyHaveLEI,
|
|
2768
2795
|
iDontKnow,
|
|
2769
2796
|
becauseYoureUnderXWeNeedToCollectInformationAboutALegalRepresentative,
|
|
2770
|
-
aLegalRepresentativeIsRequired
|
|
2771
|
-
|
|
2797
|
+
aLegalRepresentativeIsRequired,
|
|
2798
|
+
addressRegisteredWithSecretaryOfState,
|
|
2799
|
+
isThisAddressTheMainHeadquarters,
|
|
2800
|
+
legalRepresentative,
|
|
2801
|
+
legalRepresentativeDetails,
|
|
2802
|
+
failedFetchingLegalRepresentative,
|
|
2803
|
+
legalRepresentativeFor,
|
|
2804
|
+
relationshipTo,
|
|
2805
|
+
parent,
|
|
2806
|
+
guardian,
|
|
2807
|
+
proofOfRelationship,
|
|
2808
|
+
birthCertificate,
|
|
2809
|
+
guardianshipCertificate,
|
|
2810
|
+
adoptionCertificate,
|
|
2811
|
+
financialInformation,
|
|
2812
|
+
totalAssets,
|
|
2813
|
+
totalAssetsHelper,
|
|
2814
|
+
annualTurnover,
|
|
2815
|
+
annualTurnoverHelper,
|
|
2816
|
+
financialReportingDate,
|
|
2817
|
+
financialReportingDateHelper,
|
|
2818
|
+
legalInformation,
|
|
2819
|
+
legalInformationInsolvency,
|
|
2820
|
+
yesJudicialAdministration,
|
|
2821
|
+
yesBankruptcyInsolvency,
|
|
2822
|
+
yesOtherLegalMeasures,
|
|
2823
|
+
totalAssetsCurrency,
|
|
2824
|
+
totalAssetsValue
|
|
2825
|
+
};
|
|
2826
|
+
const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2827
|
+
__proto__: null,
|
|
2828
|
+
CCIAA,
|
|
2829
|
+
CNPJ,
|
|
2830
|
+
DIC,
|
|
2831
|
+
ICO,
|
|
2832
|
+
MBO,
|
|
2833
|
+
MBS,
|
|
2834
|
+
Mehrwertsteuernummer,
|
|
2835
|
+
NIF,
|
|
2836
|
+
NIFdeIVA,
|
|
2837
|
+
NIP,
|
|
2838
|
+
NIPC,
|
|
2839
|
+
NZBN,
|
|
2840
|
+
NumeroDeTVA,
|
|
2841
|
+
PDVIdBrojOIB,
|
|
2842
|
+
PVMmoketojoKodas,
|
|
2843
|
+
RFC,
|
|
2844
|
+
RfcDocument,
|
|
2845
|
+
SINFormatCA,
|
|
2846
|
+
SSNFormatUS,
|
|
2847
|
+
SSNFormatUS9Digits,
|
|
2848
|
+
SST,
|
|
2849
|
+
YTunnus,
|
|
2850
|
+
aLegalRepresentativeIsRequired,
|
|
2851
|
+
aPartnership,
|
|
2852
|
+
aPartnershipDescription,
|
|
2853
|
+
aTrust,
|
|
2854
|
+
aTrustDescription,
|
|
2855
|
+
aValidAbnShouldBe11Digits,
|
|
2856
|
+
aValidBrnShouldBe8Digits,
|
|
2857
|
+
aValidUenOrGstShouldBe9To10Characters,
|
|
2858
|
+
acceptedDocumentsForGovernment,
|
|
2859
|
+
acceptedDocumentsForNonProfit,
|
|
2860
|
+
acceptedDocumentsForPartnerships,
|
|
2861
|
+
acceptedDocumentsForPrivateCompanies,
|
|
2862
|
+
acceptedDocumentsForPublicCompanies,
|
|
2863
|
+
accountCantBeSetUp,
|
|
2864
|
+
accountDetailsDescription,
|
|
2865
|
+
accountHolder,
|
|
2866
|
+
accountHolderDescriptionCompany,
|
|
2867
|
+
accountHolderDescriptionIndividual,
|
|
2868
|
+
accountHolderDescriptionSoleProp,
|
|
2869
|
+
accountHolderTerms,
|
|
2870
|
+
accountName,
|
|
2871
|
+
accountNumberOrIbanVisible,
|
|
2872
|
+
accountNumberVisible,
|
|
2873
|
+
accountVerification,
|
|
2874
|
+
achRoutingNumber,
|
|
2875
|
+
acknowledgePciRequirements,
|
|
2876
|
+
add,
|
|
2877
|
+
addAndVerifyYourBankDetails,
|
|
2878
|
+
addDecisionMaker,
|
|
2879
|
+
addEntityOwner,
|
|
2880
|
+
addExtraBankAccount,
|
|
2881
|
+
addExtraPayinAccount,
|
|
2882
|
+
addExtraPayoutAccount,
|
|
2883
|
+
addManually,
|
|
2884
|
+
addOwnerToTrustMember,
|
|
2885
|
+
addPayinAccount,
|
|
2886
|
+
addPayoutAccount,
|
|
2887
|
+
addTrustMember,
|
|
2888
|
+
additionalInformationFormDescription,
|
|
2889
|
+
additionalInformationFormHeading,
|
|
2890
|
+
additionalInformationFormName,
|
|
2891
|
+
additionalInformationIsRequiredForLoan,
|
|
2892
|
+
address,
|
|
2893
|
+
addressRegisteredWithSecretaryOfState,
|
|
2894
|
+
addresses,
|
|
2895
|
+
adoptionCertificate,
|
|
2896
|
+
adyenKeepsDataAsLongAsLegallyRequired,
|
|
2897
|
+
adyenWillOnlyGetTemporaryAccess,
|
|
2898
|
+
anAssociation,
|
|
2899
|
+
anAssociationDescription,
|
|
2900
|
+
anLEIIsAUniqueCode,
|
|
2901
|
+
andResubmit,
|
|
2902
|
+
annualReport,
|
|
2903
|
+
annualTurnover,
|
|
2904
|
+
annualTurnoverHelper,
|
|
2905
|
+
apartmentSuite,
|
|
2906
|
+
apartmentSuiteOptional,
|
|
2907
|
+
areYouACompany,
|
|
2908
|
+
areYouAnIndividual,
|
|
2909
|
+
areYouSureToLeave,
|
|
2910
|
+
arithmosEngraphes,
|
|
2911
|
+
articlesOfIncorporation,
|
|
2912
|
+
arvonlisaveronumeroMervardesskattenummer,
|
|
2913
|
+
association,
|
|
2914
|
+
associationIncorporated,
|
|
2915
|
+
associationIncorporatedDescription,
|
|
2916
|
+
australianBusinessNumberAbn,
|
|
2917
|
+
australianBusinessNumberAcn,
|
|
2918
|
+
back,
|
|
2919
|
+
backPage,
|
|
2920
|
+
backToTaskList,
|
|
2921
|
+
bankAccount,
|
|
2922
|
+
bankAccountCountryRegion,
|
|
2923
|
+
bankAccountDetails,
|
|
2924
|
+
bankAccountFormat,
|
|
2925
|
+
bankAccountHasToBeInYourCompanyName,
|
|
2926
|
+
bankAccountHasToBeInYourName,
|
|
2927
|
+
bankAccountNameIndividual,
|
|
2928
|
+
bankAccountNameOrganization,
|
|
2929
|
+
bankAccountNameWithSoleProprietor,
|
|
2930
|
+
bankAccountNameWithTrust,
|
|
2931
|
+
bankAccountNameWithTrust_US,
|
|
2932
|
+
bankAccountNumber,
|
|
2933
|
+
bankAccountToHaveSameNameAsTrust,
|
|
2934
|
+
bankAccountVerification,
|
|
2935
|
+
bankCityTown,
|
|
2936
|
+
bankCode,
|
|
2937
|
+
bankCountry,
|
|
2938
|
+
bankDocument,
|
|
2939
|
+
bankDocumentDescription,
|
|
2940
|
+
bankDocumentFileDescription,
|
|
2941
|
+
bankDocumentHeader,
|
|
2942
|
+
bankDocumentHeaderOptional,
|
|
2943
|
+
bankName,
|
|
2944
|
+
bankStatementAlreadyUploaded,
|
|
2945
|
+
bankStatementDocument,
|
|
2946
|
+
basedOnTheAboveSignatory,
|
|
2947
|
+
basicInformation,
|
|
2948
|
+
basicInformationFormHeading,
|
|
2949
|
+
basicInformationFormName,
|
|
2950
|
+
becauseYoureUnderXWeNeedToCollectInformationAboutALegalRepresentative,
|
|
2951
|
+
beforeYourCapitalLoanApplicationCanBeSubmitted,
|
|
2952
|
+
belowTaxThreshold,
|
|
2953
|
+
beneficiariesDetailsIncl,
|
|
2954
|
+
beneficiary,
|
|
2955
|
+
beneficiaryGuideDescription,
|
|
2956
|
+
bic,
|
|
2957
|
+
bicSwift,
|
|
2958
|
+
birthCertificate,
|
|
2959
|
+
birthDate,
|
|
2960
|
+
birthdate,
|
|
2961
|
+
branchCode,
|
|
2962
|
+
browse,
|
|
2963
|
+
bsbNumber,
|
|
2964
|
+
btwNummer,
|
|
2965
|
+
businessAccountDetailsDescription,
|
|
2966
|
+
businessAccountDetailsDescriptionReview,
|
|
2967
|
+
businessAccountTerms,
|
|
2968
|
+
businessDetails,
|
|
2969
|
+
businessEntityDescription,
|
|
2970
|
+
businessEntityTitle,
|
|
2971
|
+
businessIncorporationNumber,
|
|
2972
|
+
businessInformation,
|
|
2973
|
+
businessName,
|
|
2974
|
+
businessNumber,
|
|
2975
|
+
businessRegistrationDocument__FR,
|
|
2976
|
+
businessSelection__failedToLoad,
|
|
2977
|
+
businessSelection__footer,
|
|
2978
|
+
businessSelection__footerButton,
|
|
2979
|
+
businessSelection__heading,
|
|
2980
|
+
businessSelection__invalidTin,
|
|
2981
|
+
businessSelection__searching,
|
|
2982
|
+
businessSelection__verifying,
|
|
2983
|
+
businessStructure,
|
|
2984
|
+
businessTrust,
|
|
2985
|
+
businessTrusteeDetails,
|
|
2986
|
+
byClickingSignIAcknowledgeAndAgree,
|
|
2987
|
+
byClickingSubmitReview,
|
|
2988
|
+
byProceedingToTheNextStepYouConfirmThatYouHaveReadUnderstandAndAcceptTheTerms,
|
|
2989
|
+
cadastroDePessoasFisicas,
|
|
2990
|
+
canNotCompleteInstantVerification,
|
|
2991
|
+
cancel,
|
|
2992
|
+
cantSetUpAcccount,
|
|
2993
|
+
capitalUserTerms,
|
|
2994
|
+
cardUserTerms,
|
|
2995
|
+
cashManagementTrust,
|
|
2996
|
+
certificateOfFormation,
|
|
2997
|
+
certificateOfIncorporation,
|
|
2998
|
+
certificateOfIncumbency,
|
|
2999
|
+
certificateOfVoterRegistration,
|
|
3000
|
+
chRegistrationNumber,
|
|
3001
|
+
chamberOfCommerceExtract,
|
|
3002
|
+
chamberOfCommerceRegistrationNumber,
|
|
3003
|
+
changeYourBusinessSetup,
|
|
3004
|
+
charitableTrust,
|
|
3005
|
+
charityNumber,
|
|
3006
|
+
charter,
|
|
3007
|
+
check,
|
|
3008
|
+
city,
|
|
3009
|
+
cityTown,
|
|
3010
|
+
clearingCode,
|
|
3011
|
+
close,
|
|
3012
|
+
codNumericPersonal,
|
|
3013
|
+
code,
|
|
3014
|
+
codiceFiscale,
|
|
3015
|
+
codulDeIdentificareFiscala,
|
|
3016
|
+
company,
|
|
3017
|
+
companyBasicsFormName,
|
|
3018
|
+
companyDetails,
|
|
3019
|
+
companyLegalName,
|
|
3020
|
+
companyLookupResultsHeader,
|
|
3021
|
+
companyLookupResultsHeaderDescription__noResults,
|
|
3022
|
+
companyLookupResultsHeaderDescription__results,
|
|
3023
|
+
companyLookupResultsHeaderDescription__searchFailure,
|
|
3024
|
+
companyLookupResultsHeader__noResults,
|
|
3025
|
+
companyLookupResultsHeader__results,
|
|
3026
|
+
companyLookupResultsHeader__searchFailure,
|
|
3027
|
+
companyLookupResultsHeader__searching,
|
|
3028
|
+
companyLookupResultsHeader__verifying,
|
|
3029
|
+
companyLookupResultsListAlert__description__warning,
|
|
3030
|
+
companyLookupResultsListAlert__title__error,
|
|
3031
|
+
companyLookupResultsListAlert__title__verified,
|
|
3032
|
+
companyLookupResultsListAlert__title__warning,
|
|
3033
|
+
companyName,
|
|
3034
|
+
companyNumber,
|
|
3035
|
+
companyNumberNZ,
|
|
3036
|
+
companyOtherDetailsFormName,
|
|
3037
|
+
companyProfile,
|
|
3038
|
+
companyRegistrationAddressFormDescription,
|
|
3039
|
+
companyRegistrationAddressFormName,
|
|
3040
|
+
companyRegistrationDocument,
|
|
3041
|
+
companyRegistrationDocumentFormDescription,
|
|
3042
|
+
companyRegistrationDocumentFormHeading,
|
|
3043
|
+
companyRegistrationDocumentFormName,
|
|
3044
|
+
companyRegistrationNumber,
|
|
3045
|
+
companyRegistrationNumber__HK,
|
|
3046
|
+
companyStructure,
|
|
3047
|
+
companyStructureFormDescription,
|
|
3048
|
+
companyStructureFormName,
|
|
3049
|
+
companyTaxDocumentFormDescription,
|
|
3050
|
+
companyTaxDocumentFormHeading,
|
|
3051
|
+
companyTaxDocumentFormName,
|
|
3052
|
+
companyTrustee,
|
|
3053
|
+
companyTrusteeDetails,
|
|
3054
|
+
companyType,
|
|
3055
|
+
complete,
|
|
3056
|
+
completeReview,
|
|
3057
|
+
confirm,
|
|
3058
|
+
confirmPayoutManually,
|
|
3059
|
+
constitutionalDocument,
|
|
3060
|
+
constitutionalDocument__header,
|
|
3061
|
+
constitutionalDocument__headerDescription,
|
|
3062
|
+
contactDetails,
|
|
3063
|
+
containsNameOfCompany,
|
|
3064
|
+
continueCompany,
|
|
3065
|
+
continueIndividual,
|
|
3066
|
+
contributionBelowThreshold,
|
|
3067
|
+
controllingPerson,
|
|
3068
|
+
controllingPersonDescription,
|
|
3069
|
+
controllingPersonGuideDescription,
|
|
3070
|
+
controllingPersonOfTrust,
|
|
3071
|
+
corporateUnitTrust,
|
|
3072
|
+
correctErrorsResubmit,
|
|
3073
|
+
couldNotCompleteAccountCheck,
|
|
3074
|
+
couldNotEstablishBankConnection,
|
|
3075
|
+
country,
|
|
3076
|
+
countryOfGoverningLaw,
|
|
3077
|
+
countryRegionOfEstablishment,
|
|
3078
|
+
countryWithoutVatOrGstSystem,
|
|
3079
|
+
country__US__business,
|
|
3080
|
+
currency,
|
|
3081
|
+
currencyCode,
|
|
3082
|
+
currencyPlaceholder,
|
|
3083
|
+
cyRegistrationNumber,
|
|
3084
|
+
dateDeedWasSigned,
|
|
3085
|
+
dateOfIncorporation,
|
|
3086
|
+
dateOnDocumentNoOlderThanXMonths,
|
|
3087
|
+
datePlaceholder,
|
|
3088
|
+
dbaName,
|
|
3089
|
+
deceased,
|
|
3090
|
+
deceasedEstate,
|
|
3091
|
+
decisionMaker,
|
|
3092
|
+
decisionMakerDescription,
|
|
3093
|
+
decisionMakers,
|
|
3094
|
+
default: defaultTrans,
|
|
3095
|
+
definedBeneficiary,
|
|
3096
|
+
definedBeneficiaryDescription,
|
|
3097
|
+
depositSlip,
|
|
3098
|
+
describeWhoIsABeneficiaryInYourTrust,
|
|
3099
|
+
description,
|
|
3100
|
+
descriptionOptional,
|
|
3101
|
+
descriptionUndefinedBeneficiary,
|
|
3102
|
+
detCentralePersonregister,
|
|
3103
|
+
differentCountryOfGoverningLaw,
|
|
3104
|
+
director,
|
|
3105
|
+
directorDescription,
|
|
3106
|
+
directorGuideDescription,
|
|
3107
|
+
discretionaryInvestmentTrust,
|
|
3108
|
+
discretionaryServicesManagementTrust,
|
|
3109
|
+
discretionaryTradingTrust,
|
|
3110
|
+
discretionaryTrust,
|
|
3111
|
+
dni,
|
|
3112
|
+
doNotHaveBusinessIncorporationNumber,
|
|
3113
|
+
doNotHaveBusinessNumber,
|
|
3114
|
+
doNotHaveChRegistrationNumber,
|
|
3115
|
+
doNotHaveEIN,
|
|
3116
|
+
doNotHaveFirmenbuchnummer,
|
|
3117
|
+
doNotHaveHandelsregisternummer,
|
|
3118
|
+
doNotHaveLtRegistrationNumber,
|
|
3119
|
+
doNotHaveLuRegistrationNumber,
|
|
3120
|
+
doNotHaveOrganisationsnummer,
|
|
3121
|
+
doNotHaveRegonKrsNumber,
|
|
3122
|
+
doNotHaveTaxIdNumber,
|
|
3123
|
+
doNotHaveYTunnus,
|
|
3124
|
+
documentAddressedToName,
|
|
3125
|
+
documentCannotBeDamaged,
|
|
3126
|
+
documentIssuedByGovernmentAuthority,
|
|
3127
|
+
documentNotExpiredOrDamaged,
|
|
3128
|
+
documentRequirements,
|
|
3129
|
+
documentShowsTaxIdOfCompany,
|
|
3130
|
+
documentType,
|
|
3131
|
+
documentVerification,
|
|
3132
|
+
documents,
|
|
3133
|
+
doesTheCompanyEarnMoreThanHalf,
|
|
3134
|
+
doesThisCompanyHaveLEI,
|
|
3135
|
+
doesYourCompanyHaveLEI,
|
|
3136
|
+
doingBusinessAs,
|
|
3137
|
+
doingBusinessAsNameFiling,
|
|
3138
|
+
doingBusinessAsNameFiling__FR,
|
|
3139
|
+
doingBusinessAsNameFiling__US,
|
|
3140
|
+
dontHaveAccessOnlineBanking,
|
|
3141
|
+
download,
|
|
3142
|
+
downloadACopy,
|
|
3143
|
+
downloadAsPdf,
|
|
3144
|
+
dragYourFilesHereOr,
|
|
3145
|
+
driverLicense,
|
|
3146
|
+
driversLicense,
|
|
3147
|
+
drivinglicenseBack,
|
|
3148
|
+
drivinglicenseFront,
|
|
3149
|
+
duplicatedFiles,
|
|
3150
|
+
edit,
|
|
3151
|
+
editDecisionMakerDetails,
|
|
3152
|
+
editEntityDetails,
|
|
3153
|
+
editEntityOwner,
|
|
3154
|
+
editOwnerOfTrustMember,
|
|
3155
|
+
editTrustMember,
|
|
3156
|
+
ein,
|
|
3157
|
+
einVerificationLetter,
|
|
3158
|
+
email,
|
|
3159
|
+
employerIdentificationNumber,
|
|
3160
|
+
enter1LetterAndThenNDigitsForExample,
|
|
3161
|
+
enter1LetterAndThenXToYDigitsForExample,
|
|
3162
|
+
enterAMaximumOfNCharactersForExample,
|
|
3163
|
+
enterAMaximumOfNCharactersWithAMixForExample,
|
|
3164
|
+
enterAMaximumOfNDigitsForExample,
|
|
3165
|
+
enterAMaximumOfNMoreDigitsForExample,
|
|
3166
|
+
enterLastNDigitsForExample,
|
|
3167
|
+
enterLastNameExactlyAsAppearInID,
|
|
3168
|
+
enterNCharactersForExample,
|
|
3169
|
+
enterNCharactersWithAMixForExample,
|
|
3170
|
+
enterNDigitsAndThen1LetterForExample,
|
|
3171
|
+
enterNDigitsForExample,
|
|
3172
|
+
enterNLettersAndThenXToYDigitsForExample,
|
|
3173
|
+
enterNameExactlyAsAppearInID,
|
|
3174
|
+
enterSettlorsFirstNameExactlyAsItAppearsInID,
|
|
3175
|
+
enterSettlorsLastNameExactlyAsItAppearsInID,
|
|
3176
|
+
enterTheDetailsYourself,
|
|
3177
|
+
enterTheRemainingNCharactersForExample,
|
|
3178
|
+
enterTheRemainingNDigitsForExample,
|
|
3179
|
+
enterTheRemainingNDigitsThenXToYLettersForExample,
|
|
3180
|
+
enterTheRemainingXToYCharactersForExample,
|
|
3181
|
+
enterTheRemainingXToYDigitsForExample,
|
|
3182
|
+
enterValidRegistrationNumber,
|
|
3183
|
+
enterXOrYCharactersForExample,
|
|
3184
|
+
enterXOrYDigitsForExample,
|
|
3185
|
+
enterXToYCharactersForExample,
|
|
3186
|
+
enterXToYCharactersWithAMixForExample,
|
|
3187
|
+
enterXToYDigitsForExample,
|
|
3188
|
+
enterXToYLettersAndThenWToZDigitsForExample,
|
|
3189
|
+
enterpriseNumber,
|
|
3190
|
+
entityEstablishingTrust,
|
|
3191
|
+
entityOwning25OrMoreOfTrust,
|
|
3192
|
+
entityType,
|
|
3193
|
+
errorMessage_1_10,
|
|
3194
|
+
errorMessage_1_1000,
|
|
3195
|
+
errorMessage_1_1001,
|
|
3196
|
+
errorMessage_1_1002,
|
|
3197
|
+
errorMessage_1_1003,
|
|
3198
|
+
errorMessage_1_11,
|
|
3199
|
+
errorMessage_1_12,
|
|
3200
|
+
errorMessage_1_30,
|
|
3201
|
+
errorMessage_1_3000,
|
|
3202
|
+
errorMessage_1_3001,
|
|
3203
|
+
errorMessage_1_3002,
|
|
3204
|
+
errorMessage_1_3003,
|
|
3205
|
+
errorMessage_1_3004,
|
|
3206
|
+
errorMessage_1_3005,
|
|
3207
|
+
errorMessage_1_3006,
|
|
3208
|
+
errorMessage_1_3007,
|
|
3209
|
+
errorMessage_1_3008,
|
|
3210
|
+
errorMessage_1_3009,
|
|
3211
|
+
errorMessage_1_3010,
|
|
3212
|
+
errorMessage_1_3011,
|
|
3213
|
+
errorMessage_1_3012,
|
|
3214
|
+
errorMessage_1_3013,
|
|
3215
|
+
errorMessage_1_3014,
|
|
3216
|
+
errorMessage_1_3015,
|
|
3217
|
+
errorMessage_1_3016,
|
|
3218
|
+
errorMessage_1_3017,
|
|
3219
|
+
errorMessage_1_3018,
|
|
3220
|
+
errorMessage_1_3019,
|
|
3221
|
+
errorMessage_1_3020,
|
|
3222
|
+
errorMessage_1_3021,
|
|
3223
|
+
errorMessage_1_3022,
|
|
3224
|
+
errorMessage_1_3023,
|
|
3225
|
+
errorMessage_1_3024,
|
|
3226
|
+
errorMessage_1_3025,
|
|
3227
|
+
errorMessage_1_3026,
|
|
3228
|
+
errorMessage_1_3027,
|
|
3229
|
+
errorMessage_1_3028,
|
|
3230
|
+
errorMessage_1_3029,
|
|
3231
|
+
errorMessage_1_3030,
|
|
3232
|
+
errorMessage_1_3031,
|
|
3233
|
+
errorMessage_1_3032,
|
|
3234
|
+
errorMessage_1_3033,
|
|
3235
|
+
errorMessage_1_3034,
|
|
3236
|
+
errorMessage_1_3035,
|
|
3237
|
+
errorMessage_1_3036,
|
|
3238
|
+
errorMessage_1_3037,
|
|
3239
|
+
errorMessage_1_3038,
|
|
3240
|
+
errorMessage_1_3039,
|
|
3241
|
+
errorMessage_1_3040,
|
|
3242
|
+
errorMessage_1_3041,
|
|
3243
|
+
errorMessage_1_3042,
|
|
3244
|
+
errorMessage_1_3043,
|
|
3245
|
+
errorMessage_1_3044,
|
|
3246
|
+
errorMessage_1_3045,
|
|
3247
|
+
errorMessage_1_3046,
|
|
3248
|
+
errorMessage_1_3047,
|
|
3249
|
+
errorMessage_1_3048,
|
|
3250
|
+
errorMessage_1_3049,
|
|
3251
|
+
errorMessage_1_3050,
|
|
3252
|
+
errorMessage_1_3051,
|
|
3253
|
+
errorMessage_1_3052,
|
|
3254
|
+
errorMessage_1_3062,
|
|
3255
|
+
errorMessage_1_31,
|
|
3256
|
+
errorMessage_1_32,
|
|
3257
|
+
errorMessage_1_33,
|
|
3258
|
+
errorMessage_1_34,
|
|
3259
|
+
errorMessage_1_35,
|
|
3260
|
+
errorMessage_1_36,
|
|
3261
|
+
errorMessage_1_37,
|
|
3262
|
+
errorMessage_1_38,
|
|
3263
|
+
errorMessage_1_39,
|
|
3264
|
+
errorMessage_1_40,
|
|
3265
|
+
errorMessage_1_41,
|
|
3266
|
+
errorMessage_1_50,
|
|
3267
|
+
errorMessage_1_5000,
|
|
3268
|
+
errorMessage_1_5001,
|
|
3269
|
+
errorMessage_1_5002,
|
|
3270
|
+
errorMessage_1_5003,
|
|
3271
|
+
errorMessage_1_5004,
|
|
3272
|
+
errorMessage_1_5005,
|
|
3273
|
+
errorMessage_1_5006,
|
|
3274
|
+
errorMessage_1_5007,
|
|
3275
|
+
errorMessage_1_5008,
|
|
3276
|
+
errorMessage_1_5009,
|
|
3277
|
+
errorMessage_1_5010,
|
|
3278
|
+
errorMessage_1_5011,
|
|
3279
|
+
errorMessage_1_5012,
|
|
3280
|
+
errorMessage_1_5013,
|
|
3281
|
+
errorMessage_1_5014,
|
|
3282
|
+
errorMessage_1_5015,
|
|
3283
|
+
errorMessage_1_5016,
|
|
3284
|
+
errorMessage_1_5017,
|
|
3285
|
+
errorMessage_1_5018,
|
|
3286
|
+
errorMessage_1_5019,
|
|
3287
|
+
errorMessage_1_5020,
|
|
3288
|
+
errorMessage_1_5021,
|
|
3289
|
+
errorMessage_1_5022,
|
|
3290
|
+
errorMessage_1_5023,
|
|
3291
|
+
errorMessage_1_5024,
|
|
3292
|
+
errorMessage_1_5025,
|
|
3293
|
+
errorMessage_1_5026,
|
|
3294
|
+
errorMessage_1_5027,
|
|
3295
|
+
errorMessage_1_5028,
|
|
3296
|
+
errorMessage_1_5029,
|
|
3297
|
+
errorMessage_1_5030,
|
|
3298
|
+
errorMessage_1_5031,
|
|
3299
|
+
errorMessage_1_5032,
|
|
3300
|
+
errorMessage_1_5033,
|
|
3301
|
+
errorMessage_1_5034,
|
|
3302
|
+
errorMessage_1_5035,
|
|
3303
|
+
errorMessage_1_5036,
|
|
3304
|
+
errorMessage_1_5037,
|
|
3305
|
+
errorMessage_1_5038,
|
|
3306
|
+
errorMessage_1_5039,
|
|
3307
|
+
errorMessage_1_5040,
|
|
3308
|
+
errorMessage_1_5041,
|
|
3309
|
+
errorMessage_1_5042,
|
|
3310
|
+
errorMessage_1_5043,
|
|
3311
|
+
errorMessage_1_5044,
|
|
3312
|
+
errorMessage_1_5045,
|
|
3313
|
+
errorMessage_1_5046,
|
|
3314
|
+
errorMessage_1_5047,
|
|
3315
|
+
errorMessage_1_5048,
|
|
3316
|
+
errorMessage_1_5049,
|
|
3317
|
+
errorMessage_1_5050,
|
|
3318
|
+
errorMessage_1_5051,
|
|
3319
|
+
errorMessage_1_5052,
|
|
3320
|
+
errorMessage_1_5053,
|
|
3321
|
+
errorMessage_1_5067,
|
|
3322
|
+
errorMessage_1_51,
|
|
3323
|
+
errorMessage_1_52,
|
|
3324
|
+
errorMessage_1_53,
|
|
3325
|
+
errorMessage_1_54,
|
|
3326
|
+
errorMessage_1_55,
|
|
3327
|
+
errorMessage_1_56,
|
|
3328
|
+
errorMessage_1_57,
|
|
3329
|
+
errorMessage_1_60,
|
|
3330
|
+
errorMessage_1_6000,
|
|
3331
|
+
errorMessage_1_6001,
|
|
3332
|
+
errorMessage_1_6002,
|
|
3333
|
+
errorMessage_1_6003,
|
|
3334
|
+
errorMessage_1_6004,
|
|
3335
|
+
errorMessage_1_6005,
|
|
3336
|
+
errorMessage_1_6006,
|
|
3337
|
+
errorMessage_1_6007,
|
|
3338
|
+
errorMessage_1_6008,
|
|
3339
|
+
errorMessage_1_6009,
|
|
3340
|
+
errorMessage_1_6010,
|
|
3341
|
+
errorMessage_1_6011,
|
|
3342
|
+
errorMessage_1_6012,
|
|
3343
|
+
errorMessage_1_6013,
|
|
3344
|
+
errorMessage_1_6014,
|
|
3345
|
+
errorMessage_1_6015,
|
|
3346
|
+
errorMessage_1_6016,
|
|
3347
|
+
errorMessage_1_6017,
|
|
3348
|
+
errorMessage_1_6018,
|
|
3349
|
+
errorMessage_1_6019,
|
|
3350
|
+
errorMessage_1_6020,
|
|
3351
|
+
errorMessage_1_6021,
|
|
3352
|
+
errorMessage_1_6022,
|
|
3353
|
+
errorMessage_1_6023,
|
|
3354
|
+
errorMessage_1_6024,
|
|
3355
|
+
errorMessage_1_6025,
|
|
3356
|
+
errorMessage_1_6026,
|
|
3357
|
+
errorMessage_1_6027,
|
|
3358
|
+
errorMessage_1_6028,
|
|
3359
|
+
errorMessage_1_6029,
|
|
3360
|
+
errorMessage_1_6030,
|
|
3361
|
+
errorMessage_1_6031,
|
|
3362
|
+
errorMessage_1_6032,
|
|
3363
|
+
errorMessage_1_6033,
|
|
3364
|
+
errorMessage_1_6034,
|
|
3365
|
+
errorMessage_1_6035,
|
|
3366
|
+
errorMessage_1_6036,
|
|
3367
|
+
errorMessage_1_6037,
|
|
3368
|
+
errorMessage_1_6038,
|
|
3369
|
+
errorMessage_1_6039,
|
|
3370
|
+
errorMessage_1_6040,
|
|
3371
|
+
errorMessage_1_6041,
|
|
3372
|
+
errorMessage_1_6042,
|
|
3373
|
+
errorMessage_1_6044,
|
|
3374
|
+
errorMessage_1_6045,
|
|
3375
|
+
errorMessage_1_6046,
|
|
3376
|
+
errorMessage_1_6047,
|
|
3377
|
+
errorMessage_1_6048,
|
|
3378
|
+
errorMessage_1_6049,
|
|
3379
|
+
errorMessage_1_61,
|
|
3380
|
+
errorMessage_1_62,
|
|
3381
|
+
errorMessage_1_70,
|
|
3382
|
+
errorMessage_1_7000,
|
|
3383
|
+
errorMessage_1_7001,
|
|
3384
|
+
errorMessage_1_7002,
|
|
3385
|
+
errorMessage_1_7003,
|
|
3386
|
+
errorMessage_1_7004,
|
|
3387
|
+
errorMessage_1_7005,
|
|
3388
|
+
errorMessage_1_7006,
|
|
3389
|
+
errorMessage_1_7007,
|
|
3390
|
+
errorMessage_1_7008,
|
|
3391
|
+
errorMessage_1_7009,
|
|
3392
|
+
errorMessage_1_7010,
|
|
3393
|
+
errorMessage_1_7011,
|
|
3394
|
+
errorMessage_1_7012,
|
|
3395
|
+
errorMessage_1_7013,
|
|
3396
|
+
errorMessage_1_7014,
|
|
3397
|
+
errorMessage_1_7015,
|
|
3398
|
+
errorMessage_1_7016,
|
|
3399
|
+
errorMessage_1_7017,
|
|
3400
|
+
errorMessage_1_7018,
|
|
3401
|
+
errorMessage_1_7019,
|
|
3402
|
+
errorMessage_1_7020,
|
|
3403
|
+
errorMessage_1_7021,
|
|
3404
|
+
errorMessage_1_7022,
|
|
3405
|
+
errorMessage_1_71,
|
|
3406
|
+
errorMessage_1_72,
|
|
3407
|
+
errorMessage_1_73,
|
|
3408
|
+
errorMessage_1_74,
|
|
3409
|
+
errorMessage_1_75,
|
|
3410
|
+
errorMessage_1_76,
|
|
3411
|
+
errorMessage_2_8064,
|
|
3412
|
+
errorMessage_2_8067,
|
|
3413
|
+
errorMessage_2_8141,
|
|
3414
|
+
errorMessage_2_8162,
|
|
3415
|
+
errorMessage_2_8183,
|
|
3416
|
+
errorMessage_2_8189,
|
|
3417
|
+
errorMessage_2_8193,
|
|
3418
|
+
errorMessage_2_8196,
|
|
3419
|
+
errorMessage_3_10,
|
|
3420
|
+
euFinancialRegulationsRequireUs,
|
|
3421
|
+
euVatNumber,
|
|
3422
|
+
exemptedFromTax,
|
|
3423
|
+
extractFromMunicipalPersonalRecordsDatabase,
|
|
3424
|
+
failToLaunchSingpass,
|
|
3425
|
+
failedFetchingDecisionMaker,
|
|
3426
|
+
failedFetchingLegalRepresentative,
|
|
3427
|
+
failedInitializeInstantVerification,
|
|
3428
|
+
failedToDeletePayoutAccount,
|
|
3429
|
+
failedToDownloadAcceptedServiceAgreementDocument,
|
|
3430
|
+
failedToDownloadPci,
|
|
3431
|
+
failedToDownloadServiceAgreementDocument,
|
|
3432
|
+
failedToFetchAcceptedByName,
|
|
3433
|
+
failedToFetchLegalEntityDetails,
|
|
3434
|
+
failedToFetchPayoutAccount,
|
|
3435
|
+
failedToFetchRelevantAccounts,
|
|
3436
|
+
failedToFetchRelevantDocuments,
|
|
3437
|
+
failedToFetchSoleProp,
|
|
3438
|
+
failedToFetchTrustDetails,
|
|
3439
|
+
failedToFetchTrustMemberDetails,
|
|
3440
|
+
failedToGetPciStatus,
|
|
3441
|
+
failedToGetPciTemplate,
|
|
3442
|
+
failedToGetPciTemplateInSelectedLanguageFallbackToEn,
|
|
3443
|
+
failedToGetServiceAgreement,
|
|
3444
|
+
failedToGetServiceAgreementInSelectedLanguageFallbackToEn,
|
|
3445
|
+
failedToGetServiceAgreementStatus,
|
|
3446
|
+
failedToRemoveDecisionMaker,
|
|
3447
|
+
failedToRemoveTrustMember,
|
|
3448
|
+
failedToUpdateDetails,
|
|
3449
|
+
familyTrust,
|
|
3450
|
+
fieldHasUnsupportedFormats,
|
|
3451
|
+
fieldIsRequired,
|
|
3452
|
+
fileName,
|
|
3453
|
+
fileUpload,
|
|
3454
|
+
financialInformation,
|
|
3455
|
+
financialReportingDate,
|
|
3456
|
+
financialReportingDateHelper,
|
|
3457
|
+
firmenbuchnummer,
|
|
3458
|
+
firmenbuchnummerOrZVR,
|
|
3459
|
+
firstHomeSaverAccountsTrust,
|
|
3460
|
+
firstName,
|
|
3461
|
+
firstNameOfSettlor,
|
|
3462
|
+
fixedTrust,
|
|
3463
|
+
fixedUnitTrust,
|
|
3464
|
+
forExample_,
|
|
3465
|
+
formatIsCorrect,
|
|
3466
|
+
franchiseesTAndCs,
|
|
3467
|
+
frontPage,
|
|
3468
|
+
fullDocumentVisible,
|
|
3469
|
+
fullDocumentVisibleWithReadableText,
|
|
3470
|
+
fullLegalNamesOfAnyAppointers,
|
|
3471
|
+
getSetUpInstantly,
|
|
3472
|
+
getYourBusinessVerifiedDetails,
|
|
3473
|
+
getYourVerifiedDetailsInstantly,
|
|
3474
|
+
goBack,
|
|
3475
|
+
goBackAndProvideDocumentScans,
|
|
3476
|
+
goToDecisionMakers,
|
|
3477
|
+
goToIntroduction,
|
|
3478
|
+
goToMenu,
|
|
3479
|
+
goToOverview,
|
|
3480
|
+
goToOverviewFromIntroduction,
|
|
3481
|
+
good,
|
|
3482
|
+
governmentIssuedCorrespondence,
|
|
3483
|
+
governmentalOrganizationDescription,
|
|
3484
|
+
governmentalOrganizationTitle,
|
|
3485
|
+
grTaxId,
|
|
3486
|
+
gst,
|
|
3487
|
+
guardian,
|
|
3488
|
+
guardianshipCertificate,
|
|
3489
|
+
handelsregisternummer,
|
|
3490
|
+
hasBankStampOrBankSignature,
|
|
3491
|
+
hasDba,
|
|
3492
|
+
hasDba__helperText,
|
|
3493
|
+
hasToBeOfficialDocumentFromBank,
|
|
3494
|
+
helpUsVerifyCompany,
|
|
3495
|
+
hideDetails,
|
|
3496
|
+
hkid,
|
|
3497
|
+
howDoesVerificationWithOurPartnerWorks,
|
|
3498
|
+
howVerificationWithOnfidoWork,
|
|
3499
|
+
howWouldYouLikeToSetUpYourAccount,
|
|
3500
|
+
huRegistrationNumber,
|
|
3501
|
+
huTaxId,
|
|
3502
|
+
hybridTrust,
|
|
3503
|
+
iDoNotHaveGst,
|
|
3504
|
+
iDontHaveARegistrationNumber,
|
|
3505
|
+
iDontHaveATaxId,
|
|
3506
|
+
iDontHaveAVatNumber,
|
|
3507
|
+
iDontKnow,
|
|
3508
|
+
iHaveReadAndIAcceptTheseTerms,
|
|
3509
|
+
iStillCantFindIt,
|
|
3510
|
+
iban,
|
|
3511
|
+
ibanFormat,
|
|
3512
|
+
id,
|
|
3513
|
+
idDocument: idDocument$1,
|
|
3514
|
+
idDocumentAlreadyUploaded,
|
|
3515
|
+
idNumber,
|
|
3516
|
+
idUploadDocumentSubtitle,
|
|
3517
|
+
identificationNumber,
|
|
3518
|
+
identifikacionenNomerDDS,
|
|
3519
|
+
identityCard,
|
|
3520
|
+
identityCardBack,
|
|
3521
|
+
identityCardFront,
|
|
3522
|
+
identityNumberExempt,
|
|
3523
|
+
identityNumberExempt__CA,
|
|
3524
|
+
identityNumberExempt__US,
|
|
3525
|
+
ifNoOwnersSpecifyControllingPersons,
|
|
3526
|
+
imagesInColor,
|
|
3527
|
+
inReview,
|
|
3528
|
+
inTheLastStepOwnedByAParentCompany,
|
|
3529
|
+
inThePreviousStepOwnedByAnUltimateParentCompany,
|
|
3530
|
+
includeFrontAndBack,
|
|
3531
|
+
includesEIN,
|
|
3532
|
+
includesLegalCompanyName,
|
|
3533
|
+
individual,
|
|
3534
|
+
individualDetails,
|
|
3535
|
+
individualTrustee,
|
|
3536
|
+
individualTrusteeDetails,
|
|
3537
|
+
industryAndNaceCode,
|
|
3538
|
+
industryExemption,
|
|
3539
|
+
infoInUploadedDocumentIsTrue,
|
|
3540
|
+
informationCouldNotBeSubmitted,
|
|
3541
|
+
instant,
|
|
3542
|
+
instantIDVerificationDescription,
|
|
3543
|
+
instantVerification,
|
|
3544
|
+
instantVerificationDescription,
|
|
3545
|
+
institutionNumber,
|
|
3546
|
+
instructionNumber,
|
|
3547
|
+
introductionScreenAccountDescriptionP1,
|
|
3548
|
+
introductionScreenAccountDescriptionP2,
|
|
3549
|
+
introductionScreenAccountTitle,
|
|
3550
|
+
introductionScreenCompanyDescriptionLI1,
|
|
3551
|
+
introductionScreenCompanyDescriptionP1,
|
|
3552
|
+
introductionScreenCompanyDescriptionP2,
|
|
3553
|
+
introductionScreenCompanyTitle,
|
|
3554
|
+
introductionScreenDecisionMakerDescriptionLI1,
|
|
3555
|
+
introductionScreenDecisionMakerDescriptionLI2,
|
|
3556
|
+
introductionScreenDecisionMakerDescriptionLI3,
|
|
3557
|
+
introductionScreenDecisionMakerDescriptionP1,
|
|
3558
|
+
introductionScreenDecisionMakerDescriptionP2,
|
|
3559
|
+
introductionScreenDecisionMakerTitle,
|
|
3560
|
+
introductionScreenEpilogueDescriptionP1,
|
|
3561
|
+
introductionScreenEpilogueDescriptionP2,
|
|
3562
|
+
introductionScreenEpilogueTitle,
|
|
3563
|
+
introductionScreenIndividualDescriptionLI1,
|
|
3564
|
+
introductionScreenIndividualDescriptionLI2,
|
|
3565
|
+
introductionScreenIndividualDescriptionLI3,
|
|
3566
|
+
introductionScreenIndividualDescriptionP1,
|
|
3567
|
+
introductionScreenIndividualDescriptionP2,
|
|
3568
|
+
introductionScreenIndividualTitle,
|
|
3569
|
+
introductionScreenPrologueDescriptionP1,
|
|
3570
|
+
introductionScreenPrologueDescriptionP2,
|
|
3571
|
+
introductionScreenPrologueTitle,
|
|
3572
|
+
introductionScreenSoleProprietorCompanyDescriptionLI1,
|
|
3573
|
+
introductionScreenSoleProprietorCompanyDescriptionP1,
|
|
3574
|
+
introductionScreenSoleProprietorCompanyDescriptionP2,
|
|
3575
|
+
introductionScreenSoleProprietorCompanyTitle,
|
|
3576
|
+
introductionScreenTrustDescriptionLI1,
|
|
3577
|
+
introductionScreenTrustDescriptionP1,
|
|
3578
|
+
introductionScreenTrustDescriptionP2,
|
|
3579
|
+
introductionScreenTrustMemberDescriptionLI1,
|
|
3580
|
+
introductionScreenTrustMemberDescriptionLI2,
|
|
3581
|
+
introductionScreenTrustMemberDescriptionLI3,
|
|
3582
|
+
introductionScreenTrustMemberDescriptionP1,
|
|
3583
|
+
introductionScreenTrustMemberDescriptionP2,
|
|
3584
|
+
introductionScreenTrustMemberTitle,
|
|
3585
|
+
introductionScreenTrustTitle,
|
|
3586
|
+
invalidBirthDate,
|
|
3587
|
+
invalidDateOfBirth,
|
|
3588
|
+
invalidDateOfIncorporation,
|
|
3589
|
+
invalidEmail,
|
|
3590
|
+
invalidFormat,
|
|
3591
|
+
invalidFormatBankStatementDescription,
|
|
3592
|
+
invalidFormatExpects,
|
|
3593
|
+
invalidFormatForAuDriversLicenseCardNumber,
|
|
3594
|
+
invalidFormatForAuDriversLicenseNumber,
|
|
3595
|
+
invalidFormatForAuPassportNumber,
|
|
3596
|
+
invalidFormatForHKDriversLicenseNumber,
|
|
3597
|
+
invalidFormatForHKIdentityCardNumber,
|
|
3598
|
+
invalidFormatForHKPassportNumber,
|
|
3599
|
+
invalidFormatForNZDriversLicenseCardNumber,
|
|
3600
|
+
invalidFormatForNZDriversLicenseNumber,
|
|
3601
|
+
invalidFormatForNZPassportNumber,
|
|
3602
|
+
invalidFormatIdentityNumberBR,
|
|
3603
|
+
invalidFormatIdentityNumberCA,
|
|
3604
|
+
invalidFormatIdentityNumberDK,
|
|
3605
|
+
invalidFormatIdentityNumberES,
|
|
3606
|
+
invalidFormatIdentityNumberHK,
|
|
3607
|
+
invalidFormatIdentityNumberIT,
|
|
3608
|
+
invalidFormatIdentityNumberPL,
|
|
3609
|
+
invalidFormatIdentityNumberRO,
|
|
3610
|
+
invalidFormatIdentityNumberSE,
|
|
3611
|
+
invalidFormatIdentityNumberSG,
|
|
3612
|
+
invalidFormatIdentityNumberUS,
|
|
3613
|
+
invalidFormatIdentityNumberUS9,
|
|
3614
|
+
invalidPhoneNumber,
|
|
3615
|
+
invalidRegistrationNumber,
|
|
3616
|
+
invalidRole,
|
|
3617
|
+
irdDocument,
|
|
3618
|
+
irdNumber,
|
|
3619
|
+
irsCP575,
|
|
3620
|
+
irsScheduleK1,
|
|
3621
|
+
isCompanyOwnedByAnotherCompany,
|
|
3622
|
+
isOurTrustedPartnerHelpingSpeedUpSetup,
|
|
3623
|
+
isParentOwnedByAnotherCompany,
|
|
3624
|
+
isThisAddressTheMainHeadquarters,
|
|
3625
|
+
isTrustOperationAddressSame,
|
|
3626
|
+
issuedByTheTaxAuthority,
|
|
3627
|
+
issuedInTheLastXMonths,
|
|
3628
|
+
issuerState,
|
|
3629
|
+
jobTitle,
|
|
3630
|
+
jointlyOwnedBusinessWhereTwoOrMorePeopleOperateAndShareProfits,
|
|
3631
|
+
kaibemaksukohustuslaseNumber,
|
|
3632
|
+
krsNumber,
|
|
3633
|
+
last4DigitsOfSocialSecurityNumber,
|
|
3634
|
+
lastName,
|
|
3635
|
+
lastNameOfSettlor,
|
|
3636
|
+
learnMore,
|
|
3637
|
+
leave,
|
|
3638
|
+
legalCompanyName,
|
|
3639
|
+
legalCompanyName__US,
|
|
3640
|
+
legalCompanyName__helperText,
|
|
3641
|
+
legalCompanyName__helperText__AU,
|
|
3642
|
+
legalCompanyName__helperText__HK,
|
|
3643
|
+
legalCompanyName__helperText__NL,
|
|
3644
|
+
legalCompanyName__helperText__PR,
|
|
3645
|
+
legalCompanyName__helperText__SG,
|
|
3646
|
+
legalCompanyName__helperText__US,
|
|
3647
|
+
legalCompanyName__helperText__US__business,
|
|
3648
|
+
legalEntityIdentifier,
|
|
3649
|
+
legalForm,
|
|
3650
|
+
legalInformation,
|
|
3651
|
+
legalInformationInsolvency,
|
|
3652
|
+
legalName,
|
|
3653
|
+
legalNameOfSoleProprietor,
|
|
3654
|
+
legalNameOfSoleProprietorship,
|
|
3655
|
+
legalOwnerOfProperty,
|
|
3656
|
+
legalRepresentative,
|
|
3657
|
+
legalRepresentativeDetails,
|
|
3658
|
+
legalRepresentativeFor,
|
|
3659
|
+
legalStructure,
|
|
3660
|
+
legalStructureHeader,
|
|
3661
|
+
letUsKnowTheBankAccountToSendReceiveFunds,
|
|
3662
|
+
liRegistrationNumber,
|
|
3663
|
+
licenceVersionNumber,
|
|
3664
|
+
licenseCardNumber,
|
|
3665
|
+
licenseNumber,
|
|
3666
|
+
listedPublicUnitTrust,
|
|
3667
|
+
listitemVoidedChequeBankLetterBankStatementOnline,
|
|
3668
|
+
loading,
|
|
3669
|
+
localFormat,
|
|
3670
|
+
loginIntoYourBankingEnvironment,
|
|
3671
|
+
lookUpYourLEI,
|
|
3672
|
+
ltRegistrationNumber,
|
|
3673
|
+
luRegistrationNumber,
|
|
3674
|
+
lvRegistrationNumber,
|
|
3675
|
+
lvTaxId,
|
|
3676
|
+
madeAMistake,
|
|
3677
|
+
maintenanceModeMessage,
|
|
3678
|
+
makeSureToHaveYourTrustDeed,
|
|
3679
|
+
manualIDVerificationDescription,
|
|
3680
|
+
manualUpload,
|
|
3681
|
+
manualVerificationDescription,
|
|
3682
|
+
maximumFileSizeExceeded,
|
|
3683
|
+
mayTakeAFewDays,
|
|
3684
|
+
mcRegistrationNumber,
|
|
3685
|
+
mcRegistrationNumberSoleProp,
|
|
3686
|
+
meetingRecords,
|
|
3687
|
+
memberDetails,
|
|
3688
|
+
missingMultipleDecisionMakers,
|
|
3689
|
+
mobileApplication,
|
|
3690
|
+
momsregistreringsnummer,
|
|
3691
|
+
momsregistreringsnummerCVR,
|
|
3692
|
+
momsregistreringsnummerOrStamregister,
|
|
3693
|
+
mortgageStatement,
|
|
3694
|
+
mvanummer,
|
|
3695
|
+
myInfoBusinessYouCanGetVerifiedDetails,
|
|
3696
|
+
myInfoYouCanGetVerifiedDetails,
|
|
3697
|
+
myName,
|
|
3698
|
+
myNameDescription,
|
|
3699
|
+
mySoleProprietorName,
|
|
3700
|
+
mySoleProprietorNameDescription,
|
|
3701
|
+
nameOfBankAccountHolder,
|
|
3702
|
+
nameOfTrust,
|
|
3703
|
+
nameOfTrustAgreement,
|
|
3704
|
+
nationalInsuranceNumber,
|
|
3705
|
+
nationality: nationality$1,
|
|
3706
|
+
naturalPersonDescription,
|
|
3707
|
+
naturalPersonTitle,
|
|
3708
|
+
needHelpYouCanAlwaysReachOutToCustomerSupport,
|
|
3709
|
+
next,
|
|
3710
|
+
nie,
|
|
3711
|
+
no,
|
|
3712
|
+
noGlare,
|
|
3713
|
+
noGoBack,
|
|
3714
|
+
noOptionsFound,
|
|
3715
|
+
nonProfitOrCharitableOrgDescription,
|
|
3716
|
+
nonProfitOrCharitableOrgTitle,
|
|
3717
|
+
noneOfTheAbove,
|
|
3718
|
+
notBlurry,
|
|
3719
|
+
notCutOff,
|
|
3720
|
+
notExpired,
|
|
3721
|
+
noteManualTakesLonger,
|
|
3722
|
+
nric,
|
|
3723
|
+
numarOrdineRegistrulComertului,
|
|
3724
|
+
number,
|
|
3725
|
+
numberOfEmployees,
|
|
3726
|
+
numeroDIdentificationALATaxe,
|
|
3727
|
+
numerodeIVA,
|
|
3728
|
+
objectOfCharitableTrust,
|
|
3729
|
+
objectOfTrust,
|
|
3730
|
+
obligatory,
|
|
3731
|
+
officialEmailOrALetterFromYourBank,
|
|
3732
|
+
oib,
|
|
3733
|
+
onOnlineBankingEnvironment,
|
|
3734
|
+
onboardingRedirectAwaitingCtaButton,
|
|
3735
|
+
onboardingRedirectAwaitingDescriptionP1,
|
|
3736
|
+
onboardingRedirectInReviewCtaButton,
|
|
3737
|
+
onboardingRedirectInReviewDescriptionP1,
|
|
3738
|
+
onboardingRedirectLinkError,
|
|
3739
|
+
onboardingRedirectOpenError,
|
|
3740
|
+
onboardingRedirectRejectedDescriptionP1,
|
|
3741
|
+
onboardingRedirectUnsuccessfulCtaButton,
|
|
3742
|
+
onboardingRedirectUnsuccessfulDescriptionP1,
|
|
3743
|
+
onboardingRedirectVerifiedDescriptionP1,
|
|
3744
|
+
onfidoIsOurTrustedPartner,
|
|
3745
|
+
onfidoWillGiveFeedbackInRealTime,
|
|
3746
|
+
onlyEnterNormalCharacters,
|
|
3747
|
+
operationalAddress,
|
|
3748
|
+
operationalAddressHeader,
|
|
3749
|
+
operationalAddressHeaderDescription,
|
|
3750
|
+
operationalAddressIsNotSameItemName,
|
|
3751
|
+
operationalAddressIsSame,
|
|
3752
|
+
operationalAddressIsSameItemName,
|
|
3753
|
+
optional,
|
|
3754
|
+
orSoleProprietorshipName,
|
|
3755
|
+
organisasjonsnummer,
|
|
3756
|
+
organisationsnummer,
|
|
3757
|
+
otherAddressInformation,
|
|
3758
|
+
otherBusinessInformation,
|
|
3759
|
+
otherInformation,
|
|
3760
|
+
otherTrust,
|
|
3761
|
+
ourFinancialServicesAreNotAvailableYetForPartnershipsAndAssociations,
|
|
3762
|
+
owner,
|
|
3763
|
+
ownerDescription,
|
|
3764
|
+
ownerGuideDescription,
|
|
3765
|
+
ownershipStructure,
|
|
3766
|
+
parent,
|
|
3767
|
+
parentCompany,
|
|
3768
|
+
parentCompanyDetails,
|
|
3769
|
+
parentCompanyInformation,
|
|
3770
|
+
partitaIVA,
|
|
3771
|
+
partnerShipAgreement,
|
|
3772
|
+
partnership,
|
|
3773
|
+
partnershipIncorporated,
|
|
3774
|
+
partnershipIncorporatedDescription,
|
|
3775
|
+
partnershipIncorporatedNewEntryFlowDescription,
|
|
3776
|
+
partnershipOrAssociation,
|
|
3777
|
+
partnershipUnincorporated,
|
|
3778
|
+
partnershipUnincorporatedDescription,
|
|
3779
|
+
partnershipUnincorporatedNewEntryFlowDescription,
|
|
3780
|
+
passport,
|
|
3781
|
+
passportExpiryDate,
|
|
3782
|
+
passportNumber,
|
|
3783
|
+
passportPhotoPage,
|
|
3784
|
+
patriotActDisclosureTextParagraph1,
|
|
3785
|
+
patriotActDisclosureTextParagraph2,
|
|
3786
|
+
patriotActDisclosureTitle,
|
|
3787
|
+
payinAccount,
|
|
3788
|
+
payinAccountsDescription,
|
|
3789
|
+
payinDetails,
|
|
3790
|
+
paymentProcessingTerms,
|
|
3791
|
+
payoutAccount,
|
|
3792
|
+
payoutAccountsDescription,
|
|
3793
|
+
payoutAccountsDescriptionReview,
|
|
3794
|
+
payoutDetails,
|
|
3795
|
+
payoutInOnly_,
|
|
3796
|
+
payoutIn_Or_,
|
|
3797
|
+
pccr,
|
|
3798
|
+
pciDssQuestionnaire,
|
|
3799
|
+
pciSignFailed,
|
|
3800
|
+
pciSignedSuccessfully,
|
|
3801
|
+
personAppointmentUnderTrustInstrument,
|
|
3802
|
+
personalDetails,
|
|
3803
|
+
personnummer,
|
|
3804
|
+
peselNumber,
|
|
3805
|
+
phoneNumber,
|
|
3806
|
+
pleaseEnsureTheFollowing,
|
|
3807
|
+
pleaseEnterAPhoneNumberPrefixedWithCountryCode,
|
|
3808
|
+
pleaseNote,
|
|
3809
|
+
pleaseProvideThePurposeOfCharitableTrust,
|
|
3810
|
+
pooledSuperannuationTrust,
|
|
3811
|
+
postalCode,
|
|
3812
|
+
poweredBy,
|
|
3813
|
+
previous,
|
|
3814
|
+
privateCompanyDescription,
|
|
3815
|
+
privateCompanyTitle,
|
|
3816
|
+
processing,
|
|
3817
|
+
professionalServiceProvider,
|
|
3818
|
+
progress,
|
|
3819
|
+
proofOfNationalId,
|
|
3820
|
+
proofOfNationality,
|
|
3821
|
+
proofOfRelationship,
|
|
3822
|
+
proofOfResidence,
|
|
3823
|
+
proofOfResidenceDocumentTypeLabel,
|
|
3824
|
+
protector,
|
|
3825
|
+
protectorGuideDescription,
|
|
3826
|
+
provideAllBeneficiaries,
|
|
3827
|
+
provideAllControllingPersons,
|
|
3828
|
+
provideAllDirectors,
|
|
3829
|
+
provideAllOwners,
|
|
3830
|
+
provideAllTrustees,
|
|
3831
|
+
provideAtLeastOneProtector,
|
|
3832
|
+
provideAtLeastOneSettlor,
|
|
3833
|
+
provideAtLeastOneSignatory,
|
|
3834
|
+
provideContactDetails,
|
|
3835
|
+
provideDetails,
|
|
3836
|
+
provideFewDetailsAboutYourself,
|
|
3837
|
+
provideOneControllingPerson,
|
|
3838
|
+
providePageWithPhotoAndCode,
|
|
3839
|
+
providePersonalAddress,
|
|
3840
|
+
providePersonalDetailsOfOwner,
|
|
3841
|
+
provideRegistrationDetails,
|
|
3842
|
+
provinceOrTerritory,
|
|
3843
|
+
publicCompanyDescription,
|
|
3844
|
+
publicCompanyTitle,
|
|
3845
|
+
publicTradingTrust,
|
|
3846
|
+
ranIntoTechnicalError,
|
|
3847
|
+
reasonForFillingCompanyAddressDetails,
|
|
3848
|
+
reasonForFillingCompanyRegistrationDetails,
|
|
3849
|
+
reasonForFillingIndividualAddressDetails,
|
|
3850
|
+
reasonForFillingIndividualPersonalDetails,
|
|
3851
|
+
reasonForFillingPayoutAccountDetails,
|
|
3852
|
+
reasonForFillingPayoutDetails,
|
|
3853
|
+
region,
|
|
3854
|
+
registeredAddress,
|
|
3855
|
+
registeredAddressHeaderDescription,
|
|
3856
|
+
registeredAddressHeaderDescription__NL,
|
|
3857
|
+
registeredAddressHeaderDescription__PR,
|
|
3858
|
+
registeredAddressHeaderDescription__US,
|
|
3859
|
+
registeredAddressTrustHeaderDescription,
|
|
3860
|
+
registrationAddress,
|
|
3861
|
+
registrationDetails,
|
|
3862
|
+
registrationDocument,
|
|
3863
|
+
registrationDocumentSubTitle,
|
|
3864
|
+
registrationNumber,
|
|
3865
|
+
registrationNumber__US,
|
|
3866
|
+
registrationNumber__helperText__US,
|
|
3867
|
+
registrationNumber__nonProfit__FR,
|
|
3868
|
+
registrikood,
|
|
3869
|
+
regon,
|
|
3870
|
+
regonKrsNumber,
|
|
3871
|
+
relationshipTo,
|
|
3872
|
+
remediationFormErrorMessage,
|
|
3873
|
+
remediationMessage_1_100,
|
|
3874
|
+
remediationMessage_1_101,
|
|
3875
|
+
remediationMessage_1_102,
|
|
3876
|
+
remediationMessage_1_300,
|
|
3877
|
+
remediationMessage_1_301,
|
|
3878
|
+
remediationMessage_1_302,
|
|
3879
|
+
remediationMessage_1_303,
|
|
3880
|
+
remediationMessage_1_304,
|
|
3881
|
+
remediationMessage_1_305,
|
|
3882
|
+
remediationMessage_1_306,
|
|
3883
|
+
remediationMessage_1_307,
|
|
3884
|
+
remediationMessage_1_308,
|
|
3885
|
+
remediationMessage_1_309,
|
|
3886
|
+
remediationMessage_1_316,
|
|
3887
|
+
remediationMessage_1_500,
|
|
3888
|
+
remediationMessage_1_501,
|
|
3889
|
+
remediationMessage_1_502,
|
|
3890
|
+
remediationMessage_1_503,
|
|
3891
|
+
remediationMessage_1_504,
|
|
3892
|
+
remediationMessage_1_505,
|
|
3893
|
+
remediationMessage_1_506,
|
|
3894
|
+
remediationMessage_1_507,
|
|
3895
|
+
remediationMessage_1_508,
|
|
3896
|
+
remediationMessage_1_509,
|
|
3897
|
+
remediationMessage_1_510,
|
|
3898
|
+
remediationMessage_1_511,
|
|
3899
|
+
remediationMessage_1_512,
|
|
3900
|
+
remediationMessage_1_513,
|
|
3901
|
+
remediationMessage_1_600,
|
|
3902
|
+
remediationMessage_1_601,
|
|
3903
|
+
remediationMessage_1_602,
|
|
3904
|
+
remediationMessage_1_603,
|
|
3905
|
+
remediationMessage_1_700,
|
|
3906
|
+
remediationMessage_1_701,
|
|
3907
|
+
remediationMessage_1_702,
|
|
3908
|
+
remediationMessage_1_703,
|
|
3909
|
+
remediationMessage_1_704,
|
|
3910
|
+
remediationMessage_1_705,
|
|
3911
|
+
remediationMessage_2_123,
|
|
3912
|
+
remediationMessage_2_124,
|
|
3913
|
+
remediationMessage_2_151,
|
|
3914
|
+
remediationMessage_2_158,
|
|
3915
|
+
remediationMessage_2_178,
|
|
3916
|
+
remediationMessage_2_185,
|
|
3917
|
+
remediationMessage_2_188,
|
|
3918
|
+
remediationMessage_3_100,
|
|
3919
|
+
remove,
|
|
3920
|
+
removeDecisionMaker,
|
|
3921
|
+
removeTrustMember,
|
|
3922
|
+
removing,
|
|
3923
|
+
requiredIfApplicable,
|
|
3924
|
+
requirements,
|
|
3925
|
+
requiresDecisionMakers,
|
|
3926
|
+
requiresSignatory,
|
|
3927
|
+
residencePermitBack,
|
|
3928
|
+
residencePermitFront,
|
|
3929
|
+
residencyCountry,
|
|
3930
|
+
retrieveMyInfo,
|
|
3931
|
+
retrieveMyInfoBusiness,
|
|
3932
|
+
retrieveMyinfoBusinessWith,
|
|
3933
|
+
retrieveMyinfoWith,
|
|
3934
|
+
reviewTheInformationBelowAndCorrectMistakesOr,
|
|
3935
|
+
rnaNumber,
|
|
3936
|
+
role,
|
|
3937
|
+
roleAndEntityType,
|
|
3938
|
+
routingNumberVisible,
|
|
3939
|
+
salarySlip,
|
|
3940
|
+
sameNameAsLegalName,
|
|
3941
|
+
saveAndGoToOverview,
|
|
3942
|
+
screenshotOfOnlineBankingEnviroment,
|
|
3943
|
+
search,
|
|
3944
|
+
searchAddress: searchAddress$1,
|
|
3945
|
+
secForm10k,
|
|
3946
|
+
secretaryOfStateFiling,
|
|
3947
|
+
secretaryOfStateFiling__PR,
|
|
3948
|
+
secretaryOfStateRegDoc,
|
|
3949
|
+
secretaryOfStateRegDoc__PR,
|
|
3950
|
+
selectAccountHolder,
|
|
3951
|
+
selectAllTheRolesThatThisDecisionMakerHolds,
|
|
3952
|
+
selectCountryRegion,
|
|
3953
|
+
selectDocument,
|
|
3954
|
+
selectDocumentType,
|
|
3955
|
+
selectOne,
|
|
3956
|
+
selectProvinceOrTerritory,
|
|
3957
|
+
selectSigner,
|
|
3958
|
+
selectState,
|
|
3959
|
+
selectTheApplicableRoles,
|
|
3960
|
+
selectTheBankToReceivePayouts,
|
|
3961
|
+
selectedSomeRolesBasedOnMyinfo,
|
|
3962
|
+
serviceAgreementSignFailed,
|
|
3963
|
+
serviceAgreementSignedSuccessfully,
|
|
3964
|
+
sessionTimeout,
|
|
3965
|
+
setUpYourAccount,
|
|
3966
|
+
settlerDetailsIncl,
|
|
3967
|
+
settlor,
|
|
3968
|
+
settlorExemptionReason,
|
|
3969
|
+
settlorGuideDescription,
|
|
3970
|
+
shareholderDocument,
|
|
3971
|
+
showAddressStateCountry,
|
|
3972
|
+
showDetails,
|
|
3973
|
+
showOnMap,
|
|
3974
|
+
showsCountryOfBankAccount,
|
|
3975
|
+
siRegistrationNumber,
|
|
3976
|
+
siTaxId,
|
|
3977
|
+
sign,
|
|
3978
|
+
signServiceAgreement,
|
|
3979
|
+
signatory,
|
|
3980
|
+
signatoryDescription,
|
|
3981
|
+
signatoryGuideDescription,
|
|
3982
|
+
signed,
|
|
3983
|
+
signer,
|
|
3984
|
+
singingUpAsCompanyButLooksLikeYouAreAnIndividual,
|
|
3985
|
+
singingUpAsIndividualButLooksLikeYouAreACompany,
|
|
3986
|
+
siret,
|
|
3987
|
+
skRegistrationNumber,
|
|
3988
|
+
skTaxId,
|
|
3989
|
+
smartling,
|
|
3990
|
+
socialInsuranceNumber,
|
|
3991
|
+
socialSecurityNumber,
|
|
3992
|
+
socialSecurityNumber__placeholder,
|
|
3993
|
+
solePropDetails,
|
|
3994
|
+
soleProprietorDetails,
|
|
3995
|
+
soleProprietorship,
|
|
3996
|
+
soleProprietorshipDetails,
|
|
3997
|
+
someFieldsHaveUnsupportedFormatedUpdateInfoAndResubmit,
|
|
3998
|
+
someInformationWillNotBeSaved,
|
|
3999
|
+
someoneAppointedToManageACompanysBusinessAndAffairs,
|
|
4000
|
+
sorryAnErrorOccurred,
|
|
4001
|
+
sorryWeCantSetUpAnAccountForYou,
|
|
4002
|
+
sortCode,
|
|
4003
|
+
ssn,
|
|
4004
|
+
stamregister,
|
|
4005
|
+
startANewSessionFromTheSamePlaceYouOriginallyAccessed,
|
|
4006
|
+
startTypingTheAddress,
|
|
4007
|
+
state,
|
|
4008
|
+
stateIssuedProofOfIdentityCard,
|
|
4009
|
+
stateOrProvince,
|
|
4010
|
+
stateOrProvince__US__business,
|
|
4011
|
+
stateOrProvince__placeHolder,
|
|
4012
|
+
stateOrProvince__placeHolder__US,
|
|
4013
|
+
stockExchangeInformation,
|
|
4014
|
+
stockExchangeMIC,
|
|
4015
|
+
stockExchangeMICHelper,
|
|
4016
|
+
stockISIN,
|
|
4017
|
+
stockISINHelper,
|
|
4018
|
+
stockTickerSymbol,
|
|
4019
|
+
street,
|
|
4020
|
+
submit: submit$1,
|
|
4021
|
+
submitFailed,
|
|
4022
|
+
submitIdDocumentsAgain,
|
|
4023
|
+
submitReview,
|
|
4024
|
+
submitReviewOfYourData,
|
|
4025
|
+
submitSuccessful,
|
|
4026
|
+
successFullyRemovedDecisionMaker,
|
|
4027
|
+
successFullyRemovedTrustMember,
|
|
4028
|
+
successfullyUpdatedDetails,
|
|
4029
|
+
successfullyVerifiedIdNumber,
|
|
4030
|
+
summary: summary$1,
|
|
4031
|
+
summaryLegalCaption,
|
|
4032
|
+
summaryTaxExemptionLegalCaptionTitle,
|
|
4033
|
+
summaryTaxExemptionLegalCaption_1,
|
|
4034
|
+
summaryTaxExemptionLegalCaption_2,
|
|
4035
|
+
summaryTaxExemptionLegalCaption_3,
|
|
4036
|
+
supports,
|
|
4037
|
+
swiftCode,
|
|
4038
|
+
takePhotoOriginalDocumentWithPhone,
|
|
4039
|
+
takesLonger,
|
|
4040
|
+
taxDocument,
|
|
4041
|
+
taxFiling,
|
|
4042
|
+
taxFiling__US,
|
|
4043
|
+
taxId,
|
|
4044
|
+
taxIdAbsenceReason,
|
|
4045
|
+
taxIdNumber,
|
|
4046
|
+
taxIdentificationNumber,
|
|
4047
|
+
taxInformationNumber,
|
|
4048
|
+
taxInformationNumber__HK,
|
|
4049
|
+
taxInformationNumber__US,
|
|
4050
|
+
taxInformationNumber__helperText__US,
|
|
4051
|
+
taxInformationNumber__placeHolder__US,
|
|
4052
|
+
taxNumberCorporateNumber,
|
|
4053
|
+
taxReferenceNumber,
|
|
4054
|
+
taxationDocument,
|
|
4055
|
+
taxpayerReferenceNumber,
|
|
4056
|
+
textToVerifyAccount,
|
|
4057
|
+
theBankAccountHolderMustBeInYourName_,
|
|
4058
|
+
theBankAccountHolderMustHaveTheSameNameAsYourCompany_,
|
|
4059
|
+
theCompanyIWorkFor,
|
|
4060
|
+
theCompanyIWorkForDescription,
|
|
4061
|
+
theIdCheckWillBeAutomaticallyValidated,
|
|
4062
|
+
theSubmitWasSuccessful,
|
|
4063
|
+
thenResubmit,
|
|
4064
|
+
thereWasAnErrorTryAgain,
|
|
4065
|
+
thisIsMyBusiness,
|
|
4066
|
+
thisMeansYouHaveAParentCompany,
|
|
4067
|
+
thisMeansYouHaveAnUltimateParentCompany,
|
|
4068
|
+
thisPageIsNowInactive,
|
|
4069
|
+
thisSessionWillExpireIn,
|
|
4070
|
+
toCompleteProcessReviewAndSignOfficialDocumentation,
|
|
4071
|
+
toProtectYourInformationThisSessionHasExpired,
|
|
4072
|
+
toggleAssociationMenu,
|
|
4073
|
+
tooManyFiles,
|
|
4074
|
+
totalAssets,
|
|
4075
|
+
totalAssetsCurrency,
|
|
4076
|
+
totalAssetsHelper,
|
|
4077
|
+
totalAssetsValue,
|
|
4078
|
+
tradingName,
|
|
4079
|
+
transferInstrumentDeleted,
|
|
4080
|
+
transitNumber,
|
|
4081
|
+
trust,
|
|
4082
|
+
trustDeed,
|
|
4083
|
+
trustDetails,
|
|
4084
|
+
trustDetailsDescription,
|
|
4085
|
+
trustDocumentDescription,
|
|
4086
|
+
trustInstrument,
|
|
4087
|
+
trustMembers,
|
|
4088
|
+
trustMembersDescription,
|
|
4089
|
+
trustPartnershipOrAssociation,
|
|
4090
|
+
trustType,
|
|
4091
|
+
trustee,
|
|
4092
|
+
trusteeAsTrusteeForTrust,
|
|
4093
|
+
trusteeAsTrusteeForTrustDoingBusinessAs,
|
|
4094
|
+
trusteeDetailsIncl,
|
|
4095
|
+
trusteeGuideDescription,
|
|
4096
|
+
trusteePersonalDetails,
|
|
4097
|
+
tryAgainOrManualAccountDetails,
|
|
4098
|
+
typeOfCompany,
|
|
4099
|
+
typeOfIdentity,
|
|
4100
|
+
typeOfIdentitySubtitle,
|
|
4101
|
+
typeOfTrustAgreement,
|
|
4102
|
+
uboThroughControlGuideDescription,
|
|
4103
|
+
uboThroughOwnershipGuideDescription,
|
|
4104
|
+
uen,
|
|
4105
|
+
ultimateBeneficialOwner,
|
|
4106
|
+
ultimateParentCompany,
|
|
4107
|
+
ultimateParentCompanyDetails,
|
|
4108
|
+
ultimateParentCompanyInformation,
|
|
4109
|
+
unableToVerifyTheIdNumber,
|
|
4110
|
+
undefinedBeneficiary,
|
|
4111
|
+
undefinedBeneficiaryDescription,
|
|
4112
|
+
undefinedBeneficiaryGuideDescription,
|
|
4113
|
+
undoWithTimer,
|
|
4114
|
+
uniqueIdentificationCode,
|
|
4115
|
+
unlistedPublicUnitTrust,
|
|
4116
|
+
unsuccessful,
|
|
4117
|
+
unsupportedFiletype,
|
|
4118
|
+
updateTheInformation,
|
|
4119
|
+
uploadABankStatement,
|
|
4120
|
+
uploadDocument,
|
|
4121
|
+
uploadDocumentAndDocument,
|
|
4122
|
+
uploadDocumentForNric,
|
|
4123
|
+
uploadDocumentForSsn,
|
|
4124
|
+
uploadOneOfTheFollowing,
|
|
4125
|
+
uploadOneOfTheseDocuments,
|
|
4126
|
+
uploadScanOriginalIDDocument,
|
|
4127
|
+
uploadTaxationDocument,
|
|
4128
|
+
uploadTheFollowingDocuments,
|
|
4129
|
+
uploadTheRequestedDocuments,
|
|
4130
|
+
usePhoneToScanId,
|
|
4131
|
+
utilityBill,
|
|
4132
|
+
validation8Or11Characters,
|
|
4133
|
+
validationCharacters,
|
|
4134
|
+
validationDigits,
|
|
4135
|
+
validationDigitsBetween,
|
|
4136
|
+
validationPleaseEnterAValidBusinessRegistrationNumberWithFormat,
|
|
4137
|
+
validationPleaseEnterAValidEINWithFormat,
|
|
4138
|
+
validationPleaseEnterAValidIRDNumber,
|
|
4139
|
+
validationPleaseEnterAValidIban,
|
|
4140
|
+
validationPleaseEnterAValidIdNumberWithFormat,
|
|
4141
|
+
validationPleaseEnterAValidMarketIdentifier,
|
|
4142
|
+
validationPleaseEnterAValidRegistrationNumber,
|
|
4143
|
+
validationPleaseEnterAValidRegistrationNumberWithFormat,
|
|
4144
|
+
validationPleaseEnterAValidStockISIN,
|
|
4145
|
+
validationPleaseEnterAValidTaxIdNumber,
|
|
4146
|
+
validationPleaseEnterAValidTaxIdNumberWithFormat,
|
|
4147
|
+
validationPleaseEnterAValidUen,
|
|
4148
|
+
validationPleaseEnterAValidVatNumber,
|
|
4149
|
+
validationPleaseEnterAValidVatNumberWithFormat,
|
|
4150
|
+
vatAbsenceReason,
|
|
4151
|
+
vatNumber,
|
|
4152
|
+
vatNumberExempted,
|
|
4153
|
+
vatNummerMomsregistreringsnummerOrMomsnummer,
|
|
4154
|
+
vatRegistrationNumber,
|
|
4155
|
+
verificationErrorMessage,
|
|
4156
|
+
verificationMethod,
|
|
4157
|
+
verified,
|
|
4158
|
+
verifiedInformation,
|
|
4159
|
+
verify,
|
|
4160
|
+
verifyBankAccountAgain,
|
|
4161
|
+
verifyCompanyInfoIsUpToDate,
|
|
4162
|
+
verifyDecisionMakerDetails,
|
|
4163
|
+
verifyIndividualIdentity,
|
|
4164
|
+
verifyPrefilledInfoIsCorrect,
|
|
4165
|
+
verifyViaMobileBankingAppOrWebsite,
|
|
4166
|
+
verifyWith,
|
|
4167
|
+
weAccept,
|
|
4168
|
+
weDoNotYetSupportInstantVerificationForBankAccountsIn_,
|
|
4169
|
+
weFoundTheFollowingIssues,
|
|
4170
|
+
whatBestDescribesYourBusinessSetup,
|
|
4171
|
+
whatIsTheDifferenceBetweenTheseRoles,
|
|
4172
|
+
whatTypeOfCompanyDoYouHave,
|
|
4173
|
+
whatTypeOfTrusteeAreYou,
|
|
4174
|
+
whatTypeOfYourMembersEntity,
|
|
4175
|
+
whereCanIFindTheseNumbersOnMyDriversLicense,
|
|
4176
|
+
whereToFindNumbersOnDriversLicense,
|
|
4177
|
+
whereToFindNumbersOnDriversLicense__NZ,
|
|
4178
|
+
whichLegalArrangementDoesYourBusinessHave,
|
|
4179
|
+
whichOfTheseApplyToTheSettlor,
|
|
4180
|
+
whichTypeOfIdNumberDoYouHave,
|
|
4181
|
+
whichTypeOfRegistrationNumberDoYouHave,
|
|
4182
|
+
whichTypeOfTaxIdNumberDoYouHave,
|
|
4183
|
+
whyDoINeedToFillInThisInformation,
|
|
4184
|
+
wouldYouLikeToSignUpAsCompanyInstead,
|
|
4185
|
+
wouldYouLikeToSignUpAsIndividualInstead,
|
|
4186
|
+
xCharactersLeft,
|
|
4187
|
+
xMinutes,
|
|
4188
|
+
xMinutesAndYSeconds,
|
|
4189
|
+
xSeconds,
|
|
4190
|
+
yes,
|
|
4191
|
+
yesBankruptcyInsolvency,
|
|
4192
|
+
yesChange,
|
|
4193
|
+
yesJudicialAdministration,
|
|
4194
|
+
yesOtherLegalMeasures,
|
|
4195
|
+
youAlsoHaveToUploadSomeSupportingDocuments,
|
|
4196
|
+
youAreIndividualOrCompanyAndUseBankAccountInNameOfPartnershipOrAssociation,
|
|
4197
|
+
youAreIndividualOrCompanyAndUseBankAccountInNameOfTrustPartnershipOrAssociation,
|
|
4198
|
+
youAreNotSoleProprietorAndUseBankAccount,
|
|
4199
|
+
youAreRegisteredSoleProprietorAndUseBankAccount,
|
|
4200
|
+
youAreTrusteeManagingTheTrustForBeneficiaries,
|
|
4201
|
+
youCanOnlyUseABankAccountInTheCountryRegionWhereYouLive,
|
|
4202
|
+
youCanOnlyUseABankAccountInTheCountryRegionWhereYourCompanyIsRegistered,
|
|
4203
|
+
youHaveSuccessfullyProvidedTheIdDocument,
|
|
4204
|
+
youHaveUnsavedChanges,
|
|
4205
|
+
youMustXYearsOldToContinue,
|
|
4206
|
+
youSuccessfullyVerifiedAccount,
|
|
4207
|
+
yourAssociationIsRegisteredItWasSetUpForNonCommercialPurpose,
|
|
4208
|
+
yourBankWillConfirmYourAccountDetails,
|
|
4209
|
+
yourBusinessDetails,
|
|
4210
|
+
yourBusinessIsRegisteredAsASeparateLegalEntityFromItsOwners,
|
|
4211
|
+
yourBusinessSetup,
|
|
4212
|
+
yourIbanShouldBeginWith_,
|
|
4213
|
+
zentralesVereinsregisterId,
|
|
4214
|
+
zipCode
|
|
4215
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2772
4216
|
const FALLBACK_LOCALE = "en-US";
|
|
2773
4217
|
const defaultTranslation = Object.entries(defaultTrans).reduce((acc, [translationKey, translationValue]) => translationKey !== "smartling" ? {
|
|
2774
4218
|
...acc,
|
|
@@ -2885,6 +4329,7 @@ class Language {
|
|
|
2885
4329
|
}
|
|
2886
4330
|
}
|
|
2887
4331
|
const entriesOf = (object) => Object.entries(object);
|
|
4332
|
+
const valuesOf = (object) => Object.values(object);
|
|
2888
4333
|
const keysOf = (object) => Object.keys(object);
|
|
2889
4334
|
const keyIsInObject = (key, obj) => key in obj;
|
|
2890
4335
|
const pick = (...propertiesToKeep) => ({
|
|
@@ -3234,7 +4679,7 @@ const icons = {
|
|
|
3234
4679
|
warning: lazy(() => import("./warning-99uFf1WU.js")),
|
|
3235
4680
|
wrong: lazy(() => import("./wrong-1wvh7nZe.js"))
|
|
3236
4681
|
};
|
|
3237
|
-
const logger$
|
|
4682
|
+
const logger$D = createLogger("Icon");
|
|
3238
4683
|
const Icon = ({
|
|
3239
4684
|
className,
|
|
3240
4685
|
name,
|
|
@@ -3242,7 +4687,7 @@ const Icon = ({
|
|
|
3242
4687
|
}) => {
|
|
3243
4688
|
const LazyLoadedIcon = icons[name];
|
|
3244
4689
|
if (!LazyLoadedIcon) {
|
|
3245
|
-
logger$
|
|
4690
|
+
logger$D.error(`No such icon: "${name}"`);
|
|
3246
4691
|
return null;
|
|
3247
4692
|
}
|
|
3248
4693
|
return jsx("span", {
|
|
@@ -3277,6 +4722,7 @@ const Button = ({
|
|
|
3277
4722
|
role: role2,
|
|
3278
4723
|
small,
|
|
3279
4724
|
block,
|
|
4725
|
+
shaded,
|
|
3280
4726
|
label = "",
|
|
3281
4727
|
icon,
|
|
3282
4728
|
title,
|
|
@@ -3325,6 +4771,8 @@ const Button = ({
|
|
|
3325
4771
|
"adyen-kyc-button--tertiary": tertiary && !secondary,
|
|
3326
4772
|
"adyen-kyc-button--block": block,
|
|
3327
4773
|
"adyen-kyc-button--small": small && label,
|
|
4774
|
+
"adyen-kyc-button--shaded": shaded && icon && tertiary,
|
|
4775
|
+
// disallow shaded effect if not just tertiary icon
|
|
3328
4776
|
"adyen-kyc-button--icon": icon && label && !small
|
|
3329
4777
|
});
|
|
3330
4778
|
return jsx("button", {
|
|
@@ -3439,7 +4887,7 @@ function useFormRouterContext() {
|
|
|
3439
4887
|
}
|
|
3440
4888
|
return context;
|
|
3441
4889
|
}
|
|
3442
|
-
const logger$
|
|
4890
|
+
const logger$C = createLogger("Link");
|
|
3443
4891
|
const getIconClass = (icon, external) => {
|
|
3444
4892
|
if (external) {
|
|
3445
4893
|
return "adyen-kyc-link__icon adyen-kyc-icon-external-link";
|
|
@@ -3451,7 +4899,7 @@ const getIconClass = (icon, external) => {
|
|
|
3451
4899
|
};
|
|
3452
4900
|
const isValidLink = (href) => {
|
|
3453
4901
|
if (href === "#") {
|
|
3454
|
-
logger$
|
|
4902
|
+
logger$C.error('Links must include a valid href. If your href is "#", consider using a Button instead');
|
|
3455
4903
|
return false;
|
|
3456
4904
|
}
|
|
3457
4905
|
return true;
|
|
@@ -3576,6 +5024,7 @@ var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
|
3576
5024
|
DocumentType2["NATIONAL_IDENTITY_CARD"] = "national_identity_card";
|
|
3577
5025
|
DocumentType2["RESIDENCE_PERMIT"] = "residence_permit";
|
|
3578
5026
|
DocumentType2["PROOF_OF_ORGANIZATION_TAX_INFO"] = "proofOfOrganizationTaxInfo";
|
|
5027
|
+
DocumentType2["PROOF_OF_RELATIONSHIP"] = "proofOfRelationship";
|
|
3579
5028
|
return DocumentType2;
|
|
3580
5029
|
})(DocumentType || {});
|
|
3581
5030
|
var LegalEntityType = /* @__PURE__ */ ((LegalEntityType2) => {
|
|
@@ -3780,7 +5229,7 @@ const useSetting = (settingName) => {
|
|
|
3780
5229
|
} = context;
|
|
3781
5230
|
return getSetting(settingName);
|
|
3782
5231
|
};
|
|
3783
|
-
const logger$
|
|
5232
|
+
const logger$B = createLogger("useAllowedCountries");
|
|
3784
5233
|
const useAllowedCountries = () => {
|
|
3785
5234
|
const acceptedCountries = useSetting("acceptedCountries");
|
|
3786
5235
|
const {
|
|
@@ -3789,7 +5238,7 @@ const useAllowedCountries = () => {
|
|
|
3789
5238
|
const [allowedCountries, setAllowedCountries] = useState(acceptedCountries);
|
|
3790
5239
|
useEffect(() => {
|
|
3791
5240
|
if (acceptedCountries !== void 0) return;
|
|
3792
|
-
getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$
|
|
5241
|
+
getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$B.error);
|
|
3793
5242
|
}, [acceptedCountries]);
|
|
3794
5243
|
return allowedCountries;
|
|
3795
5244
|
};
|
|
@@ -4148,7 +5597,7 @@ function reducer({
|
|
|
4148
5597
|
}
|
|
4149
5598
|
};
|
|
4150
5599
|
}
|
|
4151
|
-
const logger$
|
|
5600
|
+
const logger$A = createLogger("useAsyncValidator");
|
|
4152
5601
|
const useAsyncValidator = (asyncRules) => {
|
|
4153
5602
|
const [asyncValidationResults, setAsyncValidationResults] = useState({});
|
|
4154
5603
|
const clearAsyncValidationResults = useCallback(() => setAsyncValidationResults({}), []);
|
|
@@ -4169,7 +5618,7 @@ const useAsyncValidator = (asyncRules) => {
|
|
|
4169
5618
|
hasError: !isValid
|
|
4170
5619
|
}])
|
|
4171
5620
|
});
|
|
4172
|
-
}).catch(logger$
|
|
5621
|
+
}).catch(logger$A.error);
|
|
4173
5622
|
}, [asyncRules, clearAsyncValidationResults]);
|
|
4174
5623
|
return {
|
|
4175
5624
|
asyncValidationResults,
|
|
@@ -4418,9 +5867,7 @@ const getDataName = (datasetKey, key) => {
|
|
|
4418
5867
|
};
|
|
4419
5868
|
const datasetIdentifier = {
|
|
4420
5869
|
country: "countries",
|
|
4421
|
-
state: (countryCode) => `states/${countryCode}
|
|
4422
|
-
phonePrefix: "phone-prefixes",
|
|
4423
|
-
translations: "translations"
|
|
5870
|
+
state: (countryCode) => `states/${countryCode}`
|
|
4424
5871
|
};
|
|
4425
5872
|
function datasetUtilities(locale) {
|
|
4426
5873
|
return {
|
|
@@ -4432,10 +5879,6 @@ function datasetUtilities(locale) {
|
|
|
4432
5879
|
const datasetKey = createDatasetKey(datasetIdentifier.state(countryCode), locale);
|
|
4433
5880
|
return getDataName(datasetKey, stateCode);
|
|
4434
5881
|
},
|
|
4435
|
-
getPhonePrefix: (countryCode) => {
|
|
4436
|
-
const datasetKey = createDatasetKey(datasetIdentifier.phonePrefix, locale);
|
|
4437
|
-
return getDataName(datasetKey, countryCode);
|
|
4438
|
-
},
|
|
4439
5882
|
setDataset: (identifier, dataset) => {
|
|
4440
5883
|
const datasetKey = createDatasetKey(identifier, locale);
|
|
4441
5884
|
datasets[datasetKey] = dataset;
|
|
@@ -5754,28 +7197,23 @@ const defaultFieldConfig$a = {
|
|
|
5754
7197
|
validators: validateNotEmptyOnBlur
|
|
5755
7198
|
})
|
|
5756
7199
|
};
|
|
5757
|
-
const Disclaimer = ({
|
|
5758
|
-
title,
|
|
5759
|
-
children
|
|
5760
|
-
}) => jsxs("div", {
|
|
5761
|
-
className: "adyen-kyc-disclaimer-container",
|
|
5762
|
-
children: [jsx("div", {
|
|
5763
|
-
className: "adyen-kyc-disclaimer__title",
|
|
5764
|
-
children: title
|
|
5765
|
-
}), jsx("div", {
|
|
5766
|
-
className: "adyen-kyc-disclaimer__content",
|
|
5767
|
-
children
|
|
5768
|
-
})]
|
|
5769
|
-
});
|
|
5770
7200
|
const PatriotActDisclosure = () => {
|
|
5771
7201
|
const {
|
|
5772
7202
|
i18n
|
|
5773
7203
|
} = useI18nContext();
|
|
5774
|
-
return jsxs(
|
|
7204
|
+
return jsxs(Alert, {
|
|
7205
|
+
type: "info",
|
|
5775
7206
|
title: i18n.get("patriotActDisclosureTitle"),
|
|
5776
|
-
|
|
7207
|
+
hasCloseButton: false,
|
|
7208
|
+
className: "adyen-kyc-u-margin-bottom-12",
|
|
7209
|
+
children: [jsx(Typography, {
|
|
7210
|
+
variant: "caption",
|
|
7211
|
+
color: "secondary",
|
|
5777
7212
|
children: i18n.get("patriotActDisclosureTextParagraph1")
|
|
5778
|
-
}), jsx(
|
|
7213
|
+
}), jsx(Typography, {
|
|
7214
|
+
variant: "caption",
|
|
7215
|
+
color: "secondary",
|
|
7216
|
+
className: "adyen-kyc-u-margin-top-12",
|
|
5779
7217
|
children: i18n.get("patriotActDisclosureTextParagraph2")
|
|
5780
7218
|
})]
|
|
5781
7219
|
});
|
|
@@ -6190,7 +7628,7 @@ const deriveInputState = (isValid, isFocused, isDisabled, isOptional, hasNullish
|
|
|
6190
7628
|
};
|
|
6191
7629
|
};
|
|
6192
7630
|
const MISMATCH_ANIMATION_NAME = "mismatchShake";
|
|
6193
|
-
const logger$
|
|
7631
|
+
const logger$z = createLogger("MaskedInputText");
|
|
6194
7632
|
const MaskedInputText = ({
|
|
6195
7633
|
value,
|
|
6196
7634
|
onInput,
|
|
@@ -6231,7 +7669,7 @@ const MaskedInputText = ({
|
|
|
6231
7669
|
};
|
|
6232
7670
|
useEffect(() => {
|
|
6233
7671
|
if (!mask) {
|
|
6234
|
-
logger$
|
|
7672
|
+
logger$z.warn("`mask` is undefined. No masking of input will take place.");
|
|
6235
7673
|
}
|
|
6236
7674
|
}, [mask]);
|
|
6237
7675
|
const getMaskResult = useCallback((pureValue) => {
|
|
@@ -6256,7 +7694,7 @@ const MaskedInputText = ({
|
|
|
6256
7694
|
return;
|
|
6257
7695
|
}
|
|
6258
7696
|
const fallback = displayValueToPure(maskResult.partialDisplayValue);
|
|
6259
|
-
logger$
|
|
7697
|
+
logger$z.warn(`Value received "${value}" does not match mask`, maskResult, `
|
|
6260
7698
|
Falling back to partially valid value "${fallback}"`);
|
|
6261
7699
|
onInput(fallback);
|
|
6262
7700
|
}
|
|
@@ -11378,6 +12816,7 @@ var TaskTypes = /* @__PURE__ */ ((TaskTypes2) => {
|
|
|
11378
12816
|
TaskTypes2["LEGAL_ENTITY_TYPE_SWITCHER"] = "LEGAL_ENTITY_TYPE_SWITCHER";
|
|
11379
12817
|
TaskTypes2["CAPABILITY_REJECTED"] = "CAPABILITY_REJECTED";
|
|
11380
12818
|
TaskTypes2["SINGPASS_SELECTION"] = "SINGPASS_SELECTION";
|
|
12819
|
+
TaskTypes2["LEGAL_REPRESENTATIVE_DETAILS"] = "LEGAL_REPRESENTATIVE_DETAILS";
|
|
11381
12820
|
return TaskTypes2;
|
|
11382
12821
|
})(TaskTypes || {});
|
|
11383
12822
|
var TaskStatus = /* @__PURE__ */ ((TaskStatus2) => {
|
|
@@ -11430,6 +12869,7 @@ const filterOutUnwantedAssociationsIfRootLE = (taskType, legalEntity, accountHol
|
|
|
11430
12869
|
}
|
|
11431
12870
|
return entityAssociations;
|
|
11432
12871
|
};
|
|
12872
|
+
const getLegalRepresentative = (legalEntityResponse) => getDirectEntityAssociations(legalEntityResponse, legalEntityResponse.id).find((la) => la.type === "legalRepresentative");
|
|
11433
12873
|
var VerificationStatus = /* @__PURE__ */ ((VerificationStatus2) => {
|
|
11434
12874
|
VerificationStatus2["VALID"] = "valid";
|
|
11435
12875
|
VerificationStatus2["PENDING"] = "pending";
|
|
@@ -11631,7 +13071,9 @@ const rules$3 = ({
|
|
|
11631
13071
|
}
|
|
11632
13072
|
},
|
|
11633
13073
|
isVerificationAllowedForCountry: () => ID_NUMBER_VERIFICATION_COUNTRIES.includes(country2),
|
|
11634
|
-
expiryDateRequired: () => EXPIRY_DATE_REQUIRED_FOR_COUNTRIES.includes(country2) ? REQUIRED : void 0
|
|
13074
|
+
expiryDateRequired: () => EXPIRY_DATE_REQUIRED_FOR_COUNTRIES.includes(country2) ? REQUIRED : void 0,
|
|
13075
|
+
legalRepresentativeRelationshipRequired: () => taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS ? REQUIRED : void 0,
|
|
13076
|
+
isProofOfRelationshipRequired: () => taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS ? REQUIRED : void 0
|
|
11635
13077
|
});
|
|
11636
13078
|
const accountHolderValidationRules = {
|
|
11637
13079
|
accountHolder: {
|
|
@@ -11641,7 +13083,7 @@ const accountHolderValidationRules = {
|
|
|
11641
13083
|
}
|
|
11642
13084
|
};
|
|
11643
13085
|
const accountHolderFields = ["accountHolder"];
|
|
11644
|
-
const logger$
|
|
13086
|
+
const logger$y = createLogger("AccountHolder");
|
|
11645
13087
|
function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntityTypeAllowed, isTrustFlowEnabled, isSoleProprietorshipAllowed, isChangeToMyNameAllowed) {
|
|
11646
13088
|
switch (legalEntityType) {
|
|
11647
13089
|
case LegalEntityType.ORGANIZATION: {
|
|
@@ -11651,7 +13093,7 @@ function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntity
|
|
|
11651
13093
|
return [...isChangeToMyNameAllowed ? ["myName"] : [], ...isChangeOfLegalEntityTypeAllowed ? ["theCompanyIWorkFor"] : [], ...isTrustFlowEnabled ? ["aTrust"] : [], ...isSoleProprietorshipAllowed ? ["mySoleProprietorName"] : []];
|
|
11652
13094
|
}
|
|
11653
13095
|
default:
|
|
11654
|
-
logger$
|
|
13096
|
+
logger$y.error(`No available account holder options for legal entity type '${legalEntityType}'`);
|
|
11655
13097
|
return [];
|
|
11656
13098
|
}
|
|
11657
13099
|
}
|
|
@@ -12205,7 +13647,7 @@ function Dropzone(props) {
|
|
|
12205
13647
|
})]
|
|
12206
13648
|
});
|
|
12207
13649
|
}
|
|
12208
|
-
const logger$
|
|
13650
|
+
const logger$x = createLogger("TextArea");
|
|
12209
13651
|
function TextArea(props) {
|
|
12210
13652
|
const {
|
|
12211
13653
|
classNameModifiers,
|
|
@@ -12226,7 +13668,7 @@ function TextArea(props) {
|
|
|
12226
13668
|
} = useI18nContext();
|
|
12227
13669
|
const [value, setValue] = useState("");
|
|
12228
13670
|
if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
|
|
12229
|
-
logger$
|
|
13671
|
+
logger$x.error("Error: Form fields that rely on InputBase may not have an onChange property");
|
|
12230
13672
|
}
|
|
12231
13673
|
const handleInput = (e) => {
|
|
12232
13674
|
var _a;
|
|
@@ -12672,7 +14114,7 @@ function useIsElementVisible(ref, fallback = true) {
|
|
|
12672
14114
|
}, [ref]);
|
|
12673
14115
|
return isOnScreen;
|
|
12674
14116
|
}
|
|
12675
|
-
const logger$
|
|
14117
|
+
const logger$w = createLogger("SearchAddress");
|
|
12676
14118
|
const SearchAddress = ({
|
|
12677
14119
|
data,
|
|
12678
14120
|
legalEntityId,
|
|
@@ -12716,7 +14158,7 @@ const SearchAddress = ({
|
|
|
12716
14158
|
const response = await handleFindAddress(selectedAddressId);
|
|
12717
14159
|
autocompleteAddressForm(response);
|
|
12718
14160
|
} catch (e) {
|
|
12719
|
-
logger$
|
|
14161
|
+
logger$w.error(e);
|
|
12720
14162
|
}
|
|
12721
14163
|
};
|
|
12722
14164
|
const onDrilldown = async (selectedAddress) => {
|
|
@@ -12728,7 +14170,7 @@ const SearchAddress = ({
|
|
|
12728
14170
|
}, legalEntityId);
|
|
12729
14171
|
setItems((response == null ? void 0 : response.results) || []);
|
|
12730
14172
|
} catch (e) {
|
|
12731
|
-
logger$
|
|
14173
|
+
logger$w.error(e);
|
|
12732
14174
|
}
|
|
12733
14175
|
};
|
|
12734
14176
|
const onChange = (e) => {
|
|
@@ -12783,7 +14225,7 @@ const SearchAddress = ({
|
|
|
12783
14225
|
setItems([]);
|
|
12784
14226
|
}
|
|
12785
14227
|
} catch (e) {
|
|
12786
|
-
logger$
|
|
14228
|
+
logger$w.error(e);
|
|
12787
14229
|
}
|
|
12788
14230
|
setLoading(false);
|
|
12789
14231
|
}
|
|
@@ -13418,7 +14860,7 @@ function Address(props) {
|
|
|
13418
14860
|
id: "ariaErrorField"
|
|
13419
14861
|
}), isHandlerPresent ? jsxs(Fragment, {
|
|
13420
14862
|
children: [jsxs("div", {
|
|
13421
|
-
className: "adyen-kyc-search-address
|
|
14863
|
+
className: "adyen-kyc-search-address",
|
|
13422
14864
|
children: [jsx(SearchAddress, {
|
|
13423
14865
|
handleChangeFor,
|
|
13424
14866
|
data: dataProp,
|
|
@@ -14677,7 +16119,8 @@ const remediationIndividualApiKeyMapping = {
|
|
|
14677
16119
|
"document.attachment.attachment.content": "idDocument.idDocument",
|
|
14678
16120
|
[DocumentType.PASSPORT]: "idDocument.idDocument",
|
|
14679
16121
|
[DocumentType.PROOF_OF_RESIDENCY]: "proofOfResidence.proofOfResidence",
|
|
14680
|
-
[DocumentType.PROOF_OF_NATIONAL_ID_NUMBER]: "proofOfNationalId.proofOfNationalId"
|
|
16122
|
+
[DocumentType.PROOF_OF_NATIONAL_ID_NUMBER]: "proofOfNationalId.proofOfNationalId",
|
|
16123
|
+
[DocumentType.PROOF_OF_RELATIONSHIP]: "proofOfRelationship.proofOfRelationship"
|
|
14681
16124
|
};
|
|
14682
16125
|
const remediationPayoutApiKeyMapping = {
|
|
14683
16126
|
bankAccount: "payoutAccountDetails",
|
|
@@ -15066,12 +16509,13 @@ const getPage = ({
|
|
|
15066
16509
|
};
|
|
15067
16510
|
const getPageName = (document2, pageType) => getPage(document2, pageType).pageName;
|
|
15068
16511
|
const mapIndividualDocumentToApiDocument = async (data, entityId) => {
|
|
15069
|
-
var _a, _b, _c, _d;
|
|
16512
|
+
var _a, _b, _c, _d, _e;
|
|
15070
16513
|
if (data) {
|
|
15071
16514
|
const {
|
|
15072
16515
|
idDocument: idDocument2,
|
|
15073
16516
|
proofOfNationalId: proofOfNationalId2,
|
|
15074
|
-
proofOfResidence: proofOfResidence2
|
|
16517
|
+
proofOfResidence: proofOfResidence2,
|
|
16518
|
+
proofOfRelationship: proofOfRelationship2
|
|
15075
16519
|
} = data;
|
|
15076
16520
|
const entityType2 = "legalEntity";
|
|
15077
16521
|
const documents2 = await Promise.all([createDocumentRequest({
|
|
@@ -15090,6 +16534,11 @@ const mapIndividualDocumentToApiDocument = async (data, entityId) => {
|
|
|
15090
16534
|
entityType: entityType2,
|
|
15091
16535
|
documentType: DocumentType.PROOF_OF_RESIDENCY,
|
|
15092
16536
|
page1: (_d = proofOfResidence2 == null ? void 0 : proofOfResidence2.proofOfResidence) == null ? void 0 : _d[0]
|
|
16537
|
+
}), createDocumentRequest({
|
|
16538
|
+
entityId,
|
|
16539
|
+
entityType: entityType2,
|
|
16540
|
+
documentType: DocumentType.PROOF_OF_RELATIONSHIP,
|
|
16541
|
+
page1: (_e = proofOfRelationship2 == null ? void 0 : proofOfRelationship2.proofOfRelationship) == null ? void 0 : _e[0]
|
|
15093
16542
|
})]);
|
|
15094
16543
|
return documents2.filter(Boolean);
|
|
15095
16544
|
}
|
|
@@ -15130,6 +16579,7 @@ const mapApiDocumentToIndividualDocuments = (entityId) => {
|
|
|
15130
16579
|
const idDocument2 = getIdDocument(entityId) || null;
|
|
15131
16580
|
const proofOfResidence2 = getDocument$1(entityId, DocumentType.PROOF_OF_RESIDENCY) || null;
|
|
15132
16581
|
const proofOfNationalId2 = getDocument$1(entityId, DocumentType.PROOF_OF_NATIONAL_ID_NUMBER) || null;
|
|
16582
|
+
const proofOfRelationship2 = getDocument$1(entityId, DocumentType.PROOF_OF_RELATIONSHIP) || null;
|
|
15133
16583
|
return {
|
|
15134
16584
|
idDocument: idDocument2 ? mapApiIdDocumentToSchema(idDocument2) : null,
|
|
15135
16585
|
proofOfResidence: proofOfResidence2 ? {
|
|
@@ -15137,6 +16587,9 @@ const mapApiDocumentToIndividualDocuments = (entityId) => {
|
|
|
15137
16587
|
} : null,
|
|
15138
16588
|
proofOfNationalId: proofOfNationalId2 ? {
|
|
15139
16589
|
proofOfNationalId: [mapExistingFile(getPageName(proofOfNationalId2))]
|
|
16590
|
+
} : null,
|
|
16591
|
+
proofOfRelationship: proofOfRelationship2 ? {
|
|
16592
|
+
proofOfRelationship: [mapExistingFile(getPageName(proofOfRelationship2))]
|
|
15140
16593
|
} : null
|
|
15141
16594
|
};
|
|
15142
16595
|
};
|
|
@@ -15594,7 +17047,7 @@ const initOnfido = async ({
|
|
|
15594
17047
|
language: getOnfidoLocaleConfig(i18n)
|
|
15595
17048
|
});
|
|
15596
17049
|
};
|
|
15597
|
-
const logger$
|
|
17050
|
+
const logger$v = createLogger("IdVerificationComponent");
|
|
15598
17051
|
function IdVerificationComponent({
|
|
15599
17052
|
userDetails,
|
|
15600
17053
|
legalEntityId,
|
|
@@ -15626,7 +17079,7 @@ function IdVerificationComponent({
|
|
|
15626
17079
|
onIdVerificationError,
|
|
15627
17080
|
onIdVerificationComplete
|
|
15628
17081
|
});
|
|
15629
|
-
})().catch(logger$
|
|
17082
|
+
})().catch(logger$v.error);
|
|
15630
17083
|
return () => {
|
|
15631
17084
|
if (onfidoSdk.current) onfidoSdk.current.tearDown();
|
|
15632
17085
|
};
|
|
@@ -15676,7 +17129,7 @@ function IdDocumentAlreadyUpload(props) {
|
|
|
15676
17129
|
})]
|
|
15677
17130
|
});
|
|
15678
17131
|
}
|
|
15679
|
-
const logger$
|
|
17132
|
+
const logger$u = createLogger("IdDocumentInstantVerificationComponent");
|
|
15680
17133
|
const idVerificationSchema = ["instantIdVerificationData", "idDocumentType"];
|
|
15681
17134
|
const documentTypeValidationRules = {
|
|
15682
17135
|
instantIdVerificationData: {
|
|
@@ -15758,7 +17211,7 @@ function IdDocumentInstantVerificationComponent(props) {
|
|
|
15758
17211
|
userDetails: props.userDetails,
|
|
15759
17212
|
legalEntityId: props.legalEntityId,
|
|
15760
17213
|
onIdVerificationComplete: handleIdVerificationComplete,
|
|
15761
|
-
onIdVerificationError: logger$
|
|
17214
|
+
onIdVerificationError: logger$u.error
|
|
15762
17215
|
}), jsxs("div", {
|
|
15763
17216
|
className: "adyen-kyc-document-upload__manual-upload",
|
|
15764
17217
|
children: [i18n.get("canNotCompleteInstantVerification"), " ", jsx("button", {
|
|
@@ -16034,6 +17487,7 @@ function IdVerificationMethodComponent(props) {
|
|
|
16034
17487
|
})]
|
|
16035
17488
|
});
|
|
16036
17489
|
}
|
|
17490
|
+
const getLegalEntityCountry = (legalEntityResponse) => legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? legalEntityResponse.individual.residentialAddress.country : legalEntityResponse.organization.registeredAddress.country;
|
|
16037
17491
|
const getAgeToday = (birthdate2) => {
|
|
16038
17492
|
const today = /* @__PURE__ */ new Date();
|
|
16039
17493
|
const todayMonth = today.getMonth();
|
|
@@ -16071,7 +17525,8 @@ const getLegalRepresentativeWarningMessage = ({
|
|
|
16071
17525
|
data: {
|
|
16072
17526
|
birthDate: birthDate2,
|
|
16073
17527
|
residencyCountry: residencyCountry2
|
|
16074
|
-
}
|
|
17528
|
+
},
|
|
17529
|
+
taskType
|
|
16075
17530
|
}) => {
|
|
16076
17531
|
if (!residencyCountry2) {
|
|
16077
17532
|
return;
|
|
@@ -16079,12 +17534,11 @@ const getLegalRepresentativeWarningMessage = ({
|
|
|
16079
17534
|
if (!birthDate2) {
|
|
16080
17535
|
return;
|
|
16081
17536
|
}
|
|
16082
|
-
const ageRange = getAgeRangeForLegalRepresentative(residencyCountry2);
|
|
17537
|
+
const ageRange = taskType !== TaskTypes.LEGAL_REPRESENTATIVE_DETAILS && getAgeRangeForLegalRepresentative(residencyCountry2);
|
|
16083
17538
|
if (!ageRange) {
|
|
16084
17539
|
return;
|
|
16085
17540
|
}
|
|
16086
|
-
|
|
16087
|
-
if (ageRange.min <= age && age < ageRange.max) {
|
|
17541
|
+
if (isAgeWithinRange(getAgeToday(birthDate2), ageRange)) {
|
|
16088
17542
|
return {
|
|
16089
17543
|
title: "aLegalRepresentativeIsRequired",
|
|
16090
17544
|
message: {
|
|
@@ -16096,6 +17550,19 @@ const getLegalRepresentativeWarningMessage = ({
|
|
|
16096
17550
|
};
|
|
16097
17551
|
}
|
|
16098
17552
|
};
|
|
17553
|
+
const isAgeWithinRange = (age, ageRange) => ageRange.min <= age && age < ageRange.max;
|
|
17554
|
+
const doesLegalEntityRequiresLegalRepresentative = (legalEntity) => {
|
|
17555
|
+
var _a, _b;
|
|
17556
|
+
const birthDate2 = (_b = (_a = legalEntity == null ? void 0 : legalEntity.individual) == null ? void 0 : _a.birthData) == null ? void 0 : _b.dateOfBirth;
|
|
17557
|
+
if (!birthDate2) {
|
|
17558
|
+
return false;
|
|
17559
|
+
}
|
|
17560
|
+
const ageRange = getAgeRangeForLegalRepresentative(getLegalEntityCountry(legalEntity));
|
|
17561
|
+
if (!ageRange) {
|
|
17562
|
+
return false;
|
|
17563
|
+
}
|
|
17564
|
+
return isAgeWithinRange(getAgeToday(birthDate2), ageRange);
|
|
17565
|
+
};
|
|
16099
17566
|
const COUNTRY_ID_NUMBER_MASKS = {
|
|
16100
17567
|
[CountryCodes.PuertoRico]: {
|
|
16101
17568
|
length: 4
|
|
@@ -16196,8 +17663,8 @@ const staticPhoneValidationRules = (phonePrefixes, defaultPrefix) => ({
|
|
|
16196
17663
|
phoneNumber: {
|
|
16197
17664
|
validate: (phoneNumber2) => {
|
|
16198
17665
|
if (!phoneNumber2) return false;
|
|
16199
|
-
if (!phonePrefixes
|
|
16200
|
-
return phonePrefixes
|
|
17666
|
+
if (!phonePrefixes) return phoneNumber2.startsWith("+");
|
|
17667
|
+
return valuesOf(phonePrefixes).some((name) => name && phoneNumber2.startsWith(name));
|
|
16201
17668
|
},
|
|
16202
17669
|
errorMessage: {
|
|
16203
17670
|
key: "pleaseEnterAPhoneNumberPrefixedWithCountryCode",
|
|
@@ -16231,13 +17698,23 @@ const phoneFormatters = {
|
|
|
16231
17698
|
};
|
|
16232
17699
|
const phoneFields = ["phoneNumber"];
|
|
16233
17700
|
const DEFAULT_PHONE_PREFIX = "+1";
|
|
17701
|
+
const logger$t = createLogger("PhoneInput");
|
|
17702
|
+
const usePhonePrefixes = () => {
|
|
17703
|
+
const [phonePrefixes, setPhonePrefixes] = useState();
|
|
17704
|
+
useEffect(() => {
|
|
17705
|
+
const loadPhonePrefixes = async () => {
|
|
17706
|
+
const loaded = (await import("./phonePrefixes-GXP6tTuV.js")).default;
|
|
17707
|
+
setPhonePrefixes(loaded);
|
|
17708
|
+
};
|
|
17709
|
+
loadPhonePrefixes().catch(logger$t.error);
|
|
17710
|
+
}, []);
|
|
17711
|
+
return phonePrefixes;
|
|
17712
|
+
};
|
|
16234
17713
|
function PhoneInputComponent(props) {
|
|
16235
|
-
var _a;
|
|
16236
17714
|
const {
|
|
16237
17715
|
data: dataProp,
|
|
16238
17716
|
dataStoreId,
|
|
16239
17717
|
country: country2,
|
|
16240
|
-
phonePrefixes,
|
|
16241
17718
|
requiredFields,
|
|
16242
17719
|
fieldValidationErrors
|
|
16243
17720
|
} = props;
|
|
@@ -16248,8 +17725,9 @@ function PhoneInputComponent(props) {
|
|
|
16248
17725
|
setState: null
|
|
16249
17726
|
});
|
|
16250
17727
|
const formUtils = formUtilities(props, i18n);
|
|
16251
|
-
const
|
|
16252
|
-
const
|
|
17728
|
+
const phonePrefixes = usePhonePrefixes();
|
|
17729
|
+
const defaultPrefix = (phonePrefixes == null ? void 0 : phonePrefixes[country2]) ?? DEFAULT_PHONE_PREFIX;
|
|
17730
|
+
const staticRules = useMemo(() => staticPhoneValidationRules(phonePrefixes, defaultPrefix), [defaultPrefix, phonePrefixes]);
|
|
16253
17731
|
const asyncRules = useAsyncPhoneValidationRules();
|
|
16254
17732
|
const {
|
|
16255
17733
|
handleChangeFor,
|
|
@@ -16270,8 +17748,8 @@ function PhoneInputComponent(props) {
|
|
|
16270
17748
|
fieldProblems: fieldValidationErrors
|
|
16271
17749
|
});
|
|
16272
17750
|
useEffect(() => {
|
|
16273
|
-
var
|
|
16274
|
-
(_b = (
|
|
17751
|
+
var _a, _b;
|
|
17752
|
+
(_b = (_a = stateRef.current) == null ? void 0 : _a.setState) == null ? void 0 : _b.call(_a, {
|
|
16275
17753
|
type: "addToState",
|
|
16276
17754
|
value: {
|
|
16277
17755
|
data,
|
|
@@ -16304,7 +17782,7 @@ function PhoneInputComponent(props) {
|
|
|
16304
17782
|
...childProps,
|
|
16305
17783
|
name: "phoneNumber",
|
|
16306
17784
|
value: data.phoneNumber,
|
|
16307
|
-
placeholder:
|
|
17785
|
+
placeholder: defaultPrefix,
|
|
16308
17786
|
readonly: formUtils.isReadOnly("phoneNumber"),
|
|
16309
17787
|
onInput: handleChangeFor("phoneNumber", "input"),
|
|
16310
17788
|
onBlur: handleChangeFor("phoneNumber", "blur"),
|
|
@@ -16318,7 +17796,7 @@ function PhoneInputComponent(props) {
|
|
|
16318
17796
|
PhoneInputComponent.defaultProps = {
|
|
16319
17797
|
phoneLabel: "telephoneNumber"
|
|
16320
17798
|
};
|
|
16321
|
-
const PhoneInput = memo(PhoneInputComponent, (prevProps, nextProps) => prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate
|
|
17799
|
+
const PhoneInput = memo(PhoneInputComponent, (prevProps, nextProps) => prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate);
|
|
16322
17800
|
const contactDetailsValidationRules = {
|
|
16323
17801
|
email: {
|
|
16324
17802
|
modes: ["blur"],
|
|
@@ -16368,9 +17846,6 @@ function ContactDetailsComponent(props) {
|
|
|
16368
17846
|
}
|
|
16369
17847
|
});
|
|
16370
17848
|
}, [data, valid, errors, isValid]);
|
|
16371
|
-
const {
|
|
16372
|
-
dataset: phonePrefixes
|
|
16373
|
-
} = useDataset(datasetIdentifier.phonePrefix);
|
|
16374
17849
|
const phoneInputProps = getFieldProps(props, phoneFields);
|
|
16375
17850
|
return jsxs("div", {
|
|
16376
17851
|
role: "form",
|
|
@@ -16404,8 +17879,7 @@ function ContactDetailsComponent(props) {
|
|
|
16404
17879
|
}), formUtils.isRequiredField("phoneNumber") && jsx(PhoneInput, {
|
|
16405
17880
|
...phoneInputProps,
|
|
16406
17881
|
dataStoreId,
|
|
16407
|
-
country: country2
|
|
16408
|
-
phonePrefixes
|
|
17882
|
+
country: country2
|
|
16409
17883
|
})]
|
|
16410
17884
|
});
|
|
16411
17885
|
}
|
|
@@ -17003,56 +18477,45 @@ function IdentityNumberComponent(props) {
|
|
|
17003
18477
|
const roleMetadata = {
|
|
17004
18478
|
[DecisionMakerType.CONTROLLING_PERSON]: {
|
|
17005
18479
|
name: "controllingPerson",
|
|
17006
|
-
description: "controllingPersonDescription"
|
|
17007
|
-
variant: "teal"
|
|
18480
|
+
description: "controllingPersonDescription"
|
|
17008
18481
|
},
|
|
17009
18482
|
[DecisionMakerType.OWNER]: {
|
|
17010
18483
|
name: "owner",
|
|
17011
|
-
description: "ownerDescription"
|
|
17012
|
-
variant: "red"
|
|
18484
|
+
description: "ownerDescription"
|
|
17013
18485
|
},
|
|
17014
18486
|
[DecisionMakerType.SIGNATORY]: {
|
|
17015
18487
|
name: "signatory",
|
|
17016
|
-
description: "signatoryDescription"
|
|
17017
|
-
variant: "green"
|
|
18488
|
+
description: "signatoryDescription"
|
|
17018
18489
|
},
|
|
17019
18490
|
[DecisionMakerType.DIRECTOR]: {
|
|
17020
18491
|
name: "director",
|
|
17021
|
-
description: "directorDescription"
|
|
17022
|
-
variant: "orange"
|
|
18492
|
+
description: "directorDescription"
|
|
17023
18493
|
},
|
|
17024
18494
|
[TrustMemberTypes.DEFINED_BENEFICIARY]: {
|
|
17025
18495
|
name: "definedBeneficiary",
|
|
17026
|
-
description: "definedBeneficiaryDescription"
|
|
17027
|
-
variant: "orange"
|
|
18496
|
+
description: "definedBeneficiaryDescription"
|
|
17028
18497
|
},
|
|
17029
18498
|
[TrustMemberTypes.UNDEFINED_BENEFICIARY]: {
|
|
17030
18499
|
name: "undefinedBeneficiary",
|
|
17031
|
-
description: "undefinedBeneficiaryDescription"
|
|
17032
|
-
variant: "orange"
|
|
18500
|
+
description: "undefinedBeneficiaryDescription"
|
|
17033
18501
|
},
|
|
17034
18502
|
[TrustMemberTypes.PROTECTOR]: {
|
|
17035
18503
|
name: "protector",
|
|
17036
|
-
description: "personAppointmentUnderTrustInstrument"
|
|
17037
|
-
variant: "orange"
|
|
18504
|
+
description: "personAppointmentUnderTrustInstrument"
|
|
17038
18505
|
},
|
|
17039
18506
|
[TrustMemberTypes.TRUSTEE]: {
|
|
17040
18507
|
name: "trustee",
|
|
17041
|
-
description: "legalOwnerOfProperty"
|
|
17042
|
-
variant: "green"
|
|
18508
|
+
description: "legalOwnerOfProperty"
|
|
17043
18509
|
},
|
|
17044
18510
|
[TrustMemberTypes.SETTLOR]: {
|
|
17045
18511
|
name: "settlor",
|
|
17046
|
-
description: "entityEstablishingTrust"
|
|
17047
|
-
variant: "orange"
|
|
18512
|
+
description: "entityEstablishingTrust"
|
|
17048
18513
|
},
|
|
17049
18514
|
[TrustMemberGuidanceLabel.BENEFICIARY]: {
|
|
17050
|
-
name: TrustMemberGuidanceLabel.BENEFICIARY
|
|
17051
|
-
variant: "orange"
|
|
18515
|
+
name: TrustMemberGuidanceLabel.BENEFICIARY
|
|
17052
18516
|
},
|
|
17053
18517
|
[TrustMemberGuidanceLabel.TRUSTEE]: {
|
|
17054
|
-
name: TrustMemberGuidanceLabel.TRUSTEE
|
|
17055
|
-
variant: "green"
|
|
18518
|
+
name: TrustMemberGuidanceLabel.TRUSTEE
|
|
17056
18519
|
}
|
|
17057
18520
|
};
|
|
17058
18521
|
const getRoleTagVariant = (role2) => {
|
|
@@ -18036,7 +19499,14 @@ function IdentityComponent(props) {
|
|
|
18036
19499
|
dataStoreId
|
|
18037
19500
|
});
|
|
18038
19501
|
}
|
|
18039
|
-
const personalDetailsFields = [...nameFields, "birthDate", ...idNumberFields, ...additionalIdentityInfoFields, "residencyCountry", "nationality", "jobTitle", ...decisionMakerRoleFields, ...contactDetailFields, ...accountHolderFields];
|
|
19502
|
+
const personalDetailsFields = [...nameFields, "birthDate", ...idNumberFields, ...additionalIdentityInfoFields, "residencyCountry", "nationality", "jobTitle", ...decisionMakerRoleFields, ...contactDetailFields, ...accountHolderFields, "relationship"];
|
|
19503
|
+
const relationshipOptions = [{
|
|
19504
|
+
id: "parent",
|
|
19505
|
+
name: "parent"
|
|
19506
|
+
}, {
|
|
19507
|
+
id: "guardian",
|
|
19508
|
+
name: "guardian"
|
|
19509
|
+
}];
|
|
18040
19510
|
function PersonalDetailsComponent(props) {
|
|
18041
19511
|
var _a;
|
|
18042
19512
|
const {
|
|
@@ -18065,9 +19535,10 @@ function PersonalDetailsComponent(props) {
|
|
|
18065
19535
|
const [idNumberType, setIdNumberType] = useState(defaultIdNumberType);
|
|
18066
19536
|
const isDecisionMakerTask = props.taskType === TaskTypes.DECISION_MAKER || props.taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER;
|
|
18067
19537
|
const isTopLevelEntity = props.taskType === TaskTypes.INDIVIDUAL;
|
|
18068
|
-
const
|
|
19538
|
+
const isLegalRepresentativeDetailsTask = props.taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
|
|
19539
|
+
const requiredFieldsByTask = (props.requiredFields || personalDetailsFields).filter((field) => !isNewEntryFlowEnabled && (field !== "role" || field === "role" && isDecisionMakerTask) || isNewEntryFlowEnabled && (field !== "role" && field !== "accountHolder" || field === "role" && isDecisionMakerTask) || field === "relationship" && isLegalRepresentativeDetailsTask);
|
|
18069
19540
|
const isAllowedEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
|
|
18070
|
-
const getDirectChildFields = () => requiredFieldsByTask.filter((field) => ["birthDate", "residencyCountry", "jobTitle", "nationality"].includes(field));
|
|
19541
|
+
const getDirectChildFields = () => requiredFieldsByTask.filter((field) => ["birthDate", "residencyCountry", "jobTitle", "nationality", "relationship"].includes(field));
|
|
18071
19542
|
const {
|
|
18072
19543
|
handleChangeFor,
|
|
18073
19544
|
data,
|
|
@@ -18178,7 +19649,8 @@ function PersonalDetailsComponent(props) {
|
|
|
18178
19649
|
};
|
|
18179
19650
|
}
|
|
18180
19651
|
const translatableWarningMessage = getLegalRepresentativeWarningMessage({
|
|
18181
|
-
data
|
|
19652
|
+
data,
|
|
19653
|
+
taskType: props.taskType
|
|
18182
19654
|
});
|
|
18183
19655
|
if (translatableWarningMessage) {
|
|
18184
19656
|
return {
|
|
@@ -18210,7 +19682,17 @@ function PersonalDetailsComponent(props) {
|
|
|
18210
19682
|
validationErrors: props == null ? void 0 : props.fieldValidationErrors,
|
|
18211
19683
|
formUtils,
|
|
18212
19684
|
id: "ariaErrorField"
|
|
18213
|
-
}), data.residencyCountry === "US" && isTopLevelEntity ? jsx(PatriotActDisclosure, {}) : void 0, jsx(
|
|
19685
|
+
}), data.residencyCountry === "US" && isTopLevelEntity ? jsx(PatriotActDisclosure, {}) : void 0, isLegalRepresentativeDetailsTask && jsx(Alert, {
|
|
19686
|
+
hasCloseButton: false,
|
|
19687
|
+
type: "info",
|
|
19688
|
+
title: i18n.get({
|
|
19689
|
+
key: "legalRepresentativeFor",
|
|
19690
|
+
values: {
|
|
19691
|
+
firstName: props.parentLegalEntity.individual.name.firstName,
|
|
19692
|
+
lastName: props.parentLegalEntity.individual.name.lastName
|
|
19693
|
+
}
|
|
19694
|
+
})
|
|
19695
|
+
}), jsx(ContextGuidance, {
|
|
18214
19696
|
page: "Personal details",
|
|
18215
19697
|
title: i18n.get("whyDoINeedToFillInThisInformation"),
|
|
18216
19698
|
content: i18n.get("reasonForFillingIndividualPersonalDetails"),
|
|
@@ -18261,6 +19743,34 @@ function PersonalDetailsComponent(props) {
|
|
|
18261
19743
|
allowedCountries: isTopLevelEntity ? allowedCountries : void 0,
|
|
18262
19744
|
classNameModifiers: ["country"],
|
|
18263
19745
|
handleChangeFor: () => handleChangeFor("residencyCountry", "input")
|
|
19746
|
+
}), isAgeVerificationEnabled && formUtils.isRequiredField("relationship") && jsx("div", {
|
|
19747
|
+
children: jsx(Field, {
|
|
19748
|
+
name: "relationship",
|
|
19749
|
+
classNameModifiers: ["relationship"],
|
|
19750
|
+
label: i18n.get({
|
|
19751
|
+
key: "relationshipTo",
|
|
19752
|
+
values: {
|
|
19753
|
+
firstName: props.parentLegalEntity.individual.name.firstName,
|
|
19754
|
+
lastName: props.parentLegalEntity.individual.name.lastName
|
|
19755
|
+
}
|
|
19756
|
+
}),
|
|
19757
|
+
errorMessage: formUtils.getErrorMessage("relationship", errors, fieldProblems),
|
|
19758
|
+
children: (childProps) => jsx(RadioGroup, {
|
|
19759
|
+
...childProps,
|
|
19760
|
+
name: "relationship",
|
|
19761
|
+
items: relationshipOptions,
|
|
19762
|
+
value: data.relationship,
|
|
19763
|
+
onChange: handleChangeFor("relationship", "input"),
|
|
19764
|
+
"aria-required": true,
|
|
19765
|
+
"aria-label": i18n.get({
|
|
19766
|
+
key: "relationshipTo",
|
|
19767
|
+
values: {
|
|
19768
|
+
firstName: props.parentLegalEntity.individual.name.firstName,
|
|
19769
|
+
lastName: props.parentLegalEntity.individual.name.lastName
|
|
19770
|
+
}
|
|
19771
|
+
})
|
|
19772
|
+
})
|
|
19773
|
+
})
|
|
18264
19774
|
}), isAgeVerificationEnabled && formUtils.isRequiredField("birthDate") && jsxs(Fragment, {
|
|
18265
19775
|
children: [jsx(Field, {
|
|
18266
19776
|
name: "birthDate",
|
|
@@ -18340,6 +19850,70 @@ function PersonalDetailsComponent(props) {
|
|
|
18340
19850
|
})]
|
|
18341
19851
|
});
|
|
18342
19852
|
}
|
|
19853
|
+
const proofOfRelationshipDocumentOptions = [{
|
|
19854
|
+
id: "birthCertificate",
|
|
19855
|
+
name: "birthCertificate"
|
|
19856
|
+
}, {
|
|
19857
|
+
id: "guardianshipCertificate",
|
|
19858
|
+
name: "guardianshipCertificate"
|
|
19859
|
+
}, {
|
|
19860
|
+
id: "adoptionCertificate",
|
|
19861
|
+
name: "adoptionCertificate"
|
|
19862
|
+
}];
|
|
19863
|
+
function ProofOfRelationship({
|
|
19864
|
+
id: id2,
|
|
19865
|
+
...props
|
|
19866
|
+
}) {
|
|
19867
|
+
const {
|
|
19868
|
+
i18n
|
|
19869
|
+
} = useI18nContext();
|
|
19870
|
+
const [proofOfRelationshipDocumentType, setProofOfRelationshipDocumentType] = useState(proofOfRelationshipDocumentOptions[0].id);
|
|
19871
|
+
const proofOfResidencyGuidanceContent = jsxs(Fragment, {
|
|
19872
|
+
children: [jsxs("div", {
|
|
19873
|
+
className: "adyen-kyc-upload-field__subtitle",
|
|
19874
|
+
children: [" ", i18n.get("requirements")]
|
|
19875
|
+
}), jsxs(List, {
|
|
19876
|
+
className: "adyen-kyc-upload-field__requirements",
|
|
19877
|
+
children: [jsx(ListItem, {
|
|
19878
|
+
children: i18n.get("documentAddressedToName", {
|
|
19879
|
+
values: {
|
|
19880
|
+
name: props.name
|
|
19881
|
+
}
|
|
19882
|
+
})
|
|
19883
|
+
}), jsx(ListItem, {
|
|
19884
|
+
children: i18n.get("showAddressStateCountry")
|
|
19885
|
+
}), jsx(ListItem, {
|
|
19886
|
+
children: i18n.get("fullDocumentVisibleWithReadableText")
|
|
19887
|
+
}), jsx(ListItem, {
|
|
19888
|
+
children: i18n.get("documentCannotBeDamaged")
|
|
19889
|
+
})]
|
|
19890
|
+
})]
|
|
19891
|
+
});
|
|
19892
|
+
return jsx("div", {
|
|
19893
|
+
children: jsx(DocumentUpload, {
|
|
19894
|
+
...props,
|
|
19895
|
+
documentField: "proofOfRelationship",
|
|
19896
|
+
documentType: DocumentType.PROOF_OF_RELATIONSHIP,
|
|
19897
|
+
heading: i18n.get("proofOfRelationship"),
|
|
19898
|
+
guidanceHeader: jsx("div", {
|
|
19899
|
+
className: "adyen-kyc-document-upload__subtitle adyen-kyc-u-margin-bottom-16",
|
|
19900
|
+
children: i18n.get("proofOfResidenceDocumentTypeLabel", {
|
|
19901
|
+
values: {
|
|
19902
|
+
name: props.name
|
|
19903
|
+
}
|
|
19904
|
+
})
|
|
19905
|
+
}),
|
|
19906
|
+
documentTypeSelect: {
|
|
19907
|
+
selectedType: proofOfRelationshipDocumentType,
|
|
19908
|
+
setSelectedType: setProofOfRelationshipDocumentType,
|
|
19909
|
+
options: proofOfRelationshipDocumentOptions
|
|
19910
|
+
},
|
|
19911
|
+
guidanceContent: proofOfResidencyGuidanceContent,
|
|
19912
|
+
id: id2
|
|
19913
|
+
})
|
|
19914
|
+
});
|
|
19915
|
+
}
|
|
19916
|
+
const ProofOfRelationship$1 = memo(ProofOfRelationship, (prevProps, nextProps) => objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.name === nextProps.name);
|
|
18343
19917
|
var ProofOfResidenceDocumentTypes = /* @__PURE__ */ ((ProofOfResidenceDocumentTypes2) => {
|
|
18344
19918
|
ProofOfResidenceDocumentTypes2["BANK_STATEMENT"] = "bankStatement";
|
|
18345
19919
|
ProofOfResidenceDocumentTypes2["UTILITY_BILL"] = "utilityBill";
|
|
@@ -18471,6 +20045,11 @@ const individualForms = {
|
|
|
18471
20045
|
formId: "proofOfNationalId",
|
|
18472
20046
|
formName: "proofOfNationalId",
|
|
18473
20047
|
fields: ["proofOfNationalId"]
|
|
20048
|
+
},
|
|
20049
|
+
proofOfRelationship: {
|
|
20050
|
+
formId: "proofOfRelationship",
|
|
20051
|
+
formName: "proofOfRelationship",
|
|
20052
|
+
fields: ["proofOfRelationship"]
|
|
18474
20053
|
}
|
|
18475
20054
|
};
|
|
18476
20055
|
const personalDetailsFormID = individualForms.personalDetails.formId;
|
|
@@ -18479,7 +20058,8 @@ const idDocumentFormID = individualForms.idDocument.formId;
|
|
|
18479
20058
|
const idVerificationMethodFormID = individualForms.idVerificationMethod.formId;
|
|
18480
20059
|
const proofOfResidencyFormID = individualForms.proofOfResidence.formId;
|
|
18481
20060
|
const proofOfNationalIdFormID = individualForms.proofOfNationalId.formId;
|
|
18482
|
-
const
|
|
20061
|
+
const proofOfRelationshipFormID = individualForms.proofOfRelationship.formId;
|
|
20062
|
+
const individualDocumentForms = [idVerificationMethodFormID, idDocumentFormID, proofOfResidencyFormID, proofOfNationalIdFormID, proofOfRelationshipFormID];
|
|
18483
20063
|
function IndividualComponent(props) {
|
|
18484
20064
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
18485
20065
|
const {
|
|
@@ -18508,6 +20088,7 @@ function IndividualComponent(props) {
|
|
|
18508
20088
|
const idVerificationMethodFormProps = getFormProps(props, idVerificationMethodFormID);
|
|
18509
20089
|
const proofOfResidencyFormProps = getFormProps(props, proofOfResidencyFormID);
|
|
18510
20090
|
const proofOfNationalIdFormProps = getFormProps(props, proofOfNationalIdFormID);
|
|
20091
|
+
const proofOfRelationshipFormProps = getFormProps(props, proofOfRelationshipFormID);
|
|
18511
20092
|
this.verifyForm = (formId) => {
|
|
18512
20093
|
var _a2, _b2;
|
|
18513
20094
|
return ((_b2 = (_a2 = formsRef[formId]) == null ? void 0 : _a2.current) == null ? void 0 : _b2.verifyForm) ? formsRef[formId].current.verifyForm() : Promise.resolve(true);
|
|
@@ -18518,6 +20099,7 @@ function IndividualComponent(props) {
|
|
|
18518
20099
|
lastName: (_d = data == null ? void 0 : data.personalDetails) == null ? void 0 : _d.lastName,
|
|
18519
20100
|
residencyCountry: (_e = data == null ? void 0 : data.personalDetails) == null ? void 0 : _e.residencyCountry
|
|
18520
20101
|
};
|
|
20102
|
+
const isLegalRepresentativeDetailsTask = props.taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
|
|
18521
20103
|
const handleStateChange = ({
|
|
18522
20104
|
currentState,
|
|
18523
20105
|
prevState
|
|
@@ -18562,11 +20144,12 @@ function IndividualComponent(props) {
|
|
|
18562
20144
|
residencyCountry: props.country
|
|
18563
20145
|
},
|
|
18564
20146
|
ref: formsRef[personalDetailsFormID],
|
|
18565
|
-
heading: i18n.get("personalDetails"),
|
|
20147
|
+
heading: isLegalRepresentativeDetailsTask ? i18n.get("legalRepresentativeDetails") : i18n.get("personalDetails"),
|
|
18566
20148
|
taskType: props.taskType,
|
|
18567
20149
|
id: personalDetailsFormID,
|
|
18568
20150
|
allowedRoles: props == null ? void 0 : props.allowedRoles,
|
|
18569
|
-
capabilities: props.capabilities
|
|
20151
|
+
capabilities: props.capabilities,
|
|
20152
|
+
parentLegalEntity: props.parentLegalEntity
|
|
18570
20153
|
})
|
|
18571
20154
|
}), jsx("div", {
|
|
18572
20155
|
className: activeForm.formId !== addressFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
@@ -18629,6 +20212,13 @@ function IndividualComponent(props) {
|
|
|
18629
20212
|
heading: i18n.get("proofOfNationalId"),
|
|
18630
20213
|
id: proofOfNationalIdFormID
|
|
18631
20214
|
})
|
|
20215
|
+
}), jsx("div", {
|
|
20216
|
+
className: activeForm.formId !== proofOfRelationshipFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
20217
|
+
children: jsx(ProofOfRelationship$1, {
|
|
20218
|
+
...proofOfRelationshipFormProps,
|
|
20219
|
+
id: proofOfRelationshipFormID,
|
|
20220
|
+
name: fullName
|
|
20221
|
+
})
|
|
18632
20222
|
})]
|
|
18633
20223
|
});
|
|
18634
20224
|
};
|
|
@@ -19321,7 +20911,7 @@ class AdyenKycSdkError extends Error {
|
|
|
19321
20911
|
}
|
|
19322
20912
|
let sdkToken;
|
|
19323
20913
|
let fetchSdkToken;
|
|
19324
|
-
const logger$
|
|
20914
|
+
const logger$s = createLogger("Session");
|
|
19325
20915
|
const setSdkToken = (token) => {
|
|
19326
20916
|
sdkToken = token;
|
|
19327
20917
|
};
|
|
@@ -19344,7 +20934,7 @@ const refreshSession = async () => {
|
|
|
19344
20934
|
setSdkToken(token);
|
|
19345
20935
|
isSessionRefreshed = true;
|
|
19346
20936
|
} catch (e) {
|
|
19347
|
-
logger$
|
|
20937
|
+
logger$s.error("Failed to fetch sdk token", e);
|
|
19348
20938
|
}
|
|
19349
20939
|
return isSessionRefreshed;
|
|
19350
20940
|
};
|
|
@@ -19354,7 +20944,7 @@ const addAnimationStartListener = (element, listener) => {
|
|
|
19354
20944
|
const removeAnimationStartListener = (element, listener) => {
|
|
19355
20945
|
element.removeEventListener("animationstart", listener, false);
|
|
19356
20946
|
};
|
|
19357
|
-
const logger$
|
|
20947
|
+
const logger$r = createLogger("Fetch");
|
|
19358
20948
|
const getRequestObject = (options, data) => {
|
|
19359
20949
|
const {
|
|
19360
20950
|
headers = [],
|
|
@@ -19401,10 +20991,10 @@ const logFetchError = (message, level) => {
|
|
|
19401
20991
|
case "info":
|
|
19402
20992
|
case "warn":
|
|
19403
20993
|
case "error":
|
|
19404
|
-
logger$
|
|
20994
|
+
logger$r[level](message);
|
|
19405
20995
|
break;
|
|
19406
20996
|
default:
|
|
19407
|
-
logger$
|
|
20997
|
+
logger$r.error(message);
|
|
19408
20998
|
}
|
|
19409
20999
|
};
|
|
19410
21000
|
const handleFetchResponse = async (response, responseType) => {
|
|
@@ -19483,11 +21073,11 @@ const httpPost = async (options, data) => http({
|
|
|
19483
21073
|
method: "POST"
|
|
19484
21074
|
}, data);
|
|
19485
21075
|
const removeElementSiblings = (element) => {
|
|
19486
|
-
const
|
|
19487
|
-
if (!
|
|
19488
|
-
let child =
|
|
21076
|
+
const parent2 = element.parentNode;
|
|
21077
|
+
if (!parent2) return;
|
|
21078
|
+
let child = parent2.firstChild;
|
|
19489
21079
|
while (child) {
|
|
19490
|
-
if (child !== element)
|
|
21080
|
+
if (child !== element) parent2.removeChild(child);
|
|
19491
21081
|
child = child.nextSibling;
|
|
19492
21082
|
}
|
|
19493
21083
|
};
|
|
@@ -19495,7 +21085,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
|
|
|
19495
21085
|
const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
|
|
19496
21086
|
const MOUNT_TIMEOUT = 10 * 1e3;
|
|
19497
21087
|
const TINK_VENDOR = "Tink";
|
|
19498
|
-
const logger$
|
|
21088
|
+
const logger$q = createLogger("iframeWidget");
|
|
19499
21089
|
const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
|
|
19500
21090
|
const isTerminalMessageData = (data) => isObjectData(data) && Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
|
|
19501
21091
|
const parseMessageJson = (message) => {
|
|
@@ -19513,7 +21103,7 @@ const callbackErrorHandler = async (response) => {
|
|
|
19513
21103
|
try {
|
|
19514
21104
|
await response;
|
|
19515
21105
|
} catch (ex) {
|
|
19516
|
-
logger$
|
|
21106
|
+
logger$q.error(ex);
|
|
19517
21107
|
}
|
|
19518
21108
|
return {
|
|
19519
21109
|
error: "UNKNOWN_ERROR",
|
|
@@ -19616,7 +21206,7 @@ class IFrameWidget {
|
|
|
19616
21206
|
message = responseData.errorMessage;
|
|
19617
21207
|
}
|
|
19618
21208
|
} catch (ex) {
|
|
19619
|
-
logger$
|
|
21209
|
+
logger$q.error(ex);
|
|
19620
21210
|
}
|
|
19621
21211
|
throw new AdyenKycSdkError(reason, jsonData.error);
|
|
19622
21212
|
}
|
|
@@ -19803,7 +21393,7 @@ function BankVerificationWidget({
|
|
|
19803
21393
|
ref: widgetContainerRef
|
|
19804
21394
|
});
|
|
19805
21395
|
}
|
|
19806
|
-
const logger$
|
|
21396
|
+
const logger$p = createLogger("BankVerification");
|
|
19807
21397
|
const accountVerificationFields = ["verifiedAccountHolder", "verifiedBankCountry", "verifiedBankName", "verifiedCurrencyCode", "verifiedBankAccountNumber"];
|
|
19808
21398
|
const InstantVerificationErrorContext = createContext(null);
|
|
19809
21399
|
const useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
|
|
@@ -19835,7 +21425,7 @@ const usePreferredVendorForCountry = (country2, getBankVerificationVendors) => {
|
|
|
19835
21425
|
const vendor = vendors[0];
|
|
19836
21426
|
setPreferredVendor(vendor.name ? vendor : void 0);
|
|
19837
21427
|
};
|
|
19838
|
-
getPreferredVendor().catch(logger$
|
|
21428
|
+
getPreferredVendor().catch(logger$p.error);
|
|
19839
21429
|
}, [country2, getBankVerificationVendors]);
|
|
19840
21430
|
return preferredVendor;
|
|
19841
21431
|
};
|
|
@@ -22104,17 +23694,6 @@ const getCountrySpecificTrustTypeOptions = (country2) => {
|
|
|
22104
23694
|
return countrySpecificTrustTypeOption;
|
|
22105
23695
|
});
|
|
22106
23696
|
};
|
|
22107
|
-
const ContextHelper = ({
|
|
22108
|
-
content
|
|
22109
|
-
}) => jsx("div", {
|
|
22110
|
-
className: "adyen-kyc-context-helper",
|
|
22111
|
-
children: jsxs("div", {
|
|
22112
|
-
className: "adyen-kyc-context-helper__content",
|
|
22113
|
-
children: [jsx(Icon, {
|
|
22114
|
-
name: "info-circle"
|
|
22115
|
-
}), content]
|
|
22116
|
-
})
|
|
22117
|
-
});
|
|
22118
23697
|
const trustRegistrationDetailsValidations = {
|
|
22119
23698
|
trustType: {
|
|
22120
23699
|
modes: ["blur"],
|
|
@@ -22209,8 +23788,15 @@ function TrustRegistrationDetailsComponent(props) {
|
|
|
22209
23788
|
validationErrors: props == null ? void 0 : props.fieldValidationErrors,
|
|
22210
23789
|
formUtils,
|
|
22211
23790
|
id: "ariaErrorField"
|
|
22212
|
-
}), jsx(
|
|
22213
|
-
|
|
23791
|
+
}), jsx(Alert, {
|
|
23792
|
+
type: "info",
|
|
23793
|
+
hasCloseButton: false,
|
|
23794
|
+
title: jsx(Typography, {
|
|
23795
|
+
variant: "caption",
|
|
23796
|
+
color: "secondary",
|
|
23797
|
+
children: i18n.get("makeSureToHaveYourTrustDeed")
|
|
23798
|
+
}),
|
|
23799
|
+
className: "adyen-kyc-u-margin-bottom-16"
|
|
22214
23800
|
}), formUtils.isRequiredField("country") && jsx(CountryField, {
|
|
22215
23801
|
data: formUtils.getFieldData(data, COUNTRY_FIELD),
|
|
22216
23802
|
valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
|
|
@@ -23375,7 +24961,7 @@ const useUnifyLoadingStatus = (setParentLoadingStatus, ...childLoadingStatuses)
|
|
|
23375
24961
|
setParentLoadingStatus(loadingStatus);
|
|
23376
24962
|
}, [...childLoadingStatuses]);
|
|
23377
24963
|
};
|
|
23378
|
-
const logger$
|
|
24964
|
+
const logger$o = createLogger("useScenarioConfiguration");
|
|
23379
24965
|
const useScenarioConfiguration = ({
|
|
23380
24966
|
getConfigurationData,
|
|
23381
24967
|
getPayoutAccountFormatData,
|
|
@@ -23401,12 +24987,12 @@ const useScenarioConfiguration = ({
|
|
|
23401
24987
|
const response = await getConfigurationData();
|
|
23402
24988
|
setConfigurationResponse(response);
|
|
23403
24989
|
} catch (err) {
|
|
23404
|
-
logger$
|
|
24990
|
+
logger$o.warn("WARNING: Configuration request failed - error:", err);
|
|
23405
24991
|
} finally {
|
|
23406
24992
|
setConfigurationLoadingStatus("success");
|
|
23407
24993
|
}
|
|
23408
24994
|
};
|
|
23409
|
-
makeConfigCallAndSave().catch(logger$
|
|
24995
|
+
makeConfigCallAndSave().catch(logger$o.error);
|
|
23410
24996
|
}, [getConfigurationData, setConfigurationLoadingStatus]);
|
|
23411
24997
|
useEffect(() => {
|
|
23412
24998
|
if (!getPayoutAccountFormatData) return;
|
|
@@ -23423,12 +25009,12 @@ const useScenarioConfiguration = ({
|
|
|
23423
25009
|
const defaultAccountFormat = defaultPayoutAccountFormat[country2] ?? allowedBankAccountFormats[0];
|
|
23424
25010
|
setAccountFormat(existingBankAccountFormat ?? defaultAccountFormat);
|
|
23425
25011
|
} catch (err) {
|
|
23426
|
-
logger$
|
|
25012
|
+
logger$o.warn("WARNING: Payout format request failed - error:", err);
|
|
23427
25013
|
} finally {
|
|
23428
25014
|
setpayoutFormatLoadingStatus("success");
|
|
23429
25015
|
}
|
|
23430
25016
|
};
|
|
23431
|
-
makePayoutFormatCallAndSave().catch(logger$
|
|
25017
|
+
makePayoutFormatCallAndSave().catch(logger$o.error);
|
|
23432
25018
|
}, [country2, setAccountFormat, getPayoutAccountFormatData, setpayoutFormatLoadingStatus, existingBankAccountFormat]);
|
|
23433
25019
|
const {
|
|
23434
25020
|
fieldConfigurations,
|
|
@@ -23524,6 +25110,12 @@ const identityBase = {
|
|
|
23524
25110
|
},
|
|
23525
25111
|
accountHolder: {
|
|
23526
25112
|
rule: "accountHolderIfCustomer"
|
|
25113
|
+
},
|
|
25114
|
+
relationship: {
|
|
25115
|
+
rule: "legalRepresentativeRelationshipRequired"
|
|
25116
|
+
},
|
|
25117
|
+
proofOfRelationship: {
|
|
25118
|
+
rule: "isProofOfRelationshipRequired"
|
|
23527
25119
|
}
|
|
23528
25120
|
};
|
|
23529
25121
|
const identityNumber = {
|
|
@@ -24953,7 +26545,9 @@ function BasicInformationComponent({
|
|
|
24953
26545
|
country: country2,
|
|
24954
26546
|
companyType: companyType2 = CompanyTypesValue.PRIVATE_COMPANY,
|
|
24955
26547
|
isTopLevelEntity,
|
|
24956
|
-
isBusinessSelection
|
|
26548
|
+
isBusinessSelection,
|
|
26549
|
+
setVerifiedBusiness,
|
|
26550
|
+
searchName
|
|
24957
26551
|
}) {
|
|
24958
26552
|
var _a, _b, _c, _d, _e;
|
|
24959
26553
|
const {
|
|
@@ -25047,6 +26641,11 @@ function BasicInformationComponent({
|
|
|
25047
26641
|
fieldProblems: formFieldProblems
|
|
25048
26642
|
});
|
|
25049
26643
|
}, [formSchema, formData, formErrors, formFieldProblems, formValid, updateStateSlice]);
|
|
26644
|
+
useEffect(() => {
|
|
26645
|
+
if (formData.businessName !== searchName) {
|
|
26646
|
+
setVerifiedBusiness(void 0);
|
|
26647
|
+
}
|
|
26648
|
+
}, [formData.businessName, searchName, setVerifiedBusiness]);
|
|
25050
26649
|
return jsxs("form", {
|
|
25051
26650
|
className: isBusinessSelection ? "adyen-kyc-hide-form" : void 0,
|
|
25052
26651
|
children: [jsx(FormHeader, {
|
|
@@ -25634,7 +27233,7 @@ var CompanySearchEvents = /* @__PURE__ */ ((CompanySearchEvents2) => {
|
|
|
25634
27233
|
CompanySearchEvents2["SELECTION_ERROR"] = "CompanySearch_CompanySelectionError";
|
|
25635
27234
|
return CompanySearchEvents2;
|
|
25636
27235
|
})(CompanySearchEvents || {});
|
|
25637
|
-
const logger$
|
|
27236
|
+
const logger$n = createLogger("useCompanySearch");
|
|
25638
27237
|
const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
|
|
25639
27238
|
function useCompanySearch({
|
|
25640
27239
|
defaultData,
|
|
@@ -25758,7 +27357,7 @@ function useCompanySearch({
|
|
|
25758
27357
|
state: companyData.state ?? stateOrProvince2
|
|
25759
27358
|
});
|
|
25760
27359
|
} catch (e) {
|
|
25761
|
-
logger$
|
|
27360
|
+
logger$n.error(e);
|
|
25762
27361
|
setError(e);
|
|
25763
27362
|
setStatus("error");
|
|
25764
27363
|
} finally {
|
|
@@ -25791,7 +27390,7 @@ function useCompanySearch({
|
|
|
25791
27390
|
indexSearch: handleCompanyIndexSearch,
|
|
25792
27391
|
deepSearch: handleCompanyDeepSearch,
|
|
25793
27392
|
resultsLimit: limit
|
|
25794
|
-
})) == null ? void 0 : _a.catch((e) => logger$
|
|
27393
|
+
})) == null ? void 0 : _a.catch((e) => logger$n.error(e));
|
|
25795
27394
|
}
|
|
25796
27395
|
}, [legalCompanyName2, country2, stateOrProvince2, taxIdentificationNumber2, verifiedCompany, searchCompanies, handleCompanyIndexSearch, handleCompanyDeepSearch, limit, canVerify, baseTrackingPayload]);
|
|
25797
27396
|
useEffect(() => {
|
|
@@ -25993,7 +27592,7 @@ function BusinessInformationCard({
|
|
|
25993
27592
|
})
|
|
25994
27593
|
});
|
|
25995
27594
|
}
|
|
25996
|
-
const logger$
|
|
27595
|
+
const logger$m = createLogger("BusinessSelection");
|
|
25997
27596
|
function BusinessSelectionComponent({
|
|
25998
27597
|
country: country2,
|
|
25999
27598
|
state: state2,
|
|
@@ -26050,16 +27649,16 @@ function BusinessSelectionComponent({
|
|
|
26050
27649
|
const handleSelectBusiness = useCallback(async (result) => {
|
|
26051
27650
|
if ((currentBusinessSelection == null ? void 0 : currentBusinessSelection.id) === result.id && !failedToLoad) return;
|
|
26052
27651
|
try {
|
|
27652
|
+
setFetching(true);
|
|
26053
27653
|
setFailedToLoad(false);
|
|
26054
27654
|
setInvalidTin(false);
|
|
26055
27655
|
setVerifiedBusiness(void 0);
|
|
26056
27656
|
setSelectedBusinessId(result.id);
|
|
26057
|
-
setFetching(true);
|
|
26058
27657
|
const businessData = await fetchBusinessData(result);
|
|
26059
27658
|
setCurrentBusinessSelection(businessData);
|
|
26060
27659
|
} catch (e) {
|
|
26061
27660
|
setFailedToLoad(true);
|
|
26062
|
-
logger$
|
|
27661
|
+
logger$m.error(e);
|
|
26063
27662
|
} finally {
|
|
26064
27663
|
setFetching(false);
|
|
26065
27664
|
}
|
|
@@ -26068,23 +27667,24 @@ function BusinessSelectionComponent({
|
|
|
26068
27667
|
const business = currentBusinessSelection ?? data;
|
|
26069
27668
|
if (!tin || !(business == null ? void 0 : business.name) || !business || invalidTin) return;
|
|
26070
27669
|
try {
|
|
26071
|
-
setInvalidTin(false);
|
|
26072
27670
|
setIsLoading(true);
|
|
27671
|
+
setInvalidTin(false);
|
|
26073
27672
|
const res = await (handleVerifyTin == null ? void 0 : handleVerifyTin({
|
|
26074
27673
|
tin,
|
|
26075
27674
|
name: business == null ? void 0 : business.name
|
|
26076
27675
|
}));
|
|
26077
27676
|
if (res == null ? void 0 : res.matched) {
|
|
26078
27677
|
setVerifiedBusiness(business);
|
|
27678
|
+
handleNextClick();
|
|
26079
27679
|
} else {
|
|
26080
27680
|
setInvalidTin(true);
|
|
26081
27681
|
}
|
|
26082
27682
|
} catch (e) {
|
|
26083
|
-
logger$
|
|
27683
|
+
logger$m.error(e);
|
|
26084
27684
|
} finally {
|
|
26085
27685
|
setIsLoading(false);
|
|
26086
27686
|
}
|
|
26087
|
-
}, [currentBusinessSelection, handleVerifyTin, invalidTin, setIsLoading, setVerifiedBusiness, tin]);
|
|
27687
|
+
}, [currentBusinessSelection, handleNextClick, handleVerifyTin, invalidTin, setIsLoading, setVerifiedBusiness, tin]);
|
|
26088
27688
|
const searchForBusiness = useCallback(async () => {
|
|
26089
27689
|
var _a;
|
|
26090
27690
|
if (!(basicInformation2 == null ? void 0 : basicInformation2.businessName) || !country2 || !state2 || !handleCompanyDeepSearch) return;
|
|
@@ -26113,7 +27713,7 @@ function BusinessSelectionComponent({
|
|
|
26113
27713
|
}
|
|
26114
27714
|
}
|
|
26115
27715
|
} catch (e) {
|
|
26116
|
-
logger$
|
|
27716
|
+
logger$m.error(e);
|
|
26117
27717
|
} finally {
|
|
26118
27718
|
setIsLoading(false);
|
|
26119
27719
|
}
|
|
@@ -26121,9 +27721,9 @@ function BusinessSelectionComponent({
|
|
|
26121
27721
|
const handleManualDataEntry = useCallback(() => {
|
|
26122
27722
|
setShowCompanyStructure(true);
|
|
26123
27723
|
}, [setShowCompanyStructure]);
|
|
26124
|
-
return
|
|
27724
|
+
return jsxs("div", {
|
|
26125
27725
|
className: "adyen-kyc-business-selection",
|
|
26126
|
-
children: isLoading
|
|
27726
|
+
children: [isLoading && jsxs("div", {
|
|
26127
27727
|
className: "adyen-kyc-business-selection__loader",
|
|
26128
27728
|
children: [jsx(Loader, {
|
|
26129
27729
|
size: "large"
|
|
@@ -26131,7 +27731,7 @@ function BusinessSelectionComponent({
|
|
|
26131
27731
|
el: "span",
|
|
26132
27732
|
children: !currentBusinessSelection ? i18n.get("businessSelection__searching") : i18n.get("businessSelection__verifying")
|
|
26133
27733
|
})]
|
|
26134
|
-
})
|
|
27734
|
+
}), !isLoading && searchResults && jsxs(Fragment, {
|
|
26135
27735
|
children: [jsx(FormHeader, {
|
|
26136
27736
|
heading: i18n.get("businessSelection__heading")
|
|
26137
27737
|
}), jsxs(CardGroup, {
|
|
@@ -26158,7 +27758,7 @@ function BusinessSelectionComponent({
|
|
|
26158
27758
|
})]
|
|
26159
27759
|
})]
|
|
26160
27760
|
})]
|
|
26161
|
-
})
|
|
27761
|
+
})]
|
|
26162
27762
|
});
|
|
26163
27763
|
}
|
|
26164
27764
|
function BusinessDetailsComponent(props) {
|
|
@@ -26202,9 +27802,9 @@ function BusinessDetailsComponent(props) {
|
|
|
26202
27802
|
useEffect(() => {
|
|
26203
27803
|
if (searchName !== (basicInformation2 == null ? void 0 : basicInformation2.businessName)) {
|
|
26204
27804
|
setShowCompanyStructure(false);
|
|
26205
|
-
|
|
27805
|
+
setSearchResults(void 0);
|
|
26206
27806
|
}
|
|
26207
|
-
}, [basicInformation2 == null ? void 0 : basicInformation2.businessName, searchName, setIsBusinessSelection, setShowCompanyStructure]);
|
|
27807
|
+
}, [basicInformation2 == null ? void 0 : basicInformation2.businessName, searchName, setIsBusinessSelection, setSearchResults, setShowCompanyStructure]);
|
|
26208
27808
|
const canSkipBusinessSelection = useMemo(() => Boolean(!isLoading && searchResults && !searchResults.length && showCompanyStructure), [isLoading, searchResults, showCompanyStructure]);
|
|
26209
27809
|
const proceedToNextForm = useMemo(() => {
|
|
26210
27810
|
if ((basicInformation2 == null ? void 0 : basicInformation2.country) !== "US") return false;
|
|
@@ -26258,7 +27858,9 @@ function BusinessDetailsComponent(props) {
|
|
|
26258
27858
|
companyType: companyStructure2 == null ? void 0 : companyStructure2.entityType,
|
|
26259
27859
|
isTopLevelEntity,
|
|
26260
27860
|
baseTrackingPayload,
|
|
26261
|
-
isBusinessSelection
|
|
27861
|
+
isBusinessSelection,
|
|
27862
|
+
setVerifiedBusiness,
|
|
27863
|
+
searchName
|
|
26262
27864
|
})]
|
|
26263
27865
|
}), jsx("div", {
|
|
26264
27866
|
className: formWrapperClasses(forms2.companyStructure.formId),
|
|
@@ -26344,7 +27946,6 @@ function BusinessDetailsComponent(props) {
|
|
|
26344
27946
|
})]
|
|
26345
27947
|
});
|
|
26346
27948
|
}
|
|
26347
|
-
const getLegalEntityCountry = (legalEntityResponse) => legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? legalEntityResponse.individual.residentialAddress.country : legalEntityResponse.organization.registeredAddress.country;
|
|
26348
27949
|
const organizationTypesToSkipCompanyStructureForm = ["partnershipIncorporated", "associationIncorporated"];
|
|
26349
27950
|
const getBusinessType = (businessTypeItems, country2, accountHolder2, legalEntityType, companyTypesValue, capabilities = []) => {
|
|
26350
27951
|
const findBusinessType = (id2) => businessTypeItems.find((bt) => bt.id === id2);
|
|
@@ -26729,7 +28330,7 @@ const useExpiryThreshold = (expiry) => {
|
|
|
26729
28330
|
};
|
|
26730
28331
|
};
|
|
26731
28332
|
const ExpiryContext = createContext(false);
|
|
26732
|
-
const logger$
|
|
28333
|
+
const logger$l = createLogger("ExpiryProvider");
|
|
26733
28334
|
const ExpiryProvider = ({
|
|
26734
28335
|
expiry: initialExpiry,
|
|
26735
28336
|
eventEmitter,
|
|
@@ -26762,7 +28363,7 @@ const ExpiryProvider = ({
|
|
|
26762
28363
|
refreshExpiry().then((newExpiry) => {
|
|
26763
28364
|
setExpiry(newExpiry);
|
|
26764
28365
|
setModalDismissed(false);
|
|
26765
|
-
}).catch(logger$
|
|
28366
|
+
}).catch(logger$l.error);
|
|
26766
28367
|
}
|
|
26767
28368
|
}), children]
|
|
26768
28369
|
});
|
|
@@ -26782,7 +28383,7 @@ const ExpiryProvider = ({
|
|
|
26782
28383
|
});
|
|
26783
28384
|
};
|
|
26784
28385
|
const useHasExpired = () => useContext(ExpiryContext);
|
|
26785
|
-
const logger$
|
|
28386
|
+
const logger$k = createLogger("FormRouterContextProvider");
|
|
26786
28387
|
function FormRouterContextProvider({
|
|
26787
28388
|
children,
|
|
26788
28389
|
forms: forms2,
|
|
@@ -26802,7 +28403,7 @@ function FormRouterContextProvider({
|
|
|
26802
28403
|
if (formIndex > -1) {
|
|
26803
28404
|
setFormIndex(formIndex);
|
|
26804
28405
|
} else {
|
|
26805
|
-
logger$
|
|
28406
|
+
logger$k.error("No form was found to have that field so form navigation failed.");
|
|
26806
28407
|
}
|
|
26807
28408
|
}
|
|
26808
28409
|
}), [forms2, handleGetIdVerificationToken, setFormIndex]);
|
|
@@ -27574,31 +29175,35 @@ function BusinessDetailsDropinComponent({
|
|
|
27574
29175
|
switch (form) {
|
|
27575
29176
|
case "basicInformation": {
|
|
27576
29177
|
if (!canSubmitForm) {
|
|
27577
|
-
setVerifiedBusiness(void 0);
|
|
27578
|
-
setShowCompanyStructure(false);
|
|
27579
29178
|
setIsBusinessSelection(false);
|
|
29179
|
+
if (searchResults && searchResults.length) {
|
|
29180
|
+
setShowCompanyStructure(false);
|
|
29181
|
+
}
|
|
27580
29182
|
}
|
|
27581
|
-
|
|
29183
|
+
return gotoFormByFormIndex(index);
|
|
27582
29184
|
}
|
|
27583
29185
|
case "additionalInformation": {
|
|
27584
|
-
if (
|
|
27585
|
-
|
|
29186
|
+
if (verifiedBusiness) return gotoFormByFormIndex(index);
|
|
29187
|
+
if (!isBusinessSelection) return setIsBusinessSelection(true);
|
|
29188
|
+
if (!showCompanyStructure) return;
|
|
29189
|
+
return gotoFormByFormIndex(index);
|
|
27586
29190
|
}
|
|
29191
|
+
default:
|
|
29192
|
+
return gotoFormByFormIndex(index);
|
|
27587
29193
|
}
|
|
27588
|
-
|
|
27589
|
-
}, [canSubmitForm, currentCountry, forms2, gotoFormByFormIndex, isBusinessSelection]);
|
|
29194
|
+
}, [canSubmitForm, currentCountry, forms2, gotoFormByFormIndex, isBusinessSelection, searchResults, showCompanyStructure, verifiedBusiness]);
|
|
27590
29195
|
const nextClick = useCallback(() => {
|
|
27591
29196
|
if (!COUNTRIES_USING_COMPANY_SEARCH.includes(currentCountry)) return handleNextClick();
|
|
27592
29197
|
switch (activeForm.formId) {
|
|
27593
29198
|
case "basicInformation":
|
|
27594
|
-
if (showCompanyStructure) {
|
|
29199
|
+
if (showCompanyStructure || verifiedBusiness) {
|
|
27595
29200
|
return handleNextClick();
|
|
27596
29201
|
}
|
|
27597
29202
|
return isBusinessSelection ? handleNextClick() : setIsBusinessSelection(true);
|
|
27598
29203
|
default:
|
|
27599
29204
|
return handleNextClick();
|
|
27600
29205
|
}
|
|
27601
|
-
}, [activeForm.formId, currentCountry, handleNextClick, isBusinessSelection, showCompanyStructure]);
|
|
29206
|
+
}, [activeForm.formId, currentCountry, handleNextClick, isBusinessSelection, showCompanyStructure, verifiedBusiness]);
|
|
27602
29207
|
const backClick = useCallback(() => {
|
|
27603
29208
|
if (!COUNTRIES_USING_COMPANY_SEARCH.includes(country2)) return handleNextClick();
|
|
27604
29209
|
switch (activeForm.formId) {
|
|
@@ -27614,13 +29219,15 @@ function BusinessDetailsDropinComponent({
|
|
|
27614
29219
|
return handleBackClick == null ? void 0 : handleBackClick();
|
|
27615
29220
|
}
|
|
27616
29221
|
case "additionalInformation": {
|
|
27617
|
-
|
|
29222
|
+
if (verifiedBusiness) {
|
|
29223
|
+
setIsBusinessSelection(false);
|
|
29224
|
+
}
|
|
27618
29225
|
return handleBackClick == null ? void 0 : handleBackClick();
|
|
27619
29226
|
}
|
|
27620
29227
|
default:
|
|
27621
29228
|
return handleBackClick == null ? void 0 : handleBackClick();
|
|
27622
29229
|
}
|
|
27623
|
-
}, [activeForm.formId, country2, handleBackClick, handleNextClick, isLoading, searchResults, showBusinessSelection]);
|
|
29230
|
+
}, [activeForm.formId, country2, handleBackClick, handleNextClick, isLoading, searchResults, showBusinessSelection, verifiedBusiness]);
|
|
27624
29231
|
return jsx(FormWrapper, {
|
|
27625
29232
|
taskName: taskName ?? "businessDetails",
|
|
27626
29233
|
gotoFormByFormIndex: goToForm,
|
|
@@ -29138,7 +30745,7 @@ const formatDataForSummary = (data, forms2, labels2, i18n) => {
|
|
|
29138
30745
|
}
|
|
29139
30746
|
}, {});
|
|
29140
30747
|
};
|
|
29141
|
-
const logger$
|
|
30748
|
+
const logger$j = createLogger("useFormTaskSubmit");
|
|
29142
30749
|
function useCompanySearchTaskSubmit({
|
|
29143
30750
|
task,
|
|
29144
30751
|
forms: forms2,
|
|
@@ -29181,7 +30788,7 @@ function useCompanySearchTaskSubmit({
|
|
|
29181
30788
|
});
|
|
29182
30789
|
}
|
|
29183
30790
|
} catch (e) {
|
|
29184
|
-
logger$
|
|
30791
|
+
logger$j.error(e);
|
|
29185
30792
|
userEvents.addEvent(CompanySearchEvents.DOCUMENTS_ERROR, {
|
|
29186
30793
|
segmentation: {
|
|
29187
30794
|
...baseTrackingPayload,
|
|
@@ -29233,7 +30840,7 @@ function useCompanySearchTaskSubmit({
|
|
|
29233
30840
|
...trackingPayload
|
|
29234
30841
|
}
|
|
29235
30842
|
});
|
|
29236
|
-
logger$
|
|
30843
|
+
logger$j.log(submittedLegalEntity);
|
|
29237
30844
|
clearToasts();
|
|
29238
30845
|
onExternalSubmit == null ? void 0 : onExternalSubmit(data);
|
|
29239
30846
|
} catch (e) {
|
|
@@ -29257,7 +30864,7 @@ function useCompanySearchTaskSubmit({
|
|
|
29257
30864
|
type: "error"
|
|
29258
30865
|
});
|
|
29259
30866
|
}
|
|
29260
|
-
logger$
|
|
30867
|
+
logger$j.error(e);
|
|
29261
30868
|
userEvents.addEvent(CompanySearchEvents.TASK_ERROR, {
|
|
29262
30869
|
segmentation: {
|
|
29263
30870
|
...baseTrackingPayload,
|
|
@@ -29616,7 +31223,7 @@ function CompanySearchDropinComponent({
|
|
|
29616
31223
|
}
|
|
29617
31224
|
const IgnoreLocalStorageContext = createContext(false);
|
|
29618
31225
|
const useIgnoreLocalStorage = () => useContext(IgnoreLocalStorageContext);
|
|
29619
|
-
const logger$
|
|
31226
|
+
const logger$i = createLogger("useLocalStorage");
|
|
29620
31227
|
const useLocalStorage = (key, defaultValue, options) => {
|
|
29621
31228
|
const {
|
|
29622
31229
|
serializer,
|
|
@@ -29637,7 +31244,7 @@ const useLocalStorage = (key, defaultValue, options) => {
|
|
|
29637
31244
|
const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
|
|
29638
31245
|
return res;
|
|
29639
31246
|
} catch (err) {
|
|
29640
|
-
logger$
|
|
31247
|
+
logger$i.error(err);
|
|
29641
31248
|
return defaultValue;
|
|
29642
31249
|
}
|
|
29643
31250
|
});
|
|
@@ -29668,7 +31275,7 @@ const useLocalStorage = (key, defaultValue, options) => {
|
|
|
29668
31275
|
try {
|
|
29669
31276
|
updateLocalStorage();
|
|
29670
31277
|
} catch (err) {
|
|
29671
|
-
logger$
|
|
31278
|
+
logger$i.error(err);
|
|
29672
31279
|
}
|
|
29673
31280
|
}, [value, ignoreLocalStorage]);
|
|
29674
31281
|
useEffect(() => {
|
|
@@ -29681,7 +31288,7 @@ const useLocalStorage = (key, defaultValue, options) => {
|
|
|
29681
31288
|
setValue(event.newValue ? parser(event.newValue) : void 0);
|
|
29682
31289
|
}
|
|
29683
31290
|
} catch (err) {
|
|
29684
|
-
logger$
|
|
31291
|
+
logger$i.error(err);
|
|
29685
31292
|
}
|
|
29686
31293
|
};
|
|
29687
31294
|
if (ignoreLocalStorage) return;
|
|
@@ -29739,7 +31346,7 @@ const useIsEligibleForSingpass = ({
|
|
|
29739
31346
|
const isVanillaIndividual = legalEntityType === LegalEntityType.INDIVIDUAL && !hasSoleProprietor;
|
|
29740
31347
|
return isVanillaOrganization && isSingpassForCompaniesEnabled || isVanillaIndividual && isSingpassForIndividualsEnabled;
|
|
29741
31348
|
};
|
|
29742
|
-
const logger$
|
|
31349
|
+
const logger$h = createLogger("useAssociatedLegalArrangement");
|
|
29743
31350
|
function useAssociatedLegalArrangement({
|
|
29744
31351
|
rootLegalEntity,
|
|
29745
31352
|
getLegalEntity: getLegalEntity2
|
|
@@ -29750,7 +31357,7 @@ function useAssociatedLegalArrangement({
|
|
|
29750
31357
|
var _a;
|
|
29751
31358
|
const foundEntity = (_a = rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations) == null ? void 0 : _a.find((entity) => entity.type === LegalEntityType.SOLE_PROPRIETORSHIP || entity.type === LegalEntityType.TRUST);
|
|
29752
31359
|
if (foundEntity == null ? void 0 : foundEntity.legalEntityId) {
|
|
29753
|
-
getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$
|
|
31360
|
+
getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$h.error);
|
|
29754
31361
|
}
|
|
29755
31362
|
}, [getAssociatedEntity, rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations]);
|
|
29756
31363
|
useEffect(() => {
|
|
@@ -29764,6 +31371,41 @@ function useAssociatedLegalArrangement({
|
|
|
29764
31371
|
refreshAssociatedLegalArrangement
|
|
29765
31372
|
};
|
|
29766
31373
|
}
|
|
31374
|
+
const useAssociatedLegalRepresentative = ({
|
|
31375
|
+
legalEntity,
|
|
31376
|
+
handleGetLegalEntity
|
|
31377
|
+
}) => {
|
|
31378
|
+
const [associatedLegalRepresentative, setAssociatedLegalRepresentative] = useState(null);
|
|
31379
|
+
const {
|
|
31380
|
+
i18n
|
|
31381
|
+
} = useI18nContext();
|
|
31382
|
+
const {
|
|
31383
|
+
showToast
|
|
31384
|
+
} = useToastContext();
|
|
31385
|
+
useEffect(() => {
|
|
31386
|
+
if (doesLegalEntityRequiresLegalRepresentative(legalEntity)) {
|
|
31387
|
+
const legalRepresentativeAssociation = getLegalRepresentative(legalEntity);
|
|
31388
|
+
const legalEntityId = legalRepresentativeAssociation == null ? void 0 : legalRepresentativeAssociation.legalEntityId;
|
|
31389
|
+
if (legalEntityId && handleGetLegalEntity) {
|
|
31390
|
+
const fetchLegalEntity = async () => {
|
|
31391
|
+
try {
|
|
31392
|
+
const legalRepresenativeEntity = await handleGetLegalEntity(legalEntityId);
|
|
31393
|
+
setAssociatedLegalRepresentative(legalRepresenativeEntity);
|
|
31394
|
+
} catch (e) {
|
|
31395
|
+
showToast({
|
|
31396
|
+
label: i18n.get("failedFetchingLegalRepresentative"),
|
|
31397
|
+
type: "error"
|
|
31398
|
+
});
|
|
31399
|
+
}
|
|
31400
|
+
};
|
|
31401
|
+
fetchLegalEntity();
|
|
31402
|
+
} else {
|
|
31403
|
+
setAssociatedLegalRepresentative(null);
|
|
31404
|
+
}
|
|
31405
|
+
}
|
|
31406
|
+
}, [legalEntity]);
|
|
31407
|
+
return associatedLegalRepresentative;
|
|
31408
|
+
};
|
|
29767
31409
|
const getCanSeeEntitySelectionStorageKey = (legalEntityId) => `ENTITY_SELECTION_SEEN-${legalEntityId}`;
|
|
29768
31410
|
const useCanSeeEntitySelection = (legalEntityId) => {
|
|
29769
31411
|
const [canSeeEntitySelectionFromLocalStorage, setCanSeeEntitySelectionIntoLocalStorage] = useLocalStorage(getCanSeeEntitySelectionStorageKey(legalEntityId), true);
|
|
@@ -29772,7 +31414,7 @@ const useCanSeeEntitySelection = (legalEntityId) => {
|
|
|
29772
31414
|
setCanSeeEntitySelection: setCanSeeEntitySelectionIntoLocalStorage
|
|
29773
31415
|
};
|
|
29774
31416
|
};
|
|
29775
|
-
const logger$
|
|
31417
|
+
const logger$g = createLogger("useExemptSettlor");
|
|
29776
31418
|
const useExemptSettlor = ({
|
|
29777
31419
|
trust: trust2,
|
|
29778
31420
|
handleGetLegalEntity
|
|
@@ -29785,7 +31427,7 @@ const useExemptSettlor = ({
|
|
|
29785
31427
|
}, [handleGetLegalEntity]);
|
|
29786
31428
|
useEffect(() => {
|
|
29787
31429
|
if (!(trust2 == null ? void 0 : trust2.trust)) return;
|
|
29788
|
-
updateExemptSettlor(trust2).catch(logger$
|
|
31430
|
+
updateExemptSettlor(trust2).catch(logger$g.error);
|
|
29789
31431
|
}, [trust2, updateExemptSettlor]);
|
|
29790
31432
|
return exemptSettlor;
|
|
29791
31433
|
};
|
|
@@ -30479,24 +32121,14 @@ const BusinessTypeSelection = ({
|
|
|
30479
32121
|
disabled: currentStep === 1 && !data.legalArrangement,
|
|
30480
32122
|
onClick: handleNextClick,
|
|
30481
32123
|
type: "button"
|
|
30482
|
-
}), hasBackButton &&
|
|
32124
|
+
}), hasBackButton && isWeCannotSetUpAccountStep && jsx(Button, {
|
|
30483
32125
|
onClick: handleBackClick,
|
|
30484
|
-
|
|
30485
|
-
|
|
30486
|
-
|
|
30487
|
-
|
|
30488
|
-
|
|
30489
|
-
|
|
30490
|
-
"adyen-kyc-link--with-icon": !isWeCannotSetUpAccountStep
|
|
30491
|
-
}),
|
|
30492
|
-
children: [!isWeCannotSetUpAccountStep && jsx("span", {
|
|
30493
|
-
className: cx("adyen-kyc-icon-chevron-left", "adyen-kyc-u-margin-right-4", "adyen-kyc-u-color-grey-40")
|
|
30494
|
-
}), jsx("span", {
|
|
30495
|
-
className: cx("adyen-kyc-link__text", {
|
|
30496
|
-
"adyen-kyc-u-color-grey-40": !isWeCannotSetUpAccountStep
|
|
30497
|
-
}),
|
|
30498
|
-
children: i18n.get("back")
|
|
30499
|
-
})]
|
|
32126
|
+
label: i18n.get("back")
|
|
32127
|
+
}), hasBackButton && !isWeCannotSetUpAccountStep && jsx(Button, {
|
|
32128
|
+
onClick: handleBackClick,
|
|
32129
|
+
label: i18n.get("back"),
|
|
32130
|
+
tertiary: true,
|
|
32131
|
+
icon: "chevron-left"
|
|
30500
32132
|
})]
|
|
30501
32133
|
})]
|
|
30502
32134
|
})
|
|
@@ -31272,9 +32904,11 @@ const useIntroductionScreens = ({
|
|
|
31272
32904
|
}) : [], [legalEntityType, tasks]);
|
|
31273
32905
|
return canSeeIntroduction && (introductionScreens == null ? void 0 : introductionScreens.length) > 0 ? [IntroductionScreens.PROLOGUE, ...introductionScreens, IntroductionScreens.EPILOGUE] : void 0;
|
|
31274
32906
|
};
|
|
32907
|
+
const shouldHighlight = (active, current, fillBefore) => !fillBefore ? active === current : active >= current;
|
|
31275
32908
|
const StepProgressIndicator = ({
|
|
31276
32909
|
activeStepIndex,
|
|
31277
|
-
stepsCount
|
|
32910
|
+
stepsCount,
|
|
32911
|
+
fillBefore
|
|
31278
32912
|
}) => stepsCount > 0 ? jsx("div", {
|
|
31279
32913
|
"aria-label": `Step ${activeStepIndex + 1} of ${stepsCount}`,
|
|
31280
32914
|
className: "adyen-kyc-progress",
|
|
@@ -31282,11 +32916,11 @@ const StepProgressIndicator = ({
|
|
|
31282
32916
|
children: jsx("ol", {
|
|
31283
32917
|
className: "adyen-kyc-progress__bar",
|
|
31284
32918
|
children: range(stepsCount).map((stepNumber) => {
|
|
31285
|
-
const
|
|
32919
|
+
const isHighlighted = shouldHighlight(activeStepIndex, stepNumber, fillBefore);
|
|
31286
32920
|
return jsx("li", {
|
|
31287
|
-
"aria-current":
|
|
32921
|
+
"aria-current": isHighlighted ? "step" : void 0,
|
|
31288
32922
|
className: cx("adyen-kyc-progress__step", {
|
|
31289
|
-
"adyen-kyc-progress__step--active":
|
|
32923
|
+
"adyen-kyc-progress__step--active": isHighlighted
|
|
31290
32924
|
}),
|
|
31291
32925
|
children: jsx("span", {
|
|
31292
32926
|
className: "adyen-kyc-progress__step-label",
|
|
@@ -32048,6 +33682,8 @@ function TaskListComponent({
|
|
|
32048
33682
|
const hasSoleProprietorship = accountHolder2 === "mySoleProprietorName" || hasSolePropInLegalEntity(legalEntityResponse);
|
|
32049
33683
|
const hidePayoutAccountTaskExperiment = isExperimentEnabled(ExperimentNames.HidePayoutAccountTask);
|
|
32050
33684
|
const hidePciTaskExperiment = isExperimentEnabled(ExperimentNames.HidePciTask);
|
|
33685
|
+
const isLegalRepresentativeRequired = isExperimentEnabled("EnableAgeVerification") && doesLegalEntityRequiresLegalRepresentative(legalEntityResponse);
|
|
33686
|
+
const legalRepresentative2 = isLegalRepresentativeRequired && getLegalRepresentative(legalEntityResponse);
|
|
32051
33687
|
const transferInstruments = (legalEntityResponse == null ? void 0 : legalEntityResponse.transferInstruments) || [];
|
|
32052
33688
|
const canAddPayoutAccount = ((_a = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _a.legalName) || ((_b = legalEntityResponse == null ? void 0 : legalEntityResponse.individual) == null ? void 0 : _b.name);
|
|
32053
33689
|
const hasPayinTaskNotPayout = tasks.includes(TaskTypes.PAYIN) && !tasks.includes(TaskTypes.PAYOUT);
|
|
@@ -32058,7 +33694,7 @@ function TaskListComponent({
|
|
|
32058
33694
|
const isPciTaskDisabled = !canSignPci || !isSigningRequired && !(pciStatus == null ? void 0 : pciStatus.hasDocuments) || canDownloadPci;
|
|
32059
33695
|
const showPciTask = (canDownloadPci || isSigningRequired) && !hidePciTaskExperiment;
|
|
32060
33696
|
const showServiceAgreementTask = tasks.includes(TaskTypes.SERVICE_AGREEMENT) && ((serviceAgreementTypes == null ? void 0 : serviceAgreementTypes.length) > 0 || (serviceAgreementAcceptanceInfos == null ? void 0 : serviceAgreementAcceptanceInfos.length) > 0);
|
|
32061
|
-
const hasServiceAgreementSigners = legalEntityResponse.type === LegalEntityType.ORGANIZATION && getOwnSignatories(legalEntityResponse).length || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!(legalEntityResponse == null ? void 0 : legalEntityResponse.individual);
|
|
33697
|
+
const hasServiceAgreementSigners = legalEntityResponse.type === LegalEntityType.ORGANIZATION && getOwnSignatories(legalEntityResponse).length || Boolean(legalRepresentative2) || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!(legalEntityResponse == null ? void 0 : legalEntityResponse.individual);
|
|
32062
33698
|
const areServiceAgreementTasksDisabled = !hasServiceAgreementSigners;
|
|
32063
33699
|
const showContractTasks = hasContractTasks && (showPciTask || showServiceAgreementTask);
|
|
32064
33700
|
const showDecisionMakersWarning = Boolean(getOwnDecisionMakersLegalEntityIds(legalEntityResponse).length && remediationMessages.DECISION_MAKER);
|
|
@@ -32074,6 +33710,7 @@ function TaskListComponent({
|
|
|
32074
33710
|
const handleOnNavigateToPci = () => !canDownloadPci && onNavigateToTask(TaskTypes.PCI_DSS);
|
|
32075
33711
|
const handleOnNavigateToSoleProp = () => onNavigateToTask(TaskTypes.SOLE_PROPRIETOR_COMPANY);
|
|
32076
33712
|
const handleOnNavigateToServiceAgreement = () => onNavigateToTask(TaskTypes.SERVICE_AGREEMENT);
|
|
33713
|
+
const handleOnNavigateToTaskLegalRepresentative = () => onNavigateToTask(TaskTypes.LEGAL_REPRESENTATIVE_DETAILS);
|
|
32077
33714
|
const companyTaskDescriptionKey = isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
|
|
32078
33715
|
const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
|
|
32079
33716
|
const onEditBusinessSetupClick = () => {
|
|
@@ -32135,6 +33772,11 @@ function TaskListComponent({
|
|
|
32135
33772
|
title: hasTrust ? i18n.get("trusteePersonalDetails") : i18n.get("personalDetails"),
|
|
32136
33773
|
status: getTaskStatus(EntityType.LEGAL_ENTITY, capabilityProblems, legalEntityResponse, [legalEntityResponse.id]),
|
|
32137
33774
|
problems: (_e = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _e[legalEntityResponse.id]
|
|
33775
|
+
}), isLegalRepresentativeRequired && jsx(TaskListItem, {
|
|
33776
|
+
onNavigateToTask: handleOnNavigateToTaskLegalRepresentative,
|
|
33777
|
+
icon: "decision-maker",
|
|
33778
|
+
title: i18n.get("legalRepresentative"),
|
|
33779
|
+
status: legalRepresentative2 ? getTaskStatus(EntityType.LEGAL_ENTITY, capabilityProblems, legalEntityResponse, [legalRepresentative2.legalEntityId]) : TaskStatus.DETAILS_REQUIRED
|
|
32138
33780
|
}), hasSoleProprietorship && jsx(TaskListItem, {
|
|
32139
33781
|
onNavigateToTask: handleOnNavigateToSoleProp,
|
|
32140
33782
|
icon: "company",
|
|
@@ -32621,11 +34263,15 @@ const getCountrySpecificMinimumAgeValidationRule = (country2) => {
|
|
|
32621
34263
|
};
|
|
32622
34264
|
const validators = ({
|
|
32623
34265
|
country: country2,
|
|
32624
|
-
isExperimentEnabled = () => false
|
|
34266
|
+
isExperimentEnabled = () => false,
|
|
34267
|
+
taskType
|
|
32625
34268
|
}) => ({
|
|
32626
34269
|
birthDate: () => {
|
|
32627
34270
|
const baseValidators = [isNotEmptyBirthDateValidatorRule, isNotOutOfRangeBirthDateValidatorRule];
|
|
32628
34271
|
if (isExperimentEnabled("EnableAgeVerification")) {
|
|
34272
|
+
if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS) {
|
|
34273
|
+
return [...baseValidators, buildMinimumAgeValidationRule(18)];
|
|
34274
|
+
}
|
|
32629
34275
|
return [...baseValidators, getCountrySpecificMinimumAgeValidationRule(country2)];
|
|
32630
34276
|
}
|
|
32631
34277
|
return baseValidators;
|
|
@@ -32639,6 +34285,11 @@ const validators = ({
|
|
|
32639
34285
|
modes: ["blur"],
|
|
32640
34286
|
validate: (jobTitle2) => !!jobTitle2,
|
|
32641
34287
|
errorMessage: "fieldIsRequired"
|
|
34288
|
+
}),
|
|
34289
|
+
relationship: () => ({
|
|
34290
|
+
modes: ["blur"],
|
|
34291
|
+
validate: (relationship) => !!relationship,
|
|
34292
|
+
errorMessage: "fieldIsRequired"
|
|
32642
34293
|
})
|
|
32643
34294
|
});
|
|
32644
34295
|
const parseConfiguration$4 = ({
|
|
@@ -32740,7 +34391,8 @@ function IndividualDropinComponent({
|
|
|
32740
34391
|
}), [country2, data, taskType]);
|
|
32741
34392
|
const customValidators = useMemo(() => isExperimentEnabled("EnableAgeVerification") ? validators({
|
|
32742
34393
|
country: country2,
|
|
32743
|
-
isExperimentEnabled
|
|
34394
|
+
isExperimentEnabled,
|
|
34395
|
+
taskType
|
|
32744
34396
|
}) : {}, [country2]);
|
|
32745
34397
|
const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, individualForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], fieldsFromCustomRules, {}, customValidators), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions]);
|
|
32746
34398
|
const {
|
|
@@ -32762,10 +34414,14 @@ function IndividualDropinComponent({
|
|
|
32762
34414
|
);
|
|
32763
34415
|
return addValidityToForms(requiredForms, formValidity, problems);
|
|
32764
34416
|
}, [derivedProps, formValidity, problems, handleGetIdVerificationToken]);
|
|
32765
|
-
|
|
32766
|
-
|
|
32767
|
-
|
|
32768
|
-
|
|
34417
|
+
const isRoleTypeTask = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER;
|
|
34418
|
+
if (isRoleTypeTask && parentLegalEntity) {
|
|
34419
|
+
roleTypes = getAllowedDecisionMakerRoles(parentLegalEntity, taskType);
|
|
34420
|
+
}
|
|
34421
|
+
if (parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) {
|
|
34422
|
+
const associations = (_b = parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) == null ? void 0 : _b.filter((ea) => ea.legalEntityId === (legalEntityResponse == null ? void 0 : legalEntityResponse.id));
|
|
34423
|
+
if (associations && associations.length > 0) {
|
|
34424
|
+
if (isRoleTypeTask && parentLegalEntity) {
|
|
32769
34425
|
const jobTitle2 = (_c = associations.find((association2) => Boolean(association2.jobTitle))) == null ? void 0 : _c.jobTitle;
|
|
32770
34426
|
dataFromResponse = {
|
|
32771
34427
|
...dataFromResponse,
|
|
@@ -32778,8 +34434,19 @@ function IndividualDropinComponent({
|
|
|
32778
34434
|
}
|
|
32779
34435
|
};
|
|
32780
34436
|
}
|
|
34437
|
+
if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS) {
|
|
34438
|
+
const [{
|
|
34439
|
+
relationship
|
|
34440
|
+
}] = associations;
|
|
34441
|
+
dataFromResponse = {
|
|
34442
|
+
...dataFromResponse,
|
|
34443
|
+
personalDetails: {
|
|
34444
|
+
...dataFromResponse == null ? void 0 : dataFromResponse.personalDetails,
|
|
34445
|
+
relationship
|
|
34446
|
+
}
|
|
34447
|
+
};
|
|
34448
|
+
}
|
|
32781
34449
|
}
|
|
32782
|
-
roleTypes = getAllowedDecisionMakerRoles(parentLegalEntity, taskType);
|
|
32783
34450
|
}
|
|
32784
34451
|
useEffect(() => {
|
|
32785
34452
|
var _a2;
|
|
@@ -32875,7 +34542,7 @@ function IndividualDropinComponent({
|
|
|
32875
34542
|
parentLE,
|
|
32876
34543
|
dataSubmitted
|
|
32877
34544
|
}) => {
|
|
32878
|
-
var _a2, _b2, _c2;
|
|
34545
|
+
var _a2, _b2, _c2, _d2, _e, _f;
|
|
32879
34546
|
const newRoles = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER ? (_a2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _a2.role : taskType === TaskTypes.TRUST_MEMBER_INDIVIDUAL ? trustMember == null ? void 0 : trustMember.roles : null;
|
|
32880
34547
|
const existingEntityAssociations = getOwnEntityAssociations(parentLE);
|
|
32881
34548
|
if (newRoles && (hasRolesChanged(legalEntity, existingEntityAssociations, newRoles) || ((_b2 = dataFromResponse.personalDetails) == null ? void 0 : _b2.jobTitle) !== ((_c2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _c2.jobTitle))) {
|
|
@@ -32893,6 +34560,17 @@ function IndividualDropinComponent({
|
|
|
32893
34560
|
};
|
|
32894
34561
|
await handleUpdateLegalEntity(updatedParentLegalEntity, parentLE.id);
|
|
32895
34562
|
}
|
|
34563
|
+
if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS && (existingEntityAssociations.every((ea) => ea.legalEntityId !== legalEntity.id) || ((_d2 = dataFromResponse == null ? void 0 : dataFromResponse.personalDetails) == null ? void 0 : _d2.relationship) !== ((_e = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _e.relationship))) {
|
|
34564
|
+
const newEntityAssociation = {
|
|
34565
|
+
type: "legalRepresentative",
|
|
34566
|
+
legalEntityId: legalEntity.id,
|
|
34567
|
+
relationship: (_f = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _f.relationship
|
|
34568
|
+
};
|
|
34569
|
+
const updatedParentLegalEntity = {
|
|
34570
|
+
entityAssociations: [newEntityAssociation, ...existingEntityAssociations]
|
|
34571
|
+
};
|
|
34572
|
+
await handleUpdateLegalEntity(updatedParentLegalEntity, parentLE.id);
|
|
34573
|
+
}
|
|
32896
34574
|
};
|
|
32897
34575
|
const onSubmit = async () => {
|
|
32898
34576
|
var _a2, _b2, _c2;
|
|
@@ -33120,11 +34798,12 @@ function IndividualDropinComponent({
|
|
|
33120
34798
|
onTypeSwitch,
|
|
33121
34799
|
onCountryChange: setCountry,
|
|
33122
34800
|
shouldValidate,
|
|
33123
|
-
accountHolder: accountHolder2
|
|
34801
|
+
accountHolder: accountHolder2,
|
|
34802
|
+
parentLegalEntity
|
|
33124
34803
|
})
|
|
33125
34804
|
});
|
|
33126
34805
|
}
|
|
33127
|
-
const logger$
|
|
34806
|
+
const logger$f = createLogger("useBankConfigurationHandler");
|
|
33128
34807
|
const useBankConfigurationHandlers = ({
|
|
33129
34808
|
isEmbeddedDropin,
|
|
33130
34809
|
handleGetBankVerificationVendors,
|
|
@@ -33141,7 +34820,7 @@ const useBankConfigurationHandlers = ({
|
|
|
33141
34820
|
(async () => {
|
|
33142
34821
|
const bankVerificationVendorsResponse2 = callBankVerificationVendorsUpfront ? await handleGetBankVerificationVendors(bankAccountCountry) : [];
|
|
33143
34822
|
setBankVerificationVendorsResponse(bankVerificationVendorsResponse2);
|
|
33144
|
-
})().catch(logger$
|
|
34823
|
+
})().catch(logger$f.error).finally(() => {
|
|
33145
34824
|
setLoadingStatus("success");
|
|
33146
34825
|
});
|
|
33147
34826
|
}, [bankAccountCountry]);
|
|
@@ -34542,7 +36221,7 @@ const serviceAgreementValidationRules = {
|
|
|
34542
36221
|
errorMessage: "fieldIsRequired"
|
|
34543
36222
|
}
|
|
34544
36223
|
};
|
|
34545
|
-
const logger$
|
|
36224
|
+
const logger$e = createLogger("useServiceAgreement");
|
|
34546
36225
|
const FALLBACK_LANGUAGE_CODE = "en";
|
|
34547
36226
|
const useServiceAgreement = ({
|
|
34548
36227
|
handleGetServiceAgreement,
|
|
@@ -34575,7 +36254,7 @@ const useServiceAgreement = ({
|
|
|
34575
36254
|
contract
|
|
34576
36255
|
});
|
|
34577
36256
|
};
|
|
34578
|
-
requestAcceptedServiceAgreement().catch(logger$
|
|
36257
|
+
requestAcceptedServiceAgreement().catch(logger$e.error).finally(() => setLoading("success"));
|
|
34579
36258
|
}, [acceptanceId, handleViewAcceptedTermsOfServiceDocument]);
|
|
34580
36259
|
useEffect(() => {
|
|
34581
36260
|
const requestServiceAgreement = async () => {
|
|
@@ -34590,7 +36269,7 @@ const useServiceAgreement = ({
|
|
|
34590
36269
|
language: agreementLanguage
|
|
34591
36270
|
});
|
|
34592
36271
|
if (!document2) {
|
|
34593
|
-
logger$
|
|
36272
|
+
logger$e.log('"document" field was missing in response');
|
|
34594
36273
|
return;
|
|
34595
36274
|
}
|
|
34596
36275
|
const contract = JSON.parse(decodeURIComponent(escape(window.atob(document2))));
|
|
@@ -34608,7 +36287,7 @@ const useServiceAgreement = ({
|
|
|
34608
36287
|
throw err;
|
|
34609
36288
|
}
|
|
34610
36289
|
};
|
|
34611
|
-
requestServiceAgreement().catch(logger$
|
|
36290
|
+
requestServiceAgreement().catch(logger$e.error);
|
|
34612
36291
|
}, [handleGetServiceAgreement, handleServiceAgreementIsNotAvailableInThatLanguage, agreementLanguage, legalEntityId, serviceAgreementType]);
|
|
34613
36292
|
return {
|
|
34614
36293
|
loading: loading2,
|
|
@@ -34638,13 +36317,17 @@ function ServiceAgreementDropinComponent({
|
|
|
34638
36317
|
serviceAgreementAcceptanceInfos,
|
|
34639
36318
|
trackingConfig
|
|
34640
36319
|
}) {
|
|
34641
|
-
var _a, _b
|
|
36320
|
+
var _a, _b;
|
|
34642
36321
|
const {
|
|
34643
36322
|
i18n
|
|
34644
36323
|
} = useI18nContext();
|
|
34645
36324
|
const {
|
|
34646
36325
|
showToast
|
|
34647
36326
|
} = useToastContext();
|
|
36327
|
+
const {
|
|
36328
|
+
isExperimentEnabled
|
|
36329
|
+
} = useExperimentsContext();
|
|
36330
|
+
const isAgeVerificationEnabled = isExperimentEnabled("EnableAgeVerification");
|
|
34648
36331
|
const baseTrackingPayload = getBaseTrackingPayload({
|
|
34649
36332
|
trackingConfig,
|
|
34650
36333
|
legalEntity: legalEntityResponse,
|
|
@@ -34699,16 +36382,30 @@ function ServiceAgreementDropinComponent({
|
|
|
34699
36382
|
schema: ["signer", "acceptServiceAgreement"],
|
|
34700
36383
|
rules: serviceAgreementValidationRules
|
|
34701
36384
|
});
|
|
34702
|
-
const
|
|
34703
|
-
|
|
34704
|
-
|
|
34705
|
-
|
|
34706
|
-
|
|
34707
|
-
|
|
34708
|
-
|
|
34709
|
-
|
|
34710
|
-
|
|
34711
|
-
|
|
36385
|
+
const getSigners = () => {
|
|
36386
|
+
var _a2, _b2;
|
|
36387
|
+
if (legalEntityResponse.type === LegalEntityType.ORGANIZATION) {
|
|
36388
|
+
return getOwnSignatories(legalEntityResponse).map(({
|
|
36389
|
+
legalEntityId: id2,
|
|
36390
|
+
name
|
|
36391
|
+
}) => ({
|
|
36392
|
+
id: id2 ?? "",
|
|
36393
|
+
name: name ?? ""
|
|
36394
|
+
}));
|
|
36395
|
+
}
|
|
36396
|
+
if (isAgeVerificationEnabled && doesLegalEntityRequiresLegalRepresentative(legalEntityResponse)) {
|
|
36397
|
+
const legalRepresentative2 = getLegalRepresentative(legalEntityResponse);
|
|
36398
|
+
return legalRepresentative2 ? [{
|
|
36399
|
+
id: legalRepresentative2.legalEntityId,
|
|
36400
|
+
name: legalRepresentative2.name
|
|
36401
|
+
}] : [];
|
|
36402
|
+
}
|
|
36403
|
+
return [{
|
|
36404
|
+
id: legalEntityResponse == null ? void 0 : legalEntityResponse.id,
|
|
36405
|
+
name: `${(_a2 = legalEntityResponse == null ? void 0 : legalEntityResponse.individual) == null ? void 0 : _a2.name.firstName} ${(_b2 = legalEntityResponse == null ? void 0 : legalEntityResponse.individual) == null ? void 0 : _b2.name.lastName}`
|
|
36406
|
+
}];
|
|
36407
|
+
};
|
|
36408
|
+
const signers = getSigners();
|
|
34712
36409
|
const handleSignClick = async () => {
|
|
34713
36410
|
userEvents.addEvent("Clicked ToS signing", {
|
|
34714
36411
|
segmentation: {
|
|
@@ -34859,7 +36556,7 @@ function ServiceAgreementDropinComponent({
|
|
|
34859
36556
|
label: i18n.get("signer"),
|
|
34860
36557
|
classNameModifiers: ["col-50"],
|
|
34861
36558
|
className: "adyen-kyc-u-margin-y-32",
|
|
34862
|
-
errorMessage: i18n.get((
|
|
36559
|
+
errorMessage: i18n.get((_a = errors.signer) == null ? void 0 : _a.errorMessage),
|
|
34863
36560
|
isValid: valid.signer,
|
|
34864
36561
|
children: (childProps) => jsx(Select, {
|
|
34865
36562
|
...childProps,
|
|
@@ -34871,7 +36568,7 @@ function ServiceAgreementDropinComponent({
|
|
|
34871
36568
|
})
|
|
34872
36569
|
}), jsx(Field, {
|
|
34873
36570
|
name: "acceptServiceAgreement",
|
|
34874
|
-
errorMessage: i18n.get((
|
|
36571
|
+
errorMessage: i18n.get((_b = errors.acceptServiceAgreement) == null ? void 0 : _b.errorMessage),
|
|
34875
36572
|
isValid: valid.acceptServiceAgreement,
|
|
34876
36573
|
children: (childProps) => jsx(Checkbox, {
|
|
34877
36574
|
...childProps,
|
|
@@ -35646,7 +37343,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
35646
37343
|
};
|
|
35647
37344
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
35648
37345
|
const POLLING_INTERVAL = 3e3;
|
|
35649
|
-
const logger$
|
|
37346
|
+
const logger$d = createLogger("DropinComposerComponent");
|
|
35650
37347
|
const isOrganizationSettlorWithExemptionReasonEnabled = (enabled, country2) => country2 === CountryCodes.Australia && enabled;
|
|
35651
37348
|
function DropinComposerComponent({
|
|
35652
37349
|
capabilities,
|
|
@@ -35710,6 +37407,11 @@ function DropinComposerComponent({
|
|
|
35710
37407
|
getLegalEntity: args == null ? void 0 : args.handleGetLegalEntity
|
|
35711
37408
|
});
|
|
35712
37409
|
const [associatedLegalEntityParent, setAssociatedLegalEntityParent] = useState(null);
|
|
37410
|
+
const associatedLegalRepresentative = useAssociatedLegalRepresentative({
|
|
37411
|
+
legalEntity: rootLegalEntity,
|
|
37412
|
+
handleGetLegalEntity: args == null ? void 0 : args.handleGetLegalEntity
|
|
37413
|
+
});
|
|
37414
|
+
useState(null);
|
|
35713
37415
|
const [legalEntityType, setLegalEntityType] = useState(null);
|
|
35714
37416
|
const exemptSettlor = useExemptSettlor({
|
|
35715
37417
|
trust: associatedLegalArrangement,
|
|
@@ -35757,7 +37459,7 @@ function DropinComposerComponent({
|
|
|
35757
37459
|
setPciStatus(response);
|
|
35758
37460
|
return response;
|
|
35759
37461
|
} catch (e) {
|
|
35760
|
-
logger$
|
|
37462
|
+
logger$d.warn(i18n.get("failedToGetPciStatus"));
|
|
35761
37463
|
}
|
|
35762
37464
|
}
|
|
35763
37465
|
return void 0;
|
|
@@ -35785,7 +37487,7 @@ function DropinComposerComponent({
|
|
|
35785
37487
|
}, [additionalSalesChannels, i18n, rootLegalEntity.id, args.handleGetPciTemplate]);
|
|
35786
37488
|
useEffect(() => {
|
|
35787
37489
|
if (!tasks.includes(TaskTypes.PCI_DSS)) return;
|
|
35788
|
-
getPciTemplate().catch(logger$
|
|
37490
|
+
getPciTemplate().catch(logger$d.error);
|
|
35789
37491
|
}, [getPciTemplate, tasks]);
|
|
35790
37492
|
const addFetchedAcceptedByName = async (acceptanceInfo) => {
|
|
35791
37493
|
try {
|
|
@@ -35795,7 +37497,7 @@ function DropinComposerComponent({
|
|
|
35795
37497
|
acceptedByName: getLegalEntityNameBasedOnType(acceptedByEntity)
|
|
35796
37498
|
};
|
|
35797
37499
|
} catch (e) {
|
|
35798
|
-
logger$
|
|
37500
|
+
logger$d.warn(i18n.get("failedToFetchAcceptedByName"));
|
|
35799
37501
|
return {
|
|
35800
37502
|
...acceptanceInfo,
|
|
35801
37503
|
acceptedByName: null
|
|
@@ -35809,7 +37511,7 @@ function DropinComposerComponent({
|
|
|
35809
37511
|
const serviceAgreementAcceptanceInfosWithNames2 = await Promise.all(response.data.map(addFetchedAcceptedByName));
|
|
35810
37512
|
setServiceAgreementAcceptanceInfosWithNames(serviceAgreementAcceptanceInfosWithNames2);
|
|
35811
37513
|
} catch (e) {
|
|
35812
|
-
logger$
|
|
37514
|
+
logger$d.warn(i18n.get("failedToGetServiceAgreementStatus"));
|
|
35813
37515
|
}
|
|
35814
37516
|
}
|
|
35815
37517
|
};
|
|
@@ -35819,7 +37521,7 @@ function DropinComposerComponent({
|
|
|
35819
37521
|
const response = await args.handleGetServiceAgreementStatus(rootLegalEntity.id);
|
|
35820
37522
|
setServiceAgreementTypes(response.termsOfServiceTypes);
|
|
35821
37523
|
} catch (e) {
|
|
35822
|
-
logger$
|
|
37524
|
+
logger$d.warn(i18n.get("failedToGetServiceAgreementStatus"));
|
|
35823
37525
|
}
|
|
35824
37526
|
}
|
|
35825
37527
|
};
|
|
@@ -35858,7 +37560,7 @@ function DropinComposerComponent({
|
|
|
35858
37560
|
setCapabilityProblems(getCapabilityProblems(response, rootLegalEntityCountry, isExperimentEnabled));
|
|
35859
37561
|
return response;
|
|
35860
37562
|
} catch (e) {
|
|
35861
|
-
logger$
|
|
37563
|
+
logger$d.warn(i18n.get("failedToFetchLegalEntityDetails"));
|
|
35862
37564
|
}
|
|
35863
37565
|
}
|
|
35864
37566
|
return void 0;
|
|
@@ -35908,7 +37610,7 @@ function DropinComposerComponent({
|
|
|
35908
37610
|
label: i18n.get("successFullyRemovedTrustMember")
|
|
35909
37611
|
});
|
|
35910
37612
|
} catch (err) {
|
|
35911
|
-
logger$
|
|
37613
|
+
logger$d.error(`Failed to delete trust member`, err);
|
|
35912
37614
|
showToast({
|
|
35913
37615
|
type: "error",
|
|
35914
37616
|
label: i18n.get("failedToRemoveTrustMember")
|
|
@@ -35978,7 +37680,7 @@ function DropinComposerComponent({
|
|
|
35978
37680
|
}
|
|
35979
37681
|
break;
|
|
35980
37682
|
default:
|
|
35981
|
-
logger$
|
|
37683
|
+
logger$d.warn(`Updating trust member type "${trustMember.trustMemberType}" is not implemented.`);
|
|
35982
37684
|
}
|
|
35983
37685
|
showToast({
|
|
35984
37686
|
label: i18n.get("successfullyUpdatedDetails"),
|
|
@@ -35986,7 +37688,7 @@ function DropinComposerComponent({
|
|
|
35986
37688
|
});
|
|
35987
37689
|
await refreshLegalArrangementAndRunOnSubmit(associatedLegalArrangement, 1);
|
|
35988
37690
|
} catch (err) {
|
|
35989
|
-
logger$
|
|
37691
|
+
logger$d.error(err);
|
|
35990
37692
|
showToast({
|
|
35991
37693
|
label: i18n.get("failedToUpdateDetails"),
|
|
35992
37694
|
type: "error"
|
|
@@ -36007,7 +37709,7 @@ function DropinComposerComponent({
|
|
|
36007
37709
|
navigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
36008
37710
|
}
|
|
36009
37711
|
} catch (e) {
|
|
36010
|
-
logger$
|
|
37712
|
+
logger$d.error(e);
|
|
36011
37713
|
showToast({
|
|
36012
37714
|
label: i18n.get("failToLaunchSingpass"),
|
|
36013
37715
|
type: "error"
|
|
@@ -36214,7 +37916,7 @@ function DropinComposerComponent({
|
|
|
36214
37916
|
}
|
|
36215
37917
|
};
|
|
36216
37918
|
setIsLoadingConfiguration(true);
|
|
36217
|
-
fetchConfiguration().catch(logger$
|
|
37919
|
+
fetchConfiguration().catch(logger$d.error).finally(() => {
|
|
36218
37920
|
setIsLoadingConfiguration(false);
|
|
36219
37921
|
onLoad();
|
|
36220
37922
|
});
|
|
@@ -36232,7 +37934,7 @@ function DropinComposerComponent({
|
|
|
36232
37934
|
return;
|
|
36233
37935
|
}
|
|
36234
37936
|
const timeoutId = setTimeout(() => {
|
|
36235
|
-
refreshLegalEntity().catch(logger$
|
|
37937
|
+
refreshLegalEntity().catch(logger$d.error);
|
|
36236
37938
|
}, POLLING_INTERVAL);
|
|
36237
37939
|
return () => {
|
|
36238
37940
|
clearInterval(timeoutId);
|
|
@@ -36684,6 +38386,32 @@ function DropinComposerComponent({
|
|
|
36684
38386
|
navigateToTargetEntityType();
|
|
36685
38387
|
}
|
|
36686
38388
|
});
|
|
38389
|
+
case TaskTypes.LEGAL_REPRESENTATIVE_DETAILS:
|
|
38390
|
+
return jsx(IndividualDropinComponent, {
|
|
38391
|
+
trackingConfig: {
|
|
38392
|
+
topLevelLegalEntity: legalEntityResponse
|
|
38393
|
+
},
|
|
38394
|
+
taskName: "legalRepresentative",
|
|
38395
|
+
taskType: TaskTypes.LEGAL_REPRESENTATIVE_DETAILS,
|
|
38396
|
+
parentLegalEntity: rootLegalEntity,
|
|
38397
|
+
legalEntityResponse: associatedLegalRepresentative,
|
|
38398
|
+
country: rootLegalEntityCountry,
|
|
38399
|
+
problems: getLegalEntityProblems(associatedLegalRepresentative),
|
|
38400
|
+
capabilities: getCapabilities(legalEntityResponse),
|
|
38401
|
+
onChange: componentOnChange,
|
|
38402
|
+
onSubmit: componentOnSubmit,
|
|
38403
|
+
handleHomeClick: navigateBack,
|
|
38404
|
+
homeButtonLabel: i18n.get("saveAndGoToOverview"),
|
|
38405
|
+
handleCreateLegalEntity: args == null ? void 0 : args.handleCreateLegalEntity,
|
|
38406
|
+
handleUpdateLegalEntity: args == null ? void 0 : args.handleUpdateLegalEntity,
|
|
38407
|
+
handleGetDocument: args == null ? void 0 : args.handleGetDocument,
|
|
38408
|
+
handleUpdateDocument: args == null ? void 0 : args.handleUpdateDocument,
|
|
38409
|
+
handleCreateDocument: args == null ? void 0 : args.handleCreateDocument,
|
|
38410
|
+
handleAddressSearch: args == null ? void 0 : args.handleAddressSearch,
|
|
38411
|
+
handleFindAddress: args == null ? void 0 : args.handleFindAddress,
|
|
38412
|
+
handleGetIdVerificationToken: args == null ? void 0 : args.handleGetIdVerificationToken,
|
|
38413
|
+
handleGetIdVerificationStartCheck: args == null ? void 0 : args.handleGetIdVerificationStartCheck
|
|
38414
|
+
});
|
|
36687
38415
|
default:
|
|
36688
38416
|
return null;
|
|
36689
38417
|
}
|
|
@@ -36758,32 +38486,6 @@ const getBankVerificationVendor = async (context, country2, openBankingPartnerCo
|
|
|
36758
38486
|
}
|
|
36759
38487
|
});
|
|
36760
38488
|
};
|
|
36761
|
-
const getDataset$1 = async (context, name, locale) => {
|
|
36762
|
-
const {
|
|
36763
|
-
loadingContext
|
|
36764
|
-
} = context;
|
|
36765
|
-
const datasetUtils = datasetUtilities(locale);
|
|
36766
|
-
const dataset = datasetUtils.getDataset(name);
|
|
36767
|
-
if (dataset) {
|
|
36768
|
-
return new Promise((resolve) => {
|
|
36769
|
-
resolve(dataset);
|
|
36770
|
-
});
|
|
36771
|
-
}
|
|
36772
|
-
const path = locale ? `datasets/${name}/${locale}` : `datasets/${name}`;
|
|
36773
|
-
return httpGet({
|
|
36774
|
-
loadingContext,
|
|
36775
|
-
errorLevel: "warn",
|
|
36776
|
-
errorMessage: `Dataset ${name} is not available`,
|
|
36777
|
-
path,
|
|
36778
|
-
authentication: "jwt",
|
|
36779
|
-
headers: {
|
|
36780
|
-
"Content-Type": "application/json"
|
|
36781
|
-
}
|
|
36782
|
-
}).then((datasetResponse) => {
|
|
36783
|
-
datasetUtils.setDataset(name, datasetResponse);
|
|
36784
|
-
return datasetResponse;
|
|
36785
|
-
});
|
|
36786
|
-
};
|
|
36787
38489
|
const getDocument = async (context, documentId) => {
|
|
36788
38490
|
const {
|
|
36789
38491
|
loadingContext,
|
|
@@ -37094,7 +38796,7 @@ const useComponentApi = (rootLegalEntityId) => {
|
|
|
37094
38796
|
};
|
|
37095
38797
|
}, [base, rootLegalEntityId]);
|
|
37096
38798
|
};
|
|
37097
|
-
const logger$
|
|
38799
|
+
const logger$c = createLogger("CreateIndividualComponent");
|
|
37098
38800
|
function CreateIndividualComponent({
|
|
37099
38801
|
parentLegalEntityId,
|
|
37100
38802
|
legalEntityId,
|
|
@@ -37130,13 +38832,13 @@ function CreateIndividualComponent({
|
|
|
37130
38832
|
setParentLegalEntity(parentEntity);
|
|
37131
38833
|
setLegalEntity(entity);
|
|
37132
38834
|
} catch (error) {
|
|
37133
|
-
logger$
|
|
38835
|
+
logger$c.error(error);
|
|
37134
38836
|
} finally {
|
|
37135
38837
|
setLoadingStatus("success");
|
|
37136
38838
|
}
|
|
37137
38839
|
}, [parentLegalEntityId, legalEntityId, getLegalEntity2]);
|
|
37138
38840
|
useEffect(() => {
|
|
37139
|
-
fetchLegalEntity().catch(logger$
|
|
38841
|
+
fetchLegalEntity().catch(logger$c.error);
|
|
37140
38842
|
}, [fetchLegalEntity]);
|
|
37141
38843
|
const country2 = ((_a = legalEntity == null ? void 0 : legalEntity.individual) == null ? void 0 : _a.residentialAddress.country) ?? contextCountry;
|
|
37142
38844
|
return loadingStatus === "loading" ? jsx(Loader, {
|
|
@@ -37160,7 +38862,7 @@ function CreateIndividualComponent({
|
|
|
37160
38862
|
taskType
|
|
37161
38863
|
});
|
|
37162
38864
|
}
|
|
37163
|
-
const logger$
|
|
38865
|
+
const logger$b = createLogger("CreateTransferInstrumentComponent");
|
|
37164
38866
|
function CreateTransferInstrumentComponent({
|
|
37165
38867
|
legalEntityId,
|
|
37166
38868
|
transferInstrumentId,
|
|
@@ -37200,7 +38902,7 @@ function CreateTransferInstrumentComponent({
|
|
|
37200
38902
|
const ti = await getTransferInstrument2(transferInstrumentId);
|
|
37201
38903
|
setTransferInstrument(ti);
|
|
37202
38904
|
}
|
|
37203
|
-
})().catch(logger$
|
|
38905
|
+
})().catch(logger$b.error);
|
|
37204
38906
|
}, [transferInstrumentId, fetchLegalEntity]);
|
|
37205
38907
|
return legalEntity ? jsx(PayoutDetailsDropinComponent, {
|
|
37206
38908
|
transferInstrument,
|
|
@@ -37221,10 +38923,16 @@ function CreateTransferInstrumentComponent({
|
|
|
37221
38923
|
taskType: TaskTypes.PAYOUT
|
|
37222
38924
|
}) : null;
|
|
37223
38925
|
}
|
|
38926
|
+
const setDefaultCurrencies = (dataObject, country2) => {
|
|
38927
|
+
const countryCurrencies = currencyByCountry[country2] || [];
|
|
38928
|
+
if (dataObject.totalAssetsCurrency && dataObject.annualTurnoverCurrency) return;
|
|
38929
|
+
dataObject.totalAssetsCurrency = countryCurrencies[0];
|
|
38930
|
+
dataObject.annualTurnoverCurrency = countryCurrencies[0];
|
|
38931
|
+
};
|
|
37224
38932
|
var HighExposurePagesEnums = /* @__PURE__ */ ((HighExposurePagesEnums2) => {
|
|
37225
|
-
HighExposurePagesEnums2["COMPANY_PAGE"] = "
|
|
37226
|
-
HighExposurePagesEnums2["PARENT_COMPANY_PAGE"] = "
|
|
37227
|
-
HighExposurePagesEnums2["ULTIMATE_PARENT_COMPANY_PAGE"] = "
|
|
38933
|
+
HighExposurePagesEnums2["COMPANY_PAGE"] = "company";
|
|
38934
|
+
HighExposurePagesEnums2["PARENT_COMPANY_PAGE"] = "parentCompany";
|
|
38935
|
+
HighExposurePagesEnums2["ULTIMATE_PARENT_COMPANY_PAGE"] = "ultimateParentCompany";
|
|
37228
38936
|
return HighExposurePagesEnums2;
|
|
37229
38937
|
})(HighExposurePagesEnums || {});
|
|
37230
38938
|
const highExposureRadioItems = [{
|
|
@@ -37256,6 +38964,36 @@ const highExposureCompanyDetailsValidations = {
|
|
|
37256
38964
|
validate: (numberOfEmployees2) => !isEmpty(numberOfEmployees2),
|
|
37257
38965
|
errorMessage: "fieldIsRequired"
|
|
37258
38966
|
},
|
|
38967
|
+
legalInformationInsolvency: {
|
|
38968
|
+
modes: ["blur"],
|
|
38969
|
+
validate: (legalInformationInsolvency2) => !isEmpty(legalInformationInsolvency2),
|
|
38970
|
+
errorMessage: "fieldIsRequired"
|
|
38971
|
+
},
|
|
38972
|
+
totalAssetsValue: {
|
|
38973
|
+
modes: ["blur"],
|
|
38974
|
+
validate: (value) => !isEmpty(value),
|
|
38975
|
+
errorMessage: "fieldIsRequired"
|
|
38976
|
+
},
|
|
38977
|
+
totalAssetsCurrency: {
|
|
38978
|
+
modes: ["input"],
|
|
38979
|
+
validate: (value) => !isEmpty(value),
|
|
38980
|
+
errorMessage: "fieldIsRequired"
|
|
38981
|
+
},
|
|
38982
|
+
annualTurnoverValue: {
|
|
38983
|
+
modes: ["blur"],
|
|
38984
|
+
validate: (value) => !isEmpty(value),
|
|
38985
|
+
errorMessage: "fieldIsRequired"
|
|
38986
|
+
},
|
|
38987
|
+
annualTurnoverCurrency: {
|
|
38988
|
+
modes: ["blur"],
|
|
38989
|
+
validate: (value) => !isEmpty(value),
|
|
38990
|
+
errorMessage: "fieldIsRequired"
|
|
38991
|
+
},
|
|
38992
|
+
financialReportingDate: {
|
|
38993
|
+
modes: ["blur"],
|
|
38994
|
+
validate: (value) => !isEmpty(value),
|
|
38995
|
+
errorMessage: "fieldIsRequired"
|
|
38996
|
+
},
|
|
37259
38997
|
legalForm: {
|
|
37260
38998
|
modes: ["blur"],
|
|
37261
38999
|
validate: (legalForm2) => !isEmpty(legalForm2),
|
|
@@ -37336,6 +39074,41 @@ const highExposureParentCompanyDetailsValidations = {
|
|
|
37336
39074
|
return validateLegalEntityIdentifier(parentLegalEntityIdentifier, (_b = (_a = context == null ? void 0 : context.state) == null ? void 0 : _a.data) == null ? void 0 : _b.doesYourParentCompanyHaveLEI, Boolean((_d = (_c = context == null ? void 0 : context.state) == null ? void 0 : _c.data) == null ? void 0 : _d.doesNotKnowParentNumberOfEmployees));
|
|
37337
39075
|
},
|
|
37338
39076
|
errorMessage: "fieldIsRequired"
|
|
39077
|
+
},
|
|
39078
|
+
isParentCompanyAddressTheMainHeadquarters: {
|
|
39079
|
+
modes: ["blur"],
|
|
39080
|
+
validate: (isParentCompanyAddressTheMainHeadquarters) => !isEmpty(isParentCompanyAddressTheMainHeadquarters),
|
|
39081
|
+
errorMessage: "fieldIsRequired"
|
|
39082
|
+
},
|
|
39083
|
+
legalInformationInsolvency: {
|
|
39084
|
+
modes: ["blur"],
|
|
39085
|
+
validate: (value) => !isEmpty(value),
|
|
39086
|
+
errorMessage: "fieldIsRequired"
|
|
39087
|
+
},
|
|
39088
|
+
totalAssetsValue: {
|
|
39089
|
+
modes: ["blur"],
|
|
39090
|
+
validate: (value) => !isEmpty(value),
|
|
39091
|
+
errorMessage: "fieldIsRequired"
|
|
39092
|
+
},
|
|
39093
|
+
totalAssetsCurrency: {
|
|
39094
|
+
modes: ["input"],
|
|
39095
|
+
validate: (value) => !isEmpty(value),
|
|
39096
|
+
errorMessage: "fieldIsRequired"
|
|
39097
|
+
},
|
|
39098
|
+
annualTurnoverValue: {
|
|
39099
|
+
modes: ["blur"],
|
|
39100
|
+
validate: (value) => !isEmpty(value),
|
|
39101
|
+
errorMessage: "fieldIsRequired"
|
|
39102
|
+
},
|
|
39103
|
+
annualTurnoverCurrency: {
|
|
39104
|
+
modes: ["blur"],
|
|
39105
|
+
validate: (value) => !isEmpty(value),
|
|
39106
|
+
errorMessage: "fieldIsRequired"
|
|
39107
|
+
},
|
|
39108
|
+
financialReportingDate: {
|
|
39109
|
+
modes: ["blur"],
|
|
39110
|
+
validate: (value) => !isEmpty(value),
|
|
39111
|
+
errorMessage: "fieldIsRequired"
|
|
37339
39112
|
}
|
|
37340
39113
|
};
|
|
37341
39114
|
const highExposureUltimateParentCompanyDetailsValidations = {
|
|
@@ -37376,9 +39149,44 @@ const highExposureUltimateParentCompanyDetailsValidations = {
|
|
|
37376
39149
|
return validateLegalEntityIdentifier(ultimateParentLegalEntityIdentifier, (_b = (_a = context == null ? void 0 : context.state) == null ? void 0 : _a.data) == null ? void 0 : _b.doesYourUltimateParentCompanyHaveLEI, Boolean((_d = (_c = context == null ? void 0 : context.state) == null ? void 0 : _c.data) == null ? void 0 : _d.doesNotKnowUltimateParentNumberOfEmployees));
|
|
37377
39150
|
},
|
|
37378
39151
|
errorMessage: "fieldIsRequired"
|
|
39152
|
+
},
|
|
39153
|
+
isUltimateParentCompanyAddressTheMainHeadquarters: {
|
|
39154
|
+
modes: ["blur"],
|
|
39155
|
+
validate: (isUltimateParentCompanyAddressTheMainHeadquarters) => !isEmpty(isUltimateParentCompanyAddressTheMainHeadquarters),
|
|
39156
|
+
errorMessage: "fieldIsRequired"
|
|
39157
|
+
},
|
|
39158
|
+
legalInformationInsolvency: {
|
|
39159
|
+
modes: ["blur"],
|
|
39160
|
+
validate: (value) => !isEmpty(value),
|
|
39161
|
+
errorMessage: "fieldIsRequired"
|
|
39162
|
+
},
|
|
39163
|
+
totalAssetsValue: {
|
|
39164
|
+
modes: ["blur"],
|
|
39165
|
+
validate: (value) => !isEmpty(value),
|
|
39166
|
+
errorMessage: "fieldIsRequired"
|
|
39167
|
+
},
|
|
39168
|
+
totalAssetsCurrency: {
|
|
39169
|
+
modes: ["input"],
|
|
39170
|
+
validate: (value) => !isEmpty(value),
|
|
39171
|
+
errorMessage: "fieldIsRequired"
|
|
39172
|
+
},
|
|
39173
|
+
annualTurnoverValue: {
|
|
39174
|
+
modes: ["blur"],
|
|
39175
|
+
validate: (value) => !isEmpty(value),
|
|
39176
|
+
errorMessage: "fieldIsRequired"
|
|
39177
|
+
},
|
|
39178
|
+
annualTurnoverCurrency: {
|
|
39179
|
+
modes: ["blur"],
|
|
39180
|
+
validate: (value) => !isEmpty(value),
|
|
39181
|
+
errorMessage: "fieldIsRequired"
|
|
39182
|
+
},
|
|
39183
|
+
financialReportingDate: {
|
|
39184
|
+
modes: ["blur"],
|
|
39185
|
+
validate: (value) => !isEmpty(value),
|
|
39186
|
+
errorMessage: "fieldIsRequired"
|
|
37379
39187
|
}
|
|
37380
39188
|
};
|
|
37381
|
-
const logger$
|
|
39189
|
+
const logger$a = createLogger("LegalFormField");
|
|
37382
39190
|
function LegalFormField({
|
|
37383
39191
|
name = "legalForm",
|
|
37384
39192
|
data,
|
|
@@ -37407,7 +39215,7 @@ function LegalFormField({
|
|
|
37407
39215
|
}));
|
|
37408
39216
|
setLegalForms(legalFormsResponse);
|
|
37409
39217
|
}
|
|
37410
|
-
}).catch(() => logger$
|
|
39218
|
+
}).catch(() => logger$a.error);
|
|
37411
39219
|
}, [countryCode]);
|
|
37412
39220
|
return jsx(Field, {
|
|
37413
39221
|
name,
|
|
@@ -37427,7 +39235,7 @@ function LegalFormField({
|
|
|
37427
39235
|
})
|
|
37428
39236
|
});
|
|
37429
39237
|
}
|
|
37430
|
-
const logger$
|
|
39238
|
+
const logger$9 = createLogger("NaceCodeField");
|
|
37431
39239
|
function NaceCodeField({
|
|
37432
39240
|
name = "naceCode",
|
|
37433
39241
|
data,
|
|
@@ -37451,7 +39259,7 @@ function NaceCodeField({
|
|
|
37451
39259
|
if (response) {
|
|
37452
39260
|
setNaceCodes(response);
|
|
37453
39261
|
}
|
|
37454
|
-
}).catch(() => logger$
|
|
39262
|
+
}).catch(() => logger$9.error);
|
|
37455
39263
|
}, []);
|
|
37456
39264
|
return jsx(Field, {
|
|
37457
39265
|
name,
|
|
@@ -37641,6 +39449,193 @@ function HighExposureBusinessInformation({
|
|
|
37641
39449
|
})]
|
|
37642
39450
|
});
|
|
37643
39451
|
}
|
|
39452
|
+
function AmountSelector({
|
|
39453
|
+
currency: currency2,
|
|
39454
|
+
value,
|
|
39455
|
+
validCurrency,
|
|
39456
|
+
validValue,
|
|
39457
|
+
handleChangeForCurrency,
|
|
39458
|
+
handleChangeForValue,
|
|
39459
|
+
country: country2,
|
|
39460
|
+
fieldName,
|
|
39461
|
+
fieldLabel,
|
|
39462
|
+
fieldHelper,
|
|
39463
|
+
errorMessage,
|
|
39464
|
+
ariaLabelCurrency,
|
|
39465
|
+
ariaLabelValue
|
|
39466
|
+
}) {
|
|
39467
|
+
const {
|
|
39468
|
+
i18n
|
|
39469
|
+
} = useI18nContext();
|
|
39470
|
+
const countryCurrencies = currencyByCountry[country2] || [];
|
|
39471
|
+
const countryCurrenciesItems = countryCurrencies ? countryCurrencies.map((item) => ({
|
|
39472
|
+
id: item,
|
|
39473
|
+
name: item
|
|
39474
|
+
})) : null;
|
|
39475
|
+
return countryCurrenciesItems && jsx(Field, {
|
|
39476
|
+
name: fieldName,
|
|
39477
|
+
label: fieldLabel,
|
|
39478
|
+
helper: fieldHelper,
|
|
39479
|
+
errorMessage,
|
|
39480
|
+
isValid: validCurrency && validValue,
|
|
39481
|
+
children: (childProps) => jsxs("div", {
|
|
39482
|
+
className: "adyen-kyc-u-display-flex adyen-kyc-u-justify-content-space-between",
|
|
39483
|
+
children: [jsx(Select, {
|
|
39484
|
+
...childProps,
|
|
39485
|
+
name: `${fieldName}Currency`,
|
|
39486
|
+
className: "adyen-kyc-u-flex-1",
|
|
39487
|
+
placeholder: i18n.get("selectOne"),
|
|
39488
|
+
selected: currency2,
|
|
39489
|
+
items: countryCurrenciesItems,
|
|
39490
|
+
onChange: handleChangeForCurrency,
|
|
39491
|
+
"aria-required": true,
|
|
39492
|
+
"aria-label": ariaLabelCurrency,
|
|
39493
|
+
"aria-invalid": !validCurrency,
|
|
39494
|
+
readonly: (countryCurrenciesItems == null ? void 0 : countryCurrenciesItems.length) === 1
|
|
39495
|
+
}), jsx(InputText, {
|
|
39496
|
+
...childProps,
|
|
39497
|
+
name: `${fieldName}Value`,
|
|
39498
|
+
value,
|
|
39499
|
+
className: "adyen-kyc-u-margin-left-8 adyen-kyc-u-flex-4",
|
|
39500
|
+
onInput: handleChangeForValue,
|
|
39501
|
+
onBlur: handleChangeForValue,
|
|
39502
|
+
"aria-required": true,
|
|
39503
|
+
"aria-label": ariaLabelValue,
|
|
39504
|
+
"aria-invalid": !validValue
|
|
39505
|
+
})]
|
|
39506
|
+
})
|
|
39507
|
+
});
|
|
39508
|
+
}
|
|
39509
|
+
function HighExposureFinancialInformation({
|
|
39510
|
+
formUtils,
|
|
39511
|
+
data,
|
|
39512
|
+
valid,
|
|
39513
|
+
errors,
|
|
39514
|
+
fieldProblems,
|
|
39515
|
+
handleChangeFor,
|
|
39516
|
+
country: country2,
|
|
39517
|
+
fieldMapping,
|
|
39518
|
+
sectionHeading
|
|
39519
|
+
}) {
|
|
39520
|
+
const {
|
|
39521
|
+
i18n
|
|
39522
|
+
} = useI18nContext();
|
|
39523
|
+
const getFieldName = (fieldKey) => fieldMapping[fieldKey] ?? fieldKey;
|
|
39524
|
+
const getFieldData = (fieldKey) => {
|
|
39525
|
+
const fieldData = data[getFieldName(fieldKey)];
|
|
39526
|
+
return fieldData ? fieldData.toString() : void 0;
|
|
39527
|
+
};
|
|
39528
|
+
return jsxs(Fragment, {
|
|
39529
|
+
children: [jsx(Typography, {
|
|
39530
|
+
el: "h3",
|
|
39531
|
+
variant: "title",
|
|
39532
|
+
children: i18n.get(sectionHeading || "financialInformation")
|
|
39533
|
+
}), jsx(AmountSelector, {
|
|
39534
|
+
country: country2,
|
|
39535
|
+
handleChangeForCurrency: handleChangeFor("totalAssetsCurrency", "blur"),
|
|
39536
|
+
handleChangeForValue: handleChangeFor("totalAssetsValue", "blur"),
|
|
39537
|
+
currency: data.totalAssetsCurrency,
|
|
39538
|
+
value: data.totalAssetsValue,
|
|
39539
|
+
validCurrency: valid.totalAssetsCurrency,
|
|
39540
|
+
validValue: valid.totalAssetsValue,
|
|
39541
|
+
fieldName: getFieldName("totalAssetsField"),
|
|
39542
|
+
fieldLabel: formUtils.getLabel("totalAssets", "totalAssets"),
|
|
39543
|
+
fieldHelper: i18n.get("totalAssetsHelper"),
|
|
39544
|
+
errorMessage: formUtils.getErrorMessage("totalAssetsValue", errors, fieldProblems),
|
|
39545
|
+
ariaLabelCurrency: formUtils.getLabel("totalAssetsCurrency"),
|
|
39546
|
+
ariaLabelValue: formUtils.getLabel("totalAssetsValue")
|
|
39547
|
+
}), jsx(AmountSelector, {
|
|
39548
|
+
country: country2,
|
|
39549
|
+
handleChangeForCurrency: handleChangeFor("annualTurnoverCurrency", "blur"),
|
|
39550
|
+
handleChangeForValue: handleChangeFor("annualTurnoverValue", "blur"),
|
|
39551
|
+
currency: data.annualTurnoverCurrency,
|
|
39552
|
+
value: data.annualTurnoverValue,
|
|
39553
|
+
validCurrency: valid.annualTurnoverCurrency,
|
|
39554
|
+
validValue: valid.annualTurnoverValue,
|
|
39555
|
+
fieldName: getFieldName("annualTurnoverField"),
|
|
39556
|
+
fieldLabel: formUtils.getLabel("annualTurnover", "annualTurnover"),
|
|
39557
|
+
fieldHelper: i18n.get("annualTurnoverHelper"),
|
|
39558
|
+
errorMessage: formUtils.getErrorMessage("annualTurnoverValue", errors, fieldProblems),
|
|
39559
|
+
ariaLabelCurrency: formUtils.getLabel("annualTurnoverCurrency"),
|
|
39560
|
+
ariaLabelValue: formUtils.getLabel("annualTurnoverValue")
|
|
39561
|
+
}), jsx(Field, {
|
|
39562
|
+
name: getFieldName("financialReportingDate"),
|
|
39563
|
+
label: formUtils.getLabel(getFieldName("financialReportingDate"), "financialReportingDate"),
|
|
39564
|
+
helper: i18n.get("financialReportingDateHelper"),
|
|
39565
|
+
errorMessage: formUtils.getErrorMessage(getFieldName("financialReportingDate"), errors, fieldProblems),
|
|
39566
|
+
isValid: valid[getFieldName("financialReportingDate")],
|
|
39567
|
+
children: (childProps) => jsx(InputDate, {
|
|
39568
|
+
...childProps,
|
|
39569
|
+
name: getFieldName("financialReportingDate"),
|
|
39570
|
+
value: getFieldData("financialReportingDate"),
|
|
39571
|
+
classNameModifiers: ["financialReportingDate"],
|
|
39572
|
+
onInput: handleChangeFor(getFieldName("financialReportingDate"), "input"),
|
|
39573
|
+
onBlur: handleChangeFor(getFieldName("financialReportingDate"), "blur"),
|
|
39574
|
+
"aria-required": true,
|
|
39575
|
+
"aria-label": formUtils.getLabel(getFieldName("financialReportingDate")),
|
|
39576
|
+
"aria-invalid": !valid[getFieldName("financialReportingDate")]
|
|
39577
|
+
})
|
|
39578
|
+
})]
|
|
39579
|
+
});
|
|
39580
|
+
}
|
|
39581
|
+
function HighExposureLegalInformation({
|
|
39582
|
+
formUtils,
|
|
39583
|
+
data,
|
|
39584
|
+
valid,
|
|
39585
|
+
errors,
|
|
39586
|
+
fieldProblems,
|
|
39587
|
+
handleChangeFor,
|
|
39588
|
+
fieldMapping,
|
|
39589
|
+
sectionHeading
|
|
39590
|
+
}) {
|
|
39591
|
+
const {
|
|
39592
|
+
i18n
|
|
39593
|
+
} = useI18nContext();
|
|
39594
|
+
const getFieldName = (fieldKey) => fieldMapping[fieldKey] ?? fieldKey;
|
|
39595
|
+
const getFieldData = (fieldKey) => {
|
|
39596
|
+
const fieldData = data[getFieldName(fieldKey)];
|
|
39597
|
+
return fieldData ? fieldData.toString() : void 0;
|
|
39598
|
+
};
|
|
39599
|
+
const legalInformationInsolvencyItems = [{
|
|
39600
|
+
id: i18n.get("no"),
|
|
39601
|
+
name: i18n.get("no")
|
|
39602
|
+
}, {
|
|
39603
|
+
id: i18n.get("yesJudicialAdministration"),
|
|
39604
|
+
name: i18n.get("yesJudicialAdministration")
|
|
39605
|
+
}, {
|
|
39606
|
+
id: i18n.get("yesBankruptcyInsolvency"),
|
|
39607
|
+
name: i18n.get("yesBankruptcyInsolvency")
|
|
39608
|
+
}, {
|
|
39609
|
+
id: i18n.get("yesOtherLegalMeasures"),
|
|
39610
|
+
name: i18n.get("yesOtherLegalMeasures")
|
|
39611
|
+
}, {
|
|
39612
|
+
id: i18n.get("iDontKnow"),
|
|
39613
|
+
name: i18n.get("iDontKnow")
|
|
39614
|
+
}];
|
|
39615
|
+
return jsxs(Fragment, {
|
|
39616
|
+
children: [jsx(Typography, {
|
|
39617
|
+
el: "h3",
|
|
39618
|
+
variant: "title",
|
|
39619
|
+
children: i18n.get(sectionHeading || "legalInformation")
|
|
39620
|
+
}), jsx(Field, {
|
|
39621
|
+
name: getFieldName("legalInformationInsolvency"),
|
|
39622
|
+
label: formUtils.getLabel(getFieldName("legalInformationInsolvency"), "legalInformationInsolvency"),
|
|
39623
|
+
errorMessage: formUtils.getErrorMessage(getFieldName("legalInformationInsolvency"), errors, fieldProblems),
|
|
39624
|
+
isValid: valid.legalInformationInsolvency,
|
|
39625
|
+
children: (childProps) => jsx(Select, {
|
|
39626
|
+
...childProps,
|
|
39627
|
+
onChange: handleChangeFor(getFieldName("legalInformationInsolvency"), "blur"),
|
|
39628
|
+
name: getFieldName("legalInformationInsolvency"),
|
|
39629
|
+
placeholder: i18n.get("selectOne"),
|
|
39630
|
+
selected: getFieldData("legalInformationInsolvency"),
|
|
39631
|
+
items: legalInformationInsolvencyItems,
|
|
39632
|
+
"aria-required": true,
|
|
39633
|
+
"aria-label": formUtils.getLabel(getFieldName("legalInformationInsolvency")),
|
|
39634
|
+
"aria-invalid": !valid[getFieldName("legalInformationInsolvency")]
|
|
39635
|
+
})
|
|
39636
|
+
})]
|
|
39637
|
+
});
|
|
39638
|
+
}
|
|
37644
39639
|
function HighExposureOwnershipStructure({
|
|
37645
39640
|
formUtils,
|
|
37646
39641
|
data,
|
|
@@ -37707,7 +39702,13 @@ const companyFieldMapping = {
|
|
|
37707
39702
|
doesYourCompanyHaveLEI: "doesYourCompanyHaveLEI",
|
|
37708
39703
|
legalEntityIdentifier: "legalEntityIdentifier",
|
|
37709
39704
|
isCompanyOwnedByAnotherCompany: "isCompanyOwnedByAnotherCompany",
|
|
37710
|
-
isParentOwnedByAnotherCompany: "isParentOwnedByAnotherCompany"
|
|
39705
|
+
isParentOwnedByAnotherCompany: "isParentOwnedByAnotherCompany",
|
|
39706
|
+
financialReportingDate: "financialReportingDate",
|
|
39707
|
+
totalAssetsCurrency: "totalAssetsCurrency",
|
|
39708
|
+
totalAssetsValue: "totalAssetsValue",
|
|
39709
|
+
annualTurnoverCurrency: "annualTurnoverCurrency",
|
|
39710
|
+
annualTurnoverValue: "annualTurnoverValue",
|
|
39711
|
+
legalInformationInsolvency: "legalInformationInsolvency"
|
|
37711
39712
|
};
|
|
37712
39713
|
const highExposureCompanyDetailsFields = Object.values(companyFieldMapping);
|
|
37713
39714
|
function AdditionalFieldsForHighExposureCompany(props) {
|
|
@@ -37741,6 +39742,7 @@ function AdditionalFieldsForHighExposureCompany(props) {
|
|
|
37741
39742
|
errors,
|
|
37742
39743
|
fieldProblems
|
|
37743
39744
|
});
|
|
39745
|
+
setDefaultCurrencies(data, props.country);
|
|
37744
39746
|
}, [data, valid, errors, fieldProblems]);
|
|
37745
39747
|
return jsxs("form", {
|
|
37746
39748
|
className: "adyen-kyc__high-exposure-company",
|
|
@@ -37781,10 +39783,118 @@ function AdditionalFieldsForHighExposureCompany(props) {
|
|
|
37781
39783
|
legalEntity: props.legalEntity,
|
|
37782
39784
|
formUtils,
|
|
37783
39785
|
fieldProblems
|
|
39786
|
+
}), jsx(HighExposureFinancialInformation, {
|
|
39787
|
+
...props,
|
|
39788
|
+
handleChangeFor: highExposureHandleChangeFor,
|
|
39789
|
+
errors,
|
|
39790
|
+
data,
|
|
39791
|
+
valid,
|
|
39792
|
+
country: props.country,
|
|
39793
|
+
formUtils,
|
|
39794
|
+
fieldProblems,
|
|
39795
|
+
targetPage: HighExposurePagesEnums.COMPANY_PAGE,
|
|
39796
|
+
fieldMapping: companyFieldMapping
|
|
39797
|
+
}), jsx(HighExposureLegalInformation, {
|
|
39798
|
+
...props,
|
|
39799
|
+
handleChangeFor: highExposureHandleChangeFor,
|
|
39800
|
+
errors,
|
|
39801
|
+
data,
|
|
39802
|
+
valid,
|
|
39803
|
+
formUtils,
|
|
39804
|
+
fieldProblems,
|
|
39805
|
+
targetPage: HighExposurePagesEnums.COMPANY_PAGE,
|
|
39806
|
+
fieldMapping: companyFieldMapping
|
|
37784
39807
|
})]
|
|
37785
39808
|
});
|
|
37786
39809
|
}
|
|
37787
|
-
|
|
39810
|
+
function HighExposureRegisteredAddress({
|
|
39811
|
+
formUtils,
|
|
39812
|
+
data,
|
|
39813
|
+
valid,
|
|
39814
|
+
errors,
|
|
39815
|
+
fieldProblems,
|
|
39816
|
+
handleChangeFor,
|
|
39817
|
+
legalEntity,
|
|
39818
|
+
fieldMapping,
|
|
39819
|
+
sectionHeading,
|
|
39820
|
+
country: country2,
|
|
39821
|
+
legalEntityId,
|
|
39822
|
+
handleAddressSearch,
|
|
39823
|
+
handleFindAddress,
|
|
39824
|
+
targetPage
|
|
39825
|
+
}) {
|
|
39826
|
+
const {
|
|
39827
|
+
i18n
|
|
39828
|
+
} = useI18nContext();
|
|
39829
|
+
const getFieldName = (fieldKey) => fieldMapping[fieldKey] ?? fieldKey;
|
|
39830
|
+
const getFieldData = (fieldKey) => {
|
|
39831
|
+
const fieldData = data[getFieldName(fieldKey)];
|
|
39832
|
+
return fieldData ? fieldData.toString() : void 0;
|
|
39833
|
+
};
|
|
39834
|
+
const addressRequiredFields = ["address", "otherAddressInformation", "postalCode", "city", "country"];
|
|
39835
|
+
const addressData = {
|
|
39836
|
+
address: getFieldData("address"),
|
|
39837
|
+
otherAddressInformation: getFieldData("otherAddressInformation"),
|
|
39838
|
+
postalCode: getFieldData("postalCode"),
|
|
39839
|
+
city: getFieldData("city"),
|
|
39840
|
+
stateOrProvince: getFieldData("stateOrProvince"),
|
|
39841
|
+
country: getFieldData("country")
|
|
39842
|
+
};
|
|
39843
|
+
const handleChangeForAddress = (state2) => {
|
|
39844
|
+
Object.entries(state2.data).forEach(([key, value]) => {
|
|
39845
|
+
const fieldName = getFieldName(key);
|
|
39846
|
+
const addressEvent = {
|
|
39847
|
+
target: {
|
|
39848
|
+
name: fieldName,
|
|
39849
|
+
value
|
|
39850
|
+
}
|
|
39851
|
+
};
|
|
39852
|
+
handleChangeFor(fieldName)(addressEvent);
|
|
39853
|
+
});
|
|
39854
|
+
};
|
|
39855
|
+
return jsxs(Fragment, {
|
|
39856
|
+
children: [jsx(Typography, {
|
|
39857
|
+
el: "h3",
|
|
39858
|
+
variant: "title",
|
|
39859
|
+
children: i18n.get(sectionHeading || "registeredAddress")
|
|
39860
|
+
}), jsx(Typography, {
|
|
39861
|
+
el: "h3",
|
|
39862
|
+
variant: "caption",
|
|
39863
|
+
children: i18n.get("addressRegisteredWithSecretaryOfState")
|
|
39864
|
+
}), jsx(Field, {
|
|
39865
|
+
name: getFieldName("isThisAddressTheMainHeadquarters"),
|
|
39866
|
+
classNameModifiers: ["highExposureBusinessInformation"],
|
|
39867
|
+
label: i18n.get("isThisAddressTheMainHeadquarters", {
|
|
39868
|
+
values: {
|
|
39869
|
+
company: (legalEntity == null ? void 0 : legalEntity.organization) ? legalEntity.organization.legalName : ""
|
|
39870
|
+
}
|
|
39871
|
+
}),
|
|
39872
|
+
errorMessage: formUtils.getErrorMessage(getFieldName("isThisAddressTheMainHeadquarters"), errors, fieldProblems),
|
|
39873
|
+
children: (childProps) => jsx(RadioGroup, {
|
|
39874
|
+
...childProps,
|
|
39875
|
+
name: "isThisAddressTheMainHeadquarters",
|
|
39876
|
+
items: highExposureRadioItems,
|
|
39877
|
+
value: getFieldData("isThisAddressTheMainHeadquarters"),
|
|
39878
|
+
disabled: false,
|
|
39879
|
+
onChange: handleChangeFor(getFieldName("isThisAddressTheMainHeadquarters")),
|
|
39880
|
+
"aria-required": true,
|
|
39881
|
+
"aria-label": i18n.get("isThisAddressTheMainHeadquarters"),
|
|
39882
|
+
"aria-invalid": !valid[getFieldName("isThisAddressTheMainHeadquarters")]
|
|
39883
|
+
})
|
|
39884
|
+
}), jsx(Address, {
|
|
39885
|
+
data: addressData,
|
|
39886
|
+
countryCode: country2,
|
|
39887
|
+
id: targetPage,
|
|
39888
|
+
legalEntityId,
|
|
39889
|
+
handleAddressSearch,
|
|
39890
|
+
handleFindAddress,
|
|
39891
|
+
requiredFields: addressRequiredFields,
|
|
39892
|
+
shouldValidate: true,
|
|
39893
|
+
onChange: handleChangeForAddress
|
|
39894
|
+
})]
|
|
39895
|
+
});
|
|
39896
|
+
}
|
|
39897
|
+
const parentCompanyFieldMapping = {
|
|
37788
39898
|
legalName: "parentLegalName",
|
|
37789
39899
|
legalForm: "parentLegalForm",
|
|
37790
39900
|
naceCode: "parentNaceCode",
|
|
@@ -37792,9 +39902,22 @@ const parentCompanyFieldMapping$1 = {
|
|
|
37792
39902
|
doesTheCompanyEarnMoreThanHalf: "doesTheParentCompanyEarnMoreThanHalf",
|
|
37793
39903
|
doesYourCompanyHaveLEI: "doesYourParentCompanyHaveLEI",
|
|
37794
39904
|
legalEntityIdentifier: "parentLegalEntityIdentifier",
|
|
37795
|
-
doesNotKnowNumberOfEmployees: "doesNotKnowParentNumberOfEmployees"
|
|
37796
|
-
|
|
37797
|
-
|
|
39905
|
+
doesNotKnowNumberOfEmployees: "doesNotKnowParentNumberOfEmployees",
|
|
39906
|
+
isThisAddressTheMainHeadquarters: "isParentCompanyAddressTheMainHeadquarters",
|
|
39907
|
+
address: "parentCompanyAddress",
|
|
39908
|
+
otherAddressInformation: "parentCompanyOtherAddressInformation",
|
|
39909
|
+
postalCode: "parentCompanyPostalCode",
|
|
39910
|
+
city: "parentCompanyCity",
|
|
39911
|
+
stateOrProvince: "parentCompanyStateOrProvince",
|
|
39912
|
+
country: "parentCompanyCountry",
|
|
39913
|
+
financialReportingDate: "financialReportingDate",
|
|
39914
|
+
totalAssetsCurrency: "totalAssetsCurrency",
|
|
39915
|
+
totalAssetsValue: "totalAssetsValue",
|
|
39916
|
+
annualTurnoverCurrency: "annualTurnoverCurrency",
|
|
39917
|
+
annualTurnoverValue: "annualTurnoverValue",
|
|
39918
|
+
legalInformationInsolvency: "legalInformationInsolvency"
|
|
39919
|
+
};
|
|
39920
|
+
const highExposureParentCompanyDetailsFields = Object.values(parentCompanyFieldMapping);
|
|
37798
39921
|
function AdditionalFieldsForHighExposureParentCompany(props) {
|
|
37799
39922
|
const {
|
|
37800
39923
|
i18n
|
|
@@ -37826,6 +39949,7 @@ function AdditionalFieldsForHighExposureParentCompany(props) {
|
|
|
37826
39949
|
errors,
|
|
37827
39950
|
fieldProblems
|
|
37828
39951
|
});
|
|
39952
|
+
setDefaultCurrencies(data, props.country);
|
|
37829
39953
|
}, [data, valid, errors, fieldProblems]);
|
|
37830
39954
|
return jsxs("form", {
|
|
37831
39955
|
className: "adyen-kyc__high-exposure-company",
|
|
@@ -37853,11 +39977,47 @@ function AdditionalFieldsForHighExposureParentCompany(props) {
|
|
|
37853
39977
|
formUtils,
|
|
37854
39978
|
fieldProblems,
|
|
37855
39979
|
targetPage: HighExposurePagesEnums.PARENT_COMPANY_PAGE,
|
|
37856
|
-
fieldMapping: parentCompanyFieldMapping
|
|
39980
|
+
fieldMapping: parentCompanyFieldMapping
|
|
39981
|
+
}), jsx(HighExposureRegisteredAddress, {
|
|
39982
|
+
...props,
|
|
39983
|
+
country: props.country,
|
|
39984
|
+
handleChangeFor: highExposureHandleChangeFor,
|
|
39985
|
+
sectionHeading: "registeredAddress",
|
|
39986
|
+
errors,
|
|
39987
|
+
data,
|
|
39988
|
+
valid,
|
|
39989
|
+
formUtils,
|
|
39990
|
+
fieldProblems,
|
|
39991
|
+
targetPage: HighExposurePagesEnums.PARENT_COMPANY_PAGE,
|
|
39992
|
+
fieldMapping: parentCompanyFieldMapping,
|
|
39993
|
+
legalEntityId: props.legalEntityId,
|
|
39994
|
+
handleFindAddress: props.handleFindAddress,
|
|
39995
|
+
handleAddressSearch: props.handleAddressSearch
|
|
39996
|
+
}), jsx(HighExposureFinancialInformation, {
|
|
39997
|
+
...props,
|
|
39998
|
+
handleChangeFor: highExposureHandleChangeFor,
|
|
39999
|
+
errors,
|
|
40000
|
+
data,
|
|
40001
|
+
valid,
|
|
40002
|
+
country: props.country,
|
|
40003
|
+
formUtils,
|
|
40004
|
+
fieldProblems,
|
|
40005
|
+
targetPage: HighExposurePagesEnums.COMPANY_PAGE,
|
|
40006
|
+
fieldMapping: parentCompanyFieldMapping
|
|
40007
|
+
}), jsx(HighExposureLegalInformation, {
|
|
40008
|
+
...props,
|
|
40009
|
+
handleChangeFor: highExposureHandleChangeFor,
|
|
40010
|
+
errors,
|
|
40011
|
+
data,
|
|
40012
|
+
valid,
|
|
40013
|
+
formUtils,
|
|
40014
|
+
fieldProblems,
|
|
40015
|
+
targetPage: HighExposurePagesEnums.COMPANY_PAGE,
|
|
40016
|
+
fieldMapping: parentCompanyFieldMapping
|
|
37857
40017
|
})]
|
|
37858
40018
|
});
|
|
37859
40019
|
}
|
|
37860
|
-
const
|
|
40020
|
+
const ultimateParentCompanyFieldMapping = {
|
|
37861
40021
|
legalName: "ultimateParentLegalName",
|
|
37862
40022
|
legalForm: "ultimateParentLegalForm",
|
|
37863
40023
|
naceCode: "ultimateParentNaceCode",
|
|
@@ -37865,9 +40025,22 @@ const parentCompanyFieldMapping = {
|
|
|
37865
40025
|
doesTheCompanyEarnMoreThanHalf: "doesTheUltimateParentCompanyEarnMoreThanHalf",
|
|
37866
40026
|
doesYourCompanyHaveLEI: "doesYourUltimateParentCompanyHaveLEI",
|
|
37867
40027
|
legalEntityIdentifier: "ultimateParentLegalEntityIdentifier",
|
|
37868
|
-
doesNotKnowNumberOfEmployees: "doesNotKnowUltimateParentNumberOfEmployees"
|
|
37869
|
-
|
|
37870
|
-
|
|
40028
|
+
doesNotKnowNumberOfEmployees: "doesNotKnowUltimateParentNumberOfEmployees",
|
|
40029
|
+
isThisAddressTheMainHeadquarters: "isUltimateParentCompanyAddressTheMainHeadquarters",
|
|
40030
|
+
address: "ultimateParentCompanyAddress",
|
|
40031
|
+
otherAddressInformation: "ultimateParentCompanyOtherAddressInformation",
|
|
40032
|
+
postalCode: "ultimateParentCompanyPostalCode",
|
|
40033
|
+
city: "ultimateParentCompanyCity",
|
|
40034
|
+
stateOrProvince: "ultimateParentCompanyStateOrProvince",
|
|
40035
|
+
country: "ultimateParentCompanyCountry",
|
|
40036
|
+
financialReportingDate: "financialReportingDate",
|
|
40037
|
+
totalAssetsCurrency: "totalAssetsCurrency",
|
|
40038
|
+
totalAssetsValue: "totalAssetsValue",
|
|
40039
|
+
annualTurnoverCurrency: "annualTurnoverCurrency",
|
|
40040
|
+
annualTurnoverValue: "annualTurnoverValue",
|
|
40041
|
+
legalInformationInsolvency: "legalInformationInsolvency"
|
|
40042
|
+
};
|
|
40043
|
+
const highExposureUltimateParentCompanyDetailsFields = Object.values(ultimateParentCompanyFieldMapping);
|
|
37871
40044
|
function AdditionalFieldsForHighExposureUltimateParentCompany(props) {
|
|
37872
40045
|
const {
|
|
37873
40046
|
i18n
|
|
@@ -37899,6 +40072,7 @@ function AdditionalFieldsForHighExposureUltimateParentCompany(props) {
|
|
|
37899
40072
|
errors,
|
|
37900
40073
|
fieldProblems
|
|
37901
40074
|
});
|
|
40075
|
+
setDefaultCurrencies(data, props.country);
|
|
37902
40076
|
}, [data, valid, errors, fieldProblems]);
|
|
37903
40077
|
return jsxs("form", {
|
|
37904
40078
|
className: "adyen-kyc__high-exposure-company",
|
|
@@ -37926,7 +40100,43 @@ function AdditionalFieldsForHighExposureUltimateParentCompany(props) {
|
|
|
37926
40100
|
formUtils,
|
|
37927
40101
|
fieldProblems,
|
|
37928
40102
|
targetPage: HighExposurePagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
37929
|
-
fieldMapping:
|
|
40103
|
+
fieldMapping: ultimateParentCompanyFieldMapping
|
|
40104
|
+
}), jsx(HighExposureRegisteredAddress, {
|
|
40105
|
+
...props,
|
|
40106
|
+
country: props.country,
|
|
40107
|
+
handleChangeFor: highExposureHandleChangeFor,
|
|
40108
|
+
sectionHeading: "registeredAddress",
|
|
40109
|
+
errors,
|
|
40110
|
+
data,
|
|
40111
|
+
valid,
|
|
40112
|
+
formUtils,
|
|
40113
|
+
fieldProblems,
|
|
40114
|
+
targetPage: HighExposurePagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
40115
|
+
fieldMapping: ultimateParentCompanyFieldMapping,
|
|
40116
|
+
legalEntityId: props.legalEntityId,
|
|
40117
|
+
handleFindAddress: props.handleFindAddress,
|
|
40118
|
+
handleAddressSearch: props.handleAddressSearch
|
|
40119
|
+
}), jsx(HighExposureFinancialInformation, {
|
|
40120
|
+
...props,
|
|
40121
|
+
handleChangeFor: highExposureHandleChangeFor,
|
|
40122
|
+
errors,
|
|
40123
|
+
data,
|
|
40124
|
+
valid,
|
|
40125
|
+
country: props.country,
|
|
40126
|
+
formUtils,
|
|
40127
|
+
fieldProblems,
|
|
40128
|
+
targetPage: HighExposurePagesEnums.COMPANY_PAGE,
|
|
40129
|
+
fieldMapping: ultimateParentCompanyFieldMapping
|
|
40130
|
+
}), jsx(HighExposureLegalInformation, {
|
|
40131
|
+
...props,
|
|
40132
|
+
handleChangeFor: highExposureHandleChangeFor,
|
|
40133
|
+
errors,
|
|
40134
|
+
data,
|
|
40135
|
+
valid,
|
|
40136
|
+
formUtils,
|
|
40137
|
+
fieldProblems,
|
|
40138
|
+
targetPage: HighExposurePagesEnums.COMPANY_PAGE,
|
|
40139
|
+
fieldMapping: ultimateParentCompanyFieldMapping
|
|
37930
40140
|
})]
|
|
37931
40141
|
});
|
|
37932
40142
|
}
|
|
@@ -37947,6 +40157,11 @@ const highExposureForms = {
|
|
|
37947
40157
|
fields: [...highExposureCompanyDetailsFields]
|
|
37948
40158
|
}
|
|
37949
40159
|
};
|
|
40160
|
+
const highExposureFormsRequiredFields = {
|
|
40161
|
+
company: highExposureForms.company.fields,
|
|
40162
|
+
parentCompany: highExposureForms.company.fields,
|
|
40163
|
+
ultimateParentCompany: highExposureForms.company.fields
|
|
40164
|
+
};
|
|
37950
40165
|
const parentCompanyFormId = highExposureForms.parentCompany.formId;
|
|
37951
40166
|
const companyFormId = highExposureForms.company.formId;
|
|
37952
40167
|
const ultimateParentCompanyFormId = highExposureForms.ultimateParentCompany.formId;
|
|
@@ -37973,13 +40188,17 @@ function HighExposureDropinComponent(props) {
|
|
|
37973
40188
|
legalEntityId: props.legalEntityId,
|
|
37974
40189
|
heading: i18n.get("parentCompanyDetails"),
|
|
37975
40190
|
id: companyFormId,
|
|
37976
|
-
country: props.country
|
|
40191
|
+
country: props.country,
|
|
40192
|
+
handleFindAddress: props.handleFindAddress,
|
|
40193
|
+
handleAddressSearch: props.handleAddressSearch
|
|
37977
40194
|
}), activeForm.formId === ultimateParentCompanyFormId && jsx(AdditionalFieldsForHighExposureUltimateParentCompany, {
|
|
37978
40195
|
...highExposureUltimateParentCompanyDetailsFormProps,
|
|
37979
40196
|
legalEntityId: props.legalEntityId,
|
|
37980
40197
|
heading: i18n.get("ultimateParentCompanyDetails"),
|
|
37981
40198
|
id: companyFormId,
|
|
37982
|
-
country: props.country
|
|
40199
|
+
country: props.country,
|
|
40200
|
+
handleFindAddress: props.handleFindAddress,
|
|
40201
|
+
handleAddressSearch: props.handleAddressSearch
|
|
37983
40202
|
})]
|
|
37984
40203
|
})
|
|
37985
40204
|
});
|
|
@@ -37991,7 +40210,7 @@ function HighExposureDropinComponent(props) {
|
|
|
37991
40210
|
const parseConfiguration = ({
|
|
37992
40211
|
matchingScenario
|
|
37993
40212
|
}) => parseHighExposureScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.ORGANIZATION]);
|
|
37994
|
-
const logger$
|
|
40213
|
+
const logger$8 = createLogger("UpdateLegalEntityForHighExposure");
|
|
37995
40214
|
const customLabels = {
|
|
37996
40215
|
company: {
|
|
37997
40216
|
legalForm: "businessStructure",
|
|
@@ -38004,7 +40223,14 @@ const customLabels = {
|
|
|
38004
40223
|
parentNumberOfEmployees: "numberOfEmployees",
|
|
38005
40224
|
doesTheParentCompanyEarnMoreThanHalf: "doesTheCompanyEarnMoreThanHalf",
|
|
38006
40225
|
doesYourParentCompanyHaveLEI: "doesThisCompanyHaveLEI",
|
|
38007
|
-
parentLegalEntityIdentifier: "legalEntityIdentifier"
|
|
40226
|
+
parentLegalEntityIdentifier: "legalEntityIdentifier",
|
|
40227
|
+
isParentCompanyAddressTheMainHeadquarters: "isThisAddressTheMainHeadquarters",
|
|
40228
|
+
parentCompanyAddress: "address",
|
|
40229
|
+
parentCompanyCity: "city",
|
|
40230
|
+
parentCompanyPostalCode: "postalCode",
|
|
40231
|
+
parentCompanyStateOrProvince: "stateOrProvince",
|
|
40232
|
+
parentCompanyOtherAddressInformation: "otherAddressInformation",
|
|
40233
|
+
parentCompanyCountry: "country"
|
|
38008
40234
|
},
|
|
38009
40235
|
ultimateParentCompany: {
|
|
38010
40236
|
ultimateParentLegalName: "legalName",
|
|
@@ -38013,7 +40239,14 @@ const customLabels = {
|
|
|
38013
40239
|
ultimateParentNumberOfEmployees: "numberOfEmployees",
|
|
38014
40240
|
doesTheUltimateParentCompanyEarnMoreThanHalf: "doesTheCompanyEarnMoreThanHalf",
|
|
38015
40241
|
doesYourUltimateParentCompanyHaveLEI: "doesThisCompanyHaveLEI",
|
|
38016
|
-
ultimateParentLegalEntityIdentifier: "legalEntityIdentifier"
|
|
40242
|
+
ultimateParentLegalEntityIdentifier: "legalEntityIdentifier",
|
|
40243
|
+
isUltimateParentCompanyAddressTheMainHeadquarters: "isThisAddressTheMainHeadquarters",
|
|
40244
|
+
ultimateParentCompanyAddress: "address",
|
|
40245
|
+
ultimateParentCompanyCity: "city",
|
|
40246
|
+
ultimateParentCompanyPostalCode: "postalCode",
|
|
40247
|
+
ultimateParentCompanyStateOrProvince: "stateOrProvince",
|
|
40248
|
+
ultimateParentCompanyOtherAddressInformation: "otherAddressInformation",
|
|
40249
|
+
ultimateParentCompanyCountry: "country"
|
|
38017
40250
|
}
|
|
38018
40251
|
};
|
|
38019
40252
|
function UpdateLegalEntityForHighExposure({
|
|
@@ -38032,7 +40265,9 @@ function UpdateLegalEntityForHighExposure({
|
|
|
38032
40265
|
}) {
|
|
38033
40266
|
var _a, _b, _c;
|
|
38034
40267
|
const {
|
|
38035
|
-
getLegalEntity: getLegalEntity2
|
|
40268
|
+
getLegalEntity: getLegalEntity2,
|
|
40269
|
+
getAddress: getAddress2,
|
|
40270
|
+
searchAddress: searchAddress2
|
|
38036
40271
|
} = useComponentApi(legalEntityId);
|
|
38037
40272
|
const {
|
|
38038
40273
|
i18n
|
|
@@ -38049,7 +40284,7 @@ function UpdateLegalEntityForHighExposure({
|
|
|
38049
40284
|
useEffect(() => {
|
|
38050
40285
|
(async () => {
|
|
38051
40286
|
await fetchLegalEntity();
|
|
38052
|
-
})().catch(logger$
|
|
40287
|
+
})().catch(logger$8.error);
|
|
38053
40288
|
}, [fetchLegalEntity]);
|
|
38054
40289
|
const dataFromResponse = legalEntity ? mapLegalEntityToHighExposure(legalEntity) : {};
|
|
38055
40290
|
const [data, setData] = useState(dataFromResponse);
|
|
@@ -38084,9 +40319,11 @@ function UpdateLegalEntityForHighExposure({
|
|
|
38084
40319
|
} = useStateContext();
|
|
38085
40320
|
const formValidity = currentState.validityByForm;
|
|
38086
40321
|
useEffect(() => {
|
|
38087
|
-
|
|
40322
|
+
const newState = {
|
|
40323
|
+
...data,
|
|
38088
40324
|
...currentState.data
|
|
38089
|
-
}
|
|
40325
|
+
};
|
|
40326
|
+
setData(newState);
|
|
38090
40327
|
onChange == null ? void 0 : onChange(currentState);
|
|
38091
40328
|
}, [currentState]);
|
|
38092
40329
|
useEffect(() => {
|
|
@@ -38113,9 +40350,9 @@ function UpdateLegalEntityForHighExposure({
|
|
|
38113
40350
|
setHighExposureRequiredForms(updateForms);
|
|
38114
40351
|
}, [(_a = data == null ? void 0 : data.company) == null ? void 0 : _a.isCompanyOwnedByAnotherCompany, (_b = data == null ? void 0 : data.company) == null ? void 0 : _b.isParentOwnedByAnotherCompany]);
|
|
38115
40352
|
const forms2 = useMemo(() => {
|
|
38116
|
-
const requiredForms = getRequiredForms(highExposureRequiredForms,
|
|
40353
|
+
const requiredForms = getRequiredForms(highExposureRequiredForms, highExposureFormsRequiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields);
|
|
38117
40354
|
return addValidityToForms(requiredForms, formValidity, problems);
|
|
38118
|
-
}, [derivedProps == null ? void 0 : derivedProps.optionalFields,
|
|
40355
|
+
}, [derivedProps == null ? void 0 : derivedProps.optionalFields, formValidity, highExposureRequiredForms, problems]);
|
|
38119
40356
|
const onSubmit = async () => {
|
|
38120
40357
|
setLoadingStatus("loading");
|
|
38121
40358
|
const exposureDetails = mapHighExposureToLegalEntity(data);
|
|
@@ -38210,7 +40447,9 @@ function UpdateLegalEntityForHighExposure({
|
|
|
38210
40447
|
problems,
|
|
38211
40448
|
shouldValidate,
|
|
38212
40449
|
ref: formRef,
|
|
38213
|
-
legalEntity
|
|
40450
|
+
legalEntity,
|
|
40451
|
+
handleFindAddress: getAddress2,
|
|
40452
|
+
handleAddressSearch: searchAddress2
|
|
38214
40453
|
})
|
|
38215
40454
|
});
|
|
38216
40455
|
}
|
|
@@ -38250,7 +40489,7 @@ const contentMap = {
|
|
|
38250
40489
|
function getContentByStatus(status) {
|
|
38251
40490
|
return contentMap[status];
|
|
38252
40491
|
}
|
|
38253
|
-
const logger$
|
|
40492
|
+
const logger$7 = createLogger("ViewVerificationStatusComponent");
|
|
38254
40493
|
function ViewVerificationStatusComponent({
|
|
38255
40494
|
legalEntityId,
|
|
38256
40495
|
hideExplanation = false,
|
|
@@ -38277,7 +40516,7 @@ function ViewVerificationStatusComponent({
|
|
|
38277
40516
|
if (!onboardingStatus) return;
|
|
38278
40517
|
const statusContent = getContentByStatus(onboardingStatus);
|
|
38279
40518
|
if (statusContent) return statusContent;
|
|
38280
|
-
logger$
|
|
40519
|
+
logger$7.error(`there is no content for status "${onboardingStatus}"`);
|
|
38281
40520
|
}, [onboardingStatus]);
|
|
38282
40521
|
const handleError = ({
|
|
38283
40522
|
trKey,
|
|
@@ -38287,7 +40526,7 @@ function ViewVerificationStatusComponent({
|
|
|
38287
40526
|
setAlertContent(trKey);
|
|
38288
40527
|
}
|
|
38289
40528
|
if (error) {
|
|
38290
|
-
logger$
|
|
40529
|
+
logger$7.error(error);
|
|
38291
40530
|
}
|
|
38292
40531
|
if (typeof onError === "function") {
|
|
38293
40532
|
const userMessage = trKey ? i18n.get(trKey) : "";
|
|
@@ -38316,7 +40555,7 @@ function ViewVerificationStatusComponent({
|
|
|
38316
40555
|
error
|
|
38317
40556
|
});
|
|
38318
40557
|
}
|
|
38319
|
-
})().catch(logger$
|
|
40558
|
+
})().catch(logger$7.error);
|
|
38320
40559
|
}, [legalEntityId, getOnboardingStatus2]);
|
|
38321
40560
|
const [loadingLinkStatus, setLinkLoadingStatus] = useState("success");
|
|
38322
40561
|
const redirectToAdyen = async () => {
|
|
@@ -38540,6 +40779,50 @@ const loadDocumentGuidance = async (loadingContext) => {
|
|
|
38540
40779
|
}, null, "text");
|
|
38541
40780
|
document.body.insertBefore(buildSpriteDOMFromResponse(responseData), document.body.firstChild);
|
|
38542
40781
|
};
|
|
40782
|
+
const logger$6 = createLogger("loadCountries");
|
|
40783
|
+
const countriesImports = /* @__PURE__ */ Object.assign({ "./de-DE.json": () => import("./de-DE-Cx8Uim1K.js"), "./el-GR.json": () => import("./el-GR-B7_JR3z5.js"), "./en-US.json": () => import("./en-US-CkdCbOCX.js"), "./es-ES.json": () => import("./es-ES-NBv3HHhn.js"), "./fr-FR.json": () => import("./fr-FR-DdSVMVsp.js"), "./it-IT.json": () => import("./it-IT-Bwdk3zuj.js"), "./ja-JP.json": () => import("./ja-JP-Bsvzm8zu.js"), "./nl-NL.json": () => import("./nl-NL-DofKaNkk.js"), "./pt-PT.json": () => import("./pt-PT-DFEvMD1M.js"), "./ru-RU.json": () => import("./ru-RU-PiM0ZI5h.js"), "./sv-SE.json": () => import("./sv-SE-C0GoLwTg.js"), "./zh-CN.json": () => import("./zh-CN-DJs6Hct-.js"), "./zh-TW.json": () => import("./zh-TW-BWhLbns8.js") });
|
|
40784
|
+
const loadCountriesDataset = async (locale) => {
|
|
40785
|
+
const importForLocale = countriesImports[`./${locale}.json`];
|
|
40786
|
+
if (!importForLocale) {
|
|
40787
|
+
logger$6.warn(`No countries dataset for ${locale}, falling back to en-US`);
|
|
40788
|
+
return import("./en-US-CkdCbOCX.js");
|
|
40789
|
+
}
|
|
40790
|
+
return (await importForLocale()).default;
|
|
40791
|
+
};
|
|
40792
|
+
const logger$5 = createLogger("loadStates");
|
|
40793
|
+
const statesImports = /* @__PURE__ */ Object.assign({ "./AU/en-US.json": () => import("./en-US-CQv3D6--.js"), "./BR/en-US.json": () => import("./en-US-eaysbh-g.js"), "./BR/pt-BR.json": () => import("./pt-BR-CNtbeGFJ.js"), "./CA/en-US.json": () => import("./en-US-gM26UC0X.js"), "./NZ/en-US.json": () => import("./en-US-CLmaFLwu.js"), "./US/en-US.json": () => import("./en-US-7uBFgKyC.js") });
|
|
40794
|
+
const loadStatesDataset = async (country2, locale) => {
|
|
40795
|
+
const importForLocale = statesImports[`./${country2}/${locale}.json`];
|
|
40796
|
+
if (!importForLocale) {
|
|
40797
|
+
logger$5.warn(`No ${country2} states dataset for ${locale}, falling back to en-US`);
|
|
40798
|
+
const fallbackImport = statesImports[`./${country2}/en-US.json`];
|
|
40799
|
+
return (await fallbackImport()).default;
|
|
40800
|
+
}
|
|
40801
|
+
return (await importForLocale()).default;
|
|
40802
|
+
};
|
|
40803
|
+
const loadDataset = async (identifier, locale) => {
|
|
40804
|
+
if (identifier === datasetIdentifier.country) {
|
|
40805
|
+
return loadCountriesDataset(locale);
|
|
40806
|
+
}
|
|
40807
|
+
if (identifier.startsWith("states")) {
|
|
40808
|
+
const country2 = identifier.slice(identifier.indexOf("/") + 1);
|
|
40809
|
+
return loadStatesDataset(country2, locale);
|
|
40810
|
+
}
|
|
40811
|
+
throw new Error(`Unknown dataset: ${identifier}`);
|
|
40812
|
+
};
|
|
40813
|
+
const getDataset = async (identifier, locale) => {
|
|
40814
|
+
const datasetUtils = datasetUtilities(locale);
|
|
40815
|
+
const dataset = datasetUtils.getDataset(identifier);
|
|
40816
|
+
if (dataset) {
|
|
40817
|
+
return new Promise((resolve) => {
|
|
40818
|
+
resolve(dataset);
|
|
40819
|
+
});
|
|
40820
|
+
}
|
|
40821
|
+
return loadDataset(identifier, locale).then((datasetResponse) => {
|
|
40822
|
+
datasetUtils.setDataset(identifier, datasetResponse);
|
|
40823
|
+
return datasetResponse;
|
|
40824
|
+
});
|
|
40825
|
+
};
|
|
38543
40826
|
const getAllowedLocales$1 = async (context) => {
|
|
38544
40827
|
const {
|
|
38545
40828
|
loadingContext,
|
|
@@ -38656,7 +40939,7 @@ const getEmbeddedApi = ({
|
|
|
38656
40939
|
loadingContext: loadingContextWithRootLEAuth,
|
|
38657
40940
|
legalEntityId: rootLegalEntityId
|
|
38658
40941
|
};
|
|
38659
|
-
const datasetsBaseUrl =
|
|
40942
|
+
const datasetsBaseUrl = `${loadingContext}datasets/`;
|
|
38660
40943
|
return {
|
|
38661
40944
|
getConfiguration: async () => {
|
|
38662
40945
|
const [scenarios, tasks] = await Promise.all([getScenarios(baseRequestContext), getTasks(baseRequestContext)]);
|
|
@@ -38667,10 +40950,7 @@ const getEmbeddedApi = ({
|
|
|
38667
40950
|
taskList: tasks
|
|
38668
40951
|
};
|
|
38669
40952
|
},
|
|
38670
|
-
getDataset
|
|
38671
|
-
...baseRequestContext,
|
|
38672
|
-
loadingContext
|
|
38673
|
-
}, datasetIdentifier2, locale),
|
|
40953
|
+
getDataset,
|
|
38674
40954
|
loadDocumentGuidance: async () => loadDocumentGuidance(base),
|
|
38675
40955
|
getImageUrl: () => `${base}static/images/`,
|
|
38676
40956
|
getAllowedCountries: async () => getSupportedCountries(baseRequestContext),
|
|
@@ -38720,30 +41000,6 @@ const getConfiguration = async (context, request) => {
|
|
|
38720
41000
|
clientKey
|
|
38721
41001
|
}, request);
|
|
38722
41002
|
};
|
|
38723
|
-
const getDataset = async (context, name, locale) => {
|
|
38724
|
-
const {
|
|
38725
|
-
loadingContext,
|
|
38726
|
-
clientKey
|
|
38727
|
-
} = context;
|
|
38728
|
-
const datasetUtils = datasetUtilities(locale);
|
|
38729
|
-
const dataset = datasetUtils.getDataset(name);
|
|
38730
|
-
if (dataset) {
|
|
38731
|
-
return new Promise((resolve) => {
|
|
38732
|
-
resolve(dataset);
|
|
38733
|
-
});
|
|
38734
|
-
}
|
|
38735
|
-
const path = locale ? `datasets/${name}/${locale}` : `datasets/${name}`;
|
|
38736
|
-
return httpGet({
|
|
38737
|
-
loadingContext,
|
|
38738
|
-
errorLevel: "warn",
|
|
38739
|
-
errorMessage: `Dataset ${name} is not available`,
|
|
38740
|
-
path,
|
|
38741
|
-
clientKey
|
|
38742
|
-
}).then((datasetResponse) => {
|
|
38743
|
-
datasetUtils.setDataset(name, datasetResponse);
|
|
38744
|
-
return datasetResponse;
|
|
38745
|
-
});
|
|
38746
|
-
};
|
|
38747
41003
|
const validatePhoneNumber = async (context, phoneNumber2) => {
|
|
38748
41004
|
const {
|
|
38749
41005
|
loadingContext,
|
|
@@ -38811,10 +41067,7 @@ const getKycExternalApi = ({
|
|
|
38811
41067
|
loadingContext,
|
|
38812
41068
|
clientKey
|
|
38813
41069
|
}),
|
|
38814
|
-
getDataset
|
|
38815
|
-
loadingContext,
|
|
38816
|
-
clientKey
|
|
38817
|
-
}, name, locale),
|
|
41070
|
+
getDataset,
|
|
38818
41071
|
loadDocumentGuidance: async () => loadDocumentGuidance(loadingContext),
|
|
38819
41072
|
verifyIdNumber: async (request) => verifyIdNumber({
|
|
38820
41073
|
loadingContext,
|
|
@@ -38843,7 +41096,7 @@ const ConfigurationApiProvider = ({
|
|
|
38843
41096
|
isEmbeddedDropin,
|
|
38844
41097
|
loadingContext
|
|
38845
41098
|
} = authContext;
|
|
38846
|
-
const sdkVersion = "2.
|
|
41099
|
+
const sdkVersion = "2.49.0";
|
|
38847
41100
|
useAnalytics({
|
|
38848
41101
|
onUserEvent,
|
|
38849
41102
|
legalEntityId: rootLegalEntityId,
|
|
@@ -38933,6 +41186,14 @@ const useAllowedLocales = () => {
|
|
|
38933
41186
|
}, []);
|
|
38934
41187
|
return allowedLocales;
|
|
38935
41188
|
};
|
|
41189
|
+
const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-CoqHl2bN.js"), "./locales/cs-CZ.json": () => import("./cs-CZ-ZdZfgN7e.js"), "./locales/da-DK.json": () => import("./da-DK-C7YJ7z9G.js"), "./locales/de-DE.json": () => import("./de-DE-DMNSJNzU.js"), "./locales/el-GR.json": () => import("./el-GR-DHIn4T0S.js"), "./locales/en-US.json": () => Promise.resolve().then(() => enUS), "./locales/es-ES.json": () => import("./es-ES-vjMWXX0n.js"), "./locales/et-EE.json": () => import("./et-EE-l01e62JA.js"), "./locales/fi-FI.json": () => import("./fi-FI-PTCWFrgt.js"), "./locales/fr-FR.json": () => import("./fr-FR-B7wXGYyE.js"), "./locales/hr-HR.json": () => import("./hr-HR-0Te7j2ww.js"), "./locales/hu-HU.json": () => import("./hu-HU-C-m6xnU2.js"), "./locales/it-IT.json": () => import("./it-IT-D1_ouE9J.js"), "./locales/lt-LT.json": () => import("./lt-LT-DKt8_B2y.js"), "./locales/lv-LV.json": () => import("./lv-LV-DMln1gKL.js"), "./locales/nl-NL.json": () => import("./nl-NL-Djq-MOEC.js"), "./locales/no-NO.json": () => import("./no-NO-D1_9_3C7.js"), "./locales/pl-PL.json": () => import("./pl-PL-DO4KOscW.js"), "./locales/pt-PT.json": () => import("./pt-PT-CNr5u8b-.js"), "./locales/ro-RO.json": () => import("./ro-RO-DNWzwnJ-.js"), "./locales/sk-SK.json": () => import("./sk-SK-BOIEQnje.js"), "./locales/sl-SI.json": () => import("./sl-SI-fpzqRd_U.js"), "./locales/sv-SE.json": () => import("./sv-SE-DyLW6PPo.js") });
|
|
41190
|
+
const loadLocale = async (locale) => {
|
|
41191
|
+
const importForLocale = localeImports[`./locales/${locale}.json`];
|
|
41192
|
+
if (!importForLocale) {
|
|
41193
|
+
throw new Error(`Locale ${locale} is not supported.`);
|
|
41194
|
+
}
|
|
41195
|
+
return (await importForLocale()).default;
|
|
41196
|
+
};
|
|
38936
41197
|
const logger = createLogger("useTranslations");
|
|
38937
41198
|
const useTranslations = ({
|
|
38938
41199
|
locale,
|
|
@@ -38942,9 +41203,6 @@ const useTranslations = ({
|
|
|
38942
41203
|
translations: defaultTranslation,
|
|
38943
41204
|
locale: FALLBACK_LOCALE
|
|
38944
41205
|
});
|
|
38945
|
-
const {
|
|
38946
|
-
getDataset: getDataset2
|
|
38947
|
-
} = useConfigurationApi();
|
|
38948
41206
|
useEffect(() => {
|
|
38949
41207
|
if (!allowedLocales) return;
|
|
38950
41208
|
const isLocaleAllowed = allowedLocales.includes(locale);
|
|
@@ -38962,13 +41220,13 @@ const useTranslations = ({
|
|
|
38962
41220
|
});
|
|
38963
41221
|
return;
|
|
38964
41222
|
}
|
|
38965
|
-
|
|
41223
|
+
loadLocale(localeToUse).then((dataset) => {
|
|
38966
41224
|
setLoaded({
|
|
38967
41225
|
translations: dataset,
|
|
38968
41226
|
locale: localeToUse
|
|
38969
41227
|
});
|
|
38970
41228
|
}).catch((err) => logger.error("Error while loading translations", err));
|
|
38971
|
-
}, [locale, allowedLocales, loaded.locale
|
|
41229
|
+
}, [locale, allowedLocales, loaded.locale]);
|
|
38972
41230
|
return loaded;
|
|
38973
41231
|
};
|
|
38974
41232
|
const I18nProvider = ({
|