@adyen/kyc-components 3.79.0-beta.9 → 3.80.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-BtDbLa_E.js → AcceptTermsOfServiceComponent-DBSkKRHS.js} +7 -7
  2. package/dist/{AccountSetupRejected-CcEP6pSK.js → AccountSetupRejected-gAGWuJ9N.js} +6 -6
  3. package/dist/{Avatar-CIGV_SS9.js → Avatar-5RObc8Yd.js} +2 -2
  4. package/dist/{BusinessDetailsDropin-DLYZERBF.js → BusinessDetailsDropin-O92NE-y1.js} +132 -144
  5. package/dist/{BusinessFinancingComponent-B0-te_Xu.js → BusinessFinancingComponent-DDKomenp.js} +3 -3
  6. package/dist/{BusinessFinancingDropin-B4_rfH9-.js → BusinessFinancingDropin-Bhg9neRS.js} +135 -97
  7. package/dist/{BusinessFinancingPage-CrrXzA0g.js → BusinessFinancingPage-DyItV5SR.js} +3 -3
  8. package/dist/{BusinessTypeSelectionPage-D8xVIVhb.js → BusinessTypeSelectionPage-DmjbM57I.js} +47 -76
  9. package/dist/{ContractViewer-UYqTJdeu.js → ContractViewer-DBW5C6kA.js} +2 -2
  10. package/dist/{CreateIndividualComponent-XvZnVu7B.js → CreateIndividualComponent-c8yAn2_J.js} +4 -4
  11. package/dist/{CreateTransferInstrumentComponent-BgYVNCFm.js → CreateTransferInstrumentComponent-BF-KFdjU.js} +5 -5
  12. package/dist/{CustomerSupport-CYFiNKxp.js → CustomerSupport-rSYElbVr.js} +10 -10
  13. package/dist/{DebugModal-D3MJ4glT.js → DebugModal-BTr0idCC.js} +12 -226
  14. package/dist/{DecisionMakerDetailsPage-CbEA4IVc.js → DecisionMakerDetailsPage-DQcWSwTb.js} +4 -4
  15. package/dist/DecisionMakers-C2awPhE6.js +478 -0
  16. package/dist/{EmbeddedStatus-90fvG4vd.js → EmbeddedStatus-COKtxNW-.js} +13 -13
  17. package/dist/{FormEndState-n1UQXu_s.js → FormEndState-BmDRa3zJ.js} +4 -3
  18. package/dist/{FormFlow-DJAJpY63.js → FormFlow-CNxGh4Yu.js} +3 -3
  19. package/dist/{IndividualOnfidoDropin-UnR6_lSH.js → IndividualOnfidoDropin-DUzjucM9.js} +217 -188
  20. package/dist/{Introduction-DF3A8V4n.js → Introduction-BEM_wmkj.js} +24 -26
  21. package/dist/{ProviderButton-C0l7gpNQ.js → LandingLayout-DyY0Exht.js} +91 -83
  22. package/dist/{LegalRepresentativeDetailsPage-BVyxsmeu.js → LegalRepresentativeDetailsPage-1tw_BPLr.js} +4 -4
  23. package/dist/{ManageIndividualComponent-CgoC5kz6.js → ManageIndividualComponent-B0y8wd24.js} +6 -6
  24. package/dist/{ManageTermsOfServiceComponent-Csey0WTR.js → ManageTermsOfServiceComponent-DJVDf-iH.js} +4 -4
  25. package/dist/{ManageTransferInstrumentComponent-Cl1QWiGy.js → ManageTransferInstrumentComponent-DF4Q8oEB.js} +6 -6
  26. package/dist/{OnboardingDropinComponent-CMrZ3LMb.js → OnboardingDropinComponent-B0Sj7qf1.js} +366 -208
  27. package/dist/{Review-CzahUVPw.js → Review-C4HOjR6y.js} +11 -11
  28. package/dist/RootBusinessDetailsPage-DeqKfOFX.js +1848 -0
  29. package/dist/{RootIndividualDetailsPage-BWTT7m_R.js → RootIndividualDetailsPage-CKOquQ0-.js} +4 -4
  30. package/dist/{SignPCIComponent-BQNUvb0U.js → SignPCIComponent-Cx8oL8wu.js} +6 -6
  31. package/dist/{SingpassSelection-XgZwkWE1.js → SingpassSelection-BJNZw1u-.js} +11 -11
  32. package/dist/{SoleProprietorshipPage-By5_23ht.js → SoleProprietorshipPage-Dtw3XHVJ.js} +4 -4
  33. package/dist/{SourceOfFundsPage-CDGfbVu5.js → SourceOfFundsPage-gPmK4QX6.js} +28 -20
  34. package/dist/{StoreProvider-D6PzfyGo.js → StoreProvider-DhQ4sdLg.js} +5809 -5424
  35. package/dist/{TaskItemStatus-FSfcOG5a.js → TaskItemStatus-Cxcag2AH.js} +23 -23
  36. package/dist/TaskStatusIndicator-B5fp8LzR.js +69 -0
  37. package/dist/{TaxReportingDropin-B7TEo7Kn.js → TaxReportingDropin-CbDYoO31.js} +8 -7
  38. package/dist/{TileGroup-rR4DgKfb.js → TileGroup-BkLtnLiA.js} +2 -2
  39. package/dist/{TrustDetailsPage-DPBPQVSn.js → TrustDetailsPage-DktRQRum.js} +38 -14
  40. package/dist/{TrustMemberCompanyPage-B_TShwlL.js → TrustMemberCompanyPage-CLTOpWzU.js} +5 -5
  41. package/dist/{TrustMemberIndividualPage-BgQBZEcL.js → TrustMemberIndividualPage-wPh86-GQ.js} +4 -4
  42. package/dist/{UnincorporatedPartnershipIndividualPage-DHcH33Db.js → UnincorporatedPartnershipIndividualPage-B-2i68Nd.js} +4 -4
  43. package/dist/{UnincorporatedPartnershipMemberCompanyPage-BTklC9NY.js → UnincorporatedPartnershipMemberCompanyPage-DWLczj6F.js} +4 -4
  44. package/dist/{VerificationErrorAlert-BrW_bMo4.js → VerificationErrorAlert-AbvM4lbK.js} +2 -2
  45. package/dist/{ViewVerificationStatusComponent-4QUIn73E.js → ViewVerificationStatusComponent-vVZeXYDs.js} +14 -12
  46. package/dist/adyen-business-financing.js +8 -12
  47. package/dist/adyen-individual.js +6 -4
  48. package/dist/adyen-kyc-components.js +143 -124
  49. package/dist/adyen-manage-individual.js +2 -2
  50. package/dist/adyen-manage-terms-of-service.js +3 -3
  51. package/dist/adyen-manage-transfer-instruments.js +3 -3
  52. package/dist/adyen-onboarding.js +14 -6
  53. package/dist/adyen-terms-of-service.js +18 -6
  54. package/dist/adyen-transfer-instrument.js +10 -6
  55. package/dist/adyen-verification-status.js +2 -2
  56. package/dist/bag-DpxmyXfR.js +14 -0
  57. package/dist/business-lines-DboUCbXw.js +135 -0
  58. package/dist/decision-makers-group-CgddXgrx.js +1944 -0
  59. package/dist/en-US-CQ3angjM.js +22 -0
  60. package/dist/{getFieldsWithExistingData-nHjOwfDp.js → getFieldsWithExistingData-BS9W6RQp.js} +2 -2
  61. package/dist/{hasDataChanged-C8mesP2r.js → hasDataChanged-DK74H0sZ.js} +2 -2
  62. package/dist/{localizeDateString-BUxfnxIU.js → localizeDateString-C34eXZqY.js} +2 -2
  63. package/dist/mail-Z_IE_hkw.js +14 -0
  64. package/dist/{mapFinancialReportsToFinancialInformation-CYeTa8E1.js → mapFinancialReportsToFinancialInformation-DoJu-RRw.js} +2 -2
  65. package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
  66. package/dist/{resolveEnvironment-sH8SYGuY.js → resolveEnvironment-rJv_NJF_.js} +3 -3
  67. package/dist/{rules-CbVhdTWA.js → rules-OP83mdq4.js} +13 -13
  68. package/dist/solution-payments-DTAuLSWF.js +14 -0
  69. package/dist/style.css +218 -181
  70. package/dist/styles-CLV89_hH.js +218 -181
  71. package/dist/terminal-1-ewywjFJI.js +18 -0
  72. package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +1 -2
  73. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +4 -8
  74. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +2 -3
  75. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +25 -24
  76. package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +10 -10
  77. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -2
  78. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +0 -306
  79. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
  80. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +9 -0
  81. package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +10 -0
  82. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
  83. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -2
  84. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +5 -3
  85. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -2
  86. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +14 -0
  87. package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +3 -0
  88. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +4 -0
  89. package/dist/types/components/Business/forms/forms.types.d.ts +14 -0
  90. package/dist/types/components/Business/forms/rules.d.ts +26 -8
  91. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -1
  92. package/dist/types/components/Business/mapping/businessDetails/mapOrganizationTypeToCompanyType.d.ts +1 -1
  93. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -3
  94. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -3
  95. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +18 -0
  96. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +5 -0
  97. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +2 -0
  98. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +21 -0
  99. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/validate.d.ts +22 -0
  100. package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -1
  101. package/dist/types/components/Business/utils/companyUtil.d.ts +3 -3
  102. package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +5 -0
  103. package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +5 -0
  104. package/dist/types/components/BusinessLines/tasks/BusinessLinesGettingStarted/BusinessLinesGettingStarted.d.ts +6 -0
  105. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
  106. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1 -306
  107. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +22 -19
  108. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +3 -2
  109. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
  110. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +3 -3
  111. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +5 -5
  112. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
  113. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +1 -1
  114. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +6 -0
  115. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +2 -2
  116. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -2
  117. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
  118. package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +8 -8
  119. package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +18 -18
  120. package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
  121. package/dist/types/components/Individual/forms/Individual/types.d.ts +2 -2
  122. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +3 -2
  123. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
  124. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +2 -2
  125. package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +4 -4
  126. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +3 -1
  127. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -2
  128. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +2 -2
  129. package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
  130. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +3 -3
  131. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +1 -1
  132. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +2 -0
  133. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +7 -0
  134. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
  135. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
  136. package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +4 -4
  137. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
  138. package/dist/types/components/Shared/Introduction/Introduction.d.ts +2 -2
  139. package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +2 -2
  140. package/dist/types/components/Shared/Introduction/constants.d.ts +3 -3
  141. package/dist/types/components/Shared/Introduction/copy.d.ts +6 -5
  142. package/dist/types/components/Shared/Introduction/types.d.ts +11 -11
  143. package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
  144. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  145. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
  146. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +5 -7
  147. package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
  148. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  149. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  150. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
  151. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
  152. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  153. package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
  154. package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
  155. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  156. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +27 -27
  157. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
  158. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
  159. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
  160. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
  161. package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
  162. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  163. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
  164. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  165. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  166. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  167. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  168. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  169. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -3
  170. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +3 -7
  171. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  172. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
  173. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  174. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
  175. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +11 -10
  176. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -0
  177. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
  178. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -4
  179. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -2
  180. package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
  181. package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
  182. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
  183. package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -2
  184. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +3 -3
  185. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -1
  186. package/dist/types/components/Trust/tasks/TrustMembers/CompanyTrustMemberTaskItem.d.ts +1 -1
  187. package/dist/types/components/Trust/tasks/TrustMembers/ExemptSettlorTaskItem.d.ts +1 -1
  188. package/dist/types/components/Trust/tasks/TrustMembers/RegularTrustMemberTaskItem.d.ts +1 -1
  189. package/dist/types/components/Trust/tasks/TrustMembers/RootTrusteeTaskItem.d.ts +1 -1
  190. package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +6 -6
  191. package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +7 -6
  192. package/dist/types/components/Trust/utils/trustMemberRequirements.d.ts +1 -1
  193. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +6 -6
  194. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +5 -5
  195. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
  196. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +2 -2
  197. package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +16 -0
  198. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +14 -0
  199. package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
  200. package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +3 -2
  201. package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
  202. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
  203. package/dist/types/constants/keys.d.ts +2 -0
  204. package/dist/types/context/ExperimentContext/types.d.ts +49 -37
  205. package/dist/types/context/SettingsContext/types.d.ts +24 -24
  206. package/dist/types/core/models/api/company-types-value.d.ts +12 -11
  207. package/dist/types/core/models/api/decision-maker-type.d.ts +7 -6
  208. package/dist/types/core/models/api/entity-type.d.ts +5 -4
  209. package/dist/types/core/models/api/get-scenarios.d.ts +18 -18
  210. package/dist/types/core/models/api/individual.d.ts +1 -0
  211. package/dist/types/core/models/api/legal-arrangement.d.ts +2 -2
  212. package/dist/types/core/models/api/legal-entity-association.d.ts +2 -2
  213. package/dist/types/core/models/api/legal-entity-type.d.ts +8 -7
  214. package/dist/types/core/models/api/trust-member-type.d.ts +8 -8
  215. package/dist/types/core/models/api/trusted-fields-provider.d.ts +5 -4
  216. package/dist/types/core/models/api/unincorporated-partnership.d.ts +6 -6
  217. package/dist/types/core/models/api/verification-error.d.ts +8 -7
  218. package/dist/types/core/models/api/verification-status.d.ts +7 -6
  219. package/dist/types/core/models/api/view-verification-status.d.ts +8 -7
  220. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
  221. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
  222. package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
  223. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
  224. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
  225. package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
  226. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
  227. package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
  228. package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +4 -4
  229. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +7 -6
  230. package/dist/types/hooks/useBusinessSetup.d.ts +11 -10
  231. package/dist/types/hooks/useDataMissingRemediations.d.ts +2 -2
  232. package/dist/types/hooks/useFormComposer.d.ts +1 -1
  233. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -3
  234. package/dist/types/hooks/useLegalEntityType.d.ts +1 -1
  235. package/dist/types/hooks/useMultiForm/types.d.ts +38 -36
  236. package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
  237. package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
  238. package/dist/types/language/Language.d.ts +1 -0
  239. package/dist/types/language/utils.d.ts +11 -1
  240. package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
  241. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
  242. package/dist/types/stores/globalStore/get-task-status.d.ts +2 -2
  243. package/dist/types/stores/globalStore/globalStore.d.ts +7 -7
  244. package/dist/types/stores/globalStore/taskStatus.d.ts +17 -16
  245. package/dist/types/stores/globalStore/taskTypes.d.ts +37 -35
  246. package/dist/types/types/datasets/country-code.d.ts +249 -249
  247. package/dist/types/types/datasets/currency.d.ts +25 -25
  248. package/dist/types/types/datasets/province-code.d.ts +46 -46
  249. package/dist/types/types/datasets/state-code.d.ts +84 -84
  250. package/dist/types/types/errors/entity-problems.d.ts +3 -4
  251. package/dist/types/types/form-rules.d.ts +2 -2
  252. package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
  253. package/dist/types/utils/birthDateUtils.d.ts +3 -3
  254. package/dist/types/utils/decisionMaker.d.ts +4 -3
  255. package/dist/types/utils/decisionMakerRoles.d.ts +4 -3
  256. package/dist/types/utils/entityAssociationUtil.d.ts +4 -5
  257. package/dist/types/utils/entityStatusUtil.d.ts +3 -3
  258. package/dist/types/utils/formUtils.d.ts +2 -2
  259. package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
  260. package/dist/types/utils/getName.d.ts +2 -2
  261. package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
  262. package/dist/types/utils/regex/patternValidators.d.ts +1 -0
  263. package/dist/types/utils/roleMetadata.d.ts +3 -3
  264. package/dist/types/utils/translation.d.ts +40 -0
  265. package/dist/{useMultiForm-DEOL8O6Q.js → useMultiForm-ChxUZ4e7.js} +10 -5
  266. package/dist/{useOnboardingStatus-BSZeiaAC.js → useOnboardingStatus-1BQlEPEi.js} +2 -2
  267. package/dist/{useTermsOfServiceStatus-B9zuE6yV.js → useTermsOfServiceStatus-BaVCmUdo.js} +2 -2
  268. package/dist/{useUpdateLegalEntity-Bs2tKEPC.js → useUpdateLegalEntity-LE_Kt3am.js} +2 -2
  269. package/dist/{utils-WopSF2zY.js → utils-DmcbDJEd.js} +17 -17
  270. package/dist/{validate-D40HSgPc.js → validate-B2VmmEPC.js} +2 -2
  271. package/dist/{validate-D2R8_9ew.js → validate-D66zPhDG.js} +2 -2
  272. package/dist/view-verification-status-VFcBydkR.js +21 -0
  273. package/package.json +5 -30
  274. package/dist/DecisionMakers-DCU9mFe8.js +0 -217
  275. package/dist/LandingLayout-DIrahoMq.js +0 -139
  276. package/dist/ManagePCIComponent-sKP7Mgeo.js +0 -33
  277. package/dist/RootBusinessDetailsPage-CA5r2xq3.js +0 -42
  278. package/dist/_plugin-vue_export-helper-CgYpM5kA.js +0 -19
  279. package/dist/adyen-manage-pci.js +0 -48
  280. package/dist/adyen-sign-pci.js +0 -62
  281. package/dist/adyen-terms-of-service.vue_vue_type_script_lang-BD4hndWg.js +0 -42
  282. package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-BE-ro1iH.js +0 -53
  283. package/dist/css-Di2ysu56.js +0 -24
  284. package/dist/json-x8T3RzUR.js +0 -31
  285. package/dist/plaintext-D3Ww_aF9.js +0 -17
  286. package/dist/preact/adyen-individual.js +0 -15
  287. package/dist/preact/adyen-manage-individual.js +0 -15
  288. package/dist/preact/adyen-terms-of-service.js +0 -16
  289. package/dist/preact/adyen-transfer-instrument.js +0 -16
  290. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationDisclaimer/IdVerificationDisclaimer.d.ts +0 -1
  291. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationHeader/IdVerificationHeader.d.ts +0 -1
  292. package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +0 -3
  293. package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +0 -3
  294. package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +0 -12
  295. package/dist/types/embeds/manage-pci/adyen-manage-pci.d.ts +0 -1
  296. package/dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts +0 -39
  297. package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -15
  298. package/dist/types/embeds/sign-pci/adyen-sign-pci.d.ts +0 -1
  299. package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +0 -43
  300. package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +0 -3
  301. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +0 -3
  302. package/dist/useSalesChannelsSettings-CuQ0ULoa.js +0 -51
  303. package/dist/view-verification-status-DTkA8PtO.js +0 -20
  304. package/dist/vue/adyen-individual.js +0 -53
  305. package/dist/vue/adyen-manage-individual.js +0 -56
  306. package/dist/vue/adyen-terms-of-service.js +0 -28
  307. package/dist/vue/adyen-transfer-instrument.js +0 -30
  308. package/dist/yaml-BMoCIv2z.js +0 -22
