@adyen/kyc-components 3.79.2 → 3.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-Ds2L_BZq.js → AcceptTermsOfServiceComponent-DKDi6iRX.js} +7 -7
  2. package/dist/{AccountSetupRejected-CnLwBcBW.js → AccountSetupRejected-P-8-WKZp.js} +6 -6
  3. package/dist/{Avatar-CIng0UJB.js → Avatar-Bsc58neS.js} +2 -2
  4. package/dist/{BusinessDetailsDropin-DRLNM2V0.js → BusinessDetailsDropin-CL-7UQcT.js} +113 -137
  5. package/dist/{BusinessFinancingComponent-CLSkl5C8.js → BusinessFinancingComponent-D1XrIsPc.js} +3 -3
  6. package/dist/{BusinessFinancingDropin-CDA2o18p.js → BusinessFinancingDropin-DQ56QSPj.js} +97 -71
  7. package/dist/{BusinessFinancingPage-DVJrlNw1.js → BusinessFinancingPage-B6M7ESoA.js} +3 -3
  8. package/dist/{BusinessTypeSelectionPage-CauCPIo9.js → BusinessTypeSelectionPage-CFignJ19.js} +47 -76
  9. package/dist/{ContractViewer-B7T6DVIs.js → ContractViewer-DiT_8GRM.js} +2 -2
  10. package/dist/{CreateIndividualComponent-V1Zxw0PL.js → CreateIndividualComponent-DkX98cSx.js} +4 -4
  11. package/dist/{CreateTransferInstrumentComponent-DlP7ZfeR.js → CreateTransferInstrumentComponent-SaPgQY2J.js} +5 -5
  12. package/dist/{CustomerSupport-DyYygMrW.js → CustomerSupport-XD8NZGtZ.js} +10 -10
  13. package/dist/{DebugModal-C8GhCfUL.js → DebugModal-Dx55VMz1.js} +12 -226
  14. package/dist/{DecisionMakerDetailsPage-CTEw2kTK.js → DecisionMakerDetailsPage-3fUQSm8D.js} +4 -4
  15. package/dist/DecisionMakers-DHeZux6T.js +478 -0
  16. package/dist/{EmbeddedStatus-BySsWtnv.js → EmbeddedStatus-BXBTxeW1.js} +13 -13
  17. package/dist/{FormEndState-CrU-9zm0.js → FormEndState-D_8_v1NU.js} +4 -3
  18. package/dist/{FormFlow-dafBp16p.js → FormFlow-Urrg9vMm.js} +3 -3
  19. package/dist/{IndividualOnfidoDropin-D7HV4fhv.js → IndividualOnfidoDropin-VYVSjf_C.js} +204 -184
  20. package/dist/{Introduction-Ck_RbQgF.js → Introduction-DZCNLnIC.js} +24 -26
  21. package/dist/{ProviderButton-BMTHmDlv.js → LandingLayout-CddoBOJ4.js} +91 -83
  22. package/dist/{LegalRepresentativeDetailsPage-BOfd5OEw.js → LegalRepresentativeDetailsPage-zEJCKboy.js} +4 -4
  23. package/dist/{ManageIndividualComponent-BOTH_TIx.js → ManageIndividualComponent-BPI2aesr.js} +6 -6
  24. package/dist/{ManageTermsOfServiceComponent-CHfcLrHo.js → ManageTermsOfServiceComponent-BzkhmJMD.js} +4 -4
  25. package/dist/{ManageTransferInstrumentComponent-Dl018466.js → ManageTransferInstrumentComponent-nlmjHqMN.js} +6 -6
  26. package/dist/{OnboardingDropinComponent-CIDrFNLB.js → OnboardingDropinComponent-DkkC-O2y.js} +366 -208
  27. package/dist/{Review-DNobYAua.js → Review-CrcnPOYr.js} +11 -11
  28. package/dist/RootBusinessDetailsPage-DHv2mk_-.js +1848 -0
  29. package/dist/{RootIndividualDetailsPage-CAaJtOLT.js → RootIndividualDetailsPage-D6AiPFI0.js} +4 -4
  30. package/dist/{SignPCIComponent-DZGEfDHs.js → SignPCIComponent-B3UDh5F8.js} +6 -6
  31. package/dist/{SingpassSelection-DvL44kIi.js → SingpassSelection-DDoYQM_e.js} +11 -11
  32. package/dist/{SoleProprietorshipPage-BGKlXpwl.js → SoleProprietorshipPage-CKWYdVS_.js} +4 -4
  33. package/dist/{SourceOfFundsPage-BcMeO9tW.js → SourceOfFundsPage-D0kJCtH3.js} +28 -20
  34. package/dist/{StoreProvider-CFPaE2S6.js → StoreProvider-nqVR_kWS.js} +5798 -5421
  35. package/dist/{TaskItemStatus-Bonis0pN.js → TaskItemStatus-o-rpFU9k.js} +23 -23
  36. package/dist/TaskStatusIndicator-6bpYVt4Z.js +69 -0
  37. package/dist/{TaxReportingDropin-7LKBX7B3.js → TaxReportingDropin-wcsNHxqr.js} +8 -7
  38. package/dist/{TileGroup-Cqud8CNc.js → TileGroup-BrD32_Y0.js} +2 -2
  39. package/dist/{TrustDetailsPage-vA3i5YX9.js → TrustDetailsPage-DBoP1d57.js} +38 -14
  40. package/dist/{TrustMemberCompanyPage-C1v0BJ7H.js → TrustMemberCompanyPage-CH47pq1l.js} +5 -5
  41. package/dist/{TrustMemberIndividualPage--6Gj8PFj.js → TrustMemberIndividualPage-g6tCyoZp.js} +4 -4
  42. package/dist/{UnincorporatedPartnershipIndividualPage-Dcx9ad-z.js → UnincorporatedPartnershipIndividualPage-BANlV7bn.js} +4 -4
  43. package/dist/{UnincorporatedPartnershipMemberCompanyPage-g9zVAUbz.js → UnincorporatedPartnershipMemberCompanyPage-BSrxjjH_.js} +4 -4
  44. package/dist/{VerificationErrorAlert-C4lsw8XP.js → VerificationErrorAlert-w9MIQ2hH.js} +2 -2
  45. package/dist/{ViewVerificationStatusComponent-CNypH4cN.js → ViewVerificationStatusComponent-DAx2BfA6.js} +14 -12
  46. package/dist/adyen-business-financing.js +8 -12
  47. package/dist/adyen-individual.js +6 -4
  48. package/dist/adyen-kyc-components.js +143 -124
  49. package/dist/adyen-manage-individual.js +2 -2
  50. package/dist/adyen-manage-terms-of-service.js +3 -3
  51. package/dist/adyen-manage-transfer-instruments.js +3 -3
  52. package/dist/adyen-onboarding.js +14 -6
  53. package/dist/adyen-terms-of-service.js +18 -6
  54. package/dist/adyen-transfer-instrument.js +10 -6
  55. package/dist/adyen-verification-status.js +2 -2
  56. package/dist/bag-DpxmyXfR.js +14 -0
  57. package/dist/business-lines-DboUCbXw.js +135 -0
  58. package/dist/decision-makers-group-CgddXgrx.js +1944 -0
  59. package/dist/en-US-CQ3angjM.js +22 -0
  60. package/dist/{getFieldsWithExistingData-BiBkVHe8.js → getFieldsWithExistingData-D1vVVeaf.js} +2 -2
  61. package/dist/{hasDataChanged-kjd6Fn7f.js → hasDataChanged-DIVMD4Rh.js} +2 -2
  62. package/dist/{localizeDateString-BRbQo-M1.js → localizeDateString-DLWgJuND.js} +2 -2
  63. package/dist/mail-Z_IE_hkw.js +14 -0
  64. package/dist/{mapFinancialReportsToFinancialInformation-CeC2JOt6.js → mapFinancialReportsToFinancialInformation-anU-0sl0.js} +2 -2
  65. package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
  66. package/dist/{resolveEnvironment-B9n_0_So.js → resolveEnvironment-BOHs0YoH.js} +3 -3
  67. package/dist/{rules-CRNu4c7G.js → rules-DF6nIpnn.js} +13 -13
  68. package/dist/solution-payments-DTAuLSWF.js +14 -0
  69. package/dist/style.css +218 -181
  70. package/dist/styles-CLV89_hH.js +218 -181
  71. package/dist/terminal-1-ewywjFJI.js +18 -0
  72. package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +1 -2
  73. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +4 -8
  74. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +2 -3
  75. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +25 -24
  76. package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +10 -10
  77. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -2
  78. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +0 -306
  79. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
  80. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +9 -0
  81. package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +10 -0
  82. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
  83. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -2
  84. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +5 -3
  85. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -2
  86. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +14 -0
  87. package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +3 -0
  88. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +4 -0
  89. package/dist/types/components/Business/forms/forms.types.d.ts +14 -0
  90. package/dist/types/components/Business/forms/rules.d.ts +26 -8
  91. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -1
  92. package/dist/types/components/Business/mapping/businessDetails/mapOrganizationTypeToCompanyType.d.ts +1 -1
  93. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -3
  94. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -3
  95. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +18 -0
  96. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +5 -0
  97. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +2 -0
  98. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +21 -0
  99. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/validate.d.ts +22 -0
  100. package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -1
  101. package/dist/types/components/Business/utils/companyUtil.d.ts +3 -3
  102. package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +5 -0
  103. package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +5 -0
  104. package/dist/types/components/BusinessLines/tasks/BusinessLinesGettingStarted/BusinessLinesGettingStarted.d.ts +6 -0
  105. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
  106. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1 -306
  107. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +22 -19
  108. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -2
  109. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
  110. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +3 -3
  111. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +5 -5
  112. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
  113. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +1 -1
  114. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +6 -0
  115. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +2 -2
  116. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -2
  117. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
  118. package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +8 -8
  119. package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +18 -18
  120. package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
  121. package/dist/types/components/Individual/forms/Individual/types.d.ts +2 -2
  122. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +3 -2
  123. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
  124. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +2 -2
  125. package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +4 -4
  126. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +2 -2
  127. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +3 -1
  128. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -2
  129. package/dist/types/components/Individual/helpers/isDecisionMakerTask.d.ts +2 -2
  130. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +2 -2
  131. package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
  132. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +3 -3
  133. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +1 -1
  134. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +2 -0
  135. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +7 -0
  136. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
  137. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
  138. package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +4 -4
  139. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
  140. package/dist/types/components/Shared/Introduction/Introduction.d.ts +2 -2
  141. package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +2 -2
  142. package/dist/types/components/Shared/Introduction/constants.d.ts +3 -3
  143. package/dist/types/components/Shared/Introduction/copy.d.ts +6 -5
  144. package/dist/types/components/Shared/Introduction/types.d.ts +11 -11
  145. package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
  146. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  147. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
  148. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +5 -7
  149. package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
  150. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  151. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  152. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
  153. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
  154. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  155. package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
  156. package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
  157. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  158. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +27 -27
  159. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
  160. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
  161. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
  162. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
  163. package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
  164. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  165. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
  166. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  167. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  168. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  169. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  170. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  171. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -3
  172. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +3 -7
  173. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  174. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
  175. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  176. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
  177. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +11 -10
  178. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -0
  179. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
  180. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -4
  181. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -2
  182. package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
  183. package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
  184. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
  185. package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -2
  186. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +3 -3
  187. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -1
  188. package/dist/types/components/Trust/tasks/TrustMembers/CompanyTrustMemberTaskItem.d.ts +1 -1
  189. package/dist/types/components/Trust/tasks/TrustMembers/ExemptSettlorTaskItem.d.ts +1 -1
  190. package/dist/types/components/Trust/tasks/TrustMembers/RegularTrustMemberTaskItem.d.ts +1 -1
  191. package/dist/types/components/Trust/tasks/TrustMembers/RootTrusteeTaskItem.d.ts +1 -1
  192. package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +6 -6
  193. package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +7 -6
  194. package/dist/types/components/Trust/utils/trustMemberRequirements.d.ts +1 -1
  195. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +6 -6
  196. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +5 -5
  197. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
  198. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +2 -2
  199. package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +16 -0
  200. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +14 -0
  201. package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
  202. package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +3 -2
  203. package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
  204. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
  205. package/dist/types/constants/keys.d.ts +2 -0
  206. package/dist/types/context/ExperimentContext/types.d.ts +49 -37
  207. package/dist/types/context/SettingsContext/types.d.ts +24 -24
  208. package/dist/types/core/models/api/company-types-value.d.ts +12 -11
  209. package/dist/types/core/models/api/decision-maker-type.d.ts +7 -6
  210. package/dist/types/core/models/api/entity-type.d.ts +5 -4
  211. package/dist/types/core/models/api/get-scenarios.d.ts +18 -18
  212. package/dist/types/core/models/api/individual.d.ts +1 -0
  213. package/dist/types/core/models/api/legal-arrangement.d.ts +2 -2
  214. package/dist/types/core/models/api/legal-entity-association.d.ts +2 -2
  215. package/dist/types/core/models/api/legal-entity-type.d.ts +8 -7
  216. package/dist/types/core/models/api/trust-member-type.d.ts +8 -8
  217. package/dist/types/core/models/api/trusted-fields-provider.d.ts +5 -4
  218. package/dist/types/core/models/api/unincorporated-partnership.d.ts +6 -6
  219. package/dist/types/core/models/api/verification-error.d.ts +8 -7
  220. package/dist/types/core/models/api/verification-status.d.ts +7 -6
  221. package/dist/types/core/models/api/view-verification-status.d.ts +8 -7
  222. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
  223. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
  224. package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
  225. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
  226. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
  227. package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
  228. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
  229. package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
  230. package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +4 -4
  231. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +7 -6
  232. package/dist/types/hooks/useBusinessSetup.d.ts +11 -10
  233. package/dist/types/hooks/useDataMissingRemediations.d.ts +2 -2
  234. package/dist/types/hooks/useFormComposer.d.ts +1 -1
  235. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -3
  236. package/dist/types/hooks/useLegalEntityType.d.ts +1 -1
  237. package/dist/types/hooks/useMultiForm/types.d.ts +38 -36
  238. package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
  239. package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
  240. package/dist/types/language/Language.d.ts +1 -0
  241. package/dist/types/language/utils.d.ts +11 -1
  242. package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
  243. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
  244. package/dist/types/stores/globalStore/get-task-status.d.ts +2 -2
  245. package/dist/types/stores/globalStore/globalStore.d.ts +7 -7
  246. package/dist/types/stores/globalStore/taskStatus.d.ts +17 -16
  247. package/dist/types/stores/globalStore/taskTypes.d.ts +37 -35
  248. package/dist/types/types/datasets/country-code.d.ts +249 -249
  249. package/dist/types/types/datasets/currency.d.ts +25 -25
  250. package/dist/types/types/datasets/province-code.d.ts +46 -46
  251. package/dist/types/types/datasets/state-code.d.ts +84 -84
  252. package/dist/types/types/errors/entity-problems.d.ts +3 -4
  253. package/dist/types/types/form-rules.d.ts +2 -2
  254. package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
  255. package/dist/types/utils/birthDateUtils.d.ts +3 -3
  256. package/dist/types/utils/decisionMaker.d.ts +4 -3
  257. package/dist/types/utils/decisionMakerRoles.d.ts +4 -3
  258. package/dist/types/utils/entityAssociationUtil.d.ts +4 -5
  259. package/dist/types/utils/entityStatusUtil.d.ts +3 -3
  260. package/dist/types/utils/formUtils.d.ts +2 -2
  261. package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
  262. package/dist/types/utils/getName.d.ts +2 -2
  263. package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
  264. package/dist/types/utils/regex/patternValidators.d.ts +1 -0
  265. package/dist/types/utils/roleMetadata.d.ts +3 -3
  266. package/dist/types/utils/translation.d.ts +40 -0
  267. package/dist/{useMultiForm-BDkV8YGs.js → useMultiForm-CD30RFXS.js} +10 -5
  268. package/dist/{useOnboardingStatus-DJfXzLrS.js → useOnboardingStatus-_s90wk5C.js} +2 -2
  269. package/dist/{useTermsOfServiceStatus-CqoKhQny.js → useTermsOfServiceStatus-DCkVaRvN.js} +2 -2
  270. package/dist/{useUpdateLegalEntity-CQZpNVEx.js → useUpdateLegalEntity-xfJlMkrb.js} +2 -2
  271. package/dist/{utils-BUlCzPVz.js → utils-CusOxwr8.js} +17 -17
  272. package/dist/{validate-Ddg2Xxm6.js → validate-C3WaahoD.js} +2 -2
  273. package/dist/{validate-s3E8xQ8_.js → validate-Dnz1cwsS.js} +2 -2
  274. package/dist/view-verification-status-VFcBydkR.js +21 -0
  275. package/package.json +5 -30
  276. package/dist/DecisionMakers-BGp7y6Zw.js +0 -217
  277. package/dist/LandingLayout-C0ibudc6.js +0 -139
  278. package/dist/ManagePCIComponent-BNhDVWDz.js +0 -33
  279. package/dist/RootBusinessDetailsPage-CIBoQGoY.js +0 -42
  280. package/dist/_plugin-vue_export-helper-CgYpM5kA.js +0 -19
  281. package/dist/adyen-manage-pci.js +0 -48
  282. package/dist/adyen-sign-pci.js +0 -62
  283. package/dist/adyen-terms-of-service.vue_vue_type_script_lang-BD4hndWg.js +0 -42
  284. package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-BE-ro1iH.js +0 -53
  285. package/dist/css-DoTjy0j1.js +0 -24
  286. package/dist/json-BnJPX3dC.js +0 -31
  287. package/dist/plaintext-d423PssW.js +0 -17
  288. package/dist/preact/adyen-individual.js +0 -15
  289. package/dist/preact/adyen-manage-individual.js +0 -15
  290. package/dist/preact/adyen-terms-of-service.js +0 -16
  291. package/dist/preact/adyen-transfer-instrument.js +0 -16
  292. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationDisclaimer/IdVerificationDisclaimer.d.ts +0 -1
  293. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationHeader/IdVerificationHeader.d.ts +0 -1
  294. package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +0 -3
  295. package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +0 -3
  296. package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +0 -12
  297. package/dist/types/embeds/manage-pci/adyen-manage-pci.d.ts +0 -1
  298. package/dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts +0 -39
  299. package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -15
  300. package/dist/types/embeds/sign-pci/adyen-sign-pci.d.ts +0 -1
  301. package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +0 -43
  302. package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +0 -3
  303. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +0 -3
  304. package/dist/useSalesChannelsSettings-O5aAoy_f.js +0 -51
  305. package/dist/view-verification-status-DTkA8PtO.js +0 -20
  306. package/dist/vue/adyen-individual.js +0 -53
  307. package/dist/vue/adyen-manage-individual.js +0 -56
  308. package/dist/vue/adyen-terms-of-service.js +0 -28
  309. package/dist/vue/adyen-transfer-instrument.js +0 -30
  310. package/dist/yaml-Cat1gRsz.js +0 -22
