@adyen/kyc-components 3.83.3 → 3.84.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-C3hVh9N7.js → AcceptTermsOfServiceComponent-CBGVGhCW.js} +21 -20
- package/dist/{AccountSetupRejected-CeyJLT4E.js → AccountSetupRejected-iWgw_f_y.js} +6 -6
- package/dist/{Address-BGfOIouJ.js → Address-t4VOfLT-.js} +8 -8
- package/dist/{Alert-DHQk23dC.js → Alert-BeizfGIR.js} +2 -2
- package/dist/{Avatar-CS2stI4H.js → Avatar-DuU-qQK8.js} +2 -2
- package/dist/{BusinessDetailsDropin-mNjPvsY9.js → BusinessDetailsDropin-DvcYg_X0.js} +301 -158
- package/dist/BusinessFinancingComponent-CtKIHS5N.js +54 -0
- package/dist/{BusinessFinancingDropin-8rVi3mz3.js → BusinessFinancingDropin-lPPamXGa.js} +113 -96
- package/dist/BusinessFinancingPage-Di-Nv2Ml.js +46 -0
- package/dist/{BusinessTypeSelectionPage-CJ-o8Yqg.js → BusinessTypeSelectionPage-BXdmcFx7.js} +12 -12
- package/dist/{Card-Cl8VBX_1.js → Card-B1eYN1iZ.js} +6 -4
- package/dist/{CountryField-BiXkT-tj.js → CountryField-DePvueIq.js} +268 -74
- package/dist/CreateIndividualComponent-BF8U9HmX.js +71 -0
- package/dist/CreateTransferInstrumentComponent-Rd6n91ch.js +66 -0
- package/dist/{Currency-Dou9MT1v.js → Currency-CCNB-Owq.js} +6 -6
- package/dist/{CustomerSupport-CcHrpuRI.js → CustomerSupport-dzWyAxLD.js} +10 -10
- package/dist/{DebugModal-CTrUKrb2.js → DebugModal-Db4z3HFJ.js} +7 -7
- package/dist/{DecisionMakerDetailsPage-DY0LPeya.js → DecisionMakerDetailsPage-CQ5uaVPM.js} +16 -10
- package/dist/DecisionMakers-BjZNaC3U.js +797 -0
- package/dist/{Dropzone-CTi4TC83.js → Dropzone-DS3DzY-A.js} +4 -4
- package/dist/{EmbeddedStatus-BY8fNfqA.js → EmbeddedStatus-COuKpXSJ.js} +15 -16
- package/dist/{EndStateLayout-CtTL_7_4.js → EndStateLayout-DHbUjBQL.js} +2 -2
- package/dist/{FormNavigation-DJBG1CCX.js → FormNavigation-C8985odz.js} +3 -3
- package/dist/{IndividualOnfidoDropin-Cd2P_puU.js → IndividualOnfidoDropin-BnPU46GN.js} +225 -393
- package/dist/{InputDate-BLfb-amv.js → InputDate-BqYvvnqX.js} +2 -2
- package/dist/{InputText-sJlljYSI.js → InputText-rkMNHFYM.js} +4 -7
- package/dist/{Introduction-C7BYI3V1.js → Introduction-BsZibeHx.js} +4 -5
- package/dist/{JpAddress-D0MtPVgI.js → JpAddress-7_Wvn6w-.js} +27 -10
- package/dist/{LegalRepresentativeDetailsPage-B70wj66T.js → LegalRepresentativeDetailsPage-BLoNELP2.js} +5 -6
- package/dist/ManageIndividualComponent-DuMx-hok.js +46 -0
- package/dist/ManageTermsOfServiceComponent-BPJJxecg.js +58 -0
- package/dist/{ManageTransferInstrumentComponent-Dvh31wEf.js → ManageTransferInstrumentComponent-D13HhKpC.js} +17 -17
- package/dist/{MaskedInput-GOLjL1Ek.js → MaskedInput-DK17jkn8.js} +6 -6
- package/dist/{Modal-BTqOwYJg.js → Modal-CeWqn3jD.js} +2 -2
- package/dist/{OnboardingDropinComponent-DCqansoJ.js → OnboardingDropinComponent-BlMzaK2Z.js} +745 -444
- package/dist/{PayoutDetailsDropin-C9nLO9zs.js → PayoutDetailsDropin-CxXIfBo2.js} +36 -39
- package/dist/{RadioGroup-wSE3YT0H.js → RadioGroup-CDIi5JOR.js} +7 -10
- package/dist/{RegistrationAddress-Ck3nfynp.js → RegistrationAddress-coO57t4c.js} +16 -22
- package/dist/{Review-uYeavIQG.js → Review-BFb6Ykw1.js} +8 -8
- package/dist/{RootBusinessDetailsPage-fg7aqice.js → RootBusinessDetailsPage-BsbiSuH4.js} +143 -81
- package/dist/{RootIndividualDetailsPage-BLZ2WFRD.js → RootIndividualDetailsPage-BEe-U1FO.js} +5 -6
- package/dist/{SignPCIComponent-BbIzBRVs.js → SignPCIComponent-D5KQ4t2I.js} +10 -11
- package/dist/{SingpassSelection-Dq5HgINi.js → SingpassSelection-wIFBjJkx.js} +10 -10
- package/dist/SoleProprietorshipPage-BKxqOwer.js +49 -0
- package/dist/{SourceOfFundsPage-ByR78Odk.js → SourceOfFundsPage-B0js4JTw.js} +30 -57
- package/dist/{StepProgressIndicator-DMgLRY9r.js → StepProgressIndicator-axxG6zQK.js} +2 -2
- package/dist/{StoreProvider-DwPgB8ia.js → StoreProvider-BulXd4Hf.js} +659 -199
- package/dist/{TaskItemStatus-CVCNELof.js → TaskItemStatus-DykYxx-L.js} +3 -14
- package/dist/{TaxInformationField-B2hH-21-.js → TaxInformationField-vBwS4Gdq.js} +20 -19
- package/dist/{TaxReportingDropin-BetxF-rL.js → TaxReportingDropin-T-05itkR.js} +60 -56
- package/dist/{TileGroup-L2c_L0vO.js → TileGroup-CWIb67Fa.js} +4 -4
- package/dist/{TrustDetailsPage-Dw45u8py.js → TrustDetailsPage-XpVwVUFb.js} +51 -44
- package/dist/TrustMemberCompanyPage-CPZ8ZzqF.js +60 -0
- package/dist/TrustMemberIndividualPage-um9OLnSy.js +66 -0
- package/dist/{UnincorporatedPartnershipIndividualPage-Bwfoygy7.js → UnincorporatedPartnershipIndividualPage-CvQOUpDy.js} +5 -6
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-gvm4YkhM.js → UnincorporatedPartnershipMemberCompanyPage-BPEUAWOw.js} +6 -7
- package/dist/{ViewVerificationStatusComponent-9ufxQVRy.js → ViewVerificationStatusComponent-aOEFCjUd.js} +19 -13
- package/dist/adyen-business-financing.js +4 -5
- package/dist/adyen-individual-configuration.js +4 -5
- package/dist/adyen-individual-status.js +4 -5
- package/dist/adyen-kyc-components.js +39 -29
- package/dist/adyen-onboarding.js +4 -5
- package/dist/adyen-terms-of-service-management.js +4 -5
- package/dist/adyen-terms-of-service-status.js +4 -5
- package/dist/adyen-transfer-instrument-configuration.js +4 -5
- package/dist/adyen-transfer-instrument-management.js +4 -5
- package/dist/adyen-verification-status.js +4 -5
- package/dist/{analytics-DAPJVGPZ.js → analytics-_iYLDAnN.js} +2 -2
- package/dist/{bafinUtils-BXU3g8Pd.js → bafinUtils-DOsm2O1i.js} +7 -49
- package/dist/{bg-BG-B0-ZcjR0.js → bg-BG-B37z4fjM.js} +7 -4
- package/dist/bg-BG-B8A8D_hg.js +47 -0
- package/dist/bg-BG-BvLl6gaB.js +13 -0
- package/dist/bg-BG-CC5Y7izP.js +13 -0
- package/dist/bg-BG-CepHap8j.js +68 -0
- package/dist/bg-BG-Coja327N.js +24 -0
- package/dist/{bg-BG-GVhnrvRn.js → bg-BG-Cs_1PU3v.js} +5 -1
- package/dist/bg-BG-D5C7Gq2o.js +35 -0
- package/dist/bg-BG-DPkib_ah.js +13 -0
- package/dist/bg-BG-DcxZ1tmt.js +32 -0
- package/dist/{bg-BG-Bot37sd7.js → bg-BG-Dp4LxSP7.js} +2 -1
- package/dist/bg-BG-er0t4jTs.js +27 -0
- package/dist/{bg-BG-fgdGvtqa.js → bg-BG-z3gZQvGq.js} +6 -1
- package/dist/{cs-CZ-Dk1ePReM.js → cs-CZ-2D8o2KB0.js} +7 -4
- package/dist/cs-CZ-B0dmNTJm.js +13 -0
- package/dist/{cs-CZ-CVpbQMSY.js → cs-CZ-B2WAqmaW.js} +9 -1
- package/dist/cs-CZ-B7A0WNBx.js +47 -0
- package/dist/cs-CZ-BP7niQM9.js +68 -0
- package/dist/{cs-CZ-DwiXbzIv.js → cs-CZ-C5lyVYlZ.js} +6 -1
- package/dist/cs-CZ-C9FuJCsg.js +35 -0
- package/dist/cs-CZ-CQNBae2b.js +27 -0
- package/dist/{cs-CZ-BEynVkgn.js → cs-CZ-CyLqoG1j.js} +2 -1
- package/dist/cs-CZ-D4Hg-t16.js +32 -0
- package/dist/cs-CZ-DXtJsBPz.js +24 -0
- package/dist/cs-CZ-E0sZTsrs.js +13 -0
- package/dist/cs-CZ-hT5w5It6.js +13 -0
- package/dist/da-DK-9M2wm0kt.js +47 -0
- package/dist/da-DK-BeSNTO9k.js +35 -0
- package/dist/{da-DK-Y6PJ69rt.js → da-DK-CYl2jko-.js} +6 -1
- package/dist/{da-DK-DStNe471.js → da-DK-CplImqOX.js} +7 -4
- package/dist/{da-DK-DLcvdXDS.js → da-DK-D-eeokQn.js} +9 -1
- package/dist/da-DK-DCJhV2qS.js +32 -0
- package/dist/da-DK-DWA8uOd8.js +24 -0
- package/dist/{da-DK-DmL_Ja3L.js → da-DK-DYpfNZdP.js} +2 -1
- package/dist/da-DK-DZwlENGe.js +13 -0
- package/dist/da-DK-Dc0QYG8m.js +68 -0
- package/dist/da-DK-HNKnBXb5.js +13 -0
- package/dist/da-DK-gnPgzwrG.js +27 -0
- package/dist/da-DK-quX5LuPc.js +13 -0
- package/dist/de-DE-1wVDROIy.js +13 -0
- package/dist/de-DE-B2QaSUv3.js +13 -0
- package/dist/{de-DE-BahIk-1-.js → de-DE-BXt1K0Tr.js} +2 -1
- package/dist/de-DE-CLuLBUrb.js +47 -0
- package/dist/de-DE-D3lLuF8z.js +27 -0
- package/dist/de-DE-D50lGOJE.js +24 -0
- package/dist/{de-DE-CGoBPCPv.js → de-DE-DNOzlYEY.js} +7 -4
- package/dist/de-DE-DXR3EpEc.js +13 -0
- package/dist/{de-DE-CKZrABo7.js → de-DE-Dcs3W1fT.js} +9 -1
- package/dist/{de-DE-xdQMmrrt.js → de-DE-DlUEkik0.js} +6 -1
- package/dist/de-DE-Dp-2BAWQ.js +35 -0
- package/dist/de-DE-DwOQKCuU.js +32 -0
- package/dist/de-DE-Dz2OsS1F.js +68 -0
- package/dist/el-GR-5WvkRyW5.js +35 -0
- package/dist/{el-GR-TZUpX1j3.js → el-GR-B90M6tcZ.js} +2 -1
- package/dist/el-GR-BHG69mXl.js +68 -0
- package/dist/el-GR-BKT02owO.js +13 -0
- package/dist/el-GR-BN7mIwED.js +47 -0
- package/dist/el-GR-C2BsVqjY.js +13 -0
- package/dist/el-GR-CKHMsdx2.js +24 -0
- package/dist/{el-GR-B69zcWyB.js → el-GR-DAFcmbwE.js} +7 -4
- package/dist/{el-GR-C_y2406P.js → el-GR-DBum-QDu.js} +9 -1
- package/dist/{el-GR-DR_5DKI1.js → el-GR-DZ8GheJK.js} +6 -1
- package/dist/el-GR-DtFE64KX.js +13 -0
- package/dist/el-GR-Hk4NbZSY.js +32 -0
- package/dist/el-GR-XRux2Wpv.js +27 -0
- package/dist/en-US-B96dpVon.js +27 -0
- package/dist/en-US-BEgdeTV4.js +13 -0
- package/dist/en-US-BQZhzROc.js +32 -0
- package/dist/en-US-BWtUZoXL.js +47 -0
- package/dist/{en-US-DI1dH0ZB.js → en-US-CEc3gxgl.js} +4 -1
- 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-nL0-_PSp.js → en-US-DdeSoN_2.js} +2 -1
- package/dist/{en-US-BbAzROHT.js → en-US-Dg505Oh3.js} +2 -1
- package/dist/{en-US-BQpgt41j.js → en-US-xHi63gSK.js} +6 -1
- package/dist/es-ES-BI_jdT67.js +68 -0
- package/dist/es-ES-BOoPqnPI.js +32 -0
- package/dist/{es-ES-CKMfS8Yy.js → es-ES-BPI-KmDv.js} +7 -4
- package/dist/{es-ES-BPDeEYGv.js → es-ES-BhNhIf08.js} +2 -1
- package/dist/{es-ES-DdT2wJTP.js → es-ES-C7XjLOHi.js} +9 -1
- package/dist/es-ES-C9oDOVSQ.js +35 -0
- package/dist/es-ES-CXDJLKAI.js +27 -0
- package/dist/{es-ES-keMO-LlU.js → es-ES-D0c0MoqK.js} +6 -1
- package/dist/es-ES-DCkqCwAK.js +13 -0
- package/dist/es-ES-DF_L5EDd.js +24 -0
- package/dist/es-ES-Dc4Z3rGg.js +13 -0
- package/dist/es-ES-i_Fk7A9r.js +47 -0
- package/dist/es-ES-yMXcOjDL.js +13 -0
- package/dist/et-EE--cL_YqWe.js +27 -0
- package/dist/et-EE-B1KmQWmI.js +35 -0
- package/dist/{et-EE-DftDBzjA.js → et-EE-BMgFCxds.js} +2 -1
- package/dist/{et-EE-Y890kc89.js → et-EE-BUG05EDz.js} +9 -1
- package/dist/et-EE-Be__VK7Y.js +32 -0
- package/dist/et-EE-BuBiNLCi.js +24 -0
- package/dist/{et-EE-CLuAFAri.js → et-EE-C4Fwyr7-.js} +6 -1
- package/dist/et-EE-C8RrUpLm.js +13 -0
- package/dist/{et-EE-Dw-aPF7J.js → et-EE-CMXpGRz8.js} +7 -4
- package/dist/et-EE-C_PZO2aI.js +68 -0
- package/dist/et-EE-DKJ8Kn8O.js +47 -0
- package/dist/et-EE-DbRebqzm.js +13 -0
- package/dist/et-EE-sGRn_-QJ.js +13 -0
- package/dist/fi-FI-BQxUuIP0.js +13 -0
- package/dist/fi-FI-BXJbm9sZ.js +13 -0
- package/dist/{fi-FI-REYOX46I.js → fi-FI-C5SwgUIc.js} +7 -4
- package/dist/{fi-FI-DKxJM0k6.js → fi-FI-CEzjKgiz.js} +9 -1
- package/dist/fi-FI-CF4-CyIe.js +47 -0
- package/dist/fi-FI-DH6jpo9K.js +24 -0
- package/dist/fi-FI-DV1etLPT.js +35 -0
- package/dist/{fi-FI-CBHr-_To.js → fi-FI-bRXb-Q_i.js} +6 -1
- 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-LpkpSl5X.js → fi-FI-ysUrBilO.js} +2 -1
- package/dist/{fieldConfigurations-CouXUtn_.js → fieldConfigurations-BBmPG-CS.js} +19 -22
- package/dist/{hr-HR-CNzbyo9r.js → form-rules-DhbF2mY4.js} +3 -5
- package/dist/{fr-FR-CuSchzjE.js → fr-FR-BSvSKazD.js} +2 -1
- package/dist/fr-FR-BSynpexF.js +13 -0
- package/dist/fr-FR-BnblnBsx.js +24 -0
- package/dist/fr-FR-C4LPqbx5.js +47 -0
- package/dist/{fr-FR-D9qaP6nx.js → fr-FR-CAqqgh3X.js} +7 -4
- package/dist/fr-FR-CYZXbwc9.js +68 -0
- package/dist/fr-FR-CiwkAb3E.js +27 -0
- package/dist/{fr-FR-BxO1IR9C.js → fr-FR-DNJiLv9b.js} +9 -1
- package/dist/fr-FR-DZICoAHV.js +35 -0
- package/dist/fr-FR-DvgcaqM8.js +13 -0
- package/dist/{fr-FR-B3qQW3oG.js → fr-FR-JLPKgufm.js} +6 -1
- package/dist/fr-FR-cTKcuHqX.js +32 -0
- package/dist/fr-FR-t2k348rx.js +13 -0
- package/dist/{getName-C5JdRmWF.js → getName-N_Hu5gE7.js} +2 -2
- package/dist/{hasDataChanged-DEVHUnoc.js → hasDataChanged-C32ujCoA.js} +2 -2
- package/dist/{hr-HR-DST-QbRI.js → hr-HR-BLpGb4f2.js} +2 -1
- package/dist/hr-HR-BiZNiGG9.js +13 -0
- package/dist/hr-HR-ComCqan_.js +32 -0
- package/dist/{hr-HR-DMV2OsPs.js → hr-HR-D26Gz-HL.js} +6 -1
- package/dist/hr-HR-D5V7g9H2.js +13 -0
- package/dist/hr-HR-D9bzCN_d.js +35 -0
- package/dist/hr-HR-De5kHU8U.js +24 -0
- package/dist/hr-HR-Dlw8mrQW.js +13 -0
- package/dist/hr-HR-DtfHQVe0.js +27 -0
- package/dist/hr-HR-TslbqIeE.js +47 -0
- package/dist/{hr-HR-DghVS0jH.js → hr-HR-WMnlxMEY.js} +9 -1
- package/dist/hr-HR-bE6cvRCQ.js +68 -0
- package/dist/{hr-HR-CbxEvbrE.js → hr-HR-oTvJUvqr.js} +7 -4
- package/dist/hu-HU-6VmfqBr5.js +13 -0
- package/dist/{hu-HU-CJh8OY-w.js → hu-HU-B2nrl0pw.js} +9 -1
- package/dist/{hu-HU-CPWGnq22.js → hu-HU-BZCFneWx.js} +6 -1
- package/dist/hu-HU-BcogZby3.js +24 -0
- package/dist/hu-HU-C5p7RWWD.js +35 -0
- package/dist/{hu-HU-BgHugMwG.js → hu-HU-Ca9Hex26.js} +2 -1
- package/dist/hu-HU-CgBQ5Skc.js +47 -0
- package/dist/{hu-HU-D0C6UfXB.js → hu-HU-DA-bZKop.js} +7 -4
- package/dist/hu-HU-DG-NUDx4.js +68 -0
- package/dist/hu-HU-DLynQejq.js +13 -0
- package/dist/hu-HU-DUGz5q5D.js +32 -0
- package/dist/hu-HU-I4-KFzvz.js +27 -0
- package/dist/hu-HU-hbVM6tMS.js +13 -0
- package/dist/{iframeWidget-d6juHEyB.js → iframeWidget-iA0G4IZI.js} +4 -4
- package/dist/{isEmpty-BG-uhS0n.js → isEmpty-CD8E4UFi.js} +2 -2
- package/dist/{it-IT-vJt2CGXz.js → it-IT-BRmX2jEi.js} +9 -1
- package/dist/it-IT-BXsakLEg.js +47 -0
- package/dist/it-IT-BgdxIaNM.js +13 -0
- package/dist/it-IT-C_651bEP.js +13 -0
- package/dist/it-IT-Ckv8Ce4e.js +24 -0
- package/dist/{it-IT-Biduphjt.js → it-IT-CpKAGuyU.js} +7 -4
- 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-PJbf57vA.js +13 -0
- package/dist/{it-IT-p_DER3dq.js → it-IT-Qfzc8jnW.js} +2 -1
- package/dist/{it-IT-CRmaykgQ.js → it-IT-mScKLwBR.js} +6 -1
- package/dist/it-IT-mYyg3XGz.js +35 -0
- package/dist/{ja-JP-DT0qGp0i.js → ja-JP-7DhgV_0J.js} +5 -1
- package/dist/ja-JP-B--vgrAi.js +47 -0
- package/dist/ja-JP-BBzuYv6e.js +13 -0
- package/dist/ja-JP-BSYrPZsE.js +35 -0
- package/dist/ja-JP-BoxeBgOv.js +32 -0
- package/dist/{ja-JP-B2txEVPx.js → ja-JP-C4569I8p.js} +7 -4
- package/dist/{ja-JP-C870wgmw.js → ja-JP-CHQ64lw1.js} +2 -1
- package/dist/{ja-JP-a6UbRzaS.js → ja-JP-CvNJvxkQ.js} +22 -3
- package/dist/{ja-JP-DCOsVkrk.js → ja-JP-DyELKS9Q.js} +6 -1
- package/dist/ja-JP-FWHXsXlW.js +24 -0
- package/dist/ja-JP-ThzG9vIo.js +68 -0
- package/dist/ja-JP-bz7ekGnF.js +27 -0
- package/dist/{ja-JP-Cm2wakN6.js → ja-JP-gRRH8Eph.js} +21 -13
- package/dist/jpAddressSchema-ULGNNt5U.js +27 -0
- package/dist/{localizeDateString-2YGGL44u.js → localizeDateString-DHsCnGIt.js} +1 -1
- package/dist/{lt-LT-Dxde15Cc.js → lt-LT-0RKZeraM.js} +2 -1
- package/dist/lt-LT-57A37eCA.js +13 -0
- package/dist/{lt-LT-CrCYV_jv.js → lt-LT-BJQDUanx.js} +9 -1
- package/dist/lt-LT-BLsIcCtE.js +27 -0
- package/dist/{lt-LT-0CK0Iin7.js → lt-LT-CLPQVRpJ.js} +6 -1
- package/dist/lt-LT-C_sT0Isz.js +13 -0
- package/dist/lt-LT-Ci357QYQ.js +13 -0
- package/dist/lt-LT-D5Rhxm1h.js +32 -0
- package/dist/lt-LT-DDdq07sX.js +24 -0
- package/dist/{lt-LT-C_YMgjp9.js → lt-LT-DfJ0ojxY.js} +7 -4
- package/dist/lt-LT-Nd1uRoIj.js +68 -0
- package/dist/lt-LT-UnMr3oB3.js +47 -0
- package/dist/lt-LT-i-T_HQ42.js +35 -0
- package/dist/lv-LV-7VOOOEZ-.js +13 -0
- package/dist/{lv-LV-DDvnyHlO.js → lv-LV-Bh-WQp0K.js} +2 -1
- package/dist/lv-LV-BtX12dHJ.js +35 -0
- package/dist/lv-LV-C54zKY0H.js +47 -0
- package/dist/lv-LV-C7hMdPcY.js +27 -0
- package/dist/lv-LV-CG1zToz7.js +32 -0
- package/dist/lv-LV-CkyuY2ji.js +24 -0
- package/dist/{lv-LV-CSxppAD_.js → lv-LV-Cu-MJMVO.js} +6 -1
- package/dist/lv-LV-Cwzt1ESp.js +13 -0
- package/dist/lv-LV-DKhV24CI.js +68 -0
- package/dist/lv-LV-Dxe-A5vo.js +13 -0
- package/dist/{lv-LV-B3sT3_cw.js → lv-LV-d0ldbfMh.js} +7 -4
- package/dist/{lv-LV-CaFrxG3S.js → lv-LV-h3nTokkM.js} +9 -1
- package/dist/mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js +56 -0
- package/dist/{mapExistingFile-IowNtBa2.js → mapExistingFile-CZ8JIq0y.js} +4 -4
- package/dist/mapJpAddressSchemaToAddressLocalizations-CYDc6_WR.js +100 -0
- package/dist/mapLegalEntityToIndividualOnfidoSchema-DpDvE22C.js +203 -0
- package/dist/{mapTransferInstrumentToPayoutAccount-DtC0bw_-.js → mapTransferInstrumentToPayoutAccount-B_Z8lux3.js} +2 -2
- package/dist/nl-NL-A444CaCG.js +47 -0
- package/dist/nl-NL-Bx5p0nXL.js +24 -0
- package/dist/nl-NL-Cjlmc0Ii.js +32 -0
- package/dist/nl-NL-D0wVWeHf.js +13 -0
- package/dist/{nl-NL-Uf_myU_8.js → nl-NL-D7gBNWEY.js} +2 -1
- package/dist/{nl-NL-G1wVnmzT.js → nl-NL-DdVmtkAu.js} +7 -4
- package/dist/nl-NL-DiH4q7K-.js +13 -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/nl-NL-PUQGh3Rp.js +35 -0
- package/dist/{nl-NL-BQJjhn7U.js → nl-NL-YzDSCWLL.js} +9 -1
- package/dist/{nl-NL-RfK34nkp.js → nl-NL-pVdpCCOx.js} +6 -1
- package/dist/no-NO--OoWld_l.js +13 -0
- package/dist/no-NO-BeVzpadb.js +13 -0
- package/dist/{no-NO-CSia2Bd5.js → no-NO-Big2B13b.js} +9 -1
- package/dist/no-NO-Bs3-6MDM.js +24 -0
- package/dist/{no-NO-DZ1y_9mq.js → no-NO-C-gCYc9q.js} +2 -1
- package/dist/{no-NO-BTtAuqCb.js → no-NO-C0WUoV9N.js} +7 -4
- package/dist/no-NO-CA1aR6Wh.js +68 -0
- package/dist/{no-NO-BWzGost-.js → no-NO-CRULNwNn.js} +6 -1
- package/dist/no-NO-CY_XHrYd.js +32 -0
- package/dist/no-NO-Crlsj6HG.js +27 -0
- package/dist/no-NO-D57T2p2M.js +47 -0
- package/dist/no-NO-JHMzV-ae.js +13 -0
- package/dist/no-NO-kPnbGnBM.js +35 -0
- package/dist/pl-PL-0BphD78z.js +13 -0
- package/dist/pl-PL-B3RxZ32y.js +47 -0
- package/dist/pl-PL-BKDK0_G8.js +68 -0
- package/dist/{pl-PL--qPaNyJD.js → pl-PL-Byfw9EGz.js} +7 -4
- package/dist/pl-PL-BzhEoDb5.js +24 -0
- package/dist/pl-PL-C-MmQaeR.js +35 -0
- package/dist/{pl-PL-6WyUmy0K.js → pl-PL-CL483jMb.js} +9 -1
- package/dist/pl-PL-C_MvVzPy.js +32 -0
- package/dist/{pl-PL-DFrOIiCG.js → pl-PL-CxCiWdAF.js} +6 -1
- package/dist/pl-PL-DYxD6VJ_.js +27 -0
- package/dist/pl-PL-De41L6O6.js +13 -0
- package/dist/pl-PL-DtJ3sgVO.js +13 -0
- package/dist/{pl-PL-B1tVRX3A.js → pl-PL-LnVPufjb.js} +2 -1
- package/dist/pt-BR-BfxgHKY4.js +27 -0
- package/dist/pt-BR-BvAy7bfZ.js +13 -0
- package/dist/pt-BR-C0I_kTQ6.js +13 -0
- package/dist/pt-BR-CBAe0SnK.js +32 -0
- package/dist/pt-BR-CjfX1fDM.js +47 -0
- package/dist/pt-BR-D7RCymsU.js +13 -0
- package/dist/pt-BR-DJOzf0y2.js +53 -0
- package/dist/pt-BR-DSENwwGu.js +24 -0
- package/dist/{pt-BR-Cmr5LoAm.js → pt-BR-DUUAs_Pm.js} +7 -4
- package/dist/pt-BR-Dw0UZ-Od.js +35 -0
- package/dist/pt-BR-NtLaWlnZ.js +68 -0
- package/dist/{pt-BR-CxjlToN4.js → pt-BR-apPtB2cK.js} +6 -1
- package/dist/{pt-BR-BD3-Ecm8.js → pt-BR-ur86nRrK.js} +2 -1
- package/dist/{pt-PT-CWYxqUbN.js → pt-PT-B3qoJ3Fr.js} +9 -1
- package/dist/pt-PT-BH1abg6H.js +13 -0
- package/dist/{pt-PT-Dk48OVtf.js → pt-PT-BVZxK7ae.js} +7 -4
- package/dist/pt-PT-Bf4IV7wp.js +13 -0
- package/dist/pt-PT-CIo3mlXL.js +24 -0
- package/dist/{pt-PT-DpBfkgVw.js → pt-PT-CVNEcs32.js} +2 -1
- package/dist/pt-PT-CgXkfMUc.js +13 -0
- package/dist/{pt-PT-CU13UUwT.js → pt-PT-Coa6J7SM.js} +6 -1
- package/dist/pt-PT-D79GMAC5.js +47 -0
- package/dist/pt-PT-DSxxVA0f.js +68 -0
- package/dist/pt-PT-DfVjLaAU.js +35 -0
- package/dist/pt-PT-Dm5DRDrd.js +32 -0
- package/dist/pt-PT-TKg5FLat.js +27 -0
- package/dist/resolveEnvironment-HVVOrOBr.js +164 -0
- package/dist/ro-RO-1W3Bw0U7.js +13 -0
- package/dist/ro-RO-3rOfS17N.js +27 -0
- package/dist/ro-RO-4j2I7YM7.js +13 -0
- package/dist/ro-RO-B5YT9vP-.js +32 -0
- package/dist/{ro-RO-B2u2q1Ez.js → ro-RO-BTqq5BPM.js} +6 -1
- package/dist/ro-RO-Bybq8JFn.js +68 -0
- package/dist/{ro-RO-BLuOjrS0.js → ro-RO-Ck3Azc56.js} +7 -4
- package/dist/{ro-RO-BWQeseQ_.js → ro-RO-Ct_BJvsc.js} +9 -1
- package/dist/ro-RO-Dj-2um-k.js +47 -0
- package/dist/ro-RO-ECJHARCT.js +35 -0
- package/dist/ro-RO-ILTvlS9i.js +24 -0
- package/dist/{ro-RO-BF1Q86nQ.js → ro-RO-i7lojG2G.js} +2 -1
- package/dist/ro-RO-raS4E2ww.js +13 -0
- package/dist/{rules-BIhDWVgR.js → rules-CpkxtBrw.js} +5 -5
- package/dist/{sk-SK-Rd06VJ5k.js → sk-SK-B5brxU1N.js} +2 -1
- package/dist/sk-SK-BTujkOgF.js +13 -0
- package/dist/sk-SK-C5Qmv4E6.js +13 -0
- package/dist/sk-SK-C6rMIxpz.js +68 -0
- package/dist/sk-SK-CjrLvDMx.js +27 -0
- package/dist/sk-SK-Cv23cDQO.js +24 -0
- package/dist/sk-SK-Es-5xiuY.js +13 -0
- package/dist/{sk-SK-DnNuh37c.js → sk-SK-FGK1FMMO.js} +9 -1
- package/dist/sk-SK-JN-Ll7bm.js +47 -0
- package/dist/sk-SK-S6iF1WDH.js +32 -0
- package/dist/{sk-SK-C1Ky2nl_.js → sk-SK-jxAlqkeI.js} +7 -4
- package/dist/sk-SK-rSmwmSCa.js +35 -0
- package/dist/{sk-SK-BWA3fAcI.js → sk-SK-welR06By.js} +6 -1
- package/dist/{sl-SI-B7zbwoZn.js → sl-SI-B9N6vA08.js} +6 -1
- package/dist/sl-SI-BT9PpQII.js +13 -0
- package/dist/sl-SI-BZpXMHiG.js +13 -0
- package/dist/sl-SI-C-C-KJCX.js +27 -0
- package/dist/{sl-SI-BuIFB5zU.js → sl-SI-CUCrzJQv.js} +2 -1
- package/dist/sl-SI-CedEO3kf.js +35 -0
- package/dist/{sl-SI-BB7iVcFI.js → sl-SI-CjvFCQ3H.js} +7 -4
- package/dist/sl-SI-Cq4LxAvb.js +13 -0
- package/dist/{sl-SI-D212isFw.js → sl-SI-Cz28AFTz.js} +9 -1
- package/dist/sl-SI-DEaeEVKB.js +24 -0
- package/dist/sl-SI-DqUEy_Cm.js +32 -0
- package/dist/sl-SI-nUZNETVU.js +47 -0
- package/dist/sl-SI-tPwbFvOI.js +68 -0
- package/dist/style.css +359 -293
- package/dist/styles-CLV89_hH.js +359 -293
- package/dist/sv-SE-8dFj9z4D.js +47 -0
- package/dist/sv-SE-BHfydid5.js +27 -0
- package/dist/sv-SE-BYUoi-08.js +35 -0
- package/dist/{sv-SE-BwJgkIDf.js → sv-SE-C6uPh9g5.js} +2 -1
- package/dist/sv-SE-CRBRuE8Z.js +32 -0
- package/dist/{sv-SE-DbI-1JqN.js → sv-SE-CSjJPRt1.js} +7 -4
- package/dist/sv-SE-CXaMlJCI.js +24 -0
- package/dist/sv-SE-Csib2Zj_.js +13 -0
- package/dist/{sv-SE-Hi07uLM9.js → sv-SE-D6al0j6W.js} +6 -1
- package/dist/{sv-SE-Ca1bxZf3.js → sv-SE-DLl7OGxl.js} +9 -1
- package/dist/sv-SE-DsPdegWB.js +13 -0
- package/dist/sv-SE-EbNvb_L7.js +13 -0
- package/dist/sv-SE-K1QT1cOt.js +68 -0
- package/dist/types/api/businessLines/businessLines.types.d.ts +10 -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/companySearch/useCompanySearch.d.ts +1 -0
- package/dist/types/api/configurations/useScenarios.d.ts +12 -12
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +16 -16
- package/dist/types/components/BankAccount/forms/PayoutAccount/payoutAccountFormat.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +4 -4
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +51 -51
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -2
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +3 -3
- package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +2 -4
- package/dist/types/components/BusinessLines/tasks/BusinessLines/ExistingBusinessLines/BusinessLineModal.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/ExistingBusinessLines/ExistingBusinessLines.d.ts +8 -0
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +13 -4
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +151 -151
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +7 -5
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/sofStore.d.ts +1 -1
- 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/ViewVerificationStatus/content.d.ts +3 -3
- 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/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +3 -3
- 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/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 +56 -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/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/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddress.d.ts +1 -1
- 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/types.d.ts +3 -2
- 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 +1 -4
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -2
- package/dist/types/components/ui/atoms/Header/Header.d.ts +12 -0
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.d.ts +3 -4
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +8 -9
- 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/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 +0 -4
- package/dist/types/context/I18nProvider/I18nContext.d.ts +3 -0
- package/dist/types/context/SettingsContext/types.d.ts +2 -2
- 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/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 +15 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getSSNType.d.ts +1 -0
- package/dist/types/utils/textTransformation/toFullWidth.d.ts +6 -0
- package/dist/types/utils/translation.d.ts +1 -0
- package/dist/{types-CAznNNSI.js → types-Cnytncbd.js} +1 -5
- package/dist/{types-DATo4gPc.js → types-DREIZpxT.js} +2 -2
- package/dist/{types-7oacjAfc.js → types-YZCbv6wT.js} +2 -2
- package/dist/{useAssociatedLegalEntity-C5XzLwm6.js → useAssociatedLegalEntity-CtPwbvkG.js} +1 -1
- package/dist/{useDataset-B6FKCmU2.js → useDataset-BhtLJw8i.js} +3 -3
- package/dist/{useForm-TOSljeW-.js → useForm-CkDciBI3.js} +4 -4
- package/dist/{useGlobalData-sHcA849M.js → useGlobalData-BUgIp9O-.js} +8 -11
- package/dist/{useOnboardingStatus-D1s1dB2k.js → useOnboardingStatus-C617NeV-.js} +1 -1
- package/dist/{useScenarios-yNSBgN3c.js → useScenarios-pcYq7HkO.js} +2 -2
- package/dist/{useTermsOfServiceStatus-Bv3bR8mM.js → useTermsOfServiceStatus-DAhlGfSf.js} +1 -1
- package/dist/{useToastContext-Cfcp4loq.js → useToastContext-SPgtDHvP.js} +2 -5
- package/dist/{useUnincorporatedPartnershipMembers-BNNKhIVK.js → useUnincorporatedPartnershipMembers-AfBFy7Yl.js} +5 -5
- package/dist/{utils-Bv3wJ_bS.js → utils-C6VZF1lW.js} +10 -10
- package/dist/{utils-BH-sDfZk.js → utils-CfNHCh35.js} +16 -10
- package/dist/{utils-B0A1M8Ct.js → utils-DKPIAe71.js} +2 -2
- package/dist/{validate-C1N5NQIr.js → validate-0hhEAEOS.js} +8 -8
- package/dist/{validate-D3dgN5zd.js → validate-nQU_m5nS.js} +2 -2
- package/dist/{validate-B15f0Zu8.js → validate-zp9cKIZQ.js} +3 -6
- package/dist/{validationError-BHbVbi9T.js → validationError-C4LAQpBz.js} +2 -2
- package/package.json +69 -69
- package/dist/BusinessFinancingComponent-UBvmxB5u.js +0 -45
- package/dist/BusinessFinancingPage-3-Lx_c_S.js +0 -40
- package/dist/CreateIndividualComponent-BK8ySYfg.js +0 -72
- package/dist/CreateTransferInstrumentComponent-Cl1M2Bnh.js +0 -67
- package/dist/DecisionMakers-aTDiZZJK.js +0 -593
- package/dist/Link-vZp7tgW8.js +0 -35
- package/dist/ManageIndividualComponent-5C7FQlLt.js +0 -47
- package/dist/ManageTermsOfServiceComponent-CvO8-gkU.js +0 -47
- package/dist/SoleProprietorshipPage-CBzk6v1a.js +0 -50
- package/dist/TaskStatusIndicator-Bgcj5g7L.js +0 -69
- package/dist/TrustMemberCompanyPage-C-bMG5UI.js +0 -60
- package/dist/TrustMemberIndividualPage-Da2kKJCc.js +0 -66
- package/dist/bg-BG-9uVrFuHv.js +0 -23
- package/dist/bg-BG-Cp58y2fj.js +0 -13
- package/dist/bg-BG-Cr0ewJCW.js +0 -13
- package/dist/bg-BG-D5192UVe.js +0 -35
- package/dist/bg-BG-ZJvmfx01.js +0 -13
- package/dist/bg-BG-hFblesn-.js +0 -15
- package/dist/cs-CZ-7xfNBIeH.js +0 -13
- package/dist/cs-CZ-B8IPRc47.js +0 -15
- package/dist/cs-CZ-DMwpeH56.js +0 -13
- package/dist/cs-CZ-DOqH0WeT.js +0 -35
- package/dist/cs-CZ-De4wbl1W.js +0 -13
- package/dist/cs-CZ-Wzc382q6.js +0 -23
- package/dist/da-DK-B45X2VaJ.js +0 -35
- package/dist/da-DK-BK6TE3SH.js +0 -13
- package/dist/da-DK-BTpZzEgA.js +0 -15
- package/dist/da-DK-CeNMXUfE.js +0 -23
- package/dist/da-DK-DC8dAHWf.js +0 -13
- package/dist/da-DK-R0sNbjuQ.js +0 -13
- package/dist/de-DE-CWvgMDqU.js +0 -35
- package/dist/de-DE-CY7fT1B5.js +0 -13
- package/dist/de-DE-D9r_yUSr.js +0 -13
- package/dist/de-DE-DjOUNvp6.js +0 -15
- package/dist/de-DE-JI-7mvxy.js +0 -23
- package/dist/de-DE-ZQioXTGO.js +0 -13
- package/dist/el-GR-B06F8VNw.js +0 -13
- package/dist/el-GR-C3rkK_oc.js +0 -35
- package/dist/el-GR-C7ThPKtr.js +0 -13
- package/dist/el-GR-Cu9HwD-f.js +0 -15
- package/dist/el-GR-DfNOPkLq.js +0 -23
- package/dist/el-GR-kj1-bNjH.js +0 -13
- package/dist/en-US-BTYdAWXp.js +0 -15
- package/dist/en-US-BaWkkHh3.js +0 -13
- package/dist/en-US-DHq7VYFs.js +0 -23
- package/dist/es-ES-Cj7q7fWO.js +0 -15
- package/dist/es-ES-D6Uauj9W.js +0 -13
- package/dist/es-ES-DKCCgVF8.js +0 -35
- package/dist/es-ES-DOVPTeyf.js +0 -23
- package/dist/es-ES-Dm8otLm9.js +0 -13
- package/dist/es-ES-XCII5d8J.js +0 -13
- package/dist/et-EE-BJIsPOnh.js +0 -23
- package/dist/et-EE-Bc6ioJRG.js +0 -35
- package/dist/et-EE-DHwaH1by.js +0 -13
- package/dist/et-EE-DNcqO4R9.js +0 -13
- package/dist/et-EE-Dor3enPS.js +0 -15
- package/dist/et-EE-XPQ-Sf9x.js +0 -13
- package/dist/fi-FI-67pS4_t6.js +0 -13
- package/dist/fi-FI-BNcnKrJ9.js +0 -15
- package/dist/fi-FI-CLg2__EV.js +0 -13
- package/dist/fi-FI-D522KHGk.js +0 -23
- package/dist/fi-FI-DTgF3AuK.js +0 -13
- package/dist/fi-FI-Hhku9Lmc.js +0 -35
- package/dist/fr-FR-BYuKsZIb.js +0 -35
- package/dist/fr-FR-BZbWBKOT.js +0 -13
- package/dist/fr-FR-Bn3D6mmY.js +0 -15
- package/dist/fr-FR-CsogZlc6.js +0 -13
- package/dist/fr-FR-D7U2da1i.js +0 -13
- package/dist/fr-FR-DInQKkTd.js +0 -23
- package/dist/hr-HR-B3boX_dq.js +0 -13
- package/dist/hr-HR-BVzZeaDc.js +0 -13
- package/dist/hr-HR-CJ5rmUrZ.js +0 -13
- package/dist/hr-HR-CPO5Yw2B.js +0 -35
- package/dist/hr-HR-DzS44Gpv.js +0 -23
- package/dist/hu-HU-BJpO-WrQ.js +0 -13
- package/dist/hu-HU-BSOiZA7a.js +0 -15
- package/dist/hu-HU-CX5vJbE8.js +0 -13
- package/dist/hu-HU-CYfNXKwk.js +0 -13
- package/dist/hu-HU-mo_0ULJG.js +0 -35
- package/dist/hu-HU-xCvNM5TU.js +0 -23
- package/dist/it-IT-5QHf-hkt.js +0 -13
- package/dist/it-IT-Cepap1v0.js +0 -13
- package/dist/it-IT-CjEYONJg.js +0 -23
- package/dist/it-IT-Dn9AGEIq.js +0 -13
- package/dist/it-IT-DvM-9LpM.js +0 -15
- package/dist/it-IT-Nl57jui-.js +0 -35
- package/dist/ja-JP-Ajo-tIow.js +0 -23
- package/dist/ja-JP-D3oQAH7z.js +0 -35
- package/dist/ja-JP-DRJ0RpUn.js +0 -13
- package/dist/ja-JP-GXkLvnQ4.js +0 -15
- package/dist/lt-LT-3rmXgF6K.js +0 -13
- package/dist/lt-LT-B6CJ4ULI.js +0 -23
- package/dist/lt-LT-CVasDmF3.js +0 -35
- package/dist/lt-LT-DNjXmQPv.js +0 -15
- package/dist/lt-LT-Dsy0UVdI.js +0 -13
- package/dist/lt-LT-lJLUJnzd.js +0 -13
- package/dist/lv-LV-BiilWzcg.js +0 -13
- package/dist/lv-LV-CBex8RS9.js +0 -13
- package/dist/lv-LV-ChOoZuhc.js +0 -15
- package/dist/lv-LV-DPZgF65i.js +0 -13
- package/dist/lv-LV-DTtuyfHS.js +0 -23
- package/dist/lv-LV-Sbsv8-nD.js +0 -35
- package/dist/mapScriptLocalization-BNv4ewMQ.js +0 -72
- package/dist/nl-NL-BHkRnVrj.js +0 -35
- package/dist/nl-NL-BHqiO21q.js +0 -15
- package/dist/nl-NL-BIcLB7e6.js +0 -13
- package/dist/nl-NL-CU6c8oyY.js +0 -13
- package/dist/nl-NL-DKYvsnqM.js +0 -13
- package/dist/nl-NL-Zcq0bXd-.js +0 -23
- package/dist/no-NO-BWpBc9_J.js +0 -13
- package/dist/no-NO-Bj0_2wjm.js +0 -13
- package/dist/no-NO-BxReX6oF.js +0 -23
- package/dist/no-NO-CKT9kLAH.js +0 -15
- package/dist/no-NO-YuIAbtuI.js +0 -13
- package/dist/no-NO-kaAdT9B8.js +0 -35
- package/dist/pl-PL-B87v7Wzw.js +0 -13
- package/dist/pl-PL-B8pWxq6T.js +0 -13
- package/dist/pl-PL-B9eq4QTe.js +0 -13
- package/dist/pl-PL-D6heiKsH.js +0 -15
- package/dist/pl-PL-DD8JN4Qf.js +0 -35
- package/dist/pl-PL-T6uD5--R.js +0 -23
- package/dist/pt-BR-BljlblJ5.js +0 -23
- package/dist/pt-BR-CI2ZzGeN.js +0 -15
- package/dist/pt-BR-CrKxuloz.js +0 -13
- package/dist/pt-BR-DMCle1o_.js +0 -30
- package/dist/pt-BR-DeDXIlM_.js +0 -35
- package/dist/pt-BR-DtLKiYpp.js +0 -60
- package/dist/pt-PT-BNJcehJa.js +0 -13
- package/dist/pt-PT-Cu735tNP.js +0 -13
- package/dist/pt-PT-D2elvnDU.js +0 -15
- package/dist/pt-PT-Gsd7I9Ff.js +0 -13
- package/dist/pt-PT-N0njcfLO.js +0 -23
- package/dist/pt-PT-Xm-pm3mb.js +0 -35
- package/dist/resolveEnvironment-C48a6PCP.js +0 -84
- package/dist/ro-RO-B4ASHhK6.js +0 -13
- package/dist/ro-RO-B75duQ_N.js +0 -13
- package/dist/ro-RO-C3m6aJVP.js +0 -35
- package/dist/ro-RO-DL9V1CMj.js +0 -15
- package/dist/ro-RO-DkHxxgVT.js +0 -13
- package/dist/ro-RO-Ic1SzBgx.js +0 -23
- package/dist/sk-SK-BSioQTMW.js +0 -15
- package/dist/sk-SK-BVc-vNQm.js +0 -35
- package/dist/sk-SK-CiD0FeLN.js +0 -23
- package/dist/sk-SK-Cv76Qa3V.js +0 -13
- package/dist/sk-SK-DUZblaeq.js +0 -13
- package/dist/sk-SK-DibZzOqt.js +0 -13
- package/dist/sl-SI-BylvpF-X.js +0 -15
- package/dist/sl-SI-CyNtynTN.js +0 -13
- package/dist/sl-SI-D9rl7bIN.js +0 -13
- package/dist/sl-SI-D_rqR0D7.js +0 -35
- package/dist/sl-SI-MZoDApq9.js +0 -23
- package/dist/sl-SI-vyebIKls.js +0 -13
- package/dist/sv-SE-1eeTTIj7.js +0 -13
- package/dist/sv-SE-B3zoXMuH.js +0 -35
- package/dist/sv-SE-BcTCn-cn.js +0 -13
- package/dist/sv-SE-DCFSf4Oj.js +0 -23
- package/dist/sv-SE-Dwz1yTrB.js +0 -15
- package/dist/sv-SE-Ez33Bdgp.js +0 -13
- package/dist/translation-Bswps3l6.js +0 -472
- package/dist/types/components/BusinessLines/forms/rules.d.ts +0 -5
- 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/molecules/Card/CardGroup.d.ts +0 -3
|
@@ -2,48 +2,49 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1bb3a0ed-7111-40b8-96cc-ab2659700d86", e._sentryDebugIdIdentifier = "sentry-dbid-1bb3a0ed-7111-40b8-96cc-ab2659700d86");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { b as useApiContext,
|
|
11
|
+
import { b as useApiContext, a7 as useMutation, k as httpPost, j as useQuery, q as skipToken, u as useTranslation, ah as useI18nContext, a9 as isEmpty, i as isUndefinedOrNull, ac as CountryCodes, bA as isISIN, B as Button, c as useLegalEntity, R as ROOT_LE, X as useExperimentsContext, x as Typography, L as Loader, a8 as entriesOf, P as useAnalyticsContext, m as useSettingsContext, N as createLogger, aK as useQueryClient, M as TaskTypes, y as LegalEntityTypes, an as businessDetailsComponentsKeyMapping, bB as solePropBusinessDetailsKeyMapping, ak as objectsDeepEqual, aw as keysOf, bC as solePropBusinessDetailsApiKeyMapping, as as businessDetailsApiKeyMapping, b1 as filterOutUnwantedAssociationsIfRootLE, a$ as drop, aa as getOwnEntityAssociations, aM as doArraysMatch, ar as getCapabilityProblems, bD as solePropBusinessDetailsDocumentMapping, bz as businessDetailsDocumentMapping } from "./StoreProvider-BulXd4Hf.js";
|
|
12
12
|
import { useEffect, useCallback, useState, useMemo, useRef } from "preact/hooks";
|
|
13
|
-
import { S as StateCodesUS, d as TAX_INFORMATION_FIELD, r as requestingBanking, c as requestingIssuing, f as exemptedFromTaxDefaultFieldMetadata, h as exemptedFromTaxDefaultFieldConfig, t as taxInformationDefaultFieldMetadata, b as taxInformationDefaultFieldConfig, T as TaxInformationField, j as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, C as COUNTRIES_USING_COMPANY_SEARCH, M as MemoizedDocumentUpload, k as isRegistrationNumberAbsentStateV4Scenario, l as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, m as getCompanyRegistrationNumberOptions, n as countryToTaxInfoTypeMap, e as rules, g as getFieldsWithExistingData } from "./TaxInformationField-
|
|
14
|
-
import { R as RadioGroup, u as useFormContext, c as useCreateLegalEntity, d as useUpdateLegalEntity } from "./RadioGroup-
|
|
15
|
-
import { S as SettingNames, I as InputText } from "./InputText-
|
|
16
|
-
import { h as hasDataChanged } from "./hasDataChanged-
|
|
17
|
-
import { u as useGlobalDataSlice, a as useGlobalData, c as useStateContext, F as FormWrapper } from "./useGlobalData-
|
|
18
|
-
import { u as useToastContext } from "./useToastContext-
|
|
19
|
-
import { u as useDebouncedCallback, g as getAssociatedLeAnalyticsPayload } from "./analytics-
|
|
20
|
-
import {
|
|
21
|
-
import { c as createFormUtils,
|
|
22
|
-
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-
|
|
23
|
-
import { S as StructuredList, a as datasetUtilities, C as Confirm } from "./useDataset-
|
|
24
|
-
import { E as EntityTypeRadioGroupCard, o as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
25
|
-
import { a as getDocument, c as createDocumentRequest, b as getFileExtention, d as documentApiUtils } from "./validate-
|
|
13
|
+
import { S as StateCodesUS, d as TAX_INFORMATION_FIELD, r as requestingBanking, c as requestingIssuing, f as exemptedFromTaxDefaultFieldMetadata, h as exemptedFromTaxDefaultFieldConfig, t as taxInformationDefaultFieldMetadata, b as taxInformationDefaultFieldConfig, T as TaxInformationField, j as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, C as COUNTRIES_USING_COMPANY_SEARCH, M as MemoizedDocumentUpload, k as isRegistrationNumberAbsentStateV4Scenario, l as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, m as getCompanyRegistrationNumberOptions, n as countryToTaxInfoTypeMap, e as rules, g as getFieldsWithExistingData } from "./TaxInformationField-vBwS4Gdq.js";
|
|
14
|
+
import { R as RadioGroup, u as useFormContext, c as useCreateLegalEntity, d as useUpdateLegalEntity } from "./RadioGroup-CDIi5JOR.js";
|
|
15
|
+
import { S as SettingNames, I as InputText } from "./InputText-rkMNHFYM.js";
|
|
16
|
+
import { h as hasDataChanged } from "./hasDataChanged-C32ujCoA.js";
|
|
17
|
+
import { u as useGlobalDataSlice, a as useGlobalData, c as useStateContext, F as FormWrapper } from "./useGlobalData-BUgIp9O-.js";
|
|
18
|
+
import { u as useToastContext } from "./useToastContext-SPgtDHvP.js";
|
|
19
|
+
import { u as useDebouncedCallback, g as getAssociatedLeAnalyticsPayload } from "./analytics-_iYLDAnN.js";
|
|
20
|
+
import { d as validateNotEmptyOnBlur, h as validatePatternOnBlur, r as resolveFieldMetadata, k as validateJaKanaLegalCompanyName, l as validateJaHaniLegalCompanyName, a as useAccountHolder, i as composePerScenarioFormConfigurations, c as getPropsFromConfigurations } from "./fieldConfigurations-BBmPG-CS.js";
|
|
21
|
+
import { c as createFormUtils, H as Header, a as Link, m as mergeFieldMetadataIntoProps, E as ErrorPanel, C as CountryField, S as StackLayout, e as COUNTRY_FIELD, n as getFormProps, s as summaryItem, g as getRequiredForms, b as addValidityToForms, u as useFormComposer } from "./CountryField-DePvueIq.js";
|
|
22
|
+
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-CZ8JIq0y.js";
|
|
23
|
+
import { S as StructuredList, a as datasetUtilities, C as Confirm } from "./useDataset-BhtLJw8i.js";
|
|
24
|
+
import { E as EntityTypeRadioGroupCard, o as organizationTypesToSkipCompanyStructureForm } from "./utils-C6VZF1lW.js";
|
|
25
|
+
import { a as getDocument, c as createDocumentRequest, b as getFileExtention, d as documentApiUtils } from "./validate-zp9cKIZQ.js";
|
|
26
26
|
import cx from "classnames";
|
|
27
|
-
import { C as CompanyTypesValues, h as handleKeys } from "./bafinUtils-
|
|
28
|
-
import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, j as registrationAddressFields, v as vatAbsenceReasonMetadata, d as defaultFieldMetadata$1, k as getDefaultVatNumberType, a as defaultFieldConfig$1, i as exemptFromRegistrationNumberDefaultFieldMetadata, l as exemptFromRegistrationNumberDefaultFieldConfig, r as registrationNumberDefaultFieldMetadata, m as getDefaultRegistrationNumberType, b as registrationNumberDefaultFieldConfig, c as doingBusinessAsFieldMetadata, e as doingBusinessAsAbsentFieldMetadata, f as DBANameField, g as BusinessRegistrationNumberField, h as VatNumberField, M as MemoizedConstitutionalDocument, n as inferCompanyRegistrationNumberType } from "./RegistrationAddress-
|
|
29
|
-
import { F as Field, a as useForm, C as Checkbox, L as LoaderWrapper } from "./useForm-
|
|
30
|
-
import { I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, L as LegalFormField, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-
|
|
31
|
-
import { c as currencyByCountry } from "./types-
|
|
32
|
-
import { I as InputDate, f as formatDateObj } from "./InputDate-
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { g as
|
|
27
|
+
import { C as CompanyTypesValues, h as handleKeys } from "./bafinUtils-DOsm2O1i.js";
|
|
28
|
+
import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, j as registrationAddressFields, v as vatAbsenceReasonMetadata, d as defaultFieldMetadata$1, k as getDefaultVatNumberType, a as defaultFieldConfig$1, i as exemptFromRegistrationNumberDefaultFieldMetadata, l as exemptFromRegistrationNumberDefaultFieldConfig, r as registrationNumberDefaultFieldMetadata, m as getDefaultRegistrationNumberType, b as registrationNumberDefaultFieldConfig, c as doingBusinessAsFieldMetadata, e as doingBusinessAsAbsentFieldMetadata, f as DBANameField, g as BusinessRegistrationNumberField, h as VatNumberField, M as MemoizedConstitutionalDocument, n as inferCompanyRegistrationNumberType } from "./RegistrationAddress-coO57t4c.js";
|
|
29
|
+
import { F as Field, a as useForm, C as Checkbox, L as LoaderWrapper } from "./useForm-CkDciBI3.js";
|
|
30
|
+
import { I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, L as LegalFormField, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-CCNB-Owq.js";
|
|
31
|
+
import { c as currencyByCountry } from "./types-YZCbv6wT.js";
|
|
32
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-BqYvvnqX.js";
|
|
33
|
+
import { Suspense, lazy } from "preact/compat";
|
|
34
|
+
import { c as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, e as applyVerifiedBusinessData, o as operationalAddressIsSameIds, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as StateField, i as isDateOlderThanAYear } from "./Address-t4VOfLT-.js";
|
|
35
|
+
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-DK17jkn8.js";
|
|
36
|
+
import { p as Divider, I as INDUSTRY_CODE_FIELD, g as industryCodeFieldMetadata, h as IndustryCodeField, o as LEGAL_COMPANY_NAME_FIELD, j as defaultFieldMetadataV4, k as defaultFieldMetadata$2, l as defaultFieldConfigV4, m as defaultFieldConfig$2 } from "./OnboardingDropinComponent-BlMzaK2Z.js";
|
|
37
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-CfNHCh35.js";
|
|
37
38
|
import { signal } from "@preact/signals";
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
39
|
+
import { u as useAllowedCountries, m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-CYDc6_WR.js";
|
|
40
|
+
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-CeWqn3jD.js";
|
|
41
|
+
import { a as Alert } from "./Alert-BeizfGIR.js";
|
|
42
|
+
import { C as Card } from "./Card-B1eYN1iZ.js";
|
|
43
|
+
import { b as mapAddressLocalizationToJpAddressSchema, a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
43
44
|
import { f as formatObject, g as getProp } from "./utils-DNSfZiio.js";
|
|
44
45
|
import { f as formatCurrency } from "./formatCurrency-CMOSdJMB.js";
|
|
45
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
46
|
-
import { i as isEmpty$1 } from "./isEmpty-
|
|
46
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-C4LAQpBz.js";
|
|
47
|
+
import { i as isEmpty$1 } from "./isEmpty-CD8E4UFi.js";
|
|
47
48
|
const clearCompanyData = async (legalEntityId, baseUrl) => {
|
|
48
49
|
return httpPost({
|
|
49
50
|
baseUrl,
|
|
@@ -86,6 +87,7 @@ const KNOWN_DISALLOWED_INDEX_DATASET_STATES = [
|
|
|
86
87
|
StateCodesUS.Illinois,
|
|
87
88
|
StateCodesUS.Texas
|
|
88
89
|
];
|
|
90
|
+
const KOMPANY_SEARCH_FAILURE = "Kompany index and deep search both failed to complete";
|
|
89
91
|
const useCompanySearch = (data, options) => {
|
|
90
92
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
91
93
|
return useQuery({
|
|
@@ -106,13 +108,15 @@ const useCompanySearch = (data, options) => {
|
|
|
106
108
|
});
|
|
107
109
|
};
|
|
108
110
|
const handleCompanySearch = async (rootLegalEntityId, baseUrl, data) => {
|
|
109
|
-
const
|
|
110
|
-
text
|
|
111
|
+
const getRequestPayload = (text) => ({
|
|
112
|
+
text,
|
|
111
113
|
country: data.country,
|
|
112
114
|
state: data.state,
|
|
113
115
|
limit: data.limit ?? 15
|
|
114
|
-
};
|
|
115
|
-
const
|
|
116
|
+
});
|
|
117
|
+
const nameSearchPayload = getRequestPayload(data.name);
|
|
118
|
+
const registrationSearchPayload = getRequestPayload(data.registrationNumber);
|
|
119
|
+
const searchRequest = async (requestPayload, path) => {
|
|
116
120
|
return httpPost(
|
|
117
121
|
{
|
|
118
122
|
baseUrl,
|
|
@@ -121,16 +125,20 @@ const handleCompanySearch = async (rootLegalEntityId, baseUrl, data) => {
|
|
|
121
125
|
requestPayload
|
|
122
126
|
);
|
|
123
127
|
};
|
|
124
|
-
const companyDeepSearch = async () => await searchRequest("deep");
|
|
125
|
-
const companyIndexSearch = async () => await searchRequest();
|
|
126
|
-
const companyRegistrationNumberDeepSearch = async () => await searchRequest("deepSearchByRegistrationNumber");
|
|
127
|
-
const companyRegistrationNumberIndexSearch = async () => await searchRequest("searchByRegistrationNumber");
|
|
128
|
+
const companyDeepSearch = async () => await searchRequest(nameSearchPayload, "deep");
|
|
129
|
+
const companyIndexSearch = async () => await searchRequest(nameSearchPayload);
|
|
130
|
+
const companyRegistrationNumberDeepSearch = async () => await searchRequest(registrationSearchPayload, "deepSearchByRegistrationNumber");
|
|
131
|
+
const companyRegistrationNumberIndexSearch = async () => await searchRequest(registrationSearchPayload, "searchByRegistrationNumber");
|
|
128
132
|
const primarySourceSearch = async (indexSearch, deepSearch) => {
|
|
129
133
|
let response;
|
|
130
134
|
try {
|
|
131
135
|
response = await deepSearch();
|
|
132
136
|
} catch {
|
|
133
|
-
|
|
137
|
+
try {
|
|
138
|
+
response = await indexSearch();
|
|
139
|
+
} catch {
|
|
140
|
+
throw new Error(KOMPANY_SEARCH_FAILURE);
|
|
141
|
+
}
|
|
134
142
|
}
|
|
135
143
|
return response;
|
|
136
144
|
};
|
|
@@ -301,12 +309,12 @@ function NumberOfEmployees({
|
|
|
301
309
|
) });
|
|
302
310
|
}
|
|
303
311
|
const financialInformationReportedValueOptions = "adyen-kyc-financial-information-reported-value-options";
|
|
304
|
-
const styles$
|
|
312
|
+
const styles$1 = {
|
|
305
313
|
financialInformationReportedValueOptions
|
|
306
314
|
};
|
|
307
315
|
const reportedValue = "adyen-kyc-reported-value";
|
|
308
316
|
const reportedValueInput = "adyen-kyc-reported-value-input";
|
|
309
|
-
const styles
|
|
317
|
+
const styles = {
|
|
310
318
|
reportedValue,
|
|
311
319
|
reportedValueInput
|
|
312
320
|
};
|
|
@@ -321,7 +329,7 @@ const ReportedValue = ({
|
|
|
321
329
|
isValid
|
|
322
330
|
}) => {
|
|
323
331
|
const { i18n } = useI18nContext();
|
|
324
|
-
return /* @__PURE__ */ jsx("div", { className: styles
|
|
332
|
+
return /* @__PURE__ */ jsx("div", { className: styles.reportedValue, children: /* @__PURE__ */ jsx(Field, { name: fieldName, errorMessage, isValid, helper, children: (childProps) => /* @__PURE__ */ jsx(
|
|
325
333
|
InputCurrency,
|
|
326
334
|
{
|
|
327
335
|
...childProps,
|
|
@@ -329,7 +337,7 @@ const ReportedValue = ({
|
|
|
329
337
|
currency,
|
|
330
338
|
amount,
|
|
331
339
|
onAmountChanged,
|
|
332
|
-
className: styles
|
|
340
|
+
className: styles.reportedValueInput,
|
|
333
341
|
"aria-label": label
|
|
334
342
|
}
|
|
335
343
|
) }) });
|
|
@@ -458,7 +466,7 @@ function FinancialInformation(props) {
|
|
|
458
466
|
handleChange("reportedValueOption")(newReportedValue);
|
|
459
467
|
};
|
|
460
468
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-company-financial-information", children: [
|
|
461
|
-
/* @__PURE__ */ jsx(
|
|
469
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading }),
|
|
462
470
|
country === CountryCodes.UnitedKingdom && /* @__PURE__ */ jsx(
|
|
463
471
|
NumberOfEmployees,
|
|
464
472
|
{
|
|
@@ -565,7 +573,7 @@ function FinancialInformation(props) {
|
|
|
565
573
|
],
|
|
566
574
|
onChange: updateReportedValueOption,
|
|
567
575
|
showContentOnlyOnSelected: true,
|
|
568
|
-
className: styles$
|
|
576
|
+
className: styles$1.financialInformationReportedValueOptions
|
|
569
577
|
}
|
|
570
578
|
)
|
|
571
579
|
}
|
|
@@ -871,14 +879,10 @@ const setIsBankAccountRequestedForOrganization = (hasRequest) => {
|
|
|
871
879
|
const tinMatched = signal(void 0);
|
|
872
880
|
const businessMismatchModalOpen = signal(false);
|
|
873
881
|
const verifiedBusiness = signal(void 0);
|
|
882
|
+
const isVerifiedSingleCompanySearchResult = signal(false);
|
|
874
883
|
const setVerifiedBusiness = (company) => {
|
|
875
884
|
verifiedBusiness.value = company;
|
|
876
885
|
};
|
|
877
|
-
const divider = "adyen-kyc-divider";
|
|
878
|
-
const styles = {
|
|
879
|
-
divider
|
|
880
|
-
};
|
|
881
|
-
const Divider = () => /* @__PURE__ */ jsx("hr", { className: styles.divider });
|
|
882
886
|
function VerifiedBusinessCard({
|
|
883
887
|
verifiedBusiness: verifiedBusiness2,
|
|
884
888
|
verifiedAddress
|
|
@@ -933,6 +937,9 @@ function VerifiedBusinessCard({
|
|
|
933
937
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-verified-business-card__expand-button", children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => setExpanded(!expanded), children: expanded ? i18n.get("hideDetails") : i18n.get("showDetails") }) })
|
|
934
938
|
] });
|
|
935
939
|
}
|
|
940
|
+
const LazyJpAddress = lazy(
|
|
941
|
+
async () => (await import("./JpAddress-7_Wvn6w-.js")).JpAddress
|
|
942
|
+
);
|
|
936
943
|
const ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
|
|
937
944
|
const ADDITIONAL_INFORMATION_FIELDS = [
|
|
938
945
|
...DBA_NAME_FIELD,
|
|
@@ -1216,7 +1223,7 @@ function AdditionalInformation({
|
|
|
1216
1223
|
text: addressToCheck,
|
|
1217
1224
|
country: formData?.registrationAddress?.country ?? country
|
|
1218
1225
|
},
|
|
1219
|
-
{ enabled: Boolean(addressToCheck) }
|
|
1226
|
+
{ enabled: Boolean(addressToCheck) && country !== CountryCodes.Japan }
|
|
1220
1227
|
);
|
|
1221
1228
|
const mustProvideOperationalAddress = cleansedRegistrationAddress?.poBox ?? false;
|
|
1222
1229
|
useEffect(
|
|
@@ -1286,7 +1293,7 @@ function AdditionalInformation({
|
|
|
1286
1293
|
return t(($) => $["youBusinessOfficalAddress"]);
|
|
1287
1294
|
}, [datasetUtils, formData?.registrationAddress?.country, i18n]);
|
|
1288
1295
|
return /* @__PURE__ */ jsxs("form", { id: ADDITIONAL_INFORMATION_FORM_ID, className: "adyen-kyc-additional-information", children: [
|
|
1289
|
-
/* @__PURE__ */ jsx(
|
|
1296
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading, description }),
|
|
1290
1297
|
/* @__PURE__ */ jsx(
|
|
1291
1298
|
ErrorPanel,
|
|
1292
1299
|
{
|
|
@@ -1539,7 +1546,16 @@ function AdditionalInformation({
|
|
|
1539
1546
|
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["registeredBusinessAddress"]) }),
|
|
1540
1547
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: registrationAddressDescription })
|
|
1541
1548
|
] }),
|
|
1542
|
-
/* @__PURE__ */ jsx(
|
|
1549
|
+
country === CountryCodes.Japan ? /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
1550
|
+
LazyJpAddress,
|
|
1551
|
+
{
|
|
1552
|
+
id: ADDITIONAL_INFORMATION_FORM_ID,
|
|
1553
|
+
addressType: "registrationAddress",
|
|
1554
|
+
data: { ...mergedDefaultData?.registrationAddress, country },
|
|
1555
|
+
shouldValidate,
|
|
1556
|
+
onChange: handleRegistrationAddressChange
|
|
1557
|
+
}
|
|
1558
|
+
) }) : /* @__PURE__ */ jsx(
|
|
1543
1559
|
Address,
|
|
1544
1560
|
{
|
|
1545
1561
|
id: ADDITIONAL_INFORMATION_FORM_ID,
|
|
@@ -1548,7 +1564,9 @@ function AdditionalInformation({
|
|
|
1548
1564
|
...mergedDefaultData?.registrationAddress,
|
|
1549
1565
|
country
|
|
1550
1566
|
},
|
|
1551
|
-
labels: getAddressSchemaLabelsByCountry(
|
|
1567
|
+
labels: getAddressSchemaLabelsByCountry(
|
|
1568
|
+
data?.registrationAddress?.country ?? country
|
|
1569
|
+
),
|
|
1552
1570
|
requiredFields: addressSchema,
|
|
1553
1571
|
shouldValidate,
|
|
1554
1572
|
hideCountry: true,
|
|
@@ -1587,7 +1605,16 @@ function AdditionalInformation({
|
|
|
1587
1605
|
)
|
|
1588
1606
|
}
|
|
1589
1607
|
),
|
|
1590
|
-
formData.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME && /* @__PURE__ */ jsx(
|
|
1608
|
+
formData.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME && (country === CountryCodes.Japan ? /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
1609
|
+
LazyJpAddress,
|
|
1610
|
+
{
|
|
1611
|
+
id: ADDITIONAL_INFORMATION_FORM_ID,
|
|
1612
|
+
addressType: "operationalAddress",
|
|
1613
|
+
data: { ...mergedDefaultData?.operationalAddress, country },
|
|
1614
|
+
shouldValidate,
|
|
1615
|
+
onChange: handleOperationalAddressChange
|
|
1616
|
+
}
|
|
1617
|
+
) }) : /* @__PURE__ */ jsx(
|
|
1591
1618
|
Address,
|
|
1592
1619
|
{
|
|
1593
1620
|
id: ADDITIONAL_INFORMATION_FORM_ID,
|
|
@@ -1596,7 +1623,9 @@ function AdditionalInformation({
|
|
|
1596
1623
|
...mergedDefaultData?.operationalAddress,
|
|
1597
1624
|
country
|
|
1598
1625
|
},
|
|
1599
|
-
labels: getAddressSchemaLabelsByCountry(
|
|
1626
|
+
labels: getAddressSchemaLabelsByCountry(
|
|
1627
|
+
data?.operationalAddress?.country ?? country
|
|
1628
|
+
),
|
|
1600
1629
|
requiredFields: addressSchema,
|
|
1601
1630
|
shouldValidate,
|
|
1602
1631
|
hideCountry: true,
|
|
@@ -1607,12 +1636,58 @@ function AdditionalInformation({
|
|
|
1607
1636
|
verifiedAddress: verifiedAddress?.operationalAddress,
|
|
1608
1637
|
condensed: true
|
|
1609
1638
|
}
|
|
1610
|
-
)
|
|
1639
|
+
))
|
|
1611
1640
|
] })
|
|
1612
1641
|
] })
|
|
1613
1642
|
] });
|
|
1614
1643
|
}
|
|
1615
1644
|
const JAPANESE_LEGAL_COMPANY_NAME_FIELDS = ["jaHaniLegalCompanyName", "jaKanaLegalCompanyName"];
|
|
1645
|
+
const toFullWidth = (value) => {
|
|
1646
|
+
const halfWidthKatakana = [..."。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚"];
|
|
1647
|
+
const fullWidthKatakana = [
|
|
1648
|
+
..."。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゛゜"
|
|
1649
|
+
];
|
|
1650
|
+
const hangul1 = { name: "hangul1", halfRE: /[ᄀ-ᄒ]/, fullRE: /[ᆨ-ᇂ]/, delta: -60921 };
|
|
1651
|
+
const hangul2 = { name: "hangul2", halfRE: /[ᅡ-ᅵ]/, fullRE: /[ᅡ-ᅵ]/, delta: -61025 };
|
|
1652
|
+
const latin = { name: "latin", halfRE: /[!-~]/, fullRE: /[!-~]/, delta: 65248 };
|
|
1653
|
+
const extras = {
|
|
1654
|
+
half: "¢£¬¯¦¥₩ |←↑→↓■°",
|
|
1655
|
+
full: "¢£¬ ̄¦¥₩ │←↑→↓■○"
|
|
1656
|
+
};
|
|
1657
|
+
const converters = [latin, hangul1, hangul2];
|
|
1658
|
+
const convertLatinHangul = (c) => {
|
|
1659
|
+
for (let j = 0; j < converters.length; j += 1) {
|
|
1660
|
+
const converter = converters[j];
|
|
1661
|
+
const isHalfWidth = converter.halfRE.test(c);
|
|
1662
|
+
if (isHalfWidth) {
|
|
1663
|
+
return String.fromCharCode(c.charCodeAt(0) + converter.delta);
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
return null;
|
|
1667
|
+
};
|
|
1668
|
+
let result = "";
|
|
1669
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
1670
|
+
const c = value[i];
|
|
1671
|
+
const convertedChar = convertLatinHangul(c);
|
|
1672
|
+
if (convertedChar) {
|
|
1673
|
+
result += convertedChar;
|
|
1674
|
+
continue;
|
|
1675
|
+
}
|
|
1676
|
+
const indexOfHalfWidthKatakana = halfWidthKatakana.indexOf(c);
|
|
1677
|
+
if (indexOfHalfWidthKatakana >= 0) {
|
|
1678
|
+
const fullWidthKatakanaCharacter = fullWidthKatakana[indexOfHalfWidthKatakana];
|
|
1679
|
+
result += fullWidthKatakanaCharacter;
|
|
1680
|
+
continue;
|
|
1681
|
+
}
|
|
1682
|
+
const indexOfHalfWidthExtras = extras.half.indexOf(c);
|
|
1683
|
+
if (indexOfHalfWidthExtras >= 0) {
|
|
1684
|
+
result += extras.full[indexOfHalfWidthExtras];
|
|
1685
|
+
continue;
|
|
1686
|
+
}
|
|
1687
|
+
result += c;
|
|
1688
|
+
}
|
|
1689
|
+
return result;
|
|
1690
|
+
};
|
|
1616
1691
|
function useLegalCompanyNameField({
|
|
1617
1692
|
data,
|
|
1618
1693
|
valid,
|
|
@@ -1620,7 +1695,7 @@ function useLegalCompanyNameField({
|
|
|
1620
1695
|
fieldProblems,
|
|
1621
1696
|
country,
|
|
1622
1697
|
formUtils,
|
|
1623
|
-
|
|
1698
|
+
handleChange
|
|
1624
1699
|
}) {
|
|
1625
1700
|
const fieldKeys = getFieldKeys(country);
|
|
1626
1701
|
const labels = formUtils.getFieldLabels(fieldKeys);
|
|
@@ -1628,6 +1703,14 @@ function useLegalCompanyNameField({
|
|
|
1628
1703
|
const helperTexts = formUtils.getFieldHelperText(fieldKeys, {
|
|
1629
1704
|
legalCompanyName: "legalCompanyName__helperText"
|
|
1630
1705
|
});
|
|
1706
|
+
const fieldsTransformInput = {
|
|
1707
|
+
jaHaniLegalCompanyName: (value) => toFullWidth(value),
|
|
1708
|
+
jaKanaLegalCompanyName: (value) => toFullWidth(value)
|
|
1709
|
+
};
|
|
1710
|
+
const fieldsTransformMode = {
|
|
1711
|
+
jaHaniLegalCompanyName: "blur",
|
|
1712
|
+
jaKanaLegalCompanyName: "blur"
|
|
1713
|
+
};
|
|
1631
1714
|
return fieldKeys.map((fieldKey) => {
|
|
1632
1715
|
const shouldShowField = formUtils.isRequiredField(fieldKey) || formUtils.isOptionalField(fieldKey);
|
|
1633
1716
|
if (shouldShowField) {
|
|
@@ -1635,13 +1718,15 @@ function useLegalCompanyNameField({
|
|
|
1635
1718
|
name: fieldKey,
|
|
1636
1719
|
value: data[fieldKey] ?? "",
|
|
1637
1720
|
readonly: formUtils.isReadOnly(fieldKey),
|
|
1638
|
-
onInput:
|
|
1639
|
-
onBlur:
|
|
1721
|
+
onInput: handleChange(fieldKey, "input"),
|
|
1722
|
+
onBlur: handleChange(fieldKey, "blur"),
|
|
1640
1723
|
isValid: valid[fieldKey],
|
|
1641
1724
|
errorMessage: fieldErrors[fieldKey],
|
|
1642
1725
|
label: labels[fieldKey],
|
|
1643
1726
|
helper: helperTexts[fieldKey],
|
|
1644
|
-
onKeyDown: handleKeyDown
|
|
1727
|
+
onKeyDown: handleKeyDown,
|
|
1728
|
+
transformInput: fieldsTransformInput[fieldKey],
|
|
1729
|
+
transformMode: fieldsTransformMode[fieldKey]
|
|
1645
1730
|
};
|
|
1646
1731
|
}
|
|
1647
1732
|
});
|
|
@@ -1772,7 +1857,7 @@ const defaultFieldConfig = {
|
|
|
1772
1857
|
})
|
|
1773
1858
|
};
|
|
1774
1859
|
function BusinessInformation({ fetching, selectedBusiness }) {
|
|
1775
|
-
const {
|
|
1860
|
+
const { t } = useTranslation(["common", "business"]);
|
|
1776
1861
|
const businessInformationClasses = cx("adyen-kyc-business-information", {
|
|
1777
1862
|
"adyen-kyc-business-information--fetching": fetching
|
|
1778
1863
|
});
|
|
@@ -1794,20 +1879,20 @@ function BusinessInformation({ fetching, selectedBusiness }) {
|
|
|
1794
1879
|
},
|
|
1795
1880
|
[
|
|
1796
1881
|
{
|
|
1797
|
-
term:
|
|
1882
|
+
term: t(($) => $["legalForm"], { ns: "common" }),
|
|
1798
1883
|
details: ""
|
|
1799
1884
|
},
|
|
1800
1885
|
{
|
|
1801
|
-
term:
|
|
1886
|
+
term: t(($) => $["legalCompanyName__US"], { ns: "common" }),
|
|
1802
1887
|
details: ""
|
|
1803
1888
|
},
|
|
1804
1889
|
{
|
|
1805
|
-
term:
|
|
1890
|
+
term: t(($) => $["address"], { ns: "common" }),
|
|
1806
1891
|
details: ""
|
|
1807
1892
|
}
|
|
1808
1893
|
]
|
|
1809
1894
|
).filter((item) => !!item.details) : [],
|
|
1810
|
-
[selectedBusiness,
|
|
1895
|
+
[selectedBusiness, t]
|
|
1811
1896
|
);
|
|
1812
1897
|
if (fetching) {
|
|
1813
1898
|
return /* @__PURE__ */ jsx("div", { className: businessInformationClasses, children: /* @__PURE__ */ jsx(Loader, { size: "large" }) });
|
|
@@ -1830,7 +1915,7 @@ function BusinessInformationCard({
|
|
|
1830
1915
|
handleConfirmSelection,
|
|
1831
1916
|
handleBackClick
|
|
1832
1917
|
}) {
|
|
1833
|
-
const {
|
|
1918
|
+
const { t } = useTranslation(["common", "business"]);
|
|
1834
1919
|
const excludeResultAsGovernmentEntity = useMemo(
|
|
1835
1920
|
() => isBankAccountRequestedForOrganization.value && currentBusinessSelection?.organizationType === "GOVERNMENTAL_ORGANIZATION",
|
|
1836
1921
|
[currentBusinessSelection]
|
|
@@ -1862,7 +1947,7 @@ function BusinessInformationCard({
|
|
|
1862
1947
|
onClick: () => handleConfirmSelection(currentBusinessSelection),
|
|
1863
1948
|
testId: "selectBusiness",
|
|
1864
1949
|
disabled: invalidTin,
|
|
1865
|
-
children:
|
|
1950
|
+
children: t(($) => $["thisIsMyBusiness"], { ns: "business" })
|
|
1866
1951
|
}
|
|
1867
1952
|
) : null,
|
|
1868
1953
|
onClick: () => handleSelectBusiness(result),
|
|
@@ -1874,8 +1959,8 @@ function BusinessInformationCard({
|
|
|
1874
1959
|
{
|
|
1875
1960
|
variant: "warning",
|
|
1876
1961
|
type: "callToAction",
|
|
1877
|
-
title:
|
|
1878
|
-
actions: /* @__PURE__ */ jsx(Button, { testId: "backBtn", onClick: handleGoBack, variant: "link", children:
|
|
1962
|
+
title: t(($) => $["businessSelection__invalidTin"], { ns: "business" }),
|
|
1963
|
+
actions: /* @__PURE__ */ jsx(Button, { testId: "backBtn", onClick: handleGoBack, variant: "link", children: t(($) => $["back"], { ns: "common" }) }),
|
|
1879
1964
|
testId: "invalidTin"
|
|
1880
1965
|
}
|
|
1881
1966
|
),
|
|
@@ -1884,14 +1969,14 @@ function BusinessInformationCard({
|
|
|
1884
1969
|
{
|
|
1885
1970
|
variant: "info",
|
|
1886
1971
|
type: "callToAction",
|
|
1887
|
-
title:
|
|
1972
|
+
title: t(($) => $["businessSelection__failedToLoad"], { ns: "business" }),
|
|
1888
1973
|
actions: /* @__PURE__ */ jsx(
|
|
1889
1974
|
Button,
|
|
1890
1975
|
{
|
|
1891
1976
|
testId: "reloadBusiness",
|
|
1892
1977
|
onClick: () => refetchCompanySelection(),
|
|
1893
1978
|
variant: "link",
|
|
1894
|
-
children:
|
|
1979
|
+
children: t(($) => $["tryAgain"], { ns: "common" })
|
|
1895
1980
|
}
|
|
1896
1981
|
),
|
|
1897
1982
|
testId: "failedToLoad"
|
|
@@ -1902,8 +1987,10 @@ function BusinessInformationCard({
|
|
|
1902
1987
|
{
|
|
1903
1988
|
variant: "info",
|
|
1904
1989
|
type: "callToAction",
|
|
1905
|
-
title:
|
|
1906
|
-
|
|
1990
|
+
title: t(($) => $["businessSelection__unableToOnboardGovernmentEntity"], {
|
|
1991
|
+
ns: "business"
|
|
1992
|
+
}),
|
|
1993
|
+
actions: /* @__PURE__ */ jsx(Button, { onClick: handleGoBack, variant: "link", children: t(($) => $["goBack"], { ns: "common" }) })
|
|
1907
1994
|
}
|
|
1908
1995
|
),
|
|
1909
1996
|
!fetchingError && !excludeResultAsGovernmentEntity && /* @__PURE__ */ jsx(BusinessInformation, { fetching, selectedBusiness: currentBusinessSelection })
|
|
@@ -1920,9 +2007,12 @@ function BusinessSelection({
|
|
|
1920
2007
|
setIsBusinessSelection,
|
|
1921
2008
|
setShowCompanyStructure
|
|
1922
2009
|
}) {
|
|
1923
|
-
const {
|
|
2010
|
+
const { t } = useTranslation(["common", "business"]);
|
|
1924
2011
|
const userEvents = useAnalyticsContext();
|
|
1925
2012
|
const { basicInformation } = useGlobalData();
|
|
2013
|
+
const {
|
|
2014
|
+
state: { currentState }
|
|
2015
|
+
} = useStateContext();
|
|
1926
2016
|
const [selectedBusinessId, setSelectedBusinessId] = useState();
|
|
1927
2017
|
const [fetchParams, setFetchParams] = useState();
|
|
1928
2018
|
const {
|
|
@@ -1939,7 +2029,7 @@ function BusinessSelection({
|
|
|
1939
2029
|
if (businessData?.tinMatched === true && !verifiedBusiness.value) {
|
|
1940
2030
|
userEvents.addPageEvent("Success", {
|
|
1941
2031
|
actionType: "select",
|
|
1942
|
-
|
|
2032
|
+
returnValue: "companySelection"
|
|
1943
2033
|
});
|
|
1944
2034
|
if (!businessData?.legalForm) {
|
|
1945
2035
|
setShowCompanyStructure(true);
|
|
@@ -1962,7 +2052,10 @@ function BusinessSelection({
|
|
|
1962
2052
|
if ((!selectedBusinessId || selectedBusinessId !== result.id) && currentTin) {
|
|
1963
2053
|
userEvents.addPageEvent("Clicked button", {
|
|
1964
2054
|
actionType: "select",
|
|
1965
|
-
label: "selectBusiness"
|
|
2055
|
+
label: "selectBusiness",
|
|
2056
|
+
additionalData: {
|
|
2057
|
+
companyIdx: searchResults?.findIndex((searchResult) => searchResult.id === result.id)
|
|
2058
|
+
}
|
|
1966
2059
|
});
|
|
1967
2060
|
setSelectedBusinessId(result.id);
|
|
1968
2061
|
setFetchParams({
|
|
@@ -1973,7 +2066,7 @@ function BusinessSelection({
|
|
|
1973
2066
|
});
|
|
1974
2067
|
}
|
|
1975
2068
|
},
|
|
1976
|
-
[basicInformation?.stateOrProvince, selectedBusinessId, currentTin, userEvents]
|
|
2069
|
+
[searchResults, basicInformation?.stateOrProvince, selectedBusinessId, currentTin, userEvents]
|
|
1977
2070
|
);
|
|
1978
2071
|
const handleConfirmSelection = async () => {
|
|
1979
2072
|
handleNextClick();
|
|
@@ -1985,12 +2078,23 @@ function BusinessSelection({
|
|
|
1985
2078
|
const loaderClasses = cx("adyen-kyc-business-selection__loader", {
|
|
1986
2079
|
"adyen-kyc-business-selection__loader--hide": !showLoader
|
|
1987
2080
|
});
|
|
2081
|
+
if (searchResults?.length) {
|
|
2082
|
+
const idxNameMatch = searchResults.findIndex(
|
|
2083
|
+
(result) => isNormalizedStringMatch(
|
|
2084
|
+
currentState?.data?.basicInformation?.legalCompanyName || "",
|
|
2085
|
+
result.name
|
|
2086
|
+
)
|
|
2087
|
+
);
|
|
2088
|
+
if (idxNameMatch > -1) {
|
|
2089
|
+
searchResults.unshift(searchResults.splice(idxNameMatch, 1)[0]);
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
1988
2092
|
if (searchResults?.length && !showCompanyStructure || showLoader) {
|
|
1989
2093
|
return /* @__PURE__ */ jsxs("div", { className: businessSelectionClasses, children: [
|
|
1990
2094
|
/* @__PURE__ */ jsx("div", { className: loaderClasses, "data-testId": "business-selection-loader", children: /* @__PURE__ */ jsx(Loader, { size: "large" }) }),
|
|
1991
2095
|
!!(searchResults?.length && !showCompanyStructure && !showLoader) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1992
|
-
/* @__PURE__ */ jsx(
|
|
1993
|
-
/* @__PURE__ */ jsx(
|
|
2096
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $["businessSelectionFormHeading"], { ns: "common" }) }),
|
|
2097
|
+
/* @__PURE__ */ jsx(StackLayout, { children: searchResults?.map((result) => /* @__PURE__ */ jsx(
|
|
1994
2098
|
BusinessInformationCard,
|
|
1995
2099
|
{
|
|
1996
2100
|
result,
|
|
@@ -2013,8 +2117,8 @@ function BusinessSelection({
|
|
|
2013
2117
|
color: "secondary",
|
|
2014
2118
|
className: "adyen-kyc-business-selection__footer",
|
|
2015
2119
|
children: [
|
|
2016
|
-
|
|
2017
|
-
/* @__PURE__ */ jsx(Button, { variant: "link", onClick: proceedToManualDataEntry, testId: "manualDataEntry", children:
|
|
2120
|
+
t(($) => $["businessSelection__footer"], { ns: "business" }),
|
|
2121
|
+
/* @__PURE__ */ jsx(Button, { variant: "link", onClick: proceedToManualDataEntry, testId: "manualDataEntry", children: t(($) => $["businessSelection__footerButton"], { ns: "business" }) })
|
|
2018
2122
|
]
|
|
2019
2123
|
}
|
|
2020
2124
|
)
|
|
@@ -2287,20 +2391,7 @@ function BasicInformation({
|
|
|
2287
2391
|
fieldProblems: formFieldProblems,
|
|
2288
2392
|
country,
|
|
2289
2393
|
formUtils,
|
|
2290
|
-
|
|
2291
|
-
jaHaniLegalCompanyName: {
|
|
2292
|
-
onInput: handleChangeFor("jaHaniLegalCompanyName", "input"),
|
|
2293
|
-
onBlur: handleChangeFor("jaHaniLegalCompanyName", "blur")
|
|
2294
|
-
},
|
|
2295
|
-
jaKanaLegalCompanyName: {
|
|
2296
|
-
onInput: handleChangeFor("jaKanaLegalCompanyName", "input"),
|
|
2297
|
-
onBlur: handleChangeFor("jaKanaLegalCompanyName", "blur")
|
|
2298
|
-
},
|
|
2299
|
-
legalCompanyName: {
|
|
2300
|
-
onInput: handleChangeFor("legalCompanyName", "input"),
|
|
2301
|
-
onBlur: handleChangeFor("legalCompanyName", "blur")
|
|
2302
|
-
}
|
|
2303
|
-
}
|
|
2394
|
+
handleChange: handleChangeFor
|
|
2304
2395
|
});
|
|
2305
2396
|
if (showBusinessSelection) {
|
|
2306
2397
|
return /* @__PURE__ */ jsx(
|
|
@@ -2317,7 +2408,7 @@ function BasicInformation({
|
|
|
2317
2408
|
);
|
|
2318
2409
|
}
|
|
2319
2410
|
return /* @__PURE__ */ jsxs("form", { id: BASIC_INFORMATION_FORM_ID, className: classNames, children: [
|
|
2320
|
-
/* @__PURE__ */ jsx(
|
|
2411
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading, children: /* @__PURE__ */ jsxs("template", { slot: "description", children: [
|
|
2321
2412
|
description,
|
|
2322
2413
|
" ",
|
|
2323
2414
|
/* @__PURE__ */ jsx(Link, { href: "https://www.adyen.com/privacy-policy", external: true, children: t(($) => $["privacyStatement"]) })
|
|
@@ -2382,6 +2473,8 @@ function BasicInformation({
|
|
|
2382
2473
|
readonly: field?.readonly,
|
|
2383
2474
|
onInput: field ? field.onInput : () => {
|
|
2384
2475
|
},
|
|
2476
|
+
transformInput: field?.transformInput,
|
|
2477
|
+
transformMode: field?.transformMode,
|
|
2385
2478
|
onBlur: field?.onBlur,
|
|
2386
2479
|
onKeyDown: field?.onKeyDown
|
|
2387
2480
|
}
|
|
@@ -2552,7 +2645,7 @@ function CompanyStructure({
|
|
|
2552
2645
|
showCompanyStructure,
|
|
2553
2646
|
shouldValidate
|
|
2554
2647
|
}) {
|
|
2555
|
-
const { t } = useTranslation("common");
|
|
2648
|
+
const { t } = useTranslation(["common", "business"]);
|
|
2556
2649
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
2557
2650
|
const { accountHolder } = useAccountHolder();
|
|
2558
2651
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -2616,7 +2709,7 @@ function CompanyStructure({
|
|
|
2616
2709
|
const companyTypeRadioOptions = canChangeEntityType && accountHolder !== "aTrust" ? companyTypeOptions.filter((companyType) => !excludedTypes.includes(companyType)) : companyTypeOptions;
|
|
2617
2710
|
const companyTypeExamples2 = useCompanyTypeExamples(country);
|
|
2618
2711
|
return /* @__PURE__ */ jsxs("form", { children: [
|
|
2619
|
-
/* @__PURE__ */ jsx(
|
|
2712
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading, description }),
|
|
2620
2713
|
/* @__PURE__ */ jsx(
|
|
2621
2714
|
ErrorPanel,
|
|
2622
2715
|
{
|
|
@@ -2641,8 +2734,8 @@ function CompanyStructure({
|
|
|
2641
2734
|
name: "entityType",
|
|
2642
2735
|
options: companyTypeRadioOptions,
|
|
2643
2736
|
optionId: (option) => companyTypeMetadata[option].id,
|
|
2644
|
-
optionName: (option) => companyTypeMetadata[option].name,
|
|
2645
|
-
optionDescription: (option) => companyTypeMetadata[option].description,
|
|
2737
|
+
optionName: (option) => t(($) => $[companyTypeMetadata[option].name], { ns: "business" }),
|
|
2738
|
+
optionDescription: (option) => t(($) => $[companyTypeMetadata[option].description], { ns: "business" }),
|
|
2646
2739
|
selected: formData.entityType,
|
|
2647
2740
|
onSelect: handleChangeFor("entityType"),
|
|
2648
2741
|
examples: companyTypeExamples2,
|
|
@@ -3080,7 +3173,7 @@ function BusinessSelectionMultiform({
|
|
|
3080
3173
|
handleBackClick,
|
|
3081
3174
|
setLoadingStatus
|
|
3082
3175
|
}) {
|
|
3083
|
-
const { t } = useTranslation("common");
|
|
3176
|
+
const { t } = useTranslation(["common", "business"]);
|
|
3084
3177
|
const { form } = useFormContext();
|
|
3085
3178
|
const queryClient = useQueryClient();
|
|
3086
3179
|
const userEvents = useAnalyticsContext();
|
|
@@ -3107,7 +3200,7 @@ function BusinessSelectionMultiform({
|
|
|
3107
3200
|
tinMatched.value = true;
|
|
3108
3201
|
userEvents.addPageEvent("Success", {
|
|
3109
3202
|
actionType: "select",
|
|
3110
|
-
|
|
3203
|
+
returnValue: "companySelection"
|
|
3111
3204
|
});
|
|
3112
3205
|
verifiedBusiness.value = businessData;
|
|
3113
3206
|
} else {
|
|
@@ -3164,7 +3257,12 @@ function BusinessSelectionMultiform({
|
|
|
3164
3257
|
if ((!selectedBusinessId || selectedBusinessId !== result.id) && currentTin) {
|
|
3165
3258
|
userEvents.addPageEvent("Clicked button", {
|
|
3166
3259
|
actionType: "select",
|
|
3167
|
-
label: "selectBusiness"
|
|
3260
|
+
label: "selectBusiness",
|
|
3261
|
+
additionalData: {
|
|
3262
|
+
companyIdx: companySearchResponse?.results.findIndex(
|
|
3263
|
+
(searchResult) => searchResult.id === result.id
|
|
3264
|
+
)
|
|
3265
|
+
}
|
|
3168
3266
|
});
|
|
3169
3267
|
setSelectedBusinessId(result.id);
|
|
3170
3268
|
setFetchParams({
|
|
@@ -3246,7 +3344,7 @@ function BusinessSelectionMultiform({
|
|
|
3246
3344
|
verificationErrors
|
|
3247
3345
|
]);
|
|
3248
3346
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-business-selection", children: /* @__PURE__ */ jsxs(LoaderWrapper, { loaderSize: "large", status: searching ? "loading" : "success", children: [
|
|
3249
|
-
/* @__PURE__ */ jsx(
|
|
3347
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $[heading]) }),
|
|
3250
3348
|
/* @__PURE__ */ jsx(
|
|
3251
3349
|
ErrorPanel,
|
|
3252
3350
|
{
|
|
@@ -3256,7 +3354,7 @@ function BusinessSelectionMultiform({
|
|
|
3256
3354
|
formUtils
|
|
3257
3355
|
}
|
|
3258
3356
|
),
|
|
3259
|
-
/* @__PURE__ */ jsx(
|
|
3357
|
+
/* @__PURE__ */ jsx(StackLayout, { children: companySearchResponse?.results?.map((result) => /* @__PURE__ */ jsx(
|
|
3260
3358
|
BusinessInformationCard,
|
|
3261
3359
|
{
|
|
3262
3360
|
result,
|
|
@@ -3273,8 +3371,8 @@ function BusinessSelectionMultiform({
|
|
|
3273
3371
|
result.id
|
|
3274
3372
|
)) }),
|
|
3275
3373
|
/* @__PURE__ */ jsxs(Typography, { el: "span", color: "secondary", className: "adyen-kyc-business-selection__footer", children: [
|
|
3276
|
-
t(($) => $["businessSelection__footer"]),
|
|
3277
|
-
/* @__PURE__ */ jsx(Button, { variant: "link", onClick: proceedToManualDataEntry, testId: "manualDataEntry", children: t(($) => $["businessSelection__footerButton"]) })
|
|
3374
|
+
t(($) => $["businessSelection__footer"], { ns: "business" }),
|
|
3375
|
+
/* @__PURE__ */ jsx(Button, { variant: "link", onClick: proceedToManualDataEntry, testId: "manualDataEntry", children: t(($) => $["businessSelection__footerButton"], { ns: "business" }) })
|
|
3278
3376
|
] })
|
|
3279
3377
|
] }) });
|
|
3280
3378
|
}
|
|
@@ -3624,6 +3722,18 @@ const mapAdditionalInformation = (data, legalEntity) => {
|
|
|
3624
3722
|
);
|
|
3625
3723
|
const vatNumberType = getDefaultVatNumberType(entity?.vatNumber, currentCountry);
|
|
3626
3724
|
const operationalAddressIsSame = entity?.principalPlaceOfBusiness && !objectsDeepEqual(entity?.principalPlaceOfBusiness, entity?.registeredAddress) ? operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME : operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
|
|
3725
|
+
if (entity?.registeredAddress?.localization) {
|
|
3726
|
+
data.registrationAddress = {
|
|
3727
|
+
...data.registrationAddress,
|
|
3728
|
+
...mapAddressLocalizationToJpAddressSchema(entity.registeredAddress.localization)
|
|
3729
|
+
};
|
|
3730
|
+
}
|
|
3731
|
+
if (entity?.principalPlaceOfBusiness?.localization) {
|
|
3732
|
+
data.operationalAddress = {
|
|
3733
|
+
...data.operationalAddress,
|
|
3734
|
+
...mapAddressLocalizationToJpAddressSchema(entity.principalPlaceOfBusiness.localization)
|
|
3735
|
+
};
|
|
3736
|
+
}
|
|
3627
3737
|
const result = entriesOf(data).reduce(
|
|
3628
3738
|
(acc, [field]) => {
|
|
3629
3739
|
if (!COUNTRIES_USING_COMPANY_SEARCH.includes(currentCountry)) {
|
|
@@ -3644,7 +3754,7 @@ const mapAdditionalInformation = (data, legalEntity) => {
|
|
|
3644
3754
|
);
|
|
3645
3755
|
return { ...result, ...dbaNameFields, ...isUen };
|
|
3646
3756
|
};
|
|
3647
|
-
const
|
|
3757
|
+
const mapLegalNameLocalization = (data) => {
|
|
3648
3758
|
const localization = data.organization?.localization;
|
|
3649
3759
|
if (!localization) return {};
|
|
3650
3760
|
let result = {};
|
|
@@ -3719,7 +3829,7 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity, isExpe
|
|
|
3719
3829
|
...componentData,
|
|
3720
3830
|
[key]: {
|
|
3721
3831
|
...mapBasicInformation(businessDetailsSchema[key]),
|
|
3722
|
-
...
|
|
3832
|
+
...mapLegalNameLocalization(legalEntity)
|
|
3723
3833
|
}
|
|
3724
3834
|
};
|
|
3725
3835
|
}
|
|
@@ -3892,7 +4002,7 @@ const setRemovedFieldsOnSchemaToDeletedValue = (newData, existingData) => {
|
|
|
3892
4002
|
return { ...adjusted, [formId]: adjustFormData(oldFormData, newFormData) };
|
|
3893
4003
|
}, {});
|
|
3894
4004
|
};
|
|
3895
|
-
const formatFinancialInformationSummary = (data,
|
|
4005
|
+
const formatFinancialInformationSummary = (data, language, country, dateOfIncorporation) => {
|
|
3896
4006
|
let summary;
|
|
3897
4007
|
if (!data) return void 0;
|
|
3898
4008
|
if (dateOfIncorporation && !isDateOlderThanAYear(dateOfIncorporation)) {
|
|
@@ -3912,11 +4022,11 @@ const formatFinancialInformationSummary = (data, i18n, country, dateOfIncorporat
|
|
|
3912
4022
|
if (data.balanceSheetTotal) {
|
|
3913
4023
|
summary.balanceSheetTotal = summaryItem(
|
|
3914
4024
|
"balanceSheetTotal",
|
|
3915
|
-
formatCurrency(data.balanceSheetTotal, data.currency,
|
|
4025
|
+
formatCurrency(data.balanceSheetTotal, data.currency, language)
|
|
3916
4026
|
);
|
|
3917
4027
|
}
|
|
3918
4028
|
if (data.annualTurnover) {
|
|
3919
|
-
summary.annualTurnover = formatCurrency(data.annualTurnover, data.currency,
|
|
4029
|
+
summary.annualTurnover = formatCurrency(data.annualTurnover, data.currency, language);
|
|
3920
4030
|
}
|
|
3921
4031
|
return summary;
|
|
3922
4032
|
};
|
|
@@ -4035,6 +4145,13 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
4035
4145
|
if (data.additionalInformation?.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME && entityObject.principalPlaceOfBusiness) {
|
|
4036
4146
|
entityObject.principalPlaceOfBusiness = entityObject.registeredAddress;
|
|
4037
4147
|
}
|
|
4148
|
+
if (entityObject.registeredAddress) {
|
|
4149
|
+
const addressLocalizations = mapJpAddressSchemaToAddressLocalizations(
|
|
4150
|
+
data.additionalInformation?.registrationAddress
|
|
4151
|
+
);
|
|
4152
|
+
if (addressLocalizations.length > 0)
|
|
4153
|
+
entityObject.registeredAddress.localization = addressLocalizations;
|
|
4154
|
+
}
|
|
4038
4155
|
if (!isEmpty$1(data.companyFinancialInformation)) {
|
|
4039
4156
|
const isIncorporationDateDependencyEnabled = isExperimentEnabled(
|
|
4040
4157
|
"EnableIncorporationDateBasedFinancialValidationForHO"
|
|
@@ -4098,7 +4215,7 @@ const formatBasicInformation = (data, datasetUtils, companyType, isCountryOfGove
|
|
|
4098
4215
|
countryOfGoverningLaw: datasetUtils.getCountryName(countryOfGoverningLaw)
|
|
4099
4216
|
};
|
|
4100
4217
|
};
|
|
4101
|
-
const formatAdditionalInformation = (data, country, companyType,
|
|
4218
|
+
const formatAdditionalInformation = (data, country, companyType, t) => {
|
|
4102
4219
|
const registrationNumberLabel = resolveFieldMetadata(
|
|
4103
4220
|
registrationNumberDefaultFieldConfig[country],
|
|
4104
4221
|
{
|
|
@@ -4123,7 +4240,7 @@ const formatAdditionalInformation = (data, country, companyType, i18n) => {
|
|
|
4123
4240
|
[registrationNumberLabel]: data.registrationNumber,
|
|
4124
4241
|
[taxIdLabel]: data.isUen ? void 0 : data.taxInformation?.find((taxId) => country === taxId.country)?.number,
|
|
4125
4242
|
["vatNumber"]: data.vatNumber,
|
|
4126
|
-
["vatAbsenceReason"]: data.vatAbsenceReason ?
|
|
4243
|
+
["vatAbsenceReason"]: data.vatAbsenceReason ? t(($) => $[data.vatAbsenceReason], { ns: "common" }) : void 0,
|
|
4127
4244
|
["dateOfIncorporation"]: data.dateOfIncorporation,
|
|
4128
4245
|
["stockExchangeMIC"]: data.stockExchangeMIC,
|
|
4129
4246
|
["stockISIN"]: data.stockISIN,
|
|
@@ -4131,8 +4248,8 @@ const formatAdditionalInformation = (data, country, companyType, i18n) => {
|
|
|
4131
4248
|
["eInvoicingCode"]: data.eInvoicingCode
|
|
4132
4249
|
};
|
|
4133
4250
|
};
|
|
4134
|
-
const formatDataForSummary = (data, forms,
|
|
4135
|
-
const datasetUtils = datasetUtilities(
|
|
4251
|
+
const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) => {
|
|
4252
|
+
const datasetUtils = datasetUtilities(language);
|
|
4136
4253
|
return entriesOf(data).reduce((summaryData, [form]) => {
|
|
4137
4254
|
if (!form || !data[form]) return summaryData;
|
|
4138
4255
|
const isCountryOfGoverningLawEnabled = isExperimentEnabled(
|
|
@@ -4153,8 +4270,11 @@ const formatDataForSummary = (data, forms, i18n, isExperimentEnabled) => {
|
|
|
4153
4270
|
return {
|
|
4154
4271
|
...summaryData,
|
|
4155
4272
|
[form]: {
|
|
4156
|
-
entityType:
|
|
4157
|
-
companyTypeMetadata[data[
|
|
4273
|
+
entityType: t(
|
|
4274
|
+
($) => $[companyTypeMetadata[data["companyStructure"]?.entityType]?.name],
|
|
4275
|
+
{
|
|
4276
|
+
ns: "business"
|
|
4277
|
+
}
|
|
4158
4278
|
)
|
|
4159
4279
|
}
|
|
4160
4280
|
};
|
|
@@ -4167,10 +4287,10 @@ const formatDataForSummary = (data, forms, i18n, isExperimentEnabled) => {
|
|
|
4167
4287
|
data[form],
|
|
4168
4288
|
data.basicInformation?.country,
|
|
4169
4289
|
data.companyStructure?.entityType,
|
|
4170
|
-
|
|
4290
|
+
t
|
|
4171
4291
|
),
|
|
4172
|
-
registrationAddress: mapAddressLabels(data[form].registrationAddress, datasetUtils),
|
|
4173
|
-
operationalAddress: data[form].operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME ? mapAddressLabels(data[form].operationalAddress, datasetUtils) : void 0
|
|
4292
|
+
registrationAddress: data.basicInformation?.country === CountryCodes.Japan ? mapJpAddressSummary(data[form].registrationAddress, datasetUtils) : mapAddressLabels(data[form].registrationAddress, datasetUtils),
|
|
4293
|
+
operationalAddress: data[form].operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME ? data.basicInformation?.country === CountryCodes.Japan ? mapJpAddressSummary(data[form].operationalAddress, datasetUtils) : mapAddressLabels(data[form].operationalAddress, datasetUtils) : void 0
|
|
4174
4294
|
}
|
|
4175
4295
|
};
|
|
4176
4296
|
case "companyRegistrationDocument":
|
|
@@ -4231,7 +4351,7 @@ const formatDataForSummary = (data, forms, i18n, isExperimentEnabled) => {
|
|
|
4231
4351
|
...summaryData,
|
|
4232
4352
|
[form]: formatFinancialInformationSummary(
|
|
4233
4353
|
data[form],
|
|
4234
|
-
|
|
4354
|
+
language,
|
|
4235
4355
|
data?.basicInformation?.country,
|
|
4236
4356
|
isIncorporationDateDependencyEnabled ? data?.additionalInformation?.dateOfIncorporation : void 0
|
|
4237
4357
|
)
|
|
@@ -4287,7 +4407,7 @@ async function submit({
|
|
|
4287
4407
|
accountHolder,
|
|
4288
4408
|
forms,
|
|
4289
4409
|
documentUtils,
|
|
4290
|
-
|
|
4410
|
+
t,
|
|
4291
4411
|
showToast,
|
|
4292
4412
|
setLoadingStatus,
|
|
4293
4413
|
setProblems,
|
|
@@ -4413,13 +4533,19 @@ async function submit({
|
|
|
4413
4533
|
userEvents
|
|
4414
4534
|
});
|
|
4415
4535
|
userEvents?.addTaskEvent("Success", trackingPayload);
|
|
4416
|
-
showToast({
|
|
4536
|
+
showToast({
|
|
4537
|
+
label: t(($) => $["successfullyUpdatedDetails"], { ns: "common" }),
|
|
4538
|
+
variant: "success"
|
|
4539
|
+
});
|
|
4417
4540
|
onExternalSubmit?.(data);
|
|
4418
4541
|
} catch (err) {
|
|
4419
4542
|
if (isValidationError(err)) {
|
|
4420
4543
|
const getErrors = processValidationErrors(err, TaskTypes.BUSINESS_DETAILS);
|
|
4421
4544
|
if (getErrors && !Object.keys(getErrors).length) {
|
|
4422
|
-
showToast({
|
|
4545
|
+
showToast({
|
|
4546
|
+
label: t(($) => $["failedToUpdateDetails"], { ns: "common" }),
|
|
4547
|
+
variant: "error"
|
|
4548
|
+
});
|
|
4423
4549
|
const unmappedErrorNames = err.invalidFields?.map((field) => field.name).filter(Boolean) ?? [];
|
|
4424
4550
|
if (unmappedErrorNames.length) {
|
|
4425
4551
|
trackingPayload = {
|
|
@@ -4436,13 +4562,16 @@ async function submit({
|
|
|
4436
4562
|
}
|
|
4437
4563
|
if (isMaintenanceModeError(err)) {
|
|
4438
4564
|
showToast({
|
|
4439
|
-
label:
|
|
4565
|
+
label: t(($) => $["maintenanceModeMessage"], { ns: "common" }),
|
|
4440
4566
|
variant: "error",
|
|
4441
4567
|
duration: "indefinite"
|
|
4442
4568
|
});
|
|
4443
4569
|
}
|
|
4444
4570
|
if (!isValidationError(err) && !isMaintenanceModeError(err)) {
|
|
4445
|
-
showToast({
|
|
4571
|
+
showToast({
|
|
4572
|
+
label: t(($) => $["failedToUpdateDetails"], { ns: "common" }),
|
|
4573
|
+
variant: "error"
|
|
4574
|
+
});
|
|
4446
4575
|
}
|
|
4447
4576
|
logger2.error(err);
|
|
4448
4577
|
userEvents?.addTaskEvent("Encountered error", {
|
|
@@ -4483,7 +4612,7 @@ function BusinessDetailsDropin({
|
|
|
4483
4612
|
const formRef = useRef(null);
|
|
4484
4613
|
const { accountHolder, setAccountHolder } = useAccountHolder();
|
|
4485
4614
|
const { showToast } = useToastContext();
|
|
4486
|
-
const { i18n } =
|
|
4615
|
+
const { t, i18n } = useTranslation(["common", "business"]);
|
|
4487
4616
|
const userEvents = useAnalyticsContext();
|
|
4488
4617
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
4489
4618
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -4566,7 +4695,10 @@ function BusinessDetailsDropin({
|
|
|
4566
4695
|
)
|
|
4567
4696
|
);
|
|
4568
4697
|
}).catch(
|
|
4569
|
-
() => showToast({
|
|
4698
|
+
() => showToast({
|
|
4699
|
+
label: t(($) => $["failedToFetchRelevantDocuments"], { ns: "common" }),
|
|
4700
|
+
variant: "error"
|
|
4701
|
+
})
|
|
4570
4702
|
);
|
|
4571
4703
|
}, []);
|
|
4572
4704
|
const parseConfiguration = useCallback(
|
|
@@ -4650,7 +4782,6 @@ function BusinessDetailsDropin({
|
|
|
4650
4782
|
);
|
|
4651
4783
|
const companySearchResults = companySearchResponse?.results;
|
|
4652
4784
|
const businessName = currentState?.data?.basicInformation?.legalCompanyName || "";
|
|
4653
|
-
const nameMatch = isNormalizedStringMatch(businessName, companySearchResults?.[0]?.name ?? "");
|
|
4654
4785
|
const taxInformation = currentState?.data?.basicInformation?.taxInformation;
|
|
4655
4786
|
const tin = taxInformation?.find((taxId) => currentCountry === taxId.country)?.number || "";
|
|
4656
4787
|
const [prevCompanySearchResults, setPrevCompanySearchResults] = useState(companySearchResults);
|
|
@@ -4658,7 +4789,7 @@ function BusinessDetailsDropin({
|
|
|
4658
4789
|
if (!searchingCompanies && companySearchResults) {
|
|
4659
4790
|
userEvents.addPageEvent("Success", {
|
|
4660
4791
|
actionType: "submit",
|
|
4661
|
-
|
|
4792
|
+
returnValue: "companySearch",
|
|
4662
4793
|
additionalData: {
|
|
4663
4794
|
numberOfResults: companySearchResults.length
|
|
4664
4795
|
},
|
|
@@ -4711,12 +4842,12 @@ function BusinessDetailsDropin({
|
|
|
4711
4842
|
]);
|
|
4712
4843
|
const summaryData = useMemo(
|
|
4713
4844
|
() => ({
|
|
4714
|
-
data: formatDataForSummary(currentState.data, forms, i18n, isExperimentEnabled),
|
|
4845
|
+
data: formatDataForSummary(currentState.data, forms, t, i18n.language, isExperimentEnabled),
|
|
4715
4846
|
omitted: {
|
|
4716
4847
|
keys: ["operationalAddressIsSame"]
|
|
4717
4848
|
}
|
|
4718
4849
|
}),
|
|
4719
|
-
[currentState.data, forms, i18n, isExperimentEnabled]
|
|
4850
|
+
[currentState.data, forms, t, i18n.language, isExperimentEnabled]
|
|
4720
4851
|
);
|
|
4721
4852
|
const canSubmitForm = useMemo(
|
|
4722
4853
|
() => canSubmit(currentState.data) && hasDataChanged(initialData, currentState.data),
|
|
@@ -4739,7 +4870,7 @@ function BusinessDetailsDropin({
|
|
|
4739
4870
|
accountHolder: accountHolder ?? "theCompanyIWorkFor",
|
|
4740
4871
|
forms,
|
|
4741
4872
|
documentUtils,
|
|
4742
|
-
|
|
4873
|
+
t,
|
|
4743
4874
|
showToast,
|
|
4744
4875
|
setLoadingStatus,
|
|
4745
4876
|
setProblems: setCurrentProblems,
|
|
@@ -4762,7 +4893,7 @@ function BusinessDetailsDropin({
|
|
|
4762
4893
|
taskType,
|
|
4763
4894
|
forms,
|
|
4764
4895
|
documentUtils,
|
|
4765
|
-
|
|
4896
|
+
t,
|
|
4766
4897
|
showToast,
|
|
4767
4898
|
updateLegalEntity,
|
|
4768
4899
|
createLegalEntity,
|
|
@@ -4825,7 +4956,7 @@ function BusinessDetailsDropin({
|
|
|
4825
4956
|
userEvents
|
|
4826
4957
|
]);
|
|
4827
4958
|
if (prevCompanySearchResults !== companySearchResults) {
|
|
4828
|
-
if (companySearchResults?.length === 1 &&
|
|
4959
|
+
if (companySearchResults?.length === 1 && isNormalizedStringMatch(businessName, companySearchResults[0].name)) {
|
|
4829
4960
|
setSingleCompanyDatasetParams({
|
|
4830
4961
|
company: companySearchResults[0],
|
|
4831
4962
|
state: currentState.data.basicInformation?.stateOrProvince,
|
|
@@ -5056,10 +5187,18 @@ function BusinessDetailsDropin({
|
|
|
5056
5187
|
businessMismatchModalOpen2 && /* @__PURE__ */ jsx(
|
|
5057
5188
|
Confirm,
|
|
5058
5189
|
{
|
|
5059
|
-
title:
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5190
|
+
title: t(($) => $["businessSelection__tinVerificationFailureModalHeader"], {
|
|
5191
|
+
ns: "business"
|
|
5192
|
+
}),
|
|
5193
|
+
description: t(($) => $["businessSelection__tinVerificationFailureModalContent"], {
|
|
5194
|
+
ns: "business"
|
|
5195
|
+
}),
|
|
5196
|
+
cancelText: t(($) => $["businessSelection__tinVerificationFailureModalSecondaryButton"], {
|
|
5197
|
+
ns: "business"
|
|
5198
|
+
}),
|
|
5199
|
+
confirmText: t(($) => $["businessSelection__tinVerificationFailureModalPrimaryButton"], {
|
|
5200
|
+
ns: "business"
|
|
5201
|
+
}),
|
|
5063
5202
|
onCancel: handleBusinessMismatchCancel,
|
|
5064
5203
|
onConfirm: handleBusinessMismatchContinue
|
|
5065
5204
|
}
|
|
@@ -5069,34 +5208,38 @@ function BusinessDetailsDropin({
|
|
|
5069
5208
|
);
|
|
5070
5209
|
}
|
|
5071
5210
|
export {
|
|
5211
|
+
businessDetailsFieldsPerScenario as $,
|
|
5072
5212
|
ADDITIONAL_INFORMATION_FORM_ID as A,
|
|
5073
5213
|
BusinessSelectionMultiform as B,
|
|
5074
5214
|
COUNTRY_OF_GOVERNING_LAW_FIELD as C,
|
|
5075
5215
|
DATE_OF_INCORPORATION_FIELD as D,
|
|
5076
5216
|
EInvoicingCodeField as E,
|
|
5077
5217
|
FinancialInformation as F,
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5218
|
+
isVerifiedSingleCompanySearchResult as G,
|
|
5219
|
+
tinMatched as H,
|
|
5220
|
+
CountryOfGoverningLawFieldValidation as I,
|
|
5221
|
+
CountryFieldValidation as J,
|
|
5222
|
+
getForms as K,
|
|
5083
5223
|
LEGAL_FORM_FIELDS as L,
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5224
|
+
mapApiDocumentToBusinessDetailsDocuments as M,
|
|
5225
|
+
mapLegalEntityToBusinessDetailsSchema as N,
|
|
5226
|
+
financialInfoValidationWithEmployeesRules as O,
|
|
5087
5227
|
ProofOfOwnershipDocument as P,
|
|
5088
|
-
|
|
5228
|
+
CompanyStructureValidation as Q,
|
|
5089
5229
|
RegistrationDocument as R,
|
|
5090
5230
|
STOCK_EXCHANGE_MIC_FIELD as S,
|
|
5091
5231
|
TaxDocument as T,
|
|
5092
|
-
|
|
5232
|
+
businessMismatchModalOpen as U,
|
|
5093
5233
|
VerifiedBusinessCard as V,
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5234
|
+
formatDataForSummary as W,
|
|
5235
|
+
submit as X,
|
|
5236
|
+
useCompanySearch as Y,
|
|
5237
|
+
useVerifyTin as Z,
|
|
5238
|
+
useCompanySelection as _,
|
|
5099
5239
|
stockISINFieldMetadata as a,
|
|
5240
|
+
isNormalizedStringMatch as a0,
|
|
5241
|
+
KOMPANY_SEARCH_FAILURE as a1,
|
|
5242
|
+
BusinessDetailsDropin as a2,
|
|
5100
5243
|
stockExchangeMICFieldMetadata as b,
|
|
5101
5244
|
EINVOICING_CODE_FIELD as c,
|
|
5102
5245
|
dateOfIncorporationFieldMetadata as d,
|