@adyen/kyc-components 3.83.0 → 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-DuGvxDCD.js → AcceptTermsOfServiceComponent-CBGVGhCW.js} +21 -20
- package/dist/{AccountSetupRejected-WRvC8Lhx.js → AccountSetupRejected-iWgw_f_y.js} +6 -6
- package/dist/{Address-DzNHaLQd.js → Address-t4VOfLT-.js} +8 -8
- package/dist/{Alert-Ce3pDSUY.js → Alert-BeizfGIR.js} +2 -2
- package/dist/{Avatar-ERL8LlcN.js → Avatar-DuU-qQK8.js} +2 -2
- package/dist/{BusinessDetailsDropin-CdWljVO6.js → BusinessDetailsDropin-DvcYg_X0.js} +301 -158
- package/dist/BusinessFinancingComponent-CtKIHS5N.js +54 -0
- package/dist/{BusinessFinancingDropin-R940kp66.js → BusinessFinancingDropin-lPPamXGa.js} +113 -96
- package/dist/BusinessFinancingPage-Di-Nv2Ml.js +46 -0
- package/dist/{BusinessTypeSelectionPage-Dn1P9vc8.js → BusinessTypeSelectionPage-BXdmcFx7.js} +12 -12
- package/dist/{Card-Cma0bwYR.js → Card-B1eYN1iZ.js} +6 -4
- package/dist/{CountryField-DrB-OFMR.js → CountryField-DePvueIq.js} +268 -74
- package/dist/CreateIndividualComponent-BF8U9HmX.js +71 -0
- package/dist/CreateTransferInstrumentComponent-Rd6n91ch.js +66 -0
- package/dist/{Currency-DD63TDvu.js → Currency-CCNB-Owq.js} +6 -6
- package/dist/{CustomerSupport-Cs9YbnBI.js → CustomerSupport-dzWyAxLD.js} +10 -10
- package/dist/{DebugModal-AFNn6VI2.js → DebugModal-Db4z3HFJ.js} +7 -7
- package/dist/{DecisionMakerDetailsPage-CUAalT7g.js → DecisionMakerDetailsPage-CQ5uaVPM.js} +16 -10
- package/dist/DecisionMakers-BjZNaC3U.js +797 -0
- package/dist/{Dropzone-DXfuqm2D.js → Dropzone-DS3DzY-A.js} +4 -4
- package/dist/{EmbeddedStatus-BjGURjyl.js → EmbeddedStatus-COuKpXSJ.js} +15 -16
- package/dist/{EndStateLayout-BuVgF0ER.js → EndStateLayout-DHbUjBQL.js} +2 -2
- package/dist/{FormNavigation-DXaxaf1-.js → FormNavigation-C8985odz.js} +3 -3
- package/dist/{IndividualOnfidoDropin-fERsTakw.js → IndividualOnfidoDropin-BnPU46GN.js} +225 -393
- package/dist/{InputDate-By5i2Hlf.js → InputDate-BqYvvnqX.js} +2 -2
- package/dist/{InputText-CqLs_M75.js → InputText-rkMNHFYM.js} +4 -7
- package/dist/{Introduction-3UWByITz.js → Introduction-BsZibeHx.js} +4 -5
- package/dist/{JpAddress-C0iTeXx7.js → JpAddress-7_Wvn6w-.js} +27 -10
- package/dist/{LegalRepresentativeDetailsPage-DSppGGc6.js → LegalRepresentativeDetailsPage-BLoNELP2.js} +5 -6
- package/dist/ManageIndividualComponent-DuMx-hok.js +46 -0
- package/dist/ManageTermsOfServiceComponent-BPJJxecg.js +58 -0
- package/dist/{ManageTransferInstrumentComponent-muOE0ZjV.js → ManageTransferInstrumentComponent-D13HhKpC.js} +17 -17
- package/dist/{MaskedInput-OYLtVOZ6.js → MaskedInput-DK17jkn8.js} +6 -6
- package/dist/{Modal-BaaNj5F-.js → Modal-CeWqn3jD.js} +2 -2
- package/dist/{OnboardingDropinComponent-DIf93Tzb.js → OnboardingDropinComponent-BlMzaK2Z.js} +745 -444
- package/dist/{PayoutDetailsDropin-DIJbRfg_.js → PayoutDetailsDropin-CxXIfBo2.js} +36 -39
- package/dist/{RadioGroup-QZCH1TCn.js → RadioGroup-CDIi5JOR.js} +7 -10
- package/dist/{RegistrationAddress-CbElOOZ6.js → RegistrationAddress-coO57t4c.js} +16 -22
- package/dist/{Review-1Y__iPB0.js → Review-BFb6Ykw1.js} +8 -8
- package/dist/{RootBusinessDetailsPage-Cy5mUuKv.js → RootBusinessDetailsPage-BsbiSuH4.js} +143 -81
- package/dist/{RootIndividualDetailsPage-BVr2fbYb.js → RootIndividualDetailsPage-BEe-U1FO.js} +5 -6
- package/dist/{SignPCIComponent-BcR2vNVB.js → SignPCIComponent-D5KQ4t2I.js} +10 -11
- package/dist/{SingpassSelection-DDG-DpRN.js → SingpassSelection-wIFBjJkx.js} +10 -10
- package/dist/SoleProprietorshipPage-BKxqOwer.js +49 -0
- package/dist/{SourceOfFundsPage-DF3muJcW.js → SourceOfFundsPage-B0js4JTw.js} +30 -57
- package/dist/{StepProgressIndicator-BUDjmmPK.js → StepProgressIndicator-axxG6zQK.js} +2 -2
- package/dist/{StoreProvider-DGxWcgrS.js → StoreProvider-BulXd4Hf.js} +659 -199
- package/dist/{TaskItemStatus-Clfh9v2q.js → TaskItemStatus-DykYxx-L.js} +3 -14
- package/dist/{TaxInformationField-Bu8s2JZA.js → TaxInformationField-vBwS4Gdq.js} +20 -19
- package/dist/{TaxReportingDropin-C1aPbXfp.js → TaxReportingDropin-T-05itkR.js} +60 -56
- package/dist/{TileGroup-AskMVW9b.js → TileGroup-CWIb67Fa.js} +4 -4
- package/dist/{TrustDetailsPage-S0YwnBAx.js → TrustDetailsPage-XpVwVUFb.js} +51 -44
- package/dist/TrustMemberCompanyPage-CPZ8ZzqF.js +60 -0
- package/dist/TrustMemberIndividualPage-um9OLnSy.js +66 -0
- package/dist/{UnincorporatedPartnershipIndividualPage-B_fmnaes.js → UnincorporatedPartnershipIndividualPage-CvQOUpDy.js} +5 -6
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DMBIT2KR.js → UnincorporatedPartnershipMemberCompanyPage-BPEUAWOw.js} +6 -7
- package/dist/{ViewVerificationStatusComponent-CivzRszd.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-B9jlnux-.js → analytics-_iYLDAnN.js} +2 -2
- package/dist/{bafinUtils-BJao1Xb_.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-BzmPcPW1.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-DN1hhEuf.js → getName-N_Hu5gE7.js} +2 -2
- package/dist/{hasDataChanged-Di3pJ9RD.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-CdgdGJSA.js → iframeWidget-iA0G4IZI.js} +4 -4
- package/dist/{isEmpty-Cg1sEY56.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-CjJb5ip4.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-Dww-3m9M.js → mapExistingFile-CZ8JIq0y.js} +4 -4
- package/dist/mapJpAddressSchemaToAddressLocalizations-CYDc6_WR.js +100 -0
- package/dist/mapLegalEntityToIndividualOnfidoSchema-DpDvE22C.js +203 -0
- package/dist/{mapTransferInstrumentToPayoutAccount-NoTqg5NI.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-4TEUMKya.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-Dsz7b4S_.js → types-DREIZpxT.js} +2 -2
- package/dist/{types-IWh9Nm-W.js → types-YZCbv6wT.js} +2 -2
- package/dist/{useAssociatedLegalEntity-CPl7E0oh.js → useAssociatedLegalEntity-CtPwbvkG.js} +1 -1
- package/dist/{useDataset-CYBhIC5y.js → useDataset-BhtLJw8i.js} +3 -3
- package/dist/{useForm-NtB5fMq5.js → useForm-CkDciBI3.js} +4 -4
- package/dist/{useGlobalData-COgPG9qd.js → useGlobalData-BUgIp9O-.js} +8 -11
- package/dist/{useOnboardingStatus-B8yCxKXz.js → useOnboardingStatus-C617NeV-.js} +1 -1
- package/dist/{useScenarios-DesE_Dem.js → useScenarios-pcYq7HkO.js} +2 -2
- package/dist/{useTermsOfServiceStatus-qtseJuA8.js → useTermsOfServiceStatus-DAhlGfSf.js} +1 -1
- package/dist/{useToastContext-D4w2gBxd.js → useToastContext-SPgtDHvP.js} +2 -5
- package/dist/{useUnincorporatedPartnershipMembers-FOg1r690.js → useUnincorporatedPartnershipMembers-AfBFy7Yl.js} +5 -5
- package/dist/{utils-B1i9qK_1.js → utils-C6VZF1lW.js} +10 -10
- package/dist/{utils-BMvr9mIu.js → utils-CfNHCh35.js} +16 -10
- package/dist/{utils-BnQGsYPp.js → utils-DKPIAe71.js} +2 -2
- package/dist/{validate-anwsdbQz.js → validate-0hhEAEOS.js} +8 -8
- package/dist/{validate-BiuAh7Ub.js → validate-nQU_m5nS.js} +2 -2
- package/dist/{validate-C6-L7Vfa.js → validate-zp9cKIZQ.js} +3 -6
- package/dist/{validationError-zbgp4iB7.js → validationError-C4LAQpBz.js} +2 -2
- package/package.json +70 -70
- package/dist/BusinessFinancingComponent-BdV2XNEs.js +0 -45
- package/dist/BusinessFinancingPage-CutMOZIo.js +0 -40
- package/dist/CreateIndividualComponent-DcwNaN_i.js +0 -72
- package/dist/CreateTransferInstrumentComponent-BFYc-5Zc.js +0 -67
- package/dist/DecisionMakers-c18dspZ1.js +0 -593
- package/dist/Link-CaxhkJ24.js +0 -35
- package/dist/ManageIndividualComponent-DBe5ValD.js +0 -47
- package/dist/ManageTermsOfServiceComponent-5GHjPbHb.js +0 -47
- package/dist/SoleProprietorshipPage-XnNdoc8n.js +0 -50
- package/dist/TaskStatusIndicator-CEZcV_gi.js +0 -69
- package/dist/TrustMemberCompanyPage-DVm9LzCY.js +0 -60
- package/dist/TrustMemberIndividualPage-BqncnJnj.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-BXWQCCfg.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-DTf0YGQw.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-C21WMjvq.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
package/dist/{OnboardingDropinComponent-DIf93Tzb.js → OnboardingDropinComponent-BlMzaK2Z.js}
RENAMED
|
@@ -2,38 +2,38 @@
|
|
|
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] = "235f9bdd-6c00-46ba-85c2-254d45a322cd", e._sentryDebugIdIdentifier = "sentry-dbid-235f9bdd-6c00-46ba-85c2-254d45a322cd");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper,
|
|
10
|
+
import { b as useApiContext, j as useQuery, k as httpPost, m as useSettingsContext, o as httpGet, p as getLegalRepresentative, c as useLegalEntity, q as skipToken, r as doesLegalEntityRequiresLegalRepresentative, u as useTranslation, B as Button, t as Svg, v as Skeleton, w as translateStringOrObject, x as Typography, y as LegalEntityTypes, z as isPartOfTrustFromLegalEntity, C as hasSolePropInLegalEntity, G as hasOwnEntityAssociationOfType, H as isEmptyEntity, J as EntityTypes, K as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, M as TaskTypes, N as createLogger, O as TaskStatuses, P as useAnalyticsContext, U as Icon, V as IconButton, W as noop, X as useExperimentsContext, Y as isInstantVerifiedAccount, Z as getObscuredAccountNumber, $ as useGetTaskStatus, R as ROOT_LE, L as Loader, a0 as useGlobalStore, a1 as isPartOfUnincorporatedPartnership, a2 as getOwnSignatories, a3 as getOwnDecisionMakersLegalEntityIds, a4 as getOwnSolePropProblems, a5 as getOwnTrustProblems, a6 as getOwnUnincorporatedPartnershipProblems, a7 as useMutation, a8 as entriesOf, a9 as isEmpty, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper, aa as getOwnEntityAssociations, ab as TrustMemberTypes, ac as CountryCodes, g as getLegalEntityCountry, ad as getDecisionMakerDescriptionMap, ae as TRUST_DEFAULT_DESCRIPTIONS_MAP, af as Trans, ag as DEFAULT_TRUST_MEMBER_REQUIREMENTS, ah as useI18nContext, ai as hasAllCapabilitiesResolved, aj as hasRejectedCapabilities, ak as objectsDeepEqual } from "./StoreProvider-BulXd4Hf.js";
|
|
11
11
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
12
|
-
import { b as useApiContext, j as useQuery, k as httpPost, m as useSettingsContext, o as httpGet, p as getLegalRepresentative, c as useLegalEntity, q as skipToken, r as doesLegalEntityRequiresLegalRepresentative, a as useTranslation, B as Button, t as Svg, v as Skeleton, w as translateStringOrObject, x as Typography, y as LegalEntityTypes, z as isPartOfTrustFromLegalEntity, C as hasSolePropInLegalEntity, G as hasOwnEntityAssociationOfType, H as isEmptyEntity, J as EntityTypes, K as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, M as TaskTypes, N as createLogger, O as TaskStatuses, P as IconButton, U as useAnalyticsContext, V as Icon, W as noop, X as useExperimentsContext, Y as isInstantVerifiedAccount, Z as getObscuredAccountNumber, _ as useGetTaskStatus, R as ROOT_LE, L as Loader, $ as useGlobalStore, a0 as isPartOfUnincorporatedPartnership, a1 as getOwnSignatories, a2 as getOwnDecisionMakersLegalEntityIds, a3 as getOwnSolePropProblems, a4 as getOwnTrustProblems, a5 as getOwnUnincorporatedPartnershipProblems, a6 as entriesOf, a7 as isEmpty, a8 as getOwnEntityAssociations, a9 as TrustMemberTypes, u as useI18nContext, aa as CountryCodes, g as getLegalEntityCountry, ab as getDecisionMakerDescriptionMap, ac as TRUST_DEFAULT_DESCRIPTIONS_MAP, ad as DEFAULT_TRUST_MEMBER_REQUIREMENTS, ae as hasAllCapabilitiesResolved, af as hasRejectedCapabilities, ag as objectsDeepEqual } from "./StoreProvider-DGxWcgrS.js";
|
|
13
12
|
import { lazy, Suspense } from "preact/compat";
|
|
14
13
|
import { useMemo, useCallback, useEffect, useState, useRef } from "preact/hooks";
|
|
15
|
-
import { u as useLocalStorage, a as useAccountHolder, b as useCapabilityProblems,
|
|
16
|
-
import { C as CompanyTypesValues, h as handleKeys, u as useSetting, L as LandingLayout, n as nameFields, M as MultiSelectList, m as makeSelectItemForRole, N as Name, a as useSingpassMyInfoLogin, i as isBafinSignatoryFlow, s as showIdNowModal } from "./bafinUtils-
|
|
17
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
14
|
+
import { u as useLocalStorage, a as useAccountHolder, b as useCapabilityProblems, I as Image, g as getProblemsForEntity, c as getPropsFromConfigurations, v as validateLegalCompanyName, d as validateNotEmptyOnBlur, e as validateLatinSpaceMarkPunctuationOnlyOnBlur, r as resolveFieldMetadata, R as RadioGroupCard, T as TextArea, C as ContextGuidance, f as TrustedFieldsProviders } from "./fieldConfigurations-BBmPG-CS.js";
|
|
15
|
+
import { C as CompanyTypesValues, h as handleKeys, u as useSetting, L as LandingLayout, n as nameFields, M as MultiSelectList, m as makeSelectItemForRole, N as Name, a as useSingpassMyInfoLogin, i as isBafinSignatoryFlow, s as showIdNowModal } from "./bafinUtils-DOsm2O1i.js";
|
|
16
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-CtPwbvkG.js";
|
|
18
17
|
import cx from "classnames";
|
|
19
|
-
import { a as Alert } from "./Alert-
|
|
20
|
-
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-
|
|
21
|
-
import { S as SettingNames, I as InputText } from "./InputText-
|
|
22
|
-
import { u as useToastContext } from "./useToastContext-
|
|
23
|
-
import {
|
|
18
|
+
import { a as Alert } from "./Alert-BeizfGIR.js";
|
|
19
|
+
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-DAhlGfSf.js";
|
|
20
|
+
import { S as SettingNames, I as InputText } from "./InputText-rkMNHFYM.js";
|
|
21
|
+
import { u as useToastContext } from "./useToastContext-SPgtDHvP.js";
|
|
22
|
+
import { S as StackLayout, L as List, m as mergeFieldMetadataIntoProps, c as createFormUtils, H as Header, a as Link, g as getRequiredForms, b as addValidityToForms, t as trackNavigation, u as useFormComposer, d as getFieldProps, E as ErrorPanel, C as CountryField, e as COUNTRY_FIELD, s as summaryItem, f as getRoleName, h as summaryStep, i as Summary, U as UnincorporatedPartnershipMemberTypes, j as getRoleTagVariant } from "./CountryField-DePvueIq.js";
|
|
23
|
+
import { C as Card, V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./Card-B1eYN1iZ.js";
|
|
24
24
|
import { signal } from "@preact/signals";
|
|
25
25
|
import { d as downloadFile } from "./file-CiG1D0zy.js";
|
|
26
|
-
import { A as Avatar } from "./Avatar-
|
|
27
|
-
import { L as LoaderWrapper, F as Field, S as Select, C as Checkbox, a as useForm } from "./useForm-
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { K as KEYBOARD_KEYS } from "./Modal-
|
|
33
|
-
import { g as getLegalEntityNameBasedOnType } from "./getName-
|
|
34
|
-
import { F as FormNavigation, A as ActionBar } from "./FormNavigation-
|
|
26
|
+
import { A as Avatar } from "./Avatar-DuU-qQK8.js";
|
|
27
|
+
import { L as LoaderWrapper, F as Field, S as Select, C as Checkbox, a as useForm } from "./useForm-CkDciBI3.js";
|
|
28
|
+
import { C as Confirm, S as StructuredList } from "./useDataset-BhtLJw8i.js";
|
|
29
|
+
import { T as TaskItemStatus } from "./TaskItemStatus-DykYxx-L.js";
|
|
30
|
+
import { u as useFormContext, a as useMultiForm, F as FormContextProvider, b as FormFlow, c as useCreateLegalEntity, d as useUpdateLegalEntity, R as RadioGroup } from "./RadioGroup-CDIi5JOR.js";
|
|
31
|
+
import { g as getAssociatedLeAnalyticsPayload } from "./analytics-_iYLDAnN.js";
|
|
32
|
+
import { K as KEYBOARD_KEYS, M as Modal } from "./Modal-CeWqn3jD.js";
|
|
33
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-N_Hu5gE7.js";
|
|
34
|
+
import { F as FormNavigation, A as ActionBar } from "./FormNavigation-C8985odz.js";
|
|
35
35
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
36
|
-
import { u as useUnincorporatedPartnershipMembers, d as deleteUnincorporatedPartnershipMember } from "./useUnincorporatedPartnershipMembers-
|
|
36
|
+
import { u as useUnincorporatedPartnershipMembers, d as deleteUnincorporatedPartnershipMember } from "./useUnincorporatedPartnershipMembers-AfBFy7Yl.js";
|
|
37
37
|
const getPciStatus = async (legalEntityId, baseUrl, data) => {
|
|
38
38
|
return httpPost(
|
|
39
39
|
{
|
|
@@ -122,7 +122,7 @@ const useCanSeeEntitySelection = (legalEntityId) => {
|
|
|
122
122
|
};
|
|
123
123
|
const providerButton = "adyen-kyc-provider-button";
|
|
124
124
|
const providerButtonDisplayName = "adyen-kyc-provider-button-display-name";
|
|
125
|
-
const styles$
|
|
125
|
+
const styles$b = {
|
|
126
126
|
providerButton,
|
|
127
127
|
providerButtonDisplayName
|
|
128
128
|
};
|
|
@@ -140,9 +140,9 @@ const ProviderButton = ({ provider, onClick }) => {
|
|
|
140
140
|
singpassMyInfo: t(($) => $["retrieveMyinfo"]),
|
|
141
141
|
singpassMyInfoBusiness: t(($) => $["retrieveMyinfoBusiness"])
|
|
142
142
|
};
|
|
143
|
-
return /* @__PURE__ */ jsx(Button, { onClick, fullWidth: true, variant: "secondary", children: /* @__PURE__ */ jsxs("div", { className: styles$
|
|
143
|
+
return /* @__PURE__ */ jsx(Button, { onClick, fullWidth: true, variant: "secondary", children: /* @__PURE__ */ jsxs("div", { className: styles$b.providerButton, children: [
|
|
144
144
|
buttonLabel[provider],
|
|
145
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
145
|
+
/* @__PURE__ */ jsx("span", { className: styles$b.providerButtonDisplayName, children: providerDisplayName[provider] }),
|
|
146
146
|
/* @__PURE__ */ jsx(Svg, { name: providerLogo[provider], type: "image" })
|
|
147
147
|
] }) });
|
|
148
148
|
};
|
|
@@ -234,6 +234,20 @@ const SingpassBanner = ({
|
|
|
234
234
|
}
|
|
235
235
|
);
|
|
236
236
|
};
|
|
237
|
+
const getBusinessLines = async (legalEntityId, baseUrl) => {
|
|
238
|
+
return httpGet({
|
|
239
|
+
baseUrl,
|
|
240
|
+
path: `legalEntities/${legalEntityId}/businessLines`
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
const useBusinessLines = (options) => {
|
|
244
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
245
|
+
return useQuery({
|
|
246
|
+
queryKey: ["businessLines"],
|
|
247
|
+
queryFn: () => getBusinessLines(rootLegalEntityId.value, baseUrl.value),
|
|
248
|
+
...options
|
|
249
|
+
});
|
|
250
|
+
};
|
|
237
251
|
const getPciQuestionnaire = async (legalEntityId, baseUrl, documentId) => {
|
|
238
252
|
return httpGet({
|
|
239
253
|
baseUrl,
|
|
@@ -426,7 +440,7 @@ function useDataMissingRemediations({
|
|
|
426
440
|
}
|
|
427
441
|
};
|
|
428
442
|
}
|
|
429
|
-
const logger$
|
|
443
|
+
const logger$3 = createLogger();
|
|
430
444
|
const normalizeTaskStatuses = (taskStatuses) => {
|
|
431
445
|
return taskStatuses?.statuses?.reduce((acc, currentTask) => {
|
|
432
446
|
const status = TaskStatuses[currentTask.status];
|
|
@@ -444,7 +458,7 @@ const getAccountTaskStatus = (accountId, payinPayoutTaskStatus) => {
|
|
|
444
458
|
const taskStatusEntries = payinPayoutTaskStatus?.taskStatusEntries;
|
|
445
459
|
const taskStatusEntry = taskStatusEntries?.find((entry) => entry.id.includes(accountId));
|
|
446
460
|
if (!taskStatusEntry) {
|
|
447
|
-
logger$
|
|
461
|
+
logger$3.warn(`No task status for this account: ${accountId}`);
|
|
448
462
|
return payinPayoutTaskStatus?.status ?? TaskStatuses.PROCESSING;
|
|
449
463
|
}
|
|
450
464
|
return TaskStatuses[taskStatusEntry.status];
|
|
@@ -453,61 +467,6 @@ const normalizedTaskStatusStore = signal(void 0);
|
|
|
453
467
|
const setNormalizedTaskStatusStore = (taskStatus) => {
|
|
454
468
|
normalizedTaskStatusStore.value = taskStatus;
|
|
455
469
|
};
|
|
456
|
-
const Remove = ({
|
|
457
|
-
onRemove,
|
|
458
|
-
onRemoveStatusChange,
|
|
459
|
-
isRemoveDisabled = false,
|
|
460
|
-
handleIsRemoveDisabled
|
|
461
|
-
}) => {
|
|
462
|
-
const { t } = useTranslation("ui");
|
|
463
|
-
const [undoTimer, setUndoTimer] = useState(5);
|
|
464
|
-
const [isRemoving, setIsRemoving] = useState(false);
|
|
465
|
-
useEffect(() => {
|
|
466
|
-
let undoInterval;
|
|
467
|
-
if (isRemoving && undoTimer > 0) {
|
|
468
|
-
undoInterval = setInterval(() => {
|
|
469
|
-
setUndoTimer((prevCount) => prevCount - 1);
|
|
470
|
-
}, 1e3);
|
|
471
|
-
}
|
|
472
|
-
return () => {
|
|
473
|
-
clearInterval(undoInterval);
|
|
474
|
-
};
|
|
475
|
-
}, [isRemoving, undoTimer]);
|
|
476
|
-
const onClickHandler = (event) => {
|
|
477
|
-
event.stopPropagation();
|
|
478
|
-
event.preventDefault();
|
|
479
|
-
if (!isRemoving) {
|
|
480
|
-
setIsRemoving(true);
|
|
481
|
-
onRemoveStatusChange?.(true);
|
|
482
|
-
handleIsRemoveDisabled?.(true);
|
|
483
|
-
} else {
|
|
484
|
-
setUndoTimer(5);
|
|
485
|
-
setIsRemoving(false);
|
|
486
|
-
onRemoveStatusChange?.(false);
|
|
487
|
-
handleIsRemoveDisabled?.(false);
|
|
488
|
-
}
|
|
489
|
-
};
|
|
490
|
-
useEffect(() => {
|
|
491
|
-
if (undoTimer === 0 && isRemoving) {
|
|
492
|
-
(async () => {
|
|
493
|
-
setIsRemoving(false);
|
|
494
|
-
await onRemove();
|
|
495
|
-
onRemoveStatusChange?.(false);
|
|
496
|
-
handleIsRemoveDisabled?.(false);
|
|
497
|
-
})();
|
|
498
|
-
}
|
|
499
|
-
}, [undoTimer, isRemoving, onRemoveStatusChange, handleIsRemoveDisabled, onRemove]);
|
|
500
|
-
return isRemoving ? /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: onClickHandler, children: t(($) => $["undoWithTimer"], { secondsLeft: undoTimer }) }) : /* @__PURE__ */ jsx(
|
|
501
|
-
IconButton,
|
|
502
|
-
{
|
|
503
|
-
ariaLabel: t(($) => $["remove"]),
|
|
504
|
-
icon: "bin",
|
|
505
|
-
variant: "tertiary",
|
|
506
|
-
onClick: onClickHandler,
|
|
507
|
-
disabled: isRemoveDisabled
|
|
508
|
-
}
|
|
509
|
-
);
|
|
510
|
-
};
|
|
511
470
|
const TaskListItem = ({
|
|
512
471
|
titleKey,
|
|
513
472
|
title,
|
|
@@ -522,17 +481,16 @@ const TaskListItem = ({
|
|
|
522
481
|
loading = false,
|
|
523
482
|
showErrorAlerts = "onErrorStatus",
|
|
524
483
|
warningMessage,
|
|
525
|
-
|
|
526
|
-
isRemoveDisabled = false,
|
|
527
|
-
handleIsRemoveDisabled,
|
|
484
|
+
deleteEntity,
|
|
528
485
|
testId,
|
|
529
486
|
enableTracking = true,
|
|
530
487
|
fallbackErrorMessage
|
|
531
488
|
}) => {
|
|
532
489
|
const { t } = useTranslation("common");
|
|
533
490
|
const userEvents = useAnalyticsContext();
|
|
491
|
+
const [isConfirmShown, setIsConfirmShown] = useState(false);
|
|
492
|
+
const isDeletable = !!deleteEntity;
|
|
534
493
|
const shouldShowErrorAlert = showErrorAlerts === "always" || showErrorAlerts === "onErrorStatus" && status === TaskStatuses.ERROR;
|
|
535
|
-
const [isStatusRemoving, setIsStatusRemoving] = useState(false);
|
|
536
494
|
const handleNavigateToTask = () => {
|
|
537
495
|
if (enableTracking) {
|
|
538
496
|
userEvents.addJourneyEvent("Clicked button", {
|
|
@@ -544,66 +502,87 @@ const TaskListItem = ({
|
|
|
544
502
|
onNavigateToTask?.();
|
|
545
503
|
};
|
|
546
504
|
const avatarVariant = disabled ? "disabled" : "primary";
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
505
|
+
const handleRemoveIntent = (event) => {
|
|
506
|
+
event.stopPropagation();
|
|
507
|
+
setIsConfirmShown(true);
|
|
508
|
+
};
|
|
509
|
+
const dismissConfirm = () => {
|
|
510
|
+
setIsConfirmShown(false);
|
|
511
|
+
};
|
|
512
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
513
|
+
/* @__PURE__ */ jsx(
|
|
514
|
+
Card,
|
|
515
|
+
{
|
|
516
|
+
stateful: onNavigateToTask && !loading && !disabled,
|
|
517
|
+
warningMessage,
|
|
518
|
+
onClick: loading ? void 0 : handleNavigateToTask,
|
|
519
|
+
onKeyDown: handleKeys(["Enter"], handleNavigateToTask ?? noop),
|
|
520
|
+
className: "adyen-task",
|
|
521
|
+
disabled,
|
|
522
|
+
children: /* @__PURE__ */ jsxs(
|
|
523
|
+
LoaderWrapper,
|
|
524
|
+
{
|
|
525
|
+
status: loading ? "loading" : "success",
|
|
526
|
+
formOpacityWhenLoading: 0.3,
|
|
527
|
+
loaderSize: "medium",
|
|
528
|
+
children: [
|
|
529
|
+
/* @__PURE__ */ jsxs("div", { className: "adyen-task-item", "data-testid": testId, children: [
|
|
530
|
+
/* @__PURE__ */ jsxs("div", { className: "adyen-task-item__header", children: [
|
|
531
|
+
/* @__PURE__ */ jsxs("div", { className: "adyen-task-item__heading", children: [
|
|
532
|
+
/* @__PURE__ */ jsx(Avatar, { variant: avatarVariant, iconName: icon }),
|
|
533
|
+
/* @__PURE__ */ jsx("div", { className: "adyen-task-item__body", children: /* @__PURE__ */ jsx("span", { className: "adyen-task-item__title", children: title || t(($) => $[titleKey]) }) })
|
|
534
|
+
] }),
|
|
535
|
+
info2 && /* @__PURE__ */ jsxs("div", { className: "adyen-task-item__info", children: [
|
|
536
|
+
/* @__PURE__ */ jsx(Icon, { name: "info-circle" }),
|
|
537
|
+
/* @__PURE__ */ jsx("span", { children: info2 })
|
|
538
|
+
] })
|
|
568
539
|
] }),
|
|
569
|
-
|
|
570
|
-
/* @__PURE__ */ jsx(
|
|
571
|
-
|
|
540
|
+
/* @__PURE__ */ jsxs("aside", { className: "adyen-task-item__status", children: [
|
|
541
|
+
/* @__PURE__ */ jsx(
|
|
542
|
+
TaskItemStatus,
|
|
543
|
+
{
|
|
544
|
+
status,
|
|
545
|
+
statusLabel,
|
|
546
|
+
downloadHandler
|
|
547
|
+
}
|
|
548
|
+
),
|
|
549
|
+
isDeletable ? /* @__PURE__ */ jsx(
|
|
550
|
+
IconButton,
|
|
551
|
+
{
|
|
552
|
+
ariaLabel: t(($) => $["delete"]),
|
|
553
|
+
icon: "bin",
|
|
554
|
+
variant: "tertiary",
|
|
555
|
+
onClick: handleRemoveIntent,
|
|
556
|
+
disabled: isConfirmShown
|
|
557
|
+
}
|
|
558
|
+
) : /* @__PURE__ */ jsx(Icon, { name: "chevron-right" })
|
|
572
559
|
] })
|
|
573
560
|
] }),
|
|
574
|
-
/* @__PURE__ */
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
fallbackErrorMessage
|
|
600
|
-
}
|
|
601
|
-
)
|
|
602
|
-
]
|
|
603
|
-
}
|
|
604
|
-
)
|
|
605
|
-
}
|
|
606
|
-
);
|
|
561
|
+
shouldShowErrorAlert && /* @__PURE__ */ jsx(
|
|
562
|
+
VerificationErrorAlert,
|
|
563
|
+
{
|
|
564
|
+
className: "adyen-task-item-alert",
|
|
565
|
+
problems,
|
|
566
|
+
fallbackErrorMessage
|
|
567
|
+
}
|
|
568
|
+
)
|
|
569
|
+
]
|
|
570
|
+
}
|
|
571
|
+
)
|
|
572
|
+
}
|
|
573
|
+
),
|
|
574
|
+
isConfirmShown && isDeletable && /* @__PURE__ */ jsx(
|
|
575
|
+
Confirm,
|
|
576
|
+
{
|
|
577
|
+
title: t(($) => $["deleteItem"], { item: title }),
|
|
578
|
+
description: t(($) => $["thisActionIsPermanent"]),
|
|
579
|
+
onConfirm: deleteEntity,
|
|
580
|
+
confirmText: t(($) => $["delete"]),
|
|
581
|
+
onCancel: dismissConfirm,
|
|
582
|
+
critical: true
|
|
583
|
+
}
|
|
584
|
+
)
|
|
585
|
+
] });
|
|
607
586
|
};
|
|
608
587
|
const PayoutAccountTaskListItem = ({
|
|
609
588
|
account,
|
|
@@ -615,9 +594,7 @@ const PayoutAccountTaskListItem = ({
|
|
|
615
594
|
const { showToast } = useToastContext();
|
|
616
595
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
617
596
|
const { mutateAsync: deleteTransferInstrument } = useDeleteTransferInstrument();
|
|
618
|
-
const [isDeletingTransferInstrument, setIsDeletingTransferInstrument] = useState(false);
|
|
619
597
|
const isInstantVerificationAccount = isInstantVerifiedAccount(account);
|
|
620
|
-
const [isRemoveDisabled, setIsRemoveDisabled] = useState(false);
|
|
621
598
|
const obscuredAccountNumber = getObscuredAccountNumber(account);
|
|
622
599
|
const getTaskStatus2 = useGetTaskStatus();
|
|
623
600
|
const status = isExperimentEnabled("UseTaskStatusApiForPayout") ? getAccountTaskStatus(account.id, payinPayoutTaskStatus) : getTaskStatus2(TaskTypes.PAYOUT, account.id);
|
|
@@ -640,23 +617,13 @@ const PayoutAccountTaskListItem = ({
|
|
|
640
617
|
status,
|
|
641
618
|
problems: capabilityProblems?.BankAccount?.[account.id],
|
|
642
619
|
fallbackErrorMessage: isInstantVerificationAccount ? t(($) => $["verificationErrorMessageTrustedTransferInstrument"]) : void 0,
|
|
643
|
-
|
|
644
|
-
removeEntity: () => {
|
|
645
|
-
setIsDeletingTransferInstrument(true);
|
|
646
|
-
handleDeleteTransferInstrument();
|
|
647
|
-
},
|
|
648
|
-
isRemoveDisabled,
|
|
649
|
-
handleIsRemoveDisabled: setIsRemoveDisabled
|
|
620
|
+
deleteEntity: handleDeleteTransferInstrument
|
|
650
621
|
}
|
|
651
622
|
);
|
|
652
623
|
};
|
|
653
|
-
function CardGroup({ className, children, spaced = false }) {
|
|
654
|
-
const baseClass = spaced ? "adyen-kyc-card-group-spaced" : "adyen-kyc-card-group";
|
|
655
|
-
return /* @__PURE__ */ jsx("section", { className: cx(baseClass, className), children });
|
|
656
|
-
}
|
|
657
624
|
const TaskListGroup = ({ title, children }) => /* @__PURE__ */ jsxs("article", { className: "adyen-task-list-group", children: [
|
|
658
625
|
title && /* @__PURE__ */ jsx("header", { className: "adyen-task-list-group__header", children: /* @__PURE__ */ jsx(Typography, { el: "h4", variant: "body-stronger", color: "secondary", children: title }) }),
|
|
659
|
-
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-card__body", children: /* @__PURE__ */ jsx(
|
|
626
|
+
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-card__body", children: /* @__PURE__ */ jsx(StackLayout, { gap: "xSmall", children }) })
|
|
660
627
|
] });
|
|
661
628
|
const LEGAL_ENTITY_BASE_TASKS = [
|
|
662
629
|
TaskTypes.INDIVIDUAL,
|
|
@@ -666,8 +633,9 @@ const LEGAL_ENTITY_BASE_TASKS = [
|
|
|
666
633
|
const CONTRACT_TASKS = [TaskTypes.SERVICE_AGREEMENT, TaskTypes.PCI_DSS];
|
|
667
634
|
function TaskList({ onNavigateToTask, singpassComponent }) {
|
|
668
635
|
const { data: rootLe, isLoading } = useLegalEntity(ROOT_LE);
|
|
636
|
+
const { data: existingBusinessLines, isLoading: isLoadingBl } = useBusinessLines();
|
|
669
637
|
const capabilityProblems = useCapabilityProblems() ?? {};
|
|
670
|
-
if (isLoading || !rootLe) {
|
|
638
|
+
if (isLoading || !rootLe || isLoadingBl) {
|
|
671
639
|
return /* @__PURE__ */ jsx(Loader, { size: "large" });
|
|
672
640
|
}
|
|
673
641
|
return /* @__PURE__ */ jsx(
|
|
@@ -676,7 +644,8 @@ function TaskList({ onNavigateToTask, singpassComponent }) {
|
|
|
676
644
|
onNavigateToTask,
|
|
677
645
|
singpassComponent,
|
|
678
646
|
legalEntityResponse: rootLe,
|
|
679
|
-
capabilityProblems
|
|
647
|
+
capabilityProblems,
|
|
648
|
+
existingBusinessLines
|
|
680
649
|
}
|
|
681
650
|
);
|
|
682
651
|
}
|
|
@@ -684,7 +653,8 @@ function TaskListInner({
|
|
|
684
653
|
onNavigateToTask,
|
|
685
654
|
legalEntityResponse,
|
|
686
655
|
capabilityProblems,
|
|
687
|
-
singpassComponent
|
|
656
|
+
singpassComponent,
|
|
657
|
+
existingBusinessLines
|
|
688
658
|
}) {
|
|
689
659
|
const userEvents = useAnalyticsContext();
|
|
690
660
|
const { t } = useTranslation("common");
|
|
@@ -726,7 +696,8 @@ function TaskListInner({
|
|
|
726
696
|
const normalizedTasks = normalizeTaskStatuses(taskStatuses);
|
|
727
697
|
setNormalizedTaskStatusStore(normalizedTasks);
|
|
728
698
|
const payinPayoutTaskStatus = normalizedTasks?.PAYOUT ?? normalizedTasks?.PAYIN;
|
|
729
|
-
const businessDetailsTaskStatus =
|
|
699
|
+
const businessDetailsTaskStatus = normalizedTasks?.BUSINESS_DETAILS?.status ?? TaskStatuses.DETAILS_REQUIRED;
|
|
700
|
+
const businessLinesTaskStatus = existingBusinessLines?.length ?? 0 > 0 ? TaskStatuses.FINISHED : TaskStatuses.EMPTY;
|
|
730
701
|
const isReview = Boolean(
|
|
731
702
|
capabilityProblems?.LegalEntity?.[legalEntityResponse.id]?.isReviewRequired
|
|
732
703
|
);
|
|
@@ -851,7 +822,7 @@ function TaskListInner({
|
|
|
851
822
|
] })
|
|
852
823
|
] }),
|
|
853
824
|
singpassComponent,
|
|
854
|
-
/* @__PURE__ */ jsxs(
|
|
825
|
+
/* @__PURE__ */ jsxs(StackLayout, { children: [
|
|
855
826
|
hasTaskOfGroupAccountDetails && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $[getBusinessTaskListTitleKey()]), children: [
|
|
856
827
|
tasks.includes(TaskTypes.INDIVIDUAL) && /* @__PURE__ */ jsx(
|
|
857
828
|
TaskListItem,
|
|
@@ -910,7 +881,7 @@ function TaskListInner({
|
|
|
910
881
|
onNavigateToTask: handleOnNavigateToTaskBusinessLines,
|
|
911
882
|
icon: "solutionPayments",
|
|
912
883
|
titleKey: "businessLines",
|
|
913
|
-
status:
|
|
884
|
+
status: businessLinesTaskStatus
|
|
914
885
|
}
|
|
915
886
|
),
|
|
916
887
|
showCustomerSupportV4 && tasks.includes(TaskTypes.CUSTOMER_SUPPORT) && /* @__PURE__ */ jsx(
|
|
@@ -1089,11 +1060,20 @@ function TaskListInner({
|
|
|
1089
1060
|
] });
|
|
1090
1061
|
}
|
|
1091
1062
|
const isNewEntity = Symbol("isNewEntity");
|
|
1092
|
-
const
|
|
1093
|
-
return
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1063
|
+
const createBusinessLine = async (legalEntityId, baseUrl, data) => {
|
|
1064
|
+
return httpPost(
|
|
1065
|
+
{
|
|
1066
|
+
baseUrl,
|
|
1067
|
+
path: `legalEntities/${legalEntityId}/businessLines`
|
|
1068
|
+
},
|
|
1069
|
+
data
|
|
1070
|
+
);
|
|
1071
|
+
};
|
|
1072
|
+
const useCreateBusinessLine = (options) => {
|
|
1073
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1074
|
+
return useMutation({
|
|
1075
|
+
mutationFn: (data) => createBusinessLine(rootLegalEntityId.value, baseUrl.value, data),
|
|
1076
|
+
...options
|
|
1097
1077
|
});
|
|
1098
1078
|
};
|
|
1099
1079
|
const fetchIndustryCodes = async (legalEntityId, baseUrl, businessLineTypes) => {
|
|
@@ -1126,7 +1106,7 @@ const useIndustryCodes = (businessLineTypes, options) => {
|
|
|
1126
1106
|
};
|
|
1127
1107
|
const industryCodesContent = "adyen-kyc-industry-codes-content";
|
|
1128
1108
|
const industryCodesSelection = "adyen-kyc-industry-codes-selection";
|
|
1129
|
-
const styles$
|
|
1109
|
+
const styles$a = {
|
|
1130
1110
|
industryCodesContent,
|
|
1131
1111
|
industryCodesSelection
|
|
1132
1112
|
};
|
|
@@ -1244,9 +1224,9 @@ function IndustryCodeField({
|
|
|
1244
1224
|
isValid: valid.industryCodes,
|
|
1245
1225
|
formatGuidance: guidanceText.industryCodes,
|
|
1246
1226
|
showErrorIcon: false,
|
|
1247
|
-
children: (childProps) => /* @__PURE__ */ jsx(Wrapper, { single, children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
1227
|
+
children: (childProps) => /* @__PURE__ */ jsx(Wrapper, { single, children: /* @__PURE__ */ jsx("div", { className: styles$a.industryCodesContent, ref: industryCodesRef, children: items.map((code, index) => {
|
|
1248
1228
|
const isInvalid = code.touched && code.value.id === "";
|
|
1249
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1229
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$a.industryCodesSelection, children: [
|
|
1250
1230
|
/* @__PURE__ */ jsx(
|
|
1251
1231
|
Select,
|
|
1252
1232
|
{
|
|
@@ -1285,7 +1265,7 @@ function IndustryCodeField({
|
|
|
1285
1265
|
icon: "plusCircleFilled",
|
|
1286
1266
|
circle: true,
|
|
1287
1267
|
onClick: addIndustryCodeField,
|
|
1288
|
-
disabled: readonly || code.value.id === "" || selectableIndustryCodes.length === 0
|
|
1268
|
+
disabled: readonly || code.value.id === "" || code.value.id !== "" && index !== items.length - 1 || selectableIndustryCodes.length === 0
|
|
1289
1269
|
}
|
|
1290
1270
|
)
|
|
1291
1271
|
] })
|
|
@@ -1315,7 +1295,7 @@ const widthSmall = "adyen-kyc-widthSmall";
|
|
|
1315
1295
|
const widthMedium = "adyen-kyc-widthMedium";
|
|
1316
1296
|
const widthLarge = "adyen-kyc-widthLarge";
|
|
1317
1297
|
const widthXLarge = "adyen-kyc-widthXLarge";
|
|
1318
|
-
const styles$
|
|
1298
|
+
const styles$9 = {
|
|
1319
1299
|
window: window$1,
|
|
1320
1300
|
item,
|
|
1321
1301
|
selectedItem,
|
|
@@ -1331,18 +1311,18 @@ const styles$6 = {
|
|
|
1331
1311
|
widthXLarge
|
|
1332
1312
|
};
|
|
1333
1313
|
const gapStyles = {
|
|
1334
|
-
xSmall: styles$
|
|
1335
|
-
small: styles$
|
|
1336
|
-
medium: styles$
|
|
1337
|
-
large: styles$
|
|
1338
|
-
xLarge: styles$
|
|
1314
|
+
xSmall: styles$9.gapXSmall,
|
|
1315
|
+
small: styles$9.gapSmall,
|
|
1316
|
+
medium: styles$9.gapMedium,
|
|
1317
|
+
large: styles$9.gapLarge,
|
|
1318
|
+
xLarge: styles$9.gapXLarge
|
|
1339
1319
|
};
|
|
1340
1320
|
const widthStyles = {
|
|
1341
|
-
xSmall: styles$
|
|
1342
|
-
small: styles$
|
|
1343
|
-
medium: styles$
|
|
1344
|
-
large: styles$
|
|
1345
|
-
xLarge: styles$
|
|
1321
|
+
xSmall: styles$9.widthXSmall,
|
|
1322
|
+
small: styles$9.widthSmall,
|
|
1323
|
+
medium: styles$9.widthMedium,
|
|
1324
|
+
large: styles$9.widthLarge,
|
|
1325
|
+
xLarge: styles$9.widthXLarge
|
|
1346
1326
|
};
|
|
1347
1327
|
const Carousel = ({
|
|
1348
1328
|
items,
|
|
@@ -1391,13 +1371,13 @@ const Carousel = ({
|
|
|
1391
1371
|
return /* @__PURE__ */ jsx(
|
|
1392
1372
|
"div",
|
|
1393
1373
|
{
|
|
1394
|
-
className: cx(styles$
|
|
1374
|
+
className: cx(styles$9.window, gapStyles[gap]),
|
|
1395
1375
|
role: allowMultiple ? "group" : "radiogroup",
|
|
1396
1376
|
"aria-label": carouselLabel,
|
|
1397
1377
|
children: items?.map((item2, index) => {
|
|
1398
1378
|
const isSelected = selected.includes(item2.id);
|
|
1399
|
-
const carouselItemClassName = cx(styles$
|
|
1400
|
-
[styles$
|
|
1379
|
+
const carouselItemClassName = cx(styles$9.item, widthStyles[width], {
|
|
1380
|
+
[styles$9.selectedItem]: selected.includes(item2.id)
|
|
1401
1381
|
});
|
|
1402
1382
|
return /* @__PURE__ */ jsx(
|
|
1403
1383
|
"div",
|
|
@@ -1426,7 +1406,7 @@ const info = "adyen-kyc-info";
|
|
|
1426
1406
|
const cardTitle = "adyen-kyc-card-title";
|
|
1427
1407
|
const cardDescription = "adyen-kyc-card-description";
|
|
1428
1408
|
const isExpanded = "adyen-kyc-is-expanded";
|
|
1429
|
-
const styles$
|
|
1409
|
+
const styles$8 = {
|
|
1430
1410
|
carouselContainer,
|
|
1431
1411
|
salesCard,
|
|
1432
1412
|
imageContainer,
|
|
@@ -1484,9 +1464,8 @@ function SalesChannels({
|
|
|
1484
1464
|
const onChange = (selectedIds) => {
|
|
1485
1465
|
setSelectedCards(selectedIds);
|
|
1486
1466
|
handleChangeFor("salesChannels", "blur")(selectedIds);
|
|
1487
|
-
if (!selectedIds.includes(
|
|
1488
|
-
handleChangeFor("webData")(void 0);
|
|
1489
|
-
handleChangeFor("webDataExemption")(void 0);
|
|
1467
|
+
if (!salesChannelsWithWebData.some((channel) => selectedIds.includes(channel))) {
|
|
1468
|
+
handleChangeFor("webData")({ webAddress: void 0, exempt: true });
|
|
1490
1469
|
}
|
|
1491
1470
|
};
|
|
1492
1471
|
return /* @__PURE__ */ jsx(
|
|
@@ -1496,7 +1475,7 @@ function SalesChannels({
|
|
|
1496
1475
|
errorMessage: errors.salesChannels,
|
|
1497
1476
|
isValid: valid.salesChannels,
|
|
1498
1477
|
showErrorIconBottom: true,
|
|
1499
|
-
children: () => /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1478
|
+
children: () => /* @__PURE__ */ jsxs("div", { className: styles$8.carouselContainer, children: [
|
|
1500
1479
|
/* @__PURE__ */ jsx(Typography, { variant: "title-m", children: t(($) => $["salesChannels"]) }),
|
|
1501
1480
|
/* @__PURE__ */ jsx(Typography, { variant: "body-stronger", children: t(($) => $["salesChannelsGuidance"]) }),
|
|
1502
1481
|
/* @__PURE__ */ jsx(
|
|
@@ -1516,10 +1495,10 @@ function SalesChannels({
|
|
|
1516
1495
|
}
|
|
1517
1496
|
function SalesChannelCard({ channel, selected }) {
|
|
1518
1497
|
const { t } = useTranslation("common");
|
|
1519
|
-
return /* @__PURE__ */ jsxs("article", { className: styles$
|
|
1520
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1521
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
1522
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
1498
|
+
return /* @__PURE__ */ jsxs("article", { className: styles$8.salesCard, children: [
|
|
1499
|
+
/* @__PURE__ */ jsx("div", { className: styles$8.imageContainer, children: /* @__PURE__ */ jsx("img", { src: cardMedia[channel].img, alt: `${channel}-image` }) }),
|
|
1500
|
+
/* @__PURE__ */ jsxs("div", { className: styles$8.info, children: [
|
|
1501
|
+
/* @__PURE__ */ jsx("span", { className: styles$8.avatar, children: /* @__PURE__ */ jsx(
|
|
1523
1502
|
Avatar,
|
|
1524
1503
|
{
|
|
1525
1504
|
iconName: cardMedia[channel].iconName,
|
|
@@ -1527,20 +1506,20 @@ function SalesChannelCard({ channel, selected }) {
|
|
|
1527
1506
|
variant: selected ? "primary" : "secondary"
|
|
1528
1507
|
}
|
|
1529
1508
|
) }),
|
|
1530
|
-
/* @__PURE__ */ jsx(Typography, { variant: "title", className: styles$
|
|
1509
|
+
/* @__PURE__ */ jsx(Typography, { variant: "title", className: styles$8.cardTitle, children: t(($) => $[`${channel}`]) }),
|
|
1531
1510
|
/* @__PURE__ */ jsx(
|
|
1532
1511
|
Typography,
|
|
1533
1512
|
{
|
|
1534
1513
|
variant: "body",
|
|
1535
1514
|
color: "secondary",
|
|
1536
|
-
className: `${styles$
|
|
1515
|
+
className: `${styles$8.cardDescription} ${selected ? styles$8.isExpanded : ""}`,
|
|
1537
1516
|
children: t(($) => $[`${channel}SalesChannelDescription`])
|
|
1538
1517
|
}
|
|
1539
1518
|
)
|
|
1540
1519
|
] })
|
|
1541
1520
|
] });
|
|
1542
1521
|
}
|
|
1543
|
-
const WEB_DATA_FIELD = ["webData"
|
|
1522
|
+
const WEB_DATA_FIELD = ["webData"];
|
|
1544
1523
|
function WebDataField({ data, valid, errors, labels, handleChangeFor }) {
|
|
1545
1524
|
const { t } = useTranslation("common");
|
|
1546
1525
|
const handleKeyDown = (e) => {
|
|
@@ -1549,54 +1528,54 @@ function WebDataField({ data, valid, errors, labels, handleChangeFor }) {
|
|
|
1549
1528
|
}
|
|
1550
1529
|
};
|
|
1551
1530
|
const handleWebDataChange = (e, mode) => {
|
|
1552
|
-
const
|
|
1553
|
-
|
|
1531
|
+
const webAddress = {
|
|
1532
|
+
exempt: false,
|
|
1533
|
+
webAddress: typeof e === "string" ? e : e.target?.value
|
|
1554
1534
|
};
|
|
1555
|
-
handleChangeFor("webData", mode)(
|
|
1535
|
+
handleChangeFor("webData", mode)(webAddress);
|
|
1556
1536
|
};
|
|
1557
|
-
const
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
} else handleChangeFor("webDataExemption")({ reason: "noOnlinePresence" });
|
|
1537
|
+
const handleWebDataExemptChange = () => {
|
|
1538
|
+
if (data.webData?.exempt === true) {
|
|
1539
|
+
handleChangeFor("webData")({ exempt: false, webAddress: void 0 });
|
|
1540
|
+
} else handleChangeFor("webData")({ exempt: true, webAddress: void 0 });
|
|
1562
1541
|
};
|
|
1563
1542
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1564
1543
|
/* @__PURE__ */ jsx(
|
|
1565
1544
|
Field,
|
|
1566
1545
|
{
|
|
1567
|
-
name: "
|
|
1568
|
-
label: labels?.webData ?? t(($) => $["
|
|
1546
|
+
name: "webAddress",
|
|
1547
|
+
label: labels?.webData ?? t(($) => $["businessUrl"]),
|
|
1569
1548
|
errorMessage: errors.webData,
|
|
1570
1549
|
isValid: valid.webData,
|
|
1571
1550
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1572
1551
|
InputText,
|
|
1573
1552
|
{
|
|
1574
1553
|
...childProps,
|
|
1575
|
-
name: "
|
|
1576
|
-
value: data.webData?.
|
|
1577
|
-
disabled: Boolean(data.
|
|
1554
|
+
name: "webAddress",
|
|
1555
|
+
value: data.webData?.webAddress,
|
|
1556
|
+
disabled: Boolean(data.webData?.exempt === true),
|
|
1578
1557
|
onInput: (e) => handleWebDataChange(e, "input"),
|
|
1579
1558
|
onBlur: (e) => handleWebDataChange(e, "blur"),
|
|
1580
1559
|
onKeyDown: handleKeyDown,
|
|
1581
1560
|
isValid: valid.webData,
|
|
1582
|
-
placeholder: data.
|
|
1561
|
+
placeholder: data.webData?.exempt ? void 0 : "https://"
|
|
1583
1562
|
}
|
|
1584
1563
|
)
|
|
1585
1564
|
}
|
|
1586
1565
|
),
|
|
1587
|
-
/* @__PURE__ */ jsx(Field, { name: "
|
|
1566
|
+
/* @__PURE__ */ jsx(Field, { name: "webDataExempt", children: (childProps) => /* @__PURE__ */ jsx(
|
|
1588
1567
|
Checkbox,
|
|
1589
1568
|
{
|
|
1590
1569
|
...childProps,
|
|
1591
|
-
name: "
|
|
1592
|
-
label:
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
onChange: handleWebDataExemptionChange
|
|
1570
|
+
name: "webDataExempt",
|
|
1571
|
+
label: t(($) => $["iDontHaveAWebsite"]),
|
|
1572
|
+
checked: data.webData?.exempt ?? false,
|
|
1573
|
+
onChange: handleWebDataExemptChange
|
|
1596
1574
|
}
|
|
1597
1575
|
) })
|
|
1598
1576
|
] });
|
|
1599
1577
|
}
|
|
1578
|
+
const logger$2 = createLogger();
|
|
1600
1579
|
const formatBusinessLinesDataForSummary = (data, labels, t) => {
|
|
1601
1580
|
return entriesOf(data).reduce((summaryData, [form]) => {
|
|
1602
1581
|
if (!form || !data[form]) return summaryData;
|
|
@@ -1605,7 +1584,7 @@ const formatBusinessLinesDataForSummary = (data, labels, t) => {
|
|
|
1605
1584
|
return {
|
|
1606
1585
|
...summaryData,
|
|
1607
1586
|
[form]: {
|
|
1608
|
-
[labels.industryCodesForm.industryCodes ?? "
|
|
1587
|
+
[labels.industryCodesForm.industryCodes ?? "industry"]: data.industryCodesForm.industryCodes?.map((i) => i.name)
|
|
1609
1588
|
}
|
|
1610
1589
|
};
|
|
1611
1590
|
case "salesChannelsForm":
|
|
@@ -1614,7 +1593,7 @@ const formatBusinessLinesDataForSummary = (data, labels, t) => {
|
|
|
1614
1593
|
[form]: {
|
|
1615
1594
|
[labels.salesChannelsForm.salesChannels ?? "salesChannelsParentheticalPlural"]: data.salesChannelsForm.salesChannels?.map((channel) => t(($) => $[channel])),
|
|
1616
1595
|
...data.salesChannelsForm.salesChannels?.includes("eCommerce") && {
|
|
1617
|
-
[
|
|
1596
|
+
[labels.salesChannelsForm.webData ?? "businessUrl"]: data.salesChannelsForm.webData?.webAddress ? data.salesChannelsForm.webData?.webAddress : "None"
|
|
1618
1597
|
}
|
|
1619
1598
|
}
|
|
1620
1599
|
};
|
|
@@ -1623,11 +1602,11 @@ const formatBusinessLinesDataForSummary = (data, labels, t) => {
|
|
|
1623
1602
|
}
|
|
1624
1603
|
}, {});
|
|
1625
1604
|
};
|
|
1605
|
+
const salesChannelsWithWebData = ["eCommerce", "ecomMoto"];
|
|
1626
1606
|
const businessLinesConfigurations = {
|
|
1627
1607
|
industryCodes: { rule: "REQUIRED" },
|
|
1628
1608
|
salesChannels: { rule: "REQUIRED" },
|
|
1629
|
-
webData: { rule: "
|
|
1630
|
-
webDataExemption: { rule: "webDataExempt" }
|
|
1609
|
+
webData: { rule: "REQUIRED" }
|
|
1631
1610
|
};
|
|
1632
1611
|
const businessLinesForms = {
|
|
1633
1612
|
industryCodesForm: {
|
|
@@ -1637,12 +1616,58 @@ const businessLinesForms = {
|
|
|
1637
1616
|
},
|
|
1638
1617
|
salesChannelsForm: {
|
|
1639
1618
|
formId: "salesChannelsForm",
|
|
1640
|
-
formName: "
|
|
1619
|
+
formName: "paymentProcessing",
|
|
1641
1620
|
fields: [...SALES_CHANNELS_FIELD, ...WEB_DATA_FIELD]
|
|
1642
1621
|
}
|
|
1643
1622
|
};
|
|
1644
|
-
const submitBusinessLines = (
|
|
1645
|
-
|
|
1623
|
+
const submitBusinessLines = async ({
|
|
1624
|
+
legalEntityId,
|
|
1625
|
+
data,
|
|
1626
|
+
createBusinessLine: createBusinessLine2,
|
|
1627
|
+
fetchBusinessLines,
|
|
1628
|
+
showToast,
|
|
1629
|
+
t
|
|
1630
|
+
}) => {
|
|
1631
|
+
const requiresWebData = salesChannelsWithWebData.some(
|
|
1632
|
+
(channel) => data.salesChannelsForm.salesChannels?.includes(channel)
|
|
1633
|
+
);
|
|
1634
|
+
try {
|
|
1635
|
+
const payloads = (data.industryCodesForm.industryCodes ?? []).map(
|
|
1636
|
+
(i) => ({
|
|
1637
|
+
industryCode: i.id,
|
|
1638
|
+
legalEntityId,
|
|
1639
|
+
service: "paymentProcessing",
|
|
1640
|
+
salesChannels: data.salesChannelsForm.salesChannels ? data.salesChannelsForm.salesChannels : void 0,
|
|
1641
|
+
webData: requiresWebData && data.salesChannelsForm.webData?.webAddress ? [{ webAddress: data.salesChannelsForm.webData.webAddress }] : void 0,
|
|
1642
|
+
webDataExemption: requiresWebData && data.salesChannelsForm.webData?.exempt ? { reason: "noOnlinePresence" } : void 0
|
|
1643
|
+
})
|
|
1644
|
+
);
|
|
1645
|
+
const results = await Promise.allSettled(
|
|
1646
|
+
payloads.map((payload) => createBusinessLine2(payload))
|
|
1647
|
+
);
|
|
1648
|
+
let failureCount = 0;
|
|
1649
|
+
results.forEach((result, index) => {
|
|
1650
|
+
if (result.status === "rejected") {
|
|
1651
|
+
failureCount++;
|
|
1652
|
+
logger$2.error(
|
|
1653
|
+
`Failed to create business line with associated industry code: ${payloads[index].industryCode}`
|
|
1654
|
+
);
|
|
1655
|
+
}
|
|
1656
|
+
});
|
|
1657
|
+
if (failureCount > 0) {
|
|
1658
|
+
showToast({
|
|
1659
|
+
label: t(($) => $[`businessLinesFailure`], { failuresLength: failureCount }),
|
|
1660
|
+
variant: "error"
|
|
1661
|
+
});
|
|
1662
|
+
} else {
|
|
1663
|
+
showToast({
|
|
1664
|
+
label: t(($) => $[`businessLinesSuccess`]),
|
|
1665
|
+
variant: "success"
|
|
1666
|
+
});
|
|
1667
|
+
}
|
|
1668
|
+
} finally {
|
|
1669
|
+
await fetchBusinessLines();
|
|
1670
|
+
}
|
|
1646
1671
|
};
|
|
1647
1672
|
const businessLinesValidators = {
|
|
1648
1673
|
industryCodesForm: {
|
|
@@ -1662,11 +1687,12 @@ const businessLinesValidators = {
|
|
|
1662
1687
|
webData: {
|
|
1663
1688
|
modes: ["blur"],
|
|
1664
1689
|
validate: (val) => {
|
|
1665
|
-
|
|
1690
|
+
if (val?.exempt === true) return true;
|
|
1691
|
+
return !!val?.webAddress && new RegExp(
|
|
1666
1692
|
/^(https?:\/\/)([\da-z.-]+)\.([a-z.]{2,6})([:\d]*)([/\w .-]*)*\/?(\?[\w %&=.]*)?#?([\w]*)?$/i
|
|
1667
|
-
).test(val.
|
|
1693
|
+
).test(val.webAddress);
|
|
1668
1694
|
},
|
|
1669
|
-
errorMessage: "
|
|
1695
|
+
errorMessage: "validationPleaseEnterAValidUrl"
|
|
1670
1696
|
}
|
|
1671
1697
|
}
|
|
1672
1698
|
};
|
|
@@ -1727,7 +1753,7 @@ function IndustryCodesForm({
|
|
|
1727
1753
|
verificationErrors
|
|
1728
1754
|
]);
|
|
1729
1755
|
return /* @__PURE__ */ jsxs("form", { id, children: [
|
|
1730
|
-
/* @__PURE__ */ jsx(
|
|
1756
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $[heading]) }),
|
|
1731
1757
|
/* @__PURE__ */ jsx(
|
|
1732
1758
|
IndustryCodeField,
|
|
1733
1759
|
{
|
|
@@ -1786,7 +1812,7 @@ function SalesChannelsForm({
|
|
|
1786
1812
|
verificationErrors
|
|
1787
1813
|
]);
|
|
1788
1814
|
return /* @__PURE__ */ jsxs("form", { id, children: [
|
|
1789
|
-
/* @__PURE__ */ jsx(
|
|
1815
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $["salesChannelsHeading"], { ns: "businessLines" }) }),
|
|
1790
1816
|
/* @__PURE__ */ jsx(
|
|
1791
1817
|
SalesChannels,
|
|
1792
1818
|
{
|
|
@@ -1797,12 +1823,14 @@ function SalesChannelsForm({
|
|
|
1797
1823
|
validationErrors,
|
|
1798
1824
|
SALES_CHANNELS_FIELD
|
|
1799
1825
|
),
|
|
1800
|
-
labels: formUtils.getFieldLabels(SALES_CHANNELS_FIELD),
|
|
1826
|
+
labels: (formUtils.getFieldLabels(SALES_CHANNELS_FIELD), { salesChannels: "paymentProcessing" }),
|
|
1801
1827
|
readonly: formUtils.isReadOnly("salesChannels"),
|
|
1802
1828
|
handleChangeFor
|
|
1803
1829
|
}
|
|
1804
1830
|
),
|
|
1805
|
-
|
|
1831
|
+
salesChannelsWithWebData.some(
|
|
1832
|
+
(channel) => form.data.salesChannelsForm.salesChannels?.includes(channel)
|
|
1833
|
+
) && /* @__PURE__ */ jsx(
|
|
1806
1834
|
WebDataField,
|
|
1807
1835
|
{
|
|
1808
1836
|
data: formUtils.getFieldData(form.data.salesChannelsForm ?? {}, WEB_DATA_FIELD),
|
|
@@ -1812,7 +1840,7 @@ function SalesChannelsForm({
|
|
|
1812
1840
|
validationErrors,
|
|
1813
1841
|
WEB_DATA_FIELD
|
|
1814
1842
|
),
|
|
1815
|
-
labels: formUtils.getFieldLabels(WEB_DATA_FIELD),
|
|
1843
|
+
labels: formUtils.getFieldLabels(WEB_DATA_FIELD, { webData: "businessUrl" }),
|
|
1816
1844
|
readonly: formUtils.isReadOnly("webData"),
|
|
1817
1845
|
handleChangeFor
|
|
1818
1846
|
}
|
|
@@ -1847,7 +1875,7 @@ function BusinessLines({ activeForm, problems = {} }) {
|
|
|
1847
1875
|
return /* @__PURE__ */ jsx("div", { children: renderActiveForm(activeForm) });
|
|
1848
1876
|
}
|
|
1849
1877
|
const businessLines$1 = "adyen-kyc-business-lines";
|
|
1850
|
-
const styles$
|
|
1878
|
+
const styles$7 = {
|
|
1851
1879
|
businessLines: businessLines$1
|
|
1852
1880
|
};
|
|
1853
1881
|
const businessLines = lazy(() => import("./business-lines-DboUCbXw.js"));
|
|
@@ -1869,22 +1897,236 @@ const BusinessLinesGettingStarted = ({
|
|
|
1869
1897
|
}
|
|
1870
1898
|
);
|
|
1871
1899
|
};
|
|
1900
|
+
const listItem = "adyen-kyc-list-item";
|
|
1901
|
+
const listItemBordered = "adyen-kyc-list-item-bordered";
|
|
1902
|
+
const listItemInteractive = "adyen-kyc-list-item-interactive";
|
|
1903
|
+
const listItemText = "adyen-kyc-list-item-text";
|
|
1904
|
+
const listItemTitle = "adyen-kyc-list-item-title";
|
|
1905
|
+
const listItemDescription = "adyen-kyc-list-item-description";
|
|
1906
|
+
const listItemDisclosure = "adyen-kyc-list-item-disclosure";
|
|
1907
|
+
const listItemAccessory = "adyen-kyc-list-item-accessory";
|
|
1908
|
+
const styles$6 = {
|
|
1909
|
+
listItem,
|
|
1910
|
+
listItemBordered,
|
|
1911
|
+
listItemInteractive,
|
|
1912
|
+
listItemText,
|
|
1913
|
+
listItemTitle,
|
|
1914
|
+
listItemDescription,
|
|
1915
|
+
listItemDisclosure,
|
|
1916
|
+
listItemAccessory
|
|
1917
|
+
};
|
|
1918
|
+
const ListItem = ({ accessory, action, avatar, bordered, description, title }) => {
|
|
1919
|
+
const isInteractive = !!action && typeof action.onClick === "function";
|
|
1920
|
+
const isDisabled = !!action?.disabled;
|
|
1921
|
+
const listItemAvatar = {
|
|
1922
|
+
...avatar,
|
|
1923
|
+
...isDisabled && { variant: "disabled" }
|
|
1924
|
+
};
|
|
1925
|
+
const rootClassname = cx(
|
|
1926
|
+
styles$6.listItem,
|
|
1927
|
+
{ [styles$6.listItemBordered]: bordered },
|
|
1928
|
+
{
|
|
1929
|
+
[styles$6.listItemInteractive]: isInteractive
|
|
1930
|
+
}
|
|
1931
|
+
);
|
|
1932
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1933
|
+
avatar && /* @__PURE__ */ jsx(Avatar, { ...listItemAvatar }),
|
|
1934
|
+
/* @__PURE__ */ jsxs("div", { className: styles$6.listItemText, children: [
|
|
1935
|
+
/* @__PURE__ */ jsx("h3", { className: styles$6.listItemTitle, children: title }),
|
|
1936
|
+
description && /* @__PURE__ */ jsx("span", { className: styles$6.listItemDescription, children: description })
|
|
1937
|
+
] }),
|
|
1938
|
+
accessory && /* @__PURE__ */ jsx("div", { className: styles$6.listItemAccessory, children: accessory })
|
|
1939
|
+
] });
|
|
1940
|
+
if (isInteractive) {
|
|
1941
|
+
return /* @__PURE__ */ jsxs(
|
|
1942
|
+
"button",
|
|
1943
|
+
{
|
|
1944
|
+
"aria-label": title,
|
|
1945
|
+
className: rootClassname,
|
|
1946
|
+
disabled: isDisabled,
|
|
1947
|
+
onClick: action.onClick,
|
|
1948
|
+
type: "button",
|
|
1949
|
+
children: [
|
|
1950
|
+
content,
|
|
1951
|
+
action?.disclosure && !isDisabled && /* @__PURE__ */ jsx("div", { className: styles$6.listItemDisclosure, "data-testid": "disclosure-indicator", children: /* @__PURE__ */ jsx(Icon, { name: "chevron-right" }) })
|
|
1952
|
+
]
|
|
1953
|
+
}
|
|
1954
|
+
);
|
|
1955
|
+
} else {
|
|
1956
|
+
return /* @__PURE__ */ jsx("div", { className: rootClassname, children: content });
|
|
1957
|
+
}
|
|
1958
|
+
};
|
|
1959
|
+
const divider = "adyen-kyc-divider";
|
|
1960
|
+
const styles$5 = {
|
|
1961
|
+
divider
|
|
1962
|
+
};
|
|
1963
|
+
const Divider = () => /* @__PURE__ */ jsx("hr", { className: styles$5.divider });
|
|
1964
|
+
const businessLineModalContent = "adyen-kyc-business-line-modal-content";
|
|
1965
|
+
const businessLineCard = "adyen-kyc-business-line-card";
|
|
1966
|
+
const styles$4 = {
|
|
1967
|
+
businessLineModalContent,
|
|
1968
|
+
businessLineCard
|
|
1969
|
+
};
|
|
1970
|
+
const BusinessLineModal = ({
|
|
1971
|
+
businessLineInfo,
|
|
1972
|
+
setShowBusinessLineInfo
|
|
1973
|
+
}) => {
|
|
1974
|
+
const { t } = useTranslation(["common", "businessLines"]);
|
|
1975
|
+
const blInfoItems = [
|
|
1976
|
+
{
|
|
1977
|
+
term: t(($) => $["salesChannelsParentheticalPlural"]),
|
|
1978
|
+
details: businessLineInfo?.salesChannels?.map((i) => t(($) => $[i])).join(", ") ?? ""
|
|
1979
|
+
},
|
|
1980
|
+
...businessLineInfo?.webData?.length ? [
|
|
1981
|
+
{
|
|
1982
|
+
term: t(($) => $["businessUrl"]),
|
|
1983
|
+
details: businessLineInfo.webData.map((i) => {
|
|
1984
|
+
if (!i.webAddress) return;
|
|
1985
|
+
return /* @__PURE__ */ jsx(Link, { href: i.webAddress, external: true, inline: true, children: i.webAddress }, i.webAddress);
|
|
1986
|
+
})
|
|
1987
|
+
}
|
|
1988
|
+
] : [],
|
|
1989
|
+
...businessLineInfo?.webDataExemption?.reason ? [
|
|
1990
|
+
{
|
|
1991
|
+
term: t(($) => $["businessUrl"]),
|
|
1992
|
+
details: t(($) => $["iDontHaveAWebsite"])
|
|
1993
|
+
}
|
|
1994
|
+
] : []
|
|
1995
|
+
];
|
|
1996
|
+
return /* @__PURE__ */ jsx(
|
|
1997
|
+
Modal,
|
|
1998
|
+
{
|
|
1999
|
+
ariaLabel: t(($) => $["businessLine"], { ns: "businessLines" }),
|
|
2000
|
+
onClose: () => setShowBusinessLineInfo(false),
|
|
2001
|
+
children: /* @__PURE__ */ jsxs("div", { className: styles$4.businessLineModalContent, children: [
|
|
2002
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $["businessLine"], { ns: "businessLines" }), align: "left" }),
|
|
2003
|
+
/* @__PURE__ */ jsx(
|
|
2004
|
+
ListItem,
|
|
2005
|
+
{
|
|
2006
|
+
title: `${businessLineInfo?.industryCode} - description`,
|
|
2007
|
+
description: `${businessLineInfo?.salesChannels?.map((i) => t(($) => $[i])).join(", ")}`,
|
|
2008
|
+
avatar: { iconName: "bag", circle: true }
|
|
2009
|
+
}
|
|
2010
|
+
),
|
|
2011
|
+
/* @__PURE__ */ jsx(Card, { title: t(($) => $["paymentProcessing"]), background: "secondary", borderless: true, children: /* @__PURE__ */ jsxs("div", { className: styles$4.businessLineCard, children: [
|
|
2012
|
+
/* @__PURE__ */ jsx(Divider, {}),
|
|
2013
|
+
/* @__PURE__ */ jsx(StructuredList, { items: blInfoItems })
|
|
2014
|
+
] }) })
|
|
2015
|
+
] })
|
|
2016
|
+
}
|
|
2017
|
+
);
|
|
2018
|
+
};
|
|
2019
|
+
const ExistingBusinessLines = ({
|
|
2020
|
+
handleCancelClick,
|
|
2021
|
+
businessLines: businessLines2,
|
|
2022
|
+
setAddingBusinessLines
|
|
2023
|
+
}) => {
|
|
2024
|
+
const { t } = useTranslation(["businessLines", "common"]);
|
|
2025
|
+
const [showBusinessLineInfo, setShowBusinessLineInfo] = useState(false);
|
|
2026
|
+
const [businessLineInfo, setBusinessLineInfo] = useState();
|
|
2027
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2028
|
+
/* @__PURE__ */ jsxs(StackLayout, { children: [
|
|
2029
|
+
/* @__PURE__ */ jsx(
|
|
2030
|
+
Header,
|
|
2031
|
+
{
|
|
2032
|
+
title: t(($) => $["businessLines"]),
|
|
2033
|
+
description: t(($) => $["businessLinesGettingStarted"]),
|
|
2034
|
+
status: TaskStatuses.FINISHED,
|
|
2035
|
+
align: "center"
|
|
2036
|
+
}
|
|
2037
|
+
),
|
|
2038
|
+
/* @__PURE__ */ jsx(
|
|
2039
|
+
BusinessLinesList,
|
|
2040
|
+
{
|
|
2041
|
+
businessLines: businessLines2,
|
|
2042
|
+
setBusinessLineInfo,
|
|
2043
|
+
setShowBusinessLineInfo,
|
|
2044
|
+
setAddingBusinessLines
|
|
2045
|
+
}
|
|
2046
|
+
),
|
|
2047
|
+
/* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleCancelClick, fullWidth: true, children: t(($) => $["goBackToTaskList"], { ns: "common" }) })
|
|
2048
|
+
] }),
|
|
2049
|
+
showBusinessLineInfo && /* @__PURE__ */ jsx(
|
|
2050
|
+
BusinessLineModal,
|
|
2051
|
+
{
|
|
2052
|
+
businessLineInfo,
|
|
2053
|
+
setShowBusinessLineInfo
|
|
2054
|
+
}
|
|
2055
|
+
)
|
|
2056
|
+
] });
|
|
2057
|
+
};
|
|
2058
|
+
const BusinessLinesList = ({
|
|
2059
|
+
businessLines: businessLines2,
|
|
2060
|
+
setBusinessLineInfo,
|
|
2061
|
+
setShowBusinessLineInfo,
|
|
2062
|
+
setAddingBusinessLines
|
|
2063
|
+
}) => {
|
|
2064
|
+
const { t } = useTranslation(["common", "businessLines"]);
|
|
2065
|
+
return /* @__PURE__ */ jsxs(StackLayout, { children: [
|
|
2066
|
+
/* @__PURE__ */ jsx(List, { dividers: false, variant: "grouped-primary", padding: "small", children: businessLines2.map((bl, index) => {
|
|
2067
|
+
const handleBusinessLineSelection = (bl2) => {
|
|
2068
|
+
setBusinessLineInfo(bl2);
|
|
2069
|
+
setShowBusinessLineInfo(true);
|
|
2070
|
+
};
|
|
2071
|
+
return /* @__PURE__ */ jsx(
|
|
2072
|
+
ListItem,
|
|
2073
|
+
{
|
|
2074
|
+
title: `${bl.industryCode} - description`,
|
|
2075
|
+
description: `${bl.salesChannels?.map((i) => t(($) => $[i])).join(", ")}`,
|
|
2076
|
+
avatar: { iconName: "bag", circle: true },
|
|
2077
|
+
action: {
|
|
2078
|
+
onClick: () => handleBusinessLineSelection(bl),
|
|
2079
|
+
disclosure: true
|
|
2080
|
+
}
|
|
2081
|
+
},
|
|
2082
|
+
index
|
|
2083
|
+
);
|
|
2084
|
+
}) }),
|
|
2085
|
+
/* @__PURE__ */ jsx(List, { dividers: false, variant: "grouped-primary", padding: "small", children: /* @__PURE__ */ jsx(
|
|
2086
|
+
ListItem,
|
|
2087
|
+
{
|
|
2088
|
+
title: t(($) => $["addNew"]),
|
|
2089
|
+
avatar: { iconName: "plus", circle: true, variant: "tertiary" },
|
|
2090
|
+
action: {
|
|
2091
|
+
onClick: () => setAddingBusinessLines(true),
|
|
2092
|
+
disabled: businessLines2.length >= 200
|
|
2093
|
+
// Users can have max of 200 BL
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
) })
|
|
2097
|
+
] });
|
|
2098
|
+
};
|
|
1872
2099
|
function BusinessLinesDropin({
|
|
1873
2100
|
handleHomeClick,
|
|
1874
2101
|
rootLegalEntity
|
|
1875
2102
|
}) {
|
|
1876
2103
|
const capabilityProblems = useCapabilityProblems();
|
|
2104
|
+
const { showToast } = useToastContext();
|
|
2105
|
+
const { mutateAsync: createBusinessLine2, status: createBusinessLineStatus } = useCreateBusinessLine();
|
|
2106
|
+
const {
|
|
2107
|
+
data: businessLines2,
|
|
2108
|
+
refetch: fetchBusinessLines,
|
|
2109
|
+
isFetching: isFetchingBusinessLines
|
|
2110
|
+
} = useBusinessLines();
|
|
2111
|
+
const showLoader = createBusinessLineStatus === "pending" || isFetchingBusinessLines;
|
|
1877
2112
|
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLegalEntity.id) : void 0;
|
|
1878
|
-
const [
|
|
2113
|
+
const [addingBusinessLines, setAddingBusinessLines] = useState(false);
|
|
1879
2114
|
const [derivedProps, setDerivedProps] = useState();
|
|
1880
2115
|
const { t } = useTranslation("common");
|
|
2116
|
+
const { t: businessLinesT } = useTranslation("businessLines");
|
|
2117
|
+
const paymentProcessingBusinessLines = businessLines2?.filter((b) => b.service === "paymentProcessing") ?? [];
|
|
2118
|
+
const hasExistingBusinessLines = paymentProcessingBusinessLines?.length > 0;
|
|
1881
2119
|
const multiForm = useMultiForm({
|
|
1882
2120
|
defaultData: {
|
|
1883
2121
|
industryCodesForm: {
|
|
1884
2122
|
industryCodes: []
|
|
1885
2123
|
},
|
|
1886
2124
|
salesChannelsForm: {
|
|
1887
|
-
salesChannels: []
|
|
2125
|
+
salesChannels: [],
|
|
2126
|
+
webData: {
|
|
2127
|
+
webAddress: void 0,
|
|
2128
|
+
exempt: void 0
|
|
2129
|
+
}
|
|
1888
2130
|
}
|
|
1889
2131
|
},
|
|
1890
2132
|
// TODO: MAP EXISTING DATA TO SCHEMA
|
|
@@ -1893,14 +2135,7 @@ function BusinessLinesDropin({
|
|
|
1893
2135
|
allFields: derivedProps?.allFields,
|
|
1894
2136
|
rules: businessLinesValidators
|
|
1895
2137
|
});
|
|
1896
|
-
const { isValid: formValidity, triggerValidation, data } = multiForm;
|
|
1897
|
-
const customRules = useMemo(
|
|
1898
|
-
() => rules({
|
|
1899
|
-
data
|
|
1900
|
-
}),
|
|
1901
|
-
// overriding necessity for country and taskType as they are currently unutilized
|
|
1902
|
-
[data]
|
|
1903
|
-
);
|
|
2138
|
+
const { isValid: formValidity, triggerValidation, data, setFormData } = multiForm;
|
|
1904
2139
|
useEffect(() => {
|
|
1905
2140
|
const props = getPropsFromConfigurations({
|
|
1906
2141
|
scenarioConfiguration: businessLinesConfigurations,
|
|
@@ -1908,11 +2143,11 @@ function BusinessLinesDropin({
|
|
|
1908
2143
|
remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
|
|
1909
2144
|
dataMissingErrors: problems?.missingData ?? [],
|
|
1910
2145
|
fieldsWithExistingData: [],
|
|
1911
|
-
customRules,
|
|
2146
|
+
customRules: {},
|
|
1912
2147
|
legalEntityType: rootLegalEntity?.type
|
|
1913
2148
|
});
|
|
1914
2149
|
setDerivedProps(props);
|
|
1915
|
-
}, [
|
|
2150
|
+
}, [problems, rootLegalEntity?.type]);
|
|
1916
2151
|
const forms = useMemo(() => {
|
|
1917
2152
|
const requiredForms = getRequiredForms(
|
|
1918
2153
|
businessLinesForms,
|
|
@@ -1926,7 +2161,7 @@ function BusinessLinesDropin({
|
|
|
1926
2161
|
data,
|
|
1927
2162
|
{
|
|
1928
2163
|
industryCodesForm: {
|
|
1929
|
-
industryCodes: "
|
|
2164
|
+
industryCodes: "industry"
|
|
1930
2165
|
},
|
|
1931
2166
|
salesChannelsForm: {
|
|
1932
2167
|
salesChannels: "salesChannelsParentheticalPlural"
|
|
@@ -1951,51 +2186,87 @@ function BusinessLinesDropin({
|
|
|
1951
2186
|
},
|
|
1952
2187
|
[associatedLeTrackingParams]
|
|
1953
2188
|
);
|
|
2189
|
+
const handleSubmit = async () => {
|
|
2190
|
+
try {
|
|
2191
|
+
await submitBusinessLines({
|
|
2192
|
+
data,
|
|
2193
|
+
createBusinessLine: createBusinessLine2,
|
|
2194
|
+
legalEntityId: rootLegalEntity.id,
|
|
2195
|
+
fetchBusinessLines,
|
|
2196
|
+
showToast,
|
|
2197
|
+
t: businessLinesT
|
|
2198
|
+
});
|
|
2199
|
+
} finally {
|
|
2200
|
+
setAddingBusinessLines(false);
|
|
2201
|
+
setFormData("industryCodesForm", { industryCodes: [] });
|
|
2202
|
+
setFormData("salesChannelsForm", {
|
|
2203
|
+
salesChannels: [],
|
|
2204
|
+
webData: {
|
|
2205
|
+
webAddress: void 0,
|
|
2206
|
+
exempt: void 0
|
|
2207
|
+
}
|
|
2208
|
+
});
|
|
2209
|
+
gotoFormByFormIndex(0);
|
|
2210
|
+
}
|
|
2211
|
+
};
|
|
1954
2212
|
const { handleNextClick, handleBackClick, activeForm, gotoFormByFormIndex, steps } = useFormComposer({
|
|
1955
2213
|
problems,
|
|
1956
2214
|
navigationTrackingParams: associatedLeTrackingParams,
|
|
1957
2215
|
forms,
|
|
1958
|
-
onSubmit:
|
|
1959
|
-
// TODO
|
|
2216
|
+
onSubmit: handleSubmit,
|
|
1960
2217
|
triggerValidation
|
|
1961
2218
|
});
|
|
1962
|
-
|
|
1963
|
-
|
|
2219
|
+
const renderContent = () => {
|
|
2220
|
+
if (!addingBusinessLines && isFetchingBusinessLines) return /* @__PURE__ */ jsx(Loader, { size: "large" });
|
|
2221
|
+
if (addingBusinessLines) {
|
|
2222
|
+
return /* @__PURE__ */ jsx(FormContextProvider, { form: multiForm, children: /* @__PURE__ */ jsx(
|
|
2223
|
+
FormFlow,
|
|
2224
|
+
{
|
|
2225
|
+
summary: {
|
|
2226
|
+
data: summaryData,
|
|
2227
|
+
problems,
|
|
2228
|
+
trackNavigation: handleTrackNavigation,
|
|
2229
|
+
useStructuredList: true
|
|
2230
|
+
},
|
|
2231
|
+
asModal: true,
|
|
2232
|
+
currentStep: steps.current,
|
|
2233
|
+
totalSteps: steps.total,
|
|
2234
|
+
forms,
|
|
2235
|
+
disableNextButton: !activeForm.isValid,
|
|
2236
|
+
gotoFormByFormIndex,
|
|
2237
|
+
handleNextClick,
|
|
2238
|
+
handleBackClick,
|
|
2239
|
+
handleCancelClick: hasExistingBusinessLines ? () => setAddingBusinessLines(false) : handleHomeClick,
|
|
2240
|
+
loadingStatus: showLoader ? "loading" : "success",
|
|
2241
|
+
children: /* @__PURE__ */ jsx(BusinessLines, { activeForm, problems })
|
|
2242
|
+
}
|
|
2243
|
+
) });
|
|
2244
|
+
}
|
|
2245
|
+
if (hasExistingBusinessLines) {
|
|
2246
|
+
return paymentProcessingBusinessLines?.length > 0 && /* @__PURE__ */ jsx(
|
|
2247
|
+
ExistingBusinessLines,
|
|
2248
|
+
{
|
|
2249
|
+
handleCancelClick: () => handleHomeClick?.(),
|
|
2250
|
+
businessLines: paymentProcessingBusinessLines,
|
|
2251
|
+
setAddingBusinessLines
|
|
2252
|
+
}
|
|
2253
|
+
);
|
|
2254
|
+
}
|
|
2255
|
+
return /* @__PURE__ */ jsx(
|
|
1964
2256
|
BusinessLinesGettingStarted,
|
|
1965
2257
|
{
|
|
1966
|
-
handleGettingStartedClick: () =>
|
|
2258
|
+
handleGettingStartedClick: () => setAddingBusinessLines(true),
|
|
1967
2259
|
handleCancelClick: () => handleHomeClick?.()
|
|
1968
2260
|
}
|
|
1969
|
-
)
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
{
|
|
1973
|
-
summary: {
|
|
1974
|
-
data: summaryData,
|
|
1975
|
-
problems,
|
|
1976
|
-
trackNavigation: handleTrackNavigation,
|
|
1977
|
-
useStructuredList: true
|
|
1978
|
-
},
|
|
1979
|
-
asModal: true,
|
|
1980
|
-
currentStep: steps.current,
|
|
1981
|
-
totalSteps: steps.total,
|
|
1982
|
-
forms,
|
|
1983
|
-
disableNextButton: !activeForm.isValid,
|
|
1984
|
-
gotoFormByFormIndex,
|
|
1985
|
-
handleNextClick,
|
|
1986
|
-
handleBackClick,
|
|
1987
|
-
handleCancelClick: handleHomeClick,
|
|
1988
|
-
loadingStatus: "success",
|
|
1989
|
-
children: /* @__PURE__ */ jsx(BusinessLines, { activeForm, problems })
|
|
1990
|
-
}
|
|
1991
|
-
) })
|
|
1992
|
-
] });
|
|
2261
|
+
);
|
|
2262
|
+
};
|
|
2263
|
+
return /* @__PURE__ */ jsx("div", { className: styles$7.businessLines, children: renderContent() });
|
|
1993
2264
|
}
|
|
1994
2265
|
const RootBusinessLinesPage = ({ handleHomeClick }) => {
|
|
1995
2266
|
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
1996
2267
|
const { i18n } = useTranslation();
|
|
1997
2268
|
addResourceBundles(i18n, i18n.language, [
|
|
1998
|
-
{ ns: "businessLines", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-
|
|
2269
|
+
{ ns: "businessLines", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-B37z4fjM.js"), "../language/cs-CZ.json": () => import("./cs-CZ-2D8o2KB0.js"), "../language/da-DK.json": () => import("./da-DK-CplImqOX.js"), "../language/de-DE.json": () => import("./de-DE-DNOzlYEY.js"), "../language/el-GR.json": () => import("./el-GR-DAFcmbwE.js"), "../language/en-US.json": () => import("./en-US-CEc3gxgl.js"), "../language/es-ES.json": () => import("./es-ES-BPI-KmDv.js"), "../language/et-EE.json": () => import("./et-EE-CMXpGRz8.js"), "../language/fi-FI.json": () => import("./fi-FI-C5SwgUIc.js"), "../language/fr-FR.json": () => import("./fr-FR-CAqqgh3X.js"), "../language/hr-HR.json": () => import("./hr-HR-oTvJUvqr.js"), "../language/hu-HU.json": () => import("./hu-HU-DA-bZKop.js"), "../language/it-IT.json": () => import("./it-IT-CpKAGuyU.js"), "../language/ja-JP.json": () => import("./ja-JP-C4569I8p.js"), "../language/lt-LT.json": () => import("./lt-LT-DfJ0ojxY.js"), "../language/lv-LV.json": () => import("./lv-LV-d0ldbfMh.js"), "../language/nl-NL.json": () => import("./nl-NL-DdVmtkAu.js"), "../language/no-NO.json": () => import("./no-NO-C0WUoV9N.js"), "../language/pl-PL.json": () => import("./pl-PL-Byfw9EGz.js"), "../language/pt-BR.json": () => import("./pt-BR-DUUAs_Pm.js"), "../language/pt-PT.json": () => import("./pt-PT-BVZxK7ae.js"), "../language/ro-RO.json": () => import("./ro-RO-Ck3Azc56.js"), "../language/sk-SK.json": () => import("./sk-SK-jxAlqkeI.js"), "../language/sl-SI.json": () => import("./sl-SI-CjvFCQ3H.js"), "../language/sv-SE.json": () => import("./sv-SE-CSjJPRt1.js") }), `../language/${i18n.language}.json`, 3) }
|
|
1999
2270
|
]);
|
|
2000
2271
|
if (!rootLe) {
|
|
2001
2272
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
@@ -2149,7 +2420,7 @@ function useTrustMembers() {
|
|
|
2149
2420
|
}, [rootLegalEntity, trust, exemptSettlor, allowMoreRolesForMainRootTrustee]);
|
|
2150
2421
|
}
|
|
2151
2422
|
const useTrustMemberNavigation = ({ navigateTo, trust }) => {
|
|
2152
|
-
const {
|
|
2423
|
+
const { t } = useTranslation("trust");
|
|
2153
2424
|
const { showToast } = useToastContext();
|
|
2154
2425
|
const [trustMember, setTrustMember] = useState();
|
|
2155
2426
|
const { setTrustMembers } = useGlobalStore();
|
|
@@ -2165,7 +2436,7 @@ const useTrustMemberNavigation = ({ navigateTo, trust }) => {
|
|
|
2165
2436
|
tm.trustMemberType === "company" ? TaskTypes.TRUST_MEMBER_COMPANY : TaskTypes.TRUST_MEMBER_INDIVIDUAL
|
|
2166
2437
|
);
|
|
2167
2438
|
} catch {
|
|
2168
|
-
showToast({ label:
|
|
2439
|
+
showToast({ label: t(($) => $["failedToFetchTrustMemberDetails"]), variant: "error" });
|
|
2169
2440
|
}
|
|
2170
2441
|
};
|
|
2171
2442
|
const onNavigateToTrustMemberRoleAndType = (tm) => {
|
|
@@ -2180,7 +2451,7 @@ const useTrustMemberNavigation = ({ navigateTo, trust }) => {
|
|
|
2180
2451
|
navigateTo(TaskTypes.TRUST);
|
|
2181
2452
|
}
|
|
2182
2453
|
} catch {
|
|
2183
|
-
showToast({ label:
|
|
2454
|
+
showToast({ label: t(($) => $["failedToFetchTrustDetails"]), variant: "error" });
|
|
2184
2455
|
}
|
|
2185
2456
|
};
|
|
2186
2457
|
return {
|
|
@@ -2499,8 +2770,7 @@ const convertExistingTrustMemberToDefaultData = (trustMember, allowMoreRolesForM
|
|
|
2499
2770
|
return convertExistingTrustMember(trustMember);
|
|
2500
2771
|
};
|
|
2501
2772
|
const TrustRoleAndEntityType = (props) => {
|
|
2502
|
-
const { t } = useTranslation("common");
|
|
2503
|
-
const { i18n } = useI18nContext();
|
|
2773
|
+
const { t } = useTranslation(["common", "trust"]);
|
|
2504
2774
|
const {
|
|
2505
2775
|
existingTrustMember,
|
|
2506
2776
|
isOrganizationSettlorWithExemptionEnabled,
|
|
@@ -2571,7 +2841,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
2571
2841
|
dataStoreId: id,
|
|
2572
2842
|
fieldProblems
|
|
2573
2843
|
});
|
|
2574
|
-
}, [schema, data, isValid,
|
|
2844
|
+
}, [schema, data, isValid, t, errors, valid, id, fieldProblems]);
|
|
2575
2845
|
const onInputDescription = (e) => {
|
|
2576
2846
|
const { value } = e.target;
|
|
2577
2847
|
handleChangeFor("descriptionUndefinedBeneficiary")(value);
|
|
@@ -2601,7 +2871,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
2601
2871
|
handleChangeFor("entityType")(value);
|
|
2602
2872
|
};
|
|
2603
2873
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-trust__role-and-entity-type adyen-kyc-u-width-full", children: [
|
|
2604
|
-
/* @__PURE__ */ jsx(
|
|
2874
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $["roleAndEntityType"]) }),
|
|
2605
2875
|
/* @__PURE__ */ jsx(
|
|
2606
2876
|
ErrorPanel,
|
|
2607
2877
|
{
|
|
@@ -2654,8 +2924,8 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
2654
2924
|
onSelect: onEntityTypeChange,
|
|
2655
2925
|
selected: data.entityType,
|
|
2656
2926
|
optionId: (option) => leTypeCardDetails$1[option].id,
|
|
2657
|
-
optionName: (option) => leTypeCardDetails$1[option].name,
|
|
2658
|
-
optionDescription: (option) => leTypeCardDetails$1[option].description,
|
|
2927
|
+
optionName: (option) => t(($) => $[leTypeCardDetails$1[option].name], { ns: "trust" }),
|
|
2928
|
+
optionDescription: (option) => t(($) => $[leTypeCardDetails$1[option].description], { ns: "trust" }),
|
|
2659
2929
|
"aria-required": true,
|
|
2660
2930
|
"aria-invalid": !valid.entityType,
|
|
2661
2931
|
floatingRadio: true
|
|
@@ -2682,7 +2952,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
2682
2952
|
value: data.descriptionUndefinedBeneficiary,
|
|
2683
2953
|
maxLength: CHARACTERS_LIMIT,
|
|
2684
2954
|
onInput: onInputDescription,
|
|
2685
|
-
helper:
|
|
2955
|
+
helper: t(($) => $["describeWhoIsABeneficiaryInYourTrust"], { ns: "trust" }),
|
|
2686
2956
|
"aria-required": true,
|
|
2687
2957
|
"aria-invalid": !valid.descriptionUndefinedBeneficiary
|
|
2688
2958
|
}
|
|
@@ -2707,7 +2977,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
2707
2977
|
onSelect: changeSettlorExemptionReasons,
|
|
2708
2978
|
mapToSelectItem: (reason) => ({
|
|
2709
2979
|
id: reason,
|
|
2710
|
-
name:
|
|
2980
|
+
name: t(($) => $[reason], { ns: "trust" })
|
|
2711
2981
|
})
|
|
2712
2982
|
}
|
|
2713
2983
|
)
|
|
@@ -2914,11 +3184,11 @@ const settlorExemptionReasonsList = "adyen-kyc-settlor-exemption-reasons-list";
|
|
|
2914
3184
|
const styles$3 = {
|
|
2915
3185
|
settlorExemptionReasonsList
|
|
2916
3186
|
};
|
|
2917
|
-
const formatRolesForSummary = (roles,
|
|
2918
|
-
const formatSettlorExemptionReasonsForSummary = (reasons,
|
|
2919
|
-
const formatRoleAndEntityTypeSummary = (data,
|
|
3187
|
+
const formatRolesForSummary = (roles, commonT) => roles.map((role) => commonT(($) => $[getRoleName(role)])).join(", ");
|
|
3188
|
+
const formatSettlorExemptionReasonsForSummary = (reasons, trustT) => /* @__PURE__ */ jsx("ul", { className: styles$3.settlorExemptionReasonsList, children: reasons.map((reason) => /* @__PURE__ */ jsx("li", { children: trustT(($) => $[reason]) }, reason)) });
|
|
3189
|
+
const formatRoleAndEntityTypeSummary = (data, commonT, trustT, isOrganizationSettlorWithExemptionEnabled) => {
|
|
2920
3190
|
const { trustMemberType, roles } = data;
|
|
2921
|
-
const role = formatRolesForSummary(roles,
|
|
3191
|
+
const role = formatRolesForSummary(roles, commonT);
|
|
2922
3192
|
switch (trustMemberType) {
|
|
2923
3193
|
case "undefinedBeneficiary":
|
|
2924
3194
|
return {
|
|
@@ -2928,14 +3198,14 @@ const formatRoleAndEntityTypeSummary = (data, i18n, isOrganizationSettlorWithExe
|
|
|
2928
3198
|
case "exemptSettlor":
|
|
2929
3199
|
return {
|
|
2930
3200
|
role,
|
|
2931
|
-
entityType:
|
|
3201
|
+
entityType: trustT(($) => $[data.legalEntityType]),
|
|
2932
3202
|
firstName: data.exemptSettlorName?.firstName,
|
|
2933
3203
|
lastName: data.exemptSettlorName?.lastName,
|
|
2934
3204
|
country: isOrganizationSettlorWithExemptionEnabled ? data.country : void 0,
|
|
2935
3205
|
legalCompanyName: isOrganizationSettlorWithExemptionEnabled ? data.name : void 0,
|
|
2936
3206
|
settlorExemptionReason: summaryItem(
|
|
2937
3207
|
"otherInformation",
|
|
2938
|
-
formatSettlorExemptionReasonsForSummary(data.settlorExemptionReason ?? [],
|
|
3208
|
+
formatSettlorExemptionReasonsForSummary(data.settlorExemptionReason ?? [], trustT)
|
|
2939
3209
|
)
|
|
2940
3210
|
};
|
|
2941
3211
|
case "company":
|
|
@@ -3065,7 +3335,8 @@ function RoleAndTypeDropin({
|
|
|
3065
3335
|
navigateBack,
|
|
3066
3336
|
country
|
|
3067
3337
|
}) {
|
|
3068
|
-
const {
|
|
3338
|
+
const { t: commonT } = useTranslation("common");
|
|
3339
|
+
const { t: trustT } = useTranslation("trust");
|
|
3069
3340
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
3070
3341
|
const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
|
|
3071
3342
|
const [trustMember, setTrustMember] = useState(
|
|
@@ -3135,17 +3406,18 @@ function RoleAndTypeDropin({
|
|
|
3135
3406
|
`Updating trust member type "${updated.trustMemberType}" is not implemented.`
|
|
3136
3407
|
);
|
|
3137
3408
|
}
|
|
3138
|
-
showToast({ label:
|
|
3409
|
+
showToast({ label: commonT(($) => $["successfullyUpdatedDetails"]), variant: "success" });
|
|
3139
3410
|
navigateBack();
|
|
3140
3411
|
} catch (err) {
|
|
3141
3412
|
logger$1.error(err);
|
|
3142
|
-
showToast({ label:
|
|
3413
|
+
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
3143
3414
|
}
|
|
3144
3415
|
};
|
|
3145
3416
|
const summaryData = trustMember === "incomplete" ? {} : {
|
|
3146
3417
|
roleAndEntityType: formatRoleAndEntityTypeSummary(
|
|
3147
3418
|
trustMember,
|
|
3148
|
-
|
|
3419
|
+
commonT,
|
|
3420
|
+
trustT,
|
|
3149
3421
|
isOrganizationSettlorWithExemptionEnabled
|
|
3150
3422
|
)
|
|
3151
3423
|
};
|
|
@@ -3241,8 +3513,8 @@ function RoleAndTypeDropin({
|
|
|
3241
3513
|
{
|
|
3242
3514
|
onNext: onNavigateToNextStep,
|
|
3243
3515
|
onHome: saveRolesAndNavigate,
|
|
3244
|
-
nextButtonLabel: isSummaryStep ?
|
|
3245
|
-
homeButtonLabel:
|
|
3516
|
+
nextButtonLabel: isSummaryStep ? commonT(($) => $["submit"]) : commonT(($) => $["continue"]),
|
|
3517
|
+
homeButtonLabel: commonT(($) => $["saveAndGoToOverview"])
|
|
3246
3518
|
}
|
|
3247
3519
|
)
|
|
3248
3520
|
] })
|
|
@@ -3255,9 +3527,13 @@ function TrustMemberRoleAndTypePage({
|
|
|
3255
3527
|
navigateToFullDropinFor,
|
|
3256
3528
|
navigateBack
|
|
3257
3529
|
}) {
|
|
3530
|
+
const { i18n } = useTranslation();
|
|
3258
3531
|
const { data: memberLe } = useLegalEntity(memberId ?? skipToken);
|
|
3259
3532
|
const { data: trustLe } = useLegalEntity(trustId);
|
|
3260
3533
|
const trustMembers = useTrustMembers();
|
|
3534
|
+
addResourceBundles(i18n, i18n.language, [
|
|
3535
|
+
{ ns: "trust", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-CepHap8j.js"), "../language/cs-CZ.json": () => import("./cs-CZ-BP7niQM9.js"), "../language/da-DK.json": () => import("./da-DK-Dc0QYG8m.js"), "../language/de-DE.json": () => import("./de-DE-Dz2OsS1F.js"), "../language/el-GR.json": () => import("./el-GR-BHG69mXl.js"), "../language/en-US.json": () => import("./en-US-D-B35AoN.js"), "../language/es-ES.json": () => import("./es-ES-BI_jdT67.js"), "../language/et-EE.json": () => import("./et-EE-C_PZO2aI.js"), "../language/fi-FI.json": () => import("./fi-FI-hwzizPnr.js"), "../language/fr-FR.json": () => import("./fr-FR-CYZXbwc9.js"), "../language/hr-HR.json": () => import("./hr-HR-bE6cvRCQ.js"), "../language/hu-HU.json": () => import("./hu-HU-DG-NUDx4.js"), "../language/it-IT.json": () => import("./it-IT-Erh1DIlj.js"), "../language/ja-JP.json": () => import("./ja-JP-ThzG9vIo.js"), "../language/lt-LT.json": () => import("./lt-LT-Nd1uRoIj.js"), "../language/lv-LV.json": () => import("./lv-LV-DKhV24CI.js"), "../language/nl-NL.json": () => import("./nl-NL-O9GCHMDA.js"), "../language/no-NO.json": () => import("./no-NO-CA1aR6Wh.js"), "../language/pl-PL.json": () => import("./pl-PL-BKDK0_G8.js"), "../language/pt-BR.json": () => import("./pt-BR-NtLaWlnZ.js"), "../language/pt-PT.json": () => import("./pt-PT-DSxxVA0f.js"), "../language/ro-RO.json": () => import("./ro-RO-Bybq8JFn.js"), "../language/sk-SK.json": () => import("./sk-SK-C6rMIxpz.js"), "../language/sl-SI.json": () => import("./sl-SI-tPwbFvOI.js"), "../language/sv-SE.json": () => import("./sv-SE-K1QT1cOt.js") }), `../language/${i18n.language}.json`, 3) }
|
|
3536
|
+
]);
|
|
3261
3537
|
if (!trustLe || memberId && !memberLe) {
|
|
3262
3538
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
3263
3539
|
}
|
|
@@ -3443,71 +3719,92 @@ const EntityAssociation = ({
|
|
|
3443
3719
|
problems,
|
|
3444
3720
|
infoContent,
|
|
3445
3721
|
onNavigateToEntity,
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
handleIsRemoveDisabled
|
|
3722
|
+
deleteEntity,
|
|
3723
|
+
isDeleteDisabled
|
|
3449
3724
|
}) => {
|
|
3450
3725
|
const { t } = useTranslation("common");
|
|
3451
3726
|
const [showingActions, setShowingActions] = useState(false);
|
|
3452
|
-
const [
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3727
|
+
const [isConfirmShown, setIsConfirmShown] = useState(false);
|
|
3728
|
+
const isDeletable = !!deleteEntity;
|
|
3729
|
+
const handleRemoveIntent = (event) => {
|
|
3730
|
+
event.stopPropagation();
|
|
3731
|
+
setIsConfirmShown(true);
|
|
3732
|
+
};
|
|
3733
|
+
const dismissConfirm = () => {
|
|
3734
|
+
setIsConfirmShown(false);
|
|
3735
|
+
};
|
|
3736
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3737
|
+
/* @__PURE__ */ jsxs(
|
|
3738
|
+
Card,
|
|
3739
|
+
{
|
|
3740
|
+
className: "adyen-kyc-entity-association",
|
|
3741
|
+
stateful: Boolean(onNavigateToEntity),
|
|
3742
|
+
onClick: onNavigateToEntity,
|
|
3743
|
+
onKeyDown: handleKeys(["Enter"], onNavigateToEntity ?? noop),
|
|
3744
|
+
children: [
|
|
3745
|
+
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-association__top", children: [
|
|
3746
|
+
/* @__PURE__ */ jsx("h3", { className: "adyen-kyc-entity-association__title", children: name }),
|
|
3747
|
+
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-association__info", children: [
|
|
3748
|
+
/* @__PURE__ */ jsx(TaskItemStatus, { status }),
|
|
3749
|
+
actions && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-association__actions", children: [
|
|
3750
|
+
/* @__PURE__ */ jsx(
|
|
3751
|
+
IconButton,
|
|
3752
|
+
{
|
|
3753
|
+
variant: "tertiary",
|
|
3754
|
+
icon: "more-horiz",
|
|
3755
|
+
onClick: (event) => {
|
|
3756
|
+
event.stopPropagation();
|
|
3757
|
+
setShowingActions(!showingActions);
|
|
3758
|
+
},
|
|
3759
|
+
ariaLabel: t(($) => $["toggleAssociationMenu"], { name })
|
|
3760
|
+
}
|
|
3761
|
+
),
|
|
3762
|
+
/* @__PURE__ */ jsx(ActionsMenu, { options: actions, open: showingActions, setOpen: setShowingActions })
|
|
3763
|
+
] }),
|
|
3764
|
+
isDeletable && /* @__PURE__ */ jsx(
|
|
3467
3765
|
IconButton,
|
|
3468
3766
|
{
|
|
3767
|
+
ariaLabel: t(($) => $["delete"]),
|
|
3768
|
+
icon: "bin",
|
|
3469
3769
|
variant: "tertiary",
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
event.stopPropagation();
|
|
3473
|
-
setShowingActions(!showingActions);
|
|
3474
|
-
},
|
|
3475
|
-
ariaLabel: t(($) => $["toggleAssociationMenu"], { name })
|
|
3770
|
+
onClick: handleRemoveIntent,
|
|
3771
|
+
disabled: isConfirmShown || isDeleteDisabled
|
|
3476
3772
|
}
|
|
3477
|
-
)
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
),
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3773
|
+
)
|
|
3774
|
+
] })
|
|
3775
|
+
] }),
|
|
3776
|
+
/* @__PURE__ */ jsx("div", { children: types.map((type) => /* @__PURE__ */ jsx(
|
|
3777
|
+
Tag,
|
|
3778
|
+
{
|
|
3779
|
+
className: "adyen-kyc-entity-association__tag",
|
|
3780
|
+
variant: getRoleTagVariant(type),
|
|
3781
|
+
children: t(($) => $[getRoleName(type)])
|
|
3782
|
+
},
|
|
3783
|
+
type
|
|
3784
|
+
)) }),
|
|
3785
|
+
status === TaskStatuses.ERROR && /* @__PURE__ */ jsx(
|
|
3786
|
+
VerificationErrorAlert,
|
|
3787
|
+
{
|
|
3788
|
+
className: "adyen-kyc-entity-association-alert",
|
|
3789
|
+
problems
|
|
3790
|
+
}
|
|
3791
|
+
),
|
|
3792
|
+
infoContent
|
|
3793
|
+
]
|
|
3794
|
+
}
|
|
3795
|
+
),
|
|
3796
|
+
isConfirmShown && isDeletable && /* @__PURE__ */ jsx(
|
|
3797
|
+
Confirm,
|
|
3798
|
+
{
|
|
3799
|
+
title: t(($) => $["deleteItem"], { item: name }),
|
|
3800
|
+
description: t(($) => $["thisActionIsPermanent"]),
|
|
3801
|
+
onConfirm: deleteEntity,
|
|
3802
|
+
confirmText: t(($) => $["delete"]),
|
|
3803
|
+
onCancel: dismissConfirm,
|
|
3804
|
+
critical: true
|
|
3805
|
+
}
|
|
3806
|
+
)
|
|
3807
|
+
] });
|
|
3511
3808
|
};
|
|
3512
3809
|
const CompanyTrustMemberTaskItem = ({
|
|
3513
3810
|
companyTrustMember,
|
|
@@ -3517,39 +3814,39 @@ const CompanyTrustMemberTaskItem = ({
|
|
|
3517
3814
|
onEdit,
|
|
3518
3815
|
onDelete
|
|
3519
3816
|
}) => {
|
|
3520
|
-
const {
|
|
3817
|
+
const { t } = useTranslation(["trust", "common"]);
|
|
3521
3818
|
const actions = [
|
|
3522
3819
|
{
|
|
3523
3820
|
icon: "edit",
|
|
3524
3821
|
onSelect: onEdit,
|
|
3525
|
-
label:
|
|
3822
|
+
label: t(($) => $["editTrustMember"], { trustMember: companyTrustMember.name })
|
|
3526
3823
|
},
|
|
3527
3824
|
companyTrustMember.ownerId ? {
|
|
3528
3825
|
icon: "edit",
|
|
3529
3826
|
onSelect: onEditOwner,
|
|
3530
|
-
label:
|
|
3531
|
-
|
|
3827
|
+
label: t(($) => $["editOwnerOfTrustMember"], {
|
|
3828
|
+
trustMember: companyTrustMember.name
|
|
3532
3829
|
})
|
|
3533
3830
|
} : {
|
|
3534
3831
|
icon: "plus",
|
|
3535
3832
|
onSelect: onAddOwner,
|
|
3536
|
-
label:
|
|
3537
|
-
|
|
3833
|
+
label: t(($) => $["addOwnerToTrustMember"], {
|
|
3834
|
+
trustMember: companyTrustMember.name
|
|
3538
3835
|
})
|
|
3539
3836
|
},
|
|
3540
3837
|
{
|
|
3541
3838
|
icon: "bin",
|
|
3542
3839
|
onSelect: onDelete,
|
|
3543
|
-
label:
|
|
3840
|
+
label: t(($) => $["removeTrustMember"], { trustMember: companyTrustMember.name })
|
|
3544
3841
|
}
|
|
3545
3842
|
];
|
|
3546
3843
|
const infoContent = companyTrustMember.ownerId ? void 0 : /* @__PURE__ */ jsx(
|
|
3547
3844
|
Alert,
|
|
3548
3845
|
{
|
|
3549
3846
|
title: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3550
|
-
|
|
3847
|
+
t(($) => $["helpUsVerifyCompany"], { ns: "common" }),
|
|
3551
3848
|
" ",
|
|
3552
|
-
/* @__PURE__ */ jsx(Button, { onClick: onAddOwner, variant: "link", children:
|
|
3849
|
+
/* @__PURE__ */ jsx(Button, { onClick: onAddOwner, variant: "link", children: t(($) => $["providePersonalDetailsOfOwner"]) })
|
|
3553
3850
|
] }),
|
|
3554
3851
|
className: "add-owner-alert"
|
|
3555
3852
|
}
|
|
@@ -3573,18 +3870,18 @@ const ExemptSettlorTaskItem = ({
|
|
|
3573
3870
|
onEdit,
|
|
3574
3871
|
onDelete
|
|
3575
3872
|
}) => {
|
|
3576
|
-
const {
|
|
3873
|
+
const { t } = useTranslation("trust");
|
|
3577
3874
|
const settlorName = exemptSettlor.legalEntityType === LegalEntityTypes.INDIVIDUAL ? `${exemptSettlor.exemptSettlorName?.firstName} ${exemptSettlor.exemptSettlorName?.lastName}` : exemptSettlor.name ?? "";
|
|
3578
3875
|
const actions = [
|
|
3579
3876
|
{
|
|
3580
3877
|
icon: "edit",
|
|
3581
3878
|
onSelect: onEdit,
|
|
3582
|
-
label:
|
|
3879
|
+
label: t(($) => $["editTrustMember"], { trustMember: settlorName })
|
|
3583
3880
|
},
|
|
3584
3881
|
{
|
|
3585
3882
|
icon: "bin",
|
|
3586
3883
|
onSelect: onDelete,
|
|
3587
|
-
label:
|
|
3884
|
+
label: t(($) => $["removeTrustMember"], { trustMember: settlorName })
|
|
3588
3885
|
}
|
|
3589
3886
|
];
|
|
3590
3887
|
return /* @__PURE__ */ jsx(
|
|
@@ -3605,17 +3902,17 @@ const RegularTrustMemberTaskItem = ({
|
|
|
3605
3902
|
onEdit,
|
|
3606
3903
|
onDelete
|
|
3607
3904
|
}) => {
|
|
3608
|
-
const {
|
|
3905
|
+
const { t } = useTranslation("trust");
|
|
3609
3906
|
const actions = [
|
|
3610
3907
|
{
|
|
3611
3908
|
icon: "edit",
|
|
3612
3909
|
onSelect: onEdit,
|
|
3613
|
-
label:
|
|
3910
|
+
label: t(($) => $["editTrustMember"], { trustMember: trustMember.name })
|
|
3614
3911
|
},
|
|
3615
3912
|
{
|
|
3616
3913
|
icon: "bin",
|
|
3617
3914
|
onSelect: onDelete,
|
|
3618
|
-
label:
|
|
3915
|
+
label: t(($) => $["removeTrustMember"], { trustMember: trustMember.name })
|
|
3619
3916
|
}
|
|
3620
3917
|
];
|
|
3621
3918
|
return /* @__PURE__ */ jsx(
|
|
@@ -3635,12 +3932,12 @@ const RootTrusteeTaskItem = ({
|
|
|
3635
3932
|
taskStatus,
|
|
3636
3933
|
onEdit
|
|
3637
3934
|
}) => {
|
|
3638
|
-
const {
|
|
3935
|
+
const { t } = useTranslation("trust");
|
|
3639
3936
|
const actions = [
|
|
3640
3937
|
{
|
|
3641
3938
|
icon: "edit",
|
|
3642
3939
|
onSelect: onEdit,
|
|
3643
|
-
label:
|
|
3940
|
+
label: t(($) => $["editTrustMember"], { trustMember: rootTrustee.name })
|
|
3644
3941
|
}
|
|
3645
3942
|
];
|
|
3646
3943
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
@@ -3662,20 +3959,20 @@ const UndefinedBeneficiaryTaskItem = ({
|
|
|
3662
3959
|
onEdit,
|
|
3663
3960
|
onDelete
|
|
3664
3961
|
}) => {
|
|
3665
|
-
const {
|
|
3962
|
+
const { t } = useTranslation("trust");
|
|
3666
3963
|
const actions = [
|
|
3667
3964
|
{
|
|
3668
3965
|
icon: "edit",
|
|
3669
3966
|
onSelect: onEdit,
|
|
3670
|
-
label:
|
|
3671
|
-
|
|
3967
|
+
label: t(($) => $["editTrustMember"], {
|
|
3968
|
+
trustMember: t(($) => $["undefinedBeneficiary"])
|
|
3672
3969
|
})
|
|
3673
3970
|
},
|
|
3674
3971
|
{
|
|
3675
3972
|
icon: "bin",
|
|
3676
3973
|
onSelect: onDelete,
|
|
3677
|
-
label:
|
|
3678
|
-
|
|
3974
|
+
label: t(($) => $["removeTrustMember"], {
|
|
3975
|
+
trustMember: t(($) => $["undefinedBeneficiary"])
|
|
3679
3976
|
})
|
|
3680
3977
|
}
|
|
3681
3978
|
];
|
|
@@ -3696,6 +3993,7 @@ const TrustMembersOverview = ({
|
|
|
3696
3993
|
navigateToEditTrustMember,
|
|
3697
3994
|
navigateToEditTrustMemberOwner
|
|
3698
3995
|
}) => {
|
|
3996
|
+
const { t, i18n } = useTranslation("trust");
|
|
3699
3997
|
const { data: rootLe, isLoading } = useLegalEntity(ROOT_LE);
|
|
3700
3998
|
const { data: trustLe, refetch: refetchTrust } = useAssociatedLegalEntity(
|
|
3701
3999
|
rootLe,
|
|
@@ -3704,7 +4002,9 @@ const TrustMembersOverview = ({
|
|
|
3704
4002
|
const trustMembers = useTrustMembers();
|
|
3705
4003
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
3706
4004
|
const { showToast } = useToastContext();
|
|
3707
|
-
|
|
4005
|
+
addResourceBundles(i18n, i18n.language, [
|
|
4006
|
+
{ ns: "trust", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../language/bg-BG.json": () => import("./bg-BG-CepHap8j.js"), "../../language/cs-CZ.json": () => import("./cs-CZ-BP7niQM9.js"), "../../language/da-DK.json": () => import("./da-DK-Dc0QYG8m.js"), "../../language/de-DE.json": () => import("./de-DE-Dz2OsS1F.js"), "../../language/el-GR.json": () => import("./el-GR-BHG69mXl.js"), "../../language/en-US.json": () => import("./en-US-D-B35AoN.js"), "../../language/es-ES.json": () => import("./es-ES-BI_jdT67.js"), "../../language/et-EE.json": () => import("./et-EE-C_PZO2aI.js"), "../../language/fi-FI.json": () => import("./fi-FI-hwzizPnr.js"), "../../language/fr-FR.json": () => import("./fr-FR-CYZXbwc9.js"), "../../language/hr-HR.json": () => import("./hr-HR-bE6cvRCQ.js"), "../../language/hu-HU.json": () => import("./hu-HU-DG-NUDx4.js"), "../../language/it-IT.json": () => import("./it-IT-Erh1DIlj.js"), "../../language/ja-JP.json": () => import("./ja-JP-ThzG9vIo.js"), "../../language/lt-LT.json": () => import("./lt-LT-Nd1uRoIj.js"), "../../language/lv-LV.json": () => import("./lv-LV-DKhV24CI.js"), "../../language/nl-NL.json": () => import("./nl-NL-O9GCHMDA.js"), "../../language/no-NO.json": () => import("./no-NO-CA1aR6Wh.js"), "../../language/pl-PL.json": () => import("./pl-PL-BKDK0_G8.js"), "../../language/pt-BR.json": () => import("./pt-BR-NtLaWlnZ.js"), "../../language/pt-PT.json": () => import("./pt-PT-DSxxVA0f.js"), "../../language/ro-RO.json": () => import("./ro-RO-Bybq8JFn.js"), "../../language/sk-SK.json": () => import("./sk-SK-C6rMIxpz.js"), "../../language/sl-SI.json": () => import("./sl-SI-tPwbFvOI.js"), "../../language/sv-SE.json": () => import("./sv-SE-K1QT1cOt.js") }), `../../language/${i18n.language}.json`, 4) }
|
|
4007
|
+
]);
|
|
3708
4008
|
if (isLoading || !rootLe || !trustLe) {
|
|
3709
4009
|
return /* @__PURE__ */ jsx(Loader, { size: "large" });
|
|
3710
4010
|
}
|
|
@@ -3731,9 +4031,9 @@ const TrustMembersOverview = ({
|
|
|
3731
4031
|
throw new Error("Cannot delete root trustee");
|
|
3732
4032
|
}
|
|
3733
4033
|
await refetchTrust();
|
|
3734
|
-
showToast({ variant: "success", label:
|
|
4034
|
+
showToast({ variant: "success", label: t(($) => $["successFullyRemovedTrustMember"]) });
|
|
3735
4035
|
} catch {
|
|
3736
|
-
showToast({ variant: "error", label:
|
|
4036
|
+
showToast({ variant: "error", label: t(($) => $["failedToRemoveTrustMember"]) });
|
|
3737
4037
|
}
|
|
3738
4038
|
};
|
|
3739
4039
|
return /* @__PURE__ */ jsx(
|
|
@@ -3754,8 +4054,7 @@ const TrustMembersOverviewInner = ({
|
|
|
3754
4054
|
navigateToEditTrustMember,
|
|
3755
4055
|
navigateToEditTrustMemberOwner
|
|
3756
4056
|
}) => {
|
|
3757
|
-
const {
|
|
3758
|
-
const { t } = useTranslation("common");
|
|
4057
|
+
const { t } = useTranslation(["trust", "common"]);
|
|
3759
4058
|
const trustMemberRequirements = DEFAULT_TRUST_MEMBER_REQUIREMENTS;
|
|
3760
4059
|
const trustMembersWithOneOfGivenRoles = (roleTypes) => trustMembers.filter(
|
|
3761
4060
|
({ roles }) => roleTypes.some((label) => roles.includes(label))
|
|
@@ -3768,10 +4067,10 @@ const TrustMembersOverviewInner = ({
|
|
|
3768
4067
|
{
|
|
3769
4068
|
content: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-trust-members adyen-kyc-u-width-full", children: [
|
|
3770
4069
|
/* @__PURE__ */ jsx(
|
|
3771
|
-
|
|
4070
|
+
Header,
|
|
3772
4071
|
{
|
|
3773
|
-
|
|
3774
|
-
description:
|
|
4072
|
+
title: t(($) => $["trustMembers"]),
|
|
4073
|
+
description: t(($) => $["trustMembersDescription"])
|
|
3775
4074
|
}
|
|
3776
4075
|
),
|
|
3777
4076
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-trust-members__container", children: trustMemberRequirements.map(({ roleTypes, min, label }) => /* @__PURE__ */ jsx(
|
|
@@ -3787,13 +4086,13 @@ const TrustMembersOverviewInner = ({
|
|
|
3787
4086
|
/* @__PURE__ */ jsx(
|
|
3788
4087
|
ContextGuidance,
|
|
3789
4088
|
{
|
|
3790
|
-
title:
|
|
3791
|
-
content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: trustMemberRequirements.map(({ label }) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Trans, { t, ns: "
|
|
4089
|
+
title: t(($) => $["whatIsTheDifferenceBetweenTheseRoles"]),
|
|
4090
|
+
content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: trustMemberRequirements.map(({ label }) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Trans, { t, ns: "trust", i18nKey: ($) => $[`${label}GuideDescription`] }) }, label)) }),
|
|
3792
4091
|
titleId: "whatIsTheDifferenceBetweenTheseRoles",
|
|
3793
4092
|
contentId: "differenceBetweenTrustMemberRoles"
|
|
3794
4093
|
}
|
|
3795
4094
|
),
|
|
3796
|
-
/* @__PURE__ */ jsx(
|
|
4095
|
+
/* @__PURE__ */ jsx(StackLayout, { gap: "small", children: trustMembers.map((trustMember) => {
|
|
3797
4096
|
switch (trustMember.trustMemberType) {
|
|
3798
4097
|
case "rootTrustee":
|
|
3799
4098
|
return /* @__PURE__ */ jsx(
|
|
@@ -3877,14 +4176,14 @@ const TrustMembersOverviewInner = ({
|
|
|
3877
4176
|
e.stopPropagation();
|
|
3878
4177
|
navigateToEditTrustMember("new");
|
|
3879
4178
|
},
|
|
3880
|
-
children:
|
|
4179
|
+
children: t(($) => $["addTrustMember"])
|
|
3881
4180
|
}
|
|
3882
4181
|
),
|
|
3883
4182
|
/* @__PURE__ */ jsx(
|
|
3884
4183
|
ActionBar,
|
|
3885
4184
|
{
|
|
3886
4185
|
onHome: navigateBackToTaskList,
|
|
3887
|
-
homeButtonLabel:
|
|
4186
|
+
homeButtonLabel: t(($) => $["saveAndGoToOverview"], { ns: "common" })
|
|
3888
4187
|
}
|
|
3889
4188
|
)
|
|
3890
4189
|
] })
|
|
@@ -4026,7 +4325,8 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
4026
4325
|
onNavigateToMember,
|
|
4027
4326
|
activeMember
|
|
4028
4327
|
}) {
|
|
4029
|
-
const { t } = useTranslation(["common"
|
|
4328
|
+
const { t } = useTranslation(["common"]);
|
|
4329
|
+
const { t: unincorpPartnershipT } = useTranslation(["unincorpPartnership"]);
|
|
4030
4330
|
const [shouldValidate, setShouldValidate] = useState(false);
|
|
4031
4331
|
const activeForm = regularForms.roleAndEntityType;
|
|
4032
4332
|
const formUtils = createFormUtils(
|
|
@@ -4104,10 +4404,10 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
4104
4404
|
className: "adyen-kyc-form-wrapper",
|
|
4105
4405
|
children: /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-trust__role-and-entity-type adyen-kyc-u-width-full", children: [
|
|
4106
4406
|
/* @__PURE__ */ jsx(
|
|
4107
|
-
|
|
4407
|
+
Header,
|
|
4108
4408
|
{
|
|
4109
|
-
|
|
4110
|
-
description:
|
|
4409
|
+
title: t(($) => $["roleAndEntityType"]),
|
|
4410
|
+
description: unincorpPartnershipT(($) => $["partnerRoleDescription"])
|
|
4111
4411
|
}
|
|
4112
4412
|
),
|
|
4113
4413
|
/* @__PURE__ */ jsx(
|
|
@@ -4126,8 +4426,8 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
4126
4426
|
selected: data?.entityType,
|
|
4127
4427
|
onSelect: (option) => handleChangeFor("entityType")(option),
|
|
4128
4428
|
optionId: (option) => leTypeCardDetails[option].id,
|
|
4129
|
-
optionName: (option) => leTypeCardDetails[option].name,
|
|
4130
|
-
optionDescription: (option) => leTypeCardDetails[option].description,
|
|
4429
|
+
optionName: (option) => unincorpPartnershipT(($) => $[leTypeCardDetails[option].name]),
|
|
4430
|
+
optionDescription: (option) => unincorpPartnershipT(($) => $[leTypeCardDetails[option].description]),
|
|
4131
4431
|
"aria-required": true
|
|
4132
4432
|
}
|
|
4133
4433
|
)
|
|
@@ -4177,7 +4477,7 @@ function UnincorporatedPartnershipMemberRoleAndTypePage({
|
|
|
4177
4477
|
addResourceBundles(i18n, i18n.language, [
|
|
4178
4478
|
{
|
|
4179
4479
|
ns: "unincorpPartnership",
|
|
4180
|
-
importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-
|
|
4480
|
+
importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-er0t4jTs.js"), "../language/cs-CZ.json": () => import("./cs-CZ-CQNBae2b.js"), "../language/da-DK.json": () => import("./da-DK-gnPgzwrG.js"), "../language/de-DE.json": () => import("./de-DE-D3lLuF8z.js"), "../language/el-GR.json": () => import("./el-GR-XRux2Wpv.js"), "../language/en-US.json": () => import("./en-US-B96dpVon.js"), "../language/es-ES.json": () => import("./es-ES-CXDJLKAI.js"), "../language/et-EE.json": () => import("./et-EE--cL_YqWe.js"), "../language/fi-FI.json": () => import("./fi-FI-fArobrt5.js"), "../language/fr-FR.json": () => import("./fr-FR-CiwkAb3E.js"), "../language/hr-HR.json": () => import("./hr-HR-DtfHQVe0.js"), "../language/hu-HU.json": () => import("./hu-HU-I4-KFzvz.js"), "../language/it-IT.json": () => import("./it-IT-DIbH-udG.js"), "../language/ja-JP.json": () => import("./ja-JP-bz7ekGnF.js"), "../language/lt-LT.json": () => import("./lt-LT-BLsIcCtE.js"), "../language/lv-LV.json": () => import("./lv-LV-C7hMdPcY.js"), "../language/nl-NL.json": () => import("./nl-NL-NlkjOSYi.js"), "../language/no-NO.json": () => import("./no-NO-Crlsj6HG.js"), "../language/pl-PL.json": () => import("./pl-PL-DYxD6VJ_.js"), "../language/pt-BR.json": () => import("./pt-BR-BfxgHKY4.js"), "../language/pt-PT.json": () => import("./pt-PT-TKg5FLat.js"), "../language/ro-RO.json": () => import("./ro-RO-3rOfS17N.js"), "../language/sk-SK.json": () => import("./sk-SK-CjrLvDMx.js"), "../language/sl-SI.json": () => import("./sl-SI-C-C-KJCX.js"), "../language/sv-SE.json": () => import("./sv-SE-BHfydid5.js") }), `../language/${i18n.language}.json`, 3)
|
|
4181
4481
|
}
|
|
4182
4482
|
]);
|
|
4183
4483
|
if (memberId && !memberLe) {
|
|
@@ -4206,8 +4506,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
4206
4506
|
navigateToEditMember,
|
|
4207
4507
|
navigateToEditMemberOwner
|
|
4208
4508
|
}) => {
|
|
4209
|
-
const { i18n } =
|
|
4210
|
-
const { i18n: i18next } = useTranslation();
|
|
4509
|
+
const { t, i18n: i18next } = useTranslation(["unincorpPartnership", "common"]);
|
|
4211
4510
|
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
4212
4511
|
const { data: partnershipLe, refetch: refetchPartnership } = useAssociatedLegalEntity(
|
|
4213
4512
|
rootLe,
|
|
@@ -4219,7 +4518,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
4219
4518
|
addResourceBundles(i18next, i18next.language, [
|
|
4220
4519
|
{
|
|
4221
4520
|
ns: "unincorpPartnership",
|
|
4222
|
-
importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../language/bg-BG.json": () => import("./bg-BG-
|
|
4521
|
+
importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../language/bg-BG.json": () => import("./bg-BG-er0t4jTs.js"), "../../language/cs-CZ.json": () => import("./cs-CZ-CQNBae2b.js"), "../../language/da-DK.json": () => import("./da-DK-gnPgzwrG.js"), "../../language/de-DE.json": () => import("./de-DE-D3lLuF8z.js"), "../../language/el-GR.json": () => import("./el-GR-XRux2Wpv.js"), "../../language/en-US.json": () => import("./en-US-B96dpVon.js"), "../../language/es-ES.json": () => import("./es-ES-CXDJLKAI.js"), "../../language/et-EE.json": () => import("./et-EE--cL_YqWe.js"), "../../language/fi-FI.json": () => import("./fi-FI-fArobrt5.js"), "../../language/fr-FR.json": () => import("./fr-FR-CiwkAb3E.js"), "../../language/hr-HR.json": () => import("./hr-HR-DtfHQVe0.js"), "../../language/hu-HU.json": () => import("./hu-HU-I4-KFzvz.js"), "../../language/it-IT.json": () => import("./it-IT-DIbH-udG.js"), "../../language/ja-JP.json": () => import("./ja-JP-bz7ekGnF.js"), "../../language/lt-LT.json": () => import("./lt-LT-BLsIcCtE.js"), "../../language/lv-LV.json": () => import("./lv-LV-C7hMdPcY.js"), "../../language/nl-NL.json": () => import("./nl-NL-NlkjOSYi.js"), "../../language/no-NO.json": () => import("./no-NO-Crlsj6HG.js"), "../../language/pl-PL.json": () => import("./pl-PL-DYxD6VJ_.js"), "../../language/pt-BR.json": () => import("./pt-BR-BfxgHKY4.js"), "../../language/pt-PT.json": () => import("./pt-PT-TKg5FLat.js"), "../../language/ro-RO.json": () => import("./ro-RO-3rOfS17N.js"), "../../language/sk-SK.json": () => import("./sk-SK-CjrLvDMx.js"), "../../language/sl-SI.json": () => import("./sl-SI-C-C-KJCX.js"), "../../language/sv-SE.json": () => import("./sv-SE-BHfydid5.js") }), `../../language/${i18next.language}.json`, 4)
|
|
4223
4522
|
}
|
|
4224
4523
|
]);
|
|
4225
4524
|
useEffect(
|
|
@@ -4247,8 +4546,8 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
4247
4546
|
{
|
|
4248
4547
|
icon: "edit",
|
|
4249
4548
|
onSelect: () => navigateToEditMember(member),
|
|
4250
|
-
label:
|
|
4251
|
-
|
|
4549
|
+
label: t(($) => $["editTrustMember"], {
|
|
4550
|
+
trustMember: member.name
|
|
4252
4551
|
})
|
|
4253
4552
|
}
|
|
4254
4553
|
];
|
|
@@ -4257,8 +4556,8 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
4257
4556
|
baseActions.push({
|
|
4258
4557
|
icon: missingOwner ? "plus" : "edit",
|
|
4259
4558
|
onSelect: () => navigateToEditMemberOwner(member?.ownerId, member?.legalEntityId),
|
|
4260
|
-
label:
|
|
4261
|
-
|
|
4559
|
+
label: t(($) => $[missingOwner ? "addOwnerToTrustMember" : "editOwnerOfTrustMember"], {
|
|
4560
|
+
trustMember: member.name
|
|
4262
4561
|
})
|
|
4263
4562
|
});
|
|
4264
4563
|
}
|
|
@@ -4266,8 +4565,8 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
4266
4565
|
baseActions.push({
|
|
4267
4566
|
icon: "bin",
|
|
4268
4567
|
onSelect: () => deleteMember(member),
|
|
4269
|
-
label:
|
|
4270
|
-
|
|
4568
|
+
label: t(($) => $["removeTrustMember"], {
|
|
4569
|
+
trustMember: member.name
|
|
4271
4570
|
})
|
|
4272
4571
|
});
|
|
4273
4572
|
}
|
|
@@ -4278,7 +4577,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
4278
4577
|
{
|
|
4279
4578
|
className: styles.alertHeader,
|
|
4280
4579
|
title: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4281
|
-
|
|
4580
|
+
t(($) => $["helpUsVerifyCompany"], { ns: "common" }),
|
|
4282
4581
|
" ",
|
|
4283
4582
|
/* @__PURE__ */ jsx(
|
|
4284
4583
|
Button,
|
|
@@ -4289,7 +4588,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
4289
4588
|
navigateToEditMemberOwner(member?.ownerId, member?.legalEntityId);
|
|
4290
4589
|
},
|
|
4291
4590
|
variant: "link",
|
|
4292
|
-
children:
|
|
4591
|
+
children: t(($) => $["providePersonalDetailsOfOwner"])
|
|
4293
4592
|
}
|
|
4294
4593
|
)
|
|
4295
4594
|
] })
|
|
@@ -4300,13 +4599,13 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
4300
4599
|
{
|
|
4301
4600
|
content: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-width-full", children: [
|
|
4302
4601
|
/* @__PURE__ */ jsx(
|
|
4303
|
-
|
|
4602
|
+
Header,
|
|
4304
4603
|
{
|
|
4305
|
-
|
|
4306
|
-
description:
|
|
4604
|
+
title: t(($) => $["partnershipMembers"]),
|
|
4605
|
+
description: t(($) => $["partnershipMembersDescription"])
|
|
4307
4606
|
}
|
|
4308
4607
|
),
|
|
4309
|
-
/* @__PURE__ */ jsxs(
|
|
4608
|
+
/* @__PURE__ */ jsxs(StackLayout, { children: [
|
|
4310
4609
|
partnershipMembers.map((member) => {
|
|
4311
4610
|
return /* @__PURE__ */ jsx(
|
|
4312
4611
|
EntityAssociation,
|
|
@@ -4331,7 +4630,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
4331
4630
|
icon: "plus",
|
|
4332
4631
|
onClick: () => navigateToEditMember(void 0),
|
|
4333
4632
|
fullWidth: true,
|
|
4334
|
-
children:
|
|
4633
|
+
children: t(($) => $["addPartner"])
|
|
4335
4634
|
}
|
|
4336
4635
|
)
|
|
4337
4636
|
] }),
|
|
@@ -4339,7 +4638,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
4339
4638
|
ActionBar,
|
|
4340
4639
|
{
|
|
4341
4640
|
onHome: navigateBackToTaskList,
|
|
4342
|
-
homeButtonLabel:
|
|
4641
|
+
homeButtonLabel: t(($) => $["saveAndGoToOverview"], { ns: "common" })
|
|
4343
4642
|
}
|
|
4344
4643
|
)
|
|
4345
4644
|
] })
|
|
@@ -4481,71 +4780,71 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
4481
4780
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
4482
4781
|
};
|
|
4483
4782
|
const Introduction = lazy(
|
|
4484
|
-
async () => (await import("./Introduction-
|
|
4783
|
+
async () => (await import("./Introduction-BsZibeHx.js")).Introduction
|
|
4485
4784
|
);
|
|
4486
4785
|
const BusinessTypeSelectionPage = lazy(
|
|
4487
|
-
async () => (await import("./BusinessTypeSelectionPage-
|
|
4786
|
+
async () => (await import("./BusinessTypeSelectionPage-BXdmcFx7.js")).BusinessTypeSelectionPage
|
|
4488
4787
|
);
|
|
4489
4788
|
const SingpassSelection = lazy(
|
|
4490
|
-
async () => (await import("./SingpassSelection-
|
|
4789
|
+
async () => (await import("./SingpassSelection-wIFBjJkx.js")).SingpassSelection
|
|
4491
4790
|
);
|
|
4492
4791
|
const AccountSetupRejected = lazy(
|
|
4493
|
-
async () => (await import("./AccountSetupRejected-
|
|
4792
|
+
async () => (await import("./AccountSetupRejected-iWgw_f_y.js")).AccountSetupRejected
|
|
4494
4793
|
);
|
|
4495
4794
|
const DecisionMakers = lazy(
|
|
4496
|
-
async () => (await import("./DecisionMakers-
|
|
4795
|
+
async () => (await import("./DecisionMakers-BjZNaC3U.js")).DecisionMakers
|
|
4497
4796
|
);
|
|
4498
4797
|
const CustomerSupport = lazy(
|
|
4499
|
-
async () => (await import("./CustomerSupport-
|
|
4798
|
+
async () => (await import("./CustomerSupport-dzWyAxLD.js")).CustomerSupport
|
|
4500
4799
|
);
|
|
4501
|
-
const Review = lazy(async () => (await import("./Review-
|
|
4800
|
+
const Review = lazy(async () => (await import("./Review-BFb6Ykw1.js")).Review);
|
|
4502
4801
|
const SignPCIComponent = lazy(
|
|
4503
|
-
async () => (await import("./SignPCIComponent-
|
|
4802
|
+
async () => (await import("./SignPCIComponent-D5KQ4t2I.js")).SignPCIComponent
|
|
4504
4803
|
);
|
|
4505
4804
|
const AcceptTermsOfService = lazy(
|
|
4506
|
-
async () => (await import("./AcceptTermsOfServiceComponent-
|
|
4805
|
+
async () => (await import("./AcceptTermsOfServiceComponent-CBGVGhCW.js")).AcceptTermsOfServiceComponent
|
|
4507
4806
|
);
|
|
4508
4807
|
const TaxReportingDropin = lazy(
|
|
4509
|
-
async () => (await import("./TaxReportingDropin-
|
|
4808
|
+
async () => (await import("./TaxReportingDropin-T-05itkR.js")).TaxReportingDropin
|
|
4510
4809
|
);
|
|
4511
4810
|
const PayoutDetailsPage = lazy(
|
|
4512
|
-
async () => (await import("./PayoutDetailsDropin-
|
|
4811
|
+
async () => (await import("./PayoutDetailsDropin-CxXIfBo2.js").then((n) => n.a)).PayoutDetailsPage
|
|
4513
4812
|
);
|
|
4514
4813
|
const RootBusinessDetailsPage = lazy(
|
|
4515
|
-
async () => (await import("./RootBusinessDetailsPage-
|
|
4814
|
+
async () => (await import("./RootBusinessDetailsPage-BsbiSuH4.js")).RootBusinessDetailsPage
|
|
4516
4815
|
);
|
|
4517
4816
|
const SoleProprietorshipPage = lazy(
|
|
4518
|
-
async () => (await import("./SoleProprietorshipPage-
|
|
4817
|
+
async () => (await import("./SoleProprietorshipPage-BKxqOwer.js")).SoleProprietorshipPage
|
|
4519
4818
|
);
|
|
4520
4819
|
const TrustMemberCompanyPage = lazy(
|
|
4521
|
-
async () => (await import("./TrustMemberCompanyPage-
|
|
4820
|
+
async () => (await import("./TrustMemberCompanyPage-CPZ8ZzqF.js")).TrustMemberCompanyPage
|
|
4522
4821
|
);
|
|
4523
4822
|
const UnincorporatedPartnershipMemberCompanyPage = lazy(
|
|
4524
|
-
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-
|
|
4823
|
+
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-BPEUAWOw.js")).UnincorporatedPartnershipMemberCompanyPage
|
|
4525
4824
|
);
|
|
4526
4825
|
const BusinessFinancingPage = lazy(
|
|
4527
|
-
async () => (await import("./BusinessFinancingPage-
|
|
4826
|
+
async () => (await import("./BusinessFinancingPage-Di-Nv2Ml.js")).BusinessFinancingPage
|
|
4528
4827
|
);
|
|
4529
4828
|
const TrustDetailsPage = lazy(
|
|
4530
|
-
async () => (await import("./TrustDetailsPage-
|
|
4829
|
+
async () => (await import("./TrustDetailsPage-XpVwVUFb.js")).TrustDetailsPage
|
|
4531
4830
|
);
|
|
4532
4831
|
const SourceOfFundsPage = lazy(
|
|
4533
|
-
async () => (await import("./SourceOfFundsPage-
|
|
4832
|
+
async () => (await import("./SourceOfFundsPage-B0js4JTw.js")).SourceOfFundsPage
|
|
4534
4833
|
);
|
|
4535
4834
|
const RootIndividualDetailsPage = lazy(
|
|
4536
|
-
async () => (await import("./RootIndividualDetailsPage-
|
|
4835
|
+
async () => (await import("./RootIndividualDetailsPage-BEe-U1FO.js")).RootIndividualDetailsPage
|
|
4537
4836
|
);
|
|
4538
4837
|
const LegalRepresentativeDetailsPage = lazy(
|
|
4539
|
-
async () => (await import("./LegalRepresentativeDetailsPage-
|
|
4838
|
+
async () => (await import("./LegalRepresentativeDetailsPage-BLoNELP2.js")).LegalRepresentativeDetailsPage
|
|
4540
4839
|
);
|
|
4541
4840
|
const TrustMemberIndividualPage = lazy(
|
|
4542
|
-
async () => (await import("./TrustMemberIndividualPage-
|
|
4841
|
+
async () => (await import("./TrustMemberIndividualPage-um9OLnSy.js")).TrustMemberIndividualPage
|
|
4543
4842
|
);
|
|
4544
4843
|
const UnincorporatedPartnershipIndividualPage = lazy(
|
|
4545
|
-
async () => (await import("./UnincorporatedPartnershipIndividualPage-
|
|
4844
|
+
async () => (await import("./UnincorporatedPartnershipIndividualPage-CvQOUpDy.js")).UnincorporatedPartnershipIndividualPage
|
|
4546
4845
|
);
|
|
4547
4846
|
const DecisionMakerDetailsPage = lazy(
|
|
4548
|
-
async () => (await import("./DecisionMakerDetailsPage-
|
|
4847
|
+
async () => (await import("./DecisionMakerDetailsPage-CQ5uaVPM.js")).DecisionMakerDetailsPage
|
|
4549
4848
|
);
|
|
4550
4849
|
function isIn(values, x) {
|
|
4551
4850
|
return values.includes(x);
|
|
@@ -5145,9 +5444,9 @@ function OnboardingDropinComponent({
|
|
|
5145
5444
|
addResourceBundles(i18n, i18n.language, [
|
|
5146
5445
|
{
|
|
5147
5446
|
ns: "common",
|
|
5148
|
-
importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-
|
|
5447
|
+
importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-CC5Y7izP.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-E0sZTsrs.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-HNKnBXb5.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-1wVDROIy.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-BKT02owO.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-Ddr7AO05.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-BulXd4Hf.js").then((n) => n.bJ), "../../../language/locales/es-ES.json": () => import("./es-ES-Dc4Z3rGg.js"), "../../../language/locales/et-EE.json": () => import("./et-EE-sGRn_-QJ.js"), "../../../language/locales/fi-FI.json": () => import("./fi-FI-BQxUuIP0.js"), "../../../language/locales/fr-FR.json": () => import("./fr-FR-DvgcaqM8.js"), "../../../language/locales/hr-HR.json": () => import("./hr-HR-BiZNiGG9.js"), "../../../language/locales/hu-HU.json": () => import("./hu-HU-6VmfqBr5.js"), "../../../language/locales/it-IT.json": () => import("./it-IT-BgdxIaNM.js"), "../../../language/locales/ja-JP.json": () => import("./ja-JP-BBzuYv6e.js"), "../../../language/locales/lt-LT.json": () => import("./lt-LT-57A37eCA.js"), "../../../language/locales/lv-LV.json": () => import("./lv-LV-7VOOOEZ-.js"), "../../../language/locales/nl-NL.json": () => import("./nl-NL-DiH4q7K-.js"), "../../../language/locales/no-NO.json": () => import("./no-NO-BeVzpadb.js"), "../../../language/locales/pl-PL.json": () => import("./pl-PL-0BphD78z.js"), "../../../language/locales/pt-BR.json": () => import("./pt-BR-BvAy7bfZ.js"), "../../../language/locales/pt-PT.json": () => import("./pt-PT-BH1abg6H.js"), "../../../language/locales/ro-RO.json": () => import("./ro-RO-raS4E2ww.js"), "../../../language/locales/sk-SK.json": () => import("./sk-SK-Es-5xiuY.js"), "../../../language/locales/sl-SI.json": () => import("./sl-SI-BT9PpQII.js"), "../../../language/locales/sv-SE.json": () => import("./sv-SE-EbNvb_L7.js") }), `../../../language/locales/${i18n.language}.json`, 6)
|
|
5149
5448
|
},
|
|
5150
|
-
{ ns: "ui", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../ui/language/bg-BG.json": () => import("./bg-BG-
|
|
5449
|
+
{ ns: "ui", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../ui/language/bg-BG.json": () => import("./bg-BG-Cs_1PU3v.js"), "../../ui/language/cs-CZ.json": () => import("./cs-CZ-B2WAqmaW.js"), "../../ui/language/da-DK.json": () => import("./da-DK-D-eeokQn.js"), "../../ui/language/de-DE.json": () => import("./de-DE-Dcs3W1fT.js"), "../../ui/language/el-GR.json": () => import("./el-GR-DBum-QDu.js"), "../../ui/language/en-US.json": () => import("./en-US-DdeSoN_2.js"), "../../ui/language/es-ES.json": () => import("./es-ES-C7XjLOHi.js"), "../../ui/language/et-EE.json": () => import("./et-EE-BUG05EDz.js"), "../../ui/language/fi-FI.json": () => import("./fi-FI-CEzjKgiz.js"), "../../ui/language/fr-FR.json": () => import("./fr-FR-DNJiLv9b.js"), "../../ui/language/hr-HR.json": () => import("./hr-HR-WMnlxMEY.js"), "../../ui/language/hu-HU.json": () => import("./hu-HU-B2nrl0pw.js"), "../../ui/language/it-IT.json": () => import("./it-IT-BRmX2jEi.js"), "../../ui/language/ja-JP.json": () => import("./ja-JP-gRRH8Eph.js"), "../../ui/language/lt-LT.json": () => import("./lt-LT-BJQDUanx.js"), "../../ui/language/lv-LV.json": () => import("./lv-LV-h3nTokkM.js"), "../../ui/language/nl-NL.json": () => import("./nl-NL-YzDSCWLL.js"), "../../ui/language/no-NO.json": () => import("./no-NO-Big2B13b.js"), "../../ui/language/pl-PL.json": () => import("./pl-PL-CL483jMb.js"), "../../ui/language/pt-BR.json": () => import("./pt-BR-DJOzf0y2.js"), "../../ui/language/pt-PT.json": () => import("./pt-PT-B3qoJ3Fr.js"), "../../ui/language/ro-RO.json": () => import("./ro-RO-Ct_BJvsc.js"), "../../ui/language/sk-SK.json": () => import("./sk-SK-FGK1FMMO.js"), "../../ui/language/sl-SI.json": () => import("./sl-SI-Cz28AFTz.js"), "../../ui/language/sv-SE.json": () => import("./sv-SE-DLl7OGxl.js") }), `../../ui/language/${i18n.language}.json`, 5) }
|
|
5151
5450
|
]);
|
|
5152
5451
|
const { data: legalEntityData } = useLegalEntity(ROOT_LE);
|
|
5153
5452
|
return !legalEntityData ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx(
|
|
@@ -5159,11 +5458,10 @@ function OnboardingDropinComponent({
|
|
|
5159
5458
|
);
|
|
5160
5459
|
}
|
|
5161
5460
|
export {
|
|
5162
|
-
CardGroup as C,
|
|
5163
5461
|
DropinLayout as D,
|
|
5164
5462
|
EntityGuidanceStatus as E,
|
|
5165
5463
|
INDUSTRY_CODE_FIELD as I,
|
|
5166
|
-
|
|
5464
|
+
ListItem as L,
|
|
5167
5465
|
OnboardingDropinComponent as O,
|
|
5168
5466
|
usePciStatus as a,
|
|
5169
5467
|
useCanSeeIntroduction as b,
|
|
@@ -5179,6 +5477,9 @@ export {
|
|
|
5179
5477
|
defaultFieldConfigV4 as l,
|
|
5180
5478
|
defaultFieldConfig as m,
|
|
5181
5479
|
normalizedTaskStatusStore as n,
|
|
5182
|
-
|
|
5480
|
+
LEGAL_COMPANY_NAME_FIELD as o,
|
|
5481
|
+
Divider as p,
|
|
5482
|
+
useTrustMembers as q,
|
|
5483
|
+
useBusinessLines as r,
|
|
5183
5484
|
useSalesChannelsSettings as u
|
|
5184
5485
|
};
|