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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-BtDbLa_E.js → AcceptTermsOfServiceComponent-DBSkKRHS.js} +7 -7
  2. package/dist/{AccountSetupRejected-CcEP6pSK.js → AccountSetupRejected-gAGWuJ9N.js} +6 -6
  3. package/dist/{Avatar-CIGV_SS9.js → Avatar-5RObc8Yd.js} +2 -2
  4. package/dist/{BusinessDetailsDropin-DLYZERBF.js → BusinessDetailsDropin-O92NE-y1.js} +132 -144
  5. package/dist/{BusinessFinancingComponent-B0-te_Xu.js → BusinessFinancingComponent-DDKomenp.js} +3 -3
  6. package/dist/{BusinessFinancingDropin-B4_rfH9-.js → BusinessFinancingDropin-Bhg9neRS.js} +135 -97
  7. package/dist/{BusinessFinancingPage-CrrXzA0g.js → BusinessFinancingPage-DyItV5SR.js} +3 -3
  8. package/dist/{BusinessTypeSelectionPage-D8xVIVhb.js → BusinessTypeSelectionPage-DmjbM57I.js} +47 -76
  9. package/dist/{ContractViewer-UYqTJdeu.js → ContractViewer-DBW5C6kA.js} +2 -2
  10. package/dist/{CreateIndividualComponent-XvZnVu7B.js → CreateIndividualComponent-c8yAn2_J.js} +4 -4
  11. package/dist/{CreateTransferInstrumentComponent-BgYVNCFm.js → CreateTransferInstrumentComponent-BF-KFdjU.js} +5 -5
  12. package/dist/{CustomerSupport-CYFiNKxp.js → CustomerSupport-rSYElbVr.js} +10 -10
  13. package/dist/{DebugModal-D3MJ4glT.js → DebugModal-BTr0idCC.js} +12 -226
  14. package/dist/{DecisionMakerDetailsPage-CbEA4IVc.js → DecisionMakerDetailsPage-DQcWSwTb.js} +4 -4
  15. package/dist/DecisionMakers-C2awPhE6.js +478 -0
  16. package/dist/{EmbeddedStatus-90fvG4vd.js → EmbeddedStatus-COKtxNW-.js} +13 -13
  17. package/dist/{FormEndState-n1UQXu_s.js → FormEndState-BmDRa3zJ.js} +4 -3
  18. package/dist/{FormFlow-DJAJpY63.js → FormFlow-CNxGh4Yu.js} +3 -3
  19. package/dist/{IndividualOnfidoDropin-UnR6_lSH.js → IndividualOnfidoDropin-DUzjucM9.js} +217 -188
  20. package/dist/{Introduction-DF3A8V4n.js → Introduction-BEM_wmkj.js} +24 -26
  21. package/dist/{ProviderButton-C0l7gpNQ.js → LandingLayout-DyY0Exht.js} +91 -83
  22. package/dist/{LegalRepresentativeDetailsPage-BVyxsmeu.js → LegalRepresentativeDetailsPage-1tw_BPLr.js} +4 -4
  23. package/dist/{ManageIndividualComponent-CgoC5kz6.js → ManageIndividualComponent-B0y8wd24.js} +6 -6
  24. package/dist/{ManageTermsOfServiceComponent-Csey0WTR.js → ManageTermsOfServiceComponent-DJVDf-iH.js} +4 -4
  25. package/dist/{ManageTransferInstrumentComponent-Cl1QWiGy.js → ManageTransferInstrumentComponent-DF4Q8oEB.js} +6 -6
  26. package/dist/{OnboardingDropinComponent-CMrZ3LMb.js → OnboardingDropinComponent-B0Sj7qf1.js} +366 -208
  27. package/dist/{Review-CzahUVPw.js → Review-C4HOjR6y.js} +11 -11
  28. package/dist/RootBusinessDetailsPage-DeqKfOFX.js +1848 -0
  29. package/dist/{RootIndividualDetailsPage-BWTT7m_R.js → RootIndividualDetailsPage-CKOquQ0-.js} +4 -4
  30. package/dist/{SignPCIComponent-BQNUvb0U.js → SignPCIComponent-Cx8oL8wu.js} +6 -6
  31. package/dist/{SingpassSelection-XgZwkWE1.js → SingpassSelection-BJNZw1u-.js} +11 -11
  32. package/dist/{SoleProprietorshipPage-By5_23ht.js → SoleProprietorshipPage-Dtw3XHVJ.js} +4 -4
  33. package/dist/{SourceOfFundsPage-CDGfbVu5.js → SourceOfFundsPage-gPmK4QX6.js} +28 -20
  34. package/dist/{StoreProvider-D6PzfyGo.js → StoreProvider-DhQ4sdLg.js} +5809 -5424
  35. package/dist/{TaskItemStatus-FSfcOG5a.js → TaskItemStatus-Cxcag2AH.js} +23 -23
  36. package/dist/TaskStatusIndicator-B5fp8LzR.js +69 -0
  37. package/dist/{TaxReportingDropin-B7TEo7Kn.js → TaxReportingDropin-CbDYoO31.js} +8 -7
  38. package/dist/{TileGroup-rR4DgKfb.js → TileGroup-BkLtnLiA.js} +2 -2
  39. package/dist/{TrustDetailsPage-DPBPQVSn.js → TrustDetailsPage-DktRQRum.js} +38 -14
  40. package/dist/{TrustMemberCompanyPage-B_TShwlL.js → TrustMemberCompanyPage-CLTOpWzU.js} +5 -5
  41. package/dist/{TrustMemberIndividualPage-BgQBZEcL.js → TrustMemberIndividualPage-wPh86-GQ.js} +4 -4
  42. package/dist/{UnincorporatedPartnershipIndividualPage-DHcH33Db.js → UnincorporatedPartnershipIndividualPage-B-2i68Nd.js} +4 -4
  43. package/dist/{UnincorporatedPartnershipMemberCompanyPage-BTklC9NY.js → UnincorporatedPartnershipMemberCompanyPage-DWLczj6F.js} +4 -4
  44. package/dist/{VerificationErrorAlert-BrW_bMo4.js → VerificationErrorAlert-AbvM4lbK.js} +2 -2
  45. package/dist/{ViewVerificationStatusComponent-4QUIn73E.js → ViewVerificationStatusComponent-vVZeXYDs.js} +14 -12
  46. package/dist/adyen-business-financing.js +8 -12
  47. package/dist/adyen-individual.js +6 -4
  48. package/dist/adyen-kyc-components.js +143 -124
  49. package/dist/adyen-manage-individual.js +2 -2
  50. package/dist/adyen-manage-terms-of-service.js +3 -3
  51. package/dist/adyen-manage-transfer-instruments.js +3 -3
  52. package/dist/adyen-onboarding.js +14 -6
  53. package/dist/adyen-terms-of-service.js +18 -6
  54. package/dist/adyen-transfer-instrument.js +10 -6
  55. package/dist/adyen-verification-status.js +2 -2
  56. package/dist/bag-DpxmyXfR.js +14 -0
  57. package/dist/business-lines-DboUCbXw.js +135 -0
  58. package/dist/decision-makers-group-CgddXgrx.js +1944 -0
  59. package/dist/en-US-CQ3angjM.js +22 -0
  60. package/dist/{getFieldsWithExistingData-nHjOwfDp.js → getFieldsWithExistingData-BS9W6RQp.js} +2 -2
  61. package/dist/{hasDataChanged-C8mesP2r.js → hasDataChanged-DK74H0sZ.js} +2 -2
  62. package/dist/{localizeDateString-BUxfnxIU.js → localizeDateString-C34eXZqY.js} +2 -2
  63. package/dist/mail-Z_IE_hkw.js +14 -0
  64. package/dist/{mapFinancialReportsToFinancialInformation-CYeTa8E1.js → mapFinancialReportsToFinancialInformation-DoJu-RRw.js} +2 -2
  65. package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
  66. package/dist/{resolveEnvironment-sH8SYGuY.js → resolveEnvironment-rJv_NJF_.js} +3 -3
  67. package/dist/{rules-CbVhdTWA.js → rules-OP83mdq4.js} +13 -13
  68. package/dist/solution-payments-DTAuLSWF.js +14 -0
  69. package/dist/style.css +218 -181
  70. package/dist/styles-CLV89_hH.js +218 -181
  71. package/dist/terminal-1-ewywjFJI.js +18 -0
  72. package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +1 -2
  73. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +4 -8
  74. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +2 -3
  75. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +25 -24
  76. package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +10 -10
  77. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -2
  78. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +0 -306
  79. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
  80. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +9 -0
  81. package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +10 -0
  82. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
  83. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -2
  84. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +5 -3
  85. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -2
  86. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +14 -0
  87. package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +3 -0
  88. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +4 -0
  89. package/dist/types/components/Business/forms/forms.types.d.ts +14 -0
  90. package/dist/types/components/Business/forms/rules.d.ts +26 -8
  91. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -1
  92. package/dist/types/components/Business/mapping/businessDetails/mapOrganizationTypeToCompanyType.d.ts +1 -1
  93. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -3
  94. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -3
  95. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +18 -0
  96. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +5 -0
  97. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +2 -0
  98. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +21 -0
  99. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/validate.d.ts +22 -0
  100. package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -1
  101. package/dist/types/components/Business/utils/companyUtil.d.ts +3 -3
  102. package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +5 -0
  103. package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +5 -0
  104. package/dist/types/components/BusinessLines/tasks/BusinessLinesGettingStarted/BusinessLinesGettingStarted.d.ts +6 -0
  105. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
  106. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1 -306
  107. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +22 -19
  108. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +3 -2
  109. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
  110. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +3 -3
  111. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +5 -5
  112. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
  113. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +1 -1
  114. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +6 -0
  115. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +2 -2
  116. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -2
  117. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
  118. package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +8 -8
  119. package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +18 -18
  120. package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
  121. package/dist/types/components/Individual/forms/Individual/types.d.ts +2 -2
  122. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +3 -2
  123. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
  124. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +2 -2
  125. package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +4 -4
  126. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +3 -1
  127. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -2
  128. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +2 -2
  129. package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
  130. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +3 -3
  131. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +1 -1
  132. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +2 -0
  133. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +7 -0
  134. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
  135. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
  136. package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +4 -4
  137. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
  138. package/dist/types/components/Shared/Introduction/Introduction.d.ts +2 -2
  139. package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +2 -2
  140. package/dist/types/components/Shared/Introduction/constants.d.ts +3 -3
  141. package/dist/types/components/Shared/Introduction/copy.d.ts +6 -5
  142. package/dist/types/components/Shared/Introduction/types.d.ts +11 -11
  143. package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
  144. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  145. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
  146. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +5 -7
  147. package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
  148. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  149. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  150. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
  151. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
  152. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  153. package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
  154. package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
  155. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  156. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +27 -27
  157. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
  158. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
  159. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
  160. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
  161. package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
  162. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  163. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
  164. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  165. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  166. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  167. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  168. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  169. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -3
  170. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +3 -7
  171. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  172. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
  173. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  174. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
  175. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +11 -10
  176. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -0
  177. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
  178. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -4
  179. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -2
  180. package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
  181. package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
  182. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
  183. package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -2
  184. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +3 -3
  185. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -1
  186. package/dist/types/components/Trust/tasks/TrustMembers/CompanyTrustMemberTaskItem.d.ts +1 -1
  187. package/dist/types/components/Trust/tasks/TrustMembers/ExemptSettlorTaskItem.d.ts +1 -1
  188. package/dist/types/components/Trust/tasks/TrustMembers/RegularTrustMemberTaskItem.d.ts +1 -1
  189. package/dist/types/components/Trust/tasks/TrustMembers/RootTrusteeTaskItem.d.ts +1 -1
  190. package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +6 -6
  191. package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +7 -6
  192. package/dist/types/components/Trust/utils/trustMemberRequirements.d.ts +1 -1
  193. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +6 -6
  194. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +5 -5
  195. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
  196. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +2 -2
  197. package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +16 -0
  198. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +14 -0
  199. package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
  200. package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +3 -2
  201. package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
  202. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
  203. package/dist/types/constants/keys.d.ts +2 -0
  204. package/dist/types/context/ExperimentContext/types.d.ts +49 -37
  205. package/dist/types/context/SettingsContext/types.d.ts +24 -24
  206. package/dist/types/core/models/api/company-types-value.d.ts +12 -11
  207. package/dist/types/core/models/api/decision-maker-type.d.ts +7 -6
  208. package/dist/types/core/models/api/entity-type.d.ts +5 -4
  209. package/dist/types/core/models/api/get-scenarios.d.ts +18 -18
  210. package/dist/types/core/models/api/individual.d.ts +1 -0
  211. package/dist/types/core/models/api/legal-arrangement.d.ts +2 -2
  212. package/dist/types/core/models/api/legal-entity-association.d.ts +2 -2
  213. package/dist/types/core/models/api/legal-entity-type.d.ts +8 -7
  214. package/dist/types/core/models/api/trust-member-type.d.ts +8 -8
  215. package/dist/types/core/models/api/trusted-fields-provider.d.ts +5 -4
  216. package/dist/types/core/models/api/unincorporated-partnership.d.ts +6 -6
  217. package/dist/types/core/models/api/verification-error.d.ts +8 -7
  218. package/dist/types/core/models/api/verification-status.d.ts +7 -6
  219. package/dist/types/core/models/api/view-verification-status.d.ts +8 -7
  220. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
  221. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
  222. package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
  223. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
  224. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
  225. package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
  226. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
  227. package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
  228. package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +4 -4
  229. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +7 -6
  230. package/dist/types/hooks/useBusinessSetup.d.ts +11 -10
  231. package/dist/types/hooks/useDataMissingRemediations.d.ts +2 -2
  232. package/dist/types/hooks/useFormComposer.d.ts +1 -1
  233. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -3
  234. package/dist/types/hooks/useLegalEntityType.d.ts +1 -1
  235. package/dist/types/hooks/useMultiForm/types.d.ts +38 -36
  236. package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
  237. package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
  238. package/dist/types/language/Language.d.ts +1 -0
  239. package/dist/types/language/utils.d.ts +11 -1
  240. package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
  241. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
  242. package/dist/types/stores/globalStore/get-task-status.d.ts +2 -2
  243. package/dist/types/stores/globalStore/globalStore.d.ts +7 -7
  244. package/dist/types/stores/globalStore/taskStatus.d.ts +17 -16
  245. package/dist/types/stores/globalStore/taskTypes.d.ts +37 -35
  246. package/dist/types/types/datasets/country-code.d.ts +249 -249
  247. package/dist/types/types/datasets/currency.d.ts +25 -25
  248. package/dist/types/types/datasets/province-code.d.ts +46 -46
  249. package/dist/types/types/datasets/state-code.d.ts +84 -84
  250. package/dist/types/types/errors/entity-problems.d.ts +3 -4
  251. package/dist/types/types/form-rules.d.ts +2 -2
  252. package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
  253. package/dist/types/utils/birthDateUtils.d.ts +3 -3
  254. package/dist/types/utils/decisionMaker.d.ts +4 -3
  255. package/dist/types/utils/decisionMakerRoles.d.ts +4 -3
  256. package/dist/types/utils/entityAssociationUtil.d.ts +4 -5
  257. package/dist/types/utils/entityStatusUtil.d.ts +3 -3
  258. package/dist/types/utils/formUtils.d.ts +2 -2
  259. package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
  260. package/dist/types/utils/getName.d.ts +2 -2
  261. package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
  262. package/dist/types/utils/regex/patternValidators.d.ts +1 -0
  263. package/dist/types/utils/roleMetadata.d.ts +3 -3
  264. package/dist/types/utils/translation.d.ts +40 -0
  265. package/dist/{useMultiForm-DEOL8O6Q.js → useMultiForm-ChxUZ4e7.js} +10 -5
  266. package/dist/{useOnboardingStatus-BSZeiaAC.js → useOnboardingStatus-1BQlEPEi.js} +2 -2
  267. package/dist/{useTermsOfServiceStatus-B9zuE6yV.js → useTermsOfServiceStatus-BaVCmUdo.js} +2 -2
  268. package/dist/{useUpdateLegalEntity-Bs2tKEPC.js → useUpdateLegalEntity-LE_Kt3am.js} +2 -2
  269. package/dist/{utils-WopSF2zY.js → utils-DmcbDJEd.js} +17 -17
  270. package/dist/{validate-D40HSgPc.js → validate-B2VmmEPC.js} +2 -2
  271. package/dist/{validate-D2R8_9ew.js → validate-D66zPhDG.js} +2 -2
  272. package/dist/view-verification-status-VFcBydkR.js +21 -0
  273. package/package.json +5 -30
  274. package/dist/DecisionMakers-DCU9mFe8.js +0 -217
  275. package/dist/LandingLayout-DIrahoMq.js +0 -139
  276. package/dist/ManagePCIComponent-sKP7Mgeo.js +0 -33
  277. package/dist/RootBusinessDetailsPage-CA5r2xq3.js +0 -42
  278. package/dist/_plugin-vue_export-helper-CgYpM5kA.js +0 -19
  279. package/dist/adyen-manage-pci.js +0 -48
  280. package/dist/adyen-sign-pci.js +0 -62
  281. package/dist/adyen-terms-of-service.vue_vue_type_script_lang-BD4hndWg.js +0 -42
  282. package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-BE-ro1iH.js +0 -53
  283. package/dist/css-Di2ysu56.js +0 -24
  284. package/dist/json-x8T3RzUR.js +0 -31
  285. package/dist/plaintext-D3Ww_aF9.js +0 -17
  286. package/dist/preact/adyen-individual.js +0 -15
  287. package/dist/preact/adyen-manage-individual.js +0 -15
  288. package/dist/preact/adyen-terms-of-service.js +0 -16
  289. package/dist/preact/adyen-transfer-instrument.js +0 -16
  290. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationDisclaimer/IdVerificationDisclaimer.d.ts +0 -1
  291. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationHeader/IdVerificationHeader.d.ts +0 -1
  292. package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +0 -3
  293. package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +0 -3
  294. package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +0 -12
  295. package/dist/types/embeds/manage-pci/adyen-manage-pci.d.ts +0 -1
  296. package/dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts +0 -39
  297. package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -15
  298. package/dist/types/embeds/sign-pci/adyen-sign-pci.d.ts +0 -1
  299. package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +0 -43
  300. package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +0 -3
  301. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +0 -3
  302. package/dist/useSalesChannelsSettings-CuQ0ULoa.js +0 -51
  303. package/dist/view-verification-status-DTkA8PtO.js +0 -20
  304. package/dist/vue/adyen-individual.js +0 -53
  305. package/dist/vue/adyen-manage-individual.js +0 -56
  306. package/dist/vue/adyen-terms-of-service.js +0 -28
  307. package/dist/vue/adyen-transfer-instrument.js +0 -30
  308. package/dist/yaml-BMoCIv2z.js +0 -22
