@adyen/kyc-components 3.22.1 → 3.23.1

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.
Files changed (94) hide show
  1. package/dist/es/adyen-kyc-components.es.js +2681 -365
  2. package/dist/es/bg-BG-CoqHl2bN.js +4067 -0
  3. package/dist/es/cs-CZ-ZdZfgN7e.js +4067 -0
  4. package/dist/es/da-DK-C7YJ7z9G.js +4067 -0
  5. package/dist/es/de-DE-Cx8Uim1K.js +985 -0
  6. package/dist/es/de-DE-DMNSJNzU.js +4067 -0
  7. package/dist/es/el-GR-B7_JR3z5.js +985 -0
  8. package/dist/es/el-GR-DHIn4T0S.js +4067 -0
  9. package/dist/es/en-US-7uBFgKyC.js +209 -0
  10. package/dist/es/en-US-CLmaFLwu.js +73 -0
  11. package/dist/es/en-US-CQv3D6--.js +37 -0
  12. package/dist/es/en-US-CkdCbOCX.js +985 -0
  13. package/dist/es/en-US-eaysbh-g.js +113 -0
  14. package/dist/es/en-US-gM26UC0X.js +57 -0
  15. package/dist/es/es-ES-NBv3HHhn.js +985 -0
  16. package/dist/es/es-ES-vjMWXX0n.js +4067 -0
  17. package/dist/es/et-EE-l01e62JA.js +4067 -0
  18. package/dist/es/fi-FI-PTCWFrgt.js +4067 -0
  19. package/dist/es/fr-FR-B7wXGYyE.js +4067 -0
  20. package/dist/es/fr-FR-DdSVMVsp.js +985 -0
  21. package/dist/es/hr-HR-0Te7j2ww.js +4067 -0
  22. package/dist/es/hu-HU-C-m6xnU2.js +4067 -0
  23. package/dist/es/it-IT-Bwdk3zuj.js +985 -0
  24. package/dist/es/it-IT-D1_ouE9J.js +4067 -0
  25. package/dist/es/ja-JP-Bsvzm8zu.js +985 -0
  26. package/dist/es/lt-LT-DKt8_B2y.js +4067 -0
  27. package/dist/es/lv-LV-DMln1gKL.js +4067 -0
  28. package/dist/es/nl-NL-Djq-MOEC.js +4067 -0
  29. package/dist/es/nl-NL-DofKaNkk.js +985 -0
  30. package/dist/es/no-NO-D1_9_3C7.js +4067 -0
  31. package/dist/es/phonePrefixes-GXP6tTuV.js +728 -0
  32. package/dist/es/pl-PL-DO4KOscW.js +4067 -0
  33. package/dist/es/pt-BR-CNtbeGFJ.js +113 -0
  34. package/dist/es/pt-PT-CNr5u8b-.js +4067 -0
  35. package/dist/es/pt-PT-DFEvMD1M.js +985 -0
  36. package/dist/es/ro-RO-DNWzwnJ-.js +4067 -0
  37. package/dist/es/ru-RU-PiM0ZI5h.js +985 -0
  38. package/dist/es/sk-SK-BOIEQnje.js +4067 -0
  39. package/dist/es/sl-SI-fpzqRd_U.js +4067 -0
  40. package/dist/es/sv-SE-C0GoLwTg.js +985 -0
  41. package/dist/es/sv-SE-DyLW6PPo.js +4067 -0
  42. package/dist/es/zh-CN-DJs6Hct-.js +985 -0
  43. package/dist/es/zh-TW-BWhLbns8.js +985 -0
  44. package/dist/style.css +672 -395
  45. package/dist/types/components/BasicInformation/component/BasicInformationComponent.d.ts +1 -1
  46. package/dist/types/components/BasicInformation/types.d.ts +4 -0
  47. package/dist/types/components/Dropins/HighExposureDropin/components/AdditionalFieldsForHighExposureParentCompany.d.ts +2 -1
  48. package/dist/types/components/Dropins/HighExposureDropin/components/AmountSelector/AmountSelector.d.ts +2 -0
  49. package/dist/types/components/Dropins/HighExposureDropin/components/AmountSelector/types.d.ts +16 -0
  50. package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureDropinComponent.d.ts +1 -0
  51. package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureFinancialInformation.d.ts +3 -0
  52. package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureLegalInformation.d.ts +3 -0
  53. package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureRegisteredAddress.d.ts +4 -0
  54. package/dist/types/components/Dropins/HighExposureDropin/defaultCurrencies.d.ts +3 -0
  55. package/dist/types/components/Dropins/HighExposureDropin/types.d.ts +82 -6
  56. package/dist/types/components/Individual/types.d.ts +2 -1
  57. package/dist/types/components/Individual/validators.d.ts +4 -1
  58. package/dist/types/components/PersonalDetails/component/PersonalDetailsComponent.d.ts +6 -0
  59. package/dist/types/components/PersonalDetails/types.d.ts +4 -0
  60. package/dist/types/components/ProofOfRelationship/index.d.ts +4 -0
  61. package/dist/types/components/ProofOfRelationship/types.d.ts +19 -0
  62. package/dist/types/components/StepProgressIndicator/StepProgressIndicator.d.ts +2 -1
  63. package/dist/types/components/TaskList/types.d.ts +2 -1
  64. package/dist/types/components/internal/Button/Button.d.ts +1 -1
  65. package/dist/types/components/internal/Button/types.d.ts +1 -0
  66. package/dist/types/components/internal/PhoneInput/PhoneInput.d.ts +2 -0
  67. package/dist/types/components/internal/PhoneInput/types.d.ts +0 -2
  68. package/dist/types/components/internal/PhoneInput/validate.d.ts +2 -2
  69. package/dist/types/core/Context/ConfigurationApiContext/ConfigurationApiContext.d.ts +2 -1
  70. package/dist/types/core/Services/agnostic/get-dataset.d.ts +3 -0
  71. package/dist/types/core/Services/componentApi/get-provider-status.d.ts +3 -0
  72. package/dist/types/core/Services/componentApi/index.d.ts +0 -1
  73. package/dist/types/core/Services/kycExternalApi/index.d.ts +0 -1
  74. package/dist/types/core/hooks/useAssociatedLegalRepresentative.d.ts +6 -0
  75. package/dist/types/core/hooks/useComponentApi.d.ts +2 -0
  76. package/dist/types/core/hooks/useDataset.d.ts +3 -2
  77. package/dist/types/core/models/api/data-set.d.ts +3 -3
  78. package/dist/types/core/models/api/document.d.ts +2 -1
  79. package/dist/types/core/models/api/legal-entity-association.d.ts +3 -1
  80. package/dist/types/core/models/api/provider-status.d.ts +12 -0
  81. package/dist/types/datasets/countries/loadCountries.d.ts +3 -0
  82. package/dist/types/datasets/states/loadStatesDataset.d.ts +3 -0
  83. package/dist/types/language/loadLocale.d.ts +2 -0
  84. package/dist/types/utils/birth-date-utils.d.ts +14 -1
  85. package/dist/types/utils/datasetUtil.d.ts +3 -5
  86. package/dist/types/utils/dynamicImports.d.ts +4 -2
  87. package/dist/types/utils/entity-association-util.d.ts +1 -0
  88. package/dist/types/utils/mapping/mapping.d.ts +1 -1
  89. package/dist/types/utils/roleMetadata.d.ts +1 -1
  90. package/package.json +1 -1
  91. package/dist/types/components/internal/ContextHelper/ContextHelper.d.ts +0 -6
  92. package/dist/types/components/internal/Disclaimer/Disclaimer.d.ts +0 -8
  93. package/dist/types/core/Services/componentApi/get-dataset.d.ts +0 -3
  94. package/dist/types/core/Services/kycExternalApi/get-dataset.d.ts +0 -3
@@ -1416,6 +1416,33 @@ const doesThisCompanyHaveLEI = "Does this company have a Legal Entity Identifier
1416
1416
  const iDontKnow = "I don't know";
1417
1417
  const becauseYoureUnderXWeNeedToCollectInformationAboutALegalRepresentative = "Because you're under %{age}, we need to collect information about a legal representative in another step";
1418
1418
  const aLegalRepresentativeIsRequired = "A legal representative is required";
