@adyen/kyc-components 4.7.1 → 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-CFuKCmzi.js +0 -653
- package/dist/AccountSetupRejected-CJO8fFLr.js +0 -23
- package/dist/ActionBar-DW4IMRZg.js +0 -31
- package/dist/Address-Czpdu7Iv.js +0 -1109
- package/dist/Avatar-CaZQ-oyL.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-CvmqdPg-.js +0 -55
- package/dist/BusinessFinancingDropin-CA5D0PgR.js +0 -2271
- package/dist/BusinessFinancingPage-CcCpkh2o.js +0 -43
- package/dist/BusinessTypeSelectionPage-DxpkzhZp.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-BbVX_nZi.js +0 -74
- package/dist/Confirm-DW7YOE1F.js +0 -64
- package/dist/ConstitutionalDocument-CK6FFFwg.js +0 -2631
- package/dist/ContactDetails-Dx7dJnqB.js +0 -389
- package/dist/ContextGuidance-C7HDkmZU.js +0 -33
- package/dist/ContractViewer-DcQHIGMU.js +0 -935
- package/dist/CountryField-CAgo6wFJ.js +0 -64
- package/dist/CreateIndividualComponent-BP_biPqN.js +0 -65
- package/dist/CreateTransferInstrumentComponent-CAg8dLjP.js +0 -56
- package/dist/Currency-DUnZGkXH.js +0 -232
- package/dist/CustomerSupport-D2iXL505.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-CUcMO4o_.js +0 -444
- package/dist/DecisionMakerDetails-Bp33aJUr.js +0 -275
- package/dist/DecisionMakerDetailsPage-DSFo-4Sk.js +0 -104
- package/dist/DecisionMakers-Bnvwoz_7.js +0 -680
- package/dist/DetailViewLayout-Z9cuUp4X.js +0 -65
- package/dist/Dropzone-F8Ut9D_V.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-GocVl-7i.js +0 -97
- package/dist/EndStateLayout-BBLxK9Q1.js +0 -71
- package/dist/EntityAssociation-CpVhhf1f.js +0 -177
- package/dist/EntityGuidanceStatus-BBdOh7as.js +0 -106
- package/dist/ErrorPanel-D3OmtL80.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-ClKiPVDa.js +0 -141
- package/dist/FormNavigation-CbHvKnKB.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-DChMs8iu.js +0 -390
- package/dist/IndividualDropin-D--ImJNx.js +0 -5743
- package/dist/InputDate-BajoDzsK.js +0 -43
- package/dist/InputGroup-WBfGDV5F.js +0 -32
- package/dist/InputText-C8kj07ZB.js +0 -134
- package/dist/Introduction-ejHrYyaC.js +0 -251
- package/dist/InvitedDecisionMakerComponent-BUrtBWme.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-BpaKGrVA.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-B_Cw3o3Q.js +0 -61
- package/dist/LegalCompanyNameField-BRzGJ-Ov.js +0 -138
- package/dist/LegalRepresentativeDetailsPage-D71SlyLs.js +0 -55
- package/dist/Link-DS54L_TE.js +0 -35
- package/dist/List-BAzyC6sw.js +0 -83
- package/dist/ListItem-CFcOIT6E.js +0 -69
- package/dist/LoaderWrapper-DvyhRweQ.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-BXxl7p95.js +0 -46
- package/dist/ManageTermsOfServiceComponent-4e_ydA_6.js +0 -52
- package/dist/ManageTransferInstrumentComponent-D52NH0jS.js +0 -290
- package/dist/MaskedInput-ApBB9ewS.js +0 -811
- package/dist/MaybeModal-l7k-LBMJ.js +0 -36
- package/dist/Modal-C5mnAneL.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-BVk4_a2-.js +0 -81
- package/dist/NewSummary-R9k7ZbPo.js +0 -60
- package/dist/OnboardingDropinComponent-45YclRJI.js +0 -3291
- 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-1vKgokN-.js +0 -4226
- package/dist/PayoutDetailsPage-CXwueRbW.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-CbeNPI_8.js +0 -100
- package/dist/Review-DzrxzNY0.js +0 -82
- package/dist/RootBusinessDetailsPage-eStzwQJf.js +0 -50
- package/dist/RootBusinessLinesPage-omnttABd.js +0 -1538
- package/dist/RootIndividualDetailsPage-BcxaLjad.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-Czm2JclY.js +0 -868
- package/dist/SignPCIComponent-DXAeetcT.js +0 -301
- package/dist/SingpassSelection-CPgrgp4C.js +0 -269
- package/dist/SoleProprietorshipPage-DmIKoFtO.js +0 -50
- package/dist/SourceOfFundsPage-DofHZlzT.js +0 -2335
- package/dist/Spacer-BK3jDget.js +0 -18
- package/dist/StepProgressIndicator-rIXID-AK.js +0 -78
- package/dist/StoreProvider-Bt6bLVE-.js +0 -5560
- package/dist/StructuredList-CNha20ka.js +0 -61
- package/dist/Summary-BUJLYAgF.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-CknxoOIl.js +0 -3498
- package/dist/TaxReportingDropin-Bn4a54-x.js +0 -501
- package/dist/TextArea-CKD5zTKW.js +0 -103
- package/dist/TileGroup-UvRO_GGK.js +0 -203
- package/dist/TrustDetailsPage-BBg2UhIm.js +0 -2167
- package/dist/TrustMemberCompanyPage-sG_Tsffg.js +0 -68
- package/dist/TrustMemberIndividualPage-Cpk0LIwl.js +0 -64
- package/dist/TrustMemberRoleAndTypePage-h8cM9Ltb.js +0 -1078
- package/dist/TrustMembersOverview-Hqb3o_y6.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-CdpFVv2I.js +0 -63
- package/dist/UnincorporatedPartnershipMemberCompanyPage-CuOQsMrw.js +0 -71
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BLcsgLCP.js +0 -291
- package/dist/UnincorporatedPartnershipMembersOverview-ClQQnnrs.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-Clxb4YjL.js +0 -79
- package/dist/ViewVerificationStatusComponent-yJyifkQm.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-DsUdZgzH.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-2G1K0mHC.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-D3x5I-79.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-C1nur8r7.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-B_JUBLVR.js +0 -41
- package/dist/getProblemsForEntity-BSfnPYoe.js +0 -24
- package/dist/getProps-Cc3J2-z9.js +0 -148
- package/dist/getTrustedFields-CEoqo2CR.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-CpSE7NAw.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-CprkdtHL.js +0 -16
- package/dist/jpAddressSchema-DEOyz9Yo.js +0 -26
- package/dist/localizeDateString-BLDvqFOU.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-DUgMBW9t.js +0 -157
- package/dist/mapJpAddressSchemaToAddressLocalizations-BXIw8J3t.js +0 -54
- package/dist/mapLegalEntityToIndividualSchema-BRQ51OQI.js +0 -204
- package/dist/mapTransferInstrumentToPayoutAccount-DaLPVgIK.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-ChSKB1LF.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-0N8_moed.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-DNb-fWox.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-RNyhTkW8.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-CuLbD5YE.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-C7ANBXKc.js +0 -144
- package/dist/types-CJnNafzu.js +0 -64
- package/dist/types-DqaPuyRe.js +0 -34
- package/dist/types-Ds3BWDI-.js +0 -74
- package/dist/types-Dv0COrvY.js +0 -37
- package/dist/unincorporated-partnership-DDPy7qIp.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-R9-aucnr.js +0 -34
- package/dist/useBusinessDetailsData-BKgf0j8T.js +0 -5420
- package/dist/useCreateLegalEntity-BEEy8g0o.js +0 -32
- package/dist/useForm-BQaffiEa.js +0 -582
- package/dist/useFormContext-BZwb6dry.js +0 -211
- package/dist/useGlobalData-RPqQO2_m.js +0 -199
- package/dist/useId-BZ0PA7jP.js +0 -24
- package/dist/useMultiForm-DrspjU-_.js +0 -879
- package/dist/useOnboardingStatus-Cx2RfslI.js +0 -28
- package/dist/useScenarios-ZY51ox86.js +0 -48
- package/dist/useTermsOfServiceStatus-C_6N4XIw.js +0 -43
- package/dist/useToastContext-CKEFuMZU.js +0 -49
- package/dist/useUnincorporatedPartnershipMembers-B0loJKYp.js +0 -99
- package/dist/useUpdateBusinessLines-bS2l9wAZ.js +0 -337
- package/dist/useUpdateLegalEntity-5AD9uK8f.js +0 -40
- package/dist/utils-4YBHq5mh.js +0 -29
- package/dist/utils-BuiPHqFZ.js +0 -58
- package/dist/utils-BzAU2BN1.js +0 -811
- package/dist/utils-CqJ09Ne0.js +0 -237
- package/dist/utils-DNSfZiio.js +0 -70
- package/dist/utils-DpBs-qSJ.js +0 -179
- package/dist/validate-BMFS_55S.js +0 -120
- package/dist/validate-CmVYROUS.js +0 -434
- package/dist/validationError-CSob70hx.js +0 -86
- package/dist/view-verification-status-VFcBydkR.js +0 -21
- package/dist/warning-circle-fill-DBvt921B.js +0 -17
- package/dist/warning-diamond-filled-Lb2od2ry.js +0 -17
- package/dist/webinar-m9nuFZBt.js +0 -22
- package/dist/yapily-logo-BduxhNRA.js +0 -17
|
@@ -0,0 +1,1685 @@
|
|
|
1
|
+
try {
|
|
2
|
+
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "63541ab9-112a-4448-bebd-46dd84fb49ab", e._sentryDebugIdIdentifier = "sentry-dbid-63541ab9-112a-4448-bebd-46dd84fb49ab");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { i as Typography, n as addResourceBundles, r as useTranslation } from "./translation-G4HP2nQW.js";
|
|
6
|
+
import { r as Loader } from "./Button-DvWt5T9O.js";
|
|
7
|
+
import { s as useApiContext } from "./http-btI4x32X.js";
|
|
8
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-Cj6C6bAI.js";
|
|
9
|
+
import { t as LegalEntityTypes } from "./legal-entity-type-VIfNYnJP.js";
|
|
10
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-C6bSV6sB.js";
|
|
11
|
+
import { a as drop, c as objectsDeepEqual, d as keysOf, r as cloneObject, u as entriesOf } from "./useAnalyticsContext-BVFDMrVE.js";
|
|
12
|
+
import { t as useToggleContext } from "./useToggleContext-DaQUBF8O.js";
|
|
13
|
+
import { C as isValidMinLength, _ as hasText, a as NO_ALPHABET_REGEX, g as hasRepeatedCharacters, n as EMOJI_REGEX, s as OTHER_ENTITIES_VALID_CHAR_REGEX, w as matchesRegex, x as isInvalidName, y as isEmpty } from "./validatorUtils-DRapRJ6z.js";
|
|
14
|
+
import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-rq_tsyLP.js";
|
|
15
|
+
import { t as Header } from "./Header-BNb1zwkF.js";
|
|
16
|
+
import { t as CountryCodes } from "./country-code-CX5KqMBr.js";
|
|
17
|
+
import { t as useCapabilities } from "./useCapabilities-C3Re0QHQ.js";
|
|
18
|
+
import { n as datasetUtilities } from "./datasetUtil-Zd4TCTDn.js";
|
|
19
|
+
import { t as Alert } from "./Alert-BER6uCP8.js";
|
|
20
|
+
import { C as EntityTypes, a as trustComponentsKeyMapping, i as trustApiKeyMapping, o as trustDocumentMapping, y as reverseMapping } from "./processCapabilitites-BHzfFtSM.js";
|
|
21
|
+
import { p as TaskTypes, s as getOwnEntityAssociations } from "./entityAssociationUtil-BEzUdPbm.js";
|
|
22
|
+
import { t as getCountrySpecificTrustTypeOptions } from "./trustUtil-BTHvlo55.js";
|
|
23
|
+
import { t as useToastContext } from "./useToastContext-CYgfHjSb.js";
|
|
24
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-Df8xJUr2.js";
|
|
25
|
+
import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-Dav_4ehd.js";
|
|
26
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-u6NuumMd.js";
|
|
27
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-oigX0fKz.js";
|
|
28
|
+
import { t as Address } from "./Address-CnQ22ndb.js";
|
|
29
|
+
import { n as FormFlow, r as FormContextProvider, t as useFormContext } from "./useFormContext-6LTkbLR1.js";
|
|
30
|
+
import { n as composePerScenarioFormConfigurations, r as getPropsFromConfigurations, t as augmentWithCountryConfigs } from "./process-field-configurations-44gfzIGi.js";
|
|
31
|
+
import { i as useFormComposer, n as getRequiredForms, t as addValidityToForms } from "./dropinUtils-FIEFyS0F.js";
|
|
32
|
+
import { t as ErrorPanel } from "./ErrorPanel-4juOd8Z2.js";
|
|
33
|
+
import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-DCvL3uZG.js";
|
|
34
|
+
import { t as useMultiForm } from "./useMultiForm-CiK9l6YR.js";
|
|
35
|
+
import { a as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-DdeA1Ya3.js";
|
|
36
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DInxWeqN.js";
|
|
37
|
+
import { i as mapAddressLabels } from "./utils-CfTVU2Hq.js";
|
|
38
|
+
import { i as isValidationError, o as processValidationErrors, s as isMaintenanceModeError } from "./validationError-DhMlWpYp.js";
|
|
39
|
+
import { l as getDocument, o as createDocumentRequest, s as documentApiUtils } from "./validate-9_4V5MhN.js";
|
|
40
|
+
import { i as getProp, r as formatObject } from "./utils-oc3EdK6K.js";
|
|
41
|
+
import { a as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, f as countryToTaxInfoTypeMap, g as exemptedFromTaxDefaultFieldMetadata, h as exemptedFromTaxDefaultFieldConfig, n as TaxInformationField, t as TAX_INFORMATION_FIELD, v as taxInformationDefaultFieldConfig, w as getFieldsWithExistingData, y as taxInformationDefaultFieldMetadata } from "./TaxInformationField-zwmzV8Ov.js";
|
|
42
|
+
import { a as validateNotEmptyOnBlur } from "./patternValidators-BaQxw3ki.js";
|
|
43
|
+
import { t as resolveFieldMetadata } from "./fieldConfigurations-m7oWP1DZ.js";
|
|
44
|
+
import { t as Field } from "./Field-C2ZpB0wo.js";
|
|
45
|
+
import { t as Select } from "./Select-DDSua27l.js";
|
|
46
|
+
import { t as useForm } from "./useForm-CTiDrzeg.js";
|
|
47
|
+
import { n as getFormProps, r as getNestedOuterFormPropsFromOuterFormProps } from "./getProps-CkZCnNxW.js";
|
|
48
|
+
import { t as InputText } from "./InputText-C30dZxS4.js";
|
|
49
|
+
import { n as CountryField, t as COUNTRY_FIELD } from "./CountryField-s5-jZTU9.js";
|
|
50
|
+
import { t as RadioGroup } from "./RadioGroup-Bi9v9dZu.js";
|
|
51
|
+
import { t as createFormRules } from "./form-rules-CvdV5rPY.js";
|
|
52
|
+
import { t as ContextGuidance } from "./ContextGuidance-DKKgj5gN.js";
|
|
53
|
+
import { t as isEmpty$1 } from "./isEmpty-DFUWFV4h.js";
|
|
54
|
+
import { a as useStateContext, i as FormWrapper, n as useGlobalDataSlice } from "./useGlobalData-KEb46I95.js";
|
|
55
|
+
import { C as getRegistrationNumberHelperText, S as exemptFromRegistrationNumberDefaultFieldMetadata, T as registrationNumberDefaultFieldMetadata, _ as BusinessRegistrationNumberField, a as operationalAddressIsSameItems, b as getCompanyRegistrationNumberOptions, c as getDefaultVatNumberType, f as doingBusinessAsAbsentFieldMetadata, g as BUSINESS_REGISTRATION_NUMBER_FIELD, h as DBA_NAME_FIELD, i as operationalAddressIsSameIds, l as defaultFieldConfig, m as DBANameField, n as RegistrationAddress, o as VAT_NUMBER_FIELD, p as doingBusinessAsFieldMetadata, r as registrationAddressFields, s as VatNumberField, t as MemoizedConstitutionalDocument, u as defaultFieldMetadata, v as getDefaultRegistrationNumberType, w as registrationNumberDefaultFieldConfig, x as exemptFromRegistrationNumberDefaultFieldConfig, y as inferCompanyRegistrationNumberType } from "./ConstitutionalDocument-rRO4Qdx2.js";
|
|
56
|
+
import { a as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED, i as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL, n as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL, o as UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL, r as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-CEAHkjXI.js";
|
|
57
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
58
|
+
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
59
|
+
import { skipToken } from "@tanstack/preact-query";
|
|
60
|
+
//#region src/context/StateContext/hasDataChanged.ts
|
|
61
|
+
var hasDataChanged = (initialData, currentData) => entriesOf(currentData ?? {}).some(([key, value]) => {
|
|
62
|
+
if (typeof value === "object") return !objectsDeepEqual(value, initialData?.[key]);
|
|
63
|
+
return value !== initialData?.[key];
|
|
64
|
+
});
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/Trust/mapping/mapApiDocumentToTrustDocument.ts
|
|
67
|
+
var mapApiDocumentToTrustDocument = (entityId) => {
|
|
68
|
+
const constitutionalDocument = getDocument(entityId, "constitutionalDocument") || null;
|
|
69
|
+
return { trustConstitutionalDocument: constitutionalDocument ? { constitutionalDocument: [mapExistingFile(getPageName(constitutionalDocument))] } : void 0 };
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.ts
|
|
73
|
+
var unincorporatedPartnershipBaseMapping = {
|
|
74
|
+
"trustRegistrationDetails.trustType": "unincorporatedPartnership.type",
|
|
75
|
+
"trustRegistrationDetails.legalName": "unincorporatedPartnership.name",
|
|
76
|
+
"trustRegistrationDetails.doingBusinessAs": "unincorporatedPartnership.doingBusinessAs",
|
|
77
|
+
"trustRegistrationDetails.hasDoingBusinessAs": "unincorporatedPartnership.doingBusinessAsAbsent",
|
|
78
|
+
"trustRegistrationDetails.country": "unincorporatedPartnership.countryOfGoverningLaw",
|
|
79
|
+
"trustRegistrationDetails.registrationNumber": "unincorporatedPartnership.registrationNumber",
|
|
80
|
+
"trustRegistrationDetails.taxInformation": "unincorporatedPartnership.taxInformation",
|
|
81
|
+
"trustRegistrationDetails.vatNumber": "unincorporatedPartnership.vatNumber",
|
|
82
|
+
"trustRegistrationAddress.registrationAddress.city": "unincorporatedPartnership.registeredAddress.city",
|
|
83
|
+
"trustRegistrationAddress.registrationAddress.country": "unincorporatedPartnership.registeredAddress.country",
|
|
84
|
+
"trustRegistrationAddress.registrationAddress.postalCode": "unincorporatedPartnership.registeredAddress.postalCode",
|
|
85
|
+
"trustRegistrationAddress.registrationAddress.stateOrProvince": "unincorporatedPartnership.registeredAddress.stateOrProvince",
|
|
86
|
+
"trustRegistrationAddress.registrationAddress.address": "unincorporatedPartnership.registeredAddress.street",
|
|
87
|
+
"trustRegistrationAddress.registrationAddress.otherAddressInformation": "unincorporatedPartnership.registeredAddress.street2",
|
|
88
|
+
"trustRegistrationAddress.operationalAddress.city": "unincorporatedPartnership.principalPlaceOfBusiness.city",
|
|
89
|
+
"trustRegistrationAddress.operationalAddress.country": "unincorporatedPartnership.principalPlaceOfBusiness.country",
|
|
90
|
+
"trustRegistrationAddress.operationalAddress.postalCode": "unincorporatedPartnership.principalPlaceOfBusiness.postalCode",
|
|
91
|
+
"trustRegistrationAddress.operationalAddress.stateOrProvince": "unincorporatedPartnership.principalPlaceOfBusiness.stateOrProvince",
|
|
92
|
+
"trustRegistrationAddress.operationalAddress.address": "unincorporatedPartnership.principalPlaceOfBusiness.street",
|
|
93
|
+
"trustRegistrationAddress.operationalAddress.otherAddressInformation": "unincorporatedPartnership.principalPlaceOfBusiness.street2"
|
|
94
|
+
};
|
|
95
|
+
var unincorporatedPartnershipComponentsKeyMapping = {
|
|
96
|
+
"trustRegistrationDetails.exemptedFromVat": "unincorporatedPartnership.vatAbsenceReason",
|
|
97
|
+
...unincorporatedPartnershipBaseMapping
|
|
98
|
+
};
|
|
99
|
+
var unincorporatedPartnershipApiKeyMapping = { ...reverseMapping(unincorporatedPartnershipBaseMapping) };
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.ts
|
|
102
|
+
var mapLegalEntityToUnincorporatedPartnership = (legalEntity, isFeatureEnabled) => {
|
|
103
|
+
if (!legalEntity.unincorporatedPartnership) throw new Error("LE missing unincorporatedPartnership field");
|
|
104
|
+
let trustCompData = formatObject(legalEntity, unincorporatedPartnershipComponentsKeyMapping);
|
|
105
|
+
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
106
|
+
trustCompData.trustRegistrationDetails.country = legalEntity.unincorporatedPartnership.countryOfGoverningLaw;
|
|
107
|
+
if (legalEntity.unincorporatedPartnership.description) trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.unincorporatedPartnership.description;
|
|
108
|
+
if (legalEntity.unincorporatedPartnership.principalPlaceOfBusiness) trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
109
|
+
else {
|
|
110
|
+
if (!trustCompData.trustRegistrationAddress) trustCompData.trustRegistrationAddress = {};
|
|
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((info) => info.country === country);
|
|
116
|
+
if (countryTaxInformation?.type === "UEN") trustCompData.trustRegistrationDetails.isUen = true;
|
|
117
|
+
if (countryTaxInformation?.type === "GST") trustCompData.trustRegistrationDetails.isUen = false;
|
|
118
|
+
const taxNumberAbsent = countryTaxInformation?.numberAbsent;
|
|
119
|
+
if (taxNumberAbsent !== void 0) trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
120
|
+
}
|
|
121
|
+
if (legalEntity.documentDetails?.length) trustCompData = {
|
|
122
|
+
...trustCompData,
|
|
123
|
+
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
124
|
+
};
|
|
125
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
126
|
+
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
127
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.unincorporatedPartnership.doingBusinessAsAbsent;
|
|
128
|
+
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs) delete legalEntity.unincorporatedPartnership.doingBusinessAs;
|
|
129
|
+
}
|
|
130
|
+
} else {
|
|
131
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs ? legalEntity.unincorporatedPartnership.doingBusinessAs !== legalEntity.unincorporatedPartnership.name : void 0;
|
|
132
|
+
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs;
|
|
133
|
+
}
|
|
134
|
+
return trustCompData;
|
|
135
|
+
};
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.ts
|
|
138
|
+
var mapUnincorporatedPartnershipToLegalEntity = (data, isFeatureEnabled) => {
|
|
139
|
+
const requestObj = { ...formatObject(data, unincorporatedPartnershipApiKeyMapping) };
|
|
140
|
+
if (!requestObj.unincorporatedPartnership) return requestObj;
|
|
141
|
+
if (requestObj.unincorporatedPartnership?.taxInformation?.[0]?.type === "GST") requestObj.unincorporatedPartnership.taxInformation[0].type = "UEN";
|
|
142
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
143
|
+
if (typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined") requestObj.unincorporatedPartnership.doingBusinessAsAbsent = !data.trustRegistrationDetails?.hasDoingBusinessAs;
|
|
144
|
+
} else {
|
|
145
|
+
requestObj.unincorporatedPartnership.doingBusinessAs = data.trustRegistrationDetails?.doingBusinessAs || data.trustRegistrationDetails?.legalName || "";
|
|
146
|
+
delete requestObj.unincorporatedPartnership.doingBusinessAsAbsent;
|
|
147
|
+
}
|
|
148
|
+
requestObj.type = LegalEntityTypes.UNINCORPORATED_PARTNERSHIP;
|
|
149
|
+
return requestObj;
|
|
150
|
+
};
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/components/Trust/forms/Trust/rules.ts
|
|
153
|
+
var COUNTRIES_THAT_USE_REGISTRATION_NUMBER = [CountryCodes.NewZealand];
|
|
154
|
+
var rules = ({ data, country, taskType }) => createFormRules({
|
|
155
|
+
countryUsesTaxId: () => {
|
|
156
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
157
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED.includes(country)) return "REQUIRED";
|
|
158
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
159
|
+
}
|
|
160
|
+
if (country !== CountryCodes.NewZealand && COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) return "REQUIRED";
|
|
161
|
+
},
|
|
162
|
+
countryRequiresRegistrationNumberForTrust: () => {
|
|
163
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
164
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) return "REQUIRED";
|
|
165
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
166
|
+
}
|
|
167
|
+
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) return "REQUIRED";
|
|
168
|
+
},
|
|
169
|
+
registrationNumberType: () => {
|
|
170
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
171
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) return "OPTIONAL";
|
|
172
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
173
|
+
}
|
|
174
|
+
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
175
|
+
},
|
|
176
|
+
countryUsesVatNumber: () => {
|
|
177
|
+
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
178
|
+
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL.includes(country)) return "OPTIONAL";
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
trustTypeHasDescription: () => {
|
|
182
|
+
if (data?.trustRegistrationDetails?.trustType === "charitableTrust") return "REQUIRED";
|
|
183
|
+
},
|
|
184
|
+
requireDoingBusinessAsName: () => {
|
|
185
|
+
return data?.trustRegistrationDetails?.hasDoingBusinessAs ? "REQUIRED" : void 0;
|
|
186
|
+
},
|
|
187
|
+
requiresTrustType: () => {
|
|
188
|
+
if (taskType === TaskTypes.TRUST) return "REQUIRED";
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/components/Trust/forms/TrustRegistrationDetails/validate.ts
|
|
193
|
+
var trustRegistrationDetailsValidations = {
|
|
194
|
+
trustType: {
|
|
195
|
+
modes: ["blur"],
|
|
196
|
+
validate: (trustType) => !!trustType,
|
|
197
|
+
errorMessage: "fieldIsRequired"
|
|
198
|
+
},
|
|
199
|
+
country: {
|
|
200
|
+
modes: ["blur"],
|
|
201
|
+
validate: (country) => !!country,
|
|
202
|
+
errorMessage: "fieldIsRequired"
|
|
203
|
+
},
|
|
204
|
+
legalName: {
|
|
205
|
+
modes: ["blur"],
|
|
206
|
+
validate: (legalName) => !!legalName,
|
|
207
|
+
errorMessage: "fieldIsRequired"
|
|
208
|
+
},
|
|
209
|
+
objectOfTrust: {
|
|
210
|
+
modes: ["blur"],
|
|
211
|
+
validate: (objectOfTrust) => !!objectOfTrust,
|
|
212
|
+
errorMessage: "fieldIsRequired"
|
|
213
|
+
},
|
|
214
|
+
hasDoingBusinessAs: validateNotEmptyOnBlur,
|
|
215
|
+
doingBusinessAs: validateNotEmptyOnBlur
|
|
216
|
+
};
|
|
217
|
+
var trustRegistrationDetailsValidationsV4 = {
|
|
218
|
+
trustType: {
|
|
219
|
+
modes: ["blur"],
|
|
220
|
+
validate: (trustType) => !!trustType,
|
|
221
|
+
errorMessage: "fieldIsRequired"
|
|
222
|
+
},
|
|
223
|
+
country: {
|
|
224
|
+
modes: ["blur"],
|
|
225
|
+
validate: (country) => !!country,
|
|
226
|
+
errorMessage: "fieldIsRequired"
|
|
227
|
+
},
|
|
228
|
+
legalName: [
|
|
229
|
+
{
|
|
230
|
+
modes: ["blur"],
|
|
231
|
+
validate: hasText,
|
|
232
|
+
errorMessage: "fieldIsRequired"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
modes: ["blur"],
|
|
236
|
+
validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
|
|
237
|
+
errorMessage: "nameMustContainLetters"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
modes: ["blur"],
|
|
241
|
+
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
242
|
+
errorMessage: "checkForTypos"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
objectOfTrust: {
|
|
246
|
+
modes: ["blur"],
|
|
247
|
+
validate: (objectOfTrust) => !!objectOfTrust,
|
|
248
|
+
errorMessage: "fieldIsRequired"
|
|
249
|
+
},
|
|
250
|
+
hasDoingBusinessAs: validateNotEmptyOnBlur,
|
|
251
|
+
doingBusinessAs: validateNotEmptyOnBlur
|
|
252
|
+
};
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region src/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetails.tsx
|
|
255
|
+
var trustRegistrationDetailsFields = [
|
|
256
|
+
"legalName",
|
|
257
|
+
...DBA_NAME_FIELD,
|
|
258
|
+
"country",
|
|
259
|
+
"trustType",
|
|
260
|
+
"objectOfTrust",
|
|
261
|
+
...TAX_INFORMATION_FIELD,
|
|
262
|
+
...BUSINESS_REGISTRATION_NUMBER_FIELD,
|
|
263
|
+
...VAT_NUMBER_FIELD
|
|
264
|
+
];
|
|
265
|
+
var ALLOWED_TRUST_COUNTRIES$1 = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
266
|
+
function TrustRegistrationDetails(props) {
|
|
267
|
+
let mergedProps = props;
|
|
268
|
+
const TRUST_REGISTRATION_DETAILS = mergedProps.id || trustForms$1.trustRegistrationDetails.formId;
|
|
269
|
+
const { t: commonT } = useTranslation("common");
|
|
270
|
+
const { t: trustT } = useTranslation("trust");
|
|
271
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
272
|
+
const { updateStateSlice, sliceData } = useGlobalDataSlice(TRUST_REGISTRATION_DETAILS);
|
|
273
|
+
const isStrictNameAndAddressValidationEnabled = isFeatureEnabled("StrictNameAndAddressValidationV4");
|
|
274
|
+
const { taskType } = props;
|
|
275
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
276
|
+
const country = sliceData?.country ?? mergedProps.country;
|
|
277
|
+
const defaultData = useMemo(() => ({
|
|
278
|
+
...mergedProps.data,
|
|
279
|
+
country
|
|
280
|
+
}), [country, mergedProps.data]);
|
|
281
|
+
const requiredFields = isEmpty$1(mergedProps.requiredFields) ? trustRegistrationDetailsFields : mergedProps.requiredFields;
|
|
282
|
+
mergedProps = mergeFieldMetadataIntoProps("hasDoingBusinessAs", doingBusinessAsAbsentFieldMetadata, mergedProps);
|
|
283
|
+
mergedProps = mergeFieldMetadataIntoProps("doingBusinessAs", doingBusinessAsFieldMetadata, mergedProps);
|
|
284
|
+
mergedProps = mergeFieldMetadataIntoProps("taxInformation", resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
285
|
+
taxIdNumberType: sliceData?.taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
286
|
+
companyType: LegalEntityTypes.TRUST
|
|
287
|
+
}, taxInformationDefaultFieldMetadata), mergedProps);
|
|
288
|
+
mergedProps = mergeFieldMetadataIntoProps("exemptedFromTax", resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata), mergedProps);
|
|
289
|
+
mergedProps = mergeFieldMetadataIntoProps("registrationNumber", resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
290
|
+
companyType: LegalEntityTypes.TRUST,
|
|
291
|
+
registrationNumberType: sliceData?.registrationNumberType ?? getDefaultRegistrationNumberType(sliceData?.registrationNumber, country, "trust")
|
|
292
|
+
}, registrationNumberDefaultFieldMetadata), mergedProps);
|
|
293
|
+
mergedProps = mergeFieldMetadataIntoProps("exemptedFromRegistrationNumber", resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata), mergedProps);
|
|
294
|
+
mergedProps = mergeFieldMetadataIntoProps("vatNumber", resolveFieldMetadata(defaultFieldConfig[country], { vatNumberType: sliceData?.vatNumberType ?? getDefaultVatNumberType(sliceData?.vatNumber, country) }, defaultFieldMetadata), mergedProps);
|
|
295
|
+
mergedProps.validators = {
|
|
296
|
+
...mergedProps.validators,
|
|
297
|
+
legalName: isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4.legalName : trustRegistrationDetailsValidations.legalName
|
|
298
|
+
};
|
|
299
|
+
const getFormSchema = useCallback((currentData) => {
|
|
300
|
+
const fieldsToRemove = [];
|
|
301
|
+
if (!currentData.hasDoingBusinessAs) fieldsToRemove.push("doingBusinessAs");
|
|
302
|
+
return requiredFields.filter((field) => !fieldsToRemove.includes(field));
|
|
303
|
+
}, [requiredFields]);
|
|
304
|
+
const { handleChangeFor, data, valid, errors, setData, fieldProblems, schema } = useForm({
|
|
305
|
+
...mergedProps,
|
|
306
|
+
schema: getFormSchema,
|
|
307
|
+
defaultData,
|
|
308
|
+
rules: mergedProps.validators || (isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4 : trustRegistrationDetailsValidations),
|
|
309
|
+
fieldProblems: mergedProps.fieldValidationErrors
|
|
310
|
+
});
|
|
311
|
+
const formUtils = createFormUtils({
|
|
312
|
+
...mergedProps,
|
|
313
|
+
data: defaultData,
|
|
314
|
+
requiredFields,
|
|
315
|
+
fieldValidationErrors: mergedProps.fieldValidationErrors,
|
|
316
|
+
formVerificationErrors: mergedProps.formVerificationErrors
|
|
317
|
+
}, commonT);
|
|
318
|
+
useEffect(() => {
|
|
319
|
+
updateStateSlice({
|
|
320
|
+
schema,
|
|
321
|
+
data,
|
|
322
|
+
errors,
|
|
323
|
+
valid,
|
|
324
|
+
fieldProblems
|
|
325
|
+
});
|
|
326
|
+
}, [
|
|
327
|
+
data,
|
|
328
|
+
errors,
|
|
329
|
+
fieldProblems,
|
|
330
|
+
schema,
|
|
331
|
+
updateStateSlice,
|
|
332
|
+
valid
|
|
333
|
+
]);
|
|
334
|
+
const changeTrustType = (e) => {
|
|
335
|
+
handleChangeFor("trustType", "blur")(e);
|
|
336
|
+
if (e.target.value !== "charitableTrust") setData("objectOfTrust", void 0);
|
|
337
|
+
};
|
|
338
|
+
const trustTypeOptions = getCountrySpecificTrustTypeOptions(country) ?? [];
|
|
339
|
+
const showField = (field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field);
|
|
340
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("form", {
|
|
341
|
+
id: TRUST_REGISTRATION_DETAILS,
|
|
342
|
+
className: "adyen-kyc-trust__registration-details",
|
|
343
|
+
children: [
|
|
344
|
+
mergedProps.heading && /* @__PURE__ */ jsx(Header, { title: mergedProps.heading }),
|
|
345
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
346
|
+
verificationErrors: mergedProps.formVerificationErrors,
|
|
347
|
+
validationErrors: mergedProps.fieldValidationErrors,
|
|
348
|
+
formUtils,
|
|
349
|
+
id: "ariaErrorField"
|
|
350
|
+
}),
|
|
351
|
+
!isUnincorporatedPartnership && /* @__PURE__ */ jsx(Alert, {
|
|
352
|
+
variant: "info",
|
|
353
|
+
title: /* @__PURE__ */ jsx(Typography, {
|
|
354
|
+
variant: "caption",
|
|
355
|
+
color: "secondary",
|
|
356
|
+
children: trustT(($) => $["makeSureToHaveYourTrustDeed"])
|
|
357
|
+
}),
|
|
358
|
+
className: "adyen-kyc-u-margin-bottom-16"
|
|
359
|
+
}),
|
|
360
|
+
formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(CountryField, {
|
|
361
|
+
data: formUtils.getFieldData(data, COUNTRY_FIELD),
|
|
362
|
+
valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
|
|
363
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, COUNTRY_FIELD),
|
|
364
|
+
labels: formUtils.getFieldLabels(COUNTRY_FIELD, { country: "countryRegionOfEstablishment" }),
|
|
365
|
+
readonly: formUtils.isReadOnly("country"),
|
|
366
|
+
allowedCountries: isUnincorporatedPartnership ? ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES : ALLOWED_TRUST_COUNTRIES$1,
|
|
367
|
+
handleChangeFor: () => (e) => {
|
|
368
|
+
handleChangeFor("country", "input")(e);
|
|
369
|
+
if (mergedProps.onCountryChange) mergedProps.onCountryChange(e);
|
|
370
|
+
}
|
|
371
|
+
}),
|
|
372
|
+
formUtils.isRequiredField("legalName") && /* @__PURE__ */ jsx(Field, {
|
|
373
|
+
name: "legalName",
|
|
374
|
+
label: formUtils.getLabel(!isUnincorporatedPartnership ? "nameOfTrustAgreement" : "legalName"),
|
|
375
|
+
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldProblems),
|
|
376
|
+
isValid: valid.legalName,
|
|
377
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
378
|
+
...childProps,
|
|
379
|
+
name: "legalName",
|
|
380
|
+
value: data.legalName,
|
|
381
|
+
readonly: formUtils.isReadOnly("legalName"),
|
|
382
|
+
onInput: handleChangeFor("legalName", "input"),
|
|
383
|
+
onBlur: handleChangeFor("legalName", "blur"),
|
|
384
|
+
"aria-required": true,
|
|
385
|
+
"aria-invalid": !valid.legalName
|
|
386
|
+
})
|
|
387
|
+
}),
|
|
388
|
+
formUtils.isRequiredField("hasDoingBusinessAs") && /* @__PURE__ */ jsx(DBANameField, {
|
|
389
|
+
data: formUtils.getFieldData(data, DBA_NAME_FIELD),
|
|
390
|
+
valid: formUtils.getFieldValid(valid, DBA_NAME_FIELD),
|
|
391
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, DBA_NAME_FIELD),
|
|
392
|
+
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
393
|
+
handleChangeFor
|
|
394
|
+
}),
|
|
395
|
+
formUtils.isRequiredField("trustType") && !isUnincorporatedPartnership && /* @__PURE__ */ jsx(Field, {
|
|
396
|
+
name: "trustType",
|
|
397
|
+
label: formUtils.getLabel("trustType", "typeOfTrustAgreement"),
|
|
398
|
+
errorMessage: formUtils.getErrorMessage("trustType", errors, fieldProblems),
|
|
399
|
+
isValid: valid.trustType,
|
|
400
|
+
dataTestId: "trust-type",
|
|
401
|
+
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
402
|
+
...childProps,
|
|
403
|
+
name: "trustType",
|
|
404
|
+
onChange: changeTrustType,
|
|
405
|
+
selected: data.trustType,
|
|
406
|
+
items: trustTypeOptions.map((trust) => ({
|
|
407
|
+
id: trust,
|
|
408
|
+
name: trustT(($) => $[trust])
|
|
409
|
+
})),
|
|
410
|
+
placeholder: trustT(($) => $["trustType"])
|
|
411
|
+
})
|
|
412
|
+
}),
|
|
413
|
+
formUtils.isRequiredField("objectOfTrust") && /* @__PURE__ */ jsx(Field, {
|
|
414
|
+
name: "objectOfTrust",
|
|
415
|
+
label: formUtils.getLabel("objectOfCharitableTrust"),
|
|
416
|
+
helper: formUtils.getLabel("pleaseProvideThePurposeOfCharitableTrust"),
|
|
417
|
+
errorMessage: formUtils.getErrorMessage("objectOfTrust", errors, fieldProblems),
|
|
418
|
+
isValid: valid.objectOfTrust,
|
|
419
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
420
|
+
...childProps,
|
|
421
|
+
name: "objectOfTrust",
|
|
422
|
+
value: data.objectOfTrust,
|
|
423
|
+
readonly: formUtils.isReadOnly("objectOfTrust"),
|
|
424
|
+
onInput: handleChangeFor("objectOfTrust", "input"),
|
|
425
|
+
onBlur: handleChangeFor("objectOfTrust", "blur"),
|
|
426
|
+
"aria-required": true,
|
|
427
|
+
"aria-invalid": !valid.objectOfTrust
|
|
428
|
+
})
|
|
429
|
+
}),
|
|
430
|
+
showField("taxInformation") && /* @__PURE__ */ jsx(TaxInformationField, {
|
|
431
|
+
data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
|
|
432
|
+
valid: formUtils.getFieldValid(valid, TAX_INFORMATION_FIELD),
|
|
433
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, TAX_INFORMATION_FIELD),
|
|
434
|
+
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, { exemptedFromTax: "iDontHaveATaxId" }),
|
|
435
|
+
mask: formUtils.getMask("taxInformation"),
|
|
436
|
+
readonly: formUtils.isReadOnly("taxInformation"),
|
|
437
|
+
shouldValidate: mergedProps.shouldValidate,
|
|
438
|
+
handleChangeFor,
|
|
439
|
+
optional: formUtils.isOptionalField("taxInformation"),
|
|
440
|
+
canExempt: formUtils.isRequiredField("exemptedFromTax"),
|
|
441
|
+
country,
|
|
442
|
+
entityType: LegalEntityTypes.TRUST,
|
|
443
|
+
defaultData: mergedProps.data?.taxInformation,
|
|
444
|
+
registrationNumber: data.registrationNumber
|
|
445
|
+
}),
|
|
446
|
+
showField("registrationNumber") && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
447
|
+
data: formUtils.getFieldData(data, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
448
|
+
valid: formUtils.getFieldValid(valid, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
449
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
450
|
+
labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, { exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber" }),
|
|
451
|
+
mask: formUtils.getMask("registrationNumber"),
|
|
452
|
+
helperText: getRegistrationNumberHelperText(trustT, {
|
|
453
|
+
country,
|
|
454
|
+
companyType: LegalEntityTypes.TRUST
|
|
455
|
+
}),
|
|
456
|
+
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
457
|
+
optional: formUtils.isOptionalField("registrationNumber"),
|
|
458
|
+
shouldValidate: mergedProps.shouldValidate,
|
|
459
|
+
handleChangeFor,
|
|
460
|
+
country,
|
|
461
|
+
canExempt: formUtils.isRequiredField("exemptedFromRegistrationNumber"),
|
|
462
|
+
companyType: LegalEntityTypes.TRUST
|
|
463
|
+
}),
|
|
464
|
+
showField("vatNumber") && /* @__PURE__ */ jsx(VatNumberField, {
|
|
465
|
+
data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
|
|
466
|
+
valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
|
|
467
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, VAT_NUMBER_FIELD),
|
|
468
|
+
labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, { exemptedFromVat: "iDontHaveAVatNumber" }),
|
|
469
|
+
optional: formUtils.isOptionalField("vatNumber"),
|
|
470
|
+
readonly: formUtils.isReadOnly("vatNumber"),
|
|
471
|
+
handleChangeFor,
|
|
472
|
+
country,
|
|
473
|
+
canExempt: formUtils.isRequiredField("exemptedFromVat"),
|
|
474
|
+
shouldValidate: mergedProps.shouldValidate
|
|
475
|
+
})
|
|
476
|
+
]
|
|
477
|
+
}) });
|
|
478
|
+
}
|
|
479
|
+
//#endregion
|
|
480
|
+
//#region src/components/Trust/forms/Trust/Trust.tsx
|
|
481
|
+
var trustForms$1 = {
|
|
482
|
+
trustRegistrationDetails: {
|
|
483
|
+
formId: "trustRegistrationDetails",
|
|
484
|
+
formName: "registrationDetails",
|
|
485
|
+
fields: [...trustRegistrationDetailsFields]
|
|
486
|
+
},
|
|
487
|
+
trustRegistrationAddress: {
|
|
488
|
+
formId: "trustRegistrationAddress",
|
|
489
|
+
formName: "addressDetails",
|
|
490
|
+
fields: registrationAddressFields
|
|
491
|
+
},
|
|
492
|
+
trustConstitutionalDocument: {
|
|
493
|
+
formId: "trustConstitutionalDocument",
|
|
494
|
+
formName: "constitutionalDocument",
|
|
495
|
+
fields: ["constitutionalDocument"]
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
var trustRegistrationAddressFormId$1 = trustForms$1.trustRegistrationAddress.formId;
|
|
499
|
+
var trustRegistrationDetailsFormId$1 = trustForms$1.trustRegistrationDetails.formId;
|
|
500
|
+
var trustConstitutionalDocumentFormId$1 = trustForms$1.trustConstitutionalDocument.formId;
|
|
501
|
+
function Trust(props) {
|
|
502
|
+
const { t } = useTranslation(["common", "trust"]);
|
|
503
|
+
const { country, activeForm, taskType } = props;
|
|
504
|
+
const trustRegistrationDetailsFormProps = getFormProps(props, trustRegistrationDetailsFormId$1);
|
|
505
|
+
const trustRegistrationAddressFormProps = getNestedOuterFormPropsFromOuterFormProps(props, trustRegistrationAddressFormId$1);
|
|
506
|
+
const trustDocumentFormProps = getFormProps(props, trustConstitutionalDocumentFormId$1);
|
|
507
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
508
|
+
const renderActiveForm = (activeForm) => /* @__PURE__ */ jsxs("div", {
|
|
509
|
+
className: "adyen-kyc-trust",
|
|
510
|
+
children: [
|
|
511
|
+
/* @__PURE__ */ jsx("div", {
|
|
512
|
+
className: activeForm.formId !== trustRegistrationDetailsFormId$1 ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
513
|
+
children: /* @__PURE__ */ jsx(TrustRegistrationDetails, {
|
|
514
|
+
...trustRegistrationDetailsFormProps,
|
|
515
|
+
heading: t(($) => $["registrationDetails"]),
|
|
516
|
+
id: trustRegistrationDetailsFormId$1,
|
|
517
|
+
country,
|
|
518
|
+
taskType
|
|
519
|
+
})
|
|
520
|
+
}),
|
|
521
|
+
/* @__PURE__ */ jsx("div", {
|
|
522
|
+
className: activeForm.formId !== trustRegistrationAddressFormId$1 ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
523
|
+
children: /* @__PURE__ */ jsx(RegistrationAddress, {
|
|
524
|
+
...trustRegistrationAddressFormProps,
|
|
525
|
+
heading: t(($) => $["addressDetails"]),
|
|
526
|
+
description: !isUnincorporatedPartnership ? t(($) => $["registeredAddressTrustHeaderDescription"], { ns: "trust" }) : t(($) => $["registeredAddressUnincorporatedPartnershipHeaderDescription"], { ns: "trust" }),
|
|
527
|
+
id: trustRegistrationAddressFormId$1,
|
|
528
|
+
country,
|
|
529
|
+
problems: props?.problems,
|
|
530
|
+
labels: { operationalAddressIsSame: !isUnincorporatedPartnership ? "isTrustOperationAddressSame" : "isPartnershipOperationAddressSame" }
|
|
531
|
+
})
|
|
532
|
+
}),
|
|
533
|
+
/* @__PURE__ */ jsx("div", {
|
|
534
|
+
className: activeForm.formId !== trustConstitutionalDocumentFormId$1 ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
535
|
+
children: /* @__PURE__ */ jsx(MemoizedConstitutionalDocument, {
|
|
536
|
+
...trustDocumentFormProps,
|
|
537
|
+
id: trustConstitutionalDocumentFormId$1,
|
|
538
|
+
legalEntityType: isUnincorporatedPartnership ? LegalEntityTypes.UNINCORPORATED_PARTNERSHIP : LegalEntityTypes.TRUST,
|
|
539
|
+
country
|
|
540
|
+
})
|
|
541
|
+
})
|
|
542
|
+
]
|
|
543
|
+
});
|
|
544
|
+
return /* @__PURE__ */ jsx("div", {
|
|
545
|
+
className: "adyen-kyc-trust",
|
|
546
|
+
children: renderActiveForm(activeForm || trustForms$1.trustRegistrationDetails)
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
//#endregion
|
|
550
|
+
//#region src/components/Trust/mapping/mapLegalEntityToTrust.ts
|
|
551
|
+
var mapLegalEntityToTrust = (legalEntity, isFeatureEnabled) => {
|
|
552
|
+
if (!legalEntity.trust) throw new Error("LE missing trust field");
|
|
553
|
+
let trustCompData = formatObject(legalEntity, trustComponentsKeyMapping);
|
|
554
|
+
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
555
|
+
trustCompData.trustRegistrationDetails.vatNumberType = getDefaultVatNumberType(legalEntity.trust.vatNumber, legalEntity.trust.countryOfGoverningLaw);
|
|
556
|
+
trustCompData.trustRegistrationDetails.registrationNumberType = getDefaultRegistrationNumberType(legalEntity.trust.registrationNumber, legalEntity.trust.countryOfGoverningLaw, LegalEntityTypes.TRUST);
|
|
557
|
+
trustCompData.trustRegistrationDetails.country = legalEntity.trust.countryOfGoverningLaw;
|
|
558
|
+
if (legalEntity.trust.description) trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.trust.description;
|
|
559
|
+
if (legalEntity.trust.principalPlaceOfBusiness) trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
560
|
+
else {
|
|
561
|
+
if (!trustCompData.trustRegistrationAddress) trustCompData.trustRegistrationAddress = {};
|
|
562
|
+
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
|
|
563
|
+
}
|
|
564
|
+
if (legalEntity.trust.taxInformation?.length) {
|
|
565
|
+
const { country } = legalEntity.trust.registeredAddress;
|
|
566
|
+
const countryTaxInformation = legalEntity.trust.taxInformation.find((info) => info.country === country);
|
|
567
|
+
if (countryTaxInformation?.type === "UEN") trustCompData.trustRegistrationDetails.isUen = true;
|
|
568
|
+
if (countryTaxInformation?.type === "GST") trustCompData.trustRegistrationDetails.isUen = false;
|
|
569
|
+
const taxNumberAbsent = countryTaxInformation?.numberAbsent;
|
|
570
|
+
if (taxNumberAbsent !== void 0) trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
571
|
+
}
|
|
572
|
+
if (legalEntity.documentDetails?.length) trustCompData = {
|
|
573
|
+
...trustCompData,
|
|
574
|
+
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
575
|
+
};
|
|
576
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
577
|
+
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
578
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.trust.doingBusinessAsAbsent;
|
|
579
|
+
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs) delete legalEntity.trust?.doingBusinessAs;
|
|
580
|
+
}
|
|
581
|
+
} else {
|
|
582
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.trust.doingBusinessAs ? legalEntity.trust.doingBusinessAs !== legalEntity.trust.name : void 0;
|
|
583
|
+
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.trust.doingBusinessAs;
|
|
584
|
+
}
|
|
585
|
+
return trustCompData;
|
|
586
|
+
};
|
|
587
|
+
//#endregion
|
|
588
|
+
//#region src/components/Trust/mapping/mapTrustDocumentToApiDocument.ts
|
|
589
|
+
var mapTrustDocumentToApiDocument = async (data, entityId) => {
|
|
590
|
+
const constitutionalDocument = data?.trustConstitutionalDocument?.constitutionalDocument;
|
|
591
|
+
if (!constitutionalDocument) throw new Error("Constitutional document missing");
|
|
592
|
+
const page1 = constitutionalDocument[0];
|
|
593
|
+
if (!page1) throw new Error("Document needs at least one page");
|
|
594
|
+
return await createDocumentRequest({
|
|
595
|
+
entityId,
|
|
596
|
+
entityType: "legalEntity",
|
|
597
|
+
documentType: "constitutionalDocument",
|
|
598
|
+
page1,
|
|
599
|
+
existingDocument: getDocument(entityId, "constitutionalDocument")
|
|
600
|
+
});
|
|
601
|
+
};
|
|
602
|
+
//#endregion
|
|
603
|
+
//#region src/components/Trust/mapping/mapTrustToLegalEntity.ts
|
|
604
|
+
var mapTrustToLegalEntity = (data, isFeatureEnabled) => {
|
|
605
|
+
const requestObj = { ...formatObject(data, trustApiKeyMapping) };
|
|
606
|
+
if (!requestObj.trust) return requestObj;
|
|
607
|
+
if (data.trustRegistrationDetails?.objectOfTrust) requestObj.trust.description = data.trustRegistrationDetails.objectOfTrust;
|
|
608
|
+
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
609
|
+
requestObj.trust.doingBusinessAsAbsent = typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined" ? !data.trustRegistrationDetails?.hasDoingBusinessAs : void 0;
|
|
610
|
+
if (requestObj.trust.doingBusinessAsAbsent) requestObj.trust.doingBusinessAs = "";
|
|
611
|
+
} else {
|
|
612
|
+
delete requestObj.trust?.doingBusinessAsAbsent;
|
|
613
|
+
requestObj.trust.doingBusinessAs = data.trustRegistrationDetails?.doingBusinessAs || data.trustRegistrationDetails?.legalName;
|
|
614
|
+
}
|
|
615
|
+
requestObj.type = LegalEntityTypes.TRUST;
|
|
616
|
+
return requestObj;
|
|
617
|
+
};
|
|
618
|
+
//#endregion
|
|
619
|
+
//#region src/components/Trust/tasks/TrustDropin/mandatoryFields.ts
|
|
620
|
+
var MANDATORY_FIELDS_TRUST = ["trustRegistrationDetails.legalName", "trustRegistrationDetails.country"];
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region src/components/Trust/tasks/TrustDropin/trustFormConfig.ts
|
|
623
|
+
var trustBase = {
|
|
624
|
+
trustType: { rule: "requiresTrustType" },
|
|
625
|
+
objectOfTrust: { rule: "trustTypeHasDescription" },
|
|
626
|
+
legalName: { rule: "REQUIRED" },
|
|
627
|
+
hasDoingBusinessAs: { rule: "REQUIRED" },
|
|
628
|
+
doingBusinessAs: { rule: "requireDoingBusinessAsName" },
|
|
629
|
+
country: { rule: "REQUIRED" },
|
|
630
|
+
taxInformation: { rule: "countryUsesTaxId" },
|
|
631
|
+
registrationAddress: { rule: "REQUIRED" },
|
|
632
|
+
operationalAddress: { rule: "OPTIONAL" },
|
|
633
|
+
constitutionalDocument: { rule: "REQUIRED" },
|
|
634
|
+
registrationNumber: { rule: "countryRequiresRegistrationNumberForTrust" },
|
|
635
|
+
registrationNumberType: { rule: "registrationNumberType" },
|
|
636
|
+
vatNumber: { rule: "countryUsesVatNumber" },
|
|
637
|
+
vatNumberType: { rule: "countryUsesVatNumber" },
|
|
638
|
+
operationalAddressIsSame: { rule: "REQUIRED" }
|
|
639
|
+
};
|
|
640
|
+
var trustFieldsPerScenario = {
|
|
641
|
+
L0: { ...trustBase },
|
|
642
|
+
L1: { ...trustBase },
|
|
643
|
+
L: { ...trustBase }
|
|
644
|
+
};
|
|
645
|
+
var trustCountryConfig = {};
|
|
646
|
+
//#endregion
|
|
647
|
+
//#region src/components/Trust/tasks/TrustDropin/TrustDropin.tsx
|
|
648
|
+
var parseTrustScenarios$1 = (scenarios, country) => augmentWithCountryConfigs(trustCountryConfig[country], composePerScenarioFormConfigurations(scenarios, trustFieldsPerScenario));
|
|
649
|
+
var parseConfiguration$1 = ({ scenarios, country }) => parseTrustScenarios$1(scenarios, country);
|
|
650
|
+
function TrustDropin({ parentLegalEntity, capabilities, country: countryProp, existingTrust, taskType, problems: problemsProp, onSubmit: externalOnSubmit, onChange, hideSidebar, handleHomeClick }) {
|
|
651
|
+
const { state: { currentState } } = useStateContext();
|
|
652
|
+
const formValidity = currentState.validityByForm;
|
|
653
|
+
useEffect(() => {
|
|
654
|
+
onChange?.(currentState);
|
|
655
|
+
}, [currentState, onChange]);
|
|
656
|
+
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
657
|
+
const { t, i18n } = useTranslation(["common", "trust"]);
|
|
658
|
+
const [validationErrors, setValidationErrors] = useState();
|
|
659
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
660
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
661
|
+
const { showToast } = useToastContext();
|
|
662
|
+
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
663
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
664
|
+
const problems = useMemo(() => ({
|
|
665
|
+
...problemsProp,
|
|
666
|
+
validationErrors
|
|
667
|
+
}), [problemsProp, validationErrors]);
|
|
668
|
+
const trustData = useMemo(() => {
|
|
669
|
+
if (!existingTrust) return {};
|
|
670
|
+
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust, isFeatureEnabled) : mapLegalEntityToTrust(existingTrust, isFeatureEnabled);
|
|
671
|
+
}, [
|
|
672
|
+
isFeatureEnabled,
|
|
673
|
+
existingTrust,
|
|
674
|
+
isUnincorporatedPartnership
|
|
675
|
+
]);
|
|
676
|
+
const currentCountry = useMemo(() => currentState.data.trustRegistrationDetails?.country ?? countryProp, [countryProp, currentState.data.trustRegistrationDetails?.country]);
|
|
677
|
+
const [initialData, setInitialData] = useState(trustData);
|
|
678
|
+
/**
|
|
679
|
+
* Analytics
|
|
680
|
+
*/
|
|
681
|
+
useTaskLandedEvent(taskType);
|
|
682
|
+
useEffect(() => {
|
|
683
|
+
if (!existingTrust?.documentDetails?.length) return;
|
|
684
|
+
try {
|
|
685
|
+
documentUtils.fetchDocuments(existingTrust.documentDetails, existingTrust.id).then(() => {
|
|
686
|
+
const mappedDocuments = mapApiDocumentToTrustDocument(existingTrust.id);
|
|
687
|
+
setInitialData({
|
|
688
|
+
...initialData,
|
|
689
|
+
...mappedDocuments
|
|
690
|
+
});
|
|
691
|
+
}).catch(() => {
|
|
692
|
+
showToast({
|
|
693
|
+
label: t(($) => $["failedToFetchRelevantDocuments"]),
|
|
694
|
+
variant: "error"
|
|
695
|
+
});
|
|
696
|
+
});
|
|
697
|
+
} catch {
|
|
698
|
+
showToast({
|
|
699
|
+
label: t(($) => $["failedToFetchRelevantDocuments"]),
|
|
700
|
+
variant: "error"
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
}, []);
|
|
704
|
+
/**
|
|
705
|
+
* Fetch Configurations
|
|
706
|
+
*/
|
|
707
|
+
const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
|
|
708
|
+
parseConfiguration: parseConfiguration$1,
|
|
709
|
+
legalEntityType: LegalEntityTypes.TRUST,
|
|
710
|
+
setLoadingStatus,
|
|
711
|
+
country: currentCountry
|
|
712
|
+
});
|
|
713
|
+
const fieldsFromCustomRules = useMemo(() => rules({
|
|
714
|
+
data: currentState.data,
|
|
715
|
+
country: currentCountry,
|
|
716
|
+
taskType,
|
|
717
|
+
requiredFields,
|
|
718
|
+
isFeatureEnabled
|
|
719
|
+
}), [
|
|
720
|
+
currentCountry,
|
|
721
|
+
currentState.data,
|
|
722
|
+
taskType,
|
|
723
|
+
requiredFields,
|
|
724
|
+
isFeatureEnabled
|
|
725
|
+
]);
|
|
726
|
+
const derivedProps = useMemo(() => getPropsFromConfigurations({
|
|
727
|
+
scenarioConfiguration: fieldConfigurations,
|
|
728
|
+
forms: trustForms$1,
|
|
729
|
+
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
730
|
+
dataMissingErrors: problems?.missingData ?? [],
|
|
731
|
+
fieldsWithExistingData: existingTrust ? getFieldsWithExistingData(existingTrust, trustApiKeyMapping, trustDocumentMapping) : [],
|
|
732
|
+
customRules: fieldsFromCustomRules,
|
|
733
|
+
legalEntityType: existingTrust?.type
|
|
734
|
+
}), [
|
|
735
|
+
fieldConfigurations,
|
|
736
|
+
problems?.remediationActions,
|
|
737
|
+
problems?.missingData,
|
|
738
|
+
existingTrust,
|
|
739
|
+
fieldsFromCustomRules
|
|
740
|
+
]);
|
|
741
|
+
const forms = useMemo(() => {
|
|
742
|
+
return addValidityToForms(getRequiredForms(trustForms$1, derivedProps?.requiredFields, derivedProps?.optionalFields), formValidity, problems);
|
|
743
|
+
}, [
|
|
744
|
+
derivedProps,
|
|
745
|
+
formValidity,
|
|
746
|
+
problems
|
|
747
|
+
]);
|
|
748
|
+
const onSubmitTrust = async () => {
|
|
749
|
+
setLoadingStatus("loading");
|
|
750
|
+
const trustDetails = mapTrustToLegalEntity(currentState.data, isFeatureEnabled);
|
|
751
|
+
try {
|
|
752
|
+
const updatedTrust = await submitTrustDetails(trustDetails);
|
|
753
|
+
await submitDocuments({
|
|
754
|
+
forms,
|
|
755
|
+
legalEntity: updatedTrust,
|
|
756
|
+
dataSubmitted: currentState.data
|
|
757
|
+
});
|
|
758
|
+
await attachTrustToParentLegalEntity(updatedTrust);
|
|
759
|
+
setLoadingStatus("success");
|
|
760
|
+
showToast({
|
|
761
|
+
label: t(($) => $["successfullyUpdatedDetails"]),
|
|
762
|
+
variant: "success"
|
|
763
|
+
});
|
|
764
|
+
externalOnSubmit?.(currentState.data);
|
|
765
|
+
} catch (e) {
|
|
766
|
+
showToast({
|
|
767
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
768
|
+
variant: "error"
|
|
769
|
+
});
|
|
770
|
+
if (isValidationError(e)) setValidationErrors(processValidationErrors(e, taskType));
|
|
771
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
772
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
773
|
+
variant: "error",
|
|
774
|
+
duration: "indefinite"
|
|
775
|
+
});
|
|
776
|
+
setLoadingStatus("success");
|
|
777
|
+
}
|
|
778
|
+
};
|
|
779
|
+
const onSubmitUnincorporatedPartnership = async () => {
|
|
780
|
+
setLoadingStatus("loading");
|
|
781
|
+
const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(currentState.data, isFeatureEnabled);
|
|
782
|
+
try {
|
|
783
|
+
const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(unincorporatedPartnershipDetails);
|
|
784
|
+
await submitDocuments({
|
|
785
|
+
forms,
|
|
786
|
+
legalEntity: updatedUnincorporatedPartnershipDetails,
|
|
787
|
+
dataSubmitted: currentState.data
|
|
788
|
+
});
|
|
789
|
+
await attachTrustToParentLegalEntity(updatedUnincorporatedPartnershipDetails);
|
|
790
|
+
setLoadingStatus("success");
|
|
791
|
+
showToast({
|
|
792
|
+
label: t(($) => $["successfullyUpdatedDetails"]),
|
|
793
|
+
variant: "success"
|
|
794
|
+
});
|
|
795
|
+
externalOnSubmit?.(currentState.data);
|
|
796
|
+
} catch (e) {
|
|
797
|
+
showToast({
|
|
798
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
799
|
+
variant: "error"
|
|
800
|
+
});
|
|
801
|
+
if (isValidationError(e)) setValidationErrors(processValidationErrors(e, taskType));
|
|
802
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
803
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
804
|
+
variant: "error",
|
|
805
|
+
duration: "indefinite"
|
|
806
|
+
});
|
|
807
|
+
setLoadingStatus("success");
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
811
|
+
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
812
|
+
const submitTrustDetails = async (legalEntity) => {
|
|
813
|
+
if (!existingTrust) return await createLegalEntity(legalEntity);
|
|
814
|
+
else return await updateLegalEntity({
|
|
815
|
+
...drop("type").from(legalEntity),
|
|
816
|
+
id: existingTrust.id
|
|
817
|
+
});
|
|
818
|
+
};
|
|
819
|
+
const documentUtils = documentApiUtils({
|
|
820
|
+
baseUrl: baseUrl.value,
|
|
821
|
+
rootLegalEntityId: rootLegalEntityId.value
|
|
822
|
+
});
|
|
823
|
+
const submitDocuments = async ({ forms, legalEntity, dataSubmitted }) => {
|
|
824
|
+
if (isDocumentsRequired(forms)) {
|
|
825
|
+
const formattedDocument = await mapTrustDocumentToApiDocument(dataSubmitted, legalEntity.id);
|
|
826
|
+
if (formattedDocument) await documentUtils.uploadDocuments([formattedDocument], legalEntity.id);
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
const isDocumentsRequired = (forms) => forms.some((form) => form.formId === trustForms$1.trustConstitutionalDocument.formId);
|
|
830
|
+
const attachTrustToParentLegalEntity = async (trust) => {
|
|
831
|
+
if (existingTrust?.id) return;
|
|
832
|
+
const existingEntityAssociations = getOwnEntityAssociations(parentLegalEntity);
|
|
833
|
+
await updateLegalEntity({
|
|
834
|
+
entityAssociations: [{
|
|
835
|
+
type: trust.type,
|
|
836
|
+
legalEntityId: trust.id
|
|
837
|
+
}, ...existingEntityAssociations],
|
|
838
|
+
id: parentLegalEntity.id
|
|
839
|
+
});
|
|
840
|
+
};
|
|
841
|
+
const formatDataForSummary = (formData, forms) => {
|
|
842
|
+
let summaryData = cloneObject(formData) || {};
|
|
843
|
+
const country = formData.trustRegistrationDetails?.country ?? (existingTrust ? getLegalEntityCountry(existingTrust) : getLegalEntityCountry(parentLegalEntity));
|
|
844
|
+
if (formData.trustRegistrationDetails) {
|
|
845
|
+
const trustCountry = formData.trustRegistrationDetails.country && datasetUtils.getCountryName(formData.trustRegistrationDetails.country);
|
|
846
|
+
const trustType = formData.trustRegistrationDetails.trustType && t(($) => $[formData.trustRegistrationDetails.trustType], { ns: "trust" });
|
|
847
|
+
const registrationNumberLabel = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
848
|
+
companyType: LegalEntityTypes.TRUST,
|
|
849
|
+
registrationNumberType: formData.trustRegistrationDetails.registrationNumber ? inferCompanyRegistrationNumberType(formData.trustRegistrationDetails.registrationNumber, country, LegalEntityTypes.TRUST) : getCompanyRegistrationNumberOptions(country, LegalEntityTypes.TRUST)?.[0]?.id
|
|
850
|
+
}, registrationNumberDefaultFieldMetadata).label;
|
|
851
|
+
const taxIdLabel = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
852
|
+
companyType: LegalEntityTypes.TRUST,
|
|
853
|
+
taxIdNumberType: countryToTaxInfoTypeMap[country]
|
|
854
|
+
}, taxInformationDefaultFieldMetadata).label;
|
|
855
|
+
summaryData.trustRegistrationDetails = {
|
|
856
|
+
[isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"]: formData.trustRegistrationDetails?.legalName,
|
|
857
|
+
doingBusinessAs: formData.trustRegistrationDetails?.doingBusinessAs,
|
|
858
|
+
countryRegionOfEstablishment: trustCountry,
|
|
859
|
+
typeOfTrustAgreement: isUnincorporatedPartnership ? void 0 : trustType,
|
|
860
|
+
objectOfTrust: formData.trustRegistrationDetails?.objectOfTrust,
|
|
861
|
+
[taxIdLabel]: formData.trustRegistrationDetails?.taxInformation?.find((taxId) => country === taxId.country)?.number,
|
|
862
|
+
[registrationNumberLabel]: formData.trustRegistrationDetails.registrationNumber
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
if (formData.trustRegistrationAddress?.registrationAddress) {
|
|
866
|
+
summaryData.trustRegistrationAddress.hasInnerForms = true;
|
|
867
|
+
summaryData.trustRegistrationAddress.registrationAddress = mapAddressLabels(formData.trustRegistrationAddress.registrationAddress, datasetUtils);
|
|
868
|
+
}
|
|
869
|
+
if (formData.trustRegistrationAddress?.operationalAddress) summaryData.trustRegistrationAddress.operationalAddress = mapAddressLabels(formData.trustRegistrationAddress.operationalAddress, datasetUtils);
|
|
870
|
+
if (isDocumentsRequired(forms)) summaryData = {
|
|
871
|
+
...summaryData,
|
|
872
|
+
...formatFileSummaryData(formData.trustConstitutionalDocument)
|
|
873
|
+
};
|
|
874
|
+
else delete summaryData[trustConstitutionalDocumentFormId$1];
|
|
875
|
+
return summaryData;
|
|
876
|
+
};
|
|
877
|
+
const formatFileSummaryData = (trustConstitutionalDocument) => {
|
|
878
|
+
const constitutionalDocument = trustConstitutionalDocument?.constitutionalDocument?.[0];
|
|
879
|
+
return { ...constitutionalDocument && { trustConstitutionalDocument: { fileName: constitutionalDocument.name } } };
|
|
880
|
+
};
|
|
881
|
+
const canSubmit = (formData) => MANDATORY_FIELDS_TRUST.every((detail) => {
|
|
882
|
+
return !isEmpty(getProp(formData, detail));
|
|
883
|
+
});
|
|
884
|
+
const { handleNextClick, handleBackClick, activeForm, shouldValidate, setShouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
|
|
885
|
+
problems,
|
|
886
|
+
forms,
|
|
887
|
+
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust
|
|
888
|
+
});
|
|
889
|
+
return /* @__PURE__ */ jsx(FormWrapper, {
|
|
890
|
+
taskName: isUnincorporatedPartnership ? "unincorporatedDetails" : "trustDetails",
|
|
891
|
+
handleNextClick,
|
|
892
|
+
handleBackClick,
|
|
893
|
+
gotoFormByFormIndex,
|
|
894
|
+
gotoFormByFormId,
|
|
895
|
+
loadingStatus,
|
|
896
|
+
forms,
|
|
897
|
+
activeForm,
|
|
898
|
+
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust,
|
|
899
|
+
hideSidebar,
|
|
900
|
+
handleHomeClick,
|
|
901
|
+
validateForm: () => setShouldValidate(true),
|
|
902
|
+
canSubmit: canSubmit(currentState.data) && hasDataChanged(initialData, currentState.data),
|
|
903
|
+
problems,
|
|
904
|
+
summary: {
|
|
905
|
+
data: formatDataForSummary(currentState.data, forms),
|
|
906
|
+
omitted: { keys: ["operationalAddressIsSame"] }
|
|
907
|
+
},
|
|
908
|
+
steps,
|
|
909
|
+
children: /* @__PURE__ */ jsx(Trust, {
|
|
910
|
+
...derivedProps,
|
|
911
|
+
activeForm,
|
|
912
|
+
capabilities,
|
|
913
|
+
data: initialData,
|
|
914
|
+
country: currentCountry,
|
|
915
|
+
problems,
|
|
916
|
+
shouldValidate,
|
|
917
|
+
taskType
|
|
918
|
+
})
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
//#endregion
|
|
922
|
+
//#region src/components/Shared/forms/RegistrationAddress/RegistrationAddressMultiform.tsx
|
|
923
|
+
var registrationAddressFormID = {
|
|
924
|
+
registrationAddress: {
|
|
925
|
+
formId: "registrationAddress",
|
|
926
|
+
formName: "registeredAddress",
|
|
927
|
+
fields: ["address"]
|
|
928
|
+
},
|
|
929
|
+
operationalAddress: {
|
|
930
|
+
formId: "operationalAddress",
|
|
931
|
+
formName: "operationalAddressHeader",
|
|
932
|
+
fields: ["address"]
|
|
933
|
+
}
|
|
934
|
+
}.registrationAddress.formId;
|
|
935
|
+
function RegistrationAddressMultiform(props) {
|
|
936
|
+
const { t } = useTranslation("common");
|
|
937
|
+
const { id, heading, description, country, problems } = props;
|
|
938
|
+
const { form } = useFormContext();
|
|
939
|
+
const data = form.data.trustRegistrationAddress;
|
|
940
|
+
const { requiredFields: registrationAddressRequiredFields, optionalFields: registrationAddressOptionalFields, readOnlyFields: registrationAddressReadOnlyFields, obscuredFields: registrationAddressObscuredFields, verifyFields: registrationAddressVerifyFields, trustedFields: registrationAddressTrustedFields } = getFormProps(props, registrationAddressFormID);
|
|
941
|
+
const formUtils = createFormUtils({
|
|
942
|
+
...props,
|
|
943
|
+
requiredFields: registrationAddressRequiredFields,
|
|
944
|
+
optionalFields: registrationAddressOptionalFields,
|
|
945
|
+
readOnlyFields: registrationAddressReadOnlyFields,
|
|
946
|
+
obscuredFields: registrationAddressObscuredFields,
|
|
947
|
+
verifyFields: registrationAddressVerifyFields,
|
|
948
|
+
trustedFields: registrationAddressTrustedFields
|
|
949
|
+
}, t);
|
|
950
|
+
const isOperationAddressNotSame = () => data?.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
951
|
+
const registrationAddressValidRef = useRef(Boolean(form.valid.trustRegistrationAddress?.registrationAddress));
|
|
952
|
+
const operationalAddressValidRef = useRef(Boolean(form.valid.trustRegistrationAddress?.operationalAddress));
|
|
953
|
+
useEffect(() => {
|
|
954
|
+
if (form.valid.trustRegistrationAddress?.registrationAddress !== registrationAddressValidRef.current) form.setValid("registrationAddress", registrationAddressValidRef.current, "trustRegistrationAddress");
|
|
955
|
+
if (isOperationAddressNotSame() && form.valid.trustRegistrationAddress?.operationalAddress !== operationalAddressValidRef.current) form.setValid("operationalAddress", operationalAddressValidRef.current, "trustRegistrationAddress");
|
|
956
|
+
}, [form.valid.trustRegistrationAddress]);
|
|
957
|
+
const handleChangeFor = useCallback((fieldName, mode) => form.handleChangeFor(fieldName, "trustRegistrationAddress", mode), [form]);
|
|
958
|
+
const handleRegistrationAddressChange = (state) => {
|
|
959
|
+
handleChangeFor("registrationAddress")(state.data);
|
|
960
|
+
registrationAddressValidRef.current = Boolean(state.isValid);
|
|
961
|
+
};
|
|
962
|
+
const handleOperationalAddressChange = (state) => {
|
|
963
|
+
handleChangeFor("operationalAddress")(state.data);
|
|
964
|
+
operationalAddressValidRef.current = Boolean(state.isValid);
|
|
965
|
+
};
|
|
966
|
+
const handleOperationalAddressIsSameChange = (value) => {
|
|
967
|
+
handleChangeFor("operationalAddressIsSame")(value);
|
|
968
|
+
if (value === "OperationAddressAnswerYes") form.setValid("operationalAddress", true, "trustRegistrationAddress");
|
|
969
|
+
};
|
|
970
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
971
|
+
heading && /* @__PURE__ */ jsx(Header, {
|
|
972
|
+
title: heading,
|
|
973
|
+
description
|
|
974
|
+
}),
|
|
975
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
976
|
+
verificationErrors: id ? problems?.verificationErrors?.[id] : void 0,
|
|
977
|
+
validationErrors: id ? problems?.validationErrors?.[id] : void 0,
|
|
978
|
+
formUtils,
|
|
979
|
+
id: "ariaErrorField"
|
|
980
|
+
}),
|
|
981
|
+
/* @__PURE__ */ jsx(ContextGuidance, {
|
|
982
|
+
titleId: "whyDoINeedToFillInThisInformation",
|
|
983
|
+
contentId: "reasonForFillingCompanyAddressDetails",
|
|
984
|
+
title: t(($) => $["whyDoINeedToFillInThisInformation"]),
|
|
985
|
+
content: t(($) => $["reasonForFillingCompanyAddressDetails"])
|
|
986
|
+
}),
|
|
987
|
+
/* @__PURE__ */ jsx(Address, {
|
|
988
|
+
data: {
|
|
989
|
+
...form.data?.trustRegistrationAddress?.registrationAddress,
|
|
990
|
+
country
|
|
991
|
+
},
|
|
992
|
+
hideCountry: true,
|
|
993
|
+
id,
|
|
994
|
+
addressType: "registrationAddress",
|
|
995
|
+
optionalFields: ["otherAddressInformation"],
|
|
996
|
+
onChange: handleRegistrationAddressChange
|
|
997
|
+
}),
|
|
998
|
+
/* @__PURE__ */ jsx(Header, {
|
|
999
|
+
title: t(($) => $["operationalAddressHeader"]),
|
|
1000
|
+
secondary: true
|
|
1001
|
+
}),
|
|
1002
|
+
/* @__PURE__ */ jsx(Field, {
|
|
1003
|
+
el: "fieldset",
|
|
1004
|
+
name: "operationalAddressIsSame",
|
|
1005
|
+
label: formUtils.getLabel("operationalAddressIsSame"),
|
|
1006
|
+
errorMessage: form.errors.trustRegistrationAddress?.operationalAddressIsSame?.errorMessage,
|
|
1007
|
+
children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
|
|
1008
|
+
...childProps,
|
|
1009
|
+
name: "operationalAddressIsSame",
|
|
1010
|
+
items: operationalAddressIsSameItems,
|
|
1011
|
+
value: data?.operationalAddressIsSame,
|
|
1012
|
+
disabled: formUtils.isReadOnly("operationalAddressIsSame"),
|
|
1013
|
+
onChange: handleOperationalAddressIsSameChange,
|
|
1014
|
+
"aria-required": true,
|
|
1015
|
+
"aria-invalid": !form.valid.trustRegistrationAddress?.operationalAddressIsSame
|
|
1016
|
+
})
|
|
1017
|
+
}),
|
|
1018
|
+
isOperationAddressNotSame() && /* @__PURE__ */ jsx(Address, {
|
|
1019
|
+
data: {
|
|
1020
|
+
...form.data?.trustRegistrationAddress?.operationalAddress,
|
|
1021
|
+
country
|
|
1022
|
+
},
|
|
1023
|
+
hideCountry: true,
|
|
1024
|
+
id,
|
|
1025
|
+
optionalFields: ["otherAddressInformation"],
|
|
1026
|
+
addressType: "operationalAddress",
|
|
1027
|
+
onChange: handleOperationalAddressChange
|
|
1028
|
+
}, "operationalAddress")
|
|
1029
|
+
] });
|
|
1030
|
+
}
|
|
1031
|
+
//#endregion
|
|
1032
|
+
//#region src/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetailsMultiform.tsx
|
|
1033
|
+
var ALLOWED_TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
1034
|
+
var TRUST_REGISTRATION_DETAILS = trustForms$1.trustRegistrationDetails.formId;
|
|
1035
|
+
function TrustRegistrationDetailsMultiform({ fieldValidationErrors = {}, formVerificationErrors = {}, heading, shouldValidate, taskType, country: parentLegalEntityCountry }) {
|
|
1036
|
+
const { t: trustT } = useTranslation("trust");
|
|
1037
|
+
const { t: CommonT } = useTranslation("common");
|
|
1038
|
+
const { form } = useFormContext();
|
|
1039
|
+
const { data, valid, errors, allFields, trustedFields, obscuredFields, optionalFields, requiredFields } = useMemo(() => {
|
|
1040
|
+
return {
|
|
1041
|
+
data: form.data.trustRegistrationDetails ?? {},
|
|
1042
|
+
valid: form.valid.trustRegistrationDetails ?? {},
|
|
1043
|
+
errors: form.errors.trustRegistrationDetails ?? {},
|
|
1044
|
+
allFields: form.allFields?.trustRegistrationDetails ?? [],
|
|
1045
|
+
trustedFields: form.trustedFields?.trustRegistrationDetails ?? [],
|
|
1046
|
+
obscuredFields: form.obscuredFields?.trustRegistrationDetails ?? [],
|
|
1047
|
+
optionalFields: form.optionalFields?.trustRegistrationDetails ?? [],
|
|
1048
|
+
requiredFields: form.requiredFields?.trustRegistrationDetails ?? []
|
|
1049
|
+
};
|
|
1050
|
+
}, [form]);
|
|
1051
|
+
const country = data?.country ?? parentLegalEntityCountry;
|
|
1052
|
+
const trustTypeOptions = getCountrySpecificTrustTypeOptions(country) ?? [];
|
|
1053
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
1054
|
+
const handleChange = (fieldName, mode) => form.handleChangeFor(fieldName, "trustRegistrationDetails", mode);
|
|
1055
|
+
const changeTrustType = (e) => {
|
|
1056
|
+
handleChange("trustType", "blur")(e);
|
|
1057
|
+
if (e.target.value !== "charitableTrust") form.setData("objectOfTrust", void 0, TRUST_REGISTRATION_DETAILS);
|
|
1058
|
+
};
|
|
1059
|
+
const formUtils = useMemo(() => {
|
|
1060
|
+
const initialProps = {
|
|
1061
|
+
data,
|
|
1062
|
+
valid,
|
|
1063
|
+
errors,
|
|
1064
|
+
fieldValidationErrors,
|
|
1065
|
+
formVerificationErrors,
|
|
1066
|
+
allFields,
|
|
1067
|
+
trustedFields,
|
|
1068
|
+
obscuredFields,
|
|
1069
|
+
optionalFields,
|
|
1070
|
+
requiredFields
|
|
1071
|
+
};
|
|
1072
|
+
const formUtilProps = initialProps?.allFields?.reduce((acc, field) => {
|
|
1073
|
+
switch (field) {
|
|
1074
|
+
case "hasDoingBusinessAs": return mergeFieldMetadataIntoProps("hasDoingBusinessAs", doingBusinessAsAbsentFieldMetadata, acc);
|
|
1075
|
+
case "doingBusinessAs": return mergeFieldMetadataIntoProps("doingBusinessAs", doingBusinessAsFieldMetadata, acc);
|
|
1076
|
+
case "taxInformation": return mergeFieldMetadataIntoProps("taxInformation", resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
1077
|
+
taxIdNumberType: data.taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
1078
|
+
companyType: LegalEntityTypes.TRUST
|
|
1079
|
+
}, taxInformationDefaultFieldMetadata), acc);
|
|
1080
|
+
case "exemptedFromTax": return mergeFieldMetadataIntoProps("exemptedFromTax", resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata), acc);
|
|
1081
|
+
case "registrationNumber": return mergeFieldMetadataIntoProps("registrationNumber", resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
1082
|
+
companyType: LegalEntityTypes.TRUST,
|
|
1083
|
+
registrationNumberType: data.registrationNumberType
|
|
1084
|
+
}, registrationNumberDefaultFieldMetadata), acc);
|
|
1085
|
+
case "exemptedFromRegistrationNumber": return mergeFieldMetadataIntoProps("exemptedFromRegistrationNumber", resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata), acc);
|
|
1086
|
+
case "vatNumber": return mergeFieldMetadataIntoProps("vatNumber", resolveFieldMetadata(defaultFieldConfig[country], { vatNumberType: data?.vatNumberType }, defaultFieldMetadata), acc);
|
|
1087
|
+
default: return acc;
|
|
1088
|
+
}
|
|
1089
|
+
}, initialProps);
|
|
1090
|
+
return createFormUtils(formUtilProps ?? initialProps, CommonT);
|
|
1091
|
+
}, [
|
|
1092
|
+
CommonT,
|
|
1093
|
+
allFields,
|
|
1094
|
+
country,
|
|
1095
|
+
data,
|
|
1096
|
+
errors,
|
|
1097
|
+
fieldValidationErrors,
|
|
1098
|
+
formVerificationErrors,
|
|
1099
|
+
obscuredFields,
|
|
1100
|
+
optionalFields,
|
|
1101
|
+
requiredFields,
|
|
1102
|
+
trustedFields,
|
|
1103
|
+
valid
|
|
1104
|
+
]);
|
|
1105
|
+
const showField = (fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName);
|
|
1106
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
1107
|
+
id: TRUST_REGISTRATION_DETAILS,
|
|
1108
|
+
className: "adyen-kyc-trust__registration-details",
|
|
1109
|
+
children: [
|
|
1110
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading }),
|
|
1111
|
+
/* @__PURE__ */ jsx(ErrorPanel, {
|
|
1112
|
+
verificationErrors: formVerificationErrors,
|
|
1113
|
+
validationErrors: fieldValidationErrors,
|
|
1114
|
+
formUtils,
|
|
1115
|
+
id: "ariaErrorField"
|
|
1116
|
+
}),
|
|
1117
|
+
!isUnincorporatedPartnership && /* @__PURE__ */ jsx(Alert, {
|
|
1118
|
+
variant: "info",
|
|
1119
|
+
title: /* @__PURE__ */ jsx(Typography, {
|
|
1120
|
+
variant: "caption",
|
|
1121
|
+
color: "secondary",
|
|
1122
|
+
children: trustT(($) => $["makeSureToHaveYourTrustDeed"])
|
|
1123
|
+
}),
|
|
1124
|
+
className: "adyen-kyc-u-margin-bottom-16"
|
|
1125
|
+
}),
|
|
1126
|
+
formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(CountryField, {
|
|
1127
|
+
data: formUtils.getFieldData(data, COUNTRY_FIELD),
|
|
1128
|
+
valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
|
|
1129
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, COUNTRY_FIELD),
|
|
1130
|
+
labels: formUtils.getFieldLabels(COUNTRY_FIELD, { country: "countryRegionOfEstablishment" }),
|
|
1131
|
+
readonly: formUtils.isReadOnly("country"),
|
|
1132
|
+
allowedCountries: isUnincorporatedPartnership ? ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES : ALLOWED_TRUST_COUNTRIES,
|
|
1133
|
+
handleChangeFor: () => (e) => {
|
|
1134
|
+
handleChange("country", "input")(e);
|
|
1135
|
+
}
|
|
1136
|
+
}),
|
|
1137
|
+
formUtils.isRequiredField("legalName") && /* @__PURE__ */ jsx(Field, {
|
|
1138
|
+
name: "legalName",
|
|
1139
|
+
label: formUtils.getLabel(isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"),
|
|
1140
|
+
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
|
|
1141
|
+
isValid: valid?.legalName,
|
|
1142
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1143
|
+
...childProps,
|
|
1144
|
+
name: "legalName",
|
|
1145
|
+
value: data?.legalName,
|
|
1146
|
+
readonly: formUtils.isReadOnly("legalName"),
|
|
1147
|
+
onInput: handleChange("legalName", "input"),
|
|
1148
|
+
onBlur: handleChange("legalName", "blur"),
|
|
1149
|
+
"aria-required": true,
|
|
1150
|
+
"aria-invalid": !valid?.legalName
|
|
1151
|
+
})
|
|
1152
|
+
}),
|
|
1153
|
+
formUtils.isRequiredField("hasDoingBusinessAs") && /* @__PURE__ */ jsx(DBANameField, {
|
|
1154
|
+
data: formUtils.getFieldData(data, DBA_NAME_FIELD),
|
|
1155
|
+
valid: formUtils.getFieldValid(valid, DBA_NAME_FIELD),
|
|
1156
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, DBA_NAME_FIELD),
|
|
1157
|
+
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
1158
|
+
handleChangeFor: handleChange
|
|
1159
|
+
}),
|
|
1160
|
+
formUtils.isRequiredField("trustType") && !isUnincorporatedPartnership && /* @__PURE__ */ jsx(Field, {
|
|
1161
|
+
name: "trustType",
|
|
1162
|
+
label: formUtils.getLabel("trustType", "typeOfTrustAgreement"),
|
|
1163
|
+
errorMessage: formUtils.getErrorMessage("trustType", errors, fieldValidationErrors),
|
|
1164
|
+
isValid: valid?.trustType,
|
|
1165
|
+
dataTestId: "trust-type",
|
|
1166
|
+
children: (childProps) => /* @__PURE__ */ jsx(Select, {
|
|
1167
|
+
...childProps,
|
|
1168
|
+
name: "trustType",
|
|
1169
|
+
onChange: changeTrustType,
|
|
1170
|
+
selected: data?.trustType,
|
|
1171
|
+
items: trustTypeOptions.map((trust) => ({
|
|
1172
|
+
id: trust,
|
|
1173
|
+
name: trustT(($) => $[trust])
|
|
1174
|
+
})),
|
|
1175
|
+
placeholder: trustT(($) => $["trustType"])
|
|
1176
|
+
})
|
|
1177
|
+
}),
|
|
1178
|
+
formUtils.isRequiredField("objectOfTrust") && /* @__PURE__ */ jsx(Field, {
|
|
1179
|
+
name: "objectOfTrust",
|
|
1180
|
+
label: formUtils.getLabel("objectOfCharitableTrust"),
|
|
1181
|
+
helper: formUtils.getLabel("pleaseProvideThePurposeOfCharitableTrust"),
|
|
1182
|
+
errorMessage: formUtils.getErrorMessage("objectOfTrust", errors, fieldValidationErrors),
|
|
1183
|
+
isValid: valid?.objectOfTrust,
|
|
1184
|
+
children: (childProps) => /* @__PURE__ */ jsx(InputText, {
|
|
1185
|
+
...childProps,
|
|
1186
|
+
name: "objectOfTrust",
|
|
1187
|
+
value: data?.objectOfTrust,
|
|
1188
|
+
readonly: formUtils.isReadOnly("objectOfTrust"),
|
|
1189
|
+
onInput: handleChange("objectOfTrust", "input"),
|
|
1190
|
+
onBlur: handleChange("objectOfTrust", "blur"),
|
|
1191
|
+
"aria-required": true,
|
|
1192
|
+
"aria-invalid": !valid?.objectOfTrust
|
|
1193
|
+
})
|
|
1194
|
+
}),
|
|
1195
|
+
showField("taxInformation") && /* @__PURE__ */ jsx(TaxInformationField, {
|
|
1196
|
+
data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
|
|
1197
|
+
valid: formUtils.getFieldValid(valid, TAX_INFORMATION_FIELD),
|
|
1198
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, TAX_INFORMATION_FIELD),
|
|
1199
|
+
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, { exemptedFromTax: "iDontHaveATaxId" }),
|
|
1200
|
+
mask: formUtils.getMask("taxInformation"),
|
|
1201
|
+
readonly: formUtils.isReadOnly("taxInformation"),
|
|
1202
|
+
shouldValidate,
|
|
1203
|
+
handleChangeFor: handleChange,
|
|
1204
|
+
optional: formUtils.isOptionalField("taxInformation"),
|
|
1205
|
+
canExempt: formUtils.isRequiredField("exemptedFromTax"),
|
|
1206
|
+
country: data?.country,
|
|
1207
|
+
entityType: LegalEntityTypes.TRUST,
|
|
1208
|
+
defaultData: data?.taxInformation,
|
|
1209
|
+
registrationNumber: data.registrationNumber
|
|
1210
|
+
}),
|
|
1211
|
+
showField("registrationNumber") && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
1212
|
+
data: formUtils.getFieldData(data, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
1213
|
+
valid: formUtils.getFieldValid(valid, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
1214
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
1215
|
+
labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, { exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber" }),
|
|
1216
|
+
mask: formUtils.getMask("registrationNumber"),
|
|
1217
|
+
helperText: getRegistrationNumberHelperText(trustT, {
|
|
1218
|
+
country,
|
|
1219
|
+
companyType: LegalEntityTypes.TRUST
|
|
1220
|
+
}),
|
|
1221
|
+
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
1222
|
+
optional: formUtils.isOptionalField("registrationNumber"),
|
|
1223
|
+
shouldValidate,
|
|
1224
|
+
handleChangeFor: handleChange,
|
|
1225
|
+
country,
|
|
1226
|
+
canExempt: formUtils.isRequiredField("exemptedFromRegistrationNumber"),
|
|
1227
|
+
companyType: LegalEntityTypes.TRUST
|
|
1228
|
+
}),
|
|
1229
|
+
showField("vatNumber") && /* @__PURE__ */ jsx(VatNumberField, {
|
|
1230
|
+
data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
|
|
1231
|
+
valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
|
|
1232
|
+
errors: formUtils.getFieldErrors(errors, fieldValidationErrors, VAT_NUMBER_FIELD),
|
|
1233
|
+
labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, { exemptedFromVat: "iDontHaveAVatNumber" }),
|
|
1234
|
+
optional: formUtils.isOptionalField("vatNumber"),
|
|
1235
|
+
readonly: formUtils.isReadOnly("vatNumber"),
|
|
1236
|
+
handleChangeFor: handleChange,
|
|
1237
|
+
country,
|
|
1238
|
+
canExempt: formUtils.isRequiredField("exemptedFromVat")
|
|
1239
|
+
})
|
|
1240
|
+
]
|
|
1241
|
+
});
|
|
1242
|
+
}
|
|
1243
|
+
//#endregion
|
|
1244
|
+
//#region src/components/Trust/tasks/TrustDropin/TrustMultiform.tsx
|
|
1245
|
+
var trustForms = {
|
|
1246
|
+
trustRegistrationDetails: {
|
|
1247
|
+
formId: "trustRegistrationDetails",
|
|
1248
|
+
formName: "registrationDetails",
|
|
1249
|
+
fields: [...trustRegistrationDetailsFields]
|
|
1250
|
+
},
|
|
1251
|
+
trustRegistrationAddress: {
|
|
1252
|
+
formId: "trustRegistrationAddress",
|
|
1253
|
+
formName: "addressDetails",
|
|
1254
|
+
fields: registrationAddressFields
|
|
1255
|
+
},
|
|
1256
|
+
trustConstitutionalDocument: {
|
|
1257
|
+
formId: "trustConstitutionalDocument",
|
|
1258
|
+
formName: "constitutionalDocument",
|
|
1259
|
+
fields: ["constitutionalDocument"]
|
|
1260
|
+
}
|
|
1261
|
+
};
|
|
1262
|
+
var trustRegistrationAddressFormId = trustForms.trustRegistrationAddress.formId;
|
|
1263
|
+
var trustRegistrationDetailsFormId = trustForms.trustRegistrationDetails.formId;
|
|
1264
|
+
var trustConstitutionalDocumentFormId = trustForms.trustConstitutionalDocument.formId;
|
|
1265
|
+
function TrustMultiform(props) {
|
|
1266
|
+
const { t } = useTranslation(["common", "trust"]);
|
|
1267
|
+
const { country, activeForm, taskType, shouldValidate, problems = {} } = props;
|
|
1268
|
+
const { form } = useFormContext();
|
|
1269
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
1270
|
+
function handleChange(formName, fieldName, mode) {
|
|
1271
|
+
return form.handleChangeFor(fieldName, formName, mode);
|
|
1272
|
+
}
|
|
1273
|
+
const renderActiveForm = (activeForm) => {
|
|
1274
|
+
switch (activeForm.formId) {
|
|
1275
|
+
case trustRegistrationDetailsFormId: return /* @__PURE__ */ jsx(TrustRegistrationDetailsMultiform, {
|
|
1276
|
+
heading: t(($) => $["registrationDetails"]),
|
|
1277
|
+
id: trustRegistrationDetailsFormId,
|
|
1278
|
+
taskType,
|
|
1279
|
+
shouldValidate,
|
|
1280
|
+
country
|
|
1281
|
+
});
|
|
1282
|
+
case trustRegistrationAddressFormId: return /* @__PURE__ */ jsx(RegistrationAddressMultiform, {
|
|
1283
|
+
heading: t(($) => $["addressDetails"]),
|
|
1284
|
+
description: !isUnincorporatedPartnership ? t(($) => $["registeredAddressTrustHeaderDescription"], { ns: "trust" }) : t(($) => $["registeredAddressUnincorporatedPartnershipHeaderDescription"], { ns: "trust" }),
|
|
1285
|
+
id: trustRegistrationAddressFormId,
|
|
1286
|
+
country,
|
|
1287
|
+
problems,
|
|
1288
|
+
labels: { operationalAddressIsSame: !isUnincorporatedPartnership ? "isTrustOperationAddressSame" : "isPartnershipOperationAddressSame" },
|
|
1289
|
+
shouldValidate
|
|
1290
|
+
});
|
|
1291
|
+
case trustConstitutionalDocumentFormId: return /* @__PURE__ */ jsx(MemoizedConstitutionalDocument, {
|
|
1292
|
+
id: activeForm.formId,
|
|
1293
|
+
legalEntityType: isUnincorporatedPartnership ? LegalEntityTypes.UNINCORPORATED_PARTNERSHIP : LegalEntityTypes.TRUST,
|
|
1294
|
+
country,
|
|
1295
|
+
data: form.data?.trustConstitutionalDocument,
|
|
1296
|
+
errors: form.errors.trustConstitutionalDocument,
|
|
1297
|
+
valid: form.valid.trustConstitutionalDocument,
|
|
1298
|
+
allFields: form.allFields?.trustConstitutionalDocument,
|
|
1299
|
+
requiredFields: form.requiredFields?.trustConstitutionalDocument,
|
|
1300
|
+
optionalFields: form.optionalFields?.trustConstitutionalDocument,
|
|
1301
|
+
trustedFields: form.trustedFields?.trustConstitutionalDocument,
|
|
1302
|
+
handleFieldChange: () => handleChange("trustConstitutionalDocument", "constitutionalDocument"),
|
|
1303
|
+
shouldValidate,
|
|
1304
|
+
fieldValidationErrors: problems.validationErrors?.[activeForm.formId] ?? {},
|
|
1305
|
+
formVerificationErrors: problems.verificationErrors?.[activeForm.formId] ?? {}
|
|
1306
|
+
});
|
|
1307
|
+
default: return null;
|
|
1308
|
+
}
|
|
1309
|
+
};
|
|
1310
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1311
|
+
className: "adyen-kyc-trust",
|
|
1312
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
1313
|
+
className: "adyen-kyc-form-wrapper",
|
|
1314
|
+
children: renderActiveForm(activeForm || trustForms.trustRegistrationDetails)
|
|
1315
|
+
})
|
|
1316
|
+
});
|
|
1317
|
+
}
|
|
1318
|
+
//#endregion
|
|
1319
|
+
//#region src/components/Trust/tasks/TrustDropin/validate.ts
|
|
1320
|
+
function trustRegistrationDetailsValidators(country, trustRegistrationDetails = {}, isFeatureEnabled) {
|
|
1321
|
+
const defaultTrustRegistrationDetailsValidators = isFeatureEnabled("StrictNameAndAddressValidationV4") ? trustRegistrationDetailsValidationsV4 : trustRegistrationDetailsValidations;
|
|
1322
|
+
const { registrationNumberType, taxInformation, vatNumberType } = trustRegistrationDetails;
|
|
1323
|
+
return {
|
|
1324
|
+
...defaultTrustRegistrationDetailsValidators,
|
|
1325
|
+
hasDoingBusinessAs: doingBusinessAsAbsentFieldMetadata.validators,
|
|
1326
|
+
doingBusinessAs: doingBusinessAsFieldMetadata.validators,
|
|
1327
|
+
taxInformation: resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
1328
|
+
taxIdNumberType: taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
1329
|
+
companyType: LegalEntityTypes.TRUST
|
|
1330
|
+
}, taxInformationDefaultFieldMetadata)?.validators,
|
|
1331
|
+
exemptedFromTax: resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata)?.validators,
|
|
1332
|
+
registrationNumber: resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
1333
|
+
companyType: LegalEntityTypes.TRUST,
|
|
1334
|
+
registrationNumberType,
|
|
1335
|
+
isFeatureEnabled
|
|
1336
|
+
}, registrationNumberDefaultFieldMetadata)?.validators,
|
|
1337
|
+
exemptedFromRegistrationNumber: resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata)?.validators,
|
|
1338
|
+
vatNumber: resolveFieldMetadata(defaultFieldConfig[country], { vatNumberType }, defaultFieldMetadata)?.validators
|
|
1339
|
+
};
|
|
1340
|
+
}
|
|
1341
|
+
//#endregion
|
|
1342
|
+
//#region src/components/Trust/tasks/TrustDropin/TrustMultiformDropin.tsx
|
|
1343
|
+
var parseTrustScenarios = (scenarios, country) => augmentWithCountryConfigs(trustCountryConfig[country], composePerScenarioFormConfigurations(scenarios, trustFieldsPerScenario));
|
|
1344
|
+
var parseConfiguration = ({ scenarios, country }) => parseTrustScenarios(scenarios, country);
|
|
1345
|
+
function TrustMultiformDropin({ parentLegalEntity, country: countryProp, existingTrust, taskType, problems: problemsProp, onSubmit: externalOnSubmit, handleHomeClick }) {
|
|
1346
|
+
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
1347
|
+
const { t, i18n } = useTranslation(["common", "trust"]);
|
|
1348
|
+
const [validationErrors, setValidationErrors] = useState();
|
|
1349
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
1350
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
1351
|
+
const { showToast } = useToastContext();
|
|
1352
|
+
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
1353
|
+
const [country, setCountry] = useState(countryProp);
|
|
1354
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
1355
|
+
const problems = useMemo(() => ({
|
|
1356
|
+
...problemsProp,
|
|
1357
|
+
validationErrors
|
|
1358
|
+
}), [problemsProp, validationErrors]);
|
|
1359
|
+
const [initialData, setInitialData] = useState(useMemo(() => {
|
|
1360
|
+
if (!existingTrust) return { trustRegistrationDetails: { country: countryProp } };
|
|
1361
|
+
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust, isFeatureEnabled) : mapLegalEntityToTrust(existingTrust, isFeatureEnabled);
|
|
1362
|
+
}, [
|
|
1363
|
+
isFeatureEnabled,
|
|
1364
|
+
existingTrust,
|
|
1365
|
+
isUnincorporatedPartnership,
|
|
1366
|
+
countryProp
|
|
1367
|
+
]));
|
|
1368
|
+
const documentUtils = documentApiUtils({
|
|
1369
|
+
baseUrl: baseUrl.value,
|
|
1370
|
+
rootLegalEntityId: rootLegalEntityId.value
|
|
1371
|
+
});
|
|
1372
|
+
/**
|
|
1373
|
+
* Analytics
|
|
1374
|
+
*/
|
|
1375
|
+
useTaskLandedEvent(taskType);
|
|
1376
|
+
useEffect(() => {
|
|
1377
|
+
if (!existingTrust?.documentDetails?.length) return;
|
|
1378
|
+
documentUtils.fetchDocuments(existingTrust.documentDetails, existingTrust.id).then(() => {
|
|
1379
|
+
const mappedDocuments = mapApiDocumentToTrustDocument(existingTrust.id);
|
|
1380
|
+
setInitialData((prev) => ({
|
|
1381
|
+
...prev,
|
|
1382
|
+
...mappedDocuments
|
|
1383
|
+
}));
|
|
1384
|
+
}).catch(() => {
|
|
1385
|
+
showToast({
|
|
1386
|
+
label: t(($) => $["failedToFetchRelevantDocuments"]),
|
|
1387
|
+
variant: "error"
|
|
1388
|
+
});
|
|
1389
|
+
});
|
|
1390
|
+
}, []);
|
|
1391
|
+
const [derivedProps, setDerivedProps] = useState();
|
|
1392
|
+
const buildTrustValidations = useCallback((data) => {
|
|
1393
|
+
return { trustRegistrationDetails: trustRegistrationDetailsValidators(country, data?.trustRegistrationDetails, isFeatureEnabled) };
|
|
1394
|
+
}, [country, isFeatureEnabled]);
|
|
1395
|
+
const multiForm = useMultiForm({
|
|
1396
|
+
defaultData: initialData,
|
|
1397
|
+
allFields: derivedProps?.allFields,
|
|
1398
|
+
requiredFields: derivedProps?.requiredFields,
|
|
1399
|
+
optionalFields: derivedProps?.optionalFields,
|
|
1400
|
+
obscuredFields: derivedProps?.obscuredFields,
|
|
1401
|
+
trustedFields: derivedProps?.trustedFields,
|
|
1402
|
+
rules: buildTrustValidations
|
|
1403
|
+
});
|
|
1404
|
+
/**
|
|
1405
|
+
* Fetch Configurations
|
|
1406
|
+
*/
|
|
1407
|
+
const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
|
|
1408
|
+
parseConfiguration,
|
|
1409
|
+
legalEntityType: LegalEntityTypes.TRUST,
|
|
1410
|
+
setLoadingStatus,
|
|
1411
|
+
country
|
|
1412
|
+
});
|
|
1413
|
+
const fieldsFromCustomRules = useMemo(() => rules({
|
|
1414
|
+
data: multiForm.data,
|
|
1415
|
+
country,
|
|
1416
|
+
taskType,
|
|
1417
|
+
requiredFields
|
|
1418
|
+
}), [
|
|
1419
|
+
country,
|
|
1420
|
+
multiForm.data,
|
|
1421
|
+
taskType,
|
|
1422
|
+
requiredFields
|
|
1423
|
+
]);
|
|
1424
|
+
useEffect(() => {
|
|
1425
|
+
setDerivedProps(getPropsFromConfigurations({
|
|
1426
|
+
scenarioConfiguration: fieldConfigurations,
|
|
1427
|
+
forms: trustForms$1,
|
|
1428
|
+
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
1429
|
+
dataMissingErrors: problems?.missingData ?? [],
|
|
1430
|
+
fieldsWithExistingData: existingTrust ? getFieldsWithExistingData(existingTrust, trustApiKeyMapping, trustDocumentMapping) : [],
|
|
1431
|
+
customRules: fieldsFromCustomRules,
|
|
1432
|
+
legalEntityType: existingTrust?.type
|
|
1433
|
+
}));
|
|
1434
|
+
}, [
|
|
1435
|
+
fieldConfigurations,
|
|
1436
|
+
problems?.remediationActions,
|
|
1437
|
+
problems?.missingData,
|
|
1438
|
+
existingTrust,
|
|
1439
|
+
fieldsFromCustomRules
|
|
1440
|
+
]);
|
|
1441
|
+
/**
|
|
1442
|
+
* Current country value must be kept in sync with what is selected in basicInformation form
|
|
1443
|
+
*/
|
|
1444
|
+
const [prevCountry, setPrevCountry] = useState(multiForm.data.trustRegistrationDetails?.country);
|
|
1445
|
+
if (multiForm.data.trustRegistrationDetails?.country && prevCountry !== multiForm.data.trustRegistrationDetails?.country) {
|
|
1446
|
+
setCountry(multiForm.data?.trustRegistrationDetails?.country ?? countryProp);
|
|
1447
|
+
setPrevCountry(multiForm.data.trustRegistrationDetails?.country);
|
|
1448
|
+
}
|
|
1449
|
+
const forms = useMemo(() => {
|
|
1450
|
+
return addValidityToForms(getRequiredForms(trustForms$1, derivedProps?.requiredFields, derivedProps?.optionalFields), multiForm.isValid, problems);
|
|
1451
|
+
}, [
|
|
1452
|
+
derivedProps,
|
|
1453
|
+
multiForm.isValid,
|
|
1454
|
+
problems
|
|
1455
|
+
]);
|
|
1456
|
+
const onSubmitTrust = async () => {
|
|
1457
|
+
setLoadingStatus("loading");
|
|
1458
|
+
const trustDetails = mapTrustToLegalEntity(multiForm.data, isFeatureEnabled);
|
|
1459
|
+
try {
|
|
1460
|
+
const updatedTrust = await submitTrustDetails(trustDetails);
|
|
1461
|
+
await submitDocuments({
|
|
1462
|
+
forms,
|
|
1463
|
+
legalEntity: updatedTrust,
|
|
1464
|
+
dataSubmitted: multiForm.data
|
|
1465
|
+
});
|
|
1466
|
+
await attachTrustToParentLegalEntity(updatedTrust);
|
|
1467
|
+
setLoadingStatus("success");
|
|
1468
|
+
showToast({
|
|
1469
|
+
label: t(($) => $["successfullyUpdatedDetails"]),
|
|
1470
|
+
variant: "success"
|
|
1471
|
+
});
|
|
1472
|
+
externalOnSubmit?.(multiForm.data);
|
|
1473
|
+
} catch (e) {
|
|
1474
|
+
showToast({
|
|
1475
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
1476
|
+
variant: "error"
|
|
1477
|
+
});
|
|
1478
|
+
if (isValidationError(e)) setValidationErrors(processValidationErrors(e, taskType));
|
|
1479
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
1480
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
1481
|
+
variant: "error",
|
|
1482
|
+
duration: "indefinite"
|
|
1483
|
+
});
|
|
1484
|
+
setLoadingStatus("success");
|
|
1485
|
+
}
|
|
1486
|
+
};
|
|
1487
|
+
const onSubmitUnincorporatedPartnership = async () => {
|
|
1488
|
+
setLoadingStatus("loading");
|
|
1489
|
+
const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(multiForm.data, isFeatureEnabled);
|
|
1490
|
+
try {
|
|
1491
|
+
const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(unincorporatedPartnershipDetails);
|
|
1492
|
+
await submitDocuments({
|
|
1493
|
+
forms,
|
|
1494
|
+
legalEntity: updatedUnincorporatedPartnershipDetails,
|
|
1495
|
+
dataSubmitted: multiForm.data
|
|
1496
|
+
});
|
|
1497
|
+
await attachTrustToParentLegalEntity(updatedUnincorporatedPartnershipDetails);
|
|
1498
|
+
setLoadingStatus("success");
|
|
1499
|
+
showToast({
|
|
1500
|
+
label: t(($) => $["successfullyUpdatedDetails"]),
|
|
1501
|
+
variant: "success"
|
|
1502
|
+
});
|
|
1503
|
+
externalOnSubmit?.(multiForm.data);
|
|
1504
|
+
} catch (e) {
|
|
1505
|
+
showToast({
|
|
1506
|
+
label: t(($) => $["failedToUpdateDetails"]),
|
|
1507
|
+
variant: "error"
|
|
1508
|
+
});
|
|
1509
|
+
if (isValidationError(e)) setValidationErrors(processValidationErrors(e, taskType));
|
|
1510
|
+
else if (isMaintenanceModeError(e)) showToast({
|
|
1511
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
1512
|
+
variant: "error",
|
|
1513
|
+
duration: "indefinite"
|
|
1514
|
+
});
|
|
1515
|
+
setLoadingStatus("success");
|
|
1516
|
+
}
|
|
1517
|
+
};
|
|
1518
|
+
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
1519
|
+
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
1520
|
+
const submitTrustDetails = async (legalEntity) => {
|
|
1521
|
+
if (!existingTrust) return await createLegalEntity(legalEntity);
|
|
1522
|
+
else return await updateLegalEntity({
|
|
1523
|
+
...drop("type").from(legalEntity),
|
|
1524
|
+
id: existingTrust.id
|
|
1525
|
+
});
|
|
1526
|
+
};
|
|
1527
|
+
const submitDocuments = async ({ forms, legalEntity, dataSubmitted }) => {
|
|
1528
|
+
if (isDocumentsRequired(forms)) {
|
|
1529
|
+
const formattedDocument = await mapTrustDocumentToApiDocument(dataSubmitted, legalEntity.id);
|
|
1530
|
+
if (formattedDocument) await documentUtils.uploadDocuments([formattedDocument], legalEntity.id);
|
|
1531
|
+
}
|
|
1532
|
+
};
|
|
1533
|
+
const isDocumentsRequired = (forms) => forms.some((form) => form.formId === trustForms$1.trustConstitutionalDocument.formId);
|
|
1534
|
+
const attachTrustToParentLegalEntity = async (trust) => {
|
|
1535
|
+
if (existingTrust?.id) return;
|
|
1536
|
+
const existingEntityAssociations = getOwnEntityAssociations(parentLegalEntity);
|
|
1537
|
+
await updateLegalEntity({
|
|
1538
|
+
entityAssociations: [{
|
|
1539
|
+
type: trust.type,
|
|
1540
|
+
legalEntityId: trust.id
|
|
1541
|
+
}, ...existingEntityAssociations],
|
|
1542
|
+
id: parentLegalEntity.id
|
|
1543
|
+
});
|
|
1544
|
+
};
|
|
1545
|
+
const formatDataForSummary = useCallback((formData, forms) => {
|
|
1546
|
+
let summaryData = cloneObject(formData) || {};
|
|
1547
|
+
const country = formData.trustRegistrationDetails?.country ?? (existingTrust ? getLegalEntityCountry(existingTrust) : getLegalEntityCountry(parentLegalEntity));
|
|
1548
|
+
if (formData.trustRegistrationDetails) {
|
|
1549
|
+
const trustCountry = formData.trustRegistrationDetails.country && datasetUtils.getCountryName(formData.trustRegistrationDetails.country);
|
|
1550
|
+
const trustType = formData.trustRegistrationDetails.trustType && t(($) => $[formData.trustRegistrationDetails.trustType], { ns: "trust" });
|
|
1551
|
+
const registrationNumberLabel = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
1552
|
+
companyType: LegalEntityTypes.TRUST,
|
|
1553
|
+
registrationNumberType: formData.trustRegistrationDetails.registrationNumber ? inferCompanyRegistrationNumberType(formData.trustRegistrationDetails.registrationNumber, country, LegalEntityTypes.TRUST) : getCompanyRegistrationNumberOptions(country, LegalEntityTypes.TRUST)?.[0]?.id
|
|
1554
|
+
}, registrationNumberDefaultFieldMetadata).label;
|
|
1555
|
+
const taxIdLabel = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
1556
|
+
companyType: LegalEntityTypes.TRUST,
|
|
1557
|
+
taxIdNumberType: countryToTaxInfoTypeMap[country]
|
|
1558
|
+
}, taxInformationDefaultFieldMetadata).label;
|
|
1559
|
+
summaryData.trustRegistrationDetails = {
|
|
1560
|
+
[isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"]: formData.trustRegistrationDetails?.legalName,
|
|
1561
|
+
doingBusinessAs: formData.trustRegistrationDetails?.doingBusinessAs,
|
|
1562
|
+
countryRegionOfEstablishment: trustCountry,
|
|
1563
|
+
typeOfTrustAgreement: isUnincorporatedPartnership ? void 0 : trustType,
|
|
1564
|
+
objectOfTrust: formData.trustRegistrationDetails?.objectOfTrust,
|
|
1565
|
+
[taxIdLabel]: formData.trustRegistrationDetails?.taxInformation?.find((taxId) => country === taxId.country)?.number,
|
|
1566
|
+
[registrationNumberLabel]: formData.trustRegistrationDetails.registrationNumber
|
|
1567
|
+
};
|
|
1568
|
+
}
|
|
1569
|
+
if (formData.trustRegistrationAddress?.registrationAddress) {
|
|
1570
|
+
summaryData.trustRegistrationAddress.hasInnerForms = true;
|
|
1571
|
+
summaryData.trustRegistrationAddress.registrationAddress = mapAddressLabels(formData.trustRegistrationAddress.registrationAddress, datasetUtils);
|
|
1572
|
+
}
|
|
1573
|
+
if (formData.trustRegistrationAddress?.operationalAddress) summaryData.trustRegistrationAddress.operationalAddress = mapAddressLabels(formData.trustRegistrationAddress.operationalAddress, datasetUtils);
|
|
1574
|
+
if (isDocumentsRequired(forms)) summaryData = {
|
|
1575
|
+
...summaryData,
|
|
1576
|
+
...formatFileSummaryData(formData.trustConstitutionalDocument)
|
|
1577
|
+
};
|
|
1578
|
+
else delete summaryData[trustConstitutionalDocumentFormId$1];
|
|
1579
|
+
return summaryData;
|
|
1580
|
+
}, [
|
|
1581
|
+
datasetUtils,
|
|
1582
|
+
existingTrust,
|
|
1583
|
+
isUnincorporatedPartnership,
|
|
1584
|
+
parentLegalEntity,
|
|
1585
|
+
t
|
|
1586
|
+
]);
|
|
1587
|
+
const formatFileSummaryData = (trustConstitutionalDocument) => {
|
|
1588
|
+
const constitutionalDocument = trustConstitutionalDocument?.constitutionalDocument?.[0];
|
|
1589
|
+
return { ...constitutionalDocument && { trustConstitutionalDocument: { fileName: constitutionalDocument.name } } };
|
|
1590
|
+
};
|
|
1591
|
+
const { handleNextClick, handleBackClick, activeForm, shouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
|
|
1592
|
+
problems,
|
|
1593
|
+
forms,
|
|
1594
|
+
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust,
|
|
1595
|
+
triggerValidation: multiForm.triggerValidation
|
|
1596
|
+
});
|
|
1597
|
+
return /* @__PURE__ */ jsx(FormContextProvider, {
|
|
1598
|
+
form: multiForm,
|
|
1599
|
+
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
1600
|
+
summary: {
|
|
1601
|
+
data: useMemo(() => formatDataForSummary(multiForm.data, forms), [
|
|
1602
|
+
formatDataForSummary,
|
|
1603
|
+
multiForm.data,
|
|
1604
|
+
forms
|
|
1605
|
+
]),
|
|
1606
|
+
omitted: { keys: ["operationalAddressIsSame"] }
|
|
1607
|
+
},
|
|
1608
|
+
currentStep: steps.current,
|
|
1609
|
+
totalSteps: steps.total,
|
|
1610
|
+
forms,
|
|
1611
|
+
activeForm,
|
|
1612
|
+
gotoFormByFormIndex,
|
|
1613
|
+
gotoFormByFormId,
|
|
1614
|
+
handleNextClick,
|
|
1615
|
+
handleBackClick,
|
|
1616
|
+
handleCancelClick: handleHomeClick,
|
|
1617
|
+
loadingStatus,
|
|
1618
|
+
children: /* @__PURE__ */ jsx(TrustMultiform, {
|
|
1619
|
+
country,
|
|
1620
|
+
activeForm,
|
|
1621
|
+
taskType,
|
|
1622
|
+
shouldValidate,
|
|
1623
|
+
problems
|
|
1624
|
+
})
|
|
1625
|
+
})
|
|
1626
|
+
});
|
|
1627
|
+
}
|
|
1628
|
+
//#endregion
|
|
1629
|
+
//#region src/components/Trust/pages/TrustDetailsPage.tsx
|
|
1630
|
+
var TrustDetailsPage = ({ taskType, trustId, handleHomeClick, onSubmit }) => {
|
|
1631
|
+
const { i18n } = useTranslation();
|
|
1632
|
+
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
1633
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
1634
|
+
const { data: associatedEntity, isLoading: isAssociatedEntityLoading } = useAssociatedLegalEntity(rootLe, taskType === "TRUST" ? LegalEntityTypes.TRUST : LegalEntityTypes.UNINCORPORATED_PARTNERSHIP);
|
|
1635
|
+
const { data: trustLeFromProp, isLoading: isTrustLeFromPropLoading } = useLegalEntity(trustId ?? skipToken);
|
|
1636
|
+
const trustLe = trustLeFromProp ?? associatedEntity;
|
|
1637
|
+
addResourceBundles(i18n, [{
|
|
1638
|
+
ns: "trust",
|
|
1639
|
+
importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
|
|
1640
|
+
"../language/bg-BG.json": () => import("./bg-BG-BxkwIoTQ.js"),
|
|
1641
|
+
"../language/cs-CZ.json": () => import("./cs-CZ-Cf3RE2Kz.js"),
|
|
1642
|
+
"../language/da-DK.json": () => import("./da-DK-DgFOdais.js"),
|
|
1643
|
+
"../language/de-DE.json": () => import("./de-DE-CPjVxwLK.js"),
|
|
1644
|
+
"../language/el-GR.json": () => import("./el-GR-B1VnihMi.js"),
|
|
1645
|
+
"../language/en-US.json": () => import("./en-US-RJmb2nTR.js"),
|
|
1646
|
+
"../language/es-ES.json": () => import("./es-ES-Bwj2MUyM.js"),
|
|
1647
|
+
"../language/et-EE.json": () => import("./et-EE-Mp-OiQL2.js"),
|
|
1648
|
+
"../language/fi-FI.json": () => import("./fi-FI-pvpGl_6s.js"),
|
|
1649
|
+
"../language/fr-FR.json": () => import("./fr-FR-CMMz7OEo.js"),
|
|
1650
|
+
"../language/hr-HR.json": () => import("./hr-HR-CJHkB1ko.js"),
|
|
1651
|
+
"../language/hu-HU.json": () => import("./hu-HU-BF3I2cDh.js"),
|
|
1652
|
+
"../language/it-IT.json": () => import("./it-IT-Bncw2hQ-.js"),
|
|
1653
|
+
"../language/ja-JP.json": () => import("./ja-JP-B8Rg2VNl.js"),
|
|
1654
|
+
"../language/lt-LT.json": () => import("./lt-LT-BRFs6EyI.js"),
|
|
1655
|
+
"../language/lv-LV.json": () => import("./lv-LV-pzQT6oF4.js"),
|
|
1656
|
+
"../language/nl-NL.json": () => import("./nl-NL-CscaDll4.js"),
|
|
1657
|
+
"../language/no-NO.json": () => import("./no-NO-DNxpnnM4.js"),
|
|
1658
|
+
"../language/pl-PL.json": () => import("./pl-PL-V52qRKcx.js"),
|
|
1659
|
+
"../language/pt-BR.json": () => import("./pt-BR-CPXL0egI.js"),
|
|
1660
|
+
"../language/pt-PT.json": () => import("./pt-PT-Cr2esDwf.js"),
|
|
1661
|
+
"../language/ro-RO.json": () => import("./ro-RO-DYwkjw9d.js"),
|
|
1662
|
+
"../language/sk-SK.json": () => import("./sk-SK-vSn9yvb8.js"),
|
|
1663
|
+
"../language/sl-SI.json": () => import("./sl-SI-BxJgtZKP.js"),
|
|
1664
|
+
"../language/sv-SE.json": () => import("./sv-SE-_iVNE7OY.js")
|
|
1665
|
+
}), `../language/${lang}.json`, 3)
|
|
1666
|
+
}]);
|
|
1667
|
+
const capabilities = useCapabilities();
|
|
1668
|
+
const capabilityNames = capabilities ? keysOf(capabilities) : [];
|
|
1669
|
+
const capabilityProblems = useCapabilityProblems();
|
|
1670
|
+
const problems = capabilityProblems && trustLe?.id ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, trustLe.id) : void 0;
|
|
1671
|
+
if (!rootLe || isAssociatedEntityLoading || isTrustLeFromPropLoading) return /* @__PURE__ */ jsx(Loader, {});
|
|
1672
|
+
const country = getLegalEntityCountry(trustLe ?? rootLe);
|
|
1673
|
+
return /* @__PURE__ */ jsx(isFeatureEnabled("EnableMultiFormInTrustFlow") ? TrustMultiformDropin : TrustDropin, {
|
|
1674
|
+
taskType,
|
|
1675
|
+
problems,
|
|
1676
|
+
existingTrust: trustLe,
|
|
1677
|
+
parentLegalEntity: rootLe,
|
|
1678
|
+
capabilities: capabilityNames,
|
|
1679
|
+
country,
|
|
1680
|
+
handleHomeClick,
|
|
1681
|
+
onSubmit
|
|
1682
|
+
});
|
|
1683
|
+
};
|
|
1684
|
+
//#endregion
|
|
1685
|
+
export { TrustDetailsPage };
|