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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-B8gq2Lvn.js → AcceptTermsOfServiceComponent-DBSkKRHS.js} +7 -7
  2. package/dist/{AccountSetupRejected-Dn6x3lE8.js → AccountSetupRejected-gAGWuJ9N.js} +6 -6
  3. package/dist/{Avatar-Bm0Eluxy.js → Avatar-5RObc8Yd.js} +2 -2
  4. package/dist/{BusinessDetailsDropin-6TJzQW0O.js → BusinessDetailsDropin-O92NE-y1.js} +115 -139
  5. package/dist/{BusinessFinancingComponent-BxskEwQc.js → BusinessFinancingComponent-DDKomenp.js} +3 -3
  6. package/dist/{BusinessFinancingDropin-BaeVc8F6.js → BusinessFinancingDropin-Bhg9neRS.js} +97 -71
  7. package/dist/{BusinessFinancingPage-CccBeSjZ.js → BusinessFinancingPage-DyItV5SR.js} +3 -3
  8. package/dist/{BusinessTypeSelectionPage-DrKCAdaG.js → BusinessTypeSelectionPage-DmjbM57I.js} +47 -76
  9. package/dist/{ContractViewer-BaJ-kFmY.js → ContractViewer-DBW5C6kA.js} +2 -2
  10. package/dist/{CreateIndividualComponent-Bmv5Nc35.js → CreateIndividualComponent-c8yAn2_J.js} +4 -4
  11. package/dist/{CreateTransferInstrumentComponent-DF7SwTtr.js → CreateTransferInstrumentComponent-BF-KFdjU.js} +5 -5
  12. package/dist/{CustomerSupport-CzH1nyXW.js → CustomerSupport-rSYElbVr.js} +10 -10
  13. package/dist/{DebugModal-DMkdmfMV.js → DebugModal-BTr0idCC.js} +12 -226
  14. package/dist/{DecisionMakerDetailsPage-DHLdTCf3.js → DecisionMakerDetailsPage-DQcWSwTb.js} +4 -4
  15. package/dist/DecisionMakers-C2awPhE6.js +478 -0
  16. package/dist/{EmbeddedStatus-DaBZ91oA.js → EmbeddedStatus-COKtxNW-.js} +13 -13
  17. package/dist/{FormEndState-BBMSuQj7.js → FormEndState-BmDRa3zJ.js} +4 -3
  18. package/dist/{FormFlow-C1DKb0gA.js → FormFlow-CNxGh4Yu.js} +3 -3
  19. package/dist/{IndividualOnfidoDropin-CCbwDQ42.js → IndividualOnfidoDropin-DUzjucM9.js} +204 -184
  20. package/dist/{Introduction-DL4JlCU3.js → Introduction-BEM_wmkj.js} +24 -26
  21. package/dist/{ProviderButton-CdJCw-d-.js → LandingLayout-DyY0Exht.js} +91 -83
  22. package/dist/{LegalRepresentativeDetailsPage-CXw76qYP.js → LegalRepresentativeDetailsPage-1tw_BPLr.js} +4 -4
  23. package/dist/{ManageIndividualComponent-DFrxvq1V.js → ManageIndividualComponent-B0y8wd24.js} +6 -6
  24. package/dist/{ManageTermsOfServiceComponent-Dd674r5F.js → ManageTermsOfServiceComponent-DJVDf-iH.js} +4 -4
  25. package/dist/{ManageTransferInstrumentComponent-Dcc94EKJ.js → ManageTransferInstrumentComponent-DF4Q8oEB.js} +6 -6
  26. package/dist/{OnboardingDropinComponent-CO8-GF4E.js → OnboardingDropinComponent-B0Sj7qf1.js} +366 -208
  27. package/dist/{Review-C9xcGO-O.js → Review-C4HOjR6y.js} +11 -11
  28. package/dist/RootBusinessDetailsPage-DeqKfOFX.js +1848 -0
  29. package/dist/{RootIndividualDetailsPage-DhUMpzGa.js → RootIndividualDetailsPage-CKOquQ0-.js} +4 -4
  30. package/dist/{SignPCIComponent-uHRS64Oo.js → SignPCIComponent-Cx8oL8wu.js} +6 -6
  31. package/dist/{SingpassSelection-bOy5WFTO.js → SingpassSelection-BJNZw1u-.js} +11 -11
  32. package/dist/{SoleProprietorshipPage-BE8Mjhjp.js → SoleProprietorshipPage-Dtw3XHVJ.js} +4 -4
  33. package/dist/{SourceOfFundsPage-C-BTd1Ar.js → SourceOfFundsPage-gPmK4QX6.js} +28 -20
  34. package/dist/{StoreProvider-Bw9Xi_Q5.js → StoreProvider-DhQ4sdLg.js} +5799 -5422
  35. package/dist/{TaskItemStatus-DqghzBaZ.js → TaskItemStatus-Cxcag2AH.js} +23 -23
  36. package/dist/TaskStatusIndicator-B5fp8LzR.js +69 -0
  37. package/dist/{TaxReportingDropin-CmJT82Aj.js → TaxReportingDropin-CbDYoO31.js} +8 -7
  38. package/dist/{TileGroup-DP6CW2Ya.js → TileGroup-BkLtnLiA.js} +2 -2
  39. package/dist/{TrustDetailsPage-F-XzAJKt.js → TrustDetailsPage-DktRQRum.js} +38 -14
  40. package/dist/{TrustMemberCompanyPage-C0U5PbAW.js → TrustMemberCompanyPage-CLTOpWzU.js} +5 -5
  41. package/dist/{TrustMemberIndividualPage-C_rRPUgX.js → TrustMemberIndividualPage-wPh86-GQ.js} +4 -4
  42. package/dist/{UnincorporatedPartnershipIndividualPage-B0B2hFV8.js → UnincorporatedPartnershipIndividualPage-B-2i68Nd.js} +4 -4
  43. package/dist/{UnincorporatedPartnershipMemberCompanyPage-CdWmnqg-.js → UnincorporatedPartnershipMemberCompanyPage-DWLczj6F.js} +4 -4
  44. package/dist/{VerificationErrorAlert-BmrZdkgs.js → VerificationErrorAlert-AbvM4lbK.js} +2 -2
  45. package/dist/{ViewVerificationStatusComponent-DqTteba3.js → ViewVerificationStatusComponent-vVZeXYDs.js} +14 -12
  46. package/dist/adyen-business-financing.js +8 -12
  47. package/dist/adyen-individual.js +6 -4
  48. package/dist/adyen-kyc-components.js +143 -124
  49. package/dist/adyen-manage-individual.js +2 -2
  50. package/dist/adyen-manage-terms-of-service.js +3 -3
  51. package/dist/adyen-manage-transfer-instruments.js +3 -3
  52. package/dist/adyen-onboarding.js +14 -6
  53. package/dist/adyen-terms-of-service.js +18 -6
  54. package/dist/adyen-transfer-instrument.js +10 -6
  55. package/dist/adyen-verification-status.js +2 -2
  56. package/dist/bag-DpxmyXfR.js +14 -0
  57. package/dist/business-lines-DboUCbXw.js +135 -0
  58. package/dist/decision-makers-group-CgddXgrx.js +1944 -0
  59. package/dist/en-US-CQ3angjM.js +22 -0
  60. package/dist/{getFieldsWithExistingData-xJPsn2JE.js → getFieldsWithExistingData-BS9W6RQp.js} +2 -2
  61. package/dist/{hasDataChanged-BQeJUDMz.js → hasDataChanged-DK74H0sZ.js} +2 -2
  62. package/dist/{localizeDateString-B3Zc2Aep.js → localizeDateString-C34eXZqY.js} +2 -2
  63. package/dist/mail-Z_IE_hkw.js +14 -0
  64. package/dist/{mapFinancialReportsToFinancialInformation-Dn-CfyG6.js → mapFinancialReportsToFinancialInformation-DoJu-RRw.js} +2 -2
  65. package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
  66. package/dist/{resolveEnvironment-BFUUd4tv.js → resolveEnvironment-rJv_NJF_.js} +3 -3
  67. package/dist/{rules-C7Cw2XXc.js → rules-OP83mdq4.js} +13 -13
  68. package/dist/solution-payments-DTAuLSWF.js +14 -0
  69. package/dist/style.css +218 -181
  70. package/dist/styles-CLV89_hH.js +218 -181
  71. package/dist/terminal-1-ewywjFJI.js +18 -0
  72. package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +1 -2
  73. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +4 -8
  74. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +2 -3
  75. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +25 -24
  76. package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +10 -10
  77. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -2
  78. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +0 -306
  79. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
  80. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +9 -0
  81. package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +10 -0
  82. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
  83. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -2
  84. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +5 -3
  85. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -2
  86. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +14 -0
  87. package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +3 -0
  88. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +4 -0
  89. package/dist/types/components/Business/forms/forms.types.d.ts +14 -0
  90. package/dist/types/components/Business/forms/rules.d.ts +26 -8
  91. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -1
  92. package/dist/types/components/Business/mapping/businessDetails/mapOrganizationTypeToCompanyType.d.ts +1 -1
  93. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -3
  94. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -3
  95. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +18 -0
  96. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +5 -0
  97. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +2 -0
  98. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +21 -0
  99. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/validate.d.ts +22 -0
  100. package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -1
  101. package/dist/types/components/Business/utils/companyUtil.d.ts +3 -3
  102. package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +5 -0
  103. package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +5 -0
  104. package/dist/types/components/BusinessLines/tasks/BusinessLinesGettingStarted/BusinessLinesGettingStarted.d.ts +6 -0
  105. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
  106. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1 -306
  107. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +22 -19
  108. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +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/IndividualOnfido.rules.d.ts +3 -1
  127. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -2
  128. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +2 -2
  129. package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
  130. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +3 -3
  131. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +1 -1
  132. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +2 -0
  133. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +7 -0
  134. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
  135. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
  136. package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +4 -4
  137. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
  138. package/dist/types/components/Shared/Introduction/Introduction.d.ts +2 -2
  139. package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +2 -2
  140. package/dist/types/components/Shared/Introduction/constants.d.ts +3 -3
  141. package/dist/types/components/Shared/Introduction/copy.d.ts +6 -5
  142. package/dist/types/components/Shared/Introduction/types.d.ts +11 -11
  143. package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
  144. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  145. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
  146. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +5 -7
  147. package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
  148. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  149. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  150. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
  151. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
  152. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  153. package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
  154. package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
  155. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  156. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +27 -27
  157. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
  158. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
  159. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
  160. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
  161. package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
  162. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  163. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
  164. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  165. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  166. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  167. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  168. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  169. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -3
  170. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +3 -7
  171. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  172. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
  173. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  174. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
  175. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +11 -10
  176. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -0
  177. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
  178. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -4
  179. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -2
  180. package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
  181. package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
  182. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
  183. package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -2
  184. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +3 -3
  185. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -1
  186. package/dist/types/components/Trust/tasks/TrustMembers/CompanyTrustMemberTaskItem.d.ts +1 -1
  187. package/dist/types/components/Trust/tasks/TrustMembers/ExemptSettlorTaskItem.d.ts +1 -1
  188. package/dist/types/components/Trust/tasks/TrustMembers/RegularTrustMemberTaskItem.d.ts +1 -1
  189. package/dist/types/components/Trust/tasks/TrustMembers/RootTrusteeTaskItem.d.ts +1 -1
  190. package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +6 -6
  191. package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +7 -6
  192. package/dist/types/components/Trust/utils/trustMemberRequirements.d.ts +1 -1
  193. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +6 -6
  194. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +5 -5
  195. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
  196. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +2 -2
  197. package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +16 -0
  198. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +14 -0
  199. package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
  200. package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +3 -2
  201. package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
  202. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
  203. package/dist/types/constants/keys.d.ts +2 -0
  204. package/dist/types/context/ExperimentContext/types.d.ts +49 -37
  205. package/dist/types/context/SettingsContext/types.d.ts +24 -24
  206. package/dist/types/core/models/api/company-types-value.d.ts +12 -11
  207. package/dist/types/core/models/api/decision-maker-type.d.ts +7 -6
  208. package/dist/types/core/models/api/entity-type.d.ts +5 -4
  209. package/dist/types/core/models/api/get-scenarios.d.ts +18 -18
  210. package/dist/types/core/models/api/individual.d.ts +1 -0
  211. package/dist/types/core/models/api/legal-arrangement.d.ts +2 -2
  212. package/dist/types/core/models/api/legal-entity-association.d.ts +2 -2
  213. package/dist/types/core/models/api/legal-entity-type.d.ts +8 -7
  214. package/dist/types/core/models/api/trust-member-type.d.ts +8 -8
  215. package/dist/types/core/models/api/trusted-fields-provider.d.ts +5 -4
  216. package/dist/types/core/models/api/unincorporated-partnership.d.ts +6 -6
  217. package/dist/types/core/models/api/verification-error.d.ts +8 -7
  218. package/dist/types/core/models/api/verification-status.d.ts +7 -6
  219. package/dist/types/core/models/api/view-verification-status.d.ts +8 -7
  220. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
  221. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
  222. package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
  223. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
  224. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
  225. package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
  226. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
  227. package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
  228. package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +4 -4
  229. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +7 -6
  230. package/dist/types/hooks/useBusinessSetup.d.ts +11 -10
  231. package/dist/types/hooks/useDataMissingRemediations.d.ts +2 -2
  232. package/dist/types/hooks/useFormComposer.d.ts +1 -1
  233. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -3
  234. package/dist/types/hooks/useLegalEntityType.d.ts +1 -1
  235. package/dist/types/hooks/useMultiForm/types.d.ts +38 -36
  236. package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
  237. package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
  238. package/dist/types/language/Language.d.ts +1 -0
  239. package/dist/types/language/utils.d.ts +11 -1
  240. package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
  241. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
  242. package/dist/types/stores/globalStore/get-task-status.d.ts +2 -2
  243. package/dist/types/stores/globalStore/globalStore.d.ts +7 -7
  244. package/dist/types/stores/globalStore/taskStatus.d.ts +17 -16
  245. package/dist/types/stores/globalStore/taskTypes.d.ts +37 -35
  246. package/dist/types/types/datasets/country-code.d.ts +249 -249
  247. package/dist/types/types/datasets/currency.d.ts +25 -25
  248. package/dist/types/types/datasets/province-code.d.ts +46 -46
  249. package/dist/types/types/datasets/state-code.d.ts +84 -84
  250. package/dist/types/types/errors/entity-problems.d.ts +3 -4
  251. package/dist/types/types/form-rules.d.ts +2 -2
  252. package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
  253. package/dist/types/utils/birthDateUtils.d.ts +3 -3
  254. package/dist/types/utils/decisionMaker.d.ts +4 -3
  255. package/dist/types/utils/decisionMakerRoles.d.ts +4 -3
  256. package/dist/types/utils/entityAssociationUtil.d.ts +4 -5
  257. package/dist/types/utils/entityStatusUtil.d.ts +3 -3
  258. package/dist/types/utils/formUtils.d.ts +2 -2
  259. package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
  260. package/dist/types/utils/getName.d.ts +2 -2
  261. package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
  262. package/dist/types/utils/regex/patternValidators.d.ts +1 -0
  263. package/dist/types/utils/roleMetadata.d.ts +3 -3
  264. package/dist/types/utils/translation.d.ts +40 -0
  265. package/dist/{useMultiForm-CR4hzuCc.js → useMultiForm-ChxUZ4e7.js} +10 -5
  266. package/dist/{useOnboardingStatus-Dqs20dD8.js → useOnboardingStatus-1BQlEPEi.js} +2 -2
  267. package/dist/{useTermsOfServiceStatus-BTFnYGYb.js → useTermsOfServiceStatus-BaVCmUdo.js} +2 -2
  268. package/dist/{useUpdateLegalEntity-DZmx_k0Y.js → useUpdateLegalEntity-LE_Kt3am.js} +2 -2
  269. package/dist/{utils-Dbw9j-fF.js → utils-DmcbDJEd.js} +17 -17
  270. package/dist/{validate-PXGKct7b.js → validate-B2VmmEPC.js} +2 -2
  271. package/dist/{validate-sqPOCY2c.js → validate-D66zPhDG.js} +2 -2
  272. package/dist/view-verification-status-VFcBydkR.js +21 -0
  273. package/package.json +5 -30
  274. package/dist/DecisionMakers-DD4_MCdo.js +0 -217
  275. package/dist/LandingLayout-CYvWj-yQ.js +0 -139
  276. package/dist/ManagePCIComponent-DOrKClpc.js +0 -33
  277. package/dist/RootBusinessDetailsPage-CO4mL-OT.js +0 -42
  278. package/dist/_plugin-vue_export-helper-CgYpM5kA.js +0 -19
  279. package/dist/adyen-manage-pci.js +0 -48
  280. package/dist/adyen-sign-pci.js +0 -62
  281. package/dist/adyen-terms-of-service.vue_vue_type_script_lang-BD4hndWg.js +0 -42
  282. package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-BE-ro1iH.js +0 -53
  283. package/dist/css-BhF49TbR.js +0 -24
  284. package/dist/json-CYfI6iyy.js +0 -31
  285. package/dist/plaintext-DqowNgbq.js +0 -17
  286. package/dist/preact/adyen-individual.js +0 -15
  287. package/dist/preact/adyen-manage-individual.js +0 -15
  288. package/dist/preact/adyen-terms-of-service.js +0 -16
  289. package/dist/preact/adyen-transfer-instrument.js +0 -16
  290. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationDisclaimer/IdVerificationDisclaimer.d.ts +0 -1
  291. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationHeader/IdVerificationHeader.d.ts +0 -1
  292. package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +0 -3
  293. package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +0 -3
  294. package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +0 -12
  295. package/dist/types/embeds/manage-pci/adyen-manage-pci.d.ts +0 -1
  296. package/dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts +0 -39
  297. package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -15
  298. package/dist/types/embeds/sign-pci/adyen-sign-pci.d.ts +0 -1
  299. package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +0 -43
  300. package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +0 -3
  301. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +0 -3
  302. package/dist/useSalesChannelsSettings-CLSu5OoN.js +0 -51
  303. package/dist/view-verification-status-DTkA8PtO.js +0 -20
  304. package/dist/vue/adyen-individual.js +0 -53
  305. package/dist/vue/adyen-manage-individual.js +0 -56
  306. package/dist/vue/adyen-terms-of-service.js +0 -28
  307. package/dist/vue/adyen-transfer-instrument.js +0 -30
  308. package/dist/yaml-tUhjVy56.js +0 -22