@@ -2,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] = "31bf54f1-ffbc-4b89-b4a6-73180ad34ff6", e._sentryDebugIdIdentifier = "sentry-dbid-31bf54f1-ffbc-4b89-b4a6-73180ad34ff6");
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-Bs2tKEPC.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-D6PzfyGo.js";
14
- import { F as FormContextProvider, a as FormFlow } from "./FormFlow-DJAJpY63.js";
15
- import { u as useMultiForm } from "./useMultiForm-DEOL8O6Q.js";
16
- import { F as FormEndState } from "./FormEndState-n1UQXu_s.js";
17
- import { l as localizeDateString } from "./localizeDateString-BUxfnxIU.js";
18
- import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-CYeTa8E1.js";
19
- import { b as businessFinancingMultiformRules } from "./validate-D40HSgPc.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
  };
@@ -316,6 +318,9 @@ const getBusinessFinancingRequiredFields = (country, data) => {
316
318
  }
317
319
  return requiredFields;
318
320
  };
321
+ const getAddressCountryForParentCompany = (parentCompany, leAddress) => {
322
+ return parentCompany?.sameAddressAsRootEntity && leAddress ? leAddress?.country : parentCompany?.registrationAddress?.country;
323
+ };
319
324
  const customLabels = {
320
325
  company: {
321
326
  legalForm: "businessStructure",
@@ -569,12 +574,13 @@ function BusinessFinancingBusinessInformation(props) {
569
574
  sectionHeading,
570
575
  hideSectionHeading
571
576
  } = props;
577
+ const { t } = useTranslation();
572
578
  const { i18n } = useI18nContext();
573
- const formUtils = createFormUtils(props, i18n);
579
+ const formUtils = createFormUtils(props, t);
574
580
  if (!handleFieldChange) {
575
581
  return;
576
582
  }
577
- const isMainCompany = targetPage === BusinessFinancingPagesEnums.COMPANY_PAGE;
583
+ const isMainCompany = targetPage === BusinessFinancingPages.COMPANY_PAGE;
578
584
  return /* @__PURE__ */ jsxs(Fragment, { children: [
579
585
  !hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: i18n.get(sectionHeading || "yourBusinessInformation") }),
580
586
  /* @__PURE__ */ jsx(
@@ -683,7 +689,8 @@ const financialInformationFields = [
683
689
  function BusinessFinancingFinancialInformation(props) {
684
690
  const { data, valid, errors, country, sectionHeading, handleFieldChange, fieldValidationErrors } = props;
685
691
  const { i18n } = useI18nContext();
686
- const formUtils = createFormUtils(props, i18n);
692
+ const { t, i18n: i18next } = useTranslation();
693
+ const formUtils = createFormUtils(props, t);
687
694
  const currenciesForCurrCountry = useMemo(() => currencyByCountry[country] ?? [], [country]);
688
695
  if (!handleFieldChange) {
689
696
  return;
@@ -693,6 +700,9 @@ function BusinessFinancingFinancialInformation(props) {
693
700
  const isFinancialDataValid = valid;
694
701
  const [firstCurrency] = currenciesForCurrCountry;
695
702
  const defaultCurrency = firstCurrency ?? "EUR";
703
+ if (currenciesForCurrCountry.length === 1 && data?.currency !== firstCurrency) {
704
+ handleFieldChange("currency")(firstCurrency);
705
+ }
696
706
  return /* @__PURE__ */ jsxs("section", { children: [
697
707
  /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: i18n.get(sectionHeading || "businessFinancials") }),
698
708
  /* @__PURE__ */ jsx(
@@ -719,7 +729,7 @@ function BusinessFinancingFinancialInformation(props) {
719
729
  )
720
730
  }
721
731
  ),
722
- /* @__PURE__ */ jsx(
732
+ currenciesForCurrCountry?.length > 1 && /* @__PURE__ */ jsx(
723
733
  Currency,
724
734
  {
725
735
  country,
@@ -743,7 +753,7 @@ function BusinessFinancingFinancialInformation(props) {
743
753
  InputCurrency,
744
754
  {
745
755
  ...childProps,
746
- locale: i18n.locale,
756
+ locale: i18next.language,
747
757
  currency: data?.currency ?? defaultCurrency,
748
758
  amount: data?.netAssets ? Number(data?.netAssets) : void 0,
749
759
  onAmountChanged: handleFieldChange("netAssets")
@@ -763,7 +773,7 @@ function BusinessFinancingFinancialInformation(props) {
763
773
  {
764
774
  ...childProps,
765
775
  name: "annualTurnover",
766
- locale: i18n.locale,
776
+ locale: i18next.language,
767
777
  currency: data?.currency ?? defaultCurrency,
768
778
  amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
769
779
  onAmountChanged: handleFieldChange("annualTurnover")
@@ -808,8 +818,9 @@ const legalInformationFields = [
808
818
  ];
809
819
  function BusinessFinancingLegalInformation(props) {
810
820
  const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
821
+ const { t } = useTranslation();
811
822
  const { i18n } = useI18nContext();
812
- const formUtils = createFormUtils(props, i18n);
823
+ const formUtils = createFormUtils(props, t);
813
824
  if (!handleFieldChange) {
814
825
  return;
815
826
  }
@@ -883,8 +894,9 @@ const ownershipStructureFields = [
883
894
  ];
884
895
  function BusinessFinancingOwnershipStructure(props) {
885
896
  const { data, valid, errors = {}, legalEntity, fieldValidationErrors, handleFieldChange } = props;
897
+ const { t } = useTranslation();
886
898
  const { i18n } = useI18nContext();
887
- const formUtils = createFormUtils(props, i18n);
899
+ const formUtils = createFormUtils(props, t);
888
900
  if (!handleFieldChange) {
889
901
  return;
890
902
  }
@@ -951,17 +963,22 @@ function BusinessFinancingOwnershipStructure(props) {
951
963
  ] });
952
964
  }
953
965
  function AdditionalFieldsForBusinessFinancingCompany(props) {
966
+ const { t } = useTranslation();
954
967
  const { i18n } = useI18nContext();
955
968
  const {
956
- form: { handleChangeFor, data }
969
+ form: { handleChangeFor, data, setValid }
957
970
  } = useFormContext();
958
- const { country, formVerificationErrors, legalEntity } = props;
959
- const formUtils = createFormUtils(props, i18n);
971
+ const { country, formVerificationErrors, legalEntity, fieldValidationErrors } = props;
972
+ const formUtils = createFormUtils(props, t);
960
973
  const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "company", mode);
961
974
  const ownershipStructureProps = getFieldProps(props, ownershipStructureFields);
962
975
  const businessInformationProps = getFieldProps(props, businessInformationFields);
963
976
  const financialInformationProps = getFieldProps(props, financialInformationFields);
964
977
  const legalInformationProps = getFieldProps(props, legalInformationFields);
978
+ const currenciesForCurrCountry = currencyByCountry[country] ?? [];
979
+ if (currenciesForCurrCountry?.length === 1) {
980
+ setValid("currency", true, "company");
981
+ }
965
982
  return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
966
983
  /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("additionalInformationForBusinessFinancing") }),
967
984
  /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("toProcessYourFundsWeNeedMoreInformation") }),
@@ -969,7 +986,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
969
986
  ErrorPanel,
970
987
  {
971
988
  verificationErrors: formVerificationErrors,
972
- validationErrors: props?.fieldValidationErrors,
989
+ validationErrors: fieldValidationErrors,
973
990
  formUtils,
974
991
  id: "ariaErrorField"
975
992
  }
@@ -980,7 +997,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
980
997
  ...businessInformationProps,
981
998
  handleFieldChange: handleChange,
982
999
  country,
983
- targetPage: BusinessFinancingPagesEnums.COMPANY_PAGE,
1000
+ targetPage: BusinessFinancingPages.COMPANY_PAGE,
984
1001
  sectionHeading: "yourBusinessInformation",
985
1002
  data: formUtils.getFieldData(data?.company ?? {}, businessInformationFields)
986
1003
  }
@@ -991,7 +1008,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
991
1008
  ...financialInformationProps,
992
1009
  handleFieldChange: handleChange,
993
1010
  country,
994
- targetPage: BusinessFinancingPagesEnums.COMPANY_PAGE,
1011
+ targetPage: BusinessFinancingPages.COMPANY_PAGE,
995
1012
  data: formUtils.getFieldData(data?.company ?? {}, financialInformationFields)
996
1013
  }
997
1014
  ),
@@ -1001,7 +1018,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
1001
1018
  ...legalInformationProps,
1002
1019
  country,
1003
1020
  handleFieldChange: handleChange,
1004
- targetPage: BusinessFinancingPagesEnums.COMPANY_PAGE,
1021
+ targetPage: BusinessFinancingPages.COMPANY_PAGE,
1005
1022
  sectionHeading: "legalInformation",
1006
1023
  data: formUtils.getFieldData(data?.company ?? {}, legalInformationFields)
1007
1024
  }
@@ -1022,8 +1039,9 @@ const basicInformationFields = [
1022
1039
  ];
1023
1040
  function BusinessFinancingBasicCompanyInformation(props) {
1024
1041
  const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
1042
+ const { t } = useTranslation();
1025
1043
  const { i18n } = useI18nContext();
1026
- const formUtils = createFormUtils(props, i18n);
1044
+ const formUtils = createFormUtils(props, t);
1027
1045
  if (!handleFieldChange) {
1028
1046
  return;
1029
1047
  }
@@ -1074,8 +1092,9 @@ function BusinessFinancingRegisteredAddress(props) {
1074
1092
  legalEntity,
1075
1093
  sectionHeading
1076
1094
  } = props;
1095
+ const { t } = useTranslation();
1077
1096
  const { i18n } = useI18nContext();
1078
- const formUtils = createFormUtils(props, i18n);
1097
+ const formUtils = createFormUtils(props, t);
1079
1098
  const addressCountry = data?.registrationAddress?.country;
1080
1099
  const datasetUtils = datasetUtilities(i18n.locale);
1081
1100
  const addressSchema = useMemo(() => {
@@ -1129,6 +1148,7 @@ function BusinessFinancingRegisteredAddress(props) {
1129
1148
  " ",
1130
1149
  legalEntity.organization.registeredAddress.postalCode ? `, ${legalEntity.organization.registeredAddress.postalCode}` : ""
1131
1150
  ] }),
1151
+ /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.stateOrProvince }),
1132
1152
  /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.country ? datasetUtils.getCountryName(legalEntity.organization.registeredAddress.country) : "" })
1133
1153
  ] }) : /* @__PURE__ */ jsx(
1134
1154
  Address,
@@ -1176,12 +1196,13 @@ function BusinessFinancingRegisteredAddress(props) {
1176
1196
  }
1177
1197
  const parentCompanyFormId$1 = businessFinancingForms.parentCompany.formId;
1178
1198
  function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1199
+ const { t } = useTranslation();
1179
1200
  const { i18n } = useI18nContext();
1180
1201
  const {
1181
1202
  form: { handleChangeFor, data, setValid }
1182
1203
  } = useFormContext();
1183
1204
  const { country, formVerificationErrors, fieldValidationErrors, legalEntity } = props;
1184
- const formUtils = createFormUtils(props, i18n);
1205
+ const formUtils = createFormUtils(props, t);
1185
1206
  const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "parentCompany", mode);