@@ -2,24 +2,24 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "916d478e-311f-4b45-a5ce-f71f4e997cdb", e._sentryDebugIdIdentifier = "sentry-dbid-916d478e-311f-4b45-a5ce-f71f4e997cdb");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "568f38d4-4370-4d6b-8541-c1ba74d377db", e._sentryDebugIdIdentifier = "sentry-dbid-568f38d4-4370-4d6b-8541-c1ba74d377db");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useMemo, useState, useEffect, useCallback } from "preact/hooks";
12
- import { p as useApiContext, bh as useMutation, bj as httpPost, bW as matchesRegex, bX as trimValWithOneSpace, bY as NO_ALPHABET_REGEX, bZ as EMOJI_REGEX, b_ as hasRepeatedCharacters, b$ as isInvalidName, c0 as INDIVIDUAL_VALID_CHAR_REGEX, c1 as getFormattingRegEx, c2 as SPECIAL_CHARS, c3 as standardKatakanaValidator, c4 as standardKanjiValidator, as as resolveFieldMetadata, ap as CountryCodes, c5 as getSSNType, aq as isEmpty, c6 as defaultFieldMetadata, c7 as defaultFieldConfig, c8 as defaultFieldMetadata$1, c9 as fieldConfig, W as TaskTypes, ca as taxInformationDefaultFieldMetadata, y as LegalEntityType, cb as taxInformationDefaultFieldConfig, cc as getAgeToday, cd as euCountries, ce as getIdDocument, cf as getDocument, cg as mapExistingFile, ch as getPageName, ci as getLocalizedIdDocumentTypeOptions, cj as getPage, ck as createDocumentRequest, bz as formatObject, cl as individualApiKeyMapping, bm as individualComponentsKeyMapping, by as reverseMapping, cm as getNomineeFromAssociation, cn as drop, X as createLogger, P as useAccountHolder, b as useI18nContext, a0 as useAnalyticsContext, a6 as useToastContext, a7 as useExperimentsContext, J as useSettingsContext, co as documentApiUtils, cp as useProviderStatus, g as getLegalEntityCountry, bO as getAssociatedLeAnalyticsPayload, cq as addressValidators, cr as getAsyncIdNumberValidationRule, cs as getAsyncPhoneValidationRules, ct as addressFormatters, cu as useScenarios, cv as setHasMotionCaptureScenario, cw as useScenarioConfiguration, cx as getPropsFromConfigurations, cy as individualForms, cz as showIndividualMotionCapture, bP as getRequiredForms, bQ as addValidityToForms, cA as getAllowedDecisionMakerRoles, b2 as datasetUtilities, bR as useFormComposer, bS as trackNavigation, cB as Individual, cC as composePerScenarioFormConfigurations, cD as omitObscuredFieldsIfUnchanged, cE as filterOutUnwantedAssociationsIfRootLE, bT as isValidationError, bU as processValidationErrors, bV as isMaintenanceModeError, bc as cloneObject, cF as mapAddressLabels, cG as individualDocumentForms, cH as individualDocumentMapping, cI as individualObscuredFields, cJ as mergeAttachments, cK as getFileExtention, al as getOwnEntityAssociations, cL as hasNomineesChanged, cM as attachNomineeToRole, cN as idVerificationProviderId, cO as doArraysMatch, C as Typography, _ as Button, aA as Field, cP as DecisionMakerType, cQ as createFormRules, cR as getAvailableDecisionMakerRoleTypes, cS as allowedCountriesForNominee, bK as getAddressSchemaForCountry, bL as COUNTRIES_WITH_STATES_DATASET, cT as Scenarios, cU as isLowRiskCountry, bt as Select, cV as isTruthyValidator, cW as licenseCardNumberDefaultMetadata, cX as licenseCardNumberDefaultConfig, ar as mergeFieldMetadataIntoProps, az as createFormUtils, bJ as useFormContext, aw as getFieldProps, cY as idNumberFields, cZ as IdentityNumber, c_ as additionallIdNumberOptions, c$ as MaskedInput, bI as InputDate, d0 as formatDateObj, d1 as DriversLicense, d2 as addressFields, u as useAllowedCountries, K as SettingNames, d3 as getDefaultTaxIdNumberType, F as FormHeader, ay as ErrorPanel, aG as CountryField, bM as Address, bN as getAddressSchemaLabelsByCountry, bC as Link, ba as Confirm, d4 as getAgeRangeForLegalRepresentative, d5 as IndividualIdNumberTypeSelector, d6 as TaxInformationField, d7 as PatriotActDisclosure, d8 as isLegalRepresentativeNeeded, ax as nameFields, d9 as decisionMakerRoleFields, da as nomineeFields, db as contactDetailFields, B as Alert, aW as ContextGuidance, b1 as TrustedFieldsProvider, dc as DecisionMakerRole, dd as NomineeDecisionMakerRole, de as LocalizedNameFields, bD as InputText, df as ContactDetails, dg as keysOf, b0 as objectsDeepEqual, dh as isEmpty$1, di as RadioWithLabel, dj as listToRecord, b4 as Modal, bo as Svg, dk as pick, dl as IdVerification, b9 as Spacer, $ as IconButton, c as useDataset, d as datasetIdentifier, L as Loader, dm as isPersonUnderAge, dn as IdDocumentManualUpload, Z as useTranslation, aU as Trans, dp as idDocumentUploadFields, dq as useFormRouterContext, dr as getFormProps, ds as useCapabilities, dt as hasMotionCaptureScenario, du as setShowIndividualMotionCapture, dv as shouldShowMotionCapture, dw as MemoizedProofOfRelationship, dx as MemoizedDocumentUpload, dy as MemoizedProofOfResidencyUpload, dz as individualOnfidoApiKeyMapping, dA as individualOnfidoBaseMapping, bp as useQueryClient, dB as individualOnfidoDocumentMapping, dC as individualOnfidoObscuredFields } from "./StoreProvider-D6PzfyGo.js";
13
- import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-Bs2tKEPC.js";
14
- import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-D2R8_9ew.js";
15
- import { F as FormContextProvider, a as FormFlow } from "./FormFlow-DJAJpY63.js";
16
- import { u as useSingpassMyInfoLogin, P as ProviderButton } from "./ProviderButton-C0l7gpNQ.js";
17
- import { u as useMultiForm } from "./useMultiForm-DEOL8O6Q.js";
18
- import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-nHjOwfDp.js";
19
- import { l as localizeDateString } from "./localizeDateString-BUxfnxIU.js";
20
- import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-CbVhdTWA.js";
12
+ import { a as useApiContext, bp as useMutation, t as httpPost, bX as matchesRegex, bY as trimValWithOneSpace, bZ as NO_ALPHABET_REGEX, b_ as EMOJI_REGEX, b$ as hasRepeatedCharacters, c0 as isInvalidName, c1 as INDIVIDUAL_VALID_CHAR_REGEX, c2 as getFormattingRegEx, c3 as SPECIAL_CHARS, c4 as standardKatakanaValidator, c5 as standardKanjiValidator, av as resolveFieldMetadata, as as CountryCodes, c6 as getSSNType, at as isEmpty, c7 as defaultFieldMetadata, c8 as defaultFieldConfig, c9 as defaultFieldMetadata$1, ca as fieldConfig, $ as TaskTypes, cb as taxInformationDefaultFieldMetadata, O as LegalEntityTypes, cc as taxInformationDefaultFieldConfig, cd as getAgeToday, ce as euCountries, cf as getIdDocument, cg as getDocument, ch as mapExistingFile, ci as getPageName, cj as getLocalizedIdDocumentTypeOptions, ck as getPage, cl as createDocumentRequest, bA as formatObject, cm as individualApiKeyMapping, b7 as individualComponentsKeyMapping, bz as reverseMapping, cn as getNomineeFromAssociation, co as drop, a0 as createLogger, X as useAccountHolder, u as useI18nContext, a3 as useAnalyticsContext, a9 as useToastContext, aa as useExperimentsContext, v as useSettingsContext, cp as documentApiUtils, cq as useProviderStatus, g as getLegalEntityCountry, bP as getAssociatedLeAnalyticsPayload, cr as addressValidators, cs as getAsyncIdNumberValidationRule, ct as getAsyncPhoneValidationRules, cu as addressFormatters, cv as useScenarios, cw as setHasMotionCaptureScenario, cx as useScenarioConfiguration, cy as getPropsFromConfigurations, cz as individualForms, cA as showIndividualMotionCapture, bQ as getRequiredForms, bR as addValidityToForms, cB as getAllowedDecisionMakerRoles, ba as datasetUtilities, bS as useFormComposer, bT as trackNavigation, cC as Individual, cD as composePerScenarioFormConfigurations, cE as omitObscuredFieldsIfUnchanged, cF as filterOutUnwantedAssociationsIfRootLE, bU as isValidationError, bV as processValidationErrors, bW as isMaintenanceModeError, bk as cloneObject, cG as mapAddressLabels, cH as individualDocumentForms, cI as individualDocumentMapping, cJ as individualObscuredFields, cK as mergeAttachments, cL as getFileExtention, ao as getOwnEntityAssociations, cM as hasNomineesChanged, cN as attachNomineeToRole, cO as idVerificationProviderId, cP as doArraysMatch, N as Typography, G as Button, aD as Field, cQ as DecisionMakerTypes, cR as createFormRules, cS as getAvailableDecisionMakerRoleTypes, cT as allowedCountriesForNominee, bL as getAddressSchemaForCountry, bM as COUNTRIES_WITH_STATES_DATASET, cU as Scenarios, cV as isLowRiskCountry, bu as Select, cW as isTruthyValidator, cX as licenseCardNumberDefaultMetadata, cY as licenseCardNumberDefaultConfig, au as mergeFieldMetadataIntoProps, c as useTranslation, aC as createFormUtils, bK as useFormContext, az as getFieldProps, cZ as idNumberFields, c_ as IdentityNumber, c$ as additionallIdNumberOptions, d0 as MaskedInput, bJ as InputDate, d1 as formatDateObj, d2 as DriversLicense, d3 as addressFields, b as useAllowedCountries, w as SettingNames, F as FormHeader, aB as ErrorPanel, aJ as CountryField, bN as Address, bO as getAddressSchemaLabelsByCountry, bD as Link, bi as Confirm, d4 as getAgeRangeForLegalRepresentative, d5 as IndividualIdNumberTypeSelector, d6 as TaxInformationField, bE as InputText, d7 as PatriotActDisclosure, d8 as isLegalRepresentativeNeeded, aA as nameFields, d9 as decisionMakerRoleFields, da as nomineeFields, db as contactDetailFields, K as Alert, aZ as ContextGuidance, b4 as TrustedFieldsProviders, dc as DecisionMakerRole, dd as NomineeDecisionMakerRole, de as LocalizedNameFields, df as ContactDetails, dg as keysOf, b3 as objectsDeepEqual, dh as isEmpty$1, di as RadioWithLabel, dj as listToRecord, bc as Modal, dk as pick, dl as IdVerification, bh as Spacer, a2 as IconButton, e as useDataset, f as datasetIdentifier, L as Loader, H as Svg, dm as isPersonUnderAge, dn as IdDocumentManualUpload, M as translateStringOrObject, aX as Trans, dp as idDocumentUploadFields, dq as useFormRouterContext, dr as getFormProps, ds as useCapabilities, dt as hasMotionCaptureScenario, du as setShowIndividualMotionCapture, dv as shouldShowMotionCapture, dw as MemoizedProofOfRelationship, dx as MemoizedDocumentUpload, dy as MemoizedProofOfResidencyUpload, dz as individualOnfidoApiKeyMapping, dA as individualOnfidoBaseMapping, br as useQueryClient, dB as individualOnfidoDocumentMapping, dC as individualOnfidoObscuredFields } from "./StoreProvider-DhQ4sdLg.js";
13
+ import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-LE_Kt3am.js";
14
+ import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-D66zPhDG.js";
15
+ import { F as FormContextProvider, a as FormFlow } from "./FormFlow-CNxGh4Yu.js";
16
+ import { u as useSingpassMyInfoLogin, L as LandingLayout } from "./LandingLayout-DyY0Exht.js";
17
+ import { u as useMultiForm } from "./useMultiForm-ChxUZ4e7.js";
18
+ import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-BS9W6RQp.js";
19
+ import { l as localizeDateString } from "./localizeDateString-C34eXZqY.js";
20
+ import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-OP83mdq4.js";
21
21
  import { signal, computed } from "@preact/signals";
