@adyen/kyc-components 3.92.1 → 3.93.0-beta.2

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 (411) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-Cc5TwxYd.js → AcceptTermsOfServiceComponent-B4fXz2Mj.js} +17 -16
  2. package/dist/{Accordion-CAqKHAj9.js → Accordion-B9ASz7oD.js} +2 -2
  3. package/dist/{AccountSetupRejected-C9FCwunF.js → AccountSetupRejected-BsYzF0XW.js} +3 -3
  4. package/dist/{ActionBar-C1rqfjkV.js → ActionBar-Gbat0LF-.js} +1 -1
  5. package/dist/{Address-C8Kqz-2b.js → Address-Bu9zOvAM.js} +15 -15
  6. package/dist/{Alert-E_a_csSs.js → Alert-0L9Okc_j.js} +3 -3
  7. package/dist/{Avatar-wQ0mYsYL.js → Avatar-C2jFofpv.js} +2 -2
  8. package/dist/{BusinessFinancingComponent-ReMZLbjX.js → BusinessFinancingComponent-C12Xnx_y.js} +5 -5
  9. package/dist/{BusinessFinancingDropin-DtSERjsb.js → BusinessFinancingDropin-BYwivstT.js} +29 -28
  10. package/dist/{BusinessFinancingPage-DqSCsrPJ.js → BusinessFinancingPage-CUeLDq8J.js} +4 -4
  11. package/dist/{BusinessTypeSelectionPage-zzDSHomI.js → BusinessTypeSelectionPage-BQ1yBBhx.js} +9 -9
  12. package/dist/Card-OQuFzmxm.js +90 -0
  13. package/dist/{Checkbox-Bp4HrJKI.js → Checkbox-DBN0bHrR.js} +2 -2
  14. package/dist/{Confirm-Ba5lqFqd.js → Confirm-DvCDgyAD.js} +3 -3
  15. package/dist/{ConstitutionalDocument-DD5CB7gM.js → ConstitutionalDocument-BXepv2HE.js} +18 -18
  16. package/dist/{validate-CIuB6JUT.js → ContactDetails-D84L456z.js} +21 -20
  17. package/dist/{ContextGuidance-aACh9e6u.js → ContextGuidance-CyvagjSm.js} +3 -3
  18. package/dist/{CountryField-B0daMnwW.js → CountryField-DelOJ_90.js} +4 -4
  19. package/dist/{CreateIndividualComponent-pLTW4M3J.js → CreateIndividualComponent-B56tad3f.js} +6 -12
  20. package/dist/{CreateTransferInstrumentComponent-DlSD28ga.js → CreateTransferInstrumentComponent-DAIYbzea.js} +4 -4
  21. package/dist/{Currency-DXgu9MoR.js → Currency-DARtu8dS.js} +11 -8
  22. package/dist/{CustomerSupport-eNBxns8l.js → CustomerSupport-HpsRjJyl.js} +12 -11
  23. package/dist/{DebugModal-jvulkSEe.js → DebugModal-DEYa0E-D.js} +12 -10
  24. package/dist/{DecisionMakerDetailsPage-IV32QvAq.js → DecisionMakerDetailsPage-CmvZWgoB.js} +12 -18
  25. package/dist/{DecisionMakers-CNxYaQOO.js → DecisionMakers-eOsvlawr.js} +21 -22
  26. package/dist/{Dropzone-CJTj99Jm.js → Dropzone-BgrGUcIm.js} +16 -10
  27. package/dist/{EmbeddedStatus-BytQYrC_.js → EmbeddedStatus-CGIXkUXu.js} +3 -3
  28. package/dist/{EndStateLayout-DlvjAj-7.js → EndStateLayout-DhaJTPGG.js} +2 -2
  29. package/dist/EntityAssociation-oAuDZDjG.js +166 -0
  30. package/dist/{EntityGuidanceStatus-D9aXAd7N.js → EntityGuidanceStatus-BfJcqJTt.js} +3 -3
  31. package/dist/{ErrorPanel-DNtK56tD.js → ErrorPanel-CQ5mK5uz.js} +3 -3
  32. package/dist/{Field-BEoeMy3u.js → Field-QQ5BBCkn.js} +2 -3
  33. package/dist/{FormNavigation-Ci1LhKvo.js → FormNavigation-Cl5fnGKp.js} +3 -3
  34. package/dist/{FormWrapper-BCkcULLO.js → FormWrapper-BXCADDZ_.js} +9 -9
  35. package/dist/{Header-87H731cQ.js → Header-DVxe8YCk.js} +2 -2
  36. package/dist/{Image-Dv-RB-a6.js → Image-D2r8auP6.js} +4 -9
  37. package/dist/{rules-CovTg5rc.js → Individual.rules-nvOffGHU.js} +165 -117
  38. package/dist/{IndividualOnfidoDropin-HK_0jjJH.js → IndividualDropin-Ou29J7Dx.js} +1188 -3959
  39. package/dist/{InputDate-BcSMepXz.js → InputDate-DplEveci.js} +1 -1
  40. package/dist/{InputText-D0zIJLdp.js → InputText-V4X24bPM.js} +2 -2
  41. package/dist/{Introduction-D_Zv9G9d.js → Introduction-kVYYqDhe.js} +4 -4
  42. package/dist/{JpAddress-C0Q47X_G.js → JpAddress-BKT0w3jl.js} +11 -10
  43. package/dist/{LandingLayout-oK1JT5Lv.js → LandingLayout-DZt1EtCP.js} +2 -2
  44. package/dist/{LegalRepresentativeDetailsPage-BrBQg06_.js → LegalRepresentativeDetailsPage-BuOPrCAO.js} +6 -11
  45. package/dist/{Link-BTTClZw-.js → Link-s00fWIPD.js} +2 -2
  46. package/dist/{ListItem-BJYQ6BfN.js → ListItem-BOjfMtNh.js} +3 -3
  47. package/dist/{LoaderWrapper-Dl2oV2v2.js → LoaderWrapper-lbUTZxip.js} +1 -1
  48. package/dist/ManageIndividualComponent-C80dv903.js +46 -0
  49. package/dist/{ManageTermsOfServiceComponent-Qpzy5iZg.js → ManageTermsOfServiceComponent-8sW0ubtp.js} +4 -4
  50. package/dist/{ManageTransferInstrumentComponent-CvTD7JqX.js → ManageTransferInstrumentComponent-Djr3hDnm.js} +15 -14
  51. package/dist/{MaskedInput-Bet0abik.js → MaskedInput-Dtui0pFL.js} +17 -9
  52. package/dist/{MaybeModal-Bk3WmK24.js → MaybeModal-DAmEe4LX.js} +2 -2
  53. package/dist/{Modal-1Hv5tfNy.js → Modal-DjqZRXyy.js} +5 -5
  54. package/dist/{makeSelectItemForRole-B1DAxBZ_.js → Name-2lTBQb7g.js} +5 -57
  55. package/dist/{OnboardingDropinComponent-tQW1hXKP.js → OnboardingDropinComponent-Druuv3sE.js} +156 -125
  56. package/dist/{PayoutDetailsDropin-BEoP-NR0.js → PayoutDetailsDropin-B7LtRa1B.js} +91 -87
  57. package/dist/{RadioGroup-Bg_8BEDn.js → RadioGroup-DUYNpTgM.js} +7 -5
  58. package/dist/{RadioGroupCard-NRR-OqqG.js → RadioGroupCard-pMlnbEEB.js} +5 -3
  59. package/dist/{Review-DbX6GFkR.js → Review-_FUu7r2a.js} +8 -7
  60. package/dist/{RootBusinessDetailsPage-BWewaAOg.js → RootBusinessDetailsPage-yrq_AuhE.js} +9 -8
  61. package/dist/{RootBusinessLinesPage-CJ9jECx0.js → RootBusinessLinesPage-Cl18f4sM.js} +82 -55
  62. package/dist/{RootIndividualDetailsPage-CvQ2742R.js → RootIndividualDetailsPage-DCBlFXBW.js} +8 -18
  63. package/dist/{Select-DglmHz2C.js → Select-mBoYJnAZ.js} +16 -8
  64. package/dist/{SignPCIComponent-C6vCs_hW.js → SignPCIComponent-Kf3AvaVB.js} +13 -12
  65. package/dist/{SingpassSelection-Dv7obY3Y.js → SingpassSelection-CfWMbH3h.js} +6 -6
  66. package/dist/{SoleProprietorshipPage-BBaiVx9A.js → SoleProprietorshipPage-5Zy5JrB-.js} +5 -4
  67. package/dist/{SourceOfFundsPage-y4UhFduk.js → SourceOfFundsPage-CzUTeF1S.js} +195 -431
  68. package/dist/{StepProgressIndicator-zp8q1OzD.js → StepProgressIndicator-BE9LWSk0.js} +2 -2
  69. package/dist/{StoreProvider-BY1HQxMn.js → StoreProvider-D5FOVv9p.js} +170 -3243
  70. package/dist/{Summary-Dt4LcwGJ.js → Summary-v4P9Y5kQ.js} +6 -6
  71. package/dist/{TaskVerificationStatus-D7Yyt06M.js → TaskVerificationStatus-5hk86s25.js} +2 -2
  72. package/dist/{TaxInformationField-jCqBsFve.js → TaxInformationField-AcI4laLZ.js} +1469 -1475
  73. package/dist/{TaxReportingDropin-PYjxhlen.js → TaxReportingDropin-ZzpWS0S-.js} +35 -37
  74. package/dist/{TextArea-DaEM1LmR.js → TextArea-DeNjm7Gm.js} +2 -2
  75. package/dist/{TileGroup-B9NP0xL_.js → TileGroup-CZWfBoyM.js} +4 -4
  76. package/dist/{TrustDetailsPage-CcSVv1MP.js → TrustDetailsPage--gTP7acy.js} +41 -35
  77. package/dist/{TrustMemberCompanyPage-f7sbolBK.js → TrustMemberCompanyPage-Bmqb5sgh.js} +6 -5
  78. package/dist/{TrustMemberIndividualPage-BlkZ5WtP.js → TrustMemberIndividualPage-BJ7a5vEO.js} +6 -11
  79. package/dist/{TrustMemberRoleAndTypePage-DCsR7Tdy.js → TrustMemberRoleAndTypePage-eGQ7qNwo.js} +78 -22
  80. package/dist/{TrustMembersOverview-BhDqS5F-.js → TrustMembersOverview-C9VGJyIN.js} +12 -12
  81. package/dist/{UnincorporatedPartnershipIndividualPage-BbprnGI_.js → UnincorporatedPartnershipIndividualPage-DY8NWGLK.js} +6 -11
  82. package/dist/{UnincorporatedPartnershipMemberCompanyPage-BxpxNdg6.js → UnincorporatedPartnershipMemberCompanyPage-CxGb07CR.js} +6 -5
  83. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-3xUvx9l-.js → UnincorporatedPartnershipMemberRoleAndTypePage-CP88Xvoy.js} +12 -11
  84. package/dist/{UnincorporatedPartnershipMembersOverview-BpZbRr_e.js → UnincorporatedPartnershipMembersOverview-CtJIWCek.js} +9 -9
  85. package/dist/{VerificationErrorAlert-7DNyS4C_.js → VerificationErrorAlert-DAmWLDTw.js} +5 -4
  86. package/dist/{ViewVerificationStatusComponent-urVZF63U.js → ViewVerificationStatusComponent-BKvZhB3Q.js} +5 -4
  87. package/dist/adyen-business-financing.js +6 -3
  88. package/dist/adyen-individual-configuration.js +6 -3
  89. package/dist/adyen-individual-status.js +2 -2
  90. package/dist/adyen-kyc-components.js +19 -19
  91. package/dist/adyen-onboarding.js +6 -3
  92. package/dist/adyen-terms-of-service-management.js +6 -3
  93. package/dist/adyen-terms-of-service-status.js +2 -2
  94. package/dist/adyen-transfer-instrument-configuration.js +6 -3
  95. package/dist/adyen-transfer-instrument-management.js +2 -2
  96. package/dist/adyen-verification-status.js +6 -3
  97. package/dist/{bafinUtils-BROXAx5r.js → bafinUtils-D-iUsb1z.js} +19 -69
  98. package/dist/{bg-BG-DVjwfSz4.js → bg-BG-BMe54km9.js} +2 -2
  99. package/dist/{commonValidators-B7eyF3yt.js → commonValidators-CalwJK5h.js} +2 -2
  100. package/dist/{cs-CZ-CLY9qYTs.js → cs-CZ-BwiHrdav.js} +2 -2
  101. package/dist/{da-DK-uHPPFvD-.js → da-DK-D3nwkjjZ.js} +2 -2
  102. package/dist/{de-DE-SMf6w4NJ.js → de-DE-ZU2Hsp38.js} +2 -2
  103. package/dist/{dropinUtils-DqJ1Ds6F.js → dropinUtils-D59ldyqp.js} +4 -4
  104. package/dist/{el-GR-wv99Y9Yf.js → el-GR-DbOICeSZ.js} +2 -2
  105. package/dist/{es-ES-BqpvBqmR.js → es-ES-diRragkx.js} +2 -2
  106. package/dist/{et-EE-CAuCY0qn.js → et-EE--PzlaQkR.js} +2 -2
  107. package/dist/{fi-FI-DPegZzTc.js → fi-FI-D0_0MXLR.js} +2 -2
  108. package/dist/{fieldConfig-DVdDkF4v.js → fieldConfig-1wEVw6MW.js} +6 -6
  109. package/dist/{formUtils-6n_sAj9f.js → formUtils-BUyxO4Zy.js} +3 -3
  110. package/dist/{fr-FR-BPGwsLDa.js → fr-FR-CbjzHhqH.js} +2 -2
  111. package/dist/{getName-2kWqXhZa.js → getName-BCGuaRKD.js} +2 -2
  112. package/dist/{hr-HR-DdqNL1pQ.js → hr-HR-CDuWrX1x.js} +2 -2
  113. package/dist/{hu-HU-C1LJENXO.js → hu-HU-CXB62KSV.js} +2 -2
  114. package/dist/{iframeWidget-BHiCu3PY.js → iframeWidget-CxqD-Z9-.js} +4 -4
  115. package/dist/{isEmpty-COLZr49P.js → isEmpty-BCB0E6W3.js} +2 -2
  116. package/dist/{it-IT-B1eJg9RL.js → it-IT-BbW5PMj0.js} +2 -2
  117. package/dist/ja-JP-D8-geaup.js +13 -0
  118. package/dist/{japanSupportUtils-DHTmTrsj.js → japanSupportUtils-CNwDfN86.js} +3 -3
  119. package/dist/{localizeDateString-tOyK52gO.js → localizeDateString-DnJ6n3p4.js} +2 -2
  120. package/dist/{lt-LT-BmRnIfWs.js → lt-LT-BCusE8Fe.js} +2 -2
  121. package/dist/{lv-LV-CX9j9Dtv.js → lv-LV-D_D39wup.js} +2 -2
  122. package/dist/{mapExistingFile-Bz4_d6_m.js → mapExistingFile-DF8ylI3D.js} +4 -4
  123. package/dist/{mapJpAddressSchemaToAddressLocalizations-COA1bDNt.js → mapJpAddressSchemaToAddressLocalizations-Y24lCOu6.js} +38 -38
  124. package/dist/{mapLegalEntityToIndividualOnfidoSchema-CdLLvb8F.js → mapLegalEntityToIndividualSchema-BfluetfB.js} +4 -4
  125. package/dist/{mapTransferInstrumentToPayoutAccount-CPpBX8oM.js → mapTransferInstrumentToPayoutAccount-DGEME7Zv.js} +3 -2
  126. package/dist/{nl-NL-cVVIDG7s.js → nl-NL-Z2ifhzHq.js} +2 -2
  127. package/dist/{no-NO-C_tmZ39d.js → no-NO-D09wFbmU.js} +2 -2
  128. package/dist/{patternValidators-DSKvrLlO.js → patternValidators-DbUGFIUU.js} +2 -2
  129. package/dist/{pl-PL-DFZFSKZX.js → pl-PL-uU0uFIWi.js} +2 -2
  130. package/dist/{process-field-configurations-2fq1Bq8j.js → process-field-configurations-DGERpLQI.js} +4 -4
  131. package/dist/{pt-BR-CMiGlY3k.js → pt-BR-DzLl_fGR.js} +2 -2
  132. package/dist/{pt-PT-DmdQxN_1.js → pt-PT-Czix42gf.js} +2 -2
  133. package/dist/{resolveEnvironment-DPBuIa7_.js → resolveEnvironment-S2KpSjit.js} +3 -3
  134. package/dist/{ro-RO-B0slmyWK.js → ro-RO-BmHGZmbO.js} +2 -2
  135. package/dist/{roleMetadata-steXST1L.js → roleMetadata-CKgUDBXU.js} +2 -2
  136. package/dist/{sk-SK-BptPuon4.js → sk-SK-hx3DmG_3.js} +2 -2
  137. package/dist/{sl-SI-C3nGkfNb.js → sl-SI-D06jZL__.js} +2 -2
  138. package/dist/style.css +272 -295
  139. package/dist/styles-CLV89_hH.js +272 -295
  140. package/dist/{sv-SE-CXn28ybc.js → sv-SE-eJgjc6iG.js} +2 -2
  141. package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
  142. package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
  143. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
  144. package/dist/types/api/address/useSearchAddress.d.ts +1 -2
  145. package/dist/types/api/businessLines/useBusinessLines.d.ts +2 -2
  146. package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +1 -1
  147. package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +1 -1
  148. package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +1 -1
  149. package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +1 -1
  150. package/dist/types/api/check/useCheck.d.ts +1 -2
  151. package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +1 -1
  152. package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -2
  153. package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
  154. package/dist/types/api/configurations/useScenarios.d.ts +2 -160
  155. package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
  156. package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
  157. package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
  158. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +1 -1
  159. package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
  160. package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
  161. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
  162. package/dist/types/api/documentValidation/useDocumentValidate.d.ts +1 -3
  163. package/dist/types/api/documents/useCreateDocument.d.ts +1 -1
  164. package/dist/types/api/documents/useDeleteDocument.d.ts +1 -1
  165. package/dist/types/api/documents/useDocument.d.ts +1 -1
  166. package/dist/types/api/documents/useDocuments.d.ts +1 -1
  167. package/dist/types/api/documents/useUpdateDocument.d.ts +1 -1
  168. package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +1 -1
  169. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -4
  170. package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +1 -1
  171. package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +1 -1
  172. package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +2 -2
  173. package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -2
  174. package/dist/types/api/legalEntity/useConfirmReview.d.ts +1 -1
  175. package/dist/types/api/legalEntity/useLegalEntity.d.ts +8 -389
  176. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +1 -1
  177. package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +1 -1
  178. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
  179. package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -2
  180. package/dist/types/api/pci/usePciQuestionnaireList.d.ts +1 -1
  181. package/dist/types/api/pci/usePciStatus.d.ts +1 -1
  182. package/dist/types/api/pci/usePciTemplate.d.ts +1 -1
  183. package/dist/types/api/pci/useSignPci.d.ts +1 -1
  184. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
  185. package/dist/types/api/queryKeys.d.ts +1 -1
  186. package/dist/types/api/taskStatus/useTaskStatus.d.ts +1 -1
  187. package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -1
  188. package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +1 -2
  189. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -7
  190. package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
  191. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
  192. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -1
  193. package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -1
  194. package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
  195. package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +1 -1
  196. package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +1 -1
  197. package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +1 -1
  198. package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -2
  199. package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
  200. package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +1 -1
  201. package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +1 -1
  202. package/dist/types/api/types.d.ts +1 -1
  203. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +1 -1
  204. package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +1 -1
  205. package/dist/types/api/validation/useValidateAccountIdentification.d.ts +1 -2
  206. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -1
  207. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -2
  208. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +0 -2
  209. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -1
  210. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +1 -1
  211. package/dist/types/components/Business/forms/rules.d.ts +3 -3
  212. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +2 -1
  213. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +8 -1
  214. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +0 -1
  215. package/dist/types/components/Business/utils/companyUtil.d.ts +0 -9
  216. package/dist/types/components/BusinessLines/constants.d.ts +2 -0
  217. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +2 -1
  218. package/dist/types/components/BusinessLines/tasks/utils.d.ts +4 -2
  219. package/dist/types/components/BusinessLines/tasks/validate.d.ts +0 -2
  220. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +20 -21
  221. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +5 -2
  222. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
  223. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
  224. package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -3
  225. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +29 -0
  226. package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.types.d.ts +3 -3
  227. package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/TypeOfIdentity/index.d.ts +2 -2
  228. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.d.ts +4 -0
  229. package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/validate.d.ts +8 -8
  230. package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +22 -0
  231. package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +9 -0
  232. package/dist/types/components/Individual/forms/{IndividualOnfido/DataConflictsModal → DataConflictsModal}/ConflictRow.d.ts +1 -1
  233. package/dist/types/components/Individual/forms/{IndividualOnfido/DataConflictsModal → DataConflictsModal}/DataConflictsModal.d.ts +1 -1
  234. package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/types.d.ts +5 -15
  235. package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/utils.d.ts +1 -1
  236. package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +18 -0
  237. package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.types.d.ts +3 -3
  238. package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +1 -1
  239. package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/UploadedDocument/UploadedDocument.d.ts +1 -1
  240. package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/individualOnfidoConflictsSchema.d.ts +5 -5
  241. package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +4 -0
  242. package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/validateExtractionResult.d.ts +3 -3
  243. package/dist/types/components/Individual/forms/{IndividualOnfido/IndividualOnfido.d.ts → Individual.d.ts} +6 -2
  244. package/dist/types/components/Individual/forms/{IndividualOnfido/IndividualOnfido.rules.d.ts → Individual.rules.d.ts} +5 -6
  245. package/dist/types/components/Individual/forms/{IndividualOnfido/IndividualOnfido.types.d.ts → Individual.types.d.ts} +15 -15
  246. package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/types.d.ts +1 -1
  247. package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/types.d.ts +1 -1
  248. package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.types.d.ts +1 -1
  249. package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.types.d.ts +2 -2
  250. package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaireModalContent.d.ts +1 -1
  251. package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -2
  252. package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -3
  253. package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
  254. package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +1 -1
  255. package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +1 -1
  256. package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -12
  257. package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
  258. package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -3
  259. package/dist/types/components/Individual/mapping/{mapIndividualOnfidoSchemaToLegalEntity.d.ts → mapIndividualSchemaToLegalEntity.d.ts} +1 -1
  260. package/dist/types/components/Individual/mapping/{mapLegalEntityToIndividualOnfidoSchema.d.ts → mapLegalEntityToIndividualSchema.d.ts} +1 -1
  261. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +3 -4
  262. package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
  263. package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
  264. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +1 -13
  265. package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +0 -2
  266. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +8 -0
  267. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
  268. package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
  269. package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/types.d.ts +2 -2
  270. package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +4 -0
  271. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  272. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +0 -2
  273. package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +2 -2
  274. package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +2 -1
  275. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +2 -2
  276. package/dist/types/components/ui/atoms/Card/Card.d.ts +19 -0
  277. package/dist/types/context/ExperimentContext/types.d.ts +0 -36
  278. package/dist/types/context/QueryContext/QueryClient.d.ts +1 -1
  279. package/dist/types/context/StateContext/types.d.ts +2 -3
  280. package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
  281. package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
  282. package/dist/types/core/user-events.d.ts +3 -2
  283. package/dist/types/embeds/baseEmbedProps.d.ts +0 -21
  284. package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +2 -1
  285. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +5 -1
  286. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
  287. package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +2 -1
  288. package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.d.ts +5 -1
  289. package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.d.ts +2 -1
  290. package/dist/types/embeds/verification-status/adyen-verification-status.d.ts +2 -1
  291. package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -1
  292. package/dist/types/hooks/useUboQuestionnaire.d.ts +2 -2
  293. package/dist/types/stores/formState.d.ts +1 -1
  294. package/dist/types/utils/addLinkedFields.d.ts +0 -2
  295. package/dist/types/utils/api/processCapabilitites.d.ts +2 -3
  296. package/dist/types/utils/birthDateUtils.d.ts +0 -17
  297. package/dist/types/utils/entityAssociationUtil.d.ts +3 -4
  298. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  299. package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -3
  300. package/dist/types/utils/logger.d.ts +0 -1
  301. package/dist/types/utils/performance.d.ts +64 -0
  302. package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +3 -2
  303. package/dist/{types-2lh4v1NS.js → types-CUp2kEQJ.js} +1 -1
  304. package/dist/{types-Dk94b8kx.js → types-DY4_Oje-.js} +1 -37
  305. package/dist/{types-MoVpdFbr.js → types-DgF4O5ru.js} +2 -2
  306. package/dist/{types-CGYmPCYj.js → types-vqz1MZ1F.js} +2 -2
  307. package/dist/{useAssociatedLegalEntity-BufOLUsc.js → useAssociatedLegalEntity-C8wrPYHO.js} +3 -2
  308. package/dist/{useBusinessDetailsData-D4EbMk7x.js → useBusinessDetailsData-nW3yfjoJ.js} +253 -183
  309. package/dist/{useCreateLegalEntity-CmZ_Xs5Y.js → useCreateLegalEntity-DEc1Kwc9.js} +3 -2
  310. package/dist/{useDataset-BRi4mlWJ.js → useDataset-CLceNuVk.js} +2 -2
  311. package/dist/{useForm-DpYu-ydO.js → useForm-C6Y--Xun.js} +3 -3
  312. package/dist/{useFormContext-03qTwgil.js → useFormContext-7UjLuyeC.js} +7 -7
  313. package/dist/{useGlobalData-Dk70ESMH.js → useGlobalData-DS2ZGdGI.js} +2 -2
  314. package/dist/{useMultiForm-BNwZbeFz.js → useMultiForm-B3D5YMQv.js} +5 -5
  315. package/dist/{useOnboardingStatus-D6f5Kt_w.js → useOnboardingStatus-pO-8haat.js} +3 -2
  316. package/dist/{useScenarios-BQO76Qbs.js → useScenarios-BeYCbuMy.js} +5 -3
  317. package/dist/{useTermsOfServiceStatus-pQ-OjZcj.js → useTermsOfServiceStatus-a9HTnF2t.js} +3 -2
  318. package/dist/{useToastContext-BG3cHfke.js → useToastContext-CY5gBg6O.js} +3 -2
  319. package/dist/{useUnincorporatedPartnershipMembers-DumGMdhZ.js → useUnincorporatedPartnershipMembers-BFoyyohQ.js} +4 -4
  320. package/dist/{useUpdateBusinessLines-BWk0eCVS.js → useUpdateBusinessLines-Ca6VPudz.js} +20 -17
  321. package/dist/{useUpdateLegalEntity-DJomQK33.js → useUpdateLegalEntity-CV9zKmhh.js} +4 -3
  322. package/dist/{utils-DkGVdk7W.js → utils-9A5Vx0Md.js} +25 -21
  323. package/dist/{utils-B5nzpIMU.js → utils-DJ11eWHJ.js} +6 -6
  324. package/dist/{utils-Cm0vPCdA.js → utils-DW7BsBmK.js} +1 -1
  325. package/dist/{utils-DtmnCXcG.js → utils-DkD_AO7r.js} +2 -2
  326. package/dist/{utils-CANy0Arr.js → utils-kwRyi0uY.js} +2 -2
  327. package/dist/{validate-DUJOPfMa.js → validate-BjjltZlf.js} +2 -2
  328. package/dist/{validate-D5t_i90f.js → validate-CDvp3PSV.js} +4 -3
  329. package/dist/{validationError-BkGOdtDT.js → validationError-BSalUIny.js} +3 -3
  330. package/package.json +56 -49
  331. package/dist/Card-BSfGetza.js +0 -82
  332. package/dist/EntityAssociation-Bl1NeRHI.js +0 -159
  333. package/dist/ManageIndividualComponent-C7zwlJuO.js +0 -46
  334. package/dist/hasDataChanged-DzGl3k7N.js +0 -19
  335. package/dist/id-verification-instant-Byt4Oul6.js +0 -58
  336. package/dist/id-verification-manual-CvcTkOSY.js +0 -55
  337. package/dist/ja-JP-PnqAHl14.js +0 -13
  338. package/dist/types/components/Business/tasks/BusinessDetailsDropin/mandatoryFields.d.ts +0 -3
  339. package/dist/types/components/Individual/fields/DecisionMakerRole/DecisionMakerRole.d.ts +0 -3
  340. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +0 -10
  341. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +0 -23
  342. package/dist/types/components/Individual/fields/NameFields/validate.d.ts +0 -4
  343. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentAlreadyUpload.d.ts +0 -2
  344. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentInstantVerification.d.ts +0 -3
  345. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentUpload.d.ts +0 -3
  346. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -3
  347. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -15
  348. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +0 -14
  349. package/dist/types/components/Individual/forms/Individual/Individual.d.ts +0 -47
  350. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/Identity.d.ts +0 -2
  351. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +0 -2
  352. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +0 -3
  353. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +0 -2
  354. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +0 -3
  355. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +0 -2
  356. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +0 -3
  357. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
  358. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +0 -4
  359. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +0 -14
  360. package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -3
  361. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +0 -41
  362. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +0 -21
  363. package/dist/types/components/Individual/forms/Individual/form-ids.d.ts +0 -2
  364. package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -40
  365. package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -50
  366. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -29
  367. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +0 -4
  368. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -22
  369. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +0 -6
  370. package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +0 -17
  371. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +0 -4
  372. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +0 -4
  373. package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +0 -3
  374. package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +0 -3
  375. package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +0 -8
  376. package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +0 -3
  377. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +0 -3
  378. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +0 -2
  379. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +0 -4
  380. package/dist/types/components/ui/molecules/Card/Card.d.ts +0 -3
  381. package/dist/types/components/ui/molecules/Card/types.d.ts +0 -26
  382. package/dist/types/embeds/EmbedBaseElement.d.ts +0 -41
  383. package/dist/types/embeds/EmbedCore.d.ts +0 -22
  384. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +0 -14
  385. package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +0 -12
  386. package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +0 -12
  387. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +0 -12
  388. package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +0 -12
  389. package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +0 -12
  390. package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +0 -16
  391. package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +0 -14
  392. package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +0 -20
  393. /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/AdditionalPersonalDetails.d.ts +0 -0
  394. /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.d.ts +0 -0
  395. /package/dist/types/components/Individual/forms/{IndividualOnfido/BasicDetails → BasicDetails}/BasicDetails.d.ts +0 -0
  396. /package/dist/types/components/Individual/forms/{IndividualOnfido/GuidanceQuestion → GuidanceQuestion}/GuidanceQuestion.d.ts +0 -0
  397. /package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/IdDocumentManualUpload.d.ts +0 -0
  398. /package/dist/types/components/Individual/forms/{IndividualOnfido/IdNowVerificationModal → IdNowVerificationModal}/IdNowVerificationModal.d.ts +0 -0
  399. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/IdVerification.d.ts +0 -0
  400. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/idVerificationProviderId.d.ts +0 -0
  401. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/types.d.ts +0 -0
  402. /package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.d.ts +0 -0
  403. /package/dist/types/components/Individual/forms/{IndividualOnfido/ManualIdUpload → ManualIdUpload}/ManualIdUpload.d.ts +0 -0
  404. /package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/index.d.ts +0 -0
  405. /package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/ProofOfResidency.d.ts +0 -0
  406. /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.d.ts +0 -0
  407. /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaireModalContent.d.ts +0 -0
  408. /package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.d.ts +0 -0
  409. /package/dist/types/components/Individual/forms/{IndividualOnfido/form-ids.d.ts → form-ids.d.ts} +0 -0
  410. /package/dist/types/components/Individual/tasks/{IndividualOnfidoDropin/IndividualOnfidoStore.d.ts → IndividualDropin/IndividualStore.d.ts} +0 -0
  411. /package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/LocalizedNameFields.d.ts +0 -0
