@adyen/kyc-components 4.0.0-compact.1 → 4.0.0-compact.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/4-people-BzyXLUF9.js +24 -0
- package/dist/{AD-CyP5INSp.js → AD-BQAadLyG.js} +2 -2
- package/dist/{AT-DJLlevck.js → AT-BI8ju2NH.js} +2 -2
- package/dist/{AcceptTermsOfServiceComponent-Ddtg_ZHH.js → AcceptTermsOfServiceComponent-DmtE39CC.js} +51 -66
- package/dist/Accordion-C-BvE1VA.js +88 -0
- package/dist/{AccountSetupRejected-CvdEsdWe.js → AccountSetupRejected-DDoI43lB.js} +6 -6
- package/dist/ActionBar-Dzrzolec.js +31 -0
- package/dist/{Address-YjoUtTTT.js → Address-e41CN3CB.js} +292 -51
- package/dist/{Alert-C_-UwoDE.js → Alert-Dk-oZlnx.js} +7 -79
- package/dist/{Avatar-CeHhAxxR.js → Avatar-efxn8pKz.js} +2 -2
- package/dist/{BE-B-m_4F41.js → BE-nWHKW0xQ.js} +2 -2
- package/dist/{BG-BVR5ytc-.js → BG-HKzabLqZ.js} +3 -3
- package/dist/BusinessDetailsDropin-DDh_D2hv.js +2359 -0
- package/dist/BusinessFinancingComponent-C04uRrhE.js +55 -0
- package/dist/{BusinessFinancingDropin-B6Vpswcj.js → BusinessFinancingDropin-_OlSqohS.js} +186 -154
- package/dist/BusinessFinancingPage-DdMugwOa.js +43 -0
- package/dist/{BusinessTypeSelectionPage-CQxhI1B6.js → BusinessTypeSelectionPage-vkCTEFEJ.js} +13 -13
- package/dist/{CH-CesIKOYy.js → CH-TX4BTE2y.js} +2 -2
- package/dist/{CY-BnJ7k_mN.js → CY-D59Nypl7.js} +2 -2
- package/dist/{CZ-BiPeoA9G.js → CZ-B6iI1GbE.js} +3 -3
- package/dist/Card-CqXQA0AI.js +82 -0
- package/dist/ConstitutionalDocument-CcwyClZ7.js +143 -0
- package/dist/{CountryField-50Iboayh.js → CountryField-CzRN1OE8.js} +195 -216
- package/dist/CreateIndividualComponent-BNeY6u8q.js +71 -0
- package/dist/CreateTransferInstrumentComponent-B8cNHRdF.js +63 -0
- package/dist/{Currency-D-0ToVpS.js → Currency-BBt4yo5i.js} +10 -65
- package/dist/{CustomerSupport-DTw357Bq.js → CustomerSupport-CObTT8cH.js} +23 -11
- package/dist/{DE-DdcbG-CC.js → DE-CsuX_tSL.js} +2 -2
- package/dist/{DK-DA8qRrzq.js → DK-oQEFrF6o.js} +3 -3
- package/dist/{DebugModal-Dc6JIQeF.js → DebugModal-DJcim6UP.js} +128 -43
- package/dist/DecisionMakerDetailsPage-CrQgRW8X.js +106 -0
- package/dist/DecisionMakers-B-3aMddf.js +842 -0
- package/dist/DropinLayout-CBP_cHLC.js +17 -0
- package/dist/{EE-CaXoPgZz.js → EE-3WZV5Ejt.js} +2 -2
- package/dist/{ES-Bt_oaIaf.js → ES-NfxpqbC2.js} +2 -2
- package/dist/{EmbeddedStatus-DQXq53qv.js → EmbeddedStatus-C_5DguHv.js} +15 -16
- package/dist/{EndStateLayout-BPsmcrN3.js → EndStateLayout-CwdrDEYY.js} +2 -2
- package/dist/EntityAssociation-C413vcu6.js +159 -0
- package/dist/EntityGuidanceStatus-C6b8i7os.js +105 -0
- package/dist/{FI-C5V3lLuN.js → FI-CHQIvHa-.js} +2 -2
- package/dist/{FR-Bc1tLIC4.js → FR-MWZyWX3x.js} +2 -2
- package/dist/FormFlow-PppMJ6OA.js +186 -0
- package/dist/{FormNavigation-29vpexO6.js → FormNavigation-DL47b_QR.js} +6 -24
- package/dist/{useGlobalData-TJeJM5fq.js → FormWrapper-BOrTn1C8.js} +12 -82
- package/dist/{GG-BGuqxplU.js → GG-CPoMVQPc.js} +3 -3
- package/dist/{GI-CROkpYrU.js → GI-DxmBwVD_.js} +3 -3
- package/dist/{GR-B9c2boG8.js → GR-Rk0pXlNw.js} +2 -2
- package/dist/{HR-p4luVYpu.js → HR-WapHW2fw.js} +2 -2
- package/dist/{HU-D8vJYkDH.js → HU-DCOMuOhe.js} +3 -3
- package/dist/{IE-Cli_j7Al.js → IE-BkgtVgDi.js} +2 -2
- package/dist/{IM-mpIyBn16.js → IM-Wr4iDT94.js} +3 -3
- package/dist/{IS-02zCAdvq.js → IS-C-Cgc6zp.js} +2 -2
- package/dist/{IT-CzURFhrK.js → IT-CXekiddL.js} +2 -2
- package/dist/{IndividualOnfidoDropin-XYcD-6sb.js → IndividualOnfido-CmmyKC7J.js} +8212 -6455
- package/dist/IndividualOnfidoDropin-BsCb6dvy.js +2569 -0
- package/dist/{InputText-CnEQJihB.js → InputText-BfL9DgWp.js} +101 -13
- package/dist/{Introduction-BkGNoXvo.js → Introduction-CBMl7v2M.js} +7 -11
- package/dist/{JE-MFwIYti7.js → JE-B4gj54Hg.js} +3 -3
- package/dist/JpAddress-BCwWQ0Ul.js +271 -0
- package/dist/{LI-DA06W10W.js → LI-L0ZAALRT.js} +2 -2
- package/dist/{LT-DuU6E2Ct.js → LT-Ao2uagV9.js} +2 -2
- package/dist/{LU-BQHhNpDy.js → LU-B7LRUuc6.js} +2 -2
- package/dist/{LV-DN7wckbP.js → LV-DZeGjA2G.js} +2 -2
- package/dist/{LegalRepresentativeDetailsPage-D3Ld1xg7.js → LegalRepresentativeDetailsPage-CDURNY_v.js} +6 -7
- package/dist/ListItem-BhUSZdS5.js +69 -0
- package/dist/{MC-DtSWC4jS.js → MC-EDVNGWhy.js} +2 -2
- package/dist/{MT-DeDMQ1f_.js → MT-B9my7RlP.js} +2 -2
- package/dist/ManageIndividualComponent-wYIuZdQ8.js +46 -0
- package/dist/ManageTermsOfServiceComponent-6RBHbbsn.js +52 -0
- package/dist/{ManageTransferInstrumentComponent-D8e5YRiK.js → ManageTransferInstrumentComponent-BDyWbySW.js} +19 -26
- package/dist/{MaybeModal-D6lc_yUc.js → MaybeModal-CG0BAO68.js} +15 -4
- package/dist/{Modal-ltKHtBfL.js → Modal-CJ_hgcGb.js} +19 -6
- package/dist/{NL-aVL0NAp-.js → NL-VXAFOhV5.js} +2 -2
- package/dist/{NO-D7EOiQA1.js → NO-Cx1VSh2W.js} +3 -3
- package/dist/OnboardingDropinComponent-D3dYF_4W.js +7617 -0
- package/dist/{PL-Bg7axKQA.js → PL-BZW1hGvD.js} +3 -3
- package/dist/{PT-hB1HnBM2.js → PT-OpU4MU3L.js} +2 -2
- package/dist/{PayoutDetailsDropin-Ba4z1H8Y.js → PayoutDetailsDropin-DxALk48X.js} +1530 -384
- package/dist/ProgressBar-B7gTQncy.js +47 -0
- package/dist/{RO-BLlC4CKq.js → RO-Cz6Sh0ls.js} +2 -2
- package/dist/{Review-QGTwsuVG.js → Review-C_JnI94L.js} +9 -8
- package/dist/RootBusinessDetailsPage-BE3Uck1r.js +46 -0
- package/dist/RootBusinessLinesPage-DknXuZgi.js +1484 -0
- package/dist/RootIndividualDetailsPage-BIj988Sh.js +71 -0
- package/dist/{SE-q25Qt85B.js → SE-B5K-FkQd.js} +3 -3
- package/dist/{SI-BzA-ozn6.js → SI-BOGTNLPa.js} +2 -2
- package/dist/{SK-DOTdLJPw.js → SK-BOVrp_Av.js} +2 -2
- package/dist/{SM-B4BIgmhk.js → SM-meowwILA.js} +2 -2
- package/dist/{SignPCIComponent-BvOwbwCX.js → SignPCIComponent-BjVEKTlw.js} +29 -19
- package/dist/{SingpassSelection-CfMjudRn.js → SingpassSelection-Bkbz_bGo.js} +10 -10
- package/dist/SoleProprietorshipPage-DSOEsSfJ.js +46 -0
- package/dist/{SourceOfFundsPage-BOFtbQbF.js → SourceOfFundsPage-cWwthA_A.js} +238 -956
- package/dist/{MaskedInput-Cr4BEARC.js → Spacer-D4I0f08n.js} +641 -24
- package/dist/{StepProgressIndicator-D8I0VtoT.js → StepProgressIndicator-FNAEisRr.js} +2 -2
- package/dist/{StoreProvider-D4cRWOo4.js → StoreProvider-jtUYKLRz.js} +1195 -560
- package/dist/Summary-COehg8IT.js +204 -0
- package/dist/{TaxReportingDropin-CDqErRkl.js → TaxReportingDropin-BBkhMcPn.js} +76 -74
- package/dist/TrustDetailsPage-50i4_lFA.js +2149 -0
- package/dist/TrustMemberCompanyPage-v2Md1srF.js +57 -0
- package/dist/TrustMemberIndividualPage-Bn6TXkhN.js +66 -0
- package/dist/TrustMemberRoleAndTypePage-C_NPNe6_.js +985 -0
- package/dist/TrustMembersOverview-FcSsQZ3Z.js +438 -0
- package/dist/{UnincorporatedPartnershipIndividualPage-Dx1qdgZL.js → UnincorporatedPartnershipIndividualPage-zsyk9RTz.js} +6 -7
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-B89QmXFf.js → UnincorporatedPartnershipMemberCompanyPage-FP75ZgOg.js} +7 -11
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-n6SndOAj.js +281 -0
- package/dist/UnincorporatedPartnershipMembersOverview-BbW2q9EI.js +172 -0
- package/dist/{VA-bPXdCnwD.js → VA-DXsYTCoh.js} +2 -2
- package/dist/VerificationErrorAlert-B7jRGdgn.js +79 -0
- package/dist/{ViewVerificationStatusComponent-2jYPePEI.js → ViewVerificationStatusComponent-CuUmC319.js} +16 -13
- package/dist/adyen-business-financing.js +10 -7
- package/dist/adyen-individual-configuration.js +5 -6
- package/dist/adyen-individual-status.js +5 -6
- package/dist/adyen-kyc-components.js +38 -33
- package/dist/adyen-onboarding.js +4 -5
- package/dist/adyen-terms-of-service-management.js +5 -6
- package/dist/adyen-terms-of-service-status.js +5 -6
- package/dist/adyen-transfer-instrument-configuration.js +5 -6
- package/dist/adyen-transfer-instrument-management.js +5 -6
- package/dist/adyen-verification-status.js +5 -6
- package/dist/{arrow-right-D_mdkZmE.js → arrow-right-KxA3SvQj.js} +2 -2
- package/dist/{bag-DpxmyXfR.js → bag-BPumznWh.js} +2 -2
- package/dist/{bank-gyBvaSp4.js → bank-D6FiNBhs.js} +2 -2
- package/dist/bin-Bz6KOIeE.js +18 -0
- package/dist/capital-GVQ3svwN.js +17 -0
- package/dist/{cash-stack-Ds76Du8m.js → cash-stack-D9AoDDwt.js} +3 -3
- package/dist/{certificate-D6xjhThs.js → certificate-CdEWgHQf.js} +3 -3
- package/dist/{checkmark-tfEAu7lj.js → checkmark-Q7x6tGhy.js} +2 -2
- package/dist/checkmark-circle-fill-CsvN5_PL.js +17 -0
- package/dist/{checkmark-circle-nACBJ24q.js → checkmark-circle-x7dzbp3I.js} +3 -3
- package/dist/{checkmark-small-63w5fAxg.js → checkmark-small-D35myntq.js} +2 -2
- package/dist/{chevron-down-CkQS-knD.js → chevron-down-C2iDorpW.js} +2 -2
- package/dist/{chevron-left-CBCMdMx6.js → chevron-left-ztPO84q-.js} +2 -2
- package/dist/{chevron-right-dIVWvPJu.js → chevron-right-C_JN0oDt.js} +2 -2
- package/dist/{chevron-up-D93IGU9z.js → chevron-up-CgG8n25g.js} +2 -2
- 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-DI03_xrF.js → contract-BTa4HltT.js} +2 -2
- package/dist/{cross-o4n5KXxG.js → cross-Cn09MtQ_.js} +2 -2
- package/dist/cross-circle-fill-maan7Z5S.js +17 -0
- package/dist/{cross-circle-fill-small-CHMDaA3q.js → cross-circle-fill-small-DCz52AuN.js} +2 -2
- package/dist/da-DK-BlU1EczG.js +30 -0
- package/dist/da-DK-DCJhV2qS.js +32 -0
- package/dist/da-DK-DEdQ-QPp.js +13 -0
- package/dist/da-DK-DWA8uOd8.js +24 -0
- package/dist/{da-DK-BoQic3Gy.js → da-DK-DYpfNZdP.js} +5 -1
- package/dist/da-DK-DZwlENGe.js +13 -0
- package/dist/da-DK-Dc0QYG8m.js +68 -0
- package/dist/da-DK-DqkN5oIu.js +13 -0
- package/dist/da-DK-DvZ431fC.js +13 -0
- package/dist/{da-DK-B45X2VaJ.js → da-DK-JHZnsI59.js} +24 -4
- package/dist/da-DK-gnPgzwrG.js +27 -0
- package/dist/da-DK-h8DYQ_Iq.js +13 -0
- package/dist/da-DK-jK7c9UL0.js +57 -0
- package/dist/de-DE-0uSzhWg5.js +13 -0
- package/dist/{de-DE-Dwagawx1.js → de-DE-BXt1K0Tr.js} +5 -1
- package/dist/de-DE-COuUdtao.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-DrSSblam.js +13 -0
- package/dist/de-DE-DwOQKCuU.js +32 -0
- package/dist/de-DE-Dz2OsS1F.js +68 -0
- package/dist/de-DE-LQE_LFFL.js +13 -0
- package/dist/{de-DE-CWvgMDqU.js → de-DE-VGGEkxUT.js} +24 -4
- package/dist/de-DE-s0B-XZyp.js +30 -0
- package/dist/de-DE-wmerDL2e.js +57 -0
- package/dist/debouncedInputEvent-HhImBs4O.js +109 -0
- package/dist/{form-rules-DhbF2mY4.js → debugStore-BvbyN1Oi.js} +4 -3
- package/dist/{document-1-DsCi9vmX.js → document-1-C08ut-Dt.js} +2 -2
- package/dist/document-person-vxlA6C5f.js +20 -0
- package/dist/documentUtils-DIcRD9lR.js +218 -0
- package/dist/download-Drhk9k1f.js +17 -0
- package/dist/{dropinUtils-CXnvPFZN.js → dropinUtils-BK1u6OTG.js} +32 -24
- package/dist/edit-1-CFoDTMvQ.js +14 -0
- package/dist/en-US-AgtwE4Fl.js +63 -0
- package/dist/en-US-B96dpVon.js +27 -0
- package/dist/en-US-BQZhzROc.js +32 -0
- package/dist/en-US-CozY33On.js +13 -0
- package/dist/{en-US-DIdQJky-.js → en-US-CzEL6t1W.js} +24 -4
- package/dist/en-US-D-B35AoN.js +68 -0
- package/dist/en-US-D2yrwtzT.js +24 -0
- package/dist/{en-US-BbAzROHT.js → en-US-Dg505Oh3.js} +2 -1
- package/dist/en-US-d4WBvUW7.js +118 -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-B7dt4cn7.js +13 -0
- package/dist/es-ES-BI_jdT67.js +68 -0
- package/dist/es-ES-BOoPqnPI.js +32 -0
- package/dist/{es-ES-Bsoco8Fj.js → es-ES-BhNhIf08.js} +5 -1
- package/dist/{es-ES-DKCCgVF8.js → es-ES-Bn9_0wK0.js} +24 -4
- package/dist/es-ES-CXDJLKAI.js +27 -0
- package/dist/es-ES-DF_L5EDd.js +24 -0
- package/dist/es-ES-DNGEW6V_.js +13 -0
- package/dist/es-ES-DdGmXdxO.js +13 -0
- package/dist/es-ES-Qnc0Q6JH.js +57 -0
- package/dist/es-ES-ShWaSuJd.js +13 -0
- package/dist/es-ES-esfwvKwz.js +30 -0
- package/dist/es-ES-yMXcOjDL.js +13 -0
- package/dist/{external-link-BjladU3E.js → external-link-DCMYUMfW.js} +2 -2
- package/dist/fi-FI-CIYa9SyS.js +13 -0
- package/dist/fi-FI-ChApf7lf.js +13 -0
- package/dist/fi-FI-CjB6QC01.js +30 -0
- package/dist/fi-FI-CoI_94Fv.js +13 -0
- package/dist/fi-FI-DH6jpo9K.js +24 -0
- package/dist/fi-FI-Dn2MC8uW.js +57 -0
- package/dist/{fi-FI-Hhku9Lmc.js → fi-FI-PVFqd5Ra.js} +24 -4
- package/dist/fi-FI-REMsyTSr.js +13 -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-xqnQ38yC.js +13 -0
- package/dist/{fi-FI-ClnsYt3L.js → fi-FI-ysUrBilO.js} +5 -1
- package/dist/{fr-FR-CJI0bIig.js → fr-FR-BSvSKazD.js} +5 -1
- 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-Br7OeDIe.js +13 -0
- package/dist/fr-FR-C1XqLftn.js +30 -0
- package/dist/fr-FR-CYZXbwc9.js +68 -0
- package/dist/fr-FR-CiwkAb3E.js +27 -0
- package/dist/fr-FR-CvHWmim-.js +13 -0
- package/dist/fr-FR-Q3urMjbl.js +13 -0
- package/dist/fr-FR-cTKcuHqX.js +32 -0
- package/dist/fr-FR-l5z31r7i.js +13 -0
- package/dist/{fr-FR-BYuKsZIb.js → fr-FR-mJK4hjwD.js} +24 -4
- package/dist/getFieldsWithExistingData-DxCFyXNd.js +22 -0
- package/dist/{getName-BsaU8Hqr.js → getName-BS-pHwl0.js} +2 -2
- package/dist/gift-CQ_DEma7.js +14 -0
- package/dist/{graph-DwYwlplw.js → graph-BJmqglH2.js} +3 -3
- package/dist/{graph-up-DpbCSPbc.js → graph-up-Bq6adtlX.js} +6 -6
- package/dist/{hasDataChanged-CA7cMLCV.js → hasDataChanged-CWdnpJrE.js} +2 -2
- package/dist/headquarter-DNYyuuFq.js +21 -0
- package/dist/{hotel-JX0bjsSA.js → hotel-BuNql78Z.js} +3 -3
- package/dist/{iframeWidget-BPBJSJJt.js → iframeWidget-Uz4rHS0r.js} +4 -4
- package/dist/image-BSihO8lR.js +17 -0
- package/dist/info-filled-SQotHmT9.js +17 -0
- package/dist/info-vHTZWoJ7.js +21 -0
- package/dist/it-IT-B0YGvVgW.js +57 -0
- package/dist/it-IT-BAvmkEF8.js +13 -0
- package/dist/it-IT-BAvsF2TB.js +13 -0
- package/dist/{it-IT-Nl57jui-.js → it-IT-BTWkWSJq.js} +24 -4
- package/dist/it-IT-BeX7-OcD.js +13 -0
- package/dist/it-IT-C_651bEP.js +13 -0
- package/dist/it-IT-C_YDqVNT.js +30 -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-Erh1DIlj.js +68 -0
- package/dist/{it-IT-BeC2Y1F8.js → it-IT-Qfzc8jnW.js} +5 -1
- package/dist/it-IT-vdMlF0Ha.js +13 -0
- package/dist/{localizeDateString-cCOzCBvl.js → localizeDateString-DgSdo3D5.js} +2 -2
- package/dist/location-Q4oKvnkl.js +17 -0
- package/dist/mail-BOdyoVqB.js +14 -0
- package/dist/mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js +56 -0
- package/dist/{mapExistingFile-B1UL2lZR.js → mapExistingFile-CqrlnmFQ.js} +5 -80
- package/dist/mapFinancialReportsToFinancialInformation-ZmhVRj3f.js +67 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-D6HjhjJT.js +63 -0
- package/dist/mapLegalEntityToIndividualOnfidoSchema-COcit7Hx.js +146 -0
- package/dist/{mapTransferInstrumentToPayoutAccount-BdPUh-FT.js → mapTransferInstrumentToPayoutAccount-DfJHF9H8.js} +6 -3
- package/dist/{minus-circle-filled-BGKeHaxJ.js → minus-circle-filled-kC2IUvKz.js} +3 -3
- package/dist/nl-NL-BMUYBqlF.js +57 -0
- package/dist/nl-NL-BwKrj-29.js +13 -0
- package/dist/nl-NL-Bx5p0nXL.js +24 -0
- package/dist/nl-NL-C3YJkSIj.js +13 -0
- package/dist/nl-NL-CM5U8ODq.js +13 -0
- package/dist/{nl-NL-BHkRnVrj.js → nl-NL-CTf7zH4M.js} +24 -4
- package/dist/nl-NL-Cjlmc0Ii.js +32 -0
- package/dist/{nl-NL-Cysslsh2.js → nl-NL-D7gBNWEY.js} +5 -1
- package/dist/nl-NL-DV4NqPVW.js +13 -0
- package/dist/nl-NL-DyeSX0PH.js +30 -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-B6OPS2CA.js +13 -0
- package/dist/no-NO-B9618F4_.js +13 -0
- package/dist/no-NO-BQL_M1pn.js +13 -0
- package/dist/no-NO-Bs3-6MDM.js +24 -0
- package/dist/{no-NO-zSnPtrDi.js → no-NO-C-gCYc9q.js} +5 -1
- package/dist/no-NO-CA1aR6Wh.js +68 -0
- package/dist/no-NO-CY_XHrYd.js +32 -0
- package/dist/no-NO-Crlsj6HG.js +27 -0
- package/dist/no-NO-D4BECLky.js +130 -0
- package/dist/no-NO-DKbWxgF-.js +57 -0
- package/dist/no-NO-DPRsAb_o.js +30 -0
- package/dist/{no-NO-kaAdT9B8.js → no-NO-RfTK9KAV.js} +24 -4
- package/dist/{options-horizontal-nJ9-ButA.js → options-horizontal-CBmbNv7R.js} +4 -4
- package/dist/partner-CPjsrePY.js +18 -0
- package/dist/pay-by-link-plane-BVZndh67.js +22 -0
- package/dist/{payout-iEmHhgQ4.js → payout-ChUEoLjt.js} +6 -6
- 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/{plus-CwLva7fq.js → plus-CWXA5wdX.js} +2 -2
- package/dist/plus-circle-filled-CbC0u2Y1.js +17 -0
- package/dist/process-field-configurations-N1jHgPa8.js +324 -0
- package/dist/pt-BR--kaJvtE6.js +57 -0
- package/dist/pt-BR-AZ3roErF.js +13 -0
- package/dist/pt-BR-BKQRvAfq.js +13 -0
- package/dist/pt-BR-BbFJsIVX.js +55 -0
- package/dist/pt-BR-BfxgHKY4.js +27 -0
- package/dist/pt-BR-C-C4ZJ9x.js +30 -0
- package/dist/pt-BR-C0I_kTQ6.js +13 -0
- package/dist/pt-BR-CBAe0SnK.js +32 -0
- package/dist/pt-BR-DSENwwGu.js +24 -0
- package/dist/pt-BR-NtLaWlnZ.js +68 -0
- package/dist/pt-BR-gh27BC86.js +13 -0
- package/dist/pt-BR-nU_2Wbo5.js +54 -0
- package/dist/pt-BR-ur86nRrK.js +37 -0
- package/dist/pt-BR-zuqB_CBf.js +13 -0
- package/dist/{pt-PT-Xm-pm3mb.js → pt-PT-B4F_5NWi.js} +24 -4
- package/dist/pt-PT-BZ5ZZm6G.js +57 -0
- package/dist/pt-PT-Bf4IV7wp.js +13 -0
- package/dist/pt-PT-CFY1O_K0.js +13 -0
- package/dist/pt-PT-CIo3mlXL.js +24 -0
- package/dist/{pt-PT-CjsyP_OK.js → pt-PT-CVNEcs32.js} +5 -1
- package/dist/pt-PT-D2Xe-OdG.js +13 -0
- package/dist/pt-PT-DSxxVA0f.js +68 -0
- package/dist/pt-PT-DVKtHjIY.js +13 -0
- package/dist/pt-PT-DYihdcJx.js +13 -0
- package/dist/pt-PT-Dm5DRDrd.js +32 -0
- package/dist/pt-PT-LbneTcRx.js +30 -0
- package/dist/pt-PT-TKg5FLat.js +27 -0
- package/dist/recurring-CkL4cCM2.js +17 -0
- package/dist/{reporting-DlRoibD7.js → reporting-DerosUNm.js} +1 -2
- package/dist/resolveEnvironment-DZ77JxLV.js +164 -0
- package/dist/revenue-accelerate-Dp4Ns_5c.js +17 -0
- package/dist/{rules-CkD4bHtQ.js → rules-_v8BprU3.js} +14 -8
- package/dist/save-Fgy7EDid.js +14 -0
- package/dist/search-C4GZ-Rc1.js +17 -0
- package/dist/{show-uL6I-rMo.js → show-yPjPmEf8.js} +3 -3
- package/dist/sl-SI-59OQIZ3f.js +13 -0
- package/dist/sl-SI-8SzKx7XD.js +30 -0
- package/dist/sl-SI-C-C-KJCX.js +27 -0
- package/dist/sl-SI-C0wSbuau.js +13 -0
- package/dist/{sl-SI-Br0UEUPL.js → sl-SI-CUCrzJQv.js} +5 -1
- package/dist/sl-SI-DdjgSySI.js +13 -0
- package/dist/sl-SI-DtdGMD6i.js +57 -0
- package/dist/{solution-payments-DTAuLSWF.js → solution-payments-CNAat9h7.js} +2 -2
- package/dist/store-IuAkDRAp.js +14 -0
- package/dist/style.css +2911 -2181
- package/dist/styles-CLV89_hH.js +2911 -2181
- package/dist/sv-SE-B7cpKp1l.js +30 -0
- package/dist/sv-SE-BHfydid5.js +27 -0
- package/dist/sv-SE-BHkYspm-.js +130 -0
- package/dist/{sv-SE-BtXmvxx4.js → sv-SE-C6uPh9g5.js} +5 -1
- package/dist/sv-SE-CQWBP7n1.js +13 -0
- package/dist/sv-SE-CRBRuE8Z.js +32 -0
- package/dist/sv-SE-CXaMlJCI.js +24 -0
- package/dist/{sv-SE-B3zoXMuH.js → sv-SE-DGpvVvWj.js} +24 -4
- package/dist/sv-SE-DsPdegWB.js +13 -0
- package/dist/sv-SE-DtKjf4Go.js +13 -0
- package/dist/sv-SE-K1QT1cOt.js +68 -0
- package/dist/sv-SE-kR514dO1.js +57 -0
- package/dist/sv-SE-zTiw1bUU.js +13 -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 +21 -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/companySelection/useCompanySelection.d.ts +2 -18
- 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/{pciTemplate/pciTemplate.types.d.ts → pci/pci.types.d.ts} +9 -1
- package/dist/types/api/{pciTemplate → pci}/usePciQuestionnaire.d.ts +1 -1
- package/dist/types/api/{pciTemplate → pci}/usePciQuestionnaireList.d.ts +1 -1
- package/dist/types/api/{pciTemplate → pci}/usePciStatus.d.ts +1 -1
- 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/rules.d.ts +1 -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/AdditionalInformation.d.ts +1 -2
- package/dist/types/components/Business/forms/AdditionalInformation/{VerifiedBusinessCard.d.ts → VerifiedBusinessCard/VerifiedBusinessCard.d.ts} +2 -3
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +6 -7
- package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +1 -4
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +5 -18
- package/dist/types/components/Business/{tasks/BusinessDetailsMultiformDropin → forms/BusinessDetails}/BusinessDetailsMultiform.d.ts +2 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +0 -35
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +0 -21
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +0 -1
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +13 -3
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +0 -11
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +3 -3
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +0 -6
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/ProofOfDirectorDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/ProofOfSignatoryDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/RegistrationDocument/RegistrationDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -5
- package/dist/types/components/Business/forms/TaxDocument/TaxDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -5
- package/dist/types/components/Business/forms/forms.types.d.ts +0 -3
- package/dist/types/components/Business/forms/rules.d.ts +3 -1
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -2
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +16 -10
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +26 -5
- 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 +31 -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/SctaField/SctaField.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/SctaField/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/SctaForm/SctaForm.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/SctaForm/SctaInfoModal.d.ts +3 -0
- package/dist/types/components/BusinessLines/forms/SctaForm/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/rules.d.ts +6 -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 +19 -0
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +40 -0
- package/dist/types/components/BusinessLines/tasks/validate.d.ts +11 -0
- package/dist/types/components/Contract/hooks/useSalesChannels.d.ts +2 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
- 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/Individual/PersonalDetails/types.d.ts +2 -0
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
- 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 +2 -2
- 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/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +0 -2
- 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/IdFieldTypeSelector/countryIdNumberTypes.d.ts +1 -0
- 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/Link/Link.types.d.ts +1 -1
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +1 -2
- package/dist/types/components/ui/atoms/Loader/Loader.d.ts +1 -5
- package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
- 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 +10 -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 -23
- 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/business-financing/AdyenBusinessFinancing.d.ts +1 -0
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +2 -0
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -6
- package/dist/types/hooks/{useAnalytics.d.ts → useAnalytics/useAnalytics.d.ts} +1 -7
- 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/formState.d.ts +2 -0
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -1
- package/dist/types/types/datasets/currency.d.ts +0 -1
- package/dist/types/types/form-rules.d.ts +3 -0
- package/dist/types/types/form.d.ts +0 -2
- 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/{trackNavigation.d.ts → analytics/trackNavigation.d.ts} +1 -1
- package/dist/types/utils/api/documentUtils.d.ts +1 -0
- package/dist/types/utils/customerSupportUtils.d.ts +3 -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/japanSupportUtils.d.ts +2 -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-BnnF5_7m.js +34 -0
- package/dist/{types-BZdZSp82.js → types-D0u3f6aG.js} +27 -4
- package/dist/{types-CAznNNSI.js → types-Dk94b8kx.js} +27 -26
- package/dist/{types-CX7rD7X4.js → types-sYQKhaSL.js} +2 -2
- package/dist/upload-BF65P4KM.js +17 -0
- package/dist/{useAssociatedLegalEntity-DD2ldSE1.js → useAssociatedLegalEntity-00JVCmQ7.js} +2 -2
- package/dist/useCreateLegalEntity-BvvwB9r0.js +31 -0
- package/dist/{useDataset-B8uRm9G9.js → useDataset-8WyOJBhU.js} +102 -2
- package/dist/{useForm-Bikkn7wR.js → useForm-DLxHtZTP.js} +16 -86
- package/dist/useGlobalData-D9dz7GIi.js +68 -0
- package/dist/{useMultiForm-BvLkXMC6.js → useMultiForm--sSlt50X.js} +4 -4
- package/dist/{useOnboardingStatus-CHvOF6oX.js → useOnboardingStatus-91zhqzLd.js} +2 -2
- package/dist/{useScenarios-uUD1GHMT.js → useScenarios-CqKpYbe_.js} +2 -2
- package/dist/{useTermsOfServiceStatus-_0VSQK9K.js → useTermsOfServiceStatus-DLQVpbik.js} +2 -2
- package/dist/{useToastContext-kLS15CCB.js → useToastContext-FI3dwzzs.js} +17 -8
- package/dist/{useUnincorporatedPartnershipMembers-pxytkrwW.js → useUnincorporatedPartnershipMembers-CdQDPlZq.js} +5 -5
- package/dist/useUpdateBusinessLines-BulhyPjH.js +46 -0
- package/dist/useUpdateLegalEntity-Q3Icdeo6.js +39 -0
- package/dist/utils-DQLhii3U.js +774 -0
- package/dist/{utils-BI6oHlaw.js → utils-DV0_GilJ.js} +6 -46
- package/dist/{validate-DGgXfXyg.js → validate-BD3wn-YX.js} +2 -2
- package/dist/validate-H-iE__-w.js +41 -0
- package/dist/{validationError-CpKFQv28.js → validationError-B5aoMbe_.js} +2 -2
- 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 +77 -78
- package/dist/4-people-CCqdlDEw.js +0 -24
- package/dist/BusinessDetailsDropin-Be1nkzWx.js +0 -5088
- package/dist/BusinessFinancingComponent-BiFxtiME.js +0 -45
- package/dist/BusinessFinancingPage-C_3W8tC9.js +0 -40
- package/dist/Card-D0gduObT.js +0 -145
- package/dist/Confirm-DyWhqxmU.js +0 -64
- package/dist/CreateIndividualComponent-9-TP2x1D.js +0 -72
- package/dist/CreateTransferInstrumentComponent-U_HRSoZx.js +0 -67
- package/dist/DecisionMakerDetailsPage-vWtfPycT.js +0 -100
- package/dist/DecisionMakers-2aN_F-vt.js +0 -591
- package/dist/Dropzone-Cp2PTdED.js +0 -218
- package/dist/FormFlow-C95V54gu.js +0 -216
- package/dist/InputDate-DX90XEmr.js +0 -43
- package/dist/InputGroup-WBfGDV5F.js +0 -32
- package/dist/Link-Bn9pt52z.js +0 -35
- package/dist/ManageIndividualComponent-C5Epqe2I.js +0 -47
- package/dist/ManageTermsOfServiceComponent-zcuZm98f.js +0 -47
- package/dist/OnboardingDropinComponent-BgFPF-FG.js +0 -4301
- package/dist/RadioGroup-htJh3Lz5.js +0 -143
- package/dist/RegistrationAddress-DiVxWv-x.js +0 -2334
- package/dist/RootBusinessDetailsPage-DNGDa-xd.js +0 -1870
- package/dist/RootIndividualDetailsPage-DyWuruIM.js +0 -77
- package/dist/SoleProprietorshipPage-CYz0fHew.js +0 -50
- package/dist/Spacer-BK3jDget.js +0 -18
- package/dist/StructuredList-DaepaiVE.js +0 -38
- package/dist/TaskItemStatus-lQuiqU1e.js +0 -125
- package/dist/TaskStatusIndicator-8ug09mhu.js +0 -69
- package/dist/TaxInformationField-BfyN5nzh.js +0 -3062
- package/dist/TileGroup-CTesI0Vt.js +0 -174
- package/dist/TrustDetailsPage-CjG99ca_.js +0 -1205
- package/dist/TrustMemberCompanyPage-CiA3B0Ro.js +0 -60
- package/dist/TrustMemberIndividualPage-J1-6IFlZ.js +0 -66
- package/dist/analytics-Cg99WKif.js +0 -61
- package/dist/bafinUtils-Sy6B6Lec.js +0 -457
- package/dist/bin-Bgdj6KzC.js +0 -18
- package/dist/capital-CF9_Ev99.js +0 -17
- package/dist/checkmark-circle-fill-BhvuqTl9.js +0 -17
- package/dist/circle-Dgfa7GUy.js +0 -17
- package/dist/coins-CFu331p2.js +0 -17
- package/dist/commonValidators-cnXbus2a.js +0 -24
- package/dist/currency-BGwQyxBo.js +0 -36
- package/dist/da-DK-BJ7aTPir.js +0 -13
- package/dist/da-DK-BTpZzEgA.js +0 -15
- 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-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-JI-7mvxy.js +0 -23
- package/dist/de-DE-wp5-H-ov.js +0 -30
- package/dist/document-person-DBlLin9u.js +0 -20
- package/dist/download-B8_c4ARV.js +0 -17
- 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-CAm3meB1.js +0 -30
- package/dist/en-US-CQ3angjM.js +0 -22
- package/dist/en-US-DHq7VYFs.js +0 -23
- package/dist/es-ES-BsQpwaPN.js +0 -58
- 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-DOVPTeyf.js +0 -23
- package/dist/es-ES-Ds3-DtqZ.js +0 -30
- package/dist/es-ES-WWftn3JX.js +0 -35
- package/dist/fi-FI-BJ9RzrL3.js +0 -58
- package/dist/fi-FI-BNcnKrJ9.js +0 -15
- 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-REYOX46I.js +0 -22
- package/dist/fieldConfigurations-kDKvJ6je.js +0 -458
- package/dist/formatCurrency-CMOSdJMB.js +0 -29
- package/dist/fr-FR-B5543Fe-.js +0 -13
- package/dist/fr-FR-Bn3D6mmY.js +0 -15
- 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/gift-SdNY6AqI.js +0 -14
- package/dist/headquarter-C6AsewcP.js +0 -21
- package/dist/image-eUqBiRX_.js +0 -17
- package/dist/info-Wao3PEQK.js +0 -21
- package/dist/isEmpty-C9y5I8Tl.js +0 -23
- package/dist/it-IT-BV9K87FK.js +0 -58
- 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-eCrTB65E.js +0 -30
- package/dist/keys-BpNgnAsD.js +0 -23
- package/dist/location-YXhcBMDy.js +0 -17
- package/dist/mail-Z_IE_hkw.js +0 -14
- package/dist/mapScriptLocalization-B4Be11Tx.js +0 -72
- package/dist/nl-NL-BHqiO21q.js +0 -15
- 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/partner-COG2_Erh.js +0 -21
- package/dist/pay-by-link-plane-Pv7Babgn.js +0 -22
- package/dist/person-CdGfItMU.js +0 -17
- 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-D2elvnDU.js +0 -15
- package/dist/pt-PT-Dk48OVtf.js +0 -22
- package/dist/pt-PT-N0njcfLO.js +0 -23
- package/dist/pt-PT-_o5xgnxS.js +0 -13
- package/dist/resolveEnvironment-Il1uuuaq.js +0 -84
- package/dist/revenue-accelerate-rtXA-8EE.js +0 -17
- package/dist/save-BofgDbDX.js +0 -14
- package/dist/search-BjMkvQh0.js +0 -17
- package/dist/sl-SI-BB7iVcFI.js +0 -22
- package/dist/sl-SI-BhVTSmhQ.js +0 -30
- 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/store-CkhgQMl0.js +0 -14
- package/dist/sv-SE-66rqYTxi.js +0 -30
- package/dist/sv-SE-BUfESAQK.js +0 -13
- 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-RPPT5Bll.js +0 -472
- package/dist/types/api/pciTemplate/usePciTemplate.d.ts +0 -14
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +0 -9
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +0 -9
- package/dist/types/components/Business/forms/BusinessDetails/BusinessDetails.d.ts +0 -3
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +0 -14
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +0 -4
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +0 -5
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -21
- 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/utils/bankVerification/animation.d.ts +0 -2
- package/dist/upload-XDhHhAHV.js +0 -17
- package/dist/useFormContext-beqGS11A.js +0 -23
- package/dist/utils-B7kcMyYW.js +0 -159
- package/dist/utils-DvAaNu7U.js +0 -29
- package/dist/validate-DxfuzxT4.js +0 -382
- package/dist/validate-Dz7xvgxq.js +0 -605
- 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/Business/tasks/{BusinessDetailsMultiformDropin → BusinessDetailsDropin}/validate.d.ts +0 -0
- /package/dist/types/components/BusinessLines/tasks/{BusinessLinesGettingStarted → BusinessLines}/BusinessLinesGettingStarted.d.ts +0 -0
|
@@ -2,61 +2,40 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2a8427c8-b4d1-479d-8831-6ac40f648137", e._sentryDebugIdIdentifier = "sentry-dbid-2a8427c8-b4d1-479d-8831-6ac40f648137");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { T as TextArea, I as Image, b as useCapabilityProblems, g as getProblemsForEntity } from "./fieldConfigurations-kDKvJ6je.js";
|
|
10
|
+
import { b as useApiContext, $ as useMutation, k as httpPost, j as useQuery, m as httpGet, u as useTranslation, G as Typography, B as Button, V as useI18nContext, W as isEmpty, L as Loader, a3 as Icon, Y as IconButton, P as createLogger, a1 as useQueryClient, c as useLegalEntity, R as ROOT_LE, a2 as useAnalyticsContext, bM as useLegalEntities, a as addResourceBundles, M as EntityTypes, g as getLegalEntityCountry, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-jtUYKLRz.js";
|
|
11
|
+
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
12
|
+
import { t as TextArea, I as Image, i as useCapabilityProblems, j as getProblemsForEntity } from "./Spacer-D4I0f08n.js";
|
|
14
13
|
import { useState, useMemo, useEffect, useCallback, useRef } from "preact/hooks";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { u as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
14
|
+
import { n as normalizedTaskStatusStore, T as useBusinessLines } from "./OnboardingDropinComponent-D3dYF_4W.js";
|
|
15
|
+
import { c as useInvalidateRootLegalEntity, a as useToastContext } from "./useToastContext-FI3dwzzs.js";
|
|
16
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-BvvwB9r0.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-Q3Icdeo6.js";
|
|
18
|
+
import { h as hasDataChanged } from "./hasDataChanged-CWdnpJrE.js";
|
|
19
|
+
import { u as useGlobalDataSlice, c as useStateContext } from "./useGlobalData-D9dz7GIi.js";
|
|
20
|
+
import { g as getPropsFromConfigurations } from "./process-field-configurations-N1jHgPa8.js";
|
|
21
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-BK1u6OTG.js";
|
|
22
|
+
import { F as FormWrapper } from "./FormWrapper-BOrTn1C8.js";
|
|
23
|
+
import { c as createDocumentRequest, d as documentApiUtils } from "./documentUtils-DIcRD9lR.js";
|
|
21
24
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
22
25
|
import { signal } from "@preact/signals";
|
|
23
|
-
import { C as CountryField, E as ErrorPanel, c as createFormUtils,
|
|
24
|
-
import { F as Field,
|
|
25
|
-
import { I as InputDate } from "./
|
|
26
|
-
import {
|
|
27
|
-
import { I as InputText } from "./InputText-
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { M as Modal } from "./Modal-ltKHtBfL.js";
|
|
35
|
-
import { C as Confirm } from "./Confirm-DyWhqxmU.js";
|
|
36
|
-
import { v as validateDateNotInTheFuture } from "./validate-DGgXfXyg.js";
|
|
37
|
-
import { T as TileGroup } from "./TileGroup-CTesI0Vt.js";
|
|
26
|
+
import { C as CountryField, E as ErrorPanel, c as createFormUtils, g as getFormProps, H as Header } from "./CountryField-CzRN1OE8.js";
|
|
27
|
+
import { F as Field, S as Select, u as useForm } from "./useForm-DLxHtZTP.js";
|
|
28
|
+
import { I as InputDate, R as RadioGroup } from "./Address-e41CN3CB.js";
|
|
29
|
+
import { aa as InputGroup, ab as TileGroup, B as isEmpty$1, M as LandingLayout, ac as Dropzone } from "./IndividualOnfido-CmmyKC7J.js";
|
|
30
|
+
import { I as InputText } from "./InputText-BfL9DgWp.js";
|
|
31
|
+
import { a as allowedCurrencies, T as TODAY_DATE, S as SOF_CHARACTERS_LIMIT, b as formatDateForInput, g as getInputErrors, c as formatAmountWithCurrency, d as getAdditionalDataSchemaKeys, s as sofCategoryItemMapper, e as getPageHeadings, h as getServiceTranslationSelectTitle, i as sourceOfFundsForms, j as getSofCardDetails, k as getGettingStartedCardDetails, l as getServiceTranslation, p as parseSOFDocumentDescription, m as getRelevantErrors, n as getUniqueRemediationActions, o as SOF_INVALID_INPUT_ERROR_CODES, q as getServiceTranslationKey, r as getDocumentLists, t as getDocumentRequirements, M as MISSING_DATA_SOF_UPLOAD_CODE, u as parseOriginatorDetails, v as getSourceOfFundsRequiredForms, w as sourceOfFundsRequiredFields, x as getSourceOfFundsPayload, y as parseSofOriginatorPayload, A as ALLOWED_SOF_SERVICES } from "./utils-DQLhii3U.js";
|
|
32
|
+
import { A as Avatar } from "./Avatar-efxn8pKz.js";
|
|
33
|
+
import { a as Alert } from "./Alert-Dk-oZlnx.js";
|
|
34
|
+
import { M as Modal } from "./Modal-CJ_hgcGb.js";
|
|
35
|
+
import { C as Confirm, S as StructuredList } from "./useDataset-8WyOJBhU.js";
|
|
36
|
+
import { v as validateDateNotInTheFuture } from "./validate-BD3wn-YX.js";
|
|
38
37
|
import { lazy } from "preact/compat";
|
|
39
|
-
import {
|
|
40
|
-
import { L as LandingLayout } from "./bafinUtils-Sy6B6Lec.js";
|
|
41
|
-
import { n as normalizedTaskStatusStore } from "./OnboardingDropinComponent-BgFPF-FG.js";
|
|
42
|
-
import { i as isEmpty$1 } from "./isEmpty-C9y5I8Tl.js";
|
|
43
|
-
import { S as StructuredList } from "./StructuredList-DaepaiVE.js";
|
|
44
|
-
import { C as Card } from "./Card-D0gduObT.js";
|
|
45
|
-
import { D as Dropzone } from "./Dropzone-Cp2PTdED.js";
|
|
46
|
-
const getBusinessLines = async (legalEntityId, baseUrl) => {
|
|
47
|
-
return httpGet({
|
|
48
|
-
baseUrl,
|
|
49
|
-
path: `legalEntities/${legalEntityId}/businessLines`
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
const useBusinessLines = (options) => {
|
|
53
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
54
|
-
return useQuery({
|
|
55
|
-
queryKey: ["businessLines"],
|
|
56
|
-
queryFn: () => getBusinessLines(rootLegalEntityId.value, baseUrl.value),
|
|
57
|
-
...options
|
|
58
|
-
});
|
|
59
|
-
};
|
|
38
|
+
import { C as Card } from "./Card-CqXQA0AI.js";
|
|
60
39
|
const updateSourceOfFunds = async (businessLineId, legalEntityId, baseUrl, data) => {
|
|
61
40
|
return httpPost(
|
|
62
41
|
{
|
|
@@ -125,8 +104,6 @@ const sourceOfFundsWrapperLoading = "adyen-kyc-source-of-funds-wrapper-loading";
|
|
|
125
104
|
const sourceOfFundsWrapperHeading = "adyen-kyc-source-of-funds-wrapper-heading";
|
|
126
105
|
const sourceOfFundsWrapperDescription = "adyen-kyc-source-of-funds-wrapper-description";
|
|
127
106
|
const sourceOfFundsGettingStarted = "adyen-kyc-source-of-funds-getting-started";
|
|
128
|
-
const sourceOfFundsGettingStartedHeading = "adyen-kyc-source-of-funds-getting-started-heading";
|
|
129
|
-
const sourceOfFundsGettingStartedBody = "adyen-kyc-source-of-funds-getting-started-body";
|
|
130
107
|
const sourceOfFundsGettingStartedError = "adyen-kyc-source-of-funds-getting-started-error";
|
|
131
108
|
const sourceOfFundsGettingStartedErrorActions = "adyen-kyc-source-of-funds-getting-started-error-actions";
|
|
132
109
|
const sourceOfFundsGettingStartedCards = "adyen-kyc-source-of-funds-getting-started-cards";
|
|
@@ -153,8 +130,6 @@ const styles = {
|
|
|
153
130
|
sourceOfFundsWrapperHeading,
|
|
154
131
|
sourceOfFundsWrapperDescription,
|
|
155
132
|
sourceOfFundsGettingStarted,
|
|
156
|
-
sourceOfFundsGettingStartedHeading,
|
|
157
|
-
sourceOfFundsGettingStartedBody,
|
|
158
133
|
sourceOfFundsGettingStartedError,
|
|
159
134
|
sourceOfFundsGettingStartedErrorActions,
|
|
160
135
|
sourceOfFundsGettingStartedCards,
|
|
@@ -176,707 +151,10 @@ const styles = {
|
|
|
176
151
|
sourceOfFundsUploadListHeading,
|
|
177
152
|
sourceOfFundsModal
|
|
178
153
|
};
|
|
179
|
-
const additionalDataSchemaKeys = [
|
|
180
|
-
"description",
|
|
181
|
-
"dateOfFundsReceived",
|
|
182
|
-
"purpose",
|
|
183
|
-
"relationship",
|
|
184
|
-
"originatorLegalEntityId",
|
|
185
|
-
"amount",
|
|
186
|
-
"financiers",
|
|
187
|
-
"cryptocurrencyExchange",
|
|
188
|
-
"dateOfSourceEvent",
|
|
189
|
-
"website"
|
|
190
|
-
];
|
|
191
|
-
const allowedCurrencies = Object.entries(Currencies).map(([key]) => ({
|
|
192
|
-
name: key,
|
|
193
|
-
id: key
|
|
194
|
-
}));
|
|
195
|
-
const SOF_CHARACTERS_LIMIT = 200;
|
|
196
|
-
const TODAY_DATE = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
197
|
-
const getSchemaForOriginator = (baseSchema, originatorType) => {
|
|
198
|
-
if (originatorType === "organization") {
|
|
199
|
-
return [...baseSchema, "legalName"];
|
|
200
|
-
}
|
|
201
|
-
if (originatorType === "individual") {
|
|
202
|
-
return [...baseSchema, "firstName", "lastName"];
|
|
203
|
-
}
|
|
204
|
-
return baseSchema;
|
|
205
|
-
};
|
|
206
|
-
const getAdditionalDataSchemaKeys = (sourceOfFundsType, originatorType) => {
|
|
207
|
-
switch (sourceOfFundsType) {
|
|
208
|
-
case "business":
|
|
209
|
-
return ["amount", "description"];
|
|
210
|
-
case "donations":
|
|
211
|
-
return getSchemaForOriginator(
|
|
212
|
-
[
|
|
213
|
-
"dateOfFundsReceived",
|
|
214
|
-
"purpose",
|
|
215
|
-
"relationship",
|
|
216
|
-
"originatorLegalEntityId",
|
|
217
|
-
"country",
|
|
218
|
-
"originatorType"
|
|
219
|
-
],
|
|
220
|
-
originatorType
|
|
221
|
-
);
|
|
222
|
-
case "inheritance":
|
|
223
|
-
return getSchemaForOriginator(
|
|
224
|
-
[
|
|
225
|
-
"dateOfFundsReceived",
|
|
226
|
-
"amount",
|
|
227
|
-
"relationship",
|
|
228
|
-
"originatorLegalEntityId",
|
|
229
|
-
"country",
|
|
230
|
-
"originatorType"
|
|
231
|
-
],
|
|
232
|
-
originatorType
|
|
233
|
-
);
|
|
234
|
-
case "thirdPartyFunding":
|
|
235
|
-
return ["financiers"];
|
|
236
|
-
case "cryptocurrencyIncome":
|
|
237
|
-
return ["cryptocurrencyExchange"];
|
|
238
|
-
case "assetSale":
|
|
239
|
-
return ["dateOfSourceEvent", "description", "amount"];
|
|
240
|
-
case "gamblingWinnings":
|
|
241
|
-
return ["dateOfSourceEvent", "website", "amount"];
|
|
242
|
-
default:
|
|
243
|
-
return [];
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
const getServiceTranslation = (i18n, service) => {
|
|
247
|
-
switch (service) {
|
|
248
|
-
case "banking":
|
|
249
|
-
return i18n.get("bankingService");
|
|
250
|
-
case "issuing":
|
|
251
|
-
return i18n.get("issuingService");
|
|
252
|
-
case "paymentProcessing":
|
|
253
|
-
return i18n.get("paymentService");
|
|
254
|
-
default:
|
|
255
|
-
return i18n.get("supportingDocuments");
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
|
-
const getServiceTranslationSelectTitle = (i18n, service) => {
|
|
259
|
-
switch (service) {
|
|
260
|
-
case "banking":
|
|
261
|
-
return i18n.get("bankingServiceSelectTitle");
|
|
262
|
-
case "issuing":
|
|
263
|
-
return i18n.get("issuingServiceSelectTitle");
|
|
264
|
-
case "paymentProcessing":
|
|
265
|
-
return i18n.get("paymentServiceSelectTitle");
|
|
266
|
-
default:
|
|
267
|
-
return i18n.get("supportingDocuments");
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
const getServiceTranslationKey = (service) => {
|
|
271
|
-
switch (service) {
|
|
272
|
-
case "banking":
|
|
273
|
-
return "bankingService";
|
|
274
|
-
case "issuing":
|
|
275
|
-
return "issuingService";
|
|
276
|
-
case "paymentProcessing":
|
|
277
|
-
return "paymentService";
|
|
278
|
-
default:
|
|
279
|
-
return "supportingDocuments";
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
const getGettingStartedCardDetails = (sourceOfFundsType, i18n, data) => {
|
|
283
|
-
const details = [];
|
|
284
|
-
sourceOfFundsType?.forEach((type) => {
|
|
285
|
-
switch (type) {
|
|
286
|
-
case "amount":
|
|
287
|
-
details.push({
|
|
288
|
-
term: i18n.get("amount"),
|
|
289
|
-
details: data?.amount?.currency && data?.amount?.value ? formatAmountWithCurrency(data.amount.value, data.amount.currency) : ""
|
|
290
|
-
});
|
|
291
|
-
break;
|
|
292
|
-
case "description":
|
|
293
|
-
details.push({
|
|
294
|
-
term: i18n.get("description"),
|
|
295
|
-
details: data?.description || ""
|
|
296
|
-
});
|
|
297
|
-
break;
|
|
298
|
-
case "dateOfFundsReceived":
|
|
299
|
-
details.push({
|
|
300
|
-
term: i18n.get("date"),
|
|
301
|
-
details: localizeDateString(data?.dateOfFundsReceived || "", i18n.locale)
|
|
302
|
-
});
|
|
303
|
-
break;
|
|
304
|
-
case "purpose":
|
|
305
|
-
details.push({
|
|
306
|
-
term: i18n.get("reason"),
|
|
307
|
-
details: data?.purpose || ""
|
|
308
|
-
});
|
|
309
|
-
break;
|
|
310
|
-
case "relationship":
|
|
311
|
-
details.push({ term: i18n.get("relationship"), details: data?.relationship || "" });
|
|
312
|
-
break;
|
|
313
|
-
case "originatorLegalEntityId":
|
|
314
|
-
details.push({
|
|
315
|
-
term: i18n.get("benefactorDetails"),
|
|
316
|
-
details: [
|
|
317
|
-
data?.legalName ? `${data?.legalName}` : `${data?.firstName} ${data?.lastName}`,
|
|
318
|
-
/* @__PURE__ */ jsx(Typography, { color: "secondary", children: data?.country || "" }, "location")
|
|
319
|
-
]
|
|
320
|
-
});
|
|
321
|
-
break;
|
|
322
|
-
case "financiers":
|
|
323
|
-
data?.financiers?.map((financier) => {
|
|
324
|
-
return details.push({
|
|
325
|
-
term: i18n.get("investor"),
|
|
326
|
-
details: [
|
|
327
|
-
`${financier?.firstName} ${financier?.lastName}`,
|
|
328
|
-
/* @__PURE__ */ jsx(Typography, { color: "secondary", children: financier?.location || "" }, "location"),
|
|
329
|
-
/* @__PURE__ */ jsx(Typography, { color: "secondary", children: financier?.amount?.currency && financier?.amount?.value ? formatAmountWithCurrency(
|
|
330
|
-
financier.amount.value,
|
|
331
|
-
financier.amount.currency
|
|
332
|
-
) || "" : "" }, "value")
|
|
333
|
-
]
|
|
334
|
-
});
|
|
335
|
-
});
|
|
336
|
-
break;
|
|
337
|
-
case "cryptocurrencyExchange":
|
|
338
|
-
details.push({
|
|
339
|
-
term: i18n.get("cryptocurrencyExchange"),
|
|
340
|
-
details: data?.cryptocurrencyExchange || ""
|
|
341
|
-
});
|
|
342
|
-
break;
|
|
343
|
-
case "dateOfSourceEvent":
|
|
344
|
-
details.push({
|
|
345
|
-
term: i18n.get("dateOfSourceEvent"),
|
|
346
|
-
details: localizeDateString(data?.dateOfSourceEvent || "", i18n.locale)
|
|
347
|
-
});
|
|
348
|
-
break;
|
|
349
|
-
case "website":
|
|
350
|
-
details.push({
|
|
351
|
-
term: i18n.get("website"),
|
|
352
|
-
details: data?.website || ""
|
|
353
|
-
});
|
|
354
|
-
break;
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
|
-
return details;
|
|
358
|
-
};
|
|
359
|
-
const sourceOfFundsForms = {
|
|
360
|
-
sourceOfFundsType: {
|
|
361
|
-
formId: "sourceOfFundsType",
|
|
362
|
-
formName: "selectASourceOfFunding",
|
|
363
|
-
fields: ["type"]
|
|
364
|
-
},
|
|
365
|
-
additionalData: {
|
|
366
|
-
formId: "additionalData",
|
|
367
|
-
formName: "tellUsMoreAboutThisSource",
|
|
368
|
-
fields: [...additionalDataSchemaKeys]
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
const sourceOfFundsRequiredFields = {
|
|
372
|
-
sourceOfFundsType: sourceOfFundsForms.sourceOfFundsType.fields,
|
|
373
|
-
additionalData: sourceOfFundsForms.additionalData.fields
|
|
374
|
-
};
|
|
375
|
-
const typesRequiringAdditionalData = [
|
|
376
|
-
"business",
|
|
377
|
-
"donations",
|
|
378
|
-
"inheritance",
|
|
379
|
-
"thirdPartyFunding",
|
|
380
|
-
"cryptocurrencyIncome",
|
|
381
|
-
"assetSale",
|
|
382
|
-
"gamblingWinnings"
|
|
383
|
-
];
|
|
384
|
-
const getSourceOfFundsRequiredForms = (data) => {
|
|
385
|
-
return Object.fromEntries(
|
|
386
|
-
Object.entries(sourceOfFundsForms).filter(([form]) => {
|
|
387
|
-
if (!data?.type || !typesRequiringAdditionalData.includes(data?.type))
|
|
388
|
-
return form !== sourceOfFundsForms.additionalData.formId;
|
|
389
|
-
return form;
|
|
390
|
-
})
|
|
391
|
-
);
|
|
392
|
-
};
|
|
393
|
-
const getInputErrors = ({
|
|
394
|
-
formErrors,
|
|
395
|
-
data,
|
|
396
|
-
key,
|
|
397
|
-
value
|
|
398
|
-
}) => {
|
|
399
|
-
const isEmpty2 = value === "" || value === null || value === void 0;
|
|
400
|
-
let errors = { ...formErrors };
|
|
401
|
-
if (isEmpty2) {
|
|
402
|
-
errors = { ...formErrors, [key]: "fieldIsRequired" };
|
|
403
|
-
} else {
|
|
404
|
-
errors = { ...formErrors, [key]: void 0 };
|
|
405
|
-
}
|
|
406
|
-
if (["amount", "currency"].includes(key)) {
|
|
407
|
-
if (data?.amount?.value && data?.amount?.currency) {
|
|
408
|
-
errors = { ...formErrors, amount: void 0 };
|
|
409
|
-
}
|
|
410
|
-
if (!data?.amount?.currency) {
|
|
411
|
-
errors = { ...formErrors, amount: "currencyIsRequired" };
|
|
412
|
-
}
|
|
413
|
-
if (!data?.amount?.value) {
|
|
414
|
-
errors = { ...formErrors, amount: "amountIsRequired" };
|
|
415
|
-
} else if (isNaN(data?.amount.value)) {
|
|
416
|
-
errors = { ...formErrors, amount: "pleaseEnterAValidAmount" };
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
return errors;
|
|
420
|
-
};
|
|
421
|
-
const getPageHeadings = (type) => {
|
|
422
|
-
switch (type) {
|
|
423
|
-
case "cryptocurrencyIncome":
|
|
424
|
-
return {
|
|
425
|
-
heading: "cryptocurrencyProceedDetails",
|
|
426
|
-
description: "tellUsMoreAboutTheCryptocurrency"
|
|
427
|
-
};
|
|
428
|
-
case "assetSale":
|
|
429
|
-
return {
|
|
430
|
-
heading: "propertySaleDetails",
|
|
431
|
-
description: "tellUsMoreAboutTheProperty"
|
|
432
|
-
};
|
|
433
|
-
case "gamblingWinnings":
|
|
434
|
-
return {
|
|
435
|
-
heading: "gamblingProceedDetails",
|
|
436
|
-
description: "tellUsMoreAboutTheGamblingProceeds"
|
|
437
|
-
};
|
|
438
|
-
case "business":
|
|
439
|
-
return {
|
|
440
|
-
heading: "businessEarningDetails",
|
|
441
|
-
description: "tellUsMoreAboutThePreviousBusinessEarnings"
|
|
442
|
-
};
|
|
443
|
-
case "thirdPartyFunding":
|
|
444
|
-
return {
|
|
445
|
-
heading: "thirdPartyInvestmentDetails",
|
|
446
|
-
description: "tellUsMoreAboutTheInvestors"
|
|
447
|
-
};
|
|
448
|
-
case "inheritance":
|
|
449
|
-
return {
|
|
450
|
-
heading: "inheritanceDetails",
|
|
451
|
-
description: "tellUsMoreAboutTheInheritanceProceeds"
|
|
452
|
-
};
|
|
453
|
-
case "donations":
|
|
454
|
-
return {
|
|
455
|
-
heading: "giftOrDonationDetails",
|
|
456
|
-
description: "tellUsMoreAboutTheGiftOrDonationProceeds"
|
|
457
|
-
};
|
|
458
|
-
default:
|
|
459
|
-
return {
|
|
460
|
-
heading: "tellUsMoreAboutThisSource"
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
|
-
const getDocumentRequirements = {
|
|
465
|
-
loanAgreement: [
|
|
466
|
-
"yourBusinessName",
|
|
467
|
-
"lendersNameAndAddress",
|
|
468
|
-
"principalAmount",
|
|
469
|
-
"loanDate",
|
|
470
|
-
"purposeOfLoan"
|
|
471
|
-
],
|
|
472
|
-
loanStatement: [
|
|
473
|
-
"yourBusinessName",
|
|
474
|
-
"lendersNameAndAddress",
|
|
475
|
-
"principalAmount",
|
|
476
|
-
"loanDate",
|
|
477
|
-
"purposeOfLoan"
|
|
478
|
-
],
|
|
479
|
-
proofOfWalletOwnership: [
|
|
480
|
-
"yourBusinessName",
|
|
481
|
-
"nameOfTheCryptocurrencyExchange",
|
|
482
|
-
"nameOfTheCoins",
|
|
483
|
-
"issueDateWithinTheLast12Months"
|
|
484
|
-
],
|
|
485
|
-
transactionStatement: [
|
|
486
|
-
"showsYourBusinessName",
|
|
487
|
-
"showsTheNameOfTheCryptocurrencyExchange",
|
|
488
|
-
"showsTheNameOfTheCoins",
|
|
489
|
-
"issueDateWithinTheLast12Months"
|
|
490
|
-
],
|
|
491
|
-
taxFiling: [
|
|
492
|
-
"showsYourBusinessName",
|
|
493
|
-
"showsTheNameOfTheCryptocurrencyExchange",
|
|
494
|
-
"showsTheNameOfTheCoins",
|
|
495
|
-
"issueDateWithinTheLast12Months"
|
|
496
|
-
],
|
|
497
|
-
proofOfWinnings: ["winningProceedAmount", "dateOfWinning", "nameOfCasinoLottery"],
|
|
498
|
-
winReport: ["winningProceedAmount", "dateOfWinning", "nameOfCasinoLottery"],
|
|
499
|
-
winLossStatement: ["winningProceedAmount", "dateOfWinning", "nameOfCasinoLottery"],
|
|
500
|
-
taxDeclaration: ["winningProceedAmount", "issuedWithinTheLast12Months"],
|
|
501
|
-
annualStatements: [
|
|
502
|
-
"yourBusinessName",
|
|
503
|
-
"proofOfAnnualTurnoverAmount",
|
|
504
|
-
"issueDateWithinTheLast12Months"
|
|
505
|
-
],
|
|
506
|
-
latestTaxFiling: [
|
|
507
|
-
"yourBusinessName",
|
|
508
|
-
"proofOfAnnualTurnoverAmount",
|
|
509
|
-
"issueDateWithinTheLast12Months"
|
|
510
|
-
],
|
|
511
|
-
letterFromAccountant: [
|
|
512
|
-
"yourBusinessName",
|
|
513
|
-
"proofOfAnnualTurnoverAmount",
|
|
514
|
-
"signatureAndDateWithinTheLast12Months"
|
|
515
|
-
],
|
|
516
|
-
recentInvoices: ["yourBusinessName", "invoicesFromThe3MostRecentMonths"],
|
|
517
|
-
bankStatements: [
|
|
518
|
-
"yourBusinessName",
|
|
519
|
-
"issueDate",
|
|
520
|
-
"banksLogoAndName",
|
|
521
|
-
"allStatementsFrom3MostRecentMonths"
|
|
522
|
-
],
|
|
523
|
-
payslips: ["employersName", "issueDate", "banksLogoAndName", "allPayslipsFrom3MostRecentMonths"],
|
|
524
|
-
contractSpecifyingDividends: [
|
|
525
|
-
"theBusinessName",
|
|
526
|
-
"termLengthAndDividendYield",
|
|
527
|
-
"namesOfInvolvedParties"
|
|
528
|
-
],
|
|
529
|
-
latestTaxReturn: ["theBusinessName", "reportedDividendAmount"],
|
|
530
|
-
investmentCertificate: ["theBusinessName", "termLengthAndDividendYield"],
|
|
531
|
-
brokerStatements: [
|
|
532
|
-
"theBrokerageName",
|
|
533
|
-
"dividendAmount",
|
|
534
|
-
"issueDateWithinTheLast3Months",
|
|
535
|
-
"namesOfInvolvedParties"
|
|
536
|
-
],
|
|
537
|
-
investorContract: [
|
|
538
|
-
"yourBusinessName",
|
|
539
|
-
"nameAddressSignatureOfAllInvestors",
|
|
540
|
-
"investmentAmount",
|
|
541
|
-
"fundDepositDate"
|
|
542
|
-
],
|
|
543
|
-
investorMemo: [
|
|
544
|
-
"yourBusinessName",
|
|
545
|
-
"nameAddressSignatureOfAllInvestors",
|
|
546
|
-
"investmentAmount",
|
|
547
|
-
"fundDepositDate"
|
|
548
|
-
],
|
|
549
|
-
notarizedStatement: [
|
|
550
|
-
"yourBusinessName",
|
|
551
|
-
"nameAddressSignatureOfAllInvestors",
|
|
552
|
-
"investmentAmount",
|
|
553
|
-
"fundDepositDate"
|
|
554
|
-
],
|
|
555
|
-
partnerShipAgreement: [
|
|
556
|
-
"yourBusinessName",
|
|
557
|
-
"nameAddressSignatureOfAllInvestors",
|
|
558
|
-
"investmentAmount",
|
|
559
|
-
"fundDepositDate"
|
|
560
|
-
],
|
|
561
|
-
proofOfOwnership: [
|
|
562
|
-
"descriptionOfProperty",
|
|
563
|
-
"netProceedAmount",
|
|
564
|
-
"fundDepositDate",
|
|
565
|
-
"propertyAddress"
|
|
566
|
-
],
|
|
567
|
-
letterFromAttorney: [
|
|
568
|
-
"descriptionOfProperty",
|
|
569
|
-
"netProceedAmount",
|
|
570
|
-
"fundDepositDate",
|
|
571
|
-
"propertyAddress"
|
|
572
|
-
],
|
|
573
|
-
saleContract: ["descriptionOfProperty", "netProceedAmount", "fundDepositDate", "propertyAddress"],
|
|
574
|
-
taxDeclarationProperty: [
|
|
575
|
-
"descriptionOfProperty",
|
|
576
|
-
"netProceedAmount",
|
|
577
|
-
"fundDepositDate",
|
|
578
|
-
"propertyAddress"
|
|
579
|
-
],
|
|
580
|
-
titleDeed: ["descriptionOfProperty", "netProceedAmount", "fundDepositDate", "propertyAddress"],
|
|
581
|
-
rentalAgreementOrLease: ["namesOfLandlordAndTenant", "propertyAddress", "rentAmount"],
|
|
582
|
-
proofOfOwnershipRent: ["yourName", "propertyAddress"],
|
|
583
|
-
giftOrDonationAgreement: ["donorsName", "fundTransferDate", "fundDepositAmount"],
|
|
584
|
-
royaltyAgreement: ["descriptionOfIntellectualProperty", "royaltyAmount", "agreementPeriod"],
|
|
585
|
-
taxDocuments: ["royaltyAmount", "provideMostRecentYearAvailable"],
|
|
586
|
-
certificateOfInheritance: [
|
|
587
|
-
"decedentsName",
|
|
588
|
-
"inheritanceAmount",
|
|
589
|
-
"fundDepositDate",
|
|
590
|
-
"estateAttorneysName"
|
|
591
|
-
],
|
|
592
|
-
grantOfProbate: ["decedentsName", "inheritanceAmount", "fundDepositDate", "estateAttorneysName"],
|
|
593
|
-
letterFromAttorneyOrNotary: [
|
|
594
|
-
"decedentsName",
|
|
595
|
-
"inheritanceAmount",
|
|
596
|
-
"fundDepositDate",
|
|
597
|
-
"estateAttorneysName"
|
|
598
|
-
],
|
|
599
|
-
signedCopyOfTheWill: [
|
|
600
|
-
"decedentsName",
|
|
601
|
-
"inheritanceAmount",
|
|
602
|
-
"fundDepositDate",
|
|
603
|
-
"estateAttorneysName"
|
|
604
|
-
],
|
|
605
|
-
pensionSlip: ["yourFullName", "previousEmployersName", "pensionPaymentAmount"],
|
|
606
|
-
letterFromPreviousEmployer: [
|
|
607
|
-
"yourFullName",
|
|
608
|
-
"previousEmployersName",
|
|
609
|
-
"pensionPaymentAmountOrTotalValue"
|
|
610
|
-
],
|
|
611
|
-
pensionStatement: ["yourFullName", "previousEmployersName", "pensionPaymentAmountOrTotalValue"],
|
|
612
|
-
courtOrder: ["yourFullName", "totalSettlementAmount", "fundDepositDate"],
|
|
613
|
-
letterFromAttorneyInsurance: ["yourFullName", "totalSettlementAmount", "fundDepositDate"],
|
|
614
|
-
letterFromInsurer: ["yourFullName", "totalSettlementAmount", "fundDepositDate"],
|
|
615
|
-
confirmationOfGrantOrSubsidy: [
|
|
616
|
-
"benefactorsName",
|
|
617
|
-
"subsidyOrGrantAmount",
|
|
618
|
-
"timePeriodIfApplicable"
|
|
619
|
-
]
|
|
620
|
-
};
|
|
621
|
-
const getDocumentLists = (sourceOfFundsType) => {
|
|
622
|
-
switch (sourceOfFundsType) {
|
|
623
|
-
case "loans":
|
|
624
|
-
return ["loanAgreement", "loanStatement"];
|
|
625
|
-
case "gamblingWinnings":
|
|
626
|
-
return ["proofOfWinnings", "winReport", "winLossStatement", "taxDeclaration"];
|
|
627
|
-
case "cryptocurrencyIncome":
|
|
628
|
-
return ["proofOfWalletOwnership", "transactionStatement", "taxFiling"];
|
|
629
|
-
case "business":
|
|
630
|
-
return ["annualStatements", "latestTaxFiling", "letterFromAccountant", "recentInvoices"];
|
|
631
|
-
case "employment":
|
|
632
|
-
return ["bankStatements", "payslips"];
|
|
633
|
-
case "dividendIncome":
|
|
634
|
-
return [
|
|
635
|
-
"contractSpecifyingDividends",
|
|
636
|
-
"latestTaxReturn",
|
|
637
|
-
"investmentCertificate",
|
|
638
|
-
"brokerStatements"
|
|
639
|
-
];
|
|
640
|
-
case "thirdPartyFunding":
|
|
641
|
-
return ["investorContract", "investorMemo", "notarizedStatement", "partnerShipAgreement"];
|
|
642
|
-
case "assetSale":
|
|
643
|
-
return [
|
|
644
|
-
"proofOfOwnership",
|
|
645
|
-
"letterFromAttorney",
|
|
646
|
-
"saleContract",
|
|
647
|
-
"taxDeclarationProperty",
|
|
648
|
-
"titleDeed"
|
|
649
|
-
];
|
|
650
|
-
case "rentalIncome":
|
|
651
|
-
return ["rentalAgreementOrLease", "proofOfOwnershipRent"];
|
|
652
|
-
case "donations":
|
|
653
|
-
return ["giftOrDonationAgreement"];
|
|
654
|
-
case "royaltyIncome":
|
|
655
|
-
return ["royaltyAgreement", "taxDocuments"];
|
|
656
|
-
case "inheritance":
|
|
657
|
-
return [
|
|
658
|
-
"certificateOfInheritance",
|
|
659
|
-
"grantOfProbate",
|
|
660
|
-
"letterFromAttorneyOrNotary",
|
|
661
|
-
"signedCopyOfTheWill"
|
|
662
|
-
];
|
|
663
|
-
case "pensionIncome":
|
|
664
|
-
return ["pensionSlip", "letterFromPreviousEmployer", "pensionStatement"];
|
|
665
|
-
case "insuranceSettlement":
|
|
666
|
-
return ["courtOrder", "letterFromAttorneyInsurance", "letterFromInsurer"];
|
|
667
|
-
case "financialAid":
|
|
668
|
-
return ["confirmationOfGrantOrSubsidy"];
|
|
669
|
-
default:
|
|
670
|
-
return [];
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
|
-
const parseSOFDocumentDescription = (i18n, documentDescription) => {
|
|
674
|
-
if (!documentDescription || documentDescription.trim() === "" || !documentDescription.startsWith("$")) {
|
|
675
|
-
return void 0;
|
|
676
|
-
}
|
|
677
|
-
const [servicePart, typePart] = documentDescription.split("--");
|
|
678
|
-
const selectedService = servicePart.split(":")[1];
|
|
679
|
-
const documentType = typePart.split(":")[1];
|
|
680
|
-
const parsed = {
|
|
681
|
-
selectedService: getServiceTranslation(i18n, selectedService || ""),
|
|
682
|
-
documentType: i18n.get(documentType)
|
|
683
|
-
};
|
|
684
|
-
return `${parsed.selectedService} (${parsed.documentType})`;
|
|
685
|
-
};
|
|
686
|
-
const MISSING_DATA_SOF_UPLOAD_CODE = "2_8224";
|
|
687
|
-
const parseOriginatorDetails = (originatorDetails, businessLine) => {
|
|
688
|
-
const copiedBusinessLine = { ...businessLine };
|
|
689
|
-
if (copiedBusinessLine.sourceOfFunds) {
|
|
690
|
-
if (originatorDetails.organization) {
|
|
691
|
-
copiedBusinessLine.sourceOfFunds.legalName = originatorDetails.organization.legalName;
|
|
692
|
-
copiedBusinessLine.sourceOfFunds.country = originatorDetails.organization?.registeredAddress?.country;
|
|
693
|
-
copiedBusinessLine.sourceOfFunds.originatorType = "organization";
|
|
694
|
-
}
|
|
695
|
-
if (originatorDetails.individual) {
|
|
696
|
-
copiedBusinessLine.sourceOfFunds.firstName = originatorDetails.individual.name?.firstName;
|
|
697
|
-
copiedBusinessLine.sourceOfFunds.lastName = originatorDetails.individual.name?.lastName;
|
|
698
|
-
copiedBusinessLine.sourceOfFunds.country = originatorDetails.individual.residentialAddress?.country;
|
|
699
|
-
copiedBusinessLine.sourceOfFunds.originatorType = "individual";
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
return copiedBusinessLine;
|
|
703
|
-
};
|
|
704
|
-
const getSourceOfFundsPayload = (sofType, additionalData) => {
|
|
705
|
-
switch (sofType) {
|
|
706
|
-
case "business":
|
|
707
|
-
return {
|
|
708
|
-
adyenProcessedFunds: false,
|
|
709
|
-
type: "business",
|
|
710
|
-
description: additionalData?.description,
|
|
711
|
-
amount: {
|
|
712
|
-
currency: additionalData?.amount?.currency ?? "USD",
|
|
713
|
-
value: additionalData?.amount?.value ?? 0
|
|
714
|
-
}
|
|
715
|
-
};
|
|
716
|
-
case "employment":
|
|
717
|
-
return {
|
|
718
|
-
adyenProcessedFunds: false,
|
|
719
|
-
type: "employment"
|
|
720
|
-
};
|
|
721
|
-
case "donations":
|
|
722
|
-
return {
|
|
723
|
-
adyenProcessedFunds: false,
|
|
724
|
-
type: "donations",
|
|
725
|
-
dateOfFundsReceived: additionalData?.dateOfFundsReceived,
|
|
726
|
-
purpose: additionalData?.purpose,
|
|
727
|
-
relationship: additionalData?.relationship,
|
|
728
|
-
originatorLegalEntityId: additionalData?.originatorLegalEntityId
|
|
729
|
-
};
|
|
730
|
-
case "inheritance":
|
|
731
|
-
return {
|
|
732
|
-
adyenProcessedFunds: false,
|
|
733
|
-
type: "inheritance",
|
|
734
|
-
dateOfFundsReceived: additionalData?.dateOfFundsReceived,
|
|
735
|
-
amount: additionalData?.amount,
|
|
736
|
-
relationship: additionalData?.relationship,
|
|
737
|
-
originatorLegalEntityId: additionalData?.originatorLegalEntityId
|
|
738
|
-
};
|
|
739
|
-
case "financialAid":
|
|
740
|
-
return {
|
|
741
|
-
adyenProcessedFunds: false,
|
|
742
|
-
type: "financialAid"
|
|
743
|
-
};
|
|
744
|
-
case "rentalIncome":
|
|
745
|
-
return {
|
|
746
|
-
adyenProcessedFunds: false,
|
|
747
|
-
type: "rentalIncome"
|
|
748
|
-
};
|
|
749
|
-
case "dividendIncome":
|
|
750
|
-
return {
|
|
751
|
-
adyenProcessedFunds: false,
|
|
752
|
-
type: "dividendIncome"
|
|
753
|
-
};
|
|
754
|
-
case "royaltyIncome":
|
|
755
|
-
return {
|
|
756
|
-
adyenProcessedFunds: false,
|
|
757
|
-
type: "royaltyIncome"
|
|
758
|
-
};
|
|
759
|
-
case "pensionIncome":
|
|
760
|
-
return {
|
|
761
|
-
adyenProcessedFunds: false,
|
|
762
|
-
type: "pensionIncome"
|
|
763
|
-
};
|
|
764
|
-
case "insuranceSettlement":
|
|
765
|
-
return {
|
|
766
|
-
adyenProcessedFunds: false,
|
|
767
|
-
type: "insuranceSettlement"
|
|
768
|
-
};
|
|
769
|
-
case "thirdPartyFunding":
|
|
770
|
-
return {
|
|
771
|
-
adyenProcessedFunds: false,
|
|
772
|
-
type: "thirdPartyFunding",
|
|
773
|
-
financiers: additionalData?.financiers
|
|
774
|
-
};
|
|
775
|
-
case "cryptocurrencyIncome":
|
|
776
|
-
return {
|
|
777
|
-
adyenProcessedFunds: false,
|
|
778
|
-
type: "cryptocurrencyIncome",
|
|
779
|
-
cryptocurrencyExchange: additionalData?.cryptocurrencyExchange
|
|
780
|
-
};
|
|
781
|
-
case "assetSale":
|
|
782
|
-
return {
|
|
783
|
-
adyenProcessedFunds: false,
|
|
784
|
-
type: "assetSale",
|
|
785
|
-
cryptocurrencyExchange: additionalData?.cryptocurrencyExchange,
|
|
786
|
-
dateOfSourceEvent: additionalData?.dateOfSourceEvent,
|
|
787
|
-
description: additionalData?.description,
|
|
788
|
-
amount: additionalData?.amount
|
|
789
|
-
};
|
|
790
|
-
case "loans":
|
|
791
|
-
return {
|
|
792
|
-
adyenProcessedFunds: false,
|
|
793
|
-
type: "loans"
|
|
794
|
-
};
|
|
795
|
-
case "gamblingWinnings":
|
|
796
|
-
return {
|
|
797
|
-
adyenProcessedFunds: false,
|
|
798
|
-
type: "gamblingWinnings",
|
|
799
|
-
dateOfSourceEvent: additionalData?.dateOfSourceEvent,
|
|
800
|
-
website: additionalData?.website && !additionalData.website.startsWith("http://") && !additionalData.website.startsWith("https://") ? `https://${additionalData.website}` : additionalData?.website,
|
|
801
|
-
amount: additionalData?.amount
|
|
802
|
-
};
|
|
803
|
-
default:
|
|
804
|
-
return { adyenProcessedFunds: true };
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
|
-
const parseSofOriginatorPayload = (additionalData) => {
|
|
808
|
-
let sofOriginator;
|
|
809
|
-
if (additionalData?.originatorType === "individual") {
|
|
810
|
-
sofOriginator = {
|
|
811
|
-
type: LegalEntityTypes.INDIVIDUAL,
|
|
812
|
-
individual: {
|
|
813
|
-
name: {
|
|
814
|
-
firstName: additionalData?.firstName ?? "",
|
|
815
|
-
lastName: additionalData?.lastName ?? ""
|
|
816
|
-
},
|
|
817
|
-
residentialAddress: {
|
|
818
|
-
country: additionalData?.country
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
};
|
|
822
|
-
} else {
|
|
823
|
-
sofOriginator = {
|
|
824
|
-
type: LegalEntityTypes.ORGANIZATION,
|
|
825
|
-
organization: {
|
|
826
|
-
legalName: additionalData?.legalName ?? "",
|
|
827
|
-
registeredAddress: {
|
|
828
|
-
country: additionalData?.country
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
};
|
|
832
|
-
}
|
|
833
|
-
return sofOriginator;
|
|
834
|
-
};
|
|
835
|
-
const formatDateForInput = (isoDateString) => {
|
|
836
|
-
if (!isoDateString) return "";
|
|
837
|
-
try {
|
|
838
|
-
const datePart = isoDateString.split("T")[0];
|
|
839
|
-
if (/^\d{4}-\d{2}-\d{2}$/.test(datePart)) {
|
|
840
|
-
return datePart;
|
|
841
|
-
}
|
|
842
|
-
return "";
|
|
843
|
-
} catch {
|
|
844
|
-
return "";
|
|
845
|
-
}
|
|
846
|
-
};
|
|
847
|
-
const getSofCardDetails = (i18n, sourceOfFunds2) => {
|
|
848
|
-
if (!sourceOfFunds2) {
|
|
849
|
-
return "";
|
|
850
|
-
}
|
|
851
|
-
if (sourceOfFunds2?.adyenProcessedFunds) {
|
|
852
|
-
return i18n.get("sofTypeAdyenLabel");
|
|
853
|
-
}
|
|
854
|
-
if (sourceOfFunds2?.type) {
|
|
855
|
-
return i18n.get(`sofType${toCapitalized(sourceOfFunds2?.type)}Label`);
|
|
856
|
-
}
|
|
857
|
-
return "";
|
|
858
|
-
};
|
|
859
|
-
const ALLOWED_SOF_SERVICES = ["issuing", "banking"];
|
|
860
|
-
const SOF_INVALID_INPUT_ERROR_CODES = ["1_93", "1_94"];
|
|
861
|
-
const getRelevantErrors = (problems, targetCodes) => {
|
|
862
|
-
if (!problems) return false;
|
|
863
|
-
return problems.flatMap(
|
|
864
|
-
(problem) => (problem.verificationErrors || []).filter(
|
|
865
|
-
(error) => targetCodes.includes(error.code) || (error.subErrors || []).some((sub) => targetCodes.includes(sub.code))
|
|
866
|
-
)
|
|
867
|
-
);
|
|
868
|
-
};
|
|
869
|
-
const getUniqueRemediationActions = (error) => {
|
|
870
|
-
const allActions = [
|
|
871
|
-
...error.remediatingActions || [],
|
|
872
|
-
...error.subErrors?.flatMap((sub) => sub.remediatingActions || []) || []
|
|
873
|
-
];
|
|
874
|
-
return allActions.filter((action, i, arr) => arr.findIndex((a) => a.code === action.code) === i);
|
|
875
|
-
};
|
|
876
154
|
function AdditionalDataForAssetSale(props) {
|
|
877
|
-
const { i18n } = useI18nContext();
|
|
878
155
|
const [isFocused, setIsFocused] = useState(false);
|
|
879
156
|
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
|
|
157
|
+
const { t: commonT } = useTranslation("common");
|
|
880
158
|
const handleOnAmountBlur = () => {
|
|
881
159
|
setIsFocused(false);
|
|
882
160
|
handleAmountChange("amount");
|
|
@@ -902,11 +180,11 @@ function AdditionalDataForAssetSale(props) {
|
|
|
902
180
|
Select,
|
|
903
181
|
{
|
|
904
182
|
name: "currency",
|
|
905
|
-
"aria-label":
|
|
183
|
+
"aria-label": commonT(($) => $["currency"]),
|
|
906
184
|
isMulti: false,
|
|
907
185
|
items: allowedCurrencies,
|
|
908
186
|
selected: data.amount?.currency,
|
|
909
|
-
placeholder:
|
|
187
|
+
placeholder: commonT(($) => $["select"]),
|
|
910
188
|
onChange: handleAmountChange("currency"),
|
|
911
189
|
minimal: true
|
|
912
190
|
}
|
|
@@ -978,9 +256,9 @@ function AdditionalDataForAssetSale(props) {
|
|
|
978
256
|
] });
|
|
979
257
|
}
|
|
980
258
|
function AdditionalDataForBusiness(props) {
|
|
981
|
-
const { i18n } = useI18nContext();
|
|
982
259
|
const [isFocused, setIsFocused] = useState(false);
|
|
983
260
|
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
|
|
261
|
+
const { t: commonT } = useTranslation("common");
|
|
984
262
|
const handleOnAmountBlur = () => {
|
|
985
263
|
setIsFocused(false);
|
|
986
264
|
handleAmountChange("amount");
|
|
@@ -993,7 +271,7 @@ function AdditionalDataForBusiness(props) {
|
|
|
993
271
|
name: "amount",
|
|
994
272
|
label: formUtils.getLabel("amount", "annualTurnover"),
|
|
995
273
|
errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
|
|
996
|
-
helper:
|
|
274
|
+
helper: commonT(($) => $["useFiguresFromTheMostRecentYearAvailable"]),
|
|
997
275
|
helperPosition: "below",
|
|
998
276
|
children: (childProps) => /* @__PURE__ */ jsxs(
|
|
999
277
|
InputGroup,
|
|
@@ -1007,11 +285,11 @@ function AdditionalDataForBusiness(props) {
|
|
|
1007
285
|
Select,
|
|
1008
286
|
{
|
|
1009
287
|
name: "currency",
|
|
1010
|
-
"aria-label":
|
|
288
|
+
"aria-label": commonT(($) => $["currency"]),
|
|
1011
289
|
isMulti: false,
|
|
1012
290
|
items: allowedCurrencies,
|
|
1013
291
|
selected: data.amount?.currency,
|
|
1014
|
-
placeholder:
|
|
292
|
+
placeholder: commonT(($) => $["select"]),
|
|
1015
293
|
onChange: handleAmountChange("currency"),
|
|
1016
294
|
minimal: true
|
|
1017
295
|
}
|
|
@@ -1060,7 +338,7 @@ function AdditionalDataForBusiness(props) {
|
|
|
1060
338
|
] });
|
|
1061
339
|
}
|
|
1062
340
|
function AdditionalDataForCryptocurrency(props) {
|
|
1063
|
-
const {
|
|
341
|
+
const { t: sofT } = useTranslation("sof");
|
|
1064
342
|
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor } = props;
|
|
1065
343
|
return /* @__PURE__ */ jsx(
|
|
1066
344
|
Field,
|
|
@@ -1069,7 +347,7 @@ function AdditionalDataForCryptocurrency(props) {
|
|
|
1069
347
|
label: formUtils.getLabel("cryptocurrencyExchange", "cryptocurrencyExchange"),
|
|
1070
348
|
errorMessage: formUtils.getErrorMessage("cryptocurrencyExchange", errors, fieldProblems),
|
|
1071
349
|
isValid: valid.cryptocurrencyExchange,
|
|
1072
|
-
helper:
|
|
350
|
+
helper: sofT(($) => $["nameOfTheExchangeWhereTheCryptocurrencyWasHeldPriorToSale"]),
|
|
1073
351
|
helperPosition: "below",
|
|
1074
352
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1075
353
|
InputText,
|
|
@@ -1099,9 +377,10 @@ const radioItems = [
|
|
|
1099
377
|
}
|
|
1100
378
|
];
|
|
1101
379
|
function AdditionalDataOriginatorLegalEntity(props) {
|
|
1102
|
-
const {
|
|
380
|
+
const { t: sofT } = useTranslation("sof");
|
|
1103
381
|
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, sourceOfFundsType } = props;
|
|
1104
382
|
const isDonations = useMemo(() => sourceOfFundsType === "donations", [sourceOfFundsType]);
|
|
383
|
+
const countryTranslationKey = isDonations && data?.originatorType === "individual" ? "donorsCountryOfResidence" : data?.originatorType === "organization" ? "organizationsCountryOfOperation" : "decedentsCountryOfDeath";
|
|
1105
384
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1106
385
|
/* @__PURE__ */ jsx(
|
|
1107
386
|
Field,
|
|
@@ -1109,8 +388,8 @@ function AdditionalDataOriginatorLegalEntity(props) {
|
|
|
1109
388
|
el: "fieldset",
|
|
1110
389
|
name: "originatorType",
|
|
1111
390
|
className: styles.sourceOfFundsUploadModalContentField,
|
|
1112
|
-
label:
|
|
1113
|
-
isDonations ? "whereDidThisGiftOrDonationComeFrom" : "whereDidThisInheritanceComeFrom"
|
|
391
|
+
label: sofT(
|
|
392
|
+
($) => $[isDonations ? "whereDidThisGiftOrDonationComeFrom" : "whereDidThisInheritanceComeFrom"]
|
|
1114
393
|
),
|
|
1115
394
|
errorMessage: formUtils.getErrorMessage("originatorType", errors, fieldProblems),
|
|
1116
395
|
isValid: valid.originatorType,
|
|
@@ -1242,9 +521,7 @@ function AdditionalDataOriginatorLegalEntity(props) {
|
|
|
1242
521
|
country: formUtils.getErrorMessage("country", errors, fieldProblems)
|
|
1243
522
|
},
|
|
1244
523
|
labels: {
|
|
1245
|
-
country:
|
|
1246
|
-
isDonations && data?.originatorType === "individual" ? "donorsCountryOfResidence" : data?.originatorType === "organization" ? "organizationsCountryOfOperation" : "decedentsCountryOfDeath"
|
|
1247
|
-
)
|
|
524
|
+
country: sofT(($) => $[countryTranslationKey])
|
|
1248
525
|
},
|
|
1249
526
|
readonly: formUtils.isReadOnly("country"),
|
|
1250
527
|
handleChangeFor
|
|
@@ -1318,7 +595,8 @@ function AdditionalDataForDonation(props) {
|
|
|
1318
595
|
] });
|
|
1319
596
|
}
|
|
1320
597
|
function AdditionalDataForGambling(props) {
|
|
1321
|
-
const {
|
|
598
|
+
const { t: sofT } = useTranslation("sof");
|
|
599
|
+
const { t: commonT } = useTranslation("common");
|
|
1322
600
|
const [focusedInput, setFocusedInput] = useState();
|
|
1323
601
|
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
|
|
1324
602
|
const handleOnAmountBlur = () => {
|
|
@@ -1349,11 +627,11 @@ function AdditionalDataForGambling(props) {
|
|
|
1349
627
|
Select,
|
|
1350
628
|
{
|
|
1351
629
|
name: "currency",
|
|
1352
|
-
"aria-label":
|
|
630
|
+
"aria-label": commonT(($) => $["currency"]),
|
|
1353
631
|
isMulti: false,
|
|
1354
632
|
items: allowedCurrencies,
|
|
1355
633
|
selected: data.amount?.currency,
|
|
1356
|
-
placeholder:
|
|
634
|
+
placeholder: commonT(($) => $["select"]),
|
|
1357
635
|
onChange: handleAmountChange("currency"),
|
|
1358
636
|
minimal: true
|
|
1359
637
|
}
|
|
@@ -1382,7 +660,7 @@ function AdditionalDataForGambling(props) {
|
|
|
1382
660
|
Field,
|
|
1383
661
|
{
|
|
1384
662
|
name: "dateOfSourceEvent",
|
|
1385
|
-
label: formUtils.getLabel("dateOfSourceEvent", "
|
|
663
|
+
label: formUtils.getLabel("dateOfSourceEvent", "dateOfWinning"),
|
|
1386
664
|
errorMessage: formUtils.getErrorMessage("dateOfSourceEvent", errors, fieldProblems),
|
|
1387
665
|
isValid: valid.dateOfSourceEvent,
|
|
1388
666
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
@@ -1406,7 +684,7 @@ function AdditionalDataForGambling(props) {
|
|
|
1406
684
|
name: "website",
|
|
1407
685
|
label: formUtils.getLabel("website", "sourceOfWinnings"),
|
|
1408
686
|
errorMessage: formUtils.getErrorMessage("website", errors, fieldProblems),
|
|
1409
|
-
helper:
|
|
687
|
+
helper: sofT(($) => $["nameOfCasinoLottery"]),
|
|
1410
688
|
helperPosition: "below",
|
|
1411
689
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1412
690
|
InputGroup,
|
|
@@ -1438,9 +716,9 @@ function AdditionalDataForGambling(props) {
|
|
|
1438
716
|
] });
|
|
1439
717
|
}
|
|
1440
718
|
function AdditionalDataForInheritance(props) {
|
|
1441
|
-
const { i18n } = useI18nContext();
|
|
1442
719
|
const [isFocused, setIsFocused] = useState(false);
|
|
1443
720
|
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
|
|
721
|
+
const { t: commonT } = useTranslation("common");
|
|
1444
722
|
const handleOnAmountBlur = () => {
|
|
1445
723
|
setIsFocused(false);
|
|
1446
724
|
handleAmountChange("amount");
|
|
@@ -1478,11 +756,11 @@ function AdditionalDataForInheritance(props) {
|
|
|
1478
756
|
Select,
|
|
1479
757
|
{
|
|
1480
758
|
name: "currency",
|
|
1481
|
-
"aria-label":
|
|
759
|
+
"aria-label": commonT(($) => $["currency"]),
|
|
1482
760
|
isMulti: false,
|
|
1483
761
|
items: allowedCurrencies ?? [],
|
|
1484
762
|
selected: data.amount?.currency,
|
|
1485
|
-
placeholder:
|
|
763
|
+
placeholder: commonT(($) => $["select"]),
|
|
1486
764
|
onChange: handleAmountChange("currency"),
|
|
1487
765
|
minimal: true
|
|
1488
766
|
}
|
|
@@ -1533,7 +811,8 @@ function AdditionalDataForInheritance(props) {
|
|
|
1533
811
|
] });
|
|
1534
812
|
}
|
|
1535
813
|
const SOFFinancierModal = (props) => {
|
|
1536
|
-
const {
|
|
814
|
+
const { t: sofT } = useTranslation("sof");
|
|
815
|
+
const { t: commonT } = useTranslation("common");
|
|
1537
816
|
const { financier, handleModalClose, indexNumber, handleFinancierUpdate } = props;
|
|
1538
817
|
const [formData, setFormData] = useState(financier);
|
|
1539
818
|
const [formErrors, setFormErrors] = useState({});
|
|
@@ -1599,7 +878,7 @@ const SOFFinancierModal = (props) => {
|
|
|
1599
878
|
};
|
|
1600
879
|
}, {});
|
|
1601
880
|
setFormErrors(errors);
|
|
1602
|
-
setErrorMessage(
|
|
881
|
+
setErrorMessage(sofT(($) => $["pleaseFillInAllFields"]));
|
|
1603
882
|
}
|
|
1604
883
|
};
|
|
1605
884
|
const handleFinancierDelete = async () => {
|
|
@@ -1607,21 +886,21 @@ const SOFFinancierModal = (props) => {
|
|
|
1607
886
|
handleModalClose();
|
|
1608
887
|
};
|
|
1609
888
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1610
|
-
/* @__PURE__ */ jsx(Modal, { onClose: handleModalClose, ariaLabel:
|
|
889
|
+
/* @__PURE__ */ jsx(Modal, { onClose: handleModalClose, ariaLabel: sofT(($) => $["investorDetails"]), inset: true, children: /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsModal, children: [
|
|
1611
890
|
/* @__PURE__ */ jsx(
|
|
1612
891
|
Typography,
|
|
1613
892
|
{
|
|
1614
893
|
variant: "title-l",
|
|
1615
894
|
el: "h3",
|
|
1616
895
|
className: styles.sourceOfFundsGettingStartedHelpHeader,
|
|
1617
|
-
children:
|
|
896
|
+
children: sofT(($) => $["investorDetails"])
|
|
1618
897
|
}
|
|
1619
898
|
),
|
|
1620
899
|
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsSofFinancierForm, children: [
|
|
1621
900
|
errorMessage && /* @__PURE__ */ jsx(
|
|
1622
901
|
Alert,
|
|
1623
902
|
{
|
|
1624
|
-
title:
|
|
903
|
+
title: sofT(($) => $["errorSubmittingData"]),
|
|
1625
904
|
variant: "error",
|
|
1626
905
|
className: styles.sourceOfFundsSofFinancierFormError,
|
|
1627
906
|
children: errorMessage
|
|
@@ -1632,7 +911,7 @@ const SOFFinancierModal = (props) => {
|
|
|
1632
911
|
Field,
|
|
1633
912
|
{
|
|
1634
913
|
name: "firstName",
|
|
1635
|
-
label:
|
|
914
|
+
label: commonT(($) => $["firstName"]),
|
|
1636
915
|
errorMessage: formErrors.firstName,
|
|
1637
916
|
isValid: !formErrors.firstName,
|
|
1638
917
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
@@ -1654,7 +933,7 @@ const SOFFinancierModal = (props) => {
|
|
|
1654
933
|
Field,
|
|
1655
934
|
{
|
|
1656
935
|
name: "lastName",
|
|
1657
|
-
label:
|
|
936
|
+
label: commonT(($) => $["lastName"]),
|
|
1658
937
|
errorMessage: formErrors.lastName,
|
|
1659
938
|
isValid: !formErrors.lastName,
|
|
1660
939
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
@@ -1677,12 +956,12 @@ const SOFFinancierModal = (props) => {
|
|
|
1677
956
|
Field,
|
|
1678
957
|
{
|
|
1679
958
|
name: "location",
|
|
1680
|
-
label:
|
|
959
|
+
label: sofT(($) => $["investorLocation"]),
|
|
1681
960
|
errorMessage: formErrors.location,
|
|
1682
961
|
isValid: !formErrors.location,
|
|
1683
962
|
helperPosition: "below",
|
|
1684
963
|
showErrorIconBottom: true,
|
|
1685
|
-
helper:
|
|
964
|
+
helper: sofT(($) => $["theCityAndCountryRegion"]),
|
|
1686
965
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1687
966
|
InputText,
|
|
1688
967
|
{
|
|
@@ -1703,7 +982,7 @@ const SOFFinancierModal = (props) => {
|
|
|
1703
982
|
{
|
|
1704
983
|
el: "fieldset",
|
|
1705
984
|
name: "amount",
|
|
1706
|
-
label:
|
|
985
|
+
label: sofT(($) => $["investmentAmount"]),
|
|
1707
986
|
errorMessage: formErrors.amount,
|
|
1708
987
|
isValid: !formErrors.amount,
|
|
1709
988
|
children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, { ...childProps, id: "currencyGroup", isFocused, children: [
|
|
@@ -1712,11 +991,11 @@ const SOFFinancierModal = (props) => {
|
|
|
1712
991
|
{
|
|
1713
992
|
minimal: true,
|
|
1714
993
|
name: "currency",
|
|
1715
|
-
"aria-label":
|
|
994
|
+
"aria-label": commonT(($) => $["currency"]),
|
|
1716
995
|
isMulti: false,
|
|
1717
996
|
items: allowedCurrencies,
|
|
1718
997
|
selected: formData?.amount?.currency,
|
|
1719
|
-
placeholder:
|
|
998
|
+
placeholder: commonT(($) => $["select"]),
|
|
1720
999
|
onChange: (e) => handleInputUpdate("currency", e)
|
|
1721
1000
|
}
|
|
1722
1001
|
),
|
|
@@ -1737,15 +1016,15 @@ const SOFFinancierModal = (props) => {
|
|
|
1737
1016
|
)
|
|
1738
1017
|
] }),
|
|
1739
1018
|
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsFinancierFooter, children: [
|
|
1740
|
-
/* @__PURE__ */ jsx(Button, { onClick: handleFinancierSave, children:
|
|
1741
|
-
Number.isFinite(indexNumber) && /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: () => setConfirmOpen(true), children:
|
|
1019
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleFinancierSave, children: commonT(($) => $["save"]) }),
|
|
1020
|
+
Number.isFinite(indexNumber) && /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: () => setConfirmOpen(true), children: sofT(($) => $["deleteInvestorDetails"]) })
|
|
1742
1021
|
] })
|
|
1743
1022
|
] }) }),
|
|
1744
1023
|
confirmOpen && /* @__PURE__ */ jsx(
|
|
1745
1024
|
Confirm,
|
|
1746
1025
|
{
|
|
1747
|
-
title:
|
|
1748
|
-
confirmText:
|
|
1026
|
+
title: sofT(($) => $["areYouSureYouWantToDeleteThisInvestorDetails"]),
|
|
1027
|
+
confirmText: commonT(($) => $["delete"]),
|
|
1749
1028
|
onConfirm: handleFinancierDelete,
|
|
1750
1029
|
onCancel: () => setConfirmOpen(false),
|
|
1751
1030
|
critical: true
|
|
@@ -1758,6 +1037,7 @@ function AdditionalDataForThirdParty(props) {
|
|
|
1758
1037
|
const [activeFinancier, setActiveFinancier] = useState();
|
|
1759
1038
|
const [activeIndex, setActiveIndex] = useState();
|
|
1760
1039
|
const { data, fieldProblems, errors, handleChangeFor, formUtils, valid } = props;
|
|
1040
|
+
const { t: sofT } = useTranslation("sof");
|
|
1761
1041
|
const { i18n } = useI18nContext();
|
|
1762
1042
|
const handleToggleFinancierModal = () => {
|
|
1763
1043
|
setActiveFinancier(void 0);
|
|
@@ -1808,7 +1088,7 @@ function AdditionalDataForThirdParty(props) {
|
|
|
1808
1088
|
),
|
|
1809
1089
|
variant: "error",
|
|
1810
1090
|
className: styles.sourceOfFundsSofFinancierFormError,
|
|
1811
|
-
children:
|
|
1091
|
+
children: sofT(($) => $["addAtLeastOneInvestor"])
|
|
1812
1092
|
}
|
|
1813
1093
|
),
|
|
1814
1094
|
data.financiers?.map((financier, index) => /* @__PURE__ */ jsxs(
|
|
@@ -1845,7 +1125,7 @@ function AdditionalDataForThirdParty(props) {
|
|
|
1845
1125
|
onClick: handleToggleFinancierModal,
|
|
1846
1126
|
children: /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAvatarGroup, children: [
|
|
1847
1127
|
/* @__PURE__ */ jsx(Avatar, { iconName: "plus", variant: "tertiary", circle: true }),
|
|
1848
|
-
/* @__PURE__ */ jsx(Typography, { el: "div", variant: "body-strongest", children:
|
|
1128
|
+
/* @__PURE__ */ jsx(Typography, { el: "div", variant: "body-strongest", children: sofT(($) => $["addInvestor"]) })
|
|
1849
1129
|
] })
|
|
1850
1130
|
}
|
|
1851
1131
|
),
|
|
@@ -2155,7 +1435,7 @@ function SourceOfFundsAdditionalData(props) {
|
|
|
2155
1435
|
}
|
|
2156
1436
|
const sourceOfFundsTypeFields = ["type"];
|
|
2157
1437
|
function SourceOfFundsType(props) {
|
|
2158
|
-
const { t } = useTranslation("common");
|
|
1438
|
+
const { t } = useTranslation(["common", "sof"]);
|
|
2159
1439
|
const { i18n } = useI18nContext();
|
|
2160
1440
|
const {
|
|
2161
1441
|
data: sourceOfFundsTypeDefaultData,
|
|
@@ -2193,12 +1473,12 @@ function SourceOfFundsType(props) {
|
|
|
2193
1473
|
const categoryItems = [
|
|
2194
1474
|
{
|
|
2195
1475
|
value: "adyen",
|
|
2196
|
-
label:
|
|
1476
|
+
label: t(($) => $["transactionsOnThisPlatform"], { ns: "sof" }),
|
|
2197
1477
|
icon: getIconById("adyen")
|
|
2198
1478
|
},
|
|
2199
1479
|
...categories?.map((item) => ({
|
|
2200
1480
|
value: item.id,
|
|
2201
|
-
label:
|
|
1481
|
+
label: t(($) => $[sofCategoryItemMapper[item.name]], { ns: "sof" }),
|
|
2202
1482
|
icon: getIconById(item.id)
|
|
2203
1483
|
})) ?? []
|
|
2204
1484
|
];
|
|
@@ -2253,9 +1533,9 @@ function getIconById(id) {
|
|
|
2253
1533
|
}
|
|
2254
1534
|
}
|
|
2255
1535
|
function SourceOfFunds(props) {
|
|
2256
|
-
const { i18n } = useI18nContext();
|
|
2257
1536
|
const { activeForm, activeBusinessLine, sourceOfFundsType } = props;
|
|
2258
1537
|
const { data: sourceOfFundsTypesData, isLoading } = useSourceOfFundsTypes();
|
|
1538
|
+
const { t: sofT } = useTranslation("sof");
|
|
2259
1539
|
const formWrapperClasses = (formId) => activeForm?.formId !== formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper";
|
|
2260
1540
|
const pageHeadings = useMemo(
|
|
2261
1541
|
() => getPageHeadings(sourceOfFundsType ?? "adyen"),
|
|
@@ -2263,20 +1543,15 @@ function SourceOfFunds(props) {
|
|
|
2263
1543
|
);
|
|
2264
1544
|
return isLoading || !activeBusinessLine ? /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsWrapperLoading, children: /* @__PURE__ */ jsx(Loader, {}) }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-wrapper", children: [
|
|
2265
1545
|
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsWrapperHeading, children: [
|
|
2266
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children:
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
activeBusinessLine?.service || ""
|
|
2273
|
-
).toLowerCase()
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
) }),
|
|
1546
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: activeForm?.formId === "additionalData" ? sofT(($) => $[pageHeadings.heading]) : sofT(($) => $["selectASourceOfFunding"], {
|
|
1547
|
+
type: getServiceTranslationSelectTitle(
|
|
1548
|
+
sofT,
|
|
1549
|
+
activeBusinessLine?.service || ""
|
|
1550
|
+
).toLowerCase()
|
|
1551
|
+
}) }),
|
|
2277
1552
|
/* @__PURE__ */ jsxs(Typography, { className: styles.sourceOfFundsWrapperDescription, children: [
|
|
2278
|
-
activeForm?.formId === "additionalData" && pageHeadings.description &&
|
|
2279
|
-
sourceOfFundsTypesData?.length === 0 &&
|
|
1553
|
+
activeForm?.formId === "additionalData" && pageHeadings.description && sofT(($) => $[pageHeadings.description]),
|
|
1554
|
+
sourceOfFundsTypesData?.length === 0 && sofT(($) => $["noCategoriesAvailable"])
|
|
2280
1555
|
] })
|
|
2281
1556
|
] }),
|
|
2282
1557
|
sofErrorMessage.value && /* @__PURE__ */ jsxs(
|
|
@@ -2287,9 +1562,8 @@ function SourceOfFunds(props) {
|
|
|
2287
1562
|
"aria-live": "polite",
|
|
2288
1563
|
className: "adyen-kyc-u-justify-content-center adyen-kyc-u-display-flex",
|
|
2289
1564
|
children: [
|
|
2290
|
-
/* @__PURE__ */ jsx(Icon, { name: "field-error" }),
|
|
2291
|
-
|
|
2292
|
-
/* @__PURE__ */ jsx("div", { children: sofErrorMessage.value })
|
|
1565
|
+
/* @__PURE__ */ jsx(Icon, { name: "field-error", className: "adyen-kyc-u-margin-right-2" }),
|
|
1566
|
+
/* @__PURE__ */ jsx("span", { children: sofErrorMessage.value })
|
|
2293
1567
|
]
|
|
2294
1568
|
}
|
|
2295
1569
|
),
|
|
@@ -2307,12 +1581,12 @@ function SourceOfFunds(props) {
|
|
|
2307
1581
|
sourceOfFundsType
|
|
2308
1582
|
}
|
|
2309
1583
|
) }),
|
|
2310
|
-
activeForm?.formId === "companySourceOfFunds" && /* @__PURE__ */ jsx("div", { className: formWrapperClasses("companySourceOfFunds"), children: /* @__PURE__ */ jsx("div", { children:
|
|
1584
|
+
activeForm?.formId === "companySourceOfFunds" && /* @__PURE__ */ jsx("div", { className: formWrapperClasses("companySourceOfFunds"), children: /* @__PURE__ */ jsx("div", { children: sofT(($) => $["uploadADocument"]) }) })
|
|
2311
1585
|
] });
|
|
2312
1586
|
}
|
|
2313
1587
|
function SourceOfFundsGettingStartedCard(props) {
|
|
2314
1588
|
const { id, title, onClick, isEdit, meta } = props;
|
|
2315
|
-
const {
|
|
1589
|
+
const { t: commonT } = useTranslation("common");
|
|
2316
1590
|
return /* @__PURE__ */ jsx(
|
|
2317
1591
|
Card,
|
|
2318
1592
|
{
|
|
@@ -2326,7 +1600,7 @@ function SourceOfFundsGettingStartedCard(props) {
|
|
|
2326
1600
|
variant: "primary",
|
|
2327
1601
|
testId: "source-of-funds-getting-card-secondary-button",
|
|
2328
1602
|
onClick,
|
|
2329
|
-
children:
|
|
1603
|
+
children: commonT(($) => $["start"])
|
|
2330
1604
|
}
|
|
2331
1605
|
),
|
|
2332
1606
|
children: isEdit && meta?.length && /* @__PURE__ */ jsx(
|
|
@@ -2351,6 +1625,8 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2351
1625
|
legalEntity,
|
|
2352
1626
|
isSoFDocumentMissing
|
|
2353
1627
|
}) => {
|
|
1628
|
+
const { t: sofT } = useTranslation("sof");
|
|
1629
|
+
const { t: commonT } = useTranslation("common");
|
|
2354
1630
|
const { i18n } = useI18nContext();
|
|
2355
1631
|
const hasSourceOfFunds = businessLines?.some(
|
|
2356
1632
|
(businessLine) => !isEmpty$1(businessLine.sourceOfFunds)
|
|
@@ -2365,36 +1641,36 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2365
1641
|
const cards = lines.map((line) => {
|
|
2366
1642
|
const SoF = mapSourceOfFundToSourceOfFundsSchema(line);
|
|
2367
1643
|
return {
|
|
2368
|
-
title: getServiceTranslation(
|
|
1644
|
+
title: getServiceTranslation(sofT, line.service || ""),
|
|
2369
1645
|
type: line?.sourceOfFunds?.type,
|
|
2370
1646
|
isEdit: !!line?.sourceOfFunds?.type || !!line?.sourceOfFunds?.adyenProcessedFunds,
|
|
2371
1647
|
onClick: () => handleSourceOfFundsClick(SoF, line),
|
|
2372
1648
|
meta: [
|
|
2373
1649
|
{
|
|
2374
|
-
term:
|
|
2375
|
-
details: getSofCardDetails(
|
|
1650
|
+
term: sofT(($) => $["sourceOfFunds"]),
|
|
1651
|
+
details: getSofCardDetails(sofT, line?.sourceOfFunds)
|
|
2376
1652
|
},
|
|
2377
1653
|
...getGettingStartedCardDetails(
|
|
2378
1654
|
getAdditionalDataSchemaKeys(
|
|
2379
1655
|
line?.sourceOfFunds?.type || "adyen",
|
|
2380
1656
|
line?.sourceOfFunds?.originatorType
|
|
2381
1657
|
),
|
|
2382
|
-
|
|
1658
|
+
sofT,
|
|
2383
1659
|
line?.sourceOfFunds
|
|
2384
1660
|
)
|
|
2385
1661
|
]
|
|
2386
1662
|
};
|
|
2387
1663
|
}).sort((a) => a?.type ? 1 : -1);
|
|
2388
1664
|
const uploadCard = {
|
|
2389
|
-
title: getServiceTranslation(
|
|
1665
|
+
title: getServiceTranslation(sofT),
|
|
2390
1666
|
type: "",
|
|
2391
1667
|
isEdit: !!sofDocuments?.length,
|
|
2392
1668
|
onClick: handleNavigateToUploadPage,
|
|
2393
1669
|
meta: sofDocuments?.length ? sofDocuments.map((doc) => ({
|
|
2394
|
-
term:
|
|
1670
|
+
term: sofT(($) => $["fileName"]),
|
|
2395
1671
|
details: [
|
|
2396
1672
|
doc?.fileName,
|
|
2397
|
-
/* @__PURE__ */ jsx(Typography, { color: "secondary", children: parseSOFDocumentDescription(
|
|
1673
|
+
/* @__PURE__ */ jsx(Typography, { color: "secondary", children: parseSOFDocumentDescription(sofT, doc?.description) || "" }, "docDescription")
|
|
2398
1674
|
]
|
|
2399
1675
|
})) : []
|
|
2400
1676
|
};
|
|
@@ -2435,8 +1711,8 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2435
1711
|
LandingLayout,
|
|
2436
1712
|
{
|
|
2437
1713
|
media: /* @__PURE__ */ jsx(Image, { lazyLoadedImage: digitalWallet }),
|
|
2438
|
-
title:
|
|
2439
|
-
description:
|
|
1714
|
+
title: sofT(($) => $["fundingSourcesForFinancialProducts"]),
|
|
1715
|
+
description: sofT(($) => $["inTheNextStepWellCollectInformation"]),
|
|
2440
1716
|
actions: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2441
1717
|
/* @__PURE__ */ jsx(
|
|
2442
1718
|
Button,
|
|
@@ -2444,7 +1720,7 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2444
1720
|
fullWidth: true,
|
|
2445
1721
|
testId: "source-of-funds-getting-primary-button",
|
|
2446
1722
|
onClick: handleGettingStartedClick,
|
|
2447
|
-
children:
|
|
1723
|
+
children: sofT(($) => $["getStarted"])
|
|
2448
1724
|
}
|
|
2449
1725
|
),
|
|
2450
1726
|
handleCancelClick && /* @__PURE__ */ jsx(
|
|
@@ -2454,7 +1730,7 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2454
1730
|
fullWidth: true,
|
|
2455
1731
|
testId: "source-of-funds-getting-cancel-button",
|
|
2456
1732
|
onClick: handleCancelClick,
|
|
2457
|
-
children:
|
|
1733
|
+
children: commonT(($) => $["backToTaskList"])
|
|
2458
1734
|
}
|
|
2459
1735
|
)
|
|
2460
1736
|
] })
|
|
@@ -2462,21 +1738,14 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2462
1738
|
),
|
|
2463
1739
|
hasSourceOfFunds && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2464
1740
|
/* @__PURE__ */ jsx(
|
|
2465
|
-
|
|
1741
|
+
Header,
|
|
2466
1742
|
{
|
|
2467
|
-
|
|
1743
|
+
title: sofT(($) => $["fundingSourcesForFinancialProducts"]),
|
|
1744
|
+
description: sofT(($) => $["addAllSourcesOfFundsBeingUsed"]),
|
|
1745
|
+
status: normalizedTaskStatusStore?.value?.SOURCE_OF_FUNDS?.status,
|
|
1746
|
+
align: "center"
|
|
2468
1747
|
}
|
|
2469
1748
|
),
|
|
2470
|
-
/* @__PURE__ */ jsx(
|
|
2471
|
-
Typography,
|
|
2472
|
-
{
|
|
2473
|
-
className: styles.sourceOfFundsGettingStartedHeading,
|
|
2474
|
-
el: "h2",
|
|
2475
|
-
variant: "title-l",
|
|
2476
|
-
children: i18n.get("fundingSourcesForFinancialProducts")
|
|
2477
|
-
}
|
|
2478
|
-
),
|
|
2479
|
-
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsGettingStartedBody, children: i18n.get("addAllSourcesOfFundsBeingUsed") }),
|
|
2480
1749
|
errorObjects && errorObjects.map((errorObj, index) => {
|
|
2481
1750
|
const uniqueActions = getUniqueRemediationActions(errorObj);
|
|
2482
1751
|
const errorItems = errorObj.subErrors?.map((subError) => subError.message) || [];
|
|
@@ -2510,7 +1779,7 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2510
1779
|
variant: "secondary",
|
|
2511
1780
|
testId: "source-of-funds-getting-return-button",
|
|
2512
1781
|
onClick: handleCancelClick,
|
|
2513
|
-
children:
|
|
1782
|
+
children: commonT(($) => $["backToTaskList"])
|
|
2514
1783
|
}
|
|
2515
1784
|
)
|
|
2516
1785
|
] })
|
|
@@ -2519,9 +1788,10 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2519
1788
|
);
|
|
2520
1789
|
};
|
|
2521
1790
|
const SOFUploadModal = (props) => {
|
|
2522
|
-
const { i18n } = useI18nContext();
|
|
2523
1791
|
const { showToast } = useToastContext();
|
|
2524
1792
|
const logger2 = createLogger();
|
|
1793
|
+
const { t: sofT } = useTranslation("sof");
|
|
1794
|
+
const { t: commonT } = useTranslation("common");
|
|
2525
1795
|
const { businessLines, handleModalClose, documentUtils } = props;
|
|
2526
1796
|
const firstService = businessLines?.length === 1 ? businessLines?.[0]?.service : void 0;
|
|
2527
1797
|
const [selectedService, setSelectedService] = useState(
|
|
@@ -2538,9 +1808,9 @@ const SOFUploadModal = (props) => {
|
|
|
2538
1808
|
const serviceRadioItems = useMemo(() => {
|
|
2539
1809
|
return businessLines.map((businessLine) => ({
|
|
2540
1810
|
id: businessLine.service,
|
|
2541
|
-
name: getServiceTranslationKey(businessLine?.service || "")
|
|
1811
|
+
name: sofT(($) => $[getServiceTranslationKey(businessLine?.service || "")])
|
|
2542
1812
|
}));
|
|
2543
|
-
}, [businessLines]);
|
|
1813
|
+
}, [businessLines, sofT]);
|
|
2544
1814
|
const canUpload = useMemo(() => selectedService && documentType, [selectedService, documentType]);
|
|
2545
1815
|
const selectedBusinessLineId = businessLines?.find((businessLine) => businessLine.service === selectedService)?.id || "";
|
|
2546
1816
|
const documentLists = useMemo(() => {
|
|
@@ -2551,18 +1821,18 @@ const SOFUploadModal = (props) => {
|
|
|
2551
1821
|
const lists = getDocumentLists(selectedType);
|
|
2552
1822
|
const items = lists.map((list) => ({
|
|
2553
1823
|
id: list,
|
|
2554
|
-
name:
|
|
1824
|
+
name: sofT(($) => $[list])
|
|
2555
1825
|
}));
|
|
2556
1826
|
return items;
|
|
2557
1827
|
}
|
|
2558
1828
|
return [];
|
|
2559
|
-
}, [businessLines,
|
|
1829
|
+
}, [businessLines, sofT, selectedService]);
|
|
2560
1830
|
const documentRequirements = useMemo(() => {
|
|
2561
1831
|
return documentType ? getDocumentRequirements[documentType] : [];
|
|
2562
1832
|
}, [documentType]);
|
|
2563
1833
|
const onFileUpload = async (files) => {
|
|
2564
1834
|
if (!canUpload) {
|
|
2565
|
-
showToast({ label:
|
|
1835
|
+
showToast({ label: sofT(($) => $["unableToUploadDocument"]), variant: "error" });
|
|
2566
1836
|
return;
|
|
2567
1837
|
}
|
|
2568
1838
|
const formattedDocument = await createDocumentRequest({
|
|
@@ -2576,81 +1846,89 @@ const SOFUploadModal = (props) => {
|
|
|
2576
1846
|
try {
|
|
2577
1847
|
await documentUtils.uploadDocuments([formattedDocument], selectedBusinessLineId);
|
|
2578
1848
|
showToast({
|
|
2579
|
-
label:
|
|
1849
|
+
label: sofT(($) => $["documentUploadedSuccessfully"]),
|
|
2580
1850
|
variant: "success",
|
|
2581
1851
|
duration: 1e4
|
|
2582
1852
|
});
|
|
2583
1853
|
handleModalClose();
|
|
2584
1854
|
} catch (e) {
|
|
2585
1855
|
logger2.log(e);
|
|
2586
|
-
showToast({ label:
|
|
1856
|
+
showToast({ label: sofT(($) => $["unableToUploadDocument"]), variant: "error" });
|
|
2587
1857
|
}
|
|
2588
1858
|
}
|
|
2589
1859
|
};
|
|
2590
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
RadioGroup,
|
|
1860
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
1861
|
+
Modal,
|
|
1862
|
+
{
|
|
1863
|
+
onClose: handleModalClose,
|
|
1864
|
+
ariaLabel: sofT(($) => $["uploadASupportingDocument"]),
|
|
1865
|
+
inset: true,
|
|
1866
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsModal, children: [
|
|
1867
|
+
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h2", children: sofT(($) => $["uploadASupportingDocument"]) }),
|
|
1868
|
+
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsUploadModalContent, children: [
|
|
1869
|
+
businessLines?.length > 1 ? /* @__PURE__ */ jsx(
|
|
1870
|
+
Field,
|
|
2602
1871
|
{
|
|
2603
|
-
|
|
1872
|
+
el: "fieldset",
|
|
2604
1873
|
name: "service",
|
|
2605
|
-
className: styles.
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
1874
|
+
className: styles.sourceOfFundsUploadModalContentField,
|
|
1875
|
+
label: sofT(($) => $["whatFinancialProductIsThisFor"]),
|
|
1876
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1877
|
+
RadioGroup,
|
|
1878
|
+
{
|
|
1879
|
+
...childProps,
|
|
1880
|
+
name: "service",
|
|
1881
|
+
className: styles.sourceOfFundsUploadModalContentFieldRadioGroup,
|
|
1882
|
+
items: serviceRadioItems,
|
|
1883
|
+
value: selectedService,
|
|
1884
|
+
disabled: false,
|
|
1885
|
+
onChange: onRadioChange,
|
|
1886
|
+
"aria-required": true
|
|
1887
|
+
}
|
|
1888
|
+
)
|
|
2611
1889
|
}
|
|
2612
|
-
)
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
selectedService && /* @__PURE__ */ jsx(
|
|
2616
|
-
Field,
|
|
2617
|
-
{
|
|
2618
|
-
name: "documentType",
|
|
2619
|
-
label: i18n.get("documentType"),
|
|
2620
|
-
"data-testid": "documentType",
|
|
2621
|
-
className: styles.sourceOfFundsUploadModalContentField,
|
|
2622
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
2623
|
-
Select,
|
|
1890
|
+
) : null,
|
|
1891
|
+
selectedService && /* @__PURE__ */ jsx(
|
|
1892
|
+
Field,
|
|
2624
1893
|
{
|
|
2625
|
-
...childProps,
|
|
2626
1894
|
name: "documentType",
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
1895
|
+
label: commonT(($) => $["documentType"]),
|
|
1896
|
+
"data-testid": "documentType",
|
|
1897
|
+
className: styles.sourceOfFundsUploadModalContentField,
|
|
1898
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1899
|
+
Select,
|
|
1900
|
+
{
|
|
1901
|
+
...childProps,
|
|
1902
|
+
name: "documentType",
|
|
1903
|
+
placeholder: commonT(($) => $["selectOne"]),
|
|
1904
|
+
selected: documentType,
|
|
1905
|
+
items: documentLists,
|
|
1906
|
+
onChange: onDocumentTypeChange
|
|
1907
|
+
}
|
|
1908
|
+
)
|
|
1909
|
+
}
|
|
1910
|
+
),
|
|
1911
|
+
documentRequirements?.length ? /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsUploadModalContentRequirementsContainer, children: [
|
|
1912
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "div", children: sofT(($) => $["documentShouldShow"]) }),
|
|
1913
|
+
/* @__PURE__ */ jsx("ul", { children: documentRequirements?.map((requirement) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Typography, { variant: "body-stronger", el: "div", children: sofT(($) => $[requirement]) }) }, requirement)) })
|
|
1914
|
+
] }) : null,
|
|
1915
|
+
canUpload && /* @__PURE__ */ jsx(
|
|
1916
|
+
Dropzone,
|
|
1917
|
+
{
|
|
1918
|
+
disabled: !canUpload,
|
|
1919
|
+
onChange: onFileUpload,
|
|
1920
|
+
showMinimal: true,
|
|
1921
|
+
hidePageCount: true,
|
|
1922
|
+
maxSize: 4194304,
|
|
1923
|
+
enableTracking: true,
|
|
1924
|
+
name: "documentField",
|
|
1925
|
+
allowedFileTypes: ["JPG", "JPEG", "PNG", "PDF"]
|
|
2631
1926
|
}
|
|
2632
1927
|
)
|
|
2633
|
-
}
|
|
2634
|
-
)
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
/* @__PURE__ */ jsx("ul", { children: documentRequirements?.map((requirement) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Typography, { variant: "body-stronger", el: "div", children: i18n.get(requirement) }) }, requirement)) })
|
|
2638
|
-
] }) : null,
|
|
2639
|
-
canUpload && /* @__PURE__ */ jsx(
|
|
2640
|
-
Dropzone,
|
|
2641
|
-
{
|
|
2642
|
-
disabled: !canUpload,
|
|
2643
|
-
onChange: onFileUpload,
|
|
2644
|
-
showMinimal: true,
|
|
2645
|
-
hidePageCount: true,
|
|
2646
|
-
maxSize: 4194304,
|
|
2647
|
-
enableTracking: true,
|
|
2648
|
-
name: "documentField",
|
|
2649
|
-
allowedFileTypes: ["JPG", "JPEG", "PNG", "PDF"]
|
|
2650
|
-
}
|
|
2651
|
-
)
|
|
2652
|
-
] })
|
|
2653
|
-
] }) }) });
|
|
1928
|
+
] })
|
|
1929
|
+
] })
|
|
1930
|
+
}
|
|
1931
|
+
) });
|
|
2654
1932
|
};
|
|
2655
1933
|
const SourceOfFundsUpload = ({
|
|
2656
1934
|
businessLines,
|
|
@@ -2658,12 +1936,13 @@ const SourceOfFundsUpload = ({
|
|
|
2658
1936
|
legalEntity,
|
|
2659
1937
|
handleNavigateToSummary
|
|
2660
1938
|
}) => {
|
|
2661
|
-
const { i18n } = useI18nContext();
|
|
2662
1939
|
const [showUploadModal, setShowUploadModal] = useState(false);
|
|
2663
1940
|
const [docToDelete, setDocToDelete] = useState(void 0);
|
|
2664
1941
|
const { showToast } = useToastContext();
|
|
2665
1942
|
const logger2 = createLogger();
|
|
2666
1943
|
const queryClient = useQueryClient();
|
|
1944
|
+
const { t: sofT } = useTranslation("sof");
|
|
1945
|
+
const { t: commonT } = useTranslation("common");
|
|
2667
1946
|
const handleModalClose = async () => {
|
|
2668
1947
|
setShowUploadModal(false);
|
|
2669
1948
|
await queryClient.invalidateQueries({
|
|
@@ -2678,6 +1957,29 @@ const SourceOfFundsUpload = ({
|
|
|
2678
1957
|
[legalEntity]
|
|
2679
1958
|
);
|
|
2680
1959
|
const sourceOfFundsCategories = businessLines?.map((line) => line.sourceOfFunds?.type)?.filter(Boolean);
|
|
1960
|
+
const getTranslatedCategoryName = (categoryKey) => {
|
|
1961
|
+
const translationKey2 = sofCategoryItemMapper[categoryKey];
|
|
1962
|
+
if (!categoryKey || !translationKey2) {
|
|
1963
|
+
return "";
|
|
1964
|
+
}
|
|
1965
|
+
return sofT(($) => $[translationKey2]).toLowerCase();
|
|
1966
|
+
};
|
|
1967
|
+
let translationKey;
|
|
1968
|
+
let translationParams;
|
|
1969
|
+
if (sourceOfFundsCategories?.length > 1) {
|
|
1970
|
+
translationKey = "weNeedProofOfFundingForMultipleCategories";
|
|
1971
|
+
translationParams = {
|
|
1972
|
+
category1_name: getTranslatedCategoryName(sourceOfFundsCategories[0]),
|
|
1973
|
+
category2_name: getTranslatedCategoryName(sourceOfFundsCategories[1])
|
|
1974
|
+
};
|
|
1975
|
+
} else if (sourceOfFundsCategories?.length === 1) {
|
|
1976
|
+
translationKey = "weNeedProofOfFunding";
|
|
1977
|
+
translationParams = {
|
|
1978
|
+
category_name: getTranslatedCategoryName(sourceOfFundsCategories[0])
|
|
1979
|
+
};
|
|
1980
|
+
} else {
|
|
1981
|
+
translationKey = "weNeedProofOfFundingForNoCategory";
|
|
1982
|
+
}
|
|
2681
1983
|
const handleFileDelete = async (documentId) => {
|
|
2682
1984
|
if (documentUtils.deleteDocument) {
|
|
2683
1985
|
try {
|
|
@@ -2686,48 +1988,33 @@ const SourceOfFundsUpload = ({
|
|
|
2686
1988
|
queryKey: ["legalEntity", legalEntity.id]
|
|
2687
1989
|
});
|
|
2688
1990
|
showToast({
|
|
2689
|
-
label:
|
|
1991
|
+
label: sofT(($) => $["documentDeletedSuccessfully"]),
|
|
2690
1992
|
variant: "success",
|
|
2691
1993
|
duration: 1e4
|
|
2692
1994
|
});
|
|
2693
1995
|
} catch (e) {
|
|
2694
1996
|
logger2.log(e);
|
|
2695
|
-
showToast({ label:
|
|
1997
|
+
showToast({ label: sofT(($) => $["unableToDeleteDocument"]), variant: "error" });
|
|
2696
1998
|
}
|
|
2697
1999
|
}
|
|
2698
2000
|
};
|
|
2699
2001
|
return /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsUploadList, children: [
|
|
2700
2002
|
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsUploadListHeading, children: [
|
|
2701
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children:
|
|
2702
|
-
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsWrapperDescription, children:
|
|
2703
|
-
values: {
|
|
2704
|
-
category1_name: sourceOfFundsCategories[0] ? i18n.get(
|
|
2705
|
-
`sofType${toCapitalized(sourceOfFundsCategories[0])}Label`
|
|
2706
|
-
).toLowerCase() : "",
|
|
2707
|
-
category2_name: sourceOfFundsCategories[1] ? i18n.get(
|
|
2708
|
-
`sofType${toCapitalized(sourceOfFundsCategories[1])}Label`
|
|
2709
|
-
).toLowerCase() : ""
|
|
2710
|
-
}
|
|
2711
|
-
}) : i18n.get("weNeedProofOfFunding", {
|
|
2712
|
-
values: {
|
|
2713
|
-
category_name: sourceOfFundsCategories[0] ? i18n.get(
|
|
2714
|
-
`sofType${toCapitalized(sourceOfFundsCategories[0])}Label`
|
|
2715
|
-
).toLowerCase() : ""
|
|
2716
|
-
}
|
|
2717
|
-
}) })
|
|
2003
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: sofT(($) => $["supportingDocuments"]) }),
|
|
2004
|
+
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsWrapperDescription, children: sofT(($) => $[translationKey], translationParams) })
|
|
2718
2005
|
] }),
|
|
2719
2006
|
documents?.map((document) => /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingFinancierGroup, children: [
|
|
2720
2007
|
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAvatarGroup, children: [
|
|
2721
2008
|
/* @__PURE__ */ jsx(Avatar, { iconName: "document", circle: true }),
|
|
2722
2009
|
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAddressGroup, children: [
|
|
2723
2010
|
/* @__PURE__ */ jsx(Typography, { el: "div", variant: "body-strongest", children: document.fileName }),
|
|
2724
|
-
/* @__PURE__ */ jsx(Typography, { el: "div", variant: "caption", children: parseSOFDocumentDescription(
|
|
2011
|
+
/* @__PURE__ */ jsx(Typography, { el: "div", variant: "caption", children: parseSOFDocumentDescription(sofT, document.description) })
|
|
2725
2012
|
] })
|
|
2726
2013
|
] }),
|
|
2727
2014
|
/* @__PURE__ */ jsx(
|
|
2728
2015
|
IconButton,
|
|
2729
2016
|
{
|
|
2730
|
-
ariaLabel:
|
|
2017
|
+
ariaLabel: commonT(($) => $["deleteDocument"]),
|
|
2731
2018
|
variant: "tertiary",
|
|
2732
2019
|
icon: "cross",
|
|
2733
2020
|
onClick: () => setDocToDelete(document),
|
|
@@ -2743,22 +2030,19 @@ const SourceOfFundsUpload = ({
|
|
|
2743
2030
|
onClick: openUploadModal,
|
|
2744
2031
|
"data-testId": "source-of-funds-upload-button",
|
|
2745
2032
|
children: /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAvatarGroup, children: [
|
|
2746
|
-
/* @__PURE__ */ jsx(Avatar, { label:
|
|
2747
|
-
/* @__PURE__ */ jsx(Typography, { el: "div", variant: "body-strongest", children:
|
|
2033
|
+
/* @__PURE__ */ jsx(Avatar, { label: sofT(($) => $["addDocument"]), iconName: "plus", circle: true }),
|
|
2034
|
+
/* @__PURE__ */ jsx(Typography, { el: "div", variant: "body-strongest", children: sofT(($) => $["addDocument"]) })
|
|
2748
2035
|
] })
|
|
2749
2036
|
}
|
|
2750
2037
|
),
|
|
2751
|
-
handleNavigateToSummary && /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedActions, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleNavigateToSummary, children: documents?.length > 0 ?
|
|
2038
|
+
handleNavigateToSummary && /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedActions, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleNavigateToSummary, children: documents?.length > 0 ? commonT(($) => $["finish"]) : commonT(($) => $["cancel"]) }) }),
|
|
2752
2039
|
!!docToDelete && /* @__PURE__ */ jsx(
|
|
2753
2040
|
Confirm,
|
|
2754
2041
|
{
|
|
2755
|
-
title:
|
|
2756
|
-
|
|
2757
|
-
values: {
|
|
2758
|
-
deleteDocName: docToDelete?.fileName || ""
|
|
2759
|
-
}
|
|
2042
|
+
title: sofT(($) => $["areYouSureYouWantToDeleteThisDocument"], {
|
|
2043
|
+
documentName: docToDelete?.fileName || ""
|
|
2760
2044
|
}),
|
|
2761
|
-
confirmText:
|
|
2045
|
+
confirmText: commonT(($) => $["delete"]),
|
|
2762
2046
|
onConfirm: () => handleFileDelete(docToDelete?.id),
|
|
2763
2047
|
onCancel: () => setDocToDelete(void 0),
|
|
2764
2048
|
critical: true
|
|
@@ -2794,18 +2078,13 @@ function SourceOfFundsDropin({
|
|
|
2794
2078
|
} = useStateContext();
|
|
2795
2079
|
const formValidity = currentState.validityByForm;
|
|
2796
2080
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
2797
|
-
const {
|
|
2081
|
+
const { t: sofT } = useTranslation("sof");
|
|
2798
2082
|
const userEvents = useAnalyticsContext();
|
|
2799
2083
|
const { showToast } = useToastContext();
|
|
2800
|
-
const { data:
|
|
2084
|
+
const { data: sofBusinessLines, isLoading: isLoadingBusinessLines } = useBusinessLines(ALLOWED_SOF_SERVICES);
|
|
2801
2085
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
2802
2086
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
2803
2087
|
const { mutateAsync: updateSoFMutation } = useUpdateSourceOfFunds();
|
|
2804
|
-
const filteredBusinessLines = useMemo(() => {
|
|
2805
|
-
return businessLinesData?.filter(
|
|
2806
|
-
(businessLine) => ALLOWED_SOF_SERVICES.includes(businessLine.service)
|
|
2807
|
-
);
|
|
2808
|
-
}, [businessLinesData]);
|
|
2809
2088
|
const isSoFDocumentMissing = useMemo(
|
|
2810
2089
|
() => legalEntity?.problems?.some(
|
|
2811
2090
|
(problem) => problem?.verificationErrors?.some(
|
|
@@ -2814,24 +2093,24 @@ function SourceOfFundsDropin({
|
|
|
2814
2093
|
) ?? false,
|
|
2815
2094
|
[legalEntity?.problems]
|
|
2816
2095
|
);
|
|
2817
|
-
const idsToFetch =
|
|
2096
|
+
const idsToFetch = sofBusinessLines?.map((businessLine) => businessLine.sourceOfFunds?.originatorLegalEntityId).filter((id) => Boolean(id)) ?? [];
|
|
2818
2097
|
const legalEntityResults = useLegalEntities(idsToFetch, {
|
|
2819
2098
|
staleTime: 5 * 60 * 1e3
|
|
2820
2099
|
// 5 minutes
|
|
2821
2100
|
});
|
|
2822
2101
|
const areLegalEntitiesLoading = legalEntityResults.some((result) => result.isLoading);
|
|
2823
2102
|
const normalizedBusinessLines = useMemo(() => {
|
|
2824
|
-
if (!
|
|
2103
|
+
if (!sofBusinessLines) {
|
|
2825
2104
|
return null;
|
|
2826
2105
|
}
|
|
2827
|
-
return
|
|
2106
|
+
return sofBusinessLines.map((businessLine, index) => {
|
|
2828
2107
|
const result = legalEntityResults[index];
|
|
2829
2108
|
let updatedBusinessLine = { ...businessLine };
|
|
2830
2109
|
if (result && result.data) {
|
|
2831
2110
|
updatedBusinessLine = parseOriginatorDetails(result.data, updatedBusinessLine);
|
|
2832
2111
|
} else if (result && result.isError) {
|
|
2833
2112
|
logger.error(`Error fetching legal entity for BL ${businessLine.id}:`, result.error);
|
|
2834
|
-
showToast({ label:
|
|
2113
|
+
showToast({ label: sofT(($) => $["unableToLoadRelatedEntity"]), variant: "error" });
|
|
2835
2114
|
}
|
|
2836
2115
|
if (updatedBusinessLine.sourceOfFunds?.adyenProcessedFunds) {
|
|
2837
2116
|
updatedBusinessLine.sourceOfFunds.type = "adyen";
|
|
@@ -2839,7 +2118,7 @@ function SourceOfFundsDropin({
|
|
|
2839
2118
|
return updatedBusinessLine;
|
|
2840
2119
|
});
|
|
2841
2120
|
}, [
|
|
2842
|
-
|
|
2121
|
+
sofBusinessLines,
|
|
2843
2122
|
// This is because the result of useQueries is not referentially stable, even though the individual query results are, so eslint complains
|
|
2844
2123
|
// Also, this is generally safe, since this is typically what React Query returns
|
|
2845
2124
|
JSON.stringify(
|
|
@@ -2852,7 +2131,7 @@ function SourceOfFundsDropin({
|
|
|
2852
2131
|
)
|
|
2853
2132
|
]);
|
|
2854
2133
|
useEffect(() => {
|
|
2855
|
-
if (
|
|
2134
|
+
if (sofBusinessLines && !areLegalEntitiesLoading && normalizedBusinessLines) {
|
|
2856
2135
|
clearSofErrorMessage();
|
|
2857
2136
|
setLoading(true);
|
|
2858
2137
|
try {
|
|
@@ -2868,13 +2147,13 @@ function SourceOfFundsDropin({
|
|
|
2868
2147
|
}
|
|
2869
2148
|
}
|
|
2870
2149
|
} catch (error) {
|
|
2871
|
-
showToast({ label:
|
|
2150
|
+
showToast({ label: sofT(($) => $["unableToLoadRelatedEntity"]), variant: "error" });
|
|
2872
2151
|
logger.error(error);
|
|
2873
2152
|
} finally {
|
|
2874
2153
|
setLoading(false);
|
|
2875
2154
|
}
|
|
2876
2155
|
}
|
|
2877
|
-
}, [
|
|
2156
|
+
}, [sofBusinessLines, areLegalEntitiesLoading, normalizedBusinessLines, sofT, logger]);
|
|
2878
2157
|
useEffect(() => {
|
|
2879
2158
|
userEvents.addTaskEvent("Landed on page", {
|
|
2880
2159
|
actionType: "start"
|
|
@@ -2911,10 +2190,10 @@ function SourceOfFundsDropin({
|
|
|
2911
2190
|
);
|
|
2912
2191
|
return addValidityToForms(requiredForms, formValidity, problems);
|
|
2913
2192
|
}, [derivedProps, formValidity, problems]);
|
|
2914
|
-
const createOrUpdateOriginator = async (additionalData) => {
|
|
2193
|
+
const createOrUpdateOriginator = async (additionalData, prevAdditionalData) => {
|
|
2915
2194
|
let originatorLegalEntityId;
|
|
2916
2195
|
const sofOriginator = parseSofOriginatorPayload(additionalData);
|
|
2917
|
-
if (additionalData?.originatorLegalEntityId) {
|
|
2196
|
+
if (additionalData?.originatorLegalEntityId && additionalData?.originatorType === prevAdditionalData?.originatorType) {
|
|
2918
2197
|
try {
|
|
2919
2198
|
sofOriginator.id = additionalData?.originatorLegalEntityId;
|
|
2920
2199
|
if (sofOriginator.type) {
|
|
@@ -2951,9 +2230,12 @@ function SourceOfFundsDropin({
|
|
|
2951
2230
|
const sofPayload = getSourceOfFundsPayload(sofType, additionalData);
|
|
2952
2231
|
if (sofType === "donations" || sofType === "inheritance") {
|
|
2953
2232
|
try {
|
|
2954
|
-
sofPayload.originatorLegalEntityId = await createOrUpdateOriginator(
|
|
2233
|
+
sofPayload.originatorLegalEntityId = await createOrUpdateOriginator(
|
|
2234
|
+
additionalData,
|
|
2235
|
+
activeSourceOfFund?.additionalData
|
|
2236
|
+
);
|
|
2955
2237
|
} catch (e) {
|
|
2956
|
-
setSofErrorMessage(e?.message ||
|
|
2238
|
+
setSofErrorMessage(e?.message || sofT(($) => $["errorUpdatingSourceOfFunds"]));
|
|
2957
2239
|
logger.log("Error updating source of funds", e);
|
|
2958
2240
|
}
|
|
2959
2241
|
eventsAdditionalData.originatorType = additionalData?.originatorType ?? "";
|
|
@@ -2977,14 +2259,14 @@ function SourceOfFundsDropin({
|
|
|
2977
2259
|
setActiveSourceOfFund({});
|
|
2978
2260
|
gotoFormByFormIndex(0);
|
|
2979
2261
|
setSofErrorMessage("");
|
|
2980
|
-
showToast({ label:
|
|
2262
|
+
showToast({ label: sofT(($) => $["successAddedFundingSources"]), variant: "success" });
|
|
2981
2263
|
handleHomeClick?.();
|
|
2982
2264
|
} catch (e) {
|
|
2983
|
-
setSofErrorMessage(
|
|
2265
|
+
setSofErrorMessage(sofT(($) => $["errorUpdatingSourceOfFunds"]));
|
|
2984
2266
|
logger.log("Error updating source of funds", e);
|
|
2985
2267
|
}
|
|
2986
2268
|
setLoadingStatus("success");
|
|
2987
|
-
}, [currentState?.data, handleHomeClick]);
|
|
2269
|
+
}, [currentState?.data, activeSourceOfFund, handleHomeClick]);
|
|
2988
2270
|
const handleGettingStarted = useCallback(() => {
|
|
2989
2271
|
setGettingStarted(!gettingStarted);
|
|
2990
2272
|
}, [gettingStarted]);
|
|
@@ -3078,8 +2360,8 @@ const SourceOfFundsPage = ({ onSubmit, handleHomeClick }) => {
|
|
|
3078
2360
|
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
3079
2361
|
const capabilityProblems = useCapabilityProblems();
|
|
3080
2362
|
const { i18n } = useTranslation();
|
|
3081
|
-
addResourceBundles(i18n,
|
|
3082
|
-
{ ns: "
|
|
2363
|
+
addResourceBundles(i18n, [
|
|
2364
|
+
{ ns: "sof", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../tasks/SourceOfFundsDropin/language/da-DK.json": () => import("./da-DK-DZwlENGe.js"), "../tasks/SourceOfFundsDropin/language/de-DE.json": () => import("./de-DE-DXR3EpEc.js"), "../tasks/SourceOfFundsDropin/language/en-US.json": () => import("./en-US-CozY33On.js"), "../tasks/SourceOfFundsDropin/language/es-ES.json": () => import("./es-ES-yMXcOjDL.js"), "../tasks/SourceOfFundsDropin/language/fi-FI.json": () => import("./fi-FI-xqnQ38yC.js"), "../tasks/SourceOfFundsDropin/language/fr-FR.json": () => import("./fr-FR-BSynpexF.js"), "../tasks/SourceOfFundsDropin/language/it-IT.json": () => import("./it-IT-C_651bEP.js"), "../tasks/SourceOfFundsDropin/language/nl-NL.json": () => import("./nl-NL-JChnFdCY.js"), "../tasks/SourceOfFundsDropin/language/no-NO.json": () => import("./no-NO--OoWld_l.js"), "../tasks/SourceOfFundsDropin/language/pt-BR.json": () => import("./pt-BR-C0I_kTQ6.js"), "../tasks/SourceOfFundsDropin/language/pt-PT.json": () => import("./pt-PT-Bf4IV7wp.js"), "../tasks/SourceOfFundsDropin/language/sv-SE.json": () => import("./sv-SE-DsPdegWB.js") }), `../tasks/SourceOfFundsDropin/language/${lang}.json`, 5) }
|
|
3083
2365
|
]);
|
|
3084
2366
|
if (!rootLe) {
|
|
3085
2367
|
return /* @__PURE__ */ jsx(Loader, {});
|