@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,2167 +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] = "6dfb6038-c5c3-435c-891e-f9d2b719d333", e._sentryDebugIdIdentifier = "sentry-dbid-6dfb6038-c5c3-435c-891e-f9d2b719d333");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { ao as entriesOf, ah as objectsDeepEqual, az as reverseMapping, L as LegalEntityTypes, w as TaskTypes, a9 as CountryCodes, aL as hasText, aC as matchesRegex, aD as NO_ALPHABET_REGEX, aE as EMOJI_REGEX, aG as hasRepeatedCharacters, bg as isValidMinLength, aH as isInvalidName, bw as OTHER_ENTITIES_VALID_CHAR_REGEX, u as useTranslation, H as useToggleContext, aB as Header, C as Alert, N as Typography, bN as getCountrySpecificTrustTypeOptions, bO as trustComponentsKeyMapping, bP as trustApiKeyMapping, b as useApiContext, am as datasetUtilities, bQ as trustDocumentMapping, an as cloneObject, a8 as getLegalEntityCountry, ax as isEmpty$1, aY as drop, ac as getOwnEntityAssociations, P as useLegalEntity, a as addResourceBundles, aW as useCapabilities, E as EntityTypes, U as Loader, R as ROOT_LE, aT as keysOf, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-CApjzEDt.js";
|
|
11
|
-
import { jsx, Fragment, jsxs } from "preact/jsx-runtime";
|
|
12
|
-
import { skipToken } from "@tanstack/preact-query";
|
|
13
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-9hHARgoS.js";
|
|
14
|
-
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-I5B0dWUU.js";
|
|
15
|
-
import { useMemo, useCallback, useEffect, useState, useRef } from "preact/hooks";
|
|
16
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-CtGUDesz.js";
|
|
17
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-pCVJvMOY.js";
|
|
18
|
-
import { u as useGlobalDataSlice, c as useStateContext, F as FormWrapper } from "./useGlobalData-TnV6PIkt.js";
|
|
19
|
-
import { u as useToastContext } from "./useToastContext-DrlXuGmm.js";
|
|
20
|
-
import { g as getPropsFromConfigurations, a as augmentWithCountryConfigs, c as composePerScenarioFormConfigurations } from "./process-field-configurations-CMIDJACq.js";
|
|
21
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-C6SkIQLo.js";
|
|
22
|
-
import { m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-BOZ-beF3.js";
|
|
23
|
-
import { o as operationalAddressIsSameIds, D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, f as doingBusinessAsAbsentFieldMetadata, e as doingBusinessAsFieldMetadata, b as registrationNumberDefaultFieldMetadata, k as getDefaultRegistrationNumberType, c as registrationNumberDefaultFieldConfig, p as exemptFromRegistrationNumberDefaultFieldMetadata, q as exemptFromRegistrationNumberDefaultFieldConfig, d as defaultFieldMetadata, l as getDefaultVatNumberType, a as defaultFieldConfig, g as DBANameField, h as BusinessRegistrationNumberField, i as getRegistrationNumberHelperText, j as VatNumberField, r as registrationAddressFields, R as RegistrationAddress, M as MemoizedConstitutionalDocument, m as inferCompanyRegistrationNumberType, n as getCompanyRegistrationNumberOptions, s as operationalAddressIsSameItems } from "./ConstitutionalDocument-M10n8QHQ.js";
|
|
24
|
-
import { k as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, c as TAX_INFORMATION_FIELD, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, o as exemptedFromTaxDefaultFieldMetadata, p as exemptedFromTaxDefaultFieldConfig, T as TaxInformationField, g as getFieldsWithExistingData, f as countryToTaxInfoTypeMap } from "./TaxInformationField-ByQTgGxY.js";
|
|
25
|
-
import { m as mapAddressLabels } from "./utils-C0z7wmlu.js";
|
|
26
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-kYn_eC4r.js";
|
|
27
|
-
import { a as getDocument, c as createDocumentRequest, d as documentApiUtils } from "./validate-B1FpiTip.js";
|
|
28
|
-
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
29
|
-
import { f as formatObject, g as getProp } from "./utils-DNSfZiio.js";
|
|
30
|
-
import { c as createFormRules } from "./form-rules-DhbF2mY4.js";
|
|
31
|
-
import { U as UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL, a as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED, b as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL, c as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED, d as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL, A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-CMK2Gs1Z.js";
|
|
32
|
-
import { a as getFormProps, b as getNestedOuterFormPropsFromOuterFormProps } from "./getProps-Cc3J2-z9.js";
|
|
33
|
-
import { F as Field } from "./Field-DDqviWD6.js";
|
|
34
|
-
import { S as Select } from "./Select-D5a5aVFZ.js";
|
|
35
|
-
import { u as useForm } from "./useForm-BgHdSJLD.js";
|
|
36
|
-
import { E as ErrorPanel } from "./ErrorPanel-rmGb9PlE.js";
|
|
37
|
-
import { I as InputText } from "./InputText-BCi31wZB.js";
|
|
38
|
-
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-B0KnMSNK.js";
|
|
39
|
-
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-BVAIyFiB.js";
|
|
40
|
-
import { i as isEmpty } from "./isEmpty-BcLvy0xw.js";
|
|
41
|
-
import { a as validateNotEmptyOnBlur } from "./patternValidators-a6VZDG0x.js";
|
|
42
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-CS1RRaOG.js";
|
|
43
|
-
import { u as useMultiForm } from "./useMultiForm-D_RXm-EH.js";
|
|
44
|
-
import "preact";
|
|
45
|
-
import "classnames";
|
|
46
|
-
import "named-slots";
|
|
47
|
-
import { R as RadioGroup } from "./RadioGroup-BOUo26G0.js";
|
|
48
|
-
import "./Radio-BMtxBpnn.js";
|
|
49
|
-
import "@preact/signals";
|
|
50
|
-
import { A as Address } from "./Address-CAzHDiil.js";
|
|
51
|
-
import { C as ContextGuidance } from "./ContextGuidance-DeSyT-K4.js";
|
|
52
|
-
const hasDataChanged = (initialData, currentData) => entriesOf(currentData ?? {}).some(([key, value]) => {
|
|
53
|
-
if (typeof value === "object") {
|
|
54
|
-
return !objectsDeepEqual(value, initialData?.[key]);
|
|
55
|
-
}
|
|
56
|
-
return value !== initialData?.[key];
|
|
57
|
-
});
|
|
58
|
-
const mapApiDocumentToTrustDocument = (entityId) => {
|
|
59
|
-
const constitutionalDocument = getDocument(entityId, "constitutionalDocument") || null;
|
|
60
|
-
return {
|
|
61
|
-
trustConstitutionalDocument: constitutionalDocument ? { constitutionalDocument: [mapExistingFile(getPageName(constitutionalDocument))] } : void 0
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
const unincorporatedPartnershipBaseMapping = {
|
|
65
|
-
"trustRegistrationDetails.trustType": "unincorporatedPartnership.type",
|
|
66
|
-
"trustRegistrationDetails.legalName": "unincorporatedPartnership.name",
|
|
67
|
-
"trustRegistrationDetails.doingBusinessAs": "unincorporatedPartnership.doingBusinessAs",
|
|
68
|
-
"trustRegistrationDetails.hasDoingBusinessAs": "unincorporatedPartnership.doingBusinessAsAbsent",
|
|
69
|
-
"trustRegistrationDetails.country": "unincorporatedPartnership.countryOfGoverningLaw",
|
|
70
|
-
"trustRegistrationDetails.registrationNumber": "unincorporatedPartnership.registrationNumber",
|
|
71
|
-
"trustRegistrationDetails.taxInformation": "unincorporatedPartnership.taxInformation",
|
|
72
|
-
"trustRegistrationDetails.vatNumber": "unincorporatedPartnership.vatNumber",
|
|
73
|
-
"trustRegistrationAddress.registrationAddress.city": "unincorporatedPartnership.registeredAddress.city",
|
|
74
|
-
"trustRegistrationAddress.registrationAddress.country": "unincorporatedPartnership.registeredAddress.country",
|
|
75
|
-
"trustRegistrationAddress.registrationAddress.postalCode": "unincorporatedPartnership.registeredAddress.postalCode",
|
|
76
|
-
"trustRegistrationAddress.registrationAddress.stateOrProvince": "unincorporatedPartnership.registeredAddress.stateOrProvince",
|
|
77
|
-
"trustRegistrationAddress.registrationAddress.address": "unincorporatedPartnership.registeredAddress.street",
|
|
78
|
-
"trustRegistrationAddress.registrationAddress.otherAddressInformation": "unincorporatedPartnership.registeredAddress.street2",
|
|
79
|
-
"trustRegistrationAddress.operationalAddress.city": "unincorporatedPartnership.principalPlaceOfBusiness.city",
|
|
80
|
-
"trustRegistrationAddress.operationalAddress.country": "unincorporatedPartnership.principalPlaceOfBusiness.country",
|
|
81
|
-
"trustRegistrationAddress.operationalAddress.postalCode": "unincorporatedPartnership.principalPlaceOfBusiness.postalCode",
|
|
82
|
-
"trustRegistrationAddress.operationalAddress.stateOrProvince": "unincorporatedPartnership.principalPlaceOfBusiness.stateOrProvince",
|
|
83
|
-
"trustRegistrationAddress.operationalAddress.address": "unincorporatedPartnership.principalPlaceOfBusiness.street",
|
|
84
|
-
"trustRegistrationAddress.operationalAddress.otherAddressInformation": "unincorporatedPartnership.principalPlaceOfBusiness.street2"
|
|
85
|
-
};
|
|
86
|
-
const unincorporatedPartnershipComponentsKeyMapping = {
|
|
87
|
-
"trustRegistrationDetails.exemptedFromVat": "unincorporatedPartnership.vatAbsenceReason",
|
|
88
|
-
...unincorporatedPartnershipBaseMapping
|
|
89
|
-
};
|
|
90
|
-
const unincorporatedPartnershipApiKeyMapping = {
|
|
91
|
-
...reverseMapping(unincorporatedPartnershipBaseMapping)
|
|
92
|
-
};
|
|
93
|
-
const mapLegalEntityToUnincorporatedPartnership = (legalEntity, isFeatureEnabled) => {
|
|
94
|
-
if (!legalEntity.unincorporatedPartnership)
|
|
95
|
-
throw new Error("LE missing unincorporatedPartnership field");
|
|
96
|
-
let trustCompData = formatObject(
|
|
97
|
-
legalEntity,
|
|
98
|
-
unincorporatedPartnershipComponentsKeyMapping
|
|
99
|
-
);
|
|
100
|
-
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
101
|
-
trustCompData.trustRegistrationDetails.country = legalEntity.unincorporatedPartnership.countryOfGoverningLaw;
|
|
102
|
-
if (legalEntity.unincorporatedPartnership.description) {
|
|
103
|
-
trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.unincorporatedPartnership.description;
|
|
104
|
-
}
|
|
105
|
-
if (legalEntity.unincorporatedPartnership.principalPlaceOfBusiness) {
|
|
106
|
-
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
107
|
-
} else {
|
|
108
|
-
if (!trustCompData.trustRegistrationAddress) {
|
|
109
|
-
trustCompData.trustRegistrationAddress = {};
|
|
110
|
-
}
|
|
111
|
-
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
|
|
112
|
-
}
|
|
113
|
-
if (legalEntity.unincorporatedPartnership.taxInformation?.length) {
|
|
114
|
-
const { country } = legalEntity.unincorporatedPartnership.registeredAddress;
|
|
115
|
-
const countryTaxInformation = legalEntity.unincorporatedPartnership.taxInformation.find(
|
|
116
|
-
(info) => info.country === country
|
|
117
|
-
);
|
|
118
|
-
if (countryTaxInformation?.type === "UEN") {
|
|
119
|
-
trustCompData.trustRegistrationDetails.isUen = true;
|
|
120
|
-
}
|
|
121
|
-
if (countryTaxInformation?.type === "GST") {
|
|
122
|
-
trustCompData.trustRegistrationDetails.isUen = false;
|
|
123
|
-
}
|
|
124
|
-
const taxNumberAbsent = countryTaxInformation?.numberAbsent;
|
|
125
|
-
if (taxNumberAbsent !== void 0) {
|
|
126
|
-
trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
if (legalEntity.documentDetails?.length) {
|
|
130
|
-
trustCompData = {
|
|
131
|
-
...trustCompData,
|
|
132
|
-
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
136
|
-
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
137
|
-
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.unincorporatedPartnership.doingBusinessAsAbsent;
|
|
138
|
-
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs)
|
|
139
|
-
delete legalEntity.unincorporatedPartnership.doingBusinessAs;
|
|
140
|
-
}
|
|
141
|
-
} else {
|
|
142
|
-
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs ? legalEntity.unincorporatedPartnership.doingBusinessAs !== legalEntity.unincorporatedPartnership.name : void 0;
|
|
143
|
-
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs;
|
|
144
|
-
}
|
|
145
|
-
return trustCompData;
|
|
146
|
-
};
|
|
147
|
-
const mapUnincorporatedPartnershipToLegalEntity = (data, isFeatureEnabled) => {
|
|
148
|
-
const requestObj = {
|
|
149
|
-
...formatObject(data, unincorporatedPartnershipApiKeyMapping)
|
|
150
|
-
};
|
|
151
|
-
if (!requestObj.unincorporatedPartnership) return requestObj;
|
|
152
|
-
if (requestObj.unincorporatedPartnership?.taxInformation?.[0]?.type === "GST") {
|
|
153
|
-
requestObj.unincorporatedPartnership.taxInformation[0].type = "UEN";
|
|
154
|
-
}
|
|
155
|
-
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
156
|
-
if (typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined") {
|
|
157
|
-
requestObj.unincorporatedPartnership.doingBusinessAsAbsent = !data.trustRegistrationDetails?.hasDoingBusinessAs;
|
|
158
|
-
}
|
|
159
|
-
} else {
|
|
160
|
-
requestObj.unincorporatedPartnership.doingBusinessAs = data.trustRegistrationDetails?.doingBusinessAs || data.trustRegistrationDetails?.legalName || "";
|
|
161
|
-
delete requestObj.unincorporatedPartnership.doingBusinessAsAbsent;
|
|
162
|
-
}
|
|
163
|
-
requestObj.type = LegalEntityTypes.UNINCORPORATED_PARTNERSHIP;
|
|
164
|
-
return requestObj;
|
|
165
|
-
};
|
|
166
|
-
const COUNTRIES_THAT_USE_REGISTRATION_NUMBER = [CountryCodes.NewZealand];
|
|
167
|
-
const rules = ({ data, country, taskType }) => createFormRules({
|
|
168
|
-
countryUsesTaxId: () => {
|
|
169
|
-
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
170
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED.includes(country)) {
|
|
171
|
-
return "REQUIRED";
|
|
172
|
-
}
|
|
173
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL.includes(country)) {
|
|
174
|
-
return "OPTIONAL";
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
if (country !== CountryCodes.NewZealand && COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) {
|
|
178
|
-
return "REQUIRED";
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
countryRequiresRegistrationNumberForTrust: () => {
|
|
182
|
-
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
183
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) {
|
|
184
|
-
return "REQUIRED";
|
|
185
|
-
}
|
|
186
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) {
|
|
187
|
-
return "OPTIONAL";
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) {
|
|
191
|
-
return "REQUIRED";
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
registrationNumberType: () => {
|
|
195
|
-
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
196
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) {
|
|
197
|
-
return "OPTIONAL";
|
|
198
|
-
}
|
|
199
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) {
|
|
200
|
-
return "OPTIONAL";
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) {
|
|
204
|
-
return "OPTIONAL";
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
countryUsesVatNumber: () => {
|
|
208
|
-
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
209
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL.includes(country)) {
|
|
210
|
-
return "OPTIONAL";
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
trustTypeHasDescription: () => {
|
|
215
|
-
if (data?.trustRegistrationDetails?.trustType === "charitableTrust") {
|
|
216
|
-
return "REQUIRED";
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
requireDoingBusinessAsName: () => {
|
|
220
|
-
return data?.trustRegistrationDetails?.hasDoingBusinessAs ? "REQUIRED" : void 0;
|
|
221
|
-
},
|
|
222
|
-
requiresTrustType: () => {
|
|
223
|
-
if (taskType === TaskTypes.TRUST) {
|
|
224
|
-
return "REQUIRED";
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
const trustRegistrationDetailsValidations = {
|
|
229
|
-
trustType: {
|
|
230
|
-
modes: ["blur"],
|
|
231
|
-
validate: (trustType) => !!trustType,
|
|
232
|
-
errorMessage: "fieldIsRequired"
|
|
233
|
-
},
|
|
234
|
-
country: {
|
|
235
|
-
modes: ["blur"],
|
|
236
|
-
validate: (country) => !!country,
|
|
237
|
-
errorMessage: "fieldIsRequired"
|
|
238
|
-
},
|
|
239
|
-
legalName: {
|
|
240
|
-
modes: ["blur"],
|
|
241
|
-
validate: (legalName) => !!legalName,
|
|
242
|
-
errorMessage: "fieldIsRequired"
|
|
243
|
-
},
|
|
244
|
-
objectOfTrust: {
|
|
245
|
-
modes: ["blur"],
|
|
246
|
-
validate: (objectOfTrust) => !!objectOfTrust,
|
|
247
|
-
errorMessage: "fieldIsRequired"
|
|
248
|
-
},
|
|
249
|
-
hasDoingBusinessAs: validateNotEmptyOnBlur,
|
|
250
|
-
doingBusinessAs: validateNotEmptyOnBlur
|
|
251
|
-
};
|
|
252
|
-
const trustRegistrationDetailsValidationsV4 = {
|
|
253
|
-
trustType: {
|
|
254
|
-
modes: ["blur"],
|
|
255
|
-
validate: (trustType) => !!trustType,
|
|
256
|
-
errorMessage: "fieldIsRequired"
|
|
257
|
-
},
|
|
258
|
-
country: {
|
|
259
|
-
modes: ["blur"],
|
|
260
|
-
validate: (country) => !!country,
|
|
261
|
-
errorMessage: "fieldIsRequired"
|
|
262
|
-
},
|
|
263
|
-
legalName: [
|
|
264
|
-
{
|
|
265
|
-
modes: ["blur"],
|
|
266
|
-
validate: hasText,
|
|
267
|
-
errorMessage: "fieldIsRequired"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
modes: ["blur"],
|
|
271
|
-
validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
|
|
272
|
-
errorMessage: "nameMustContainLetters"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
modes: ["blur"],
|
|
276
|
-
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
277
|
-
errorMessage: "checkForTypos"
|
|
278
|
-
}
|
|
279
|
-
],
|
|
280
|
-
objectOfTrust: {
|
|
281
|
-
modes: ["blur"],
|
|
282
|
-
validate: (objectOfTrust) => !!objectOfTrust,
|
|
283
|
-
errorMessage: "fieldIsRequired"
|
|
284
|
-
},
|
|
285
|
-
hasDoingBusinessAs: validateNotEmptyOnBlur,
|
|
286
|
-
doingBusinessAs: validateNotEmptyOnBlur
|
|
287
|
-
};
|
|
288
|
-
const trustRegistrationDetailsFields = [
|
|
289
|
-
"legalName",
|
|
290
|
-
...DBA_NAME_FIELD,
|
|
291
|
-
"country",
|
|
292
|
-
"trustType",
|
|
293
|
-
"objectOfTrust",
|
|
294
|
-
...TAX_INFORMATION_FIELD,
|
|
295
|
-
...BUSINESS_REGISTRATION_NUMBER_FIELD,
|
|
296
|
-
...VAT_NUMBER_FIELD
|
|
297
|
-
];
|
|
298
|
-
const ALLOWED_TRUST_COUNTRIES$1 = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
299
|
-
function TrustRegistrationDetails(props) {
|
|
300
|
-
let mergedProps = props;
|
|
301
|
-
const TRUST_REGISTRATION_DETAILS2 = mergedProps.id || trustForms$1.trustRegistrationDetails.formId;
|
|
302
|
-
const { t: commonT } = useTranslation("common");
|
|
303
|
-
const { t: trustT } = useTranslation("trust");
|
|
304
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
305
|
-
const { updateStateSlice, sliceData } = useGlobalDataSlice(TRUST_REGISTRATION_DETAILS2);
|
|
306
|
-
const isStrictNameAndAddressValidationEnabled = isFeatureEnabled(
|
|
307
|
-
"StrictNameAndAddressValidationV4"
|
|
308
|
-
);
|
|
309
|
-
const { taskType } = props;
|
|
310
|
-
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
311
|
-
const country = sliceData?.country ?? mergedProps.country;
|
|
312
|
-
const defaultData = useMemo(
|
|
313
|
-
() => ({ ...mergedProps.data, country }),
|
|
314
|
-
[country, mergedProps.data]
|
|
315
|
-
);
|
|
316
|
-
const requiredFields = isEmpty(mergedProps.requiredFields) ? trustRegistrationDetailsFields : mergedProps.requiredFields;
|
|
317
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
318
|
-
"hasDoingBusinessAs",
|
|
319
|
-
doingBusinessAsAbsentFieldMetadata,
|
|
320
|
-
mergedProps
|
|
321
|
-
);
|
|
322
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
323
|
-
"doingBusinessAs",
|
|
324
|
-
doingBusinessAsFieldMetadata,
|
|
325
|
-
mergedProps
|
|
326
|
-
);
|
|
327
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
328
|
-
"taxInformation",
|
|
329
|
-
resolveFieldMetadata(
|
|
330
|
-
taxInformationDefaultFieldConfig[country],
|
|
331
|
-
{
|
|
332
|
-
taxIdNumberType: sliceData?.taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
333
|
-
companyType: LegalEntityTypes.TRUST
|
|
334
|
-
},
|
|
335
|
-
taxInformationDefaultFieldMetadata
|
|
336
|
-
),
|
|
337
|
-
mergedProps
|
|
338
|
-
);
|
|
339
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
340
|
-
"exemptedFromTax",
|
|
341
|
-
resolveFieldMetadata(
|
|
342
|
-
exemptedFromTaxDefaultFieldConfig[country],
|
|
343
|
-
{},
|
|
344
|
-
exemptedFromTaxDefaultFieldMetadata
|
|
345
|
-
),
|
|
346
|
-
mergedProps
|
|
347
|
-
);
|
|
348
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
349
|
-
"registrationNumber",
|
|
350
|
-
resolveFieldMetadata(
|
|
351
|
-
registrationNumberDefaultFieldConfig[country],
|
|
352
|
-
{
|
|
353
|
-
companyType: LegalEntityTypes.TRUST,
|
|
354
|
-
registrationNumberType: sliceData?.registrationNumberType ?? getDefaultRegistrationNumberType(sliceData?.registrationNumber, country, "trust")
|
|
355
|
-
},
|
|
356
|
-
registrationNumberDefaultFieldMetadata
|
|
357
|
-
),
|
|
358
|
-
mergedProps
|
|
359
|
-
);
|
|
360
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
361
|
-
"exemptedFromRegistrationNumber",
|
|
362
|
-
resolveFieldMetadata(
|
|
363
|
-
exemptFromRegistrationNumberDefaultFieldConfig[country],
|
|
364
|
-
{},
|
|
365
|
-
exemptFromRegistrationNumberDefaultFieldMetadata
|
|
366
|
-
),
|
|
367
|
-
mergedProps
|
|
368
|
-
);
|
|
369
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
370
|
-
"vatNumber",
|
|
371
|
-
resolveFieldMetadata(
|
|
372
|
-
defaultFieldConfig[country],
|
|
373
|
-
{
|
|
374
|
-
vatNumberType: sliceData?.vatNumberType ?? getDefaultVatNumberType(sliceData?.vatNumber, country)
|
|
375
|
-
},
|
|
376
|
-
defaultFieldMetadata
|
|
377
|
-
),
|
|
378
|
-
mergedProps
|
|
379
|
-
);
|
|
380
|
-
mergedProps.validators = {
|
|
381
|
-
...mergedProps.validators,
|
|
382
|
-
legalName: isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4.legalName : trustRegistrationDetailsValidations.legalName
|
|
383
|
-
};
|
|
384
|
-
const getFormSchema = useCallback(
|
|
385
|
-
(currentData) => {
|
|
386
|
-
const fieldsToRemove = [];
|
|
387
|
-
if (!currentData.hasDoingBusinessAs) {
|
|
388
|
-
fieldsToRemove.push("doingBusinessAs");
|
|
389
|
-
}
|
|
390
|
-
return requiredFields.filter((field) => !fieldsToRemove.includes(field));
|
|
391
|
-
},
|
|
392
|
-
[requiredFields]
|
|
393
|
-
);
|
|
394
|
-
const { handleChangeFor, data, valid, errors, setData, fieldProblems, schema } = useForm({
|
|
395
|
-
...mergedProps,
|
|
396
|
-
schema: getFormSchema,
|
|
397
|
-
defaultData,
|
|
398
|
-
rules: mergedProps.validators || (isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4 : trustRegistrationDetailsValidations),
|
|
399
|
-
fieldProblems: mergedProps.fieldValidationErrors
|
|
400
|
-
});
|
|
401
|
-
const formUtils = createFormUtils(
|
|
402
|
-
{
|
|
403
|
-
...mergedProps,
|
|
404
|
-
requiredFields,
|
|
405
|
-
fieldValidationErrors: mergedProps.fieldValidationErrors,
|
|
406
|
-
formVerificationErrors: mergedProps.formVerificationErrors
|
|
407
|
-
},
|
|
408
|
-
commonT
|
|
409
|
-
);
|
|
410
|
-
useEffect(() => {
|
|
411
|
-
updateStateSlice({
|
|
412
|
-
schema,
|
|
413
|
-
data,
|
|
414
|
-
errors,
|
|
415
|
-
valid,
|
|
416
|
-
fieldProblems
|
|
417
|
-
});
|
|
418
|
-
}, [data, errors, fieldProblems, schema, updateStateSlice, valid]);
|
|
419
|
-
const changeTrustType = (e) => {
|
|
420
|
-
handleChangeFor("trustType", "blur")(e);
|
|
421
|
-
if (e.target.value !== "charitableTrust") {
|
|
422
|
-
setData("objectOfTrust", void 0);
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
const trustTypeOptions = getCountrySpecificTrustTypeOptions(country) ?? [];
|
|
426
|
-
const showField = (field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field);
|
|
427
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("form", { id: TRUST_REGISTRATION_DETAILS2, className: "adyen-kyc-trust__registration-details", children: [
|
|
428
|
-
mergedProps.heading && /* @__PURE__ */ jsx(Header, { title: mergedProps.heading }),
|
|
429
|
-
/* @__PURE__ */ jsx(
|
|
430
|
-
ErrorPanel,
|
|
431
|
-
{
|
|
432
|
-
verificationErrors: mergedProps.formVerificationErrors,
|
|
433
|
-
validationErrors: mergedProps.fieldValidationErrors,
|
|
434
|
-
formUtils,
|
|
435
|
-
id: "ariaErrorField"
|
|
436
|
-
}
|
|
437
|
-
),
|
|
438
|
-
!isUnincorporatedPartnership && /* @__PURE__ */ jsx(
|
|
439
|
-
Alert,
|
|
440
|
-
{
|
|
441
|
-
variant: "info",
|
|
442
|
-
title: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "secondary", children: trustT(($) => $["makeSureToHaveYourTrustDeed"]) }),
|
|
443
|
-
className: "adyen-kyc-u-margin-bottom-16"
|
|
444
|
-
}
|
|
445
|
-
),
|
|
446
|
-
formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(
|
|
447
|
-
CountryField,
|
|
448
|
-
{
|
|
449
|
-
data: formUtils.getFieldData(data, COUNTRY_FIELD),
|
|
450
|
-
valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
|
|
451
|
-
errors: formUtils.getFieldErrors(errors, fieldProblems, COUNTRY_FIELD),
|
|
452
|
-
labels: formUtils.getFieldLabels(COUNTRY_FIELD, {
|
|
453
|
-
country: "countryRegionOfEstablishment"
|
|
454
|
-
}),
|
|
455
|
-
readonly: formUtils.isReadOnly("country"),
|
|
456
|
-
allowedCountries: isUnincorporatedPartnership ? ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES : ALLOWED_TRUST_COUNTRIES$1,
|
|
457
|
-
handleChangeFor: () => (e) => {
|
|
458
|
-
handleChangeFor("country", "input")(e);
|
|
459
|
-
if (mergedProps.onCountryChange) mergedProps.onCountryChange(e);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
),
|
|
463
|
-
formUtils.isRequiredField("legalName") && /* @__PURE__ */ jsx(
|
|
464
|
-
Field,
|
|
465
|
-
{
|
|
466
|
-
name: "legalName",
|
|
467
|
-
label: formUtils.getLabel(
|
|
468
|
-
!isUnincorporatedPartnership ? "nameOfTrustAgreement" : "legalName"
|
|
469
|
-
),
|
|
470
|
-
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldProblems),
|
|
471
|
-
isValid: valid.legalName,
|
|
472
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
473
|
-
InputText,
|
|
474
|
-
{
|
|
475
|
-
...childProps,
|
|
476
|
-
name: "legalName",
|
|
477
|
-
value: data.legalName,
|
|
478
|
-
readonly: formUtils.isReadOnly("legalName"),
|
|
479
|
-
onInput: handleChangeFor("legalName", "input"),
|
|
480
|
-
onBlur: handleChangeFor("legalName", "blur"),
|
|
481
|
-
"aria-required": true,
|
|
482
|
-
"aria-invalid": !valid.legalName
|
|
483
|
-
}
|
|
484
|
-
)
|
|
485
|
-
}
|
|
486
|
-
),
|
|
487
|
-
formUtils.isRequiredField("hasDoingBusinessAs") && /* @__PURE__ */ jsx(
|
|
488
|
-
DBANameField,
|
|
489
|
-
{
|
|
490
|
-
data: formUtils.getFieldData(data, DBA_NAME_FIELD),
|
|
491
|
-
valid: formUtils.getFieldValid(valid, DBA_NAME_FIELD),
|
|
492
|
-
errors: formUtils.getFieldErrors(errors, fieldProblems, DBA_NAME_FIELD),
|
|
493
|
-
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
494
|
-
handleChangeFor
|
|
495
|
-
}
|
|
496
|
-
),
|
|
497
|
-
formUtils.isRequiredField("trustType") && !isUnincorporatedPartnership && /* @__PURE__ */ jsx(
|
|
498
|
-
Field,
|
|
499
|
-
{
|
|
500
|
-
name: "trustType",
|
|
501
|
-
label: formUtils.getLabel("trustType", "typeOfTrustAgreement"),
|
|
502
|
-
errorMessage: formUtils.getErrorMessage("trustType", errors, fieldProblems),
|
|
503
|
-
isValid: valid.trustType,
|
|
504
|
-
dataTestId: "trust-type",
|
|
505
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
506
|
-
Select,
|
|
507
|
-
{
|
|
508
|
-
...childProps,
|
|
509
|
-
name: "trustType",
|
|
510
|
-
onChange: changeTrustType,
|
|
511
|
-
selected: data.trustType,
|
|
512
|
-
items: trustTypeOptions.map((trust) => ({
|
|
513
|
-
id: trust,
|
|
514
|
-
name: trustT(($) => $[trust])
|
|
515
|
-
})),
|
|
516
|
-
placeholder: trustT(($) => $["trustType"])
|
|
517
|
-
}
|
|
518
|
-
)
|
|
519
|
-
}
|
|
520
|
-
),
|
|
521
|
-
formUtils.isRequiredField("objectOfTrust") && /* @__PURE__ */ jsx(
|
|
522
|
-
Field,
|
|
523
|
-
{
|
|
524
|
-
name: "objectOfTrust",
|
|
525
|
-
label: formUtils.getLabel("objectOfCharitableTrust"),
|
|
526
|
-
helper: formUtils.getLabel("pleaseProvideThePurposeOfCharitableTrust"),
|
|
527
|
-
errorMessage: formUtils.getErrorMessage("objectOfTrust", errors, fieldProblems),
|
|
528
|
-
isValid: valid.objectOfTrust,
|
|
529
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
530
|
-
InputText,
|
|
531
|
-
{
|
|
532
|
-
...childProps,
|
|
533
|
-
name: "objectOfTrust",
|
|
534
|
-
value: data.objectOfTrust,
|
|
535
|
-
readonly: formUtils.isReadOnly("objectOfTrust"),
|
|
536
|
-
onInput: handleChangeFor("objectOfTrust", "input"),
|
|
537
|
-
onBlur: handleChangeFor("objectOfTrust", "blur"),
|
|
538
|
-
"aria-required": true,
|
|
539
|
-
"aria-invalid": !valid.objectOfTrust
|
|
540
|
-
}
|
|
541
|
-
)
|
|
542
|
-
}
|
|
543
|
-
),
|
|
544
|
-
showField("taxInformation") && /* @__PURE__ */ jsx(
|
|
545
|
-
TaxInformationField,
|
|
546
|
-
{
|
|
547
|
-
data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
|
|
548
|
-
valid: formUtils.getFieldValid(valid, TAX_INFORMATION_FIELD),
|
|
549
|
-
errors: formUtils.getFieldErrors(errors, fieldProblems, TAX_INFORMATION_FIELD),
|
|
550
|
-
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, {
|
|
551
|
-
exemptedFromTax: "iDontHaveATaxId"
|
|
552
|
-
}),
|
|
553
|
-
mask: formUtils.getMask("taxInformation"),
|
|
554
|
-
readonly: formUtils.isReadOnly("taxInformation"),
|
|
555
|
-
shouldValidate: mergedProps.shouldValidate,
|
|
556
|
-
handleChangeFor,
|
|
557
|
-
optional: formUtils.isOptionalField("taxInformation"),
|
|
558
|
-
canExempt: formUtils.isRequiredField("exemptedFromTax"),
|
|
559
|
-
country,
|
|
560
|
-
entityType: LegalEntityTypes.TRUST,
|
|
561
|
-
defaultData: mergedProps.data?.taxInformation,
|
|
562
|
-
registrationNumber: data.registrationNumber
|
|
563
|
-
}
|
|
564
|
-
),
|
|
565
|
-
showField("registrationNumber") && /* @__PURE__ */ jsx(
|
|
566
|
-
BusinessRegistrationNumberField,
|
|
567
|
-
{
|
|
568
|
-
data: formUtils.getFieldData(data, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
569
|
-
valid: formUtils.getFieldValid(valid, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
570
|
-
errors: formUtils.getFieldErrors(
|
|
571
|
-
errors,
|
|
572
|
-
fieldProblems,
|
|
573
|
-
BUSINESS_REGISTRATION_NUMBER_FIELD
|
|
574
|
-
),
|
|
575
|
-
labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, {
|
|
576
|
-
exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber"
|
|
577
|
-
}),
|
|
578
|
-
mask: formUtils.getMask("registrationNumber"),
|
|
579
|
-
helperText: getRegistrationNumberHelperText(trustT, {
|
|
580
|
-
country,
|
|
581
|
-
companyType: LegalEntityTypes.TRUST
|
|
582
|
-
}),
|
|
583
|
-
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
584
|
-
optional: formUtils.isOptionalField("registrationNumber"),
|
|
585
|
-
shouldValidate: mergedProps.shouldValidate,
|
|
586
|
-
handleChangeFor,
|
|
587
|
-
country,
|
|
588
|
-
canExempt: formUtils.isRequiredField("exemptedFromRegistrationNumber"),
|
|
589
|
-
companyType: LegalEntityTypes.TRUST
|
|
590
|
-
}
|
|
591
|
-
),
|
|
592
|
-
showField("vatNumber") && /* @__PURE__ */ jsx(
|
|
593
|
-
VatNumberField,
|
|
594
|
-
{
|
|
595
|
-
data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
|
|
596
|
-
valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
|
|
597
|
-
errors: formUtils.getFieldErrors(errors, fieldProblems, VAT_NUMBER_FIELD),
|
|
598
|
-
labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, {
|
|
599
|
-
exemptedFromVat: "iDontHaveAVatNumber"
|
|
600
|
-
}),
|
|
601
|
-
optional: formUtils.isOptionalField("vatNumber"),
|
|
602
|
-
readonly: formUtils.isReadOnly("vatNumber"),
|
|
603
|
-
handleChangeFor,
|
|
604
|
-
country,
|
|
605
|
-
canExempt: formUtils.isRequiredField("exemptedFromVat"),
|
|
606
|
-
shouldValidate: mergedProps.shouldValidate
|
|
607
|
-
}
|
|
608
|
-
)
|
|
609
|
-
] }) });
|
|
610
|
-
}
|
|
611
|
-
const trustForms$1 = {
|
|
612
|
-
trustRegistrationDetails: {
|
|
613
|
-
formId: "trustRegistrationDetails",
|
|
614
|
-
formName: "registrationDetails",
|
|
615
|
-
fields: [...trustRegistrationDetailsFields]
|
|
616
|
-
},
|
|
617
|
-
trustRegistrationAddress: {
|
|
618
|
-
formId: "trustRegistrationAddress",
|
|
619
|
-
formName: "addressDetails",
|
|
620
|
-
fields: registrationAddressFields
|
|
621
|
-
},
|
|
622
|
-
trustConstitutionalDocument: {
|
|
623
|
-
formId: "trustConstitutionalDocument",
|
|
624
|
-
formName: "constitutionalDocument",
|
|
625
|
-
fields: ["constitutionalDocument"]
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
const trustRegistrationAddressFormId$1 = trustForms$1.trustRegistrationAddress.formId;
|
|
629
|
-
const trustRegistrationDetailsFormId$1 = trustForms$1.trustRegistrationDetails.formId;
|
|
630
|
-
const trustConstitutionalDocumentFormId$1 = trustForms$1.trustConstitutionalDocument.formId;
|
|
631
|
-
function Trust(props) {
|
|
632
|
-
const { t } = useTranslation(["common", "trust"]);
|
|
633
|
-
const { country, activeForm, taskType } = props;
|
|
634
|
-
const trustRegistrationDetailsFormProps = getFormProps(props, trustRegistrationDetailsFormId$1);
|
|
635
|
-
const trustRegistrationAddressFormProps = getNestedOuterFormPropsFromOuterFormProps(props, trustRegistrationAddressFormId$1);
|
|
636
|
-
const trustDocumentFormProps = getFormProps(props, trustConstitutionalDocumentFormId$1);
|
|
637
|
-
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
638
|
-
const renderActiveForm = (activeForm2) => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-trust", children: [
|
|
639
|
-
/* @__PURE__ */ jsx(
|
|
640
|
-
"div",
|
|
641
|
-
{
|
|
642
|
-
className: activeForm2.formId !== trustRegistrationDetailsFormId$1 ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
643
|
-
children: /* @__PURE__ */ jsx(
|
|
644
|
-
TrustRegistrationDetails,
|
|
645
|
-
{
|
|
646
|
-
...trustRegistrationDetailsFormProps,
|
|
647
|
-
heading: t(($) => $["registrationDetails"]),
|
|
648
|
-
id: trustRegistrationDetailsFormId$1,
|
|
649
|
-
country,
|
|
650
|
-
taskType
|
|
651
|
-
}
|
|
652
|
-
)
|
|
653
|
-
}
|
|
654
|
-
),
|
|
655
|
-
/* @__PURE__ */ jsx(
|
|
656
|
-
"div",
|
|
657
|
-
{
|
|
658
|
-
className: activeForm2.formId !== trustRegistrationAddressFormId$1 ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
659
|
-
children: /* @__PURE__ */ jsx(
|
|
660
|
-
RegistrationAddress,
|
|
661
|
-
{
|
|
662
|
-
...trustRegistrationAddressFormProps,
|
|
663
|
-
heading: t(($) => $["addressDetails"]),
|
|
664
|
-
description: !isUnincorporatedPartnership ? t(($) => $["registeredAddressTrustHeaderDescription"], { ns: "trust" }) : t(($) => $["registeredAddressUnincorporatedPartnershipHeaderDescription"], {
|
|
665
|
-
ns: "trust"
|
|
666
|
-
}),
|
|
667
|
-
id: trustRegistrationAddressFormId$1,
|
|
668
|
-
country,
|
|
669
|
-
problems: props?.problems,
|
|
670
|
-
labels: {
|
|
671
|
-
operationalAddressIsSame: !isUnincorporatedPartnership ? "isTrustOperationAddressSame" : "isPartnershipOperationAddressSame"
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
)
|
|
675
|
-
}
|
|
676
|
-
),
|
|
677
|
-
/* @__PURE__ */ jsx(
|
|
678
|
-
"div",
|
|
679
|
-
{
|
|
680
|
-
className: activeForm2.formId !== trustConstitutionalDocumentFormId$1 ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
681
|
-
children: /* @__PURE__ */ jsx(
|
|
682
|
-
MemoizedConstitutionalDocument,
|
|
683
|
-
{
|
|
684
|
-
...trustDocumentFormProps,
|
|
685
|
-
id: trustConstitutionalDocumentFormId$1,
|
|
686
|
-
legalEntityType: isUnincorporatedPartnership ? LegalEntityTypes.UNINCORPORATED_PARTNERSHIP : LegalEntityTypes.TRUST,
|
|
687
|
-
country
|
|
688
|
-
}
|
|
689
|
-
)
|
|
690
|
-
}
|
|
691
|
-
)
|
|
692
|
-
] });
|
|
693
|
-
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-trust", children: renderActiveForm(activeForm || trustForms$1.trustRegistrationDetails) });
|
|
694
|
-
}
|
|
695
|
-
const mapLegalEntityToTrust = (legalEntity, isFeatureEnabled) => {
|
|
696
|
-
if (!legalEntity.trust) throw new Error("LE missing trust field");
|
|
697
|
-
let trustCompData = formatObject(legalEntity, trustComponentsKeyMapping);
|
|
698
|
-
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
699
|
-
trustCompData.trustRegistrationDetails.vatNumberType = getDefaultVatNumberType(
|
|
700
|
-
legalEntity.trust.vatNumber,
|
|
701
|
-
legalEntity.trust.countryOfGoverningLaw
|
|
702
|
-
);
|
|
703
|
-
trustCompData.trustRegistrationDetails.registrationNumberType = getDefaultRegistrationNumberType(
|
|
704
|
-
legalEntity.trust.registrationNumber,
|
|
705
|
-
legalEntity.trust.countryOfGoverningLaw,
|
|
706
|
-
LegalEntityTypes.TRUST
|
|
707
|
-
);
|
|
708
|
-
trustCompData.trustRegistrationDetails.country = legalEntity.trust.countryOfGoverningLaw;
|
|
709
|
-
if (legalEntity.trust.description) {
|
|
710
|
-
trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.trust.description;
|
|
711
|
-
}
|
|
712
|
-
if (legalEntity.trust.principalPlaceOfBusiness) {
|
|
713
|
-
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
714
|
-
} else {
|
|
715
|
-
if (!trustCompData.trustRegistrationAddress) {
|
|
716
|
-
trustCompData.trustRegistrationAddress = {};
|
|
717
|
-
}
|
|
718
|
-
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
|
|
719
|
-
}
|
|
720
|
-
if (legalEntity.trust.taxInformation?.length) {
|
|
721
|
-
const { country } = legalEntity.trust.registeredAddress;
|
|
722
|
-
const countryTaxInformation = legalEntity.trust.taxInformation.find(
|
|
723
|
-
(info) => info.country === country
|
|
724
|
-
);
|
|
725
|
-
if (countryTaxInformation?.type === "UEN") {
|
|
726
|
-
trustCompData.trustRegistrationDetails.isUen = true;
|
|
727
|
-
}
|
|
728
|
-
if (countryTaxInformation?.type === "GST") {
|
|
729
|
-
trustCompData.trustRegistrationDetails.isUen = false;
|
|
730
|
-
}
|
|
731
|
-
const taxNumberAbsent = countryTaxInformation?.numberAbsent;
|
|
732
|
-
if (taxNumberAbsent !== void 0) {
|
|
733
|
-
trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
if (legalEntity.documentDetails?.length) {
|
|
737
|
-
trustCompData = {
|
|
738
|
-
...trustCompData,
|
|
739
|
-
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
740
|
-
};
|
|
741
|
-
}
|
|
742
|
-
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
743
|
-
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
744
|
-
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.trust.doingBusinessAsAbsent;
|
|
745
|
-
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs)
|
|
746
|
-
delete legalEntity.trust?.doingBusinessAs;
|
|
747
|
-
}
|
|
748
|
-
} else {
|
|
749
|
-
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.trust.doingBusinessAs ? legalEntity.trust.doingBusinessAs !== legalEntity.trust.name : void 0;
|
|
750
|
-
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.trust.doingBusinessAs;
|
|
751
|
-
}
|
|
752
|
-
return trustCompData;
|
|
753
|
-
};
|
|
754
|
-
const mapTrustDocumentToApiDocument = async (data, entityId) => {
|
|
755
|
-
const constitutionalDocument = data?.trustConstitutionalDocument?.constitutionalDocument;
|
|
756
|
-
if (!constitutionalDocument) {
|
|
757
|
-
throw new Error("Constitutional document missing");
|
|
758
|
-
}
|
|
759
|
-
const page1 = constitutionalDocument[0];
|
|
760
|
-
if (!page1) {
|
|
761
|
-
throw new Error("Document needs at least one page");
|
|
762
|
-
}
|
|
763
|
-
const existingDocument = getDocument(entityId, "constitutionalDocument");
|
|
764
|
-
return await createDocumentRequest({
|
|
765
|
-
entityId,
|
|
766
|
-
entityType: "legalEntity",
|
|
767
|
-
documentType: "constitutionalDocument",
|
|
768
|
-
page1,
|
|
769
|
-
existingDocument
|
|
770
|
-
});
|
|
771
|
-
};
|
|
772
|
-
const mapTrustToLegalEntity = (data, isFeatureEnabled) => {
|
|
773
|
-
const requestObj = {
|
|
774
|
-
...formatObject(data, trustApiKeyMapping)
|
|
775
|
-
};
|
|
776
|
-
if (!requestObj.trust) return requestObj;
|
|
777
|
-
if (data.trustRegistrationDetails?.objectOfTrust) {
|
|
778
|
-
requestObj.trust.description = data.trustRegistrationDetails.objectOfTrust;
|
|
779
|
-
}
|
|
780
|
-
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
781
|
-
requestObj.trust.doingBusinessAsAbsent = typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined" ? !data.trustRegistrationDetails?.hasDoingBusinessAs : void 0;
|
|
782
|
-
if (requestObj.trust.doingBusinessAsAbsent) {
|
|
783
|
-
requestObj.trust.doingBusinessAs = "";
|
|
784
|
-
}
|
|
785
|
-
} else {
|
|
786
|
-
delete requestObj.trust?.doingBusinessAsAbsent;
|
|
787
|
-
requestObj.trust.doingBusinessAs = data.trustRegistrationDetails?.doingBusinessAs || data.trustRegistrationDetails?.legalName;
|
|
788
|
-
}
|
|
789
|
-
requestObj.type = LegalEntityTypes.TRUST;
|
|
790
|
-
return requestObj;
|
|
791
|
-
};
|
|
792
|
-
const MANDATORY_FIELDS_TRUST = [
|
|
793
|
-
"trustRegistrationDetails.legalName",
|
|
794
|
-
"trustRegistrationDetails.country"
|
|
795
|
-
];
|
|
796
|
-
const trustBase = {
|
|
797
|
-
trustType: {
|
|
798
|
-
rule: "requiresTrustType"
|
|
799
|
-
},
|
|
800
|
-
objectOfTrust: {
|
|
801
|
-
rule: "trustTypeHasDescription"
|
|
802
|
-
},
|
|
803
|
-
legalName: {
|
|
804
|
-
rule: "REQUIRED"
|
|
805
|
-
},
|
|
806
|
-
hasDoingBusinessAs: {
|
|
807
|
-
rule: "REQUIRED"
|
|
808
|
-
},
|
|
809
|
-
doingBusinessAs: {
|
|
810
|
-
rule: "requireDoingBusinessAsName"
|
|
811
|
-
},
|
|
812
|
-
country: {
|
|
813
|
-
rule: "REQUIRED"
|
|
814
|
-
},
|
|
815
|
-
taxInformation: {
|
|
816
|
-
rule: "countryUsesTaxId"
|
|
817
|
-
},
|
|
818
|
-
registrationAddress: {
|
|
819
|
-
rule: "REQUIRED"
|
|
820
|
-
},
|
|
821
|
-
operationalAddress: {
|
|
822
|
-
rule: "OPTIONAL"
|
|
823
|
-
},
|
|
824
|
-
constitutionalDocument: {
|
|
825
|
-
rule: "REQUIRED"
|
|
826
|
-
},
|
|
827
|
-
registrationNumber: { rule: "countryRequiresRegistrationNumberForTrust" },
|
|
828
|
-
registrationNumberType: { rule: "registrationNumberType" },
|
|
829
|
-
vatNumber: { rule: "countryUsesVatNumber" },
|
|
830
|
-
vatNumberType: { rule: "countryUsesVatNumber" },
|
|
831
|
-
operationalAddressIsSame: {
|
|
832
|
-
rule: "REQUIRED"
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
|
-
const trustFieldsPerScenario = {
|
|
836
|
-
L0: {
|
|
837
|
-
...trustBase
|
|
838
|
-
},
|
|
839
|
-
L1: {
|
|
840
|
-
...trustBase
|
|
841
|
-
},
|
|
842
|
-
L: {
|
|
843
|
-
...trustBase
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
const trustCountryConfig = {};
|
|
847
|
-
const parseTrustScenarios$1 = (scenarios, country) => augmentWithCountryConfigs(
|
|
848
|
-
trustCountryConfig[country],
|
|
849
|
-
composePerScenarioFormConfigurations(scenarios, trustFieldsPerScenario)
|
|
850
|
-
);
|
|
851
|
-
const parseConfiguration$1 = ({ scenarios, country }) => parseTrustScenarios$1(scenarios, country);
|
|
852
|
-
function TrustDropin({
|
|
853
|
-
parentLegalEntity,
|
|
854
|
-
capabilities,
|
|
855
|
-
country: countryProp,
|
|
856
|
-
existingTrust,
|
|
857
|
-
taskType,
|
|
858
|
-
problems: problemsProp,
|
|
859
|
-
onSubmit: externalOnSubmit,
|
|
860
|
-
onChange,
|
|
861
|
-
hideSidebar,
|
|
862
|
-
handleHomeClick
|
|
863
|
-
}) {
|
|
864
|
-
const {
|
|
865
|
-
state: { currentState }
|
|
866
|
-
} = useStateContext();
|
|
867
|
-
const formValidity = currentState.validityByForm;
|
|
868
|
-
useEffect(() => {
|
|
869
|
-
onChange?.(currentState);
|
|
870
|
-
}, [currentState, onChange]);
|
|
871
|
-
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
872
|
-
const { t, i18n } = useTranslation(["common", "trust"]);
|
|
873
|
-
const [validationErrors, setValidationErrors] = useState();
|
|
874
|
-
const datasetUtils = datasetUtilities(i18n.language);
|
|
875
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
876
|
-
const { showToast } = useToastContext();
|
|
877
|
-
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
878
|
-
const formRef = useRef(null);
|
|
879
|
-
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
880
|
-
const problems = useMemo(
|
|
881
|
-
() => ({
|
|
882
|
-
...problemsProp,
|
|
883
|
-
validationErrors
|
|
884
|
-
}),
|
|
885
|
-
[problemsProp, validationErrors]
|
|
886
|
-
);
|
|
887
|
-
const trustData = useMemo(() => {
|
|
888
|
-
if (!existingTrust) return {};
|
|
889
|
-
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust, isFeatureEnabled) : mapLegalEntityToTrust(existingTrust, isFeatureEnabled);
|
|
890
|
-
}, [isFeatureEnabled, existingTrust, isUnincorporatedPartnership]);
|
|
891
|
-
const currentCountry = useMemo(
|
|
892
|
-
() => currentState.data.trustRegistrationDetails?.country ?? countryProp,
|
|
893
|
-
[countryProp, currentState.data.trustRegistrationDetails?.country]
|
|
894
|
-
);
|
|
895
|
-
const [initialData, setInitialData] = useState(trustData);
|
|
896
|
-
useEffect(() => {
|
|
897
|
-
if (!existingTrust?.documentDetails?.length) return;
|
|
898
|
-
try {
|
|
899
|
-
documentUtils.fetchDocuments(existingTrust.documentDetails, existingTrust.id).then(() => {
|
|
900
|
-
const mappedDocuments = mapApiDocumentToTrustDocument(existingTrust.id);
|
|
901
|
-
setInitialData({
|
|
902
|
-
...initialData,
|
|
903
|
-
...mappedDocuments
|
|
904
|
-
});
|
|
905
|
-
}).catch(() => {
|
|
906
|
-
showToast({ label: t(($) => $["failedToFetchRelevantDocuments"]), variant: "error" });
|
|
907
|
-
});
|
|
908
|
-
} catch {
|
|
909
|
-
showToast({ label: t(($) => $["failedToFetchRelevantDocuments"]), variant: "error" });
|
|
910
|
-
}
|
|
911
|
-
}, []);
|
|
912
|
-
const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
|
|
913
|
-
parseConfiguration: parseConfiguration$1,
|
|
914
|
-
legalEntityType: LegalEntityTypes.TRUST,
|
|
915
|
-
setLoadingStatus,
|
|
916
|
-
country: currentCountry
|
|
917
|
-
});
|
|
918
|
-
const fieldsFromCustomRules = useMemo(
|
|
919
|
-
() => rules({
|
|
920
|
-
data: currentState.data,
|
|
921
|
-
country: currentCountry,
|
|
922
|
-
taskType
|
|
923
|
-
}),
|
|
924
|
-
[currentCountry, currentState.data, taskType, requiredFields, isFeatureEnabled]
|
|
925
|
-
);
|
|
926
|
-
const derivedProps = useMemo(
|
|
927
|
-
() => getPropsFromConfigurations({
|
|
928
|
-
scenarioConfiguration: fieldConfigurations,
|
|
929
|
-
forms: trustForms$1,
|
|
930
|
-
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
931
|
-
dataMissingErrors: problems?.missingData ?? [],
|
|
932
|
-
fieldsWithExistingData: existingTrust ? getFieldsWithExistingData(existingTrust, trustApiKeyMapping, trustDocumentMapping) : [],
|
|
933
|
-
customRules: fieldsFromCustomRules,
|
|
934
|
-
legalEntityType: existingTrust?.type
|
|
935
|
-
}),
|
|
936
|
-
[
|
|
937
|
-
fieldConfigurations,
|
|
938
|
-
problems?.remediationActions,
|
|
939
|
-
problems?.missingData,
|
|
940
|
-
existingTrust,
|
|
941
|
-
fieldsFromCustomRules
|
|
942
|
-
]
|
|
943
|
-
);
|
|
944
|
-
const forms = useMemo(() => {
|
|
945
|
-
const requiredForms = getRequiredForms(
|
|
946
|
-
trustForms$1,
|
|
947
|
-
derivedProps?.requiredFields,
|
|
948
|
-
derivedProps?.optionalFields
|
|
949
|
-
);
|
|
950
|
-
return addValidityToForms(requiredForms, formValidity, problems);
|
|
951
|
-
}, [derivedProps, formValidity, problems]);
|
|
952
|
-
const onSubmitTrust = async () => {
|
|
953
|
-
setLoadingStatus("loading");
|
|
954
|
-
const trustDetails = mapTrustToLegalEntity(currentState.data, isFeatureEnabled);
|
|
955
|
-
try {
|
|
956
|
-
const updatedTrust = await submitTrustDetails(trustDetails);
|
|
957
|
-
await submitDocuments({ forms, legalEntity: updatedTrust, dataSubmitted: currentState.data });
|
|
958
|
-
await attachTrustToParentLegalEntity(updatedTrust);
|
|
959
|
-
setLoadingStatus("success");
|
|
960
|
-
showToast({ label: t(($) => $["successfullyUpdatedDetails"]), variant: "success" });
|
|
961
|
-
externalOnSubmit?.(currentState.data);
|
|
962
|
-
} catch (e) {
|
|
963
|
-
showToast({ label: t(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
964
|
-
if (isValidationError(e)) {
|
|
965
|
-
setValidationErrors(processValidationErrors(e, taskType));
|
|
966
|
-
} else if (isMaintenanceModeError(e)) {
|
|
967
|
-
showToast({
|
|
968
|
-
label: t(($) => $["maintenanceModeMessage"]),
|
|
969
|
-
variant: "error",
|
|
970
|
-
duration: "indefinite"
|
|
971
|
-
});
|
|
972
|
-
}
|
|
973
|
-
setLoadingStatus("success");
|
|
974
|
-
}
|
|
975
|
-
};
|
|
976
|
-
const onSubmitUnincorporatedPartnership = async () => {
|
|
977
|
-
setLoadingStatus("loading");
|
|
978
|
-
const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(
|
|
979
|
-
currentState.data,
|
|
980
|
-
isFeatureEnabled
|
|
981
|
-
);
|
|
982
|
-
try {
|
|
983
|
-
const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(
|
|
984
|
-
unincorporatedPartnershipDetails
|
|
985
|
-
);
|
|
986
|
-
await submitDocuments({
|
|
987
|
-
forms,
|
|
988
|
-
legalEntity: updatedUnincorporatedPartnershipDetails,
|
|
989
|
-
dataSubmitted: currentState.data
|
|
990
|
-
});
|
|
991
|
-
await attachTrustToParentLegalEntity(updatedUnincorporatedPartnershipDetails);
|
|
992
|
-
setLoadingStatus("success");
|
|
993
|
-
showToast({ label: t(($) => $["successfullyUpdatedDetails"]), variant: "success" });
|
|
994
|
-
externalOnSubmit?.(currentState.data);
|
|
995
|
-
} catch (e) {
|
|
996
|
-
showToast({ label: t(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
997
|
-
if (isValidationError(e)) {
|
|
998
|
-
setValidationErrors(processValidationErrors(e, taskType));
|
|
999
|
-
} else if (isMaintenanceModeError(e)) {
|
|
1000
|
-
showToast({
|
|
1001
|
-
label: t(($) => $["maintenanceModeMessage"]),
|
|
1002
|
-
variant: "error",
|
|
1003
|
-
duration: "indefinite"
|
|
1004
|
-
});
|
|
1005
|
-
}
|
|
1006
|
-
setLoadingStatus("success");
|
|
1007
|
-
}
|
|
1008
|
-
};
|
|
1009
|
-
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
1010
|
-
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
1011
|
-
const submitTrustDetails = async (legalEntity) => {
|
|
1012
|
-
if (!existingTrust) {
|
|
1013
|
-
return await createLegalEntity(legalEntity);
|
|
1014
|
-
} else {
|
|
1015
|
-
return await updateLegalEntity({
|
|
1016
|
-
...drop("type").from(legalEntity),
|
|
1017
|
-
id: existingTrust.id
|
|
1018
|
-
});
|
|
1019
|
-
}
|
|
1020
|
-
};
|
|
1021
|
-
const documentUtils = documentApiUtils({
|
|
1022
|
-
baseUrl: baseUrl.value,
|
|
1023
|
-
rootLegalEntityId: rootLegalEntityId.value
|
|
1024
|
-
});
|
|
1025
|
-
const submitDocuments = async ({
|
|
1026
|
-
forms: forms2,
|
|
1027
|
-
legalEntity,
|
|
1028
|
-
dataSubmitted
|
|
1029
|
-
}) => {
|
|
1030
|
-
if (isDocumentsRequired(forms2)) {
|
|
1031
|
-
const formattedDocument = await mapTrustDocumentToApiDocument(dataSubmitted, legalEntity.id);
|
|
1032
|
-
if (formattedDocument) {
|
|
1033
|
-
await documentUtils.uploadDocuments([formattedDocument], legalEntity.id);
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
|
-
const isDocumentsRequired = (forms2) => forms2.some((form) => form.formId === trustForms$1.trustConstitutionalDocument.formId);
|
|
1038
|
-
const attachTrustToParentLegalEntity = async (trust) => {
|
|
1039
|
-
if (existingTrust?.id) {
|
|
1040
|
-
return;
|
|
1041
|
-
}
|
|
1042
|
-
const existingEntityAssociations = getOwnEntityAssociations(parentLegalEntity);
|
|
1043
|
-
const updatedParentLegalEntity = {
|
|
1044
|
-
entityAssociations: [
|
|
1045
|
-
{
|
|
1046
|
-
type: trust.type,
|
|
1047
|
-
legalEntityId: trust.id
|
|
1048
|
-
},
|
|
1049
|
-
...existingEntityAssociations
|
|
1050
|
-
]
|
|
1051
|
-
};
|
|
1052
|
-
await updateLegalEntity({ ...updatedParentLegalEntity, id: parentLegalEntity.id });
|
|
1053
|
-
};
|
|
1054
|
-
const formatDataForSummary = (formData, forms2) => {
|
|
1055
|
-
let summaryData = cloneObject(formData) || {};
|
|
1056
|
-
const country = formData.trustRegistrationDetails?.country ?? (existingTrust ? getLegalEntityCountry(existingTrust) : getLegalEntityCountry(parentLegalEntity));
|
|
1057
|
-
if (formData.trustRegistrationDetails) {
|
|
1058
|
-
const trustCountry = formData.trustRegistrationDetails.country && datasetUtils.getCountryName(formData.trustRegistrationDetails.country);
|
|
1059
|
-
const trustType = formData.trustRegistrationDetails.trustType && t(($) => $[formData.trustRegistrationDetails.trustType], { ns: "trust" });
|
|
1060
|
-
const registrationNumberLabel = resolveFieldMetadata(
|
|
1061
|
-
registrationNumberDefaultFieldConfig[country],
|
|
1062
|
-
{
|
|
1063
|
-
companyType: LegalEntityTypes.TRUST,
|
|
1064
|
-
registrationNumberType: formData.trustRegistrationDetails.registrationNumber ? inferCompanyRegistrationNumberType(
|
|
1065
|
-
formData.trustRegistrationDetails.registrationNumber,
|
|
1066
|
-
country,
|
|
1067
|
-
LegalEntityTypes.TRUST
|
|
1068
|
-
) : getCompanyRegistrationNumberOptions(country, LegalEntityTypes.TRUST)?.[0]?.id
|
|
1069
|
-
},
|
|
1070
|
-
registrationNumberDefaultFieldMetadata
|
|
1071
|
-
).label;
|
|
1072
|
-
const taxIdLabel = resolveFieldMetadata(
|
|
1073
|
-
taxInformationDefaultFieldConfig[country],
|
|
1074
|
-
{
|
|
1075
|
-
companyType: LegalEntityTypes.TRUST,
|
|
1076
|
-
taxIdNumberType: countryToTaxInfoTypeMap[country]
|
|
1077
|
-
},
|
|
1078
|
-
taxInformationDefaultFieldMetadata
|
|
1079
|
-
).label;
|
|
1080
|
-
summaryData.trustRegistrationDetails = {
|
|
1081
|
-
[isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"]: formData.trustRegistrationDetails?.legalName,
|
|
1082
|
-
doingBusinessAs: formData.trustRegistrationDetails?.doingBusinessAs,
|
|
1083
|
-
countryRegionOfEstablishment: trustCountry,
|
|
1084
|
-
typeOfTrustAgreement: isUnincorporatedPartnership ? void 0 : trustType,
|
|
1085
|
-
objectOfTrust: formData.trustRegistrationDetails?.objectOfTrust,
|
|
1086
|
-
[taxIdLabel]: formData.trustRegistrationDetails?.taxInformation?.find(
|
|
1087
|
-
(taxId) => country === taxId.country
|
|
1088
|
-
)?.number,
|
|
1089
|
-
[registrationNumberLabel]: formData.trustRegistrationDetails.registrationNumber
|
|
1090
|
-
};
|
|
1091
|
-
}
|
|
1092
|
-
if (formData.trustRegistrationAddress?.registrationAddress) {
|
|
1093
|
-
summaryData.trustRegistrationAddress.hasInnerForms = true;
|
|
1094
|
-
summaryData.trustRegistrationAddress.registrationAddress = mapAddressLabels(
|
|
1095
|
-
formData.trustRegistrationAddress.registrationAddress,
|
|
1096
|
-
datasetUtils
|
|
1097
|
-
);
|
|
1098
|
-
}
|
|
1099
|
-
if (formData.trustRegistrationAddress?.operationalAddress) {
|
|
1100
|
-
summaryData.trustRegistrationAddress.operationalAddress = mapAddressLabels(
|
|
1101
|
-
formData.trustRegistrationAddress.operationalAddress,
|
|
1102
|
-
datasetUtils
|
|
1103
|
-
);
|
|
1104
|
-
}
|
|
1105
|
-
if (isDocumentsRequired(forms2)) {
|
|
1106
|
-
summaryData = {
|
|
1107
|
-
...summaryData,
|
|
1108
|
-
...formatFileSummaryData(formData.trustConstitutionalDocument)
|
|
1109
|
-
};
|
|
1110
|
-
} else {
|
|
1111
|
-
delete summaryData[trustConstitutionalDocumentFormId$1];
|
|
1112
|
-
}
|
|
1113
|
-
return summaryData;
|
|
1114
|
-
};
|
|
1115
|
-
const formatFileSummaryData = (trustConstitutionalDocument) => {
|
|
1116
|
-
const constitutionalDocument = trustConstitutionalDocument?.constitutionalDocument?.[0];
|
|
1117
|
-
return {
|
|
1118
|
-
...constitutionalDocument && {
|
|
1119
|
-
trustConstitutionalDocument: {
|
|
1120
|
-
fileName: constitutionalDocument.name
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
};
|
|
1124
|
-
};
|
|
1125
|
-
const canSubmit = (formData) => MANDATORY_FIELDS_TRUST.every((detail) => {
|
|
1126
|
-
const value = getProp(formData, detail);
|
|
1127
|
-
return !isEmpty$1(value);
|
|
1128
|
-
});
|
|
1129
|
-
const {
|
|
1130
|
-
handleNextClick,
|
|
1131
|
-
handleBackClick,
|
|
1132
|
-
activeForm,
|
|
1133
|
-
shouldValidate,
|
|
1134
|
-
setShouldValidate,
|
|
1135
|
-
gotoFormByFormIndex,
|
|
1136
|
-
gotoFormByFormId,
|
|
1137
|
-
steps
|
|
1138
|
-
} = useFormComposer({
|
|
1139
|
-
problems,
|
|
1140
|
-
forms,
|
|
1141
|
-
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust
|
|
1142
|
-
});
|
|
1143
|
-
return /* @__PURE__ */ jsx(
|
|
1144
|
-
FormWrapper,
|
|
1145
|
-
{
|
|
1146
|
-
taskName: isUnincorporatedPartnership ? "unincorporatedDetails" : "trustDetails",
|
|
1147
|
-
handleNextClick,
|
|
1148
|
-
handleBackClick,
|
|
1149
|
-
gotoFormByFormIndex,
|
|
1150
|
-
gotoFormByFormId,
|
|
1151
|
-
loadingStatus,
|
|
1152
|
-
forms,
|
|
1153
|
-
activeForm,
|
|
1154
|
-
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust,
|
|
1155
|
-
hideSidebar,
|
|
1156
|
-
handleHomeClick,
|
|
1157
|
-
validateForm: () => setShouldValidate(true),
|
|
1158
|
-
canSubmit: canSubmit(currentState.data) && hasDataChanged(initialData, currentState.data),
|
|
1159
|
-
problems,
|
|
1160
|
-
summary: {
|
|
1161
|
-
data: formatDataForSummary(currentState.data, forms),
|
|
1162
|
-
omitted: {
|
|
1163
|
-
keys: ["operationalAddressIsSame"]
|
|
1164
|
-
}
|
|
1165
|
-
},
|
|
1166
|
-
steps,
|
|
1167
|
-
children: /* @__PURE__ */ jsx(
|
|
1168
|
-
Trust,
|
|
1169
|
-
{
|
|
1170
|
-
...derivedProps,
|
|
1171
|
-
activeForm,
|
|
1172
|
-
capabilities,
|
|
1173
|
-
data: initialData,
|
|
1174
|
-
country: currentCountry,
|
|
1175
|
-
problems,
|
|
1176
|
-
shouldValidate,
|
|
1177
|
-
ref: formRef,
|
|
1178
|
-
taskType
|
|
1179
|
-
}
|
|
1180
|
-
)
|
|
1181
|
-
}
|
|
1182
|
-
);
|
|
1183
|
-
}
|
|
1184
|
-
const registrationAddressForms = {
|
|
1185
|
-
registrationAddress: {
|
|
1186
|
-
formId: "registrationAddress"
|
|
1187
|
-
}
|
|
1188
|
-
};
|
|
1189
|
-
const registrationAddressFormID = registrationAddressForms.registrationAddress.formId;
|
|
1190
|
-
function RegistrationAddressMultiform(props) {
|
|
1191
|
-
const { t } = useTranslation("common");
|
|
1192
|
-
const { id, heading, description, country, problems } = props;
|
|
1193
|
-
const { form } = useFormContext();
|
|
1194
|
-
const data = form.data.trustRegistrationAddress;
|
|
1195
|
-
const {
|
|
1196
|
-
requiredFields: registrationAddressRequiredFields,
|
|
1197
|
-
optionalFields: registrationAddressOptionalFields,
|
|
1198
|
-
readOnlyFields: registrationAddressReadOnlyFields,
|
|
1199
|
-
obscuredFields: registrationAddressObscuredFields,
|
|
1200
|
-
verifyFields: registrationAddressVerifyFields,
|
|
1201
|
-
trustedFields: registrationAddressTrustedFields
|
|
1202
|
-
} = getFormProps(props, registrationAddressFormID);
|
|
1203
|
-
const mergedProps = {
|
|
1204
|
-
...props,
|
|
1205
|
-
requiredFields: registrationAddressRequiredFields,
|
|
1206
|
-
optionalFields: registrationAddressOptionalFields,
|
|
1207
|
-
readOnlyFields: registrationAddressReadOnlyFields,
|
|
1208
|
-
obscuredFields: registrationAddressObscuredFields,
|
|
1209
|
-
trustedFields: registrationAddressTrustedFields
|
|
1210
|
-
};
|
|
1211
|
-
const formUtils = createFormUtils(mergedProps, t);
|
|
1212
|
-
const isOperationAddressNotSame = () => data?.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
1213
|
-
const registrationAddressValidRef = useRef(
|
|
1214
|
-
Boolean(form.valid.trustRegistrationAddress?.registrationAddress)
|
|
1215
|
-
);
|
|
1216
|
-
const operationalAddressValidRef = useRef(
|
|
1217
|
-
Boolean(form.valid.trustRegistrationAddress?.operationalAddress)
|
|
1218
|
-
);
|
|
1219
|
-
useEffect(() => {
|
|
1220
|
-
if (form.valid.trustRegistrationAddress?.registrationAddress !== registrationAddressValidRef.current) {
|
|
1221
|
-
form.setValid(
|
|
1222
|
-
"registrationAddress",
|
|
1223
|
-
registrationAddressValidRef.current,
|
|
1224
|
-
"trustRegistrationAddress"
|
|
1225
|
-
);
|
|
1226
|
-
}
|
|
1227
|
-
if (isOperationAddressNotSame() && form.valid.trustRegistrationAddress?.operationalAddress !== operationalAddressValidRef.current) {
|
|
1228
|
-
form.setValid(
|
|
1229
|
-
"operationalAddress",
|
|
1230
|
-
operationalAddressValidRef.current,
|
|
1231
|
-
"trustRegistrationAddress"
|
|
1232
|
-
);
|
|
1233
|
-
}
|
|
1234
|
-
}, [form.valid.trustRegistrationAddress]);
|
|
1235
|
-
const handleChangeFor = useCallback(
|
|
1236
|
-
(fieldName, mode) => form.handleChangeFor(fieldName, "trustRegistrationAddress", mode),
|
|
1237
|
-
[form]
|
|
1238
|
-
);
|
|
1239
|
-
const handleRegistrationAddressChange = (state) => {
|
|
1240
|
-
handleChangeFor("registrationAddress")(state.data);
|
|
1241
|
-
registrationAddressValidRef.current = Boolean(state.isValid);
|
|
1242
|
-
};
|
|
1243
|
-
const handleOperationalAddressChange = (state) => {
|
|
1244
|
-
handleChangeFor("operationalAddress")(state.data);
|
|
1245
|
-
operationalAddressValidRef.current = Boolean(state.isValid);
|
|
1246
|
-
};
|
|
1247
|
-
const handleOperationalAddressIsSameChange = (value) => {
|
|
1248
|
-
handleChangeFor("operationalAddressIsSame")(value);
|
|
1249
|
-
if (value === "OperationAddressAnswerYes") {
|
|
1250
|
-
form.setValid("operationalAddress", true, "trustRegistrationAddress");
|
|
1251
|
-
}
|
|
1252
|
-
};
|
|
1253
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1254
|
-
heading && /* @__PURE__ */ jsx(Header, { title: heading, description }),
|
|
1255
|
-
/* @__PURE__ */ jsx(
|
|
1256
|
-
ErrorPanel,
|
|
1257
|
-
{
|
|
1258
|
-
verificationErrors: id ? problems?.verificationErrors?.[id] : void 0,
|
|
1259
|
-
validationErrors: id ? problems?.validationErrors?.[id] : void 0,
|
|
1260
|
-
formUtils,
|
|
1261
|
-
id: "ariaErrorField"
|
|
1262
|
-
}
|
|
1263
|
-
),
|
|
1264
|
-
/* @__PURE__ */ jsx(
|
|
1265
|
-
ContextGuidance,
|
|
1266
|
-
{
|
|
1267
|
-
titleId: "whyDoINeedToFillInThisInformation",
|
|
1268
|
-
contentId: "reasonForFillingCompanyAddressDetails",
|
|
1269
|
-
title: t(($) => $["whyDoINeedToFillInThisInformation"]),
|
|
1270
|
-
content: t(($) => $["reasonForFillingCompanyAddressDetails"])
|
|
1271
|
-
}
|
|
1272
|
-
),
|
|
1273
|
-
/* @__PURE__ */ jsx(
|
|
1274
|
-
Address,
|
|
1275
|
-
{
|
|
1276
|
-
data: { ...form.data?.trustRegistrationAddress?.registrationAddress, country },
|
|
1277
|
-
hideCountry: true,
|
|
1278
|
-
id,
|
|
1279
|
-
addressType: "registrationAddress",
|
|
1280
|
-
optionalFields: ["otherAddressInformation"],
|
|
1281
|
-
onChange: handleRegistrationAddressChange
|
|
1282
|
-
}
|
|
1283
|
-
),
|
|
1284
|
-
/* @__PURE__ */ jsx(Header, { title: t(($) => $["operationalAddressHeader"]), secondary: true }),
|
|
1285
|
-
/* @__PURE__ */ jsx(
|
|
1286
|
-
Field,
|
|
1287
|
-
{
|
|
1288
|
-
el: "fieldset",
|
|
1289
|
-
name: "operationalAddressIsSame",
|
|
1290
|
-
label: formUtils.getLabel("operationalAddressIsSame"),
|
|
1291
|
-
errorMessage: form.errors.trustRegistrationAddress?.operationalAddressIsSame?.errorMessage,
|
|
1292
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1293
|
-
RadioGroup,
|
|
1294
|
-
{
|
|
1295
|
-
...childProps,
|
|
1296
|
-
name: "operationalAddressIsSame",
|
|
1297
|
-
items: operationalAddressIsSameItems,
|
|
1298
|
-
value: data?.operationalAddressIsSame,
|
|
1299
|
-
disabled: formUtils.isReadOnly("operationalAddressIsSame"),
|
|
1300
|
-
onChange: handleOperationalAddressIsSameChange,
|
|
1301
|
-
"aria-required": true,
|
|
1302
|
-
"aria-invalid": !form.valid.trustRegistrationAddress?.operationalAddressIsSame
|
|
1303
|
-
}
|
|
1304
|
-
)
|
|
1305
|
-
}
|
|
1306
|
-
),
|
|
1307
|
-
isOperationAddressNotSame() && /* @__PURE__ */ jsx(
|
|
1308
|
-
Address,
|
|
1309
|
-
{
|
|
1310
|
-
data: { ...form.data?.trustRegistrationAddress?.operationalAddress, country },
|
|
1311
|
-
hideCountry: true,
|
|
1312
|
-
id,
|
|
1313
|
-
optionalFields: ["otherAddressInformation"],
|
|
1314
|
-
addressType: "operationalAddress",
|
|
1315
|
-
onChange: handleOperationalAddressChange
|
|
1316
|
-
},
|
|
1317
|
-
"operationalAddress"
|
|
1318
|
-
)
|
|
1319
|
-
] });
|
|
1320
|
-
}
|
|
1321
|
-
const ALLOWED_TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
1322
|
-
const TRUST_REGISTRATION_DETAILS = trustForms$1.trustRegistrationDetails.formId;
|
|
1323
|
-
function TrustRegistrationDetailsMultiform({
|
|
1324
|
-
fieldValidationErrors = {},
|
|
1325
|
-
formVerificationErrors = {},
|
|
1326
|
-
heading,
|
|
1327
|
-
shouldValidate,
|
|
1328
|
-
taskType,
|
|
1329
|
-
country: parentLegalEntityCountry
|
|
1330
|
-
}) {
|
|
1331
|
-
const { t: trustT } = useTranslation("trust");
|
|
1332
|
-
const { t: CommonT } = useTranslation("common");
|
|
1333
|
-
const { form } = useFormContext();
|
|
1334
|
-
const {
|
|
1335
|
-
data,
|
|
1336
|
-
valid,
|
|
1337
|
-
errors,
|
|
1338
|
-
allFields,
|
|
1339
|
-
trustedFields,
|
|
1340
|
-
obscuredFields,
|
|
1341
|
-
optionalFields,
|
|
1342
|
-
requiredFields
|
|
1343
|
-
} = useMemo(() => {
|
|
1344
|
-
return {
|
|
1345
|
-
data: form.data.trustRegistrationDetails ?? {},
|
|
1346
|
-
valid: form.valid.trustRegistrationDetails ?? {},
|
|
1347
|
-
errors: form.errors.trustRegistrationDetails ?? {},
|
|
1348
|
-
allFields: form.allFields?.trustRegistrationDetails ?? [],
|
|
1349
|
-
trustedFields: form.trustedFields?.trustRegistrationDetails ?? [],
|
|
1350
|
-
obscuredFields: form.obscuredFields?.trustRegistrationDetails ?? [],
|
|
1351
|
-
optionalFields: form.optionalFields?.trustRegistrationDetails ?? [],
|
|
1352
|
-
requiredFields: form.requiredFields?.trustRegistrationDetails ?? []
|
|
1353
|
-
};
|
|
1354
|
-
}, [form]);
|
|
1355
|
-
const country = data?.country ?? parentLegalEntityCountry;
|
|
1356
|
-
const trustTypeOptions = getCountrySpecificTrustTypeOptions(country) ?? [];
|
|
1357
|
-
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
1358
|
-
const handleChange = (fieldName, mode) => form.handleChangeFor(fieldName, "trustRegistrationDetails", mode);
|
|
1359
|
-
const changeTrustType = (e) => {
|
|
1360
|
-
handleChange("trustType", "blur")(e);
|
|
1361
|
-
if (e.target.value !== "charitableTrust") {
|
|
1362
|
-
form.setData("objectOfTrust", void 0, TRUST_REGISTRATION_DETAILS);
|
|
1363
|
-
}
|
|
1364
|
-
};
|
|
1365
|
-
const formUtils = useMemo(() => {
|
|
1366
|
-
const initialProps = {
|
|
1367
|
-
data,
|
|
1368
|
-
valid,
|
|
1369
|
-
errors,
|
|
1370
|
-
fieldValidationErrors,
|
|
1371
|
-
formVerificationErrors,
|
|
1372
|
-
allFields,
|
|
1373
|
-
trustedFields,
|
|
1374
|
-
obscuredFields,
|
|
1375
|
-
optionalFields,
|
|
1376
|
-
requiredFields
|
|
1377
|
-
};
|
|
1378
|
-
const formUtilProps = initialProps?.allFields?.reduce((acc, field) => {
|
|
1379
|
-
switch (field) {
|
|
1380
|
-
case "hasDoingBusinessAs":
|
|
1381
|
-
return mergeFieldMetadataIntoProps(
|
|
1382
|
-
"hasDoingBusinessAs",
|
|
1383
|
-
doingBusinessAsAbsentFieldMetadata,
|
|
1384
|
-
acc
|
|
1385
|
-
);
|
|
1386
|
-
case "doingBusinessAs":
|
|
1387
|
-
return mergeFieldMetadataIntoProps(
|
|
1388
|
-
"doingBusinessAs",
|
|
1389
|
-
doingBusinessAsFieldMetadata,
|
|
1390
|
-
acc
|
|
1391
|
-
);
|
|
1392
|
-
case "taxInformation":
|
|
1393
|
-
return mergeFieldMetadataIntoProps(
|
|
1394
|
-
"taxInformation",
|
|
1395
|
-
resolveFieldMetadata(
|
|
1396
|
-
taxInformationDefaultFieldConfig[country],
|
|
1397
|
-
{
|
|
1398
|
-
taxIdNumberType: data.taxInformation?.find(
|
|
1399
|
-
(taxId) => taxId.country === country
|
|
1400
|
-
)?.type,
|
|
1401
|
-
companyType: LegalEntityTypes.TRUST
|
|
1402
|
-
},
|
|
1403
|
-
taxInformationDefaultFieldMetadata
|
|
1404
|
-
),
|
|
1405
|
-
acc
|
|
1406
|
-
);
|
|
1407
|
-
case "exemptedFromTax":
|
|
1408
|
-
return mergeFieldMetadataIntoProps(
|
|
1409
|
-
"exemptedFromTax",
|
|
1410
|
-
resolveFieldMetadata(
|
|
1411
|
-
exemptedFromTaxDefaultFieldConfig[country],
|
|
1412
|
-
{},
|
|
1413
|
-
exemptedFromTaxDefaultFieldMetadata
|
|
1414
|
-
),
|
|
1415
|
-
acc
|
|
1416
|
-
);
|
|
1417
|
-
case "registrationNumber":
|
|
1418
|
-
return mergeFieldMetadataIntoProps(
|
|
1419
|
-
"registrationNumber",
|
|
1420
|
-
resolveFieldMetadata(
|
|
1421
|
-
registrationNumberDefaultFieldConfig[country],
|
|
1422
|
-
{
|
|
1423
|
-
companyType: LegalEntityTypes.TRUST,
|
|
1424
|
-
registrationNumberType: data.registrationNumberType
|
|
1425
|
-
},
|
|
1426
|
-
registrationNumberDefaultFieldMetadata
|
|
1427
|
-
),
|
|
1428
|
-
acc
|
|
1429
|
-
);
|
|
1430
|
-
case "exemptedFromRegistrationNumber":
|
|
1431
|
-
return mergeFieldMetadataIntoProps(
|
|
1432
|
-
"exemptedFromRegistrationNumber",
|
|
1433
|
-
resolveFieldMetadata(
|
|
1434
|
-
exemptFromRegistrationNumberDefaultFieldConfig[country],
|
|
1435
|
-
{},
|
|
1436
|
-
exemptFromRegistrationNumberDefaultFieldMetadata
|
|
1437
|
-
),
|
|
1438
|
-
acc
|
|
1439
|
-
);
|
|
1440
|
-
case "vatNumber":
|
|
1441
|
-
return mergeFieldMetadataIntoProps(
|
|
1442
|
-
"vatNumber",
|
|
1443
|
-
resolveFieldMetadata(
|
|
1444
|
-
defaultFieldConfig[country],
|
|
1445
|
-
{ vatNumberType: data?.vatNumberType },
|
|
1446
|
-
defaultFieldMetadata
|
|
1447
|
-
),
|
|
1448
|
-
acc
|
|
1449
|
-
);
|
|
1450
|
-
default:
|
|
1451
|
-
return acc;
|
|
1452
|
-
}
|
|
1453
|
-
}, initialProps);
|
|
1454
|
-
return createFormUtils(formUtilProps ?? initialProps, CommonT);
|
|
1455
|
-
}, [
|
|
1456
|
-
CommonT,
|
|
1457
|
-
allFields,
|
|
1458
|
-
country,
|
|
1459
|
-
data,
|
|
1460
|
-
errors,
|
|
1461
|
-
fieldValidationErrors,
|
|
1462
|
-
formVerificationErrors,
|
|
1463
|
-
obscuredFields,
|
|
1464
|
-
optionalFields,
|
|
1465
|
-
requiredFields,
|
|
1466
|
-
trustedFields,
|
|
1467
|
-
valid
|
|
1468
|
-
]);
|
|
1469
|
-
const showField = (fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName);
|
|
1470
|
-
return /* @__PURE__ */ jsxs("form", { id: TRUST_REGISTRATION_DETAILS, className: "adyen-kyc-trust__registration-details", children: [
|
|
1471
|
-
heading && /* @__PURE__ */ jsx(Header, { title: heading }),
|
|
1472
|
-
/* @__PURE__ */ jsx(
|
|
1473
|
-
ErrorPanel,
|
|
1474
|
-
{
|
|
1475
|
-
verificationErrors: formVerificationErrors,
|
|
1476
|
-
validationErrors: fieldValidationErrors,
|
|
1477
|
-
formUtils,
|
|
1478
|
-
id: "ariaErrorField"
|
|
1479
|
-
}
|
|
1480
|
-
),
|
|
1481
|
-
!isUnincorporatedPartnership && /* @__PURE__ */ jsx(
|
|
1482
|
-
Alert,
|
|
1483
|
-
{
|
|
1484
|
-
variant: "info",
|
|
1485
|
-
title: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "secondary", children: trustT(($) => $["makeSureToHaveYourTrustDeed"]) }),
|
|
1486
|
-
className: "adyen-kyc-u-margin-bottom-16"
|
|
1487
|
-
}
|
|
1488
|
-
),
|
|
1489
|
-
formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(
|
|
1490
|
-
CountryField,
|
|
1491
|
-
{
|
|
1492
|
-
data: formUtils.getFieldData(data, COUNTRY_FIELD),
|
|
1493
|
-
valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
|
|
1494
|
-
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, COUNTRY_FIELD),
|
|
1495
|
-
labels: formUtils.getFieldLabels(COUNTRY_FIELD, {
|
|
1496
|
-
country: "countryRegionOfEstablishment"
|
|
1497
|
-
}),
|
|
1498
|
-
readonly: formUtils.isReadOnly("country"),
|
|
1499
|
-
allowedCountries: isUnincorporatedPartnership ? ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES : ALLOWED_TRUST_COUNTRIES,
|
|
1500
|
-
handleChangeFor: () => (e) => {
|
|
1501
|
-
handleChange("country", "input")(e);
|
|
1502
|
-
}
|
|
1503
|
-
}
|
|
1504
|
-
),
|
|
1505
|
-
formUtils.isRequiredField("legalName") && /* @__PURE__ */ jsx(
|
|
1506
|
-
Field,
|
|
1507
|
-
{
|
|
1508
|
-
name: "legalName",
|
|
1509
|
-
label: formUtils.getLabel(
|
|
1510
|
-
isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"
|
|
1511
|
-
),
|
|
1512
|
-
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
|
|
1513
|
-
isValid: valid?.legalName,
|
|
1514
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1515
|
-
InputText,
|
|
1516
|
-
{
|
|
1517
|
-
...childProps,
|
|
1518
|
-
name: "legalName",
|
|
1519
|
-
value: data?.legalName,
|
|
1520
|
-
readonly: formUtils.isReadOnly("legalName"),
|
|
1521
|
-
onInput: handleChange("legalName", "input"),
|
|
1522
|
-
onBlur: handleChange("legalName", "blur"),
|
|
1523
|
-
"aria-required": true,
|
|
1524
|
-
"aria-invalid": !valid?.legalName
|
|
1525
|
-
}
|
|
1526
|
-
)
|
|
1527
|
-
}
|
|
1528
|
-
),
|
|
1529
|
-
formUtils.isRequiredField("hasDoingBusinessAs") && /* @__PURE__ */ jsx(
|
|
1530
|
-
DBANameField,
|
|
1531
|
-
{
|
|
1532
|
-
data: formUtils.getFieldData(data, DBA_NAME_FIELD),
|
|
1533
|
-
valid: formUtils.getFieldValid(valid, DBA_NAME_FIELD),
|
|
1534
|
-
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, DBA_NAME_FIELD),
|
|
1535
|
-
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
1536
|
-
handleChangeFor: handleChange
|
|
1537
|
-
}
|
|
1538
|
-
),
|
|
1539
|
-
formUtils.isRequiredField("trustType") && !isUnincorporatedPartnership && /* @__PURE__ */ jsx(
|
|
1540
|
-
Field,
|
|
1541
|
-
{
|
|
1542
|
-
name: "trustType",
|
|
1543
|
-
label: formUtils.getLabel("trustType", "typeOfTrustAgreement"),
|
|
1544
|
-
errorMessage: formUtils.getErrorMessage("trustType", errors, fieldValidationErrors),
|
|
1545
|
-
isValid: valid?.trustType,
|
|
1546
|
-
dataTestId: "trust-type",
|
|
1547
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1548
|
-
Select,
|
|
1549
|
-
{
|
|
1550
|
-
...childProps,
|
|
1551
|
-
name: "trustType",
|
|
1552
|
-
onChange: changeTrustType,
|
|
1553
|
-
selected: data?.trustType,
|
|
1554
|
-
items: trustTypeOptions.map((trust) => ({
|
|
1555
|
-
id: trust,
|
|
1556
|
-
name: trustT(($) => $[trust])
|
|
1557
|
-
})),
|
|
1558
|
-
placeholder: trustT(($) => $["trustType"])
|
|
1559
|
-
}
|
|
1560
|
-
)
|
|
1561
|
-
}
|
|
1562
|
-
),
|
|
1563
|
-
formUtils.isRequiredField("objectOfTrust") && /* @__PURE__ */ jsx(
|
|
1564
|
-
Field,
|
|
1565
|
-
{
|
|
1566
|
-
name: "objectOfTrust",
|
|
1567
|
-
label: formUtils.getLabel("objectOfCharitableTrust"),
|
|
1568
|
-
helper: formUtils.getLabel("pleaseProvideThePurposeOfCharitableTrust"),
|
|
1569
|
-
errorMessage: formUtils.getErrorMessage("objectOfTrust", errors, fieldValidationErrors),
|
|
1570
|
-
isValid: valid?.objectOfTrust,
|
|
1571
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1572
|
-
InputText,
|
|
1573
|
-
{
|
|
1574
|
-
...childProps,
|
|
1575
|
-
name: "objectOfTrust",
|
|
1576
|
-
value: data?.objectOfTrust,
|
|
1577
|
-
readonly: formUtils.isReadOnly("objectOfTrust"),
|
|
1578
|
-
onInput: handleChange("objectOfTrust", "input"),
|
|
1579
|
-
onBlur: handleChange("objectOfTrust", "blur"),
|
|
1580
|
-
"aria-required": true,
|
|
1581
|
-
"aria-invalid": !valid?.objectOfTrust
|
|
1582
|
-
}
|
|
1583
|
-
)
|
|
1584
|
-
}
|
|
1585
|
-
),
|
|
1586
|
-
showField("taxInformation") && /* @__PURE__ */ jsx(
|
|
1587
|
-
TaxInformationField,
|
|
1588
|
-
{
|
|
1589
|
-
data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
|
|
1590
|
-
valid: formUtils.getFieldValid(valid, TAX_INFORMATION_FIELD),
|
|
1591
|
-
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, TAX_INFORMATION_FIELD),
|
|
1592
|
-
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, {
|
|
1593
|
-
exemptedFromTax: "iDontHaveATaxId"
|
|
1594
|
-
}),
|
|
1595
|
-
mask: formUtils.getMask("taxInformation"),
|
|
1596
|
-
readonly: formUtils.isReadOnly("taxInformation"),
|
|
1597
|
-
shouldValidate,
|
|
1598
|
-
handleChangeFor: handleChange,
|
|
1599
|
-
optional: formUtils.isOptionalField("taxInformation"),
|
|
1600
|
-
canExempt: formUtils.isRequiredField("exemptedFromTax"),
|
|
1601
|
-
country: data?.country,
|
|
1602
|
-
entityType: LegalEntityTypes.TRUST,
|
|
1603
|
-
defaultData: data?.taxInformation,
|
|
1604
|
-
registrationNumber: data.registrationNumber
|
|
1605
|
-
}
|
|
1606
|
-
),
|
|
1607
|
-
showField("registrationNumber") && /* @__PURE__ */ jsx(
|
|
1608
|
-
BusinessRegistrationNumberField,
|
|
1609
|
-
{
|
|
1610
|
-
data: formUtils.getFieldData(data, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
1611
|
-
valid: formUtils.getFieldValid(valid, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
1612
|
-
errors: formUtils.getFieldErrors(
|
|
1613
|
-
errors,
|
|
1614
|
-
fieldValidationErrors,
|
|
1615
|
-
BUSINESS_REGISTRATION_NUMBER_FIELD
|
|
1616
|
-
),
|
|
1617
|
-
labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, {
|
|
1618
|
-
exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber"
|
|
1619
|
-
}),
|
|
1620
|
-
mask: formUtils.getMask("registrationNumber"),
|
|
1621
|
-
helperText: getRegistrationNumberHelperText(trustT, {
|
|
1622
|
-
country,
|
|
1623
|
-
companyType: LegalEntityTypes.TRUST
|
|
1624
|
-
}),
|
|
1625
|
-
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
1626
|
-
optional: formUtils.isOptionalField("registrationNumber"),
|
|
1627
|
-
shouldValidate,
|
|
1628
|
-
handleChangeFor: handleChange,
|
|
1629
|
-
country,
|
|
1630
|
-
canExempt: formUtils.isRequiredField("exemptedFromRegistrationNumber"),
|
|
1631
|
-
companyType: LegalEntityTypes.TRUST
|
|
1632
|
-
}
|
|
1633
|
-
),
|
|
1634
|
-
showField("vatNumber") && /* @__PURE__ */ jsx(
|
|
1635
|
-
VatNumberField,
|
|
1636
|
-
{
|
|
1637
|
-
data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
|
|
1638
|
-
valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
|
|
1639
|
-
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, VAT_NUMBER_FIELD),
|
|
1640
|
-
labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, {
|
|
1641
|
-
exemptedFromVat: "iDontHaveAVatNumber"
|
|
1642
|
-
}),
|
|
1643
|
-
optional: formUtils.isOptionalField("vatNumber"),
|
|
1644
|
-
readonly: formUtils.isReadOnly("vatNumber"),
|
|
1645
|
-
handleChangeFor: handleChange,
|
|
1646
|
-
country,
|
|
1647
|
-
canExempt: formUtils.isRequiredField("exemptedFromVat")
|
|
1648
|
-
}
|
|
1649
|
-
)
|
|
1650
|
-
] });
|
|
1651
|
-
}
|
|
1652
|
-
const trustForms = {
|
|
1653
|
-
trustRegistrationDetails: {
|
|
1654
|
-
formId: "trustRegistrationDetails",
|
|
1655
|
-
fields: [...trustRegistrationDetailsFields]
|
|
1656
|
-
},
|
|
1657
|
-
trustRegistrationAddress: {
|
|
1658
|
-
formId: "trustRegistrationAddress"
|
|
1659
|
-
},
|
|
1660
|
-
trustConstitutionalDocument: {
|
|
1661
|
-
formId: "trustConstitutionalDocument"
|
|
1662
|
-
}
|
|
1663
|
-
};
|
|
1664
|
-
const trustRegistrationAddressFormId = trustForms.trustRegistrationAddress.formId;
|
|
1665
|
-
const trustRegistrationDetailsFormId = trustForms.trustRegistrationDetails.formId;
|
|
1666
|
-
const trustConstitutionalDocumentFormId = trustForms.trustConstitutionalDocument.formId;
|
|
1667
|
-
function TrustMultiform(props) {
|
|
1668
|
-
const { t } = useTranslation(["common", "trust"]);
|
|
1669
|
-
const { country, activeForm, taskType, shouldValidate, problems = {} } = props;
|
|
1670
|
-
const { form } = useFormContext();
|
|
1671
|
-
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
1672
|
-
function handleChange(formName, fieldName, mode) {
|
|
1673
|
-
return form.handleChangeFor(fieldName, formName, mode);
|
|
1674
|
-
}
|
|
1675
|
-
const renderActiveForm = (activeForm2) => {
|
|
1676
|
-
switch (activeForm2.formId) {
|
|
1677
|
-
case trustRegistrationDetailsFormId:
|
|
1678
|
-
return /* @__PURE__ */ jsx(
|
|
1679
|
-
TrustRegistrationDetailsMultiform,
|
|
1680
|
-
{
|
|
1681
|
-
heading: t(($) => $["registrationDetails"]),
|
|
1682
|
-
id: trustRegistrationDetailsFormId,
|
|
1683
|
-
taskType,
|
|
1684
|
-
shouldValidate,
|
|
1685
|
-
country
|
|
1686
|
-
}
|
|
1687
|
-
);
|
|
1688
|
-
case trustRegistrationAddressFormId:
|
|
1689
|
-
return /* @__PURE__ */ jsx(
|
|
1690
|
-
RegistrationAddressMultiform,
|
|
1691
|
-
{
|
|
1692
|
-
heading: t(($) => $["addressDetails"]),
|
|
1693
|
-
description: !isUnincorporatedPartnership ? t(($) => $["registeredAddressTrustHeaderDescription"], { ns: "trust" }) : t(($) => $["registeredAddressUnincorporatedPartnershipHeaderDescription"], {
|
|
1694
|
-
ns: "trust"
|
|
1695
|
-
}),
|
|
1696
|
-
id: trustRegistrationAddressFormId,
|
|
1697
|
-
country,
|
|
1698
|
-
problems,
|
|
1699
|
-
labels: {
|
|
1700
|
-
operationalAddressIsSame: !isUnincorporatedPartnership ? "isTrustOperationAddressSame" : "isPartnershipOperationAddressSame"
|
|
1701
|
-
},
|
|
1702
|
-
shouldValidate
|
|
1703
|
-
}
|
|
1704
|
-
);
|
|
1705
|
-
case trustConstitutionalDocumentFormId:
|
|
1706
|
-
return /* @__PURE__ */ jsx(
|
|
1707
|
-
MemoizedConstitutionalDocument,
|
|
1708
|
-
{
|
|
1709
|
-
id: activeForm2.formId,
|
|
1710
|
-
legalEntityType: isUnincorporatedPartnership ? LegalEntityTypes.UNINCORPORATED_PARTNERSHIP : LegalEntityTypes.TRUST,
|
|
1711
|
-
country,
|
|
1712
|
-
data: form.data?.trustConstitutionalDocument,
|
|
1713
|
-
errors: form.errors.trustConstitutionalDocument,
|
|
1714
|
-
valid: form.valid.trustConstitutionalDocument,
|
|
1715
|
-
allFields: form.allFields?.trustConstitutionalDocument,
|
|
1716
|
-
requiredFields: form.requiredFields?.trustConstitutionalDocument,
|
|
1717
|
-
optionalFields: form.optionalFields?.trustConstitutionalDocument,
|
|
1718
|
-
trustedFields: form.trustedFields?.trustConstitutionalDocument,
|
|
1719
|
-
handleFieldChange: () => handleChange("trustConstitutionalDocument", "constitutionalDocument"),
|
|
1720
|
-
shouldValidate,
|
|
1721
|
-
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
1722
|
-
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
1723
|
-
}
|
|
1724
|
-
);
|
|
1725
|
-
default:
|
|
1726
|
-
return null;
|
|
1727
|
-
}
|
|
1728
|
-
};
|
|
1729
|
-
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-trust", children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-form-wrapper", children: renderActiveForm(activeForm || trustForms.trustRegistrationDetails) }) });
|
|
1730
|
-
}
|
|
1731
|
-
function trustRegistrationDetailsValidators(country, trustRegistrationDetails = {}, isFeatureEnabled) {
|
|
1732
|
-
const isStrictNameAndAddressValidationEnabled = isFeatureEnabled(
|
|
1733
|
-
"StrictNameAndAddressValidationV4"
|
|
1734
|
-
);
|
|
1735
|
-
const defaultTrustRegistrationDetailsValidators = isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4 : trustRegistrationDetailsValidations;
|
|
1736
|
-
const { registrationNumberType, taxInformation, vatNumberType } = trustRegistrationDetails;
|
|
1737
|
-
return {
|
|
1738
|
-
...defaultTrustRegistrationDetailsValidators,
|
|
1739
|
-
hasDoingBusinessAs: doingBusinessAsAbsentFieldMetadata.validators,
|
|
1740
|
-
doingBusinessAs: doingBusinessAsFieldMetadata.validators,
|
|
1741
|
-
taxInformation: resolveFieldMetadata(
|
|
1742
|
-
taxInformationDefaultFieldConfig[country],
|
|
1743
|
-
{
|
|
1744
|
-
taxIdNumberType: taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
1745
|
-
companyType: LegalEntityTypes.TRUST
|
|
1746
|
-
},
|
|
1747
|
-
taxInformationDefaultFieldMetadata
|
|
1748
|
-
)?.validators,
|
|
1749
|
-
exemptedFromTax: resolveFieldMetadata(
|
|
1750
|
-
exemptedFromTaxDefaultFieldConfig[country],
|
|
1751
|
-
{},
|
|
1752
|
-
exemptedFromTaxDefaultFieldMetadata
|
|
1753
|
-
)?.validators,
|
|
1754
|
-
registrationNumber: resolveFieldMetadata(
|
|
1755
|
-
registrationNumberDefaultFieldConfig[country],
|
|
1756
|
-
{
|
|
1757
|
-
companyType: LegalEntityTypes.TRUST,
|
|
1758
|
-
registrationNumberType,
|
|
1759
|
-
isFeatureEnabled
|
|
1760
|
-
},
|
|
1761
|
-
registrationNumberDefaultFieldMetadata
|
|
1762
|
-
)?.validators,
|
|
1763
|
-
exemptedFromRegistrationNumber: resolveFieldMetadata(
|
|
1764
|
-
exemptFromRegistrationNumberDefaultFieldConfig[country],
|
|
1765
|
-
{},
|
|
1766
|
-
exemptFromRegistrationNumberDefaultFieldMetadata
|
|
1767
|
-
)?.validators,
|
|
1768
|
-
vatNumber: resolveFieldMetadata(
|
|
1769
|
-
defaultFieldConfig[country],
|
|
1770
|
-
{ vatNumberType },
|
|
1771
|
-
defaultFieldMetadata
|
|
1772
|
-
)?.validators
|
|
1773
|
-
};
|
|
1774
|
-
}
|
|
1775
|
-
const parseTrustScenarios = (scenarios, country) => augmentWithCountryConfigs(
|
|
1776
|
-
trustCountryConfig[country],
|
|
1777
|
-
composePerScenarioFormConfigurations(scenarios, trustFieldsPerScenario)
|
|
1778
|
-
);
|
|
1779
|
-
const parseConfiguration = ({ scenarios, country }) => parseTrustScenarios(scenarios, country);
|
|
1780
|
-
function TrustMultiformDropin({
|
|
1781
|
-
parentLegalEntity,
|
|
1782
|
-
country: countryProp,
|
|
1783
|
-
existingTrust,
|
|
1784
|
-
taskType,
|
|
1785
|
-
problems: problemsProp,
|
|
1786
|
-
onSubmit: externalOnSubmit,
|
|
1787
|
-
handleHomeClick
|
|
1788
|
-
}) {
|
|
1789
|
-
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
1790
|
-
const { t, i18n } = useTranslation(["common", "trust"]);
|
|
1791
|
-
const [validationErrors, setValidationErrors] = useState();
|
|
1792
|
-
const datasetUtils = datasetUtilities(i18n.language);
|
|
1793
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
1794
|
-
const { showToast } = useToastContext();
|
|
1795
|
-
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
1796
|
-
const [country, setCountry] = useState(countryProp);
|
|
1797
|
-
useRef(null);
|
|
1798
|
-
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
1799
|
-
const problems = useMemo(
|
|
1800
|
-
() => ({
|
|
1801
|
-
...problemsProp,
|
|
1802
|
-
validationErrors
|
|
1803
|
-
}),
|
|
1804
|
-
[problemsProp, validationErrors]
|
|
1805
|
-
);
|
|
1806
|
-
const trustData = useMemo(() => {
|
|
1807
|
-
if (!existingTrust)
|
|
1808
|
-
return {
|
|
1809
|
-
trustRegistrationDetails: {
|
|
1810
|
-
country: countryProp
|
|
1811
|
-
}
|
|
1812
|
-
};
|
|
1813
|
-
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust, isFeatureEnabled) : mapLegalEntityToTrust(existingTrust, isFeatureEnabled);
|
|
1814
|
-
}, [isFeatureEnabled, existingTrust, isUnincorporatedPartnership, countryProp]);
|
|
1815
|
-
const [initialData, setInitialData] = useState(trustData);
|
|
1816
|
-
const documentUtils = documentApiUtils({
|
|
1817
|
-
baseUrl: baseUrl.value,
|
|
1818
|
-
rootLegalEntityId: rootLegalEntityId.value
|
|
1819
|
-
});
|
|
1820
|
-
useEffect(() => {
|
|
1821
|
-
if (!existingTrust?.documentDetails?.length) return;
|
|
1822
|
-
documentUtils.fetchDocuments(existingTrust.documentDetails, existingTrust.id).then(() => {
|
|
1823
|
-
const mappedDocuments = mapApiDocumentToTrustDocument(existingTrust.id);
|
|
1824
|
-
setInitialData((prev) => ({
|
|
1825
|
-
...prev,
|
|
1826
|
-
...mappedDocuments
|
|
1827
|
-
}));
|
|
1828
|
-
}).catch(() => {
|
|
1829
|
-
showToast({ label: t(($) => $["failedToFetchRelevantDocuments"]), variant: "error" });
|
|
1830
|
-
});
|
|
1831
|
-
}, []);
|
|
1832
|
-
const [derivedProps, setDerivedProps] = useState();
|
|
1833
|
-
const buildTrustValidations = useCallback(
|
|
1834
|
-
(data) => {
|
|
1835
|
-
return {
|
|
1836
|
-
trustRegistrationDetails: trustRegistrationDetailsValidators(
|
|
1837
|
-
country,
|
|
1838
|
-
data?.trustRegistrationDetails,
|
|
1839
|
-
isFeatureEnabled
|
|
1840
|
-
)
|
|
1841
|
-
};
|
|
1842
|
-
},
|
|
1843
|
-
[country, isFeatureEnabled]
|
|
1844
|
-
);
|
|
1845
|
-
const multiForm = useMultiForm({
|
|
1846
|
-
defaultData: initialData,
|
|
1847
|
-
allFields: derivedProps?.allFields,
|
|
1848
|
-
requiredFields: derivedProps?.requiredFields,
|
|
1849
|
-
optionalFields: derivedProps?.optionalFields,
|
|
1850
|
-
obscuredFields: derivedProps?.obscuredFields,
|
|
1851
|
-
trustedFields: derivedProps?.trustedFields,
|
|
1852
|
-
rules: buildTrustValidations
|
|
1853
|
-
});
|
|
1854
|
-
const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
|
|
1855
|
-
parseConfiguration,
|
|
1856
|
-
legalEntityType: LegalEntityTypes.TRUST,
|
|
1857
|
-
setLoadingStatus,
|
|
1858
|
-
country
|
|
1859
|
-
});
|
|
1860
|
-
const fieldsFromCustomRules = useMemo(
|
|
1861
|
-
() => rules({
|
|
1862
|
-
data: multiForm.data,
|
|
1863
|
-
country,
|
|
1864
|
-
taskType
|
|
1865
|
-
}),
|
|
1866
|
-
[country, multiForm.data, taskType, requiredFields]
|
|
1867
|
-
);
|
|
1868
|
-
useEffect(() => {
|
|
1869
|
-
const props = getPropsFromConfigurations({
|
|
1870
|
-
scenarioConfiguration: fieldConfigurations,
|
|
1871
|
-
forms: trustForms$1,
|
|
1872
|
-
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
1873
|
-
dataMissingErrors: problems?.missingData ?? [],
|
|
1874
|
-
fieldsWithExistingData: existingTrust ? getFieldsWithExistingData(existingTrust, trustApiKeyMapping, trustDocumentMapping) : [],
|
|
1875
|
-
customRules: fieldsFromCustomRules,
|
|
1876
|
-
legalEntityType: existingTrust?.type
|
|
1877
|
-
});
|
|
1878
|
-
setDerivedProps(props);
|
|
1879
|
-
}, [
|
|
1880
|
-
fieldConfigurations,
|
|
1881
|
-
problems?.remediationActions,
|
|
1882
|
-
problems?.missingData,
|
|
1883
|
-
existingTrust,
|
|
1884
|
-
fieldsFromCustomRules
|
|
1885
|
-
]);
|
|
1886
|
-
const [prevCountry, setPrevCountry] = useState(multiForm.data.trustRegistrationDetails?.country);
|
|
1887
|
-
if (multiForm.data.trustRegistrationDetails?.country && prevCountry !== multiForm.data.trustRegistrationDetails?.country) {
|
|
1888
|
-
setCountry(multiForm.data?.trustRegistrationDetails?.country ?? countryProp);
|
|
1889
|
-
setPrevCountry(multiForm.data.trustRegistrationDetails?.country);
|
|
1890
|
-
}
|
|
1891
|
-
const forms = useMemo(() => {
|
|
1892
|
-
const requiredForms = getRequiredForms(
|
|
1893
|
-
trustForms$1,
|
|
1894
|
-
derivedProps?.requiredFields,
|
|
1895
|
-
derivedProps?.optionalFields
|
|
1896
|
-
);
|
|
1897
|
-
return addValidityToForms(requiredForms, multiForm.isValid, problems);
|
|
1898
|
-
}, [derivedProps, multiForm.isValid, problems]);
|
|
1899
|
-
const onSubmitTrust = async () => {
|
|
1900
|
-
setLoadingStatus("loading");
|
|
1901
|
-
const trustDetails = mapTrustToLegalEntity(multiForm.data, isFeatureEnabled);
|
|
1902
|
-
try {
|
|
1903
|
-
const updatedTrust = await submitTrustDetails(trustDetails);
|
|
1904
|
-
await submitDocuments({ forms, legalEntity: updatedTrust, dataSubmitted: multiForm.data });
|
|
1905
|
-
await attachTrustToParentLegalEntity(updatedTrust);
|
|
1906
|
-
setLoadingStatus("success");
|
|
1907
|
-
showToast({ label: t(($) => $["successfullyUpdatedDetails"]), variant: "success" });
|
|
1908
|
-
externalOnSubmit?.(multiForm.data);
|
|
1909
|
-
} catch (e) {
|
|
1910
|
-
showToast({ label: t(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
1911
|
-
if (isValidationError(e)) {
|
|
1912
|
-
setValidationErrors(processValidationErrors(e, taskType));
|
|
1913
|
-
} else if (isMaintenanceModeError(e)) {
|
|
1914
|
-
showToast({
|
|
1915
|
-
label: t(($) => $["maintenanceModeMessage"]),
|
|
1916
|
-
variant: "error",
|
|
1917
|
-
duration: "indefinite"
|
|
1918
|
-
});
|
|
1919
|
-
}
|
|
1920
|
-
setLoadingStatus("success");
|
|
1921
|
-
}
|
|
1922
|
-
};
|
|
1923
|
-
const onSubmitUnincorporatedPartnership = async () => {
|
|
1924
|
-
setLoadingStatus("loading");
|
|
1925
|
-
const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(
|
|
1926
|
-
multiForm.data,
|
|
1927
|
-
isFeatureEnabled
|
|
1928
|
-
);
|
|
1929
|
-
try {
|
|
1930
|
-
const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(
|
|
1931
|
-
unincorporatedPartnershipDetails
|
|
1932
|
-
);
|
|
1933
|
-
await submitDocuments({
|
|
1934
|
-
forms,
|
|
1935
|
-
legalEntity: updatedUnincorporatedPartnershipDetails,
|
|
1936
|
-
dataSubmitted: multiForm.data
|
|
1937
|
-
});
|
|
1938
|
-
await attachTrustToParentLegalEntity(updatedUnincorporatedPartnershipDetails);
|
|
1939
|
-
setLoadingStatus("success");
|
|
1940
|
-
showToast({ label: t(($) => $["successfullyUpdatedDetails"]), variant: "success" });
|
|
1941
|
-
externalOnSubmit?.(multiForm.data);
|
|
1942
|
-
} catch (e) {
|
|
1943
|
-
showToast({ label: t(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
1944
|
-
if (isValidationError(e)) {
|
|
1945
|
-
setValidationErrors(processValidationErrors(e, taskType));
|
|
1946
|
-
} else if (isMaintenanceModeError(e)) {
|
|
1947
|
-
showToast({
|
|
1948
|
-
label: t(($) => $["maintenanceModeMessage"]),
|
|
1949
|
-
variant: "error",
|
|
1950
|
-
duration: "indefinite"
|
|
1951
|
-
});
|
|
1952
|
-
}
|
|
1953
|
-
setLoadingStatus("success");
|
|
1954
|
-
}
|
|
1955
|
-
};
|
|
1956
|
-
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
1957
|
-
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
1958
|
-
const submitTrustDetails = async (legalEntity) => {
|
|
1959
|
-
if (!existingTrust) {
|
|
1960
|
-
return await createLegalEntity(legalEntity);
|
|
1961
|
-
} else {
|
|
1962
|
-
return await updateLegalEntity({
|
|
1963
|
-
...drop("type").from(legalEntity),
|
|
1964
|
-
id: existingTrust.id
|
|
1965
|
-
});
|
|
1966
|
-
}
|
|
1967
|
-
};
|
|
1968
|
-
const submitDocuments = async ({
|
|
1969
|
-
forms: forms2,
|
|
1970
|
-
legalEntity,
|
|
1971
|
-
dataSubmitted
|
|
1972
|
-
}) => {
|
|
1973
|
-
if (isDocumentsRequired(forms2)) {
|
|
1974
|
-
const formattedDocument = await mapTrustDocumentToApiDocument(dataSubmitted, legalEntity.id);
|
|
1975
|
-
if (formattedDocument) {
|
|
1976
|
-
await documentUtils.uploadDocuments([formattedDocument], legalEntity.id);
|
|
1977
|
-
}
|
|
1978
|
-
}
|
|
1979
|
-
};
|
|
1980
|
-
const isDocumentsRequired = (forms2) => forms2.some((form) => form.formId === trustForms$1.trustConstitutionalDocument.formId);
|
|
1981
|
-
const attachTrustToParentLegalEntity = async (trust) => {
|
|
1982
|
-
if (existingTrust?.id) {
|
|
1983
|
-
return;
|
|
1984
|
-
}
|
|
1985
|
-
const existingEntityAssociations = getOwnEntityAssociations(parentLegalEntity);
|
|
1986
|
-
const updatedParentLegalEntity = {
|
|
1987
|
-
entityAssociations: [
|
|
1988
|
-
{
|
|
1989
|
-
type: trust.type,
|
|
1990
|
-
legalEntityId: trust.id
|
|
1991
|
-
},
|
|
1992
|
-
...existingEntityAssociations
|
|
1993
|
-
]
|
|
1994
|
-
};
|
|
1995
|
-
await updateLegalEntity({ ...updatedParentLegalEntity, id: parentLegalEntity.id });
|
|
1996
|
-
};
|
|
1997
|
-
const formatDataForSummary = useCallback(
|
|
1998
|
-
(formData, forms2) => {
|
|
1999
|
-
let summaryData2 = cloneObject(formData) || {};
|
|
2000
|
-
const country2 = formData.trustRegistrationDetails?.country ?? (existingTrust ? getLegalEntityCountry(existingTrust) : getLegalEntityCountry(parentLegalEntity));
|
|
2001
|
-
if (formData.trustRegistrationDetails) {
|
|
2002
|
-
const trustCountry = formData.trustRegistrationDetails.country && datasetUtils.getCountryName(formData.trustRegistrationDetails.country);
|
|
2003
|
-
const trustType = formData.trustRegistrationDetails.trustType && t(($) => $[formData.trustRegistrationDetails.trustType], { ns: "trust" });
|
|
2004
|
-
const registrationNumberLabel = resolveFieldMetadata(
|
|
2005
|
-
registrationNumberDefaultFieldConfig[country2],
|
|
2006
|
-
{
|
|
2007
|
-
companyType: LegalEntityTypes.TRUST,
|
|
2008
|
-
registrationNumberType: formData.trustRegistrationDetails.registrationNumber ? inferCompanyRegistrationNumberType(
|
|
2009
|
-
formData.trustRegistrationDetails.registrationNumber,
|
|
2010
|
-
country2,
|
|
2011
|
-
LegalEntityTypes.TRUST
|
|
2012
|
-
) : getCompanyRegistrationNumberOptions(country2, LegalEntityTypes.TRUST)?.[0]?.id
|
|
2013
|
-
},
|
|
2014
|
-
registrationNumberDefaultFieldMetadata
|
|
2015
|
-
).label;
|
|
2016
|
-
const taxIdLabel = resolveFieldMetadata(
|
|
2017
|
-
taxInformationDefaultFieldConfig[country2],
|
|
2018
|
-
{
|
|
2019
|
-
companyType: LegalEntityTypes.TRUST,
|
|
2020
|
-
taxIdNumberType: countryToTaxInfoTypeMap[country2]
|
|
2021
|
-
},
|
|
2022
|
-
taxInformationDefaultFieldMetadata
|
|
2023
|
-
).label;
|
|
2024
|
-
summaryData2.trustRegistrationDetails = {
|
|
2025
|
-
[isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"]: formData.trustRegistrationDetails?.legalName,
|
|
2026
|
-
doingBusinessAs: formData.trustRegistrationDetails?.doingBusinessAs,
|
|
2027
|
-
countryRegionOfEstablishment: trustCountry,
|
|
2028
|
-
typeOfTrustAgreement: isUnincorporatedPartnership ? void 0 : trustType,
|
|
2029
|
-
objectOfTrust: formData.trustRegistrationDetails?.objectOfTrust,
|
|
2030
|
-
[taxIdLabel]: formData.trustRegistrationDetails?.taxInformation?.find(
|
|
2031
|
-
(taxId) => country2 === taxId.country
|
|
2032
|
-
)?.number,
|
|
2033
|
-
[registrationNumberLabel]: formData.trustRegistrationDetails.registrationNumber
|
|
2034
|
-
};
|
|
2035
|
-
}
|
|
2036
|
-
if (formData.trustRegistrationAddress?.registrationAddress) {
|
|
2037
|
-
summaryData2.trustRegistrationAddress.hasInnerForms = true;
|
|
2038
|
-
summaryData2.trustRegistrationAddress.registrationAddress = mapAddressLabels(
|
|
2039
|
-
formData.trustRegistrationAddress.registrationAddress,
|
|
2040
|
-
datasetUtils
|
|
2041
|
-
);
|
|
2042
|
-
}
|
|
2043
|
-
if (formData.trustRegistrationAddress?.operationalAddress) {
|
|
2044
|
-
summaryData2.trustRegistrationAddress.operationalAddress = mapAddressLabels(
|
|
2045
|
-
formData.trustRegistrationAddress.operationalAddress,
|
|
2046
|
-
datasetUtils
|
|
2047
|
-
);
|
|
2048
|
-
}
|
|
2049
|
-
if (isDocumentsRequired(forms2)) {
|
|
2050
|
-
summaryData2 = {
|
|
2051
|
-
...summaryData2,
|
|
2052
|
-
...formatFileSummaryData(formData.trustConstitutionalDocument)
|
|
2053
|
-
};
|
|
2054
|
-
} else {
|
|
2055
|
-
delete summaryData2[trustConstitutionalDocumentFormId$1];
|
|
2056
|
-
}
|
|
2057
|
-
return summaryData2;
|
|
2058
|
-
},
|
|
2059
|
-
[datasetUtils, existingTrust, isUnincorporatedPartnership, parentLegalEntity, t]
|
|
2060
|
-
);
|
|
2061
|
-
const formatFileSummaryData = (trustConstitutionalDocument) => {
|
|
2062
|
-
const constitutionalDocument = trustConstitutionalDocument?.constitutionalDocument?.[0];
|
|
2063
|
-
return {
|
|
2064
|
-
...constitutionalDocument && {
|
|
2065
|
-
trustConstitutionalDocument: {
|
|
2066
|
-
fileName: constitutionalDocument.name
|
|
2067
|
-
}
|
|
2068
|
-
}
|
|
2069
|
-
};
|
|
2070
|
-
};
|
|
2071
|
-
const {
|
|
2072
|
-
handleNextClick,
|
|
2073
|
-
handleBackClick,
|
|
2074
|
-
activeForm,
|
|
2075
|
-
shouldValidate,
|
|
2076
|
-
gotoFormByFormIndex,
|
|
2077
|
-
gotoFormByFormId,
|
|
2078
|
-
steps
|
|
2079
|
-
} = useFormComposer({
|
|
2080
|
-
problems,
|
|
2081
|
-
forms,
|
|
2082
|
-
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust,
|
|
2083
|
-
triggerValidation: multiForm.triggerValidation
|
|
2084
|
-
});
|
|
2085
|
-
const summaryData = useMemo(
|
|
2086
|
-
() => formatDataForSummary(multiForm.data, forms),
|
|
2087
|
-
[formatDataForSummary, multiForm.data, forms]
|
|
2088
|
-
);
|
|
2089
|
-
return /* @__PURE__ */ jsx(FormContextProvider, { form: multiForm, children: /* @__PURE__ */ jsx(
|
|
2090
|
-
FormFlow,
|
|
2091
|
-
{
|
|
2092
|
-
summary: {
|
|
2093
|
-
data: summaryData,
|
|
2094
|
-
omitted: {
|
|
2095
|
-
keys: ["operationalAddressIsSame"]
|
|
2096
|
-
}
|
|
2097
|
-
},
|
|
2098
|
-
currentStep: steps.current,
|
|
2099
|
-
totalSteps: steps.total,
|
|
2100
|
-
forms,
|
|
2101
|
-
activeForm,
|
|
2102
|
-
gotoFormByFormIndex,
|
|
2103
|
-
gotoFormByFormId,
|
|
2104
|
-
handleNextClick,
|
|
2105
|
-
handleBackClick,
|
|
2106
|
-
handleCancelClick: handleHomeClick,
|
|
2107
|
-
loadingStatus,
|
|
2108
|
-
children: /* @__PURE__ */ jsx(
|
|
2109
|
-
TrustMultiform,
|
|
2110
|
-
{
|
|
2111
|
-
country,
|
|
2112
|
-
activeForm,
|
|
2113
|
-
taskType,
|
|
2114
|
-
shouldValidate,
|
|
2115
|
-
problems
|
|
2116
|
-
}
|
|
2117
|
-
)
|
|
2118
|
-
}
|
|
2119
|
-
) });
|
|
2120
|
-
}
|
|
2121
|
-
const TrustDetailsPage = ({
|
|
2122
|
-
taskType,
|
|
2123
|
-
trustId,
|
|
2124
|
-
handleHomeClick,
|
|
2125
|
-
onSubmit
|
|
2126
|
-
}) => {
|
|
2127
|
-
const { i18n } = useTranslation();
|
|
2128
|
-
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
2129
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
2130
|
-
const associationType = taskType === "TRUST" ? LegalEntityTypes.TRUST : LegalEntityTypes.UNINCORPORATED_PARTNERSHIP;
|
|
2131
|
-
const { data: associatedEntity, isLoading: isAssociatedEntityLoading } = useAssociatedLegalEntity(
|
|
2132
|
-
rootLe,
|
|
2133
|
-
associationType
|
|
2134
|
-
);
|
|
2135
|
-
const { data: trustLeFromProp, isLoading: isTrustLeFromPropLoading } = useLegalEntity(
|
|
2136
|
-
trustId ?? skipToken
|
|
2137
|
-
);
|
|
2138
|
-
const trustLe = trustLeFromProp ?? associatedEntity;
|
|
2139
|
-
addResourceBundles(i18n, [
|
|
2140
|
-
{ ns: "trust", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-89Mw-9Lv.js"), "../language/cs-CZ.json": () => import("./cs-CZ-CTxXvHtH.js"), "../language/da-DK.json": () => import("./da-DK-D_TOcmOO.js"), "../language/de-DE.json": () => import("./de-DE-DYzAiXHM.js"), "../language/el-GR.json": () => import("./el-GR-DItzpoar.js"), "../language/en-US.json": () => import("./en-US-DPoDE0uz.js"), "../language/es-ES.json": () => import("./es-ES-BmH6eADf.js"), "../language/et-EE.json": () => import("./et-EE-DSZa_33d.js"), "../language/fi-FI.json": () => import("./fi-FI-DJ8BbVPT.js"), "../language/fr-FR.json": () => import("./fr-FR-D533_MOG.js"), "../language/hr-HR.json": () => import("./hr-HR-CIxdonpk.js"), "../language/hu-HU.json": () => import("./hu-HU--6ZxXlbV.js"), "../language/it-IT.json": () => import("./it-IT-B5cf2VTN.js"), "../language/ja-JP.json": () => import("./ja-JP-DY4CJlUf.js"), "../language/lt-LT.json": () => import("./lt-LT-CkjEvGSp.js"), "../language/lv-LV.json": () => import("./lv-LV-BdZK9nQA.js"), "../language/nl-NL.json": () => import("./nl-NL-YcL7Gufl.js"), "../language/no-NO.json": () => import("./no-NO-KkYB-VQD.js"), "../language/pl-PL.json": () => import("./pl-PL-CPdKf-J0.js"), "../language/pt-BR.json": () => import("./pt-BR-ERWeus3c.js"), "../language/pt-PT.json": () => import("./pt-PT-DUTGt5L5.js"), "../language/ro-RO.json": () => import("./ro-RO-BnFjok5O.js"), "../language/sk-SK.json": () => import("./sk-SK-CLPd85I3.js"), "../language/sl-SI.json": () => import("./sl-SI-T9_Ty-NS.js"), "../language/sv-SE.json": () => import("./sv-SE-3-h2VlYi.js") }), `../language/${lang}.json`, 3) }
|
|
2141
|
-
]);
|
|
2142
|
-
const capabilities = useCapabilities();
|
|
2143
|
-
const capabilityNames = capabilities ? keysOf(capabilities) : [];
|
|
2144
|
-
const capabilityProblems = useCapabilityProblems();
|
|
2145
|
-
const problems = capabilityProblems && trustLe?.id ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, trustLe.id) : void 0;
|
|
2146
|
-
if (!rootLe || isAssociatedEntityLoading || isTrustLeFromPropLoading) {
|
|
2147
|
-
return /* @__PURE__ */ jsx(Loader, {});
|
|
2148
|
-
}
|
|
2149
|
-
const country = getLegalEntityCountry(trustLe ?? rootLe);
|
|
2150
|
-
const TrustPageDropin = isFeatureEnabled("EnableMultiFormInTrustFlow") ? TrustMultiformDropin : TrustDropin;
|
|
2151
|
-
return /* @__PURE__ */ jsx(
|
|
2152
|
-
TrustPageDropin,
|
|
2153
|
-
{
|
|
2154
|
-
taskType,
|
|
2155
|
-
problems,
|
|
2156
|
-
existingTrust: trustLe,
|
|
2157
|
-
parentLegalEntity: rootLe,
|
|
2158
|
-
capabilities: capabilityNames,
|
|
2159
|
-
country,
|
|
2160
|
-
handleHomeClick,
|
|
2161
|
-
onSubmit
|
|
2162
|
-
}
|
|
2163
|
-
);
|
|
2164
|
-
};
|
|
2165
|
-
export {
|
|
2166
|
-
TrustDetailsPage
|
|
2167
|
-
};
|