@@ -2,21 +2,21 @@
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] = "86fcbf97-bc73-4e8a-ad96-76be5f3ca3b9", e._sentryDebugIdIdentifier = "sentry-dbid-86fcbf97-bc73-4e8a-ad96-76be5f3ca3b9");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "28d1f09b-5a23-42ca-a010-aa8bcb1fc070", e._sentryDebugIdIdentifier = "sentry-dbid-28d1f09b-5a23-42ca-a010-aa8bcb1fc070");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useRef, useEffect, useMemo, useState, useCallback } from "preact/hooks";
12
- import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-DZmx_k0Y.js";
13
- import { by as reverseMapping, bz as formatObject, bA as isEeaCountry, y as LegalEntityType, bc as cloneObject, p as useApiContext, q as useQuery, r as httpGet, b as useI18nContext, aA as Field, bt as Select, C as Typography, bB as LegalFormField, az as createFormUtils, aX as RadioGroup, bC as Link, bD as InputText, bd as currencyByCountry, bE as InputNumber, bF as Currency, bG as CURRENCY_FIELD, bH as InputCurrency, bI as InputDate, bJ as useFormContext, aw as getFieldProps, ay as ErrorPanel, b2 as datasetUtilities, bK as getAddressSchemaForCountry, bL as COUNTRIES_WITH_STATES_DATASET, bu as Checkbox, bM as Address, bN as getAddressSchemaLabelsByCountry, a0 as useAnalyticsContext, bg as useInvalidateRootLegalEntity, ao as useAssociatedLegalEntity, a6 as useToastContext, J as useSettingsContext, K as SettingNames, bO as getAssociatedLeAnalyticsPayload, bP as getRequiredForms, bQ as addValidityToForms, bR as useFormComposer, bS as trackNavigation, L as Loader, a4 as Icon, _ as Button, bT as isValidationError, bU as processValidationErrors, bV as isMaintenanceModeError } from "./StoreProvider-Bw9Xi_Q5.js";
14
- import { F as FormContextProvider, a as FormFlow } from "./FormFlow-C1DKb0gA.js";
15
- import { u as useMultiForm } from "./useMultiForm-CR4hzuCc.js";
16
- import { F as FormEndState } from "./FormEndState-BBMSuQj7.js";
17
- import { l as localizeDateString } from "./localizeDateString-B3Zc2Aep.js";
18
- import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-Dn-CfyG6.js";
19
- import { b as businessFinancingMultiformRules } from "./validate-PXGKct7b.js";
12
+ import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-LE_Kt3am.js";
13
+ import { bz as reverseMapping, bA as formatObject, bB as isEeaCountry, O as LegalEntityTypes, bk as cloneObject, a as useApiContext, r as useQuery, x as httpGet, u as useI18nContext, aD as Field, bu as Select, c as useTranslation, N as Typography, bC as LegalFormField, aC as createFormUtils, a_ as RadioGroup, bD as Link, bE as InputText, bl as currencyByCountry, bF as InputNumber, bG as Currency, bH as CURRENCY_FIELD, bI as InputCurrency, bJ as InputDate, bK as useFormContext, az as getFieldProps, aB as ErrorPanel, ba as datasetUtilities, bL as getAddressSchemaForCountry, bM as COUNTRIES_WITH_STATES_DATASET, bv as Checkbox, bN as Address, bO as getAddressSchemaLabelsByCountry, a3 as useAnalyticsContext, bo as useInvalidateRootLegalEntity, ar as useAssociatedLegalEntity, a9 as useToastContext, v as useSettingsContext, w as SettingNames, bP as getAssociatedLeAnalyticsPayload, bQ as getRequiredForms, bR as addValidityToForms, bS as useFormComposer, bT as trackNavigation, L as Loader, a7 as Icon, G as Button, bU as isValidationError, bV as processValidationErrors, bW as isMaintenanceModeError } from "./StoreProvider-DhQ4sdLg.js";
14
+ import { F as FormContextProvider, a as FormFlow } from "./FormFlow-CNxGh4Yu.js";
15
+ import { u as useMultiForm } from "./useMultiForm-ChxUZ4e7.js";
16
+ import { F as FormEndState } from "./FormEndState-BmDRa3zJ.js";
17
+ import { l as localizeDateString } from "./localizeDateString-C34eXZqY.js";
18
+ import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-DoJu-RRw.js";
19
+ import { b as businessFinancingMultiformRules } from "./validate-B2VmmEPC.js";
20
20
  const businessFinancingBaseMapping = {
21
21
  legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
22
22
  legalInformationInsolvency: "organization.statusOfLegalProceeding",
@@ -43,29 +43,32 @@ const mapBusinessFinancingToLegalEntity = (data) => ({
43
43
  businessFinancingApiKeyMapping
44
44
  )
45
45
  });