22
- import { T as TileGroup } from "./TileGroup-rR4DgKfb.js";
22
+ import { T as TileGroup } from "./TileGroup-BkLtnLiA.js";
23
23
  const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
24
24
  return await httpPost(
25
25
  {
@@ -184,7 +184,7 @@ const personalDetailsValidators = ({
184
184
  taxInformationDefaultFieldConfig[country],
185
185
  {
186
186
  taxIdNumberType,
187
- companyType: LegalEntityType.INDIVIDUAL
187
+ companyType: LegalEntityTypes.INDIVIDUAL
188
188
  },
189
189
  taxInformationDefaultFieldMetadata
190
190
  )?.validators,
@@ -374,7 +374,7 @@ const mapIndividualToLegalEntity = (data) => {
374
374
  const requestObj = {
375
375
  ...formatObject(data, individualApiKeyMapping)
376
376
  };
377
- requestObj.type = LegalEntityType.INDIVIDUAL;
377
+ requestObj.type = LegalEntityTypes.INDIVIDUAL;
378
378
  const { personalDetails } = data;
379
379
  if (!personalDetails) return requestObj;
380
380
  requestObj.individual.identificationData = adjustIdentificationData(
@@ -806,7 +806,7 @@ function IndividualDropin({
806
806
  useEffect(() => {
807
807
  setCountry(data?.personalDetails?.residencyCountry ?? parentCountry);
808
808
  }, [data?.personalDetails?.residencyCountry, parentCountry]);
809
- const { data: scenarios } = useScenarios(country, LegalEntityType.INDIVIDUAL);
809
+ const { data: scenarios } = useScenarios(country, LegalEntityTypes.INDIVIDUAL);
810
810
  useEffect(() => {
811
811
  if (!scenarios) return;
812
812
  setHasMotionCaptureScenario(scenarios);
@@ -814,7 +814,7 @@ function IndividualDropin({
814
814
  }, [scenarios]);
815
815
  const { fieldConfigurations } = useScenarioConfiguration({
816
816
  parseConfiguration: parseConfiguration$1,
817
- legalEntityType: LegalEntityType.INDIVIDUAL,
817
+ legalEntityType: LegalEntityTypes.INDIVIDUAL,
818
818
  setLoadingStatus,
819
819
  country
820
820
  });
@@ -902,7 +902,7 @@ function IndividualDropin({
902
902
  }).catch(() => {
903
903
  showToast({ label: i18n.get("failedToFetchRelevantDocuments"), variant: "error" });
904
904
  });
905
- }, []);
905
+ }, [legalEntityResponse]);
906
906
  const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
907
907
  const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
908
908
  const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions(country);
@@ -1317,7 +1317,7 @@ const additionalPersonalDetailsValidators = ({
1317
1317
  taxInformationDefaultFieldConfig[country],
1318
1318
  {
1319
1319
  taxIdNumberType,
1320
- companyType: LegalEntityType.INDIVIDUAL
1320
+ companyType: LegalEntityTypes.INDIVIDUAL
1321
1321
  },
1322
1322
  taxInformationDefaultFieldMetadata
1323
1323
  )?.validators,
@@ -1363,15 +1363,14 @@ const basicDetailsValidators = ({
1363
1363
  });
1364
1364
  const guidanceQuestion = "adyen-kyc-guidance-question";
1365
1365
  const options = "adyen-kyc-options";
1366
- const styles$6 = {
1366
+ const styles$4 = {
1367
1367
  guidanceQuestion,
1368
1368
  options
1369
1369
  };
1370
- var GuidanceQuestionValues = /* @__PURE__ */ ((GuidanceQuestionValues2) => {
1371
- GuidanceQuestionValues2["YES"] = "Yes";
1372
- GuidanceQuestionValues2["NO"] = "No";
1373
- return GuidanceQuestionValues2;
1374
- })(GuidanceQuestionValues || {});
1370
+ const GuidanceQuestionValues = {
1371
+ YES: "Yes",
1372
+ NO: "No"
1373
+ };
1375
1374
  const GuidanceQuestion = (props) => {
1376
1375
  const {
1377
1376
  descriptionLinkText,
@@ -1397,10 +1396,10 @@ const GuidanceQuestion = (props) => {
1397
1396
  };
1398
1397
  const yesTileLabel = yesLabel ?? i18n.get("yes");
1399
1398
  const noTileLabel = noLabel ?? i18n.get("no");
1400
- return /* @__PURE__ */ jsxs("div", { className: styles$6.guidanceQuestion, children: [
1399
+ return /* @__PURE__ */ jsxs("div", { className: styles$4.guidanceQuestion, children: [
1401
1400
  /* @__PURE__ */ jsx(Typography, { variant: "body", el: "p", children: question }),
1402
1401
  descriptionLinkText && onDescriptionLinkClick && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: onDescriptionLinkClick, children: descriptionLinkText }),
1403
- /* @__PURE__ */ jsx(Field, { name, className: styles$6.options, children: () => /* @__PURE__ */ jsx(
1402
+ /* @__PURE__ */ jsx(Field, { name, className: styles$4.options, children: () => /* @__PURE__ */ jsx(
1404
1403
  TileGroup,
1405
1404
  {
1406
1405
  allowMultiple: false,
@@ -1411,16 +1410,8 @@ const GuidanceQuestion = (props) => {
1411
1410
  onChange: handleChange,
1412
1411
  selected: value || "",
1413
1412
  tiles: [
1414
- {
1415
- label: yesTileLabel,
1416
- value: "Yes"
1417
- /* YES */
1418
- },
1419
- {
1420
- label: noTileLabel,
1421
- value: "No"
1422
- /* NO */
1423
- }
1413
+ { label: yesTileLabel, value: GuidanceQuestionValues.YES },
1414
+ { label: noTileLabel, value: GuidanceQuestionValues.NO }
1424
1415
  ]
1425
1416
  }
1426
1417
  ) })
@@ -1438,19 +1429,19 @@ const calculateRoles = (data) => {
1438
1429
  const roleMappings = [
1439
1430
  {
1440
1431
  isApplicable: data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES,
1441
- role: DecisionMakerType.SIGNATORY
1432
+ role: DecisionMakerTypes.SIGNATORY
1442
1433
  },
1443
1434
  {
1444
1435
  isApplicable: data?.uboQuestionnaire?.isOwner === GuidanceQuestionValues.YES,
1445
- role: DecisionMakerType.OWNER
1436
+ role: DecisionMakerTypes.OWNER
1446
1437
  },
1447
1438
  {
1448
1439
  isApplicable: data?.uboQuestionnaire?.isControllingPerson === GuidanceQuestionValues.YES,
1449
- role: DecisionMakerType.CONTROLLING_PERSON
1440
+ role: DecisionMakerTypes.CONTROLLING_PERSON
1450
1441
  },
1451
1442
  {
1452
1443
  isApplicable: data?.uboQuestionnaire?.isDirector === GuidanceQuestionValues.YES,
1453
- role: DecisionMakerType.DIRECTOR
1444
+ role: DecisionMakerTypes.DIRECTOR
1454
1445
  }
1455
1446
  ];
1456
1447
  return roleMappings.filter(({ isApplicable }) => isApplicable).map(({ role }) => role);
@@ -1490,8 +1481,8 @@ const TAX_ID_REQUIRED_COUNTRIES = [
1490
1481
  CountryCodes.France
1491
1482
  ];
1492
1483
  const DECISION_MAKER_TYPES_WITH_JOBTITLE = [
1493
- DecisionMakerType.SIGNATORY,
1494
- DecisionMakerType.CONTROLLING_PERSON
1484
+ DecisionMakerTypes.SIGNATORY,
1485
+ DecisionMakerTypes.CONTROLLING_PERSON
1495
1486
  ];
1496
1487
  const ID_MISSING_DATA_ERROR_CODE = "2_8071";
1497
1488
  const individualOnfidoRules = ({
@@ -1513,10 +1504,10 @@ const individualOnfidoRules = ({
1513
1504
  if (!data.basicDetails?.role) {
1514
1505
  return REQUIRED;
1515
1506
  }
1516
- if (data.basicDetails?.role?.some((role) => role !== DecisionMakerType.DIRECTOR)) {
1507
+ if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) {
1517
1508
  return REQUIRED;
1518
1509
  }
1519
- if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerType.DIRECTOR)) {
1510
+ if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) {
1520
1511
  return REQUIRED;
1521
1512
  }
1522
1513
  },
@@ -1527,13 +1518,13 @@ const individualOnfidoRules = ({
1527
1518
  if (!data.basicDetails?.role) {
1528
1519
  return REQUIRED;
1529
1520
  }
1530
- if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerType.SIGNATORY)) {
1521
+ if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) {
1531
1522
  return void 0;
1532
1523
  }
1533
- if (data.basicDetails?.role?.some((role) => role !== DecisionMakerType.DIRECTOR)) {
1524
+ if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) {
1534
1525
  return REQUIRED;
1535
1526
  }
1536
- if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerType.DIRECTOR)) {
1527
+ if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) {
1537
1528
  return REQUIRED;
1538
1529
  }
1539
1530
  },
@@ -1546,7 +1537,7 @@ const individualOnfidoRules = ({
1546
1537
  if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && matchingScenario?.includes(Scenarios.L_TAXINFO)) {
1547
1538
  return void 0;
1548
1539
  }
1549
- if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerType.SIGNATORY)) {
1540
+ if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) {
1550
1541
  return void 0;
1551
1542
  }
1552
1543
  if (ID_NUMBER_EXEMPT_COUNTRIES.includes(country)) {
@@ -1567,6 +1558,9 @@ const individualOnfidoRules = ({
1567
1558
  if (data.proofOfResidency?.proofOfResidency?.length) {
1568
1559
  return REQUIRED;
1569
1560
  }
1561
+ if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
1562
+ return void 0;
1563
+ }
1570
1564
  const isInstantFlow = data?.idVerificationMethod?.idVerificationMethod === "instantVerification";
1571
1565
  if (!isInstantFlow) {
1572
1566
  return void 0;
@@ -1587,9 +1581,15 @@ const individualOnfidoRules = ({
1587
1581
  return REQUIRED;
1588
1582
  }
1589
1583
  },
1584
+ isIdVerificationMethodRequired: () => {
1585
+ if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
1586
+ return void 0;
1587
+ }
1588
+ return REQUIRED;
1589
+ },
1590
1590
  contactsIfRequiredForRole: () => {
1591
1591
  if (taskType === TaskTypes.DECISION_MAKER) {
1592
- if (data.basicDetails?.role?.includes(DecisionMakerType.SIGNATORY)) {
1592
+ if (data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY)) {
1593
1593
  return REQUIRED;
1594
1594
  }
1595
1595
  return;
@@ -1605,7 +1605,15 @@ const individualOnfidoRules = ({
1605
1605
  return REQUIRED;
1606
1606
  }
1607
1607
  },
1608
+ isPlaceOfBirthRequired: () => {
1609
+ if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
1610
+ return REQUIRED;
1611
+ }
1612
+ },
1608
1613
  nationalityIfRequiredForRole: () => {
1614
+ if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
1615
+ return REQUIRED;
1616
+ }
1609
1617
  const enableNationalitySGHK = isExperimentEnabled("EnableNationalitySGHK");
1610
1618
  const rootLegalEntityCountry = rootLegalEntity?.organization?.registeredAddress.country;
1611
1619
  if (enableNationalitySGHK && rootLegalEntityCountry && NATIONALITY_REQUIRED_FOR_COUNTRIES.includes(rootLegalEntityCountry)) {
@@ -1659,12 +1667,12 @@ const individualOnfidoRules = ({
1659
1667
  return addressSchema.includes("stateOrProvince") && COUNTRIES_WITH_STATES_DATASET.includes(data?.additionalPersonalDetails?.country ?? country) ? "REQUIRED" : void 0;
1660
1668
  },
1661
1669
  nomineeDirectorRequiredForCountry: () => {
1662
- if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerType.DIRECTOR)) {
1670
+ if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.DIRECTOR)) {
1663
1671
  return "REQUIRED";
1664
1672
  }
1665
1673
  },
1666
1674
  nomineeShareHolderRequiredForCountry: () => {
1667
- if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerType.OWNER)) {
1675
+ if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.OWNER)) {
1668
1676
  return "REQUIRED";
1669
1677
  }
1670
1678
  },
@@ -1706,9 +1714,9 @@ const individualOnfidoRules = ({
1706
1714
  }
1707
1715
  },
1708
1716
  isDirectorRequiredForCountry: () => {
1709
- const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(country);
1717
+ const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(country, matchingScenario);
1710
1718
  const isDirectorRequired = availableDecisionMakers.some(
1711
- (maker) => maker.roleType === DecisionMakerType.DIRECTOR
1719
+ (maker) => maker.roleType === DecisionMakerTypes.DIRECTOR
1712
1720
  );
1713
1721
  if (isDirectorRequired) {
1714
1722
  return "REQUIRED";
@@ -1836,8 +1844,9 @@ function Identity(props) {
1836
1844
  )
1837
1845
  );
1838
1846
  }, [country, data?.typeOfIdentity, initialFormUtilProps, licenseCardNumberMetaData]);
1847
+ const { t } = useTranslation();
1839
1848
  const { i18n } = useI18nContext();
1840
- const formUtils = useMemo(() => createFormUtils(mergedProps, i18n), [mergedProps, i18n]);
1849
+ const formUtils = useMemo(() => createFormUtils(mergedProps, t), [mergedProps, t]);
1841
1850
  const { form } = useFormContext();
1842
1851
  const defaultIdNumber = form?.defaultData?.additionalPersonalDetails?.idNumber;
1843
1852
  const ssnType = getSSNType(formVerificationErrors, defaultIdNumber);
@@ -1997,15 +2006,18 @@ const additionalPersonalDetailsFields = [
1997
2006
  ...additionalIdentityInfoFields,
1998
2007
  "country",
1999
2008
  "nationality",
2009
+ "placeOfBirth",
2000
2010
  ...addressFields,
2001
2011
  "taxInformation"
2002
2012
  ];
2003
2013
  function AdditionalPersonalDetails(props) {
2014
+ const { t } = useTranslation();
2004
2015
  const { i18n } = useI18nContext();
2005
2016
  const allowedCountries = useAllowedCountries();
2006
2017
  const [showLegalRepresentativePrompt, setShowLegalRepresentativePrompt] = useState(false);
2007
2018
  const { isSettingEnabled } = useSettingsContext();
2008
2019
  const { isExperimentEnabled } = useExperimentsContext();
2020
+ const { form } = useFormContext();
2009
2021
  const isExperimentAgeVerificationEnabled = isExperimentEnabled("EnableAgeVerification");
2010
2022
  const isSettingsEnforceLegalAgeEnabled = isSettingEnabled(SettingNames.EnforceLegalAge);
2011
2023
  const {
@@ -2023,22 +2035,21 @@ function AdditionalPersonalDetails(props) {
2023
2035
  const country = data?.country ?? defaultCountry;
2024
2036
  const isIndividual = taskType === TaskTypes.INDIVIDUAL;
2025
2037
  const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
2026
- const [taxIdNumberType, setTaxIdNumberType] = useState(
2027
- getDefaultTaxIdNumberType(data?.taxInformation, country, LegalEntityType.INDIVIDUAL)
2028
- );
2029
2038
  const mergedProps = mergeFieldMetadataIntoProps(
2030
2039
  "taxInformation",
2031
2040
  resolveFieldMetadata(
2032
2041
  taxInformationDefaultFieldConfig[country],
2033
2042
  {
2034
- taxIdNumberType,
2035
- companyType: LegalEntityType.INDIVIDUAL
2043
+ taxIdNumberType: form.data?.additionalPersonalDetails?.taxInformation?.find(
2044
+ (taxId) => taxId.country === country
2045
+ )?.type,
2046
+ companyType: LegalEntityTypes.INDIVIDUAL
2036
2047
  },
2037
2048
  taxInformationDefaultFieldMetadata
2038
2049
  ),
2039
2050
  props
2040
2051
  );
2041
- const formUtils = createFormUtils(mergedProps, i18n);
2052
+ const formUtils = createFormUtils(mergedProps, t);
2042
2053
  const birthDateErrorMessage = formUtils.getErrorMessage(
2043
2054
  "birthDate",
2044
2055
  errors,
@@ -2180,16 +2191,13 @@ function AdditionalPersonalDetails(props) {
2180
2191
  },
2181
2192
  labels: formUtils.getFieldLabels(["taxInformation"]),
2182
2193
  mask: formUtils.getMask("taxInformation"),
2183
- helperText: formUtils.getFieldHelperText(["taxInformation"]),
2184
2194
  guidanceText: formUtils.getFieldGuidanceText(["taxInformation"]),
2185
2195
  readonly: formUtils.isReadOnly("taxInformation"),
2186
2196
  shouldValidate,
2187
2197
  handleChangeFor: handleFieldChange,
2188
2198
  canExempt: false,
2189
2199
  country,
2190
- companyType: LegalEntityType.INDIVIDUAL,
2191
- taxIdNumberType,
2192
- setTaxIdNumberType,
2200
+ entityType: LegalEntityTypes.INDIVIDUAL,
2193
2201
  defaultData: data?.taxInformation
2194
2202
  }
2195
2203
  ),
@@ -2207,6 +2215,28 @@ function AdditionalPersonalDetails(props) {
2207
2215
  handleChangeFor: () => handleFieldChange("nationality", "input")
2208
2216
  }
2209
2217
  ),
2218
+ formUtils.isRequiredField("placeOfBirth") && /* @__PURE__ */ jsx(
2219
+ Field,
2220
+ {
2221
+ name: "placeOfBirth",
2222
+ label: formUtils.getLabel("placeOfBirth"),
2223
+ errorMessage: formUtils.getErrorMessage("placeOfBirth", errors, fieldValidationErrors),
2224
+ isValid: valid?.placeOfBirth,
2225
+ children: (childProps) => /* @__PURE__ */ jsx(
2226
+ InputText,
2227
+ {
2228
+ ...childProps,
2229
+ name: "placeOfBirth",
2230
+ value: data?.placeOfBirth,
2231
+ readonly: formUtils.isReadOnly("placeOfBirth"),
2232
+ onInput: handleFieldChange("placeOfBirth", "input"),
2233
+ onBlur: handleFieldChange("placeOfBirth", "blur"),
2234
+ "aria-required": true,
2235
+ "aria-invalid": !valid?.placeOfBirth
2236
+ }
2237
+ )
2238
+ }
2239
+ ),
2210
2240
  country === "US" && isIndividual ? /* @__PURE__ */ jsx(PatriotActDisclosure, {}) : void 0
2211
2241
  ] });
2212
2242
  }
@@ -2223,6 +2253,7 @@ const basicDetailsFields = [
2223
2253
  "jaKanaLastName"
2224
2254
  ];
2225
2255
  function BasicDetails(props) {
2256
+ const { t } = useTranslation();
2226
2257
  const { i18n } = useI18nContext();
2227
2258
  const {
2228
2259
  form: { triggerValidation }
@@ -2248,7 +2279,7 @@ function BasicDetails(props) {
2248
2279
  } = props;
2249
2280
  const isDecisionMakerTask = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER;
2250
2281
  const isLegalRepresentativeDetailsTask = taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
2251
- const formUtils = createFormUtils(props, i18n);
2282
+ const formUtils = createFormUtils(props, t);
2252
2283
  const decisionMakerRoleProps = getFieldProps(props, decisionMakerRoleFields);
2253
2284
  const nomineeProps = getFieldProps(props, nomineeFields);
2254
2285
  const localizedNameProps = getFieldProps(props, [
@@ -2295,7 +2326,7 @@ function BasicDetails(props) {
2295
2326
  contentId: "reasonForFillingIndividualPersonalDetails"
2296
2327
  }
2297
2328
  ),
2298
- isDecisionMakerTask && trustedFieldsProvider === TrustedFieldsProvider.SINGPASS && readOnlyFields && /* @__PURE__ */ jsx(Typography, { color: "secondary", variant: "caption", children: i18n.get(
2329
+ isDecisionMakerTask && trustedFieldsProvider === TrustedFieldsProviders.SINGPASS && readOnlyFields && /* @__PURE__ */ jsx(Typography, { color: "secondary", variant: "caption", children: i18n.get(
2299
2330
  "weSelectedSomeRolesBasedOnMyinfoBusinessDataAboutYourCompanysAppointmentHoldersAndShareholders"
2300
2331
  ) }),
2301
2332
  isDecisionMakerTask && (isGuidedDecisionMakersFlowDisabled || !isGuidedDecisionMakersFlowEnabled) && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -2469,7 +2500,7 @@ const isNextStepDisabled = signal(false);
2469
2500
  const conflictRowTable = "adyen-kyc-conflict-row-table";
2470
2501
  const conflictRowList = "adyen-kyc-conflict-row-list";
2471
2502
  const conflictRowListOptionLabel = "adyen-kyc-conflict-row-list-option-label";
2472
- const styles$5 = {
2503
+ const styles$3 = {
2473
2504
  conflictRowTable,
2474
2505
  conflictRowList,
2475
2506
  conflictRowListOptionLabel
@@ -2495,7 +2526,7 @@ const ConflictRow = ({
2495
2526
  }
2496
2527
  }, [hasOnlyProvided, hasOnlyDetected, onSelect, selected]);
2497
2528
  if (hasOnlyProvided || hasOnlyDetected) return;
2498
- return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$5.conflictRowList, children: [
2529
+ return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$3.conflictRowList, children: [
2499
2530
  /* @__PURE__ */ jsx("dt", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get(label) }) }),
2500
2531
  /* @__PURE__ */ jsxs("dd", { children: [
2501
2532
  /* @__PURE__ */ jsxs("div", { children: [
@@ -2504,7 +2535,7 @@ const ConflictRow = ({
2504
2535
  {
2505
2536
  variant: "caption",
2506
2537
  color: "tertiary",
2507
- className: styles$5.conflictRowListOptionLabel,
2538
+ className: styles$3.conflictRowListOptionLabel,
2508
2539
  children: i18n.get("youEntered")
2509
2540
  }
2510
2541
  ),
@@ -2524,7 +2555,7 @@ const ConflictRow = ({
2524
2555
  {
2525
2556
  variant: "caption",
2526
2557
  color: "tertiary",
2527
- className: styles$5.conflictRowListOptionLabel,
2558
+ className: styles$3.conflictRowListOptionLabel,
2528
2559
  children: i18n.get("weDetected")
2529
2560
  }
2530
2561
  ),
@@ -2539,7 +2570,7 @@ const ConflictRow = ({
2539
2570
  )
2540
2571
  ] })
2541
2572
  ] })
2542
- ] }) : /* @__PURE__ */ jsxs("tr", { className: styles$5.conflictRowTable, children: [
2573
+ ] }) : /* @__PURE__ */ jsxs("tr", { className: styles$3.conflictRowTable, children: [
2543
2574
  /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get(label) }) }),
2544
2575
  /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
2545
2576
  RadioWithLabel,
@@ -2565,7 +2596,7 @@ const dataConflictsWrapper = "adyen-kyc-data-conflicts-wrapper";
2565
2596
  const dataConflictsHeader = "adyen-kyc-data-conflicts-header";
2566
2597
  const dataConflictsTable = "adyen-kyc-data-conflicts-table";
2567
2598
  const dataConflictsList = "adyen-kyc-data-conflicts-list";
2568
- const styles$4 = {
2599
+ const styles$2 = {
2569
2600
  dataConflictsWrapper,
2570
2601
  dataConflictsHeader,
2571
2602
  dataConflictsTable,
@@ -2606,13 +2637,13 @@ const DataConflictsModal = ({
2606
2637
  // No dependencies, as setShowError and setResolutions are stable.
2607
2638
  );
2608
2639
  return /* @__PURE__ */ jsxs(Modal, { ariaLabel: i18n.get(title), onClose: () => setShowCancelModal(true), inset: true, children: [
2609
- /* @__PURE__ */ jsxs("div", { className: styles$4.dataConflictsWrapper, children: [
2610
- /* @__PURE__ */ jsxs("div", { className: styles$4.dataConflictsHeader, children: [
2640
+ /* @__PURE__ */ jsxs("div", { className: styles$2.dataConflictsWrapper, children: [
2641
+ /* @__PURE__ */ jsxs("div", { className: styles$2.dataConflictsHeader, children: [
2611
2642
  /* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h1", children: i18n.get(title) }),
2612
2643
  /* @__PURE__ */ jsx(Typography, { variant: "body", children: i18n.get(explanation) })
2613
2644
  ] }),
2614
2645
  showError ? /* @__PURE__ */ jsx(Alert, { variant: "error", title: i18n.get("chooseTheCorrectDetailsBeforeProceeding") }) : void 0,
2615
- /* @__PURE__ */ jsx("dl", { className: styles$4.dataConflictsList, children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(
2646
+ /* @__PURE__ */ jsx("dl", { className: styles$2.dataConflictsList, children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(
2616
2647
  ConflictRow,
2617
2648
  {
2618
2649
  showAs: "listItem",
@@ -2625,7 +2656,7 @@ const DataConflictsModal = ({
2625
2656
  },
2626
2657
  property
2627
2658
  )) }),
2628
- /* @__PURE__ */ jsxs("table", { className: styles$4.dataConflictsTable, children: [
2659
+ /* @__PURE__ */ jsxs("table", { className: styles$2.dataConflictsTable, children: [
2629
2660
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
2630
2661
  /* @__PURE__ */ jsx("th", {}),
2631
2662
  /* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "tertiary", children: i18n.get("youEntered") }) }),
@@ -2682,57 +2713,11 @@ const DataConflictsModal = ({
2682
2713
  )
2683
2714
  ] });
2684
2715
  };
2685
- const verificationDisclaimer = "adyen-kyc-verification-disclaimer";
2686
- const styles$3 = {
2687
- verificationDisclaimer
2688
- };
2689
- const IdVerificationDisclaimer = () => {
2690
- const { i18n } = useI18nContext();
2691
- return /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "tertiary", className: styles$3.verificationDisclaimer, children: [
2692
- i18n.get("ifYouChooseToUseOnfido"),
2693
- " ",
2694
- /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: i18n.get("onfidoPrivacyPolicy") }),
2695
- " ",
2696
- i18n.get("and"),
2697
- " ",
2698
- /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, inline: true, children: i18n.get("onfidoTermsOfService") })
2699
- ] });
2700
- };
2701
- const verificationHeader = "adyen-kyc-verification-header";
2702
2716
  const verificationHeaderImage = "adyen-kyc-verification-header-image";
2703
- const verificationHeaderContent = "adyen-kyc-verification-header-content";
2704
- const styles$2 = {
2705
- verificationHeader,
2706
- verificationHeaderImage,
2707
- verificationHeaderContent
2708
- };
2709
- const IdVerificationHeader = () => {
2710
- const { i18n } = useI18nContext();
2711
- return /* @__PURE__ */ jsxs("div", { className: styles$2.verificationHeader, children: [
2712
- /* @__PURE__ */ jsx(
2713
- Svg,
2714
- {
2715
- className: styles$2.verificationHeaderImage,
2716
- type: "image",
2717
- name: "passport-front-green",
2718
- title: i18n.get("instantIDVerificationDescription")
2719
- }
2720
- ),
2721
- /* @__PURE__ */ jsx(Typography, { variant: "title-l", children: i18n.get("capturePersonalDetails") }),
2722
- /* @__PURE__ */ jsxs(Typography, { variant: "body", color: "primary", className: styles$2.verificationHeaderContent, children: [
2723
- i18n.get("takeOrUploadAPhoto"),
2724
- " ",
2725
- /* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: i18n.get("onfido") })
2726
- ] })
2727
- ] });
2728
- };
2729
- const verifyOnfidoContainer = "adyen-kyc-verify-onfido-container";
2730
2717
  const verifyOnfidoError = "adyen-kyc-verify-onfido-error";
2731
- const verifyOnfidoContent = "adyen-kyc-verify-onfido-content";
2732
2718
  const styles$1 = {
2733
- verifyOnfidoContainer,
2734
- verifyOnfidoError,
2735
- verifyOnfidoContent
2719
+ verificationHeaderImage,
2720
+ verifyOnfidoError
2736
2721
  };
2737
2722
  const toIndividualOnfidoConflictSchema = ({
2738
2723
  basicDetails,
@@ -2917,6 +2902,7 @@ function IdVerificationMethod(props) {
2917
2902
  fieldValidationErrors,
2918
2903
  hasLiveSelfieErrorCode
2919
2904
  } = props;
2905
+ const { t } = useTranslation();
2920
2906
  const { i18n } = useI18nContext();
2921
2907
  const userEvents = useAnalyticsContext();
2922
2908
  const extractDocumentInformation2 = useExtractDocumentInformation();
@@ -3111,9 +3097,9 @@ function IdVerificationMethod(props) {
3111
3097
  handlers.handleUpdateDocument();
3112
3098
  };
3113
3099
  const modalProvidedData = resolvedData || comparableExistingData;
3114
- const formUtils = createFormUtils(props, i18n);
3100
+ const formUtils = createFormUtils(props, t);
3115
3101
  isNextStepDisabled.value = showLoadingSpinner;
3116
- return /* @__PURE__ */ jsxs("div", { className: styles$1.verifyOnfidoContainer, children: [
3102
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
3117
3103
  /* @__PURE__ */ jsx(
3118
3104
  ErrorPanel,
3119
3105
  {
@@ -3123,44 +3109,75 @@ function IdVerificationMethod(props) {
3123
3109
  id: "ariaErrorField"
3124
3110
  }
3125
3111
  ),
3126
- /* @__PURE__ */ jsx(IdVerificationHeader, {}),
3127
- error ? /* @__PURE__ */ jsx(
3128
- Alert,
3129
- {
3130
- variant: "error",
3131
- title: i18n.get(error.key, error.options),
3132
- className: styles$1.verifyOnfidoError
3133
- }
3134
- ) : void 0,
3135
- /* @__PURE__ */ jsx("div", { className: styles$1.verifyOnfidoContent, children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : /* @__PURE__ */ jsx(Fragment, { children: hasExistingDocument ? /* @__PURE__ */ jsx(
3136
- UploadedDocument,
3112
+ /* @__PURE__ */ jsx(
3113
+ LandingLayout,
3137
3114
  {
3138
- document: existingDocument,
3139
- onDelete: () => setStatus("confirmDeleteDocumentModal"),
3140
- onUpdate: handleUpdateExistingDocument
3115
+ media: /* @__PURE__ */ jsx(
3116
+ Svg,
3117
+ {
3118
+ type: "image",
3119
+ className: styles$1.verificationHeaderImage,
3120
+ name: "passport-front-green",
3121
+ title: i18n.get("instantIDVerificationDescription")
3122
+ }
3123
+ ),
3124
+ title: i18n.get("identityVerification"),
3125
+ description: showIndividualMotionCapture?.value ? i18n.get("toHelpProtectAgainstFraudAndKeepOurServices") : /* @__PURE__ */ jsxs(Fragment, { children: [
3126
+ i18n.get("takeOrUploadAPhoto"),
3127
+ " ",
3128
+ /* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: i18n.get("onfido") })
3129
+ ] }),
3130
+ helpAction: error ? /* @__PURE__ */ jsx(
3131
+ Alert,
3132
+ {
3133
+ variant: "error",
3134
+ title: i18n.get(error.key, error.options),
3135
+ className: styles$1.verifyOnfidoError
3136
+ }
3137
+ ) : void 0,
3138
+ actions: /* @__PURE__ */ jsx(Fragment, { children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : !hasExistingDocument && /* @__PURE__ */ jsxs(Fragment, { children: [
3139
+ /* @__PURE__ */ jsx(
3140
+ Button,
3141
+ {
3142
+ fullWidth: true,
3143
+ onClick: launchOnfido,
3144
+ disabled: status === "extractionLoading",
3145
+ loading: status === "extractionLoading",
3146
+ children: i18n.get("startVerification")
3147
+ }
3148
+ ),
3149
+ !showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(
3150
+ Button,
3151
+ {
3152
+ onClick: () => setStatus("confirmManualFlowModal"),
3153
+ variant: "secondary",
3154
+ fullWidth: true,
3155
+ children: i18n.get("addDetailsManually")
3156
+ }
3157
+ )
3158
+ ] }) }),
3159
+ content: !showLoadingSpinner && hasExistingDocument && /* @__PURE__ */ jsx(
3160
+ UploadedDocument,
3161
+ {
3162
+ document: existingDocument,
3163
+ onDelete: () => setStatus("confirmDeleteDocumentModal"),
3164
+ onUpdate: handleUpdateExistingDocument
3165
+ }
3166
+ ),
3167
+ disclaimer: !hasExistingDocument && /* @__PURE__ */ jsxs(Fragment, { children: [
3168
+ i18n.get("byContinuingToUseThisService"),
3169
+ " ",
3170
+ /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/facial-scan-policy-and-release/", external: true, inline: true, children: i18n.get("onfidoFacialScanPolicy") }),
3171
+ " ",
3172
+ /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: i18n.get("privacyPolicy") }),
3173
+ " ",
3174
+ i18n.get("and"),
3175
+ " ",
3176
+ /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, inline: true, children: i18n.get("termsOfService") }),
3177
+ "."
3178
+ ] })
3141
3179
  }
3142
- ) : /* @__PURE__ */ jsxs(Fragment, { children: [
3143
- /* @__PURE__ */ jsx(
3144
- ProviderButton,
3145
- {
3146
- provider: "onfido",
3147
- fullWidth: true,
3148
- disabled: status === "extractionLoading",
3149
- loading: status === "extractionLoading",
3150
- onClick: launchOnfido
3151
- }
3152
- ),
3153
- !showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(
3154
- Button,
3155
- {
3156
- onClick: () => setStatus("confirmManualFlowModal"),
3157
- variant: "secondary",
3158
- fullWidth: true,
3159
- children: i18n.get("addDetailsManually")
3160
- }
3161
- ),
3162
- /* @__PURE__ */ jsx(IdVerificationDisclaimer, {})
3163
- ] }) }) }),
3180
+ ),
3164
3181
  status === "onfidoModal" && /* @__PURE__ */ jsx(
3165
3182
  OnfidoVerificationModal,
3166
3183
  {
@@ -3232,8 +3249,8 @@ const ManualIdUpload = () => {
3232
3249
  }
3233
3250
  );
3234
3251
  };
3235
- const getDisplayErrorMessage = (errorMessage, i18n) => {
3236
- return typeof errorMessage !== "boolean" ? i18n.get(errorMessage) : errorMessage;
3252
+ const getDisplayErrorMessage = (errorMessage, t) => {
3253
+ return typeof errorMessage !== "boolean" ? translateStringOrObject(t, errorMessage) : errorMessage;
3237
3254
  };
3238
3255
  const SignatoryQuestionnaireModalContent = () => {
3239
3256
  const { i18n } = useI18nContext();
@@ -3246,6 +3263,7 @@ const SignatoryQuestionnaireModalContent = () => {
3246
3263
  ] });
3247
3264
  };
3248
3265
  function SignatoryQuestionnaire(props) {
3266
+ const { t } = useTranslation();
3249
3267
  const { i18n } = useI18nContext();
3250
3268
  const userEvents = useAnalyticsContext();
3251
3269
  const [isModalOpen, setIsModalOpen] = useState(false);
@@ -3257,7 +3275,7 @@ function SignatoryQuestionnaire(props) {
3257
3275
  fieldValidationErrors,
3258
3276
  handleFieldChange
3259
3277
  } = props;
3260
- const formUtils = createFormUtils(props, i18n);
3278
+ const formUtils = createFormUtils(props, t);
3261
3279
  if (!handleFieldChange) {
3262
3280
  return;
3263
3281
  }
@@ -3296,7 +3314,7 @@ function SignatoryQuestionnaire(props) {
3296
3314
  onDescriptionLinkClick: openModal,
3297
3315
  question: i18n.get("signatoryQuestion"),
3298
3316
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3299
- errorMessage: getDisplayErrorMessage(errorMessage, i18n)
3317
+ errorMessage: getDisplayErrorMessage(errorMessage, t)
3300
3318
  }
3301
3319
  ),
3302
3320
  isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: i18n.get("moreAboutAuthorizedSignatories"), inset: true, children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {}) })
@@ -3374,6 +3392,7 @@ const uboQuestionnaireFields = [
3374
3392
  "isNomineeShareholder"
3375
3393
  ];
3376
3394
  function UboQuestionnaire(props) {
3395
+ const { t } = useTranslation();
3377
3396
  const { i18n } = useI18nContext();
3378
3397
  const userEvents = useAnalyticsContext();
3379
3398
  const {
@@ -3385,7 +3404,7 @@ function UboQuestionnaire(props) {
3385
3404
  fieldValidationErrors,
3386
3405
  handleFieldChange
3387
3406
  } = props;
3388
- const formUtils = createFormUtils(props, i18n);
3407
+ const formUtils = createFormUtils(props, t);
3389
3408
  const [activeModal, setActiveModal] = useState(null);
3390
3409
  if (!handleFieldChange) {
3391
3410
  return;
@@ -3452,7 +3471,7 @@ function UboQuestionnaire(props) {
3452
3471
  onDescriptionLinkClick: openModal("isDirector"),
3453
3472
  question: i18n.get("directorQuestion"),
3454
3473
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3455
- errorMessage: getDisplayErrorMessage(isDirectorErrorMessage, i18n)
3474
+ errorMessage: getDisplayErrorMessage(isDirectorErrorMessage, t)
3456
3475
  }
3457
3476
  ),
3458
3477
  formUtils.isRequiredField("isNomineeDirector") && data?.isDirector === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(
@@ -3462,7 +3481,7 @@ function UboQuestionnaire(props) {
3462
3481
  value: data?.isNomineeDirector,
3463
3482
  onChange: handleFieldChange("isNomineeDirector"),
3464
3483
  question: i18n.get("nomineeDirectorQuestion"),
3465
- errorMessage: getDisplayErrorMessage(isNomineeDirectorErrorMessage, i18n)
3484
+ errorMessage: getDisplayErrorMessage(isNomineeDirectorErrorMessage, t)
3466
3485
  }
3467
3486
  ),
3468
3487
  formUtils.isRequiredField("isOwner") && /* @__PURE__ */ jsx(
@@ -3474,7 +3493,7 @@ function UboQuestionnaire(props) {
3474
3493
  onDescriptionLinkClick: openModal("isOwner"),
3475
3494
  question: i18n.get("ownerQuestion"),
3476
3495
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3477
- errorMessage: getDisplayErrorMessage(isOwnerErrorMessage, i18n)
3496
+ errorMessage: getDisplayErrorMessage(isOwnerErrorMessage, t)
3478
3497
  }
3479
3498
  ),
3480
3499
  formUtils.isRequiredField("isNomineeShareholder") && data?.isOwner === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(
@@ -3484,7 +3503,7 @@ function UboQuestionnaire(props) {
3484
3503
  value: data?.isNomineeShareholder,
3485
3504
  onChange: handleFieldChange("isNomineeShareholder"),
3486
3505
  question: i18n.get("nomineeShareHolderQuestion"),
3487
- errorMessage: getDisplayErrorMessage(isNomineeShareholderErrorMessage, i18n)
3506
+ errorMessage: getDisplayErrorMessage(isNomineeShareholderErrorMessage, t)
3488
3507
  }
3489
3508
  ),
3490
3509
  formUtils.isRequiredField("isControllingPerson") && /* @__PURE__ */ jsx(
@@ -3496,7 +3515,7 @@ function UboQuestionnaire(props) {
3496
3515
  onDescriptionLinkClick: openModal("isControllingPerson"),
3497
3516
  question: i18n.get("controllingPersonQuestion"),
3498
3517
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3499
- errorMessage: getDisplayErrorMessage(isControllingPersonErrorMessage, i18n)
3518
+ errorMessage: getDisplayErrorMessage(isControllingPersonErrorMessage, t)
3500
3519
  }
3501
3520
  ),
3502
3521
  activeModal && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: modalAriaLabelMap[activeModal], inset: true, children: /* @__PURE__ */ jsx(UboQuestionnaireModalContent, { modalType: activeModal }) })
@@ -3870,7 +3889,7 @@ const adjustOnfidoIdentificationData = (data, apiData) => {
3870
3889
  const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido, isExperimentEnabled, matchingScenario) => {
3871
3890
  const legalEntity = {
3872
3891
  ...formatObject(individualOnfido, individualOnfidoApiKeyMapping),
3873
- type: LegalEntityType.INDIVIDUAL
3892
+ type: LegalEntityTypes.INDIVIDUAL
3874
3893
  };
3875
3894
  if (individualOnfido.additionalPersonalDetails) {
3876
3895
  if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && matchingScenario?.includes(Scenarios.L_TAXINFO) && individualOnfido.additionalPersonalDetails?.idNumber && individualOnfido.additionalPersonalDetails?.typeOfIdentity && individualOnfido.additionalPersonalDetails?.country === CountryCodes.Spain) {
@@ -3997,19 +4016,19 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
3997
4016
  const associationTypes = new Set(associations.map((ea) => ea.type));
3998
4017
  const hasAssociation = (type) => associationTypes.has(type) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
3999
4018
  individualOnfido.signatoryQuestionnaire.isSignatory = hasAssociation(
4000
- DecisionMakerType.SIGNATORY
4019
+ DecisionMakerTypes.SIGNATORY
4001
4020
  );
4002
- individualOnfido.uboQuestionnaire.isOwner = hasAssociation(DecisionMakerType.OWNER);
4021
+ individualOnfido.uboQuestionnaire.isOwner = hasAssociation(DecisionMakerTypes.OWNER);
4003
4022
  individualOnfido.uboQuestionnaire.isControllingPerson = hasAssociation(
4004
- DecisionMakerType.CONTROLLING_PERSON
4023
+ DecisionMakerTypes.CONTROLLING_PERSON
4005
4024
  );
4006
- individualOnfido.uboQuestionnaire.isDirector = hasAssociation(DecisionMakerType.DIRECTOR);
4025
+ individualOnfido.uboQuestionnaire.isDirector = hasAssociation(DecisionMakerTypes.DIRECTOR);
4007
4026
  const hasNomineeAssociation = (type) => associations.some((ea) => ea.type === type && ea.nominee) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
4008
4027
  individualOnfido.uboQuestionnaire.isNomineeDirector = hasNomineeAssociation(
4009
- DecisionMakerType.DIRECTOR
4028
+ DecisionMakerTypes.DIRECTOR
4010
4029
  );
4011
4030
  individualOnfido.uboQuestionnaire.isNomineeShareholder = hasNomineeAssociation(
4012
- DecisionMakerType.OWNER
4031
+ DecisionMakerTypes.OWNER
4013
4032
  );
4014
4033
  }
4015
4034
  individualOnfido.basicDetails = getNomineeFromAssociation(
@@ -4047,6 +4066,9 @@ const identityOnfidoBase = {
4047
4066
  jobTitle: {
4048
4067
  rule: "jobTitleIfRequiredForRole"
4049
4068
  },
4069
+ placeOfBirth: {
4070
+ rule: "isPlaceOfBirthRequired"
4071
+ },
4050
4072
  nationality: {
4051
4073
  rule: "nationalityIfRequiredForRole"
4052
4074
  },
@@ -4086,10 +4108,8 @@ const identityOnfidoBase = {
4086
4108
  nomineeShareholder: {
4087
4109
  rules: ["isGuidedDecisionMakersFlowDisabled", "nomineeShareHolderRequiredForCountry"]
4088
4110
  },
4089
- // Regardless of scenario, we want the user to go through the "verification method" step
4090
- // and hopefully get Onfido-verified. Otherwise, they must go through the manual flow.
4091
4111
  idVerificationMethod: {
4092
- rule: "REQUIRED"
4112
+ rule: "isIdVerificationMethodRequired"
4093
4113
  },
4094
4114
  idDocument: {
4095
4115
  // (either from Onfido or previously-uploaded document)
@@ -4300,6 +4320,7 @@ function IndividualOnfidoDropin({
4300
4320
  }),
4301
4321
  [propProblems, validationErrors]
4302
4322
  );
4323
+ const hasVerificationErrors = propProblems?.verificationErrors && Object.keys(propProblems.verificationErrors).length > 0;
4303
4324
  const associatedLeTrackingParams = useMemo(() => {
4304
4325
  return taskType === TaskTypes.INDIVIDUAL ? {} : getAssociatedLeAnalyticsPayload({
4305
4326
  associatedLegalEntity: legalEntityResponse,
@@ -4381,7 +4402,7 @@ function IndividualOnfidoDropin({
4381
4402
  useEffect(() => {
4382
4403
  setCountry(data?.additionalPersonalDetails?.country ?? parentCountry);
4383
4404
  }, [data?.additionalPersonalDetails?.country, parentCountry]);
4384
- const { data: scenarios } = useScenarios(country, LegalEntityType.INDIVIDUAL);
4405
+ const { data: scenarios } = useScenarios(country, LegalEntityTypes.INDIVIDUAL);
4385
4406
  useEffect(() => {
4386
4407
  if (!scenarios) return;
4387
4408
  setHasMotionCaptureScenario(scenarios);
@@ -4389,7 +4410,7 @@ function IndividualOnfidoDropin({
4389
4410
  }, [scenarios]);
4390
4411
  const { fieldConfigurations } = useScenarioConfiguration({
4391
4412
  parseConfiguration,
4392
- legalEntityType: LegalEntityType.INDIVIDUAL,
4413
+ legalEntityType: LegalEntityTypes.INDIVIDUAL,
4393
4414
  setLoadingStatus,
4394
4415
  country
4395
4416
  });
@@ -4472,7 +4493,7 @@ function IndividualOnfidoDropin({
4472
4493
  };
4473
4494
  await getIdVerificationStartCheck(data2);
4474
4495
  };
4475
- const roleTypes = isRoleFieldNeeded && parentLegalEntity ? getAllowedDecisionMakerRoles(parentLegalEntity, taskType) : [];
4496
+ const roleTypes = isRoleFieldNeeded && parentLegalEntity ? getAllowedDecisionMakerRoles(parentLegalEntity, taskType, matchingScenario) : [];
4476
4497
  const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
4477
4498
  const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions(country);
4478
4499
  const submitLegalEntity = async ({
@@ -4615,7 +4636,7 @@ function IndividualOnfidoDropin({
4615
4636
  idDocumentType
4616
4637
  });
4617
4638
  setAccountHolder(accountHolder);
4618
- if (dataSubmitted.idVerificationMethod?.idVerificationMethod !== "existingDocument") {
4639
+ if (dataSubmitted.idVerificationMethod && dataSubmitted.idVerificationMethod?.idVerificationMethod !== "existingDocument" || hasVerificationErrors) {
4619
4640
  await submitDocuments({ legalEntity: createdLegalEntity, dataSubmitted });
4620
4641
  }
4621
4642
  if (parentLegalEntity) {
@@ -4633,9 +4654,16 @@ function IndividualOnfidoDropin({
4633
4654
  clearToasts();
4634
4655
  externalOnSubmit?.(dataSubmitted);
4635
4656
  } catch (e) {
4657
+ const eventsAdditionalData = {};
4636
4658
  logger.error("Failed to update individual", e);
4637
4659
  if (isValidationError(e)) {
4638
- setValidationErrors(processValidationErrors(e, TaskTypes.INDIVIDUAL));
4660
+ const getErrors = processValidationErrors(e, TaskTypes.INDIVIDUAL);
4661
+ if (getErrors && !Object.keys(getErrors).length) {
4662
+ showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
4663
+ eventsAdditionalData.unmappedErrorNames = e.invalidFields?.map((field) => field.name).filter(Boolean);
4664
+ } else {
4665
+ setValidationErrors(getErrors);
4666
+ }
4639
4667
  } else if (isMaintenanceModeError(e)) {
4640
4668
  showToast({
4641
4669
  label: i18n.get("maintenanceModeMessage"),
@@ -4648,8 +4676,9 @@ function IndividualOnfidoDropin({
4648
4676
  setLoadingStatus("success");
4649
4677
  userEvents.addTaskEvent("Encountered error", {
4650
4678
  actionType: "submit",
4651
- returnType: e.errorCode,
4652
- returnValue: e.title
4679
+ additionalData: eventsAdditionalData,
4680
+ returnType: e?.errorCode,
4681
+ returnValue: e?.title || "backend"
4653
4682
  });
4654
4683
  }
4655
4684
  };