1186
1207
  setValid("sameAddressAsRootEntity", true, "parentCompany");
1187
1208
  const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
@@ -1189,6 +1210,14 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1189
1210
  const businessInformationProps = getFieldProps(props, businessInformationFields);
1190
1211
  const financialInformationProps = getFieldProps(props, financialInformationFields);
1191
1212
  const legalInformationProps = getFieldProps(props, legalInformationFields);
1213
+ const addressCountry = getAddressCountryForParentCompany(
1214
+ data?.parentCompany,
1215
+ legalEntity?.organization?.registeredAddress
1216
+ );
1217
+ const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
1218
+ if (currenciesForCurrCountry?.length === 1) {
1219
+ setValid("currency", true, "parentCompany");
1220
+ }
1192
1221
  return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-parent-company", children: [
1193
1222
  /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("parentCompanyInformation") }),
1194
1223
  /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("inThePreviousStepOwnedByAParentCompany") }),
@@ -1210,17 +1239,6 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1210
1239
  data: formUtils.getFieldData(data?.parentCompany ?? {}, basicInformationFields)
1211
1240
  }
1212
1241
  ),
1213
- /* @__PURE__ */ jsx(
1214
- BusinessFinancingBusinessInformation,
1215
- {
1216
- ...businessInformationProps,
1217
- hideSectionHeading: true,
1218
- country: data?.parentCompany?.registrationAddress?.country ?? country,
1219
- targetPage: BusinessFinancingPagesEnums.PARENT_COMPANY_PAGE,
1220
- handleFieldChange: handleChange,
1221
- data: formUtils.getFieldData(data?.parentCompany ?? {}, businessInformationFields)
1222
- }
1223
- ),
1224
1242
  /* @__PURE__ */ jsx(
1225
1243
  BusinessFinancingRegisteredAddress,
1226
1244
  {
@@ -1233,12 +1251,23 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1233
1251
  data: formUtils.getFieldData(data?.parentCompany ?? {}, registeredAddressFields)
1234
1252
  }
1235
1253
  ),
