@adyen/kyc-components 4.7.2 → 4.8.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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-DycU_84l.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-CUQtdx0I.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
|
@@ -1,3310 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "707366ca-82dc-4263-a31e-fe12a489fa46", e._sentryDebugIdIdentifier = "sentry-dbid-707366ca-82dc-4263-a31e-fe12a489fa46");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { b as useApiContext, j as httpPost, k as httpGet, m as useSettingsContext, o as isPartOfTrustFromLegalEntity, p as hasSolePropInLegalEntity, L as LegalEntityTypes, q as hasOwnEntityAssociationOfType, r as isEmptyEntity, t as useAccountHolder, u as useTranslation, E as EntityTypes, v as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, w as TaskTypes, x as useAnalyticsContext, y as TaskStatuses, z as Icon, B as IconButton, C as Alert, G as TaskVerificationStatus, H as useToggleContext, J as isInstantVerifiedAccount, K as getObscuredAccountNumber, M as useGetTaskStatus, N as Typography, O as StackLayout, P as useLegalEntity, R as ROOT_LE, U as Loader, V as Button, W as useGlobalStore, X as TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS, Y as TASK_STATUS_POLLING_INTERVAL_MS, Z as useSetting, $ as isPartOfUnincorporatedPartnership, a0 as doesLegalEntityRequiresLegalRepresentative, a1 as getLegalRepresentative, a2 as getOwnSignatories, a3 as getOwnDecisionMakersLegalEntityIds, a4 as getOwnSolePropProblems, a5 as getOwnTrustProblems, a6 as getOwnUnincorporatedPartnershipProblems, a7 as useLocalStorage, a8 as getLegalEntityCountry, a9 as CountryCodes, aa as Skeleton, ab as translateTranslatable, ac as getOwnEntityAssociations, ad as TrustMemberTypes, ae as createLogger, af as hasAllCapabilitiesResolved, ag as hasRejectedCapabilities, ah as objectsDeepEqual, ai as noop, aj as useToggles, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-CApjzEDt.js";
|
|
11
|
-
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
12
|
-
import { useQuery, skipToken } from "@tanstack/preact-query";
|
|
13
|
-
import { lazy, Suspense } from "preact/compat";
|
|
14
|
-
import { useMemo, useState, useEffect, useReducer, useRef, useCallback, useContext } from "preact/hooks";
|
|
15
|
-
import { g as getAccountTaskStatus, u as useTaskStatus, a as getTrustedFieldsProvider } from "./getTrustedFields-Cv6R496P.js";
|
|
16
|
-
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-uLxHxESA.js";
|
|
17
|
-
import { C as Card } from "./Card-OQuFzmxm.js";
|
|
18
|
-
import { S as SettingNames } from "./types-Dv0COrvY.js";
|
|
19
|
-
import { u as useToastContext } from "./useToastContext-DrlXuGmm.js";
|
|
20
|
-
import { C as CompanyTypesValues, i as isBafinSignatoryFlow, s as showIdNowModal, a as idNowPostSubmit } from "./bafinUtils-DOGd6Xk9.js";
|
|
21
|
-
import { E as EndStateLayout } from "./EndStateLayout-yZlKFmxQ.js";
|
|
22
|
-
import { u as useCapabilityProblems } from "./getProblemsForEntity-I5B0dWUU.js";
|
|
23
|
-
import { d as downloadFile } from "./file-CiG1D0zy.js";
|
|
24
|
-
import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-D8Menx5E.js";
|
|
25
|
-
import { A as Avatar } from "./Avatar-D7DkiYRU.js";
|
|
26
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-DE-3T3QK.js";
|
|
27
|
-
import { C as Confirm } from "./Confirm-CceRWfkX.js";
|
|
28
|
-
import { F as FeatureNames } from "./types-C7ANBXKc.js";
|
|
29
|
-
import { T as TrustedFieldsProviders } from "./trusted-fields-provider-BgfIoSNJ.js";
|
|
30
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-9hHARgoS.js";
|
|
31
|
-
import cx from "classnames";
|
|
32
|
-
import { I as Image, U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-5iQ8augf.js";
|
|
33
|
-
import { g as getLegalEntityNameBasedOnType } from "./getName-CfQAf_l-.js";
|
|
34
|
-
import { matchRoute, useLocation, Route, Switch, useRouter, Router } from "wouter-preact";
|
|
35
|
-
import { memoryLocation } from "wouter-preact/memory-location";
|
|
36
|
-
import { createContext } from "preact";
|
|
37
|
-
const getPciStatus = async (legalEntityId, baseUrl, data) => {
|
|
38
|
-
const filteredData = {
|
|
39
|
-
...data,
|
|
40
|
-
additionalSalesChannels: data.additionalSalesChannels?.filter(
|
|
41
|
-
(channel) => channel !== "payByLink"
|
|
42
|
-
)
|
|
43
|
-
};
|
|
44
|
-
return httpPost(
|
|
45
|
-
{
|
|
46
|
-
baseUrl,
|
|
47
|
-
path: `legalEntities/${legalEntityId}/pci/signingRequired`
|
|
48
|
-
},
|
|
49
|
-
filteredData
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
const usePciStatus = (data, options) => {
|
|
53
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
54
|
-
return useQuery({
|
|
55
|
-
queryKey: ["pciStatus", data],
|
|
56
|
-
queryFn: () => getPciStatus(rootLegalEntityId.value, baseUrl.value, data),
|
|
57
|
-
staleTime: 0,
|
|
58
|
-
...options
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
const getBusinessLines = async (legalEntityId, baseUrl) => {
|
|
62
|
-
return httpGet({
|
|
63
|
-
baseUrl,
|
|
64
|
-
path: `legalEntities/${legalEntityId}/businessLines`
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
const useBusinessLines = (businessLineType, options) => {
|
|
68
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
69
|
-
return useQuery({
|
|
70
|
-
queryKey: ["businessLines"],
|
|
71
|
-
queryFn: () => getBusinessLines(rootLegalEntityId.value, baseUrl.value),
|
|
72
|
-
select: (businessLines) => businessLines.filter((businessLine) => businessLineType.includes(businessLine.service)),
|
|
73
|
-
...options
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
function useSalesChannels() {
|
|
77
|
-
const { isSettingEnabled } = useSettingsContext();
|
|
78
|
-
const { data: existingBusinessLines } = useBusinessLines(["paymentProcessing"]);
|
|
79
|
-
return useMemo(() => {
|
|
80
|
-
const settings = [];
|
|
81
|
-
const businessLinesSalesChannels = [
|
|
82
|
-
...new Set(existingBusinessLines?.flatMap((item) => item.salesChannels ?? []))
|
|
83
|
-
];
|
|
84
|
-
if (isSettingEnabled(SettingNames.RequirePciSignEcommerce)) {
|
|
85
|
-
settings.push("eCommerce");
|
|
86
|
-
}
|
|
87
|
-
if (isSettingEnabled(SettingNames.RequirePciSignPos)) {
|
|
88
|
-
settings.push("pos");
|
|
89
|
-
}
|
|
90
|
-
if (isSettingEnabled(SettingNames.RequirePciSignEcomMoto)) {
|
|
91
|
-
settings.push("ecomMoto");
|
|
92
|
-
}
|
|
93
|
-
if (isSettingEnabled(SettingNames.RequirePciSignPosMoto)) {
|
|
94
|
-
settings.push("posMoto");
|
|
95
|
-
}
|
|
96
|
-
return isSettingEnabled("allowBusinessLines") ? businessLinesSalesChannels : settings;
|
|
97
|
-
}, [existingBusinessLines, isSettingEnabled]);
|
|
98
|
-
}
|
|
99
|
-
const getTaskTypes = async (id, baseUrl) => {
|
|
100
|
-
return httpGet({
|
|
101
|
-
baseUrl,
|
|
102
|
-
path: `legalEntities/${id}/configurations/tasks`
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
const useTaskTypes = (options) => {
|
|
106
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
107
|
-
return useQuery({
|
|
108
|
-
queryKey: ["taskTypes"],
|
|
109
|
-
queryFn: () => getTaskTypes(rootLegalEntityId.value, baseUrl.value),
|
|
110
|
-
...options
|
|
111
|
-
});
|
|
112
|
-
};
|
|
113
|
-
const getPciQuestionnaire = async (legalEntityId, baseUrl, documentId) => {
|
|
114
|
-
return httpGet({
|
|
115
|
-
baseUrl,
|
|
116
|
-
path: `legalEntities/${legalEntityId}/pci/questionnaires/${documentId}`
|
|
117
|
-
});
|
|
118
|
-
};
|
|
119
|
-
const getPciQuestionnaireList = async (legalEntityId, baseUrl) => {
|
|
120
|
-
return httpGet({
|
|
121
|
-
baseUrl,
|
|
122
|
-
path: `legalEntities/${legalEntityId}/pci/questionnaires`
|
|
123
|
-
});
|
|
124
|
-
};
|
|
125
|
-
const usePciQuestionnaireList = (options) => {
|
|
126
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
127
|
-
return useQuery({
|
|
128
|
-
queryKey: ["pciQuestionnaireList"],
|
|
129
|
-
queryFn: () => getPciQuestionnaireList(rootLegalEntityId.value, baseUrl.value),
|
|
130
|
-
...options
|
|
131
|
-
});
|
|
132
|
-
};
|
|
133
|
-
const useLegalEntityType = ({
|
|
134
|
-
legalEntity
|
|
135
|
-
}) => {
|
|
136
|
-
const isTrust = isPartOfTrustFromLegalEntity(legalEntity);
|
|
137
|
-
const isSoleProprietor = hasSolePropInLegalEntity(legalEntity);
|
|
138
|
-
const hasLegalAssociation = isTrust || isSoleProprietor;
|
|
139
|
-
switch (legalEntity.type) {
|
|
140
|
-
case LegalEntityTypes.INDIVIDUAL:
|
|
141
|
-
case LegalEntityTypes.ORGANIZATION:
|
|
142
|
-
if (!hasLegalAssociation) return legalEntity.type;
|
|
143
|
-
if (isSoleProprietor) return LegalEntityTypes.SOLE_PROPRIETORSHIP;
|
|
144
|
-
if (isTrust) return LegalEntityTypes.TRUST;
|
|
145
|
-
break;
|
|
146
|
-
default:
|
|
147
|
-
return void 0;
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
const useCanSeeIntroduction = ({ legalEntity }) => {
|
|
151
|
-
const legalEntityType = useLegalEntityType({ legalEntity });
|
|
152
|
-
const { isSettingEnabled } = useSettingsContext();
|
|
153
|
-
switch (legalEntityType) {
|
|
154
|
-
case LegalEntityTypes.INDIVIDUAL:
|
|
155
|
-
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionIndividual);
|
|
156
|
-
case LegalEntityTypes.ORGANIZATION:
|
|
157
|
-
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionOrganization);
|
|
158
|
-
case LegalEntityTypes.SOLE_PROPRIETORSHIP:
|
|
159
|
-
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionSoleProprietor);
|
|
160
|
-
case LegalEntityTypes.TRUST:
|
|
161
|
-
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionTrust);
|
|
162
|
-
default:
|
|
163
|
-
return false;
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
const capabilitiesToPreventTypeChange = [
|
|
167
|
-
"receivePayments",
|
|
168
|
-
"issueCard",
|
|
169
|
-
"useCard",
|
|
170
|
-
"withdrawFromAtm",
|
|
171
|
-
"withdrawFromAtmInRestrictedCountries",
|
|
172
|
-
"useCardInRestrictedCountries",
|
|
173
|
-
"useCardInRestrictedIndustries",
|
|
174
|
-
"issueBankAccount",
|
|
175
|
-
"sendToThirdParty",
|
|
176
|
-
"receiveFromThirdParty",
|
|
177
|
-
"getGrantOffers",
|
|
178
|
-
"receiveGrants"
|
|
179
|
-
];
|
|
180
|
-
const entityTypeToCorrespondingAccountHolderOption = {
|
|
181
|
-
[LegalEntityTypes.INDIVIDUAL]: "myName",
|
|
182
|
-
[LegalEntityTypes.ORGANIZATION]: "theCompanyIWorkFor",
|
|
183
|
-
[LegalEntityTypes.SOLE_PROPRIETORSHIP]: "mySoleProprietorName",
|
|
184
|
-
[LegalEntityTypes.TRUST]: "aTrust",
|
|
185
|
-
[LegalEntityTypes.UNINCORPORATED_PARTNERSHIP]: "anUnincorporatedPartnership"
|
|
186
|
-
};
|
|
187
|
-
const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false, accountHolder) => {
|
|
188
|
-
if (!legalEntityResponse?.type) return void 0;
|
|
189
|
-
if (hasOwnEntityAssociationOfType(
|
|
190
|
-
LegalEntityTypes.SOLE_PROPRIETORSHIP,
|
|
191
|
-
legalEntityResponse.entityAssociations,
|
|
192
|
-
legalEntityResponse.id
|
|
193
|
-
)) {
|
|
194
|
-
return "mySoleProprietorName";
|
|
195
|
-
}
|
|
196
|
-
if (hasOwnEntityAssociationOfType(
|
|
197
|
-
LegalEntityTypes.TRUST,
|
|
198
|
-
legalEntityResponse.entityAssociations,
|
|
199
|
-
legalEntityResponse.id
|
|
200
|
-
)) {
|
|
201
|
-
return "aTrust";
|
|
202
|
-
}
|
|
203
|
-
if (hasOwnEntityAssociationOfType(
|
|
204
|
-
LegalEntityTypes.UNINCORPORATED_PARTNERSHIP,
|
|
205
|
-
legalEntityResponse.entityAssociations,
|
|
206
|
-
legalEntityResponse.id
|
|
207
|
-
)) {
|
|
208
|
-
return "anUnincorporatedPartnership";
|
|
209
|
-
}
|
|
210
|
-
if (accountHolder) {
|
|
211
|
-
return accountHolder;
|
|
212
|
-
}
|
|
213
|
-
if (isTypeChanging || !isEmptyEntity(legalEntityResponse)) {
|
|
214
|
-
return entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type];
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
const allowIndividualWithoutSoleProp = (capabilities) => !capabilities?.map((c) => c.replace("Commercial", "").replace("Consumer", "")).some((c) => capabilitiesToPreventTypeChange.includes(c));
|
|
218
|
-
const BusinessTypes = {
|
|
219
|
-
INDIVIDUAL: "individual",
|
|
220
|
-
COMPANY: "company",
|
|
221
|
-
INCORPORATED_PARTNERSHIP: "partnershipIncorporated",
|
|
222
|
-
UNINCORPORATED_PARTNERSHIP: "partnershipUnincorporated",
|
|
223
|
-
INDIVIDUAL_TRUSTEE: "individualTrustee",
|
|
224
|
-
COMPANY_TRUSTEE: "companyTrustee",
|
|
225
|
-
SOLE_PROPRIETORSHIP: "soleProprietorship",
|
|
226
|
-
INCORPORATE_ASSOCIATION: "associationIncorporated"
|
|
227
|
-
};
|
|
228
|
-
const businessTypeMapping = {
|
|
229
|
-
myName: {
|
|
230
|
-
[LegalEntityTypes.INDIVIDUAL]: BusinessTypes.INDIVIDUAL
|
|
231
|
-
},
|
|
232
|
-
theCompanyIWorkFor: {
|
|
233
|
-
[LegalEntityTypes.ORGANIZATION]: BusinessTypes.COMPANY
|
|
234
|
-
},
|
|
235
|
-
mySoleProprietorName: {
|
|
236
|
-
[LegalEntityTypes.INDIVIDUAL]: BusinessTypes.SOLE_PROPRIETORSHIP
|
|
237
|
-
},
|
|
238
|
-
aTrust: {
|
|
239
|
-
[LegalEntityTypes.INDIVIDUAL]: BusinessTypes.INDIVIDUAL_TRUSTEE,
|
|
240
|
-
[LegalEntityTypes.ORGANIZATION]: BusinessTypes.COMPANY_TRUSTEE
|
|
241
|
-
},
|
|
242
|
-
anUnincorporatedPartnership: {
|
|
243
|
-
[LegalEntityTypes.INDIVIDUAL]: BusinessTypes.UNINCORPORATED_PARTNERSHIP,
|
|
244
|
-
[LegalEntityTypes.ORGANIZATION]: BusinessTypes.UNINCORPORATED_PARTNERSHIP
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
const companyTypesMapping = {
|
|
248
|
-
[CompanyTypesValues.INCORPORATED_PARTNERSHIP]: BusinessTypes.INCORPORATED_PARTNERSHIP,
|
|
249
|
-
[CompanyTypesValues.INCORPORATED_ASSOCIATION]: BusinessTypes.INCORPORATE_ASSOCIATION,
|
|
250
|
-
[CompanyTypesValues.PUBLIC_COMPANY]: BusinessTypes.COMPANY,
|
|
251
|
-
[CompanyTypesValues.PRIVATE_COMPANY]: BusinessTypes.COMPANY,
|
|
252
|
-
[CompanyTypesValues.UNLISTED_PUBLIC_COMPANY]: BusinessTypes.COMPANY,
|
|
253
|
-
[CompanyTypesValues.GOVERNMENTAL_ORGANIZATION]: BusinessTypes.COMPANY,
|
|
254
|
-
[CompanyTypesValues.NON_PROFIT_OR_CHARITABLE]: BusinessTypes.COMPANY,
|
|
255
|
-
[CompanyTypesValues.SOLE_PROPRIETORSHIP]: BusinessTypes.SOLE_PROPRIETORSHIP
|
|
256
|
-
};
|
|
257
|
-
const useBusinessSetup = (legalEntityResponse) => {
|
|
258
|
-
const { accountHolder } = useAccountHolder();
|
|
259
|
-
const accountHolderType = accountHolder || getDefaultAccountHolderType(legalEntityResponse);
|
|
260
|
-
const organizationType = legalEntityResponse.organization?.type;
|
|
261
|
-
const businessSetup = accountHolderType === "theCompanyIWorkFor" && organizationType ? companyTypesMapping[organizationType] : businessTypeMapping[accountHolderType]?.[legalEntityResponse.type];
|
|
262
|
-
return businessSetup;
|
|
263
|
-
};
|
|
264
|
-
function useDataMissingRemediations({
|
|
265
|
-
legalEntityId,
|
|
266
|
-
problems
|
|
267
|
-
}) {
|
|
268
|
-
const { t } = useTranslation("common");
|
|
269
|
-
const decisionMakersRemediationMessage = useMemo(() => {
|
|
270
|
-
const remediationCodes = problems[EntityTypes.LEGAL_ENTITY]?.[legalEntityId]?.missingData?.reduce((remediations, error) => {
|
|
271
|
-
const remediation = DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING[error.code];
|
|
272
|
-
return remediation ? [...remediations, remediation] : remediations;
|
|
273
|
-
}, []);
|
|
274
|
-
const uniqueRemediations = [...new Set(remediationCodes)];
|
|
275
|
-
switch (uniqueRemediations?.length) {
|
|
276
|
-
case void 0:
|
|
277
|
-
case 0:
|
|
278
|
-
return void 0;
|
|
279
|
-
case 1:
|
|
280
|
-
return uniqueRemediations[0] ? t(($) => $[`remediationMessage_${uniqueRemediations[0]}`]) : t(($) => $["missingMultipleDecisionMakers"]);
|
|
281
|
-
default:
|
|
282
|
-
return t(($) => $["missingMultipleDecisionMakers"]);
|
|
283
|
-
}
|
|
284
|
-
}, [problems, t, legalEntityId]);
|
|
285
|
-
return {
|
|
286
|
-
remediationMessages: {
|
|
287
|
-
[TaskTypes.DECISION_MAKER]: decisionMakersRemediationMessage
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
const filterProblemsByTaskForms = (entityProblems, forms) => {
|
|
292
|
-
if (!entityProblems?.verificationErrors) return entityProblems;
|
|
293
|
-
const filteredEntityProblems = Object.entries(entityProblems.verificationErrors).reduce(
|
|
294
|
-
(acc, [formId, verificationErrors]) => {
|
|
295
|
-
if (!forms.includes(formId)) return acc;
|
|
296
|
-
return {
|
|
297
|
-
...entityProblems,
|
|
298
|
-
verificationErrors: {
|
|
299
|
-
...acc.verificationErrors,
|
|
300
|
-
[formId]: verificationErrors
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
},
|
|
304
|
-
{}
|
|
305
|
-
);
|
|
306
|
-
filteredEntityProblems.verificationErrors = Object.keys(filteredEntityProblems.verificationErrors ?? {}).length > 0 ? filteredEntityProblems.verificationErrors : void 0;
|
|
307
|
-
return filteredEntityProblems;
|
|
308
|
-
};
|
|
309
|
-
const businessFormIds = [
|
|
310
|
-
"basicInformation",
|
|
311
|
-
"businessSelection",
|
|
312
|
-
"companyStructure",
|
|
313
|
-
"additionalInformation",
|
|
314
|
-
"companyRegistrationDocument",
|
|
315
|
-
"companyTaxDocument",
|
|
316
|
-
"companyProofOfDirectorDocument",
|
|
317
|
-
"companyProofOfSignatoryDocument",
|
|
318
|
-
"companyProofOfOwnershipDocument",
|
|
319
|
-
"companyFinancialInformation",
|
|
320
|
-
"companyConstitutionalDocument"
|
|
321
|
-
];
|
|
322
|
-
const individualFormIds = [
|
|
323
|
-
"signatoryQuestionnaire",
|
|
324
|
-
"uboQuestionnaire",
|
|
325
|
-
"basicDetails",
|
|
326
|
-
"idVerificationMethod",
|
|
327
|
-
"inviteDetails",
|
|
328
|
-
"additionalPersonalDetails",
|
|
329
|
-
"manualIdUpload",
|
|
330
|
-
"proofOfResidency",
|
|
331
|
-
"proofOfNationalId",
|
|
332
|
-
"proofOfRelationship"
|
|
333
|
-
];
|
|
334
|
-
const TaskListItem = ({
|
|
335
|
-
titleKey,
|
|
336
|
-
title,
|
|
337
|
-
icon,
|
|
338
|
-
status,
|
|
339
|
-
onNavigateToTask,
|
|
340
|
-
disabled = false,
|
|
341
|
-
problems,
|
|
342
|
-
downloadHandler,
|
|
343
|
-
info,
|
|
344
|
-
loading = false,
|
|
345
|
-
showErrorAlerts = "onErrorStatus",
|
|
346
|
-
warningMessage,
|
|
347
|
-
deleteEntity,
|
|
348
|
-
testId,
|
|
349
|
-
enableTracking = true,
|
|
350
|
-
fallbackErrorMessage
|
|
351
|
-
}) => {
|
|
352
|
-
const { t } = useTranslation("common");
|
|
353
|
-
const userEvents = useAnalyticsContext();
|
|
354
|
-
const [isConfirmShown, setIsConfirmShown] = useState(false);
|
|
355
|
-
const isDeletable = !!deleteEntity;
|
|
356
|
-
const isDownloadable = !!downloadHandler && status === TaskStatuses.DOWNLOAD;
|
|
357
|
-
const shouldShowErrorAlert = showErrorAlerts === "always" || showErrorAlerts === "onErrorStatus" && status === TaskStatuses.ERROR || !!problems?.verificationErrors;
|
|
358
|
-
const handleNavigateToTask = () => {
|
|
359
|
-
if (enableTracking) {
|
|
360
|
-
userEvents.addJourneyEvent("Clicked button", {
|
|
361
|
-
actionType: "open",
|
|
362
|
-
task: void 0,
|
|
363
|
-
label: titleKey
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
onNavigateToTask?.();
|
|
367
|
-
};
|
|
368
|
-
const avatarVariant = disabled ? "disabled" : "primary";
|
|
369
|
-
const handleRemoveIntent = (event) => {
|
|
370
|
-
event.stopPropagation();
|
|
371
|
-
setIsConfirmShown(true);
|
|
372
|
-
};
|
|
373
|
-
const dismissConfirm = () => {
|
|
374
|
-
setIsConfirmShown(false);
|
|
375
|
-
};
|
|
376
|
-
const getTaskAccessory = () => {
|
|
377
|
-
switch (status) {
|
|
378
|
-
case TaskStatuses.SIGN:
|
|
379
|
-
return t(($) => $["sign"]);
|
|
380
|
-
case TaskStatuses.DETAILS_REQUIRED:
|
|
381
|
-
case TaskStatuses.EMPTY:
|
|
382
|
-
return t(($) => $["add"]);
|
|
383
|
-
default:
|
|
384
|
-
return /* @__PURE__ */ jsx(TaskVerificationStatus, { status });
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
388
|
-
/* @__PURE__ */ jsx(Card, { onClick: handleNavigateToTask, disabled: loading || disabled, children: /* @__PURE__ */ jsxs(
|
|
389
|
-
LoaderWrapper,
|
|
390
|
-
{
|
|
391
|
-
status: loading ? "loading" : "success",
|
|
392
|
-
formOpacityWhenLoading: 0.3,
|
|
393
|
-
loaderSize: "medium",
|
|
394
|
-
children: [
|
|
395
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-task-item", "data-testid": testId, children: [
|
|
396
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-task-item__header", children: [
|
|
397
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-task-item__heading", children: [
|
|
398
|
-
/* @__PURE__ */ jsx(Avatar, { variant: avatarVariant, iconName: icon }),
|
|
399
|
-
/* @__PURE__ */ jsx("div", { className: "adyen-task-item__body", children: /* @__PURE__ */ jsx("span", { className: "adyen-task-item__title", children: title || t(($) => $[titleKey]) }) })
|
|
400
|
-
] }),
|
|
401
|
-
info && /* @__PURE__ */ jsxs("div", { className: "adyen-task-item__info", children: [
|
|
402
|
-
/* @__PURE__ */ jsx(Icon, { name: "info-circle" }),
|
|
403
|
-
/* @__PURE__ */ jsx("span", { children: info })
|
|
404
|
-
] })
|
|
405
|
-
] }),
|
|
406
|
-
/* @__PURE__ */ jsxs("aside", { className: "adyen-task-item__status", children: [
|
|
407
|
-
getTaskAccessory(),
|
|
408
|
-
isDownloadable && /* @__PURE__ */ jsx(
|
|
409
|
-
IconButton,
|
|
410
|
-
{
|
|
411
|
-
ariaLabel: t(($) => $["download"]),
|
|
412
|
-
icon: "download",
|
|
413
|
-
onClick: downloadHandler,
|
|
414
|
-
variant: "tertiary"
|
|
415
|
-
}
|
|
416
|
-
),
|
|
417
|
-
isDeletable && /* @__PURE__ */ jsx(
|
|
418
|
-
IconButton,
|
|
419
|
-
{
|
|
420
|
-
ariaLabel: t(($) => $["delete"]),
|
|
421
|
-
icon: "bin",
|
|
422
|
-
variant: "tertiary",
|
|
423
|
-
onClick: handleRemoveIntent,
|
|
424
|
-
disabled: isConfirmShown
|
|
425
|
-
}
|
|
426
|
-
),
|
|
427
|
-
!isDownloadable && !isDeletable && /* @__PURE__ */ jsx(Icon, { name: "chevron-right" })
|
|
428
|
-
] })
|
|
429
|
-
] }),
|
|
430
|
-
warningMessage ? /* @__PURE__ */ jsx(
|
|
431
|
-
Alert,
|
|
432
|
-
{
|
|
433
|
-
variant: "warning",
|
|
434
|
-
title: warningMessage,
|
|
435
|
-
className: "adyen-task-item__warning-message"
|
|
436
|
-
}
|
|
437
|
-
) : void 0,
|
|
438
|
-
shouldShowErrorAlert && /* @__PURE__ */ jsx(
|
|
439
|
-
VerificationErrorAlert,
|
|
440
|
-
{
|
|
441
|
-
className: "adyen-task-item-alert",
|
|
442
|
-
problems,
|
|
443
|
-
fallbackErrorMessage
|
|
444
|
-
}
|
|
445
|
-
)
|
|
446
|
-
]
|
|
447
|
-
}
|
|
448
|
-
) }),
|
|
449
|
-
isConfirmShown && isDeletable && /* @__PURE__ */ jsx(
|
|
450
|
-
Confirm,
|
|
451
|
-
{
|
|
452
|
-
title: t(($) => $["deleteItem"], { item: title }),
|
|
453
|
-
description: t(($) => $["thisActionIsPermanent"]),
|
|
454
|
-
onConfirm: deleteEntity,
|
|
455
|
-
confirmText: t(($) => $["delete"]),
|
|
456
|
-
onCancel: dismissConfirm,
|
|
457
|
-
critical: true
|
|
458
|
-
}
|
|
459
|
-
)
|
|
460
|
-
] });
|
|
461
|
-
};
|
|
462
|
-
const PayoutAccountTaskListItem = ({
|
|
463
|
-
account,
|
|
464
|
-
capabilityProblems,
|
|
465
|
-
onNavigateToTask,
|
|
466
|
-
payinPayoutTaskStatus
|
|
467
|
-
}) => {
|
|
468
|
-
const { t } = useTranslation("common");
|
|
469
|
-
const { showToast } = useToastContext();
|
|
470
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
471
|
-
const { mutateAsync: deleteTransferInstrument } = useDeleteTransferInstrument();
|
|
472
|
-
const isInstantVerificationAccount = isInstantVerifiedAccount(account);
|
|
473
|
-
const obscuredAccountNumber = getObscuredAccountNumber(account);
|
|
474
|
-
const getTaskStatus = useGetTaskStatus();
|
|
475
|
-
const status = isFeatureEnabled("UseTaskStatusApiForPayout") ? getAccountTaskStatus(account.id, payinPayoutTaskStatus) : getTaskStatus(TaskTypes.PAYOUT, account.id);
|
|
476
|
-
const handleDeleteTransferInstrument = async () => {
|
|
477
|
-
try {
|
|
478
|
-
await deleteTransferInstrument(account.id);
|
|
479
|
-
showToast({ label: t(($) => $["transferInstrumentDeleted"]), variant: "success" });
|
|
480
|
-
} catch {
|
|
481
|
-
showToast({ label: t(($) => $["failedToDeletePayoutAccount"]), variant: "error" });
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
return /* @__PURE__ */ jsx(
|
|
485
|
-
TaskListItem,
|
|
486
|
-
{
|
|
487
|
-
disabled: isInstantVerificationAccount && status === TaskStatuses.PROCESSING,
|
|
488
|
-
onNavigateToTask: isInstantVerificationAccount ? void 0 : onNavigateToTask,
|
|
489
|
-
icon: "payout",
|
|
490
|
-
titleKey: "accountNumber",
|
|
491
|
-
title: obscuredAccountNumber,
|
|
492
|
-
status,
|
|
493
|
-
problems: capabilityProblems?.BankAccount?.[account.id],
|
|
494
|
-
fallbackErrorMessage: isInstantVerificationAccount ? t(($) => $["verificationErrorMessageTrustedTransferInstrument"]) : void 0,
|
|
495
|
-
deleteEntity: handleDeleteTransferInstrument
|
|
496
|
-
}
|
|
497
|
-
);
|
|
498
|
-
};
|
|
499
|
-
const TaskListGroup = ({ title, children }) => /* @__PURE__ */ jsxs("article", { className: "adyen-task-list-group", children: [
|
|
500
|
-
title && /* @__PURE__ */ jsx("header", { className: "adyen-task-list-group__header", children: /* @__PURE__ */ jsx(Typography, { el: "h4", variant: "body-stronger", color: "secondary", children: title }) }),
|
|
501
|
-
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-card__body", children: /* @__PURE__ */ jsx(StackLayout, { gap: "xSmall", children }) })
|
|
502
|
-
] });
|
|
503
|
-
const LEGAL_ENTITY_BASE_TASKS = [
|
|
504
|
-
TaskTypes.INDIVIDUAL,
|
|
505
|
-
TaskTypes.BUSINESS_DETAILS,
|
|
506
|
-
TaskTypes.DECISION_MAKER_OVERVIEW
|
|
507
|
-
];
|
|
508
|
-
const CONTRACT_TASKS = [TaskTypes.SERVICE_AGREEMENT, TaskTypes.PCI_DSS];
|
|
509
|
-
function TaskList({ onNavigateToTask, singpassComponent }) {
|
|
510
|
-
const { data: rootLe, isLoading } = useLegalEntity(ROOT_LE);
|
|
511
|
-
const { t } = useTranslation("common");
|
|
512
|
-
const {
|
|
513
|
-
data: existingBusinessLines,
|
|
514
|
-
isLoading: isLoadingBl,
|
|
515
|
-
error: businessLinesError
|
|
516
|
-
} = useBusinessLines(["paymentProcessing"]);
|
|
517
|
-
const capabilityProblems = useCapabilityProblems() ?? {};
|
|
518
|
-
if (isLoading || !rootLe || isLoadingBl) {
|
|
519
|
-
return /* @__PURE__ */ jsx(Loader, { size: "large" });
|
|
520
|
-
}
|
|
521
|
-
if (businessLinesError) {
|
|
522
|
-
return /* @__PURE__ */ jsx(
|
|
523
|
-
EndStateLayout,
|
|
524
|
-
{
|
|
525
|
-
title: t(($) => $["thisPageIsntLoading"]),
|
|
526
|
-
variant: "error",
|
|
527
|
-
action: /* @__PURE__ */ jsx(Button, { onClick: () => window.location.reload(), fullWidth: true, children: t(($) => $["reloadPage"]) })
|
|
528
|
-
}
|
|
529
|
-
);
|
|
530
|
-
}
|
|
531
|
-
return /* @__PURE__ */ jsx(
|
|
532
|
-
TaskListInner,
|
|
533
|
-
{
|
|
534
|
-
onNavigateToTask,
|
|
535
|
-
singpassComponent,
|
|
536
|
-
legalEntityResponse: rootLe,
|
|
537
|
-
capabilityProblems,
|
|
538
|
-
existingBusinessLines
|
|
539
|
-
}
|
|
540
|
-
);
|
|
541
|
-
}
|
|
542
|
-
function TaskListInner({
|
|
543
|
-
onNavigateToTask,
|
|
544
|
-
legalEntityResponse,
|
|
545
|
-
capabilityProblems,
|
|
546
|
-
singpassComponent,
|
|
547
|
-
existingBusinessLines
|
|
548
|
-
}) {
|
|
549
|
-
const userEvents = useAnalyticsContext();
|
|
550
|
-
const { t } = useTranslation("common");
|
|
551
|
-
const { showToast } = useToastContext();
|
|
552
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
553
|
-
const { isSettingEnabled } = useSettingsContext();
|
|
554
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
555
|
-
const { accountHolder } = useAccountHolder();
|
|
556
|
-
const tasks = useGlobalStore().tasks.value;
|
|
557
|
-
const getTaskStatus = useGetTaskStatus();
|
|
558
|
-
const businessSetup = useBusinessSetup(legalEntityResponse);
|
|
559
|
-
const canSeeIntroduction = useCanSeeIntroduction({ legalEntity: legalEntityResponse });
|
|
560
|
-
const additionalSalesChannels = useSalesChannels();
|
|
561
|
-
const { remediationMessages } = useDataMissingRemediations({
|
|
562
|
-
legalEntityId: legalEntityResponse.id,
|
|
563
|
-
problems: capabilityProblems
|
|
564
|
-
});
|
|
565
|
-
const { data: pciStatus } = usePciStatus({ additionalSalesChannels });
|
|
566
|
-
const { data: pciQuestionnaireList } = usePciQuestionnaireList();
|
|
567
|
-
const { data: termsOfServiceStatus } = useTermsOfServiceStatus();
|
|
568
|
-
const { data: termsOfServiceStatusAcceptanceInfos } = useTermsOfServiceAcceptanceInfos();
|
|
569
|
-
const { data: normalizedTasks } = useTaskStatus({
|
|
570
|
-
refetchInterval: (query) => {
|
|
571
|
-
const { data: response } = query.state || {};
|
|
572
|
-
const statuses = response?.statuses;
|
|
573
|
-
const areAllTasksFinishedOrEmpty = statuses?.length === 0 || statuses?.every((task) => task.status === "FINISHED");
|
|
574
|
-
return areAllTasksFinishedOrEmpty ? TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS : TASK_STATUS_POLLING_INTERVAL_MS;
|
|
575
|
-
}
|
|
576
|
-
});
|
|
577
|
-
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
578
|
-
const hidePayoutAccountTaskToggled = isFeatureEnabled("HidePayoutAccountTask");
|
|
579
|
-
const showCustomerSupportV4 = isFeatureEnabled("ShowCustomerSupportV4");
|
|
580
|
-
const transferInstrumentLimit = useSetting("transferInstrumentLimit");
|
|
581
|
-
const payinPayoutTaskStatus = normalizedTasks?.PAYOUT ?? normalizedTasks?.PAYIN;
|
|
582
|
-
const businessDetailsTaskStatus = normalizedTasks?.BUSINESS_DETAILS?.status ?? TaskStatuses.DETAILS_REQUIRED;
|
|
583
|
-
const businessLinesTaskStatus = normalizedTasks?.ACQUIRING_BUSINESS_LINE?.status ?? TaskStatuses.DETAILS_REQUIRED;
|
|
584
|
-
const rootLegalEntityProblems = capabilityProblems?.LegalEntity?.[legalEntityResponse.id];
|
|
585
|
-
const isReview = Boolean(rootLegalEntityProblems?.isReviewRequired);
|
|
586
|
-
const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
|
|
587
|
-
const hasUnincorporatedPartnership = accountHolder === "anUnincorporatedPartnership" || isPartOfUnincorporatedPartnership(legalEntityResponse);
|
|
588
|
-
const hasSoleProprietorship = accountHolder === "mySoleProprietorName" || hasSolePropInLegalEntity(legalEntityResponse);
|
|
589
|
-
const isLegalRepresentativeRequired = isFeatureEnabled("EnableAgeVerification") && doesLegalEntityRequiresLegalRepresentative(legalEntityResponse);
|
|
590
|
-
const legalRepresentative = isLegalRepresentativeRequired && getLegalRepresentative(legalEntityResponse);
|
|
591
|
-
const transferInstruments = legalEntityResponse?.transferInstruments || [];
|
|
592
|
-
const canAddPayoutAccount = legalEntityResponse?.organization?.legalName || legalEntityResponse?.individual?.name;
|
|
593
|
-
const hasPayinTaskNotPayout = tasks.includes(TaskTypes.PAYIN) && !tasks.includes(TaskTypes.PAYOUT);
|
|
594
|
-
const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
|
|
595
|
-
const pciHasDocuments = !!pciQuestionnaireList?.data?.length;
|
|
596
|
-
const canDownloadPci = !pciStatus?.signingRequired && pciHasDocuments;
|
|
597
|
-
const hasCreatedBusinessLines = !!existingBusinessLines?.length;
|
|
598
|
-
const hasPciSigners = !!legalEntityResponse?.entityAssociations?.length;
|
|
599
|
-
const pciIsActionable = pciStatus?.signingRequired || canDownloadPci;
|
|
600
|
-
const serviceAgreementTypes = termsOfServiceStatus?.termsOfServiceTypes ?? [];
|
|
601
|
-
const serviceAgreementAcceptanceInfos = termsOfServiceStatusAcceptanceInfos?.data ?? [];
|
|
602
|
-
const hasServiceAgreementSigners = legalEntityResponse.type === LegalEntityTypes.ORGANIZATION && getOwnSignatories(legalEntityResponse).length || Boolean(legalRepresentative) || legalEntityResponse.type === LegalEntityTypes.INDIVIDUAL && !!legalEntityResponse?.individual;
|
|
603
|
-
const hasTaskOfGroupAccountDetails = tasks.some((task) => LEGAL_ENTITY_BASE_TASKS.includes(task));
|
|
604
|
-
const hasContractTasks = tasks.some((task) => CONTRACT_TASKS.includes(task));
|
|
605
|
-
const hasFinancingTasks = tasks.includes(TaskTypes.BUSINESS_FINANCING) || tasks.includes(TaskTypes.SOURCE_OF_FUNDS);
|
|
606
|
-
const showServiceAgreementTask = tasks.includes(TaskTypes.SERVICE_AGREEMENT) && (serviceAgreementTypes.length > 0 || serviceAgreementAcceptanceInfos.length > 0);
|
|
607
|
-
const showPciTask = isSettingEnabled("allowBusinessLines") ? tasks.includes("PCI_DSS") : tasks.includes("PCI_DSS") && pciIsActionable;
|
|
608
|
-
const shouldSignPciFirst = showServiceAgreementTask && showPciTask && !pciHasDocuments;
|
|
609
|
-
const pciTaskState = (() => {
|
|
610
|
-
if (!hasPciSigners) {
|
|
611
|
-
return { disabled: true, infoMessage: t(($) => $["requiresDecisionMakers"]) };
|
|
612
|
-
}
|
|
613
|
-
if (isSettingEnabled("allowBusinessLines") && !hasCreatedBusinessLines) {
|
|
614
|
-
return { disabled: true, infoMessage: t(($) => $["requiresBusinessLine"]) };
|
|
615
|
-
}
|
|
616
|
-
return { disabled: !pciStatus?.signingRequired, infoMessage: void 0 };
|
|
617
|
-
})();
|
|
618
|
-
const serviceAgreementTaskState = (() => {
|
|
619
|
-
if (isSettingEnabled("allowBusinessLines") && shouldSignPciFirst) {
|
|
620
|
-
return { disabled: true, infoMessage: t(($) => $["signPciFirst"]) };
|
|
621
|
-
}
|
|
622
|
-
if (!hasServiceAgreementSigners) {
|
|
623
|
-
return { disabled: true, infoMessage: t(($) => $["requiresSignatory"]) };
|
|
624
|
-
}
|
|
625
|
-
return { disabled: false, infoMessage: void 0 };
|
|
626
|
-
})();
|
|
627
|
-
const getBusinessTaskListTitleKey = () => {
|
|
628
|
-
if (hasUnincorporatedPartnership) {
|
|
629
|
-
return "tellUsMoreAboutPrimaryPartner";
|
|
630
|
-
} else if (tasks.includes(TaskTypes.BUSINESS_DETAILS)) {
|
|
631
|
-
return isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
|
|
632
|
-
} else if (canChangeEntityType) {
|
|
633
|
-
return "provideFewDetailsAboutYourself";
|
|
634
|
-
} else {
|
|
635
|
-
return "accountDetailsDescription";
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
const getEmptyBankAccountProblems = () => {
|
|
639
|
-
const transferInstrumentId = legalEntityResponse?.transferInstruments?.[0]?.id;
|
|
640
|
-
return transferInstrumentId ? capabilityProblems?.BankAccount?.[transferInstrumentId] : void 0;
|
|
641
|
-
};
|
|
642
|
-
const onEditBusinessSetupClick = () => {
|
|
643
|
-
userEvents.addTaskEvent("Clicked button", {
|
|
644
|
-
task: TaskTypes.TASKS_OVERVIEW,
|
|
645
|
-
actionType: "edit"
|
|
646
|
-
});
|
|
647
|
-
onNavigateToTask(TaskTypes.BUSINESS_TYPE_SELECTION);
|
|
648
|
-
};
|
|
649
|
-
const onPciDownload = async () => {
|
|
650
|
-
try {
|
|
651
|
-
const response = await getPciQuestionnaireList(rootLegalEntityId.value, baseUrl.value);
|
|
652
|
-
if (!response.data) return;
|
|
653
|
-
await Promise.all(
|
|
654
|
-
response.data.map(async (pciQuestionnaireInfo) => {
|
|
655
|
-
const pciQuestionnaire = await getPciQuestionnaire(
|
|
656
|
-
rootLegalEntityId.value,
|
|
657
|
-
baseUrl.value,
|
|
658
|
-
pciQuestionnaireInfo.id
|
|
659
|
-
);
|
|
660
|
-
await downloadFile(pciQuestionnaire.content, `${pciQuestionnaire.id}.pdf`);
|
|
661
|
-
})
|
|
662
|
-
);
|
|
663
|
-
} catch {
|
|
664
|
-
showToast({ label: t(($) => $["failedToDownloadPci"]), variant: "error" });
|
|
665
|
-
} finally {
|
|
666
|
-
userEvents.addTaskEvent("Clicked button", {
|
|
667
|
-
task: TaskTypes.PCI_DSS,
|
|
668
|
-
actionType: "download"
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
|
-
const handleOnNavigateToTaskReview = () => onNavigateToTask(TaskTypes.REVIEW);
|
|
673
|
-
const handleOnNavigateToTaskIndividual = () => onNavigateToTask(TaskTypes.INDIVIDUAL);
|
|
674
|
-
const handleOnNavigateToTaskBusinessDetails = () => onNavigateToTask(TaskTypes.BUSINESS_DETAILS);
|
|
675
|
-
const handleOnNavigateToTaskBusinessLines = () => onNavigateToTask(TaskTypes.ACQUIRING_BUSINESS_LINE);
|
|
676
|
-
const handleOnNavigateToTaskCustomerSupport = () => onNavigateToTask(TaskTypes.CUSTOMER_SUPPORT);
|
|
677
|
-
const handleOnNavigateToTaskDecisionMaker = () => onNavigateToTask(TaskTypes.DECISION_MAKER_OVERVIEW);
|
|
678
|
-
const handleOnNavigateToTaskTrust = () => onNavigateToTask(TaskTypes.TRUST);
|
|
679
|
-
const handleOnNavigateToTaskTrustMember = () => onNavigateToTask(TaskTypes.TRUST_MEMBER_OVERVIEW);
|
|
680
|
-
const handleOnNavigateToTaskPayout = (id) => hasPayinTaskNotPayout ? onNavigateToTask(TaskTypes.PAYIN, id) : onNavigateToTask(TaskTypes.PAYOUT, id);
|
|
681
|
-
const handleOnNavigateToPci = () => !canDownloadPci && onNavigateToTask(TaskTypes.PCI_DSS);
|
|
682
|
-
const handleOnNavigateToSoleProp = () => onNavigateToTask(TaskTypes.SOLE_PROPRIETOR_COMPANY);
|
|
683
|
-
const handleOnNavigateToServiceAgreement = () => onNavigateToTask(TaskTypes.SERVICE_AGREEMENT);
|
|
684
|
-
const handleOnNavigateToTaskLegalRepresentative = () => onNavigateToTask(TaskTypes.LEGAL_REPRESENTATIVE_DETAILS);
|
|
685
|
-
const handleOnNavigateToSourceOfFunds = () => onNavigateToTask(TaskTypes.SOURCE_OF_FUNDS);
|
|
686
|
-
const handleOnNavigateToBusinessFinancing = () => onNavigateToTask(TaskTypes.BUSINESS_FINANCING);
|
|
687
|
-
const handleOnNavigateToTaxReporting = () => onNavigateToTask(TaskTypes.TAX_REPORTING);
|
|
688
|
-
const fullIndividualFormIds = [...individualFormIds];
|
|
689
|
-
const showDecisionMakersWarning = Boolean(
|
|
690
|
-
getOwnDecisionMakersLegalEntityIds(legalEntityResponse).length && remediationMessages.DECISION_MAKER
|
|
691
|
-
);
|
|
692
|
-
useEffect(() => {
|
|
693
|
-
if (showDecisionMakersWarning) {
|
|
694
|
-
userEvents.addTaskEvent("Encountered error", {
|
|
695
|
-
task: TaskTypes.TASKS_OVERVIEW,
|
|
696
|
-
actionType: "alert",
|
|
697
|
-
returnValue: "missingDecisionMaker"
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
}, [showDecisionMakersWarning, userEvents]);
|
|
701
|
-
return /* @__PURE__ */ jsxs("div", { className: "adyen-task-list__container", children: [
|
|
702
|
-
canSeeIntroduction && /* @__PURE__ */ jsx("div", { className: "adyen-task-list__nav", children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => onNavigateToTask(TaskTypes.INTRODUCTION), children: t(($) => $["goToIntroduction"]) }) }),
|
|
703
|
-
canChangeEntityType && /* @__PURE__ */ jsxs("header", { className: "adyen-task-list__heading", children: [
|
|
704
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: t(($) => $["setUpYourAccount"]) }),
|
|
705
|
-
/* @__PURE__ */ jsxs(Typography, { el: "p", variant: "title", className: "adyen-task-list__description", children: [
|
|
706
|
-
/* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-strongest", children: t(($) => $["yourBusinessSetup"], {
|
|
707
|
-
businessSetup: businessSetup ? t(($) => $[businessSetup]) : t(($) => $["unknown"])
|
|
708
|
-
}) }),
|
|
709
|
-
/* @__PURE__ */ jsx(
|
|
710
|
-
IconButton,
|
|
711
|
-
{
|
|
712
|
-
ariaLabel: t(($) => $["editBusinessSetup"]),
|
|
713
|
-
icon: "edit",
|
|
714
|
-
variant: "tertiary",
|
|
715
|
-
onClick: onEditBusinessSetupClick
|
|
716
|
-
}
|
|
717
|
-
)
|
|
718
|
-
] })
|
|
719
|
-
] }),
|
|
720
|
-
singpassComponent,
|
|
721
|
-
/* @__PURE__ */ jsxs(StackLayout, { children: [
|
|
722
|
-
hasTaskOfGroupAccountDetails && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $[getBusinessTaskListTitleKey()]), children: [
|
|
723
|
-
tasks.includes(TaskTypes.INDIVIDUAL) && /* @__PURE__ */ jsx(
|
|
724
|
-
TaskListItem,
|
|
725
|
-
{
|
|
726
|
-
onNavigateToTask: handleOnNavigateToTaskIndividual,
|
|
727
|
-
icon: "decision-maker",
|
|
728
|
-
titleKey: hasTrust ? "trusteePersonalDetails" : hasUnincorporatedPartnership ? "primaryPartnerDetails" : "personalDetails",
|
|
729
|
-
status: getTaskStatus(TaskTypes.INDIVIDUAL),
|
|
730
|
-
problems: filterProblemsByTaskForms(rootLegalEntityProblems, fullIndividualFormIds)
|
|
731
|
-
}
|
|
732
|
-
),
|
|
733
|
-
tasks.includes(TaskTypes.BUSINESS_DETAILS) && /* @__PURE__ */ jsx(
|
|
734
|
-
TaskListItem,
|
|
735
|
-
{
|
|
736
|
-
testId: TaskTypes.BUSINESS_DETAILS,
|
|
737
|
-
onNavigateToTask: handleOnNavigateToTaskBusinessDetails,
|
|
738
|
-
icon: "company",
|
|
739
|
-
titleKey: hasTrust ? "businessTrusteeDetails" : hasUnincorporatedPartnership ? "primaryPartnerDetails" : "businessDetails",
|
|
740
|
-
status: businessDetailsTaskStatus,
|
|
741
|
-
problems: filterProblemsByTaskForms(rootLegalEntityProblems, businessFormIds)
|
|
742
|
-
}
|
|
743
|
-
),
|
|
744
|
-
hasSoleProprietorship && /* @__PURE__ */ jsx(
|
|
745
|
-
TaskListItem,
|
|
746
|
-
{
|
|
747
|
-
onNavigateToTask: handleOnNavigateToSoleProp,
|
|
748
|
-
icon: "company",
|
|
749
|
-
titleKey: canChangeEntityType ? "soleProprietorshipDetails" : "soleProprietorDetails",
|
|
750
|
-
status: getTaskStatus(TaskTypes.SOLE_PROPRIETOR_COMPANY),
|
|
751
|
-
problems: getOwnSolePropProblems(legalEntityResponse, capabilityProblems)
|
|
752
|
-
}
|
|
753
|
-
),
|
|
754
|
-
isLegalRepresentativeRequired && /* @__PURE__ */ jsx(
|
|
755
|
-
TaskListItem,
|
|
756
|
-
{
|
|
757
|
-
onNavigateToTask: handleOnNavigateToTaskLegalRepresentative,
|
|
758
|
-
icon: "decision-maker",
|
|
759
|
-
titleKey: "legalRepresentative",
|
|
760
|
-
status: getTaskStatus(TaskTypes.LEGAL_REPRESENTATIVE_DETAILS)
|
|
761
|
-
}
|
|
762
|
-
),
|
|
763
|
-
tasks.includes(TaskTypes.DECISION_MAKER_OVERVIEW) && /* @__PURE__ */ jsx(
|
|
764
|
-
TaskListItem,
|
|
765
|
-
{
|
|
766
|
-
onNavigateToTask: handleOnNavigateToTaskDecisionMaker,
|
|
767
|
-
icon: "decision-maker",
|
|
768
|
-
titleKey: hasUnincorporatedPartnership ? "entityDecisionMakers" : "decisionMakers",
|
|
769
|
-
status: getTaskStatus(TaskTypes.DECISION_MAKER_OVERVIEW),
|
|
770
|
-
warningMessage: showDecisionMakersWarning ? remediationMessages[TaskTypes.DECISION_MAKER] : void 0
|
|
771
|
-
}
|
|
772
|
-
),
|
|
773
|
-
tasks.includes(TaskTypes.ACQUIRING_BUSINESS_LINE) && /* @__PURE__ */ jsx(
|
|
774
|
-
TaskListItem,
|
|
775
|
-
{
|
|
776
|
-
testId: TaskTypes.ACQUIRING_BUSINESS_LINE,
|
|
777
|
-
onNavigateToTask: handleOnNavigateToTaskBusinessLines,
|
|
778
|
-
icon: "solutionPayments",
|
|
779
|
-
titleKey: "businessLines",
|
|
780
|
-
status: businessLinesTaskStatus
|
|
781
|
-
}
|
|
782
|
-
),
|
|
783
|
-
showCustomerSupportV4 && tasks.includes(TaskTypes.CUSTOMER_SUPPORT) && /* @__PURE__ */ jsx(
|
|
784
|
-
TaskListItem,
|
|
785
|
-
{
|
|
786
|
-
onNavigateToTask: handleOnNavigateToTaskCustomerSupport,
|
|
787
|
-
icon: "webinar",
|
|
788
|
-
titleKey: "customerSupport",
|
|
789
|
-
status: normalizedTasks?.CUSTOMER_SUPPORT?.status ?? TaskStatuses.DETAILS_REQUIRED,
|
|
790
|
-
problems: filterProblemsByTaskForms(rootLegalEntityProblems, ["customerSupport"])
|
|
791
|
-
}
|
|
792
|
-
)
|
|
793
|
-
] }),
|
|
794
|
-
hasTrust && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["trustDetailsDescription"]), children: [
|
|
795
|
-
/* @__PURE__ */ jsx(
|
|
796
|
-
TaskListItem,
|
|
797
|
-
{
|
|
798
|
-
onNavigateToTask: handleOnNavigateToTaskTrust,
|
|
799
|
-
icon: "trust",
|
|
800
|
-
titleKey: "trustDetails",
|
|
801
|
-
status: getTaskStatus(TaskTypes.TRUST),
|
|
802
|
-
problems: getOwnTrustProblems(legalEntityResponse, capabilityProblems)
|
|
803
|
-
}
|
|
804
|
-
),
|
|
805
|
-
/* @__PURE__ */ jsx(
|
|
806
|
-
TaskListItem,
|
|
807
|
-
{
|
|
808
|
-
onNavigateToTask: handleOnNavigateToTaskTrustMember,
|
|
809
|
-
icon: "decision-maker",
|
|
810
|
-
titleKey: "trustMembers",
|
|
811
|
-
status: getTaskStatus(TaskTypes.TRUST_MEMBER_OVERVIEW)
|
|
812
|
-
}
|
|
813
|
-
)
|
|
814
|
-
] }),
|
|
815
|
-
hasUnincorporatedPartnership && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["partnershipUnincorporated"]), children: [
|
|
816
|
-
/* @__PURE__ */ jsx(
|
|
817
|
-
TaskListItem,
|
|
818
|
-
{
|
|
819
|
-
onNavigateToTask: () => onNavigateToTask(TaskTypes.UNINCORPORATED_PARTNERSHIP),
|
|
820
|
-
icon: "trust",
|
|
821
|
-
titleKey: "unincorporatedDetails",
|
|
822
|
-
status: getTaskStatus(TaskTypes.UNINCORPORATED_PARTNERSHIP),
|
|
823
|
-
problems: getOwnUnincorporatedPartnershipProblems(
|
|
824
|
-
legalEntityResponse,
|
|
825
|
-
capabilityProblems
|
|
826
|
-
)
|
|
827
|
-
}
|
|
828
|
-
),
|
|
829
|
-
/* @__PURE__ */ jsx(
|
|
830
|
-
TaskListItem,
|
|
831
|
-
{
|
|
832
|
-
onNavigateToTask: () => {
|
|
833
|
-
if (!isPartOfUnincorporatedPartnership(legalEntityResponse)) {
|
|
834
|
-
onNavigateToTask(TaskTypes.UNINCORPORATED_PARTNERSHIP);
|
|
835
|
-
} else {
|
|
836
|
-
onNavigateToTask(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW);
|
|
837
|
-
}
|
|
838
|
-
},
|
|
839
|
-
icon: "decision-maker",
|
|
840
|
-
titleKey: "unincorporatedPartnershipMembers",
|
|
841
|
-
status: getTaskStatus(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW)
|
|
842
|
-
}
|
|
843
|
-
)
|
|
844
|
-
] }),
|
|
845
|
-
hasFinancingTasks && /* @__PURE__ */ jsxs(TaskListGroup, { children: [
|
|
846
|
-
tasks.includes(TaskTypes.SOURCE_OF_FUNDS) && /* @__PURE__ */ jsx(
|
|
847
|
-
TaskListItem,
|
|
848
|
-
{
|
|
849
|
-
onNavigateToTask: handleOnNavigateToSourceOfFunds,
|
|
850
|
-
icon: "cash-stack",
|
|
851
|
-
titleKey: "fundingSources",
|
|
852
|
-
status: normalizedTasks?.SOURCE_OF_FUNDS?.status ?? TaskStatuses.DETAILS_REQUIRED
|
|
853
|
-
}
|
|
854
|
-
),
|
|
855
|
-
tasks.includes(TaskTypes.BUSINESS_FINANCING) && /* @__PURE__ */ jsx(
|
|
856
|
-
TaskListItem,
|
|
857
|
-
{
|
|
858
|
-
onNavigateToTask: handleOnNavigateToBusinessFinancing,
|
|
859
|
-
icon: "capital",
|
|
860
|
-
titleKey: "businessFinancing",
|
|
861
|
-
status: normalizedTasks?.BUSINESS_FINANCING?.status ?? TaskStatuses.DETAILS_REQUIRED
|
|
862
|
-
}
|
|
863
|
-
)
|
|
864
|
-
] }),
|
|
865
|
-
tasks.includes(TaskTypes.TAX_REPORTING) && /* @__PURE__ */ jsx(TaskListGroup, { children: /* @__PURE__ */ jsx(
|
|
866
|
-
TaskListItem,
|
|
867
|
-
{
|
|
868
|
-
onNavigateToTask: handleOnNavigateToTaxReporting,
|
|
869
|
-
icon: "reporting",
|
|
870
|
-
titleKey: "taxReporting",
|
|
871
|
-
status: normalizedTasks?.TAX_REPORTING?.status ?? TaskStatuses.DETAILS_REQUIRED
|
|
872
|
-
}
|
|
873
|
-
) }),
|
|
874
|
-
(tasks.includes(TaskTypes.PAYOUT) || tasks.includes(TaskTypes.PAYIN)) && !hidePayoutAccountTaskToggled && /* @__PURE__ */ jsx(
|
|
875
|
-
TaskListGroup,
|
|
876
|
-
{
|
|
877
|
-
title: canChangeEntityType ? t(($) => $["payoutBankAccounts"]) : t(
|
|
878
|
-
($) => $[hasPayinTaskNotPayout ? "payinAccountsDescription" : payoutTaskDescriptionKey]
|
|
879
|
-
),
|
|
880
|
-
children: transferInstruments.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
881
|
-
transferInstruments.map((transferInstrument) => /* @__PURE__ */ jsx(
|
|
882
|
-
PayoutAccountTaskListItem,
|
|
883
|
-
{
|
|
884
|
-
account: transferInstrument,
|
|
885
|
-
capabilityProblems,
|
|
886
|
-
onNavigateToTask: () => handleOnNavigateToTaskPayout(transferInstrument.id),
|
|
887
|
-
payinPayoutTaskStatus
|
|
888
|
-
},
|
|
889
|
-
transferInstrument.id
|
|
890
|
-
)),
|
|
891
|
-
!transferInstrumentLimit || transferInstruments.length < transferInstrumentLimit ? /* @__PURE__ */ jsxs(
|
|
892
|
-
Card,
|
|
893
|
-
{
|
|
894
|
-
onClick: () => handleOnNavigateToTaskPayout(),
|
|
895
|
-
disabled: !canAddPayoutAccount,
|
|
896
|
-
children: [
|
|
897
|
-
/* @__PURE__ */ jsx(Icon, { name: "plus", className: "adyen-task-list__card-icon " }),
|
|
898
|
-
/* @__PURE__ */ jsx("span", { children: canChangeEntityType ? t(($) => $["addExtraBankAccount"]) : t(
|
|
899
|
-
($) => $[hasPayinTaskNotPayout ? "addExtraPayinAccount" : "addExtraPayoutAccount"]
|
|
900
|
-
) })
|
|
901
|
-
]
|
|
902
|
-
}
|
|
903
|
-
) : null
|
|
904
|
-
] }) : /* @__PURE__ */ jsx(
|
|
905
|
-
TaskListItem,
|
|
906
|
-
{
|
|
907
|
-
onNavigateToTask: () => handleOnNavigateToTaskPayout(),
|
|
908
|
-
icon: "payout",
|
|
909
|
-
titleKey: canChangeEntityType ? "bankAccountDetails" : hasPayinTaskNotPayout ? "payinDetails" : "payoutDetails",
|
|
910
|
-
status: TaskStatuses.DETAILS_REQUIRED,
|
|
911
|
-
disabled: !canAddPayoutAccount,
|
|
912
|
-
problems: getEmptyBankAccountProblems()
|
|
913
|
-
}
|
|
914
|
-
)
|
|
915
|
-
}
|
|
916
|
-
),
|
|
917
|
-
hasContractTasks && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["reviewAndSignLegalDisclosures"]), children: [
|
|
918
|
-
showPciTask && /* @__PURE__ */ jsx(
|
|
919
|
-
TaskListItem,
|
|
920
|
-
{
|
|
921
|
-
onNavigateToTask: handleOnNavigateToPci,
|
|
922
|
-
icon: "pci",
|
|
923
|
-
titleKey: "pciDssQuestionnaire",
|
|
924
|
-
status: canDownloadPci ? TaskStatuses.DOWNLOAD : TaskStatuses.SIGN,
|
|
925
|
-
info: pciTaskState.infoMessage,
|
|
926
|
-
downloadHandler: onPciDownload,
|
|
927
|
-
disabled: pciTaskState.disabled
|
|
928
|
-
}
|
|
929
|
-
),
|
|
930
|
-
showServiceAgreementTask && /* @__PURE__ */ jsx(
|
|
931
|
-
TaskListItem,
|
|
932
|
-
{
|
|
933
|
-
onNavigateToTask: handleOnNavigateToServiceAgreement,
|
|
934
|
-
icon: "contract",
|
|
935
|
-
titleKey: "signServiceAgreement",
|
|
936
|
-
disabled: serviceAgreementTaskState.disabled,
|
|
937
|
-
status: serviceAgreementTypes.length ? TaskStatuses.SIGN : TaskStatuses.SIGNED,
|
|
938
|
-
info: serviceAgreementTaskState.infoMessage
|
|
939
|
-
}
|
|
940
|
-
)
|
|
941
|
-
] }),
|
|
942
|
-
isReview && /* @__PURE__ */ jsx(TaskListGroup, { title: t(($) => $["pleaseEnsureTheFollowing"]), children: /* @__PURE__ */ jsx(
|
|
943
|
-
TaskListItem,
|
|
944
|
-
{
|
|
945
|
-
onNavigateToTask: handleOnNavigateToTaskReview,
|
|
946
|
-
icon: "review",
|
|
947
|
-
titleKey: "submitReviewOfYourData",
|
|
948
|
-
status: TaskStatuses.SUBMIT,
|
|
949
|
-
problems: rootLegalEntityProblems,
|
|
950
|
-
showErrorAlerts: "always"
|
|
951
|
-
}
|
|
952
|
-
) })
|
|
953
|
-
] })
|
|
954
|
-
] });
|
|
955
|
-
}
|
|
956
|
-
const getHasSeenIntroductionStorageKey = (legalEntityId) => `COMPLETED_INTRO-${legalEntityId}`;
|
|
957
|
-
const useHasSeenIntroduction = ({ legalEntityId }) => {
|
|
958
|
-
const [hasSeenIntroduction, setHasSeenIntroduction] = useLocalStorage(
|
|
959
|
-
getHasSeenIntroductionStorageKey(legalEntityId),
|
|
960
|
-
false
|
|
961
|
-
);
|
|
962
|
-
return { hasSeenIntroduction, setHasSeenIntroduction };
|
|
963
|
-
};
|
|
964
|
-
const getHasSeenSingpassSelectionStorageKey = (legalEntityId) => `COMPLETED_SINGPASS_SELECTION-${legalEntityId}`;
|
|
965
|
-
const useHasSeenSingpassSelection = ({
|
|
966
|
-
legalEntityId
|
|
967
|
-
}) => {
|
|
968
|
-
const [hasSeenSingpassSelection, setHasSeenSingpassSelection] = useLocalStorage(
|
|
969
|
-
getHasSeenSingpassSelectionStorageKey(legalEntityId),
|
|
970
|
-
false
|
|
971
|
-
);
|
|
972
|
-
return { hasSeenSingpassSelection, setHasSeenSingpassSelection };
|
|
973
|
-
};
|
|
974
|
-
async function convertToSingpassLinkResponse(openIdInitiateResponse) {
|
|
975
|
-
const response = await Promise.resolve(openIdInitiateResponse);
|
|
976
|
-
const item = { authUrl: response.authUrl, success: true };
|
|
977
|
-
return { item };
|
|
978
|
-
}
|
|
979
|
-
const useOpenIdAuthorizationLink = (options) => {
|
|
980
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
981
|
-
return useQuery({
|
|
982
|
-
queryKey: ["openIdAuthorizationLink"],
|
|
983
|
-
queryFn: () => getOpenIdAuthorizationLink(rootLegalEntityId.value, baseUrl.value),
|
|
984
|
-
...options
|
|
985
|
-
});
|
|
986
|
-
};
|
|
987
|
-
const getOpenIdAuthorizationLink = async (legalEntityId, baseUrl) => {
|
|
988
|
-
return convertToSingpassLinkResponse(
|
|
989
|
-
httpPost({
|
|
990
|
-
baseUrl,
|
|
991
|
-
path: `/legalEntities/${legalEntityId}/openid/initiate`
|
|
992
|
-
})
|
|
993
|
-
);
|
|
994
|
-
};
|
|
995
|
-
const SingpassMyInfoLoginActionTypes = {
|
|
996
|
-
LOADING: "LOADING",
|
|
997
|
-
SUCCESS: "SUCCESS",
|
|
998
|
-
FAILURE: "FAILURE",
|
|
999
|
-
RESET: "RESET"
|
|
1000
|
-
};
|
|
1001
|
-
const defaultSingpassState = { isLoading: false, isSuccess: false };
|
|
1002
|
-
const singpassReducer = (state, action) => {
|
|
1003
|
-
switch (action.type) {
|
|
1004
|
-
case SingpassMyInfoLoginActionTypes.LOADING:
|
|
1005
|
-
return { ...state, isLoading: true };
|
|
1006
|
-
case SingpassMyInfoLoginActionTypes.SUCCESS:
|
|
1007
|
-
return { isLoading: false, isSuccess: true };
|
|
1008
|
-
case SingpassMyInfoLoginActionTypes.FAILURE:
|
|
1009
|
-
return { isLoading: false, isSuccess: false, errorMessage: action.errorMessage };
|
|
1010
|
-
case SingpassMyInfoLoginActionTypes.RESET:
|
|
1011
|
-
return defaultSingpassState;
|
|
1012
|
-
default:
|
|
1013
|
-
return state;
|
|
1014
|
-
}
|
|
1015
|
-
};
|
|
1016
|
-
const useSingpassMyInfoLogin = ({
|
|
1017
|
-
legalEntity,
|
|
1018
|
-
accountHolder
|
|
1019
|
-
}) => {
|
|
1020
|
-
const existingProvider = getTrustedFieldsProvider(legalEntity);
|
|
1021
|
-
const defaultState = {
|
|
1022
|
-
isLoading: false,
|
|
1023
|
-
isSuccess: existingProvider === TrustedFieldsProviders.SINGPASS
|
|
1024
|
-
};
|
|
1025
|
-
const [state, dispatch] = useReducer(
|
|
1026
|
-
singpassReducer,
|
|
1027
|
-
defaultState
|
|
1028
|
-
);
|
|
1029
|
-
const { refetch: fetchOpenIdAuthorizationLink } = useOpenIdAuthorizationLink({ enabled: false });
|
|
1030
|
-
const isEligibleForSingpass = useMemo(() => {
|
|
1031
|
-
if (!legalEntity) {
|
|
1032
|
-
return false;
|
|
1033
|
-
}
|
|
1034
|
-
if (getLegalEntityCountry(legalEntity) !== CountryCodes.Singapore) {
|
|
1035
|
-
return false;
|
|
1036
|
-
}
|
|
1037
|
-
if (accountHolder) {
|
|
1038
|
-
return accountHolder === "theCompanyIWorkFor" || accountHolder === "myName";
|
|
1039
|
-
}
|
|
1040
|
-
const legalEntityType = legalEntity.type;
|
|
1041
|
-
const isPartOfTrust = isPartOfTrustFromLegalEntity(legalEntity);
|
|
1042
|
-
const isVanillaOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION && !isPartOfTrust;
|
|
1043
|
-
const hasSoleProprietor = hasSolePropInLegalEntity(legalEntity);
|
|
1044
|
-
const isVanillaIndividual = legalEntityType === LegalEntityTypes.INDIVIDUAL && !hasSoleProprietor;
|
|
1045
|
-
return isVanillaOrganization || isVanillaIndividual;
|
|
1046
|
-
}, [legalEntity, accountHolder]);
|
|
1047
|
-
const handleInitiateSingpassMyInfoLogin = async () => {
|
|
1048
|
-
dispatch({ ...state, type: SingpassMyInfoLoginActionTypes.LOADING });
|
|
1049
|
-
const { data } = await fetchOpenIdAuthorizationLink();
|
|
1050
|
-
return data?.item.authUrl;
|
|
1051
|
-
};
|
|
1052
|
-
const handleSingpassMyInfoLoginSuccess = () => {
|
|
1053
|
-
dispatch({ ...state, type: SingpassMyInfoLoginActionTypes.SUCCESS });
|
|
1054
|
-
};
|
|
1055
|
-
const handleSingpassMyInfoLoginFailure = (errorMessage) => {
|
|
1056
|
-
dispatch({ ...state, errorMessage, type: SingpassMyInfoLoginActionTypes.FAILURE });
|
|
1057
|
-
};
|
|
1058
|
-
const handleSingpassMyInfoLoginReset = () => {
|
|
1059
|
-
dispatch({ ...state, type: SingpassMyInfoLoginActionTypes.RESET });
|
|
1060
|
-
};
|
|
1061
|
-
return {
|
|
1062
|
-
isEligibleForSingpass,
|
|
1063
|
-
state,
|
|
1064
|
-
handleInitiateSingpassMyInfoLogin,
|
|
1065
|
-
handleSingpassMyInfoLoginSuccess,
|
|
1066
|
-
handleSingpassMyInfoLoginFailure,
|
|
1067
|
-
handleSingpassMyInfoLoginReset
|
|
1068
|
-
};
|
|
1069
|
-
};
|
|
1070
|
-
const useAssociatedLegalRepresentative = (legalEntity) => {
|
|
1071
|
-
const matchingAssociation = useMemo(() => {
|
|
1072
|
-
return getLegalRepresentative(legalEntity);
|
|
1073
|
-
}, [legalEntity]);
|
|
1074
|
-
const { data } = useLegalEntity(
|
|
1075
|
-
doesLegalEntityRequiresLegalRepresentative(legalEntity) && matchingAssociation?.legalEntityId ? matchingAssociation.legalEntityId : skipToken
|
|
1076
|
-
);
|
|
1077
|
-
return data;
|
|
1078
|
-
};
|
|
1079
|
-
const getCanSeeEntitySelectionStorageKey = (legalEntityId) => `ENTITY_SELECTION_SEEN-${legalEntityId}`;
|
|
1080
|
-
const useCanSeeEntitySelection = (legalEntityId) => {
|
|
1081
|
-
const [canSeeEntitySelectionFromLocalStorage, setCanSeeEntitySelectionIntoLocalStorage] = useLocalStorage(getCanSeeEntitySelectionStorageKey(legalEntityId), true);
|
|
1082
|
-
return {
|
|
1083
|
-
canSeeEntitySelection: canSeeEntitySelectionFromLocalStorage,
|
|
1084
|
-
setCanSeeEntitySelection: setCanSeeEntitySelectionIntoLocalStorage
|
|
1085
|
-
};
|
|
1086
|
-
};
|
|
1087
|
-
function useTaskLandedEvent(taskType) {
|
|
1088
|
-
const userEvents = useAnalyticsContext();
|
|
1089
|
-
const oldTaskTypeRef = useRef(void 0);
|
|
1090
|
-
if (taskType && oldTaskTypeRef.current !== taskType) {
|
|
1091
|
-
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
1092
|
-
userEvents.addTaskEvent("Landed on page", {
|
|
1093
|
-
actionType: "start"
|
|
1094
|
-
});
|
|
1095
|
-
oldTaskTypeRef.current = taskType;
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
const providerButton = "adyen-kyc-provider-button";
|
|
1099
|
-
const providerButtonDisplayName = "adyen-kyc-provider-button-display-name";
|
|
1100
|
-
const styles = {
|
|
1101
|
-
providerButton,
|
|
1102
|
-
providerButtonDisplayName
|
|
1103
|
-
};
|
|
1104
|
-
const singpassLogo = lazy(
|
|
1105
|
-
() => import("./singpass-logo-wY4xsmTX.js")
|
|
1106
|
-
);
|
|
1107
|
-
const ProviderButton = ({ provider, onClick }) => {
|
|
1108
|
-
const { t } = useTranslation("ui");
|
|
1109
|
-
const providerDisplayName = {
|
|
1110
|
-
singpassMyInfo: "Singpass",
|
|
1111
|
-
singpassMyInfoBusiness: "Singpass"
|
|
1112
|
-
};
|
|
1113
|
-
const buttonLabel = {
|
|
1114
|
-
singpassMyInfo: t(($) => $["retrieveMyinfo"]),
|
|
1115
|
-
singpassMyInfoBusiness: t(($) => $["retrieveMyinfoBusiness"])
|
|
1116
|
-
};
|
|
1117
|
-
return /* @__PURE__ */ jsx(Button, { onClick, fullWidth: true, variant: "secondary", children: /* @__PURE__ */ jsxs("div", { className: styles.providerButton, children: [
|
|
1118
|
-
buttonLabel[provider],
|
|
1119
|
-
/* @__PURE__ */ jsx("span", { className: styles.providerButtonDisplayName, children: providerDisplayName[provider] }),
|
|
1120
|
-
/* @__PURE__ */ jsx(Image, { lazyLoadedImage: singpassLogo })
|
|
1121
|
-
] }) });
|
|
1122
|
-
};
|
|
1123
|
-
const legalEntityTypeToSubtitleTranslationKey = {
|
|
1124
|
-
[LegalEntityTypes.INDIVIDUAL]: "myInfoYouCanGetVerifiedDetails",
|
|
1125
|
-
[LegalEntityTypes.ORGANIZATION]: "myInfoBusinessYouCanGetVerifiedDetails"
|
|
1126
|
-
};
|
|
1127
|
-
const legalEntityTypeToProviderButtonKey = {
|
|
1128
|
-
[LegalEntityTypes.INDIVIDUAL]: "singpassMyInfo",
|
|
1129
|
-
[LegalEntityTypes.ORGANIZATION]: "singpassMyInfoBusiness"
|
|
1130
|
-
};
|
|
1131
|
-
const successAlertTitleText = {
|
|
1132
|
-
[LegalEntityTypes.INDIVIDUAL]: "myinfoDetailsRetrieved",
|
|
1133
|
-
[LegalEntityTypes.ORGANIZATION]: "myinfoBusinessDetailsRetrieved"
|
|
1134
|
-
};
|
|
1135
|
-
const successAlertContentText = {
|
|
1136
|
-
[LegalEntityTypes.INDIVIDUAL]: "yourDetailsArePreFilledInTheRelevantSections",
|
|
1137
|
-
[LegalEntityTypes.ORGANIZATION]: "yourBusinesssDetailsArePreFilledInTheRelevantSections"
|
|
1138
|
-
};
|
|
1139
|
-
const SingpassBanner = ({
|
|
1140
|
-
isLoading,
|
|
1141
|
-
isSuccess,
|
|
1142
|
-
errorMessage,
|
|
1143
|
-
onClick,
|
|
1144
|
-
onAlertClose,
|
|
1145
|
-
onMessage,
|
|
1146
|
-
legalEntityType
|
|
1147
|
-
}) => {
|
|
1148
|
-
const { t } = useTranslation("common");
|
|
1149
|
-
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
1150
|
-
const singpassEventListener = useCallback(
|
|
1151
|
-
(event) => {
|
|
1152
|
-
if (event.origin !== new URL(baseUrl.value).origin) return;
|
|
1153
|
-
if (event.data.legalEntityReference !== rootLegalEntityId.value) return;
|
|
1154
|
-
onMessage({ data: { isSuccessful: event.data.isSuccessful } });
|
|
1155
|
-
},
|
|
1156
|
-
[baseUrl.value, rootLegalEntityId.value, onMessage]
|
|
1157
|
-
);
|
|
1158
|
-
useEffect(() => {
|
|
1159
|
-
window.addEventListener("message", singpassEventListener);
|
|
1160
|
-
return () => window.removeEventListener("message", singpassEventListener);
|
|
1161
|
-
}, [singpassEventListener]);
|
|
1162
|
-
if (isLoading) {
|
|
1163
|
-
return /* @__PURE__ */ jsx(Skeleton, {});
|
|
1164
|
-
}
|
|
1165
|
-
if (isSuccess) {
|
|
1166
|
-
const successTitleText = successAlertTitleText[legalEntityType];
|
|
1167
|
-
const successContentText = successAlertContentText[legalEntityType];
|
|
1168
|
-
return /* @__PURE__ */ jsx(
|
|
1169
|
-
Alert,
|
|
1170
|
-
{
|
|
1171
|
-
variant: "success",
|
|
1172
|
-
title: successTitleText && t(($) => $[successTitleText]),
|
|
1173
|
-
onClose: onAlertClose,
|
|
1174
|
-
children: successContentText && t(($) => $[successContentText])
|
|
1175
|
-
}
|
|
1176
|
-
);
|
|
1177
|
-
}
|
|
1178
|
-
const providerName = legalEntityTypeToProviderButtonKey[legalEntityType];
|
|
1179
|
-
if (errorMessage) {
|
|
1180
|
-
return /* @__PURE__ */ jsx(
|
|
1181
|
-
Alert,
|
|
1182
|
-
{
|
|
1183
|
-
variant: "warning",
|
|
1184
|
-
title: translateTranslatable(t, errorMessage),
|
|
1185
|
-
onClose: onAlertClose,
|
|
1186
|
-
children: /* @__PURE__ */ jsxs(Typography, { variant: "body", children: [
|
|
1187
|
-
t(($) => $["tryAgainOrContinueEnteringTheDetailsYourself"]),
|
|
1188
|
-
providerName && /* @__PURE__ */ jsx(ProviderButton, { provider: providerName, onClick })
|
|
1189
|
-
] })
|
|
1190
|
-
}
|
|
1191
|
-
);
|
|
1192
|
-
}
|
|
1193
|
-
const subtitleTranslationKey = legalEntityTypeToSubtitleTranslationKey[legalEntityType];
|
|
1194
|
-
return /* @__PURE__ */ jsxs(
|
|
1195
|
-
Alert,
|
|
1196
|
-
{
|
|
1197
|
-
className: cx("adyen-task-list-singpass-banner"),
|
|
1198
|
-
icon: false,
|
|
1199
|
-
title: t(($) => $["getSetUpInstantly"]),
|
|
1200
|
-
children: [
|
|
1201
|
-
subtitleTranslationKey && /* @__PURE__ */ jsx("div", { className: cx("adyen-task-list-singpass-banner__subtitle"), children: t(($) => $[subtitleTranslationKey]) }),
|
|
1202
|
-
providerName && /* @__PURE__ */ jsx(ProviderButton, { provider: providerName, onClick })
|
|
1203
|
-
]
|
|
1204
|
-
}
|
|
1205
|
-
);
|
|
1206
|
-
};
|
|
1207
|
-
const isNewEntity = /* @__PURE__ */ Symbol("isNewEntity");
|
|
1208
|
-
const useExemptSettlor = ({
|
|
1209
|
-
trust
|
|
1210
|
-
}) => {
|
|
1211
|
-
const matchingAssociation = useMemo(() => {
|
|
1212
|
-
if (!trust) return void 0;
|
|
1213
|
-
return getOwnEntityAssociations(trust).find(
|
|
1214
|
-
(association) => association.type === TrustMemberTypes.SETTLOR && Boolean(association.settlorExemptionReason)
|
|
1215
|
-
);
|
|
1216
|
-
}, [trust]);
|
|
1217
|
-
const { data } = useLegalEntity(matchingAssociation?.legalEntityId ?? skipToken);
|
|
1218
|
-
return data;
|
|
1219
|
-
};
|
|
1220
|
-
const splitAtFirstOccurrence = (str, separator) => {
|
|
1221
|
-
const firstOccurrence = str.indexOf(separator);
|
|
1222
|
-
if (firstOccurrence === -1) return [str];
|
|
1223
|
-
return [str.slice(0, firstOccurrence), str.slice(firstOccurrence + 1)];
|
|
1224
|
-
};
|
|
1225
|
-
const getTrustMemberOwnerId = (trustMemberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === trustMemberId)?.legalEntityId;
|
|
1226
|
-
const getFallbackName = (exemptSettlorAssociation) => {
|
|
1227
|
-
const [firstName, lastName] = splitAtFirstOccurrence(exemptSettlorAssociation.name ?? "", " ");
|
|
1228
|
-
return {
|
|
1229
|
-
firstName,
|
|
1230
|
-
lastName
|
|
1231
|
-
};
|
|
1232
|
-
};
|
|
1233
|
-
const convertEntityAssociationIntoTrustMember = (association, associations, exemptSettlorLE) => {
|
|
1234
|
-
if (association.settlorExemptionReason) {
|
|
1235
|
-
return {
|
|
1236
|
-
trustMemberType: "exemptSettlor",
|
|
1237
|
-
roles: [TrustMemberTypes.SETTLOR],
|
|
1238
|
-
legalEntityType: association.entityType,
|
|
1239
|
-
legalEntityId: association.legalEntityId,
|
|
1240
|
-
settlorExemptionReason: association.settlorExemptionReason,
|
|
1241
|
-
exemptSettlorName: association.entityType === LegalEntityTypes.INDIVIDUAL ? exemptSettlorLE?.individual?.name ?? getFallbackName(association) : void 0,
|
|
1242
|
-
name: association.name
|
|
1243
|
-
};
|
|
1244
|
-
}
|
|
1245
|
-
if (association.entityType === LegalEntityTypes.ORGANIZATION)
|
|
1246
|
-
return {
|
|
1247
|
-
trustMemberType: "company",
|
|
1248
|
-
roles: [],
|
|
1249
|
-
legalEntityType: LegalEntityTypes.ORGANIZATION,
|
|
1250
|
-
legalEntityId: association.legalEntityId,
|
|
1251
|
-
name: association.name,
|
|
1252
|
-
ownerId: getTrustMemberOwnerId(association.legalEntityId, associations)
|
|
1253
|
-
};
|
|
1254
|
-
if (association.entityType === LegalEntityTypes.INDIVIDUAL)
|
|
1255
|
-
return {
|
|
1256
|
-
trustMemberType: "regular",
|
|
1257
|
-
roles: [],
|
|
1258
|
-
legalEntityType: LegalEntityTypes.INDIVIDUAL,
|
|
1259
|
-
legalEntityId: association.legalEntityId,
|
|
1260
|
-
name: association.name
|
|
1261
|
-
};
|
|
1262
|
-
throw new Error(`Not a valid trust member: ${JSON.stringify(association)}`);
|
|
1263
|
-
};
|
|
1264
|
-
const mapEntityAssociationsToTrustMembers = (trustEntityId, entityAssociations, exemptSettlorLE) => {
|
|
1265
|
-
const mappedTrustMembers = entityAssociations.reduce(
|
|
1266
|
-
(acc, entityAssociation) => {
|
|
1267
|
-
if (!Object.values(TrustMemberTypes).includes(entityAssociation.type) || entityAssociation.associatorId !== trustEntityId || !entityAssociation.legalEntityId) {
|
|
1268
|
-
return acc;
|
|
1269
|
-
}
|
|
1270
|
-
const trustMember = acc[entityAssociation.legalEntityId] ?? convertEntityAssociationIntoTrustMember(
|
|
1271
|
-
entityAssociation,
|
|
1272
|
-
entityAssociations,
|
|
1273
|
-
exemptSettlorLE
|
|
1274
|
-
);
|
|
1275
|
-
const trustMemberType = entityAssociation.type;
|
|
1276
|
-
acc[entityAssociation.legalEntityId] = {
|
|
1277
|
-
...trustMember,
|
|
1278
|
-
roles: [.../* @__PURE__ */ new Set([...trustMember.roles, trustMemberType])]
|
|
1279
|
-
};
|
|
1280
|
-
return acc;
|
|
1281
|
-
},
|
|
1282
|
-
{}
|
|
1283
|
-
);
|
|
1284
|
-
return Object.values(mappedTrustMembers);
|
|
1285
|
-
};
|
|
1286
|
-
const mapRootLegalEntityToTrustMember = (rootLegalEntity) => ({
|
|
1287
|
-
trustMemberType: "rootTrustee",
|
|
1288
|
-
roles: [TrustMemberTypes.TRUSTEE],
|
|
1289
|
-
legalEntityType: rootLegalEntity.type,
|
|
1290
|
-
legalEntityId: rootLegalEntity.id,
|
|
1291
|
-
name: getLegalEntityNameBasedOnType(rootLegalEntity)
|
|
1292
|
-
});
|
|
1293
|
-
const mapUndefinedBeneficiaryInfoToTrustMembers = (undefinedBeneficiaryInfo) => undefinedBeneficiaryInfo.map(({ reference, description }) => ({
|
|
1294
|
-
trustMemberType: "undefinedBeneficiary",
|
|
1295
|
-
roles: [TrustMemberTypes.UNDEFINED_BENEFICIARY],
|
|
1296
|
-
reference,
|
|
1297
|
-
description
|
|
1298
|
-
}));
|
|
1299
|
-
const getTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) => [
|
|
1300
|
-
mapRootLegalEntityToTrustMember(rootLegalEntity),
|
|
1301
|
-
...mapEntityAssociationsToTrustMembers(
|
|
1302
|
-
trustLE.id,
|
|
1303
|
-
trustLE.entityAssociations ?? [],
|
|
1304
|
-
exemptSettlorLE
|
|
1305
|
-
),
|
|
1306
|
-
...mapUndefinedBeneficiaryInfoToTrustMembers(trustLE.trust?.undefinedBeneficiaryInfo ?? [])
|
|
1307
|
-
];
|
|
1308
|
-
const combineRootLegalEntityWithEntityAssociations = (rootLegalEntity, entityAssociations) => {
|
|
1309
|
-
const allowedRolesForRootLegalEntity = [
|
|
1310
|
-
TrustMemberTypes.SETTLOR,
|
|
1311
|
-
TrustMemberTypes.PROTECTOR,
|
|
1312
|
-
TrustMemberTypes.DEFINED_BENEFICIARY
|
|
1313
|
-
];
|
|
1314
|
-
const roles = entityAssociations.map((entityAssociation) => entityAssociation.type).filter((role) => allowedRolesForRootLegalEntity.includes(role));
|
|
1315
|
-
return {
|
|
1316
|
-
trustMemberType: "rootTrustee",
|
|
1317
|
-
roles: [...roles, TrustMemberTypes.TRUSTEE],
|
|
1318
|
-
legalEntityType: rootLegalEntity.type,
|
|
1319
|
-
legalEntityId: rootLegalEntity.id,
|
|
1320
|
-
name: getLegalEntityNameBasedOnType(rootLegalEntity)
|
|
1321
|
-
};
|
|
1322
|
-
};
|
|
1323
|
-
const getRootTrusteeTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) => {
|
|
1324
|
-
const entityAssociations = trustLE.entityAssociations ?? [];
|
|
1325
|
-
const rootLegalEntityAssociations = entityAssociations.filter(
|
|
1326
|
-
(a) => a.legalEntityId === rootLegalEntity.id
|
|
1327
|
-
);
|
|
1328
|
-
const nonRootLegalEntityAssociations = entityAssociations.filter(
|
|
1329
|
-
(a) => a.legalEntityId !== rootLegalEntity.id
|
|
1330
|
-
);
|
|
1331
|
-
return [
|
|
1332
|
-
combineRootLegalEntityWithEntityAssociations(rootLegalEntity, rootLegalEntityAssociations),
|
|
1333
|
-
...mapEntityAssociationsToTrustMembers(
|
|
1334
|
-
trustLE.id,
|
|
1335
|
-
nonRootLegalEntityAssociations ?? [],
|
|
1336
|
-
exemptSettlorLE
|
|
1337
|
-
),
|
|
1338
|
-
...mapUndefinedBeneficiaryInfoToTrustMembers(trustLE.trust?.undefinedBeneficiaryInfo ?? [])
|
|
1339
|
-
];
|
|
1340
|
-
};
|
|
1341
|
-
function useTrustMembers() {
|
|
1342
|
-
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
1343
|
-
const { data: trust } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.TRUST);
|
|
1344
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
1345
|
-
const exemptSettlor = useExemptSettlor({
|
|
1346
|
-
trust
|
|
1347
|
-
});
|
|
1348
|
-
const allowMoreRolesForMainRootTrustee = isFeatureEnabled("AllowMoreRolesForMainRootTrustee");
|
|
1349
|
-
return useMemo(() => {
|
|
1350
|
-
if (!rootLegalEntity || !trust?.trust) return [];
|
|
1351
|
-
return allowMoreRolesForMainRootTrustee ? getRootTrusteeTrustMembers(trust, rootLegalEntity, exemptSettlor) : getTrustMembers(trust, rootLegalEntity, exemptSettlor);
|
|
1352
|
-
}, [rootLegalEntity, trust, exemptSettlor, allowMoreRolesForMainRootTrustee]);
|
|
1353
|
-
}
|
|
1354
|
-
const useTrustMemberNavigation = ({ navigateTo, trust }) => {
|
|
1355
|
-
const { t } = useTranslation("trust");
|
|
1356
|
-
const { showToast } = useToastContext();
|
|
1357
|
-
const [trustMember, setTrustMember] = useState();
|
|
1358
|
-
const { setTrustMembers } = useGlobalStore();
|
|
1359
|
-
const trustMembers = useTrustMembers();
|
|
1360
|
-
const memberId = trustMember?.trustMemberType === "undefinedBeneficiary" ? trustMember.reference : trustMember?.legalEntityId;
|
|
1361
|
-
useEffect(() => setTrustMembers(trustMembers), [trustMembers]);
|
|
1362
|
-
const onNavigateToTrustMemberEditDetails = async (tm) => {
|
|
1363
|
-
try {
|
|
1364
|
-
if (tm.legalEntityId === isNewEntity) {
|
|
1365
|
-
setTrustMember(tm);
|
|
1366
|
-
}
|
|
1367
|
-
const id = tm.legalEntityId === isNewEntity ? void 0 : tm.legalEntityId;
|
|
1368
|
-
navigateTo(
|
|
1369
|
-
tm.trustMemberType === "company" ? TaskTypes.TRUST_MEMBER_COMPANY : TaskTypes.TRUST_MEMBER_INDIVIDUAL,
|
|
1370
|
-
id ? { memberId: id } : void 0
|
|
1371
|
-
);
|
|
1372
|
-
} catch {
|
|
1373
|
-
showToast({ label: t(($) => $["failedToFetchTrustMemberDetails"]), variant: "error" });
|
|
1374
|
-
}
|
|
1375
|
-
};
|
|
1376
|
-
const onNavigateToTrustMemberRoleAndType = (tm) => {
|
|
1377
|
-
setTrustMember(tm === "new" ? void 0 : tm);
|
|
1378
|
-
let id;
|
|
1379
|
-
if (tm !== "new") {
|
|
1380
|
-
if (tm.trustMemberType === "undefinedBeneficiary") {
|
|
1381
|
-
id = tm.reference !== isNewEntity ? tm.reference : void 0;
|
|
1382
|
-
} else if (tm.legalEntityId !== isNewEntity) {
|
|
1383
|
-
id = tm.legalEntityId;
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
navigateTo(TaskTypes.TRUST_MEMBER_ROLE_AND_TYPE, id ? { memberId: id } : void 0);
|
|
1387
|
-
};
|
|
1388
|
-
const onNavigateToTrust = async (task = TaskTypes.TRUST) => {
|
|
1389
|
-
try {
|
|
1390
|
-
if (trust) {
|
|
1391
|
-
navigateTo(task);
|
|
1392
|
-
} else {
|
|
1393
|
-
navigateTo(TaskTypes.TRUST);
|
|
1394
|
-
}
|
|
1395
|
-
} catch {
|
|
1396
|
-
showToast({ label: t(($) => $["failedToFetchTrustDetails"]), variant: "error" });
|
|
1397
|
-
}
|
|
1398
|
-
};
|
|
1399
|
-
return {
|
|
1400
|
-
trustMember,
|
|
1401
|
-
trustMemberId: memberId === isNewEntity ? void 0 : memberId,
|
|
1402
|
-
trustMembers,
|
|
1403
|
-
onNavigateToTrust,
|
|
1404
|
-
onNavigateToTrustMemberRoleAndType,
|
|
1405
|
-
onNavigateToTrustMemberEditDetails
|
|
1406
|
-
};
|
|
1407
|
-
};
|
|
1408
|
-
const createDefaultMember = (selectedMember, selectedEntityType, selectedRoles) => {
|
|
1409
|
-
const firstRole = selectedRoles?.[0];
|
|
1410
|
-
return {
|
|
1411
|
-
memberType: selectedMember?.memberType || firstRole,
|
|
1412
|
-
roles: selectedRoles || selectedMember?.roles || [UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER],
|
|
1413
|
-
legalEntityType: selectedEntityType,
|
|
1414
|
-
legalEntityId: selectedMember?.legalEntityId || "",
|
|
1415
|
-
name: selectedMember?.name || ""
|
|
1416
|
-
};
|
|
1417
|
-
};
|
|
1418
|
-
const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
|
|
1419
|
-
const [activeMember, setActiveMember] = useState();
|
|
1420
|
-
const { rootLegalEntityId } = useApiContext();
|
|
1421
|
-
const onNavigateToMember = async ({
|
|
1422
|
-
selectedMember,
|
|
1423
|
-
selectedRoles,
|
|
1424
|
-
selectedEntityType,
|
|
1425
|
-
roleAndType
|
|
1426
|
-
}) => {
|
|
1427
|
-
const createdMember = createDefaultMember(selectedMember, selectedEntityType, selectedRoles);
|
|
1428
|
-
setActiveMember(createdMember);
|
|
1429
|
-
if (rootLegalEntityId.value === createdMember?.legalEntityId) {
|
|
1430
|
-
navigateTo(
|
|
1431
|
-
createdMember.legalEntityType === LegalEntityTypes.INDIVIDUAL ? TaskTypes.INDIVIDUAL : TaskTypes.BUSINESS_DETAILS
|
|
1432
|
-
);
|
|
1433
|
-
return;
|
|
1434
|
-
}
|
|
1435
|
-
const memberParams = createdMember.legalEntityId ? { memberId: createdMember.legalEntityId } : void 0;
|
|
1436
|
-
if (roleAndType) {
|
|
1437
|
-
navigateTo(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE, memberParams);
|
|
1438
|
-
return;
|
|
1439
|
-
}
|
|
1440
|
-
navigateTo(
|
|
1441
|
-
createdMember?.legalEntityType === LegalEntityTypes.ORGANIZATION ? TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY : TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL,
|
|
1442
|
-
memberParams
|
|
1443
|
-
);
|
|
1444
|
-
};
|
|
1445
|
-
return {
|
|
1446
|
-
onNavigateToMember,
|
|
1447
|
-
activeMember,
|
|
1448
|
-
setActiveMember
|
|
1449
|
-
};
|
|
1450
|
-
};
|
|
1451
|
-
const MemoryRouterContext = createContext(null);
|
|
1452
|
-
const useMemoryRouter = () => useContext(MemoryRouterContext);
|
|
1453
|
-
const useShouldShowIntroduction = ({
|
|
1454
|
-
legalEntity
|
|
1455
|
-
}) => {
|
|
1456
|
-
const canSeeIntroduction = useCanSeeIntroduction({ legalEntity });
|
|
1457
|
-
const { hasSeenIntroduction } = useHasSeenIntroduction({ legalEntityId: legalEntity.id });
|
|
1458
|
-
return canSeeIntroduction && !hasSeenIntroduction;
|
|
1459
|
-
};
|
|
1460
|
-
const getDefaultTask$1 = ({
|
|
1461
|
-
legalEntity,
|
|
1462
|
-
canSeeEntitySelection,
|
|
1463
|
-
canChangeEntityType,
|
|
1464
|
-
showIntroduction,
|
|
1465
|
-
shouldShowSingpassSelection,
|
|
1466
|
-
showServiceAgreementsFirst,
|
|
1467
|
-
showBusinessFinancingFirst
|
|
1468
|
-
}) => {
|
|
1469
|
-
const hasLegalEntityProgressedBeyondEntitySelection = hasProgressedBeyondEntitySelection$1(legalEntity);
|
|
1470
|
-
if (showServiceAgreementsFirst) {
|
|
1471
|
-
return TaskTypes.SERVICE_AGREEMENT;
|
|
1472
|
-
}
|
|
1473
|
-
if (showBusinessFinancingFirst) {
|
|
1474
|
-
return TaskTypes.BUSINESS_FINANCING;
|
|
1475
|
-
}
|
|
1476
|
-
if (canChangeEntityType && canSeeEntitySelection && !hasLegalEntityProgressedBeyondEntitySelection)
|
|
1477
|
-
return TaskTypes.BUSINESS_TYPE_SELECTION;
|
|
1478
|
-
if (showIntroduction) return TaskTypes.INTRODUCTION;
|
|
1479
|
-
if (shouldShowSingpassSelection) return TaskTypes.SINGPASS_SELECTION;
|
|
1480
|
-
return TaskTypes.TASKS_OVERVIEW;
|
|
1481
|
-
};
|
|
1482
|
-
const hasProgressedBeyondEntitySelection$1 = (legalEntity) => {
|
|
1483
|
-
const hasOwnEntityAssocation = legalEntity.entityAssociations?.some(
|
|
1484
|
-
(ea) => ea.associatorId === legalEntity.id
|
|
1485
|
-
);
|
|
1486
|
-
const hasOrganizationType = legalEntity.organization?.type;
|
|
1487
|
-
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
1488
|
-
};
|
|
1489
|
-
const Introduction$1 = lazy(
|
|
1490
|
-
async () => (await import("./Introduction-DShrdSBn.js")).Introduction
|
|
1491
|
-
);
|
|
1492
|
-
const BusinessTypeSelectionPage$1 = lazy(
|
|
1493
|
-
async () => (await import("./BusinessTypeSelectionPage-SVmYYbcY.js")).BusinessTypeSelectionPage
|
|
1494
|
-
);
|
|
1495
|
-
const SingpassSelection$1 = lazy(
|
|
1496
|
-
async () => (await import("./SingpassSelection-DowkF6pT.js")).SingpassSelection
|
|
1497
|
-
);
|
|
1498
|
-
const AccountSetupRejected$1 = lazy(
|
|
1499
|
-
async () => (await import("./AccountSetupRejected-B9jCHNz-.js")).AccountSetupRejected
|
|
1500
|
-
);
|
|
1501
|
-
const DecisionMakers$1 = lazy(
|
|
1502
|
-
async () => (await import("./DecisionMakers-BJzPsxVk.js")).DecisionMakers
|
|
1503
|
-
);
|
|
1504
|
-
const CustomerSupport$1 = lazy(
|
|
1505
|
-
async () => (await import("./CustomerSupport-CZZVSn5p.js")).CustomerSupport
|
|
1506
|
-
);
|
|
1507
|
-
const Review$1 = lazy(async () => (await import("./Review-Be1zBkVv.js")).Review);
|
|
1508
|
-
const SignPCIComponent$1 = lazy(
|
|
1509
|
-
async () => (await import("./SignPCIComponent-BTyUfmK_.js")).SignPCIComponent
|
|
1510
|
-
);
|
|
1511
|
-
const AcceptTermsOfService$1 = lazy(
|
|
1512
|
-
async () => (await import("./AcceptTermsOfServiceComponent-BbktO0zC.js")).AcceptTermsOfServiceComponent
|
|
1513
|
-
);
|
|
1514
|
-
const TaxReportingDropin$1 = lazy(
|
|
1515
|
-
async () => (await import("./TaxReportingDropin-D52Nf4f2.js")).TaxReportingDropin
|
|
1516
|
-
);
|
|
1517
|
-
const PayoutDetailsPage$1 = lazy(
|
|
1518
|
-
async () => (await import("./PayoutDetailsPage-BGdufep3.js")).PayoutDetailsPage
|
|
1519
|
-
);
|
|
1520
|
-
const RootBusinessDetailsPage$1 = lazy(
|
|
1521
|
-
async () => (await import("./RootBusinessDetailsPage-CnX2zYB9.js")).RootBusinessDetailsPage
|
|
1522
|
-
);
|
|
1523
|
-
const RootBusinessLinesPage$1 = lazy(
|
|
1524
|
-
async () => (await import("./RootBusinessLinesPage-G9LnOcFE.js")).RootBusinessLinesPage
|
|
1525
|
-
);
|
|
1526
|
-
const SoleProprietorshipPage$1 = lazy(
|
|
1527
|
-
async () => (await import("./SoleProprietorshipPage-C_875t2r.js")).SoleProprietorshipPage
|
|
1528
|
-
);
|
|
1529
|
-
const TrustMemberCompanyPage$1 = lazy(
|
|
1530
|
-
async () => (await import("./TrustMemberCompanyPage-CTXwk8mB.js")).TrustMemberCompanyPage
|
|
1531
|
-
);
|
|
1532
|
-
const TrustMemberIndividualPage$1 = lazy(
|
|
1533
|
-
async () => (await import("./TrustMemberIndividualPage-BusLDMBC.js")).TrustMemberIndividualPage
|
|
1534
|
-
);
|
|
1535
|
-
const TrustMemberRoleAndTypePage$1 = lazy(
|
|
1536
|
-
async () => (await import("./TrustMemberRoleAndTypePage-D6Ir0aGf.js")).TrustMemberRoleAndTypePage
|
|
1537
|
-
);
|
|
1538
|
-
const TrustMembersOverview$1 = lazy(
|
|
1539
|
-
async () => (await import("./TrustMembersOverview-_eQwa8o8.js")).TrustMembersOverview
|
|
1540
|
-
);
|
|
1541
|
-
const UnincorporatedPartnershipMemberCompanyPage$1 = lazy(
|
|
1542
|
-
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-A7gQ5wwr.js")).UnincorporatedPartnershipMemberCompanyPage
|
|
1543
|
-
);
|
|
1544
|
-
const UnincorporatedPartnershipIndividualPage$1 = lazy(
|
|
1545
|
-
async () => (await import("./UnincorporatedPartnershipIndividualPage-tCLAddt7.js")).UnincorporatedPartnershipIndividualPage
|
|
1546
|
-
);
|
|
1547
|
-
const UnincorporatedPartnershipMemberRoleAndTypePage$1 = lazy(
|
|
1548
|
-
async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-DaFl9wVc.js")).UnincorporatedPartnershipMemberRoleAndTypePage
|
|
1549
|
-
);
|
|
1550
|
-
const UnincorporatedPartnershipMembersOverview$1 = lazy(
|
|
1551
|
-
async () => (await import("./UnincorporatedPartnershipMembersOverview-C3YF2E_k.js")).UnincorporatedPartnershipMembersOverview
|
|
1552
|
-
);
|
|
1553
|
-
const BusinessFinancingPage$1 = lazy(
|
|
1554
|
-
async () => (await import("./BusinessFinancingPage-wYYsqc5D.js")).BusinessFinancingPage
|
|
1555
|
-
);
|
|
1556
|
-
const TrustDetailsPage$1 = lazy(
|
|
1557
|
-
async () => (await import("./TrustDetailsPage-Cj368KCb.js")).TrustDetailsPage
|
|
1558
|
-
);
|
|
1559
|
-
const SourceOfFundsPage$1 = lazy(
|
|
1560
|
-
async () => (await import("./SourceOfFundsPage-Cx6ekIue.js")).SourceOfFundsPage
|
|
1561
|
-
);
|
|
1562
|
-
const RootIndividualDetailsPage$1 = lazy(
|
|
1563
|
-
async () => (await import("./RootIndividualDetailsPage-DPim7JYp.js")).RootIndividualDetailsPage
|
|
1564
|
-
);
|
|
1565
|
-
const LegalRepresentativeDetailsPage$1 = lazy(
|
|
1566
|
-
async () => (await import("./LegalRepresentativeDetailsPage-ZsBB2MMq.js")).LegalRepresentativeDetailsPage
|
|
1567
|
-
);
|
|
1568
|
-
const DecisionMakerDetailsPage$1 = lazy(
|
|
1569
|
-
async () => (await import("./DecisionMakerDetailsPage-C86M_cr7.js")).DecisionMakerDetailsPage
|
|
1570
|
-
);
|
|
1571
|
-
const InvitedDecisionMakerComponent = lazy(
|
|
1572
|
-
async () => (await import("./InvitedDecisionMakerComponent-B2HU3LgV.js")).InvitedDecisionMakerComponent
|
|
1573
|
-
);
|
|
1574
|
-
const ROUTE_CONFIG = {
|
|
1575
|
-
[TaskTypes.TASKS_OVERVIEW]: { path: "/tasks" },
|
|
1576
|
-
[TaskTypes.INTRODUCTION]: { path: "/introduction", Component: Introduction$1 },
|
|
1577
|
-
[TaskTypes.BUSINESS_TYPE_SELECTION]: {
|
|
1578
|
-
path: "/business-type-selection",
|
|
1579
|
-
Component: BusinessTypeSelectionPage$1
|
|
1580
|
-
},
|
|
1581
|
-
[TaskTypes.SINGPASS_SELECTION]: { path: "/singpass-selection", Component: SingpassSelection$1 },
|
|
1582
|
-
[TaskTypes.INDIVIDUAL]: { path: "/individual", Component: RootIndividualDetailsPage$1 },
|
|
1583
|
-
[TaskTypes.BUSINESS_DETAILS]: { path: "/business", Component: RootBusinessDetailsPage$1 },
|
|
1584
|
-
[TaskTypes.ACQUIRING_BUSINESS_LINE]: {
|
|
1585
|
-
path: "/business-lines",
|
|
1586
|
-
Component: RootBusinessLinesPage$1
|
|
1587
|
-
},
|
|
1588
|
-
[TaskTypes.DECISION_MAKER_OVERVIEW]: { path: "/decision-makers", Component: DecisionMakers$1 },
|
|
1589
|
-
[TaskTypes.DECISION_MAKER]: {
|
|
1590
|
-
path: "/decision-maker/:parentId/:decisionMakerId?",
|
|
1591
|
-
Component: DecisionMakerDetailsPage$1
|
|
1592
|
-
},
|
|
1593
|
-
[TaskTypes.PAYOUT]: { path: "/payout/:transferInstrumentId?", Component: PayoutDetailsPage$1 },
|
|
1594
|
-
[TaskTypes.PAYIN]: { path: "/payin/:transferInstrumentId?", Component: PayoutDetailsPage$1 },
|
|
1595
|
-
[TaskTypes.SERVICE_AGREEMENT]: { path: "/service-agreement", Component: AcceptTermsOfService$1 },
|
|
1596
|
-
[TaskTypes.PCI_DSS]: { path: "/pci-dss", Component: SignPCIComponent$1 },
|
|
1597
|
-
[TaskTypes.REVIEW]: { path: "/review", Component: Review$1 },
|
|
1598
|
-
[TaskTypes.CUSTOMER_SUPPORT]: { path: "/customer-support", Component: CustomerSupport$1 },
|
|
1599
|
-
[TaskTypes.CAPABILITY_REJECTED]: {
|
|
1600
|
-
path: "/capability-rejected",
|
|
1601
|
-
Component: AccountSetupRejected$1
|
|
1602
|
-
},
|
|
1603
|
-
[TaskTypes.LEGAL_REPRESENTATIVE_DETAILS]: {
|
|
1604
|
-
path: "/legal-representative",
|
|
1605
|
-
Component: LegalRepresentativeDetailsPage$1
|
|
1606
|
-
},
|
|
1607
|
-
[TaskTypes.SOURCE_OF_FUNDS]: { path: "/source-of-funds", Component: SourceOfFundsPage$1 },
|
|
1608
|
-
[TaskTypes.BUSINESS_FINANCING]: { path: "/business-financing", Component: BusinessFinancingPage$1 },
|
|
1609
|
-
[TaskTypes.TAX_REPORTING]: { path: "/tax-reporting", Component: TaxReportingDropin$1 },
|
|
1610
|
-
[TaskTypes.SOLE_PROPRIETOR_COMPANY]: {
|
|
1611
|
-
path: "/sole-proprietor",
|
|
1612
|
-
Component: SoleProprietorshipPage$1
|
|
1613
|
-
},
|
|
1614
|
-
[TaskTypes.TRUST]: { path: "/trust", Component: TrustDetailsPage$1 },
|
|
1615
|
-
[TaskTypes.TRUST_MEMBER]: { path: "/trust/member" },
|
|
1616
|
-
[TaskTypes.TRUST_MEMBER_OVERVIEW]: { path: "/trust/members", Component: TrustMembersOverview$1 },
|
|
1617
|
-
[TaskTypes.TRUST_MEMBER_ROLE_AND_TYPE]: {
|
|
1618
|
-
path: "/trust/member/role-and-type/:memberId?",
|
|
1619
|
-
Component: TrustMemberRoleAndTypePage$1
|
|
1620
|
-
},
|
|
1621
|
-
[TaskTypes.TRUST_MEMBER_INDIVIDUAL]: {
|
|
1622
|
-
path: "/trust/member/:memberId?/individual",
|
|
1623
|
-
Component: TrustMemberIndividualPage$1
|
|
1624
|
-
},
|
|
1625
|
-
[TaskTypes.TRUST_MEMBER_COMPANY]: {
|
|
1626
|
-
path: "/trust/member/:memberId?/company",
|
|
1627
|
-
Component: TrustMemberCompanyPage$1
|
|
1628
|
-
},
|
|
1629
|
-
[TaskTypes.TRUST_MEMBER_COMPANY_OWNER]: {
|
|
1630
|
-
path: "/trust/member/:memberId/company-owner/:parentId/:decisionMakerId?",
|
|
1631
|
-
Component: DecisionMakerDetailsPage$1
|
|
1632
|
-
},
|
|
1633
|
-
[TaskTypes.UNINCORPORATED_PARTNERSHIP]: {
|
|
1634
|
-
path: "/partnership",
|
|
1635
|
-
Component: TrustDetailsPage$1
|
|
1636
|
-
},
|
|
1637
|
-
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW]: {
|
|
1638
|
-
path: "/partnership/members",
|
|
1639
|
-
Component: UnincorporatedPartnershipMembersOverview$1
|
|
1640
|
-
},
|
|
1641
|
-
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE]: {
|
|
1642
|
-
path: "/partnership/member/role-and-type/:memberId?",
|
|
1643
|
-
Component: UnincorporatedPartnershipMemberRoleAndTypePage$1
|
|
1644
|
-
},
|
|
1645
|
-
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL]: {
|
|
1646
|
-
path: "/partnership/member/:memberId?/individual",
|
|
1647
|
-
Component: UnincorporatedPartnershipIndividualPage$1
|
|
1648
|
-
},
|
|
1649
|
-
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY]: {
|
|
1650
|
-
path: "/partnership/member/:memberId?/company",
|
|
1651
|
-
Component: UnincorporatedPartnershipMemberCompanyPage$1
|
|
1652
|
-
},
|
|
1653
|
-
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER]: {
|
|
1654
|
-
path: "/partnership/member/:memberId/company-owner/:parentId/:decisionMakerId?",
|
|
1655
|
-
Component: DecisionMakerDetailsPage$1
|
|
1656
|
-
},
|
|
1657
|
-
[TaskTypes.INVITED_INDIVIDUAL]: {
|
|
1658
|
-
path: "/invited-individual",
|
|
1659
|
-
Component: InvitedDecisionMakerComponent
|
|
1660
|
-
}
|
|
1661
|
-
};
|
|
1662
|
-
const ROUTE_PATHS = Object.fromEntries(
|
|
1663
|
-
Object.entries(ROUTE_CONFIG).map(([key, entry]) => [key, entry.path])
|
|
1664
|
-
);
|
|
1665
|
-
const buildPath = (task, params) => {
|
|
1666
|
-
const routePath = ROUTE_PATHS[task];
|
|
1667
|
-
const segments = routePath.split("/").filter(Boolean);
|
|
1668
|
-
const built = segments.map((seg) => {
|
|
1669
|
-
const isOptional = seg.endsWith("?");
|
|
1670
|
-
const isParam = seg.startsWith(":");
|
|
1671
|
-
if (!isParam) return seg;
|
|
1672
|
-
const paramName = seg.slice(1, isOptional ? -1 : void 0);
|
|
1673
|
-
const value = params?.[paramName];
|
|
1674
|
-
if (!value && isOptional) return null;
|
|
1675
|
-
if (!value) throw new Error(`Missing required param "${paramName}" for route "${task}"`);
|
|
1676
|
-
return value;
|
|
1677
|
-
}).filter((s) => s !== null);
|
|
1678
|
-
return "/" + built.join("/");
|
|
1679
|
-
};
|
|
1680
|
-
const detectBasePath = (parser, pathname = window.location.pathname) => {
|
|
1681
|
-
const pathSegments = pathname.split("/").filter(Boolean);
|
|
1682
|
-
const sortedRoutes = Object.values(ROUTE_PATHS).sort(
|
|
1683
|
-
(a, b) => b.split("/").filter(Boolean).length - a.split("/").filter(Boolean).length
|
|
1684
|
-
);
|
|
1685
|
-
for (let i = 0; i < pathSegments.length; i++) {
|
|
1686
|
-
const candidatePath = "/" + pathSegments.slice(i).join("/");
|
|
1687
|
-
for (const routePath of sortedRoutes) {
|
|
1688
|
-
const [match] = matchRoute(parser, routePath, candidatePath);
|
|
1689
|
-
if (match) {
|
|
1690
|
-
const baseSegments = pathSegments.slice(0, i);
|
|
1691
|
-
return baseSegments.length > 0 ? "/" + baseSegments.join("/") : "/";
|
|
1692
|
-
}
|
|
1693
|
-
}
|
|
1694
|
-
}
|
|
1695
|
-
const trimmed = pathname.endsWith("/") ? pathname.slice(0, -1) : pathname;
|
|
1696
|
-
return trimmed || "/";
|
|
1697
|
-
};
|
|
1698
|
-
const useNavigate = () => {
|
|
1699
|
-
const [, setLocation] = useLocation();
|
|
1700
|
-
const withSearch = (path) => path + window.location.search;
|
|
1701
|
-
const to = (task, params) => {
|
|
1702
|
-
if (task === "default") {
|
|
1703
|
-
setLocation(withSearch("/"));
|
|
1704
|
-
return;
|
|
1705
|
-
}
|
|
1706
|
-
setLocation(withSearch(buildPath(task, params)));
|
|
1707
|
-
};
|
|
1708
|
-
const back = (stepCount = 1) => {
|
|
1709
|
-
window.history.go(-stepCount);
|
|
1710
|
-
};
|
|
1711
|
-
const replace = (task, params) => {
|
|
1712
|
-
setLocation(withSearch(buildPath(task, params)), { replace: true });
|
|
1713
|
-
};
|
|
1714
|
-
return { to, back, replace };
|
|
1715
|
-
};
|
|
1716
|
-
function DefaultRouteRedirect({ legalEntity, children }) {
|
|
1717
|
-
const navigate = useNavigate();
|
|
1718
|
-
const { isSettingEnabled } = useSettingsContext();
|
|
1719
|
-
const { accountHolder } = useAccountHolder();
|
|
1720
|
-
const { canSeeEntitySelection } = useCanSeeEntitySelection(legalEntity.id);
|
|
1721
|
-
const { hasSeenSingpassSelection } = useHasSeenSingpassSelection({
|
|
1722
|
-
legalEntityId: legalEntity.id
|
|
1723
|
-
});
|
|
1724
|
-
const { isEligibleForSingpass } = useSingpassMyInfoLogin({ legalEntity, accountHolder });
|
|
1725
|
-
const showIntroduction = useShouldShowIntroduction({ legalEntity });
|
|
1726
|
-
const showServiceAgreementsFirst = isSettingEnabled(SettingNames.ShowServiceAgreementsFirst);
|
|
1727
|
-
const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
|
|
1728
|
-
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
1729
|
-
const shouldShowSingpassSelection = isEligibleForSingpass && !hasSeenSingpassSelection;
|
|
1730
|
-
const defaultTask = useMemo(
|
|
1731
|
-
() => getDefaultTask$1({
|
|
1732
|
-
legalEntity,
|
|
1733
|
-
canSeeEntitySelection,
|
|
1734
|
-
canChangeEntityType,
|
|
1735
|
-
showIntroduction,
|
|
1736
|
-
shouldShowSingpassSelection,
|
|
1737
|
-
showServiceAgreementsFirst,
|
|
1738
|
-
showBusinessFinancingFirst
|
|
1739
|
-
}),
|
|
1740
|
-
[
|
|
1741
|
-
legalEntity,
|
|
1742
|
-
canSeeEntitySelection,
|
|
1743
|
-
canChangeEntityType,
|
|
1744
|
-
showIntroduction,
|
|
1745
|
-
shouldShowSingpassSelection,
|
|
1746
|
-
showServiceAgreementsFirst,
|
|
1747
|
-
showBusinessFinancingFirst
|
|
1748
|
-
]
|
|
1749
|
-
);
|
|
1750
|
-
const shouldRenderInline = defaultTask === TaskTypes.TASKS_OVERVIEW && !!children;
|
|
1751
|
-
useEffect(() => {
|
|
1752
|
-
if (shouldRenderInline) return;
|
|
1753
|
-
navigate.replace(defaultTask);
|
|
1754
|
-
}, [defaultTask, navigate, shouldRenderInline]);
|
|
1755
|
-
if (shouldRenderInline) {
|
|
1756
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1757
|
-
}
|
|
1758
|
-
return /* @__PURE__ */ jsx(Loader, {});
|
|
1759
|
-
}
|
|
1760
|
-
function SuspenseRoute({ path, children }) {
|
|
1761
|
-
return /* @__PURE__ */ jsx(Route, { path, children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children }) });
|
|
1762
|
-
}
|
|
1763
|
-
function OnboardingRouter({
|
|
1764
|
-
legalEntity,
|
|
1765
|
-
rootLegalEntityCountry,
|
|
1766
|
-
trust,
|
|
1767
|
-
unincorporatedPartnership,
|
|
1768
|
-
soleProp,
|
|
1769
|
-
associatedLegalRepresentative,
|
|
1770
|
-
refetchLegalEntity,
|
|
1771
|
-
refetchTrust,
|
|
1772
|
-
refetchUnincorporatedPartnership,
|
|
1773
|
-
onExternalSubmit,
|
|
1774
|
-
accountHolder,
|
|
1775
|
-
setAccountHolder,
|
|
1776
|
-
setCanSeeEntitySelection,
|
|
1777
|
-
setHasSeenIntroduction,
|
|
1778
|
-
taskTypes,
|
|
1779
|
-
targetLegalEntityType,
|
|
1780
|
-
setTargetLegalEntityType,
|
|
1781
|
-
trustMember,
|
|
1782
|
-
onNavigateToTrust,
|
|
1783
|
-
onNavigateToTrustMemberRoleAndType,
|
|
1784
|
-
onNavigateToTrustMemberEditDetails,
|
|
1785
|
-
unincorporatedPartnershipMember,
|
|
1786
|
-
setActiveMember,
|
|
1787
|
-
onNavigateToMember,
|
|
1788
|
-
singpassBanner,
|
|
1789
|
-
handleSingpassSelectionNextClick,
|
|
1790
|
-
openBankingPartnerConfigId
|
|
1791
|
-
}) {
|
|
1792
|
-
const navigate = useNavigate();
|
|
1793
|
-
const userEvents = useAnalyticsContext();
|
|
1794
|
-
const handleOnSubmit = async (data, backStepCount) => {
|
|
1795
|
-
onExternalSubmit?.(data);
|
|
1796
|
-
await refetchLegalEntity();
|
|
1797
|
-
navigate.back(backStepCount);
|
|
1798
|
-
};
|
|
1799
|
-
const onNavigateToDecisionMakerIndividual = (task, decisionMakerId, parentId) => {
|
|
1800
|
-
navigate.to(task, {
|
|
1801
|
-
parentId: parentId ?? legalEntity.id,
|
|
1802
|
-
...decisionMakerId ? { decisionMakerId } : {},
|
|
1803
|
-
// For company-owner routes, memberId in the URL = parentId (the member company)
|
|
1804
|
-
...parentId ? { memberId: parentId } : {}
|
|
1805
|
-
});
|
|
1806
|
-
};
|
|
1807
|
-
const onNavigateToTask = async (task, id) => {
|
|
1808
|
-
switch (task) {
|
|
1809
|
-
case TaskTypes.PAYOUT:
|
|
1810
|
-
case TaskTypes.PAYIN:
|
|
1811
|
-
navigate.to(task, id ? { transferInstrumentId: id } : {});
|
|
1812
|
-
break;
|
|
1813
|
-
case TaskTypes.TRUST:
|
|
1814
|
-
case TaskTypes.TRUST_MEMBER_OVERVIEW:
|
|
1815
|
-
await onNavigateToTrust(
|
|
1816
|
-
task === TaskTypes.TRUST_MEMBER_OVERVIEW ? TaskTypes.TRUST_MEMBER_OVERVIEW : void 0
|
|
1817
|
-
);
|
|
1818
|
-
break;
|
|
1819
|
-
default:
|
|
1820
|
-
navigate.to(task);
|
|
1821
|
-
}
|
|
1822
|
-
};
|
|
1823
|
-
return /* @__PURE__ */ jsxs(Switch, { children: [
|
|
1824
|
-
/* @__PURE__ */ jsx(Route, { path: ROUTE_PATHS[TaskTypes.TASKS_OVERVIEW], children: /* @__PURE__ */ jsx(TaskList, { onNavigateToTask, singpassComponent: singpassBanner }) }),
|
|
1825
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.INTRODUCTION], children: /* @__PURE__ */ jsx(
|
|
1826
|
-
Introduction$1,
|
|
1827
|
-
{
|
|
1828
|
-
onExitIntroduction: () => {
|
|
1829
|
-
setHasSeenIntroduction(true);
|
|
1830
|
-
navigate.to("default");
|
|
1831
|
-
},
|
|
1832
|
-
tasks: taskTypes
|
|
1833
|
-
}
|
|
1834
|
-
) }),
|
|
1835
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.BUSINESS_TYPE_SELECTION], children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-display-flex adyen-kyc-u-justify-content-center", children: /* @__PURE__ */ jsx(
|
|
1836
|
-
BusinessTypeSelectionPage$1,
|
|
1837
|
-
{
|
|
1838
|
-
onComplete: async (newAccountHolder) => {
|
|
1839
|
-
setAccountHolder(newAccountHolder);
|
|
1840
|
-
setCanSeeEntitySelection(false);
|
|
1841
|
-
await refetchLegalEntity();
|
|
1842
|
-
navigate.to("default");
|
|
1843
|
-
},
|
|
1844
|
-
onBack: () => navigate.back()
|
|
1845
|
-
}
|
|
1846
|
-
) }) }),
|
|
1847
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.SINGPASS_SELECTION], children: /* @__PURE__ */ jsx(
|
|
1848
|
-
SingpassSelection$1,
|
|
1849
|
-
{
|
|
1850
|
-
handleNextClick: handleSingpassSelectionNextClick,
|
|
1851
|
-
accountHolder,
|
|
1852
|
-
legalEntityType: legalEntity.type
|
|
1853
|
-
}
|
|
1854
|
-
) }),
|
|
1855
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.CAPABILITY_REJECTED], children: /* @__PURE__ */ jsx(AccountSetupRejected$1, {}) }),
|
|
1856
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.INDIVIDUAL], children: /* @__PURE__ */ jsx(
|
|
1857
|
-
RootIndividualDetailsPage$1,
|
|
1858
|
-
{
|
|
1859
|
-
onSubmit: async (data) => {
|
|
1860
|
-
onExternalSubmit?.(data);
|
|
1861
|
-
await refetchLegalEntity();
|
|
1862
|
-
navigate.to(TaskTypes.TASKS_OVERVIEW);
|
|
1863
|
-
setTargetLegalEntityType(void 0);
|
|
1864
|
-
},
|
|
1865
|
-
handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW),
|
|
1866
|
-
isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.INDIVIDUAL
|
|
1867
|
-
}
|
|
1868
|
-
) }),
|
|
1869
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.BUSINESS_DETAILS], children: /* @__PURE__ */ jsx(
|
|
1870
|
-
RootBusinessDetailsPage$1,
|
|
1871
|
-
{
|
|
1872
|
-
onSubmit: async (data) => {
|
|
1873
|
-
onExternalSubmit?.(data);
|
|
1874
|
-
await refetchLegalEntity();
|
|
1875
|
-
navigate.to(TaskTypes.TASKS_OVERVIEW);
|
|
1876
|
-
setTargetLegalEntityType(void 0);
|
|
1877
|
-
},
|
|
1878
|
-
handleHomeClick: () => navigate.back(),
|
|
1879
|
-
isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.ORGANIZATION
|
|
1880
|
-
}
|
|
1881
|
-
) }),
|
|
1882
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.DECISION_MAKER_OVERVIEW], children: /* @__PURE__ */ jsx(
|
|
1883
|
-
DecisionMakers$1,
|
|
1884
|
-
{
|
|
1885
|
-
onNavigateToIndividual: (legalEntityId) => onNavigateToDecisionMakerIndividual(TaskTypes.DECISION_MAKER, legalEntityId),
|
|
1886
|
-
navigateBackToTaskList: () => navigate.to(TaskTypes.TASKS_OVERVIEW)
|
|
1887
|
-
}
|
|
1888
|
-
) }),
|
|
1889
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.CUSTOMER_SUPPORT], children: /* @__PURE__ */ jsx(
|
|
1890
|
-
CustomerSupport$1,
|
|
1891
|
-
{
|
|
1892
|
-
country: rootLegalEntityCountry,
|
|
1893
|
-
onSubmit: () => navigate.to(TaskTypes.TASKS_OVERVIEW)
|
|
1894
|
-
}
|
|
1895
|
-
) }),
|
|
1896
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.REVIEW], children: /* @__PURE__ */ jsx(Review$1, { handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW) }) }),
|
|
1897
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.DECISION_MAKER], children: /* @__PURE__ */ jsx(
|
|
1898
|
-
DecisionMakerDetailsPage$1,
|
|
1899
|
-
{
|
|
1900
|
-
onSubmit: async (data, scenario) => {
|
|
1901
|
-
onExternalSubmit?.(data);
|
|
1902
|
-
await refetchLegalEntity();
|
|
1903
|
-
if (isBafinSignatoryFlow({
|
|
1904
|
-
taskType: TaskTypes.DECISION_MAKER,
|
|
1905
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1906
|
-
// @ts-ignore basicDetails will be there when it's IndividualSchema
|
|
1907
|
-
data,
|
|
1908
|
-
scenarios: scenario
|
|
1909
|
-
})) {
|
|
1910
|
-
showIdNowModal.value = true;
|
|
1911
|
-
idNowPostSubmit.value = true;
|
|
1912
|
-
} else {
|
|
1913
|
-
navigate.to(TaskTypes.DECISION_MAKER_OVERVIEW);
|
|
1914
|
-
}
|
|
1915
|
-
},
|
|
1916
|
-
handleHomeClick: () => navigate.back()
|
|
1917
|
-
}
|
|
1918
|
-
) }),
|
|
1919
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.PAYOUT], children: /* @__PURE__ */ jsx(
|
|
1920
|
-
PayoutDetailsPage$1,
|
|
1921
|
-
{
|
|
1922
|
-
taskType: TaskTypes.PAYOUT,
|
|
1923
|
-
handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW),
|
|
1924
|
-
openBankingPartnerConfigId,
|
|
1925
|
-
onSubmit: async (data) => {
|
|
1926
|
-
onExternalSubmit?.(data);
|
|
1927
|
-
await refetchLegalEntity();
|
|
1928
|
-
navigate.to(TaskTypes.TASKS_OVERVIEW);
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
) }),
|
|
1932
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.PAYIN], children: /* @__PURE__ */ jsx(
|
|
1933
|
-
PayoutDetailsPage$1,
|
|
1934
|
-
{
|
|
1935
|
-
taskType: TaskTypes.PAYIN,
|
|
1936
|
-
handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW),
|
|
1937
|
-
openBankingPartnerConfigId,
|
|
1938
|
-
onSubmit: async (data) => {
|
|
1939
|
-
onExternalSubmit?.(data);
|
|
1940
|
-
await refetchLegalEntity();
|
|
1941
|
-
navigate.to(TaskTypes.TASKS_OVERVIEW);
|
|
1942
|
-
}
|
|
1943
|
-
}
|
|
1944
|
-
) }),
|
|
1945
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.TRUST_MEMBER_OVERVIEW], children: /* @__PURE__ */ jsx(
|
|
1946
|
-
TrustMembersOverview$1,
|
|
1947
|
-
{
|
|
1948
|
-
navigateBackToTaskList: () => navigate.to(TaskTypes.TASKS_OVERVIEW),
|
|
1949
|
-
navigateToEditTrustMember: onNavigateToTrustMemberRoleAndType,
|
|
1950
|
-
navigateToEditTrustMemberOwner: (trustMemberOwnerId, trustMemberId) => onNavigateToDecisionMakerIndividual(
|
|
1951
|
-
TaskTypes.TRUST_MEMBER_COMPANY_OWNER,
|
|
1952
|
-
trustMemberOwnerId,
|
|
1953
|
-
trustMemberId
|
|
1954
|
-
)
|
|
1955
|
-
}
|
|
1956
|
-
) }),
|
|
1957
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.TRUST_MEMBER_ROLE_AND_TYPE], children: /* @__PURE__ */ jsx(
|
|
1958
|
-
TrustMemberRoleAndTypePage$1,
|
|
1959
|
-
{
|
|
1960
|
-
trustId: trust?.id,
|
|
1961
|
-
navigateToFullDropinFor: onNavigateToTrustMemberEditDetails,
|
|
1962
|
-
navigateBack: async () => {
|
|
1963
|
-
await refetchTrust();
|
|
1964
|
-
navigate.back();
|
|
1965
|
-
}
|
|
1966
|
-
}
|
|
1967
|
-
) }),
|
|
1968
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.TRUST_MEMBER_COMPANY_OWNER], children: /* @__PURE__ */ jsx(
|
|
1969
|
-
DecisionMakerDetailsPage$1,
|
|
1970
|
-
{
|
|
1971
|
-
taskType: TaskTypes.TRUST_MEMBER_COMPANY_OWNER,
|
|
1972
|
-
onSubmit: async (data) => {
|
|
1973
|
-
await handleOnSubmit(data);
|
|
1974
|
-
await refetchTrust();
|
|
1975
|
-
},
|
|
1976
|
-
handleHomeClick: () => navigate.back()
|
|
1977
|
-
}
|
|
1978
|
-
) }),
|
|
1979
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.TRUST_MEMBER_INDIVIDUAL], children: /* @__PURE__ */ jsx(
|
|
1980
|
-
TrustMemberIndividualPage$1,
|
|
1981
|
-
{
|
|
1982
|
-
trustId: trust?.id,
|
|
1983
|
-
newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
|
|
1984
|
-
onSubmit: async (data) => {
|
|
1985
|
-
try {
|
|
1986
|
-
await handleOnSubmit(data, 2);
|
|
1987
|
-
await refetchTrust();
|
|
1988
|
-
navigate.replace(TaskTypes.TRUST_MEMBER_OVERVIEW);
|
|
1989
|
-
} catch {
|
|
1990
|
-
}
|
|
1991
|
-
},
|
|
1992
|
-
handleBackClick: () => navigate.back(),
|
|
1993
|
-
handleHomeClick: () => navigate.to(TaskTypes.TRUST_MEMBER_OVERVIEW)
|
|
1994
|
-
}
|
|
1995
|
-
) }),
|
|
1996
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.TRUST_MEMBER_COMPANY], children: /* @__PURE__ */ jsx(
|
|
1997
|
-
TrustMemberCompanyPage$1,
|
|
1998
|
-
{
|
|
1999
|
-
trustId: trust?.id,
|
|
2000
|
-
newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
|
|
2001
|
-
onSubmit: async (data) => {
|
|
2002
|
-
try {
|
|
2003
|
-
await handleOnSubmit(data, 2);
|
|
2004
|
-
await refetchTrust();
|
|
2005
|
-
navigate.replace(TaskTypes.TRUST_MEMBER_OVERVIEW);
|
|
2006
|
-
} catch {
|
|
2007
|
-
}
|
|
2008
|
-
},
|
|
2009
|
-
handleHomeClick: () => navigate.back()
|
|
2010
|
-
}
|
|
2011
|
-
) }),
|
|
2012
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.TRUST], children: /* @__PURE__ */ jsx(
|
|
2013
|
-
TrustDetailsPage$1,
|
|
2014
|
-
{
|
|
2015
|
-
taskType: TaskTypes.TRUST,
|
|
2016
|
-
trustId: trust?.id,
|
|
2017
|
-
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
2018
|
-
handleHomeClick: () => navigate.back()
|
|
2019
|
-
}
|
|
2020
|
-
) }),
|
|
2021
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW], children: /* @__PURE__ */ jsx(
|
|
2022
|
-
UnincorporatedPartnershipMembersOverview$1,
|
|
2023
|
-
{
|
|
2024
|
-
navigateBackToTaskList: () => navigate.to(TaskTypes.TASKS_OVERVIEW),
|
|
2025
|
-
navigateToEditMember: (member) => onNavigateToMember({
|
|
2026
|
-
selectedMember: member,
|
|
2027
|
-
selectedEntityType: member?.legalEntityType,
|
|
2028
|
-
selectedRoles: member?.roles,
|
|
2029
|
-
roleAndType: true
|
|
2030
|
-
}),
|
|
2031
|
-
navigateToEditMemberOwner: (memberOwnerId, memberId) => {
|
|
2032
|
-
setActiveMember({
|
|
2033
|
-
legalEntityId: memberId
|
|
2034
|
-
});
|
|
2035
|
-
onNavigateToDecisionMakerIndividual(
|
|
2036
|
-
TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER,
|
|
2037
|
-
memberOwnerId,
|
|
2038
|
-
memberId
|
|
2039
|
-
);
|
|
2040
|
-
}
|
|
2041
|
-
}
|
|
2042
|
-
) }),
|
|
2043
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE], children: /* @__PURE__ */ jsx(
|
|
2044
|
-
UnincorporatedPartnershipMemberRoleAndTypePage$1,
|
|
2045
|
-
{
|
|
2046
|
-
onNavigateToMember,
|
|
2047
|
-
navigateBack: async () => {
|
|
2048
|
-
await refetchUnincorporatedPartnership();
|
|
2049
|
-
navigate.back();
|
|
2050
|
-
}
|
|
2051
|
-
}
|
|
2052
|
-
) }),
|
|
2053
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER], children: /* @__PURE__ */ jsx(
|
|
2054
|
-
DecisionMakerDetailsPage$1,
|
|
2055
|
-
{
|
|
2056
|
-
taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER,
|
|
2057
|
-
onSubmit: async (data) => {
|
|
2058
|
-
await handleOnSubmit(data);
|
|
2059
|
-
await refetchUnincorporatedPartnership();
|
|
2060
|
-
},
|
|
2061
|
-
handleHomeClick: () => navigate.back()
|
|
2062
|
-
}
|
|
2063
|
-
) }),
|
|
2064
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL], children: /* @__PURE__ */ jsx(
|
|
2065
|
-
UnincorporatedPartnershipIndividualPage$1,
|
|
2066
|
-
{
|
|
2067
|
-
partnershipId: unincorporatedPartnership?.id,
|
|
2068
|
-
member: unincorporatedPartnershipMember,
|
|
2069
|
-
onSubmit: async (data) => {
|
|
2070
|
-
try {
|
|
2071
|
-
await handleOnSubmit(data, 2);
|
|
2072
|
-
await refetchUnincorporatedPartnership();
|
|
2073
|
-
navigate.replace(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW);
|
|
2074
|
-
} catch {
|
|
2075
|
-
}
|
|
2076
|
-
},
|
|
2077
|
-
handleBackClick: () => navigate.back(),
|
|
2078
|
-
handleHomeClick: () => navigate.to(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW)
|
|
2079
|
-
}
|
|
2080
|
-
) }),
|
|
2081
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY], children: /* @__PURE__ */ jsx(
|
|
2082
|
-
UnincorporatedPartnershipMemberCompanyPage$1,
|
|
2083
|
-
{
|
|
2084
|
-
partnershipId: unincorporatedPartnership?.id,
|
|
2085
|
-
newMember: unincorporatedPartnershipMember?.legalEntityId === "" ? unincorporatedPartnershipMember : void 0,
|
|
2086
|
-
onSubmit: async (data) => {
|
|
2087
|
-
try {
|
|
2088
|
-
await handleOnSubmit(data, 2);
|
|
2089
|
-
await refetchUnincorporatedPartnership();
|
|
2090
|
-
navigate.replace(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW);
|
|
2091
|
-
} catch {
|
|
2092
|
-
}
|
|
2093
|
-
},
|
|
2094
|
-
handleHomeClick: () => navigate.back()
|
|
2095
|
-
}
|
|
2096
|
-
) }),
|
|
2097
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.UNINCORPORATED_PARTNERSHIP], children: /* @__PURE__ */ jsx(
|
|
2098
|
-
TrustDetailsPage$1,
|
|
2099
|
-
{
|
|
2100
|
-
taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP,
|
|
2101
|
-
trustId: unincorporatedPartnership?.id,
|
|
2102
|
-
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
2103
|
-
handleHomeClick: () => navigate.back()
|
|
2104
|
-
}
|
|
2105
|
-
) }),
|
|
2106
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.PCI_DSS], children: /* @__PURE__ */ jsx(SignPCIComponent$1, { onClose: () => navigate.back() }) }),
|
|
2107
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.SOLE_PROPRIETOR_COMPANY], children: /* @__PURE__ */ jsx(
|
|
2108
|
-
SoleProprietorshipPage$1,
|
|
2109
|
-
{
|
|
2110
|
-
solePropId: soleProp?.id,
|
|
2111
|
-
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
2112
|
-
handleHomeClick: () => navigate.back()
|
|
2113
|
-
}
|
|
2114
|
-
) }),
|
|
2115
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.SERVICE_AGREEMENT], children: /* @__PURE__ */ jsx(
|
|
2116
|
-
AcceptTermsOfService$1,
|
|
2117
|
-
{
|
|
2118
|
-
legalEntityId: legalEntity.id,
|
|
2119
|
-
onClose: () => {
|
|
2120
|
-
userEvents.addPageEvent("Clicked button", {
|
|
2121
|
-
actionType: "back",
|
|
2122
|
-
label: "back"
|
|
2123
|
-
});
|
|
2124
|
-
navigate.back();
|
|
2125
|
-
},
|
|
2126
|
-
asEmbedded: false,
|
|
2127
|
-
handleAddSigner: () => {
|
|
2128
|
-
onNavigateToDecisionMakerIndividual(TaskTypes.DECISION_MAKER);
|
|
2129
|
-
}
|
|
2130
|
-
}
|
|
2131
|
-
) }),
|
|
2132
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.LEGAL_REPRESENTATIVE_DETAILS], children: /* @__PURE__ */ jsx(
|
|
2133
|
-
LegalRepresentativeDetailsPage$1,
|
|
2134
|
-
{
|
|
2135
|
-
legalRepresentativeId: associatedLegalRepresentative?.id,
|
|
2136
|
-
onSubmit: handleOnSubmit,
|
|
2137
|
-
handleHomeClick: () => navigate.back()
|
|
2138
|
-
}
|
|
2139
|
-
) }),
|
|
2140
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.SOURCE_OF_FUNDS], children: /* @__PURE__ */ jsx(
|
|
2141
|
-
SourceOfFundsPage$1,
|
|
2142
|
-
{
|
|
2143
|
-
onSubmit: handleOnSubmit,
|
|
2144
|
-
handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW)
|
|
2145
|
-
}
|
|
2146
|
-
) }),
|
|
2147
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.BUSINESS_FINANCING], children: /* @__PURE__ */ jsx(
|
|
2148
|
-
BusinessFinancingPage$1,
|
|
2149
|
-
{
|
|
2150
|
-
onSubmit: async (data) => {
|
|
2151
|
-
onExternalSubmit?.(data);
|
|
2152
|
-
await refetchLegalEntity();
|
|
2153
|
-
navigate.to(TaskTypes.TASKS_OVERVIEW);
|
|
2154
|
-
},
|
|
2155
|
-
handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW)
|
|
2156
|
-
}
|
|
2157
|
-
) }),
|
|
2158
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.TAX_REPORTING], children: /* @__PURE__ */ jsx(TaxReportingDropin$1, { handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW) }) }),
|
|
2159
|
-
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.ACQUIRING_BUSINESS_LINE], children: /* @__PURE__ */ jsx(RootBusinessLinesPage$1, { handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW) }) }),
|
|
2160
|
-
/* @__PURE__ */ jsx(Route, { path: "/", children: /* @__PURE__ */ jsx(DefaultRouteRedirect, { legalEntity, children: /* @__PURE__ */ jsx(TaskList, { onNavigateToTask, singpassComponent: singpassBanner }) }) }),
|
|
2161
|
-
/* @__PURE__ */ jsx(Route, { children: /* @__PURE__ */ jsx(DefaultRouteRedirect, { legalEntity }) })
|
|
2162
|
-
] });
|
|
2163
|
-
}
|
|
2164
|
-
const useCurrentTask = () => {
|
|
2165
|
-
const { parser } = useRouter();
|
|
2166
|
-
const [location] = useLocation();
|
|
2167
|
-
for (const [taskType, routePath] of Object.entries(ROUTE_PATHS)) {
|
|
2168
|
-
const [match] = matchRoute(parser, routePath, location);
|
|
2169
|
-
if (match) return taskType;
|
|
2170
|
-
}
|
|
2171
|
-
return void 0;
|
|
2172
|
-
};
|
|
2173
|
-
function isIn$1(values, x) {
|
|
2174
|
-
return values.includes(x);
|
|
2175
|
-
}
|
|
2176
|
-
const PAGES_WITH_POLLING$1 = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
2177
|
-
const logger$1 = createLogger();
|
|
2178
|
-
function URLRouterDropinComposer(props) {
|
|
2179
|
-
const { parser } = useRouter();
|
|
2180
|
-
const basePath = useMemo(() => detectBasePath(parser), [parser]);
|
|
2181
|
-
return /* @__PURE__ */ jsx(Router, { base: basePath, children: /* @__PURE__ */ jsx(WouterDropinComposerInner, { ...props }) });
|
|
2182
|
-
}
|
|
2183
|
-
const MEMORY_ROUTER_SESSION_KEY = "ho-memory-router-path";
|
|
2184
|
-
const MEMORY_ROUTER_LE_KEY = "ho-memory-router-le";
|
|
2185
|
-
function MemoryRouterDropinComposer({ legalEntityResponse, ...rest }) {
|
|
2186
|
-
const leId = legalEntityResponse.id;
|
|
2187
|
-
const memoryRouter = useMemo(() => {
|
|
2188
|
-
const previousLeId = sessionStorage.getItem(MEMORY_ROUTER_LE_KEY);
|
|
2189
|
-
if (previousLeId !== leId) {
|
|
2190
|
-
sessionStorage.removeItem(MEMORY_ROUTER_SESSION_KEY);
|
|
2191
|
-
sessionStorage.setItem(MEMORY_ROUTER_LE_KEY, leId);
|
|
2192
|
-
}
|
|
2193
|
-
const savedPath = sessionStorage.getItem(MEMORY_ROUTER_SESSION_KEY) ?? "/";
|
|
2194
|
-
return memoryLocation({ path: savedPath, record: true });
|
|
2195
|
-
}, [leId]);
|
|
2196
|
-
const handle = useMemo(
|
|
2197
|
-
() => ({ navigate: memoryRouter.navigate, history: memoryRouter.history }),
|
|
2198
|
-
[memoryRouter]
|
|
2199
|
-
);
|
|
2200
|
-
return /* @__PURE__ */ jsx(Router, { hook: memoryRouter.hook, children: /* @__PURE__ */ jsxs(MemoryRouterContext.Provider, { value: handle, children: [
|
|
2201
|
-
/* @__PURE__ */ jsx(MemoryRouterPathSync, {}),
|
|
2202
|
-
/* @__PURE__ */ jsx(WouterDropinComposerInner, { legalEntityResponse, ...rest })
|
|
2203
|
-
] }) });
|
|
2204
|
-
}
|
|
2205
|
-
const HISTORY_STATE_KEY = "kycMemoryPath";
|
|
2206
|
-
function MemoryRouterPathSync() {
|
|
2207
|
-
const [location] = useLocation();
|
|
2208
|
-
const memoryRouter = useMemoryRouter();
|
|
2209
|
-
const isPopstateNav = useRef(false);
|
|
2210
|
-
useEffect(() => {
|
|
2211
|
-
sessionStorage.setItem(MEMORY_ROUTER_SESSION_KEY, location);
|
|
2212
|
-
if (isPopstateNav.current) {
|
|
2213
|
-
isPopstateNav.current = false;
|
|
2214
|
-
return;
|
|
2215
|
-
}
|
|
2216
|
-
const currentState = window.history.state;
|
|
2217
|
-
if (currentState?.[HISTORY_STATE_KEY] === location) return;
|
|
2218
|
-
window.history.pushState({ [HISTORY_STATE_KEY]: location }, "");
|
|
2219
|
-
}, [location]);
|
|
2220
|
-
useEffect(() => {
|
|
2221
|
-
if (!memoryRouter) return;
|
|
2222
|
-
const onPopState = (event) => {
|
|
2223
|
-
const path = event.state?.[HISTORY_STATE_KEY];
|
|
2224
|
-
if (path != null) {
|
|
2225
|
-
isPopstateNav.current = true;
|
|
2226
|
-
memoryRouter.navigate(path, { replace: true });
|
|
2227
|
-
}
|
|
2228
|
-
};
|
|
2229
|
-
window.addEventListener("popstate", onPopState);
|
|
2230
|
-
return () => window.removeEventListener("popstate", onPopState);
|
|
2231
|
-
}, [memoryRouter]);
|
|
2232
|
-
useEffect(() => {
|
|
2233
|
-
if (!window.history.state?.[HISTORY_STATE_KEY]) {
|
|
2234
|
-
window.history.replaceState({ [HISTORY_STATE_KEY]: location }, "");
|
|
2235
|
-
}
|
|
2236
|
-
}, []);
|
|
2237
|
-
return null;
|
|
2238
|
-
}
|
|
2239
|
-
function WouterDropinComposerInner({
|
|
2240
|
-
legalEntityResponse,
|
|
2241
|
-
onSubmit,
|
|
2242
|
-
onNavigate = noop,
|
|
2243
|
-
openBankingPartnerConfigId
|
|
2244
|
-
}) {
|
|
2245
|
-
const { accountHolder, setAccountHolder } = useAccountHolder();
|
|
2246
|
-
const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
|
|
2247
|
-
const userEvents = useAnalyticsContext();
|
|
2248
|
-
const { features } = useToggleContext();
|
|
2249
|
-
const navigate = useNavigate();
|
|
2250
|
-
const currentTask = useCurrentTask();
|
|
2251
|
-
const { setHasSeenSingpassSelection } = useHasSeenSingpassSelection({
|
|
2252
|
-
legalEntityId: legalEntityResponse.id
|
|
2253
|
-
});
|
|
2254
|
-
const { setHasSeenIntroduction } = useHasSeenIntroduction({
|
|
2255
|
-
legalEntityId: legalEntityResponse.id
|
|
2256
|
-
});
|
|
2257
|
-
const {
|
|
2258
|
-
rootLegalEntity: rootLegalEntitySignal,
|
|
2259
|
-
rootLegalEntityCountry: rootLegalEntityCountrySignal,
|
|
2260
|
-
taskTypes: taskTypesSignal,
|
|
2261
|
-
setRootLegalEntity,
|
|
2262
|
-
setTaskTypes,
|
|
2263
|
-
setAccountHolder: setAccountHolderInGlobalStore
|
|
2264
|
-
} = useGlobalStore();
|
|
2265
|
-
const rootLegalEntity = rootLegalEntitySignal.value;
|
|
2266
|
-
const rootLegalEntityCountry = rootLegalEntityCountrySignal.value;
|
|
2267
|
-
const taskTypes = taskTypesSignal.value;
|
|
2268
|
-
const { data: rawTaskTypes, isLoading: isLoadingConfiguration } = useTaskTypes();
|
|
2269
|
-
const { isSettingEnabled } = useSettingsContext();
|
|
2270
|
-
useEffect(() => {
|
|
2271
|
-
if (!rawTaskTypes) {
|
|
2272
|
-
return;
|
|
2273
|
-
}
|
|
2274
|
-
let filteredTasks = rawTaskTypes;
|
|
2275
|
-
if (!isSettingEnabled(SettingNames.AllowBusinessLines)) {
|
|
2276
|
-
filteredTasks = rawTaskTypes?.filter((task) => task !== TaskTypes.ACQUIRING_BUSINESS_LINE);
|
|
2277
|
-
}
|
|
2278
|
-
setTaskTypes(filteredTasks);
|
|
2279
|
-
}, [rawTaskTypes, setTaskTypes]);
|
|
2280
|
-
const { data: legalEntityData, refetch: refetchLegalEntity } = useLegalEntity(
|
|
2281
|
-
legalEntityResponse.id,
|
|
2282
|
-
{
|
|
2283
|
-
refetchInterval: (query) => {
|
|
2284
|
-
const legalEntityData2 = query.state.data;
|
|
2285
|
-
if (legalEntityData2) {
|
|
2286
|
-
return !currentTask || !isIn$1(PAGES_WITH_POLLING$1, currentTask) || hasAllCapabilitiesResolved(legalEntityData2) || hasRejectedCapabilities(legalEntityData2) ? false : 3e3;
|
|
2287
|
-
}
|
|
2288
|
-
return 3e3;
|
|
2289
|
-
}
|
|
2290
|
-
}
|
|
2291
|
-
);
|
|
2292
|
-
useEffect(() => {
|
|
2293
|
-
if (legalEntityData && !objectsDeepEqual(legalEntityData, rootLegalEntity)) {
|
|
2294
|
-
setRootLegalEntity(legalEntityData);
|
|
2295
|
-
}
|
|
2296
|
-
}, [legalEntityData]);
|
|
2297
|
-
const {
|
|
2298
|
-
isEligibleForSingpass,
|
|
2299
|
-
state: singpassLoginState,
|
|
2300
|
-
handleInitiateSingpassMyInfoLogin,
|
|
2301
|
-
handleSingpassMyInfoLoginSuccess,
|
|
2302
|
-
handleSingpassMyInfoLoginFailure,
|
|
2303
|
-
handleSingpassMyInfoLoginReset
|
|
2304
|
-
} = useSingpassMyInfoLogin({
|
|
2305
|
-
legalEntity: rootLegalEntity,
|
|
2306
|
-
accountHolder
|
|
2307
|
-
});
|
|
2308
|
-
const singpassTabRef = useRef(null);
|
|
2309
|
-
const { data: trust, refetch: refetchTrust } = useAssociatedLegalEntity(
|
|
2310
|
-
rootLegalEntity,
|
|
2311
|
-
LegalEntityTypes.TRUST
|
|
2312
|
-
);
|
|
2313
|
-
const { data: unincorporatedPartnership, refetch: refetchUnincorporatedPartnership } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.UNINCORPORATED_PARTNERSHIP);
|
|
2314
|
-
const { data: soleProp } = useAssociatedLegalEntity(
|
|
2315
|
-
rootLegalEntity,
|
|
2316
|
-
LegalEntityTypes.SOLE_PROPRIETORSHIP
|
|
2317
|
-
);
|
|
2318
|
-
const associatedLegalRepresentative = useAssociatedLegalRepresentative(rootLegalEntity);
|
|
2319
|
-
const [targetLegalEntityType, setTargetLegalEntityType] = useState();
|
|
2320
|
-
const {
|
|
2321
|
-
trustMember,
|
|
2322
|
-
onNavigateToTrust,
|
|
2323
|
-
onNavigateToTrustMemberRoleAndType,
|
|
2324
|
-
onNavigateToTrustMemberEditDetails
|
|
2325
|
-
} = useTrustMemberNavigation({
|
|
2326
|
-
trust,
|
|
2327
|
-
navigateTo: navigate.to
|
|
2328
|
-
});
|
|
2329
|
-
const {
|
|
2330
|
-
onNavigateToMember,
|
|
2331
|
-
activeMember: unincorporatedPartnershipMember,
|
|
2332
|
-
setActiveMember
|
|
2333
|
-
} = useUnincorporatedPartnershipNavigation({
|
|
2334
|
-
navigateTo: navigate.to
|
|
2335
|
-
});
|
|
2336
|
-
const handleSingpassSelectionNextClick = async (method) => {
|
|
2337
|
-
if (method === "singpass") {
|
|
2338
|
-
try {
|
|
2339
|
-
const authUrl = await handleInitiateSingpassMyInfoLogin();
|
|
2340
|
-
if (!authUrl) {
|
|
2341
|
-
throw new Error("OpenId authentication url not");
|
|
2342
|
-
}
|
|
2343
|
-
setHasSeenSingpassSelection(true);
|
|
2344
|
-
singpassTabRef.current = window.open(authUrl, "_blank");
|
|
2345
|
-
singpassTabRef.current?.focus();
|
|
2346
|
-
} catch (e) {
|
|
2347
|
-
logger$1.error(e);
|
|
2348
|
-
if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
|
|
2349
|
-
}
|
|
2350
|
-
}
|
|
2351
|
-
if (method === "manual") {
|
|
2352
|
-
setHasSeenSingpassSelection(true);
|
|
2353
|
-
}
|
|
2354
|
-
navigate.to(TaskTypes.TASKS_OVERVIEW);
|
|
2355
|
-
};
|
|
2356
|
-
const isJourneyInitializedRef = useRef(false);
|
|
2357
|
-
if (!isJourneyInitializedRef.current) {
|
|
2358
|
-
userEvents.addJourneyEvent("Landed on page", { actionType: "start" });
|
|
2359
|
-
isJourneyInitializedRef.current = true;
|
|
2360
|
-
}
|
|
2361
|
-
useTaskLandedEvent(currentTask);
|
|
2362
|
-
useEffect(() => {
|
|
2363
|
-
if (currentTask) onNavigate(currentTask);
|
|
2364
|
-
}, [currentTask]);
|
|
2365
|
-
useEffect(() => {
|
|
2366
|
-
if (hasRejectedCapabilities(rootLegalEntity)) {
|
|
2367
|
-
navigate.replace(TaskTypes.CAPABILITY_REJECTED);
|
|
2368
|
-
}
|
|
2369
|
-
}, [rootLegalEntity]);
|
|
2370
|
-
useEffect(() => {
|
|
2371
|
-
const newAccountHolder = getDefaultAccountHolderType(rootLegalEntity, false, accountHolder);
|
|
2372
|
-
if (newAccountHolder !== accountHolder) setAccountHolder(newAccountHolder);
|
|
2373
|
-
}, [accountHolder, rootLegalEntity]);
|
|
2374
|
-
useEffect(() => setAccountHolderInGlobalStore(accountHolder), [accountHolder]);
|
|
2375
|
-
const { rootLegalEntityId } = useApiContext();
|
|
2376
|
-
const { data: toggleData } = useToggles();
|
|
2377
|
-
rootLegalEntityId.value = rootLegalEntity.id;
|
|
2378
|
-
useEffect(() => {
|
|
2379
|
-
let activeExperiments;
|
|
2380
|
-
if (features.EnableOnboardingTogglesEndpoint) {
|
|
2381
|
-
activeExperiments = Object.keys(toggleData?.experiments || {});
|
|
2382
|
-
} else {
|
|
2383
|
-
activeExperiments = Object.entries(features).filter(([key, value]) => key.includes("_") && value).map(([key]) => key);
|
|
2384
|
-
}
|
|
2385
|
-
activeExperiments.forEach((experiment) => {
|
|
2386
|
-
const [name, variant] = experiment.split("_");
|
|
2387
|
-
userEvents.trackExperiment({ name, variant });
|
|
2388
|
-
});
|
|
2389
|
-
}, [features, toggleData?.experiments, userEvents]);
|
|
2390
|
-
const singpassBanner = isEligibleForSingpass ? /* @__PURE__ */ jsx(
|
|
2391
|
-
SingpassBanner,
|
|
2392
|
-
{
|
|
2393
|
-
...singpassLoginState,
|
|
2394
|
-
onAlertClose: () => {
|
|
2395
|
-
handleSingpassMyInfoLoginReset();
|
|
2396
|
-
},
|
|
2397
|
-
onClick: async () => {
|
|
2398
|
-
try {
|
|
2399
|
-
const authUrl = await handleInitiateSingpassMyInfoLogin();
|
|
2400
|
-
singpassTabRef.current = window.open(authUrl);
|
|
2401
|
-
singpassTabRef.current?.focus();
|
|
2402
|
-
} catch (e) {
|
|
2403
|
-
logger$1.error(e);
|
|
2404
|
-
if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
|
|
2405
|
-
}
|
|
2406
|
-
},
|
|
2407
|
-
onMessage: async ({ data: { isSuccessful } }) => {
|
|
2408
|
-
if (isSuccessful) {
|
|
2409
|
-
handleSingpassMyInfoLoginSuccess();
|
|
2410
|
-
await refetchLegalEntity();
|
|
2411
|
-
singpassTabRef.current?.close();
|
|
2412
|
-
} else {
|
|
2413
|
-
handleSingpassMyInfoLoginFailure(
|
|
2414
|
-
legalEntityResponse.type === LegalEntityTypes.INDIVIDUAL ? "weCouldntConnectToMyinfo" : "weCouldntConnectToMyinfoBusiness"
|
|
2415
|
-
);
|
|
2416
|
-
}
|
|
2417
|
-
},
|
|
2418
|
-
legalEntityType: legalEntityResponse?.type
|
|
2419
|
-
}
|
|
2420
|
-
) : void 0;
|
|
2421
|
-
if (isLoadingConfiguration) {
|
|
2422
|
-
return /* @__PURE__ */ jsx(Skeleton, {});
|
|
2423
|
-
}
|
|
2424
|
-
return /* @__PURE__ */ jsx(
|
|
2425
|
-
OnboardingRouter,
|
|
2426
|
-
{
|
|
2427
|
-
legalEntity: rootLegalEntity,
|
|
2428
|
-
rootLegalEntityCountry,
|
|
2429
|
-
trust,
|
|
2430
|
-
unincorporatedPartnership,
|
|
2431
|
-
soleProp,
|
|
2432
|
-
associatedLegalRepresentative,
|
|
2433
|
-
refetchLegalEntity,
|
|
2434
|
-
refetchTrust,
|
|
2435
|
-
refetchUnincorporatedPartnership,
|
|
2436
|
-
onExternalSubmit: onSubmit,
|
|
2437
|
-
accountHolder,
|
|
2438
|
-
setAccountHolder,
|
|
2439
|
-
setCanSeeEntitySelection,
|
|
2440
|
-
setHasSeenIntroduction,
|
|
2441
|
-
taskTypes,
|
|
2442
|
-
targetLegalEntityType,
|
|
2443
|
-
setTargetLegalEntityType,
|
|
2444
|
-
trustMember,
|
|
2445
|
-
onNavigateToTrust,
|
|
2446
|
-
onNavigateToTrustMemberRoleAndType,
|
|
2447
|
-
onNavigateToTrustMemberEditDetails,
|
|
2448
|
-
unincorporatedPartnershipMember,
|
|
2449
|
-
setActiveMember,
|
|
2450
|
-
onNavigateToMember,
|
|
2451
|
-
singpassBanner,
|
|
2452
|
-
handleSingpassSelectionNextClick,
|
|
2453
|
-
openBankingPartnerConfigId
|
|
2454
|
-
}
|
|
2455
|
-
);
|
|
2456
|
-
}
|
|
2457
|
-
const useNavigation = ({ legalEntity, onNavigate }) => {
|
|
2458
|
-
const { isSettingEnabled } = useSettingsContext();
|
|
2459
|
-
const userEvents = useAnalyticsContext();
|
|
2460
|
-
const showServiceAgreementsFirst = isSettingEnabled(SettingNames.ShowServiceAgreementsFirst);
|
|
2461
|
-
const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
|
|
2462
|
-
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
2463
|
-
const showIntroduction = useShouldShowIntroduction({ legalEntity });
|
|
2464
|
-
const { hasSeenSingpassSelection } = useHasSeenSingpassSelection({
|
|
2465
|
-
legalEntityId: legalEntity.id
|
|
2466
|
-
});
|
|
2467
|
-
const { accountHolder } = useAccountHolder();
|
|
2468
|
-
const { canSeeEntitySelection } = useCanSeeEntitySelection(legalEntity.id);
|
|
2469
|
-
const { isEligibleForSingpass } = useSingpassMyInfoLogin({
|
|
2470
|
-
legalEntity,
|
|
2471
|
-
accountHolder
|
|
2472
|
-
});
|
|
2473
|
-
const shouldShowSingpassSelection = isEligibleForSingpass && !hasSeenSingpassSelection;
|
|
2474
|
-
const [taskHistory, setTaskHistory] = useState(["default"]);
|
|
2475
|
-
const actualTasks = taskHistory.filter((task) => task !== "default");
|
|
2476
|
-
const handleNavigation = useCallback(
|
|
2477
|
-
(task) => {
|
|
2478
|
-
userEvents.updateBaseTrackingPayload({ task });
|
|
2479
|
-
onNavigate?.(task);
|
|
2480
|
-
},
|
|
2481
|
-
[onNavigate]
|
|
2482
|
-
);
|
|
2483
|
-
const navigateTo = useCallback(
|
|
2484
|
-
(task, deletePreviousHistory = false) => {
|
|
2485
|
-
const pushNewTask = () => setTaskHistory((taskHistory2) => deletePreviousHistory ? [task] : [...taskHistory2, task]);
|
|
2486
|
-
if (task === "default") {
|
|
2487
|
-
setTimeout(pushNewTask);
|
|
2488
|
-
} else {
|
|
2489
|
-
pushNewTask();
|
|
2490
|
-
handleNavigation(task);
|
|
2491
|
-
}
|
|
2492
|
-
},
|
|
2493
|
-
[handleNavigation]
|
|
2494
|
-
);
|
|
2495
|
-
const navigateBack = useCallback(
|
|
2496
|
-
(stepCount = 1) => {
|
|
2497
|
-
if (taskHistory.length <= 1) return;
|
|
2498
|
-
const prevTask = taskHistory[taskHistory.length - (stepCount + 1)];
|
|
2499
|
-
if (prevTask === "default") {
|
|
2500
|
-
throw Error("Cannot navigate back to 'default' task");
|
|
2501
|
-
}
|
|
2502
|
-
if (prevTask === TaskTypes.TASKS_OVERVIEW) {
|
|
2503
|
-
setTaskHistory([TaskTypes.TASKS_OVERVIEW]);
|
|
2504
|
-
handleNavigation?.(TaskTypes.TASKS_OVERVIEW);
|
|
2505
|
-
return;
|
|
2506
|
-
}
|
|
2507
|
-
setTaskHistory(taskHistory.slice(0, -1 * stepCount));
|
|
2508
|
-
handleNavigation?.(prevTask);
|
|
2509
|
-
userEvents.updateBaseTrackingPayload({ task: prevTask });
|
|
2510
|
-
},
|
|
2511
|
-
[taskHistory, handleNavigation]
|
|
2512
|
-
);
|
|
2513
|
-
useEffect(() => {
|
|
2514
|
-
if (!window.history.state) window.history.pushState({}, "");
|
|
2515
|
-
const handleBrowserBackButton = () => {
|
|
2516
|
-
if (window.history.state === null) window.history.pushState({}, "");
|
|
2517
|
-
navigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
2518
|
-
};
|
|
2519
|
-
window.addEventListener("popstate", handleBrowserBackButton);
|
|
2520
|
-
return () => {
|
|
2521
|
-
window.removeEventListener("popstate", handleBrowserBackButton);
|
|
2522
|
-
};
|
|
2523
|
-
}, [navigateTo]);
|
|
2524
|
-
useEffect(() => {
|
|
2525
|
-
const pushedTask = taskHistory[taskHistory.length - 1];
|
|
2526
|
-
if (pushedTask === "default") {
|
|
2527
|
-
const defaultTask = getDefaultTask({
|
|
2528
|
-
legalEntity,
|
|
2529
|
-
canSeeEntitySelection,
|
|
2530
|
-
showIntroduction,
|
|
2531
|
-
canChangeEntityType,
|
|
2532
|
-
shouldShowSingpassSelection,
|
|
2533
|
-
showServiceAgreementsFirst,
|
|
2534
|
-
showBusinessFinancingFirst
|
|
2535
|
-
});
|
|
2536
|
-
setTaskHistory([...taskHistory.slice(0, taskHistory.length - 1), defaultTask]);
|
|
2537
|
-
}
|
|
2538
|
-
}, [
|
|
2539
|
-
legalEntity,
|
|
2540
|
-
accountHolder,
|
|
2541
|
-
showIntroduction,
|
|
2542
|
-
canChangeEntityType,
|
|
2543
|
-
shouldShowSingpassSelection,
|
|
2544
|
-
showServiceAgreementsFirst,
|
|
2545
|
-
taskHistory,
|
|
2546
|
-
showBusinessFinancingFirst
|
|
2547
|
-
]);
|
|
2548
|
-
return {
|
|
2549
|
-
currentTask: actualTasks[actualTasks.length - 1],
|
|
2550
|
-
previousTask: actualTasks[actualTasks.length - 2],
|
|
2551
|
-
navigateBack,
|
|
2552
|
-
navigateTo
|
|
2553
|
-
};
|
|
2554
|
-
};
|
|
2555
|
-
const getDefaultTask = ({
|
|
2556
|
-
legalEntity,
|
|
2557
|
-
canSeeEntitySelection,
|
|
2558
|
-
canChangeEntityType,
|
|
2559
|
-
showIntroduction,
|
|
2560
|
-
shouldShowSingpassSelection,
|
|
2561
|
-
showServiceAgreementsFirst,
|
|
2562
|
-
showBusinessFinancingFirst
|
|
2563
|
-
}) => {
|
|
2564
|
-
const hasLegalEntityProgressedBeyondEntitySelection = hasProgressedBeyondEntitySelection(legalEntity);
|
|
2565
|
-
if (showServiceAgreementsFirst) {
|
|
2566
|
-
return TaskTypes.SERVICE_AGREEMENT;
|
|
2567
|
-
}
|
|
2568
|
-
if (showBusinessFinancingFirst) {
|
|
2569
|
-
return TaskTypes.BUSINESS_FINANCING;
|
|
2570
|
-
}
|
|
2571
|
-
if (canChangeEntityType && canSeeEntitySelection && !hasLegalEntityProgressedBeyondEntitySelection)
|
|
2572
|
-
return TaskTypes.BUSINESS_TYPE_SELECTION;
|
|
2573
|
-
if (showIntroduction) return TaskTypes.INTRODUCTION;
|
|
2574
|
-
if (shouldShowSingpassSelection) return TaskTypes.SINGPASS_SELECTION;
|
|
2575
|
-
return TaskTypes.TASKS_OVERVIEW;
|
|
2576
|
-
};
|
|
2577
|
-
const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
2578
|
-
const hasOwnEntityAssocation = legalEntity.entityAssociations?.some(
|
|
2579
|
-
(ea) => ea.associatorId === legalEntity.id
|
|
2580
|
-
);
|
|
2581
|
-
const hasOrganizationType = legalEntity.organization?.type;
|
|
2582
|
-
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
2583
|
-
};
|
|
2584
|
-
const Introduction = lazy(
|
|
2585
|
-
async () => (await import("./Introduction-DShrdSBn.js")).Introduction
|
|
2586
|
-
);
|
|
2587
|
-
const BusinessTypeSelectionPage = lazy(
|
|
2588
|
-
async () => (await import("./BusinessTypeSelectionPage-SVmYYbcY.js")).BusinessTypeSelectionPage
|
|
2589
|
-
);
|
|
2590
|
-
const SingpassSelection = lazy(
|
|
2591
|
-
async () => (await import("./SingpassSelection-DowkF6pT.js")).SingpassSelection
|
|
2592
|
-
);
|
|
2593
|
-
const AccountSetupRejected = lazy(
|
|
2594
|
-
async () => (await import("./AccountSetupRejected-B9jCHNz-.js")).AccountSetupRejected
|
|
2595
|
-
);
|
|
2596
|
-
const DecisionMakers = lazy(
|
|
2597
|
-
async () => (await import("./DecisionMakers-BJzPsxVk.js")).DecisionMakers
|
|
2598
|
-
);
|
|
2599
|
-
const CustomerSupport = lazy(
|
|
2600
|
-
async () => (await import("./CustomerSupport-CZZVSn5p.js")).CustomerSupport
|
|
2601
|
-
);
|
|
2602
|
-
const Review = lazy(async () => (await import("./Review-Be1zBkVv.js")).Review);
|
|
2603
|
-
const SignPCIComponent = lazy(
|
|
2604
|
-
async () => (await import("./SignPCIComponent-BTyUfmK_.js")).SignPCIComponent
|
|
2605
|
-
);
|
|
2606
|
-
const AcceptTermsOfService = lazy(
|
|
2607
|
-
async () => (await import("./AcceptTermsOfServiceComponent-BbktO0zC.js")).AcceptTermsOfServiceComponent
|
|
2608
|
-
);
|
|
2609
|
-
const TaxReportingDropin = lazy(
|
|
2610
|
-
async () => (await import("./TaxReportingDropin-D52Nf4f2.js")).TaxReportingDropin
|
|
2611
|
-
);
|
|
2612
|
-
const PayoutDetailsPage = lazy(
|
|
2613
|
-
async () => (await import("./PayoutDetailsPage-BGdufep3.js")).PayoutDetailsPage
|
|
2614
|
-
);
|
|
2615
|
-
const RootBusinessDetailsPage = lazy(
|
|
2616
|
-
async () => (await import("./RootBusinessDetailsPage-CnX2zYB9.js")).RootBusinessDetailsPage
|
|
2617
|
-
);
|
|
2618
|
-
const RootBusinessLinesPage = lazy(
|
|
2619
|
-
async () => (await import("./RootBusinessLinesPage-G9LnOcFE.js")).RootBusinessLinesPage
|
|
2620
|
-
);
|
|
2621
|
-
const SoleProprietorshipPage = lazy(
|
|
2622
|
-
async () => (await import("./SoleProprietorshipPage-C_875t2r.js")).SoleProprietorshipPage
|
|
2623
|
-
);
|
|
2624
|
-
const TrustMemberCompanyPage = lazy(
|
|
2625
|
-
async () => (await import("./TrustMemberCompanyPage-CTXwk8mB.js")).TrustMemberCompanyPage
|
|
2626
|
-
);
|
|
2627
|
-
const TrustMemberIndividualPage = lazy(
|
|
2628
|
-
async () => (await import("./TrustMemberIndividualPage-BusLDMBC.js")).TrustMemberIndividualPage
|
|
2629
|
-
);
|
|
2630
|
-
const TrustMemberRoleAndTypePage = lazy(
|
|
2631
|
-
async () => (await import("./TrustMemberRoleAndTypePage-D6Ir0aGf.js")).TrustMemberRoleAndTypePage
|
|
2632
|
-
);
|
|
2633
|
-
const TrustMembersOverview = lazy(
|
|
2634
|
-
async () => (await import("./TrustMembersOverview-_eQwa8o8.js")).TrustMembersOverview
|
|
2635
|
-
);
|
|
2636
|
-
const UnincorporatedPartnershipMemberCompanyPage = lazy(
|
|
2637
|
-
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-A7gQ5wwr.js")).UnincorporatedPartnershipMemberCompanyPage
|
|
2638
|
-
);
|
|
2639
|
-
const UnincorporatedPartnershipIndividualPage = lazy(
|
|
2640
|
-
async () => (await import("./UnincorporatedPartnershipIndividualPage-tCLAddt7.js")).UnincorporatedPartnershipIndividualPage
|
|
2641
|
-
);
|
|
2642
|
-
const UnincorporatedPartnershipMemberRoleAndTypePage = lazy(
|
|
2643
|
-
async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-DaFl9wVc.js")).UnincorporatedPartnershipMemberRoleAndTypePage
|
|
2644
|
-
);
|
|
2645
|
-
const UnincorporatedPartnershipMembersOverview = lazy(
|
|
2646
|
-
async () => (await import("./UnincorporatedPartnershipMembersOverview-C3YF2E_k.js")).UnincorporatedPartnershipMembersOverview
|
|
2647
|
-
);
|
|
2648
|
-
const BusinessFinancingPage = lazy(
|
|
2649
|
-
async () => (await import("./BusinessFinancingPage-wYYsqc5D.js")).BusinessFinancingPage
|
|
2650
|
-
);
|
|
2651
|
-
const TrustDetailsPage = lazy(
|
|
2652
|
-
async () => (await import("./TrustDetailsPage-Cj368KCb.js")).TrustDetailsPage
|
|
2653
|
-
);
|
|
2654
|
-
const SourceOfFundsPage = lazy(
|
|
2655
|
-
async () => (await import("./SourceOfFundsPage-Cx6ekIue.js")).SourceOfFundsPage
|
|
2656
|
-
);
|
|
2657
|
-
const RootIndividualDetailsPage = lazy(
|
|
2658
|
-
async () => (await import("./RootIndividualDetailsPage-DPim7JYp.js")).RootIndividualDetailsPage
|
|
2659
|
-
);
|
|
2660
|
-
const LegalRepresentativeDetailsPage = lazy(
|
|
2661
|
-
async () => (await import("./LegalRepresentativeDetailsPage-ZsBB2MMq.js")).LegalRepresentativeDetailsPage
|
|
2662
|
-
);
|
|
2663
|
-
const DecisionMakerDetailsPage = lazy(
|
|
2664
|
-
async () => (await import("./DecisionMakerDetailsPage-C86M_cr7.js")).DecisionMakerDetailsPage
|
|
2665
|
-
);
|
|
2666
|
-
function isIn(values, x) {
|
|
2667
|
-
return values.includes(x);
|
|
2668
|
-
}
|
|
2669
|
-
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
2670
|
-
const logger = createLogger();
|
|
2671
|
-
function DropinComposer(props) {
|
|
2672
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
2673
|
-
const useURLRouter = isFeatureEnabled(FeatureNames.EnableURLRouterForHostedOnboarding);
|
|
2674
|
-
const useMemoryRouter2 = isFeatureEnabled(FeatureNames.EnableMemoryRouterForHostedOnboarding);
|
|
2675
|
-
if (useMemoryRouter2) {
|
|
2676
|
-
return /* @__PURE__ */ jsx(MemoryRouterDropinComposer, { ...props });
|
|
2677
|
-
}
|
|
2678
|
-
if (useURLRouter) {
|
|
2679
|
-
return /* @__PURE__ */ jsx(URLRouterDropinComposer, { ...props });
|
|
2680
|
-
}
|
|
2681
|
-
return /* @__PURE__ */ jsx(LegacyDropinComposer, { ...props });
|
|
2682
|
-
}
|
|
2683
|
-
function LegacyDropinComposer({
|
|
2684
|
-
legalEntityResponse,
|
|
2685
|
-
onSubmit,
|
|
2686
|
-
onNavigate = noop,
|
|
2687
|
-
openBankingPartnerConfigId
|
|
2688
|
-
}) {
|
|
2689
|
-
const { accountHolder, setAccountHolder } = useAccountHolder();
|
|
2690
|
-
const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
|
|
2691
|
-
const userEvents = useAnalyticsContext();
|
|
2692
|
-
const { features } = useToggleContext();
|
|
2693
|
-
const { setHasSeenSingpassSelection } = useHasSeenSingpassSelection({
|
|
2694
|
-
legalEntityId: legalEntityResponse.id
|
|
2695
|
-
});
|
|
2696
|
-
const { setHasSeenIntroduction } = useHasSeenIntroduction({
|
|
2697
|
-
legalEntityId: legalEntityResponse.id
|
|
2698
|
-
});
|
|
2699
|
-
const { currentTask, previousTask, navigateTo, navigateBack } = useNavigation({
|
|
2700
|
-
legalEntity: legalEntityResponse,
|
|
2701
|
-
onNavigate
|
|
2702
|
-
});
|
|
2703
|
-
const {
|
|
2704
|
-
rootLegalEntity: rootLegalEntitySignal,
|
|
2705
|
-
rootLegalEntityCountry: rootLegalEntityCountrySignal,
|
|
2706
|
-
taskTypes: taskTypesSignal,
|
|
2707
|
-
setRootLegalEntity,
|
|
2708
|
-
setTaskTypes,
|
|
2709
|
-
setAccountHolder: setAccountHolderInGlobalStore
|
|
2710
|
-
} = useGlobalStore();
|
|
2711
|
-
const rootLegalEntity = rootLegalEntitySignal.value;
|
|
2712
|
-
const rootLegalEntityCountry = rootLegalEntityCountrySignal.value;
|
|
2713
|
-
const taskTypes = taskTypesSignal.value;
|
|
2714
|
-
const { data: rawTaskTypes, isLoading: isLoadingConfiguration } = useTaskTypes();
|
|
2715
|
-
const { isSettingEnabled } = useSettingsContext();
|
|
2716
|
-
useEffect(() => {
|
|
2717
|
-
if (!rawTaskTypes) {
|
|
2718
|
-
return;
|
|
2719
|
-
}
|
|
2720
|
-
let filteredTasks = rawTaskTypes;
|
|
2721
|
-
if (!isSettingEnabled(SettingNames.AllowBusinessLines)) {
|
|
2722
|
-
filteredTasks = rawTaskTypes?.filter((task) => task !== TaskTypes.ACQUIRING_BUSINESS_LINE);
|
|
2723
|
-
}
|
|
2724
|
-
setTaskTypes(filteredTasks);
|
|
2725
|
-
}, [rawTaskTypes, setTaskTypes]);
|
|
2726
|
-
const { data: legalEntityData, refetch: refetchLegalEntity } = useLegalEntity(
|
|
2727
|
-
legalEntityResponse.id,
|
|
2728
|
-
{
|
|
2729
|
-
refetchInterval: (query) => {
|
|
2730
|
-
const legalEntityData2 = query.state.data;
|
|
2731
|
-
if (legalEntityData2) {
|
|
2732
|
-
return !currentTask || !isIn(PAGES_WITH_POLLING, currentTask) || hasAllCapabilitiesResolved(legalEntityData2) || hasRejectedCapabilities(legalEntityData2) ? false : 3e3;
|
|
2733
|
-
}
|
|
2734
|
-
return 3e3;
|
|
2735
|
-
}
|
|
2736
|
-
}
|
|
2737
|
-
);
|
|
2738
|
-
useEffect(() => {
|
|
2739
|
-
if (legalEntityData && !objectsDeepEqual(legalEntityData, rootLegalEntity)) {
|
|
2740
|
-
setRootLegalEntity(legalEntityData);
|
|
2741
|
-
}
|
|
2742
|
-
}, [legalEntityData]);
|
|
2743
|
-
const [currentTransferInstrumentId, setCurrentTransferInstrumentId] = useState();
|
|
2744
|
-
const {
|
|
2745
|
-
isEligibleForSingpass,
|
|
2746
|
-
state: singpassLoginState,
|
|
2747
|
-
handleInitiateSingpassMyInfoLogin,
|
|
2748
|
-
handleSingpassMyInfoLoginSuccess,
|
|
2749
|
-
handleSingpassMyInfoLoginFailure,
|
|
2750
|
-
handleSingpassMyInfoLoginReset
|
|
2751
|
-
} = useSingpassMyInfoLogin({
|
|
2752
|
-
legalEntity: rootLegalEntity,
|
|
2753
|
-
accountHolder
|
|
2754
|
-
});
|
|
2755
|
-
const singpassTabRef = useRef(null);
|
|
2756
|
-
const { data: trust, refetch: refetchTrust } = useAssociatedLegalEntity(
|
|
2757
|
-
rootLegalEntity,
|
|
2758
|
-
LegalEntityTypes.TRUST
|
|
2759
|
-
);
|
|
2760
|
-
const { data: unincorporatedPartnership, refetch: refetchUnincorporatedPartnership } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.UNINCORPORATED_PARTNERSHIP);
|
|
2761
|
-
const { data: soleProp } = useAssociatedLegalEntity(
|
|
2762
|
-
rootLegalEntity,
|
|
2763
|
-
LegalEntityTypes.SOLE_PROPRIETORSHIP
|
|
2764
|
-
);
|
|
2765
|
-
const [parentId, setParentId] = useState();
|
|
2766
|
-
const [currentDecisionMakerId, setCurrentDecisionMakerId] = useState();
|
|
2767
|
-
const { data: currentDecisionMaker } = useLegalEntity(currentDecisionMakerId ?? skipToken);
|
|
2768
|
-
const associatedLegalRepresentative = useAssociatedLegalRepresentative(rootLegalEntity);
|
|
2769
|
-
const [targetLegalEntityType, setTargetLegalEntityType] = useState();
|
|
2770
|
-
const legacyNavigateTo = (task, _params) => navigateTo(task);
|
|
2771
|
-
const {
|
|
2772
|
-
trustMember,
|
|
2773
|
-
trustMemberId,
|
|
2774
|
-
onNavigateToTrust,
|
|
2775
|
-
onNavigateToTrustMemberRoleAndType,
|
|
2776
|
-
onNavigateToTrustMemberEditDetails
|
|
2777
|
-
} = useTrustMemberNavigation({
|
|
2778
|
-
trust,
|
|
2779
|
-
navigateTo: legacyNavigateTo
|
|
2780
|
-
});
|
|
2781
|
-
const {
|
|
2782
|
-
onNavigateToMember,
|
|
2783
|
-
activeMember: unincorporatedPartnershipMember,
|
|
2784
|
-
setActiveMember
|
|
2785
|
-
} = useUnincorporatedPartnershipNavigation({
|
|
2786
|
-
navigateTo: legacyNavigateTo
|
|
2787
|
-
});
|
|
2788
|
-
const handleSingpassSelectionNextClick = async (method) => {
|
|
2789
|
-
if (method === "singpass") {
|
|
2790
|
-
try {
|
|
2791
|
-
const authUrl = await handleInitiateSingpassMyInfoLogin();
|
|
2792
|
-
if (!authUrl) {
|
|
2793
|
-
throw new Error("OpenId authentication url not");
|
|
2794
|
-
}
|
|
2795
|
-
setHasSeenSingpassSelection(true);
|
|
2796
|
-
singpassTabRef.current = window.open(authUrl, "_blank");
|
|
2797
|
-
singpassTabRef.current?.focus();
|
|
2798
|
-
} catch (e) {
|
|
2799
|
-
logger.error(e);
|
|
2800
|
-
if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
|
|
2801
|
-
}
|
|
2802
|
-
}
|
|
2803
|
-
if (method === "manual") {
|
|
2804
|
-
setHasSeenSingpassSelection(true);
|
|
2805
|
-
}
|
|
2806
|
-
navigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
2807
|
-
};
|
|
2808
|
-
const onNavigateToDecisionMakerIndividual = async (task, id, parentId2) => {
|
|
2809
|
-
setParentId(parentId2 ?? rootLegalEntity.id);
|
|
2810
|
-
setCurrentDecisionMakerId(id);
|
|
2811
|
-
navigateTo(task);
|
|
2812
|
-
};
|
|
2813
|
-
const onNavigateToPayinOrPayout = async (id, task = TaskTypes.PAYOUT) => {
|
|
2814
|
-
if (id) {
|
|
2815
|
-
try {
|
|
2816
|
-
setCurrentTransferInstrumentId(id);
|
|
2817
|
-
} finally {
|
|
2818
|
-
navigateTo(task);
|
|
2819
|
-
}
|
|
2820
|
-
} else {
|
|
2821
|
-
setCurrentTransferInstrumentId(void 0);
|
|
2822
|
-
navigateTo(task);
|
|
2823
|
-
}
|
|
2824
|
-
};
|
|
2825
|
-
const onNavigateToTask = async (task, id) => {
|
|
2826
|
-
switch (task) {
|
|
2827
|
-
case TaskTypes.PAYOUT:
|
|
2828
|
-
await onNavigateToPayinOrPayout(id, TaskTypes.PAYOUT);
|
|
2829
|
-
break;
|
|
2830
|
-
case TaskTypes.PAYIN:
|
|
2831
|
-
await onNavigateToPayinOrPayout(id, TaskTypes.PAYIN);
|
|
2832
|
-
break;
|
|
2833
|
-
case TaskTypes.TRUST: {
|
|
2834
|
-
await onNavigateToTrust();
|
|
2835
|
-
break;
|
|
2836
|
-
}
|
|
2837
|
-
case TaskTypes.TRUST_MEMBER_OVERVIEW: {
|
|
2838
|
-
await onNavigateToTrust(TaskTypes.TRUST_MEMBER_OVERVIEW);
|
|
2839
|
-
break;
|
|
2840
|
-
}
|
|
2841
|
-
case TaskTypes.SOLE_PROPRIETOR_COMPANY: {
|
|
2842
|
-
await navigateTo(TaskTypes.SOLE_PROPRIETOR_COMPANY);
|
|
2843
|
-
break;
|
|
2844
|
-
}
|
|
2845
|
-
default:
|
|
2846
|
-
navigateTo(task);
|
|
2847
|
-
}
|
|
2848
|
-
};
|
|
2849
|
-
const handleOnSubmit = async (data, backStepCount) => {
|
|
2850
|
-
onSubmit?.(data);
|
|
2851
|
-
await refetchLegalEntity();
|
|
2852
|
-
navigateBack(backStepCount);
|
|
2853
|
-
};
|
|
2854
|
-
const isJourneyInitializedRef = useRef(false);
|
|
2855
|
-
if (!isJourneyInitializedRef.current) {
|
|
2856
|
-
userEvents.addJourneyEvent("Landed on page", { actionType: "start" });
|
|
2857
|
-
isJourneyInitializedRef.current = true;
|
|
2858
|
-
}
|
|
2859
|
-
useTaskLandedEvent(currentTask);
|
|
2860
|
-
useEffect(() => {
|
|
2861
|
-
if (hasRejectedCapabilities(rootLegalEntity)) {
|
|
2862
|
-
navigateTo(TaskTypes.CAPABILITY_REJECTED, true);
|
|
2863
|
-
}
|
|
2864
|
-
}, [rootLegalEntity]);
|
|
2865
|
-
useEffect(() => {
|
|
2866
|
-
const newAccountHolder = getDefaultAccountHolderType(rootLegalEntity, false, accountHolder);
|
|
2867
|
-
if (newAccountHolder !== accountHolder) setAccountHolder(newAccountHolder);
|
|
2868
|
-
}, [accountHolder, rootLegalEntity]);
|
|
2869
|
-
useEffect(() => setAccountHolderInGlobalStore(accountHolder), [accountHolder]);
|
|
2870
|
-
const { rootLegalEntityId } = useApiContext();
|
|
2871
|
-
const { data: toggleData } = useToggles();
|
|
2872
|
-
rootLegalEntityId.value = rootLegalEntity.id;
|
|
2873
|
-
useEffect(() => {
|
|
2874
|
-
let activeExperiments;
|
|
2875
|
-
if (features.EnableOnboardingTogglesEndpoint) {
|
|
2876
|
-
activeExperiments = Object.keys(toggleData?.experiments || {});
|
|
2877
|
-
} else {
|
|
2878
|
-
activeExperiments = Object.entries(features).filter(([key, value]) => key.includes("_") && value).map(([key]) => key);
|
|
2879
|
-
}
|
|
2880
|
-
activeExperiments.forEach((experiment) => {
|
|
2881
|
-
const [name, variant] = experiment.split("_");
|
|
2882
|
-
userEvents.trackExperiment({ name, variant });
|
|
2883
|
-
});
|
|
2884
|
-
}, [features, toggleData?.experiments, userEvents]);
|
|
2885
|
-
const singpassBanner = isEligibleForSingpass ? /* @__PURE__ */ jsx(
|
|
2886
|
-
SingpassBanner,
|
|
2887
|
-
{
|
|
2888
|
-
...singpassLoginState,
|
|
2889
|
-
onAlertClose: () => {
|
|
2890
|
-
handleSingpassMyInfoLoginReset();
|
|
2891
|
-
},
|
|
2892
|
-
onClick: async () => {
|
|
2893
|
-
try {
|
|
2894
|
-
const authUrl = await handleInitiateSingpassMyInfoLogin();
|
|
2895
|
-
singpassTabRef.current = window.open(authUrl);
|
|
2896
|
-
singpassTabRef.current?.focus();
|
|
2897
|
-
} catch (e) {
|
|
2898
|
-
logger.error(e);
|
|
2899
|
-
if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
|
|
2900
|
-
}
|
|
2901
|
-
},
|
|
2902
|
-
onMessage: async ({ data: { isSuccessful } }) => {
|
|
2903
|
-
if (isSuccessful) {
|
|
2904
|
-
handleSingpassMyInfoLoginSuccess();
|
|
2905
|
-
await refetchLegalEntity();
|
|
2906
|
-
singpassTabRef.current?.close();
|
|
2907
|
-
} else {
|
|
2908
|
-
handleSingpassMyInfoLoginFailure(
|
|
2909
|
-
legalEntityResponse.type === LegalEntityTypes.INDIVIDUAL ? "weCouldntConnectToMyinfo" : "weCouldntConnectToMyinfoBusiness"
|
|
2910
|
-
);
|
|
2911
|
-
}
|
|
2912
|
-
},
|
|
2913
|
-
legalEntityType: legalEntityResponse?.type
|
|
2914
|
-
}
|
|
2915
|
-
) : void 0;
|
|
2916
|
-
if (isLoadingConfiguration) {
|
|
2917
|
-
return /* @__PURE__ */ jsx(Skeleton, {});
|
|
2918
|
-
}
|
|
2919
|
-
switch (currentTask) {
|
|
2920
|
-
case TaskTypes.BUSINESS_TYPE_SELECTION:
|
|
2921
|
-
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-display-flex adyen-kyc-u-justify-content-center", children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
2922
|
-
BusinessTypeSelectionPage,
|
|
2923
|
-
{
|
|
2924
|
-
onComplete: async (newAccountHolder) => {
|
|
2925
|
-
setAccountHolder(newAccountHolder);
|
|
2926
|
-
setCanSeeEntitySelection(false);
|
|
2927
|
-
await refetchLegalEntity();
|
|
2928
|
-
navigateTo("default");
|
|
2929
|
-
},
|
|
2930
|
-
onBack: previousTask ? navigateBack : void 0
|
|
2931
|
-
}
|
|
2932
|
-
) }) });
|
|
2933
|
-
case TaskTypes.SINGPASS_SELECTION:
|
|
2934
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
2935
|
-
SingpassSelection,
|
|
2936
|
-
{
|
|
2937
|
-
handleNextClick: handleSingpassSelectionNextClick,
|
|
2938
|
-
accountHolder,
|
|
2939
|
-
legalEntityType: rootLegalEntity.type
|
|
2940
|
-
}
|
|
2941
|
-
) });
|
|
2942
|
-
case TaskTypes.INTRODUCTION:
|
|
2943
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
2944
|
-
Introduction,
|
|
2945
|
-
{
|
|
2946
|
-
onExitIntroduction: () => {
|
|
2947
|
-
setHasSeenIntroduction(true);
|
|
2948
|
-
navigateTo("default");
|
|
2949
|
-
},
|
|
2950
|
-
tasks: taskTypes
|
|
2951
|
-
}
|
|
2952
|
-
) });
|
|
2953
|
-
case TaskTypes.CAPABILITY_REJECTED:
|
|
2954
|
-
return /* @__PURE__ */ jsxs(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: [
|
|
2955
|
-
/* @__PURE__ */ jsx(AccountSetupRejected, {}),
|
|
2956
|
-
";"
|
|
2957
|
-
] });
|
|
2958
|
-
case TaskTypes.TASKS_OVERVIEW:
|
|
2959
|
-
return /* @__PURE__ */ jsx(TaskList, { onNavigateToTask, singpassComponent: singpassBanner });
|
|
2960
|
-
case TaskTypes.DECISION_MAKER_OVERVIEW:
|
|
2961
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
2962
|
-
DecisionMakers,
|
|
2963
|
-
{
|
|
2964
|
-
onNavigateToIndividual: (legalEntityId) => onNavigateToDecisionMakerIndividual(TaskTypes.DECISION_MAKER, legalEntityId),
|
|
2965
|
-
navigateBackToTaskList: navigateBack
|
|
2966
|
-
}
|
|
2967
|
-
) });
|
|
2968
|
-
case TaskTypes.INDIVIDUAL:
|
|
2969
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
2970
|
-
RootIndividualDetailsPage,
|
|
2971
|
-
{
|
|
2972
|
-
onSubmit: async (data) => {
|
|
2973
|
-
onSubmit?.(data);
|
|
2974
|
-
await refetchLegalEntity();
|
|
2975
|
-
navigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
2976
|
-
setTargetLegalEntityType(void 0);
|
|
2977
|
-
},
|
|
2978
|
-
handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW),
|
|
2979
|
-
isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.INDIVIDUAL
|
|
2980
|
-
}
|
|
2981
|
-
) });
|
|
2982
|
-
case TaskTypes.CUSTOMER_SUPPORT:
|
|
2983
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
2984
|
-
CustomerSupport,
|
|
2985
|
-
{
|
|
2986
|
-
country: rootLegalEntityCountry,
|
|
2987
|
-
onSubmit: () => navigateTo(TaskTypes.TASKS_OVERVIEW)
|
|
2988
|
-
}
|
|
2989
|
-
) });
|
|
2990
|
-
case TaskTypes.REVIEW:
|
|
2991
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(Review, { handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW) }) });
|
|
2992
|
-
case TaskTypes.DECISION_MAKER:
|
|
2993
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
2994
|
-
DecisionMakerDetailsPage,
|
|
2995
|
-
{
|
|
2996
|
-
decisionMakerId: currentDecisionMaker?.id,
|
|
2997
|
-
parentCompanyId: parentId,
|
|
2998
|
-
onSubmit: async (data, scenario) => {
|
|
2999
|
-
onSubmit?.(data);
|
|
3000
|
-
await refetchLegalEntity();
|
|
3001
|
-
if (isBafinSignatoryFlow({
|
|
3002
|
-
taskType: TaskTypes.DECISION_MAKER,
|
|
3003
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3004
|
-
// @ts-ignore basicDetails will be there when it's IndividualSchema
|
|
3005
|
-
data,
|
|
3006
|
-
scenarios: scenario
|
|
3007
|
-
})) {
|
|
3008
|
-
showIdNowModal.value = true;
|
|
3009
|
-
idNowPostSubmit.value = true;
|
|
3010
|
-
} else {
|
|
3011
|
-
navigateBack();
|
|
3012
|
-
}
|
|
3013
|
-
},
|
|
3014
|
-
handleHomeClick: navigateBack
|
|
3015
|
-
}
|
|
3016
|
-
) });
|
|
3017
|
-
case TaskTypes.TRUST_MEMBER_COMPANY_OWNER:
|
|
3018
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3019
|
-
DecisionMakerDetailsPage,
|
|
3020
|
-
{
|
|
3021
|
-
taskType: TaskTypes.TRUST_MEMBER_COMPANY_OWNER,
|
|
3022
|
-
parentCompanyId: parentId,
|
|
3023
|
-
decisionMakerId: currentDecisionMakerId,
|
|
3024
|
-
onSubmit: async (data) => {
|
|
3025
|
-
await handleOnSubmit(data);
|
|
3026
|
-
await refetchTrust();
|
|
3027
|
-
},
|
|
3028
|
-
handleHomeClick: navigateBack
|
|
3029
|
-
}
|
|
3030
|
-
) });
|
|
3031
|
-
case TaskTypes.TRUST_MEMBER_INDIVIDUAL:
|
|
3032
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3033
|
-
TrustMemberIndividualPage,
|
|
3034
|
-
{
|
|
3035
|
-
memberId: trustMemberId,
|
|
3036
|
-
trustId: trust.id,
|
|
3037
|
-
newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
|
|
3038
|
-
onSubmit: async (data) => {
|
|
3039
|
-
await handleOnSubmit(data, 2);
|
|
3040
|
-
await refetchTrust();
|
|
3041
|
-
},
|
|
3042
|
-
handleBackClick: navigateBack,
|
|
3043
|
-
handleHomeClick: () => navigateTo(TaskTypes.TRUST_MEMBER_OVERVIEW)
|
|
3044
|
-
}
|
|
3045
|
-
) });
|
|
3046
|
-
case TaskTypes.TRUST_MEMBER_COMPANY:
|
|
3047
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3048
|
-
TrustMemberCompanyPage,
|
|
3049
|
-
{
|
|
3050
|
-
trustId: trust.id,
|
|
3051
|
-
trustMemberCompanyId: trustMemberId,
|
|
3052
|
-
newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
|
|
3053
|
-
onSubmit: async (data) => {
|
|
3054
|
-
await handleOnSubmit(data, 2);
|
|
3055
|
-
await refetchTrust();
|
|
3056
|
-
},
|
|
3057
|
-
handleHomeClick: navigateBack
|
|
3058
|
-
}
|
|
3059
|
-
) });
|
|
3060
|
-
case TaskTypes.BUSINESS_DETAILS:
|
|
3061
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3062
|
-
RootBusinessDetailsPage,
|
|
3063
|
-
{
|
|
3064
|
-
onSubmit: async (data) => {
|
|
3065
|
-
onSubmit?.(data);
|
|
3066
|
-
await refetchLegalEntity();
|
|
3067
|
-
navigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
3068
|
-
setTargetLegalEntityType(void 0);
|
|
3069
|
-
},
|
|
3070
|
-
handleHomeClick: navigateBack,
|
|
3071
|
-
isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.ORGANIZATION
|
|
3072
|
-
}
|
|
3073
|
-
) });
|
|
3074
|
-
case TaskTypes.PAYOUT:
|
|
3075
|
-
case TaskTypes.PAYIN:
|
|
3076
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3077
|
-
PayoutDetailsPage,
|
|
3078
|
-
{
|
|
3079
|
-
taskType: currentTask,
|
|
3080
|
-
transferInstrumentId: currentTransferInstrumentId,
|
|
3081
|
-
setTransferInstrumentId: setCurrentTransferInstrumentId,
|
|
3082
|
-
handleHomeClick: navigateBack,
|
|
3083
|
-
openBankingPartnerConfigId,
|
|
3084
|
-
onSubmit: handleOnSubmit
|
|
3085
|
-
}
|
|
3086
|
-
) });
|
|
3087
|
-
case TaskTypes.TRUST:
|
|
3088
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3089
|
-
TrustDetailsPage,
|
|
3090
|
-
{
|
|
3091
|
-
taskType: TaskTypes.TRUST,
|
|
3092
|
-
trustId: trust?.id,
|
|
3093
|
-
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
3094
|
-
handleHomeClick: navigateBack
|
|
3095
|
-
}
|
|
3096
|
-
) });
|
|
3097
|
-
case TaskTypes.TRUST_MEMBER_OVERVIEW:
|
|
3098
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3099
|
-
TrustMembersOverview,
|
|
3100
|
-
{
|
|
3101
|
-
navigateBackToTaskList: navigateBack,
|
|
3102
|
-
navigateToEditTrustMember: onNavigateToTrustMemberRoleAndType,
|
|
3103
|
-
navigateToEditTrustMemberOwner: (trustMemberOwnerId, trustMemberId2) => onNavigateToDecisionMakerIndividual(
|
|
3104
|
-
TaskTypes.TRUST_MEMBER_COMPANY_OWNER,
|
|
3105
|
-
trustMemberOwnerId,
|
|
3106
|
-
trustMemberId2
|
|
3107
|
-
)
|
|
3108
|
-
}
|
|
3109
|
-
) });
|
|
3110
|
-
case TaskTypes.TRUST_MEMBER_ROLE_AND_TYPE:
|
|
3111
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3112
|
-
TrustMemberRoleAndTypePage,
|
|
3113
|
-
{
|
|
3114
|
-
trustId: trust.id,
|
|
3115
|
-
memberId: trustMemberId,
|
|
3116
|
-
navigateToFullDropinFor: onNavigateToTrustMemberEditDetails,
|
|
3117
|
-
navigateBack: async () => {
|
|
3118
|
-
await refetchTrust();
|
|
3119
|
-
navigateBack();
|
|
3120
|
-
}
|
|
3121
|
-
}
|
|
3122
|
-
) });
|
|
3123
|
-
case TaskTypes.UNINCORPORATED_PARTNERSHIP:
|
|
3124
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3125
|
-
TrustDetailsPage,
|
|
3126
|
-
{
|
|
3127
|
-
taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP,
|
|
3128
|
-
trustId: unincorporatedPartnership?.id,
|
|
3129
|
-
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
3130
|
-
handleHomeClick: navigateBack
|
|
3131
|
-
}
|
|
3132
|
-
) });
|
|
3133
|
-
case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW:
|
|
3134
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3135
|
-
UnincorporatedPartnershipMembersOverview,
|
|
3136
|
-
{
|
|
3137
|
-
navigateBackToTaskList: navigateBack,
|
|
3138
|
-
navigateToEditMember: (member) => onNavigateToMember({
|
|
3139
|
-
selectedMember: member,
|
|
3140
|
-
selectedEntityType: member?.legalEntityType,
|
|
3141
|
-
selectedRoles: member?.roles,
|
|
3142
|
-
roleAndType: true
|
|
3143
|
-
}),
|
|
3144
|
-
navigateToEditMemberOwner: (memberOwnerId, memberId) => {
|
|
3145
|
-
setActiveMember({ legalEntityId: memberId });
|
|
3146
|
-
onNavigateToDecisionMakerIndividual(
|
|
3147
|
-
TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER,
|
|
3148
|
-
memberOwnerId,
|
|
3149
|
-
memberId
|
|
3150
|
-
);
|
|
3151
|
-
}
|
|
3152
|
-
}
|
|
3153
|
-
) });
|
|
3154
|
-
case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY:
|
|
3155
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3156
|
-
UnincorporatedPartnershipMemberCompanyPage,
|
|
3157
|
-
{
|
|
3158
|
-
partnershipId: unincorporatedPartnership.id,
|
|
3159
|
-
partnershipMemberCompanyId: unincorporatedPartnershipMember?.legalEntityId,
|
|
3160
|
-
newMember: (
|
|
3161
|
-
// empty string for legalEntityId means it's a new member
|
|
3162
|
-
unincorporatedPartnershipMember?.legalEntityId === "" ? unincorporatedPartnershipMember : void 0
|
|
3163
|
-
),
|
|
3164
|
-
onSubmit: (data) => handleOnSubmit(data, 2),
|
|
3165
|
-
handleHomeClick: navigateBack
|
|
3166
|
-
}
|
|
3167
|
-
) });
|
|
3168
|
-
case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER:
|
|
3169
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3170
|
-
DecisionMakerDetailsPage,
|
|
3171
|
-
{
|
|
3172
|
-
taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER,
|
|
3173
|
-
parentCompanyId: unincorporatedPartnershipMember?.legalEntityId,
|
|
3174
|
-
decisionMakerId: currentDecisionMakerId,
|
|
3175
|
-
onSubmit: async (data) => {
|
|
3176
|
-
await handleOnSubmit(data);
|
|
3177
|
-
await refetchUnincorporatedPartnership();
|
|
3178
|
-
},
|
|
3179
|
-
handleHomeClick: navigateBack
|
|
3180
|
-
}
|
|
3181
|
-
) });
|
|
3182
|
-
case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL:
|
|
3183
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3184
|
-
UnincorporatedPartnershipIndividualPage,
|
|
3185
|
-
{
|
|
3186
|
-
memberId: unincorporatedPartnershipMember?.legalEntityId,
|
|
3187
|
-
partnershipId: unincorporatedPartnership.id,
|
|
3188
|
-
member: unincorporatedPartnershipMember,
|
|
3189
|
-
onSubmit: (data) => {
|
|
3190
|
-
handleOnSubmit(data, 2);
|
|
3191
|
-
refetchUnincorporatedPartnership();
|
|
3192
|
-
},
|
|
3193
|
-
handleBackClick: navigateBack,
|
|
3194
|
-
handleHomeClick: () => navigateTo(TaskTypes.TRUST_MEMBER_OVERVIEW)
|
|
3195
|
-
}
|
|
3196
|
-
) });
|
|
3197
|
-
case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE:
|
|
3198
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3199
|
-
UnincorporatedPartnershipMemberRoleAndTypePage,
|
|
3200
|
-
{
|
|
3201
|
-
memberId: unincorporatedPartnershipMember?.legalEntityId,
|
|
3202
|
-
onNavigateToMember,
|
|
3203
|
-
navigateBack: async () => {
|
|
3204
|
-
await refetchUnincorporatedPartnership();
|
|
3205
|
-
navigateBack();
|
|
3206
|
-
}
|
|
3207
|
-
}
|
|
3208
|
-
) });
|
|
3209
|
-
case TaskTypes.PCI_DSS:
|
|
3210
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(SignPCIComponent, { onClose: navigateBack }) });
|
|
3211
|
-
case TaskTypes.SOLE_PROPRIETOR_COMPANY:
|
|
3212
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3213
|
-
SoleProprietorshipPage,
|
|
3214
|
-
{
|
|
3215
|
-
solePropId: soleProp?.id,
|
|
3216
|
-
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
3217
|
-
handleHomeClick: navigateBack
|
|
3218
|
-
}
|
|
3219
|
-
) });
|
|
3220
|
-
case TaskTypes.SERVICE_AGREEMENT:
|
|
3221
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3222
|
-
AcceptTermsOfService,
|
|
3223
|
-
{
|
|
3224
|
-
legalEntityId: rootLegalEntity.id,
|
|
3225
|
-
onClose: () => {
|
|
3226
|
-
userEvents.addPageEvent("Clicked button", {
|
|
3227
|
-
actionType: "back",
|
|
3228
|
-
label: "back"
|
|
3229
|
-
});
|
|
3230
|
-
navigateBack();
|
|
3231
|
-
},
|
|
3232
|
-
asEmbedded: false,
|
|
3233
|
-
handleAddSigner: () => {
|
|
3234
|
-
onNavigateToDecisionMakerIndividual(TaskTypes.DECISION_MAKER);
|
|
3235
|
-
}
|
|
3236
|
-
}
|
|
3237
|
-
) });
|
|
3238
|
-
case TaskTypes.LEGAL_REPRESENTATIVE_DETAILS:
|
|
3239
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3240
|
-
LegalRepresentativeDetailsPage,
|
|
3241
|
-
{
|
|
3242
|
-
legalRepresentativeId: associatedLegalRepresentative?.id,
|
|
3243
|
-
onSubmit: handleOnSubmit,
|
|
3244
|
-
handleHomeClick: navigateBack
|
|
3245
|
-
}
|
|
3246
|
-
) });
|
|
3247
|
-
case TaskTypes.SOURCE_OF_FUNDS:
|
|
3248
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3249
|
-
SourceOfFundsPage,
|
|
3250
|
-
{
|
|
3251
|
-
onSubmit: handleOnSubmit,
|
|
3252
|
-
handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW)
|
|
3253
|
-
}
|
|
3254
|
-
) });
|
|
3255
|
-
case TaskTypes.BUSINESS_FINANCING:
|
|
3256
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3257
|
-
BusinessFinancingPage,
|
|
3258
|
-
{
|
|
3259
|
-
onSubmit: async (data) => {
|
|
3260
|
-
onSubmit?.(data);
|
|
3261
|
-
await refetchLegalEntity();
|
|
3262
|
-
navigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
3263
|
-
},
|
|
3264
|
-
handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW)
|
|
3265
|
-
}
|
|
3266
|
-
) });
|
|
3267
|
-
case TaskTypes.TAX_REPORTING:
|
|
3268
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(TaxReportingDropin, { handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW) }) });
|
|
3269
|
-
case TaskTypes.ACQUIRING_BUSINESS_LINE:
|
|
3270
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(RootBusinessLinesPage, { handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW) }) });
|
|
3271
|
-
default:
|
|
3272
|
-
return null;
|
|
3273
|
-
}
|
|
3274
|
-
}
|
|
3275
|
-
function OnboardingDropinComponent({
|
|
3276
|
-
legalEntityId,
|
|
3277
|
-
openBankingPartnerConfigId
|
|
3278
|
-
}) {
|
|
3279
|
-
if (!legalEntityId) {
|
|
3280
|
-
throw new Error("Must provide at-least legalEntityId");
|
|
3281
|
-
}
|
|
3282
|
-
const { i18n } = useTranslation();
|
|
3283
|
-
addResourceBundles(i18n, [
|
|
3284
|
-
{ ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-dmpv4Zom.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-6rOIfRJu.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-C_GqHCay.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-BmWBo3gX.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-Fo7-xCrc.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-CfIM2SRF.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-CApjzEDt.js").then((n) => n.bS), "../../../language/locales/es-ES.json": () => import("./es-ES-BkqlH093.js"), "../../../language/locales/et-EE.json": () => import("./et-EE-H8yxvhQj.js"), "../../../language/locales/fi-FI.json": () => import("./fi-FI-BfwJVwi9.js"), "../../../language/locales/fr-FR.json": () => import("./fr-FR-CzjsW73Q.js"), "../../../language/locales/hr-HR.json": () => import("./hr-HR-ZrpQrsik.js"), "../../../language/locales/hu-HU.json": () => import("./hu-HU-Ds3go4h4.js"), "../../../language/locales/it-IT.json": () => import("./it-IT-Dx15tkIe.js"), "../../../language/locales/ja-JP.json": () => import("./ja-JP-Qu7oEIEy.js"), "../../../language/locales/lt-LT.json": () => import("./lt-LT-BebOeKIA.js"), "../../../language/locales/lv-LV.json": () => import("./lv-LV-CYcrO-6d.js"), "../../../language/locales/nl-NL.json": () => import("./nl-NL-FbJ2sHba.js"), "../../../language/locales/no-NO.json": () => import("./no-NO-B5BjEy8n.js"), "../../../language/locales/pl-PL.json": () => import("./pl-PL-DuM6hbqZ.js"), "../../../language/locales/pt-BR.json": () => import("./pt-BR-BKKQIUJP.js"), "../../../language/locales/pt-PT.json": () => import("./pt-PT-CC7zlk3R.js"), "../../../language/locales/ro-RO.json": () => import("./ro-RO-CuabgXj1.js"), "../../../language/locales/sk-SK.json": () => import("./sk-SK-DM1yY8DA.js"), "../../../language/locales/sl-SI.json": () => import("./sl-SI--pDTatHh.js"), "../../../language/locales/sv-SE.json": () => import("./sv-SE-CDxyyNV0.js") }), `../../../language/locales/${lang}.json`, 6) },
|
|
3285
|
-
{ ns: "ui", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../ui/language/bg-BG.json": () => import("./bg-BG-zZhDshGi.js"), "../../ui/language/cs-CZ.json": () => import("./cs-CZ-Ck22NTT9.js"), "../../ui/language/da-DK.json": () => import("./da-DK-DQ4ZYSea.js"), "../../ui/language/de-DE.json": () => import("./de-DE-CkbOZ6S_.js"), "../../ui/language/el-GR.json": () => import("./el-GR-DudORw4U.js"), "../../ui/language/en-US.json": () => import("./en-US-B-qSAb-7.js"), "../../ui/language/es-ES.json": () => import("./es-ES-BAolMrZ0.js"), "../../ui/language/et-EE.json": () => import("./et-EE-BOIrYrz9.js"), "../../ui/language/fi-FI.json": () => import("./fi-FI-D8WrLxxq.js"), "../../ui/language/fr-FR.json": () => import("./fr-FR-Beljeilc.js"), "../../ui/language/hr-HR.json": () => import("./hr-HR-lIHN6Yl2.js"), "../../ui/language/hu-HU.json": () => import("./hu-HU-CWdwNCev.js"), "../../ui/language/it-IT.json": () => import("./it-IT-5a7NHVFo.js"), "../../ui/language/ja-JP.json": () => import("./ja-JP-DSvZhFNY.js"), "../../ui/language/lt-LT.json": () => import("./lt-LT-CgalYpUh.js"), "../../ui/language/lv-LV.json": () => import("./lv-LV-aAd9SEqx.js"), "../../ui/language/nl-NL.json": () => import("./nl-NL-CmURERx_.js"), "../../ui/language/no-NO.json": () => import("./no-NO-qyqWODMp.js"), "../../ui/language/pl-PL.json": () => import("./pl-PL-q9azN24o.js"), "../../ui/language/pt-BR.json": () => import("./pt-BR-BxoOF8jB.js"), "../../ui/language/pt-PT.json": () => import("./pt-PT-pIChDwiI.js"), "../../ui/language/ro-RO.json": () => import("./ro-RO-DRsaNX9j.js"), "../../ui/language/sk-SK.json": () => import("./sk-SK-7-enbO1N.js"), "../../ui/language/sl-SI.json": () => import("./sl-SI-DTvJT7fC.js"), "../../ui/language/sv-SE.json": () => import("./sv-SE-N-Hqwcjq.js") }), `../../ui/language/${lang}.json`, 5) }
|
|
3286
|
-
]);
|
|
3287
|
-
const { data: legalEntityData } = useLegalEntity(ROOT_LE);
|
|
3288
|
-
return !legalEntityData ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx(
|
|
3289
|
-
DropinComposer,
|
|
3290
|
-
{
|
|
3291
|
-
legalEntityResponse: legalEntityData,
|
|
3292
|
-
openBankingPartnerConfigId
|
|
3293
|
-
}
|
|
3294
|
-
);
|
|
3295
|
-
}
|
|
3296
|
-
export {
|
|
3297
|
-
OnboardingDropinComponent as O,
|
|
3298
|
-
usePciStatus as a,
|
|
3299
|
-
useCanSeeIntroduction as b,
|
|
3300
|
-
useLegalEntityType as c,
|
|
3301
|
-
allowIndividualWithoutSoleProp as d,
|
|
3302
|
-
useDataMissingRemediations as e,
|
|
3303
|
-
useNavigate as f,
|
|
3304
|
-
filterProblemsByTaskForms as g,
|
|
3305
|
-
useBusinessLines as h,
|
|
3306
|
-
usePciQuestionnaireList as i,
|
|
3307
|
-
useTrustMembers as j,
|
|
3308
|
-
isNewEntity as k,
|
|
3309
|
-
useSalesChannels as u
|
|
3310
|
-
};
|