@@ -2,24 +2,24 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "048f048c-317c-462d-bf16-076c77601e98", e._sentryDebugIdIdentifier = "sentry-dbid-048f048c-317c-462d-bf16-076c77601e98");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4820f618-179c-42bf-ba8e-f62e77d52204", e._sentryDebugIdIdentifier = "sentry-dbid-4820f618-179c-42bf-ba8e-f62e77d52204");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useMemo, useState, useEffect, useCallback } from "preact/hooks";
12
- import { p as useApiContext, bh as useMutation, bj as httpPost, bW as matchesRegex, bX as trimValWithOneSpace, bY as NO_ALPHABET_REGEX, bZ as EMOJI_REGEX, b_ as hasRepeatedCharacters, b$ as isInvalidName, c0 as INDIVIDUAL_VALID_CHAR_REGEX, c1 as getFormattingRegEx, c2 as SPECIAL_CHARS, c3 as standardKatakanaValidator, c4 as standardKanjiValidator, as as resolveFieldMetadata, ap as CountryCodes, c5 as getSSNType, aq as isEmpty, c6 as defaultFieldMetadata, c7 as defaultFieldConfig, c8 as defaultFieldMetadata$1, c9 as fieldConfig, W as TaskTypes, ca as taxInformationDefaultFieldMetadata, y as LegalEntityType, cb as taxInformationDefaultFieldConfig, cc as getAgeToday, cd as euCountries, ce as getIdDocument, cf as getDocument, cg as mapExistingFile, ch as getPageName, ci as getLocalizedIdDocumentTypeOptions, cj as getPage, ck as createDocumentRequest, bz as formatObject, cl as individualApiKeyMapping, bm as individualComponentsKeyMapping, by as reverseMapping, cm as getNomineeFromAssociation, cn as drop, X as createLogger, P as useAccountHolder, b as useI18nContext, a0 as useAnalyticsContext, a6 as useToastContext, a7 as useExperimentsContext, J as useSettingsContext, co as documentApiUtils, cp as useProviderStatus, g as getLegalEntityCountry, bO as getAssociatedLeAnalyticsPayload, cq as addressValidators, cr as getAsyncIdNumberValidationRule, cs as getAsyncPhoneValidationRules, ct as addressFormatters, cu as useScenarios, cv as setHasMotionCaptureScenario, cw as useScenarioConfiguration, cx as getPropsFromConfigurations, cy as individualForms, cz as showIndividualMotionCapture, bP as getRequiredForms, bQ as addValidityToForms, cA as getAllowedDecisionMakerRoles, b2 as datasetUtilities, bR as useFormComposer, bS as trackNavigation, cB as Individual, cC as composePerScenarioFormConfigurations, cD as omitObscuredFieldsIfUnchanged, cE as filterOutUnwantedAssociationsIfRootLE, bT as isValidationError, bU as processValidationErrors, bV as isMaintenanceModeError, bc as cloneObject, cF as mapAddressLabels, cG as individualDocumentForms, cH as individualDocumentMapping, cI as individualObscuredFields, cJ as mergeAttachments, cK as getFileExtention, al as getOwnEntityAssociations, cL as hasNomineesChanged, cM as attachNomineeToRole, cN as idVerificationProviderId, cO as doArraysMatch, C as Typography, _ as Button, aA as Field, cP as DecisionMakerType, cQ as createFormRules, cR as getAvailableDecisionMakerRoleTypes, cS as allowedCountriesForNominee, bK as getAddressSchemaForCountry, bL as COUNTRIES_WITH_STATES_DATASET, cT as Scenarios, cU as isLowRiskCountry, bt as Select, cV as isTruthyValidator, cW as licenseCardNumberDefaultMetadata, cX as licenseCardNumberDefaultConfig, ar as mergeFieldMetadataIntoProps, az as createFormUtils, bJ as useFormContext, aw as getFieldProps, cY as idNumberFields, cZ as IdentityNumber, c_ as additionallIdNumberOptions, c$ as MaskedInput, bI as InputDate, d0 as formatDateObj, d1 as DriversLicense, d2 as addressFields, u as useAllowedCountries, K as SettingNames, d3 as getDefaultTaxIdNumberType, d4 as isDecisionMakerTask, F as FormHeader, ay as ErrorPanel, aG as CountryField, bM as Address, bN as getAddressSchemaLabelsByCountry, bC as Link, ba as Confirm, d5 as getAgeRangeForLegalRepresentative, d6 as IndividualIdNumberTypeSelector, d7 as TaxInformationField, d8 as PatriotActDisclosure, d9 as isLegalRepresentativeNeeded, ax as nameFields, da as decisionMakerRoleFields, db as nomineeFields, dc as contactDetailFields, B as Alert, aW as ContextGuidance, b1 as TrustedFieldsProvider, dd as DecisionMakerRole, de as NomineeDecisionMakerRole, df as LocalizedNameFields, bD as InputText, dg as ContactDetails, dh as keysOf, b0 as objectsDeepEqual, di as isEmpty$1, dj as RadioWithLabel, dk as listToRecord, b4 as Modal, bo as Svg, dl as pick, dm as IdVerification, b9 as Spacer, $ as IconButton, c as useDataset, d as datasetIdentifier, L as Loader, dn as isPersonUnderAge, dp as IdDocumentManualUpload, Z as useTranslation, aU as Trans, dq as idDocumentUploadFields, dr as useFormRouterContext, ds as getFormProps, dt as useCapabilities, du as hasMotionCaptureScenario, dv as setShowIndividualMotionCapture, dw as shouldShowMotionCapture, dx as MemoizedProofOfRelationship, dy as MemoizedDocumentUpload, dz as MemoizedProofOfResidencyUpload, dA as individualOnfidoApiKeyMapping, dB as individualOnfidoBaseMapping, bp as useQueryClient, dC as individualOnfidoDocumentMapping, dD as individualOnfidoObscuredFields } from "./StoreProvider-CFPaE2S6.js";
13
- import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-CQZpNVEx.js";
14
- import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-Ddg2Xxm6.js";
15
- import { F as FormContextProvider, a as FormFlow } from "./FormFlow-dafBp16p.js";
16
- import { u as useSingpassMyInfoLogin, P as ProviderButton } from "./ProviderButton-BMTHmDlv.js";
17
- import { u as useMultiForm } from "./useMultiForm-BDkV8YGs.js";
18
- import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-BiBkVHe8.js";
19
- import { l as localizeDateString } from "./localizeDateString-BRbQo-M1.js";
20
- import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-CRNu4c7G.js";
12
+ import { a as useApiContext, bp as useMutation, t as httpPost, bX as matchesRegex, bY as trimValWithOneSpace, bZ as NO_ALPHABET_REGEX, b_ as EMOJI_REGEX, b$ as hasRepeatedCharacters, c0 as isInvalidName, c1 as INDIVIDUAL_VALID_CHAR_REGEX, c2 as getFormattingRegEx, c3 as SPECIAL_CHARS, c4 as standardKatakanaValidator, c5 as standardKanjiValidator, av as resolveFieldMetadata, as as CountryCodes, c6 as getSSNType, at as isEmpty, c7 as defaultFieldMetadata, c8 as defaultFieldConfig, c9 as defaultFieldMetadata$1, ca as fieldConfig, $ as TaskTypes, cb as taxInformationDefaultFieldMetadata, O as LegalEntityTypes, cc as taxInformationDefaultFieldConfig, cd as getAgeToday, ce as euCountries, cf as getIdDocument, cg as getDocument, ch as mapExistingFile, ci as getPageName, cj as getLocalizedIdDocumentTypeOptions, ck as getPage, cl as createDocumentRequest, bA as formatObject, cm as individualApiKeyMapping, b7 as individualComponentsKeyMapping, bz as reverseMapping, cn as getNomineeFromAssociation, co as drop, a0 as createLogger, X as useAccountHolder, u as useI18nContext, a3 as useAnalyticsContext, a9 as useToastContext, aa as useExperimentsContext, v as useSettingsContext, cp as documentApiUtils, cq as useProviderStatus, g as getLegalEntityCountry, bP as getAssociatedLeAnalyticsPayload, cr as addressValidators, cs as getAsyncIdNumberValidationRule, ct as getAsyncPhoneValidationRules, cu as addressFormatters, cv as useScenarios, cw as setHasMotionCaptureScenario, cx as useScenarioConfiguration, cy as getPropsFromConfigurations, cz as individualForms, cA as showIndividualMotionCapture, bQ as getRequiredForms, bR as addValidityToForms, cB as getAllowedDecisionMakerRoles, ba as datasetUtilities, bS as useFormComposer, bT as trackNavigation, cC as Individual, cD as composePerScenarioFormConfigurations, cE as omitObscuredFieldsIfUnchanged, cF as filterOutUnwantedAssociationsIfRootLE, bU as isValidationError, bV as processValidationErrors, bW as isMaintenanceModeError, bk as cloneObject, cG as mapAddressLabels, cH as individualDocumentForms, cI as individualDocumentMapping, cJ as individualObscuredFields, cK as mergeAttachments, cL as getFileExtention, ao as getOwnEntityAssociations, cM as hasNomineesChanged, cN as attachNomineeToRole, cO as idVerificationProviderId, cP as doArraysMatch, N as Typography, G as Button, aD as Field, cQ as DecisionMakerTypes, cR as createFormRules, cS as getAvailableDecisionMakerRoleTypes, cT as allowedCountriesForNominee, bL as getAddressSchemaForCountry, bM as COUNTRIES_WITH_STATES_DATASET, cU as Scenarios, cV as isLowRiskCountry, bu as Select, cW as isTruthyValidator, cX as licenseCardNumberDefaultMetadata, cY as licenseCardNumberDefaultConfig, au as mergeFieldMetadataIntoProps, c as useTranslation, aC as createFormUtils, bK as useFormContext, az as getFieldProps, cZ as idNumberFields, c_ as IdentityNumber, c$ as additionallIdNumberOptions, d0 as MaskedInput, bJ as InputDate, d1 as formatDateObj, d2 as DriversLicense, d3 as addressFields, b as useAllowedCountries, w as SettingNames, d4 as isDecisionMakerTask, F as FormHeader, aB as ErrorPanel, aJ as CountryField, bN as Address, bO as getAddressSchemaLabelsByCountry, bD as Link, bi as Confirm, d5 as getAgeRangeForLegalRepresentative, d6 as IndividualIdNumberTypeSelector, d7 as TaxInformationField, bE as InputText, d8 as PatriotActDisclosure, d9 as isLegalRepresentativeNeeded, aA as nameFields, da as decisionMakerRoleFields, db as nomineeFields, dc as contactDetailFields, K as Alert, aZ as ContextGuidance, b4 as TrustedFieldsProviders, dd as DecisionMakerRole, de as NomineeDecisionMakerRole, df as LocalizedNameFields, dg as ContactDetails, dh as keysOf, b3 as objectsDeepEqual, di as isEmpty$1, dj as RadioWithLabel, dk as listToRecord, bc as Modal, dl as pick, dm as IdVerification, bh as Spacer, a2 as IconButton, e as useDataset, f as datasetIdentifier, L as Loader, H as Svg, dn as isPersonUnderAge, dp as IdDocumentManualUpload, M as translateStringOrObject, aX as Trans, dq as idDocumentUploadFields, dr as useFormRouterContext, ds as getFormProps, dt as useCapabilities, du as hasMotionCaptureScenario, dv as setShowIndividualMotionCapture, dw as shouldShowMotionCapture, dx as MemoizedProofOfRelationship, dy as MemoizedDocumentUpload, dz as MemoizedProofOfResidencyUpload, dA as individualOnfidoApiKeyMapping, dB as individualOnfidoBaseMapping, br as useQueryClient, dC as individualOnfidoDocumentMapping, dD as individualOnfidoObscuredFields } from "./StoreProvider-nqVR_kWS.js";
13
+ import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-xfJlMkrb.js";
14
+ import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-C3WaahoD.js";
15
+ import { F as FormContextProvider, a as FormFlow } from "./FormFlow-Urrg9vMm.js";
16
+ import { u as useSingpassMyInfoLogin, L as LandingLayout } from "./LandingLayout-CddoBOJ4.js";
17
+ import { u as useMultiForm } from "./useMultiForm-CD30RFXS.js";
18
+ import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-D1vVVeaf.js";
19
+ import { l as localizeDateString } from "./localizeDateString-DLWgJuND.js";
20
+ import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-DF6nIpnn.js";
21
21
  import { signal, computed } from "@preact/signals";