1236
- isEeaCountry(data?.parentCompany?.registrationAddress?.country) && /* @__PURE__ */ jsx(
1254
+ /* @__PURE__ */ jsx(
1255
+ BusinessFinancingBusinessInformation,
1256
+ {
1257
+ ...businessInformationProps,
1258
+ hideSectionHeading: true,
1259
+ country: addressCountry ?? country,
1260
+ targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
1261
+ handleFieldChange: handleChange,
1262
+ data: formUtils.getFieldData(data?.parentCompany ?? {}, businessInformationFields)
1263
+ }
1264
+ ),
1265
+ isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(
1237
1266
  BusinessFinancingFinancialInformation,
1238
1267
  {
1239
1268
  ...financialInformationProps,
1240
- country: data?.parentCompany?.registrationAddress?.country ?? country,
1241
- targetPage: BusinessFinancingPagesEnums.PARENT_COMPANY_PAGE,
1269
+ country: addressCountry ?? country,
1270
+ targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
1242
1271
  handleFieldChange: handleChange,
1243
1272
  data: formUtils.getFieldData(data?.parentCompany ?? {}, financialInformationFields)
1244
1273
  }
@@ -1247,8 +1276,8 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1247
1276
  BusinessFinancingLegalInformation,
1248
1277
  {
1249
1278
  ...legalInformationProps,
1250
- country: data?.parentCompany?.registrationAddress?.country ?? country,
1251
- targetPage: BusinessFinancingPagesEnums.PARENT_COMPANY_PAGE,
1279
+ country: addressCountry ?? country,
1280
+ targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
1252
1281
  sectionHeading: "legalInformation",
1253
1282
  handleFieldChange: handleChange,
1254
1283
  data: formUtils.getFieldData(data?.parentCompany ?? {}, legalInformationFields)
@@ -1260,7 +1289,8 @@ const ultimateParentCompanyFormId$1 = businessFinancingForms.ultimateParentCompa
1260
1289
  function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1261
1290
  const { formVerificationErrors, country, fieldValidationErrors, legalEntity } = props;
1262
1291
  const { i18n } = useI18nContext();
1263
- const formUtils = createFormUtils(props, i18n);
1292
+ const { t } = useTranslation();
1293
+ const formUtils = createFormUtils(props, t);
1264
1294
  const {
1265
1295
  form: { handleChangeFor, data, setValid }
1266
1296
  } = useFormContext();
@@ -1271,6 +1301,14 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1271
1301
  const businessInformationProps = getFieldProps(props, businessInformationFields);
1272
1302
  const financialInformationProps = getFieldProps(props, financialInformationFields);
1273
1303
  const legalInformationProps = getFieldProps(props, legalInformationFields);
1304
+ const addressCountry = getAddressCountryForParentCompany(
1305
+ data?.ultimateParentCompany,
1306
+ legalEntity?.organization?.registeredAddress
1307
+ );
1308
+ const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
1309
+ if (currenciesForCurrCountry?.length === 1) {
1310
+ setValid("currency", true, "ultimateParentCompany");
1311
+ }
1274
1312
  return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-ultimate-parent-company", children: [
1275
1313
  /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("ultimateParentCompanyInformation") }),
1276
1314
  /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("inThePreviousStepOwnedByAnUltimateParentCompany") }),