46
- var BusinessFinancingPagesEnums = /* @__PURE__ */ ((BusinessFinancingPagesEnums2) => {
47
- BusinessFinancingPagesEnums2["COMPANY_PAGE"] = "company";
48
- BusinessFinancingPagesEnums2["PARENT_COMPANY_PAGE"] = "parentCompany";
49
- BusinessFinancingPagesEnums2["ULTIMATE_PARENT_COMPANY_PAGE"] = "ultimateParentCompany";
50
- return BusinessFinancingPagesEnums2;
51
- })(BusinessFinancingPagesEnums || {});
46
+ const BusinessFinancingPages = {
47
+ COMPANY_PAGE: "company",
48
+ PARENT_COMPANY_PAGE: "parentCompany",
49
+ ULTIMATE_PARENT_COMPANY_PAGE: "ultimateParentCompany"
50
+ };
51
+ const BusinessFinancingRadioIds = {
52
+ YES: "Yes",
53
+ NO: "No"
54
+ };
52
55
  const businessFinancingRadioItems = [
53
56
  {
54
- id: "Yes",
57
+ id: BusinessFinancingRadioIds.YES,
55
58
  name: "yes"
56
59
  },
57
60
  {
58
- id: "No",
61
+ id: BusinessFinancingRadioIds.NO,
59
62
  name: "no"
60
63
  }
61
64
  ];