22
- import { T as TileGroup } from "./TileGroup-Cqud8CNc.js";
22
+ import { T as TileGroup } from "./TileGroup-BrD32_Y0.js";
23
23
  const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
24
24
  return await httpPost(
25
25
  {
@@ -184,7 +184,7 @@ const personalDetailsValidators = ({
184
184
  taxInformationDefaultFieldConfig[country],
185
185
  {
186
186
  taxIdNumberType,
187
- companyType: LegalEntityType.INDIVIDUAL
187
+ companyType: LegalEntityTypes.INDIVIDUAL
188
188
  },
189
189
  taxInformationDefaultFieldMetadata
190
190
  )?.validators,
@@ -374,7 +374,7 @@ const mapIndividualToLegalEntity = (data) => {
374
374
  const requestObj = {
375
375
  ...formatObject(data, individualApiKeyMapping)
376
376
  };
377
- requestObj.type = LegalEntityType.INDIVIDUAL;
377
+ requestObj.type = LegalEntityTypes.INDIVIDUAL;
378
378
  const { personalDetails } = data;
379
379
  if (!personalDetails) return requestObj;
380
380
  requestObj.individual.identificationData = adjustIdentificationData(
@@ -806,7 +806,7 @@ function IndividualDropin({
806
806
  useEffect(() => {
807
807
  setCountry(data?.personalDetails?.residencyCountry ?? parentCountry);
808
808
  }, [data?.personalDetails?.residencyCountry, parentCountry]);
809
- const { data: scenarios } = useScenarios(country, LegalEntityType.INDIVIDUAL);
809
+ const { data: scenarios } = useScenarios(country, LegalEntityTypes.INDIVIDUAL);
810
810
  useEffect(() => {
811
811
  if (!scenarios) return;
812
812
  setHasMotionCaptureScenario(scenarios);
@@ -814,7 +814,7 @@ function IndividualDropin({
814
814
  }, [scenarios]);
815
815
  const { fieldConfigurations } = useScenarioConfiguration({
816
816
  parseConfiguration: parseConfiguration$1,
817
- legalEntityType: LegalEntityType.INDIVIDUAL,
817
+ legalEntityType: LegalEntityTypes.INDIVIDUAL,
818
818
  setLoadingStatus,
819
819
  country
820
820
  });
@@ -902,7 +902,7 @@ function IndividualDropin({
902
902
  }).catch(() => {
903
903
  showToast({ label: i18n.get("failedToFetchRelevantDocuments"), variant: "error" });
904
904
  });
905
- }, []);
905
+ }, [legalEntityResponse]);
906
906
  const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
907
907
  const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
908
908
  const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions(country);
@@ -1317,7 +1317,7 @@ const additionalPersonalDetailsValidators = ({
1317
1317
  taxInformationDefaultFieldConfig[country],
1318
1318
  {
1319
1319
  taxIdNumberType,
1320
- companyType: LegalEntityType.INDIVIDUAL
1320
+ companyType: LegalEntityTypes.INDIVIDUAL
1321
1321
  },
1322
1322
  taxInformationDefaultFieldMetadata
1323
1323
  )?.validators,
@@ -1363,15 +1363,14 @@ const basicDetailsValidators = ({
1363
1363
  });
1364
1364
  const guidanceQuestion = "adyen-kyc-guidance-question";
1365
1365
  const options = "adyen-kyc-options";
1366
- const styles$6 = {
1366
+ const styles$4 = {
1367
1367
  guidanceQuestion,
1368
1368
  options
1369
1369
  };
1370
- var GuidanceQuestionValues = /* @__PURE__ */ ((GuidanceQuestionValues2) => {
1371
- GuidanceQuestionValues2["YES"] = "Yes";
1372
- GuidanceQuestionValues2["NO"] = "No";
1373
- return GuidanceQuestionValues2;
1374
- })(GuidanceQuestionValues || {});
1370
+ const GuidanceQuestionValues = {
1371
+ YES: "Yes",
1372
+ NO: "No"
1373
+ };
1375
1374
  const GuidanceQuestion = (props) => {
1376
1375
  const {
1377
1376
  descriptionLinkText,
@@ -1397,10 +1396,10 @@ const GuidanceQuestion = (props) => {
1397
1396
  };
1398
1397
  const yesTileLabel = yesLabel ?? i18n.get("yes");
1399
1398
  const noTileLabel = noLabel ?? i18n.get("no");
1400
- return /* @__PURE__ */ jsxs("div", { className: styles$6.guidanceQuestion, children: [
1399
+ return /* @__PURE__ */ jsxs("div", { className: styles$4.guidanceQuestion, children: [
1401
1400
  /* @__PURE__ */ jsx(Typography, { variant: "body", el: "p", children: question }),
1402
1401
  descriptionLinkText && onDescriptionLinkClick && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: onDescriptionLinkClick, children: descriptionLinkText }),
1403
- /* @__PURE__ */ jsx(Field, { name, className: styles$6.options, children: () => /* @__PURE__ */ jsx(
1402
+ /* @__PURE__ */ jsx(Field, { name, className: styles$4.options, children: () => /* @__PURE__ */ jsx(
1404
1403
  TileGroup,
1405
1404
  {
1406
1405
  allowMultiple: false,
@@ -1411,16 +1410,8 @@ const GuidanceQuestion = (props) => {
1411
1410
  onChange: handleChange,
1412
1411
  selected: value || "",
1413
1412
  tiles: [
1414
- {
1415
- label: yesTileLabel,
1416
- value: "Yes"
1417
- /* YES */
1418
- },
1419
- {
1420
- label: noTileLabel,
1421
- value: "No"
1422
- /* NO */
1423
- }
1413
+ { label: yesTileLabel, value: GuidanceQuestionValues.YES },
1414
+ { label: noTileLabel, value: GuidanceQuestionValues.NO }
1424
1415
  ]
1425
1416
  }
1426
1417
  ) })
@@ -1438,19 +1429,19 @@ const calculateRoles = (data) => {
1438
1429
  const roleMappings = [
1439
1430
  {
1440
1431
  isApplicable: data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES,
1441
- role: DecisionMakerType.SIGNATORY
1432
+ role: DecisionMakerTypes.SIGNATORY
1442
1433
  },
1443
1434
  {
1444
1435
  isApplicable: data?.uboQuestionnaire?.isOwner === GuidanceQuestionValues.YES,
1445
- role: DecisionMakerType.OWNER
1436
+ role: DecisionMakerTypes.OWNER
1446
1437
  },
1447
1438
  {
1448
1439
  isApplicable: data?.uboQuestionnaire?.isControllingPerson === GuidanceQuestionValues.YES,
1449
- role: DecisionMakerType.CONTROLLING_PERSON
1440
+ role: DecisionMakerTypes.CONTROLLING_PERSON
1450
1441
  },
1451
1442
  {
1452
1443
  isApplicable: data?.uboQuestionnaire?.isDirector === GuidanceQuestionValues.YES,
1453
- role: DecisionMakerType.DIRECTOR
1444
+ role: DecisionMakerTypes.DIRECTOR
1454
1445
  }
1455
1446
  ];
1456
1447
  return roleMappings.filter(({ isApplicable }) => isApplicable).map(({ role }) => role);
@@ -1490,8 +1481,8 @@ const TAX_ID_REQUIRED_COUNTRIES = [
1490
1481
  CountryCodes.France
1491
1482
  ];
1492
1483
  const DECISION_MAKER_TYPES_WITH_JOBTITLE = [
1493
- DecisionMakerType.SIGNATORY,
1494
- DecisionMakerType.CONTROLLING_PERSON
1484
+ DecisionMakerTypes.SIGNATORY,
1485
+ DecisionMakerTypes.CONTROLLING_PERSON
1495
1486
  ];
1496
1487
  const ID_MISSING_DATA_ERROR_CODE = "2_8071";
1497
1488
  const individualOnfidoRules = ({
@@ -1513,10 +1504,10 @@ const individualOnfidoRules = ({
1513
1504
  if (!data.basicDetails?.role) {
1514
1505
  return REQUIRED;
1515
1506
  }
1516
- if (data.basicDetails?.role?.some((role) => role !== DecisionMakerType.DIRECTOR)) {
1507
+ if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) {
1517
1508
  return REQUIRED;
1518
1509
  }
1519
- if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerType.DIRECTOR)) {
1510
+ if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) {
1520
1511
  return REQUIRED;
1521
1512
  }
1522
1513
  },
@@ -1527,13 +1518,13 @@ const individualOnfidoRules = ({
1527
1518
  if (!data.basicDetails?.role) {
1528
1519
  return REQUIRED;
1529
1520
  }
1530
- if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerType.SIGNATORY)) {
1521
+ if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) {
1531
1522
  return void 0;
1532
1523
  }
1533
- if (data.basicDetails?.role?.some((role) => role !== DecisionMakerType.DIRECTOR)) {
1524
+ if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) {
1534
1525
  return REQUIRED;
1535
1526
  }
1536
- if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerType.DIRECTOR)) {
1527
+ if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) {
1537
1528
  return REQUIRED;
1538
1529
  }
1539
1530
  },
@@ -1546,7 +1537,7 @@ const individualOnfidoRules = ({
1546
1537
  if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && matchingScenario?.includes(Scenarios.L_TAXINFO)) {
1547
1538
  return void 0;
1548
1539
  }
1549
- if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerType.SIGNATORY)) {
1540
+ if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) {
1550
1541
  return void 0;
1551
1542
  }
1552
1543
  if (ID_NUMBER_EXEMPT_COUNTRIES.includes(country)) {
@@ -1567,6 +1558,9 @@ const individualOnfidoRules = ({
1567
1558
  if (data.proofOfResidency?.proofOfResidency?.length) {
1568
1559
  return REQUIRED;
1569
1560
  }
1561
+ if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
1562
+ return void 0;
1563
+ }
1570
1564
  const isInstantFlow = data?.idVerificationMethod?.idVerificationMethod === "instantVerification";
1571
1565
  if (!isInstantFlow) {
1572
1566
  return void 0;
@@ -1587,9 +1581,15 @@ const individualOnfidoRules = ({
1587
1581
  return REQUIRED;
1588
1582
  }
1589
1583
  },
1584
+ isIdVerificationMethodRequired: () => {
1585
+ if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
1586
+ return void 0;
1587
+ }
1588
+ return REQUIRED;
1589
+ },
1590
1590
  contactsIfRequiredForRole: () => {
1591
1591
  if (taskType === TaskTypes.DECISION_MAKER) {
1592
- if (data.basicDetails?.role?.includes(DecisionMakerType.SIGNATORY)) {
1592
+ if (data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY)) {
1593
1593
  return REQUIRED;
1594
1594
  }
1595
1595
  return;
@@ -1605,7 +1605,15 @@ const individualOnfidoRules = ({
1605
1605
  return REQUIRED;
1606
1606
  }
1607
1607
  },
1608
+ isPlaceOfBirthRequired: () => {
1609
+ if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
1610
+ return REQUIRED;
1611
+ }
1612
+ },
1608
1613
  nationalityIfRequiredForRole: () => {
1614
+ if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
1615
+ return REQUIRED;
1616
+ }
1609
1617
  const enableNationalitySGHK = isExperimentEnabled("EnableNationalitySGHK");
1610
1618
  const rootLegalEntityCountry = rootLegalEntity?.organization?.registeredAddress.country;
1611
1619
  if (enableNationalitySGHK && rootLegalEntityCountry && NATIONALITY_REQUIRED_FOR_COUNTRIES.includes(rootLegalEntityCountry)) {
@@ -1659,12 +1667,12 @@ const individualOnfidoRules = ({
1659
1667
  return addressSchema.includes("stateOrProvince") && COUNTRIES_WITH_STATES_DATASET.includes(data?.additionalPersonalDetails?.country ?? country) ? "REQUIRED" : void 0;
1660
1668
  },
1661
1669
  nomineeDirectorRequiredForCountry: () => {
1662
- if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerType.DIRECTOR)) {
1670
+ if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.DIRECTOR)) {
1663
1671
  return "REQUIRED";
1664
1672
  }
1665
1673
  },
1666
1674
  nomineeShareHolderRequiredForCountry: () => {
1667
- if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerType.OWNER)) {
1675
+ if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.OWNER)) {
1668
1676
  return "REQUIRED";
1669
1677
  }
1670
1678
  },
@@ -1706,9 +1714,9 @@ const individualOnfidoRules = ({
1706
1714
  }
1707
1715
  },
1708
1716
  isDirectorRequiredForCountry: () => {
1709
- const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(country);
1717
+ const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(country, matchingScenario);
1710
1718
  const isDirectorRequired = availableDecisionMakers.some(
1711
- (maker) => maker.roleType === DecisionMakerType.DIRECTOR
1719
+ (maker) => maker.roleType === DecisionMakerTypes.DIRECTOR
1712
1720
  );
1713
1721
  if (isDirectorRequired) {
1714
1722
  return "REQUIRED";
@@ -1836,8 +1844,9 @@ function Identity(props) {
1836
1844
  )
1837
1845
  );
1838
1846
  }, [country, data?.typeOfIdentity, initialFormUtilProps, licenseCardNumberMetaData]);
1847
+ const { t } = useTranslation();
1839
1848
  const { i18n } = useI18nContext();
1840
- const formUtils = useMemo(() => createFormUtils(mergedProps, i18n), [mergedProps, i18n]);
1849
+ const formUtils = useMemo(() => createFormUtils(mergedProps, t), [mergedProps, t]);
1841
1850
  const { form } = useFormContext();
1842
1851
  const defaultIdNumber = form?.defaultData?.additionalPersonalDetails?.idNumber;
1843
1852
  const ssnType = getSSNType(formVerificationErrors, defaultIdNumber);
@@ -1997,15 +2006,18 @@ const additionalPersonalDetailsFields = [
1997
2006
  ...additionalIdentityInfoFields,
1998
2007
  "country",
1999
2008
  "nationality",
2009
+ "placeOfBirth",
2000
2010
  ...addressFields,
2001
2011
  "taxInformation"
2002
2012
  ];
2003
2013
  function AdditionalPersonalDetails(props) {
2014
+ const { t } = useTranslation();
2004
2015
  const { i18n } = useI18nContext();
2005
2016
  const allowedCountries = useAllowedCountries();
2006
2017
  const [showLegalRepresentativePrompt, setShowLegalRepresentativePrompt] = useState(false);
2007
2018
  const { isSettingEnabled } = useSettingsContext();
2008
2019
  const { isExperimentEnabled } = useExperimentsContext();
2020
+ const { form } = useFormContext();
2009
2021
  const isExperimentAgeVerificationEnabled = isExperimentEnabled("EnableAgeVerification");
2010
2022
  const isSettingsEnforceLegalAgeEnabled = isSettingEnabled(SettingNames.EnforceLegalAge);
2011
2023
  const {
@@ -2023,22 +2035,21 @@ function AdditionalPersonalDetails(props) {
2023
2035
  const country = data?.country ?? defaultCountry;
2024
2036
  const isIndividual = taskType === TaskTypes.INDIVIDUAL;
2025
2037
  const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
2026
- const [taxIdNumberType, setTaxIdNumberType] = useState(
2027
- getDefaultTaxIdNumberType(data?.taxInformation, country, LegalEntityType.INDIVIDUAL)
2028
- );
2029
2038
  const mergedProps = mergeFieldMetadataIntoProps(
2030
2039
  "taxInformation",
2031
2040
  resolveFieldMetadata(
2032
2041
  taxInformationDefaultFieldConfig[country],
2033
2042
  {
2034
- taxIdNumberType,
2035
- companyType: LegalEntityType.INDIVIDUAL
2043
+ taxIdNumberType: form.data?.additionalPersonalDetails?.taxInformation?.find(
2044
+ (taxId) => taxId.country === country
2045
+ )?.type,
2046
+ companyType: LegalEntityTypes.INDIVIDUAL
2036
2047
  },
2037
2048
  taxInformationDefaultFieldMetadata
2038
2049
  ),
2039
2050
  props
2040
2051
  );
2041
- const formUtils = createFormUtils(mergedProps, i18n);
2052
+ const formUtils = createFormUtils(mergedProps, t);
2042
2053
  const birthDateErrorMessage = formUtils.getErrorMessage(
2043
2054
  "birthDate",
2044
2055
  errors,
@@ -2181,16 +2192,13 @@ function AdditionalPersonalDetails(props) {
2181
2192
  },
2182
2193
  labels: formUtils.getFieldLabels(["taxInformation"]),
2183
2194
  mask: formUtils.getMask("taxInformation"),
2184
- helperText: formUtils.getFieldHelperText(["taxInformation"]),
2185
2195
  guidanceText: formUtils.getFieldGuidanceText(["taxInformation"]),
2186
2196
  readonly: formUtils.isReadOnly("taxInformation"),
2187
2197
  shouldValidate,
2188
2198
  handleChangeFor: handleFieldChange,
2189
2199
  canExempt: false,
2190
2200
  country,
2191
- companyType: LegalEntityType.INDIVIDUAL,
2192
- taxIdNumberType,
2193
- setTaxIdNumberType,
2201
+ entityType: LegalEntityTypes.INDIVIDUAL,
2194
2202
  defaultData: data?.taxInformation
2195
2203
  }
2196
2204
  ),
@@ -2208,6 +2216,28 @@ function AdditionalPersonalDetails(props) {
2208
2216
  handleChangeFor: () => handleFieldChange("nationality", "input")
2209
2217
  }
2210
2218
  ),
2219
+ formUtils.isRequiredField("placeOfBirth") && /* @__PURE__ */ jsx(
2220
+ Field,
2221
+ {
2222
+ name: "placeOfBirth",
2223
+ label: formUtils.getLabel("placeOfBirth"),
2224
+ errorMessage: formUtils.getErrorMessage("placeOfBirth", errors, fieldValidationErrors),
2225
+ isValid: valid?.placeOfBirth,
2226
+ children: (childProps) => /* @__PURE__ */ jsx(
2227
+ InputText,
2228
+ {
2229
+ ...childProps,
2230
+ name: "placeOfBirth",
2231
+ value: data?.placeOfBirth,
2232
+ readonly: formUtils.isReadOnly("placeOfBirth"),
2233
+ onInput: handleFieldChange("placeOfBirth", "input"),
2234
+ onBlur: handleFieldChange("placeOfBirth", "blur"),
2235
+ "aria-required": true,
2236
+ "aria-invalid": !valid?.placeOfBirth
2237
+ }
2238
+ )
2239
+ }
2240
+ ),
2211
2241
  country === "US" && isIndividual ? /* @__PURE__ */ jsx(PatriotActDisclosure, {}) : void 0
2212
2242
  ] });
2213
2243
  }
@@ -2224,6 +2254,7 @@ const basicDetailsFields = [
2224
2254
  "jaKanaLastName"
2225
2255
  ];
2226
2256
  function BasicDetails(props) {
2257
+ const { t } = useTranslation();
2227
2258
  const { i18n } = useI18nContext();
2228
2259
  const {
2229
2260
  form: { triggerValidation }
@@ -2248,7 +2279,7 @@ function BasicDetails(props) {
2248
2279
  handleFieldChange
2249
2280
  } = props;
2250
2281
  const isLegalRepresentativeDetailsTask = taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
2251
- const formUtils = createFormUtils(props, i18n);
2282
+ const formUtils = createFormUtils(props, t);
2252
2283
  const decisionMakerRoleProps = getFieldProps(props, decisionMakerRoleFields);
2253
2284
  const nomineeProps = getFieldProps(props, nomineeFields);
2254
2285
  const localizedNameProps = getFieldProps(props, [
@@ -2295,7 +2326,7 @@ function BasicDetails(props) {
2295
2326
  contentId: "reasonForFillingIndividualPersonalDetails"
2296
2327
  }
2297
2328
  ),
2298
- isDecisionMakerTask(taskType) && trustedFieldsProvider === TrustedFieldsProvider.SINGPASS && readOnlyFields && /* @__PURE__ */ jsx(Typography, { color: "secondary", variant: "caption", children: i18n.get(
2329
+ isDecisionMakerTask(taskType) && trustedFieldsProvider === TrustedFieldsProviders.SINGPASS && readOnlyFields && /* @__PURE__ */ jsx(Typography, { color: "secondary", variant: "caption", children: i18n.get(
2299
2330
  "weSelectedSomeRolesBasedOnMyinfoBusinessDataAboutYourCompanysAppointmentHoldersAndShareholders"
2300
2331
  ) }),
2301
2332
  isDecisionMakerTask(taskType) && (isGuidedDecisionMakersFlowDisabled || !isGuidedDecisionMakersFlowEnabled) && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -2469,7 +2500,7 @@ const isNextStepDisabled = signal(false);
2469
2500
  const conflictRowTable = "adyen-kyc-conflict-row-table";
2470
2501
  const conflictRowList = "adyen-kyc-conflict-row-list";
2471
2502
  const conflictRowListOptionLabel = "adyen-kyc-conflict-row-list-option-label";
2472
- const styles$5 = {
2503
+ const styles$3 = {
2473
2504
  conflictRowTable,
2474
2505
  conflictRowList,
2475
2506
  conflictRowListOptionLabel
@@ -2495,7 +2526,7 @@ const ConflictRow = ({
2495
2526
  }
2496
2527
  }, [hasOnlyProvided, hasOnlyDetected, onSelect, selected]);
2497
2528
  if (hasOnlyProvided || hasOnlyDetected) return;
2498
- return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$5.conflictRowList, children: [
2529
+ return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$3.conflictRowList, children: [
2499
2530
  /* @__PURE__ */ jsx("dt", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get(label) }) }),
2500
2531
  /* @__PURE__ */ jsxs("dd", { children: [
2501
2532
  /* @__PURE__ */ jsxs("div", { children: [
@@ -2504,7 +2535,7 @@ const ConflictRow = ({
2504
2535
  {
2505
2536
  variant: "caption",
2506
2537
  color: "tertiary",
2507
- className: styles$5.conflictRowListOptionLabel,
2538
+ className: styles$3.conflictRowListOptionLabel,
2508
2539
  children: i18n.get("youEntered")
2509
2540
  }
2510
2541
  ),
@@ -2524,7 +2555,7 @@ const ConflictRow = ({
2524
2555
  {
2525
2556
  variant: "caption",
2526
2557
  color: "tertiary",
2527
- className: styles$5.conflictRowListOptionLabel,
2558
+ className: styles$3.conflictRowListOptionLabel,
2528
2559
  children: i18n.get("weDetected")
2529
2560
  }
2530
2561
  ),
@@ -2539,7 +2570,7 @@ const ConflictRow = ({
2539
2570
  )
2540
2571
  ] })
2541
2572
  ] })
2542
- ] }) : /* @__PURE__ */ jsxs("tr", { className: styles$5.conflictRowTable, children: [
2573
+ ] }) : /* @__PURE__ */ jsxs("tr", { className: styles$3.conflictRowTable, children: [
2543
2574
  /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get(label) }) }),
2544
2575
  /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
2545
2576
  RadioWithLabel,
@@ -2565,7 +2596,7 @@ const dataConflictsWrapper = "adyen-kyc-data-conflicts-wrapper";
2565
2596
  const dataConflictsHeader = "adyen-kyc-data-conflicts-header";
2566
2597
  const dataConflictsTable = "adyen-kyc-data-conflicts-table";
2567
2598
  const dataConflictsList = "adyen-kyc-data-conflicts-list";
2568
- const styles$4 = {
2599
+ const styles$2 = {
2569
2600
  dataConflictsWrapper,
2570
2601
  dataConflictsHeader,
2571
2602
  dataConflictsTable,
@@ -2606,13 +2637,13 @@ const DataConflictsModal = ({
2606
2637
  // No dependencies, as setShowError and setResolutions are stable.
2607
2638
  );
2608
2639
  return /* @__PURE__ */ jsxs(Modal, { ariaLabel: i18n.get(title), onClose: () => setShowCancelModal(true), inset: true, children: [
2609
- /* @__PURE__ */ jsxs("div", { className: styles$4.dataConflictsWrapper, children: [
2610
- /* @__PURE__ */ jsxs("div", { className: styles$4.dataConflictsHeader, children: [
2640
+ /* @__PURE__ */ jsxs("div", { className: styles$2.dataConflictsWrapper, children: [
2641
+ /* @__PURE__ */ jsxs("div", { className: styles$2.dataConflictsHeader, children: [
2611
2642
  /* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h1", children: i18n.get(title) }),
2612
2643
  /* @__PURE__ */ jsx(Typography, { variant: "body", children: i18n.get(explanation) })
2613
2644
  ] }),
2614
2645
  showError ? /* @__PURE__ */ jsx(Alert, { variant: "error", title: i18n.get("chooseTheCorrectDetailsBeforeProceeding") }) : void 0,
2615
- /* @__PURE__ */ jsx("dl", { className: styles$4.dataConflictsList, children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(
2646
+ /* @__PURE__ */ jsx("dl", { className: styles$2.dataConflictsList, children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(
2616
2647
  ConflictRow,
2617
2648
  {
2618
2649
  showAs: "listItem",
@@ -2625,7 +2656,7 @@ const DataConflictsModal = ({
2625
2656
  },
2626
2657
  property
2627
2658
  )) }),
2628
- /* @__PURE__ */ jsxs("table", { className: styles$4.dataConflictsTable, children: [
2659
+ /* @__PURE__ */ jsxs("table", { className: styles$2.dataConflictsTable, children: [
2629
2660
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
2630
2661
  /* @__PURE__ */ jsx("th", {}),
2631
2662
  /* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "tertiary", children: i18n.get("youEntered") }) }),
@@ -2682,57 +2713,11 @@ const DataConflictsModal = ({
2682
2713
  )
2683
2714
  ] });
2684
2715
  };
2685
- const verificationDisclaimer = "adyen-kyc-verification-disclaimer";
2686
- const styles$3 = {
2687
- verificationDisclaimer
2688
- };
2689
- const IdVerificationDisclaimer = () => {
2690
- const { i18n } = useI18nContext();
2691
- return /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "tertiary", className: styles$3.verificationDisclaimer, children: [
2692
- i18n.get("ifYouChooseToUseOnfido"),
2693
- " ",
2694
- /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: i18n.get("onfidoPrivacyPolicy") }),
2695
- " ",
2696
- i18n.get("and"),
2697
- " ",
2698
- /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, inline: true, children: i18n.get("onfidoTermsOfService") })
2699
- ] });
2700
- };
2701
- const verificationHeader = "adyen-kyc-verification-header";
2702
2716
  const verificationHeaderImage = "adyen-kyc-verification-header-image";
2703
- const verificationHeaderContent = "adyen-kyc-verification-header-content";
2704
- const styles$2 = {
2705
- verificationHeader,
2706
- verificationHeaderImage,
2707
- verificationHeaderContent
2708
- };
2709
- const IdVerificationHeader = () => {
2710
- const { i18n } = useI18nContext();
2711
- return /* @__PURE__ */ jsxs("div", { className: styles$2.verificationHeader, children: [
2712
- /* @__PURE__ */ jsx(
2713
- Svg,
2714
- {
2715
- className: styles$2.verificationHeaderImage,
2716
- type: "image",
2717
- name: "passport-front-green",
2718
- title: i18n.get("instantIDVerificationDescription")
2719
- }
2720
- ),
2721
- /* @__PURE__ */ jsx(Typography, { variant: "title-l", children: i18n.get("capturePersonalDetails") }),
2722
- /* @__PURE__ */ jsxs(Typography, { variant: "body", color: "primary", className: styles$2.verificationHeaderContent, children: [
2723
- i18n.get("takeOrUploadAPhoto"),
2724
- " ",
2725
- /* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: i18n.get("onfido") })
2726
- ] })
2727
- ] });
2728
- };
2729
- const verifyOnfidoContainer = "adyen-kyc-verify-onfido-container";
2730
2717
  const verifyOnfidoError = "adyen-kyc-verify-onfido-error";
2731
- const verifyOnfidoContent = "adyen-kyc-verify-onfido-content";
2732
2718
  const styles$1 = {
2733
- verifyOnfidoContainer,
2734
- verifyOnfidoError,
2735
- verifyOnfidoContent
2719
+ verificationHeaderImage,
2720
+ verifyOnfidoError
2736
2721
  };
2737
2722
  const toIndividualOnfidoConflictSchema = ({
2738
2723
  basicDetails,
@@ -2926,6 +2911,7 @@ function IdVerificationMethod(props) {
2926
2911
  fieldValidationErrors,
2927
2912
  hasLiveSelfieErrorCode
2928
2913
  } = props;
2914
+ const { t } = useTranslation();
2929
2915
  const { i18n } = useI18nContext();
2930
2916
  const userEvents = useAnalyticsContext();
2931
2917
  const extractDocumentInformation2 = useExtractDocumentInformation();
@@ -3132,9 +3118,9 @@ function IdVerificationMethod(props) {
3132
3118
  handlers.handleUpdateDocument();
3133
3119
  };
3134
3120
  const modalProvidedData = resolvedData || comparableExistingData;
3135
- const formUtils = createFormUtils(props, i18n);
3121
+ const formUtils = createFormUtils(props, t);
3136
3122
  isNextStepDisabled.value = showLoadingSpinner;
3137
- return /* @__PURE__ */ jsxs("div", { className: styles$1.verifyOnfidoContainer, children: [
3123
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
3138
3124
  /* @__PURE__ */ jsx(
3139
3125
  ErrorPanel,
3140
3126
  {
@@ -3144,44 +3130,75 @@ function IdVerificationMethod(props) {
3144
3130
  id: "ariaErrorField"
3145
3131
  }
3146
3132
  ),
3147
- /* @__PURE__ */ jsx(IdVerificationHeader, {}),
3148
- error ? /* @__PURE__ */ jsx(
3149
- Alert,
3150
- {
3151
- variant: "error",
3152
- title: i18n.get(error.key, error.options),
3153
- className: styles$1.verifyOnfidoError
3154
- }
3155
- ) : void 0,
3156
- /* @__PURE__ */ jsx("div", { className: styles$1.verifyOnfidoContent, children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : /* @__PURE__ */ jsx(Fragment, { children: hasExistingDocument ? /* @__PURE__ */ jsx(
3157
- UploadedDocument,
3133
+ /* @__PURE__ */ jsx(
3134
+ LandingLayout,
3158
3135
  {
3159
- document: existingDocument,
3160
- onDelete: () => setStatus("confirmDeleteDocumentModal"),
3161
- onUpdate: handleUpdateExistingDocument
3136
+ media: /* @__PURE__ */ jsx(
3137
+ Svg,
3138
+ {
3139
+ type: "image",
3140
+ className: styles$1.verificationHeaderImage,
3141
+ name: "passport-front-green",
3142
+ title: i18n.get("instantIDVerificationDescription")
3143
+ }
3144
+ ),
3145
+ title: i18n.get("identityVerification"),
3146
+ description: showIndividualMotionCapture?.value ? i18n.get("toHelpProtectAgainstFraudAndKeepOurServices") : /* @__PURE__ */ jsxs(Fragment, { children: [
3147
+ i18n.get("takeOrUploadAPhoto"),
3148
+ " ",
3149
+ /* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: i18n.get("onfido") })
3150
+ ] }),
3151
+ helpAction: error ? /* @__PURE__ */ jsx(
3152
+ Alert,
3153
+ {
3154
+ variant: "error",
3155
+ title: i18n.get(error.key, error.options),
3156
+ className: styles$1.verifyOnfidoError
3157
+ }
3158
+ ) : void 0,
3159
+ actions: /* @__PURE__ */ jsx(Fragment, { children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : !hasExistingDocument && /* @__PURE__ */ jsxs(Fragment, { children: [
3160
+ /* @__PURE__ */ jsx(
3161
+ Button,
3162
+ {
3163
+ fullWidth: true,
3164
+ onClick: launchOnfido,
3165
+ disabled: status === "extractionLoading",
3166
+ loading: status === "extractionLoading",
3167
+ children: i18n.get("startVerification")
3168
+ }
3169
+ ),
3170
+ !showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(
3171
+ Button,
3172
+ {
3173
+ onClick: () => setStatus("confirmManualFlowModal"),
3174
+ variant: "secondary",
3175
+ fullWidth: true,
3176
+ children: i18n.get("addDetailsManually")
3177
+ }
3178
+ )
3179
+ ] }) }),
3180
+ content: !showLoadingSpinner && hasExistingDocument && /* @__PURE__ */ jsx(
3181
+ UploadedDocument,
3182
+ {
3183
+ document: existingDocument,
3184
+ onDelete: () => setStatus("confirmDeleteDocumentModal"),
3185
+ onUpdate: handleUpdateExistingDocument
3186
+ }
3187
+ ),
3188
+ disclaimer: !hasExistingDocument && /* @__PURE__ */ jsxs(Fragment, { children: [
3189
+ i18n.get("byContinuingToUseThisService"),
3190
+ " ",
3191
+ /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/facial-scan-policy-and-release/", external: true, inline: true, children: i18n.get("onfidoFacialScanPolicy") }),
3192
+ " ",
3193
+ /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: i18n.get("privacyPolicy") }),
3194
+ " ",
3195
+ i18n.get("and"),
3196
+ " ",
3197
+ /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, inline: true, children: i18n.get("termsOfService") }),
3198
+ "."
3199
+ ] })
3162
3200
  }
3163
- ) : /* @__PURE__ */ jsxs(Fragment, { children: [
3164
- /* @__PURE__ */ jsx(
3165
- ProviderButton,
3166
- {
3167
- provider: "onfido",
3168
- fullWidth: true,
3169
- disabled: status === "extractionLoading",
3170
- loading: status === "extractionLoading",
3171
- onClick: launchOnfido
3172
- }
3173
- ),
3174
- !showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(
3175
- Button,
3176
- {
3177
- onClick: () => setStatus("confirmManualFlowModal"),
3178
- variant: "secondary",
3179
- fullWidth: true,
3180
- children: i18n.get("addDetailsManually")
3181
- }
3182
- ),
3183
- /* @__PURE__ */ jsx(IdVerificationDisclaimer, {})
3184
- ] }) }) }),
3201
+ ),
3185
3202
  status === "onfidoModal" && /* @__PURE__ */ jsx(
3186
3203
  OnfidoVerificationModal,
3187
3204
  {
@@ -3253,8 +3270,8 @@ const ManualIdUpload = () => {
3253
3270
  }
3254
3271
  );
3255
3272
  };
3256
- const getDisplayErrorMessage = (errorMessage, i18n) => {
3257
- return typeof errorMessage !== "boolean" ? i18n.get(errorMessage) : errorMessage;
3273
+ const getDisplayErrorMessage = (errorMessage, t) => {
3274
+ return typeof errorMessage !== "boolean" ? translateStringOrObject(t, errorMessage) : errorMessage;
3258
3275
  };
3259
3276
  const SignatoryQuestionnaireModalContent = () => {
3260
3277
  const { i18n } = useI18nContext();
@@ -3267,6 +3284,7 @@ const SignatoryQuestionnaireModalContent = () => {
3267
3284
  ] });
3268
3285
  };
3269
3286
  function SignatoryQuestionnaire(props) {
3287
+ const { t } = useTranslation();
3270
3288
  const { i18n } = useI18nContext();
3271
3289
  const userEvents = useAnalyticsContext();
3272
3290
  const [isModalOpen, setIsModalOpen] = useState(false);
@@ -3278,7 +3296,7 @@ function SignatoryQuestionnaire(props) {
3278
3296
  fieldValidationErrors,
3279
3297
  handleFieldChange
3280
3298
  } = props;
3281
- const formUtils = createFormUtils(props, i18n);
3299
+ const formUtils = createFormUtils(props, t);
3282
3300
  if (!handleFieldChange) {
3283
3301
  return;
3284
3302
  }
@@ -3317,7 +3335,7 @@ function SignatoryQuestionnaire(props) {
3317
3335
  onDescriptionLinkClick: openModal,
3318
3336
  question: i18n.get("signatoryQuestion"),
3319
3337
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3320
- errorMessage: getDisplayErrorMessage(errorMessage, i18n)
3338
+ errorMessage: getDisplayErrorMessage(errorMessage, t)
3321
3339
  }
3322
3340
  ),
3323
3341
  isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: i18n.get("moreAboutAuthorizedSignatories"), inset: true, children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {}) })
@@ -3395,6 +3413,7 @@ const uboQuestionnaireFields = [
3395
3413
  "isNomineeShareholder"
3396
3414
  ];
3397
3415
  function UboQuestionnaire(props) {
3416
+ const { t } = useTranslation();
3398
3417
  const { i18n } = useI18nContext();
3399
3418
  const userEvents = useAnalyticsContext();
3400
3419
  const {
@@ -3406,7 +3425,7 @@ function UboQuestionnaire(props) {
3406
3425
  fieldValidationErrors,
3407
3426
  handleFieldChange
3408
3427
  } = props;
3409
- const formUtils = createFormUtils(props, i18n);
3428
+ const formUtils = createFormUtils(props, t);
3410
3429
  const [activeModal, setActiveModal] = useState(null);
3411
3430
  if (!handleFieldChange) {
3412
3431
  return;
@@ -3473,7 +3492,7 @@ function UboQuestionnaire(props) {
3473
3492
  onDescriptionLinkClick: openModal("isDirector"),
3474
3493
  question: i18n.get("directorQuestion"),
3475
3494
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3476
- errorMessage: getDisplayErrorMessage(isDirectorErrorMessage, i18n)
3495
+ errorMessage: getDisplayErrorMessage(isDirectorErrorMessage, t)
3477
3496
  }
3478
3497
  ),
3479
3498
  formUtils.isRequiredField("isNomineeDirector") && data?.isDirector === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(
@@ -3483,7 +3502,7 @@ function UboQuestionnaire(props) {
3483
3502
  value: data?.isNomineeDirector,
3484
3503
  onChange: handleFieldChange("isNomineeDirector"),
3485
3504
  question: i18n.get("nomineeDirectorQuestion"),
3486
- errorMessage: getDisplayErrorMessage(isNomineeDirectorErrorMessage, i18n)
3505
+ errorMessage: getDisplayErrorMessage(isNomineeDirectorErrorMessage, t)
3487
3506
  }
3488
3507
  ),
3489
3508
  formUtils.isRequiredField("isOwner") && /* @__PURE__ */ jsx(
@@ -3495,7 +3514,7 @@ function UboQuestionnaire(props) {
3495
3514
  onDescriptionLinkClick: openModal("isOwner"),
3496
3515
  question: i18n.get("ownerQuestion"),
3497
3516
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3498
- errorMessage: getDisplayErrorMessage(isOwnerErrorMessage, i18n)
3517
+ errorMessage: getDisplayErrorMessage(isOwnerErrorMessage, t)
3499
3518
  }
3500
3519
  ),
3501
3520
  formUtils.isRequiredField("isNomineeShareholder") && data?.isOwner === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(
@@ -3505,7 +3524,7 @@ function UboQuestionnaire(props) {
3505
3524
  value: data?.isNomineeShareholder,
3506
3525
  onChange: handleFieldChange("isNomineeShareholder"),
3507
3526
  question: i18n.get("nomineeShareHolderQuestion"),
3508
- errorMessage: getDisplayErrorMessage(isNomineeShareholderErrorMessage, i18n)
3527
+ errorMessage: getDisplayErrorMessage(isNomineeShareholderErrorMessage, t)
3509
3528
  }
3510
3529
  ),
3511
3530
  formUtils.isRequiredField("isControllingPerson") && /* @__PURE__ */ jsx(
@@ -3517,7 +3536,7 @@ function UboQuestionnaire(props) {
3517
3536
  onDescriptionLinkClick: openModal("isControllingPerson"),
3518
3537
  question: i18n.get("controllingPersonQuestion"),
3519
3538
  descriptionLinkText: i18n.get("whatDoesThisMean"),
3520
- errorMessage: getDisplayErrorMessage(isControllingPersonErrorMessage, i18n)
3539
+ errorMessage: getDisplayErrorMessage(isControllingPersonErrorMessage, t)
3521
3540
  }
3522
3541
  ),
3523
3542
  activeModal && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: modalAriaLabelMap[activeModal], inset: true, children: /* @__PURE__ */ jsx(UboQuestionnaireModalContent, { modalType: activeModal }) })
@@ -3892,7 +3911,7 @@ const adjustOnfidoIdentificationData = (data, apiData) => {
3892
3911
  const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido, isExperimentEnabled, matchingScenario) => {
3893
3912
  const legalEntity = {
3894
3913
  ...formatObject(individualOnfido, individualOnfidoApiKeyMapping),
3895
- type: LegalEntityType.INDIVIDUAL
3914
+ type: LegalEntityTypes.INDIVIDUAL
3896
3915
  };
3897
3916
  if (individualOnfido.additionalPersonalDetails) {
3898
3917
  if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && matchingScenario?.includes(Scenarios.L_TAXINFO) && individualOnfido.additionalPersonalDetails?.idNumber && individualOnfido.additionalPersonalDetails?.typeOfIdentity && individualOnfido.additionalPersonalDetails?.country === CountryCodes.Spain) {
@@ -4019,19 +4038,19 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
4019
4038
  const associationTypes = new Set(associations.map((ea) => ea.type));
4020
4039
  const hasAssociation = (type) => associationTypes.has(type) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
4021
4040
  individualOnfido.signatoryQuestionnaire.isSignatory = hasAssociation(
4022
- DecisionMakerType.SIGNATORY
4041
+ DecisionMakerTypes.SIGNATORY
4023
4042
  );
4024
- individualOnfido.uboQuestionnaire.isOwner = hasAssociation(DecisionMakerType.OWNER);
4043
+ individualOnfido.uboQuestionnaire.isOwner = hasAssociation(DecisionMakerTypes.OWNER);
4025
4044
  individualOnfido.uboQuestionnaire.isControllingPerson = hasAssociation(
4026
- DecisionMakerType.CONTROLLING_PERSON
4045
+ DecisionMakerTypes.CONTROLLING_PERSON
4027
4046
  );
4028
- individualOnfido.uboQuestionnaire.isDirector = hasAssociation(DecisionMakerType.DIRECTOR);
4047
+ individualOnfido.uboQuestionnaire.isDirector = hasAssociation(DecisionMakerTypes.DIRECTOR);
4029
4048
  const hasNomineeAssociation = (type) => associations.some((ea) => ea.type === type && ea.nominee) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
4030
4049
  individualOnfido.uboQuestionnaire.isNomineeDirector = hasNomineeAssociation(
4031
- DecisionMakerType.DIRECTOR
4050
+ DecisionMakerTypes.DIRECTOR
4032
4051
  );
4033
4052
  individualOnfido.uboQuestionnaire.isNomineeShareholder = hasNomineeAssociation(
4034
- DecisionMakerType.OWNER
4053
+ DecisionMakerTypes.OWNER
4035
4054
  );
4036
4055
  }
4037
4056
  individualOnfido.basicDetails = getNomineeFromAssociation(
@@ -4069,6 +4088,9 @@ const identityOnfidoBase = {
4069
4088
  jobTitle: {
4070
4089
  rule: "jobTitleIfRequiredForRole"
4071
4090
  },
4091
+ placeOfBirth: {
4092
+ rule: "isPlaceOfBirthRequired"
4093
+ },
4072
4094
  nationality: {
4073
4095
  rule: "nationalityIfRequiredForRole"
4074
4096
  },
@@ -4108,10 +4130,8 @@ const identityOnfidoBase = {
4108
4130
  nomineeShareholder: {
4109
4131
  rules: ["isGuidedDecisionMakersFlowDisabled", "nomineeShareHolderRequiredForCountry"]
4110
4132
  },
4111
- // Regardless of scenario, we want the user to go through the "verification method" step
4112
- // and hopefully get Onfido-verified. Otherwise, they must go through the manual flow.
4113
4133
  idVerificationMethod: {
4114
- rule: "REQUIRED"
4134
+ rule: "isIdVerificationMethodRequired"
4115
4135
  },
4116
4136
  idDocument: {
4117
4137
  // (either from Onfido or previously-uploaded document)
@@ -4404,7 +4424,7 @@ function IndividualOnfidoDropin({
4404
4424
  useEffect(() => {
4405
4425
  setCountry(data?.additionalPersonalDetails?.country ?? parentCountry);
4406
4426
  }, [data?.additionalPersonalDetails?.country, parentCountry]);
4407
- const { data: scenarios } = useScenarios(country, LegalEntityType.INDIVIDUAL);
4427
+ const { data: scenarios } = useScenarios(country, LegalEntityTypes.INDIVIDUAL);
4408
4428
  useEffect(() => {
4409
4429
  if (!scenarios) return;
4410
4430
  setHasMotionCaptureScenario(scenarios);
@@ -4412,7 +4432,7 @@ function IndividualOnfidoDropin({
4412
4432
  }, [scenarios]);
4413
4433
  const { fieldConfigurations } = useScenarioConfiguration({
4414
4434
  parseConfiguration,
4415
- legalEntityType: LegalEntityType.INDIVIDUAL,
4435
+ legalEntityType: LegalEntityTypes.INDIVIDUAL,
4416
4436
  setLoadingStatus,
4417
4437
  country
4418
4438
  });
@@ -4495,7 +4515,7 @@ function IndividualOnfidoDropin({
4495
4515
  };
4496
4516
  await getIdVerificationStartCheck(data2);
4497
4517
  };
4498
- const roleTypes = isRoleFieldNeeded && parentLegalEntity ? getAllowedDecisionMakerRoles(parentLegalEntity, taskType) : [];
4518
+ const roleTypes = isRoleFieldNeeded && parentLegalEntity ? getAllowedDecisionMakerRoles(parentLegalEntity, taskType, matchingScenario) : [];
4499
4519
  const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
4500
4520
  const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions(country);
4501
4521
  const submitLegalEntity = async ({