@@ -1292,17 +1330,6 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1292
1330
  data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, basicInformationFields)
1293
1331
  }
1294
1332
  ),
1295
- /* @__PURE__ */ jsx(
1296
- BusinessFinancingBusinessInformation,
1297
- {
1298
- ...businessInformationProps,
1299
- hideSectionHeading: true,
1300
- country: data?.ultimateParentCompany?.registrationAddress?.country ?? country,
1301
- targetPage: BusinessFinancingPagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
1302
- handleFieldChange: handleChange,
1303
- data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, businessInformationFields)
1304
- }
1305
- ),
1306
1333
  /* @__PURE__ */ jsx(
1307
1334
  BusinessFinancingRegisteredAddress,
1308
1335
  {
@@ -1315,12 +1342,23 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1315
1342
  legalEntity
1316
1343
  }
1317
1344
  ),
1318
- isEeaCountry(data?.ultimateParentCompany?.registrationAddress?.country) && /* @__PURE__ */ jsx(
1345
+ /* @__PURE__ */ jsx(
1346
+ BusinessFinancingBusinessInformation,
1347
+ {
1348
+ ...businessInformationProps,
1349
+ hideSectionHeading: true,
1350
+ country: addressCountry ?? country,
1351
+ targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
1352
+ handleFieldChange: handleChange,
1353
+ data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, businessInformationFields)
1354
+ }
1355
+ ),
1356
+ isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(
1319
1357
  BusinessFinancingFinancialInformation,
1320
1358
  {
1321
1359
  ...financialInformationProps,
1322
- country: data?.ultimateParentCompany?.registrationAddress?.country ?? country,
1323
- targetPage: BusinessFinancingPagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
1360
+ country: addressCountry ?? country,
1361
+ targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
1324
1362
  handleFieldChange: handleChange,
1325
1363
  data: formUtils.getFieldData(
1326
1364
  data?.ultimateParentCompany ?? {},
@@ -1332,9 +1370,9 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1332
1370
  BusinessFinancingLegalInformation,
1333
1371
  {
1334
1372
  ...legalInformationProps,
1335
- country: data?.ultimateParentCompany?.registrationAddress?.country ?? country,
1373
+ country: addressCountry ?? country,
1336
1374
  sectionHeading: "legalInformation",
1337
- targetPage: BusinessFinancingPagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
1375
+ targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
1338
1376
  handleFieldChange: handleChange,
1339
1377
  data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, legalInformationFields)
1340
1378
  }
@@ -1440,17 +1478,17 @@ function BusinessFinancingDropin(props) {
1440
1478
  return;
1441
1479
  }
1442
1480
  const companyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
1443
- BusinessFinancingIndex.COMPANY,
1481
+ BusinessFinancingIndices.COMPANY,
1444
1482
  umfData,
1445
1483
  rootLegalEntity
1446
1484
  );
1447
1485
  const parentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
1448
- BusinessFinancingIndex.PARENT_COMPANY,
1486
+ BusinessFinancingIndices.PARENT_COMPANY,
1449
1487
  umfData,
1450
1488
  rootLegalEntity
1451
1489
  );
