@adyen/kyc-components 4.0.1 → 4.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -31
- package/dist/4-people-BtDi7O9A.js +24 -0
- package/dist/AcceptTermsOfServiceComponent-DMAt4BdI.js +650 -0
- package/dist/Accordion-Bvg0x3Mz.js +88 -0
- package/dist/AccountSetupRejected-DkdcpmK6.js +26 -0
- package/dist/ActionBar-AKKiAmMe.js +31 -0
- package/dist/Address-CtHjSBzx.js +1112 -0
- package/dist/Alert-BfbfHD1i.js +169 -0
- package/dist/Avatar-Bf4qSH-S.js +60 -0
- package/dist/BG-HKzabLqZ.js +27 -0
- package/dist/BusinessFinancingComponent-DxwW9KZP.js +55 -0
- package/dist/BusinessFinancingDropin-N_DSHYRu.js +2235 -0
- package/dist/BusinessFinancingPage-unaDjCZH.js +43 -0
- package/dist/BusinessTypeSelectionPage-JTkIjnGQ.js +440 -0
- package/dist/Card-OQuFzmxm.js +90 -0
- package/dist/Checkbox-Bi_0fc1x.js +74 -0
- package/dist/Confirm-CKpYp_5J.js +64 -0
- package/dist/ConstitutionalDocument-BRSGUZEC.js +2361 -0
- package/dist/ContactDetails-DnWFEseS.js +396 -0
- package/dist/ContextGuidance-CzbsgT6C.js +34 -0
- package/dist/ContractViewer-DcQHIGMU.js +935 -0
- package/dist/CountryField-B4WQy2ta.js +66 -0
- package/dist/CreateIndividualComponent-Swzyxw03.js +65 -0
- package/dist/CreateTransferInstrumentComponent-CeE_Q8JD.js +56 -0
- package/dist/Currency-DHXU0Gdw.js +238 -0
- package/dist/CustomerSupport-DtYQbB1A.js +156 -0
- package/dist/DebugModal-C39y9ypZ.js +416 -0
- package/dist/DecisionMakerDetailsPage-BNayhUQ8.js +104 -0
- package/dist/DecisionMakers-BkGj2Qqr.js +858 -0
- package/dist/Dropzone-DyEB_7GZ.js +224 -0
- package/dist/EmbeddedStatus-BOo-inHj.js +97 -0
- package/dist/EndStateLayout-R9pQt832.js +71 -0
- package/dist/EntityAssociation-BKKOMQ4q.js +178 -0
- package/dist/EntityGuidanceStatus-CtuUWykx.js +106 -0
- package/dist/ErrorPanel-DJ-uFV4L.js +194 -0
- package/dist/Field-CmNnfz5n.js +141 -0
- package/dist/FormNavigation-CfFQ7UC8.js +144 -0
- package/dist/FormWrapper-AefMYcpB.js +135 -0
- package/dist/Header-Big_S2UY.js +83 -0
- package/dist/Image-DogJtPYR.js +27 -0
- package/dist/Individual.rules-Cy2RTzkg.js +383 -0
- package/dist/IndividualDropin-BVav94ZL.js +5168 -0
- package/dist/InputDate-C6lCe4Mh.js +43 -0
- package/dist/InputGroup-WBfGDV5F.js +32 -0
- package/dist/InputText-D_BqYXYv.js +134 -0
- package/dist/Introduction-B3dnyHAw.js +256 -0
- package/dist/JpAddress-BolhhPjT.js +329 -0
- package/dist/LandingLayout-4tlusBy1.js +60 -0
- package/dist/LegalCompanyNameField-ChE_IQlE.js +138 -0
- package/dist/LegalRepresentativeDetailsPage-C9GKbpMT.js +55 -0
- package/dist/Link-CyXf5frR.js +35 -0
- package/dist/List-BAzyC6sw.js +83 -0
- package/dist/ListItem-Bt_mPem1.js +69 -0
- package/dist/LoaderWrapper-DW2aG4g9.js +42 -0
- package/dist/ManageIndividualComponent-CogWUNQN.js +46 -0
- package/dist/ManageTermsOfServiceComponent-C4h2qwXq.js +52 -0
- package/dist/ManageTransferInstrumentComponent-Be9R6VAb.js +292 -0
- package/dist/MaskedInput-DQGErUrs.js +811 -0
- package/dist/MaybeModal-Cfq9Y-Oq.js +36 -0
- package/dist/Modal-CrmpkeY0.js +147 -0
- package/dist/Name-EUCnwto8.js +81 -0
- package/dist/OnboardingDropinComponent-BYxARRXY.js +2672 -0
- package/dist/PayoutDetailsDropin-BW6P2kkQ.js +4972 -0
- package/dist/ProgressBar-B7gTQncy.js +47 -0
- package/dist/Radio-BMtxBpnn.js +39 -0
- package/dist/RadioGroup-44hvyE1V.js +100 -0
- package/dist/RadioGroupCard-DjEhU8SG.js +152 -0
- package/dist/Review-g-sL7ZDy.js +84 -0
- package/dist/RootBusinessDetailsPage-B-eg9C2m.js +50 -0
- package/dist/RootBusinessLinesPage-EboQFqwd.js +1553 -0
- package/dist/RootIndividualDetailsPage-DHS3qMMB.js +62 -0
- package/dist/Select-DABfPg0f.js +868 -0
- package/dist/SignPCIComponent-BqoTovzh.js +307 -0
- package/dist/SingpassSelection-DxiigpyU.js +132 -0
- package/dist/SoleProprietorshipPage-IgsabHu-.js +50 -0
- package/dist/SourceOfFundsPage-BS1rKVKe.js +2162 -0
- package/dist/Spacer-BK3jDget.js +18 -0
- package/dist/StepProgressIndicator-BlYqsR2g.js +78 -0
- package/dist/StoreProvider-CISxF69y.js +4845 -0
- package/dist/StructuredList-BNLhk_zV.js +61 -0
- package/dist/Summary-hZQMYY8b.js +220 -0
- package/dist/TaskVerificationStatus-BkICmo3e.js +129 -0
- package/dist/TaxInformationField-DA1SER9m.js +3750 -0
- package/dist/TaxReportingDropin-BQy2CrfP.js +503 -0
- package/dist/TextArea-BVmNrRme.js +103 -0
- package/dist/TileGroup-BexJEHjV.js +203 -0
- package/dist/TrustDetailsPage-4CSRQyws.js +2187 -0
- package/dist/TrustMemberCompanyPage-DoeI_oPE.js +68 -0
- package/dist/TrustMemberIndividualPage-Bd_0eP6B.js +64 -0
- package/dist/TrustMemberRoleAndTypePage-5ic4OwLo.js +1081 -0
- package/dist/TrustMembersOverview-CpMvaz8A.js +439 -0
- package/dist/UnincorporatedPartnershipIndividualPage-CG65q5UX.js +63 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-BHlOu-QG.js +71 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-ChWfvQr3.js +292 -0
- package/dist/UnincorporatedPartnershipMembersOverview-BSpPPpnB.js +173 -0
- package/dist/VerificationErrorAlert-DlCMbbyt.js +60 -0
- package/dist/ViewVerificationStatusComponent-PYtbeouG.js +181 -0
- package/dist/accountHolderUtils-C75xtw4E.js +66 -0
- package/dist/adyen-business-financing.js +13 -5
- package/dist/adyen-individual-configuration.js +8 -4
- package/dist/adyen-individual-status.js +5 -4
- package/dist/adyen-invited-decision-maker.js +87 -0
- package/dist/adyen-kyc-components.js +23 -21
- package/dist/adyen-onboarding.js +8 -4
- package/dist/adyen-terms-of-service-management.js +8 -4
- package/dist/adyen-terms-of-service-status.js +5 -4
- package/dist/adyen-transfer-instrument-configuration.js +8 -4
- package/dist/adyen-transfer-instrument-management.js +5 -4
- package/dist/adyen-verification-status.js +8 -4
- package/dist/arrow-right-BoqwUH_d.js +14 -0
- package/dist/bafinUtils-DsY8ws1M.js +80 -0
- package/dist/bag-BXVWLrwo.js +14 -0
- package/dist/bank-1GvaHPAZ.js +14 -0
- package/dist/bg-BG-6XzbmxcW.js +13 -0
- package/dist/bg-BG-C6kad3Qr.js +61 -0
- package/dist/bg-BG-CEipapl4.js +63 -0
- package/dist/bg-BG-CFuVZnaC.js +13 -0
- package/dist/bg-BG-DAqp35Dx.js +13 -0
- package/dist/bg-BG-DMNRRZZE.js +75 -0
- package/dist/bg-BG-DyX-yYYI.js +13 -0
- package/dist/bg-BG-K7feXvEc.js +38 -0
- package/dist/bg-BG-zZhDshGi.js +65 -0
- package/dist/bin-Ba-3ll8T.js +18 -0
- package/dist/business-lines-BAqTbnBw.js +135 -0
- package/dist/capital-9TKHySO7.js +17 -0
- package/dist/cash-stack-DwYu4xNy.js +22 -0
- package/dist/certificate-N2YFedpI.js +17 -0
- package/dist/checkmark-D9dGhGpG.js +14 -0
- package/dist/checkmark-circle-CFWClLQ6.js +20 -0
- package/dist/checkmark-circle-fill-DEB-tuGl.js +17 -0
- package/dist/checkmark-small-D3VNx2lo.js +14 -0
- package/dist/chevron-down-C7SUSYfl.js +14 -0
- package/dist/chevron-left-BXmd-S46.js +14 -0
- package/dist/chevron-right-jE6RwM2B.js +14 -0
- package/dist/chevron-up-BdfNcqzq.js +14 -0
- package/dist/circle-BJPTMCWB.js +17 -0
- package/dist/circle-small-filled-BuO8Vg8j.js +14 -0
- package/dist/clock-DAzaBRWk.js +20 -0
- package/dist/coins-DYdzG5e_.js +17 -0
- package/dist/commonValidators-Bld1N1vF.js +24 -0
- package/dist/company-types-value-D_mKv5PT.js +23 -0
- package/dist/contract-BfJb1t6M.js +14 -0
- package/dist/cross-CDS_eot4.js +14 -0
- package/dist/cross-circle-fill-C-EJ57Yn.js +17 -0
- package/dist/cross-circle-fill-small-DkPjsuBH.js +14 -0
- package/dist/cs-CZ-BD5bYeuJ.js +13 -0
- package/dist/cs-CZ-BHbWTH_v.js +63 -0
- package/dist/cs-CZ-C6vEQ8P9.js +13 -0
- package/dist/cs-CZ-CYQO0o5V.js +38 -0
- package/dist/cs-CZ-CYsR__kj.js +13 -0
- package/dist/cs-CZ-C_GFp3nV.js +61 -0
- package/dist/cs-CZ-Ck22NTT9.js +65 -0
- package/dist/cs-CZ-DXSMRqPu.js +75 -0
- package/dist/cs-CZ-Ke47w0bj.js +13 -0
- package/dist/currency-CrdnaaDu.js +35 -0
- package/dist/da-DK-B3Pg-MWO.js +13 -0
- package/dist/da-DK-C60mLiV1.js +61 -0
- package/dist/da-DK-CGWvmdkq.js +38 -0
- package/dist/da-DK-Cd5IQPv3.js +75 -0
- package/dist/da-DK-Cx4-hLO1.js +13 -0
- package/dist/da-DK-DQ4ZYSea.js +65 -0
- package/dist/da-DK-DzcTI92X.js +13 -0
- package/dist/da-DK-h8DYQ_Iq.js +13 -0
- package/dist/da-DK-vcVNQJbX.js +63 -0
- package/dist/datasetUtil-BHQp0-xL.js +58 -0
- package/dist/de-DE-C9NH2zMh.js +75 -0
- package/dist/de-DE-CL8D8vKZ.js +13 -0
- package/dist/de-DE-CWEW2yqg.js +63 -0
- package/dist/de-DE-CkbOZ6S_.js +65 -0
- package/dist/de-DE-Cvz1TGdB.js +61 -0
- package/dist/de-DE-DHDJhahG.js +38 -0
- package/dist/de-DE-LQE_LFFL.js +13 -0
- package/dist/de-DE-S6qDey1L.js +13 -0
- package/dist/de-DE-dPfrbCii.js +13 -0
- package/dist/debouncedInputEvent-Cv2S512Y.js +46 -0
- package/dist/decision-makers-group-DrvpnEqj.js +1944 -0
- package/dist/digital-wallet-Bx5YM1LY.js +46 -0
- package/dist/document-1-qlSTF558.js +14 -0
- package/dist/document-blurred-BiWap0xs.js +37 -0
- package/dist/document-cut-off-aQezqOif.js +32 -0
- package/dist/document-expired-BhBXaWWQ.js +38 -0
- package/dist/document-front-DYuhZGeQ.js +30 -0
- package/dist/document-person-CDbnTOdV.js +20 -0
- package/dist/download-BZQB1WkZ.js +17 -0
- package/dist/dropinUtils-CAiDwa5U.js +200 -0
- package/dist/edit-1-DAqtnOIx.js +14 -0
- package/dist/el-GR-B78b9rSH.js +63 -0
- package/dist/el-GR-DGbzdIL0.js +13 -0
- package/dist/el-GR-DHNlnOwf.js +38 -0
- package/dist/el-GR-DSlgFwLb.js +61 -0
- package/dist/el-GR-DTHQslLc.js +75 -0
- package/dist/el-GR-Dazirlmt.js +13 -0
- package/dist/el-GR-DoS_Va-n.js +13 -0
- package/dist/el-GR-DudORw4U.js +65 -0
- package/dist/el-GR-Dvv3-Qib.js +13 -0
- package/dist/en-US-AgtwE4Fl.js +63 -0
- package/dist/en-US-BSQXKu6d.js +54 -0
- package/dist/en-US-CjjPhkB5.js +65 -0
- package/dist/en-US-D1sB335h.js +61 -0
- package/dist/en-US-DLY20x1O.js +13 -0
- package/dist/en-US-DoiQhi0j.js +38 -0
- package/dist/en-US-G607HIyo.js +75 -0
- package/dist/en-US-cVpRgdC8.js +13 -0
- package/dist/es-ES--IvNed_Q.js +13 -0
- package/dist/es-ES-BAolMrZ0.js +65 -0
- package/dist/es-ES-BYl5-PFR.js +13 -0
- package/dist/es-ES-CDgjGql5.js +63 -0
- package/dist/es-ES-CxnsKEh4.js +38 -0
- package/dist/es-ES-DK-7qtDf.js +75 -0
- package/dist/es-ES-DdGmXdxO.js +13 -0
- package/dist/es-ES-Dj5-YMmZ.js +61 -0
- package/dist/es-ES-Vn4AcK9-.js +13 -0
- package/dist/et-EE-4fHYOoff.js +13 -0
- package/dist/et-EE-BOIrYrz9.js +65 -0
- package/dist/et-EE-BQixWUEV.js +38 -0
- package/dist/et-EE-BeZJ4Ub1.js +13 -0
- package/dist/et-EE-Bij5j-z5.js +61 -0
- package/dist/et-EE-CsTXSlnY.js +13 -0
- package/dist/et-EE-D0PMC4ie.js +63 -0
- package/dist/et-EE-D5SNtVsM.js +13 -0
- package/dist/et-EE-DNC4hcxm.js +75 -0
- package/dist/external-link-Cg6pJaSJ.js +14 -0
- package/dist/fi-FI-57-xkioo.js +38 -0
- package/dist/fi-FI-B2xHiSHi.js +61 -0
- package/dist/fi-FI-BJLU1JHw.js +75 -0
- package/dist/fi-FI-BUixKfXH.js +13 -0
- package/dist/fi-FI-CIYa9SyS.js +13 -0
- package/dist/fi-FI-CWIaV6Iz.js +13 -0
- package/dist/fi-FI-CsZlDJFb.js +63 -0
- package/dist/fi-FI-D8WrLxxq.js +65 -0
- package/dist/fi-FI-DFxljML-.js +13 -0
- package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
- package/dist/filterProblemsByTaskForms-Cz7iQtms.js +30 -0
- package/dist/form-rules-DhbF2mY4.js +13 -0
- package/dist/formUtils-BD7sDa8f.js +107 -0
- package/dist/fr-FR-B2je0smB.js +75 -0
- package/dist/fr-FR-BM-qNLci.js +13 -0
- package/dist/fr-FR-Beljeilc.js +65 -0
- package/dist/fr-FR-BxiX8Zfi.js +38 -0
- package/dist/fr-FR-CCb4Oux7.js +13 -0
- package/dist/fr-FR-CNQtWSXx.js +61 -0
- package/dist/fr-FR-DPehHVb6.js +13 -0
- package/dist/fr-FR-VoxPkXSc.js +63 -0
- package/dist/fr-FR-l5z31r7i.js +13 -0
- package/dist/funds-in-CInoUdmG.js +21 -0
- package/dist/getName-DkzImyZO.js +41 -0
- package/dist/getProblemsForEntity-BPv4f9Tx.js +24 -0
- package/dist/getProps-Cc3J2-z9.js +148 -0
- package/dist/getTrustedFields-C5-mXl-l.js +64 -0
- package/dist/gift-omNInZeB.js +14 -0
- package/dist/graph-DunG_uu1.js +21 -0
- package/dist/graph-up-BZze4i6m.js +20 -0
- package/dist/headquarter-BhpSibFO.js +21 -0
- package/dist/hotel-Cp7VgGCJ.js +22 -0
- package/dist/house-BhyBQdR3.js +21 -0
- package/dist/hr-HR-B6U5Rzzw.js +61 -0
- package/dist/hr-HR-BAI0N9bo.js +13 -0
- package/dist/hr-HR-BF74vdPD.js +13 -0
- package/dist/hr-HR-Bjx-KdVs.js +13 -0
- package/dist/hr-HR-BtowKWUi.js +13 -0
- package/dist/hr-HR-BynZTNSB.js +38 -0
- package/dist/hr-HR-C0NLgF1r.js +75 -0
- package/dist/hr-HR-CbdP2tk-.js +63 -0
- package/dist/hr-HR-lIHN6Yl2.js +65 -0
- package/dist/hu-HU-B-lUkFnQ.js +13 -0
- package/dist/hu-HU-BLLoj5CX.js +61 -0
- package/dist/hu-HU-BpNDP1I8.js +13 -0
- package/dist/hu-HU-BtRIDozk.js +38 -0
- package/dist/hu-HU-CWdwNCev.js +65 -0
- package/dist/hu-HU-DU-5ujQK.js +75 -0
- package/dist/hu-HU-DYhMVR_c.js +13 -0
- package/dist/hu-HU-MHIPehPS.js +13 -0
- package/dist/hu-HU-pFpTvMiD.js +63 -0
- package/dist/id-blurred-B5lHEP8M.js +59 -0
- package/dist/id-cut-off-Ba1FRzKO.js +55 -0
- package/dist/id-front-CpNWN6nG.js +52 -0
- package/dist/id-glare-DgCQON8k.js +49 -0
- package/dist/iframeWidget-CNWsRmIe.js +234 -0
- package/dist/image-CmB0ioUM.js +17 -0
- package/dist/info-Bb_-xIEK.js +21 -0
- package/dist/info-filled-CK8LB339.js +17 -0
- package/dist/instant-verification-UrnuHTYn.js +40 -0
- package/dist/isEmpty-Pobz7lE7.js +23 -0
- package/dist/isNewEntity-7Vw_eQBr.js +13 -0
- package/dist/it-IT-5a7NHVFo.js +65 -0
- package/dist/it-IT-BAvmkEF8.js +13 -0
- package/dist/it-IT-BRO0Hf5X.js +13 -0
- package/dist/it-IT-Cr20JO4o.js +61 -0
- package/dist/it-IT-D63gRTDc.js +13 -0
- package/dist/it-IT-DOBp2-MP.js +13 -0
- package/dist/it-IT-DZjw9LNC.js +63 -0
- package/dist/it-IT-Dhwa9Ecj.js +75 -0
- package/dist/it-IT-masgjk9F.js +38 -0
- package/dist/ja-JP-B3Y0VVpN.js +152 -0
- package/dist/ja-JP-BZb5ndp9.js +75 -0
- package/dist/ja-JP-BeeuQ_LL.js +61 -0
- package/dist/ja-JP-BqluCflj.js +63 -0
- package/dist/ja-JP-CaUe8KW7.js +27 -0
- package/dist/ja-JP-DL0IjTzn.js +13 -0
- package/dist/ja-JP-DSvZhFNY.js +65 -0
- package/dist/ja-JP-GX3l4yqn.js +125 -0
- package/dist/ja-JP-g6VOUGXZ.js +136 -0
- package/dist/ja-JP-vv3-YsHU.js +38 -0
- package/dist/japanSupportUtils-Cgw9dBsr.js +16 -0
- package/dist/jpAddressSchema-DEOyz9Yo.js +26 -0
- package/dist/localizeDateString-CAnd4W1y.js +27 -0
- package/dist/location-itJfxrDQ.js +17 -0
- package/dist/lt-LT-0WbfHH_o.js +61 -0
- package/dist/lt-LT-2BMif2Bk.js +38 -0
- package/dist/lt-LT-BX8dOAzK.js +13 -0
- package/dist/lt-LT-C8n1GZoU.js +75 -0
- package/dist/lt-LT-CXw4ywLM.js +63 -0
- package/dist/lt-LT-CgalYpUh.js +65 -0
- package/dist/lt-LT-DDs3ngzd.js +13 -0
- package/dist/lt-LT-DpszrZ9m.js +13 -0
- package/dist/lt-LT-WRulV980.js +13 -0
- package/dist/lv-LV-B3IqVQos.js +13 -0
- package/dist/lv-LV-BZN4-Xat.js +75 -0
- package/dist/lv-LV-BuuUUumH.js +61 -0
- package/dist/lv-LV-C9Dhkruv.js +13 -0
- package/dist/lv-LV-CHdEDRVO.js +38 -0
- package/dist/lv-LV-CmB2-IO5.js +13 -0
- package/dist/lv-LV-DYqBaW2-.js +63 -0
- package/dist/lv-LV-aAd9SEqx.js +65 -0
- package/dist/lv-LV-dA8yYdKe.js +13 -0
- package/dist/mail-VHTlAusn.js +14 -0
- package/dist/manual-verification-BO8zgAYT.js +41 -0
- package/dist/mapExistingFile-BZXo7HtO.js +230 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-B2GyvHW2.js +162 -0
- package/dist/mapLegalEntityToIndividualSchema-oeKNb1EG.js +206 -0
- package/dist/mapTransferInstrumentToPayoutAccount-C4zz9v3R.js +34 -0
- package/dist/minus-circle-filled-ZhtJ0GD3.js +17 -0
- package/dist/nl-NL-B0fvINJj.js +75 -0
- package/dist/nl-NL-CmURERx_.js +65 -0
- package/dist/nl-NL-CnvvqAEg.js +13 -0
- package/dist/nl-NL-D1b5RUJ0.js +38 -0
- package/dist/nl-NL-DV4NqPVW.js +13 -0
- package/dist/nl-NL-KQ6bciOb.js +13 -0
- package/dist/nl-NL-KsfqCp2v.js +61 -0
- package/dist/nl-NL-SjOGmGk5.js +13 -0
- package/dist/nl-NL-lcNM54vV.js +63 -0
- package/dist/no-NO-B9618F4_.js +13 -0
- package/dist/no-NO-BAWVf0GX.js +13 -0
- package/dist/no-NO-BdG6WnpB.js +61 -0
- package/dist/no-NO-CIKbQbKT.js +13 -0
- package/dist/no-NO-CTrVITNu.js +63 -0
- package/dist/no-NO-Dkh4SWbB.js +38 -0
- package/dist/no-NO-Ds3VioxT.js +13 -0
- package/dist/no-NO-Jw7Gae-a.js +75 -0
- package/dist/no-NO-qyqWODMp.js +65 -0
- package/dist/onfido-logo-BSkKPH10.js +14 -0
- package/dist/options-horizontal-GuXvLvV3.js +18 -0
- package/dist/partner-QD27Vy4w.js +18 -0
- package/dist/passport-blurred-CVG493IJ.js +59 -0
- package/dist/passport-cut-off-COzA_TmB.js +56 -0
- package/dist/passport-front-WJleLixT.js +52 -0
- package/dist/passport-front-green-CZVkCa1n.js +232 -0
- package/dist/passport-glare-BP5WnJZj.js +50 -0
- package/dist/patternValidators-B_gZ9OEK.js +83 -0
- package/dist/pay-by-link-plane-BpY8Q6-B.js +22 -0
- package/dist/payout-DtB68BcZ.js +20 -0
- package/dist/payout-verification-instant-BzpfOQLD.js +41 -0
- package/dist/payout-verification-manual-gNEoeZkV.js +90 -0
- package/dist/person-IVZG3t3_.js +17 -0
- package/dist/pl-PL-BgbxWHGE.js +13 -0
- package/dist/pl-PL-BkGihn5Q.js +38 -0
- package/dist/pl-PL-Bmaq3IC3.js +75 -0
- package/dist/pl-PL-CErRPlR2.js +63 -0
- package/dist/pl-PL-CTOkaDMG.js +13 -0
- package/dist/pl-PL-DEMxxz7h.js +13 -0
- package/dist/pl-PL-DW9eaUml.js +61 -0
- package/dist/pl-PL-DqzUSnFK.js +13 -0
- package/dist/pl-PL-q9azN24o.js +65 -0
- package/dist/plaid-logo-FsZ7kfL-.js +14 -0
- package/dist/plus-DiALAL8-.js +14 -0
- package/dist/plus-circle-filled-BzHtTqEN.js +17 -0
- package/dist/process-field-configurations-DTeQU5DK.js +324 -0
- package/dist/pt-BR-BRdIEO2O.js +38 -0
- package/dist/pt-BR-BaTE6BB_.js +75 -0
- package/dist/pt-BR-BdfWE-a1.js +61 -0
- package/dist/pt-BR-BfDe_8iW.js +13 -0
- package/dist/pt-BR-BxoOF8jB.js +65 -0
- package/dist/pt-BR-CLUsrQAl.js +13 -0
- package/dist/pt-BR-Ct4s4jXV.js +13 -0
- package/dist/pt-BR-DA44Wgbt.js +63 -0
- package/dist/pt-BR-zuqB_CBf.js +13 -0
- package/dist/pt-PT-BLRgiqFj.js +13 -0
- package/dist/pt-PT-BfL7qUzo.js +38 -0
- package/dist/pt-PT-CFY1O_K0.js +13 -0
- package/dist/pt-PT-DBEsmXQX.js +13 -0
- package/dist/pt-PT-F1qPZJ2c.js +13 -0
- package/dist/pt-PT-PIiikho9.js +63 -0
- package/dist/pt-PT-c0ap84_F.js +75 -0
- package/dist/pt-PT-ej54BPbB.js +61 -0
- package/dist/pt-PT-pIChDwiI.js +65 -0
- package/dist/recurring-DKNs9K3x.js +17 -0
- package/dist/reporting-D5ABpLO_.js +16 -0
- package/dist/resolveEnvironment-0tLtiAxj.js +84 -0
- package/dist/revenue-accelerate-D7Sp0V4a.js +17 -0
- package/dist/review-D4TUjcWF.js +17 -0
- package/dist/ro-RO-0vx6ZLWV.js +13 -0
- package/dist/ro-RO-1ZFmLikG.js +61 -0
- package/dist/ro-RO-7CJ4F5iB.js +13 -0
- package/dist/ro-RO-BPOHV6Wp.js +75 -0
- package/dist/ro-RO-BeA_YyJ8.js +13 -0
- package/dist/ro-RO-Bv9hZxwD.js +63 -0
- package/dist/ro-RO-C00Ig8CL.js +13 -0
- package/dist/ro-RO-C2yBVFht.js +38 -0
- package/dist/ro-RO-DRsaNX9j.js +65 -0
- package/dist/roleMetadata-CQlMMuGM.js +66 -0
- package/dist/save-BfqO2JBI.js +14 -0
- package/dist/search-Cmzbf5zI.js +17 -0
- package/dist/show-IdbU1C6P.js +17 -0
- package/dist/singpass-logo-wY4xsmTX.js +17 -0
- package/dist/singpass-verification-instant-JCqTr7Mv.js +40 -0
- package/dist/singpass-verification-manual-DQ7XW6R3.js +34 -0
- package/dist/sk-SK-3_SoEn6P.js +75 -0
- package/dist/sk-SK-7-enbO1N.js +65 -0
- package/dist/sk-SK-BbJWayDh.js +13 -0
- package/dist/sk-SK-C74EF23u.js +38 -0
- package/dist/sk-SK-ChVwlbp0.js +63 -0
- package/dist/sk-SK-Dm-pif_7.js +61 -0
- package/dist/sk-SK-DuLm2CVx.js +13 -0
- package/dist/sk-SK-DubwJifw.js +13 -0
- package/dist/sk-SK-Og9MJXpR.js +13 -0
- package/dist/sl-SI-59OQIZ3f.js +13 -0
- package/dist/sl-SI-BAIm-qBe.js +13 -0
- package/dist/sl-SI-CoI7iOco.js +13 -0
- package/dist/sl-SI-CvUzNn9Z.js +38 -0
- package/dist/sl-SI-DTvJT7fC.js +65 -0
- package/dist/sl-SI-DZHePXbK.js +63 -0
- package/dist/sl-SI-DbfswGh0.js +75 -0
- package/dist/sl-SI-HO7231cu.js +61 -0
- package/dist/sl-SI-hxwQIw_i.js +13 -0
- package/dist/solution-payments-DpyE_sdS.js +14 -0
- package/dist/store-Btc4GcmU.js +14 -0
- package/dist/style.css +2846 -2814
- package/dist/styles-CLV89_hH.js +2846 -2814
- package/dist/summaryItem-CAQCQSkt.js +18 -0
- package/dist/sv-SE-0PQ-U1u6.js +13 -0
- package/dist/sv-SE-BZNey_8S.js +13 -0
- package/dist/sv-SE-BcJ8p_Tx.js +61 -0
- package/dist/sv-SE-BsLkPEzn.js +38 -0
- package/dist/sv-SE-CQWBP7n1.js +13 -0
- package/dist/sv-SE-ChoPzG_G.js +13 -0
- package/dist/sv-SE-D_Efxy3s.js +75 -0
- package/dist/sv-SE-Dq56vGlB.js +63 -0
- package/dist/sv-SE-N-Hqwcjq.js +65 -0
- package/dist/tax-reporting-graph-hgoilCHZ.js +504 -0
- package/dist/terminal-1-D1pwXCoi.js +18 -0
- package/dist/tink-logo-DDyjz5eJ.js +17 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
- package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
- package/dist/types/api/address/useSearchAddress.d.ts +1 -2
- package/dist/types/api/businessLines/businessLines.types.d.ts +6 -1
- package/dist/types/api/businessLines/useBusinessLines.d.ts +3 -3
- package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +2 -2
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +2 -2
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +2 -2
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
- package/dist/types/api/check/useCheck.d.ts +1 -2
- package/dist/types/api/companyDataSet/companyDataset.types.d.ts +5 -0
- package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +6 -3
- package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +2 -2
- package/dist/types/api/companySearch/companySearch.types.d.ts +8 -0
- package/dist/types/api/companySearch/useCompanySearch.d.ts +9 -4
- package/dist/types/api/companySelection/companySelection.types.d.ts +3 -3
- package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -18
- package/dist/types/api/configurations/useScenarios.d.ts +3 -161
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +2 -2
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -4
- package/dist/types/api/documents/useCreateDocument.d.ts +2 -2
- package/dist/types/api/documents/useDeleteDocument.d.ts +2 -2
- package/dist/types/api/documents/useDocument.d.ts +2 -2
- package/dist/types/api/documents/useDocuments.d.ts +4 -0
- package/dist/types/api/documents/useUpdateDocument.d.ts +2 -2
- package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -4
- package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +3 -3
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -2
- package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +8 -389
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +5 -5
- package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -2
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -2
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +1 -1
- package/dist/types/api/pci/usePciStatus.d.ts +1 -1
- package/dist/types/api/pci/usePciTemplate.d.ts +1 -1
- package/dist/types/api/pci/useSignPci.d.ts +2 -3
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
- package/dist/types/api/queryKeys.d.ts +4 -2
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -1
- package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +2 -3
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -7
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -1
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -1
- package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
- package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +15 -0
- package/dist/types/api/types.d.ts +3 -2
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
- package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +2 -3
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -1
- package/dist/types/components/Apps/tasks/TaskList/utils.d.ts +4 -0
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +0 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +439 -439
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +3 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -4
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +8 -0
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +4 -6
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +2 -5
- 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/forms/BusinessDetails/form-ids.d.ts +2 -0
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +12 -46
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -22
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +8 -9
- 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 -4
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +0 -6
- package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +4 -0
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +3 -0
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +3 -0
- 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 +1 -3
- package/dist/types/components/Business/forms/TaxDocument/TaxDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -3
- package/dist/types/components/Business/forms/forms.types.d.ts +0 -3
- package/dist/types/components/Business/forms/rules.d.ts +10 -10
- package/dist/types/components/Business/mapping/businessDetails/businessBankAccountTaxIdUtils.d.ts +7 -0
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -2
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +8 -2
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -6
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +24 -9
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
- package/dist/types/components/Business/utils/companyUtil.d.ts +0 -10
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +5 -0
- package/dist/types/components/Business/utils/submit.d.ts +2 -0
- package/dist/types/components/Business/utils/useBusinessDetailsData.d.ts +21 -0
- package/dist/types/components/BusinessLines/constants.d.ts +10 -0
- package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +10 -10
- 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/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/forms/IndustryCodesForm/IndustryCodesForm.d.ts +1 -1
- 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 +2 -1
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +1 -2
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +2 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/types.d.ts +4 -0
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +26 -4
- package/dist/types/components/BusinessLines/tasks/validate.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 +3 -3
- package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5812 -582
- package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +3 -2
- package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -1
- package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +1 -2
- package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +1 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingSoleProprietor.d.ts +2 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSoleProprietorPersonalInformation.d.ts +4 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +15 -4
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +10 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +20 -21
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +6 -4
- package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/InvitedDecisionMakerComponent/InvitedDecisionMakerComponent.d.ts +4 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +4 -0
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -3
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +29 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/Identity.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +11 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.d.ts +4 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +22 -0
- package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +22 -0
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +8 -0
- package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +12 -0
- package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +24 -0
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +43 -0
- package/dist/types/components/Individual/forms/IdDocumentUpload/utils.d.ts +3 -0
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +18 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/IdVerificationMethod.types.d.ts +21 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +7 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +7 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +46 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +4 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +12 -0
- package/dist/types/components/Individual/forms/Individual.d.ts +56 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +45 -0
- package/dist/types/components/Individual/forms/Individual.types.d.ts +60 -0
- package/dist/types/components/Individual/forms/ProofOfRelationship/types.d.ts +14 -0
- package/dist/types/components/Individual/forms/ProofOfResidency/types.d.ts +39 -0
- package/dist/types/components/Individual/forms/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +6 -0
- package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaire.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +7 -0
- package/dist/types/components/Individual/forms/form-ids.d.ts +2 -0
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -2
- package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -3
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
- package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +1 -1
- package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +1 -1
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -12
- package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -3
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -0
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +3 -0
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +6 -7
- package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +2 -14
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +0 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +8 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
- package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
- package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +0 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/copy.d.ts +3 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +10 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/Currency.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +117 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +12 -6
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/LocalizedNameFields/types.d.ts +9 -0
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +5 -0
- package/dist/types/components/Shared/fields/NumberOfEmployees/NumberOfEmployees.d.ts +1 -1
- package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +5 -0
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +8 -0
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +6 -0
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +3 -1
- package/dist/types/components/Shared/forms/Address/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +5 -4
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -2
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +5 -5
- package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +2 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +2 -1
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +5 -5
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +1 -1
- package/dist/types/components/ui/atoms/Card/Card.d.ts +19 -0
- package/dist/types/components/ui/atoms/Link/Link.types.d.ts +1 -1
- package/dist/types/components/ui/atoms/Loader/Loader.d.ts +11 -5
- package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
- package/dist/types/components/ui/atoms/MultiSelectList/MultiSelectList.d.ts +0 -1
- package/dist/types/components/ui/atoms/Svg/Svg.d.ts +0 -1
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +4 -0
- package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +0 -1
- package/dist/types/context/ExperimentContext/types.d.ts +28 -50
- package/dist/types/context/QueryContext/QueryClient.d.ts +1 -1
- package/dist/types/context/StateContext/types.d.ts +2 -3
- package/dist/types/core/models/api/individual.d.ts +3 -0
- package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
- package/dist/types/core/models/api/legal-arrangement.d.ts +3 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
- package/dist/types/core/models/api/legal-entity.d.ts +1 -6
- package/dist/types/core/process-field-configurations.d.ts +0 -5
- package/dist/types/core/services/types.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +4 -2
- package/dist/types/embeds/baseEmbedProps.d.ts +0 -21
- package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +2 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +2 -0
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +5 -1
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.d.ts +5 -0
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +34 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +2 -1
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.d.ts +5 -1
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.d.ts +2 -1
- package/dist/types/embeds/verification-status/adyen-verification-status.d.ts +2 -1
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -1
- package/dist/types/hooks/useForm/types.d.ts +0 -8
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +4 -2
- package/dist/types/hooks/usePageLandedEvent.d.ts +7 -0
- package/dist/types/hooks/useUboQuestionnaire.d.ts +2 -2
- package/dist/types/language/types.d.ts +7 -2
- package/dist/types/language/utils.d.ts +1 -2
- package/dist/types/router/DefaultRouteRedirect.d.ts +8 -0
- package/dist/types/router/MemoryRouterContext.d.ts +9 -0
- package/dist/types/router/OnboardingRouter.d.ts +39 -0
- package/dist/types/router/SuspenseRoute.d.ts +7 -0
- package/dist/types/router/getDefaultTask.d.ts +16 -0
- package/dist/types/router/routeConfig.d.ts +68 -0
- package/dist/types/router/useCurrentTask.d.ts +5 -0
- package/dist/types/router/useNavigate.d.ts +7 -0
- package/dist/types/stores/formState.d.ts +2 -0
- package/dist/types/stores/globalStore/get-task-status.d.ts +6 -0
- package/dist/types/stores/globalStore/taskStatus.d.ts +5 -3
- package/dist/types/types/assert.d.ts +1 -0
- package/dist/types/types/datasets/currency.d.ts +0 -1
- package/dist/types/types/form.d.ts +0 -2
- package/dist/types/utils/addLinkedFields.d.ts +0 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -0
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +28 -0
- package/dist/types/utils/api/documentUtils.d.ts +6 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +14 -2
- package/dist/types/utils/birthDateUtils.d.ts +0 -17
- package/dist/types/utils/customerSupportUtils.d.ts +3 -0
- package/dist/types/utils/entityAssociationUtil.d.ts +3 -4
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +0 -2
- package/dist/types/utils/formUtils.d.ts +1 -6
- package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -2
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -3
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/types/utils/japanSupportUtils.d.ts +3 -0
- package/dist/types/utils/logger.d.ts +0 -1
- package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
- package/dist/types/utils/performance.d.ts +64 -0
- package/dist/types/utils/regex/patternValidators.d.ts +1 -1
- package/dist/types/utils/translation.d.ts +3 -2
- package/dist/types/utils/validatorUtils.d.ts +3 -1
- package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +3 -2
- package/dist/types-BHB4nscA.js +74 -0
- package/dist/types-BW4HQI5X.js +142 -0
- package/dist/types-C_XJxWCe.js +64 -0
- package/dist/types-DelojZRn.js +34 -0
- package/dist/unincorporated-partnership-MeN1dp53.js +97 -0
- package/dist/upload-BmUXjsaU.js +17 -0
- package/dist/us-check-C1rTBsCY.js +46 -0
- package/dist/us-check-account-number-9lI1dXNC.js +48 -0
- package/dist/us-check-routing-number-s_KaAGSM.js +49 -0
- package/dist/useAssociatedLegalEntity-BGeGBL08.js +34 -0
- package/dist/useBusinessDetailsData-DC-wmNPR.js +5310 -0
- package/dist/useBusinessLines-ByGXMKMt.js +29 -0
- package/dist/useCanSeeIntroduction--oO1qdiT.js +48 -0
- package/dist/useCreateLegalEntity-BhOxB6BR.js +32 -0
- package/dist/useDataMissingRemediations-DSkyG5Z7.js +41 -0
- package/dist/useDataset-yW_bgdcI.js +76 -0
- package/dist/useDeleteTransferInstrument-7o0YMB_Y.js +32 -0
- package/dist/useForm-BO942FZd.js +582 -0
- package/dist/useFormContext-DQrT9O9G.js +201 -0
- package/dist/useGlobalData-u2zvMtMx.js +68 -0
- package/dist/useId-BZ0PA7jP.js +24 -0
- package/dist/useMultiForm-CT8j56sz.js +873 -0
- package/dist/useNavigate-uXdvk8zK.js +265 -0
- package/dist/useOnboardingStatus-fuu0YjVz.js +28 -0
- package/dist/usePciQuestionnaireList-Bx4kLQdp.js +29 -0
- package/dist/useSalesChannels-DWNaDLQE.js +65 -0
- package/dist/useScenarios-h02LgFwh.js +48 -0
- package/dist/useSetting-DE1-_Vco.js +19 -0
- package/dist/useTaskStatus-B5twg5YX.js +51 -0
- package/dist/useTermsOfServiceStatus-YEliqzc0.js +43 -0
- package/dist/useToastContext-C4DyQocl.js +49 -0
- package/dist/useTrustMembers-OlL-flWZ.js +163 -0
- package/dist/useUnincorporatedPartnershipMembers-DskiP-FD.js +99 -0
- package/dist/useUpdateBusinessLines-BwPww5xr.js +339 -0
- package/dist/useUpdateLegalEntity-CCe3LXjI.js +40 -0
- package/dist/utils-B4EWNpln.js +58 -0
- package/dist/utils-CV_cvF6v.js +159 -0
- package/dist/utils-DV-jCPYV.js +29 -0
- package/dist/utils-DYNMAZ4x.js +237 -0
- package/dist/utils-g7QCpZSv.js +778 -0
- package/dist/validate-BIn1CJPi.js +108 -0
- package/dist/validate-CLiAFCrt.js +434 -0
- package/dist/validationError-ZbdyGpRj.js +86 -0
- package/dist/warning-circle-fill-DBvt921B.js +17 -0
- package/dist/warning-diamond-filled-Lb2od2ry.js +17 -0
- package/dist/webinar-m9nuFZBt.js +22 -0
- package/dist/yapily-logo-BduxhNRA.js +17 -0
- package/package.json +78 -57
- package/dist/4-people-BzyXLUF9.js +0 -24
- package/dist/AcceptTermsOfServiceComponent-B150yg9N.js +0 -659
- package/dist/Accordion-CVxApR1X.js +0 -88
- package/dist/AccountSetupRejected--dXDa8bC.js +0 -26
- package/dist/ActionBar-Tv1K68ZK.js +0 -31
- package/dist/Address-DrRgozSN.js +0 -1348
- package/dist/Alert-BVHHWVgg.js +0 -159
- package/dist/Avatar-sN35oNt2.js +0 -60
- package/dist/BG-DlvaKo4n.js +0 -27
- package/dist/BusinessDetailsMultiformDropin-BeJATuiX.js +0 -4220
- package/dist/BusinessFinancingComponent-CGBUx-zj.js +0 -54
- package/dist/BusinessFinancingDropin-DxKkpM-k.js +0 -1853
- package/dist/BusinessFinancingPage-JChGPCHT.js +0 -43
- package/dist/BusinessTypeSelectionPage-CH-OiNqT.js +0 -427
- package/dist/Card-B66f7NuH.js +0 -82
- package/dist/ConstitutionalDocument-DIW7X8rZ.js +0 -143
- package/dist/ContractViewer-Byp71k2e.js +0 -935
- package/dist/CountryField-D36v7bff.js +0 -843
- package/dist/CreateIndividualComponent-fmBoSuxQ.js +0 -71
- package/dist/CreateTransferInstrumentComponent-CViSbC6e.js +0 -63
- package/dist/Currency-DlHtZ9aJ.js +0 -183
- package/dist/CustomerSupport-L3PHpji7.js +0 -153
- package/dist/DebugModal-C1mi00fP.js +0 -413
- package/dist/DecisionMakerDetailsPage-li_HZWuV.js +0 -106
- package/dist/DecisionMakers-C8AjEnUh.js +0 -830
- package/dist/EmbeddedStatus-CrKg6woS.js +0 -99
- package/dist/EndStateLayout-CPXu6AzB.js +0 -71
- package/dist/EntityAssociation-SkprG-At.js +0 -159
- package/dist/EntityGuidanceStatus-D9lctwyX.js +0 -105
- package/dist/FormFlow-BVw3rIvU.js +0 -224
- package/dist/FormNavigation-Bag7ETpV.js +0 -144
- package/dist/FormWrapper-BfsyttAY.js +0 -135
- package/dist/IndividualOnfido-CmDDWqG_.js +0 -9594
- package/dist/IndividualOnfidoDropin-VMZXwhd7.js +0 -2497
- package/dist/InputText-DHRZ5RNd.js +0 -249
- package/dist/Introduction-Cht7yZI7.js +0 -300
- package/dist/JpAddress-DCky_der.js +0 -280
- package/dist/LegalRepresentativeDetailsPage-Bez436Rb.js +0 -60
- package/dist/ListItem-DrwSQslm.js +0 -69
- package/dist/ManageIndividualComponent-lLoElwga.js +0 -46
- package/dist/ManageTermsOfServiceComponent-CH1M-H1Y.js +0 -52
- package/dist/ManageTransferInstrumentComponent-NZ8vELQC.js +0 -287
- package/dist/MaybeModal-D4PWacZ0.js +0 -25
- package/dist/Modal-lDK70UQc.js +0 -149
- package/dist/OnboardingDropinComponent-Cljx74I-.js +0 -7908
- package/dist/PayoutDetailsDropin-p2t6lj8Z.js +0 -4841
- package/dist/Review-fdhuI2MF.js +0 -83
- package/dist/RootBusinessDetailsPage-Bb1mWkAw.js +0 -61
- package/dist/RootBusinessLinesPage-Bge83rhi.js +0 -1118
- package/dist/RootIndividualDetailsPage-B31dJO7o.js +0 -71
- package/dist/SignPCIComponent-C0P_OLXa.js +0 -304
- package/dist/SingpassSelection-B2rjBQ6u.js +0 -130
- package/dist/SoleProprietorshipPage-3S2tDRwx.js +0 -60
- package/dist/SourceOfFundsPage-BpV6fE8P.js +0 -2383
- package/dist/StepProgressIndicator-CBkt5fOY.js +0 -78
- package/dist/StoreProvider-l6WD5T55.js +0 -7674
- package/dist/Summary-Ccxu9A6C.js +0 -204
- package/dist/TaxReportingDropin-H22DcnSG.js +0 -502
- package/dist/TrustDetailsPage-BvIa1mbz.js +0 -2149
- package/dist/TrustMemberCompanyPage-VNaovE9r.js +0 -73
- package/dist/TrustMemberIndividualPage-Dp9kroxy.js +0 -66
- package/dist/TrustMemberRoleAndTypePage-BbbTPGJm.js +0 -985
- package/dist/TrustMembersOverview-Dd7lo_I5.js +0 -438
- package/dist/UnincorporatedPartnershipIndividualPage-CcLh5gtc.js +0 -65
- package/dist/UnincorporatedPartnershipMemberCompanyPage-DA-1RrVz.js +0 -76
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-CgLeyHTs.js +0 -281
- package/dist/UnincorporatedPartnershipMembersOverview-CNONb63l.js +0 -172
- package/dist/VerificationErrorAlert-D7gb2Rqo.js +0 -79
- package/dist/ViewVerificationStatusComponent-DpeNbWSm.js +0 -180
- package/dist/arrow-right-KxA3SvQj.js +0 -14
- package/dist/bag-BPumznWh.js +0 -14
- package/dist/bank-D6FiNBhs.js +0 -14
- package/dist/bg-BG-B7Xs_t04.js +0 -13
- package/dist/bg-BG-CepHap8j.js +0 -68
- package/dist/bg-BG-D9J6LnkI.js +0 -57
- package/dist/bg-BG-DH45-0B-.js +0 -29
- package/dist/bg-BG-DRkMqyL8.js +0 -13
- package/dist/bg-BG-Dp4LxSP7.js +0 -37
- package/dist/bg-BG-DpIAKQve.js +0 -113
- package/dist/bg-BG-mLSjG76Q.js +0 -13
- package/dist/bg-BG-wVquMNtT.js +0 -55
- package/dist/bin-Bz6KOIeE.js +0 -18
- package/dist/business-lines-DboUCbXw.js +0 -135
- package/dist/capital-GVQ3svwN.js +0 -17
- package/dist/cash-stack-D9AoDDwt.js +0 -22
- package/dist/certificate-CdEWgHQf.js +0 -17
- package/dist/checkmark-Q7x6tGhy.js +0 -14
- package/dist/checkmark-circle-fill-CsvN5_PL.js +0 -17
- package/dist/checkmark-circle-x7dzbp3I.js +0 -20
- package/dist/checkmark-small-D35myntq.js +0 -14
- package/dist/chevron-down-C2iDorpW.js +0 -14
- package/dist/chevron-left-ztPO84q-.js +0 -14
- package/dist/chevron-right-C_JN0oDt.js +0 -14
- package/dist/chevron-up-CgG8n25g.js +0 -14
- package/dist/circle-Bt3Nlr3q.js +0 -17
- package/dist/circle-small-filled-YMzP6yQU.js +0 -14
- package/dist/clock-BZHremOA.js +0 -20
- package/dist/coins-fkAk6dCo.js +0 -17
- package/dist/contract-BTa4HltT.js +0 -14
- package/dist/cross-Cn09MtQ_.js +0 -14
- package/dist/cross-circle-fill-small-DCz52AuN.js +0 -14
- package/dist/cs-CZ--jOkoHVS.js +0 -55
- package/dist/cs-CZ-BDf9m4Rw.js +0 -113
- package/dist/cs-CZ-BP7niQM9.js +0 -68
- package/dist/cs-CZ-BSWXexr4.js +0 -13
- package/dist/cs-CZ-BsV9NiQ2.js +0 -13
- package/dist/cs-CZ-CyLqoG1j.js +0 -37
- package/dist/cs-CZ-DPVMeRye.js +0 -29
- package/dist/cs-CZ-DY_pQqAT.js +0 -57
- package/dist/cs-CZ-DalFZigH.js +0 -13
- package/dist/da-DK-CI-vfqPo.js +0 -113
- package/dist/da-DK-D4Ojw97o.js +0 -13
- package/dist/da-DK-DU4dCNEw.js +0 -29
- package/dist/da-DK-DYpfNZdP.js +0 -37
- package/dist/da-DK-Dc0QYG8m.js +0 -68
- package/dist/da-DK-JHZnsI59.js +0 -55
- package/dist/da-DK-P3YSaBqs.js +0 -13
- package/dist/da-DK-R_y7YwqQ.js +0 -13
- package/dist/da-DK-jK7c9UL0.js +0 -57
- package/dist/de-DE-BR6CLZw6.js +0 -13
- package/dist/de-DE-BXt1K0Tr.js +0 -37
- package/dist/de-DE-BcuLmcC8.js +0 -13
- package/dist/de-DE-Dz2OsS1F.js +0 -68
- package/dist/de-DE-Dz2l6jRl.js +0 -29
- package/dist/de-DE-VGGEkxUT.js +0 -55
- package/dist/de-DE-nG2MBigU.js +0 -113
- package/dist/de-DE-opyC1JO-.js +0 -13
- package/dist/de-DE-wmerDL2e.js +0 -57
- package/dist/debouncedInputEvent-Bifj90NU.js +0 -109
- package/dist/decision-makers-group-CgddXgrx.js +0 -1944
- package/dist/digital-wallet-D_IpxnkN.js +0 -46
- package/dist/document-1-C08ut-Dt.js +0 -14
- package/dist/document-blurred-2Zpodj3_.js +0 -37
- package/dist/document-cut-off-ClS7RiOp.js +0 -32
- package/dist/document-expired-CjksBq-N.js +0 -38
- package/dist/document-front-DiAairT3.js +0 -30
- package/dist/document-person-vxlA6C5f.js +0 -20
- package/dist/documentUtils-CunPooif.js +0 -218
- package/dist/download-Drhk9k1f.js +0 -17
- package/dist/dropinUtils-DSk8OL7G.js +0 -202
- package/dist/edit-1-CFoDTMvQ.js +0 -14
- package/dist/el-GR-B3FHqTOX.js +0 -13
- package/dist/el-GR-B90M6tcZ.js +0 -37
- package/dist/el-GR-BHG69mXl.js +0 -68
- package/dist/el-GR-BX-MyQZY.js +0 -113
- package/dist/el-GR-Btrk_npt.js +0 -57
- package/dist/el-GR-CWd7XYDU.js +0 -13
- package/dist/el-GR-CofvCav-.js +0 -13
- package/dist/el-GR-MLFY-Gg7.js +0 -29
- package/dist/el-GR-gkaKwnln.js +0 -55
- package/dist/en-US-BPI4FZwa.js +0 -113
- package/dist/en-US-CzEL6t1W.js +0 -55
- package/dist/en-US-D-B35AoN.js +0 -68
- package/dist/en-US-DYo4OF-P.js +0 -29
- package/dist/en-US-Dg505Oh3.js +0 -37
- package/dist/en-US-fyGPkcqX.js +0 -13
- package/dist/en-US-gsp7CD_E.js +0 -57
- package/dist/es-ES-0ROz-BJh.js +0 -29
- package/dist/es-ES-BAg3NqQO.js +0 -13
- package/dist/es-ES-BI_jdT67.js +0 -68
- package/dist/es-ES-BhINIOee.js +0 -13
- package/dist/es-ES-BhNhIf08.js +0 -37
- package/dist/es-ES-Bn9_0wK0.js +0 -55
- package/dist/es-ES-CEp-ttVJ.js +0 -13
- package/dist/es-ES-Q16q2JJ6.js +0 -113
- package/dist/es-ES-Qnc0Q6JH.js +0 -57
- package/dist/et-EE-BMgFCxds.js +0 -37
- package/dist/et-EE-BYSnV6Iq.js +0 -55
- package/dist/et-EE-Bk2IHQWP.js +0 -13
- package/dist/et-EE-C_PZO2aI.js +0 -68
- package/dist/et-EE-Ci8RU2wg.js +0 -13
- package/dist/et-EE-DmShD6oS.js +0 -113
- package/dist/et-EE-TzXANcP2.js +0 -57
- package/dist/et-EE-esci5847.js +0 -29
- package/dist/et-EE-x29FUaYN.js +0 -118
- package/dist/external-link-DCMYUMfW.js +0 -14
- package/dist/fi-FI-B_P4BAda.js +0 -113
- package/dist/fi-FI-CDISJifz.js +0 -13
- package/dist/fi-FI-DjlB2a7k.js +0 -13
- package/dist/fi-FI-Dn2MC8uW.js +0 -57
- package/dist/fi-FI-MiyuQqH8.js +0 -13
- package/dist/fi-FI-PVFqd5Ra.js +0 -55
- package/dist/fi-FI-hwzizPnr.js +0 -68
- package/dist/fi-FI-xXrvDLFe.js +0 -29
- package/dist/fi-FI-ysUrBilO.js +0 -37
- package/dist/fieldConfigurations-D99U6JIQ.js +0 -1402
- package/dist/fr-FR-BSvSKazD.js +0 -37
- package/dist/fr-FR-BWX14yb7.js +0 -57
- package/dist/fr-FR-Bw9O-QAU.js +0 -29
- package/dist/fr-FR-CUdiBCVB.js +0 -113
- package/dist/fr-FR-CYZXbwc9.js +0 -68
- package/dist/fr-FR-DGMVrsJv.js +0 -13
- package/dist/fr-FR-Dx-CiPdB.js +0 -13
- package/dist/fr-FR-aJ3cg4x0.js +0 -13
- package/dist/fr-FR-mJK4hjwD.js +0 -55
- package/dist/funds-in-D8bj0aoE.js +0 -21
- package/dist/getFieldsWithExistingData-BLXGczCN.js +0 -22
- package/dist/getName-_U3PeNHl.js +0 -48
- package/dist/gift-CQ_DEma7.js +0 -14
- package/dist/graph-BJmqglH2.js +0 -21
- package/dist/graph-up-Bq6adtlX.js +0 -20
- package/dist/hasDataChanged-BwDHn0i2.js +0 -19
- package/dist/headquarter-DNYyuuFq.js +0 -21
- package/dist/hotel-BuNql78Z.js +0 -22
- package/dist/house-B6sNRj-B.js +0 -21
- package/dist/hr-HR-BHt_jklG.js +0 -13
- package/dist/hr-HR-BLpGb4f2.js +0 -37
- package/dist/hr-HR-CXpCIMhI.js +0 -113
- package/dist/hr-HR-CZLSQruE.js +0 -57
- package/dist/hr-HR-D8_yhtIo.js +0 -29
- package/dist/hr-HR-VivDwwdW.js +0 -13
- package/dist/hr-HR-bE6cvRCQ.js +0 -68
- package/dist/hr-HR-n7aMHIpM.js +0 -13
- package/dist/hr-HR-qmYyO-nT.js +0 -55
- package/dist/hu-HU-CS-7iNS4.js +0 -55
- package/dist/hu-HU-Ca9Hex26.js +0 -37
- package/dist/hu-HU-DDsdPI5V.js +0 -13
- package/dist/hu-HU-DG-NUDx4.js +0 -68
- package/dist/hu-HU-D_DvlCMw.js +0 -13
- package/dist/hu-HU-DqEBeq-w.js +0 -113
- package/dist/hu-HU-KliQetm5.js +0 -29
- package/dist/hu-HU-WEtpzb41.js +0 -13
- package/dist/hu-HU-kp8Go5hZ.js +0 -57
- package/dist/id-blurred-9dzBOWCE.js +0 -59
- package/dist/id-cut-off-CohJCI2h.js +0 -55
- package/dist/id-front-CSZfvdRg.js +0 -52
- package/dist/id-glare-Q2JWo5ts.js +0 -49
- package/dist/id-verification-instant-BUVBO4R3.js +0 -58
- package/dist/id-verification-manual-B3YZALYU.js +0 -55
- package/dist/iframeWidget-BEBSgwZP.js +0 -234
- package/dist/image-BSihO8lR.js +0 -17
- package/dist/info-vHTZWoJ7.js +0 -21
- package/dist/instant-verification-Dvvkyfmp.js +0 -40
- package/dist/it-IT-B0YGvVgW.js +0 -57
- package/dist/it-IT-BTWkWSJq.js +0 -55
- package/dist/it-IT-C2MZo4KT.js +0 -13
- package/dist/it-IT-DLm11dH5.js +0 -13
- package/dist/it-IT-Erh1DIlj.js +0 -68
- package/dist/it-IT-MwpjRAG6.js +0 -29
- package/dist/it-IT-NCFAqV1F.js +0 -113
- package/dist/it-IT-Qfzc8jnW.js +0 -37
- package/dist/it-IT-yV7ewjWU.js +0 -13
- package/dist/ja-JP-2u5fqLWF.js +0 -29
- package/dist/ja-JP-Bktpl_2b.js +0 -118
- package/dist/ja-JP-CHQ64lw1.js +0 -37
- package/dist/ja-JP-CSz7fEkn.js +0 -55
- package/dist/ja-JP-CWe8f7m4.js +0 -13
- package/dist/ja-JP-C_-moDrA.js +0 -113
- package/dist/ja-JP-Ctsk4z4q.js +0 -151
- package/dist/ja-JP-Dz9IVH4p.js +0 -57
- package/dist/ja-JP-ThzG9vIo.js +0 -68
- package/dist/ja-JP-bz7ekGnF.js +0 -27
- package/dist/localizeDateString-RwwotuyP.js +0 -27
- package/dist/location-Q4oKvnkl.js +0 -17
- package/dist/lt-LT-0RKZeraM.js +0 -37
- package/dist/lt-LT-B6XmKUXx.js +0 -55
- package/dist/lt-LT-BEsBoIQ9.js +0 -29
- package/dist/lt-LT-CU5qHa7a.js +0 -113
- package/dist/lt-LT-CYiW52tl.js +0 -13
- package/dist/lt-LT-Cg9c0kae.js +0 -13
- package/dist/lt-LT-Nd1uRoIj.js +0 -68
- package/dist/lt-LT-W6fTjwB5.js +0 -13
- package/dist/lt-LT-l9rzkFg9.js +0 -57
- package/dist/lv-LV-Bh-WQp0K.js +0 -37
- package/dist/lv-LV-CgMxfFK8.js +0 -13
- package/dist/lv-LV-CpGkmcLz.js +0 -113
- package/dist/lv-LV-CxUmQHF9.js +0 -13
- package/dist/lv-LV-DKhV24CI.js +0 -68
- package/dist/lv-LV-DYbb5pkt.js +0 -57
- package/dist/lv-LV-DsSpy50n.js +0 -55
- package/dist/lv-LV-DsxFGThp.js +0 -13
- package/dist/lv-LV-Veji7-on.js +0 -29
- package/dist/mail-BOdyoVqB.js +0 -14
- package/dist/manual-verification-BvZWqA00.js +0 -41
- package/dist/mapExistingFile-nB9LIvV9.js +0 -156
- package/dist/mapFinancialReportsToFinancialInformation-BgizOY0T.js +0 -67
- package/dist/mapJpAddressSchemaToAddressLocalizations-DnDo_BVY.js +0 -63
- package/dist/mapLegalEntityToIndividualOnfidoSchema-BpjOTE3z.js +0 -143
- package/dist/mapTransferInstrumentToPayoutAccount-DMZUSLNm.js +0 -33
- package/dist/minus-circle-filled-kC2IUvKz.js +0 -17
- package/dist/nl-NL-BMUYBqlF.js +0 -57
- package/dist/nl-NL-Bk-1-C0e.js +0 -13
- package/dist/nl-NL-BuW3jWdI.js +0 -29
- package/dist/nl-NL-CMw-FwQV.js +0 -13
- package/dist/nl-NL-CTf7zH4M.js +0 -55
- package/dist/nl-NL-D7gBNWEY.js +0 -37
- package/dist/nl-NL-DKMs4pB2.js +0 -13
- package/dist/nl-NL-DMpB18Te.js +0 -113
- package/dist/nl-NL-O9GCHMDA.js +0 -68
- package/dist/no-NO-B-oUwe9q.js +0 -13
- package/dist/no-NO-C-gCYc9q.js +0 -37
- package/dist/no-NO-CA0EizAy.js +0 -29
- package/dist/no-NO-CA1aR6Wh.js +0 -68
- package/dist/no-NO-Ca5qoVaU.js +0 -113
- package/dist/no-NO-DKbWxgF-.js +0 -57
- package/dist/no-NO-DN9qf-_I.js +0 -13
- package/dist/no-NO-Dhj0Fh__.js +0 -13
- package/dist/no-NO-RfTK9KAV.js +0 -55
- package/dist/onfido-logo-BWSv__sQ.js +0 -14
- package/dist/options-horizontal-CBmbNv7R.js +0 -18
- package/dist/partner-CPjsrePY.js +0 -18
- package/dist/passport-blurred-B4UDQfmc.js +0 -59
- package/dist/passport-cut-off-C0N2mgLk.js +0 -56
- package/dist/passport-front-BwA7wR91.js +0 -52
- package/dist/passport-front-green-BL4HmtsB.js +0 -232
- package/dist/passport-glare-Mg2ixsYA.js +0 -50
- package/dist/pay-by-link-plane-BVZndh67.js +0 -22
- package/dist/payout-ChUEoLjt.js +0 -20
- package/dist/payout-verification-instant-5u-wvFKv.js +0 -41
- package/dist/payout-verification-manual-BH2mu0UW.js +0 -90
- package/dist/person-DGjUU4S4.js +0 -17
- package/dist/pl-PL-B0zGy_b4.js +0 -57
- package/dist/pl-PL-BKDK0_G8.js +0 -68
- package/dist/pl-PL-BSI0zHO1.js +0 -113
- package/dist/pl-PL-D7nhdbfR.js +0 -29
- package/dist/pl-PL-DGSYzOx6.js +0 -13
- package/dist/pl-PL-Duj3tncM.js +0 -13
- package/dist/pl-PL-Dy8qWH39.js +0 -55
- package/dist/pl-PL-LnVPufjb.js +0 -37
- package/dist/pl-PL-p8YxqOFg.js +0 -13
- package/dist/plaid-logo-CtActXTN.js +0 -14
- package/dist/plus-CWXA5wdX.js +0 -14
- package/dist/plus-circle-filled-CbC0u2Y1.js +0 -17
- package/dist/process-field-configurations-6LtTXNwK.js +0 -324
- package/dist/pt-BR--kaJvtE6.js +0 -57
- package/dist/pt-BR-BbFJsIVX.js +0 -55
- package/dist/pt-BR-Be5ZycMV.js +0 -13
- package/dist/pt-BR-Cj8MlQyq.js +0 -113
- package/dist/pt-BR-Cm4vZocb.js +0 -13
- package/dist/pt-BR-D1nTSLod.js +0 -29
- package/dist/pt-BR-DKrMpM6v.js +0 -13
- package/dist/pt-BR-NtLaWlnZ.js +0 -68
- package/dist/pt-BR-ur86nRrK.js +0 -37
- package/dist/pt-PT-B4F_5NWi.js +0 -55
- package/dist/pt-PT-B9L50746.js +0 -29
- package/dist/pt-PT-BJjCTMYf.js +0 -13
- package/dist/pt-PT-BJkVzfAJ.js +0 -113
- package/dist/pt-PT-BR-BI5Jn.js +0 -13
- package/dist/pt-PT-BZ5ZZm6G.js +0 -57
- package/dist/pt-PT-Bh7v8xbp.js +0 -13
- package/dist/pt-PT-CVNEcs32.js +0 -37
- package/dist/pt-PT-DSxxVA0f.js +0 -68
- package/dist/recurring-CkL4cCM2.js +0 -17
- package/dist/reporting-DerosUNm.js +0 -16
- package/dist/resolveEnvironment-BC4yY4gV.js +0 -164
- package/dist/revenue-accelerate-Dp4Ns_5c.js +0 -17
- package/dist/review-CxIN9azU.js +0 -17
- package/dist/ro-RO-5I4Q_FyK.js +0 -13
- package/dist/ro-RO-B8leE4ZJ.js +0 -13
- package/dist/ro-RO-Bybq8JFn.js +0 -68
- package/dist/ro-RO-CICjAFys.js +0 -55
- package/dist/ro-RO-CdSsgoUG.js +0 -57
- package/dist/ro-RO-DjGku_3y.js +0 -13
- package/dist/ro-RO-DvG65dTt.js +0 -29
- package/dist/ro-RO-RgC5M6CE.js +0 -113
- package/dist/ro-RO-i7lojG2G.js +0 -37
- package/dist/rules-ajv47uCu.js +0 -314
- package/dist/save-Fgy7EDid.js +0 -14
- package/dist/search-C4GZ-Rc1.js +0 -17
- package/dist/show-yPjPmEf8.js +0 -17
- package/dist/singpass-logo-BkMSwiGY.js +0 -17
- package/dist/singpass-verification-instant-hY4eGFwl.js +0 -40
- package/dist/singpass-verification-manual-DwhRpy5Q.js +0 -34
- package/dist/sk-SK-0BVxI7bf.js +0 -113
- package/dist/sk-SK-B5brxU1N.js +0 -37
- package/dist/sk-SK-BMJgOJoa.js +0 -29
- package/dist/sk-SK-BRd5TN22.js +0 -55
- package/dist/sk-SK-BVmoP_EU.js +0 -13
- package/dist/sk-SK-BWwRIx2d.js +0 -13
- package/dist/sk-SK-Bb18qPBw.js +0 -13
- package/dist/sk-SK-BiBWPJUf.js +0 -57
- package/dist/sk-SK-C6rMIxpz.js +0 -68
- package/dist/sl-SI-6s8xycKg.js +0 -13
- package/dist/sl-SI-BMF8YtOm.js +0 -29
- package/dist/sl-SI-BxImW_RL.js +0 -113
- package/dist/sl-SI-CUCrzJQv.js +0 -37
- package/dist/sl-SI-CaJmYb6p.js +0 -13
- package/dist/sl-SI-D8dDckrW.js +0 -55
- package/dist/sl-SI-DtdGMD6i.js +0 -57
- package/dist/sl-SI-ZxyvdgdS.js +0 -13
- package/dist/sl-SI-tPwbFvOI.js +0 -68
- package/dist/solution-payments-CNAat9h7.js +0 -14
- package/dist/store-IuAkDRAp.js +0 -14
- package/dist/sv-SE-B1sbgsnh.js +0 -13
- package/dist/sv-SE-BUq1X9F0.js +0 -113
- package/dist/sv-SE-BYC_f8r7.js +0 -29
- package/dist/sv-SE-C6uPh9g5.js +0 -37
- package/dist/sv-SE-CCFIf86P.js +0 -13
- package/dist/sv-SE-DGpvVvWj.js +0 -55
- package/dist/sv-SE-D_ZnGxiQ.js +0 -13
- package/dist/sv-SE-K1QT1cOt.js +0 -68
- package/dist/sv-SE-kR514dO1.js +0 -57
- package/dist/tax-reporting-graph-DjzwRgE6.js +0 -504
- package/dist/terminal-1-_me9J9h0.js +0 -18
- package/dist/tink-logo-BcIv93ND.js +0 -17
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +0 -9
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard.d.ts +0 -9
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +0 -11
- 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/BusinessDetailsDropin/mandatoryFields.d.ts +0 -3
- 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 -19
- package/dist/types/components/Individual/fields/DecisionMakerRole/DecisionMakerRole.d.ts +0 -3
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +0 -10
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +0 -23
- package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +0 -9
- package/dist/types/components/Individual/fields/NameFields/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentAlreadyUpload.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentInstantVerification.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentUpload.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +0 -53
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -15
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +0 -9
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/Identity.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +0 -39
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +0 -21
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +0 -39
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -40
- package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -51
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -29
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +0 -13
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +0 -22
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -22
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +0 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +0 -12
- package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/DataConflictsModal.d.ts +0 -24
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +0 -17
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -20
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +0 -7
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +0 -7
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +0 -46
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +0 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/validateExtractionResult.d.ts +0 -12
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -52
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +0 -46
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +0 -59
- package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +0 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +0 -13
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +0 -7
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +0 -4
- package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +0 -3
- package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +0 -3
- package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +0 -8
- package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +0 -5
- package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +0 -3
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +0 -3
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualOnfidoSchema.d.ts +0 -3
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +0 -2
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +0 -4
- package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +0 -3
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +0 -3
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +0 -8
- package/dist/types/components/ui/molecules/Card/Card.d.ts +0 -3
- package/dist/types/components/ui/molecules/Card/types.d.ts +0 -26
- package/dist/types/embeds/EmbedBaseElement.d.ts +0 -41
- package/dist/types/embeds/EmbedCore.d.ts +0 -22
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +0 -13
- package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +0 -12
- package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +0 -12
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +0 -12
- package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +0 -16
- package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +0 -14
- package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +0 -20
- package/dist/types-6CojAGL0.js +0 -88
- package/dist/types-DRdQDn19.js +0 -34
- package/dist/types-DnURYYMD.js +0 -74
- package/dist/types-f66rmUFy.js +0 -164
- package/dist/upload-BF65P4KM.js +0 -17
- package/dist/us-check-CYY6Crhr.js +0 -46
- package/dist/us-check-account-number-C7KE5YzX.js +0 -48
- package/dist/us-check-routing-number-DUbhsYAR.js +0 -49
- package/dist/useAssociatedLegalEntity-DlO3x839.js +0 -33
- package/dist/useCreateLegalEntity-bNnaPjOD.js +0 -31
- package/dist/useDataset-ClAqXJGw.js +0 -220
- package/dist/useForm-C8SA0ETz.js +0 -1623
- package/dist/useGlobalData-VlkNij1C.js +0 -68
- package/dist/useMultiForm-C3xbz4Qc.js +0 -864
- package/dist/useOnboardingStatus-Co_xweKQ.js +0 -27
- package/dist/useScenarios-1AMNJb7O.js +0 -46
- package/dist/useTermsOfServiceStatus-DTT-jTFK.js +0 -42
- package/dist/useToastContext-mFlAEux_.js +0 -60
- package/dist/useUnincorporatedPartnershipMembers-DeGZrXXu.js +0 -99
- package/dist/useUpdateBusinessLines-DVnOsDCX.js +0 -46
- package/dist/useUpdateLegalEntity-Hn7ZLWeu.js +0 -39
- package/dist/utils-BH-_hzMa.js +0 -237
- package/dist/utils-BvNcGa2w.js +0 -774
- package/dist/validate-CJSILaC_.js +0 -41
- package/dist/validate-DDHUnwWC.js +0 -100
- package/dist/validationError-CfIII-oi.js +0 -86
- package/dist/warning-circle-fill-CEN1WL7A.js +0 -17
- package/dist/warning-diamond-filled-BfXMlVrG.js +0 -17
- package/dist/webinar-DqjqrNEv.js +0 -22
- package/dist/yapily-logo-CZ4ywjwA.js +0 -17
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/PayoutAccountTaskListItem.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskList.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListGroup.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListItem.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/types.d.ts +0 -0
- /package/dist/types/components/Business/{tasks/BusinessDetailsMultiformDropin → forms/BusinessDetails}/BusinessDetailsMultiform.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/FinancialInformation.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/ReportedValue.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/types.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/validate.d.ts +0 -0
- /package/dist/types/components/Business/tasks/{BusinessDetailsMultiformDropin → BusinessDetailsDropin}/validate.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/AdditionalPersonalDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/BasicDetails → BasicDetails}/BasicDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/GuidanceQuestion → GuidanceQuestion}/GuidanceQuestion.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/IdDocumentManualUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdNowVerificationModal → IdNowVerificationModal}/IdNowVerificationModal.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/IdVerification.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/idVerificationProviderId.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/types.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/ManualIdUpload → ManualIdUpload}/ManualIdUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/index.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/ProofOfResidency.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaireModalContent.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/tasks/{IndividualOnfidoDropin/IndividualOnfidoStore.d.ts → IndividualDropin/IndividualStore.d.ts} +0 -0
- /package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/LocalizedNameFields.d.ts +0 -0
|
@@ -1,2383 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3de4a6e7-1c70-4d93-9ca1-397c25d760f7", e._sentryDebugIdIdentifier = "sentry-dbid-3de4a6e7-1c70-4d93-9ca1-397c25d760f7");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { b as useApiContext, a1 as useMutation, k as httpPost, j as useQuery, m as httpGet, u as useTranslation, H as Typography, B as Button, W as useI18nContext, X as isEmpty, L as Loader, a3 as Icon, Y as IconButton, U as createLogger, a2 as useQueryClient, c as useLegalEntity, R as ROOT_LE, a0 as useAnalyticsContext, bL as useLegalEntities, a as addResourceBundles, N as EntityTypes, g as getLegalEntityCountry, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-l6WD5T55.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 "./fieldConfigurations-D99U6JIQ.js";
|
|
13
|
-
import { useState, useMemo, useEffect, useCallback, useRef } from "preact/hooks";
|
|
14
|
-
import { n as normalizedTaskStatusStore, x as useBusinessLines } from "./OnboardingDropinComponent-Cljx74I-.js";
|
|
15
|
-
import { c as useInvalidateRootLegalEntity, a as useToastContext } from "./useToastContext-mFlAEux_.js";
|
|
16
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-bNnaPjOD.js";
|
|
17
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-Hn7ZLWeu.js";
|
|
18
|
-
import { h as hasDataChanged } from "./hasDataChanged-BwDHn0i2.js";
|
|
19
|
-
import { u as useGlobalDataSlice, b as useStateContext } from "./useGlobalData-VlkNij1C.js";
|
|
20
|
-
import { g as getPropsFromConfigurations } from "./process-field-configurations-6LtTXNwK.js";
|
|
21
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-DSk8OL7G.js";
|
|
22
|
-
import { F as FormWrapper } from "./FormWrapper-BfsyttAY.js";
|
|
23
|
-
import { c as createDocumentRequest, d as documentApiUtils } from "./documentUtils-CunPooif.js";
|
|
24
|
-
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
25
|
-
import { signal } from "@preact/signals";
|
|
26
|
-
import { C as CountryField, E as ErrorPanel, c as createFormUtils, g as getFormProps, H as Header } from "./CountryField-D36v7bff.js";
|
|
27
|
-
import { F as Field, S as Select, u as useForm } from "./useForm-C8SA0ETz.js";
|
|
28
|
-
import { I as InputDate, R as RadioGroup } from "./Address-DrRgozSN.js";
|
|
29
|
-
import { a9 as InputGroup, aa as TileGroup, E as isEmpty$1, O as LandingLayout, ab as Dropzone } from "./IndividualOnfido-CmDDWqG_.js";
|
|
30
|
-
import { I as InputText } from "./InputText-DHRZ5RNd.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-BvNcGa2w.js";
|
|
32
|
-
import { A as Avatar } from "./Avatar-sN35oNt2.js";
|
|
33
|
-
import { a as Alert } from "./Alert-BVHHWVgg.js";
|
|
34
|
-
import { M as Modal } from "./Modal-lDK70UQc.js";
|
|
35
|
-
import { C as Confirm, S as StructuredList } from "./useDataset-ClAqXJGw.js";
|
|
36
|
-
import { v as validateDateNotInTheFuture } from "./validate-DDHUnwWC.js";
|
|
37
|
-
import { lazy } from "preact/compat";
|
|
38
|
-
import { C as Card } from "./Card-B66f7NuH.js";
|
|
39
|
-
const updateSourceOfFunds = async (businessLineId, legalEntityId, baseUrl, data) => {
|
|
40
|
-
return httpPost(
|
|
41
|
-
{
|
|
42
|
-
baseUrl,
|
|
43
|
-
path: `legalEntities/${legalEntityId}/businessLines/${businessLineId}/sourceOfFunds`
|
|
44
|
-
},
|
|
45
|
-
data
|
|
46
|
-
);
|
|
47
|
-
};
|
|
48
|
-
const useUpdateSourceOfFunds = (options) => {
|
|
49
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
50
|
-
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
51
|
-
return useMutation({
|
|
52
|
-
mutationFn: ({ businessLineId, ...requestData }) => updateSourceOfFunds(businessLineId, rootLegalEntityId.value, baseUrl.value, requestData),
|
|
53
|
-
onSuccess: async () => {
|
|
54
|
-
await invalidateRootLegalEntity();
|
|
55
|
-
},
|
|
56
|
-
...options
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
const sourceOfFundsBaseMapping = {
|
|
60
|
-
"sourceOfFundsType.type": "sourceOfFunds.type",
|
|
61
|
-
"additionalData.description": "sourceOfFunds.description",
|
|
62
|
-
"additionalData.amount": "sourceOfFunds.amount",
|
|
63
|
-
"additionalData.dateOfFundsReceived": "sourceOfFunds.dateOfFundsReceived",
|
|
64
|
-
"additionalData.purpose": "sourceOfFunds.purpose",
|
|
65
|
-
"additionalData.relationship": "sourceOfFunds.relationship",
|
|
66
|
-
"additionalData.originatorLegalEntityId": "sourceOfFunds.originatorLegalEntityId",
|
|
67
|
-
"additionalData.financiers": "sourceOfFunds.financiers",
|
|
68
|
-
"additionalData.cryptocurrencyExchange": "sourceOfFunds.cryptocurrencyExchange",
|
|
69
|
-
"additionalData.dateOfSourceEvent": "sourceOfFunds.dateOfSourceEvent",
|
|
70
|
-
"additionalData.website": "sourceOfFunds.website",
|
|
71
|
-
"additionalData.legalName": "sourceOfFunds.legalName",
|
|
72
|
-
"additionalData.firstName": "sourceOfFunds.firstName",
|
|
73
|
-
"additionalData.lastName": "sourceOfFunds.lastName",
|
|
74
|
-
"additionalData.country": "sourceOfFunds.country",
|
|
75
|
-
"additionalData.originatorType": "sourceOfFunds.originatorType"
|
|
76
|
-
};
|
|
77
|
-
const sourceOfFundsComponentsKeyMapping = {
|
|
78
|
-
...sourceOfFundsBaseMapping
|
|
79
|
-
};
|
|
80
|
-
const mapSourceOfFundToSourceOfFundsSchema = (businessLine) => formatObject(businessLine, sourceOfFundsComponentsKeyMapping);
|
|
81
|
-
const sofErrorMessage = signal(void 0);
|
|
82
|
-
const setSofErrorMessage = (message) => {
|
|
83
|
-
sofErrorMessage.value = message;
|
|
84
|
-
};
|
|
85
|
-
const clearSofErrorMessage = () => {
|
|
86
|
-
sofErrorMessage.value = void 0;
|
|
87
|
-
};
|
|
88
|
-
const getSourceOfFundsTypes = async (baseUrl) => {
|
|
89
|
-
return httpGet({
|
|
90
|
-
baseUrl,
|
|
91
|
-
path: `datasets/sourceOfFundsTypes`
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
const useSourceOfFundsTypes = (options) => {
|
|
95
|
-
const { baseUrl } = useApiContext();
|
|
96
|
-
return useQuery({
|
|
97
|
-
queryKey: ["sourceOfFundsTypes"],
|
|
98
|
-
queryFn: () => getSourceOfFundsTypes(baseUrl.value),
|
|
99
|
-
...options
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
const sourceOfFunds = "adyen-kyc-source-of-funds";
|
|
103
|
-
const sourceOfFundsWrapperLoading = "adyen-kyc-source-of-funds-wrapper-loading";
|
|
104
|
-
const sourceOfFundsWrapperHeading = "adyen-kyc-source-of-funds-wrapper-heading";
|
|
105
|
-
const sourceOfFundsWrapperDescription = "adyen-kyc-source-of-funds-wrapper-description";
|
|
106
|
-
const sourceOfFundsGettingStarted = "adyen-kyc-source-of-funds-getting-started";
|
|
107
|
-
const sourceOfFundsGettingStartedError = "adyen-kyc-source-of-funds-getting-started-error";
|
|
108
|
-
const sourceOfFundsGettingStartedErrorActions = "adyen-kyc-source-of-funds-getting-started-error-actions";
|
|
109
|
-
const sourceOfFundsGettingStartedCards = "adyen-kyc-source-of-funds-getting-started-cards";
|
|
110
|
-
const sourceOfFundsGettingStartedCardsCard = "adyen-kyc-source-of-funds-getting-started-cards-card";
|
|
111
|
-
const sourceOfFundsGettingStartedCardsCardHeader = "adyen-kyc-source-of-funds-getting-started-cards-card-header";
|
|
112
|
-
const sourceOfFundsGettingStartedCardsCardBody = "adyen-kyc-source-of-funds-getting-started-cards-card-body";
|
|
113
|
-
const sourceOfFundsGettingStartedActions = "adyen-kyc-source-of-funds-getting-started-actions";
|
|
114
|
-
const sourceOfFundsAdditionalDataForm = "adyen-kyc-source-of-funds-additional-data-form";
|
|
115
|
-
const sourceOfFundsThirdPartyFundingFinancierGroup = "adyen-kyc-source-of-funds-third-party-funding-financier-group";
|
|
116
|
-
const sourceOfFundsThirdPartyFundingNameAvatarGroup = "adyen-kyc-source-of-funds-third-party-funding-name-avatar-group";
|
|
117
|
-
const sourceOfFundsThirdPartyFundingNameAddressGroup = "adyen-kyc-source-of-funds-third-party-funding-name-address-group";
|
|
118
|
-
const sourceOfFundsSofFinancierFormError = "adyen-kyc-source-of-funds-sof-financier-form-error";
|
|
119
|
-
const sourceOfFundsSofFinancierFormNameGroup = "adyen-kyc-source-of-funds-sof-financier-form-name-group";
|
|
120
|
-
const sourceOfFundsFinancierFooter = "adyen-kyc-source-of-funds-financier-footer";
|
|
121
|
-
const sourceOfFundsGridContainer = "adyen-kyc-source-of-funds-grid-container";
|
|
122
|
-
const sourceOfFundsUploadModalContentField = "adyen-kyc-source-of-funds-upload-modal-content-field";
|
|
123
|
-
const sourceOfFundsUploadModalContentFieldRadioGroup = "adyen-kyc-source-of-funds-upload-modal-content-field-radio-group";
|
|
124
|
-
const sourceOfFundsUploadModalContentRequirementsContainer = "adyen-kyc-source-of-funds-upload-modal-content-requirements-container";
|
|
125
|
-
const sourceOfFundsUploadListHeading = "adyen-kyc-source-of-funds-upload-list-heading";
|
|
126
|
-
const sourceOfFundsModal = "adyen-kyc-source-of-funds-modal";
|
|
127
|
-
const styles = {
|
|
128
|
-
sourceOfFunds,
|
|
129
|
-
sourceOfFundsWrapperLoading,
|
|
130
|
-
sourceOfFundsWrapperHeading,
|
|
131
|
-
sourceOfFundsWrapperDescription,
|
|
132
|
-
sourceOfFundsGettingStarted,
|
|
133
|
-
sourceOfFundsGettingStartedError,
|
|
134
|
-
sourceOfFundsGettingStartedErrorActions,
|
|
135
|
-
sourceOfFundsGettingStartedCards,
|
|
136
|
-
sourceOfFundsGettingStartedCardsCard,
|
|
137
|
-
sourceOfFundsGettingStartedCardsCardHeader,
|
|
138
|
-
sourceOfFundsGettingStartedCardsCardBody,
|
|
139
|
-
sourceOfFundsGettingStartedActions,
|
|
140
|
-
sourceOfFundsAdditionalDataForm,
|
|
141
|
-
sourceOfFundsThirdPartyFundingFinancierGroup,
|
|
142
|
-
sourceOfFundsThirdPartyFundingNameAvatarGroup,
|
|
143
|
-
sourceOfFundsThirdPartyFundingNameAddressGroup,
|
|
144
|
-
sourceOfFundsSofFinancierFormError,
|
|
145
|
-
sourceOfFundsSofFinancierFormNameGroup,
|
|
146
|
-
sourceOfFundsFinancierFooter,
|
|
147
|
-
sourceOfFundsGridContainer,
|
|
148
|
-
sourceOfFundsUploadModalContentField,
|
|
149
|
-
sourceOfFundsUploadModalContentFieldRadioGroup,
|
|
150
|
-
sourceOfFundsUploadModalContentRequirementsContainer,
|
|
151
|
-
sourceOfFundsUploadListHeading,
|
|
152
|
-
sourceOfFundsModal
|
|
153
|
-
};
|
|
154
|
-
function AdditionalDataForAssetSale(props) {
|
|
155
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
156
|
-
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
|
|
157
|
-
const { t: commonT } = useTranslation("common");
|
|
158
|
-
const handleOnAmountBlur = () => {
|
|
159
|
-
setIsFocused(false);
|
|
160
|
-
handleAmountChange("amount");
|
|
161
|
-
};
|
|
162
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
163
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsGridContainer, children: [
|
|
164
|
-
/* @__PURE__ */ jsx(
|
|
165
|
-
Field,
|
|
166
|
-
{
|
|
167
|
-
el: "fieldset",
|
|
168
|
-
name: "amount",
|
|
169
|
-
label: formUtils.getLabel("amount", "saleAmount"),
|
|
170
|
-
errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
|
|
171
|
-
children: (childProps) => /* @__PURE__ */ jsxs(
|
|
172
|
-
InputGroup,
|
|
173
|
-
{
|
|
174
|
-
...childProps,
|
|
175
|
-
id: "currencyGroup",
|
|
176
|
-
isFocused,
|
|
177
|
-
isInvalid: Boolean(!valid.amount && errors.amount),
|
|
178
|
-
children: [
|
|
179
|
-
/* @__PURE__ */ jsx(
|
|
180
|
-
Select,
|
|
181
|
-
{
|
|
182
|
-
name: "currency",
|
|
183
|
-
"aria-label": commonT(($) => $["currency"]),
|
|
184
|
-
isMulti: false,
|
|
185
|
-
items: allowedCurrencies,
|
|
186
|
-
selected: data.amount?.currency,
|
|
187
|
-
placeholder: commonT(($) => $["select"]),
|
|
188
|
-
onChange: handleAmountChange("currency"),
|
|
189
|
-
minimal: true
|
|
190
|
-
}
|
|
191
|
-
),
|
|
192
|
-
/* @__PURE__ */ jsx(
|
|
193
|
-
InputText,
|
|
194
|
-
{
|
|
195
|
-
...childProps,
|
|
196
|
-
name: "amount",
|
|
197
|
-
value: data.amount?.value,
|
|
198
|
-
readonly: formUtils.isReadOnly("amount"),
|
|
199
|
-
onInput: handleAmountChange("amount"),
|
|
200
|
-
onBlur: handleOnAmountBlur,
|
|
201
|
-
"aria-required": true,
|
|
202
|
-
"aria-invalid": !valid.amount,
|
|
203
|
-
isValid: valid.amount,
|
|
204
|
-
onFocusHandler: () => setIsFocused(true)
|
|
205
|
-
}
|
|
206
|
-
)
|
|
207
|
-
]
|
|
208
|
-
}
|
|
209
|
-
)
|
|
210
|
-
}
|
|
211
|
-
),
|
|
212
|
-
/* @__PURE__ */ jsx(
|
|
213
|
-
Field,
|
|
214
|
-
{
|
|
215
|
-
name: "dateOfSourceEvent",
|
|
216
|
-
label: formUtils.getLabel("dateOfSourceEvent", "dateOfSale"),
|
|
217
|
-
errorMessage: formUtils.getErrorMessage("dateOfSourceEvent", errors, fieldProblems),
|
|
218
|
-
isValid: valid.dateOfSourceEvent,
|
|
219
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
220
|
-
InputDate,
|
|
221
|
-
{
|
|
222
|
-
...childProps,
|
|
223
|
-
name: "dateOfSourceEvent",
|
|
224
|
-
value: data.dateOfSourceEvent,
|
|
225
|
-
onInput: handleChangeFor("dateOfSourceEvent", "input"),
|
|
226
|
-
onBlur: handleChangeFor("dateOfSourceEvent", "blur"),
|
|
227
|
-
"aria-required": true,
|
|
228
|
-
"aria-invalid": !valid.dateOfSourceEvent,
|
|
229
|
-
max: TODAY_DATE
|
|
230
|
-
}
|
|
231
|
-
)
|
|
232
|
-
}
|
|
233
|
-
)
|
|
234
|
-
] }),
|
|
235
|
-
/* @__PURE__ */ jsx(
|
|
236
|
-
Field,
|
|
237
|
-
{
|
|
238
|
-
name: "description",
|
|
239
|
-
label: formUtils.getLabel("description", "propertyDescription"),
|
|
240
|
-
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
241
|
-
isValid: valid.description,
|
|
242
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
243
|
-
TextArea,
|
|
244
|
-
{
|
|
245
|
-
...childProps,
|
|
246
|
-
name: "description",
|
|
247
|
-
value: data.description,
|
|
248
|
-
maxLength: SOF_CHARACTERS_LIMIT,
|
|
249
|
-
onInput: handleChangeFor("description"),
|
|
250
|
-
onBlur: handleChangeFor("description"),
|
|
251
|
-
"aria-invalid": !valid.description
|
|
252
|
-
}
|
|
253
|
-
)
|
|
254
|
-
}
|
|
255
|
-
)
|
|
256
|
-
] });
|
|
257
|
-
}
|
|
258
|
-
function AdditionalDataForBusiness(props) {
|
|
259
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
260
|
-
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
|
|
261
|
-
const { t: commonT } = useTranslation("common");
|
|
262
|
-
const handleOnAmountBlur = () => {
|
|
263
|
-
setIsFocused(false);
|
|
264
|
-
handleAmountChange("amount");
|
|
265
|
-
};
|
|
266
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
267
|
-
/* @__PURE__ */ jsx(
|
|
268
|
-
Field,
|
|
269
|
-
{
|
|
270
|
-
el: "fieldset",
|
|
271
|
-
name: "amount",
|
|
272
|
-
label: formUtils.getLabel("amount", "annualTurnover"),
|
|
273
|
-
errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
|
|
274
|
-
helper: commonT(($) => $["useFiguresFromTheMostRecentYearAvailable"]),
|
|
275
|
-
helperPosition: "below",
|
|
276
|
-
children: (childProps) => /* @__PURE__ */ jsxs(
|
|
277
|
-
InputGroup,
|
|
278
|
-
{
|
|
279
|
-
...childProps,
|
|
280
|
-
id: "currencyGroup",
|
|
281
|
-
isFocused,
|
|
282
|
-
isInvalid: Boolean(!valid.amount && errors.amount),
|
|
283
|
-
children: [
|
|
284
|
-
/* @__PURE__ */ jsx(
|
|
285
|
-
Select,
|
|
286
|
-
{
|
|
287
|
-
name: "currency",
|
|
288
|
-
"aria-label": commonT(($) => $["currency"]),
|
|
289
|
-
isMulti: false,
|
|
290
|
-
items: allowedCurrencies,
|
|
291
|
-
selected: data.amount?.currency,
|
|
292
|
-
placeholder: commonT(($) => $["select"]),
|
|
293
|
-
onChange: handleAmountChange("currency"),
|
|
294
|
-
minimal: true
|
|
295
|
-
}
|
|
296
|
-
),
|
|
297
|
-
/* @__PURE__ */ jsx(
|
|
298
|
-
InputText,
|
|
299
|
-
{
|
|
300
|
-
...childProps,
|
|
301
|
-
name: "amount",
|
|
302
|
-
value: data.amount?.value,
|
|
303
|
-
readonly: formUtils.isReadOnly("amount"),
|
|
304
|
-
onInput: handleAmountChange("amount"),
|
|
305
|
-
onBlur: handleOnAmountBlur,
|
|
306
|
-
"aria-required": true,
|
|
307
|
-
"aria-invalid": !valid.amount,
|
|
308
|
-
isValid: valid.amount,
|
|
309
|
-
onFocusHandler: () => setIsFocused(true)
|
|
310
|
-
}
|
|
311
|
-
)
|
|
312
|
-
]
|
|
313
|
-
}
|
|
314
|
-
)
|
|
315
|
-
}
|
|
316
|
-
),
|
|
317
|
-
/* @__PURE__ */ jsx(
|
|
318
|
-
Field,
|
|
319
|
-
{
|
|
320
|
-
name: "description",
|
|
321
|
-
label: formUtils.getLabel("description", "businessDescription"),
|
|
322
|
-
errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
|
|
323
|
-
isValid: valid.description,
|
|
324
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
325
|
-
TextArea,
|
|
326
|
-
{
|
|
327
|
-
...childProps,
|
|
328
|
-
name: "description",
|
|
329
|
-
value: data.description,
|
|
330
|
-
maxLength: SOF_CHARACTERS_LIMIT,
|
|
331
|
-
onInput: handleChangeFor("description"),
|
|
332
|
-
onBlur: handleChangeFor("description"),
|
|
333
|
-
"aria-invalid": !valid.description
|
|
334
|
-
}
|
|
335
|
-
)
|
|
336
|
-
}
|
|
337
|
-
)
|
|
338
|
-
] });
|
|
339
|
-
}
|
|
340
|
-
function AdditionalDataForCryptocurrency(props) {
|
|
341
|
-
const { t: sofT } = useTranslation("sof");
|
|
342
|
-
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor } = props;
|
|
343
|
-
return /* @__PURE__ */ jsx(
|
|
344
|
-
Field,
|
|
345
|
-
{
|
|
346
|
-
name: "cryptocurrencyExchange",
|
|
347
|
-
label: formUtils.getLabel("cryptocurrencyExchange", "cryptocurrencyExchange"),
|
|
348
|
-
errorMessage: formUtils.getErrorMessage("cryptocurrencyExchange", errors, fieldProblems),
|
|
349
|
-
isValid: valid.cryptocurrencyExchange,
|
|
350
|
-
helper: sofT(($) => $["nameOfTheExchangeWhereTheCryptocurrencyWasHeldPriorToSale"]),
|
|
351
|
-
helperPosition: "below",
|
|
352
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
353
|
-
InputText,
|
|
354
|
-
{
|
|
355
|
-
...childProps,
|
|
356
|
-
name: "cryptocurrencyExchange",
|
|
357
|
-
value: data.cryptocurrencyExchange,
|
|
358
|
-
readonly: formUtils.isReadOnly("cryptocurrencyExchange"),
|
|
359
|
-
onInput: handleChangeFor("cryptocurrencyExchange", "input"),
|
|
360
|
-
onBlur: handleChangeFor("cryptocurrencyExchange", "blur"),
|
|
361
|
-
"aria-required": true,
|
|
362
|
-
"aria-invalid": !valid.cryptocurrencyExchange,
|
|
363
|
-
isValid: valid.cryptocurrencyExchange
|
|
364
|
-
}
|
|
365
|
-
)
|
|
366
|
-
}
|
|
367
|
-
);
|
|
368
|
-
}
|
|
369
|
-
const radioItems = [
|
|
370
|
-
{
|
|
371
|
-
id: "individual",
|
|
372
|
-
name: "individual"
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
id: "organization",
|
|
376
|
-
name: "organization"
|
|
377
|
-
}
|
|
378
|
-
];
|
|
379
|
-
function AdditionalDataOriginatorLegalEntity(props) {
|
|
380
|
-
const { t: sofT } = useTranslation("sof");
|
|
381
|
-
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, sourceOfFundsType } = props;
|
|
382
|
-
const isDonations = useMemo(() => sourceOfFundsType === "donations", [sourceOfFundsType]);
|
|
383
|
-
const countryTranslationKey = isDonations && data?.originatorType === "individual" ? "donorsCountryOfResidence" : data?.originatorType === "organization" ? "organizationsCountryOfOperation" : "decedentsCountryOfDeath";
|
|
384
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
385
|
-
/* @__PURE__ */ jsx(
|
|
386
|
-
Field,
|
|
387
|
-
{
|
|
388
|
-
el: "fieldset",
|
|
389
|
-
name: "originatorType",
|
|
390
|
-
className: styles.sourceOfFundsUploadModalContentField,
|
|
391
|
-
label: sofT(
|
|
392
|
-
($) => $[isDonations ? "whereDidThisGiftOrDonationComeFrom" : "whereDidThisInheritanceComeFrom"]
|
|
393
|
-
),
|
|
394
|
-
errorMessage: formUtils.getErrorMessage("originatorType", errors, fieldProblems),
|
|
395
|
-
isValid: valid.originatorType,
|
|
396
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
397
|
-
RadioGroup,
|
|
398
|
-
{
|
|
399
|
-
...childProps,
|
|
400
|
-
name: "originatorType",
|
|
401
|
-
className: styles.sourceOfFundsUploadModalContentFieldRadioGroup,
|
|
402
|
-
items: radioItems,
|
|
403
|
-
value: data.originatorType,
|
|
404
|
-
disabled: false,
|
|
405
|
-
onChange: handleChangeFor("originatorType", "input"),
|
|
406
|
-
"aria-required": true
|
|
407
|
-
}
|
|
408
|
-
)
|
|
409
|
-
}
|
|
410
|
-
),
|
|
411
|
-
data?.originatorType === "organization" && /* @__PURE__ */ jsx(
|
|
412
|
-
Field,
|
|
413
|
-
{
|
|
414
|
-
name: "legalName",
|
|
415
|
-
label: formUtils.getLabel("legalName", "organizationsLegalName"),
|
|
416
|
-
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldProblems),
|
|
417
|
-
isValid: valid.legalName,
|
|
418
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
419
|
-
InputText,
|
|
420
|
-
{
|
|
421
|
-
...childProps,
|
|
422
|
-
name: "legalName",
|
|
423
|
-
value: data.legalName,
|
|
424
|
-
readonly: formUtils.isReadOnly("legalName"),
|
|
425
|
-
onInput: handleChangeFor("legalName", "input"),
|
|
426
|
-
onBlur: handleChangeFor("legalName", "blur"),
|
|
427
|
-
"aria-required": true,
|
|
428
|
-
"aria-invalid": !valid.legalName,
|
|
429
|
-
isValid: valid.legalName
|
|
430
|
-
}
|
|
431
|
-
)
|
|
432
|
-
}
|
|
433
|
-
),
|
|
434
|
-
data?.originatorType === "individual" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
435
|
-
/* @__PURE__ */ jsx(
|
|
436
|
-
Field,
|
|
437
|
-
{
|
|
438
|
-
name: "firstName",
|
|
439
|
-
label: formUtils.getLabel(
|
|
440
|
-
"firstName",
|
|
441
|
-
isDonations ? "donorsLegalFirstName" : "decedentsLegalFirstName"
|
|
442
|
-
),
|
|
443
|
-
errorMessage: formUtils.getErrorMessage("firstName", errors, fieldProblems),
|
|
444
|
-
isValid: valid.firstName,
|
|
445
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
446
|
-
InputText,
|
|
447
|
-
{
|
|
448
|
-
...childProps,
|
|
449
|
-
name: "firstName",
|
|
450
|
-
value: data.firstName,
|
|
451
|
-
readonly: formUtils.isReadOnly("firstName"),
|
|
452
|
-
onInput: handleChangeFor("firstName", "input"),
|
|
453
|
-
onBlur: handleChangeFor("firstName", "blur"),
|
|
454
|
-
"aria-required": true,
|
|
455
|
-
"aria-invalid": !valid.firstName,
|
|
456
|
-
isValid: valid.firstName
|
|
457
|
-
}
|
|
458
|
-
)
|
|
459
|
-
}
|
|
460
|
-
),
|
|
461
|
-
/* @__PURE__ */ jsx(
|
|
462
|
-
Field,
|
|
463
|
-
{
|
|
464
|
-
name: "lastName",
|
|
465
|
-
label: formUtils.getLabel(
|
|
466
|
-
"lastName",
|
|
467
|
-
isDonations ? "donorsLegalLastName" : "decedentsLegalLastName"
|
|
468
|
-
),
|
|
469
|
-
errorMessage: formUtils.getErrorMessage("lastName", errors, fieldProblems),
|
|
470
|
-
isValid: valid.lastName,
|
|
471
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
472
|
-
InputText,
|
|
473
|
-
{
|
|
474
|
-
...childProps,
|
|
475
|
-
name: "lastName",
|
|
476
|
-
value: data.lastName,
|
|
477
|
-
readonly: formUtils.isReadOnly("lastName"),
|
|
478
|
-
onInput: handleChangeFor("lastName", "input"),
|
|
479
|
-
onBlur: handleChangeFor("lastName", "blur"),
|
|
480
|
-
"aria-required": true,
|
|
481
|
-
"aria-invalid": !valid.lastName,
|
|
482
|
-
isValid: valid.lastName
|
|
483
|
-
}
|
|
484
|
-
)
|
|
485
|
-
}
|
|
486
|
-
)
|
|
487
|
-
] }),
|
|
488
|
-
data?.originatorType && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
489
|
-
/* @__PURE__ */ jsx(
|
|
490
|
-
Field,
|
|
491
|
-
{
|
|
492
|
-
name: "relationship",
|
|
493
|
-
label: formUtils.getLabel(
|
|
494
|
-
"relationship",
|
|
495
|
-
isDonations && data?.originatorType === "individual" ? "yourRelationshipToDonor" : data?.originatorType === "organization" ? "yourRelationshipToOrganization" : "yourRelationshipToDecedent"
|
|
496
|
-
),
|
|
497
|
-
errorMessage: formUtils.getErrorMessage("relationship", errors, fieldProblems),
|
|
498
|
-
isValid: valid.relationship,
|
|
499
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
500
|
-
InputText,
|
|
501
|
-
{
|
|
502
|
-
...childProps,
|
|
503
|
-
name: "relationship",
|
|
504
|
-
value: data.relationship,
|
|
505
|
-
readonly: formUtils.isReadOnly("relationship"),
|
|
506
|
-
onInput: handleChangeFor("relationship", "input"),
|
|
507
|
-
onBlur: handleChangeFor("relationship", "blur"),
|
|
508
|
-
"aria-required": true,
|
|
509
|
-
"aria-invalid": !valid.relationship,
|
|
510
|
-
isValid: valid.relationship
|
|
511
|
-
}
|
|
512
|
-
)
|
|
513
|
-
}
|
|
514
|
-
),
|
|
515
|
-
/* @__PURE__ */ jsx(
|
|
516
|
-
CountryField,
|
|
517
|
-
{
|
|
518
|
-
data: { country: data.country },
|
|
519
|
-
valid: { country: valid.country },
|
|
520
|
-
errors: {
|
|
521
|
-
country: formUtils.getErrorMessage("country", errors, fieldProblems)
|
|
522
|
-
},
|
|
523
|
-
labels: {
|
|
524
|
-
country: sofT(($) => $[countryTranslationKey])
|
|
525
|
-
},
|
|
526
|
-
readonly: formUtils.isReadOnly("country"),
|
|
527
|
-
handleChangeFor
|
|
528
|
-
}
|
|
529
|
-
)
|
|
530
|
-
] })
|
|
531
|
-
] });
|
|
532
|
-
}
|
|
533
|
-
function AdditionalDataForDonation(props) {
|
|
534
|
-
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor } = props;
|
|
535
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
536
|
-
/* @__PURE__ */ jsx(
|
|
537
|
-
AdditionalDataOriginatorLegalEntity,
|
|
538
|
-
{
|
|
539
|
-
formUtils,
|
|
540
|
-
handleChangeFor,
|
|
541
|
-
data,
|
|
542
|
-
errors,
|
|
543
|
-
valid,
|
|
544
|
-
fieldProblems,
|
|
545
|
-
sourceOfFundsType: "donations"
|
|
546
|
-
}
|
|
547
|
-
),
|
|
548
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsGridContainer, children: [
|
|
549
|
-
/* @__PURE__ */ jsx(
|
|
550
|
-
Field,
|
|
551
|
-
{
|
|
552
|
-
name: "purpose",
|
|
553
|
-
label: formUtils.getLabel("purpose", "reason"),
|
|
554
|
-
errorMessage: formUtils.getErrorMessage("purpose", errors, fieldProblems),
|
|
555
|
-
isValid: valid.purpose,
|
|
556
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
557
|
-
InputText,
|
|
558
|
-
{
|
|
559
|
-
...childProps,
|
|
560
|
-
name: "purpose",
|
|
561
|
-
value: data.purpose,
|
|
562
|
-
readonly: formUtils.isReadOnly("purpose"),
|
|
563
|
-
onInput: handleChangeFor("purpose", "input"),
|
|
564
|
-
onBlur: handleChangeFor("purpose", "blur"),
|
|
565
|
-
"aria-required": true,
|
|
566
|
-
"aria-invalid": !valid.purpose,
|
|
567
|
-
isValid: valid.purpose
|
|
568
|
-
}
|
|
569
|
-
)
|
|
570
|
-
}
|
|
571
|
-
),
|
|
572
|
-
/* @__PURE__ */ jsx(
|
|
573
|
-
Field,
|
|
574
|
-
{
|
|
575
|
-
name: "dateOfFundsReceived",
|
|
576
|
-
label: formUtils.getLabel("dateOfFundsReceived", "date"),
|
|
577
|
-
errorMessage: formUtils.getErrorMessage("dateOfFundsReceived", errors, fieldProblems),
|
|
578
|
-
isValid: valid.dateOfFundsReceived,
|
|
579
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
580
|
-
InputDate,
|
|
581
|
-
{
|
|
582
|
-
...childProps,
|
|
583
|
-
name: "dateOfFundsReceived",
|
|
584
|
-
value: formatDateForInput(data.dateOfFundsReceived),
|
|
585
|
-
onInput: handleChangeFor("dateOfFundsReceived", "input"),
|
|
586
|
-
onBlur: handleChangeFor("dateOfFundsReceived", "blur"),
|
|
587
|
-
"aria-required": true,
|
|
588
|
-
"aria-invalid": !valid.dateOfFundsReceived,
|
|
589
|
-
max: TODAY_DATE
|
|
590
|
-
}
|
|
591
|
-
)
|
|
592
|
-
}
|
|
593
|
-
)
|
|
594
|
-
] })
|
|
595
|
-
] });
|
|
596
|
-
}
|
|
597
|
-
function AdditionalDataForGambling(props) {
|
|
598
|
-
const { t: sofT } = useTranslation("sof");
|
|
599
|
-
const { t: commonT } = useTranslation("common");
|
|
600
|
-
const [focusedInput, setFocusedInput] = useState();
|
|
601
|
-
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
|
|
602
|
-
const handleOnAmountBlur = () => {
|
|
603
|
-
setFocusedInput(void 0);
|
|
604
|
-
handleAmountChange("amount");
|
|
605
|
-
};
|
|
606
|
-
const handleWebsiteBlur = () => {
|
|
607
|
-
setFocusedInput(void 0);
|
|
608
|
-
handleChangeFor("website", "blur");
|
|
609
|
-
};
|
|
610
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
611
|
-
/* @__PURE__ */ jsx(
|
|
612
|
-
Field,
|
|
613
|
-
{
|
|
614
|
-
el: "fieldset",
|
|
615
|
-
name: "amount",
|
|
616
|
-
label: formUtils.getLabel("amount", "totalAmountWon"),
|
|
617
|
-
errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
|
|
618
|
-
children: (childProps) => /* @__PURE__ */ jsxs(
|
|
619
|
-
InputGroup,
|
|
620
|
-
{
|
|
621
|
-
...childProps,
|
|
622
|
-
id: "currencyGroup",
|
|
623
|
-
isFocused: focusedInput === "amount",
|
|
624
|
-
isInvalid: Boolean(!valid.amount && errors.amount),
|
|
625
|
-
children: [
|
|
626
|
-
/* @__PURE__ */ jsx(
|
|
627
|
-
Select,
|
|
628
|
-
{
|
|
629
|
-
name: "currency",
|
|
630
|
-
"aria-label": commonT(($) => $["currency"]),
|
|
631
|
-
isMulti: false,
|
|
632
|
-
items: allowedCurrencies,
|
|
633
|
-
selected: data.amount?.currency,
|
|
634
|
-
placeholder: commonT(($) => $["select"]),
|
|
635
|
-
onChange: handleAmountChange("currency"),
|
|
636
|
-
minimal: true
|
|
637
|
-
}
|
|
638
|
-
),
|
|
639
|
-
/* @__PURE__ */ jsx(
|
|
640
|
-
InputText,
|
|
641
|
-
{
|
|
642
|
-
...childProps,
|
|
643
|
-
name: "amount",
|
|
644
|
-
value: data.amount?.value,
|
|
645
|
-
readonly: formUtils.isReadOnly("amount"),
|
|
646
|
-
onInput: handleAmountChange("amount"),
|
|
647
|
-
onBlur: handleOnAmountBlur,
|
|
648
|
-
"aria-required": true,
|
|
649
|
-
"aria-invalid": !valid.amount,
|
|
650
|
-
isValid: valid.amount,
|
|
651
|
-
onFocusHandler: () => setFocusedInput("amount")
|
|
652
|
-
}
|
|
653
|
-
)
|
|
654
|
-
]
|
|
655
|
-
}
|
|
656
|
-
)
|
|
657
|
-
}
|
|
658
|
-
),
|
|
659
|
-
/* @__PURE__ */ jsx(
|
|
660
|
-
Field,
|
|
661
|
-
{
|
|
662
|
-
name: "dateOfSourceEvent",
|
|
663
|
-
label: formUtils.getLabel("dateOfSourceEvent", "dateOfWinning"),
|
|
664
|
-
errorMessage: formUtils.getErrorMessage("dateOfSourceEvent", errors, fieldProblems),
|
|
665
|
-
isValid: valid.dateOfSourceEvent,
|
|
666
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
667
|
-
InputDate,
|
|
668
|
-
{
|
|
669
|
-
...childProps,
|
|
670
|
-
name: "dateOfSourceEvent",
|
|
671
|
-
value: formatDateForInput(data.dateOfSourceEvent),
|
|
672
|
-
onInput: handleChangeFor("dateOfSourceEvent", "input"),
|
|
673
|
-
onBlur: handleChangeFor("dateOfSourceEvent", "blur"),
|
|
674
|
-
"aria-required": true,
|
|
675
|
-
"aria-invalid": !valid.dateOfSourceEvent,
|
|
676
|
-
max: TODAY_DATE
|
|
677
|
-
}
|
|
678
|
-
)
|
|
679
|
-
}
|
|
680
|
-
),
|
|
681
|
-
/* @__PURE__ */ jsx(
|
|
682
|
-
Field,
|
|
683
|
-
{
|
|
684
|
-
name: "website",
|
|
685
|
-
label: formUtils.getLabel("website", "sourceOfWinnings"),
|
|
686
|
-
errorMessage: formUtils.getErrorMessage("website", errors, fieldProblems),
|
|
687
|
-
helper: sofT(($) => $["nameOfCasinoLottery"]),
|
|
688
|
-
helperPosition: "below",
|
|
689
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
690
|
-
InputGroup,
|
|
691
|
-
{
|
|
692
|
-
...childProps,
|
|
693
|
-
id: "websiteGroup",
|
|
694
|
-
isFocused: focusedInput === "website",
|
|
695
|
-
isInvalid: Boolean(!valid.website && errors.website),
|
|
696
|
-
children: /* @__PURE__ */ jsx(
|
|
697
|
-
InputText,
|
|
698
|
-
{
|
|
699
|
-
...childProps,
|
|
700
|
-
placeholder: "https://",
|
|
701
|
-
name: "website",
|
|
702
|
-
value: data.website,
|
|
703
|
-
readonly: formUtils.isReadOnly("website"),
|
|
704
|
-
onInput: handleChangeFor("website", "input"),
|
|
705
|
-
onBlur: handleWebsiteBlur,
|
|
706
|
-
"aria-required": true,
|
|
707
|
-
"aria-invalid": !valid.website,
|
|
708
|
-
isValid: valid.website,
|
|
709
|
-
onFocusHandler: () => setFocusedInput("website")
|
|
710
|
-
}
|
|
711
|
-
)
|
|
712
|
-
}
|
|
713
|
-
)
|
|
714
|
-
}
|
|
715
|
-
)
|
|
716
|
-
] });
|
|
717
|
-
}
|
|
718
|
-
function AdditionalDataForInheritance(props) {
|
|
719
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
720
|
-
const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
|
|
721
|
-
const { t: commonT } = useTranslation("common");
|
|
722
|
-
const handleOnAmountBlur = () => {
|
|
723
|
-
setIsFocused(false);
|
|
724
|
-
handleAmountChange("amount");
|
|
725
|
-
};
|
|
726
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
727
|
-
/* @__PURE__ */ jsx(
|
|
728
|
-
AdditionalDataOriginatorLegalEntity,
|
|
729
|
-
{
|
|
730
|
-
formUtils,
|
|
731
|
-
handleChangeFor,
|
|
732
|
-
data,
|
|
733
|
-
errors,
|
|
734
|
-
valid,
|
|
735
|
-
fieldProblems,
|
|
736
|
-
sourceOfFundsType: "inheritance"
|
|
737
|
-
}
|
|
738
|
-
),
|
|
739
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsGridContainer, children: [
|
|
740
|
-
/* @__PURE__ */ jsx(
|
|
741
|
-
Field,
|
|
742
|
-
{
|
|
743
|
-
el: "fieldset",
|
|
744
|
-
name: "amount",
|
|
745
|
-
label: formUtils.getLabel("amount", "inheritanceAmount"),
|
|
746
|
-
errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
|
|
747
|
-
children: (childProps) => /* @__PURE__ */ jsxs(
|
|
748
|
-
InputGroup,
|
|
749
|
-
{
|
|
750
|
-
...childProps,
|
|
751
|
-
id: "currencyGroup",
|
|
752
|
-
isFocused,
|
|
753
|
-
isInvalid: Boolean(!valid.amount && errors.amount),
|
|
754
|
-
children: [
|
|
755
|
-
/* @__PURE__ */ jsx(
|
|
756
|
-
Select,
|
|
757
|
-
{
|
|
758
|
-
name: "currency",
|
|
759
|
-
"aria-label": commonT(($) => $["currency"]),
|
|
760
|
-
isMulti: false,
|
|
761
|
-
items: allowedCurrencies ?? [],
|
|
762
|
-
selected: data.amount?.currency,
|
|
763
|
-
placeholder: commonT(($) => $["select"]),
|
|
764
|
-
onChange: handleAmountChange("currency"),
|
|
765
|
-
minimal: true
|
|
766
|
-
}
|
|
767
|
-
),
|
|
768
|
-
/* @__PURE__ */ jsx(
|
|
769
|
-
InputText,
|
|
770
|
-
{
|
|
771
|
-
...childProps,
|
|
772
|
-
name: "amount",
|
|
773
|
-
value: data.amount?.value,
|
|
774
|
-
readonly: formUtils.isReadOnly("amount"),
|
|
775
|
-
onInput: handleAmountChange("amount"),
|
|
776
|
-
onBlur: handleOnAmountBlur,
|
|
777
|
-
"aria-required": true,
|
|
778
|
-
"aria-invalid": !valid.amount,
|
|
779
|
-
isValid: valid.amount,
|
|
780
|
-
onFocusHandler: () => setIsFocused(true)
|
|
781
|
-
}
|
|
782
|
-
)
|
|
783
|
-
]
|
|
784
|
-
}
|
|
785
|
-
)
|
|
786
|
-
}
|
|
787
|
-
),
|
|
788
|
-
/* @__PURE__ */ jsx(
|
|
789
|
-
Field,
|
|
790
|
-
{
|
|
791
|
-
name: "dateOfFundsReceived",
|
|
792
|
-
label: formUtils.getLabel("dateOfFundsReceived", "inheritanceReceivedOn"),
|
|
793
|
-
errorMessage: formUtils.getErrorMessage("dateOfFundsReceived", errors, fieldProblems),
|
|
794
|
-
isValid: valid.dateOfFundsReceived,
|
|
795
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
796
|
-
InputDate,
|
|
797
|
-
{
|
|
798
|
-
...childProps,
|
|
799
|
-
name: "dateOfFundsReceived",
|
|
800
|
-
value: formatDateForInput(data.dateOfFundsReceived),
|
|
801
|
-
onInput: handleChangeFor("dateOfFundsReceived", "input"),
|
|
802
|
-
onBlur: handleChangeFor("dateOfFundsReceived", "blur"),
|
|
803
|
-
"aria-required": true,
|
|
804
|
-
"aria-invalid": !valid.dateOfFundsReceived,
|
|
805
|
-
max: TODAY_DATE
|
|
806
|
-
}
|
|
807
|
-
)
|
|
808
|
-
}
|
|
809
|
-
)
|
|
810
|
-
] })
|
|
811
|
-
] });
|
|
812
|
-
}
|
|
813
|
-
const SOFFinancierModal = (props) => {
|
|
814
|
-
const { t: sofT } = useTranslation("sof");
|
|
815
|
-
const { t: commonT } = useTranslation("common");
|
|
816
|
-
const { financier, handleModalClose, indexNumber, handleFinancierUpdate } = props;
|
|
817
|
-
const [formData, setFormData] = useState(financier);
|
|
818
|
-
const [formErrors, setFormErrors] = useState({});
|
|
819
|
-
const [confirmOpen, setConfirmOpen] = useState(false);
|
|
820
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
821
|
-
const [errorMessage, setErrorMessage] = useState("");
|
|
822
|
-
const handleInputUpdate = (key, e) => {
|
|
823
|
-
const inputEl = e.target;
|
|
824
|
-
setErrorMessage("");
|
|
825
|
-
const value = inputEl?.value;
|
|
826
|
-
let inputData = {
|
|
827
|
-
[key]: value
|
|
828
|
-
};
|
|
829
|
-
if (["amount", "currency"].includes(key)) {
|
|
830
|
-
const amountValue = {
|
|
831
|
-
currency: key === "currency" ? value : formData?.amount?.currency,
|
|
832
|
-
value: key === "currency" ? formData?.amount?.value : value
|
|
833
|
-
};
|
|
834
|
-
inputData = { amount: amountValue };
|
|
835
|
-
}
|
|
836
|
-
const data = {
|
|
837
|
-
...formData,
|
|
838
|
-
...inputData
|
|
839
|
-
};
|
|
840
|
-
setFormData(data);
|
|
841
|
-
const errors = getInputErrors({ formErrors, data, key, value });
|
|
842
|
-
setFormErrors(errors);
|
|
843
|
-
};
|
|
844
|
-
const handleOnAmountBlur = () => {
|
|
845
|
-
setIsFocused(false);
|
|
846
|
-
const errors = getInputErrors({
|
|
847
|
-
formErrors,
|
|
848
|
-
data: formData,
|
|
849
|
-
key: "amount",
|
|
850
|
-
value: formData?.amount?.value
|
|
851
|
-
});
|
|
852
|
-
setFormErrors(errors);
|
|
853
|
-
};
|
|
854
|
-
const allFieldsFilled = (data) => {
|
|
855
|
-
return data?.firstName && data?.lastName && data?.location && data?.amount?.currency && !Number.isNaN(Number(data?.amount?.value));
|
|
856
|
-
};
|
|
857
|
-
const handleFinancierSave = () => {
|
|
858
|
-
if (formData && allFieldsFilled(formData)) {
|
|
859
|
-
handleFinancierUpdate({ formData, indexNumber });
|
|
860
|
-
handleModalClose();
|
|
861
|
-
} else {
|
|
862
|
-
const fields = [
|
|
863
|
-
"firstName",
|
|
864
|
-
"lastName",
|
|
865
|
-
"location",
|
|
866
|
-
"amount"
|
|
867
|
-
];
|
|
868
|
-
const errors = fields.reduce((acc, key) => {
|
|
869
|
-
const value = key === "amount" ? formData?.amount?.value : formData?.[key];
|
|
870
|
-
return {
|
|
871
|
-
...acc,
|
|
872
|
-
...getInputErrors({
|
|
873
|
-
formErrors: void 0,
|
|
874
|
-
data: formData,
|
|
875
|
-
key,
|
|
876
|
-
value
|
|
877
|
-
})
|
|
878
|
-
};
|
|
879
|
-
}, {});
|
|
880
|
-
setFormErrors(errors);
|
|
881
|
-
setErrorMessage(sofT(($) => $["pleaseFillInAllFields"]));
|
|
882
|
-
}
|
|
883
|
-
};
|
|
884
|
-
const handleFinancierDelete = async () => {
|
|
885
|
-
handleFinancierUpdate({ indexNumber });
|
|
886
|
-
handleModalClose();
|
|
887
|
-
};
|
|
888
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
889
|
-
/* @__PURE__ */ jsx(Modal, { onClose: handleModalClose, ariaLabel: sofT(($) => $["investorDetails"]), inset: true, children: /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsModal, children: [
|
|
890
|
-
/* @__PURE__ */ jsx(
|
|
891
|
-
Typography,
|
|
892
|
-
{
|
|
893
|
-
variant: "title-l",
|
|
894
|
-
el: "h3",
|
|
895
|
-
className: styles.sourceOfFundsGettingStartedHelpHeader,
|
|
896
|
-
children: sofT(($) => $["investorDetails"])
|
|
897
|
-
}
|
|
898
|
-
),
|
|
899
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsSofFinancierForm, children: [
|
|
900
|
-
errorMessage && /* @__PURE__ */ jsx(
|
|
901
|
-
Alert,
|
|
902
|
-
{
|
|
903
|
-
title: sofT(($) => $["errorSubmittingData"]),
|
|
904
|
-
variant: "error",
|
|
905
|
-
className: styles.sourceOfFundsSofFinancierFormError,
|
|
906
|
-
children: errorMessage
|
|
907
|
-
}
|
|
908
|
-
),
|
|
909
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsSofFinancierFormNameGroup, children: [
|
|
910
|
-
/* @__PURE__ */ jsx(
|
|
911
|
-
Field,
|
|
912
|
-
{
|
|
913
|
-
name: "firstName",
|
|
914
|
-
label: commonT(($) => $["firstName"]),
|
|
915
|
-
errorMessage: formErrors.firstName,
|
|
916
|
-
isValid: !formErrors.firstName,
|
|
917
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
918
|
-
InputText,
|
|
919
|
-
{
|
|
920
|
-
...childProps,
|
|
921
|
-
name: "firstName",
|
|
922
|
-
value: formData?.firstName,
|
|
923
|
-
onInput: (e) => handleInputUpdate("firstName", e),
|
|
924
|
-
onBlur: (e) => handleInputUpdate("firstName", e),
|
|
925
|
-
"aria-required": true,
|
|
926
|
-
"aria-invalid": Boolean(formErrors.firstName),
|
|
927
|
-
isValid: !formErrors.firstName
|
|
928
|
-
}
|
|
929
|
-
)
|
|
930
|
-
}
|
|
931
|
-
),
|
|
932
|
-
/* @__PURE__ */ jsx(
|
|
933
|
-
Field,
|
|
934
|
-
{
|
|
935
|
-
name: "lastName",
|
|
936
|
-
label: commonT(($) => $["lastName"]),
|
|
937
|
-
errorMessage: formErrors.lastName,
|
|
938
|
-
isValid: !formErrors.lastName,
|
|
939
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
940
|
-
InputText,
|
|
941
|
-
{
|
|
942
|
-
...childProps,
|
|
943
|
-
name: "lastName",
|
|
944
|
-
value: formData?.lastName,
|
|
945
|
-
onInput: (e) => handleInputUpdate("lastName", e),
|
|
946
|
-
onBlur: (e) => handleInputUpdate("lastName", e),
|
|
947
|
-
"aria-required": true,
|
|
948
|
-
"aria-invalid": Boolean(formErrors.lastName),
|
|
949
|
-
isValid: !formErrors.lastName
|
|
950
|
-
}
|
|
951
|
-
)
|
|
952
|
-
}
|
|
953
|
-
)
|
|
954
|
-
] }),
|
|
955
|
-
/* @__PURE__ */ jsx(
|
|
956
|
-
Field,
|
|
957
|
-
{
|
|
958
|
-
name: "location",
|
|
959
|
-
label: sofT(($) => $["investorLocation"]),
|
|
960
|
-
errorMessage: formErrors.location,
|
|
961
|
-
isValid: !formErrors.location,
|
|
962
|
-
helperPosition: "below",
|
|
963
|
-
showErrorIconBottom: true,
|
|
964
|
-
helper: sofT(($) => $["theCityAndCountryRegion"]),
|
|
965
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
966
|
-
InputText,
|
|
967
|
-
{
|
|
968
|
-
...childProps,
|
|
969
|
-
name: "location",
|
|
970
|
-
value: formData?.location,
|
|
971
|
-
onInput: (e) => handleInputUpdate("location", e),
|
|
972
|
-
onBlur: (e) => handleInputUpdate("location", e),
|
|
973
|
-
"aria-required": true,
|
|
974
|
-
"aria-invalid": Boolean(formErrors.location),
|
|
975
|
-
isValid: !formErrors.location
|
|
976
|
-
}
|
|
977
|
-
)
|
|
978
|
-
}
|
|
979
|
-
),
|
|
980
|
-
/* @__PURE__ */ jsx(
|
|
981
|
-
Field,
|
|
982
|
-
{
|
|
983
|
-
el: "fieldset",
|
|
984
|
-
name: "amount",
|
|
985
|
-
label: sofT(($) => $["investmentAmount"]),
|
|
986
|
-
errorMessage: formErrors.amount,
|
|
987
|
-
isValid: !formErrors.amount,
|
|
988
|
-
children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, { ...childProps, id: "currencyGroup", isFocused, children: [
|
|
989
|
-
/* @__PURE__ */ jsx(
|
|
990
|
-
Select,
|
|
991
|
-
{
|
|
992
|
-
minimal: true,
|
|
993
|
-
name: "currency",
|
|
994
|
-
"aria-label": commonT(($) => $["currency"]),
|
|
995
|
-
isMulti: false,
|
|
996
|
-
items: allowedCurrencies,
|
|
997
|
-
selected: formData?.amount?.currency,
|
|
998
|
-
placeholder: commonT(($) => $["select"]),
|
|
999
|
-
onChange: (e) => handleInputUpdate("currency", e)
|
|
1000
|
-
}
|
|
1001
|
-
),
|
|
1002
|
-
/* @__PURE__ */ jsx(
|
|
1003
|
-
InputText,
|
|
1004
|
-
{
|
|
1005
|
-
...childProps,
|
|
1006
|
-
name: "amount",
|
|
1007
|
-
value: formData?.amount?.value,
|
|
1008
|
-
onInput: (e) => handleInputUpdate("amount", e),
|
|
1009
|
-
onBlur: handleOnAmountBlur,
|
|
1010
|
-
"aria-required": true,
|
|
1011
|
-
onFocusHandler: () => setIsFocused(true)
|
|
1012
|
-
}
|
|
1013
|
-
)
|
|
1014
|
-
] })
|
|
1015
|
-
}
|
|
1016
|
-
)
|
|
1017
|
-
] }),
|
|
1018
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsFinancierFooter, 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"]) })
|
|
1021
|
-
] })
|
|
1022
|
-
] }) }),
|
|
1023
|
-
confirmOpen && /* @__PURE__ */ jsx(
|
|
1024
|
-
Confirm,
|
|
1025
|
-
{
|
|
1026
|
-
title: sofT(($) => $["areYouSureYouWantToDeleteThisInvestorDetails"]),
|
|
1027
|
-
confirmText: commonT(($) => $["delete"]),
|
|
1028
|
-
onConfirm: handleFinancierDelete,
|
|
1029
|
-
onCancel: () => setConfirmOpen(false),
|
|
1030
|
-
critical: true
|
|
1031
|
-
}
|
|
1032
|
-
)
|
|
1033
|
-
] });
|
|
1034
|
-
};
|
|
1035
|
-
function AdditionalDataForThirdParty(props) {
|
|
1036
|
-
const [showFinancierModal, setShowFinancierModal] = useState(false);
|
|
1037
|
-
const [activeFinancier, setActiveFinancier] = useState();
|
|
1038
|
-
const [activeIndex, setActiveIndex] = useState();
|
|
1039
|
-
const { data, fieldProblems, errors, handleChangeFor, formUtils, valid } = props;
|
|
1040
|
-
const { t: sofT } = useTranslation("sof");
|
|
1041
|
-
const { i18n } = useI18nContext();
|
|
1042
|
-
const handleToggleFinancierModal = () => {
|
|
1043
|
-
setActiveFinancier(void 0);
|
|
1044
|
-
setActiveIndex(void 0);
|
|
1045
|
-
setShowFinancierModal(!showFinancierModal);
|
|
1046
|
-
};
|
|
1047
|
-
const handleShowUpdateFinancierModal = (index) => {
|
|
1048
|
-
if (!data.financiers) {
|
|
1049
|
-
return;
|
|
1050
|
-
}
|
|
1051
|
-
const financier = data.financiers[index];
|
|
1052
|
-
setActiveFinancier(financier);
|
|
1053
|
-
setActiveIndex(index);
|
|
1054
|
-
setShowFinancierModal(true);
|
|
1055
|
-
};
|
|
1056
|
-
const handleFinancierUpdate = ({
|
|
1057
|
-
formData,
|
|
1058
|
-
indexNumber
|
|
1059
|
-
}) => {
|
|
1060
|
-
const existingFinanciers = data.financiers || [];
|
|
1061
|
-
let newFinanciers = [];
|
|
1062
|
-
if (!formData) {
|
|
1063
|
-
if (indexNumber !== void 0) {
|
|
1064
|
-
newFinanciers = existingFinanciers.filter((_, index) => index !== indexNumber);
|
|
1065
|
-
}
|
|
1066
|
-
} else {
|
|
1067
|
-
newFinanciers = [...existingFinanciers, formData];
|
|
1068
|
-
if (Number.isFinite(indexNumber)) {
|
|
1069
|
-
newFinanciers = existingFinanciers.map(
|
|
1070
|
-
(existingFinancier, i) => i === indexNumber ? formData : existingFinancier
|
|
1071
|
-
);
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
const financierEvent = {
|
|
1075
|
-
target: {
|
|
1076
|
-
name: "financiers",
|
|
1077
|
-
value: newFinanciers
|
|
1078
|
-
}
|
|
1079
|
-
};
|
|
1080
|
-
handleChangeFor("financiers")(financierEvent);
|
|
1081
|
-
};
|
|
1082
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1083
|
-
errors.financiers && !valid.financiers && /* @__PURE__ */ jsx(
|
|
1084
|
-
Alert,
|
|
1085
|
-
{
|
|
1086
|
-
title: i18n.get(
|
|
1087
|
-
formUtils.getErrorMessage("financiers", errors, fieldProblems)
|
|
1088
|
-
),
|
|
1089
|
-
variant: "error",
|
|
1090
|
-
className: styles.sourceOfFundsSofFinancierFormError,
|
|
1091
|
-
children: sofT(($) => $["addAtLeastOneInvestor"])
|
|
1092
|
-
}
|
|
1093
|
-
),
|
|
1094
|
-
data.financiers?.map((financier, index) => /* @__PURE__ */ jsxs(
|
|
1095
|
-
"button",
|
|
1096
|
-
{
|
|
1097
|
-
type: "button",
|
|
1098
|
-
onClick: () => handleShowUpdateFinancierModal(index),
|
|
1099
|
-
className: styles.sourceOfFundsThirdPartyFundingFinancierGroup,
|
|
1100
|
-
children: [
|
|
1101
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAvatarGroup, children: [
|
|
1102
|
-
/* @__PURE__ */ jsx(Avatar, { iconName: "user", circle: true }),
|
|
1103
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAddressGroup, children: [
|
|
1104
|
-
/* @__PURE__ */ jsxs(Typography, { el: "div", variant: "body-strongest", children: [
|
|
1105
|
-
financier.firstName,
|
|
1106
|
-
" ",
|
|
1107
|
-
financier.lastName
|
|
1108
|
-
] }),
|
|
1109
|
-
/* @__PURE__ */ jsx(Typography, { el: "div", variant: "caption", children: financier.location })
|
|
1110
|
-
] })
|
|
1111
|
-
] }),
|
|
1112
|
-
/* @__PURE__ */ jsx("div", { children: financier.amount?.currency && financier.amount?.value ? formatAmountWithCurrency(
|
|
1113
|
-
financier.amount.value,
|
|
1114
|
-
financier.amount?.currency
|
|
1115
|
-
) : "" })
|
|
1116
|
-
]
|
|
1117
|
-
},
|
|
1118
|
-
index
|
|
1119
|
-
)),
|
|
1120
|
-
/* @__PURE__ */ jsx(
|
|
1121
|
-
"button",
|
|
1122
|
-
{
|
|
1123
|
-
type: "button",
|
|
1124
|
-
className: styles.sourceOfFundsThirdPartyFundingFinancierGroup,
|
|
1125
|
-
onClick: handleToggleFinancierModal,
|
|
1126
|
-
children: /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAvatarGroup, children: [
|
|
1127
|
-
/* @__PURE__ */ jsx(Avatar, { iconName: "plus", variant: "tertiary", circle: true }),
|
|
1128
|
-
/* @__PURE__ */ jsx(Typography, { el: "div", variant: "body-strongest", children: sofT(($) => $["addInvestor"]) })
|
|
1129
|
-
] })
|
|
1130
|
-
}
|
|
1131
|
-
),
|
|
1132
|
-
showFinancierModal && /* @__PURE__ */ jsx(
|
|
1133
|
-
SOFFinancierModal,
|
|
1134
|
-
{
|
|
1135
|
-
financier: activeFinancier,
|
|
1136
|
-
indexNumber: activeIndex,
|
|
1137
|
-
handleModalClose: handleToggleFinancierModal,
|
|
1138
|
-
handleFinancierUpdate
|
|
1139
|
-
}
|
|
1140
|
-
)
|
|
1141
|
-
] });
|
|
1142
|
-
}
|
|
1143
|
-
function canParseUrl(url) {
|
|
1144
|
-
if (URL.canParse) {
|
|
1145
|
-
return URL.canParse(url);
|
|
1146
|
-
}
|
|
1147
|
-
try {
|
|
1148
|
-
new URL(url);
|
|
1149
|
-
return true;
|
|
1150
|
-
} catch {
|
|
1151
|
-
return false;
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
const sourceOfFundsTypeValidations = {
|
|
1155
|
-
type: {
|
|
1156
|
-
modes: ["blur"],
|
|
1157
|
-
validate: (type) => !isEmpty(type),
|
|
1158
|
-
errorMessage: "fieldIsRequired"
|
|
1159
|
-
}
|
|
1160
|
-
};
|
|
1161
|
-
const sourceOfFundsAdditionalDataValidations = {
|
|
1162
|
-
description: {
|
|
1163
|
-
modes: ["blur"],
|
|
1164
|
-
validate: (description) => !isEmpty(description),
|
|
1165
|
-
errorMessage: "fieldIsRequired"
|
|
1166
|
-
},
|
|
1167
|
-
website: [
|
|
1168
|
-
{
|
|
1169
|
-
modes: ["blur"],
|
|
1170
|
-
validate: (website) => !isEmpty(website),
|
|
1171
|
-
errorMessage: "fieldIsRequired"
|
|
1172
|
-
},
|
|
1173
|
-
{
|
|
1174
|
-
modes: ["blur"],
|
|
1175
|
-
validate: (website) => website ? canParseUrl(
|
|
1176
|
-
website?.startsWith("http:") || website?.startsWith("https:") ? website : `https://${website}`
|
|
1177
|
-
) : false,
|
|
1178
|
-
errorMessage: "validationPleaseEnterAValidUrl"
|
|
1179
|
-
}
|
|
1180
|
-
],
|
|
1181
|
-
amount: [
|
|
1182
|
-
{
|
|
1183
|
-
modes: ["blur"],
|
|
1184
|
-
validate: (amount) => !isEmpty(amount?.currency),
|
|
1185
|
-
errorMessage: "currencyIsRequired"
|
|
1186
|
-
},
|
|
1187
|
-
{
|
|
1188
|
-
modes: ["blur"],
|
|
1189
|
-
validate: (amount) => !isEmpty(amount?.value),
|
|
1190
|
-
errorMessage: "amountIsRequired"
|
|
1191
|
-
},
|
|
1192
|
-
{
|
|
1193
|
-
modes: ["blur"],
|
|
1194
|
-
validate: (amount) => !Number.isNaN(Number(amount?.value)),
|
|
1195
|
-
errorMessage: "pleaseEnterAValidAmount"
|
|
1196
|
-
}
|
|
1197
|
-
],
|
|
1198
|
-
dateOfSourceEvent: [
|
|
1199
|
-
{
|
|
1200
|
-
modes: ["blur"],
|
|
1201
|
-
validate: (dateOfSourceEvent) => !isEmpty(dateOfSourceEvent),
|
|
1202
|
-
errorMessage: "fieldIsRequired"
|
|
1203
|
-
},
|
|
1204
|
-
{
|
|
1205
|
-
modes: ["blur"],
|
|
1206
|
-
validate: (dateOfSourceEvent) => validateDateNotInTheFuture(dateOfSourceEvent),
|
|
1207
|
-
errorMessage: "dateCannotBeInTheFuture"
|
|
1208
|
-
}
|
|
1209
|
-
],
|
|
1210
|
-
cryptocurrencyExchange: {
|
|
1211
|
-
modes: ["blur"],
|
|
1212
|
-
validate: (cryptocurrencyExchange) => !isEmpty(cryptocurrencyExchange),
|
|
1213
|
-
errorMessage: "fieldIsRequired"
|
|
1214
|
-
},
|
|
1215
|
-
legalName: {
|
|
1216
|
-
modes: ["blur"],
|
|
1217
|
-
validate: (legalName) => !isEmpty(legalName),
|
|
1218
|
-
errorMessage: "fieldIsRequired"
|
|
1219
|
-
},
|
|
1220
|
-
firstName: {
|
|
1221
|
-
modes: ["blur"],
|
|
1222
|
-
validate: (firstName) => !isEmpty(firstName),
|
|
1223
|
-
errorMessage: "fieldIsRequired"
|
|
1224
|
-
},
|
|
1225
|
-
lastName: {
|
|
1226
|
-
modes: ["blur"],
|
|
1227
|
-
validate: (lastName) => !isEmpty(lastName),
|
|
1228
|
-
errorMessage: "fieldIsRequired"
|
|
1229
|
-
},
|
|
1230
|
-
originatorType: {
|
|
1231
|
-
modes: ["blur"],
|
|
1232
|
-
validate: (originatorType) => !isEmpty(originatorType),
|
|
1233
|
-
errorMessage: "fieldIsRequired"
|
|
1234
|
-
},
|
|
1235
|
-
relationship: {
|
|
1236
|
-
modes: ["blur"],
|
|
1237
|
-
validate: (relationship) => !isEmpty(relationship),
|
|
1238
|
-
errorMessage: "fieldIsRequired"
|
|
1239
|
-
},
|
|
1240
|
-
country: {
|
|
1241
|
-
modes: ["blur"],
|
|
1242
|
-
validate: (country) => !isEmpty(country),
|
|
1243
|
-
errorMessage: "fieldIsRequired"
|
|
1244
|
-
},
|
|
1245
|
-
dateOfFundsReceived: [
|
|
1246
|
-
{
|
|
1247
|
-
modes: ["blur"],
|
|
1248
|
-
validate: (dateOfFundsReceived) => !isEmpty(dateOfFundsReceived),
|
|
1249
|
-
errorMessage: "fieldIsRequired"
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
modes: ["blur"],
|
|
1253
|
-
validate: (dateOfFundsReceived) => validateDateNotInTheFuture(dateOfFundsReceived),
|
|
1254
|
-
errorMessage: "dateCannotBeInTheFuture"
|
|
1255
|
-
}
|
|
1256
|
-
],
|
|
1257
|
-
financiers: {
|
|
1258
|
-
modes: ["blur"],
|
|
1259
|
-
validate: (financiers) => !isEmpty(financiers),
|
|
1260
|
-
errorMessage: "fieldIsRequired"
|
|
1261
|
-
},
|
|
1262
|
-
purpose: {
|
|
1263
|
-
modes: ["blur"],
|
|
1264
|
-
validate: (purpose) => !isEmpty(purpose),
|
|
1265
|
-
errorMessage: "fieldIsRequired"
|
|
1266
|
-
}
|
|
1267
|
-
};
|
|
1268
|
-
function SourceOfFundsAdditionalData(props) {
|
|
1269
|
-
const { t } = useTranslation("common");
|
|
1270
|
-
const {
|
|
1271
|
-
data: defaultData,
|
|
1272
|
-
validators,
|
|
1273
|
-
formVerificationErrors,
|
|
1274
|
-
fieldValidationErrors,
|
|
1275
|
-
shouldValidate,
|
|
1276
|
-
sourceOfFundsType
|
|
1277
|
-
} = props;
|
|
1278
|
-
const getFormSchema = useMemo(
|
|
1279
|
-
() => getAdditionalDataSchemaKeys(sourceOfFundsType, defaultData?.originatorType),
|
|
1280
|
-
[sourceOfFundsType, defaultData?.originatorType]
|
|
1281
|
-
);
|
|
1282
|
-
const [schema, setSchema] = useState(getFormSchema);
|
|
1283
|
-
const {
|
|
1284
|
-
handleChangeFor,
|
|
1285
|
-
data: formData,
|
|
1286
|
-
schema: formSchema,
|
|
1287
|
-
valid: formValid,
|
|
1288
|
-
errors: formErrors,
|
|
1289
|
-
fieldProblems: formFieldProblems
|
|
1290
|
-
} = useForm({
|
|
1291
|
-
...props,
|
|
1292
|
-
schema,
|
|
1293
|
-
defaultData,
|
|
1294
|
-
rules: validators || sourceOfFundsAdditionalDataValidations,
|
|
1295
|
-
fieldProblems: fieldValidationErrors,
|
|
1296
|
-
shouldValidate
|
|
1297
|
-
});
|
|
1298
|
-
useEffect(() => {
|
|
1299
|
-
setSchema(getAdditionalDataSchemaKeys(sourceOfFundsType, formData?.originatorType));
|
|
1300
|
-
}, [formData.originatorType]);
|
|
1301
|
-
const handleAmountChange = (key) => (e) => {
|
|
1302
|
-
const isCurrencyKey = key === "currency";
|
|
1303
|
-
const amountValue = {
|
|
1304
|
-
currency: isCurrencyKey ? e.target.value : formData.amount?.currency,
|
|
1305
|
-
value: isCurrencyKey ? formData.amount?.value : e.target.value
|
|
1306
|
-
};
|
|
1307
|
-
const fieldEvent = {
|
|
1308
|
-
target: {
|
|
1309
|
-
name: "amount",
|
|
1310
|
-
value: amountValue
|
|
1311
|
-
}
|
|
1312
|
-
};
|
|
1313
|
-
handleChangeFor("amount")(fieldEvent);
|
|
1314
|
-
};
|
|
1315
|
-
const formUtils = createFormUtils(props, t);
|
|
1316
|
-
const { updateStateSlice } = useGlobalDataSlice("additionalData");
|
|
1317
|
-
useEffect(() => {
|
|
1318
|
-
updateStateSlice({
|
|
1319
|
-
data: formData,
|
|
1320
|
-
valid: formValid,
|
|
1321
|
-
errors: formErrors,
|
|
1322
|
-
fieldProblems: formFieldProblems,
|
|
1323
|
-
schema: formSchema
|
|
1324
|
-
});
|
|
1325
|
-
}, [formData, formValid, formErrors, formSchema, formFieldProblems]);
|
|
1326
|
-
const renderSubForms = () => {
|
|
1327
|
-
switch (sourceOfFundsType) {
|
|
1328
|
-
case "gamblingWinnings":
|
|
1329
|
-
return /* @__PURE__ */ jsx(
|
|
1330
|
-
AdditionalDataForGambling,
|
|
1331
|
-
{
|
|
1332
|
-
formUtils,
|
|
1333
|
-
handleChangeFor,
|
|
1334
|
-
data: formData,
|
|
1335
|
-
errors: formErrors,
|
|
1336
|
-
valid: formValid,
|
|
1337
|
-
fieldProblems: formFieldProblems,
|
|
1338
|
-
handleAmountChange
|
|
1339
|
-
}
|
|
1340
|
-
);
|
|
1341
|
-
case "cryptocurrencyIncome":
|
|
1342
|
-
return /* @__PURE__ */ jsx(
|
|
1343
|
-
AdditionalDataForCryptocurrency,
|
|
1344
|
-
{
|
|
1345
|
-
formUtils,
|
|
1346
|
-
handleChangeFor,
|
|
1347
|
-
data: formData,
|
|
1348
|
-
errors: formErrors,
|
|
1349
|
-
valid: formValid,
|
|
1350
|
-
fieldProblems: formFieldProblems,
|
|
1351
|
-
handleAmountChange
|
|
1352
|
-
}
|
|
1353
|
-
);
|
|
1354
|
-
case "business":
|
|
1355
|
-
return /* @__PURE__ */ jsx(
|
|
1356
|
-
AdditionalDataForBusiness,
|
|
1357
|
-
{
|
|
1358
|
-
formUtils,
|
|
1359
|
-
handleChangeFor,
|
|
1360
|
-
data: formData,
|
|
1361
|
-
errors: formErrors,
|
|
1362
|
-
valid: formValid,
|
|
1363
|
-
fieldProblems: formFieldProblems,
|
|
1364
|
-
handleAmountChange
|
|
1365
|
-
}
|
|
1366
|
-
);
|
|
1367
|
-
case "assetSale":
|
|
1368
|
-
return /* @__PURE__ */ jsx(
|
|
1369
|
-
AdditionalDataForAssetSale,
|
|
1370
|
-
{
|
|
1371
|
-
formUtils,
|
|
1372
|
-
handleChangeFor,
|
|
1373
|
-
data: formData,
|
|
1374
|
-
errors: formErrors,
|
|
1375
|
-
valid: formValid,
|
|
1376
|
-
fieldProblems: formFieldProblems,
|
|
1377
|
-
handleAmountChange
|
|
1378
|
-
}
|
|
1379
|
-
);
|
|
1380
|
-
case "thirdPartyFunding":
|
|
1381
|
-
return /* @__PURE__ */ jsx(
|
|
1382
|
-
AdditionalDataForThirdParty,
|
|
1383
|
-
{
|
|
1384
|
-
formUtils,
|
|
1385
|
-
handleChangeFor,
|
|
1386
|
-
data: formData,
|
|
1387
|
-
errors: formErrors,
|
|
1388
|
-
valid: formValid,
|
|
1389
|
-
fieldProblems: formFieldProblems,
|
|
1390
|
-
handleAmountChange
|
|
1391
|
-
}
|
|
1392
|
-
);
|
|
1393
|
-
case "inheritance":
|
|
1394
|
-
return /* @__PURE__ */ jsx(
|
|
1395
|
-
AdditionalDataForInheritance,
|
|
1396
|
-
{
|
|
1397
|
-
formUtils,
|
|
1398
|
-
handleChangeFor,
|
|
1399
|
-
data: formData,
|
|
1400
|
-
errors: formErrors,
|
|
1401
|
-
valid: formValid,
|
|
1402
|
-
fieldProblems: formFieldProblems,
|
|
1403
|
-
handleAmountChange
|
|
1404
|
-
}
|
|
1405
|
-
);
|
|
1406
|
-
case "donations":
|
|
1407
|
-
return /* @__PURE__ */ jsx(
|
|
1408
|
-
AdditionalDataForDonation,
|
|
1409
|
-
{
|
|
1410
|
-
formUtils,
|
|
1411
|
-
handleChangeFor,
|
|
1412
|
-
data: formData,
|
|
1413
|
-
errors: formErrors,
|
|
1414
|
-
valid: formValid,
|
|
1415
|
-
fieldProblems: formFieldProblems,
|
|
1416
|
-
handleAmountChange
|
|
1417
|
-
}
|
|
1418
|
-
);
|
|
1419
|
-
default:
|
|
1420
|
-
return null;
|
|
1421
|
-
}
|
|
1422
|
-
};
|
|
1423
|
-
return /* @__PURE__ */ jsxs("form", { className: styles.sourceOfFundsAdditionalDataForm, children: [
|
|
1424
|
-
/* @__PURE__ */ jsx(
|
|
1425
|
-
ErrorPanel,
|
|
1426
|
-
{
|
|
1427
|
-
verificationErrors: formVerificationErrors,
|
|
1428
|
-
validationErrors: props?.fieldValidationErrors,
|
|
1429
|
-
formUtils,
|
|
1430
|
-
id: "ariaErrorField"
|
|
1431
|
-
}
|
|
1432
|
-
),
|
|
1433
|
-
renderSubForms()
|
|
1434
|
-
] });
|
|
1435
|
-
}
|
|
1436
|
-
const sourceOfFundsTypeFields = ["type"];
|
|
1437
|
-
function SourceOfFundsType(props) {
|
|
1438
|
-
const { t } = useTranslation(["common", "sof"]);
|
|
1439
|
-
const { i18n } = useI18nContext();
|
|
1440
|
-
const {
|
|
1441
|
-
data: sourceOfFundsTypeDefaultData,
|
|
1442
|
-
validators,
|
|
1443
|
-
fieldValidationErrors,
|
|
1444
|
-
shouldValidate,
|
|
1445
|
-
categories
|
|
1446
|
-
} = props;
|
|
1447
|
-
const {
|
|
1448
|
-
handleChangeFor,
|
|
1449
|
-
data: formData,
|
|
1450
|
-
schema: formSchema,
|
|
1451
|
-
valid: formValid,
|
|
1452
|
-
errors: formErrors,
|
|
1453
|
-
fieldProblems: formFieldProblems
|
|
1454
|
-
} = useForm({
|
|
1455
|
-
...props,
|
|
1456
|
-
schema: sourceOfFundsTypeFields,
|
|
1457
|
-
defaultData: sourceOfFundsTypeDefaultData,
|
|
1458
|
-
rules: validators || sourceOfFundsTypeValidations,
|
|
1459
|
-
fieldProblems: fieldValidationErrors,
|
|
1460
|
-
shouldValidate
|
|
1461
|
-
});
|
|
1462
|
-
const formUtils = createFormUtils(props, t);
|
|
1463
|
-
const { updateStateSlice } = useGlobalDataSlice("sourceOfFundsType");
|
|
1464
|
-
useEffect(() => {
|
|
1465
|
-
updateStateSlice({
|
|
1466
|
-
data: formData,
|
|
1467
|
-
valid: formValid,
|
|
1468
|
-
errors: formErrors,
|
|
1469
|
-
fieldProblems: formFieldProblems,
|
|
1470
|
-
schema: formSchema
|
|
1471
|
-
});
|
|
1472
|
-
}, [formData, formValid, formErrors, formSchema, formFieldProblems]);
|
|
1473
|
-
const categoryItems = [
|
|
1474
|
-
{
|
|
1475
|
-
value: "adyen",
|
|
1476
|
-
label: t(($) => $["transactionsOnThisPlatform"], { ns: "sof" }),
|
|
1477
|
-
icon: getIconById("adyen")
|
|
1478
|
-
},
|
|
1479
|
-
...categories?.map((item) => ({
|
|
1480
|
-
value: item.id,
|
|
1481
|
-
label: t(($) => $[sofCategoryItemMapper[item.name]], { ns: "sof" }),
|
|
1482
|
-
icon: getIconById(item.id)
|
|
1483
|
-
})) ?? []
|
|
1484
|
-
];
|
|
1485
|
-
const errorMessage = formUtils.getErrorMessage("type", formErrors, formFieldProblems);
|
|
1486
|
-
return /* @__PURE__ */ jsx(Field, { el: "fieldset", name: "type", children: () => /* @__PURE__ */ jsx(
|
|
1487
|
-
TileGroup,
|
|
1488
|
-
{
|
|
1489
|
-
name: "type",
|
|
1490
|
-
tiles: categoryItems,
|
|
1491
|
-
errorMessage: typeof errorMessage !== "boolean" ? i18n.get(errorMessage) : errorMessage,
|
|
1492
|
-
selected: formData?.type ? formData.type : [],
|
|
1493
|
-
onChange: handleChangeFor("type", "input")
|
|
1494
|
-
}
|
|
1495
|
-
) });
|
|
1496
|
-
}
|
|
1497
|
-
function getIconById(id) {
|
|
1498
|
-
switch (id) {
|
|
1499
|
-
case "adyen":
|
|
1500
|
-
return "store";
|
|
1501
|
-
case "business":
|
|
1502
|
-
return "revenue-accelerate";
|
|
1503
|
-
case "assetSale":
|
|
1504
|
-
return "house";
|
|
1505
|
-
case "dividendIncome":
|
|
1506
|
-
return "graph-up";
|
|
1507
|
-
case "thirdPartyFunding":
|
|
1508
|
-
return "graph";
|
|
1509
|
-
case "employment":
|
|
1510
|
-
return "headquarter";
|
|
1511
|
-
case "donations":
|
|
1512
|
-
return "gift";
|
|
1513
|
-
case "inheritance":
|
|
1514
|
-
return "certificate";
|
|
1515
|
-
case "financialAid":
|
|
1516
|
-
return "capital";
|
|
1517
|
-
case "rentalIncome":
|
|
1518
|
-
return "house";
|
|
1519
|
-
case "royaltyIncome":
|
|
1520
|
-
return "cash-stack";
|
|
1521
|
-
case "pensionIncome":
|
|
1522
|
-
return "bank";
|
|
1523
|
-
case "insuranceSettlement":
|
|
1524
|
-
return "funds-in";
|
|
1525
|
-
case "cryptocurrencyIncome":
|
|
1526
|
-
return "coins";
|
|
1527
|
-
case "loans":
|
|
1528
|
-
return "capital";
|
|
1529
|
-
case "gamblingWinnings":
|
|
1530
|
-
return "cash-stack";
|
|
1531
|
-
default:
|
|
1532
|
-
return "contract";
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
function SourceOfFunds(props) {
|
|
1536
|
-
const { activeForm, activeBusinessLine, sourceOfFundsType } = props;
|
|
1537
|
-
const { data: sourceOfFundsTypesData, isLoading } = useSourceOfFundsTypes();
|
|
1538
|
-
const { t: sofT } = useTranslation("sof");
|
|
1539
|
-
const formWrapperClasses = (formId) => activeForm?.formId !== formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper";
|
|
1540
|
-
const pageHeadings = useMemo(
|
|
1541
|
-
() => getPageHeadings(sourceOfFundsType ?? "adyen"),
|
|
1542
|
-
[sourceOfFundsType]
|
|
1543
|
-
);
|
|
1544
|
-
return isLoading || !activeBusinessLine ? /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsWrapperLoading, children: /* @__PURE__ */ jsx(Loader, {}) }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-wrapper", children: [
|
|
1545
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsWrapperHeading, children: [
|
|
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
|
-
}) }),
|
|
1552
|
-
/* @__PURE__ */ jsxs(Typography, { className: styles.sourceOfFundsWrapperDescription, children: [
|
|
1553
|
-
activeForm?.formId === "additionalData" && pageHeadings.description && sofT(($) => $[pageHeadings.description]),
|
|
1554
|
-
sourceOfFundsTypesData?.length === 0 && sofT(($) => $["noCategoriesAvailable"])
|
|
1555
|
-
] })
|
|
1556
|
-
] }),
|
|
1557
|
-
sofErrorMessage.value && /* @__PURE__ */ jsxs(
|
|
1558
|
-
Typography,
|
|
1559
|
-
{
|
|
1560
|
-
variant: "caption",
|
|
1561
|
-
color: "critical",
|
|
1562
|
-
"aria-live": "polite",
|
|
1563
|
-
className: "adyen-kyc-u-justify-content-center adyen-kyc-u-display-flex",
|
|
1564
|
-
children: [
|
|
1565
|
-
/* @__PURE__ */ jsx(Icon, { name: "field-error", className: "adyen-kyc-u-margin-right-2" }),
|
|
1566
|
-
/* @__PURE__ */ jsx("span", { children: sofErrorMessage.value })
|
|
1567
|
-
]
|
|
1568
|
-
}
|
|
1569
|
-
),
|
|
1570
|
-
activeForm?.formId === "sourceOfFundsType" && /* @__PURE__ */ jsx("div", { className: formWrapperClasses("sourceOfFundsType"), children: /* @__PURE__ */ jsx(
|
|
1571
|
-
SourceOfFundsType,
|
|
1572
|
-
{
|
|
1573
|
-
categories: sourceOfFundsTypesData,
|
|
1574
|
-
...getFormProps(props, sourceOfFundsForms.sourceOfFundsType.formId)
|
|
1575
|
-
}
|
|
1576
|
-
) }),
|
|
1577
|
-
activeForm?.formId === "additionalData" && /* @__PURE__ */ jsx("div", { className: formWrapperClasses("additionalData"), children: /* @__PURE__ */ jsx(
|
|
1578
|
-
SourceOfFundsAdditionalData,
|
|
1579
|
-
{
|
|
1580
|
-
...getFormProps(props, sourceOfFundsForms.additionalData.formId),
|
|
1581
|
-
sourceOfFundsType
|
|
1582
|
-
}
|
|
1583
|
-
) }),
|
|
1584
|
-
activeForm?.formId === "companySourceOfFunds" && /* @__PURE__ */ jsx("div", { className: formWrapperClasses("companySourceOfFunds"), children: /* @__PURE__ */ jsx("div", { children: sofT(($) => $["uploadADocument"]) }) })
|
|
1585
|
-
] });
|
|
1586
|
-
}
|
|
1587
|
-
function SourceOfFundsGettingStartedCard(props) {
|
|
1588
|
-
const { id, title, onClick, isEdit, meta } = props;
|
|
1589
|
-
const { t: commonT } = useTranslation("common");
|
|
1590
|
-
return /* @__PURE__ */ jsx(
|
|
1591
|
-
Card,
|
|
1592
|
-
{
|
|
1593
|
-
className: styles.sourceOfFundsGettingStartedCardsCard,
|
|
1594
|
-
headerClassName: styles.sourceOfFundsGettingStartedCardsCardHeader,
|
|
1595
|
-
bodyClassName: styles.sourceOfFundsGettingStartedCardsCardBody,
|
|
1596
|
-
title,
|
|
1597
|
-
headerButton: isEdit ? /* @__PURE__ */ jsx(IconButton, { ariaLabel: "edit", icon: "edit", onClick, variant: "tertiary" }) : /* @__PURE__ */ jsx(
|
|
1598
|
-
Button,
|
|
1599
|
-
{
|
|
1600
|
-
variant: "primary",
|
|
1601
|
-
testId: "source-of-funds-getting-card-secondary-button",
|
|
1602
|
-
onClick,
|
|
1603
|
-
children: commonT(($) => $["start"])
|
|
1604
|
-
}
|
|
1605
|
-
),
|
|
1606
|
-
children: isEdit && meta?.length && /* @__PURE__ */ jsx(
|
|
1607
|
-
StructuredList,
|
|
1608
|
-
{
|
|
1609
|
-
className: styles.sourceOfFundsGettingStartedCardsCardDescription,
|
|
1610
|
-
items: meta
|
|
1611
|
-
}
|
|
1612
|
-
)
|
|
1613
|
-
},
|
|
1614
|
-
id
|
|
1615
|
-
);
|
|
1616
|
-
}
|
|
1617
|
-
const digitalWallet = lazy(() => import("./digital-wallet-D_IpxnkN.js"));
|
|
1618
|
-
const SourceOfFundsGettingStarted = ({
|
|
1619
|
-
handleGettingStartedClick,
|
|
1620
|
-
handleCancelClick,
|
|
1621
|
-
handleSourceOfFundsClick,
|
|
1622
|
-
businessLines,
|
|
1623
|
-
handleNavigateToUploadPage,
|
|
1624
|
-
problems,
|
|
1625
|
-
legalEntity,
|
|
1626
|
-
isSoFDocumentMissing
|
|
1627
|
-
}) => {
|
|
1628
|
-
const { t: sofT } = useTranslation("sof");
|
|
1629
|
-
const { t: commonT } = useTranslation("common");
|
|
1630
|
-
const { i18n } = useI18nContext();
|
|
1631
|
-
const hasSourceOfFunds = businessLines?.some(
|
|
1632
|
-
(businessLine) => !isEmpty$1(businessLine.sourceOfFunds)
|
|
1633
|
-
);
|
|
1634
|
-
const sofDocuments = useMemo(
|
|
1635
|
-
() => legalEntity?.documentDetails?.filter((doc) => doc.type === "proofOfFundingOrWealthSource") ?? [],
|
|
1636
|
-
[legalEntity]
|
|
1637
|
-
);
|
|
1638
|
-
const mapBusinessLines = useCallback(
|
|
1639
|
-
(lines) => {
|
|
1640
|
-
const completedBusinessLines = businessLines.every((line) => line?.sourceOfFunds?.type);
|
|
1641
|
-
const cards = lines.map((line) => {
|
|
1642
|
-
const SoF = mapSourceOfFundToSourceOfFundsSchema(line);
|
|
1643
|
-
return {
|
|
1644
|
-
title: getServiceTranslation(sofT, line.service || ""),
|
|
1645
|
-
type: line?.sourceOfFunds?.type,
|
|
1646
|
-
isEdit: !!line?.sourceOfFunds?.type || !!line?.sourceOfFunds?.adyenProcessedFunds,
|
|
1647
|
-
onClick: () => handleSourceOfFundsClick(SoF, line),
|
|
1648
|
-
meta: [
|
|
1649
|
-
{
|
|
1650
|
-
term: sofT(($) => $["sourceOfFunds"]),
|
|
1651
|
-
details: getSofCardDetails(sofT, line?.sourceOfFunds)
|
|
1652
|
-
},
|
|
1653
|
-
...getGettingStartedCardDetails(
|
|
1654
|
-
getAdditionalDataSchemaKeys(
|
|
1655
|
-
line?.sourceOfFunds?.type || "adyen",
|
|
1656
|
-
line?.sourceOfFunds?.originatorType
|
|
1657
|
-
),
|
|
1658
|
-
sofT,
|
|
1659
|
-
line?.sourceOfFunds
|
|
1660
|
-
)
|
|
1661
|
-
]
|
|
1662
|
-
};
|
|
1663
|
-
}).sort((a) => a?.type ? 1 : -1);
|
|
1664
|
-
const uploadCard = {
|
|
1665
|
-
title: getServiceTranslation(sofT),
|
|
1666
|
-
type: "",
|
|
1667
|
-
isEdit: !!sofDocuments?.length,
|
|
1668
|
-
onClick: handleNavigateToUploadPage,
|
|
1669
|
-
meta: sofDocuments?.length ? sofDocuments.map((doc) => ({
|
|
1670
|
-
term: sofT(($) => $["fileName"]),
|
|
1671
|
-
details: [
|
|
1672
|
-
doc?.fileName,
|
|
1673
|
-
/* @__PURE__ */ jsx(Typography, { color: "secondary", children: parseSOFDocumentDescription(sofT, doc?.description) || "" }, "docDescription")
|
|
1674
|
-
]
|
|
1675
|
-
})) : []
|
|
1676
|
-
};
|
|
1677
|
-
if (completedBusinessLines && (isSoFDocumentMissing || sofDocuments?.length)) {
|
|
1678
|
-
if (uploadCard.meta?.length) {
|
|
1679
|
-
cards.push(uploadCard);
|
|
1680
|
-
} else {
|
|
1681
|
-
cards.unshift(uploadCard);
|
|
1682
|
-
}
|
|
1683
|
-
}
|
|
1684
|
-
return cards.map((item, index) => {
|
|
1685
|
-
return /* @__PURE__ */ jsx(
|
|
1686
|
-
SourceOfFundsGettingStartedCard,
|
|
1687
|
-
{
|
|
1688
|
-
id: index,
|
|
1689
|
-
isEdit: !!item.isEdit,
|
|
1690
|
-
title: item.title,
|
|
1691
|
-
onClick: item.onClick,
|
|
1692
|
-
meta: item.meta
|
|
1693
|
-
},
|
|
1694
|
-
index
|
|
1695
|
-
);
|
|
1696
|
-
});
|
|
1697
|
-
},
|
|
1698
|
-
[handleSourceOfFundsClick, i18n, sofDocuments]
|
|
1699
|
-
);
|
|
1700
|
-
const errorObjects = useMemo(
|
|
1701
|
-
() => getRelevantErrors(problems, SOF_INVALID_INPUT_ERROR_CODES),
|
|
1702
|
-
[problems]
|
|
1703
|
-
);
|
|
1704
|
-
return /* @__PURE__ */ jsxs(
|
|
1705
|
-
"div",
|
|
1706
|
-
{
|
|
1707
|
-
className: styles.sourceOfFundsGettingStarted,
|
|
1708
|
-
"data-testid": "source-of-funds-getting-started",
|
|
1709
|
-
children: [
|
|
1710
|
-
!hasSourceOfFunds && /* @__PURE__ */ jsx(
|
|
1711
|
-
LandingLayout,
|
|
1712
|
-
{
|
|
1713
|
-
media: /* @__PURE__ */ jsx(Image, { lazyLoadedImage: digitalWallet }),
|
|
1714
|
-
title: sofT(($) => $["fundingSourcesForFinancialProducts"]),
|
|
1715
|
-
description: sofT(($) => $["inTheNextStepWellCollectInformation"]),
|
|
1716
|
-
actions: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1717
|
-
/* @__PURE__ */ jsx(
|
|
1718
|
-
Button,
|
|
1719
|
-
{
|
|
1720
|
-
fullWidth: true,
|
|
1721
|
-
testId: "source-of-funds-getting-primary-button",
|
|
1722
|
-
onClick: handleGettingStartedClick,
|
|
1723
|
-
children: sofT(($) => $["getStarted"])
|
|
1724
|
-
}
|
|
1725
|
-
),
|
|
1726
|
-
handleCancelClick && /* @__PURE__ */ jsx(
|
|
1727
|
-
Button,
|
|
1728
|
-
{
|
|
1729
|
-
variant: "tertiary",
|
|
1730
|
-
fullWidth: true,
|
|
1731
|
-
testId: "source-of-funds-getting-cancel-button",
|
|
1732
|
-
onClick: handleCancelClick,
|
|
1733
|
-
children: commonT(($) => $["backToTaskList"])
|
|
1734
|
-
}
|
|
1735
|
-
)
|
|
1736
|
-
] })
|
|
1737
|
-
}
|
|
1738
|
-
),
|
|
1739
|
-
hasSourceOfFunds && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1740
|
-
/* @__PURE__ */ jsx(
|
|
1741
|
-
Header,
|
|
1742
|
-
{
|
|
1743
|
-
title: sofT(($) => $["fundingSourcesForFinancialProducts"]),
|
|
1744
|
-
description: sofT(($) => $["addAllSourcesOfFundsBeingUsed"]),
|
|
1745
|
-
status: normalizedTaskStatusStore?.value?.SOURCE_OF_FUNDS?.status,
|
|
1746
|
-
align: "center"
|
|
1747
|
-
}
|
|
1748
|
-
),
|
|
1749
|
-
errorObjects && errorObjects.map((errorObj, index) => {
|
|
1750
|
-
const uniqueActions = getUniqueRemediationActions(errorObj);
|
|
1751
|
-
const errorItems = errorObj.subErrors?.map((subError) => subError.message) || [];
|
|
1752
|
-
return /* @__PURE__ */ jsxs(
|
|
1753
|
-
Alert,
|
|
1754
|
-
{
|
|
1755
|
-
title: errorObj.message,
|
|
1756
|
-
className: styles.sourceOfFundsGettingStartedError,
|
|
1757
|
-
variant: "error",
|
|
1758
|
-
children: [
|
|
1759
|
-
errorObj?.subErrors?.length && /* @__PURE__ */ jsx("ul", { children: errorItems.map((item, i) => /* @__PURE__ */ jsx("li", { children: item }, i)) }),
|
|
1760
|
-
uniqueActions.length > 0 && /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedErrorActions, children: uniqueActions.filter((action) => action.code !== "1_519").map((action, i) => /* @__PURE__ */ jsx(
|
|
1761
|
-
Button,
|
|
1762
|
-
{
|
|
1763
|
-
variant: "tertiary",
|
|
1764
|
-
testId: `remediate-action-${i}`,
|
|
1765
|
-
onClick: handleNavigateToUploadPage,
|
|
1766
|
-
children: action.message
|
|
1767
|
-
},
|
|
1768
|
-
`action-${i}`
|
|
1769
|
-
)) })
|
|
1770
|
-
]
|
|
1771
|
-
},
|
|
1772
|
-
`error-${index}`
|
|
1773
|
-
);
|
|
1774
|
-
}),
|
|
1775
|
-
/* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedCards, children: mapBusinessLines(businessLines) }),
|
|
1776
|
-
handleCancelClick && /* @__PURE__ */ jsx(
|
|
1777
|
-
Button,
|
|
1778
|
-
{
|
|
1779
|
-
variant: "secondary",
|
|
1780
|
-
testId: "source-of-funds-getting-return-button",
|
|
1781
|
-
onClick: handleCancelClick,
|
|
1782
|
-
children: commonT(($) => $["backToTaskList"])
|
|
1783
|
-
}
|
|
1784
|
-
)
|
|
1785
|
-
] })
|
|
1786
|
-
]
|
|
1787
|
-
}
|
|
1788
|
-
);
|
|
1789
|
-
};
|
|
1790
|
-
const SOFUploadModal = (props) => {
|
|
1791
|
-
const { showToast } = useToastContext();
|
|
1792
|
-
const logger2 = createLogger();
|
|
1793
|
-
const { t: sofT } = useTranslation("sof");
|
|
1794
|
-
const { t: commonT } = useTranslation("common");
|
|
1795
|
-
const { businessLines, handleModalClose, documentUtils } = props;
|
|
1796
|
-
const firstService = businessLines?.length === 1 ? businessLines?.[0]?.service : void 0;
|
|
1797
|
-
const [selectedService, setSelectedService] = useState(
|
|
1798
|
-
firstService
|
|
1799
|
-
);
|
|
1800
|
-
const [documentType, setDocumentType] = useState();
|
|
1801
|
-
const onRadioChange = (selectedId) => {
|
|
1802
|
-
setSelectedService(selectedId);
|
|
1803
|
-
setDocumentType(void 0);
|
|
1804
|
-
};
|
|
1805
|
-
const onDocumentTypeChange = (e) => {
|
|
1806
|
-
setDocumentType(e.target.value);
|
|
1807
|
-
};
|
|
1808
|
-
const serviceRadioItems = useMemo(() => {
|
|
1809
|
-
return businessLines.map((businessLine) => ({
|
|
1810
|
-
id: businessLine.service,
|
|
1811
|
-
name: sofT(($) => $[getServiceTranslationKey(businessLine?.service || "")])
|
|
1812
|
-
}));
|
|
1813
|
-
}, [businessLines, sofT]);
|
|
1814
|
-
const canUpload = useMemo(() => selectedService && documentType, [selectedService, documentType]);
|
|
1815
|
-
const selectedBusinessLineId = businessLines?.find((businessLine) => businessLine.service === selectedService)?.id || "";
|
|
1816
|
-
const documentLists = useMemo(() => {
|
|
1817
|
-
const selectedType = businessLines?.find(
|
|
1818
|
-
(businessLine) => businessLine.service === selectedService
|
|
1819
|
-
)?.sourceOfFunds?.type;
|
|
1820
|
-
if (selectedType) {
|
|
1821
|
-
const lists = getDocumentLists(selectedType);
|
|
1822
|
-
const items = lists.map((list) => ({
|
|
1823
|
-
id: list,
|
|
1824
|
-
name: sofT(($) => $[list])
|
|
1825
|
-
}));
|
|
1826
|
-
return items;
|
|
1827
|
-
}
|
|
1828
|
-
return [];
|
|
1829
|
-
}, [businessLines, sofT, selectedService]);
|
|
1830
|
-
const documentRequirements = useMemo(() => {
|
|
1831
|
-
return documentType ? getDocumentRequirements[documentType] : [];
|
|
1832
|
-
}, [documentType]);
|
|
1833
|
-
const onFileUpload = async (files) => {
|
|
1834
|
-
if (!canUpload) {
|
|
1835
|
-
showToast({ label: sofT(($) => $["unableToUploadDocument"]), variant: "error" });
|
|
1836
|
-
return;
|
|
1837
|
-
}
|
|
1838
|
-
const formattedDocument = await createDocumentRequest({
|
|
1839
|
-
entityId: selectedBusinessLineId,
|
|
1840
|
-
entityType: "businessLine",
|
|
1841
|
-
documentType: "proofOfFundingOrWealthSource",
|
|
1842
|
-
page1: files[0],
|
|
1843
|
-
description: `$SERVICE_NAME:${selectedService}--TYPE_NAME:${documentType}`
|
|
1844
|
-
});
|
|
1845
|
-
if (formattedDocument) {
|
|
1846
|
-
try {
|
|
1847
|
-
await documentUtils.uploadDocuments([formattedDocument], selectedBusinessLineId);
|
|
1848
|
-
showToast({
|
|
1849
|
-
label: sofT(($) => $["documentUploadedSuccessfully"]),
|
|
1850
|
-
variant: "success",
|
|
1851
|
-
duration: 1e4
|
|
1852
|
-
});
|
|
1853
|
-
handleModalClose();
|
|
1854
|
-
} catch (e) {
|
|
1855
|
-
logger2.log(e);
|
|
1856
|
-
showToast({ label: sofT(($) => $["unableToUploadDocument"]), variant: "error" });
|
|
1857
|
-
}
|
|
1858
|
-
}
|
|
1859
|
-
};
|
|
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,
|
|
1871
|
-
{
|
|
1872
|
-
el: "fieldset",
|
|
1873
|
-
name: "service",
|
|
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
|
-
)
|
|
1889
|
-
}
|
|
1890
|
-
) : null,
|
|
1891
|
-
selectedService && /* @__PURE__ */ jsx(
|
|
1892
|
-
Field,
|
|
1893
|
-
{
|
|
1894
|
-
name: "documentType",
|
|
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"]
|
|
1926
|
-
}
|
|
1927
|
-
)
|
|
1928
|
-
] })
|
|
1929
|
-
] })
|
|
1930
|
-
}
|
|
1931
|
-
) });
|
|
1932
|
-
};
|
|
1933
|
-
const SourceOfFundsUpload = ({
|
|
1934
|
-
businessLines,
|
|
1935
|
-
documentUtils,
|
|
1936
|
-
legalEntity,
|
|
1937
|
-
handleNavigateToSummary
|
|
1938
|
-
}) => {
|
|
1939
|
-
const [showUploadModal, setShowUploadModal] = useState(false);
|
|
1940
|
-
const [docToDelete, setDocToDelete] = useState(void 0);
|
|
1941
|
-
const { showToast } = useToastContext();
|
|
1942
|
-
const logger2 = createLogger();
|
|
1943
|
-
const queryClient = useQueryClient();
|
|
1944
|
-
const { t: sofT } = useTranslation("sof");
|
|
1945
|
-
const { t: commonT } = useTranslation("common");
|
|
1946
|
-
const handleModalClose = async () => {
|
|
1947
|
-
setShowUploadModal(false);
|
|
1948
|
-
await queryClient.invalidateQueries({
|
|
1949
|
-
queryKey: ["legalEntity", legalEntity.id]
|
|
1950
|
-
});
|
|
1951
|
-
};
|
|
1952
|
-
const openUploadModal = () => {
|
|
1953
|
-
setShowUploadModal(true);
|
|
1954
|
-
};
|
|
1955
|
-
const documents = useMemo(
|
|
1956
|
-
() => legalEntity.documentDetails?.filter((doc) => doc.type === "proofOfFundingOrWealthSource") ?? [],
|
|
1957
|
-
[legalEntity]
|
|
1958
|
-
);
|
|
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
|
-
}
|
|
1983
|
-
const handleFileDelete = async (documentId) => {
|
|
1984
|
-
if (documentUtils.deleteDocument) {
|
|
1985
|
-
try {
|
|
1986
|
-
await documentUtils.deleteDocument(documentId, legalEntity.id);
|
|
1987
|
-
await queryClient.invalidateQueries({
|
|
1988
|
-
queryKey: ["legalEntity", legalEntity.id]
|
|
1989
|
-
});
|
|
1990
|
-
showToast({
|
|
1991
|
-
label: sofT(($) => $["documentDeletedSuccessfully"]),
|
|
1992
|
-
variant: "success",
|
|
1993
|
-
duration: 1e4
|
|
1994
|
-
});
|
|
1995
|
-
} catch (e) {
|
|
1996
|
-
logger2.log(e);
|
|
1997
|
-
showToast({ label: sofT(($) => $["unableToDeleteDocument"]), variant: "error" });
|
|
1998
|
-
}
|
|
1999
|
-
}
|
|
2000
|
-
};
|
|
2001
|
-
return /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsUploadList, children: [
|
|
2002
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsUploadListHeading, children: [
|
|
2003
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: sofT(($) => $["supportingDocuments"]) }),
|
|
2004
|
-
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsWrapperDescription, children: sofT(($) => $[translationKey], translationParams) })
|
|
2005
|
-
] }),
|
|
2006
|
-
documents?.map((document) => /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingFinancierGroup, children: [
|
|
2007
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAvatarGroup, children: [
|
|
2008
|
-
/* @__PURE__ */ jsx(Avatar, { iconName: "document", circle: true }),
|
|
2009
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAddressGroup, children: [
|
|
2010
|
-
/* @__PURE__ */ jsx(Typography, { el: "div", variant: "body-strongest", children: document.fileName }),
|
|
2011
|
-
/* @__PURE__ */ jsx(Typography, { el: "div", variant: "caption", children: parseSOFDocumentDescription(sofT, document.description) })
|
|
2012
|
-
] })
|
|
2013
|
-
] }),
|
|
2014
|
-
/* @__PURE__ */ jsx(
|
|
2015
|
-
IconButton,
|
|
2016
|
-
{
|
|
2017
|
-
ariaLabel: commonT(($) => $["deleteDocument"]),
|
|
2018
|
-
variant: "tertiary",
|
|
2019
|
-
icon: "cross",
|
|
2020
|
-
onClick: () => setDocToDelete(document),
|
|
2021
|
-
testId: "source-of-funds-remove-button"
|
|
2022
|
-
}
|
|
2023
|
-
)
|
|
2024
|
-
] }, document.id)),
|
|
2025
|
-
/* @__PURE__ */ jsx(
|
|
2026
|
-
"button",
|
|
2027
|
-
{
|
|
2028
|
-
type: "button",
|
|
2029
|
-
className: styles.sourceOfFundsThirdPartyFundingFinancierGroup,
|
|
2030
|
-
onClick: openUploadModal,
|
|
2031
|
-
"data-testId": "source-of-funds-upload-button",
|
|
2032
|
-
children: /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAvatarGroup, children: [
|
|
2033
|
-
/* @__PURE__ */ jsx(Avatar, { label: sofT(($) => $["addDocument"]), iconName: "plus", circle: true }),
|
|
2034
|
-
/* @__PURE__ */ jsx(Typography, { el: "div", variant: "body-strongest", children: sofT(($) => $["addDocument"]) })
|
|
2035
|
-
] })
|
|
2036
|
-
}
|
|
2037
|
-
),
|
|
2038
|
-
handleNavigateToSummary && /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedActions, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleNavigateToSummary, children: documents?.length > 0 ? commonT(($) => $["finish"]) : commonT(($) => $["cancel"]) }) }),
|
|
2039
|
-
!!docToDelete && /* @__PURE__ */ jsx(
|
|
2040
|
-
Confirm,
|
|
2041
|
-
{
|
|
2042
|
-
title: sofT(($) => $["areYouSureYouWantToDeleteThisDocument"], {
|
|
2043
|
-
documentName: docToDelete?.fileName || ""
|
|
2044
|
-
}),
|
|
2045
|
-
confirmText: commonT(($) => $["delete"]),
|
|
2046
|
-
onConfirm: () => handleFileDelete(docToDelete?.id),
|
|
2047
|
-
onCancel: () => setDocToDelete(void 0),
|
|
2048
|
-
critical: true
|
|
2049
|
-
}
|
|
2050
|
-
),
|
|
2051
|
-
showUploadModal && /* @__PURE__ */ jsx(
|
|
2052
|
-
SOFUploadModal,
|
|
2053
|
-
{
|
|
2054
|
-
documentUtils,
|
|
2055
|
-
handleModalClose,
|
|
2056
|
-
businessLines
|
|
2057
|
-
}
|
|
2058
|
-
)
|
|
2059
|
-
] });
|
|
2060
|
-
};
|
|
2061
|
-
const logger = createLogger();
|
|
2062
|
-
function SourceOfFundsDropin({
|
|
2063
|
-
country,
|
|
2064
|
-
problems,
|
|
2065
|
-
handleHomeClick
|
|
2066
|
-
}) {
|
|
2067
|
-
const { data: legalEntity, isLoading: isLoadingRootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
2068
|
-
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
2069
|
-
const [activeBusinessLine, setActiveBusinessLine] = useState();
|
|
2070
|
-
const [activeSourceOfFund, setActiveSourceOfFund] = useState({});
|
|
2071
|
-
const [allBusinessLines, setAllBusinessLines] = useState([]);
|
|
2072
|
-
const [gettingStarted, setGettingStarted] = useState(true);
|
|
2073
|
-
const [showUploadPage, setShowUploadPage] = useState(false);
|
|
2074
|
-
const [loading, setLoading] = useState(false);
|
|
2075
|
-
const formRef = useRef(null);
|
|
2076
|
-
const {
|
|
2077
|
-
state: { currentState }
|
|
2078
|
-
} = useStateContext();
|
|
2079
|
-
const formValidity = currentState.validityByForm;
|
|
2080
|
-
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
2081
|
-
const { t: sofT } = useTranslation("sof");
|
|
2082
|
-
const userEvents = useAnalyticsContext();
|
|
2083
|
-
const { showToast } = useToastContext();
|
|
2084
|
-
const { data: sofBusinessLines, isLoading: isLoadingBusinessLines } = useBusinessLines(ALLOWED_SOF_SERVICES);
|
|
2085
|
-
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
2086
|
-
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
2087
|
-
const { mutateAsync: updateSoFMutation } = useUpdateSourceOfFunds();
|
|
2088
|
-
const isSoFDocumentMissing = useMemo(
|
|
2089
|
-
() => legalEntity?.problems?.some(
|
|
2090
|
-
(problem) => problem?.verificationErrors?.some(
|
|
2091
|
-
(verificationError) => verificationError?.code === MISSING_DATA_SOF_UPLOAD_CODE
|
|
2092
|
-
)
|
|
2093
|
-
) ?? false,
|
|
2094
|
-
[legalEntity?.problems]
|
|
2095
|
-
);
|
|
2096
|
-
const idsToFetch = sofBusinessLines?.map((businessLine) => businessLine.sourceOfFunds?.originatorLegalEntityId).filter((id) => Boolean(id)) ?? [];
|
|
2097
|
-
const legalEntityResults = useLegalEntities(idsToFetch, {
|
|
2098
|
-
staleTime: 5 * 60 * 1e3
|
|
2099
|
-
// 5 minutes
|
|
2100
|
-
});
|
|
2101
|
-
const areLegalEntitiesLoading = legalEntityResults.some((result) => result.isLoading);
|
|
2102
|
-
const normalizedBusinessLines = useMemo(() => {
|
|
2103
|
-
if (!sofBusinessLines) {
|
|
2104
|
-
return null;
|
|
2105
|
-
}
|
|
2106
|
-
return sofBusinessLines.map((businessLine, index) => {
|
|
2107
|
-
const result = legalEntityResults[index];
|
|
2108
|
-
let updatedBusinessLine = { ...businessLine };
|
|
2109
|
-
if (result && result.data) {
|
|
2110
|
-
updatedBusinessLine = parseOriginatorDetails(result.data, updatedBusinessLine);
|
|
2111
|
-
} else if (result && result.isError) {
|
|
2112
|
-
logger.error(`Error fetching legal entity for BL ${businessLine.id}:`, result.error);
|
|
2113
|
-
showToast({ label: sofT(($) => $["unableToLoadRelatedEntity"]), variant: "error" });
|
|
2114
|
-
}
|
|
2115
|
-
if (updatedBusinessLine.sourceOfFunds?.adyenProcessedFunds) {
|
|
2116
|
-
updatedBusinessLine.sourceOfFunds.type = "adyen";
|
|
2117
|
-
}
|
|
2118
|
-
return updatedBusinessLine;
|
|
2119
|
-
});
|
|
2120
|
-
}, [
|
|
2121
|
-
sofBusinessLines,
|
|
2122
|
-
// This is because the result of useQueries is not referentially stable, even though the individual query results are, so eslint complains
|
|
2123
|
-
// Also, this is generally safe, since this is typically what React Query returns
|
|
2124
|
-
JSON.stringify(
|
|
2125
|
-
legalEntityResults.map((r) => ({
|
|
2126
|
-
data: r.data,
|
|
2127
|
-
isError: r.isError,
|
|
2128
|
-
error: r.error,
|
|
2129
|
-
isLoading: r.isLoading
|
|
2130
|
-
}))
|
|
2131
|
-
)
|
|
2132
|
-
]);
|
|
2133
|
-
useEffect(() => {
|
|
2134
|
-
if (sofBusinessLines && !areLegalEntitiesLoading && normalizedBusinessLines) {
|
|
2135
|
-
clearSofErrorMessage();
|
|
2136
|
-
setLoading(true);
|
|
2137
|
-
try {
|
|
2138
|
-
if (normalizedBusinessLines.length) {
|
|
2139
|
-
const firstBusinessLine = normalizedBusinessLines[0];
|
|
2140
|
-
const sourceOfFundsMap = normalizedBusinessLines.map(
|
|
2141
|
-
(businessLine) => mapSourceOfFundToSourceOfFundsSchema(businessLine)
|
|
2142
|
-
);
|
|
2143
|
-
if (firstBusinessLine) {
|
|
2144
|
-
setActiveBusinessLine(firstBusinessLine);
|
|
2145
|
-
setActiveSourceOfFund(sourceOfFundsMap[0]);
|
|
2146
|
-
setAllBusinessLines(normalizedBusinessLines);
|
|
2147
|
-
}
|
|
2148
|
-
}
|
|
2149
|
-
} catch (error) {
|
|
2150
|
-
showToast({ label: sofT(($) => $["unableToLoadRelatedEntity"]), variant: "error" });
|
|
2151
|
-
logger.error(error);
|
|
2152
|
-
} finally {
|
|
2153
|
-
setLoading(false);
|
|
2154
|
-
}
|
|
2155
|
-
}
|
|
2156
|
-
}, [sofBusinessLines, areLegalEntitiesLoading, normalizedBusinessLines, sofT, logger]);
|
|
2157
|
-
useEffect(() => {
|
|
2158
|
-
userEvents.addTaskEvent("Landed on page", {
|
|
2159
|
-
actionType: "start"
|
|
2160
|
-
});
|
|
2161
|
-
}, [userEvents]);
|
|
2162
|
-
const canSubmitForm = useMemo(
|
|
2163
|
-
() => activeSourceOfFund ? !isEmpty(currentState.data?.sourceOfFundsType?.type) && hasDataChanged(activeSourceOfFund, currentState.data) : false,
|
|
2164
|
-
[activeSourceOfFund, currentState.data]
|
|
2165
|
-
);
|
|
2166
|
-
const derivedProps = useMemo(
|
|
2167
|
-
() => getPropsFromConfigurations({
|
|
2168
|
-
scenarioConfiguration: {},
|
|
2169
|
-
forms: sourceOfFundsForms,
|
|
2170
|
-
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
2171
|
-
dataMissingErrors: problems?.missingData ?? [],
|
|
2172
|
-
// TODO fix this to take existing fields into account
|
|
2173
|
-
// getFieldsWithExistingData(legalEntityResponse, sourceOfFundsApiKeyMapping),
|
|
2174
|
-
fieldsWithExistingData: [],
|
|
2175
|
-
customRules: {},
|
|
2176
|
-
legalEntityType: legalEntity?.type
|
|
2177
|
-
}),
|
|
2178
|
-
[problems?.remediationActions, problems?.missingData, legalEntity]
|
|
2179
|
-
);
|
|
2180
|
-
const sourceOfFundsRequiredForms = useMemo(
|
|
2181
|
-
() => getSourceOfFundsRequiredForms(currentState?.data?.sourceOfFundsType),
|
|
2182
|
-
[currentState?.data?.sourceOfFundsType]
|
|
2183
|
-
);
|
|
2184
|
-
const forms = useMemo(() => {
|
|
2185
|
-
const requiredForms = getRequiredForms(
|
|
2186
|
-
sourceOfFundsRequiredForms,
|
|
2187
|
-
sourceOfFundsRequiredFields,
|
|
2188
|
-
void 0,
|
|
2189
|
-
true
|
|
2190
|
-
);
|
|
2191
|
-
return addValidityToForms(requiredForms, formValidity, problems);
|
|
2192
|
-
}, [derivedProps, formValidity, problems]);
|
|
2193
|
-
const createOrUpdateOriginator = async (additionalData, prevAdditionalData) => {
|
|
2194
|
-
let originatorLegalEntityId;
|
|
2195
|
-
const sofOriginator = parseSofOriginatorPayload(additionalData);
|
|
2196
|
-
if (additionalData?.originatorLegalEntityId && additionalData?.originatorType === prevAdditionalData?.originatorType) {
|
|
2197
|
-
try {
|
|
2198
|
-
sofOriginator.id = additionalData?.originatorLegalEntityId;
|
|
2199
|
-
if (sofOriginator.type) {
|
|
2200
|
-
delete sofOriginator.type;
|
|
2201
|
-
}
|
|
2202
|
-
const patchLegalEntity = {
|
|
2203
|
-
...sofOriginator,
|
|
2204
|
-
id: sofOriginator.id
|
|
2205
|
-
};
|
|
2206
|
-
const le = await updateLegalEntity(patchLegalEntity);
|
|
2207
|
-
originatorLegalEntityId = le?.id;
|
|
2208
|
-
} catch (e) {
|
|
2209
|
-
logger.log("Error updating originator legal entity", e);
|
|
2210
|
-
}
|
|
2211
|
-
} else {
|
|
2212
|
-
try {
|
|
2213
|
-
const le = await createLegalEntity(sofOriginator);
|
|
2214
|
-
originatorLegalEntityId = le?.id;
|
|
2215
|
-
} catch (e) {
|
|
2216
|
-
logger.log("Error creating originator legal entity", e);
|
|
2217
|
-
}
|
|
2218
|
-
}
|
|
2219
|
-
return originatorLegalEntityId;
|
|
2220
|
-
};
|
|
2221
|
-
const handleSubmit = useCallback(async () => {
|
|
2222
|
-
const sofData = { ...currentState?.data };
|
|
2223
|
-
const sofType = sofData?.sourceOfFundsType?.type;
|
|
2224
|
-
if (!sofType || !activeBusinessLine?.id) {
|
|
2225
|
-
return;
|
|
2226
|
-
}
|
|
2227
|
-
const eventsAdditionalData = {};
|
|
2228
|
-
setLoadingStatus("loading");
|
|
2229
|
-
const { additionalData } = sofData;
|
|
2230
|
-
const sofPayload = getSourceOfFundsPayload(sofType, additionalData);
|
|
2231
|
-
if (sofType === "donations" || sofType === "inheritance") {
|
|
2232
|
-
try {
|
|
2233
|
-
sofPayload.originatorLegalEntityId = await createOrUpdateOriginator(
|
|
2234
|
-
additionalData,
|
|
2235
|
-
activeSourceOfFund?.additionalData
|
|
2236
|
-
);
|
|
2237
|
-
} catch (e) {
|
|
2238
|
-
setSofErrorMessage(e?.message || sofT(($) => $["errorUpdatingSourceOfFunds"]));
|
|
2239
|
-
logger.log("Error updating source of funds", e);
|
|
2240
|
-
}
|
|
2241
|
-
eventsAdditionalData.originatorType = additionalData?.originatorType ?? "";
|
|
2242
|
-
}
|
|
2243
|
-
if (sofType === "thirdPartyFunding") {
|
|
2244
|
-
eventsAdditionalData.financiers = `${additionalData?.financiers?.length || 0} investor(s)`;
|
|
2245
|
-
}
|
|
2246
|
-
const sofMutationPayload = {
|
|
2247
|
-
...sofPayload,
|
|
2248
|
-
businessLineId: activeBusinessLine.id
|
|
2249
|
-
};
|
|
2250
|
-
try {
|
|
2251
|
-
await updateSoFMutation(sofMutationPayload);
|
|
2252
|
-
userEvents.addTaskEvent("Success", {
|
|
2253
|
-
actionType: "submit",
|
|
2254
|
-
returnValue: sofType,
|
|
2255
|
-
additionalData: eventsAdditionalData
|
|
2256
|
-
});
|
|
2257
|
-
setGettingStarted(true);
|
|
2258
|
-
setShowUploadPage(false);
|
|
2259
|
-
setActiveSourceOfFund({});
|
|
2260
|
-
gotoFormByFormIndex(0);
|
|
2261
|
-
setSofErrorMessage("");
|
|
2262
|
-
showToast({ label: sofT(($) => $["successAddedFundingSources"]), variant: "success" });
|
|
2263
|
-
handleHomeClick?.();
|
|
2264
|
-
} catch (e) {
|
|
2265
|
-
setSofErrorMessage(sofT(($) => $["errorUpdatingSourceOfFunds"]));
|
|
2266
|
-
logger.log("Error updating source of funds", e);
|
|
2267
|
-
}
|
|
2268
|
-
setLoadingStatus("success");
|
|
2269
|
-
}, [currentState?.data, activeSourceOfFund, handleHomeClick]);
|
|
2270
|
-
const handleGettingStarted = useCallback(() => {
|
|
2271
|
-
setGettingStarted(!gettingStarted);
|
|
2272
|
-
}, [gettingStarted]);
|
|
2273
|
-
const handleSourceOfFundsClick = (SoF, businessLine) => {
|
|
2274
|
-
setActiveBusinessLine(businessLine);
|
|
2275
|
-
setActiveSourceOfFund(SoF);
|
|
2276
|
-
setGettingStarted(false);
|
|
2277
|
-
};
|
|
2278
|
-
const {
|
|
2279
|
-
handleNextClick,
|
|
2280
|
-
handleBackClick,
|
|
2281
|
-
activeForm,
|
|
2282
|
-
shouldValidate,
|
|
2283
|
-
setShouldValidate,
|
|
2284
|
-
gotoFormByFormIndex,
|
|
2285
|
-
steps
|
|
2286
|
-
} = useFormComposer({
|
|
2287
|
-
problems,
|
|
2288
|
-
forms,
|
|
2289
|
-
onSubmit: handleSubmit
|
|
2290
|
-
});
|
|
2291
|
-
const documentUtils = documentApiUtils({
|
|
2292
|
-
baseUrl: baseUrl.value,
|
|
2293
|
-
rootLegalEntityId: rootLegalEntityId.value
|
|
2294
|
-
});
|
|
2295
|
-
const handleNavigateToSummary = async () => {
|
|
2296
|
-
setShowUploadPage(false);
|
|
2297
|
-
setGettingStarted(true);
|
|
2298
|
-
};
|
|
2299
|
-
const handleNavigateToUploadPage = () => {
|
|
2300
|
-
setShowUploadPage(true);
|
|
2301
|
-
};
|
|
2302
|
-
return /* @__PURE__ */ jsx("div", { className: styles.sourceOfFunds, children: loading || isLoadingRootLegalEntity || isLoadingBusinessLines || areLegalEntitiesLoading ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2303
|
-
gettingStarted && !showUploadPage && legalEntity && /* @__PURE__ */ jsx(
|
|
2304
|
-
SourceOfFundsGettingStarted,
|
|
2305
|
-
{
|
|
2306
|
-
handleCancelClick: handleHomeClick,
|
|
2307
|
-
handleGettingStartedClick: handleGettingStarted,
|
|
2308
|
-
businessLines: allBusinessLines,
|
|
2309
|
-
problems: legalEntity?.problems,
|
|
2310
|
-
handleSourceOfFundsClick,
|
|
2311
|
-
handleNavigateToUploadPage,
|
|
2312
|
-
legalEntity,
|
|
2313
|
-
isSoFDocumentMissing
|
|
2314
|
-
}
|
|
2315
|
-
),
|
|
2316
|
-
showUploadPage && legalEntity && /* @__PURE__ */ jsx(
|
|
2317
|
-
SourceOfFundsUpload,
|
|
2318
|
-
{
|
|
2319
|
-
businessLines: allBusinessLines,
|
|
2320
|
-
documentUtils,
|
|
2321
|
-
legalEntity,
|
|
2322
|
-
handleNavigateToSummary
|
|
2323
|
-
}
|
|
2324
|
-
),
|
|
2325
|
-
!gettingStarted && !showUploadPage && /* @__PURE__ */ jsx(
|
|
2326
|
-
FormWrapper,
|
|
2327
|
-
{
|
|
2328
|
-
taskName: "sourceOfFunds",
|
|
2329
|
-
gotoFormByFormIndex,
|
|
2330
|
-
hideSidebar: true,
|
|
2331
|
-
loadingStatus,
|
|
2332
|
-
forms,
|
|
2333
|
-
activeForm,
|
|
2334
|
-
validateForm: () => setShouldValidate(true),
|
|
2335
|
-
onSubmit: handleSubmit,
|
|
2336
|
-
problems,
|
|
2337
|
-
canSubmit: canSubmitForm,
|
|
2338
|
-
handleNextClick,
|
|
2339
|
-
showBackButton: true,
|
|
2340
|
-
handleBackClick: steps.current === 0 ? handleGettingStarted : handleBackClick,
|
|
2341
|
-
handleHomeClick,
|
|
2342
|
-
steps,
|
|
2343
|
-
children: /* @__PURE__ */ jsx(
|
|
2344
|
-
SourceOfFunds,
|
|
2345
|
-
{
|
|
2346
|
-
country,
|
|
2347
|
-
activeForm,
|
|
2348
|
-
shouldValidate,
|
|
2349
|
-
activeBusinessLine,
|
|
2350
|
-
sourceOfFundsType: currentState?.data?.sourceOfFundsType?.type,
|
|
2351
|
-
ref: formRef,
|
|
2352
|
-
data: activeSourceOfFund
|
|
2353
|
-
}
|
|
2354
|
-
)
|
|
2355
|
-
}
|
|
2356
|
-
)
|
|
2357
|
-
] }) });
|
|
2358
|
-
}
|
|
2359
|
-
const SourceOfFundsPage = ({ onSubmit, handleHomeClick }) => {
|
|
2360
|
-
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
2361
|
-
const capabilityProblems = useCapabilityProblems();
|
|
2362
|
-
const { i18n } = useTranslation();
|
|
2363
|
-
addResourceBundles(i18n, [
|
|
2364
|
-
{ ns: "sof", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../tasks/SourceOfFundsDropin/language/bg-BG.json": () => import("./bg-BG-BvLl6gaB.js"), "../tasks/SourceOfFundsDropin/language/cs-CZ.json": () => import("./cs-CZ-hT5w5It6.js"), "../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/el-GR.json": () => import("./el-GR-DtFE64KX.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/et-EE.json": () => import("./et-EE-C8RrUpLm.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/hr-HR.json": () => import("./hr-HR-D5V7g9H2.js"), "../tasks/SourceOfFundsDropin/language/hu-HU.json": () => import("./hu-HU-hbVM6tMS.js"), "../tasks/SourceOfFundsDropin/language/it-IT.json": () => import("./it-IT-C_651bEP.js"), "../tasks/SourceOfFundsDropin/language/ja-JP.json": () => import("./ja-JP-CvNJvxkQ.js"), "../tasks/SourceOfFundsDropin/language/lt-LT.json": () => import("./lt-LT-Ci357QYQ.js"), "../tasks/SourceOfFundsDropin/language/lv-LV.json": () => import("./lv-LV-Dxe-A5vo.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/pl-PL.json": () => import("./pl-PL-DtJ3sgVO.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/ro-RO.json": () => import("./ro-RO-4j2I7YM7.js"), "../tasks/SourceOfFundsDropin/language/sk-SK.json": () => import("./sk-SK-C5Qmv4E6.js"), "../tasks/SourceOfFundsDropin/language/sl-SI.json": () => import("./sl-SI-BZpXMHiG.js"), "../tasks/SourceOfFundsDropin/language/sv-SE.json": () => import("./sv-SE-DsPdegWB.js") }), `../tasks/SourceOfFundsDropin/language/${lang}.json`, 5) }
|
|
2365
|
-
]);
|
|
2366
|
-
if (!rootLe) {
|
|
2367
|
-
return /* @__PURE__ */ jsx(Loader, {});
|
|
2368
|
-
}
|
|
2369
|
-
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLe.id) : void 0;
|
|
2370
|
-
return /* @__PURE__ */ jsx(
|
|
2371
|
-
SourceOfFundsDropin,
|
|
2372
|
-
{
|
|
2373
|
-
legalEntityResponse: rootLe,
|
|
2374
|
-
country: getLegalEntityCountry(rootLe),
|
|
2375
|
-
problems,
|
|
2376
|
-
onSubmit,
|
|
2377
|
-
handleHomeClick
|
|
2378
|
-
}
|
|
2379
|
-
);
|
|
2380
|
-
};
|
|
2381
|
-
export {
|
|
2382
|
-
SourceOfFundsPage
|
|
2383
|
-
};
|