62
65
  const businessFinancingParentRadioItems = [
63
66
  {
64
- id: "Yes",
67
+ id: BusinessFinancingRadioIds.YES,
65
68
  name: "yes"
66
69
  },
67
70
  {
68
- id: "No",
71
+ id: BusinessFinancingRadioIds.NO,
69
72
  name: "noIdontKnow"
70
73
  }
71
74
  ];
@@ -118,17 +121,16 @@ const businessFinancingForms = {
118
121
  fields: [...parentCompaniesSchemaKeys]
119
122
  }
120
123
  };
121
- var BusinessFinancingIndex = /* @__PURE__ */ ((BusinessFinancingIndex2) => {
122
- BusinessFinancingIndex2["COMPANY"] = "company";
123
- BusinessFinancingIndex2["PARENT_COMPANY"] = "parentCompany";
124
- BusinessFinancingIndex2["ULTIMATE_PARENT_COMPANY"] = "ultimateParentCompany";
125
- return BusinessFinancingIndex2;
126
- })(BusinessFinancingIndex || {});
124
+ const BusinessFinancingIndices = {
125
+ COMPANY: "company",
126
+ PARENT_COMPANY: "parentCompany",
127
+ ULTIMATE_PARENT_COMPANY: "ultimateParentCompany"
128
+ };
127
129
  const getLegalEntityId = (businessFinancingIndex, rootLegalEntity) => {
128
130
  if (!rootLegalEntity) return void 0;
129
- if (businessFinancingIndex === BusinessFinancingIndex.COMPANY) return rootLegalEntity.id;
131
+ if (businessFinancingIndex === BusinessFinancingIndices.COMPANY) return rootLegalEntity.id;
130
132
  if (!rootLegalEntity?.entityAssociations) return void 0;
131
- const businessFinancingEntityType = BusinessFinancingIndex.PARENT_COMPANY ? "immediateParentCompany" : "ultimateParentCompany";
133
+ const businessFinancingEntityType = "immediateParentCompany";
132
134
  const businessFinancingEntityAssociation = rootLegalEntity.entityAssociations?.find(
133
135
  (entity) => entity.type === businessFinancingEntityType
134
136
  );
@@ -149,10 +151,10 @@ const financialReportsToString = (financialReports) => {
149
151
  const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLegalEntity) => {
150
152
  const businessFinancingData = data[businessFinancingIndex];
151
153
  if (!businessFinancingData) return null;
152
- if (businessFinancingIndex === BusinessFinancingIndex.PARENT_COMPANY && !entityHasParentCompany(data)) {
154
+ if (businessFinancingIndex === BusinessFinancingIndices.PARENT_COMPANY && !entityHasParentCompany(data)) {
153
155
  return null;
154
156
  }
155
- if (businessFinancingIndex === BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY && (!entityHasUltimateParentCompany(data) || !entityHasParentCompany(data))) {
157
+ if (businessFinancingIndex === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY && (!entityHasUltimateParentCompany(data) || !entityHasParentCompany(data))) {
156
158
  return null;
157
159
  }
158
160
  const businessFinancingDetails = mapBusinessFinancingToLegalEntity(businessFinancingData);
@@ -197,7 +199,7 @@ const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLe
197
199
  businessFinancingDetails.id = businessFinancingLegalEntityId;
198
200
  } else {
199
201
  delete businessFinancingDetails.id;
200
- businessFinancingDetails.type = LegalEntityType.ORGANIZATION;
202
+ businessFinancingDetails.type = LegalEntityTypes.ORGANIZATION;
201
203
  }
202
204
  return businessFinancingDetails;
203
205
  };
@@ -572,12 +574,13 @@ function BusinessFinancingBusinessInformation(props) {
572
574
  sectionHeading,
573
575
  hideSectionHeading
574
576
  } = props;
577
+ const { t } = useTranslation();
575
578
  const { i18n } = useI18nContext();
576
- const formUtils = createFormUtils(props, i18n);
579
+ const formUtils = createFormUtils(props, t);
577
580
  if (!handleFieldChange) {
578
581
  return;
579
582
  }
580
- const isMainCompany = targetPage === BusinessFinancingPagesEnums.COMPANY_PAGE;
583
+ const isMainCompany = targetPage === BusinessFinancingPages.COMPANY_PAGE;
581
584
  return /* @__PURE__ */ jsxs(Fragment, { children: [
582
585
  !hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: i18n.get(sectionHeading || "yourBusinessInformation") }),
583
586
  /* @__PURE__ */ jsx(
@@ -686,7 +689,8 @@ const financialInformationFields = [
686
689
  function BusinessFinancingFinancialInformation(props) {
687
690
  const { data, valid, errors, country, sectionHeading, handleFieldChange, fieldValidationErrors } = props;
688
691
  const { i18n } = useI18nContext();
689
- const formUtils = createFormUtils(props, i18n);
692
+ const { t, i18n: i18next } = useTranslation();
693
+ const formUtils = createFormUtils(props, t);
690
694
  const currenciesForCurrCountry = useMemo(() => currencyByCountry[country] ?? [], [country]);
691
695
  if (!handleFieldChange) {
692
696
  return;
@@ -696,6 +700,9 @@ function BusinessFinancingFinancialInformation(props) {
696
700
  const isFinancialDataValid = valid;
697
701
  const [firstCurrency] = currenciesForCurrCountry;
698
702
  const defaultCurrency = firstCurrency ?? "EUR";
703
+ if (currenciesForCurrCountry.length === 1 && data?.currency !== firstCurrency) {
704
+ handleFieldChange("currency")(firstCurrency);
705
+ }
699
706
  return /* @__PURE__ */ jsxs("section", { children: [
700
707
  /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: i18n.get(sectionHeading || "businessFinancials") }),
701
708
  /* @__PURE__ */ jsx(
@@ -722,7 +729,7 @@ function BusinessFinancingFinancialInformation(props) {
722
729
  )
723
730
  }
724
731
  ),
725
- /* @__PURE__ */ jsx(
732
+ currenciesForCurrCountry?.length > 1 && /* @__PURE__ */ jsx(
726
733
  Currency,
727
734
  {
728
735
  country,
@@ -746,7 +753,7 @@ function BusinessFinancingFinancialInformation(props) {
746
753
  InputCurrency,
747
754
  {
748
755
  ...childProps,
749
- locale: i18n.locale,
756
+ locale: i18next.language,
750
757
  currency: data?.currency ?? defaultCurrency,
751
758
  amount: data?.netAssets ? Number(data?.netAssets) : void 0,
752
759
  onAmountChanged: handleFieldChange("netAssets")
@@ -766,7 +773,7 @@ function BusinessFinancingFinancialInformation(props) {
766
773
  {
767
774
  ...childProps,
768
775
  name: "annualTurnover",
769
- locale: i18n.locale,
776
+ locale: i18next.language,
770
777
  currency: data?.currency ?? defaultCurrency,
771
778
  amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
772
779
  onAmountChanged: handleFieldChange("annualTurnover")
@@ -811,8 +818,9 @@ const legalInformationFields = [
811
818
  ];
812
819
  function BusinessFinancingLegalInformation(props) {
813
820
  const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
821
+ const { t } = useTranslation();
814
822
  const { i18n } = useI18nContext();
815
- const formUtils = createFormUtils(props, i18n);
823
+ const formUtils = createFormUtils(props, t);
816
824
  if (!handleFieldChange) {
817
825
  return;
818
826
  }
@@ -886,8 +894,9 @@ const ownershipStructureFields = [
886
894
  ];
887
895
  function BusinessFinancingOwnershipStructure(props) {
888
896
  const { data, valid, errors = {}, legalEntity, fieldValidationErrors, handleFieldChange } = props;
897
+ const { t } = useTranslation();
889
898
  const { i18n } = useI18nContext();
890
- const formUtils = createFormUtils(props, i18n);
899
+ const formUtils = createFormUtils(props, t);
891
900
  if (!handleFieldChange) {
892
901
  return;
893
902
  }
@@ -954,17 +963,22 @@ function BusinessFinancingOwnershipStructure(props) {
954
963
  ] });
955
964
  }
956
965
  function AdditionalFieldsForBusinessFinancingCompany(props) {
966
+ const { t } = useTranslation();
957
967
  const { i18n } = useI18nContext();
958
968
  const {
959
- form: { handleChangeFor, data }
969
+ form: { handleChangeFor, data, setValid }
960
970
  } = useFormContext();
961
- const { country, formVerificationErrors, legalEntity } = props;
962
- const formUtils = createFormUtils(props, i18n);
971
+ const { country, formVerificationErrors, legalEntity, fieldValidationErrors } = props;
972
+ const formUtils = createFormUtils(props, t);
963
973
  const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "company", mode);
964
974
  const ownershipStructureProps = getFieldProps(props, ownershipStructureFields);
965
975
  const businessInformationProps = getFieldProps(props, businessInformationFields);
966
976
  const financialInformationProps = getFieldProps(props, financialInformationFields);
967
977
  const legalInformationProps = getFieldProps(props, legalInformationFields);
978
+ const currenciesForCurrCountry = currencyByCountry[country] ?? [];
979
+ if (currenciesForCurrCountry?.length === 1) {
980
+ setValid("currency", true, "company");
981
+ }
968
982
  return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
969
983
  /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("additionalInformationForBusinessFinancing") }),
970
984
  /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("toProcessYourFundsWeNeedMoreInformation") }),
@@ -972,7 +986,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
972
986
  ErrorPanel,
973
987
  {
974
988
  verificationErrors: formVerificationErrors,
975
- validationErrors: props?.fieldValidationErrors,
989
+ validationErrors: fieldValidationErrors,
976
990
  formUtils,
977
991
  id: "ariaErrorField"
978
992
  }
@@ -983,7 +997,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
983
997
  ...businessInformationProps,
984
998
  handleFieldChange: handleChange,
985
999
  country,
986
- targetPage: BusinessFinancingPagesEnums.COMPANY_PAGE,
1000
+ targetPage: BusinessFinancingPages.COMPANY_PAGE,
987
1001
  sectionHeading: "yourBusinessInformation",
988
1002
  data: formUtils.getFieldData(data?.company ?? {}, businessInformationFields)
989
1003
  }
@@ -994,7 +1008,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
994
1008
  ...financialInformationProps,
995
1009
  handleFieldChange: handleChange,
996
1010
  country,
997
- targetPage: BusinessFinancingPagesEnums.COMPANY_PAGE,
1011
+ targetPage: BusinessFinancingPages.COMPANY_PAGE,
998
1012
  data: formUtils.getFieldData(data?.company ?? {}, financialInformationFields)
999
1013
  }
1000
1014
  ),
@@ -1004,7 +1018,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
1004
1018
  ...legalInformationProps,
1005
1019
  country,
1006
1020
  handleFieldChange: handleChange,
1007
- targetPage: BusinessFinancingPagesEnums.COMPANY_PAGE,
1021
+ targetPage: BusinessFinancingPages.COMPANY_PAGE,
1008
1022
  sectionHeading: "legalInformation",
1009
1023
  data: formUtils.getFieldData(data?.company ?? {}, legalInformationFields)
1010
1024
  }
@@ -1025,8 +1039,9 @@ const basicInformationFields = [
1025
1039
  ];
1026
1040
  function BusinessFinancingBasicCompanyInformation(props) {
1027
1041
  const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
1042
+ const { t } = useTranslation();
1028
1043
  const { i18n } = useI18nContext();
1029
- const formUtils = createFormUtils(props, i18n);
1044
+ const formUtils = createFormUtils(props, t);
1030
1045
  if (!handleFieldChange) {
1031
1046
  return;
1032
1047
  }
@@ -1077,8 +1092,9 @@ function BusinessFinancingRegisteredAddress(props) {
1077
1092
  legalEntity,
1078
1093
  sectionHeading
1079
1094
  } = props;
1095
+ const { t } = useTranslation();
1080
1096
  const { i18n } = useI18nContext();
1081
- const formUtils = createFormUtils(props, i18n);
1097
+ const formUtils = createFormUtils(props, t);
1082
1098
  const addressCountry = data?.registrationAddress?.country;
1083
1099
  const datasetUtils = datasetUtilities(i18n.locale);
1084
1100
  const addressSchema = useMemo(() => {
@@ -1180,12 +1196,13 @@ function BusinessFinancingRegisteredAddress(props) {
1180
1196
  }
1181
1197
  const parentCompanyFormId$1 = businessFinancingForms.parentCompany.formId;
1182
1198
  function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1199
+ const { t } = useTranslation();
1183
1200
  const { i18n } = useI18nContext();
1184
1201
  const {
1185
1202
  form: { handleChangeFor, data, setValid }
1186
1203
  } = useFormContext();
1187
1204
  const { country, formVerificationErrors, fieldValidationErrors, legalEntity } = props;
1188
- const formUtils = createFormUtils(props, i18n);
1205
+ const formUtils = createFormUtils(props, t);
1189
1206
  const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "parentCompany", mode);
1190
1207
  setValid("sameAddressAsRootEntity", true, "parentCompany");
1191
1208
  const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
@@ -1197,6 +1214,10 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1197
1214
  data?.parentCompany,
1198
1215
  legalEntity?.organization?.registeredAddress
1199
1216
  );
1217
+ const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
1218
+ if (currenciesForCurrCountry?.length === 1) {
1219
+ setValid("currency", true, "parentCompany");
1220
+ }
1200
1221
  return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-parent-company", children: [
1201
1222
  /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("parentCompanyInformation") }),
1202
1223
  /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("inThePreviousStepOwnedByAParentCompany") }),
@@ -1236,7 +1257,7 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1236
1257
  ...businessInformationProps,
1237
1258
  hideSectionHeading: true,
1238
1259
  country: addressCountry ?? country,
1239
- targetPage: BusinessFinancingPagesEnums.PARENT_COMPANY_PAGE,
1260
+ targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
1240
1261
  handleFieldChange: handleChange,
1241
1262
  data: formUtils.getFieldData(data?.parentCompany ?? {}, businessInformationFields)
1242
1263
  }
@@ -1246,7 +1267,7 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1246
1267
  {
1247
1268
  ...financialInformationProps,
1248
1269
  country: addressCountry ?? country,
1249
- targetPage: BusinessFinancingPagesEnums.PARENT_COMPANY_PAGE,
1270
+ targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
1250
1271
  handleFieldChange: handleChange,
1251
1272
  data: formUtils.getFieldData(data?.parentCompany ?? {}, financialInformationFields)
1252
1273
  }
@@ -1256,7 +1277,7 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1256
1277
  {
1257
1278
  ...legalInformationProps,
1258
1279
  country: addressCountry ?? country,
1259
- targetPage: BusinessFinancingPagesEnums.PARENT_COMPANY_PAGE,
1280
+ targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
1260
1281
  sectionHeading: "legalInformation",
1261
1282
  handleFieldChange: handleChange,
1262
1283
  data: formUtils.getFieldData(data?.parentCompany ?? {}, legalInformationFields)
@@ -1268,7 +1289,8 @@ const ultimateParentCompanyFormId$1 = businessFinancingForms.ultimateParentCompa
1268
1289
  function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1269
1290
  const { formVerificationErrors, country, fieldValidationErrors, legalEntity } = props;
1270
1291
  const { i18n } = useI18nContext();
1271
- const formUtils = createFormUtils(props, i18n);
1292
+ const { t } = useTranslation();
1293
+ const formUtils = createFormUtils(props, t);
1272
1294
  const {
1273
1295
  form: { handleChangeFor, data, setValid }
1274
1296
  } = useFormContext();
@@ -1283,6 +1305,10 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1283
1305
  data?.ultimateParentCompany,
1284
1306
  legalEntity?.organization?.registeredAddress
1285
1307
  );
1308
+ const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
1309
+ if (currenciesForCurrCountry?.length === 1) {
1310
+ setValid("currency", true, "ultimateParentCompany");
1311
+ }
1286
1312
  return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-ultimate-parent-company", children: [
1287
1313
  /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("ultimateParentCompanyInformation") }),
