@adyen/kyc-components 4.7.2 → 4.8.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/4-people-7MltvEnk.js +35 -0
- package/dist/AD-D_B1KZm9.js +15 -0
- package/dist/AE-iKPgRx_9.js +17 -0
- package/dist/AI-CYjWGBKT.js +19 -0
- package/dist/AL-D62C5Lpk.js +19 -0
- package/dist/AR-BOgSvtgP.js +19 -0
- package/dist/AS-Cg8Vujpc.js +17 -0
- package/dist/AT-CCRMRifN.js +19 -0
- package/dist/AT-D3H5WGY3.js +15 -0
- package/dist/AT-DMpxSE4g.js +19 -0
- package/dist/AT-Doe66WxQ.js +16 -0
- package/dist/AU-B77DgHQb.js +16 -0
- package/dist/AU-BcSu8pI2.js +20 -0
- package/dist/AU-CiWB9qh-.js +11 -0
- package/dist/AU-DAfj7Z58.js +18 -0
- package/dist/AX-CG8iviap.js +15 -0
- package/dist/AZ-DIB7CvVN.js +19 -0
- package/dist/AcceptTermsOfServiceComponent-BKgdZKrj.js +651 -0
- package/dist/AcceptTermsOfServiceComponent-CUIdPIg8.js +6 -0
- package/dist/Accordion-Dmrb3-v6.js +111 -0
- package/dist/AccountSetupRejected-DkwJLZ-8.js +20 -0
- package/dist/ActionBar-ITEbcxgG.js +33 -0
- package/dist/Address-CnQ22ndb.js +595 -0
- package/dist/Alert-BER6uCP8.js +170 -0
- package/dist/Avatar-DElKUUVp.js +54 -0
- package/dist/BA-C4vH4-x6.js +19 -0
- package/dist/BE-BvtnaSSH.js +15 -0
- package/dist/BE-DJM3cj-R.js +11 -0
- package/dist/BE-Dtk1wvHk.js +12 -0
- package/dist/BE-Sbwjfh5h.js +11 -0
- package/dist/BG-DvFE-fU3.js +19 -0
- package/dist/BH-Bm_tXC8b.js +19 -0
- package/dist/BM-BPYI-Bk0.js +19 -0
- package/dist/BR-CRGYlRY-.js +18 -0
- package/dist/BR-CwJ6YXMX.js +23 -0
- package/dist/BR-DdZm-FhP.js +15 -0
- package/dist/BR-DjC4dRH8.js +20 -0
- package/dist/BS-DEbfM7Fg.js +19 -0
- package/dist/BV-LqWIWEV5.js +19 -0
- package/dist/BY-Dw4W1isS.js +19 -0
- package/dist/BusinessFinancingDropin-B8ZJDKWU.js +1796 -0
- package/dist/BusinessFinancingPage-B2EuTX1b.js +87 -0
- package/dist/BusinessTypeSelectionPage-CChAObkr.js +439 -0
- package/dist/Button-DvWt5T9O.js +189 -0
- package/dist/CA-CQtjbUjU.js +16 -0
- package/dist/CA-Cwit937J.js +18 -0
- package/dist/CA-D0ezsmfN.js +10 -0
- package/dist/CA-PLMbc5uq.js +17 -0
- package/dist/CH-Baaufs8O.js +15 -0
- package/dist/CH-D9S1IpBs.js +11 -0
- package/dist/CH-DPLfVgsE.js +15 -0
- package/dist/CH-DnoWGcl9.js +11 -0
- package/dist/CN-Bx6shvCX.js +19 -0
- package/dist/CR-CgM7Uut3.js +19 -0
- package/dist/CY-CxBi1s-O.js +15 -0
- package/dist/CZ-B3oiWDug.js +15 -0
- package/dist/CZ-B8nb2PxI.js +16 -0
- package/dist/CZ-CbWqKLbR.js +19 -0
- package/dist/CZ-DS5YfhO9.js +27 -0
- package/dist/Card-vYndix5Y.js +70 -0
- package/dist/Checkbox-BCYjFPa4.js +55 -0
- package/dist/Confirm-BmiOH3Vr.js +76 -0
- package/dist/ConstitutionalDocument-rRO4Qdx2.js +2228 -0
- package/dist/ContactDetails-tVqSDGqY.js +292 -0
- package/dist/ContextGuidance-DKKgj5gN.js +29 -0
- package/dist/ContractViewer-zPVipxCC.js +987 -0
- package/dist/CountryField-s5-jZTU9.js +38 -0
- package/dist/Currency-gYKD3DSx.js +191 -0
- package/dist/CustomerSupport-kwwKDe5a.js +127 -0
- package/dist/DE-BOCSw-Jn.js +23 -0
- package/dist/DE-NkKgh0-y.js +15 -0
- package/dist/DE-SZPlEjww.js +20 -0
- package/dist/DE-hCefE4qL.js +20 -0
- package/dist/DK-CB_26cPx.js +27 -0
- package/dist/DK-CO2QUqp2.js +19 -0
- package/dist/DK-CikJtsBF.js +15 -0
- package/dist/DK-DAYxZyrn.js +18 -0
- package/dist/DO-DWjKCR-x.js +19 -0
- package/dist/DebugModal-COszvbWk.js +451 -0
- package/dist/DecisionMakerDetails-DA9upL0W.js +471 -0
- package/dist/DecisionMakerDetailsPage-B7iGmS0R.js +105 -0
- package/dist/DecisionMakers-BZRkBx5n.js +670 -0
- package/dist/DetailViewLayout-Cz3FVZ5a.js +68 -0
- package/dist/Divider-CrK4vlsJ.js +11 -0
- package/dist/DropinLayout-Ce8IeTl4.js +22 -0
- package/dist/Dropzone-By_YOrv2.js +221 -0
- package/dist/EC-CCGvbVWA.js +20 -0
- package/dist/EE-DebeWn2E.js +15 -0
- package/dist/ES-Bf5fpQJJ.js +24 -0
- package/dist/ES-D2CBh7YF.js +19 -0
- package/dist/ES-DXLZWZXA.js +15 -0
- package/dist/ES-m71Tl7fE.js +15 -0
- package/dist/EmbeddedStatus-DeSYswbC.js +128 -0
- package/dist/EndStateLayout-CR8wHeA1.js +84 -0
- package/dist/EntityAssociation-CKOd_SVw.js +163 -0
- package/dist/EntityGuidanceStatus-C_rpRyk4.js +89 -0
- package/dist/ErrorPanel-4juOd8Z2.js +186 -0
- package/dist/FI-Cbz5-l9v.js +10 -0
- package/dist/FI-Clx-zbKe.js +15 -0
- package/dist/FI-L14G4S91.js +11 -0
- package/dist/FI-_CR_F2Ml.js +12 -0
- package/dist/FJ-BKLmDeVh.js +19 -0
- package/dist/FO-D7VnFgWu.js +19 -0
- package/dist/FR-D2lGCnJC.js +16 -0
- package/dist/FR-D2zQy3jq.js +15 -0
- package/dist/FR-DwVflgGw.js +15 -0
- package/dist/FR-wqLTqKJj.js +23 -0
- package/dist/Field-C2ZpB0wo.js +155 -0
- package/dist/FormNavigation-IqQmylMk.js +116 -0
- package/dist/GB-BX3mPDDS.js +27 -0
- package/dist/GB-CIqAOZg5.js +24 -0
- package/dist/GB-CVb-Rw8a.js +18 -0
- package/dist/GB-DD4csU-b.js +11 -0
- package/dist/GE-D02s-9eo.js +19 -0
- package/dist/GF-BcHxbxvv.js +15 -0
- package/dist/GG-C3cx2hzZ.js +27 -0
- package/dist/GI-D_DZhrwe.js +35 -0
- package/dist/GL-BUOXwUJ0.js +19 -0
- package/dist/GP-CmZCjGab.js +15 -0
- package/dist/GR-BxjWJl4T.js +15 -0
- package/dist/GT-C_l7WI2f.js +19 -0
- package/dist/GU-7zSp4NP8.js +17 -0
- package/dist/HK-D5lgUGIW.js +10 -0
- package/dist/HK-DXmjOLnc.js +17 -0
- package/dist/HK-Dc3v2ZB0.js +18 -0
- package/dist/HK-dz43_PmR.js +15 -0
- package/dist/HR-BvWaw8qz.js +15 -0
- package/dist/HR-ChipU8Kr.js +15 -0
- package/dist/HR-D3ZZV7I7.js +19 -0
- package/dist/HR-SfBt4kaq.js +15 -0
- package/dist/HU-1UX4rgmz.js +10 -0
- package/dist/HU-9NTdjUUV.js +26 -0
- package/dist/HU-CzI3Elvd.js +19 -0
- package/dist/HU-wpmPNNka.js +11 -0
- package/dist/HandlerContext-CIedIvkP.js +9 -0
- package/dist/Header-BNb1zwkF.js +93 -0
- package/dist/ID-O2T9tbLO.js +19 -0
- package/dist/IE-CRaBXxhc.js +18 -0
- package/dist/IE-Cw9l0506.js +15 -0
- package/dist/IE-DWpH_5Cq.js +10 -0
- package/dist/IE-OqeqXlhV.js +20 -0
- package/dist/IL-1hVGBOhQ.js +15 -0
- package/dist/IM-B1t_Q0mE.js +27 -0
- package/dist/IN-BAGr7C88.js +20 -0
- package/dist/IS-C97KS-Cn.js +19 -0
- package/dist/IT-Bqf_SGsX.js +19 -0
- package/dist/IT-GLNikVmY.js +19 -0
- package/dist/IT-PBgScy3E.js +15 -0
- package/dist/IT-b5Hsdl6Z.js +15 -0
- package/dist/Image-BTVEK7B2.js +33 -0
- package/dist/Individual.rules-B3pCow6J.js +295 -0
- package/dist/IndividualDropin-bFgrHziM.js +4946 -0
- package/dist/InputDate-XX9jaw9v.js +52 -0
- package/dist/InputGroup-2FJnD0LO.js +21 -0
- package/dist/InputText-C30dZxS4.js +119 -0
- package/dist/Introduction-BRwmMwP8.js +271 -0
- package/dist/InvitedDecisionMakerComponent-DD1vVyTG.js +6 -0
- package/dist/InvitedDecisionMakerComponent-g4s20v7g.js +353 -0
- package/dist/JE-D9zaTrAY.js +27 -0
- package/dist/JM-6zLyaeVi.js +19 -0
- package/dist/JO-BdNdFHnL.js +19 -0
- package/dist/JP-znYbtZMc.js +20 -0
- package/dist/JpAddress-DcrYSdH2.js +319 -0
- package/dist/KR-xcUi-9h2.js +19 -0
- package/dist/KW-3DCYRJ53.js +19 -0
- package/dist/KY-CCApxZ6r.js +19 -0
- package/dist/KZ-Cqr8yPqY.js +19 -0
- package/dist/LB-R74h2pUy.js +19 -0
- package/dist/LI-D9H9hvDG.js +15 -0
- package/dist/LT-CDQI5_NM.js +15 -0
- package/dist/LT-COGUxKB6.js +19 -0
- package/dist/LT-DkKeNYqC.js +16 -0
- package/dist/LT-Dq5I_vLb.js +11 -0
- package/dist/LU-B7-x8Llo.js +15 -0
- package/dist/LV-DAzwuNGM.js +15 -0
- package/dist/LandingLayout-BQZNXhZ_.js +76 -0
- package/dist/LegalCompanyNameField-D91em8Tk.js +108 -0
- package/dist/LegalRepresentativeDetailsPage-BeNRjz37.js +73 -0
- package/dist/Link-DKiaZfxB.js +32 -0
- package/dist/List-DLrcpMVd.js +71 -0
- package/dist/ListItem-zVPVQbER.js +70 -0
- package/dist/LoaderWrapper-DWKykOjd.js +34 -0
- package/dist/MC-DYg2Ld6N.js +15 -0
- package/dist/MD-BSGq8uEc.js +19 -0
- package/dist/ME-CMYolexb.js +19 -0
- package/dist/MK-KXTP17uw.js +19 -0
- package/dist/MP-CJH5I9LN.js +17 -0
- package/dist/MQ-B-Nxd16T.js +15 -0
- package/dist/MR-9gjgEzl5.js +19 -0
- package/dist/MT-DCvbkYrX.js +15 -0
- package/dist/MU-CVDBPgAP.js +19 -0
- package/dist/MX-B8dPVdJo.js +17 -0
- package/dist/MY-DcfNGXIG.js +16 -0
- package/dist/MaskedInput-zFUBaX87.js +714 -0
- package/dist/MaybeModal-Dsgozf1o.js +24 -0
- package/dist/Modal-UfgpuJZi.js +129 -0
- package/dist/NC-DQQUjrGe.js +19 -0
- package/dist/NL-Bu5_sjR1.js +14 -0
- package/dist/NL-CMB4A6y3.js +15 -0
- package/dist/NL-DQR9Rrua.js +12 -0
- package/dist/NL-McMEOXeg.js +19 -0
- package/dist/NO-C1lR0Cpn.js +14 -0
- package/dist/NO-CKPHTYW8.js +16 -0
- package/dist/NO-DAvhrELf.js +26 -0
- package/dist/NO-Pppylsvl.js +19 -0
- package/dist/NZ-BLYvv2PK.js +10 -0
- package/dist/NZ-BuvPkC2r.js +11 -0
- package/dist/Name-DC5eBwEU.js +61 -0
- package/dist/NewSummary-DVIIH1Ml.js +64 -0
- package/dist/PE-J7zWKbQ3.js +19 -0
- package/dist/PF-CQvMXWIc.js +19 -0
- package/dist/PH-CsAkleLZ.js +19 -0
- package/dist/PK-pnVCB70L.js +19 -0
- package/dist/PL-BIkD7ly2.js +19 -0
- package/dist/PL-Cfpb3P4Y.js +19 -0
- package/dist/PL-D6iB2qQS.js +15 -0
- package/dist/PL-DdsUKlRx.js +26 -0
- package/dist/PM-DXhRSYlY.js +15 -0
- package/dist/PR-BJTR9010.js +17 -0
- package/dist/PS-Bb7ensjm.js +19 -0
- package/dist/PT-Bqv36Ez0.js +15 -0
- package/dist/PT-DMau-7AE.js +19 -0
- package/dist/PT-D_mzbSbR.js +15 -0
- package/dist/PT-iBbOYasm.js +16 -0
- package/dist/PayoutDetailsDropin-DAUlhP1c.js +3909 -0
- package/dist/PayoutDetailsPage-mJE3Hgy9.js +857 -0
- package/dist/ProgressBar-BlxQvN7D.js +38 -0
- package/dist/QA-Cya8smAe.js +19 -0
- package/dist/RE-DV-Olrl9.js +15 -0
- package/dist/RO-7ngAIZ4E.js +15 -0
- package/dist/RO-D29rc5pZ.js +11 -0
- package/dist/RO-JvqtRH2p.js +11 -0
- package/dist/RO-Nqdvv0rk.js +19 -0
- package/dist/RS-Bdspw_Te.js +19 -0
- package/dist/RU-2VREcND8.js +19 -0
- package/dist/Radio-D6uF9-cu.js +21 -0
- package/dist/RadioGroup-Bi9v9dZu.js +71 -0
- package/dist/Review-C-B_R1FH.js +89 -0
- package/dist/RootBusinessDetailsPage-9ccBcunp.js +67 -0
- package/dist/RootBusinessLinesPage-LQptA58p.js +1451 -0
- package/dist/RootIndividualDetailsPage-DlzHpNEn.js +81 -0
- package/dist/SA-ONrtr4dq.js +19 -0
- package/dist/SE-Bp9QG9OZ.js +10 -0
- package/dist/SE-CfwjGhj2.js +27 -0
- package/dist/SE-CjCMy1R-.js +12 -0
- package/dist/SE-CspSL4-O.js +19 -0
- package/dist/SG-BSxtCx98.js +18 -0
- package/dist/SG-Bx4a8mSG.js +11 -0
- package/dist/SG-Cte5jgnm.js +16 -0
- package/dist/SG-W9jzYBBR.js +19 -0
- package/dist/SI-CjPVM480.js +14 -0
- package/dist/SI-ClAvsgGs.js +12 -0
- package/dist/SI-D_WmP1xi.js +19 -0
- package/dist/SI-DuER-ftQ.js +15 -0
- package/dist/SJ-DRle19p-.js +19 -0
- package/dist/SK-BXY1VMKv.js +19 -0
- package/dist/SK-CFssz9bO.js +15 -0
- package/dist/SK-CP4lBBly.js +10 -0
- package/dist/SK-KhQnqXtK.js +16 -0
- package/dist/SM-v_4Yc2mM.js +15 -0
- package/dist/Select-DDSua27l.js +775 -0
- package/dist/SignPCIComponent-DGWjjIO0.js +367 -0
- package/dist/SignPCIComponent-DvZAN38F.js +6 -0
- package/dist/SingpassSelection-PepG3R0o.js +244 -0
- package/dist/SoleProprietorshipPage-DnThw6us.js +69 -0
- package/dist/SourceOfFundsPage-CuIBGc8z.js +1987 -0
- package/dist/Spacer-_Y17BH-4.js +11 -0
- package/dist/StackLayout-Bhbj68nx.js +105 -0
- package/dist/StateContext-BToC3V53.js +9 -0
- package/dist/StepProgressIndicator-CzDT61ie.js +80 -0
- package/dist/StructuredList-w0Z2zLTk.js +56 -0
- package/dist/Summary-B8AA9_C_.js +226 -0
- package/dist/TF-BhrG4wMf.js +19 -0
- package/dist/TH-Dnjjl0vl.js +20 -0
- package/dist/TL-DV3_HDbD.js +19 -0
- package/dist/TN-CvaVweYw.js +19 -0
- package/dist/TR-BAvGXlpl.js +19 -0
- package/dist/TT-DRIx1q2s.js +20 -0
- package/dist/TW-DRf29Guu.js +21 -0
- package/dist/Tag-BUoDHC4C.js +39 -0
- package/dist/TaskVerificationStatus-UnhKHQYu.js +118 -0
- package/dist/TaxInformationField-zwmzV8Ov.js +2830 -0
- package/dist/TaxReportingDropin-BZ67pubt.js +480 -0
- package/dist/TextArea-CyATBUKN.js +80 -0
- package/dist/TileGroup-tVHAZBni.js +169 -0
- package/dist/ToastContext-Cx99hkTh.js +13 -0
- package/dist/ToastContextProvider-BWJct14f.js +103 -0
- package/dist/TrustDetailsPage-DLIvcoSr.js +1685 -0
- package/dist/TrustMemberCompanyPage-Q0FDNUXO.js +107 -0
- package/dist/TrustMemberIndividualPage-C4FZ57EQ.js +107 -0
- package/dist/TrustMemberRoleAndTypePage-s8ZOlbBU.js +943 -0
- package/dist/TrustMembersOverview-CZ-i1Yoq.js +350 -0
- package/dist/UA-Ba88l6Xd.js +19 -0
- package/dist/US-CKehaXnS.js +10 -0
- package/dist/US-Df5L2r8F.js +18 -0
- package/dist/US-QONZX-gV.js +23 -0
- package/dist/US-m2RymYgz.js +17 -0
- package/dist/UY-C7OqeI1W.js +19 -0
- package/dist/UnincorporatedPartnershipIndividualPage-DElj-rnx.js +78 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-B2iYbHPm.js +78 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BgNE2bk7.js +276 -0
- package/dist/UnincorporatedPartnershipMembersOverview-BwCLw7rz.js +156 -0
- package/dist/VA-kEhphxOY.js +15 -0
- package/dist/VG-9RtXQCNA.js +19 -0
- package/dist/VI-Dtn9fHsy.js +17 -0
- package/dist/VN-CQ52lXXR.js +19 -0
- package/dist/VerificationErrorAlert-C_9CLF8G.js +38 -0
- package/dist/WF-D5AVATSv.js +19 -0
- package/dist/YT-B9qrlCqK.js +15 -0
- package/dist/ZA-CZ_c0XHc.js +20 -0
- package/dist/_rolldown_dynamic_import_helper-rq_tsyLP.js +14 -0
- package/dist/accountHolderUtils-BYe8xPFy.js +44 -0
- package/dist/adyen-business-financing.js +172 -66
- package/dist/adyen-individual-configuration.js +186 -59
- package/dist/adyen-individual-status.js +104 -45
- package/dist/adyen-invited-decision-maker.js +38 -42
- package/dist/adyen-onboarding.js +2465 -55
- package/dist/adyen-terms-of-service-management.js +58 -64
- package/dist/adyen-terms-of-service-status.js +138 -45
- package/dist/adyen-transfer-instrument-configuration.js +176 -74
- package/dist/adyen-transfer-instrument-management.js +409 -59
- package/dist/adyen-verification-status.js +234 -80
- package/dist/arrow-right-BzximXQd.js +20 -0
- package/dist/bafinUtils-kBPs58Au.js +68 -0
- package/dist/bag-CV-7aEOY.js +20 -0
- package/dist/bank-B3QWGDvh.js +20 -0
- package/dist/basePatterns-VqSYMnkh.js +8 -0
- package/dist/bg-BG-B59ND_11.js +59 -0
- package/dist/bg-BG-B67nlf6n.js +31 -0
- package/dist/bg-BG-BxkwIoTQ.js +69 -0
- package/dist/bg-BG-C0wzRs18.js +7 -0
- package/dist/bg-BG-CN_UREwh.js +23 -0
- package/dist/bg-BG-Ckeu3dBt.js +26 -0
- package/dist/bg-BG-D2t5UzpH.js +70 -0
- package/dist/bg-BG-DQPBlfB6.js +18 -0
- package/dist/bg-BG-DeVGTTeO.js +7 -0
- package/dist/bg-BG-DnMyf-n3.js +48 -0
- package/dist/bg-BG-DqWeAqky.js +57 -0
- package/dist/bg-BG-sDNpvadv.js +7 -0
- package/dist/bg-BG-xv1T8Cru.js +7 -0
- package/dist/bg-BG-ymvx5WWi.js +7 -0
- package/dist/bin-Nm57SUCy.js +30 -0
- package/dist/birthDateUtils-C686KOxO.js +82 -0
- package/dist/business-lines-BYTyy_mD.js +554 -0
- package/dist/capital-BIrjrei_.js +23 -0
- package/dist/cash-stack-q8jqAQnj.js +33 -0
- package/dist/certificate-BA32wlVD.js +23 -0
- package/dist/checkmark-Sx0Eq9g1.js +20 -0
- package/dist/checkmark-circle-D25SXuEg.js +28 -0
- package/dist/checkmark-circle-fill-DWyHVNKM.js +30 -0
- package/dist/checkmark-small-BYKwXmot.js +20 -0
- package/dist/chevron-down-BY9NvSX2.js +20 -0
- package/dist/chevron-left-1TeIr8LI.js +20 -0
- package/dist/chevron-right-D3ORtAcK.js +20 -0
- package/dist/chevron-up-DSUlaHcZ.js +20 -0
- package/dist/circle-BLLy-RH7.js +30 -0
- package/dist/circle-small-filled-C_6B84Iy.js +20 -0
- package/dist/clock-lHMbm7lZ.js +28 -0
- package/dist/coins-DM30OZR2.js +30 -0
- package/dist/commonValidators-DCdet-gH.js +18 -0
- package/dist/company-types-value-BYTAKfjo.js +17 -0
- package/dist/contract-CHdRrIxe.js +20 -0
- package/dist/countries-BuZ6_X95.js +41 -0
- package/dist/country-COrdWGaq.js +13 -0
- package/dist/country-code-CX5KqMBr.js +284 -0
- package/dist/cross-circle-fill-CmXERg4H.js +30 -0
- package/dist/cross-circle-fill-small-CMz7hV-a.js +20 -0
- package/dist/cross-eL7Kqv7I.js +20 -0
- package/dist/cs-CZ-B0PS89aw.js +7 -0
- package/dist/cs-CZ-BJQndp5g.js +18 -0
- package/dist/cs-CZ-BSCmFoe-.js +70 -0
- package/dist/cs-CZ-BkegBLH0.js +7 -0
- package/dist/cs-CZ-Cf3RE2Kz.js +69 -0
- package/dist/cs-CZ-CgD-Dni9.js +48 -0
- package/dist/cs-CZ-D0tlzysb.js +57 -0
- package/dist/cs-CZ-DNo3i13i.js +59 -0
- package/dist/cs-CZ-DerpXyW7.js +26 -0
- package/dist/cs-CZ-DoyjAWTB.js +7 -0
- package/dist/cs-CZ-DzvqR4Si.js +7 -0
- package/dist/cs-CZ-EALbGC0P.js +23 -0
- package/dist/cs-CZ-nVt_3Wsc.js +31 -0
- package/dist/cs-CZ-y--aL5tG.js +7 -0
- package/dist/currency-DNgyvN7z.js +29 -0
- package/dist/da-DK-B_qoG-tX.js +48 -0
- package/dist/da-DK-Bdp8gkhn.js +23 -0
- package/dist/da-DK-BpC27U0O.js +7 -0
- package/dist/da-DK-C-6cZEqg.js +59 -0
- package/dist/da-DK-CLzpAJZX.js +7 -0
- package/dist/da-DK-Cu2Bi6Q7.js +31 -0
- package/dist/da-DK-DFjTxgfg.js +7 -0
- package/dist/da-DK-DSrFDOG3.js +57 -0
- package/dist/da-DK-DbpZoBrp.js +18 -0
- package/dist/da-DK-DcplyxCd.js +70 -0
- package/dist/da-DK-DgFOdais.js +69 -0
- package/dist/da-DK-d-G4WSG9.js +7 -0
- package/dist/da-DK-gVDOt4Mx.js +26 -0
- package/dist/da-DK-niSqcowC.js +7 -0
- package/dist/datasetUtil-Zd4TCTDn.js +45 -0
- package/dist/de-DE-4UdLDq_d.js +59 -0
- package/dist/de-DE-BVoU3x7q.js +26 -0
- package/dist/de-DE-BX0mu_5B.js +7 -0
- package/dist/de-DE-BsZOOvbi.js +7 -0
- package/dist/de-DE-Bsrf1Qk-.js +7 -0
- package/dist/de-DE-CJAVduiD.js +70 -0
- package/dist/de-DE-CPjVxwLK.js +69 -0
- package/dist/de-DE-CSfZ-fLe.js +23 -0
- package/dist/de-DE-Ccbobm6F.js +18 -0
- package/dist/de-DE-DLpDehXu.js +48 -0
- package/dist/de-DE-DXLRcNXw.js +57 -0
- package/dist/de-DE-KXIXcUTs.js +7 -0
- package/dist/de-DE-Qs8eQGQS.js +31 -0
- package/dist/de-DE-jwrvfE6B.js +7 -0
- package/dist/de-DE-zVrwBFVP.js +7 -0
- package/dist/debouncedInputEvent-Dxv4-RAv.js +54 -0
- package/dist/debugStore-bZ_bkJeS.js +9 -0
- package/dist/decision-maker-type-Cow3CpUd.js +12 -0
- package/dist/decision-makers-group-Cof9scJd.js +4169 -0
- package/dist/decisionMaker-j9cwyXuS.js +146 -0
- package/dist/decisionMakerRoles-CAy-eeNV.js +45 -0
- package/dist/digital-wallet-BXDAhThn.js +163 -0
- package/dist/document-1-CAkgmlsx.js +20 -0
- package/dist/document-blurred-LCBsN2NC.js +116 -0
- package/dist/document-cut-off-wsPtcq1x.js +116 -0
- package/dist/document-expired-CvTJKcZr.js +160 -0
- package/dist/document-front-BHCo0w58.js +113 -0
- package/dist/document-person-BMqoEMgx.js +28 -0
- package/dist/download-CUCb0PT7.js +23 -0
- package/dist/dropinUtils-FIEFyS0F.js +275 -0
- package/dist/edit-1-DqX_7cbs.js +20 -0
- package/dist/el-GR-B08o_Wr7.js +59 -0
- package/dist/el-GR-B1VnihMi.js +69 -0
- package/dist/el-GR-BUGibSyd.js +26 -0
- package/dist/el-GR-BV0tj_MA.js +7 -0
- package/dist/el-GR-C-HtCTGV.js +57 -0
- package/dist/el-GR-C5lpMpmF.js +7 -0
- package/dist/el-GR-C7o9YGzw.js +23 -0
- package/dist/el-GR-CDp-bn0j.js +7 -0
- package/dist/el-GR-CN3HrU9J.js +70 -0
- package/dist/el-GR-CNDZGVN3.js +31 -0
- package/dist/el-GR-D9AagIjI.js +18 -0
- package/dist/el-GR-DRbd6eXu.js +7 -0
- package/dist/el-GR-DZuLkaBp.js +48 -0
- package/dist/el-GR-Doj3UHZu.js +7 -0
- package/dist/el-GR-DvgAQImQ.js +7 -0
- package/dist/emitEvent-B8K0cb1F.js +35 -0
- package/dist/en-US-3j1Js4vT.js +70 -0
- package/dist/en-US-B3MAOxZH.js +7 -0
- package/dist/en-US-BWMrfrd7.js +31 -0
- package/dist/en-US-Bg9gdBEC.js +7 -0
- package/dist/en-US-BgLFeko-.js +18 -0
- package/dist/en-US-C81RZMm3.js +76 -0
- package/dist/en-US-CEBexxFl.js +23 -0
- package/dist/en-US-CnVk6lVt.js +212 -0
- package/dist/en-US-CwN7_Z6A.js +60 -0
- package/dist/en-US-Cwp_kAIu.js +57 -0
- package/dist/en-US-D1y6M9AI.js +116 -0
- package/dist/en-US-D6psKu6Y.js +26 -0
- package/dist/en-US-D8jS6G6S.js +10 -0
- package/dist/en-US-DH-5G1L0.js +7 -0
- package/dist/en-US-DqbNEPfm.js +7 -0
- package/dist/en-US-IxvcS3bq.js +7 -0
- package/dist/en-US-RJmb2nTR.js +69 -0
- package/dist/en-US-Rnj0uOlI.js +40 -0
- package/dist/en-US-hCtMObDn.js +196 -0
- package/dist/en-US-jcuu40kx.js +48 -0
- package/dist/en-US-rEquAkrM.js +60 -0
- package/dist/en-US.instructions-Bh8SYzc5.js +7 -0
- package/dist/en-US.instructions-C5xXRJDu.js +16 -0
- package/dist/entityAssociationUtil-BEzUdPbm.js +97 -0
- package/dist/es-ES-8AtDNr6X.js +18 -0
- package/dist/es-ES-B7uIo7kE.js +23 -0
- package/dist/es-ES-B9kTevXB.js +59 -0
- package/dist/es-ES-BJfw2diu.js +7 -0
- package/dist/es-ES-B_kBpFxZ.js +7 -0
- package/dist/es-ES-BkeAb5PG.js +7 -0
- package/dist/es-ES-Bwj2MUyM.js +69 -0
- package/dist/es-ES-CHyhM1uh.js +7 -0
- package/dist/es-ES-CLr_KwxQ.js +7 -0
- package/dist/es-ES-D-n6xoWo.js +7 -0
- package/dist/es-ES-D1vAd-8r.js +26 -0
- package/dist/es-ES-DKenRcq3.js +70 -0
- package/dist/es-ES-DWjfZmTj.js +31 -0
- package/dist/es-ES-H0DZcC1K.js +48 -0
- package/dist/es-ES-hX5WUfzS.js +57 -0
- package/dist/et-EE-BSAr_xVc.js +31 -0
- package/dist/et-EE-BcWPn7Cl.js +7 -0
- package/dist/et-EE-BnDOa_4e.js +7 -0
- package/dist/et-EE-CNNN-M_x.js +18 -0
- package/dist/et-EE-CWGint-T.js +26 -0
- package/dist/et-EE-CfheEJAy.js +7 -0
- package/dist/et-EE-Cs__RUB9.js +48 -0
- package/dist/et-EE-DmlaKK4B.js +57 -0
- package/dist/et-EE-DsLOML8r.js +70 -0
- package/dist/et-EE-Du3REm6O.js +7 -0
- package/dist/et-EE-GTXnG-3j.js +59 -0
- package/dist/et-EE-Mp-OiQL2.js +69 -0
- package/dist/et-EE-SeklRCmh.js +7 -0
- package/dist/et-EE-_uLrdnTi.js +23 -0
- package/dist/external-link-V6JPH8K0.js +20 -0
- package/dist/fi-FI-1nGlfW_t.js +7 -0
- package/dist/fi-FI-80q1y1Bb.js +59 -0
- package/dist/fi-FI-BKXhGjNk.js +26 -0
- package/dist/fi-FI-BY9X2DpF.js +31 -0
- package/dist/fi-FI-BcXm_vtP.js +7 -0
- package/dist/fi-FI-BcdVq2e0.js +23 -0
- package/dist/fi-FI-Bx1S9eQf.js +70 -0
- package/dist/fi-FI-Cl1vbAPV.js +18 -0
- package/dist/fi-FI-DdyNwoGb.js +7 -0
- package/dist/fi-FI-Dy_bfWw7.js +48 -0
- package/dist/fi-FI-Dz25oorf.js +7 -0
- package/dist/fi-FI-iyr94E5r.js +57 -0
- package/dist/fi-FI-n4x7ZOmh.js +7 -0
- package/dist/fi-FI-pvpGl_6s.js +69 -0
- package/dist/fieldConfigurations-m7oWP1DZ.js +11 -0
- package/dist/file-6a0FDVyq.js +37 -0
- package/dist/filterProblemsByTaskForms-DwS9T-_E.js +21 -0
- package/dist/form-rules-CvdV5rPY.js +7 -0
- package/dist/formFieldsUtils-CR7j1k8e.js +7 -0
- package/dist/formUtils-DCvL3uZG.js +78 -0
- package/dist/fr-FR-ANv8VCCV.js +7 -0
- package/dist/fr-FR-B9xNxWia.js +31 -0
- package/dist/fr-FR-CDTGvZzl.js +7 -0
- package/dist/fr-FR-CEWcwAJ-.js +7 -0
- package/dist/fr-FR-CMMz7OEo.js +69 -0
- package/dist/fr-FR-CqbeB381.js +7 -0
- package/dist/fr-FR-D2Ep3xgM.js +59 -0
- package/dist/fr-FR-DC_PZPwP.js +18 -0
- package/dist/fr-FR-DKjCgBfS.js +7 -0
- package/dist/fr-FR-DL8mtS3r.js +57 -0
- package/dist/fr-FR-DcXwaT3d.js +48 -0
- package/dist/fr-FR-DksMI4zV.js +70 -0
- package/dist/fr-FR-DzjwEGsx.js +26 -0
- package/dist/fr-FR-Ta6QBpqt.js +23 -0
- package/dist/fr-FR-bqkpOtF1.js +7 -0
- package/dist/funds-in-04OBDLJw.js +24 -0
- package/dist/get-scenarios-DnCVdYIC.js +24 -0
- package/dist/getLegalEntityCountry-C6bSV6sB.js +17 -0
- package/dist/getName-Bdwp_hkV.js +35 -0
- package/dist/getNestedPropertyKeys-CVAsNBJ8.js +18 -0
- package/dist/getProblemsForEntity-Df8xJUr2.js +16 -0
- package/dist/getProps-CkZCnNxW.js +98 -0
- package/dist/getTrustedFields-UVTLadau.js +45 -0
- package/dist/gift-C3MzdRIj.js +20 -0
- package/dist/globalStore-BsvLFLDr.js +418 -0
- package/dist/graph-BJ7yemhR.js +32 -0
- package/dist/graph-up-CWzty_jt.js +38 -0
- package/dist/headquarter-COstZFO7.js +42 -0
- package/dist/hotel-C1vO2ZiV.js +33 -0
- package/dist/house-BfjiK4vF.js +24 -0
- package/dist/hr-HR-B8MiNFt0.js +7 -0
- package/dist/hr-HR-Bp5qQwHS.js +48 -0
- package/dist/hr-HR-BqNvRwoc.js +7 -0
- package/dist/hr-HR-C4Bv0YpX.js +59 -0
- package/dist/hr-HR-CBySzkSl.js +7 -0
- package/dist/hr-HR-CJHkB1ko.js +69 -0
- package/dist/hr-HR-CLRdCbY_.js +7 -0
- package/dist/hr-HR-CMcgajLG.js +26 -0
- package/dist/hr-HR-CjbJFQJu.js +7 -0
- package/dist/hr-HR-Ck-S-k5d.js +23 -0
- package/dist/hr-HR-D0Xp4lTU.js +31 -0
- package/dist/hr-HR-EhBzx8FM.js +57 -0
- package/dist/hr-HR-FHDzcIUl.js +70 -0
- package/dist/hr-HR-pOpa3-4-.js +18 -0
- package/dist/http-btI4x32X.js +148 -0
- package/dist/hu-HU-3a4f6Po4.js +59 -0
- package/dist/hu-HU-BF3I2cDh.js +69 -0
- package/dist/hu-HU-BOCGei6J.js +31 -0
- package/dist/hu-HU-Bg2UoMm1.js +7 -0
- package/dist/hu-HU-C-gD2scj.js +7 -0
- package/dist/hu-HU-Cq3L3459.js +26 -0
- package/dist/hu-HU-CsOzXRwg.js +7 -0
- package/dist/hu-HU-DG9r7Yn5.js +18 -0
- package/dist/hu-HU-DHZf-Z1b.js +7 -0
- package/dist/hu-HU-DZmGYcpb.js +57 -0
- package/dist/hu-HU-DZnrPw7M.js +70 -0
- package/dist/hu-HU-HNscNs5I.js +48 -0
- package/dist/hu-HU-u7Q5hZ8M.js +23 -0
- package/dist/hu-HU-xJ7HEjBk.js +7 -0
- package/dist/id-blurred-DajPeUev.js +266 -0
- package/dist/id-cut-off-Cg7VH88-.js +242 -0
- package/dist/id-front-BFiC6TLx.js +237 -0
- package/dist/id-glare--tl3DxTG.js +218 -0
- package/dist/image-Ctf24Eqr.js +23 -0
- package/dist/info-CKFBABlx.js +32 -0
- package/dist/info-filled-BtKXWmDk.js +32 -0
- package/dist/invalidateRootLegalEntity-BbVdQNIY.js +45 -0
- package/dist/isEmpty-DFUWFV4h.js +14 -0
- package/dist/isEmptyEntity-BM_3oo07.js +44 -0
- package/dist/isNewEntity-4QusRCpP.js +7 -0
- package/dist/it-IT-4udyC9ua.js +7 -0
- package/dist/it-IT-BFVfcntm.js +31 -0
- package/dist/it-IT-BVcopRE0.js +57 -0
- package/dist/it-IT-Bncw2hQ-.js +69 -0
- package/dist/it-IT-C-OxfLhZ.js +48 -0
- package/dist/it-IT-C2wbwYWQ.js +59 -0
- package/dist/it-IT-CBQ2gGE7.js +7 -0
- package/dist/it-IT-CKYkplGl.js +23 -0
- package/dist/it-IT-Cd3oPF1M.js +18 -0
- package/dist/it-IT-D8RXfncB.js +7 -0
- package/dist/it-IT-DWt33Mig.js +70 -0
- package/dist/it-IT-DpTVTcDk.js +7 -0
- package/dist/it-IT-MRrAO1jy.js +7 -0
- package/dist/it-IT-YCjFrZ-Z.js +7 -0
- package/dist/it-IT-rGM1QmSW.js +26 -0
- package/dist/ja-JP-B8Rg2VNl.js +69 -0
- package/dist/ja-JP-BDPtYIpq.js +7 -0
- package/dist/ja-JP-C0ASZo79.js +196 -0
- package/dist/ja-JP-CLmtF9H_.js +31 -0
- package/dist/ja-JP-CNNwQyYR.js +70 -0
- package/dist/ja-JP-CQBoZgiC.js +23 -0
- package/dist/ja-JP-CgfF4yTt.js +48 -0
- package/dist/ja-JP-Cla1MJLj.js +7 -0
- package/dist/ja-JP-CsgosKvD.js +26 -0
- package/dist/ja-JP-DRYUrb3a.js +7 -0
- package/dist/ja-JP-DbHm_J96.js +7 -0
- package/dist/ja-JP-DieVzA1B.js +18 -0
- package/dist/ja-JP-DxUBevNe.js +59 -0
- package/dist/ja-JP-DyUgd4BE.js +57 -0
- package/dist/ja-JP-WirIWnQi.js +7 -0
- package/dist/ja-JP-uXR7c5rz.js +7 -0
- package/dist/japanSupportUtils-DcDqwV81.js +11 -0
- package/dist/jpAddressSchema-BQTiMBSQ.js +17 -0
- package/dist/keys-fzUbt2xF.js +20 -0
- package/dist/legal-entity-type-VIfNYnJP.js +13 -0
- package/dist/listToRecord-4wGOf00H.js +10 -0
- package/dist/localizeDateString-AhjDnkHD.js +35 -0
- package/dist/location-CpaR6p3k.js +23 -0
- package/dist/lt-LT-2d52byGI.js +70 -0
- package/dist/lt-LT-4dQRWgMS.js +7 -0
- package/dist/lt-LT-B9QsV1Fl.js +31 -0
- package/dist/lt-LT-BE20J_Fa.js +59 -0
- package/dist/lt-LT-BRFs6EyI.js +69 -0
- package/dist/lt-LT-CK-_FLDK.js +18 -0
- package/dist/lt-LT-CxHglunM.js +48 -0
- package/dist/lt-LT-CyVGhu0R.js +26 -0
- package/dist/lt-LT-DCexrILL.js +57 -0
- package/dist/lt-LT-DsKGJjAK.js +7 -0
- package/dist/lt-LT-Dv9CNqL5.js +23 -0
- package/dist/lt-LT-RYz2_iMh.js +7 -0
- package/dist/lt-LT-lr-xOt-0.js +7 -0
- package/dist/lt-LT-ykgOI1Lh.js +7 -0
- package/dist/lv-LV-1DHJcJtx.js +31 -0
- package/dist/lv-LV-7toRaVhs.js +7 -0
- package/dist/lv-LV-BXLZTnKa.js +59 -0
- package/dist/lv-LV-BZ6GdtSG.js +23 -0
- package/dist/lv-LV-BhvjJBtW.js +18 -0
- package/dist/lv-LV-CALhnU3h.js +48 -0
- package/dist/lv-LV-CrYidfpB.js +70 -0
- package/dist/lv-LV-DXmGZc4u.js +7 -0
- package/dist/lv-LV-Dlq59Kg7.js +26 -0
- package/dist/lv-LV-DykVV_JJ.js +7 -0
- package/dist/lv-LV-OjadvSbn.js +7 -0
- package/dist/lv-LV-pzQT6oF4.js +69 -0
- package/dist/lv-LV-qidnvuKE.js +7 -0
- package/dist/lv-LV-vUmm_Y8X.js +57 -0
- package/dist/mail-uoxYIc94.js +20 -0
- package/dist/mapAddressLocalizationToJpAddressSchema-Cp77VSSB.js +66 -0
- package/dist/mapExistingFile-DdeA1Ya3.js +138 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-DiB3xFfa.js +61 -0
- package/dist/mapLegalEntityToIndividualSchema-CK2d-XB-.js +206 -0
- package/dist/mapTransferInstrumentToPayoutAccount-5vTCCl4n.js +44 -0
- package/dist/minus-circle-filled-B_E6PncD.js +30 -0
- package/dist/nl-NL-BOfLp7Kw.js +7 -0
- package/dist/nl-NL-Bfn1b5-H.js +18 -0
- package/dist/nl-NL-BsMqXzW2.js +7 -0
- package/dist/nl-NL-BtXGtpjP.js +70 -0
- package/dist/nl-NL-BxRQSueu.js +7 -0
- package/dist/nl-NL-Ch1_Ho4H2.js +7 -0
- package/dist/nl-NL-CoEgvakv.js +23 -0
- package/dist/nl-NL-CscaDll4.js +69 -0
- package/dist/nl-NL-D9OFsGYi.js +48 -0
- package/dist/nl-NL-DUzifJ-6.js +7 -0
- package/dist/nl-NL-DZOwYmdT.js +59 -0
- package/dist/nl-NL-DayMdZGS.js +26 -0
- package/dist/nl-NL-DcLEwsh6.js +31 -0
- package/dist/nl-NL-DpZ_sRQQ.js +57 -0
- package/dist/nl-NL-DrryYwRC.js +7 -0
- package/dist/no-NO-7cH_mYGz.js +23 -0
- package/dist/no-NO-BNo6BEI2.js +48 -0
- package/dist/no-NO-Bj-bFlwW.js +59 -0
- package/dist/no-NO-CMSuTQFP.js +7 -0
- package/dist/no-NO-COKvHr69.js +70 -0
- package/dist/no-NO-CeJtzvaa.js +57 -0
- package/dist/no-NO-CfYxgg3G.js +31 -0
- package/dist/no-NO-CpQs6Kuj.js +7 -0
- package/dist/no-NO-CveHyEMg.js +7 -0
- package/dist/no-NO-CzUEYJ6T2.js +7 -0
- package/dist/no-NO-DCPDmC0O.js +7 -0
- package/dist/no-NO-DFiHCQaa.js +18 -0
- package/dist/no-NO-DNxpnnM4.js +69 -0
- package/dist/no-NO-DphtE0hV.js +26 -0
- package/dist/omitObscuredFieldsIfUnchanged-B7VNFVgY.js +20 -0
- package/dist/onfido-logo-EtpExIxa.js +18 -0
- package/dist/options-horizontal-CDJtmlVY.js +30 -0
- package/dist/partner-gFUctV1k.js +30 -0
- package/dist/passport-blurred-CeDXhPyb.js +266 -0
- package/dist/passport-cut-off-CvgvQJYC.js +246 -0
- package/dist/passport-front-DnOK4cgY.js +237 -0
- package/dist/passport-front-green-BOdOhMh6.js +479 -0
- package/dist/passport-glare-BMA9YxJd.js +222 -0
- package/dist/patternValidators-BaQxw3ki.js +73 -0
- package/dist/pay-by-link-plane-q4Bh-mWo.js +33 -0
- package/dist/payout-CpwcL7W1.js +38 -0
- package/dist/payout-bank-accounts-jW_Zgfqf.js +38 -0
- package/dist/payout-verification-instant-BLpp07Uv.js +156 -0
- package/dist/payout-verification-manual-BgjvhzA9.js +462 -0
- package/dist/person-B3rmhreD.js +23 -0
- package/dist/phonePrefixes-j_kb1wJm.js +252 -0
- package/dist/pl-PL-B6MlP7Xz.js +23 -0
- package/dist/pl-PL-BKJlxx_t.js +57 -0
- package/dist/pl-PL-BhRJVuU3.js +31 -0
- package/dist/pl-PL-BvYP_Mjz2.js +7 -0
- package/dist/pl-PL-CKZbiqpL.js +7 -0
- package/dist/pl-PL-CRanu6gn.js +48 -0
- package/dist/pl-PL-D-e2Z51f.js +70 -0
- package/dist/pl-PL-D2dgIhBU.js +18 -0
- package/dist/pl-PL-D6XdYdXs.js +7 -0
- package/dist/pl-PL-DEkGFDx6.js +7 -0
- package/dist/pl-PL-DcwGjG1k.js +7 -0
- package/dist/pl-PL-Ovy-dAEm.js +26 -0
- package/dist/pl-PL-V52qRKcx.js +69 -0
- package/dist/pl-PL-v95qJZ7W.js +59 -0
- package/dist/plaid-logo-JKKXRmk4.js +15 -0
- package/dist/plus-D1pu1FCh.js +20 -0
- package/dist/plus-circle-filled-BAKemMoO.js +30 -0
- package/dist/process-field-configurations-44gfzIGi.js +279 -0
- package/dist/processCapabilitites-BHzfFtSM.js +869 -0
- package/dist/pt-BR-B7FJvvCY2.js +7 -0
- package/dist/pt-BR-B7oDER2v.js +31 -0
- package/dist/pt-BR-B8YZ-Hqo.js +116 -0
- package/dist/pt-BR-BNfmjS7T.js +18 -0
- package/dist/pt-BR-B_tIsNF2.js +7 -0
- package/dist/pt-BR-C3oGCuLZ.js +23 -0
- package/dist/pt-BR-CL2QRxOt.js +57 -0
- package/dist/pt-BR-CPXL0egI.js +69 -0
- package/dist/pt-BR-CwEhFyDx.js +70 -0
- package/dist/pt-BR-D01BPIQ8.js +48 -0
- package/dist/pt-BR-DgAN88vt.js +26 -0
- package/dist/pt-BR-Dk284q8W.js +7 -0
- package/dist/pt-BR-DkGneNc5.js +7 -0
- package/dist/pt-BR-DyYEeGVr.js +7 -0
- package/dist/pt-BR-w4XP2Zc2.js +59 -0
- package/dist/pt-PT-5BekXyBw.js +26 -0
- package/dist/pt-PT-B0PlOQYf2.js +7 -0
- package/dist/pt-PT-BSNvIlJh.js +23 -0
- package/dist/pt-PT-C_6pNXKv.js +31 -0
- package/dist/pt-PT-CabKp0yt.js +7 -0
- package/dist/pt-PT-Cr2esDwf.js +69 -0
- package/dist/pt-PT-D3v24Se2.js +18 -0
- package/dist/pt-PT-DYQXla7J.js +7 -0
- package/dist/pt-PT-DYXnzP0x.js +59 -0
- package/dist/pt-PT-DfOrysaZ.js +7 -0
- package/dist/pt-PT-Dfp-0h0s.js +7 -0
- package/dist/pt-PT-DjZ0SeNY.js +48 -0
- package/dist/pt-PT-IOArlYPi.js +7 -0
- package/dist/pt-PT-of6NX5C7.js +70 -0
- package/dist/pt-PT-sZUWaieU.js +57 -0
- package/dist/recurring-BqOZk0GH.js +23 -0
- package/dist/reporting-DI9JGolm.js +20 -0
- package/dist/resolveEnvironment-BYa8h9R6.js +1176 -0
- package/dist/revenue-accelerate-CSszZfVF.js +30 -0
- package/dist/review-CkgZkiFy.js +19 -0
- package/dist/ro-RO-7VBqqH7o.js +31 -0
- package/dist/ro-RO-9NTYYrid.js +48 -0
- package/dist/ro-RO-BW4-_NrZ.js +57 -0
- package/dist/ro-RO-BXjIQG3P.js +7 -0
- package/dist/ro-RO-BZMTQGJJ2.js +7 -0
- package/dist/ro-RO-BlBqP0LV.js +18 -0
- package/dist/ro-RO-BtLXaAVi.js +26 -0
- package/dist/ro-RO-CBNP3GS_.js +7 -0
- package/dist/ro-RO-CGoDuoZa.js +70 -0
- package/dist/ro-RO-Can6URM1.js +23 -0
- package/dist/ro-RO-DH5uD9v9.js +7 -0
- package/dist/ro-RO-DUiDGCZU.js +59 -0
- package/dist/ro-RO-DYwkjw9d.js +69 -0
- package/dist/ro-RO-Dy9karNI.js +7 -0
- package/dist/roleMetadata-CP3ZYYSI.js +56 -0
- package/dist/save-BwoYyyYQ.js +20 -0
- package/dist/search-lRnoylK2.js +30 -0
- package/dist/show-Dpmp87ye.js +23 -0
- package/dist/singpass-logo--50WxD_p.js +22 -0
- package/dist/singpass-verification-instant-BHID0qRO.js +175 -0
- package/dist/singpass-verification-manual-DpefFA6C.js +141 -0
- package/dist/sk-SK-BDItYkrD.js +23 -0
- package/dist/sk-SK-BPDMxREF2.js +7 -0
- package/dist/sk-SK-Blzjm32C.js +7 -0
- package/dist/sk-SK-BmP_vrOT.js +7 -0
- package/dist/sk-SK-CAkLqBR-.js +48 -0
- package/dist/sk-SK-CJW-1wtq.js +7 -0
- package/dist/sk-SK-CZnhSCxt.js +18 -0
- package/dist/sk-SK-D2f2S35P.js +7 -0
- package/dist/sk-SK-DESgizdP.js +59 -0
- package/dist/sk-SK-fwnwR2zz.js +26 -0
- package/dist/sk-SK-qVeRKlxs.js +31 -0
- package/dist/sk-SK-vSn9yvb8.js +69 -0
- package/dist/sk-SK-vyxCXCDR.js +57 -0
- package/dist/sk-SK-wYLB-c3d.js +70 -0
- package/dist/sl-SI-B5xGgx5S.js +70 -0
- package/dist/sl-SI-BHztDEDm.js +59 -0
- package/dist/sl-SI-BxJgtZKP.js +69 -0
- package/dist/sl-SI-C0d32nxW.js +57 -0
- package/dist/sl-SI-C5FYCjwi.js +48 -0
- package/dist/sl-SI-CYVD9Yk1.js +26 -0
- package/dist/sl-SI-ChRXWdua.js +31 -0
- package/dist/sl-SI-D8NMKaco.js +7 -0
- package/dist/sl-SI-DHQWrn6C2.js +7 -0
- package/dist/sl-SI-DHxcpzya.js +7 -0
- package/dist/sl-SI-DPvusyJQ.js +7 -0
- package/dist/sl-SI-DuHn6HyC.js +7 -0
- package/dist/sl-SI-SNjGgOph.js +23 -0
- package/dist/sl-SI-rLQo_kKv.js +18 -0
- package/dist/solution-payments-DfH5DH9o.js +20 -0
- package/dist/store-mAgJeN44.js +20 -0
- package/dist/style.css +2070 -2038
- package/dist/styles-9jxW7TiP.js +5988 -0
- package/dist/summaryItem-Dehjwp8D.js +16 -0
- package/dist/sv-SE-BFFAjxxo.js +31 -0
- package/dist/sv-SE-BIHbDoRU.js +18 -0
- package/dist/sv-SE-B_VHF1Ec.js +7 -0
- package/dist/sv-SE-BfoCgwXl.js +7 -0
- package/dist/sv-SE-BhAr7iey.js +26 -0
- package/dist/sv-SE-Bre2IWV2.js +7 -0
- package/dist/sv-SE-CU-lNGyw.js +70 -0
- package/dist/sv-SE-CfgjwWHS.js +57 -0
- package/dist/sv-SE-Cos-ox5c.js +7 -0
- package/dist/sv-SE-D9Aj9VZ9.js +7 -0
- package/dist/sv-SE-DZq6vMfw2.js +7 -0
- package/dist/sv-SE-QRDrM1rH.js +23 -0
- package/dist/sv-SE-_iVNE7OY.js +69 -0
- package/dist/sv-SE-nA--xWZA.js +48 -0
- package/dist/sv-SE-znK8JjXi.js +59 -0
- package/dist/taskStatus-C7XU4UIF.js +21 -0
- package/dist/tax-reporting-graph-DEiE6q1X.js +906 -0
- package/dist/terminal-1-BlqlENmQ.js +30 -0
- package/dist/tink-logo-DQabT2Uk.js +15 -0
- package/dist/toFullWidth-CQcDriFa.js +52 -0
- package/dist/trackNavigation-LvCP5Vyc.js +15 -0
- package/dist/translation-G4HP2nQW.js +854 -0
- package/dist/trustMemberGuidance-B3VWjXzg.js +27 -0
- package/dist/trustUtil-BTHvlo55.js +99 -0
- package/dist/trusted-fields-provider-BHbX2hsp.js +10 -0
- package/dist/types/api/companySearch/useCompanySearch.d.ts +19 -12
- package/dist/types/api/invitations/invitations.types.d.ts +1 -1
- package/dist/types/api/invitations/useCreateInvitation.d.ts +2 -2
- package/dist/types/api/invitations/useInvitationStatus.d.ts +9 -0
- package/dist/types/api/invitations/useWithdrawInvitation.d.ts +8 -0
- package/dist/types/api/invitedEntity/useInvitedEntityRootCapabilities.d.ts +28 -0
- package/dist/types/api/queryKeys.d.ts +3 -2
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +15 -10
- package/dist/types/api/toggles/useToggles.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/PayoutAccount/InstantVerificationCTA/InstantVerificationCTA.d.ts +4 -0
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetailsMultiform.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -0
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +142 -142
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/store.d.ts +3 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsGettingStarted/PayoutDetailsGettingStarted.d.ts +7 -0
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +493 -493
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/OnboardingDropinComponent.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual.types.d.ts +2 -0
- package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.d.ts +2 -0
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +6 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useShareInvitation.d.ts +6 -0
- package/dist/types/components/Shared/Summary/summaryItem.d.ts +14 -8
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
- package/dist/types/components/ui/atoms/Image/Image.d.ts +2 -1
- package/dist/types/components/ui/atoms/Typography/Typography.types.d.ts +1 -0
- package/dist/types/context/AnalyticsContext/AnalyticsProvider.d.ts +1 -2
- package/dist/types/context/ToggleContext/types.d.ts +10 -1
- package/dist/types/context/handlerContext/HandlerContext.d.ts +2 -0
- package/dist/types/context/handlerContext/HandlerProvider.d.ts +2 -0
- package/dist/types/context/handlerContext/types.d.ts +9 -0
- package/dist/types/context/handlerContext/useHandlerContext.d.ts +1 -0
- package/dist/types/hooks/useFormComposer.d.ts +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/types/form-rules.d.ts +2 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/performance.d.ts +2 -5
- package/dist/types/utils/validationError.d.ts +1 -0
- package/dist/types-BqFOt7-l.js +58 -0
- package/dist/types-CEAHkjXI.js +66 -0
- package/dist/types-CNZsK2dZ.js +31 -0
- package/dist/types-CXceqQIv.js +68 -0
- package/dist/types-DjTEjDpj.js +19 -0
- package/dist/unincorporated-partnership-5MvG_ts4.js +11 -0
- package/dist/upload-CIujAxWY.js +23 -0
- package/dist/us-check-account-number-EkWzylgz.js +157 -0
- package/dist/us-check-b9k7TlOd.js +144 -0
- package/dist/us-check-routing-number-ObI-JE-C.js +161 -0
- package/dist/useAccountHolder-LttF1BJG.js +102 -0
- package/dist/useAllowedCountries-B2tXNxdL.js +74 -0
- package/dist/useAnalyticsContext-BVFDMrVE.js +86 -0
- package/dist/useAssociatedLegalEntity-Dav_4ehd.js +35 -0
- package/dist/useBusinessDetailsData-DmromzC6.js +4395 -0
- package/dist/useBusinessLines-DGr43nU6.js +27 -0
- package/dist/useCanSeeIntroduction-ClAuT5gj.js +39 -0
- package/dist/useCapabilities-C3Re0QHQ.js +12 -0
- package/dist/useCreateLegalEntity-u6NuumMd.js +24 -0
- package/dist/useDataMissingRemediations-Cv_4vV2R.js +39 -0
- package/dist/useDataset-DA7SoxiX.js +96 -0
- package/dist/useDeleteTransferInstrument-Me9ITlCM.js +31 -0
- package/dist/useForm-CTiDrzeg.js +502 -0
- package/dist/useFormContext-6LTkbLR1.js +178 -0
- package/dist/useGlobalData-KEb46I95.js +164 -0
- package/dist/useId-eJSYfA6i.js +28 -0
- package/dist/useLegalEntity-Cj6C6bAI.js +48 -0
- package/dist/useMultiForm-CiK9l6YR.js +754 -0
- package/dist/useNavigate-B4pHnNyj.js +268 -0
- package/dist/useOnboardingStatus-BuYODvAM.js +23 -0
- package/dist/usePciQuestionnaireList-Bx5N4Ucf.js +26 -0
- package/dist/useSalesChannels-BV-gSBhb.js +47 -0
- package/dist/useScenarios-DVTHREqP.js +55 -0
- package/dist/useSettingsContext-DzwVt0W0.js +15 -0
- package/dist/useTaskLandedEvent-DInxWeqN.js +23 -0
- package/dist/useTaskStatus-BjqC1s3K.js +51 -0
- package/dist/useTermsOfServiceStatus-BLMY5p8c.js +39 -0
- package/dist/useToastContext-CYgfHjSb.js +12 -0
- package/dist/useToggleContext-DaQUBF8O.js +21 -0
- package/dist/useTrustMembers-DbO0tmcu.js +152 -0
- package/dist/useUnincorporatedPartnershipMembers-Dzj3BDFI.js +70 -0
- package/dist/useUpdateBusinessLines-BfYwukg9.js +296 -0
- package/dist/useUpdateLegalEntity-oigX0fKz.js +29 -0
- package/dist/utils-BAuFBG3J.js +88 -0
- package/dist/utils-BU2d-Zzu.js +805 -0
- package/dist/utils-CfTVU2Hq.js +207 -0
- package/dist/utils-CzW6YqAz.js +46 -0
- package/dist/utils-DXTGGW-J.js +188 -0
- package/dist/utils-oc3EdK6K.js +80 -0
- package/dist/validate-9_4V5MhN.js +387 -0
- package/dist/validate-C1II14sz.js +411 -0
- package/dist/validate-D4RU2PP0.js +109 -0
- package/dist/validationError-DhMlWpYp.js +68 -0
- package/dist/validationResult-D3sPVzMw.js +57 -0
- package/dist/validatorUtils-DRapRJ6z.js +107 -0
- package/dist/view-verification-status-CtW_qUMg.js +13 -0
- package/dist/warning-circle-fill-B8syKAww.js +30 -0
- package/dist/warning-diamond-filled-D81TURTB.js +30 -0
- package/dist/webinar-CA8zN8_B.js +33 -0
- package/dist/yapily-logo-BeowYojR.js +22 -0
- package/package.json +30 -34
- package/dist/4-people-BtDi7O9A.js +0 -24
- package/dist/AD-BQAadLyG.js +0 -23
- package/dist/AE-mIZ12t47.js +0 -25
- package/dist/AI-CYOqGKk2.js +0 -27
- package/dist/AL-BX1fEo1A.js +0 -27
- package/dist/AR-C9kMRnHG.js +0 -27
- package/dist/AS-B0TMZQ6o.js +0 -25
- package/dist/AT-BI8ju2NH.js +0 -23
- package/dist/AT-C_G2OvQI.js +0 -28
- package/dist/AT-EpV7jN58.js +0 -27
- package/dist/AT-TzG2NGTc.js +0 -30
- package/dist/AU-B5LSe4bo.js +0 -24
- package/dist/AU-CaovX9P8.js +0 -24
- package/dist/AU-CdwbD1qm.js +0 -32
- package/dist/AU-pBsEvEUy.js +0 -24
- package/dist/AX-Z6f6EnJc.js +0 -23
- package/dist/AZ-BqrKjWMH.js +0 -27
- package/dist/AcceptTermsOfServiceComponent-BbktO0zC.js +0 -653
- package/dist/AccountSetupRejected-B9jCHNz-.js +0 -23
- package/dist/ActionBar-CbFBdfam.js +0 -31
- package/dist/Address-CAzHDiil.js +0 -1109
- package/dist/Avatar-D7DkiYRU.js +0 -60
- package/dist/BA-BbP72Tn6.js +0 -27
- package/dist/BE-CLggPbli.js +0 -26
- package/dist/BE-CU5o9cmc.js +0 -24
- package/dist/BE-H45zzgu4.js +0 -24
- package/dist/BE-nWHKW0xQ.js +0 -23
- package/dist/BG-HKzabLqZ.js +0 -27
- package/dist/BH-Ded1Eyrc.js +0 -27
- package/dist/BM-CBl-UQUl.js +0 -27
- package/dist/BR-BEHEZpeV.js +0 -31
- package/dist/BR-Dmkd5VjU.js +0 -27
- package/dist/BR-DsY9PZVZ.js +0 -26
- package/dist/BR-ORoHRwTk.js +0 -29
- package/dist/BS-dBfArxRw.js +0 -27
- package/dist/BV-D0QBsH7-.js +0 -27
- package/dist/BY-BsQUo3fM.js +0 -27
- package/dist/BusinessFinancingComponent-B7O8VSuR.js +0 -55
- package/dist/BusinessFinancingDropin-CZjat6zg.js +0 -2271
- package/dist/BusinessFinancingPage-wYYsqc5D.js +0 -43
- package/dist/BusinessTypeSelectionPage-SVmYYbcY.js +0 -435
- package/dist/CA-BD18g8mh.js +0 -29
- package/dist/CA-BZ1GNmhP.js +0 -21
- package/dist/CA-DT4cmOOe.js +0 -25
- package/dist/CA-VXNq-m6m.js +0 -24
- package/dist/CH-B_-afpD_.js +0 -23
- package/dist/CH-BmabUdOH.js +0 -23
- package/dist/CH-DVyjmrDH.js +0 -25
- package/dist/CH-TX4BTE2y.js +0 -23
- package/dist/CN-BV-5PSpq.js +0 -27
- package/dist/CR-Dtv-rXg9.js +0 -27
- package/dist/CY-D59Nypl7.js +0 -23
- package/dist/CZ-1E7Zx2il.js +0 -26
- package/dist/CZ-B6iI1GbE.js +0 -33
- package/dist/CZ-CTw_bQIu.js +0 -27
- package/dist/CZ-DlzxobtN.js +0 -29
- package/dist/Card-OQuFzmxm.js +0 -90
- package/dist/Checkbox-DntVTT7e.js +0 -74
- package/dist/Confirm-CceRWfkX.js +0 -64
- package/dist/ConstitutionalDocument-M10n8QHQ.js +0 -2631
- package/dist/ContactDetails-CJ49drHv.js +0 -389
- package/dist/ContextGuidance-DeSyT-K4.js +0 -33
- package/dist/ContractViewer-DcQHIGMU.js +0 -935
- package/dist/CountryField-B0KnMSNK.js +0 -64
- package/dist/CreateIndividualComponent-BsABgMiA.js +0 -65
- package/dist/CreateTransferInstrumentComponent-CHhSi-Nd.js +0 -56
- package/dist/Currency-wZFwkXz6.js +0 -232
- package/dist/CustomerSupport-CZZVSn5p.js +0 -150
- package/dist/DE-C_Lc7NP5.js +0 -32
- package/dist/DE-CsuX_tSL.js +0 -23
- package/dist/DE-D7HKgI77.js +0 -29
- package/dist/DE-D_jIDxOH.js +0 -29
- package/dist/DK-CVF9z_0t.js +0 -25
- package/dist/DK-dBzrfgpQ.js +0 -27
- package/dist/DK-oQEFrF6o.js +0 -33
- package/dist/DK-x6M9-ek-.js +0 -24
- package/dist/DO-B1BWc3Iy.js +0 -27
- package/dist/DebugModal-B7AyfRi1.js +0 -444
- package/dist/DecisionMakerDetails-CmIkuKMd.js +0 -275
- package/dist/DecisionMakerDetailsPage-C86M_cr7.js +0 -104
- package/dist/DecisionMakers-BJzPsxVk.js +0 -680
- package/dist/DetailViewLayout-Z9cuUp4X.js +0 -65
- package/dist/Dropzone-DkOStOI3.js +0 -224
- package/dist/EC-DbNXe71-.js +0 -28
- package/dist/EE-3WZV5Ejt.js +0 -23
- package/dist/ES-BlWV7xvh.js +0 -32
- package/dist/ES-CeohntGo.js +0 -26
- package/dist/ES-DYbZmFcJ.js +0 -27
- package/dist/ES-NfxpqbC2.js +0 -23
- package/dist/EmbeddedStatus-BDk-Cdzb.js +0 -97
- package/dist/EndStateLayout-yZlKFmxQ.js +0 -71
- package/dist/EntityAssociation-BQinpNn-.js +0 -177
- package/dist/EntityGuidanceStatus-DgrTCy2a.js +0 -106
- package/dist/ErrorPanel-rmGb9PlE.js +0 -192
- package/dist/FI-BOex4MFx.js +0 -21
- package/dist/FI-C9nRvop7.js +0 -25
- package/dist/FI-CF0teHDu.js +0 -26
- package/dist/FI-CHQIvHa-.js +0 -23
- package/dist/FJ-CBdbPf5l.js +0 -27
- package/dist/FO-1pD1p939.js +0 -27
- package/dist/FR-3wQ9FMtt.js +0 -29
- package/dist/FR-BycGQO4W.js +0 -29
- package/dist/FR-CAxkckai.js +0 -25
- package/dist/FR-MWZyWX3x.js +0 -23
- package/dist/Field-DDqviWD6.js +0 -141
- package/dist/FormNavigation-hnWA-Ehl.js +0 -144
- package/dist/GB-CCYHTagl.js +0 -33
- package/dist/GB-C_AXeEDs.js +0 -32
- package/dist/GB-DFyzo5sN.js +0 -24
- package/dist/GB-DUnW-a4M.js +0 -24
- package/dist/GE-Deog1a3Z.js +0 -27
- package/dist/GF-Cda8N7A4.js +0 -23
- package/dist/GG-CPoMVQPc.js +0 -33
- package/dist/GI-DxmBwVD_.js +0 -41
- package/dist/GL-0vO9Of9c.js +0 -27
- package/dist/GP-za-3opp-.js +0 -23
- package/dist/GR-Rk0pXlNw.js +0 -23
- package/dist/GT-C1jhs-Dx.js +0 -27
- package/dist/GU-CALV5vh1.js +0 -25
- package/dist/HK-B16JHR8k.js +0 -25
- package/dist/HK-BB3PIq-Z.js +0 -25
- package/dist/HK-WqZ5UBEF.js +0 -24
- package/dist/HK-eKVHN8Vg.js +0 -21
- package/dist/HR-BHhcnUGU.js +0 -26
- package/dist/HR-BRAjQoOH.js +0 -25
- package/dist/HR-CRa19tH1.js +0 -27
- package/dist/HR-WapHW2fw.js +0 -23
- package/dist/HU-D5NCweWf.js +0 -27
- package/dist/HU-DCOMuOhe.js +0 -32
- package/dist/HU-DuWGRPke.js +0 -24
- package/dist/HU-hfSSMbei.js +0 -21
- package/dist/ID-BcOv4SXj.js +0 -27
- package/dist/IE-BCDIfZoA.js +0 -30
- package/dist/IE-BN3Eiv5M.js +0 -21
- package/dist/IE-BkgtVgDi.js +0 -23
- package/dist/IE-rhATS57q.js +0 -24
- package/dist/IL-CQ0yHRRe.js +0 -23
- package/dist/IM-Wr4iDT94.js +0 -33
- package/dist/IN-BhEI9o7G.js +0 -28
- package/dist/IS-C-Cgc6zp.js +0 -27
- package/dist/IT-C1-PEPAb.js +0 -27
- package/dist/IT-CBt6Os6J.js +0 -25
- package/dist/IT-CXekiddL.js +0 -23
- package/dist/IT-wD7dHdYD.js +0 -27
- package/dist/Individual.rules-DkkHd4AC.js +0 -390
- package/dist/IndividualDropin-HfCpdNoz.js +0 -5743
- package/dist/InputDate-BB4WZBNP.js +0 -43
- package/dist/InputGroup-WBfGDV5F.js +0 -32
- package/dist/InputText-BCi31wZB.js +0 -134
- package/dist/Introduction-DShrdSBn.js +0 -251
- package/dist/InvitedDecisionMakerComponent-B2HU3LgV.js +0 -216
- package/dist/JE-B4gj54Hg.js +0 -33
- package/dist/JM-BMGgBK6y.js +0 -27
- package/dist/JO-rY8A8f9C.js +0 -27
- package/dist/JP-BQG5dF1Y.js +0 -28
- package/dist/JpAddress-DE9yfseS.js +0 -327
- package/dist/KR-74SwXHka.js +0 -27
- package/dist/KW-CcVPOJ8B.js +0 -27
- package/dist/KY-DXCeltYA.js +0 -27
- package/dist/KZ-CZNjdp22.js +0 -27
- package/dist/LB-DZ5YfAsO.js +0 -27
- package/dist/LI-L0ZAALRT.js +0 -23
- package/dist/LT-0F72uCyI.js +0 -28
- package/dist/LT-Ao2uagV9.js +0 -23
- package/dist/LT-Dkevn83h.js +0 -19
- package/dist/LT-V-VsHKlY.js +0 -28
- package/dist/LU-B7LRUuc6.js +0 -23
- package/dist/LV-DZeGjA2G.js +0 -23
- package/dist/LandingLayout-D_EQfRqT.js +0 -61
- package/dist/LegalCompanyNameField-CCPNDYao.js +0 -138
- package/dist/LegalRepresentativeDetailsPage-ZsBB2MMq.js +0 -55
- package/dist/Link-DWRRNNKW.js +0 -35
- package/dist/List-BAzyC6sw.js +0 -83
- package/dist/ListItem-DlliPqo-.js +0 -69
- package/dist/LoaderWrapper-DE-3T3QK.js +0 -42
- package/dist/MC-EDVNGWhy.js +0 -23
- package/dist/MD-DVc0183a.js +0 -27
- package/dist/ME-DiJhSuli.js +0 -27
- package/dist/MK-BZxslBTS.js +0 -27
- package/dist/MP-7IpnbfCj.js +0 -25
- package/dist/MQ-DusG_no1.js +0 -23
- package/dist/MR-DaBVNHqN.js +0 -27
- package/dist/MT-B9my7RlP.js +0 -23
- package/dist/MU-D3gGVu1R.js +0 -27
- package/dist/MX-CZVOFg3D.js +0 -25
- package/dist/MY-ym71svTa.js +0 -24
- package/dist/ManageIndividualComponent-CGjYieXl.js +0 -46
- package/dist/ManageTermsOfServiceComponent-DVal60Sx.js +0 -52
- package/dist/ManageTransferInstrumentComponent-oOQNBPeD.js +0 -290
- package/dist/MaskedInput-Dzp3Td83.js +0 -811
- package/dist/MaybeModal-Vk2hdUdf.js +0 -36
- package/dist/Modal-Bq5ccK7z.js +0 -137
- package/dist/NC-xzMvjp9-.js +0 -27
- package/dist/NL-4Y7A2IJp.js +0 -27
- package/dist/NL-VXAFOhV5.js +0 -23
- package/dist/NL-q2U2l276.js +0 -27
- package/dist/NL-zm__7LWV.js +0 -23
- package/dist/NO-BAcMdKUJ.js +0 -22
- package/dist/NO-CX12Zsf_.js +0 -27
- package/dist/NO-Cx1VSh2W.js +0 -32
- package/dist/NO-Div5P6IZ.js +0 -29
- package/dist/NZ-BP7_Q9Om.js +0 -22
- package/dist/NZ-DDRknBQk.js +0 -20
- package/dist/Name-w6uDAo1S.js +0 -81
- package/dist/NewSummary-fp6oz9Ko.js +0 -60
- package/dist/OnboardingDropinComponent-Cn45HTst.js +0 -3310
- package/dist/PE-CdxgPh3v.js +0 -27
- package/dist/PF-CstaOd9Z.js +0 -27
- package/dist/PH-BYgMDYIH.js +0 -27
- package/dist/PK-bLhtgsEk.js +0 -27
- package/dist/PL-BZW1hGvD.js +0 -32
- package/dist/PL-CwCXF3Yu.js +0 -28
- package/dist/PL-D6_6gquq.js +0 -27
- package/dist/PL-DKgMtNxx.js +0 -27
- package/dist/PM-BWbxAh4u.js +0 -23
- package/dist/PR-CFPKXEXp.js +0 -25
- package/dist/PS-B8obOOWY.js +0 -27
- package/dist/PT-C2dln191.js +0 -26
- package/dist/PT-CpKb15My.js +0 -30
- package/dist/PT-Dei5v1nD.js +0 -28
- package/dist/PT-OpU4MU3L.js +0 -23
- package/dist/PayoutDetailsDropin-Bzs2jydk.js +0 -4226
- package/dist/PayoutDetailsPage-BGdufep3.js +0 -914
- package/dist/ProgressBar-B7gTQncy.js +0 -47
- package/dist/QA-CSfx-mvb.js +0 -27
- package/dist/RE-BApq1FJ6.js +0 -23
- package/dist/RO-Bmsg2YGZ.js +0 -23
- package/dist/RO-C_utD--1.js +0 -19
- package/dist/RO-Cz6Sh0ls.js +0 -23
- package/dist/RO-Dxk08mOu.js +0 -27
- package/dist/RS-BCenke-W.js +0 -27
- package/dist/RU-D27RC7dq.js +0 -27
- package/dist/Radio-BMtxBpnn.js +0 -39
- package/dist/RadioGroup-BOUo26G0.js +0 -100
- package/dist/Review-Be1zBkVv.js +0 -82
- package/dist/RootBusinessDetailsPage-CnX2zYB9.js +0 -50
- package/dist/RootBusinessLinesPage-G9LnOcFE.js +0 -1538
- package/dist/RootIndividualDetailsPage-DPim7JYp.js +0 -62
- package/dist/SA-C9VgxCgm.js +0 -27
- package/dist/SE-AP3gLiyy.js +0 -27
- package/dist/SE-B5K-FkQd.js +0 -33
- package/dist/SE-BqGOP1F1.js +0 -22
- package/dist/SE-Br1yrUhV.js +0 -27
- package/dist/SG-DMcOb17i.js +0 -24
- package/dist/SG-DoCqjlFi.js +0 -24
- package/dist/SG-d-PTZAoA.js +0 -28
- package/dist/SG-dEj6fGdY.js +0 -24
- package/dist/SI-BOGTNLPa.js +0 -23
- package/dist/SI-BPx_gt1n.js +0 -26
- package/dist/SI-BXe-yndm.js +0 -27
- package/dist/SI-DBADzvYO.js +0 -22
- package/dist/SJ-Z9jwQQlz.js +0 -27
- package/dist/SK-BOVrp_Av.js +0 -23
- package/dist/SK-DamCBYsZ.js +0 -22
- package/dist/SK-DeSZ6Sa9.js +0 -29
- package/dist/SK-DwdgoGnD.js +0 -27
- package/dist/SM-meowwILA.js +0 -23
- package/dist/Select-D5a5aVFZ.js +0 -868
- package/dist/SignPCIComponent-BTyUfmK_.js +0 -301
- package/dist/SingpassSelection-DowkF6pT.js +0 -269
- package/dist/SoleProprietorshipPage-C_875t2r.js +0 -50
- package/dist/SourceOfFundsPage-Cx6ekIue.js +0 -2335
- package/dist/Spacer-BK3jDget.js +0 -18
- package/dist/StepProgressIndicator-CW9yp5Ud.js +0 -78
- package/dist/StoreProvider-CApjzEDt.js +0 -5560
- package/dist/StructuredList-CNha20ka.js +0 -61
- package/dist/Summary-DlYtNJQD.js +0 -213
- package/dist/TF-BOWng-Dz.js +0 -27
- package/dist/TH-CvyXLcZK.js +0 -28
- package/dist/TL-BWslydRz.js +0 -27
- package/dist/TN-Cjd3bM_V.js +0 -27
- package/dist/TR-BBx5CuWS.js +0 -27
- package/dist/TT-D4-z5BA-.js +0 -28
- package/dist/TW-BC8YpnMr.js +0 -29
- package/dist/Tag-DdkVScyr.js +0 -41
- package/dist/TaxInformationField-ByQTgGxY.js +0 -3498
- package/dist/TaxReportingDropin-D52Nf4f2.js +0 -501
- package/dist/TextArea-C4OmPCHh.js +0 -103
- package/dist/TileGroup-Aj0Yql_d.js +0 -203
- package/dist/TrustDetailsPage-Cj368KCb.js +0 -2167
- package/dist/TrustMemberCompanyPage-CTXwk8mB.js +0 -68
- package/dist/TrustMemberIndividualPage-BusLDMBC.js +0 -64
- package/dist/TrustMemberRoleAndTypePage-D6Ir0aGf.js +0 -1078
- package/dist/TrustMembersOverview-_eQwa8o8.js +0 -433
- package/dist/UA-DrXUnAe6.js +0 -27
- package/dist/US-CZw-MX1-.js +0 -29
- package/dist/US-CxBcdqfz.js +0 -22
- package/dist/US-D8dI5_i1.js +0 -25
- package/dist/US-DHxLSqeC.js +0 -24
- package/dist/UY-DEHqLXhX.js +0 -27
- package/dist/UnincorporatedPartnershipIndividualPage-tCLAddt7.js +0 -63
- package/dist/UnincorporatedPartnershipMemberCompanyPage-A7gQ5wwr.js +0 -71
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-DaFl9wVc.js +0 -291
- package/dist/UnincorporatedPartnershipMembersOverview-C3YF2E_k.js +0 -169
- package/dist/VA-DXsYTCoh.js +0 -23
- package/dist/VG-DnKAVCsi.js +0 -27
- package/dist/VI-CU9MA9ux.js +0 -25
- package/dist/VN-CTSqsmB6.js +0 -27
- package/dist/VerificationErrorAlert-D8Menx5E.js +0 -79
- package/dist/ViewVerificationStatusComponent-TBlv6an5.js +0 -180
- package/dist/WF-CwHbsjtJ.js +0 -27
- package/dist/YT-BCyAAbo7.js +0 -23
- package/dist/ZA-NU7slima.js +0 -28
- package/dist/adyen-kyc-components.js +0 -451
- package/dist/arrow-right-BoqwUH_d.js +0 -14
- package/dist/bafinUtils-DOGd6Xk9.js +0 -92
- package/dist/bag-BXVWLrwo.js +0 -14
- package/dist/bank-1GvaHPAZ.js +0 -14
- package/dist/basePatterns-BwdnMQxI.js +0 -15
- package/dist/bg-BG-89Mw-9Lv.js +0 -75
- package/dist/bg-BG-BY3Wa361.js +0 -54
- package/dist/bg-BG-BnwkqGm9.js +0 -13
- package/dist/bg-BG-BvLl6gaB.js +0 -13
- package/dist/bg-BG-C9zrgb_c.js +0 -76
- package/dist/bg-BG-CEipapl4.js +0 -63
- package/dist/bg-BG-CFuVZnaC.js +0 -13
- package/dist/bg-BG-Coja327N.js +0 -24
- package/dist/bg-BG-Cz7Cuw8v.js +0 -29
- package/dist/bg-BG-DKld3x63.js +0 -13
- package/dist/bg-BG-DbFzLQK7.js +0 -37
- package/dist/bg-BG-DcxZ1tmt.js +0 -32
- package/dist/bg-BG-dmpv4Zom.js +0 -13
- package/dist/bg-BG-zZhDshGi.js +0 -65
- package/dist/bin-Ba-3ll8T.js +0 -18
- package/dist/business-lines-BAqTbnBw.js +0 -135
- package/dist/capital-9TKHySO7.js +0 -17
- package/dist/cash-stack-DwYu4xNy.js +0 -22
- package/dist/certificate-N2YFedpI.js +0 -17
- package/dist/checkmark-D9dGhGpG.js +0 -14
- package/dist/checkmark-circle-CFWClLQ6.js +0 -20
- package/dist/checkmark-circle-fill-DEB-tuGl.js +0 -17
- package/dist/checkmark-small-D3VNx2lo.js +0 -14
- package/dist/chevron-down-C7SUSYfl.js +0 -14
- package/dist/chevron-left-BXmd-S46.js +0 -14
- package/dist/chevron-right-jE6RwM2B.js +0 -14
- package/dist/chevron-up-BdfNcqzq.js +0 -14
- package/dist/circle-BJPTMCWB.js +0 -17
- package/dist/circle-small-filled-BuO8Vg8j.js +0 -14
- package/dist/clock-DAzaBRWk.js +0 -20
- package/dist/coins-DYdzG5e_.js +0 -17
- package/dist/commonValidators-D1bdFvRX.js +0 -24
- package/dist/contract-BfJb1t6M.js +0 -14
- package/dist/cross-CDS_eot4.js +0 -14
- package/dist/cross-circle-fill-C-EJ57Yn.js +0 -17
- package/dist/cross-circle-fill-small-DkPjsuBH.js +0 -14
- package/dist/cs-CZ-6rOIfRJu.js +0 -13
- package/dist/cs-CZ-B-zm6HVH.js +0 -76
- package/dist/cs-CZ-BBLagJI6.js +0 -13
- package/dist/cs-CZ-BEFeaKsV.js +0 -54
- package/dist/cs-CZ-BHbWTH_v.js +0 -63
- package/dist/cs-CZ-BeMYkFfD.js +0 -13
- package/dist/cs-CZ-BlrV3tkx.js +0 -29
- package/dist/cs-CZ-CBuNZ7UO.js +0 -37
- package/dist/cs-CZ-CTxXvHtH.js +0 -75
- package/dist/cs-CZ-CYsR__kj.js +0 -13
- package/dist/cs-CZ-Ck22NTT9.js +0 -65
- package/dist/cs-CZ-D4Hg-t16.js +0 -32
- package/dist/cs-CZ-DXtJsBPz.js +0 -24
- package/dist/cs-CZ-hT5w5It6.js +0 -13
- package/dist/currency-CrdnaaDu.js +0 -35
- package/dist/da-DK-B3Pg-MWO.js +0 -13
- package/dist/da-DK-CGhsIGZt.js +0 -76
- package/dist/da-DK-CLdNh9JT.js +0 -37
- package/dist/da-DK-CM1onr3w.js +0 -29
- package/dist/da-DK-C_GqHCay.js +0 -13
- package/dist/da-DK-D6UK8XT9.js +0 -54
- package/dist/da-DK-D9FgPh5e.js +0 -13
- package/dist/da-DK-DCJhV2qS.js +0 -32
- package/dist/da-DK-DQ4ZYSea.js +0 -65
- package/dist/da-DK-DWA8uOd8.js +0 -24
- package/dist/da-DK-DZwlENGe.js +0 -13
- package/dist/da-DK-D_TOcmOO.js +0 -75
- package/dist/da-DK-mUuPR2YO.js +0 -13
- package/dist/da-DK-vcVNQJbX.js +0 -63
- package/dist/de-DE-B3nctkG8.js +0 -13
- package/dist/de-DE-BT5g7ZXC.js +0 -37
- package/dist/de-DE-BmWBo3gX.js +0 -13
- package/dist/de-DE-CA4mYLwp.js +0 -29
- package/dist/de-DE-CWEW2yqg.js +0 -63
- package/dist/de-DE-Cg_RNIr-.js +0 -13
- package/dist/de-DE-CkbOZ6S_.js +0 -65
- package/dist/de-DE-CwT6O212.js +0 -13
- package/dist/de-DE-D50lGOJE.js +0 -24
- package/dist/de-DE-DUl6gRKv.js +0 -54
- package/dist/de-DE-DXR3EpEc.js +0 -13
- package/dist/de-DE-DYzAiXHM.js +0 -75
- package/dist/de-DE-DwOQKCuU.js +0 -32
- package/dist/de-DE-K9FyOJiI.js +0 -76
- package/dist/de-DE-S6qDey1L.js +0 -13
- package/dist/debouncedInputEvent-Cv2S512Y.js +0 -46
- package/dist/debugStore-BvbyN1Oi.js +0 -14
- package/dist/decision-makers-group-DrvpnEqj.js +0 -1944
- package/dist/digital-wallet-Bx5YM1LY.js +0 -46
- package/dist/document-1-qlSTF558.js +0 -14
- package/dist/document-blurred-BiWap0xs.js +0 -37
- package/dist/document-cut-off-aQezqOif.js +0 -32
- package/dist/document-expired-BhBXaWWQ.js +0 -38
- package/dist/document-front-DYuhZGeQ.js +0 -30
- package/dist/document-person-CDbnTOdV.js +0 -20
- package/dist/download-BZQB1WkZ.js +0 -17
- package/dist/dropinUtils-C6SkIQLo.js +0 -256
- package/dist/edit-1-DAqtnOIx.js +0 -14
- package/dist/el-GR-B5j7VZ3E.js +0 -54
- package/dist/el-GR-B78b9rSH.js +0 -63
- package/dist/el-GR-BuAfpG6u.js +0 -13
- package/dist/el-GR-BvRBuezU.js +0 -37
- package/dist/el-GR-CKHMsdx2.js +0 -24
- package/dist/el-GR-CdgLZhuO.js +0 -13
- package/dist/el-GR-D6XimdV5.js +0 -29
- package/dist/el-GR-DItzpoar.js +0 -75
- package/dist/el-GR-DoS_Va-n.js +0 -13
- package/dist/el-GR-DtFE64KX.js +0 -13
- package/dist/el-GR-DudORw4U.js +0 -65
- package/dist/el-GR-Fo7-xCrc.js +0 -13
- package/dist/el-GR-Hk4NbZSY.js +0 -32
- package/dist/el-GR-L-39cQfz.js +0 -76
- package/dist/el-GR-ZRGBgvMu.js +0 -13
- package/dist/emitEvent-CzZf80Am.js +0 -28
- package/dist/en-US-9KQC6F8-.js +0 -218
- package/dist/en-US-AgtwE4Fl.js +0 -63
- package/dist/en-US-B-qSAb-7.js +0 -66
- package/dist/en-US-BQZhzROc.js +0 -32
- package/dist/en-US-BSQXKu6d.js +0 -54
- package/dist/en-US-CTbVLoNF.js +0 -13
- package/dist/en-US-C_9Fc9mP.js +0 -82
- package/dist/en-US-CfazE4ht.js +0 -13
- package/dist/en-US-CgakND3H.js +0 -37
- package/dist/en-US-D2yrwtzT.js +0 -24
- package/dist/en-US-DIlZD5Wh.js +0 -76
- package/dist/en-US-DPoDE0uz.js +0 -75
- package/dist/en-US-DSoLr6rp.js +0 -13
- package/dist/en-US-DWT3bRZC.js +0 -122
- package/dist/en-US-Do3mE4BR.js +0 -46
- package/dist/en-US-DrUYyPhF.js +0 -13
- package/dist/en-US-PLYPmyFJ.js +0 -66
- package/dist/en-US-QbdqemZi.js +0 -202
- package/dist/en-US-fDACdKtT.js +0 -29
- package/dist/en-US-qlQTJNiL.js +0 -13
- package/dist/en-US.instructions-CfIM2SRF.js +0 -21
- package/dist/es-ES-4FS7NoE7.js +0 -37
- package/dist/es-ES-BAolMrZ0.js +0 -65
- package/dist/es-ES-BBcx4tvi.js +0 -29
- package/dist/es-ES-BOoPqnPI.js +0 -32
- package/dist/es-ES-BRfK6tX7.js +0 -13
- package/dist/es-ES-BYl5-PFR.js +0 -13
- package/dist/es-ES-BZiC4JWr.js +0 -13
- package/dist/es-ES-Bh8k9Zx8.js +0 -13
- package/dist/es-ES-BkqlH093.js +0 -13
- package/dist/es-ES-BmH6eADf.js +0 -75
- package/dist/es-ES-CDgjGql5.js +0 -63
- package/dist/es-ES-Cavm0szq.js +0 -54
- package/dist/es-ES-DF_L5EDd.js +0 -24
- package/dist/es-ES-TUyeIp6F.js +0 -76
- package/dist/es-ES-yMXcOjDL.js +0 -13
- package/dist/et-EE-4fHYOoff.js +0 -13
- package/dist/et-EE-BBnYC5q8.js +0 -13
- package/dist/et-EE-BOIrYrz9.js +0 -65
- package/dist/et-EE-B_Wk8564.js +0 -29
- package/dist/et-EE-Be__VK7Y.js +0 -32
- package/dist/et-EE-BuBiNLCi.js +0 -24
- package/dist/et-EE-C8RrUpLm.js +0 -13
- package/dist/et-EE-CksV5_e1.js +0 -37
- package/dist/et-EE-Cw_VydGb.js +0 -76
- package/dist/et-EE-D0PMC4ie.js +0 -63
- package/dist/et-EE-DSZa_33d.js +0 -75
- package/dist/et-EE-DUWZ2Vqm.js +0 -54
- package/dist/et-EE-D_NmrrzQ.js +0 -13
- package/dist/et-EE-H8yxvhQj.js +0 -13
- package/dist/external-link-Cg6pJaSJ.js +0 -14
- package/dist/fi-FI-BKu826v5.js +0 -29
- package/dist/fi-FI-BfwJVwi9.js +0 -13
- package/dist/fi-FI-CEH4BfU3.js +0 -13
- package/dist/fi-FI-CsZlDJFb.js +0 -63
- package/dist/fi-FI-D8WrLxxq.js +0 -65
- package/dist/fi-FI-DFxljML-.js +0 -13
- package/dist/fi-FI-DH6jpo9K.js +0 -24
- package/dist/fi-FI-DJ8BbVPT.js +0 -75
- package/dist/fi-FI-DVa-ccaW.js +0 -54
- package/dist/fi-FI-DhUeTfn1.js +0 -13
- package/dist/fi-FI-XpnJRPgt.js +0 -37
- package/dist/fi-FI-bZzNB1WB.js +0 -32
- package/dist/fi-FI-tgvQX_Iq.js +0 -76
- package/dist/fi-FI-xqnQ38yC.js +0 -13
- package/dist/fieldConfigurations-BUT9DTUH.js +0 -21
- package/dist/file-CiG1D0zy.js +0 -42
- package/dist/form-rules-DhbF2mY4.js +0 -13
- package/dist/formUtils-BVAIyFiB.js +0 -92
- package/dist/fr-FR-BSynpexF.js +0 -13
- package/dist/fr-FR-Beljeilc.js +0 -65
- package/dist/fr-FR-BnblnBsx.js +0 -24
- package/dist/fr-FR-C7iSS-OS.js +0 -29
- package/dist/fr-FR-CY9emHgF.js +0 -54
- package/dist/fr-FR-CocDMzBc.js +0 -13
- package/dist/fr-FR-CzjsW73Q.js +0 -13
- package/dist/fr-FR-D533_MOG.js +0 -75
- package/dist/fr-FR-DPehHVb6.js +0 -13
- package/dist/fr-FR-Dk6Lw2On.js +0 -13
- package/dist/fr-FR-NxOktkWc.js +0 -13
- package/dist/fr-FR-TqAhPvzz.js +0 -37
- package/dist/fr-FR-VoxPkXSc.js +0 -63
- package/dist/fr-FR-cTKcuHqX.js +0 -32
- package/dist/fr-FR-ynC19lSF.js +0 -76
- package/dist/funds-in-CInoUdmG.js +0 -21
- package/dist/getName-CfQAf_l-.js +0 -41
- package/dist/getProblemsForEntity-I5B0dWUU.js +0 -24
- package/dist/getProps-Cc3J2-z9.js +0 -148
- package/dist/getTrustedFields-Cv6R496P.js +0 -104
- package/dist/gift-omNInZeB.js +0 -14
- package/dist/graph-DunG_uu1.js +0 -21
- package/dist/graph-up-BZze4i6m.js +0 -20
- package/dist/headquarter-BhpSibFO.js +0 -21
- package/dist/hotel-Cp7VgGCJ.js +0 -22
- package/dist/house-BhyBQdR3.js +0 -21
- package/dist/hr-HR--5syrowD.js +0 -76
- package/dist/hr-HR-Bjx-KdVs.js +0 -13
- package/dist/hr-HR-CIxdonpk.js +0 -75
- package/dist/hr-HR-CKZ_yuXC.js +0 -37
- package/dist/hr-HR-CbdP2tk-.js +0 -63
- package/dist/hr-HR-CnP5sqih.js +0 -54
- package/dist/hr-HR-ComCqan_.js +0 -32
- package/dist/hr-HR-D5V7g9H2.js +0 -13
- package/dist/hr-HR-D9OGeEuB.js +0 -13
- package/dist/hr-HR-D_MUIhtx.js +0 -13
- package/dist/hr-HR-De5kHU8U.js +0 -24
- package/dist/hr-HR-ZrpQrsik.js +0 -13
- package/dist/hr-HR-g88yM2q1.js +0 -29
- package/dist/hr-HR-lIHN6Yl2.js +0 -65
- package/dist/hu-HU--6ZxXlbV.js +0 -75
- package/dist/hu-HU-B-lUkFnQ.js +0 -13
- package/dist/hu-HU-BEV8uVRt.js +0 -37
- package/dist/hu-HU-BFiGk_QT.js +0 -76
- package/dist/hu-HU-BTlpbCpc.js +0 -54
- package/dist/hu-HU-BcogZby3.js +0 -24
- package/dist/hu-HU-ByRdd0O_.js +0 -29
- package/dist/hu-HU-CWdwNCev.js +0 -65
- package/dist/hu-HU-DUGz5q5D.js +0 -32
- package/dist/hu-HU-DjaoFDqm.js +0 -13
- package/dist/hu-HU-Ds3go4h4.js +0 -13
- package/dist/hu-HU-LxStrFGU.js +0 -13
- package/dist/hu-HU-hbVM6tMS.js +0 -13
- package/dist/hu-HU-pFpTvMiD.js +0 -63
- package/dist/id-blurred-B5lHEP8M.js +0 -59
- package/dist/id-cut-off-Ba1FRzKO.js +0 -55
- package/dist/id-front-CpNWN6nG.js +0 -52
- package/dist/id-glare-DgCQON8k.js +0 -49
- package/dist/image-CmB0ioUM.js +0 -17
- package/dist/info-Bb_-xIEK.js +0 -21
- package/dist/info-filled-CK8LB339.js +0 -17
- package/dist/isEmpty-BcLvy0xw.js +0 -23
- package/dist/it-IT-5a7NHVFo.js +0 -65
- package/dist/it-IT-B4bk2Xev.js +0 -13
- package/dist/it-IT-B5cf2VTN.js +0 -75
- package/dist/it-IT-C0Zv5ms9.js +0 -76
- package/dist/it-IT-CUrn0j1I.js +0 -29
- package/dist/it-IT-C_651bEP.js +0 -13
- package/dist/it-IT-Ckv8Ce4e.js +0 -24
- package/dist/it-IT-D-jYXj6V.js +0 -37
- package/dist/it-IT-D7G4BaP7.js +0 -13
- package/dist/it-IT-DERflsUd.js +0 -32
- package/dist/it-IT-DOBp2-MP.js +0 -13
- package/dist/it-IT-DZjw9LNC.js +0 -63
- package/dist/it-IT-Dx15tkIe.js +0 -13
- package/dist/it-IT-GgHc0cHR.js +0 -54
- package/dist/it-IT-OppZz3gW.js +0 -13
- package/dist/ja-JP--u211vje.js +0 -76
- package/dist/ja-JP-8yMqZqF2.js +0 -37
- package/dist/ja-JP-BoxeBgOv.js +0 -32
- package/dist/ja-JP-BqluCflj.js +0 -63
- package/dist/ja-JP-CbP1sVFP.js +0 -29
- package/dist/ja-JP-CbgaW99b.js +0 -54
- package/dist/ja-JP-CethQRoG.js +0 -13
- package/dist/ja-JP-CvNJvxkQ.js +0 -218
- package/dist/ja-JP-DK55NCZY.js +0 -135
- package/dist/ja-JP-DSvZhFNY.js +0 -65
- package/dist/ja-JP-DTW_hY1L.js +0 -13
- package/dist/ja-JP-DU7yCJYq.js +0 -202
- package/dist/ja-JP-DY4CJlUf.js +0 -75
- package/dist/ja-JP-FWHXsXlW.js +0 -24
- package/dist/ja-JP-GX3l4yqn.js +0 -125
- package/dist/ja-JP-Qu7oEIEy.js +0 -13
- package/dist/japanSupportUtils-DR5unSI9.js +0 -16
- package/dist/jpAddressSchema-DEOyz9Yo.js +0 -26
- package/dist/localizeDateString-0FoP1ZoN.js +0 -27
- package/dist/location-itJfxrDQ.js +0 -17
- package/dist/lt-LT-BebOeKIA.js +0 -13
- package/dist/lt-LT-CBTFJxth.js +0 -13
- package/dist/lt-LT-CK0t2AVY.js +0 -37
- package/dist/lt-LT-CNTNKNlX.js +0 -29
- package/dist/lt-LT-CXw4ywLM.js +0 -63
- package/dist/lt-LT-CfQUS8PP.js +0 -13
- package/dist/lt-LT-CgalYpUh.js +0 -65
- package/dist/lt-LT-Ci357QYQ.js +0 -13
- package/dist/lt-LT-CkjEvGSp.js +0 -75
- package/dist/lt-LT-D2Hrhr7v.js +0 -76
- package/dist/lt-LT-D5Rhxm1h.js +0 -32
- package/dist/lt-LT-DDdq07sX.js +0 -24
- package/dist/lt-LT-DTQGR9M0.js +0 -54
- package/dist/lt-LT-WRulV980.js +0 -13
- package/dist/lv-LV-BQ4F1GrV.js +0 -54
- package/dist/lv-LV-BdZK9nQA.js +0 -75
- package/dist/lv-LV-C9Dhkruv.js +0 -13
- package/dist/lv-LV-CG1zToz7.js +0 -32
- package/dist/lv-LV-CYcrO-6d.js +0 -13
- package/dist/lv-LV-CkyuY2ji.js +0 -24
- package/dist/lv-LV-D04q9r-y.js +0 -76
- package/dist/lv-LV-DTaBIHLh.js +0 -13
- package/dist/lv-LV-DYqBaW2-.js +0 -63
- package/dist/lv-LV-DoKxsoVR.js +0 -13
- package/dist/lv-LV-Dxe-A5vo.js +0 -13
- package/dist/lv-LV-JvlzK9X-.js +0 -37
- package/dist/lv-LV-N81Dgdm3.js +0 -29
- package/dist/lv-LV-aAd9SEqx.js +0 -65
- package/dist/mail-VHTlAusn.js +0 -14
- package/dist/mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js +0 -56
- package/dist/mapExistingFile-BOZ-beF3.js +0 -157
- package/dist/mapJpAddressSchemaToAddressLocalizations-MqYxkfLg.js +0 -54
- package/dist/mapLegalEntityToIndividualSchema-CQnZl2f1.js +0 -204
- package/dist/mapTransferInstrumentToPayoutAccount-DJ5E9tqe.js +0 -34
- package/dist/minus-circle-filled-ZhtJ0GD3.js +0 -17
- package/dist/nl-NL-Bx5p0nXL.js +0 -24
- package/dist/nl-NL-CFzm75Jw.js +0 -13
- package/dist/nl-NL-CJ7MoBj2.js +0 -76
- package/dist/nl-NL-CUcML482.js +0 -54
- package/dist/nl-NL-CYFznuWn.js +0 -13
- package/dist/nl-NL-Cjlmc0Ii.js +0 -32
- package/dist/nl-NL-CmURERx_.js +0 -65
- package/dist/nl-NL-FbJ2sHba.js +0 -13
- package/dist/nl-NL-J7XpCpQm.js +0 -13
- package/dist/nl-NL-JChnFdCY.js +0 -13
- package/dist/nl-NL-Jhr-ICkK.js +0 -37
- package/dist/nl-NL-Lo8OF_nj.js +0 -29
- package/dist/nl-NL-SjOGmGk5.js +0 -13
- package/dist/nl-NL-YcL7Gufl.js +0 -75
- package/dist/nl-NL-lcNM54vV.js +0 -63
- package/dist/no-NO--OoWld_l.js +0 -13
- package/dist/no-NO-6chPsZZE.js +0 -29
- package/dist/no-NO-B5BjEy8n.js +0 -13
- package/dist/no-NO-BAWVf0GX.js +0 -13
- package/dist/no-NO-BBCvsecq.js +0 -54
- package/dist/no-NO-BH6DId3q.js +0 -37
- package/dist/no-NO-Bs3-6MDM.js +0 -24
- package/dist/no-NO-BsEie1We.js +0 -13
- package/dist/no-NO-C20s6CoP.js +0 -76
- package/dist/no-NO-CTrVITNu.js +0 -63
- package/dist/no-NO-CY_XHrYd.js +0 -32
- package/dist/no-NO-CtDyNTm6.js +0 -13
- package/dist/no-NO-KkYB-VQD.js +0 -75
- package/dist/no-NO-qyqWODMp.js +0 -65
- package/dist/omitObscuredFieldsIfUnchanged-DMBgASfn.js +0 -29
- package/dist/onfido-logo-BSkKPH10.js +0 -14
- package/dist/options-horizontal-GuXvLvV3.js +0 -18
- package/dist/partner-QD27Vy4w.js +0 -18
- package/dist/passport-blurred-CVG493IJ.js +0 -59
- package/dist/passport-cut-off-COzA_TmB.js +0 -56
- package/dist/passport-front-WJleLixT.js +0 -52
- package/dist/passport-front-green-CZVkCa1n.js +0 -232
- package/dist/passport-glare-BP5WnJZj.js +0 -50
- package/dist/patternValidators-a6VZDG0x.js +0 -83
- package/dist/pay-by-link-plane-BpY8Q6-B.js +0 -22
- package/dist/payout-DtB68BcZ.js +0 -20
- package/dist/payout-verification-instant-BzpfOQLD.js +0 -41
- package/dist/payout-verification-manual-gNEoeZkV.js +0 -90
- package/dist/person-IVZG3t3_.js +0 -17
- package/dist/phonePrefixes-CnL40uyX.js +0 -255
- package/dist/pl-PL-B5c0NNHB.js +0 -37
- package/dist/pl-PL-BH_LPZJa.js +0 -13
- package/dist/pl-PL-BzhEoDb5.js +0 -24
- package/dist/pl-PL-C19Btj2D.js +0 -76
- package/dist/pl-PL-CCX1rSGF.js +0 -13
- package/dist/pl-PL-CErRPlR2.js +0 -63
- package/dist/pl-PL-CPdKf-J0.js +0 -75
- package/dist/pl-PL-C_MvVzPy.js +0 -32
- package/dist/pl-PL-CbJSQVfe.js +0 -29
- package/dist/pl-PL-DEMxxz7h.js +0 -13
- package/dist/pl-PL-DtJ3sgVO.js +0 -13
- package/dist/pl-PL-DuM6hbqZ.js +0 -13
- package/dist/pl-PL-kGaeUP-w.js +0 -54
- package/dist/pl-PL-q9azN24o.js +0 -65
- package/dist/plaid-logo-FsZ7kfL-.js +0 -14
- package/dist/plus-DiALAL8-.js +0 -14
- package/dist/plus-circle-filled-BzHtTqEN.js +0 -17
- package/dist/process-field-configurations-CMIDJACq.js +0 -324
- package/dist/pt-BR-4Iozxvfr.js +0 -37
- package/dist/pt-BR-BKKQIUJP.js +0 -13
- package/dist/pt-BR-BfDe_8iW.js +0 -13
- package/dist/pt-BR-BxoOF8jB.js +0 -65
- package/dist/pt-BR-C-YbDjn-.js +0 -13
- package/dist/pt-BR-C0I_kTQ6.js +0 -13
- package/dist/pt-BR-CBAe0SnK.js +0 -32
- package/dist/pt-BR-CTXtdAVc.js +0 -122
- package/dist/pt-BR-D4BTdo_w.js +0 -13
- package/dist/pt-BR-DA44Wgbt.js +0 -63
- package/dist/pt-BR-DRBFUW-X.js +0 -29
- package/dist/pt-BR-DSENwwGu.js +0 -24
- package/dist/pt-BR-ERWeus3c.js +0 -75
- package/dist/pt-BR-nU_2Wbo5.js +0 -54
- package/dist/pt-BR-zOjPTIPu.js +0 -76
- package/dist/pt-PT-09L8XznW.js +0 -37
- package/dist/pt-PT-BMOUpVLE.js +0 -29
- package/dist/pt-PT-BTbVsews.js +0 -13
- package/dist/pt-PT-Bf4IV7wp.js +0 -13
- package/dist/pt-PT-CC7zlk3R.js +0 -13
- package/dist/pt-PT-CIo3mlXL.js +0 -24
- package/dist/pt-PT-DBZj2dDI.js +0 -13
- package/dist/pt-PT-DUTGt5L5.js +0 -75
- package/dist/pt-PT-Dm5DRDrd.js +0 -32
- package/dist/pt-PT-DpDxAynk.js +0 -13
- package/dist/pt-PT-F1qPZJ2c.js +0 -13
- package/dist/pt-PT-JVqqgvPs.js +0 -54
- package/dist/pt-PT-PIiikho9.js +0 -63
- package/dist/pt-PT-pIChDwiI.js +0 -65
- package/dist/pt-PT-t5M8xwTU.js +0 -76
- package/dist/recurring-DKNs9K3x.js +0 -17
- package/dist/reporting-D5ABpLO_.js +0 -16
- package/dist/resolveEnvironment-BBqc2XYC.js +0 -77
- package/dist/revenue-accelerate-D7Sp0V4a.js +0 -17
- package/dist/review-D4TUjcWF.js +0 -17
- package/dist/ro-RO-0vx6ZLWV.js +0 -13
- package/dist/ro-RO-4j2I7YM7.js +0 -13
- package/dist/ro-RO-B5YT9vP-.js +0 -32
- package/dist/ro-RO-BJoL_nyS.js +0 -29
- package/dist/ro-RO-BnFjok5O.js +0 -75
- package/dist/ro-RO-Bv9hZxwD.js +0 -63
- package/dist/ro-RO-C5PJhlmM.js +0 -13
- package/dist/ro-RO-C83h2zHZ.js +0 -54
- package/dist/ro-RO-CuabgXj1.js +0 -13
- package/dist/ro-RO-D7-7tmTR.js +0 -37
- package/dist/ro-RO-DK9gVwS9.js +0 -76
- package/dist/ro-RO-DRsaNX9j.js +0 -65
- package/dist/ro-RO-DaU2--fX.js +0 -13
- package/dist/ro-RO-ILTvlS9i.js +0 -24
- package/dist/roleMetadata-D1-6Xl8x.js +0 -66
- package/dist/save-BfqO2JBI.js +0 -14
- package/dist/search-Cmzbf5zI.js +0 -17
- package/dist/show-IdbU1C6P.js +0 -17
- package/dist/singpass-logo-wY4xsmTX.js +0 -17
- package/dist/singpass-verification-instant-JCqTr7Mv.js +0 -40
- package/dist/singpass-verification-manual-DQ7XW6R3.js +0 -34
- package/dist/sk-SK-2J6iKfmK.js +0 -76
- package/dist/sk-SK-7-enbO1N.js +0 -65
- package/dist/sk-SK-B-1yRol7.js +0 -13
- package/dist/sk-SK-C5Qmv4E6.js +0 -13
- package/dist/sk-SK-CLPd85I3.js +0 -75
- package/dist/sk-SK-CgLJIuJw.js +0 -54
- package/dist/sk-SK-ChVwlbp0.js +0 -63
- package/dist/sk-SK-Cv23cDQO.js +0 -24
- package/dist/sk-SK-D3tsz1Pg.js +0 -37
- package/dist/sk-SK-DM1yY8DA.js +0 -13
- package/dist/sk-SK-DO-AqRjE.js +0 -13
- package/dist/sk-SK-DuLm2CVx.js +0 -13
- package/dist/sk-SK-DxdxUonp.js +0 -29
- package/dist/sk-SK-S6iF1WDH.js +0 -32
- package/dist/sl-SI--pDTatHh.js +0 -13
- package/dist/sl-SI-BAIm-qBe.js +0 -13
- package/dist/sl-SI-BZpXMHiG.js +0 -13
- package/dist/sl-SI-BzeVaC1Z.js +0 -54
- package/dist/sl-SI-CJH14wbj.js +0 -13
- package/dist/sl-SI-C_4ajjU4.js +0 -13
- package/dist/sl-SI-D82ccY62.js +0 -76
- package/dist/sl-SI-DEaeEVKB.js +0 -24
- package/dist/sl-SI-DTvJT7fC.js +0 -65
- package/dist/sl-SI-DZHePXbK.js +0 -63
- package/dist/sl-SI-DqUEy_Cm.js +0 -32
- package/dist/sl-SI-T9_Ty-NS.js +0 -75
- package/dist/sl-SI-UFngWs5n.js +0 -29
- package/dist/sl-SI-Y9h1ht45.js +0 -37
- package/dist/solution-payments-DpyE_sdS.js +0 -14
- package/dist/store-Btc4GcmU.js +0 -14
- package/dist/styles-CLV89_hH.js +0 -5962
- package/dist/summaryItem-CAQCQSkt.js +0 -18
- package/dist/sv-SE-3-h2VlYi.js +0 -75
- package/dist/sv-SE-BZNey_8S.js +0 -13
- package/dist/sv-SE-CDxyyNV0.js +0 -13
- package/dist/sv-SE-CRBRuE8Z.js +0 -32
- package/dist/sv-SE-CVmo11gI.js +0 -54
- package/dist/sv-SE-CXaMlJCI.js +0 -24
- package/dist/sv-SE-Cr0s35EH.js +0 -29
- package/dist/sv-SE-CrBkos0z.js +0 -76
- package/dist/sv-SE-DFSm22oQ.js +0 -37
- package/dist/sv-SE-DKnUr7xo.js +0 -13
- package/dist/sv-SE-Dq56vGlB.js +0 -63
- package/dist/sv-SE-DsPdegWB.js +0 -13
- package/dist/sv-SE-N-Hqwcjq.js +0 -65
- package/dist/sv-SE-ZsucW_Uj.js +0 -13
- package/dist/sv-SE-rckxD-43.js +0 -13
- package/dist/tax-reporting-graph-hgoilCHZ.js +0 -504
- package/dist/terminal-1-D1pwXCoi.js +0 -18
- package/dist/tink-logo-DDyjz5eJ.js +0 -17
- package/dist/trackNavigation-db_h46BT.js +0 -28
- package/dist/trusted-fields-provider-BgfIoSNJ.js +0 -16
- package/dist/types/api/invitations/useInvitationStatuses.d.ts +0 -8
- package/dist/types/components/BankAccount/forms/BankVerification/store.d.ts +0 -1
- package/dist/types/components/EmbeddedDropins/ManagePCIComponent/ManagePCIComponent.d.ts +0 -6
- package/dist/types/components/Shared/SingpassBanner/ProviderButton/ProviderButton.d.ts +0 -7
- package/dist/types/components/index.d.ts +0 -49
- package/dist/types/context/ExpiryContext/ExpiryContext.d.ts +0 -15
- package/dist/types/context/ExpiryContext/useExpiryThreshold.d.ts +0 -12
- package/dist/types/core/BaseElement.d.ts +0 -46
- package/dist/types/core/UIElement/UIElement.d.ts +0 -24
- package/dist/types/core/core.d.ts +0 -28
- package/dist/types/core/sdkValidation/index.d.ts +0 -4
- package/dist/types/core/sdkValidation/schemas.d.ts +0 -2
- package/dist/types/core/sdkValidation/types.d.ts +0 -19
- package/dist/types--xPA8bq3.js +0 -34
- package/dist/types-BDdV-c-7.js +0 -64
- package/dist/types-C7ANBXKc.js +0 -144
- package/dist/types-CMK2Gs1Z.js +0 -74
- package/dist/types-Dv0COrvY.js +0 -37
- package/dist/unincorporated-partnership-5iQ8augf.js +0 -28
- package/dist/upload-BmUXjsaU.js +0 -17
- package/dist/us-check-C1rTBsCY.js +0 -46
- package/dist/us-check-account-number-9lI1dXNC.js +0 -48
- package/dist/us-check-routing-number-s_KaAGSM.js +0 -49
- package/dist/useAssociatedLegalEntity-9hHARgoS.js +0 -34
- package/dist/useBusinessDetailsData-eIZWfksO.js +0 -5420
- package/dist/useCreateLegalEntity-CtGUDesz.js +0 -32
- package/dist/useForm-BgHdSJLD.js +0 -582
- package/dist/useFormContext-CS1RRaOG.js +0 -211
- package/dist/useGlobalData-TnV6PIkt.js +0 -199
- package/dist/useId-BZ0PA7jP.js +0 -24
- package/dist/useMultiForm-D_RXm-EH.js +0 -879
- package/dist/useOnboardingStatus-C24Lv41L.js +0 -28
- package/dist/useScenarios-Dt8fTJaF.js +0 -48
- package/dist/useTermsOfServiceStatus-uLxHxESA.js +0 -43
- package/dist/useToastContext-DrlXuGmm.js +0 -49
- package/dist/useUnincorporatedPartnershipMembers-DCGs6f0a.js +0 -99
- package/dist/useUpdateBusinessLines-fa9VQXA7.js +0 -337
- package/dist/useUpdateLegalEntity-pCVJvMOY.js +0 -40
- package/dist/utils-3sCyD_Sz.js +0 -29
- package/dist/utils-C0z7wmlu.js +0 -179
- package/dist/utils-CPcpt-fR.js +0 -237
- package/dist/utils-CgfUpZyZ.js +0 -58
- package/dist/utils-CinWv0Kh.js +0 -811
- package/dist/utils-DNSfZiio.js +0 -70
- package/dist/validate-B1FpiTip.js +0 -434
- package/dist/validate-DfJceNKE.js +0 -120
- package/dist/validationError-kYn_eC4r.js +0 -86
- package/dist/view-verification-status-VFcBydkR.js +0 -21
- package/dist/warning-circle-fill-DBvt921B.js +0 -17
- package/dist/warning-diamond-filled-Lb2od2ry.js +0 -17
- package/dist/webinar-m9nuFZBt.js +0 -22
- package/dist/yapily-logo-BduxhNRA.js +0 -17
|
@@ -0,0 +1,3909 @@
|
|
|
1
|
+
try {
|
|
2
|
+
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4e98c1f1-6882-4e7a-9447-e7b5ee91fa1d", e._sentryDebugIdIdentifier = "sentry-dbid-4e98c1f1-6882-4e7a-9447-e7b5ee91fa1d");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { a as Icon, i as Typography, o as createLogger, r as useTranslation, t as Trans } from "./translation-G4HP2nQW.js";
|
|
6
|
+
import { t as Button } from "./Button-DvWt5T9O.js";
|
|
7
|
+
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-btI4x32X.js";
|
|
8
|
+
import { t as LegalEntityTypes } from "./legal-entity-type-VIfNYnJP.js";
|
|
9
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-C6bSV6sB.js";
|
|
10
|
+
import { t as useAccountHolder } from "./useAccountHolder-LttF1BJG.js";
|
|
11
|
+
import { t as useSettingsContext } from "./useSettingsContext-DzwVt0W0.js";
|
|
12
|
+
import { c as objectsDeepEqual, d as keysOf, r as cloneObject, t as useAnalyticsContext } from "./useAnalyticsContext-BVFDMrVE.js";
|
|
13
|
+
import { t as useToggleContext } from "./useToggleContext-DaQUBF8O.js";
|
|
14
|
+
import { a as translateTranslatable } from "./utils-BAuFBG3J.js";
|
|
15
|
+
import { d as extractFieldName, m as hasEmptyFields, u as concatenateFieldNames, v as isAccountIdentifierObscured, y as isEmpty } from "./validatorUtils-DRapRJ6z.js";
|
|
16
|
+
import { t as StackLayout } from "./StackLayout-Bhbj68nx.js";
|
|
17
|
+
import { t as Header } from "./Header-BNb1zwkF.js";
|
|
18
|
+
import { t as CountryCodes } from "./country-code-CX5KqMBr.js";
|
|
19
|
+
import { t as useDataset } from "./useDataset-DA7SoxiX.js";
|
|
20
|
+
import { n as datasetUtilities, t as datasetIdentifier } from "./datasetUtil-Zd4TCTDn.js";
|
|
21
|
+
import { t as Alert } from "./Alert-BER6uCP8.js";
|
|
22
|
+
import { n as getCapabilityProblems } from "./processCapabilitites-BHzfFtSM.js";
|
|
23
|
+
import { d as hasOwnEntityAssociationOfType, p as TaskTypes } from "./entityAssociationUtil-BEzUdPbm.js";
|
|
24
|
+
import { t as EEA_Countries } from "./countries-BuZ6_X95.js";
|
|
25
|
+
import { t as Card } from "./Card-vYndix5Y.js";
|
|
26
|
+
import { t as SettingNames } from "./types-CNZsK2dZ.js";
|
|
27
|
+
import { t as useToastContext } from "./useToastContext-CYgfHjSb.js";
|
|
28
|
+
import { t as EndStateLayout } from "./EndStateLayout-CR8wHeA1.js";
|
|
29
|
+
import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-BbVdQNIY.js";
|
|
30
|
+
import { t as LoaderWrapper } from "./LoaderWrapper-DWKykOjd.js";
|
|
31
|
+
import { t as Modal } from "./Modal-UfgpuJZi.js";
|
|
32
|
+
import { t as Confirm } from "./Confirm-BmiOH3Vr.js";
|
|
33
|
+
import { n as FeatureNames, t as ExperimentNames } from "./types-CXceqQIv.js";
|
|
34
|
+
import { t as Image } from "./Image-BTVEK7B2.js";
|
|
35
|
+
import { n as getLegalEntityNameBasedOnType, r as getPayoutAccountHolderName } from "./getName-Bdwp_hkV.js";
|
|
36
|
+
import { r as getPropsFromConfigurations, t as augmentWithCountryConfigs } from "./process-field-configurations-44gfzIGi.js";
|
|
37
|
+
import { i as useFormComposer, n as getRequiredForms, t as addValidityToForms } from "./dropinUtils-FIEFyS0F.js";
|
|
38
|
+
import { t as ErrorPanel } from "./ErrorPanel-4juOd8Z2.js";
|
|
39
|
+
import { t as trackNavigation } from "./trackNavigation-LvCP5Vyc.js";
|
|
40
|
+
import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-DCvL3uZG.js";
|
|
41
|
+
import { n as summaryStep } from "./Summary-B8AA9_C_.js";
|
|
42
|
+
import { r as summaryItem } from "./summaryItem-Dehjwp8D.js";
|
|
43
|
+
import { t as isNotEmptyValidator } from "./commonValidators-DCdet-gH.js";
|
|
44
|
+
import { a as useScenarioConfiguration, i as uppercase, o as useUnifyLoadingStatus, r as getPageName, s as payoutAccountFormat, t as mapExistingFile } from "./mapExistingFile-DdeA1Ya3.js";
|
|
45
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DInxWeqN.js";
|
|
46
|
+
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-zFUBaX87.js";
|
|
47
|
+
import { a as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable, i as isValidationError, o as processValidationErrors, r as isIdDocumentUploadError, s as isMaintenanceModeError, t as isBankStatementUploadError } from "./validationError-DhMlWpYp.js";
|
|
48
|
+
import { a as StateContextSetter, c as fileToBase64, d as getFileExtention, i as bytesToSize, l as getDocument, n as fileValidationRules, o as createDocumentRequest, r as DropzoneFile, s as documentApiUtils, t as defaultFileValidationOptions } from "./validate-9_4V5MhN.js";
|
|
49
|
+
import { t as omitObscuredFieldsIfUnchanged } from "./omitObscuredFieldsIfUnchanged-B7VNFVgY.js";
|
|
50
|
+
import { o as validatePatternOnBlur } from "./patternValidators-BaQxw3ki.js";
|
|
51
|
+
import { t as bankStatementDescriptionPattern } from "./basePatterns-VqSYMnkh.js";
|
|
52
|
+
import { t as resolveFieldMetadata } from "./fieldConfigurations-m7oWP1DZ.js";
|
|
53
|
+
import { t as Field } from "./Field-C2ZpB0wo.js";
|
|
54
|
+
import { t as Select } from "./Select-DDSua27l.js";
|
|
55
|
+
import { t as TextArea } from "./TextArea-CyATBUKN.js";
|
|
56
|
+
import { t as useForm } from "./useForm-CTiDrzeg.js";
|
|
57
|
+
import { n as getFormProps, t as getFieldProps } from "./getProps-CkZCnNxW.js";
|
|
58
|
+
import { t as Link } from "./Link-DKiaZfxB.js";
|
|
59
|
+
import { t as InputText } from "./InputText-C30dZxS4.js";
|
|
60
|
+
import { n as CountryField } from "./CountryField-s5-jZTU9.js";
|
|
61
|
+
import { t as createFormRules } from "./form-rules-CvdV5rPY.js";
|
|
62
|
+
import { t as ContextGuidance } from "./ContextGuidance-DKKgj5gN.js";
|
|
63
|
+
import { t as Tag } from "./Tag-BUoDHC4C.js";
|
|
64
|
+
import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-5vTCCl4n.js";
|
|
65
|
+
import { a as useStateContext, i as FormWrapper, n as useGlobalDataSlice, r as useResetGlobalData, t as useGlobalData } from "./useGlobalData-KEb46I95.js";
|
|
66
|
+
import { t as Currencies } from "./currency-DNgyvN7z.js";
|
|
67
|
+
import { t as currencyByCountry } from "./types-BqFOt7-l.js";
|
|
68
|
+
import { t as useUnincorporatedPartnershipMembers } from "./useUnincorporatedPartnershipMembers-Dzj3BDFI.js";
|
|
69
|
+
import { t as Divider } from "./Divider-CrK4vlsJ.js";
|
|
70
|
+
import { lazy, memo, useEffect, useMemo, useRef, useState } from "preact/compat";
|
|
71
|
+
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
72
|
+
import cx from "classnames";
|
|
73
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
74
|
+
import { signal } from "@preact/signals";
|
|
75
|
+
import { skipToken, useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
|
|
76
|
+
import { createContext as createContext$1 } from "preact";
|
|
77
|
+
import { Show } from "@preact/signals/utils";
|
|
78
|
+
import OpenBankingSDK from "@adyen/openbankingsdk";
|
|
79
|
+
//#region src/api/check/useCheck.ts
|
|
80
|
+
var getCheck = async (legalEntityId, baseUrl, data) => {
|
|
81
|
+
return httpPost({
|
|
82
|
+
baseUrl,
|
|
83
|
+
path: `legalEntities/${legalEntityId}/checks/bankAccount`
|
|
84
|
+
}, data);
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @param data CheckAsAService request
|
|
89
|
+
* @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
|
|
90
|
+
*/
|
|
91
|
+
var useCheck = (data, options) => {
|
|
92
|
+
const { rootLegalEntityId, baseUrl: url } = useApiContext();
|
|
93
|
+
return useQuery({
|
|
94
|
+
queryKey: ["checkAsAService", data],
|
|
95
|
+
queryFn: () => getCheck(rootLegalEntityId.value, url.value, data),
|
|
96
|
+
...options
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/api/transferInstruments/useBankVerificationProviders.ts
|
|
101
|
+
var getBankVerificationProviders = async (legalEntityId, baseUrl, queryParams) => {
|
|
102
|
+
const { country, locale, configId } = queryParams;
|
|
103
|
+
return httpGet({
|
|
104
|
+
baseUrl,
|
|
105
|
+
path: `legalEntities/${legalEntityId}/transferInstruments/trusted/providers?${new URLSearchParams({
|
|
106
|
+
country,
|
|
107
|
+
locale,
|
|
108
|
+
...configId && { configId }
|
|
109
|
+
})}`
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Retrieves the list of bank verification providers and their respective urls.
|
|
114
|
+
* Bank verification providers are used to instantly verify payout accounts.
|
|
115
|
+
* @param queryParams the relevant country, locale, and configId
|
|
116
|
+
* @param options additional options passed to Tanstack Query, eg; onSuccess
|
|
117
|
+
*/
|
|
118
|
+
var useBankVerificationProviders = (queryParams, options) => {
|
|
119
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
120
|
+
return useQuery({
|
|
121
|
+
queryKey: ["bankVerificationProviders", queryParams],
|
|
122
|
+
queryFn: () => getBankVerificationProviders(rootLegalEntityId.value, baseUrl.value, queryParams),
|
|
123
|
+
...options
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/api/transferInstruments/useCreateTransferInstrument.ts
|
|
128
|
+
var createTransferInstrument = async (rootLegalEntityId, baseUrl, transferInstrument) => {
|
|
129
|
+
return httpPost({
|
|
130
|
+
baseUrl,
|
|
131
|
+
path: `legalEntities/${rootLegalEntityId}/transferInstruments`
|
|
132
|
+
}, transferInstrument);
|
|
133
|
+
};
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/api/transferInstruments/useCreateTrustedTransferInstrument.ts
|
|
136
|
+
var createTrustedTransferInstrument = async (legalEntityId, baseUrl, data) => {
|
|
137
|
+
return httpPost({
|
|
138
|
+
baseUrl,
|
|
139
|
+
path: `legalEntities/${legalEntityId}/transferInstruments/trusted`
|
|
140
|
+
}, data);
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Creates a trusted transfer instrument in LEM using the information provided by Open Banking
|
|
144
|
+
* @param options additional options passed to Tanstack Query, eg; onSuccess
|
|
145
|
+
*/
|
|
146
|
+
var useCreateTrustedTransferInstrument = (options) => {
|
|
147
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
148
|
+
return useMutation({
|
|
149
|
+
mutationFn: (data) => createTrustedTransferInstrument(rootLegalEntityId.value, baseUrl.value, data),
|
|
150
|
+
...options
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/api/transferInstruments/useUpdateTransferInstrument.ts
|
|
155
|
+
var updateTransferInstrument = async (legalEntityId, baseUrl, transferInstrument, transferInstrumentId) => {
|
|
156
|
+
return httpPost({
|
|
157
|
+
baseUrl,
|
|
158
|
+
path: `legalEntities/${legalEntityId}/transferInstruments/${transferInstrumentId}`
|
|
159
|
+
}, transferInstrument);
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Updates a transfer instrument associated with a legal entity
|
|
163
|
+
* When update is successful, updates the transfer instrument query and invalidates transfer instruments
|
|
164
|
+
* @param options additional options passed to Tanstack Query
|
|
165
|
+
*/
|
|
166
|
+
var useUpdateTransferInstrument = (options) => {
|
|
167
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
168
|
+
const queryClient = useQueryClient();
|
|
169
|
+
return useMutation({
|
|
170
|
+
mutationFn: ({ transferInstrument, transferInstrumentId }) => updateTransferInstrument(rootLegalEntityId.value, baseUrl.value, transferInstrument, transferInstrumentId),
|
|
171
|
+
onSuccess: async (transferInstrument) => {
|
|
172
|
+
queryClient.setQueryData(["transferInstrument", transferInstrument.id], transferInstrument);
|
|
173
|
+
await queryClient.invalidateQueries({ queryKey: ["transferInstruments"] });
|
|
174
|
+
},
|
|
175
|
+
...options
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region src/api/transferInstruments/useUpdateTrustedTransferInstrument.ts
|
|
180
|
+
var updateTrustedTransferInstrument = async (legalEntityId, baseUrl, preferredCurrencyCode, transferInstrumentId) => {
|
|
181
|
+
return httpPost({
|
|
182
|
+
baseUrl,
|
|
183
|
+
path: `legalEntities/${legalEntityId}/transferInstruments/trusted/${transferInstrumentId}`
|
|
184
|
+
}, { preferredCurrencyCode });
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Updates a trusted transfer instrument associated with a legal entity
|
|
188
|
+
* When update is successful, updates the transfer instrument query and invalidates transfer instruments
|
|
189
|
+
* @param options additional options passed to Tanstack Query
|
|
190
|
+
*/
|
|
191
|
+
var useUpdateTrustedTransferInstrument = (options) => {
|
|
192
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
193
|
+
return useMutation({
|
|
194
|
+
mutationFn: ({ preferredCurrencyCode, transferInstrumentId }) => updateTrustedTransferInstrument(rootLegalEntityId.value, baseUrl.value, preferredCurrencyCode, transferInstrumentId),
|
|
195
|
+
...options
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/datasets/generators/getAccountFormatForCountry.ts
|
|
200
|
+
var accountFormatsImports = /* @__PURE__ */ Object.assign({
|
|
201
|
+
"../accountFormats/AD.json": () => import("./AD-D_B1KZm9.js"),
|
|
202
|
+
"../accountFormats/AE.json": () => import("./AE-iKPgRx_9.js"),
|
|
203
|
+
"../accountFormats/AI.json": () => import("./AI-CYjWGBKT.js"),
|
|
204
|
+
"../accountFormats/AL.json": () => import("./AL-D62C5Lpk.js"),
|
|
205
|
+
"../accountFormats/AR.json": () => import("./AR-BOgSvtgP.js"),
|
|
206
|
+
"../accountFormats/AS.json": () => import("./AS-Cg8Vujpc.js"),
|
|
207
|
+
"../accountFormats/AT.json": () => import("./AT-D3H5WGY3.js"),
|
|
208
|
+
"../accountFormats/AU.json": () => import("./AU-B77DgHQb.js"),
|
|
209
|
+
"../accountFormats/AX.json": () => import("./AX-CG8iviap.js"),
|
|
210
|
+
"../accountFormats/AZ.json": () => import("./AZ-DIB7CvVN.js"),
|
|
211
|
+
"../accountFormats/BA.json": () => import("./BA-C4vH4-x6.js"),
|
|
212
|
+
"../accountFormats/BE.json": () => import("./BE-BvtnaSSH.js"),
|
|
213
|
+
"../accountFormats/BG.json": () => import("./BG-DvFE-fU3.js"),
|
|
214
|
+
"../accountFormats/BH.json": () => import("./BH-Bm_tXC8b.js"),
|
|
215
|
+
"../accountFormats/BM.json": () => import("./BM-BPYI-Bk0.js"),
|
|
216
|
+
"../accountFormats/BR.json": () => import("./BR-CRGYlRY-.js"),
|
|
217
|
+
"../accountFormats/BS.json": () => import("./BS-DEbfM7Fg.js"),
|
|
218
|
+
"../accountFormats/BV.json": () => import("./BV-LqWIWEV5.js"),
|
|
219
|
+
"../accountFormats/BY.json": () => import("./BY-Dw4W1isS.js"),
|
|
220
|
+
"../accountFormats/CA.json": () => import("./CA-PLMbc5uq.js"),
|
|
221
|
+
"../accountFormats/CH.json": () => import("./CH-Baaufs8O.js"),
|
|
222
|
+
"../accountFormats/CN.json": () => import("./CN-Bx6shvCX.js"),
|
|
223
|
+
"../accountFormats/CR.json": () => import("./CR-CgM7Uut3.js"),
|
|
224
|
+
"../accountFormats/CY.json": () => import("./CY-CxBi1s-O.js"),
|
|
225
|
+
"../accountFormats/CZ.json": () => import("./CZ-DS5YfhO9.js"),
|
|
226
|
+
"../accountFormats/DE.json": () => import("./DE-NkKgh0-y.js"),
|
|
227
|
+
"../accountFormats/DK.json": () => import("./DK-CB_26cPx.js"),
|
|
228
|
+
"../accountFormats/DO.json": () => import("./DO-DWjKCR-x.js"),
|
|
229
|
+
"../accountFormats/EC.json": () => import("./EC-CCGvbVWA.js"),
|
|
230
|
+
"../accountFormats/EE.json": () => import("./EE-DebeWn2E.js"),
|
|
231
|
+
"../accountFormats/ES.json": () => import("./ES-DXLZWZXA.js"),
|
|
232
|
+
"../accountFormats/FI.json": () => import("./FI-Clx-zbKe.js"),
|
|
233
|
+
"../accountFormats/FJ.json": () => import("./FJ-BKLmDeVh.js"),
|
|
234
|
+
"../accountFormats/FO.json": () => import("./FO-D7VnFgWu.js"),
|
|
235
|
+
"../accountFormats/FR.json": () => import("./FR-DwVflgGw.js"),
|
|
236
|
+
"../accountFormats/GB.json": () => import("./GB-BX3mPDDS.js"),
|
|
237
|
+
"../accountFormats/GE.json": () => import("./GE-D02s-9eo.js"),
|
|
238
|
+
"../accountFormats/GF.json": () => import("./GF-BcHxbxvv.js"),
|
|
239
|
+
"../accountFormats/GG.json": () => import("./GG-C3cx2hzZ.js"),
|
|
240
|
+
"../accountFormats/GI.json": () => import("./GI-D_DZhrwe.js"),
|
|
241
|
+
"../accountFormats/GL.json": () => import("./GL-BUOXwUJ0.js"),
|
|
242
|
+
"../accountFormats/GP.json": () => import("./GP-CmZCjGab.js"),
|
|
243
|
+
"../accountFormats/GR.json": () => import("./GR-BxjWJl4T.js"),
|
|
244
|
+
"../accountFormats/GT.json": () => import("./GT-C_l7WI2f.js"),
|
|
245
|
+
"../accountFormats/GU.json": () => import("./GU-7zSp4NP8.js"),
|
|
246
|
+
"../accountFormats/HK.json": () => import("./HK-DXmjOLnc.js"),
|
|
247
|
+
"../accountFormats/HR.json": () => import("./HR-ChipU8Kr.js"),
|
|
248
|
+
"../accountFormats/HU.json": () => import("./HU-9NTdjUUV.js"),
|
|
249
|
+
"../accountFormats/ID.json": () => import("./ID-O2T9tbLO.js"),
|
|
250
|
+
"../accountFormats/IE.json": () => import("./IE-Cw9l0506.js"),
|
|
251
|
+
"../accountFormats/IL.json": () => import("./IL-1hVGBOhQ.js"),
|
|
252
|
+
"../accountFormats/IM.json": () => import("./IM-B1t_Q0mE.js"),
|
|
253
|
+
"../accountFormats/IN.json": () => import("./IN-BAGr7C88.js"),
|
|
254
|
+
"../accountFormats/IS.json": () => import("./IS-C97KS-Cn.js"),
|
|
255
|
+
"../accountFormats/IT.json": () => import("./IT-b5Hsdl6Z.js"),
|
|
256
|
+
"../accountFormats/JE.json": () => import("./JE-D9zaTrAY.js"),
|
|
257
|
+
"../accountFormats/JM.json": () => import("./JM-6zLyaeVi.js"),
|
|
258
|
+
"../accountFormats/JO.json": () => import("./JO-BdNdFHnL.js"),
|
|
259
|
+
"../accountFormats/JP.json": () => import("./JP-znYbtZMc.js"),
|
|
260
|
+
"../accountFormats/KR.json": () => import("./KR-xcUi-9h2.js"),
|
|
261
|
+
"../accountFormats/KW.json": () => import("./KW-3DCYRJ53.js"),
|
|
262
|
+
"../accountFormats/KY.json": () => import("./KY-CCApxZ6r.js"),
|
|
263
|
+
"../accountFormats/KZ.json": () => import("./KZ-Cqr8yPqY.js"),
|
|
264
|
+
"../accountFormats/LB.json": () => import("./LB-R74h2pUy.js"),
|
|
265
|
+
"../accountFormats/LI.json": () => import("./LI-D9H9hvDG.js"),
|
|
266
|
+
"../accountFormats/LT.json": () => import("./LT-CDQI5_NM.js"),
|
|
267
|
+
"../accountFormats/LU.json": () => import("./LU-B7-x8Llo.js"),
|
|
268
|
+
"../accountFormats/LV.json": () => import("./LV-DAzwuNGM.js"),
|
|
269
|
+
"../accountFormats/MC.json": () => import("./MC-DYg2Ld6N.js"),
|
|
270
|
+
"../accountFormats/MD.json": () => import("./MD-BSGq8uEc.js"),
|
|
271
|
+
"../accountFormats/ME.json": () => import("./ME-CMYolexb.js"),
|
|
272
|
+
"../accountFormats/MK.json": () => import("./MK-KXTP17uw.js"),
|
|
273
|
+
"../accountFormats/MP.json": () => import("./MP-CJH5I9LN.js"),
|
|
274
|
+
"../accountFormats/MQ.json": () => import("./MQ-B-Nxd16T.js"),
|
|
275
|
+
"../accountFormats/MR.json": () => import("./MR-9gjgEzl5.js"),
|
|
276
|
+
"../accountFormats/MT.json": () => import("./MT-DCvbkYrX.js"),
|
|
277
|
+
"../accountFormats/MU.json": () => import("./MU-CVDBPgAP.js"),
|
|
278
|
+
"../accountFormats/MX.json": () => import("./MX-B8dPVdJo.js"),
|
|
279
|
+
"../accountFormats/MY.json": () => import("./MY-DcfNGXIG.js"),
|
|
280
|
+
"../accountFormats/NC.json": () => import("./NC-DQQUjrGe.js"),
|
|
281
|
+
"../accountFormats/NL.json": () => import("./NL-CMB4A6y3.js"),
|
|
282
|
+
"../accountFormats/NO.json": () => import("./NO-DAvhrELf.js"),
|
|
283
|
+
"../accountFormats/NZ.json": () => import("./NZ-BuvPkC2r.js"),
|
|
284
|
+
"../accountFormats/PE.json": () => import("./PE-J7zWKbQ3.js"),
|
|
285
|
+
"../accountFormats/PF.json": () => import("./PF-CQvMXWIc.js"),
|
|
286
|
+
"../accountFormats/PH.json": () => import("./PH-CsAkleLZ.js"),
|
|
287
|
+
"../accountFormats/PK.json": () => import("./PK-pnVCB70L.js"),
|
|
288
|
+
"../accountFormats/PL.json": () => import("./PL-DdsUKlRx.js"),
|
|
289
|
+
"../accountFormats/PM.json": () => import("./PM-DXhRSYlY.js"),
|
|
290
|
+
"../accountFormats/PR.json": () => import("./PR-BJTR9010.js"),
|
|
291
|
+
"../accountFormats/PS.json": () => import("./PS-Bb7ensjm.js"),
|
|
292
|
+
"../accountFormats/PT.json": () => import("./PT-D_mzbSbR.js"),
|
|
293
|
+
"../accountFormats/QA.json": () => import("./QA-Cya8smAe.js"),
|
|
294
|
+
"../accountFormats/RE.json": () => import("./RE-DV-Olrl9.js"),
|
|
295
|
+
"../accountFormats/RO.json": () => import("./RO-7ngAIZ4E.js"),
|
|
296
|
+
"../accountFormats/RS.json": () => import("./RS-Bdspw_Te.js"),
|
|
297
|
+
"../accountFormats/RU.json": () => import("./RU-2VREcND8.js"),
|
|
298
|
+
"../accountFormats/SA.json": () => import("./SA-ONrtr4dq.js"),
|
|
299
|
+
"../accountFormats/SE.json": () => import("./SE-CfwjGhj2.js"),
|
|
300
|
+
"../accountFormats/SG.json": () => import("./SG-Cte5jgnm.js"),
|
|
301
|
+
"../accountFormats/SI.json": () => import("./SI-DuER-ftQ.js"),
|
|
302
|
+
"../accountFormats/SJ.json": () => import("./SJ-DRle19p-.js"),
|
|
303
|
+
"../accountFormats/SK.json": () => import("./SK-CFssz9bO.js"),
|
|
304
|
+
"../accountFormats/SM.json": () => import("./SM-v_4Yc2mM.js"),
|
|
305
|
+
"../accountFormats/TF.json": () => import("./TF-BhrG4wMf.js"),
|
|
306
|
+
"../accountFormats/TH.json": () => import("./TH-Dnjjl0vl.js"),
|
|
307
|
+
"../accountFormats/TL.json": () => import("./TL-DV3_HDbD.js"),
|
|
308
|
+
"../accountFormats/TN.json": () => import("./TN-CvaVweYw.js"),
|
|
309
|
+
"../accountFormats/TR.json": () => import("./TR-BAvGXlpl.js"),
|
|
310
|
+
"../accountFormats/TT.json": () => import("./TT-DRIx1q2s.js"),
|
|
311
|
+
"../accountFormats/TW.json": () => import("./TW-DRf29Guu.js"),
|
|
312
|
+
"../accountFormats/UA.json": () => import("./UA-Ba88l6Xd.js"),
|
|
313
|
+
"../accountFormats/US.json": () => import("./US-m2RymYgz.js"),
|
|
314
|
+
"../accountFormats/UY.json": () => import("./UY-C7OqeI1W.js"),
|
|
315
|
+
"../accountFormats/VA.json": () => import("./VA-kEhphxOY.js"),
|
|
316
|
+
"../accountFormats/VG.json": () => import("./VG-9RtXQCNA.js"),
|
|
317
|
+
"../accountFormats/VI.json": () => import("./VI-Dtn9fHsy.js"),
|
|
318
|
+
"../accountFormats/VN.json": () => import("./VN-CQ52lXXR.js"),
|
|
319
|
+
"../accountFormats/WF.json": () => import("./WF-D5AVATSv.js"),
|
|
320
|
+
"../accountFormats/YT.json": () => import("./YT-B9qrlCqK.js"),
|
|
321
|
+
"../accountFormats/ZA.json": () => import("./ZA-CZ_c0XHc.js")
|
|
322
|
+
});
|
|
323
|
+
var getAccountFormatsForCountry = async (country) => {
|
|
324
|
+
const importForCountry = accountFormatsImports[`../accountFormats/${country}.json`];
|
|
325
|
+
if (!importForCountry) throw Error(`No account formats available for ${country}`);
|
|
326
|
+
return {
|
|
327
|
+
...(await importForCountry()).default,
|
|
328
|
+
numberAndBic: {
|
|
329
|
+
bankStatementRequirement: "OPTIONAL",
|
|
330
|
+
fields: ["bankAccountNumber", "swiftCode"]
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region src/api/validation/useValidateAccountIdentification.ts
|
|
336
|
+
var validateAccountIdentification = async (baseUrl, data) => {
|
|
337
|
+
return httpPost({
|
|
338
|
+
baseUrl,
|
|
339
|
+
path: `validations/accountidentification`
|
|
340
|
+
}, { accountIdentification: { ...data } });
|
|
341
|
+
};
|
|
342
|
+
var useValidateAccountIdentification = (options) => {
|
|
343
|
+
const { baseUrl } = useApiContext();
|
|
344
|
+
return useMutation({
|
|
345
|
+
mutationFn: (data) => validateAccountIdentification(baseUrl.value, data),
|
|
346
|
+
...options
|
|
347
|
+
});
|
|
348
|
+
};
|
|
349
|
+
//#endregion
|
|
350
|
+
//#region src/components/BankAccount/hooks/useAsyncAccountDetailsValidationRules.ts
|
|
351
|
+
var useAsyncAccountDetailsValidationRules = (payload, hasEmptyFields, isAccountNumberMasked) => {
|
|
352
|
+
const [timeoutId, setTimeoutId] = useState$1(null);
|
|
353
|
+
const [accountValidationData, setAccountValidationData] = useState$1({
|
|
354
|
+
invalidFields: [],
|
|
355
|
+
valid: false
|
|
356
|
+
});
|
|
357
|
+
const { mutateAsync } = useValidateAccountIdentification();
|
|
358
|
+
useEffect$1(() => {
|
|
359
|
+
const fetchAccountDetails = async (accountIdentificationPayload) => {
|
|
360
|
+
try {
|
|
361
|
+
setAccountValidationData(await mutateAsync(accountIdentificationPayload));
|
|
362
|
+
} catch (error) {
|
|
363
|
+
console.error("Error fetching account details:", error);
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
if (payload && !hasEmptyFields && !isAccountNumberMasked) {
|
|
367
|
+
if (timeoutId !== null) clearTimeout(timeoutId);
|
|
368
|
+
setTimeoutId(setTimeout(() => {
|
|
369
|
+
fetchAccountDetails(payload);
|
|
370
|
+
setTimeoutId(null);
|
|
371
|
+
}, 500));
|
|
372
|
+
}
|
|
373
|
+
}, [
|
|
374
|
+
mutateAsync,
|
|
375
|
+
hasEmptyFields,
|
|
376
|
+
payload
|
|
377
|
+
]);
|
|
378
|
+
return accountValidationData;
|
|
379
|
+
};
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region src/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.ts
|
|
382
|
+
var logger = createLogger();
|
|
383
|
+
var getAccountIdentificationFromPayoutAccountSchema = (payoutAccount, bankCountry, enabledCrossBorderPayouts) => {
|
|
384
|
+
if ("iban" in payoutAccount && payoutAccount.iban) return {
|
|
385
|
+
type: "iban",
|
|
386
|
+
iban: payoutAccount.iban
|
|
387
|
+
};
|
|
388
|
+
if (enabledCrossBorderPayouts && "bankAccountNumber" in payoutAccount && payoutAccount.bankAccountNumber && "swiftCode" in payoutAccount && payoutAccount.swiftCode) return {
|
|
389
|
+
type: "numberAndBic",
|
|
390
|
+
bic: payoutAccount.swiftCode,
|
|
391
|
+
accountNumber: payoutAccount.bankAccountNumber
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* Although we are switching on country, the "type" refers to a region within the API.
|
|
395
|
+
* This means multiple countries can be apart of a single region.
|
|
396
|
+
*
|
|
397
|
+
* see 'com.adyen.bankaccountidentification.types.BankAccountIdentificationType' for current mappings
|
|
398
|
+
*/
|
|
399
|
+
switch (bankCountry) {
|
|
400
|
+
case CountryCodes.Australia: return {
|
|
401
|
+
type: "auLocal",
|
|
402
|
+
accountNumber: payoutAccount.bankAccountNumber,
|
|
403
|
+
bsbCode: payoutAccount.branchCode
|
|
404
|
+
};
|
|
405
|
+
case CountryCodes.Brazil: return {
|
|
406
|
+
type: "brLocal",
|
|
407
|
+
accountNumber: payoutAccount.bankAccountNumber,
|
|
408
|
+
ispb: payoutAccount.bankCode,
|
|
409
|
+
bankCode: payoutAccount.bankName,
|
|
410
|
+
branchNumber: payoutAccount.branchCode
|
|
411
|
+
};
|
|
412
|
+
case CountryCodes.Canada: return {
|
|
413
|
+
type: "caLocal",
|
|
414
|
+
accountNumber: payoutAccount.bankAccountNumber,
|
|
415
|
+
institutionNumber: payoutAccount.bankCode,
|
|
416
|
+
transitNumber: payoutAccount.branchCode
|
|
417
|
+
};
|
|
418
|
+
case CountryCodes.CzechRepublic: return {
|
|
419
|
+
type: "czLocal",
|
|
420
|
+
accountNumber: payoutAccount.bankAccountNumber,
|
|
421
|
+
bankCode: payoutAccount.bankCode
|
|
422
|
+
};
|
|
423
|
+
case CountryCodes.Denmark: return {
|
|
424
|
+
type: "dkLocal",
|
|
425
|
+
accountNumber: payoutAccount.bankAccountNumber,
|
|
426
|
+
bankCode: payoutAccount.bankCode
|
|
427
|
+
};
|
|
428
|
+
case CountryCodes.HongKong: return {
|
|
429
|
+
type: "hkLocal",
|
|
430
|
+
accountNumber: payoutAccount.bankAccountNumber,
|
|
431
|
+
clearingCode: payoutAccount.bankCode
|
|
432
|
+
};
|
|
433
|
+
case CountryCodes.NewZealand: return {
|
|
434
|
+
type: "nzLocal",
|
|
435
|
+
accountNumber: payoutAccount.bankAccountNumber?.replaceAll("-", "")
|
|
436
|
+
};
|
|
437
|
+
case CountryCodes.Sweden: return {
|
|
438
|
+
type: "seLocal",
|
|
439
|
+
accountNumber: payoutAccount.bankAccountNumber,
|
|
440
|
+
clearingNumber: payoutAccount.branchCode
|
|
441
|
+
};
|
|
442
|
+
case CountryCodes.Singapore: return {
|
|
443
|
+
type: "sgLocal",
|
|
444
|
+
accountNumber: payoutAccount.bankAccountNumber,
|
|
445
|
+
bic: payoutAccount.swiftCode
|
|
446
|
+
};
|
|
447
|
+
case CountryCodes.IsleOfMan:
|
|
448
|
+
case CountryCodes.Guernsey:
|
|
449
|
+
case CountryCodes.Gibraltar:
|
|
450
|
+
case CountryCodes.Jersey:
|
|
451
|
+
case CountryCodes.UnitedKingdom: return {
|
|
452
|
+
type: "ukLocal",
|
|
453
|
+
accountNumber: payoutAccount.bankAccountNumber,
|
|
454
|
+
sortCode: payoutAccount.branchCode
|
|
455
|
+
};
|
|
456
|
+
case CountryCodes.NorthernMarianaIslands:
|
|
457
|
+
case CountryCodes.Guam:
|
|
458
|
+
case CountryCodes.VirginIslandsUS:
|
|
459
|
+
case CountryCodes.AmericanSamoa:
|
|
460
|
+
case CountryCodes.PuertoRico:
|
|
461
|
+
case CountryCodes.UnitedStates: return {
|
|
462
|
+
type: "usLocal",
|
|
463
|
+
accountNumber: payoutAccount.bankAccountNumber,
|
|
464
|
+
routingNumber: payoutAccount.branchCode
|
|
465
|
+
};
|
|
466
|
+
default:
|
|
467
|
+
logger.log(`${bankCountry.toLowerCase()}Local is not a configured region`);
|
|
468
|
+
return {
|
|
469
|
+
type: `${bankCountry.toLowerCase()}Local`,
|
|
470
|
+
accountNumber: payoutAccount.bankAccountNumber
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
var mapPayoutAccountSchemaToApiBankAccount = (payoutAccount, bankCountry, preferredCurrency, enabledCrossBorderPayouts) => ({
|
|
475
|
+
accountIdentification: getAccountIdentificationFromPayoutAccountSchema(payoutAccount, bankCountry, enabledCrossBorderPayouts),
|
|
476
|
+
preferredCurrencyCode: preferredCurrency,
|
|
477
|
+
countryCode: bankCountry,
|
|
478
|
+
bankName: payoutAccount.bankName
|
|
479
|
+
});
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region src/components/BankAccount/tasks/PayoutDetailsDropin/store.ts
|
|
482
|
+
var showInstantVerificationPayoutModal = signal(false);
|
|
483
|
+
var isUsingManualFlow = signal(true);
|
|
484
|
+
var resetPayoutSignals = () => {
|
|
485
|
+
showInstantVerificationPayoutModal.value = false;
|
|
486
|
+
isUsingManualFlow.value = true;
|
|
487
|
+
};
|
|
488
|
+
//#endregion
|
|
489
|
+
//#region src/api/documentValidation/useDocumentValidate.ts
|
|
490
|
+
var validateDocument = async (context, document) => {
|
|
491
|
+
const { baseUrl, rootLegalEntityId } = context;
|
|
492
|
+
return httpPost({
|
|
493
|
+
baseUrl,
|
|
494
|
+
path: `legalEntities/${rootLegalEntityId}/genai/classify`
|
|
495
|
+
}, document);
|
|
496
|
+
};
|
|
497
|
+
var useValidateDocument = (options) => {
|
|
498
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
499
|
+
return useMutation({
|
|
500
|
+
mutationFn: (payload) => validateDocument({
|
|
501
|
+
rootLegalEntityId: rootLegalEntityId.value,
|
|
502
|
+
baseUrl: baseUrl.value
|
|
503
|
+
}, payload),
|
|
504
|
+
retry: 0,
|
|
505
|
+
...options
|
|
506
|
+
});
|
|
507
|
+
};
|
|
508
|
+
//#endregion
|
|
509
|
+
//#region src/components/ui/molecules/Dropzone/FilePicker.tsx
|
|
510
|
+
function FilePicker({ files, setFiles, isValid, errorMessage, multiple = false, label, name, iconPrefix = "generic-document", enableTracking = false, id, loading, allowedFileTypes, maxSize, isOptional, maxNumberOfFiles, "aria-describedby": ariaDescribedBy, "aria-labelledby": ariaLabelledBy }) {
|
|
511
|
+
const { t } = useTranslation("ui");
|
|
512
|
+
const userEvents = useAnalyticsContext();
|
|
513
|
+
const fileInput = useRef$1(null);
|
|
514
|
+
const [dragged, setDragged] = useState$1(false);
|
|
515
|
+
const hasRequiredError = errorMessage === "fieldIsRequired";
|
|
516
|
+
const showDropzone = files.length < maxNumberOfFiles;
|
|
517
|
+
const openFilePicker = () => fileInput.current?.click();
|
|
518
|
+
const handleFileDelete = (fileToDelete) => {
|
|
519
|
+
setFiles(files.filter((file) => file !== fileToDelete));
|
|
520
|
+
};
|
|
521
|
+
const handleDragEnter = (e) => {
|
|
522
|
+
e.preventDefault();
|
|
523
|
+
e.stopPropagation();
|
|
524
|
+
};
|
|
525
|
+
const handleDragLeave = (e) => {
|
|
526
|
+
e.preventDefault();
|
|
527
|
+
e.stopPropagation();
|
|
528
|
+
setDragged(false);
|
|
529
|
+
};
|
|
530
|
+
const handleDragOver = (e) => {
|
|
531
|
+
e.preventDefault();
|
|
532
|
+
e.stopPropagation();
|
|
533
|
+
setDragged(true);
|
|
534
|
+
};
|
|
535
|
+
const handleDrop = (e) => {
|
|
536
|
+
e.preventDefault();
|
|
537
|
+
e.stopPropagation();
|
|
538
|
+
if (e.dataTransfer) addFiles(e.dataTransfer.files);
|
|
539
|
+
setDragged(false);
|
|
540
|
+
};
|
|
541
|
+
const handleFilesChosen = (e) => {
|
|
542
|
+
const fileInput = e.currentTarget;
|
|
543
|
+
if (fileInput.files) addFiles(fileInput.files);
|
|
544
|
+
};
|
|
545
|
+
const addFiles = (newFiles) => {
|
|
546
|
+
if (enableTracking) userEvents.addFieldEvent("Interacted with form field", {
|
|
547
|
+
actionType: "change",
|
|
548
|
+
field: name || "dropzone"
|
|
549
|
+
});
|
|
550
|
+
setFiles([...newFiles, ...files]);
|
|
551
|
+
};
|
|
552
|
+
const allowedFileTypesString = allowedFileTypes.join(", ");
|
|
553
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
554
|
+
label && /* @__PURE__ */ jsx("div", {
|
|
555
|
+
className: cx("adyen-kyc-label__text", { "adyen-kyc-label__text--error": hasRequiredError }),
|
|
556
|
+
children: label
|
|
557
|
+
}),
|
|
558
|
+
files.map((file) => /* @__PURE__ */ jsx(DropzoneFile, {
|
|
559
|
+
file,
|
|
560
|
+
onDelete: () => {
|
|
561
|
+
handleFileDelete(file);
|
|
562
|
+
},
|
|
563
|
+
errorMessage,
|
|
564
|
+
iconPrefix,
|
|
565
|
+
loading
|
|
566
|
+
}, file)),
|
|
567
|
+
showDropzone && /* @__PURE__ */ jsxs("div", {
|
|
568
|
+
role: "region",
|
|
569
|
+
className: cx("adyen-kyc-dropzone", {
|
|
570
|
+
"adyen-kyc-dropzone--dragged": dragged,
|
|
571
|
+
"adyen-kyc-dropzone--error": !dragged && hasRequiredError
|
|
572
|
+
}),
|
|
573
|
+
onDrop: handleDrop,
|
|
574
|
+
onDragOver: handleDragOver,
|
|
575
|
+
onDragEnter: handleDragEnter,
|
|
576
|
+
onDragLeave: handleDragLeave,
|
|
577
|
+
children: [
|
|
578
|
+
/* @__PURE__ */ jsx("div", {
|
|
579
|
+
className: "adyen-kyc-dropzone__icon",
|
|
580
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "upload" })
|
|
581
|
+
}),
|
|
582
|
+
/* @__PURE__ */ jsxs("div", {
|
|
583
|
+
className: "adyen-kyc-dropzone__labels",
|
|
584
|
+
children: [
|
|
585
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
586
|
+
el: "h4",
|
|
587
|
+
variant: "body-strongest",
|
|
588
|
+
children: t(($) => $["dropFileToUpload"])
|
|
589
|
+
}),
|
|
590
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
591
|
+
color: "secondary",
|
|
592
|
+
children: t(($) => $["supportedFileTypes"], { fileTypes: allowedFileTypesString })
|
|
593
|
+
}),
|
|
594
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
595
|
+
color: "secondary",
|
|
596
|
+
children: t(($) => $["maxFileSize"], { maxSize: bytesToSize(maxSize) })
|
|
597
|
+
}),
|
|
598
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
599
|
+
color: "secondary",
|
|
600
|
+
children: t(($) => $["upToFiles"], { maxFiles: maxNumberOfFiles })
|
|
601
|
+
})
|
|
602
|
+
]
|
|
603
|
+
}),
|
|
604
|
+
/* @__PURE__ */ jsx("div", {
|
|
605
|
+
className: "adyen-kyc-dropzone__button",
|
|
606
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
607
|
+
onClick: openFilePicker,
|
|
608
|
+
variant: "secondary",
|
|
609
|
+
children: t(($) => $["browseFiles"])
|
|
610
|
+
})
|
|
611
|
+
}),
|
|
612
|
+
/* @__PURE__ */ jsx("input", {
|
|
613
|
+
id,
|
|
614
|
+
className: "adyen-kyc-dropzone__input",
|
|
615
|
+
ref: fileInput,
|
|
616
|
+
multiple,
|
|
617
|
+
accept: allowedFileTypesString,
|
|
618
|
+
onChange: handleFilesChosen,
|
|
619
|
+
type: "file",
|
|
620
|
+
"aria-required": !isOptional,
|
|
621
|
+
"aria-describedby": ariaDescribedBy,
|
|
622
|
+
"aria-labelledby": ariaLabelledBy,
|
|
623
|
+
"data-testid": "hidden-file-input",
|
|
624
|
+
"aria-invalid": !isValid
|
|
625
|
+
})
|
|
626
|
+
]
|
|
627
|
+
}),
|
|
628
|
+
hasRequiredError && /* @__PURE__ */ jsx("div", {
|
|
629
|
+
className: "adyen-kyc-error-text",
|
|
630
|
+
children: t(($) => $["fieldIsRequired"])
|
|
631
|
+
})
|
|
632
|
+
] });
|
|
633
|
+
}
|
|
634
|
+
var BankDocumentClassification_module_default = {
|
|
635
|
+
"bank-document-classification": "adyen-kyc-bank-document-classification",
|
|
636
|
+
bankDocumentClassification: "adyen-kyc-bank-document-classification",
|
|
637
|
+
"requirements-list": "adyen-kyc-requirements-list",
|
|
638
|
+
requirementsList: "adyen-kyc-requirements-list",
|
|
639
|
+
"file-picker-disabled": "adyen-kyc-file-picker-disabled",
|
|
640
|
+
filePickerDisabled: "adyen-kyc-file-picker-disabled",
|
|
641
|
+
"review-modal": "adyen-kyc-review-modal",
|
|
642
|
+
reviewModal: "adyen-kyc-review-modal",
|
|
643
|
+
preview: "adyen-kyc-preview",
|
|
644
|
+
"preview-image": "adyen-kyc-preview-image",
|
|
645
|
+
previewImage: "adyen-kyc-preview-image",
|
|
646
|
+
content: "adyen-kyc-content",
|
|
647
|
+
actions: "adyen-kyc-actions",
|
|
648
|
+
title: "adyen-kyc-title",
|
|
649
|
+
description: "adyen-kyc-description",
|
|
650
|
+
issues: "adyen-kyc-issues",
|
|
651
|
+
"confirmation-modal": "adyen-kyc-confirmation-modal",
|
|
652
|
+
confirmationModal: "adyen-kyc-confirmation-modal"
|
|
653
|
+
};
|
|
654
|
+
//#endregion
|
|
655
|
+
//#region src/components/BankAccount/forms/BankDocument/validate.ts
|
|
656
|
+
var bankDocumentValidationRules = { description: {
|
|
657
|
+
modes: ["blur"],
|
|
658
|
+
validate: (description) => description ? bankStatementDescriptionPattern.test(description) : true,
|
|
659
|
+
errorMessage: "invalidFormatBankStatementDescription"
|
|
660
|
+
} };
|
|
661
|
+
var getValidationIssuesKeys = (validationResponse) => {
|
|
662
|
+
const issues = [];
|
|
663
|
+
const { blurryOrLowQuality, documentType } = validationResponse;
|
|
664
|
+
if (blurryOrLowQuality) issues.push("documentIsntReadable");
|
|
665
|
+
if (documentType === "other" || documentType !== "bankDocument") issues.push("documentIsNotBankDocument");
|
|
666
|
+
if (!documentType || documentType === "other") issues.push("documentNameMissing");
|
|
667
|
+
return issues;
|
|
668
|
+
};
|
|
669
|
+
//#endregion
|
|
670
|
+
//#region src/components/BankAccount/forms/BankDocument/BankDocumentClassification.tsx
|
|
671
|
+
var CHARACTERS_LIMIT = 200;
|
|
672
|
+
var bankStatementValidationOptions = {
|
|
673
|
+
...defaultFileValidationOptions,
|
|
674
|
+
isOptional: false
|
|
675
|
+
};
|
|
676
|
+
var bankDocumentClassificationFields = ["bankStatementDocument", "description"];
|
|
677
|
+
function BankDocumentClassification(props) {
|
|
678
|
+
const { legalEntity, validators, data: bankData, id, fieldValidationErrors, formVerificationErrors, shouldValidate, country, handleFieldChange, valid: propValid, errors: propErrors } = props;
|
|
679
|
+
const { t } = useTranslation("banking");
|
|
680
|
+
const { t: commonT } = useTranslation("common");
|
|
681
|
+
const stateRef = useRef({ setState: null });
|
|
682
|
+
const [showReviewModal, setShowReviewModal] = useState(false);
|
|
683
|
+
const [showConfirmationModal, setShowConfirmationModal] = useState(false);
|
|
684
|
+
const [validationResponse, setValidationResponse] = useState(null);
|
|
685
|
+
const [showEndState, setShowEndState] = useState(false);
|
|
686
|
+
const inputRef = useRef(null);
|
|
687
|
+
const logger = createLogger();
|
|
688
|
+
const userEvents = useAnalyticsContext();
|
|
689
|
+
const formUtils = createFormUtils(props, commonT);
|
|
690
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
691
|
+
const enableBankDocumentClassification = isFeatureEnabled(FeatureNames.EnableBankDocumentClassification);
|
|
692
|
+
const isShadowMode = isFeatureEnabled(FeatureNames.EnableBankDocumentClassificationShadowMode);
|
|
693
|
+
const rules = useMemo(() => ({
|
|
694
|
+
...validators || bankDocumentValidationRules,
|
|
695
|
+
bankStatementDocument: fileValidationRules(bankStatementValidationOptions)
|
|
696
|
+
}), [validators]);
|
|
697
|
+
const localForm = useForm({
|
|
698
|
+
...props,
|
|
699
|
+
schema: bankDocumentClassificationFields,
|
|
700
|
+
defaultData: bankData,
|
|
701
|
+
rules,
|
|
702
|
+
fieldProblems: fieldValidationErrors,
|
|
703
|
+
shouldValidate
|
|
704
|
+
});
|
|
705
|
+
const useMultiFormMode = !!handleFieldChange;
|
|
706
|
+
const data = useMultiFormMode ? bankData : localForm.data;
|
|
707
|
+
const valid = useMultiFormMode ? propValid : localForm.valid;
|
|
708
|
+
const errors = useMultiFormMode ? propErrors : localForm.errors;
|
|
709
|
+
const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
|
|
710
|
+
const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
|
|
711
|
+
const { triggerValidation, setData } = localForm;
|
|
712
|
+
const validateDocumentMutation = useValidateDocument({
|
|
713
|
+
onSuccess: (response) => {
|
|
714
|
+
userEvents.addEvent("Success", {
|
|
715
|
+
actionType: "upload",
|
|
716
|
+
actionLevel: "journey",
|
|
717
|
+
label: isShadowMode ? "bankDocumentClassificationShadowMode" : "bankDocumentClassification",
|
|
718
|
+
additionalData: {
|
|
719
|
+
documentType: response?.documentType,
|
|
720
|
+
subDocumentType: response?.subDocumentType,
|
|
721
|
+
blurryOrLowQuality: response?.blurryOrLowQuality
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
if (isShadowMode) return;
|
|
725
|
+
setValidationResponse(response);
|
|
726
|
+
if (response?.blurryOrLowQuality || response?.documentType !== "bankDocument") {
|
|
727
|
+
userEvents.addEvent("Opened modal", {
|
|
728
|
+
actionType: "open",
|
|
729
|
+
actionLevel: "journey",
|
|
730
|
+
label: "bankDocumentClassification"
|
|
731
|
+
});
|
|
732
|
+
setShowReviewModal(true);
|
|
733
|
+
} else {
|
|
734
|
+
setShowEndState(true);
|
|
735
|
+
setTimeout(() => {
|
|
736
|
+
setShowEndState(false);
|
|
737
|
+
setShowReviewModal(false);
|
|
738
|
+
}, 2e3);
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
onError: (error) => {
|
|
742
|
+
userEvents.addEvent("Encountered error", {
|
|
743
|
+
actionType: "upload",
|
|
744
|
+
actionLevel: "journey",
|
|
745
|
+
label: isShadowMode ? "bankDocumentClassificationShadowMode" : "bankDocumentClassification"
|
|
746
|
+
});
|
|
747
|
+
if (isShadowMode) return;
|
|
748
|
+
logger.error("Document validation failed:", error);
|
|
749
|
+
setShowReviewModal(false);
|
|
750
|
+
setValidationResponse(null);
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
const handleDocumentUpload = async (files) => {
|
|
754
|
+
handleChange("bankStatementDocument")(files);
|
|
755
|
+
if (!useMultiFormMode) triggerValidation();
|
|
756
|
+
if (!enableBankDocumentClassification && !isShadowMode) return;
|
|
757
|
+
if (files.length > 0) {
|
|
758
|
+
const file = files[0];
|
|
759
|
+
if (file && file instanceof File) try {
|
|
760
|
+
const base64Content = await fileToBase64(file);
|
|
761
|
+
const document = {
|
|
762
|
+
documentType: "bankStatement",
|
|
763
|
+
fileName: file.name,
|
|
764
|
+
sessionId: legalEntity.id,
|
|
765
|
+
attachments: [{
|
|
766
|
+
content: base64Content,
|
|
767
|
+
pageName: file.name
|
|
768
|
+
}]
|
|
769
|
+
};
|
|
770
|
+
validateDocumentMutation.mutate(document);
|
|
771
|
+
} catch (error) {
|
|
772
|
+
logger.error("Error processing document:", error);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
};
|
|
776
|
+
const alreadyUploadedDocuments = useMemo(() => bankData?.bankStatementDocument ?? [], [bankData?.bankStatementDocument]);
|
|
777
|
+
useEffect(() => {
|
|
778
|
+
if (!useMultiFormMode && alreadyUploadedDocuments.length > 0) {
|
|
779
|
+
setData("bankStatementDocument", alreadyUploadedDocuments);
|
|
780
|
+
if (bankData?.description) setData("description", bankData.description);
|
|
781
|
+
triggerValidation();
|
|
782
|
+
}
|
|
783
|
+
}, [
|
|
784
|
+
alreadyUploadedDocuments,
|
|
785
|
+
bankData?.description,
|
|
786
|
+
setData,
|
|
787
|
+
triggerValidation,
|
|
788
|
+
useMultiFormMode
|
|
789
|
+
]);
|
|
790
|
+
useEffect(() => {
|
|
791
|
+
if (!useMultiFormMode) stateRef.current?.setState?.({
|
|
792
|
+
type: "addToState",
|
|
793
|
+
value: {
|
|
794
|
+
data,
|
|
795
|
+
valid,
|
|
796
|
+
errors,
|
|
797
|
+
fieldProblems,
|
|
798
|
+
dataStoreId: id,
|
|
799
|
+
schema: bankDocumentClassificationFields
|
|
800
|
+
}
|
|
801
|
+
});
|
|
802
|
+
}, [
|
|
803
|
+
data,
|
|
804
|
+
valid,
|
|
805
|
+
errors,
|
|
806
|
+
fieldProblems,
|
|
807
|
+
id,
|
|
808
|
+
useMultiFormMode
|
|
809
|
+
]);
|
|
810
|
+
const handleUploadNewDocument = () => {
|
|
811
|
+
userEvents.addEvent("Clicked button", {
|
|
812
|
+
actionType: "next",
|
|
813
|
+
actionLevel: "journey",
|
|
814
|
+
label: "bankDocumentClassificationUploadNewDocument"
|
|
815
|
+
});
|
|
816
|
+
inputRef.current?.click();
|
|
817
|
+
};
|
|
818
|
+
const handleContinueAnyway = () => {
|
|
819
|
+
setShowConfirmationModal(true);
|
|
820
|
+
};
|
|
821
|
+
const handleConfirmationCancel = () => {
|
|
822
|
+
setShowConfirmationModal(false);
|
|
823
|
+
};
|
|
824
|
+
const handleUseDocument = () => {
|
|
825
|
+
setShowConfirmationModal(false);
|
|
826
|
+
setShowReviewModal(false);
|
|
827
|
+
userEvents.addEvent("Clicked button", {
|
|
828
|
+
actionType: "next",
|
|
829
|
+
actionLevel: "journey",
|
|
830
|
+
label: "bankDocumentClassificationContinueAnyway"
|
|
831
|
+
});
|
|
832
|
+
};
|
|
833
|
+
const documentPreview = useMemo(() => {
|
|
834
|
+
if (!data?.bankStatementDocument?.[0] || !showReviewModal) return null;
|
|
835
|
+
const file = data.bankStatementDocument?.[0];
|
|
836
|
+
return file.type === "application/pdf" || file.name.toLowerCase().endsWith(".pdf") ? /* @__PURE__ */ jsx("object", {
|
|
837
|
+
width: "100%",
|
|
838
|
+
height: "100%",
|
|
839
|
+
data: URL.createObjectURL(file),
|
|
840
|
+
type: "application/pdf",
|
|
841
|
+
"aria-label": t(($) => $["reviewDocument"]),
|
|
842
|
+
"data-testid": "pdf-preview"
|
|
843
|
+
}) : /* @__PURE__ */ jsx("img", {
|
|
844
|
+
src: URL.createObjectURL(file),
|
|
845
|
+
alt: t(($) => $["reviewDocument"])
|
|
846
|
+
});
|
|
847
|
+
}, [
|
|
848
|
+
data?.bankStatementDocument,
|
|
849
|
+
showReviewModal,
|
|
850
|
+
t
|
|
851
|
+
]);
|
|
852
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
853
|
+
className: BankDocumentClassification_module_default.bankDocumentPage,
|
|
854
|
+
children: [
|
|
855
|
+
/* @__PURE__ */ jsxs("form", {
|
|
856
|
+
className: BankDocumentClassification_module_default.bankDocumentClassification,
|
|
857
|
+
children: [
|
|
858
|
+
!useMultiFormMode && /* @__PURE__ */ jsx(StateContextSetter, {
|
|
859
|
+
owner: id,
|
|
860
|
+
stateRef
|
|
861
|
+
}),
|
|
862
|
+
/* @__PURE__ */ jsx(Header, {
|
|
863
|
+
title: t(($) => $["uploadABankDocument"]),
|
|
864
|
+
description: t(($) => $["toVerifyYourBankAccountDetails"])
|
|
865
|
+
}),
|
|
866
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
867
|
+
verificationErrors: formVerificationErrors,
|
|
868
|
+
validationErrors: fieldValidationErrors,
|
|
869
|
+
formUtils,
|
|
870
|
+
id: "ariaErrorField"
|
|
871
|
+
}),
|
|
872
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
873
|
+
className: BankDocumentClassification_module_default.requirementsList,
|
|
874
|
+
children: t(($) => $["makeSureYourDocumentIncludes"])
|
|
875
|
+
}), /* @__PURE__ */ jsxs("ul", {
|
|
876
|
+
className: BankDocumentClassification_module_default.requirementsList,
|
|
877
|
+
children: [
|
|
878
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementNameOrBusiness"]) }),
|
|
879
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $[`documentRequirementAccountNumber${country === "US" ? "Partial" : ""}`]) }),
|
|
880
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementBankInfo"]) }),
|
|
881
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementReadableText"]) })
|
|
882
|
+
]
|
|
883
|
+
})] }),
|
|
884
|
+
/* @__PURE__ */ jsx(Field, {
|
|
885
|
+
className: cx("adyen-kyc-upload-field"),
|
|
886
|
+
name: "bankStatementDocument",
|
|
887
|
+
isValid: valid?.bankStatementDocument ?? true,
|
|
888
|
+
children: (childProps) => /* @__PURE__ */ jsx("div", {
|
|
889
|
+
className: validateDocumentMutation.isPending && !isShadowMode ? BankDocumentClassification_module_default.filePickerDisabled : "",
|
|
890
|
+
children: /* @__PURE__ */ jsx(FilePicker, {
|
|
891
|
+
...childProps,
|
|
892
|
+
name: "bankStatementDocument",
|
|
893
|
+
files: data?.bankStatementDocument ?? [],
|
|
894
|
+
setFiles: handleDocumentUpload,
|
|
895
|
+
isValid: valid?.bankStatementDocument ?? true,
|
|
896
|
+
errorMessage: errors?.bankStatementDocument?.errorMessage,
|
|
897
|
+
loading: validateDocumentMutation.isPending && !isShadowMode,
|
|
898
|
+
...bankStatementValidationOptions
|
|
899
|
+
})
|
|
900
|
+
})
|
|
901
|
+
}),
|
|
902
|
+
data?.bankStatementDocument?.length ? /* @__PURE__ */ jsx(Field, {
|
|
903
|
+
className: "adyen-kyc-document-description",
|
|
904
|
+
name: "description",
|
|
905
|
+
label: formUtils.getLabel("bankDocumentFileDescription"),
|
|
906
|
+
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
907
|
+
isValid: valid?.description,
|
|
908
|
+
children: (childProps) => /* @__PURE__ */ jsx(TextArea, {
|
|
909
|
+
...childProps,
|
|
910
|
+
name: "description",
|
|
911
|
+
value: data?.description,
|
|
912
|
+
maxLength: CHARACTERS_LIMIT,
|
|
913
|
+
onInput: handleChange("description"),
|
|
914
|
+
"aria-invalid": valid?.description === false
|
|
915
|
+
})
|
|
916
|
+
}) : void 0
|
|
917
|
+
]
|
|
918
|
+
}),
|
|
919
|
+
showReviewModal && /* @__PURE__ */ jsx(Modal, {
|
|
920
|
+
ariaLabel: t(($) => $["reviewDocument"]),
|
|
921
|
+
size: showEndState ? "small" : "medium",
|
|
922
|
+
inset: showEndState,
|
|
923
|
+
showCloseButton: !showEndState,
|
|
924
|
+
onClose: !showEndState ? handleContinueAnyway : void 0,
|
|
925
|
+
children: showEndState ? /* @__PURE__ */ jsx(EndStateLayout, { title: t(($) => $["documentUploaded"]) }) : /* @__PURE__ */ jsxs("div", {
|
|
926
|
+
className: BankDocumentClassification_module_default.reviewModal,
|
|
927
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
928
|
+
className: BankDocumentClassification_module_default.preview,
|
|
929
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
930
|
+
className: BankDocumentClassification_module_default.previewImage,
|
|
931
|
+
children: documentPreview
|
|
932
|
+
})
|
|
933
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
934
|
+
className: BankDocumentClassification_module_default.content,
|
|
935
|
+
children: [
|
|
936
|
+
/* @__PURE__ */ jsx("h2", {
|
|
937
|
+
className: BankDocumentClassification_module_default.title,
|
|
938
|
+
children: t(($) => $["reviewDocument"])
|
|
939
|
+
}),
|
|
940
|
+
/* @__PURE__ */ jsx("p", {
|
|
941
|
+
className: BankDocumentClassification_module_default.description,
|
|
942
|
+
children: t(($) => $["reviewDocumentDescription"])
|
|
943
|
+
}),
|
|
944
|
+
/* @__PURE__ */ jsx("ul", {
|
|
945
|
+
className: BankDocumentClassification_module_default.issues,
|
|
946
|
+
children: validationResponse && getValidationIssuesKeys(validationResponse).map((issue, index) => /* @__PURE__ */ jsx("li", { children: t(($) => $[issue]) }, index))
|
|
947
|
+
}),
|
|
948
|
+
/* @__PURE__ */ jsxs("div", {
|
|
949
|
+
className: BankDocumentClassification_module_default.actions,
|
|
950
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
951
|
+
variant: "secondary",
|
|
952
|
+
disabled: validateDocumentMutation.isPending,
|
|
953
|
+
onClick: handleContinueAnyway,
|
|
954
|
+
children: commonT(($) => $["continue"])
|
|
955
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
956
|
+
loading: validateDocumentMutation.isPending,
|
|
957
|
+
variant: "primary",
|
|
958
|
+
onClick: handleUploadNewDocument,
|
|
959
|
+
children: t(($) => $["uploadNewDocument"])
|
|
960
|
+
})]
|
|
961
|
+
})
|
|
962
|
+
]
|
|
963
|
+
})]
|
|
964
|
+
})
|
|
965
|
+
}),
|
|
966
|
+
showConfirmationModal && /* @__PURE__ */ jsx(Modal, {
|
|
967
|
+
ariaLabel: t(($) => $["useThisDocument"]),
|
|
968
|
+
size: "small",
|
|
969
|
+
onClose: handleConfirmationCancel,
|
|
970
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
971
|
+
className: BankDocumentClassification_module_default.confirmationModal,
|
|
972
|
+
children: [
|
|
973
|
+
/* @__PURE__ */ jsx("h2", {
|
|
974
|
+
className: BankDocumentClassification_module_default.title,
|
|
975
|
+
children: t(($) => $["useThisDocument"])
|
|
976
|
+
}),
|
|
977
|
+
/* @__PURE__ */ jsx("p", {
|
|
978
|
+
className: BankDocumentClassification_module_default.description,
|
|
979
|
+
children: t(($) => $["thisDocumentNeedstoBeReviewedManually"])
|
|
980
|
+
}),
|
|
981
|
+
/* @__PURE__ */ jsxs("div", {
|
|
982
|
+
className: BankDocumentClassification_module_default.actions,
|
|
983
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
984
|
+
variant: "secondary",
|
|
985
|
+
onClick: handleConfirmationCancel,
|
|
986
|
+
children: commonT(($) => $["cancel"])
|
|
987
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
988
|
+
variant: "primary",
|
|
989
|
+
onClick: handleUseDocument,
|
|
990
|
+
children: t(($) => $["useDocument"])
|
|
991
|
+
})]
|
|
992
|
+
})
|
|
993
|
+
]
|
|
994
|
+
})
|
|
995
|
+
}),
|
|
996
|
+
/* @__PURE__ */ jsx("input", {
|
|
997
|
+
id,
|
|
998
|
+
ref: inputRef,
|
|
999
|
+
className: "adyen-kyc-dropzone__input",
|
|
1000
|
+
onChange: (e) => {
|
|
1001
|
+
const fileInput = e.currentTarget;
|
|
1002
|
+
if (fileInput?.files?.length) handleDocumentUpload([...fileInput.files]);
|
|
1003
|
+
},
|
|
1004
|
+
type: "file",
|
|
1005
|
+
accept: defaultFileValidationOptions.allowedFileTypes.join(", ")
|
|
1006
|
+
})
|
|
1007
|
+
]
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
var MemoizedBankDocumentClassification = memo(BankDocumentClassification, (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);
|
|
1011
|
+
//#endregion
|
|
1012
|
+
//#region src/components/BankAccount/forms/BankVerification/validate.ts
|
|
1013
|
+
var bankVerificationValidationRules = {
|
|
1014
|
+
verifiedAccountHolder: {
|
|
1015
|
+
modes: ["blur"],
|
|
1016
|
+
validate: (verifiedAccountHolder) => !isEmpty(verifiedAccountHolder),
|
|
1017
|
+
errorMessage: "fieldIsRequired"
|
|
1018
|
+
},
|
|
1019
|
+
verifiedBankCountry: {
|
|
1020
|
+
modes: ["blur"],
|
|
1021
|
+
validate: (verifiedBankCountry) => !isEmpty(verifiedBankCountry),
|
|
1022
|
+
errorMessage: "fieldIsRequired"
|
|
1023
|
+
},
|
|
1024
|
+
verifiedBankName: {
|
|
1025
|
+
modes: ["blur"],
|
|
1026
|
+
validate: (verifiedBankName) => !isEmpty(verifiedBankName),
|
|
1027
|
+
errorMessage: "fieldIsRequired"
|
|
1028
|
+
},
|
|
1029
|
+
verifiedCurrencyCode: {
|
|
1030
|
+
modes: ["blur"],
|
|
1031
|
+
validate: (verifiedCurrencyCode) => !isEmpty(verifiedCurrencyCode),
|
|
1032
|
+
errorMessage: "fieldIsRequired"
|
|
1033
|
+
},
|
|
1034
|
+
verifiedBankAccountNumber: {
|
|
1035
|
+
modes: ["blur"],
|
|
1036
|
+
validate: (verifiedBankAccountNumber) => !isEmpty(verifiedBankAccountNumber),
|
|
1037
|
+
errorMessage: "fieldIsRequired"
|
|
1038
|
+
}
|
|
1039
|
+
};
|
|
1040
|
+
//#endregion
|
|
1041
|
+
//#region src/api/transferInstruments/useHandleBankVerificationError.ts
|
|
1042
|
+
var handleBankVerificationError = async (legalEntityId, baseUrl, bankVerificationErrorParams) => {
|
|
1043
|
+
return httpPost({
|
|
1044
|
+
baseUrl,
|
|
1045
|
+
path: `legalEntities/${legalEntityId}/transferInstruments/trusted/error`
|
|
1046
|
+
}, bankVerificationErrorParams);
|
|
1047
|
+
};
|
|
1048
|
+
/**
|
|
1049
|
+
* Receives an error code and message from a banking verification provider and translates it to a known, standardized error
|
|
1050
|
+
* @param options additional mutation options
|
|
1051
|
+
*/
|
|
1052
|
+
var useHandleBankVerificationError = (options) => {
|
|
1053
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1054
|
+
return useMutation({
|
|
1055
|
+
mutationFn: (params) => handleBankVerificationError(rootLegalEntityId.value, baseUrl.value, params),
|
|
1056
|
+
...options
|
|
1057
|
+
});
|
|
1058
|
+
};
|
|
1059
|
+
//#endregion
|
|
1060
|
+
//#region src/components/BankAccount/forms/BankVerification/verification/overlay/types.ts
|
|
1061
|
+
var VerificationWidgetCallbackActions = {
|
|
1062
|
+
HANDLE_EXCEPTION: "handle_exception",
|
|
1063
|
+
VERIFICATION_SUCCESS: "verification_success",
|
|
1064
|
+
RETRY_VERIFICATION: "retry_verification",
|
|
1065
|
+
HANDLE_EVENT: "handle_event"
|
|
1066
|
+
};
|
|
1067
|
+
//#endregion
|
|
1068
|
+
//#region src/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.tsx
|
|
1069
|
+
var WIDGET_CONTAINER_CLASS = `adyen-kyc-bank-verification-widget-container`;
|
|
1070
|
+
function BankVerificationOverlay({ url, setBankVerificationError, onBack, retrieveBankAccountInfo, createTrustedTransferInstrument, providerName }) {
|
|
1071
|
+
const { t } = useTranslation("banking");
|
|
1072
|
+
const userEvents = useAnalyticsContext();
|
|
1073
|
+
const widgetContainerRef = useRef$1(null);
|
|
1074
|
+
const { mutateAsync: handleBankVerificationError } = useHandleBankVerificationError();
|
|
1075
|
+
const trackVerificationError = (returnValue) => {
|
|
1076
|
+
userEvents.addPageEvent("Encountered error", {
|
|
1077
|
+
actionType: "add",
|
|
1078
|
+
returnType: "sdk error",
|
|
1079
|
+
returnValue,
|
|
1080
|
+
additionalData: { providerName }
|
|
1081
|
+
});
|
|
1082
|
+
};
|
|
1083
|
+
const DEFAULT_ERROR = {
|
|
1084
|
+
error: "UNKNOWN_ERROR",
|
|
1085
|
+
message: t(($) => $["weCouldntCompleteTheAccountCheck"])
|
|
1086
|
+
};
|
|
1087
|
+
useEffect$1(() => {
|
|
1088
|
+
setBankVerificationError(null);
|
|
1089
|
+
}, [setBankVerificationError]);
|
|
1090
|
+
const widgetCallback = useCallback$1((payload) => {
|
|
1091
|
+
const errorContent = t(($) => $["tryAgainOrManualAccountDetails"]);
|
|
1092
|
+
switch (payload.action) {
|
|
1093
|
+
case VerificationWidgetCallbackActions.HANDLE_EXCEPTION: {
|
|
1094
|
+
let errorTitle;
|
|
1095
|
+
const { err } = payload;
|
|
1096
|
+
switch (!(err instanceof Error) && err?.error) {
|
|
1097
|
+
case "USER_CANCELLED":
|
|
1098
|
+
errorTitle = "";
|
|
1099
|
+
break;
|
|
1100
|
+
case "CONNECTION_ERROR":
|
|
1101
|
+
errorTitle = t(($) => $["couldNotEstablishBankConnection"]);
|
|
1102
|
+
break;
|
|
1103
|
+
case "GENERIC_ERROR":
|
|
1104
|
+
errorTitle = t(($) => $["ranIntoTechnicalError"]);
|
|
1105
|
+
break;
|
|
1106
|
+
default:
|
|
1107
|
+
errorTitle = t(($) => $["couldNotCompleteAccountCheck"]);
|
|
1108
|
+
break;
|
|
1109
|
+
}
|
|
1110
|
+
if (errorTitle) setBankVerificationError({
|
|
1111
|
+
title: errorTitle,
|
|
1112
|
+
content: errorContent
|
|
1113
|
+
});
|
|
1114
|
+
isUsingManualFlow.value = true;
|
|
1115
|
+
showInstantVerificationPayoutModal.value = false;
|
|
1116
|
+
onBack?.();
|
|
1117
|
+
break;
|
|
1118
|
+
}
|
|
1119
|
+
case VerificationWidgetCallbackActions.RETRY_VERIFICATION:
|
|
1120
|
+
setBankVerificationError({
|
|
1121
|
+
title: t(($) => $["failedInitializeInstantVerification"]),
|
|
1122
|
+
content: errorContent
|
|
1123
|
+
});
|
|
1124
|
+
onBack?.();
|
|
1125
|
+
break;
|
|
1126
|
+
case VerificationWidgetCallbackActions.HANDLE_EVENT: {
|
|
1127
|
+
const { name, provider } = payload.event;
|
|
1128
|
+
if (name === "institution_selected" && provider === "plaid") widgetContainerRef.current?.classList.add(`${WIDGET_CONTAINER_CLASS}--plaid-modal`);
|
|
1129
|
+
break;
|
|
1130
|
+
}
|
|
1131
|
+
case VerificationWidgetCallbackActions.VERIFICATION_SUCCESS: {
|
|
1132
|
+
const { accounts } = payload.result;
|
|
1133
|
+
if (accounts) retrieveBankAccountInfo(accounts[0]);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
}, [
|
|
1137
|
+
t,
|
|
1138
|
+
retrieveBankAccountInfo,
|
|
1139
|
+
onBack,
|
|
1140
|
+
setBankVerificationError
|
|
1141
|
+
]);
|
|
1142
|
+
useEffect$1(() => {
|
|
1143
|
+
const container = widgetContainerRef.current;
|
|
1144
|
+
if (!container) return;
|
|
1145
|
+
const openBanking = OpenBankingSDK.create({
|
|
1146
|
+
divElement: container,
|
|
1147
|
+
link: url,
|
|
1148
|
+
successHandler: (code, state) => {
|
|
1149
|
+
createTrustedTransferInstrument?.(code, state).then((res) => {
|
|
1150
|
+
userEvents.addPageEvent("Success", {
|
|
1151
|
+
actionType: "add",
|
|
1152
|
+
additionalData: { providerName }
|
|
1153
|
+
});
|
|
1154
|
+
if (res) widgetCallback({
|
|
1155
|
+
action: VerificationWidgetCallbackActions.VERIFICATION_SUCCESS,
|
|
1156
|
+
result: res
|
|
1157
|
+
});
|
|
1158
|
+
}).catch(() => {
|
|
1159
|
+
trackVerificationError(DEFAULT_ERROR.error);
|
|
1160
|
+
widgetCallback({
|
|
1161
|
+
action: VerificationWidgetCallbackActions.HANDLE_EXCEPTION,
|
|
1162
|
+
err: DEFAULT_ERROR
|
|
1163
|
+
});
|
|
1164
|
+
});
|
|
1165
|
+
},
|
|
1166
|
+
errorHandler: (errorCode, errorMessage, state, metadata) => {
|
|
1167
|
+
trackVerificationError(errorCode);
|
|
1168
|
+
handleBankVerificationError?.({
|
|
1169
|
+
errorCode,
|
|
1170
|
+
errorMessage,
|
|
1171
|
+
state,
|
|
1172
|
+
metadata: metadata && Object.fromEntries(metadata)
|
|
1173
|
+
}).then((error) => widgetCallback({
|
|
1174
|
+
action: VerificationWidgetCallbackActions.HANDLE_EXCEPTION,
|
|
1175
|
+
err: error
|
|
1176
|
+
})).catch(() => widgetCallback({
|
|
1177
|
+
action: VerificationWidgetCallbackActions.HANDLE_EXCEPTION,
|
|
1178
|
+
err: DEFAULT_ERROR
|
|
1179
|
+
}));
|
|
1180
|
+
},
|
|
1181
|
+
eventHandler: (eventName, provider) => {
|
|
1182
|
+
widgetCallback({
|
|
1183
|
+
action: VerificationWidgetCallbackActions.HANDLE_EVENT,
|
|
1184
|
+
event: {
|
|
1185
|
+
name: eventName,
|
|
1186
|
+
provider
|
|
1187
|
+
}
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
});
|
|
1191
|
+
openBanking.open();
|
|
1192
|
+
container.classList.add(WIDGET_CONTAINER_CLASS);
|
|
1193
|
+
return () => {
|
|
1194
|
+
openBanking?.destroy();
|
|
1195
|
+
};
|
|
1196
|
+
}, []);
|
|
1197
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1198
|
+
ref: widgetContainerRef,
|
|
1199
|
+
className: `${WIDGET_CONTAINER_CLASS}-overlay`
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1202
|
+
//#endregion
|
|
1203
|
+
//#region src/components/BankAccount/forms/BankVerification/BankVerification.tsx
|
|
1204
|
+
var accountVerificationFields = [
|
|
1205
|
+
"verifiedAccountHolder",
|
|
1206
|
+
"verifiedBankCountry",
|
|
1207
|
+
"verifiedBankName",
|
|
1208
|
+
"verifiedCurrencyCode",
|
|
1209
|
+
"verifiedBankAccountNumber"
|
|
1210
|
+
];
|
|
1211
|
+
var InstantVerificationErrorContext = createContext$1(null);
|
|
1212
|
+
var useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
|
|
1213
|
+
const [errorNotification, setErrorNotification] = useState$1(null);
|
|
1214
|
+
const dismissNotificationTimeoutRef = useRef$1();
|
|
1215
|
+
const clearNotificationTimeout = useCallback$1(() => {
|
|
1216
|
+
if (dismissNotificationTimeoutRef.current) {
|
|
1217
|
+
clearTimeout(dismissNotificationTimeoutRef.current);
|
|
1218
|
+
dismissNotificationTimeoutRef.current = void 0;
|
|
1219
|
+
}
|
|
1220
|
+
}, []);
|
|
1221
|
+
useEffect$1(() => {
|
|
1222
|
+
clearNotificationTimeout();
|
|
1223
|
+
if (errorNotification && notificationVisibilityDuration > 0) dismissNotificationTimeoutRef.current = setTimeout(() => {
|
|
1224
|
+
setErrorNotification(null);
|
|
1225
|
+
clearNotificationTimeout();
|
|
1226
|
+
}, notificationVisibilityDuration);
|
|
1227
|
+
return () => clearNotificationTimeout();
|
|
1228
|
+
}, [
|
|
1229
|
+
errorNotification,
|
|
1230
|
+
clearNotificationTimeout,
|
|
1231
|
+
notificationVisibilityDuration
|
|
1232
|
+
]);
|
|
1233
|
+
return [errorNotification, setErrorNotification];
|
|
1234
|
+
};
|
|
1235
|
+
function BankVerification(props) {
|
|
1236
|
+
const { setBankVerificationError, onBack, hideSidebar, setBankInfoValidated, bankInfoValidated, createTrustedTransferInstrument, country, data: propData, provider, id, fieldValidationErrors, handleFieldChange, valid: propValid, errors: propErrors } = props;
|
|
1237
|
+
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
1238
|
+
const schema = accountVerificationFields;
|
|
1239
|
+
const stateRef = useRef$1({ setState: null });
|
|
1240
|
+
const localForm = useForm({
|
|
1241
|
+
...props,
|
|
1242
|
+
schema,
|
|
1243
|
+
defaultData: propData,
|
|
1244
|
+
rules: bankVerificationValidationRules,
|
|
1245
|
+
fieldProblems: fieldValidationErrors
|
|
1246
|
+
});
|
|
1247
|
+
const useMultiFormMode = !!handleFieldChange;
|
|
1248
|
+
const data = useMultiFormMode ? propData : localForm.data;
|
|
1249
|
+
const valid = useMultiFormMode ? propValid : localForm.valid;
|
|
1250
|
+
const errors = useMultiFormMode ? propErrors : localForm.errors;
|
|
1251
|
+
const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
|
|
1252
|
+
const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
|
|
1253
|
+
const retrieveBankAccountInfo = async ({ realLastFour, number, bankName }) => {
|
|
1254
|
+
handleChange("verifiedBankAccountNumber")(realLastFour ? `*******${realLastFour}` : number);
|
|
1255
|
+
handleChange("verifiedBankName")(bankName);
|
|
1256
|
+
handleChange("verifiedBankCountry")(country);
|
|
1257
|
+
handleChange("verifiedAccountHolder")(propData?.verifiedAccountHolder);
|
|
1258
|
+
handleChange("verifiedCurrencyCode")(propData?.verifiedCurrencyCode ?? currencyByCountry[country]?.[0]);
|
|
1259
|
+
setBankInfoValidated?.(true);
|
|
1260
|
+
hideSidebar?.(false);
|
|
1261
|
+
if (!useMultiFormMode) localForm.triggerValidation();
|
|
1262
|
+
await invalidateRootLegalEntity();
|
|
1263
|
+
showInstantVerificationPayoutModal.value = false;
|
|
1264
|
+
};
|
|
1265
|
+
useEffect$1(() => {
|
|
1266
|
+
if (!useMultiFormMode) stateRef.current.setState?.({
|
|
1267
|
+
type: "addToState",
|
|
1268
|
+
value: {
|
|
1269
|
+
data,
|
|
1270
|
+
valid,
|
|
1271
|
+
errors,
|
|
1272
|
+
fieldProblems,
|
|
1273
|
+
dataStoreId: id,
|
|
1274
|
+
schema
|
|
1275
|
+
}
|
|
1276
|
+
});
|
|
1277
|
+
}, [
|
|
1278
|
+
data,
|
|
1279
|
+
valid,
|
|
1280
|
+
errors,
|
|
1281
|
+
localForm.isValid,
|
|
1282
|
+
useMultiFormMode
|
|
1283
|
+
]);
|
|
1284
|
+
if (provider) {
|
|
1285
|
+
if (bankInfoValidated || !showInstantVerificationPayoutModal.value) return null;
|
|
1286
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [!useMultiFormMode && /* @__PURE__ */ jsx(StateContextSetter, {
|
|
1287
|
+
owner: id,
|
|
1288
|
+
stateRef
|
|
1289
|
+
}), /* @__PURE__ */ jsx(BankVerificationOverlay, {
|
|
1290
|
+
url: provider.redirectUrl,
|
|
1291
|
+
setBankVerificationError,
|
|
1292
|
+
onBack,
|
|
1293
|
+
retrieveBankAccountInfo,
|
|
1294
|
+
createTrustedTransferInstrument,
|
|
1295
|
+
providerName: provider.name
|
|
1296
|
+
})] });
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
//#endregion
|
|
1300
|
+
//#region src/components/BankAccount/fields/BankAccountFormat/BankAccountFormat.tsx
|
|
1301
|
+
function BankAccountFormat(props) {
|
|
1302
|
+
const { t } = useTranslation(["banking"]);
|
|
1303
|
+
const { bankAccountFormat, handleAccountFormatChange } = props;
|
|
1304
|
+
const bankFormatOptions = [{
|
|
1305
|
+
id: "iban",
|
|
1306
|
+
name: t(($) => $["ibanFormat"])
|
|
1307
|
+
}, {
|
|
1308
|
+
id: "local",
|
|
1309
|
+
name: t(($) => $["localFormat"])
|
|
1310
|
+
}];
|
|
1311
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Field, {
|
|
1312
|
+
name: "bankAccountFormat",
|
|
1313
|
+
label: t(($) => $["bankAccountFormat"]),
|
|
1314
|
+
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
1315
|
+
...childProps,
|
|
1316
|
+
onChange: (e) => handleAccountFormatChange?.(e?.target?.value),
|
|
1317
|
+
name: "bankAccountFormat",
|
|
1318
|
+
placeholder: t(($) => $["localFormat"]),
|
|
1319
|
+
selected: bankAccountFormat,
|
|
1320
|
+
items: bankFormatOptions
|
|
1321
|
+
})
|
|
1322
|
+
}) });
|
|
1323
|
+
}
|
|
1324
|
+
//#endregion
|
|
1325
|
+
//#region src/components/BankAccount/fields/BankAccountNumber/fieldConfig.ts
|
|
1326
|
+
var simpleBankAccountNumberMetadata = (example, length, maxLength) => {
|
|
1327
|
+
if (maxLength) return {
|
|
1328
|
+
validators: validatePatternOnBlur(new RegExp(`^\\d{${length},${maxLength}}$`)),
|
|
1329
|
+
mask: { mask: makeMask(...numericInputs(length), ...numericInputs(maxLength - length, true)) },
|
|
1330
|
+
guidanceText: {
|
|
1331
|
+
key: "enterAMaximumOfNDigitsForExample",
|
|
1332
|
+
values: {
|
|
1333
|
+
maxDigits: `${maxLength}`,
|
|
1334
|
+
example
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
};
|
|
1338
|
+
return {
|
|
1339
|
+
validators: validatePatternOnBlur(new RegExp(`^\\d{${length}}$`)),
|
|
1340
|
+
mask: { mask: makeMask(...numericInputs(length)) },
|
|
1341
|
+
guidanceText: {
|
|
1342
|
+
key: "enterNDigitsForExample",
|
|
1343
|
+
values: {
|
|
1344
|
+
numDigits: `${length}`,
|
|
1345
|
+
example
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
};
|
|
1349
|
+
};
|
|
1350
|
+
var defaultFieldMetadata$3 = { validators: isNotEmptyValidator };
|
|
1351
|
+
var defaultFieldConfig$3 = {
|
|
1352
|
+
[CountryCodes.CzechRepublic]: {
|
|
1353
|
+
validators: validatePatternOnBlur(/^((\d{2}|\d{6})-)?\d*\d{2}$/),
|
|
1354
|
+
mask: { mask: makeMask(...numericInputs(2), ...customInputs(1, /-|\d/), ...numericInputs(3), ...customInputs(1, /-|\d/), ...numericInputs(10)) },
|
|
1355
|
+
guidanceText: {
|
|
1356
|
+
key: "enterXToYDigitsWithOrWithoutPrefixForExample",
|
|
1357
|
+
values: {
|
|
1358
|
+
minDigits: "2",
|
|
1359
|
+
maxDigits: "16",
|
|
1360
|
+
firstExample: "19-123457",
|
|
1361
|
+
secondExample: "123457"
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
},
|
|
1365
|
+
[CountryCodes.Denmark]: simpleBankAccountNumberMetadata("2621955959", 10),
|
|
1366
|
+
[CountryCodes.Norway]: simpleBankAccountNumberMetadata("86011117947", 11),
|
|
1367
|
+
[CountryCodes.UnitedKingdom]: simpleBankAccountNumberMetadata("10000003", 8),
|
|
1368
|
+
[CountryCodes.Australia]: simpleBankAccountNumberMetadata("0001234", 5, 10),
|
|
1369
|
+
[CountryCodes.Brazil]: simpleBankAccountNumberMetadata("0009795493", 4, 12),
|
|
1370
|
+
[CountryCodes.Canada]: simpleBankAccountNumberMetadata("10220001111", 5, 12),
|
|
1371
|
+
[CountryCodes.HongKong]: {
|
|
1372
|
+
validators: validatePatternOnBlur(new RegExp(`^\\d{6,18}$`)),
|
|
1373
|
+
mask: { mask: makeMask(...numericInputs(6), ...numericInputs(12, true)) },
|
|
1374
|
+
guidanceText: {
|
|
1375
|
+
key: "enterAccountNumberWithBranchCodeForExample",
|
|
1376
|
+
values: {
|
|
1377
|
+
minDigits: "9",
|
|
1378
|
+
maxDigits: "15",
|
|
1379
|
+
example: "790000000"
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
[CountryCodes.Hungary]: simpleBankAccountNumberMetadata("117730161111101800000000", 24),
|
|
1384
|
+
[CountryCodes.Singapore]: simpleBankAccountNumberMetadata("0052312891876", 4, 19),
|
|
1385
|
+
[CountryCodes.Sweden]: simpleBankAccountNumberMetadata("123456789", 7, 10),
|
|
1386
|
+
[CountryCodes.UnitedStates]: simpleBankAccountNumberMetadata("10220001111", 3, 17),
|
|
1387
|
+
[CountryCodes.Poland]: {
|
|
1388
|
+
validators: validatePatternOnBlur(/^\d{26}$/),
|
|
1389
|
+
mask: { mask: makeMask(...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4)) },
|
|
1390
|
+
guidanceText: {
|
|
1391
|
+
key: "enterNDigitsForExample",
|
|
1392
|
+
values: {
|
|
1393
|
+
numDigits: "26",
|
|
1394
|
+
example: "98 1090 2402 7474 4662 2173 1624"
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1398
|
+
[CountryCodes.NewZealand]: {
|
|
1399
|
+
validators: validatePatternOnBlur(/^\d{15,16}$/),
|
|
1400
|
+
mask: { mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(4), ...nonInputs(" - "), ...numericInputs(7), ...nonInputs(" - "), ...numericInputs(2), ...numericInputs(1, true)) },
|
|
1401
|
+
guidanceText: {
|
|
1402
|
+
key: "enterXToYDigitsForExample",
|
|
1403
|
+
values: {
|
|
1404
|
+
minDigits: "15",
|
|
1405
|
+
maxDigits: "16",
|
|
1406
|
+
example: "12-8765-9876543-043"
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1411
|
+
//#endregion
|
|
1412
|
+
//#region src/components/BankAccount/fields/BankAccountNumber/BankAccountNumber.tsx
|
|
1413
|
+
var bankAccountNumberFields = ["bankAccountNumber"];
|
|
1414
|
+
function BankAccountNumber(props) {
|
|
1415
|
+
const { t } = useTranslation("common");
|
|
1416
|
+
const { country, fieldConfig = defaultFieldConfig$3, onFocus, onBlur, handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
|
|
1417
|
+
const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata$3);
|
|
1418
|
+
const mergedProps = mergeFieldMetadataIntoProps("bankAccountNumber", metadata, props);
|
|
1419
|
+
const localForm = useForm({
|
|
1420
|
+
...mergedProps,
|
|
1421
|
+
schema: bankAccountNumberFields,
|
|
1422
|
+
rules: mergedProps.validators,
|
|
1423
|
+
defaultData: mergedProps.data,
|
|
1424
|
+
fieldProblems: mergedProps?.fieldValidationErrors,
|
|
1425
|
+
obscuredFields: mergedProps.obscuredFields
|
|
1426
|
+
});
|
|
1427
|
+
const useMultiFormMode = !!handleFieldChange;
|
|
1428
|
+
const data = useMultiFormMode ? propsData : localForm.data;
|
|
1429
|
+
const valid = useMultiFormMode ? propsValid : localForm.valid;
|
|
1430
|
+
const errors = useMultiFormMode ? propsErrors : localForm.errors;
|
|
1431
|
+
const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
|
|
1432
|
+
const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
|
|
1433
|
+
const handleBlur = () => {
|
|
1434
|
+
onBlur?.();
|
|
1435
|
+
handleChange("bankAccountNumber", "blur");
|
|
1436
|
+
};
|
|
1437
|
+
const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
|
|
1438
|
+
useEffect$1(() => {
|
|
1439
|
+
if (!useMultiFormMode) updateStateSlice({
|
|
1440
|
+
data,
|
|
1441
|
+
valid,
|
|
1442
|
+
errors,
|
|
1443
|
+
fieldProblems
|
|
1444
|
+
});
|
|
1445
|
+
}, [
|
|
1446
|
+
data,
|
|
1447
|
+
valid,
|
|
1448
|
+
errors,
|
|
1449
|
+
fieldProblems,
|
|
1450
|
+
useMultiFormMode
|
|
1451
|
+
]);
|
|
1452
|
+
const formUtils = createFormUtils(mergedProps, t);
|
|
1453
|
+
return /* @__PURE__ */ jsx(MaskedInput, {
|
|
1454
|
+
name: "bankAccountNumber",
|
|
1455
|
+
type: "text",
|
|
1456
|
+
label: t(($) => $["bankAccountNumber"]),
|
|
1457
|
+
formatGuidance: translateTranslatable(t, metadata.guidanceText),
|
|
1458
|
+
...formUtils.getMask("bankAccountNumber"),
|
|
1459
|
+
isValid: valid?.bankAccountNumber ?? true,
|
|
1460
|
+
errorMessage: formUtils.getErrorMessage("bankAccountNumber", errors, fieldProblems),
|
|
1461
|
+
"aria-required": true,
|
|
1462
|
+
"aria-invalid": !valid?.bankAccountNumber,
|
|
1463
|
+
onBlur: handleBlur,
|
|
1464
|
+
onInput: handleChange("bankAccountNumber", "input"),
|
|
1465
|
+
onFocus,
|
|
1466
|
+
readonly: formUtils.isReadOnly("bankAccountNumber"),
|
|
1467
|
+
value: data?.bankAccountNumber ?? "",
|
|
1468
|
+
acceptObscuredValue: formUtils.isObscured("bankAccountNumber")
|
|
1469
|
+
});
|
|
1470
|
+
}
|
|
1471
|
+
//#endregion
|
|
1472
|
+
//#region src/components/BankAccount/fields/BankCity/BankCity.tsx
|
|
1473
|
+
var bankCityFields = ["bankCity"];
|
|
1474
|
+
function BankCity(props) {
|
|
1475
|
+
const { t } = useTranslation("common");
|
|
1476
|
+
const { validators, data: bankCityData, valid: propsValid, errors: propsErrors, fieldValidationErrors, handleFieldChange } = props;
|
|
1477
|
+
const localForm = useForm({
|
|
1478
|
+
...props,
|
|
1479
|
+
schema: bankCityFields,
|
|
1480
|
+
rules: validators,
|
|
1481
|
+
defaultData: bankCityData,
|
|
1482
|
+
fieldProblems: fieldValidationErrors
|
|
1483
|
+
});
|
|
1484
|
+
const useMultiFormMode = !!handleFieldChange;
|
|
1485
|
+
const data = useMultiFormMode ? bankCityData : localForm.data;
|
|
1486
|
+
const valid = useMultiFormMode ? propsValid : localForm.valid;
|
|
1487
|
+
const errors = useMultiFormMode ? propsErrors : localForm.errors;
|
|
1488
|
+
const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
|
|
1489
|
+
const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
|
|
1490
|
+
const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
|
|
1491
|
+
useEffect$1(() => {
|
|
1492
|
+
if (!useMultiFormMode) updateStateSlice({
|
|
1493
|
+
data,
|
|
1494
|
+
valid,
|
|
1495
|
+
errors,
|
|
1496
|
+
fieldProblems
|
|
1497
|
+
});
|
|
1498
|
+
}, [
|
|
1499
|
+
data,
|
|
1500
|
+
valid,
|
|
1501
|
+
errors,
|
|
1502
|
+
fieldProblems,
|
|
1503
|
+
useMultiFormMode
|
|
1504
|
+
]);
|
|
1505
|
+
const formUtils = createFormUtils(props, t);
|
|
1506
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
1507
|
+
name: "bankCity",
|
|
1508
|
+
label: t(($) => $["bankCityTown"]),
|
|
1509
|
+
errorMessage: formUtils.getErrorMessage("bankCity", errors, fieldProblems),
|
|
1510
|
+
isValid: valid?.bankCity ?? true,
|
|
1511
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1512
|
+
...childProps,
|
|
1513
|
+
name: "bankCity",
|
|
1514
|
+
value: data?.bankCity,
|
|
1515
|
+
readonly: formUtils.isReadOnly("bankCity"),
|
|
1516
|
+
onInput: handleChange("bankCity", "input"),
|
|
1517
|
+
onBlur: handleChange("bankCity", "blur"),
|
|
1518
|
+
"aria-required": true,
|
|
1519
|
+
"aria-invalid": !valid?.bankCity
|
|
1520
|
+
})
|
|
1521
|
+
});
|
|
1522
|
+
}
|
|
1523
|
+
//#endregion
|
|
1524
|
+
//#region src/components/BankAccount/fields/BankCode/fieldConfig.ts
|
|
1525
|
+
var defaultFieldMetadata$2 = {
|
|
1526
|
+
label: "bankCode",
|
|
1527
|
+
validators: isNotEmptyValidator
|
|
1528
|
+
};
|
|
1529
|
+
var simpleBankCodeMetadata = (length, example, label) => ({
|
|
1530
|
+
label: label ?? "bankCode",
|
|
1531
|
+
validators: validatePatternOnBlur(new RegExp(`^\\d{${length}}$`)),
|
|
1532
|
+
mask: { mask: makeMask(...numericInputs(length)) },
|
|
1533
|
+
guidanceText: {
|
|
1534
|
+
key: "enterNDigitsForExample",
|
|
1535
|
+
values: {
|
|
1536
|
+
numDigits: `${length}`,
|
|
1537
|
+
example
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
});
|
|
1541
|
+
var defaultFieldConfig$2 = {
|
|
1542
|
+
[CountryCodes.Brazil]: simpleBankCodeMetadata(3, "123"),
|
|
1543
|
+
[CountryCodes.Canada]: simpleBankCodeMetadata(3, "100", "institutionNumber"),
|
|
1544
|
+
[CountryCodes.CzechRepublic]: simpleBankCodeMetadata(4, "0800"),
|
|
1545
|
+
[CountryCodes.Denmark]: simpleBankCodeMetadata(4, "5051"),
|
|
1546
|
+
[CountryCodes.HongKong]: simpleBankCodeMetadata(3, "250"),
|
|
1547
|
+
[CountryCodes.Norway]: simpleBankCodeMetadata(4, "8601"),
|
|
1548
|
+
[CountryCodes.Ecuador]: simpleBankCodeMetadata(4, "1234"),
|
|
1549
|
+
[CountryCodes.Japan]: simpleBankCodeMetadata(4, "1234"),
|
|
1550
|
+
[CountryCodes.Taiwan]: simpleBankCodeMetadata(3, "123")
|
|
1551
|
+
};
|
|
1552
|
+
//#endregion
|
|
1553
|
+
//#region src/components/BankAccount/fields/BankCode/BankCode.tsx
|
|
1554
|
+
var bankCodeFields = ["bankCode"];
|
|
1555
|
+
function BankCode(props) {
|
|
1556
|
+
const { t } = useTranslation("common");
|
|
1557
|
+
const { country, fieldConfig = defaultFieldConfig$2, handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
|
|
1558
|
+
const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata$2);
|
|
1559
|
+
const mergedProps = mergeFieldMetadataIntoProps("bankCode", metadata, props);
|
|
1560
|
+
const localForm = useForm({
|
|
1561
|
+
...mergedProps,
|
|
1562
|
+
schema: bankCodeFields,
|
|
1563
|
+
rules: mergedProps.validators,
|
|
1564
|
+
defaultData: mergedProps.data,
|
|
1565
|
+
fieldProblems: mergedProps.fieldValidationErrors
|
|
1566
|
+
});
|
|
1567
|
+
const useMultiFormMode = !!handleFieldChange;
|
|
1568
|
+
const data = useMultiFormMode ? propsData : localForm.data;
|
|
1569
|
+
const valid = useMultiFormMode ? propsValid : localForm.valid;
|
|
1570
|
+
const errors = useMultiFormMode ? propsErrors : localForm.errors;
|
|
1571
|
+
const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
|
|
1572
|
+
const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
|
|
1573
|
+
const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
|
|
1574
|
+
useEffect$1(() => {
|
|
1575
|
+
if (!useMultiFormMode) updateStateSlice({
|
|
1576
|
+
data,
|
|
1577
|
+
valid,
|
|
1578
|
+
errors,
|
|
1579
|
+
fieldProblems
|
|
1580
|
+
});
|
|
1581
|
+
}, [
|
|
1582
|
+
data,
|
|
1583
|
+
valid,
|
|
1584
|
+
errors,
|
|
1585
|
+
fieldProblems,
|
|
1586
|
+
useMultiFormMode
|
|
1587
|
+
]);
|
|
1588
|
+
const formUtils = createFormUtils(mergedProps, t);
|
|
1589
|
+
return /* @__PURE__ */ jsx(MaskedInput, {
|
|
1590
|
+
name: "bankCode",
|
|
1591
|
+
type: "text",
|
|
1592
|
+
label: formUtils.getLabel("bankCode"),
|
|
1593
|
+
errorMessage: formUtils.getErrorMessage("bankCode", errors, fieldProblems),
|
|
1594
|
+
formatGuidance: translateTranslatable(t, metadata.guidanceText),
|
|
1595
|
+
...formUtils.getMask("bankCode"),
|
|
1596
|
+
isValid: valid?.bankCode ?? true,
|
|
1597
|
+
value: data?.bankCode ?? "",
|
|
1598
|
+
readonly: formUtils.isReadOnly("bankCode"),
|
|
1599
|
+
onInput: handleChange("bankCode", "input"),
|
|
1600
|
+
onBlur: handleChange("bankCode", "blur"),
|
|
1601
|
+
"aria-required": true,
|
|
1602
|
+
"aria-invalid": !valid?.bankCode
|
|
1603
|
+
});
|
|
1604
|
+
}
|
|
1605
|
+
//#endregion
|
|
1606
|
+
//#region src/components/BankAccount/fields/BankName/BankName.tsx
|
|
1607
|
+
var bankNameFields = ["bankName"];
|
|
1608
|
+
function BankName(props) {
|
|
1609
|
+
const { t } = useTranslation("common");
|
|
1610
|
+
const { validators, data: bankNameData, valid: propsValid, errors: propsErrors, fieldValidationErrors, handleFieldChange } = props;
|
|
1611
|
+
const localForm = useForm({
|
|
1612
|
+
...props,
|
|
1613
|
+
schema: bankNameFields,
|
|
1614
|
+
rules: validators,
|
|
1615
|
+
defaultData: bankNameData,
|
|
1616
|
+
fieldProblems: fieldValidationErrors
|
|
1617
|
+
});
|
|
1618
|
+
const useMultiFormMode = !!handleFieldChange;
|
|
1619
|
+
const data = useMultiFormMode ? bankNameData : localForm.data;
|
|
1620
|
+
const valid = useMultiFormMode ? propsValid : localForm.valid;
|
|
1621
|
+
const errors = useMultiFormMode ? propsErrors : localForm.errors;
|
|
1622
|
+
const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
|
|
1623
|
+
const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
|
|
1624
|
+
const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
|
|
1625
|
+
useEffect$1(() => {
|
|
1626
|
+
if (!useMultiFormMode) updateStateSlice({
|
|
1627
|
+
data,
|
|
1628
|
+
valid,
|
|
1629
|
+
errors,
|
|
1630
|
+
fieldProblems
|
|
1631
|
+
});
|
|
1632
|
+
}, [
|
|
1633
|
+
data,
|
|
1634
|
+
valid,
|
|
1635
|
+
errors,
|
|
1636
|
+
fieldProblems,
|
|
1637
|
+
useMultiFormMode
|
|
1638
|
+
]);
|
|
1639
|
+
const formUtils = createFormUtils(props, t);
|
|
1640
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
1641
|
+
name: "bankName",
|
|
1642
|
+
label: t(($) => $["bankName"]),
|
|
1643
|
+
errorMessage: formUtils.getErrorMessage("bankName", errors, fieldProblems),
|
|
1644
|
+
isValid: valid?.bankName ?? true,
|
|
1645
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1646
|
+
...childProps,
|
|
1647
|
+
name: "bankName",
|
|
1648
|
+
value: data?.bankName,
|
|
1649
|
+
readonly: formUtils.isReadOnly("bankName"),
|
|
1650
|
+
onInput: handleChange("bankName", "input"),
|
|
1651
|
+
onBlur: handleChange("bankName", "blur"),
|
|
1652
|
+
"aria-required": true,
|
|
1653
|
+
"aria-invalid": !valid?.bankName
|
|
1654
|
+
})
|
|
1655
|
+
});
|
|
1656
|
+
}
|
|
1657
|
+
//#endregion
|
|
1658
|
+
//#region src/components/BankAccount/fields/BranchCode/fieldConfig.ts
|
|
1659
|
+
var defaultFieldMetadata$1 = {
|
|
1660
|
+
label: "branchCode",
|
|
1661
|
+
validators: isNotEmptyValidator
|
|
1662
|
+
};
|
|
1663
|
+
var defaultFieldConfig$1 = {
|
|
1664
|
+
[CountryCodes.UnitedKingdom]: {
|
|
1665
|
+
label: "sortCode",
|
|
1666
|
+
validators: validatePatternOnBlur(/^\d{6}$/),
|
|
1667
|
+
mask: { mask: makeMask(...numericInputs(6)) },
|
|
1668
|
+
guidanceText: {
|
|
1669
|
+
key: "enterNDigitsForExample",
|
|
1670
|
+
values: {
|
|
1671
|
+
numDigits: "6",
|
|
1672
|
+
example: "401199"
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
},
|
|
1676
|
+
[CountryCodes.Australia]: {
|
|
1677
|
+
label: "bsbNumber",
|
|
1678
|
+
validators: validatePatternOnBlur(/^\d{6}$/),
|
|
1679
|
+
mask: { mask: makeMask(...numericInputs(3), ...nonInputs(" - "), ...numericInputs(3)) },
|
|
1680
|
+
guidanceText: {
|
|
1681
|
+
key: "enterNDigitsForExample",
|
|
1682
|
+
values: {
|
|
1683
|
+
numDigits: "6",
|
|
1684
|
+
example: "033-547"
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
},
|
|
1688
|
+
[CountryCodes.Brazil]: {
|
|
1689
|
+
label: "branchCode",
|
|
1690
|
+
validators: validatePatternOnBlur(/^\d{1,5}$/),
|
|
1691
|
+
mask: { mask: makeMask(...numericInputs(1), ...numericInputs(4, true)) },
|
|
1692
|
+
guidanceText: {
|
|
1693
|
+
key: "enterAMaximumOfNDigitsForExample",
|
|
1694
|
+
values: {
|
|
1695
|
+
maxDigits: "5",
|
|
1696
|
+
example: "36257"
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1700
|
+
[CountryCodes.Canada]: {
|
|
1701
|
+
label: "transitNumber",
|
|
1702
|
+
validators: validatePatternOnBlur(/^\d{5}$/),
|
|
1703
|
+
mask: { mask: makeMask(...numericInputs(5)) },
|
|
1704
|
+
guidanceText: {
|
|
1705
|
+
key: "enterNDigitsForExample",
|
|
1706
|
+
values: {
|
|
1707
|
+
numDigits: "5",
|
|
1708
|
+
example: "27601"
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
},
|
|
1712
|
+
[CountryCodes.UnitedStates]: {
|
|
1713
|
+
label: "routingNumber",
|
|
1714
|
+
validators: validatePatternOnBlur(/^\d{9}$/),
|
|
1715
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1716
|
+
guidanceText: {
|
|
1717
|
+
key: "enterNDigitsForExample",
|
|
1718
|
+
values: {
|
|
1719
|
+
numDigits: "9",
|
|
1720
|
+
example: "107005432"
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
[CountryCodes.Sweden]: {
|
|
1725
|
+
label: "branchCode",
|
|
1726
|
+
validators: validatePatternOnBlur(/^(\d{4}|8\d{4})$/),
|
|
1727
|
+
mask: { mask: makeMask(...numericInputs(4), ...nonInputs(" - ", { displayEagerly: false }), ...numericInputs(1, true)) },
|
|
1728
|
+
guidanceText: {
|
|
1729
|
+
key: "enterXOrYDigitsForExample",
|
|
1730
|
+
values: {
|
|
1731
|
+
xDigits: "4",
|
|
1732
|
+
yDigits: "5",
|
|
1733
|
+
example: "5678 or 8635-2"
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
},
|
|
1737
|
+
[CountryCodes.Indonesia]: {
|
|
1738
|
+
label: "clearingCode",
|
|
1739
|
+
validators: isNotEmptyValidator
|
|
1740
|
+
}
|
|
1741
|
+
};
|
|
1742
|
+
//#endregion
|
|
1743
|
+
//#region src/components/BankAccount/fields/BranchCode/BranchCode.tsx
|
|
1744
|
+
var branchCodeFields = ["branchCode"];
|
|
1745
|
+
function BranchCode(props) {
|
|
1746
|
+
const { t } = useTranslation("common");
|
|
1747
|
+
const { country, fieldConfig = defaultFieldConfig$1, onFocus, onBlur, handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
|
|
1748
|
+
const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata$1);
|
|
1749
|
+
const mergedProps = mergeFieldMetadataIntoProps("branchCode", metadata, props);
|
|
1750
|
+
const localForm = useForm({
|
|
1751
|
+
...mergedProps,
|
|
1752
|
+
schema: branchCodeFields,
|
|
1753
|
+
rules: mergedProps.validators,
|
|
1754
|
+
defaultData: mergedProps.data,
|
|
1755
|
+
fieldProblems: mergedProps?.fieldValidationErrors
|
|
1756
|
+
});
|
|
1757
|
+
const useMultiFormMode = !!handleFieldChange;
|
|
1758
|
+
const data = useMultiFormMode ? propsData : localForm.data;
|
|
1759
|
+
const valid = useMultiFormMode ? propsValid : localForm.valid;
|
|
1760
|
+
const errors = useMultiFormMode ? propsErrors : localForm.errors;
|
|
1761
|
+
const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
|
|
1762
|
+
const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
|
|
1763
|
+
const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
|
|
1764
|
+
const handleBlur = () => {
|
|
1765
|
+
onBlur?.();
|
|
1766
|
+
handleChange("branchCode", "blur");
|
|
1767
|
+
};
|
|
1768
|
+
useEffect$1(() => {
|
|
1769
|
+
if (!useMultiFormMode) updateStateSlice({
|
|
1770
|
+
data,
|
|
1771
|
+
valid,
|
|
1772
|
+
errors,
|
|
1773
|
+
fieldProblems
|
|
1774
|
+
});
|
|
1775
|
+
}, [
|
|
1776
|
+
data,
|
|
1777
|
+
valid,
|
|
1778
|
+
errors,
|
|
1779
|
+
fieldProblems,
|
|
1780
|
+
useMultiFormMode
|
|
1781
|
+
]);
|
|
1782
|
+
const formUtils = createFormUtils(mergedProps, t);
|
|
1783
|
+
return /* @__PURE__ */ jsx(MaskedInput, {
|
|
1784
|
+
name: "branchCode",
|
|
1785
|
+
type: "text",
|
|
1786
|
+
label: formUtils.getLabel("branchCode"),
|
|
1787
|
+
formatGuidance: translateTranslatable(t, metadata.guidanceText),
|
|
1788
|
+
...formUtils.getMask("branchCode"),
|
|
1789
|
+
errorMessage: formUtils.getErrorMessage("branchCode", errors, fieldProblems),
|
|
1790
|
+
isValid: valid?.branchCode ?? true,
|
|
1791
|
+
value: data?.branchCode ?? "",
|
|
1792
|
+
readonly: formUtils.isReadOnly("branchCode"),
|
|
1793
|
+
onInput: handleChange("branchCode", "input"),
|
|
1794
|
+
onBlur: handleBlur,
|
|
1795
|
+
onFocus,
|
|
1796
|
+
"aria-required": true,
|
|
1797
|
+
"aria-invalid": !valid?.branchCode
|
|
1798
|
+
});
|
|
1799
|
+
}
|
|
1800
|
+
//#endregion
|
|
1801
|
+
//#region src/components/BankAccount/fields/Iban/ibanValidator.ts
|
|
1802
|
+
/**
|
|
1803
|
+
* Basic Bank Account Number pattern per country
|
|
1804
|
+
*/
|
|
1805
|
+
var bbanPatternsByCountry = {
|
|
1806
|
+
[CountryCodes.Albania]: /\d{8}[\dA-Z]{16}/,
|
|
1807
|
+
[CountryCodes.Andorra]: /\d{8}[\dA-Z]{12}/,
|
|
1808
|
+
[CountryCodes.Austria]: /\d{16}/,
|
|
1809
|
+
[CountryCodes.Azerbaijan]: /[\dA-Z]{4}\d{20}/,
|
|
1810
|
+
[CountryCodes.Belgium]: /\d{12}/,
|
|
1811
|
+
[CountryCodes.Bahrain]: /[A-Z]{4}[\dA-Z]{14}/,
|
|
1812
|
+
[CountryCodes.BosniaAndHerzegovina]: /\d{16}/,
|
|
1813
|
+
[CountryCodes.Brazil]: /\d{23}[A-Z][\dA-Z]/,
|
|
1814
|
+
[CountryCodes.Bulgaria]: /[A-Z]{4}\d{6}[\dA-Z]{8}/,
|
|
1815
|
+
[CountryCodes.CostaRica]: /\d{17}/,
|
|
1816
|
+
[CountryCodes.Croatia]: /\d{17}/,
|
|
1817
|
+
[CountryCodes.Cyprus]: /\d{8}[\dA-Z]{16}/,
|
|
1818
|
+
[CountryCodes.CzechRepublic]: /\d{20}/,
|
|
1819
|
+
[CountryCodes.Denmark]: /\d{14}/,
|
|
1820
|
+
[CountryCodes.DominicanRepublic]: /[A-Z]{4}\d{20}/,
|
|
1821
|
+
[CountryCodes.Estonia]: /\d{16}/,
|
|
1822
|
+
[CountryCodes.FaroeIslands]: /\d{14}/,
|
|
1823
|
+
[CountryCodes.Finland]: /\d{14}/,
|
|
1824
|
+
[CountryCodes.France]: /\d{10}[\dA-Z]{11}\d{2}/,
|
|
1825
|
+
[CountryCodes.Georgia]: /[\dA-Z]{2}\d{16}/,
|
|
1826
|
+
[CountryCodes.Germany]: /\d{18}/,
|
|
1827
|
+
[CountryCodes.Gibraltar]: /[A-Z]{4}[\dA-Z]{15}/,
|
|
1828
|
+
[CountryCodes.Greece]: /\d{7}[\dA-Z]{16}/,
|
|
1829
|
+
[CountryCodes.Greenland]: /\d{14}/,
|
|
1830
|
+
[CountryCodes.Guatemala]: /[\dA-Z]{4}[\dA-Z]{20}/,
|
|
1831
|
+
[CountryCodes.Hungary]: /\d{24}/,
|
|
1832
|
+
[CountryCodes.Iceland]: /\d{22}/,
|
|
1833
|
+
[CountryCodes.Ireland]: /[\dA-Z]{4}\d{14}/,
|
|
1834
|
+
[CountryCodes.Israel]: /\d{19}/,
|
|
1835
|
+
[CountryCodes.Italy]: /[A-Z]\d{10}[\dA-Z]{12}/,
|
|
1836
|
+
[CountryCodes.Kazakhstan]: /\d{3}[\dA-Z]{13}/,
|
|
1837
|
+
[CountryCodes.Kuwait]: /[A-Z]{4}[\dA-Z]{22}/,
|
|
1838
|
+
[CountryCodes.Latvia]: /[A-Z]{4}[\dA-Z]{13}/,
|
|
1839
|
+
[CountryCodes.Lebanon]: /\d{4}[\dA-Z]{20}/,
|
|
1840
|
+
[CountryCodes.Liechtenstein]: /\d{5}[\dA-Z]{12}/,
|
|
1841
|
+
[CountryCodes.Lithuania]: /\d{16}/,
|
|
1842
|
+
[CountryCodes.Luxembourg]: /\d{3}[\dA-Z]{13}/,
|
|
1843
|
+
[CountryCodes.Macedonia]: /\d{3}[\dA-Z]{10}\d{2}/,
|
|
1844
|
+
[CountryCodes.Malta]: /[A-Z]{4}\d{5}[\dA-Z]{18}/,
|
|
1845
|
+
[CountryCodes.Mauritania]: /\d{23}/,
|
|
1846
|
+
[CountryCodes.Mauritius]: /[A-Z]{4}\d{19}[A-Z]{3}/,
|
|
1847
|
+
[CountryCodes.Monaco]: /\d{10}[\dA-Z]{11}\d{2}/,
|
|
1848
|
+
[CountryCodes.Moldova]: /[\dA-Z]{2}\d{18}/,
|
|
1849
|
+
[CountryCodes.Montenegro]: /\d{18}/,
|
|
1850
|
+
[CountryCodes.Netherlands]: /[A-Z]{4}\d{10}/,
|
|
1851
|
+
[CountryCodes.Norway]: /\d{11}/,
|
|
1852
|
+
[CountryCodes.Pakistan]: /[\dA-Z]{4}\d{16}/,
|
|
1853
|
+
[CountryCodes.PalestinianTerritory]: /[\dA-Z]{4}\d{21}/,
|
|
1854
|
+
[CountryCodes.Poland]: /\d{24}/,
|
|
1855
|
+
[CountryCodes.Portugal]: /\d{21}/,
|
|
1856
|
+
[CountryCodes.Romania]: /[A-Z]{4}[\dA-Z]{16}/,
|
|
1857
|
+
[CountryCodes.SanMarino]: /[A-Z]\d{10}[\dA-Z]{12}/,
|
|
1858
|
+
[CountryCodes.SaudiArabia]: /\d{2}[\dA-Z]{18}/,
|
|
1859
|
+
[CountryCodes.Serbia]: /\d{18}/,
|
|
1860
|
+
[CountryCodes.Slovakia]: /\d{20}/,
|
|
1861
|
+
[CountryCodes.Slovenia]: /\d{15}/,
|
|
1862
|
+
[CountryCodes.Spain]: /\d{20}/,
|
|
1863
|
+
[CountryCodes.Sweden]: /\d{20}/,
|
|
1864
|
+
[CountryCodes.Switzerland]: /\d{5}[\dA-Z]{12}/,
|
|
1865
|
+
[CountryCodes.Tunisia]: /\d{20}/,
|
|
1866
|
+
[CountryCodes.Turkey]: /\d{5}[\dA-Z]{17}/,
|
|
1867
|
+
[CountryCodes.UnitedArabEmirates]: /\d{3}\d{16}/,
|
|
1868
|
+
[CountryCodes.UnitedKingdom]: /[A-Z]{4}\d{14}/,
|
|
1869
|
+
[CountryCodes.VirginIslandsBritish]: /[\dA-Z]{4}\d{16}/
|
|
1870
|
+
};
|
|
1871
|
+
/**
|
|
1872
|
+
* For some regions the iban format is shared and therefore can accept IBANs starting
|
|
1873
|
+
* with some other country code
|
|
1874
|
+
*/
|
|
1875
|
+
var customPrefixByCountry = {
|
|
1876
|
+
[CountryCodes.Guernsey]: "GB",
|
|
1877
|
+
[CountryCodes.Jersey]: "GB",
|
|
1878
|
+
[CountryCodes.IsleOfMan]: "GB"
|
|
1879
|
+
};
|
|
1880
|
+
function ibanValidator(input, bankCountry) {
|
|
1881
|
+
if (isEmpty(input)) return false;
|
|
1882
|
+
const ibanInput = input.replace(/ /g, "").toUpperCase();
|
|
1883
|
+
if (!/^([a-zA-Z0-9]{4} ){2,8}[a-zA-Z0-9]{1,4}|[a-zA-Z0-9]{12,34}$/.test(ibanInput)) return false;
|
|
1884
|
+
const countryCode = ibanInput.substring(0, 2);
|
|
1885
|
+
const allowedPrefix = customPrefixByCountry[bankCountry] ?? bankCountry;
|
|
1886
|
+
if (countryCode !== allowedPrefix) return {
|
|
1887
|
+
key: "yourIbanShouldBeginWith_",
|
|
1888
|
+
values: { countryCode: allowedPrefix }
|
|
1889
|
+
};
|
|
1890
|
+
const bbanPattern = bbanPatternsByCountry[countryCode];
|
|
1891
|
+
if (bbanPattern) {
|
|
1892
|
+
if (!new RegExp(`^[A-Z]{2}\\d{2}${bbanPattern.source}$`, "").test(ibanInput)) return false;
|
|
1893
|
+
}
|
|
1894
|
+
const ibanCheck = ibanInput.substring(4, ibanInput.length) + ibanInput.substring(0, 4);
|
|
1895
|
+
let leadingZeroes = true;
|
|
1896
|
+
let ibanCheckDigits = "";
|
|
1897
|
+
for (let i = 0; i < ibanCheck.length; i += 1) {
|
|
1898
|
+
const charAt = ibanCheck.charAt(i);
|
|
1899
|
+
if (charAt !== "0") leadingZeroes = false;
|
|
1900
|
+
if (!leadingZeroes) ibanCheckDigits += "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(charAt);
|
|
1901
|
+
}
|
|
1902
|
+
let cRest = 0;
|
|
1903
|
+
for (let p = 0; p < ibanCheckDigits.length; p += 1) {
|
|
1904
|
+
const cChar = ibanCheckDigits.charAt(p);
|
|
1905
|
+
cRest = +`${cRest}${cChar}` % 97;
|
|
1906
|
+
}
|
|
1907
|
+
return cRest === 1;
|
|
1908
|
+
}
|
|
1909
|
+
//#endregion
|
|
1910
|
+
//#region src/components/BankAccount/fields/Iban/fieldConfig.ts
|
|
1911
|
+
var validateIbanOnBlurAndInput = (country) => ({
|
|
1912
|
+
modes: ["blur", "input"],
|
|
1913
|
+
validate: (iban) => ibanValidator(iban, country) === true,
|
|
1914
|
+
errorMessage: (iban) => {
|
|
1915
|
+
const result = ibanValidator(iban, country);
|
|
1916
|
+
return typeof result === "boolean" ? void 0 : result;
|
|
1917
|
+
}
|
|
1918
|
+
});
|
|
1919
|
+
var ibanMask = (country, inputLength, allowLettersInBban) => {
|
|
1920
|
+
const tokens = [];
|
|
1921
|
+
tokens.push(...nonInputs(country, { includeInValue: true }), ...numericInputs(2));
|
|
1922
|
+
inputLength -= 2;
|
|
1923
|
+
const inputToken = allowLettersInBban ? alphanumericInputs : numericInputs;
|
|
1924
|
+
const numGroups = Math.floor(inputLength / 4);
|
|
1925
|
+
const remainder = inputLength % 4;
|
|
1926
|
+
for (let i = 0; i < numGroups; i += 1) tokens.push(spacer, ...inputToken(4));
|
|
1927
|
+
if (remainder > 0) tokens.push(spacer, ...inputToken(remainder));
|
|
1928
|
+
return {
|
|
1929
|
+
mask: makeMask(...tokens),
|
|
1930
|
+
transformOnType: allowLettersInBban ? uppercase : void 0
|
|
1931
|
+
};
|
|
1932
|
+
};
|
|
1933
|
+
var ibanGuidance = (type, numDigitsOrChars, example) => type === "digits" ? {
|
|
1934
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1935
|
+
values: {
|
|
1936
|
+
numDigits: `${numDigitsOrChars}`,
|
|
1937
|
+
example
|
|
1938
|
+
}
|
|
1939
|
+
} : {
|
|
1940
|
+
key: "enterTheRemainingNCharactersForExample",
|
|
1941
|
+
values: {
|
|
1942
|
+
numChars: `${numDigitsOrChars}`,
|
|
1943
|
+
example
|
|
1944
|
+
}
|
|
1945
|
+
};
|
|
1946
|
+
var ibanMetadata = (country, inputLength, example, allowLettersInBban) => ({
|
|
1947
|
+
validators: validateIbanOnBlurAndInput(country),
|
|
1948
|
+
mask: ibanMask(country, inputLength, allowLettersInBban),
|
|
1949
|
+
guidanceText: ibanGuidance(allowLettersInBban ? "characters" : "digits", inputLength, example)
|
|
1950
|
+
});
|
|
1951
|
+
var gbIbanMetadata = ibanMetadata(CountryCodes.UnitedKingdom, 20, "GB09 BARC 2003 9554 8297 59", true);
|
|
1952
|
+
var defaultFieldMetadata = { validators: isNotEmptyValidator };
|
|
1953
|
+
var defaultFieldConfig = {
|
|
1954
|
+
[CountryCodes.Austria]: ibanMetadata(CountryCodes.Austria, 18, "AT88 5400 0746 7265 9747"),
|
|
1955
|
+
[CountryCodes.Belgium]: ibanMetadata(CountryCodes.Belgium, 14, "BE59 9788 6743 2226"),
|
|
1956
|
+
[CountryCodes.Croatia]: ibanMetadata(CountryCodes.Croatia, 19, "HR51 2484 0083 5929 6973 8"),
|
|
1957
|
+
[CountryCodes.Cyprus]: ibanMetadata(CountryCodes.Cyprus, 26, "CY16 5183 1221 8756 5858 5388 7678"),
|
|
1958
|
+
[CountryCodes.CzechRepublic]: ibanMetadata(CountryCodes.CzechRepublic, 22, "CZ23 5051 3674 5924 5233 3465"),
|
|
1959
|
+
[CountryCodes.Denmark]: ibanMetadata(CountryCodes.Denmark, 16, "DK95 2000 0123 4567 89"),
|
|
1960
|
+
[CountryCodes.Estonia]: ibanMetadata(CountryCodes.Estonia, 18, "EE26 1291 5123 1542 6371"),
|
|
1961
|
+
[CountryCodes.Finland]: ibanMetadata(CountryCodes.Finland, 16, "FI03 9319 8995 3742 51"),
|
|
1962
|
+
[CountryCodes.Germany]: ibanMetadata(CountryCodes.Germany, 20, "DE91 1000 0000 0123 4567 89"),
|
|
1963
|
+
[CountryCodes.Greece]: ibanMetadata(CountryCodes.Greece, 25, "GR57 0107 7142 7681 6687 9575 217"),
|
|
1964
|
+
[CountryCodes.Hungary]: ibanMetadata(CountryCodes.Hungary, 26, "HU68 1070 0024 3428 4128 3192 4812"),
|
|
1965
|
+
[CountryCodes.Lithuania]: ibanMetadata(CountryCodes.Lithuania, 18, "LT59 9244 6228 2176 2762"),
|
|
1966
|
+
[CountryCodes.Luxembourg]: ibanMetadata(CountryCodes.Luxembourg, 18, "LU71 0106 9242 5365 8562"),
|
|
1967
|
+
[CountryCodes.Norway]: ibanMetadata(CountryCodes.Norway, 13, "NO83 3000 1234 567"),
|
|
1968
|
+
[CountryCodes.Poland]: ibanMetadata(CountryCodes.Poland, 26, "PL98 1090 2402 7474 4662 2173 1624"),
|
|
1969
|
+
[CountryCodes.Portugal]: ibanMetadata(CountryCodes.Portugal, 23, "PT42 0035 0651 8646 9119 5263 5"),
|
|
1970
|
+
[CountryCodes.Slovakia]: ibanMetadata(CountryCodes.Slovakia, 22, "SK25 5173 1333 4916 3219 3521"),
|
|
1971
|
+
[CountryCodes.Slovenia]: ibanMetadata(CountryCodes.Slovenia, 17, "SI56 1920 0123 4567 892"),
|
|
1972
|
+
[CountryCodes.Spain]: ibanMetadata(CountryCodes.Spain, 22, "ES76 1465 5599 9226 7623 2635"),
|
|
1973
|
+
[CountryCodes.Sweden]: ibanMetadata(CountryCodes.Sweden, 22, "SE72 8000 0810 3400 0978 3242"),
|
|
1974
|
+
[CountryCodes.Bulgaria]: ibanMetadata(CountryCodes.Bulgaria, 20, "BG17 BNPA 9440 4432 7749 93", true),
|
|
1975
|
+
[CountryCodes.France]: ibanMetadata(CountryCodes.France, 25, "FR64 1009 6000 4035 3425 9742 Y90", true),
|
|
1976
|
+
[CountryCodes.Gibraltar]: ibanMetadata(CountryCodes.Gibraltar, 21, "GI96 JYJT 9899 9587 8655 898", true),
|
|
1977
|
+
[CountryCodes.Ireland]: ibanMetadata(CountryCodes.Ireland, 20, "IE64 IRCE 9205 0112 3456 78", true),
|
|
1978
|
+
[CountryCodes.Italy]: ibanMetadata(CountryCodes.Italy, 25, "IT06 L030 0203 2809 8485 8934 882", true),
|
|
1979
|
+
[CountryCodes.Latvia]: ibanMetadata(CountryCodes.Latvia, 19, "LV80 BANK 0000 4351 9500 1", true),
|
|
1980
|
+
[CountryCodes.Liechtenstein]: ibanMetadata(CountryCodes.Liechtenstein, 19, "LI21 0881 0000 2324 013A A", true),
|
|
1981
|
+
[CountryCodes.Malta]: ibanMetadata(CountryCodes.Malta, 29, "MT03 VIXW 2487 8926 8575 8586 8929 858", true),
|
|
1982
|
+
[CountryCodes.Monaco]: ibanMetadata(CountryCodes.Monaco, 25, "MC58 1122 2000 0101 2345 6789 030", true),
|
|
1983
|
+
[CountryCodes.Netherlands]: ibanMetadata(CountryCodes.Netherlands, 16, "NL50 ABNA 4452 7591 49", true),
|
|
1984
|
+
[CountryCodes.Romania]: ibanMetadata(CountryCodes.Romania, 22, "RO36 PORL 9596 9966 4965 4284", true),
|
|
1985
|
+
[CountryCodes.Switzerland]: ibanMetadata(CountryCodes.Switzerland, 19, "CH56 0483 5012 3456 7800 9", true),
|
|
1986
|
+
[CountryCodes.UnitedKingdom]: gbIbanMetadata,
|
|
1987
|
+
[CountryCodes.Guernsey]: gbIbanMetadata,
|
|
1988
|
+
[CountryCodes.Jersey]: gbIbanMetadata,
|
|
1989
|
+
[CountryCodes.IsleOfMan]: gbIbanMetadata
|
|
1990
|
+
};
|
|
1991
|
+
//#endregion
|
|
1992
|
+
//#region src/components/BankAccount/fields/Iban/Iban.tsx
|
|
1993
|
+
var ibanFields = ["iban"];
|
|
1994
|
+
function Iban(props) {
|
|
1995
|
+
const { t } = useTranslation("common");
|
|
1996
|
+
const { country, fieldConfig = defaultFieldConfig, data: ibanData, valid: propsValid, errors: propsErrors, obscuredFields, fieldValidationErrors, handleFieldChange } = props;
|
|
1997
|
+
const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata);
|
|
1998
|
+
const mergedProps = mergeFieldMetadataIntoProps("iban", metadata, props);
|
|
1999
|
+
const localForm = useForm({
|
|
2000
|
+
...mergedProps,
|
|
2001
|
+
schema: ibanFields,
|
|
2002
|
+
rules: mergedProps.validators,
|
|
2003
|
+
defaultData: ibanData,
|
|
2004
|
+
fieldProblems: fieldValidationErrors,
|
|
2005
|
+
obscuredFields
|
|
2006
|
+
});
|
|
2007
|
+
const useMultiFormMode = !!handleFieldChange;
|
|
2008
|
+
const data = useMultiFormMode ? ibanData : localForm.data;
|
|
2009
|
+
const valid = useMultiFormMode ? propsValid : localForm.valid;
|
|
2010
|
+
const errors = useMultiFormMode ? propsErrors : localForm.errors;
|
|
2011
|
+
const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
|
|
2012
|
+
const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
|
|
2013
|
+
const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
|
|
2014
|
+
useEffect$1(() => {
|
|
2015
|
+
if (!useMultiFormMode) updateStateSlice({
|
|
2016
|
+
data,
|
|
2017
|
+
valid,
|
|
2018
|
+
errors,
|
|
2019
|
+
fieldProblems
|
|
2020
|
+
});
|
|
2021
|
+
}, [
|
|
2022
|
+
data,
|
|
2023
|
+
errors,
|
|
2024
|
+
valid,
|
|
2025
|
+
fieldProblems,
|
|
2026
|
+
useMultiFormMode
|
|
2027
|
+
]);
|
|
2028
|
+
const formUtils = createFormUtils(mergedProps, t);
|
|
2029
|
+
return /* @__PURE__ */ jsx(MaskedInput, {
|
|
2030
|
+
name: "iban",
|
|
2031
|
+
type: "text",
|
|
2032
|
+
label: t(($) => $["iban"]),
|
|
2033
|
+
formatGuidance: translateTranslatable(t, metadata.guidanceText),
|
|
2034
|
+
...formUtils.getMask("iban"),
|
|
2035
|
+
errorMessage: formUtils.getErrorMessage("iban", errors, fieldProblems),
|
|
2036
|
+
isValid: valid?.iban ?? true,
|
|
2037
|
+
value: data?.iban ?? "",
|
|
2038
|
+
readonly: formUtils.isReadOnly("iban"),
|
|
2039
|
+
onInput: handleChange("iban", "input"),
|
|
2040
|
+
onBlur: handleChange("iban", "blur"),
|
|
2041
|
+
"aria-required": true,
|
|
2042
|
+
"aria-invalid": valid?.iban === false,
|
|
2043
|
+
acceptObscuredValue: formUtils.isObscured("iban")
|
|
2044
|
+
});
|
|
2045
|
+
}
|
|
2046
|
+
//#endregion
|
|
2047
|
+
//#region src/components/BankAccount/fields/SwiftCode/fieldConfig.ts
|
|
2048
|
+
var swiftCodeFieldMetadata = {
|
|
2049
|
+
validators: validatePatternOnBlur(/^([a-zA-Z0-9]{8}|[a-zA-Z0-9]{11})$/),
|
|
2050
|
+
mask: {
|
|
2051
|
+
mask: makeMask(...alphaInputs(6), ...alphanumericInputs(2), ...alphanumericInputs(3, true)),
|
|
2052
|
+
transformOnType: uppercase
|
|
2053
|
+
}
|
|
2054
|
+
};
|
|
2055
|
+
//#endregion
|
|
2056
|
+
//#region src/components/BankAccount/fields/SwiftCode/SwiftCode.tsx
|
|
2057
|
+
var swiftCodeFields = ["swiftCode"];
|
|
2058
|
+
function SwiftCode(props) {
|
|
2059
|
+
const { t } = useTranslation("common");
|
|
2060
|
+
const { handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
|
|
2061
|
+
const mergedProps = mergeFieldMetadataIntoProps("swiftCode", swiftCodeFieldMetadata, props);
|
|
2062
|
+
const localForm = useForm({
|
|
2063
|
+
...mergedProps,
|
|
2064
|
+
schema: swiftCodeFields,
|
|
2065
|
+
rules: mergedProps.validators,
|
|
2066
|
+
defaultData: mergedProps.data,
|
|
2067
|
+
fieldProblems: mergedProps?.fieldValidationErrors
|
|
2068
|
+
});
|
|
2069
|
+
const useMultiFormMode = !!handleFieldChange;
|
|
2070
|
+
const data = useMultiFormMode ? propsData : localForm.data;
|
|
2071
|
+
const valid = useMultiFormMode ? propsValid : localForm.valid;
|
|
2072
|
+
const errors = useMultiFormMode ? propsErrors : localForm.errors;
|
|
2073
|
+
const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
|
|
2074
|
+
const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
|
|
2075
|
+
const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
|
|
2076
|
+
useEffect$1(() => {
|
|
2077
|
+
if (!useMultiFormMode) updateStateSlice({
|
|
2078
|
+
data,
|
|
2079
|
+
valid,
|
|
2080
|
+
errors,
|
|
2081
|
+
fieldProblems
|
|
2082
|
+
});
|
|
2083
|
+
}, [
|
|
2084
|
+
data,
|
|
2085
|
+
valid,
|
|
2086
|
+
errors,
|
|
2087
|
+
fieldProblems,
|
|
2088
|
+
useMultiFormMode
|
|
2089
|
+
]);
|
|
2090
|
+
const formUtils = createFormUtils(mergedProps, t);
|
|
2091
|
+
return /* @__PURE__ */ jsx(MaskedInput, {
|
|
2092
|
+
name: "swiftCode",
|
|
2093
|
+
type: "text",
|
|
2094
|
+
label: t(($) => $["bicSwift"]),
|
|
2095
|
+
formatGuidance: t(($) => $["enterXOrYCharactersForExample"], {
|
|
2096
|
+
xChars: "8",
|
|
2097
|
+
yChars: "11",
|
|
2098
|
+
example: "BANKDE65287"
|
|
2099
|
+
}),
|
|
2100
|
+
...formUtils.getMask("swiftCode"),
|
|
2101
|
+
errorMessage: formUtils.getErrorMessage("swiftCode", errors, fieldProblems),
|
|
2102
|
+
isValid: valid?.swiftCode ?? true,
|
|
2103
|
+
value: data?.swiftCode ?? "",
|
|
2104
|
+
readonly: formUtils.isReadOnly("swiftCode"),
|
|
2105
|
+
onInput: handleChange("swiftCode", "input"),
|
|
2106
|
+
onBlur: handleChange("swiftCode", "blur"),
|
|
2107
|
+
"aria-required": true,
|
|
2108
|
+
"aria-invalid": valid?.swiftCode === false
|
|
2109
|
+
});
|
|
2110
|
+
}
|
|
2111
|
+
//#endregion
|
|
2112
|
+
//#region src/components/BankAccount/utils/payoutAccountUtil.ts
|
|
2113
|
+
var countriesWithMultiplePayoutCurrencies = new Set([
|
|
2114
|
+
CountryCodes.Bulgaria,
|
|
2115
|
+
CountryCodes.Canada,
|
|
2116
|
+
CountryCodes.Croatia,
|
|
2117
|
+
CountryCodes.CzechRepublic,
|
|
2118
|
+
CountryCodes.Hungary,
|
|
2119
|
+
CountryCodes.Romania,
|
|
2120
|
+
CountryCodes.Switzerland
|
|
2121
|
+
]);
|
|
2122
|
+
var countriesWithLocalFormat = new Set([
|
|
2123
|
+
CountryCodes.CzechRepublic,
|
|
2124
|
+
CountryCodes.Denmark,
|
|
2125
|
+
CountryCodes.Hungary,
|
|
2126
|
+
CountryCodes.Norway,
|
|
2127
|
+
CountryCodes.Poland,
|
|
2128
|
+
CountryCodes.Sweden,
|
|
2129
|
+
CountryCodes.UnitedKingdom
|
|
2130
|
+
]);
|
|
2131
|
+
var payoutCurrencySupport = {
|
|
2132
|
+
[CountryCodes.Sweden]: {
|
|
2133
|
+
local: [Currencies.SEK],
|
|
2134
|
+
iban: [Currencies.EUR, Currencies.SEK]
|
|
2135
|
+
},
|
|
2136
|
+
[CountryCodes.Canada]: {
|
|
2137
|
+
local: [Currencies.CAD, Currencies.USD],
|
|
2138
|
+
iban: [Currencies.CAD, Currencies.USD]
|
|
2139
|
+
}
|
|
2140
|
+
};
|
|
2141
|
+
var shouldShowCheckGuidance = (country) => country === "US";
|
|
2142
|
+
var shouldShowPayoutAccountFormatSelector = (country) => countriesWithLocalFormat.has(country);
|
|
2143
|
+
var shouldShowPayoutAlert = (country) => shouldShowPayoutAccountFormatSelector(country) || countriesWithMultiplePayoutCurrencies.has(country);
|
|
2144
|
+
var getSupportedCurrencyGuidance = (t, country, requiredFields) => {
|
|
2145
|
+
const format = requiredFields.includes("iban") ? "iban" : "local";
|
|
2146
|
+
if (!shouldShowPayoutAlert(country)) return;
|
|
2147
|
+
const supportedCurrencies = getSupportedCurrenciesPerFormat(country, format);
|
|
2148
|
+
if (!supportedCurrencies) return;
|
|
2149
|
+
return supportedCurrencies.length > 1 ? t(($) => $["payoutIn_Or_"], {
|
|
2150
|
+
currencyOne: supportedCurrencies[0],
|
|
2151
|
+
currencyTwo: supportedCurrencies[1]
|
|
2152
|
+
}) : t(($) => $["payoutInOnly_"], { currency: supportedCurrencies[0] });
|
|
2153
|
+
};
|
|
2154
|
+
var getSupportedCurrenciesPerFormat = (country, format) => {
|
|
2155
|
+
const supportedCurrencies = payoutCurrencySupport[country];
|
|
2156
|
+
if (!supportedCurrencies) {
|
|
2157
|
+
const defaultCurrency = currencyByCountry[country]?.[0];
|
|
2158
|
+
if (!defaultCurrency) return;
|
|
2159
|
+
if (format === "iban" && defaultCurrency !== Currencies.EUR) return [Currencies.EUR, defaultCurrency];
|
|
2160
|
+
else return [defaultCurrency];
|
|
2161
|
+
}
|
|
2162
|
+
return supportedCurrencies[format];
|
|
2163
|
+
};
|
|
2164
|
+
var isLocalCurrency = (country, currency) => {
|
|
2165
|
+
if (!country || !currency) return false;
|
|
2166
|
+
return currencyByCountry[country]?.includes(currency) ?? false;
|
|
2167
|
+
};
|
|
2168
|
+
//#endregion
|
|
2169
|
+
//#region src/components/BankAccount/forms/PayoutVerificationMethod/AccountHolderDescriptionFragment.tsx
|
|
2170
|
+
var AccountHolderDescriptionFragment = ({ legalEntityResponse }) => {
|
|
2171
|
+
const { t } = useTranslation("banking");
|
|
2172
|
+
const hasSolePropEntityAssociations = hasOwnEntityAssociationOfType(LegalEntityTypes.SOLE_PROPRIETORSHIP, legalEntityResponse.entityAssociations, legalEntityResponse.id);
|
|
2173
|
+
const { accountHolder } = useAccountHolder();
|
|
2174
|
+
const unincorporatedPartnershipMembers = useUnincorporatedPartnershipMembers();
|
|
2175
|
+
if (accountHolder === "mySoleProprietorName" || hasSolePropEntityAssociations) {
|
|
2176
|
+
const soleProp = legalEntityResponse.entityAssociations?.find((ea) => ea.entityType === "soleProprietorship");
|
|
2177
|
+
const { individual } = legalEntityResponse;
|
|
2178
|
+
return /* @__PURE__ */ jsxs(Typography, { children: [
|
|
2179
|
+
`${t(($) => $["bankAccountHasToBeInYourName"])} `,
|
|
2180
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
2181
|
+
el: "span",
|
|
2182
|
+
variant: "body-stronger",
|
|
2183
|
+
children: `${individual?.name.firstName} ${individual?.name.lastName}`
|
|
2184
|
+
}),
|
|
2185
|
+
` ${t(($) => $["orSoleProprietorshipName"])} `,
|
|
2186
|
+
" ",
|
|
2187
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
2188
|
+
el: "span",
|
|
2189
|
+
variant: "body-stronger",
|
|
2190
|
+
children: `${soleProp?.name ?? ""}`
|
|
2191
|
+
})
|
|
2192
|
+
] });
|
|
2193
|
+
}
|
|
2194
|
+
const hasTrustsEntityAssociations = hasOwnEntityAssociationOfType(LegalEntityTypes.TRUST, legalEntityResponse.entityAssociations, legalEntityResponse.id);
|
|
2195
|
+
if (accountHolder === "aTrust" || hasTrustsEntityAssociations) {
|
|
2196
|
+
const trust = legalEntityResponse.entityAssociations?.find((ea) => ea.entityType === "trust");
|
|
2197
|
+
if (legalEntityResponse.type === LegalEntityTypes.INDIVIDUAL) return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountToHaveSameNameAsTrust"])} `, /* @__PURE__ */ jsx(Typography, {
|
|
2198
|
+
el: "span",
|
|
2199
|
+
variant: "body-stronger",
|
|
2200
|
+
children: t(($) => $["trusteeAsTrusteeForTrust"], {
|
|
2201
|
+
trusteeName: `${legalEntityResponse?.individual?.name.firstName} ${legalEntityResponse?.individual?.name.lastName}`,
|
|
2202
|
+
trustName: trust?.name ?? ""
|
|
2203
|
+
})
|
|
2204
|
+
})] });
|
|
2205
|
+
const companyTrusteeBankAccountName = legalEntityResponse?.organization?.legalName !== legalEntityResponse?.organization?.doingBusinessAs ? t(($) => $["trusteeAsTrusteeForTrustDoingBusinessAs"], {
|
|
2206
|
+
trusteeName: legalEntityResponse?.organization?.legalName ?? "",
|
|
2207
|
+
trustName: trust?.name ?? "",
|
|
2208
|
+
tradingName: legalEntityResponse?.organization?.doingBusinessAs
|
|
2209
|
+
}) : t(($) => $["trusteeAsTrusteeForTrust"], {
|
|
2210
|
+
trusteeName: legalEntityResponse?.organization?.legalName ?? "",
|
|
2211
|
+
trustName: trust?.name ?? ""
|
|
2212
|
+
});
|
|
2213
|
+
return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountToHaveSameNameAsTrust"])} `, /* @__PURE__ */ jsx(Typography, {
|
|
2214
|
+
el: "span",
|
|
2215
|
+
variant: "body-stronger",
|
|
2216
|
+
children: companyTrusteeBankAccountName
|
|
2217
|
+
})] });
|
|
2218
|
+
}
|
|
2219
|
+
const hasUnincorporatedPartnershipEntityAssociations = hasOwnEntityAssociationOfType(LegalEntityTypes.UNINCORPORATED_PARTNERSHIP, legalEntityResponse.entityAssociations, legalEntityResponse.id);
|
|
2220
|
+
if (accountHolder === "anUnincorporatedPartnership" || hasUnincorporatedPartnershipEntityAssociations) {
|
|
2221
|
+
const unincorporatedPartnership = legalEntityResponse?.entityAssociations?.find((ea) => ea.entityType === "unincorporatedPartnership");
|
|
2222
|
+
const partnerNames = unincorporatedPartnershipMembers?.map((member) => member?.name)?.sort();
|
|
2223
|
+
return /* @__PURE__ */ jsx(Typography, { children: `${t(($) => $["bankAccountToHaveSameNameAsUnincorporatedPartnership"], {
|
|
2224
|
+
partnerNames: `${partnerNames?.join(", ")}`,
|
|
2225
|
+
partnershipName: unincorporatedPartnership?.name ?? ""
|
|
2226
|
+
})} ` });
|
|
2227
|
+
}
|
|
2228
|
+
if (legalEntityResponse.type === LegalEntityTypes.ORGANIZATION) return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountHasToBeInYourCompanyName"])} `, /* @__PURE__ */ jsx(Typography, {
|
|
2229
|
+
el: "span",
|
|
2230
|
+
variant: "body-stronger",
|
|
2231
|
+
children: legalEntityResponse?.organization?.legalName
|
|
2232
|
+
})] });
|
|
2233
|
+
const { individual } = legalEntityResponse;
|
|
2234
|
+
return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountHasToBeInYourName"])} `, /* @__PURE__ */ jsx(Typography, {
|
|
2235
|
+
el: "span",
|
|
2236
|
+
variant: "body-stronger",
|
|
2237
|
+
children: `${individual?.name.firstName} ${individual?.name.lastName}`
|
|
2238
|
+
})] });
|
|
2239
|
+
};
|
|
2240
|
+
var CheckGuidance_module_default = {
|
|
2241
|
+
"check-guidance": "adyen-kyc-check-guidance",
|
|
2242
|
+
checkGuidance: "adyen-kyc-check-guidance",
|
|
2243
|
+
"check-guidance-image": "adyen-kyc-check-guidance-image",
|
|
2244
|
+
checkGuidanceImage: "adyen-kyc-check-guidance-image",
|
|
2245
|
+
"check-guidance-annotated": "adyen-kyc-check-guidance-annotated",
|
|
2246
|
+
checkGuidanceAnnotated: "adyen-kyc-check-guidance-annotated",
|
|
2247
|
+
"check-guidance-inactive": "adyen-kyc-check-guidance-inactive",
|
|
2248
|
+
checkGuidanceInactive: "adyen-kyc-check-guidance-inactive",
|
|
2249
|
+
"us-check-account-number": "adyen-kyc-us-check-account-number",
|
|
2250
|
+
usCheckAccountNumber: "adyen-kyc-us-check-account-number",
|
|
2251
|
+
"us-check-routing-number": "adyen-kyc-us-check-routing-number",
|
|
2252
|
+
usCheckRoutingNumber: "adyen-kyc-us-check-routing-number"
|
|
2253
|
+
};
|
|
2254
|
+
//#endregion
|
|
2255
|
+
//#region src/components/BankAccount/forms/PayoutAccount/CheckGuidance/CheckGuidance.tsx
|
|
2256
|
+
var usCheckAccount = lazy(() => import("./us-check-account-number-EkWzylgz.js"));
|
|
2257
|
+
var usCheckRouting = lazy(() => import("./us-check-routing-number-ObI-JE-C.js"));
|
|
2258
|
+
var usCheck = lazy(() => import("./us-check-b9k7TlOd.js"));
|
|
2259
|
+
var CheckGuidance = ({ annotated }) => {
|
|
2260
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
2261
|
+
className: CheckGuidance_module_default.checkGuidance,
|
|
2262
|
+
children: [
|
|
2263
|
+
/* @__PURE__ */ jsx(Image, {
|
|
2264
|
+
lazyLoadedImage: usCheckAccount,
|
|
2265
|
+
className: cx(CheckGuidance_module_default.checkGuidanceImage, CheckGuidance_module_default.checkGuidanceAnnotated, { [CheckGuidance_module_default.checkGuidanceInactive]: annotated !== "account" })
|
|
2266
|
+
}),
|
|
2267
|
+
/* @__PURE__ */ jsx(Image, {
|
|
2268
|
+
lazyLoadedImage: usCheckRouting,
|
|
2269
|
+
className: cx(CheckGuidance_module_default.checkGuidanceImage, CheckGuidance_module_default.checkGuidanceAnnotated, { [CheckGuidance_module_default.checkGuidanceInactive]: annotated !== "routing" })
|
|
2270
|
+
}),
|
|
2271
|
+
/* @__PURE__ */ jsx(Image, {
|
|
2272
|
+
lazyLoadedImage: usCheck,
|
|
2273
|
+
className: CheckGuidance_module_default.checkGuidanceImage
|
|
2274
|
+
})
|
|
2275
|
+
]
|
|
2276
|
+
});
|
|
2277
|
+
};
|
|
2278
|
+
//#endregion
|
|
2279
|
+
//#region src/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.ts
|
|
2280
|
+
var tinkLogo = lazy(() => import("./tink-logo-DQabT2Uk.js"));
|
|
2281
|
+
var plaidLogo = lazy(() => import("./plaid-logo-JKKXRmk4.js"));
|
|
2282
|
+
var yapilyLogo = lazy(() => import("./yapily-logo-BeowYojR.js"));
|
|
2283
|
+
var instantVerificationImage = lazy(() => import("./payout-verification-instant-BLpp07Uv.js"));
|
|
2284
|
+
var manualVerificationImage = lazy(() => import("./payout-verification-manual-BgjvhzA9.js"));
|
|
2285
|
+
var getProviderIconName = (providerName) => {
|
|
2286
|
+
switch (providerName?.toLowerCase()) {
|
|
2287
|
+
case "tink": return tinkLogo;
|
|
2288
|
+
case "plaid": return plaidLogo;
|
|
2289
|
+
case "yapily": return yapilyLogo;
|
|
2290
|
+
default: return;
|
|
2291
|
+
}
|
|
2292
|
+
};
|
|
2293
|
+
var makePayoutVerificationMethodsMetadata = (instantVerificationProviderName) => ({
|
|
2294
|
+
instantVerification: {
|
|
2295
|
+
name: "verifyViaMobileBankingAppOrWebsite",
|
|
2296
|
+
subtitle: "instant",
|
|
2297
|
+
svgImport: instantVerificationImage,
|
|
2298
|
+
description: "instantVerificationDescription",
|
|
2299
|
+
provider: instantVerificationProviderName ? {
|
|
2300
|
+
name: instantVerificationProviderName,
|
|
2301
|
+
svgImport: getProviderIconName(instantVerificationProviderName)
|
|
2302
|
+
} : void 0
|
|
2303
|
+
},
|
|
2304
|
+
manualVerification: {
|
|
2305
|
+
name: "uploadABankStatement",
|
|
2306
|
+
subtitle: "mayTakeAFewDays",
|
|
2307
|
+
description: "manualVerificationDescription",
|
|
2308
|
+
svgImport: manualVerificationImage
|
|
2309
|
+
}
|
|
2310
|
+
});
|
|
2311
|
+
var InstantVerificationCTA_module_default = {
|
|
2312
|
+
"cta-button-content": "adyen-kyc-cta-button-content",
|
|
2313
|
+
ctaButtonContent: "adyen-kyc-cta-button-content",
|
|
2314
|
+
"cta-provider-logo": "adyen-kyc-cta-provider-logo",
|
|
2315
|
+
ctaProviderLogo: "adyen-kyc-cta-provider-logo",
|
|
2316
|
+
"cta-divider": "adyen-kyc-cta-divider",
|
|
2317
|
+
ctaDivider: "adyen-kyc-cta-divider",
|
|
2318
|
+
"divider-segment": "adyen-kyc-divider-segment",
|
|
2319
|
+
dividerSegment: "adyen-kyc-divider-segment",
|
|
2320
|
+
"instant-verification-error": "adyen-kyc-instant-verification-error",
|
|
2321
|
+
instantVerificationError: "adyen-kyc-instant-verification-error"
|
|
2322
|
+
};
|
|
2323
|
+
//#endregion
|
|
2324
|
+
//#region src/components/BankAccount/forms/PayoutAccount/InstantVerificationCTA/InstantVerificationCTA.tsx
|
|
2325
|
+
var InstantVerificationCTA = ({ provider }) => {
|
|
2326
|
+
const instantVerificationError = useContext$1(InstantVerificationErrorContext);
|
|
2327
|
+
const { t } = useTranslation("banking");
|
|
2328
|
+
const { t: commonT } = useTranslation("common");
|
|
2329
|
+
const providerIcon = getProviderIconName(provider?.name);
|
|
2330
|
+
const handleClick = () => {
|
|
2331
|
+
isUsingManualFlow.value = false;
|
|
2332
|
+
showInstantVerificationPayoutModal.value = true;
|
|
2333
|
+
};
|
|
2334
|
+
if (!providerIcon) return null;
|
|
2335
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2336
|
+
instantVerificationError && /* @__PURE__ */ jsx(Alert, {
|
|
2337
|
+
variant: "error",
|
|
2338
|
+
className: InstantVerificationCTA_module_default.instantVerificationError,
|
|
2339
|
+
title: instantVerificationError.title,
|
|
2340
|
+
children: instantVerificationError.content && /* @__PURE__ */ jsx(Typography, {
|
|
2341
|
+
variant: "body",
|
|
2342
|
+
children: instantVerificationError.content
|
|
2343
|
+
})
|
|
2344
|
+
}),
|
|
2345
|
+
/* @__PURE__ */ jsx("div", {
|
|
2346
|
+
className: "adyen-kyc-u-margin-bottom-24",
|
|
2347
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
2348
|
+
variant: "primary",
|
|
2349
|
+
fullWidth: true,
|
|
2350
|
+
onClick: handleClick,
|
|
2351
|
+
testId: "instant-verification-button",
|
|
2352
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
2353
|
+
className: InstantVerificationCTA_module_default.ctaButtonContent,
|
|
2354
|
+
children: /* @__PURE__ */ jsx(Trans, {
|
|
2355
|
+
t,
|
|
2356
|
+
i18nKey: ($) => $["addAccountFasterWith"],
|
|
2357
|
+
components: { providerLogo: /* @__PURE__ */ jsx("span", {
|
|
2358
|
+
className: InstantVerificationCTA_module_default.ctaProviderLogo,
|
|
2359
|
+
children: /* @__PURE__ */ jsx(Image, { lazyLoadedImage: providerIcon })
|
|
2360
|
+
}) }
|
|
2361
|
+
})
|
|
2362
|
+
})
|
|
2363
|
+
})
|
|
2364
|
+
}),
|
|
2365
|
+
/* @__PURE__ */ jsxs("div", {
|
|
2366
|
+
className: `adyen-kyc-u-margin-bottom-16 ${InstantVerificationCTA_module_default.ctaDivider}`,
|
|
2367
|
+
children: [
|
|
2368
|
+
/* @__PURE__ */ jsx("div", {
|
|
2369
|
+
className: InstantVerificationCTA_module_default.dividerSegment,
|
|
2370
|
+
children: /* @__PURE__ */ jsx(Divider, {})
|
|
2371
|
+
}),
|
|
2372
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
2373
|
+
variant: "body",
|
|
2374
|
+
color: "secondary",
|
|
2375
|
+
children: commonT(($) => $["or"])
|
|
2376
|
+
}),
|
|
2377
|
+
/* @__PURE__ */ jsx("div", {
|
|
2378
|
+
className: InstantVerificationCTA_module_default.dividerSegment,
|
|
2379
|
+
children: /* @__PURE__ */ jsx(Divider, {})
|
|
2380
|
+
})
|
|
2381
|
+
]
|
|
2382
|
+
})
|
|
2383
|
+
] });
|
|
2384
|
+
};
|
|
2385
|
+
//#endregion
|
|
2386
|
+
//#region src/components/BankAccount/forms/PayoutAccount/PayoutAccount.tsx
|
|
2387
|
+
var payoutAccountFields = [
|
|
2388
|
+
"accountHolder",
|
|
2389
|
+
...ibanFields,
|
|
2390
|
+
...branchCodeFields,
|
|
2391
|
+
...swiftCodeFields,
|
|
2392
|
+
...bankAccountNumberFields,
|
|
2393
|
+
...bankNameFields,
|
|
2394
|
+
...bankCodeFields
|
|
2395
|
+
];
|
|
2396
|
+
function PayoutAccount(props) {
|
|
2397
|
+
const accountFormat = payoutAccountFormat.value;
|
|
2398
|
+
const { t } = useTranslation("banking");
|
|
2399
|
+
const { t: commonT } = useTranslation("common");
|
|
2400
|
+
const [checkAnnotation, setCheckAnnotation] = useState$1();
|
|
2401
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
2402
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
2403
|
+
const isCrossBorderPayoutsEnabled = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
|
|
2404
|
+
const bankAccountFormatSelectionAllowed = isSettingEnabled(SettingNames.AllowBankAccountFormatSelection);
|
|
2405
|
+
const { heading, country, id, legalEntityResponse, requiredFields = [], arePayoutAccountDetailsInvalid, invalidFieldNames, formVerificationErrors, fieldValidationErrors, preferredCurrencyCode, data, errors, valid, handleFieldChange, showInstantVerificationCTA, provider } = props;
|
|
2406
|
+
const showCheckGuidance = shouldShowCheckGuidance(country) && !showInstantVerificationCTA;
|
|
2407
|
+
const formUtils = createFormUtils({
|
|
2408
|
+
...props,
|
|
2409
|
+
requiredFields
|
|
2410
|
+
}, commonT);
|
|
2411
|
+
const bankAccountNumberProps = getFieldProps(props, bankAccountNumberFields);
|
|
2412
|
+
const swiftCodeProps = getFieldProps(props, swiftCodeFields);
|
|
2413
|
+
const ibanProps = getFieldProps(props, ibanFields);
|
|
2414
|
+
const branchCodeProps = getFieldProps(props, branchCodeFields);
|
|
2415
|
+
const bankNameProps = getFieldProps(props, bankNameFields);
|
|
2416
|
+
const bankCodeProps = getFieldProps(props, bankCodeFields);
|
|
2417
|
+
const bankCityProps = getFieldProps(props, bankCityFields);
|
|
2418
|
+
const { clearStateSlice } = useGlobalDataSlice("payoutAccountDetails");
|
|
2419
|
+
const handleAccountFormatChange = (accountFormat) => {
|
|
2420
|
+
clearStateSlice();
|
|
2421
|
+
payoutAccountFormat.value = accountFormat;
|
|
2422
|
+
};
|
|
2423
|
+
const localCurrency = isCrossBorderPayoutsEnabled ? isLocalCurrency(country, preferredCurrencyCode) : true;
|
|
2424
|
+
const isEUR = preferredCurrencyCode === "EUR";
|
|
2425
|
+
useEffect$1(() => {
|
|
2426
|
+
if (!isCrossBorderPayoutsEnabled || data?.transferInstrumentId) return;
|
|
2427
|
+
if (isEUR && localCurrency) {
|
|
2428
|
+
handleAccountFormatChange?.("iban");
|
|
2429
|
+
return;
|
|
2430
|
+
}
|
|
2431
|
+
if (!localCurrency) handleAccountFormatChange?.("numberAndBic");
|
|
2432
|
+
}, [country, preferredCurrencyCode]);
|
|
2433
|
+
const multiFormProps = handleFieldChange ? {
|
|
2434
|
+
data,
|
|
2435
|
+
valid,
|
|
2436
|
+
errors,
|
|
2437
|
+
fieldValidationErrors,
|
|
2438
|
+
handleFieldChange
|
|
2439
|
+
} : {};
|
|
2440
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
2441
|
+
className: "adyen-kyc-individual__payout-account",
|
|
2442
|
+
"aria-describedby": "ariaErrorField",
|
|
2443
|
+
children: [
|
|
2444
|
+
heading && /* @__PURE__ */ jsx(Header, {
|
|
2445
|
+
title: heading,
|
|
2446
|
+
children: /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, {
|
|
2447
|
+
slot: "description",
|
|
2448
|
+
legalEntityResponse
|
|
2449
|
+
})
|
|
2450
|
+
}),
|
|
2451
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
2452
|
+
verificationErrors: formVerificationErrors,
|
|
2453
|
+
validationErrors: fieldValidationErrors,
|
|
2454
|
+
formUtils,
|
|
2455
|
+
id: "ariaErrorField"
|
|
2456
|
+
}),
|
|
2457
|
+
showInstantVerificationCTA && /* @__PURE__ */ jsx(InstantVerificationCTA, { provider }),
|
|
2458
|
+
showCheckGuidance ? /* @__PURE__ */ jsx(CheckGuidance, { annotated: checkAnnotation }) : void 0,
|
|
2459
|
+
bankAccountFormatSelectionAllowed && shouldShowPayoutAccountFormatSelector(country) && accountFormat && localCurrency && !isEUR && /* @__PURE__ */ jsx(BankAccountFormat, {
|
|
2460
|
+
bankAccountFormat: accountFormat,
|
|
2461
|
+
handleAccountFormatChange
|
|
2462
|
+
}),
|
|
2463
|
+
formUtils.isRequiredField("branchCode") && /* @__PURE__ */ jsx(BranchCode, {
|
|
2464
|
+
...branchCodeProps,
|
|
2465
|
+
country,
|
|
2466
|
+
dataStoreId: id,
|
|
2467
|
+
onFocus: showCheckGuidance ? () => setCheckAnnotation("routing") : void 0,
|
|
2468
|
+
onBlur: showCheckGuidance ? () => setCheckAnnotation(void 0) : void 0,
|
|
2469
|
+
...multiFormProps
|
|
2470
|
+
}),
|
|
2471
|
+
formUtils.isRequiredField("bankAccountNumber") && /* @__PURE__ */ jsx(BankAccountNumber, {
|
|
2472
|
+
...bankAccountNumberProps,
|
|
2473
|
+
country,
|
|
2474
|
+
dataStoreId: id,
|
|
2475
|
+
onFocus: showCheckGuidance ? () => setCheckAnnotation("account") : void 0,
|
|
2476
|
+
onBlur: showCheckGuidance ? () => setCheckAnnotation(void 0) : void 0,
|
|
2477
|
+
...multiFormProps
|
|
2478
|
+
}),
|
|
2479
|
+
formUtils.isRequiredField("iban") && /* @__PURE__ */ jsx(Iban, {
|
|
2480
|
+
...ibanProps,
|
|
2481
|
+
dataStoreId: id,
|
|
2482
|
+
country,
|
|
2483
|
+
...multiFormProps
|
|
2484
|
+
}),
|
|
2485
|
+
formUtils.isRequiredField("swiftCode") && /* @__PURE__ */ jsx(SwiftCode, {
|
|
2486
|
+
...swiftCodeProps,
|
|
2487
|
+
dataStoreId: id,
|
|
2488
|
+
...multiFormProps
|
|
2489
|
+
}),
|
|
2490
|
+
formUtils.isRequiredField("bankName") && /* @__PURE__ */ jsx(BankName, {
|
|
2491
|
+
...bankNameProps,
|
|
2492
|
+
dataStoreId: id,
|
|
2493
|
+
...multiFormProps
|
|
2494
|
+
}),
|
|
2495
|
+
formUtils.isRequiredField("bankCode") && /* @__PURE__ */ jsx(BankCode, {
|
|
2496
|
+
...bankCodeProps,
|
|
2497
|
+
country,
|
|
2498
|
+
dataStoreId: id,
|
|
2499
|
+
...multiFormProps
|
|
2500
|
+
}),
|
|
2501
|
+
formUtils.isRequiredField("bankCity") && /* @__PURE__ */ jsx(BankCity, {
|
|
2502
|
+
...bankCityProps,
|
|
2503
|
+
dataStoreId: id,
|
|
2504
|
+
...multiFormProps
|
|
2505
|
+
}),
|
|
2506
|
+
shouldShowPayoutAlert(country) && !isCrossBorderPayoutsEnabled && /* @__PURE__ */ jsx(Alert, {
|
|
2507
|
+
title: getSupportedCurrencyGuidance(t, country, requiredFields),
|
|
2508
|
+
className: "adyen-kyc-u-margin-bottom-8"
|
|
2509
|
+
}),
|
|
2510
|
+
!isCrossBorderPayoutsEnabled && /* @__PURE__ */ jsx(Typography, {
|
|
2511
|
+
variant: "caption",
|
|
2512
|
+
color: "tertiary",
|
|
2513
|
+
children: t(($) => $["thisAccountWillBeVerifiedToPrevent"])
|
|
2514
|
+
}),
|
|
2515
|
+
arePayoutAccountDetailsInvalid && /* @__PURE__ */ jsx(Alert, {
|
|
2516
|
+
className: "adyen-kyc-u-margin-top-16",
|
|
2517
|
+
variant: "error",
|
|
2518
|
+
title: invalidFieldNames ? t(($) => $["pleaseEnterValidField"], { fieldNames: invalidFieldNames }) : t(($) => $["pleaseEnterValidAccountDetails"])
|
|
2519
|
+
})
|
|
2520
|
+
]
|
|
2521
|
+
});
|
|
2522
|
+
}
|
|
2523
|
+
//#endregion
|
|
2524
|
+
//#region src/datasets/currencies.json
|
|
2525
|
+
var currencies_default = /* @__PURE__ */ JSON.parse("[{\"currencyCode\":\"AED\",\"description\":\"UAE Dirham\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"ALL\",\"description\":\"Albanian Lek\",\"exponent\":2,\"symbol\":\"L\"},{\"currencyCode\":\"AMD\",\"description\":\"Armenian Dram\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"ANG\",\"description\":\"Antillian Guilder\",\"exponent\":2,\"symbol\":\"Naƒ\"},{\"currencyCode\":\"AOA\",\"description\":\"Angolan kwanza\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"ARS\",\"description\":\"Nuevo Argentine Peso\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"AUD\",\"description\":\"Australian Dollar\",\"exponent\":2,\"symbol\":\"A$\"},{\"currencyCode\":\"AWG\",\"description\":\"Aruban Guilder\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"AZN\",\"description\":\"Azerbaijani manat\",\"exponent\":2,\"symbol\":\"man\"},{\"currencyCode\":\"BAM\",\"description\":\"Bosnia and Herzegovina Convertible Marks\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BBD\",\"description\":\"Barbados Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BDT\",\"description\":\"Bangladesh Taka\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BGL\",\"description\":\"Bulgaria Lev\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BHD\",\"description\":\"Bahraini Dinar\",\"exponent\":3,\"symbol\":\"\"},{\"currencyCode\":\"BMD\",\"description\":\"Bermudian Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BND\",\"description\":\"Brunei Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BOB\",\"description\":\"Bolivia Boliviano\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BRL\",\"description\":\"Brazilian Real\",\"exponent\":2,\"symbol\":\"R$\"},{\"currencyCode\":\"BSD\",\"description\":\"Bahamian Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BTN\",\"description\":\"Bhutan Ngultrum\",\"exponent\":2,\"symbol\":\"Nu.\"},{\"currencyCode\":\"BWP\",\"description\":\"Botswana Pula\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BYN\",\"description\":\"Belarusian Ruble\",\"exponent\":2,\"symbol\":\"Br\"},{\"currencyCode\":\"BYR\",\"description\":\"Belarusian Ruble\",\"exponent\":0,\"symbol\":\"Br\"},{\"currencyCode\":\"BZD\",\"description\":\"Belize Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"CAD\",\"description\":\"Canadian Dollar\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"CHF\",\"description\":\"Swiss Franc\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"CLP\",\"description\":\"Chilean Peso\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"CNY\",\"description\":\"Yuan Renminbi\",\"exponent\":2,\"symbol\":\"¥\"},{\"currencyCode\":\"COP\",\"description\":\"Colombian Peso\",\"exponent\":2,\"symbol\":\"₱\"},{\"currencyCode\":\"CRC\",\"description\":\"Costa Rican Colon\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"CSD\",\"description\":\"Serbian Dinar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"CUP\",\"description\":\"Cuban Peso\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"CVE\",\"description\":\"Cape Verdi Escudo\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"CZK\",\"description\":\"Czech Koruna\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"DJF\",\"description\":\"Djibouti Franc\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"DKK\",\"description\":\"Danish Krone\",\"exponent\":2,\"symbol\":\"kr\"},{\"currencyCode\":\"DOP\",\"description\":\"Dominican Republic Peso\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"DZD\",\"description\":\"Algerian Dinar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"EEK\",\"description\":\"Estonian Krone\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"EGP\",\"description\":\"Egyptian Pound\",\"exponent\":2,\"symbol\":\"£\"},{\"currencyCode\":\"ETB\",\"description\":\"Ethiopian Birr\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"EUR\",\"description\":\"Euro\",\"exponent\":2,\"symbol\":\"€\"},{\"currencyCode\":\"FJD\",\"description\":\"Fiji Dollar\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"FKP\",\"description\":\"Falkland Islands Pound\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"GBP\",\"description\":\"Pound Sterling\",\"exponent\":2,\"symbol\":\"£\"},{\"currencyCode\":\"GEL\",\"description\":\"Georgian Lari\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"GHC\",\"description\":\"Ghanaian Cedi (2nd)\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"GHS\",\"description\":\"Ghanaian Cedi (3rd)\",\"exponent\":2,\"symbol\":\"GH₵\"},{\"currencyCode\":\"GIP\",\"description\":\"Gibraltar Pound\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"GMD\",\"description\":\"Gambia Delasi\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"GNF\",\"description\":\"Guinea Franc\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"GTQ\",\"description\":\"Guatemala Quetzal\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"GYD\",\"description\":\"Guyanese Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"HKD\",\"description\":\"Hong Kong Dollar\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"HNL\",\"description\":\"Honduras Lempira\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"HRK\",\"description\":\"Croatia Kuna\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"HTG\",\"description\":\"Haitian Gourde\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"HUF\",\"description\":\"Hungarian Forint\",\"exponent\":2,\"symbol\":\"Ft\"},{\"currencyCode\":\"IDR\",\"description\":\"Indonesian Rupiah\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"ILS\",\"description\":\"New Israeli Scheqel\",\"exponent\":2,\"symbol\":\"₪\"},{\"currencyCode\":\"INR\",\"description\":\"Indian Rupee\",\"exponent\":2,\"symbol\":\"₨\"},{\"currencyCode\":\"IQD\",\"description\":\"Iraqi Dinar\",\"exponent\":3,\"symbol\":\"\"},{\"currencyCode\":\"ISK\",\"description\":\"Iceland Krona\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"JMD\",\"description\":\"Jamaican Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"JOD\",\"description\":\"Jordanian Dinar\",\"exponent\":3,\"symbol\":\"\"},{\"currencyCode\":\"JPY\",\"description\":\"Japanese Yen\",\"exponent\":0,\"symbol\":\"¥\"},{\"currencyCode\":\"KES\",\"description\":\"Kenyan Shilling\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"KGS\",\"description\":\"Kyrgyzstan Som\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"KHR\",\"description\":\"Cambodia Riel\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"KMF\",\"description\":\"Comoro Franc\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"KRW\",\"description\":\"South-Korean Won\",\"exponent\":0,\"symbol\":\"₩\"},{\"currencyCode\":\"KWD\",\"description\":\"Kuwaiti Dinar\",\"exponent\":3,\"symbol\":\"\"},{\"currencyCode\":\"KYD\",\"description\":\"Cayman Islands Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"KZT\",\"description\":\"Kazakhstani Tenge\",\"exponent\":2,\"symbol\":\"8\"},{\"currencyCode\":\"LAK\",\"description\":\"Laos Kip\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"LBP\",\"description\":\"Lebanese Pound\",\"exponent\":2,\"symbol\":\"£\"},{\"currencyCode\":\"LKR\",\"description\":\"Sri Lanka Rupee\",\"exponent\":2,\"symbol\":\"₨\"},{\"currencyCode\":\"LTL\",\"description\":\"Lithunianian Litas\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"LVL\",\"description\":\"Latvian Lats\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"LYD\",\"description\":\"Libyan Dinar\",\"exponent\":3,\"symbol\":\"\"},{\"currencyCode\":\"MAD\",\"description\":\"Moroccan Dirham\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MDL\",\"description\":\"Moldovia Leu\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MKD\",\"description\":\"Macedonian Denar\",\"exponent\":2,\"symbol\":\"ден\"},{\"currencyCode\":\"MMK\",\"description\":\"Myanmar Kyat\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MNT\",\"description\":\"Mongolia Tugrik\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MOP\",\"description\":\"Macau Pataca\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MRO\",\"description\":\"Mauritania Ouguiya\",\"exponent\":1,\"symbol\":\"\"},{\"currencyCode\":\"MRU\",\"description\":\"Mauritania Ouguiya\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MUR\",\"description\":\"Mauritius Rupee\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MVR\",\"description\":\"Maldives Rufiyaa\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MWK\",\"description\":\"Malawi Kwacha\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MXN\",\"description\":\"Mexican Peso\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"MXP\",\"description\":\"Mexican Peso\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MYR\",\"description\":\"Malaysian Ringgit\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MZN\",\"description\":\"Mozambican Metical\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"NAD\",\"description\":\"Namibian Dollar\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"NGN\",\"description\":\"Nigerian naira\",\"exponent\":2,\"symbol\":\"&\"},{\"currencyCode\":\"NIO\",\"description\":\"Nicaragua Cordoba Oro\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"NOK\",\"description\":\"Norwegian Krone\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"NPR\",\"description\":\"Nepalese Rupee\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"NZD\",\"description\":\"New Zealand Dollar\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"OMR\",\"description\":\"Rial Omani\",\"exponent\":3,\"symbol\":\"﷼\"},{\"currencyCode\":\"PAB\",\"description\":\"Panamanian Balboa\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"PEN\",\"description\":\"Peruvian Nuevo Sol\",\"exponent\":2,\"symbol\":\"S/.\"},{\"currencyCode\":\"PGK\",\"description\":\"New Guinea Kina\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"PHP\",\"description\":\"Philippine Peso\",\"exponent\":2,\"symbol\":\"₱\"},{\"currencyCode\":\"PKR\",\"description\":\"Pakistan Rupee\",\"exponent\":2,\"symbol\":\"₨\"},{\"currencyCode\":\"PLN\",\"description\":\"New Polish Zloty\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"PYG\",\"description\":\"Paraguay Guarani\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"QAR\",\"description\":\"Qatari Rial\",\"exponent\":2,\"symbol\":\"﷼\"},{\"currencyCode\":\"ROL\",\"description\":\"Romanian Lei\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"RON\",\"description\":\"New Romanian Lei\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"RSD\",\"description\":\"Serbian Dinar\",\"exponent\":2,\"symbol\":\"РСД\"},{\"currencyCode\":\"RUB\",\"description\":\"Russian Ruble\",\"exponent\":2,\"symbol\":\"руб\"},{\"currencyCode\":\"RWF\",\"description\":\"Rwanda Franc\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"SAR\",\"description\":\"Saudi Riyal\",\"exponent\":2,\"symbol\":\"﷼\"},{\"currencyCode\":\"SBD\",\"description\":\"Solomon Island Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SCR\",\"description\":\"Seychelles Rupee\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SEK\",\"description\":\"Swedish Krone\",\"exponent\":2,\"symbol\":\"kr\"},{\"currencyCode\":\"SGD\",\"description\":\"Singapore Dollar\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"SHP\",\"description\":\"St. Helena Pound\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SKK\",\"description\":\"Slovak Koruna\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SLE\",\"description\":\"Sierra Leone Leone\",\"exponent\":2,\"symbol\":\"Le\"},{\"currencyCode\":\"SLL\",\"description\":\"Sierra Leone Leone\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SOS\",\"description\":\"Somalia Shilling\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SRD\",\"description\":\"Surinamese dollar\",\"exponent\":2,\"symbol\":\"Sr$\"},{\"currencyCode\":\"STD\",\"description\":\"Sao Tome & Principe Dobra\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"STN\",\"description\":\"Sao Tome & Principe Dobra\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SVC\",\"description\":\"El Salvador Colón\",\"exponent\":2,\"symbol\":\"₡\"},{\"currencyCode\":\"SZL\",\"description\":\"Swaziland Lilangeni\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"THB\",\"description\":\"Thai Baht\",\"exponent\":2,\"symbol\":\"฿\"},{\"currencyCode\":\"TND\",\"description\":\"Tunisian Dinar\",\"exponent\":3,\"symbol\":\"\"},{\"currencyCode\":\"TOP\",\"description\":\"Tonga Pa’anga\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"TRY\",\"description\":\"New Turkish Lira\",\"exponent\":2,\"symbol\":\"₤\"},{\"currencyCode\":\"TTD\",\"description\":\"Trinidad & Tobago Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"TWD\",\"description\":\"New Taiwan Dollar\",\"exponent\":2,\"symbol\":\"元\"},{\"currencyCode\":\"TZS\",\"description\":\"Tanzanian Shilling\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"UAH\",\"description\":\"Ukraine Hryvnia\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"UGX\",\"description\":\"Uganda Shilling\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"USD\",\"description\":\"US Dollars\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"UYU\",\"description\":\"Peso Uruguayo\",\"exponent\":2,\"symbol\":\"₱\"},{\"currencyCode\":\"UZS\",\"description\":\"Uzbekistani Som\",\"exponent\":2,\"symbol\":\"som\"},{\"currencyCode\":\"VEF\",\"description\":\"Venezuelan Bolívar\",\"exponent\":2,\"symbol\":\"Bs.F.\"},{\"currencyCode\":\"VND\",\"description\":\"Vietnamese New Dong\",\"exponent\":0,\"symbol\":\"₫\"},{\"currencyCode\":\"VUV\",\"description\":\"Vanuatu Vatu\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"WST\",\"description\":\"Samoan Tala\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"XAF\",\"description\":\"CFA Franc BEAC\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"XCD\",\"description\":\"East Carribean Dollar\",\"exponent\":2,\"symbol\":\"EC$\"},{\"currencyCode\":\"XOF\",\"description\":\"CFA Franc BCEAO\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"XPF\",\"description\":\"CFP Franc\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"YER\",\"description\":\"Yemeni Rial\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"ZAR\",\"description\":\"South African Rand\",\"exponent\":2,\"symbol\":\"R\"},{\"currencyCode\":\"ZMK\",\"description\":\"Zambia Kwacha\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"ZMW\",\"description\":\"Zambian Kwacha\",\"exponent\":2,\"symbol\":\"\"}]");
|
|
2526
|
+
//#endregion
|
|
2527
|
+
//#region src/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.tsx
|
|
2528
|
+
var ALLOWED_PAYOUT_CURRENCIES = Object.keys(Currencies);
|
|
2529
|
+
var PreferredCurrency = (props) => {
|
|
2530
|
+
const { country, preferredCurrency, handleChangeFor } = props;
|
|
2531
|
+
const { t } = useTranslation(["common", "banking"]);
|
|
2532
|
+
const currencyDescriptionByCode = new Map(currencies_default.map((currency) => [currency.currencyCode, currency.description]));
|
|
2533
|
+
const getPrioritizedCurrencies = () => {
|
|
2534
|
+
const allowedCountryCurrencies = (currencyByCountry[country] || []).filter((currency) => ALLOWED_PAYOUT_CURRENCIES.includes(currency));
|
|
2535
|
+
const otherAllowedCurrencies = ALLOWED_PAYOUT_CURRENCIES.filter((currency) => !allowedCountryCurrencies.includes(currency));
|
|
2536
|
+
if (allowedCountryCurrencies.length > 0 && otherAllowedCurrencies.length > 0) return [
|
|
2537
|
+
...allowedCountryCurrencies,
|
|
2538
|
+
null,
|
|
2539
|
+
...otherAllowedCurrencies
|
|
2540
|
+
];
|
|
2541
|
+
return [...allowedCountryCurrencies, ...otherAllowedCurrencies];
|
|
2542
|
+
};
|
|
2543
|
+
const currenciesAsOptions = getPrioritizedCurrencies().map((currency) => {
|
|
2544
|
+
if (currency === null) return {
|
|
2545
|
+
id: "separator",
|
|
2546
|
+
name: " ",
|
|
2547
|
+
disabled: true
|
|
2548
|
+
};
|
|
2549
|
+
const description = currencyDescriptionByCode.get(currency);
|
|
2550
|
+
return {
|
|
2551
|
+
id: currency,
|
|
2552
|
+
name: description ? `${description} (${currency})` : currency
|
|
2553
|
+
};
|
|
2554
|
+
});
|
|
2555
|
+
const selectCurrency = (e) => {
|
|
2556
|
+
if (e.id === "separator") return;
|
|
2557
|
+
handleChangeFor("preferredCurrency")(e.id);
|
|
2558
|
+
};
|
|
2559
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
2560
|
+
name: "preferredCurrency",
|
|
2561
|
+
label: t(($) => $["preferredPayoutCurrency"], { ns: "banking" }),
|
|
2562
|
+
helper: t(($) => $["ifYouChooseAPayoutCurrencyThatDoesntMatchYourBankAccount"], { ns: "banking" }),
|
|
2563
|
+
helperPosition: "below",
|
|
2564
|
+
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
2565
|
+
...childProps,
|
|
2566
|
+
onSelect: selectCurrency,
|
|
2567
|
+
name: "preferredPayoutCurrency",
|
|
2568
|
+
placeholder: t(($) => $["localFormat"], { ns: "banking" }),
|
|
2569
|
+
selected: preferredCurrency,
|
|
2570
|
+
items: currenciesAsOptions || []
|
|
2571
|
+
})
|
|
2572
|
+
});
|
|
2573
|
+
};
|
|
2574
|
+
//#endregion
|
|
2575
|
+
//#region src/components/BankAccount/forms/PayoutVerificationMethod/utils.ts
|
|
2576
|
+
var getMustHaveSameAccountHolderNameTransKey = (legalEntityType) => {
|
|
2577
|
+
switch (legalEntityType) {
|
|
2578
|
+
case "individual":
|
|
2579
|
+
case "soleProprietorship": return "theBankAccountHolderMustBeInYourName";
|
|
2580
|
+
case "organization":
|
|
2581
|
+
case "trust":
|
|
2582
|
+
case "unincorporatedPartnership": return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
|
|
2583
|
+
default: return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
|
|
2584
|
+
}
|
|
2585
|
+
};
|
|
2586
|
+
var PayoutRequirementsModal_module_default = {
|
|
2587
|
+
"payout-modal-content": "adyen-kyc-payout-modal-content",
|
|
2588
|
+
payoutModalContent: "adyen-kyc-payout-modal-content",
|
|
2589
|
+
title: "adyen-kyc-title",
|
|
2590
|
+
section: "adyen-kyc-section",
|
|
2591
|
+
"section-title": "adyen-kyc-section-title",
|
|
2592
|
+
sectionTitle: "adyen-kyc-section-title",
|
|
2593
|
+
"section-text": "adyen-kyc-section-text",
|
|
2594
|
+
sectionText: "adyen-kyc-section-text",
|
|
2595
|
+
"simpler-terms-box": "adyen-kyc-simpler-terms-box",
|
|
2596
|
+
simplerTermsBox: "adyen-kyc-simpler-terms-box",
|
|
2597
|
+
"simpler-terms-title": "adyen-kyc-simpler-terms-title",
|
|
2598
|
+
simplerTermsTitle: "adyen-kyc-simpler-terms-title",
|
|
2599
|
+
"bullet-list": "adyen-kyc-bullet-list",
|
|
2600
|
+
bulletList: "adyen-kyc-bullet-list"
|
|
2601
|
+
};
|
|
2602
|
+
//#endregion
|
|
2603
|
+
//#region src/components/BankAccount/forms/PayoutCountryDetails/PayoutRequirementsModal.tsx
|
|
2604
|
+
function PayoutRequirementsModal({ isOpen, onClose, provider }) {
|
|
2605
|
+
const { t } = useTranslation("banking");
|
|
2606
|
+
if (!isOpen) return null;
|
|
2607
|
+
return /* @__PURE__ */ jsx(Modal, {
|
|
2608
|
+
ariaLabel: t(($) => $["aboutPayoutBankAccounts"]),
|
|
2609
|
+
onClose,
|
|
2610
|
+
size: "medium",
|
|
2611
|
+
showCloseButton: true,
|
|
2612
|
+
inset: true,
|
|
2613
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
2614
|
+
className: PayoutRequirementsModal_module_default.payoutModalContent,
|
|
2615
|
+
children: [
|
|
2616
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
2617
|
+
variant: "title-m",
|
|
2618
|
+
el: "h1",
|
|
2619
|
+
className: PayoutRequirementsModal_module_default.title,
|
|
2620
|
+
children: t(($) => $["aboutPayoutBankAccounts"])
|
|
2621
|
+
}),
|
|
2622
|
+
/* @__PURE__ */ jsxs("div", {
|
|
2623
|
+
className: PayoutRequirementsModal_module_default.section,
|
|
2624
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
2625
|
+
variant: "body-strongest",
|
|
2626
|
+
el: "h3",
|
|
2627
|
+
className: PayoutRequirementsModal_module_default.sectionTitle,
|
|
2628
|
+
children: t(($) => $["doesMyBankAccountNeedToBeInSameCountry"])
|
|
2629
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
2630
|
+
variant: "body",
|
|
2631
|
+
className: PayoutRequirementsModal_module_default.sectionText,
|
|
2632
|
+
children: t(($) => $["countryDependsExplanation"])
|
|
2633
|
+
})]
|
|
2634
|
+
}),
|
|
2635
|
+
/* @__PURE__ */ jsxs("div", {
|
|
2636
|
+
className: PayoutRequirementsModal_module_default.section,
|
|
2637
|
+
children: [
|
|
2638
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
2639
|
+
variant: "body-strongest",
|
|
2640
|
+
el: "h3",
|
|
2641
|
+
className: PayoutRequirementsModal_module_default.sectionTitle,
|
|
2642
|
+
children: t(($) => $["whichPayoutCurrencyShouldIChoose"])
|
|
2643
|
+
}),
|
|
2644
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
2645
|
+
variant: "body",
|
|
2646
|
+
className: PayoutRequirementsModal_module_default.sectionText,
|
|
2647
|
+
children: t(($) => $["currencyRecommendation"])
|
|
2648
|
+
}),
|
|
2649
|
+
/* @__PURE__ */ jsxs("div", {
|
|
2650
|
+
className: PayoutRequirementsModal_module_default.simplerTermsBox,
|
|
2651
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
2652
|
+
variant: "body-strongest",
|
|
2653
|
+
el: "h4",
|
|
2654
|
+
className: PayoutRequirementsModal_module_default.simplerTermsTitle,
|
|
2655
|
+
children: t(($) => $["inSimplerTerms"])
|
|
2656
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
2657
|
+
variant: "body",
|
|
2658
|
+
children: t(($) => $["currencySimplerTerms"])
|
|
2659
|
+
})]
|
|
2660
|
+
})
|
|
2661
|
+
]
|
|
2662
|
+
}),
|
|
2663
|
+
provider && /* @__PURE__ */ jsxs("div", {
|
|
2664
|
+
className: PayoutRequirementsModal_module_default.section,
|
|
2665
|
+
children: [
|
|
2666
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
2667
|
+
variant: "body-strongest",
|
|
2668
|
+
el: "h3",
|
|
2669
|
+
className: PayoutRequirementsModal_module_default.sectionTitle,
|
|
2670
|
+
children: t(($) => $["howDoesVerificationWithOurPartnerWork"], { provider: provider?.name })
|
|
2671
|
+
}),
|
|
2672
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
2673
|
+
className: PayoutRequirementsModal_module_default.sectionText,
|
|
2674
|
+
children: t(($) => $["isOurTrustedPartnerHelpingSpeedUpSetup"], { provider: provider?.name })
|
|
2675
|
+
}),
|
|
2676
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
2677
|
+
className: PayoutRequirementsModal_module_default.bulletList,
|
|
2678
|
+
children: [
|
|
2679
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["selectTheBankToReceivePayouts"]) }),
|
|
2680
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["loginIntoYourBankingEnvironment"]) }),
|
|
2681
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["yourBankWillConfirmYourAccountDetails"]) })
|
|
2682
|
+
]
|
|
2683
|
+
}),
|
|
2684
|
+
/* @__PURE__ */ jsx(Typography, { children: t(($) => $["adyenWillOnlyGetTemporaryAccess"]) })
|
|
2685
|
+
]
|
|
2686
|
+
})
|
|
2687
|
+
]
|
|
2688
|
+
})
|
|
2689
|
+
});
|
|
2690
|
+
}
|
|
2691
|
+
//#endregion
|
|
2692
|
+
//#region src/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.tsx
|
|
2693
|
+
var payoutCountryDetailsFields = ["bankCountry", "preferredCurrency"];
|
|
2694
|
+
var DEFAULT_CURRENCY_FALLBACK = "USD";
|
|
2695
|
+
var getDefaultCurrencyForCountry = (country) => currencyByCountry[country]?.[0] ?? DEFAULT_CURRENCY_FALLBACK;
|
|
2696
|
+
var getCountryCodeFromEvent = (event) => event?.target?.value;
|
|
2697
|
+
function PayoutCountryDetails(props) {
|
|
2698
|
+
const { legalEntityResponse, data: propData, provider, handleFieldChange, valid: propValid, errors: propErrors, fieldValidationErrors: propFieldValidationErrors } = props;
|
|
2699
|
+
const { t: commonT } = useTranslation("common");
|
|
2700
|
+
const { t } = useTranslation("banking");
|
|
2701
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
2702
|
+
const country = getLegalEntityCountry(legalEntityResponse);
|
|
2703
|
+
const [isModalOpen, setIsModalOpen] = useState$1(false);
|
|
2704
|
+
const legalEntityType = legalEntityResponse.type;
|
|
2705
|
+
const defaultCurrency = getDefaultCurrencyForCountry(country);
|
|
2706
|
+
const localForm = useForm({
|
|
2707
|
+
...props,
|
|
2708
|
+
schema: payoutCountryDetailsFields,
|
|
2709
|
+
defaultData: {
|
|
2710
|
+
bankCountry: propData?.bankCountry ?? country,
|
|
2711
|
+
preferredCurrency: propData?.preferredCurrency ?? defaultCurrency
|
|
2712
|
+
},
|
|
2713
|
+
shouldValidate: true
|
|
2714
|
+
});
|
|
2715
|
+
const useMultiFormMode = !!handleFieldChange;
|
|
2716
|
+
const data = useMultiFormMode ? propData : localForm.data;
|
|
2717
|
+
const valid = useMultiFormMode ? propValid : localForm.valid;
|
|
2718
|
+
const errors = useMultiFormMode ? propErrors : localForm.errors;
|
|
2719
|
+
const fieldProblems = useMultiFormMode ? propFieldValidationErrors : localForm.fieldProblems;
|
|
2720
|
+
const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
|
|
2721
|
+
const formUtils = createFormUtils(props, commonT);
|
|
2722
|
+
const allowedBankCountries = Object.keys(currencyByCountry);
|
|
2723
|
+
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
2724
|
+
const accountHolder = getPayoutAccountHolderName(legalEntityResponse, t);
|
|
2725
|
+
const description = canChangeEntityType ? /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, { legalEntityResponse }) : /* @__PURE__ */ jsxs(Typography, { children: [
|
|
2726
|
+
t(($) => $["forYouToReceiveYourPayouts"]),
|
|
2727
|
+
"\xA0",
|
|
2728
|
+
/* @__PURE__ */ jsx(Trans, {
|
|
2729
|
+
t,
|
|
2730
|
+
ns: "banking",
|
|
2731
|
+
i18nKey: ($) => $[getMustHaveSameAccountHolderNameTransKey(legalEntityType)],
|
|
2732
|
+
values: {
|
|
2733
|
+
name: accountHolder,
|
|
2734
|
+
companyName: accountHolder
|
|
2735
|
+
}
|
|
2736
|
+
})
|
|
2737
|
+
] });
|
|
2738
|
+
const descriptionExtra = /* @__PURE__ */ jsx("div", {
|
|
2739
|
+
className: "adyen-kyc-u-margin-bottom-12",
|
|
2740
|
+
children: /* @__PURE__ */ jsx(Trans, {
|
|
2741
|
+
t,
|
|
2742
|
+
ns: "banking",
|
|
2743
|
+
i18nKey: ($) => $["payoutAccountsMustMeetSomeRequirements"],
|
|
2744
|
+
components: { requirementsLink: /* @__PURE__ */ jsx("button", {
|
|
2745
|
+
type: "button",
|
|
2746
|
+
onClick: () => setIsModalOpen(true),
|
|
2747
|
+
style: {
|
|
2748
|
+
background: "none",
|
|
2749
|
+
border: "none",
|
|
2750
|
+
color: "inherit",
|
|
2751
|
+
textDecoration: "underline",
|
|
2752
|
+
cursor: "pointer",
|
|
2753
|
+
padding: 0,
|
|
2754
|
+
font: "inherit"
|
|
2755
|
+
}
|
|
2756
|
+
}) }
|
|
2757
|
+
})
|
|
2758
|
+
});
|
|
2759
|
+
const { updateStateSlice } = useGlobalDataSlice("payoutCountryDetails");
|
|
2760
|
+
useEffect$1(() => {
|
|
2761
|
+
if (!useMultiFormMode) updateStateSlice({
|
|
2762
|
+
data: localForm.data,
|
|
2763
|
+
valid: localForm.valid,
|
|
2764
|
+
errors: localForm.errors,
|
|
2765
|
+
fieldProblems: localForm.fieldProblems
|
|
2766
|
+
});
|
|
2767
|
+
}, [
|
|
2768
|
+
localForm.data,
|
|
2769
|
+
localForm.valid,
|
|
2770
|
+
localForm.errors,
|
|
2771
|
+
updateStateSlice,
|
|
2772
|
+
localForm.fieldProblems,
|
|
2773
|
+
useMultiFormMode
|
|
2774
|
+
]);
|
|
2775
|
+
const updateCountryField = (event) => {
|
|
2776
|
+
const updatedCountry = getCountryCodeFromEvent(event);
|
|
2777
|
+
handleChange("bankCountry", "input")(updatedCountry);
|
|
2778
|
+
handleChange("preferredCurrency", "input")(getDefaultCurrencyForCountry(updatedCountry));
|
|
2779
|
+
};
|
|
2780
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("form", {
|
|
2781
|
+
style: { minHeight: "480px" },
|
|
2782
|
+
children: [
|
|
2783
|
+
/* @__PURE__ */ jsx(Header, {
|
|
2784
|
+
title: t(($) => $["payoutBankAccount"]),
|
|
2785
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
2786
|
+
slot: "description",
|
|
2787
|
+
className: "adyen-kyc-form-header__description",
|
|
2788
|
+
children: [description, descriptionExtra]
|
|
2789
|
+
})
|
|
2790
|
+
}),
|
|
2791
|
+
/* @__PURE__ */ jsx(CountryField, {
|
|
2792
|
+
data: { country: data?.bankCountry },
|
|
2793
|
+
valid: { country: valid?.bankCountry ?? true },
|
|
2794
|
+
errors: { country: formUtils.getErrorMessage("bankCountry", errors, fieldProblems) },
|
|
2795
|
+
labels: { country: t(($) => $["bankAccountCountryRegion"]) },
|
|
2796
|
+
readonly: false,
|
|
2797
|
+
allowedCountries: allowedBankCountries,
|
|
2798
|
+
handleChangeFor: () => updateCountryField
|
|
2799
|
+
}),
|
|
2800
|
+
/* @__PURE__ */ jsx(PreferredCurrency, {
|
|
2801
|
+
country: data?.bankCountry ?? country,
|
|
2802
|
+
preferredCurrency: data?.preferredCurrency ?? defaultCurrency,
|
|
2803
|
+
handleChangeFor: handleChange
|
|
2804
|
+
})
|
|
2805
|
+
]
|
|
2806
|
+
}), /* @__PURE__ */ jsx(PayoutRequirementsModal, {
|
|
2807
|
+
isOpen: isModalOpen,
|
|
2808
|
+
onClose: () => setIsModalOpen(false),
|
|
2809
|
+
provider
|
|
2810
|
+
})] });
|
|
2811
|
+
}
|
|
2812
|
+
//#endregion
|
|
2813
|
+
//#region src/components/BankAccount/forms/PayoutVerificationMethod/allowedBankCountriesPerCountry.ts
|
|
2814
|
+
var regions = {
|
|
2815
|
+
europe: [
|
|
2816
|
+
...EEA_Countries,
|
|
2817
|
+
CountryCodes.Switzerland,
|
|
2818
|
+
CountryCodes.UnitedKingdom,
|
|
2819
|
+
CountryCodes.Gibraltar
|
|
2820
|
+
],
|
|
2821
|
+
apac: [CountryCodes.NewZealand, CountryCodes.Australia]
|
|
2822
|
+
};
|
|
2823
|
+
var getAllowedBankCountries = (country) => Object.values(regions).find((countriesInARegion) => countriesInARegion.includes(country)) ?? [country];
|
|
2824
|
+
var VerificationMethod_module_default = {
|
|
2825
|
+
"field-verification-methods": "adyen-kyc-field-verification-methods",
|
|
2826
|
+
fieldVerificationMethods: "adyen-kyc-field-verification-methods",
|
|
2827
|
+
"field-verification-methods-card": "adyen-kyc-field-verification-methods-card",
|
|
2828
|
+
fieldVerificationMethodsCard: "adyen-kyc-field-verification-methods-card",
|
|
2829
|
+
"radio-card": "adyen-kyc-radio-card",
|
|
2830
|
+
radioCard: "adyen-kyc-radio-card",
|
|
2831
|
+
"radio-card-icon": "adyen-kyc-radio-card-icon",
|
|
2832
|
+
radioCardIcon: "adyen-kyc-radio-card-icon",
|
|
2833
|
+
"radio-card-content": "adyen-kyc-radio-card-content",
|
|
2834
|
+
radioCardContent: "adyen-kyc-radio-card-content",
|
|
2835
|
+
"field-verification-methods-footer": "adyen-kyc-field-verification-methods-footer",
|
|
2836
|
+
fieldVerificationMethodsFooter: "adyen-kyc-field-verification-methods-footer",
|
|
2837
|
+
"field-verification-methods-logo": "adyen-kyc-field-verification-methods-logo",
|
|
2838
|
+
fieldVerificationMethodsLogo: "adyen-kyc-field-verification-methods-logo",
|
|
2839
|
+
"radio-group-card-illustration": "adyen-kyc-radio-group-card-illustration",
|
|
2840
|
+
radioGroupCardIllustration: "adyen-kyc-radio-group-card-illustration",
|
|
2841
|
+
"instant-verification-error": "adyen-kyc-instant-verification-error",
|
|
2842
|
+
instantVerificationError: "adyen-kyc-instant-verification-error",
|
|
2843
|
+
"payout-verification-method-header": "adyen-kyc-payout-verification-method-header",
|
|
2844
|
+
payoutVerificationMethodHeader: "adyen-kyc-payout-verification-method-header",
|
|
2845
|
+
"payout-verification-method-image": "adyen-kyc-payout-verification-method-image",
|
|
2846
|
+
payoutVerificationMethodImage: "adyen-kyc-payout-verification-method-image",
|
|
2847
|
+
"payout-verification-method-description": "adyen-kyc-payout-verification-method-description",
|
|
2848
|
+
payoutVerificationMethodDescription: "adyen-kyc-payout-verification-method-description",
|
|
2849
|
+
"payout-verification-method-card": "adyen-kyc-payout-verification-method-card",
|
|
2850
|
+
payoutVerificationMethodCard: "adyen-kyc-payout-verification-method-card",
|
|
2851
|
+
"payout-verification-method-card-disabled": "adyen-kyc-payout-verification-method-card-disabled",
|
|
2852
|
+
payoutVerificationMethodCardDisabled: "adyen-kyc-payout-verification-method-card-disabled",
|
|
2853
|
+
"payout-verification-method-card-image": "adyen-kyc-payout-verification-method-card-image",
|
|
2854
|
+
payoutVerificationMethodCardImage: "adyen-kyc-payout-verification-method-card-image",
|
|
2855
|
+
"payout-verification-method-card-content": "adyen-kyc-payout-verification-method-card-content",
|
|
2856
|
+
payoutVerificationMethodCardContent: "adyen-kyc-payout-verification-method-card-content",
|
|
2857
|
+
"payout-verification-method-card-title": "adyen-kyc-payout-verification-method-card-title",
|
|
2858
|
+
payoutVerificationMethodCardTitle: "adyen-kyc-payout-verification-method-card-title",
|
|
2859
|
+
"payout-verification-method-card-subtitle": "adyen-kyc-payout-verification-method-card-subtitle",
|
|
2860
|
+
payoutVerificationMethodCardSubtitle: "adyen-kyc-payout-verification-method-card-subtitle",
|
|
2861
|
+
"payout-verification-method-card-body": "adyen-kyc-payout-verification-method-card-body",
|
|
2862
|
+
payoutVerificationMethodCardBody: "adyen-kyc-payout-verification-method-card-body",
|
|
2863
|
+
"payout-verification-method-card-image-container": "adyen-kyc-payout-verification-method-card-image-container",
|
|
2864
|
+
payoutVerificationMethodCardImageContainer: "adyen-kyc-payout-verification-method-card-image-container"
|
|
2865
|
+
};
|
|
2866
|
+
//#endregion
|
|
2867
|
+
//#region src/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.tsx
|
|
2868
|
+
var PayoutVerificationMethodOptionIcon = ({ method, methodsMetadata }) => {
|
|
2869
|
+
const { svgImport } = methodsMetadata[method];
|
|
2870
|
+
return /* @__PURE__ */ jsx(Image, {
|
|
2871
|
+
className: VerificationMethod_module_default.payoutVerificationMethodCardImage,
|
|
2872
|
+
lazyLoadedImage: svgImport
|
|
2873
|
+
});
|
|
2874
|
+
};
|
|
2875
|
+
var PayoutVerificationMethodOptionCard = ({ payoutMethod, title, subtitle, tag, selectVerificationMethod, payoutVerificationMethod, methodsMetadata, bankInfoValidated, instantVerificationAvailable }) => {
|
|
2876
|
+
return /* @__PURE__ */ jsx(Card, {
|
|
2877
|
+
onClick: () => selectVerificationMethod(payoutMethod),
|
|
2878
|
+
disabled: bankInfoValidated || payoutMethod === "instantVerification" && !instantVerificationAvailable,
|
|
2879
|
+
selected: payoutMethod === payoutVerificationMethod,
|
|
2880
|
+
padding: "none",
|
|
2881
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
2882
|
+
className: cx(VerificationMethod_module_default.payoutVerificationMethodCardBody, VerificationMethod_module_default.payoutVerificationMethodCard),
|
|
2883
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
2884
|
+
className: VerificationMethod_module_default.payoutVerificationMethodCardImageContainer,
|
|
2885
|
+
children: /* @__PURE__ */ jsx(PayoutVerificationMethodOptionIcon, {
|
|
2886
|
+
method: payoutMethod,
|
|
2887
|
+
methodsMetadata
|
|
2888
|
+
})
|
|
2889
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
2890
|
+
className: VerificationMethod_module_default.payoutVerificationMethodCardContent,
|
|
2891
|
+
children: [
|
|
2892
|
+
tag,
|
|
2893
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
2894
|
+
el: "h4",
|
|
2895
|
+
variant: "body-strongest",
|
|
2896
|
+
className: VerificationMethod_module_default.payoutVerificationMethodCardTitle,
|
|
2897
|
+
children: title
|
|
2898
|
+
}),
|
|
2899
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
2900
|
+
el: "p",
|
|
2901
|
+
variant: "body",
|
|
2902
|
+
color: "secondary",
|
|
2903
|
+
className: VerificationMethod_module_default.payoutVerificationMethodCardSubtitle,
|
|
2904
|
+
children: subtitle
|
|
2905
|
+
})
|
|
2906
|
+
]
|
|
2907
|
+
})]
|
|
2908
|
+
})
|
|
2909
|
+
}, payoutMethod);
|
|
2910
|
+
};
|
|
2911
|
+
var payoutVerificationMethodFields = [
|
|
2912
|
+
"payoutVerificationMethod",
|
|
2913
|
+
"bankCountry",
|
|
2914
|
+
...accountVerificationFields
|
|
2915
|
+
];
|
|
2916
|
+
function PayoutVerificationMethod(props) {
|
|
2917
|
+
const { heading, country, accountHolder, provider, bankVendorsLoadingStatus, instantVerificationAvailable, legalEntityResponse, validators, bankInfoValidated, data: payoutVerificationMethodData, fieldValidationErrors, formVerificationErrors, handleFieldChange, valid: propValid, errors: propErrors } = props;
|
|
2918
|
+
const { type: legalEntityType } = legalEntityResponse;
|
|
2919
|
+
const { t } = useTranslation("banking");
|
|
2920
|
+
const { t: commonT } = useTranslation("common");
|
|
2921
|
+
const instantVerificationError = useContext$1(InstantVerificationErrorContext);
|
|
2922
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
2923
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
2924
|
+
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
2925
|
+
const intraRegionCrossBorderPayoutsAllowed = isSettingEnabled(SettingNames.AllowIntraRegionCrossBorderPayout);
|
|
2926
|
+
const [hasSelectedMethod, setHasSelectedMethod] = useState$1(false);
|
|
2927
|
+
const localForm = useForm({
|
|
2928
|
+
...props,
|
|
2929
|
+
schema: payoutVerificationMethodFields,
|
|
2930
|
+
defaultData: {
|
|
2931
|
+
verifiedAccountHolder: accountHolder,
|
|
2932
|
+
verifiedCurrencyCode: currencyByCountry[country]?.[0],
|
|
2933
|
+
bankCountry: country,
|
|
2934
|
+
...payoutVerificationMethodData
|
|
2935
|
+
},
|
|
2936
|
+
rules: validators || { payoutVerificationMethod: {
|
|
2937
|
+
modes: ["blur"],
|
|
2938
|
+
validate: (payoutVerificationMethod) => !!payoutVerificationMethod
|
|
2939
|
+
} },
|
|
2940
|
+
fieldProblems: fieldValidationErrors
|
|
2941
|
+
});
|
|
2942
|
+
const useMultiFormMode = !!handleFieldChange;
|
|
2943
|
+
const data = useMultiFormMode ? payoutVerificationMethodData : localForm.data;
|
|
2944
|
+
const valid = useMultiFormMode ? propValid : localForm.valid;
|
|
2945
|
+
const errors = useMultiFormMode ? propErrors : localForm.errors;
|
|
2946
|
+
const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
|
|
2947
|
+
const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
|
|
2948
|
+
const formUtils = createFormUtils(props, commonT);
|
|
2949
|
+
const { sliceData, updateStateSlice } = useGlobalDataSlice("payoutVerificationMethod");
|
|
2950
|
+
const { clearStateSlice: clearPayoutAccountDetails } = useGlobalDataSlice("payoutAccountDetails");
|
|
2951
|
+
useEffect$1(() => {
|
|
2952
|
+
if (!useMultiFormMode) updateStateSlice({
|
|
2953
|
+
data: {
|
|
2954
|
+
...sliceData,
|
|
2955
|
+
...localForm.data
|
|
2956
|
+
},
|
|
2957
|
+
errors: localForm.errors,
|
|
2958
|
+
valid: localForm.valid,
|
|
2959
|
+
fieldProblems: localForm.fieldProblems
|
|
2960
|
+
});
|
|
2961
|
+
}, [
|
|
2962
|
+
localForm.data,
|
|
2963
|
+
localForm.errors,
|
|
2964
|
+
localForm.fieldProblems,
|
|
2965
|
+
localForm.valid
|
|
2966
|
+
]);
|
|
2967
|
+
const methodsMetadata = makePayoutVerificationMethodsMetadata(provider?.name);
|
|
2968
|
+
const selectVerificationMethod = (method) => {
|
|
2969
|
+
setHasSelectedMethod(true);
|
|
2970
|
+
handleChange("payoutVerificationMethod")(method);
|
|
2971
|
+
};
|
|
2972
|
+
useEffect$1(() => {
|
|
2973
|
+
if (bankInfoValidated) return;
|
|
2974
|
+
if (!hasSelectedMethod && instantVerificationAvailable && data?.payoutVerificationMethod !== "instantVerification") handleChange("payoutVerificationMethod")("instantVerification");
|
|
2975
|
+
if (!instantVerificationAvailable && data?.payoutVerificationMethod !== "manualVerification") handleChange("payoutVerificationMethod")("manualVerification");
|
|
2976
|
+
}, [
|
|
2977
|
+
data?.payoutVerificationMethod,
|
|
2978
|
+
handleChange,
|
|
2979
|
+
instantVerificationAvailable,
|
|
2980
|
+
hasSelectedMethod,
|
|
2981
|
+
bankInfoValidated
|
|
2982
|
+
]);
|
|
2983
|
+
const { dataset: countries } = useDataset(datasetIdentifier.country);
|
|
2984
|
+
const bankCountryName = countries.find((country) => country.id === data?.bankCountry)?.name ?? data?.bankCountry;
|
|
2985
|
+
const allowedBankCountries = getAllowedBankCountries(country);
|
|
2986
|
+
const countryField = /* @__PURE__ */ jsx(CountryField, {
|
|
2987
|
+
data: { country: data?.bankCountry },
|
|
2988
|
+
valid: { country: valid?.bankCountry ?? true },
|
|
2989
|
+
errors: { country: formUtils.getErrorMessage("bankCountry", errors, fieldProblems) },
|
|
2990
|
+
labels: { country: t(($) => $["bankAccountCountryRegion"]) },
|
|
2991
|
+
readonly: !intraRegionCrossBorderPayoutsAllowed || allowedBankCountries.length === 1 || bankInfoValidated,
|
|
2992
|
+
allowedCountries: allowedBankCountries,
|
|
2993
|
+
handleChangeFor: () => (e) => {
|
|
2994
|
+
if (!useMultiFormMode) clearPayoutAccountDetails();
|
|
2995
|
+
return handleChange("bankCountry", "input")(e);
|
|
2996
|
+
},
|
|
2997
|
+
helperText: intraRegionCrossBorderPayoutsAllowed ? void 0 : t(($) => $[legalEntityType === LegalEntityTypes.INDIVIDUAL ? "youCanOnlyUseABankAccountInTheCountryRegionWhereYouLive" : "youCanOnlyUseABankAccountInTheCountryRegionWhereYourCompanyIsRegistered"])
|
|
2998
|
+
});
|
|
2999
|
+
const description = canChangeEntityType ? /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, { legalEntityResponse }) : /* @__PURE__ */ jsxs(Typography, { children: [
|
|
3000
|
+
t(($) => $["forYouToReceiveYourPayouts"]),
|
|
3001
|
+
"\xA0",
|
|
3002
|
+
/* @__PURE__ */ jsx(Trans, {
|
|
3003
|
+
t,
|
|
3004
|
+
ns: "banking",
|
|
3005
|
+
i18nKey: ($) => $[getMustHaveSameAccountHolderNameTransKey(legalEntityType)],
|
|
3006
|
+
values: {
|
|
3007
|
+
name: accountHolder,
|
|
3008
|
+
companyName: accountHolder
|
|
3009
|
+
}
|
|
3010
|
+
})
|
|
3011
|
+
] });
|
|
3012
|
+
const isCrossBorderPayoutEnabled = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
|
|
3013
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
3014
|
+
className: VerificationMethod_module_default.payoutVerificationMethod,
|
|
3015
|
+
children: [
|
|
3016
|
+
heading && /* @__PURE__ */ jsx(Header, {
|
|
3017
|
+
title: heading,
|
|
3018
|
+
children: /* @__PURE__ */ jsx("template", {
|
|
3019
|
+
slot: "description",
|
|
3020
|
+
children: description
|
|
3021
|
+
})
|
|
3022
|
+
}),
|
|
3023
|
+
instantVerificationError && /* @__PURE__ */ jsx(Alert, {
|
|
3024
|
+
variant: "error",
|
|
3025
|
+
className: VerificationMethod_module_default.instantVerificationError,
|
|
3026
|
+
title: instantVerificationError.title,
|
|
3027
|
+
children: instantVerificationError.content && /* @__PURE__ */ jsx("p", {
|
|
3028
|
+
className: "adyen-kyc-u-margin-0",
|
|
3029
|
+
children: instantVerificationError.content
|
|
3030
|
+
})
|
|
3031
|
+
}),
|
|
3032
|
+
!isCrossBorderPayoutEnabled && countryField,
|
|
3033
|
+
/* @__PURE__ */ jsx(Field, {
|
|
3034
|
+
el: "fieldset",
|
|
3035
|
+
name: "verificationMethods",
|
|
3036
|
+
label: formUtils.getLabel("payoutVerificationMethod", "verificationMethod"),
|
|
3037
|
+
errorMessage: formUtils.getErrorMessage("payoutVerificationMethod", errors, fieldProblems),
|
|
3038
|
+
helper: instantVerificationAvailable ? void 0 : t(($) => $["weDoNotYetSupportInstantVerificationForBankAccountsIn"], { countryName: bankCountryName }),
|
|
3039
|
+
children: () => /* @__PURE__ */ jsxs(StackLayout, {
|
|
3040
|
+
gap: "small",
|
|
3041
|
+
children: [/* @__PURE__ */ jsx(PayoutVerificationMethodOptionCard, {
|
|
3042
|
+
payoutMethod: "instantVerification",
|
|
3043
|
+
title: t(($) => $["logInWithYourBank"]),
|
|
3044
|
+
subtitle: t(($) => $["theFastestWayToVerifyYourAccount"]),
|
|
3045
|
+
tag: /* @__PURE__ */ jsx(Tag, {
|
|
3046
|
+
variant: "blue",
|
|
3047
|
+
className: "adyen-kyc-u-margin-bottom-8",
|
|
3048
|
+
children: t(($) => $["recommended"])
|
|
3049
|
+
}),
|
|
3050
|
+
selectVerificationMethod,
|
|
3051
|
+
methodsMetadata,
|
|
3052
|
+
payoutVerificationMethod: data?.payoutVerificationMethod,
|
|
3053
|
+
instantVerificationAvailable,
|
|
3054
|
+
bankInfoValidated
|
|
3055
|
+
}), /* @__PURE__ */ jsx(PayoutVerificationMethodOptionCard, {
|
|
3056
|
+
payoutMethod: "manualVerification",
|
|
3057
|
+
title: t(($) => $["verifyManually"]),
|
|
3058
|
+
subtitle: t(($) => $["enterYourAccountsDetailsOnYourOwn"]),
|
|
3059
|
+
selectVerificationMethod,
|
|
3060
|
+
methodsMetadata,
|
|
3061
|
+
payoutVerificationMethod: data?.payoutVerificationMethod
|
|
3062
|
+
})]
|
|
3063
|
+
})
|
|
3064
|
+
}),
|
|
3065
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
3066
|
+
verificationErrors: formVerificationErrors,
|
|
3067
|
+
validationErrors: fieldValidationErrors,
|
|
3068
|
+
formUtils,
|
|
3069
|
+
id: "ariaErrorField"
|
|
3070
|
+
}),
|
|
3071
|
+
provider && bankVendorsLoadingStatus === "success" ? /* @__PURE__ */ jsx(ContextGuidance, {
|
|
3072
|
+
titleId: "howDoesVerificationWithOurPartnerWorks",
|
|
3073
|
+
contentId: "bankVerificationWithPartnerSteps",
|
|
3074
|
+
title: t(($) => $["howDoesVerificationWithOurPartnerWork"], { provider: provider.name }),
|
|
3075
|
+
content: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3076
|
+
/* @__PURE__ */ jsx(Typography, { children: t(($) => $["isOurTrustedPartnerHelpingSpeedUpSetup"], { provider: provider.name }) }),
|
|
3077
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
3078
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["selectTheBankToReceivePayouts"]) }),
|
|
3079
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["loginIntoYourBankingEnvironment"]) }),
|
|
3080
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["yourBankWillConfirmYourAccountDetails"]) })
|
|
3081
|
+
] }),
|
|
3082
|
+
/* @__PURE__ */ jsx(Typography, { children: t(($) => $["adyenWillOnlyGetTemporaryAccess"]) }),
|
|
3083
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
3084
|
+
variant: "caption",
|
|
3085
|
+
children: /* @__PURE__ */ jsx(Link, {
|
|
3086
|
+
href: "https://www.adyen.com/policies-and-disclaimer/privacy-policy",
|
|
3087
|
+
external: true,
|
|
3088
|
+
children: commonT(($) => $["adyenPrivacyPolicy"])
|
|
3089
|
+
})
|
|
3090
|
+
})
|
|
3091
|
+
] })
|
|
3092
|
+
}) : void 0
|
|
3093
|
+
]
|
|
3094
|
+
});
|
|
3095
|
+
}
|
|
3096
|
+
//#endregion
|
|
3097
|
+
//#region src/components/BankAccount/forms/PayoutDetails/PayoutDetails.tsx
|
|
3098
|
+
var payoutSteps = {
|
|
3099
|
+
payoutCountryDetails: {
|
|
3100
|
+
formId: "payoutCountryDetails",
|
|
3101
|
+
formName: "payoutCountryDetails",
|
|
3102
|
+
fields: payoutCountryDetailsFields
|
|
3103
|
+
},
|
|
3104
|
+
payoutVerificationMethod: {
|
|
3105
|
+
formId: "payoutVerificationMethod",
|
|
3106
|
+
formName: "verificationMethod",
|
|
3107
|
+
fields: payoutVerificationMethodFields
|
|
3108
|
+
},
|
|
3109
|
+
payoutAccountDetails: {
|
|
3110
|
+
formId: "payoutAccountDetails",
|
|
3111
|
+
formName: "bankAccount",
|
|
3112
|
+
fields: payoutAccountFields
|
|
3113
|
+
},
|
|
3114
|
+
payoutAccountDocuments: {
|
|
3115
|
+
formId: "payoutAccountDocuments",
|
|
3116
|
+
formName: "bankDocument",
|
|
3117
|
+
formHeader: "bankDocumentHeader",
|
|
3118
|
+
fields: bankDocumentClassificationFields
|
|
3119
|
+
},
|
|
3120
|
+
payoutAccountVerification: {
|
|
3121
|
+
formId: "payoutAccountVerification",
|
|
3122
|
+
formName: "instantVerification",
|
|
3123
|
+
fields: accountVerificationFields
|
|
3124
|
+
}
|
|
3125
|
+
};
|
|
3126
|
+
var PayoutCountryDetailsFormID = payoutSteps.payoutCountryDetails.formId;
|
|
3127
|
+
var PayoutVerificationMethodFormID = payoutSteps.payoutVerificationMethod.formId;
|
|
3128
|
+
var PayoutAccountDocumentsFormID = payoutSteps.payoutAccountDocuments.formId;
|
|
3129
|
+
var PayoutAccountVerificationFormID = payoutSteps.payoutAccountVerification.formId;
|
|
3130
|
+
function PayoutDetails(props) {
|
|
3131
|
+
const { t } = useTranslation("banking");
|
|
3132
|
+
const { t: commonT } = useTranslation("common");
|
|
3133
|
+
const { activeForm, legalEntityResponse, provider, bankVendorsLoadingStatus, instantVerificationAvailable, setHideSidebar, setSkipSubmit, createTrustedTransferInstrument, accountDetailsFromInput, country, accountHolder, data: propData, onBack, trustedTransferInstrumentId, setHasAsyncValidationError } = props;
|
|
3134
|
+
const [instantVerificationError, setInstantVerificationError] = useInstantVerificationErrorNotification(1e4);
|
|
3135
|
+
const payoutCountryDetailsFormProps = getFormProps(props, PayoutCountryDetailsFormID);
|
|
3136
|
+
const verificationMethodFormProps = getFormProps(props, PayoutVerificationMethodFormID);
|
|
3137
|
+
const accountVerificationFormProps = getFormProps(props, PayoutAccountVerificationFormID);
|
|
3138
|
+
const payoutAccountFormProps = getFormProps(props, payoutSteps.payoutAccountDetails.formId);
|
|
3139
|
+
const bankDocumentFormProps = getFormProps(props, PayoutAccountDocumentsFormID);
|
|
3140
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
3141
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
3142
|
+
const isCrossBorderPayoutsEnabled = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
|
|
3143
|
+
const globalData = useGlobalData();
|
|
3144
|
+
const data = isEmpty(globalData) || propData?.payoutAccountDetails?.transferInstrumentId ? propData : globalData;
|
|
3145
|
+
const resetData = useResetGlobalData();
|
|
3146
|
+
const verifyInstantly = data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification";
|
|
3147
|
+
const bankCountry = (isCrossBorderPayoutsEnabled ? data?.payoutCountryDetails?.bankCountry : data?.payoutVerificationMethod?.bankCountry) ?? country;
|
|
3148
|
+
useEffect$1(() => resetData(), [resetData]);
|
|
3149
|
+
useEffect$1(() => {
|
|
3150
|
+
if (activeForm?.formId === summaryStep.formId && verifyInstantly && trustedTransferInstrumentId) setSkipSubmit?.(true);
|
|
3151
|
+
}, [activeForm, trustedTransferInstrumentId]);
|
|
3152
|
+
const [bankInfoValidated, setBankInfoValidated] = useState$1(false);
|
|
3153
|
+
const [arePayoutAccountDetailsInvalid, setArePayoutAccountDetailsInvalid] = useState$1(false);
|
|
3154
|
+
const [invalidFieldNames, setInvalidFieldNames] = useState$1("");
|
|
3155
|
+
const payload = useMemo$1(() => bankCountry && accountDetailsFromInput ? getAccountIdentificationFromPayoutAccountSchema(accountDetailsFromInput, bankCountry, isCrossBorderPayoutsEnabled) : {}, [accountDetailsFromInput, bankCountry]);
|
|
3156
|
+
const validateAccountDetails = useAsyncAccountDetailsValidationRules(payload, hasEmptyFields(payload), isAccountIdentifierObscured(payload));
|
|
3157
|
+
const resetInvalidFieldState = () => {
|
|
3158
|
+
setInvalidFieldNames("");
|
|
3159
|
+
setArePayoutAccountDetailsInvalid(false);
|
|
3160
|
+
};
|
|
3161
|
+
useEffect$1(() => {
|
|
3162
|
+
if (validateAccountDetails?.invalidFields && validateAccountDetails.invalidFields.length > 0) {
|
|
3163
|
+
setHasAsyncValidationError?.(true);
|
|
3164
|
+
setInvalidFieldNames(concatenateFieldNames(validateAccountDetails.invalidFields.map((field) => extractFieldName(field.name)).map((key) => commonT(($) => $[key]))));
|
|
3165
|
+
setArePayoutAccountDetailsInvalid(true);
|
|
3166
|
+
} else {
|
|
3167
|
+
setHasAsyncValidationError?.(false);
|
|
3168
|
+
resetInvalidFieldState();
|
|
3169
|
+
}
|
|
3170
|
+
}, [t, validateAccountDetails]);
|
|
3171
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
3172
|
+
className: "adyen-kyc-payout",
|
|
3173
|
+
children: [
|
|
3174
|
+
/* @__PURE__ */ jsx("div", {
|
|
3175
|
+
className: activeForm?.formId !== "payoutCountryDetails" ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
3176
|
+
children: /* @__PURE__ */ jsx(PayoutCountryDetails, {
|
|
3177
|
+
...payoutCountryDetailsFormProps,
|
|
3178
|
+
legalEntityResponse,
|
|
3179
|
+
provider
|
|
3180
|
+
})
|
|
3181
|
+
}),
|
|
3182
|
+
/* @__PURE__ */ jsx("div", {
|
|
3183
|
+
className: activeForm?.formId !== PayoutVerificationMethodFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
3184
|
+
children: /* @__PURE__ */ jsx(InstantVerificationErrorContext.Provider, {
|
|
3185
|
+
value: instantVerificationError,
|
|
3186
|
+
children: /* @__PURE__ */ jsx(PayoutVerificationMethod, {
|
|
3187
|
+
...verificationMethodFormProps,
|
|
3188
|
+
id: PayoutVerificationMethodFormID,
|
|
3189
|
+
heading: t(($) => $["addABankAccountForPayouts"]),
|
|
3190
|
+
country,
|
|
3191
|
+
accountHolder,
|
|
3192
|
+
legalEntityResponse,
|
|
3193
|
+
provider,
|
|
3194
|
+
bankVendorsLoadingStatus,
|
|
3195
|
+
bankInfoValidated,
|
|
3196
|
+
instantVerificationAvailable
|
|
3197
|
+
})
|
|
3198
|
+
})
|
|
3199
|
+
}),
|
|
3200
|
+
/* @__PURE__ */ jsx("div", {
|
|
3201
|
+
className: activeForm?.formId !== payoutSteps.payoutAccountDetails.formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
3202
|
+
children: /* @__PURE__ */ jsx(PayoutAccount, {
|
|
3203
|
+
...payoutAccountFormProps,
|
|
3204
|
+
heading: t(($) => $["addABankAccountForPayouts"]),
|
|
3205
|
+
id: payoutSteps.payoutAccountDetails.formId,
|
|
3206
|
+
country: bankCountry,
|
|
3207
|
+
legalEntityResponse,
|
|
3208
|
+
arePayoutAccountDetailsInvalid,
|
|
3209
|
+
invalidFieldNames,
|
|
3210
|
+
preferredCurrencyCode: globalData?.payoutCountryDetails?.preferredCurrency
|
|
3211
|
+
})
|
|
3212
|
+
}),
|
|
3213
|
+
/* @__PURE__ */ jsx("div", {
|
|
3214
|
+
className: activeForm?.formId !== PayoutAccountDocumentsFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
3215
|
+
children: /* @__PURE__ */ jsx(MemoizedBankDocumentClassification, {
|
|
3216
|
+
...bankDocumentFormProps,
|
|
3217
|
+
id: PayoutAccountDocumentsFormID,
|
|
3218
|
+
legalEntity: legalEntityResponse,
|
|
3219
|
+
country: bankCountry
|
|
3220
|
+
})
|
|
3221
|
+
}),
|
|
3222
|
+
/* @__PURE__ */ jsx(Show, {
|
|
3223
|
+
when: showInstantVerificationPayoutModal,
|
|
3224
|
+
children: /* @__PURE__ */ jsx(BankVerification, {
|
|
3225
|
+
...accountVerificationFormProps,
|
|
3226
|
+
heading: t(($) => $["bankAccountVerification"]),
|
|
3227
|
+
id: PayoutAccountVerificationFormID,
|
|
3228
|
+
provider,
|
|
3229
|
+
country: bankCountry,
|
|
3230
|
+
onBack,
|
|
3231
|
+
hideSidebar: setHideSidebar,
|
|
3232
|
+
setBankVerificationError: setInstantVerificationError,
|
|
3233
|
+
bankInfoValidated,
|
|
3234
|
+
setBankInfoValidated,
|
|
3235
|
+
formIsActive: activeForm?.formId === PayoutVerificationMethodFormID,
|
|
3236
|
+
createTrustedTransferInstrument
|
|
3237
|
+
})
|
|
3238
|
+
})
|
|
3239
|
+
]
|
|
3240
|
+
});
|
|
3241
|
+
}
|
|
3242
|
+
//#endregion
|
|
3243
|
+
//#region src/components/BankAccount/forms/PayoutDetails/rules.ts
|
|
3244
|
+
var rules = ({ data, isFeatureEnabled, isSettingEnabled, isExperimentEnabled }) => {
|
|
3245
|
+
const isForcedManualPayoutFlowEnabled = isExperimentEnabled?.(ExperimentNames.BankingPayoutFlow_ForcedManualVerification) && !isSettingEnabled?.(SettingNames.AllowIntraRegionCrossBorderPayout);
|
|
3246
|
+
return createFormRules({
|
|
3247
|
+
whenUsingManualVerification: () => {
|
|
3248
|
+
if (isForcedManualPayoutFlowEnabled) return "REQUIRED";
|
|
3249
|
+
if (!data.payoutVerificationMethod) return;
|
|
3250
|
+
if (data?.payoutVerificationMethod?.payoutVerificationMethod === "manualVerification") return "REQUIRED";
|
|
3251
|
+
},
|
|
3252
|
+
whenUsingInstantVerification: () => {
|
|
3253
|
+
if (isForcedManualPayoutFlowEnabled) return isUsingManualFlow.value ? void 0 : "REQUIRED";
|
|
3254
|
+
if (!data.payoutVerificationMethod) return "REQUIRED";
|
|
3255
|
+
if (data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification") return "REQUIRED";
|
|
3256
|
+
},
|
|
3257
|
+
verifiedBankAccountNumber: () => {
|
|
3258
|
+
if (data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification") return "REQUIRED";
|
|
3259
|
+
},
|
|
3260
|
+
bankStatementRequirement: () => {
|
|
3261
|
+
if (isFeatureEnabled?.(FeatureNames.EnablePayoutDetailsMultiForm)) return "REQUIRED";
|
|
3262
|
+
if (data?.payoutVerificationMethod?.payoutVerificationMethod === "manualVerification") return "REQUIRED";
|
|
3263
|
+
},
|
|
3264
|
+
bankStatementDescription: () => {
|
|
3265
|
+
if (data?.payoutVerificationMethod?.payoutVerificationMethod === "manualVerification") return "OPTIONAL";
|
|
3266
|
+
}
|
|
3267
|
+
});
|
|
3268
|
+
};
|
|
3269
|
+
//#endregion
|
|
3270
|
+
//#region src/components/BankAccount/mapping/mapApiDocumentToPayoutDocuments.ts
|
|
3271
|
+
var mapApiDocumentToPayoutDocuments = (entityId) => {
|
|
3272
|
+
const bankStatement = getDocument(entityId, "bankStatement");
|
|
3273
|
+
if (!bankStatement) throw new Error(`bankStatement with id ${entityId} not found`);
|
|
3274
|
+
return {
|
|
3275
|
+
bankStatementDocument: [mapExistingFile(getPageName(bankStatement))],
|
|
3276
|
+
description: bankStatement.description
|
|
3277
|
+
};
|
|
3278
|
+
};
|
|
3279
|
+
//#endregion
|
|
3280
|
+
//#region src/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.ts
|
|
3281
|
+
/**
|
|
3282
|
+
* Easy to use function for mapping payout account details component data to transferInstrument
|
|
3283
|
+
* @param payoutDetails - Details person data
|
|
3284
|
+
* @returns transferInstrument - a transferInstrument the same as found in API response
|
|
3285
|
+
*/
|
|
3286
|
+
var mapPayoutDetailsToTransferInstrument = ({ data, legalEntity, enabledCrossBorderPayouts }) => {
|
|
3287
|
+
if (!data.payoutAccountDetails || !data.payoutVerificationMethod) throw new Error("Missing payout details data");
|
|
3288
|
+
if (enabledCrossBorderPayouts && !data.payoutCountryDetails) throw new Error("Missing payout details data");
|
|
3289
|
+
const bankCountry = enabledCrossBorderPayouts ? data.payoutCountryDetails?.bankCountry : data.payoutVerificationMethod?.bankCountry;
|
|
3290
|
+
const preferredCurrency = enabledCrossBorderPayouts ? data.payoutCountryDetails?.preferredCurrency : void 0;
|
|
3291
|
+
return {
|
|
3292
|
+
bankAccount: mapPayoutAccountSchemaToApiBankAccount(data.payoutAccountDetails, bankCountry, preferredCurrency, enabledCrossBorderPayouts),
|
|
3293
|
+
legalEntityId: legalEntity.id,
|
|
3294
|
+
type: "bankAccount"
|
|
3295
|
+
};
|
|
3296
|
+
};
|
|
3297
|
+
//#endregion
|
|
3298
|
+
//#region src/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.ts
|
|
3299
|
+
var mapPayoutDocumentsToApiDocuments = async (data, entityId) => {
|
|
3300
|
+
const { bankStatementDocument, description } = data.payoutAccountDocuments ?? {};
|
|
3301
|
+
if (!bankStatementDocument?.length) return;
|
|
3302
|
+
const page1 = bankStatementDocument[0];
|
|
3303
|
+
if (!page1) throw new Error("Document needs at least one page");
|
|
3304
|
+
return await createDocumentRequest({
|
|
3305
|
+
entityId,
|
|
3306
|
+
entityType: "bankAccount",
|
|
3307
|
+
documentType: "bankStatement",
|
|
3308
|
+
page1,
|
|
3309
|
+
description,
|
|
3310
|
+
existingDocument: getDocument(entityId, "bankStatement")
|
|
3311
|
+
});
|
|
3312
|
+
};
|
|
3313
|
+
//#endregion
|
|
3314
|
+
//#region src/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.ts
|
|
3315
|
+
var obscuredPayoutFields = ["bankAccountNumber", "iban"];
|
|
3316
|
+
var payoutDetailsCountryConfig = {
|
|
3317
|
+
[CountryCodes.Canada]: { bankStatementDocument: { label: "listitemVoidedChequeBankLetterBankStatementOnline" } },
|
|
3318
|
+
[CountryCodes.UnitedKingdom]: {
|
|
3319
|
+
bankCity: { label: "bankCityTown" },
|
|
3320
|
+
bankStatementDocument: { label: "listitemVoidedChequeBankLetterBankStatementOnline" }
|
|
3321
|
+
}
|
|
3322
|
+
};
|
|
3323
|
+
var parseConfiguration = ({ requiredFields, country, bankVerificationAvailable }) => parsePayoutScenarios({
|
|
3324
|
+
requiredFields: requiredFields?.fields,
|
|
3325
|
+
country,
|
|
3326
|
+
bankVerificationAvailable
|
|
3327
|
+
});
|
|
3328
|
+
function parsePayoutScenarios({ requiredFields, country, bankVerificationAvailable }) {
|
|
3329
|
+
if (!requiredFields) return {};
|
|
3330
|
+
let formConfig = {
|
|
3331
|
+
payoutVerificationMethod: { rule: "REQUIRED" },
|
|
3332
|
+
bankCountry: { rule: "REQUIRED" },
|
|
3333
|
+
preferredCurrency: { rule: "REQUIRED" },
|
|
3334
|
+
bankStatementDocument: { rule: "bankStatementRequirement" },
|
|
3335
|
+
description: { rule: "bankStatementDescription" }
|
|
3336
|
+
};
|
|
3337
|
+
requiredFields.forEach((fieldName) => {
|
|
3338
|
+
formConfig[fieldName] = {
|
|
3339
|
+
rule: bankVerificationAvailable ? "whenUsingManualVerification" : "REQUIRED",
|
|
3340
|
+
obscured: obscuredPayoutFields.includes(fieldName)
|
|
3341
|
+
};
|
|
3342
|
+
});
|
|
3343
|
+
if (bankVerificationAvailable) formConfig = {
|
|
3344
|
+
...formConfig,
|
|
3345
|
+
verifiedAccountHolder: { rule: "whenUsingInstantVerification" },
|
|
3346
|
+
verifiedBankCountry: { rule: "whenUsingInstantVerification" },
|
|
3347
|
+
verifiedBankName: { rule: "whenUsingInstantVerification" },
|
|
3348
|
+
verifiedCurrencyCode: { rule: "whenUsingInstantVerification" },
|
|
3349
|
+
verifiedBankAccountNumber: { rule: "whenUsingInstantVerification" }
|
|
3350
|
+
};
|
|
3351
|
+
return augmentWithCountryConfigs(payoutDetailsCountryConfig[country], formConfig);
|
|
3352
|
+
}
|
|
3353
|
+
var getAppropriatePayoutDetailsSteps = (isEditing, instantVerificationAvailable, canChangeCountry, isCrossBorderEnabled, isForcedManualPayoutFlowEnabled) => {
|
|
3354
|
+
const dependentSteps = {
|
|
3355
|
+
payoutCountryDetails: payoutSteps.payoutCountryDetails,
|
|
3356
|
+
payoutVerificationMethod: payoutSteps.payoutVerificationMethod,
|
|
3357
|
+
payoutAccountDetails: payoutSteps.payoutAccountDetails,
|
|
3358
|
+
payoutAccountDocuments: payoutSteps.payoutAccountDocuments,
|
|
3359
|
+
payoutAccountVerification: payoutSteps.payoutAccountVerification
|
|
3360
|
+
};
|
|
3361
|
+
if (!isCrossBorderEnabled) delete dependentSteps["payoutCountryDetails"];
|
|
3362
|
+
if (isEditing || !instantVerificationAvailable && !canChangeCountry || isForcedManualPayoutFlowEnabled) delete dependentSteps["payoutVerificationMethod"];
|
|
3363
|
+
return dependentSteps;
|
|
3364
|
+
};
|
|
3365
|
+
//#endregion
|
|
3366
|
+
//#region src/components/BankAccount/tasks/PayoutDetailsDropin/utils.ts
|
|
3367
|
+
var CUSTOM_LABELS = {
|
|
3368
|
+
verifiedAccountHolder: "accountHolder",
|
|
3369
|
+
verifiedBankCountry: "bankCountry",
|
|
3370
|
+
verifiedBankName: "bankName",
|
|
3371
|
+
verifiedCurrencyCode: "currencyCode",
|
|
3372
|
+
verifiedBankAccountNumber: "bankAccountNumber"
|
|
3373
|
+
};
|
|
3374
|
+
/**
|
|
3375
|
+
* we are determining the header of the modal from the first error. to be refined in later iterations
|
|
3376
|
+
*
|
|
3377
|
+
* @param errors
|
|
3378
|
+
*/
|
|
3379
|
+
var getInvalidFieldsErrorHeader = (invalidField) => {
|
|
3380
|
+
switch (invalidField) {
|
|
3381
|
+
case "LEGAL_BUSINESS_NAME":
|
|
3382
|
+
case "FIRST_NAME":
|
|
3383
|
+
case "LAST_NAME": return "caasBankAccountHolderDoesNotMatch";
|
|
3384
|
+
default: return "weCouldntCompleteTheAccountCheck";
|
|
3385
|
+
}
|
|
3386
|
+
};
|
|
3387
|
+
/**
|
|
3388
|
+
* we are determining the content of the modal from the first error. to be refined in later iterations
|
|
3389
|
+
*
|
|
3390
|
+
* @param errors
|
|
3391
|
+
*/
|
|
3392
|
+
var getInvalidFieldsErrorContent = (invalidField) => {
|
|
3393
|
+
switch (invalidField) {
|
|
3394
|
+
case "LEGAL_BUSINESS_NAME": return "caasBankAccountMustBeInYourNameYourBusinessLegalNameOrDoingBusinessAs";
|
|
3395
|
+
case "FIRST_NAME":
|
|
3396
|
+
case "LAST_NAME": return "caasBankAccountMustBeInYourName";
|
|
3397
|
+
default: return "weCouldntCompleteTheAccountCheck";
|
|
3398
|
+
}
|
|
3399
|
+
};
|
|
3400
|
+
var defaultInvalidErrorMessage = {
|
|
3401
|
+
header: "weCouldntCompleteTheAccountCheck",
|
|
3402
|
+
content: "weCouldntCompleteTheAccountCheck"
|
|
3403
|
+
};
|
|
3404
|
+
var getInvalidFieldsErrorMessage = (errors) => {
|
|
3405
|
+
if (!errors || errors.length === 0) return defaultInvalidErrorMessage;
|
|
3406
|
+
const [firstError] = errors;
|
|
3407
|
+
const { invalidFields } = firstError;
|
|
3408
|
+
if (!invalidFields || invalidFields.length === 0) return defaultInvalidErrorMessage;
|
|
3409
|
+
const [firstInvalidField] = invalidFields;
|
|
3410
|
+
return {
|
|
3411
|
+
header: getInvalidFieldsErrorHeader(firstInvalidField),
|
|
3412
|
+
content: getInvalidFieldsErrorContent(firstInvalidField)
|
|
3413
|
+
};
|
|
3414
|
+
};
|
|
3415
|
+
var getPayoutVerificationMethod = (transferInstrument, instantVerificationEnabled) => {
|
|
3416
|
+
if (transferInstrument) return "manualVerification";
|
|
3417
|
+
else return instantVerificationEnabled ? "instantVerification" : "manualVerification";
|
|
3418
|
+
};
|
|
3419
|
+
/**
|
|
3420
|
+
* Ensures that all the "verified" fields have the corresponding regular field's label in the summary.
|
|
3421
|
+
* Same as if they were manually entered.
|
|
3422
|
+
*/
|
|
3423
|
+
var formatAccountVerificationSummary = (data) => {
|
|
3424
|
+
if (!data) return {};
|
|
3425
|
+
const summary = {};
|
|
3426
|
+
keysOf(CUSTOM_LABELS).forEach((key) => {
|
|
3427
|
+
if (!data[key]) return;
|
|
3428
|
+
summary[key] = summaryItem(CUSTOM_LABELS[key], data[key]);
|
|
3429
|
+
});
|
|
3430
|
+
return summary;
|
|
3431
|
+
};
|
|
3432
|
+
//#endregion
|
|
3433
|
+
//#region src/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.tsx
|
|
3434
|
+
function PayoutDetailsDropin({ legalEntityResponse, problems: propProblems, onSubmit: externalOnSubmit, onChange, asModal = false, handleCloseClick, taskType: propTaskType, handleHomeClick, currentTransferInstrumentId, setCurrentTransferInstrumentId, navigateBackToTaskList, handleBackClick: externalBackClick, hideSidebar, openBankingPartnerConfigId }) {
|
|
3435
|
+
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
3436
|
+
const { data: transferInstrument, refetch: refetchTransferInstrument, isLoading: isTransferInstrumentLoading } = useTransferInstrument(currentTransferInstrumentId ?? skipToken);
|
|
3437
|
+
const { mutateAsync: handleUpdateTransferInstrument } = useUpdateTransferInstrument();
|
|
3438
|
+
const { mutateAsync: handleUpdateTrustedTransferInstrument } = useUpdateTrustedTransferInstrument();
|
|
3439
|
+
const { mutateAsync: handleCreateTrustedTransferInstrument, status: createTrustedTransferInstrumentStatus } = useCreateTrustedTransferInstrument();
|
|
3440
|
+
const [previousTrustedInstrumentStatus, setPreviousTrustedInstrumentStatus] = useState$1(createTrustedTransferInstrumentStatus);
|
|
3441
|
+
const { t, i18n: i18next } = useTranslation("banking");
|
|
3442
|
+
const { t: commonT } = useTranslation("common");
|
|
3443
|
+
const userEvents = useAnalyticsContext();
|
|
3444
|
+
const { showToast, clearToasts } = useToastContext();
|
|
3445
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
3446
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
3447
|
+
const enabledCrossBorderPayouts = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
|
|
3448
|
+
const defaultPayoutCountry = getLegalEntityCountry(legalEntityResponse);
|
|
3449
|
+
const existingPayoutDetails = useMemo$1(() => transferInstrument ? mapTransferInstrumentToPayoutAccount(transferInstrument, enabledCrossBorderPayouts) : void 0, [transferInstrument]);
|
|
3450
|
+
const [documents, setDocuments] = useState$1();
|
|
3451
|
+
const [isCaasCalled, setIsCaasCalled] = useState$1(false);
|
|
3452
|
+
const accountHolder = getPayoutAccountHolderName(legalEntityResponse, t);
|
|
3453
|
+
const fallbackCurrency = currencyByCountry[defaultPayoutCountry]?.[0];
|
|
3454
|
+
const accountHolderName = accountHolder || getLegalEntityNameBasedOnType(legalEntityResponse);
|
|
3455
|
+
const instantVerificationEnabled = Boolean(!isTransferInstrumentLoading && !transferInstrument && isSettingEnabled("instantBankVerification"));
|
|
3456
|
+
const taskType = propTaskType ?? TaskTypes.PAYOUT;
|
|
3457
|
+
const [trustedTransferInstrumentId, setTrustedTransferInstrumentId] = useState$1();
|
|
3458
|
+
const prefilledData = {
|
|
3459
|
+
payoutCountryDetails: {
|
|
3460
|
+
bankCountry: existingPayoutDetails?.payoutCountryDetails?.bankCountry ?? defaultPayoutCountry,
|
|
3461
|
+
preferredCurrency: existingPayoutDetails?.payoutCountryDetails?.preferredCurrency
|
|
3462
|
+
},
|
|
3463
|
+
payoutAccountDetails: {
|
|
3464
|
+
accountHolder: accountHolderName,
|
|
3465
|
+
currency: fallbackCurrency,
|
|
3466
|
+
...existingPayoutDetails?.payoutAccountDetails
|
|
3467
|
+
},
|
|
3468
|
+
payoutVerificationMethod: {
|
|
3469
|
+
payoutVerificationMethod: getPayoutVerificationMethod(transferInstrument, instantVerificationEnabled),
|
|
3470
|
+
bankCountry: defaultPayoutCountry,
|
|
3471
|
+
...existingPayoutDetails?.payoutVerificationMethod
|
|
3472
|
+
},
|
|
3473
|
+
payoutAccountVerification: {
|
|
3474
|
+
verifiedAccountHolder: accountHolderName,
|
|
3475
|
+
verifiedBankCountry: defaultPayoutCountry,
|
|
3476
|
+
...existingPayoutDetails?.payoutAccountVerification
|
|
3477
|
+
}
|
|
3478
|
+
};
|
|
3479
|
+
const documentUtils = documentApiUtils({
|
|
3480
|
+
baseUrl: baseUrl.value,
|
|
3481
|
+
rootLegalEntityId: rootLegalEntityId.value
|
|
3482
|
+
});
|
|
3483
|
+
const { state: { currentState } } = useStateContext();
|
|
3484
|
+
const formValidity = currentState.validityByForm;
|
|
3485
|
+
const bankAccountCountry = (enabledCrossBorderPayouts ? currentState?.data?.payoutCountryDetails?.bankCountry : currentState?.data?.payoutVerificationMethod?.bankCountry) ?? defaultPayoutCountry;
|
|
3486
|
+
const [hideFooterAndSidebar, setHideFooterAndSidebar] = useState$1(false);
|
|
3487
|
+
const [skipSubmit, setSkipSubmit] = useState$1(false);
|
|
3488
|
+
const [loadingStatus, setLoadingStatus] = useState$1("loading");
|
|
3489
|
+
const [isSubmitting, setIsSubmitting] = useState$1(false);
|
|
3490
|
+
const [configurationLoadingStatus, setConfigurationLoadingStatus] = useState$1("loading");
|
|
3491
|
+
const [data, setData] = useState$1(prefilledData);
|
|
3492
|
+
const [problems, setProblems] = useState$1(propProblems || (transferInstrument?.id ? getCapabilityProblems(legalEntityResponse, bankAccountCountry)?.BankAccount?.[transferInstrument.id] : void 0));
|
|
3493
|
+
const [accountDetailsFromInput, setAccountDetailsFromInput] = useState$1(prefilledData.payoutAccountDetails);
|
|
3494
|
+
const [hasAsyncValidationError, setHasAsyncValidationError] = useState$1(false);
|
|
3495
|
+
const isMaskedBankAccountNumber = data.payoutAccountDetails?.bankAccountNumber?.includes("*") || data.payoutAccountDetails?.iban?.includes("*");
|
|
3496
|
+
const existingBankAccountFormat = transferInstrument ? transferInstrument?.bankAccount?.accountIdentification?.type === "numberAndBic" ? "numberAndBic" : existingPayoutDetails?.payoutAccountDetails?.iban ? "iban" : "local" : void 0;
|
|
3497
|
+
/**
|
|
3498
|
+
* Analytics
|
|
3499
|
+
*/
|
|
3500
|
+
useTaskLandedEvent(taskType);
|
|
3501
|
+
useEffect$1(() => {
|
|
3502
|
+
setData({
|
|
3503
|
+
...currentState.data,
|
|
3504
|
+
payoutAccountDetails: {
|
|
3505
|
+
...currentState.data?.payoutAccountDetails,
|
|
3506
|
+
currency: currencyByCountry[bankAccountCountry]?.[0]
|
|
3507
|
+
}
|
|
3508
|
+
});
|
|
3509
|
+
onChange?.(currentState);
|
|
3510
|
+
}, [
|
|
3511
|
+
bankAccountCountry,
|
|
3512
|
+
currentState,
|
|
3513
|
+
onChange
|
|
3514
|
+
]);
|
|
3515
|
+
const { data: providers, refetch: refetchBankVerificationProviders, status: bankVendorsLoadingStatus } = useBankVerificationProviders({
|
|
3516
|
+
country: bankAccountCountry,
|
|
3517
|
+
configId: openBankingPartnerConfigId,
|
|
3518
|
+
locale: i18next.language
|
|
3519
|
+
}, { enabled: instantVerificationEnabled });
|
|
3520
|
+
/**
|
|
3521
|
+
* instantVerificationEnabled = conditions are met to show the option for instant verification
|
|
3522
|
+
* instantVerificationAvailable = instantVerificationEnabled AND there is a provider returned for the bank account country
|
|
3523
|
+
*/
|
|
3524
|
+
const instantVerificationAvailable = useMemo$1(() => Boolean(instantVerificationEnabled && providers?.[0]?.redirectUrl), [instantVerificationEnabled, providers]);
|
|
3525
|
+
const getPayoutAccountFormatData = useCallback$1(async () => getAccountFormatsForCountry(bankAccountCountry), [bankAccountCountry]);
|
|
3526
|
+
/**
|
|
3527
|
+
* Fetch Configurations
|
|
3528
|
+
*/
|
|
3529
|
+
const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
|
|
3530
|
+
parseConfiguration,
|
|
3531
|
+
legalEntityType: legalEntityResponse.type,
|
|
3532
|
+
getPayoutAccountFormatData,
|
|
3533
|
+
instantVerificationAvailable,
|
|
3534
|
+
setLoadingStatus: setConfigurationLoadingStatus,
|
|
3535
|
+
country: bankAccountCountry,
|
|
3536
|
+
existingBankAccountFormat
|
|
3537
|
+
});
|
|
3538
|
+
/**
|
|
3539
|
+
* parse configuration and create component props
|
|
3540
|
+
*/
|
|
3541
|
+
const fieldsFromCustomRules = useMemo$1(() => rules({
|
|
3542
|
+
data,
|
|
3543
|
+
country: bankAccountCountry,
|
|
3544
|
+
taskType,
|
|
3545
|
+
requiredFields,
|
|
3546
|
+
isFeatureEnabled
|
|
3547
|
+
}), [
|
|
3548
|
+
bankAccountCountry,
|
|
3549
|
+
data,
|
|
3550
|
+
taskType,
|
|
3551
|
+
isFeatureEnabled
|
|
3552
|
+
]);
|
|
3553
|
+
const { data: checkAsAServiceData, refetch: refetchCheckAsAService, isLoading: isCheckAsAServiceLoading, isError: isCheckAsAServiceError } = useCheck(useMemo$1(() => {
|
|
3554
|
+
return mapPayoutAccountSchemaToApiBankAccount(data.payoutAccountDetails ?? { bankAccountNumber: "" }, bankAccountCountry);
|
|
3555
|
+
}, [data, bankAccountCountry]).accountIdentification, { enabled: false });
|
|
3556
|
+
const checkAsAServiceResultStatus = checkAsAServiceData?.status;
|
|
3557
|
+
const checkAsAServiceResultErrors = checkAsAServiceData?.errors;
|
|
3558
|
+
const provider = providers?.[0];
|
|
3559
|
+
const isInstantVerificationFlow = data.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification";
|
|
3560
|
+
const [isModalOpen, setIsModalOpen] = useState$1(false);
|
|
3561
|
+
const payoutDetailsSteps = useMemo$1(() => {
|
|
3562
|
+
const appropriatePayoutDetailsSteps = getAppropriatePayoutDetailsSteps(Boolean(prefilledData?.payoutAccountDetails?.transferInstrumentId), instantVerificationAvailable, isSettingEnabled(SettingNames.AllowIntraRegionCrossBorderPayout), enabledCrossBorderPayouts);
|
|
3563
|
+
if (!isCheckAsAServiceError && (checkAsAServiceResultStatus === "VALID" || checkAsAServiceResultStatus === void 0) && !isMaskedBankAccountNumber) delete appropriatePayoutDetailsSteps[payoutSteps.payoutAccountDocuments.formId];
|
|
3564
|
+
return appropriatePayoutDetailsSteps;
|
|
3565
|
+
}, [
|
|
3566
|
+
providers,
|
|
3567
|
+
checkAsAServiceResultStatus,
|
|
3568
|
+
isCheckAsAServiceError,
|
|
3569
|
+
isMaskedBankAccountNumber
|
|
3570
|
+
]);
|
|
3571
|
+
const derivedProps = useMemo$1(() => {
|
|
3572
|
+
return getPropsFromConfigurations({
|
|
3573
|
+
scenarioConfiguration: fieldConfigurations,
|
|
3574
|
+
forms: payoutDetailsSteps,
|
|
3575
|
+
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
3576
|
+
dataMissingErrors: problems?.missingData ?? [],
|
|
3577
|
+
fieldsWithExistingData: [],
|
|
3578
|
+
customRules: fieldsFromCustomRules,
|
|
3579
|
+
legalEntityType: legalEntityResponse.type
|
|
3580
|
+
});
|
|
3581
|
+
}, [
|
|
3582
|
+
fieldConfigurations,
|
|
3583
|
+
payoutDetailsSteps,
|
|
3584
|
+
problems?.remediationActions,
|
|
3585
|
+
problems?.missingData,
|
|
3586
|
+
fieldsFromCustomRules,
|
|
3587
|
+
legalEntityResponse.type
|
|
3588
|
+
]);
|
|
3589
|
+
useUnifyLoadingStatus(setLoadingStatus, configurationLoadingStatus, instantVerificationEnabled ? bankVendorsLoadingStatus : "success", isSubmitting ? "loading" : "success");
|
|
3590
|
+
/**
|
|
3591
|
+
* Configure forms based on obtained props
|
|
3592
|
+
*/
|
|
3593
|
+
const forms = useMemo$1(() => {
|
|
3594
|
+
return addValidityToForms(getRequiredForms(payoutDetailsSteps, derivedProps?.requiredFields, derivedProps?.optionalFields), hasAsyncValidationError ? {
|
|
3595
|
+
...formValidity,
|
|
3596
|
+
payoutAccountDetails: false
|
|
3597
|
+
} : formValidity, problems);
|
|
3598
|
+
}, [
|
|
3599
|
+
derivedProps,
|
|
3600
|
+
formValidity,
|
|
3601
|
+
hasAsyncValidationError,
|
|
3602
|
+
problems,
|
|
3603
|
+
payoutDetailsSteps
|
|
3604
|
+
]);
|
|
3605
|
+
useEffect$1(() => {
|
|
3606
|
+
if (!transferInstrument?.documentDetails?.length) return;
|
|
3607
|
+
if (transferInstrument.id) documentUtils.fetchDocuments(transferInstrument.documentDetails, transferInstrument.id).then(() => {
|
|
3608
|
+
setDocuments(mapApiDocumentToPayoutDocuments(transferInstrument.id));
|
|
3609
|
+
}).catch(() => {
|
|
3610
|
+
showToast({
|
|
3611
|
+
label: commonT(($) => $["failedToFetchRelevantDocuments"]),
|
|
3612
|
+
variant: "error"
|
|
3613
|
+
});
|
|
3614
|
+
});
|
|
3615
|
+
}, [transferInstrument?.documentDetails]);
|
|
3616
|
+
const submitDocuments = async ({ forms, transferInstrument, dataSubmitted }) => {
|
|
3617
|
+
if (forms.some((form) => form.formId === payoutSteps.payoutAccountDocuments.formId)) {
|
|
3618
|
+
const documentToUpload = await mapPayoutDocumentsToApiDocuments(dataSubmitted, transferInstrument.id);
|
|
3619
|
+
if (documentToUpload) try {
|
|
3620
|
+
(await documentUtils.uploadDocuments([documentToUpload], transferInstrument.id)).forEach((document) => {
|
|
3621
|
+
userEvents.addTaskEvent("Success", {
|
|
3622
|
+
actionType: "upload",
|
|
3623
|
+
documentType: dataSubmitted.payoutAccountDocuments?.documentType ?? document.type,
|
|
3624
|
+
fileExtention: document.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ?? void 0
|
|
3625
|
+
});
|
|
3626
|
+
});
|
|
3627
|
+
} catch {
|
|
3628
|
+
setProblems({
|
|
3629
|
+
...problems,
|
|
3630
|
+
validationErrors: { payoutAccountDocuments: { bankStatementDocument: true } }
|
|
3631
|
+
});
|
|
3632
|
+
throw new Error(commonT(($) => $["remediationMessage_1_704"]));
|
|
3633
|
+
} finally {
|
|
3634
|
+
await refetchTransferInstrument?.();
|
|
3635
|
+
}
|
|
3636
|
+
}
|
|
3637
|
+
};
|
|
3638
|
+
useEffect$1(() => {
|
|
3639
|
+
const payoutAccountData = cloneObject(data)?.payoutAccountDetails;
|
|
3640
|
+
if (payoutAccountData) setAccountDetailsFromInput(payoutAccountData);
|
|
3641
|
+
}, [data]);
|
|
3642
|
+
const onSubmit = async () => {
|
|
3643
|
+
setIsSubmitting(true);
|
|
3644
|
+
const dataSubmitted = cloneObject(data);
|
|
3645
|
+
const { payoutAccountDetails, payoutVerificationMethod } = dataSubmitted;
|
|
3646
|
+
const baseTracking = {
|
|
3647
|
+
actionType: "submit",
|
|
3648
|
+
documentType: "bankStatement",
|
|
3649
|
+
bankCountry: payoutVerificationMethod?.bankCountry ?? defaultPayoutCountry,
|
|
3650
|
+
bankCurrency: payoutAccountDetails?.currency ?? null
|
|
3651
|
+
};
|
|
3652
|
+
let transferInstrumentFromInput = mapPayoutDetailsToTransferInstrument({
|
|
3653
|
+
data: dataSubmitted,
|
|
3654
|
+
legalEntity: legalEntityResponse,
|
|
3655
|
+
enabledCrossBorderPayouts
|
|
3656
|
+
});
|
|
3657
|
+
transferInstrumentFromInput = omitObscuredFieldsIfUnchanged(["bankAccount.accountIdentification.accountNumber", "bankAccount.accountIdentification.iban"], transferInstrumentFromInput, transferInstrument);
|
|
3658
|
+
try {
|
|
3659
|
+
if (!transferInstrumentFromInput) return;
|
|
3660
|
+
const response = await (transferInstrument ? handleUpdateTransferInstrument({
|
|
3661
|
+
transferInstrument: transferInstrumentFromInput,
|
|
3662
|
+
transferInstrumentId: transferInstrument.id
|
|
3663
|
+
}) : createTransferInstrument(rootLegalEntityId.value, baseUrl.value, transferInstrumentFromInput));
|
|
3664
|
+
setCurrentTransferInstrumentId?.(response?.id);
|
|
3665
|
+
userEvents.addTaskEvent("Success", { ...baseTracking });
|
|
3666
|
+
try {
|
|
3667
|
+
await submitDocuments({
|
|
3668
|
+
forms,
|
|
3669
|
+
transferInstrument: response,
|
|
3670
|
+
dataSubmitted
|
|
3671
|
+
});
|
|
3672
|
+
clearToasts();
|
|
3673
|
+
externalOnSubmit?.({
|
|
3674
|
+
...dataSubmitted,
|
|
3675
|
+
id: response?.id
|
|
3676
|
+
});
|
|
3677
|
+
} catch (e) {
|
|
3678
|
+
showToast({
|
|
3679
|
+
label: e.message,
|
|
3680
|
+
variant: "error"
|
|
3681
|
+
});
|
|
3682
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
3683
|
+
...baseTracking,
|
|
3684
|
+
returnType: e?.errorCode || "backend",
|
|
3685
|
+
returnValue: e?.title || e?.message
|
|
3686
|
+
});
|
|
3687
|
+
} finally {
|
|
3688
|
+
setIsSubmitting(false);
|
|
3689
|
+
}
|
|
3690
|
+
} catch (e) {
|
|
3691
|
+
if (isValidationError(e)) {
|
|
3692
|
+
const validationErrors = processValidationErrors(e, taskType);
|
|
3693
|
+
setProblems({
|
|
3694
|
+
...problems,
|
|
3695
|
+
validationErrors
|
|
3696
|
+
});
|
|
3697
|
+
} else if (isIdDocumentUploadError(e)) showToast({
|
|
3698
|
+
label: t(($) => $["idDocumentAlreadyUploaded"]),
|
|
3699
|
+
variant: "error"
|
|
3700
|
+
});
|
|
3701
|
+
else if (isBankStatementUploadError(e)) showToast({
|
|
3702
|
+
label: t(($) => $["bankStatementAlreadyUploaded"]),
|
|
3703
|
+
variant: "error"
|
|
3704
|
+
});
|
|
3705
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
3706
|
+
label: commonT(($) => $["maintenanceModeMessage"]),
|
|
3707
|
+
variant: "error",
|
|
3708
|
+
duration: "indefinite"
|
|
3709
|
+
});
|
|
3710
|
+
else {
|
|
3711
|
+
const errorTranslatable = mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable(e);
|
|
3712
|
+
showToast({
|
|
3713
|
+
label: commonT(($) => $[errorTranslatable]),
|
|
3714
|
+
variant: "error"
|
|
3715
|
+
});
|
|
3716
|
+
}
|
|
3717
|
+
setIsSubmitting(false);
|
|
3718
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
3719
|
+
...baseTracking,
|
|
3720
|
+
returnType: e?.errorCode || "backend",
|
|
3721
|
+
returnValue: e?.title || e?.message
|
|
3722
|
+
});
|
|
3723
|
+
}
|
|
3724
|
+
};
|
|
3725
|
+
const formatFileSummaryData = (bankDocuments) => {
|
|
3726
|
+
const bankStatementDocument = bankDocuments?.bankStatementDocument?.[0];
|
|
3727
|
+
return {
|
|
3728
|
+
documentType: bankDocuments?.documentType && commonT(($) => $[bankDocuments?.documentType]),
|
|
3729
|
+
fileName: bankStatementDocument?.name,
|
|
3730
|
+
description: bankDocuments?.description
|
|
3731
|
+
};
|
|
3732
|
+
};
|
|
3733
|
+
const canSubmit = () => {
|
|
3734
|
+
if (isInstantVerificationFlow) return false;
|
|
3735
|
+
const bankDetails = data.payoutAccountDetails;
|
|
3736
|
+
return !isEmpty(bankDetails) && Object.values(bankDetails).every(Boolean);
|
|
3737
|
+
};
|
|
3738
|
+
const datasetUtils = datasetUtilities(i18next.language);
|
|
3739
|
+
const formatDataForSummary = () => {
|
|
3740
|
+
const summaryData = cloneObject(data);
|
|
3741
|
+
summaryData.payoutAccountDetails.accountHolder = accountHolderName;
|
|
3742
|
+
if (summaryData.payoutVerificationMethod?.bankCountry && summaryData.payoutAccountDetails) summaryData.payoutAccountDetails.bankCountry = datasetUtils.getCountryName(summaryData.payoutVerificationMethod.bankCountry);
|
|
3743
|
+
if (summaryData.payoutAccountDocuments) summaryData.payoutAccountDocuments = formatFileSummaryData(data?.payoutAccountDocuments);
|
|
3744
|
+
summaryData.payoutAccountVerification = formatAccountVerificationSummary(data.payoutAccountVerification);
|
|
3745
|
+
return summaryData;
|
|
3746
|
+
};
|
|
3747
|
+
const createTrustedTransferInstrumentHandler = async (code, state) => {
|
|
3748
|
+
try {
|
|
3749
|
+
const trustedTransferInstrument = await handleCreateTrustedTransferInstrument({
|
|
3750
|
+
code,
|
|
3751
|
+
state
|
|
3752
|
+
});
|
|
3753
|
+
if (trustedTransferInstrument) {
|
|
3754
|
+
setTrustedTransferInstrumentId(trustedTransferInstrument.verificationReference);
|
|
3755
|
+
return trustedTransferInstrument;
|
|
3756
|
+
}
|
|
3757
|
+
} catch (e) {
|
|
3758
|
+
refetchBankVerificationProviders();
|
|
3759
|
+
const errorTranslatable = mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable(e);
|
|
3760
|
+
if (errorTranslatable === "transferInstrumentLimitHasAlreadyBeenMet") showToast({
|
|
3761
|
+
label: commonT(($) => $[errorTranslatable]),
|
|
3762
|
+
variant: "error"
|
|
3763
|
+
});
|
|
3764
|
+
throw e;
|
|
3765
|
+
}
|
|
3766
|
+
};
|
|
3767
|
+
const { handleNextClick, handleBackClick, activeForm, setShouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
|
|
3768
|
+
problems,
|
|
3769
|
+
forms,
|
|
3770
|
+
externalBackClick,
|
|
3771
|
+
onSubmit: skipSubmit ? async () => {
|
|
3772
|
+
if (enabledCrossBorderPayouts && trustedTransferInstrumentId && data.payoutCountryDetails?.preferredCurrency) try {
|
|
3773
|
+
await handleUpdateTrustedTransferInstrument({
|
|
3774
|
+
transferInstrumentId: trustedTransferInstrumentId,
|
|
3775
|
+
preferredCurrencyCode: data.payoutCountryDetails?.preferredCurrency
|
|
3776
|
+
});
|
|
3777
|
+
} catch {
|
|
3778
|
+
showToast({
|
|
3779
|
+
label: commonT(($) => $["failedToUpdateDetails"]),
|
|
3780
|
+
variant: "error"
|
|
3781
|
+
});
|
|
3782
|
+
}
|
|
3783
|
+
if (trustedTransferInstrumentId) externalOnSubmit?.({
|
|
3784
|
+
...data,
|
|
3785
|
+
id: trustedTransferInstrumentId
|
|
3786
|
+
});
|
|
3787
|
+
userEvents.addTaskEvent("Success", { actionType: "submit" });
|
|
3788
|
+
navigateBackToTaskList?.();
|
|
3789
|
+
} : onSubmit
|
|
3790
|
+
});
|
|
3791
|
+
useEffect$1(() => {
|
|
3792
|
+
if (isCaasCalled && forms) {
|
|
3793
|
+
if (checkAsAServiceResultStatus !== "VALID" && checkAsAServiceResultStatus !== "INCOMPLETE_INPUT") {
|
|
3794
|
+
const formIndex = forms.findIndex((f) => f.formId === "payoutAccountDocuments");
|
|
3795
|
+
if (formIndex > -1) gotoFormByFormIndex(formIndex);
|
|
3796
|
+
}
|
|
3797
|
+
if (checkAsAServiceResultStatus === "VALID") handleNextClick();
|
|
3798
|
+
}
|
|
3799
|
+
setIsCaasCalled(false);
|
|
3800
|
+
}, [
|
|
3801
|
+
forms,
|
|
3802
|
+
checkAsAServiceResultStatus,
|
|
3803
|
+
isCaasCalled
|
|
3804
|
+
]);
|
|
3805
|
+
const handleFormNextClick = async () => {
|
|
3806
|
+
if (activeForm.formId === "payoutVerificationMethod") if (isInstantVerificationFlow) {
|
|
3807
|
+
trackNavigation({
|
|
3808
|
+
userEvents,
|
|
3809
|
+
actionType: "next",
|
|
3810
|
+
label: "instantVerification",
|
|
3811
|
+
toForm: "instantVerification"
|
|
3812
|
+
});
|
|
3813
|
+
showInstantVerificationPayoutModal.value = true;
|
|
3814
|
+
return;
|
|
3815
|
+
} else {
|
|
3816
|
+
handleNextClick();
|
|
3817
|
+
return;
|
|
3818
|
+
}
|
|
3819
|
+
if (activeForm.formId === "payoutAccountDetails" && activeForm.isValid && data.payoutAccountDetails && !isMaskedBankAccountNumber) try {
|
|
3820
|
+
const { data: response } = await refetchCheckAsAService();
|
|
3821
|
+
setIsCaasCalled(true);
|
|
3822
|
+
if (response?.status === "INCOMPLETE_INPUT") setIsModalOpen(true);
|
|
3823
|
+
} catch {
|
|
3824
|
+
handleNextClick();
|
|
3825
|
+
}
|
|
3826
|
+
else handleNextClick();
|
|
3827
|
+
};
|
|
3828
|
+
if (previousTrustedInstrumentStatus !== createTrustedTransferInstrumentStatus) {
|
|
3829
|
+
if (activeForm.formId === "payoutAccountVerification" && activeForm.isValid && createTrustedTransferInstrumentStatus === "success" && data.payoutAccountVerification?.verifiedBankAccountNumber) {
|
|
3830
|
+
handleNextClick();
|
|
3831
|
+
setPreviousTrustedInstrumentStatus(createTrustedTransferInstrumentStatus);
|
|
3832
|
+
}
|
|
3833
|
+
if (activeForm.formId === "payoutVerificationMethod" && createTrustedTransferInstrumentStatus === "success") {
|
|
3834
|
+
gotoFormByFormIndex(forms.length - 1);
|
|
3835
|
+
setPreviousTrustedInstrumentStatus(createTrustedTransferInstrumentStatus);
|
|
3836
|
+
}
|
|
3837
|
+
}
|
|
3838
|
+
const omittedForms = data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification" ? [] : [payoutSteps.payoutVerificationMethod.formId];
|
|
3839
|
+
const { header: invalidFieldHeader, content: invalidFieldContent } = getInvalidFieldsErrorMessage(checkAsAServiceResultErrors ?? []);
|
|
3840
|
+
return /* @__PURE__ */ jsxs(LoaderWrapper, {
|
|
3841
|
+
showSpinner: true,
|
|
3842
|
+
status: isCheckAsAServiceLoading || isModalOpen || createTrustedTransferInstrumentStatus === "pending" ? "loading" : "success",
|
|
3843
|
+
formOpacityWhenLoading: .3,
|
|
3844
|
+
children: [isModalOpen && /* @__PURE__ */ jsx(Confirm, {
|
|
3845
|
+
title: t(($) => $[invalidFieldHeader]),
|
|
3846
|
+
description: t(($) => $[invalidFieldContent]),
|
|
3847
|
+
cancelText: commonT(($) => $["editDetails"]),
|
|
3848
|
+
confirmText: t(($) => $["continueAnyway"]),
|
|
3849
|
+
onConfirm: () => {
|
|
3850
|
+
handleNextClick();
|
|
3851
|
+
setIsModalOpen(false);
|
|
3852
|
+
},
|
|
3853
|
+
onCancel: () => {
|
|
3854
|
+
gotoFormByFormIndex(0);
|
|
3855
|
+
setIsModalOpen(false);
|
|
3856
|
+
}
|
|
3857
|
+
}), /* @__PURE__ */ jsx(FormWrapper, {
|
|
3858
|
+
taskName: taskType === TaskTypes.PAYIN ? "payinDetails" : "payoutDetails",
|
|
3859
|
+
activeForm,
|
|
3860
|
+
summary: {
|
|
3861
|
+
data: formatDataForSummary(),
|
|
3862
|
+
omitted: {
|
|
3863
|
+
keys: ["transferInstrumentId", "payoutVerificationMethod"],
|
|
3864
|
+
forms: omittedForms,
|
|
3865
|
+
summaryEditButton: ["payoutVerificationMethod", "payoutAccountVerification"]
|
|
3866
|
+
}
|
|
3867
|
+
},
|
|
3868
|
+
handleBackClick: activeForm.formId !== "summary" ? handleBackClick : void 0,
|
|
3869
|
+
handleNextClick: handleFormNextClick,
|
|
3870
|
+
handleHomeClick,
|
|
3871
|
+
handleCloseClick,
|
|
3872
|
+
hideSidebar: hideSidebar || hideFooterAndSidebar,
|
|
3873
|
+
hideFooter: hideFooterAndSidebar,
|
|
3874
|
+
loadingStatus: isTransferInstrumentLoading ? "loading" : loadingStatus,
|
|
3875
|
+
asModal,
|
|
3876
|
+
forms,
|
|
3877
|
+
onSubmit,
|
|
3878
|
+
gotoFormByFormIndex,
|
|
3879
|
+
gotoFormByFormId,
|
|
3880
|
+
validateForm: () => setShouldValidate(true),
|
|
3881
|
+
canSubmit: canSubmit(),
|
|
3882
|
+
problems,
|
|
3883
|
+
steps,
|
|
3884
|
+
children: (!isTransferInstrumentLoading || isSubmitting) && /* @__PURE__ */ jsx(PayoutDetails, {
|
|
3885
|
+
...derivedProps,
|
|
3886
|
+
data: {
|
|
3887
|
+
...prefilledData,
|
|
3888
|
+
payoutAccountDocuments: documents
|
|
3889
|
+
},
|
|
3890
|
+
country: defaultPayoutCountry,
|
|
3891
|
+
activeForm,
|
|
3892
|
+
onBack: handleBackClick,
|
|
3893
|
+
accountHolder: accountHolder ?? getLegalEntityNameBasedOnType(legalEntityResponse),
|
|
3894
|
+
setHideSidebar: setHideFooterAndSidebar,
|
|
3895
|
+
setSkipSubmit,
|
|
3896
|
+
legalEntityResponse,
|
|
3897
|
+
provider,
|
|
3898
|
+
bankVendorsLoadingStatus,
|
|
3899
|
+
instantVerificationAvailable,
|
|
3900
|
+
createTrustedTransferInstrument: createTrustedTransferInstrumentHandler,
|
|
3901
|
+
accountDetailsFromInput,
|
|
3902
|
+
trustedTransferInstrumentId,
|
|
3903
|
+
setHasAsyncValidationError
|
|
3904
|
+
})
|
|
3905
|
+
})]
|
|
3906
|
+
});
|
|
3907
|
+
}
|
|
3908
|
+
//#endregion
|
|
3909
|
+
export { MemoizedBankDocumentClassification as A, useCreateTrustedTransferInstrument as B, defaultFieldMetadata$2 as C, InstantVerificationErrorContext as D, BankVerification as E, mapPayoutAccountSchemaToApiBankAccount as F, useBankVerificationProviders as H, useAsyncAccountDetailsValidationRules as I, getAccountFormatsForCountry as L, resetPayoutSignals as M, showInstantVerificationPayoutModal as N, useInstantVerificationErrorNotification as O, getAccountIdentificationFromPayoutAccountSchema as P, useUpdateTrustedTransferInstrument as R, defaultFieldConfig$2 as S, defaultFieldMetadata$3 as T, useCheck as U, createTransferInstrument as V, swiftCodeFieldMetadata as _, getAppropriatePayoutDetailsSteps as a, defaultFieldConfig$1 as b, mapPayoutDetailsToTransferInstrument as c, payoutSteps as d, PayoutVerificationMethod as f, PayoutAccount as g, PayoutRequirementsModal as h, getPayoutVerificationMethod as i, bankDocumentValidationRules as j, bankVerificationValidationRules as k, mapApiDocumentToPayoutDocuments as l, getDefaultCurrencyForCountry as m, formatAccountVerificationSummary as n, parseConfiguration as o, PayoutCountryDetails as p, getInvalidFieldsErrorMessage as r, mapPayoutDocumentsToApiDocuments as s, PayoutDetailsDropin as t, rules as u, defaultFieldConfig as v, defaultFieldConfig$3 as w, defaultFieldMetadata$1 as x, defaultFieldMetadata as y, useUpdateTransferInstrument as z };
|