@@ -2,53 +2,51 @@
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] = "02baaaea-3d85-4147-8d4f-dd90fea13d46", e._sentryDebugIdIdentifier = "sentry-dbid-02baaaea-3d85-4147-8d4f-dd90fea13d46");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7e45adf3-9ed0-44f5-ac7b-3a57b6860a2e", e._sentryDebugIdIdentifier = "sentry-dbid-7e45adf3-9ed0-44f5-ac7b-3a57b6860a2e");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { b as useApiContext, am as useMutation, k as httpPost, j as useQuery, m as httpGet, u as useTranslation, G as Typography, B as Button, aj as useI18nContext, as as isEmpty, L as Loader, W as Icon, X as IconButton, H as createLogger, ao as useQueryClient, c as useLegalEntity, R as ROOT_LE, V as useAnalyticsContext, bM as useLegalEntities, a as addResourceBundles, O as EntityTypes, g as getLegalEntityCountry, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-BY1HQxMn.js";
10
+ import { b as useApiContext, j as httpPost, k as httpGet, u as useTranslation, x as Typography, B as Button, ag as useI18nContext, L as Loader, U as Icon, V as IconButton, z as createLogger, c as useLegalEntity, R as ROOT_LE, P as useAnalyticsContext, bC as useLegalEntities, a as addResourceBundles, M as EntityTypes, g as getLegalEntityCountry, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-D5FOVv9p.js";
11
11
  import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
12
- import { I as Image, u as useCapabilityProblems, g as getProblemsForEntity } from "./Image-Dv-RB-a6.js";
13
- import { useState, useMemo, useEffect, useCallback, useRef } from "preact/hooks";
14
- import { n as normalizedTaskStatusStore, g as useBusinessLines } from "./OnboardingDropinComponent-tQW1hXKP.js";
15
- import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-BG3cHfke.js";
16
- import { u as useCreateLegalEntity } from "./useCreateLegalEntity-CmZ_Xs5Y.js";
17
- import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-DJomQK33.js";
18
- import { h as hasDataChanged } from "./hasDataChanged-DzGl3k7N.js";
19
- import { u as useGlobalDataSlice, c as useStateContext } from "./useGlobalData-Dk70ESMH.js";
20
- import { g as getPropsFromConfigurations } from "./process-field-configurations-2fq1Bq8j.js";
21
- import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-DqJ1Ds6F.js";
22
- import { F as FormWrapper } from "./FormWrapper-BCkcULLO.js";
23
- import { c as createDocumentRequest, d as documentApiUtils } from "./validate-D5t_i90f.js";
12
+ import { I as Image, u as useCapabilityProblems, g as getProblemsForEntity } from "./Image-D2r8auP6.js";
13
+ import { useState, useMemo, useCallback, useEffect } from "preact/hooks";
14
+ import { f as useTaskStatus, T as TASK_STATUS_POLLING_INTERVAL_MS, i as useBusinessLines } from "./OnboardingDropinComponent-Druuv3sE.js";
15
+ import { useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
16
+ import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-CY5gBg6O.js";
17
+ import { u as useCreateLegalEntity } from "./useCreateLegalEntity-DEc1Kwc9.js";
18
+ import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-CV9zKmhh.js";
19
+ import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-7UjLuyeC.js";
20
+ import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-D59ldyqp.js";
21
+ import { u as useMultiForm } from "./useMultiForm-B3D5YMQv.js";
22
+ import { c as createDocumentRequest, d as documentApiUtils } from "./validate-CDvp3PSV.js";
24
23
  import { f as formatObject } from "./utils-DNSfZiio.js";
25
24
  import { signal } from "@preact/signals";
26
- import { a as getFormProps } from "./getProps-CLJfvUMb.js";
27
- import { u as useForm } from "./useForm-DpYu-ydO.js";
28
- import { E as ErrorPanel } from "./ErrorPanel-DNtK56tD.js";
29
- import { c as createFormUtils } from "./formUtils-6n_sAj9f.js";
30
- import { F as Field } from "./Field-BEoeMy3u.js";
31
- import { S as Select } from "./Select-DglmHz2C.js";
32
- import { T as TextArea } from "./TextArea-DaEM1LmR.js";
33
- import { I as InputDate } from "./InputDate-BcSMepXz.js";
25
+ import { E as ErrorPanel } from "./ErrorPanel-CQ5mK5uz.js";
26
+ import { c as createFormUtils } from "./formUtils-BUyxO4Zy.js";
27
+ import { F as Field } from "./Field-QQ5BBCkn.js";
28
+ import { S as Select } from "./Select-mBoYJnAZ.js";
29
+ import { T as TextArea } from "./TextArea-DeNjm7Gm.js";
30
+ import { I as InputDate } from "./InputDate-DplEveci.js";
34
31
  import { I as InputGroup } from "./InputGroup-WBfGDV5F.js";
35
- import { I as InputText } from "./InputText-D0zIJLdp.js";
36
- import { a as allowedCurrencies, T as TODAY_DATE, S as SOF_CHARACTERS_LIMIT, b as formatDateForInput, g as getInputErrors, c as formatAmountWithCurrency, d as getAdditionalDataSchemaKeys, s as sofCategoryItemMapper, e as getPageHeadings, h as getServiceTranslationSelectTitle, i as sourceOfFundsForms, j as getSofCardDetails, k as getGettingStartedCardDetails, l as getServiceTranslation, p as parseSOFDocumentDescription, m as getRelevantErrors, n as getUniqueRemediationActions, o as SOF_INVALID_INPUT_ERROR_CODES, q as getServiceTranslationKey, r as getDocumentLists, t as getDocumentRequirements, M as MISSING_DATA_SOF_UPLOAD_CODE, u as parseOriginatorDetails, v as getSourceOfFundsRequiredForms, w as sourceOfFundsRequiredFields, x as getSourceOfFundsPayload, y as parseSofOriginatorPayload, A as ALLOWED_SOF_SERVICES } from "./utils-DkGVdk7W.js";
37
- import { R as RadioGroup } from "./RadioGroup-Bg_8BEDn.js";
38
- import { C as CountryField } from "./CountryField-B0daMnwW.js";
39
- import { A as Avatar } from "./Avatar-wQ0mYsYL.js";
40
- import { a as Alert } from "./Alert-E_a_csSs.js";
41
- import { M as Modal } from "./Modal-1Hv5tfNy.js";
42
- import { C as Confirm } from "./Confirm-Ba5lqFqd.js";
43
- import { v as validateDateNotInTheFuture } from "./validate-DUJOPfMa.js";
44
- import { T as TileGroup } from "./TileGroup-B9NP0xL_.js";
32
+ import { I as InputText } from "./InputText-V4X24bPM.js";
33
+ import { a as allowedCurrencies, T as TODAY_DATE, S as SOF_CHARACTERS_LIMIT, b as formatDateForInput, g as getInputErrors, c as formatAmountWithCurrency, s as sofCategoryItemMapper, d as getPageHeadings, e as getServiceTranslationSelectTitle, h as getSofCardDetails, i as getGettingStartedCardDetails, j as getAdditionalDataSchemaKeys, k as getServiceTranslation, p as parseSOFDocumentDescription, l as getRelevantErrors, m as getUniqueRemediationActions, n as SOF_INVALID_INPUT_ERROR_CODES, o as getServiceTranslationKey, q as getDocumentRequirements, r as getDocumentLists, t as getSourceOfFundsRequiredFields, M as MISSING_DATA_SOF_UPLOAD_CODE, u as parseOriginatorDetails, v as getSourceOfFundsRequiredForms, w as getSourceOfFundsPayload, A as ALLOWED_SOF_SERVICES, x as parseSofOriginatorPayload } from "./utils-9A5Vx0Md.js";
34
+ import { R as RadioGroup } from "./RadioGroup-DUYNpTgM.js";
35
+ import { C as CountryField } from "./CountryField-DelOJ_90.js";
36
+ import { A as Avatar } from "./Avatar-C2jFofpv.js";
37
+ import { a as Alert } from "./Alert-0L9Okc_j.js";
38
+ import { M as Modal } from "./Modal-DjqZRXyy.js";
39
+ import { C as Confirm } from "./Confirm-DvCDgyAD.js";
40
+ import { T as TileGroup } from "./TileGroup-CZWfBoyM.js";
45
41
  import { lazy } from "preact/compat";
46
- import { H as Header } from "./Header-87H731cQ.js";
47
- import { L as LandingLayout } from "./LandingLayout-oK1JT5Lv.js";
48
- import { i as isEmpty$1 } from "./isEmpty-COLZr49P.js";
42
+ import { H as Header } from "./Header-DVxe8YCk.js";
43
+ import { L as LandingLayout } from "./LandingLayout-DZt1EtCP.js";
44
+ import { S as StackLayout } from "./unincorporated-partnership-MeN1dp53.js";
45
+ import { i as isEmpty } from "./isEmpty-BCB0E6W3.js";
46
+ import { C as Card } from "./Card-OQuFzmxm.js";
49
47
  import { S as StructuredList } from "./StructuredList-9dnJRdx_.js";
50
- import { C as Card } from "./Card-BSfGetza.js";
51
- import { D as Dropzone } from "./Dropzone-CJTj99Jm.js";
48
+ import { D as Dropzone } from "./Dropzone-BgrGUcIm.js";
49
+ import { v as validateDateNotInTheFuture } from "./validate-BjjltZlf.js";
52
50
  const updateSourceOfFunds = async (businessLineId, legalEntityId, baseUrl, data) => {
53
51
  return httpPost(
54
52
  {
@@ -120,7 +118,6 @@ const sourceOfFundsGettingStarted = "adyen-kyc-source-of-funds-getting-started";
120
118
  const sourceOfFundsGettingStartedError = "adyen-kyc-source-of-funds-getting-started-error";
121
119
  const sourceOfFundsGettingStartedErrorActions = "adyen-kyc-source-of-funds-getting-started-error-actions";
122
120
  const sourceOfFundsGettingStartedCards = "adyen-kyc-source-of-funds-getting-started-cards";
123
- const sourceOfFundsGettingStartedCardsCard = "adyen-kyc-source-of-funds-getting-started-cards-card";
124
121
  const sourceOfFundsGettingStartedCardsCardHeader = "adyen-kyc-source-of-funds-getting-started-cards-card-header";
125
122
  const sourceOfFundsGettingStartedCardsCardBody = "adyen-kyc-source-of-funds-getting-started-cards-card-body";
126
123
  const sourceOfFundsGettingStartedActions = "adyen-kyc-source-of-funds-getting-started-actions";
@@ -146,7 +143,6 @@ const styles = {
146
143
  sourceOfFundsGettingStartedError,
147
144
  sourceOfFundsGettingStartedErrorActions,
148
145
  sourceOfFundsGettingStartedCards,
149
- sourceOfFundsGettingStartedCardsCard,
150
146
  sourceOfFundsGettingStartedCardsCardHeader,
151
147
  sourceOfFundsGettingStartedCardsCardBody,
152
148
  sourceOfFundsGettingStartedActions,
@@ -608,7 +604,6 @@ function AdditionalDataForDonation(props) {
608
604
  ] });
609
605
  }
610
606
  function AdditionalDataForGambling(props) {
611
- const { t: sofT } = useTranslation("sof");
612
607
  const { t: commonT } = useTranslation("common");
613
608
  const [focusedInput, setFocusedInput] = useState();
614
609
  const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
@@ -616,10 +611,6 @@ function AdditionalDataForGambling(props) {
616
611
  setFocusedInput(void 0);
617
612
  handleAmountChange("amount");
618
613
  };
619
- const handleWebsiteBlur = () => {
620
- setFocusedInput(void 0);
621
- handleChangeFor("website", "blur");
622
- };
623
614
  return /* @__PURE__ */ jsxs(Fragment, { children: [
624
615
  /* @__PURE__ */ jsx(
625
616
  Field,
@@ -695,10 +686,8 @@ function AdditionalDataForGambling(props) {
695
686
  Field,
696
687
  {
697
688
  name: "website",
698
- label: formUtils.getLabel("website", "sourceOfWinnings"),
689
+ label: formUtils.getLabel("website", "gamblingEstablishmentWebsite"),
699
690
  errorMessage: formUtils.getErrorMessage("website", errors, fieldProblems),
700
- helper: sofT(($) => $["nameOfCasinoLottery"]),
701
- helperPosition: "below",
702
691
  children: (childProps) => /* @__PURE__ */ jsx(
703
692
  InputGroup,
704
693
  {
@@ -715,7 +704,7 @@ function AdditionalDataForGambling(props) {
715
704
  value: data.website,
716
705
  readonly: formUtils.isReadOnly("website"),
717
706
  onInput: handleChangeFor("website", "input"),
718
- onBlur: handleWebsiteBlur,
707
+ onBlur: handleChangeFor("website", "blur"),
719
708
  "aria-required": true,
720
709
  "aria-invalid": !valid.website,
721
710
  isValid: valid.website,
@@ -1153,282 +1142,54 @@ function AdditionalDataForThirdParty(props) {
1153
1142
  )
1154
1143
  ] });
1155
1144
  }
1156
- function canParseUrl(url) {
1157
- if (URL.canParse) {
1158
- return URL.canParse(url);
1159
- }
1160
- try {
1161
- new URL(url);
1162
- return true;
1163
- } catch {
1164
- return false;
1165
- }
1166
- }
1167
- const sourceOfFundsTypeValidations = {
1168
- type: {
1169
- modes: ["blur"],
1170
- validate: (type) => !isEmpty(type),
1171
- errorMessage: "fieldIsRequired"
1172
- }
1173
- };
1174
- const sourceOfFundsAdditionalDataValidations = {
1175
- description: {
1176
- modes: ["blur"],
1177
- validate: (description) => !isEmpty(description),
1178
- errorMessage: "fieldIsRequired"
1179
- },
1180
- website: [
1181
- {
1182
- modes: ["blur"],
1183
- validate: (website) => !isEmpty(website),
1184
- errorMessage: "fieldIsRequired"
1185
- },
1186
- {
1187
- modes: ["blur"],
1188
- validate: (website) => website ? canParseUrl(
1189
- website?.startsWith("http:") || website?.startsWith("https:") ? website : `https://${website}`
1190
- ) : false,
1191
- errorMessage: "validationPleaseEnterAValidUrl"
1192
- }
1193
- ],
1194
- amount: [
1195
- {
1196
- modes: ["blur"],
1197
- validate: (amount) => !isEmpty(amount?.currency),
1198
- errorMessage: "currencyIsRequired"
1199
- },
1200
- {
1201
- modes: ["blur"],
1202
- validate: (amount) => !isEmpty(amount?.value),
1203
- errorMessage: "amountIsRequired"
1204
- },
1205
- {
1206
- modes: ["blur"],
1207
- validate: (amount) => !Number.isNaN(Number(amount?.value)),
1208
- errorMessage: "pleaseEnterAValidAmount"
1209
- }
1210
- ],
1211
- dateOfSourceEvent: [
1212
- {
1213
- modes: ["blur"],
1214
- validate: (dateOfSourceEvent) => !isEmpty(dateOfSourceEvent),
1215
- errorMessage: "fieldIsRequired"
1216
- },
1217
- {
1218
- modes: ["blur"],
1219
- validate: (dateOfSourceEvent) => validateDateNotInTheFuture(dateOfSourceEvent),
1220
- errorMessage: "dateCannotBeInTheFuture"
1221
- }
1222
- ],
1223
- cryptocurrencyExchange: {
1224
- modes: ["blur"],
1225
- validate: (cryptocurrencyExchange) => !isEmpty(cryptocurrencyExchange),
1226
- errorMessage: "fieldIsRequired"
1227
- },
1228
- legalName: {
1229
- modes: ["blur"],
1230
- validate: (legalName) => !isEmpty(legalName),
1231
- errorMessage: "fieldIsRequired"
1232
- },
1233
- firstName: {
1234
- modes: ["blur"],
1235
- validate: (firstName) => !isEmpty(firstName),
1236
- errorMessage: "fieldIsRequired"
1237
- },
1238
- lastName: {
1239
- modes: ["blur"],
1240
- validate: (lastName) => !isEmpty(lastName),
1241
- errorMessage: "fieldIsRequired"
1242
- },
1243
- originatorType: {
1244
- modes: ["blur"],
1245
- validate: (originatorType) => !isEmpty(originatorType),
1246
- errorMessage: "fieldIsRequired"
1247
- },
1248
- relationship: {
1249
- modes: ["blur"],
1250
- validate: (relationship) => !isEmpty(relationship),
1251
- errorMessage: "fieldIsRequired"
1252
- },
1253
- country: {
1254
- modes: ["blur"],
1255
- validate: (country) => !isEmpty(country),
1256
- errorMessage: "fieldIsRequired"
1257
- },
1258
- dateOfFundsReceived: [
1259
- {
1260
- modes: ["blur"],
1261
- validate: (dateOfFundsReceived) => !isEmpty(dateOfFundsReceived),
1262
- errorMessage: "fieldIsRequired"
1263
- },
1264
- {
1265
- modes: ["blur"],
1266
- validate: (dateOfFundsReceived) => validateDateNotInTheFuture(dateOfFundsReceived),
1267
- errorMessage: "dateCannotBeInTheFuture"
1268
- }
1269
- ],
1270
- financiers: {
1271
- modes: ["blur"],
1272
- validate: (financiers) => !isEmpty(financiers),
1273
- errorMessage: "fieldIsRequired"
1274
- },
1275
- purpose: {
1276
- modes: ["blur"],
1277
- validate: (purpose) => !isEmpty(purpose),
1278
- errorMessage: "fieldIsRequired"
1279
- }
1280
- };
1281
1145
  function SourceOfFundsAdditionalData(props) {
1282
1146
  const { t } = useTranslation("common");
1147
+ const { form } = useFormContext();
1283
1148
  const {
1284
- data: defaultData,
1285
- validators,
1286
- formVerificationErrors,
1287
- fieldValidationErrors,
1288
- shouldValidate,
1289
- sourceOfFundsType
1290
- } = props;
1291
- const getFormSchema = useMemo(
1292
- () => getAdditionalDataSchemaKeys(sourceOfFundsType, defaultData?.originatorType),
1293
- [sourceOfFundsType, defaultData?.originatorType]
1149
+ handleChangeFor: multiFormHandleChangeFor,
1150
+ data: { additionalData: data, sourceOfFundsType },
1151
+ errors: { additionalData: errors },
1152
+ valid: { additionalData: valid },
1153
+ fieldProblems: { additionalData: fieldProblems }
1154
+ } = form;
1155
+ const handleChangeFor = useMemo(
1156
+ () => (key, mode) => multiFormHandleChangeFor(key, "additionalData", mode),
1157
+ [multiFormHandleChangeFor]
1294
1158
  );
1295
- const [schema, setSchema] = useState(getFormSchema);
1296
- const {
1297
- handleChangeFor,
1298
- data: formData,
1299
- schema: formSchema,
1300
- valid: formValid,
1301
- errors: formErrors,
1302
- fieldProblems: formFieldProblems
1303
- } = useForm({
1304
- ...props,
1305
- schema,
1306
- defaultData,
1307
- rules: validators || sourceOfFundsAdditionalDataValidations,
1308
- fieldProblems: fieldValidationErrors,
1309
- shouldValidate
1310
- });
1311
- useEffect(() => {
1312
- setSchema(getAdditionalDataSchemaKeys(sourceOfFundsType, formData?.originatorType));
1313
- }, [formData.originatorType]);
1314
1159
  const handleAmountChange = (key) => (e) => {
1315
- const isCurrencyKey = key === "currency";
1316
- const amountValue = {
1317
- currency: isCurrencyKey ? e.target.value : formData.amount?.currency,
1318
- value: isCurrencyKey ? formData.amount?.value : e.target.value
1319
- };
1320
- const fieldEvent = {
1321
- target: {
1322
- name: "amount",
1323
- value: amountValue
1324
- }
1160
+ const rawValue = e.target.value;
1161
+ const updatedAmount = {
1162
+ ...data?.amount,
1163
+ ...key === "currency" ? { currency: rawValue } : { value: rawValue === "" ? void 0 : Number(rawValue) }
1325
1164
  };
1326
- handleChangeFor("amount")(fieldEvent);
1165
+ handleChangeFor("amount")({ target: { name: "amount", value: updatedAmount } });
1327
1166
  };
1328
1167
  const formUtils = createFormUtils(props, t);
1329
- const { updateStateSlice } = useGlobalDataSlice("additionalData");
1330
- useEffect(() => {
1331
- updateStateSlice({
1332
- data: formData,
1333
- valid: formValid,
1334
- errors: formErrors,
1335
- fieldProblems: formFieldProblems,
1336
- schema: formSchema
1337
- });
1338
- }, [formData, formValid, formErrors, formSchema, formFieldProblems]);
1168
+ const additionalDataProps = {
1169
+ formUtils,
1170
+ handleChangeFor,
1171
+ data,
1172
+ errors,
1173
+ valid,
1174
+ fieldProblems,
1175
+ handleAmountChange
1176
+ };
1339
1177
  const renderSubForms = () => {
1340
- switch (sourceOfFundsType) {
1178
+ switch (sourceOfFundsType?.type) {
1341
1179
  case "gamblingWinnings":
1342
- return /* @__PURE__ */ jsx(
1343
- AdditionalDataForGambling,
1344
- {
1345
- formUtils,
1346
- handleChangeFor,
1347
- data: formData,
1348
- errors: formErrors,
1349
- valid: formValid,
1350
- fieldProblems: formFieldProblems,
1351
- handleAmountChange
1352
- }
1353
- );
1180
+ return /* @__PURE__ */ jsx(AdditionalDataForGambling, { ...additionalDataProps });
1354
1181
  case "cryptocurrencyIncome":
1355
- return /* @__PURE__ */ jsx(
1356
- AdditionalDataForCryptocurrency,
1357
- {
1358
- formUtils,
1359
- handleChangeFor,
1360
- data: formData,
1361
- errors: formErrors,
1362
- valid: formValid,
1363
- fieldProblems: formFieldProblems,
1364
- handleAmountChange
1365
- }
1366
- );
1182
+ return /* @__PURE__ */ jsx(AdditionalDataForCryptocurrency, { ...additionalDataProps });
1367
1183
  case "business":
1368
- return /* @__PURE__ */ jsx(
1369
- AdditionalDataForBusiness,
1370
- {
1371
- formUtils,
1372
- handleChangeFor,
1373
- data: formData,
1374
- errors: formErrors,
1375
- valid: formValid,
1376
- fieldProblems: formFieldProblems,
1377
- handleAmountChange
1378
- }
1379
- );
1184
+ return /* @__PURE__ */ jsx(AdditionalDataForBusiness, { ...additionalDataProps });
1380
1185
  case "assetSale":
1381
- return /* @__PURE__ */ jsx(
1382
- AdditionalDataForAssetSale,
1383
- {
1384
- formUtils,
1385
- handleChangeFor,
1386
- data: formData,
1387
- errors: formErrors,
1388
- valid: formValid,
1389
- fieldProblems: formFieldProblems,
1390
- handleAmountChange
1391
- }
1392
- );
1186
+ return /* @__PURE__ */ jsx(AdditionalDataForAssetSale, { ...additionalDataProps });
1393
1187
  case "thirdPartyFunding":
1394
- return /* @__PURE__ */ jsx(
1395
- AdditionalDataForThirdParty,
1396
- {
1397
- formUtils,
1398
- handleChangeFor,
1399
- data: formData,
1400
- errors: formErrors,
1401
- valid: formValid,
1402
- fieldProblems: formFieldProblems,
1403
- handleAmountChange
1404
- }
1405
- );
1188
+ return /* @__PURE__ */ jsx(AdditionalDataForThirdParty, { ...additionalDataProps });
1406
1189
  case "inheritance":
1407
- return /* @__PURE__ */ jsx(
1408
- AdditionalDataForInheritance,
1409
- {
1410
- formUtils,
1411
- handleChangeFor,
1412
- data: formData,
1413
- errors: formErrors,
1414
- valid: formValid,
1415
- fieldProblems: formFieldProblems,
1416
- handleAmountChange
1417
- }
1418
- );
1190
+ return /* @__PURE__ */ jsx(AdditionalDataForInheritance, { ...additionalDataProps });
1419
1191
  case "donations":
1420
- return /* @__PURE__ */ jsx(
1421
- AdditionalDataForDonation,
1422
- {
1423
- formUtils,
1424
- handleChangeFor,
1425
- data: formData,
1426
- errors: formErrors,
1427
- valid: formValid,
1428
- fieldProblems: formFieldProblems,
1429
- handleAmountChange
1430
- }
1431
- );
1192
+ return /* @__PURE__ */ jsx(AdditionalDataForDonation, { ...additionalDataProps });
1432
1193
  default:
1433
1194
  return null;
1434
1195
  }
@@ -1437,7 +1198,7 @@ function SourceOfFundsAdditionalData(props) {
1437
1198
  /* @__PURE__ */ jsx(
1438
1199
  ErrorPanel,
1439
1200
  {
1440
- verificationErrors: formVerificationErrors,
1201
+ verificationErrors: props?.formVerificationErrors,
1441
1202
  validationErrors: props?.fieldValidationErrors,
1442
1203
  formUtils,
1443
1204
  id: "ariaErrorField"
@@ -1446,43 +1207,19 @@ function SourceOfFundsAdditionalData(props) {
1446
1207
  renderSubForms()
1447
1208
  ] });
1448
1209
  }
1449
- const sourceOfFundsTypeFields = ["type"];
1450
1210
  function SourceOfFundsType(props) {
1451
1211
  const { t } = useTranslation(["common", "sof"]);
1452
1212
  const { i18n } = useI18nContext();
1453
1213
  const {
1454
- data: sourceOfFundsTypeDefaultData,
1455
- validators,
1456
- fieldValidationErrors,
1457
- shouldValidate,
1458
- categories
1459
- } = props;
1460
- const {
1461
- handleChangeFor,
1462
1214
  data: formData,
1463
- schema: formSchema,
1464
- valid: formValid,
1215
+ categories,
1465
1216
  errors: formErrors,
1466
- fieldProblems: formFieldProblems
1467
- } = useForm({
1468
- ...props,
1469
- schema: sourceOfFundsTypeFields,
1470
- defaultData: sourceOfFundsTypeDefaultData,
1471
- rules: validators || sourceOfFundsTypeValidations,
1472
- fieldProblems: fieldValidationErrors,
1473
- shouldValidate
1474
- });
1217
+ fieldValidationErrors: formFieldProblems
1218
+ } = props;
1219
+ const { form } = useFormContext();
1220
+ const { handleChangeFor } = form;
1221
+ const handleFieldChange = (fieldName, mode) => handleChangeFor(fieldName, "sourceOfFundsType", mode);
1475
1222
  const formUtils = createFormUtils(props, t);
1476
- const { updateStateSlice } = useGlobalDataSlice("sourceOfFundsType");
1477
- useEffect(() => {
1478
- updateStateSlice({
1479
- data: formData,
1480
- valid: formValid,
1481
- errors: formErrors,
1482
- fieldProblems: formFieldProblems,
1483
- schema: formSchema
1484
- });
1485
- }, [formData, formValid, formErrors, formSchema, formFieldProblems]);
1486
1223
  const categoryItems = [
1487
1224
  {
1488
1225
  value: "adyen",
@@ -1503,7 +1240,7 @@ function SourceOfFundsType(props) {
1503
1240
  tiles: categoryItems,
1504
1241
  errorMessage: typeof errorMessage !== "boolean" ? i18n.get(errorMessage) : errorMessage,
1505
1242
  selected: formData?.type ? formData.type : [],
1506
- onChange: handleChangeFor("type", "input")
1243
+ onChange: handleFieldChange("type", "input")
1507
1244
  }
1508
1245
  ) });
1509
1246
  }
@@ -1547,9 +1284,10 @@ function getIconById(id) {
1547
1284
  }
1548
1285
  function SourceOfFunds(props) {
1549
1286
  const { activeForm, activeBusinessLine, sourceOfFundsType } = props;
1287
+ const { form } = useFormContext();
1288
+ const { data: formData, errors, valid, fieldProblems: fieldValidationErrors } = form;
1550
1289
  const { data: sourceOfFundsTypesData, isLoading } = useSourceOfFundsTypes();
1551
1290
  const { t: sofT } = useTranslation("sof");
1552
- const formWrapperClasses = (formId) => activeForm?.formId !== formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper";
1553
1291
  const pageHeadings = useMemo(
1554
1292
  () => getPageHeadings(sourceOfFundsType ?? "adyen"),
1555
1293
  [sourceOfFundsType]
@@ -1580,34 +1318,32 @@ function SourceOfFunds(props) {
1580
1318
  ]
1581
1319
  }
1582
1320
  ),
1583
- activeForm?.formId === "sourceOfFundsType" && /* @__PURE__ */ jsx("div", { className: formWrapperClasses("sourceOfFundsType"), children: /* @__PURE__ */ jsx(
1321
+ activeForm?.formId === "sourceOfFundsType" && /* @__PURE__ */ jsx(
1584
1322
  SourceOfFundsType,
1585
1323
  {
1586
1324
  categories: sourceOfFundsTypesData,
1587
- ...getFormProps(props, sourceOfFundsForms.sourceOfFundsType.formId)
1325
+ data: formData?.sourceOfFundsType,
1326
+ errors: errors?.sourceOfFundsType,
1327
+ valid: valid?.sourceOfFundsType,
1328
+ fieldValidationErrors: fieldValidationErrors?.sourceOfFundsType
1588
1329
  }
1589
- ) }),
1590
- activeForm?.formId === "additionalData" && /* @__PURE__ */ jsx("div", { className: formWrapperClasses("additionalData"), children: /* @__PURE__ */ jsx(
1330
+ ),
1331
+ activeForm?.formId === "additionalData" && /* @__PURE__ */ jsx(
1591
1332
  SourceOfFundsAdditionalData,
1592
1333
  {
1593
- ...getFormProps(props, sourceOfFundsForms.additionalData.formId),
1594
- sourceOfFundsType
1334
+ fieldValidationErrors: fieldValidationErrors?.additionalData
1595
1335
  }
1596
- ) }),
1597
- activeForm?.formId === "companySourceOfFunds" && /* @__PURE__ */ jsx("div", { className: formWrapperClasses("companySourceOfFunds"), children: /* @__PURE__ */ jsx("div", { children: sofT(($) => $["uploadADocument"]) }) })
1336
+ ),
1337
+ activeForm?.formId === "companySourceOfFunds" && /* @__PURE__ */ jsx("div", { children: sofT(($) => $["uploadADocument"]) })
1598
1338
  ] });
1599
1339
  }
1600
1340
  function SourceOfFundsGettingStartedCard(props) {
1601
1341
  const { id, title, onClick, isEdit, meta } = props;
1602
1342
  const { t: commonT } = useTranslation("common");
1603
- return /* @__PURE__ */ jsx(
1604
- Card,
1605
- {
1606
- className: styles.sourceOfFundsGettingStartedCardsCard,
1607
- headerClassName: styles.sourceOfFundsGettingStartedCardsCardHeader,
1608
- bodyClassName: styles.sourceOfFundsGettingStartedCardsCardBody,
1609
- title,
1610
- headerButton: isEdit ? /* @__PURE__ */ jsx(IconButton, { ariaLabel: "edit", icon: "edit", onClick, variant: "tertiary" }) : /* @__PURE__ */ jsx(
1343
+ return /* @__PURE__ */ jsxs(Card, { variant: "secondary", children: [
1344
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsGettingStartedCardsCardHeader, children: [
1345
+ /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: title }),
1346
+ isEdit ? /* @__PURE__ */ jsx(IconButton, { ariaLabel: "edit", icon: "edit", onClick, variant: "tertiary" }) : /* @__PURE__ */ jsx(
1611
1347
  Button,
1612
1348
  {
1613
1349
  variant: "primary",
@@ -1615,17 +1351,16 @@ function SourceOfFundsGettingStartedCard(props) {
1615
1351
  onClick,
1616
1352
  children: commonT(($) => $["start"])
1617
1353
  }
1618
- ),
1619
- children: isEdit && meta?.length && /* @__PURE__ */ jsx(
1620
- StructuredList,
1621
- {
1622
- className: styles.sourceOfFundsGettingStartedCardsCardDescription,
1623
- items: meta
1624
- }
1625
1354
  )
1626
- },
1627
- id
1628
- );
1355
+ ] }),
1356
+ isEdit && meta?.length && /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedCardsCardBody, children: /* @__PURE__ */ jsx(
1357
+ StructuredList,
1358
+ {
1359
+ className: styles.sourceOfFundsGettingStartedCardsCardDescription,
1360
+ items: meta
1361
+ }
1362
+ ) })
1363
+ ] }, id);
1629
1364
  }
1630
1365
  const digitalWallet = lazy(() => import("./digital-wallet-Bx5YM1LY.js"));
1631
1366
  const SourceOfFundsGettingStarted = ({
@@ -1642,8 +1377,11 @@ const SourceOfFundsGettingStarted = ({
1642
1377
  const { t: commonT } = useTranslation("common");
1643
1378
  const { i18n } = useI18nContext();
1644
1379
  const hasSourceOfFunds = businessLines?.some(
1645
- (businessLine) => !isEmpty$1(businessLine.sourceOfFunds)
1380
+ (businessLine) => !isEmpty(businessLine.sourceOfFunds)
1646
1381
  );
1382
+ const { data: normalizedTasks } = useTaskStatus({
1383
+ refetchInterval: TASK_STATUS_POLLING_INTERVAL_MS
1384
+ });
1647
1385
  const sofDocuments = useMemo(
1648
1386
  () => legalEntity?.documentDetails?.filter((doc) => doc.type === "proofOfFundingOrWealthSource") ?? [],
1649
1387
  [legalEntity]
@@ -1755,7 +1493,7 @@ const SourceOfFundsGettingStarted = ({
1755
1493
  {
1756
1494
  title: sofT(($) => $["fundingSourcesForFinancialProducts"]),
1757
1495
  description: sofT(($) => $["addAllSourcesOfFundsBeingUsed"]),
1758
- status: normalizedTaskStatusStore?.value?.SOURCE_OF_FUNDS?.status,
1496
+ status: normalizedTasks?.SOURCE_OF_FUNDS?.status,
1759
1497
  align: "center"
1760
1498
  }
1761
1499
  ),
@@ -1785,7 +1523,7 @@ const SourceOfFundsGettingStarted = ({
1785
1523
  `error-${index}`
1786
1524
  );
1787
1525
  }),
1788
- /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedCards, children: mapBusinessLines(businessLines) }),
1526
+ /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedCards, children: /* @__PURE__ */ jsx(StackLayout, { children: mapBusinessLines(businessLines) }) }),
1789
1527
  handleCancelClick && /* @__PURE__ */ jsx(
1790
1528
  Button,
1791
1529
  {
@@ -2071,6 +1809,44 @@ const SourceOfFundsUpload = ({
2071
1809
  )
2072
1810
  ] });
2073
1811
  };
1812
+ function canParseUrl(url) {
1813
+ if (URL.canParse) {
1814
+ return URL.canParse(url);
1815
+ }
1816
+ try {
1817
+ new URL(url);
1818
+ return true;
1819
+ } catch {
1820
+ return false;
1821
+ }
1822
+ }
1823
+ const sourceOfFundsTypeValidations = {};
1824
+ const HAS_PROTOCOL_REGEX = /^https?:\/\//i;
1825
+ const sourceOfFundsAdditionalDataValidations = {
1826
+ website: {
1827
+ modes: ["blur"],
1828
+ validate: (val) => !!val && canParseUrl(val),
1829
+ errorMessage: (val) => {
1830
+ if (val && !HAS_PROTOCOL_REGEX.test(val)) return "validationUrlMustStartWithHttpOrHttps";
1831
+ return "validationPleaseEnterAValidUrl";
1832
+ }
1833
+ },
1834
+ amount: {
1835
+ modes: ["blur"],
1836
+ validate: (amount) => amount?.value != null && !Number.isNaN(Number(amount.value)),
1837
+ errorMessage: "pleaseEnterAValidAmount"
1838
+ },
1839
+ dateOfSourceEvent: {
1840
+ modes: ["blur"],
1841
+ validate: (dateOfSourceEvent) => validateDateNotInTheFuture(dateOfSourceEvent),
1842
+ errorMessage: "dateCannotBeInTheFuture"
1843
+ },
1844
+ dateOfFundsReceived: {
1845
+ modes: ["blur"],
1846
+ validate: (dateOfFundsReceived) => validateDateNotInTheFuture(dateOfFundsReceived),
1847
+ errorMessage: "dateCannotBeInTheFuture"
1848
+ }
1849
+ };
2074
1850
  const logger = createLogger();
2075
1851
  function SourceOfFundsDropin({
2076
1852
  country,
@@ -2080,16 +1856,14 @@ function SourceOfFundsDropin({
2080
1856
  const { data: legalEntity, isLoading: isLoadingRootLegalEntity } = useLegalEntity(ROOT_LE);
2081
1857
  const [loadingStatus, setLoadingStatus] = useState("success");
2082
1858
  const [activeBusinessLine, setActiveBusinessLine] = useState();
2083
- const [activeSourceOfFund, setActiveSourceOfFund] = useState({});
1859
+ const [activeSourceOfFund, setActiveSourceOfFund] = useState({
1860
+ sourceOfFundsType: {},
1861
+ additionalData: {}
1862
+ });
2084
1863
  const [allBusinessLines, setAllBusinessLines] = useState([]);
2085
1864
  const [gettingStarted, setGettingStarted] = useState(true);
2086
1865
  const [showUploadPage, setShowUploadPage] = useState(false);
2087
1866
  const [loading, setLoading] = useState(false);
2088
- const formRef = useRef(null);
2089
- const {
2090
- state: { currentState }
2091
- } = useStateContext();
2092
- const formValidity = currentState.validityByForm;
2093
1867
  const { baseUrl, rootLegalEntityId } = useApiContext();
2094
1868
  const { t: sofT } = useTranslation("sof");
2095
1869
  const userEvents = useAnalyticsContext();
@@ -2098,6 +1872,21 @@ function SourceOfFundsDropin({
2098
1872
  const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
2099
1873
  const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
2100
1874
  const { mutateAsync: updateSoFMutation } = useUpdateSourceOfFunds();
1875
+ const form = useMultiForm({
1876
+ requiredFields: getSourceOfFundsRequiredFields,
1877
+ rules: {
1878
+ sourceOfFundsType: sourceOfFundsTypeValidations,
1879
+ additionalData: sourceOfFundsAdditionalDataValidations
1880
+ },
1881
+ defaultData: activeSourceOfFund
1882
+ });
1883
+ const {
1884
+ data = activeSourceOfFund,
1885
+ setFormData,
1886
+ requiredFields,
1887
+ isValid,
1888
+ triggerValidation
1889
+ } = form;
2101
1890
  const isSoFDocumentMissing = useMemo(
2102
1891
  () => legalEntity?.problems?.some(
2103
1892
  (problem) => problem?.verificationErrors?.some(
@@ -2155,8 +1944,15 @@ function SourceOfFundsDropin({
2155
1944
  );
2156
1945
  if (firstBusinessLine) {
2157
1946
  setActiveBusinessLine(firstBusinessLine);
2158
- setActiveSourceOfFund(sourceOfFundsMap[0]);
1947
+ const mappedSof = sourceOfFundsMap[0];
1948
+ setActiveSourceOfFund(mappedSof);
2159
1949
  setAllBusinessLines(normalizedBusinessLines);
1950
+ if (mappedSof?.sourceOfFundsType) {
1951
+ setFormData("sourceOfFundsType", mappedSof.sourceOfFundsType);
1952
+ }
1953
+ if (mappedSof?.additionalData) {
1954
+ setFormData("additionalData", mappedSof.additionalData);
1955
+ }
2160
1956
  }
2161
1957
  }
2162
1958
  } catch (error) {
@@ -2172,37 +1968,19 @@ function SourceOfFundsDropin({
2172
1968
  actionType: "start"
2173
1969
  });
2174
1970
  }, [userEvents]);
2175
- const canSubmitForm = useMemo(
2176
- () => activeSourceOfFund ? !isEmpty(currentState.data?.sourceOfFundsType?.type) && hasDataChanged(activeSourceOfFund, currentState.data) : false,
2177
- [activeSourceOfFund, currentState.data]
2178
- );
2179
- const derivedProps = useMemo(
2180
- () => getPropsFromConfigurations({
2181
- scenarioConfiguration: {},
2182
- forms: sourceOfFundsForms,
2183
- remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
2184
- dataMissingErrors: problems?.missingData ?? [],
2185
- // TODO fix this to take existing fields into account
2186
- // getFieldsWithExistingData(legalEntityResponse, sourceOfFundsApiKeyMapping),
2187
- fieldsWithExistingData: [],
2188
- customRules: {},
2189
- legalEntityType: legalEntity?.type
2190
- }),
2191
- [problems?.remediationActions, problems?.missingData, legalEntity]
2192
- );
2193
1971
  const sourceOfFundsRequiredForms = useMemo(
2194
- () => getSourceOfFundsRequiredForms(currentState?.data?.sourceOfFundsType),
2195
- [currentState?.data?.sourceOfFundsType]
1972
+ () => getSourceOfFundsRequiredForms(data?.sourceOfFundsType),
1973
+ [data?.sourceOfFundsType]
2196
1974
  );
2197
1975
  const forms = useMemo(() => {
2198
1976
  const requiredForms = getRequiredForms(
2199
1977
  sourceOfFundsRequiredForms,
2200
- sourceOfFundsRequiredFields,
1978
+ requiredFields,
2201
1979
  void 0,
2202
1980
  true
2203
1981
  );
2204
- return addValidityToForms(requiredForms, formValidity, problems);
2205
- }, [derivedProps, formValidity, problems]);
1982
+ return addValidityToForms(requiredForms, isValid, problems);
1983
+ }, [sourceOfFundsRequiredForms, requiredFields, isValid, problems]);
2206
1984
  const createOrUpdateOriginator = async (additionalData, prevAdditionalData) => {
2207
1985
  let originatorLegalEntityId;
2208
1986
  const sofOriginator = parseSofOriginatorPayload(additionalData);
@@ -2232,7 +2010,7 @@ function SourceOfFundsDropin({
2232
2010
  return originatorLegalEntityId;
2233
2011
  };
2234
2012
  const handleSubmit = useCallback(async () => {
2235
- const sofData = { ...currentState?.data };
2013
+ const sofData = { ...data };
2236
2014
  const sofType = sofData?.sourceOfFundsType?.type;
2237
2015
  if (!sofType || !activeBusinessLine?.id) {
2238
2016
  return;
@@ -2269,7 +2047,7 @@ function SourceOfFundsDropin({
2269
2047
  });
2270
2048
  setGettingStarted(true);
2271
2049
  setShowUploadPage(false);
2272
- setActiveSourceOfFund({});
2050
+ setActiveSourceOfFund({ sourceOfFundsType: {}, additionalData: {} });
2273
2051
  gotoFormByFormIndex(0);
2274
2052
  setSofErrorMessage("");
2275
2053
  showToast({ label: sofT(($) => $["successAddedFundingSources"]), variant: "success" });
@@ -2279,7 +2057,7 @@ function SourceOfFundsDropin({
2279
2057
  logger.log("Error updating source of funds", e);
2280
2058
  }
2281
2059
  setLoadingStatus("success");
2282
- }, [currentState?.data, activeSourceOfFund, handleHomeClick]);
2060
+ }, [data, activeSourceOfFund, handleHomeClick]);
2283
2061
  const handleGettingStarted = useCallback(() => {
2284
2062
  setGettingStarted(!gettingStarted);
2285
2063
  }, [gettingStarted]);
@@ -2288,18 +2066,11 @@ function SourceOfFundsDropin({
2288
2066
  setActiveSourceOfFund(SoF);
2289
2067
  setGettingStarted(false);
2290
2068
  };
2291
- const {
2292
- handleNextClick,
2293
- handleBackClick,
2294
- activeForm,
2295
- shouldValidate,
2296
- setShouldValidate,
2297
- gotoFormByFormIndex,
2298
- steps
2299
- } = useFormComposer({
2069
+ const { handleNextClick, activeForm, gotoFormByFormIndex, steps, handleBackClick } = useFormComposer({
2300
2070
  problems,
2301
2071
  forms,
2302
- onSubmit: handleSubmit
2072
+ onSubmit: handleSubmit,
2073
+ triggerValidation
2303
2074
  });
2304
2075
  const documentUtils = documentApiUtils({
2305
2076
  baseUrl: baseUrl.value,
@@ -2335,38 +2106,31 @@ function SourceOfFundsDropin({
2335
2106
  handleNavigateToSummary
2336
2107
  }
2337
2108
  ),
2338
- !gettingStarted && !showUploadPage && /* @__PURE__ */ jsx(
2339
- FormWrapper,
2109
+ !gettingStarted && !showUploadPage && /* @__PURE__ */ jsx(FormContextProvider, { form, children: /* @__PURE__ */ jsx(
2110
+ FormFlow,
2340
2111
  {
2341
- taskName: "sourceOfFunds",
2342
- gotoFormByFormIndex,
2343
- hideSidebar: true,
2344
- loadingStatus,
2345
2112
  forms,
2113
+ disableNextButton: !activeForm.isValid,
2346
2114
  activeForm,
2347
- validateForm: () => setShouldValidate(true),
2348
- onSubmit: handleSubmit,
2349
- problems,
2350
- canSubmit: canSubmitForm,
2351
- handleNextClick,
2352
- showBackButton: true,
2115
+ gotoFormByFormIndex,
2353
2116
  handleBackClick: steps.current === 0 ? handleGettingStarted : handleBackClick,
2354
- handleHomeClick,
2355
- steps,
2117
+ handleCancelClick: handleHomeClick,
2118
+ handleNextClick,
2119
+ loadingStatus,
2120
+ currentStep: steps.current,
2121
+ totalSteps: steps.total,
2356
2122
  children: /* @__PURE__ */ jsx(
2357
2123
  SourceOfFunds,
2358
2124
  {
2359
2125
  country,
2360
2126
  activeForm,
2361
- shouldValidate,
2362
2127
  activeBusinessLine,
2363
- sourceOfFundsType: currentState?.data?.sourceOfFundsType?.type,
2364
- ref: formRef,
2128
+ sourceOfFundsType: data?.sourceOfFundsType?.type,
2365
2129
  data: activeSourceOfFund
2366
2130
  }
2367
2131
  )
2368
2132
  }
2369
- )
2133
+ ) })
2370
2134
  ] }) });
2371
2135
  }
2372
2136
  const SourceOfFundsPage = ({ onSubmit, handleHomeClick }) => {