@adyen/kyc-components 4.0.0-beta.0 → 4.0.0-beta.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 (563) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-Dh7RSJoE.js → AcceptTermsOfServiceComponent-BQ4Yct7L.js} +20 -29
  2. package/dist/{AccountSetupRejected-PdYyKwbS.js → AccountSetupRejected-UVhxMcAe.js} +2 -2
  3. package/dist/{Avatar-C8aZB2wq.js → Avatar-NEiNEcRx.js} +1 -1
  4. package/dist/{BusinessDetailsDropin-DC8FEWvP.js → BusinessDetailsDropin-l0xfPekL.js} +124 -155
  5. package/dist/{BusinessFinancingComponent-B0vW7r62.js → BusinessFinancingComponent-Bs-poF2d.js} +3 -3
  6. package/dist/{BusinessFinancingDropin-D8HAwTSq.js → BusinessFinancingDropin-DoRzdS4n.js} +551 -620
  7. package/dist/{BusinessFinancingPage-L1APYvzn.js → BusinessFinancingPage-DSlmJmOK.js} +3 -3
  8. package/dist/{BusinessTypeSelectionPage-sfGqHnp6.js → BusinessTypeSelectionPage-Bmi_8K2g.js} +8 -8
  9. package/dist/ContractViewer-R4-gfVmp.js +938 -0
  10. package/dist/{CreateIndividualComponent-i-QNCzp0.js → CreateIndividualComponent-D3aXuYRk.js} +3 -4
  11. package/dist/{CreateTransferInstrumentComponent-8n3tjBYK.js → CreateTransferInstrumentComponent-C-ncZ-A8.js} +2 -3
  12. package/dist/{CustomerSupport-BER6nSK2.js → CustomerSupport-CMFRgQNa.js} +5 -6
  13. package/dist/{DebugModal-DeSsKkh_.js → DebugModal-BEmhG3UP.js} +8 -42
  14. package/dist/{DecisionMakerDetailsPage-DgjlfKyP.js → DecisionMakerDetailsPage-DI2Ubmef.js} +3 -4
  15. package/dist/{DecisionMakers-D2TjKnOc.js → DecisionMakers-BKhtcs_K.js} +4 -6
  16. package/dist/{ES-JRIf-4xI.js → ES-BlWV7xvh.js} +4 -6
  17. package/dist/{EmbeddedStatus-Bn5KNA0V.js → EmbeddedStatus-BsZsXbKc.js} +12 -4
  18. package/dist/{FormEndState-BQOQ83vO.js → FormEndState-C3HCmXcw.js} +1 -1
  19. package/dist/{FormFlow-CZgc09E3.js → FormFlow-Bt-mu4Wm.js} +2 -5
  20. package/dist/{IndividualOnfidoDropin-D6uwo7VI.js → IndividualOnfidoDropin-DGMCOm9M.js} +788 -284
  21. package/dist/{Introduction-DW2IQ57R.js → Introduction-DJ6qIUPC.js} +3 -4
  22. package/dist/{LegalRepresentativeDetailsPage-BfIDXqv1.js → LegalRepresentativeDetailsPage-CyHwQR_W.js} +3 -4
  23. package/dist/{ManageIndividualComponent-DJoEsE2m.js → ManageIndividualComponent-BIMCvcr2.js} +4 -4
  24. package/dist/{ManagePCIComponent-BGESFWL6.js → ManagePCIComponent-Blj60xLa.js} +4 -4
  25. package/dist/{ManageTermsOfServiceComponent-_wTZrjqd.js → ManageTermsOfServiceComponent-CsM23jq3.js} +4 -4
  26. package/dist/{ManageTransferInstrumentComponent-Cvc3kk94.js → ManageTransferInstrumentComponent-Vut9_bRn.js} +4 -9
  27. package/dist/{OnboardingDropinComponent-CocnpjvA.js → OnboardingDropinComponent-BW6er2HU.js} +132 -133
  28. package/dist/{ProviderButton-vD5DUJaN.js → ProviderButton-DAsW5EVa.js} +3 -13
  29. package/dist/{Review-BFgzcIDj.js → Review-DWDbL9-9.js} +3 -4
  30. package/dist/{RootBusinessDetailsPage-C6lHQShI.js → RootBusinessDetailsPage-BTYIldSf.js} +3 -4
  31. package/dist/{RootIndividualDetailsPage-DfpqHdAS.js → RootIndividualDetailsPage-DCxJ3ycQ.js} +3 -4
  32. package/dist/{SignPCIComponent-D35913wJ.js → SignPCIComponent-kHaxhkWa.js} +6 -10
  33. package/dist/{SingpassSelection-D2Xe1wGv.js → SingpassSelection-Dmlbiq4Z.js} +2 -2
  34. package/dist/{SoleProprietorshipPage-D2F8Ghmo.js → SoleProprietorshipPage-Bdhs90-q.js} +4 -5
  35. package/dist/{SourceOfFunds.module-OqFTr4WQ.js → SourceOfFunds.module-xwHIboir.js} +1 -1
  36. package/dist/{SourceOfFundsPage-RjAcZ3Bo.js → SourceOfFundsPage-Bj22DAFv.js} +52 -55
  37. package/dist/{StoreProvider-COHi02bX.js → StoreProvider-BmzY19Td.js} +21647 -21959
  38. package/dist/{TaskItemStatus-Bi1L8gea.js → TaskItemStatus-CB6FEOnk.js} +2 -2
  39. package/dist/{TaxReportingDropin-BLXgRbuR.js → TaxReportingDropin-jofokkei.js} +7 -8
  40. package/dist/{TileGroup-B1IymoWv.js → TileGroup-i5Jc08ns.js} +2 -2
  41. package/dist/{TrustDetailsPage-DVvGJ_Ta.js → TrustDetailsPage-B6HmvYUf.js} +34 -53
  42. package/dist/{TrustMemberCompanyPage-D0wTEhuh.js → TrustMemberCompanyPage-D3VJOq6a.js} +4 -5
  43. package/dist/{TrustMemberIndividualPage-BLuaBi3j.js → TrustMemberIndividualPage-1aeOYsnG.js} +3 -4
  44. package/dist/{UnincorporatedPartnershipIndividualPage-BhIihH2v.js → UnincorporatedPartnershipIndividualPage-Bt7e6ncF.js} +3 -4
  45. package/dist/{UnincorporatedPartnershipMemberCompanyPage-CgujXwfX.js → UnincorporatedPartnershipMemberCompanyPage-Ck5C_SEU.js} +3 -4
  46. package/dist/{VerificationErrorAlert-BkImnGA-.js → VerificationErrorAlert-DhtKOmjt.js} +2 -2
  47. package/dist/{ViewVerificationStatusComponent-CRefu327.js → ViewVerificationStatusComponent-DtKLcCGI.js} +3 -3
  48. package/dist/adyen-business-financing.js +24 -27
  49. package/dist/adyen-individual.js +18 -21
  50. package/dist/adyen-kyc-components.js +30 -32
  51. package/dist/adyen-manage-individual.js +18 -21
  52. package/dist/adyen-manage-pci.js +18 -21
  53. package/dist/adyen-manage-terms-of-service.js +18 -21
  54. package/dist/adyen-manage-transfer-instruments.js +27 -30
  55. package/dist/adyen-onboarding.js +18 -23
  56. package/dist/adyen-sign-pci.js +26 -29
  57. package/dist/adyen-terms-of-service.js +18 -27
  58. package/dist/adyen-transfer-instrument.js +26 -29
  59. package/dist/adyen-verification-status.js +30 -33
  60. package/dist/{bg-BG-CGHVGS50.js → bg-BG-COTwZXwN.js} +62 -8
  61. package/dist/{cs-CZ-5Os6MsQs.js → cs-CZ-DUlgJKVq.js} +62 -8
  62. package/dist/{css-DZNXkIaY.js → css-CQUoQdd2.js} +2 -2
  63. package/dist/{da-DK-Dk9852pS.js → da-DK-BDzDHhVR.js} +62 -8
  64. package/dist/{de-DE-dk9CMgxF.js → de-DE-DJdgXqS_.js} +61 -7
  65. package/dist/{el-GR-DgI6Cgl6.js → el-GR-D5i9BNyh.js} +61 -7
  66. package/dist/{es-ES-BzoYprDP.js → es-ES-VOSWszW5.js} +62 -8
  67. package/dist/{et-EE-DlbiEFQu.js → et-EE-Bp4Ngsn4.js} +62 -8
  68. package/dist/{fi-FI-GSyT4vm7.js → fi-FI-DaujOE-a.js} +61 -7
  69. package/dist/{fr-FR-BEImhl_J.js → fr-FR-BdPZxk11.js} +62 -8
  70. package/dist/{getFieldsWithExistingData-UNUNInq5.js → getFieldsWithExistingData-BW8_TEQl.js} +2 -2
  71. package/dist/{hasDataChanged-CIg-bPSm.js → hasDataChanged-Mu0HyZ3E.js} +2 -2
  72. package/dist/{hr-HR-CNFI9uDD.js → hr-HR-BY7C7NxY.js} +62 -8
  73. package/dist/{hu-HU-D4xFA3R6.js → hu-HU-DHCty-Tc.js} +61 -7
  74. package/dist/{it-IT-B65JP9Qv.js → it-IT-BMsuhZEQ.js} +64 -10
  75. package/dist/{ja-JP-CgGmwtzl.js → ja-JP-BYDz1z2G.js} +61 -7
  76. package/dist/{json-DGARJCng.js → json-DWikzB4g.js} +2 -2
  77. package/dist/{localizeDateString-KlstHAcM.js → localizeDateString-QtCjf8Fg.js} +2 -2
  78. package/dist/{lt-LT-D_Q1Z3N4.js → lt-LT-DNJ9V9xV.js} +62 -8
  79. package/dist/{lv-LV-aF5bMtic.js → lv-LV-CFJwN5wq.js} +64 -10
  80. package/dist/{mapFinancialReportsToFinancialInformation-Cid31JpK.js → mapFinancialReportsToFinancialInformation-C-2jp0wg.js} +2 -2
  81. package/dist/{nl-NL-GDXpht_y.js → nl-NL-DibAf790.js} +62 -8
  82. package/dist/{no-NO-CEow5Bac.js → no-NO-DHCy5rXx.js} +64 -10
  83. package/dist/{pl-PL-Bir_Ltlv.js → pl-PL-eZBNH5HH.js} +62 -8
  84. package/dist/{plaintext-jF9fCLMp.js → plaintext-B39yQnOr.js} +2 -2
  85. package/dist/preact/adyen-terms-of-service.js +1 -1
  86. package/dist/preact/adyen-transfer-instrument.js +1 -1
  87. package/dist/{pt-PT-lkmVY63I.js → pt-PT-CiN_Wmfe.js} +62 -8
  88. package/dist/resolveEnvironment-Dx0BPNMa.js +84 -0
  89. package/dist/{ro-RO-CTQvP4R9.js → ro-RO-CgyMTvLc.js} +62 -8
  90. package/dist/{rules-a4kJDPzY.js → rules-CUANHpja.js} +34 -8
  91. package/dist/{sk-SK-Ct3OVI0e.js → sk-SK-B5qlQB_U.js} +62 -8
  92. package/dist/{sl-SI-CNjkFWB7.js → sl-SI-8PPfrGzL.js} +61 -7
  93. package/dist/style.css +2110 -2891
  94. package/dist/styles-CLV89_hH.js +2111 -2892
  95. package/dist/{sv-SE-BwREUuQq.js → sv-SE-ZWLw6D3j.js} +61 -7
  96. package/dist/types/api/address/address.types.d.ts +0 -1
  97. package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
  98. package/dist/types/api/address/useSearchAddress.d.ts +0 -1
  99. package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
  100. package/dist/types/api/companyDataSet/companyDataset.types.d.ts +2 -2
  101. package/dist/types/api/companyDataSet/constants.d.ts +1 -1
  102. package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +3 -0
  103. package/dist/types/api/companySearch/companySearch.types.d.ts +2 -2
  104. package/dist/types/api/companySelection/companySelection.types.d.ts +6 -0
  105. package/dist/types/api/companySelection/useCompanySelection.d.ts +4 -0
  106. package/dist/types/api/configurations/configurations.types.d.ts +9 -0
  107. package/dist/types/api/configurations/useScenarios.d.ts +33 -35
  108. package/dist/types/api/configurations/useSupportedCountries.d.ts +3 -3
  109. package/dist/types/api/configurations/useTaskTypes.d.ts +2 -2
  110. package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -2
  111. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +11 -11
  112. package/dist/types/api/datasets/datasets.types.d.ts +6 -0
  113. package/dist/types/api/datasets/useLegalForms.d.ts +3 -8
  114. package/dist/types/api/datasets/useNaceCodes.d.ts +2 -2
  115. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +2 -2
  116. package/dist/types/api/entityVerifications/entityVerifications.types.d.ts +15 -0
  117. package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -17
  118. package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +7 -0
  119. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +14 -0
  120. package/dist/types/api/idVerificationProviders/idVerificationProviders.types.d.ts +6 -0
  121. package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +3 -7
  122. package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +7 -7
  123. package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
  124. package/dist/types/api/legalEntity/useLegalEntity.d.ts +285 -223
  125. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +14 -14
  126. package/dist/types/api/onboardingStatus/onboardingStatus.types.d.ts +7 -0
  127. package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -5
  128. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
  129. package/dist/types/api/pciTemplate/pciTemplate.types.d.ts +9 -0
  130. package/dist/types/api/pciTemplate/usePciQuestionnaire.d.ts +2 -4
  131. package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +7 -9
  132. package/dist/types/api/pciTemplate/usePciStatus.d.ts +4 -9
  133. package/dist/types/api/pciTemplate/usePciTemplate.d.ts +2 -2
  134. package/dist/types/api/pciTemplate/useSignPci.d.ts +2 -2
  135. package/dist/types/api/providersConfiguration/providersConfiguration.types.d.ts +9 -0
  136. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +3 -13
  137. package/dist/types/api/queryKeys.d.ts +5 -3
  138. package/dist/types/api/taskStatus/taskStatus.types.d.ts +4 -0
  139. package/dist/types/api/taskStatus/useTaskStatus.d.ts +0 -3
  140. package/dist/types/api/taxClassification/taxClassification.types.d.ts +2 -0
  141. package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -2
  142. package/dist/types/api/termsOfService/termsOfService.types.d.ts +10 -0
  143. package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +3 -10
  144. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +9 -8
  145. package/dist/types/api/termsOfService/useTermsOfService.d.ts +12 -5
  146. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +2 -2
  147. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +2 -2
  148. package/dist/types/api/tinVerification/tinVerification.types.d.ts +4 -0
  149. package/dist/types/api/tinVerification/useVerifyTin.d.ts +2 -4
  150. package/dist/types/api/transferInstruments/transferInstruments.types.d.ts +25 -0
  151. package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -14
  152. package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +3 -6
  153. package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +4 -7
  154. package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -9
  155. package/dist/types/api/uiAnalytics/uiAnalytics.types.d.ts +7 -0
  156. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -14
  157. package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
  158. package/dist/types/api/validation/useValidateAccountIdentification.d.ts +1 -6
  159. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +4 -7
  160. package/dist/types/api/validation/validation.types.d.ts +8 -0
  161. package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +1 -1
  162. package/dist/types/components/BankAccount/fields/BankAccountNumber/types.d.ts +1 -1
  163. package/dist/types/components/BankAccount/fields/BankCode/fieldConfig.d.ts +1 -1
  164. package/dist/types/components/BankAccount/fields/BankCode/types.d.ts +1 -1
  165. package/dist/types/components/BankAccount/fields/BranchCode/fieldConfig.d.ts +1 -1
  166. package/dist/types/components/BankAccount/fields/BranchCode/types.d.ts +1 -1
  167. package/dist/types/components/BankAccount/fields/Iban/fieldConfig.d.ts +1 -1
  168. package/dist/types/components/BankAccount/fields/Iban/ibanValidator.d.ts +1 -1
  169. package/dist/types/components/BankAccount/fields/Iban/types.d.ts +1 -1
  170. package/dist/types/components/BankAccount/fields/SwiftCode/fieldConfig.d.ts +1 -1
  171. package/dist/types/components/BankAccount/forms/BankDocument/BankDocument.d.ts +0 -1
  172. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +1 -2
  173. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -2
  174. package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +2 -2
  175. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +3 -3
  176. package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +1 -2
  177. package/dist/types/components/BankAccount/forms/PayoutAccount/CheckGuidance/CheckGuidance.d.ts +0 -1
  178. package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +1 -1
  179. package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +0 -1
  180. package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +6 -6
  181. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +3 -9
  182. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +1 -1
  183. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +2 -2
  184. package/dist/types/components/BankAccount/hooks/useAsyncAccountDetailsValidationRules.d.ts +1 -1
  185. package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +1 -1
  186. package/dist/types/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.d.ts +1 -1
  187. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1919 -1919
  188. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -0
  189. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  190. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +3 -3
  191. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -0
  192. package/dist/types/components/BankAccount/utils/defaultPayoutAccountFormat.d.ts +1 -1
  193. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +3 -3
  194. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +1 -1
  195. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -0
  196. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +1 -1
  197. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +1 -1
  198. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -2
  199. package/dist/types/components/Business/forms/BusinessSelection/{BusinessInformationCard.d.ts → BusinessInformationCard/BusinessInformationCard.d.ts} +4 -6
  200. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +1 -1
  201. package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +1 -1
  202. package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +1 -1
  203. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +1 -1
  204. package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +1 -1
  205. package/dist/types/components/Business/forms/RegistrationDocument/config.d.ts +1 -1
  206. package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -1
  207. package/dist/types/components/Business/forms/TaxDocument/config.d.ts +1 -1
  208. package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -1
  209. package/dist/types/components/Business/forms/rules.d.ts +22 -20
  210. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +1 -1
  211. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
  212. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -1
  213. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +2 -2
  214. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +3 -3
  215. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -3
  216. package/dist/types/components/Business/utils/companyUtil.d.ts +1 -1
  217. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +0 -1
  218. package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
  219. package/dist/types/components/EFP/fields/LegalFormField/types.d.ts +2 -1
  220. package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
  221. package/dist/types/components/EFP/fields/NaceCodeField/types.d.ts +1 -0
  222. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2355 -24
  223. package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +2 -2
  224. package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -2
  225. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +5 -1
  226. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +10 -1
  227. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +11 -1
  228. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingLegalInformation.d.ts +6 -1
  229. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +7 -2
  230. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +7 -1
  231. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +27 -112
  232. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +17 -4
  233. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +22 -0
  234. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SOFUploadModal.d.ts +0 -1
  235. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/sofStore.d.ts +1 -1
  236. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +3 -3
  237. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +1 -1
  238. package/dist/types/components/EFP/tasks/TaxReportingDropin/taxClassificationStore.d.ts +1 -1
  239. package/dist/types/components/EFP/tasks/TaxReportingDropin/types.d.ts +3 -3
  240. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +3 -3
  241. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
  242. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -1
  243. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -1
  244. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  245. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +1 -1
  246. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +1 -1
  247. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
  248. package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +1 -2
  249. package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +3 -3
  250. package/dist/types/components/Individual/fields/IdentityNumber/type.d.ts +1 -1
  251. package/dist/types/components/Individual/fields/LocalizedNameFields/LocalizedNameFields.d.ts +2 -0
  252. package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +9 -0
  253. package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +15 -0
  254. package/dist/types/components/Individual/fields/NameFields/types.d.ts +23 -0
  255. package/dist/types/components/Individual/fields/NameFields/validate.d.ts +4 -0
  256. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentManualUpload.d.ts +1 -1
  257. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +3 -3
  258. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +1 -1
  259. package/dist/types/components/Individual/forms/Individual/IdVerification/idVerificationProviderId.d.ts +1 -1
  260. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +1 -1
  261. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +2 -2
  262. package/dist/types/components/Individual/forms/Individual/Individual.d.ts +1 -1
  263. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +1 -1
  264. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +1 -1
  265. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +1 -1
  266. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +1 -1
  267. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +7 -5
  268. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
  269. package/dist/types/components/Individual/forms/Individual/rules.d.ts +34 -32
  270. package/dist/types/components/Individual/forms/Individual/types.d.ts +8 -8
  271. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.d.ts +2 -1
  272. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
  273. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.d.ts +1 -1
  274. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +1 -1
  275. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
  276. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.d.ts +1 -1
  277. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +3 -2
  278. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +1 -1
  279. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +1 -0
  280. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +23 -9
  281. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +1 -1
  282. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +37 -34
  283. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +4 -4
  284. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.d.ts +1 -1
  285. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +1 -3
  286. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaireModalContent.d.ts +1 -0
  287. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/RichText.d.ts +5 -0
  288. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.d.ts +1 -1
  289. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +3 -3
  290. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +5 -0
  291. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +1 -1
  292. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -2
  293. package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +1 -0
  294. package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +3 -1
  295. package/dist/types/components/Individual/mapping/mapLocalization.d.ts +3 -0
  296. package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +1 -1
  297. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +1 -1
  298. package/dist/types/components/Shared/EntityAssociation/types.d.ts +1 -1
  299. package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +1 -1
  300. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
  301. package/dist/types/components/Shared/FormNavigation/types.d.ts +3 -3
  302. package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
  303. package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
  304. package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
  305. package/dist/types/components/Shared/Summary/summaryItem.d.ts +1 -1
  306. package/dist/types/components/Shared/Summary/types.d.ts +3 -3
  307. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +6 -4
  308. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +1 -1
  309. package/dist/types/components/Shared/fields/CountryField/CountryField.d.ts +1 -1
  310. package/dist/types/components/Shared/fields/CountryField/types.d.ts +2 -2
  311. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
  312. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  313. package/dist/types/components/Shared/fields/Currency/types.d.ts +2 -2
  314. package/dist/types/components/Shared/fields/DBANameField/fieldConfig.d.ts +1 -1
  315. package/dist/types/components/Shared/fields/DateOfIncorporationField/fieldConfig.d.ts +1 -1
  316. package/dist/types/components/Shared/fields/EInvoicingCodeField/fieldConfig.d.ts +1 -1
  317. package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
  318. package/dist/types/components/Shared/fields/IdFieldTypeSelector/IndividualIdNumberTypeSelector.d.ts +2 -2
  319. package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +4 -3
  320. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  321. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +11 -2
  322. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +1 -1
  323. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
  324. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +1 -1
  325. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferVatNumberType.d.ts +1 -1
  326. package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +1 -1
  327. package/dist/types/components/Shared/fields/Name/Name.d.ts +1 -1
  328. package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +1 -1
  329. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
  330. package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
  331. package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +1 -1
  332. package/dist/types/components/Shared/fields/StateField/types.d.ts +3 -3
  333. package/dist/types/components/Shared/fields/StockExchangeMICField/fieldConfig.d.ts +1 -1
  334. package/dist/types/components/Shared/fields/StockISINField/fieldConfig.d.ts +1 -1
  335. package/dist/types/components/Shared/fields/StockTickerSymbol/fieldConfig.d.ts +1 -1
  336. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -1
  337. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
  338. package/dist/types/components/Shared/fields/VatNumberField/fieldConfig.d.ts +1 -1
  339. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
  340. package/dist/types/components/Shared/forms/Address/AddressField.d.ts +1 -1
  341. package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +3 -3
  342. package/dist/types/components/Shared/forms/Address/constants.d.ts +1 -1
  343. package/dist/types/components/Shared/forms/Address/types.d.ts +1 -2
  344. package/dist/types/components/Shared/forms/Address/utils.d.ts +3 -3
  345. package/dist/types/components/Shared/forms/Address/validate.d.ts +1 -1
  346. package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
  347. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +7 -7
  348. package/dist/types/components/Shared/forms/CompanyNameAndCountry/types.d.ts +1 -1
  349. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
  350. package/dist/types/components/Shared/forms/ContactDetails/ContactDetails.d.ts +1 -1
  351. package/dist/types/components/Shared/forms/ContactDetails/types.d.ts +1 -1
  352. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
  353. package/dist/types/components/Shared/forms/FinancialInformation/ReportedValue.d.ts +1 -1
  354. package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
  355. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +2 -2
  356. package/dist/types/components/Shared/forms/FinancialInformation/validate.d.ts +1 -0
  357. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
  358. package/dist/types/components/Shared/tasks/CustomerSupport/types.d.ts +1 -1
  359. package/dist/types/components/Shared/tasks/TaskList/PayoutAccountTaskListItem.d.ts +1 -1
  360. package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +1 -1
  361. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -2
  362. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -1
  363. package/dist/types/components/Trust/forms/Trust/Trust.d.ts +19 -3
  364. package/dist/types/components/Trust/forms/Trust/rules.d.ts +6 -6
  365. package/dist/types/components/Trust/forms/Trust/types.d.ts +2 -2
  366. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +1 -1
  367. package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -1
  368. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +14 -14
  369. package/dist/types/components/Trust/mapping/mapTrustDocumentToApiDocument.d.ts +1 -1
  370. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
  371. package/dist/types/components/Trust/tasks/TrustDropin/trustFormConfig.d.ts +1 -1
  372. package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +1 -1
  373. package/dist/types/components/Trust/utils/trustUtil.d.ts +4 -4
  374. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +2 -2
  375. package/dist/types/components/UnincorporatedPartnership/types/types.d.ts +1 -1
  376. package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts +3 -3
  377. package/dist/types/components/ui/atoms/ActionsMenu/ActionsMenu.d.ts +1 -1
  378. package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +1 -2
  379. package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -1
  380. package/dist/types/components/ui/atoms/Field/Field.types.d.ts +2 -0
  381. package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +1 -1
  382. package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +1 -1
  383. package/dist/types/components/ui/atoms/Svg/Svg.d.ts +1 -1
  384. package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
  385. package/dist/types/components/ui/molecules/Alert/Alert.d.ts +1 -1
  386. package/dist/types/components/ui/molecules/Alert/types.d.ts +1 -1
  387. package/dist/types/components/ui/molecules/Confirm/Confirm.d.ts +1 -1
  388. package/dist/types/components/ui/molecules/Confirm/Confirm.types.d.ts +1 -0
  389. package/dist/types/components/ui/molecules/Dropzone/Dropzone.d.ts +2 -1
  390. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +1 -1
  391. package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -1
  392. package/dist/types/components/ui/molecules/Dropzone/validate.d.ts +1 -1
  393. package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +1 -1
  394. package/dist/types/components/ui/molecules/ErrorPanel/VerificationErrors.d.ts +2 -1
  395. package/dist/types/components/ui/molecules/ErrorPanel/types.d.ts +3 -3
  396. package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +1 -1
  397. package/dist/types/components/ui/molecules/InputEmail/InputEmail.d.ts +1 -1
  398. package/dist/types/components/ui/molecules/InputTelephone/InputTelephone.d.ts +1 -1
  399. package/dist/types/components/ui/molecules/InputText/InputText.d.ts +1 -1
  400. package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +1 -5
  401. package/dist/types/constants/countries.d.ts +1 -1
  402. package/dist/types/context/ExperimentContext/types.d.ts +10 -1
  403. package/dist/types/context/FormContext/FormContext.d.ts +1 -1
  404. package/dist/types/context/FormRouterContext/FormRouterContext.d.ts +1 -1
  405. package/dist/types/context/FormRouterContext/types.d.ts +1 -1
  406. package/dist/types/context/SettingsContext/SettingsContext.d.ts +1 -1
  407. package/dist/types/context/SettingsContext/types.d.ts +1 -1
  408. package/dist/types/context/StateContext/StateContext.d.ts +1 -1
  409. package/dist/types/context/StateContext/StateContextSetter.d.ts +1 -1
  410. package/dist/types/context/StateContext/StateReducer.d.ts +4 -10
  411. package/dist/types/context/StateContext/types.d.ts +19 -17
  412. package/dist/types/context/StateContext/useGlobalData.d.ts +2 -2
  413. package/dist/types/core/EmbedShell/EmbedShell.d.ts +1 -1
  414. package/dist/types/core/UIElement/UIElement.d.ts +1 -1
  415. package/dist/types/core/analytics.d.ts +12 -10
  416. package/dist/types/core/environment/resolveEnvironment.d.ts +1 -1
  417. package/dist/types/core/error.d.ts +1 -1
  418. package/dist/types/core/errorMapping.d.ts +3 -3
  419. package/dist/types/core/models/api/address.d.ts +1 -1
  420. package/dist/types/core/models/api/financialReport.d.ts +1 -1
  421. package/dist/types/core/models/api/get-scenarios.d.ts +2 -8
  422. package/dist/types/core/models/api/individual.d.ts +10 -0
  423. package/dist/types/core/models/api/legal-arrangement.d.ts +1 -1
  424. package/dist/types/core/models/api/legal-entity-association.d.ts +5 -0
  425. package/dist/types/core/models/api/organization.d.ts +1 -1
  426. package/dist/types/core/models/api/phone.d.ts +1 -1
  427. package/dist/types/core/models/api/remediating-action.d.ts +1 -1
  428. package/dist/types/core/models/api/source-of-funds.d.ts +1 -1
  429. package/dist/types/core/models/api/transfer-instrument.d.ts +1 -1
  430. package/dist/types/core/models/api/verification-error.d.ts +1 -1
  431. package/dist/types/core/models/api/view-verification-status.d.ts +0 -4
  432. package/dist/types/core/process-field-configurations.d.ts +9 -9
  433. package/dist/types/core/types.d.ts +1 -1
  434. package/dist/types/core/user-events.d.ts +13 -2
  435. package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +2 -2
  436. package/dist/types/datasets/generators/getBusinessTypeExamplesForCountry.d.ts +2 -2
  437. package/dist/types/datasets/generators/getCompanyTypeExamplesForCountry.d.ts +2 -2
  438. package/dist/types/datasets/generators/getLegalArrangementTypeExamplesForCountry.d.ts +3 -3
  439. package/dist/types/datasets/generators/loadCountries.d.ts +1 -1
  440. package/dist/types/datasets/generators/loadStatesDataset.d.ts +1 -1
  441. package/dist/types/embeds/EmbedBaseElement.d.ts +41 -0
  442. package/dist/types/embeds/EmbedCore.d.ts +22 -0
  443. package/dist/types/embeds/baseEmbedProps.d.ts +21 -0
  444. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +13 -0
  445. package/dist/types/embeds/individual/AdyenIndividual.d.ts +12 -0
  446. package/dist/types/embeds/manage-individual/AdyenManageIndividual.d.ts +12 -0
  447. package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +12 -0
  448. package/dist/types/embeds/manage-terms-of-service/AdyenManageTermsOfService.d.ts +12 -0
  449. package/dist/types/embeds/manage-transfer-instruments/AdyenManageTransferInstrument.d.ts +15 -0
  450. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +11 -0
  451. package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +15 -0
  452. package/dist/types/embeds/terms-of-service/AdyenTermsOfService.d.ts +12 -0
  453. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +15 -0
  454. package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +20 -0
  455. package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +1 -1
  456. package/dist/types/hooks/singpass/useHasSeenSingpassSelection.d.ts +2 -1
  457. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -2
  458. package/dist/types/hooks/useAccountHolder.d.ts +1 -1
  459. package/dist/types/hooks/useAllowedCountries.d.ts +1 -1
  460. package/dist/types/hooks/useAsyncValidator.d.ts +2 -1
  461. package/dist/types/hooks/useBusinessSetup.d.ts +1 -1
  462. package/dist/types/hooks/useDataConflicts.d.ts +0 -6
  463. package/dist/types/hooks/useDataMissingRemediations.d.ts +1 -1
  464. package/dist/types/hooks/useForm/reducer.d.ts +2 -2
  465. package/dist/types/hooks/useForm/types.d.ts +15 -18
  466. package/dist/types/hooks/useFormComposer.d.ts +2 -2
  467. package/dist/types/hooks/useMultiForm/reducer.d.ts +4 -3
  468. package/dist/types/hooks/useMultiForm/types.d.ts +0 -39
  469. package/dist/types/hooks/useMultiForm/useMultiFormAsyncValidator.d.ts +2 -2
  470. package/dist/types/hooks/useScenarioConfiguration.d.ts +5 -5
  471. package/dist/types/language/utils.d.ts +1 -1
  472. package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
  473. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
  474. package/dist/types/stores/globalStore/get-task-status.d.ts +1 -1
  475. package/dist/types/stores/globalStore/globalStore.d.ts +4 -4
  476. package/dist/types/stores/globalStore/taskStatus.d.ts +1 -1
  477. package/dist/types/{core/models → types/datasets}/country-code.d.ts +2 -1
  478. package/dist/types/{core/models → types}/errors/capability-problems.d.ts +1 -1
  479. package/dist/types/{core/models → types}/errors/entity-problems.d.ts +4 -4
  480. package/dist/types/{core/models → types}/errors/error-message.d.ts +1 -1
  481. package/dist/types/{core/models → types}/errors/maintenance-mode-error.d.ts +1 -1
  482. package/dist/types/{core/models → types}/errors/remediation.d.ts +1 -1
  483. package/dist/types/{core/models → types}/form-configuration.d.ts +4 -4
  484. package/dist/types/{core/models → types}/form-rules.d.ts +10 -8
  485. package/dist/types/{core/models → types}/form.d.ts +1 -1
  486. package/dist/types/utils/accountHolderUtils.d.ts +1 -1
  487. package/dist/types/utils/api/documentUtils.d.ts +1 -1
  488. package/dist/types/utils/api/getProblemsForEntity.d.ts +2 -2
  489. package/dist/types/utils/api/processCapabilitites.d.ts +5 -4
  490. package/dist/types/utils/api/processValidationErrors.d.ts +3 -3
  491. package/dist/types/utils/birthDateUtils.d.ts +53 -2
  492. package/dist/types/utils/country.d.ts +5 -2
  493. package/dist/types/utils/datasetUtil.d.ts +3 -3
  494. package/dist/types/{core/models/decision-maker.d.ts → utils/decisionMaker.d.ts} +2 -2
  495. package/dist/types/utils/dropinUtils.d.ts +2 -2
  496. package/dist/types/utils/entityAssociationUtil.d.ts +6 -6
  497. package/dist/types/utils/entityStatusUtil.d.ts +2 -2
  498. package/dist/types/{core/models/field-configurations.d.ts → utils/fieldConfigurations.d.ts} +4 -4
  499. package/dist/types/utils/formUtils.d.ts +1 -1
  500. package/dist/types/utils/formatCurrency.d.ts +1 -1
  501. package/dist/types/utils/getLegalEntityCountry.d.ts +1 -1
  502. package/dist/types/utils/getSSNType.d.ts +1 -1
  503. package/dist/types/utils/mapping/mapExistingFile.d.ts +1 -1
  504. package/dist/types/utils/mapping/utils.d.ts +7 -10
  505. package/dist/types/utils/omitObscuredFieldsIfUnchanged.d.ts +1 -1
  506. package/dist/types/utils/perCountry.d.ts +1 -1
  507. package/dist/types/utils/perState.d.ts +3 -2
  508. package/dist/types/utils/regex/postalCodePatterns.d.ts +1 -1
  509. package/dist/types/utils/trackNavigation.d.ts +1 -2
  510. package/dist/types/utils/validation/types.d.ts +1 -1
  511. package/dist/types/utils/validation/validationResult.d.ts +1 -1
  512. package/dist/types/{core/models/errors/validation-error.d.ts → utils/validationError.d.ts} +1 -1
  513. package/dist/types/utils/validatorUtils.d.ts +5 -3
  514. package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +2 -2
  515. package/dist/{useMultiForm-Lh2i5tRJ.js → useMultiForm-Bwx2nVhh.js} +4 -3
  516. package/dist/{useOnboardingStatus-D1ym3MHp.js → useOnboardingStatus-Cwba-HzS.js} +2 -2
  517. package/dist/{useSalesChannelsSettings-BGuBY0ls.js → useSalesChannelsSettings-BLzegVJh.js} +2 -2
  518. package/dist/{useTermsOfServiceStatus-DGZYHVsm.js → useTermsOfServiceStatus-C-i9mF4m.js} +4 -4
  519. package/dist/{useUpdateLegalEntity-By6uwPUg.js → useUpdateLegalEntity-xQlAqIqy.js} +2 -2
  520. package/dist/{utils-BPrqY9DW.js → utils-DXv7uAh6.js} +4 -4
  521. package/dist/{validate-Dyb8B4Hi.js → validate-BN5p-GhK.js} +2 -2
  522. package/dist/validate-CuwYJGc9.js +94 -0
  523. package/dist/vue/adyen-individual.js +1 -1
  524. package/dist/vue/adyen-manage-individual.js +1 -1
  525. package/dist/vue/adyen-terms-of-service.js +1 -1
  526. package/dist/vue/adyen-transfer-instrument.js +1 -1
  527. package/dist/{yaml-Ba_Tz8d4.js → yaml-jFdy-qnY.js} +2 -2
  528. package/package.json +32 -31
  529. package/dist/CXEL7IU7-B_FIdhoh.js +0 -55
  530. package/dist/Confirm-okTxq40p.js +0 -56
  531. package/dist/ContractViewer-BChszuWL.js +0 -980
  532. package/dist/FormNavigation-B6RspX9C.js +0 -145
  533. package/dist/FormWrapper-Dvm1o4tC.js +0 -149
  534. package/dist/HASRA6WW-C1SPXfmX.js +0 -12411
  535. package/dist/I3HPI4QX-A8JLvlId.js +0 -46
  536. package/dist/MaybeModal-Djz8fRfd.js +0 -18
  537. package/dist/Modal-CRNejb1x.js +0 -135
  538. package/dist/PayoutDetailsDropin-Bw29V8E7.js +0 -901
  539. package/dist/PayoutDetailsPage-BHNHaMbR.js +0 -57
  540. package/dist/ShadowStylesRoot-D4KvocCc.js +0 -103
  541. package/dist/Spacer-BK3jDget.js +0 -18
  542. package/dist/StepProgressIndicator-BuGfVdlr.js +0 -74
  543. package/dist/documentUtils-51iMbUyU.js +0 -226
  544. package/dist/dropinUtils-Bk0T79SK.js +0 -204
  545. package/dist/individualFormConfig-BrFLPTfr.js +0 -171
  546. package/dist/mapExistingFile-BE74t9jV.js +0 -25
  547. package/dist/mapTransferInstrumentToPayoutAccount-DR8zv8gS.js +0 -30
  548. package/dist/omitObscuredFieldsIfUnchanged-DhCrqm4T.js +0 -28
  549. package/dist/process-field-configurations-DugpEY9k.js +0 -185
  550. package/dist/processValidationErrors-RYlNmxB9.js +0 -203
  551. package/dist/types/api/companyDataSet/useCompanyDataset.d.ts +0 -5
  552. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/formatId.d.ts +0 -3
  553. package/dist/types/embeds/ShadowStylesRoot.d.ts +0 -3
  554. package/dist/useToastContext-CF2xonft.js +0 -21
  555. package/dist/utils-B1H_8b1P.js +0 -74
  556. package/dist/validate-wd48TLfx.js +0 -245
  557. /package/dist/types/{core/types/AccountHolder.types.d.ts → types/accountHolder.d.ts} +0 -0
  558. /package/dist/types/{core/models → types/datasets}/currency.d.ts +0 -0
  559. /package/dist/types/{core/models → types/datasets}/province-code.d.ts +0 -0
  560. /package/dist/types/{core/models → types/datasets}/state-code.d.ts +0 -0
  561. /package/dist/types/{core/models → types}/errors/form-verification-errors.d.ts +0 -0
  562. /package/dist/types/{core/models → types}/errors/remediation-action-context.d.ts +0 -0
  563. /package/dist/types/{core/models → types}/file.d.ts +0 -0