1288
1314
  /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("inThePreviousStepOwnedByAnUltimateParentCompany") }),
@@ -1322,7 +1348,7 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1322
1348
  ...businessInformationProps,
1323
1349
  hideSectionHeading: true,
1324
1350
  country: addressCountry ?? country,
1325
- targetPage: BusinessFinancingPagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
1351
+ targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
1326
1352
  handleFieldChange: handleChange,
1327
1353
  data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, businessInformationFields)
1328
1354
  }
@@ -1332,7 +1358,7 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1332
1358
  {
1333
1359
  ...financialInformationProps,
1334
1360
  country: addressCountry ?? country,
1335
- targetPage: BusinessFinancingPagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
1361
+ targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
1336
1362
  handleFieldChange: handleChange,
1337
1363
  data: formUtils.getFieldData(
1338
1364
  data?.ultimateParentCompany ?? {},
@@ -1346,7 +1372,7 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1346
1372
  ...legalInformationProps,
1347
1373
  country: addressCountry ?? country,
1348
1374
  sectionHeading: "legalInformation",
1349
- targetPage: BusinessFinancingPagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
1375
+ targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
1350
1376
  handleFieldChange: handleChange,
1351
1377
  data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, legalInformationFields)
1352
1378
  }
@@ -1452,17 +1478,17 @@ function BusinessFinancingDropin(props) {
1452
1478
  return;
1453
1479
  }
