@adyen/kyc-components 4.0.0-compact.0 → 4.0.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/README.md +30 -43
- package/dist/4-people-BzyXLUF9.js +24 -0
- package/dist/AD-BQAadLyG.js +23 -0
- package/dist/AT-BI8ju2NH.js +23 -0
- package/dist/AcceptTermsOfServiceComponent-CmHBNGjM.js +659 -0
- package/dist/Accordion-Cp_VkxR6.js +88 -0
- package/dist/AccountSetupRejected-CoxWTlar.js +26 -0
- package/dist/ActionBar-CxUKVmTE.js +31 -0
- package/dist/Address-Db6Q_KUo.js +1348 -0
- package/dist/Alert-DEiOX0nw.js +159 -0
- package/dist/Avatar-3K6S_tIS.js +60 -0
- package/dist/BE-nWHKW0xQ.js +23 -0
- package/dist/BG-DlvaKo4n.js +27 -0
- package/dist/BusinessDetailsMultiformDropin-CYoIN4Fa.js +4220 -0
- package/dist/BusinessFinancingComponent-DyvM-fsY.js +54 -0
- package/dist/BusinessFinancingDropin-BOvR4LwU.js +1853 -0
- package/dist/BusinessFinancingPage-8C0ztBfS.js +43 -0
- package/dist/BusinessTypeSelectionPage-DpZAsa8K.js +427 -0
- package/dist/CH-TX4BTE2y.js +23 -0
- package/dist/CY-D59Nypl7.js +23 -0
- package/dist/CZ-B6iI1GbE.js +33 -0
- package/dist/Card-CdpPhK9y.js +82 -0
- package/dist/ConstitutionalDocument-NLs6ka9K.js +143 -0
- package/dist/CountryField-9w8wRZMW.js +843 -0
- package/dist/CreateIndividualComponent-zGcoEyq0.js +71 -0
- package/dist/CreateTransferInstrumentComponent-Ct_v-IyH.js +63 -0
- package/dist/Currency-53s7DEeh.js +183 -0
- package/dist/CustomerSupport-BRcUQ4fR.js +153 -0
- package/dist/DE-CsuX_tSL.js +23 -0
- package/dist/DK-oQEFrF6o.js +33 -0
- package/dist/DebugModal-CokbXGK9.js +413 -0
- package/dist/DecisionMakerDetailsPage-B5cLY8iP.js +106 -0
- package/dist/DecisionMakers-BQ24LfqB.js +830 -0
- package/dist/DropinLayout-CBP_cHLC.js +17 -0
- package/dist/EE-3WZV5Ejt.js +23 -0
- package/dist/ES-NfxpqbC2.js +23 -0
- package/dist/EmbeddedStatus-DB9B_u3L.js +99 -0
- package/dist/EndStateLayout-BWC5aqVS.js +71 -0
- package/dist/EntityAssociation-gzYdcHoL.js +159 -0
- package/dist/EntityGuidanceStatus-BKeZKnbP.js +105 -0
- package/dist/FI-CHQIvHa-.js +23 -0
- package/dist/FR-MWZyWX3x.js +23 -0
- package/dist/FormFlow-Cf3Ff2qw.js +224 -0
- package/dist/FormNavigation-CjgZbv9G.js +144 -0
- package/dist/FormWrapper-dbBZegkX.js +135 -0
- package/dist/GG-CPoMVQPc.js +33 -0
- package/dist/GI-DxmBwVD_.js +41 -0
- package/dist/GR-Rk0pXlNw.js +23 -0
- package/dist/HR-WapHW2fw.js +23 -0
- package/dist/HU-DCOMuOhe.js +32 -0
- package/dist/IE-BkgtVgDi.js +23 -0
- package/dist/IM-Wr4iDT94.js +33 -0
- package/dist/IS-C-Cgc6zp.js +27 -0
- package/dist/IT-CXekiddL.js +23 -0
- package/dist/IndividualOnfido-Cc7dydKq.js +9594 -0
- package/dist/IndividualOnfidoDropin-BpU2cL4E.js +2497 -0
- package/dist/InputText-Dsw9kiwL.js +249 -0
- package/dist/Introduction-C8mTk4l_.js +300 -0
- package/dist/JE-B4gj54Hg.js +33 -0
- package/dist/JpAddress-R81eO-aY.js +280 -0
- package/dist/LI-L0ZAALRT.js +23 -0
- package/dist/LT-Ao2uagV9.js +23 -0
- package/dist/LU-B7LRUuc6.js +23 -0
- package/dist/LV-DZeGjA2G.js +23 -0
- package/dist/LegalRepresentativeDetailsPage-DIQX18v2.js +60 -0
- package/dist/ListItem-D3p6EgP_.js +69 -0
- package/dist/MC-EDVNGWhy.js +23 -0
- package/dist/MT-B9my7RlP.js +23 -0
- package/dist/ManageIndividualComponent-CmM-vP9E.js +46 -0
- package/dist/ManageTermsOfServiceComponent-C3hXZJx5.js +52 -0
- package/dist/ManageTransferInstrumentComponent-co6LYrVY.js +287 -0
- package/dist/MaybeModal-BVQOzETz.js +25 -0
- package/dist/Modal-CloeVnNp.js +149 -0
- package/dist/NL-VXAFOhV5.js +23 -0
- package/dist/NO-Cx1VSh2W.js +32 -0
- package/dist/OnboardingDropinComponent-CDAK4v1o.js +7908 -0
- package/dist/PL-BZW1hGvD.js +32 -0
- package/dist/PT-OpU4MU3L.js +23 -0
- package/dist/PayoutDetailsDropin-DCrlrNki.js +4841 -0
- package/dist/RO-Cz6Sh0ls.js +23 -0
- package/dist/Review-Dqn49vJM.js +83 -0
- package/dist/RootBusinessDetailsPage-DSEq3TIn.js +61 -0
- package/dist/RootBusinessLinesPage-CbPhOber.js +1118 -0
- package/dist/RootIndividualDetailsPage-Bp_7gSIB.js +71 -0
- package/dist/SE-B5K-FkQd.js +33 -0
- package/dist/SI-BOGTNLPa.js +23 -0
- package/dist/SK-BOVrp_Av.js +23 -0
- package/dist/SM-meowwILA.js +23 -0
- package/dist/SignPCIComponent-B6kYuqT_.js +304 -0
- package/dist/SingpassSelection-aDrNTYr3.js +130 -0
- package/dist/SoleProprietorshipPage-HnUsyjKp.js +60 -0
- package/dist/SourceOfFundsPage-BkMEIV_L.js +2383 -0
- package/dist/StepProgressIndicator-BgeMe93n.js +78 -0
- package/dist/StoreProvider-BFN15Go9.js +7674 -0
- package/dist/Summary-BkE_c8pU.js +204 -0
- package/dist/TaxReportingDropin-LG9zvOMN.js +502 -0
- package/dist/TrustDetailsPage-C8w8pEvB.js +2149 -0
- package/dist/TrustMemberCompanyPage-IDEwpLW3.js +73 -0
- package/dist/TrustMemberIndividualPage-rKB3iVFk.js +66 -0
- package/dist/TrustMemberRoleAndTypePage-CLtX8V0M.js +985 -0
- package/dist/TrustMembersOverview-Bs203hm0.js +438 -0
- package/dist/UnincorporatedPartnershipIndividualPage-CBTaUEld.js +65 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-ZnLe9Uq3.js +76 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BXImA2c_.js +281 -0
- package/dist/UnincorporatedPartnershipMembersOverview-c7k2JzcO.js +172 -0
- package/dist/VA-DXsYTCoh.js +23 -0
- package/dist/VerificationErrorAlert-uubpHQGE.js +79 -0
- package/dist/ViewVerificationStatusComponent-DO9L2hEO.js +180 -0
- package/dist/adyen-business-financing.js +5 -6
- package/dist/adyen-individual-configuration.js +7 -8
- package/dist/adyen-individual-status.js +7 -8
- package/dist/adyen-kyc-components.js +38 -33
- package/dist/adyen-onboarding.js +4 -5
- package/dist/adyen-terms-of-service-management.js +7 -8
- package/dist/adyen-terms-of-service-status.js +7 -8
- package/dist/adyen-transfer-instrument-configuration.js +7 -8
- package/dist/adyen-transfer-instrument-management.js +7 -8
- package/dist/adyen-verification-status.js +5 -6
- package/dist/arrow-right-KxA3SvQj.js +14 -0
- package/dist/bag-BPumznWh.js +14 -0
- package/dist/bank-D6FiNBhs.js +14 -0
- package/dist/bg-BG-B7Xs_t04.js +13 -0
- package/dist/bg-BG-BY3Wa361.js +54 -0
- package/dist/bg-BG-BvLl6gaB.js +13 -0
- package/dist/bg-BG-CepHap8j.js +68 -0
- package/dist/bg-BG-Coja327N.js +24 -0
- package/dist/bg-BG-D9J6LnkI.js +57 -0
- package/dist/bg-BG-DH45-0B-.js +29 -0
- package/dist/bg-BG-DRkMqyL8.js +13 -0
- package/dist/bg-BG-DcxZ1tmt.js +32 -0
- package/dist/bg-BG-Dp4LxSP7.js +37 -0
- package/dist/bg-BG-DpIAKQve.js +113 -0
- package/dist/bg-BG-er0t4jTs.js +27 -0
- package/dist/bg-BG-mLSjG76Q.js +13 -0
- package/dist/bg-BG-wVquMNtT.js +55 -0
- package/dist/bin-Bz6KOIeE.js +18 -0
- package/dist/capital-GVQ3svwN.js +17 -0
- package/dist/cash-stack-D9AoDDwt.js +22 -0
- package/dist/certificate-CdEWgHQf.js +17 -0
- package/dist/checkmark-Q7x6tGhy.js +14 -0
- package/dist/checkmark-circle-fill-CsvN5_PL.js +17 -0
- package/dist/checkmark-circle-x7dzbp3I.js +20 -0
- package/dist/checkmark-small-D35myntq.js +14 -0
- package/dist/chevron-down-C2iDorpW.js +14 -0
- package/dist/chevron-left-ztPO84q-.js +14 -0
- package/dist/chevron-right-C_JN0oDt.js +14 -0
- package/dist/chevron-up-CgG8n25g.js +14 -0
- package/dist/circle-Bt3Nlr3q.js +17 -0
- package/dist/circle-small-filled-YMzP6yQU.js +14 -0
- package/dist/clock-BZHremOA.js +20 -0
- package/dist/coins-fkAk6dCo.js +17 -0
- package/dist/contract-BTa4HltT.js +14 -0
- package/dist/cross-Cn09MtQ_.js +14 -0
- package/dist/cross-circle-fill-small-DCz52AuN.js +14 -0
- package/dist/cs-CZ--jOkoHVS.js +55 -0
- package/dist/cs-CZ-BDf9m4Rw.js +113 -0
- package/dist/cs-CZ-BEFeaKsV.js +54 -0
- package/dist/cs-CZ-BP7niQM9.js +68 -0
- package/dist/cs-CZ-BSWXexr4.js +13 -0
- package/dist/cs-CZ-BsV9NiQ2.js +13 -0
- package/dist/cs-CZ-CQNBae2b.js +27 -0
- package/dist/cs-CZ-CyLqoG1j.js +37 -0
- package/dist/cs-CZ-D4Hg-t16.js +32 -0
- package/dist/cs-CZ-DPVMeRye.js +29 -0
- package/dist/cs-CZ-DXtJsBPz.js +24 -0
- package/dist/cs-CZ-DY_pQqAT.js +57 -0
- package/dist/cs-CZ-DalFZigH.js +13 -0
- package/dist/cs-CZ-hT5w5It6.js +13 -0
- package/dist/da-DK-CI-vfqPo.js +113 -0
- package/dist/da-DK-D4Ojw97o.js +13 -0
- package/dist/da-DK-DCJhV2qS.js +32 -0
- package/dist/da-DK-DU4dCNEw.js +29 -0
- package/dist/da-DK-DWA8uOd8.js +24 -0
- package/dist/da-DK-DYpfNZdP.js +37 -0
- package/dist/da-DK-DZwlENGe.js +13 -0
- package/dist/da-DK-Dc0QYG8m.js +68 -0
- package/dist/da-DK-JHZnsI59.js +55 -0
- package/dist/da-DK-P3YSaBqs.js +13 -0
- package/dist/da-DK-R_y7YwqQ.js +13 -0
- package/dist/da-DK-gnPgzwrG.js +27 -0
- package/dist/da-DK-jK7c9UL0.js +57 -0
- package/dist/de-DE-BR6CLZw6.js +13 -0
- package/dist/de-DE-BXt1K0Tr.js +37 -0
- package/dist/de-DE-BcuLmcC8.js +13 -0
- package/dist/de-DE-D3lLuF8z.js +27 -0
- package/dist/de-DE-D50lGOJE.js +24 -0
- package/dist/de-DE-DXR3EpEc.js +13 -0
- package/dist/de-DE-DwOQKCuU.js +32 -0
- package/dist/de-DE-Dz2OsS1F.js +68 -0
- package/dist/de-DE-Dz2l6jRl.js +29 -0
- package/dist/de-DE-VGGEkxUT.js +55 -0
- package/dist/de-DE-nG2MBigU.js +113 -0
- package/dist/de-DE-opyC1JO-.js +13 -0
- package/dist/de-DE-wmerDL2e.js +57 -0
- package/dist/debouncedInputEvent-Dlbc7VjU.js +109 -0
- package/dist/debugStore-BvbyN1Oi.js +14 -0
- package/dist/document-1-C08ut-Dt.js +14 -0
- package/dist/document-person-vxlA6C5f.js +20 -0
- package/dist/documentUtils-CUgKVLK4.js +218 -0
- package/dist/download-Drhk9k1f.js +17 -0
- package/dist/dropinUtils-D2lBlNWp.js +202 -0
- package/dist/edit-1-CFoDTMvQ.js +14 -0
- package/dist/el-GR-B3FHqTOX.js +13 -0
- package/dist/el-GR-B5j7VZ3E.js +54 -0
- package/dist/el-GR-B90M6tcZ.js +37 -0
- package/dist/el-GR-BHG69mXl.js +68 -0
- package/dist/el-GR-BX-MyQZY.js +113 -0
- package/dist/el-GR-Btrk_npt.js +57 -0
- package/dist/el-GR-CKHMsdx2.js +24 -0
- package/dist/el-GR-CWd7XYDU.js +13 -0
- package/dist/el-GR-CofvCav-.js +13 -0
- package/dist/el-GR-DtFE64KX.js +13 -0
- package/dist/el-GR-Hk4NbZSY.js +32 -0
- package/dist/el-GR-MLFY-Gg7.js +29 -0
- package/dist/el-GR-XRux2Wpv.js +27 -0
- package/dist/el-GR-gkaKwnln.js +55 -0
- package/dist/en-US-B96dpVon.js +27 -0
- package/dist/en-US-BPI4FZwa.js +113 -0
- package/dist/en-US-BQZhzROc.js +32 -0
- package/dist/en-US-CozY33On.js +13 -0
- package/dist/en-US-CzEL6t1W.js +55 -0
- package/dist/en-US-D-B35AoN.js +68 -0
- package/dist/en-US-D2yrwtzT.js +24 -0
- package/dist/en-US-DYo4OF-P.js +29 -0
- package/dist/en-US-Dg505Oh3.js +37 -0
- package/dist/en-US-fyGPkcqX.js +13 -0
- package/dist/en-US-gsp7CD_E.js +57 -0
- package/dist/en-US-h0JneJJl.js +13 -0
- package/dist/es-ES-0ROz-BJh.js +29 -0
- package/dist/es-ES-BAg3NqQO.js +13 -0
- package/dist/es-ES-BI_jdT67.js +68 -0
- package/dist/es-ES-BOoPqnPI.js +32 -0
- package/dist/es-ES-BhINIOee.js +13 -0
- package/dist/es-ES-BhNhIf08.js +37 -0
- package/dist/es-ES-Bn9_0wK0.js +55 -0
- package/dist/es-ES-CEp-ttVJ.js +13 -0
- package/dist/es-ES-CXDJLKAI.js +27 -0
- package/dist/es-ES-DF_L5EDd.js +24 -0
- package/dist/es-ES-Q16q2JJ6.js +113 -0
- package/dist/es-ES-Qnc0Q6JH.js +57 -0
- package/dist/es-ES-yMXcOjDL.js +13 -0
- package/dist/et-EE--cL_YqWe.js +27 -0
- package/dist/et-EE-BMgFCxds.js +37 -0
- package/dist/et-EE-BYSnV6Iq.js +55 -0
- package/dist/et-EE-Be__VK7Y.js +32 -0
- package/dist/et-EE-Bk2IHQWP.js +13 -0
- package/dist/et-EE-BuBiNLCi.js +24 -0
- package/dist/et-EE-C8RrUpLm.js +13 -0
- package/dist/et-EE-C_PZO2aI.js +68 -0
- package/dist/et-EE-Ci8RU2wg.js +13 -0
- package/dist/et-EE-DUWZ2Vqm.js +54 -0
- package/dist/et-EE-DmShD6oS.js +113 -0
- package/dist/et-EE-TzXANcP2.js +57 -0
- package/dist/et-EE-esci5847.js +29 -0
- package/dist/et-EE-x29FUaYN.js +118 -0
- package/dist/external-link-DCMYUMfW.js +14 -0
- package/dist/fi-FI-B_P4BAda.js +113 -0
- package/dist/fi-FI-CDISJifz.js +13 -0
- package/dist/fi-FI-DH6jpo9K.js +24 -0
- package/dist/fi-FI-DjlB2a7k.js +13 -0
- package/dist/fi-FI-Dn2MC8uW.js +57 -0
- package/dist/fi-FI-MiyuQqH8.js +13 -0
- package/dist/fi-FI-PVFqd5Ra.js +55 -0
- package/dist/fi-FI-bZzNB1WB.js +32 -0
- package/dist/fi-FI-fArobrt5.js +27 -0
- package/dist/fi-FI-hwzizPnr.js +68 -0
- package/dist/fi-FI-xXrvDLFe.js +29 -0
- package/dist/fi-FI-xqnQ38yC.js +13 -0
- package/dist/fi-FI-ysUrBilO.js +37 -0
- package/dist/fieldConfigurations-C38LzPl3.js +1402 -0
- package/dist/fr-FR-BSvSKazD.js +37 -0
- package/dist/fr-FR-BSynpexF.js +13 -0
- package/dist/fr-FR-BWX14yb7.js +57 -0
- package/dist/fr-FR-BnblnBsx.js +24 -0
- package/dist/fr-FR-Bw9O-QAU.js +29 -0
- package/dist/fr-FR-CUdiBCVB.js +113 -0
- package/dist/fr-FR-CYZXbwc9.js +68 -0
- package/dist/fr-FR-CiwkAb3E.js +27 -0
- package/dist/fr-FR-DGMVrsJv.js +13 -0
- package/dist/fr-FR-Dx-CiPdB.js +13 -0
- package/dist/fr-FR-aJ3cg4x0.js +13 -0
- package/dist/fr-FR-cTKcuHqX.js +32 -0
- package/dist/fr-FR-mJK4hjwD.js +55 -0
- package/dist/getFieldsWithExistingData-B0l_1eCG.js +22 -0
- package/dist/getName-CIw0MR9e.js +48 -0
- package/dist/gift-CQ_DEma7.js +14 -0
- package/dist/graph-BJmqglH2.js +21 -0
- package/dist/graph-up-Bq6adtlX.js +20 -0
- package/dist/hasDataChanged-B-_hLK5I.js +19 -0
- package/dist/headquarter-DNYyuuFq.js +21 -0
- package/dist/hotel-BuNql78Z.js +22 -0
- package/dist/hr-HR-BHt_jklG.js +13 -0
- package/dist/hr-HR-BLpGb4f2.js +37 -0
- package/dist/hr-HR-CXpCIMhI.js +113 -0
- package/dist/hr-HR-CZLSQruE.js +57 -0
- package/dist/hr-HR-CnP5sqih.js +54 -0
- package/dist/hr-HR-ComCqan_.js +32 -0
- package/dist/hr-HR-D5V7g9H2.js +13 -0
- package/dist/hr-HR-D8_yhtIo.js +29 -0
- package/dist/hr-HR-De5kHU8U.js +24 -0
- package/dist/hr-HR-DtfHQVe0.js +27 -0
- package/dist/hr-HR-VivDwwdW.js +13 -0
- package/dist/hr-HR-bE6cvRCQ.js +68 -0
- package/dist/hr-HR-n7aMHIpM.js +13 -0
- package/dist/hr-HR-qmYyO-nT.js +55 -0
- package/dist/hu-HU-BTlpbCpc.js +54 -0
- package/dist/hu-HU-BcogZby3.js +24 -0
- package/dist/hu-HU-CS-7iNS4.js +55 -0
- package/dist/hu-HU-Ca9Hex26.js +37 -0
- package/dist/hu-HU-DDsdPI5V.js +13 -0
- package/dist/hu-HU-DG-NUDx4.js +68 -0
- package/dist/hu-HU-DUGz5q5D.js +32 -0
- package/dist/hu-HU-D_DvlCMw.js +13 -0
- package/dist/hu-HU-DqEBeq-w.js +113 -0
- package/dist/hu-HU-I4-KFzvz.js +27 -0
- package/dist/hu-HU-KliQetm5.js +29 -0
- package/dist/hu-HU-WEtpzb41.js +13 -0
- package/dist/hu-HU-hbVM6tMS.js +13 -0
- package/dist/hu-HU-kp8Go5hZ.js +57 -0
- package/dist/iframeWidget-yBLSAmf8.js +234 -0
- package/dist/image-BSihO8lR.js +17 -0
- package/dist/info-vHTZWoJ7.js +21 -0
- package/dist/it-IT-B0YGvVgW.js +57 -0
- package/dist/it-IT-BTWkWSJq.js +55 -0
- package/dist/it-IT-C2MZo4KT.js +13 -0
- package/dist/it-IT-C_651bEP.js +13 -0
- package/dist/it-IT-Ckv8Ce4e.js +24 -0
- package/dist/it-IT-DERflsUd.js +32 -0
- package/dist/it-IT-DIbH-udG.js +27 -0
- package/dist/it-IT-DLm11dH5.js +13 -0
- package/dist/it-IT-Erh1DIlj.js +68 -0
- package/dist/it-IT-MwpjRAG6.js +29 -0
- package/dist/it-IT-NCFAqV1F.js +113 -0
- package/dist/it-IT-Qfzc8jnW.js +37 -0
- package/dist/it-IT-yV7ewjWU.js +13 -0
- package/dist/ja-JP-2u5fqLWF.js +29 -0
- package/dist/ja-JP-Bktpl_2b.js +118 -0
- package/dist/ja-JP-BoxeBgOv.js +32 -0
- package/dist/ja-JP-CHQ64lw1.js +37 -0
- package/dist/ja-JP-CSz7fEkn.js +55 -0
- package/dist/ja-JP-CWe8f7m4.js +13 -0
- package/dist/ja-JP-C_-moDrA.js +113 -0
- package/dist/ja-JP-CbgaW99b.js +54 -0
- package/dist/ja-JP-Ctsk4z4q.js +151 -0
- package/dist/ja-JP-CvNJvxkQ.js +218 -0
- package/dist/ja-JP-Dz9IVH4p.js +57 -0
- package/dist/ja-JP-FWHXsXlW.js +24 -0
- package/dist/ja-JP-ThzG9vIo.js +68 -0
- package/dist/ja-JP-bz7ekGnF.js +27 -0
- package/dist/localizeDateString-C-G2nUor.js +27 -0
- package/dist/location-Q4oKvnkl.js +17 -0
- package/dist/lt-LT-0RKZeraM.js +37 -0
- package/dist/lt-LT-B6XmKUXx.js +55 -0
- package/dist/lt-LT-BEsBoIQ9.js +29 -0
- package/dist/lt-LT-BLsIcCtE.js +27 -0
- package/dist/lt-LT-CU5qHa7a.js +113 -0
- package/dist/lt-LT-CYiW52tl.js +13 -0
- package/dist/lt-LT-Cg9c0kae.js +13 -0
- package/dist/lt-LT-Ci357QYQ.js +13 -0
- package/dist/lt-LT-D5Rhxm1h.js +32 -0
- package/dist/lt-LT-DDdq07sX.js +24 -0
- package/dist/lt-LT-DTQGR9M0.js +54 -0
- package/dist/lt-LT-Nd1uRoIj.js +68 -0
- package/dist/lt-LT-W6fTjwB5.js +13 -0
- package/dist/lt-LT-l9rzkFg9.js +57 -0
- package/dist/lv-LV-BQ4F1GrV.js +54 -0
- package/dist/lv-LV-Bh-WQp0K.js +37 -0
- package/dist/lv-LV-C7hMdPcY.js +27 -0
- package/dist/lv-LV-CG1zToz7.js +32 -0
- package/dist/lv-LV-CgMxfFK8.js +13 -0
- package/dist/lv-LV-CkyuY2ji.js +24 -0
- package/dist/lv-LV-CpGkmcLz.js +113 -0
- package/dist/lv-LV-CxUmQHF9.js +13 -0
- package/dist/lv-LV-DKhV24CI.js +68 -0
- package/dist/lv-LV-DYbb5pkt.js +57 -0
- package/dist/lv-LV-DsSpy50n.js +55 -0
- package/dist/lv-LV-DsxFGThp.js +13 -0
- package/dist/lv-LV-Dxe-A5vo.js +13 -0
- package/dist/lv-LV-Veji7-on.js +29 -0
- package/dist/mail-BOdyoVqB.js +14 -0
- package/dist/mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js +56 -0
- package/dist/mapExistingFile-BhW5UmN9.js +156 -0
- package/dist/mapFinancialReportsToFinancialInformation-Dl-cl9eQ.js +67 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-KFAvfuC1.js +63 -0
- package/dist/mapLegalEntityToIndividualOnfidoSchema-D51tRiYd.js +143 -0
- package/dist/mapTransferInstrumentToPayoutAccount-CU5wx0wJ.js +33 -0
- package/dist/minus-circle-filled-kC2IUvKz.js +17 -0
- package/dist/nl-NL-BMUYBqlF.js +57 -0
- package/dist/nl-NL-Bk-1-C0e.js +13 -0
- package/dist/nl-NL-BuW3jWdI.js +29 -0
- package/dist/nl-NL-Bx5p0nXL.js +24 -0
- package/dist/nl-NL-CMw-FwQV.js +13 -0
- package/dist/nl-NL-CTf7zH4M.js +55 -0
- package/dist/nl-NL-Cjlmc0Ii.js +32 -0
- package/dist/nl-NL-D7gBNWEY.js +37 -0
- package/dist/nl-NL-DKMs4pB2.js +13 -0
- package/dist/nl-NL-DMpB18Te.js +113 -0
- package/dist/nl-NL-JChnFdCY.js +13 -0
- package/dist/nl-NL-NlkjOSYi.js +27 -0
- package/dist/nl-NL-O9GCHMDA.js +68 -0
- package/dist/no-NO--OoWld_l.js +13 -0
- package/dist/no-NO-B-oUwe9q.js +13 -0
- package/dist/no-NO-Bs3-6MDM.js +24 -0
- package/dist/no-NO-C-gCYc9q.js +37 -0
- package/dist/no-NO-CA0EizAy.js +29 -0
- package/dist/no-NO-CA1aR6Wh.js +68 -0
- package/dist/no-NO-CY_XHrYd.js +32 -0
- package/dist/no-NO-Ca5qoVaU.js +113 -0
- package/dist/no-NO-Crlsj6HG.js +27 -0
- package/dist/no-NO-DKbWxgF-.js +57 -0
- package/dist/no-NO-DN9qf-_I.js +13 -0
- package/dist/no-NO-Dhj0Fh__.js +13 -0
- package/dist/no-NO-RfTK9KAV.js +55 -0
- package/dist/options-horizontal-CBmbNv7R.js +18 -0
- package/dist/partner-CPjsrePY.js +18 -0
- package/dist/pay-by-link-plane-BVZndh67.js +22 -0
- package/dist/payout-ChUEoLjt.js +20 -0
- package/dist/payout-verification-instant-5u-wvFKv.js +41 -0
- package/dist/payout-verification-manual-BH2mu0UW.js +90 -0
- package/dist/person-DGjUU4S4.js +17 -0
- package/dist/pl-PL-B0zGy_b4.js +57 -0
- package/dist/pl-PL-BKDK0_G8.js +68 -0
- package/dist/pl-PL-BSI0zHO1.js +113 -0
- package/dist/pl-PL-BzhEoDb5.js +24 -0
- package/dist/pl-PL-C_MvVzPy.js +32 -0
- package/dist/pl-PL-D7nhdbfR.js +29 -0
- package/dist/pl-PL-DGSYzOx6.js +13 -0
- package/dist/pl-PL-DYxD6VJ_.js +27 -0
- package/dist/pl-PL-DtJ3sgVO.js +13 -0
- package/dist/pl-PL-Duj3tncM.js +13 -0
- package/dist/pl-PL-Dy8qWH39.js +55 -0
- package/dist/pl-PL-LnVPufjb.js +37 -0
- package/dist/pl-PL-kGaeUP-w.js +54 -0
- package/dist/pl-PL-p8YxqOFg.js +13 -0
- package/dist/plus-CWXA5wdX.js +14 -0
- package/dist/plus-circle-filled-CbC0u2Y1.js +17 -0
- package/dist/process-field-configurations-DoOFQqtn.js +324 -0
- package/dist/pt-BR--kaJvtE6.js +57 -0
- package/dist/pt-BR-BbFJsIVX.js +55 -0
- package/dist/pt-BR-Be5ZycMV.js +13 -0
- package/dist/pt-BR-BfxgHKY4.js +27 -0
- package/dist/pt-BR-C0I_kTQ6.js +13 -0
- package/dist/pt-BR-CBAe0SnK.js +32 -0
- package/dist/pt-BR-Cj8MlQyq.js +113 -0
- package/dist/pt-BR-Cm4vZocb.js +13 -0
- package/dist/pt-BR-D1nTSLod.js +29 -0
- package/dist/pt-BR-DKrMpM6v.js +13 -0
- package/dist/pt-BR-DSENwwGu.js +24 -0
- package/dist/pt-BR-NtLaWlnZ.js +68 -0
- package/dist/pt-BR-nU_2Wbo5.js +54 -0
- package/dist/pt-BR-ur86nRrK.js +37 -0
- package/dist/pt-PT-B4F_5NWi.js +55 -0
- package/dist/pt-PT-B9L50746.js +29 -0
- package/dist/pt-PT-BJjCTMYf.js +13 -0
- package/dist/pt-PT-BJkVzfAJ.js +113 -0
- package/dist/pt-PT-BR-BI5Jn.js +13 -0
- package/dist/pt-PT-BZ5ZZm6G.js +57 -0
- package/dist/pt-PT-Bf4IV7wp.js +13 -0
- package/dist/pt-PT-Bh7v8xbp.js +13 -0
- package/dist/pt-PT-CIo3mlXL.js +24 -0
- package/dist/pt-PT-CVNEcs32.js +37 -0
- package/dist/pt-PT-DSxxVA0f.js +68 -0
- package/dist/pt-PT-Dm5DRDrd.js +32 -0
- package/dist/pt-PT-TKg5FLat.js +27 -0
- package/dist/recurring-CkL4cCM2.js +17 -0
- package/dist/reporting-DerosUNm.js +16 -0
- package/dist/resolveEnvironment-Dyejukh7.js +164 -0
- package/dist/revenue-accelerate-Dp4Ns_5c.js +17 -0
- package/dist/ro-RO-3rOfS17N.js +27 -0
- package/dist/ro-RO-4j2I7YM7.js +13 -0
- package/dist/ro-RO-5I4Q_FyK.js +13 -0
- package/dist/ro-RO-B5YT9vP-.js +32 -0
- package/dist/ro-RO-B8leE4ZJ.js +13 -0
- package/dist/ro-RO-Bybq8JFn.js +68 -0
- package/dist/ro-RO-C83h2zHZ.js +54 -0
- package/dist/ro-RO-CICjAFys.js +55 -0
- package/dist/ro-RO-CdSsgoUG.js +57 -0
- package/dist/ro-RO-DjGku_3y.js +13 -0
- package/dist/ro-RO-DvG65dTt.js +29 -0
- package/dist/ro-RO-ILTvlS9i.js +24 -0
- package/dist/ro-RO-RgC5M6CE.js +113 -0
- package/dist/ro-RO-i7lojG2G.js +37 -0
- package/dist/rules-DP604XPJ.js +314 -0
- package/dist/save-Fgy7EDid.js +14 -0
- package/dist/search-C4GZ-Rc1.js +17 -0
- package/dist/show-yPjPmEf8.js +17 -0
- package/dist/sk-SK-0BVxI7bf.js +113 -0
- package/dist/sk-SK-B5brxU1N.js +37 -0
- package/dist/sk-SK-BMJgOJoa.js +29 -0
- package/dist/sk-SK-BRd5TN22.js +55 -0
- package/dist/sk-SK-BVmoP_EU.js +13 -0
- package/dist/sk-SK-BWwRIx2d.js +13 -0
- package/dist/sk-SK-Bb18qPBw.js +13 -0
- package/dist/sk-SK-BiBWPJUf.js +57 -0
- package/dist/sk-SK-C5Qmv4E6.js +13 -0
- package/dist/sk-SK-C6rMIxpz.js +68 -0
- package/dist/sk-SK-CgLJIuJw.js +54 -0
- package/dist/sk-SK-CjrLvDMx.js +27 -0
- package/dist/sk-SK-Cv23cDQO.js +24 -0
- package/dist/sk-SK-S6iF1WDH.js +32 -0
- package/dist/sl-SI-6s8xycKg.js +13 -0
- package/dist/sl-SI-BMF8YtOm.js +29 -0
- package/dist/sl-SI-BZpXMHiG.js +13 -0
- package/dist/sl-SI-BxImW_RL.js +113 -0
- package/dist/sl-SI-C-C-KJCX.js +27 -0
- package/dist/sl-SI-CUCrzJQv.js +37 -0
- package/dist/sl-SI-CaJmYb6p.js +13 -0
- package/dist/sl-SI-D8dDckrW.js +55 -0
- package/dist/sl-SI-DEaeEVKB.js +24 -0
- package/dist/sl-SI-DqUEy_Cm.js +32 -0
- package/dist/sl-SI-DtdGMD6i.js +57 -0
- package/dist/sl-SI-ZxyvdgdS.js +13 -0
- package/dist/sl-SI-tPwbFvOI.js +68 -0
- package/dist/solution-payments-CNAat9h7.js +14 -0
- package/dist/store-IuAkDRAp.js +14 -0
- package/dist/style.css +2143 -1744
- package/dist/styles-CLV89_hH.js +2143 -1744
- package/dist/sv-SE-B1sbgsnh.js +13 -0
- package/dist/sv-SE-BHfydid5.js +27 -0
- package/dist/sv-SE-BUq1X9F0.js +113 -0
- package/dist/sv-SE-BYC_f8r7.js +29 -0
- package/dist/sv-SE-C6uPh9g5.js +37 -0
- package/dist/sv-SE-CCFIf86P.js +13 -0
- package/dist/sv-SE-CRBRuE8Z.js +32 -0
- package/dist/sv-SE-CXaMlJCI.js +24 -0
- package/dist/sv-SE-DGpvVvWj.js +55 -0
- package/dist/sv-SE-D_ZnGxiQ.js +13 -0
- package/dist/sv-SE-DsPdegWB.js +13 -0
- package/dist/sv-SE-K1QT1cOt.js +68 -0
- package/dist/sv-SE-kR514dO1.js +57 -0
- package/dist/terminal-1-_me9J9h0.js +18 -0
- package/dist/trackNavigation-db_h46BT.js +28 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +6 -2
- package/dist/types/api/address/useRetrieveAddress.d.ts +3 -1
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +18 -0
- package/dist/types/api/businessLines/businessLines.types.d.ts +16 -0
- package/dist/types/api/businessLines/useBusinessLines.d.ts +4 -2
- package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +7 -0
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +5 -0
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +7 -0
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +1 -0
- package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -0
- package/dist/types/api/configurations/useScenarios.d.ts +12 -12
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +15 -0
- package/dist/types/api/industryCodes/industryCodes.types.d.ts +2 -1
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +3 -3
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +16 -16
- package/dist/types/api/pci/pci.types.d.ts +17 -0
- package/dist/types/api/pci/usePciQuestionnaire.d.ts +6 -0
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +12 -0
- package/dist/types/api/pci/usePciStatus.d.ts +6 -0
- package/dist/types/api/pci/usePciTemplate.d.ts +8 -0
- package/dist/types/api/queryKeys.d.ts +5 -4
- package/dist/types/components/BankAccount/fields/BankAccountFormat/types.d.ts +2 -1
- package/dist/types/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.d.ts +10 -0
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +5 -0
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirementsModal.d.ts +6 -0
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/BankDocument/validate.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +7 -0
- package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutAccount/payoutAccountFormat.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutRequirementsModal.d.ts +8 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +13 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +6 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +5 -5
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +2 -0
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +2 -1
- package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1052 -642
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -3
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +5 -4
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -1
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +5 -3
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
- package/dist/types/components/Business/forms/rules.d.ts +3 -1
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +9 -6
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +2 -1
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -2
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +5 -0
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +3 -3
- package/dist/types/components/Business/utils/requestingCapabilities.d.ts +3 -0
- package/dist/types/components/BusinessLines/constants.d.ts +23 -0
- package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +30 -0
- package/dist/types/components/BusinessLines/fields/SalesChannels/SalesChannels.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/SalesChannels/types.d.ts +6 -0
- package/dist/types/components/BusinessLines/fields/WebDataField/WebDataField.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +6 -0
- package/dist/types/components/BusinessLines/forms/IndustryCodesForm/IndustryCodesForm.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/IndustryCodesForm/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/SalesChannelsForm.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/types.d.ts +3 -0
- package/dist/types/components/BusinessLines/forms/rules.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +6 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLines.d.ts +9 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +2 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesStore.d.ts +3 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/ExistingBusinessLines/ExistingBusinessLines.d.ts +8 -0
- package/dist/types/components/BusinessLines/tasks/types.d.ts +17 -0
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +21 -0
- package/dist/types/components/BusinessLines/tasks/validate.d.ts +9 -0
- package/dist/types/components/Contract/hooks/useSalesChannels.d.ts +2 -0
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1328 -758
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +7 -5
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsType.d.ts +3 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/sofStore.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +14 -13
- package/dist/types/components/EFP/tasks/TaxReportingDropin/taxClassificationStore.d.ts +1 -1
- package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +6 -6
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/BusinessFinancingComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +3 -3
- package/dist/types/components/EmbeddedDropins/SignPCIComponent/SignPCIComponent.d.ts +3 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +3 -3
- package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +3 -0
- package/dist/types/components/Individual/forms/Individual/IdVerification/idVerificationProviderId.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +3 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +3 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +4 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +3 -1
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -2
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -8
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -6
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +2 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +57 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/RemediationAlerts.d.ts +7 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +19 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +3 -0
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -4
- package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +1 -1
- package/dist/types/components/Shared/FormNavigation/types.d.ts +0 -2
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +1 -3
- package/dist/types/components/Shared/Introduction/copy.d.ts +2 -2
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
- package/dist/types/components/Shared/Summary/types.d.ts +1 -2
- package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +18 -0
- package/dist/types/components/Shared/devex/DebugListener/DebugFormData.d.ts +1 -0
- package/dist/types/components/Shared/devex/DebugListener/debugStore.d.ts +5 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +1 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +4 -0
- package/dist/types/components/Shared/fields/IndustryCodeField/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +22 -0
- package/dist/types/components/Shared/fields/IndustryCodeField/validate.d.ts +3 -0
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddress.d.ts +7 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/ReadonlyTextField.d.ts +7 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +3 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +3 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +4 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +3 -2
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -2
- package/dist/types/components/Shared/forms/RegistrationAddress/RegistrationAddressMultiform.d.ts +3 -0
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +3 -2
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +4 -0
- package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +3 -1
- package/dist/types/components/Shared/tasks/TaskList/TaskListItem.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +4 -12
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -1
- package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +1 -2
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetailsMultiform.d.ts +2 -0
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -16
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +1 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +21 -0
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +2 -0
- package/dist/types/components/Trust/tasks/TrustDropin/validate.d.ts +5 -0
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +1 -2
- package/dist/types/components/ui/atoms/Header/Header.d.ts +12 -0
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +1 -2
- package/dist/types/components/ui/atoms/RadioCard/RadioCard.d.ts +1 -0
- package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.d.ts +4 -4
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +8 -9
- package/dist/types/components/ui/atoms/Status/Status.d.ts +9 -3
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +6 -0
- package/dist/types/components/ui/atoms/TileGroup/TileGroup.d.ts +3 -1
- package/dist/types/components/ui/atoms/Typography/Typography.types.d.ts +1 -1
- package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +29 -7
- package/dist/types/components/ui/molecules/Card/Card.d.ts +1 -1
- package/dist/types/components/ui/molecules/Card/types.d.ts +1 -0
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +1 -2
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -1
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +2 -23
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +3 -3
- package/dist/types/components/ui/molecules/EmbeddedStatus/types.d.ts +23 -0
- package/dist/types/context/ExperimentContext/types.d.ts +24 -20
- package/dist/types/context/I18nProvider/I18nContext.d.ts +3 -0
- package/dist/types/context/SettingsContext/SettingsProvider.d.ts +1 -1
- package/dist/types/context/SettingsContext/types.d.ts +3 -0
- package/dist/types/context/StateContext/types.d.ts +2 -1
- package/dist/types/core/errorMapping.d.ts +4 -1
- package/dist/types/core/models/api/address.d.ts +5 -0
- package/dist/types/core/models/api/capability.d.ts +20 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
- package/dist/types/core/models/api/source-of-funds.d.ts +5 -0
- package/dist/types/core/models/api/transfer-instrument.d.ts +2 -0
- package/dist/types/core/process-field-configurations.d.ts +4 -1
- package/dist/types/core/user-events.d.ts +22 -11
- package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +1 -0
- package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +3 -3
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +5 -5
- package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +3 -3
- package/dist/types/embeds/individual-status/adyen-individual-status.types.d.ts +5 -5
- package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +3 -3
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.types.d.ts +5 -5
- package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +3 -3
- package/dist/types/embeds/terms-of-service-status/adyen-terms-of-service-status.types.d.ts +39 -0
- package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +3 -3
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.types.d.ts +5 -5
- package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +3 -3
- package/dist/types/embeds/transfer-instrument-management/adyen-transfer-instrument-management.types.d.ts +5 -5
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -6
- package/dist/types/hooks/useAnalytics/useAnalytics.d.ts +16 -0
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -8
- package/dist/types/hooks/useUboQuestionnaire.d.ts +25 -0
- package/dist/types/language/Language.d.ts +10 -0
- package/dist/types/language/types.d.ts +21 -7
- package/dist/types/language/utils.d.ts +2 -2
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -1
- package/dist/types/types/form-rules.d.ts +2 -0
- package/dist/types/utils/addLinkedFields.d.ts +26 -2
- package/dist/types/utils/analytics/convertToEmbeddedEvent.d.ts +9 -0
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +30 -0
- package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +13 -0
- package/dist/types/utils/analytics/trackNavigation.d.ts +10 -0
- package/dist/types/utils/api/documentUtils.d.ts +1 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/filterProblemsByTaskForms.d.ts +12 -0
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/types/utils/getSSNType.d.ts +1 -0
- package/dist/types/utils/getTrustedFields.d.ts +9 -0
- package/dist/types/utils/textTransformation/toFullWidth.d.ts +6 -0
- package/dist/types/utils/translation.d.ts +3 -2
- package/dist/types/utils/validatorUtils.d.ts +1 -0
- package/dist/types-C972Lk6s.js +34 -0
- package/dist/types-CLz74bOT.js +88 -0
- package/dist/types-Ctv8hbzY.js +74 -0
- package/dist/types-f66rmUFy.js +164 -0
- package/dist/upload-BF65P4KM.js +17 -0
- package/dist/useAssociatedLegalEntity-DAB1oG6O.js +33 -0
- package/dist/useCreateLegalEntity-BK5YcHA-.js +31 -0
- package/dist/useDataset-BtfHQp4w.js +220 -0
- package/dist/useForm-wQyeWa1b.js +1623 -0
- package/dist/useGlobalData-B33uuhtd.js +68 -0
- package/dist/useMultiForm-rZmCYsI4.js +864 -0
- package/dist/useOnboardingStatus-BbIpiZR4.js +27 -0
- package/dist/useScenarios-DPOodENA.js +46 -0
- package/dist/useTermsOfServiceStatus-DKeMR4Xi.js +42 -0
- package/dist/useToastContext-BK9oGWtb.js +60 -0
- package/dist/useUnincorporatedPartnershipMembers-Cdts5Hbn.js +99 -0
- package/dist/useUpdateBusinessLines-CWYtpMwr.js +46 -0
- package/dist/useUpdateLegalEntity-oa8qEzc4.js +39 -0
- package/dist/utils-AP5TpAhf.js +774 -0
- package/dist/utils-COz1RbbA.js +237 -0
- package/dist/validate-BYwVLb-X.js +41 -0
- package/dist/validate-CBVdP51L.js +100 -0
- package/dist/validationError-CvZLhw5H.js +86 -0
- package/dist/warning-circle-fill-CEN1WL7A.js +17 -0
- package/dist/warning-diamond-filled-BfXMlVrG.js +17 -0
- package/dist/webinar-DqjqrNEv.js +22 -0
- package/package.json +82 -83
- package/dist/4-people-CCqdlDEw.js +0 -24
- package/dist/AD-CyP5INSp.js +0 -23
- package/dist/AT-DJLlevck.js +0 -23
- package/dist/AcceptTermsOfServiceComponent-BF24NWVw.js +0 -657
- package/dist/AccountSetupRejected-2t22lJUo.js +0 -26
- package/dist/Address-DSwfzWFu.js +0 -1076
- package/dist/Alert-C24s_Ygs.js +0 -231
- package/dist/Avatar-DQjt5Lk2.js +0 -60
- package/dist/BE-B-m_4F41.js +0 -23
- package/dist/BG-BVR5ytc-.js +0 -27
- package/dist/BusinessDetailsDropin-CRFPvWuD.js +0 -5088
- package/dist/BusinessFinancingComponent-y2_kC8bx.js +0 -45
- package/dist/BusinessFinancingDropin-C-xm14b8.js +0 -1811
- package/dist/BusinessFinancingPage-BOG7yrw6.js +0 -40
- package/dist/BusinessTypeSelectionPage-ujY2jj6B.js +0 -426
- package/dist/CH-CesIKOYy.js +0 -23
- package/dist/CY-BnJ7k_mN.js +0 -23
- package/dist/CZ-BiPeoA9G.js +0 -33
- package/dist/Card-BMuquALf.js +0 -145
- package/dist/Confirm-DwutojkY.js +0 -64
- package/dist/CountryField-D0YZrov9.js +0 -864
- package/dist/CreateIndividualComponent-VZWLAo0l.js +0 -72
- package/dist/CreateTransferInstrumentComponent-OtReN6Cy.js +0 -67
- package/dist/Currency-BECbMsi5.js +0 -238
- package/dist/CustomerSupport-B8zC_huY.js +0 -141
- package/dist/DE-DdcbG-CC.js +0 -23
- package/dist/DK-DA8qRrzq.js +0 -33
- package/dist/DebugModal-CshTHx0o.js +0 -328
- package/dist/DecisionMakerDetailsPage-BJUwR4R7.js +0 -100
- package/dist/DecisionMakers-BDNa3HcC.js +0 -591
- package/dist/Dropzone-D6dXhmL4.js +0 -218
- package/dist/EE-CaXoPgZz.js +0 -23
- package/dist/ES-Bt_oaIaf.js +0 -23
- package/dist/EmbeddedStatus-BHTZcjUN.js +0 -100
- package/dist/EndStateLayout-CyGtLyvf.js +0 -71
- package/dist/FI-C5V3lLuN.js +0 -23
- package/dist/FR-Bc1tLIC4.js +0 -23
- package/dist/FormFlow-CZ9f5X0C.js +0 -216
- package/dist/FormNavigation-ezxkIqdb.js +0 -162
- package/dist/GG-BGuqxplU.js +0 -33
- package/dist/GI-CROkpYrU.js +0 -41
- package/dist/GR-B9c2boG8.js +0 -23
- package/dist/HR-p4luVYpu.js +0 -23
- package/dist/HU-D8vJYkDH.js +0 -32
- package/dist/IE-Cli_j7Al.js +0 -23
- package/dist/IM-mpIyBn16.js +0 -33
- package/dist/IS-02zCAdvq.js +0 -27
- package/dist/IT-CzURFhrK.js +0 -23
- package/dist/IndividualOnfidoDropin-vuHu-O_C.js +0 -7874
- package/dist/InputDate-CHygOGiS.js +0 -43
- package/dist/InputGroup-WBfGDV5F.js +0 -32
- package/dist/InputText-BX5sG9WJ.js +0 -161
- package/dist/Introduction-BsKwELuc.js +0 -304
- package/dist/JE-MFwIYti7.js +0 -33
- package/dist/LI-DA06W10W.js +0 -23
- package/dist/LT-DuU6E2Ct.js +0 -23
- package/dist/LU-BQHhNpDy.js +0 -23
- package/dist/LV-DN7wckbP.js +0 -23
- package/dist/LegalRepresentativeDetailsPage-DtMHe1Nq.js +0 -61
- package/dist/Link-BFdxU8qh.js +0 -35
- package/dist/MC-DtSWC4jS.js +0 -23
- package/dist/MT-DeDMQ1f_.js +0 -23
- package/dist/ManageIndividualComponent-By_fCmN1.js +0 -47
- package/dist/ManageTermsOfServiceComponent-D7F44OPD.js +0 -47
- package/dist/ManageTransferInstrumentComponent-DywpP5PK.js +0 -294
- package/dist/MaskedInput-BZ7t98eu.js +0 -799
- package/dist/MaybeModal-CE9kYOrU.js +0 -25
- package/dist/Modal-nMRQDTF7.js +0 -136
- package/dist/NL-aVL0NAp-.js +0 -23
- package/dist/NO-D7EOiQA1.js +0 -32
- package/dist/OnboardingDropinComponent-B0GrJ_pR.js +0 -4301
- package/dist/PL-Bg7axKQA.js +0 -32
- package/dist/PT-hB1HnBM2.js +0 -23
- package/dist/PayoutDetailsDropin-BJIqXmPn.js +0 -3694
- package/dist/RO-BLlC4CKq.js +0 -23
- package/dist/RadioGroup-CYDXrtrO.js +0 -143
- package/dist/RegistrationAddress-qtMZa31b.js +0 -2334
- package/dist/Review-D7NEYFoT.js +0 -82
- package/dist/RootBusinessDetailsPage-rCbGLBEv.js +0 -1870
- package/dist/RootIndividualDetailsPage-B3TkB6Xj.js +0 -77
- package/dist/SE-q25Qt85B.js +0 -33
- package/dist/SI-BzA-ozn6.js +0 -23
- package/dist/SK-DOTdLJPw.js +0 -23
- package/dist/SM-B4BIgmhk.js +0 -23
- package/dist/SignPCIComponent-C0iYfSl6.js +0 -294
- package/dist/SingpassSelection-ClMlwfoj.js +0 -130
- package/dist/SoleProprietorshipPage-JKNrAy74.js +0 -50
- package/dist/SourceOfFundsPage-D-pN33-9.js +0 -3101
- package/dist/Spacer-BK3jDget.js +0 -18
- package/dist/StepProgressIndicator-BWCQmDeV.js +0 -78
- package/dist/StoreProvider-BlaJzXSZ.js +0 -7072
- package/dist/StructuredList-DaepaiVE.js +0 -38
- package/dist/TaskItemStatus-B38keERo.js +0 -125
- package/dist/TaskStatusIndicator-BIvTrQtf.js +0 -69
- package/dist/TaxInformationField-DS0m73if.js +0 -3062
- package/dist/TaxReportingDropin-CVbVkFhv.js +0 -499
- package/dist/TileGroup-CztY53P9.js +0 -174
- package/dist/TrustDetailsPage-C791Wu5u.js +0 -1205
- package/dist/TrustMemberCompanyPage-BOQ5D3y4.js +0 -60
- package/dist/TrustMemberIndividualPage-BPIXX2Mh.js +0 -66
- package/dist/UnincorporatedPartnershipIndividualPage-vzn0R02z.js +0 -66
- package/dist/UnincorporatedPartnershipMemberCompanyPage-C-kGU5Sh.js +0 -64
- package/dist/VA-bPXdCnwD.js +0 -23
- package/dist/ViewVerificationStatusComponent-BTW-Vw9I.js +0 -177
- package/dist/analytics-3-a-Od7Z.js +0 -61
- package/dist/arrow-right-D_mdkZmE.js +0 -14
- package/dist/bafinUtils-Bar3qiJA.js +0 -457
- package/dist/bag-DpxmyXfR.js +0 -14
- package/dist/bank-gyBvaSp4.js +0 -14
- package/dist/bin-Bgdj6KzC.js +0 -18
- package/dist/capital-CF9_Ev99.js +0 -17
- package/dist/cash-stack-Ds76Du8m.js +0 -22
- package/dist/certificate-D6xjhThs.js +0 -17
- package/dist/checkmark-circle-fill-BhvuqTl9.js +0 -17
- package/dist/checkmark-circle-nACBJ24q.js +0 -20
- package/dist/checkmark-small-63w5fAxg.js +0 -14
- package/dist/checkmark-tfEAu7lj.js +0 -14
- package/dist/chevron-down-CkQS-knD.js +0 -14
- package/dist/chevron-left-CBCMdMx6.js +0 -14
- package/dist/chevron-right-dIVWvPJu.js +0 -14
- package/dist/chevron-up-D93IGU9z.js +0 -14
- package/dist/circle-Dgfa7GUy.js +0 -17
- package/dist/coins-CFu331p2.js +0 -17
- package/dist/commonValidators-Bk0SSjsH.js +0 -24
- package/dist/contract-DI03_xrF.js +0 -14
- package/dist/cross-circle-fill-small-CHMDaA3q.js +0 -14
- package/dist/cross-o4n5KXxG.js +0 -14
- package/dist/currency-BGwQyxBo.js +0 -36
- package/dist/da-DK-B45X2VaJ.js +0 -35
- package/dist/da-DK-BJ7aTPir.js +0 -13
- package/dist/da-DK-BTpZzEgA.js +0 -15
- package/dist/da-DK-BoQic3Gy.js +0 -33
- package/dist/da-DK-CeNMXUfE.js +0 -23
- package/dist/da-DK-D0N1TVVU.js +0 -58
- package/dist/da-DK-D4H69PX3.js +0 -30
- package/dist/da-DK-DStNe471.js +0 -22
- package/dist/da-DK-q2b_1elr.js +0 -35
- package/dist/de-DE-C78RLE2G.js +0 -13
- package/dist/de-DE-CGoBPCPv.js +0 -22
- package/dist/de-DE-CWvgMDqU.js +0 -35
- package/dist/de-DE-D2ByeIZs.js +0 -35
- package/dist/de-DE-DjOUNvp6.js +0 -15
- package/dist/de-DE-Dtuu-nE7.js +0 -58
- package/dist/de-DE-Dwagawx1.js +0 -33
- package/dist/de-DE-JI-7mvxy.js +0 -23
- package/dist/de-DE-wp5-H-ov.js +0 -30
- package/dist/document-1-DsCi9vmX.js +0 -14
- package/dist/document-person-DBlLin9u.js +0 -20
- package/dist/download-B8_c4ARV.js +0 -17
- package/dist/dropinUtils-DHp5v5jB.js +0 -192
- package/dist/edit-1-D6f6zk9p.js +0 -14
- package/dist/en-US-546hB2Wn.js +0 -60
- package/dist/en-US-BQpgt41j.js +0 -37
- package/dist/en-US-BTYdAWXp.js +0 -15
- package/dist/en-US-BbAzROHT.js +0 -36
- package/dist/en-US-CAm3meB1.js +0 -30
- package/dist/en-US-CQ3angjM.js +0 -22
- package/dist/en-US-DHq7VYFs.js +0 -23
- package/dist/en-US-DIdQJky-.js +0 -35
- package/dist/es-ES-BsQpwaPN.js +0 -58
- package/dist/es-ES-Bsoco8Fj.js +0 -33
- package/dist/es-ES-BtUSEzkE.js +0 -13
- package/dist/es-ES-CKMfS8Yy.js +0 -22
- package/dist/es-ES-Cj7q7fWO.js +0 -15
- package/dist/es-ES-DKCCgVF8.js +0 -35
- package/dist/es-ES-DOVPTeyf.js +0 -23
- package/dist/es-ES-Ds3-DtqZ.js +0 -30
- package/dist/es-ES-WWftn3JX.js +0 -35
- package/dist/external-link-BjladU3E.js +0 -14
- package/dist/fi-FI-BJ9RzrL3.js +0 -58
- package/dist/fi-FI-BNcnKrJ9.js +0 -15
- package/dist/fi-FI-ClnsYt3L.js +0 -33
- package/dist/fi-FI-Cvar63RH.js +0 -13
- package/dist/fi-FI-D522KHGk.js +0 -23
- package/dist/fi-FI-D9E_KaJi.js +0 -35
- package/dist/fi-FI-DPNeTsJS.js +0 -30
- package/dist/fi-FI-Hhku9Lmc.js +0 -35
- package/dist/fi-FI-REYOX46I.js +0 -22
- package/dist/fieldConfigurations-B8bDFQ53.js +0 -458
- package/dist/form-rules-DhbF2mY4.js +0 -13
- package/dist/formatCurrency-CMOSdJMB.js +0 -29
- package/dist/fr-FR-B5543Fe-.js +0 -13
- package/dist/fr-FR-BYuKsZIb.js +0 -35
- package/dist/fr-FR-Bn3D6mmY.js +0 -15
- package/dist/fr-FR-CJI0bIig.js +0 -33
- package/dist/fr-FR-CNR5-s9g.js +0 -58
- package/dist/fr-FR-ChmNQciP.js +0 -30
- package/dist/fr-FR-Cv0k-3Xc.js +0 -35
- package/dist/fr-FR-D9qaP6nx.js +0 -22
- package/dist/fr-FR-DInQKkTd.js +0 -23
- package/dist/getName-DJlhsDj_.js +0 -41
- package/dist/gift-SdNY6AqI.js +0 -14
- package/dist/graph-DwYwlplw.js +0 -21
- package/dist/graph-up-DpbCSPbc.js +0 -20
- package/dist/hasDataChanged-BgvxL-Hx.js +0 -19
- package/dist/headquarter-C6AsewcP.js +0 -21
- package/dist/hotel-JX0bjsSA.js +0 -22
- package/dist/iframeWidget-Bftkd3v_.js +0 -234
- package/dist/image-eUqBiRX_.js +0 -17
- package/dist/info-Wao3PEQK.js +0 -21
- package/dist/isEmpty-CuQFhMf0.js +0 -23
- package/dist/it-IT-BV9K87FK.js +0 -58
- package/dist/it-IT-BeC2Y1F8.js +0 -33
- package/dist/it-IT-Biduphjt.js +0 -22
- package/dist/it-IT-C_fNHhjE.js +0 -35
- package/dist/it-IT-CjEYONJg.js +0 -23
- package/dist/it-IT-Dd6xGSe-.js +0 -13
- package/dist/it-IT-DvM-9LpM.js +0 -15
- package/dist/it-IT-Nl57jui-.js +0 -35
- package/dist/it-IT-eCrTB65E.js +0 -30
- package/dist/keys-BpNgnAsD.js +0 -23
- package/dist/localizeDateString-DHsivjy2.js +0 -27
- package/dist/location-YXhcBMDy.js +0 -17
- package/dist/mail-Z_IE_hkw.js +0 -14
- package/dist/mapExistingFile-DW5ktJzM.js +0 -231
- package/dist/mapScriptLocalization-CI-Ydp2z.js +0 -72
- package/dist/mapTransferInstrumentToPayoutAccount-CAoOlPMA.js +0 -30
- package/dist/minus-circle-filled-BGKeHaxJ.js +0 -17
- package/dist/nl-NL-BHkRnVrj.js +0 -35
- package/dist/nl-NL-BHqiO21q.js +0 -15
- package/dist/nl-NL-Cysslsh2.js +0 -33
- package/dist/nl-NL-D2QKudfh.js +0 -30
- package/dist/nl-NL-DLedC3mO.js +0 -35
- package/dist/nl-NL-DVENFpd5.js +0 -13
- package/dist/nl-NL-DywVQ9km.js +0 -58
- package/dist/nl-NL-G1wVnmzT.js +0 -22
- package/dist/nl-NL-Zcq0bXd-.js +0 -23
- package/dist/no-NO-B8oxqfNI.js +0 -58
- package/dist/no-NO-BTtAuqCb.js +0 -22
- package/dist/no-NO-BxReX6oF.js +0 -23
- package/dist/no-NO-CKT9kLAH.js +0 -15
- package/dist/no-NO-C_snYWBc.js +0 -30
- package/dist/no-NO-CpVal4cV.js +0 -35
- package/dist/no-NO-Dn2UkdoI.js +0 -13
- package/dist/no-NO-kaAdT9B8.js +0 -35
- package/dist/no-NO-zSnPtrDi.js +0 -33
- package/dist/options-horizontal-nJ9-ButA.js +0 -18
- package/dist/partner-COG2_Erh.js +0 -21
- package/dist/pay-by-link-plane-Pv7Babgn.js +0 -22
- package/dist/payout-iEmHhgQ4.js +0 -20
- package/dist/person-CdGfItMU.js +0 -17
- package/dist/plus-CwLva7fq.js +0 -14
- package/dist/plus-circle-filled-Cnf1oJTm.js +0 -17
- package/dist/pt-PT-BkvMsoK4.js +0 -35
- package/dist/pt-PT-BvK00TeI.js +0 -58
- package/dist/pt-PT-C-hbNnsB.js +0 -30
- package/dist/pt-PT-CjsyP_OK.js +0 -33
- package/dist/pt-PT-D2elvnDU.js +0 -15
- package/dist/pt-PT-Dk48OVtf.js +0 -22
- package/dist/pt-PT-N0njcfLO.js +0 -23
- package/dist/pt-PT-Xm-pm3mb.js +0 -35
- package/dist/pt-PT-_o5xgnxS.js +0 -13
- package/dist/reporting-DlRoibD7.js +0 -17
- package/dist/resolveEnvironment-BGYn6Ls_.js +0 -84
- package/dist/revenue-accelerate-rtXA-8EE.js +0 -17
- package/dist/rules-DP3jxPzq.js +0 -311
- package/dist/save-BofgDbDX.js +0 -14
- package/dist/search-BjMkvQh0.js +0 -17
- package/dist/show-uL6I-rMo.js +0 -17
- package/dist/sl-SI-BB7iVcFI.js +0 -22
- package/dist/sl-SI-BhVTSmhQ.js +0 -30
- package/dist/sl-SI-Br0UEUPL.js +0 -33
- package/dist/sl-SI-BylvpF-X.js +0 -15
- package/dist/sl-SI-Cth2Qa5T.js +0 -35
- package/dist/sl-SI-D_rqR0D7.js +0 -35
- package/dist/sl-SI-MZoDApq9.js +0 -23
- package/dist/sl-SI-NI2OJAvm.js +0 -58
- package/dist/solution-payments-DTAuLSWF.js +0 -14
- package/dist/store-CkhgQMl0.js +0 -14
- package/dist/sv-SE-66rqYTxi.js +0 -30
- package/dist/sv-SE-B3zoXMuH.js +0 -35
- package/dist/sv-SE-BUfESAQK.js +0 -13
- package/dist/sv-SE-BtXmvxx4.js +0 -33
- package/dist/sv-SE-CAZpDX9G.js +0 -58
- package/dist/sv-SE-DCFSf4Oj.js +0 -23
- package/dist/sv-SE-DbI-1JqN.js +0 -22
- package/dist/sv-SE-Dwz1yTrB.js +0 -15
- package/dist/sv-SE-OPOHtqtP.js +0 -35
- package/dist/terminal-1-ewywjFJI.js +0 -18
- package/dist/toCapitalized-Bq7laD0b.js +0 -13
- package/dist/translation-DJHWTow9.js +0 -472
- package/dist/types/api/pciTemplate/pciTemplate.types.d.ts +0 -9
- package/dist/types/api/pciTemplate/usePciQuestionnaire.d.ts +0 -6
- package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +0 -12
- package/dist/types/api/pciTemplate/usePciStatus.d.ts +0 -6
- package/dist/types/api/pciTemplate/usePciTemplate.d.ts +0 -14
- package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +0 -5
- package/dist/types/components/Contract/hooks/useSalesChannelsSettings.d.ts +0 -3
- package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +0 -2
- package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +0 -8
- package/dist/types/components/ui/atoms/Remove/Remove.d.ts +0 -2
- package/dist/types/components/ui/atoms/Remove/Remove.types.d.ts +0 -9
- package/dist/types/components/ui/atoms/Status/Status.types.d.ts +0 -8
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +0 -11
- package/dist/types/components/ui/molecules/Card/CardGroup.d.ts +0 -3
- package/dist/types/core/analytics.d.ts +0 -31
- package/dist/types/embeds/terms-of-service-status/adyen-manage-terms-of-service.types.d.ts +0 -39
- package/dist/types/hooks/useAnalytics.d.ts +0 -22
- package/dist/types/utils/bankVerification/animation.d.ts +0 -2
- package/dist/types/utils/trackNavigation.d.ts +0 -10
- package/dist/types-CAznNNSI.js +0 -160
- package/dist/types-CP1NRoE8.js +0 -74
- package/dist/types-K58FM7k4.js +0 -64
- package/dist/upload-XDhHhAHV.js +0 -17
- package/dist/useAssociatedLegalEntity-G30FPhOX.js +0 -33
- package/dist/useDataset-BgvQQEKd.js +0 -120
- package/dist/useForm-C1DW3mPC.js +0 -1694
- package/dist/useFormContext-beqGS11A.js +0 -23
- package/dist/useGlobalData-jb7ua9I6.js +0 -205
- package/dist/useMultiForm-BucfLW49.js +0 -864
- package/dist/useOnboardingStatus-CTgWLZxC.js +0 -27
- package/dist/useScenarios-B7IWZ3xW.js +0 -46
- package/dist/useTermsOfServiceStatus-B0dIrYTA.js +0 -42
- package/dist/useToastContext-DGMeMy5R.js +0 -51
- package/dist/useUnincorporatedPartnershipMembers-BCvmGMOX.js +0 -99
- package/dist/utils-Bwnj33y_.js +0 -277
- package/dist/utils-CXtNbmpA.js +0 -29
- package/dist/utils-CgOzbb9O.js +0 -159
- package/dist/validate-B5PwC1oL.js +0 -100
- package/dist/validate-BRz0LPdo.js +0 -382
- package/dist/validate-CvtamBXH.js +0 -605
- package/dist/validationError-DOCbfk7K.js +0 -86
- package/dist/warning-circle-fill-DADaWT65.js +0 -17
- package/dist/warning-filled-BfAQN-BF.js +0 -14
- package/dist/webinar-BJWDRK2H.js +0 -22
- /package/dist/types/api/{pciTemplate → pci}/useSignPci.d.ts +0 -0
- /package/dist/types/components/BusinessLines/tasks/{BusinessLinesGettingStarted → BusinessLines}/BusinessLinesGettingStarted.d.ts +0 -0
|
@@ -1,1205 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "86369c83-e0ea-4da6-9740-6a7a6d3eb707", e._sentryDebugIdIdentifier = "sentry-dbid-86369c83-e0ea-4da6-9740-6a7a6d3eb707");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { jsx, Fragment, jsxs } from "preact/jsx-runtime";
|
|
11
|
-
import { aS as reverseMapping, y as LegalEntityTypes, M as TaskTypes, a8 as CountryCodes, an as hasText, ao as isValidMinLength, ap as matchesRegex, aq as NO_ALPHABET_REGEX, ar as EMOJI_REGEX, as as hasRepeatedCharacters, at as isInvalidName, au as OTHER_ENTITIES_VALID_CHAR_REGEX, a as useTranslation, u as useI18nContext, X as useExperimentsContext, x as Typography, bI as getCountrySpecificTrustTypeOptions, bJ as trustComponentsKeyMapping, bK as trustApiKeyMapping, b as useApiContext, U as useAnalyticsContext, bL as trustDocumentMapping, ay as cloneObject, g as getLegalEntityCountry, a9 as isEmpty$1, b1 as drop, a6 as getOwnEntityAssociations, c as useLegalEntity, q as skipToken, R as ROOT_LE, L as Loader, aD as keysOf, J as EntityTypes } from "./StoreProvider-BlaJzXSZ.js";
|
|
12
|
-
import { c as validateNotEmptyOnBlur, r as resolveFieldMetadata, b as useCapabilityProblems, g as getProblemsForEntity } from "./fieldConfigurations-B8bDFQ53.js";
|
|
13
|
-
import { j as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, c as TAX_INFORMATION_FIELD, t as taxInformationDefaultFieldMetadata, b as taxInformationDefaultFieldConfig, e as exemptedFromTaxDefaultFieldMetadata, d as exemptedFromTaxDefaultFieldConfig, T as TaxInformationField, g as getFieldsWithExistingData, k as getCompanyRegistrationNumberOptions, l as countryToTaxInfoTypeMap, u as useCapabilities } from "./TaxInformationField-DS0m73if.js";
|
|
14
|
-
import { useMemo, useCallback, useEffect, useState, useRef } from "preact/hooks";
|
|
15
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./RadioGroup-CYDXrtrO.js";
|
|
16
|
-
import { h as hasDataChanged } from "./hasDataChanged-BgvxL-Hx.js";
|
|
17
|
-
import { u as useGlobalDataSlice, c as useStateContext, F as FormWrapper } from "./useGlobalData-jb7ua9I6.js";
|
|
18
|
-
import { u as useToastContext } from "./useToastContext-DGMeMy5R.js";
|
|
19
|
-
import { g as getAssociatedLeAnalyticsPayload } from "./analytics-3-a-Od7Z.js";
|
|
20
|
-
import { a as getDocument, c as createDocumentRequest, d as documentApiUtils, b as getPropsFromConfigurations, k as augmentWithCountryConfigs, e as composePerScenarioFormConfigurations } from "./validate-CvtamBXH.js";
|
|
21
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-DHp5v5jB.js";
|
|
22
|
-
import { m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-DW5ktJzM.js";
|
|
23
|
-
import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, e as doingBusinessAsAbsentFieldMetadata, c as doingBusinessAsFieldMetadata, r as registrationNumberDefaultFieldMetadata, b as registrationNumberDefaultFieldConfig, i as exemptFromRegistrationNumberDefaultFieldMetadata, l as exemptFromRegistrationNumberDefaultFieldConfig, d as defaultFieldMetadata, a as defaultFieldConfig, f as DBANameField, g as BusinessRegistrationNumberField, h as VatNumberField, j as registrationAddressFields, R as RegistrationAddress, M as MemoizedConstitutionalDocument, k as getDefaultVatNumberType, m as getDefaultRegistrationNumberType, n as inferCompanyRegistrationNumberType } from "./RegistrationAddress-qtMZa31b.js";
|
|
24
|
-
import { m as mapAddressLabels } from "./utils-CgOzbb9O.js";
|
|
25
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-DOCbfk7K.js";
|
|
26
|
-
import { a as datasetUtilities } from "./useDataset-BgvQQEKd.js";
|
|
27
|
-
import { f as formatObject, g as getProp } from "./utils-DNSfZiio.js";
|
|
28
|
-
import { o as operationalAddressIsSameIds } from "./Address-DSwfzWFu.js";
|
|
29
|
-
import { c as createFormRules } from "./form-rules-DhbF2mY4.js";
|
|
30
|
-
import { U as UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL, a as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED, b as UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL, c as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED, d as UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL, A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-CP1NRoE8.js";
|
|
31
|
-
import { m as mergeFieldMetadataIntoProps, c as createFormUtils, F as FormHeader, E as ErrorPanel, C as CountryField, a as COUNTRY_FIELD, f as getFormProps, i as getNestedOuterFormPropsFromOuterFormProps } from "./CountryField-D0YZrov9.js";
|
|
32
|
-
import { a as useForm, F as Field, c as Select } from "./useForm-C1DW3mPC.js";
|
|
33
|
-
import { a as Alert } from "./Alert-C24s_Ygs.js";
|
|
34
|
-
import { I as InputText } from "./InputText-BX5sG9WJ.js";
|
|
35
|
-
import { i as isEmpty } from "./isEmpty-CuQFhMf0.js";
|
|
36
|
-
const mapApiDocumentToTrustDocument = (entityId) => {
|
|
37
|
-
const constitutionalDocument = getDocument(entityId, "constitutionalDocument") || null;
|
|
38
|
-
return {
|
|
39
|
-
trustConstitutionalDocument: constitutionalDocument ? { constitutionalDocument: [mapExistingFile(getPageName(constitutionalDocument))] } : void 0
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
const unincorporatedPartnershipBaseMapping = {
|
|
43
|
-
"trustRegistrationDetails.trustType": "unincorporatedPartnership.type",
|
|
44
|
-
"trustRegistrationDetails.legalName": "unincorporatedPartnership.name",
|
|
45
|
-
"trustRegistrationDetails.doingBusinessAs": "unincorporatedPartnership.doingBusinessAs",
|
|
46
|
-
"trustRegistrationDetails.hasDoingBusinessAs": "unincorporatedPartnership.doingBusinessAsAbsent",
|
|
47
|
-
"trustRegistrationDetails.country": "unincorporatedPartnership.countryOfGoverningLaw",
|
|
48
|
-
"trustRegistrationDetails.registrationNumber": "unincorporatedPartnership.registrationNumber",
|
|
49
|
-
"trustRegistrationDetails.taxInformation": "unincorporatedPartnership.taxInformation",
|
|
50
|
-
"trustRegistrationDetails.vatNumber": "unincorporatedPartnership.vatNumber",
|
|
51
|
-
"trustRegistrationAddress.registrationAddress.city": "unincorporatedPartnership.registeredAddress.city",
|
|
52
|
-
"trustRegistrationAddress.registrationAddress.country": "unincorporatedPartnership.registeredAddress.country",
|
|
53
|
-
"trustRegistrationAddress.registrationAddress.postalCode": "unincorporatedPartnership.registeredAddress.postalCode",
|
|
54
|
-
"trustRegistrationAddress.registrationAddress.stateOrProvince": "unincorporatedPartnership.registeredAddress.stateOrProvince",
|
|
55
|
-
"trustRegistrationAddress.registrationAddress.address": "unincorporatedPartnership.registeredAddress.street",
|
|
56
|
-
"trustRegistrationAddress.registrationAddress.otherAddressInformation": "unincorporatedPartnership.registeredAddress.street2",
|
|
57
|
-
"trustRegistrationAddress.operationalAddress.city": "unincorporatedPartnership.principalPlaceOfBusiness.city",
|
|
58
|
-
"trustRegistrationAddress.operationalAddress.country": "unincorporatedPartnership.principalPlaceOfBusiness.country",
|
|
59
|
-
"trustRegistrationAddress.operationalAddress.postalCode": "unincorporatedPartnership.principalPlaceOfBusiness.postalCode",
|
|
60
|
-
"trustRegistrationAddress.operationalAddress.stateOrProvince": "unincorporatedPartnership.principalPlaceOfBusiness.stateOrProvince",
|
|
61
|
-
"trustRegistrationAddress.operationalAddress.address": "unincorporatedPartnership.principalPlaceOfBusiness.street",
|
|
62
|
-
"trustRegistrationAddress.operationalAddress.otherAddressInformation": "unincorporatedPartnership.principalPlaceOfBusiness.street2"
|
|
63
|
-
};
|
|
64
|
-
const unincorporatedPartnershipComponentsKeyMapping = {
|
|
65
|
-
"trustRegistrationDetails.exemptedFromVat": "unincorporatedPartnership.vatAbsenceReason",
|
|
66
|
-
...unincorporatedPartnershipBaseMapping
|
|
67
|
-
};
|
|
68
|
-
const unincorporatedPartnershipApiKeyMapping = {
|
|
69
|
-
...reverseMapping(unincorporatedPartnershipBaseMapping)
|
|
70
|
-
};
|
|
71
|
-
const mapLegalEntityToUnincorporatedPartnership = (legalEntity, isExperimentEnabled) => {
|
|
72
|
-
if (!legalEntity.unincorporatedPartnership)
|
|
73
|
-
throw new Error("LE missing unincorporatedPartnership field");
|
|
74
|
-
let trustCompData = formatObject(
|
|
75
|
-
legalEntity,
|
|
76
|
-
unincorporatedPartnershipComponentsKeyMapping
|
|
77
|
-
);
|
|
78
|
-
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
79
|
-
trustCompData.trustRegistrationDetails.country = legalEntity.unincorporatedPartnership.countryOfGoverningLaw;
|
|
80
|
-
if (legalEntity.unincorporatedPartnership.description) {
|
|
81
|
-
trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.unincorporatedPartnership.description;
|
|
82
|
-
}
|
|
83
|
-
if (legalEntity.unincorporatedPartnership.principalPlaceOfBusiness) {
|
|
84
|
-
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
85
|
-
} else {
|
|
86
|
-
if (!trustCompData.trustRegistrationAddress) {
|
|
87
|
-
trustCompData.trustRegistrationAddress = {};
|
|
88
|
-
}
|
|
89
|
-
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
|
|
90
|
-
}
|
|
91
|
-
if (legalEntity.unincorporatedPartnership.taxInformation?.length) {
|
|
92
|
-
const { country } = legalEntity.unincorporatedPartnership.registeredAddress;
|
|
93
|
-
const countryTaxInformation = legalEntity.unincorporatedPartnership.taxInformation.find(
|
|
94
|
-
(info) => info.country === country
|
|
95
|
-
);
|
|
96
|
-
if (countryTaxInformation?.type === "UEN") {
|
|
97
|
-
trustCompData.trustRegistrationDetails.isUen = true;
|
|
98
|
-
}
|
|
99
|
-
if (countryTaxInformation?.type === "GST") {
|
|
100
|
-
trustCompData.trustRegistrationDetails.isUen = false;
|
|
101
|
-
}
|
|
102
|
-
const taxNumberAbsent = countryTaxInformation?.numberAbsent;
|
|
103
|
-
if (taxNumberAbsent !== void 0) {
|
|
104
|
-
trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
if (legalEntity.documentDetails?.length) {
|
|
108
|
-
trustCompData = {
|
|
109
|
-
...trustCompData,
|
|
110
|
-
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
if (isExperimentEnabled("EnableDoingBusinessAsNameV4")) {
|
|
114
|
-
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
115
|
-
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.unincorporatedPartnership.doingBusinessAsAbsent;
|
|
116
|
-
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs)
|
|
117
|
-
delete legalEntity.unincorporatedPartnership.doingBusinessAs;
|
|
118
|
-
}
|
|
119
|
-
} else {
|
|
120
|
-
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs ? legalEntity.unincorporatedPartnership.doingBusinessAs !== legalEntity.unincorporatedPartnership.name : void 0;
|
|
121
|
-
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs;
|
|
122
|
-
}
|
|
123
|
-
return trustCompData;
|
|
124
|
-
};
|
|
125
|
-
const mapUnincorporatedPartnershipToLegalEntity = (data, isExperimentEnabled) => {
|
|
126
|
-
const requestObj = {
|
|
127
|
-
...formatObject(data, unincorporatedPartnershipApiKeyMapping)
|
|
128
|
-
};
|
|
129
|
-
if (!requestObj.unincorporatedPartnership) return requestObj;
|
|
130
|
-
if (requestObj.unincorporatedPartnership?.taxInformation?.[0]?.type === "GST") {
|
|
131
|
-
requestObj.unincorporatedPartnership.taxInformation[0].type = "UEN";
|
|
132
|
-
}
|
|
133
|
-
if (isExperimentEnabled("EnableDoingBusinessAsNameV4")) {
|
|
134
|
-
if (typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined") {
|
|
135
|
-
requestObj.unincorporatedPartnership.doingBusinessAsAbsent = !data.trustRegistrationDetails?.hasDoingBusinessAs;
|
|
136
|
-
}
|
|
137
|
-
} else {
|
|
138
|
-
requestObj.unincorporatedPartnership.doingBusinessAs = data.trustRegistrationDetails?.doingBusinessAs || data.trustRegistrationDetails?.legalName || "";
|
|
139
|
-
delete requestObj.unincorporatedPartnership.doingBusinessAsAbsent;
|
|
140
|
-
}
|
|
141
|
-
requestObj.type = LegalEntityTypes.UNINCORPORATED_PARTNERSHIP;
|
|
142
|
-
return requestObj;
|
|
143
|
-
};
|
|
144
|
-
const COUNTRIES_THAT_USE_REGISTRATION_NUMBER = [CountryCodes.NewZealand];
|
|
145
|
-
const rules = ({
|
|
146
|
-
data,
|
|
147
|
-
country,
|
|
148
|
-
isExperimentEnabled,
|
|
149
|
-
taskType
|
|
150
|
-
}) => createFormRules({
|
|
151
|
-
countryUsesTaxId: () => {
|
|
152
|
-
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
153
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED.includes(country)) {
|
|
154
|
-
return "REQUIRED";
|
|
155
|
-
}
|
|
156
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL.includes(country)) {
|
|
157
|
-
return "OPTIONAL";
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
if (country !== CountryCodes.NewZealand && COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) {
|
|
161
|
-
return "REQUIRED";
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
countryRequiresRegistrationNumberForTrust: () => {
|
|
165
|
-
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
166
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) {
|
|
167
|
-
return "REQUIRED";
|
|
168
|
-
}
|
|
169
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) {
|
|
170
|
-
return "OPTIONAL";
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) {
|
|
174
|
-
return "REQUIRED";
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
registrationNumberType: () => {
|
|
178
|
-
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
179
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED.includes(country)) {
|
|
180
|
-
return "OPTIONAL";
|
|
181
|
-
}
|
|
182
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL.includes(country)) {
|
|
183
|
-
return "OPTIONAL";
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
if (COUNTRIES_THAT_USE_REGISTRATION_NUMBER.includes(country)) {
|
|
187
|
-
return "OPTIONAL";
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
countryUsesVatNumber: () => {
|
|
191
|
-
if (taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP) {
|
|
192
|
-
if (UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL.includes(country)) {
|
|
193
|
-
return "OPTIONAL";
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
trustTypeHasDescription: () => {
|
|
198
|
-
if (data?.trustRegistrationDetails?.trustType === "charitableTrust") {
|
|
199
|
-
return "REQUIRED";
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
hasDoingBusinessAs: () => {
|
|
203
|
-
if (isExperimentEnabled?.("EnableDoingBusinessAsNameV4")) {
|
|
204
|
-
return "REQUIRED";
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
const trustRegistrationDetailsValidations = {
|
|
209
|
-
trustType: {
|
|
210
|
-
modes: ["blur"],
|
|
211
|
-
validate: (trustType) => !!trustType,
|
|
212
|
-
errorMessage: "fieldIsRequired"
|
|
213
|
-
},
|
|
214
|
-
country: {
|
|
215
|
-
modes: ["blur"],
|
|
216
|
-
validate: (country) => !!country,
|
|
217
|
-
errorMessage: "fieldIsRequired"
|
|
218
|
-
},
|
|
219
|
-
legalName: {
|
|
220
|
-
modes: ["blur"],
|
|
221
|
-
validate: (legalName) => !!legalName,
|
|
222
|
-
errorMessage: "fieldIsRequired"
|
|
223
|
-
},
|
|
224
|
-
objectOfTrust: {
|
|
225
|
-
modes: ["blur"],
|
|
226
|
-
validate: (objectOfTrust) => !!objectOfTrust,
|
|
227
|
-
errorMessage: "fieldIsRequired"
|
|
228
|
-
},
|
|
229
|
-
hasDoingBusinessAs: validateNotEmptyOnBlur,
|
|
230
|
-
doingBusinessAs: validateNotEmptyOnBlur
|
|
231
|
-
};
|
|
232
|
-
const trustRegistrationDetailsValidationsV4 = {
|
|
233
|
-
trustType: {
|
|
234
|
-
modes: ["blur"],
|
|
235
|
-
validate: (trustType) => !!trustType,
|
|
236
|
-
errorMessage: "fieldIsRequired"
|
|
237
|
-
},
|
|
238
|
-
country: {
|
|
239
|
-
modes: ["blur"],
|
|
240
|
-
validate: (country) => !!country,
|
|
241
|
-
errorMessage: "fieldIsRequired"
|
|
242
|
-
},
|
|
243
|
-
legalName: [
|
|
244
|
-
{
|
|
245
|
-
modes: ["blur"],
|
|
246
|
-
validate: hasText,
|
|
247
|
-
errorMessage: "fieldIsRequired"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
modes: ["blur"],
|
|
251
|
-
validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
|
|
252
|
-
errorMessage: "nameMustContainLetters"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
modes: ["blur"],
|
|
256
|
-
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
257
|
-
errorMessage: "checkForTypos"
|
|
258
|
-
}
|
|
259
|
-
],
|
|
260
|
-
objectOfTrust: {
|
|
261
|
-
modes: ["blur"],
|
|
262
|
-
validate: (objectOfTrust) => !!objectOfTrust,
|
|
263
|
-
errorMessage: "fieldIsRequired"
|
|
264
|
-
},
|
|
265
|
-
hasDoingBusinessAs: validateNotEmptyOnBlur,
|
|
266
|
-
doingBusinessAs: validateNotEmptyOnBlur
|
|
267
|
-
};
|
|
268
|
-
const trustRegistrationDetailsFields = [
|
|
269
|
-
"legalName",
|
|
270
|
-
...DBA_NAME_FIELD,
|
|
271
|
-
"country",
|
|
272
|
-
"trustType",
|
|
273
|
-
"objectOfTrust",
|
|
274
|
-
...TAX_INFORMATION_FIELD,
|
|
275
|
-
...BUSINESS_REGISTRATION_NUMBER_FIELD,
|
|
276
|
-
...VAT_NUMBER_FIELD
|
|
277
|
-
];
|
|
278
|
-
const ALLOWED_TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
279
|
-
function TrustRegistrationDetails(props) {
|
|
280
|
-
let mergedProps = props;
|
|
281
|
-
const TRUST_REGISTRATION_DETAILS = mergedProps.id || trustForms.trustRegistrationDetails.formId;
|
|
282
|
-
const { t } = useTranslation("common");
|
|
283
|
-
const { i18n } = useI18nContext();
|
|
284
|
-
const { isExperimentEnabled } = useExperimentsContext();
|
|
285
|
-
const { updateStateSlice, sliceData } = useGlobalDataSlice(TRUST_REGISTRATION_DETAILS);
|
|
286
|
-
const isStrictNameAndAddressValidationEnabled = isExperimentEnabled(
|
|
287
|
-
"StrictNameAndAddressValidationV4"
|
|
288
|
-
);
|
|
289
|
-
const { taskType } = props;
|
|
290
|
-
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
291
|
-
const country = sliceData?.country ?? mergedProps.country;
|
|
292
|
-
const defaultData = useMemo(
|
|
293
|
-
() => ({ ...mergedProps.data, country }),
|
|
294
|
-
[country, mergedProps.data]
|
|
295
|
-
);
|
|
296
|
-
const requiredFields = isEmpty(mergedProps.requiredFields) ? trustRegistrationDetailsFields : mergedProps.requiredFields;
|
|
297
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
298
|
-
"hasDoingBusinessAs",
|
|
299
|
-
doingBusinessAsAbsentFieldMetadata,
|
|
300
|
-
mergedProps
|
|
301
|
-
);
|
|
302
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
303
|
-
"doingBusinessAs",
|
|
304
|
-
doingBusinessAsFieldMetadata,
|
|
305
|
-
mergedProps
|
|
306
|
-
);
|
|
307
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
308
|
-
"taxInformation",
|
|
309
|
-
resolveFieldMetadata(
|
|
310
|
-
taxInformationDefaultFieldConfig[country],
|
|
311
|
-
{
|
|
312
|
-
taxIdNumberType: sliceData?.taxInformation?.find((taxId) => taxId.country === country)?.type,
|
|
313
|
-
companyType: LegalEntityTypes.TRUST
|
|
314
|
-
},
|
|
315
|
-
taxInformationDefaultFieldMetadata
|
|
316
|
-
),
|
|
317
|
-
mergedProps
|
|
318
|
-
);
|
|
319
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
320
|
-
"exemptedFromTax",
|
|
321
|
-
resolveFieldMetadata(
|
|
322
|
-
exemptedFromTaxDefaultFieldConfig[country],
|
|
323
|
-
{},
|
|
324
|
-
exemptedFromTaxDefaultFieldMetadata
|
|
325
|
-
),
|
|
326
|
-
mergedProps
|
|
327
|
-
);
|
|
328
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
329
|
-
"registrationNumber",
|
|
330
|
-
resolveFieldMetadata(
|
|
331
|
-
registrationNumberDefaultFieldConfig[country],
|
|
332
|
-
{
|
|
333
|
-
companyType: LegalEntityTypes.TRUST,
|
|
334
|
-
registrationNumberType: sliceData?.registrationNumberType,
|
|
335
|
-
isExperimentEnabled
|
|
336
|
-
},
|
|
337
|
-
registrationNumberDefaultFieldMetadata
|
|
338
|
-
),
|
|
339
|
-
mergedProps
|
|
340
|
-
);
|
|
341
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
342
|
-
"exemptedFromRegistrationNumber",
|
|
343
|
-
resolveFieldMetadata(
|
|
344
|
-
exemptFromRegistrationNumberDefaultFieldConfig[country],
|
|
345
|
-
{},
|
|
346
|
-
exemptFromRegistrationNumberDefaultFieldMetadata
|
|
347
|
-
),
|
|
348
|
-
mergedProps
|
|
349
|
-
);
|
|
350
|
-
mergedProps = mergeFieldMetadataIntoProps(
|
|
351
|
-
"vatNumber",
|
|
352
|
-
resolveFieldMetadata(
|
|
353
|
-
defaultFieldConfig[country],
|
|
354
|
-
{ vatNumberType: sliceData?.vatNumberType },
|
|
355
|
-
defaultFieldMetadata
|
|
356
|
-
),
|
|
357
|
-
mergedProps
|
|
358
|
-
);
|
|
359
|
-
mergedProps.validators = {
|
|
360
|
-
...mergedProps.validators,
|
|
361
|
-
legalName: isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4.legalName : trustRegistrationDetailsValidations.legalName
|
|
362
|
-
};
|
|
363
|
-
const getFormSchema = useCallback(
|
|
364
|
-
(currentData) => {
|
|
365
|
-
const fieldsToRemove = [];
|
|
366
|
-
if (!currentData.hasDoingBusinessAs) {
|
|
367
|
-
fieldsToRemove.push("doingBusinessAs");
|
|
368
|
-
}
|
|
369
|
-
return requiredFields.filter((field) => !fieldsToRemove.includes(field));
|
|
370
|
-
},
|
|
371
|
-
[requiredFields]
|
|
372
|
-
);
|
|
373
|
-
const { handleChangeFor, data, valid, errors, setData, fieldProblems, schema } = useForm({
|
|
374
|
-
...mergedProps,
|
|
375
|
-
schema: getFormSchema,
|
|
376
|
-
defaultData,
|
|
377
|
-
rules: mergedProps.validators || (isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4 : trustRegistrationDetailsValidations),
|
|
378
|
-
fieldProblems: mergedProps.fieldValidationErrors
|
|
379
|
-
});
|
|
380
|
-
const formUtils = createFormUtils(
|
|
381
|
-
{
|
|
382
|
-
...mergedProps,
|
|
383
|
-
requiredFields,
|
|
384
|
-
fieldValidationErrors: mergedProps.fieldValidationErrors,
|
|
385
|
-
formVerificationErrors: mergedProps.formVerificationErrors
|
|
386
|
-
},
|
|
387
|
-
t
|
|
388
|
-
);
|
|
389
|
-
useEffect(() => {
|
|
390
|
-
updateStateSlice({
|
|
391
|
-
schema,
|
|
392
|
-
data,
|
|
393
|
-
errors,
|
|
394
|
-
valid,
|
|
395
|
-
fieldProblems
|
|
396
|
-
});
|
|
397
|
-
}, [data, errors, fieldProblems, schema, updateStateSlice, valid]);
|
|
398
|
-
const changeTrustType = (e) => {
|
|
399
|
-
handleChangeFor("trustType", "blur")(e);
|
|
400
|
-
if (e.target.value !== "charitableTrust") {
|
|
401
|
-
setData("objectOfTrust", void 0);
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
const trustTypeOptions = getCountrySpecificTrustTypeOptions(country) ?? [];
|
|
405
|
-
const showField = (field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field);
|
|
406
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("form", { id: TRUST_REGISTRATION_DETAILS, className: "adyen-kyc-trust__registration-details", children: [
|
|
407
|
-
/* @__PURE__ */ jsx(FormHeader, { heading: mergedProps.heading }),
|
|
408
|
-
/* @__PURE__ */ jsx(
|
|
409
|
-
ErrorPanel,
|
|
410
|
-
{
|
|
411
|
-
verificationErrors: mergedProps.formVerificationErrors,
|
|
412
|
-
validationErrors: mergedProps.fieldValidationErrors,
|
|
413
|
-
formUtils,
|
|
414
|
-
id: "ariaErrorField"
|
|
415
|
-
}
|
|
416
|
-
),
|
|
417
|
-
!isUnincorporatedPartnership && /* @__PURE__ */ jsx(
|
|
418
|
-
Alert,
|
|
419
|
-
{
|
|
420
|
-
variant: "info",
|
|
421
|
-
title: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "secondary", children: i18n.get("makeSureToHaveYourTrustDeed") }),
|
|
422
|
-
className: "adyen-kyc-u-margin-bottom-16"
|
|
423
|
-
}
|
|
424
|
-
),
|
|
425
|
-
formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(
|
|
426
|
-
CountryField,
|
|
427
|
-
{
|
|
428
|
-
data: formUtils.getFieldData(data, COUNTRY_FIELD),
|
|
429
|
-
valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
|
|
430
|
-
errors: formUtils.getFieldErrors(errors, fieldProblems, COUNTRY_FIELD),
|
|
431
|
-
labels: formUtils.getFieldLabels(COUNTRY_FIELD, {
|
|
432
|
-
country: "countryRegionOfEstablishment"
|
|
433
|
-
}),
|
|
434
|
-
readonly: formUtils.isReadOnly("country"),
|
|
435
|
-
allowedCountries: isUnincorporatedPartnership ? ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES : ALLOWED_TRUST_COUNTRIES,
|
|
436
|
-
handleChangeFor: () => (e) => {
|
|
437
|
-
handleChangeFor("country", "input")(e);
|
|
438
|
-
if (mergedProps.onCountryChange) mergedProps.onCountryChange(e);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
),
|
|
442
|
-
formUtils.isRequiredField("legalName") && /* @__PURE__ */ jsx(
|
|
443
|
-
Field,
|
|
444
|
-
{
|
|
445
|
-
name: "legalName",
|
|
446
|
-
label: formUtils.getLabel(
|
|
447
|
-
!isUnincorporatedPartnership ? "nameOfTrustAgreement" : "legalName"
|
|
448
|
-
),
|
|
449
|
-
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldProblems),
|
|
450
|
-
isValid: valid.legalName,
|
|
451
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
452
|
-
InputText,
|
|
453
|
-
{
|
|
454
|
-
...childProps,
|
|
455
|
-
name: "legalName",
|
|
456
|
-
value: data.legalName,
|
|
457
|
-
readonly: formUtils.isReadOnly("legalName"),
|
|
458
|
-
onInput: handleChangeFor("legalName", "input"),
|
|
459
|
-
onBlur: handleChangeFor("legalName", "blur"),
|
|
460
|
-
"aria-required": true,
|
|
461
|
-
"aria-invalid": !valid.legalName
|
|
462
|
-
}
|
|
463
|
-
)
|
|
464
|
-
}
|
|
465
|
-
),
|
|
466
|
-
formUtils.isRequiredField("hasDoingBusinessAs") && /* @__PURE__ */ jsx(
|
|
467
|
-
DBANameField,
|
|
468
|
-
{
|
|
469
|
-
data: formUtils.getFieldData(data, DBA_NAME_FIELD),
|
|
470
|
-
valid: formUtils.getFieldValid(valid, DBA_NAME_FIELD),
|
|
471
|
-
errors: formUtils.getFieldErrors(errors, fieldProblems, DBA_NAME_FIELD),
|
|
472
|
-
labels: formUtils.getFieldLabels(DBA_NAME_FIELD, {
|
|
473
|
-
hasDoingBusinessAs: "hasDba"
|
|
474
|
-
}),
|
|
475
|
-
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
476
|
-
handleChangeFor
|
|
477
|
-
}
|
|
478
|
-
),
|
|
479
|
-
formUtils.isRequiredField("trustType") && !isUnincorporatedPartnership && /* @__PURE__ */ jsx(
|
|
480
|
-
Field,
|
|
481
|
-
{
|
|
482
|
-
name: "trustType",
|
|
483
|
-
label: formUtils.getLabel("trustType", "typeOfTrustAgreement"),
|
|
484
|
-
errorMessage: formUtils.getErrorMessage("trustType", errors, fieldProblems),
|
|
485
|
-
isValid: valid.trustType,
|
|
486
|
-
dataTestId: "trust-type",
|
|
487
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
488
|
-
Select,
|
|
489
|
-
{
|
|
490
|
-
...childProps,
|
|
491
|
-
name: "trustType",
|
|
492
|
-
onChange: changeTrustType,
|
|
493
|
-
selected: data.trustType,
|
|
494
|
-
items: trustTypeOptions.map((trust) => ({
|
|
495
|
-
id: trust,
|
|
496
|
-
name: i18n.get(trust)
|
|
497
|
-
})),
|
|
498
|
-
placeholder: i18n.get("trustType")
|
|
499
|
-
}
|
|
500
|
-
)
|
|
501
|
-
}
|
|
502
|
-
),
|
|
503
|
-
formUtils.isRequiredField("objectOfTrust") && /* @__PURE__ */ jsx(
|
|
504
|
-
Field,
|
|
505
|
-
{
|
|
506
|
-
name: "objectOfTrust",
|
|
507
|
-
label: formUtils.getLabel("objectOfCharitableTrust"),
|
|
508
|
-
helper: formUtils.getLabel("pleaseProvideThePurposeOfCharitableTrust"),
|
|
509
|
-
errorMessage: formUtils.getErrorMessage("objectOfTrust", errors, fieldProblems),
|
|
510
|
-
isValid: valid.objectOfTrust,
|
|
511
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
512
|
-
InputText,
|
|
513
|
-
{
|
|
514
|
-
...childProps,
|
|
515
|
-
name: "objectOfTrust",
|
|
516
|
-
value: data.objectOfTrust,
|
|
517
|
-
readonly: formUtils.isReadOnly("objectOfTrust"),
|
|
518
|
-
onInput: handleChangeFor("objectOfTrust", "input"),
|
|
519
|
-
onBlur: handleChangeFor("objectOfTrust", "blur"),
|
|
520
|
-
"aria-required": true,
|
|
521
|
-
"aria-invalid": !valid.objectOfTrust
|
|
522
|
-
}
|
|
523
|
-
)
|
|
524
|
-
}
|
|
525
|
-
),
|
|
526
|
-
showField("taxInformation") && /* @__PURE__ */ jsx(
|
|
527
|
-
TaxInformationField,
|
|
528
|
-
{
|
|
529
|
-
data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
|
|
530
|
-
valid: formUtils.getFieldValid(valid, TAX_INFORMATION_FIELD),
|
|
531
|
-
errors: formUtils.getFieldErrors(errors, fieldProblems, TAX_INFORMATION_FIELD),
|
|
532
|
-
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, {
|
|
533
|
-
exemptedFromTax: "iDontHaveATaxId"
|
|
534
|
-
}),
|
|
535
|
-
mask: formUtils.getMask("taxInformation"),
|
|
536
|
-
guidanceText: formUtils.getFieldGuidanceText(TAX_INFORMATION_FIELD),
|
|
537
|
-
readonly: formUtils.isReadOnly("taxInformation"),
|
|
538
|
-
shouldValidate: mergedProps.shouldValidate,
|
|
539
|
-
handleChangeFor,
|
|
540
|
-
optional: formUtils.isOptionalField("taxInformation"),
|
|
541
|
-
canExempt: formUtils.isRequiredField("exemptedFromTax"),
|
|
542
|
-
country,
|
|
543
|
-
entityType: LegalEntityTypes.TRUST,
|
|
544
|
-
defaultData: mergedProps.data?.taxInformation,
|
|
545
|
-
registrationNumber: data.registrationNumber
|
|
546
|
-
}
|
|
547
|
-
),
|
|
548
|
-
showField("registrationNumber") && /* @__PURE__ */ jsx(
|
|
549
|
-
BusinessRegistrationNumberField,
|
|
550
|
-
{
|
|
551
|
-
data: formUtils.getFieldData(data, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
552
|
-
valid: formUtils.getFieldValid(valid, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
553
|
-
errors: formUtils.getFieldErrors(
|
|
554
|
-
errors,
|
|
555
|
-
fieldProblems,
|
|
556
|
-
BUSINESS_REGISTRATION_NUMBER_FIELD
|
|
557
|
-
),
|
|
558
|
-
labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, {
|
|
559
|
-
exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber"
|
|
560
|
-
}),
|
|
561
|
-
mask: formUtils.getMask("registrationNumber"),
|
|
562
|
-
guidanceText: formUtils.getFieldGuidanceText(BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
563
|
-
placeholders: formUtils.getFieldPlaceholders(BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
564
|
-
helperText: formUtils.getFieldHelperText(BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
565
|
-
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
566
|
-
optional: formUtils.isOptionalField("registrationNumber"),
|
|
567
|
-
shouldValidate: mergedProps.shouldValidate,
|
|
568
|
-
handleChangeFor,
|
|
569
|
-
country,
|
|
570
|
-
canExempt: formUtils.isRequiredField("exemptedFromRegistrationNumber"),
|
|
571
|
-
companyType: LegalEntityTypes.TRUST
|
|
572
|
-
}
|
|
573
|
-
),
|
|
574
|
-
showField("vatNumber") && /* @__PURE__ */ jsx(
|
|
575
|
-
VatNumberField,
|
|
576
|
-
{
|
|
577
|
-
data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
|
|
578
|
-
valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
|
|
579
|
-
errors: formUtils.getFieldErrors(errors, fieldProblems, VAT_NUMBER_FIELD),
|
|
580
|
-
labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, {
|
|
581
|
-
exemptedFromVat: "iDontHaveAVatNumber"
|
|
582
|
-
}),
|
|
583
|
-
guidanceText: formUtils.getFieldGuidanceText(VAT_NUMBER_FIELD),
|
|
584
|
-
placeholders: formUtils.getFieldPlaceholders(VAT_NUMBER_FIELD),
|
|
585
|
-
optional: formUtils.isOptionalField("vatNumber"),
|
|
586
|
-
readonly: formUtils.isReadOnly("vatNumber"),
|
|
587
|
-
handleChangeFor,
|
|
588
|
-
country,
|
|
589
|
-
canExempt: formUtils.isRequiredField("exemptedFromVat"),
|
|
590
|
-
shouldValidate: mergedProps.shouldValidate
|
|
591
|
-
}
|
|
592
|
-
)
|
|
593
|
-
] }) });
|
|
594
|
-
}
|
|
595
|
-
const trustForms = {
|
|
596
|
-
trustRegistrationDetails: {
|
|
597
|
-
formId: "trustRegistrationDetails",
|
|
598
|
-
formName: "registrationDetails",
|
|
599
|
-
fields: [...trustRegistrationDetailsFields]
|
|
600
|
-
},
|
|
601
|
-
trustRegistrationAddress: {
|
|
602
|
-
formId: "trustRegistrationAddress",
|
|
603
|
-
formName: "addressDetails",
|
|
604
|
-
fields: registrationAddressFields
|
|
605
|
-
},
|
|
606
|
-
trustConstitutionalDocument: {
|
|
607
|
-
formId: "trustConstitutionalDocument",
|
|
608
|
-
formName: "constitutionalDocument",
|
|
609
|
-
fields: ["constitutionalDocument"]
|
|
610
|
-
}
|
|
611
|
-
};
|
|
612
|
-
const trustRegistrationAddressFormId = trustForms.trustRegistrationAddress.formId;
|
|
613
|
-
const trustRegistrationDetailsFormId = trustForms.trustRegistrationDetails.formId;
|
|
614
|
-
const trustConstitutionalDocumentFormId = trustForms.trustConstitutionalDocument.formId;
|
|
615
|
-
function Trust(props) {
|
|
616
|
-
const { i18n } = useI18nContext();
|
|
617
|
-
const { country, activeForm, taskType } = props;
|
|
618
|
-
const trustRegistrationDetailsFormProps = getFormProps(props, trustRegistrationDetailsFormId);
|
|
619
|
-
const trustRegistrationAddressFormProps = getNestedOuterFormPropsFromOuterFormProps(props, trustRegistrationAddressFormId);
|
|
620
|
-
const trustDocumentFormProps = getFormProps(props, trustConstitutionalDocumentFormId);
|
|
621
|
-
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
622
|
-
const renderActiveForm = (activeForm2) => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-trust", children: [
|
|
623
|
-
/* @__PURE__ */ jsx(
|
|
624
|
-
"div",
|
|
625
|
-
{
|
|
626
|
-
className: activeForm2.formId !== trustRegistrationDetailsFormId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
627
|
-
children: /* @__PURE__ */ jsx(
|
|
628
|
-
TrustRegistrationDetails,
|
|
629
|
-
{
|
|
630
|
-
...trustRegistrationDetailsFormProps,
|
|
631
|
-
heading: i18n.get("registrationDetails"),
|
|
632
|
-
id: trustRegistrationDetailsFormId,
|
|
633
|
-
country,
|
|
634
|
-
taskType
|
|
635
|
-
}
|
|
636
|
-
)
|
|
637
|
-
}
|
|
638
|
-
),
|
|
639
|
-
/* @__PURE__ */ jsx(
|
|
640
|
-
"div",
|
|
641
|
-
{
|
|
642
|
-
className: activeForm2.formId !== trustRegistrationAddressFormId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
643
|
-
children: /* @__PURE__ */ jsx(
|
|
644
|
-
RegistrationAddress,
|
|
645
|
-
{
|
|
646
|
-
...trustRegistrationAddressFormProps,
|
|
647
|
-
heading: i18n.get("addressDetails"),
|
|
648
|
-
description: !isUnincorporatedPartnership ? i18n.get("registeredAddressTrustHeaderDescription") : i18n.get("registeredAddressUnincorporatedPartnershipHeaderDescription"),
|
|
649
|
-
id: trustRegistrationAddressFormId,
|
|
650
|
-
country,
|
|
651
|
-
problems: props?.problems,
|
|
652
|
-
labels: {
|
|
653
|
-
operationalAddressIsSame: !isUnincorporatedPartnership ? "isTrustOperationAddressSame" : "isPartnershipOperationAddressSame"
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
)
|
|
657
|
-
}
|
|
658
|
-
),
|
|
659
|
-
/* @__PURE__ */ jsx(
|
|
660
|
-
"div",
|
|
661
|
-
{
|
|
662
|
-
className: activeForm2.formId !== trustConstitutionalDocumentFormId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
663
|
-
children: /* @__PURE__ */ jsx(
|
|
664
|
-
MemoizedConstitutionalDocument,
|
|
665
|
-
{
|
|
666
|
-
...trustDocumentFormProps,
|
|
667
|
-
id: trustConstitutionalDocumentFormId,
|
|
668
|
-
legalEntityType: isUnincorporatedPartnership ? LegalEntityTypes.UNINCORPORATED_PARTNERSHIP : LegalEntityTypes.TRUST,
|
|
669
|
-
country
|
|
670
|
-
}
|
|
671
|
-
)
|
|
672
|
-
}
|
|
673
|
-
)
|
|
674
|
-
] });
|
|
675
|
-
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-trust", children: renderActiveForm(activeForm || trustForms.trustRegistrationDetails) });
|
|
676
|
-
}
|
|
677
|
-
const mapLegalEntityToTrust = (legalEntity, isExperimentEnabled) => {
|
|
678
|
-
if (!legalEntity.trust) throw new Error("LE missing trust field");
|
|
679
|
-
let trustCompData = formatObject(legalEntity, trustComponentsKeyMapping);
|
|
680
|
-
if (!trustCompData?.trustRegistrationDetails) return {};
|
|
681
|
-
trustCompData.trustRegistrationDetails.vatNumberType = getDefaultVatNumberType(
|
|
682
|
-
legalEntity.trust.vatNumber,
|
|
683
|
-
legalEntity.trust.countryOfGoverningLaw
|
|
684
|
-
);
|
|
685
|
-
trustCompData.trustRegistrationDetails.registrationNumberType = getDefaultRegistrationNumberType(
|
|
686
|
-
legalEntity.trust.registrationNumber,
|
|
687
|
-
legalEntity.trust.countryOfGoverningLaw,
|
|
688
|
-
LegalEntityTypes.TRUST
|
|
689
|
-
);
|
|
690
|
-
trustCompData.trustRegistrationDetails.country = legalEntity.trust.countryOfGoverningLaw;
|
|
691
|
-
if (legalEntity.trust.description) {
|
|
692
|
-
trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.trust.description;
|
|
693
|
-
}
|
|
694
|
-
if (legalEntity.trust.principalPlaceOfBusiness) {
|
|
695
|
-
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
696
|
-
} else {
|
|
697
|
-
if (!trustCompData.trustRegistrationAddress) {
|
|
698
|
-
trustCompData.trustRegistrationAddress = {};
|
|
699
|
-
}
|
|
700
|
-
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
|
|
701
|
-
}
|
|
702
|
-
if (legalEntity.trust.taxInformation?.length) {
|
|
703
|
-
const { country } = legalEntity.trust.registeredAddress;
|
|
704
|
-
const countryTaxInformation = legalEntity.trust.taxInformation.find(
|
|
705
|
-
(info) => info.country === country
|
|
706
|
-
);
|
|
707
|
-
if (countryTaxInformation?.type === "UEN") {
|
|
708
|
-
trustCompData.trustRegistrationDetails.isUen = true;
|
|
709
|
-
}
|
|
710
|
-
if (countryTaxInformation?.type === "GST") {
|
|
711
|
-
trustCompData.trustRegistrationDetails.isUen = false;
|
|
712
|
-
}
|
|
713
|
-
const taxNumberAbsent = countryTaxInformation?.numberAbsent;
|
|
714
|
-
if (taxNumberAbsent !== void 0) {
|
|
715
|
-
trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
if (legalEntity.documentDetails?.length) {
|
|
719
|
-
trustCompData = {
|
|
720
|
-
...trustCompData,
|
|
721
|
-
...mapApiDocumentToTrustDocument(legalEntity?.id)
|
|
722
|
-
};
|
|
723
|
-
}
|
|
724
|
-
if (isExperimentEnabled("EnableDoingBusinessAsNameV4")) {
|
|
725
|
-
if (typeof trustCompData.trustRegistrationDetails?.hasDoingBusinessAs === "boolean") {
|
|
726
|
-
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.trust.doingBusinessAsAbsent;
|
|
727
|
-
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs)
|
|
728
|
-
delete legalEntity.trust?.doingBusinessAs;
|
|
729
|
-
}
|
|
730
|
-
} else {
|
|
731
|
-
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.trust.doingBusinessAs ? legalEntity.trust.doingBusinessAs !== legalEntity.trust.name : void 0;
|
|
732
|
-
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.trust.doingBusinessAs;
|
|
733
|
-
}
|
|
734
|
-
return trustCompData;
|
|
735
|
-
};
|
|
736
|
-
const mapTrustDocumentToApiDocument = async (data, entityId) => {
|
|
737
|
-
const constitutionalDocument = data?.trustConstitutionalDocument?.constitutionalDocument;
|
|
738
|
-
if (!constitutionalDocument) {
|
|
739
|
-
throw new Error("Constitutional document missing");
|
|
740
|
-
}
|
|
741
|
-
const page1 = constitutionalDocument[0];
|
|
742
|
-
if (!page1) {
|
|
743
|
-
throw new Error("Document needs at least one page");
|
|
744
|
-
}
|
|
745
|
-
const existingDocument = getDocument(entityId, "constitutionalDocument");
|
|
746
|
-
return await createDocumentRequest({
|
|
747
|
-
entityId,
|
|
748
|
-
entityType: "legalEntity",
|
|
749
|
-
documentType: "constitutionalDocument",
|
|
750
|
-
page1,
|
|
751
|
-
existingDocument
|
|
752
|
-
});
|
|
753
|
-
};
|
|
754
|
-
const mapTrustToLegalEntity = (data, isExperimentEnabled) => {
|
|
755
|
-
const requestObj = {
|
|
756
|
-
...formatObject(data, trustApiKeyMapping)
|
|
757
|
-
};
|
|
758
|
-
if (!requestObj.trust) return requestObj;
|
|
759
|
-
if (data.trustRegistrationDetails?.objectOfTrust) {
|
|
760
|
-
requestObj.trust.description = data.trustRegistrationDetails.objectOfTrust;
|
|
761
|
-
}
|
|
762
|
-
if (isExperimentEnabled("EnableDoingBusinessAsNameV4")) {
|
|
763
|
-
requestObj.trust.doingBusinessAsAbsent = typeof data.trustRegistrationDetails?.hasDoingBusinessAs !== "undefined" ? !data.trustRegistrationDetails?.hasDoingBusinessAs : void 0;
|
|
764
|
-
if (requestObj.trust.doingBusinessAsAbsent) {
|
|
765
|
-
requestObj.trust.doingBusinessAs = "";
|
|
766
|
-
}
|
|
767
|
-
} else {
|
|
768
|
-
delete requestObj.trust?.doingBusinessAsAbsent;
|
|
769
|
-
requestObj.trust.doingBusinessAs = data.trustRegistrationDetails?.doingBusinessAs || data.trustRegistrationDetails?.legalName;
|
|
770
|
-
}
|
|
771
|
-
requestObj.type = LegalEntityTypes.TRUST;
|
|
772
|
-
return requestObj;
|
|
773
|
-
};
|
|
774
|
-
const MANDATORY_FIELDS_TRUST = [
|
|
775
|
-
"trustRegistrationDetails.legalName",
|
|
776
|
-
"trustRegistrationDetails.country"
|
|
777
|
-
];
|
|
778
|
-
const trustBase = {
|
|
779
|
-
trustType: {
|
|
780
|
-
rule: "REQUIRED"
|
|
781
|
-
},
|
|
782
|
-
objectOfTrust: {
|
|
783
|
-
rule: "trustTypeHasDescription"
|
|
784
|
-
},
|
|
785
|
-
legalName: {
|
|
786
|
-
rule: "REQUIRED"
|
|
787
|
-
},
|
|
788
|
-
hasDoingBusinessAs: {
|
|
789
|
-
rule: "hasDoingBusinessAs"
|
|
790
|
-
},
|
|
791
|
-
doingBusinessAs: {
|
|
792
|
-
rule: "hasDoingBusinessAs"
|
|
793
|
-
},
|
|
794
|
-
country: {
|
|
795
|
-
rule: "REQUIRED"
|
|
796
|
-
},
|
|
797
|
-
taxInformation: {
|
|
798
|
-
rule: "countryUsesTaxId"
|
|
799
|
-
},
|
|
800
|
-
registrationAddress: {
|
|
801
|
-
rule: "REQUIRED"
|
|
802
|
-
},
|
|
803
|
-
operationalAddress: {
|
|
804
|
-
rule: "OPTIONAL"
|
|
805
|
-
},
|
|
806
|
-
constitutionalDocument: {
|
|
807
|
-
rule: "REQUIRED"
|
|
808
|
-
},
|
|
809
|
-
registrationNumber: { rule: "countryRequiresRegistrationNumberForTrust" },
|
|
810
|
-
registrationNumberType: { rule: "registrationNumberType" },
|
|
811
|
-
vatNumber: { rule: "countryUsesVatNumber" },
|
|
812
|
-
vatNumberType: { rule: "countryUsesVatNumber" }
|
|
813
|
-
};
|
|
814
|
-
const trustFieldsPerScenario = {
|
|
815
|
-
L0: {
|
|
816
|
-
...trustBase
|
|
817
|
-
},
|
|
818
|
-
L1: {
|
|
819
|
-
...trustBase
|
|
820
|
-
},
|
|
821
|
-
L: {
|
|
822
|
-
...trustBase
|
|
823
|
-
}
|
|
824
|
-
};
|
|
825
|
-
const trustCountryConfig = {};
|
|
826
|
-
const parseTrustScenarios = (scenarios, country) => augmentWithCountryConfigs(
|
|
827
|
-
trustCountryConfig[country],
|
|
828
|
-
composePerScenarioFormConfigurations(scenarios, trustFieldsPerScenario)
|
|
829
|
-
);
|
|
830
|
-
const parseConfiguration = ({ scenarios, country }) => parseTrustScenarios(scenarios, country);
|
|
831
|
-
function TrustDropin({
|
|
832
|
-
parentLegalEntity,
|
|
833
|
-
capabilities,
|
|
834
|
-
country: countryProp,
|
|
835
|
-
existingTrust,
|
|
836
|
-
taskType,
|
|
837
|
-
problems: problemsProp,
|
|
838
|
-
onSubmit: externalOnSubmit,
|
|
839
|
-
onChange,
|
|
840
|
-
hideSidebar,
|
|
841
|
-
handleHomeClick
|
|
842
|
-
}) {
|
|
843
|
-
const {
|
|
844
|
-
state: { currentState }
|
|
845
|
-
} = useStateContext();
|
|
846
|
-
const formValidity = currentState.validityByForm;
|
|
847
|
-
useEffect(() => {
|
|
848
|
-
onChange?.(currentState);
|
|
849
|
-
}, [currentState, onChange]);
|
|
850
|
-
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
851
|
-
const { i18n } = useI18nContext();
|
|
852
|
-
const userEvents = useAnalyticsContext();
|
|
853
|
-
const [validationErrors, setValidationErrors] = useState();
|
|
854
|
-
const datasetUtils = datasetUtilities(i18n.locale);
|
|
855
|
-
const { isExperimentEnabled } = useExperimentsContext();
|
|
856
|
-
const { showToast } = useToastContext();
|
|
857
|
-
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
858
|
-
const formRef = useRef(null);
|
|
859
|
-
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
860
|
-
const problems = useMemo(
|
|
861
|
-
() => ({
|
|
862
|
-
...problemsProp,
|
|
863
|
-
validationErrors
|
|
864
|
-
}),
|
|
865
|
-
[problemsProp, validationErrors]
|
|
866
|
-
);
|
|
867
|
-
const trustData = useMemo(() => {
|
|
868
|
-
if (!existingTrust) return {};
|
|
869
|
-
return isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(existingTrust, isExperimentEnabled) : mapLegalEntityToTrust(existingTrust, isExperimentEnabled);
|
|
870
|
-
}, [isExperimentEnabled, existingTrust, isUnincorporatedPartnership]);
|
|
871
|
-
const currentCountry = useMemo(
|
|
872
|
-
() => currentState.data.trustRegistrationDetails?.country ?? countryProp,
|
|
873
|
-
[countryProp, currentState.data.trustRegistrationDetails?.country]
|
|
874
|
-
);
|
|
875
|
-
const [initialData, setInitialData] = useState(trustData);
|
|
876
|
-
const associatedLeTrackingParams = getAssociatedLeAnalyticsPayload({
|
|
877
|
-
associatedLegalEntity: existingTrust
|
|
878
|
-
});
|
|
879
|
-
useEffect(() => {
|
|
880
|
-
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
881
|
-
userEvents.addTaskEvent("Landed on page", {
|
|
882
|
-
actionType: "start",
|
|
883
|
-
...associatedLeTrackingParams
|
|
884
|
-
});
|
|
885
|
-
if (!existingTrust?.documentDetails?.length) return;
|
|
886
|
-
try {
|
|
887
|
-
documentUtils.fetchDocuments(existingTrust.documentDetails, existingTrust.id).then(() => {
|
|
888
|
-
const mappedDocuments = mapApiDocumentToTrustDocument(existingTrust.id);
|
|
889
|
-
setInitialData({
|
|
890
|
-
...initialData,
|
|
891
|
-
...mappedDocuments
|
|
892
|
-
});
|
|
893
|
-
}).catch(() => {
|
|
894
|
-
showToast({ label: i18n.get("failedToFetchRelevantDocuments"), variant: "error" });
|
|
895
|
-
});
|
|
896
|
-
} catch {
|
|
897
|
-
showToast({ label: i18n.get("failedToFetchRelevantDocuments"), variant: "error" });
|
|
898
|
-
}
|
|
899
|
-
}, []);
|
|
900
|
-
const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
|
|
901
|
-
parseConfiguration,
|
|
902
|
-
legalEntityType: LegalEntityTypes.TRUST,
|
|
903
|
-
setLoadingStatus,
|
|
904
|
-
country: currentCountry
|
|
905
|
-
});
|
|
906
|
-
const fieldsFromCustomRules = useMemo(
|
|
907
|
-
() => rules({
|
|
908
|
-
data: currentState.data,
|
|
909
|
-
country: currentCountry,
|
|
910
|
-
taskType,
|
|
911
|
-
isExperimentEnabled
|
|
912
|
-
}),
|
|
913
|
-
[currentCountry, currentState.data, taskType, requiredFields, isExperimentEnabled]
|
|
914
|
-
);
|
|
915
|
-
const derivedProps = useMemo(
|
|
916
|
-
() => getPropsFromConfigurations({
|
|
917
|
-
scenarioConfiguration: fieldConfigurations,
|
|
918
|
-
forms: trustForms,
|
|
919
|
-
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
920
|
-
dataMissingErrors: problems?.missingData ?? [],
|
|
921
|
-
fieldsWithExistingData: existingTrust ? getFieldsWithExistingData(existingTrust, trustApiKeyMapping, trustDocumentMapping) : [],
|
|
922
|
-
customRules: fieldsFromCustomRules,
|
|
923
|
-
legalEntityType: existingTrust?.type
|
|
924
|
-
}),
|
|
925
|
-
[
|
|
926
|
-
fieldConfigurations,
|
|
927
|
-
problems?.remediationActions,
|
|
928
|
-
problems?.missingData,
|
|
929
|
-
existingTrust,
|
|
930
|
-
fieldsFromCustomRules
|
|
931
|
-
]
|
|
932
|
-
);
|
|
933
|
-
const forms = useMemo(() => {
|
|
934
|
-
const requiredForms = getRequiredForms(
|
|
935
|
-
trustForms,
|
|
936
|
-
derivedProps?.requiredFields,
|
|
937
|
-
derivedProps?.optionalFields
|
|
938
|
-
);
|
|
939
|
-
return addValidityToForms(requiredForms, formValidity, problems);
|
|
940
|
-
}, [derivedProps, formValidity, problems]);
|
|
941
|
-
const onSubmitTrust = async () => {
|
|
942
|
-
setLoadingStatus("loading");
|
|
943
|
-
const trustDetails = mapTrustToLegalEntity(currentState.data, isExperimentEnabled);
|
|
944
|
-
try {
|
|
945
|
-
const updatedTrust = await submitTrustDetails(trustDetails);
|
|
946
|
-
await submitDocuments({ forms, legalEntity: updatedTrust, dataSubmitted: currentState.data });
|
|
947
|
-
await attachTrustToParentLegalEntity(updatedTrust);
|
|
948
|
-
setLoadingStatus("success");
|
|
949
|
-
showToast({ label: i18n.get("successfullyUpdatedDetails"), variant: "success" });
|
|
950
|
-
externalOnSubmit?.(currentState.data);
|
|
951
|
-
} catch (e) {
|
|
952
|
-
showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
|
|
953
|
-
if (isValidationError(e)) {
|
|
954
|
-
setValidationErrors(processValidationErrors(e, taskType));
|
|
955
|
-
} else if (isMaintenanceModeError(e)) {
|
|
956
|
-
showToast({
|
|
957
|
-
label: i18n.get("maintenanceModeMessage"),
|
|
958
|
-
variant: "error",
|
|
959
|
-
duration: "indefinite"
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
setLoadingStatus("success");
|
|
963
|
-
}
|
|
964
|
-
};
|
|
965
|
-
const onSubmitUnincorporatedPartnership = async () => {
|
|
966
|
-
setLoadingStatus("loading");
|
|
967
|
-
const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(
|
|
968
|
-
currentState.data,
|
|
969
|
-
isExperimentEnabled
|
|
970
|
-
);
|
|
971
|
-
try {
|
|
972
|
-
const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(
|
|
973
|
-
unincorporatedPartnershipDetails
|
|
974
|
-
);
|
|
975
|
-
await submitDocuments({
|
|
976
|
-
forms,
|
|
977
|
-
legalEntity: updatedUnincorporatedPartnershipDetails,
|
|
978
|
-
dataSubmitted: currentState.data
|
|
979
|
-
});
|
|
980
|
-
await attachTrustToParentLegalEntity(updatedUnincorporatedPartnershipDetails);
|
|
981
|
-
setLoadingStatus("success");
|
|
982
|
-
showToast({ label: i18n.get("successfullyUpdatedDetails"), variant: "success" });
|
|
983
|
-
externalOnSubmit?.(currentState.data);
|
|
984
|
-
} catch (e) {
|
|
985
|
-
showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
|
|
986
|
-
if (isValidationError(e)) {
|
|
987
|
-
setValidationErrors(processValidationErrors(e, taskType));
|
|
988
|
-
} else if (isMaintenanceModeError(e)) {
|
|
989
|
-
showToast({
|
|
990
|
-
label: i18n.get("maintenanceModeMessage"),
|
|
991
|
-
variant: "error",
|
|
992
|
-
duration: "indefinite"
|
|
993
|
-
});
|
|
994
|
-
}
|
|
995
|
-
setLoadingStatus("success");
|
|
996
|
-
}
|
|
997
|
-
};
|
|
998
|
-
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
999
|
-
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
1000
|
-
const submitTrustDetails = async (legalEntity) => {
|
|
1001
|
-
if (!existingTrust) {
|
|
1002
|
-
return await createLegalEntity(legalEntity);
|
|
1003
|
-
} else {
|
|
1004
|
-
return await updateLegalEntity({
|
|
1005
|
-
...drop("type").from(legalEntity),
|
|
1006
|
-
id: existingTrust.id
|
|
1007
|
-
});
|
|
1008
|
-
}
|
|
1009
|
-
};
|
|
1010
|
-
const documentUtils = documentApiUtils({
|
|
1011
|
-
baseUrl: baseUrl.value,
|
|
1012
|
-
rootLegalEntityId: rootLegalEntityId.value
|
|
1013
|
-
});
|
|
1014
|
-
const submitDocuments = async ({
|
|
1015
|
-
forms: forms2,
|
|
1016
|
-
legalEntity,
|
|
1017
|
-
dataSubmitted
|
|
1018
|
-
}) => {
|
|
1019
|
-
if (isDocumentsRequired(forms2)) {
|
|
1020
|
-
const formattedDocument = await mapTrustDocumentToApiDocument(dataSubmitted, legalEntity.id);
|
|
1021
|
-
if (formattedDocument) {
|
|
1022
|
-
await documentUtils.uploadDocuments([formattedDocument], legalEntity.id);
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
};
|
|
1026
|
-
const isDocumentsRequired = (forms2) => forms2.some((form) => form.formId === trustForms.trustConstitutionalDocument.formId);
|
|
1027
|
-
const attachTrustToParentLegalEntity = async (trust) => {
|
|
1028
|
-
if (existingTrust?.id) {
|
|
1029
|
-
return;
|
|
1030
|
-
}
|
|
1031
|
-
const existingEntityAssociations = getOwnEntityAssociations(parentLegalEntity);
|
|
1032
|
-
const updatedParentLegalEntity = {
|
|
1033
|
-
entityAssociations: [
|
|
1034
|
-
{
|
|
1035
|
-
type: trust.type,
|
|
1036
|
-
legalEntityId: trust.id
|
|
1037
|
-
},
|
|
1038
|
-
...existingEntityAssociations
|
|
1039
|
-
]
|
|
1040
|
-
};
|
|
1041
|
-
await updateLegalEntity({ ...updatedParentLegalEntity, id: parentLegalEntity.id });
|
|
1042
|
-
};
|
|
1043
|
-
const formatDataForSummary = (formData, forms2) => {
|
|
1044
|
-
let summaryData = cloneObject(formData) || {};
|
|
1045
|
-
const country = formData.trustRegistrationDetails?.country ?? (existingTrust ? getLegalEntityCountry(existingTrust) : getLegalEntityCountry(parentLegalEntity));
|
|
1046
|
-
if (formData.trustRegistrationDetails) {
|
|
1047
|
-
const trustCountry = formData.trustRegistrationDetails.country && datasetUtils.getCountryName(formData.trustRegistrationDetails.country);
|
|
1048
|
-
const trustType = formData.trustRegistrationDetails.trustType && i18n.get(formData.trustRegistrationDetails.trustType);
|
|
1049
|
-
const registrationNumberLabel = resolveFieldMetadata(
|
|
1050
|
-
registrationNumberDefaultFieldConfig[country],
|
|
1051
|
-
{
|
|
1052
|
-
companyType: LegalEntityTypes.TRUST,
|
|
1053
|
-
registrationNumberType: formData.trustRegistrationDetails.registrationNumber ? inferCompanyRegistrationNumberType(
|
|
1054
|
-
formData.trustRegistrationDetails.registrationNumber,
|
|
1055
|
-
country,
|
|
1056
|
-
LegalEntityTypes.TRUST
|
|
1057
|
-
) : getCompanyRegistrationNumberOptions(country, LegalEntityTypes.TRUST)?.[0]?.id
|
|
1058
|
-
},
|
|
1059
|
-
registrationNumberDefaultFieldMetadata
|
|
1060
|
-
).label;
|
|
1061
|
-
const taxIdLabel = resolveFieldMetadata(
|
|
1062
|
-
taxInformationDefaultFieldConfig[country],
|
|
1063
|
-
{
|
|
1064
|
-
companyType: LegalEntityTypes.TRUST,
|
|
1065
|
-
taxIdNumberType: countryToTaxInfoTypeMap[country]
|
|
1066
|
-
},
|
|
1067
|
-
taxInformationDefaultFieldMetadata
|
|
1068
|
-
).label;
|
|
1069
|
-
summaryData.trustRegistrationDetails = {
|
|
1070
|
-
[isUnincorporatedPartnership ? "legalName" : "nameOfTrustAgreement"]: formData.trustRegistrationDetails?.legalName,
|
|
1071
|
-
doingBusinessAs: formData.trustRegistrationDetails?.doingBusinessAs,
|
|
1072
|
-
countryRegionOfEstablishment: trustCountry,
|
|
1073
|
-
typeOfTrustAgreement: isUnincorporatedPartnership ? void 0 : trustType,
|
|
1074
|
-
objectOfTrust: formData.trustRegistrationDetails?.objectOfTrust,
|
|
1075
|
-
[taxIdLabel]: formData.trustRegistrationDetails?.taxInformation?.find(
|
|
1076
|
-
(taxId) => country === taxId.country
|
|
1077
|
-
)?.number,
|
|
1078
|
-
[registrationNumberLabel]: formData.trustRegistrationDetails.registrationNumber
|
|
1079
|
-
};
|
|
1080
|
-
}
|
|
1081
|
-
if (formData.trustRegistrationAddress?.registrationAddress) {
|
|
1082
|
-
summaryData.trustRegistrationAddress.hasInnerForms = true;
|
|
1083
|
-
summaryData.trustRegistrationAddress.registrationAddress = mapAddressLabels(
|
|
1084
|
-
formData.trustRegistrationAddress.registrationAddress,
|
|
1085
|
-
datasetUtils
|
|
1086
|
-
);
|
|
1087
|
-
}
|
|
1088
|
-
if (formData.trustRegistrationAddress?.operationalAddress) {
|
|
1089
|
-
summaryData.trustRegistrationAddress.operationalAddress = mapAddressLabels(
|
|
1090
|
-
formData.trustRegistrationAddress.operationalAddress,
|
|
1091
|
-
datasetUtils
|
|
1092
|
-
);
|
|
1093
|
-
}
|
|
1094
|
-
if (isDocumentsRequired(forms2)) {
|
|
1095
|
-
summaryData = {
|
|
1096
|
-
...summaryData,
|
|
1097
|
-
...formatFileSummaryData(formData.trustConstitutionalDocument)
|
|
1098
|
-
};
|
|
1099
|
-
} else {
|
|
1100
|
-
delete summaryData[trustConstitutionalDocumentFormId];
|
|
1101
|
-
}
|
|
1102
|
-
return summaryData;
|
|
1103
|
-
};
|
|
1104
|
-
const formatFileSummaryData = (trustConstitutionalDocument) => {
|
|
1105
|
-
const constitutionalDocument = trustConstitutionalDocument?.constitutionalDocument?.[0];
|
|
1106
|
-
return {
|
|
1107
|
-
...constitutionalDocument && {
|
|
1108
|
-
trustConstitutionalDocument: {
|
|
1109
|
-
fileName: constitutionalDocument.name
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
};
|
|
1114
|
-
const canSubmit = (formData) => MANDATORY_FIELDS_TRUST.every((detail) => {
|
|
1115
|
-
const value = getProp(formData, detail);
|
|
1116
|
-
return !isEmpty$1(value);
|
|
1117
|
-
});
|
|
1118
|
-
const {
|
|
1119
|
-
handleNextClick,
|
|
1120
|
-
handleBackClick,
|
|
1121
|
-
activeForm,
|
|
1122
|
-
shouldValidate,
|
|
1123
|
-
setShouldValidate,
|
|
1124
|
-
gotoFormByFormIndex,
|
|
1125
|
-
steps
|
|
1126
|
-
} = useFormComposer({
|
|
1127
|
-
problems,
|
|
1128
|
-
navigationTrackingParams: associatedLeTrackingParams,
|
|
1129
|
-
forms,
|
|
1130
|
-
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust
|
|
1131
|
-
});
|
|
1132
|
-
return /* @__PURE__ */ jsx(
|
|
1133
|
-
FormWrapper,
|
|
1134
|
-
{
|
|
1135
|
-
taskName: isUnincorporatedPartnership ? "unincorporatedDetails" : "trustDetails",
|
|
1136
|
-
handleNextClick,
|
|
1137
|
-
handleBackClick,
|
|
1138
|
-
gotoFormByFormIndex,
|
|
1139
|
-
loadingStatus,
|
|
1140
|
-
forms,
|
|
1141
|
-
activeForm,
|
|
1142
|
-
navigationTrackingParams: associatedLeTrackingParams,
|
|
1143
|
-
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust,
|
|
1144
|
-
hideSidebar,
|
|
1145
|
-
handleHomeClick,
|
|
1146
|
-
validateForm: () => setShouldValidate(true),
|
|
1147
|
-
canSubmit: canSubmit(currentState.data) && hasDataChanged(initialData, currentState.data),
|
|
1148
|
-
problems,
|
|
1149
|
-
summary: {
|
|
1150
|
-
data: formatDataForSummary(currentState.data, forms),
|
|
1151
|
-
omitted: {
|
|
1152
|
-
keys: ["operationalAddressIsSame"]
|
|
1153
|
-
}
|
|
1154
|
-
},
|
|
1155
|
-
steps,
|
|
1156
|
-
children: /* @__PURE__ */ jsx(
|
|
1157
|
-
Trust,
|
|
1158
|
-
{
|
|
1159
|
-
...derivedProps,
|
|
1160
|
-
activeForm,
|
|
1161
|
-
capabilities,
|
|
1162
|
-
data: initialData,
|
|
1163
|
-
country: currentCountry,
|
|
1164
|
-
problems,
|
|
1165
|
-
shouldValidate,
|
|
1166
|
-
ref: formRef,
|
|
1167
|
-
taskType
|
|
1168
|
-
}
|
|
1169
|
-
)
|
|
1170
|
-
}
|
|
1171
|
-
);
|
|
1172
|
-
}
|
|
1173
|
-
const TrustDetailsPage = ({
|
|
1174
|
-
taskType,
|
|
1175
|
-
trustId,
|
|
1176
|
-
handleHomeClick,
|
|
1177
|
-
onSubmit
|
|
1178
|
-
}) => {
|
|
1179
|
-
const { data: trustLe } = useLegalEntity(trustId ?? skipToken);
|
|
1180
|
-
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
1181
|
-
const capabilities = useCapabilities();
|
|
1182
|
-
const capabilityNames = capabilities ? keysOf(capabilities) : [];
|
|
1183
|
-
const capabilityProblems = useCapabilityProblems();
|
|
1184
|
-
const problems = capabilityProblems && trustId ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, trustId) : void 0;
|
|
1185
|
-
if (trustId && !trustLe || !rootLe) {
|
|
1186
|
-
return /* @__PURE__ */ jsx(Loader, {});
|
|
1187
|
-
}
|
|
1188
|
-
const country = getLegalEntityCountry(trustLe ?? rootLe);
|
|
1189
|
-
return /* @__PURE__ */ jsx(
|
|
1190
|
-
TrustDropin,
|
|
1191
|
-
{
|
|
1192
|
-
taskType,
|
|
1193
|
-
problems,
|
|
1194
|
-
existingTrust: trustLe,
|
|
1195
|
-
parentLegalEntity: rootLe,
|
|
1196
|
-
capabilities: capabilityNames,
|
|
1197
|
-
country,
|
|
1198
|
-
handleHomeClick,
|
|
1199
|
-
onSubmit
|
|
1200
|
-
}
|
|
1201
|
-
);
|
|
1202
|
-
};
|
|
1203
|
-
export {
|
|
1204
|
-
TrustDetailsPage
|
|
1205
|
-
};
|