@@ -2,58 +2,23 @@
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] = "4b8b06b2-0644-4e9e-a906-e14e5e300a8a", e._sentryDebugIdIdentifier = "sentry-dbid-4b8b06b2-0644-4e9e-a906-e14e5e300a8a");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "52d3345a-d07d-4d8c-b6d3-766fa62cc152", e._sentryDebugIdIdentifier = "sentry-dbid-52d3345a-d07d-4d8c-b6d3-766fa62cc152");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { am as CountryCodes, X as TaskTypes, q as useApiContext, b5 as useMutation, b7 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, ap as resolveFieldMetadata, c4 as getSSNType, an as isEmpty, c5 as defaultFieldMetadata, c6 as defaultFieldConfig, br as defaultFieldMetadata$1, bs as fieldConfig, c7 as defaultFieldMetadata$2, z as LegalEntityType, c8 as defaultFieldConfig$1, c9 as getAgeToday, ca as euCountries, cb as getLocalizedIdDocumentTypeOptions, cc as individualApiKeyMapping, b8 as individualComponentsKeyMapping, bJ as reverseMapping, cd as getNomineeFromAssociation, aJ as createLogger, U as useAccountHolder, b as useI18nContext, $ as useAnalyticsContext, a5 as useExperimentsContext, K as useSettingsContext, ce as useProviderStatus, g as getLegalEntityCountry, bW as getAssociatedLeAnalyticsPayload, cf as addressValidators, cg as getAsyncIdNumberValidationRule, bt as getAsyncPhoneValidationRules, ch as addressFormatters, ci as setHasMotionCaptureScenario, cj as individualForms, ck as showIndividualMotionCapture, bp as getAllowedDecisionMakerRoles, a_ as datasetUtilities, cl as Individual, cm as filterOutUnwantedAssociationsIfRootLE, b1 as cloneObject, cn as mapAddressLabels, co as individualDocumentForms, cp as individualDocumentMapping, cq as individualObscuredFields, cr as drop, ak as getOwnEntityAssociations, cs as hasNomineesChanged, ct as attachNomineeToRole, cu as idVerificationProviderId, cv as doArraysMatch, bq as DecisionMakerType, bC as createFormRules, bo as getAvailableDecisionMakerRoleTypes, cw as allowedCountriesForNominee, bS as getAddressSchemaForCountry, bT as COUNTRIES_WITH_STATES_DATASET, cx as Scenarios, ax as Field, bw as Select, cy as isTruthyValidator, cz as licenseCardNumberDefaultMetadata, cA as licenseCardNumberDefaultConfig, ao as mergeFieldMetadataIntoProps, aw as createFormUtils, bx as useFormContext, at as getFieldProps, cB as idNumberFields, cC as IdentityNumber, cD as additionallIdNumberOptions, cE as MaskedInput, bM as InputDate, cF as formatDateObj, cG as DriversLicense, cH as addressFields, u as useAllowedCountries, cI as getDefaultTaxIdNumberType, F as FormHeader, av as ErrorPanel, G as Typography, aD as CountryField, bU as Address, bV as getAddressSchemaLabelsByCountry, bK as Link, cJ as IndividualIdNumberTypeSelector, cK as TaxInformationField, cL as PatriotActDisclosure, au as nameFields, cM as decisionMakerRoleFields, cN as nomineeFields, cO as contactDetailFields, C as Alert, aS as ContextGuidance, aZ as TrustedFieldsProvider, cP as DecisionMakerRole, cQ as NomineeDecisionMakerRole, aC as Name, bg as InputText, bu as ContactDetails, bB as keysOf, aY as objectsDeepEqual, bz as isEmpty$1, cR as RadioWithLabel, bi as listToRecord, Z as Button, ba as Svg, cS as pick, cT as IdVerification, _ as IconButton, c as useDataset, d as datasetIdentifier, L as Loader, cU as IdDocumentManualUpload, cV as idDocumentUploadFields, cW as useFormRouterContext, by as getFormProps, bA as useCapabilities, cX as setShowIndividualMotionCapture, cY as shouldShowMotionCapture, cZ as hasMotionCaptureScenario, c_ as MemoizedProofOfRelationship, c$ as MemoizedDocumentUpload, d0 as MemoizedProofOfResidencyUpload, bb as useQueryClient } from "./StoreProvider-COHi02bX.js";
11
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
12
11
  import { useMemo, useState, useEffect, useCallback } from "preact/hooks";