1419
+ const addressRegisteredWithSecretaryOfState = "Address registered with the Secretary of State for this company.";
1420
+ const isThisAddressTheMainHeadquarters = "Is this address the main headquarters?";
1421
+ const legalRepresentative = "Legal representative";
1422
+ const legalRepresentativeDetails = "Legal representative details";
1423
+ const failedFetchingLegalRepresentative = "Failed to get legal representative details";
1424
+ const legalRepresentativeFor = "legal representative for: %{firstName} %{lastName}";
1425
+ const relationshipTo = "Relationship to %{firstName} %{lastName}";
1426
+ const parent = "parent";
1427
+ const guardian = "guardian";
1428
+ const proofOfRelationship = "Proof of relationship";
1429
+ const birthCertificate = "Birth certificate";
1430
+ const guardianshipCertificate = "Guardianship certificate";
1431
+ const adoptionCertificate = "Adoption certificate";
1432
+ const financialInformation = "Financial information";
1433
+ const totalAssets = "Total assets";
1434
+ const totalAssetsHelper = "Total liabilities plus total equity";
1435
+ const annualTurnover = "Annual turnover";
1436
+ const annualTurnoverHelper = "The annual sales revenue minus all discounts and sales taxes. Also known as net sales.";
1437
+ const financialReportingDate = "Financial reporting date";
1438
+ const financialReportingDateHelper = "The date on which total assets and annual turnover were calculated is often the balance sheet date";
1439
+ const legalInformation = "Legal information";
1440
+ const legalInformationInsolvency = "Is this company involved in any legal proceedings related to insolvency?";
1441
+ const yesJudicialAdministration = "Yes, the company is under judicial administration, receivership or similar measures";
1442
+ const yesBankruptcyInsolvency = "Yes, the company is filling for bankruptcy or insolvency";
1443
+ const yesOtherLegalMeasures = "Yes, the company is facing other legal measures";
1444
+ const totalAssetsCurrency = "Total assets currency";
1445
+ const totalAssetsValue = "Total assets value";
1419
1446
  const defaultTrans = {
1420
1447
  smartling,
1421
1448
  close,
@@ -2803,8 +2830,1443 @@ const defaultTrans = {
2803
2830
  doesThisCompanyHaveLEI,
2804
2831
  iDontKnow,
2805
2832
  becauseYoureUnderXWeNeedToCollectInformationAboutALegalRepresentative,
2806
- aLegalRepresentativeIsRequired
2807
- };
2833
+ aLegalRepresentativeIsRequired,
2834
+ addressRegisteredWithSecretaryOfState,
2835
+ isThisAddressTheMainHeadquarters,
2836
+ legalRepresentative,
2837
+ legalRepresentativeDetails,
2838
+ failedFetchingLegalRepresentative,
2839
+ legalRepresentativeFor,
2840
+ relationshipTo,
2841
+ parent,
2842
+ guardian,
2843
+ proofOfRelationship,
2844
+ birthCertificate,
2845
+ guardianshipCertificate,
2846
+ adoptionCertificate,
2847
+ financialInformation,
2848
+ totalAssets,
2849
+ totalAssetsHelper,
2850
+ annualTurnover,
2851
+ annualTurnoverHelper,
2852
+ financialReportingDate,
2853
+ financialReportingDateHelper,
2854
+ legalInformation,
2855
+ legalInformationInsolvency,
2856
+ yesJudicialAdministration,
2857
+ yesBankruptcyInsolvency,
2858
+ yesOtherLegalMeasures,
2859
+ totalAssetsCurrency,
2860
+ totalAssetsValue
2861
+ };
2862
+ const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2863
+ __proto__: null,
2864
+ CCIAA,
2865
+ CNPJ,
2866
+ DIC,
2867
+ ICO,
2868
+ MBO,
2869
+ MBS,
2870
+ Mehrwertsteuernummer,
2871
+ NIF,
2872
+ NIFdeIVA,
2873
+ NIP,
2874
+ NIPC,
2875
+ NZBN,
2876
+ NumeroDeTVA,
2877
+ PDVIdBrojOIB,
2878
+ PVMmoketojoKodas,
2879
+ RFC,
2880
+ RfcDocument,
2881
+ SINFormatCA,
2882
+ SSNFormatUS,
2883
+ SSNFormatUS9Digits,
2884
+ SST,
2885
+ YTunnus,
2886
+ aLegalRepresentativeIsRequired,
2887
+ aPartnership,
2888
+ aPartnershipDescription,
2889
+ aTrust,
2890
+ aTrustDescription,
2891
+ aValidAbnShouldBe11Digits,
2892
+ aValidBrnShouldBe8Digits,
2893
+ aValidUenOrGstShouldBe9To10Characters,
2894
+ acceptedDocumentsForGovernment,
2895
+ acceptedDocumentsForNonProfit,
2896
+ acceptedDocumentsForPartnerships,
2897
+ acceptedDocumentsForPrivateCompanies,
2898
+ acceptedDocumentsForPublicCompanies,
2899
+ accountCantBeSetUp,
2900
+ accountDetailsDescription,
2901
+ accountHolder,
2902
+ accountHolderDescriptionCompany,
2903
+ accountHolderDescriptionIndividual,
2904
+ accountHolderDescriptionSoleProp,
2905
+ accountHolderTerms,
2906
+ accountName,
2907
+ accountNumber,
2908
+ accountNumberOrIbanVisible,
2909
+ accountNumberVisible,
2910
+ accountVerification,
2911
+ achRoutingNumber,
2912
+ acknowledgePciRequirements,
2913
+ add,
2914
+ addAndVerifyYourBankDetails,
2915
+ addAnotherBankAccount,
2916
+ addBankDetails,
2917
+ addDecisionMaker,
2918
+ addEntityOwner,
2919
+ addExtraBankAccount,
2920
+ addExtraPayinAccount,
2921
+ addExtraPayoutAccount,
2922
+ addManually,
2923
+ addMissingBankDetails,
2924
+ addOwnerToTrustMember,
2925
+ addPayinAccount,
2926
+ addPayoutAccount,
2927
+ addTrustMember,
2928
+ additionalInformationFormDescription,
2929
+ additionalInformationFormHeading,
2930
+ additionalInformationFormName,
2931
+ additionalInformationIsRequiredForLoan,
2932
+ address,
2933
+ addressRegisteredWithSecretaryOfState,
2934
+ addresses,
2935
+ adoptionCertificate,
2936
+ adyenKeepsDataAsLongAsLegallyRequired,
2937
+ adyenWillOnlyGetTemporaryAccess,
2938
+ anAssociation,
2939
+ anAssociationDescription,
2940
+ anLEIIsAUniqueCode,
2941
+ andResubmit,
2942
+ annualReport,
2943
+ annualTurnover,
2944
+ annualTurnoverHelper,
2945
+ apartmentSuite,
2946
+ apartmentSuiteOptional,
2947
+ areYouACompany,
2948
+ areYouAnIndividual,
2949
+ areYouSureToLeave,
2950
+ arithmosEngraphes,
2951
+ articlesOfIncorporation,
2952
+ arvonlisaveronumeroMervardesskattenummer,
2953
+ association,
2954
+ associationIncorporated,
2955
+ associationIncorporatedDescription,
2956
+ australianBusinessNumberAbn,
2957
+ australianBusinessNumberAcn,
2958
+ back,
2959
+ backPage,
2960
+ backToTaskList,
2961
+ bankAccount,
2962
+ bankAccountCountryRegion,
2963
+ bankAccountDetails,
2964
+ bankAccountFormat,
2965
+ bankAccountHasToBeInYourCompanyName,
2966
+ bankAccountHasToBeInYourName,
2967
+ bankAccountNameIndividual,
2968
+ bankAccountNameOrganization,
2969
+ bankAccountNameWithSoleProprietor,
2970
+ bankAccountNameWithTrust,
2971
+ bankAccountNameWithTrust_US,
2972
+ bankAccountNumber,
2973
+ bankAccountToHaveSameNameAsTrust,
2974
+ bankAccountVerification,
2975
+ bankCityTown,
2976
+ bankCode,
2977
+ bankCountry,
2978
+ bankDetails,
2979
+ bankDetailsBeingProcessed,
2980
+ bankDetailsNotVerified,
2981
+ bankDetailsVerified,
2982
+ bankDocument,
2983
+ bankDocumentDescription,
2984
+ bankDocumentFileDescription,
2985
+ bankDocumentHeader,
2986
+ bankDocumentHeaderOptional,
2987
+ bankName,
2988
+ bankStatementAlreadyUploaded,
2989
+ bankStatementDocument,
2990
+ basedOnTheAboveSignatory,
2991
+ basicInformation,
2992
+ basicInformationFormHeading,
2993
+ basicInformationFormName,
2994
+ becauseYoureUnderXWeNeedToCollectInformationAboutALegalRepresentative,
2995
+ beforeYourCapitalLoanApplicationCanBeSubmitted,
2996
+ belowTaxThreshold,
2997
+ beneficiariesDetailsIncl,
2998
+ beneficiary,
2999
+ beneficiaryGuideDescription,
3000
+ bic,
3001
+ bicSwift,
3002
+ birthCertificate,
3003
+ birthDate,
3004
+ birthdate,
3005
+ branchCode,
3006
+ branchNumber,
3007
+ browse,
3008
+ bsbCode,
3009
+ bsbNumber,
3010
+ btwNummer,
3011
+ businessAccountDetailsDescription,
3012
+ businessAccountDetailsDescriptionReview,
3013
+ businessAccountTerms,
3014
+ businessDetails,
3015
+ businessEntityDescription,
3016
+ businessEntityTitle,
3017
+ businessIncorporationNumber,
3018
+ businessInformation,
3019
+ businessName,
3020
+ businessNumber,
3021
+ businessRegistrationDocument__FR,
3022
+ businessSelection__failedToLoad,
3023
+ businessSelection__footer,
3024
+ businessSelection__footerButton,
3025
+ businessSelection__heading,
3026
+ businessSelection__invalidTin,
3027
+ businessSelection__searching,
3028
+ businessSelection__verifying,
3029
+ businessStructure,
3030
+ businessTrust,
3031
+ businessTrusteeDetails,
3032
+ byClickingSignIAcknowledgeAndAgree,
3033
+ byClickingSubmitReview,
3034
+ byProceedingToTheNextStepYouConfirmThatYouHaveReadUnderstandAndAcceptTheTerms,
3035
+ cadastroDePessoasFisicas,
3036
+ canNotCompleteInstantVerification,
3037
+ cancel,
3038
+ cantSetUpAcccount,
3039
+ capitalUserTerms,
3040
+ cardUserTerms,
3041
+ cashManagementTrust,
3042
+ certificateOfFormation,
3043
+ certificateOfIncorporation,
3044
+ certificateOfIncumbency,
3045
+ certificateOfVoterRegistration,
3046
+ chRegistrationNumber,
3047
+ chamberOfCommerceExtract,
3048
+ chamberOfCommerceRegistrationNumber,
3049
+ changeYourBusinessSetup,
3050
+ charitableTrust,
3051
+ charityNumber,
3052
+ charter,
3053
+ check,
3054
+ city,
3055
+ cityTown,
3056
+ clearingCode,
3057
+ clearingNumber,
3058
+ close,
3059
+ codNumericPersonal,
3060
+ code,
3061
+ codiceFiscale,
3062
+ codulDeIdentificareFiscala,
3063
+ company,
3064
+ companyBasicsFormName,
3065
+ companyDetails,
3066
+ companyLegalName,
3067
+ companyLookupResultsHeader,
3068
+ companyLookupResultsHeaderDescription__noResults,
3069
+ companyLookupResultsHeaderDescription__results,
3070
+ companyLookupResultsHeaderDescription__searchFailure,
3071
+ companyLookupResultsHeader__noResults,
3072
+ companyLookupResultsHeader__results,
3073
+ companyLookupResultsHeader__searchFailure,
3074
+ companyLookupResultsHeader__searching,
3075
+ companyLookupResultsHeader__verifying,
3076
+ companyLookupResultsListAlert__description__warning,
3077
+ companyLookupResultsListAlert__title__error,
3078
+ companyLookupResultsListAlert__title__verified,
3079
+ companyLookupResultsListAlert__title__warning,
3080
+ companyName,
3081
+ companyNumber,
3082
+ companyNumberNZ,
3083
+ companyOtherDetailsFormName,
3084
+ companyProfile,
3085
+ companyRegistrationAddressFormDescription,
3086
+ companyRegistrationAddressFormName,
3087
+ companyRegistrationDocument,
3088
+ companyRegistrationDocumentFormDescription,
3089
+ companyRegistrationDocumentFormHeading,
3090
+ companyRegistrationDocumentFormName,
3091
+ companyRegistrationNumber,
3092
+ companyRegistrationNumber__HK,
3093
+ companyStructure,
3094
+ companyStructureFormDescription,
3095
+ companyStructureFormName,
3096
+ companyTaxDocumentFormDescription,
3097
+ companyTaxDocumentFormHeading,
3098
+ companyTaxDocumentFormName,
3099
+ companyTrustee,
3100
+ companyTrusteeDetails,
3101
+ companyType,
3102
+ complete,
3103
+ completeAddingAccount,
3104
+ completeReview,
3105
+ confirm,
3106
+ confirmPayoutManually,
3107
+ constitutionalDocument,
3108
+ constitutionalDocument__header,
3109
+ constitutionalDocument__headerDescription,
3110
+ contactDetails,
3111
+ containsNameOfCompany,
3112
+ continueCompany,
3113
+ continueIndividual,
3114
+ contributionBelowThreshold,
3115
+ controllingPerson,
3116
+ controllingPersonDescription,
3117
+ controllingPersonGuideDescription,
3118
+ controllingPersonOfTrust,
3119
+ corporateUnitTrust,
3120
+ correctErrorsResubmit,
3121
+ couldNotCompleteAccountCheck,
3122
+ couldNotEstablishBankConnection,
3123
+ country,
3124
+ countryOfGoverningLaw,
3125
+ countryRegionOfEstablishment,
3126
+ countryWithoutVatOrGstSystem,
3127
+ country__US__business,
3128
+ currency,
3129
+ currencyCode,
3130
+ currencyPlaceholder,
3131
+ cyRegistrationNumber,
3132
+ dateDeedWasSigned,
3133
+ dateOfIncorporation,
3134
+ dateOnDocumentNoOlderThanXMonths,
3135
+ datePlaceholder,
3136
+ dbaName,
3137
+ deceased,
3138
+ deceasedEstate,
3139
+ decisionMaker,
3140
+ decisionMakerDescription,
3141
+ decisionMakers,
3142
+ default: defaultTrans,
3143
+ definedBeneficiary,
3144
+ definedBeneficiaryDescription,
3145
+ depositSlip,
3146
+ describeWhoIsABeneficiaryInYourTrust,
3147
+ description,
3148
+ descriptionOptional,
3149
+ descriptionUndefinedBeneficiary,
3150
+ detCentralePersonregister,
3151
+ differentCountryOfGoverningLaw,
3152
+ director,
3153
+ directorDescription,
3154
+ directorGuideDescription,
3155
+ discretionaryInvestmentTrust,
3156
+ discretionaryServicesManagementTrust,
3157
+ discretionaryTradingTrust,
3158
+ discretionaryTrust,
3159
+ dni,
3160
+ doNotHaveBusinessIncorporationNumber,
3161
+ doNotHaveBusinessNumber,
3162
+ doNotHaveChRegistrationNumber,
3163
+ doNotHaveEIN,
3164
+ doNotHaveFirmenbuchnummer,
3165
+ doNotHaveHandelsregisternummer,
3166
+ doNotHaveLtRegistrationNumber,
3167
+ doNotHaveLuRegistrationNumber,
3168
+ doNotHaveOrganisationsnummer,
3169
+ doNotHaveRegonKrsNumber,
3170
+ doNotHaveTaxIdNumber,
3171
+ doNotHaveYTunnus,
3172
+ documentAddressedToName,
3173
+ documentCannotBeDamaged,
3174
+ documentIssuedByGovernmentAuthority,
3175
+ documentNotExpiredOrDamaged,
3176
+ documentRequirements,
3177
+ documentShowsTaxIdOfCompany,
3178
+ documentType,
3179
+ documentVerification,
3180
+ documents,
3181
+ doesTheCompanyEarnMoreThanHalf,
3182
+ doesThisCompanyHaveLEI,
3183
+ doesYourCompanyHaveLEI,
3184
+ doingBusinessAs,
3185
+ doingBusinessAsNameFiling,
3186
+ doingBusinessAsNameFiling__FR,
3187
+ doingBusinessAsNameFiling__US,
3188
+ dontHaveAccessOnlineBanking,
3189
+ download,
3190
+ downloadACopy,
3191
+ downloadAsPdf,
3192
+ dragYourFilesHereOr,
3193
+ driverLicense,
3194
+ driversLicense,
3195
+ drivinglicenseBack,
3196
+ drivinglicenseFront,
3197
+ duplicatedFiles,
3198
+ edit,
3199
+ editDecisionMakerDetails,
3200
+ editDetails,
3201
+ editEntityDetails,
3202
+ editEntityOwner,
3203
+ editOwnerOfTrustMember,
3204
+ editTrustMember,
3205
+ ein,
3206
+ einVerificationLetter,
3207
+ email,
3208
+ employerIdentificationNumber,
3209
+ enter1LetterAndThenNDigitsForExample,
3210
+ enter1LetterAndThenXToYDigitsForExample,
3211
+ enterAMaximumOfNCharactersForExample,
3212
+ enterAMaximumOfNCharactersWithAMixForExample,
3213
+ enterAMaximumOfNDigitsForExample,
3214
+ enterAMaximumOfNMoreDigitsForExample,
3215
+ enterLastNDigitsForExample,
3216
+ enterLastNameExactlyAsAppearInID,
3217
+ enterNCharactersForExample,
3218
+ enterNCharactersWithAMixForExample,
3219
+ enterNDigitsAndThen1LetterForExample,
3220
+ enterNDigitsForExample,
3221
+ enterNLettersAndThenXToYDigitsForExample,
3222
+ enterNameExactlyAsAppearInID,
3223
+ enterSettlorsFirstNameExactlyAsItAppearsInID,
3224
+ enterSettlorsLastNameExactlyAsItAppearsInID,
3225
+ enterTheDetailsYourself,
3226
+ enterTheRemainingNCharactersForExample,
3227
+ enterTheRemainingNDigitsForExample,
3228
+ enterTheRemainingNDigitsThenXToYLettersForExample,
3229
+ enterTheRemainingXToYCharactersForExample,
3230
+ enterTheRemainingXToYDigitsForExample,
3231
+ enterValidAccountDetails,
3232
+ enterValidRegistrationNumber,
3233
+ enterValid_,
3234
+ enterXOrYCharactersForExample,
3235
+ enterXOrYDigitsForExample,
3236
+ enterXToYCharactersForExample,
3237
+ enterXToYCharactersWithAMixForExample,
3238
+ enterXToYDigitsForExample,
3239
+ enterXToYLettersAndThenWToZDigitsForExample,
3240
+ enterpriseNumber,
3241
+ entityEstablishingTrust,
3242
+ entityOwning25OrMoreOfTrust,
3243
+ entityType,
3244
+ errorMessage_1_10,
3245
+ errorMessage_1_1000,
3246
+ errorMessage_1_1001,
3247
+ errorMessage_1_1002,
3248
+ errorMessage_1_1003,
3249
+ errorMessage_1_11,
3250
+ errorMessage_1_12,
3251
+ errorMessage_1_30,
3252
+ errorMessage_1_3000,
3253
+ errorMessage_1_3001,
3254
+ errorMessage_1_3002,
3255
+ errorMessage_1_3003,
3256
+ errorMessage_1_3004,
3257
+ errorMessage_1_3005,
3258
+ errorMessage_1_3006,
3259
+ errorMessage_1_3007,
3260
+ errorMessage_1_3008,
3261
+ errorMessage_1_3009,
3262
+ errorMessage_1_3010,
3263
+ errorMessage_1_3011,
3264
+ errorMessage_1_3012,
3265
+ errorMessage_1_3013,
3266
+ errorMessage_1_3014,
3267
+ errorMessage_1_3015,
3268
+ errorMessage_1_3016,
3269
+ errorMessage_1_3017,
3270
+ errorMessage_1_3018,
3271
+ errorMessage_1_3019,
3272
+ errorMessage_1_3020,
3273
+ errorMessage_1_3021,
3274
+ errorMessage_1_3022,
3275
+ errorMessage_1_3023,
3276
+ errorMessage_1_3024,
3277
+ errorMessage_1_3025,
3278
+ errorMessage_1_3026,
3279
+ errorMessage_1_3027,
3280
+ errorMessage_1_3028,
3281
+ errorMessage_1_3029,
3282
+ errorMessage_1_3030,
3283
+ errorMessage_1_3031,
3284
+ errorMessage_1_3032,
3285
+ errorMessage_1_3033,
3286
+ errorMessage_1_3034,
3287
+ errorMessage_1_3035,
3288
+ errorMessage_1_3036,
3289
+ errorMessage_1_3037,
3290
+ errorMessage_1_3038,
3291
+ errorMessage_1_3039,
3292
+ errorMessage_1_3040,
3293
+ errorMessage_1_3041,
3294
+ errorMessage_1_3042,
3295
+ errorMessage_1_3043,
3296
+ errorMessage_1_3044,
3297
+ errorMessage_1_3045,
3298
+ errorMessage_1_3046,
3299
+ errorMessage_1_3047,
3300
+ errorMessage_1_3048,
3301
+ errorMessage_1_3049,
3302
+ errorMessage_1_3050,
3303
+ errorMessage_1_3051,
3304
+ errorMessage_1_3052,
3305
+ errorMessage_1_3062,
3306
+ errorMessage_1_31,
3307
+ errorMessage_1_32,
3308
+ errorMessage_1_33,
3309
+ errorMessage_1_34,
3310
+ errorMessage_1_35,
3311
+ errorMessage_1_36,
3312
+ errorMessage_1_37,
3313
+ errorMessage_1_38,
3314
+ errorMessage_1_39,
3315
+ errorMessage_1_40,
3316
+ errorMessage_1_41,
3317
+ errorMessage_1_50,
3318
+ errorMessage_1_5000,
3319
+ errorMessage_1_5001,
3320
+ errorMessage_1_5002,
3321
+ errorMessage_1_5003,
3322
+ errorMessage_1_5004,
3323
+ errorMessage_1_5005,
3324
+ errorMessage_1_5006,
3325
+ errorMessage_1_5007,
3326
+ errorMessage_1_5008,
3327
+ errorMessage_1_5009,
3328
+ errorMessage_1_5010,
3329
+ errorMessage_1_5011,
3330
+ errorMessage_1_5012,
3331
+ errorMessage_1_5013,
3332
+ errorMessage_1_5014,
3333
+ errorMessage_1_5015,
3334
+ errorMessage_1_5016,
3335
+ errorMessage_1_5017,
3336
+ errorMessage_1_5018,
3337
+ errorMessage_1_5019,
3338
+ errorMessage_1_5020,
3339
+ errorMessage_1_5021,
3340
+ errorMessage_1_5022,
3341
+ errorMessage_1_5023,
3342
+ errorMessage_1_5024,
3343
+ errorMessage_1_5025,
3344
+ errorMessage_1_5026,
3345
+ errorMessage_1_5027,
3346
+ errorMessage_1_5028,
3347
+ errorMessage_1_5029,
3348
+ errorMessage_1_5030,
3349
+ errorMessage_1_5031,
3350
+ errorMessage_1_5032,
3351
+ errorMessage_1_5033,
3352
+ errorMessage_1_5034,
3353
+ errorMessage_1_5035,
3354
+ errorMessage_1_5036,
3355
+ errorMessage_1_5037,
3356
+ errorMessage_1_5038,
3357
+ errorMessage_1_5039,
3358
+ errorMessage_1_5040,
3359
+ errorMessage_1_5041,
3360
+ errorMessage_1_5042,
3361
+ errorMessage_1_5043,
3362
+ errorMessage_1_5044,
3363
+ errorMessage_1_5045,
3364
+ errorMessage_1_5046,
3365
+ errorMessage_1_5047,
3366
+ errorMessage_1_5048,
3367
+ errorMessage_1_5049,
3368
+ errorMessage_1_5050,
3369
+ errorMessage_1_5051,
3370
+ errorMessage_1_5052,
3371
+ errorMessage_1_5053,
3372
+ errorMessage_1_5067,
3373
+ errorMessage_1_51,
3374
+ errorMessage_1_52,
3375
+ errorMessage_1_53,
3376
+ errorMessage_1_54,
3377
+ errorMessage_1_55,
3378
+ errorMessage_1_56,
3379
+ errorMessage_1_57,
3380
+ errorMessage_1_60,
3381
+ errorMessage_1_6000,
3382
+ errorMessage_1_6001,
3383
+ errorMessage_1_6002,
3384
+ errorMessage_1_6003,
3385
+ errorMessage_1_6004,
3386
+ errorMessage_1_6005,
3387
+ errorMessage_1_6006,
3388
+ errorMessage_1_6007,
3389
+ errorMessage_1_6008,
3390
+ errorMessage_1_6009,
3391
+ errorMessage_1_6010,
3392
+ errorMessage_1_6011,
3393
+ errorMessage_1_6012,
3394
+ errorMessage_1_6013,
3395
+ errorMessage_1_6014,
3396
+ errorMessage_1_6015,
3397
+ errorMessage_1_6016,
3398
+ errorMessage_1_6017,
3399
+ errorMessage_1_6018,
3400
+ errorMessage_1_6019,
3401
+ errorMessage_1_6020,
3402
+ errorMessage_1_6021,
3403
+ errorMessage_1_6022,
3404
+ errorMessage_1_6023,
3405
+ errorMessage_1_6024,
3406
+ errorMessage_1_6025,
3407
+ errorMessage_1_6026,
3408
+ errorMessage_1_6027,
3409
+ errorMessage_1_6028,
3410
+ errorMessage_1_6029,
3411
+ errorMessage_1_6030,
3412
+ errorMessage_1_6031,
3413
+ errorMessage_1_6032,
3414
+ errorMessage_1_6033,
3415
+ errorMessage_1_6034,
3416
+ errorMessage_1_6035,
3417
+ errorMessage_1_6036,
3418
+ errorMessage_1_6037,
3419
+ errorMessage_1_6038,
3420
+ errorMessage_1_6039,
3421
+ errorMessage_1_6040,
3422
+ errorMessage_1_6041,
3423
+ errorMessage_1_6042,
3424
+ errorMessage_1_6044,
3425
+ errorMessage_1_6045,
3426
+ errorMessage_1_6046,
3427
+ errorMessage_1_6047,
3428
+ errorMessage_1_6048,
3429
+ errorMessage_1_6049,
3430
+ errorMessage_1_61,
3431
+ errorMessage_1_62,
3432
+ errorMessage_1_70,
3433
+ errorMessage_1_7000,
3434
+ errorMessage_1_7001,
3435
+ errorMessage_1_7002,
3436
+ errorMessage_1_7003,
3437
+ errorMessage_1_7004,
3438
+ errorMessage_1_7005,
3439
+ errorMessage_1_7006,
3440
+ errorMessage_1_7007,
3441
+ errorMessage_1_7008,
3442
+ errorMessage_1_7009,
3443
+ errorMessage_1_7010,
3444
+ errorMessage_1_7011,
3445
+ errorMessage_1_7012,
3446
+ errorMessage_1_7013,
3447
+ errorMessage_1_7014,
3448
+ errorMessage_1_7015,
3449
+ errorMessage_1_7016,
3450
+ errorMessage_1_7017,
3451
+ errorMessage_1_7018,
3452
+ errorMessage_1_7019,
3453
+ errorMessage_1_7020,
3454
+ errorMessage_1_7021,
3455
+ errorMessage_1_7022,
3456
+ errorMessage_1_71,
3457
+ errorMessage_1_72,
3458
+ errorMessage_1_73,
3459
+ errorMessage_1_74,
3460
+ errorMessage_1_75,
3461
+ errorMessage_1_76,
3462
+ errorMessage_2_8064,
3463
+ errorMessage_2_8067,
3464
+ errorMessage_2_8141,
3465
+ errorMessage_2_8162,
3466
+ errorMessage_2_8183,
3467
+ errorMessage_2_8189,
3468
+ errorMessage_2_8193,
3469
+ errorMessage_2_8196,
3470
+ errorMessage_3_10,
3471
+ euFinancialRegulationsRequireUs,
3472
+ euVatNumber,
3473
+ exemptedFromTax,
3474
+ extractFromMunicipalPersonalRecordsDatabase,
3475
+ failToLaunchSingpass,
3476
+ failedFetchingDecisionMaker,
3477
+ failedFetchingLegalRepresentative,
3478
+ failedInitializeInstantVerification,
3479
+ failedToDeletePayoutAccount,
3480
+ failedToDownloadAcceptedServiceAgreementDocument,
3481
+ failedToDownloadPci,
3482
+ failedToDownloadServiceAgreementDocument,
3483
+ failedToFetchAcceptedByName,
3484
+ failedToFetchLegalEntityDetails,
3485
+ failedToFetchPayoutAccount,
3486
+ failedToFetchRelevantAccounts,
3487
+ failedToFetchRelevantDocuments,
3488
+ failedToFetchSoleProp,
3489
+ failedToFetchTrustDetails,
3490
+ failedToFetchTrustMemberDetails,
3491
+ failedToGetPciStatus,
3492
+ failedToGetPciTemplate,
3493
+ failedToGetPciTemplateInSelectedLanguageFallbackToEn,
3494
+ failedToGetServiceAgreement,
3495
+ failedToGetServiceAgreementInSelectedLanguageFallbackToEn,
3496
+ failedToGetServiceAgreementStatus,
3497
+ failedToRemoveDecisionMaker,
3498
+ failedToRemoveTrustMember,
3499
+ failedToUpdateDetails,
3500
+ familyTrust,
3501
+ fieldHasUnsupportedFormats,
3502
+ fieldIsRequired,
3503
+ fileName,
3504
+ fileUpload,
3505
+ financialInformation,
3506
+ financialReportingDate,
3507
+ financialReportingDateHelper,
3508
+ firmenbuchnummer,
3509
+ firmenbuchnummerOrZVR,
3510
+ firstHomeSaverAccountsTrust,
3511
+ firstName,
3512
+ firstNameOfSettlor,
3513
+ fixedTrust,
3514
+ fixedUnitTrust,
3515
+ forExample_,
3516
+ formatIsCorrect,
3517
+ franchiseesTAndCs,
3518
+ frontPage,
3519
+ fullDocumentVisible,
3520
+ fullDocumentVisibleWithReadableText,
3521
+ fullLegalNamesOfAnyAppointers,
3522
+ getSetUpInstantly,
3523
+ getYourBusinessVerifiedDetails,
3524
+ getYourVerifiedDetailsInstantly,
3525
+ goBack,
3526
+ goBackAndProvideDocumentScans,
3527
+ goToDecisionMakers,
3528
+ goToIntroduction,
3529
+ goToMenu,
3530
+ goToOverview,
3531
+ goToOverviewFromIntroduction,
3532
+ good,
3533
+ governmentIssuedCorrespondence,
3534
+ governmentalOrganizationDescription,
3535
+ governmentalOrganizationTitle,
3536
+ grTaxId,
3537
+ gst,
3538
+ guardian,
3539
+ guardianshipCertificate,
3540
+ handelsregisternummer,
3541
+ hasBankStampOrBankSignature,
3542
+ hasDba,
3543
+ hasDba__helperText,
3544
+ hasToBeOfficialDocumentFromBank,
3545
+ helpUsVerifyCompany,
3546
+ hideDetails,
3547
+ hkid,
3548
+ howDoesVerificationWithOurPartnerWorks,
3549
+ howVerificationWithOnfidoWork,
3550
+ howWouldYouLikeToSetUpYourAccount,
3551
+ huRegistrationNumber,
3552
+ huTaxId,
3553
+ hybridTrust,
3554
+ iDoNotHaveGst,
3555
+ iDontHaveARegistrationNumber,
3556
+ iDontHaveATaxId,
3557
+ iDontHaveAVatNumber,
3558
+ iDontKnow,
3559
+ iHaveReadAndIAcceptTheseTerms,
3560
+ iStillCantFindIt,
3561
+ iban,
3562
+ ibanFormat,
3563
+ id,
3564
+ idDocument: idDocument$1,
3565
+ idDocumentAlreadyUploaded,
3566
+ idNumber,
3567
+ idUploadDocumentSubtitle,
3568
+ identificationNumber,
3569
+ identifikacionenNomerDDS,
3570
+ identityCard,
3571
+ identityCardBack,
3572
+ identityCardFront,
3573
+ identityNumberExempt,
3574
+ identityNumberExempt__CA,
3575
+ identityNumberExempt__US,
3576
+ ifNoOwnersSpecifyControllingPersons,
3577
+ imagesInColor,
3578
+ inReview,
3579
+ inTheLastStepOwnedByAParentCompany,
3580
+ inThePreviousStepOwnedByAnUltimateParentCompany,
3581
+ includeFrontAndBack,
3582
+ includesEIN,
3583
+ includesLegalCompanyName,
3584
+ individual,
3585
+ individualDetails,
3586
+ individualTrustee,
3587
+ individualTrusteeDetails,
3588
+ industryAndNaceCode,
3589
+ industryExemption,
3590
+ infoInUploadedDocumentIsTrue,
3591
+ informationCouldNotBeSubmitted,
3592
+ instant,
3593
+ instantIDVerificationDescription,
3594
+ instantVerification,
3595
+ instantVerificationDescription,
3596
+ institutionNumber,
3597
+ instructionNumber,
3598
+ introductionScreenAccountDescriptionP1,
3599
+ introductionScreenAccountDescriptionP2,
3600
+ introductionScreenAccountTitle,
3601
+ introductionScreenCompanyDescriptionLI1,
3602
+ introductionScreenCompanyDescriptionP1,
3603
+ introductionScreenCompanyDescriptionP2,
3604
+ introductionScreenCompanyTitle,
3605
+ introductionScreenDecisionMakerDescriptionLI1,
3606
+ introductionScreenDecisionMakerDescriptionLI2,
3607
+ introductionScreenDecisionMakerDescriptionLI3,
3608
+ introductionScreenDecisionMakerDescriptionP1,
3609
+ introductionScreenDecisionMakerDescriptionP2,
3610
+ introductionScreenDecisionMakerTitle,
3611
+ introductionScreenEpilogueDescriptionP1,
3612
+ introductionScreenEpilogueDescriptionP2,
3613
+ introductionScreenEpilogueTitle,
3614
+ introductionScreenIndividualDescriptionLI1,
3615
+ introductionScreenIndividualDescriptionLI2,
3616
+ introductionScreenIndividualDescriptionLI3,
3617
+ introductionScreenIndividualDescriptionP1,
3618
+ introductionScreenIndividualDescriptionP2,
3619
+ introductionScreenIndividualTitle,
3620
+ introductionScreenPrologueDescriptionP1,
3621
+ introductionScreenPrologueDescriptionP2,
3622
+ introductionScreenPrologueTitle,
3623
+ introductionScreenSoleProprietorCompanyDescriptionLI1,
3624
+ introductionScreenSoleProprietorCompanyDescriptionP1,
3625
+ introductionScreenSoleProprietorCompanyDescriptionP2,
3626
+ introductionScreenSoleProprietorCompanyTitle,
3627
+ introductionScreenTrustDescriptionLI1,
3628
+ introductionScreenTrustDescriptionP1,
3629
+ introductionScreenTrustDescriptionP2,
3630
+ introductionScreenTrustMemberDescriptionLI1,
3631
+ introductionScreenTrustMemberDescriptionLI2,
3632
+ introductionScreenTrustMemberDescriptionLI3,
3633
+ introductionScreenTrustMemberDescriptionP1,
3634
+ introductionScreenTrustMemberDescriptionP2,
3635
+ introductionScreenTrustMemberTitle,
3636
+ introductionScreenTrustTitle,
3637
+ invalidBirthDate,
3638
+ invalidDateOfBirth,
3639
+ invalidDateOfIncorporation,
3640
+ invalidEmail,
3641
+ invalidFormat,
3642
+ invalidFormatBankStatementDescription,
3643
+ invalidFormatExpects,
3644
+ invalidFormatForAuDriversLicenseCardNumber,
3645
+ invalidFormatForAuDriversLicenseNumber,
3646
+ invalidFormatForAuPassportNumber,
3647
+ invalidFormatForHKDriversLicenseNumber,
3648
+ invalidFormatForHKIdentityCardNumber,
3649
+ invalidFormatForHKPassportNumber,
3650
+ invalidFormatForNZDriversLicenseCardNumber,
3651
+ invalidFormatForNZDriversLicenseNumber,
3652
+ invalidFormatForNZPassportNumber,
3653
+ invalidFormatIdentityNumberBR,
3654
+ invalidFormatIdentityNumberCA,
3655
+ invalidFormatIdentityNumberDK,
3656
+ invalidFormatIdentityNumberES,
3657
+ invalidFormatIdentityNumberHK,
3658
+ invalidFormatIdentityNumberIT,
3659
+ invalidFormatIdentityNumberPL,
3660
+ invalidFormatIdentityNumberRO,
3661
+ invalidFormatIdentityNumberSE,
3662
+ invalidFormatIdentityNumberSG,
3663
+ invalidFormatIdentityNumberUS,
3664
+ invalidFormatIdentityNumberUS9,
3665
+ invalidPhoneNumber,
3666
+ invalidRegistrationNumber,
3667
+ invalidRole,
3668
+ irdDocument,
3669
+ irdNumber,
3670
+ irsCP575,
3671
+ irsScheduleK1,
3672
+ isCompanyOwnedByAnotherCompany,
3673
+ isOurTrustedPartnerHelpingSpeedUpSetup,
3674
+ isParentOwnedByAnotherCompany,
3675
+ isThisAddressTheMainHeadquarters,
3676
+ isTrustOperationAddressSame,
3677
+ issuedByTheTaxAuthority,
3678
+ issuedInTheLastXMonths,
3679
+ issuerState,
3680
+ jobTitle,
3681
+ jointlyOwnedBusinessWhereTwoOrMorePeopleOperateAndShareProfits,
3682
+ kaibemaksukohustuslaseNumber,
3683
+ krsNumber,
3684
+ last4DigitsOfSocialSecurityNumber,
3685
+ lastName,
3686
+ lastNameOfSettlor,
3687
+ learnMore,
3688
+ leave,
3689
+ legalCompanyName,
3690
+ legalCompanyName__US,
3691
+ legalCompanyName__helperText,
3692
+ legalCompanyName__helperText__AU,
3693
+ legalCompanyName__helperText__HK,
3694
+ legalCompanyName__helperText__NL,
3695
+ legalCompanyName__helperText__PR,
3696
+ legalCompanyName__helperText__SG,
3697
+ legalCompanyName__helperText__US,
3698
+ legalCompanyName__helperText__US__business,
3699
+ legalEntityIdentifier,
3700
+ legalForm,
3701
+ legalInformation,
3702
+ legalInformationInsolvency,
3703
+ legalName,
3704
+ legalNameOfSoleProprietor,
3705
+ legalNameOfSoleProprietorship,
3706
+ legalOwnerOfProperty,
3707
+ legalRepresentative,
3708
+ legalRepresentativeDetails,
3709
+ legalRepresentativeFor,
3710
+ legalStructure,
3711
+ legalStructureHeader,
3712
+ letUsKnowTheBankAccountToSendReceiveFunds,
3713
+ liRegistrationNumber,
3714
+ licenceVersionNumber,
3715
+ licenseCardNumber,
3716
+ licenseNumber,
3717
+ listedPublicUnitTrust,
3718
+ listitemVoidedChequeBankLetterBankStatementOnline,
3719
+ loading,
3720
+ localFormat,
3721
+ loginIntoYourBankingEnvironment,
3722
+ lookUpYourLEI,
3723
+ ltRegistrationNumber,
3724
+ luRegistrationNumber,
3725
+ lvRegistrationNumber,
3726
+ lvTaxId,
3727
+ madeAMistake,
3728
+ maintenanceModeMessage,
3729
+ makeSureToHaveYourTrustDeed,
3730
+ manualIDVerificationDescription,
3731
+ manualUpload,
3732
+ manualVerificationDescription,
3733
+ maximumFileSizeExceeded,
3734
+ mayTakeAFewDays,
3735
+ mcRegistrationNumber,
3736
+ mcRegistrationNumberSoleProp,
3737
+ meetingRecords,
3738
+ memberDetails,
3739
+ missingDetailsToPerformPayouts,
3740
+ missingMultipleDecisionMakers,
3741
+ mobileApplication,
3742
+ momsregistreringsnummer,
3743
+ momsregistreringsnummerCVR,
3744
+ momsregistreringsnummerOrStamregister,
3745
+ mortgageStatement,
3746
+ mvanummer,
3747
+ myInfoBusinessYouCanGetVerifiedDetails,
3748
+ myInfoYouCanGetVerifiedDetails,
3749
+ myName,
3750
+ myNameDescription,
3751
+ mySoleProprietorName,
3752
+ mySoleProprietorNameDescription,
3753
+ nameOfBankAccountHolder,
3754
+ nameOfTrust,
3755
+ nameOfTrustAgreement,
3756
+ nationalInsuranceNumber,
3757
+ nationality: nationality$1,
3758
+ naturalPersonDescription,
3759
+ naturalPersonTitle,
3760
+ needHelpYouCanAlwaysReachOutToCustomerSupport,
3761
+ next,
3762
+ nie,
3763
+ no,
3764
+ noGlare,
3765
+ noGoBack,
3766
+ noOptionsFound,
3767
+ nonProfitOrCharitableOrgDescription,
3768
+ nonProfitOrCharitableOrgTitle,
3769
+ noneOfTheAbove,
3770
+ notBlurry,
3771
+ notCutOff,
3772
+ notExpired,
3773
+ noteManualTakesLonger,
3774
+ nric,
3775
+ numarOrdineRegistrulComertului,
3776
+ number,
3777
+ numberOfEmployees,
3778
+ numeroDIdentificationALATaxe,
3779
+ numerodeIVA,
3780
+ objectOfCharitableTrust,
3781
+ objectOfTrust,
3782
+ obligatory,
3783
+ officialEmailOrALetterFromYourBank,
3784
+ oib,
3785
+ onOnlineBankingEnvironment,
3786
+ onboardingRedirectAwaitingCtaButton,
3787
+ onboardingRedirectAwaitingDescriptionP1,
3788
+ onboardingRedirectInReviewCtaButton,
3789
+ onboardingRedirectInReviewDescriptionP1,
3790
+ onboardingRedirectLinkError,
3791
+ onboardingRedirectOpenError,
3792
+ onboardingRedirectRejectedDescriptionP1,
3793
+ onboardingRedirectUnsuccessfulCtaButton,
3794
+ onboardingRedirectUnsuccessfulDescriptionP1,
3795
+ onboardingRedirectVerifiedDescriptionP1,
3796
+ onfidoIsOurTrustedPartner,
3797
+ onfidoWillGiveFeedbackInRealTime,
3798
+ onlyEnterNormalCharacters,
3799
+ operationalAddress,
3800
+ operationalAddressHeader,
3801
+ operationalAddressHeaderDescription,
3802
+ operationalAddressIsNotSameItemName,
3803
+ operationalAddressIsSame,
3804
+ operationalAddressIsSameItemName,
3805
+ optional,
3806
+ orSoleProprietorshipName,
3807
+ organisasjonsnummer,
3808
+ organisationsnummer,
3809
+ otherAddressInformation,
3810
+ otherBusinessInformation,
3811
+ otherInformation,
3812
+ otherTrust,
3813
+ ourFinancialServicesAreNotAvailableYetForPartnershipsAndAssociations,
3814
+ owner,
3815
+ ownerDescription,
3816
+ ownerGuideDescription,
3817
+ ownershipStructure,
3818
+ parent,
3819
+ parentCompany,
3820
+ parentCompanyDetails,
3821
+ parentCompanyInformation,
3822
+ partitaIVA,
3823
+ partnerShipAgreement,
3824
+ partnership,
3825
+ partnershipIncorporated,
3826
+ partnershipIncorporatedDescription,
3827
+ partnershipIncorporatedNewEntryFlowDescription,
3828
+ partnershipOrAssociation,
3829
+ partnershipUnincorporated,
3830
+ partnershipUnincorporatedDescription,
3831
+ partnershipUnincorporatedNewEntryFlowDescription,
3832
+ passport,
3833
+ passportExpiryDate,
3834
+ passportNumber,
3835
+ passportPhotoPage,
3836
+ patriotActDisclosureTextParagraph1,
3837
+ patriotActDisclosureTextParagraph2,
3838
+ patriotActDisclosureTitle,
3839
+ payinAccount,
3840
+ payinAccountsDescription,
3841
+ payinDetails,
3842
+ paymentProcessingTerms,
3843
+ payoutAccount,
3844
+ payoutAccountsDescription,
3845
+ payoutAccountsDescriptionReview,
3846
+ payoutDetails,
3847
+ payoutInOnly_,
3848
+ payoutIn_Or_,
3849
+ pccr,
3850
+ pciDssQuestionnaire,
3851
+ pciSignFailed,
3852
+ pciSignedSuccessfully,
3853
+ personAppointmentUnderTrustInstrument,
3854
+ personalDetails,
3855
+ personnummer,
3856
+ peselNumber,
3857
+ phoneNumber,
3858
+ pleaseEnsureTheFollowing,
3859
+ pleaseEnterAPhoneNumberPrefixedWithCountryCode,
3860
+ pleaseNote,
3861
+ pleaseProvideThePurposeOfCharitableTrust,
3862
+ pooledSuperannuationTrust,
3863
+ postalCode,
3864
+ poweredBy,
3865
+ previous,
3866
+ privateCompanyDescription,
3867
+ privateCompanyTitle,
3868
+ processing,
3869
+ professionalServiceProvider,
3870
+ progress,
3871
+ proofOfNationalId,
3872
+ proofOfNationality,
3873
+ proofOfRelationship,
3874
+ proofOfResidence,
3875
+ proofOfResidenceDocumentTypeLabel,
3876
+ protector,
3877
+ protectorGuideDescription,
3878
+ provideAllBeneficiaries,
3879
+ provideAllControllingPersons,
3880
+ provideAllDirectors,
3881
+ provideAllOwners,
3882
+ provideAllTrustees,
3883
+ provideAtLeastOneProtector,
3884
+ provideAtLeastOneSettlor,
3885
+ provideAtLeastOneSignatory,
3886
+ provideContactDetails,
3887
+ provideDetails,
3888
+ provideFewDetailsAboutYourself,
3889
+ provideOneControllingPerson,
3890
+ providePageWithPhotoAndCode,
3891
+ providePersonalAddress,
3892
+ providePersonalDetailsOfOwner,
3893
+ provideRegistrationDetails,
3894
+ provinceOrTerritory,
3895
+ publicCompanyDescription,
3896
+ publicCompanyTitle,
3897
+ publicTradingTrust,
3898
+ ranIntoTechnicalError,
3899
+ reasonForFillingCompanyAddressDetails,
3900
+ reasonForFillingCompanyRegistrationDetails,
3901
+ reasonForFillingIndividualAddressDetails,
3902
+ reasonForFillingIndividualPersonalDetails,
3903
+ reasonForFillingPayoutAccountDetails,
3904
+ reasonForFillingPayoutDetails,
3905
+ region,
3906
+ registeredAddress,
3907
+ registeredAddressHeaderDescription,
3908
+ registeredAddressHeaderDescription__NL,
3909
+ registeredAddressHeaderDescription__PR,
3910
+ registeredAddressHeaderDescription__US,
3911
+ registeredAddressTrustHeaderDescription,
3912
+ registrationAddress,
3913
+ registrationDetails,
3914
+ registrationDocument,
3915
+ registrationDocumentSubTitle,
3916
+ registrationNumber,
3917
+ registrationNumber__US,
3918
+ registrationNumber__helperText__US,
3919
+ registrationNumber__nonProfit__FR,
3920
+ registrikood,
3921
+ regon,
3922
+ regonKrsNumber,
3923
+ relationshipTo,
3924
+ remediationFormErrorMessage,
3925
+ remediationMessage_1_100,
3926
+ remediationMessage_1_101,
3927
+ remediationMessage_1_102,
3928
+ remediationMessage_1_300,
3929
+ remediationMessage_1_301,
3930
+ remediationMessage_1_302,
3931
+ remediationMessage_1_303,
3932
+ remediationMessage_1_304,
3933
+ remediationMessage_1_305,
3934
+ remediationMessage_1_306,
3935
+ remediationMessage_1_307,
3936
+ remediationMessage_1_308,
3937
+ remediationMessage_1_309,
3938
+ remediationMessage_1_316,
3939
+ remediationMessage_1_500,
3940
+ remediationMessage_1_501,
3941
+ remediationMessage_1_502,
3942
+ remediationMessage_1_503,
3943
+ remediationMessage_1_504,
3944
+ remediationMessage_1_505,
3945
+ remediationMessage_1_506,
3946
+ remediationMessage_1_507,
3947
+ remediationMessage_1_508,
3948
+ remediationMessage_1_509,
3949
+ remediationMessage_1_510,
3950
+ remediationMessage_1_511,
3951
+ remediationMessage_1_512,
3952
+ remediationMessage_1_513,
3953
+ remediationMessage_1_600,
3954
+ remediationMessage_1_601,
3955
+ remediationMessage_1_602,
3956
+ remediationMessage_1_603,
3957
+ remediationMessage_1_700,
3958
+ remediationMessage_1_701,
3959
+ remediationMessage_1_702,
3960
+ remediationMessage_1_703,
3961
+ remediationMessage_1_704,
3962
+ remediationMessage_1_705,
3963
+ remediationMessage_2_123,
3964
+ remediationMessage_2_124,
3965
+ remediationMessage_2_151,
3966
+ remediationMessage_2_158,
3967
+ remediationMessage_2_178,
3968
+ remediationMessage_2_185,
3969
+ remediationMessage_2_188,
3970
+ remediationMessage_3_100,
3971
+ remove,
3972
+ removeDecisionMaker,
3973
+ removeThisBankAccount,
3974
+ removeTrustMember,
3975
+ removing,
3976
+ requiredIfApplicable,
3977
+ requirements,
3978
+ requiresDecisionMakers,
3979
+ requiresSignatory,
3980
+ residencePermitBack,
3981
+ residencePermitFront,
3982
+ residencyCountry,
3983
+ retrieveMyInfo,
3984
+ retrieveMyInfoBusiness,
3985
+ retrieveMyinfoBusinessWith,
3986
+ retrieveMyinfoWith,
3987
+ reviewTheInformationBelowAndCorrectMistakesOr,
3988
+ rnaNumber,
3989
+ role,
3990
+ roleAndEntityType,
3991
+ routingNumberVisible,
3992
+ salarySlip,
3993
+ sameNameAsLegalName,
3994
+ saveAndGoToOverview,
3995
+ screenshotOfOnlineBankingEnviroment,
3996
+ search,
3997
+ searchAddress: searchAddress$1,
3998
+ secForm10k,
3999
+ secretaryOfStateFiling,
4000
+ secretaryOfStateFiling__PR,
4001
+ secretaryOfStateRegDoc,
4002
+ secretaryOfStateRegDoc__PR,
4003
+ selectAccountHolder,
4004
+ selectAllTheRolesThatThisDecisionMakerHolds,
4005
+ selectCountryRegion,
4006
+ selectDocument,
4007
+ selectDocumentType,
4008
+ selectOne,
4009
+ selectProvinceOrTerritory,
4010
+ selectSigner,
4011
+ selectState,
4012
+ selectTheApplicableRoles,
4013
+ selectTheBankToReceivePayouts,
4014
+ selectedSomeRolesBasedOnMyinfo,
4015
+ serviceAgreementSignFailed,
4016
+ serviceAgreementSignedSuccessfully,
4017
+ sessionTimeout,
4018
+ setUpYourAccount,
4019
+ settlerDetailsIncl,
4020
+ settlor,
4021
+ settlorExemptionReason,
4022
+ settlorGuideDescription,
4023
+ shareholderDocument,
4024
+ showAddressStateCountry,
4025
+ showDetails,
4026
+ showOnMap,
4027
+ showsCountryOfBankAccount,
4028
+ siRegistrationNumber,
4029
+ siTaxId,
4030
+ sign,
4031
+ signServiceAgreement,
4032
+ signatory,
4033
+ signatoryDescription,
4034
+ signatoryGuideDescription,
4035
+ signed,
4036
+ signer,
4037
+ singingUpAsCompanyButLooksLikeYouAreAnIndividual,
4038
+ singingUpAsIndividualButLooksLikeYouAreACompany,
4039
+ siret,
4040
+ skRegistrationNumber,
4041
+ skTaxId,
4042
+ smartling,
4043
+ socialInsuranceNumber,
4044
+ socialSecurityNumber,
4045
+ socialSecurityNumber__placeholder,
4046
+ solePropDetails,
4047
+ soleProprietorDetails,
4048
+ soleProprietorship,
4049
+ soleProprietorshipDetails,
4050
+ someFieldsHaveUnsupportedFormatedUpdateInfoAndResubmit,
4051
+ someInformationWillNotBeSaved,
4052
+ someoneAppointedToManageACompanysBusinessAndAffairs,
4053
+ sorryAnErrorOccurred,
4054
+ sorryWeCantSetUpAnAccountForYou,
4055
+ sortCode,
4056
+ ssn,
4057
+ stamregister,
4058
+ startANewSessionFromTheSamePlaceYouOriginallyAccessed,
4059
+ startTypingTheAddress,
4060
+ state,
4061
+ stateIssuedProofOfIdentityCard,
4062
+ stateOrProvince,
4063
+ stateOrProvince__US__business,
4064
+ stateOrProvince__placeHolder,
4065
+ stateOrProvince__placeHolder__US,
4066
+ stockExchangeInformation,
4067
+ stockExchangeMIC,
4068
+ stockExchangeMICHelper,
4069
+ stockISIN,
4070
+ stockISINHelper,
4071
+ stockTickerSymbol,
4072
+ street,
4073
+ submit: submit$1,
4074
+ submitFailed,
4075
+ submitIdDocumentsAgain,
4076
+ submitReview,
4077
+ submitReviewOfYourData,
4078
+ submitSuccessful,
4079
+ successFullyRemovedDecisionMaker,
4080
+ successFullyRemovedTrustMember,
4081
+ successfullyUpdatedDetails,
4082
+ successfullyVerifiedIdNumber,
4083
+ summary: summary$1,
4084
+ summaryLegalCaption,
4085
+ summaryTaxExemptionLegalCaptionTitle,
4086
+ summaryTaxExemptionLegalCaption_1,
4087
+ summaryTaxExemptionLegalCaption_2,
4088
+ summaryTaxExemptionLegalCaption_3,
4089
+ supports,
4090
+ swiftCode,
4091
+ takePhotoOriginalDocumentWithPhone,
4092
+ takesLonger,
4093
+ taxDocument,
4094
+ taxFiling,
4095
+ taxFiling__US,
4096
+ taxId,
4097
+ taxIdAbsenceReason,
4098
+ taxIdNumber,
4099
+ taxIdentificationNumber,
4100
+ taxInformationNumber,
4101
+ taxInformationNumber__HK,
4102
+ taxInformationNumber__US,
4103
+ taxInformationNumber__helperText__US,
4104
+ taxInformationNumber__placeHolder__US,
4105
+ taxNumberCorporateNumber,
4106
+ taxReferenceNumber,
4107
+ taxationDocument,
4108
+ taxpayerReferenceNumber,
4109
+ textToVerifyAccount,
4110
+ theBankAccountHolderMustBeInYourName_,
4111
+ theBankAccountHolderMustHaveTheSameNameAsYourCompany_,
4112
+ theCompanyIWorkFor,
4113
+ theCompanyIWorkForDescription,
4114
+ theIdCheckWillBeAutomaticallyValidated,
4115
+ theSubmitWasSuccessful,
4116
+ thenResubmit,
4117
+ thereWasAnErrorTryAgain,
4118
+ thisIsMyBusiness,
4119
+ thisMeansYouHaveAParentCompany,
4120
+ thisMeansYouHaveAnUltimateParentCompany,
4121
+ thisPageIsNowInactive,
4122
+ thisSessionWillExpireIn,
4123
+ toCompleteProcessReviewAndSignOfficialDocumentation,
4124
+ toProtectYourInformationThisSessionHasExpired,
4125
+ toggleAssociationMenu,
4126
+ tooManyFiles,
4127
+ totalAssets,
4128
+ totalAssetsCurrency,
4129
+ totalAssetsHelper,
4130
+ totalAssetsValue,
4131
+ tradingName,
4132
+ transferInstrumentDeleted,
4133
+ transitNumber,
4134
+ trust,
4135
+ trustDeed,
4136
+ trustDetails,
4137
+ trustDetailsDescription,
4138
+ trustDocumentDescription,
4139
+ trustInstrument,
4140
+ trustMembers,
4141
+ trustMembersDescription,
4142
+ trustPartnershipOrAssociation,
4143
+ trustType,
4144
+ trustee,
4145
+ trusteeAsTrusteeForTrust,
4146
+ trusteeAsTrusteeForTrustDoingBusinessAs,
4147
+ trusteeDetailsIncl,
4148
+ trusteeGuideDescription,
4149
+ trusteePersonalDetails,
4150
+ tryAgainOrManualAccountDetails,
4151
+ typeOfCompany,
4152
+ typeOfIdentity,
4153
+ typeOfIdentitySubtitle,
4154
+ typeOfTrustAgreement,
4155
+ uboThroughControlGuideDescription,
4156
+ uboThroughOwnershipGuideDescription,
4157
+ uen,
4158
+ ultimateBeneficialOwner,
4159
+ ultimateParentCompany,
4160
+ ultimateParentCompanyDetails,
4161
+ ultimateParentCompanyInformation,
4162
+ unableToProceedUsingFunctionality,
4163
+ unableToVerifyTheIdNumber,
4164
+ undefinedBeneficiary,
4165
+ undefinedBeneficiaryDescription,
4166
+ undefinedBeneficiaryGuideDescription,
4167
+ undoWithTimer,
4168
+ uniqueIdentificationCode,
4169
+ unlistedPublicUnitTrust,
4170
+ unsuccessful,
4171
+ unsupportedFiletype,
4172
+ updateTheInformation,
4173
+ uploadABankStatement,
4174
+ uploadDocument,
4175
+ uploadDocumentAndDocument,
4176
+ uploadDocumentForNric,
4177
+ uploadDocumentForSsn,
4178
+ uploadOneOfTheFollowing,
4179
+ uploadOneOfTheseDocuments,
4180
+ uploadScanOriginalIDDocument,
4181
+ uploadTaxationDocument,
4182
+ uploadTheFollowingDocuments,
4183
+ uploadTheRequestedDocuments,
4184
+ usePhoneToScanId,
4185
+ utilityBill,
4186
+ validation8Or11Characters,
4187
+ validationCharacters,
4188
+ validationDigits,
4189
+ validationDigitsBetween,
4190
+ validationPleaseEnterAValidBusinessRegistrationNumberWithFormat,
4191
+ validationPleaseEnterAValidEINWithFormat,
4192
+ validationPleaseEnterAValidIRDNumber,
4193
+ validationPleaseEnterAValidIban,
4194
+ validationPleaseEnterAValidIdNumberWithFormat,
4195
+ validationPleaseEnterAValidMarketIdentifier,
4196
+ validationPleaseEnterAValidRegistrationNumber,
4197
+ validationPleaseEnterAValidRegistrationNumberWithFormat,
4198
+ validationPleaseEnterAValidStockISIN,
4199
+ validationPleaseEnterAValidTaxIdNumber,
4200
+ validationPleaseEnterAValidTaxIdNumberWithFormat,
4201
+ validationPleaseEnterAValidUen,
4202
+ validationPleaseEnterAValidVatNumber,
4203
+ validationPleaseEnterAValidVatNumberWithFormat,
4204
+ vatAbsenceReason,
4205
+ vatNumber,
4206
+ vatNumberExempted,
4207
+ vatNummerMomsregistreringsnummerOrMomsnummer,
4208
+ vatRegistrationNumber,
4209
+ verificationErrorMessage,
4210
+ verificationMethod,
4211
+ verified,
4212
+ verifiedInformation,
4213
+ verify,
4214
+ verifyBankAccountAgain,
4215
+ verifyCompanyInfoIsUpToDate,
4216
+ verifyDecisionMakerDetails,
4217
+ verifyIndividualIdentity,
4218
+ verifyPrefilledInfoIsCorrect,
4219
+ verifyViaMobileBankingAppOrWebsite,
4220
+ verifyWith,
4221
+ weAccept,
4222
+ weDoNotYetSupportInstantVerificationForBankAccountsIn_,
4223
+ weFoundTheFollowingIssues,
4224
+ whatBestDescribesYourBusinessSetup,
4225
+ whatIsTheDifferenceBetweenTheseRoles,
4226
+ whatTypeOfCompanyDoYouHave,
4227
+ whatTypeOfTrusteeAreYou,
4228
+ whatTypeOfYourMembersEntity,
4229
+ whereCanIFindTheseNumbersOnMyDriversLicense,
4230
+ whereToFindNumbersOnDriversLicense,
4231
+ whereToFindNumbersOnDriversLicense__NZ,
4232
+ whichLegalArrangementDoesYourBusinessHave,
4233
+ whichOfTheseApplyToTheSettlor,
4234
+ whichTypeOfIdNumberDoYouHave,
4235
+ whichTypeOfRegistrationNumberDoYouHave,
4236
+ whichTypeOfTaxIdNumberDoYouHave,
4237
+ whyDoINeedToFillInThisInformation,
4238
+ wouldYouLikeToSignUpAsCompanyInstead,
4239
+ wouldYouLikeToSignUpAsIndividualInstead,
4240
+ xCharactersLeft,
4241
+ xMinutes,
4242
+ xMinutesAndYSeconds,
4243
+ xSeconds,
4244
+ yes,
4245
+ yesBankruptcyInsolvency,
4246
+ yesChange,
4247
+ yesJudicialAdministration,
4248
+ yesOtherLegalMeasures,
4249
+ youAlsoHaveToUploadSomeSupportingDocuments,
4250
+ youAreIndividualOrCompanyAndUseBankAccountInNameOfPartnershipOrAssociation,
4251
+ youAreIndividualOrCompanyAndUseBankAccountInNameOfTrustPartnershipOrAssociation,
4252
+ youAreNotSoleProprietorAndUseBankAccount,
4253
+ youAreRegisteredSoleProprietorAndUseBankAccount,
4254
+ youAreTrusteeManagingTheTrustForBeneficiaries,
4255
+ youCanOnlyUseABankAccountInTheCountryRegionWhereYouLive,
4256
+ youCanOnlyUseABankAccountInTheCountryRegionWhereYourCompanyIsRegistered,
4257
+ youHaveSuccessfullyProvidedTheIdDocument,
4258
+ youHaveUnsavedChanges,
4259
+ youMustXYearsOldToContinue,
4260
+ youSuccessfullyVerifiedAccount,
4261
+ yourAssociationIsRegisteredItWasSetUpForNonCommercialPurpose,
4262
+ yourBankWillConfirmYourAccountDetails,
4263
+ yourBusinessDetails,
4264
+ yourBusinessIsRegisteredAsASeparateLegalEntityFromItsOwners,
4265
+ yourBusinessSetup,
4266
+ yourIbanShouldBeginWith_,
4267
+ zentralesVereinsregisterId,
4268
+ zipCode
4269
+ }, Symbol.toStringTag, { value: "Module" }));
2808
4270
  const FALLBACK_LOCALE = "en-US";