1454
1480
  const companyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
1455
- BusinessFinancingIndex.COMPANY,
1481
+ BusinessFinancingIndices.COMPANY,
1456
1482
  umfData,
1457
1483
  rootLegalEntity
1458
1484
  );
1459
1485
  const parentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
1460
- BusinessFinancingIndex.PARENT_COMPANY,
1486
+ BusinessFinancingIndices.PARENT_COMPANY,
1461
1487
  umfData,
1462
1488
  rootLegalEntity
1463
1489
  );
1464
1490
  const ultimateParentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
1465
- BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY,
1491
+ BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
1466
1492
  umfData,
1467
1493
  rootLegalEntity
1468
1494
  );
@@ -1476,7 +1502,7 @@ function BusinessFinancingDropin(props) {
1476
1502
  const promises = [];
1477
1503
  if (parentCompanyBusinessFinancingDetails) {
1478
1504
  const parentCompanyPromise = handleBusinessFinancingFormSubmission(
1479
- BusinessFinancingIndex.PARENT_COMPANY,
1505
+ BusinessFinancingIndices.PARENT_COMPANY,
1480
1506
  parentCompanyBusinessFinancingDetails,
1481
1507
  createLegalEntity,
1482
1508
  updateLegalEntity,
@@ -1486,7 +1512,7 @@ function BusinessFinancingDropin(props) {
1486
1512
  }
1487
1513
  if (ultimateParentCompanyBusinessFinancingDetails) {
1488
1514
  const ultimateParentCompanyPromise = handleBusinessFinancingFormSubmission(
1489
- BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY,
1515
+ BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
1490
1516
  ultimateParentCompanyBusinessFinancingDetails,
1491
1517
  createLegalEntity,
1492
1518
  updateLegalEntity,
@@ -1501,30 +1527,30 @@ function BusinessFinancingDropin(props) {
1501
1527
  const businessFinancingEntityAssociations = [
1502
1528
  ...previousEntityAssociations
1503
1529
  ];
1504
- const entitiesToTrack = [BusinessFinancingIndex.COMPANY];
1530
+ const entitiesToTrack = [BusinessFinancingIndices.COMPANY];
1505
1531
  results.forEach((result, index) => {
1506
- const businessFinancingType = index === 0 ? BusinessFinancingIndex.PARENT_COMPANY : BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY;
1532
+ const businessFinancingType = index === 0 ? BusinessFinancingIndices.PARENT_COMPANY : BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY;
1507
1533
  if (result.status === "fulfilled") {
1508
1534
  const response = result.value;
1509
- if (businessFinancingType === BusinessFinancingIndex.PARENT_COMPANY) {
1535
+ if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
1510
1536
  businessFinancingEntityAssociations.push({
1511
1537
  type: "immediateParentCompany",
1512
1538
  legalEntityId: response.id,
1513
1539
  associatorId: companyBusinessFinancingDetails.id
1514
1540
  });
1515
- entitiesToTrack.push(BusinessFinancingIndex.PARENT_COMPANY);
1516
- } else if (businessFinancingType === BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY) {
1541
+ entitiesToTrack.push(BusinessFinancingIndices.PARENT_COMPANY);
1542
+ } else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
1517
1543
  businessFinancingEntityAssociations.push({
1518
1544
  type: "ultimateParentCompany",
1519
1545
  legalEntityId: response.id,
1520
1546
  associatorId: companyBusinessFinancingDetails.id
1521
1547
  });
1522
- entitiesToTrack.push(BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY);
1548
+ entitiesToTrack.push(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY);
1523
1549
  }
1524
1550
  } else {
1525
- if (businessFinancingType === BusinessFinancingIndex.PARENT_COMPANY) {
1551
+ if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
1526
1552
  parentCompanyFailed = true;
1527
- } else if (businessFinancingType === BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY) {
1553
+ } else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
1528
1554
  ultimateParentCompanyFailed = true;
1529
1555
  }
1530
1556
  handleSubmissionError(result.reason, businessFinancingType);
@@ -1544,7 +1570,7 @@ function BusinessFinancingDropin(props) {
1544
1570
  };
1545
1571
  try {
1546
1572
  await handleBusinessFinancingFormSubmission(
1547
- BusinessFinancingIndex.COMPANY,
1573
+ BusinessFinancingIndices.COMPANY,
1548
1574
  companyBusinessFinancingDetails,
1549
1575
  createLegalEntity,
1550
1576
  updateLegalEntity,
@@ -1563,13 +1589,13 @@ function BusinessFinancingDropin(props) {
1563
1589
  }
1564
1590
  } catch (e) {
1565
1591
  showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
1566
- handleSubmissionError(e, BusinessFinancingIndex.COMPANY);
1592
+ handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
1567
1593
  }
1568
1594
  setProblems({});
1569
1595
  }
1570
1596
  } catch (e) {
1571
1597
  if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
1572
- handleSubmissionError(e, BusinessFinancingIndex.COMPANY);
1598
+ handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
1573
1599
  }
1574
1600
  showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
1575
1601
  } finally {
@@ -2,14 +2,14 @@
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] = "3606638b-8535-4f8c-a8df-40607d37fcd4", e._sentryDebugIdIdentifier = "sentry-dbid-3606638b-8535-4f8c-a8df-40607d37fcd4");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a0d93f8f-8488-4970-a59d-578d8a26cd41", e._sentryDebugIdIdentifier = "sentry-dbid-a0d93f8f-8488-4970-a59d-578d8a26cd41");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
- import { b as useI18nContext, a as useLegalEntity, R as ROOT_LE, L as Loader, g as getLegalEntityCountry } from "./StoreProvider-Bw9Xi_Q5.js";
12
- import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-BaeVc8F6.js";
11
+ import { u as useI18nContext, d as useLegalEntity, R as ROOT_LE, L as Loader, g as getLegalEntityCountry } from "./StoreProvider-DhQ4sdLg.js";
12
+ import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-Bhg9neRS.js";
13
13
  const BusinessFinancingPage = ({
14
14
  onSubmit,
15
15
  handleHomeClick