@adyen/kyc-components 3.86.0 → 3.87.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.
- package/dist/{AcceptTermsOfServiceComponent-CfKATf4g.js → AcceptTermsOfServiceComponent-DbuTZ2lm.js} +16 -15
- package/dist/{Accordion-Dnp7WhUx.js → Accordion-BCelMUrf.js} +2 -2
- package/dist/{AccountSetupRejected-BSJJfRWV.js → AccountSetupRejected-Bs86BOhb.js} +5 -5
- package/dist/ActionBar-CVuUP-mY.js +31 -0
- package/dist/{Address-Bl_bd5Lp.js → Address-CaKnB-Qo.js} +20 -65
- package/dist/{Alert-B9R4X_XM.js → Alert-CzqTssej.js} +3 -3
- package/dist/{Avatar-DZ9JX3Cp.js → Avatar-cNQKhH0z.js} +2 -2
- package/dist/{BusinessDetailsMultiformDropin-BjGT2ZQS.js → BusinessDetailsMultiformDropin-gT_3bL0O.js} +168 -78
- package/dist/BusinessFinancingComponent-Cqz7nO9n.js +54 -0
- package/dist/{BusinessFinancingDropin-DGpBmbBn.js → BusinessFinancingDropin-hsJXX1Va.js} +23 -20
- package/dist/BusinessFinancingPage-CieDJbKg.js +46 -0
- package/dist/{BusinessTypeSelectionPage-BCe-2fB6.js → BusinessTypeSelectionPage-C19-xs5o.js} +9 -9
- package/dist/{Card-TkGAmjC5.js → Card-Cka2XXoj.js} +3 -3
- package/dist/{ConstitutionalDocument-CalFzHjn.js → ConstitutionalDocument-CHj8X6eV.js} +3 -3
- package/dist/{CountryField-mxgVAmFp.js → CountryField-B79la7c-.js} +57 -297
- package/dist/CreateIndividualComponent-CyfCWgeB.js +71 -0
- package/dist/CreateTransferInstrumentComponent-D_jnlFw3.js +66 -0
- package/dist/{Currency-DSYdE9Qs.js → Currency-DRUn9oxx.js} +5 -5
- package/dist/{CustomerSupport-DRLtpWUp.js → CustomerSupport-abRYvXsD.js} +10 -10
- package/dist/{DebugModal-BI1D0dD9.js → DebugModal-CAuPuyh6.js} +9 -10
- package/dist/{DecisionMakerDetailsPage-D3CS4w0h.js → DecisionMakerDetailsPage-Dc6W9XHr.js} +17 -17
- package/dist/{DecisionMakers-q__qndMm.js → DecisionMakers-CqAa7vi_.js} +52 -51
- package/dist/DropinLayout-CBP_cHLC.js +17 -0
- package/dist/{EmbeddedStatus-5OzDMQUR.js → EmbeddedStatus-CPowYGBw.js} +3 -3
- package/dist/{EndStateLayout-BmWri3S5.js → EndStateLayout-Cj472JTf.js} +2 -2
- package/dist/EntityAssociation-BSjw-KJ2.js +159 -0
- package/dist/EntityGuidanceStatus-CM6gQcz1.js +105 -0
- package/dist/{FormFlow-8pfRbKmA.js → FormFlow-m1k7xInJ.js} +16 -8
- package/dist/{FormNavigation-C2KywHXa.js → FormNavigation-9G1WKPrp.js} +5 -23
- package/dist/{FormWrapper-CZhSGUa3.js → FormWrapper-DzAkc4KF.js} +10 -10
- package/dist/{IndividualOnfido-n3WaW67J.js → IndividualOnfido-hThSjqMs.js} +128 -228
- package/dist/{IndividualOnfidoDropin-DZrlWtK6.js → IndividualOnfidoDropin--MwUJcV4.js} +50 -55
- package/dist/{InputText-BIySwrmu.js → InputText-DJn5nzG0.js} +95 -5
- package/dist/{Introduction-Bt9gH0G5.js → Introduction-CCY9D_nE.js} +4 -4
- package/dist/{JpAddress-bHP50zUD.js → JpAddress-yRO24Dme.js} +8 -8
- package/dist/{LegalRepresentativeDetailsPage-D4aN-DTv.js → LegalRepresentativeDetailsPage-V5u54a-v.js} +5 -5
- package/dist/{ListItem-CILPfTHI.js → ListItem-q98tz21u.js} +3 -3
- package/dist/{ManageIndividualComponent-CbiGSFJ_.js → ManageIndividualComponent-CTpMCTKm.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-rvk5MSmL.js → ManageTermsOfServiceComponent-2aq2OxaP.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-D2GUV6zp.js → ManageTransferInstrumentComponent-ChwwZS2D.js} +14 -14
- package/dist/{MaybeModal-CZ-qmMqV.js → MaybeModal-BI4OTKmk.js} +3 -3
- package/dist/{Modal-GSjDUwX-.js → Modal-C89D3p56.js} +3 -3
- package/dist/{OnboardingDropinComponent-BGpgGBrU.js → OnboardingDropinComponent-CVwgW17T.js} +444 -2353
- package/dist/{PayoutDetailsDropin-kdkNvTHM.js → PayoutDetailsDropin-BzqbUVzH.js} +666 -159
- package/dist/{Review-CN-S9UCT.js → Review-BjDT0xaU.js} +8 -8
- package/dist/{RootBusinessDetailsPage-CyQjjBhL.js → RootBusinessDetailsPage-nEpccfkc.js} +6 -6
- package/dist/{RootBusinessLinesPage-BhiDzu7x.js → RootBusinessLinesPage-CzUBQFT1.js} +120 -118
- package/dist/RootIndividualDetailsPage-DV1z-BQY.js +71 -0
- package/dist/{SignPCIComponent-o50WXRbZ.js → SignPCIComponent-C5e1Z52Y.js} +12 -12
- package/dist/{SingpassSelection-L1vBg267.js → SingpassSelection-D35jRIBN.js} +4 -4
- package/dist/{SoleProprietorshipPage-Cz21B5bv.js → SoleProprietorshipPage-nrrTlQSU.js} +5 -5
- package/dist/{SourceOfFundsPage-OPzX7pfM.js → SourceOfFundsPage-YkBw6Xpi.js} +26 -24
- package/dist/{StepProgressIndicator-C26xG3ak.js → StepProgressIndicator-Bc_wca9O.js} +2 -2
- package/dist/{StoreProvider-Cvqvt7fn.js → StoreProvider-_QQynxk0.js} +248 -241
- package/dist/Summary-jCIFPrTE.js +204 -0
- package/dist/{TaxReportingDropin-9nQHRCS4.js → TaxReportingDropin-BTeXoX9D.js} +16 -15
- package/dist/{TrustDetailsPage-Bx_Pm5Sl.js → TrustDetailsPage-_UPW7Y6f.js} +25 -23
- package/dist/{TrustMemberCompanyPage-BoxMy_a_.js → TrustMemberCompanyPage-BzlxQ7Kd.js} +6 -6
- package/dist/{TrustMemberIndividualPage-D6n7VhnN.js → TrustMemberIndividualPage-COgsefCp.js} +5 -5
- package/dist/TrustMemberRoleAndTypePage-CKL-7ZaB.js +985 -0
- package/dist/TrustMembersOverview-CVYKxSoD.js +438 -0
- package/dist/{UnincorporatedPartnershipIndividualPage-ZQG0A9HG.js → UnincorporatedPartnershipIndividualPage-DuLh_-Q4.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-D9n1kJdM.js → UnincorporatedPartnershipMemberCompanyPage-D7A-CuwC.js} +6 -6
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BqYHGCCj.js +284 -0
- package/dist/UnincorporatedPartnershipMembersOverview-B2dSYLfZ.js +175 -0
- package/dist/{VerificationErrorAlert-D18WmRyf.js → VerificationErrorAlert-Bl4kwjzn.js} +4 -4
- package/dist/{ViewVerificationStatusComponent-Fc0L-JN4.js → ViewVerificationStatusComponent-DYdW0Gsi.js} +4 -4
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-kyc-components.js +22 -21
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +3 -3
- package/dist/adyen-verification-status.js +3 -3
- package/dist/bg-BG-B7Xs_t04.js +13 -0
- package/dist/{bg-BG-D8qq7TQJ.js → bg-BG-D26PyOmu.js} +2 -4
- package/dist/{bg-BG-e6Rs6yz_.js → bg-BG-D9J6LnkI.js} +2 -1
- package/dist/{bg-BG-BC1dwNN2.js → bg-BG-DH45-0B-.js} +8 -3
- package/dist/bg-BG-oWrzmmWF.js +13 -0
- package/dist/bg-BG-wVquMNtT.js +55 -0
- package/dist/circle-small-filled-YMzP6yQU.js +14 -0
- package/dist/clock-BZHremOA.js +20 -0
- package/dist/cs-CZ--jOkoHVS.js +55 -0
- package/dist/cs-CZ-7urd96Kr.js +13 -0
- package/dist/cs-CZ-BSWXexr4.js +13 -0
- package/dist/{cs-CZ-ChGeQ9s0.js → cs-CZ-C3WsXodG.js} +2 -4
- package/dist/{cs-CZ-2foXfkBk.js → cs-CZ-DPVMeRye.js} +8 -3
- package/dist/{cs-CZ-Q6NVYK-k.js → cs-CZ-DY_pQqAT.js} +2 -1
- package/dist/{da-DK-CyHH8kX3.js → da-DK-BRCRHbdD.js} +2 -4
- package/dist/da-DK-D-CIc3Wp.js +13 -0
- package/dist/{da-DK-DU3_xdWg.js → da-DK-DU4dCNEw.js} +8 -3
- package/dist/da-DK-JHZnsI59.js +55 -0
- package/dist/da-DK-R_y7YwqQ.js +13 -0
- package/dist/{da-DK-DSYEF7Q1.js → da-DK-jK7c9UL0.js} +2 -1
- package/dist/de-DE-BR6CLZw6.js +13 -0
- package/dist/{de-DE-DL6SrIBE.js → de-DE-DhwZpGcF.js} +2 -4
- package/dist/{de-DE-BODG29hR.js → de-DE-Dz2l6jRl.js} +8 -3
- package/dist/de-DE-VGGEkxUT.js +55 -0
- package/dist/de-DE-itf47wPh.js +13 -0
- package/dist/{de-DE-B9-ILIdw.js → de-DE-wmerDL2e.js} +2 -1
- package/dist/{debouncedInputEvent-BDf19z5H.js → debouncedInputEvent-BZv9kA9Q.js} +2 -2
- package/dist/{documentUtils-DahfSV2D.js → documentUtils-feD3RgJ6.js} +4 -3
- package/dist/{dropinUtils-DFscjCzE.js → dropinUtils-L0ggRI0e.js} +5 -4
- package/dist/el-GR-B09xC5IM.js +13 -0
- package/dist/el-GR-B3FHqTOX.js +13 -0
- package/dist/{el-GR-DYjcbiSc.js → el-GR-Btrk_npt.js} +2 -1
- package/dist/{el-GR-l0JeDNPy.js → el-GR-CPvcb2_O.js} +2 -4
- package/dist/{el-GR-DcIdm3iK.js → el-GR-MLFY-Gg7.js} +8 -3
- package/dist/el-GR-gkaKwnln.js +55 -0
- package/dist/{en-US-C5WyUweF.js → en-US-BPI4FZwa.js} +2 -1
- package/dist/{en-US-BxEW5N6f.js → en-US-DwpcyeTb.js} +34 -8
- package/dist/{es-ES-CMQqgMEJ.js → es-ES-0ROz-BJh.js} +8 -3
- package/dist/es-ES-Bn9_0wK0.js +55 -0
- package/dist/es-ES-CEp-ttVJ.js +13 -0
- package/dist/{es-ES-C-tTuMLH.js → es-ES-Qnc0Q6JH.js} +2 -1
- package/dist/{es-ES-C1ClJ2XE.js → es-ES-p03wSF0j.js} +2 -4
- package/dist/es-ES-u77uTVet.js +13 -0
- package/dist/et-EE-B4Qtq50U.js +13 -0
- package/dist/et-EE-BYSnV6Iq.js +55 -0
- package/dist/et-EE-Ci8RU2wg.js +13 -0
- package/dist/{et-EE-BG_Y29oV.js → et-EE-DwU9PpSw.js} +2 -4
- package/dist/{et-EE-BzLAp08F.js → et-EE-TzXANcP2.js} +2 -1
- package/dist/{et-EE-DcpuYQwB.js → et-EE-esci5847.js} +8 -3
- package/dist/fi-FI-CoeShwM8.js +13 -0
- package/dist/{fi-FI-bIhXiQPL.js → fi-FI-D6UZTiLe.js} +2 -4
- package/dist/fi-FI-DjlB2a7k.js +13 -0
- package/dist/{fi-FI-pyHLbmel.js → fi-FI-Dn2MC8uW.js} +2 -1
- package/dist/fi-FI-PVFqd5Ra.js +55 -0
- package/dist/{fi-FI-4GTHkwOL.js → fi-FI-xXrvDLFe.js} +8 -3
- package/dist/{fieldConfigurations-BCj1wotL.js → fieldConfigurations-Bor1NtgA.js} +19 -18
- package/dist/{fr-FR-DG3tEkdN.js → fr-FR-BWX14yb7.js} +2 -1
- package/dist/{fr-FR-Ba-HRBQ7.js → fr-FR-Bw9O-QAU.js} +8 -3
- package/dist/fr-FR-C4ldMaqM.js +13 -0
- package/dist/fr-FR-Dx-CiPdB.js +13 -0
- package/dist/{fr-FR-Bj275MRb.js → fr-FR-jXToKR-E.js} +2 -4
- package/dist/fr-FR-mJK4hjwD.js +55 -0
- package/dist/{getFieldsWithExistingData-C_5HXg3J.js → getFieldsWithExistingData-JYFQVAcY.js} +2 -2
- package/dist/{getName-B1o2b2LX.js → getName-DftHbR4I.js} +2 -2
- package/dist/{hasDataChanged-Bn31Z0Rf.js → hasDataChanged-DU3vtQG1.js} +2 -2
- package/dist/hr-HR-BXG_ZAJm.js +13 -0
- package/dist/{hr-HR-BRFErTkv.js → hr-HR-CZLSQruE.js} +2 -1
- package/dist/{hr-HR-BFx1T11G.js → hr-HR-D8_yhtIo.js} +8 -3
- package/dist/{hr-HR-CL0q_D2U.js → hr-HR-Dcv0VrbJ.js} +2 -4
- package/dist/hr-HR-n7aMHIpM.js +13 -0
- package/dist/hr-HR-qmYyO-nT.js +55 -0
- package/dist/hu-HU-CMGzeEXp.js +13 -0
- package/dist/hu-HU-CS-7iNS4.js +55 -0
- package/dist/hu-HU-D_DvlCMw.js +13 -0
- package/dist/{hu-HU-GXvzHwu9.js → hu-HU-KliQetm5.js} +8 -3
- package/dist/{hu-HU-cLqGFTTR.js → hu-HU-KqfViqRG.js} +2 -4
- package/dist/{hu-HU-CJA8w351.js → hu-HU-kp8Go5hZ.js} +2 -1
- package/dist/{iframeWidget-DtoLjCYK.js → iframeWidget-C8wyKuCq.js} +4 -4
- package/dist/{it-IT-mhNjrQZn.js → it-IT-B0YGvVgW.js} +2 -1
- package/dist/it-IT-BTWkWSJq.js +55 -0
- package/dist/it-IT-Cz3V93Xk.js +13 -0
- package/dist/{it-IT-C0Qk47kh.js → it-IT-DgGk7YK7.js} +2 -4
- package/dist/{it-IT-Bw3VIHJB.js → it-IT-MwpjRAG6.js} +8 -3
- package/dist/it-IT-yV7ewjWU.js +13 -0
- package/dist/{ja-JP-DI7lRfpI.js → ja-JP-2u5fqLWF.js} +8 -3
- package/dist/ja-JP-B4mHwijO.js +13 -0
- package/dist/ja-JP-CSz7fEkn.js +55 -0
- package/dist/{ja-JP-DSdZj-it.js → ja-JP-CY2oljJM.js} +2 -4
- package/dist/{ja-JP-BxEWI56P.js → ja-JP-Ctsk4z4q.js} +4 -1
- package/dist/{ja-JP-CfrHlRGC.js → ja-JP-Dz9IVH4p.js} +2 -1
- package/dist/{localizeDateString-4aQPK6sB.js → localizeDateString-BJbsiJ-b.js} +2 -2
- package/dist/lt-LT-B6XmKUXx.js +55 -0
- package/dist/{lt-LT-ewVNPhQN.js → lt-LT-BEsBoIQ9.js} +8 -3
- package/dist/lt-LT-BuALzmEO.js +13 -0
- package/dist/lt-LT-CYiW52tl.js +13 -0
- package/dist/{lt-LT-C-dKiExL.js → lt-LT-D8cex0eq.js} +2 -4
- package/dist/{lt-LT-C0Acftnm.js → lt-LT-l9rzkFg9.js} +2 -1
- package/dist/{lv-LV-UkEOuqFz.js → lv-LV-BUGQrsDw.js} +2 -4
- package/dist/lv-LV-CgMxfFK8.js +13 -0
- package/dist/{lv-LV-Bnq61WAt.js → lv-LV-DYbb5pkt.js} +2 -1
- package/dist/lv-LV-DsSpy50n.js +55 -0
- package/dist/{lv-LV-JqXvRt4T.js → lv-LV-Veji7-on.js} +8 -3
- package/dist/lv-LV-nDWqwoYo.js +13 -0
- package/dist/{mapExistingFile-lDnF81cv.js → mapExistingFile-lCDb_PhK.js} +3 -3
- package/dist/{mapFinancialReportsToFinancialInformation-5skum6Qk.js → mapFinancialReportsToFinancialInformation-CnMpcLxg.js} +3 -3
- package/dist/{mapJpAddressSchemaToAddressLocalizations-iYMAONXA.js → mapJpAddressSchemaToAddressLocalizations-DkpasBLv.js} +3 -3
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-CZ8Op1Il.js → mapLegalEntityToIndividualOnfidoSchema-MeTFyeE4.js} +3 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-l-kGyc4S.js → mapTransferInstrumentToPayoutAccount-Bvh9p_HS.js} +2 -2
- package/dist/{nl-NL-donw5yvS.js → nl-NL-BMUYBqlF.js} +2 -1
- package/dist/{nl-NL-DR1wVqQC.js → nl-NL-BuW3jWdI.js} +8 -3
- package/dist/nl-NL-CTf7zH4M.js +55 -0
- package/dist/{nl-NL-Cfr5hMtI.js → nl-NL-CagNun1T.js} +2 -4
- package/dist/nl-NL-CcUU-KmX.js +13 -0
- package/dist/nl-NL-DKMs4pB2.js +13 -0
- package/dist/no-NO-B-oUwe9q.js +13 -0
- package/dist/no-NO-BplX8KGW.js +13 -0
- package/dist/{no-NO-BZmigu6-.js → no-NO-CA0EizAy.js} +8 -3
- package/dist/{no-NO-ASO8Je2l.js → no-NO-D4q0sOO5.js} +2 -4
- package/dist/{no-NO-Dev7r3VA.js → no-NO-DKbWxgF-.js} +2 -1
- package/dist/no-NO-RfTK9KAV.js +55 -0
- package/dist/payout-verification-manual-BH2mu0UW.js +90 -0
- package/dist/{pl-PL-DU_Xulyu.js → pl-PL-B0zGy_b4.js} +2 -1
- package/dist/pl-PL-BmCZYCoD.js +13 -0
- package/dist/{pl-PL-BKxhMICw.js → pl-PL-D7nhdbfR.js} +8 -3
- package/dist/pl-PL-Dy8qWH39.js +55 -0
- package/dist/{pl-PL-CG4rvgUo.js → pl-PL-LSqjGZHp.js} +2 -4
- package/dist/pl-PL-p8YxqOFg.js +13 -0
- package/dist/{process-field-configurations-Dt6THVwE.js → process-field-configurations-C41JKZZ6.js} +3 -3
- package/dist/{pt-BR-DeXo4rsi.js → pt-BR--kaJvtE6.js} +2 -1
- package/dist/pt-BR-BbFJsIVX.js +55 -0
- package/dist/pt-BR-BkPUtBM9.js +13 -0
- package/dist/{pt-BR-wAIdhUru.js → pt-BR-D1nTSLod.js} +8 -3
- package/dist/pt-BR-DKrMpM6v.js +13 -0
- package/dist/{pt-BR-IWTcYKu9.js → pt-BR-FCK1QNOs.js} +2 -4
- package/dist/pt-PT-B4F_5NWi.js +55 -0
- package/dist/{pt-PT-C1qHVe7L.js → pt-PT-B9L50746.js} +8 -3
- package/dist/{pt-PT-DkJdR6SS.js → pt-PT-BZ5ZZm6G.js} +2 -1
- package/dist/pt-PT-Bh7v8xbp.js +13 -0
- package/dist/pt-PT-D_F3JxYu.js +13 -0
- package/dist/{pt-PT-LZZYQKaC.js → pt-PT-U2s6koli.js} +2 -4
- package/dist/recurring-CkL4cCM2.js +17 -0
- package/dist/{resolveEnvironment-9sxvxhUS.js → resolveEnvironment-DalWYmHj.js} +3 -3
- package/dist/{ro-RO-nVSeNtIQ.js → ro-RO-BvP4CrrF.js} +2 -4
- package/dist/ro-RO-CICjAFys.js +55 -0
- package/dist/ro-RO-CJoz8E5K.js +13 -0
- package/dist/{ro-RO-BDjHimxe.js → ro-RO-CdSsgoUG.js} +2 -1
- package/dist/ro-RO-DjGku_3y.js +13 -0
- package/dist/{ro-RO-juw6hKRk.js → ro-RO-DvG65dTt.js} +8 -3
- package/dist/{rules-BjmEJdfD.js → rules-DFgTcf5L.js} +4 -4
- package/dist/{sk-SK-BM57awWi.js → sk-SK-BMJgOJoa.js} +8 -3
- package/dist/sk-SK-BRd5TN22.js +55 -0
- package/dist/sk-SK-Bb18qPBw.js +13 -0
- package/dist/{sk-SK-atqQJid1.js → sk-SK-BiBWPJUf.js} +2 -1
- package/dist/{sk-SK-BX0wsQH4.js → sk-SK-DFvk5ao5.js} +2 -4
- package/dist/sk-SK-DgdScFiv.js +13 -0
- package/dist/{sl-SI-g2WSP0Tj.js → sl-SI-BMF8YtOm.js} +8 -3
- package/dist/{sl-SI-Dt7rovIT.js → sl-SI-Bj-INVFz.js} +2 -4
- package/dist/sl-SI-CZt2QlBD.js +13 -0
- package/dist/sl-SI-D8dDckrW.js +55 -0
- package/dist/{sl-SI-CwKpXVCh.js → sl-SI-DtdGMD6i.js} +2 -1
- package/dist/sl-SI-ZxyvdgdS.js +13 -0
- package/dist/style.css +719 -597
- package/dist/styles-CLV89_hH.js +719 -597
- package/dist/sv-SE-BPD3xI_7.js +13 -0
- package/dist/{sv-SE-Cfs0NHgG.js → sv-SE-BYC_f8r7.js} +8 -3
- package/dist/sv-SE-CCFIf86P.js +13 -0
- package/dist/sv-SE-DGpvVvWj.js +55 -0
- package/dist/{sv-SE-DqzH809e.js → sv-SE-Dg9DC29v.js} +2 -4
- package/dist/{sv-SE-CGCP_6VE.js → sv-SE-kR514dO1.js} +2 -1
- package/dist/trackNavigation-db_h46BT.js +28 -0
- package/dist/types/api/businessLines/businessLines.types.d.ts +2 -2
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +14 -0
- package/dist/types/api/industryCodes/industryCodes.types.d.ts +2 -1
- package/dist/types/api/{pciTemplate/pciTemplate.types.d.ts → pci/pci.types.d.ts} +9 -1
- package/dist/types/api/{pciTemplate → pci}/usePciQuestionnaire.d.ts +1 -1
- package/dist/types/api/{pciTemplate → pci}/usePciQuestionnaireList.d.ts +1 -1
- package/dist/types/api/{pciTemplate → pci}/usePciStatus.d.ts +1 -1
- package/dist/types/api/pci/usePciTemplate.d.ts +8 -0
- package/dist/types/api/queryKeys.d.ts +5 -4
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +5 -0
- package/dist/types/components/BankAccount/forms/BankDocument/validate.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutRequirementsModal.d.ts +8 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +2 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +6 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesStore.d.ts +1 -0
- package/dist/types/components/Contract/hooks/useSalesChannels.d.ts +2 -0
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -8
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -6
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +1 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
- package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +18 -0
- package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +4 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/TaskListItem.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +3 -8
- package/dist/types/components/ui/atoms/Status/Status.d.ts +9 -3
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +6 -0
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -1
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
- package/dist/types/context/ExperimentContext/types.d.ts +4 -0
- package/dist/types/core/user-events.d.ts +15 -2
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -6
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +12 -1
- package/dist/types/utils/api/documentUtils.d.ts +1 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getTrustedFields.d.ts +9 -0
- package/dist/types/utils/validatorUtils.d.ts +1 -0
- package/dist/{types-DQVZ5BSQ.js → types-B93Ai-fO.js} +6 -2
- package/dist/{types-BQTi6XU4.js → types-BG06cR9w.js} +2 -2
- package/dist/{types-Db4qB5S5.js → types-E18sv3fQ.js} +2 -2
- package/dist/types-nbahNdbR.js +34 -0
- package/dist/{useAssociatedLegalEntity-D9WaVhuE.js → useAssociatedLegalEntity-CDCwVlgp.js} +2 -2
- package/dist/useCreateLegalEntity-Dr1EtZC9.js +31 -0
- package/dist/{useDataset-CKGFlO8U.js → useDataset-BHoDL5D6.js} +30 -7
- package/dist/{trackNavigation-DYYVv6_y.js → useForm-SCWu19rh.js} +8 -36
- package/dist/useGlobalData-C2odacHA.js +68 -0
- package/dist/{useMultiForm-DfGnG4oT.js → useMultiForm-7AeF_Lma.js} +4 -4
- package/dist/{useOnboardingStatus-CIPOAtmO.js → useOnboardingStatus-D8ldbwoJ.js} +2 -2
- package/dist/{useScenarios-CpiyRA2D.js → useScenarios-CGvgBfO2.js} +2 -2
- package/dist/{useTermsOfServiceStatus-DYF8KAVC.js → useTermsOfServiceStatus-D7rXsMOk.js} +2 -2
- package/dist/{useToastContext-lvmkWAhW.js → useToastContext-BGkxz2AI.js} +17 -5
- package/dist/{useUnincorporatedPartnershipMembers-BVLE8Ovp.js → useUnincorporatedPartnershipMembers-CTtyjp6h.js} +7 -62
- package/dist/useUpdateBusinessLines-C4B4uUP4.js +46 -0
- package/dist/useUpdateLegalEntity-DPVG51Eo.js +39 -0
- package/dist/{utils-CgVxixWT.js → utils-R-gix6HO.js} +6 -6
- package/dist/{validate-g4LgLk_u.js → validate-B6JagCTI.js} +2 -2
- package/dist/{validate-DusGGHsF.js → validate-C0bVNNOM.js} +2 -2
- package/dist/{validationError-C0UYDiYL.js → validationError-BY8rwcKJ.js} +2 -2
- package/dist/warning-diamond-filled-BfXMlVrG.js +17 -0
- package/package.json +1 -1
- package/dist/BusinessFinancingComponent-C9ugIBel.js +0 -54
- package/dist/BusinessFinancingPage-zaSDXCpl.js +0 -46
- package/dist/CreateIndividualComponent-DS6uGwYF.js +0 -71
- package/dist/CreateTransferInstrumentComponent-CQ00ZVZa.js +0 -66
- package/dist/RootIndividualDetailsPage-BsagBZYZ.js +0 -80
- package/dist/TaskItemStatus-BAtPrryh.js +0 -114
- package/dist/bg-BG-BJo9yIYj.js +0 -13
- package/dist/bg-BG-D5C7Gq2o.js +0 -35
- package/dist/bg-BG-a6CQ0hKw.js +0 -13
- package/dist/cs-CZ-BAr1-JAS.js +0 -13
- package/dist/cs-CZ-C9FuJCsg.js +0 -35
- package/dist/cs-CZ-LGBI1w0Z.js +0 -13
- package/dist/da-DK-914Viqia.js +0 -13
- package/dist/da-DK-BeSNTO9k.js +0 -35
- package/dist/da-DK-DoHb4ssx.js +0 -13
- package/dist/de-DE-BXKZNAA1.js +0 -13
- package/dist/de-DE-Dp-2BAWQ.js +0 -35
- package/dist/de-DE-R6YgDOo5.js +0 -13
- package/dist/el-GR-5WvkRyW5.js +0 -35
- package/dist/el-GR-BnMw4HQ7.js +0 -13
- package/dist/el-GR-DgaUGjyJ.js +0 -13
- package/dist/es-ES-BWAlCq7R.js +0 -13
- package/dist/es-ES-C9oDOVSQ.js +0 -35
- package/dist/es-ES-dMSfTLXF.js +0 -13
- package/dist/et-EE-B1KmQWmI.js +0 -35
- package/dist/et-EE-D9SV0taO.js +0 -13
- package/dist/et-EE-l977xCZ_.js +0 -13
- package/dist/fi-FI-0ScajGUB.js +0 -13
- package/dist/fi-FI-C7GrKbXx.js +0 -13
- package/dist/fi-FI-DV1etLPT.js +0 -35
- package/dist/fr-FR-CqCcxkgA.js +0 -13
- package/dist/fr-FR-DZICoAHV.js +0 -35
- package/dist/fr-FR-o45TzYMp.js +0 -13
- package/dist/hr-HR-CoCrArfg.js +0 -13
- package/dist/hr-HR-D9bzCN_d.js +0 -35
- package/dist/hr-HR-YG9hvMMj.js +0 -13
- package/dist/hu-HU-BrxUJuJh.js +0 -13
- package/dist/hu-HU-C5p7RWWD.js +0 -35
- package/dist/hu-HU-DIurnBC3.js +0 -13
- package/dist/it-IT-CNS4NmYX.js +0 -13
- package/dist/it-IT-Cztl5jRY.js +0 -13
- package/dist/it-IT-mYyg3XGz.js +0 -35
- package/dist/ja-JP-BSYrPZsE.js +0 -35
- package/dist/ja-JP-DXkV1ta4.js +0 -13
- package/dist/lt-LT-BJTBEa5D.js +0 -13
- package/dist/lt-LT-D1viSP-v.js +0 -13
- package/dist/lt-LT-i-T_HQ42.js +0 -35
- package/dist/lv-LV-AkiOewnL.js +0 -13
- package/dist/lv-LV-BtX12dHJ.js +0 -35
- package/dist/lv-LV-GI-ZDM0K.js +0 -13
- package/dist/nl-NL-B6B4Z_tr.js +0 -13
- package/dist/nl-NL-PUQGh3Rp.js +0 -35
- package/dist/nl-NL-VneIcgWO.js +0 -13
- package/dist/no-NO-Dn1LUbDp.js +0 -13
- package/dist/no-NO-Dqp598Ox.js +0 -13
- package/dist/no-NO-kPnbGnBM.js +0 -35
- package/dist/payout-verification-manual-BJsf7QPE.js +0 -90
- package/dist/pl-PL-C-MmQaeR.js +0 -35
- package/dist/pl-PL-C1cP4Qpn.js +0 -13
- package/dist/pl-PL-Zdh_Xu43.js +0 -13
- package/dist/pt-BR-DkzLiK7Y.js +0 -13
- package/dist/pt-BR-DqLaaG4L.js +0 -13
- package/dist/pt-BR-Dw0UZ-Od.js +0 -35
- package/dist/pt-PT-CoTUf3zo.js +0 -13
- package/dist/pt-PT-DfVjLaAU.js +0 -35
- package/dist/pt-PT-uiREjC_e.js +0 -13
- package/dist/ro-RO-C835aMET.js +0 -13
- package/dist/ro-RO-ECJHARCT.js +0 -35
- package/dist/ro-RO-_HSYnLLu.js +0 -13
- package/dist/sk-SK-D6KtBU3q.js +0 -13
- package/dist/sk-SK-K03EHmJF.js +0 -13
- package/dist/sk-SK-rSmwmSCa.js +0 -35
- package/dist/sl-SI-CedEO3kf.js +0 -35
- package/dist/sl-SI-gM40Ay3W.js +0 -13
- package/dist/sl-SI-wYYQibM-.js +0 -13
- package/dist/sv-SE-BYUoi-08.js +0 -35
- package/dist/sv-SE-Bnhsdw8c.js +0 -13
- package/dist/sv-SE-uisfAT9L.js +0 -13
- package/dist/types/api/pciTemplate/usePciTemplate.d.ts +0 -14
- package/dist/types/components/Contract/hooks/useSalesChannelsSettings.d.ts +0 -3
- package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +0 -2
- package/dist/types/components/ui/atoms/Status/Status.types.d.ts +0 -8
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +0 -11
- package/dist/warning-filled-F54KIN6Z.js +0 -14
- /package/dist/types/api/{pciTemplate → pci}/useSignPci.d.ts +0 -0
- /package/dist/types/components/{ui/atoms → BusinessLines/fields}/Carousel/Carousel.d.ts +0 -0
- /package/dist/types/components/BusinessLines/tasks/BusinessLines/{ExistingBusinessLines → BusinessLineModal}/BusinessLineModal.d.ts +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7de49be3-fd71-4540-93fe-3721372c1d5f", e._sentryDebugIdIdentifier = "sentry-dbid-7de49be3-fd71-4540-93fe-3721372c1d5f");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,37 +10,39 @@
|
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { signal } from "@preact/signals";
|
|
12
12
|
import { useState, useEffect, useRef, useMemo, useCallback, useContext } from "preact/hooks";
|
|
13
|
-
import { b as useApiContext, j as useQuery, k as httpPost,
|
|
14
|
-
import { u as useTransferInstrument, m as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-
|
|
15
|
-
import {
|
|
16
|
-
import { E as ExperimentNames } from "./types-
|
|
17
|
-
import { I as InputText, S as SettingNames } from "./InputText-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { a as augmentWithCountryConfigs, g as getPropsFromConfigurations } from "./process-field-configurations-
|
|
21
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
22
|
-
import { A as AdyenKycSdkError, p as payoutAccountFormat, m as mapExistingFile, g as getPageName, u as useScenarioConfiguration, b as useUnifyLoadingStatus } from "./mapExistingFile-
|
|
23
|
-
import { u as useDataset, d as datasetIdentifier, C as Confirm, a as datasetUtilities } from "./useDataset-
|
|
24
|
-
import { c as currencyByCountry, C as Currencies } from "./types-
|
|
25
|
-
import { F as FormWrapper } from "./FormWrapper-
|
|
26
|
-
import { i as isValidationError, p as processValidationErrors, b as isIdDocumentUploadError, c as isBankStatementUploadError, a as isMaintenanceModeError, m as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable } from "./validationError-
|
|
27
|
-
import { a as getDocument, c as createDocumentRequest, d as documentApiUtils, b as getFileExtention } from "./documentUtils-
|
|
28
|
-
import { g as getLegalEntityNameBasedOnType, b as getPayoutAccountHolderName } from "./getName-
|
|
29
|
-
import { I as IFrameWidget, o as omitObscuredFieldsIfUnchanged } from "./iframeWidget-
|
|
13
|
+
import { b as useApiContext, j as useQuery, k as httpPost, m as httpGet, a1 as useMutation, a2 as useQueryClient, U as createLogger, C as CountryCodes, u as useTranslation, c as useLegalEntity, R as ROOT_LE, t as LegalEntityTypes, a as addResourceBundles, L as Loader, N as EntityTypes, _ as __variableDynamicImportRuntimeHelper, a0 as useAnalyticsContext, a3 as Icon, H as Typography, B as Button, aj as objectsDeepEqual, aU as doArraysMatch, X as isEmpty, p as useExperimentsContext, bf as getSdkToken, J as hasOwnEntityAssociationOfType, M as useAccountHolder, o as useSettingsContext, g as getLegalEntityCountry, an as Trans, bg as EEA_Countries, bh as isAccountIdentifierObscured, bi as hasEmptyFields, bj as extractFieldName, bk as concatenateFieldNames, ap as keysOf, az as getCapabilityProblems, P as TaskTypes, aA as cloneObject, x as skipToken } from "./StoreProvider-_QQynxk0.js";
|
|
14
|
+
import { u as useTransferInstrument, m as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-Bvh9p_HS.js";
|
|
15
|
+
import { u as useForm, F as Field, S as Select, L as LoaderWrapper } from "./useForm-SCWu19rh.js";
|
|
16
|
+
import { E as ExperimentNames } from "./types-B93Ai-fO.js";
|
|
17
|
+
import { I as InputText, S as SettingNames } from "./InputText-DJn5nzG0.js";
|
|
18
|
+
import { u as useGlobalDataSlice, a as useGlobalData, c as useResetGlobalData, b as useStateContext } from "./useGlobalData-C2odacHA.js";
|
|
19
|
+
import { c as useInvalidateRootLegalEntity, a as useToastContext } from "./useToastContext-BGkxz2AI.js";
|
|
20
|
+
import { a as augmentWithCountryConfigs, g as getPropsFromConfigurations } from "./process-field-configurations-C41JKZZ6.js";
|
|
21
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-L0ggRI0e.js";
|
|
22
|
+
import { A as AdyenKycSdkError, p as payoutAccountFormat, m as mapExistingFile, g as getPageName, u as useScenarioConfiguration, b as useUnifyLoadingStatus } from "./mapExistingFile-lCDb_PhK.js";
|
|
23
|
+
import { u as useDataset, d as datasetIdentifier, C as Confirm, a as datasetUtilities } from "./useDataset-BHoDL5D6.js";
|
|
24
|
+
import { c as currencyByCountry, C as Currencies } from "./types-E18sv3fQ.js";
|
|
25
|
+
import { F as FormWrapper } from "./FormWrapper-DzAkc4KF.js";
|
|
26
|
+
import { i as isValidationError, p as processValidationErrors, b as isIdDocumentUploadError, c as isBankStatementUploadError, a as isMaintenanceModeError, m as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable } from "./validationError-BY8rwcKJ.js";
|
|
27
|
+
import { f as fileToBase64, a as getDocument, c as createDocumentRequest, d as documentApiUtils, b as getFileExtention } from "./documentUtils-feD3RgJ6.js";
|
|
28
|
+
import { g as getLegalEntityNameBasedOnType, b as getPayoutAccountHolderName } from "./getName-DftHbR4I.js";
|
|
29
|
+
import { I as IFrameWidget, o as omitObscuredFieldsIfUnchanged } from "./iframeWidget-C8wyKuCq.js";
|
|
30
30
|
import { Show } from "@preact/signals/utils";
|
|
31
|
-
import { M as Modal } from "./Modal-
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
31
|
+
import { M as Modal } from "./Modal-C89D3p56.js";
|
|
32
|
+
import { s as summaryStep } from "./Summary-jCIFPrTE.js";
|
|
33
|
+
import { c as createFormUtils, H as Header, E as ErrorPanel, e as isNotEmptyValidator, m as mergeFieldMetadataIntoProps, d as getFieldProps, C as CountryField, a as Link, g as getFormProps, s as summaryItem } from "./CountryField-B79la7c-.js";
|
|
34
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-CDCwVlgp.js";
|
|
35
|
+
import { i as useCapabilityProblems, j as getProblemsForEntity, D as DropzoneFile, p as bytesToSize, l as defaultFileValidationOptions, o as fileValidationRules, S as StateContextSetter, q as DocumentGuidance, t as TextArea, m as makeMask, n as numericInputs, c as nonInputs, s as spacer, k as customInputs, v as validatePatternOnBlur, r as resolveFieldMetadata, M as MaskedInput, b as alphanumericInputs, u as uppercase, d as alphaInputs, I as Image, R as RadioGroupCard, C as ContextGuidance, x as createFormRules } from "./fieldConfigurations-Bor1NtgA.js";
|
|
35
36
|
import cx from "classnames";
|
|
36
|
-
import { memo, lazy } from "preact/compat";
|
|
37
|
+
import { memo, useRef as useRef$1, useState as useState$1, useMemo as useMemo$1, useEffect as useEffect$1, lazy } from "preact/compat";
|
|
38
|
+
import { u as useUnincorporatedPartnershipMembers } from "./useUnincorporatedPartnershipMembers-CTtyjp6h.js";
|
|
37
39
|
import { b as bankStatementDescriptionPattern } from "./basePatterns-BwdnMQxI.js";
|
|
38
40
|
import { createContext } from "preact";
|
|
39
|
-
import { a as Alert } from "./Alert-
|
|
40
|
-
import { A as ActionBar } from "./
|
|
41
|
+
import { a as Alert } from "./Alert-CzqTssej.js";
|
|
42
|
+
import { A as ActionBar } from "./ActionBar-CVuUP-mY.js";
|
|
41
43
|
import OpenBankingSDK from "@adyen/openbankingsdk";
|
|
42
44
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
43
|
-
import { C as Card } from "./Card-
|
|
45
|
+
import { C as Card } from "./Card-Cka2XXoj.js";
|
|
44
46
|
const getCheck = async (legalEntityId, baseUrl, data) => {
|
|
45
47
|
return httpPost(
|
|
46
48
|
{
|
|
@@ -331,7 +333,7 @@ function PayoutDetailsPage({
|
|
|
331
333
|
);
|
|
332
334
|
const capabilityProblems = useCapabilityProblems();
|
|
333
335
|
addResourceBundles(i18n, i18n.language, [
|
|
334
|
-
{ ns: "banking", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-
|
|
336
|
+
{ ns: "banking", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-D26PyOmu.js"), "../language/cs-CZ.json": () => import("./cs-CZ-C3WsXodG.js"), "../language/da-DK.json": () => import("./da-DK-BRCRHbdD.js"), "../language/de-DE.json": () => import("./de-DE-DhwZpGcF.js"), "../language/el-GR.json": () => import("./el-GR-CPvcb2_O.js"), "../language/en-US.json": () => import("./en-US-DwpcyeTb.js"), "../language/es-ES.json": () => import("./es-ES-p03wSF0j.js"), "../language/et-EE.json": () => import("./et-EE-DwU9PpSw.js"), "../language/fi-FI.json": () => import("./fi-FI-D6UZTiLe.js"), "../language/fr-FR.json": () => import("./fr-FR-jXToKR-E.js"), "../language/hr-HR.json": () => import("./hr-HR-Dcv0VrbJ.js"), "../language/hu-HU.json": () => import("./hu-HU-KqfViqRG.js"), "../language/it-IT.json": () => import("./it-IT-DgGk7YK7.js"), "../language/ja-JP.json": () => import("./ja-JP-CY2oljJM.js"), "../language/lt-LT.json": () => import("./lt-LT-D8cex0eq.js"), "../language/lv-LV.json": () => import("./lv-LV-BUGQrsDw.js"), "../language/nl-NL.json": () => import("./nl-NL-CagNun1T.js"), "../language/no-NO.json": () => import("./no-NO-D4q0sOO5.js"), "../language/pl-PL.json": () => import("./pl-PL-LSqjGZHp.js"), "../language/pt-BR.json": () => import("./pt-BR-FCK1QNOs.js"), "../language/pt-PT.json": () => import("./pt-PT-U2s6koli.js"), "../language/ro-RO.json": () => import("./ro-RO-BvP4CrrF.js"), "../language/sk-SK.json": () => import("./sk-SK-DFvk5ao5.js"), "../language/sl-SI.json": () => import("./sl-SI-Bj-INVFz.js"), "../language/sv-SE.json": () => import("./sv-SE-Dg9DC29v.js") }), `../language/${i18n.language}.json`, 3) }
|
|
335
337
|
]);
|
|
336
338
|
if (!rootLe || associatedLeIsLoading) {
|
|
337
339
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
@@ -369,6 +371,7 @@ function FilePicker({
|
|
|
369
371
|
iconPrefix = "generic-document",
|
|
370
372
|
enableTracking = false,
|
|
371
373
|
id,
|
|
374
|
+
loading,
|
|
372
375
|
// file validation options
|
|
373
376
|
allowedFileTypes,
|
|
374
377
|
maxSize,
|
|
@@ -436,7 +439,8 @@ function FilePicker({
|
|
|
436
439
|
file,
|
|
437
440
|
onDelete: () => handleFileDelete(file),
|
|
438
441
|
errorMessage,
|
|
439
|
-
iconPrefix
|
|
442
|
+
iconPrefix,
|
|
443
|
+
loading
|
|
440
444
|
},
|
|
441
445
|
file
|
|
442
446
|
)),
|
|
@@ -487,14 +491,14 @@ function FilePicker({
|
|
|
487
491
|
const bankDocument = "adyen-kyc-bank-document";
|
|
488
492
|
const bankDocumentDocumentUpload = "adyen-kyc-bank-document-document-upload";
|
|
489
493
|
const bankDocumentDocumentDescription = "adyen-kyc-bank-document-document-description";
|
|
490
|
-
const styles$
|
|
494
|
+
const styles$5 = {
|
|
491
495
|
bankDocument,
|
|
492
496
|
bankDocumentDocumentUpload,
|
|
493
497
|
bankDocumentDocumentDescription
|
|
494
498
|
};
|
|
495
499
|
const documentRequirements = "adyen-kyc-document-requirements";
|
|
496
500
|
const documentRequirementsSubtitle = "adyen-kyc-document-requirements-subtitle";
|
|
497
|
-
const styles$
|
|
501
|
+
const styles$4 = {
|
|
498
502
|
documentRequirements,
|
|
499
503
|
documentRequirementsSubtitle
|
|
500
504
|
};
|
|
@@ -679,19 +683,33 @@ const BankDocumentRequirements = ({
|
|
|
679
683
|
documentType,
|
|
680
684
|
documentModifiers
|
|
681
685
|
);
|
|
682
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
683
|
-
/* @__PURE__ */ jsx("strong", { className: styles$
|
|
686
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$4.documentRequirements, children: [
|
|
687
|
+
/* @__PURE__ */ jsx("strong", { className: styles$4.documentRequirementsSubtitle, children: commonT(($) => $["documentRequirements"]) }),
|
|
684
688
|
/* @__PURE__ */ jsx("ul", { children: documentRequirements2.map(({ key, options }, i) => /* @__PURE__ */ jsx("li", { "data-testid": key, children: t(($) => $[key], options?.values) }, i)) })
|
|
685
689
|
] });
|
|
686
690
|
};
|
|
687
691
|
const bankDocumentValidationRules = {
|
|
688
692
|
description: {
|
|
689
693
|
modes: ["blur"],
|
|
690
|
-
validate: (
|
|
694
|
+
validate: (description2) => description2 ? bankStatementDescriptionPattern.test(description2) : true,
|
|
691
695
|
errorMessage: "invalidFormatBankStatementDescription"
|
|
692
696
|
}
|
|
693
697
|
};
|
|
694
|
-
const
|
|
698
|
+
const getValidationIssuesKeys = (validationResponse) => {
|
|
699
|
+
const issues2 = [];
|
|
700
|
+
const { blurryOrLowQuality, documentType } = validationResponse;
|
|
701
|
+
if (blurryOrLowQuality) {
|
|
702
|
+
issues2.push("documentIsntReadable");
|
|
703
|
+
}
|
|
704
|
+
if (documentType === "other" || documentType !== "bankDocument") {
|
|
705
|
+
issues2.push("documentIsNotBankDocument");
|
|
706
|
+
}
|
|
707
|
+
if (!documentType || documentType === "other") {
|
|
708
|
+
issues2.push("documentNameMissing");
|
|
709
|
+
}
|
|
710
|
+
return issues2;
|
|
711
|
+
};
|
|
712
|
+
const CHARACTERS_LIMIT$1 = 200;
|
|
695
713
|
const bankDocumentFields = [
|
|
696
714
|
"documentType",
|
|
697
715
|
"bankStatementDocument",
|
|
@@ -706,7 +724,7 @@ function BankDocument(props) {
|
|
|
706
724
|
validators,
|
|
707
725
|
data: bankData,
|
|
708
726
|
id,
|
|
709
|
-
description,
|
|
727
|
+
description: description2,
|
|
710
728
|
heading,
|
|
711
729
|
formIsActive,
|
|
712
730
|
fieldValidationErrors,
|
|
@@ -789,9 +807,9 @@ function BankDocument(props) {
|
|
|
789
807
|
}),
|
|
790
808
|
[legalEntity, associatedLegalArrangement, unincorporatedPartnershipMembers]
|
|
791
809
|
);
|
|
792
|
-
return /* @__PURE__ */ jsxs("form", { className: styles$
|
|
810
|
+
return /* @__PURE__ */ jsxs("form", { className: styles$5.bankDocument, children: [
|
|
793
811
|
/* @__PURE__ */ jsx(StateContextSetter, { owner: id, stateRef }),
|
|
794
|
-
heading && /* @__PURE__ */ jsx(Header, { title: heading, description }),
|
|
812
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading, description: description2 }),
|
|
795
813
|
/* @__PURE__ */ jsx(
|
|
796
814
|
ErrorPanel,
|
|
797
815
|
{
|
|
@@ -836,7 +854,7 @@ function BankDocument(props) {
|
|
|
836
854
|
data.documentType || usingExistingUploadedDocuments ? /* @__PURE__ */ jsx(
|
|
837
855
|
Field,
|
|
838
856
|
{
|
|
839
|
-
className: cx(styles$
|
|
857
|
+
className: cx(styles$5.bankDocumentDocumentUpload, "adyen-kyc-upload-field"),
|
|
840
858
|
name: "bankStatementDocument",
|
|
841
859
|
isValid: valid.bankStatementDocument,
|
|
842
860
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
@@ -857,7 +875,7 @@ function BankDocument(props) {
|
|
|
857
875
|
data.documentType || usingExistingUploadedDocuments ? /* @__PURE__ */ jsx(
|
|
858
876
|
Field,
|
|
859
877
|
{
|
|
860
|
-
className: cx(styles$
|
|
878
|
+
className: cx(styles$5.bankDocumentDocumentDescription),
|
|
861
879
|
name: "description",
|
|
862
880
|
label: formUtils.getLabel("bankDocumentFileDescription"),
|
|
863
881
|
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
@@ -868,7 +886,7 @@ function BankDocument(props) {
|
|
|
868
886
|
...childProps,
|
|
869
887
|
name: "description",
|
|
870
888
|
value: data.description,
|
|
871
|
-
maxLength: CHARACTERS_LIMIT,
|
|
889
|
+
maxLength: CHARACTERS_LIMIT$1,
|
|
872
890
|
onInput: handleChangeFor("description"),
|
|
873
891
|
"aria-invalid": !valid.description
|
|
874
892
|
}
|
|
@@ -881,6 +899,307 @@ const MemoizedBankDocument = memo(
|
|
|
881
899
|
BankDocument,
|
|
882
900
|
(prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.heading === nextProps.heading && prevProps.formIsActive === nextProps.formIsActive
|
|
883
901
|
);
|
|
902
|
+
const validateDocument = async (context, document2) => {
|
|
903
|
+
const { baseUrl, rootLegalEntityId } = context;
|
|
904
|
+
return httpPost(
|
|
905
|
+
{
|
|
906
|
+
baseUrl,
|
|
907
|
+
path: `legalEntities/${rootLegalEntityId}/genai/classify`
|
|
908
|
+
},
|
|
909
|
+
document2
|
|
910
|
+
);
|
|
911
|
+
};
|
|
912
|
+
const useValidateDocument = (options) => {
|
|
913
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
914
|
+
return useMutation({
|
|
915
|
+
mutationFn: (payload) => validateDocument(
|
|
916
|
+
{ rootLegalEntityId: rootLegalEntityId.value, baseUrl: baseUrl.value },
|
|
917
|
+
payload
|
|
918
|
+
),
|
|
919
|
+
retry: 0,
|
|
920
|
+
...options
|
|
921
|
+
});
|
|
922
|
+
};
|
|
923
|
+
const bankDocumentPage = "adyen-kyc-bank-document-page";
|
|
924
|
+
const bankDocumentClassification = "adyen-kyc-bank-document-classification";
|
|
925
|
+
const requirementsList = "adyen-kyc-requirements-list";
|
|
926
|
+
const filePickerDisabled = "adyen-kyc-file-picker-disabled";
|
|
927
|
+
const reviewModal = "adyen-kyc-review-modal";
|
|
928
|
+
const preview = "adyen-kyc-preview";
|
|
929
|
+
const previewImage = "adyen-kyc-preview-image";
|
|
930
|
+
const content = "adyen-kyc-content";
|
|
931
|
+
const title$1 = "adyen-kyc-title";
|
|
932
|
+
const description = "adyen-kyc-description";
|
|
933
|
+
const issues = "adyen-kyc-issues";
|
|
934
|
+
const actions = "adyen-kyc-actions";
|
|
935
|
+
const confirmationModal = "adyen-kyc-confirmation-modal";
|
|
936
|
+
const styles$3 = {
|
|
937
|
+
bankDocumentPage,
|
|
938
|
+
bankDocumentClassification,
|
|
939
|
+
requirementsList,
|
|
940
|
+
filePickerDisabled,
|
|
941
|
+
reviewModal,
|
|
942
|
+
preview,
|
|
943
|
+
previewImage,
|
|
944
|
+
content,
|
|
945
|
+
title: title$1,
|
|
946
|
+
description,
|
|
947
|
+
issues,
|
|
948
|
+
actions,
|
|
949
|
+
confirmationModal
|
|
950
|
+
};
|
|
951
|
+
const CHARACTERS_LIMIT = 200;
|
|
952
|
+
const bankDocumentClassificationFields = [
|
|
953
|
+
"bankStatementDocument",
|
|
954
|
+
"description"
|
|
955
|
+
];
|
|
956
|
+
function BankDocumentClassification(props) {
|
|
957
|
+
const {
|
|
958
|
+
legalEntity,
|
|
959
|
+
optionalFields,
|
|
960
|
+
validators,
|
|
961
|
+
data: bankData,
|
|
962
|
+
id,
|
|
963
|
+
description: description2,
|
|
964
|
+
heading,
|
|
965
|
+
formIsActive,
|
|
966
|
+
fieldValidationErrors,
|
|
967
|
+
formVerificationErrors,
|
|
968
|
+
shouldValidate
|
|
969
|
+
} = props;
|
|
970
|
+
const { t } = useTranslation("banking");
|
|
971
|
+
const { t: commonT } = useTranslation("common");
|
|
972
|
+
const stateRef = useRef$1({ setState: null });
|
|
973
|
+
const [showReviewModal, setShowReviewModal] = useState$1(false);
|
|
974
|
+
const [showConfirmationModal, setShowConfirmationModal] = useState$1(false);
|
|
975
|
+
const [validationResponse, setValidationResponse] = useState$1(
|
|
976
|
+
null
|
|
977
|
+
);
|
|
978
|
+
const logger2 = createLogger();
|
|
979
|
+
const isBankStatementOptional = optionalFields?.includes("bankStatementDocument") ?? false;
|
|
980
|
+
const formUtils = createFormUtils(props, commonT);
|
|
981
|
+
const bankStatementValidationOptions = useMemo$1(
|
|
982
|
+
() => ({
|
|
983
|
+
...defaultFileValidationOptions,
|
|
984
|
+
isOptional: isBankStatementOptional
|
|
985
|
+
}),
|
|
986
|
+
[isBankStatementOptional]
|
|
987
|
+
);
|
|
988
|
+
const rules2 = useMemo$1(
|
|
989
|
+
() => ({
|
|
990
|
+
...validators || bankDocumentValidationRules,
|
|
991
|
+
bankStatementDocument: fileValidationRules(bankStatementValidationOptions)
|
|
992
|
+
}),
|
|
993
|
+
[bankStatementValidationOptions, validators]
|
|
994
|
+
);
|
|
995
|
+
const { handleChangeFor, data, setData, valid, fieldProblems, errors, triggerValidation } = useForm({
|
|
996
|
+
...props,
|
|
997
|
+
schema: bankDocumentClassificationFields,
|
|
998
|
+
defaultData: bankData,
|
|
999
|
+
rules: rules2,
|
|
1000
|
+
fieldProblems: fieldValidationErrors,
|
|
1001
|
+
shouldValidate
|
|
1002
|
+
});
|
|
1003
|
+
const validateDocumentMutation = useValidateDocument({
|
|
1004
|
+
onSuccess: (response) => {
|
|
1005
|
+
setValidationResponse(response);
|
|
1006
|
+
if (response?.blurryOrLowQuality || response?.documentType === "other" || response?.documentType !== "bankDocument") {
|
|
1007
|
+
setShowReviewModal(true);
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
onError: (error) => {
|
|
1011
|
+
console.error("Document validation failed:", error);
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
const handleDocumentUpload = async (files) => {
|
|
1015
|
+
setData("bankStatementDocument", files);
|
|
1016
|
+
if (files.length > 0) {
|
|
1017
|
+
const file = files[0];
|
|
1018
|
+
if (file && file instanceof File) {
|
|
1019
|
+
try {
|
|
1020
|
+
const base64Content = await fileToBase64(file);
|
|
1021
|
+
const document2 = {
|
|
1022
|
+
documentType: "bankStatement",
|
|
1023
|
+
fileName: file.name,
|
|
1024
|
+
attachments: [
|
|
1025
|
+
{
|
|
1026
|
+
content: base64Content,
|
|
1027
|
+
pageName: file.name
|
|
1028
|
+
}
|
|
1029
|
+
]
|
|
1030
|
+
};
|
|
1031
|
+
validateDocumentMutation.mutate(document2);
|
|
1032
|
+
} catch (error) {
|
|
1033
|
+
logger2.error("Error processing document:", error);
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
useEffect$1(() => {
|
|
1039
|
+
if (formIsActive) {
|
|
1040
|
+
triggerValidation();
|
|
1041
|
+
}
|
|
1042
|
+
}, [formIsActive, triggerValidation]);
|
|
1043
|
+
const alreadyUploadedDocuments = useMemo$1(
|
|
1044
|
+
() => bankData?.bankStatementDocument ?? [],
|
|
1045
|
+
[bankData?.bankStatementDocument]
|
|
1046
|
+
);
|
|
1047
|
+
useEffect$1(() => {
|
|
1048
|
+
if (alreadyUploadedDocuments.length > 0) {
|
|
1049
|
+
setData("bankStatementDocument", alreadyUploadedDocuments);
|
|
1050
|
+
if (bankData?.description) setData("description", bankData.description);
|
|
1051
|
+
triggerValidation();
|
|
1052
|
+
}
|
|
1053
|
+
}, [alreadyUploadedDocuments, bankData?.description, setData, triggerValidation]);
|
|
1054
|
+
useEffect$1(() => {
|
|
1055
|
+
stateRef.current?.setState?.({
|
|
1056
|
+
type: "addToState",
|
|
1057
|
+
value: {
|
|
1058
|
+
data,
|
|
1059
|
+
valid,
|
|
1060
|
+
errors,
|
|
1061
|
+
fieldProblems,
|
|
1062
|
+
dataStoreId: id,
|
|
1063
|
+
schema: bankDocumentClassificationFields
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
}, [data, valid, errors, fieldProblems, id]);
|
|
1067
|
+
const documentsModifiers = useMemo$1(
|
|
1068
|
+
() => ({
|
|
1069
|
+
rootEntityType: legalEntity.type,
|
|
1070
|
+
rootEntityLegalName: getLegalEntityNameBasedOnType(legalEntity)
|
|
1071
|
+
}),
|
|
1072
|
+
[legalEntity]
|
|
1073
|
+
);
|
|
1074
|
+
const handleUploadNewDocument = () => {
|
|
1075
|
+
setShowReviewModal(false);
|
|
1076
|
+
setData("bankStatementDocument", []);
|
|
1077
|
+
setValidationResponse(null);
|
|
1078
|
+
};
|
|
1079
|
+
const handleContinueAnyway = () => {
|
|
1080
|
+
setShowConfirmationModal(true);
|
|
1081
|
+
};
|
|
1082
|
+
const handleConfirmationCancel = () => {
|
|
1083
|
+
setShowConfirmationModal(false);
|
|
1084
|
+
};
|
|
1085
|
+
const handleUseDocument = () => {
|
|
1086
|
+
setShowConfirmationModal(false);
|
|
1087
|
+
setShowReviewModal(false);
|
|
1088
|
+
};
|
|
1089
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$3.bankDocumentPage, children: [
|
|
1090
|
+
/* @__PURE__ */ jsxs("form", { className: styles$3.bankDocumentClassification, children: [
|
|
1091
|
+
/* @__PURE__ */ jsx(StateContextSetter, { owner: id, stateRef }),
|
|
1092
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading, description: description2 }),
|
|
1093
|
+
/* @__PURE__ */ jsx(
|
|
1094
|
+
ErrorPanel,
|
|
1095
|
+
{
|
|
1096
|
+
verificationErrors: formVerificationErrors,
|
|
1097
|
+
validationErrors: fieldValidationErrors,
|
|
1098
|
+
formUtils,
|
|
1099
|
+
id: "ariaErrorField"
|
|
1100
|
+
}
|
|
1101
|
+
),
|
|
1102
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
1103
|
+
/* @__PURE__ */ jsx("h3", { className: styles$3.requirementsList, children: t(($) => $["documentRequirements"]) }),
|
|
1104
|
+
/* @__PURE__ */ jsxs("ul", { className: styles$3.requirementsList, children: [
|
|
1105
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementNameOrBusiness"], {
|
|
1106
|
+
businessName: documentsModifiers.rootEntityLegalName
|
|
1107
|
+
}) }),
|
|
1108
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementAccountNumber"]) }),
|
|
1109
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementBankInfo"]) })
|
|
1110
|
+
] })
|
|
1111
|
+
] }),
|
|
1112
|
+
/* @__PURE__ */ jsx(
|
|
1113
|
+
Field,
|
|
1114
|
+
{
|
|
1115
|
+
className: cx("adyen-kyc-upload-field"),
|
|
1116
|
+
name: "bankStatementDocument",
|
|
1117
|
+
isValid: valid.bankStatementDocument,
|
|
1118
|
+
children: (childProps) => /* @__PURE__ */ jsx("div", { className: validateDocumentMutation.isPending ? styles$3.filePickerDisabled : "", children: /* @__PURE__ */ jsx(
|
|
1119
|
+
FilePicker,
|
|
1120
|
+
{
|
|
1121
|
+
...childProps,
|
|
1122
|
+
name: "bankStatementDocument",
|
|
1123
|
+
files: data.bankStatementDocument ?? [],
|
|
1124
|
+
setFiles: handleDocumentUpload,
|
|
1125
|
+
isValid: valid.bankStatementDocument ?? isBankStatementOptional,
|
|
1126
|
+
errorMessage: errors.bankStatementDocument?.errorMessage,
|
|
1127
|
+
loading: validateDocumentMutation.isPending,
|
|
1128
|
+
...bankStatementValidationOptions
|
|
1129
|
+
}
|
|
1130
|
+
) })
|
|
1131
|
+
}
|
|
1132
|
+
),
|
|
1133
|
+
data.bankStatementDocument?.length ? /* @__PURE__ */ jsx(
|
|
1134
|
+
Field,
|
|
1135
|
+
{
|
|
1136
|
+
className: "adyen-kyc-document-description",
|
|
1137
|
+
name: "description",
|
|
1138
|
+
label: formUtils.getLabel("bankDocumentFileDescription"),
|
|
1139
|
+
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
1140
|
+
isValid: valid.description,
|
|
1141
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1142
|
+
TextArea,
|
|
1143
|
+
{
|
|
1144
|
+
...childProps,
|
|
1145
|
+
name: "description",
|
|
1146
|
+
value: data.description,
|
|
1147
|
+
maxLength: CHARACTERS_LIMIT,
|
|
1148
|
+
onInput: handleChangeFor("description"),
|
|
1149
|
+
"aria-invalid": !valid.description
|
|
1150
|
+
}
|
|
1151
|
+
)
|
|
1152
|
+
}
|
|
1153
|
+
) : void 0
|
|
1154
|
+
] }),
|
|
1155
|
+
showReviewModal && /* @__PURE__ */ jsx(
|
|
1156
|
+
Modal,
|
|
1157
|
+
{
|
|
1158
|
+
ariaLabel: t(($) => $["reviewDocument"]),
|
|
1159
|
+
size: "large",
|
|
1160
|
+
onClose: () => setShowReviewModal(false),
|
|
1161
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles$3.reviewModal, children: [
|
|
1162
|
+
/* @__PURE__ */ jsx("div", { className: styles$3.preview, children: /* @__PURE__ */ jsx("div", { className: styles$3.previewImage, children: data.bankStatementDocument?.[0] ? /* @__PURE__ */ jsx(
|
|
1163
|
+
"img",
|
|
1164
|
+
{
|
|
1165
|
+
src: URL.createObjectURL(data.bankStatementDocument[0]),
|
|
1166
|
+
alt: t(($) => $["reviewDocument"])
|
|
1167
|
+
}
|
|
1168
|
+
) : void 0 }) }),
|
|
1169
|
+
/* @__PURE__ */ jsxs("div", { className: styles$3.content, children: [
|
|
1170
|
+
/* @__PURE__ */ jsx("h2", { className: styles$3.title, children: t(($) => $["reviewDocument"]) }),
|
|
1171
|
+
/* @__PURE__ */ jsx("p", { className: styles$3.description, children: t(($) => $["reviewDocumentDescription"]) }),
|
|
1172
|
+
/* @__PURE__ */ jsx("ul", { className: styles$3.issues, children: validationResponse && getValidationIssuesKeys(validationResponse).map((issue, index) => /* @__PURE__ */ jsx("li", { children: t(($) => $[issue]) }, index)) }),
|
|
1173
|
+
/* @__PURE__ */ jsxs("div", { className: styles$3.actions, children: [
|
|
1174
|
+
/* @__PURE__ */ jsx(Button, { variant: "primary", onClick: handleUploadNewDocument, children: t(($) => $["uploadNewDocument"]) }),
|
|
1175
|
+
/* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleContinueAnyway, children: commonT(($) => $["continue"]) })
|
|
1176
|
+
] })
|
|
1177
|
+
] })
|
|
1178
|
+
] })
|
|
1179
|
+
}
|
|
1180
|
+
),
|
|
1181
|
+
showConfirmationModal && /* @__PURE__ */ jsx(
|
|
1182
|
+
Modal,
|
|
1183
|
+
{
|
|
1184
|
+
ariaLabel: t(($) => $["useThisDocument"]),
|
|
1185
|
+
size: "small",
|
|
1186
|
+
onClose: handleConfirmationCancel,
|
|
1187
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles$3.confirmationModal, children: [
|
|
1188
|
+
/* @__PURE__ */ jsx("h2", { className: styles$3.title, children: t(($) => $["useThisDocument"]) }),
|
|
1189
|
+
/* @__PURE__ */ jsx("p", { className: styles$3.description, children: t(($) => $["thisDocumentNeedstoBeReviewedManually"]) }),
|
|
1190
|
+
/* @__PURE__ */ jsxs("div", { className: styles$3.actions, children: [
|
|
1191
|
+
/* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleConfirmationCancel, children: commonT(($) => $["cancel"]) }),
|
|
1192
|
+
/* @__PURE__ */ jsx(Button, { variant: "primary", onClick: handleUseDocument, children: t(($) => $["useDocument"]) })
|
|
1193
|
+
] })
|
|
1194
|
+
] })
|
|
1195
|
+
}
|
|
1196
|
+
)
|
|
1197
|
+
] });
|
|
1198
|
+
}
|
|
1199
|
+
const MemoizedBankDocumentClassification = memo(
|
|
1200
|
+
BankDocumentClassification,
|
|
1201
|
+
(prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.heading === nextProps.heading && prevProps.formIsActive === nextProps.formIsActive
|
|
1202
|
+
);
|
|
884
1203
|
const bankVerificationValidationRules = {
|
|
885
1204
|
verifiedAccountHolder: {
|
|
886
1205
|
modes: ["blur"],
|
|
@@ -2296,7 +2615,7 @@ const checkGuidance = "adyen-kyc-check-guidance";
|
|
|
2296
2615
|
const checkGuidanceImage = "adyen-kyc-check-guidance-image";
|
|
2297
2616
|
const checkGuidanceAnnotated = "adyen-kyc-check-guidance-annotated";
|
|
2298
2617
|
const checkGuidanceInactive = "adyen-kyc-check-guidance-inactive";
|
|
2299
|
-
const styles$
|
|
2618
|
+
const styles$2 = {
|
|
2300
2619
|
checkGuidance,
|
|
2301
2620
|
checkGuidanceImage,
|
|
2302
2621
|
checkGuidanceAnnotated,
|
|
@@ -2306,13 +2625,13 @@ const usCheckAccount = lazy(() => import("./us-check-account-number-C7KE5YzX.js"
|
|
|
2306
2625
|
const usCheckRouting = lazy(() => import("./us-check-routing-number-DUbhsYAR.js"));
|
|
2307
2626
|
const usCheck = lazy(() => import("./us-check-CYY6Crhr.js"));
|
|
2308
2627
|
const CheckGuidance = ({ annotated }) => {
|
|
2309
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
2628
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$2.checkGuidance, children: [
|
|
2310
2629
|
/* @__PURE__ */ jsx(
|
|
2311
2630
|
Image,
|
|
2312
2631
|
{
|
|
2313
2632
|
lazyLoadedImage: usCheckAccount,
|
|
2314
|
-
className: cx(styles$
|
|
2315
|
-
[styles$
|
|
2633
|
+
className: cx(styles$2.checkGuidanceImage, styles$2.checkGuidanceAnnotated, {
|
|
2634
|
+
[styles$2.checkGuidanceInactive]: annotated !== "account"
|
|
2316
2635
|
})
|
|
2317
2636
|
}
|
|
2318
2637
|
),
|
|
@@ -2320,12 +2639,12 @@ const CheckGuidance = ({ annotated }) => {
|
|
|
2320
2639
|
Image,
|
|
2321
2640
|
{
|
|
2322
2641
|
lazyLoadedImage: usCheckRouting,
|
|
2323
|
-
className: cx(styles$
|
|
2324
|
-
[styles$
|
|
2642
|
+
className: cx(styles$2.checkGuidanceImage, styles$2.checkGuidanceAnnotated, {
|
|
2643
|
+
[styles$2.checkGuidanceInactive]: annotated !== "routing"
|
|
2325
2644
|
})
|
|
2326
2645
|
}
|
|
2327
2646
|
),
|
|
2328
|
-
/* @__PURE__ */ jsx(Image, { lazyLoadedImage: usCheck, className: styles$
|
|
2647
|
+
/* @__PURE__ */ jsx(Image, { lazyLoadedImage: usCheck, className: styles$2.checkGuidanceImage })
|
|
2329
2648
|
] });
|
|
2330
2649
|
};
|
|
2331
2650
|
const payoutAccountFields = [
|
|
@@ -2380,11 +2699,12 @@ function PayoutAccount(props) {
|
|
|
2380
2699
|
payoutAccountFormat.value = accountFormat2;
|
|
2381
2700
|
};
|
|
2382
2701
|
const localCurrency = isCrossBorderPayoutsEnabled ? isLocalCurrency(country, preferredCurrencyCode) : true;
|
|
2702
|
+
const isEUR = preferredCurrencyCode === "EUR";
|
|
2383
2703
|
useEffect(() => {
|
|
2384
2704
|
if (!isCrossBorderPayoutsEnabled) {
|
|
2385
2705
|
return;
|
|
2386
2706
|
}
|
|
2387
|
-
if (
|
|
2707
|
+
if (isEUR && localCurrency) {
|
|
2388
2708
|
handleAccountFormatChange?.("iban");
|
|
2389
2709
|
return;
|
|
2390
2710
|
}
|
|
@@ -2410,7 +2730,7 @@ function PayoutAccount(props) {
|
|
|
2410
2730
|
}
|
|
2411
2731
|
),
|
|
2412
2732
|
showCheckGuidance ? /* @__PURE__ */ jsx(CheckGuidance, { annotated: checkAnnotation }) : void 0,
|
|
2413
|
-
bankAccountFormatSelectionAllowed && shouldShowPayoutAccountFormatSelector(country) && accountFormat && localCurrency && /* @__PURE__ */ jsx(
|
|
2733
|
+
bankAccountFormatSelectionAllowed && shouldShowPayoutAccountFormatSelector(country) && accountFormat && localCurrency && !isEUR && /* @__PURE__ */ jsx(
|
|
2414
2734
|
BankAccountFormat,
|
|
2415
2735
|
{
|
|
2416
2736
|
bankAccountFormat: accountFormat,
|
|
@@ -2492,8 +2812,8 @@ const PreferredCurrency = (props) => {
|
|
|
2492
2812
|
disabled: true
|
|
2493
2813
|
};
|
|
2494
2814
|
}
|
|
2495
|
-
const
|
|
2496
|
-
const label =
|
|
2815
|
+
const description2 = currencyDescriptionByCode.get(currency);
|
|
2816
|
+
const label = description2 ? `${description2} (${currency})` : currency;
|
|
2497
2817
|
return {
|
|
2498
2818
|
id: currency,
|
|
2499
2819
|
name: label
|
|
@@ -2528,18 +2848,84 @@ const PreferredCurrency = (props) => {
|
|
|
2528
2848
|
}
|
|
2529
2849
|
);
|
|
2530
2850
|
};
|
|
2531
|
-
const
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2851
|
+
const getMustHaveSameAccountHolderNameTransKey = (legalEntityType) => {
|
|
2852
|
+
switch (legalEntityType) {
|
|
2853
|
+
case "individual":
|
|
2854
|
+
case "soleProprietorship":
|
|
2855
|
+
return "theBankAccountHolderMustBeInYourName";
|
|
2856
|
+
case "organization":
|
|
2857
|
+
case "trust":
|
|
2858
|
+
case "unincorporatedPartnership":
|
|
2859
|
+
return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
|
|
2860
|
+
default:
|
|
2861
|
+
return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
|
|
2862
|
+
}
|
|
2539
2863
|
};
|
|
2540
|
-
const
|
|
2541
|
-
|
|
2542
|
-
|
|
2864
|
+
const payoutModalContent = "adyen-kyc-payout-modal-content";
|
|
2865
|
+
const title = "adyen-kyc-title";
|
|
2866
|
+
const section = "adyen-kyc-section";
|
|
2867
|
+
const sectionTitle = "adyen-kyc-section-title";
|
|
2868
|
+
const sectionText = "adyen-kyc-section-text";
|
|
2869
|
+
const simplerTermsBox = "adyen-kyc-simpler-terms-box";
|
|
2870
|
+
const simplerTermsTitle = "adyen-kyc-simpler-terms-title";
|
|
2871
|
+
const bulletList = "adyen-kyc-bullet-list";
|
|
2872
|
+
const styles$1 = {
|
|
2873
|
+
payoutModalContent,
|
|
2874
|
+
title,
|
|
2875
|
+
section,
|
|
2876
|
+
sectionTitle,
|
|
2877
|
+
sectionText,
|
|
2878
|
+
simplerTermsBox,
|
|
2879
|
+
simplerTermsTitle,
|
|
2880
|
+
bulletList
|
|
2881
|
+
};
|
|
2882
|
+
function PayoutRequirementsModal({
|
|
2883
|
+
isOpen,
|
|
2884
|
+
onClose,
|
|
2885
|
+
provider
|
|
2886
|
+
}) {
|
|
2887
|
+
const { t } = useTranslation("banking");
|
|
2888
|
+
if (!isOpen) return null;
|
|
2889
|
+
return /* @__PURE__ */ jsx(
|
|
2890
|
+
Modal,
|
|
2891
|
+
{
|
|
2892
|
+
ariaLabel: t(($) => $["aboutPayoutBankAccounts"]),
|
|
2893
|
+
onClose,
|
|
2894
|
+
size: "medium",
|
|
2895
|
+
showCloseButton: true,
|
|
2896
|
+
inset: true,
|
|
2897
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles$1.payoutModalContent, children: [
|
|
2898
|
+
/* @__PURE__ */ jsx(Typography, { variant: "title-m", el: "h1", className: styles$1.title, children: t(($) => $["aboutPayoutBankAccounts"]) }),
|
|
2899
|
+
/* @__PURE__ */ jsxs("div", { className: styles$1.section, children: [
|
|
2900
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h3", className: styles$1.sectionTitle, children: t(($) => $["doesMyBankAccountNeedToBeInSameCountry"]) }),
|
|
2901
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", className: styles$1.sectionText, children: t(($) => $["countryDependsExplanation"]) })
|
|
2902
|
+
] }),
|
|
2903
|
+
/* @__PURE__ */ jsxs("div", { className: styles$1.section, children: [
|
|
2904
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h3", className: styles$1.sectionTitle, children: t(($) => $["whichPayoutCurrencyShouldIChoose"]) }),
|
|
2905
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", className: styles$1.sectionText, children: t(($) => $["currencyRecommendation"]) }),
|
|
2906
|
+
/* @__PURE__ */ jsxs("div", { className: styles$1.simplerTermsBox, children: [
|
|
2907
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: styles$1.simplerTermsTitle, children: t(($) => $["inSimplerTerms"]) }),
|
|
2908
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", children: t(($) => $["currencySimplerTerms"]) })
|
|
2909
|
+
] })
|
|
2910
|
+
] }),
|
|
2911
|
+
provider && /* @__PURE__ */ jsxs("div", { className: styles$1.section, children: [
|
|
2912
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h3", className: styles$1.sectionTitle, children: t(($) => $["howDoesVerificationWithOurPartnerWork"], {
|
|
2913
|
+
provider: provider?.name
|
|
2914
|
+
}) }),
|
|
2915
|
+
/* @__PURE__ */ jsx(Typography, { className: styles$1.sectionText, children: t(($) => $["isOurTrustedPartnerHelpingSpeedUpSetup"], {
|
|
2916
|
+
provider: provider?.name
|
|
2917
|
+
}) }),
|
|
2918
|
+
/* @__PURE__ */ jsxs("ul", { className: styles$1.bulletList, children: [
|
|
2919
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["selectTheBankToReceivePayouts"]) }),
|
|
2920
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["loginIntoYourBankingEnvironment"]) }),
|
|
2921
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["yourBankWillConfirmYourAccountDetails"]) })
|
|
2922
|
+
] }),
|
|
2923
|
+
/* @__PURE__ */ jsx(Typography, { children: t(($) => $["adyenWillOnlyGetTemporaryAccess"]) })
|
|
2924
|
+
] })
|
|
2925
|
+
] })
|
|
2926
|
+
}
|
|
2927
|
+
);
|
|
2928
|
+
}
|
|
2543
2929
|
const payoutCountryDetailsFields = [
|
|
2544
2930
|
"bankCountry",
|
|
2545
2931
|
"preferredCurrency"
|
|
@@ -2548,11 +2934,12 @@ const DEFAULT_CURRENCY_FALLBACK = "USD";
|
|
|
2548
2934
|
const getDefaultCurrencyForCountry = (country) => currencyByCountry[country]?.[0] ?? DEFAULT_CURRENCY_FALLBACK;
|
|
2549
2935
|
const getCountryCodeFromEvent = (event) => event?.target?.value;
|
|
2550
2936
|
function PayoutCountryDetails(props) {
|
|
2551
|
-
const { legalEntityResponse, data: propData } = props;
|
|
2937
|
+
const { legalEntityResponse, data: propData, provider } = props;
|
|
2552
2938
|
const { t: commonT } = useTranslation("common");
|
|
2553
2939
|
const { t } = useTranslation("banking");
|
|
2554
2940
|
const { isSettingEnabled } = useSettingsContext();
|
|
2555
2941
|
const country = getLegalEntityCountry(legalEntityResponse);
|
|
2942
|
+
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
2556
2943
|
const legalEntityType = legalEntityResponse.type;
|
|
2557
2944
|
const defaultCurrency = getDefaultCurrencyForCountry(country);
|
|
2558
2945
|
const { handleChangeFor, data, valid, errors, fieldProblems } = useForm({
|
|
@@ -2565,15 +2952,48 @@ function PayoutCountryDetails(props) {
|
|
|
2565
2952
|
shouldValidate: true
|
|
2566
2953
|
});
|
|
2567
2954
|
const formUtils = createFormUtils(props, commonT);
|
|
2568
|
-
const allowedBankCountries =
|
|
2569
|
-
const intraRegionCrossBorderPayoutsAllowed = isSettingEnabled(
|
|
2570
|
-
SettingNames.AllowIntraRegionCrossBorderPayout
|
|
2571
|
-
);
|
|
2955
|
+
const allowedBankCountries = Object.keys(currencyByCountry);
|
|
2572
2956
|
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
2573
|
-
const
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2957
|
+
const accountHolder = getPayoutAccountHolderName(legalEntityResponse, t);
|
|
2958
|
+
const description2 = canChangeEntityType ? /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, { legalEntityResponse }) : /* @__PURE__ */ jsxs(Typography, { children: [
|
|
2959
|
+
t(($) => $["forYouToReceiveYourPayouts"]),
|
|
2960
|
+
" ",
|
|
2961
|
+
/* @__PURE__ */ jsx(
|
|
2962
|
+
Trans,
|
|
2963
|
+
{
|
|
2964
|
+
t,
|
|
2965
|
+
ns: "banking",
|
|
2966
|
+
i18nKey: ($) => $[getMustHaveSameAccountHolderNameTransKey(legalEntityType)],
|
|
2967
|
+
values: { name: accountHolder, companyName: accountHolder }
|
|
2968
|
+
}
|
|
2969
|
+
)
|
|
2970
|
+
] });
|
|
2971
|
+
const descriptionExtra = /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-margin-bottom-12", children: /* @__PURE__ */ jsx(
|
|
2972
|
+
Trans,
|
|
2973
|
+
{
|
|
2974
|
+
t,
|
|
2975
|
+
ns: "banking",
|
|
2976
|
+
i18nKey: ($) => $["payoutAccountsMustMeetSomeRequirements"],
|
|
2977
|
+
components: {
|
|
2978
|
+
requirementsLink: /* @__PURE__ */ jsx(
|
|
2979
|
+
"button",
|
|
2980
|
+
{
|
|
2981
|
+
type: "button",
|
|
2982
|
+
onClick: () => setIsModalOpen(true),
|
|
2983
|
+
style: {
|
|
2984
|
+
background: "none",
|
|
2985
|
+
border: "none",
|
|
2986
|
+
color: "inherit",
|
|
2987
|
+
textDecoration: "underline",
|
|
2988
|
+
cursor: "pointer",
|
|
2989
|
+
padding: 0,
|
|
2990
|
+
font: "inherit"
|
|
2991
|
+
}
|
|
2992
|
+
}
|
|
2993
|
+
)
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
) });
|
|
2577
2997
|
const { updateStateSlice } = useGlobalDataSlice(
|
|
2578
2998
|
"payoutCountryDetails"
|
|
2579
2999
|
);
|
|
@@ -2585,33 +3005,55 @@ function PayoutCountryDetails(props) {
|
|
|
2585
3005
|
handleChangeFor("bankCountry", "input")(updatedCountry);
|
|
2586
3006
|
handleChangeFor("preferredCurrency", "input")(getDefaultCurrencyForCountry(updatedCountry));
|
|
2587
3007
|
};
|
|
2588
|
-
return /* @__PURE__ */ jsxs(
|
|
2589
|
-
/* @__PURE__ */
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
3008
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3009
|
+
/* @__PURE__ */ jsxs("form", { style: { minHeight: "480px" }, children: [
|
|
3010
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $["payoutBankAccount"]), children: /* @__PURE__ */ jsxs("div", { slot: "description", className: "adyen-kyc-form-header__description", children: [
|
|
3011
|
+
description2,
|
|
3012
|
+
descriptionExtra
|
|
3013
|
+
] }) }),
|
|
3014
|
+
/* @__PURE__ */ jsx(
|
|
3015
|
+
CountryField,
|
|
3016
|
+
{
|
|
3017
|
+
data: { country: data.bankCountry },
|
|
3018
|
+
valid: { country: valid?.bankCountry },
|
|
3019
|
+
errors: { country: formUtils.getErrorMessage("bankCountry", errors, fieldProblems) },
|
|
3020
|
+
labels: { country: t(($) => $["bankAccountCountryRegion"]) },
|
|
3021
|
+
readonly: false,
|
|
3022
|
+
allowedCountries: allowedBankCountries,
|
|
3023
|
+
handleChangeFor: () => updateCountryField
|
|
2602
3024
|
}
|
|
2603
|
-
|
|
2604
|
-
|
|
3025
|
+
),
|
|
3026
|
+
/* @__PURE__ */ jsx(
|
|
3027
|
+
PreferredCurrency,
|
|
3028
|
+
{
|
|
3029
|
+
country: data.bankCountry,
|
|
3030
|
+
preferredCurrency: data.preferredCurrency ?? defaultCurrency,
|
|
3031
|
+
handleChangeFor
|
|
3032
|
+
}
|
|
3033
|
+
)
|
|
3034
|
+
] }),
|
|
2605
3035
|
/* @__PURE__ */ jsx(
|
|
2606
|
-
|
|
3036
|
+
PayoutRequirementsModal,
|
|
2607
3037
|
{
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
3038
|
+
isOpen: isModalOpen,
|
|
3039
|
+
onClose: () => setIsModalOpen(false),
|
|
3040
|
+
provider
|
|
2611
3041
|
}
|
|
2612
3042
|
)
|
|
2613
3043
|
] });
|
|
2614
3044
|
}
|
|
3045
|
+
const regions = {
|
|
3046
|
+
europe: [
|
|
3047
|
+
...EEA_Countries,
|
|
3048
|
+
CountryCodes.Switzerland,
|
|
3049
|
+
CountryCodes.UnitedKingdom,
|
|
3050
|
+
CountryCodes.Gibraltar
|
|
3051
|
+
],
|
|
3052
|
+
apac: [CountryCodes.NewZealand, CountryCodes.Australia]
|
|
3053
|
+
};
|
|
3054
|
+
const getAllowedBankCountries = (country) => Object.values(regions).find((countriesInARegion) => countriesInARegion.includes(country)) ?? [
|
|
3055
|
+
country
|
|
3056
|
+
];
|
|
2615
3057
|
const tinkLogo = lazy(() => import("./tink-logo-BcIv93ND.js"));
|
|
2616
3058
|
const plaidLogo = lazy(() => import("./plaid-logo-CtActXTN.js"));
|
|
2617
3059
|
const yapilyLogo = lazy(() => import("./yapily-logo-CZ4ywjwA.js"));
|
|
@@ -2625,7 +3067,7 @@ const instantVerificationImageNew = lazy(
|
|
|
2625
3067
|
() => import("./payout-verification-instant-5u-wvFKv.js")
|
|
2626
3068
|
);
|
|
2627
3069
|
const manualVerificationImageNew = lazy(
|
|
2628
|
-
() => import("./payout-verification-manual-
|
|
3070
|
+
() => import("./payout-verification-manual-BH2mu0UW.js")
|
|
2629
3071
|
);
|
|
2630
3072
|
const getProviderIconName = (providerName) => {
|
|
2631
3073
|
switch (providerName?.toLowerCase()) {
|
|
@@ -2658,26 +3100,18 @@ const makePayoutVerificationMethodsMetadata = (instantVerificationProviderName,
|
|
|
2658
3100
|
}
|
|
2659
3101
|
});
|
|
2660
3102
|
const payoutVerificationMethods = ["instantVerification", "manualVerification"];
|
|
2661
|
-
const getMustHaveSameAccountHolderNameTransKey = (legalEntityType) => {
|
|
2662
|
-
switch (legalEntityType) {
|
|
2663
|
-
case "individual":
|
|
2664
|
-
case "soleProprietorship":
|
|
2665
|
-
return "theBankAccountHolderMustBeInYourName";
|
|
2666
|
-
case "organization":
|
|
2667
|
-
case "trust":
|
|
2668
|
-
case "unincorporatedPartnership":
|
|
2669
|
-
return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
|
|
2670
|
-
default:
|
|
2671
|
-
return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
|
|
2672
|
-
}
|
|
2673
|
-
};
|
|
2674
3103
|
const fieldVerificationMethods = "adyen-kyc-field-verification-methods";
|
|
2675
3104
|
const fieldVerificationMethodsCard = "adyen-kyc-field-verification-methods-card";
|
|
2676
3105
|
const fieldVerificationMethodsFooter = "adyen-kyc-field-verification-methods-footer";
|
|
2677
3106
|
const fieldVerificationMethodsLogo = "adyen-kyc-field-verification-methods-logo";
|
|
3107
|
+
const radioGroupCardIllustration = "adyen-kyc-radio-group-card-illustration";
|
|
2678
3108
|
const instantVerificationError = "adyen-kyc-instant-verification-error";
|
|
2679
3109
|
const payoutVerificationMethodCard = "adyen-kyc-payout-verification-method-card";
|
|
3110
|
+
const payoutVerificationMethodCardDisabled = "adyen-kyc-payout-verification-method-card-disabled";
|
|
2680
3111
|
const payoutVerificationMethodCardImage = "adyen-kyc-payout-verification-method-card-image";
|
|
3112
|
+
const payoutVerificationMethodCardContent = "adyen-kyc-payout-verification-method-card-content";
|
|
3113
|
+
const payoutVerificationMethodCardTitle = "adyen-kyc-payout-verification-method-card-title";
|
|
3114
|
+
const payoutVerificationMethodCardSubtitle = "adyen-kyc-payout-verification-method-card-subtitle";
|
|
2681
3115
|
const payoutVerificationMethodCardBody = "adyen-kyc-payout-verification-method-card-body";
|
|
2682
3116
|
const payoutVerificationMethodCardImageContainer = "adyen-kyc-payout-verification-method-card-image-container";
|
|
2683
3117
|
const styles = {
|
|
@@ -2685,9 +3119,14 @@ const styles = {
|
|
|
2685
3119
|
fieldVerificationMethodsCard,
|
|
2686
3120
|
fieldVerificationMethodsFooter,
|
|
2687
3121
|
fieldVerificationMethodsLogo,
|
|
3122
|
+
radioGroupCardIllustration,
|
|
2688
3123
|
instantVerificationError,
|
|
2689
3124
|
payoutVerificationMethodCard,
|
|
3125
|
+
payoutVerificationMethodCardDisabled,
|
|
2690
3126
|
payoutVerificationMethodCardImage,
|
|
3127
|
+
payoutVerificationMethodCardContent,
|
|
3128
|
+
payoutVerificationMethodCardTitle,
|
|
3129
|
+
payoutVerificationMethodCardSubtitle,
|
|
2691
3130
|
payoutVerificationMethodCardBody,
|
|
2692
3131
|
payoutVerificationMethodCardImageContainer
|
|
2693
3132
|
};
|
|
@@ -2698,6 +3137,66 @@ const PayoutVerificationMethodOptionIcon = ({
|
|
|
2698
3137
|
const { svgImport } = methodsMetadata[method];
|
|
2699
3138
|
return /* @__PURE__ */ jsx(Image, { className: styles.payoutVerificationMethodCardImage, lazyLoadedImage: svgImport });
|
|
2700
3139
|
};
|
|
3140
|
+
const PayoutVerificationMethodOptionCard = ({
|
|
3141
|
+
payoutMethod,
|
|
3142
|
+
title: title2,
|
|
3143
|
+
subtitle,
|
|
3144
|
+
tag,
|
|
3145
|
+
selectVerificationMethod,
|
|
3146
|
+
payoutVerificationMethod,
|
|
3147
|
+
methodsMetadata,
|
|
3148
|
+
bankInfoValidated,
|
|
3149
|
+
instantVerificationAvailable
|
|
3150
|
+
}) => {
|
|
3151
|
+
const isInstantVerificationCard = payoutMethod === "instantVerification";
|
|
3152
|
+
const isCardDisabled = bankInfoValidated || isInstantVerificationCard && !instantVerificationAvailable;
|
|
3153
|
+
return /* @__PURE__ */ jsxs(
|
|
3154
|
+
Card,
|
|
3155
|
+
{
|
|
3156
|
+
className: cx(styles.payoutVerificationMethodCard, {
|
|
3157
|
+
"adyen-kyc-u-margin-bottom-8": isInstantVerificationCard,
|
|
3158
|
+
[styles.payoutVerificationMethodCardDisabled]: isCardDisabled
|
|
3159
|
+
}),
|
|
3160
|
+
bodyClassName: styles.payoutVerificationMethodCardBody,
|
|
3161
|
+
onClick: () => selectVerificationMethod(payoutMethod),
|
|
3162
|
+
stateful: true,
|
|
3163
|
+
active: payoutMethod === payoutVerificationMethod,
|
|
3164
|
+
disabled: isCardDisabled,
|
|
3165
|
+
children: [
|
|
3166
|
+
/* @__PURE__ */ jsx("div", { className: styles.payoutVerificationMethodCardImageContainer, children: /* @__PURE__ */ jsx(
|
|
3167
|
+
PayoutVerificationMethodOptionIcon,
|
|
3168
|
+
{
|
|
3169
|
+
method: payoutMethod,
|
|
3170
|
+
methodsMetadata
|
|
3171
|
+
}
|
|
3172
|
+
) }),
|
|
3173
|
+
/* @__PURE__ */ jsxs("div", { className: styles.payoutVerificationMethodCardContent, children: [
|
|
3174
|
+
tag,
|
|
3175
|
+
/* @__PURE__ */ jsx(
|
|
3176
|
+
Typography,
|
|
3177
|
+
{
|
|
3178
|
+
el: "h4",
|
|
3179
|
+
variant: "body-strongest",
|
|
3180
|
+
className: styles.payoutVerificationMethodCardTitle,
|
|
3181
|
+
children: title2
|
|
3182
|
+
}
|
|
3183
|
+
),
|
|
3184
|
+
/* @__PURE__ */ jsx(
|
|
3185
|
+
Typography,
|
|
3186
|
+
{
|
|
3187
|
+
el: "p",
|
|
3188
|
+
variant: "body",
|
|
3189
|
+
color: "secondary",
|
|
3190
|
+
className: styles.payoutVerificationMethodCardSubtitle,
|
|
3191
|
+
children: subtitle
|
|
3192
|
+
}
|
|
3193
|
+
)
|
|
3194
|
+
] })
|
|
3195
|
+
]
|
|
3196
|
+
},
|
|
3197
|
+
payoutMethod
|
|
3198
|
+
);
|
|
3199
|
+
};
|
|
2701
3200
|
const payoutVerificationMethodFields = ["payoutVerificationMethod", "bankCountry", ...accountVerificationFields];
|
|
2702
3201
|
function PayoutVerificationMethod(props) {
|
|
2703
3202
|
const {
|
|
@@ -2782,13 +3281,11 @@ function PayoutVerificationMethod(props) {
|
|
|
2782
3281
|
};
|
|
2783
3282
|
useEffect(() => {
|
|
2784
3283
|
if (bankInfoValidated || enabledUnbiasedVerificationMethod) return;
|
|
2785
|
-
if (!
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
handleChangeFor("payoutVerificationMethod")("manualVerification");
|
|
2791
|
-
}
|
|
3284
|
+
if (!hasSelectedMethod && instantVerificationAvailable && data.payoutVerificationMethod !== "instantVerification") {
|
|
3285
|
+
handleChangeFor("payoutVerificationMethod")("instantVerification");
|
|
3286
|
+
}
|
|
3287
|
+
if (!instantVerificationAvailable && data.payoutVerificationMethod !== "manualVerification") {
|
|
3288
|
+
handleChangeFor("payoutVerificationMethod")("manualVerification");
|
|
2792
3289
|
}
|
|
2793
3290
|
}, [
|
|
2794
3291
|
data.payoutVerificationMethod,
|
|
@@ -2820,7 +3317,7 @@ function PayoutVerificationMethod(props) {
|
|
|
2820
3317
|
}
|
|
2821
3318
|
}
|
|
2822
3319
|
);
|
|
2823
|
-
const
|
|
3320
|
+
const description2 = canChangeEntityType ? /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, { legalEntityResponse }) : /* @__PURE__ */ jsxs(Typography, { children: [
|
|
2824
3321
|
t(($) => $["forYouToReceiveYourPayouts"]),
|
|
2825
3322
|
" ",
|
|
2826
3323
|
/* @__PURE__ */ jsx(
|
|
@@ -2833,40 +3330,8 @@ function PayoutVerificationMethod(props) {
|
|
|
2833
3330
|
}
|
|
2834
3331
|
)
|
|
2835
3332
|
] });
|
|
2836
|
-
const PayoutVerificationMethodOptionCard = ({
|
|
2837
|
-
payoutMethod,
|
|
2838
|
-
title,
|
|
2839
|
-
subtitle,
|
|
2840
|
-
tag
|
|
2841
|
-
}) => /* @__PURE__ */ jsxs(
|
|
2842
|
-
Card,
|
|
2843
|
-
{
|
|
2844
|
-
className: cx(styles.payoutVerificationMethodCard, {
|
|
2845
|
-
"adyen-kyc-u-margin-bottom-8": payoutMethod === "instantVerification"
|
|
2846
|
-
}),
|
|
2847
|
-
bodyClassName: styles.payoutVerificationMethodCardBody,
|
|
2848
|
-
onClick: () => selectVerificationMethod(payoutMethod),
|
|
2849
|
-
stateful: true,
|
|
2850
|
-
active: payoutMethod === data.payoutVerificationMethod,
|
|
2851
|
-
children: [
|
|
2852
|
-
/* @__PURE__ */ jsx("div", { className: styles.payoutVerificationMethodCardImageContainer, children: /* @__PURE__ */ jsx(
|
|
2853
|
-
PayoutVerificationMethodOptionIcon,
|
|
2854
|
-
{
|
|
2855
|
-
method: payoutMethod,
|
|
2856
|
-
methodsMetadata
|
|
2857
|
-
}
|
|
2858
|
-
) }),
|
|
2859
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-16", children: [
|
|
2860
|
-
tag,
|
|
2861
|
-
/* @__PURE__ */ jsx(Typography, { el: "h4", variant: "body-strongest", className: "adyen-kyc-u-margin-bottom-8", children: title }),
|
|
2862
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: subtitle })
|
|
2863
|
-
] })
|
|
2864
|
-
]
|
|
2865
|
-
},
|
|
2866
|
-
payoutMethod
|
|
2867
|
-
);
|
|
2868
3333
|
return /* @__PURE__ */ jsxs("form", { className: styles.payoutVerificationMethod, children: [
|
|
2869
|
-
heading && /* @__PURE__ */ jsx(Header, { title: heading, children: /* @__PURE__ */ jsx("template", { slot: "description", children:
|
|
3334
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading, children: /* @__PURE__ */ jsx("template", { slot: "description", children: description2 }) }),
|
|
2870
3335
|
instantVerificationError2 && /* @__PURE__ */ jsx(
|
|
2871
3336
|
Alert,
|
|
2872
3337
|
{
|
|
@@ -2892,17 +3357,25 @@ function PayoutVerificationMethod(props) {
|
|
|
2892
3357
|
PayoutVerificationMethodOptionCard,
|
|
2893
3358
|
{
|
|
2894
3359
|
payoutMethod: "instantVerification",
|
|
2895
|
-
title: t(($) => $["
|
|
2896
|
-
subtitle: t(($) => $["
|
|
2897
|
-
tag: /* @__PURE__ */ jsx(Tag, { variant: "blue", className: "adyen-kyc-u-margin-bottom-8", children: t(($) => $["recommended"]) })
|
|
3360
|
+
title: t(($) => $["logInWithYourBank"]),
|
|
3361
|
+
subtitle: t(($) => $["theFastestWayToVerifyYourAccount"]),
|
|
3362
|
+
tag: /* @__PURE__ */ jsx(Tag, { variant: "blue", className: "adyen-kyc-u-margin-bottom-8", children: t(($) => $["recommended"]) }),
|
|
3363
|
+
selectVerificationMethod,
|
|
3364
|
+
methodsMetadata,
|
|
3365
|
+
payoutVerificationMethod: data.payoutVerificationMethod,
|
|
3366
|
+
instantVerificationAvailable,
|
|
3367
|
+
bankInfoValidated
|
|
2898
3368
|
}
|
|
2899
3369
|
),
|
|
2900
3370
|
/* @__PURE__ */ jsx(
|
|
2901
3371
|
PayoutVerificationMethodOptionCard,
|
|
2902
3372
|
{
|
|
2903
3373
|
payoutMethod: "manualVerification",
|
|
2904
|
-
title: t(($) => $["
|
|
2905
|
-
subtitle: t(($) => $["
|
|
3374
|
+
title: t(($) => $["verifyManually"]),
|
|
3375
|
+
subtitle: t(($) => $["enterYourAccountsDetailsOnYourOwn"]),
|
|
3376
|
+
selectVerificationMethod,
|
|
3377
|
+
methodsMetadata,
|
|
3378
|
+
payoutVerificationMethod: data.payoutVerificationMethod
|
|
2906
3379
|
}
|
|
2907
3380
|
)
|
|
2908
3381
|
] }) : /* @__PURE__ */ jsx(
|
|
@@ -2922,13 +3395,13 @@ function PayoutVerificationMethod(props) {
|
|
|
2922
3395
|
label: styles.fieldVerificationMethodsCard
|
|
2923
3396
|
}),
|
|
2924
3397
|
isOptionDisabled: (option) => bankInfoValidated || option === "instantVerification" && !instantVerificationAvailable,
|
|
2925
|
-
renderOptionIcon: (method) => /* @__PURE__ */ jsx(
|
|
3398
|
+
renderOptionIcon: (method) => /* @__PURE__ */ jsx("div", { className: styles.radioGroupCardIllustration, children: /* @__PURE__ */ jsx(
|
|
2926
3399
|
PayoutVerificationMethodOptionIcon,
|
|
2927
3400
|
{
|
|
2928
3401
|
method,
|
|
2929
3402
|
methodsMetadata
|
|
2930
3403
|
}
|
|
2931
|
-
),
|
|
3404
|
+
) }),
|
|
2932
3405
|
renderOptionFooter: (method) => /* @__PURE__ */ jsx(
|
|
2933
3406
|
PayoutVerificationMethodOptionFooter,
|
|
2934
3407
|
{
|
|
@@ -3088,7 +3561,8 @@ function PayoutDetails(props) {
|
|
|
3088
3561
|
PayoutCountryDetails,
|
|
3089
3562
|
{
|
|
3090
3563
|
...payoutCountryDetailsFormProps,
|
|
3091
|
-
legalEntityResponse
|
|
3564
|
+
legalEntityResponse,
|
|
3565
|
+
provider
|
|
3092
3566
|
}
|
|
3093
3567
|
)
|
|
3094
3568
|
}
|
|
@@ -3160,7 +3634,23 @@ function PayoutDetails(props) {
|
|
|
3160
3634
|
"div",
|
|
3161
3635
|
{
|
|
3162
3636
|
className: activeForm?.formId !== PayoutAccountDocumentsFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
3163
|
-
children: /* @__PURE__ */ jsx(
|
|
3637
|
+
children: isExperimentEnabled(ExperimentNames.EnableBankDocumentGenAi) ? /* @__PURE__ */ jsx(
|
|
3638
|
+
MemoizedBankDocumentClassification,
|
|
3639
|
+
{
|
|
3640
|
+
...bankDocumentFormProps,
|
|
3641
|
+
heading: t(
|
|
3642
|
+
($) => $[isBankStatementDocumentOptional ? "uploadABankDocumentOptional" : "uploadABankDocument"]
|
|
3643
|
+
),
|
|
3644
|
+
description: t(
|
|
3645
|
+
($) => $[legalEntityResponse.type === "individual" ? "toHelpVerifyYourBankDetailsIndividual" : "toHelpVerifyYourBankDetailsBusiness"]
|
|
3646
|
+
),
|
|
3647
|
+
id: PayoutAccountDocumentsFormID,
|
|
3648
|
+
legalEntity: legalEntityResponse,
|
|
3649
|
+
associatedLegalArrangement,
|
|
3650
|
+
country: bankCountry,
|
|
3651
|
+
formIsActive: activeForm?.formId === PayoutAccountDocumentsFormID
|
|
3652
|
+
}
|
|
3653
|
+
) : /* @__PURE__ */ jsx(
|
|
3164
3654
|
MemoizedBankDocument,
|
|
3165
3655
|
{
|
|
3166
3656
|
...bankDocumentFormProps,
|
|
@@ -3282,7 +3772,7 @@ const mapPayoutDetailsToTransferInstrument = ({
|
|
|
3282
3772
|
};
|
|
3283
3773
|
};
|
|
3284
3774
|
const mapPayoutDocumentsToApiDocuments = async (data, entityId) => {
|
|
3285
|
-
const { bankStatementDocument, description } = data.payoutAccountDocuments ?? {};
|
|
3775
|
+
const { bankStatementDocument, description: description2 } = data.payoutAccountDocuments ?? {};
|
|
3286
3776
|
if (!bankStatementDocument) {
|
|
3287
3777
|
throw new Error("Bank statement document missing");
|
|
3288
3778
|
}
|
|
@@ -3296,7 +3786,7 @@ const mapPayoutDocumentsToApiDocuments = async (data, entityId) => {
|
|
|
3296
3786
|
entityType: "bankAccount",
|
|
3297
3787
|
documentType: "bankStatement",
|
|
3298
3788
|
page1,
|
|
3299
|
-
description,
|
|
3789
|
+
description: description2,
|
|
3300
3790
|
existingDocument
|
|
3301
3791
|
});
|
|
3302
3792
|
};
|
|
@@ -3724,7 +4214,7 @@ function PayoutDetailsDropin({
|
|
|
3724
4214
|
actionType: "upload",
|
|
3725
4215
|
documentType: dataSubmitted.payoutAccountDocuments?.documentType ?? document2.type,
|
|
3726
4216
|
// tracks BankDocumentTypes
|
|
3727
|
-
fileExtention: document2.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ??
|
|
4217
|
+
fileExtention: document2.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ?? void 0
|
|
3728
4218
|
});
|
|
3729
4219
|
});
|
|
3730
4220
|
} catch {
|
|
@@ -3882,7 +4372,24 @@ function PayoutDetailsDropin({
|
|
|
3882
4372
|
navigationTrackingParams: {
|
|
3883
4373
|
...checkAsAServiceAnalyticsProps
|
|
3884
4374
|
},
|
|
3885
|
-
onSubmit: skipSubmit ? () => {
|
|
4375
|
+
onSubmit: skipSubmit ? async () => {
|
|
4376
|
+
if (enabledCrossBorderPayouts && trustedTransferInstrumentId) {
|
|
4377
|
+
try {
|
|
4378
|
+
await handleUpdateTransferInstrument({
|
|
4379
|
+
transferInstrument: {
|
|
4380
|
+
legalEntityId: rootLegalEntityId.value,
|
|
4381
|
+
bankAccount: {
|
|
4382
|
+
preferredCurrencyCode: data.payoutCountryDetails?.preferredCurrency,
|
|
4383
|
+
trustedSource: true
|
|
4384
|
+
},
|
|
4385
|
+
type: "bankAccount"
|
|
4386
|
+
},
|
|
4387
|
+
transferInstrumentId: trustedTransferInstrumentId
|
|
4388
|
+
});
|
|
4389
|
+
} catch {
|
|
4390
|
+
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
4391
|
+
}
|
|
4392
|
+
}
|
|
3886
4393
|
if (trustedTransferInstrumentId) {
|
|
3887
4394
|
externalOnSubmit?.({ ...data, id: trustedTransferInstrumentId });
|
|
3888
4395
|
}
|