@adyen/kyc-components 4.0.0 → 4.2.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -30
- package/dist/4-people-BtDi7O9A.js +24 -0
- package/dist/AcceptTermsOfServiceComponent-DBf9qvsO.js +650 -0
- package/dist/Accordion-CqtzWVjL.js +88 -0
- package/dist/AccountSetupRejected-B_bbYtM2.js +26 -0
- package/dist/ActionBar-Dnv6j3rc.js +31 -0
- package/dist/Address-CbJvGOYV.js +1112 -0
- package/dist/Alert-uX8GYjqW.js +169 -0
- package/dist/Avatar-Cj2W0_1v.js +60 -0
- package/dist/BG-HKzabLqZ.js +27 -0
- package/dist/BusinessFinancingComponent-Bx2K8iN3.js +55 -0
- package/dist/BusinessFinancingDropin-CKsHfJ2J.js +2235 -0
- package/dist/BusinessFinancingPage-DmnaOPvo.js +43 -0
- package/dist/BusinessTypeSelectionPage-Bz0czSjO.js +440 -0
- package/dist/Card-OQuFzmxm.js +90 -0
- package/dist/Checkbox-BSxszx-9.js +74 -0
- package/dist/Confirm-DviRmz4e.js +64 -0
- package/dist/ConstitutionalDocument-hcS_-kxn.js +2361 -0
- package/dist/ContactDetails-BHn4lDFA.js +396 -0
- package/dist/ContextGuidance-BgMTeWIT.js +34 -0
- package/dist/ContractViewer-DcQHIGMU.js +935 -0
- package/dist/CountryField-D-WDIPSz.js +66 -0
- package/dist/CreateIndividualComponent-BJnGALzE.js +65 -0
- package/dist/CreateTransferInstrumentComponent-BudZmP_i.js +56 -0
- package/dist/Currency-BmTfhWzY.js +238 -0
- package/dist/CustomerSupport-C5g_pNY4.js +156 -0
- package/dist/DebugModal-C46w3DN5.js +416 -0
- package/dist/DecisionMakerDetailsPage-CMDK81px.js +104 -0
- package/dist/DecisionMakers-BbHkdcWY.js +858 -0
- package/dist/Dropzone-DMzbyRRZ.js +224 -0
- package/dist/EmbeddedStatus-Cto-qd3u.js +97 -0
- package/dist/EndStateLayout-Ds-6EhEu.js +71 -0
- package/dist/EntityAssociation-CAyTgh0S.js +178 -0
- package/dist/EntityGuidanceStatus-BdYW3yoc.js +106 -0
- package/dist/ErrorPanel-Doqj6bY8.js +194 -0
- package/dist/Field-CpaVW2RZ.js +141 -0
- package/dist/FormNavigation-D8lokOpO.js +144 -0
- package/dist/FormWrapper--B4boODe.js +135 -0
- package/dist/Header-hKHJmYRN.js +83 -0
- package/dist/Image-DIxxTupT.js +27 -0
- package/dist/Individual.rules-BAgQIMbK.js +383 -0
- package/dist/IndividualDropin-CpAEsMsL.js +5168 -0
- package/dist/InputDate-CoQAEyvT.js +43 -0
- package/dist/InputGroup-WBfGDV5F.js +32 -0
- package/dist/InputText-DmFCHVKa.js +134 -0
- package/dist/Introduction-DlnfG2qx.js +256 -0
- package/dist/JpAddress-D9wzTLlZ.js +329 -0
- package/dist/LandingLayout-pnTFiHf3.js +60 -0
- package/dist/LegalCompanyNameField-BOTkQIk6.js +138 -0
- package/dist/LegalRepresentativeDetailsPage-CnYE0t7-.js +55 -0
- package/dist/Link-B1s8_T7-.js +35 -0
- package/dist/List-BAzyC6sw.js +83 -0
- package/dist/ListItem-Coa9aGdN.js +69 -0
- package/dist/LoaderWrapper-YTarCjI9.js +42 -0
- package/dist/ManageIndividualComponent-D_RLxMfQ.js +46 -0
- package/dist/ManageTermsOfServiceComponent-VzhHb2cE.js +52 -0
- package/dist/ManageTransferInstrumentComponent-DevLP2pk.js +292 -0
- package/dist/MaskedInput-DEaltj9a.js +811 -0
- package/dist/MaybeModal-BcNIbjko.js +36 -0
- package/dist/Modal-sn2wYRN6.js +147 -0
- package/dist/Name-0TfRqG2t.js +81 -0
- package/dist/OnboardingDropinComponent-xFXjVEe0.js +2672 -0
- package/dist/PayoutDetailsDropin-popMzwBb.js +4972 -0
- package/dist/ProgressBar-B7gTQncy.js +47 -0
- package/dist/Radio-BMtxBpnn.js +39 -0
- package/dist/RadioGroup-B7fMJqmd.js +100 -0
- package/dist/RadioGroupCard-BqnCzi0b.js +152 -0
- package/dist/Review-DiV6r3gZ.js +84 -0
- package/dist/RootBusinessDetailsPage-BfQ4Pwdu.js +50 -0
- package/dist/RootBusinessLinesPage-CiZs8smP.js +1553 -0
- package/dist/RootIndividualDetailsPage-C92QtbjO.js +62 -0
- package/dist/Select-Cb77B0ji.js +868 -0
- package/dist/SignPCIComponent-B83OWndG.js +307 -0
- package/dist/SingpassSelection-Cc-ulD5h.js +132 -0
- package/dist/SoleProprietorshipPage-BYZkXtGh.js +50 -0
- package/dist/SourceOfFundsPage-DorVNEQ9.js +2162 -0
- package/dist/Spacer-BK3jDget.js +18 -0
- package/dist/StepProgressIndicator-DJ9FpFXO.js +78 -0
- package/dist/StoreProvider-qjyWZhxu.js +4845 -0
- package/dist/StructuredList-BNLhk_zV.js +61 -0
- package/dist/Summary-Bgq_Kcjg.js +220 -0
- package/dist/TaskVerificationStatus-DOZKjK09.js +129 -0
- package/dist/TaxInformationField-Dxx36AGr.js +3735 -0
- package/dist/TaxReportingDropin-tQf3UTtj.js +503 -0
- package/dist/TextArea-B4QNgWAM.js +103 -0
- package/dist/TileGroup-Dwrh9ZxO.js +203 -0
- package/dist/TrustDetailsPage-CKFlO2Ug.js +2187 -0
- package/dist/TrustMemberCompanyPage-BeeQ4TlK.js +68 -0
- package/dist/TrustMemberIndividualPage-cPDpa-cf.js +64 -0
- package/dist/TrustMemberRoleAndTypePage-C_isMpuS.js +1081 -0
- package/dist/TrustMembersOverview-CixBpWbT.js +439 -0
- package/dist/UnincorporatedPartnershipIndividualPage-BvVu1mfm.js +63 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-HFF2AWev.js +71 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-DWRiDapM.js +292 -0
- package/dist/UnincorporatedPartnershipMembersOverview-BgxWBXQP.js +173 -0
- package/dist/VerificationErrorAlert-DjNgDy5_.js +60 -0
- package/dist/ViewVerificationStatusComponent-BZWz8bMd.js +181 -0
- package/dist/accountHolderUtils-dRujT8-D.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-CyvEB6AP.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-C9eSN1bv.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-CAGEedke.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-BYIcPMjp.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-BIUEu4TI.js +41 -0
- package/dist/getProblemsForEntity-BFrbrf8n.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-7rZG5Ja-.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-DhGVlmpA.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-vwyJ0OrD.js +16 -0
- package/dist/jpAddressSchema-DEOyz9Yo.js +26 -0
- package/dist/localizeDateString-BjYXf_CF.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-1MUQJf2c.js +230 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-BCWDaJEu.js +162 -0
- package/dist/mapLegalEntityToIndividualSchema-D7Eku9KI.js +206 -0
- package/dist/mapTransferInstrumentToPayoutAccount-BYNYjRzc.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-Ddoxs0Q5.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-BgkGx8kj.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-BOoObZUD.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-45H_XXPF.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-BW4HQI5X.js +142 -0
- package/dist/types-D7ibfssA.js +74 -0
- package/dist/types-DRjaiEYd.js +64 -0
- package/dist/types-DSsQZPmi.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-jaSfQ9rQ.js +34 -0
- package/dist/useBusinessDetailsData-5O2km9MB.js +5310 -0
- package/dist/useBusinessLines-DuBQrvIQ.js +29 -0
- package/dist/useCanSeeIntroduction-Boj-VdF4.js +48 -0
- package/dist/useCreateLegalEntity-DQx1byaP.js +32 -0
- package/dist/useDataMissingRemediations-Drava4pQ.js +41 -0
- package/dist/useDataset-3t4wCptb.js +76 -0
- package/dist/useDeleteTransferInstrument-CUjrvIfw.js +32 -0
- package/dist/useForm-CsrT0zKF.js +582 -0
- package/dist/useFormContext-D1NuWw_2.js +201 -0
- package/dist/useGlobalData-vS5GxkpZ.js +68 -0
- package/dist/useId-BZ0PA7jP.js +24 -0
- package/dist/useMultiForm-82RYFvCF.js +873 -0
- package/dist/useNavigate-DLBqtyNN.js +265 -0
- package/dist/useOnboardingStatus-B3HSS36K.js +28 -0
- package/dist/usePciQuestionnaireList-B2425Wiw.js +29 -0
- package/dist/useSalesChannels-B9Z_g_9G.js +65 -0
- package/dist/useScenarios-DCRvLaxV.js +48 -0
- package/dist/useSetting-C108TWwa.js +19 -0
- package/dist/useTaskStatus-DjHWxlNL.js +51 -0
- package/dist/useTermsOfServiceStatus-BTLQKn3X.js +43 -0
- package/dist/useToastContext-CYdZ2BD2.js +49 -0
- package/dist/useTrustMembers-BvFhj1PW.js +163 -0
- package/dist/useUnincorporatedPartnershipMembers-wCGUg18Y.js +99 -0
- package/dist/useUpdateBusinessLines-DAHY8qXu.js +339 -0
- package/dist/useUpdateLegalEntity-B7VJAlhD.js +40 -0
- package/dist/utils-BCit-Kzj.js +58 -0
- package/dist/utils-BU2KHXr7.js +237 -0
- package/dist/utils-BiqRkf5f.js +159 -0
- package/dist/utils-C4cwFCf5.js +778 -0
- package/dist/utils-Cc8niKnm.js +29 -0
- package/dist/validate-BnkIeDb7.js +434 -0
- package/dist/validate-fYuz9-yq.js +108 -0
- package/dist/validationError-Bod1gd-k.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-CmHBNGjM.js +0 -659
- package/dist/Accordion-Cp_VkxR6.js +0 -88
- package/dist/AccountSetupRejected-CoxWTlar.js +0 -26
- package/dist/ActionBar-CxUKVmTE.js +0 -31
- package/dist/Address-Db6Q_KUo.js +0 -1348
- package/dist/Alert-DEiOX0nw.js +0 -159
- package/dist/Avatar-3K6S_tIS.js +0 -60
- package/dist/BG-DlvaKo4n.js +0 -27
- package/dist/BusinessDetailsMultiformDropin-CYoIN4Fa.js +0 -4220
- package/dist/BusinessFinancingComponent-DyvM-fsY.js +0 -54
- package/dist/BusinessFinancingDropin-BOvR4LwU.js +0 -1853
- package/dist/BusinessFinancingPage-8C0ztBfS.js +0 -43
- package/dist/BusinessTypeSelectionPage-DpZAsa8K.js +0 -427
- package/dist/Card-CdpPhK9y.js +0 -82
- package/dist/ConstitutionalDocument-NLs6ka9K.js +0 -143
- package/dist/ContractViewer-Byp71k2e.js +0 -935
- package/dist/CountryField-9w8wRZMW.js +0 -843
- package/dist/CreateIndividualComponent-zGcoEyq0.js +0 -71
- package/dist/CreateTransferInstrumentComponent-Ct_v-IyH.js +0 -63
- package/dist/Currency-53s7DEeh.js +0 -183
- package/dist/CustomerSupport-BRcUQ4fR.js +0 -153
- package/dist/DebugModal-CokbXGK9.js +0 -413
- package/dist/DecisionMakerDetailsPage-B5cLY8iP.js +0 -106
- package/dist/DecisionMakers-BQ24LfqB.js +0 -830
- package/dist/EmbeddedStatus-DB9B_u3L.js +0 -99
- package/dist/EndStateLayout-BWC5aqVS.js +0 -71
- package/dist/EntityAssociation-gzYdcHoL.js +0 -159
- package/dist/EntityGuidanceStatus-BKeZKnbP.js +0 -105
- package/dist/FormFlow-Cf3Ff2qw.js +0 -224
- package/dist/FormNavigation-CjgZbv9G.js +0 -144
- package/dist/FormWrapper-dbBZegkX.js +0 -135
- package/dist/IndividualOnfido-Cc7dydKq.js +0 -9594
- package/dist/IndividualOnfidoDropin-BpU2cL4E.js +0 -2497
- package/dist/InputText-Dsw9kiwL.js +0 -249
- package/dist/Introduction-C8mTk4l_.js +0 -300
- package/dist/JpAddress-R81eO-aY.js +0 -280
- package/dist/LegalRepresentativeDetailsPage-DIQX18v2.js +0 -60
- package/dist/ListItem-D3p6EgP_.js +0 -69
- package/dist/ManageIndividualComponent-CmM-vP9E.js +0 -46
- package/dist/ManageTermsOfServiceComponent-C3hXZJx5.js +0 -52
- package/dist/ManageTransferInstrumentComponent-co6LYrVY.js +0 -287
- package/dist/MaybeModal-BVQOzETz.js +0 -25
- package/dist/Modal-CloeVnNp.js +0 -149
- package/dist/OnboardingDropinComponent-CDAK4v1o.js +0 -7908
- package/dist/PayoutDetailsDropin-DCrlrNki.js +0 -4841
- package/dist/Review-Dqn49vJM.js +0 -83
- package/dist/RootBusinessDetailsPage-DSEq3TIn.js +0 -61
- package/dist/RootBusinessLinesPage-CbPhOber.js +0 -1118
- package/dist/RootIndividualDetailsPage-Bp_7gSIB.js +0 -71
- package/dist/SignPCIComponent-B6kYuqT_.js +0 -304
- package/dist/SingpassSelection-aDrNTYr3.js +0 -130
- package/dist/SoleProprietorshipPage-HnUsyjKp.js +0 -60
- package/dist/SourceOfFundsPage-BkMEIV_L.js +0 -2383
- package/dist/StepProgressIndicator-BgeMe93n.js +0 -78
- package/dist/StoreProvider-BFN15Go9.js +0 -7674
- package/dist/Summary-BkE_c8pU.js +0 -204
- package/dist/TaxReportingDropin-LG9zvOMN.js +0 -502
- package/dist/TrustDetailsPage-C8w8pEvB.js +0 -2149
- package/dist/TrustMemberCompanyPage-IDEwpLW3.js +0 -73
- package/dist/TrustMemberIndividualPage-rKB3iVFk.js +0 -66
- package/dist/TrustMemberRoleAndTypePage-CLtX8V0M.js +0 -985
- package/dist/TrustMembersOverview-Bs203hm0.js +0 -438
- package/dist/UnincorporatedPartnershipIndividualPage-CBTaUEld.js +0 -65
- package/dist/UnincorporatedPartnershipMemberCompanyPage-ZnLe9Uq3.js +0 -76
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BXImA2c_.js +0 -281
- package/dist/UnincorporatedPartnershipMembersOverview-c7k2JzcO.js +0 -172
- package/dist/VerificationErrorAlert-uubpHQGE.js +0 -79
- package/dist/ViewVerificationStatusComponent-DO9L2hEO.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-Dlbc7VjU.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-CUgKVLK4.js +0 -218
- package/dist/download-Drhk9k1f.js +0 -17
- package/dist/dropinUtils-D2lBlNWp.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-C38LzPl3.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-B0l_1eCG.js +0 -22
- package/dist/getName-CIw0MR9e.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-B-_hLK5I.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-yBLSAmf8.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-C-G2nUor.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-BhW5UmN9.js +0 -156
- package/dist/mapFinancialReportsToFinancialInformation-Dl-cl9eQ.js +0 -67
- package/dist/mapJpAddressSchemaToAddressLocalizations-KFAvfuC1.js +0 -63
- package/dist/mapLegalEntityToIndividualOnfidoSchema-D51tRiYd.js +0 -143
- package/dist/mapTransferInstrumentToPayoutAccount-CU5wx0wJ.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-DoOFQqtn.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-Dyejukh7.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-DP604XPJ.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-C972Lk6s.js +0 -34
- package/dist/types-CLz74bOT.js +0 -88
- package/dist/types-Ctv8hbzY.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-DAB1oG6O.js +0 -33
- package/dist/useCreateLegalEntity-BK5YcHA-.js +0 -31
- package/dist/useDataset-BtfHQp4w.js +0 -220
- package/dist/useForm-wQyeWa1b.js +0 -1623
- package/dist/useGlobalData-B33uuhtd.js +0 -68
- package/dist/useMultiForm-rZmCYsI4.js +0 -864
- package/dist/useOnboardingStatus-BbIpiZR4.js +0 -27
- package/dist/useScenarios-DPOodENA.js +0 -46
- package/dist/useTermsOfServiceStatus-DKeMR4Xi.js +0 -42
- package/dist/useToastContext-BK9oGWtb.js +0 -60
- package/dist/useUnincorporatedPartnershipMembers-Cdts5Hbn.js +0 -99
- package/dist/useUpdateBusinessLines-CWYtpMwr.js +0 -46
- package/dist/useUpdateLegalEntity-oa8qEzc4.js +0 -39
- package/dist/utils-AP5TpAhf.js +0 -774
- package/dist/utils-COz1RbbA.js +0 -237
- package/dist/validate-BYwVLb-X.js +0 -41
- package/dist/validate-CBVdP51L.js +0 -100
- package/dist/validationError-CvZLhw5H.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
|
@@ -0,0 +1,2235 @@
|
|
|
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] = "405f49f6-15d1-4b9b-9acb-55eca4614bf9", e._sentryDebugIdIdentifier = "sentry-dbid-405f49f6-15d1-4b9b-9acb-55eca4614bf9");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
+
import { useRef, useEffect, useMemo, useState } from "preact/hooks";
|
|
12
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-DQx1byaP.js";
|
|
13
|
+
import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-CYdZ2BD2.js";
|
|
14
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-B7VJAlhD.js";
|
|
15
|
+
import { ak as reverseMapping, al as isEeaCountry, o as LegalEntityTypes, ab as cloneObject, b as useApiContext, k as httpGet, aa as useI18nContext, u as useTranslation, z as Typography, a2 as translateStringOrObject, p as useAnalyticsContext, M as hasSolePropInLegalEntity, B as useSettingsContext, L as Loader, V as Button } from "./StoreProvider-qjyWZhxu.js";
|
|
16
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-D1NuWw_2.js";
|
|
17
|
+
import { S as SettingNames } from "./TaskVerificationStatus-DOZKjK09.js";
|
|
18
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-jaSfQ9rQ.js";
|
|
19
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-CAGEedke.js";
|
|
20
|
+
import { u as useMultiForm } from "./useMultiForm-82RYFvCF.js";
|
|
21
|
+
import { E as EndStateLayout } from "./EndStateLayout-Ds-6EhEu.js";
|
|
22
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-Bod1gd-k.js";
|
|
23
|
+
import { a as datasetUtilities } from "./datasetUtil-BHQp0-xL.js";
|
|
24
|
+
import { l as localizeDateString } from "./localizeDateString-BjYXf_CF.js";
|
|
25
|
+
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport, L as LegalFormField, I as InputNumber, C as Currency, b as CURRENCY_FIELD, c as InputCurrency } from "./Currency-BmTfhWzY.js";
|
|
26
|
+
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
27
|
+
import { H as Header } from "./Header-hKHJmYRN.js";
|
|
28
|
+
import { E as ErrorPanel } from "./ErrorPanel-Doqj6bY8.js";
|
|
29
|
+
import { c as currencyByCountry } from "./types-DRjaiEYd.js";
|
|
30
|
+
import { c as createFormUtils } from "./formUtils-BYIcPMjp.js";
|
|
31
|
+
import { g as getFieldProps } from "./getProps-Cc3J2-z9.js";
|
|
32
|
+
import { F as Field } from "./Field-CpaVW2RZ.js";
|
|
33
|
+
import { L as Link } from "./Link-B1s8_T7-.js";
|
|
34
|
+
import { R as RadioGroup } from "./RadioGroup-B7fMJqmd.js";
|
|
35
|
+
import { I as InputText } from "./InputText-DmFCHVKa.js";
|
|
36
|
+
import { useQuery } from "@tanstack/preact-query";
|
|
37
|
+
import { S as Select } from "./Select-Cb77B0ji.js";
|
|
38
|
+
import { I as InputDate } from "./InputDate-CoQAEyvT.js";
|
|
39
|
+
import { C as Checkbox } from "./Checkbox-BSxszx-9.js";
|
|
40
|
+
import { A as Address } from "./Address-CbJvGOYV.js";
|
|
41
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-BiqRkf5f.js";
|
|
42
|
+
import { C as CountryField } from "./CountryField-D-WDIPSz.js";
|
|
43
|
+
import { b as businessFinancingMultiformRules } from "./validate-fYuz9-yq.js";
|
|
44
|
+
const businessFinancingBaseMapping = {
|
|
45
|
+
legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
|
|
46
|
+
legalInformationInsolvency: "organization.statusOfLegalProceeding",
|
|
47
|
+
legalEntityIdentifier: "organization.globalLegalEntityIdentifier",
|
|
48
|
+
naceCode: "organization.economicSector",
|
|
49
|
+
legalForm: "organization.legalForm",
|
|
50
|
+
legalName: "organization.legalName",
|
|
51
|
+
"registrationAddress.city": "organization.registeredAddress.city",
|
|
52
|
+
"registrationAddress.country": "organization.registeredAddress.country",
|
|
53
|
+
"registrationAddress.postalCode": "organization.registeredAddress.postalCode",
|
|
54
|
+
"registrationAddress.stateOrProvince": "organization.registeredAddress.stateOrProvince",
|
|
55
|
+
"registrationAddress.address": "organization.registeredAddress.street",
|
|
56
|
+
"registrationAddress.otherAddressInformation": "organization.registeredAddress.street2"
|
|
57
|
+
};
|
|
58
|
+
const businessFinancingIndividualMapping = {
|
|
59
|
+
gender: "individual.gender",
|
|
60
|
+
countryOfBirth: "individual.countryOfBirth"
|
|
61
|
+
};
|
|
62
|
+
const businessFinancingSoleProprietorMapping = {
|
|
63
|
+
legalProceedingsDate: "soleProprietorship.dateOfInitiationOfLegalProceeding",
|
|
64
|
+
legalInformationInsolvency: "soleProprietorship.statusOfLegalProceeding",
|
|
65
|
+
naceCode: "soleProprietorship.economicSector"
|
|
66
|
+
};
|
|
67
|
+
const businessFinancingComponentsKeyMapping = {
|
|
68
|
+
...businessFinancingBaseMapping
|
|
69
|
+
};
|
|
70
|
+
const businessFinancingSoleProprietorComponentsKeyMapping = {
|
|
71
|
+
...businessFinancingSoleProprietorMapping
|
|
72
|
+
};
|
|
73
|
+
const businessFinancingApiKeyMapping = {
|
|
74
|
+
...reverseMapping(businessFinancingBaseMapping)
|
|
75
|
+
};
|
|
76
|
+
const businessFinancingIndividualApiKeyMapping = {
|
|
77
|
+
...reverseMapping(businessFinancingIndividualMapping)
|
|
78
|
+
};
|
|
79
|
+
const businessFinancingSoleProprietorApiKeyMapping = {
|
|
80
|
+
...reverseMapping(businessFinancingSoleProprietorMapping)
|
|
81
|
+
};
|
|
82
|
+
const mapBusinessFinancingToLegalEntity = (data, isIndividualOrSoleProprietor, customMapping) => {
|
|
83
|
+
if (customMapping) {
|
|
84
|
+
return formatObject(data, customMapping);
|
|
85
|
+
}
|
|
86
|
+
const mapping = isIndividualOrSoleProprietor ? businessFinancingSoleProprietorApiKeyMapping : businessFinancingApiKeyMapping;
|
|
87
|
+
return formatObject(
|
|
88
|
+
data,
|
|
89
|
+
mapping
|
|
90
|
+
);
|
|
91
|
+
};
|
|
92
|
+
const BusinessFinancingPages = {
|
|
93
|
+
COMPANY_PAGE: "company",
|
|
94
|
+
SOLE_PROPRIETOR_PAGE: "soleProprietor",
|
|
95
|
+
PARENT_COMPANY_PAGE: "parentCompany",
|
|
96
|
+
ULTIMATE_PARENT_COMPANY_PAGE: "ultimateParentCompany"
|
|
97
|
+
};
|
|
98
|
+
const BusinessFinancingRadioIds = {
|
|
99
|
+
YES: "Yes",
|
|
100
|
+
NO: "No"
|
|
101
|
+
};
|
|
102
|
+
const businessFinancingRadioItems = [
|
|
103
|
+
{
|
|
104
|
+
id: BusinessFinancingRadioIds.YES,
|
|
105
|
+
name: "yes"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: BusinessFinancingRadioIds.NO,
|
|
109
|
+
name: "no"
|
|
110
|
+
}
|
|
111
|
+
];
|
|
112
|
+
const businessFinancingParentRadioItems = [
|
|
113
|
+
{
|
|
114
|
+
id: BusinessFinancingRadioIds.YES,
|
|
115
|
+
name: "yes"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: BusinessFinancingRadioIds.NO,
|
|
119
|
+
name: "noIdontKnow"
|
|
120
|
+
}
|
|
121
|
+
];
|
|
122
|
+
const companySchemaKeys = [
|
|
123
|
+
"legalForm",
|
|
124
|
+
"naceCode",
|
|
125
|
+
"numberOfEmployees",
|
|
126
|
+
"doesYourCompanyHaveLEI",
|
|
127
|
+
"legalEntityIdentifier",
|
|
128
|
+
"isCompanyOwnedByAnotherCompany",
|
|
129
|
+
"isParentOwnedByAnotherCompany",
|
|
130
|
+
"financialReportingDate",
|
|
131
|
+
"currency",
|
|
132
|
+
"netAssets",
|
|
133
|
+
"annualTurnover",
|
|
134
|
+
"legalInformationInsolvency",
|
|
135
|
+
"legalProceedingsDate"
|
|
136
|
+
];
|
|
137
|
+
const soleProprietorSchemaKeys = [
|
|
138
|
+
"gender",
|
|
139
|
+
"countryOfBirth",
|
|
140
|
+
"naceCode",
|
|
141
|
+
"legalInformationInsolvency",
|
|
142
|
+
"legalProceedingsDate"
|
|
143
|
+
];
|
|
144
|
+
const parentCompaniesSchemaKeys = [
|
|
145
|
+
"legalName",
|
|
146
|
+
"legalForm",
|
|
147
|
+
"naceCode",
|
|
148
|
+
"numberOfEmployees",
|
|
149
|
+
"doesYourCompanyHaveLEI",
|
|
150
|
+
"legalEntityIdentifier",
|
|
151
|
+
"isThisAddressTheMainHeadquarters",
|
|
152
|
+
"financialReportingDate",
|
|
153
|
+
"currency",
|
|
154
|
+
"netAssets",
|
|
155
|
+
"annualTurnover",
|
|
156
|
+
"legalInformationInsolvency",
|
|
157
|
+
"legalProceedingsDate",
|
|
158
|
+
"registrationAddress",
|
|
159
|
+
"sameAddressAsRootEntity"
|
|
160
|
+
];
|
|
161
|
+
const businessFinancingForms = {
|
|
162
|
+
company: {
|
|
163
|
+
formId: "company",
|
|
164
|
+
formName: "businessInformation",
|
|
165
|
+
fields: [...companySchemaKeys]
|
|
166
|
+
},
|
|
167
|
+
soleProprietor: {
|
|
168
|
+
formId: "soleProprietor",
|
|
169
|
+
formName: "businessInformation",
|
|
170
|
+
fields: [...soleProprietorSchemaKeys]
|
|
171
|
+
},
|
|
172
|
+
parentCompany: {
|
|
173
|
+
formId: "parentCompany",
|
|
174
|
+
formName: "parentCompanyInformation",
|
|
175
|
+
fields: [...parentCompaniesSchemaKeys]
|
|
176
|
+
},
|
|
177
|
+
ultimateParentCompany: {
|
|
178
|
+
formId: "ultimateParentCompany",
|
|
179
|
+
formName: "ultimateParentCompanyInformation",
|
|
180
|
+
fields: [...parentCompaniesSchemaKeys]
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
const BusinessFinancingIndices = {
|
|
184
|
+
COMPANY: "company",
|
|
185
|
+
SOLE_PROPRIETOR: "soleProprietor",
|
|
186
|
+
PARENT_COMPANY: "parentCompany",
|
|
187
|
+
ULTIMATE_PARENT_COMPANY: "ultimateParentCompany"
|
|
188
|
+
};
|
|
189
|
+
const getLegalEntityId = (businessFinancingIndex, rootLegalEntity) => {
|
|
190
|
+
if (!rootLegalEntity) return void 0;
|
|
191
|
+
if (businessFinancingIndex === BusinessFinancingIndices.COMPANY || businessFinancingIndex === BusinessFinancingIndices.SOLE_PROPRIETOR)
|
|
192
|
+
return rootLegalEntity.id;
|
|
193
|
+
if (!rootLegalEntity?.entityAssociations) return void 0;
|
|
194
|
+
const businessFinancingEntityType = "immediateParentCompany";
|
|
195
|
+
const businessFinancingEntityAssociation = rootLegalEntity.entityAssociations?.find(
|
|
196
|
+
(entity) => entity.type === businessFinancingEntityType
|
|
197
|
+
);
|
|
198
|
+
return businessFinancingEntityAssociation?.legalEntityId;
|
|
199
|
+
};
|
|
200
|
+
const USER_LOCALE = typeof navigator !== "undefined" ? navigator.language : "en-US";
|
|
201
|
+
const entityHasParentCompany = (data) => data.company?.isCompanyOwnedByAnotherCompany && data.company?.isCompanyOwnedByAnotherCompany === "Yes";
|
|
202
|
+
const entityHasUltimateParentCompany = (data) => data.company?.isParentOwnedByAnotherCompany && data.company?.isParentOwnedByAnotherCompany === "Yes";
|
|
203
|
+
const financialReportsToString = (financialReports) => {
|
|
204
|
+
return {
|
|
205
|
+
...financialReports,
|
|
206
|
+
numberOfEmployees: financialReports.numberOfEmployees ? financialReports.numberOfEmployees.toString() : void 0,
|
|
207
|
+
netAssets: financialReports.netAssets ? financialReports.netAssets.toString() : void 0,
|
|
208
|
+
annualTurnover: financialReports.annualTurnover ? financialReports.annualTurnover.toString() : void 0,
|
|
209
|
+
balanceSheetTotal: financialReports.balanceSheetTotal ? financialReports.balanceSheetTotal.toString() : void 0
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
const prepareSoleProprietorBusinessFinancingSubmitData = (data, rootLegalEntity, soleProprietorLegalEntity) => {
|
|
213
|
+
const businessFinancingData = data.soleProprietor;
|
|
214
|
+
if (!businessFinancingData || !rootLegalEntity?.id || !soleProprietorLegalEntity?.id) {
|
|
215
|
+
return null;
|
|
216
|
+
}
|
|
217
|
+
const individualChanges = mapBusinessFinancingToLegalEntity(
|
|
218
|
+
businessFinancingData,
|
|
219
|
+
true,
|
|
220
|
+
businessFinancingIndividualApiKeyMapping
|
|
221
|
+
);
|
|
222
|
+
const individualPayload = {
|
|
223
|
+
id: rootLegalEntity.id,
|
|
224
|
+
individual: {
|
|
225
|
+
...rootLegalEntity.individual,
|
|
226
|
+
...individualChanges.individual
|
|
227
|
+
},
|
|
228
|
+
...rootLegalEntity.entityAssociations && {
|
|
229
|
+
entityAssociations: rootLegalEntity.entityAssociations
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
const solePropChanges = mapBusinessFinancingToLegalEntity(
|
|
233
|
+
businessFinancingData,
|
|
234
|
+
true,
|
|
235
|
+
businessFinancingSoleProprietorApiKeyMapping
|
|
236
|
+
);
|
|
237
|
+
if (!solePropChanges.soleProprietorship) return null;
|
|
238
|
+
if (solePropChanges.soleProprietorship.statusOfLegalProceeding === "iDontKnow") {
|
|
239
|
+
solePropChanges.soleProprietorship.statusOfLegalProceeding = "noLegalActionsTaken";
|
|
240
|
+
}
|
|
241
|
+
if (solePropChanges.soleProprietorship.statusOfLegalProceeding === "iDontKnow" || solePropChanges.soleProprietorship.statusOfLegalProceeding === "noLegalActionsTaken") {
|
|
242
|
+
solePropChanges.soleProprietorship.dateOfInitiationOfLegalProceeding = "";
|
|
243
|
+
}
|
|
244
|
+
const solePropPayload = {
|
|
245
|
+
id: soleProprietorLegalEntity.id,
|
|
246
|
+
soleProprietorship: {
|
|
247
|
+
...soleProprietorLegalEntity.soleProprietorship,
|
|
248
|
+
...solePropChanges.soleProprietorship
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
return { individualPayload, solePropPayload };
|
|
252
|
+
};
|
|
253
|
+
const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLegalEntity) => {
|
|
254
|
+
const businessFinancingData = data[businessFinancingIndex];
|
|
255
|
+
if (!businessFinancingData) return null;
|
|
256
|
+
if (businessFinancingIndex === BusinessFinancingIndices.PARENT_COMPANY && !entityHasParentCompany(data)) {
|
|
257
|
+
return null;
|
|
258
|
+
}
|
|
259
|
+
if (businessFinancingIndex === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY && (!entityHasUltimateParentCompany(data) || !entityHasParentCompany(data))) {
|
|
260
|
+
return null;
|
|
261
|
+
}
|
|
262
|
+
const businessFinancingDetails = mapBusinessFinancingToLegalEntity(businessFinancingData);
|
|
263
|
+
const isSoleProprietor = businessFinancingIndex === BusinessFinancingIndices.SOLE_PROPRIETOR;
|
|
264
|
+
if (isSoleProprietor) {
|
|
265
|
+
throw new Error(
|
|
266
|
+
"Use prepareSoleProprietorBusinessFinancingSubmitData for sole proprietor business financing"
|
|
267
|
+
);
|
|
268
|
+
} else if (isSoleProprietor === false) {
|
|
269
|
+
if (!businessFinancingDetails.organization) return null;
|
|
270
|
+
const businessFinancingCountry = businessFinancingDetails.organization.registeredAddress?.country || rootLegalEntity?.organization?.registeredAddress?.country;
|
|
271
|
+
const companyData = businessFinancingData;
|
|
272
|
+
if (companyData.financialReportingDate && isEeaCountry(businessFinancingCountry)) {
|
|
273
|
+
const finReports = {
|
|
274
|
+
currency: companyData.currency,
|
|
275
|
+
financialReportingDate: companyData.financialReportingDate,
|
|
276
|
+
numberOfEmployees: companyData.numberOfEmployees ? Number(companyData.numberOfEmployees) : void 0,
|
|
277
|
+
netAssets: companyData.netAssets ? Number(companyData.netAssets) : void 0,
|
|
278
|
+
annualTurnover: companyData.annualTurnover ? Number(companyData.annualTurnover) : void 0
|
|
279
|
+
};
|
|
280
|
+
const businessFinancingFinancialReport = mapFinancialInformationToFinancialReport(finReports);
|
|
281
|
+
businessFinancingDetails.organization.financialReports = [businessFinancingFinancialReport];
|
|
282
|
+
}
|
|
283
|
+
if (!isEeaCountry(businessFinancingCountry)) {
|
|
284
|
+
businessFinancingDetails.organization.financialReports = void 0;
|
|
285
|
+
}
|
|
286
|
+
if (businessFinancingDetails.organization.statusOfLegalProceeding === "iDontKnow") {
|
|
287
|
+
businessFinancingDetails.organization.statusOfLegalProceeding = "noLegalActionsTaken";
|
|
288
|
+
}
|
|
289
|
+
if (businessFinancingDetails.organization.statusOfLegalProceeding === "iDontKnow" || businessFinancingDetails.organization.statusOfLegalProceeding === "noLegalActionsTaken") {
|
|
290
|
+
businessFinancingDetails.organization.dateOfInitiationOfLegalProceeding = "";
|
|
291
|
+
}
|
|
292
|
+
if (companyData.sameAddressAsRootEntity && rootLegalEntity?.organization?.registeredAddress) {
|
|
293
|
+
businessFinancingDetails.organization.registeredAddress = {
|
|
294
|
+
...rootLegalEntity.organization.registeredAddress
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
if (companyData.isThisAddressTheMainHeadquarters) {
|
|
298
|
+
businessFinancingDetails.organization.principalPlaceOfBusiness = {
|
|
299
|
+
...businessFinancingDetails.organization.registeredAddress
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
if (companyData.doesYourCompanyHaveLEI !== "Yes") {
|
|
303
|
+
delete businessFinancingDetails.organization.globalLegalEntityIdentifier;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
const businessFinancingLegalEntityId = getLegalEntityId(businessFinancingIndex, rootLegalEntity);
|
|
307
|
+
if (businessFinancingLegalEntityId) {
|
|
308
|
+
delete businessFinancingDetails.type;
|
|
309
|
+
businessFinancingDetails.id = businessFinancingLegalEntityId;
|
|
310
|
+
} else {
|
|
311
|
+
delete businessFinancingDetails.id;
|
|
312
|
+
businessFinancingDetails.type = isSoleProprietor ? LegalEntityTypes.SOLE_PROPRIETORSHIP : LegalEntityTypes.ORGANIZATION;
|
|
313
|
+
}
|
|
314
|
+
return businessFinancingDetails;
|
|
315
|
+
};
|
|
316
|
+
const appendBusinessFinancingData = (legalOrganization, businessFinancingData) => {
|
|
317
|
+
if (!legalOrganization || !businessFinancingData) return businessFinancingData;
|
|
318
|
+
const clonedBusinessFinancingData = { ...businessFinancingData };
|
|
319
|
+
let financialReportData = {};
|
|
320
|
+
if (legalOrganization.financialReports) {
|
|
321
|
+
const financialReportsArray = Array.isArray(legalOrganization.financialReports) ? legalOrganization.financialReports : [legalOrganization.financialReports];
|
|
322
|
+
const financialInformationSchema = mapFinancialReportsToFinancialInformation(
|
|
323
|
+
financialReportsArray,
|
|
324
|
+
false
|
|
325
|
+
);
|
|
326
|
+
financialReportData = financialReportsToString(financialInformationSchema);
|
|
327
|
+
if (financialReportData.numberOfEmployees) {
|
|
328
|
+
financialReportData.numberOfEmployees = financialReportData.numberOfEmployees.toString();
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
return {
|
|
332
|
+
...clonedBusinessFinancingData,
|
|
333
|
+
...financialReportData,
|
|
334
|
+
numberOfEmployees: financialReportData.numberOfEmployees ? financialReportData.numberOfEmployees.toString() : void 0,
|
|
335
|
+
doesYourCompanyHaveLEI: legalOrganization.globalLegalEntityIdentifier ? "Yes" : "No",
|
|
336
|
+
isThisAddressTheMainHeadquarters: legalOrganization.principalPlaceOfBusiness ? "Yes" : clonedBusinessFinancingData.isThisAddressTheMainHeadquarters
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
const appendSoleProprietorBusinessFinancingData = (legalArrangement, businessFinancingData) => {
|
|
340
|
+
if (!legalArrangement || !businessFinancingData) return businessFinancingData;
|
|
341
|
+
return {
|
|
342
|
+
...businessFinancingData,
|
|
343
|
+
naceCode: businessFinancingData.naceCode ?? legalArrangement.economicSector,
|
|
344
|
+
legalInformationInsolvency: businessFinancingData.legalInformationInsolvency ?? legalArrangement.statusOfLegalProceeding,
|
|
345
|
+
legalProceedingsDate: businessFinancingData.legalProceedingsDate ?? legalArrangement.dateOfInitiationOfLegalProceeding
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
const handleBusinessFinancingFormSubmission = async (businessFinancingType, details, createFunction, updateFunction, entityId) => {
|
|
349
|
+
if (!details) {
|
|
350
|
+
throw new Error(`Missing details for ${businessFinancingType}`);
|
|
351
|
+
}
|
|
352
|
+
try {
|
|
353
|
+
if (entityId) {
|
|
354
|
+
return await updateFunction({ ...details, id: entityId });
|
|
355
|
+
}
|
|
356
|
+
return await createFunction(details);
|
|
357
|
+
} catch (error) {
|
|
358
|
+
const businessFinancingError = new Error(`Form submission failed for ${businessFinancingType}`);
|
|
359
|
+
businessFinancingError.actualError = error;
|
|
360
|
+
businessFinancingError.businessFinancingType = businessFinancingError;
|
|
361
|
+
throw businessFinancingError;
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
const getCompanySchemaKeys = (country, currentData, schemaKeys) => {
|
|
365
|
+
const fieldsToRemove = [];
|
|
366
|
+
if (!isEeaCountry(country)) {
|
|
367
|
+
fieldsToRemove.push(
|
|
368
|
+
"financialReportingDate",
|
|
369
|
+
"netAssets",
|
|
370
|
+
"annualTurnover",
|
|
371
|
+
"currency",
|
|
372
|
+
"numberOfEmployees"
|
|
373
|
+
);
|
|
374
|
+
}
|
|
375
|
+
if (currentData.isCompanyOwnedByAnotherCompany !== "Yes") {
|
|
376
|
+
fieldsToRemove.push("isParentOwnedByAnotherCompany");
|
|
377
|
+
}
|
|
378
|
+
if (currentData.doesYourCompanyHaveLEI !== "Yes") {
|
|
379
|
+
fieldsToRemove.push("legalEntityIdentifier");
|
|
380
|
+
}
|
|
381
|
+
if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) {
|
|
382
|
+
fieldsToRemove.push("legalProceedingsDate");
|
|
383
|
+
}
|
|
384
|
+
return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
|
|
385
|
+
};
|
|
386
|
+
const getSoleProprietorSchemaKeys = (currentData, schemaKeys) => {
|
|
387
|
+
const fieldsToRemove = [];
|
|
388
|
+
if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) {
|
|
389
|
+
fieldsToRemove.push("legalProceedingsDate");
|
|
390
|
+
}
|
|
391
|
+
return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
|
|
392
|
+
};
|
|
393
|
+
const getParentCompanySchemaKeys = (currentData, schemaKeys) => {
|
|
394
|
+
const fieldsToRemove = [];
|
|
395
|
+
const companyCountry = currentData?.registrationAddress?.country;
|
|
396
|
+
if (!isEeaCountry(companyCountry)) {
|
|
397
|
+
fieldsToRemove.push(
|
|
398
|
+
"financialReportingDate",
|
|
399
|
+
"netAssets",
|
|
400
|
+
"annualTurnover",
|
|
401
|
+
"currency",
|
|
402
|
+
"numberOfEmployees"
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
if (currentData?.sameAddressAsRootEntity) {
|
|
406
|
+
fieldsToRemove.push("registrationAddress");
|
|
407
|
+
}
|
|
408
|
+
if (currentData.doesYourCompanyHaveLEI !== "Yes") {
|
|
409
|
+
fieldsToRemove.push("legalEntityIdentifier");
|
|
410
|
+
}
|
|
411
|
+
if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) {
|
|
412
|
+
fieldsToRemove.push("legalProceedingsDate");
|
|
413
|
+
}
|
|
414
|
+
return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
|
|
415
|
+
};
|
|
416
|
+
const getBusinessFinancingRequiredFields = (country, data) => {
|
|
417
|
+
let requiredFields = void 0;
|
|
418
|
+
if (!data) {
|
|
419
|
+
return requiredFields;
|
|
420
|
+
}
|
|
421
|
+
const { company, soleProprietor, parentCompany = {}, ultimateParentCompany = {} } = data;
|
|
422
|
+
if (soleProprietor) {
|
|
423
|
+
requiredFields = {};
|
|
424
|
+
requiredFields.soleProprietor = getSoleProprietorSchemaKeys(
|
|
425
|
+
soleProprietor,
|
|
426
|
+
soleProprietorSchemaKeys
|
|
427
|
+
);
|
|
428
|
+
delete requiredFields.company;
|
|
429
|
+
return requiredFields;
|
|
430
|
+
}
|
|
431
|
+
if (company) {
|
|
432
|
+
requiredFields = {};
|
|
433
|
+
requiredFields.company = getCompanySchemaKeys(country, company, companySchemaKeys);
|
|
434
|
+
}
|
|
435
|
+
if (company?.isCompanyOwnedByAnotherCompany === "Yes") {
|
|
436
|
+
const parentCompanyRequiredFields = getParentCompanySchemaKeys(
|
|
437
|
+
parentCompany,
|
|
438
|
+
parentCompaniesSchemaKeys
|
|
439
|
+
);
|
|
440
|
+
requiredFields = {
|
|
441
|
+
...requiredFields,
|
|
442
|
+
parentCompany: parentCompanyRequiredFields
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
if (company?.isParentOwnedByAnotherCompany === "Yes") {
|
|
446
|
+
const ultimateParentCompanyRequiredFields = getParentCompanySchemaKeys(
|
|
447
|
+
ultimateParentCompany,
|
|
448
|
+
parentCompaniesSchemaKeys
|
|
449
|
+
);
|
|
450
|
+
requiredFields = {
|
|
451
|
+
...requiredFields,
|
|
452
|
+
ultimateParentCompany: ultimateParentCompanyRequiredFields
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
return requiredFields;
|
|
456
|
+
};
|
|
457
|
+
const getAddressCountryForParentCompany = (parentCompany, leAddress) => {
|
|
458
|
+
return parentCompany?.sameAddressAsRootEntity && leAddress ? leAddress?.country : parentCompany?.registrationAddress?.country;
|
|
459
|
+
};
|
|
460
|
+
const customLabels = {
|
|
461
|
+
company: {
|
|
462
|
+
legalForm: "businessStructure",
|
|
463
|
+
naceCode: "industryAndNaceCode",
|
|
464
|
+
netAssets: "totalAssets",
|
|
465
|
+
annualTurnover: "annualTurnover",
|
|
466
|
+
legalInformationInsolvency: "legalProceedings",
|
|
467
|
+
isCompanyOwnedByAnotherCompany: "hasParentCompany",
|
|
468
|
+
isParentOwnedByAnotherCompany: "hasUltimateParentCompany",
|
|
469
|
+
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
470
|
+
},
|
|
471
|
+
parentCompany: {
|
|
472
|
+
legalForm: "businessStructure",
|
|
473
|
+
naceCode: "industryAndNaceCode",
|
|
474
|
+
netAssets: "totalAssets",
|
|
475
|
+
annualTurnover: "annualTurnover",
|
|
476
|
+
legalInformationInsolvency: "legalProceedings",
|
|
477
|
+
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
478
|
+
},
|
|
479
|
+
ultimateParentCompany: {
|
|
480
|
+
legalForm: "businessStructure",
|
|
481
|
+
naceCode: "industryAndNaceCode",
|
|
482
|
+
netAssets: "totalAssets",
|
|
483
|
+
annualTurnover: "annualTurnover",
|
|
484
|
+
legalInformationInsolvency: "legalProceedings",
|
|
485
|
+
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
486
|
+
},
|
|
487
|
+
soleProprietor: {
|
|
488
|
+
naceCode: "industryAndNaceCode",
|
|
489
|
+
legalInformationInsolvency: "legalProceedings"
|
|
490
|
+
}
|
|
491
|
+
};
|
|
492
|
+
const getTranslatedGender = (t, gender) => {
|
|
493
|
+
if (!gender) return void 0;
|
|
494
|
+
const genderMap = {
|
|
495
|
+
M: "male",
|
|
496
|
+
F: "female",
|
|
497
|
+
U: "preferNotToSay"
|
|
498
|
+
};
|
|
499
|
+
const key = genderMap[gender];
|
|
500
|
+
return key ? t(($) => $[key]) : gender;
|
|
501
|
+
};
|
|
502
|
+
const getTranslatedLegalInsolvency = (t, insolvencyData) => {
|
|
503
|
+
if (!insolvencyData) return void 0;
|
|
504
|
+
return insolvencyData === "noLegalActionsTaken" ? t(($) => $["no"]) : t(($) => $[insolvencyData]);
|
|
505
|
+
};
|
|
506
|
+
const getValidUserLocale = (locale) => {
|
|
507
|
+
try {
|
|
508
|
+
new Intl.NumberFormat(locale);
|
|
509
|
+
return locale;
|
|
510
|
+
} catch (error) {
|
|
511
|
+
console.warn(`Invalid locale '${locale}' provided. Falling back to 'en-US'.`, error);
|
|
512
|
+
return "en-US";
|
|
513
|
+
}
|
|
514
|
+
};
|
|
515
|
+
const getFormattedAmount = (value, currency) => {
|
|
516
|
+
if (!value) return void 0;
|
|
517
|
+
const userLocale = getValidUserLocale(USER_LOCALE);
|
|
518
|
+
const formattedValue = Number(value).toLocaleString(userLocale);
|
|
519
|
+
return `${currency} ${formattedValue}`;
|
|
520
|
+
};
|
|
521
|
+
const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) => {
|
|
522
|
+
const summaryData = cloneObject(data) || {};
|
|
523
|
+
const { company, parentCompany, ultimateParentCompany, soleProprietor } = summaryData;
|
|
524
|
+
if (soleProprietor) {
|
|
525
|
+
soleProprietor.naceCode = soleProprietor.naceCodeLabel;
|
|
526
|
+
soleProprietor.countryOfBirth = soleProprietor.countryOfBirth ? datasetUtils.getCountryName(soleProprietor.countryOfBirth) ?? void 0 : void 0;
|
|
527
|
+
soleProprietor.legalInformationInsolvency = getTranslatedLegalInsolvency(
|
|
528
|
+
t,
|
|
529
|
+
soleProprietor.legalInformationInsolvency
|
|
530
|
+
);
|
|
531
|
+
soleProprietor.legalProceedingsDate = soleProprietor.legalProceedingsDate ? localizeDateString(soleProprietor.legalProceedingsDate, language) : void 0;
|
|
532
|
+
if (soleProprietor.gender) {
|
|
533
|
+
soleProprietor.gender = getTranslatedGender(t, soleProprietor.gender);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
if (company) {
|
|
537
|
+
company.legalForm = company.legalFormLabel;
|
|
538
|
+
company.naceCode = company.naceCodeLabel;
|
|
539
|
+
company.legalEntityIdentifier = company.legalEntityIdentifier ?? "None";
|
|
540
|
+
company.legalInformationInsolvency = getTranslatedLegalInsolvency(
|
|
541
|
+
t,
|
|
542
|
+
company?.legalInformationInsolvency
|
|
543
|
+
);
|
|
544
|
+
company.annualTurnover = getFormattedAmount(company.annualTurnover, company.currency);
|
|
545
|
+
company.netAssets = getFormattedAmount(company.netAssets, company.currency);
|
|
546
|
+
const { legalProceedingsDate, financialReportingDate } = company;
|
|
547
|
+
company.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
|
|
548
|
+
company.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
|
|
549
|
+
}
|
|
550
|
+
if (parentCompany) {
|
|
551
|
+
const {
|
|
552
|
+
legalName,
|
|
553
|
+
legalFormLabel,
|
|
554
|
+
naceCodeLabel,
|
|
555
|
+
country,
|
|
556
|
+
legalEntityIdentifier,
|
|
557
|
+
legalInformationInsolvency,
|
|
558
|
+
annualTurnover,
|
|
559
|
+
currency,
|
|
560
|
+
netAssets,
|
|
561
|
+
legalProceedingsDate,
|
|
562
|
+
financialReportingDate,
|
|
563
|
+
sameAddressAsRootEntity,
|
|
564
|
+
registrationAddress
|
|
565
|
+
} = parentCompany;
|
|
566
|
+
if (legalName) {
|
|
567
|
+
parentCompany.legalForm = legalFormLabel;
|
|
568
|
+
parentCompany.naceCode = naceCodeLabel;
|
|
569
|
+
parentCompany.country = country ? datasetUtils.getCountryName(country) : "";
|
|
570
|
+
if (registrationAddress) {
|
|
571
|
+
parentCompany.registrationAddress = {
|
|
572
|
+
...registrationAddress,
|
|
573
|
+
country: datasetUtils.getCountryName(registrationAddress?.country)
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
parentCompany.legalEntityIdentifier = legalEntityIdentifier ?? "None";
|
|
577
|
+
parentCompany.legalInformationInsolvency = getTranslatedLegalInsolvency(
|
|
578
|
+
t,
|
|
579
|
+
legalInformationInsolvency
|
|
580
|
+
);
|
|
581
|
+
parentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
|
|
582
|
+
parentCompany.netAssets = getFormattedAmount(netAssets, currency);
|
|
583
|
+
parentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
|
|
584
|
+
parentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
|
|
585
|
+
if (sameAddressAsRootEntity) {
|
|
586
|
+
delete parentCompany.country;
|
|
587
|
+
summaryData.parentCompany = {
|
|
588
|
+
...parentCompany,
|
|
589
|
+
registrationAddress: {
|
|
590
|
+
...rootLeAddress,
|
|
591
|
+
country: datasetUtils.getCountryName(rootLeAddress?.country)
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
if (ultimateParentCompany) {
|
|
598
|
+
const {
|
|
599
|
+
legalName,
|
|
600
|
+
legalFormLabel,
|
|
601
|
+
naceCodeLabel,
|
|
602
|
+
country,
|
|
603
|
+
legalEntityIdentifier,
|
|
604
|
+
legalInformationInsolvency,
|
|
605
|
+
annualTurnover,
|
|
606
|
+
currency,
|
|
607
|
+
netAssets,
|
|
608
|
+
legalProceedingsDate,
|
|
609
|
+
financialReportingDate,
|
|
610
|
+
sameAddressAsRootEntity,
|
|
611
|
+
registrationAddress
|
|
612
|
+
} = ultimateParentCompany;
|
|
613
|
+
if (legalName) {
|
|
614
|
+
ultimateParentCompany.legalForm = legalFormLabel;
|
|
615
|
+
ultimateParentCompany.naceCode = naceCodeLabel;
|
|
616
|
+
ultimateParentCompany.country = country ? datasetUtils.getCountryName(country) : "";
|
|
617
|
+
if (registrationAddress) {
|
|
618
|
+
ultimateParentCompany.registrationAddress = {
|
|
619
|
+
...registrationAddress,
|
|
620
|
+
country: datasetUtils.getCountryName(registrationAddress?.country)
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
ultimateParentCompany.legalEntityIdentifier = legalEntityIdentifier ?? "None";
|
|
624
|
+
ultimateParentCompany.legalInformationInsolvency = getTranslatedLegalInsolvency(
|
|
625
|
+
t,
|
|
626
|
+
legalInformationInsolvency
|
|
627
|
+
);
|
|
628
|
+
ultimateParentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
|
|
629
|
+
ultimateParentCompany.netAssets = getFormattedAmount(netAssets, currency);
|
|
630
|
+
ultimateParentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
|
|
631
|
+
ultimateParentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
|
|
632
|
+
if (sameAddressAsRootEntity) {
|
|
633
|
+
delete ultimateParentCompany.country;
|
|
634
|
+
summaryData.ultimateParentCompany = {
|
|
635
|
+
...ultimateParentCompany,
|
|
636
|
+
registrationAddress: {
|
|
637
|
+
...rootLeAddress,
|
|
638
|
+
country: datasetUtils.getCountryName(rootLeAddress?.country)
|
|
639
|
+
}
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
return summaryData;
|
|
645
|
+
};
|
|
646
|
+
const mapLegalEntityToBusinessFinancing = (legalEntity) => {
|
|
647
|
+
if (legalEntity.type === LegalEntityTypes.SOLE_PROPRIETORSHIP) {
|
|
648
|
+
return formatObject(legalEntity, businessFinancingSoleProprietorComponentsKeyMapping);
|
|
649
|
+
}
|
|
650
|
+
if (legalEntity.type === LegalEntityTypes.INDIVIDUAL) {
|
|
651
|
+
const solePropAssociation = legalEntity.entityAssociations?.find(
|
|
652
|
+
(ea) => ea.entityType === LegalEntityTypes.SOLE_PROPRIETORSHIP && ea.associatorId === legalEntity.id
|
|
653
|
+
);
|
|
654
|
+
if (solePropAssociation) {
|
|
655
|
+
const solePropMapped = formatObject(
|
|
656
|
+
legalEntity,
|
|
657
|
+
businessFinancingSoleProprietorComponentsKeyMapping
|
|
658
|
+
);
|
|
659
|
+
return {
|
|
660
|
+
...solePropMapped,
|
|
661
|
+
gender: legalEntity.individual?.gender,
|
|
662
|
+
countryOfBirth: legalEntity.individual?.countryOfBirth
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
return formatObject(legalEntity, businessFinancingComponentsKeyMapping);
|
|
667
|
+
};
|
|
668
|
+
const getNaceCodes = async (baseUrl) => {
|
|
669
|
+
return httpGet({
|
|
670
|
+
baseUrl,
|
|
671
|
+
path: `datasets/naceCodes`
|
|
672
|
+
});
|
|
673
|
+
};
|
|
674
|
+
const useNaceCodes = (options) => {
|
|
675
|
+
const { baseUrl } = useApiContext();
|
|
676
|
+
return useQuery({
|
|
677
|
+
queryKey: ["naceCodes"],
|
|
678
|
+
queryFn: () => getNaceCodes(baseUrl.value),
|
|
679
|
+
...options
|
|
680
|
+
});
|
|
681
|
+
};
|
|
682
|
+
function NaceCodeField({
|
|
683
|
+
name = "naceCode",
|
|
684
|
+
data,
|
|
685
|
+
valid,
|
|
686
|
+
errorMessage,
|
|
687
|
+
label,
|
|
688
|
+
readonly,
|
|
689
|
+
handleChangeFor
|
|
690
|
+
}) {
|
|
691
|
+
const { i18n } = useI18nContext();
|
|
692
|
+
const { data: naceCodesData } = useNaceCodes();
|
|
693
|
+
const handleChangeForRef = useRef(handleChangeFor);
|
|
694
|
+
useEffect(() => {
|
|
695
|
+
handleChangeForRef.current = handleChangeFor;
|
|
696
|
+
}, [handleChangeFor]);
|
|
697
|
+
const handleChangeForNaceCode = (e) => {
|
|
698
|
+
const naceCodeEvent = {
|
|
699
|
+
target: {
|
|
700
|
+
name: "naceCode",
|
|
701
|
+
value: e.target.value
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
handleChangeFor("naceCode")(naceCodeEvent);
|
|
705
|
+
};
|
|
706
|
+
useEffect(() => {
|
|
707
|
+
const selectedLabel = naceCodesData?.find((naceCode) => naceCode.id === data.naceCode)?.name;
|
|
708
|
+
const naceCodeEvent = {
|
|
709
|
+
target: {
|
|
710
|
+
name: "naceCodeLabel",
|
|
711
|
+
value: selectedLabel
|
|
712
|
+
}
|
|
713
|
+
};
|
|
714
|
+
handleChangeForRef.current("naceCodeLabel")(naceCodeEvent);
|
|
715
|
+
}, [data.naceCode, naceCodesData]);
|
|
716
|
+
return /* @__PURE__ */ jsx(
|
|
717
|
+
Field,
|
|
718
|
+
{
|
|
719
|
+
name,
|
|
720
|
+
label: label || i18n.get("industryAndNaceCode"),
|
|
721
|
+
errorMessage,
|
|
722
|
+
isValid: valid.naceCode,
|
|
723
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
724
|
+
Select,
|
|
725
|
+
{
|
|
726
|
+
...childProps,
|
|
727
|
+
name,
|
|
728
|
+
placeholder: i18n.get("selectOne"),
|
|
729
|
+
selected: data.naceCode,
|
|
730
|
+
items: naceCodesData ?? [],
|
|
731
|
+
readonly: readonly && !!data,
|
|
732
|
+
onChange: handleChangeForNaceCode
|
|
733
|
+
}
|
|
734
|
+
)
|
|
735
|
+
}
|
|
736
|
+
);
|
|
737
|
+
}
|
|
738
|
+
const businessFinancingLeiRadio = "adyen-kyc-business-financing-lei-radio";
|
|
739
|
+
const businessFinancingTitle = "adyen-kyc-business-financing-title";
|
|
740
|
+
const businessFinancingBody = "adyen-kyc-business-financing-body";
|
|
741
|
+
const businessFinancingExposureFinancials = "adyen-kyc-business-financing-exposure-financials";
|
|
742
|
+
const businessFinancingStructuredAddress = "adyen-kyc-business-financing-structured-address";
|
|
743
|
+
const styles = {
|
|
744
|
+
businessFinancingLeiRadio,
|
|
745
|
+
businessFinancingTitle,
|
|
746
|
+
businessFinancingBody,
|
|
747
|
+
businessFinancingExposureFinancials,
|
|
748
|
+
businessFinancingStructuredAddress
|
|
749
|
+
};
|
|
750
|
+
const businessInformationFields = [
|
|
751
|
+
"legalForm",
|
|
752
|
+
"naceCode",
|
|
753
|
+
"naceCodeLabel",
|
|
754
|
+
"legalFormLabel",
|
|
755
|
+
"doesYourCompanyHaveLEI",
|
|
756
|
+
"legalEntityIdentifier"
|
|
757
|
+
];
|
|
758
|
+
function BusinessFinancingBusinessInformation(props) {
|
|
759
|
+
const {
|
|
760
|
+
data,
|
|
761
|
+
valid,
|
|
762
|
+
errors,
|
|
763
|
+
country,
|
|
764
|
+
handleFieldChange,
|
|
765
|
+
fieldValidationErrors,
|
|
766
|
+
targetPage,
|
|
767
|
+
sectionHeading,
|
|
768
|
+
hideSectionHeading,
|
|
769
|
+
isSoleProprietor
|
|
770
|
+
} = props;
|
|
771
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
772
|
+
const { t: commonT } = useTranslation("common");
|
|
773
|
+
const formUtils = createFormUtils(props, commonT);
|
|
774
|
+
if (!handleFieldChange) {
|
|
775
|
+
return;
|
|
776
|
+
}
|
|
777
|
+
const isMainCompany = targetPage === BusinessFinancingPages.COMPANY_PAGE;
|
|
778
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
779
|
+
!hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessInformation"]) }),
|
|
780
|
+
!isSoleProprietor && /* @__PURE__ */ jsx(
|
|
781
|
+
LegalFormField,
|
|
782
|
+
{
|
|
783
|
+
name: "legalForm",
|
|
784
|
+
countryCode: country,
|
|
785
|
+
data: {
|
|
786
|
+
legalForm: data?.legalForm
|
|
787
|
+
},
|
|
788
|
+
valid: { legalForm: valid?.legalForm },
|
|
789
|
+
errorMessage: formUtils.getErrorMessage("legalForm", errors, fieldValidationErrors),
|
|
790
|
+
handleChangeFor: handleFieldChange,
|
|
791
|
+
readonly: false,
|
|
792
|
+
label: formUtils.getLabel("legalForm", "businessStructure")
|
|
793
|
+
}
|
|
794
|
+
),
|
|
795
|
+
/* @__PURE__ */ jsx(
|
|
796
|
+
NaceCodeField,
|
|
797
|
+
{
|
|
798
|
+
name: "naceCode",
|
|
799
|
+
data: { naceCode: data?.naceCode },
|
|
800
|
+
valid: { naceCode: valid?.naceCode },
|
|
801
|
+
errorMessage: formUtils.getErrorMessage("naceCode", errors, fieldValidationErrors),
|
|
802
|
+
handleChangeFor: handleFieldChange,
|
|
803
|
+
readonly: false,
|
|
804
|
+
label: formUtils.getLabel("naceCode", "industryAndNaceCode")
|
|
805
|
+
}
|
|
806
|
+
),
|
|
807
|
+
!isSoleProprietor && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
808
|
+
/* @__PURE__ */ jsx(
|
|
809
|
+
Field,
|
|
810
|
+
{
|
|
811
|
+
el: "fieldset",
|
|
812
|
+
name: "doesYourCompanyHaveLEI",
|
|
813
|
+
label: businessFinancingT(
|
|
814
|
+
($) => $[isMainCompany ? "doesYourCompanyHaveLEI" : "doesThisCompanyHaveLEI"]
|
|
815
|
+
),
|
|
816
|
+
helper: /* @__PURE__ */ jsxs(
|
|
817
|
+
Typography,
|
|
818
|
+
{
|
|
819
|
+
el: "div",
|
|
820
|
+
variant: "body",
|
|
821
|
+
color: "secondary",
|
|
822
|
+
className: styles.businessFinancingBody,
|
|
823
|
+
children: [
|
|
824
|
+
businessFinancingT(($) => $["anLEIIsAUniqueCode"]),
|
|
825
|
+
" ",
|
|
826
|
+
/* @__PURE__ */ jsx(Link, { href: "https://search.gleif.org/#/search/", external: true, inline: true, children: businessFinancingT(($) => $["lookUpYourLEI"]) })
|
|
827
|
+
]
|
|
828
|
+
}
|
|
829
|
+
),
|
|
830
|
+
errorMessage: formUtils.getErrorMessage(
|
|
831
|
+
"doesYourCompanyHaveLEI",
|
|
832
|
+
errors,
|
|
833
|
+
fieldValidationErrors
|
|
834
|
+
),
|
|
835
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
836
|
+
RadioGroup,
|
|
837
|
+
{
|
|
838
|
+
...childProps,
|
|
839
|
+
name: "doesYourCompanyHaveLEI",
|
|
840
|
+
items: isMainCompany ? businessFinancingRadioItems : businessFinancingParentRadioItems,
|
|
841
|
+
value: data?.doesYourCompanyHaveLEI,
|
|
842
|
+
disabled: false,
|
|
843
|
+
className: styles.businessFinancingLeiRadio,
|
|
844
|
+
onChange: handleFieldChange("doesYourCompanyHaveLEI"),
|
|
845
|
+
"aria-required": true,
|
|
846
|
+
"aria-invalid": !valid?.doesYourCompanyHaveLEI
|
|
847
|
+
}
|
|
848
|
+
)
|
|
849
|
+
}
|
|
850
|
+
),
|
|
851
|
+
data?.doesYourCompanyHaveLEI === "Yes" && /* @__PURE__ */ jsx(
|
|
852
|
+
Field,
|
|
853
|
+
{
|
|
854
|
+
name: "legalEntityIdentifier",
|
|
855
|
+
label: formUtils.getLabel("legalEntityIdentifier", "legalEntityIdentifier"),
|
|
856
|
+
errorMessage: formUtils.getErrorMessage(
|
|
857
|
+
"legalEntityIdentifier",
|
|
858
|
+
errors,
|
|
859
|
+
fieldValidationErrors
|
|
860
|
+
),
|
|
861
|
+
isValid: valid?.legalEntityIdentifier,
|
|
862
|
+
helper: commonT(($) => $["enterNCharactersWithAMixForExample"], {
|
|
863
|
+
numChars: 20,
|
|
864
|
+
example: "529900T8BM49AURSDO55"
|
|
865
|
+
}),
|
|
866
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
867
|
+
InputText,
|
|
868
|
+
{
|
|
869
|
+
...childProps,
|
|
870
|
+
name: "legalEntityIdentifier",
|
|
871
|
+
value: data?.legalEntityIdentifier,
|
|
872
|
+
readonly: false,
|
|
873
|
+
onInput: handleFieldChange("legalEntityIdentifier", "input"),
|
|
874
|
+
onBlur: handleFieldChange("legalEntityIdentifier", "blur"),
|
|
875
|
+
"aria-required": true,
|
|
876
|
+
"aria-invalid": !valid?.legalEntityIdentifier,
|
|
877
|
+
isValid: valid?.legalEntityIdentifier
|
|
878
|
+
}
|
|
879
|
+
)
|
|
880
|
+
}
|
|
881
|
+
)
|
|
882
|
+
] })
|
|
883
|
+
] });
|
|
884
|
+
}
|
|
885
|
+
const TODAY_DATE$1 = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
886
|
+
const financialInformationFields = [
|
|
887
|
+
"numberOfEmployees",
|
|
888
|
+
"financialReportingDate",
|
|
889
|
+
"legalEntityIdentifier",
|
|
890
|
+
"currency",
|
|
891
|
+
"netAssets",
|
|
892
|
+
"annualTurnover"
|
|
893
|
+
];
|
|
894
|
+
function BusinessFinancingFinancialInformation(props) {
|
|
895
|
+
const { data, valid, errors, country, sectionHeading, handleFieldChange, fieldValidationErrors } = props;
|
|
896
|
+
const { t: businessFinancingT, i18n: i18next } = useTranslation("businessFinancing");
|
|
897
|
+
const { t: commonT } = useTranslation("common");
|
|
898
|
+
const formUtils = createFormUtils(props, commonT);
|
|
899
|
+
const currenciesForCurrCountry = useMemo(() => currencyByCountry[country] ?? [], [country]);
|
|
900
|
+
if (!handleFieldChange) {
|
|
901
|
+
return;
|
|
902
|
+
}
|
|
903
|
+
const financialData = data;
|
|
904
|
+
const financialErrors = errors;
|
|
905
|
+
const isFinancialDataValid = valid;
|
|
906
|
+
const [firstCurrency] = currenciesForCurrCountry;
|
|
907
|
+
const defaultCurrency = firstCurrency ?? "EUR";
|
|
908
|
+
if (currenciesForCurrCountry.length === 1 && data?.currency !== firstCurrency) {
|
|
909
|
+
handleFieldChange("currency")(firstCurrency);
|
|
910
|
+
}
|
|
911
|
+
return /* @__PURE__ */ jsxs("section", { children: [
|
|
912
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessFinancials"]) }),
|
|
913
|
+
/* @__PURE__ */ jsx(
|
|
914
|
+
Field,
|
|
915
|
+
{
|
|
916
|
+
name: "numberOfEmployees",
|
|
917
|
+
label: formUtils.getLabel("numberOfEmployees", "numberOfEmployees"),
|
|
918
|
+
helper: businessFinancingT(($) => $["theNumberOfIndividualsReceivingAWageOrSalary"]),
|
|
919
|
+
errorMessage: formUtils.getErrorMessage("numberOfEmployees", errors, fieldValidationErrors),
|
|
920
|
+
isValid: valid?.numberOfEmployees,
|
|
921
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
922
|
+
InputNumber,
|
|
923
|
+
{
|
|
924
|
+
...childProps,
|
|
925
|
+
"aria-required": true,
|
|
926
|
+
"aria-invalid": !valid?.numberOfEmployees,
|
|
927
|
+
name: "numberOfEmployees",
|
|
928
|
+
min: "0",
|
|
929
|
+
step: "1",
|
|
930
|
+
value: data?.numberOfEmployees,
|
|
931
|
+
onInput: handleFieldChange("numberOfEmployees", "input"),
|
|
932
|
+
onBlur: handleFieldChange("numberOfEmployees", "blur")
|
|
933
|
+
}
|
|
934
|
+
)
|
|
935
|
+
}
|
|
936
|
+
),
|
|
937
|
+
currenciesForCurrCountry?.length > 1 && /* @__PURE__ */ jsx(
|
|
938
|
+
Currency,
|
|
939
|
+
{
|
|
940
|
+
country,
|
|
941
|
+
data: formUtils.getFieldData(financialData, CURRENCY_FIELD),
|
|
942
|
+
errors: formUtils.getFieldErrors(financialErrors, fieldValidationErrors, CURRENCY_FIELD),
|
|
943
|
+
handleChangeFor: handleFieldChange,
|
|
944
|
+
labels: { currency: businessFinancingT(($) => $["financialStatementReportingCurrency"]) },
|
|
945
|
+
readonly: formUtils.isReadOnly("currency"),
|
|
946
|
+
valid: formUtils.getFieldValid(isFinancialDataValid, CURRENCY_FIELD)
|
|
947
|
+
}
|
|
948
|
+
),
|
|
949
|
+
/* @__PURE__ */ jsxs("div", { className: styles.businessFinancingExposureFinancials, children: [
|
|
950
|
+
/* @__PURE__ */ jsx(
|
|
951
|
+
Field,
|
|
952
|
+
{
|
|
953
|
+
name: "netAssets",
|
|
954
|
+
label: formUtils.getLabel("netAssets", "balanceSheetTotal"),
|
|
955
|
+
helper: businessFinancingT(($) => $["theSumOfTotalLiabilities"]),
|
|
956
|
+
errorMessage: formUtils.getErrorMessage("netAssets", errors, fieldValidationErrors),
|
|
957
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
958
|
+
InputCurrency,
|
|
959
|
+
{
|
|
960
|
+
...childProps,
|
|
961
|
+
locale: i18next.language,
|
|
962
|
+
currency: data?.currency ?? defaultCurrency,
|
|
963
|
+
amount: data?.netAssets ? Number(data?.netAssets) : void 0,
|
|
964
|
+
onAmountChanged: handleFieldChange("netAssets")
|
|
965
|
+
}
|
|
966
|
+
)
|
|
967
|
+
}
|
|
968
|
+
),
|
|
969
|
+
/* @__PURE__ */ jsx(
|
|
970
|
+
Field,
|
|
971
|
+
{
|
|
972
|
+
name: "financialReportingDate",
|
|
973
|
+
label: formUtils.getLabel("financialReportingDate", "statementReportingDate"),
|
|
974
|
+
helper: businessFinancingT(($) => $["useTheMoreRecentOfTheReportingDates"]),
|
|
975
|
+
errorMessage: formUtils.getErrorMessage(
|
|
976
|
+
"financialReportingDate",
|
|
977
|
+
errors,
|
|
978
|
+
fieldValidationErrors
|
|
979
|
+
),
|
|
980
|
+
isValid: valid?.financialReportingDate,
|
|
981
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
982
|
+
InputDate,
|
|
983
|
+
{
|
|
984
|
+
...childProps,
|
|
985
|
+
name: "financialReportingDate",
|
|
986
|
+
value: data?.financialReportingDate,
|
|
987
|
+
onInput: handleFieldChange("financialReportingDate", "input"),
|
|
988
|
+
onBlur: handleFieldChange("financialReportingDate", "blur"),
|
|
989
|
+
"aria-required": true,
|
|
990
|
+
"aria-invalid": !valid?.financialReportingDate,
|
|
991
|
+
max: TODAY_DATE$1
|
|
992
|
+
}
|
|
993
|
+
)
|
|
994
|
+
}
|
|
995
|
+
),
|
|
996
|
+
/* @__PURE__ */ jsx(
|
|
997
|
+
Field,
|
|
998
|
+
{
|
|
999
|
+
name: "annualTurnover",
|
|
1000
|
+
label: formUtils.getLabel("annualTurnover", "annualTurnover"),
|
|
1001
|
+
helper: businessFinancingT(($) => $["theAnnualSalesRevenue"]),
|
|
1002
|
+
errorMessage: formUtils.getErrorMessage("annualTurnover", errors, fieldValidationErrors),
|
|
1003
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1004
|
+
InputCurrency,
|
|
1005
|
+
{
|
|
1006
|
+
...childProps,
|
|
1007
|
+
name: "annualTurnover",
|
|
1008
|
+
locale: i18next.language,
|
|
1009
|
+
currency: data?.currency ?? defaultCurrency,
|
|
1010
|
+
amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
|
|
1011
|
+
onAmountChanged: handleFieldChange("annualTurnover")
|
|
1012
|
+
}
|
|
1013
|
+
)
|
|
1014
|
+
}
|
|
1015
|
+
)
|
|
1016
|
+
] })
|
|
1017
|
+
] });
|
|
1018
|
+
}
|
|
1019
|
+
const TODAY_DATE = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
1020
|
+
const legalInformationFields = [
|
|
1021
|
+
"legalInformationInsolvency",
|
|
1022
|
+
"legalProceedingsDate"
|
|
1023
|
+
];
|
|
1024
|
+
function BusinessFinancingLegalInformation(props) {
|
|
1025
|
+
const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
|
|
1026
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1027
|
+
const { t: commonT } = useTranslation("common");
|
|
1028
|
+
const formUtils = createFormUtils(props, commonT);
|
|
1029
|
+
if (!handleFieldChange) {
|
|
1030
|
+
return;
|
|
1031
|
+
}
|
|
1032
|
+
const legalInformationInsolvencyItems = [
|
|
1033
|
+
{ id: "noLegalActionsTaken", name: commonT(($) => $["no"]) },
|
|
1034
|
+
{
|
|
1035
|
+
id: "underJudicialAdministration",
|
|
1036
|
+
name: businessFinancingT(($) => $["yesTheCompanyIsUnderJudicialAdministration"])
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
id: "bankruptcyInsolvency",
|
|
1040
|
+
name: businessFinancingT(($) => $["yesTheCompanyIsFilingForBankruptcy"])
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
id: "otherLegalMeasures",
|
|
1044
|
+
name: businessFinancingT(($) => $["yesTheCompanyIsFacingOtherLegalMeasures"])
|
|
1045
|
+
},
|
|
1046
|
+
{ id: "iDontKnow", name: commonT(($) => $["iDontKnow"]) }
|
|
1047
|
+
];
|
|
1048
|
+
const showLegalProceedingsDateField = data?.legalInformationInsolvency && !["noLegalActionsTaken", "iDontKnow"].includes(data?.legalInformationInsolvency);
|
|
1049
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1050
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["legalInformation"]) }),
|
|
1051
|
+
/* @__PURE__ */ jsx(
|
|
1052
|
+
Field,
|
|
1053
|
+
{
|
|
1054
|
+
name: "legalInformationInsolvency",
|
|
1055
|
+
label: formUtils.getLabel("legalInformationInsolvency", "legalInformationInsolvency"),
|
|
1056
|
+
errorMessage: formUtils.getErrorMessage(
|
|
1057
|
+
"legalInformationInsolvency",
|
|
1058
|
+
errors,
|
|
1059
|
+
fieldValidationErrors
|
|
1060
|
+
),
|
|
1061
|
+
isValid: valid?.legalInformationInsolvency,
|
|
1062
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1063
|
+
Select,
|
|
1064
|
+
{
|
|
1065
|
+
...childProps,
|
|
1066
|
+
onChange: handleFieldChange("legalInformationInsolvency", "blur"),
|
|
1067
|
+
name: "legalInformationInsolvency",
|
|
1068
|
+
placeholder: commonT(($) => $["selectOne"]),
|
|
1069
|
+
selected: data?.legalInformationInsolvency,
|
|
1070
|
+
items: legalInformationInsolvencyItems,
|
|
1071
|
+
"aria-required": true,
|
|
1072
|
+
"aria-invalid": !valid?.legalInformationInsolvency
|
|
1073
|
+
}
|
|
1074
|
+
)
|
|
1075
|
+
}
|
|
1076
|
+
),
|
|
1077
|
+
showLegalProceedingsDateField && /* @__PURE__ */ jsx(
|
|
1078
|
+
Field,
|
|
1079
|
+
{
|
|
1080
|
+
name: "legalProceedingsDate",
|
|
1081
|
+
label: formUtils.getLabel("legalProceedingsDate", "legalProceedingsDate"),
|
|
1082
|
+
errorMessage: formUtils.getErrorMessage(
|
|
1083
|
+
"legalProceedingsDate",
|
|
1084
|
+
errors,
|
|
1085
|
+
fieldValidationErrors
|
|
1086
|
+
),
|
|
1087
|
+
isValid: valid?.legalProceedingsDate,
|
|
1088
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1089
|
+
InputDate,
|
|
1090
|
+
{
|
|
1091
|
+
...childProps,
|
|
1092
|
+
name: "legalProceedingsDate",
|
|
1093
|
+
value: data.legalProceedingsDate,
|
|
1094
|
+
onInput: handleFieldChange("legalProceedingsDate", "input"),
|
|
1095
|
+
onBlur: handleFieldChange("legalProceedingsDate", "blur"),
|
|
1096
|
+
"aria-required": true,
|
|
1097
|
+
"aria-invalid": !valid?.legalProceedingsDate,
|
|
1098
|
+
max: TODAY_DATE
|
|
1099
|
+
}
|
|
1100
|
+
)
|
|
1101
|
+
}
|
|
1102
|
+
)
|
|
1103
|
+
] });
|
|
1104
|
+
}
|
|
1105
|
+
const ownershipStructureFields = [
|
|
1106
|
+
"isCompanyOwnedByAnotherCompany",
|
|
1107
|
+
"isParentOwnedByAnotherCompany"
|
|
1108
|
+
];
|
|
1109
|
+
function BusinessFinancingOwnershipStructure(props) {
|
|
1110
|
+
const { data, valid, errors = {}, legalEntity, fieldValidationErrors, handleFieldChange } = props;
|
|
1111
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1112
|
+
const { t: commonT } = useTranslation("common");
|
|
1113
|
+
const formUtils = createFormUtils(props, commonT);
|
|
1114
|
+
if (!handleFieldChange) {
|
|
1115
|
+
return;
|
|
1116
|
+
}
|
|
1117
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1118
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: businessFinancingT(($) => $["ownershipStructure"]) }),
|
|
1119
|
+
/* @__PURE__ */ jsx(
|
|
1120
|
+
Field,
|
|
1121
|
+
{
|
|
1122
|
+
el: "fieldset",
|
|
1123
|
+
name: "isCompanyOwnedByAnotherCompany",
|
|
1124
|
+
label: businessFinancingT(($) => $["isCompanyOwnedByAnotherCompany"], {
|
|
1125
|
+
company: legalEntity?.organization ? legalEntity.organization.legalName : ""
|
|
1126
|
+
}),
|
|
1127
|
+
errorMessage: formUtils.getErrorMessage(
|
|
1128
|
+
"isCompanyOwnedByAnotherCompany",
|
|
1129
|
+
errors,
|
|
1130
|
+
fieldValidationErrors
|
|
1131
|
+
),
|
|
1132
|
+
helper: /* @__PURE__ */ jsx(
|
|
1133
|
+
Typography,
|
|
1134
|
+
{
|
|
1135
|
+
el: "div",
|
|
1136
|
+
variant: "body",
|
|
1137
|
+
color: "secondary",
|
|
1138
|
+
className: styles.businessFinancingBody,
|
|
1139
|
+
children: businessFinancingT(($) => $["thisMeansYouHaveAParentCompany"])
|
|
1140
|
+
}
|
|
1141
|
+
),
|
|
1142
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1143
|
+
RadioGroup,
|
|
1144
|
+
{
|
|
1145
|
+
...childProps,
|
|
1146
|
+
name: "isCompanyOwnedByAnotherCompany",
|
|
1147
|
+
items: businessFinancingRadioItems,
|
|
1148
|
+
value: data?.isCompanyOwnedByAnotherCompany,
|
|
1149
|
+
className: styles.businessFinancingLeiRadio,
|
|
1150
|
+
disabled: false,
|
|
1151
|
+
onChange: handleFieldChange("isCompanyOwnedByAnotherCompany"),
|
|
1152
|
+
"aria-required": true,
|
|
1153
|
+
"aria-invalid": !valid?.isCompanyOwnedByAnotherCompany
|
|
1154
|
+
}
|
|
1155
|
+
)
|
|
1156
|
+
}
|
|
1157
|
+
),
|
|
1158
|
+
data?.isCompanyOwnedByAnotherCompany === "Yes" && /* @__PURE__ */ jsx(
|
|
1159
|
+
Field,
|
|
1160
|
+
{
|
|
1161
|
+
el: "fieldset",
|
|
1162
|
+
name: "isParentOwnedByAnotherCompany",
|
|
1163
|
+
label: formUtils.getLabel("isParentOwnedByAnotherCompany"),
|
|
1164
|
+
helper: /* @__PURE__ */ jsx(
|
|
1165
|
+
Typography,
|
|
1166
|
+
{
|
|
1167
|
+
el: "div",
|
|
1168
|
+
variant: "body",
|
|
1169
|
+
color: "secondary",
|
|
1170
|
+
className: styles.businessFinancingBody,
|
|
1171
|
+
children: businessFinancingT(($) => $["thisMeansYouHaveAnUltimateParentCompany"])
|
|
1172
|
+
}
|
|
1173
|
+
),
|
|
1174
|
+
errorMessage: formUtils.getErrorMessage(
|
|
1175
|
+
"isParentOwnedByAnotherCompany",
|
|
1176
|
+
errors,
|
|
1177
|
+
fieldValidationErrors
|
|
1178
|
+
),
|
|
1179
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1180
|
+
RadioGroup,
|
|
1181
|
+
{
|
|
1182
|
+
...childProps,
|
|
1183
|
+
name: "isParentOwnedByAnotherCompany",
|
|
1184
|
+
items: businessFinancingRadioItems,
|
|
1185
|
+
value: data.isParentOwnedByAnotherCompany,
|
|
1186
|
+
className: styles.businessFinancingLeiRadio,
|
|
1187
|
+
disabled: false,
|
|
1188
|
+
onChange: handleFieldChange("isParentOwnedByAnotherCompany"),
|
|
1189
|
+
"aria-required": true,
|
|
1190
|
+
"aria-invalid": !valid?.isParentOwnedByAnotherCompany
|
|
1191
|
+
}
|
|
1192
|
+
)
|
|
1193
|
+
}
|
|
1194
|
+
)
|
|
1195
|
+
] });
|
|
1196
|
+
}
|
|
1197
|
+
function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
1198
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1199
|
+
const { t: commonT } = useTranslation("common");
|
|
1200
|
+
const {
|
|
1201
|
+
form: { handleChangeFor, data, setValid }
|
|
1202
|
+
} = useFormContext();
|
|
1203
|
+
const { country, formVerificationErrors, legalEntity, fieldValidationErrors } = props;
|
|
1204
|
+
const formUtils = createFormUtils(props, commonT);
|
|
1205
|
+
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "company", mode);
|
|
1206
|
+
const ownershipStructureProps = getFieldProps(props, ownershipStructureFields);
|
|
1207
|
+
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
1208
|
+
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
1209
|
+
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
1210
|
+
const currenciesForCurrCountry = currencyByCountry[country] ?? [];
|
|
1211
|
+
if (currenciesForCurrCountry?.length === 1) {
|
|
1212
|
+
setValid("currency", true, "company");
|
|
1213
|
+
}
|
|
1214
|
+
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
|
|
1215
|
+
/* @__PURE__ */ jsx(
|
|
1216
|
+
Header,
|
|
1217
|
+
{
|
|
1218
|
+
title: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
1219
|
+
description: businessFinancingT(($) => $["weNeedAFewMoreDetailsAboutYouAndYourBusiness"]),
|
|
1220
|
+
secondary: true
|
|
1221
|
+
}
|
|
1222
|
+
),
|
|
1223
|
+
/* @__PURE__ */ jsx(
|
|
1224
|
+
ErrorPanel,
|
|
1225
|
+
{
|
|
1226
|
+
verificationErrors: formVerificationErrors,
|
|
1227
|
+
validationErrors: fieldValidationErrors,
|
|
1228
|
+
formUtils,
|
|
1229
|
+
id: "ariaErrorField"
|
|
1230
|
+
}
|
|
1231
|
+
),
|
|
1232
|
+
/* @__PURE__ */ jsx(
|
|
1233
|
+
BusinessFinancingBusinessInformation,
|
|
1234
|
+
{
|
|
1235
|
+
...businessInformationProps,
|
|
1236
|
+
handleFieldChange: handleChange,
|
|
1237
|
+
country,
|
|
1238
|
+
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
1239
|
+
sectionHeading: "businessInformation",
|
|
1240
|
+
data: formUtils.getFieldData(data?.company ?? {}, businessInformationFields)
|
|
1241
|
+
}
|
|
1242
|
+
),
|
|
1243
|
+
isEeaCountry(country) && /* @__PURE__ */ jsx(
|
|
1244
|
+
BusinessFinancingFinancialInformation,
|
|
1245
|
+
{
|
|
1246
|
+
...financialInformationProps,
|
|
1247
|
+
handleFieldChange: handleChange,
|
|
1248
|
+
country,
|
|
1249
|
+
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
1250
|
+
data: formUtils.getFieldData(data?.company ?? {}, financialInformationFields)
|
|
1251
|
+
}
|
|
1252
|
+
),
|
|
1253
|
+
/* @__PURE__ */ jsx(
|
|
1254
|
+
BusinessFinancingLegalInformation,
|
|
1255
|
+
{
|
|
1256
|
+
...legalInformationProps,
|
|
1257
|
+
country,
|
|
1258
|
+
handleFieldChange: handleChange,
|
|
1259
|
+
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
1260
|
+
sectionHeading: "legalInformation",
|
|
1261
|
+
data: formUtils.getFieldData(data?.company ?? {}, legalInformationFields)
|
|
1262
|
+
}
|
|
1263
|
+
),
|
|
1264
|
+
/* @__PURE__ */ jsx(
|
|
1265
|
+
BusinessFinancingOwnershipStructure,
|
|
1266
|
+
{
|
|
1267
|
+
...ownershipStructureProps,
|
|
1268
|
+
legalEntity,
|
|
1269
|
+
handleFieldChange: handleChange,
|
|
1270
|
+
data: formUtils.getFieldData(data?.company ?? {}, ownershipStructureFields)
|
|
1271
|
+
}
|
|
1272
|
+
)
|
|
1273
|
+
] });
|
|
1274
|
+
}
|
|
1275
|
+
const basicInformationFields = [
|
|
1276
|
+
"legalName"
|
|
1277
|
+
];
|
|
1278
|
+
function BusinessFinancingBasicCompanyInformation(props) {
|
|
1279
|
+
const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
|
|
1280
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1281
|
+
const { t: commonT } = useTranslation("common");
|
|
1282
|
+
const formUtils = createFormUtils(props, commonT);
|
|
1283
|
+
if (!handleFieldChange) {
|
|
1284
|
+
return;
|
|
1285
|
+
}
|
|
1286
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1287
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["basicCompanyInformation"]) }),
|
|
1288
|
+
/* @__PURE__ */ jsx(
|
|
1289
|
+
Field,
|
|
1290
|
+
{
|
|
1291
|
+
name: "legalName",
|
|
1292
|
+
label: formUtils.getLabel("legalName", "legalName"),
|
|
1293
|
+
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
|
|
1294
|
+
isValid: valid?.legalName,
|
|
1295
|
+
helper: businessFinancingT(($) => $["legalNameIsUsedToIdentifyABusinessWithTheGovernment"]),
|
|
1296
|
+
helperPosition: "below",
|
|
1297
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1298
|
+
InputText,
|
|
1299
|
+
{
|
|
1300
|
+
...childProps,
|
|
1301
|
+
name: "legalName",
|
|
1302
|
+
value: data?.legalName,
|
|
1303
|
+
readonly: false,
|
|
1304
|
+
onInput: handleFieldChange("legalName", "input"),
|
|
1305
|
+
onBlur: handleFieldChange("legalName", "blur"),
|
|
1306
|
+
"aria-required": true,
|
|
1307
|
+
"aria-invalid": !valid?.legalName
|
|
1308
|
+
}
|
|
1309
|
+
)
|
|
1310
|
+
}
|
|
1311
|
+
)
|
|
1312
|
+
] });
|
|
1313
|
+
}
|
|
1314
|
+
const OPTIONAL_ADDRESS_FIELDS = ["otherAddressInformation"];
|
|
1315
|
+
const registeredAddressFields = [
|
|
1316
|
+
"isThisAddressTheMainHeadquarters",
|
|
1317
|
+
"registrationAddress",
|
|
1318
|
+
"sameAddressAsRootEntity"
|
|
1319
|
+
];
|
|
1320
|
+
function BusinessFinancingRegisteredAddress(props) {
|
|
1321
|
+
const {
|
|
1322
|
+
data,
|
|
1323
|
+
valid,
|
|
1324
|
+
errors,
|
|
1325
|
+
fieldValidationErrors,
|
|
1326
|
+
shouldValidate,
|
|
1327
|
+
defaultData,
|
|
1328
|
+
handleFieldChange,
|
|
1329
|
+
formId,
|
|
1330
|
+
legalEntity,
|
|
1331
|
+
sectionHeading
|
|
1332
|
+
} = props;
|
|
1333
|
+
const { t: businessFinancingT, i18n } = useTranslation("businessFinancing");
|
|
1334
|
+
const { t: commonT } = useTranslation("common");
|
|
1335
|
+
const formUtils = createFormUtils(props, commonT);
|
|
1336
|
+
const addressCountry = data?.registrationAddress?.country;
|
|
1337
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
1338
|
+
const addressSchema = useMemo(() => {
|
|
1339
|
+
return getAddressSchemaForCountry(addressCountry).filter((field) => {
|
|
1340
|
+
if (addressCountry) {
|
|
1341
|
+
return !COUNTRIES_WITH_STATES_DATASET.includes(addressCountry) ? field !== "stateOrProvince" : true;
|
|
1342
|
+
}
|
|
1343
|
+
return true;
|
|
1344
|
+
});
|
|
1345
|
+
}, [addressCountry]);
|
|
1346
|
+
if (!handleFieldChange) {
|
|
1347
|
+
return;
|
|
1348
|
+
}
|
|
1349
|
+
const handleRegistrationAddressChange = (state) => {
|
|
1350
|
+
if (!state.data.country) {
|
|
1351
|
+
state.data.country = addressCountry;
|
|
1352
|
+
}
|
|
1353
|
+
handleFieldChange("registrationAddress")(state.data);
|
|
1354
|
+
};
|
|
1355
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1356
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? translateStringOrObject(commonT, sectionHeading) : commonT(($) => $["registeredAddress"]) }),
|
|
1357
|
+
/* @__PURE__ */ jsx(
|
|
1358
|
+
Field,
|
|
1359
|
+
{
|
|
1360
|
+
name: "sameAddressAsRootEntity",
|
|
1361
|
+
errorMessage: errors?.sameAddressAsRootEntity?.errorMessage,
|
|
1362
|
+
isValid: valid?.sameAddressAsRootEntity,
|
|
1363
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1364
|
+
Checkbox,
|
|
1365
|
+
{
|
|
1366
|
+
...childProps,
|
|
1367
|
+
"aria-required": formUtils.isRequiredField("sameAddressAsRootEntity"),
|
|
1368
|
+
"aria-invalid": !valid?.sameAddressAsRootEntity,
|
|
1369
|
+
name: "sameAddressAsRootEntity",
|
|
1370
|
+
label: businessFinancingT(($) => $["sameAddressAsRootEntity"], {
|
|
1371
|
+
rootLegalEntityName: legalEntity?.organization?.legalName ?? ""
|
|
1372
|
+
}),
|
|
1373
|
+
checked: data?.sameAddressAsRootEntity ?? false,
|
|
1374
|
+
onChange: handleFieldChange("sameAddressAsRootEntity")
|
|
1375
|
+
}
|
|
1376
|
+
)
|
|
1377
|
+
}
|
|
1378
|
+
),
|
|
1379
|
+
data?.sameAddressAsRootEntity && legalEntity?.organization?.registeredAddress ? /* @__PURE__ */ jsxs("div", { className: styles.businessFinancingStructuredAddress, children: [
|
|
1380
|
+
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street }),
|
|
1381
|
+
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street2 }),
|
|
1382
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
1383
|
+
legalEntity.organization.registeredAddress.city,
|
|
1384
|
+
" ",
|
|
1385
|
+
legalEntity.organization.registeredAddress.postalCode ? `, ${legalEntity.organization.registeredAddress.postalCode}` : ""
|
|
1386
|
+
] }),
|
|
1387
|
+
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.stateOrProvince }),
|
|
1388
|
+
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.country ? datasetUtils.getCountryName(legalEntity.organization.registeredAddress.country) : "" })
|
|
1389
|
+
] }) : /* @__PURE__ */ jsx(
|
|
1390
|
+
Address,
|
|
1391
|
+
{
|
|
1392
|
+
id: formId,
|
|
1393
|
+
addressType: "registrationAddress",
|
|
1394
|
+
data: { ...defaultData?.registrationAddress, country: addressCountry },
|
|
1395
|
+
labels: addressCountry ? getAddressSchemaLabelsByCountry(addressCountry) : void 0,
|
|
1396
|
+
countryCode: addressCountry,
|
|
1397
|
+
requiredFields: addressSchema,
|
|
1398
|
+
optionalFields: OPTIONAL_ADDRESS_FIELDS,
|
|
1399
|
+
onChange: handleRegistrationAddressChange,
|
|
1400
|
+
shouldValidate
|
|
1401
|
+
}
|
|
1402
|
+
),
|
|
1403
|
+
/* @__PURE__ */ jsx(
|
|
1404
|
+
Field,
|
|
1405
|
+
{
|
|
1406
|
+
el: "fieldset",
|
|
1407
|
+
name: "isThisAddressTheMainHeadquarters",
|
|
1408
|
+
label: businessFinancingT(($) => $["areTheMainHeadquartersAtThisAddress"]),
|
|
1409
|
+
helper: businessFinancingT(($) => $["addressRegisteredWithGovernment"]),
|
|
1410
|
+
errorMessage: formUtils.getErrorMessage(
|
|
1411
|
+
"isThisAddressTheMainHeadquarters",
|
|
1412
|
+
errors,
|
|
1413
|
+
fieldValidationErrors
|
|
1414
|
+
),
|
|
1415
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1416
|
+
RadioGroup,
|
|
1417
|
+
{
|
|
1418
|
+
...childProps,
|
|
1419
|
+
name: "isThisAddressTheMainHeadquarters",
|
|
1420
|
+
items: businessFinancingRadioItems,
|
|
1421
|
+
value: data?.isThisAddressTheMainHeadquarters,
|
|
1422
|
+
className: styles.businessFinancingLeiRadio,
|
|
1423
|
+
disabled: false,
|
|
1424
|
+
onChange: handleFieldChange("isThisAddressTheMainHeadquarters"),
|
|
1425
|
+
"aria-required": true,
|
|
1426
|
+
"aria-invalid": !valid?.isThisAddressTheMainHeadquarters
|
|
1427
|
+
}
|
|
1428
|
+
)
|
|
1429
|
+
}
|
|
1430
|
+
)
|
|
1431
|
+
] });
|
|
1432
|
+
}
|
|
1433
|
+
const parentCompanyFormId$1 = businessFinancingForms.parentCompany.formId;
|
|
1434
|
+
function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
1435
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1436
|
+
const { t: commonT } = useTranslation("common");
|
|
1437
|
+
const {
|
|
1438
|
+
form: { handleChangeFor, data, setValid }
|
|
1439
|
+
} = useFormContext();
|
|
1440
|
+
const { country, formVerificationErrors, fieldValidationErrors, legalEntity } = props;
|
|
1441
|
+
const formUtils = createFormUtils(
|
|
1442
|
+
props,
|
|
1443
|
+
commonT
|
|
1444
|
+
);
|
|
1445
|
+
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "parentCompany", mode);
|
|
1446
|
+
setValid("sameAddressAsRootEntity", true, "parentCompany");
|
|
1447
|
+
const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
|
|
1448
|
+
const registeredAddressProps = getFieldProps(props, registeredAddressFields);
|
|
1449
|
+
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
1450
|
+
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
1451
|
+
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
1452
|
+
const addressCountry = getAddressCountryForParentCompany(
|
|
1453
|
+
data?.parentCompany,
|
|
1454
|
+
legalEntity?.organization?.registeredAddress
|
|
1455
|
+
);
|
|
1456
|
+
const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
|
|
1457
|
+
if (currenciesForCurrCountry?.length === 1) {
|
|
1458
|
+
setValid("currency", true, "parentCompany");
|
|
1459
|
+
}
|
|
1460
|
+
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-parent-company", children: [
|
|
1461
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles.businessFinancingBody, children: commonT(($) => $["parentCompanyInformation"]) }),
|
|
1462
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles.businessFinancingBody, children: businessFinancingT(($) => $["inThePreviousStepOwnedByAParentCompany"]) }),
|
|
1463
|
+
/* @__PURE__ */ jsx(
|
|
1464
|
+
ErrorPanel,
|
|
1465
|
+
{
|
|
1466
|
+
verificationErrors: formVerificationErrors,
|
|
1467
|
+
validationErrors: fieldValidationErrors,
|
|
1468
|
+
formUtils,
|
|
1469
|
+
id: "ariaErrorField"
|
|
1470
|
+
}
|
|
1471
|
+
),
|
|
1472
|
+
/* @__PURE__ */ jsx(
|
|
1473
|
+
BusinessFinancingBasicCompanyInformation,
|
|
1474
|
+
{
|
|
1475
|
+
...basicCompanyInformationProps,
|
|
1476
|
+
sectionHeading: "parentCompanyInformation",
|
|
1477
|
+
handleFieldChange: handleChange,
|
|
1478
|
+
data: formUtils.getFieldData(data?.parentCompany ?? {}, basicInformationFields)
|
|
1479
|
+
}
|
|
1480
|
+
),
|
|
1481
|
+
/* @__PURE__ */ jsx(
|
|
1482
|
+
BusinessFinancingRegisteredAddress,
|
|
1483
|
+
{
|
|
1484
|
+
...registeredAddressProps,
|
|
1485
|
+
formId: parentCompanyFormId$1,
|
|
1486
|
+
sectionHeading: "parentCompanyAddress",
|
|
1487
|
+
defaultData: data?.parentCompany,
|
|
1488
|
+
legalEntity,
|
|
1489
|
+
handleFieldChange: handleChange,
|
|
1490
|
+
data: formUtils.getFieldData(data?.parentCompany ?? {}, registeredAddressFields)
|
|
1491
|
+
}
|
|
1492
|
+
),
|
|
1493
|
+
/* @__PURE__ */ jsx(
|
|
1494
|
+
BusinessFinancingBusinessInformation,
|
|
1495
|
+
{
|
|
1496
|
+
...businessInformationProps,
|
|
1497
|
+
hideSectionHeading: true,
|
|
1498
|
+
country: addressCountry ?? country,
|
|
1499
|
+
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1500
|
+
handleFieldChange: handleChange,
|
|
1501
|
+
data: formUtils.getFieldData(data?.parentCompany ?? {}, businessInformationFields)
|
|
1502
|
+
}
|
|
1503
|
+
),
|
|
1504
|
+
isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(
|
|
1505
|
+
BusinessFinancingFinancialInformation,
|
|
1506
|
+
{
|
|
1507
|
+
...financialInformationProps,
|
|
1508
|
+
country: addressCountry ?? country,
|
|
1509
|
+
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1510
|
+
handleFieldChange: handleChange,
|
|
1511
|
+
data: formUtils.getFieldData(data?.parentCompany ?? {}, financialInformationFields)
|
|
1512
|
+
}
|
|
1513
|
+
),
|
|
1514
|
+
/* @__PURE__ */ jsx(
|
|
1515
|
+
BusinessFinancingLegalInformation,
|
|
1516
|
+
{
|
|
1517
|
+
...legalInformationProps,
|
|
1518
|
+
country: addressCountry ?? country,
|
|
1519
|
+
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1520
|
+
sectionHeading: "legalInformation",
|
|
1521
|
+
handleFieldChange: handleChange,
|
|
1522
|
+
data: formUtils.getFieldData(data?.parentCompany ?? {}, legalInformationFields)
|
|
1523
|
+
}
|
|
1524
|
+
)
|
|
1525
|
+
] });
|
|
1526
|
+
}
|
|
1527
|
+
const soleProprietorPersonalInformationFields = ["gender", "countryOfBirth"];
|
|
1528
|
+
function BusinessFinancingSoleProprietorPersonalInformation(props) {
|
|
1529
|
+
const { data, valid, errors, handleFieldChange, fieldValidationErrors, sectionHeading } = props;
|
|
1530
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1531
|
+
const { t: commonT } = useTranslation("common");
|
|
1532
|
+
const formUtils = createFormUtils(props, commonT);
|
|
1533
|
+
if (!handleFieldChange) {
|
|
1534
|
+
return;
|
|
1535
|
+
}
|
|
1536
|
+
const genderItems = [
|
|
1537
|
+
{ id: "M", name: businessFinancingT(($) => $["male"]) },
|
|
1538
|
+
{ id: "F", name: businessFinancingT(($) => $["female"]) },
|
|
1539
|
+
{ id: "U", name: businessFinancingT(($) => $["preferNotToSay"]) }
|
|
1540
|
+
];
|
|
1541
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1542
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["personalInformation"]) }),
|
|
1543
|
+
/* @__PURE__ */ jsx(
|
|
1544
|
+
CountryField,
|
|
1545
|
+
{
|
|
1546
|
+
data: { country: data?.countryOfBirth },
|
|
1547
|
+
valid: { country: valid?.countryOfBirth },
|
|
1548
|
+
name: "countryOfBirth",
|
|
1549
|
+
errors: {
|
|
1550
|
+
country: formUtils.getErrorMessage("countryOfBirth", errors, fieldValidationErrors)
|
|
1551
|
+
},
|
|
1552
|
+
labels: { country: businessFinancingT(($) => $["countryOfBirth"]) },
|
|
1553
|
+
readonly: formUtils.isReadOnly("countryOfBirth"),
|
|
1554
|
+
handleChangeFor: () => handleFieldChange("countryOfBirth", "input")
|
|
1555
|
+
}
|
|
1556
|
+
),
|
|
1557
|
+
/* @__PURE__ */ jsx(
|
|
1558
|
+
Field,
|
|
1559
|
+
{
|
|
1560
|
+
name: "gender",
|
|
1561
|
+
label: businessFinancingT(($) => $["gender"]),
|
|
1562
|
+
errorMessage: formUtils.getErrorMessage("gender", errors, fieldValidationErrors),
|
|
1563
|
+
isValid: valid?.gender,
|
|
1564
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1565
|
+
Select,
|
|
1566
|
+
{
|
|
1567
|
+
...childProps,
|
|
1568
|
+
onChange: handleFieldChange("gender", "blur"),
|
|
1569
|
+
name: "gender",
|
|
1570
|
+
placeholder: commonT(($) => $["selectOne"]),
|
|
1571
|
+
selected: data?.gender,
|
|
1572
|
+
items: genderItems,
|
|
1573
|
+
"aria-required": true,
|
|
1574
|
+
"aria-invalid": !valid?.gender
|
|
1575
|
+
}
|
|
1576
|
+
)
|
|
1577
|
+
}
|
|
1578
|
+
)
|
|
1579
|
+
] });
|
|
1580
|
+
}
|
|
1581
|
+
function AdditionalFieldsForBusinessFinancingSoleProprietor(props) {
|
|
1582
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1583
|
+
const { t: commonT } = useTranslation("common");
|
|
1584
|
+
const {
|
|
1585
|
+
form: { handleChangeFor, data }
|
|
1586
|
+
} = useFormContext();
|
|
1587
|
+
const { country, formVerificationErrors, fieldValidationErrors } = props;
|
|
1588
|
+
const formUtils = createFormUtils(props, commonT);
|
|
1589
|
+
const handleChange = (fieldName, mode) => handleChangeFor(
|
|
1590
|
+
fieldName,
|
|
1591
|
+
"soleProprietor",
|
|
1592
|
+
mode
|
|
1593
|
+
);
|
|
1594
|
+
const personalInformationProps = getFieldProps(props, soleProprietorPersonalInformationFields);
|
|
1595
|
+
const businessInformationProps = getFieldProps(props, ["naceCode", "naceCodeLabel"]);
|
|
1596
|
+
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
1597
|
+
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
|
|
1598
|
+
/* @__PURE__ */ jsx(
|
|
1599
|
+
Header,
|
|
1600
|
+
{
|
|
1601
|
+
title: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
1602
|
+
description: businessFinancingT(($) => $["weNeedAFewMoreDetailsAboutYouAndYourBusiness"]),
|
|
1603
|
+
secondary: true
|
|
1604
|
+
}
|
|
1605
|
+
),
|
|
1606
|
+
/* @__PURE__ */ jsx(
|
|
1607
|
+
ErrorPanel,
|
|
1608
|
+
{
|
|
1609
|
+
verificationErrors: formVerificationErrors,
|
|
1610
|
+
validationErrors: fieldValidationErrors,
|
|
1611
|
+
formUtils,
|
|
1612
|
+
id: "ariaErrorField"
|
|
1613
|
+
}
|
|
1614
|
+
),
|
|
1615
|
+
/* @__PURE__ */ jsx(
|
|
1616
|
+
BusinessFinancingSoleProprietorPersonalInformation,
|
|
1617
|
+
{
|
|
1618
|
+
...personalInformationProps,
|
|
1619
|
+
handleFieldChange: handleChange,
|
|
1620
|
+
country,
|
|
1621
|
+
targetPage: BusinessFinancingPages.SOLE_PROPRIETOR_PAGE,
|
|
1622
|
+
sectionHeading: "personalInformation",
|
|
1623
|
+
data: formUtils.getFieldData(
|
|
1624
|
+
data?.soleProprietor ?? {},
|
|
1625
|
+
soleProprietorPersonalInformationFields
|
|
1626
|
+
)
|
|
1627
|
+
}
|
|
1628
|
+
),
|
|
1629
|
+
/* @__PURE__ */ jsx(
|
|
1630
|
+
BusinessFinancingBusinessInformation,
|
|
1631
|
+
{
|
|
1632
|
+
...businessInformationProps,
|
|
1633
|
+
handleFieldChange: handleChange,
|
|
1634
|
+
country,
|
|
1635
|
+
targetPage: BusinessFinancingPages.SOLE_PROPRIETOR_PAGE,
|
|
1636
|
+
sectionHeading: "businessInformation",
|
|
1637
|
+
isSoleProprietor: true,
|
|
1638
|
+
data: formUtils.getFieldData(data?.soleProprietor ?? {}, [
|
|
1639
|
+
"naceCode",
|
|
1640
|
+
"naceCodeLabel"
|
|
1641
|
+
])
|
|
1642
|
+
}
|
|
1643
|
+
),
|
|
1644
|
+
/* @__PURE__ */ jsx(
|
|
1645
|
+
BusinessFinancingLegalInformation,
|
|
1646
|
+
{
|
|
1647
|
+
...legalInformationProps,
|
|
1648
|
+
country,
|
|
1649
|
+
handleFieldChange: handleChange,
|
|
1650
|
+
targetPage: BusinessFinancingPages.SOLE_PROPRIETOR_PAGE,
|
|
1651
|
+
sectionHeading: "legalInformation",
|
|
1652
|
+
data: formUtils.getFieldData(data?.soleProprietor ?? {}, legalInformationFields)
|
|
1653
|
+
}
|
|
1654
|
+
)
|
|
1655
|
+
] });
|
|
1656
|
+
}
|
|
1657
|
+
const ultimateParentCompanyFormId$1 = businessFinancingForms.ultimateParentCompany.formId;
|
|
1658
|
+
function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
1659
|
+
const { formVerificationErrors, country, fieldValidationErrors, legalEntity } = props;
|
|
1660
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1661
|
+
const { t: commonT } = useTranslation("common");
|
|
1662
|
+
const formUtils = createFormUtils(
|
|
1663
|
+
props,
|
|
1664
|
+
commonT
|
|
1665
|
+
);
|
|
1666
|
+
const {
|
|
1667
|
+
form: { handleChangeFor, data, setValid }
|
|
1668
|
+
} = useFormContext();
|
|
1669
|
+
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "ultimateParentCompany", mode);
|
|
1670
|
+
setValid("sameAddressAsRootEntity", true, "ultimateParentCompany");
|
|
1671
|
+
const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
|
|
1672
|
+
const registeredAddressProps = getFieldProps(props, registeredAddressFields);
|
|
1673
|
+
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
1674
|
+
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
1675
|
+
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
1676
|
+
const addressCountry = getAddressCountryForParentCompany(
|
|
1677
|
+
data?.ultimateParentCompany,
|
|
1678
|
+
legalEntity?.organization?.registeredAddress
|
|
1679
|
+
);
|
|
1680
|
+
const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
|
|
1681
|
+
if (currenciesForCurrCountry?.length === 1) {
|
|
1682
|
+
setValid("currency", true, "ultimateParentCompany");
|
|
1683
|
+
}
|
|
1684
|
+
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-ultimate-parent-company", children: [
|
|
1685
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles.businessFinancingBody, children: commonT(($) => $["ultimateParentCompanyInformation"]) }),
|
|
1686
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles.businessFinancingBody, children: businessFinancingT(($) => $["inThePreviousStepOwnedByAnUltimateParentCompany"]) }),
|
|
1687
|
+
/* @__PURE__ */ jsx(
|
|
1688
|
+
ErrorPanel,
|
|
1689
|
+
{
|
|
1690
|
+
verificationErrors: formVerificationErrors,
|
|
1691
|
+
validationErrors: fieldValidationErrors,
|
|
1692
|
+
formUtils,
|
|
1693
|
+
id: "ariaErrorField"
|
|
1694
|
+
}
|
|
1695
|
+
),
|
|
1696
|
+
/* @__PURE__ */ jsx(
|
|
1697
|
+
BusinessFinancingBasicCompanyInformation,
|
|
1698
|
+
{
|
|
1699
|
+
...basicCompanyInformationProps,
|
|
1700
|
+
sectionHeading: "ultimateParentCompanyInformation",
|
|
1701
|
+
handleFieldChange: handleChange,
|
|
1702
|
+
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, basicInformationFields)
|
|
1703
|
+
}
|
|
1704
|
+
),
|
|
1705
|
+
/* @__PURE__ */ jsx(
|
|
1706
|
+
BusinessFinancingRegisteredAddress,
|
|
1707
|
+
{
|
|
1708
|
+
...registeredAddressProps,
|
|
1709
|
+
formId: ultimateParentCompanyFormId$1,
|
|
1710
|
+
sectionHeading: "ultimateParentCompanyAddress",
|
|
1711
|
+
defaultData: data?.ultimateParentCompany,
|
|
1712
|
+
handleFieldChange: handleChange,
|
|
1713
|
+
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, registeredAddressFields),
|
|
1714
|
+
legalEntity
|
|
1715
|
+
}
|
|
1716
|
+
),
|
|
1717
|
+
/* @__PURE__ */ jsx(
|
|
1718
|
+
BusinessFinancingBusinessInformation,
|
|
1719
|
+
{
|
|
1720
|
+
...businessInformationProps,
|
|
1721
|
+
hideSectionHeading: true,
|
|
1722
|
+
country: addressCountry ?? country,
|
|
1723
|
+
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1724
|
+
handleFieldChange: handleChange,
|
|
1725
|
+
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, businessInformationFields)
|
|
1726
|
+
}
|
|
1727
|
+
),
|
|
1728
|
+
isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(
|
|
1729
|
+
BusinessFinancingFinancialInformation,
|
|
1730
|
+
{
|
|
1731
|
+
...financialInformationProps,
|
|
1732
|
+
country: addressCountry ?? country,
|
|
1733
|
+
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1734
|
+
handleFieldChange: handleChange,
|
|
1735
|
+
data: formUtils.getFieldData(
|
|
1736
|
+
data?.ultimateParentCompany ?? {},
|
|
1737
|
+
financialInformationFields
|
|
1738
|
+
)
|
|
1739
|
+
}
|
|
1740
|
+
),
|
|
1741
|
+
/* @__PURE__ */ jsx(
|
|
1742
|
+
BusinessFinancingLegalInformation,
|
|
1743
|
+
{
|
|
1744
|
+
...legalInformationProps,
|
|
1745
|
+
country: addressCountry ?? country,
|
|
1746
|
+
sectionHeading: "legalInformation",
|
|
1747
|
+
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1748
|
+
handleFieldChange: handleChange,
|
|
1749
|
+
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, legalInformationFields)
|
|
1750
|
+
}
|
|
1751
|
+
)
|
|
1752
|
+
] });
|
|
1753
|
+
}
|
|
1754
|
+
const getOrgAnalyticsData = (prefix, details) => {
|
|
1755
|
+
const org = details?.organization;
|
|
1756
|
+
const soleProp = details?.soleProprietorship;
|
|
1757
|
+
const entity = org || soleProp;
|
|
1758
|
+
if (!entity) return {};
|
|
1759
|
+
return {
|
|
1760
|
+
[`${prefix}--economicSector`]: entity?.economicSector ?? "",
|
|
1761
|
+
[`${prefix}--legalForm`]: org?.legalForm ?? "",
|
|
1762
|
+
[`${prefix}--statusOfLegalProceeding`]: entity?.statusOfLegalProceeding ?? ""
|
|
1763
|
+
};
|
|
1764
|
+
};
|
|
1765
|
+
const businessFinancingFormsRequiredFields = {
|
|
1766
|
+
soleProprietor: businessFinancingForms.soleProprietor.fields,
|
|
1767
|
+
company: businessFinancingForms.company.fields,
|
|
1768
|
+
parentCompany: businessFinancingForms.parentCompany.fields,
|
|
1769
|
+
ultimateParentCompany: businessFinancingForms.ultimateParentCompany.fields
|
|
1770
|
+
};
|
|
1771
|
+
const parentCompanyFormId = businessFinancingForms.parentCompany.formId;
|
|
1772
|
+
const companyFormId = businessFinancingForms.company.formId;
|
|
1773
|
+
const ultimateParentCompanyFormId = businessFinancingForms.ultimateParentCompany.formId;
|
|
1774
|
+
function BusinessFinancingDropin(props) {
|
|
1775
|
+
const {
|
|
1776
|
+
country,
|
|
1777
|
+
rootLegalEntity,
|
|
1778
|
+
externalOnSubmit,
|
|
1779
|
+
externalOnSubmitLabel,
|
|
1780
|
+
isStandaloneComponent,
|
|
1781
|
+
handleHomeClick
|
|
1782
|
+
} = props;
|
|
1783
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1784
|
+
const { t: commonT, i18n } = useTranslation("common");
|
|
1785
|
+
const userEvents = useAnalyticsContext();
|
|
1786
|
+
const [defaultData, setDefaultData] = useState();
|
|
1787
|
+
useRef(null);
|
|
1788
|
+
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
1789
|
+
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
1790
|
+
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
1791
|
+
const { data: immediateParentCompany, isLoading: immediateParentCompanyIsLoading } = useAssociatedLegalEntity(rootLegalEntity, "immediateParentCompany");
|
|
1792
|
+
const { data: ultimateParentCompany, isLoading: ultimateParentCompanyIsLoading } = useAssociatedLegalEntity(rootLegalEntity, "ultimateParentCompany");
|
|
1793
|
+
const { data: soleProprietor, isLoading: soleProprietorIsLoading } = useAssociatedLegalEntity(
|
|
1794
|
+
rootLegalEntity,
|
|
1795
|
+
"soleProprietorship"
|
|
1796
|
+
);
|
|
1797
|
+
const derivedData = useMemo(() => {
|
|
1798
|
+
if (immediateParentCompanyIsLoading || ultimateParentCompanyIsLoading || soleProprietorIsLoading)
|
|
1799
|
+
return void 0;
|
|
1800
|
+
const isSoleProprietor = hasSolePropInLegalEntity(rootLegalEntity);
|
|
1801
|
+
const dataFromResponse = {};
|
|
1802
|
+
if (isSoleProprietor && soleProprietor) {
|
|
1803
|
+
dataFromResponse.soleProprietor = mapLegalEntityToBusinessFinancing(
|
|
1804
|
+
rootLegalEntity
|
|
1805
|
+
);
|
|
1806
|
+
dataFromResponse.soleProprietor = appendSoleProprietorBusinessFinancingData(
|
|
1807
|
+
soleProprietor.soleProprietorship,
|
|
1808
|
+
dataFromResponse.soleProprietor
|
|
1809
|
+
);
|
|
1810
|
+
} else if (rootLegalEntity.type === LegalEntityTypes.ORGANIZATION) {
|
|
1811
|
+
dataFromResponse.company = mapLegalEntityToBusinessFinancing(
|
|
1812
|
+
rootLegalEntity
|
|
1813
|
+
);
|
|
1814
|
+
dataFromResponse.company = appendBusinessFinancingData(
|
|
1815
|
+
rootLegalEntity.organization,
|
|
1816
|
+
dataFromResponse.company
|
|
1817
|
+
);
|
|
1818
|
+
dataFromResponse.company.isCompanyOwnedByAnotherCompany = "No";
|
|
1819
|
+
dataFromResponse.company.isParentOwnedByAnotherCompany = "No";
|
|
1820
|
+
if (immediateParentCompany) {
|
|
1821
|
+
dataFromResponse.parentCompany = mapLegalEntityToBusinessFinancing(
|
|
1822
|
+
immediateParentCompany
|
|
1823
|
+
);
|
|
1824
|
+
dataFromResponse.parentCompany = appendBusinessFinancingData(
|
|
1825
|
+
immediateParentCompany.organization,
|
|
1826
|
+
dataFromResponse.parentCompany
|
|
1827
|
+
);
|
|
1828
|
+
dataFromResponse.company.isCompanyOwnedByAnotherCompany = "Yes";
|
|
1829
|
+
}
|
|
1830
|
+
if (ultimateParentCompany) {
|
|
1831
|
+
dataFromResponse.ultimateParentCompany = mapLegalEntityToBusinessFinancing(
|
|
1832
|
+
ultimateParentCompany
|
|
1833
|
+
);
|
|
1834
|
+
dataFromResponse.ultimateParentCompany = appendBusinessFinancingData(
|
|
1835
|
+
ultimateParentCompany.organization,
|
|
1836
|
+
dataFromResponse.ultimateParentCompany
|
|
1837
|
+
);
|
|
1838
|
+
dataFromResponse.company.isParentOwnedByAnotherCompany = "Yes";
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
return dataFromResponse;
|
|
1842
|
+
}, [
|
|
1843
|
+
immediateParentCompanyIsLoading,
|
|
1844
|
+
ultimateParentCompanyIsLoading,
|
|
1845
|
+
soleProprietorIsLoading,
|
|
1846
|
+
rootLegalEntity,
|
|
1847
|
+
immediateParentCompany,
|
|
1848
|
+
ultimateParentCompany,
|
|
1849
|
+
soleProprietor
|
|
1850
|
+
]);
|
|
1851
|
+
useEffect(() => {
|
|
1852
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
1853
|
+
actionType: "start"
|
|
1854
|
+
});
|
|
1855
|
+
}, [userEvents]);
|
|
1856
|
+
useEffect(() => {
|
|
1857
|
+
if (derivedData) {
|
|
1858
|
+
setDefaultData({ ...derivedData });
|
|
1859
|
+
}
|
|
1860
|
+
}, [derivedData]);
|
|
1861
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
1862
|
+
const [problems, setProblems] = useState();
|
|
1863
|
+
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
1864
|
+
const [showEndState, setShowEndState] = useState(false);
|
|
1865
|
+
const [businessFinancingRequiredForms, setBusinessFinancingRequiredForms] = useState(businessFinancingForms);
|
|
1866
|
+
const { showToast } = useToastContext();
|
|
1867
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
1868
|
+
const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
|
|
1869
|
+
const onSubmit = async () => {
|
|
1870
|
+
setLoadingStatus("loading");
|
|
1871
|
+
if (!umfData) {
|
|
1872
|
+
return;
|
|
1873
|
+
}
|
|
1874
|
+
const isSoleProprietor = hasSolePropInLegalEntity(rootLegalEntity);
|
|
1875
|
+
const mainEntityDetails = !isSoleProprietor ? prepareBusinessFinancingSubmitData(
|
|
1876
|
+
BusinessFinancingIndices.COMPANY,
|
|
1877
|
+
umfData,
|
|
1878
|
+
rootLegalEntity
|
|
1879
|
+
) : null;
|
|
1880
|
+
const soleProprietorPayloads = isSoleProprietor ? prepareSoleProprietorBusinessFinancingSubmitData(umfData, rootLegalEntity, soleProprietor) : null;
|
|
1881
|
+
const parentCompanyBusinessFinancingDetails = !isSoleProprietor ? prepareBusinessFinancingSubmitData(
|
|
1882
|
+
BusinessFinancingIndices.PARENT_COMPANY,
|
|
1883
|
+
umfData,
|
|
1884
|
+
rootLegalEntity
|
|
1885
|
+
) : null;
|
|
1886
|
+
const ultimateParentCompanyBusinessFinancingDetails = !isSoleProprietor ? prepareBusinessFinancingSubmitData(
|
|
1887
|
+
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1888
|
+
umfData,
|
|
1889
|
+
rootLegalEntity
|
|
1890
|
+
) : null;
|
|
1891
|
+
if (isSoleProprietor) {
|
|
1892
|
+
if (!soleProprietorPayloads || !rootLegalEntity || !soleProprietor?.id) {
|
|
1893
|
+
showToast({
|
|
1894
|
+
label: businessFinancingT(($) => $["missingCompanyDetails"]),
|
|
1895
|
+
variant: "error"
|
|
1896
|
+
});
|
|
1897
|
+
return;
|
|
1898
|
+
}
|
|
1899
|
+
try {
|
|
1900
|
+
await handleBusinessFinancingFormSubmission(
|
|
1901
|
+
BusinessFinancingIndices.SOLE_PROPRIETOR,
|
|
1902
|
+
soleProprietorPayloads.individualPayload,
|
|
1903
|
+
createLegalEntity,
|
|
1904
|
+
updateLegalEntity,
|
|
1905
|
+
rootLegalEntity.id
|
|
1906
|
+
);
|
|
1907
|
+
const solePropResponse = await handleBusinessFinancingFormSubmission(
|
|
1908
|
+
BusinessFinancingIndices.SOLE_PROPRIETOR,
|
|
1909
|
+
soleProprietorPayloads.solePropPayload,
|
|
1910
|
+
createLegalEntity,
|
|
1911
|
+
updateLegalEntity,
|
|
1912
|
+
soleProprietor.id
|
|
1913
|
+
);
|
|
1914
|
+
const eventsAdditionalData = {
|
|
1915
|
+
...getOrgAnalyticsData("SoleProprietor", solePropResponse)
|
|
1916
|
+
};
|
|
1917
|
+
userEvents.addTaskEvent("Success", {
|
|
1918
|
+
actionType: "submit",
|
|
1919
|
+
returnValue: [BusinessFinancingIndices.SOLE_PROPRIETOR],
|
|
1920
|
+
additionalData: eventsAdditionalData
|
|
1921
|
+
});
|
|
1922
|
+
await invalidateRootLegalEntity();
|
|
1923
|
+
if (showBusinessFinancingFirst || isStandaloneComponent) {
|
|
1924
|
+
setShowEndState(true);
|
|
1925
|
+
} else {
|
|
1926
|
+
externalOnSubmit?.({ ...umfData });
|
|
1927
|
+
}
|
|
1928
|
+
setProblems({});
|
|
1929
|
+
} catch (e) {
|
|
1930
|
+
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
1931
|
+
handleSubmissionError(e, BusinessFinancingIndices.SOLE_PROPRIETOR);
|
|
1932
|
+
} finally {
|
|
1933
|
+
setLoadingStatus("success");
|
|
1934
|
+
}
|
|
1935
|
+
} else {
|
|
1936
|
+
if (!mainEntityDetails || !rootLegalEntity) {
|
|
1937
|
+
showToast({
|
|
1938
|
+
label: businessFinancingT(($) => $["missingCompanyDetails"]),
|
|
1939
|
+
variant: "error"
|
|
1940
|
+
});
|
|
1941
|
+
return;
|
|
1942
|
+
}
|
|
1943
|
+
let parentCompanyFailed = false;
|
|
1944
|
+
let ultimateParentCompanyFailed = false;
|
|
1945
|
+
try {
|
|
1946
|
+
const promises = [];
|
|
1947
|
+
if (parentCompanyBusinessFinancingDetails) {
|
|
1948
|
+
const parentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1949
|
+
BusinessFinancingIndices.PARENT_COMPANY,
|
|
1950
|
+
parentCompanyBusinessFinancingDetails,
|
|
1951
|
+
createLegalEntity,
|
|
1952
|
+
updateLegalEntity,
|
|
1953
|
+
parentCompanyBusinessFinancingDetails?.id
|
|
1954
|
+
);
|
|
1955
|
+
promises.push(parentCompanyPromise);
|
|
1956
|
+
}
|
|
1957
|
+
if (ultimateParentCompanyBusinessFinancingDetails) {
|
|
1958
|
+
const ultimateParentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1959
|
+
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1960
|
+
ultimateParentCompanyBusinessFinancingDetails,
|
|
1961
|
+
createLegalEntity,
|
|
1962
|
+
updateLegalEntity,
|
|
1963
|
+
ultimateParentCompanyBusinessFinancingDetails?.id
|
|
1964
|
+
);
|
|
1965
|
+
promises.push(ultimateParentCompanyPromise);
|
|
1966
|
+
}
|
|
1967
|
+
const results = await Promise.allSettled(promises);
|
|
1968
|
+
const previousEntityAssociations = rootLegalEntity.entityAssociations ? rootLegalEntity.entityAssociations.filter(
|
|
1969
|
+
(entityAssociation) => entityAssociation.type !== "immediateParentCompany" && entityAssociation.type !== "ultimateParentCompany"
|
|
1970
|
+
) : [];
|
|
1971
|
+
const businessFinancingEntityAssociations = [
|
|
1972
|
+
...previousEntityAssociations
|
|
1973
|
+
];
|
|
1974
|
+
const entitiesToTrack = [BusinessFinancingIndices.COMPANY];
|
|
1975
|
+
results.forEach((result, index) => {
|
|
1976
|
+
const businessFinancingType = index === 0 ? BusinessFinancingIndices.PARENT_COMPANY : BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY;
|
|
1977
|
+
if (result.status === "fulfilled") {
|
|
1978
|
+
const response = result.value;
|
|
1979
|
+
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1980
|
+
businessFinancingEntityAssociations.push({
|
|
1981
|
+
type: "immediateParentCompany",
|
|
1982
|
+
legalEntityId: response.id,
|
|
1983
|
+
associatorId: mainEntityDetails.id
|
|
1984
|
+
});
|
|
1985
|
+
entitiesToTrack.push(BusinessFinancingIndices.PARENT_COMPANY);
|
|
1986
|
+
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1987
|
+
businessFinancingEntityAssociations.push({
|
|
1988
|
+
type: "ultimateParentCompany",
|
|
1989
|
+
legalEntityId: response.id,
|
|
1990
|
+
associatorId: mainEntityDetails.id
|
|
1991
|
+
});
|
|
1992
|
+
entitiesToTrack.push(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY);
|
|
1993
|
+
}
|
|
1994
|
+
} else {
|
|
1995
|
+
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1996
|
+
parentCompanyFailed = true;
|
|
1997
|
+
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1998
|
+
ultimateParentCompanyFailed = true;
|
|
1999
|
+
}
|
|
2000
|
+
handleSubmissionError(result.reason, businessFinancingType);
|
|
2001
|
+
}
|
|
2002
|
+
});
|
|
2003
|
+
if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
|
|
2004
|
+
mainEntityDetails.entityAssociations = [...businessFinancingEntityAssociations];
|
|
2005
|
+
const eventsAdditionalData = {
|
|
2006
|
+
...getOrgAnalyticsData("Business", mainEntityDetails),
|
|
2007
|
+
...getOrgAnalyticsData("ParentCompany", parentCompanyBusinessFinancingDetails),
|
|
2008
|
+
...getOrgAnalyticsData(
|
|
2009
|
+
"UltimateParentCompany",
|
|
2010
|
+
ultimateParentCompanyBusinessFinancingDetails
|
|
2011
|
+
)
|
|
2012
|
+
};
|
|
2013
|
+
try {
|
|
2014
|
+
await handleBusinessFinancingFormSubmission(
|
|
2015
|
+
BusinessFinancingIndices.COMPANY,
|
|
2016
|
+
mainEntityDetails,
|
|
2017
|
+
createLegalEntity,
|
|
2018
|
+
updateLegalEntity,
|
|
2019
|
+
mainEntityDetails?.id
|
|
2020
|
+
);
|
|
2021
|
+
userEvents.addTaskEvent("Success", {
|
|
2022
|
+
actionType: "submit",
|
|
2023
|
+
returnValue: entitiesToTrack,
|
|
2024
|
+
additionalData: eventsAdditionalData
|
|
2025
|
+
});
|
|
2026
|
+
await invalidateRootLegalEntity();
|
|
2027
|
+
if (showBusinessFinancingFirst || isStandaloneComponent) {
|
|
2028
|
+
setShowEndState(true);
|
|
2029
|
+
} else {
|
|
2030
|
+
externalOnSubmit?.({ ...umfData });
|
|
2031
|
+
}
|
|
2032
|
+
} catch (e) {
|
|
2033
|
+
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
2034
|
+
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
2035
|
+
}
|
|
2036
|
+
setProblems({});
|
|
2037
|
+
}
|
|
2038
|
+
} catch (e) {
|
|
2039
|
+
if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
|
|
2040
|
+
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
2041
|
+
}
|
|
2042
|
+
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
2043
|
+
} finally {
|
|
2044
|
+
setLoadingStatus("success");
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
};
|
|
2048
|
+
const handleSubmissionError = (error, businessFinancingType) => {
|
|
2049
|
+
const keyMapping = businessFinancingType === BusinessFinancingIndices.SOLE_PROPRIETOR ? {
|
|
2050
|
+
...businessFinancingIndividualApiKeyMapping,
|
|
2051
|
+
...businessFinancingSoleProprietorApiKeyMapping
|
|
2052
|
+
} : businessFinancingApiKeyMapping;
|
|
2053
|
+
if (isValidationError(error.actualError)) {
|
|
2054
|
+
const validationErrors = processValidationErrors(error.actualError, void 0, keyMapping);
|
|
2055
|
+
setProblems((prevProblems) => ({
|
|
2056
|
+
...prevProblems,
|
|
2057
|
+
validationErrors: {
|
|
2058
|
+
...prevProblems?.validationErrors,
|
|
2059
|
+
[businessFinancingType]: validationErrors?.[businessFinancingType] ?? {}
|
|
2060
|
+
}
|
|
2061
|
+
}));
|
|
2062
|
+
} else if (isMaintenanceModeError(error)) {
|
|
2063
|
+
showToast({
|
|
2064
|
+
label: commonT(($) => $["maintenanceModeMessage"]),
|
|
2065
|
+
variant: "error",
|
|
2066
|
+
duration: "indefinite"
|
|
2067
|
+
});
|
|
2068
|
+
} else {
|
|
2069
|
+
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
2070
|
+
}
|
|
2071
|
+
};
|
|
2072
|
+
const omittedSummaryKeys = [
|
|
2073
|
+
"naceCodeLabel",
|
|
2074
|
+
"legalFormLabel",
|
|
2075
|
+
"currency",
|
|
2076
|
+
"doesYourCompanyHaveLEI",
|
|
2077
|
+
"sameAddressAsRootEntity"
|
|
2078
|
+
];
|
|
2079
|
+
const [requiredFields, setRequiredFields] = useState(void 0);
|
|
2080
|
+
const form = useMultiForm({
|
|
2081
|
+
requiredFields,
|
|
2082
|
+
defaultData: derivedData,
|
|
2083
|
+
rules: businessFinancingMultiformRules
|
|
2084
|
+
});
|
|
2085
|
+
const { data: umfData = derivedData, isValid, errors, valid } = form;
|
|
2086
|
+
useEffect(() => {
|
|
2087
|
+
let updateForms = {};
|
|
2088
|
+
if (umfData?.soleProprietor) {
|
|
2089
|
+
updateForms = { soleProprietor: { ...businessFinancingForms.soleProprietor } };
|
|
2090
|
+
} else {
|
|
2091
|
+
updateForms = { company: { ...businessFinancingForms.company } };
|
|
2092
|
+
const showParentCompany = umfData?.company?.isCompanyOwnedByAnotherCompany === "Yes";
|
|
2093
|
+
const showUltimateParentCompany = umfData?.company?.isParentOwnedByAnotherCompany === "Yes";
|
|
2094
|
+
if (showParentCompany) {
|
|
2095
|
+
updateForms = { ...updateForms, parentCompany: businessFinancingForms.parentCompany };
|
|
2096
|
+
}
|
|
2097
|
+
if (showParentCompany && showUltimateParentCompany) {
|
|
2098
|
+
updateForms = {
|
|
2099
|
+
...updateForms,
|
|
2100
|
+
ultimateParentCompany: businessFinancingForms.ultimateParentCompany
|
|
2101
|
+
};
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
setBusinessFinancingRequiredForms(updateForms);
|
|
2105
|
+
}, [
|
|
2106
|
+
umfData?.soleProprietor,
|
|
2107
|
+
umfData?.company?.isCompanyOwnedByAnotherCompany,
|
|
2108
|
+
umfData?.company?.isParentOwnedByAnotherCompany
|
|
2109
|
+
]);
|
|
2110
|
+
useEffect(() => {
|
|
2111
|
+
const reqs = getBusinessFinancingRequiredFields(country, umfData);
|
|
2112
|
+
setRequiredFields(reqs);
|
|
2113
|
+
}, [umfData]);
|
|
2114
|
+
const forms = useMemo(() => {
|
|
2115
|
+
const requiredForms = getRequiredForms(
|
|
2116
|
+
businessFinancingRequiredForms,
|
|
2117
|
+
businessFinancingFormsRequiredFields,
|
|
2118
|
+
{}
|
|
2119
|
+
);
|
|
2120
|
+
return addValidityToForms(requiredForms, isValid, problems);
|
|
2121
|
+
}, [businessFinancingRequiredForms, isValid, businessFinancingFormsRequiredFields, problems]);
|
|
2122
|
+
const {
|
|
2123
|
+
handleNextClick,
|
|
2124
|
+
handleBackClick,
|
|
2125
|
+
activeForm,
|
|
2126
|
+
gotoFormByFormIndex,
|
|
2127
|
+
steps,
|
|
2128
|
+
shouldValidate
|
|
2129
|
+
} = useFormComposer({
|
|
2130
|
+
problems,
|
|
2131
|
+
forms,
|
|
2132
|
+
onSubmit
|
|
2133
|
+
});
|
|
2134
|
+
const renderActiveForm = (selectedForm) => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-wrapper", children: [
|
|
2135
|
+
selectedForm.formId === "soleProprietor" && /* @__PURE__ */ jsx(
|
|
2136
|
+
AdditionalFieldsForBusinessFinancingSoleProprietor,
|
|
2137
|
+
{
|
|
2138
|
+
data: defaultData?.soleProprietor,
|
|
2139
|
+
legalEntity: rootLegalEntity,
|
|
2140
|
+
heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
2141
|
+
id: selectedForm.formId,
|
|
2142
|
+
country,
|
|
2143
|
+
shouldValidate,
|
|
2144
|
+
fieldValidationErrors: problems?.validationErrors?.[selectedForm?.formId],
|
|
2145
|
+
formVerificationErrors: problems?.verificationErrors?.[selectedForm?.formId],
|
|
2146
|
+
errors: errors?.soleProprietor,
|
|
2147
|
+
valid: valid?.soleProprietor
|
|
2148
|
+
}
|
|
2149
|
+
),
|
|
2150
|
+
selectedForm.formId === companyFormId && /* @__PURE__ */ jsx(
|
|
2151
|
+
AdditionalFieldsForBusinessFinancingCompany,
|
|
2152
|
+
{
|
|
2153
|
+
data: defaultData?.company,
|
|
2154
|
+
legalEntity: rootLegalEntity,
|
|
2155
|
+
heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
2156
|
+
id: companyFormId,
|
|
2157
|
+
country,
|
|
2158
|
+
shouldValidate,
|
|
2159
|
+
fieldValidationErrors: problems?.validationErrors?.[selectedForm?.formId],
|
|
2160
|
+
formVerificationErrors: problems?.verificationErrors?.[selectedForm?.formId],
|
|
2161
|
+
errors: errors?.company,
|
|
2162
|
+
valid: valid?.company
|
|
2163
|
+
}
|
|
2164
|
+
),
|
|
2165
|
+
selectedForm.formId === parentCompanyFormId && /* @__PURE__ */ jsx(
|
|
2166
|
+
AdditionalFieldsForBusinessFinancingParentCompany,
|
|
2167
|
+
{
|
|
2168
|
+
data: defaultData?.parentCompany,
|
|
2169
|
+
heading: commonT(($) => $["parentCompanyInformation"]),
|
|
2170
|
+
id: companyFormId,
|
|
2171
|
+
country,
|
|
2172
|
+
shouldValidate,
|
|
2173
|
+
errors: errors?.parentCompany,
|
|
2174
|
+
legalEntity: rootLegalEntity
|
|
2175
|
+
}
|
|
2176
|
+
),
|
|
2177
|
+
selectedForm.formId === ultimateParentCompanyFormId && /* @__PURE__ */ jsx(
|
|
2178
|
+
AdditionalFieldsForBusinessFinancingUltimateParentCompany,
|
|
2179
|
+
{
|
|
2180
|
+
data: defaultData?.ultimateParentCompany,
|
|
2181
|
+
heading: commonT(($) => $["ultimateParentCompanyInformation"]),
|
|
2182
|
+
id: companyFormId,
|
|
2183
|
+
country,
|
|
2184
|
+
shouldValidate,
|
|
2185
|
+
errors: errors?.ultimateParentCompany,
|
|
2186
|
+
legalEntity: rootLegalEntity
|
|
2187
|
+
}
|
|
2188
|
+
)
|
|
2189
|
+
] });
|
|
2190
|
+
if (!defaultData?.company && !defaultData?.soleProprietor) {
|
|
2191
|
+
return /* @__PURE__ */ jsx(Loader, {});
|
|
2192
|
+
}
|
|
2193
|
+
return showEndState ? /* @__PURE__ */ jsx(
|
|
2194
|
+
EndStateLayout,
|
|
2195
|
+
{
|
|
2196
|
+
title: businessFinancingT(($) => $["submissionReceived"]),
|
|
2197
|
+
description: businessFinancingT(($) => $["theInformationProvidedIsBeingReviewed"]),
|
|
2198
|
+
action: externalOnSubmit && !showBusinessFinancingFirst ? /* @__PURE__ */ jsx(Button, { onClick: () => externalOnSubmit?.({ ...umfData }), children: externalOnSubmitLabel || commonT(($) => $["finish"]) }) : void 0
|
|
2199
|
+
}
|
|
2200
|
+
) : /* @__PURE__ */ jsx(FormContextProvider, { form, children: /* @__PURE__ */ jsx(
|
|
2201
|
+
FormFlow,
|
|
2202
|
+
{
|
|
2203
|
+
summary: {
|
|
2204
|
+
data: formatDataForSummary(
|
|
2205
|
+
i18n.language,
|
|
2206
|
+
businessFinancingT,
|
|
2207
|
+
datasetUtils,
|
|
2208
|
+
umfData,
|
|
2209
|
+
rootLegalEntity?.organization?.registeredAddress
|
|
2210
|
+
),
|
|
2211
|
+
omitted: {
|
|
2212
|
+
keys: omittedSummaryKeys
|
|
2213
|
+
},
|
|
2214
|
+
problems,
|
|
2215
|
+
labels: customLabels
|
|
2216
|
+
},
|
|
2217
|
+
currentStep: steps.current,
|
|
2218
|
+
disableNextButton: !activeForm.isValid,
|
|
2219
|
+
forms,
|
|
2220
|
+
activeForm,
|
|
2221
|
+
gotoFormByFormIndex,
|
|
2222
|
+
handleBackClick,
|
|
2223
|
+
handleCancelClick: handleHomeClick,
|
|
2224
|
+
handleNextClick,
|
|
2225
|
+
loadingStatus,
|
|
2226
|
+
totalSteps: steps.total,
|
|
2227
|
+
children: /* @__PURE__ */ jsx("div", { children: renderActiveForm(
|
|
2228
|
+
activeForm || (defaultData?.soleProprietor ? businessFinancingForms.soleProprietor : businessFinancingForms.company)
|
|
2229
|
+
) })
|
|
2230
|
+
}
|
|
2231
|
+
) });
|
|
2232
|
+
}
|
|
2233
|
+
export {
|
|
2234
|
+
BusinessFinancingDropin as B
|
|
2235
|
+
};
|