@adyen/kyc-components 4.0.0-compact.0 → 4.0.0-compact.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/4-people-BzyXLUF9.js +24 -0
- package/dist/{AD-CyP5INSp.js → AD-BQAadLyG.js} +2 -2
- package/dist/{AT-DJLlevck.js → AT-BI8ju2NH.js} +2 -2
- package/dist/{AcceptTermsOfServiceComponent-BF24NWVw.js → AcceptTermsOfServiceComponent-CNbcTHZy.js} +51 -66
- package/dist/Accordion-Bjer1DF8.js +88 -0
- package/dist/{AccountSetupRejected-2t22lJUo.js → AccountSetupRejected-Cn672qPs.js} +6 -6
- package/dist/ActionBar-_ItKVS6X.js +31 -0
- package/dist/{Address-DSwfzWFu.js → Address-brlyMNsL.js} +292 -51
- package/dist/{Alert-C24s_Ygs.js → Alert-BjepSgqS.js} +7 -79
- package/dist/{Avatar-DQjt5Lk2.js → Avatar-YKRRWtuD.js} +2 -2
- package/dist/{BE-B-m_4F41.js → BE-nWHKW0xQ.js} +2 -2
- package/dist/{BG-BVR5ytc-.js → BG-HKzabLqZ.js} +3 -3
- package/dist/BusinessDetailsDropin-Be43Lz8z.js +2359 -0
- package/dist/BusinessFinancingComponent-DaXrEiOK.js +55 -0
- package/dist/{BusinessFinancingDropin-C-xm14b8.js → BusinessFinancingDropin-CxvdCIOR.js} +186 -154
- package/dist/BusinessFinancingPage-DR8f57Zt.js +43 -0
- package/dist/{BusinessTypeSelectionPage-ujY2jj6B.js → BusinessTypeSelectionPage-5VrdC33B.js} +13 -13
- package/dist/{CH-CesIKOYy.js → CH-TX4BTE2y.js} +2 -2
- package/dist/{CY-BnJ7k_mN.js → CY-D59Nypl7.js} +2 -2
- package/dist/{CZ-BiPeoA9G.js → CZ-B6iI1GbE.js} +3 -3
- package/dist/Card-DTRTgvkU.js +82 -0
- package/dist/ConstitutionalDocument-LzfYJniz.js +143 -0
- package/dist/{CountryField-D0YZrov9.js → CountryField-BKLmbhSX.js} +195 -216
- package/dist/CreateIndividualComponent-BLXGgGyY.js +71 -0
- package/dist/CreateTransferInstrumentComponent-DVckBQQm.js +63 -0
- package/dist/{Currency-BECbMsi5.js → Currency-MPPfYpO2.js} +10 -65
- package/dist/{CustomerSupport-B8zC_huY.js → CustomerSupport-By2yaM5E.js} +23 -11
- package/dist/{DE-DdcbG-CC.js → DE-CsuX_tSL.js} +2 -2
- package/dist/{DK-DA8qRrzq.js → DK-oQEFrF6o.js} +3 -3
- package/dist/{DebugModal-CshTHx0o.js → DebugModal-DCHlUTNW.js} +128 -43
- package/dist/DecisionMakerDetailsPage-tc-XK5oy.js +106 -0
- package/dist/DecisionMakers-DU88cxZJ.js +842 -0
- package/dist/DropinLayout-CBP_cHLC.js +17 -0
- package/dist/{EE-CaXoPgZz.js → EE-3WZV5Ejt.js} +2 -2
- package/dist/{ES-Bt_oaIaf.js → ES-NfxpqbC2.js} +2 -2
- package/dist/{EmbeddedStatus-BHTZcjUN.js → EmbeddedStatus-Dyw4tZGv.js} +15 -16
- package/dist/{EndStateLayout-CyGtLyvf.js → EndStateLayout-Dyji8Wu9.js} +2 -2
- package/dist/EntityAssociation-Dj13mqhr.js +159 -0
- package/dist/EntityGuidanceStatus-B-VLjG9P.js +105 -0
- package/dist/{FI-C5V3lLuN.js → FI-CHQIvHa-.js} +2 -2
- package/dist/{FR-Bc1tLIC4.js → FR-MWZyWX3x.js} +2 -2
- package/dist/FormFlow-KgmudcUf.js +186 -0
- package/dist/{FormNavigation-ezxkIqdb.js → FormNavigation-CFIXqopX.js} +6 -24
- package/dist/{useGlobalData-jb7ua9I6.js → FormWrapper-CCyMspMC.js} +12 -82
- package/dist/{GG-BGuqxplU.js → GG-CPoMVQPc.js} +3 -3
- package/dist/{GI-CROkpYrU.js → GI-DxmBwVD_.js} +3 -3
- package/dist/{GR-B9c2boG8.js → GR-Rk0pXlNw.js} +2 -2
- package/dist/{HR-p4luVYpu.js → HR-WapHW2fw.js} +2 -2
- package/dist/{HU-D8vJYkDH.js → HU-DCOMuOhe.js} +3 -3
- package/dist/{IE-Cli_j7Al.js → IE-BkgtVgDi.js} +2 -2
- package/dist/{IM-mpIyBn16.js → IM-Wr4iDT94.js} +3 -3
- package/dist/{IS-02zCAdvq.js → IS-C-Cgc6zp.js} +2 -2
- package/dist/{IT-CzURFhrK.js → IT-CXekiddL.js} +2 -2
- package/dist/{IndividualOnfidoDropin-vuHu-O_C.js → IndividualOnfido-DGWs87Bu.js} +8212 -6455
- package/dist/IndividualOnfidoDropin-CUY4R6Np.js +2569 -0
- package/dist/{InputText-BX5sG9WJ.js → InputText-DXkZ7fwq.js} +101 -13
- package/dist/{Introduction-BsKwELuc.js → Introduction-CjaMyLeR.js} +7 -11
- package/dist/{JE-MFwIYti7.js → JE-B4gj54Hg.js} +3 -3
- package/dist/JpAddress-DSZyw5JH.js +271 -0
- package/dist/{LI-DA06W10W.js → LI-L0ZAALRT.js} +2 -2
- package/dist/{LT-DuU6E2Ct.js → LT-Ao2uagV9.js} +2 -2
- package/dist/{LU-BQHhNpDy.js → LU-B7LRUuc6.js} +2 -2
- package/dist/{LV-DN7wckbP.js → LV-DZeGjA2G.js} +2 -2
- package/dist/{LegalRepresentativeDetailsPage-DtMHe1Nq.js → LegalRepresentativeDetailsPage-L1HAsU01.js} +6 -7
- package/dist/ListItem-COe1T6IG.js +69 -0
- package/dist/{MC-DtSWC4jS.js → MC-EDVNGWhy.js} +2 -2
- package/dist/{MT-DeDMQ1f_.js → MT-B9my7RlP.js} +2 -2
- package/dist/ManageIndividualComponent-ySaPJphf.js +46 -0
- package/dist/ManageTermsOfServiceComponent-ClF1MHMK.js +52 -0
- package/dist/{ManageTransferInstrumentComponent-DywpP5PK.js → ManageTransferInstrumentComponent-D26m3iJX.js} +19 -26
- package/dist/{MaybeModal-CE9kYOrU.js → MaybeModal-BPq0SmbE.js} +15 -4
- package/dist/{Modal-nMRQDTF7.js → Modal-qvqrnkl9.js} +19 -6
- package/dist/{NL-aVL0NAp-.js → NL-VXAFOhV5.js} +2 -2
- package/dist/{NO-D7EOiQA1.js → NO-Cx1VSh2W.js} +3 -3
- package/dist/OnboardingDropinComponent-CAowzo5z.js +7617 -0
- package/dist/{PL-Bg7axKQA.js → PL-BZW1hGvD.js} +3 -3
- package/dist/{PT-hB1HnBM2.js → PT-OpU4MU3L.js} +2 -2
- package/dist/{PayoutDetailsDropin-BJIqXmPn.js → PayoutDetailsDropin-CElcAZkT.js} +1530 -384
- package/dist/ProgressBar-B7gTQncy.js +47 -0
- package/dist/{RO-BLlC4CKq.js → RO-Cz6Sh0ls.js} +2 -2
- package/dist/{Review-D7NEYFoT.js → Review-BsSmYJ0Z.js} +9 -8
- package/dist/RootBusinessDetailsPage-DfaUd-dT.js +46 -0
- package/dist/RootBusinessLinesPage-BUU93N7l.js +1484 -0
- package/dist/RootIndividualDetailsPage-pNQ9v0Cg.js +71 -0
- package/dist/{SE-q25Qt85B.js → SE-B5K-FkQd.js} +3 -3
- package/dist/{SI-BzA-ozn6.js → SI-BOGTNLPa.js} +2 -2
- package/dist/{SK-DOTdLJPw.js → SK-BOVrp_Av.js} +2 -2
- package/dist/{SM-B4BIgmhk.js → SM-meowwILA.js} +2 -2
- package/dist/{SignPCIComponent-C0iYfSl6.js → SignPCIComponent-DA9HTJcn.js} +29 -19
- package/dist/{SingpassSelection-ClMlwfoj.js → SingpassSelection-CWJuYh4-.js} +10 -10
- package/dist/SoleProprietorshipPage-p5JwimAo.js +46 -0
- package/dist/{SourceOfFundsPage-D-pN33-9.js → SourceOfFundsPage-CG0pItrl.js} +238 -956
- package/dist/{MaskedInput-BZ7t98eu.js → Spacer-BcPESwGJ.js} +641 -24
- package/dist/{StepProgressIndicator-BWCQmDeV.js → StepProgressIndicator-BG5uNVKJ.js} +2 -2
- package/dist/{StoreProvider-BlaJzXSZ.js → StoreProvider-D0o_745u.js} +1195 -560
- package/dist/Summary-DfChUS-N.js +204 -0
- package/dist/{TaxReportingDropin-CVbVkFhv.js → TaxReportingDropin-BhFHPYrV.js} +76 -74
- package/dist/TrustDetailsPage-UI7Qhogx.js +2149 -0
- package/dist/TrustMemberCompanyPage-Cvq23-mG.js +57 -0
- package/dist/TrustMemberIndividualPage-9eQ_yj88.js +66 -0
- package/dist/TrustMemberRoleAndTypePage-C5X4yQcZ.js +985 -0
- package/dist/TrustMembersOverview-DS3F2gW9.js +438 -0
- package/dist/{UnincorporatedPartnershipIndividualPage-vzn0R02z.js → UnincorporatedPartnershipIndividualPage-B9EMaXkA.js} +6 -7
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-C-kGU5Sh.js → UnincorporatedPartnershipMemberCompanyPage-DqpxNM8J.js} +7 -11
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-DuWERJIv.js +281 -0
- package/dist/UnincorporatedPartnershipMembersOverview-CXIrEXgp.js +172 -0
- package/dist/{VA-bPXdCnwD.js → VA-DXsYTCoh.js} +2 -2
- package/dist/VerificationErrorAlert-Cwea2nvk.js +79 -0
- package/dist/{ViewVerificationStatusComponent-BTW-Vw9I.js → ViewVerificationStatusComponent-C5rBiaSa.js} +16 -13
- package/dist/adyen-business-financing.js +10 -7
- package/dist/adyen-individual-configuration.js +7 -8
- package/dist/adyen-individual-status.js +7 -8
- package/dist/adyen-kyc-components.js +38 -33
- package/dist/adyen-onboarding.js +4 -5
- package/dist/adyen-terms-of-service-management.js +7 -8
- package/dist/adyen-terms-of-service-status.js +7 -8
- package/dist/adyen-transfer-instrument-configuration.js +7 -8
- package/dist/adyen-transfer-instrument-management.js +7 -8
- package/dist/adyen-verification-status.js +5 -6
- package/dist/{arrow-right-D_mdkZmE.js → arrow-right-KxA3SvQj.js} +2 -2
- package/dist/{bag-DpxmyXfR.js → bag-BPumznWh.js} +2 -2
- package/dist/{bank-gyBvaSp4.js → bank-D6FiNBhs.js} +2 -2
- package/dist/bin-Bz6KOIeE.js +18 -0
- package/dist/capital-GVQ3svwN.js +17 -0
- package/dist/{cash-stack-Ds76Du8m.js → cash-stack-D9AoDDwt.js} +3 -3
- package/dist/{certificate-D6xjhThs.js → certificate-CdEWgHQf.js} +3 -3
- package/dist/{checkmark-tfEAu7lj.js → checkmark-Q7x6tGhy.js} +2 -2
- package/dist/checkmark-circle-fill-CsvN5_PL.js +17 -0
- package/dist/{checkmark-circle-nACBJ24q.js → checkmark-circle-x7dzbp3I.js} +3 -3
- package/dist/{checkmark-small-63w5fAxg.js → checkmark-small-D35myntq.js} +2 -2
- package/dist/{chevron-down-CkQS-knD.js → chevron-down-C2iDorpW.js} +2 -2
- package/dist/{chevron-left-CBCMdMx6.js → chevron-left-ztPO84q-.js} +2 -2
- package/dist/{chevron-right-dIVWvPJu.js → chevron-right-C_JN0oDt.js} +2 -2
- package/dist/{chevron-up-D93IGU9z.js → chevron-up-CgG8n25g.js} +2 -2
- package/dist/circle-Bt3Nlr3q.js +17 -0
- package/dist/circle-small-filled-YMzP6yQU.js +14 -0
- package/dist/clock-BZHremOA.js +20 -0
- package/dist/coins-fkAk6dCo.js +17 -0
- package/dist/{contract-DI03_xrF.js → contract-BTa4HltT.js} +2 -2
- package/dist/{cross-o4n5KXxG.js → cross-Cn09MtQ_.js} +2 -2
- package/dist/cross-circle-fill-maan7Z5S.js +17 -0
- package/dist/{cross-circle-fill-small-CHMDaA3q.js → cross-circle-fill-small-DCz52AuN.js} +2 -2
- package/dist/da-DK-BlU1EczG.js +30 -0
- package/dist/da-DK-DCJhV2qS.js +32 -0
- package/dist/da-DK-DEdQ-QPp.js +13 -0
- package/dist/da-DK-DWA8uOd8.js +24 -0
- package/dist/{da-DK-BoQic3Gy.js → da-DK-DYpfNZdP.js} +5 -1
- package/dist/da-DK-DZwlENGe.js +13 -0
- package/dist/da-DK-Dc0QYG8m.js +68 -0
- package/dist/da-DK-DqkN5oIu.js +13 -0
- package/dist/da-DK-DvZ431fC.js +13 -0
- package/dist/{da-DK-B45X2VaJ.js → da-DK-JHZnsI59.js} +24 -4
- package/dist/da-DK-gnPgzwrG.js +27 -0
- package/dist/da-DK-h8DYQ_Iq.js +13 -0
- package/dist/da-DK-jK7c9UL0.js +57 -0
- package/dist/de-DE-0uSzhWg5.js +13 -0
- package/dist/{de-DE-Dwagawx1.js → de-DE-BXt1K0Tr.js} +5 -1
- package/dist/de-DE-COuUdtao.js +13 -0
- package/dist/de-DE-D3lLuF8z.js +27 -0
- package/dist/de-DE-D50lGOJE.js +24 -0
- package/dist/de-DE-DXR3EpEc.js +13 -0
- package/dist/de-DE-DrSSblam.js +13 -0
- package/dist/de-DE-DwOQKCuU.js +32 -0
- package/dist/de-DE-Dz2OsS1F.js +68 -0
- package/dist/de-DE-LQE_LFFL.js +13 -0
- package/dist/{de-DE-CWvgMDqU.js → de-DE-VGGEkxUT.js} +24 -4
- package/dist/de-DE-s0B-XZyp.js +30 -0
- package/dist/de-DE-wmerDL2e.js +57 -0
- package/dist/debouncedInputEvent-DbzJEMPo.js +109 -0
- package/dist/{form-rules-DhbF2mY4.js → debugStore-BvbyN1Oi.js} +4 -3
- package/dist/{document-1-DsCi9vmX.js → document-1-C08ut-Dt.js} +2 -2
- package/dist/document-person-vxlA6C5f.js +20 -0
- package/dist/documentUtils-Cc83Q1S6.js +218 -0
- package/dist/download-Drhk9k1f.js +17 -0
- package/dist/{dropinUtils-DHp5v5jB.js → dropinUtils-D0iun-Wp.js} +32 -24
- package/dist/edit-1-CFoDTMvQ.js +14 -0
- package/dist/en-US-AgtwE4Fl.js +63 -0
- package/dist/en-US-B96dpVon.js +27 -0
- package/dist/en-US-BQZhzROc.js +32 -0
- package/dist/en-US-CozY33On.js +13 -0
- package/dist/{en-US-DIdQJky-.js → en-US-CzEL6t1W.js} +24 -4
- package/dist/en-US-D-B35AoN.js +68 -0
- package/dist/en-US-D2yrwtzT.js +24 -0
- package/dist/{en-US-BbAzROHT.js → en-US-Dg505Oh3.js} +2 -1
- package/dist/en-US-d4WBvUW7.js +118 -0
- package/dist/en-US-fyGPkcqX.js +13 -0
- package/dist/en-US-gsp7CD_E.js +57 -0
- package/dist/en-US-h0JneJJl.js +13 -0
- package/dist/es-ES-B7dt4cn7.js +13 -0
- package/dist/es-ES-BI_jdT67.js +68 -0
- package/dist/es-ES-BOoPqnPI.js +32 -0
- package/dist/{es-ES-Bsoco8Fj.js → es-ES-BhNhIf08.js} +5 -1
- package/dist/{es-ES-DKCCgVF8.js → es-ES-Bn9_0wK0.js} +24 -4
- package/dist/es-ES-CXDJLKAI.js +27 -0
- package/dist/es-ES-DF_L5EDd.js +24 -0
- package/dist/es-ES-DNGEW6V_.js +13 -0
- package/dist/es-ES-DdGmXdxO.js +13 -0
- package/dist/es-ES-Qnc0Q6JH.js +57 -0
- package/dist/es-ES-ShWaSuJd.js +13 -0
- package/dist/es-ES-esfwvKwz.js +30 -0
- package/dist/es-ES-yMXcOjDL.js +13 -0
- package/dist/{external-link-BjladU3E.js → external-link-DCMYUMfW.js} +2 -2
- package/dist/fi-FI-CIYa9SyS.js +13 -0
- package/dist/fi-FI-ChApf7lf.js +13 -0
- package/dist/fi-FI-CjB6QC01.js +30 -0
- package/dist/fi-FI-CoI_94Fv.js +13 -0
- package/dist/fi-FI-DH6jpo9K.js +24 -0
- package/dist/fi-FI-Dn2MC8uW.js +57 -0
- package/dist/{fi-FI-Hhku9Lmc.js → fi-FI-PVFqd5Ra.js} +24 -4
- package/dist/fi-FI-REMsyTSr.js +13 -0
- package/dist/fi-FI-bZzNB1WB.js +32 -0
- package/dist/fi-FI-fArobrt5.js +27 -0
- package/dist/fi-FI-hwzizPnr.js +68 -0
- package/dist/fi-FI-xqnQ38yC.js +13 -0
- package/dist/{fi-FI-ClnsYt3L.js → fi-FI-ysUrBilO.js} +5 -1
- package/dist/{fr-FR-CJI0bIig.js → fr-FR-BSvSKazD.js} +5 -1
- package/dist/fr-FR-BSynpexF.js +13 -0
- package/dist/fr-FR-BWX14yb7.js +57 -0
- package/dist/fr-FR-BnblnBsx.js +24 -0
- package/dist/fr-FR-Br7OeDIe.js +13 -0
- package/dist/fr-FR-C1XqLftn.js +30 -0
- package/dist/fr-FR-CYZXbwc9.js +68 -0
- package/dist/fr-FR-CiwkAb3E.js +27 -0
- package/dist/fr-FR-CvHWmim-.js +13 -0
- package/dist/fr-FR-Q3urMjbl.js +13 -0
- package/dist/fr-FR-cTKcuHqX.js +32 -0
- package/dist/fr-FR-l5z31r7i.js +13 -0
- package/dist/{fr-FR-BYuKsZIb.js → fr-FR-mJK4hjwD.js} +24 -4
- package/dist/getFieldsWithExistingData-2sKn11MH.js +22 -0
- package/dist/{getName-DJlhsDj_.js → getName-DhbqyTuj.js} +2 -2
- package/dist/gift-CQ_DEma7.js +14 -0
- package/dist/{graph-DwYwlplw.js → graph-BJmqglH2.js} +3 -3
- package/dist/{graph-up-DpbCSPbc.js → graph-up-Bq6adtlX.js} +6 -6
- package/dist/{hasDataChanged-BgvxL-Hx.js → hasDataChanged-ZEmm9mgZ.js} +2 -2
- package/dist/headquarter-DNYyuuFq.js +21 -0
- package/dist/{hotel-JX0bjsSA.js → hotel-BuNql78Z.js} +3 -3
- package/dist/{iframeWidget-Bftkd3v_.js → iframeWidget-DhidmNAp.js} +4 -4
- package/dist/image-BSihO8lR.js +17 -0
- package/dist/info-filled-SQotHmT9.js +17 -0
- package/dist/info-vHTZWoJ7.js +21 -0
- package/dist/it-IT-B0YGvVgW.js +57 -0
- package/dist/it-IT-BAvmkEF8.js +13 -0
- package/dist/it-IT-BAvsF2TB.js +13 -0
- package/dist/{it-IT-Nl57jui-.js → it-IT-BTWkWSJq.js} +24 -4
- package/dist/it-IT-BeX7-OcD.js +13 -0
- package/dist/it-IT-C_651bEP.js +13 -0
- package/dist/it-IT-C_YDqVNT.js +30 -0
- package/dist/it-IT-Ckv8Ce4e.js +24 -0
- package/dist/it-IT-DERflsUd.js +32 -0
- package/dist/it-IT-DIbH-udG.js +27 -0
- package/dist/it-IT-Erh1DIlj.js +68 -0
- package/dist/{it-IT-BeC2Y1F8.js → it-IT-Qfzc8jnW.js} +5 -1
- package/dist/it-IT-vdMlF0Ha.js +13 -0
- package/dist/{localizeDateString-DHsivjy2.js → localizeDateString-DYxbMJdq.js} +2 -2
- package/dist/location-Q4oKvnkl.js +17 -0
- package/dist/mail-BOdyoVqB.js +14 -0
- package/dist/mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js +56 -0
- package/dist/{mapExistingFile-DW5ktJzM.js → mapExistingFile-DGRyOBjp.js} +5 -80
- package/dist/mapFinancialReportsToFinancialInformation-DBdQzrBs.js +67 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-uwuFlYx9.js +63 -0
- package/dist/mapLegalEntityToIndividualOnfidoSchema-C6mqHFxh.js +146 -0
- package/dist/{mapTransferInstrumentToPayoutAccount-CAoOlPMA.js → mapTransferInstrumentToPayoutAccount-CrO59de3.js} +6 -3
- package/dist/{minus-circle-filled-BGKeHaxJ.js → minus-circle-filled-kC2IUvKz.js} +3 -3
- package/dist/nl-NL-BMUYBqlF.js +57 -0
- package/dist/nl-NL-BwKrj-29.js +13 -0
- package/dist/nl-NL-Bx5p0nXL.js +24 -0
- package/dist/nl-NL-C3YJkSIj.js +13 -0
- package/dist/nl-NL-CM5U8ODq.js +13 -0
- package/dist/{nl-NL-BHkRnVrj.js → nl-NL-CTf7zH4M.js} +24 -4
- package/dist/nl-NL-Cjlmc0Ii.js +32 -0
- package/dist/{nl-NL-Cysslsh2.js → nl-NL-D7gBNWEY.js} +5 -1
- package/dist/nl-NL-DV4NqPVW.js +13 -0
- package/dist/nl-NL-DyeSX0PH.js +30 -0
- package/dist/nl-NL-JChnFdCY.js +13 -0
- package/dist/nl-NL-NlkjOSYi.js +27 -0
- package/dist/nl-NL-O9GCHMDA.js +68 -0
- package/dist/no-NO--OoWld_l.js +13 -0
- package/dist/no-NO-B6OPS2CA.js +13 -0
- package/dist/no-NO-B9618F4_.js +13 -0
- package/dist/no-NO-BQL_M1pn.js +13 -0
- package/dist/no-NO-Bs3-6MDM.js +24 -0
- package/dist/{no-NO-zSnPtrDi.js → no-NO-C-gCYc9q.js} +5 -1
- package/dist/no-NO-CA1aR6Wh.js +68 -0
- package/dist/no-NO-CY_XHrYd.js +32 -0
- package/dist/no-NO-Crlsj6HG.js +27 -0
- package/dist/no-NO-D4BECLky.js +130 -0
- package/dist/no-NO-DKbWxgF-.js +57 -0
- package/dist/no-NO-DPRsAb_o.js +30 -0
- package/dist/{no-NO-kaAdT9B8.js → no-NO-RfTK9KAV.js} +24 -4
- package/dist/{options-horizontal-nJ9-ButA.js → options-horizontal-CBmbNv7R.js} +4 -4
- package/dist/partner-CPjsrePY.js +18 -0
- package/dist/pay-by-link-plane-BVZndh67.js +22 -0
- package/dist/{payout-iEmHhgQ4.js → payout-ChUEoLjt.js} +6 -6
- package/dist/payout-verification-instant-5u-wvFKv.js +41 -0
- package/dist/payout-verification-manual-BH2mu0UW.js +90 -0
- package/dist/person-DGjUU4S4.js +17 -0
- package/dist/{plus-CwLva7fq.js → plus-CWXA5wdX.js} +2 -2
- package/dist/plus-circle-filled-CbC0u2Y1.js +17 -0
- package/dist/process-field-configurations-IsZZTbcC.js +324 -0
- package/dist/pt-BR--kaJvtE6.js +57 -0
- package/dist/pt-BR-AZ3roErF.js +13 -0
- package/dist/pt-BR-BKQRvAfq.js +13 -0
- package/dist/pt-BR-BbFJsIVX.js +55 -0
- package/dist/pt-BR-BfxgHKY4.js +27 -0
- package/dist/pt-BR-C-C4ZJ9x.js +30 -0
- package/dist/pt-BR-C0I_kTQ6.js +13 -0
- package/dist/pt-BR-CBAe0SnK.js +32 -0
- package/dist/pt-BR-DSENwwGu.js +24 -0
- package/dist/pt-BR-NtLaWlnZ.js +68 -0
- package/dist/pt-BR-gh27BC86.js +13 -0
- package/dist/pt-BR-nU_2Wbo5.js +54 -0
- package/dist/pt-BR-ur86nRrK.js +37 -0
- package/dist/pt-BR-zuqB_CBf.js +13 -0
- package/dist/{pt-PT-Xm-pm3mb.js → pt-PT-B4F_5NWi.js} +24 -4
- package/dist/pt-PT-BZ5ZZm6G.js +57 -0
- package/dist/pt-PT-Bf4IV7wp.js +13 -0
- package/dist/pt-PT-CFY1O_K0.js +13 -0
- package/dist/pt-PT-CIo3mlXL.js +24 -0
- package/dist/{pt-PT-CjsyP_OK.js → pt-PT-CVNEcs32.js} +5 -1
- package/dist/pt-PT-D2Xe-OdG.js +13 -0
- package/dist/pt-PT-DSxxVA0f.js +68 -0
- package/dist/pt-PT-DVKtHjIY.js +13 -0
- package/dist/pt-PT-DYihdcJx.js +13 -0
- package/dist/pt-PT-Dm5DRDrd.js +32 -0
- package/dist/pt-PT-LbneTcRx.js +30 -0
- package/dist/pt-PT-TKg5FLat.js +27 -0
- package/dist/recurring-CkL4cCM2.js +17 -0
- package/dist/{reporting-DlRoibD7.js → reporting-DerosUNm.js} +1 -2
- package/dist/resolveEnvironment-CM4-oCnd.js +164 -0
- package/dist/revenue-accelerate-Dp4Ns_5c.js +17 -0
- package/dist/{rules-DP3jxPzq.js → rules-BFaDNVc6.js} +14 -8
- package/dist/save-Fgy7EDid.js +14 -0
- package/dist/search-C4GZ-Rc1.js +17 -0
- package/dist/{show-uL6I-rMo.js → show-yPjPmEf8.js} +3 -3
- package/dist/sl-SI-59OQIZ3f.js +13 -0
- package/dist/sl-SI-8SzKx7XD.js +30 -0
- package/dist/sl-SI-C-C-KJCX.js +27 -0
- package/dist/sl-SI-C0wSbuau.js +13 -0
- package/dist/{sl-SI-Br0UEUPL.js → sl-SI-CUCrzJQv.js} +5 -1
- package/dist/sl-SI-DdjgSySI.js +13 -0
- package/dist/sl-SI-DtdGMD6i.js +57 -0
- package/dist/{solution-payments-DTAuLSWF.js → solution-payments-CNAat9h7.js} +2 -2
- package/dist/store-IuAkDRAp.js +14 -0
- package/dist/style.css +2655 -2214
- package/dist/styles-CLV89_hH.js +2670 -2229
- package/dist/sv-SE-B7cpKp1l.js +30 -0
- package/dist/sv-SE-BHfydid5.js +27 -0
- package/dist/sv-SE-BHkYspm-.js +130 -0
- package/dist/{sv-SE-BtXmvxx4.js → sv-SE-C6uPh9g5.js} +5 -1
- package/dist/sv-SE-CQWBP7n1.js +13 -0
- package/dist/sv-SE-CRBRuE8Z.js +32 -0
- package/dist/sv-SE-CXaMlJCI.js +24 -0
- package/dist/{sv-SE-B3zoXMuH.js → sv-SE-DGpvVvWj.js} +24 -4
- package/dist/sv-SE-DsPdegWB.js +13 -0
- package/dist/sv-SE-DtKjf4Go.js +13 -0
- package/dist/sv-SE-K1QT1cOt.js +68 -0
- package/dist/sv-SE-kR514dO1.js +57 -0
- package/dist/sv-SE-zTiw1bUU.js +13 -0
- package/dist/terminal-1-_me9J9h0.js +18 -0
- package/dist/trackNavigation-db_h46BT.js +28 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +6 -2
- package/dist/types/api/address/useRetrieveAddress.d.ts +3 -1
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +18 -0
- package/dist/types/api/businessLines/businessLines.types.d.ts +21 -0
- package/dist/types/api/businessLines/useBusinessLines.d.ts +4 -2
- package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +7 -0
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +5 -0
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +7 -0
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +1 -0
- package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -0
- package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -18
- package/dist/types/api/configurations/useScenarios.d.ts +12 -12
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +15 -0
- package/dist/types/api/industryCodes/industryCodes.types.d.ts +2 -1
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +3 -3
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +16 -16
- package/dist/types/api/{pciTemplate/pciTemplate.types.d.ts → pci/pci.types.d.ts} +9 -1
- package/dist/types/api/{pciTemplate → pci}/usePciQuestionnaire.d.ts +1 -1
- package/dist/types/api/{pciTemplate → pci}/usePciQuestionnaireList.d.ts +1 -1
- package/dist/types/api/{pciTemplate → pci}/usePciStatus.d.ts +1 -1
- package/dist/types/api/pci/usePciTemplate.d.ts +8 -0
- package/dist/types/api/queryKeys.d.ts +5 -4
- package/dist/types/components/BankAccount/fields/BankAccountFormat/types.d.ts +2 -1
- package/dist/types/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.d.ts +10 -0
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +5 -0
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirementsModal.d.ts +6 -0
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/BankDocument/validate.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +7 -0
- package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutAccount/payoutAccountFormat.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutRequirementsModal.d.ts +8 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +13 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +6 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +5 -5
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +2 -0
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +2 -1
- package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1052 -642
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -3
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +5 -4
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -2
- package/dist/types/components/Business/forms/AdditionalInformation/{VerifiedBusinessCard.d.ts → VerifiedBusinessCard/VerifiedBusinessCard.d.ts} +2 -3
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +6 -7
- package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +1 -4
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +5 -18
- package/dist/types/components/Business/{tasks/BusinessDetailsMultiformDropin → forms/BusinessDetails}/BusinessDetailsMultiform.d.ts +2 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +0 -35
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +0 -21
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +0 -1
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +13 -3
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +0 -11
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +3 -3
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +0 -6
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/ProofOfDirectorDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/ProofOfSignatoryDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/RegistrationDocument/RegistrationDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -5
- package/dist/types/components/Business/forms/TaxDocument/TaxDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -5
- package/dist/types/components/Business/forms/forms.types.d.ts +0 -3
- package/dist/types/components/Business/forms/rules.d.ts +3 -1
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -2
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +16 -10
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +26 -5
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +5 -0
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +3 -3
- package/dist/types/components/Business/utils/requestingCapabilities.d.ts +3 -0
- package/dist/types/components/BusinessLines/constants.d.ts +31 -0
- package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +30 -0
- package/dist/types/components/BusinessLines/fields/SalesChannels/SalesChannels.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/SalesChannels/types.d.ts +6 -0
- package/dist/types/components/BusinessLines/fields/SctaField/SctaField.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +6 -0
- package/dist/types/components/BusinessLines/fields/WebDataField/WebDataField.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +6 -0
- package/dist/types/components/BusinessLines/forms/IndustryCodesForm/IndustryCodesForm.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/IndustryCodesForm/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/SalesChannelsForm.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/types.d.ts +3 -0
- package/dist/types/components/BusinessLines/forms/SctaForm/SctaForm.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/SctaForm/SctaInfoModal.d.ts +3 -0
- package/dist/types/components/BusinessLines/forms/SctaForm/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/rules.d.ts +6 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +6 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLines.d.ts +9 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +2 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesStore.d.ts +3 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/ExistingBusinessLines/ExistingBusinessLines.d.ts +8 -0
- package/dist/types/components/BusinessLines/tasks/types.d.ts +19 -0
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +40 -0
- package/dist/types/components/BusinessLines/tasks/validate.d.ts +11 -0
- package/dist/types/components/Contract/hooks/useSalesChannels.d.ts +2 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1328 -758
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +7 -5
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsType.d.ts +3 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/sofStore.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +14 -13
- package/dist/types/components/EFP/tasks/TaxReportingDropin/taxClassificationStore.d.ts +1 -1
- package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +6 -6
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/BusinessFinancingComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +3 -3
- package/dist/types/components/EmbeddedDropins/SignPCIComponent/SignPCIComponent.d.ts +3 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +3 -3
- package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +3 -0
- package/dist/types/components/Individual/forms/Individual/IdVerification/idVerificationProviderId.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +3 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -0
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +3 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +4 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +3 -1
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -2
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -8
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -6
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +2 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +57 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/RemediationAlerts.d.ts +7 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +19 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +3 -0
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -4
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +0 -2
- package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +1 -1
- package/dist/types/components/Shared/FormNavigation/types.d.ts +0 -2
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +1 -3
- package/dist/types/components/Shared/Introduction/copy.d.ts +2 -2
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
- package/dist/types/components/Shared/Summary/types.d.ts +1 -2
- package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +18 -0
- package/dist/types/components/Shared/devex/DebugListener/DebugFormData.d.ts +1 -0
- package/dist/types/components/Shared/devex/DebugListener/debugStore.d.ts +5 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +1 -0
- package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +4 -0
- package/dist/types/components/Shared/fields/IndustryCodeField/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +22 -0
- package/dist/types/components/Shared/fields/IndustryCodeField/validate.d.ts +3 -0
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddress.d.ts +7 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/ReadonlyTextField.d.ts +7 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +3 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +3 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +4 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +3 -2
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -2
- package/dist/types/components/Shared/forms/RegistrationAddress/RegistrationAddressMultiform.d.ts +3 -0
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +3 -2
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +4 -0
- package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +3 -1
- package/dist/types/components/Shared/tasks/TaskList/TaskListItem.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +4 -12
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -1
- package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +1 -2
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetailsMultiform.d.ts +2 -0
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -16
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +1 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +21 -0
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +2 -0
- package/dist/types/components/Trust/tasks/TrustDropin/validate.d.ts +5 -0
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +1 -2
- package/dist/types/components/ui/atoms/Header/Header.d.ts +12 -0
- package/dist/types/components/ui/atoms/Link/Link.types.d.ts +1 -1
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +1 -2
- package/dist/types/components/ui/atoms/Loader/Loader.d.ts +1 -5
- package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
- package/dist/types/components/ui/atoms/RadioCard/RadioCard.d.ts +1 -0
- package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.d.ts +4 -4
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +8 -9
- package/dist/types/components/ui/atoms/Status/Status.d.ts +9 -3
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +10 -0
- package/dist/types/components/ui/atoms/TileGroup/TileGroup.d.ts +3 -1
- package/dist/types/components/ui/atoms/Typography/Typography.types.d.ts +1 -1
- package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +29 -7
- package/dist/types/components/ui/molecules/Card/Card.d.ts +1 -1
- package/dist/types/components/ui/molecules/Card/types.d.ts +1 -0
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +1 -2
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -1
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +2 -23
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +3 -3
- package/dist/types/components/ui/molecules/EmbeddedStatus/types.d.ts +23 -0
- package/dist/types/context/ExperimentContext/types.d.ts +24 -23
- package/dist/types/context/I18nProvider/I18nContext.d.ts +3 -0
- package/dist/types/context/SettingsContext/SettingsProvider.d.ts +1 -1
- package/dist/types/context/SettingsContext/types.d.ts +3 -0
- package/dist/types/context/StateContext/types.d.ts +2 -1
- package/dist/types/core/errorMapping.d.ts +4 -1
- package/dist/types/core/models/api/address.d.ts +5 -0
- package/dist/types/core/models/api/capability.d.ts +20 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
- package/dist/types/core/models/api/source-of-funds.d.ts +5 -0
- package/dist/types/core/models/api/transfer-instrument.d.ts +2 -0
- package/dist/types/core/process-field-configurations.d.ts +4 -1
- package/dist/types/core/user-events.d.ts +22 -11
- package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +1 -0
- package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +3 -3
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +5 -5
- package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +3 -3
- package/dist/types/embeds/individual-status/adyen-individual-status.types.d.ts +5 -5
- package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +3 -3
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.types.d.ts +5 -5
- package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +3 -3
- package/dist/types/embeds/terms-of-service-status/{adyen-manage-terms-of-service.types.d.ts → adyen-terms-of-service-status.types.d.ts} +5 -5
- package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +3 -3
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.types.d.ts +5 -5
- package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +3 -3
- package/dist/types/embeds/transfer-instrument-management/adyen-transfer-instrument-management.types.d.ts +5 -5
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -6
- package/dist/types/hooks/{useAnalytics.d.ts → useAnalytics/useAnalytics.d.ts} +1 -7
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -8
- package/dist/types/hooks/useUboQuestionnaire.d.ts +25 -0
- package/dist/types/language/Language.d.ts +10 -0
- package/dist/types/language/types.d.ts +21 -7
- package/dist/types/language/utils.d.ts +2 -2
- package/dist/types/stores/formState.d.ts +2 -0
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -1
- package/dist/types/types/datasets/currency.d.ts +0 -1
- package/dist/types/types/form-rules.d.ts +3 -0
- package/dist/types/types/form.d.ts +0 -2
- package/dist/types/utils/addLinkedFields.d.ts +26 -2
- package/dist/types/utils/analytics/convertToEmbeddedEvent.d.ts +9 -0
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +30 -0
- package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +13 -0
- package/dist/types/utils/{trackNavigation.d.ts → analytics/trackNavigation.d.ts} +1 -1
- package/dist/types/utils/api/documentUtils.d.ts +1 -0
- package/dist/types/utils/customerSupportUtils.d.ts +3 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/filterProblemsByTaskForms.d.ts +12 -0
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/types/utils/getSSNType.d.ts +1 -0
- package/dist/types/utils/getTrustedFields.d.ts +9 -0
- package/dist/types/utils/japanSupportUtils.d.ts +2 -0
- package/dist/types/utils/textTransformation/toFullWidth.d.ts +6 -0
- package/dist/types/utils/translation.d.ts +3 -2
- package/dist/types/utils/validatorUtils.d.ts +1 -0
- package/dist/{types-K58FM7k4.js → types-BXl6V78E.js} +27 -4
- package/dist/types-CoA3qKLi.js +34 -0
- package/dist/{types-CP1NRoE8.js → types-DFkJwAG7.js} +2 -2
- package/dist/{types-CAznNNSI.js → types-Dk94b8kx.js} +27 -26
- package/dist/upload-BF65P4KM.js +17 -0
- package/dist/{useAssociatedLegalEntity-G30FPhOX.js → useAssociatedLegalEntity-BXXTCq2H.js} +2 -2
- package/dist/useCreateLegalEntity-BNSFNiHp.js +31 -0
- package/dist/{useDataset-BgvQQEKd.js → useDataset-CLPw5wNd.js} +102 -2
- package/dist/{useForm-C1DW3mPC.js → useForm-BkgSiM1i.js} +16 -86
- package/dist/useGlobalData-BeYozqdQ.js +68 -0
- package/dist/{useMultiForm-BucfLW49.js → useMultiForm-2sO8cnmJ.js} +4 -4
- package/dist/{useOnboardingStatus-CTgWLZxC.js → useOnboardingStatus-DX9R5XKU.js} +2 -2
- package/dist/{useScenarios-B7IWZ3xW.js → useScenarios-CVql9dlu.js} +2 -2
- package/dist/{useTermsOfServiceStatus-B0dIrYTA.js → useTermsOfServiceStatus-D1yYDEeh.js} +2 -2
- package/dist/{useToastContext-DGMeMy5R.js → useToastContext-CbM0O-ZH.js} +17 -8
- package/dist/{useUnincorporatedPartnershipMembers-BCvmGMOX.js → useUnincorporatedPartnershipMembers-BpDu4QKJ.js} +5 -5
- package/dist/useUpdateBusinessLines-DSH6ZmMJ.js +46 -0
- package/dist/useUpdateLegalEntity-DnbryhbN.js +39 -0
- package/dist/utils-BwrYpRdV.js +774 -0
- package/dist/{utils-Bwnj33y_.js → utils-m640rX-u.js} +6 -46
- package/dist/validate-B8aB6l_3.js +41 -0
- package/dist/{validate-B5PwC1oL.js → validate-Cf-TAdac.js} +2 -2
- package/dist/{validationError-DOCbfk7K.js → validationError-BVdpr3ww.js} +2 -2
- package/dist/warning-circle-fill-CEN1WL7A.js +17 -0
- package/dist/warning-diamond-filled-BfXMlVrG.js +17 -0
- package/dist/webinar-DqjqrNEv.js +22 -0
- package/package.json +81 -82
- package/dist/4-people-CCqdlDEw.js +0 -24
- package/dist/BusinessDetailsDropin-CRFPvWuD.js +0 -5088
- package/dist/BusinessFinancingComponent-y2_kC8bx.js +0 -45
- package/dist/BusinessFinancingPage-BOG7yrw6.js +0 -40
- package/dist/Card-BMuquALf.js +0 -145
- package/dist/Confirm-DwutojkY.js +0 -64
- package/dist/CreateIndividualComponent-VZWLAo0l.js +0 -72
- package/dist/CreateTransferInstrumentComponent-OtReN6Cy.js +0 -67
- package/dist/DecisionMakerDetailsPage-BJUwR4R7.js +0 -100
- package/dist/DecisionMakers-BDNa3HcC.js +0 -591
- package/dist/Dropzone-D6dXhmL4.js +0 -218
- package/dist/FormFlow-CZ9f5X0C.js +0 -216
- package/dist/InputDate-CHygOGiS.js +0 -43
- package/dist/InputGroup-WBfGDV5F.js +0 -32
- package/dist/Link-BFdxU8qh.js +0 -35
- package/dist/ManageIndividualComponent-By_fCmN1.js +0 -47
- package/dist/ManageTermsOfServiceComponent-D7F44OPD.js +0 -47
- package/dist/OnboardingDropinComponent-B0GrJ_pR.js +0 -4301
- package/dist/RadioGroup-CYDXrtrO.js +0 -143
- package/dist/RegistrationAddress-qtMZa31b.js +0 -2334
- package/dist/RootBusinessDetailsPage-rCbGLBEv.js +0 -1870
- package/dist/RootIndividualDetailsPage-B3TkB6Xj.js +0 -77
- package/dist/SoleProprietorshipPage-JKNrAy74.js +0 -50
- package/dist/Spacer-BK3jDget.js +0 -18
- package/dist/StructuredList-DaepaiVE.js +0 -38
- package/dist/TaskItemStatus-B38keERo.js +0 -125
- package/dist/TaskStatusIndicator-BIvTrQtf.js +0 -69
- package/dist/TaxInformationField-DS0m73if.js +0 -3062
- package/dist/TileGroup-CztY53P9.js +0 -174
- package/dist/TrustDetailsPage-C791Wu5u.js +0 -1205
- package/dist/TrustMemberCompanyPage-BOQ5D3y4.js +0 -60
- package/dist/TrustMemberIndividualPage-BPIXX2Mh.js +0 -66
- package/dist/analytics-3-a-Od7Z.js +0 -61
- package/dist/bafinUtils-Bar3qiJA.js +0 -457
- package/dist/bin-Bgdj6KzC.js +0 -18
- package/dist/capital-CF9_Ev99.js +0 -17
- package/dist/checkmark-circle-fill-BhvuqTl9.js +0 -17
- package/dist/circle-Dgfa7GUy.js +0 -17
- package/dist/coins-CFu331p2.js +0 -17
- package/dist/commonValidators-Bk0SSjsH.js +0 -24
- package/dist/currency-BGwQyxBo.js +0 -36
- package/dist/da-DK-BJ7aTPir.js +0 -13
- package/dist/da-DK-BTpZzEgA.js +0 -15
- package/dist/da-DK-CeNMXUfE.js +0 -23
- package/dist/da-DK-D0N1TVVU.js +0 -58
- package/dist/da-DK-D4H69PX3.js +0 -30
- package/dist/da-DK-DStNe471.js +0 -22
- package/dist/da-DK-q2b_1elr.js +0 -35
- package/dist/de-DE-C78RLE2G.js +0 -13
- package/dist/de-DE-CGoBPCPv.js +0 -22
- package/dist/de-DE-D2ByeIZs.js +0 -35
- package/dist/de-DE-DjOUNvp6.js +0 -15
- package/dist/de-DE-Dtuu-nE7.js +0 -58
- package/dist/de-DE-JI-7mvxy.js +0 -23
- package/dist/de-DE-wp5-H-ov.js +0 -30
- package/dist/document-person-DBlLin9u.js +0 -20
- package/dist/download-B8_c4ARV.js +0 -17
- package/dist/edit-1-D6f6zk9p.js +0 -14
- package/dist/en-US-546hB2Wn.js +0 -60
- package/dist/en-US-BQpgt41j.js +0 -37
- package/dist/en-US-BTYdAWXp.js +0 -15
- package/dist/en-US-CAm3meB1.js +0 -30
- package/dist/en-US-CQ3angjM.js +0 -22
- package/dist/en-US-DHq7VYFs.js +0 -23
- package/dist/es-ES-BsQpwaPN.js +0 -58
- package/dist/es-ES-BtUSEzkE.js +0 -13
- package/dist/es-ES-CKMfS8Yy.js +0 -22
- package/dist/es-ES-Cj7q7fWO.js +0 -15
- package/dist/es-ES-DOVPTeyf.js +0 -23
- package/dist/es-ES-Ds3-DtqZ.js +0 -30
- package/dist/es-ES-WWftn3JX.js +0 -35
- package/dist/fi-FI-BJ9RzrL3.js +0 -58
- package/dist/fi-FI-BNcnKrJ9.js +0 -15
- package/dist/fi-FI-Cvar63RH.js +0 -13
- package/dist/fi-FI-D522KHGk.js +0 -23
- package/dist/fi-FI-D9E_KaJi.js +0 -35
- package/dist/fi-FI-DPNeTsJS.js +0 -30
- package/dist/fi-FI-REYOX46I.js +0 -22
- package/dist/fieldConfigurations-B8bDFQ53.js +0 -458
- package/dist/formatCurrency-CMOSdJMB.js +0 -29
- package/dist/fr-FR-B5543Fe-.js +0 -13
- package/dist/fr-FR-Bn3D6mmY.js +0 -15
- package/dist/fr-FR-CNR5-s9g.js +0 -58
- package/dist/fr-FR-ChmNQciP.js +0 -30
- package/dist/fr-FR-Cv0k-3Xc.js +0 -35
- package/dist/fr-FR-D9qaP6nx.js +0 -22
- package/dist/fr-FR-DInQKkTd.js +0 -23
- package/dist/gift-SdNY6AqI.js +0 -14
- package/dist/headquarter-C6AsewcP.js +0 -21
- package/dist/image-eUqBiRX_.js +0 -17
- package/dist/info-Wao3PEQK.js +0 -21
- package/dist/isEmpty-CuQFhMf0.js +0 -23
- package/dist/it-IT-BV9K87FK.js +0 -58
- package/dist/it-IT-Biduphjt.js +0 -22
- package/dist/it-IT-C_fNHhjE.js +0 -35
- package/dist/it-IT-CjEYONJg.js +0 -23
- package/dist/it-IT-Dd6xGSe-.js +0 -13
- package/dist/it-IT-DvM-9LpM.js +0 -15
- package/dist/it-IT-eCrTB65E.js +0 -30
- package/dist/keys-BpNgnAsD.js +0 -23
- package/dist/location-YXhcBMDy.js +0 -17
- package/dist/mail-Z_IE_hkw.js +0 -14
- package/dist/mapScriptLocalization-CI-Ydp2z.js +0 -72
- package/dist/nl-NL-BHqiO21q.js +0 -15
- package/dist/nl-NL-D2QKudfh.js +0 -30
- package/dist/nl-NL-DLedC3mO.js +0 -35
- package/dist/nl-NL-DVENFpd5.js +0 -13
- package/dist/nl-NL-DywVQ9km.js +0 -58
- package/dist/nl-NL-G1wVnmzT.js +0 -22
- package/dist/nl-NL-Zcq0bXd-.js +0 -23
- package/dist/no-NO-B8oxqfNI.js +0 -58
- package/dist/no-NO-BTtAuqCb.js +0 -22
- package/dist/no-NO-BxReX6oF.js +0 -23
- package/dist/no-NO-CKT9kLAH.js +0 -15
- package/dist/no-NO-C_snYWBc.js +0 -30
- package/dist/no-NO-CpVal4cV.js +0 -35
- package/dist/no-NO-Dn2UkdoI.js +0 -13
- package/dist/partner-COG2_Erh.js +0 -21
- package/dist/pay-by-link-plane-Pv7Babgn.js +0 -22
- package/dist/person-CdGfItMU.js +0 -17
- package/dist/plus-circle-filled-Cnf1oJTm.js +0 -17
- package/dist/pt-PT-BkvMsoK4.js +0 -35
- package/dist/pt-PT-BvK00TeI.js +0 -58
- package/dist/pt-PT-C-hbNnsB.js +0 -30
- package/dist/pt-PT-D2elvnDU.js +0 -15
- package/dist/pt-PT-Dk48OVtf.js +0 -22
- package/dist/pt-PT-N0njcfLO.js +0 -23
- package/dist/pt-PT-_o5xgnxS.js +0 -13
- package/dist/resolveEnvironment-BGYn6Ls_.js +0 -84
- package/dist/revenue-accelerate-rtXA-8EE.js +0 -17
- package/dist/save-BofgDbDX.js +0 -14
- package/dist/search-BjMkvQh0.js +0 -17
- package/dist/sl-SI-BB7iVcFI.js +0 -22
- package/dist/sl-SI-BhVTSmhQ.js +0 -30
- package/dist/sl-SI-BylvpF-X.js +0 -15
- package/dist/sl-SI-Cth2Qa5T.js +0 -35
- package/dist/sl-SI-D_rqR0D7.js +0 -35
- package/dist/sl-SI-MZoDApq9.js +0 -23
- package/dist/sl-SI-NI2OJAvm.js +0 -58
- package/dist/store-CkhgQMl0.js +0 -14
- package/dist/sv-SE-66rqYTxi.js +0 -30
- package/dist/sv-SE-BUfESAQK.js +0 -13
- package/dist/sv-SE-CAZpDX9G.js +0 -58
- package/dist/sv-SE-DCFSf4Oj.js +0 -23
- package/dist/sv-SE-DbI-1JqN.js +0 -22
- package/dist/sv-SE-Dwz1yTrB.js +0 -15
- package/dist/sv-SE-OPOHtqtP.js +0 -35
- package/dist/terminal-1-ewywjFJI.js +0 -18
- package/dist/toCapitalized-Bq7laD0b.js +0 -13
- package/dist/translation-DJHWTow9.js +0 -472
- package/dist/types/api/pciTemplate/usePciTemplate.d.ts +0 -14
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +0 -9
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +0 -9
- package/dist/types/components/Business/forms/BusinessDetails/BusinessDetails.d.ts +0 -3
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +0 -14
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +0 -4
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +0 -5
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -21
- package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +0 -5
- package/dist/types/components/Contract/hooks/useSalesChannelsSettings.d.ts +0 -3
- package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +0 -2
- package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +0 -8
- package/dist/types/components/ui/atoms/Remove/Remove.d.ts +0 -2
- package/dist/types/components/ui/atoms/Remove/Remove.types.d.ts +0 -9
- package/dist/types/components/ui/atoms/Status/Status.types.d.ts +0 -8
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +0 -11
- package/dist/types/components/ui/molecules/Card/CardGroup.d.ts +0 -3
- package/dist/types/core/analytics.d.ts +0 -31
- package/dist/types/utils/bankVerification/animation.d.ts +0 -2
- package/dist/upload-XDhHhAHV.js +0 -17
- package/dist/useFormContext-beqGS11A.js +0 -23
- package/dist/utils-CXtNbmpA.js +0 -29
- package/dist/utils-CgOzbb9O.js +0 -159
- package/dist/validate-BRz0LPdo.js +0 -382
- package/dist/validate-CvtamBXH.js +0 -605
- package/dist/warning-circle-fill-DADaWT65.js +0 -17
- package/dist/warning-filled-BfAQN-BF.js +0 -14
- package/dist/webinar-BJWDRK2H.js +0 -22
- /package/dist/types/api/{pciTemplate → pci}/useSignPci.d.ts +0 -0
- /package/dist/types/components/Business/tasks/{BusinessDetailsMultiformDropin → BusinessDetailsDropin}/validate.d.ts +0 -0
- /package/dist/types/components/BusinessLines/tasks/{BusinessLinesGettingStarted → BusinessLines}/BusinessLinesGettingStarted.d.ts +0 -0
|
@@ -1,1870 +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] = "92e56c85-0d43-46f0-a47a-ec79ff6a3123", e._sentryDebugIdIdentifier = "sentry-dbid-92e56c85-0d43-46f0-a47a-ec79ff6a3123");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./translation-DJHWTow9.js";
|
|
11
|
-
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
12
|
-
import { a as useTranslation, X as useExperimentsContext, x as Typography, m as useSettingsContext, u as useI18nContext, M as TaskTypes, y as LegalEntityTypes, b as useApiContext, U as useAnalyticsContext, aC as useQueryClient, bD as businessDetailsDocumentMapping, bu as businessDetailsApiKeyMapping, c as useLegalEntity, R as ROOT_LE, L as Loader, z as isPartOfTrustFromLegalEntity, J as EntityTypes, g as getLegalEntityCountry } from "./StoreProvider-BlaJzXSZ.js";
|
|
13
|
-
import { r as resolveFieldMetadata, a as useAccountHolder, b as useCapabilityProblems, g as getProblemsForEntity } from "./fieldConfigurations-B8bDFQ53.js";
|
|
14
|
-
import { v as verifiedBusiness, u as useDebouncedState, l as legalFormFieldMetadata, s as stockTickerSymbolFieldMetadata, a as stockISINFieldMetadata, b as stockExchangeMICFieldMetadata, d as dateOfIncorporationFieldMetadata, e as eInvoicingCodeFieldMetadata, V as VerifiedBusinessCard, L as LEGAL_FORM_FIELDS, E as EInvoicingCodeField, c as EINVOICING_CODE_FIELD, D as DATE_OF_INCORPORATION_FIELD, f as DateOfIncorporationField, S as STOCK_EXCHANGE_MIC_FIELD, g as StockExchangeMICField, h as STOCK_ISIN_FIELD, i as StockISINField, j as STOCK_TICKER_SYMBOL_FIELD, k as StockTickerSymbolField, A as ADDITIONAL_INFORMATION_FORM_ID, m as localizedLegalCompanyNameFieldConfig, n as defaultFieldMetadata$1, o as defaultFieldConfig$1, p as useLegalCompanyNameField, C as COUNTRY_OF_GOVERNING_LAW_FIELD, q as CountryOfGoverningLawField, r as isBankAccountRequestedForOrganization, t as companyTypeOptions, w as useCompanyTypeExamples, x as companyTypeMetadata, F as FinancialInformation, P as ProofOfOwnershipDocument, y as ProofOfSignatoryDocument, z as ProofOfDirectorDocument, R as RegistrationDocument, T as TaxDocument, B as BusinessSelectionMultiform, G as CountryOfGoverningLawFieldValidation, H as CountryFieldValidation, I as getForms, J as mapApiDocumentToBusinessDetailsDocuments, K as mapLegalEntityToBusinessDetailsSchema, M as financialInfoValidationWithEmployeesRules, N as CompanyStructureValidation, O as tinMatched, Q as businessMismatchModalOpen, U as formatDataForSummary, W as submit, X as useCompanySearch, Y as useVerifyTin, Z as businessDetailsFieldsPerScenario, _ as BusinessDetailsDropin } from "./BusinessDetailsDropin-CRFPvWuD.js";
|
|
15
|
-
import { useEffect, useMemo, useCallback, useState } from "preact/hooks";
|
|
16
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./RadioGroup-CYDXrtrO.js";
|
|
17
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-CZ9f5X0C.js";
|
|
18
|
-
import { u as useToastContext } from "./useToastContext-DGMeMy5R.js";
|
|
19
|
-
import { g as getAssociatedLeAnalyticsPayload } from "./analytics-3-a-Od7Z.js";
|
|
20
|
-
import { d as documentApiUtils, e as composePerScenarioFormConfigurations, b as getPropsFromConfigurations } from "./validate-CvtamBXH.js";
|
|
21
|
-
import { a as addValidityToForms, t as trackNavigation, u as useFormComposer } from "./dropinUtils-DHp5v5jB.js";
|
|
22
|
-
import { u as useMultiForm } from "./useMultiForm-BucfLW49.js";
|
|
23
|
-
import { b as useScenarioConfiguration } from "./mapExistingFile-DW5ktJzM.js";
|
|
24
|
-
import { C as Confirm } from "./Confirm-DwutojkY.js";
|
|
25
|
-
import { t as taxInformationDefaultFieldMetadata, b as taxInformationDefaultFieldConfig, c as TAX_INFORMATION_FIELD, T as TaxInformationField, M as MemoizedDocumentUpload, C as COUNTRIES_USING_COMPANY_SEARCH, r as rules, g as getFieldsWithExistingData } from "./TaxInformationField-DS0m73if.js";
|
|
26
|
-
import { u as useFormContext } from "./useFormContext-beqGS11A.js";
|
|
27
|
-
import { C as CompanyTypesValues } from "./bafinUtils-Bar3qiJA.js";
|
|
28
|
-
import { v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, r as registrationNumberDefaultFieldMetadata, b as registrationNumberDefaultFieldConfig, c as doingBusinessAsFieldMetadata, e as doingBusinessAsAbsentFieldMetadata, D as DBA_NAME_FIELD, f as DBANameField, B as BUSINESS_REGISTRATION_NUMBER_FIELD, g as BusinessRegistrationNumberField, V as VAT_NUMBER_FIELD, h as VatNumberField, M as MemoizedConstitutionalDocument, i as exemptFromRegistrationNumberDefaultFieldMetadata } from "./RegistrationAddress-qtMZa31b.js";
|
|
29
|
-
import { c as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, o as operationalAddressIsSameIds, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as StateField } from "./Address-DSwfzWFu.js";
|
|
30
|
-
import { F as Field, C as Checkbox } from "./useForm-C1DW3mPC.js";
|
|
31
|
-
import { m as mergeFieldMetadataIntoProps, c as createFormUtils, F as FormHeader, E as ErrorPanel, C as CountryField, a as COUNTRY_FIELD, d as summaryStep } from "./CountryField-D0YZrov9.js";
|
|
32
|
-
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-CgOzbb9O.js";
|
|
33
|
-
import { a as datasetUtilities } from "./useDataset-BgvQQEKd.js";
|
|
34
|
-
import { L as LegalFormField } from "./Currency-BECbMsi5.js";
|
|
35
|
-
import { L as Link } from "./Link-BFdxU8qh.js";
|
|
36
|
-
import { S as SettingNames, I as InputText } from "./InputText-BX5sG9WJ.js";
|
|
37
|
-
import { u as useAllowedCountries } from "./mapScriptLocalization-CI-Ydp2z.js";
|
|
38
|
-
import { g as defaultFieldMetadataV4, h as defaultFieldMetadata$2, j as defaultFieldConfigV4, k as defaultFieldConfig$2, L as LEGAL_COMPANY_NAME_FIELD } from "./OnboardingDropinComponent-B0GrJ_pR.js";
|
|
39
|
-
import { E as EntityTypeRadioGroupCard } from "./utils-Bwnj33y_.js";
|
|
40
|
-
function AdditionalInformationMultiform({
|
|
41
|
-
id,
|
|
42
|
-
country,
|
|
43
|
-
companyType,
|
|
44
|
-
shouldValidate,
|
|
45
|
-
heading = "additionalInformationFormHeading",
|
|
46
|
-
description,
|
|
47
|
-
validationErrors = {},
|
|
48
|
-
verificationErrors = {}
|
|
49
|
-
}) {
|
|
50
|
-
const { t, i18n } = useTranslation("business");
|
|
51
|
-
const { t: commonT } = useTranslation("common");
|
|
52
|
-
const { form } = useFormContext();
|
|
53
|
-
const { isExperimentEnabled } = useExperimentsContext();
|
|
54
|
-
const verifiedBusiness$1 = verifiedBusiness.value;
|
|
55
|
-
const showVerified = !!verifiedBusiness$1;
|
|
56
|
-
const showStockData = companyType === CompanyTypesValues.PUBLIC_COMPANY;
|
|
57
|
-
const addressSchema = getAddressSchemaForCountry(country).filter(
|
|
58
|
-
(field) => !COUNTRIES_WITH_STATES_DATASET.includes(country) ? field !== "stateOrProvince" : true
|
|
59
|
-
);
|
|
60
|
-
const currentCountryTaxInformation = form.data?.additionalInformation?.taxInformation?.find(
|
|
61
|
-
(taxId) => taxId.country === country
|
|
62
|
-
);
|
|
63
|
-
const [addressToCheck, setAddressToCheck] = useDebouncedState(500);
|
|
64
|
-
const { data: cleansedRegistrationAddress } = useAddressCleanse(
|
|
65
|
-
{
|
|
66
|
-
text: addressToCheck,
|
|
67
|
-
country
|
|
68
|
-
},
|
|
69
|
-
{ enabled: Boolean(addressToCheck) }
|
|
70
|
-
);
|
|
71
|
-
const mustProvideOperationalAddress = cleansedRegistrationAddress?.poBox ?? false;
|
|
72
|
-
useEffect(
|
|
73
|
-
() => setAddressToCheck(
|
|
74
|
-
formatAddressForCleanse(form.data?.additionalInformation?.registrationAddress ?? {})
|
|
75
|
-
),
|
|
76
|
-
[form.data?.additionalInformation?.registrationAddress, setAddressToCheck]
|
|
77
|
-
);
|
|
78
|
-
const verifiedAddress = useMemo(() => {
|
|
79
|
-
if (!verifiedBusiness$1) return void 0;
|
|
80
|
-
return verifiedBusiness$1.isPrincipalAddress || verifiedBusiness$1.state && form.data?.basicInformation?.stateOrProvince !== verifiedBusiness$1.state ? { operationalAddress: { ...mapAddressData(verifiedBusiness$1), country } } : {
|
|
81
|
-
registrationAddress: {
|
|
82
|
-
...mapAddressData(verifiedBusiness$1),
|
|
83
|
-
country,
|
|
84
|
-
stateOrProvince: form.data?.basicInformation?.stateOrProvince
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
}, [verifiedBusiness$1, form.data?.basicInformation?.stateOrProvince, country]);
|
|
88
|
-
const handleChangeFor = useCallback(
|
|
89
|
-
(fieldName, mode) => form.handleChangeFor(fieldName, "additionalInformation", mode),
|
|
90
|
-
[form]
|
|
91
|
-
);
|
|
92
|
-
const handleRegistrationAddressChange = (state) => {
|
|
93
|
-
handleChangeFor("registrationAddress")(state.data);
|
|
94
|
-
form.setValid("registrationAddress", Boolean(state.isValid), "additionalInformation");
|
|
95
|
-
};
|
|
96
|
-
const handleOperationalAddressChange = (state) => {
|
|
97
|
-
handleChangeFor("operationalAddress")(state.data);
|
|
98
|
-
form.setValid("operationalAddress", Boolean(state.isValid), "additionalInformation");
|
|
99
|
-
};
|
|
100
|
-
const handleOperationalAddressIsSameChange = useCallback(
|
|
101
|
-
(isChecked) => {
|
|
102
|
-
if (isChecked) {
|
|
103
|
-
handleChangeFor("operationalAddressIsSame")(
|
|
104
|
-
operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME
|
|
105
|
-
);
|
|
106
|
-
form.setValid("operationalAddress", true, "additionalInformation");
|
|
107
|
-
} else {
|
|
108
|
-
handleChangeFor("operationalAddressIsSame")(
|
|
109
|
-
operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
[form, handleChangeFor]
|
|
114
|
-
);
|
|
115
|
-
useEffect(() => {
|
|
116
|
-
if (mustProvideOperationalAddress && form.data?.additionalInformation?.operationalAddressIsSame !== operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME) {
|
|
117
|
-
handleOperationalAddressIsSameChange(false);
|
|
118
|
-
}
|
|
119
|
-
}, [
|
|
120
|
-
handleOperationalAddressIsSameChange,
|
|
121
|
-
mustProvideOperationalAddress,
|
|
122
|
-
form.data?.additionalInformation?.operationalAddressIsSame
|
|
123
|
-
]);
|
|
124
|
-
const formUtils = useMemo(() => {
|
|
125
|
-
const initialProps = {
|
|
126
|
-
data: form.data?.additionalInformation ?? {},
|
|
127
|
-
fieldValidationErrors: validationErrors,
|
|
128
|
-
formVerificationErrors: verificationErrors,
|
|
129
|
-
allFields: form.allFields?.additionalInformation ?? [],
|
|
130
|
-
requiredFields: form.requiredFields?.additionalInformation ?? [],
|
|
131
|
-
optionalFields: form.optionalFields?.additionalInformation ?? [],
|
|
132
|
-
trustedFields: form.trustedFields?.additionalInformation ?? [],
|
|
133
|
-
obscuredFields: form.obscuredFields?.additionalInformation ?? [],
|
|
134
|
-
errors: form.errors?.additionalInformation ?? {},
|
|
135
|
-
valid: form.valid?.additionalInformation ?? {},
|
|
136
|
-
handleFieldChange: handleChangeFor
|
|
137
|
-
};
|
|
138
|
-
const formUtilProps = initialProps.allFields?.reduce((acc, field) => {
|
|
139
|
-
switch (field) {
|
|
140
|
-
case "hasDoingBusinessAs":
|
|
141
|
-
return mergeFieldMetadataIntoProps(
|
|
142
|
-
"hasDoingBusinessAs",
|
|
143
|
-
doingBusinessAsAbsentFieldMetadata,
|
|
144
|
-
acc
|
|
145
|
-
);
|
|
146
|
-
case "doingBusinessAs":
|
|
147
|
-
return mergeFieldMetadataIntoProps("doingBusinessAs", doingBusinessAsFieldMetadata, acc);
|
|
148
|
-
case "registrationNumber":
|
|
149
|
-
return mergeFieldMetadataIntoProps(
|
|
150
|
-
field,
|
|
151
|
-
resolveFieldMetadata(
|
|
152
|
-
registrationNumberDefaultFieldConfig[country],
|
|
153
|
-
{
|
|
154
|
-
companyType,
|
|
155
|
-
registrationNumberType: form.data?.additionalInformation?.registrationNumberType,
|
|
156
|
-
isExperimentEnabled
|
|
157
|
-
},
|
|
158
|
-
registrationNumberDefaultFieldMetadata
|
|
159
|
-
),
|
|
160
|
-
acc
|
|
161
|
-
);
|
|
162
|
-
case "taxInformation":
|
|
163
|
-
return mergeFieldMetadataIntoProps(
|
|
164
|
-
field,
|
|
165
|
-
resolveFieldMetadata(
|
|
166
|
-
taxInformationDefaultFieldConfig[country],
|
|
167
|
-
{
|
|
168
|
-
taxIdNumberType: currentCountryTaxInformation?.type,
|
|
169
|
-
companyType
|
|
170
|
-
},
|
|
171
|
-
taxInformationDefaultFieldMetadata
|
|
172
|
-
),
|
|
173
|
-
acc
|
|
174
|
-
);
|
|
175
|
-
case "vatNumber":
|
|
176
|
-
return mergeFieldMetadataIntoProps(
|
|
177
|
-
field,
|
|
178
|
-
resolveFieldMetadata(
|
|
179
|
-
defaultFieldConfig[country],
|
|
180
|
-
{ vatNumberType: form.data?.additionalInformation?.vatNumberType },
|
|
181
|
-
defaultFieldMetadata
|
|
182
|
-
),
|
|
183
|
-
acc
|
|
184
|
-
);
|
|
185
|
-
case "vatAbsenceReason":
|
|
186
|
-
return mergeFieldMetadataIntoProps("vatAbsenceReason", vatAbsenceReasonMetadata, acc);
|
|
187
|
-
case "eInvoicingCode":
|
|
188
|
-
return mergeFieldMetadataIntoProps("eInvoicingCode", eInvoicingCodeFieldMetadata, acc);
|
|
189
|
-
case "dateOfIncorporation":
|
|
190
|
-
return mergeFieldMetadataIntoProps(
|
|
191
|
-
"dateOfIncorporation",
|
|
192
|
-
dateOfIncorporationFieldMetadata,
|
|
193
|
-
acc
|
|
194
|
-
);
|
|
195
|
-
case "stockExchangeMIC":
|
|
196
|
-
return mergeFieldMetadataIntoProps(
|
|
197
|
-
"stockExchangeMIC",
|
|
198
|
-
stockExchangeMICFieldMetadata,
|
|
199
|
-
acc
|
|
200
|
-
);
|
|
201
|
-
case "stockISIN":
|
|
202
|
-
return mergeFieldMetadataIntoProps("stockISIN", stockISINFieldMetadata, acc);
|
|
203
|
-
case "stockTickerSymbol":
|
|
204
|
-
return mergeFieldMetadataIntoProps(
|
|
205
|
-
"stockTickerSymbol",
|
|
206
|
-
stockTickerSymbolFieldMetadata,
|
|
207
|
-
acc
|
|
208
|
-
);
|
|
209
|
-
case "legalForm":
|
|
210
|
-
return mergeFieldMetadataIntoProps("legalForm", legalFormFieldMetadata, acc);
|
|
211
|
-
default:
|
|
212
|
-
return acc;
|
|
213
|
-
}
|
|
214
|
-
}, initialProps);
|
|
215
|
-
return createFormUtils(formUtilProps ?? initialProps, commonT);
|
|
216
|
-
}, [
|
|
217
|
-
companyType,
|
|
218
|
-
country,
|
|
219
|
-
currentCountryTaxInformation?.type,
|
|
220
|
-
form.allFields?.additionalInformation,
|
|
221
|
-
form.data?.additionalInformation,
|
|
222
|
-
form.errors?.additionalInformation,
|
|
223
|
-
form.obscuredFields?.additionalInformation,
|
|
224
|
-
form.optionalFields?.additionalInformation,
|
|
225
|
-
form.requiredFields?.additionalInformation,
|
|
226
|
-
form.trustedFields?.additionalInformation,
|
|
227
|
-
form.valid?.additionalInformation,
|
|
228
|
-
handleChangeFor,
|
|
229
|
-
commonT,
|
|
230
|
-
isExperimentEnabled,
|
|
231
|
-
validationErrors,
|
|
232
|
-
verificationErrors
|
|
233
|
-
]);
|
|
234
|
-
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
235
|
-
const datasetUtils = datasetUtilities(i18n.language);
|
|
236
|
-
const registrationAddressDescription = useMemo(() => {
|
|
237
|
-
if (country) {
|
|
238
|
-
return ["US", "NL", "CZ"].includes(country) ? t(($) => $["youBusinessOfficalAddressInTheCounty"], {
|
|
239
|
-
country: datasetUtils.getCountryName(country)
|
|
240
|
-
}) : t(($) => $["youBusinessOfficalAddressInCounty"], {
|
|
241
|
-
country: datasetUtils.getCountryName(country)
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
return t(($) => $["youBusinessOfficalAddress"]);
|
|
245
|
-
}, [country, datasetUtils, t]);
|
|
246
|
-
return /* @__PURE__ */ jsxs("form", { id, className: "adyen-kyc-additional-information", children: [
|
|
247
|
-
/* @__PURE__ */ jsx(
|
|
248
|
-
FormHeader,
|
|
249
|
-
{
|
|
250
|
-
heading: commonT(($) => $[heading]),
|
|
251
|
-
description: description ? commonT(($) => $[description]) : void 0
|
|
252
|
-
}
|
|
253
|
-
),
|
|
254
|
-
/* @__PURE__ */ jsx(
|
|
255
|
-
ErrorPanel,
|
|
256
|
-
{
|
|
257
|
-
id: "ariaErrorField",
|
|
258
|
-
verificationErrors,
|
|
259
|
-
validationErrors,
|
|
260
|
-
formUtils
|
|
261
|
-
}
|
|
262
|
-
),
|
|
263
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__content", children: [
|
|
264
|
-
showVerified && /* @__PURE__ */ jsxs("section", { children: [
|
|
265
|
-
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-additional-information__section-heading", children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["verifiedInformation"]) }) }),
|
|
266
|
-
/* @__PURE__ */ jsx(
|
|
267
|
-
VerifiedBusinessCard,
|
|
268
|
-
{
|
|
269
|
-
verifiedBusiness: verifiedBusiness$1,
|
|
270
|
-
verifiedAddress: verifiedAddress?.registrationAddress ?? verifiedAddress?.operationalAddress
|
|
271
|
-
}
|
|
272
|
-
)
|
|
273
|
-
] }),
|
|
274
|
-
/* @__PURE__ */ jsxs("section", { children: [
|
|
275
|
-
showVerified && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-additional-information__section-heading", children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["otherBusinessInformation"]) }) }),
|
|
276
|
-
/* @__PURE__ */ jsxs("fieldset", { children: [
|
|
277
|
-
showField(LEGAL_FORM_FIELDS) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
278
|
-
LegalFormField,
|
|
279
|
-
{
|
|
280
|
-
name: "legalForm",
|
|
281
|
-
countryCode: country,
|
|
282
|
-
data: {
|
|
283
|
-
legalForm: formUtils.getFieldData(
|
|
284
|
-
form.data?.additionalInformation ?? {},
|
|
285
|
-
LEGAL_FORM_FIELDS
|
|
286
|
-
)?.legalForm
|
|
287
|
-
},
|
|
288
|
-
valid: formUtils.getFieldValid(
|
|
289
|
-
form.valid?.additionalInformation ?? {},
|
|
290
|
-
LEGAL_FORM_FIELDS
|
|
291
|
-
),
|
|
292
|
-
errorMessage: form.errors.additionalInformation?.legalForm?.errorMessage,
|
|
293
|
-
handleChangeFor,
|
|
294
|
-
readonly: false,
|
|
295
|
-
label: formUtils.getLabel("legalForm", "businessStructure")
|
|
296
|
-
}
|
|
297
|
-
) }),
|
|
298
|
-
showField(DBA_NAME_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
299
|
-
DBANameField,
|
|
300
|
-
{
|
|
301
|
-
data: formUtils.getFieldData(
|
|
302
|
-
form.data?.additionalInformation ?? {},
|
|
303
|
-
DBA_NAME_FIELD
|
|
304
|
-
),
|
|
305
|
-
valid: formUtils.getFieldValid(
|
|
306
|
-
form.valid?.additionalInformation ?? {},
|
|
307
|
-
DBA_NAME_FIELD
|
|
308
|
-
),
|
|
309
|
-
errors: formUtils.getFieldErrors(
|
|
310
|
-
form.errors?.additionalInformation ?? {},
|
|
311
|
-
validationErrors,
|
|
312
|
-
DBA_NAME_FIELD
|
|
313
|
-
),
|
|
314
|
-
labels: formUtils.getFieldLabels(DBA_NAME_FIELD, {
|
|
315
|
-
hasDoingBusinessAs: "hasDba"
|
|
316
|
-
}),
|
|
317
|
-
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
318
|
-
handleChangeFor
|
|
319
|
-
}
|
|
320
|
-
) }),
|
|
321
|
-
showField(BUSINESS_REGISTRATION_NUMBER_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
322
|
-
BusinessRegistrationNumberField,
|
|
323
|
-
{
|
|
324
|
-
data: formUtils.getFieldData(
|
|
325
|
-
form.data?.additionalInformation ?? {},
|
|
326
|
-
BUSINESS_REGISTRATION_NUMBER_FIELD
|
|
327
|
-
),
|
|
328
|
-
valid: formUtils.getFieldValid(
|
|
329
|
-
form.valid?.additionalInformation ?? {},
|
|
330
|
-
BUSINESS_REGISTRATION_NUMBER_FIELD
|
|
331
|
-
),
|
|
332
|
-
errors: formUtils.getFieldErrors(
|
|
333
|
-
form.errors?.additionalInformation ?? {},
|
|
334
|
-
validationErrors,
|
|
335
|
-
BUSINESS_REGISTRATION_NUMBER_FIELD
|
|
336
|
-
),
|
|
337
|
-
labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, {
|
|
338
|
-
exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber"
|
|
339
|
-
}),
|
|
340
|
-
mask: formUtils.getMask("registrationNumber"),
|
|
341
|
-
guidanceText: formUtils.getFieldGuidanceText(BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
342
|
-
placeholders: formUtils.getFieldPlaceholders(BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
343
|
-
helperText: formUtils.getFieldHelperText(BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
344
|
-
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
345
|
-
optional: formUtils.isOptionalField("registrationNumber"),
|
|
346
|
-
shouldValidate,
|
|
347
|
-
handleChangeFor,
|
|
348
|
-
country,
|
|
349
|
-
canExempt: showField(["exemptedFromRegistrationNumber"]),
|
|
350
|
-
companyType
|
|
351
|
-
}
|
|
352
|
-
) }),
|
|
353
|
-
showField(TAX_INFORMATION_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
354
|
-
TaxInformationField,
|
|
355
|
-
{
|
|
356
|
-
data: formUtils.getFieldData(
|
|
357
|
-
form.data?.additionalInformation ?? {},
|
|
358
|
-
TAX_INFORMATION_FIELD
|
|
359
|
-
),
|
|
360
|
-
valid: formUtils.getFieldValid(
|
|
361
|
-
form.valid?.additionalInformation ?? {},
|
|
362
|
-
TAX_INFORMATION_FIELD
|
|
363
|
-
),
|
|
364
|
-
errors: formUtils.getFieldErrors(
|
|
365
|
-
form.errors?.additionalInformation ?? {},
|
|
366
|
-
validationErrors,
|
|
367
|
-
TAX_INFORMATION_FIELD
|
|
368
|
-
),
|
|
369
|
-
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, {
|
|
370
|
-
exemptedFromTax: "iDontHaveATaxId"
|
|
371
|
-
}),
|
|
372
|
-
mask: formUtils.getMask("taxInformation"),
|
|
373
|
-
guidanceText: formUtils.getFieldGuidanceText(TAX_INFORMATION_FIELD),
|
|
374
|
-
readonly: formUtils.isReadOnly("taxInformation"),
|
|
375
|
-
shouldValidate,
|
|
376
|
-
handleChangeFor,
|
|
377
|
-
canExempt: showField(["exemptedFromTax"]),
|
|
378
|
-
country,
|
|
379
|
-
entityType: companyType,
|
|
380
|
-
defaultData: form.defaultData?.additionalInformation?.taxInformation,
|
|
381
|
-
registrationNumber: form.data?.additionalInformation?.registrationNumber
|
|
382
|
-
}
|
|
383
|
-
) }),
|
|
384
|
-
showField(VAT_NUMBER_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
385
|
-
VatNumberField,
|
|
386
|
-
{
|
|
387
|
-
data: formUtils.getFieldData(
|
|
388
|
-
form.data?.additionalInformation ?? {},
|
|
389
|
-
VAT_NUMBER_FIELD
|
|
390
|
-
),
|
|
391
|
-
valid: formUtils.getFieldValid(
|
|
392
|
-
form.valid?.additionalInformation ?? {},
|
|
393
|
-
VAT_NUMBER_FIELD
|
|
394
|
-
),
|
|
395
|
-
errors: formUtils.getFieldErrors(
|
|
396
|
-
form.errors?.additionalInformation ?? {},
|
|
397
|
-
validationErrors,
|
|
398
|
-
VAT_NUMBER_FIELD
|
|
399
|
-
),
|
|
400
|
-
labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, {
|
|
401
|
-
exemptedFromVat: "iDontHaveAVatNumber"
|
|
402
|
-
}),
|
|
403
|
-
mask: formUtils.getMask("vatNumber"),
|
|
404
|
-
guidanceText: formUtils.getFieldGuidanceText(VAT_NUMBER_FIELD),
|
|
405
|
-
placeholders: formUtils.getFieldPlaceholders(VAT_NUMBER_FIELD),
|
|
406
|
-
readonly: formUtils.isReadOnly("vatNumber"),
|
|
407
|
-
handleChangeFor,
|
|
408
|
-
country,
|
|
409
|
-
canExempt: showField(["exemptedFromVat"]),
|
|
410
|
-
shouldValidate
|
|
411
|
-
}
|
|
412
|
-
) }),
|
|
413
|
-
formUtils.isRequiredField("eInvoicingCode", false) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
414
|
-
EInvoicingCodeField,
|
|
415
|
-
{
|
|
416
|
-
data: formUtils.getFieldData(
|
|
417
|
-
form.data?.additionalInformation ?? {},
|
|
418
|
-
EINVOICING_CODE_FIELD
|
|
419
|
-
),
|
|
420
|
-
valid: formUtils.getFieldValid(
|
|
421
|
-
form.valid?.additionalInformation ?? {},
|
|
422
|
-
EINVOICING_CODE_FIELD
|
|
423
|
-
),
|
|
424
|
-
errors: formUtils.getFieldErrors(
|
|
425
|
-
form.errors?.additionalInformation ?? {},
|
|
426
|
-
validationErrors,
|
|
427
|
-
EINVOICING_CODE_FIELD
|
|
428
|
-
),
|
|
429
|
-
labels: formUtils.getFieldLabels(EINVOICING_CODE_FIELD),
|
|
430
|
-
placeholders: formUtils.getFieldPlaceholders(EINVOICING_CODE_FIELD),
|
|
431
|
-
mask: formUtils.getMask("eInvoicingCode"),
|
|
432
|
-
guidanceText: formUtils.getFieldGuidanceText(EINVOICING_CODE_FIELD),
|
|
433
|
-
readonly: formUtils.isReadOnly("eInvoicingCode"),
|
|
434
|
-
handleChangeFor
|
|
435
|
-
}
|
|
436
|
-
) }),
|
|
437
|
-
showField(DATE_OF_INCORPORATION_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
438
|
-
DateOfIncorporationField,
|
|
439
|
-
{
|
|
440
|
-
data: formUtils.getFieldData(
|
|
441
|
-
form.data?.additionalInformation ?? {},
|
|
442
|
-
DATE_OF_INCORPORATION_FIELD
|
|
443
|
-
),
|
|
444
|
-
valid: formUtils.getFieldValid(
|
|
445
|
-
form.valid?.additionalInformation ?? {},
|
|
446
|
-
DATE_OF_INCORPORATION_FIELD
|
|
447
|
-
),
|
|
448
|
-
errors: formUtils.getFieldErrors(
|
|
449
|
-
form.errors?.additionalInformation ?? {},
|
|
450
|
-
validationErrors,
|
|
451
|
-
DATE_OF_INCORPORATION_FIELD
|
|
452
|
-
),
|
|
453
|
-
labels: formUtils.getFieldLabels(DATE_OF_INCORPORATION_FIELD),
|
|
454
|
-
placeholders: formUtils.getFieldPlaceholders(DATE_OF_INCORPORATION_FIELD, {
|
|
455
|
-
dateOfIncorporation: "datePlaceholder"
|
|
456
|
-
}),
|
|
457
|
-
readonly: formUtils.isReadOnly("dateOfIncorporation"),
|
|
458
|
-
handleChangeFor
|
|
459
|
-
}
|
|
460
|
-
) })
|
|
461
|
-
] })
|
|
462
|
-
] }),
|
|
463
|
-
showStockData && /* @__PURE__ */ jsxs("section", { children: [
|
|
464
|
-
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-additional-information__section-heading", children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["stockExchangeInformation"]) }) }),
|
|
465
|
-
/* @__PURE__ */ jsxs("fieldset", { children: [
|
|
466
|
-
showField(STOCK_EXCHANGE_MIC_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
467
|
-
StockExchangeMICField,
|
|
468
|
-
{
|
|
469
|
-
data: formUtils.getFieldData(
|
|
470
|
-
form.data?.additionalInformation ?? {},
|
|
471
|
-
STOCK_EXCHANGE_MIC_FIELD
|
|
472
|
-
),
|
|
473
|
-
valid: formUtils.getFieldValid(
|
|
474
|
-
form.valid?.additionalInformation ?? {},
|
|
475
|
-
STOCK_EXCHANGE_MIC_FIELD
|
|
476
|
-
),
|
|
477
|
-
errors: formUtils.getFieldErrors(
|
|
478
|
-
form.errors?.additionalInformation ?? {},
|
|
479
|
-
validationErrors,
|
|
480
|
-
STOCK_EXCHANGE_MIC_FIELD
|
|
481
|
-
),
|
|
482
|
-
labels: formUtils.getFieldLabels(STOCK_EXCHANGE_MIC_FIELD),
|
|
483
|
-
placeholders: formUtils.getFieldPlaceholders(STOCK_EXCHANGE_MIC_FIELD),
|
|
484
|
-
mask: formUtils.getMask("stockExchangeMIC"),
|
|
485
|
-
guidanceText: formUtils.getFieldGuidanceText(STOCK_EXCHANGE_MIC_FIELD),
|
|
486
|
-
readonly: formUtils.isReadOnly("stockExchangeMIC"),
|
|
487
|
-
shouldValidate,
|
|
488
|
-
handleChangeFor
|
|
489
|
-
}
|
|
490
|
-
) }),
|
|
491
|
-
showField(STOCK_ISIN_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
492
|
-
StockISINField,
|
|
493
|
-
{
|
|
494
|
-
data: formUtils.getFieldData(
|
|
495
|
-
form.data?.additionalInformation ?? {},
|
|
496
|
-
STOCK_ISIN_FIELD
|
|
497
|
-
),
|
|
498
|
-
valid: formUtils.getFieldValid(
|
|
499
|
-
form.valid?.additionalInformation ?? {},
|
|
500
|
-
STOCK_ISIN_FIELD
|
|
501
|
-
),
|
|
502
|
-
errors: formUtils.getFieldErrors(
|
|
503
|
-
form.errors?.additionalInformation ?? {},
|
|
504
|
-
validationErrors,
|
|
505
|
-
STOCK_ISIN_FIELD
|
|
506
|
-
),
|
|
507
|
-
labels: formUtils.getFieldLabels(STOCK_ISIN_FIELD),
|
|
508
|
-
placeholders: formUtils.getFieldPlaceholders(STOCK_ISIN_FIELD),
|
|
509
|
-
mask: formUtils.getMask("stockISIN"),
|
|
510
|
-
guidanceText: formUtils.getFieldGuidanceText(STOCK_ISIN_FIELD),
|
|
511
|
-
readonly: formUtils.isReadOnly("stockISIN"),
|
|
512
|
-
shouldValidate,
|
|
513
|
-
handleChangeFor
|
|
514
|
-
}
|
|
515
|
-
) }),
|
|
516
|
-
showField(STOCK_TICKER_SYMBOL_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
517
|
-
StockTickerSymbolField,
|
|
518
|
-
{
|
|
519
|
-
data: formUtils.getFieldData(
|
|
520
|
-
form.data?.additionalInformation ?? {},
|
|
521
|
-
STOCK_TICKER_SYMBOL_FIELD
|
|
522
|
-
),
|
|
523
|
-
valid: formUtils.getFieldValid(
|
|
524
|
-
form.valid?.additionalInformation ?? {},
|
|
525
|
-
STOCK_TICKER_SYMBOL_FIELD
|
|
526
|
-
),
|
|
527
|
-
errors: formUtils.getFieldErrors(
|
|
528
|
-
form.errors?.additionalInformation ?? {},
|
|
529
|
-
validationErrors,
|
|
530
|
-
STOCK_TICKER_SYMBOL_FIELD
|
|
531
|
-
),
|
|
532
|
-
labels: formUtils.getFieldLabels(STOCK_TICKER_SYMBOL_FIELD),
|
|
533
|
-
placeholders: formUtils.getFieldPlaceholders(STOCK_TICKER_SYMBOL_FIELD),
|
|
534
|
-
mask: formUtils.getMask("stockTickerSymbol"),
|
|
535
|
-
guidanceText: formUtils.getFieldGuidanceText(STOCK_TICKER_SYMBOL_FIELD),
|
|
536
|
-
readonly: formUtils.isReadOnly("stockTickerSymbol"),
|
|
537
|
-
shouldValidate,
|
|
538
|
-
handleChangeFor
|
|
539
|
-
}
|
|
540
|
-
) })
|
|
541
|
-
] })
|
|
542
|
-
] }),
|
|
543
|
-
/* @__PURE__ */ jsxs("section", { "data-testid": "registeredBusinessAddress", children: [
|
|
544
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__section-heading", children: [
|
|
545
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["registeredBusinessAddress"]) }),
|
|
546
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: registrationAddressDescription })
|
|
547
|
-
] }),
|
|
548
|
-
/* @__PURE__ */ jsx(
|
|
549
|
-
Address,
|
|
550
|
-
{
|
|
551
|
-
id: ADDITIONAL_INFORMATION_FORM_ID,
|
|
552
|
-
addressType: "registrationAddress",
|
|
553
|
-
data: {
|
|
554
|
-
...form.data?.additionalInformation?.registrationAddress,
|
|
555
|
-
country
|
|
556
|
-
},
|
|
557
|
-
labels: getAddressSchemaLabelsByCountry(country),
|
|
558
|
-
requiredFields: addressSchema,
|
|
559
|
-
shouldValidate,
|
|
560
|
-
hideCountry: true,
|
|
561
|
-
optionalFields: ["otherAddressInformation"],
|
|
562
|
-
readOnlyFields: verifiedBusiness$1?.state && verifiedBusiness$1?.state === form.data?.basicInformation?.stateOrProvince ? ["stateOrProvince"] : [],
|
|
563
|
-
trustedFields: getNestedTrustedFields(
|
|
564
|
-
"registrationAddress",
|
|
565
|
-
form.data.additionalInformation,
|
|
566
|
-
form.trustedFields?.additionalInformation
|
|
567
|
-
),
|
|
568
|
-
onChange: handleRegistrationAddressChange,
|
|
569
|
-
verifiedBusiness: verifiedBusiness$1,
|
|
570
|
-
verifiedAddress: verifiedAddress?.registrationAddress,
|
|
571
|
-
condensed: true
|
|
572
|
-
}
|
|
573
|
-
)
|
|
574
|
-
] }),
|
|
575
|
-
/* @__PURE__ */ jsxs("section", { "data-testid": "principalPlaceOfBusiness", children: [
|
|
576
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__section-heading", children: [
|
|
577
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["principalPlaceOfBusiness"]) }),
|
|
578
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["thePhysicalLocationWhereABusiness"]) })
|
|
579
|
-
] }),
|
|
580
|
-
!mustProvideOperationalAddress && /* @__PURE__ */ jsx(
|
|
581
|
-
Field,
|
|
582
|
-
{
|
|
583
|
-
el: "fieldset",
|
|
584
|
-
name: "operationalAddressIsSame",
|
|
585
|
-
errorMessage: form.errors?.additionalInformation?.operationalAddressIsSame?.errorMessage,
|
|
586
|
-
isValid: form.valid?.additionalInformation?.operationalAddressIsSame,
|
|
587
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
588
|
-
Checkbox,
|
|
589
|
-
{
|
|
590
|
-
...childProps,
|
|
591
|
-
"aria-required": formUtils.isRequiredField("operationalAddressIsSame"),
|
|
592
|
-
"aria-invalid": !form.valid?.additionalInformation?.operationalAddressIsSame,
|
|
593
|
-
name: "operationalAddressIsSame",
|
|
594
|
-
label: formUtils.getLabel("sameAsRegisteredAddress"),
|
|
595
|
-
checked: form.data?.additionalInformation?.operationalAddressIsSame ? form.data?.additionalInformation?.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME : true,
|
|
596
|
-
onChange: handleOperationalAddressIsSameChange
|
|
597
|
-
}
|
|
598
|
-
)
|
|
599
|
-
}
|
|
600
|
-
),
|
|
601
|
-
form.data?.additionalInformation?.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME && /* @__PURE__ */ jsx(
|
|
602
|
-
Address,
|
|
603
|
-
{
|
|
604
|
-
id: ADDITIONAL_INFORMATION_FORM_ID,
|
|
605
|
-
addressType: "operationalAddress",
|
|
606
|
-
data: {
|
|
607
|
-
...form.defaultData?.additionalInformation?.operationalAddress,
|
|
608
|
-
country
|
|
609
|
-
},
|
|
610
|
-
labels: getAddressSchemaLabelsByCountry(country),
|
|
611
|
-
requiredFields: addressSchema,
|
|
612
|
-
shouldValidate,
|
|
613
|
-
hideCountry: true,
|
|
614
|
-
optionalFields: ["otherAddressInformation"],
|
|
615
|
-
trustedFields: getNestedTrustedFields(
|
|
616
|
-
"operationalAddress",
|
|
617
|
-
form.data?.additionalInformation,
|
|
618
|
-
form.trustedFields?.additionalInformation
|
|
619
|
-
),
|
|
620
|
-
onChange: handleOperationalAddressChange,
|
|
621
|
-
verifiedBusiness: verifiedBusiness$1,
|
|
622
|
-
verifiedAddress: verifiedAddress?.operationalAddress,
|
|
623
|
-
condensed: true
|
|
624
|
-
}
|
|
625
|
-
)
|
|
626
|
-
] })
|
|
627
|
-
] })
|
|
628
|
-
] });
|
|
629
|
-
}
|
|
630
|
-
[
|
|
631
|
-
...COUNTRY_FIELD,
|
|
632
|
-
...LEGAL_COMPANY_NAME_FIELD,
|
|
633
|
-
"jaHaniLegalCompanyName",
|
|
634
|
-
"jaKanaLegalCompanyName",
|
|
635
|
-
...TAX_INFORMATION_FIELD,
|
|
636
|
-
...STATE_FIELD,
|
|
637
|
-
...BUSINESS_REGISTRATION_NUMBER_FIELD,
|
|
638
|
-
...COUNTRY_OF_GOVERNING_LAW_FIELD
|
|
639
|
-
];
|
|
640
|
-
const FormDescription = ({ description }) => {
|
|
641
|
-
const { t } = useTranslation("common");
|
|
642
|
-
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-header__description", children: [
|
|
643
|
-
t(($) => $[description]),
|
|
644
|
-
" ",
|
|
645
|
-
/* @__PURE__ */ jsx(Link, { href: "https://www.adyen.com/privacy-policy", external: true, children: t(($) => $["privacyStatement"]) })
|
|
646
|
-
] });
|
|
647
|
-
};
|
|
648
|
-
function BasicInformationMultiform({
|
|
649
|
-
id,
|
|
650
|
-
country,
|
|
651
|
-
shouldValidate,
|
|
652
|
-
heading = "basicInformationFormHeading",
|
|
653
|
-
description = "basicInformationFormDescription",
|
|
654
|
-
validationErrors = {},
|
|
655
|
-
verificationErrors = {},
|
|
656
|
-
disableCountry = false,
|
|
657
|
-
isTopLevelEntity = true
|
|
658
|
-
}) {
|
|
659
|
-
const { t } = useTranslation("common");
|
|
660
|
-
const { isSettingEnabled } = useSettingsContext();
|
|
661
|
-
const { isExperimentEnabled } = useExperimentsContext();
|
|
662
|
-
const { form } = useFormContext();
|
|
663
|
-
const allowedCountries = useAllowedCountries();
|
|
664
|
-
const isAllowedEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
|
|
665
|
-
const state = form.data?.basicInformation?.stateOrProvince;
|
|
666
|
-
const companyType = form.data?.companyStructure?.entityType;
|
|
667
|
-
const currentCountryTaxInformation = form.data?.basicInformation?.taxInformation?.find(
|
|
668
|
-
(tax) => tax.country === country
|
|
669
|
-
);
|
|
670
|
-
const handleChangeFor = useCallback(
|
|
671
|
-
(fieldName, mode) => form.handleChangeFor(fieldName, "basicInformation", mode),
|
|
672
|
-
[form]
|
|
673
|
-
);
|
|
674
|
-
const formUtils = useMemo(() => {
|
|
675
|
-
const initialProps = {
|
|
676
|
-
data: form.data?.basicInformation ?? {},
|
|
677
|
-
fieldValidationErrors: validationErrors,
|
|
678
|
-
formVerificationErrors: verificationErrors,
|
|
679
|
-
allFields: form.allFields?.basicInformation ?? [],
|
|
680
|
-
requiredFields: form.requiredFields?.basicInformation ?? [],
|
|
681
|
-
optionalFields: form.optionalFields?.basicInformation ?? [],
|
|
682
|
-
trustedFields: form.trustedFields?.basicInformation ?? [],
|
|
683
|
-
obscuredFields: form.obscuredFields?.basicInformation ?? [],
|
|
684
|
-
errors: form.errors?.basicInformation ?? {},
|
|
685
|
-
valid: form.valid?.basicInformation ?? {},
|
|
686
|
-
handleFieldChange: handleChangeFor
|
|
687
|
-
};
|
|
688
|
-
const formUtilProps = initialProps.allFields?.reduce((acc, field) => {
|
|
689
|
-
switch (field) {
|
|
690
|
-
case "country":
|
|
691
|
-
return acc;
|
|
692
|
-
case "legalCompanyName":
|
|
693
|
-
return mergeFieldMetadataIntoProps(
|
|
694
|
-
field,
|
|
695
|
-
resolveFieldMetadata(
|
|
696
|
-
isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldConfigV4[country] : defaultFieldConfig$2[country],
|
|
697
|
-
{ isBusiness: true },
|
|
698
|
-
isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldMetadataV4 : defaultFieldMetadata$2
|
|
699
|
-
),
|
|
700
|
-
acc
|
|
701
|
-
);
|
|
702
|
-
case "countryOfGoverningLaw":
|
|
703
|
-
return acc;
|
|
704
|
-
case "stateOrProvince":
|
|
705
|
-
return mergeFieldMetadataIntoProps(
|
|
706
|
-
field,
|
|
707
|
-
resolveFieldMetadata(
|
|
708
|
-
defaultFieldConfig$1[country],
|
|
709
|
-
{ isBusiness: true },
|
|
710
|
-
defaultFieldMetadata$1
|
|
711
|
-
),
|
|
712
|
-
acc
|
|
713
|
-
);
|
|
714
|
-
case "taxInformation":
|
|
715
|
-
return mergeFieldMetadataIntoProps(
|
|
716
|
-
field,
|
|
717
|
-
resolveFieldMetadata(
|
|
718
|
-
taxInformationDefaultFieldConfig[country],
|
|
719
|
-
{
|
|
720
|
-
taxIdNumberType: currentCountryTaxInformation?.type,
|
|
721
|
-
companyType
|
|
722
|
-
},
|
|
723
|
-
taxInformationDefaultFieldMetadata
|
|
724
|
-
),
|
|
725
|
-
acc
|
|
726
|
-
);
|
|
727
|
-
case "registrationNumber":
|
|
728
|
-
return mergeFieldMetadataIntoProps(
|
|
729
|
-
field,
|
|
730
|
-
resolveFieldMetadata(
|
|
731
|
-
registrationNumberDefaultFieldConfig[country],
|
|
732
|
-
{
|
|
733
|
-
companyType,
|
|
734
|
-
registrationNumberType: form.data?.additionalInformation?.registrationNumberType,
|
|
735
|
-
state,
|
|
736
|
-
isExperimentEnabled
|
|
737
|
-
},
|
|
738
|
-
registrationNumberDefaultFieldMetadata
|
|
739
|
-
),
|
|
740
|
-
acc
|
|
741
|
-
);
|
|
742
|
-
case "jaHaniLegalCompanyName":
|
|
743
|
-
return mergeFieldMetadataIntoProps(
|
|
744
|
-
field,
|
|
745
|
-
resolveFieldMetadata(
|
|
746
|
-
localizedLegalCompanyNameFieldConfig.jaHaniLegalCompanyName.config,
|
|
747
|
-
{},
|
|
748
|
-
localizedLegalCompanyNameFieldConfig.jaHaniLegalCompanyName.metadata
|
|
749
|
-
),
|
|
750
|
-
acc
|
|
751
|
-
);
|
|
752
|
-
case "jaKanaLegalCompanyName":
|
|
753
|
-
return mergeFieldMetadataIntoProps(
|
|
754
|
-
field,
|
|
755
|
-
resolveFieldMetadata(
|
|
756
|
-
localizedLegalCompanyNameFieldConfig.jaKanaLegalCompanyName.config,
|
|
757
|
-
{},
|
|
758
|
-
localizedLegalCompanyNameFieldConfig.jaKanaLegalCompanyName.metadata
|
|
759
|
-
),
|
|
760
|
-
acc
|
|
761
|
-
);
|
|
762
|
-
default:
|
|
763
|
-
return acc;
|
|
764
|
-
}
|
|
765
|
-
}, initialProps);
|
|
766
|
-
return createFormUtils(formUtilProps ?? initialProps, t);
|
|
767
|
-
}, [
|
|
768
|
-
companyType,
|
|
769
|
-
country,
|
|
770
|
-
currentCountryTaxInformation?.type,
|
|
771
|
-
form.allFields?.basicInformation,
|
|
772
|
-
form.data?.additionalInformation?.registrationNumberType,
|
|
773
|
-
form.data?.basicInformation,
|
|
774
|
-
form.errors?.basicInformation,
|
|
775
|
-
form.obscuredFields?.basicInformation,
|
|
776
|
-
form.optionalFields?.basicInformation,
|
|
777
|
-
form.requiredFields?.basicInformation,
|
|
778
|
-
form.trustedFields?.basicInformation,
|
|
779
|
-
form.valid?.basicInformation,
|
|
780
|
-
handleChangeFor,
|
|
781
|
-
isExperimentEnabled,
|
|
782
|
-
state,
|
|
783
|
-
t,
|
|
784
|
-
validationErrors,
|
|
785
|
-
verificationErrors
|
|
786
|
-
]);
|
|
787
|
-
const showField = (fieldKeys) => fieldKeys.some((field) => {
|
|
788
|
-
switch (field) {
|
|
789
|
-
case "registrationNumberType":
|
|
790
|
-
case "registrationNumber": {
|
|
791
|
-
return (formUtils.isRequiredField(field) || formUtils.isOptionalField(field)) && form.data.basicInformation?.stateOrProvince;
|
|
792
|
-
}
|
|
793
|
-
default:
|
|
794
|
-
return formUtils.isRequiredField(field) || formUtils.isOptionalField(field);
|
|
795
|
-
}
|
|
796
|
-
});
|
|
797
|
-
const legalCompanyNameFields = useLegalCompanyNameField({
|
|
798
|
-
data: form.data.basicInformation ?? {},
|
|
799
|
-
valid: form.valid.basicInformation ?? {},
|
|
800
|
-
errors: form.errors.basicInformation ?? {},
|
|
801
|
-
fieldProblems: form.fieldProblems.basicInformation ?? {},
|
|
802
|
-
country,
|
|
803
|
-
formUtils,
|
|
804
|
-
fieldOptions: {
|
|
805
|
-
jaHaniLegalCompanyName: {
|
|
806
|
-
onInput: handleChangeFor("jaHaniLegalCompanyName", "input"),
|
|
807
|
-
onBlur: handleChangeFor("jaHaniLegalCompanyName", "blur")
|
|
808
|
-
},
|
|
809
|
-
jaKanaLegalCompanyName: {
|
|
810
|
-
onInput: handleChangeFor("jaKanaLegalCompanyName", "input"),
|
|
811
|
-
onBlur: handleChangeFor("jaKanaLegalCompanyName", "blur")
|
|
812
|
-
},
|
|
813
|
-
legalCompanyName: {
|
|
814
|
-
onInput: handleChangeFor("legalCompanyName", "input"),
|
|
815
|
-
onBlur: handleChangeFor("legalCompanyName", "blur")
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
});
|
|
819
|
-
return /* @__PURE__ */ jsxs("form", { id, className: "adyen-kyc-basic-information", children: [
|
|
820
|
-
/* @__PURE__ */ jsx(FormHeader, { heading: t(($) => $[heading]), children: /* @__PURE__ */ jsx(FormDescription, { slot: "description", description }) }),
|
|
821
|
-
/* @__PURE__ */ jsx(
|
|
822
|
-
ErrorPanel,
|
|
823
|
-
{
|
|
824
|
-
id: "ariaErrorField",
|
|
825
|
-
verificationErrors,
|
|
826
|
-
validationErrors,
|
|
827
|
-
formUtils
|
|
828
|
-
}
|
|
829
|
-
),
|
|
830
|
-
/* @__PURE__ */ jsx("fieldset", { children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
831
|
-
CountryField,
|
|
832
|
-
{
|
|
833
|
-
data: formUtils.getFieldData(form.data?.basicInformation ?? {}, COUNTRY_FIELD),
|
|
834
|
-
valid: formUtils.getFieldValid(form.valid?.basicInformation ?? {}, COUNTRY_FIELD),
|
|
835
|
-
errors: formUtils.getFieldErrors(
|
|
836
|
-
form.errors?.basicInformation ?? {},
|
|
837
|
-
validationErrors,
|
|
838
|
-
COUNTRY_FIELD
|
|
839
|
-
),
|
|
840
|
-
labels: formUtils.getFieldLabels(COUNTRY_FIELD, {
|
|
841
|
-
country: "countryRegionOfEstablishment"
|
|
842
|
-
}),
|
|
843
|
-
readonly: formUtils.isReadOnly("country") || !isAllowedEditPrefilledCountry || Boolean(disableCountry),
|
|
844
|
-
handleChangeFor,
|
|
845
|
-
allowedCountries: isTopLevelEntity ? allowedCountries : void 0
|
|
846
|
-
}
|
|
847
|
-
) }) }),
|
|
848
|
-
/* @__PURE__ */ jsxs("fieldset", { children: [
|
|
849
|
-
showField(COUNTRY_OF_GOVERNING_LAW_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
850
|
-
CountryOfGoverningLawField,
|
|
851
|
-
{
|
|
852
|
-
data: formUtils.getFieldData(
|
|
853
|
-
form.data?.basicInformation ?? {},
|
|
854
|
-
COUNTRY_OF_GOVERNING_LAW_FIELD
|
|
855
|
-
),
|
|
856
|
-
country,
|
|
857
|
-
valid: formUtils.getFieldValid(
|
|
858
|
-
form.valid?.basicInformation ?? {},
|
|
859
|
-
COUNTRY_OF_GOVERNING_LAW_FIELD
|
|
860
|
-
),
|
|
861
|
-
errors: formUtils.getFieldErrors(
|
|
862
|
-
form.errors?.basicInformation ?? {},
|
|
863
|
-
validationErrors,
|
|
864
|
-
COUNTRY_OF_GOVERNING_LAW_FIELD
|
|
865
|
-
),
|
|
866
|
-
labels: formUtils.getFieldLabels(COUNTRY_OF_GOVERNING_LAW_FIELD),
|
|
867
|
-
readonly: false,
|
|
868
|
-
allowedCountries: isTopLevelEntity ? allowedCountries : void 0,
|
|
869
|
-
handleChangeFor
|
|
870
|
-
}
|
|
871
|
-
) }),
|
|
872
|
-
// fields shown here are abstracted by useLegalCompanyNameField
|
|
873
|
-
legalCompanyNameFields.map((field) => /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
874
|
-
Field,
|
|
875
|
-
{
|
|
876
|
-
name: field?.name ?? "",
|
|
877
|
-
label: field?.label,
|
|
878
|
-
helper: field?.helper,
|
|
879
|
-
errorMessage: field?.errorMessage,
|
|
880
|
-
isValid: Boolean(field?.isValid),
|
|
881
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
882
|
-
InputText,
|
|
883
|
-
{
|
|
884
|
-
...childProps,
|
|
885
|
-
"aria-required": true,
|
|
886
|
-
"aria-invalid": !field?.isValid,
|
|
887
|
-
name: field?.name,
|
|
888
|
-
value: field?.value,
|
|
889
|
-
readonly: field?.readonly,
|
|
890
|
-
onInput: field ? field.onInput : () => {
|
|
891
|
-
},
|
|
892
|
-
onBlur: field?.onBlur,
|
|
893
|
-
onKeyDown: field?.onKeyDown
|
|
894
|
-
}
|
|
895
|
-
)
|
|
896
|
-
},
|
|
897
|
-
field?.name
|
|
898
|
-
) }, field?.name)),
|
|
899
|
-
showField(TAX_INFORMATION_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
900
|
-
TaxInformationField,
|
|
901
|
-
{
|
|
902
|
-
data: formUtils.getFieldData(
|
|
903
|
-
form.data?.basicInformation ?? {},
|
|
904
|
-
TAX_INFORMATION_FIELD
|
|
905
|
-
),
|
|
906
|
-
valid: formUtils.getFieldValid(
|
|
907
|
-
form.valid?.basicInformation ?? {},
|
|
908
|
-
TAX_INFORMATION_FIELD
|
|
909
|
-
),
|
|
910
|
-
errors: formUtils.getFieldErrors(
|
|
911
|
-
form.errors?.basicInformation ?? {},
|
|
912
|
-
validationErrors,
|
|
913
|
-
TAX_INFORMATION_FIELD
|
|
914
|
-
),
|
|
915
|
-
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, {
|
|
916
|
-
exemptedFromTax: "iDontHaveATaxId"
|
|
917
|
-
}),
|
|
918
|
-
mask: formUtils.getMask("taxInformation"),
|
|
919
|
-
placeholders: formUtils.getFieldPlaceholders(TAX_INFORMATION_FIELD),
|
|
920
|
-
guidanceText: formUtils.getFieldGuidanceText(TAX_INFORMATION_FIELD),
|
|
921
|
-
readonly: formUtils.isReadOnly("taxInformation"),
|
|
922
|
-
shouldValidate,
|
|
923
|
-
handleChangeFor,
|
|
924
|
-
canExempt: showField(["exemptedFromTax"]),
|
|
925
|
-
registrationNumber: form.data.additionalInformation?.registrationNumber,
|
|
926
|
-
country,
|
|
927
|
-
entityType: companyType,
|
|
928
|
-
defaultData: form.defaultData?.basicInformation?.taxInformation
|
|
929
|
-
}
|
|
930
|
-
) }),
|
|
931
|
-
showField(STATE_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
932
|
-
StateField,
|
|
933
|
-
{
|
|
934
|
-
data: formUtils.getFieldData(form.data?.basicInformation ?? {}, STATE_FIELD),
|
|
935
|
-
valid: formUtils.getFieldValid(form.valid?.basicInformation ?? {}, STATE_FIELD),
|
|
936
|
-
errors: formUtils.getFieldErrors(
|
|
937
|
-
form.errors?.basicInformation ?? {},
|
|
938
|
-
validationErrors,
|
|
939
|
-
STATE_FIELD
|
|
940
|
-
),
|
|
941
|
-
labels: formUtils.getFieldLabels(STATE_FIELD),
|
|
942
|
-
placeholders: formUtils.getFieldPlaceholders(STATE_FIELD),
|
|
943
|
-
readonly: formUtils.isReadOnly("stateOrProvince"),
|
|
944
|
-
handleChangeFor,
|
|
945
|
-
selectedCountry: country
|
|
946
|
-
}
|
|
947
|
-
) }),
|
|
948
|
-
showField(BUSINESS_REGISTRATION_NUMBER_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
|
|
949
|
-
BusinessRegistrationNumberField,
|
|
950
|
-
{
|
|
951
|
-
data: formUtils.getFieldData(
|
|
952
|
-
form.data?.basicInformation ?? {},
|
|
953
|
-
BUSINESS_REGISTRATION_NUMBER_FIELD
|
|
954
|
-
),
|
|
955
|
-
valid: formUtils.getFieldValid(
|
|
956
|
-
form.valid?.basicInformation ?? {},
|
|
957
|
-
BUSINESS_REGISTRATION_NUMBER_FIELD
|
|
958
|
-
),
|
|
959
|
-
errors: formUtils.getFieldErrors(
|
|
960
|
-
form.errors?.basicInformation ?? {},
|
|
961
|
-
validationErrors,
|
|
962
|
-
BUSINESS_REGISTRATION_NUMBER_FIELD
|
|
963
|
-
),
|
|
964
|
-
labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, {
|
|
965
|
-
exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber"
|
|
966
|
-
}),
|
|
967
|
-
mask: formUtils.getMask("registrationNumber"),
|
|
968
|
-
guidanceText: formUtils.getFieldGuidanceText(BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
969
|
-
placeholders: formUtils.getFieldPlaceholders(BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
970
|
-
helperText: formUtils.getFieldHelperText(BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
971
|
-
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
972
|
-
optional: formUtils.isOptionalField("registrationNumber"),
|
|
973
|
-
shouldValidate,
|
|
974
|
-
handleChangeFor,
|
|
975
|
-
country,
|
|
976
|
-
canExempt: showField(["exemptedFromRegistrationNumber"]),
|
|
977
|
-
companyType
|
|
978
|
-
}
|
|
979
|
-
) })
|
|
980
|
-
] })
|
|
981
|
-
] });
|
|
982
|
-
}
|
|
983
|
-
function CompanyStructureMultiform({
|
|
984
|
-
id,
|
|
985
|
-
country,
|
|
986
|
-
heading = "companyStructureFormName",
|
|
987
|
-
description = "companyStructureFormDescription",
|
|
988
|
-
validationErrors = {},
|
|
989
|
-
verificationErrors = {}
|
|
990
|
-
}) {
|
|
991
|
-
const { t } = useTranslation("common");
|
|
992
|
-
const { form } = useFormContext();
|
|
993
|
-
const { accountHolder } = useAccountHolder();
|
|
994
|
-
const { isSettingEnabled } = useSettingsContext();
|
|
995
|
-
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
996
|
-
const formUtils = createFormUtils(
|
|
997
|
-
{ requiredFields: form.requiredFields?.companyStructure ?? [] },
|
|
998
|
-
t
|
|
999
|
-
);
|
|
1000
|
-
const excludedTypes = [
|
|
1001
|
-
CompanyTypesValues.INCORPORATED_PARTNERSHIP,
|
|
1002
|
-
CompanyTypesValues.INCORPORATED_ASSOCIATION
|
|
1003
|
-
];
|
|
1004
|
-
if (isBankAccountRequestedForOrganization.value) {
|
|
1005
|
-
excludedTypes.push(CompanyTypesValues.GOVERNMENTAL_ORGANIZATION);
|
|
1006
|
-
}
|
|
1007
|
-
const companyTypeRadioOptions = canChangeEntityType && accountHolder !== "aTrust" && accountHolder !== "anUnincorporatedPartnership" ? companyTypeOptions.filter((companyType) => !excludedTypes.includes(companyType)) : companyTypeOptions;
|
|
1008
|
-
const companyTypeExamples = useCompanyTypeExamples(country);
|
|
1009
|
-
return /* @__PURE__ */ jsxs("form", { id, className: "adyen-kyc-company-structure", children: [
|
|
1010
|
-
/* @__PURE__ */ jsx(FormHeader, { heading: t(($) => $[heading]), description: t(($) => $[description]) }),
|
|
1011
|
-
/* @__PURE__ */ jsx(
|
|
1012
|
-
ErrorPanel,
|
|
1013
|
-
{
|
|
1014
|
-
id: "ariaErrorField",
|
|
1015
|
-
verificationErrors,
|
|
1016
|
-
validationErrors,
|
|
1017
|
-
formUtils
|
|
1018
|
-
}
|
|
1019
|
-
),
|
|
1020
|
-
/* @__PURE__ */ jsx(
|
|
1021
|
-
Field,
|
|
1022
|
-
{
|
|
1023
|
-
el: "fieldset",
|
|
1024
|
-
name: "entityType",
|
|
1025
|
-
errorMessage: formUtils.getErrorMessage(
|
|
1026
|
-
"entityType",
|
|
1027
|
-
form.errors?.companyStructure,
|
|
1028
|
-
validationErrors
|
|
1029
|
-
),
|
|
1030
|
-
isValid: form.valid?.companyStructure?.entityType,
|
|
1031
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1032
|
-
EntityTypeRadioGroupCard,
|
|
1033
|
-
{
|
|
1034
|
-
...childProps,
|
|
1035
|
-
name: "entityType",
|
|
1036
|
-
options: companyTypeRadioOptions,
|
|
1037
|
-
optionId: (option) => companyTypeMetadata[option].id,
|
|
1038
|
-
optionName: (option) => companyTypeMetadata[option].name,
|
|
1039
|
-
optionDescription: (option) => companyTypeMetadata[option].description,
|
|
1040
|
-
selected: form.data?.companyStructure?.entityType,
|
|
1041
|
-
onSelect: form.handleChangeFor("entityType", "companyStructure"),
|
|
1042
|
-
examples: companyTypeExamples,
|
|
1043
|
-
"aria-required": true,
|
|
1044
|
-
"aria-invalid": !form.valid?.companyStructure?.entityType
|
|
1045
|
-
}
|
|
1046
|
-
)
|
|
1047
|
-
}
|
|
1048
|
-
)
|
|
1049
|
-
] });
|
|
1050
|
-
}
|
|
1051
|
-
function BusinessDetailsMultiform({
|
|
1052
|
-
taskType,
|
|
1053
|
-
country,
|
|
1054
|
-
activeForm,
|
|
1055
|
-
shouldValidate,
|
|
1056
|
-
problems = {},
|
|
1057
|
-
handleNextClick,
|
|
1058
|
-
handleBackClick,
|
|
1059
|
-
setLoadingStatus
|
|
1060
|
-
}) {
|
|
1061
|
-
const { i18n } = useI18nContext();
|
|
1062
|
-
const { form } = useFormContext();
|
|
1063
|
-
const companyType = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ? CompanyTypesValues.SOLE_PROPRIETORSHIP : form.data.companyStructure?.entityType;
|
|
1064
|
-
function handleChange(formName, fieldName, mode) {
|
|
1065
|
-
return form.handleChangeFor(fieldName, formName, mode);
|
|
1066
|
-
}
|
|
1067
|
-
const renderActiveForm = (activeForm2) => {
|
|
1068
|
-
switch (activeForm2.formId) {
|
|
1069
|
-
case "basicInformation":
|
|
1070
|
-
return /* @__PURE__ */ jsx(
|
|
1071
|
-
BasicInformationMultiform,
|
|
1072
|
-
{
|
|
1073
|
-
id: activeForm2.formId,
|
|
1074
|
-
country,
|
|
1075
|
-
shouldValidate,
|
|
1076
|
-
heading: activeForm2.formHeading,
|
|
1077
|
-
description: activeForm2.formDescription,
|
|
1078
|
-
validationErrors: problems.validationErrors?.[activeForm2.formId],
|
|
1079
|
-
verificationErrors: problems.verificationErrors?.[activeForm2.formId]
|
|
1080
|
-
}
|
|
1081
|
-
);
|
|
1082
|
-
case "businessSelection":
|
|
1083
|
-
return /* @__PURE__ */ jsx(
|
|
1084
|
-
BusinessSelectionMultiform,
|
|
1085
|
-
{
|
|
1086
|
-
id: activeForm2.formId,
|
|
1087
|
-
country,
|
|
1088
|
-
shouldValidate,
|
|
1089
|
-
heading: activeForm2.formHeading,
|
|
1090
|
-
description: activeForm2.formDescription,
|
|
1091
|
-
validationErrors: problems.validationErrors?.[activeForm2.formId],
|
|
1092
|
-
verificationErrors: problems.verificationErrors?.[activeForm2.formId],
|
|
1093
|
-
handleNextClick,
|
|
1094
|
-
handleBackClick,
|
|
1095
|
-
setLoadingStatus
|
|
1096
|
-
}
|
|
1097
|
-
);
|
|
1098
|
-
case "companyStructure":
|
|
1099
|
-
return /* @__PURE__ */ jsx(
|
|
1100
|
-
CompanyStructureMultiform,
|
|
1101
|
-
{
|
|
1102
|
-
id: activeForm2.formId,
|
|
1103
|
-
country,
|
|
1104
|
-
shouldValidate,
|
|
1105
|
-
heading: activeForm2.formHeading,
|
|
1106
|
-
description: activeForm2.formDescription,
|
|
1107
|
-
validationErrors: problems.validationErrors?.[activeForm2.formId],
|
|
1108
|
-
verificationErrors: problems.verificationErrors?.[activeForm2.formId]
|
|
1109
|
-
}
|
|
1110
|
-
);
|
|
1111
|
-
case "additionalInformation":
|
|
1112
|
-
return /* @__PURE__ */ jsx(
|
|
1113
|
-
AdditionalInformationMultiform,
|
|
1114
|
-
{
|
|
1115
|
-
id: activeForm2.formId,
|
|
1116
|
-
country,
|
|
1117
|
-
companyType,
|
|
1118
|
-
shouldValidate,
|
|
1119
|
-
heading: activeForm2.formHeading,
|
|
1120
|
-
description: activeForm2.formDescription,
|
|
1121
|
-
validationErrors: problems.validationErrors?.[activeForm2.formId],
|
|
1122
|
-
verificationErrors: problems.verificationErrors?.[activeForm2.formId]
|
|
1123
|
-
}
|
|
1124
|
-
);
|
|
1125
|
-
case "companyTaxDocument":
|
|
1126
|
-
return country === "US" ? /* @__PURE__ */ jsx(
|
|
1127
|
-
TaxDocument,
|
|
1128
|
-
{
|
|
1129
|
-
id: activeForm2.formId,
|
|
1130
|
-
country,
|
|
1131
|
-
companyType,
|
|
1132
|
-
shouldValidate,
|
|
1133
|
-
heading: activeForm2.formHeading,
|
|
1134
|
-
description: activeForm2.formDescription,
|
|
1135
|
-
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
1136
|
-
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {},
|
|
1137
|
-
data: form.data.companyTaxDocument,
|
|
1138
|
-
errors: form.errors.companyTaxDocument,
|
|
1139
|
-
valid: form.valid.companyTaxDocument,
|
|
1140
|
-
allFields: form.allFields?.companyTaxDocument,
|
|
1141
|
-
requiredFields: form.requiredFields?.companyTaxDocument,
|
|
1142
|
-
optionalFields: form.optionalFields?.companyTaxDocument,
|
|
1143
|
-
trustedFields: form.trustedFields?.companyTaxDocument,
|
|
1144
|
-
handleFieldChange: () => handleChange("companyTaxDocument", "taxDocument")
|
|
1145
|
-
}
|
|
1146
|
-
) : /* @__PURE__ */ jsx(
|
|
1147
|
-
MemoizedDocumentUpload,
|
|
1148
|
-
{
|
|
1149
|
-
id: activeForm2.formId,
|
|
1150
|
-
country,
|
|
1151
|
-
companyType,
|
|
1152
|
-
shouldValidate,
|
|
1153
|
-
heading: activeForm2.formHeading,
|
|
1154
|
-
description: activeForm2.formDescription,
|
|
1155
|
-
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
1156
|
-
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {},
|
|
1157
|
-
data: form.data.companyTaxDocument,
|
|
1158
|
-
errors: form.errors.companyTaxDocument,
|
|
1159
|
-
valid: form.valid.companyTaxDocument,
|
|
1160
|
-
allFields: form.allFields?.companyTaxDocument,
|
|
1161
|
-
requiredFields: form.requiredFields?.companyTaxDocument,
|
|
1162
|
-
optionalFields: form.optionalFields?.companyTaxDocument,
|
|
1163
|
-
trustedFields: form.trustedFields?.companyTaxDocument,
|
|
1164
|
-
handleFieldChange: () => handleChange("companyTaxDocument", "taxDocument"),
|
|
1165
|
-
documentField: "taxDocument",
|
|
1166
|
-
documentType: "vatDocument",
|
|
1167
|
-
hidePageCount: true,
|
|
1168
|
-
guidanceContent: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
1169
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-upload-field__subtitle", children: [
|
|
1170
|
-
" ",
|
|
1171
|
-
i18n.get("requirements")
|
|
1172
|
-
] }),
|
|
1173
|
-
/* @__PURE__ */ jsxs("ul", { children: [
|
|
1174
|
-
/* @__PURE__ */ jsx("li", { children: i18n.get("containsNameOfCompany") }),
|
|
1175
|
-
/* @__PURE__ */ jsx("li", { children: i18n.get("documentShowsTaxIdOfCompany") }),
|
|
1176
|
-
/* @__PURE__ */ jsx("li", { children: i18n.get("issuedByTheTaxAuthority") })
|
|
1177
|
-
] })
|
|
1178
|
-
] })
|
|
1179
|
-
}
|
|
1180
|
-
);
|
|
1181
|
-
case "companyRegistrationDocument":
|
|
1182
|
-
return /* @__PURE__ */ jsx(
|
|
1183
|
-
RegistrationDocument,
|
|
1184
|
-
{
|
|
1185
|
-
id: activeForm2.formId,
|
|
1186
|
-
heading: activeForm2.formHeading,
|
|
1187
|
-
description: activeForm2.formDescription,
|
|
1188
|
-
country,
|
|
1189
|
-
companyType,
|
|
1190
|
-
data: form.data.companyRegistrationDocument,
|
|
1191
|
-
errors: form.errors.companyRegistrationDocument,
|
|
1192
|
-
valid: form.valid.companyRegistrationDocument,
|
|
1193
|
-
allFields: form.allFields?.companyRegistrationDocument,
|
|
1194
|
-
requiredFields: form.requiredFields?.companyRegistrationDocument,
|
|
1195
|
-
optionalFields: form.optionalFields?.companyRegistrationDocument,
|
|
1196
|
-
trustedFields: form.trustedFields?.companyRegistrationDocument,
|
|
1197
|
-
handleFieldChange: () => handleChange("companyRegistrationDocument", "registrationDocument"),
|
|
1198
|
-
shouldValidate,
|
|
1199
|
-
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
1200
|
-
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
1201
|
-
}
|
|
1202
|
-
);
|
|
1203
|
-
case "companyProofOfDirectorDocument":
|
|
1204
|
-
return /* @__PURE__ */ jsx(
|
|
1205
|
-
ProofOfDirectorDocument,
|
|
1206
|
-
{
|
|
1207
|
-
id: activeForm2.formId,
|
|
1208
|
-
heading: activeForm2.formHeading,
|
|
1209
|
-
description: activeForm2.formDescription,
|
|
1210
|
-
country,
|
|
1211
|
-
data: form.data?.companyProofOfDirectorDocument,
|
|
1212
|
-
errors: form.errors.companyProofOfDirectorDocument,
|
|
1213
|
-
valid: form.valid.companyProofOfDirectorDocument,
|
|
1214
|
-
allFields: form.allFields?.companyProofOfDirectorDocument,
|
|
1215
|
-
requiredFields: form.requiredFields?.companyProofOfDirectorDocument,
|
|
1216
|
-
optionalFields: form.optionalFields?.companyProofOfDirectorDocument,
|
|
1217
|
-
trustedFields: form.trustedFields?.companyProofOfDirectorDocument,
|
|
1218
|
-
handleFieldChange: () => handleChange("companyProofOfDirectorDocument", "proofOfDirector"),
|
|
1219
|
-
shouldValidate,
|
|
1220
|
-
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
1221
|
-
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
1222
|
-
}
|
|
1223
|
-
);
|
|
1224
|
-
case "companyProofOfSignatoryDocument":
|
|
1225
|
-
return /* @__PURE__ */ jsx(
|
|
1226
|
-
ProofOfSignatoryDocument,
|
|
1227
|
-
{
|
|
1228
|
-
id: activeForm2.formId,
|
|
1229
|
-
heading: activeForm2.formHeading,
|
|
1230
|
-
description: activeForm2.formDescription,
|
|
1231
|
-
country,
|
|
1232
|
-
data: form.data?.companyProofOfSignatoryDocument,
|
|
1233
|
-
errors: form.errors.companyProofOfSignatoryDocument,
|
|
1234
|
-
valid: form.valid.companyProofOfSignatoryDocument,
|
|
1235
|
-
allFields: form.allFields?.companyProofOfSignatoryDocument,
|
|
1236
|
-
requiredFields: form.requiredFields?.companyProofOfSignatoryDocument,
|
|
1237
|
-
optionalFields: form.optionalFields?.companyProofOfSignatoryDocument,
|
|
1238
|
-
trustedFields: form.trustedFields?.companyProofOfSignatoryDocument,
|
|
1239
|
-
handleFieldChange: () => handleChange("companyProofOfSignatoryDocument", "proofOfSignatory"),
|
|
1240
|
-
shouldValidate,
|
|
1241
|
-
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
1242
|
-
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
1243
|
-
}
|
|
1244
|
-
);
|
|
1245
|
-
case "companyProofOfOwnershipDocument":
|
|
1246
|
-
return /* @__PURE__ */ jsx(
|
|
1247
|
-
ProofOfOwnershipDocument,
|
|
1248
|
-
{
|
|
1249
|
-
id: activeForm2.formId,
|
|
1250
|
-
heading: activeForm2.formHeading,
|
|
1251
|
-
description: activeForm2.formDescription,
|
|
1252
|
-
country,
|
|
1253
|
-
data: form.data?.companyProofOfOwnershipDocument,
|
|
1254
|
-
errors: form.errors.companyProofOfOwnershipDocument,
|
|
1255
|
-
valid: form.valid.companyProofOfOwnershipDocument,
|
|
1256
|
-
allFields: form.allFields?.companyProofOfOwnershipDocument,
|
|
1257
|
-
requiredFields: form.requiredFields?.companyProofOfOwnershipDocument,
|
|
1258
|
-
optionalFields: form.optionalFields?.companyProofOfOwnershipDocument,
|
|
1259
|
-
trustedFields: form.trustedFields?.companyProofOfOwnershipDocument,
|
|
1260
|
-
handleFieldChange: () => handleChange("companyProofOfOwnershipDocument", "proofOfOwnership"),
|
|
1261
|
-
shouldValidate,
|
|
1262
|
-
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
1263
|
-
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
1264
|
-
}
|
|
1265
|
-
);
|
|
1266
|
-
case "companyConstitutionalDocument":
|
|
1267
|
-
return /* @__PURE__ */ jsx(
|
|
1268
|
-
MemoizedConstitutionalDocument,
|
|
1269
|
-
{
|
|
1270
|
-
id: activeForm2.formId,
|
|
1271
|
-
legalEntityType: LegalEntityTypes.SOLE_PROPRIETORSHIP,
|
|
1272
|
-
country,
|
|
1273
|
-
data: form.data?.companyConstitutionalDocument,
|
|
1274
|
-
errors: form.errors.companyConstitutionalDocument,
|
|
1275
|
-
valid: form.valid.companyConstitutionalDocument,
|
|
1276
|
-
allFields: form.allFields?.companyConstitutionalDocument,
|
|
1277
|
-
requiredFields: form.requiredFields?.companyConstitutionalDocument,
|
|
1278
|
-
optionalFields: form.optionalFields?.companyConstitutionalDocument,
|
|
1279
|
-
trustedFields: form.trustedFields?.companyConstitutionalDocument,
|
|
1280
|
-
handleFieldChange: () => handleChange("companyConstitutionalDocument", "constitutionalDocument"),
|
|
1281
|
-
shouldValidate,
|
|
1282
|
-
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
1283
|
-
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
1284
|
-
}
|
|
1285
|
-
);
|
|
1286
|
-
case "companyFinancialInformation":
|
|
1287
|
-
return /* @__PURE__ */ jsx(
|
|
1288
|
-
FinancialInformation,
|
|
1289
|
-
{
|
|
1290
|
-
multiForm: form,
|
|
1291
|
-
id: activeForm2.formId,
|
|
1292
|
-
country,
|
|
1293
|
-
heading: i18n.get(activeForm2.formHeading),
|
|
1294
|
-
description: activeForm2.formDescription,
|
|
1295
|
-
data: form.data?.companyFinancialInformation,
|
|
1296
|
-
allFields: form.allFields?.companyFinancialInformation,
|
|
1297
|
-
requiredFields: form.requiredFields?.companyFinancialInformation,
|
|
1298
|
-
optionalFields: form.optionalFields?.companyFinancialInformation,
|
|
1299
|
-
trustedFields: form.trustedFields?.companyFinancialInformation,
|
|
1300
|
-
shouldValidate
|
|
1301
|
-
}
|
|
1302
|
-
);
|
|
1303
|
-
default:
|
|
1304
|
-
return null;
|
|
1305
|
-
}
|
|
1306
|
-
};
|
|
1307
|
-
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-business-details", children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-form-wrapper", children: renderActiveForm(activeForm) }) });
|
|
1308
|
-
}
|
|
1309
|
-
function buildRequiredForms({
|
|
1310
|
-
config: { country, forms, requiredFields, optionalFields, isValid, problems },
|
|
1311
|
-
options
|
|
1312
|
-
}) {
|
|
1313
|
-
const usesBusinessSelection = COUNTRIES_USING_COMPANY_SEARCH.includes(country);
|
|
1314
|
-
const filteredForms = Object.values(forms).filter(({ formId }) => {
|
|
1315
|
-
if (usesBusinessSelection) {
|
|
1316
|
-
if (formId === "businessSelection" && options?.hasNoSearchResults) return false;
|
|
1317
|
-
if (formId === "companyStructure" && options?.verifiedBusiness && options.verifiedBusiness.legalForm)
|
|
1318
|
-
return false;
|
|
1319
|
-
}
|
|
1320
|
-
if (requiredFields || optionalFields) {
|
|
1321
|
-
return Boolean(requiredFields?.[formId]) || Boolean(optionalFields?.[formId]);
|
|
1322
|
-
}
|
|
1323
|
-
return true;
|
|
1324
|
-
});
|
|
1325
|
-
const requiredForms = options?.skipSummary ? filteredForms : [...filteredForms, summaryStep];
|
|
1326
|
-
return addValidityToForms(requiredForms, isValid, problems);
|
|
1327
|
-
}
|
|
1328
|
-
function basicInformationValidators({
|
|
1329
|
-
country,
|
|
1330
|
-
taxIdNumberType,
|
|
1331
|
-
companyType,
|
|
1332
|
-
registrationNumberType,
|
|
1333
|
-
state,
|
|
1334
|
-
isExperimentEnabled
|
|
1335
|
-
}) {
|
|
1336
|
-
return {
|
|
1337
|
-
country: CountryFieldValidation().country,
|
|
1338
|
-
countryOfGoverningLaw: CountryOfGoverningLawFieldValidation().countryOfGoverningLaw,
|
|
1339
|
-
legalCompanyName: resolveFieldMetadata(
|
|
1340
|
-
isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldConfigV4[country] : defaultFieldConfig$2[country],
|
|
1341
|
-
{ isBusiness: true },
|
|
1342
|
-
isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldMetadataV4 : defaultFieldMetadata$2
|
|
1343
|
-
)?.validators,
|
|
1344
|
-
taxInformation: resolveFieldMetadata(
|
|
1345
|
-
taxInformationDefaultFieldConfig[country],
|
|
1346
|
-
{
|
|
1347
|
-
taxIdNumberType,
|
|
1348
|
-
companyType
|
|
1349
|
-
},
|
|
1350
|
-
taxInformationDefaultFieldMetadata
|
|
1351
|
-
)?.validators,
|
|
1352
|
-
stateOrProvince: resolveFieldMetadata(
|
|
1353
|
-
defaultFieldConfig$1[country],
|
|
1354
|
-
{ isBusiness: true },
|
|
1355
|
-
defaultFieldMetadata$1
|
|
1356
|
-
)?.validators,
|
|
1357
|
-
registrationNumber: resolveFieldMetadata(
|
|
1358
|
-
registrationNumberDefaultFieldConfig[country],
|
|
1359
|
-
{
|
|
1360
|
-
companyType,
|
|
1361
|
-
registrationNumberType,
|
|
1362
|
-
state,
|
|
1363
|
-
isExperimentEnabled
|
|
1364
|
-
},
|
|
1365
|
-
registrationNumberDefaultFieldMetadata
|
|
1366
|
-
)?.validators
|
|
1367
|
-
};
|
|
1368
|
-
}
|
|
1369
|
-
function businessSelectionValidators() {
|
|
1370
|
-
return {
|
|
1371
|
-
hasSelectedBusiness: {
|
|
1372
|
-
modes: ["blur", "input"],
|
|
1373
|
-
validate: (value) => typeof value === "boolean",
|
|
1374
|
-
// indicates a selection was made
|
|
1375
|
-
errorMessage: "fieldIsRequired"
|
|
1376
|
-
}
|
|
1377
|
-
};
|
|
1378
|
-
}
|
|
1379
|
-
function additionalInformationValidators({
|
|
1380
|
-
country,
|
|
1381
|
-
taxIdNumberType,
|
|
1382
|
-
companyType,
|
|
1383
|
-
registrationNumberType,
|
|
1384
|
-
vatNumberType,
|
|
1385
|
-
isExperimentEnabled
|
|
1386
|
-
}) {
|
|
1387
|
-
return {
|
|
1388
|
-
hasDoingBusinessAs: doingBusinessAsAbsentFieldMetadata.validators,
|
|
1389
|
-
doingBusinessAs: doingBusinessAsFieldMetadata.validators,
|
|
1390
|
-
registrationNumber: resolveFieldMetadata(
|
|
1391
|
-
registrationNumberDefaultFieldConfig[country],
|
|
1392
|
-
{
|
|
1393
|
-
companyType,
|
|
1394
|
-
registrationNumberType,
|
|
1395
|
-
isExperimentEnabled
|
|
1396
|
-
},
|
|
1397
|
-
registrationNumberDefaultFieldMetadata
|
|
1398
|
-
)?.validators,
|
|
1399
|
-
exemptedFromRegistrationNumber: exemptFromRegistrationNumberDefaultFieldMetadata.validators,
|
|
1400
|
-
taxInformation: resolveFieldMetadata(
|
|
1401
|
-
taxInformationDefaultFieldConfig[country],
|
|
1402
|
-
{
|
|
1403
|
-
taxIdNumberType,
|
|
1404
|
-
companyType
|
|
1405
|
-
},
|
|
1406
|
-
taxInformationDefaultFieldMetadata
|
|
1407
|
-
).validators,
|
|
1408
|
-
vatNumber: resolveFieldMetadata(
|
|
1409
|
-
defaultFieldConfig[country],
|
|
1410
|
-
{ vatNumberType },
|
|
1411
|
-
defaultFieldMetadata
|
|
1412
|
-
).validators,
|
|
1413
|
-
vatAbsenceReason: vatAbsenceReasonMetadata.validators,
|
|
1414
|
-
eInvoicingCode: eInvoicingCodeFieldMetadata.validators,
|
|
1415
|
-
dateOfIncorporation: dateOfIncorporationFieldMetadata.validators,
|
|
1416
|
-
stockExchangeMIC: stockExchangeMICFieldMetadata.validators,
|
|
1417
|
-
stockISIN: stockISINFieldMetadata.validators,
|
|
1418
|
-
stockTickerSymbol: stockTickerSymbolFieldMetadata.validators
|
|
1419
|
-
};
|
|
1420
|
-
}
|
|
1421
|
-
function BusinessDetailsMultiformDropin({
|
|
1422
|
-
taskType = TaskTypes.BUSINESS_DETAILS,
|
|
1423
|
-
country: propCountry,
|
|
1424
|
-
problems: propProblems,
|
|
1425
|
-
legalEntityResponse,
|
|
1426
|
-
associatedLegalArrangement,
|
|
1427
|
-
// initially undefined when creating entity
|
|
1428
|
-
nestedLegalEntity,
|
|
1429
|
-
// initially undefined when creating entity
|
|
1430
|
-
nestedLegalEntityDetails,
|
|
1431
|
-
// has entity roles for association logic
|
|
1432
|
-
onSubmit: onExternalSubmit,
|
|
1433
|
-
handleHomeClick,
|
|
1434
|
-
asModal = false
|
|
1435
|
-
}) {
|
|
1436
|
-
useTranslation(["business", "common"]);
|
|
1437
|
-
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
1438
|
-
const { i18n } = useI18nContext();
|
|
1439
|
-
const userEvents = useAnalyticsContext();
|
|
1440
|
-
const { showToast } = useToastContext();
|
|
1441
|
-
const queryClient = useQueryClient();
|
|
1442
|
-
const { isExperimentEnabled } = useExperimentsContext();
|
|
1443
|
-
const { accountHolder, setAccountHolder } = useAccountHolder();
|
|
1444
|
-
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
1445
|
-
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
1446
|
-
const [country, setCountry] = useState(propCountry);
|
|
1447
|
-
const [documents, setDocuments] = useState();
|
|
1448
|
-
const [problems, setProblems] = useState(propProblems ?? {});
|
|
1449
|
-
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
1450
|
-
const [derivedProps, setDerivedProps] = useState();
|
|
1451
|
-
const [trustedFields, setTrustedFields] = useState(
|
|
1452
|
-
legalEntityResponse?.trustedFields ?? void 0
|
|
1453
|
-
);
|
|
1454
|
-
const defaultForms = useMemo(() => getForms(country), [country]);
|
|
1455
|
-
const documentUtils = documentApiUtils({
|
|
1456
|
-
baseUrl: baseUrl.value,
|
|
1457
|
-
rootLegalEntityId: rootLegalEntityId.value
|
|
1458
|
-
});
|
|
1459
|
-
useEffect(() => {
|
|
1460
|
-
if (!legalEntityResponse?.documentDetails?.length) return;
|
|
1461
|
-
documentUtils.fetchDocuments(legalEntityResponse.documentDetails, legalEntityResponse?.id).then(() => {
|
|
1462
|
-
setDocuments(mapApiDocumentToBusinessDetailsDocuments(legalEntityResponse?.id));
|
|
1463
|
-
}).catch(() => {
|
|
1464
|
-
showToast({ label: i18n.get("failedToFetchRelevantDocuments"), variant: "error" });
|
|
1465
|
-
});
|
|
1466
|
-
}, [legalEntityResponse.documentDetails, legalEntityResponse?.id]);
|
|
1467
|
-
const parseConfiguration = useCallback(
|
|
1468
|
-
({ scenarios }) => composePerScenarioFormConfigurations(scenarios, businessDetailsFieldsPerScenario),
|
|
1469
|
-
[]
|
|
1470
|
-
);
|
|
1471
|
-
const { fieldConfigurations } = useScenarioConfiguration({
|
|
1472
|
-
legalEntityType: LegalEntityTypes.ORGANIZATION,
|
|
1473
|
-
parseConfiguration,
|
|
1474
|
-
setLoadingStatus,
|
|
1475
|
-
country
|
|
1476
|
-
});
|
|
1477
|
-
const defaultData = useMemo(
|
|
1478
|
-
() => ({
|
|
1479
|
-
...mapLegalEntityToBusinessDetailsSchema(legalEntityResponse, {}, isExperimentEnabled),
|
|
1480
|
-
...documents
|
|
1481
|
-
}),
|
|
1482
|
-
[legalEntityResponse, documents, isExperimentEnabled]
|
|
1483
|
-
);
|
|
1484
|
-
const buildFieldValidations = useCallback(
|
|
1485
|
-
(data) => {
|
|
1486
|
-
const taxInfo = data?.basicInformation?.taxInformation ?? data?.additionalInformation?.taxInformation;
|
|
1487
|
-
const taxIdType = taxInfo?.length ? taxInfo.find((taxId) => taxId.country === country)?.type : void 0;
|
|
1488
|
-
const regNumberType = data?.basicInformation?.registrationNumberType ?? data?.additionalInformation?.registrationNumberType;
|
|
1489
|
-
return {
|
|
1490
|
-
basicInformation: basicInformationValidators({
|
|
1491
|
-
country,
|
|
1492
|
-
state: data?.basicInformation?.stateOrProvince,
|
|
1493
|
-
companyType: data?.companyStructure?.entityType,
|
|
1494
|
-
taxIdNumberType: taxIdType,
|
|
1495
|
-
registrationNumberType: regNumberType,
|
|
1496
|
-
isExperimentEnabled
|
|
1497
|
-
}),
|
|
1498
|
-
businessSelection: businessSelectionValidators(),
|
|
1499
|
-
companyStructure: CompanyStructureValidation,
|
|
1500
|
-
additionalInformation: additionalInformationValidators({
|
|
1501
|
-
country,
|
|
1502
|
-
taxIdNumberType: taxIdType,
|
|
1503
|
-
companyType: data?.companyStructure?.entityType,
|
|
1504
|
-
registrationNumberType: regNumberType,
|
|
1505
|
-
vatNumberType: data?.additionalInformation?.vatNumberType,
|
|
1506
|
-
isExperimentEnabled
|
|
1507
|
-
}),
|
|
1508
|
-
financialInformation: financialInfoValidationWithEmployeesRules
|
|
1509
|
-
};
|
|
1510
|
-
},
|
|
1511
|
-
[country, isExperimentEnabled]
|
|
1512
|
-
);
|
|
1513
|
-
const multiForm = useMultiForm({
|
|
1514
|
-
defaultData,
|
|
1515
|
-
allFields: derivedProps?.allFields,
|
|
1516
|
-
requiredFields: derivedProps?.requiredFields,
|
|
1517
|
-
optionalFields: derivedProps?.optionalFields,
|
|
1518
|
-
obscuredFields: derivedProps?.obscuredFields,
|
|
1519
|
-
trustedFields: derivedProps?.trustedFields,
|
|
1520
|
-
rules: buildFieldValidations
|
|
1521
|
-
});
|
|
1522
|
-
const isTinMatched = tinMatched.value;
|
|
1523
|
-
const customRules = useMemo(
|
|
1524
|
-
() => rules({
|
|
1525
|
-
data: multiForm.data,
|
|
1526
|
-
country,
|
|
1527
|
-
taskType,
|
|
1528
|
-
isExperimentEnabled,
|
|
1529
|
-
accountHolder,
|
|
1530
|
-
tinMatched: isTinMatched,
|
|
1531
|
-
rootLegalEntity: legalEntityResponse
|
|
1532
|
-
}),
|
|
1533
|
-
[
|
|
1534
|
-
multiForm.data,
|
|
1535
|
-
country,
|
|
1536
|
-
taskType,
|
|
1537
|
-
isExperimentEnabled,
|
|
1538
|
-
accountHolder,
|
|
1539
|
-
isTinMatched,
|
|
1540
|
-
legalEntityResponse
|
|
1541
|
-
]
|
|
1542
|
-
);
|
|
1543
|
-
useEffect(() => {
|
|
1544
|
-
const props = getPropsFromConfigurations({
|
|
1545
|
-
scenarioConfiguration: fieldConfigurations,
|
|
1546
|
-
forms: defaultForms,
|
|
1547
|
-
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
1548
|
-
dataMissingErrors: problems?.missingData ?? [],
|
|
1549
|
-
fieldsWithExistingData: getFieldsWithExistingData(
|
|
1550
|
-
legalEntityResponse,
|
|
1551
|
-
businessDetailsApiKeyMapping,
|
|
1552
|
-
businessDetailsDocumentMapping
|
|
1553
|
-
),
|
|
1554
|
-
customRules,
|
|
1555
|
-
legalEntityType: legalEntityResponse?.type,
|
|
1556
|
-
legalEntityTrustedFields: trustedFields
|
|
1557
|
-
});
|
|
1558
|
-
setDerivedProps(props);
|
|
1559
|
-
}, [
|
|
1560
|
-
customRules,
|
|
1561
|
-
defaultForms,
|
|
1562
|
-
fieldConfigurations,
|
|
1563
|
-
legalEntityResponse,
|
|
1564
|
-
problems?.missingData,
|
|
1565
|
-
problems?.remediationActions,
|
|
1566
|
-
trustedFields
|
|
1567
|
-
]);
|
|
1568
|
-
const [prevCountry, setPrevCountry] = useState(multiForm.data.basicInformation?.country);
|
|
1569
|
-
if (multiForm.data.basicInformation?.country && prevCountry !== multiForm.data.basicInformation?.country) {
|
|
1570
|
-
setCountry(multiForm.data?.basicInformation?.country);
|
|
1571
|
-
setPrevCountry(multiForm.data.basicInformation?.country);
|
|
1572
|
-
setTrustedFields(void 0);
|
|
1573
|
-
verifiedBusiness.value = void 0;
|
|
1574
|
-
tinMatched.value = void 0;
|
|
1575
|
-
businessMismatchModalOpen.value = false;
|
|
1576
|
-
}
|
|
1577
|
-
const [forms, setForms] = useState(
|
|
1578
|
-
buildRequiredForms({
|
|
1579
|
-
config: {
|
|
1580
|
-
country,
|
|
1581
|
-
forms: defaultForms,
|
|
1582
|
-
requiredFields: derivedProps?.requiredFields,
|
|
1583
|
-
optionalFields: derivedProps?.optionalFields,
|
|
1584
|
-
isValid: multiForm.isValid ?? {},
|
|
1585
|
-
problems
|
|
1586
|
-
},
|
|
1587
|
-
options: {
|
|
1588
|
-
hasNoSearchResults: false,
|
|
1589
|
-
verifiedBusiness: verifiedBusiness.value
|
|
1590
|
-
}
|
|
1591
|
-
})
|
|
1592
|
-
);
|
|
1593
|
-
const updateForms = useCallback(
|
|
1594
|
-
({ searchResults }) => {
|
|
1595
|
-
const updatedForms = buildRequiredForms({
|
|
1596
|
-
config: {
|
|
1597
|
-
country,
|
|
1598
|
-
forms: defaultForms,
|
|
1599
|
-
requiredFields: derivedProps?.requiredFields,
|
|
1600
|
-
optionalFields: derivedProps?.optionalFields,
|
|
1601
|
-
isValid: multiForm.isValid ?? {},
|
|
1602
|
-
problems
|
|
1603
|
-
},
|
|
1604
|
-
options: {
|
|
1605
|
-
hasNoSearchResults: searchResults && !searchResults.length,
|
|
1606
|
-
verifiedBusiness: verifiedBusiness.value
|
|
1607
|
-
}
|
|
1608
|
-
});
|
|
1609
|
-
setForms(updatedForms);
|
|
1610
|
-
return updatedForms;
|
|
1611
|
-
},
|
|
1612
|
-
[
|
|
1613
|
-
country,
|
|
1614
|
-
defaultForms,
|
|
1615
|
-
derivedProps?.optionalFields,
|
|
1616
|
-
derivedProps?.requiredFields,
|
|
1617
|
-
multiForm.isValid,
|
|
1618
|
-
problems
|
|
1619
|
-
]
|
|
1620
|
-
);
|
|
1621
|
-
const summaryData = useMemo(
|
|
1622
|
-
() => formatDataForSummary(multiForm.data, forms, i18n, isExperimentEnabled),
|
|
1623
|
-
[multiForm.data, forms, i18n, isExperimentEnabled]
|
|
1624
|
-
);
|
|
1625
|
-
const associatedLeTrackingParams = useMemo(
|
|
1626
|
-
() => getAssociatedLeAnalyticsPayload({
|
|
1627
|
-
associatedLegalEntity: associatedLegalArrangement
|
|
1628
|
-
}),
|
|
1629
|
-
[associatedLegalArrangement]
|
|
1630
|
-
);
|
|
1631
|
-
const handleTrackNavigation = useCallback(
|
|
1632
|
-
(props) => {
|
|
1633
|
-
trackNavigation({
|
|
1634
|
-
...props,
|
|
1635
|
-
additionalTrackingParams: associatedLeTrackingParams
|
|
1636
|
-
});
|
|
1637
|
-
},
|
|
1638
|
-
[associatedLeTrackingParams]
|
|
1639
|
-
);
|
|
1640
|
-
const submitTask = useCallback(() => {
|
|
1641
|
-
setAccountHolder(accountHolder);
|
|
1642
|
-
return submit({
|
|
1643
|
-
additionalTrackingParams: associatedLeTrackingParams,
|
|
1644
|
-
data: multiForm.data,
|
|
1645
|
-
legalEntityResponse,
|
|
1646
|
-
associatedLegalArrangement,
|
|
1647
|
-
nestedLegalEntity,
|
|
1648
|
-
nestedLegalEntityDetails,
|
|
1649
|
-
problems,
|
|
1650
|
-
taskType: taskType ?? TaskTypes.BUSINESS_DETAILS,
|
|
1651
|
-
accountHolder: accountHolder ?? "theCompanyIWorkFor",
|
|
1652
|
-
forms,
|
|
1653
|
-
documentUtils,
|
|
1654
|
-
i18n,
|
|
1655
|
-
showToast,
|
|
1656
|
-
setLoadingStatus,
|
|
1657
|
-
setProblems,
|
|
1658
|
-
handleUpdateLegalEntity: updateLegalEntity,
|
|
1659
|
-
createLegalEntity,
|
|
1660
|
-
onExternalSubmit,
|
|
1661
|
-
isExperimentEnabled,
|
|
1662
|
-
userEvents
|
|
1663
|
-
});
|
|
1664
|
-
}, [
|
|
1665
|
-
setAccountHolder,
|
|
1666
|
-
accountHolder,
|
|
1667
|
-
associatedLeTrackingParams,
|
|
1668
|
-
multiForm.data,
|
|
1669
|
-
legalEntityResponse,
|
|
1670
|
-
associatedLegalArrangement,
|
|
1671
|
-
nestedLegalEntity,
|
|
1672
|
-
nestedLegalEntityDetails,
|
|
1673
|
-
problems,
|
|
1674
|
-
taskType,
|
|
1675
|
-
forms,
|
|
1676
|
-
documentUtils,
|
|
1677
|
-
i18n,
|
|
1678
|
-
showToast,
|
|
1679
|
-
updateLegalEntity,
|
|
1680
|
-
createLegalEntity,
|
|
1681
|
-
onExternalSubmit,
|
|
1682
|
-
isExperimentEnabled,
|
|
1683
|
-
userEvents
|
|
1684
|
-
]);
|
|
1685
|
-
const {
|
|
1686
|
-
handleNextClick,
|
|
1687
|
-
handleBackClick,
|
|
1688
|
-
activeForm,
|
|
1689
|
-
shouldValidate,
|
|
1690
|
-
gotoFormByFormIndex,
|
|
1691
|
-
steps
|
|
1692
|
-
} = useFormComposer({
|
|
1693
|
-
problems,
|
|
1694
|
-
navigationTrackingParams: associatedLeTrackingParams,
|
|
1695
|
-
forms,
|
|
1696
|
-
onSubmit: submitTask,
|
|
1697
|
-
triggerValidation: multiForm.triggerValidation
|
|
1698
|
-
});
|
|
1699
|
-
const handleBusinessMismatchContinue = () => {
|
|
1700
|
-
setTrustedFields([]);
|
|
1701
|
-
businessMismatchModalOpen.value = false;
|
|
1702
|
-
handleNextClick();
|
|
1703
|
-
};
|
|
1704
|
-
const handleBusinessMismatchCancel = () => {
|
|
1705
|
-
handleBackClick?.();
|
|
1706
|
-
businessMismatchModalOpen.value = false;
|
|
1707
|
-
tinMatched.value = false;
|
|
1708
|
-
};
|
|
1709
|
-
const companySearchQueryInput = {
|
|
1710
|
-
name: multiForm.data?.basicInformation?.legalCompanyName ?? "",
|
|
1711
|
-
country: multiForm.data?.basicInformation?.country,
|
|
1712
|
-
state: multiForm.data?.basicInformation?.stateOrProvince,
|
|
1713
|
-
registrationNumber: multiForm.data?.basicInformation?.registrationNumber
|
|
1714
|
-
};
|
|
1715
|
-
const verifyTinQueryInput = {
|
|
1716
|
-
name: multiForm.data.basicInformation?.legalCompanyName ?? "",
|
|
1717
|
-
tin: multiForm.data?.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number ?? ""
|
|
1718
|
-
};
|
|
1719
|
-
const { data: companySearchResponse } = useCompanySearch(companySearchQueryInput, {
|
|
1720
|
-
enabled: false
|
|
1721
|
-
});
|
|
1722
|
-
useVerifyTin(verifyTinQueryInput, { enabled: false });
|
|
1723
|
-
const attemptBusinessSearch = async () => {
|
|
1724
|
-
try {
|
|
1725
|
-
setLoadingStatus("loading");
|
|
1726
|
-
const searchResponse = await queryClient.fetchQuery({
|
|
1727
|
-
queryKey: ["companySearch", companySearchQueryInput]
|
|
1728
|
-
});
|
|
1729
|
-
const currentForms = updateForms({ searchResults: searchResponse.results });
|
|
1730
|
-
if (!searchResponse.results.length) {
|
|
1731
|
-
const tinVerificationResponse = await queryClient.fetchQuery({
|
|
1732
|
-
queryKey: ["verifyTin", verifyTinQueryInput]
|
|
1733
|
-
});
|
|
1734
|
-
if (!tinVerificationResponse?.matched) {
|
|
1735
|
-
businessMismatchModalOpen.value = true;
|
|
1736
|
-
tinMatched.value = false;
|
|
1737
|
-
return setLoadingStatus("success");
|
|
1738
|
-
} else {
|
|
1739
|
-
tinMatched.value = true;
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
setLoadingStatus("success");
|
|
1743
|
-
return handleNextClick(currentForms);
|
|
1744
|
-
} catch {
|
|
1745
|
-
setLoadingStatus("error");
|
|
1746
|
-
}
|
|
1747
|
-
};
|
|
1748
|
-
const overrideNextClick = async () => {
|
|
1749
|
-
if (!activeForm.isValid) return handleNextClick();
|
|
1750
|
-
if (!COUNTRIES_USING_COMPANY_SEARCH.includes(country)) {
|
|
1751
|
-
return handleNextClick();
|
|
1752
|
-
}
|
|
1753
|
-
switch (activeForm.formId) {
|
|
1754
|
-
case "basicInformation": {
|
|
1755
|
-
return await attemptBusinessSearch();
|
|
1756
|
-
}
|
|
1757
|
-
case "businessSelection": {
|
|
1758
|
-
const currentForms = updateForms({
|
|
1759
|
-
searchResults: companySearchResponse?.results
|
|
1760
|
-
});
|
|
1761
|
-
return handleNextClick(currentForms);
|
|
1762
|
-
}
|
|
1763
|
-
default:
|
|
1764
|
-
return handleNextClick();
|
|
1765
|
-
}
|
|
1766
|
-
};
|
|
1767
|
-
useEffect(() => {
|
|
1768
|
-
updateForms({
|
|
1769
|
-
searchResults: companySearchResponse?.results
|
|
1770
|
-
});
|
|
1771
|
-
}, [updateForms, companySearchResponse?.results]);
|
|
1772
|
-
return /* @__PURE__ */ jsx(FormContextProvider, { form: multiForm, children: /* @__PURE__ */ jsxs(
|
|
1773
|
-
FormFlow,
|
|
1774
|
-
{
|
|
1775
|
-
summary: {
|
|
1776
|
-
data: summaryData,
|
|
1777
|
-
omitted: {
|
|
1778
|
-
keys: ["operationalAddressIsSame"],
|
|
1779
|
-
forms: ["businessSelection"]
|
|
1780
|
-
},
|
|
1781
|
-
problems,
|
|
1782
|
-
trackNavigation: handleTrackNavigation,
|
|
1783
|
-
showLegalCaption: true
|
|
1784
|
-
},
|
|
1785
|
-
asModal,
|
|
1786
|
-
currentStep: steps.current,
|
|
1787
|
-
totalSteps: steps.total,
|
|
1788
|
-
forms,
|
|
1789
|
-
disableNextButton: activeForm.formId === "businessSelection",
|
|
1790
|
-
gotoFormByFormIndex,
|
|
1791
|
-
handleNextClick: overrideNextClick,
|
|
1792
|
-
handleBackClick,
|
|
1793
|
-
handleCancelClick: handleHomeClick,
|
|
1794
|
-
loadingStatus,
|
|
1795
|
-
children: [
|
|
1796
|
-
/* @__PURE__ */ jsx(
|
|
1797
|
-
BusinessDetailsMultiform,
|
|
1798
|
-
{
|
|
1799
|
-
taskType,
|
|
1800
|
-
activeForm,
|
|
1801
|
-
country,
|
|
1802
|
-
shouldValidate,
|
|
1803
|
-
problems,
|
|
1804
|
-
handleNextClick: overrideNextClick,
|
|
1805
|
-
handleBackClick,
|
|
1806
|
-
setLoadingStatus
|
|
1807
|
-
}
|
|
1808
|
-
),
|
|
1809
|
-
businessMismatchModalOpen.value && /* @__PURE__ */ jsx(
|
|
1810
|
-
Confirm,
|
|
1811
|
-
{
|
|
1812
|
-
title: i18n.get("businessSelection__tinVerificationFailureModalHeader"),
|
|
1813
|
-
description: i18n.get("businessSelection__tinVerificationFailureModalContent"),
|
|
1814
|
-
cancelText: i18n.get("businessSelection__tinVerificationFailureModalSecondaryButton"),
|
|
1815
|
-
confirmText: i18n.get("businessSelection__tinVerificationFailureModalPrimaryButton"),
|
|
1816
|
-
onCancel: handleBusinessMismatchCancel,
|
|
1817
|
-
onConfirm: handleBusinessMismatchContinue
|
|
1818
|
-
}
|
|
1819
|
-
)
|
|
1820
|
-
]
|
|
1821
|
-
}
|
|
1822
|
-
) });
|
|
1823
|
-
}
|
|
1824
|
-
const RootBusinessDetailsPage = ({
|
|
1825
|
-
isTargetLegalEntityType = false,
|
|
1826
|
-
onSubmit,
|
|
1827
|
-
handleHomeClick
|
|
1828
|
-
}) => {
|
|
1829
|
-
const { i18n } = useTranslation();
|
|
1830
|
-
const { accountHolder } = useAccountHolder();
|
|
1831
|
-
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
1832
|
-
const capabilityProblems = useCapabilityProblems();
|
|
1833
|
-
const { isExperimentEnabled } = useExperimentsContext();
|
|
1834
|
-
addResourceBundles(i18n, i18n.language, [
|
|
1835
|
-
{ ns: "business", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/da-DK.json": () => import("./da-DK-CeNMXUfE.js"), "../language/de-DE.json": () => import("./de-DE-JI-7mvxy.js"), "../language/en-US.json": () => import("./en-US-DHq7VYFs.js"), "../language/es-ES.json": () => import("./es-ES-DOVPTeyf.js"), "../language/fi-FI.json": () => import("./fi-FI-D522KHGk.js"), "../language/fr-FR.json": () => import("./fr-FR-DInQKkTd.js"), "../language/it-IT.json": () => import("./it-IT-CjEYONJg.js"), "../language/nl-NL.json": () => import("./nl-NL-Zcq0bXd-.js"), "../language/no-NO.json": () => import("./no-NO-BxReX6oF.js"), "../language/pt-PT.json": () => import("./pt-PT-N0njcfLO.js"), "../language/sl-SI.json": () => import("./sl-SI-MZoDApq9.js"), "../language/sv-SE.json": () => import("./sv-SE-DCFSf4Oj.js") }), `../language/${i18n.language}.json`, 3) }
|
|
1836
|
-
]);
|
|
1837
|
-
if (!rootLe) {
|
|
1838
|
-
return /* @__PURE__ */ jsx(Loader, {});
|
|
1839
|
-
}
|
|
1840
|
-
const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(rootLe);
|
|
1841
|
-
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLe.id) : void 0;
|
|
1842
|
-
return isExperimentEnabled("EnableBusinessDetailsMultiForm") ? /* @__PURE__ */ jsx(
|
|
1843
|
-
BusinessDetailsMultiformDropin,
|
|
1844
|
-
{
|
|
1845
|
-
taskType: TaskTypes.BUSINESS_DETAILS,
|
|
1846
|
-
taskName: hasTrust ? "businessTrusteeDetails" : "businessDetails",
|
|
1847
|
-
legalEntityResponse: rootLe,
|
|
1848
|
-
problems,
|
|
1849
|
-
country: getLegalEntityCountry(rootLe),
|
|
1850
|
-
isTargetLegalEntityType,
|
|
1851
|
-
onSubmit,
|
|
1852
|
-
handleHomeClick
|
|
1853
|
-
}
|
|
1854
|
-
) : /* @__PURE__ */ jsx(
|
|
1855
|
-
BusinessDetailsDropin,
|
|
1856
|
-
{
|
|
1857
|
-
taskType: TaskTypes.BUSINESS_DETAILS,
|
|
1858
|
-
taskName: hasTrust ? "businessTrusteeDetails" : "businessDetails",
|
|
1859
|
-
legalEntityResponse: rootLe,
|
|
1860
|
-
problems,
|
|
1861
|
-
country: getLegalEntityCountry(rootLe),
|
|
1862
|
-
isTargetLegalEntityType,
|
|
1863
|
-
onSubmit,
|
|
1864
|
-
handleHomeClick
|
|
1865
|
-
}
|
|
1866
|
-
);
|
|
1867
|
-
};
|
|
1868
|
-
export {
|
|
1869
|
-
RootBusinessDetailsPage
|
|
1870
|
-
};
|