13
- import { e as useScenarios, u as useScenarioConfiguration, i as isValidationError, p as processValidationErrors, d as isMaintenanceModeError } from "./processValidationErrors-RYlNmxB9.js";
14
- import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-By6uwPUg.js";
15
- import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-Dyb8B4Hi.js";
16
- import { F as FormContextProvider, a as FormFlow } from "./FormFlow-CZgc09E3.js";
17
- import { u as useToastContext } from "./useToastContext-CF2xonft.js";
18
- import { g as getPropsFromConfigurations, c as composePerScenarioFormConfigurations } from "./process-field-configurations-DugpEY9k.js";
19
- import { a as useSingpassMyInfoLogin, P as ProviderButton } from "./ProviderButton-vD5DUJaN.js";
20
- import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer, t as trackNavigation } from "./dropinUtils-Bk0T79SK.js";
21
- import { u as useMultiForm } from "./useMultiForm-Lh2i5tRJ.js";
22
- import { b as getIdDocument, g as getDocument, c as createDocumentRequest, d as documentApiUtils, m as mergeAttachments, a as getFileExtention } from "./documentUtils-51iMbUyU.js";
23
- import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-UNUNInq5.js";
24
- import { l as localizeDateString } from "./localizeDateString-KlstHAcM.js";
25
- import { o as omitObscuredFieldsIfUnchanged } from "./omitObscuredFieldsIfUnchanged-DhCrqm4T.js";
26
- import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-a4kJDPzY.js";
27
- import { f as formatObject } from "./utils-B1H_8b1P.js";
28
- import { f as fieldsPerScenario, a as isLowRiskCountry } from "./individualFormConfig-BrFLPTfr.js";
29
- import { C as Confirm } from "./Confirm-okTxq40p.js";
30
- import { M as Modal } from "./Modal-CRNejb1x.js";
31
- import { S as Spacer } from "./Spacer-BK3jDget.js";
32
- import { T as TileGroup } from "./TileGroup-B1IymoWv.js";
33
- import { m as mapExistingFile, g as getPageName, a as getPage } from "./mapExistingFile-BE74t9jV.js";
34
- const KEY_MARKETS = [
35
- CountryCodes.UnitedStates,
36
- CountryCodes.UnitedKingdom,
37
- CountryCodes.Germany,
38
- CountryCodes.France,
39
- CountryCodes.Canada,
40
- CountryCodes.Australia
41
- ];
42
- function isOnfidoAutofillFlowEnabled(country, taskType, isExperimentEnabled) {
43
- const market = KEY_MARKETS.includes(country) ? "KeyMarkets" : "AdditionalMarkets";
44
- let type;
45
- switch (taskType) {
46
- case TaskTypes.INDIVIDUAL:
47
- type = "PureIndividuals";
48
- break;
49
- case TaskTypes.DECISION_MAKER:
50
- type = "DecisionMakers";
51
- break;
52
- default:
53
- return false;
54
- }
55
- return isExperimentEnabled(`EnableAutofillFlowFor${type}In${market}`);
56
- }
12
+ import { p as useApiContext, bf as useMutation, bh as httpPost, c7 as matchesRegex, c8 as trimValWithOneSpace, c9 as NO_ALPHABET_REGEX, ca as EMOJI_REGEX, cb as hasRepeatedCharacters, cc as isInvalidName, cd as INDIVIDUAL_VALID_CHAR_REGEX, ce as getFormattingRegEx, cf as SPECIAL_CHARS, cg as standardKatakanaValidator, ch as standardKanjiValidator, ar as resolveFieldMetadata, ao as CountryCodes, ci as getSSNType, ap as isEmpty, cj as defaultFieldMetadata, ck as defaultFieldConfig, bE as defaultFieldMetadata$1, bF as fieldConfig, W as TaskTypes, cl as defaultFieldMetadata$2, y as LegalEntityType, cm as defaultFieldConfig$1, cn as getAgeToday, co as euCountries, cp as getIdDocument, cq as getDocument, cr as mapExistingFile, cs as getPageName, ct as getLocalizedIdDocumentTypeOptions, cu as getPage, cv as createDocumentRequest, bS as formatObject, cw as individualApiKeyMapping, bk as individualComponentsKeyMapping, bR as reverseMapping, cx as getNomineeFromAssociation, cy as drop, X as createLogger, P as useAccountHolder, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, a6 as useExperimentsContext, J as useSettingsContext, cz as documentApiUtils, cA as useProviderStatus, g as getLegalEntityCountry, c2 as getAssociatedLeAnalyticsPayload, cB as addressValidators, cC as getAsyncIdNumberValidationRule, bG as getAsyncPhoneValidationRules, cD as addressFormatters, cE as useScenarios, cF as setHasMotionCaptureScenario, cG as useScenarioConfiguration, cH as getPropsFromConfigurations, cI as individualForms, cJ as showIndividualMotionCapture, bO as getRequiredForms, bP as addValidityToForms, bC as getAllowedDecisionMakerRoles, b0 as datasetUtilities, bQ as useFormComposer, c3 as trackNavigation, cK as Individual, cL as composePerScenarioFormConfigurations, cM as omitObscuredFieldsIfUnchanged, cN as filterOutUnwantedAssociationsIfRootLE, c4 as isValidationError, c5 as processValidationErrors, c6 as isMaintenanceModeError, ba as cloneObject, cO as mapAddressLabels, cP as individualDocumentForms, cQ as individualDocumentMapping, cR as individualObscuredFields, cS as mergeAttachments, cT as getFileExtention, ak as getOwnEntityAssociations, cU as hasNomineesChanged, cV as attachNomineeToRole, cW as idVerificationProviderId, cX as doArraysMatch, bD as DecisionMakerType, cY as createFormRules, bB as getAvailableDecisionMakerRoleTypes, cZ as allowedCountriesForNominee, b_ as getAddressSchemaForCountry, b$ as COUNTRIES_WITH_STATES_DATASET, c_ as Scenarios, c$ as isLowRiskCountry, az as Field, bK as Select, d0 as isTruthyValidator, d1 as licenseCardNumberDefaultMetadata, d2 as licenseCardNumberDefaultConfig, aq as mergeFieldMetadataIntoProps, ay as createFormUtils, bL as useFormContext, av as getFieldProps, d3 as idNumberFields, d4 as IdentityNumber, d5 as additionallIdNumberOptions, d6 as MaskedInput, bW as InputDate, d7 as formatDateObj, d8 as DriversLicense, d9 as addressFields, u as useAllowedCountries, K as SettingNames, da as getDefaultTaxIdNumberType, F as FormHeader, ax as ErrorPanel, C as Typography, aF as CountryField, c0 as Address, c1 as getAddressSchemaLabelsByCountry, bU as Link, b8 as Confirm, db as getAgeRangeForLegalRepresentative, dc as IndividualIdNumberTypeSelector, dd as TaxInformationField, de as PatriotActDisclosure, df as isLegalRepresentativeNeeded, aw as nameFields, dg as decisionMakerRoleFields, dh as nomineeFields, di as contactDetailFields, B as Alert, aU as ContextGuidance, a$ as TrustedFieldsProvider, dj as DecisionMakerRole, dk as NomineeDecisionMakerRole, dl as LocalizedNameFields, bq as InputText, bH as ContactDetails, dm as keysOf, a_ as objectsDeepEqual, bN as isEmpty$1, dn as RadioWithLabel, bs as listToRecord, b2 as Modal, Z as Button, bm as Svg, dp as pick, dq as IdVerification, b7 as Spacer, _ as IconButton, c as useDataset, d as datasetIdentifier, L as Loader, dr as isPersonUnderAge, ds as IdDocumentManualUpload, dt as idDocumentUploadFields, du as useFormRouterContext, bM as getFormProps, dv as useCapabilities, dw as hasMotionCaptureScenario, dx as setShowIndividualMotionCapture, dy as shouldShowMotionCapture, dz as MemoizedProofOfRelationship, dA as MemoizedDocumentUpload, dB as MemoizedProofOfResidencyUpload, dC as individualOnfidoApiKeyMapping, dD as individualOnfidoBaseMapping, bn as useQueryClient, dE as individualOnfidoDocumentMapping, dF as individualOnfidoObscuredFields } from "./StoreProvider-BmzY19Td.js";
13
+ import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-xQlAqIqy.js";
14
+ import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-BN5p-GhK.js";
15
+ import { F as FormContextProvider, a as FormFlow } from "./FormFlow-Bt-mu4Wm.js";
16
+ import { u as useSingpassMyInfoLogin, P as ProviderButton } from "./ProviderButton-DAsW5EVa.js";
17
+ import { u as useMultiForm } from "./useMultiForm-Bwx2nVhh.js";
18
+ import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-BW8_TEQl.js";
19
+ import { l as localizeDateString } from "./localizeDateString-QtCjf8Fg.js";
20
+ import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-CUANHpja.js";
21
+ import { T as TileGroup } from "./TileGroup-i5Jc08ns.js";
57
22
  const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
58
23
  return await httpPost(
59
24
  {
@@ -139,6 +104,38 @@ const onfidoDocumentTypeMapping = [
139
104
  { id: "identityCard", name: "identityCard", hasBackPage: true },
140
105
  { id: "passport", name: "passport", hasBackPage: false }
141
106
  ];
107
+ const jaHaniNameValidationRules = {
108
+ jaHaniFirstName: [
109
+ {
110
+ modes: ["blur"],
111
+ validate: (input) => standardKanjiValidator(input),
112
+ errorMessage: "nameMustContainLetters"
113
+ }
114
+ ],
115
+ jaHaniLastName: [
116
+ {
117
+ modes: ["blur"],
118
+ validate: (input) => standardKanjiValidator(input),
119
+ errorMessage: "nameMustContainLetters"
120
+ }
121
+ ]
122
+ };
123
+ const jaKanaNameValidationRules = {
124
+ jaKanaFirstName: [
125
+ {
126
+ modes: ["blur"],
127
+ validate: (input) => standardKatakanaValidator(input),
128
+ errorMessage: "nameMustContainLetters"
129
+ }
130
+ ],
131
+ jaKanaLastName: [
132
+ {
133
+ modes: ["blur"],
134
+ validate: (input) => standardKatakanaValidator(input),
135
+ errorMessage: "nameMustContainLetters"
136
+ }
137
+ ]
138
+ };
142
139
  const isNotOutOfRangeBirthDateValidatorRule$1 = {
143
140
  modes: ["blur"],
144
141
  validate: (birthDate) => !isEmpty(birthDate) && new Date(birthDate) < /* @__PURE__ */ new Date(),
@@ -225,7 +222,9 @@ const personalDetailsValidators = ({
225
222
  { idNumberType: derivedIdNumberType },
226
223
  defaultFieldMetadata
227
224
  )) == null ? void 0 : _a2.validators;
228
- })()
225
+ })(),
226
+ ...jaHaniNameValidationRules,
227
+ ...jaKanaNameValidationRules
229
228
  };
230
229
  };
231
230
  const mandateIdVerificationForMotionCapture = (showMotionCapture, derivedProps) => {
@@ -244,27 +243,27 @@ const mandateIdVerificationForMotionCapture = (showMotionCapture, derivedProps)
244
243
  return copiedDerivedProps;
245
244
  };
246
245
  const mapApiDocumentToIndividualDocuments = (entityId) => {
247
- const idDocument = getIdDocument(entityId);
246
+ const idDocument2 = getIdDocument(entityId);
248
247
  const proofOfResidency = getDocument(entityId, "proofOfResidency");
249
248
  const proofOfNationalId = getDocument(entityId, "proofOfNationalIdNumber");
250
249
  const proofOfRelationship = getDocument(entityId, "proofOfRelationship");
251
250
  return {
252
- idDocument: idDocument ? mapApiIdDocumentToSchema(idDocument) : void 0,
251
+ idDocument: idDocument2 ? mapApiIdDocumentToSchema(idDocument2) : void 0,
253
252
  proofOfResidency: proofOfResidency ? { proofOfResidency: [mapExistingFile(getPageName(proofOfResidency))] } : void 0,
254
253
  proofOfNationalId: proofOfNationalId ? { proofOfNationalId: [mapExistingFile(getPageName(proofOfNationalId))] } : void 0,
255
254
  proofOfRelationship: proofOfRelationship ? { proofOfRelationship: [mapExistingFile(getPageName(proofOfRelationship))] } : void 0
256
255
  };
257
256
  };