2809
4271
  const defaultTranslation = Object.entries(defaultTrans).reduce((acc, [translationKey, translationValue]) => translationKey !== "smartling" ? {
2810
4272
  ...acc,
@@ -2921,6 +4383,7 @@ class Language {
2921
4383
  }
2922
4384
  }
2923
4385
  const entriesOf = (object) => Object.entries(object);
4386
+ const valuesOf = (object) => Object.values(object);
2924
4387
  const keysOf = (object) => Object.keys(object);
2925
4388
  const keyIsInObject = (key, obj) => key in obj;
2926
4389
  const pick = (...propertiesToKeep) => ({
@@ -3282,7 +4745,7 @@ const icons = {
3282
4745
  warning: lazy(() => import("./warning-99uFf1WU.js")),
3283
4746
  wrong: lazy(() => import("./wrong-1wvh7nZe.js"))
3284
4747
  };
3285
- const logger$D = createLogger("Icon");
4748
+ const logger$G = createLogger("Icon");
3286
4749
  const Icon = ({
3287
4750
  className,
3288
4751
  name,
@@ -3290,7 +4753,7 @@ const Icon = ({
3290
4753
  }) => {
3291
4754
  const LazyLoadedIcon = icons[name];
3292
4755
  if (!LazyLoadedIcon) {
3293
- logger$D.error(`No such icon: "${name}"`);
4756
+ logger$G.error(`No such icon: "${name}"`);
3294
4757
  return null;
3295
4758
  }
3296
4759
  return jsx("span", {
@@ -3325,6 +4788,7 @@ const Button = ({
3325
4788
  role: role2,
3326
4789
  small,
3327
4790
  block,
4791
+ shaded,
3328
4792
  label = "",
3329
4793
  icon,
3330
4794
  title,
@@ -3373,6 +4837,8 @@ const Button = ({
3373
4837
  "adyen-kyc-button--tertiary": tertiary && !secondary,
3374
4838
  "adyen-kyc-button--block": block,
3375
4839
  "adyen-kyc-button--small": small && label,
4840
+ "adyen-kyc-button--shaded": shaded && icon && tertiary,
4841
+ // disallow shaded effect if not just tertiary icon
3376
4842
  "adyen-kyc-button--icon": icon && label && !small
3377
4843
  });
3378
4844
  return jsx("button", {
@@ -3487,7 +4953,7 @@ function useFormRouterContext() {
3487
4953
  }
3488
4954
  return context;
3489
4955
  }
3490
- const logger$C = createLogger("Link");
4956
+ const logger$F = createLogger("Link");
3491
4957
  const getIconClass = (icon, external) => {
3492
4958
  if (external) {
3493
4959
  return "adyen-kyc-link__icon adyen-kyc-icon-external-link";
@@ -3499,7 +4965,7 @@ const getIconClass = (icon, external) => {
3499
4965
  };
3500
4966
  const isValidLink = (href) => {
3501
4967
  if (href === "#") {
3502
- logger$C.error('Links must include a valid href. If your href is "#", consider using a Button instead');
4968
+ logger$F.error('Links must include a valid href. If your href is "#", consider using a Button instead');
3503
4969
  return false;
3504
4970
  }
3505
4971
  return true;
@@ -3624,6 +5090,7 @@ var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
3624
5090
  DocumentType2["NATIONAL_IDENTITY_CARD"] = "national_identity_card";
3625
5091
  DocumentType2["RESIDENCE_PERMIT"] = "residence_permit";
3626
5092
  DocumentType2["PROOF_OF_ORGANIZATION_TAX_INFO"] = "proofOfOrganizationTaxInfo";
5093
+ DocumentType2["PROOF_OF_RELATIONSHIP"] = "proofOfRelationship";
3627
5094
  return DocumentType2;
3628
5095
  })(DocumentType || {});
3629
5096
  var LegalEntityType = /* @__PURE__ */ ((LegalEntityType2) => {
@@ -3828,7 +5295,7 @@ const useSetting = (settingName) => {
3828
5295
  } = context;
3829
5296
  return getSetting(settingName);
3830
5297
  };
3831
- const logger$B = createLogger("useAllowedCountries");
5298
+ const logger$E = createLogger("useAllowedCountries");
3832
5299
  const useAllowedCountries = () => {
3833
5300
  const acceptedCountries = useSetting("acceptedCountries");
3834
5301
  const {
@@ -3837,7 +5304,7 @@ const useAllowedCountries = () => {
3837
5304
  const [allowedCountries, setAllowedCountries] = useState(acceptedCountries);
3838
5305
  useEffect(() => {
3839
5306
  if (acceptedCountries !== void 0) return;
3840
- getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$B.error);
5307
+ getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$E.error);
3841
5308
  }, [acceptedCountries]);
3842
5309
  return allowedCountries;
3843
5310
  };
@@ -4196,7 +5663,7 @@ function reducer({
4196
5663
  }
4197
5664
  };
4198
5665
  }
4199
- const logger$A = createLogger("useAsyncValidator");
5666
+ const logger$D = createLogger("useAsyncValidator");
4200
5667
  const useAsyncValidator = (asyncRules) => {
4201
5668
  const [asyncValidationResults, setAsyncValidationResults] = useState({});
4202
5669
  const clearAsyncValidationResults = useCallback(() => setAsyncValidationResults({}), []);
@@ -4217,7 +5684,7 @@ const useAsyncValidator = (asyncRules) => {
4217
5684
  hasError: !isValid
4218
5685
  }])
4219
5686
  });
4220
- }).catch(logger$A.error);
5687
+ }).catch(logger$D.error);
4221
5688
  }, [asyncRules, clearAsyncValidationResults]);
4222
5689
  return {
4223
5690
  asyncValidationResults,
@@ -4466,9 +5933,7 @@ const getDataName = (datasetKey, key) => {
4466
5933
  };
4467
5934
  const datasetIdentifier = {
4468
5935
  country: "countries",
4469
- state: (countryCode) => `states/${countryCode}`,
4470
- phonePrefix: "phone-prefixes",
4471
- translations: "translations"
5936
+ state: (countryCode) => `states/${countryCode}`
4472
5937
  };
4473
5938
  function datasetUtilities(locale) {
4474
5939
  return {
@@ -4480,10 +5945,6 @@ function datasetUtilities(locale) {
4480
5945
  const datasetKey = createDatasetKey(datasetIdentifier.state(countryCode), locale);
4481
5946
  return getDataName(datasetKey, stateCode);
4482
5947
  },
4483
- getPhonePrefix: (countryCode) => {
4484
- const datasetKey = createDatasetKey(datasetIdentifier.phonePrefix, locale);
4485
- return getDataName(datasetKey, countryCode);
4486
- },
4487
5948
  setDataset: (identifier, dataset) => {
4488
5949
  const datasetKey = createDatasetKey(identifier, locale);
4489
5950
  datasets[datasetKey] = dataset;
@@ -5802,28 +7263,23 @@ const defaultFieldConfig$a = {
5802
7263
  validators: validateNotEmptyOnBlur
5803
7264
  })
5804
7265
  };
5805
- const Disclaimer = ({
5806
- title,
5807
- children
5808
- }) => jsxs("div", {
5809
- className: "adyen-kyc-disclaimer-container",
5810
- children: [jsx("div", {
5811
- className: "adyen-kyc-disclaimer__title",
5812
- children: title
5813
- }), jsx("div", {
5814
- className: "adyen-kyc-disclaimer__content",
5815
- children
5816
- })]
5817
- });
5818
7266
  const PatriotActDisclosure = () => {
5819
7267
  const {
5820
7268
  i18n
5821
7269
  } = useI18nContext();
5822
- return jsxs(Disclaimer, {
7270
+ return jsxs(Alert, {
7271
+ type: "info",
5823
7272
  title: i18n.get("patriotActDisclosureTitle"),
5824
- children: [jsx("p", {
7273
+ hasCloseButton: false,
7274
+ className: "adyen-kyc-u-margin-bottom-12",
7275
+ children: [jsx(Typography, {
7276
+ variant: "caption",
7277
+ color: "secondary",
5825
7278
  children: i18n.get("patriotActDisclosureTextParagraph1")
5826
- }), jsx("p", {
7279
+ }), jsx(Typography, {
7280
+ variant: "caption",
7281
+ color: "secondary",
7282
+ className: "adyen-kyc-u-margin-top-12",
5827
7283
  children: i18n.get("patriotActDisclosureTextParagraph2")
5828
7284
  })]
5829
7285
  });
@@ -6238,7 +7694,7 @@ const deriveInputState = (isValid, isFocused, isDisabled, isOptional, hasNullish
6238
7694
  };
6239
7695
  };
6240
7696
  const MISMATCH_ANIMATION_NAME = "mismatchShake";
6241
- const logger$z = createLogger("MaskedInputText");
7697
+ const logger$C = createLogger("MaskedInputText");
6242
7698
  const MaskedInputText = ({
6243
7699
  value,
6244
7700
  onInput,
@@ -6279,7 +7735,7 @@ const MaskedInputText = ({
6279
7735
  };
6280
7736
  useEffect(() => {
6281
7737
  if (!mask) {
6282
- logger$z.warn("`mask` is undefined. No masking of input will take place.");
7738
+ logger$C.warn("`mask` is undefined. No masking of input will take place.");
6283
7739
  }
6284
7740
  }, [mask]);
6285
7741
  const getMaskResult = useCallback((pureValue) => {
@@ -6304,7 +7760,7 @@ const MaskedInputText = ({
6304
7760
  return;
6305
7761
  }
6306
7762
  const fallback = displayValueToPure(maskResult.partialDisplayValue);
6307
- logger$z.warn(`Value received "${value}" does not match mask`, maskResult, `
7763
+ logger$C.warn(`Value received "${value}" does not match mask`, maskResult, `
6308
7764
  Falling back to partially valid value "${fallback}"`);
6309
7765
  onInput(fallback);
6310
7766
  }
@@ -11426,6 +12882,7 @@ var TaskTypes = /* @__PURE__ */ ((TaskTypes2) => {
11426
12882
  TaskTypes2["LEGAL_ENTITY_TYPE_SWITCHER"] = "LEGAL_ENTITY_TYPE_SWITCHER";
11427
12883
  TaskTypes2["CAPABILITY_REJECTED"] = "CAPABILITY_REJECTED";
11428
12884
  TaskTypes2["SINGPASS_SELECTION"] = "SINGPASS_SELECTION";
12885
+ TaskTypes2["LEGAL_REPRESENTATIVE_DETAILS"] = "LEGAL_REPRESENTATIVE_DETAILS";
11429
12886
  return TaskTypes2;
11430
12887
  })(TaskTypes || {});
11431
12888
  var TaskStatus = /* @__PURE__ */ ((TaskStatus2) => {
@@ -11478,6 +12935,7 @@ const filterOutUnwantedAssociationsIfRootLE = (taskType, legalEntity, accountHol
11478
12935
  }
11479
12936
  return entityAssociations;
11480
12937
  };
12938
+ const getLegalRepresentative = (legalEntityResponse) => getDirectEntityAssociations(legalEntityResponse, legalEntityResponse.id).find((la) => la.type === "legalRepresentative");
11481
12939
  var VerificationStatus = /* @__PURE__ */ ((VerificationStatus2) => {
11482
12940
  VerificationStatus2["VALID"] = "valid";
11483
12941
  VerificationStatus2["PENDING"] = "pending";
@@ -11678,7 +13136,9 @@ const rules$3 = ({
11678
13136
  }
11679
13137
  },
11680
13138
  isVerificationAllowedForCountry: () => ID_NUMBER_VERIFICATION_COUNTRIES.includes(country2),
11681
- expiryDateRequired: () => EXPIRY_DATE_REQUIRED_FOR_COUNTRIES.includes(country2) ? REQUIRED : void 0
13139
+ expiryDateRequired: () => EXPIRY_DATE_REQUIRED_FOR_COUNTRIES.includes(country2) ? REQUIRED : void 0,
13140
+ legalRepresentativeRelationshipRequired: () => taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS ? REQUIRED : void 0,
13141
+ isProofOfRelationshipRequired: () => taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS ? REQUIRED : void 0
11682
13142
  });
11683
13143
  const accountHolderValidationRules = {
11684
13144
  accountHolder: {
@@ -11688,7 +13148,7 @@ const accountHolderValidationRules = {
11688
13148
  }
11689
13149
  };
11690
13150
  const accountHolderFields = ["accountHolder"];
11691
- const logger$y = createLogger("AccountHolder");
13151
+ const logger$B = createLogger("AccountHolder");
11692
13152
  function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntityTypeAllowed, isTrustFlowEnabled, isSoleProprietorshipAllowed, isChangeToMyNameAllowed) {
11693
13153
  switch (legalEntityType) {
11694
13154
  case LegalEntityType.ORGANIZATION: {
@@ -11698,7 +13158,7 @@ function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntity
11698
13158
  return [...isChangeToMyNameAllowed ? ["myName"] : [], ...isChangeOfLegalEntityTypeAllowed ? ["theCompanyIWorkFor"] : [], ...isTrustFlowEnabled ? ["aTrust"] : [], ...isSoleProprietorshipAllowed ? ["mySoleProprietorName"] : []];
11699
13159
  }
11700
13160
  default:
11701
- logger$y.error(`No available account holder options for legal entity type '${legalEntityType}'`);
13161
+ logger$B.error(`No available account holder options for legal entity type '${legalEntityType}'`);
11702
13162
  return [];
11703
13163
  }
11704
13164
  }
@@ -12252,7 +13712,7 @@ function Dropzone(props) {
12252
13712
  })]
12253
13713
  });
12254
13714
  }
12255
- const logger$x = createLogger("TextArea");
13715
+ const logger$A = createLogger("TextArea");
12256
13716
  function TextArea(props) {
12257
13717
  const {
12258
13718
  classNameModifiers,
@@ -12273,7 +13733,7 @@ function TextArea(props) {
12273
13733
  } = useI18nContext();
12274
13734
  const [value, setValue] = useState("");
12275
13735
  if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
12276
- logger$x.error("Error: Form fields that rely on InputBase may not have an onChange property");
13736
+ logger$A.error("Error: Form fields that rely on InputBase may not have an onChange property");
12277
13737
  }
12278
13738
  const handleInput = (e) => {
12279
13739
  var _a;
@@ -12719,7 +14179,7 @@ function useIsElementVisible(ref, fallback = true) {
12719
14179
  }, [ref]);
12720
14180
  return isOnScreen;
12721
14181
  }
12722
- const logger$w = createLogger("SearchAddress");
14182
+ const logger$z = createLogger("SearchAddress");
12723
14183
  const SearchAddress = ({
12724
14184
  data,
12725
14185
  legalEntityId,
@@ -12763,7 +14223,7 @@ const SearchAddress = ({
12763
14223
  const response = await handleFindAddress(selectedAddressId);
12764
14224
  autocompleteAddressForm(response);
12765
14225
  } catch (e) {
12766
- logger$w.error(e);
14226
+ logger$z.error(e);
12767
14227
  }
12768
14228
  };
12769
14229
  const onDrilldown = async (selectedAddress) => {
@@ -12775,7 +14235,7 @@ const SearchAddress = ({
12775
14235
  }, legalEntityId);
12776
14236
  setItems((response == null ? void 0 : response.results) || []);
12777
14237
  } catch (e) {
12778
- logger$w.error(e);
14238
+ logger$z.error(e);
12779
14239
  }
12780
14240
  };
12781
14241
  const onChange = (e) => {
@@ -12830,7 +14290,7 @@ const SearchAddress = ({
12830
14290
  setItems([]);
12831
14291
  }
12832
14292
  } catch (e) {
12833
- logger$w.error(e);
14293
+ logger$z.error(e);
12834
14294
  }
12835
14295
  setLoading(false);
12836
14296
  }
@@ -13465,7 +14925,7 @@ function Address(props) {
13465
14925
  id: "ariaErrorField"
13466
14926
  }), isHandlerPresent ? jsxs(Fragment, {
13467
14927
  children: [jsxs("div", {
13468
- className: "adyen-kyc-search-address adyen-kyc-u-margin-bottom-24",
14928
+ className: "adyen-kyc-search-address",
13469
14929
  children: [jsx(SearchAddress, {
13470
14930
  handleChangeFor,
13471
14931
  data: dataProp,
@@ -14800,7 +16260,8 @@ const remediationIndividualApiKeyMapping = {
14800
16260
  "document.attachment.attachment.content": "idDocument.idDocument",
14801
16261
  [DocumentType.PASSPORT]: "idDocument.idDocument",
14802
16262
  [DocumentType.PROOF_OF_RESIDENCY]: "proofOfResidence.proofOfResidence",
14803
- [DocumentType.PROOF_OF_NATIONAL_ID_NUMBER]: "proofOfNationalId.proofOfNationalId"
16263
+ [DocumentType.PROOF_OF_NATIONAL_ID_NUMBER]: "proofOfNationalId.proofOfNationalId",
16264
+ [DocumentType.PROOF_OF_RELATIONSHIP]: "proofOfRelationship.proofOfRelationship"
14804
16265
  };
14805
16266
  const remediationPayoutApiKeyMapping = {
14806
16267
  bankAccount: "payoutAccountDetails",
@@ -15188,12 +16649,13 @@ const getPage = ({
15188
16649
  };
15189
16650
  const getPageName = (document2, pageType) => getPage(document2, pageType).pageName;
15190
16651
  const mapIndividualDocumentToApiDocument = async (data, entityId) => {
15191
- var _a, _b, _c, _d;
16652
+ var _a, _b, _c, _d, _e;
15192
16653
  if (data) {
15193
16654
  const {
15194
16655
  idDocument: idDocument2,
15195
16656
  proofOfNationalId: proofOfNationalId2,
15196
- proofOfResidence: proofOfResidence2
16657
+ proofOfResidence: proofOfResidence2,
16658
+ proofOfRelationship: proofOfRelationship2
15197
16659
  } = data;
15198
16660
  const entityType2 = "legalEntity";
15199
16661
  const documents2 = await Promise.all([createDocumentRequest({
@@ -15212,6 +16674,11 @@ const mapIndividualDocumentToApiDocument = async (data, entityId) => {
15212
16674
  entityType: entityType2,
15213
16675
  documentType: DocumentType.PROOF_OF_RESIDENCY,
15214
16676
  page1: (_d = proofOfResidence2 == null ? void 0 : proofOfResidence2.proofOfResidence) == null ? void 0 : _d[0]
16677
+ }), createDocumentRequest({
16678
+ entityId,
16679
+ entityType: entityType2,
16680
+ documentType: DocumentType.PROOF_OF_RELATIONSHIP,
16681
+ page1: (_e = proofOfRelationship2 == null ? void 0 : proofOfRelationship2.proofOfRelationship) == null ? void 0 : _e[0]
15215
16682
  })]);
15216
16683
  return documents2.filter(Boolean);
15217
16684
  }
@@ -15252,6 +16719,7 @@ const mapApiDocumentToIndividualDocuments = (entityId) => {
15252
16719
  const idDocument2 = getIdDocument(entityId) || null;
15253
16720
  const proofOfResidence2 = getDocument$1(entityId, DocumentType.PROOF_OF_RESIDENCY) || null;
15254
16721
  const proofOfNationalId2 = getDocument$1(entityId, DocumentType.PROOF_OF_NATIONAL_ID_NUMBER) || null;
16722
+ const proofOfRelationship2 = getDocument$1(entityId, DocumentType.PROOF_OF_RELATIONSHIP) || null;
15255
16723
  return {
15256
16724
  idDocument: idDocument2 ? mapApiIdDocumentToSchema(idDocument2) : null,
15257
16725
  proofOfResidence: proofOfResidence2 ? {
@@ -15259,6 +16727,9 @@ const mapApiDocumentToIndividualDocuments = (entityId) => {
15259
16727
  } : null,
15260
16728
  proofOfNationalId: proofOfNationalId2 ? {
15261
16729
  proofOfNationalId: [mapExistingFile(getPageName(proofOfNationalId2))]
16730
+ } : null,
16731
+ proofOfRelationship: proofOfRelationship2 ? {
16732
+ proofOfRelationship: [mapExistingFile(getPageName(proofOfRelationship2))]
15262
16733
  } : null
15263
16734
  };
15264
16735
  };
@@ -15736,7 +17207,7 @@ const initOnfido = async ({
15736
17207
  language: getOnfidoLocaleConfig(i18n)
15737
17208
  });
15738
17209
  };
15739
- const logger$v = createLogger("IdVerificationComponent");
17210
+ const logger$y = createLogger("IdVerificationComponent");
15740
17211
  function IdVerificationComponent({
15741
17212
  userDetails,
15742
17213
  legalEntityId,
@@ -15773,7 +17244,7 @@ function IdVerificationComponent({
15773
17244
  onIdVerificationError,
15774
17245
  onIdVerificationComplete
15775
17246
  });
15776
- })().catch(logger$v.error);
17247
+ })().catch(logger$y.error);
15777
17248
  return () => {
15778
17249
  if (onfidoSdk.current) onfidoSdk.current.tearDown();
15779
17250
  };
@@ -15823,7 +17294,7 @@ function IdDocumentAlreadyUpload(props) {
15823
17294
  })]
15824
17295
  });
15825
17296
  }
15826
- const logger$u = createLogger("IdDocumentInstantVerificationComponent");
17297
+ const logger$x = createLogger("IdDocumentInstantVerificationComponent");
15827
17298
  const idVerificationSchema = ["instantIdVerificationData", "idDocumentType"];
15828
17299
  const documentTypeValidationRules = {
15829
17300
  instantIdVerificationData: {
@@ -15905,7 +17376,7 @@ function IdDocumentInstantVerificationComponent(props) {
15905
17376
  userDetails: props.userDetails,
15906
17377
  legalEntityId: props.legalEntityId,
15907
17378
  onIdVerificationComplete: handleIdVerificationComplete,
15908
- onIdVerificationError: logger$u.error
17379
+ onIdVerificationError: logger$x.error
15909
17380
  }), jsxs("div", {
15910
17381
  className: "adyen-kyc-document-upload__manual-upload",
15911
17382
  children: [i18n.get("canNotCompleteInstantVerification"), " ", jsx("button", {
@@ -16181,6 +17652,7 @@ function IdVerificationMethodComponent(props) {
16181
17652
  })]
16182
17653
  });
16183
17654
  }
17655
+ const getLegalEntityCountry = (legalEntityResponse) => legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? legalEntityResponse.individual.residentialAddress.country : legalEntityResponse.organization.registeredAddress.country;
16184
17656
  const getAgeToday = (birthdate2) => {
16185
17657
  const today = /* @__PURE__ */ new Date();
16186
17658
  const todayMonth = today.getMonth();
@@ -16218,7 +17690,8 @@ const getLegalRepresentativeWarningMessage = ({
16218
17690
  data: {
16219
17691
  birthDate: birthDate2,
16220
17692
  residencyCountry: residencyCountry2
16221
- }
17693
+ },
17694
+ taskType
16222
17695
  }) => {
16223
17696
  if (!residencyCountry2) {
16224
17697
  return;
@@ -16226,12 +17699,11 @@ const getLegalRepresentativeWarningMessage = ({
16226
17699
  if (!birthDate2) {
16227
17700
  return;
16228
17701
  }
16229
- const ageRange = getAgeRangeForLegalRepresentative(residencyCountry2);
17702
+ const ageRange = taskType !== TaskTypes.LEGAL_REPRESENTATIVE_DETAILS && getAgeRangeForLegalRepresentative(residencyCountry2);
16230
17703
  if (!ageRange) {
16231
17704
  return;
16232
17705
  }
16233
- const age = getAgeToday(birthDate2);
16234
- if (ageRange.min <= age && age < ageRange.max) {
17706
+ if (isAgeWithinRange(getAgeToday(birthDate2), ageRange)) {
16235
17707
  return {
16236
17708
  title: "aLegalRepresentativeIsRequired",
16237
17709
  message: {
@@ -16243,6 +17715,19 @@ const getLegalRepresentativeWarningMessage = ({
16243
17715
  };
16244
17716
  }
16245
17717
  };
17718
+ const isAgeWithinRange = (age, ageRange) => ageRange.min <= age && age < ageRange.max;
17719
+ const doesLegalEntityRequiresLegalRepresentative = (legalEntity) => {
17720
+ var _a, _b;
17721
+ const birthDate2 = (_b = (_a = legalEntity == null ? void 0 : legalEntity.individual) == null ? void 0 : _a.birthData) == null ? void 0 : _b.dateOfBirth;
17722
+ if (!birthDate2) {
17723
+ return false;
17724
+ }
17725
+ const ageRange = getAgeRangeForLegalRepresentative(getLegalEntityCountry(legalEntity));
17726
+ if (!ageRange) {
17727
+ return false;
17728
+ }
17729
+ return isAgeWithinRange(getAgeToday(birthDate2), ageRange);
17730
+ };
16246
17731
  const COUNTRY_ID_NUMBER_MASKS = {
16247
17732
  [CountryCodes.PuertoRico]: {
16248
17733
  length: 4
@@ -16343,8 +17828,8 @@ const staticPhoneValidationRules = (phonePrefixes, defaultPrefix) => ({
16343
17828
  phoneNumber: {
16344
17829
  validate: (phoneNumber2) => {
16345
17830
  if (!phoneNumber2) return false;
16346
- if (!phonePrefixes.length) return phoneNumber2.startsWith("+");
16347
- return phonePrefixes.map((prefix) => prefix.name).some((name) => phoneNumber2.startsWith(name));
17831
+ if (!phonePrefixes) return phoneNumber2.startsWith("+");
17832
+ return valuesOf(phonePrefixes).some((name) => name && phoneNumber2.startsWith(name));
16348
17833
  },
16349
17834
  errorMessage: {
16350
17835
  key: "pleaseEnterAPhoneNumberPrefixedWithCountryCode",
@@ -16378,13 +17863,23 @@ const phoneFormatters = {
16378
17863
  };
16379
17864
  const phoneFields = ["phoneNumber"];
16380
17865
  const DEFAULT_PHONE_PREFIX = "+1";
17866
+ const logger$w = createLogger("PhoneInput");
17867
+ const usePhonePrefixes = () => {
17868
+ const [phonePrefixes, setPhonePrefixes] = useState();
17869
+ useEffect(() => {
17870
+ const loadPhonePrefixes = async () => {
17871
+ const loaded = (await import("./phonePrefixes-GXP6tTuV.js")).default;
17872
+ setPhonePrefixes(loaded);
17873
+ };
17874
+ loadPhonePrefixes().catch(logger$w.error);
17875
+ }, []);
17876
+ return phonePrefixes;
17877
+ };
16381
17878
  function PhoneInputComponent(props) {
16382
- var _a;
16383
17879
  const {
16384
17880
  data: dataProp,
16385
17881
  dataStoreId,
16386
17882
  country: country2,
16387
- phonePrefixes,
16388
17883
  requiredFields,
16389
17884
  fieldValidationErrors
16390
17885
  } = props;
@@ -16395,8 +17890,9 @@ function PhoneInputComponent(props) {
16395
17890
  setState: null
16396
17891
  });
16397
17892
  const formUtils = formUtilities(props, i18n);
16398
- const phonePrefix = ((_a = phonePrefixes == null ? void 0 : phonePrefixes.find((item) => item.id === country2)) == null ? void 0 : _a.name) ?? DEFAULT_PHONE_PREFIX;
16399
- const staticRules = useMemo(() => staticPhoneValidationRules(phonePrefixes, phonePrefix), [phonePrefix, phonePrefixes]);
17893
+ const phonePrefixes = usePhonePrefixes();
17894
+ const defaultPrefix = (phonePrefixes == null ? void 0 : phonePrefixes[country2]) ?? DEFAULT_PHONE_PREFIX;
17895
+ const staticRules = useMemo(() => staticPhoneValidationRules(phonePrefixes, defaultPrefix), [defaultPrefix, phonePrefixes]);
16400
17896
  const asyncRules = useAsyncPhoneValidationRules();
16401
17897
  const {
16402
17898
  handleChangeFor,
@@ -16417,8 +17913,8 @@ function PhoneInputComponent(props) {
16417
17913
  fieldProblems: fieldValidationErrors
16418
17914
  });
16419
17915
  useEffect(() => {
16420
- var _a2, _b;
16421
- (_b = (_a2 = stateRef.current) == null ? void 0 : _a2.setState) == null ? void 0 : _b.call(_a2, {
17916
+ var _a, _b;
17917
+ (_b = (_a = stateRef.current) == null ? void 0 : _a.setState) == null ? void 0 : _b.call(_a, {
16422
17918
  type: "addToState",
16423
17919
  value: {
16424
17920
  data,
@@ -16451,7 +17947,7 @@ function PhoneInputComponent(props) {
16451
17947
  ...childProps,
16452
17948
  name: "phoneNumber",
16453
17949
  value: data.phoneNumber,
16454
- placeholder: phonePrefix,
17950
+ placeholder: defaultPrefix,
16455
17951
  readonly: formUtils.isReadOnly("phoneNumber"),
16456
17952
  onInput: handleChangeFor("phoneNumber", "input"),
16457
17953
  onBlur: handleChangeFor("phoneNumber", "blur"),
@@ -16465,7 +17961,7 @@ function PhoneInputComponent(props) {
16465
17961
  PhoneInputComponent.defaultProps = {
16466
17962
  phoneLabel: "telephoneNumber"
16467
17963
  };
16468
- const PhoneInput = memo(PhoneInputComponent, (prevProps, nextProps) => prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.phonePrefixes === nextProps.phonePrefixes);
17964
+ const PhoneInput = memo(PhoneInputComponent, (prevProps, nextProps) => prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate);
16469
17965
  const contactDetailsValidationRules = {
16470
17966
  email: {
16471
17967
  modes: ["blur"],
@@ -16515,9 +18011,6 @@ function ContactDetailsComponent(props) {
16515
18011
  }
16516
18012
  });
16517
18013
  }, [data, valid, errors, isValid]);
16518
- const {
16519
- dataset: phonePrefixes
16520
- } = useDataset(datasetIdentifier.phonePrefix);
16521
18014
  const phoneInputProps = getFieldProps(props, phoneFields);
16522
18015
  return jsxs("div", {
16523
18016
  role: "form",
@@ -16551,8 +18044,7 @@ function ContactDetailsComponent(props) {
16551
18044
  }), formUtils.isRequiredField("phoneNumber") && jsx(PhoneInput, {
16552
18045
  ...phoneInputProps,
16553
18046
  dataStoreId,
16554
- country: country2,
16555
- phonePrefixes
18047
+ country: country2
16556
18048
  })]
16557
18049
  });
16558
18050
  }
@@ -17150,56 +18642,45 @@ function IdentityNumberComponent(props) {
17150
18642
  const roleMetadata = {
17151
18643
  [DecisionMakerType.CONTROLLING_PERSON]: {
17152
18644
  name: "controllingPerson",
17153
- description: "controllingPersonDescription",
17154
- variant: "teal"
18645
+ description: "controllingPersonDescription"
17155
18646
  },
17156
18647
  [DecisionMakerType.OWNER]: {
17157
18648
  name: "owner",
17158
- description: "ownerDescription",
17159
- variant: "red"
18649
+ description: "ownerDescription"
17160
18650
  },
17161
18651
  [DecisionMakerType.SIGNATORY]: {
17162
18652
  name: "signatory",
17163
- description: "signatoryDescription",
17164
- variant: "green"
18653
+ description: "signatoryDescription"
17165
18654
  },
17166
18655
  [DecisionMakerType.DIRECTOR]: {
17167
18656
  name: "director",
17168
- description: "directorDescription",
17169
- variant: "orange"
18657
+ description: "directorDescription"
17170
18658
  },
17171
18659
  [TrustMemberTypes.DEFINED_BENEFICIARY]: {
17172
18660
  name: "definedBeneficiary",
17173
- description: "definedBeneficiaryDescription",
17174
- variant: "orange"
18661
+ description: "definedBeneficiaryDescription"
17175
18662
  },
17176
18663
  [TrustMemberTypes.UNDEFINED_BENEFICIARY]: {
17177
18664
  name: "undefinedBeneficiary",
17178
- description: "undefinedBeneficiaryDescription",
17179
- variant: "orange"
18665
+ description: "undefinedBeneficiaryDescription"
17180
18666
  },
17181
18667
  [TrustMemberTypes.PROTECTOR]: {
17182
18668
  name: "protector",
17183
- description: "personAppointmentUnderTrustInstrument",
17184
- variant: "orange"
18669
+ description: "personAppointmentUnderTrustInstrument"
17185
18670
  },
17186
18671
  [TrustMemberTypes.TRUSTEE]: {
17187
18672
  name: "trustee",
17188
- description: "legalOwnerOfProperty",
17189
- variant: "green"
18673
+ description: "legalOwnerOfProperty"
17190
18674
  },
17191
18675
  [TrustMemberTypes.SETTLOR]: {
17192
18676
  name: "settlor",
17193
- description: "entityEstablishingTrust",
17194
- variant: "orange"
18677
+ description: "entityEstablishingTrust"
17195
18678
  },
17196
18679
  [TrustMemberGuidanceLabel.BENEFICIARY]: {
17197
- name: TrustMemberGuidanceLabel.BENEFICIARY,
17198
- variant: "orange"
18680
+ name: TrustMemberGuidanceLabel.BENEFICIARY
17199
18681
  },
17200
18682
  [TrustMemberGuidanceLabel.TRUSTEE]: {
17201
- name: TrustMemberGuidanceLabel.TRUSTEE,
17202
- variant: "green"
18683
+ name: TrustMemberGuidanceLabel.TRUSTEE
17203
18684
  }
17204
18685
  };
17205
18686
  const getRoleTagVariant = (role2) => {
@@ -18183,7 +19664,14 @@ function IdentityComponent(props) {
18183
19664
  dataStoreId
18184
19665
  });
18185
19666
  }
18186
- const personalDetailsFields = [...nameFields, "birthDate", ...idNumberFields, ...additionalIdentityInfoFields, "residencyCountry", "nationality", "jobTitle", ...decisionMakerRoleFields, ...contactDetailFields, ...accountHolderFields];
19667
+ const personalDetailsFields = [...nameFields, "birthDate", ...idNumberFields, ...additionalIdentityInfoFields, "residencyCountry", "nationality", "jobTitle", ...decisionMakerRoleFields, ...contactDetailFields, ...accountHolderFields, "relationship"];
19668
+ const relationshipOptions = [{
19669
+ id: "parent",
19670
+ name: "parent"
19671
+ }, {
19672
+ id: "guardian",
19673
+ name: "guardian"
19674
+ }];
18187
19675
  function PersonalDetailsComponent(props) {
18188
19676
  var _a;
18189
19677
  const {
@@ -18212,9 +19700,10 @@ function PersonalDetailsComponent(props) {
18212
19700
  const [idNumberType, setIdNumberType] = useState(defaultIdNumberType);
18213
19701
  const isDecisionMakerTask = props.taskType === TaskTypes.DECISION_MAKER || props.taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER;
18214
19702
  const isTopLevelEntity = props.taskType === TaskTypes.INDIVIDUAL;
18215
- const requiredFieldsByTask = (props.requiredFields || personalDetailsFields).filter((field) => !isNewEntryFlowEnabled && (field !== "role" || field === "role" && isDecisionMakerTask) || isNewEntryFlowEnabled && (field !== "role" && field !== "accountHolder" || field === "role" && isDecisionMakerTask));
19703
+ const isLegalRepresentativeDetailsTask = props.taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
19704
+ const requiredFieldsByTask = (props.requiredFields || personalDetailsFields).filter((field) => !isNewEntryFlowEnabled && (field !== "role" || field === "role" && isDecisionMakerTask) || isNewEntryFlowEnabled && (field !== "role" && field !== "accountHolder" || field === "role" && isDecisionMakerTask) || field === "relationship" && isLegalRepresentativeDetailsTask);
18216
19705
  const isAllowedEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
18217
- const getDirectChildFields = () => requiredFieldsByTask.filter((field) => ["birthDate", "residencyCountry", "jobTitle", "nationality"].includes(field));
19706
+ const getDirectChildFields = () => requiredFieldsByTask.filter((field) => ["birthDate", "residencyCountry", "jobTitle", "nationality", "relationship"].includes(field));
18218
19707
  const {
18219
19708
  handleChangeFor,
18220
19709
  data,
@@ -18325,7 +19814,8 @@ function PersonalDetailsComponent(props) {
18325
19814
  };
18326
19815
  }
18327
19816
  const translatableWarningMessage = getLegalRepresentativeWarningMessage({
18328
- data
19817
+ data,
19818
+ taskType: props.taskType
18329
19819
  });
18330
19820
  if (translatableWarningMessage) {
18331
19821
  return {
@@ -18357,7 +19847,17 @@ function PersonalDetailsComponent(props) {
18357
19847
  validationErrors: props == null ? void 0 : props.fieldValidationErrors,
18358
19848
  formUtils,
18359
19849
  id: "ariaErrorField"
18360
- }), data.residencyCountry === "US" && isTopLevelEntity ? jsx(PatriotActDisclosure, {}) : void 0, jsx(ContextGuidance, {
19850
+ }), data.residencyCountry === "US" && isTopLevelEntity ? jsx(PatriotActDisclosure, {}) : void 0, isLegalRepresentativeDetailsTask && jsx(Alert, {
19851
+ hasCloseButton: false,
19852
+ type: "info",
19853
+ title: i18n.get({
19854
+ key: "legalRepresentativeFor",
19855
+ values: {
19856
+ firstName: props.parentLegalEntity.individual.name.firstName,
19857
+ lastName: props.parentLegalEntity.individual.name.lastName
19858
+ }
19859
+ })
19860
+ }), jsx(ContextGuidance, {
18361
19861
  page: "Personal details",
18362
19862
  title: i18n.get("whyDoINeedToFillInThisInformation"),
18363
19863
  content: i18n.get("reasonForFillingIndividualPersonalDetails"),
@@ -18408,6 +19908,34 @@ function PersonalDetailsComponent(props) {
18408
19908
  allowedCountries: isTopLevelEntity ? allowedCountries : void 0,
18409
19909
  classNameModifiers: ["country"],
18410
19910
  handleChangeFor: () => handleChangeFor("residencyCountry", "input")
19911
+ }), isAgeVerificationEnabled && formUtils.isRequiredField("relationship") && jsx("div", {
19912
+ children: jsx(Field, {
19913
+ name: "relationship",
19914
+ classNameModifiers: ["relationship"],
19915
+ label: i18n.get({
19916
+ key: "relationshipTo",
19917
+ values: {
19918
+ firstName: props.parentLegalEntity.individual.name.firstName,
19919
+ lastName: props.parentLegalEntity.individual.name.lastName
19920
+ }
19921
+ }),
19922
+ errorMessage: formUtils.getErrorMessage("relationship", errors, fieldProblems),
19923
+ children: (childProps) => jsx(RadioGroup, {
19924
+ ...childProps,
19925
+ name: "relationship",
19926
+ items: relationshipOptions,
19927
+ value: data.relationship,
19928
+ onChange: handleChangeFor("relationship", "input"),
19929
+ "aria-required": true,
19930
+ "aria-label": i18n.get({
19931
+ key: "relationshipTo",
19932
+ values: {
19933
+ firstName: props.parentLegalEntity.individual.name.firstName,
19934
+ lastName: props.parentLegalEntity.individual.name.lastName
19935
+ }
19936
+ })
19937
+ })
19938
+ })
18411
19939
  }), isAgeVerificationEnabled && formUtils.isRequiredField("birthDate") && jsxs(Fragment, {
18412
19940
  children: [jsx(Field, {
18413
19941
  name: "birthDate",
@@ -18487,6 +20015,70 @@ function PersonalDetailsComponent(props) {
18487
20015
  })]
18488
20016
  });
18489
20017
  }
20018
+ const proofOfRelationshipDocumentOptions = [{
20019
+ id: "birthCertificate",
20020
+ name: "birthCertificate"
20021
+ }, {
20022
+ id: "guardianshipCertificate",
20023
+ name: "guardianshipCertificate"
20024
+ }, {
20025
+ id: "adoptionCertificate",
20026
+ name: "adoptionCertificate"
20027
+ }];
20028
+ function ProofOfRelationship({
20029
+ id: id2,
20030
+ ...props
20031
+ }) {
20032
+ const {
20033
+ i18n
20034
+ } = useI18nContext();
20035
+ const [proofOfRelationshipDocumentType, setProofOfRelationshipDocumentType] = useState(proofOfRelationshipDocumentOptions[0].id);
20036
+ const proofOfResidencyGuidanceContent = jsxs(Fragment, {
20037
+ children: [jsxs("div", {
20038
+ className: "adyen-kyc-upload-field__subtitle",
20039
+ children: [" ", i18n.get("requirements")]
20040
+ }), jsxs(List, {
20041
+ className: "adyen-kyc-upload-field__requirements",
20042
+ children: [jsx(ListItem, {
20043
+ children: i18n.get("documentAddressedToName", {
20044
+ values: {
20045
+ name: props.name
20046
+ }
20047
+ })
20048
+ }), jsx(ListItem, {
20049
+ children: i18n.get("showAddressStateCountry")
20050
+ }), jsx(ListItem, {
20051
+ children: i18n.get("fullDocumentVisibleWithReadableText")
20052
+ }), jsx(ListItem, {
20053
+ children: i18n.get("documentCannotBeDamaged")
20054
+ })]
20055
+ })]
20056
+ });
20057
+ return jsx("div", {
20058
+ children: jsx(DocumentUpload, {
20059
+ ...props,
20060
+ documentField: "proofOfRelationship",
20061
+ documentType: DocumentType.PROOF_OF_RELATIONSHIP,
20062
+ heading: i18n.get("proofOfRelationship"),
20063
+ guidanceHeader: jsx("div", {
20064
+ className: "adyen-kyc-document-upload__subtitle adyen-kyc-u-margin-bottom-16",
20065
+ children: i18n.get("proofOfResidenceDocumentTypeLabel", {
20066
+ values: {
20067
+ name: props.name
20068
+ }
20069
+ })
20070
+ }),
20071
+ documentTypeSelect: {
20072
+ selectedType: proofOfRelationshipDocumentType,
20073
+ setSelectedType: setProofOfRelationshipDocumentType,
20074
+ options: proofOfRelationshipDocumentOptions
20075
+ },
20076
+ guidanceContent: proofOfResidencyGuidanceContent,
20077
+ id: id2
20078
+ })
20079
+ });
20080
+ }
20081
+ 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);
18490
20082
  var ProofOfResidenceDocumentTypes = /* @__PURE__ */ ((ProofOfResidenceDocumentTypes2) => {
18491
20083
  ProofOfResidenceDocumentTypes2["BANK_STATEMENT"] = "bankStatement";
18492
20084
  ProofOfResidenceDocumentTypes2["UTILITY_BILL"] = "utilityBill";
@@ -18618,6 +20210,11 @@ const individualForms = {
18618
20210
  formId: "proofOfNationalId",
18619
20211
  formName: "proofOfNationalId",
18620
20212
  fields: ["proofOfNationalId"]
20213
+ },
20214
+ proofOfRelationship: {
20215
+ formId: "proofOfRelationship",
20216
+ formName: "proofOfRelationship",
20217
+ fields: ["proofOfRelationship"]
18621
20218
  }
18622
20219
  };
18623
20220
  const personalDetailsFormID = individualForms.personalDetails.formId;
@@ -18626,7 +20223,8 @@ const idDocumentFormID = individualForms.idDocument.formId;
18626
20223
  const idVerificationMethodFormID = individualForms.idVerificationMethod.formId;
18627
20224
  const proofOfResidencyFormID = individualForms.proofOfResidence.formId;
18628
20225
  const proofOfNationalIdFormID = individualForms.proofOfNationalId.formId;
18629
- const individualDocumentForms = [idVerificationMethodFormID, idDocumentFormID, proofOfResidencyFormID, proofOfNationalIdFormID];
20226
+ const proofOfRelationshipFormID = individualForms.proofOfRelationship.formId;
20227
+ const individualDocumentForms = [idVerificationMethodFormID, idDocumentFormID, proofOfResidencyFormID, proofOfNationalIdFormID, proofOfRelationshipFormID];
18630
20228
  function IndividualComponent(props) {
18631
20229
  var _a, _b, _c, _d, _e, _f, _g, _h;
18632
20230
  const {
@@ -18655,6 +20253,7 @@ function IndividualComponent(props) {
18655
20253
  const idVerificationMethodFormProps = getFormProps(props, idVerificationMethodFormID);
18656
20254
  const proofOfResidencyFormProps = getFormProps(props, proofOfResidencyFormID);
18657
20255
  const proofOfNationalIdFormProps = getFormProps(props, proofOfNationalIdFormID);
20256
+ const proofOfRelationshipFormProps = getFormProps(props, proofOfRelationshipFormID);
18658
20257
  this.verifyForm = (formId) => {
18659
20258
  var _a2, _b2;
18660
20259
  return ((_b2 = (_a2 = formsRef[formId]) == null ? void 0 : _a2.current) == null ? void 0 : _b2.verifyForm) ? formsRef[formId].current.verifyForm() : Promise.resolve(true);
@@ -18665,6 +20264,7 @@ function IndividualComponent(props) {
18665
20264
  lastName: (_d = data == null ? void 0 : data.personalDetails) == null ? void 0 : _d.lastName,
18666
20265
  residencyCountry: (_e = data == null ? void 0 : data.personalDetails) == null ? void 0 : _e.residencyCountry
18667
20266
  };
20267
+ const isLegalRepresentativeDetailsTask = props.taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
18668
20268
  const handleStateChange = ({
18669
20269
  currentState,
18670
20270
  prevState
@@ -18709,11 +20309,12 @@ function IndividualComponent(props) {
18709
20309
  residencyCountry: props.country
18710
20310
  },
18711
20311
  ref: formsRef[personalDetailsFormID],
18712
- heading: i18n.get("personalDetails"),
20312
+ heading: isLegalRepresentativeDetailsTask ? i18n.get("legalRepresentativeDetails") : i18n.get("personalDetails"),
18713
20313
  taskType: props.taskType,
18714
20314
  id: personalDetailsFormID,
18715
20315
  allowedRoles: props == null ? void 0 : props.allowedRoles,
18716
- capabilities: props.capabilities
20316
+ capabilities: props.capabilities,
20317
+ parentLegalEntity: props.parentLegalEntity
18717
20318
  })
18718
20319
  }), jsx("div", {
18719
20320
  className: activeForm.formId !== addressFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
@@ -18776,6 +20377,13 @@ function IndividualComponent(props) {
18776
20377
  heading: i18n.get("proofOfNationalId"),
18777
20378
  id: proofOfNationalIdFormID
18778
20379
  })
20380
+ }), jsx("div", {
20381
+ className: activeForm.formId !== proofOfRelationshipFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
20382
+ children: jsx(ProofOfRelationship$1, {
20383
+ ...proofOfRelationshipFormProps,
20384
+ id: proofOfRelationshipFormID,
20385
+ name: fullName
20386
+ })
18779
20387
  })]
18780
20388
  });
18781
20389
  };
@@ -19498,7 +21106,7 @@ class AdyenKycSdkError extends Error {
19498
21106
  }
19499
21107
  let sdkToken;
19500
21108
  let fetchSdkToken;
19501
- const logger$t = createLogger("Session");
21109
+ const logger$v = createLogger("Session");
19502
21110
  const setSdkToken = (token) => {
19503
21111
  sdkToken = token;
19504
21112
  };
@@ -19521,7 +21129,7 @@ const refreshSession = async () => {
19521
21129
  setSdkToken(token);
19522
21130
  isSessionRefreshed = true;
19523
21131
  } catch (e) {
19524
- logger$t.error("Failed to fetch sdk token", e);
21132
+ logger$v.error("Failed to fetch sdk token", e);
19525
21133
  }
19526
21134
  return isSessionRefreshed;
19527
21135
  };
@@ -19531,7 +21139,7 @@ const addAnimationStartListener = (element, listener) => {
19531
21139
  const removeAnimationStartListener = (element, listener) => {
19532
21140
  element.removeEventListener("animationstart", listener, false);
19533
21141
  };
19534
- const logger$s = createLogger("Fetch");
21142
+ const logger$u = createLogger("Fetch");
19535
21143
  const getRequestObject = (options, data) => {
19536
21144
  const {
19537
21145
  headers = [],
@@ -19578,10 +21186,10 @@ const logFetchError = (message, level) => {
19578
21186
  case "info":
19579
21187
  case "warn":
19580
21188
  case "error":
19581
- logger$s[level](message);
21189
+ logger$u[level](message);
19582
21190
  break;
19583
21191
  default:
19584
- logger$s.error(message);
21192
+ logger$u.error(message);
19585
21193
  }
19586
21194
  };
19587
21195
  const handleFetchResponse = async (response, responseType) => {
@@ -19667,11 +21275,11 @@ const httpDelete = async (options, data) => http({
19667
21275
  method: "DELETE"
19668
21276
  }, data);
19669
21277
  const removeElementSiblings = (element) => {
19670
- const parent = element.parentNode;
19671
- if (!parent) return;
19672
- let child = parent.firstChild;
21278
+ const parent2 = element.parentNode;
21279
+ if (!parent2) return;
21280
+ let child = parent2.firstChild;
19673
21281
  while (child) {
19674
- if (child !== element) parent.removeChild(child);
21282
+ if (child !== element) parent2.removeChild(child);
19675
21283
  child = child.nextSibling;
19676
21284
  }
19677
21285
  };
@@ -19679,7 +21287,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
19679
21287
  const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
19680
21288
  const MOUNT_TIMEOUT = 10 * 1e3;
19681
21289
  const TINK_VENDOR = "Tink";
19682
- const logger$r = createLogger("iframeWidget");
21290
+ const logger$t = createLogger("iframeWidget");
19683
21291
  const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
19684
21292
  const isTerminalMessageData = (data) => isObjectData(data) && Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
19685
21293
  const parseMessageJson = (message) => {
@@ -19697,7 +21305,7 @@ const callbackErrorHandler = async (response) => {
19697
21305
  try {
19698
21306
  await response;
19699
21307
  } catch (ex) {
19700
- logger$r.error(ex);
21308
+ logger$t.error(ex);
19701
21309
  }
19702
21310
  return {
19703
21311
  error: "UNKNOWN_ERROR",
@@ -19800,7 +21408,7 @@ class IFrameWidget {
19800
21408
  message = responseData.errorMessage;
19801
21409
  }
19802
21410
  } catch (ex) {
19803
- logger$r.error(ex);
21411
+ logger$t.error(ex);
19804
21412
  }
19805
21413
  throw new AdyenKycSdkError(reason, jsonData.error);
19806
21414
  }
@@ -19987,7 +21595,7 @@ function BankVerificationWidget({
19987
21595
  ref: widgetContainerRef
19988
21596
  });
19989
21597
  }
19990
- const logger$q = createLogger("BankVerification");
21598
+ const logger$s = createLogger("BankVerification");
19991
21599
  const accountVerificationFields = ["verifiedAccountHolder", "verifiedBankCountry", "verifiedBankName", "verifiedCurrencyCode", "verifiedBankAccountNumber"];
19992
21600
  const InstantVerificationErrorContext = createContext(null);
19993
21601
  const useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
@@ -20019,7 +21627,7 @@ const usePreferredVendorForCountry = (country2, getBankVerificationVendors) => {
20019
21627
  const vendor = vendors[0];
20020
21628
  setPreferredVendor(vendor.name ? vendor : void 0);
20021
21629
  };
20022
- getPreferredVendor().catch(logger$q.error);
21630
+ getPreferredVendor().catch(logger$s.error);
20023
21631
  }, [country2, getBankVerificationVendors]);
20024
21632
  return preferredVendor;
20025
21633
  };
@@ -22301,17 +23909,6 @@ const getCountrySpecificTrustTypeOptions = (country2) => {
22301
23909
  return countrySpecificTrustTypeOption;
22302
23910
  });
22303
23911
  };
22304
- const ContextHelper = ({
22305
- content
22306
- }) => jsx("div", {
22307
- className: "adyen-kyc-context-helper",
22308
- children: jsxs("div", {
22309
- className: "adyen-kyc-context-helper__content",
22310
- children: [jsx(Icon, {
22311
- name: "info-circle"
22312
- }), content]
22313
- })
22314
- });
22315
23912
  const trustRegistrationDetailsValidations = {
22316
23913
  trustType: {
22317
23914
  modes: ["blur"],
@@ -22406,8 +24003,15 @@ function TrustRegistrationDetailsComponent(props) {
22406
24003
  validationErrors: props == null ? void 0 : props.fieldValidationErrors,
22407
24004
  formUtils,
22408
24005
  id: "ariaErrorField"
22409
- }), jsx(ContextHelper, {
22410
- content: i18n.get("makeSureToHaveYourTrustDeed")
24006
+ }), jsx(Alert, {
24007
+ type: "info",
24008
+ hasCloseButton: false,
24009
+ title: jsx(Typography, {
24010
+ variant: "caption",
24011
+ color: "secondary",
24012
+ children: i18n.get("makeSureToHaveYourTrustDeed")
24013
+ }),
24014
+ className: "adyen-kyc-u-margin-bottom-16"
22411
24015
  }), formUtils.isRequiredField("country") && jsx(CountryField, {
22412
24016
  data: formUtils.getFieldData(data, COUNTRY_FIELD),
22413
24017
  valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
@@ -23624,7 +25228,7 @@ const useUnifyLoadingStatus = (setParentLoadingStatus, ...childLoadingStatuses)
23624
25228
  setParentLoadingStatus(loadingStatus);
23625
25229
  }, [...childLoadingStatuses]);
23626
25230
  };
23627
- const logger$p = createLogger("useScenarioConfiguration");
25231
+ const logger$r = createLogger("useScenarioConfiguration");
23628
25232
  const useScenarioConfiguration = ({
23629
25233
  getConfigurationData,
23630
25234
  getPayoutAccountFormatData,
@@ -23650,12 +25254,12 @@ const useScenarioConfiguration = ({
23650
25254
  const response = await getConfigurationData();
23651
25255
  setConfigurationResponse(response);
23652
25256
  } catch (err) {
23653
- logger$p.warn("WARNING: Configuration request failed - error:", err);
25257
+ logger$r.warn("WARNING: Configuration request failed - error:", err);
23654
25258
  } finally {
23655
25259
  setConfigurationLoadingStatus("success");
23656
25260
  }
23657
25261
  };
23658
- makeConfigCallAndSave().catch(logger$p.error);
25262
+ makeConfigCallAndSave().catch(logger$r.error);
23659
25263
  }, [getConfigurationData, setConfigurationLoadingStatus]);
23660
25264
  useEffect(() => {
23661
25265
  if (!getPayoutAccountFormatData) return;
@@ -23672,12 +25276,12 @@ const useScenarioConfiguration = ({
23672
25276
  const defaultAccountFormat = defaultPayoutAccountFormat[country2] ?? allowedBankAccountFormats[0];
23673
25277
  setAccountFormat(existingBankAccountFormat ?? defaultAccountFormat);
23674
25278
  } catch (err) {
23675
- logger$p.warn("WARNING: Payout format request failed - error:", err);
25279
+ logger$r.warn("WARNING: Payout format request failed - error:", err);
23676
25280
  } finally {
23677
25281
  setpayoutFormatLoadingStatus("success");
23678
25282
  }
23679
25283
  };
23680
- makePayoutFormatCallAndSave().catch(logger$p.error);
25284
+ makePayoutFormatCallAndSave().catch(logger$r.error);
23681
25285
  }, [country2, setAccountFormat, getPayoutAccountFormatData, setpayoutFormatLoadingStatus, existingBankAccountFormat]);
23682
25286
  const {
23683
25287
  fieldConfigurations,
@@ -23773,6 +25377,12 @@ const identityBase = {
23773
25377
  },
23774
25378
  accountHolder: {
23775
25379
  rule: "accountHolderIfCustomer"
25380
+ },
25381
+ relationship: {
25382
+ rule: "legalRepresentativeRelationshipRequired"
25383
+ },
25384
+ proofOfRelationship: {
25385
+ rule: "isProofOfRelationshipRequired"
23776
25386
  }
23777
25387
  };
23778
25388
  const identityNumber = {
@@ -25202,7 +26812,9 @@ function BasicInformationComponent({
25202
26812
  country: country2,
25203
26813
  companyType: companyType2 = CompanyTypesValue.PRIVATE_COMPANY,
25204
26814
  isTopLevelEntity,
25205
- isBusinessSelection
26815
+ isBusinessSelection,
26816
+ setVerifiedBusiness,
26817
+ searchName
25206
26818
  }) {
25207
26819
  var _a, _b, _c, _d, _e;
25208
26820
  const {
@@ -25296,6 +26908,11 @@ function BasicInformationComponent({
25296
26908
  fieldProblems: formFieldProblems
25297
26909
  });
25298
26910
  }, [formSchema, formData, formErrors, formFieldProblems, formValid, updateStateSlice]);
26911
+ useEffect(() => {
26912
+ if (formData.businessName !== searchName) {
26913
+ setVerifiedBusiness(void 0);
26914
+ }
26915
+ }, [formData.businessName, searchName, setVerifiedBusiness]);
25299
26916
  return jsxs("form", {
25300
26917
  className: isBusinessSelection ? "adyen-kyc-hide-form" : void 0,
25301
26918
  children: [jsx(FormHeader, {
@@ -25883,7 +27500,7 @@ var CompanySearchEvents = /* @__PURE__ */ ((CompanySearchEvents2) => {
25883
27500
  CompanySearchEvents2["SELECTION_ERROR"] = "CompanySearch_CompanySelectionError";
25884
27501
  return CompanySearchEvents2;
25885
27502
  })(CompanySearchEvents || {});
25886
- const logger$o = createLogger("useCompanySearch");
27503
+ const logger$q = createLogger("useCompanySearch");
25887
27504
  const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
25888
27505
  function useCompanySearch({
25889
27506
  defaultData,
@@ -26007,7 +27624,7 @@ function useCompanySearch({
26007
27624
  state: companyData.state ?? stateOrProvince2
26008
27625
  });
26009
27626
  } catch (e) {
26010
- logger$o.error(e);
27627
+ logger$q.error(e);
26011
27628
  setError(e);
26012
27629
  setStatus("error");
26013
27630
  } finally {
@@ -26040,7 +27657,7 @@ function useCompanySearch({
26040
27657
  indexSearch: handleCompanyIndexSearch,
26041
27658
  deepSearch: handleCompanyDeepSearch,
26042
27659
  resultsLimit: limit
26043
- })) == null ? void 0 : _a.catch((e) => logger$o.error(e));
27660
+ })) == null ? void 0 : _a.catch((e) => logger$q.error(e));
26044
27661
  }
26045
27662
  }, [legalCompanyName2, country2, stateOrProvince2, taxIdentificationNumber2, verifiedCompany, searchCompanies, handleCompanyIndexSearch, handleCompanyDeepSearch, limit, canVerify, baseTrackingPayload]);
26046
27663
  useEffect(() => {
@@ -26242,7 +27859,7 @@ function BusinessInformationCard({
26242
27859
  })
26243
27860
  });
26244
27861
  }
26245
- const logger$n = createLogger("BusinessSelection");
27862
+ const logger$p = createLogger("BusinessSelection");
26246
27863
  function BusinessSelectionComponent({
26247
27864
  country: country2,
26248
27865
  state: state2,
@@ -26299,16 +27916,16 @@ function BusinessSelectionComponent({
26299
27916
  const handleSelectBusiness = useCallback(async (result) => {
26300
27917
  if ((currentBusinessSelection == null ? void 0 : currentBusinessSelection.id) === result.id && !failedToLoad) return;
26301
27918
  try {
27919
+ setFetching(true);
26302
27920
  setFailedToLoad(false);
26303
27921
  setInvalidTin(false);
26304
27922
  setVerifiedBusiness(void 0);
26305
27923
  setSelectedBusinessId(result.id);
26306
- setFetching(true);
26307
27924
  const businessData = await fetchBusinessData(result);
26308
27925
  setCurrentBusinessSelection(businessData);
26309
27926
  } catch (e) {
26310
27927
  setFailedToLoad(true);
26311
- logger$n.error(e);
27928
+ logger$p.error(e);
26312
27929
  } finally {
26313
27930
  setFetching(false);
26314
27931
  }
@@ -26317,23 +27934,24 @@ function BusinessSelectionComponent({
26317
27934
  const business = currentBusinessSelection ?? data;
26318
27935
  if (!tin || !(business == null ? void 0 : business.name) || !business || invalidTin) return;
26319
27936
  try {
26320
- setInvalidTin(false);
26321
27937
  setIsLoading(true);
27938
+ setInvalidTin(false);
26322
27939
  const res = await (handleVerifyTin == null ? void 0 : handleVerifyTin({
26323
27940
  tin,
26324
27941
  name: business == null ? void 0 : business.name
26325
27942
  }));
26326
27943
  if (res == null ? void 0 : res.matched) {
26327
27944
  setVerifiedBusiness(business);
27945
+ handleNextClick();
26328
27946
  } else {
26329
27947
  setInvalidTin(true);
26330
27948
  }
26331
27949
  } catch (e) {
26332
- logger$n.error(e);
27950
+ logger$p.error(e);
26333
27951
  } finally {
26334
27952
  setIsLoading(false);
26335
27953
  }
26336
- }, [currentBusinessSelection, handleVerifyTin, invalidTin, setIsLoading, setVerifiedBusiness, tin]);
27954
+ }, [currentBusinessSelection, handleNextClick, handleVerifyTin, invalidTin, setIsLoading, setVerifiedBusiness, tin]);
26337
27955
  const searchForBusiness = useCallback(async () => {
26338
27956
  var _a;
26339
27957
  if (!(basicInformation2 == null ? void 0 : basicInformation2.businessName) || !country2 || !state2 || !handleCompanyDeepSearch) return;
@@ -26362,7 +27980,7 @@ function BusinessSelectionComponent({
26362
27980
  }
26363
27981
  }
26364
27982
  } catch (e) {
26365
- logger$n.error(e);
27983
+ logger$p.error(e);
26366
27984
  } finally {
26367
27985
  setIsLoading(false);
26368
27986
  }
@@ -26370,9 +27988,9 @@ function BusinessSelectionComponent({
26370
27988
  const handleManualDataEntry = useCallback(() => {
26371
27989
  setShowCompanyStructure(true);
26372
27990
  }, [setShowCompanyStructure]);
26373
- return jsx("div", {
27991
+ return jsxs("div", {
26374
27992
  className: "adyen-kyc-business-selection",
26375
- children: isLoading || !searchResults ? jsxs("div", {
27993
+ children: [isLoading && jsxs("div", {
26376
27994
  className: "adyen-kyc-business-selection__loader",
26377
27995
  children: [jsx(Loader, {
26378
27996
  size: "large"
@@ -26380,7 +27998,7 @@ function BusinessSelectionComponent({
26380
27998
  el: "span",
26381
27999
  children: !currentBusinessSelection ? i18n.get("businessSelection__searching") : i18n.get("businessSelection__verifying")
26382
28000
  })]
26383
- }) : jsxs(Fragment, {
28001
+ }), !isLoading && searchResults && jsxs(Fragment, {
26384
28002
  children: [jsx(FormHeader, {
26385
28003
  heading: i18n.get("businessSelection__heading")
26386
28004
  }), jsxs(CardGroup, {
@@ -26407,7 +28025,7 @@ function BusinessSelectionComponent({
26407
28025
  })]
26408
28026
  })]
26409
28027
  })]
26410
- })
28028
+ })]
26411
28029
  });
26412
28030
  }
26413
28031
  function BusinessDetailsComponent(props) {
@@ -26451,9 +28069,9 @@ function BusinessDetailsComponent(props) {
26451
28069
  useEffect(() => {
26452
28070
  if (searchName !== (basicInformation2 == null ? void 0 : basicInformation2.businessName)) {
26453
28071
  setShowCompanyStructure(false);
26454
- setIsBusinessSelection(false);
28072
+ setSearchResults(void 0);
26455
28073
  }
26456
- }, [basicInformation2 == null ? void 0 : basicInformation2.businessName, searchName, setIsBusinessSelection, setShowCompanyStructure]);
28074
+ }, [basicInformation2 == null ? void 0 : basicInformation2.businessName, searchName, setIsBusinessSelection, setSearchResults, setShowCompanyStructure]);
26457
28075
  const canSkipBusinessSelection = useMemo(() => Boolean(!isLoading && searchResults && !searchResults.length && showCompanyStructure), [isLoading, searchResults, showCompanyStructure]);
26458
28076
  const proceedToNextForm = useMemo(() => {
26459
28077
  if ((basicInformation2 == null ? void 0 : basicInformation2.country) !== "US") return false;
@@ -26507,7 +28125,9 @@ function BusinessDetailsComponent(props) {
26507
28125
  companyType: companyStructure2 == null ? void 0 : companyStructure2.entityType,
26508
28126
  isTopLevelEntity,
26509
28127
  baseTrackingPayload,
26510
- isBusinessSelection
28128
+ isBusinessSelection,
28129
+ setVerifiedBusiness,
28130
+ searchName
26511
28131
  })]
26512
28132
  }), jsx("div", {
26513
28133
  className: formWrapperClasses(forms2.companyStructure.formId),
@@ -26593,7 +28213,6 @@ function BusinessDetailsComponent(props) {
26593
28213
  })]
26594
28214
  });
26595
28215
  }
26596
- const getLegalEntityCountry = (legalEntityResponse) => legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? legalEntityResponse.individual.residentialAddress.country : legalEntityResponse.organization.registeredAddress.country;
26597
28216
  const organizationTypesToSkipCompanyStructureForm = ["partnershipIncorporated", "associationIncorporated"];
26598
28217
  const getBusinessType = (businessTypeItems, country2, accountHolder2, legalEntityType, companyTypesValue, capabilities = []) => {
26599
28218
  const findBusinessType = (id2) => businessTypeItems.find((bt) => bt.id === id2);
@@ -26978,7 +28597,7 @@ const useExpiryThreshold = (expiry) => {
26978
28597
  };
26979
28598
  };
26980
28599
  const ExpiryContext = createContext(false);
26981
- const logger$m = createLogger("ExpiryProvider");
28600
+ const logger$o = createLogger("ExpiryProvider");
26982
28601
  const ExpiryProvider = ({
26983
28602
  expiry: initialExpiry,
26984
28603
  eventEmitter,
@@ -27011,7 +28630,7 @@ const ExpiryProvider = ({
27011
28630
  refreshExpiry().then((newExpiry) => {
27012
28631
  setExpiry(newExpiry);
27013
28632
  setModalDismissed(false);
27014
- }).catch(logger$m.error);
28633
+ }).catch(logger$o.error);
27015
28634
  }
27016
28635
  }), children]
27017
28636
  });
@@ -27031,7 +28650,7 @@ const ExpiryProvider = ({
27031
28650
  });
27032
28651
  };
27033
28652
  const useHasExpired = () => useContext(ExpiryContext);
27034
- const logger$l = createLogger("FormRouterContextProvider");
28653
+ const logger$n = createLogger("FormRouterContextProvider");
27035
28654
  function FormRouterContextProvider({
27036
28655
  children,
27037
28656
  forms: forms2,
@@ -27051,7 +28670,7 @@ function FormRouterContextProvider({
27051
28670
  if (formIndex > -1) {
27052
28671
  setFormIndex(formIndex);
27053
28672
  } else {
27054
- logger$l.error("No form was found to have that field so form navigation failed.");
28673
+ logger$n.error("No form was found to have that field so form navigation failed.");
27055
28674
  }
27056
28675
  }
27057
28676
  }), [forms2, handleGetIdVerificationToken, setFormIndex]);
@@ -27823,31 +29442,35 @@ function BusinessDetailsDropinComponent({
27823
29442
  switch (form) {
27824
29443
  case "basicInformation": {
27825
29444
  if (!canSubmitForm) {
27826
- setVerifiedBusiness(void 0);
27827
- setShowCompanyStructure(false);
27828
29445
  setIsBusinessSelection(false);
29446
+ if (searchResults && searchResults.length) {
29447
+ setShowCompanyStructure(false);
29448
+ }
27829
29449
  }
27830
- break;
29450
+ return gotoFormByFormIndex(index);
27831
29451
  }
27832
29452
  case "additionalInformation": {
27833
- if (!isBusinessSelection) setIsBusinessSelection(true);
27834
- break;
29453
+ if (verifiedBusiness) return gotoFormByFormIndex(index);
29454
+ if (!isBusinessSelection) return setIsBusinessSelection(true);
29455
+ if (!showCompanyStructure) return;
29456
+ return gotoFormByFormIndex(index);
27835
29457
  }
29458
+ default:
29459
+ return gotoFormByFormIndex(index);
27836
29460
  }
27837
- return gotoFormByFormIndex(index);
27838
- }, [canSubmitForm, currentCountry, forms2, gotoFormByFormIndex, isBusinessSelection]);
29461
+ }, [canSubmitForm, currentCountry, forms2, gotoFormByFormIndex, isBusinessSelection, searchResults, showCompanyStructure, verifiedBusiness]);
27839
29462
  const nextClick = useCallback(() => {
27840
29463
  if (!COUNTRIES_USING_COMPANY_SEARCH.includes(currentCountry)) return handleNextClick();
27841
29464
  switch (activeForm.formId) {
27842
29465
  case "basicInformation":
27843
- if (showCompanyStructure) {
29466
+ if (showCompanyStructure || verifiedBusiness) {
27844
29467
  return handleNextClick();
27845
29468
  }
27846
29469
  return isBusinessSelection ? handleNextClick() : setIsBusinessSelection(true);
27847
29470
  default:
27848
29471
  return handleNextClick();
27849
29472
  }
27850
- }, [activeForm.formId, currentCountry, handleNextClick, isBusinessSelection, showCompanyStructure]);
29473
+ }, [activeForm.formId, currentCountry, handleNextClick, isBusinessSelection, showCompanyStructure, verifiedBusiness]);
27851
29474
  const backClick = useCallback(() => {
27852
29475
  if (!COUNTRIES_USING_COMPANY_SEARCH.includes(country2)) return handleNextClick();
27853
29476
  switch (activeForm.formId) {
@@ -27863,13 +29486,15 @@ function BusinessDetailsDropinComponent({
27863
29486
  return handleBackClick == null ? void 0 : handleBackClick();
27864
29487
  }
27865
29488
  case "additionalInformation": {
27866
- setVerifiedBusiness(void 0);
29489
+ if (verifiedBusiness) {
29490
+ setIsBusinessSelection(false);
29491
+ }
27867
29492
  return handleBackClick == null ? void 0 : handleBackClick();
27868
29493
  }
27869
29494
  default:
27870
29495
  return handleBackClick == null ? void 0 : handleBackClick();
27871
29496
  }
27872
- }, [activeForm.formId, country2, handleBackClick, handleNextClick, isLoading, searchResults, showBusinessSelection]);
29497
+ }, [activeForm.formId, country2, handleBackClick, handleNextClick, isLoading, searchResults, showBusinessSelection, verifiedBusiness]);
27873
29498
  return jsx(FormWrapper, {
27874
29499
  taskName: taskName ?? "businessDetails",
27875
29500
  gotoFormByFormIndex: goToForm,
@@ -29387,7 +31012,7 @@ const formatDataForSummary = (data, forms2, labels2, i18n) => {
29387
31012
  }
29388
31013
  }, {});
29389
31014
  };
29390
- const logger$k = createLogger("useFormTaskSubmit");
31015
+ const logger$m = createLogger("useFormTaskSubmit");
29391
31016
  function useCompanySearchTaskSubmit({
29392
31017
  task,
29393
31018
  forms: forms2,
@@ -29430,7 +31055,7 @@ function useCompanySearchTaskSubmit({
29430
31055
  });
29431
31056
  }
29432
31057
  } catch (e) {
29433
- logger$k.error(e);
31058
+ logger$m.error(e);
29434
31059
  userEvents.addEvent(CompanySearchEvents.DOCUMENTS_ERROR, {
29435
31060
  segmentation: {
29436
31061
  ...baseTrackingPayload,
@@ -29482,7 +31107,7 @@ function useCompanySearchTaskSubmit({
29482
31107
  ...trackingPayload
29483
31108
  }
29484
31109
  });
29485
- logger$k.log(submittedLegalEntity);
31110
+ logger$m.log(submittedLegalEntity);
29486
31111
  clearToasts();
29487
31112
  onExternalSubmit == null ? void 0 : onExternalSubmit(data);
29488
31113
  } catch (e) {
@@ -29506,7 +31131,7 @@ function useCompanySearchTaskSubmit({
29506
31131
  type: "error"
29507
31132
  });
29508
31133
  }
29509
- logger$k.error(e);
31134
+ logger$m.error(e);
29510
31135
  userEvents.addEvent(CompanySearchEvents.TASK_ERROR, {
29511
31136
  segmentation: {
29512
31137
  ...baseTrackingPayload,
@@ -29865,7 +31490,7 @@ function CompanySearchDropinComponent({
29865
31490
  }
29866
31491
  const IgnoreLocalStorageContext = createContext(false);
29867
31492
  const useIgnoreLocalStorage = () => useContext(IgnoreLocalStorageContext);
29868
- const logger$j = createLogger("useLocalStorage");
31493
+ const logger$l = createLogger("useLocalStorage");
29869
31494
  const useLocalStorage = (key, defaultValue, options) => {
29870
31495
  const {
29871
31496
  serializer,
@@ -29886,7 +31511,7 @@ const useLocalStorage = (key, defaultValue, options) => {
29886
31511
  const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
29887
31512
  return res;
29888
31513
  } catch (err) {
29889
- logger$j.error(err);
31514
+ logger$l.error(err);
29890
31515
  return defaultValue;
29891
31516
  }
29892
31517
  });
@@ -29917,7 +31542,7 @@ const useLocalStorage = (key, defaultValue, options) => {
29917
31542
  try {
29918
31543
  updateLocalStorage();
29919
31544
  } catch (err) {
29920
- logger$j.error(err);
31545
+ logger$l.error(err);
29921
31546
  }
29922
31547
  }, [value, ignoreLocalStorage]);
29923
31548
  useEffect(() => {
@@ -29930,7 +31555,7 @@ const useLocalStorage = (key, defaultValue, options) => {
29930
31555
  setValue(event.newValue ? parser(event.newValue) : void 0);
29931
31556
  }
29932
31557
  } catch (err) {
29933
- logger$j.error(err);
31558
+ logger$l.error(err);
29934
31559
  }
29935
31560
  };
29936
31561
  if (ignoreLocalStorage) return;
@@ -29988,7 +31613,7 @@ const useIsEligibleForSingpass = ({
29988
31613
  const isVanillaIndividual = legalEntityType === LegalEntityType.INDIVIDUAL && !hasSoleProprietor;
29989
31614
  return isVanillaOrganization && isSingpassForCompaniesEnabled || isVanillaIndividual && isSingpassForIndividualsEnabled;
29990
31615
  };
29991
- const logger$i = createLogger("useAssociatedLegalArrangement");
31616
+ const logger$k = createLogger("useAssociatedLegalArrangement");
29992
31617
  function useAssociatedLegalArrangement({
29993
31618
  rootLegalEntity,
29994
31619
  getLegalEntity: getLegalEntity2
@@ -29999,7 +31624,7 @@ function useAssociatedLegalArrangement({
29999
31624
  var _a;
30000
31625
  const foundEntity = (_a = rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations) == null ? void 0 : _a.find((entity) => entity.type === LegalEntityType.SOLE_PROPRIETORSHIP || entity.type === LegalEntityType.TRUST);
30001
31626
  if (foundEntity == null ? void 0 : foundEntity.legalEntityId) {
30002
- getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$i.error);
31627
+ getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$k.error);
30003
31628
  }
30004
31629
  }, [getAssociatedEntity, rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations]);
30005
31630
  useEffect(() => {
@@ -30013,6 +31638,41 @@ function useAssociatedLegalArrangement({
30013
31638
  refreshAssociatedLegalArrangement
30014
31639
  };
30015
31640
  }
31641
+ const useAssociatedLegalRepresentative = ({
31642
+ legalEntity,
31643
+ handleGetLegalEntity
31644
+ }) => {
31645
+ const [associatedLegalRepresentative, setAssociatedLegalRepresentative] = useState(null);
31646
+ const {
31647
+ i18n
31648
+ } = useI18nContext();
31649
+ const {
31650
+ showToast
31651
+ } = useToastContext();
31652
+ useEffect(() => {
31653
+ if (doesLegalEntityRequiresLegalRepresentative(legalEntity)) {
31654
+ const legalRepresentativeAssociation = getLegalRepresentative(legalEntity);
31655
+ const legalEntityId = legalRepresentativeAssociation == null ? void 0 : legalRepresentativeAssociation.legalEntityId;
31656
+ if (legalEntityId && handleGetLegalEntity) {
31657
+ const fetchLegalEntity = async () => {
31658
+ try {
31659
+ const legalRepresenativeEntity = await handleGetLegalEntity(legalEntityId);
31660
+ setAssociatedLegalRepresentative(legalRepresenativeEntity);
31661
+ } catch (e) {
31662
+ showToast({
31663
+ label: i18n.get("failedFetchingLegalRepresentative"),
31664
+ type: "error"
31665
+ });
31666
+ }
31667
+ };
31668
+ fetchLegalEntity();
31669
+ } else {
31670
+ setAssociatedLegalRepresentative(null);
31671
+ }
31672
+ }
31673
+ }, [legalEntity]);
31674
+ return associatedLegalRepresentative;
31675
+ };
30016
31676
  const getCanSeeEntitySelectionStorageKey = (legalEntityId) => `ENTITY_SELECTION_SEEN-${legalEntityId}`;
30017
31677
  const useCanSeeEntitySelection = (legalEntityId) => {
30018
31678
  const [canSeeEntitySelectionFromLocalStorage, setCanSeeEntitySelectionIntoLocalStorage] = useLocalStorage(getCanSeeEntitySelectionStorageKey(legalEntityId), true);
@@ -30021,7 +31681,7 @@ const useCanSeeEntitySelection = (legalEntityId) => {
30021
31681
  setCanSeeEntitySelection: setCanSeeEntitySelectionIntoLocalStorage
30022
31682
  };
30023
31683
  };
30024
- const logger$h = createLogger("useExemptSettlor");
31684
+ const logger$j = createLogger("useExemptSettlor");
30025
31685
  const useExemptSettlor = ({
30026
31686
  trust: trust2,
30027
31687
  handleGetLegalEntity
@@ -30034,7 +31694,7 @@ const useExemptSettlor = ({
30034
31694
  }, [handleGetLegalEntity]);
30035
31695
  useEffect(() => {
30036
31696
  if (!(trust2 == null ? void 0 : trust2.trust)) return;
30037
- updateExemptSettlor(trust2).catch(logger$h.error);
31697
+ updateExemptSettlor(trust2).catch(logger$j.error);
30038
31698
  }, [trust2, updateExemptSettlor]);
30039
31699
  return exemptSettlor;
30040
31700
  };
@@ -30728,24 +32388,14 @@ const BusinessTypeSelection = ({
30728
32388
  disabled: currentStep === 1 && !data.legalArrangement,
30729
32389
  onClick: handleNextClick,
30730
32390
  type: "button"
30731
- }), hasBackButton && jsxs("button", {
32391
+ }), hasBackButton && isWeCannotSetUpAccountStep && jsx(Button, {
30732
32392
  onClick: handleBackClick,
30733
- type: "button",
30734
- "aria-label": i18n.get("back"),
30735
- className: cx("adyen-kyc-u-margin-top-16", "adyen-kyc-u-display-flex", "adyen-kyc-u-align-items-center", {
30736
- "adyen-kyc-button": isWeCannotSetUpAccountStep,
30737
- "adyen-kyc-button--block": isWeCannotSetUpAccountStep,
30738
- "adyen-kyc-link": !isWeCannotSetUpAccountStep,
30739
- "adyen-kyc-link--with-icon": !isWeCannotSetUpAccountStep
30740
- }),
30741
- children: [!isWeCannotSetUpAccountStep && jsx("span", {
30742
- className: cx("adyen-kyc-icon-chevron-left", "adyen-kyc-u-margin-right-4", "adyen-kyc-u-color-grey-40")
30743
- }), jsx("span", {
30744
- className: cx("adyen-kyc-link__text", {
30745
- "adyen-kyc-u-color-grey-40": !isWeCannotSetUpAccountStep
30746
- }),
30747
- children: i18n.get("back")
30748
- })]
32393
+ label: i18n.get("back")
32394
+ }), hasBackButton && !isWeCannotSetUpAccountStep && jsx(Button, {
32395
+ onClick: handleBackClick,
32396
+ label: i18n.get("back"),
32397
+ tertiary: true,
32398
+ icon: "chevron-left"
30749
32399
  })]
30750
32400
  })]
30751
32401
  })
@@ -31542,9 +33192,11 @@ const useIntroductionScreens = ({
31542
33192
  }) : [], [legalEntityType, tasks]);
31543
33193
  return canSeeIntroduction && (introductionScreens == null ? void 0 : introductionScreens.length) > 0 ? [IntroductionScreens.PROLOGUE, ...introductionScreens, IntroductionScreens.EPILOGUE] : void 0;
31544
33194
  };
33195
+ const shouldHighlight = (active, current, fillBefore) => !fillBefore ? active === current : active >= current;
31545
33196
  const StepProgressIndicator = ({
31546
33197
  activeStepIndex,
31547
- stepsCount
33198
+ stepsCount,
33199
+ fillBefore
31548
33200
  }) => stepsCount > 0 ? jsx("div", {
31549
33201
  "aria-label": `Step ${activeStepIndex + 1} of ${stepsCount}`,
31550
33202
  className: "adyen-kyc-progress",
@@ -31552,11 +33204,11 @@ const StepProgressIndicator = ({
31552
33204
  children: jsx("ol", {
31553
33205
  className: "adyen-kyc-progress__bar",
31554
33206
  children: range(stepsCount).map((stepNumber) => {
31555
- const isActive = stepNumber === activeStepIndex;
33207
+ const isHighlighted = shouldHighlight(activeStepIndex, stepNumber, fillBefore);
31556
33208
  return jsx("li", {
31557
- "aria-current": isActive ? "step" : void 0,
33209
+ "aria-current": isHighlighted ? "step" : void 0,
31558
33210
  className: cx("adyen-kyc-progress__step", {
31559
- "adyen-kyc-progress__step--active": isActive
33211
+ "adyen-kyc-progress__step--active": isHighlighted
31560
33212
  }),
31561
33213
  children: jsx("span", {
31562
33214
  className: "adyen-kyc-progress__step-label",
@@ -32318,6 +33970,8 @@ function TaskListComponent({
32318
33970
  const hasSoleProprietorship = accountHolder2 === "mySoleProprietorName" || hasSolePropInLegalEntity(legalEntityResponse);
32319
33971
  const hidePayoutAccountTaskExperiment = isExperimentEnabled(ExperimentNames.HidePayoutAccountTask);
32320
33972
  const hidePciTaskExperiment = isExperimentEnabled(ExperimentNames.HidePciTask);
33973
+ const isLegalRepresentativeRequired = isExperimentEnabled("EnableAgeVerification") && doesLegalEntityRequiresLegalRepresentative(legalEntityResponse);
33974
+ const legalRepresentative2 = isLegalRepresentativeRequired && getLegalRepresentative(legalEntityResponse);
32321
33975
  const transferInstruments = (legalEntityResponse == null ? void 0 : legalEntityResponse.transferInstruments) || [];
32322
33976
  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);
32323
33977
  const hasPayinTaskNotPayout = tasks.includes(TaskTypes.PAYIN) && !tasks.includes(TaskTypes.PAYOUT);
@@ -32328,7 +33982,7 @@ function TaskListComponent({
32328
33982
  const isPciTaskDisabled = !canSignPci || !isSigningRequired && !(pciStatus == null ? void 0 : pciStatus.hasDocuments) || canDownloadPci;
32329
33983
  const showPciTask = (canDownloadPci || isSigningRequired) && !hidePciTaskExperiment;
32330
33984
  const showServiceAgreementTask = tasks.includes(TaskTypes.SERVICE_AGREEMENT) && ((serviceAgreementTypes == null ? void 0 : serviceAgreementTypes.length) > 0 || (serviceAgreementAcceptanceInfos == null ? void 0 : serviceAgreementAcceptanceInfos.length) > 0);
32331
- const hasServiceAgreementSigners = legalEntityResponse.type === LegalEntityType.ORGANIZATION && getOwnSignatories(legalEntityResponse).length || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!(legalEntityResponse == null ? void 0 : legalEntityResponse.individual);
33985
+ const hasServiceAgreementSigners = legalEntityResponse.type === LegalEntityType.ORGANIZATION && getOwnSignatories(legalEntityResponse).length || Boolean(legalRepresentative2) || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!(legalEntityResponse == null ? void 0 : legalEntityResponse.individual);
32332
33986
  const areServiceAgreementTasksDisabled = !hasServiceAgreementSigners;
32333
33987
  const showContractTasks = hasContractTasks && (showPciTask || showServiceAgreementTask);
32334
33988
  const showDecisionMakersWarning = Boolean(getOwnDecisionMakersLegalEntityIds(legalEntityResponse).length && remediationMessages.DECISION_MAKER);
@@ -32344,6 +33998,7 @@ function TaskListComponent({
32344
33998
  const handleOnNavigateToPci = () => !canDownloadPci && onNavigateToTask(TaskTypes.PCI_DSS);
32345
33999
  const handleOnNavigateToSoleProp = () => onNavigateToTask(TaskTypes.SOLE_PROPRIETOR_COMPANY);
32346
34000
  const handleOnNavigateToServiceAgreement = () => onNavigateToTask(TaskTypes.SERVICE_AGREEMENT);
34001
+ const handleOnNavigateToTaskLegalRepresentative = () => onNavigateToTask(TaskTypes.LEGAL_REPRESENTATIVE_DETAILS);
32347
34002
  const companyTaskDescriptionKey = isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
32348
34003
  const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
32349
34004
  const onEditBusinessSetupClick = () => {
@@ -32405,6 +34060,11 @@ function TaskListComponent({
32405
34060
  title: hasTrust ? i18n.get("trusteePersonalDetails") : i18n.get("personalDetails"),
32406
34061
  status: getTaskStatus(EntityType.LEGAL_ENTITY, capabilityProblems, legalEntityResponse, [legalEntityResponse.id]),
32407
34062
  problems: (_e = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _e[legalEntityResponse.id]
34063
+ }), isLegalRepresentativeRequired && jsx(TaskListItem, {
34064
+ onNavigateToTask: handleOnNavigateToTaskLegalRepresentative,
34065
+ icon: "decision-maker",
34066
+ title: i18n.get("legalRepresentative"),
34067
+ status: legalRepresentative2 ? getTaskStatus(EntityType.LEGAL_ENTITY, capabilityProblems, legalEntityResponse, [legalRepresentative2.legalEntityId]) : TaskStatus.DETAILS_REQUIRED
32408
34068
  }), hasSoleProprietorship && jsx(TaskListItem, {
32409
34069
  onNavigateToTask: handleOnNavigateToSoleProp,
32410
34070
  icon: "company",
@@ -32891,11 +34551,15 @@ const getCountrySpecificMinimumAgeValidationRule = (country2) => {
32891
34551
  };
32892
34552
  const validators = ({
32893
34553
  country: country2,
32894
- isExperimentEnabled = () => false
34554
+ isExperimentEnabled = () => false,
34555
+ taskType
32895
34556
  }) => ({
32896
34557
  birthDate: () => {
32897
34558
  const baseValidators = [isNotEmptyBirthDateValidatorRule, isNotOutOfRangeBirthDateValidatorRule];
32898
34559
  if (isExperimentEnabled("EnableAgeVerification")) {
34560
+ if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS) {
34561
+ return [...baseValidators, buildMinimumAgeValidationRule(18)];
34562
+ }
32899
34563
  return [...baseValidators, getCountrySpecificMinimumAgeValidationRule(country2)];
32900
34564
  }
32901
34565
  return baseValidators;
@@ -32909,6 +34573,11 @@ const validators = ({
32909
34573
  modes: ["blur"],
32910
34574
  validate: (jobTitle2) => !!jobTitle2,
32911
34575
  errorMessage: "fieldIsRequired"
34576
+ }),
34577
+ relationship: () => ({
34578
+ modes: ["blur"],
34579
+ validate: (relationship) => !!relationship,
34580
+ errorMessage: "fieldIsRequired"
32912
34581
  })
32913
34582
  });
32914
34583
  const parseConfiguration$4 = ({
@@ -33010,7 +34679,8 @@ function IndividualDropinComponent({
33010
34679
  }), [country2, data, taskType]);
33011
34680
  const customValidators = useMemo(() => isExperimentEnabled("EnableAgeVerification") ? validators({
33012
34681
  country: country2,
33013
- isExperimentEnabled
34682
+ isExperimentEnabled,
34683
+ taskType
33014
34684
  }) : {}, [country2]);
33015
34685
  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]);
33016
34686
  const {
@@ -33032,10 +34702,14 @@ function IndividualDropinComponent({
33032
34702
  );
33033
34703
  return addValidityToForms(requiredForms, formValidity, problems);
33034
34704
  }, [derivedProps, formValidity, problems, handleGetIdVerificationToken]);
33035
- if ((taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER) && parentLegalEntity) {
33036
- if (parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) {
33037
- const associations = (_b = parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) == null ? void 0 : _b.filter((ea) => ea.legalEntityId === (legalEntityResponse == null ? void 0 : legalEntityResponse.id));
33038
- if (associations && associations.length > 0) {
34705
+ const isRoleTypeTask = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER;
34706
+ if (isRoleTypeTask && parentLegalEntity) {
34707
+ roleTypes = getAllowedDecisionMakerRoles(parentLegalEntity, taskType);
34708
+ }
34709
+ if (parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) {
34710
+ const associations = (_b = parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) == null ? void 0 : _b.filter((ea) => ea.legalEntityId === (legalEntityResponse == null ? void 0 : legalEntityResponse.id));
34711
+ if (associations && associations.length > 0) {
34712
+ if (isRoleTypeTask && parentLegalEntity) {
33039
34713
  const jobTitle2 = (_c = associations.find((association2) => Boolean(association2.jobTitle))) == null ? void 0 : _c.jobTitle;
33040
34714
  dataFromResponse = {
33041
34715
  ...dataFromResponse,
@@ -33048,8 +34722,19 @@ function IndividualDropinComponent({
33048
34722
  }
33049
34723
  };
33050
34724
  }
34725
+ if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS) {
34726
+ const [{
34727
+ relationship
34728
+ }] = associations;
34729
+ dataFromResponse = {
34730
+ ...dataFromResponse,
34731
+ personalDetails: {
34732
+ ...dataFromResponse == null ? void 0 : dataFromResponse.personalDetails,
34733
+ relationship
34734
+ }
34735
+ };
34736
+ }
33051
34737
  }
33052
- roleTypes = getAllowedDecisionMakerRoles(parentLegalEntity, taskType);
33053
34738
  }
33054
34739
  useEffect(() => {
33055
34740
  var _a2;
@@ -33149,7 +34834,7 @@ function IndividualDropinComponent({
33149
34834
  parentLE,
33150
34835
  dataSubmitted
33151
34836
  }) => {
33152
- var _a2, _b2, _c2;
34837
+ var _a2, _b2, _c2, _d2, _e, _f;
33153
34838
  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;
33154
34839
  const existingEntityAssociations = getOwnEntityAssociations(parentLE);
33155
34840
  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))) {
@@ -33167,6 +34852,17 @@ function IndividualDropinComponent({
33167
34852
  };
33168
34853
  await handleUpdateLegalEntity(updatedParentLegalEntity, parentLE.id);
33169
34854
  }
34855
+ 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))) {
34856
+ const newEntityAssociation = {
34857
+ type: "legalRepresentative",
34858
+ legalEntityId: legalEntity.id,
34859
+ relationship: (_f = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _f.relationship
34860
+ };
34861
+ const updatedParentLegalEntity = {
34862
+ entityAssociations: [newEntityAssociation, ...existingEntityAssociations]
34863
+ };
34864
+ await handleUpdateLegalEntity(updatedParentLegalEntity, parentLE.id);
34865
+ }
33170
34866
  };
33171
34867
  const onSubmit = async () => {
33172
34868
  var _a2, _b2, _c2;
@@ -33394,11 +35090,12 @@ function IndividualDropinComponent({
33394
35090
  onTypeSwitch,
33395
35091
  onCountryChange: setCountry,
33396
35092
  shouldValidate,
33397
- accountHolder: accountHolder2
35093
+ accountHolder: accountHolder2,
35094
+ parentLegalEntity
33398
35095
  })
33399
35096
  });
33400
35097
  }
33401
- const logger$g = createLogger("useBankConfigurationHandler");
35098
+ const logger$i = createLogger("useBankConfigurationHandler");
33402
35099
  const useBankConfigurationHandlers = ({
33403
35100
  isEmbeddedDropin,
33404
35101
  handleGetBankVerificationVendors,
@@ -33415,7 +35112,7 @@ const useBankConfigurationHandlers = ({
33415
35112
  (async () => {
33416
35113
  const bankVerificationVendorsResponse2 = callBankVerificationVendorsUpfront ? await handleGetBankVerificationVendors(bankAccountCountry) : [];
33417
35114
  setBankVerificationVendorsResponse(bankVerificationVendorsResponse2);
33418
- })().catch(logger$g.error).finally(() => {
35115
+ })().catch(logger$i.error).finally(() => {
33419
35116
  setLoadingStatus("success");
33420
35117
  });
33421
35118
  }, [bankAccountCountry]);
@@ -34809,7 +36506,7 @@ const serviceAgreementValidationRules = {
34809
36506
  errorMessage: "fieldIsRequired"
34810
36507
  }
34811
36508
  };
34812
- const logger$f = createLogger("useServiceAgreement");
36509
+ const logger$h = createLogger("useServiceAgreement");
34813
36510
  const FALLBACK_LANGUAGE_CODE = "en";
34814
36511
  const useServiceAgreement = ({
34815
36512
  handleGetServiceAgreement,
@@ -34842,7 +36539,7 @@ const useServiceAgreement = ({
34842
36539
  contract
34843
36540
  });
34844
36541
  };
34845
- requestAcceptedServiceAgreement().catch(logger$f.error).finally(() => setLoading("success"));
36542
+ requestAcceptedServiceAgreement().catch(logger$h.error).finally(() => setLoading("success"));
34846
36543
  }, [acceptanceId, handleViewAcceptedTermsOfServiceDocument]);
34847
36544
  useEffect(() => {
34848
36545
  const requestServiceAgreement = async () => {
@@ -34857,7 +36554,7 @@ const useServiceAgreement = ({
34857
36554
  language: agreementLanguage
34858
36555
  });
34859
36556
  if (!document2) {
34860
- logger$f.log('"document" field was missing in response');
36557
+ logger$h.log('"document" field was missing in response');
34861
36558
  return;
34862
36559
  }
34863
36560
  const contract = JSON.parse(decodeURIComponent(escape(window.atob(document2))));
@@ -34875,7 +36572,7 @@ const useServiceAgreement = ({
34875
36572
  throw err;
34876
36573
  }
34877
36574
  };
34878
- requestServiceAgreement().catch(logger$f.error);
36575
+ requestServiceAgreement().catch(logger$h.error);
34879
36576
  }, [handleGetServiceAgreement, handleServiceAgreementIsNotAvailableInThatLanguage, agreementLanguage, legalEntityId, serviceAgreementType]);
34880
36577
  return {
34881
36578
  loading: loading2,
@@ -34905,13 +36602,17 @@ function ServiceAgreementDropinComponent({
34905
36602
  serviceAgreementAcceptanceInfos,
34906
36603
  trackingConfig
34907
36604
  }) {
34908
- var _a, _b, _c, _d;
36605
+ var _a, _b;
34909
36606
  const {
34910
36607
  i18n
34911
36608
  } = useI18nContext();
34912
36609
  const {
34913
36610
  showToast
34914
36611
  } = useToastContext();
36612
+ const {
36613
+ isExperimentEnabled
36614
+ } = useExperimentsContext();
36615
+ const isAgeVerificationEnabled = isExperimentEnabled("EnableAgeVerification");
34915
36616
  const baseTrackingPayload = getBaseTrackingPayload({
34916
36617
  trackingConfig,
34917
36618
  legalEntity: legalEntityResponse,
@@ -34966,16 +36667,30 @@ function ServiceAgreementDropinComponent({
34966
36667
  schema: ["signer", "acceptServiceAgreement"],
34967
36668
  rules: serviceAgreementValidationRules
34968
36669
  });
34969
- const signers = legalEntityResponse.type === LegalEntityType.ORGANIZATION ? getOwnSignatories(legalEntityResponse).map(({
34970
- legalEntityId: id2,
34971
- name
34972
- }) => ({
34973
- id: id2 ?? "",
34974
- name: name ?? ""
34975
- })) : [{
34976
- id: legalEntityResponse == null ? void 0 : legalEntityResponse.id,
34977
- name: `${(_a = legalEntityResponse == null ? void 0 : legalEntityResponse.individual) == null ? void 0 : _a.name.firstName} ${(_b = legalEntityResponse == null ? void 0 : legalEntityResponse.individual) == null ? void 0 : _b.name.lastName}`
34978
- }];
36670
+ const getSigners = () => {
36671
+ var _a2, _b2;
36672
+ if (legalEntityResponse.type === LegalEntityType.ORGANIZATION) {
36673
+ return getOwnSignatories(legalEntityResponse).map(({
36674
+ legalEntityId: id2,
36675
+ name
36676
+ }) => ({
36677
+ id: id2 ?? "",
36678
+ name: name ?? ""
36679
+ }));
36680
+ }
36681
+ if (isAgeVerificationEnabled && doesLegalEntityRequiresLegalRepresentative(legalEntityResponse)) {
36682
+ const legalRepresentative2 = getLegalRepresentative(legalEntityResponse);
36683
+ return legalRepresentative2 ? [{
36684
+ id: legalRepresentative2.legalEntityId,
36685
+ name: legalRepresentative2.name
36686
+ }] : [];
36687
+ }
36688
+ return [{
36689
+ id: legalEntityResponse == null ? void 0 : legalEntityResponse.id,
36690
+ 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}`
36691
+ }];
36692
+ };
36693
+ const signers = getSigners();
34979
36694
  const handleSignClick = async () => {
34980
36695
  userEvents.addEvent("Clicked ToS signing", {
34981
36696
  segmentation: {
@@ -35126,7 +36841,7 @@ function ServiceAgreementDropinComponent({
35126
36841
  label: i18n.get("signer"),
35127
36842
  classNameModifiers: ["col-50"],
35128
36843
  className: "adyen-kyc-u-margin-y-32",
35129
- errorMessage: i18n.get((_c = errors.signer) == null ? void 0 : _c.errorMessage),
36844
+ errorMessage: i18n.get((_a = errors.signer) == null ? void 0 : _a.errorMessage),
35130
36845
  isValid: valid.signer,
35131
36846
  children: (childProps) => jsx(Select, {
35132
36847
  ...childProps,
@@ -35138,7 +36853,7 @@ function ServiceAgreementDropinComponent({
35138
36853
  })
35139
36854
  }), jsx(Field, {
35140
36855
  name: "acceptServiceAgreement",
35141
- errorMessage: i18n.get((_d = errors.acceptServiceAgreement) == null ? void 0 : _d.errorMessage),
36856
+ errorMessage: i18n.get((_b = errors.acceptServiceAgreement) == null ? void 0 : _b.errorMessage),
35142
36857
  isValid: valid.acceptServiceAgreement,
35143
36858
  children: (childProps) => jsx(Checkbox, {
35144
36859
  ...childProps,
@@ -35913,7 +37628,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
35913
37628
  };
35914
37629
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
35915
37630
  const POLLING_INTERVAL = 3e3;
35916
- const logger$e = createLogger("DropinComposerComponent");
37631
+ const logger$g = createLogger("DropinComposerComponent");
35917
37632
  const isOrganizationSettlorWithExemptionReasonEnabled = (enabled, country2) => country2 === CountryCodes.Australia && enabled;
35918
37633
  function DropinComposerComponent({
35919
37634
  capabilities,
@@ -35977,6 +37692,11 @@ function DropinComposerComponent({
35977
37692
  getLegalEntity: args == null ? void 0 : args.handleGetLegalEntity
35978
37693
  });
35979
37694
  const [associatedLegalEntityParent, setAssociatedLegalEntityParent] = useState(null);
37695
+ const associatedLegalRepresentative = useAssociatedLegalRepresentative({
37696
+ legalEntity: rootLegalEntity,
37697
+ handleGetLegalEntity: args == null ? void 0 : args.handleGetLegalEntity
37698
+ });
37699
+ useState(null);
35980
37700
  const [legalEntityType, setLegalEntityType] = useState(null);
35981
37701
  const exemptSettlor = useExemptSettlor({
35982
37702
  trust: associatedLegalArrangement,
@@ -36024,7 +37744,7 @@ function DropinComposerComponent({
36024
37744
  setPciStatus(response);
36025
37745
  return response;
36026
37746
  } catch (e) {
36027
- logger$e.warn(i18n.get("failedToGetPciStatus"));
37747
+ logger$g.warn(i18n.get("failedToGetPciStatus"));
36028
37748
  }
36029
37749
  }
36030
37750
  return void 0;
@@ -36052,7 +37772,7 @@ function DropinComposerComponent({
36052
37772
  }, [additionalSalesChannels, i18n, rootLegalEntity.id, args.handleGetPciTemplate]);
36053
37773
  useEffect(() => {
36054
37774
  if (!tasks.includes(TaskTypes.PCI_DSS)) return;
36055
- getPciTemplate2().catch(logger$e.error);
37775
+ getPciTemplate2().catch(logger$g.error);
36056
37776
  }, [getPciTemplate2, tasks]);
36057
37777
  const addFetchedAcceptedByName = async (acceptanceInfo) => {
36058
37778
  try {
@@ -36062,7 +37782,7 @@ function DropinComposerComponent({
36062
37782
  acceptedByName: getLegalEntityNameBasedOnType(acceptedByEntity)
36063
37783
  };
36064
37784
  } catch (e) {
36065
- logger$e.warn(i18n.get("failedToFetchAcceptedByName"));
37785
+ logger$g.warn(i18n.get("failedToFetchAcceptedByName"));
36066
37786
  return {
36067
37787
  ...acceptanceInfo,
36068
37788
  acceptedByName: null
@@ -36076,7 +37796,7 @@ function DropinComposerComponent({
36076
37796
  const serviceAgreementAcceptanceInfosWithNames2 = await Promise.all(response.data.map(addFetchedAcceptedByName));
36077
37797
  setServiceAgreementAcceptanceInfosWithNames(serviceAgreementAcceptanceInfosWithNames2);
36078
37798
  } catch (e) {
36079
- logger$e.warn(i18n.get("failedToGetServiceAgreementStatus"));
37799
+ logger$g.warn(i18n.get("failedToGetServiceAgreementStatus"));
36080
37800
  }
36081
37801
  }
36082
37802
  };
@@ -36086,7 +37806,7 @@ function DropinComposerComponent({
36086
37806
  const response = await args.handleGetServiceAgreementStatus(rootLegalEntity.id);
36087
37807
  setServiceAgreementTypes(response.termsOfServiceTypes);
36088
37808
  } catch (e) {
36089
- logger$e.warn(i18n.get("failedToGetServiceAgreementStatus"));
37809
+ logger$g.warn(i18n.get("failedToGetServiceAgreementStatus"));
36090
37810
  }
36091
37811
  }
36092
37812
  };
@@ -36125,7 +37845,7 @@ function DropinComposerComponent({
36125
37845
  setCapabilityProblems(getCapabilityProblems(response, rootLegalEntityCountry, isExperimentEnabled));
36126
37846
  return response;
36127
37847
  } catch (e) {
36128
- logger$e.warn(i18n.get("failedToFetchLegalEntityDetails"));
37848
+ logger$g.warn(i18n.get("failedToFetchLegalEntityDetails"));
36129
37849
  }
36130
37850
  }
36131
37851
  return void 0;
@@ -36175,7 +37895,7 @@ function DropinComposerComponent({
36175
37895
  label: i18n.get("successFullyRemovedTrustMember")
36176
37896
  });
36177
37897
  } catch (err) {
36178
- logger$e.error(`Failed to delete trust member`, err);
37898
+ logger$g.error(`Failed to delete trust member`, err);
36179
37899
  showToast({
36180
37900
  type: "error",
36181
37901
  label: i18n.get("failedToRemoveTrustMember")
@@ -36245,7 +37965,7 @@ function DropinComposerComponent({
36245
37965
  }
36246
37966
  break;
36247
37967
  default:
36248
- logger$e.warn(`Updating trust member type "${trustMember.trustMemberType}" is not implemented.`);
37968
+ logger$g.warn(`Updating trust member type "${trustMember.trustMemberType}" is not implemented.`);
36249
37969
  }
36250
37970
  showToast({
36251
37971
  label: i18n.get("successfullyUpdatedDetails"),
@@ -36253,7 +37973,7 @@ function DropinComposerComponent({
36253
37973
  });
36254
37974
  await refreshLegalArrangementAndRunOnSubmit(associatedLegalArrangement, 1);
36255
37975
  } catch (err) {
36256
- logger$e.error(err);
37976
+ logger$g.error(err);
36257
37977
  showToast({
36258
37978
  label: i18n.get("failedToUpdateDetails"),
36259
37979
  type: "error"
@@ -36274,7 +37994,7 @@ function DropinComposerComponent({
36274
37994
  navigateTo(TaskTypes.TASKS_OVERVIEW);
36275
37995
  }
36276
37996
  } catch (e) {
36277
- logger$e.error(e);
37997
+ logger$g.error(e);
36278
37998
  showToast({
36279
37999
  label: i18n.get("failToLaunchSingpass"),
36280
38000
  type: "error"
@@ -36481,7 +38201,7 @@ function DropinComposerComponent({
36481
38201
  }
36482
38202
  };
36483
38203
  setIsLoadingConfiguration(true);
36484
- fetchConfiguration().catch(logger$e.error).finally(() => {
38204
+ fetchConfiguration().catch(logger$g.error).finally(() => {
36485
38205
  setIsLoadingConfiguration(false);
36486
38206
  onLoad();
36487
38207
  });
@@ -36499,7 +38219,7 @@ function DropinComposerComponent({
36499
38219
  return;
36500
38220
  }
36501
38221
  const timeoutId = setTimeout(() => {
36502
- refreshLegalEntity().catch(logger$e.error);
38222
+ refreshLegalEntity().catch(logger$g.error);
36503
38223
  }, POLLING_INTERVAL);
36504
38224
  return () => {
36505
38225
  clearInterval(timeoutId);
@@ -36952,6 +38672,32 @@ function DropinComposerComponent({
36952
38672
  navigateToTargetEntityType();
36953
38673
  }
36954
38674
  });
38675
+ case TaskTypes.LEGAL_REPRESENTATIVE_DETAILS:
38676
+ return jsx(IndividualDropinComponent, {
38677
+ trackingConfig: {
38678
+ topLevelLegalEntity: legalEntityResponse
38679
+ },
38680
+ taskName: "legalRepresentative",
38681
+ taskType: TaskTypes.LEGAL_REPRESENTATIVE_DETAILS,
38682
+ parentLegalEntity: rootLegalEntity,
38683
+ legalEntityResponse: associatedLegalRepresentative,
38684
+ country: rootLegalEntityCountry,
38685
+ problems: getLegalEntityProblems(associatedLegalRepresentative),
38686
+ capabilities: getCapabilities(legalEntityResponse),
38687
+ onChange: componentOnChange,
38688
+ onSubmit: componentOnSubmit,
38689
+ handleHomeClick: navigateBack,
38690
+ homeButtonLabel: i18n.get("saveAndGoToOverview"),
38691
+ handleCreateLegalEntity: args == null ? void 0 : args.handleCreateLegalEntity,
38692
+ handleUpdateLegalEntity: args == null ? void 0 : args.handleUpdateLegalEntity,
38693
+ handleGetDocument: args == null ? void 0 : args.handleGetDocument,
38694
+ handleUpdateDocument: args == null ? void 0 : args.handleUpdateDocument,
38695
+ handleCreateDocument: args == null ? void 0 : args.handleCreateDocument,
38696
+ handleAddressSearch: args == null ? void 0 : args.handleAddressSearch,
38697
+ handleFindAddress: args == null ? void 0 : args.handleFindAddress,
38698
+ handleGetIdVerificationToken: args == null ? void 0 : args.handleGetIdVerificationToken,
38699
+ handleGetIdVerificationStartCheck: args == null ? void 0 : args.handleGetIdVerificationStartCheck
38700
+ });
36955
38701
  default:
36956
38702
  return null;
36957
38703
  }
@@ -37026,32 +38772,6 @@ const getBankVerificationVendor = async (context, country2, openBankingPartnerCo
37026
38772
  }
37027
38773
  });
37028
38774
  };
37029
- const getDataset$1 = async (context, name, locale) => {
37030
- const {
37031
- loadingContext
37032
- } = context;
37033
- const datasetUtils = datasetUtilities(locale);
37034
- const dataset = datasetUtils.getDataset(name);
37035
- if (dataset) {
37036
- return new Promise((resolve) => {
37037
- resolve(dataset);
37038
- });
37039
- }
37040
- const path = locale ? `datasets/${name}/${locale}` : `datasets/${name}`;
37041
- return httpGet({
37042
- loadingContext,
37043
- errorLevel: "warn",
37044
- errorMessage: `Dataset ${name} is not available`,
37045
- path,
37046
- authentication: "jwt",
37047
- headers: {
37048
- "Content-Type": "application/json"
37049
- }
37050
- }).then((datasetResponse) => {
37051
- datasetUtils.setDataset(name, datasetResponse);
37052
- return datasetResponse;
37053
- });
37054
- };
37055
38775
  const getDocument = async (context, documentId) => {
37056
38776
  const {
37057
38777
  loadingContext,
@@ -37429,6 +39149,22 @@ const getPciTemplate = async (context, data) => {
37429
39149
  }
37430
39150
  }, data);
37431
39151
  };
39152
+ const getProviderStatus = async (context, request) => {
39153
+ const {
39154
+ loadingContext,
39155
+ legalEntityId
39156
+ } = context;
39157
+ return httpPost({
39158
+ loadingContext,
39159
+ errorLevel: "warn",
39160
+ errorMessage: `Fetching provider status was not successful`,
39161
+ path: `${legalEntityId}/configurations/providers/status`,
39162
+ authentication: "jwt",
39163
+ headers: {
39164
+ "Content-Type": "application/json"
39165
+ }
39166
+ }, request);
39167
+ };
37432
39168
  const getServiceAgreement = async (context, data) => {
37433
39169
  const {
37434
39170
  loadingContext,
@@ -37635,11 +39371,12 @@ const useComponentApi = (rootLegalEntityId) => {
37635
39371
  confirmDataReview: async (legalEntityId) => confirmDataReview({
37636
39372
  ...baseRequestContext,
37637
39373
  legalEntityId
37638
- })
39374
+ }),
39375
+ getProviderStatus: async (request) => getProviderStatus(baseRequestContext, request)
37639
39376
  };
37640
39377
  }, [base, rootLegalEntityId]);
37641
39378
  };
37642
- const logger$d = createLogger("CreateIndividualComponent");
39379
+ const logger$f = createLogger("CreateIndividualComponent");
37643
39380
  function CreateIndividualComponent({
37644
39381
  parentLegalEntityId,
37645
39382
  legalEntityId,
@@ -37675,13 +39412,13 @@ function CreateIndividualComponent({
37675
39412
  setParentLegalEntity(parentEntity);
37676
39413
  setLegalEntity(entity);
37677
39414
  } catch (error) {
37678
- logger$d.error(error);
39415
+ logger$f.error(error);
37679
39416
  } finally {
37680
39417
  setLoadingStatus("success");
37681
39418
  }
37682
39419
  }, [parentLegalEntityId, legalEntityId, getLegalEntity2]);
37683
39420
  useEffect(() => {
37684
- fetchLegalEntity().catch(logger$d.error);
39421
+ fetchLegalEntity().catch(logger$f.error);
37685
39422
  }, [fetchLegalEntity]);
37686
39423
  const country2 = ((_a = legalEntity == null ? void 0 : legalEntity.individual) == null ? void 0 : _a.residentialAddress.country) ?? contextCountry;
37687
39424
  return loadingStatus === "loading" ? jsx(Loader, {
@@ -37705,7 +39442,7 @@ function CreateIndividualComponent({
37705
39442
  taskType
37706
39443
  });
37707
39444
  }
37708
- const logger$c = createLogger("CreateTransferInstrumentComponent");
39445
+ const logger$e = createLogger("CreateTransferInstrumentComponent");
37709
39446
  function CreateTransferInstrumentComponent({
37710
39447
  legalEntityId,
37711
39448
  transferInstrumentId,
@@ -37747,7 +39484,7 @@ function CreateTransferInstrumentComponent({
37747
39484
  const ti = await getTransferInstrument2(transferInstrumentId);
37748
39485
  setTransferInstrument(ti);
37749
39486
  }
37750
- })().catch(logger$c.error).finally(() => {
39487
+ })().catch(logger$e.error).finally(() => {
37751
39488
  setLoadingStatus("success");
37752
39489
  });
37753
39490
  }, [transferInstrumentId, fetchLegalEntity, getTransferInstrument2]);
@@ -37948,7 +39685,7 @@ function ManageTransferInstrumentOverviewItem({
37948
39685
  })
37949
39686
  }, transferInstrumentReference.transferInstrument.id);
37950
39687
  }
37951
- const logger$b = createLogger("ManageTransferInstrumentOverview");
39688
+ const logger$d = createLogger("ManageTransferInstrumentOverview");
37952
39689
  function ManageTransferInstrumentOverview({
37953
39690
  transferInstrumentReferences,
37954
39691
  onAdd,
@@ -37973,7 +39710,7 @@ function ManageTransferInstrumentOverview({
37973
39710
  ...transferInstrumentsMap
37974
39711
  });
37975
39712
  } catch (e) {
37976
- logger$b.error(e);
39713
+ logger$d.error(e);
37977
39714
  }
37978
39715
  };
37979
39716
  const onRemoveTransferinstrument = async (transferInstrumentId) => {
@@ -37981,7 +39718,7 @@ function ManageTransferInstrumentOverview({
37981
39718
  await deleteTransferInstrument2(transferInstrumentId);
37982
39719
  onRemove(transferInstrumentId);
37983
39720
  } catch (e) {
37984
- logger$b.error(e);
39721
+ logger$d.error(e);
37985
39722
  }
37986
39723
  };
37987
39724
  const transferInstrumentListEle = transferInstrumentReferences.map((transferInstrumentRef) => jsx(ManageTransferInstrumentOverviewItem, {
@@ -38006,7 +39743,7 @@ function ManageTransferInstrumentOverview({
38006
39743
  })]
38007
39744
  });
38008
39745
  }
38009
- const logger$a = createLogger("ManageTransferInstrumentComponent");
39746
+ const logger$c = createLogger("ManageTransferInstrumentComponent");
38010
39747
  function ManageTransferInstrumentComponent({
38011
39748
  legalEntityId,
38012
39749
  onAdd,
@@ -38042,7 +39779,7 @@ function ManageTransferInstrumentComponent({
38042
39779
  }, [getTransferInstruments2, getLegalEntity2, i18n, legalEntityId]);
38043
39780
  useEffect(() => {
38044
39781
  eventEmitter == null ? void 0 : eventEmitter.on("updateLocale", (locale) => setLocale(locale));
38045
- init2().catch(logger$a.error).finally(() => {
39782
+ init2().catch(logger$c.error).finally(() => {
38046
39783
  setLoadingStatus("success");
38047
39784
  });
38048
39785
  }, [init2, setLocale, eventEmitter]);
@@ -38052,7 +39789,7 @@ function ManageTransferInstrumentComponent({
38052
39789
  }
38053
39790
  }, [hasOnlyVerifiedTransferInstruments, timeoutId, transferInstruments]);
38054
39791
  const onRemove = (transferInstrumentId) => {
38055
- refreshTransferInstruments().catch(logger$a.error);
39792
+ refreshTransferInstruments().catch(logger$c.error);
38056
39793
  onRemoveSuccess == null ? void 0 : onRemoveSuccess(transferInstrumentId, legalEntityId);
38057
39794
  };
38058
39795
  const render2 = () => {
@@ -38080,11 +39817,12 @@ function ManageTransferInstrumentComponent({
38080
39817
  children: render2()
38081
39818
  });
38082
39819
  }
38083
- const logger$9 = createLogger("CreateIndividualComponent");
39820
+ const logger$b = createLogger("CreateIndividualComponent");
38084
39821
  function OnboardingDropinComponent({
38085
39822
  legalEntityId,
38086
39823
  openBankingPartnerConfigId
38087
39824
  }) {
39825
+ var _a, _b, _c, _d, _e, _f, _g, _h;
38088
39826
  if (!legalEntityId) {
38089
39827
  throw new Error("Must provide at-least legalEntityId");
38090
39828
  }
@@ -38117,23 +39855,30 @@ function OnboardingDropinComponent({
38117
39855
  downloadAcceptedServiceAgreement,
38118
39856
  downloadUnacceptedServiceAgreement,
38119
39857
  getBankVerificationVendor: getBankVerificationVendor2,
38120
- confirmDataReview: confirmDataReview2
39858
+ confirmDataReview: confirmDataReview2,
39859
+ getProviderStatus: getProviderStatus2
38121
39860
  } = useComponentApi(legalEntityId);
38122
39861
  const [legalEntity, setLegalEntity] = useState();
38123
39862
  const [loadingStatus, setLoadingStatus] = useState("loading");
38124
- const fetchLegalEntity = useCallback(async () => {
39863
+ const [providerStatus, setProviderStatus] = useState();
39864
+ const init2 = useCallback(async () => {
38125
39865
  try {
38126
39866
  const le = await getLegalEntity2(legalEntityId);
39867
+ const providerStatuses = await getProviderStatus2({
39868
+ providers: ["address", "idDocument"],
39869
+ country: getLegalEntityCountry(le)
39870
+ });
38127
39871
  setLegalEntity(le);
39872
+ setProviderStatus(providerStatuses);
38128
39873
  } catch (error) {
38129
- logger$9.error(error);
39874
+ logger$b.error(error);
38130
39875
  } finally {
38131
39876
  setLoadingStatus("success");
38132
39877
  }
38133
- }, [legalEntityId, getLegalEntity2]);
39878
+ }, [legalEntityId, getLegalEntity2, getProviderStatus2]);
38134
39879
  useEffect(() => {
38135
- fetchLegalEntity().catch(logger$9.error);
38136
- }, [fetchLegalEntity]);
39880
+ init2().catch(logger$b.error);
39881
+ }, [init2]);
38137
39882
  return loadingStatus === "loading" || !legalEntity ? jsx(Loader, {
38138
39883
  size: "medium"
38139
39884
  }) : jsx(DropinComposerComponent, {
@@ -38144,10 +39889,10 @@ function OnboardingDropinComponent({
38144
39889
  handleGetLegalEntity: getLegalEntity2,
38145
39890
  handleUpdateLegalEntity: updateLegalEntity2,
38146
39891
  handleCreateLegalEntity: createLegalEntity2,
38147
- handleFindAddress: getAddress2,
38148
- handleAddressSearch: searchAddress2,
38149
- handleGetIdVerificationToken: getIdVerificationToken,
38150
- handleGetIdVerificationStartCheck: idVerificationStartCheck,
39892
+ handleFindAddress: ((_b = (_a = providerStatus == null ? void 0 : providerStatus.statuses) == null ? void 0 : _a.address) == null ? void 0 : _b.enabled) ? getAddress2 : void 0,
39893
+ handleAddressSearch: ((_d = (_c = providerStatus == null ? void 0 : providerStatus.statuses) == null ? void 0 : _c.address) == null ? void 0 : _d.enabled) ? searchAddress2 : void 0,
39894
+ handleGetIdVerificationToken: ((_f = (_e = providerStatus == null ? void 0 : providerStatus.statuses) == null ? void 0 : _e.idDocument) == null ? void 0 : _f.enabled) ? getIdVerificationToken : void 0,
39895
+ handleGetIdVerificationStartCheck: ((_h = (_g = providerStatus == null ? void 0 : providerStatus.statuses) == null ? void 0 : _g.idDocument) == null ? void 0 : _h.enabled) ? idVerificationStartCheck : void 0,
38151
39896
  handleGetPciStatus: getPciStatus2,
38152
39897
  handleGetPciTemplate: getPciTemplate2,
38153
39898
  handleSignPci: signPci2,
@@ -38169,10 +39914,16 @@ function OnboardingDropinComponent({
38169
39914
  handleReviewConfirm: confirmDataReview2
38170
39915
  });
38171
39916
  }
39917
+ const setDefaultCurrencies = (dataObject, country2) => {
39918
+ const countryCurrencies = currencyByCountry[country2] || [];
39919
+ if (dataObject.totalAssetsCurrency && dataObject.annualTurnoverCurrency) return;
39920
+ dataObject.totalAssetsCurrency = countryCurrencies[0];
39921
+ dataObject.annualTurnoverCurrency = countryCurrencies[0];
39922
+ };
38172
39923
  var HighExposurePagesEnums = /* @__PURE__ */ ((HighExposurePagesEnums2) => {
38173
- HighExposurePagesEnums2["COMPANY_PAGE"] = "COMPANY_PAGE";
38174
- HighExposurePagesEnums2["PARENT_COMPANY_PAGE"] = "PARENT_COMPANY_PAGE";
38175
- HighExposurePagesEnums2["ULTIMATE_PARENT_COMPANY_PAGE"] = "ULTIMATE_PARENT_COMPANY_PAGE";
39924
+ HighExposurePagesEnums2["COMPANY_PAGE"] = "company";
39925
+ HighExposurePagesEnums2["PARENT_COMPANY_PAGE"] = "parentCompany";
39926
+ HighExposurePagesEnums2["ULTIMATE_PARENT_COMPANY_PAGE"] = "ultimateParentCompany";
38176
39927
  return HighExposurePagesEnums2;
38177
39928
  })(HighExposurePagesEnums || {});
38178
39929
  const highExposureRadioItems = [{
@@ -38204,6 +39955,36 @@ const highExposureCompanyDetailsValidations = {
38204
39955
  validate: (numberOfEmployees2) => !isEmpty(numberOfEmployees2),
38205
39956
  errorMessage: "fieldIsRequired"
38206
39957
  },
39958
+ legalInformationInsolvency: {
39959
+ modes: ["blur"],
39960
+ validate: (legalInformationInsolvency2) => !isEmpty(legalInformationInsolvency2),
39961
+ errorMessage: "fieldIsRequired"
39962
+ },
39963
+ totalAssetsValue: {
39964
+ modes: ["blur"],
39965
+ validate: (value) => !isEmpty(value),
39966
+ errorMessage: "fieldIsRequired"
39967
+ },
39968
+ totalAssetsCurrency: {
39969
+ modes: ["input"],
39970
+ validate: (value) => !isEmpty(value),
39971
+ errorMessage: "fieldIsRequired"
39972
+ },
39973
+ annualTurnoverValue: {
39974
+ modes: ["blur"],
39975
+ validate: (value) => !isEmpty(value),
39976
+ errorMessage: "fieldIsRequired"
39977
+ },
39978
+ annualTurnoverCurrency: {
39979
+ modes: ["blur"],
39980
+ validate: (value) => !isEmpty(value),
39981
+ errorMessage: "fieldIsRequired"
39982
+ },
39983
+ financialReportingDate: {
39984
+ modes: ["blur"],
39985
+ validate: (value) => !isEmpty(value),
39986
+ errorMessage: "fieldIsRequired"
39987
+ },
38207
39988
  legalForm: {
38208
39989
  modes: ["blur"],
38209
39990
  validate: (legalForm2) => !isEmpty(legalForm2),
@@ -38284,6 +40065,41 @@ const highExposureParentCompanyDetailsValidations = {
38284
40065
  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));
38285
40066
  },
38286
40067
  errorMessage: "fieldIsRequired"
40068
+ },
40069
+ isParentCompanyAddressTheMainHeadquarters: {
40070
+ modes: ["blur"],
40071
+ validate: (isParentCompanyAddressTheMainHeadquarters) => !isEmpty(isParentCompanyAddressTheMainHeadquarters),
40072
+ errorMessage: "fieldIsRequired"
40073
+ },
40074
+ legalInformationInsolvency: {
40075
+ modes: ["blur"],
40076
+ validate: (value) => !isEmpty(value),
40077
+ errorMessage: "fieldIsRequired"
40078
+ },
40079
+ totalAssetsValue: {
40080
+ modes: ["blur"],
40081
+ validate: (value) => !isEmpty(value),
40082
+ errorMessage: "fieldIsRequired"
40083
+ },
40084
+ totalAssetsCurrency: {
40085
+ modes: ["input"],
40086
+ validate: (value) => !isEmpty(value),
40087
+ errorMessage: "fieldIsRequired"
40088
+ },
40089
+ annualTurnoverValue: {
40090
+ modes: ["blur"],
40091
+ validate: (value) => !isEmpty(value),
40092
+ errorMessage: "fieldIsRequired"
40093
+ },
40094
+ annualTurnoverCurrency: {
40095
+ modes: ["blur"],
40096
+ validate: (value) => !isEmpty(value),
40097
+ errorMessage: "fieldIsRequired"
40098
+ },
40099
+ financialReportingDate: {
40100
+ modes: ["blur"],
40101
+ validate: (value) => !isEmpty(value),
40102
+ errorMessage: "fieldIsRequired"
38287
40103
  }
38288
40104
  };
38289
40105
  const highExposureUltimateParentCompanyDetailsValidations = {
@@ -38324,9 +40140,44 @@ const highExposureUltimateParentCompanyDetailsValidations = {
38324
40140
  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));
38325
40141
  },
38326
40142
  errorMessage: "fieldIsRequired"
40143
+ },
40144
+ isUltimateParentCompanyAddressTheMainHeadquarters: {
40145
+ modes: ["blur"],
40146
+ validate: (isUltimateParentCompanyAddressTheMainHeadquarters) => !isEmpty(isUltimateParentCompanyAddressTheMainHeadquarters),
40147
+ errorMessage: "fieldIsRequired"
40148
+ },
40149
+ legalInformationInsolvency: {
40150
+ modes: ["blur"],
40151
+ validate: (value) => !isEmpty(value),
40152
+ errorMessage: "fieldIsRequired"
40153
+ },
40154
+ totalAssetsValue: {
40155
+ modes: ["blur"],
40156
+ validate: (value) => !isEmpty(value),
40157
+ errorMessage: "fieldIsRequired"
40158
+ },
40159
+ totalAssetsCurrency: {
40160
+ modes: ["input"],
40161
+ validate: (value) => !isEmpty(value),
40162
+ errorMessage: "fieldIsRequired"
40163
+ },
40164
+ annualTurnoverValue: {
40165
+ modes: ["blur"],
40166
+ validate: (value) => !isEmpty(value),
40167
+ errorMessage: "fieldIsRequired"
40168
+ },
40169
+ annualTurnoverCurrency: {
40170
+ modes: ["blur"],
40171
+ validate: (value) => !isEmpty(value),
40172
+ errorMessage: "fieldIsRequired"
40173
+ },
40174
+ financialReportingDate: {
40175
+ modes: ["blur"],
40176
+ validate: (value) => !isEmpty(value),
40177
+ errorMessage: "fieldIsRequired"
38327
40178
  }
38328
40179
  };
38329
- const logger$8 = createLogger("LegalFormField");
40180
+ const logger$a = createLogger("LegalFormField");
38330
40181
  function LegalFormField({
38331
40182
  name = "legalForm",
38332
40183
  data,
@@ -38355,7 +40206,7 @@ function LegalFormField({
38355
40206
  }));
38356
40207
  setLegalForms(legalFormsResponse);
38357
40208
  }
38358
- }).catch(() => logger$8.error);
40209
+ }).catch(() => logger$a.error);
38359
40210
  }, [countryCode]);
38360
40211
  return jsx(Field, {
38361
40212
  name,
@@ -38375,7 +40226,7 @@ function LegalFormField({
38375
40226
  })
38376
40227
  });
38377
40228
  }
38378
- const logger$7 = createLogger("NaceCodeField");
40229
+ const logger$9 = createLogger("NaceCodeField");
38379
40230
  function NaceCodeField({
38380
40231
  name = "naceCode",
38381
40232
  data,
@@ -38399,7 +40250,7 @@ function NaceCodeField({
38399
40250
  if (response) {
38400
40251
  setNaceCodes(response);
38401
40252
  }
38402
- }).catch(() => logger$7.error);
40253
+ }).catch(() => logger$9.error);
38403
40254
  }, []);
38404
40255
  return jsx(Field, {
38405
40256
  name,
@@ -38589,6 +40440,193 @@ function HighExposureBusinessInformation({
38589
40440
  })]
38590
40441
  });
38591
40442
  }
40443
+ function AmountSelector({
40444
+ currency: currency2,
40445
+ value,
40446
+ validCurrency,
40447
+ validValue,
40448
+ handleChangeForCurrency,
40449
+ handleChangeForValue,
40450
+ country: country2,
40451
+ fieldName,
40452
+ fieldLabel,
40453
+ fieldHelper,
40454
+ errorMessage,
40455
+ ariaLabelCurrency,
40456
+ ariaLabelValue
40457
+ }) {
40458
+ const {
40459
+ i18n
40460
+ } = useI18nContext();
40461
+ const countryCurrencies = currencyByCountry[country2] || [];
40462
+ const countryCurrenciesItems = countryCurrencies ? countryCurrencies.map((item) => ({
40463
+ id: item,
40464
+ name: item
40465
+ })) : null;
40466
+ return countryCurrenciesItems && jsx(Field, {
40467
+ name: fieldName,
40468
+ label: fieldLabel,
40469
+ helper: fieldHelper,
40470
+ errorMessage,
40471
+ isValid: validCurrency && validValue,
40472
+ children: (childProps) => jsxs("div", {
40473
+ className: "adyen-kyc-u-display-flex adyen-kyc-u-justify-content-space-between",
40474
+ children: [jsx(Select, {
40475
+ ...childProps,
40476
+ name: `${fieldName}Currency`,
40477
+ className: "adyen-kyc-u-flex-1",
40478
+ placeholder: i18n.get("selectOne"),
40479
+ selected: currency2,
40480
+ items: countryCurrenciesItems,
40481
+ onChange: handleChangeForCurrency,
40482
+ "aria-required": true,
40483
+ "aria-label": ariaLabelCurrency,
40484
+ "aria-invalid": !validCurrency,
40485
+ readonly: (countryCurrenciesItems == null ? void 0 : countryCurrenciesItems.length) === 1
40486
+ }), jsx(InputText, {
40487
+ ...childProps,
40488
+ name: `${fieldName}Value`,
40489
+ value,
40490
+ className: "adyen-kyc-u-margin-left-8 adyen-kyc-u-flex-4",
40491
+ onInput: handleChangeForValue,
40492
+ onBlur: handleChangeForValue,
40493
+ "aria-required": true,
40494
+ "aria-label": ariaLabelValue,
40495
+ "aria-invalid": !validValue
40496
+ })]
40497
+ })
40498
+ });
40499
+ }
40500
+ function HighExposureFinancialInformation({
40501
+ formUtils,
40502
+ data,
40503
+ valid,
40504
+ errors,
40505
+ fieldProblems,
40506
+ handleChangeFor,
40507
+ country: country2,
40508
+ fieldMapping,
40509
+ sectionHeading
40510
+ }) {
40511
+ const {
40512
+ i18n
40513
+ } = useI18nContext();
40514
+ const getFieldName = (fieldKey) => fieldMapping[fieldKey] ?? fieldKey;
40515
+ const getFieldData = (fieldKey) => {
40516
+ const fieldData = data[getFieldName(fieldKey)];
40517
+ return fieldData ? fieldData.toString() : void 0;
40518
+ };
40519
+ return jsxs(Fragment, {
40520
+ children: [jsx(Typography, {
40521
+ el: "h3",
40522
+ variant: "title",
40523
+ children: i18n.get(sectionHeading || "financialInformation")
40524
+ }), jsx(AmountSelector, {
40525
+ country: country2,
40526
+ handleChangeForCurrency: handleChangeFor("totalAssetsCurrency", "blur"),
40527
+ handleChangeForValue: handleChangeFor("totalAssetsValue", "blur"),
40528
+ currency: data.totalAssetsCurrency,
40529
+ value: data.totalAssetsValue,
40530
+ validCurrency: valid.totalAssetsCurrency,
40531
+ validValue: valid.totalAssetsValue,
40532
+ fieldName: getFieldName("totalAssetsField"),
40533
+ fieldLabel: formUtils.getLabel("totalAssets", "totalAssets"),
40534
+ fieldHelper: i18n.get("totalAssetsHelper"),
40535
+ errorMessage: formUtils.getErrorMessage("totalAssetsValue", errors, fieldProblems),
40536
+ ariaLabelCurrency: formUtils.getLabel("totalAssetsCurrency"),
40537
+ ariaLabelValue: formUtils.getLabel("totalAssetsValue")
40538
+ }), jsx(AmountSelector, {
40539
+ country: country2,
40540
+ handleChangeForCurrency: handleChangeFor("annualTurnoverCurrency", "blur"),
40541
+ handleChangeForValue: handleChangeFor("annualTurnoverValue", "blur"),
40542
+ currency: data.annualTurnoverCurrency,
40543
+ value: data.annualTurnoverValue,
40544
+ validCurrency: valid.annualTurnoverCurrency,
40545
+ validValue: valid.annualTurnoverValue,
40546
+ fieldName: getFieldName("annualTurnoverField"),
40547
+ fieldLabel: formUtils.getLabel("annualTurnover", "annualTurnover"),
40548
+ fieldHelper: i18n.get("annualTurnoverHelper"),
40549
+ errorMessage: formUtils.getErrorMessage("annualTurnoverValue", errors, fieldProblems),
40550
+ ariaLabelCurrency: formUtils.getLabel("annualTurnoverCurrency"),
40551
+ ariaLabelValue: formUtils.getLabel("annualTurnoverValue")
40552
+ }), jsx(Field, {
40553
+ name: getFieldName("financialReportingDate"),
40554
+ label: formUtils.getLabel(getFieldName("financialReportingDate"), "financialReportingDate"),
40555
+ helper: i18n.get("financialReportingDateHelper"),
40556
+ errorMessage: formUtils.getErrorMessage(getFieldName("financialReportingDate"), errors, fieldProblems),
40557
+ isValid: valid[getFieldName("financialReportingDate")],
40558
+ children: (childProps) => jsx(InputDate, {
40559
+ ...childProps,
40560
+ name: getFieldName("financialReportingDate"),
40561
+ value: getFieldData("financialReportingDate"),
40562
+ classNameModifiers: ["financialReportingDate"],
40563
+ onInput: handleChangeFor(getFieldName("financialReportingDate"), "input"),
40564
+ onBlur: handleChangeFor(getFieldName("financialReportingDate"), "blur"),
40565
+ "aria-required": true,
40566
+ "aria-label": formUtils.getLabel(getFieldName("financialReportingDate")),
40567
+ "aria-invalid": !valid[getFieldName("financialReportingDate")]
40568
+ })
40569
+ })]
40570
+ });
40571
+ }
40572
+ function HighExposureLegalInformation({
40573
+ formUtils,
40574
+ data,
40575
+ valid,
40576
+ errors,
40577
+ fieldProblems,
40578
+ handleChangeFor,
40579
+ fieldMapping,
40580
+ sectionHeading
40581
+ }) {
40582
+ const {
40583
+ i18n
40584
+ } = useI18nContext();
40585
+ const getFieldName = (fieldKey) => fieldMapping[fieldKey] ?? fieldKey;
40586
+ const getFieldData = (fieldKey) => {
40587
+ const fieldData = data[getFieldName(fieldKey)];
40588
+ return fieldData ? fieldData.toString() : void 0;
40589
+ };
40590
+ const legalInformationInsolvencyItems = [{
40591
+ id: i18n.get("no"),
40592
+ name: i18n.get("no")
40593
+ }, {
40594
+ id: i18n.get("yesJudicialAdministration"),
40595
+ name: i18n.get("yesJudicialAdministration")
40596
+ }, {
40597
+ id: i18n.get("yesBankruptcyInsolvency"),
40598
+ name: i18n.get("yesBankruptcyInsolvency")
40599
+ }, {
40600
+ id: i18n.get("yesOtherLegalMeasures"),
40601
+ name: i18n.get("yesOtherLegalMeasures")
40602
+ }, {
40603
+ id: i18n.get("iDontKnow"),
40604
+ name: i18n.get("iDontKnow")
40605
+ }];
40606
+ return jsxs(Fragment, {
40607
+ children: [jsx(Typography, {
40608
+ el: "h3",
40609
+ variant: "title",
40610
+ children: i18n.get(sectionHeading || "legalInformation")
40611
+ }), jsx(Field, {
40612
+ name: getFieldName("legalInformationInsolvency"),
40613
+ label: formUtils.getLabel(getFieldName("legalInformationInsolvency"), "legalInformationInsolvency"),
40614
+ errorMessage: formUtils.getErrorMessage(getFieldName("legalInformationInsolvency"), errors, fieldProblems),
40615
+ isValid: valid.legalInformationInsolvency,
40616
+ children: (childProps) => jsx(Select, {
40617
+ ...childProps,
40618
+ onChange: handleChangeFor(getFieldName("legalInformationInsolvency"), "blur"),
40619
+ name: getFieldName("legalInformationInsolvency"),
40620
+ placeholder: i18n.get("selectOne"),
40621
+ selected: getFieldData("legalInformationInsolvency"),
40622
+ items: legalInformationInsolvencyItems,
40623
+ "aria-required": true,
40624
+ "aria-label": formUtils.getLabel(getFieldName("legalInformationInsolvency")),
40625
+ "aria-invalid": !valid[getFieldName("legalInformationInsolvency")]
40626
+ })
40627
+ })]
40628
+ });
40629
+ }
38592
40630
  function HighExposureOwnershipStructure({
38593
40631
  formUtils,
38594
40632
  data,
@@ -38655,7 +40693,13 @@ const companyFieldMapping = {
38655
40693
  doesYourCompanyHaveLEI: "doesYourCompanyHaveLEI",
38656
40694
  legalEntityIdentifier: "legalEntityIdentifier",
38657
40695
  isCompanyOwnedByAnotherCompany: "isCompanyOwnedByAnotherCompany",
38658
- isParentOwnedByAnotherCompany: "isParentOwnedByAnotherCompany"
40696
+ isParentOwnedByAnotherCompany: "isParentOwnedByAnotherCompany",
40697
+ financialReportingDate: "financialReportingDate",
40698
+ totalAssetsCurrency: "totalAssetsCurrency",
40699
+ totalAssetsValue: "totalAssetsValue",
40700
+ annualTurnoverCurrency: "annualTurnoverCurrency",
40701
+ annualTurnoverValue: "annualTurnoverValue",
40702
+ legalInformationInsolvency: "legalInformationInsolvency"
38659
40703
  };
38660
40704
  const highExposureCompanyDetailsFields = Object.values(companyFieldMapping);
38661
40705
  function AdditionalFieldsForHighExposureCompany(props) {
@@ -38689,6 +40733,7 @@ function AdditionalFieldsForHighExposureCompany(props) {
38689
40733
  errors,
38690
40734
  fieldProblems
38691
40735
  });
40736
+ setDefaultCurrencies(data, props.country);
38692
40737
  }, [data, valid, errors, fieldProblems]);
38693
40738
  return jsxs("form", {
38694
40739
  className: "adyen-kyc__high-exposure-company",
@@ -38729,10 +40774,118 @@ function AdditionalFieldsForHighExposureCompany(props) {
38729
40774
  legalEntity: props.legalEntity,
38730
40775
  formUtils,
38731
40776
  fieldProblems
40777
+ }), jsx(HighExposureFinancialInformation, {
40778
+ ...props,
40779
+ handleChangeFor: highExposureHandleChangeFor,
40780
+ errors,
40781
+ data,
40782
+ valid,
40783
+ country: props.country,
40784
+ formUtils,
40785
+ fieldProblems,
40786
+ targetPage: HighExposurePagesEnums.COMPANY_PAGE,
40787
+ fieldMapping: companyFieldMapping
40788
+ }), jsx(HighExposureLegalInformation, {
40789
+ ...props,
40790
+ handleChangeFor: highExposureHandleChangeFor,
40791
+ errors,
40792
+ data,
40793
+ valid,
40794
+ formUtils,
40795
+ fieldProblems,
40796
+ targetPage: HighExposurePagesEnums.COMPANY_PAGE,
40797
+ fieldMapping: companyFieldMapping
38732
40798
  })]
38733
40799
  });
38734
40800
  }
38735
- const parentCompanyFieldMapping$1 = {
40801
+ function HighExposureRegisteredAddress({
40802
+ formUtils,
40803
+ data,
40804
+ valid,
40805
+ errors,
40806
+ fieldProblems,
40807
+ handleChangeFor,
40808
+ legalEntity,
40809
+ fieldMapping,
40810
+ sectionHeading,
40811
+ country: country2,
40812
+ legalEntityId,
40813
+ handleAddressSearch,
40814
+ handleFindAddress,
40815
+ targetPage
40816
+ }) {
40817
+ const {
40818
+ i18n
40819
+ } = useI18nContext();
40820
+ const getFieldName = (fieldKey) => fieldMapping[fieldKey] ?? fieldKey;
40821
+ const getFieldData = (fieldKey) => {
40822
+ const fieldData = data[getFieldName(fieldKey)];
40823
+ return fieldData ? fieldData.toString() : void 0;
40824
+ };
40825
+ const addressRequiredFields = ["address", "otherAddressInformation", "postalCode", "city", "country"];
40826
+ const addressData = {
40827
+ address: getFieldData("address"),
40828
+ otherAddressInformation: getFieldData("otherAddressInformation"),
40829
+ postalCode: getFieldData("postalCode"),
40830
+ city: getFieldData("city"),
40831
+ stateOrProvince: getFieldData("stateOrProvince"),
40832
+ country: getFieldData("country")
40833
+ };
40834
+ const handleChangeForAddress = (state2) => {
40835
+ Object.entries(state2.data).forEach(([key, value]) => {
40836
+ const fieldName = getFieldName(key);
40837
+ const addressEvent = {
40838
+ target: {
40839
+ name: fieldName,
40840
+ value
40841
+ }
40842
+ };
40843
+ handleChangeFor(fieldName)(addressEvent);
40844
+ });
40845
+ };
40846
+ return jsxs(Fragment, {
40847
+ children: [jsx(Typography, {
40848
+ el: "h3",
40849
+ variant: "title",
40850
+ children: i18n.get(sectionHeading || "registeredAddress")
40851
+ }), jsx(Typography, {
40852
+ el: "h3",
40853
+ variant: "caption",
40854
+ children: i18n.get("addressRegisteredWithSecretaryOfState")
40855
+ }), jsx(Field, {
40856
+ name: getFieldName("isThisAddressTheMainHeadquarters"),
40857
+ classNameModifiers: ["highExposureBusinessInformation"],
40858
+ label: i18n.get("isThisAddressTheMainHeadquarters", {
40859
+ values: {
40860
+ company: (legalEntity == null ? void 0 : legalEntity.organization) ? legalEntity.organization.legalName : ""
40861
+ }
40862
+ }),
40863
+ errorMessage: formUtils.getErrorMessage(getFieldName("isThisAddressTheMainHeadquarters"), errors, fieldProblems),
40864
+ children: (childProps) => jsx(RadioGroup, {
40865
+ ...childProps,
40866
+ name: "isThisAddressTheMainHeadquarters",
40867
+ items: highExposureRadioItems,
40868
+ value: getFieldData("isThisAddressTheMainHeadquarters"),
40869
+ disabled: false,
40870
+ onChange: handleChangeFor(getFieldName("isThisAddressTheMainHeadquarters")),
40871
+ "aria-required": true,
40872
+ "aria-label": i18n.get("isThisAddressTheMainHeadquarters"),
40873
+ "aria-invalid": !valid[getFieldName("isThisAddressTheMainHeadquarters")]
40874
+ })
40875
+ }), jsx(Address, {
40876
+ data: addressData,
40877
+ countryCode: country2,
40878
+ id: targetPage,
40879
+ legalEntityId,
40880
+ handleAddressSearch,
40881
+ handleFindAddress,
40882
+ requiredFields: addressRequiredFields,
40883
+ shouldValidate: true,
40884
+ onChange: handleChangeForAddress
40885
+ })]
40886
+ });
40887
+ }
40888
+ const parentCompanyFieldMapping = {
38736
40889
  legalName: "parentLegalName",
38737
40890
  legalForm: "parentLegalForm",
38738
40891
  naceCode: "parentNaceCode",
@@ -38740,9 +40893,22 @@ const parentCompanyFieldMapping$1 = {
38740
40893
  doesTheCompanyEarnMoreThanHalf: "doesTheParentCompanyEarnMoreThanHalf",
38741
40894
  doesYourCompanyHaveLEI: "doesYourParentCompanyHaveLEI",
38742
40895
  legalEntityIdentifier: "parentLegalEntityIdentifier",
38743
- doesNotKnowNumberOfEmployees: "doesNotKnowParentNumberOfEmployees"
38744
- };
38745
- const highExposureParentCompanyDetailsFields = Object.values(parentCompanyFieldMapping$1);
40896
+ doesNotKnowNumberOfEmployees: "doesNotKnowParentNumberOfEmployees",
40897
+ isThisAddressTheMainHeadquarters: "isParentCompanyAddressTheMainHeadquarters",
40898
+ address: "parentCompanyAddress",
40899
+ otherAddressInformation: "parentCompanyOtherAddressInformation",
40900
+ postalCode: "parentCompanyPostalCode",
40901
+ city: "parentCompanyCity",
40902
+ stateOrProvince: "parentCompanyStateOrProvince",
40903
+ country: "parentCompanyCountry",
40904
+ financialReportingDate: "financialReportingDate",
40905
+ totalAssetsCurrency: "totalAssetsCurrency",
40906
+ totalAssetsValue: "totalAssetsValue",
40907
+ annualTurnoverCurrency: "annualTurnoverCurrency",
40908
+ annualTurnoverValue: "annualTurnoverValue",
40909
+ legalInformationInsolvency: "legalInformationInsolvency"
40910
+ };
40911
+ const highExposureParentCompanyDetailsFields = Object.values(parentCompanyFieldMapping);
38746
40912
  function AdditionalFieldsForHighExposureParentCompany(props) {
38747
40913
  const {
38748
40914
  i18n
@@ -38774,6 +40940,7 @@ function AdditionalFieldsForHighExposureParentCompany(props) {
38774
40940
  errors,
38775
40941
  fieldProblems
38776
40942
  });
40943
+ setDefaultCurrencies(data, props.country);
38777
40944
  }, [data, valid, errors, fieldProblems]);
38778
40945
  return jsxs("form", {
38779
40946
  className: "adyen-kyc__high-exposure-company",
@@ -38801,11 +40968,47 @@ function AdditionalFieldsForHighExposureParentCompany(props) {
38801
40968
  formUtils,
38802
40969
  fieldProblems,
38803
40970
  targetPage: HighExposurePagesEnums.PARENT_COMPANY_PAGE,
38804
- fieldMapping: parentCompanyFieldMapping$1
40971
+ fieldMapping: parentCompanyFieldMapping
40972
+ }), jsx(HighExposureRegisteredAddress, {
40973
+ ...props,
40974
+ country: props.country,
40975
+ handleChangeFor: highExposureHandleChangeFor,
40976
+ sectionHeading: "registeredAddress",
40977
+ errors,
40978
+ data,
40979
+ valid,
40980
+ formUtils,
40981
+ fieldProblems,
40982
+ targetPage: HighExposurePagesEnums.PARENT_COMPANY_PAGE,
40983
+ fieldMapping: parentCompanyFieldMapping,
40984
+ legalEntityId: props.legalEntityId,
40985
+ handleFindAddress: props.handleFindAddress,
40986
+ handleAddressSearch: props.handleAddressSearch
40987
+ }), jsx(HighExposureFinancialInformation, {
40988
+ ...props,
40989
+ handleChangeFor: highExposureHandleChangeFor,
40990
+ errors,
40991
+ data,
40992
+ valid,
40993
+ country: props.country,
40994
+ formUtils,
40995
+ fieldProblems,
40996
+ targetPage: HighExposurePagesEnums.COMPANY_PAGE,
40997
+ fieldMapping: parentCompanyFieldMapping
40998
+ }), jsx(HighExposureLegalInformation, {
40999
+ ...props,
41000
+ handleChangeFor: highExposureHandleChangeFor,
41001
+ errors,
41002
+ data,
41003
+ valid,
41004
+ formUtils,
41005
+ fieldProblems,
41006
+ targetPage: HighExposurePagesEnums.COMPANY_PAGE,
41007
+ fieldMapping: parentCompanyFieldMapping
38805
41008
  })]
38806
41009
  });
38807
41010
  }
38808
- const parentCompanyFieldMapping = {
41011
+ const ultimateParentCompanyFieldMapping = {
38809
41012
  legalName: "ultimateParentLegalName",
38810
41013
  legalForm: "ultimateParentLegalForm",
38811
41014
  naceCode: "ultimateParentNaceCode",
@@ -38813,9 +41016,22 @@ const parentCompanyFieldMapping = {
38813
41016
  doesTheCompanyEarnMoreThanHalf: "doesTheUltimateParentCompanyEarnMoreThanHalf",
38814
41017
  doesYourCompanyHaveLEI: "doesYourUltimateParentCompanyHaveLEI",
38815
41018
  legalEntityIdentifier: "ultimateParentLegalEntityIdentifier",
38816
- doesNotKnowNumberOfEmployees: "doesNotKnowUltimateParentNumberOfEmployees"
38817
- };
38818
- const highExposureUltimateParentCompanyDetailsFields = Object.values(parentCompanyFieldMapping);
41019
+ doesNotKnowNumberOfEmployees: "doesNotKnowUltimateParentNumberOfEmployees",
41020
+ isThisAddressTheMainHeadquarters: "isUltimateParentCompanyAddressTheMainHeadquarters",
41021
+ address: "ultimateParentCompanyAddress",
41022
+ otherAddressInformation: "ultimateParentCompanyOtherAddressInformation",
41023
+ postalCode: "ultimateParentCompanyPostalCode",
41024
+ city: "ultimateParentCompanyCity",
41025
+ stateOrProvince: "ultimateParentCompanyStateOrProvince",
41026
+ country: "ultimateParentCompanyCountry",
41027
+ financialReportingDate: "financialReportingDate",
41028
+ totalAssetsCurrency: "totalAssetsCurrency",
41029
+ totalAssetsValue: "totalAssetsValue",
41030
+ annualTurnoverCurrency: "annualTurnoverCurrency",
41031
+ annualTurnoverValue: "annualTurnoverValue",
41032
+ legalInformationInsolvency: "legalInformationInsolvency"
41033
+ };
41034
+ const highExposureUltimateParentCompanyDetailsFields = Object.values(ultimateParentCompanyFieldMapping);
38819
41035
  function AdditionalFieldsForHighExposureUltimateParentCompany(props) {
38820
41036
  const {
38821
41037
  i18n
@@ -38847,6 +41063,7 @@ function AdditionalFieldsForHighExposureUltimateParentCompany(props) {
38847
41063
  errors,
38848
41064
  fieldProblems
38849
41065
  });
41066
+ setDefaultCurrencies(data, props.country);
38850
41067
  }, [data, valid, errors, fieldProblems]);
38851
41068
  return jsxs("form", {
38852
41069
  className: "adyen-kyc__high-exposure-company",
@@ -38874,7 +41091,58 @@ function AdditionalFieldsForHighExposureUltimateParentCompany(props) {
38874
41091
  formUtils,
38875
41092
  fieldProblems,
38876
41093
  targetPage: HighExposurePagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
38877
- fieldMapping: parentCompanyFieldMapping
41094
+ fieldMapping: ultimateParentCompanyFieldMapping
41095
+ }), jsx(HighExposureRegisteredAddress, {
41096
+ ...props,
41097
+ country: props.country,
41098
+ handleChangeFor: highExposureHandleChangeFor,
41099
+ sectionHeading: "registeredAddress",
41100
+ errors,
41101
+ data,
41102
+ valid,
41103
+ formUtils,
41104
+ fieldProblems,
41105
+ targetPage: HighExposurePagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
41106
+ fieldMapping: ultimateParentCompanyFieldMapping,
41107
+ legalEntityId: props.legalEntityId,
41108
+ handleFindAddress: props.handleFindAddress,
41109
+ handleAddressSearch: props.handleAddressSearch
41110
+ }), jsx(HighExposureFinancialInformation, {
41111
+ ...props,
41112
+ handleChangeFor: highExposureHandleChangeFor,
41113
+ errors,
41114
+ data,
41115
+ valid,
41116
+ country: props.country,
41117
+ formUtils,
41118
+ fieldProblems,
41119
+ targetPage: HighExposurePagesEnums.COMPANY_PAGE,
41120
+ fieldMapping: ultimateParentCompanyFieldMapping
41121
+ }), jsx(HighExposureLegalInformation, {
41122
+ ...props,
41123
+ handleChangeFor: highExposureHandleChangeFor,
41124
+ errors,
41125
+ data,
41126
+ valid,
41127
+ formUtils,
41128
+ fieldProblems,
41129
+ targetPage: HighExposurePagesEnums.COMPANY_PAGE,
41130
+ fieldMapping: ultimateParentCompanyFieldMapping
41131
+ }), jsx(HighExposureRegisteredAddress, {
41132
+ ...props,
41133
+ country: props.country,
41134
+ handleChangeFor: highExposureHandleChangeFor,
41135
+ sectionHeading: "registeredAddress",
41136
+ errors,
41137
+ data,
41138
+ valid,
41139
+ formUtils,
41140
+ fieldProblems,
41141
+ targetPage: HighExposurePagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
41142
+ fieldMapping: ultimateParentCompanyFieldMapping,
41143
+ legalEntityId: props.legalEntityId,
41144
+ handleFindAddress: props.handleFindAddress,
41145
+ handleAddressSearch: props.handleAddressSearch
38878
41146
  })]
38879
41147
  });
38880
41148
  }
@@ -38895,6 +41163,11 @@ const highExposureForms = {
38895
41163
  fields: [...highExposureCompanyDetailsFields]
38896
41164
  }
38897
41165
  };
41166
+ const highExposureFormsRequiredFields = {
41167
+ company: highExposureForms.company.fields,
41168
+ parentCompany: highExposureForms.company.fields,
41169
+ ultimateParentCompany: highExposureForms.company.fields
41170
+ };
38898
41171
  const parentCompanyFormId = highExposureForms.parentCompany.formId;
38899
41172
  const companyFormId = highExposureForms.company.formId;
38900
41173
  const ultimateParentCompanyFormId = highExposureForms.ultimateParentCompany.formId;
@@ -38921,13 +41194,17 @@ function HighExposureDropinComponent(props) {
38921
41194
  legalEntityId: props.legalEntityId,
38922
41195
  heading: i18n.get("parentCompanyDetails"),
38923
41196
  id: companyFormId,
38924
- country: props.country
41197
+ country: props.country,
41198
+ handleFindAddress: props.handleFindAddress,
41199
+ handleAddressSearch: props.handleAddressSearch
38925
41200
  }), activeForm.formId === ultimateParentCompanyFormId && jsx(AdditionalFieldsForHighExposureUltimateParentCompany, {
38926
41201
  ...highExposureUltimateParentCompanyDetailsFormProps,
38927
41202
  legalEntityId: props.legalEntityId,
38928
41203
  heading: i18n.get("ultimateParentCompanyDetails"),
38929
41204
  id: companyFormId,
38930
- country: props.country
41205
+ country: props.country,
41206
+ handleFindAddress: props.handleFindAddress,
41207
+ handleAddressSearch: props.handleAddressSearch
38931
41208
  })]
38932
41209
  })
38933
41210
  });
@@ -38939,7 +41216,7 @@ function HighExposureDropinComponent(props) {
38939
41216
  const parseConfiguration = ({
38940
41217
  matchingScenario
38941
41218
  }) => parseHighExposureScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.ORGANIZATION]);
38942
- const logger$6 = createLogger("UpdateLegalEntityForHighExposure");
41219
+ const logger$8 = createLogger("UpdateLegalEntityForHighExposure");
38943
41220
  const customLabels = {
38944
41221
  company: {
38945
41222
  legalForm: "businessStructure",
@@ -38952,7 +41229,14 @@ const customLabels = {
38952
41229
  parentNumberOfEmployees: "numberOfEmployees",
38953
41230
  doesTheParentCompanyEarnMoreThanHalf: "doesTheCompanyEarnMoreThanHalf",
38954
41231
  doesYourParentCompanyHaveLEI: "doesThisCompanyHaveLEI",
38955
- parentLegalEntityIdentifier: "legalEntityIdentifier"
41232
+ parentLegalEntityIdentifier: "legalEntityIdentifier",
41233
+ isParentCompanyAddressTheMainHeadquarters: "isThisAddressTheMainHeadquarters",
41234
+ parentCompanyAddress: "address",
41235
+ parentCompanyCity: "city",
41236
+ parentCompanyPostalCode: "postalCode",
41237
+ parentCompanyStateOrProvince: "stateOrProvince",
41238
+ parentCompanyOtherAddressInformation: "otherAddressInformation",
41239
+ parentCompanyCountry: "country"
38956
41240
  },
38957
41241
  ultimateParentCompany: {
38958
41242
  ultimateParentLegalName: "legalName",
@@ -38961,7 +41245,14 @@ const customLabels = {
38961
41245
  ultimateParentNumberOfEmployees: "numberOfEmployees",
38962
41246
  doesTheUltimateParentCompanyEarnMoreThanHalf: "doesTheCompanyEarnMoreThanHalf",
38963
41247
  doesYourUltimateParentCompanyHaveLEI: "doesThisCompanyHaveLEI",
38964
- ultimateParentLegalEntityIdentifier: "legalEntityIdentifier"
41248
+ ultimateParentLegalEntityIdentifier: "legalEntityIdentifier",
41249
+ isUltimateParentCompanyAddressTheMainHeadquarters: "isThisAddressTheMainHeadquarters",
41250
+ ultimateParentCompanyAddress: "address",
41251
+ ultimateParentCompanyCity: "city",
41252
+ ultimateParentCompanyPostalCode: "postalCode",
41253
+ ultimateParentCompanyStateOrProvince: "stateOrProvince",
41254
+ ultimateParentCompanyOtherAddressInformation: "otherAddressInformation",
41255
+ ultimateParentCompanyCountry: "country"
38965
41256
  }
38966
41257
  };
38967
41258
  function UpdateLegalEntityForHighExposure({
@@ -38980,7 +41271,9 @@ function UpdateLegalEntityForHighExposure({
38980
41271
  }) {
38981
41272
  var _a, _b, _c;
38982
41273
  const {
38983
- getLegalEntity: getLegalEntity2
41274
+ getLegalEntity: getLegalEntity2,
41275
+ getAddress: getAddress2,
41276
+ searchAddress: searchAddress2
38984
41277
  } = useComponentApi(legalEntityId);
38985
41278
  const {
38986
41279
  i18n
@@ -38997,7 +41290,7 @@ function UpdateLegalEntityForHighExposure({
38997
41290
  useEffect(() => {
38998
41291
  (async () => {
38999
41292
  await fetchLegalEntity();
39000
- })().catch(logger$6.error);
41293
+ })().catch(logger$8.error);
39001
41294
  }, [fetchLegalEntity]);
39002
41295
  const dataFromResponse = legalEntity ? mapLegalEntityToHighExposure(legalEntity) : {};
39003
41296
  const [data, setData] = useState(dataFromResponse);
@@ -39032,9 +41325,11 @@ function UpdateLegalEntityForHighExposure({
39032
41325
  } = useStateContext();
39033
41326
  const formValidity = currentState.validityByForm;
39034
41327
  useEffect(() => {
39035
- setData({
41328
+ const newState = {
41329
+ ...data,
39036
41330
  ...currentState.data
39037
- });
41331
+ };
41332
+ setData(newState);
39038
41333
  onChange == null ? void 0 : onChange(currentState);
39039
41334
  }, [currentState]);
39040
41335
  useEffect(() => {
@@ -39061,9 +41356,9 @@ function UpdateLegalEntityForHighExposure({
39061
41356
  setHighExposureRequiredForms(updateForms);
39062
41357
  }, [(_a = data == null ? void 0 : data.company) == null ? void 0 : _a.isCompanyOwnedByAnotherCompany, (_b = data == null ? void 0 : data.company) == null ? void 0 : _b.isParentOwnedByAnotherCompany]);
39063
41358
  const forms2 = useMemo(() => {
39064
- const requiredForms = getRequiredForms(highExposureRequiredForms, derivedProps == null ? void 0 : derivedProps.requiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields);
41359
+ const requiredForms = getRequiredForms(highExposureRequiredForms, highExposureFormsRequiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields);
39065
41360
  return addValidityToForms(requiredForms, formValidity, problems);
39066
- }, [derivedProps == null ? void 0 : derivedProps.optionalFields, derivedProps == null ? void 0 : derivedProps.requiredFields, formValidity, highExposureRequiredForms, problems]);
41361
+ }, [derivedProps == null ? void 0 : derivedProps.optionalFields, formValidity, highExposureRequiredForms, problems]);
39067
41362
  const onSubmit = async () => {
39068
41363
  setLoadingStatus("loading");
39069
41364
  const exposureDetails = mapHighExposureToLegalEntity(data);
@@ -39158,7 +41453,9 @@ function UpdateLegalEntityForHighExposure({
39158
41453
  problems,
39159
41454
  shouldValidate,
39160
41455
  ref: formRef,
39161
- legalEntity
41456
+ legalEntity,
41457
+ handleFindAddress: getAddress2,
41458
+ handleAddressSearch: searchAddress2
39162
41459
  })
39163
41460
  });
39164
41461
  }
@@ -39198,7 +41495,7 @@ const contentMap = {
39198
41495
  function getContentByStatus(status) {
39199
41496
  return contentMap[status];
39200
41497
  }
39201
- const logger$5 = createLogger("ViewVerificationStatusComponent");
41498
+ const logger$7 = createLogger("ViewVerificationStatusComponent");
39202
41499
  function ViewVerificationStatusComponent({
39203
41500
  legalEntityId,
39204
41501
  hideExplanation = false,
@@ -39225,7 +41522,7 @@ function ViewVerificationStatusComponent({
39225
41522
  if (!onboardingStatus) return;
39226
41523
  const statusContent = getContentByStatus(onboardingStatus);
39227
41524
  if (statusContent) return statusContent;
39228
- logger$5.error(`there is no content for status "${onboardingStatus}"`);
41525
+ logger$7.error(`there is no content for status "${onboardingStatus}"`);
39229
41526
  }, [onboardingStatus]);
39230
41527
  const handleError = ({
39231
41528
  trKey,
@@ -39235,7 +41532,7 @@ function ViewVerificationStatusComponent({
39235
41532
  setAlertContent(trKey);
39236
41533
  }
39237
41534
  if (error) {
39238
- logger$5.error(error);
41535
+ logger$7.error(error);
39239
41536
  }
39240
41537
  if (typeof onError === "function") {
39241
41538
  const userMessage = trKey ? i18n.get(trKey) : "";
@@ -39264,7 +41561,7 @@ function ViewVerificationStatusComponent({
39264
41561
  error
39265
41562
  });
39266
41563
  }
39267
- })().catch(logger$5.error);
41564
+ })().catch(logger$7.error);
39268
41565
  }, [legalEntityId, getOnboardingStatus2]);
39269
41566
  const [loadingLinkStatus, setLinkLoadingStatus] = useState("success");
39270
41567
  const redirectToAdyen = async () => {
@@ -39490,6 +41787,50 @@ const loadDocumentGuidance = async (loadingContext) => {
39490
41787
  }, null, "text");
39491
41788
  document.body.insertBefore(buildSpriteDOMFromResponse(responseData), document.body.firstChild);
39492
41789
  };
41790
+ const logger$6 = createLogger("loadCountries");
41791
+ 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") });
41792
+ const loadCountriesDataset = async (locale) => {
41793
+ const importForLocale = countriesImports[`./${locale}.json`];
41794
+ if (!importForLocale) {
41795
+ logger$6.warn(`No countries dataset for ${locale}, falling back to en-US`);
41796
+ return import("./en-US-CkdCbOCX.js");
41797
+ }
41798
+ return (await importForLocale()).default;
41799
+ };
41800
+ const logger$5 = createLogger("loadStates");
41801
+ 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") });
41802
+ const loadStatesDataset = async (country2, locale) => {
41803
+ const importForLocale = statesImports[`./${country2}/${locale}.json`];
41804
+ if (!importForLocale) {
41805
+ logger$5.warn(`No ${country2} states dataset for ${locale}, falling back to en-US`);
41806
+ const fallbackImport = statesImports[`./${country2}/en-US.json`];
41807
+ return (await fallbackImport()).default;
41808
+ }
41809
+ return (await importForLocale()).default;
41810
+ };
41811
+ const loadDataset = async (identifier, locale) => {
41812
+ if (identifier === datasetIdentifier.country) {
41813
+ return loadCountriesDataset(locale);
41814
+ }
41815
+ if (identifier.startsWith("states")) {
41816
+ const country2 = identifier.slice(identifier.indexOf("/") + 1);
41817
+ return loadStatesDataset(country2, locale);
41818
+ }
41819
+ throw new Error(`Unknown dataset: ${identifier}`);
41820
+ };
41821
+ const getDataset = async (identifier, locale) => {
41822
+ const datasetUtils = datasetUtilities(locale);
41823
+ const dataset = datasetUtils.getDataset(identifier);
41824
+ if (dataset) {
41825
+ return new Promise((resolve) => {
41826
+ resolve(dataset);
41827
+ });
41828
+ }
41829
+ return loadDataset(identifier, locale).then((datasetResponse) => {
41830
+ datasetUtils.setDataset(identifier, datasetResponse);
41831
+ return datasetResponse;
41832
+ });
41833
+ };
39493
41834
  const getAllowedLocales$1 = async (context) => {
39494
41835
  const {
39495
41836
  loadingContext,
@@ -39621,7 +41962,7 @@ const getEmbeddedApi = ({
39621
41962
  loadingContext: loadingContextWithRootLEAuth,
39622
41963
  legalEntityId: rootLegalEntityId
39623
41964
  };
39624
- const datasetsBaseUrl = `/onboardingcomponents/api/${COMPONENTS_API_VERSION}/datasets/`;
41965
+ const datasetsBaseUrl = `${loadingContext}datasets/`;
39625
41966
  return {
39626
41967
  getConfiguration: async (request) => {
39627
41968
  const [scenarios, tasks] = await Promise.all([getScenarios(request, baseRequestContext), getTasks(baseRequestContext)]);
@@ -39632,10 +41973,7 @@ const getEmbeddedApi = ({
39632
41973
  taskList: tasks
39633
41974
  };
39634
41975
  },
39635
- getDataset: async (datasetIdentifier2, locale) => getDataset$1({
39636
- ...baseRequestContext,
39637
- loadingContext
39638
- }, datasetIdentifier2, locale),
41976
+ getDataset,
39639
41977
  loadDocumentGuidance: async () => loadDocumentGuidance(base),
39640
41978
  getImageUrl: () => `${base}static/images/`,
39641
41979
  getAllowedCountries: async () => getSupportedCountries(baseRequestContext),
@@ -39690,30 +42028,6 @@ const getConfiguration = async (context, request) => {
39690
42028
  clientKey
39691
42029
  }, request);
39692
42030
  };
39693
- const getDataset = async (context, name, locale) => {
39694
- const {
39695
- loadingContext,
39696
- clientKey
39697
- } = context;
39698
- const datasetUtils = datasetUtilities(locale);
39699
- const dataset = datasetUtils.getDataset(name);
39700
- if (dataset) {
39701
- return new Promise((resolve) => {
39702
- resolve(dataset);
39703
- });
39704
- }
39705
- const path = locale ? `datasets/${name}/${locale}` : `datasets/${name}`;
39706
- return httpGet({
39707
- loadingContext,
39708
- errorLevel: "warn",
39709
- errorMessage: `Dataset ${name} is not available`,
39710
- path,
39711
- clientKey
39712
- }).then((datasetResponse) => {
39713
- datasetUtils.setDataset(name, datasetResponse);
39714
- return datasetResponse;
39715
- });
39716
- };
39717
42031
  const validateAccountIdentification = async (context, payoutAccountDetails) => {
39718
42032
  const {
39719
42033
  loadingContext,
@@ -39804,10 +42118,7 @@ const getKycExternalApi = ({
39804
42118
  loadingContext,
39805
42119
  clientKey
39806
42120
  }),
39807
- getDataset: async (name, locale) => getDataset({
39808
- loadingContext,
39809
- clientKey
39810
- }, name, locale),
42121
+ getDataset,
39811
42122
  loadDocumentGuidance: async () => loadDocumentGuidance(loadingContext),
39812
42123
  verifyIdNumber: async (request) => verifyIdNumber({
39813
42124
  loadingContext,
@@ -39833,7 +42144,7 @@ const ConfigurationApiProvider = ({
39833
42144
  isEmbeddedDropin,
39834
42145
  loadingContext
39835
42146
  } = authContext;
39836
- const sdkVersion = "3.22.1";
42147
+ const sdkVersion = "3.23.1";
39837
42148
  useAnalytics({
39838
42149
  onUserEvent,
39839
42150
  legalEntityId: rootLegalEntityId,
@@ -39926,6 +42237,14 @@ const useAllowedLocales = () => {
39926
42237
  }, []);
39927
42238
  return allowedLocales;
39928
42239
  };
42240
+ 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") });
42241
+ const loadLocale = async (locale) => {
42242
+ const importForLocale = localeImports[`./locales/${locale}.json`];
42243
+ if (!importForLocale) {
42244
+ throw new Error(`Locale ${locale} is not supported.`);
42245
+ }
42246
+ return (await importForLocale()).default;
42247
+ };
39929
42248
  const logger = createLogger("useTranslations");
39930
42249
  const useTranslations = ({
39931
42250
  locale,
@@ -39935,9 +42254,6 @@ const useTranslations = ({
39935
42254
  translations: defaultTranslation,
39936
42255
  locale: FALLBACK_LOCALE
39937
42256
  });
39938
- const {
39939
- getDataset: getDataset2
39940
- } = useConfigurationApi();
39941
42257
  useEffect(() => {
39942
42258
  if (!allowedLocales) return;
39943
42259
  const isLocaleAllowed = allowedLocales.includes(locale);
@@ -39955,13 +42271,13 @@ const useTranslations = ({
39955
42271
  });
39956
42272
  return;
39957
42273
  }
39958
- getDataset2(datasetIdentifier.translations, localeToUse).then((dataset) => {
42274
+ loadLocale(localeToUse).then((dataset) => {
39959
42275
  setLoaded({
39960
42276
  translations: dataset,
39961
42277
  locale: localeToUse
39962
42278
  });
39963
42279
  }).catch((err) => logger.error("Error while loading translations", err));
39964
- }, [locale, allowedLocales, loaded.locale, getDataset2]);
42280
+ }, [locale, allowedLocales, loaded.locale]);
39965
42281
  return loaded;
39966
42282
  };
39967
42283
  const I18nProvider = ({