1452
1490
  const ultimateParentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
1453
- BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY,
1491
+ BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
1454
1492
  umfData,
1455
1493
  rootLegalEntity
1456
1494
  );
@@ -1464,7 +1502,7 @@ function BusinessFinancingDropin(props) {
1464
1502
  const promises = [];
1465
1503
  if (parentCompanyBusinessFinancingDetails) {
1466
1504
  const parentCompanyPromise = handleBusinessFinancingFormSubmission(
1467
- BusinessFinancingIndex.PARENT_COMPANY,
1505
+ BusinessFinancingIndices.PARENT_COMPANY,
1468
1506
  parentCompanyBusinessFinancingDetails,
1469
1507
  createLegalEntity,
1470
1508
  updateLegalEntity,
@@ -1474,7 +1512,7 @@ function BusinessFinancingDropin(props) {
1474
1512
  }
1475
1513
  if (ultimateParentCompanyBusinessFinancingDetails) {
1476
1514
  const ultimateParentCompanyPromise = handleBusinessFinancingFormSubmission(
1477
- BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY,
1515
+ BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
1478
1516
  ultimateParentCompanyBusinessFinancingDetails,
1479
1517
  createLegalEntity,
1480
1518
  updateLegalEntity,
@@ -1489,30 +1527,30 @@ function BusinessFinancingDropin(props) {
1489
1527
  const businessFinancingEntityAssociations = [
1490
1528
  ...previousEntityAssociations
1491
1529
  ];
1492
- const entitiesToTrack = [BusinessFinancingIndex.COMPANY];
1530
+ const entitiesToTrack = [BusinessFinancingIndices.COMPANY];
1493
1531
  results.forEach((result, index) => {
1494
- const businessFinancingType = index === 0 ? BusinessFinancingIndex.PARENT_COMPANY : BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY;
1532
+ const businessFinancingType = index === 0 ? BusinessFinancingIndices.PARENT_COMPANY : BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY;
1495
1533
  if (result.status === "fulfilled") {
1496
1534
  const response = result.value;
1497
- if (businessFinancingType === BusinessFinancingIndex.PARENT_COMPANY) {
1535
+ if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
1498
1536
  businessFinancingEntityAssociations.push({
1499
1537
  type: "immediateParentCompany",
1500
1538
  legalEntityId: response.id,
1501
1539
  associatorId: companyBusinessFinancingDetails.id
1502
1540
  });
1503
- entitiesToTrack.push(BusinessFinancingIndex.PARENT_COMPANY);
1504
- } else if (businessFinancingType === BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY) {
1541
+ entitiesToTrack.push(BusinessFinancingIndices.PARENT_COMPANY);
1542
+ } else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
1505
1543
  businessFinancingEntityAssociations.push({
1506
1544
  type: "ultimateParentCompany",
1507
1545
  legalEntityId: response.id,
1508
1546
  associatorId: companyBusinessFinancingDetails.id
1509
1547
  });
1510
- entitiesToTrack.push(BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY);
1548
+ entitiesToTrack.push(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY);
1511
1549
  }
1512
1550
  } else {
1513
- if (businessFinancingType === BusinessFinancingIndex.PARENT_COMPANY) {
1551
+ if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
1514
1552
  parentCompanyFailed = true;
1515
- } else if (businessFinancingType === BusinessFinancingIndex.ULTIMATE_PARENT_COMPANY) {
1553
+ } else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
1516
1554
  ultimateParentCompanyFailed = true;
1517
1555
  }
1518
1556
  handleSubmissionError(result.reason, businessFinancingType);
@@ -1532,7 +1570,7 @@ function BusinessFinancingDropin(props) {
1532
1570
  };
1533
1571
  try {
1534
1572
  await handleBusinessFinancingFormSubmission(
1535
- BusinessFinancingIndex.COMPANY,
1573
+ BusinessFinancingIndices.COMPANY,
1536
1574
  companyBusinessFinancingDetails,
1537
1575
  createLegalEntity,
1538
1576
  updateLegalEntity,
@@ -1551,13 +1589,13 @@ function BusinessFinancingDropin(props) {
1551
1589
  }
1552
1590
  } catch (e) {
1553
1591
  showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
1554
- handleSubmissionError(e, BusinessFinancingIndex.COMPANY);
1592
+ handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
1555
1593
  }
1556
1594
  setProblems({});
1557
1595
  }
1558
1596
  } catch (e) {
1559
1597
  if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
1560
- handleSubmissionError(e, BusinessFinancingIndex.COMPANY);
1598
+ handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
1561
1599
  }
1562
1600
  showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
1563
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-D6PzfyGo.js";
12
- import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-B4_rfH9-.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