258
- const mapApiIdDocumentToSchema = (idDocument) => {
259
- const { type, attachments, modificationDate } = idDocument;
257
+ const mapApiIdDocumentToSchema = (idDocument2) => {
258
+ const { type, attachments, modificationDate } = idDocument2;
260
259
  const { hasBackPage } = getLocalizedIdDocumentTypeOptions().find(({ id }) => id === type);
261
260
  let frontPage;
262
261
  let backPage;
263
262
  if ((attachments == null ? void 0 : attachments.length) === 1) {
264
- frontPage = getPage(idDocument);
263
+ frontPage = getPage(idDocument2);
265
264
  } else {
266
- frontPage = hasBackPage ? getPage(idDocument, "front") : getPage(idDocument);
267
- backPage = hasBackPage ? getPage(idDocument, "back") : void 0;
265
+ frontPage = hasBackPage ? getPage(idDocument2, "front") : getPage(idDocument2);
266
+ backPage = hasBackPage ? getPage(idDocument2, "back") : void 0;
268
267
  }
269
268
  return {
270
269
  ...frontPage ? { idFrontPage: [mapExistingFile(frontPage.pageName ?? "")] } : {},
@@ -277,15 +276,15 @@ const mapIndividualDocumentToApiDocument = async (data, entityId) => {
277
276
  var _a, _b;
278
277
  if (!data) return void 0;
279
278
  const { proofOfNationalId, proofOfResidency, proofOfRelationship } = data;
280
- const idDocument = "idDocument" in data ? data.idDocument : data.manualIdUpload;
279
+ const idDocument2 = "idDocument" in data ? data.idDocument : data.manualIdUpload;
281
280
  const entityType = "legalEntity";
282
281
  const documents = await Promise.all([
283
- (idDocument == null ? void 0 : idDocument.idFrontPage) ? createDocumentRequest({
282
+ (idDocument2 == null ? void 0 : idDocument2.idFrontPage) ? createDocumentRequest({
284
283
  entityId,
285
284
  entityType,
286
- documentType: idDocument.idDocumentType,
287
- page1: (_a = idDocument.idFrontPage) == null ? void 0 : _a[0],
288
- page2: (_b = idDocument.idBackPage) == null ? void 0 : _b[0]
285
+ documentType: idDocument2.idDocumentType,
286
+ page1: (_a = idDocument2.idFrontPage) == null ? void 0 : _a[0],
287
+ page2: (_b = idDocument2.idBackPage) == null ? void 0 : _b[0]
289
288
  }) : void 0,
290
289
  (proofOfNationalId == null ? void 0 : proofOfNationalId.proofOfNationalId) ? createDocumentRequest({
291
290
  entityId,
@@ -353,6 +352,28 @@ const adjustIdentificationData = (data, apiData) => {
353
352
  };
354
353
  }
355
354
  };
355
+ const mapNameLocalization = (data) => {
356
+ const localization = [];
357
+ if (data.jaHaniFirstName || data.jaHaniLastName) {
358
+ localization.push({
359
+ script: "ja-Hani",
360
+ fields: {
361
+ firstName: data.jaHaniFirstName,
362
+ lastName: data.jaHaniLastName
363
+ }
364
+ });
365
+ }
366
+ if (data.jaKanaFirstName || data.jaKanaLastName) {
367
+ localization.push({
368
+ script: "ja-Kana",
369
+ fields: {
370
+ firstName: data.jaKanaFirstName,
371
+ lastName: data.jaKanaLastName
372
+ }
373
+ });
374
+ }
375
+ return localization;
376
+ };
356
377
  const mapIndividualToLegalEntity = (data) => {
357
378
  var _a;
358
379
  const requestObj = {
@@ -365,6 +386,10 @@ const mapIndividualToLegalEntity = (data) => {
365
386
  personalDetails,
366
387
  requestObj.individual.identificationData
367
388
  );
389
+ const localization = mapNameLocalization(personalDetails);
390
+ if (localization.length) {
391
+ requestObj.individual.name.localization = localization;
392
+ }
368
393
  if ((_a = personalDetails.phoneNumber) == null ? void 0 : _a.number) {
369
394
  requestObj.individual.phone = {
370
395
  number: personalDetails.phoneNumber.number,
@@ -376,7 +401,7 @@ const mapIndividualToLegalEntity = (data) => {
376
401
  return requestObj;
377
402
  };
378
403
  const mapLegalEntityToIndividual = (legalEntity, isChangingType, isRoleFieldNeeded, parentLegalEntity, isLegalRepresentative) => {
379
- var _a, _b, _c, _d, _e, _f, _g;
404
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
380
405
  let individualData = formatObject(
381
406
  legalEntity,
382
407
  individualComponentsKeyMapping
@@ -406,27 +431,233 @@ const mapLegalEntityToIndividual = (legalEntity, isChangingType, isRoleFieldNeed
406
431
  ...mapApiDocumentToIndividualDocuments(legalEntity == null ? void 0 : legalEntity.id)
407
432
  };
408
433
  }
434
+ if (((_e = legalEntity == null ? void 0 : legalEntity.individual) == null ? void 0 : _e.residentialAddress.country) === "JP" && ((_g = (_f = legalEntity.individual) == null ? void 0 : _f.name) == null ? void 0 : _g.localization)) {
435
+ const configs = [
436
+ {
437
+ script: "ja-Hani",
438
+ mappingFunction: (l) => {
439
+ var _a2, _b2;
440
+ return {
441
+ jaHaniFirstName: (_a2 = l.fields) == null ? void 0 : _a2.firstName,
442
+ jaHaniLastName: (_b2 = l.fields) == null ? void 0 : _b2.lastName
443
+ };
444
+ }
445
+ },
446
+ {
447
+ script: "ja-Kana",
448
+ mappingFunction: (l) => {
449
+ var _a2, _b2;
450
+ return {
451
+ jaKanaFirstName: (_a2 = l.fields) == null ? void 0 : _a2.firstName,
452
+ jaKanaLastName: (_b2 = l.fields) == null ? void 0 : _b2.lastName
453
+ };
454
+ }
455
+ }
456
+ ];
457
+ configs.forEach((config) => {
458
+ var _a2, _b2;
459
+ const localizationToMap = (_b2 = (_a2 = legalEntity.individual) == null ? void 0 : _a2.name.localization) == null ? void 0 : _b2.find(
460
+ (l) => l.script === config.script
461
+ );
462
+ if (localizationToMap) {
463
+ individualData.personalDetails = {
464
+ ...individualData.personalDetails,
465
+ ...config.mappingFunction(localizationToMap)
466
+ };
467
+ }
468
+ });
469
+ }
409
470
  if (!(parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations)) {
410
471
  return individualData;
411
472
  }
412
- const associations = ((_e = parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) == null ? void 0 : _e.filter((ea) => ea.legalEntityId === (legalEntity == null ? void 0 : legalEntity.id))) ?? [];
473
+ const associations = ((_h = parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) == null ? void 0 : _h.filter((ea) => ea.legalEntityId === (legalEntity == null ? void 0 : legalEntity.id))) ?? [];
413
474
  if (isRoleFieldNeeded) {
414
475
  individualData.personalDetails.role = associations.map((ea) => ea.type);
415
- individualData.personalDetails.jobTitle = (_f = associations.find(
476
+ individualData.personalDetails.jobTitle = (_i = associations.find(
416
477
  ({ jobTitle }) => Boolean(jobTitle)
417
- )) == null ? void 0 : _f.jobTitle;
478
+ )) == null ? void 0 : _i.jobTitle;
418
479
  }
419
480
  individualData.personalDetails = getNomineeFromAssociation(
420
481
  associations,
421
482
  individualData.personalDetails
422
483
  );
423
484
  if (isLegalRepresentative) {
424
- individualData.personalDetails.relationship = (_g = associations.find(
485
+ individualData.personalDetails.relationship = (_j = associations.find(
425
486
  ({ relationship }) => Boolean(relationship)
426
- )) == null ? void 0 : _g.relationship;
487
+ )) == null ? void 0 : _j.relationship;
427
488
  }
428
489
  return individualData;
429
490
  };
491
+ const identityBase = {
492
+ role: {
493
+ rule: "requiredIfDecisionMakerTask"
494
+ },
495
+ firstName: {
496
+ rule: "REQUIRED"
497
+ },
498
+ lastName: {
499
+ rule: "REQUIRED"
500
+ },
501
+ birthDate: {
502
+ rule: "REQUIRED"
503
+ },
504
+ phoneNumber: {
505
+ rules: ["requiredIfPhoneScenarioDisabled", "contactsIfRequiredForRole"]
506
+ },
507
+ email: {
508
+ rule: "contactsIfRequiredForRole"
509
+ },
510
+ jobTitle: {
511
+ rule: "jobTitleIfRequiredForRole"
512
+ },
513
+ nationality: {
514
+ rule: "nationalityIfRequiredForRole"
515
+ },
516
+ address: {
517
+ rule: "addressIfRequiredForCountry"
518
+ },
519
+ otherAddressInformation: {
520
+ rule: "otherAddressInfoIfRequiredForCountry"
521
+ },
522
+ country: {
523
+ rule: "REQUIRED"
524
+ },
525
+ postalCode: {
526
+ rule: "postalCodeIfRequiredForCountry"
527
+ },
528
+ city: {
529
+ rule: "cityIfRequiredForCountry"
530
+ },
531
+ stateOrProvince: {
532
+ rule: "stateOrProvinceIfRequiredForCountry"
533
+ },
534
+ residencyCountry: {
535
+ rule: "REQUIRED"
536
+ },
537
+ proofOfResidency: {
538
+ rule: "isProofOfResidencyRequired"
539
+ },
540
+ proofOfNationalId: {
541
+ rule: "isProofOfNationalIdRequired"
542
+ },
543
+ relationship: {
544
+ rule: "legalRepresentativeRelationshipRequired"
545
+ },
546
+ proofOfRelationship: {
547
+ rule: "isProofOfRelationshipRequired"
548
+ },
549
+ nomineeDirector: {
550
+ rule: "nomineeDirectorRequiredForCountry"
551
+ },
552
+ nomineeShareholder: {
553
+ rule: "nomineeShareHolderRequiredForCountry"
554
+ },
555
+ jaHaniFirstName: {
556
+ rule: "japaneseFirstAndLastNames"
557
+ },
558
+ jaHaniLastName: {
559
+ rule: "japaneseFirstAndLastNames"
560
+ },
561
+ jaKanaFirstName: {
562
+ rule: "japaneseFirstAndLastNames"
563
+ },
564
+ jaKanaLastName: {
565
+ rule: "japaneseFirstAndLastNames"
566
+ },
567
+ idDocumentType: {
568
+ // If the user has a missing ID error and chooses manual flow
569
+ rule: "isManualIdFlowAndHasMissingData"
570
+ }
571
+ };
572
+ const identityNumber$1 = {
573
+ idNumber: {
574
+ rule: "idNumberRules",
575
+ obscured: true
576
+ },
577
+ idNumberExempt: {
578
+ rules: ["idNumberExemptIfApplicableCountry", "isDirectorIdNumberRequiredForCountry"]
579
+ },
580
+ idDocumentType: {
581
+ rule: "manualIdDocumentRequired"
582
+ },
583
+ idFrontPage: {
584
+ rule: "idFrontPageIfManualUpload"
585
+ },
586
+ idBackPage: {
587
+ rule: "backPageIfRequiredForDocumentType"
588
+ },
589
+ idVerificationMethod: {
590
+ rule: "idVerificationRequired"
591
+ },
592
+ instantIdVerificationData: {
593
+ rule: "instantVerificationDataRule"
594
+ }
595
+ };
596
+ const additionalIdentityInfo$1 = {
597
+ typeOfIdentity: {
598
+ rules: ["requiredIfCountryUsesMultipleTypesOfIdentity", "isDirectorIdNumberRequiredForCountry"]
599
+ },
600
+ issuerState: {
601
+ rule: "issuerStateRequired"
602
+ },
603
+ licenseCardNumber: {
604
+ rule: "licenseCardNumberRules"
605
+ },
606
+ expiryDate: {
607
+ rule: "expiryDateRequired"
608
+ }
609
+ };
610
+ const idDocument = {
611
+ idVerificationMethod: {
612
+ rule: "REQUIRED"
613
+ },
614
+ idDocumentType: {
615
+ rule: "REQUIRED"
616
+ },
617
+ idFrontPage: {
618
+ rule: "idFrontPageIfManualUpload"
619
+ },
620
+ idBackPage: {
621
+ rule: "backPageIfRequiredForDocumentType"
622
+ }
623
+ };
624
+ const nationality$1 = {
625
+ nationality: {
626
+ rule: "REQUIRED"
627
+ }
628
+ };
629
+ const phoneNumberBase$1 = {
630
+ phoneNumber: {
631
+ rule: "contactsIfRequiredForRole"
632
+ }
633
+ };
634
+ const taxInformationBase$1 = {
635
+ taxInformation: { rule: "countryUsesTaxId" }
636
+ };
637
+ const fieldsPerScenario = {
638
+ L0: drop("address", "birthDate").from(identityBase),
639
+ L1: identityBase,
640
+ L_TAXINFO: { ...identityBase, ...taxInformationBase$1 },
641
+ L1_ID: {
642
+ ...identityBase,
643
+ ...identityNumber$1,
644
+ ...additionalIdentityInfo$1
645
+ },
646
+ L1_IDO: {
647
+ // TODO: change idNumber rule to optional once optional fields are implemented
648
+ ...identityBase,
649
+ ...identityNumber$1,
650
+ ...additionalIdentityInfo$1
651
+ },
652
+ L1_NAT: {
653
+ ...identityBase,
654
+ ...identityNumber$1,
655
+ ...additionalIdentityInfo$1,
656
+ ...nationality$1
657
+ },
658
+ L1_IDDOC: idDocument,
659
+ L_PH: phoneNumberBase$1
660
+ };
430
661
  const parseIndividualScenarios = (scenarios) => composePerScenarioFormConfigurations(scenarios, fieldsPerScenario);
431
662
  const parseConfiguration$1 = ({ scenarios }) => parseIndividualScenarios(scenarios);
432
663
  const logger$4 = createLogger();
@@ -614,10 +845,11 @@ function IndividualDropin({
614
845
  country: ((_a2 = data == null ? void 0 : data.personalDetails) == null ? void 0 : _a2.residencyCountry) ?? country,
615
846
  taskType,
616
847
  isExperimentEnabled,
617
- rootLegalEntity: parentLegalEntity
848
+ rootLegalEntity: parentLegalEntity,
849
+ problems
618
850
  });
619
851
  },
620
- [country, matchingScenario, data, taskType]
852
+ [country, matchingScenario, data, taskType, problems]
621
853
  );
622
854
  useEffect(() => {
623
855
  var _a2;
@@ -789,7 +1021,7 @@ function IndividualDropin({
789
1021
  ...associatedLeTrackingParams,
790
1022
  actionType: "upload",
791
1023
  documentType: doc.type,
792
- fileExtention: ((_a3 = doc == null ? void 0 : doc.attachments) == null ? void 0 : _a3.map((item) => getFileExtention(item.pageName ?? ""))) ?? null
1024
+ fileExtention: ((_a3 = doc == null ? void 0 : doc.attachments) == null ? void 0 : _a3.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0)) ?? null
793
1025
  });
794
1026
  });
795
1027
  }
@@ -907,18 +1139,18 @@ function IndividualDropin({
907
1139
  };
908
1140
  const isDocumentsRequired = (forms2) => forms2.some((form2) => individualDocumentForms.includes(form2.formId));
909
1141
  const datasetUtils = datasetUtilities(i18n.locale);
910
- const formatIdDocument = (idDocument) => {
1142
+ const formatIdDocument = (idDocument2) => {
911
1143
  var _a2, _b2;
912
- if (!idDocument) return void 0;
913
- const documentType = (idDocument == null ? void 0 : idDocument.instantIdVerificationData) ? onfidoDocumentTypeMapping.find(
1144
+ if (!idDocument2) return void 0;
1145
+ const documentType = (idDocument2 == null ? void 0 : idDocument2.instantIdVerificationData) ? onfidoDocumentTypeMapping.find(
914
1146
  (document) => {
915
1147
  var _a3;
916
- return ((_a3 = idDocument.instantIdVerificationData) == null ? void 0 : _a3.document_front.type) === document.id;
1148
+ return ((_a3 = idDocument2.instantIdVerificationData) == null ? void 0 : _a3.document_front.type) === document.id;
917
1149
  }
918
- ) : idDocumentTypeOptions.find(({ id }) => idDocument.idDocumentType === id);
1150
+ ) : idDocumentTypeOptions.find(({ id }) => idDocument2.idDocumentType === id);
919
1151
  if (!documentType) return void 0;
920
- const frontPage = (_a2 = idDocument.idFrontPage) == null ? void 0 : _a2[0];
921
- const backPage = (_b2 = idDocument.idBackPage) == null ? void 0 : _b2[0];
1152
+ const frontPage = (_a2 = idDocument2.idFrontPage) == null ? void 0 : _a2[0];
1153
+ const backPage = (_b2 = idDocument2.idBackPage) == null ? void 0 : _b2[0];
922
1154
  if (!frontPage) return void 0;
923
1155
  return {
924
1156
  documentType: i18n.get(documentType.name),
@@ -931,7 +1163,7 @@ function IndividualDropin({
931
1163
  };
932
1164
  };
933
1165
  const formatFileSummaryData = ({
934
- idDocument,
1166
+ idDocument: idDocument2,
935
1167
  proofOfNationalId,
936
1168
  proofOfResidency,
937
1169
  proofOfRelationship
@@ -941,8 +1173,8 @@ function IndividualDropin({
941
1173
  const proofOfResidencyFile = (_b2 = proofOfResidency == null ? void 0 : proofOfResidency.proofOfResidency) == null ? void 0 : _b2[0];
942
1174
  const proofOfRelationshipFile = (_c2 = proofOfRelationship == null ? void 0 : proofOfRelationship.proofOfRelationship) == null ? void 0 : _c2[0];
943
1175
  return {
944
- ...((idDocument == null ? void 0 : idDocument.idDocumentType) || (idDocument == null ? void 0 : idDocument.instantIdVerificationData)) && {
945
- idDocument: formatIdDocument(idDocument)
1176
+ ...((idDocument2 == null ? void 0 : idDocument2.idDocumentType) || (idDocument2 == null ? void 0 : idDocument2.instantIdVerificationData)) && {
1177
+ idDocument: formatIdDocument(idDocument2)
946
1178
  },
947
1179
  ...proofOfNationalIdFile && {
948
1180
  proofOfNationalId: {
@@ -1249,13 +1481,15 @@ const DECISION_MAKER_TYPES_WITH_JOBTITLE = [
1249
1481
  DecisionMakerType.SIGNATORY,
1250
1482
  DecisionMakerType.CONTROLLING_PERSON
1251
1483
  ];
1484
+ const ID_MISSING_DATA_ERROR_CODE = "2_8071";
1252
1485
  const individualOnfidoRules = ({
1253
1486
  matchingScenario,
1254
1487
  data,
1255
1488
  country,
1256
1489
  taskType,
1257
1490
  isExperimentEnabled = () => false,
1258
- rootLegalEntity
1491
+ rootLegalEntity,
1492
+ problems
1259
1493
  }) => createFormRules({
1260
1494
  countryUsesTaxId: () => {
1261
1495
  if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && TAX_ID_REQUIRED_COUNTRIES.includes(country)) {
@@ -1276,17 +1510,20 @@ const individualOnfidoRules = ({
1276
1510
  }
1277
1511
  },
1278
1512
  idNumberRules: () => {
1279
- var _a, _b, _c, _d, _e, _f;
1513
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1280
1514
  if ((_a = data.additionalPersonalDetails) == null ? void 0 : _a.idNumberExempt) {
1281
1515
  return OPTIONAL;
1282
1516
  }
1283
1517
  if (!((_b = data.basicDetails) == null ? void 0 : _b.role)) {
1284
1518
  return REQUIRED;
1285
1519
  }
1286
- if ((_d = (_c = data.basicDetails) == null ? void 0 : _c.role) == null ? void 0 : _d.some((role) => role !== DecisionMakerType.DIRECTOR)) {
1520
+ if (country === CountryCodes.UnitedStates && ((_d = (_c = data.basicDetails) == null ? void 0 : _c.role) == null ? void 0 : _d.every((role) => role === DecisionMakerType.SIGNATORY))) {
1521
+ return void 0;
1522
+ }
1523
+ if ((_f = (_e = data.basicDetails) == null ? void 0 : _e.role) == null ? void 0 : _f.some((role) => role !== DecisionMakerType.DIRECTOR)) {
1287
1524
  return REQUIRED;
1288
1525
  }
1289
- if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && ((_f = (_e = data.basicDetails) == null ? void 0 : _e.role) == null ? void 0 : _f.some((role) => role === DecisionMakerType.DIRECTOR))) {
1526
+ if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && ((_h = (_g = data.basicDetails) == null ? void 0 : _g.role) == null ? void 0 : _h.some((role) => role === DecisionMakerType.DIRECTOR))) {
1290
1527
  return REQUIRED;
1291
1528
  }
1292
1529
  },
@@ -1296,9 +1533,13 @@ const individualOnfidoRules = ({
1296
1533
  }
1297
1534
  },
1298
1535
  idNumberExemptIfApplicableCountry: () => {
1536
+ var _a, _b;
1299
1537
  if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && (matchingScenario == null ? void 0 : matchingScenario.includes(Scenarios.L_TAXINFO))) {
1300
1538
  return void 0;
1301
1539
  }
1540
+ if (country === CountryCodes.UnitedStates && ((_b = (_a = data.basicDetails) == null ? void 0 : _a.role) == null ? void 0 : _b.every((role) => role === DecisionMakerType.SIGNATORY))) {
1541
+ return void 0;
1542
+ }
1302
1543
  if (ID_NUMBER_EXEMPT_COUNTRIES.includes(country)) {
1303
1544
  return REQUIRED;
1304
1545
  }
@@ -1364,13 +1605,13 @@ const individualOnfidoRules = ({
1364
1605
  }
1365
1606
  },
1366
1607
  nationalityIfRequiredForRole: () => {
1367
- var _a;
1608
+ var _a, _b;
1368
1609
  const enableNationalitySGHK = isExperimentEnabled("EnableNationalitySGHK");
1369
1610
  const rootLegalEntityCountry = (_a = rootLegalEntity == null ? void 0 : rootLegalEntity.organization) == null ? void 0 : _a.registeredAddress.country;
1370
1611
  if (enableNationalitySGHK && rootLegalEntityCountry && NATIONALITY_REQUIRED_FOR_COUNTRIES.includes(rootLegalEntityCountry)) {
1371
1612
  return REQUIRED;
1372
1613
  }
1373
- if (NATIONALITY_REQUIRED_FOR_COUNTRIES.includes(country)) {
1614
+ if (NATIONALITY_REQUIRED_FOR_COUNTRIES.includes(country) || ((_b = data == null ? void 0 : data.additionalPersonalDetails) == null ? void 0 : _b.nationality)) {
1374
1615
  return REQUIRED;
1375
1616
  }
1376
1617
  },
@@ -1449,10 +1690,21 @@ const individualOnfidoRules = ({
1449
1690
  return isManualFlow ? "REQUIRED" : void 0;
1450
1691
  },
1451
1692
  isManualIdFlowAndNotProvidingIdNumber: () => {
1693
+ var _a, _b, _c;
1694
+ const hasMissingId = (_a = problems == null ? void 0 : problems.missingData) == null ? void 0 : _a.some(
1695
+ (error) => error.code === ID_MISSING_DATA_ERROR_CODE
1696
+ );
1697
+ const isManualFlow = ((_b = data == null ? void 0 : data.idVerificationMethod) == null ? void 0 : _b.idVerificationMethod) === "manualVerification";
1698
+ const idNumberExempt = (_c = data == null ? void 0 : data.additionalPersonalDetails) == null ? void 0 : _c.idNumberExempt;
1699
+ return isManualFlow && (idNumberExempt || hasMissingId) ? "REQUIRED" : void 0;
1700
+ },
1701
+ isManualIdFlowAndHasMissingData: () => {
1452
1702
  var _a, _b;
1453
- const isManualFlow = ((_a = data == null ? void 0 : data.idVerificationMethod) == null ? void 0 : _a.idVerificationMethod) === "manualVerification";
1454
- const idNumberExempt = (_b = data == null ? void 0 : data.additionalPersonalDetails) == null ? void 0 : _b.idNumberExempt;
1455
- return isManualFlow && idNumberExempt ? "REQUIRED" : void 0;
1703
+ const hasMissingId = (_a = problems == null ? void 0 : problems.missingData) == null ? void 0 : _a.some(
1704
+ (error) => error.code === ID_MISSING_DATA_ERROR_CODE
1705
+ );
1706
+ const isManualFlow = ((_b = data == null ? void 0 : data.idVerificationMethod) == null ? void 0 : _b.idVerificationMethod) === "manualVerification";
1707
+ return isManualFlow && hasMissingId ? "REQUIRED" : void 0;
1456
1708
  },
1457
1709
  idVerificationRequired: () => {
1458
1710
  return REQUIRED;
@@ -1462,6 +1714,11 @@ const individualOnfidoRules = ({
1462
1714
  return "REQUIRED";
1463
1715
  }
1464
1716
  },
1717
+ isGuidedDecisionMakersFlowDisabled: () => {
1718
+ if (!isExperimentEnabled("EnableGuidedDecisionMakersFlow") && !isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow")) {
1719
+ return "REQUIRED";
1720
+ }
1721
+ },
1465
1722
  isDirectorRequiredForCountry: () => {
1466
1723
  const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(country);
1467
1724
  const isDirectorRequired = availableDecisionMakers.some(
@@ -1470,6 +1727,11 @@ const individualOnfidoRules = ({
1470
1727
  if (isDirectorRequired) {
1471
1728
  return "REQUIRED";
1472
1729
  }
1730
+ },
1731
+ japaneseFirstAndLastNames: () => {
1732
+ if (country === CountryCodes.Japan) {
1733
+ return "REQUIRED";
1734
+ }
1473
1735
  }
1474
1736
  });
1475
1737
  const TypeOfIdentity = ({
@@ -1640,7 +1902,6 @@ function Identity(props) {
1640
1902
  type: "text",
1641
1903
  label: formUtils.getLabel("idNumber", "idNumber"),
1642
1904
  formatGuidance: formUtils.getGuidanceText("idNumber"),
1643
- classNameModifiers: { field: ["idNumber"], input: ["idNumber"] },
1644
1905
  errorMessage: formUtils.getErrorMessage("idNumber", errors, fieldValidationErrors),
1645
1906
  shouldValidate,
1646
1907
  isValid: Boolean(valid == null ? void 0 : valid.idNumber),
@@ -1659,7 +1920,6 @@ function Identity(props) {
1659
1920
  {
1660
1921
  name: "expiryDate",
1661
1922
  label: formUtils.getLabel("passportExpiryDate"),
1662
- classNameModifiers: ["expiryDate"],
1663
1923
  errorMessage: formUtils.getErrorMessage("expiryDate", errors, fieldValidationErrors),
1664
1924
  isValid: valid == null ? void 0 : valid.expiryDate,
1665
1925
  children: (childProps) => /* @__PURE__ */ jsx(
@@ -1715,7 +1975,6 @@ function Identity(props) {
1715
1975
  type: "text",
1716
1976
  label: formUtils.getLabel("idNumber", "idNumber"),
1717
1977
  formatGuidance: formUtils.getGuidanceText("idNumber"),
1718
- classNameModifiers: { field: ["idNumber"], input: ["idNumber"] },
1719
1978
  errorMessage: formUtils.getErrorMessage("idNumber", errors, fieldValidationErrors),
1720
1979
  shouldValidate,
1721
1980
  isValid: Boolean(valid == null ? void 0 : valid.idNumber),
@@ -1756,13 +2015,15 @@ const additionalPersonalDetailsFields = [
1756
2015
  ...addressFields,
1757
2016
  "taxInformation"
1758
2017
  ];
1759
- const countriesRequiringNationality = [
1760
- CountryCodes.HongKong,
1761
- CountryCodes.Singapore
1762
- ];
1763
2018
  function AdditionalPersonalDetails(props) {
2019
+ var _a, _b;
1764
2020
  const { i18n } = useI18nContext();
1765
2021
  const allowedCountries = useAllowedCountries();
2022
+ const [showLegalRepresentativePrompt, setShowLegalRepresentativePrompt] = useState(false);
2023
+ const { isSettingEnabled } = useSettingsContext();
2024
+ const { isExperimentEnabled } = useExperimentsContext();
2025
+ const isExperimentAgeVerificationEnabled = isExperimentEnabled("EnableAgeVerification");
2026
+ const isSettingsEnforceLegalAgeEnabled = isSettingEnabled(SettingNames.EnforceLegalAge);
1766
2027
  const {
1767
2028
  country: defaultCountry,
1768
2029
  data,
@@ -1803,6 +2064,13 @@ function AdditionalPersonalDetails(props) {
1803
2064
  if (!handleFieldChange) {
1804
2065
  return;
1805
2066
  }
2067
+ const handleBirthDateChange = (event) => {
2068
+ handleFieldChange("birthDate", "blur")(event);
2069
+ if (isExperimentAgeVerificationEnabled && !isSettingsEnforceLegalAgeEnabled && isLegalRepresentativeNeeded(event.currentTarget.value, country, taskType)) {
2070
+ setShowLegalRepresentativePrompt(true);
2071
+ }
2072
+ };
2073
+ const isRootIndividual = taskType === TaskTypes.INDIVIDUAL;
1806
2074
  return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-individual__personal-details", "aria-describedby": "ariaErrorField", children: [
1807
2075
  /* @__PURE__ */ jsx(FormHeader, { heading }),
1808
2076
  /* @__PURE__ */ jsx(
@@ -1828,8 +2096,7 @@ function AdditionalPersonalDetails(props) {
1828
2096
  },
1829
2097
  labels: { country: formUtils.getLabel("country") },
1830
2098
  readonly: formUtils.isReadOnly("country"),
1831
- allowedCountries,
1832
- classNameModifiers: ["country"],
2099
+ allowedCountries: isRootIndividual ? allowedCountries : void 0,
1833
2100
  handleChangeFor: handleFieldChange
1834
2101
  }
1835
2102
  ),
@@ -1861,7 +2128,6 @@ function AdditionalPersonalDetails(props) {
1861
2128
  {
1862
2129
  name: "birthDate",
1863
2130
  label: formUtils.getLabel("birthDate"),
1864
- classNameModifiers: ["birthDate"],
1865
2131
  errorMessage: birthDateErrorMessage,
1866
2132
  isValid: valid == null ? void 0 : valid.birthDate,
1867
2133
  children: (childProps) => /* @__PURE__ */ jsx(
@@ -1873,7 +2139,7 @@ function AdditionalPersonalDetails(props) {
1873
2139
  placeholder: i18n.get("datePlaceholder"),
1874
2140
  readonly: formUtils.isReadOnly("birthDate"),
1875
2141
  onInput: handleFieldChange("birthDate", "input"),
1876
- onBlur: handleFieldChange("birthDate", "blur"),
2142
+ onBlur: handleBirthDateChange,
1877
2143
  "aria-required": true,
1878
2144
  "aria-invalid": !(valid == null ? void 0 : valid.birthDate),
1879
2145
  max: formatDateObj(/* @__PURE__ */ new Date())
@@ -1881,6 +2147,23 @@ function AdditionalPersonalDetails(props) {
1881
2147
  )
1882
2148
  }
1883
2149
  ),
2150
+ showLegalRepresentativePrompt && /* @__PURE__ */ jsx(
2151
+ Confirm,
2152
+ {
2153
+ title: i18n.get("legalRepresentativeForMinorIsRequired"),
2154
+ description: i18n.get("becauseThisPersonIsUnderXYearsOld", {
2155
+ values: { age: ((_b = (_a = getAgeRangeForLegalRepresentative(country)) == null ? void 0 : _a.max) == null ? void 0 : _b.toString()) ?? "" }
2156
+ }),
2157
+ onCancel: () => {
2158
+ setShowLegalRepresentativePrompt(false);
2159
+ },
2160
+ confirmText: i18n.get("ok"),
2161
+ cancelText: i18n.get("editDetails"),
2162
+ onConfirm: () => {
2163
+ setShowLegalRepresentativePrompt(false);
2164
+ }
2165
+ }
2166
+ ),
1884
2167
  /* @__PURE__ */ jsx(
1885
2168
  IndividualIdNumberTypeSelector,
1886
2169
  {
@@ -1926,18 +2209,18 @@ function AdditionalPersonalDetails(props) {
1926
2209
  defaultData: data == null ? void 0 : data.taxInformation
1927
2210
  }
1928
2211
  ),
1929
- countriesRequiringNationality.includes(country) && formUtils.isRequiredField("nationality") && /* @__PURE__ */ jsx(
2212
+ formUtils.isRequiredField("nationality") && /* @__PURE__ */ jsx(
1930
2213
  CountryField,
1931
2214
  {
1932
2215
  data: { country: data == null ? void 0 : data.nationality },
1933
2216
  valid: { country: valid == null ? void 0 : valid.nationality },
2217
+ name: "nationality",
1934
2218
  errors: {
1935
2219
  country: formUtils.getErrorMessage("nationality", errors, fieldValidationErrors)
1936
2220
  },
1937
2221
  labels: { country: formUtils.getLabel("nationality") },
1938
2222
  readonly: formUtils.isReadOnly("nationality"),
1939
- classNameModifiers: ["nationality"],
1940
- handleChangeFor: handleFieldChange
2223
+ handleChangeFor: () => handleFieldChange("nationality", "input")
1941
2224
  }
1942
2225
  ),
1943
2226
  country === "US" && isIndividual ? /* @__PURE__ */ jsx(PatriotActDisclosure, {}) : void 0
@@ -1949,10 +2232,14 @@ const basicDetailsFields = [
1949
2232
  ...decisionMakerRoleFields,
1950
2233
  ...nomineeFields,
1951
2234
  ...contactDetailFields,
1952
- "relationship"
2235
+ "relationship",
2236
+ "jaHaniFirstName",
2237
+ "jaHaniLastName",
2238
+ "jaKanaFirstName",
2239
+ "jaKanaLastName"
1953
2240
  ];
1954
2241
  function BasicDetails(props) {
1955
- var _a, _b, _c, _d;
2242
+ var _a, _b, _c;
1956
2243
  const { i18n } = useI18nContext();
1957
2244
  const {
1958
2245
  form: { triggerValidation }
@@ -1980,10 +2267,13 @@ function BasicDetails(props) {
1980
2267
  const formUtils = createFormUtils(props, i18n);
1981
2268
  const decisionMakerRoleProps = getFieldProps(props, decisionMakerRoleFields);
1982
2269
  const nomineeProps = getFieldProps(props, nomineeFields);
1983
- const nameProps = getFieldProps(
1984
- props,
1985
- nameFields
1986
- );
2270
+ const localizedNameProps = getFieldProps(props, [
2271
+ "jaHaniFirstName",
2272
+ "jaHaniLastName",
2273
+ "jaKanaFirstName",
2274
+ "jaKanaLastName",
2275
+ ...nameFields
2276
+ ]);
1987
2277
  const contactDetailsFormProps = getFieldProps(props, contactDetailFields);
1988
2278
  if (!handleFieldChange) {
1989
2279
  return;
@@ -2024,42 +2314,42 @@ function BasicDetails(props) {
2024
2314
  isDecisionMakerTask && trustedFieldsProvider === TrustedFieldsProvider.SINGPASS && readOnlyFields && /* @__PURE__ */ jsx(Typography, { color: "secondary", variant: "caption", children: i18n.get(
2025
2315
  "weSelectedSomeRolesBasedOnMyinfoBusinessDataAboutYourCompanysAppointmentHoldersAndShareholders"
2026
2316
  ) }),
2027
- isDecisionMakerTask && !isGuidedDecisionMakersFlowEnabled && /* @__PURE__ */ jsx(
2028
- DecisionMakerRole,
2029
- {
2030
- ...decisionMakerRoleProps,
2031
- taskType,
2032
- dataStoreId: basicDetailsId,
2033
- allowedRoles,
2034
- trustedRoles,
2035
- country,
2036
- handleFieldChange
2037
- }
2038
- ),
2039
- isDecisionMakerTask && /* @__PURE__ */ jsx(
2040
- NomineeDecisionMakerRole,
2317
+ isDecisionMakerTask && !isGuidedDecisionMakersFlowEnabled && /* @__PURE__ */ jsxs(Fragment, { children: [
2318
+ /* @__PURE__ */ jsx(
2319
+ DecisionMakerRole,
2320
+ {
2321
+ ...decisionMakerRoleProps,
2322
+ taskType,
2323
+ dataStoreId: basicDetailsId,
2324
+ allowedRoles,
2325
+ trustedRoles,
2326
+ country,
2327
+ handleFieldChange
2328
+ }
2329
+ ),
2330
+ /* @__PURE__ */ jsx(
2331
+ NomineeDecisionMakerRole,
2332
+ {
2333
+ ...nomineeProps,
2334
+ roles: data == null ? void 0 : data.role,
2335
+ country,
2336
+ handleFieldChange
2337
+ }
2338
+ )
2339
+ ] }),
2340
+ /* @__PURE__ */ jsx(
2341
+ LocalizedNameFields,
2041
2342
  {
2042
- ...nomineeProps,
2043
- roles: data == null ? void 0 : data.role,
2343
+ ...localizedNameProps,
2044
2344
  country,
2045
2345
  handleFieldChange
2046
2346
  }
2047
2347
  ),
2048
- !!((_c = nameProps == null ? void 0 : nameProps.requiredFields) == null ? void 0 : _c.length) && /* @__PURE__ */ jsx(
2049
- Name,
2050
- {
2051
- ...nameProps,
2052
- dataStoreId: basicDetailsId,
2053
- errors,
2054
- handleFieldChange
2055
- }
2056
- ),
2057
2348
  formUtils.isRequiredField("jobTitle", false) && /* @__PURE__ */ jsx(
2058
2349
  Field,
2059
2350
  {
2060
2351
  name: "jobTitle",
2061
2352
  label: formUtils.getLabel("jobTitle"),
2062
- classNameModifiers: ["jobTitle"],
2063
2353
  errorMessage: formUtils.getErrorMessage("jobTitle", errors, fieldValidationErrors),
2064
2354
  children: (childProps) => /* @__PURE__ */ jsx(
2065
2355
  InputText,
@@ -2076,7 +2366,7 @@ function BasicDetails(props) {
2076
2366
  )
2077
2367
  }
2078
2368
  ),
2079
- !!((_d = contactDetailsFormProps == null ? void 0 : contactDetailsFormProps.requiredFields) == null ? void 0 : _d.length) && /* @__PURE__ */ jsx(
2369
+ !!((_c = contactDetailsFormProps == null ? void 0 : contactDetailsFormProps.requiredFields) == null ? void 0 : _c.length) && /* @__PURE__ */ jsx(
2080
2370
  ContactDetails,
2081
2371
  {
2082
2372
  ...contactDetailsFormProps,
@@ -2159,9 +2449,6 @@ const createAddressConflictRule = (datasetUtils) => (provided, detected) => {
2159
2449
  const detectedString = addressToString(mapApiAddressToSchema(detected), datasetUtils);
2160
2450
  return { hasConflict: providedString !== detectedString };
2161
2451
  };
2162
- const createIdConflictRule = () => () => {
2163
- return { hasConflict: false };
2164
- };
2165
2452
  const useDataConflicts = (providedData, detectedData, rules2 = {}, onAutoResolve) => {
2166
2453
  const { conflictingProperties, wasAutoResolved, resolvedData, hasConflicts } = useMemo(() => {
2167
2454
  if (!providedData || !detectedData) {
@@ -2410,23 +2697,6 @@ const DataConflictsModal = ({
2410
2697
  )
2411
2698
  ] });
2412
2699
  };
2413
- const formatId = (id, i18n) => {
2414
- switch (id.typeOfIdentity) {
2415
- case "passport":
2416
- return `${i18n.get("passport")} (${id.idNumber})`;
2417
- case "driversLicense":
2418
- return `${i18n.get("driversLicense")} (${id.licenseCardNumber})`;
2419
- case "proofOfIdentityCard":
2420
- return `${i18n.get("proofOfIdentityCard")} (${id.idNumber})`;
2421
- case "nationalIdNumber":
2422
- return `${i18n.get("nationalIdNumber")} (${id.idNumber})`;
2423
- default:
2424
- if (id.idNumber) {
2425
- return `${id.typeOfIdentity || i18n.get("idNumber")} (${id.idNumber})`;
2426
- }
2427
- return `${id.typeOfIdentity}`;
2428
- }
2429
- };
2430
2700
  const verificationDisclaimer = "adyen-kyc-verification-disclaimer";
2431
2701
  const styles$4 = {
2432
2702
  verificationDisclaimer
@@ -2472,46 +2742,52 @@ const IdVerificationHeader = () => {
2472
2742
  ] });
2473
2743
  };
2474
2744
  const verifyOnfidoContainer = "adyen-kyc-verify-onfido-container";
2745
+ const verifyOnfidoError = "adyen-kyc-verify-onfido-error";
2475
2746
  const verifyOnfidoContent = "adyen-kyc-verify-onfido-content";
2476
2747
  const styles$2 = {
2477
2748
  verifyOnfidoContainer,
2749
+ verifyOnfidoError,
2478
2750
  verifyOnfidoContent
2479
2751
  };
2480
2752
  const toIndividualOnfidoConflictSchema = ({
2481
2753
  basicDetails,
2482
2754
  additionalPersonalDetails
2483
- }) => ({
2484
- firstName: basicDetails == null ? void 0 : basicDetails.firstName,
2485
- lastName: basicDetails == null ? void 0 : basicDetails.lastName,
2486
- email: basicDetails == null ? void 0 : basicDetails.email,
2487
- phoneNumber: basicDetails == null ? void 0 : basicDetails.phoneNumber,
2488
- id: {
2755
+ }) => {
2756
+ return {
2757
+ // from basicDetails
2758
+ firstName: basicDetails == null ? void 0 : basicDetails.firstName,
2759
+ lastName: basicDetails == null ? void 0 : basicDetails.lastName,
2760
+ email: basicDetails == null ? void 0 : basicDetails.email,
2761
+ phoneNumber: basicDetails == null ? void 0 : basicDetails.phoneNumber,
2762
+ // from additionalPersonalDetails
2763
+ birthDate: additionalPersonalDetails == null ? void 0 : additionalPersonalDetails.birthDate,
2764
+ nationality: additionalPersonalDetails == null ? void 0 : additionalPersonalDetails.nationality,
2765
+ address: pick(
2766
+ "address",
2767
+ "otherAddressInformation",
2768
+ "postalCode",
2769
+ "city",
2770
+ "stateOrProvince",
2771
+ "country"
2772
+ ).from(additionalPersonalDetails),
2773
+ // from additionalPersonalDetails (flattened so that `id` fields can be compared at granular level)
2489
2774
  idNumber: additionalPersonalDetails == null ? void 0 : additionalPersonalDetails.idNumber,
2490
2775
  typeOfIdentity: additionalPersonalDetails == null ? void 0 : additionalPersonalDetails.typeOfIdentity,
2491
2776
  issuerState: additionalPersonalDetails == null ? void 0 : additionalPersonalDetails.issuerState,
2492
2777
  licenseCardNumber: additionalPersonalDetails == null ? void 0 : additionalPersonalDetails.licenseCardNumber,
2493
2778
  expiryDate: additionalPersonalDetails == null ? void 0 : additionalPersonalDetails.expiryDate
2494
- },
2495
- birthDate: additionalPersonalDetails == null ? void 0 : additionalPersonalDetails.birthDate,
2496
- nationality: additionalPersonalDetails == null ? void 0 : additionalPersonalDetails.nationality,
2497
- address: pick(
2498
- "address",
2499
- "otherAddressInformation",
2500
- "postalCode",
2501
- "city",
2502
- "stateOrProvince",
2503
- "country"
2504
- ).from(additionalPersonalDetails)
2505
- });
2779
+ };
2780
+ };
2506
2781
  const fromIndividualOnfidoConflictSchema = ({
2507
2782
  firstName,
2508
2783
  lastName,
2509
2784
  email,
2510
2785
  phoneNumber,
2511
- id,
2512
2786
  birthDate,
2513
2787
  nationality: nationality2,
2514
- address
2788
+ address,
2789
+ ...idFields
2790
+ // The rest of the properties are the flattened ID Fields
2515
2791
  }) => ({
2516
2792
  basicDetails: {
2517
2793
  firstName,
@@ -2522,11 +2798,8 @@ const fromIndividualOnfidoConflictSchema = ({
2522
2798
  additionalPersonalDetails: {
2523
2799
  birthDate,
2524
2800
  nationality: nationality2,
2525
- idNumber: id == null ? void 0 : id.idNumber,
2526
- typeOfIdentity: id == null ? void 0 : id.typeOfIdentity,
2527
- issuerState: id == null ? void 0 : id.issuerState,
2528
- licenseCardNumber: id == null ? void 0 : id.licenseCardNumber,
2529
- expiryDate: id == null ? void 0 : id.expiryDate,
2801
+ // Reconstruct the `id` object from the flattened top-level properties
2802
+ ...idFields,
2530
2803
  ...address
2531
2804
  }
2532
2805
  });
@@ -2652,8 +2925,14 @@ const idVerificationMethodFields = [
2652
2925
  "idDocument"
2653
2926
  ];
2654
2927
  function IdVerificationMethod(props) {
2655
- var _a, _b, _c, _d, _e;
2656
- const { legalEntityId, handlers, formVerificationErrors, fieldValidationErrors } = props;
2928
+ var _a, _b, _c, _d, _e, _f;
2929
+ const {
2930
+ legalEntityId,
2931
+ handlers,
2932
+ formVerificationErrors,
2933
+ fieldValidationErrors,
2934
+ hasLiveSelfieErrorCode
2935
+ } = props;
2657
2936
  const { i18n } = useI18nContext();
2658
2937
  const userEvents = useAnalyticsContext();
2659
2938
  const extractDocumentInformation2 = useExtractDocumentInformation();
@@ -2686,9 +2965,7 @@ function IdVerificationMethod(props) {
2686
2965
  );
2687
2966
  const conflictRules = useMemo(
2688
2967
  () => ({
2689
- address: createAddressConflictRule(datasetUtils),
2690
- id: createIdConflictRule()
2691
- // ignore id related conflicts
2968
+ address: createAddressConflictRule(datasetUtils)
2692
2969
  }),
2693
2970
  [datasetUtils]
2694
2971
  );
@@ -2699,6 +2976,25 @@ function IdVerificationMethod(props) {
2699
2976
  setOcrExtractedData(void 0);
2700
2977
  handlers.handleContinueToAdditionalDetails();
2701
2978
  };
2979
+ const validateExtractionResult = (extractionResult) => {
2980
+ var _a2;
2981
+ const { isExpired, isValidDocumentType, dateOfBirth, issuingCountry } = extractionResult;
2982
+ if (isExpired) {
2983
+ return { key: "theDocumentYouUploadedIsExpired" };
2984
+ }
2985
+ if (isValidDocumentType === false) {
2986
+ return { key: "theDocumentTypeYouUploadedIsNotSupported" };
2987
+ }
2988
+ if (isPersonUnderAge(dateOfBirth, issuingCountry)) {
2989
+ return {
2990
+ key: "weDontAcceptDocumentsOrInformationAboutAnyoneYoungerThan_",
2991
+ options: {
2992
+ values: { minimumOnboardingAge: ((_a2 = extractionResult.minimumOnboardingAge) == null ? void 0 : _a2.toString()) ?? "" }
2993
+ }
2994
+ };
2995
+ }
2996
+ return null;
2997
+ };
2702
2998
  const { hasConflicts, conflictingProperties, resolvedData } = useDataConflicts(
2703
2999
  comparableExistingData,
2704
3000
  comparableExtractedData,
@@ -2724,13 +3020,18 @@ function IdVerificationMethod(props) {
2724
3020
  clearError();
2725
3021
  setShowLoadingSpinner(true);
2726
3022
  setStatus("extractionLoading");
2727
- const { document_front, document_back } = onfidoResult;
2728
- const documentIds = [document_front.id];
2729
- if (document_back) documentIds.push(document_back.id);
3023
+ const documentIds = [onfidoResult.document_front.id];
3024
+ if (onfidoResult.document_back) documentIds.push(onfidoResult.document_back.id);
2730
3025
  try {
2731
3026
  const extractionResult = await extractDocumentInformation2.mutateAsync({
2732
3027
  documents: documentIds.map((documentId) => ({ documentId }))
2733
3028
  });
3029
+ const validationError = validateExtractionResult(extractionResult);
3030
+ if (validationError) {
3031
+ setError(validationError);
3032
+ setStatus("ready");
3033
+ return;
3034
+ }
2734
3035
  setOcrExtractedData(extractionResult);
2735
3036
  handleFieldChange("idDocument")({
2736
3037
  instantIdVerificationData: onfidoResult,
@@ -2747,7 +3048,7 @@ function IdVerificationMethod(props) {
2747
3048
  };
2748
3049
  const handleOnfidoError = (error2) => {
2749
3050
  logger$2.error("Onfido error", error2);
2750
- setError("weCouldNotReachOnfido");
3051
+ setError({ key: "weCouldNotReachOnfido" });
2751
3052
  userEvents.addPageEvent("Encountered error", {
2752
3053
  actionType: "submit",
2753
3054
  returnType: "onfido",
@@ -2787,6 +3088,9 @@ function IdVerificationMethod(props) {
2787
3088
  handleFieldChange("idDocument")(void 0);
2788
3089
  }
2789
3090
  };
3091
+ if (hasLiveSelfieErrorCode && ((_e = data.idVerificationMethod) == null ? void 0 : _e.idVerificationMethod) === "existingDocument") {
3092
+ handleDeleteDocument();
3093
+ }
2790
3094
  const handleCancelDeleteDocument = () => {
2791
3095
  setStatus("ready");
2792
3096
  userEvents.addPageEvent("Clicked button", {
@@ -2822,7 +3126,14 @@ function IdVerificationMethod(props) {
2822
3126
  }
2823
3127
  ),
2824
3128
  /* @__PURE__ */ jsx(IdVerificationHeader, {}),
2825
- error ? /* @__PURE__ */ jsx(Alert, { variant: "error", title: i18n.get(error) }) : void 0,
3129
+ error ? /* @__PURE__ */ jsx(
3130
+ Alert,
3131
+ {
3132
+ variant: "error",
3133
+ title: i18n.get(error.key, error.options),
3134
+ className: styles$2.verifyOnfidoError
3135
+ }
3136
+ ) : void 0,
2826
3137
  /* @__PURE__ */ jsx("div", { className: styles$2.verifyOnfidoContent, children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : /* @__PURE__ */ jsx(Fragment, { children: hasExistingDocument ? /* @__PURE__ */ jsx(
2827
3138
  UploadedDocument,
2828
3139
  {
@@ -2841,7 +3152,7 @@ function IdVerificationMethod(props) {
2841
3152
  onClick: launchOnfido
2842
3153
  }
2843
3154
  ),
2844
- !((_e = showIndividualMotionCapture) == null ? void 0 : _e.value) && /* @__PURE__ */ jsx(
3155
+ !((_f = showIndividualMotionCapture) == null ? void 0 : _f.value) && /* @__PURE__ */ jsx(
2845
3156
  Button,
2846
3157
  {
2847
3158
  onClick: () => setStatus("confirmManualFlowModal"),
@@ -2890,8 +3201,7 @@ function IdVerificationMethod(props) {
2890
3201
  detectedData: comparableExtractedData,
2891
3202
  conflictingProperties,
2892
3203
  formatters: {
2893
- address: (val) => addressToString(val, datasetUtils),
2894
- id: (val) => formatId(val, i18n)
3204
+ address: (val) => addressToString(val, datasetUtils)
2895
3205
  },
2896
3206
  title: "confirmPersonalDetails",
2897
3207
  explanation: "theDetailsYouEnteredDontMatch",
@@ -2974,21 +3284,34 @@ const GuidanceQuestion = (props) => {
2974
3284
  ) })
2975
3285
  ] });
2976
3286
  };
3287
+ const SignatoryQuestionnaireModalContent = () => {
3288
+ const { i18n } = useI18nContext();
3289
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
3290
+ /* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h3", className: "adyen-kyc-u-margin-bottom-40", children: i18n.get("moreAboutAuthorizedSignatories") }),
3291
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("signatoryDescriptionQ1") }),
3292
+ /* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: i18n.get("signatoryDescriptionA1") }),
3293
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("signatoryDescriptionQ2") }),
3294
+ /* @__PURE__ */ jsx(Typography, { el: "p", children: i18n.get("signatoryDescriptionA2") })
3295
+ ] });
3296
+ };
2977
3297
  function SignatoryQuestionnaire(props) {
2978
3298
  const { i18n } = useI18nContext();
3299
+ const [isModalOpen, setIsModalOpen] = useState(false);
2979
3300
  const {
2980
3301
  data,
2981
3302
  errors,
2982
3303
  formVerificationErrors,
2983
3304
  heading,
2984
3305
  fieldValidationErrors,
2985
- handleDescriptionLinkClick,
2986
3306
  handleFieldChange
2987
3307
  } = props;
2988
3308
  const formUtils = createFormUtils(props, i18n);
2989
3309
  if (!handleFieldChange) {
2990
3310
  return;
2991
3311
  }
3312
+ const toggleModal = () => {
3313
+ setIsModalOpen(!isModalOpen);
3314
+ };
2992
3315
  const errorMessage = formUtils.getErrorMessage("isSignatory", errors, fieldValidationErrors);
2993
3316
  return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-individual__personal-details", "aria-describedby": "ariaErrorField", children: [
2994
3317
  /* @__PURE__ */ jsx(FormHeader, { heading }),
@@ -3007,18 +3330,91 @@ function SignatoryQuestionnaire(props) {
3007
3330
  name: "isSignatory",
3008
3331
  value: data == null ? void 0 : data.isSignatory,
3009
3332
  onChange: handleFieldChange("isSignatory"),
3010
- onDescriptionLinkClick: handleDescriptionLinkClick,
3333
+ onDescriptionLinkClick: toggleModal,
3011
3334
  question: i18n.get("signatoryQuestion"),
3012
3335
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3013
3336
  errorMessage: getDisplayErrorMessage(errorMessage, i18n)
3014
3337
  }
3015
- )
3338
+ ),
3339
+ isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: toggleModal, ariaLabel: i18n.get("moreAboutAuthorizedSignatories"), inset: true, children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {}) })
3016
3340
  ] });
3017
3341
  }
3342
+ const RichText = ({ content }) => {
3343
+ if (!content) {
3344
+ return null;
3345
+ }
3346
+ const parts = content.split(/<strong>|<\/strong>/);
3347
+ return /* @__PURE__ */ jsx(Fragment, { children: parts.map((part, index) => index % 2 === 1 ? /* @__PURE__ */ jsx("strong", { children: part }, index) : part) });
3348
+ };
3349
+ const UboQuestionnaireModalContent = ({ modalType }) => {
3350
+ const { i18n } = useI18nContext();
3351
+ switch (modalType) {
3352
+ case "isOwner":
3353
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
3354
+ /* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h3", className: "adyen-kyc-u-margin-bottom-40", children: i18n.get("moreAboutOwners") }),
3355
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("ownersDescriptionQ1") }),
3356
+ /* @__PURE__ */ jsx(Typography, { el: "p", children: i18n.get("ownersDescriptionA1P1") }),
3357
+ /* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: i18n.get("ownersDescriptionA1P2") }),
3358
+ /* @__PURE__ */ jsx(
3359
+ Alert,
3360
+ {
3361
+ title: i18n.get("ownersDescriptionAlertTitle"),
3362
+ icon: false,
3363
+ className: "adyen-kyc-u-margin-bottom-32",
3364
+ children: i18n.get("ownersDescriptionAlertContent")
3365
+ }
3366
+ ),
3367
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("ownersDescriptionQ2") }),
3368
+ /* @__PURE__ */ jsx(Typography, { el: "p", children: i18n.get("ownersDescriptionA2P1") }),
3369
+ /* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: i18n.get("ownersDescriptionA2P2") }),
3370
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("ownersDescriptionQ3") }),
3371
+ /* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: i18n.get("ownersDescriptionA3") }),
3372
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("ownersDescriptionQ4") }),
3373
+ /* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: i18n.get("ownersDescriptionA4") })
3374
+ ] });
3375
+ case "isControllingPerson":
3376
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
3377
+ /* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h3", className: "adyen-kyc-u-margin-bottom-40", children: i18n.get("moreAboutOwnershipThroughControl") }),
3378
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("controllingPersonDescriptionQ1") }),
3379
+ /* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: i18n.get("controllingPersonDescriptionA1P1") }),
3380
+ /* @__PURE__ */ jsxs("ul", { children: [
3381
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(RichText, { content: i18n.get("controllingPersonDescriptionA1L1") }) }),
3382
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(RichText, { content: i18n.get("controllingPersonDescriptionA1L2") }) }),
3383
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(RichText, { content: i18n.get("controllingPersonDescriptionA1L3") }) }),
3384
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(RichText, { content: i18n.get("controllingPersonDescriptionA1L4") }) })
3385
+ ] }),
3386
+ /* @__PURE__ */ jsx(
3387
+ Alert,
3388
+ {
3389
+ title: i18n.get("ownersDescriptionAlertTitle"),
3390
+ icon: false,
3391
+ className: "adyen-kyc-u-margin-bottom-32",
3392
+ children: i18n.get("controllingPersonDescriptionAlertContent")
3393
+ }
3394
+ ),
3395
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("ownersDescriptionQ4") }),
3396
+ /* @__PURE__ */ jsx(Typography, { el: "p", children: i18n.get("ownersDescriptionA4") }),
3397
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("controllingPersonDescriptionQ2") }),
3398
+ /* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: i18n.get("controllingPersonDescriptionA2") })
3399
+ ] });
3400
+ case "isDirector":
3401
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
3402
+ /* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h3", className: "adyen-kyc-u-margin-bottom-40", children: i18n.get("moreAboutDirectors") }),
3403
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("directorDescriptionQ1") }),
3404
+ /* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: i18n.get("directorDescriptionA1") }),
3405
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("directorDescriptionQ2") }),
3406
+ /* @__PURE__ */ jsx(Typography, { el: "p", children: i18n.get("directorDescriptionA2") })
3407
+ ] });
3408
+ default:
3409
+ return null;
3410
+ }
3411
+ };
3018
3412
  const uboQuestionnaireFields = [
3019
3413
  "isOwner",
3020
3414
  "isControllingPerson",
3021
- "isDirector"
3415
+ "isDirector",
3416
+ "isNomineeDirector",
3417
+ "isNomineeShareholder"
3022
3418
  ];
3023
3419
  function UboQuestionnaire(props) {
3024
3420
  const { i18n } = useI18nContext();
@@ -3029,19 +3425,40 @@ function UboQuestionnaire(props) {
3029
3425
  formVerificationErrors,
3030
3426
  heading,
3031
3427
  fieldValidationErrors,
3032
- handleDescriptionLinkClick,
3033
3428
  handleFieldChange
3034
3429
  } = props;
3035
3430
  const formUtils = createFormUtils(props, i18n);
3431
+ const [activeModal, setActiveModal] = useState(null);
3036
3432
  if (!handleFieldChange) {
3037
3433
  return;
3038
3434
  }
3435
+ const openModal = (modalType) => () => {
3436
+ setActiveModal(modalType);
3437
+ };
3438
+ const closeModal = () => {
3439
+ setActiveModal(null);
3440
+ };
3441
+ const modalAriaLabelMap = {
3442
+ isOwner: i18n.get("moreAboutOwners"),
3443
+ isControllingPerson: i18n.get("moreAboutOwnershipThroughControl"),
3444
+ isDirector: i18n.get("moreAboutDirectors")
3445
+ };
3039
3446
  const isDirectorErrorMessage = formUtils.getErrorMessage(
3040
3447
  "isDirector",
3041
3448
  errors,
3042
3449
  fieldValidationErrors
3043
3450
  );
3451
+ const isNomineeDirectorErrorMessage = formUtils.getErrorMessage(
3452
+ "isNomineeDirector",
3453
+ errors,
3454
+ fieldValidationErrors
3455
+ );
3044
3456
  const isOwnerErrorMessage = formUtils.getErrorMessage("isOwner", errors, fieldValidationErrors);
3457
+ const isNomineeShareholderErrorMessage = formUtils.getErrorMessage(
3458
+ "isNomineeShareholder",
3459
+ errors,
3460
+ fieldValidationErrors
3461
+ );
3045
3462
  const isControllingPersonErrorMessage = formUtils.getErrorMessage(
3046
3463
  "isControllingPerson",
3047
3464
  errors,
@@ -3064,36 +3481,57 @@ function UboQuestionnaire(props) {
3064
3481
  name: "isDirector",
3065
3482
  value: data == null ? void 0 : data.isDirector,
3066
3483
  onChange: handleFieldChange("isDirector"),
3067
- onDescriptionLinkClick: handleDescriptionLinkClick,
3484
+ onDescriptionLinkClick: openModal("isDirector"),
3068
3485
  question: i18n.get("directorQuestion"),
3069
3486
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3070
3487
  errorMessage: getDisplayErrorMessage(isDirectorErrorMessage, i18n)
3071
3488
  }
3072
3489
  ),
3490
+ formUtils.isRequiredField("isNomineeDirector") && (data == null ? void 0 : data.isDirector) === "yes" && /* @__PURE__ */ jsx(
3491
+ GuidanceQuestion,
3492
+ {
3493
+ name: "isNomineeDirector",
3494
+ value: data == null ? void 0 : data.isNomineeDirector,
3495
+ onChange: handleFieldChange("isNomineeDirector"),
3496
+ question: i18n.get("nomineeDirectorQuestion"),
3497
+ errorMessage: getDisplayErrorMessage(isNomineeDirectorErrorMessage, i18n)
3498
+ }
3499
+ ),
3073
3500
  formUtils.isRequiredField("isOwner") && /* @__PURE__ */ jsx(
3074
3501
  GuidanceQuestion,
3075
3502
  {
3076
3503
  name: "isOwner",
3077
3504
  value: data == null ? void 0 : data.isOwner,
3078
3505
  onChange: handleFieldChange("isOwner"),
3079
- onDescriptionLinkClick: handleDescriptionLinkClick,
3506
+ onDescriptionLinkClick: openModal("isOwner"),
3080
3507
  question: i18n.get("ownerQuestion"),
3081
3508
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3082
3509
  errorMessage: getDisplayErrorMessage(isOwnerErrorMessage, i18n)
3083
3510
  }
3084
3511
  ),
3512
+ formUtils.isRequiredField("isNomineeShareholder") && (data == null ? void 0 : data.isOwner) === "yes" && /* @__PURE__ */ jsx(
3513
+ GuidanceQuestion,
3514
+ {
3515
+ name: "isNomineeShareholder",
3516
+ value: data == null ? void 0 : data.isNomineeShareholder,
3517
+ onChange: handleFieldChange("isNomineeShareholder"),
3518
+ question: i18n.get("nomineeShareHolderQuestion"),
3519
+ errorMessage: getDisplayErrorMessage(isNomineeShareholderErrorMessage, i18n)
3520
+ }
3521
+ ),
3085
3522
  formUtils.isRequiredField("isControllingPerson") && /* @__PURE__ */ jsx(
3086
3523
  GuidanceQuestion,
3087
3524
  {
3088
3525
  name: "isControllingPerson",
3089
3526
  value: data == null ? void 0 : data.isControllingPerson,
3090
3527
  onChange: handleFieldChange("isControllingPerson"),
3091
- onDescriptionLinkClick: handleDescriptionLinkClick,
3528
+ onDescriptionLinkClick: openModal("isControllingPerson"),
3092
3529
  question: i18n.get("controllingPersonQuestion"),
3093
3530
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3094
3531
  errorMessage: getDisplayErrorMessage(isControllingPersonErrorMessage, i18n)
3095
3532
  }
3096
- )
3533
+ ),
3534
+ activeModal && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: modalAriaLabelMap[activeModal], inset: true, children: /* @__PURE__ */ jsx(UboQuestionnaireModalContent, { modalType: activeModal }) })
3097
3535
  ] });
3098
3536
  }
3099
3537
  const logger$1 = createLogger();
@@ -3153,8 +3591,9 @@ const manualIdUploadFormID = individualOnfidoForms.manualIdUpload.formId;
3153
3591
  const proofOfResidencyFormID = individualOnfidoForms.proofOfResidency.formId;
3154
3592
  const proofOfNationalIdFormID = individualOnfidoForms.proofOfNationalId.formId;
3155
3593
  const proofOfRelationshipFormID = individualOnfidoForms.proofOfRelationship.formId;
3594
+ const LIVE_SELFIE_ERROR_CODE = "2_8210";
3156
3595
  function IndividualOnfido(props) {
3157
- var _a, _b, _c, _d, _e;
3596
+ var _a, _b, _c, _d, _e, _f;
3158
3597
  const { i18n } = useI18nContext();
3159
3598
  const {
3160
3599
  form: { errors, valid, fieldProblems: fieldValidationErrors, handleChangeFor, setFormData }
@@ -3239,21 +3678,23 @@ function IndividualOnfido(props) {
3239
3678
  }
3240
3679
  }
3241
3680
  }, [newRoles, data == null ? void 0 : data.basicDetails, setFormData, isGuidedDecisionMakersFlowEnabled]);
3681
+ const hasMotionCaptureScenarioValue = (_b = hasMotionCaptureScenario) == null ? void 0 : _b.value;
3242
3682
  useEffect(() => {
3243
- var _a2, _b2;
3683
+ var _a2;
3244
3684
  setShowIndividualMotionCapture(
3245
3685
  shouldShowMotionCapture({
3246
3686
  capabilities,
3247
3687
  userRoles: (_a2 = data == null ? void 0 : data.basicDetails) == null ? void 0 : _a2.role,
3248
3688
  taskType,
3249
- hasMotionScenario: (_b2 = hasMotionCaptureScenario) == null ? void 0 : _b2.value
3689
+ hasMotionScenario: hasMotionCaptureScenarioValue
3250
3690
  })
3251
3691
  );
3252
- }, [(_b = data == null ? void 0 : data.basicDetails) == null ? void 0 : _b.role, taskType, capabilities, (_c = hasMotionCaptureScenario) == null ? void 0 : _c.value]);
3692
+ }, [(_c = data == null ? void 0 : data.basicDetails) == null ? void 0 : _c.role, taskType, capabilities, hasMotionCaptureScenarioValue]);
3253
3693
  const fullName = `${(_d = data == null ? void 0 : data.basicDetails) == null ? void 0 : _d.firstName} ${(_e = data == null ? void 0 : data.basicDetails) == null ? void 0 : _e.lastName}`;
3254
3694
  const handleFieldChange = (formName) => (fieldName, mode) => handleChangeFor(fieldName, formName, mode);
3255
- const handleDescriptionLinkClick = () => {
3256
- };
3695
+ const hasLiveSelfieErrorCode = (_f = problems == null ? void 0 : problems.missingData) == null ? void 0 : _f.some(
3696
+ (problem) => problem.code === LIVE_SELFIE_ERROR_CODE && problem.type === "dataMissing"
3697
+ );
3257
3698
  const renderActiveForm = (activeForm) => {
3258
3699
  var _a2, _b2;
3259
3700
  switch (activeForm.formId) {
@@ -3265,7 +3706,6 @@ function IndividualOnfido(props) {
3265
3706
  heading: i18n.get("signatoryQuestionnaireHeader"),
3266
3707
  id: signatoryQuestionnaireFormID,
3267
3708
  handleFieldChange: handleFieldChange("signatoryQuestionnaire"),
3268
- handleDescriptionLinkClick,
3269
3709
  errors: errors == null ? void 0 : errors.signatoryQuestionnaire,
3270
3710
  fieldValidationErrors: fieldValidationErrors == null ? void 0 : fieldValidationErrors.signatoryQuestionnaire
3271
3711
  }
@@ -3279,7 +3719,6 @@ function IndividualOnfido(props) {
3279
3719
  description: i18n.get("uboQuestionnaireDescription"),
3280
3720
  id: uboQuestionnaireFormID,
3281
3721
  handleFieldChange: handleFieldChange("uboQuestionnaire"),
3282
- handleDescriptionLinkClick,
3283
3722
  errors: errors == null ? void 0 : errors.uboQuestionnaire,
3284
3723
  fieldValidationErrors: fieldValidationErrors == null ? void 0 : fieldValidationErrors.uboQuestionnaire
3285
3724
  }
@@ -3315,7 +3754,8 @@ function IndividualOnfido(props) {
3315
3754
  handleUpdateDocument
3316
3755
  },
3317
3756
  formVerificationErrors: (_a2 = problems == null ? void 0 : problems.verificationErrors) == null ? void 0 : _a2.idVerificationMethod,
3318
- fieldValidationErrors: (_b2 = problems == null ? void 0 : problems.validationErrors) == null ? void 0 : _b2.idVerificationMethod
3757
+ fieldValidationErrors: (_b2 = problems == null ? void 0 : problems.validationErrors) == null ? void 0 : _b2.idVerificationMethod,
3758
+ hasLiveSelfieErrorCode
3319
3759
  }
3320
3760
  );
3321
3761
  case additionalPersonalDetailsFormID:
@@ -3399,56 +3839,32 @@ function IndividualOnfido(props) {
3399
3839
  )
3400
3840
  ] });
3401
3841
  }
3402
- const individualOnfidoObscuredFields = [
3403
- "additionalPersonalDetails.idNumber",
3404
- "additionalPersonalDetails.idNumberExempt"
3405
- ];
3406
- const individualOnfidoBaseMapping = {
3407
- "basicDetails.firstName": "individual.name.firstName",
3408
- "basicDetails.lastName": "individual.name.lastName",
3409
- "basicDetails.phoneNumber.number": "individual.phone.number",
3410
- "basicDetails.phoneNumber.phoneCountryCode": "individual.phone.phoneCountryCode",
3411
- "basicDetails.phoneNumber.type": "individual.phone.type",
3412
- "basicDetails.email": "individual.email",
3413
- "additionalPersonalDetails.birthDate": "individual.birthData.dateOfBirth",
3414
- "additionalPersonalDetails.idNumber": "individual.identificationData.number",
3415
- "additionalPersonalDetails.idNumberExempt": "individual.identificationData.nationalIdExempt",
3416
- "additionalPersonalDetails.typeOfIdentity": "individual.identificationData.type",
3417
- "additionalPersonalDetails.issuerState": "individual.identificationData.issuerState",
3418
- "additionalPersonalDetails.licenseCardNumber": "individual.identificationData.cardNumber",
3419
- "additionalPersonalDetails.expiryDate": "individual.identificationData.expiryDate",
3420
- "additionalPersonalDetails.nationality": "individual.nationality",
3421
- "additionalPersonalDetails.taxInformation": "individual.taxInformation",
3422
- // Address fields
3423
- "additionalPersonalDetails.city": "individual.residentialAddress.city",
3424
- "additionalPersonalDetails.country": "individual.residentialAddress.country",
3425
- "additionalPersonalDetails.postalCode": "individual.residentialAddress.postalCode",
3426
- "additionalPersonalDetails.stateOrProvince": "individual.residentialAddress.stateOrProvince",
3427
- "additionalPersonalDetails.address": "individual.residentialAddress.street",
3428
- "additionalPersonalDetails.otherAddressInformation": "individual.residentialAddress.street2"
3429
- };
3430
- const individualOnfidoApiKeyMapping = {
3431
- ...reverseMapping(individualOnfidoBaseMapping)
3432
- };
3433
- const individualOnfidoDocumentMapping = {
3434
- ["passport"]: "idVerificationMethod.idDocument",
3435
- ["proofOfResidency"]: "proofOfResidency.proofOfResidency",
3436
- ["proofOfNationalIdNumber"]: "proofOfNationalId.proofOfNationalId",
3437
- ["proofOfRelationship"]: "proofOfRelationship.proofOfRelationship"
3438
- };
3439
- const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido) => {
3440
- var _a, _b;
3842
+ const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido, isExperimentEnabled, matchingScenario) => {
3843
+ var _a, _b, _c, _d, _e;
3441
3844
  const legalEntity = {
3442
3845
  ...formatObject(individualOnfido, individualOnfidoApiKeyMapping),
3443
3846
  type: LegalEntityType.INDIVIDUAL
3444
3847
  };
3445
3848
  if (individualOnfido.additionalPersonalDetails) {
3849
+ if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && (matchingScenario == null ? void 0 : matchingScenario.includes(Scenarios.L_TAXINFO)) && ((_a = individualOnfido.additionalPersonalDetails) == null ? void 0 : _a.idNumber) && ((_b = individualOnfido.additionalPersonalDetails) == null ? void 0 : _b.typeOfIdentity) && ((_c = individualOnfido.additionalPersonalDetails) == null ? void 0 : _c.country) === CountryCodes.Spain) {
3850
+ legalEntity.individual.taxInformation = [
3851
+ {
3852
+ country: individualOnfido.additionalPersonalDetails.country,
3853
+ number: individualOnfido.additionalPersonalDetails.idNumber,
3854
+ type: individualOnfido.additionalPersonalDetails.typeOfIdentity
3855
+ }
3856
+ ];
3857
+ }
3446
3858
  legalEntity.individual.identificationData = adjustIdentificationData(
3447
3859
  individualOnfido.additionalPersonalDetails,
3448
3860
  legalEntity.individual.identificationData
3449
3861
  );
3450
3862
  }
3451
- if ((_a = individualOnfido.basicDetails) == null ? void 0 : _a.phoneNumber) {
3863
+ const localization = mapNameLocalization(individualOnfido.basicDetails ?? {});
3864
+ if (localization.length) {
3865
+ legalEntity.individual.name.localization = localization;
3866
+ }
3867
+ if ((_d = individualOnfido.basicDetails) == null ? void 0 : _d.phoneNumber) {
3452
3868
  const phone = {
3453
3869
  number: individualOnfido.basicDetails.phoneNumber.number,
3454
3870
  type: "mobile"
@@ -3456,7 +3872,7 @@ const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido) => {
3456
3872
  if (phone.number && legalEntity.individual) {
3457
3873
  legalEntity.individual.phone = phone;
3458
3874
  } else {
3459
- (_b = legalEntity == null ? void 0 : legalEntity.individual) == null ? true : delete _b.phone;
3875
+ (_e = legalEntity == null ? void 0 : legalEntity.individual) == null ? true : delete _e.phone;
3460
3876
  }
3461
3877
  }
3462
3878
  return legalEntity;
@@ -3465,7 +3881,7 @@ const getIndividualSchemaFromAPI = {
3465
3881
  ...individualOnfidoBaseMapping
3466
3882
  };
3467
3883
  const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isRoleFieldNeeded, parentLegalEntity) => {
3468
- var _a, _b, _c, _d, _e, _f, _g;
3884
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
3469
3885
  let individualOnfido = {
3470
3886
  ...formatObject(legalEntity, getIndividualSchemaFromAPI)
3471
3887
  };
@@ -3475,19 +3891,28 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
3475
3891
  ...individualOnfido == null ? void 0 : individualOnfido.basicDetails,
3476
3892
  ...isChangingType && {
3477
3893
  firstName: "",
3478
- lastName: ""
3894
+ lastName: "",
3895
+ localization: {}
3479
3896
  }
3480
3897
  },
3481
3898
  signatoryQuestionnaire: {
3482
3899
  isSignatory: isChangingType ? null : ((_a = individualOnfido.signatoryQuestionnaire) == null ? void 0 : _a.isSignatory) ?? null
3483
3900
  },
3484
- uboQuestionnaire: {
3485
- isOwner: isChangingType ? null : ((_b = individualOnfido.uboQuestionnaire) == null ? void 0 : _b.isOwner) ?? null,
3486
- isControllingPerson: isChangingType ? null : ((_c = individualOnfido.uboQuestionnaire) == null ? void 0 : _c.isControllingPerson) ?? null,
3487
- isDirector: isChangingType ? null : ((_d = individualOnfido.uboQuestionnaire) == null ? void 0 : _d.isDirector) ?? null
3901
+ uboQuestionnaire: isChangingType ? {
3902
+ isOwner: null,
3903
+ isControllingPerson: null,
3904
+ isDirector: null,
3905
+ isNomineeShareholder: null,
3906
+ isNomineeDirector: null
3907
+ } : {
3908
+ isOwner: ((_b = individualOnfido.uboQuestionnaire) == null ? void 0 : _b.isOwner) ?? null,
3909
+ isControllingPerson: ((_c = individualOnfido.uboQuestionnaire) == null ? void 0 : _c.isControllingPerson) ?? null,
3910
+ isDirector: ((_d = individualOnfido.uboQuestionnaire) == null ? void 0 : _d.isDirector) ?? null,
3911
+ isNomineeDirector: ((_e = individualOnfido.uboQuestionnaire) == null ? void 0 : _e.isNomineeDirector) ?? null,
3912
+ isNomineeShareholder: ((_f = individualOnfido.uboQuestionnaire) == null ? void 0 : _f.isNomineeShareholder) ?? null
3488
3913
  }
3489
3914
  };
3490
- if ((_e = legalEntity == null ? void 0 : legalEntity.documentDetails) == null ? void 0 : _e.length) {
3915
+ if ((_g = legalEntity == null ? void 0 : legalEntity.documentDetails) == null ? void 0 : _g.length) {
3491
3916
  individualOnfido = {
3492
3917
  ...individualOnfido,
3493
3918
  idVerificationMethod: {
@@ -3497,15 +3922,51 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
3497
3922
  }
3498
3923
  };
3499
3924
  }
3925
+ if ((_i = (_h = legalEntity.individual) == null ? void 0 : _h.name) == null ? void 0 : _i.localization) {
3926
+ const configs = [
3927
+ {
3928
+ script: "ja-Hani",
3929
+ mappingFunction: (l) => {
3930
+ var _a2, _b2;
3931
+ return {
3932
+ jaHaniFirstName: (_a2 = l.fields) == null ? void 0 : _a2.firstName,
3933
+ jaHaniLastName: (_b2 = l.fields) == null ? void 0 : _b2.lastName
3934
+ };
3935
+ }
3936
+ },
3937
+ {
3938
+ script: "ja-Kana",
3939
+ mappingFunction: (l) => {
3940
+ var _a2, _b2;
3941
+ return {
3942
+ jaKanaFirstName: (_a2 = l.fields) == null ? void 0 : _a2.firstName,
3943
+ jaKanaLastName: (_b2 = l.fields) == null ? void 0 : _b2.lastName
3944
+ };
3945
+ }
3946
+ }
3947
+ ];
3948
+ configs.forEach((config) => {
3949
+ var _a2, _b2;
3950
+ const localizationToMap = (_b2 = (_a2 = legalEntity.individual) == null ? void 0 : _a2.name.localization) == null ? void 0 : _b2.find(
3951
+ (l) => l.script === config.script
3952
+ );
3953
+ if (localizationToMap) {
3954
+ individualOnfido.basicDetails = {
3955
+ ...individualOnfido.basicDetails,
3956
+ ...config.mappingFunction(localizationToMap)
3957
+ };
3958
+ }
3959
+ });
3960
+ }
3500
3961
  if (!(parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations)) {
3501
3962
  return individualOnfido;
3502
3963
  }
3503
- const associations = ((_f = parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) == null ? void 0 : _f.filter((ea) => ea.legalEntityId === (legalEntity == null ? void 0 : legalEntity.id))) ?? [];
3964
+ const associations = ((_j = parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) == null ? void 0 : _j.filter((ea) => ea.legalEntityId === (legalEntity == null ? void 0 : legalEntity.id))) ?? [];
3504
3965
  if (isRoleFieldNeeded && individualOnfido.basicDetails) {
3505
3966
  individualOnfido.basicDetails.role = associations.map((ea) => ea.type);
3506
- individualOnfido.basicDetails.jobTitle = (_g = associations.find(
3967
+ individualOnfido.basicDetails.jobTitle = (_k = associations.find(
3507
3968
  ({ jobTitle }) => Boolean(jobTitle)
3508
- )) == null ? void 0 : _g.jobTitle;
3969
+ )) == null ? void 0 : _k.jobTitle;
3509
3970
  }
3510
3971
  if (isRoleFieldNeeded && individualOnfido.signatoryQuestionnaire && individualOnfido.uboQuestionnaire) {
3511
3972
  const associationTypes = new Set(associations.map((ea) => ea.type));
@@ -3518,6 +3979,13 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
3518
3979
  DecisionMakerType.CONTROLLING_PERSON
3519
3980
  );
3520
3981
  individualOnfido.uboQuestionnaire.isDirector = hasAssociation(DecisionMakerType.DIRECTOR);
3982
+ const hasNomineeAssociation = (type) => associations.some((ea) => ea.type === type && ea.nominee) ? "yes" : "no";
3983
+ individualOnfido.uboQuestionnaire.isNomineeDirector = hasNomineeAssociation(
3984
+ DecisionMakerType.DIRECTOR
3985
+ );
3986
+ individualOnfido.uboQuestionnaire.isNomineeShareholder = hasNomineeAssociation(
3987
+ DecisionMakerType.OWNER
3988
+ );
3521
3989
  }
3522
3990
  individualOnfido.basicDetails = getNomineeFromAssociation(
3523
3991
  associations,
@@ -3589,10 +4057,10 @@ const identityOnfidoBase = {
3589
4057
  rule: "isProofOfRelationshipRequired"
3590
4058
  },
3591
4059
  nomineeDirector: {
3592
- rule: "nomineeDirectorRequiredForCountry"
4060
+ rules: ["isGuidedDecisionMakersFlowDisabled", "nomineeDirectorRequiredForCountry"]
3593
4061
  },
3594
4062
  nomineeShareholder: {
3595
- rule: "nomineeShareHolderRequiredForCountry"
4063
+ rules: ["isGuidedDecisionMakersFlowDisabled", "nomineeShareHolderRequiredForCountry"]
3596
4064
  },
3597
4065
  // Regardless of scenario, we want the user to go through the "verification method" step
3598
4066
  // and hopefully get Onfido-verified. Otherwise, they must go through the manual flow.
@@ -3603,6 +4071,10 @@ const identityOnfidoBase = {
3603
4071
  // (either from Onfido or previously-uploaded document)
3604
4072
  rule: "isUsingInstantVerificationOrHasExistingDocument"
3605
4073
  },
4074
+ idDocumentType: {
4075
+ // If the user has a missing ID error and chooses manual flow
4076
+ rule: "isManualIdFlowAndHasMissingData"
4077
+ },
3606
4078
  /**
3607
4079
  * Below fields only relevant if manual ID is needed
3608
4080
  * @see identityNumber
@@ -3630,6 +4102,32 @@ const identityOnfidoBase = {
3630
4102
  "requiredIfDecisionMakerTask",
3631
4103
  "isDirectorRequiredForCountry"
3632
4104
  ]
4105
+ },
4106
+ isNomineeDirector: {
4107
+ rules: [
4108
+ "isGuidedDecisionMakersFlowEnabled",
4109
+ "requiredIfDecisionMakerTask",
4110
+ "nomineeDirectorRequiredForCountry"
4111
+ ]
4112
+ },
4113
+ isNomineeShareholder: {
4114
+ rules: [
4115
+ "isGuidedDecisionMakersFlowEnabled",
4116
+ "requiredIfDecisionMakerTask",
4117
+ "nomineeShareHolderRequiredForCountry"
4118
+ ]
4119
+ },
4120
+ jaHaniFirstName: {
4121
+ rule: "japaneseFirstAndLastNames"
4122
+ },
4123
+ jaHaniLastName: {
4124
+ rule: "japaneseFirstAndLastNames"
4125
+ },
4126
+ jaKanaFirstName: {
4127
+ rule: "japaneseFirstAndLastNames"
4128
+ },
4129
+ jaKanaLastName: {
4130
+ rule: "japaneseFirstAndLastNames"
3633
4131
  }
3634
4132
  };
3635
4133
  const identityNumber = {
@@ -3730,6 +4228,7 @@ function IndividualOnfidoDropin({
3730
4228
  const { isExperimentEnabled } = useExperimentsContext();
3731
4229
  const { isSettingEnabled } = useSettingsContext();
3732
4230
  const queryClient = useQueryClient();
4231
+ const isGuidedDecisionMakersFlowEnabled = isExperimentEnabled("EnableGuidedDecisionMakersFlow") || isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow");
3733
4232
  const defaultCountry = "NL";
3734
4233
  const { data: providerStatus } = useProviderStatus({
3735
4234
  providers: ["idDocument"],
@@ -3883,10 +4382,11 @@ function IndividualOnfidoDropin({
3883
4382
  country: ((_a2 = data == null ? void 0 : data.additionalPersonalDetails) == null ? void 0 : _a2.country) ?? country,
3884
4383
  taskType,
3885
4384
  isExperimentEnabled,
3886
- rootLegalEntity: parentLegalEntity
4385
+ rootLegalEntity: parentLegalEntity,
4386
+ problems
3887
4387
  });
3888
4388
  },
3889
- [country, matchingScenario, data, isExperimentEnabled, parentLegalEntity, taskType]
4389
+ [country, matchingScenario, data, isExperimentEnabled, parentLegalEntity, taskType, problems]
3890
4390
  );
3891
4391
  useEffect(() => {
3892
4392
  var _a2;
@@ -3996,13 +4496,13 @@ function IndividualOnfidoDropin({
3996
4496
  dataSubmitted
3997
4497
  }) => {
3998
4498
  var _a2, _b2, _c2, _d2;
3999
- const idDocument = (_a2 = dataSubmitted.idVerificationMethod) == null ? void 0 : _a2.idDocument;
4000
- if (idDocument == null ? void 0 : idDocument.instantIdVerificationData) {
4499
+ const idDocument2 = (_a2 = dataSubmitted.idVerificationMethod) == null ? void 0 : _a2.idDocument;
4500
+ if (idDocument2 == null ? void 0 : idDocument2.instantIdVerificationData) {
4001
4501
  if (((_c2 = (_b2 = providerStatus == null ? void 0 : providerStatus.statuses) == null ? void 0 : _b2.idDocument) == null ? void 0 : _c2.enabled) === false) {
4002
4502
  throw new Error("Provider unexpectedly disabled instant verification flow");
4003
4503
  }
4004
4504
  await handleInstantIdVerificationStartCheck(
4005
- idDocument.instantIdVerificationData,
4505
+ idDocument2.instantIdVerificationData,
4006
4506
  legalEntity.id
4007
4507
  );
4008
4508
  } else {
@@ -4035,7 +4535,7 @@ function IndividualOnfidoDropin({
4035
4535
  ...associatedLeTrackingParams,
4036
4536
  actionType: "upload",
4037
4537
  documentType: doc.type,
4038
- fileExtention: ((_a3 = doc == null ? void 0 : doc.attachments) == null ? void 0 : _a3.map((item) => getFileExtention(item.pageName ?? ""))) ?? null
4538
+ fileExtention: ((_a3 = doc == null ? void 0 : doc.attachments) == null ? void 0 : _a3.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0)) ?? null
4039
4539
  });
4040
4540
  });
4041
4541
  }
@@ -4068,9 +4568,10 @@ function IndividualOnfidoDropin({
4068
4568
  ...existingEntityAssociations.filter((ea) => ea.legalEntityId !== legalEntity.id) || []
4069
4569
  ]
4070
4570
  };
4071
- if (updatedParentLegalEntity.entityAssociations) {
4571
+ const nomineeDataSource = isGuidedDecisionMakersFlowEnabled ? dataSubmitted == null ? void 0 : dataSubmitted.uboQuestionnaire : dataSubmitted.basicDetails;
4572
+ if (nomineeDataSource && updatedParentLegalEntity.entityAssociations) {
4072
4573
  updatedParentLegalEntity.entityAssociations = updatedParentLegalEntity.entityAssociations.map(
4073
- (ea) => attachNomineeToRole(ea, country, dataSubmitted.basicDetails)
4574
+ (ea) => attachNomineeToRole(ea, country, nomineeDataSource)
4074
4575
  );
4075
4576
  }
4076
4577
  await updateLegalEntity({ ...updatedParentLegalEntity, id: parentLE.id });
@@ -4088,7 +4589,11 @@ function IndividualOnfidoDropin({
4088
4589
  return;
4089
4590
  }
4090
4591
  try {
4091
- const legalEntity = mapIndividualOnfidoSchemaToLegalEntity(dataSubmitted);
4592
+ const legalEntity = mapIndividualOnfidoSchemaToLegalEntity(
4593
+ dataSubmitted,
4594
+ isExperimentEnabled,
4595
+ matchingScenario
4596
+ );
4092
4597
  const idDocumentType = (_a2 = idDocumentTypeOptions.find(
4093
4598
  ({ id }) => {
4094
4599
  var _a3, _b3;
@@ -4145,18 +4650,18 @@ function IndividualOnfidoDropin({
4145
4650
  }
4146
4651
  };
4147
4652
  const datasetUtils = datasetUtilities(i18n.locale);
4148
- const formatIdDocument = (idDocument) => {
4653
+ const formatIdDocument = (idDocument2) => {
4149
4654
  var _a2, _b2;
4150
- if (!idDocument) return void 0;
4151
- const documentType = (idDocument == null ? void 0 : idDocument.instantIdVerificationData) ? onfidoDocumentTypeMapping.find(
4655
+ if (!idDocument2) return void 0;
4656
+ const documentType = (idDocument2 == null ? void 0 : idDocument2.instantIdVerificationData) ? onfidoDocumentTypeMapping.find(
4152
4657
  (document) => {
4153
4658
  var _a3;
4154
- return ((_a3 = idDocument.instantIdVerificationData) == null ? void 0 : _a3.document_front.type) === document.id;
4659
+ return ((_a3 = idDocument2.instantIdVerificationData) == null ? void 0 : _a3.document_front.type) === document.id;
4155
4660
  }
4156
- ) : idDocumentTypeOptions.find(({ id }) => idDocument.idDocumentType === id);
4661
+ ) : idDocumentTypeOptions.find(({ id }) => idDocument2.idDocumentType === id);
4157
4662
  if (!documentType) return void 0;
4158
- const frontPage = (_a2 = idDocument.idFrontPage) == null ? void 0 : _a2[0];
4159
- const backPage = (_b2 = idDocument.idBackPage) == null ? void 0 : _b2[0];
4663
+ const frontPage = (_a2 = idDocument2.idFrontPage) == null ? void 0 : _a2[0];
4664
+ const backPage = (_b2 = idDocument2.idBackPage) == null ? void 0 : _b2[0];
4160
4665
  if (!frontPage) return void 0;
4161
4666
  return {
4162
4667
  documentType: i18n.get(documentType.name),
@@ -4179,10 +4684,10 @@ function IndividualOnfidoDropin({
4179
4684
  const proofOfNationalIdFile = (_a2 = proofOfNationalId == null ? void 0 : proofOfNationalId.proofOfNationalId) == null ? void 0 : _a2[0];
4180
4685
  const proofOfResidencyFile = (_b2 = proofOfResidency == null ? void 0 : proofOfResidency.proofOfResidency) == null ? void 0 : _b2[0];
4181
4686
  const proofOfRelationshipFile = (_c2 = proofOfRelationship == null ? void 0 : proofOfRelationship.proofOfRelationship) == null ? void 0 : _c2[0];
4182
- const idDocument = (idVerificationMethod == null ? void 0 : idVerificationMethod.idVerificationMethod) === "manualVerification" ? manualIdUpload : idVerificationMethod == null ? void 0 : idVerificationMethod.idDocument;
4687
+ const idDocument2 = (idVerificationMethod == null ? void 0 : idVerificationMethod.idVerificationMethod) === "manualVerification" ? manualIdUpload : idVerificationMethod == null ? void 0 : idVerificationMethod.idDocument;
4183
4688
  return {
4184
- ...((idDocument == null ? void 0 : idDocument.idDocumentType) || (idDocument == null ? void 0 : idDocument.instantIdVerificationData)) && {
4185
- idDocument: formatIdDocument(idDocument)
4689
+ ...((idDocument2 == null ? void 0 : idDocument2.idDocumentType) || (idDocument2 == null ? void 0 : idDocument2.instantIdVerificationData)) && {
4690
+ idDocument: formatIdDocument(idDocument2)
4186
4691
  },
4187
4692
  ...proofOfNationalIdFile && {
4188
4693
  proofOfNationalId: {
@@ -4359,6 +4864,5 @@ function IndividualOnfidoDropin({
4359
4864
  }
4360
4865
  export {
4361
4866
  IndividualOnfidoDropin as I,
4362
- IndividualDropin as a,
4363
- isOnfidoAutofillFlowEnabled as i
4867
+ IndividualDropin as a
4364
4868
  };