@adyen/kyc-components 4.0.1 → 4.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -31
- package/dist/4-people-BtDi7O9A.js +24 -0
- package/dist/AcceptTermsOfServiceComponent-DMAt4BdI.js +650 -0
- package/dist/Accordion-Bvg0x3Mz.js +88 -0
- package/dist/AccountSetupRejected-DkdcpmK6.js +26 -0
- package/dist/ActionBar-AKKiAmMe.js +31 -0
- package/dist/Address-CtHjSBzx.js +1112 -0
- package/dist/Alert-BfbfHD1i.js +169 -0
- package/dist/Avatar-Bf4qSH-S.js +60 -0
- package/dist/BG-HKzabLqZ.js +27 -0
- package/dist/BusinessFinancingComponent-DxwW9KZP.js +55 -0
- package/dist/BusinessFinancingDropin-N_DSHYRu.js +2235 -0
- package/dist/BusinessFinancingPage-unaDjCZH.js +43 -0
- package/dist/BusinessTypeSelectionPage-JTkIjnGQ.js +440 -0
- package/dist/Card-OQuFzmxm.js +90 -0
- package/dist/Checkbox-Bi_0fc1x.js +74 -0
- package/dist/Confirm-CKpYp_5J.js +64 -0
- package/dist/ConstitutionalDocument-BRSGUZEC.js +2361 -0
- package/dist/ContactDetails-DnWFEseS.js +396 -0
- package/dist/ContextGuidance-CzbsgT6C.js +34 -0
- package/dist/ContractViewer-DcQHIGMU.js +935 -0
- package/dist/CountryField-B4WQy2ta.js +66 -0
- package/dist/CreateIndividualComponent-Swzyxw03.js +65 -0
- package/dist/CreateTransferInstrumentComponent-CeE_Q8JD.js +56 -0
- package/dist/Currency-DHXU0Gdw.js +238 -0
- package/dist/CustomerSupport-DtYQbB1A.js +156 -0
- package/dist/DebugModal-C39y9ypZ.js +416 -0
- package/dist/DecisionMakerDetailsPage-BNayhUQ8.js +104 -0
- package/dist/DecisionMakers-BkGj2Qqr.js +858 -0
- package/dist/Dropzone-DyEB_7GZ.js +224 -0
- package/dist/EmbeddedStatus-BOo-inHj.js +97 -0
- package/dist/EndStateLayout-R9pQt832.js +71 -0
- package/dist/EntityAssociation-BKKOMQ4q.js +178 -0
- package/dist/EntityGuidanceStatus-CtuUWykx.js +106 -0
- package/dist/ErrorPanel-DJ-uFV4L.js +194 -0
- package/dist/Field-CmNnfz5n.js +141 -0
- package/dist/FormNavigation-CfFQ7UC8.js +144 -0
- package/dist/FormWrapper-AefMYcpB.js +135 -0
- package/dist/Header-Big_S2UY.js +83 -0
- package/dist/Image-DogJtPYR.js +27 -0
- package/dist/Individual.rules-Cy2RTzkg.js +383 -0
- package/dist/IndividualDropin-BVav94ZL.js +5168 -0
- package/dist/InputDate-C6lCe4Mh.js +43 -0
- package/dist/InputGroup-WBfGDV5F.js +32 -0
- package/dist/InputText-D_BqYXYv.js +134 -0
- package/dist/Introduction-B3dnyHAw.js +256 -0
- package/dist/JpAddress-BolhhPjT.js +329 -0
- package/dist/LandingLayout-4tlusBy1.js +60 -0
- package/dist/LegalCompanyNameField-ChE_IQlE.js +138 -0
- package/dist/LegalRepresentativeDetailsPage-C9GKbpMT.js +55 -0
- package/dist/Link-CyXf5frR.js +35 -0
- package/dist/List-BAzyC6sw.js +83 -0
- package/dist/ListItem-Bt_mPem1.js +69 -0
- package/dist/LoaderWrapper-DW2aG4g9.js +42 -0
- package/dist/ManageIndividualComponent-CogWUNQN.js +46 -0
- package/dist/ManageTermsOfServiceComponent-C4h2qwXq.js +52 -0
- package/dist/ManageTransferInstrumentComponent-Be9R6VAb.js +292 -0
- package/dist/MaskedInput-DQGErUrs.js +811 -0
- package/dist/MaybeModal-Cfq9Y-Oq.js +36 -0
- package/dist/Modal-CrmpkeY0.js +147 -0
- package/dist/Name-EUCnwto8.js +81 -0
- package/dist/OnboardingDropinComponent-BYxARRXY.js +2672 -0
- package/dist/PayoutDetailsDropin-BW6P2kkQ.js +4972 -0
- package/dist/ProgressBar-B7gTQncy.js +47 -0
- package/dist/Radio-BMtxBpnn.js +39 -0
- package/dist/RadioGroup-44hvyE1V.js +100 -0
- package/dist/RadioGroupCard-DjEhU8SG.js +152 -0
- package/dist/Review-g-sL7ZDy.js +84 -0
- package/dist/RootBusinessDetailsPage-B-eg9C2m.js +50 -0
- package/dist/RootBusinessLinesPage-EboQFqwd.js +1553 -0
- package/dist/RootIndividualDetailsPage-DHS3qMMB.js +62 -0
- package/dist/Select-DABfPg0f.js +868 -0
- package/dist/SignPCIComponent-BqoTovzh.js +307 -0
- package/dist/SingpassSelection-DxiigpyU.js +132 -0
- package/dist/SoleProprietorshipPage-IgsabHu-.js +50 -0
- package/dist/SourceOfFundsPage-BS1rKVKe.js +2162 -0
- package/dist/Spacer-BK3jDget.js +18 -0
- package/dist/StepProgressIndicator-BlYqsR2g.js +78 -0
- package/dist/StoreProvider-CISxF69y.js +4845 -0
- package/dist/StructuredList-BNLhk_zV.js +61 -0
- package/dist/Summary-hZQMYY8b.js +220 -0
- package/dist/TaskVerificationStatus-BkICmo3e.js +129 -0
- package/dist/TaxInformationField-DA1SER9m.js +3750 -0
- package/dist/TaxReportingDropin-BQy2CrfP.js +503 -0
- package/dist/TextArea-BVmNrRme.js +103 -0
- package/dist/TileGroup-BexJEHjV.js +203 -0
- package/dist/TrustDetailsPage-4CSRQyws.js +2187 -0
- package/dist/TrustMemberCompanyPage-DoeI_oPE.js +68 -0
- package/dist/TrustMemberIndividualPage-Bd_0eP6B.js +64 -0
- package/dist/TrustMemberRoleAndTypePage-5ic4OwLo.js +1081 -0
- package/dist/TrustMembersOverview-CpMvaz8A.js +439 -0
- package/dist/UnincorporatedPartnershipIndividualPage-CG65q5UX.js +63 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-BHlOu-QG.js +71 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-ChWfvQr3.js +292 -0
- package/dist/UnincorporatedPartnershipMembersOverview-BSpPPpnB.js +173 -0
- package/dist/VerificationErrorAlert-DlCMbbyt.js +60 -0
- package/dist/ViewVerificationStatusComponent-PYtbeouG.js +181 -0
- package/dist/accountHolderUtils-C75xtw4E.js +66 -0
- package/dist/adyen-business-financing.js +13 -5
- package/dist/adyen-individual-configuration.js +8 -4
- package/dist/adyen-individual-status.js +5 -4
- package/dist/adyen-invited-decision-maker.js +87 -0
- package/dist/adyen-kyc-components.js +23 -21
- package/dist/adyen-onboarding.js +8 -4
- package/dist/adyen-terms-of-service-management.js +8 -4
- package/dist/adyen-terms-of-service-status.js +5 -4
- package/dist/adyen-transfer-instrument-configuration.js +8 -4
- package/dist/adyen-transfer-instrument-management.js +5 -4
- package/dist/adyen-verification-status.js +8 -4
- package/dist/arrow-right-BoqwUH_d.js +14 -0
- package/dist/bafinUtils-DsY8ws1M.js +80 -0
- package/dist/bag-BXVWLrwo.js +14 -0
- package/dist/bank-1GvaHPAZ.js +14 -0
- package/dist/bg-BG-6XzbmxcW.js +13 -0
- package/dist/bg-BG-C6kad3Qr.js +61 -0
- package/dist/bg-BG-CEipapl4.js +63 -0
- package/dist/bg-BG-CFuVZnaC.js +13 -0
- package/dist/bg-BG-DAqp35Dx.js +13 -0
- package/dist/bg-BG-DMNRRZZE.js +75 -0
- package/dist/bg-BG-DyX-yYYI.js +13 -0
- package/dist/bg-BG-K7feXvEc.js +38 -0
- package/dist/bg-BG-zZhDshGi.js +65 -0
- package/dist/bin-Ba-3ll8T.js +18 -0
- package/dist/business-lines-BAqTbnBw.js +135 -0
- package/dist/capital-9TKHySO7.js +17 -0
- package/dist/cash-stack-DwYu4xNy.js +22 -0
- package/dist/certificate-N2YFedpI.js +17 -0
- package/dist/checkmark-D9dGhGpG.js +14 -0
- package/dist/checkmark-circle-CFWClLQ6.js +20 -0
- package/dist/checkmark-circle-fill-DEB-tuGl.js +17 -0
- package/dist/checkmark-small-D3VNx2lo.js +14 -0
- package/dist/chevron-down-C7SUSYfl.js +14 -0
- package/dist/chevron-left-BXmd-S46.js +14 -0
- package/dist/chevron-right-jE6RwM2B.js +14 -0
- package/dist/chevron-up-BdfNcqzq.js +14 -0
- package/dist/circle-BJPTMCWB.js +17 -0
- package/dist/circle-small-filled-BuO8Vg8j.js +14 -0
- package/dist/clock-DAzaBRWk.js +20 -0
- package/dist/coins-DYdzG5e_.js +17 -0
- package/dist/commonValidators-Bld1N1vF.js +24 -0
- package/dist/company-types-value-D_mKv5PT.js +23 -0
- package/dist/contract-BfJb1t6M.js +14 -0
- package/dist/cross-CDS_eot4.js +14 -0
- package/dist/cross-circle-fill-C-EJ57Yn.js +17 -0
- package/dist/cross-circle-fill-small-DkPjsuBH.js +14 -0
- package/dist/cs-CZ-BD5bYeuJ.js +13 -0
- package/dist/cs-CZ-BHbWTH_v.js +63 -0
- package/dist/cs-CZ-C6vEQ8P9.js +13 -0
- package/dist/cs-CZ-CYQO0o5V.js +38 -0
- package/dist/cs-CZ-CYsR__kj.js +13 -0
- package/dist/cs-CZ-C_GFp3nV.js +61 -0
- package/dist/cs-CZ-Ck22NTT9.js +65 -0
- package/dist/cs-CZ-DXSMRqPu.js +75 -0
- package/dist/cs-CZ-Ke47w0bj.js +13 -0
- package/dist/currency-CrdnaaDu.js +35 -0
- package/dist/da-DK-B3Pg-MWO.js +13 -0
- package/dist/da-DK-C60mLiV1.js +61 -0
- package/dist/da-DK-CGWvmdkq.js +38 -0
- package/dist/da-DK-Cd5IQPv3.js +75 -0
- package/dist/da-DK-Cx4-hLO1.js +13 -0
- package/dist/da-DK-DQ4ZYSea.js +65 -0
- package/dist/da-DK-DzcTI92X.js +13 -0
- package/dist/da-DK-h8DYQ_Iq.js +13 -0
- package/dist/da-DK-vcVNQJbX.js +63 -0
- package/dist/datasetUtil-BHQp0-xL.js +58 -0
- package/dist/de-DE-C9NH2zMh.js +75 -0
- package/dist/de-DE-CL8D8vKZ.js +13 -0
- package/dist/de-DE-CWEW2yqg.js +63 -0
- package/dist/de-DE-CkbOZ6S_.js +65 -0
- package/dist/de-DE-Cvz1TGdB.js +61 -0
- package/dist/de-DE-DHDJhahG.js +38 -0
- package/dist/de-DE-LQE_LFFL.js +13 -0
- package/dist/de-DE-S6qDey1L.js +13 -0
- package/dist/de-DE-dPfrbCii.js +13 -0
- package/dist/debouncedInputEvent-Cv2S512Y.js +46 -0
- package/dist/decision-makers-group-DrvpnEqj.js +1944 -0
- package/dist/digital-wallet-Bx5YM1LY.js +46 -0
- package/dist/document-1-qlSTF558.js +14 -0
- package/dist/document-blurred-BiWap0xs.js +37 -0
- package/dist/document-cut-off-aQezqOif.js +32 -0
- package/dist/document-expired-BhBXaWWQ.js +38 -0
- package/dist/document-front-DYuhZGeQ.js +30 -0
- package/dist/document-person-CDbnTOdV.js +20 -0
- package/dist/download-BZQB1WkZ.js +17 -0
- package/dist/dropinUtils-CAiDwa5U.js +200 -0
- package/dist/edit-1-DAqtnOIx.js +14 -0
- package/dist/el-GR-B78b9rSH.js +63 -0
- package/dist/el-GR-DGbzdIL0.js +13 -0
- package/dist/el-GR-DHNlnOwf.js +38 -0
- package/dist/el-GR-DSlgFwLb.js +61 -0
- package/dist/el-GR-DTHQslLc.js +75 -0
- package/dist/el-GR-Dazirlmt.js +13 -0
- package/dist/el-GR-DoS_Va-n.js +13 -0
- package/dist/el-GR-DudORw4U.js +65 -0
- package/dist/el-GR-Dvv3-Qib.js +13 -0
- package/dist/en-US-AgtwE4Fl.js +63 -0
- package/dist/en-US-BSQXKu6d.js +54 -0
- package/dist/en-US-CjjPhkB5.js +65 -0
- package/dist/en-US-D1sB335h.js +61 -0
- package/dist/en-US-DLY20x1O.js +13 -0
- package/dist/en-US-DoiQhi0j.js +38 -0
- package/dist/en-US-G607HIyo.js +75 -0
- package/dist/en-US-cVpRgdC8.js +13 -0
- package/dist/es-ES--IvNed_Q.js +13 -0
- package/dist/es-ES-BAolMrZ0.js +65 -0
- package/dist/es-ES-BYl5-PFR.js +13 -0
- package/dist/es-ES-CDgjGql5.js +63 -0
- package/dist/es-ES-CxnsKEh4.js +38 -0
- package/dist/es-ES-DK-7qtDf.js +75 -0
- package/dist/es-ES-DdGmXdxO.js +13 -0
- package/dist/es-ES-Dj5-YMmZ.js +61 -0
- package/dist/es-ES-Vn4AcK9-.js +13 -0
- package/dist/et-EE-4fHYOoff.js +13 -0
- package/dist/et-EE-BOIrYrz9.js +65 -0
- package/dist/et-EE-BQixWUEV.js +38 -0
- package/dist/et-EE-BeZJ4Ub1.js +13 -0
- package/dist/et-EE-Bij5j-z5.js +61 -0
- package/dist/et-EE-CsTXSlnY.js +13 -0
- package/dist/et-EE-D0PMC4ie.js +63 -0
- package/dist/et-EE-D5SNtVsM.js +13 -0
- package/dist/et-EE-DNC4hcxm.js +75 -0
- package/dist/external-link-Cg6pJaSJ.js +14 -0
- package/dist/fi-FI-57-xkioo.js +38 -0
- package/dist/fi-FI-B2xHiSHi.js +61 -0
- package/dist/fi-FI-BJLU1JHw.js +75 -0
- package/dist/fi-FI-BUixKfXH.js +13 -0
- package/dist/fi-FI-CIYa9SyS.js +13 -0
- package/dist/fi-FI-CWIaV6Iz.js +13 -0
- package/dist/fi-FI-CsZlDJFb.js +63 -0
- package/dist/fi-FI-D8WrLxxq.js +65 -0
- package/dist/fi-FI-DFxljML-.js +13 -0
- package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
- package/dist/filterProblemsByTaskForms-Cz7iQtms.js +30 -0
- package/dist/form-rules-DhbF2mY4.js +13 -0
- package/dist/formUtils-BD7sDa8f.js +107 -0
- package/dist/fr-FR-B2je0smB.js +75 -0
- package/dist/fr-FR-BM-qNLci.js +13 -0
- package/dist/fr-FR-Beljeilc.js +65 -0
- package/dist/fr-FR-BxiX8Zfi.js +38 -0
- package/dist/fr-FR-CCb4Oux7.js +13 -0
- package/dist/fr-FR-CNQtWSXx.js +61 -0
- package/dist/fr-FR-DPehHVb6.js +13 -0
- package/dist/fr-FR-VoxPkXSc.js +63 -0
- package/dist/fr-FR-l5z31r7i.js +13 -0
- package/dist/funds-in-CInoUdmG.js +21 -0
- package/dist/getName-DkzImyZO.js +41 -0
- package/dist/getProblemsForEntity-BPv4f9Tx.js +24 -0
- package/dist/getProps-Cc3J2-z9.js +148 -0
- package/dist/getTrustedFields-C5-mXl-l.js +64 -0
- package/dist/gift-omNInZeB.js +14 -0
- package/dist/graph-DunG_uu1.js +21 -0
- package/dist/graph-up-BZze4i6m.js +20 -0
- package/dist/headquarter-BhpSibFO.js +21 -0
- package/dist/hotel-Cp7VgGCJ.js +22 -0
- package/dist/house-BhyBQdR3.js +21 -0
- package/dist/hr-HR-B6U5Rzzw.js +61 -0
- package/dist/hr-HR-BAI0N9bo.js +13 -0
- package/dist/hr-HR-BF74vdPD.js +13 -0
- package/dist/hr-HR-Bjx-KdVs.js +13 -0
- package/dist/hr-HR-BtowKWUi.js +13 -0
- package/dist/hr-HR-BynZTNSB.js +38 -0
- package/dist/hr-HR-C0NLgF1r.js +75 -0
- package/dist/hr-HR-CbdP2tk-.js +63 -0
- package/dist/hr-HR-lIHN6Yl2.js +65 -0
- package/dist/hu-HU-B-lUkFnQ.js +13 -0
- package/dist/hu-HU-BLLoj5CX.js +61 -0
- package/dist/hu-HU-BpNDP1I8.js +13 -0
- package/dist/hu-HU-BtRIDozk.js +38 -0
- package/dist/hu-HU-CWdwNCev.js +65 -0
- package/dist/hu-HU-DU-5ujQK.js +75 -0
- package/dist/hu-HU-DYhMVR_c.js +13 -0
- package/dist/hu-HU-MHIPehPS.js +13 -0
- package/dist/hu-HU-pFpTvMiD.js +63 -0
- package/dist/id-blurred-B5lHEP8M.js +59 -0
- package/dist/id-cut-off-Ba1FRzKO.js +55 -0
- package/dist/id-front-CpNWN6nG.js +52 -0
- package/dist/id-glare-DgCQON8k.js +49 -0
- package/dist/iframeWidget-CNWsRmIe.js +234 -0
- package/dist/image-CmB0ioUM.js +17 -0
- package/dist/info-Bb_-xIEK.js +21 -0
- package/dist/info-filled-CK8LB339.js +17 -0
- package/dist/instant-verification-UrnuHTYn.js +40 -0
- package/dist/isEmpty-Pobz7lE7.js +23 -0
- package/dist/isNewEntity-7Vw_eQBr.js +13 -0
- package/dist/it-IT-5a7NHVFo.js +65 -0
- package/dist/it-IT-BAvmkEF8.js +13 -0
- package/dist/it-IT-BRO0Hf5X.js +13 -0
- package/dist/it-IT-Cr20JO4o.js +61 -0
- package/dist/it-IT-D63gRTDc.js +13 -0
- package/dist/it-IT-DOBp2-MP.js +13 -0
- package/dist/it-IT-DZjw9LNC.js +63 -0
- package/dist/it-IT-Dhwa9Ecj.js +75 -0
- package/dist/it-IT-masgjk9F.js +38 -0
- package/dist/ja-JP-B3Y0VVpN.js +152 -0
- package/dist/ja-JP-BZb5ndp9.js +75 -0
- package/dist/ja-JP-BeeuQ_LL.js +61 -0
- package/dist/ja-JP-BqluCflj.js +63 -0
- package/dist/ja-JP-CaUe8KW7.js +27 -0
- package/dist/ja-JP-DL0IjTzn.js +13 -0
- package/dist/ja-JP-DSvZhFNY.js +65 -0
- package/dist/ja-JP-GX3l4yqn.js +125 -0
- package/dist/ja-JP-g6VOUGXZ.js +136 -0
- package/dist/ja-JP-vv3-YsHU.js +38 -0
- package/dist/japanSupportUtils-Cgw9dBsr.js +16 -0
- package/dist/jpAddressSchema-DEOyz9Yo.js +26 -0
- package/dist/localizeDateString-CAnd4W1y.js +27 -0
- package/dist/location-itJfxrDQ.js +17 -0
- package/dist/lt-LT-0WbfHH_o.js +61 -0
- package/dist/lt-LT-2BMif2Bk.js +38 -0
- package/dist/lt-LT-BX8dOAzK.js +13 -0
- package/dist/lt-LT-C8n1GZoU.js +75 -0
- package/dist/lt-LT-CXw4ywLM.js +63 -0
- package/dist/lt-LT-CgalYpUh.js +65 -0
- package/dist/lt-LT-DDs3ngzd.js +13 -0
- package/dist/lt-LT-DpszrZ9m.js +13 -0
- package/dist/lt-LT-WRulV980.js +13 -0
- package/dist/lv-LV-B3IqVQos.js +13 -0
- package/dist/lv-LV-BZN4-Xat.js +75 -0
- package/dist/lv-LV-BuuUUumH.js +61 -0
- package/dist/lv-LV-C9Dhkruv.js +13 -0
- package/dist/lv-LV-CHdEDRVO.js +38 -0
- package/dist/lv-LV-CmB2-IO5.js +13 -0
- package/dist/lv-LV-DYqBaW2-.js +63 -0
- package/dist/lv-LV-aAd9SEqx.js +65 -0
- package/dist/lv-LV-dA8yYdKe.js +13 -0
- package/dist/mail-VHTlAusn.js +14 -0
- package/dist/manual-verification-BO8zgAYT.js +41 -0
- package/dist/mapExistingFile-BZXo7HtO.js +230 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-B2GyvHW2.js +162 -0
- package/dist/mapLegalEntityToIndividualSchema-oeKNb1EG.js +206 -0
- package/dist/mapTransferInstrumentToPayoutAccount-C4zz9v3R.js +34 -0
- package/dist/minus-circle-filled-ZhtJ0GD3.js +17 -0
- package/dist/nl-NL-B0fvINJj.js +75 -0
- package/dist/nl-NL-CmURERx_.js +65 -0
- package/dist/nl-NL-CnvvqAEg.js +13 -0
- package/dist/nl-NL-D1b5RUJ0.js +38 -0
- package/dist/nl-NL-DV4NqPVW.js +13 -0
- package/dist/nl-NL-KQ6bciOb.js +13 -0
- package/dist/nl-NL-KsfqCp2v.js +61 -0
- package/dist/nl-NL-SjOGmGk5.js +13 -0
- package/dist/nl-NL-lcNM54vV.js +63 -0
- package/dist/no-NO-B9618F4_.js +13 -0
- package/dist/no-NO-BAWVf0GX.js +13 -0
- package/dist/no-NO-BdG6WnpB.js +61 -0
- package/dist/no-NO-CIKbQbKT.js +13 -0
- package/dist/no-NO-CTrVITNu.js +63 -0
- package/dist/no-NO-Dkh4SWbB.js +38 -0
- package/dist/no-NO-Ds3VioxT.js +13 -0
- package/dist/no-NO-Jw7Gae-a.js +75 -0
- package/dist/no-NO-qyqWODMp.js +65 -0
- package/dist/onfido-logo-BSkKPH10.js +14 -0
- package/dist/options-horizontal-GuXvLvV3.js +18 -0
- package/dist/partner-QD27Vy4w.js +18 -0
- package/dist/passport-blurred-CVG493IJ.js +59 -0
- package/dist/passport-cut-off-COzA_TmB.js +56 -0
- package/dist/passport-front-WJleLixT.js +52 -0
- package/dist/passport-front-green-CZVkCa1n.js +232 -0
- package/dist/passport-glare-BP5WnJZj.js +50 -0
- package/dist/patternValidators-B_gZ9OEK.js +83 -0
- package/dist/pay-by-link-plane-BpY8Q6-B.js +22 -0
- package/dist/payout-DtB68BcZ.js +20 -0
- package/dist/payout-verification-instant-BzpfOQLD.js +41 -0
- package/dist/payout-verification-manual-gNEoeZkV.js +90 -0
- package/dist/person-IVZG3t3_.js +17 -0
- package/dist/pl-PL-BgbxWHGE.js +13 -0
- package/dist/pl-PL-BkGihn5Q.js +38 -0
- package/dist/pl-PL-Bmaq3IC3.js +75 -0
- package/dist/pl-PL-CErRPlR2.js +63 -0
- package/dist/pl-PL-CTOkaDMG.js +13 -0
- package/dist/pl-PL-DEMxxz7h.js +13 -0
- package/dist/pl-PL-DW9eaUml.js +61 -0
- package/dist/pl-PL-DqzUSnFK.js +13 -0
- package/dist/pl-PL-q9azN24o.js +65 -0
- package/dist/plaid-logo-FsZ7kfL-.js +14 -0
- package/dist/plus-DiALAL8-.js +14 -0
- package/dist/plus-circle-filled-BzHtTqEN.js +17 -0
- package/dist/process-field-configurations-DTeQU5DK.js +324 -0
- package/dist/pt-BR-BRdIEO2O.js +38 -0
- package/dist/pt-BR-BaTE6BB_.js +75 -0
- package/dist/pt-BR-BdfWE-a1.js +61 -0
- package/dist/pt-BR-BfDe_8iW.js +13 -0
- package/dist/pt-BR-BxoOF8jB.js +65 -0
- package/dist/pt-BR-CLUsrQAl.js +13 -0
- package/dist/pt-BR-Ct4s4jXV.js +13 -0
- package/dist/pt-BR-DA44Wgbt.js +63 -0
- package/dist/pt-BR-zuqB_CBf.js +13 -0
- package/dist/pt-PT-BLRgiqFj.js +13 -0
- package/dist/pt-PT-BfL7qUzo.js +38 -0
- package/dist/pt-PT-CFY1O_K0.js +13 -0
- package/dist/pt-PT-DBEsmXQX.js +13 -0
- package/dist/pt-PT-F1qPZJ2c.js +13 -0
- package/dist/pt-PT-PIiikho9.js +63 -0
- package/dist/pt-PT-c0ap84_F.js +75 -0
- package/dist/pt-PT-ej54BPbB.js +61 -0
- package/dist/pt-PT-pIChDwiI.js +65 -0
- package/dist/recurring-DKNs9K3x.js +17 -0
- package/dist/reporting-D5ABpLO_.js +16 -0
- package/dist/resolveEnvironment-0tLtiAxj.js +84 -0
- package/dist/revenue-accelerate-D7Sp0V4a.js +17 -0
- package/dist/review-D4TUjcWF.js +17 -0
- package/dist/ro-RO-0vx6ZLWV.js +13 -0
- package/dist/ro-RO-1ZFmLikG.js +61 -0
- package/dist/ro-RO-7CJ4F5iB.js +13 -0
- package/dist/ro-RO-BPOHV6Wp.js +75 -0
- package/dist/ro-RO-BeA_YyJ8.js +13 -0
- package/dist/ro-RO-Bv9hZxwD.js +63 -0
- package/dist/ro-RO-C00Ig8CL.js +13 -0
- package/dist/ro-RO-C2yBVFht.js +38 -0
- package/dist/ro-RO-DRsaNX9j.js +65 -0
- package/dist/roleMetadata-CQlMMuGM.js +66 -0
- package/dist/save-BfqO2JBI.js +14 -0
- package/dist/search-Cmzbf5zI.js +17 -0
- package/dist/show-IdbU1C6P.js +17 -0
- package/dist/singpass-logo-wY4xsmTX.js +17 -0
- package/dist/singpass-verification-instant-JCqTr7Mv.js +40 -0
- package/dist/singpass-verification-manual-DQ7XW6R3.js +34 -0
- package/dist/sk-SK-3_SoEn6P.js +75 -0
- package/dist/sk-SK-7-enbO1N.js +65 -0
- package/dist/sk-SK-BbJWayDh.js +13 -0
- package/dist/sk-SK-C74EF23u.js +38 -0
- package/dist/sk-SK-ChVwlbp0.js +63 -0
- package/dist/sk-SK-Dm-pif_7.js +61 -0
- package/dist/sk-SK-DuLm2CVx.js +13 -0
- package/dist/sk-SK-DubwJifw.js +13 -0
- package/dist/sk-SK-Og9MJXpR.js +13 -0
- package/dist/sl-SI-59OQIZ3f.js +13 -0
- package/dist/sl-SI-BAIm-qBe.js +13 -0
- package/dist/sl-SI-CoI7iOco.js +13 -0
- package/dist/sl-SI-CvUzNn9Z.js +38 -0
- package/dist/sl-SI-DTvJT7fC.js +65 -0
- package/dist/sl-SI-DZHePXbK.js +63 -0
- package/dist/sl-SI-DbfswGh0.js +75 -0
- package/dist/sl-SI-HO7231cu.js +61 -0
- package/dist/sl-SI-hxwQIw_i.js +13 -0
- package/dist/solution-payments-DpyE_sdS.js +14 -0
- package/dist/store-Btc4GcmU.js +14 -0
- package/dist/style.css +2846 -2814
- package/dist/styles-CLV89_hH.js +2846 -2814
- package/dist/summaryItem-CAQCQSkt.js +18 -0
- package/dist/sv-SE-0PQ-U1u6.js +13 -0
- package/dist/sv-SE-BZNey_8S.js +13 -0
- package/dist/sv-SE-BcJ8p_Tx.js +61 -0
- package/dist/sv-SE-BsLkPEzn.js +38 -0
- package/dist/sv-SE-CQWBP7n1.js +13 -0
- package/dist/sv-SE-ChoPzG_G.js +13 -0
- package/dist/sv-SE-D_Efxy3s.js +75 -0
- package/dist/sv-SE-Dq56vGlB.js +63 -0
- package/dist/sv-SE-N-Hqwcjq.js +65 -0
- package/dist/tax-reporting-graph-hgoilCHZ.js +504 -0
- package/dist/terminal-1-D1pwXCoi.js +18 -0
- package/dist/tink-logo-DDyjz5eJ.js +17 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
- package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
- package/dist/types/api/address/useSearchAddress.d.ts +1 -2
- package/dist/types/api/businessLines/businessLines.types.d.ts +6 -1
- package/dist/types/api/businessLines/useBusinessLines.d.ts +3 -3
- package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +2 -2
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +2 -2
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +2 -2
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
- package/dist/types/api/check/useCheck.d.ts +1 -2
- package/dist/types/api/companyDataSet/companyDataset.types.d.ts +5 -0
- package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +6 -3
- package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +2 -2
- package/dist/types/api/companySearch/companySearch.types.d.ts +8 -0
- package/dist/types/api/companySearch/useCompanySearch.d.ts +9 -4
- package/dist/types/api/companySelection/companySelection.types.d.ts +3 -3
- package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -18
- package/dist/types/api/configurations/useScenarios.d.ts +3 -161
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +2 -2
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -4
- package/dist/types/api/documents/useCreateDocument.d.ts +2 -2
- package/dist/types/api/documents/useDeleteDocument.d.ts +2 -2
- package/dist/types/api/documents/useDocument.d.ts +2 -2
- package/dist/types/api/documents/useDocuments.d.ts +4 -0
- package/dist/types/api/documents/useUpdateDocument.d.ts +2 -2
- package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -4
- package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +3 -3
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -2
- package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +8 -389
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +5 -5
- package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -2
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -2
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +1 -1
- package/dist/types/api/pci/usePciStatus.d.ts +1 -1
- package/dist/types/api/pci/usePciTemplate.d.ts +1 -1
- package/dist/types/api/pci/useSignPci.d.ts +2 -3
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
- package/dist/types/api/queryKeys.d.ts +4 -2
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -1
- package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +2 -3
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -7
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -1
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -1
- package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
- package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +15 -0
- package/dist/types/api/types.d.ts +3 -2
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
- package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +2 -3
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -1
- package/dist/types/components/Apps/tasks/TaskList/utils.d.ts +4 -0
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +0 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +439 -439
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +3 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -4
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +8 -0
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +4 -6
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +2 -5
- package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +1 -4
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +5 -18
- package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +2 -0
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +12 -46
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -22
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +8 -9
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +13 -3
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +0 -11
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +3 -4
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +0 -6
- package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +4 -0
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +3 -0
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +3 -0
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/ProofOfDirectorDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/ProofOfSignatoryDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/RegistrationDocument/RegistrationDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -3
- package/dist/types/components/Business/forms/TaxDocument/TaxDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -3
- package/dist/types/components/Business/forms/forms.types.d.ts +0 -3
- package/dist/types/components/Business/forms/rules.d.ts +10 -10
- package/dist/types/components/Business/mapping/businessDetails/businessBankAccountTaxIdUtils.d.ts +7 -0
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -2
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +8 -2
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -6
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +24 -9
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
- package/dist/types/components/Business/utils/companyUtil.d.ts +0 -10
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +5 -0
- package/dist/types/components/Business/utils/submit.d.ts +2 -0
- package/dist/types/components/Business/utils/useBusinessDetailsData.d.ts +21 -0
- package/dist/types/components/BusinessLines/constants.d.ts +10 -0
- package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +10 -10
- package/dist/types/components/BusinessLines/fields/SctaField/SctaField.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +6 -0
- package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/forms/IndustryCodesForm/IndustryCodesForm.d.ts +1 -1
- package/dist/types/components/BusinessLines/forms/SctaForm/SctaForm.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/SctaForm/SctaInfoModal.d.ts +3 -0
- package/dist/types/components/BusinessLines/forms/SctaForm/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/rules.d.ts +2 -1
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +1 -2
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +2 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/types.d.ts +4 -0
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +26 -4
- package/dist/types/components/BusinessLines/tasks/validate.d.ts +2 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5812 -582
- package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +3 -2
- package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -1
- package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +1 -2
- package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +1 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingSoleProprietor.d.ts +2 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSoleProprietorPersonalInformation.d.ts +4 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +15 -4
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +10 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +20 -21
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +6 -4
- package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/InvitedDecisionMakerComponent/InvitedDecisionMakerComponent.d.ts +4 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +4 -0
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -3
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +29 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/Identity.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +11 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.d.ts +4 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +22 -0
- package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +22 -0
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +8 -0
- package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +12 -0
- package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +24 -0
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +43 -0
- package/dist/types/components/Individual/forms/IdDocumentUpload/utils.d.ts +3 -0
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +18 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/IdVerificationMethod.types.d.ts +21 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +7 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +7 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +46 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +4 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +12 -0
- package/dist/types/components/Individual/forms/Individual.d.ts +56 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +45 -0
- package/dist/types/components/Individual/forms/Individual.types.d.ts +60 -0
- package/dist/types/components/Individual/forms/ProofOfRelationship/types.d.ts +14 -0
- package/dist/types/components/Individual/forms/ProofOfResidency/types.d.ts +39 -0
- package/dist/types/components/Individual/forms/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +6 -0
- package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaire.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +7 -0
- package/dist/types/components/Individual/forms/form-ids.d.ts +2 -0
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -2
- package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -3
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
- package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +1 -1
- package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +1 -1
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -12
- package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -3
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -0
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +3 -0
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +6 -7
- package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +2 -14
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +0 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +8 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
- package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
- package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +0 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/copy.d.ts +3 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +10 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/Currency.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +117 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +12 -6
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/LocalizedNameFields/types.d.ts +9 -0
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +5 -0
- package/dist/types/components/Shared/fields/NumberOfEmployees/NumberOfEmployees.d.ts +1 -1
- package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +5 -0
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +8 -0
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +6 -0
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +3 -1
- package/dist/types/components/Shared/forms/Address/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +5 -4
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -2
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +5 -5
- package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +2 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +2 -1
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +5 -5
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +1 -1
- package/dist/types/components/ui/atoms/Card/Card.d.ts +19 -0
- package/dist/types/components/ui/atoms/Link/Link.types.d.ts +1 -1
- package/dist/types/components/ui/atoms/Loader/Loader.d.ts +11 -5
- package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
- package/dist/types/components/ui/atoms/MultiSelectList/MultiSelectList.d.ts +0 -1
- package/dist/types/components/ui/atoms/Svg/Svg.d.ts +0 -1
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +4 -0
- package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +0 -1
- package/dist/types/context/ExperimentContext/types.d.ts +28 -50
- package/dist/types/context/QueryContext/QueryClient.d.ts +1 -1
- package/dist/types/context/StateContext/types.d.ts +2 -3
- package/dist/types/core/models/api/individual.d.ts +3 -0
- package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
- package/dist/types/core/models/api/legal-arrangement.d.ts +3 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
- package/dist/types/core/models/api/legal-entity.d.ts +1 -6
- package/dist/types/core/process-field-configurations.d.ts +0 -5
- package/dist/types/core/services/types.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +4 -2
- package/dist/types/embeds/baseEmbedProps.d.ts +0 -21
- package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +2 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +2 -0
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +5 -1
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.d.ts +5 -0
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +34 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +2 -1
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.d.ts +5 -1
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.d.ts +2 -1
- package/dist/types/embeds/verification-status/adyen-verification-status.d.ts +2 -1
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -1
- package/dist/types/hooks/useForm/types.d.ts +0 -8
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +4 -2
- package/dist/types/hooks/usePageLandedEvent.d.ts +7 -0
- package/dist/types/hooks/useUboQuestionnaire.d.ts +2 -2
- package/dist/types/language/types.d.ts +7 -2
- package/dist/types/language/utils.d.ts +1 -2
- package/dist/types/router/DefaultRouteRedirect.d.ts +8 -0
- package/dist/types/router/MemoryRouterContext.d.ts +9 -0
- package/dist/types/router/OnboardingRouter.d.ts +39 -0
- package/dist/types/router/SuspenseRoute.d.ts +7 -0
- package/dist/types/router/getDefaultTask.d.ts +16 -0
- package/dist/types/router/routeConfig.d.ts +68 -0
- package/dist/types/router/useCurrentTask.d.ts +5 -0
- package/dist/types/router/useNavigate.d.ts +7 -0
- package/dist/types/stores/formState.d.ts +2 -0
- package/dist/types/stores/globalStore/get-task-status.d.ts +6 -0
- package/dist/types/stores/globalStore/taskStatus.d.ts +5 -3
- package/dist/types/types/assert.d.ts +1 -0
- package/dist/types/types/datasets/currency.d.ts +0 -1
- package/dist/types/types/form.d.ts +0 -2
- package/dist/types/utils/addLinkedFields.d.ts +0 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -0
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +28 -0
- package/dist/types/utils/api/documentUtils.d.ts +6 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +14 -2
- package/dist/types/utils/birthDateUtils.d.ts +0 -17
- package/dist/types/utils/customerSupportUtils.d.ts +3 -0
- package/dist/types/utils/entityAssociationUtil.d.ts +3 -4
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +0 -2
- package/dist/types/utils/formUtils.d.ts +1 -6
- package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -2
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -3
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/types/utils/japanSupportUtils.d.ts +3 -0
- package/dist/types/utils/logger.d.ts +0 -1
- package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
- package/dist/types/utils/performance.d.ts +64 -0
- package/dist/types/utils/regex/patternValidators.d.ts +1 -1
- package/dist/types/utils/translation.d.ts +3 -2
- package/dist/types/utils/validatorUtils.d.ts +3 -1
- package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +3 -2
- package/dist/types-BHB4nscA.js +74 -0
- package/dist/types-BW4HQI5X.js +142 -0
- package/dist/types-C_XJxWCe.js +64 -0
- package/dist/types-DelojZRn.js +34 -0
- package/dist/unincorporated-partnership-MeN1dp53.js +97 -0
- package/dist/upload-BmUXjsaU.js +17 -0
- package/dist/us-check-C1rTBsCY.js +46 -0
- package/dist/us-check-account-number-9lI1dXNC.js +48 -0
- package/dist/us-check-routing-number-s_KaAGSM.js +49 -0
- package/dist/useAssociatedLegalEntity-BGeGBL08.js +34 -0
- package/dist/useBusinessDetailsData-DC-wmNPR.js +5310 -0
- package/dist/useBusinessLines-ByGXMKMt.js +29 -0
- package/dist/useCanSeeIntroduction--oO1qdiT.js +48 -0
- package/dist/useCreateLegalEntity-BhOxB6BR.js +32 -0
- package/dist/useDataMissingRemediations-DSkyG5Z7.js +41 -0
- package/dist/useDataset-yW_bgdcI.js +76 -0
- package/dist/useDeleteTransferInstrument-7o0YMB_Y.js +32 -0
- package/dist/useForm-BO942FZd.js +582 -0
- package/dist/useFormContext-DQrT9O9G.js +201 -0
- package/dist/useGlobalData-u2zvMtMx.js +68 -0
- package/dist/useId-BZ0PA7jP.js +24 -0
- package/dist/useMultiForm-CT8j56sz.js +873 -0
- package/dist/useNavigate-uXdvk8zK.js +265 -0
- package/dist/useOnboardingStatus-fuu0YjVz.js +28 -0
- package/dist/usePciQuestionnaireList-Bx4kLQdp.js +29 -0
- package/dist/useSalesChannels-DWNaDLQE.js +65 -0
- package/dist/useScenarios-h02LgFwh.js +48 -0
- package/dist/useSetting-DE1-_Vco.js +19 -0
- package/dist/useTaskStatus-B5twg5YX.js +51 -0
- package/dist/useTermsOfServiceStatus-YEliqzc0.js +43 -0
- package/dist/useToastContext-C4DyQocl.js +49 -0
- package/dist/useTrustMembers-OlL-flWZ.js +163 -0
- package/dist/useUnincorporatedPartnershipMembers-DskiP-FD.js +99 -0
- package/dist/useUpdateBusinessLines-BwPww5xr.js +339 -0
- package/dist/useUpdateLegalEntity-CCe3LXjI.js +40 -0
- package/dist/utils-B4EWNpln.js +58 -0
- package/dist/utils-CV_cvF6v.js +159 -0
- package/dist/utils-DV-jCPYV.js +29 -0
- package/dist/utils-DYNMAZ4x.js +237 -0
- package/dist/utils-g7QCpZSv.js +778 -0
- package/dist/validate-BIn1CJPi.js +108 -0
- package/dist/validate-CLiAFCrt.js +434 -0
- package/dist/validationError-ZbdyGpRj.js +86 -0
- package/dist/warning-circle-fill-DBvt921B.js +17 -0
- package/dist/warning-diamond-filled-Lb2od2ry.js +17 -0
- package/dist/webinar-m9nuFZBt.js +22 -0
- package/dist/yapily-logo-BduxhNRA.js +17 -0
- package/package.json +78 -57
- package/dist/4-people-BzyXLUF9.js +0 -24
- package/dist/AcceptTermsOfServiceComponent-B150yg9N.js +0 -659
- package/dist/Accordion-CVxApR1X.js +0 -88
- package/dist/AccountSetupRejected--dXDa8bC.js +0 -26
- package/dist/ActionBar-Tv1K68ZK.js +0 -31
- package/dist/Address-DrRgozSN.js +0 -1348
- package/dist/Alert-BVHHWVgg.js +0 -159
- package/dist/Avatar-sN35oNt2.js +0 -60
- package/dist/BG-DlvaKo4n.js +0 -27
- package/dist/BusinessDetailsMultiformDropin-BeJATuiX.js +0 -4220
- package/dist/BusinessFinancingComponent-CGBUx-zj.js +0 -54
- package/dist/BusinessFinancingDropin-DxKkpM-k.js +0 -1853
- package/dist/BusinessFinancingPage-JChGPCHT.js +0 -43
- package/dist/BusinessTypeSelectionPage-CH-OiNqT.js +0 -427
- package/dist/Card-B66f7NuH.js +0 -82
- package/dist/ConstitutionalDocument-DIW7X8rZ.js +0 -143
- package/dist/ContractViewer-Byp71k2e.js +0 -935
- package/dist/CountryField-D36v7bff.js +0 -843
- package/dist/CreateIndividualComponent-fmBoSuxQ.js +0 -71
- package/dist/CreateTransferInstrumentComponent-CViSbC6e.js +0 -63
- package/dist/Currency-DlHtZ9aJ.js +0 -183
- package/dist/CustomerSupport-L3PHpji7.js +0 -153
- package/dist/DebugModal-C1mi00fP.js +0 -413
- package/dist/DecisionMakerDetailsPage-li_HZWuV.js +0 -106
- package/dist/DecisionMakers-C8AjEnUh.js +0 -830
- package/dist/EmbeddedStatus-CrKg6woS.js +0 -99
- package/dist/EndStateLayout-CPXu6AzB.js +0 -71
- package/dist/EntityAssociation-SkprG-At.js +0 -159
- package/dist/EntityGuidanceStatus-D9lctwyX.js +0 -105
- package/dist/FormFlow-BVw3rIvU.js +0 -224
- package/dist/FormNavigation-Bag7ETpV.js +0 -144
- package/dist/FormWrapper-BfsyttAY.js +0 -135
- package/dist/IndividualOnfido-CmDDWqG_.js +0 -9594
- package/dist/IndividualOnfidoDropin-VMZXwhd7.js +0 -2497
- package/dist/InputText-DHRZ5RNd.js +0 -249
- package/dist/Introduction-Cht7yZI7.js +0 -300
- package/dist/JpAddress-DCky_der.js +0 -280
- package/dist/LegalRepresentativeDetailsPage-Bez436Rb.js +0 -60
- package/dist/ListItem-DrwSQslm.js +0 -69
- package/dist/ManageIndividualComponent-lLoElwga.js +0 -46
- package/dist/ManageTermsOfServiceComponent-CH1M-H1Y.js +0 -52
- package/dist/ManageTransferInstrumentComponent-NZ8vELQC.js +0 -287
- package/dist/MaybeModal-D4PWacZ0.js +0 -25
- package/dist/Modal-lDK70UQc.js +0 -149
- package/dist/OnboardingDropinComponent-Cljx74I-.js +0 -7908
- package/dist/PayoutDetailsDropin-p2t6lj8Z.js +0 -4841
- package/dist/Review-fdhuI2MF.js +0 -83
- package/dist/RootBusinessDetailsPage-Bb1mWkAw.js +0 -61
- package/dist/RootBusinessLinesPage-Bge83rhi.js +0 -1118
- package/dist/RootIndividualDetailsPage-B31dJO7o.js +0 -71
- package/dist/SignPCIComponent-C0P_OLXa.js +0 -304
- package/dist/SingpassSelection-B2rjBQ6u.js +0 -130
- package/dist/SoleProprietorshipPage-3S2tDRwx.js +0 -60
- package/dist/SourceOfFundsPage-BpV6fE8P.js +0 -2383
- package/dist/StepProgressIndicator-CBkt5fOY.js +0 -78
- package/dist/StoreProvider-l6WD5T55.js +0 -7674
- package/dist/Summary-Ccxu9A6C.js +0 -204
- package/dist/TaxReportingDropin-H22DcnSG.js +0 -502
- package/dist/TrustDetailsPage-BvIa1mbz.js +0 -2149
- package/dist/TrustMemberCompanyPage-VNaovE9r.js +0 -73
- package/dist/TrustMemberIndividualPage-Dp9kroxy.js +0 -66
- package/dist/TrustMemberRoleAndTypePage-BbbTPGJm.js +0 -985
- package/dist/TrustMembersOverview-Dd7lo_I5.js +0 -438
- package/dist/UnincorporatedPartnershipIndividualPage-CcLh5gtc.js +0 -65
- package/dist/UnincorporatedPartnershipMemberCompanyPage-DA-1RrVz.js +0 -76
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-CgLeyHTs.js +0 -281
- package/dist/UnincorporatedPartnershipMembersOverview-CNONb63l.js +0 -172
- package/dist/VerificationErrorAlert-D7gb2Rqo.js +0 -79
- package/dist/ViewVerificationStatusComponent-DpeNbWSm.js +0 -180
- package/dist/arrow-right-KxA3SvQj.js +0 -14
- package/dist/bag-BPumznWh.js +0 -14
- package/dist/bank-D6FiNBhs.js +0 -14
- package/dist/bg-BG-B7Xs_t04.js +0 -13
- package/dist/bg-BG-CepHap8j.js +0 -68
- package/dist/bg-BG-D9J6LnkI.js +0 -57
- package/dist/bg-BG-DH45-0B-.js +0 -29
- package/dist/bg-BG-DRkMqyL8.js +0 -13
- package/dist/bg-BG-Dp4LxSP7.js +0 -37
- package/dist/bg-BG-DpIAKQve.js +0 -113
- package/dist/bg-BG-mLSjG76Q.js +0 -13
- package/dist/bg-BG-wVquMNtT.js +0 -55
- package/dist/bin-Bz6KOIeE.js +0 -18
- package/dist/business-lines-DboUCbXw.js +0 -135
- package/dist/capital-GVQ3svwN.js +0 -17
- package/dist/cash-stack-D9AoDDwt.js +0 -22
- package/dist/certificate-CdEWgHQf.js +0 -17
- package/dist/checkmark-Q7x6tGhy.js +0 -14
- package/dist/checkmark-circle-fill-CsvN5_PL.js +0 -17
- package/dist/checkmark-circle-x7dzbp3I.js +0 -20
- package/dist/checkmark-small-D35myntq.js +0 -14
- package/dist/chevron-down-C2iDorpW.js +0 -14
- package/dist/chevron-left-ztPO84q-.js +0 -14
- package/dist/chevron-right-C_JN0oDt.js +0 -14
- package/dist/chevron-up-CgG8n25g.js +0 -14
- package/dist/circle-Bt3Nlr3q.js +0 -17
- package/dist/circle-small-filled-YMzP6yQU.js +0 -14
- package/dist/clock-BZHremOA.js +0 -20
- package/dist/coins-fkAk6dCo.js +0 -17
- package/dist/contract-BTa4HltT.js +0 -14
- package/dist/cross-Cn09MtQ_.js +0 -14
- package/dist/cross-circle-fill-small-DCz52AuN.js +0 -14
- package/dist/cs-CZ--jOkoHVS.js +0 -55
- package/dist/cs-CZ-BDf9m4Rw.js +0 -113
- package/dist/cs-CZ-BP7niQM9.js +0 -68
- package/dist/cs-CZ-BSWXexr4.js +0 -13
- package/dist/cs-CZ-BsV9NiQ2.js +0 -13
- package/dist/cs-CZ-CyLqoG1j.js +0 -37
- package/dist/cs-CZ-DPVMeRye.js +0 -29
- package/dist/cs-CZ-DY_pQqAT.js +0 -57
- package/dist/cs-CZ-DalFZigH.js +0 -13
- package/dist/da-DK-CI-vfqPo.js +0 -113
- package/dist/da-DK-D4Ojw97o.js +0 -13
- package/dist/da-DK-DU4dCNEw.js +0 -29
- package/dist/da-DK-DYpfNZdP.js +0 -37
- package/dist/da-DK-Dc0QYG8m.js +0 -68
- package/dist/da-DK-JHZnsI59.js +0 -55
- package/dist/da-DK-P3YSaBqs.js +0 -13
- package/dist/da-DK-R_y7YwqQ.js +0 -13
- package/dist/da-DK-jK7c9UL0.js +0 -57
- package/dist/de-DE-BR6CLZw6.js +0 -13
- package/dist/de-DE-BXt1K0Tr.js +0 -37
- package/dist/de-DE-BcuLmcC8.js +0 -13
- package/dist/de-DE-Dz2OsS1F.js +0 -68
- package/dist/de-DE-Dz2l6jRl.js +0 -29
- package/dist/de-DE-VGGEkxUT.js +0 -55
- package/dist/de-DE-nG2MBigU.js +0 -113
- package/dist/de-DE-opyC1JO-.js +0 -13
- package/dist/de-DE-wmerDL2e.js +0 -57
- package/dist/debouncedInputEvent-Bifj90NU.js +0 -109
- package/dist/decision-makers-group-CgddXgrx.js +0 -1944
- package/dist/digital-wallet-D_IpxnkN.js +0 -46
- package/dist/document-1-C08ut-Dt.js +0 -14
- package/dist/document-blurred-2Zpodj3_.js +0 -37
- package/dist/document-cut-off-ClS7RiOp.js +0 -32
- package/dist/document-expired-CjksBq-N.js +0 -38
- package/dist/document-front-DiAairT3.js +0 -30
- package/dist/document-person-vxlA6C5f.js +0 -20
- package/dist/documentUtils-CunPooif.js +0 -218
- package/dist/download-Drhk9k1f.js +0 -17
- package/dist/dropinUtils-DSk8OL7G.js +0 -202
- package/dist/edit-1-CFoDTMvQ.js +0 -14
- package/dist/el-GR-B3FHqTOX.js +0 -13
- package/dist/el-GR-B90M6tcZ.js +0 -37
- package/dist/el-GR-BHG69mXl.js +0 -68
- package/dist/el-GR-BX-MyQZY.js +0 -113
- package/dist/el-GR-Btrk_npt.js +0 -57
- package/dist/el-GR-CWd7XYDU.js +0 -13
- package/dist/el-GR-CofvCav-.js +0 -13
- package/dist/el-GR-MLFY-Gg7.js +0 -29
- package/dist/el-GR-gkaKwnln.js +0 -55
- package/dist/en-US-BPI4FZwa.js +0 -113
- package/dist/en-US-CzEL6t1W.js +0 -55
- package/dist/en-US-D-B35AoN.js +0 -68
- package/dist/en-US-DYo4OF-P.js +0 -29
- package/dist/en-US-Dg505Oh3.js +0 -37
- package/dist/en-US-fyGPkcqX.js +0 -13
- package/dist/en-US-gsp7CD_E.js +0 -57
- package/dist/es-ES-0ROz-BJh.js +0 -29
- package/dist/es-ES-BAg3NqQO.js +0 -13
- package/dist/es-ES-BI_jdT67.js +0 -68
- package/dist/es-ES-BhINIOee.js +0 -13
- package/dist/es-ES-BhNhIf08.js +0 -37
- package/dist/es-ES-Bn9_0wK0.js +0 -55
- package/dist/es-ES-CEp-ttVJ.js +0 -13
- package/dist/es-ES-Q16q2JJ6.js +0 -113
- package/dist/es-ES-Qnc0Q6JH.js +0 -57
- package/dist/et-EE-BMgFCxds.js +0 -37
- package/dist/et-EE-BYSnV6Iq.js +0 -55
- package/dist/et-EE-Bk2IHQWP.js +0 -13
- package/dist/et-EE-C_PZO2aI.js +0 -68
- package/dist/et-EE-Ci8RU2wg.js +0 -13
- package/dist/et-EE-DmShD6oS.js +0 -113
- package/dist/et-EE-TzXANcP2.js +0 -57
- package/dist/et-EE-esci5847.js +0 -29
- package/dist/et-EE-x29FUaYN.js +0 -118
- package/dist/external-link-DCMYUMfW.js +0 -14
- package/dist/fi-FI-B_P4BAda.js +0 -113
- package/dist/fi-FI-CDISJifz.js +0 -13
- package/dist/fi-FI-DjlB2a7k.js +0 -13
- package/dist/fi-FI-Dn2MC8uW.js +0 -57
- package/dist/fi-FI-MiyuQqH8.js +0 -13
- package/dist/fi-FI-PVFqd5Ra.js +0 -55
- package/dist/fi-FI-hwzizPnr.js +0 -68
- package/dist/fi-FI-xXrvDLFe.js +0 -29
- package/dist/fi-FI-ysUrBilO.js +0 -37
- package/dist/fieldConfigurations-D99U6JIQ.js +0 -1402
- package/dist/fr-FR-BSvSKazD.js +0 -37
- package/dist/fr-FR-BWX14yb7.js +0 -57
- package/dist/fr-FR-Bw9O-QAU.js +0 -29
- package/dist/fr-FR-CUdiBCVB.js +0 -113
- package/dist/fr-FR-CYZXbwc9.js +0 -68
- package/dist/fr-FR-DGMVrsJv.js +0 -13
- package/dist/fr-FR-Dx-CiPdB.js +0 -13
- package/dist/fr-FR-aJ3cg4x0.js +0 -13
- package/dist/fr-FR-mJK4hjwD.js +0 -55
- package/dist/funds-in-D8bj0aoE.js +0 -21
- package/dist/getFieldsWithExistingData-BLXGczCN.js +0 -22
- package/dist/getName-_U3PeNHl.js +0 -48
- package/dist/gift-CQ_DEma7.js +0 -14
- package/dist/graph-BJmqglH2.js +0 -21
- package/dist/graph-up-Bq6adtlX.js +0 -20
- package/dist/hasDataChanged-BwDHn0i2.js +0 -19
- package/dist/headquarter-DNYyuuFq.js +0 -21
- package/dist/hotel-BuNql78Z.js +0 -22
- package/dist/house-B6sNRj-B.js +0 -21
- package/dist/hr-HR-BHt_jklG.js +0 -13
- package/dist/hr-HR-BLpGb4f2.js +0 -37
- package/dist/hr-HR-CXpCIMhI.js +0 -113
- package/dist/hr-HR-CZLSQruE.js +0 -57
- package/dist/hr-HR-D8_yhtIo.js +0 -29
- package/dist/hr-HR-VivDwwdW.js +0 -13
- package/dist/hr-HR-bE6cvRCQ.js +0 -68
- package/dist/hr-HR-n7aMHIpM.js +0 -13
- package/dist/hr-HR-qmYyO-nT.js +0 -55
- package/dist/hu-HU-CS-7iNS4.js +0 -55
- package/dist/hu-HU-Ca9Hex26.js +0 -37
- package/dist/hu-HU-DDsdPI5V.js +0 -13
- package/dist/hu-HU-DG-NUDx4.js +0 -68
- package/dist/hu-HU-D_DvlCMw.js +0 -13
- package/dist/hu-HU-DqEBeq-w.js +0 -113
- package/dist/hu-HU-KliQetm5.js +0 -29
- package/dist/hu-HU-WEtpzb41.js +0 -13
- package/dist/hu-HU-kp8Go5hZ.js +0 -57
- package/dist/id-blurred-9dzBOWCE.js +0 -59
- package/dist/id-cut-off-CohJCI2h.js +0 -55
- package/dist/id-front-CSZfvdRg.js +0 -52
- package/dist/id-glare-Q2JWo5ts.js +0 -49
- package/dist/id-verification-instant-BUVBO4R3.js +0 -58
- package/dist/id-verification-manual-B3YZALYU.js +0 -55
- package/dist/iframeWidget-BEBSgwZP.js +0 -234
- package/dist/image-BSihO8lR.js +0 -17
- package/dist/info-vHTZWoJ7.js +0 -21
- package/dist/instant-verification-Dvvkyfmp.js +0 -40
- package/dist/it-IT-B0YGvVgW.js +0 -57
- package/dist/it-IT-BTWkWSJq.js +0 -55
- package/dist/it-IT-C2MZo4KT.js +0 -13
- package/dist/it-IT-DLm11dH5.js +0 -13
- package/dist/it-IT-Erh1DIlj.js +0 -68
- package/dist/it-IT-MwpjRAG6.js +0 -29
- package/dist/it-IT-NCFAqV1F.js +0 -113
- package/dist/it-IT-Qfzc8jnW.js +0 -37
- package/dist/it-IT-yV7ewjWU.js +0 -13
- package/dist/ja-JP-2u5fqLWF.js +0 -29
- package/dist/ja-JP-Bktpl_2b.js +0 -118
- package/dist/ja-JP-CHQ64lw1.js +0 -37
- package/dist/ja-JP-CSz7fEkn.js +0 -55
- package/dist/ja-JP-CWe8f7m4.js +0 -13
- package/dist/ja-JP-C_-moDrA.js +0 -113
- package/dist/ja-JP-Ctsk4z4q.js +0 -151
- package/dist/ja-JP-Dz9IVH4p.js +0 -57
- package/dist/ja-JP-ThzG9vIo.js +0 -68
- package/dist/ja-JP-bz7ekGnF.js +0 -27
- package/dist/localizeDateString-RwwotuyP.js +0 -27
- package/dist/location-Q4oKvnkl.js +0 -17
- package/dist/lt-LT-0RKZeraM.js +0 -37
- package/dist/lt-LT-B6XmKUXx.js +0 -55
- package/dist/lt-LT-BEsBoIQ9.js +0 -29
- package/dist/lt-LT-CU5qHa7a.js +0 -113
- package/dist/lt-LT-CYiW52tl.js +0 -13
- package/dist/lt-LT-Cg9c0kae.js +0 -13
- package/dist/lt-LT-Nd1uRoIj.js +0 -68
- package/dist/lt-LT-W6fTjwB5.js +0 -13
- package/dist/lt-LT-l9rzkFg9.js +0 -57
- package/dist/lv-LV-Bh-WQp0K.js +0 -37
- package/dist/lv-LV-CgMxfFK8.js +0 -13
- package/dist/lv-LV-CpGkmcLz.js +0 -113
- package/dist/lv-LV-CxUmQHF9.js +0 -13
- package/dist/lv-LV-DKhV24CI.js +0 -68
- package/dist/lv-LV-DYbb5pkt.js +0 -57
- package/dist/lv-LV-DsSpy50n.js +0 -55
- package/dist/lv-LV-DsxFGThp.js +0 -13
- package/dist/lv-LV-Veji7-on.js +0 -29
- package/dist/mail-BOdyoVqB.js +0 -14
- package/dist/manual-verification-BvZWqA00.js +0 -41
- package/dist/mapExistingFile-nB9LIvV9.js +0 -156
- package/dist/mapFinancialReportsToFinancialInformation-BgizOY0T.js +0 -67
- package/dist/mapJpAddressSchemaToAddressLocalizations-DnDo_BVY.js +0 -63
- package/dist/mapLegalEntityToIndividualOnfidoSchema-BpjOTE3z.js +0 -143
- package/dist/mapTransferInstrumentToPayoutAccount-DMZUSLNm.js +0 -33
- package/dist/minus-circle-filled-kC2IUvKz.js +0 -17
- package/dist/nl-NL-BMUYBqlF.js +0 -57
- package/dist/nl-NL-Bk-1-C0e.js +0 -13
- package/dist/nl-NL-BuW3jWdI.js +0 -29
- package/dist/nl-NL-CMw-FwQV.js +0 -13
- package/dist/nl-NL-CTf7zH4M.js +0 -55
- package/dist/nl-NL-D7gBNWEY.js +0 -37
- package/dist/nl-NL-DKMs4pB2.js +0 -13
- package/dist/nl-NL-DMpB18Te.js +0 -113
- package/dist/nl-NL-O9GCHMDA.js +0 -68
- package/dist/no-NO-B-oUwe9q.js +0 -13
- package/dist/no-NO-C-gCYc9q.js +0 -37
- package/dist/no-NO-CA0EizAy.js +0 -29
- package/dist/no-NO-CA1aR6Wh.js +0 -68
- package/dist/no-NO-Ca5qoVaU.js +0 -113
- package/dist/no-NO-DKbWxgF-.js +0 -57
- package/dist/no-NO-DN9qf-_I.js +0 -13
- package/dist/no-NO-Dhj0Fh__.js +0 -13
- package/dist/no-NO-RfTK9KAV.js +0 -55
- package/dist/onfido-logo-BWSv__sQ.js +0 -14
- package/dist/options-horizontal-CBmbNv7R.js +0 -18
- package/dist/partner-CPjsrePY.js +0 -18
- package/dist/passport-blurred-B4UDQfmc.js +0 -59
- package/dist/passport-cut-off-C0N2mgLk.js +0 -56
- package/dist/passport-front-BwA7wR91.js +0 -52
- package/dist/passport-front-green-BL4HmtsB.js +0 -232
- package/dist/passport-glare-Mg2ixsYA.js +0 -50
- package/dist/pay-by-link-plane-BVZndh67.js +0 -22
- package/dist/payout-ChUEoLjt.js +0 -20
- package/dist/payout-verification-instant-5u-wvFKv.js +0 -41
- package/dist/payout-verification-manual-BH2mu0UW.js +0 -90
- package/dist/person-DGjUU4S4.js +0 -17
- package/dist/pl-PL-B0zGy_b4.js +0 -57
- package/dist/pl-PL-BKDK0_G8.js +0 -68
- package/dist/pl-PL-BSI0zHO1.js +0 -113
- package/dist/pl-PL-D7nhdbfR.js +0 -29
- package/dist/pl-PL-DGSYzOx6.js +0 -13
- package/dist/pl-PL-Duj3tncM.js +0 -13
- package/dist/pl-PL-Dy8qWH39.js +0 -55
- package/dist/pl-PL-LnVPufjb.js +0 -37
- package/dist/pl-PL-p8YxqOFg.js +0 -13
- package/dist/plaid-logo-CtActXTN.js +0 -14
- package/dist/plus-CWXA5wdX.js +0 -14
- package/dist/plus-circle-filled-CbC0u2Y1.js +0 -17
- package/dist/process-field-configurations-6LtTXNwK.js +0 -324
- package/dist/pt-BR--kaJvtE6.js +0 -57
- package/dist/pt-BR-BbFJsIVX.js +0 -55
- package/dist/pt-BR-Be5ZycMV.js +0 -13
- package/dist/pt-BR-Cj8MlQyq.js +0 -113
- package/dist/pt-BR-Cm4vZocb.js +0 -13
- package/dist/pt-BR-D1nTSLod.js +0 -29
- package/dist/pt-BR-DKrMpM6v.js +0 -13
- package/dist/pt-BR-NtLaWlnZ.js +0 -68
- package/dist/pt-BR-ur86nRrK.js +0 -37
- package/dist/pt-PT-B4F_5NWi.js +0 -55
- package/dist/pt-PT-B9L50746.js +0 -29
- package/dist/pt-PT-BJjCTMYf.js +0 -13
- package/dist/pt-PT-BJkVzfAJ.js +0 -113
- package/dist/pt-PT-BR-BI5Jn.js +0 -13
- package/dist/pt-PT-BZ5ZZm6G.js +0 -57
- package/dist/pt-PT-Bh7v8xbp.js +0 -13
- package/dist/pt-PT-CVNEcs32.js +0 -37
- package/dist/pt-PT-DSxxVA0f.js +0 -68
- package/dist/recurring-CkL4cCM2.js +0 -17
- package/dist/reporting-DerosUNm.js +0 -16
- package/dist/resolveEnvironment-BC4yY4gV.js +0 -164
- package/dist/revenue-accelerate-Dp4Ns_5c.js +0 -17
- package/dist/review-CxIN9azU.js +0 -17
- package/dist/ro-RO-5I4Q_FyK.js +0 -13
- package/dist/ro-RO-B8leE4ZJ.js +0 -13
- package/dist/ro-RO-Bybq8JFn.js +0 -68
- package/dist/ro-RO-CICjAFys.js +0 -55
- package/dist/ro-RO-CdSsgoUG.js +0 -57
- package/dist/ro-RO-DjGku_3y.js +0 -13
- package/dist/ro-RO-DvG65dTt.js +0 -29
- package/dist/ro-RO-RgC5M6CE.js +0 -113
- package/dist/ro-RO-i7lojG2G.js +0 -37
- package/dist/rules-ajv47uCu.js +0 -314
- package/dist/save-Fgy7EDid.js +0 -14
- package/dist/search-C4GZ-Rc1.js +0 -17
- package/dist/show-yPjPmEf8.js +0 -17
- package/dist/singpass-logo-BkMSwiGY.js +0 -17
- package/dist/singpass-verification-instant-hY4eGFwl.js +0 -40
- package/dist/singpass-verification-manual-DwhRpy5Q.js +0 -34
- package/dist/sk-SK-0BVxI7bf.js +0 -113
- package/dist/sk-SK-B5brxU1N.js +0 -37
- package/dist/sk-SK-BMJgOJoa.js +0 -29
- package/dist/sk-SK-BRd5TN22.js +0 -55
- package/dist/sk-SK-BVmoP_EU.js +0 -13
- package/dist/sk-SK-BWwRIx2d.js +0 -13
- package/dist/sk-SK-Bb18qPBw.js +0 -13
- package/dist/sk-SK-BiBWPJUf.js +0 -57
- package/dist/sk-SK-C6rMIxpz.js +0 -68
- package/dist/sl-SI-6s8xycKg.js +0 -13
- package/dist/sl-SI-BMF8YtOm.js +0 -29
- package/dist/sl-SI-BxImW_RL.js +0 -113
- package/dist/sl-SI-CUCrzJQv.js +0 -37
- package/dist/sl-SI-CaJmYb6p.js +0 -13
- package/dist/sl-SI-D8dDckrW.js +0 -55
- package/dist/sl-SI-DtdGMD6i.js +0 -57
- package/dist/sl-SI-ZxyvdgdS.js +0 -13
- package/dist/sl-SI-tPwbFvOI.js +0 -68
- package/dist/solution-payments-CNAat9h7.js +0 -14
- package/dist/store-IuAkDRAp.js +0 -14
- package/dist/sv-SE-B1sbgsnh.js +0 -13
- package/dist/sv-SE-BUq1X9F0.js +0 -113
- package/dist/sv-SE-BYC_f8r7.js +0 -29
- package/dist/sv-SE-C6uPh9g5.js +0 -37
- package/dist/sv-SE-CCFIf86P.js +0 -13
- package/dist/sv-SE-DGpvVvWj.js +0 -55
- package/dist/sv-SE-D_ZnGxiQ.js +0 -13
- package/dist/sv-SE-K1QT1cOt.js +0 -68
- package/dist/sv-SE-kR514dO1.js +0 -57
- package/dist/tax-reporting-graph-DjzwRgE6.js +0 -504
- package/dist/terminal-1-_me9J9h0.js +0 -18
- package/dist/tink-logo-BcIv93ND.js +0 -17
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +0 -9
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard.d.ts +0 -9
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +0 -11
- package/dist/types/components/Business/forms/BusinessDetails/BusinessDetails.d.ts +0 -3
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +0 -14
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +0 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/mandatoryFields.d.ts +0 -3
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +0 -5
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -19
- package/dist/types/components/Individual/fields/DecisionMakerRole/DecisionMakerRole.d.ts +0 -3
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +0 -10
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +0 -23
- package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +0 -9
- package/dist/types/components/Individual/fields/NameFields/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentAlreadyUpload.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentInstantVerification.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentUpload.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +0 -53
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -15
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +0 -9
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/Identity.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +0 -39
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +0 -21
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +0 -39
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -40
- package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -51
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -29
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +0 -13
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +0 -22
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -22
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +0 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +0 -12
- package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/DataConflictsModal.d.ts +0 -24
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +0 -17
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -20
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +0 -7
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +0 -7
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +0 -46
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +0 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/validateExtractionResult.d.ts +0 -12
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -52
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +0 -46
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +0 -59
- package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +0 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +0 -13
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +0 -7
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +0 -4
- package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +0 -3
- package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +0 -3
- package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +0 -8
- package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +0 -5
- package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +0 -3
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +0 -3
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualOnfidoSchema.d.ts +0 -3
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +0 -2
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +0 -4
- package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +0 -3
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +0 -3
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +0 -8
- package/dist/types/components/ui/molecules/Card/Card.d.ts +0 -3
- package/dist/types/components/ui/molecules/Card/types.d.ts +0 -26
- package/dist/types/embeds/EmbedBaseElement.d.ts +0 -41
- package/dist/types/embeds/EmbedCore.d.ts +0 -22
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +0 -13
- package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +0 -12
- package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +0 -12
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +0 -12
- package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +0 -16
- package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +0 -14
- package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +0 -20
- package/dist/types-6CojAGL0.js +0 -88
- package/dist/types-DRdQDn19.js +0 -34
- package/dist/types-DnURYYMD.js +0 -74
- package/dist/types-f66rmUFy.js +0 -164
- package/dist/upload-BF65P4KM.js +0 -17
- package/dist/us-check-CYY6Crhr.js +0 -46
- package/dist/us-check-account-number-C7KE5YzX.js +0 -48
- package/dist/us-check-routing-number-DUbhsYAR.js +0 -49
- package/dist/useAssociatedLegalEntity-DlO3x839.js +0 -33
- package/dist/useCreateLegalEntity-bNnaPjOD.js +0 -31
- package/dist/useDataset-ClAqXJGw.js +0 -220
- package/dist/useForm-C8SA0ETz.js +0 -1623
- package/dist/useGlobalData-VlkNij1C.js +0 -68
- package/dist/useMultiForm-C3xbz4Qc.js +0 -864
- package/dist/useOnboardingStatus-Co_xweKQ.js +0 -27
- package/dist/useScenarios-1AMNJb7O.js +0 -46
- package/dist/useTermsOfServiceStatus-DTT-jTFK.js +0 -42
- package/dist/useToastContext-mFlAEux_.js +0 -60
- package/dist/useUnincorporatedPartnershipMembers-DeGZrXXu.js +0 -99
- package/dist/useUpdateBusinessLines-DVnOsDCX.js +0 -46
- package/dist/useUpdateLegalEntity-Hn7ZLWeu.js +0 -39
- package/dist/utils-BH-_hzMa.js +0 -237
- package/dist/utils-BvNcGa2w.js +0 -774
- package/dist/validate-CJSILaC_.js +0 -41
- package/dist/validate-DDHUnwWC.js +0 -100
- package/dist/validationError-CfIII-oi.js +0 -86
- package/dist/warning-circle-fill-CEN1WL7A.js +0 -17
- package/dist/warning-diamond-filled-BfXMlVrG.js +0 -17
- package/dist/webinar-DqjqrNEv.js +0 -22
- package/dist/yapily-logo-CZ4ywjwA.js +0 -17
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/PayoutAccountTaskListItem.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskList.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListGroup.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListItem.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/types.d.ts +0 -0
- /package/dist/types/components/Business/{tasks/BusinessDetailsMultiformDropin → forms/BusinessDetails}/BusinessDetailsMultiform.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/FinancialInformation.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/ReportedValue.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/types.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/validate.d.ts +0 -0
- /package/dist/types/components/Business/tasks/{BusinessDetailsMultiformDropin → BusinessDetailsDropin}/validate.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/AdditionalPersonalDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/BasicDetails → BasicDetails}/BasicDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/GuidanceQuestion → GuidanceQuestion}/GuidanceQuestion.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/IdDocumentManualUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdNowVerificationModal → IdNowVerificationModal}/IdNowVerificationModal.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/IdVerification.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/idVerificationProviderId.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/types.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/ManualIdUpload → ManualIdUpload}/ManualIdUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/index.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/ProofOfResidency.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaireModalContent.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/tasks/{IndividualOnfidoDropin/IndividualOnfidoStore.d.ts → IndividualDropin/IndividualStore.d.ts} +0 -0
- /package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/LocalizedNameFields.d.ts +0 -0
|
@@ -1,1853 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1685ae8c-32c5-4064-acf6-79f05eadb22c", e._sentryDebugIdIdentifier = "sentry-dbid-1685ae8c-32c5-4064-acf6-79f05eadb22c");
|
|
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-bNnaPjOD.js";
|
|
13
|
-
import { c as useInvalidateRootLegalEntity, a as useToastContext } from "./useToastContext-mFlAEux_.js";
|
|
14
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-Hn7ZLWeu.js";
|
|
15
|
-
import { aZ as reverseMapping, a_ as isEeaCountry, t as LegalEntityTypes, aA as cloneObject, b as useApiContext, j as useQuery, m as httpGet, W as useI18nContext, u as useTranslation, H as Typography, G as translateStringOrObject, a0 as useAnalyticsContext, o as useSettingsContext, L as Loader, B as Button } from "./StoreProvider-l6WD5T55.js";
|
|
16
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-BVw3rIvU.js";
|
|
17
|
-
import { I as InputText, S as SettingNames } from "./InputText-DHRZ5RNd.js";
|
|
18
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-DlO3x839.js";
|
|
19
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-DSk8OL7G.js";
|
|
20
|
-
import { u as useMultiForm } from "./useMultiForm-C3xbz4Qc.js";
|
|
21
|
-
import { E as EndStateLayout } from "./EndStateLayout-CPXu6AzB.js";
|
|
22
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-CfIII-oi.js";
|
|
23
|
-
import { t as trackNavigation } from "./trackNavigation-db_h46BT.js";
|
|
24
|
-
import { a as datasetUtilities } from "./useDataset-ClAqXJGw.js";
|
|
25
|
-
import { l as localizeDateString } from "./localizeDateString-RwwotuyP.js";
|
|
26
|
-
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-BgizOY0T.js";
|
|
27
|
-
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
28
|
-
import { c as createFormUtils, a as Link, d as getFieldProps, H as Header, E as ErrorPanel } from "./CountryField-D36v7bff.js";
|
|
29
|
-
import { R as RadioGroup, I as InputDate, i as useFormContext, g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, A as Address, e as getAddressSchemaLabelsByCountry } from "./Address-DrRgozSN.js";
|
|
30
|
-
import { c as currencyByCountry } from "./types-6CojAGL0.js";
|
|
31
|
-
import { F as Field, S as Select } from "./useForm-C8SA0ETz.js";
|
|
32
|
-
import { L as LegalFormField, I as InputNumber, b as Currency, C as CURRENCY_FIELD, a as InputCurrency } from "./Currency-DlHtZ9aJ.js";
|
|
33
|
-
import { C as Checkbox } from "./debouncedInputEvent-Bifj90NU.js";
|
|
34
|
-
import { b as businessFinancingMultiformRules } from "./validate-DDHUnwWC.js";
|
|
35
|
-
const businessFinancingBaseMapping = {
|
|
36
|
-
legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
|
|
37
|
-
legalInformationInsolvency: "organization.statusOfLegalProceeding",
|
|
38
|
-
legalEntityIdentifier: "organization.globalLegalEntityIdentifier",
|
|
39
|
-
naceCode: "organization.economicSector",
|
|
40
|
-
legalForm: "organization.legalForm",
|
|
41
|
-
legalName: "organization.legalName",
|
|
42
|
-
"registrationAddress.city": "organization.registeredAddress.city",
|
|
43
|
-
"registrationAddress.country": "organization.registeredAddress.country",
|
|
44
|
-
"registrationAddress.postalCode": "organization.registeredAddress.postalCode",
|
|
45
|
-
"registrationAddress.stateOrProvince": "organization.registeredAddress.stateOrProvince",
|
|
46
|
-
"registrationAddress.address": "organization.registeredAddress.street",
|
|
47
|
-
"registrationAddress.otherAddressInformation": "organization.registeredAddress.street2"
|
|
48
|
-
};
|
|
49
|
-
const businessFinancingComponentsKeyMapping = {
|
|
50
|
-
...businessFinancingBaseMapping
|
|
51
|
-
};
|
|
52
|
-
const businessFinancingApiKeyMapping = {
|
|
53
|
-
...reverseMapping(businessFinancingBaseMapping)
|
|
54
|
-
};
|
|
55
|
-
const mapBusinessFinancingToLegalEntity = (data) => ({
|
|
56
|
-
...formatObject(
|
|
57
|
-
data,
|
|
58
|
-
businessFinancingApiKeyMapping
|
|
59
|
-
)
|
|
60
|
-
});
|
|
61
|
-
const BusinessFinancingPages = {
|
|
62
|
-
COMPANY_PAGE: "company",
|
|
63
|
-
PARENT_COMPANY_PAGE: "parentCompany",
|
|
64
|
-
ULTIMATE_PARENT_COMPANY_PAGE: "ultimateParentCompany"
|
|
65
|
-
};
|
|
66
|
-
const BusinessFinancingRadioIds = {
|
|
67
|
-
YES: "Yes",
|
|
68
|
-
NO: "No"
|
|
69
|
-
};
|
|
70
|
-
const businessFinancingRadioItems = [
|
|
71
|
-
{
|
|
72
|
-
id: BusinessFinancingRadioIds.YES,
|
|
73
|
-
name: "yes"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: BusinessFinancingRadioIds.NO,
|
|
77
|
-
name: "no"
|
|
78
|
-
}
|
|
79
|
-
];
|
|
80
|
-
const businessFinancingParentRadioItems = [
|
|
81
|
-
{
|
|
82
|
-
id: BusinessFinancingRadioIds.YES,
|
|
83
|
-
name: "yes"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
id: BusinessFinancingRadioIds.NO,
|
|
87
|
-
name: "noIdontKnow"
|
|
88
|
-
}
|
|
89
|
-
];
|
|
90
|
-
const companySchemaKeys = [
|
|
91
|
-
"legalForm",
|
|
92
|
-
"naceCode",
|
|
93
|
-
"numberOfEmployees",
|
|
94
|
-
"doesYourCompanyHaveLEI",
|
|
95
|
-
"legalEntityIdentifier",
|
|
96
|
-
"isCompanyOwnedByAnotherCompany",
|
|
97
|
-
"isParentOwnedByAnotherCompany",
|
|
98
|
-
"financialReportingDate",
|
|
99
|
-
"currency",
|
|
100
|
-
"netAssets",
|
|
101
|
-
"annualTurnover",
|
|
102
|
-
"legalInformationInsolvency",
|
|
103
|
-
"legalProceedingsDate"
|
|
104
|
-
];
|
|
105
|
-
const parentCompaniesSchemaKeys = [
|
|
106
|
-
"legalName",
|
|
107
|
-
"legalForm",
|
|
108
|
-
"naceCode",
|
|
109
|
-
"numberOfEmployees",
|
|
110
|
-
"doesYourCompanyHaveLEI",
|
|
111
|
-
"legalEntityIdentifier",
|
|
112
|
-
"isThisAddressTheMainHeadquarters",
|
|
113
|
-
"financialReportingDate",
|
|
114
|
-
"currency",
|
|
115
|
-
"netAssets",
|
|
116
|
-
"annualTurnover",
|
|
117
|
-
"legalInformationInsolvency",
|
|
118
|
-
"legalProceedingsDate",
|
|
119
|
-
"registrationAddress",
|
|
120
|
-
"sameAddressAsRootEntity"
|
|
121
|
-
];
|
|
122
|
-
const businessFinancingForms = {
|
|
123
|
-
company: {
|
|
124
|
-
formId: "company",
|
|
125
|
-
formName: "yourBusinessInformation",
|
|
126
|
-
fields: [...companySchemaKeys]
|
|
127
|
-
},
|
|
128
|
-
parentCompany: {
|
|
129
|
-
formId: "parentCompany",
|
|
130
|
-
formName: "parentCompanyInformation",
|
|
131
|
-
fields: [...parentCompaniesSchemaKeys]
|
|
132
|
-
},
|
|
133
|
-
ultimateParentCompany: {
|
|
134
|
-
formId: "ultimateParentCompany",
|
|
135
|
-
formName: "ultimateParentCompanyInformation",
|
|
136
|
-
fields: [...parentCompaniesSchemaKeys]
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
const BusinessFinancingIndices = {
|
|
140
|
-
COMPANY: "company",
|
|
141
|
-
PARENT_COMPANY: "parentCompany",
|
|
142
|
-
ULTIMATE_PARENT_COMPANY: "ultimateParentCompany"
|
|
143
|
-
};
|
|
144
|
-
const getLegalEntityId = (businessFinancingIndex, rootLegalEntity) => {
|
|
145
|
-
if (!rootLegalEntity) return void 0;
|
|
146
|
-
if (businessFinancingIndex === BusinessFinancingIndices.COMPANY) return rootLegalEntity.id;
|
|
147
|
-
if (!rootLegalEntity?.entityAssociations) return void 0;
|
|
148
|
-
const businessFinancingEntityType = "immediateParentCompany";
|
|
149
|
-
const businessFinancingEntityAssociation = rootLegalEntity.entityAssociations?.find(
|
|
150
|
-
(entity) => entity.type === businessFinancingEntityType
|
|
151
|
-
);
|
|
152
|
-
return businessFinancingEntityAssociation?.legalEntityId;
|
|
153
|
-
};
|
|
154
|
-
const USER_LOCALE = typeof navigator !== "undefined" ? navigator.language : "en-US";
|
|
155
|
-
const entityHasParentCompany = (data) => data.company?.isCompanyOwnedByAnotherCompany && data.company?.isCompanyOwnedByAnotherCompany === "Yes";
|
|
156
|
-
const entityHasUltimateParentCompany = (data) => data.company?.isParentOwnedByAnotherCompany && data.company?.isParentOwnedByAnotherCompany === "Yes";
|
|
157
|
-
const financialReportsToString = (financialReports) => {
|
|
158
|
-
return {
|
|
159
|
-
...financialReports,
|
|
160
|
-
numberOfEmployees: financialReports.numberOfEmployees ? financialReports.numberOfEmployees.toString() : void 0,
|
|
161
|
-
netAssets: financialReports.netAssets ? financialReports.netAssets.toString() : void 0,
|
|
162
|
-
annualTurnover: financialReports.annualTurnover ? financialReports.annualTurnover.toString() : void 0,
|
|
163
|
-
balanceSheetTotal: financialReports.balanceSheetTotal ? financialReports.balanceSheetTotal.toString() : void 0
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLegalEntity) => {
|
|
167
|
-
const businessFinancingData = data[businessFinancingIndex];
|
|
168
|
-
if (!businessFinancingData) return null;
|
|
169
|
-
if (businessFinancingIndex === BusinessFinancingIndices.PARENT_COMPANY && !entityHasParentCompany(data)) {
|
|
170
|
-
return null;
|
|
171
|
-
}
|
|
172
|
-
if (businessFinancingIndex === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY && (!entityHasUltimateParentCompany(data) || !entityHasParentCompany(data))) {
|
|
173
|
-
return null;
|
|
174
|
-
}
|
|
175
|
-
const businessFinancingDetails = mapBusinessFinancingToLegalEntity(businessFinancingData);
|
|
176
|
-
if (!businessFinancingDetails.organization) return null;
|
|
177
|
-
const businessFinancingCountry = businessFinancingDetails.organization.registeredAddress?.country || rootLegalEntity?.organization?.registeredAddress?.country;
|
|
178
|
-
if (businessFinancingData.financialReportingDate && isEeaCountry(businessFinancingCountry)) {
|
|
179
|
-
const finReports = {
|
|
180
|
-
currency: businessFinancingData.currency,
|
|
181
|
-
financialReportingDate: businessFinancingData.financialReportingDate,
|
|
182
|
-
numberOfEmployees: businessFinancingData.numberOfEmployees ? Number(businessFinancingData.numberOfEmployees) : void 0,
|
|
183
|
-
netAssets: businessFinancingData.netAssets ? Number(businessFinancingData.netAssets) : void 0,
|
|
184
|
-
annualTurnover: businessFinancingData.annualTurnover ? Number(businessFinancingData.annualTurnover) : void 0
|
|
185
|
-
};
|
|
186
|
-
const businessFinancingFinancialReport = mapFinancialInformationToFinancialReport(finReports);
|
|
187
|
-
businessFinancingDetails.organization.financialReports = [businessFinancingFinancialReport];
|
|
188
|
-
}
|
|
189
|
-
if (!isEeaCountry(businessFinancingCountry)) {
|
|
190
|
-
businessFinancingDetails.organization.financialReports = void 0;
|
|
191
|
-
}
|
|
192
|
-
if (businessFinancingDetails.organization.statusOfLegalProceeding === "iDontKnow") {
|
|
193
|
-
businessFinancingDetails.organization.statusOfLegalProceeding = "noLegalActionsTaken";
|
|
194
|
-
}
|
|
195
|
-
if (businessFinancingDetails.organization.statusOfLegalProceeding === "iDontKnow" || businessFinancingDetails.organization.statusOfLegalProceeding === "noLegalActionsTaken") {
|
|
196
|
-
businessFinancingDetails.organization.dateOfInitiationOfLegalProceeding = "";
|
|
197
|
-
}
|
|
198
|
-
if (businessFinancingData.sameAddressAsRootEntity && rootLegalEntity?.organization?.registeredAddress) {
|
|
199
|
-
businessFinancingDetails.organization.registeredAddress = {
|
|
200
|
-
...rootLegalEntity.organization.registeredAddress
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
if (businessFinancingData.isThisAddressTheMainHeadquarters) {
|
|
204
|
-
businessFinancingDetails.organization.principalPlaceOfBusiness = {
|
|
205
|
-
...businessFinancingDetails.organization.registeredAddress
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
if (businessFinancingData.doesYourCompanyHaveLEI !== "Yes") {
|
|
209
|
-
delete businessFinancingDetails.organization.globalLegalEntityIdentifier;
|
|
210
|
-
}
|
|
211
|
-
const businessFinancingLegalEntityId = getLegalEntityId(businessFinancingIndex, rootLegalEntity);
|
|
212
|
-
if (businessFinancingLegalEntityId) {
|
|
213
|
-
delete businessFinancingDetails.type;
|
|
214
|
-
businessFinancingDetails.id = businessFinancingLegalEntityId;
|
|
215
|
-
} else {
|
|
216
|
-
delete businessFinancingDetails.id;
|
|
217
|
-
businessFinancingDetails.type = LegalEntityTypes.ORGANIZATION;
|
|
218
|
-
}
|
|
219
|
-
return businessFinancingDetails;
|
|
220
|
-
};
|
|
221
|
-
const appendBusinessFinancingData = (legalOrganization, businessFinancingData) => {
|
|
222
|
-
if (!legalOrganization || !businessFinancingData) return businessFinancingData;
|
|
223
|
-
const clonedBusinessFinancingData = { ...businessFinancingData };
|
|
224
|
-
let financialReportData = {};
|
|
225
|
-
if (legalOrganization.financialReports) {
|
|
226
|
-
const financialReportsArray = Array.isArray(legalOrganization.financialReports) ? legalOrganization.financialReports : [legalOrganization.financialReports];
|
|
227
|
-
const financialInformationSchema = mapFinancialReportsToFinancialInformation(
|
|
228
|
-
financialReportsArray,
|
|
229
|
-
false
|
|
230
|
-
);
|
|
231
|
-
financialReportData = financialReportsToString(financialInformationSchema);
|
|
232
|
-
if (financialReportData.numberOfEmployees) {
|
|
233
|
-
financialReportData.numberOfEmployees = financialReportData.numberOfEmployees.toString();
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
return {
|
|
237
|
-
...clonedBusinessFinancingData,
|
|
238
|
-
...financialReportData,
|
|
239
|
-
numberOfEmployees: financialReportData.numberOfEmployees ? financialReportData.numberOfEmployees.toString() : void 0,
|
|
240
|
-
doesYourCompanyHaveLEI: legalOrganization.globalLegalEntityIdentifier ? "Yes" : "No",
|
|
241
|
-
isThisAddressTheMainHeadquarters: legalOrganization.principalPlaceOfBusiness ? "Yes" : clonedBusinessFinancingData.isThisAddressTheMainHeadquarters
|
|
242
|
-
};
|
|
243
|
-
};
|
|
244
|
-
const handleBusinessFinancingFormSubmission = async (businessFinancingType, details, createFunction, updateFunction, entityId) => {
|
|
245
|
-
if (!details) return;
|
|
246
|
-
try {
|
|
247
|
-
if (entityId) {
|
|
248
|
-
return await updateFunction({ ...details, id: entityId });
|
|
249
|
-
}
|
|
250
|
-
return await createFunction(details);
|
|
251
|
-
} catch (error) {
|
|
252
|
-
const businessFinancingError = new Error(`Form submission failed for ${businessFinancingType}`);
|
|
253
|
-
businessFinancingError.actualError = error;
|
|
254
|
-
businessFinancingError.businessFinancingType = businessFinancingError;
|
|
255
|
-
throw businessFinancingError;
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
|
-
const getCompanySchemaKeys = (country, currentData, schemaKeys) => {
|
|
259
|
-
const fieldsToRemove = [];
|
|
260
|
-
if (!isEeaCountry(country)) {
|
|
261
|
-
fieldsToRemove.push(
|
|
262
|
-
"financialReportingDate",
|
|
263
|
-
"netAssets",
|
|
264
|
-
"annualTurnover",
|
|
265
|
-
"currency",
|
|
266
|
-
"numberOfEmployees"
|
|
267
|
-
);
|
|
268
|
-
}
|
|
269
|
-
if (currentData.isCompanyOwnedByAnotherCompany !== "Yes") {
|
|
270
|
-
fieldsToRemove.push("isParentOwnedByAnotherCompany");
|
|
271
|
-
}
|
|
272
|
-
if (currentData.doesYourCompanyHaveLEI !== "Yes") {
|
|
273
|
-
fieldsToRemove.push("legalEntityIdentifier");
|
|
274
|
-
}
|
|
275
|
-
if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) {
|
|
276
|
-
fieldsToRemove.push("legalProceedingsDate");
|
|
277
|
-
}
|
|
278
|
-
return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
|
|
279
|
-
};
|
|
280
|
-
const getParentCompanySchemaKeys = (currentData, schemaKeys) => {
|
|
281
|
-
const fieldsToRemove = [];
|
|
282
|
-
const companyCountry = currentData?.registrationAddress?.country;
|
|
283
|
-
if (!isEeaCountry(companyCountry)) {
|
|
284
|
-
fieldsToRemove.push(
|
|
285
|
-
"financialReportingDate",
|
|
286
|
-
"netAssets",
|
|
287
|
-
"annualTurnover",
|
|
288
|
-
"currency",
|
|
289
|
-
"numberOfEmployees"
|
|
290
|
-
);
|
|
291
|
-
}
|
|
292
|
-
if (currentData?.sameAddressAsRootEntity) {
|
|
293
|
-
fieldsToRemove.push("registrationAddress");
|
|
294
|
-
}
|
|
295
|
-
if (currentData.doesYourCompanyHaveLEI !== "Yes") {
|
|
296
|
-
fieldsToRemove.push("legalEntityIdentifier");
|
|
297
|
-
}
|
|
298
|
-
if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) {
|
|
299
|
-
fieldsToRemove.push("legalProceedingsDate");
|
|
300
|
-
}
|
|
301
|
-
return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
|
|
302
|
-
};
|
|
303
|
-
const getBusinessFinancingRequiredFields = (country, data) => {
|
|
304
|
-
let requiredFields = {
|
|
305
|
-
company: companySchemaKeys
|
|
306
|
-
};
|
|
307
|
-
if (!data) {
|
|
308
|
-
return requiredFields;
|
|
309
|
-
}
|
|
310
|
-
const { company, parentCompany = {}, ultimateParentCompany = {} } = data;
|
|
311
|
-
if (company) {
|
|
312
|
-
requiredFields.company = getCompanySchemaKeys(country, company, companySchemaKeys);
|
|
313
|
-
}
|
|
314
|
-
if (company?.isCompanyOwnedByAnotherCompany === "Yes") {
|
|
315
|
-
const parentCompanyRequiredFields = getParentCompanySchemaKeys(
|
|
316
|
-
parentCompany,
|
|
317
|
-
parentCompaniesSchemaKeys
|
|
318
|
-
);
|
|
319
|
-
requiredFields = {
|
|
320
|
-
...requiredFields,
|
|
321
|
-
parentCompany: parentCompanyRequiredFields
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
if (company?.isParentOwnedByAnotherCompany === "Yes") {
|
|
325
|
-
const ultimateParentCompanyRequiredFields = getParentCompanySchemaKeys(
|
|
326
|
-
ultimateParentCompany,
|
|
327
|
-
parentCompaniesSchemaKeys
|
|
328
|
-
);
|
|
329
|
-
requiredFields = {
|
|
330
|
-
...requiredFields,
|
|
331
|
-
ultimateParentCompany: ultimateParentCompanyRequiredFields
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
return requiredFields;
|
|
335
|
-
};
|
|
336
|
-
const getAddressCountryForParentCompany = (parentCompany, leAddress) => {
|
|
337
|
-
return parentCompany?.sameAddressAsRootEntity && leAddress ? leAddress?.country : parentCompany?.registrationAddress?.country;
|
|
338
|
-
};
|
|
339
|
-
const customLabels = {
|
|
340
|
-
company: {
|
|
341
|
-
legalForm: "businessStructure",
|
|
342
|
-
naceCode: "industryAndNaceCode",
|
|
343
|
-
netAssets: "totalAssets",
|
|
344
|
-
annualTurnover: "annualTurnover",
|
|
345
|
-
legalInformationInsolvency: "legalProceedings",
|
|
346
|
-
isCompanyOwnedByAnotherCompany: "hasParentCompany",
|
|
347
|
-
isParentOwnedByAnotherCompany: "hasUltimateParentCompany",
|
|
348
|
-
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
349
|
-
},
|
|
350
|
-
parentCompany: {
|
|
351
|
-
legalForm: "businessStructure",
|
|
352
|
-
naceCode: "industryAndNaceCode",
|
|
353
|
-
netAssets: "totalAssets",
|
|
354
|
-
annualTurnover: "annualTurnover",
|
|
355
|
-
legalInformationInsolvency: "legalProceedings",
|
|
356
|
-
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
357
|
-
},
|
|
358
|
-
ultimateParentCompany: {
|
|
359
|
-
legalForm: "businessStructure",
|
|
360
|
-
naceCode: "industryAndNaceCode",
|
|
361
|
-
netAssets: "totalAssets",
|
|
362
|
-
annualTurnover: "annualTurnover",
|
|
363
|
-
legalInformationInsolvency: "legalProceedings",
|
|
364
|
-
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
const getTranslatedLegalInsolvency = (t, insolvencyData) => {
|
|
368
|
-
if (!insolvencyData) return void 0;
|
|
369
|
-
return insolvencyData === "noLegalActionsTaken" ? t(($) => $["no"]) : t(($) => $[insolvencyData]);
|
|
370
|
-
};
|
|
371
|
-
const getValidUserLocale = (locale) => {
|
|
372
|
-
try {
|
|
373
|
-
new Intl.NumberFormat(locale);
|
|
374
|
-
return locale;
|
|
375
|
-
} catch (error) {
|
|
376
|
-
console.warn(`Invalid locale '${locale}' provided. Falling back to 'en-US'.`, error);
|
|
377
|
-
return "en-US";
|
|
378
|
-
}
|
|
379
|
-
};
|
|
380
|
-
const getFormattedAmount = (value, currency) => {
|
|
381
|
-
if (!value) return void 0;
|
|
382
|
-
const userLocale = getValidUserLocale(USER_LOCALE);
|
|
383
|
-
const formattedValue = Number(value).toLocaleString(userLocale);
|
|
384
|
-
return `${currency} ${formattedValue}`;
|
|
385
|
-
};
|
|
386
|
-
const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) => {
|
|
387
|
-
const summaryData = cloneObject(data) || {};
|
|
388
|
-
const { company, parentCompany, ultimateParentCompany } = summaryData;
|
|
389
|
-
if (company) {
|
|
390
|
-
company.legalForm = company.legalFormLabel;
|
|
391
|
-
company.naceCode = company.naceCodeLabel;
|
|
392
|
-
company.legalEntityIdentifier = company.legalEntityIdentifier ?? "None";
|
|
393
|
-
company.legalInformationInsolvency = getTranslatedLegalInsolvency(
|
|
394
|
-
t,
|
|
395
|
-
company?.legalInformationInsolvency
|
|
396
|
-
);
|
|
397
|
-
company.annualTurnover = getFormattedAmount(company.annualTurnover, company.currency);
|
|
398
|
-
company.netAssets = getFormattedAmount(company.netAssets, company.currency);
|
|
399
|
-
const { legalProceedingsDate, financialReportingDate } = company;
|
|
400
|
-
company.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
|
|
401
|
-
company.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
|
|
402
|
-
}
|
|
403
|
-
if (parentCompany) {
|
|
404
|
-
const {
|
|
405
|
-
legalName,
|
|
406
|
-
legalFormLabel,
|
|
407
|
-
naceCodeLabel,
|
|
408
|
-
country,
|
|
409
|
-
legalEntityIdentifier,
|
|
410
|
-
legalInformationInsolvency,
|
|
411
|
-
annualTurnover,
|
|
412
|
-
currency,
|
|
413
|
-
netAssets,
|
|
414
|
-
legalProceedingsDate,
|
|
415
|
-
financialReportingDate,
|
|
416
|
-
sameAddressAsRootEntity,
|
|
417
|
-
registrationAddress
|
|
418
|
-
} = parentCompany;
|
|
419
|
-
if (legalName) {
|
|
420
|
-
parentCompany.legalForm = legalFormLabel;
|
|
421
|
-
parentCompany.naceCode = naceCodeLabel;
|
|
422
|
-
parentCompany.country = country ? datasetUtils.getCountryName(country) : "";
|
|
423
|
-
if (registrationAddress) {
|
|
424
|
-
parentCompany.registrationAddress = {
|
|
425
|
-
...registrationAddress,
|
|
426
|
-
country: datasetUtils.getCountryName(registrationAddress?.country)
|
|
427
|
-
};
|
|
428
|
-
}
|
|
429
|
-
parentCompany.legalEntityIdentifier = legalEntityIdentifier ?? "None";
|
|
430
|
-
parentCompany.legalInformationInsolvency = getTranslatedLegalInsolvency(
|
|
431
|
-
t,
|
|
432
|
-
legalInformationInsolvency
|
|
433
|
-
);
|
|
434
|
-
parentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
|
|
435
|
-
parentCompany.netAssets = getFormattedAmount(netAssets, currency);
|
|
436
|
-
parentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
|
|
437
|
-
parentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
|
|
438
|
-
if (sameAddressAsRootEntity) {
|
|
439
|
-
delete parentCompany.country;
|
|
440
|
-
summaryData.parentCompany = {
|
|
441
|
-
...parentCompany,
|
|
442
|
-
registrationAddress: {
|
|
443
|
-
...rootLeAddress,
|
|
444
|
-
country: datasetUtils.getCountryName(rootLeAddress?.country)
|
|
445
|
-
}
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
if (ultimateParentCompany) {
|
|
451
|
-
const {
|
|
452
|
-
legalName,
|
|
453
|
-
legalFormLabel,
|
|
454
|
-
naceCodeLabel,
|
|
455
|
-
country,
|
|
456
|
-
legalEntityIdentifier,
|
|
457
|
-
legalInformationInsolvency,
|
|
458
|
-
annualTurnover,
|
|
459
|
-
currency,
|
|
460
|
-
netAssets,
|
|
461
|
-
legalProceedingsDate,
|
|
462
|
-
financialReportingDate,
|
|
463
|
-
sameAddressAsRootEntity,
|
|
464
|
-
registrationAddress
|
|
465
|
-
} = ultimateParentCompany;
|
|
466
|
-
if (legalName) {
|
|
467
|
-
ultimateParentCompany.legalForm = legalFormLabel;
|
|
468
|
-
ultimateParentCompany.naceCode = naceCodeLabel;
|
|
469
|
-
ultimateParentCompany.country = country ? datasetUtils.getCountryName(country) : "";
|
|
470
|
-
if (registrationAddress) {
|
|
471
|
-
ultimateParentCompany.registrationAddress = {
|
|
472
|
-
...registrationAddress,
|
|
473
|
-
country: datasetUtils.getCountryName(registrationAddress?.country)
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
ultimateParentCompany.legalEntityIdentifier = legalEntityIdentifier ?? "None";
|
|
477
|
-
ultimateParentCompany.legalInformationInsolvency = getTranslatedLegalInsolvency(
|
|
478
|
-
t,
|
|
479
|
-
legalInformationInsolvency
|
|
480
|
-
);
|
|
481
|
-
ultimateParentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
|
|
482
|
-
ultimateParentCompany.netAssets = getFormattedAmount(netAssets, currency);
|
|
483
|
-
ultimateParentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
|
|
484
|
-
ultimateParentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
|
|
485
|
-
if (sameAddressAsRootEntity) {
|
|
486
|
-
delete ultimateParentCompany.country;
|
|
487
|
-
summaryData.ultimateParentCompany = {
|
|
488
|
-
...ultimateParentCompany,
|
|
489
|
-
registrationAddress: {
|
|
490
|
-
...rootLeAddress,
|
|
491
|
-
country: datasetUtils.getCountryName(rootLeAddress?.country)
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
return summaryData;
|
|
498
|
-
};
|
|
499
|
-
const mapLegalEntityToBusinessFinancing = (legalEntity) => formatObject(legalEntity, businessFinancingComponentsKeyMapping);
|
|
500
|
-
const getNaceCodes = async (baseUrl) => {
|
|
501
|
-
return httpGet({
|
|
502
|
-
baseUrl,
|
|
503
|
-
path: `datasets/naceCodes`
|
|
504
|
-
});
|
|
505
|
-
};
|
|
506
|
-
const useNaceCodes = (options) => {
|
|
507
|
-
const { baseUrl } = useApiContext();
|
|
508
|
-
return useQuery({
|
|
509
|
-
queryKey: ["naceCodes"],
|
|
510
|
-
queryFn: () => getNaceCodes(baseUrl.value),
|
|
511
|
-
...options
|
|
512
|
-
});
|
|
513
|
-
};
|
|
514
|
-
function NaceCodeField({
|
|
515
|
-
name = "naceCode",
|
|
516
|
-
data,
|
|
517
|
-
valid,
|
|
518
|
-
errorMessage,
|
|
519
|
-
label,
|
|
520
|
-
readonly,
|
|
521
|
-
handleChangeFor,
|
|
522
|
-
helperText
|
|
523
|
-
}) {
|
|
524
|
-
const { i18n } = useI18nContext();
|
|
525
|
-
const { data: naceCodesData } = useNaceCodes();
|
|
526
|
-
const handleChangeForRef = useRef(handleChangeFor);
|
|
527
|
-
useEffect(() => {
|
|
528
|
-
handleChangeForRef.current = handleChangeFor;
|
|
529
|
-
}, [handleChangeFor]);
|
|
530
|
-
const handleChangeForNaceCode = (e) => {
|
|
531
|
-
const naceCodeEvent = {
|
|
532
|
-
target: {
|
|
533
|
-
name: "naceCode",
|
|
534
|
-
value: e.target.value
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
|
-
handleChangeFor("naceCode")(naceCodeEvent);
|
|
538
|
-
};
|
|
539
|
-
useEffect(() => {
|
|
540
|
-
const selectedLabel = naceCodesData?.find((naceCode) => naceCode.id === data.naceCode)?.name;
|
|
541
|
-
const naceCodeEvent = {
|
|
542
|
-
target: {
|
|
543
|
-
name: "naceCodeLabel",
|
|
544
|
-
value: selectedLabel
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
handleChangeForRef.current("naceCodeLabel")(naceCodeEvent);
|
|
548
|
-
}, [data.naceCode, naceCodesData]);
|
|
549
|
-
return /* @__PURE__ */ jsx(
|
|
550
|
-
Field,
|
|
551
|
-
{
|
|
552
|
-
name,
|
|
553
|
-
label: label || i18n.get("industryAndNaceCode"),
|
|
554
|
-
errorMessage,
|
|
555
|
-
isValid: valid.naceCode,
|
|
556
|
-
helper: helperText?.naceCode,
|
|
557
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
558
|
-
Select,
|
|
559
|
-
{
|
|
560
|
-
...childProps,
|
|
561
|
-
name,
|
|
562
|
-
placeholder: i18n.get("selectOne"),
|
|
563
|
-
selected: data.naceCode,
|
|
564
|
-
items: naceCodesData ?? [],
|
|
565
|
-
readonly: readonly && !!data,
|
|
566
|
-
onChange: handleChangeForNaceCode
|
|
567
|
-
}
|
|
568
|
-
)
|
|
569
|
-
}
|
|
570
|
-
);
|
|
571
|
-
}
|
|
572
|
-
const businessFinancingLeiRadio = "adyen-kyc-business-financing-lei-radio";
|
|
573
|
-
const businessFinancingTitle = "adyen-kyc-business-financing-title";
|
|
574
|
-
const businessFinancingBody = "adyen-kyc-business-financing-body";
|
|
575
|
-
const businessFinancingExposureFinancials = "adyen-kyc-business-financing-exposure-financials";
|
|
576
|
-
const businessFinancingStructuredAddress = "adyen-kyc-business-financing-structured-address";
|
|
577
|
-
const styles = {
|
|
578
|
-
businessFinancingLeiRadio,
|
|
579
|
-
businessFinancingTitle,
|
|
580
|
-
businessFinancingBody,
|
|
581
|
-
businessFinancingExposureFinancials,
|
|
582
|
-
businessFinancingStructuredAddress
|
|
583
|
-
};
|
|
584
|
-
const businessInformationFields = [
|
|
585
|
-
"legalForm",
|
|
586
|
-
"naceCode",
|
|
587
|
-
"naceCodeLabel",
|
|
588
|
-
"legalFormLabel",
|
|
589
|
-
"doesYourCompanyHaveLEI",
|
|
590
|
-
"legalEntityIdentifier"
|
|
591
|
-
];
|
|
592
|
-
function BusinessFinancingBusinessInformation(props) {
|
|
593
|
-
const {
|
|
594
|
-
data,
|
|
595
|
-
valid,
|
|
596
|
-
errors,
|
|
597
|
-
country,
|
|
598
|
-
handleFieldChange,
|
|
599
|
-
fieldValidationErrors,
|
|
600
|
-
targetPage,
|
|
601
|
-
sectionHeading,
|
|
602
|
-
hideSectionHeading
|
|
603
|
-
} = props;
|
|
604
|
-
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
605
|
-
const { t: commonT } = useTranslation("common");
|
|
606
|
-
const formUtils = createFormUtils(props, commonT);
|
|
607
|
-
if (!handleFieldChange) {
|
|
608
|
-
return;
|
|
609
|
-
}
|
|
610
|
-
const isMainCompany = targetPage === BusinessFinancingPages.COMPANY_PAGE;
|
|
611
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
612
|
-
!hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["yourBusinessInformation"]) }),
|
|
613
|
-
/* @__PURE__ */ jsx(
|
|
614
|
-
LegalFormField,
|
|
615
|
-
{
|
|
616
|
-
name: "legalForm",
|
|
617
|
-
countryCode: country,
|
|
618
|
-
data: {
|
|
619
|
-
legalForm: data?.legalForm
|
|
620
|
-
},
|
|
621
|
-
valid: { legalForm: valid?.legalForm },
|
|
622
|
-
errorMessage: formUtils.getErrorMessage("legalForm", errors, fieldValidationErrors),
|
|
623
|
-
handleChangeFor: handleFieldChange,
|
|
624
|
-
readonly: false,
|
|
625
|
-
label: formUtils.getLabel("legalForm", "businessStructure")
|
|
626
|
-
}
|
|
627
|
-
),
|
|
628
|
-
/* @__PURE__ */ jsx(
|
|
629
|
-
NaceCodeField,
|
|
630
|
-
{
|
|
631
|
-
name: "naceCode",
|
|
632
|
-
data: { naceCode: data?.naceCode },
|
|
633
|
-
valid: { naceCode: valid?.naceCode },
|
|
634
|
-
errorMessage: formUtils.getErrorMessage("naceCode", errors, fieldValidationErrors),
|
|
635
|
-
handleChangeFor: handleFieldChange,
|
|
636
|
-
readonly: false,
|
|
637
|
-
label: formUtils.getLabel("naceCode", "industryAndNaceCode")
|
|
638
|
-
}
|
|
639
|
-
),
|
|
640
|
-
/* @__PURE__ */ jsx(
|
|
641
|
-
Field,
|
|
642
|
-
{
|
|
643
|
-
el: "fieldset",
|
|
644
|
-
name: "doesYourCompanyHaveLEI",
|
|
645
|
-
label: businessFinancingT(
|
|
646
|
-
($) => $[isMainCompany ? "doesYourCompanyHaveLEI" : "doesThisCompanyHaveLEI"]
|
|
647
|
-
),
|
|
648
|
-
helper: /* @__PURE__ */ jsxs(
|
|
649
|
-
Typography,
|
|
650
|
-
{
|
|
651
|
-
el: "div",
|
|
652
|
-
variant: "body",
|
|
653
|
-
color: "secondary",
|
|
654
|
-
className: styles.businessFinancingBody,
|
|
655
|
-
children: [
|
|
656
|
-
businessFinancingT(($) => $["anLEIIsAUniqueCode"]),
|
|
657
|
-
" ",
|
|
658
|
-
/* @__PURE__ */ jsx(Link, { href: "https://search.gleif.org/#/search/", external: true, inline: true, children: businessFinancingT(($) => $["lookUpYourLEI"]) })
|
|
659
|
-
]
|
|
660
|
-
}
|
|
661
|
-
),
|
|
662
|
-
errorMessage: formUtils.getErrorMessage(
|
|
663
|
-
"doesYourCompanyHaveLEI",
|
|
664
|
-
errors,
|
|
665
|
-
fieldValidationErrors
|
|
666
|
-
),
|
|
667
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
668
|
-
RadioGroup,
|
|
669
|
-
{
|
|
670
|
-
...childProps,
|
|
671
|
-
name: "doesYourCompanyHaveLEI",
|
|
672
|
-
items: isMainCompany ? businessFinancingRadioItems : businessFinancingParentRadioItems,
|
|
673
|
-
value: data?.doesYourCompanyHaveLEI,
|
|
674
|
-
disabled: false,
|
|
675
|
-
className: styles.businessFinancingLeiRadio,
|
|
676
|
-
onChange: handleFieldChange("doesYourCompanyHaveLEI"),
|
|
677
|
-
"aria-required": true,
|
|
678
|
-
"aria-invalid": !valid?.doesYourCompanyHaveLEI
|
|
679
|
-
}
|
|
680
|
-
)
|
|
681
|
-
}
|
|
682
|
-
),
|
|
683
|
-
data?.doesYourCompanyHaveLEI === "Yes" && /* @__PURE__ */ jsx(
|
|
684
|
-
Field,
|
|
685
|
-
{
|
|
686
|
-
name: "legalEntityIdentifier",
|
|
687
|
-
label: formUtils.getLabel("legalEntityIdentifier", "legalEntityIdentifier"),
|
|
688
|
-
errorMessage: formUtils.getErrorMessage(
|
|
689
|
-
"legalEntityIdentifier",
|
|
690
|
-
errors,
|
|
691
|
-
fieldValidationErrors
|
|
692
|
-
),
|
|
693
|
-
isValid: valid?.legalEntityIdentifier,
|
|
694
|
-
helper: commonT(($) => $["enterNCharactersWithAMixForExample"], {
|
|
695
|
-
numChars: 20,
|
|
696
|
-
example: "529900T8BM49AURSDO55"
|
|
697
|
-
}),
|
|
698
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
699
|
-
InputText,
|
|
700
|
-
{
|
|
701
|
-
...childProps,
|
|
702
|
-
name: "legalEntityIdentifier",
|
|
703
|
-
value: data?.legalEntityIdentifier,
|
|
704
|
-
readonly: false,
|
|
705
|
-
onInput: handleFieldChange("legalEntityIdentifier", "input"),
|
|
706
|
-
onBlur: handleFieldChange("legalEntityIdentifier", "blur"),
|
|
707
|
-
"aria-required": true,
|
|
708
|
-
"aria-invalid": !valid?.legalEntityIdentifier,
|
|
709
|
-
isValid: valid?.legalEntityIdentifier
|
|
710
|
-
}
|
|
711
|
-
)
|
|
712
|
-
}
|
|
713
|
-
)
|
|
714
|
-
] });
|
|
715
|
-
}
|
|
716
|
-
const TODAY_DATE$1 = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
717
|
-
const financialInformationFields = [
|
|
718
|
-
"numberOfEmployees",
|
|
719
|
-
"financialReportingDate",
|
|
720
|
-
"legalEntityIdentifier",
|
|
721
|
-
"currency",
|
|
722
|
-
"netAssets",
|
|
723
|
-
"annualTurnover"
|
|
724
|
-
];
|
|
725
|
-
function BusinessFinancingFinancialInformation(props) {
|
|
726
|
-
const { data, valid, errors, country, sectionHeading, handleFieldChange, fieldValidationErrors } = props;
|
|
727
|
-
const { t: businessFinancingT, i18n: i18next } = useTranslation("businessFinancing");
|
|
728
|
-
const { t: commonT } = useTranslation("common");
|
|
729
|
-
const formUtils = createFormUtils(props, commonT);
|
|
730
|
-
const currenciesForCurrCountry = useMemo(() => currencyByCountry[country] ?? [], [country]);
|
|
731
|
-
if (!handleFieldChange) {
|
|
732
|
-
return;
|
|
733
|
-
}
|
|
734
|
-
const financialData = data;
|
|
735
|
-
const financialErrors = errors;
|
|
736
|
-
const isFinancialDataValid = valid;
|
|
737
|
-
const [firstCurrency] = currenciesForCurrCountry;
|
|
738
|
-
const defaultCurrency = firstCurrency ?? "EUR";
|
|
739
|
-
if (currenciesForCurrCountry.length === 1 && data?.currency !== firstCurrency) {
|
|
740
|
-
handleFieldChange("currency")(firstCurrency);
|
|
741
|
-
}
|
|
742
|
-
return /* @__PURE__ */ jsxs("section", { children: [
|
|
743
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessFinancials"]) }),
|
|
744
|
-
/* @__PURE__ */ jsx(
|
|
745
|
-
Field,
|
|
746
|
-
{
|
|
747
|
-
name: "numberOfEmployees",
|
|
748
|
-
label: formUtils.getLabel("numberOfEmployees", "numberOfEmployees"),
|
|
749
|
-
helper: businessFinancingT(($) => $["theNumberOfIndividualsReceivingAWageOrSalary"]),
|
|
750
|
-
errorMessage: formUtils.getErrorMessage("numberOfEmployees", errors, fieldValidationErrors),
|
|
751
|
-
isValid: valid?.numberOfEmployees,
|
|
752
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
753
|
-
InputNumber,
|
|
754
|
-
{
|
|
755
|
-
...childProps,
|
|
756
|
-
"aria-required": true,
|
|
757
|
-
"aria-invalid": !valid?.numberOfEmployees,
|
|
758
|
-
name: "numberOfEmployees",
|
|
759
|
-
min: "0",
|
|
760
|
-
step: "1",
|
|
761
|
-
value: data?.numberOfEmployees,
|
|
762
|
-
onInput: handleFieldChange("numberOfEmployees", "input"),
|
|
763
|
-
onBlur: handleFieldChange("numberOfEmployees", "blur")
|
|
764
|
-
}
|
|
765
|
-
)
|
|
766
|
-
}
|
|
767
|
-
),
|
|
768
|
-
currenciesForCurrCountry?.length > 1 && /* @__PURE__ */ jsx(
|
|
769
|
-
Currency,
|
|
770
|
-
{
|
|
771
|
-
country,
|
|
772
|
-
data: formUtils.getFieldData(financialData, CURRENCY_FIELD),
|
|
773
|
-
errors: formUtils.getFieldErrors(financialErrors, fieldValidationErrors, CURRENCY_FIELD),
|
|
774
|
-
handleChangeFor: handleFieldChange,
|
|
775
|
-
labels: { currency: businessFinancingT(($) => $["financialStatementReportingCurrency"]) },
|
|
776
|
-
readonly: formUtils.isReadOnly("currency"),
|
|
777
|
-
valid: formUtils.getFieldValid(isFinancialDataValid, CURRENCY_FIELD)
|
|
778
|
-
}
|
|
779
|
-
),
|
|
780
|
-
/* @__PURE__ */ jsxs("div", { className: styles.businessFinancingExposureFinancials, children: [
|
|
781
|
-
/* @__PURE__ */ jsx(
|
|
782
|
-
Field,
|
|
783
|
-
{
|
|
784
|
-
name: "netAssets",
|
|
785
|
-
label: formUtils.getLabel("netAssets", "balanceSheetTotal"),
|
|
786
|
-
helper: businessFinancingT(($) => $["theSumOfTotalLiabilities"]),
|
|
787
|
-
errorMessage: formUtils.getErrorMessage("netAssets", errors, fieldValidationErrors),
|
|
788
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
789
|
-
InputCurrency,
|
|
790
|
-
{
|
|
791
|
-
...childProps,
|
|
792
|
-
locale: i18next.language,
|
|
793
|
-
currency: data?.currency ?? defaultCurrency,
|
|
794
|
-
amount: data?.netAssets ? Number(data?.netAssets) : void 0,
|
|
795
|
-
onAmountChanged: handleFieldChange("netAssets")
|
|
796
|
-
}
|
|
797
|
-
)
|
|
798
|
-
}
|
|
799
|
-
),
|
|
800
|
-
/* @__PURE__ */ jsx(
|
|
801
|
-
Field,
|
|
802
|
-
{
|
|
803
|
-
name: "financialReportingDate",
|
|
804
|
-
label: formUtils.getLabel("financialReportingDate", "statementReportingDate"),
|
|
805
|
-
helper: businessFinancingT(($) => $["useTheMoreRecentOfTheReportingDates"]),
|
|
806
|
-
errorMessage: formUtils.getErrorMessage(
|
|
807
|
-
"financialReportingDate",
|
|
808
|
-
errors,
|
|
809
|
-
fieldValidationErrors
|
|
810
|
-
),
|
|
811
|
-
isValid: valid?.financialReportingDate,
|
|
812
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
813
|
-
InputDate,
|
|
814
|
-
{
|
|
815
|
-
...childProps,
|
|
816
|
-
name: "financialReportingDate",
|
|
817
|
-
value: data?.financialReportingDate,
|
|
818
|
-
onInput: handleFieldChange("financialReportingDate", "input"),
|
|
819
|
-
onBlur: handleFieldChange("financialReportingDate", "blur"),
|
|
820
|
-
"aria-required": true,
|
|
821
|
-
"aria-invalid": !valid?.financialReportingDate,
|
|
822
|
-
max: TODAY_DATE$1
|
|
823
|
-
}
|
|
824
|
-
)
|
|
825
|
-
}
|
|
826
|
-
),
|
|
827
|
-
/* @__PURE__ */ jsx(
|
|
828
|
-
Field,
|
|
829
|
-
{
|
|
830
|
-
name: "annualTurnover",
|
|
831
|
-
label: formUtils.getLabel("annualTurnover", "annualTurnover"),
|
|
832
|
-
helper: businessFinancingT(($) => $["theAnnualSalesRevenue"]),
|
|
833
|
-
errorMessage: formUtils.getErrorMessage("annualTurnover", errors, fieldValidationErrors),
|
|
834
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
835
|
-
InputCurrency,
|
|
836
|
-
{
|
|
837
|
-
...childProps,
|
|
838
|
-
name: "annualTurnover",
|
|
839
|
-
locale: i18next.language,
|
|
840
|
-
currency: data?.currency ?? defaultCurrency,
|
|
841
|
-
amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
|
|
842
|
-
onAmountChanged: handleFieldChange("annualTurnover")
|
|
843
|
-
}
|
|
844
|
-
)
|
|
845
|
-
}
|
|
846
|
-
)
|
|
847
|
-
] })
|
|
848
|
-
] });
|
|
849
|
-
}
|
|
850
|
-
const TODAY_DATE = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
851
|
-
const legalInformationFields = [
|
|
852
|
-
"legalInformationInsolvency",
|
|
853
|
-
"legalProceedingsDate"
|
|
854
|
-
];
|
|
855
|
-
function BusinessFinancingLegalInformation(props) {
|
|
856
|
-
const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
|
|
857
|
-
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
858
|
-
const { t: commonT } = useTranslation("common");
|
|
859
|
-
const formUtils = createFormUtils(props, commonT);
|
|
860
|
-
if (!handleFieldChange) {
|
|
861
|
-
return;
|
|
862
|
-
}
|
|
863
|
-
const legalInformationInsolvencyItems = [
|
|
864
|
-
{ id: "noLegalActionsTaken", name: commonT(($) => $["no"]) },
|
|
865
|
-
{
|
|
866
|
-
id: "underJudicialAdministration",
|
|
867
|
-
name: businessFinancingT(($) => $["yesTheCompanyIsUnderJudicialAdministration"])
|
|
868
|
-
},
|
|
869
|
-
{
|
|
870
|
-
id: "bankruptcyInsolvency",
|
|
871
|
-
name: businessFinancingT(($) => $["yesTheCompanyIsFilingForBankruptcy"])
|
|
872
|
-
},
|
|
873
|
-
{
|
|
874
|
-
id: "otherLegalMeasures",
|
|
875
|
-
name: businessFinancingT(($) => $["yesTheCompanyIsFacingOtherLegalMeasures"])
|
|
876
|
-
},
|
|
877
|
-
{ id: "iDontKnow", name: commonT(($) => $["iDontKnow"]) }
|
|
878
|
-
];
|
|
879
|
-
const showLegalProceedingsDateField = data?.legalInformationInsolvency && !["noLegalActionsTaken", "iDontKnow"].includes(data?.legalInformationInsolvency);
|
|
880
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
881
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["legalInformation"]) }),
|
|
882
|
-
/* @__PURE__ */ jsx(
|
|
883
|
-
Field,
|
|
884
|
-
{
|
|
885
|
-
name: "legalInformationInsolvency",
|
|
886
|
-
label: formUtils.getLabel("legalInformationInsolvency", "legalInformationInsolvency"),
|
|
887
|
-
errorMessage: formUtils.getErrorMessage(
|
|
888
|
-
"legalInformationInsolvency",
|
|
889
|
-
errors,
|
|
890
|
-
fieldValidationErrors
|
|
891
|
-
),
|
|
892
|
-
isValid: valid?.legalInformationInsolvency,
|
|
893
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
894
|
-
Select,
|
|
895
|
-
{
|
|
896
|
-
...childProps,
|
|
897
|
-
onChange: handleFieldChange("legalInformationInsolvency", "blur"),
|
|
898
|
-
name: "legalInformationInsolvency",
|
|
899
|
-
placeholder: commonT(($) => $["selectOne"]),
|
|
900
|
-
selected: data?.legalInformationInsolvency,
|
|
901
|
-
items: legalInformationInsolvencyItems,
|
|
902
|
-
"aria-required": true,
|
|
903
|
-
"aria-invalid": !valid?.legalInformationInsolvency
|
|
904
|
-
}
|
|
905
|
-
)
|
|
906
|
-
}
|
|
907
|
-
),
|
|
908
|
-
showLegalProceedingsDateField && /* @__PURE__ */ jsx(
|
|
909
|
-
Field,
|
|
910
|
-
{
|
|
911
|
-
name: "legalProceedingsDate",
|
|
912
|
-
label: formUtils.getLabel("legalProceedingsDate", "legalProceedingsDate"),
|
|
913
|
-
errorMessage: formUtils.getErrorMessage(
|
|
914
|
-
"legalProceedingsDate",
|
|
915
|
-
errors,
|
|
916
|
-
fieldValidationErrors
|
|
917
|
-
),
|
|
918
|
-
isValid: valid?.legalProceedingsDate,
|
|
919
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
920
|
-
InputDate,
|
|
921
|
-
{
|
|
922
|
-
...childProps,
|
|
923
|
-
name: "legalProceedingsDate",
|
|
924
|
-
value: data.legalProceedingsDate,
|
|
925
|
-
onInput: handleFieldChange("legalProceedingsDate", "input"),
|
|
926
|
-
onBlur: handleFieldChange("legalProceedingsDate", "blur"),
|
|
927
|
-
"aria-required": true,
|
|
928
|
-
"aria-invalid": !valid?.legalProceedingsDate,
|
|
929
|
-
max: TODAY_DATE
|
|
930
|
-
}
|
|
931
|
-
)
|
|
932
|
-
}
|
|
933
|
-
)
|
|
934
|
-
] });
|
|
935
|
-
}
|
|
936
|
-
const ownershipStructureFields = [
|
|
937
|
-
"isCompanyOwnedByAnotherCompany",
|
|
938
|
-
"isParentOwnedByAnotherCompany"
|
|
939
|
-
];
|
|
940
|
-
function BusinessFinancingOwnershipStructure(props) {
|
|
941
|
-
const { data, valid, errors = {}, legalEntity, fieldValidationErrors, handleFieldChange } = props;
|
|
942
|
-
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
943
|
-
const { t: commonT } = useTranslation("common");
|
|
944
|
-
const formUtils = createFormUtils(props, commonT);
|
|
945
|
-
if (!handleFieldChange) {
|
|
946
|
-
return;
|
|
947
|
-
}
|
|
948
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
949
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: businessFinancingT(($) => $["ownershipStructure"]) }),
|
|
950
|
-
/* @__PURE__ */ jsx(
|
|
951
|
-
Field,
|
|
952
|
-
{
|
|
953
|
-
el: "fieldset",
|
|
954
|
-
name: "isCompanyOwnedByAnotherCompany",
|
|
955
|
-
label: businessFinancingT(($) => $["isCompanyOwnedByAnotherCompany"], {
|
|
956
|
-
company: legalEntity?.organization ? legalEntity.organization.legalName : ""
|
|
957
|
-
}),
|
|
958
|
-
errorMessage: formUtils.getErrorMessage(
|
|
959
|
-
"isCompanyOwnedByAnotherCompany",
|
|
960
|
-
errors,
|
|
961
|
-
fieldValidationErrors
|
|
962
|
-
),
|
|
963
|
-
helper: /* @__PURE__ */ jsx(
|
|
964
|
-
Typography,
|
|
965
|
-
{
|
|
966
|
-
el: "div",
|
|
967
|
-
variant: "body",
|
|
968
|
-
color: "secondary",
|
|
969
|
-
className: styles.businessFinancingBody,
|
|
970
|
-
children: businessFinancingT(($) => $["thisMeansYouHaveAParentCompany"])
|
|
971
|
-
}
|
|
972
|
-
),
|
|
973
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
974
|
-
RadioGroup,
|
|
975
|
-
{
|
|
976
|
-
...childProps,
|
|
977
|
-
name: "isCompanyOwnedByAnotherCompany",
|
|
978
|
-
items: businessFinancingRadioItems,
|
|
979
|
-
value: data?.isCompanyOwnedByAnotherCompany,
|
|
980
|
-
className: styles.businessFinancingLeiRadio,
|
|
981
|
-
disabled: false,
|
|
982
|
-
onChange: handleFieldChange("isCompanyOwnedByAnotherCompany"),
|
|
983
|
-
"aria-required": true,
|
|
984
|
-
"aria-invalid": !valid?.isCompanyOwnedByAnotherCompany
|
|
985
|
-
}
|
|
986
|
-
)
|
|
987
|
-
}
|
|
988
|
-
),
|
|
989
|
-
data?.isCompanyOwnedByAnotherCompany === "Yes" && /* @__PURE__ */ jsx(
|
|
990
|
-
Field,
|
|
991
|
-
{
|
|
992
|
-
el: "fieldset",
|
|
993
|
-
name: "isParentOwnedByAnotherCompany",
|
|
994
|
-
label: formUtils.getLabel("isParentOwnedByAnotherCompany"),
|
|
995
|
-
helper: /* @__PURE__ */ jsx(
|
|
996
|
-
Typography,
|
|
997
|
-
{
|
|
998
|
-
el: "div",
|
|
999
|
-
variant: "body",
|
|
1000
|
-
color: "secondary",
|
|
1001
|
-
className: styles.businessFinancingBody,
|
|
1002
|
-
children: businessFinancingT(($) => $["thisMeansYouHaveAnUltimateParentCompany"])
|
|
1003
|
-
}
|
|
1004
|
-
),
|
|
1005
|
-
errorMessage: formUtils.getErrorMessage(
|
|
1006
|
-
"isParentOwnedByAnotherCompany",
|
|
1007
|
-
errors,
|
|
1008
|
-
fieldValidationErrors
|
|
1009
|
-
),
|
|
1010
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1011
|
-
RadioGroup,
|
|
1012
|
-
{
|
|
1013
|
-
...childProps,
|
|
1014
|
-
name: "isParentOwnedByAnotherCompany",
|
|
1015
|
-
items: businessFinancingRadioItems,
|
|
1016
|
-
value: data.isParentOwnedByAnotherCompany,
|
|
1017
|
-
className: styles.businessFinancingLeiRadio,
|
|
1018
|
-
disabled: false,
|
|
1019
|
-
onChange: handleFieldChange("isParentOwnedByAnotherCompany"),
|
|
1020
|
-
"aria-required": true,
|
|
1021
|
-
"aria-invalid": !valid?.isParentOwnedByAnotherCompany
|
|
1022
|
-
}
|
|
1023
|
-
)
|
|
1024
|
-
}
|
|
1025
|
-
)
|
|
1026
|
-
] });
|
|
1027
|
-
}
|
|
1028
|
-
function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
1029
|
-
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1030
|
-
const { t: commonT } = useTranslation("common");
|
|
1031
|
-
const {
|
|
1032
|
-
form: { handleChangeFor, data, setValid }
|
|
1033
|
-
} = useFormContext();
|
|
1034
|
-
const { country, formVerificationErrors, legalEntity, fieldValidationErrors } = props;
|
|
1035
|
-
const formUtils = createFormUtils(props, commonT);
|
|
1036
|
-
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "company", mode);
|
|
1037
|
-
const ownershipStructureProps = getFieldProps(props, ownershipStructureFields);
|
|
1038
|
-
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
1039
|
-
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
1040
|
-
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
1041
|
-
const currenciesForCurrCountry = currencyByCountry[country] ?? [];
|
|
1042
|
-
if (currenciesForCurrCountry?.length === 1) {
|
|
1043
|
-
setValid("currency", true, "company");
|
|
1044
|
-
}
|
|
1045
|
-
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
|
|
1046
|
-
/* @__PURE__ */ jsx(
|
|
1047
|
-
Header,
|
|
1048
|
-
{
|
|
1049
|
-
title: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
1050
|
-
description: businessFinancingT(($) => $["toProcessYourFundsWeNeedMoreInformation"]),
|
|
1051
|
-
secondary: true
|
|
1052
|
-
}
|
|
1053
|
-
),
|
|
1054
|
-
/* @__PURE__ */ jsx(
|
|
1055
|
-
ErrorPanel,
|
|
1056
|
-
{
|
|
1057
|
-
verificationErrors: formVerificationErrors,
|
|
1058
|
-
validationErrors: fieldValidationErrors,
|
|
1059
|
-
formUtils,
|
|
1060
|
-
id: "ariaErrorField"
|
|
1061
|
-
}
|
|
1062
|
-
),
|
|
1063
|
-
/* @__PURE__ */ jsx(
|
|
1064
|
-
BusinessFinancingBusinessInformation,
|
|
1065
|
-
{
|
|
1066
|
-
...businessInformationProps,
|
|
1067
|
-
handleFieldChange: handleChange,
|
|
1068
|
-
country,
|
|
1069
|
-
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
1070
|
-
sectionHeading: "yourBusinessInformation",
|
|
1071
|
-
data: formUtils.getFieldData(data?.company ?? {}, businessInformationFields)
|
|
1072
|
-
}
|
|
1073
|
-
),
|
|
1074
|
-
isEeaCountry(country) && /* @__PURE__ */ jsx(
|
|
1075
|
-
BusinessFinancingFinancialInformation,
|
|
1076
|
-
{
|
|
1077
|
-
...financialInformationProps,
|
|
1078
|
-
handleFieldChange: handleChange,
|
|
1079
|
-
country,
|
|
1080
|
-
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
1081
|
-
data: formUtils.getFieldData(data?.company ?? {}, financialInformationFields)
|
|
1082
|
-
}
|
|
1083
|
-
),
|
|
1084
|
-
/* @__PURE__ */ jsx(
|
|
1085
|
-
BusinessFinancingLegalInformation,
|
|
1086
|
-
{
|
|
1087
|
-
...legalInformationProps,
|
|
1088
|
-
country,
|
|
1089
|
-
handleFieldChange: handleChange,
|
|
1090
|
-
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
1091
|
-
sectionHeading: "legalInformation",
|
|
1092
|
-
data: formUtils.getFieldData(data?.company ?? {}, legalInformationFields)
|
|
1093
|
-
}
|
|
1094
|
-
),
|
|
1095
|
-
/* @__PURE__ */ jsx(
|
|
1096
|
-
BusinessFinancingOwnershipStructure,
|
|
1097
|
-
{
|
|
1098
|
-
...ownershipStructureProps,
|
|
1099
|
-
legalEntity,
|
|
1100
|
-
handleFieldChange: handleChange,
|
|
1101
|
-
data: formUtils.getFieldData(data?.company ?? {}, ownershipStructureFields)
|
|
1102
|
-
}
|
|
1103
|
-
)
|
|
1104
|
-
] });
|
|
1105
|
-
}
|
|
1106
|
-
const basicInformationFields = [
|
|
1107
|
-
"legalName"
|
|
1108
|
-
];
|
|
1109
|
-
function BusinessFinancingBasicCompanyInformation(props) {
|
|
1110
|
-
const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = 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: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["basicCompanyInformation"]) }),
|
|
1119
|
-
/* @__PURE__ */ jsx(
|
|
1120
|
-
Field,
|
|
1121
|
-
{
|
|
1122
|
-
name: "legalName",
|
|
1123
|
-
label: formUtils.getLabel("legalName", "legalName"),
|
|
1124
|
-
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
|
|
1125
|
-
isValid: valid?.legalName,
|
|
1126
|
-
helper: businessFinancingT(($) => $["legalNameIsUsedToIdentifyABusinessWithTheGovernment"]),
|
|
1127
|
-
helperPosition: "below",
|
|
1128
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1129
|
-
InputText,
|
|
1130
|
-
{
|
|
1131
|
-
...childProps,
|
|
1132
|
-
name: "legalName",
|
|
1133
|
-
value: data?.legalName,
|
|
1134
|
-
readonly: false,
|
|
1135
|
-
onInput: handleFieldChange("legalName", "input"),
|
|
1136
|
-
onBlur: handleFieldChange("legalName", "blur"),
|
|
1137
|
-
"aria-required": true,
|
|
1138
|
-
"aria-invalid": !valid?.legalName
|
|
1139
|
-
}
|
|
1140
|
-
)
|
|
1141
|
-
}
|
|
1142
|
-
)
|
|
1143
|
-
] });
|
|
1144
|
-
}
|
|
1145
|
-
const OPTIONAL_ADDRESS_FIELDS = ["otherAddressInformation"];
|
|
1146
|
-
const registeredAddressFields = [
|
|
1147
|
-
"isThisAddressTheMainHeadquarters",
|
|
1148
|
-
"registrationAddress",
|
|
1149
|
-
"sameAddressAsRootEntity"
|
|
1150
|
-
];
|
|
1151
|
-
function BusinessFinancingRegisteredAddress(props) {
|
|
1152
|
-
const {
|
|
1153
|
-
data,
|
|
1154
|
-
valid,
|
|
1155
|
-
errors,
|
|
1156
|
-
fieldValidationErrors,
|
|
1157
|
-
shouldValidate,
|
|
1158
|
-
defaultData,
|
|
1159
|
-
handleFieldChange,
|
|
1160
|
-
formId,
|
|
1161
|
-
legalEntity,
|
|
1162
|
-
sectionHeading
|
|
1163
|
-
} = props;
|
|
1164
|
-
const { t: businessFinancingT, i18n } = useTranslation("businessFinancing");
|
|
1165
|
-
const { t: commonT } = useTranslation("common");
|
|
1166
|
-
const formUtils = createFormUtils(props, commonT);
|
|
1167
|
-
const addressCountry = data?.registrationAddress?.country;
|
|
1168
|
-
const datasetUtils = datasetUtilities(i18n.language);
|
|
1169
|
-
const addressSchema = useMemo(() => {
|
|
1170
|
-
return getAddressSchemaForCountry(addressCountry).filter((field) => {
|
|
1171
|
-
if (addressCountry) {
|
|
1172
|
-
return !COUNTRIES_WITH_STATES_DATASET.includes(addressCountry) ? field !== "stateOrProvince" : true;
|
|
1173
|
-
}
|
|
1174
|
-
return true;
|
|
1175
|
-
});
|
|
1176
|
-
}, [addressCountry]);
|
|
1177
|
-
if (!handleFieldChange) {
|
|
1178
|
-
return;
|
|
1179
|
-
}
|
|
1180
|
-
const handleRegistrationAddressChange = (state) => {
|
|
1181
|
-
if (!state.data.country) {
|
|
1182
|
-
state.data.country = addressCountry;
|
|
1183
|
-
}
|
|
1184
|
-
handleFieldChange("registrationAddress")(state.data);
|
|
1185
|
-
};
|
|
1186
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1187
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? translateStringOrObject(commonT, sectionHeading) : commonT(($) => $["registeredAddress"]) }),
|
|
1188
|
-
/* @__PURE__ */ jsx(
|
|
1189
|
-
Field,
|
|
1190
|
-
{
|
|
1191
|
-
name: "sameAddressAsRootEntity",
|
|
1192
|
-
errorMessage: errors?.sameAddressAsRootEntity?.errorMessage,
|
|
1193
|
-
isValid: valid?.sameAddressAsRootEntity,
|
|
1194
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1195
|
-
Checkbox,
|
|
1196
|
-
{
|
|
1197
|
-
...childProps,
|
|
1198
|
-
"aria-required": formUtils.isRequiredField("sameAddressAsRootEntity"),
|
|
1199
|
-
"aria-invalid": !valid?.sameAddressAsRootEntity,
|
|
1200
|
-
name: "sameAddressAsRootEntity",
|
|
1201
|
-
label: businessFinancingT(($) => $["sameAddressAsRootEntity"], {
|
|
1202
|
-
rootLegalEntityName: legalEntity?.organization?.legalName ?? ""
|
|
1203
|
-
}),
|
|
1204
|
-
checked: data?.sameAddressAsRootEntity ?? false,
|
|
1205
|
-
onChange: handleFieldChange("sameAddressAsRootEntity")
|
|
1206
|
-
}
|
|
1207
|
-
)
|
|
1208
|
-
}
|
|
1209
|
-
),
|
|
1210
|
-
data?.sameAddressAsRootEntity && legalEntity?.organization?.registeredAddress ? /* @__PURE__ */ jsxs("div", { className: styles.businessFinancingStructuredAddress, children: [
|
|
1211
|
-
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street }),
|
|
1212
|
-
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street2 }),
|
|
1213
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
1214
|
-
legalEntity.organization.registeredAddress.city,
|
|
1215
|
-
" ",
|
|
1216
|
-
legalEntity.organization.registeredAddress.postalCode ? `, ${legalEntity.organization.registeredAddress.postalCode}` : ""
|
|
1217
|
-
] }),
|
|
1218
|
-
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.stateOrProvince }),
|
|
1219
|
-
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.country ? datasetUtils.getCountryName(legalEntity.organization.registeredAddress.country) : "" })
|
|
1220
|
-
] }) : /* @__PURE__ */ jsx(
|
|
1221
|
-
Address,
|
|
1222
|
-
{
|
|
1223
|
-
id: formId,
|
|
1224
|
-
addressType: "registrationAddress",
|
|
1225
|
-
data: { ...defaultData?.registrationAddress, country: addressCountry },
|
|
1226
|
-
labels: addressCountry ? getAddressSchemaLabelsByCountry(addressCountry) : void 0,
|
|
1227
|
-
countryCode: addressCountry,
|
|
1228
|
-
requiredFields: addressSchema,
|
|
1229
|
-
optionalFields: OPTIONAL_ADDRESS_FIELDS,
|
|
1230
|
-
onChange: handleRegistrationAddressChange,
|
|
1231
|
-
shouldValidate
|
|
1232
|
-
}
|
|
1233
|
-
),
|
|
1234
|
-
/* @__PURE__ */ jsx(
|
|
1235
|
-
Field,
|
|
1236
|
-
{
|
|
1237
|
-
el: "fieldset",
|
|
1238
|
-
name: "isThisAddressTheMainHeadquarters",
|
|
1239
|
-
label: businessFinancingT(($) => $["areTheMainHeadquartersAtThisAddress"]),
|
|
1240
|
-
helper: businessFinancingT(($) => $["addressRegisteredWithGovernment"]),
|
|
1241
|
-
errorMessage: formUtils.getErrorMessage(
|
|
1242
|
-
"isThisAddressTheMainHeadquarters",
|
|
1243
|
-
errors,
|
|
1244
|
-
fieldValidationErrors
|
|
1245
|
-
),
|
|
1246
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1247
|
-
RadioGroup,
|
|
1248
|
-
{
|
|
1249
|
-
...childProps,
|
|
1250
|
-
name: "isThisAddressTheMainHeadquarters",
|
|
1251
|
-
items: businessFinancingRadioItems,
|
|
1252
|
-
value: data?.isThisAddressTheMainHeadquarters,
|
|
1253
|
-
className: styles.businessFinancingLeiRadio,
|
|
1254
|
-
disabled: false,
|
|
1255
|
-
onChange: handleFieldChange("isThisAddressTheMainHeadquarters"),
|
|
1256
|
-
"aria-required": true,
|
|
1257
|
-
"aria-invalid": !valid?.isThisAddressTheMainHeadquarters
|
|
1258
|
-
}
|
|
1259
|
-
)
|
|
1260
|
-
}
|
|
1261
|
-
)
|
|
1262
|
-
] });
|
|
1263
|
-
}
|
|
1264
|
-
const parentCompanyFormId$1 = businessFinancingForms.parentCompany.formId;
|
|
1265
|
-
function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
1266
|
-
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1267
|
-
const { t: commonT } = useTranslation("common");
|
|
1268
|
-
const {
|
|
1269
|
-
form: { handleChangeFor, data, setValid }
|
|
1270
|
-
} = useFormContext();
|
|
1271
|
-
const { country, formVerificationErrors, fieldValidationErrors, legalEntity } = props;
|
|
1272
|
-
const formUtils = createFormUtils(
|
|
1273
|
-
props,
|
|
1274
|
-
commonT
|
|
1275
|
-
);
|
|
1276
|
-
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "parentCompany", mode);
|
|
1277
|
-
setValid("sameAddressAsRootEntity", true, "parentCompany");
|
|
1278
|
-
const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
|
|
1279
|
-
const registeredAddressProps = getFieldProps(props, registeredAddressFields);
|
|
1280
|
-
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
1281
|
-
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
1282
|
-
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
1283
|
-
const addressCountry = getAddressCountryForParentCompany(
|
|
1284
|
-
data?.parentCompany,
|
|
1285
|
-
legalEntity?.organization?.registeredAddress
|
|
1286
|
-
);
|
|
1287
|
-
const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
|
|
1288
|
-
if (currenciesForCurrCountry?.length === 1) {
|
|
1289
|
-
setValid("currency", true, "parentCompany");
|
|
1290
|
-
}
|
|
1291
|
-
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-parent-company", children: [
|
|
1292
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles.businessFinancingBody, children: commonT(($) => $["parentCompanyInformation"]) }),
|
|
1293
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles.businessFinancingBody, children: businessFinancingT(($) => $["inThePreviousStepOwnedByAParentCompany"]) }),
|
|
1294
|
-
/* @__PURE__ */ jsx(
|
|
1295
|
-
ErrorPanel,
|
|
1296
|
-
{
|
|
1297
|
-
verificationErrors: formVerificationErrors,
|
|
1298
|
-
validationErrors: fieldValidationErrors,
|
|
1299
|
-
formUtils,
|
|
1300
|
-
id: "ariaErrorField"
|
|
1301
|
-
}
|
|
1302
|
-
),
|
|
1303
|
-
/* @__PURE__ */ jsx(
|
|
1304
|
-
BusinessFinancingBasicCompanyInformation,
|
|
1305
|
-
{
|
|
1306
|
-
...basicCompanyInformationProps,
|
|
1307
|
-
sectionHeading: "parentCompanyInformation",
|
|
1308
|
-
handleFieldChange: handleChange,
|
|
1309
|
-
data: formUtils.getFieldData(data?.parentCompany ?? {}, basicInformationFields)
|
|
1310
|
-
}
|
|
1311
|
-
),
|
|
1312
|
-
/* @__PURE__ */ jsx(
|
|
1313
|
-
BusinessFinancingRegisteredAddress,
|
|
1314
|
-
{
|
|
1315
|
-
...registeredAddressProps,
|
|
1316
|
-
formId: parentCompanyFormId$1,
|
|
1317
|
-
sectionHeading: "parentCompanyAddress",
|
|
1318
|
-
defaultData: data?.parentCompany,
|
|
1319
|
-
legalEntity,
|
|
1320
|
-
handleFieldChange: handleChange,
|
|
1321
|
-
data: formUtils.getFieldData(data?.parentCompany ?? {}, registeredAddressFields)
|
|
1322
|
-
}
|
|
1323
|
-
),
|
|
1324
|
-
/* @__PURE__ */ jsx(
|
|
1325
|
-
BusinessFinancingBusinessInformation,
|
|
1326
|
-
{
|
|
1327
|
-
...businessInformationProps,
|
|
1328
|
-
hideSectionHeading: true,
|
|
1329
|
-
country: addressCountry ?? country,
|
|
1330
|
-
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1331
|
-
handleFieldChange: handleChange,
|
|
1332
|
-
data: formUtils.getFieldData(data?.parentCompany ?? {}, businessInformationFields)
|
|
1333
|
-
}
|
|
1334
|
-
),
|
|
1335
|
-
isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(
|
|
1336
|
-
BusinessFinancingFinancialInformation,
|
|
1337
|
-
{
|
|
1338
|
-
...financialInformationProps,
|
|
1339
|
-
country: addressCountry ?? country,
|
|
1340
|
-
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1341
|
-
handleFieldChange: handleChange,
|
|
1342
|
-
data: formUtils.getFieldData(data?.parentCompany ?? {}, financialInformationFields)
|
|
1343
|
-
}
|
|
1344
|
-
),
|
|
1345
|
-
/* @__PURE__ */ jsx(
|
|
1346
|
-
BusinessFinancingLegalInformation,
|
|
1347
|
-
{
|
|
1348
|
-
...legalInformationProps,
|
|
1349
|
-
country: addressCountry ?? country,
|
|
1350
|
-
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1351
|
-
sectionHeading: "legalInformation",
|
|
1352
|
-
handleFieldChange: handleChange,
|
|
1353
|
-
data: formUtils.getFieldData(data?.parentCompany ?? {}, legalInformationFields)
|
|
1354
|
-
}
|
|
1355
|
-
)
|
|
1356
|
-
] });
|
|
1357
|
-
}
|
|
1358
|
-
const ultimateParentCompanyFormId$1 = businessFinancingForms.ultimateParentCompany.formId;
|
|
1359
|
-
function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
1360
|
-
const { formVerificationErrors, country, fieldValidationErrors, legalEntity } = props;
|
|
1361
|
-
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1362
|
-
const { t: commonT } = useTranslation("common");
|
|
1363
|
-
const formUtils = createFormUtils(
|
|
1364
|
-
props,
|
|
1365
|
-
commonT
|
|
1366
|
-
);
|
|
1367
|
-
const {
|
|
1368
|
-
form: { handleChangeFor, data, setValid }
|
|
1369
|
-
} = useFormContext();
|
|
1370
|
-
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "ultimateParentCompany", mode);
|
|
1371
|
-
setValid("sameAddressAsRootEntity", true, "ultimateParentCompany");
|
|
1372
|
-
const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
|
|
1373
|
-
const registeredAddressProps = getFieldProps(props, registeredAddressFields);
|
|
1374
|
-
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
1375
|
-
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
1376
|
-
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
1377
|
-
const addressCountry = getAddressCountryForParentCompany(
|
|
1378
|
-
data?.ultimateParentCompany,
|
|
1379
|
-
legalEntity?.organization?.registeredAddress
|
|
1380
|
-
);
|
|
1381
|
-
const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
|
|
1382
|
-
if (currenciesForCurrCountry?.length === 1) {
|
|
1383
|
-
setValid("currency", true, "ultimateParentCompany");
|
|
1384
|
-
}
|
|
1385
|
-
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-ultimate-parent-company", children: [
|
|
1386
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles.businessFinancingBody, children: commonT(($) => $["ultimateParentCompanyInformation"]) }),
|
|
1387
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles.businessFinancingBody, children: businessFinancingT(($) => $["inThePreviousStepOwnedByAnUltimateParentCompany"]) }),
|
|
1388
|
-
/* @__PURE__ */ jsx(
|
|
1389
|
-
ErrorPanel,
|
|
1390
|
-
{
|
|
1391
|
-
verificationErrors: formVerificationErrors,
|
|
1392
|
-
validationErrors: fieldValidationErrors,
|
|
1393
|
-
formUtils,
|
|
1394
|
-
id: "ariaErrorField"
|
|
1395
|
-
}
|
|
1396
|
-
),
|
|
1397
|
-
/* @__PURE__ */ jsx(
|
|
1398
|
-
BusinessFinancingBasicCompanyInformation,
|
|
1399
|
-
{
|
|
1400
|
-
...basicCompanyInformationProps,
|
|
1401
|
-
sectionHeading: "ultimateParentCompanyInformation",
|
|
1402
|
-
handleFieldChange: handleChange,
|
|
1403
|
-
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, basicInformationFields)
|
|
1404
|
-
}
|
|
1405
|
-
),
|
|
1406
|
-
/* @__PURE__ */ jsx(
|
|
1407
|
-
BusinessFinancingRegisteredAddress,
|
|
1408
|
-
{
|
|
1409
|
-
...registeredAddressProps,
|
|
1410
|
-
formId: ultimateParentCompanyFormId$1,
|
|
1411
|
-
sectionHeading: "ultimateParentCompanyAddress",
|
|
1412
|
-
defaultData: data?.ultimateParentCompany,
|
|
1413
|
-
handleFieldChange: handleChange,
|
|
1414
|
-
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, registeredAddressFields),
|
|
1415
|
-
legalEntity
|
|
1416
|
-
}
|
|
1417
|
-
),
|
|
1418
|
-
/* @__PURE__ */ jsx(
|
|
1419
|
-
BusinessFinancingBusinessInformation,
|
|
1420
|
-
{
|
|
1421
|
-
...businessInformationProps,
|
|
1422
|
-
hideSectionHeading: true,
|
|
1423
|
-
country: addressCountry ?? country,
|
|
1424
|
-
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1425
|
-
handleFieldChange: handleChange,
|
|
1426
|
-
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, businessInformationFields)
|
|
1427
|
-
}
|
|
1428
|
-
),
|
|
1429
|
-
isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(
|
|
1430
|
-
BusinessFinancingFinancialInformation,
|
|
1431
|
-
{
|
|
1432
|
-
...financialInformationProps,
|
|
1433
|
-
country: addressCountry ?? country,
|
|
1434
|
-
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1435
|
-
handleFieldChange: handleChange,
|
|
1436
|
-
data: formUtils.getFieldData(
|
|
1437
|
-
data?.ultimateParentCompany ?? {},
|
|
1438
|
-
financialInformationFields
|
|
1439
|
-
)
|
|
1440
|
-
}
|
|
1441
|
-
),
|
|
1442
|
-
/* @__PURE__ */ jsx(
|
|
1443
|
-
BusinessFinancingLegalInformation,
|
|
1444
|
-
{
|
|
1445
|
-
...legalInformationProps,
|
|
1446
|
-
country: addressCountry ?? country,
|
|
1447
|
-
sectionHeading: "legalInformation",
|
|
1448
|
-
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1449
|
-
handleFieldChange: handleChange,
|
|
1450
|
-
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, legalInformationFields)
|
|
1451
|
-
}
|
|
1452
|
-
)
|
|
1453
|
-
] });
|
|
1454
|
-
}
|
|
1455
|
-
const getOrgAnalyticsData = (prefix, details) => {
|
|
1456
|
-
const org = details?.organization;
|
|
1457
|
-
if (!org) return {};
|
|
1458
|
-
return {
|
|
1459
|
-
[`${prefix}--economicSector`]: org?.economicSector ?? "",
|
|
1460
|
-
[`${prefix}--legalForm`]: org?.legalForm ?? "",
|
|
1461
|
-
[`${prefix}--statusOfLegalProceeding`]: org?.statusOfLegalProceeding ?? ""
|
|
1462
|
-
};
|
|
1463
|
-
};
|
|
1464
|
-
const businessFinancingFormsRequiredFields = {
|
|
1465
|
-
company: businessFinancingForms.company.fields,
|
|
1466
|
-
parentCompany: businessFinancingForms.parentCompany.fields,
|
|
1467
|
-
ultimateParentCompany: businessFinancingForms.ultimateParentCompany.fields
|
|
1468
|
-
};
|
|
1469
|
-
const parentCompanyFormId = businessFinancingForms.parentCompany.formId;
|
|
1470
|
-
const companyFormId = businessFinancingForms.company.formId;
|
|
1471
|
-
const ultimateParentCompanyFormId = businessFinancingForms.ultimateParentCompany.formId;
|
|
1472
|
-
function BusinessFinancingDropin(props) {
|
|
1473
|
-
const {
|
|
1474
|
-
country,
|
|
1475
|
-
rootLegalEntity,
|
|
1476
|
-
externalOnSubmit,
|
|
1477
|
-
externalOnSubmitLabel,
|
|
1478
|
-
isStandaloneComponent,
|
|
1479
|
-
handleHomeClick
|
|
1480
|
-
} = props;
|
|
1481
|
-
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1482
|
-
const { t: commonT, i18n } = useTranslation("common");
|
|
1483
|
-
const userEvents = useAnalyticsContext();
|
|
1484
|
-
const [defaultData, setDefaultData] = useState();
|
|
1485
|
-
useRef(null);
|
|
1486
|
-
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
1487
|
-
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
1488
|
-
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
1489
|
-
const { data: immediateParentCompany, isLoading: immediateParentCompanyIsLoading } = useAssociatedLegalEntity(rootLegalEntity, "immediateParentCompany");
|
|
1490
|
-
const { data: ultimateParentCompany, isLoading: ultimateParentCompanyIsLoading } = useAssociatedLegalEntity(rootLegalEntity, "ultimateParentCompany");
|
|
1491
|
-
const derivedData = useMemo(() => {
|
|
1492
|
-
if (immediateParentCompanyIsLoading || ultimateParentCompanyIsLoading) return void 0;
|
|
1493
|
-
const dataFromResponse = {};
|
|
1494
|
-
dataFromResponse.company = mapLegalEntityToBusinessFinancing(
|
|
1495
|
-
rootLegalEntity
|
|
1496
|
-
);
|
|
1497
|
-
dataFromResponse.company = appendBusinessFinancingData(
|
|
1498
|
-
rootLegalEntity.organization,
|
|
1499
|
-
dataFromResponse.company
|
|
1500
|
-
);
|
|
1501
|
-
dataFromResponse.company.isCompanyOwnedByAnotherCompany = "No";
|
|
1502
|
-
dataFromResponse.company.isParentOwnedByAnotherCompany = "No";
|
|
1503
|
-
if (immediateParentCompany) {
|
|
1504
|
-
dataFromResponse.parentCompany = mapLegalEntityToBusinessFinancing(
|
|
1505
|
-
immediateParentCompany
|
|
1506
|
-
);
|
|
1507
|
-
dataFromResponse.parentCompany = appendBusinessFinancingData(
|
|
1508
|
-
immediateParentCompany.organization,
|
|
1509
|
-
dataFromResponse.parentCompany
|
|
1510
|
-
);
|
|
1511
|
-
dataFromResponse.company.isCompanyOwnedByAnotherCompany = "Yes";
|
|
1512
|
-
}
|
|
1513
|
-
if (ultimateParentCompany) {
|
|
1514
|
-
dataFromResponse.ultimateParentCompany = mapLegalEntityToBusinessFinancing(
|
|
1515
|
-
ultimateParentCompany
|
|
1516
|
-
);
|
|
1517
|
-
dataFromResponse.ultimateParentCompany = appendBusinessFinancingData(
|
|
1518
|
-
ultimateParentCompany.organization,
|
|
1519
|
-
dataFromResponse.ultimateParentCompany
|
|
1520
|
-
);
|
|
1521
|
-
dataFromResponse.company.isParentOwnedByAnotherCompany = "Yes";
|
|
1522
|
-
}
|
|
1523
|
-
return dataFromResponse;
|
|
1524
|
-
}, [
|
|
1525
|
-
immediateParentCompanyIsLoading,
|
|
1526
|
-
ultimateParentCompanyIsLoading,
|
|
1527
|
-
rootLegalEntity,
|
|
1528
|
-
immediateParentCompany,
|
|
1529
|
-
ultimateParentCompany
|
|
1530
|
-
]);
|
|
1531
|
-
useEffect(() => {
|
|
1532
|
-
userEvents.addTaskEvent("Landed on page", {
|
|
1533
|
-
actionType: "start"
|
|
1534
|
-
});
|
|
1535
|
-
}, [userEvents]);
|
|
1536
|
-
useEffect(() => {
|
|
1537
|
-
if (derivedData) {
|
|
1538
|
-
setDefaultData({ ...derivedData });
|
|
1539
|
-
}
|
|
1540
|
-
}, [derivedData]);
|
|
1541
|
-
const datasetUtils = datasetUtilities(i18n.language);
|
|
1542
|
-
const [problems, setProblems] = useState();
|
|
1543
|
-
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
1544
|
-
const [showEndState, setShowEndState] = useState(false);
|
|
1545
|
-
const [businessFinancingRequiredForms, setBusinessFinancingRequiredForms] = useState(businessFinancingForms);
|
|
1546
|
-
const { showToast } = useToastContext();
|
|
1547
|
-
const { isSettingEnabled } = useSettingsContext();
|
|
1548
|
-
const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
|
|
1549
|
-
const onSubmit = async () => {
|
|
1550
|
-
setLoadingStatus("loading");
|
|
1551
|
-
if (!umfData) {
|
|
1552
|
-
return;
|
|
1553
|
-
}
|
|
1554
|
-
const companyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1555
|
-
BusinessFinancingIndices.COMPANY,
|
|
1556
|
-
umfData,
|
|
1557
|
-
rootLegalEntity
|
|
1558
|
-
);
|
|
1559
|
-
const parentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1560
|
-
BusinessFinancingIndices.PARENT_COMPANY,
|
|
1561
|
-
umfData,
|
|
1562
|
-
rootLegalEntity
|
|
1563
|
-
);
|
|
1564
|
-
const ultimateParentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1565
|
-
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1566
|
-
umfData,
|
|
1567
|
-
rootLegalEntity
|
|
1568
|
-
);
|
|
1569
|
-
if (!companyBusinessFinancingDetails || !rootLegalEntity) {
|
|
1570
|
-
showToast({ label: businessFinancingT(($) => $["missingCompanyDetails"]), variant: "error" });
|
|
1571
|
-
return;
|
|
1572
|
-
}
|
|
1573
|
-
let parentCompanyFailed = false;
|
|
1574
|
-
let ultimateParentCompanyFailed = false;
|
|
1575
|
-
try {
|
|
1576
|
-
const promises = [];
|
|
1577
|
-
if (parentCompanyBusinessFinancingDetails) {
|
|
1578
|
-
const parentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1579
|
-
BusinessFinancingIndices.PARENT_COMPANY,
|
|
1580
|
-
parentCompanyBusinessFinancingDetails,
|
|
1581
|
-
createLegalEntity,
|
|
1582
|
-
updateLegalEntity,
|
|
1583
|
-
parentCompanyBusinessFinancingDetails?.id
|
|
1584
|
-
);
|
|
1585
|
-
promises.push(parentCompanyPromise);
|
|
1586
|
-
}
|
|
1587
|
-
if (ultimateParentCompanyBusinessFinancingDetails) {
|
|
1588
|
-
const ultimateParentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1589
|
-
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1590
|
-
ultimateParentCompanyBusinessFinancingDetails,
|
|
1591
|
-
createLegalEntity,
|
|
1592
|
-
updateLegalEntity,
|
|
1593
|
-
ultimateParentCompanyBusinessFinancingDetails?.id
|
|
1594
|
-
);
|
|
1595
|
-
promises.push(ultimateParentCompanyPromise);
|
|
1596
|
-
}
|
|
1597
|
-
const results = await Promise.allSettled(promises);
|
|
1598
|
-
const previousEntityAssociations = rootLegalEntity.entityAssociations ? rootLegalEntity.entityAssociations.filter(
|
|
1599
|
-
(entityAssociation) => entityAssociation.type !== "immediateParentCompany" && entityAssociation.type !== "ultimateParentCompany"
|
|
1600
|
-
) : [];
|
|
1601
|
-
const businessFinancingEntityAssociations = [
|
|
1602
|
-
...previousEntityAssociations
|
|
1603
|
-
];
|
|
1604
|
-
const entitiesToTrack = [BusinessFinancingIndices.COMPANY];
|
|
1605
|
-
results.forEach((result, index) => {
|
|
1606
|
-
const businessFinancingType = index === 0 ? BusinessFinancingIndices.PARENT_COMPANY : BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY;
|
|
1607
|
-
if (result.status === "fulfilled") {
|
|
1608
|
-
const response = result.value;
|
|
1609
|
-
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1610
|
-
businessFinancingEntityAssociations.push({
|
|
1611
|
-
type: "immediateParentCompany",
|
|
1612
|
-
legalEntityId: response.id,
|
|
1613
|
-
associatorId: companyBusinessFinancingDetails.id
|
|
1614
|
-
});
|
|
1615
|
-
entitiesToTrack.push(BusinessFinancingIndices.PARENT_COMPANY);
|
|
1616
|
-
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1617
|
-
businessFinancingEntityAssociations.push({
|
|
1618
|
-
type: "ultimateParentCompany",
|
|
1619
|
-
legalEntityId: response.id,
|
|
1620
|
-
associatorId: companyBusinessFinancingDetails.id
|
|
1621
|
-
});
|
|
1622
|
-
entitiesToTrack.push(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY);
|
|
1623
|
-
}
|
|
1624
|
-
} else {
|
|
1625
|
-
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1626
|
-
parentCompanyFailed = true;
|
|
1627
|
-
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1628
|
-
ultimateParentCompanyFailed = true;
|
|
1629
|
-
}
|
|
1630
|
-
handleSubmissionError(result.reason, businessFinancingType);
|
|
1631
|
-
}
|
|
1632
|
-
});
|
|
1633
|
-
if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
|
|
1634
|
-
companyBusinessFinancingDetails.entityAssociations = [
|
|
1635
|
-
...businessFinancingEntityAssociations
|
|
1636
|
-
];
|
|
1637
|
-
const eventsAdditionalData = {
|
|
1638
|
-
...getOrgAnalyticsData("Business", companyBusinessFinancingDetails),
|
|
1639
|
-
...getOrgAnalyticsData("ParentCompany", parentCompanyBusinessFinancingDetails),
|
|
1640
|
-
...getOrgAnalyticsData(
|
|
1641
|
-
"UltimateParentCompany",
|
|
1642
|
-
ultimateParentCompanyBusinessFinancingDetails
|
|
1643
|
-
)
|
|
1644
|
-
};
|
|
1645
|
-
try {
|
|
1646
|
-
await handleBusinessFinancingFormSubmission(
|
|
1647
|
-
BusinessFinancingIndices.COMPANY,
|
|
1648
|
-
companyBusinessFinancingDetails,
|
|
1649
|
-
createLegalEntity,
|
|
1650
|
-
updateLegalEntity,
|
|
1651
|
-
companyBusinessFinancingDetails?.id
|
|
1652
|
-
);
|
|
1653
|
-
userEvents.addTaskEvent("Success", {
|
|
1654
|
-
actionType: "submit",
|
|
1655
|
-
returnValue: entitiesToTrack,
|
|
1656
|
-
additionalData: eventsAdditionalData
|
|
1657
|
-
});
|
|
1658
|
-
await invalidateRootLegalEntity();
|
|
1659
|
-
if (showBusinessFinancingFirst || isStandaloneComponent) {
|
|
1660
|
-
setShowEndState(true);
|
|
1661
|
-
} else {
|
|
1662
|
-
externalOnSubmit?.({ ...umfData });
|
|
1663
|
-
}
|
|
1664
|
-
} catch (e) {
|
|
1665
|
-
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
1666
|
-
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
1667
|
-
}
|
|
1668
|
-
setProblems({});
|
|
1669
|
-
}
|
|
1670
|
-
} catch (e) {
|
|
1671
|
-
if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
|
|
1672
|
-
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
1673
|
-
}
|
|
1674
|
-
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
1675
|
-
} finally {
|
|
1676
|
-
setLoadingStatus("success");
|
|
1677
|
-
}
|
|
1678
|
-
};
|
|
1679
|
-
const handleSubmissionError = (error, businessFinancingType) => {
|
|
1680
|
-
if (isValidationError(error.actualError)) {
|
|
1681
|
-
const validationErrors = processValidationErrors(
|
|
1682
|
-
error.actualError,
|
|
1683
|
-
void 0,
|
|
1684
|
-
businessFinancingApiKeyMapping
|
|
1685
|
-
);
|
|
1686
|
-
setProblems((prevProblems) => ({
|
|
1687
|
-
...prevProblems,
|
|
1688
|
-
validationErrors: {
|
|
1689
|
-
...prevProblems?.validationErrors,
|
|
1690
|
-
[businessFinancingType]: validationErrors?.[businessFinancingType] ?? {}
|
|
1691
|
-
}
|
|
1692
|
-
}));
|
|
1693
|
-
} else if (isMaintenanceModeError(error)) {
|
|
1694
|
-
showToast({
|
|
1695
|
-
label: commonT(($) => $["maintenanceModeMessage"]),
|
|
1696
|
-
variant: "error",
|
|
1697
|
-
duration: "indefinite"
|
|
1698
|
-
});
|
|
1699
|
-
} else {
|
|
1700
|
-
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
1701
|
-
}
|
|
1702
|
-
};
|
|
1703
|
-
const omittedSummaryKeys = [
|
|
1704
|
-
"naceCodeLabel",
|
|
1705
|
-
"legalFormLabel",
|
|
1706
|
-
"currency",
|
|
1707
|
-
"doesYourCompanyHaveLEI",
|
|
1708
|
-
"sameAddressAsRootEntity"
|
|
1709
|
-
];
|
|
1710
|
-
const [requiredFields, setRequiredFields] = useState(void 0);
|
|
1711
|
-
const form = useMultiForm({
|
|
1712
|
-
requiredFields,
|
|
1713
|
-
defaultData: derivedData,
|
|
1714
|
-
rules: businessFinancingMultiformRules
|
|
1715
|
-
});
|
|
1716
|
-
const { data: umfData = derivedData, isValid, errors, valid } = form;
|
|
1717
|
-
useEffect(() => {
|
|
1718
|
-
const showParentCompany = umfData?.company?.isCompanyOwnedByAnotherCompany === "Yes";
|
|
1719
|
-
const showUltimateParentCompany = umfData?.company?.isParentOwnedByAnotherCompany === "Yes";
|
|
1720
|
-
let updateForms = {
|
|
1721
|
-
company: { ...businessFinancingForms.company }
|
|
1722
|
-
};
|
|
1723
|
-
if (showParentCompany) {
|
|
1724
|
-
updateForms = { ...updateForms, parentCompany: businessFinancingForms.parentCompany };
|
|
1725
|
-
}
|
|
1726
|
-
if (showParentCompany && showUltimateParentCompany) {
|
|
1727
|
-
updateForms = {
|
|
1728
|
-
...updateForms,
|
|
1729
|
-
ultimateParentCompany: businessFinancingForms.ultimateParentCompany
|
|
1730
|
-
};
|
|
1731
|
-
}
|
|
1732
|
-
setBusinessFinancingRequiredForms(updateForms);
|
|
1733
|
-
}, [
|
|
1734
|
-
umfData?.company?.isCompanyOwnedByAnotherCompany,
|
|
1735
|
-
umfData?.company?.isParentOwnedByAnotherCompany
|
|
1736
|
-
]);
|
|
1737
|
-
useEffect(() => {
|
|
1738
|
-
const reqs = getBusinessFinancingRequiredFields(country, umfData);
|
|
1739
|
-
setRequiredFields(reqs);
|
|
1740
|
-
}, [umfData]);
|
|
1741
|
-
const forms = useMemo(() => {
|
|
1742
|
-
const requiredForms = getRequiredForms(
|
|
1743
|
-
businessFinancingRequiredForms,
|
|
1744
|
-
businessFinancingFormsRequiredFields,
|
|
1745
|
-
{}
|
|
1746
|
-
);
|
|
1747
|
-
return addValidityToForms(requiredForms, isValid, problems);
|
|
1748
|
-
}, [businessFinancingRequiredForms, isValid, businessFinancingFormsRequiredFields, problems]);
|
|
1749
|
-
const {
|
|
1750
|
-
handleNextClick,
|
|
1751
|
-
handleBackClick,
|
|
1752
|
-
activeForm,
|
|
1753
|
-
gotoFormByFormIndex,
|
|
1754
|
-
steps,
|
|
1755
|
-
shouldValidate
|
|
1756
|
-
} = useFormComposer({
|
|
1757
|
-
problems,
|
|
1758
|
-
forms,
|
|
1759
|
-
onSubmit
|
|
1760
|
-
});
|
|
1761
|
-
const homeClick = () => {
|
|
1762
|
-
trackNavigation({
|
|
1763
|
-
userEvents,
|
|
1764
|
-
actionType: "save",
|
|
1765
|
-
toForm: "home",
|
|
1766
|
-
label: "home"
|
|
1767
|
-
});
|
|
1768
|
-
handleHomeClick?.();
|
|
1769
|
-
};
|
|
1770
|
-
const renderActiveForm = (selectedForm) => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-wrapper", children: [
|
|
1771
|
-
selectedForm.formId === companyFormId && /* @__PURE__ */ jsx(
|
|
1772
|
-
AdditionalFieldsForBusinessFinancingCompany,
|
|
1773
|
-
{
|
|
1774
|
-
data: defaultData?.company,
|
|
1775
|
-
legalEntity: rootLegalEntity,
|
|
1776
|
-
heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
1777
|
-
id: companyFormId,
|
|
1778
|
-
country,
|
|
1779
|
-
shouldValidate,
|
|
1780
|
-
fieldValidationErrors: problems?.validationErrors?.[selectedForm?.formId],
|
|
1781
|
-
formVerificationErrors: problems?.verificationErrors?.[selectedForm?.formId],
|
|
1782
|
-
errors: errors?.company,
|
|
1783
|
-
valid: valid?.company
|
|
1784
|
-
}
|
|
1785
|
-
),
|
|
1786
|
-
selectedForm.formId === parentCompanyFormId && /* @__PURE__ */ jsx(
|
|
1787
|
-
AdditionalFieldsForBusinessFinancingParentCompany,
|
|
1788
|
-
{
|
|
1789
|
-
data: defaultData?.parentCompany,
|
|
1790
|
-
heading: commonT(($) => $["parentCompanyInformation"]),
|
|
1791
|
-
id: companyFormId,
|
|
1792
|
-
country,
|
|
1793
|
-
shouldValidate,
|
|
1794
|
-
errors: errors?.parentCompany,
|
|
1795
|
-
legalEntity: rootLegalEntity
|
|
1796
|
-
}
|
|
1797
|
-
),
|
|
1798
|
-
selectedForm.formId === ultimateParentCompanyFormId && /* @__PURE__ */ jsx(
|
|
1799
|
-
AdditionalFieldsForBusinessFinancingUltimateParentCompany,
|
|
1800
|
-
{
|
|
1801
|
-
data: defaultData?.ultimateParentCompany,
|
|
1802
|
-
heading: commonT(($) => $["ultimateParentCompanyInformation"]),
|
|
1803
|
-
id: companyFormId,
|
|
1804
|
-
country,
|
|
1805
|
-
shouldValidate,
|
|
1806
|
-
errors: errors?.ultimateParentCompany,
|
|
1807
|
-
legalEntity: rootLegalEntity
|
|
1808
|
-
}
|
|
1809
|
-
)
|
|
1810
|
-
] });
|
|
1811
|
-
if (!defaultData?.company) {
|
|
1812
|
-
return /* @__PURE__ */ jsx(Loader, {});
|
|
1813
|
-
}
|
|
1814
|
-
return showEndState ? /* @__PURE__ */ jsx(
|
|
1815
|
-
EndStateLayout,
|
|
1816
|
-
{
|
|
1817
|
-
title: businessFinancingT(($) => $["submissionReceived"]),
|
|
1818
|
-
description: businessFinancingT(($) => $["theInformationProvidedIsBeingReviewed"]),
|
|
1819
|
-
action: externalOnSubmit && !showBusinessFinancingFirst ? /* @__PURE__ */ jsx(Button, { onClick: () => externalOnSubmit?.({ ...umfData }), children: externalOnSubmitLabel || commonT(($) => $["finish"]) }) : void 0
|
|
1820
|
-
}
|
|
1821
|
-
) : /* @__PURE__ */ jsx(FormContextProvider, { form, children: /* @__PURE__ */ jsx(
|
|
1822
|
-
FormFlow,
|
|
1823
|
-
{
|
|
1824
|
-
summary: {
|
|
1825
|
-
data: formatDataForSummary(
|
|
1826
|
-
i18n.language,
|
|
1827
|
-
businessFinancingT,
|
|
1828
|
-
datasetUtils,
|
|
1829
|
-
umfData,
|
|
1830
|
-
rootLegalEntity?.organization?.registeredAddress
|
|
1831
|
-
),
|
|
1832
|
-
omitted: {
|
|
1833
|
-
keys: omittedSummaryKeys
|
|
1834
|
-
},
|
|
1835
|
-
problems,
|
|
1836
|
-
labels: customLabels
|
|
1837
|
-
},
|
|
1838
|
-
currentStep: steps.current,
|
|
1839
|
-
disableNextButton: !activeForm.isValid,
|
|
1840
|
-
forms,
|
|
1841
|
-
gotoFormByFormIndex,
|
|
1842
|
-
handleBackClick,
|
|
1843
|
-
handleCancelClick: homeClick,
|
|
1844
|
-
handleNextClick,
|
|
1845
|
-
loadingStatus,
|
|
1846
|
-
totalSteps: steps.total,
|
|
1847
|
-
children: /* @__PURE__ */ jsx("div", { children: renderActiveForm(activeForm || businessFinancingForms.company) })
|
|
1848
|
-
}
|
|
1849
|
-
) });
|
|
1850
|
-
}
|
|
1851
|
-
export {
|
|
1852
|
-
BusinessFinancingDropin as B
|
|
1853
|
-
};
|