@adyen/kyc-components 3.83.3 → 3.85.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-C3hVh9N7.js → AcceptTermsOfServiceComponent-BW8S5c-F.js} +23 -20
- package/dist/Accordion-CxXXx4Ly.js +88 -0
- package/dist/{AccountSetupRejected-CeyJLT4E.js → AccountSetupRejected-B0RVdTUw.js} +6 -6
- package/dist/{Address-BGfOIouJ.js → Address-BBHj9Aas.js} +10 -10
- package/dist/{Alert-DHQk23dC.js → Alert-Dz_jjJ1E.js} +3 -75
- package/dist/{Avatar-CS2stI4H.js → Avatar-CCed5bJE.js} +2 -2
- package/dist/{BusinessDetailsDropin-mNjPvsY9.js → BusinessDetailsMultiformDropin-B7HHvJeq.js} +2288 -272
- package/dist/BusinessFinancingComponent-D9cn6vVF.js +54 -0
- package/dist/{BusinessFinancingDropin-8rVi3mz3.js → BusinessFinancingDropin-CCci5zHD.js} +185 -125
- package/dist/BusinessFinancingPage-DuRkxp4x.js +46 -0
- package/dist/{BusinessTypeSelectionPage-CJ-o8Yqg.js → BusinessTypeSelectionPage-CQvrZNZZ.js} +12 -12
- package/dist/{Card-Cl8VBX_1.js → Card-dFm_Z3TI.js} +6 -4
- package/dist/{CountryField-BiXkT-tj.js → CountryField-DunKeW_n.js} +220 -235
- package/dist/CreateIndividualComponent-wFiOsvgz.js +71 -0
- package/dist/CreateTransferInstrumentComponent-B_fQXq70.js +66 -0
- package/dist/{Currency-Dou9MT1v.js → Currency-2wpP-9m3.js} +6 -6
- package/dist/{CustomerSupport-CcHrpuRI.js → CustomerSupport-DyfNEq22.js} +11 -10
- package/dist/{DebugModal-CTrUKrb2.js → DebugModal-BMw5O5pH.js} +128 -42
- package/dist/{DecisionMakerDetailsPage-DY0LPeya.js → DecisionMakerDetailsPage-D-8hNnWf.js} +16 -10
- package/dist/DecisionMakers-DUjAziKs.js +831 -0
- package/dist/Divider-Ckm8Nfyb.js +239 -0
- package/dist/{Dropzone-CTi4TC83.js → Dropzone-BtTUNjsc.js} +4 -4
- package/dist/{EmbeddedStatus-BY8fNfqA.js → EmbeddedStatus-kQRIlMAC.js} +15 -16
- package/dist/{EndStateLayout-CtTL_7_4.js → EndStateLayout-CePzY6oB.js} +2 -2
- package/dist/{FormNavigation-DJBG1CCX.js → FormNavigation-a9y0a0iw.js} +3 -3
- package/dist/Image-TkXLA-UY.js +22 -0
- package/dist/{IndividualOnfidoDropin-Cd2P_puU.js → IndividualOnfidoDropin-CljBpKM8.js} +256 -401
- package/dist/{InputDate-BLfb-amv.js → InputDate-DggMbeJG.js} +2 -2
- package/dist/{InputText-sJlljYSI.js → InputText-zem7Kt4i.js} +4 -7
- package/dist/{Introduction-C7BYI3V1.js → Introduction-DH4Tivyl.js} +4 -5
- package/dist/{JpAddress-D0MtPVgI.js → JpAddress-BEKjE0bR.js} +27 -10
- package/dist/LandingLayout-BLjTVlVb.js +60 -0
- package/dist/{LegalRepresentativeDetailsPage-B70wj66T.js → LegalRepresentativeDetailsPage-Dny2mD-G.js} +5 -6
- package/dist/{Link-vZp7tgW8.js → Link-BZJgg2rS.js} +2 -2
- package/dist/ListItem-BqBZ36Qn.js +69 -0
- package/dist/ManageIndividualComponent-CHbI_tji.js +46 -0
- package/dist/ManageTermsOfServiceComponent-Dwsmig7o.js +58 -0
- package/dist/{ManageTransferInstrumentComponent-Dvh31wEf.js → ManageTransferInstrumentComponent-Btz3RWc6.js} +17 -17
- package/dist/{MaskedInput-GOLjL1Ek.js → MaskedInput-CSKFmTC0.js} +6 -6
- package/dist/MaybeModal-DraEs2gj.js +25 -0
- package/dist/{Modal-BTqOwYJg.js → Modal-DvB1odWq.js} +2 -2
- package/dist/OnboardingDropinComponent-KKy3000L.js +4274 -0
- package/dist/{PayoutDetailsDropin-C9nLO9zs.js → PayoutDetailsDropin-BFUH8RvF.js} +324 -97
- package/dist/RadioGroup-Br5v8w0a.js +144 -0
- package/dist/{RegistrationAddress-Ck3nfynp.js → RegistrationAddress-CP_kZ9NI.js} +39 -42
- package/dist/{Review-uYeavIQG.js → Review-4b9BWdsh.js} +9 -8
- package/dist/RootBusinessDetailsPage-DO5202Yd.js +61 -0
- package/dist/{OnboardingDropinComponent-DCqansoJ.js → RootBusinessLinesPage-D0tGN2u3.js} +866 -5062
- package/dist/{RootIndividualDetailsPage-BLZ2WFRD.js → RootIndividualDetailsPage-2c_nvpAv.js} +5 -6
- package/dist/{SignPCIComponent-BbIzBRVs.js → SignPCIComponent-4UrP4tNd.js} +12 -11
- package/dist/{SingpassSelection-Dq5HgINi.js → SingpassSelection-DTOk81Y1.js} +11 -10
- package/dist/SoleProprietorshipPage-BL3u4nCi.js +60 -0
- package/dist/{SourceOfFundsPage-ByR78Odk.js → SourceOfFundsPage-HgGh-VDQ.js} +43 -65
- package/dist/{StepProgressIndicator-DMgLRY9r.js → StepProgressIndicator-sfM13J_b.js} +2 -2
- package/dist/{StoreProvider-DwPgB8ia.js → StoreProvider-DadhkEyO.js} +660 -195
- package/dist/{TaskItemStatus-CVCNELof.js → TaskItemStatus-DuJ01Ng6.js} +3 -14
- package/dist/{TaxInformationField-B2hH-21-.js → TaxInformationField-C4OeLAhU.js} +34 -31
- package/dist/{TaxReportingDropin-BetxF-rL.js → TaxReportingDropin-2VcdfJvr.js} +64 -56
- package/dist/{TileGroup-L2c_L0vO.js → TileGroup-B_9rid7_.js} +4 -4
- package/dist/{TrustDetailsPage-Dw45u8py.js → TrustDetailsPage-COIeKAk2.js} +53 -44
- package/dist/TrustMemberCompanyPage-CwNG1bni.js +73 -0
- package/dist/TrustMemberIndividualPage-D57poDUv.js +66 -0
- package/dist/{UnincorporatedPartnershipIndividualPage-Bwfoygy7.js → UnincorporatedPartnershipIndividualPage-oiEGWL8D.js} +5 -6
- package/dist/UnincorporatedPartnershipMemberCompanyPage-av-gOgOa.js +76 -0
- package/dist/{ViewVerificationStatusComponent-9ufxQVRy.js → ViewVerificationStatusComponent-Zk6t-F6h.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-awjVudvY.js +123 -0
- package/dist/{bafinUtils-BXU3g8Pd.js → bafinUtils-CAVAvSFg.js} +8 -99
- package/dist/bg-BG-BIOMFPaW.js +27 -0
- package/dist/bg-BG-BLe6BCNz.js +13 -0
- package/dist/bg-BG-BPsOhDfg.js +13 -0
- package/dist/bg-BG-BvLl6gaB.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-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-fr-xfUBV.js +110 -0
- package/dist/{bg-BG-fgdGvtqa.js → bg-BG-z3gZQvGq.js} +6 -1
- package/dist/commonValidators-DM04eNpa.js +24 -0
- package/dist/{cs-CZ-CVpbQMSY.js → cs-CZ-B2WAqmaW.js} +9 -1
- package/dist/cs-CZ-BP7niQM9.js +68 -0
- package/dist/cs-CZ-C0sNB1Fm.js +110 -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-CHzJM-ii.js +13 -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-DNWTRefA.js +27 -0
- package/dist/cs-CZ-DXtJsBPz.js +24 -0
- package/dist/cs-CZ-hT5w5It6.js +13 -0
- package/dist/cs-CZ-xoLsda7i.js +13 -0
- package/dist/da-DK-8dk9Q_Wk.js +110 -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-D-PlwKvZ.js +27 -0
- package/dist/da-DK-D-TJghBi.js +13 -0
- 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-XNMYSp7w.js +13 -0
- package/dist/da-DK-gnPgzwrG.js +27 -0
- package/dist/de-DE-4GAd_srm.js +27 -0
- package/dist/de-DE-BI7AAdOv.js +13 -0
- package/dist/{de-DE-BahIk-1-.js → de-DE-BXt1K0Tr.js} +2 -1
- package/dist/de-DE-CCmlaL2F.js +13 -0
- package/dist/de-DE-CCyKie8B.js +110 -0
- package/dist/de-DE-D3lLuF8z.js +27 -0
- package/dist/de-DE-D50lGOJE.js +24 -0
- package/dist/de-DE-DXR3EpEc.js +13 -0
- package/dist/{de-DE-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/{hr-HR-CNzbyo9r.js → debugStore-BvbyN1Oi.js} +4 -5
- package/dist/dropinUtils-wWEQXoqU.js +196 -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-CKHMsdx2.js +24 -0
- package/dist/el-GR-D7zMcBtK.js +110 -0
- 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-Ddnh0NhQ.js +27 -0
- package/dist/el-GR-DoCIcce-.js +13 -0
- 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/el-GR-kYiInIQ9.js +13 -0
- package/dist/en-US-B96dpVon.js +27 -0
- package/dist/{en-US-DI1dH0ZB.js → en-US-BCFNoF5y.js} +5 -1
- package/dist/en-US-BQZhzROc.js +32 -0
- package/dist/en-US-BwDZ0WHW.js +110 -0
- package/dist/{en-US-DIdQJky-.js → en-US-CzEL6t1W.js} +24 -4
- package/dist/en-US-D-B35AoN.js +68 -0
- package/dist/en-US-D2yrwtzT.js +24 -0
- package/dist/en-US-DYpvuCLO.js +13 -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-DjF6iC7G.js} +17 -1
- package/dist/es-ES-BI_jdT67.js +68 -0
- package/dist/es-ES-BOoPqnPI.js +32 -0
- package/dist/{es-ES-BPDeEYGv.js → es-ES-BhNhIf08.js} +2 -1
- package/dist/es-ES-C4lENXHH.js +27 -0
- package/dist/{es-ES-DdT2wJTP.js → es-ES-C7XjLOHi.js} +9 -1
- package/dist/es-ES-C9oDOVSQ.js +35 -0
- package/dist/es-ES-CJMsyMAc.js +13 -0
- package/dist/es-ES-CXDJLKAI.js +27 -0
- package/dist/es-ES-CnNU6AJv.js +13 -0
- package/dist/{es-ES-keMO-LlU.js → es-ES-D0c0MoqK.js} +6 -1
- package/dist/es-ES-DF_L5EDd.js +24 -0
- package/dist/es-ES-JvAvmB2A.js +110 -0
- package/dist/es-ES-yMXcOjDL.js +13 -0
- package/dist/et-EE--cL_YqWe.js +27 -0
- package/dist/et-EE-3EQr-1cj.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-BR4OXRfV.js +13 -0
- 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-C_PZO2aI.js +68 -0
- package/dist/et-EE-SJf3_Ega.js +110 -0
- package/dist/et-EE-sB7wkSA3.js +13 -0
- package/dist/fi-FI-BbqwYcLI.js +13 -0
- package/dist/fi-FI-Byvvcxxq.js +27 -0
- package/dist/{fi-FI-DKxJM0k6.js → fi-FI-CEzjKgiz.js} +9 -1
- package/dist/fi-FI-Cy2hAl0B.js +110 -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-u5GxMZsq.js +13 -0
- package/dist/fi-FI-xqnQ38yC.js +13 -0
- package/dist/{fi-FI-LpkpSl5X.js → fi-FI-ysUrBilO.js} +2 -1
- package/dist/{fieldConfigurations-CouXUtn_.js → fieldConfigurations-BZuo2e0d.js} +16 -313
- package/dist/{pl-PL-D6heiKsH.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-BmW46mYd.js +110 -0
- package/dist/fr-FR-BnblnBsx.js +24 -0
- package/dist/fr-FR-CMjrAkKl.js +13 -0
- package/dist/fr-FR-CYZXbwc9.js +68 -0
- package/dist/fr-FR-CiwkAb3E.js +27 -0
- package/dist/fr-FR-Cr-Y1vIy.js +13 -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-E_UubsZ-.js +27 -0
- package/dist/{fr-FR-B3qQW3oG.js → fr-FR-JLPKgufm.js} +6 -1
- package/dist/fr-FR-cTKcuHqX.js +32 -0
- package/dist/{getName-C5JdRmWF.js → getName-DwJ2SEhe.js} +2 -2
- package/dist/{hasDataChanged-DEVHUnoc.js → hasDataChanged-qmdT2J_a.js} +2 -2
- package/dist/{hr-HR-DST-QbRI.js → hr-HR-BLpGb4f2.js} +2 -1
- package/dist/hr-HR-Bhsop3CT.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-D8cBxUFa.js +13 -0
- package/dist/hr-HR-D9bzCN_d.js +35 -0
- package/dist/hr-HR-De5kHU8U.js +24 -0
- package/dist/hr-HR-DtfHQVe0.js +27 -0
- package/dist/hr-HR-TVOgDkBf.js +27 -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-c1Si_0s4.js +110 -0
- package/dist/{hu-HU-CJh8OY-w.js → hu-HU-B2nrl0pw.js} +9 -1
- package/dist/hu-HU-BVfkOdJe.js +13 -0
- 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-CibGC8KY.js +110 -0
- package/dist/hu-HU-D2j1ISVk.js +13 -0
- package/dist/hu-HU-DG-NUDx4.js +68 -0
- package/dist/hu-HU-DRONW_47.js +27 -0
- package/dist/hu-HU-DUGz5q5D.js +32 -0
- package/dist/hu-HU-I4-KFzvz.js +27 -0
- package/dist/hu-HU-hbVM6tMS.js +13 -0
- package/dist/{iframeWidget-d6juHEyB.js → iframeWidget-Bdf5GkVq.js} +4 -4
- package/dist/{isEmpty-BG-uhS0n.js → isEmpty-DWL1114W.js} +2 -2
- package/dist/it-IT-BMjuva_2.js +110 -0
- package/dist/{it-IT-vJt2CGXz.js → it-IT-BRmX2jEi.js} +9 -1
- package/dist/it-IT-C7Sg1k4p.js +13 -0
- package/dist/it-IT-C_651bEP.js +13 -0
- package/dist/it-IT-Ckv8Ce4e.js +24 -0
- package/dist/it-IT-CwA8megO.js +13 -0
- package/dist/it-IT-DERflsUd.js +32 -0
- package/dist/it-IT-DIbH-udG.js +27 -0
- package/dist/it-IT-DuBLJIdz.js +27 -0
- package/dist/it-IT-Erh1DIlj.js +68 -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-BSYrPZsE.js +35 -0
- package/dist/ja-JP-BoxeBgOv.js +32 -0
- package/dist/{ja-JP-DT0qGp0i.js → ja-JP-CCnzjx-u.js} +32 -2
- package/dist/{ja-JP-C870wgmw.js → ja-JP-CHQ64lw1.js} +2 -1
- package/dist/ja-JP-CJ_j_HAA.js +27 -0
- package/dist/ja-JP-Cr_qjpZ2.js +110 -0
- 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-GSbqID7o.js +13 -0
- package/dist/ja-JP-ThzG9vIo.js +68 -0
- package/dist/ja-JP-bz7ekGnF.js +27 -0
- package/dist/{ja-JP-Cm2wakN6.js → ja-JP-gRRH8Eph.js} +21 -13
- package/dist/jpAddressSchema-ULGNNt5U.js +27 -0
- package/dist/{localizeDateString-2YGGL44u.js → localizeDateString--iXm1oBl.js} +1 -1
- package/dist/{lt-LT-Dxde15Cc.js → lt-LT-0RKZeraM.js} +2 -1
- 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-C5nNCk4_.js +13 -0
- package/dist/lt-LT-CBBDNCnp.js +27 -0
- package/dist/{lt-LT-0CK0Iin7.js → lt-LT-CLPQVRpJ.js} +6 -1
- 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-DSiutpRl.js +13 -0
- package/dist/lt-LT-DjNjg3Pl.js +110 -0
- package/dist/lt-LT-Nd1uRoIj.js +68 -0
- package/dist/lt-LT-i-T_HQ42.js +35 -0
- package/dist/{lv-LV-DDvnyHlO.js → lv-LV-Bh-WQp0K.js} +2 -1
- package/dist/lv-LV-BpRfRfMz.js +110 -0
- package/dist/lv-LV-BtX12dHJ.js +35 -0
- package/dist/lv-LV-C62XiDE5.js +13 -0
- package/dist/lv-LV-C7hMdPcY.js +27 -0
- package/dist/lv-LV-CEK8Re4d.js +13 -0
- package/dist/lv-LV-CG1zToz7.js +32 -0
- package/dist/lv-LV-CkyuY2ji.js +24 -0
- package/dist/lv-LV-CtIe38WU.js +27 -0
- package/dist/{lv-LV-CSxppAD_.js → lv-LV-Cu-MJMVO.js} +6 -1
- package/dist/lv-LV-DKhV24CI.js +68 -0
- package/dist/lv-LV-Dxe-A5vo.js +13 -0
- package/dist/{lv-LV-CaFrxG3S.js → lv-LV-h3nTokkM.js} +9 -1
- package/dist/mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js +56 -0
- package/dist/{mapExistingFile-IowNtBa2.js → mapExistingFile-Ct5Drm_t.js} +4 -4
- package/dist/mapJpAddressSchemaToAddressLocalizations-Btg-uZPu.js +147 -0
- package/dist/mapLegalEntityToIndividualOnfidoSchema-DQsaMiqB.js +203 -0
- package/dist/{mapTransferInstrumentToPayoutAccount-DtC0bw_-.js → mapTransferInstrumentToPayoutAccount-CRhSOuJd.js} +6 -3
- package/dist/nl-NL-BOJ6zuBr.js +13 -0
- package/dist/nl-NL-Bx5p0nXL.js +24 -0
- package/dist/nl-NL-CE4l8R5l.js +27 -0
- package/dist/nl-NL-Cjlmc0Ii.js +32 -0
- package/dist/{nl-NL-Uf_myU_8.js → nl-NL-D7gBNWEY.js} +2 -1
- package/dist/nl-NL-DOQPxTX-.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-oaBDOlm6.js +110 -0
- 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-B1_YJlMP.js +27 -0
- package/dist/no-NO-BTrfxWS7.js +110 -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-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-Cp3-tDMw.js +13 -0
- package/dist/no-NO-Crlsj6HG.js +27 -0
- package/dist/no-NO-CuwTDFSf.js +13 -0
- package/dist/no-NO-kPnbGnBM.js +35 -0
- package/dist/pl-PL-1-MrLPXu.js +13 -0
- package/dist/pl-PL-BKDK0_G8.js +68 -0
- package/dist/pl-PL-BzhEoDb5.js +24 -0
- package/dist/pl-PL-C-MmQaeR.js +35 -0
- package/dist/pl-PL-C72GTDxW.js +110 -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-CtDHmbhp.js +13 -0
- package/dist/{pl-PL-DFrOIiCG.js → pl-PL-CxCiWdAF.js} +6 -1
- package/dist/pl-PL-DGYFY42P.js +27 -0
- package/dist/pl-PL-DYxD6VJ_.js +27 -0
- package/dist/pl-PL-DtJ3sgVO.js +13 -0
- package/dist/{pl-PL-B1tVRX3A.js → pl-PL-LnVPufjb.js} +2 -1
- package/dist/process-field-configurations-B1Iwtpx2.js +304 -0
- package/dist/pt-BR-BfxgHKY4.js +27 -0
- package/dist/pt-BR-Br_cHzGx.js +13 -0
- package/dist/pt-BR-C0I_kTQ6.js +13 -0
- package/dist/pt-BR-CBAe0SnK.js +32 -0
- package/dist/pt-BR-Co8OqKh-.js +27 -0
- package/dist/pt-BR-CtFCi7U4.js +110 -0
- package/dist/pt-BR-DJOzf0y2.js +53 -0
- package/dist/pt-BR-DSENwwGu.js +24 -0
- package/dist/pt-BR-DnKEuslh.js +13 -0
- 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-Bf4IV7wp.js +13 -0
- package/dist/pt-PT-CIo3mlXL.js +24 -0
- package/dist/pt-PT-CLwCij2I.js +13 -0
- package/dist/{pt-PT-DpBfkgVw.js → pt-PT-CVNEcs32.js} +2 -1
- package/dist/{pt-PT-CU13UUwT.js → pt-PT-Coa6J7SM.js} +6 -1
- 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/pt-PT-XAn7WGle.js +110 -0
- package/dist/pt-PT-cjbtYBUX.js +13 -0
- package/dist/pt-PT-pKLoM66X.js +27 -0
- package/dist/resolveEnvironment-DC9P7X3D.js +164 -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-CGhIjlpU.js +13 -0
- package/dist/ro-RO-Cmk-sVDr.js +13 -0
- package/dist/{ro-RO-BWQeseQ_.js → ro-RO-Ct_BJvsc.js} +9 -1
- package/dist/ro-RO-D3rQ93wa.js +27 -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-qX8X1Q1m.js +110 -0
- package/dist/{rules-BIhDWVgR.js → rules-CzXw9tws.js} +10 -6
- package/dist/{sk-SK-Rd06VJ5k.js → sk-SK-B5brxU1N.js} +2 -1
- package/dist/sk-SK-Bo5nvxWQ.js +13 -0
- package/dist/sk-SK-C5Qmv4E6.js +13 -0
- package/dist/sk-SK-C6rMIxpz.js +68 -0
- package/dist/sk-SK-CjdK4BKW.js +110 -0
- package/dist/sk-SK-CjrLvDMx.js +27 -0
- package/dist/sk-SK-CmH1I1tp.js +27 -0
- package/dist/sk-SK-Cv23cDQO.js +24 -0
- package/dist/sk-SK-Do6CKNU4.js +13 -0
- package/dist/{sk-SK-DnNuh37c.js → sk-SK-FGK1FMMO.js} +9 -1
- package/dist/sk-SK-S6iF1WDH.js +32 -0
- 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-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-CrTRlNnN.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-cY-L2ma-.js +13 -0
- package/dist/sl-SI-hnlbW1OT.js +27 -0
- package/dist/sl-SI-lPxRRPsh.js +110 -0
- package/dist/sl-SI-tPwbFvOI.js +68 -0
- package/dist/style.css +696 -597
- package/dist/styles-CLV89_hH.js +696 -597
- package/dist/sv-SE-7Cbo1oic.js +27 -0
- package/dist/sv-SE-BHfydid5.js +27 -0
- package/dist/sv-SE-BPpQ-05i.js +110 -0
- package/dist/sv-SE-BYUoi-08.js +35 -0
- package/dist/sv-SE-BtwPrLEA.js +13 -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-CXaMlJCI.js +24 -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-K1QT1cOt.js +68 -0
- package/dist/sv-SE-WPziDPQa.js +13 -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/fields/BankAccountFormat/types.d.ts +2 -1
- package/dist/types/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.d.ts +10 -0
- package/dist/types/components/BankAccount/forms/PayoutAccount/payoutAccountFormat.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +11 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +6 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +4 -4
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +2 -0
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +2 -1
- package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +53 -51
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +3 -2
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +5 -3
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.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 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +2 -1
- 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/BusinessFinancingBasicCompanyInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +7 -5
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/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/fields/NameFields/NameFields.d.ts +3 -0
- package/dist/types/components/Individual/forms/Individual/IdVerification/idVerificationProviderId.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +3 -3
- package/dist/types/components/Individual/forms/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/DecisionMakers/utils.d.ts +3 -0
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -4
- package/dist/types/components/Shared/devex/DebugListener/DebugFormData.d.ts +1 -0
- package/dist/types/components/Shared/devex/DebugListener/debugStore.d.ts +5 -0
- package/dist/types/components/Shared/fields/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/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +1 -2
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +1 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +1 -2
- package/dist/types/components/ui/atoms/Header/Header.d.ts +12 -0
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +1 -2
- 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 +4 -12
- 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/core/models/api/transfer-instrument.d.ts +2 -0
- package/dist/types/core/process-field-configurations.d.ts +2 -2
- package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +1 -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/stores/globalStore/taskTypes.d.ts +1 -1
- package/dist/types/{core → utils}/analytics.d.ts +5 -5
- 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-7oacjAfc.js → types-28yvE9dj.js} +2 -2
- package/dist/{types-DATo4gPc.js → types-BzOpGekG.js} +2 -2
- package/dist/{types-CAznNNSI.js → types-DHmyPbAn.js} +5 -13
- package/dist/{useAssociatedLegalEntity-C5XzLwm6.js → useAssociatedLegalEntity-Cd77TYXt.js} +1 -1
- package/dist/{useDataset-B6FKCmU2.js → useDataset-B-72Ufk7.js} +3 -3
- package/dist/{useForm-TOSljeW-.js → useForm-Aw38WiTE.js} +8 -79
- package/dist/useFormContext-Bx1n-f4V.js +222 -0
- package/dist/{useGlobalData-sHcA849M.js → useGlobalData-BYJWYYpf.js} +10 -11
- package/dist/{RadioGroup-wSE3YT0H.js → useMultiForm-D-wGVJq1.js} +6 -342
- package/dist/{useOnboardingStatus-D1s1dB2k.js → useOnboardingStatus-AbPudgMj.js} +1 -1
- package/dist/{useScenarios-yNSBgN3c.js → useScenarios-CEHvpucH.js} +2 -2
- package/dist/{useTermsOfServiceStatus-Bv3bR8mM.js → useTermsOfServiceStatus-BugRyfkQ.js} +1 -1
- package/dist/{useToastContext-Cfcp4loq.js → useToastContext-D58NfzLh.js} +2 -5
- package/dist/{useUnincorporatedPartnershipMembers-BNNKhIVK.js → useUnincorporatedPartnershipMembers-BOfx-rWR.js} +5 -5
- package/dist/{utils-B0A1M8Ct.js → utils-D-PqLpBS.js} +2 -2
- package/dist/{utils-Bv3wJ_bS.js → utils-JAm-rEQS.js} +10 -10
- package/dist/{utils-BH-sDfZk.js → utils-qNiMqbmo.js} +16 -10
- package/dist/{validate-B15f0Zu8.js → validate-6QHmaW1O.js} +3 -6
- package/dist/{validate-C1N5NQIr.js → validate-9J9pJpyR.js} +8 -8
- package/dist/{validate-D3dgN5zd.js → validate-BY5vrcXH.js} +2 -2
- package/dist/{validationError-BHbVbi9T.js → validationError-kAn6qx2R.js} +2 -2
- package/package.json +70 -70
- package/dist/BusinessFinancingComponent-UBvmxB5u.js +0 -45
- package/dist/BusinessFinancingPage-3-Lx_c_S.js +0 -40
- package/dist/CreateIndividualComponent-BK8ySYfg.js +0 -72
- package/dist/CreateTransferInstrumentComponent-Cl1M2Bnh.js +0 -67
- package/dist/DecisionMakers-aTDiZZJK.js +0 -593
- package/dist/ManageIndividualComponent-5C7FQlLt.js +0 -47
- package/dist/ManageTermsOfServiceComponent-CvO8-gkU.js +0 -47
- package/dist/RootBusinessDetailsPage-fg7aqice.js +0 -1915
- package/dist/SoleProprietorshipPage-CBzk6v1a.js +0 -50
- package/dist/TaskStatusIndicator-Bgcj5g7L.js +0 -69
- package/dist/TrustMemberCompanyPage-C-bMG5UI.js +0 -60
- package/dist/TrustMemberIndividualPage-Da2kKJCc.js +0 -66
- package/dist/UnincorporatedPartnershipMemberCompanyPage-gvm4YkhM.js +0 -64
- package/dist/analytics-DAPJVGPZ.js +0 -61
- package/dist/bg-BG-9uVrFuHv.js +0 -23
- package/dist/bg-BG-B0-ZcjR0.js +0 -22
- 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-Dk1ePReM.js +0 -22
- 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-DStNe471.js +0 -22
- package/dist/da-DK-R0sNbjuQ.js +0 -13
- package/dist/de-DE-CGoBPCPv.js +0 -22
- 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-B69zcWyB.js +0 -22
- 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-CKMfS8Yy.js +0 -22
- 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-Dw-aPF7J.js +0 -22
- 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/fi-FI-REYOX46I.js +0 -22
- 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-D9qaP6nx.js +0 -22
- 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-CbxEvbrE.js +0 -22
- 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-D0C6UfXB.js +0 -22
- 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-Biduphjt.js +0 -22
- 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-B2txEVPx.js +0 -22
- 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-C_YMgjp9.js +0 -22
- 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-B3sT3_cw.js +0 -22
- package/dist/lv-LV-BiilWzcg.js +0 -13
- package/dist/lv-LV-CBex8RS9.js +0 -13
- package/dist/lv-LV-ChOoZuhc.js +0 -15
- package/dist/lv-LV-DPZgF65i.js +0 -13
- package/dist/lv-LV-DTtuyfHS.js +0 -23
- package/dist/lv-LV-Sbsv8-nD.js +0 -35
- package/dist/mapScriptLocalization-BNv4ewMQ.js +0 -72
- package/dist/nl-NL-BHkRnVrj.js +0 -35
- package/dist/nl-NL-BHqiO21q.js +0 -15
- package/dist/nl-NL-BIcLB7e6.js +0 -13
- package/dist/nl-NL-CU6c8oyY.js +0 -13
- package/dist/nl-NL-DKYvsnqM.js +0 -13
- package/dist/nl-NL-G1wVnmzT.js +0 -22
- package/dist/nl-NL-Zcq0bXd-.js +0 -23
- package/dist/no-NO-BTtAuqCb.js +0 -22
- 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--qPaNyJD.js +0 -22
- 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-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-Cmr5LoAm.js +0 -22
- 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-Dk48OVtf.js +0 -22
- package/dist/pt-PT-Gsd7I9Ff.js +0 -13
- package/dist/pt-PT-N0njcfLO.js +0 -23
- package/dist/pt-PT-Xm-pm3mb.js +0 -35
- package/dist/resolveEnvironment-C48a6PCP.js +0 -84
- package/dist/ro-RO-B4ASHhK6.js +0 -13
- package/dist/ro-RO-B75duQ_N.js +0 -13
- package/dist/ro-RO-BLuOjrS0.js +0 -22
- 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-C1Ky2nl_.js +0 -22
- 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-BB7iVcFI.js +0 -22
- 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-DbI-1JqN.js +0 -22
- package/dist/sv-SE-Dwz1yTrB.js +0 -15
- package/dist/sv-SE-Ez33Bdgp.js +0 -13
- package/dist/translation-Bswps3l6.js +0 -472
- package/dist/types/components/BusinessLines/forms/rules.d.ts +0 -5
- package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +0 -8
- package/dist/types/components/ui/atoms/Remove/Remove.d.ts +0 -2
- package/dist/types/components/ui/atoms/Remove/Remove.types.d.ts +0 -9
- package/dist/types/components/ui/molecules/Card/CardGroup.d.ts +0 -3
|
@@ -0,0 +1,831 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
4
|
+
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "da9c55a2-5367-438e-9a7b-2f38cb763950", e._sentryDebugIdIdentifier = "sentry-dbid-da9c55a2-5367-438e-9a7b-2f38cb763950");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { an as DecisionMakerTypes, aZ as drop, aB as cloneObject, u as useTranslation, c as useLegalEntity, B as Button, L as Loader, x as Typography, P as useAnalyticsContext, R as ROOT_LE, a as addResourceBundles, $ as useGetTaskStatus, X as useExperimentsContext, J as EntityTypes, K as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, aN as getOwnDecisionMakers, b4 as getAvailableDecisionMakerRoleTypes, M as TaskTypes, O as TaskStatuses, a_ as getAllowedDecisionMakerRoles, ad as Trans, _ as __variableDynamicImportRuntimeHelper, y as LegalEntityTypes } from "./StoreProvider-DadhkEyO.js";
|
|
11
|
+
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
12
|
+
import { useState, useMemo, useEffect } from "preact/hooks";
|
|
13
|
+
import { u as useScenarios } from "./useScenarios-CEHvpucH.js";
|
|
14
|
+
import { a as useUpdateLegalEntity } from "./RadioGroup-Br5v8w0a.js";
|
|
15
|
+
import { S as StackLayout, L as List, H as Header } from "./CountryField-DunKeW_n.js";
|
|
16
|
+
import { L as ListItem } from "./ListItem-BqBZ36Qn.js";
|
|
17
|
+
import { M as Modal } from "./Modal-DvB1odWq.js";
|
|
18
|
+
import { u as useToastContext } from "./useToastContext-D58NfzLh.js";
|
|
19
|
+
import { e as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, f as EntityAssociation } from "./OnboardingDropinComponent-KKy3000L.js";
|
|
20
|
+
import { a as Alert } from "./Alert-Dz_jjJ1E.js";
|
|
21
|
+
import { b as useCapabilityProblems, C as ContextGuidance } from "./fieldConfigurations-BZuo2e0d.js";
|
|
22
|
+
import { A as ActionBar } from "./FormNavigation-a9y0a0iw.js";
|
|
23
|
+
import { T as TaskItemStatus } from "./TaskItemStatus-DuJ01Ng6.js";
|
|
24
|
+
import { a as datasetUtilities, S as StructuredList, C as Confirm } from "./useDataset-B-72Ufk7.js";
|
|
25
|
+
import { D as DetailViewLayout } from "./DetailViewLayout-Z9cuUp4X.js";
|
|
26
|
+
import { G as GuidanceQuestionValues, m as mapLegalEntityToIndividualOnfidoSchema } from "./mapLegalEntityToIndividualOnfidoSchema-DQsaMiqB.js";
|
|
27
|
+
import { m as mapAddressLabels } from "./utils-qNiMqbmo.js";
|
|
28
|
+
import { l as localizeDateString } from "./localizeDateString--iXm1oBl.js";
|
|
29
|
+
import { lazy } from "preact/compat";
|
|
30
|
+
import { I as Image } from "./Image-TkXLA-UY.js";
|
|
31
|
+
import { L as LandingLayout } from "./LandingLayout-BLjTVlVb.js";
|
|
32
|
+
const BENEFICIAL_OWNER_ROLES = [
|
|
33
|
+
DecisionMakerTypes.OWNER,
|
|
34
|
+
DecisionMakerTypes.CONTROLLING_PERSON,
|
|
35
|
+
DecisionMakerTypes.DIRECTOR
|
|
36
|
+
];
|
|
37
|
+
const getDecisionMakerDescription = (types, t) => {
|
|
38
|
+
const isSignatory = types.includes(DecisionMakerTypes.SIGNATORY);
|
|
39
|
+
const isBeneficialOwner = types.some((type) => BENEFICIAL_OWNER_ROLES.includes(type));
|
|
40
|
+
return [isSignatory && t(($) => $.signatory), isBeneficialOwner && t(($) => $.beneficialOwner)].filter(Boolean).join(", ");
|
|
41
|
+
};
|
|
42
|
+
const isManualVerificationOrExistingDoc = (idVerificationMethod) => idVerificationMethod === "manualVerification" || idVerificationMethod === "existingDocument";
|
|
43
|
+
const formatFileSummaryData = (data, locale) => {
|
|
44
|
+
const { idVerificationMethod, proofOfNationalId, proofOfResidency, proofOfRelationship } = data;
|
|
45
|
+
const proofOfNationalIdFile = proofOfNationalId?.proofOfNationalId?.[0];
|
|
46
|
+
const proofOfResidencyFile = proofOfResidency?.proofOfResidency?.[0];
|
|
47
|
+
const proofOfRelationshipFile = proofOfRelationship?.proofOfRelationship?.[0];
|
|
48
|
+
const idDocument = {
|
|
49
|
+
idDocumentType: idVerificationMethod?.idDocument?.idDocumentType,
|
|
50
|
+
uploadedDate: idVerificationMethod?.idDocument?.modificationDate ? localizeDateString(idVerificationMethod?.idDocument?.modificationDate ?? "", locale) : void 0
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
// Format the ID document if it exists.
|
|
54
|
+
...idDocument?.idDocumentType && {
|
|
55
|
+
idDocument
|
|
56
|
+
},
|
|
57
|
+
// Include proof of national ID file name if it exists.
|
|
58
|
+
...proofOfNationalIdFile && {
|
|
59
|
+
proofOfNationalId: {
|
|
60
|
+
fileName: proofOfNationalIdFile.name
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
// Include proof of residency file name if it exists.
|
|
64
|
+
...proofOfResidencyFile && {
|
|
65
|
+
proofOfResidency: {
|
|
66
|
+
fileName: proofOfResidencyFile.name
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
// Include proof of relationship file name if it exists.
|
|
70
|
+
...proofOfRelationshipFile && {
|
|
71
|
+
proofOfRelationship: {
|
|
72
|
+
fileName: proofOfRelationshipFile.name
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
const formatDataForSummary = (dataToFormat, locale, commonT) => {
|
|
78
|
+
if (!dataToFormat) return {};
|
|
79
|
+
const datasetUtils = datasetUtilities(locale);
|
|
80
|
+
let formattedSummaryData = cloneObject(dataToFormat);
|
|
81
|
+
if (formattedSummaryData?.basicDetails?.phoneNumber) {
|
|
82
|
+
formattedSummaryData.basicDetails.phoneNumber = formattedSummaryData.basicDetails.phoneNumber.number;
|
|
83
|
+
}
|
|
84
|
+
if (formattedSummaryData.additionalPersonalDetails?.country) {
|
|
85
|
+
formattedSummaryData.additionalPersonalDetails.country = datasetUtils.getCountryName(
|
|
86
|
+
formattedSummaryData.additionalPersonalDetails.country
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
if (formattedSummaryData.additionalPersonalDetails?.nationality) {
|
|
90
|
+
formattedSummaryData.additionalPersonalDetails.nationality = datasetUtils.getCountryName(
|
|
91
|
+
formattedSummaryData.additionalPersonalDetails.nationality
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
if (formattedSummaryData.additionalPersonalDetails) {
|
|
95
|
+
formattedSummaryData.address = mapAddressLabels(
|
|
96
|
+
formattedSummaryData.additionalPersonalDetails,
|
|
97
|
+
datasetUtils
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
if (formattedSummaryData.basicDetails?.accountHolder) {
|
|
101
|
+
formattedSummaryData.basicDetails.accountHolder = commonT(
|
|
102
|
+
($) => $[formattedSummaryData.basicDetails.accountHolder]
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
if (formattedSummaryData.additionalPersonalDetails?.birthDate) {
|
|
106
|
+
formattedSummaryData.additionalPersonalDetails.birthDate = localizeDateString(
|
|
107
|
+
formattedSummaryData.additionalPersonalDetails.birthDate,
|
|
108
|
+
locale
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
if (isManualVerificationOrExistingDoc(
|
|
112
|
+
formattedSummaryData.idVerificationMethod?.idVerificationMethod
|
|
113
|
+
) || formattedSummaryData.proofOfResidency) {
|
|
114
|
+
const fileSummaryData = formatFileSummaryData(dataToFormat, locale);
|
|
115
|
+
formattedSummaryData = { ...formattedSummaryData, ...fileSummaryData };
|
|
116
|
+
formattedSummaryData.manualIdUpload = { ...formattedSummaryData.idDocument };
|
|
117
|
+
formattedSummaryData.idVerificationMethod.idDocument = { ...formattedSummaryData.idDocument };
|
|
118
|
+
}
|
|
119
|
+
if (formattedSummaryData.additionalPersonalDetails?.taxInformation) {
|
|
120
|
+
const taxInformation = formattedSummaryData.additionalPersonalDetails.taxInformation.find(
|
|
121
|
+
(taxId) => taxId.country === dataToFormat.additionalPersonalDetails?.nationality
|
|
122
|
+
);
|
|
123
|
+
if (taxInformation) {
|
|
124
|
+
delete formattedSummaryData.additionalPersonalDetails.taxInformation;
|
|
125
|
+
formattedSummaryData.additionalPersonalDetails[taxInformation.type] = taxInformation.number;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (formattedSummaryData?.signatoryQuestionnaire) {
|
|
129
|
+
formattedSummaryData.signatoryQuestionnaire = dataToFormat?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES ? [commonT(($) => $["signatorySummaryLabel"])] : [];
|
|
130
|
+
}
|
|
131
|
+
if (formattedSummaryData?.uboQuestionnaire) {
|
|
132
|
+
const roleFieldToLabelMap = {
|
|
133
|
+
isOwner: "ownerSummaryLabel",
|
|
134
|
+
isControllingPerson: "controllingPersonSummaryLabel",
|
|
135
|
+
isDirector: "directorSummaryLabel"
|
|
136
|
+
};
|
|
137
|
+
formattedSummaryData.uboQuestionnaire = Object.keys(roleFieldToLabelMap).flatMap(
|
|
138
|
+
(field) => dataToFormat?.uboQuestionnaire?.[field] === GuidanceQuestionValues.YES ? [commonT(($) => $[roleFieldToLabelMap[field]])] : []
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
return formattedSummaryData;
|
|
142
|
+
};
|
|
143
|
+
const getOmittedKeysForSummary = (data, taskType) => [
|
|
144
|
+
// Omit 'role' if the task is for a decision maker.
|
|
145
|
+
...["role"],
|
|
146
|
+
// Omit 'idNumber' if the user is exempt from providing it.
|
|
147
|
+
...data?.additionalPersonalDetails?.idNumberExempt ? ["idNumber"] : [],
|
|
148
|
+
// Omit 'idVerificationMethod' if manual verification was used.
|
|
149
|
+
...isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) ? ["idVerificationMethod"] : [],
|
|
150
|
+
"address",
|
|
151
|
+
"manualIdUpload"
|
|
152
|
+
];
|
|
153
|
+
const getSummaryData = (data, locale, commonT, taskType) => {
|
|
154
|
+
const summaryData = formatDataForSummary(data, locale, commonT);
|
|
155
|
+
const omittedKeys = getOmittedKeysForSummary(data)?.filter(Boolean);
|
|
156
|
+
return {
|
|
157
|
+
...drop(...omittedKeys).from(summaryData),
|
|
158
|
+
basicDetails: drop("firstName", "lastName", "role", "nomineeShareholder").from(
|
|
159
|
+
summaryData.basicDetails
|
|
160
|
+
),
|
|
161
|
+
additionalPersonalDetails: drop("idNumberExempt").from(summaryData.additionalPersonalDetails),
|
|
162
|
+
idDocument: summaryData.idVerificationMethod?.idDocument
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
const getStructuredListItems = (data, commonT) => {
|
|
166
|
+
if (typeof data !== "object" || data === null || Array.isArray(data)) {
|
|
167
|
+
return [];
|
|
168
|
+
}
|
|
169
|
+
const filteredEntries = Object.entries(data).filter(([, itemValue]) => {
|
|
170
|
+
if (itemValue === null || itemValue === void 0 || itemValue === "") {
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
return !(Array.isArray(itemValue) && itemValue.length === 0);
|
|
174
|
+
});
|
|
175
|
+
if (filteredEntries.length === 0) {
|
|
176
|
+
return [];
|
|
177
|
+
}
|
|
178
|
+
return filteredEntries.map(([itemKey, itemValue]) => ({
|
|
179
|
+
term: commonT(($) => $[itemKey]),
|
|
180
|
+
details: Array.isArray(itemValue) ? itemValue.join(", ") : commonT(($) => $[itemValue]) || String(itemValue),
|
|
181
|
+
type: Array.isArray(itemValue) ? "list" : "text"
|
|
182
|
+
}));
|
|
183
|
+
};
|
|
184
|
+
const DecisionMakerDetails = ({
|
|
185
|
+
decisionMaker,
|
|
186
|
+
parentLegalEntity,
|
|
187
|
+
handleClose,
|
|
188
|
+
handleDelete,
|
|
189
|
+
handleEdit
|
|
190
|
+
}) => {
|
|
191
|
+
const { t: commonT, i18n } = useTranslation("common");
|
|
192
|
+
const { t: individualT } = useTranslation("individual");
|
|
193
|
+
const [confirmOpen, setConfirmOpen] = useState(false);
|
|
194
|
+
const { data: legalEntity, isLoading: isLegalEntityLoading } = useLegalEntity(
|
|
195
|
+
decisionMaker.reference
|
|
196
|
+
);
|
|
197
|
+
const formattedSummary = useMemo(() => {
|
|
198
|
+
if (legalEntity) {
|
|
199
|
+
const individualOnfidoSchema = mapLegalEntityToIndividualOnfidoSchema(
|
|
200
|
+
legalEntity,
|
|
201
|
+
false,
|
|
202
|
+
true,
|
|
203
|
+
parentLegalEntity
|
|
204
|
+
);
|
|
205
|
+
return getSummaryData(
|
|
206
|
+
individualOnfidoSchema,
|
|
207
|
+
i18n.language,
|
|
208
|
+
commonT
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
}, [legalEntity, parentLegalEntity, i18n, commonT]);
|
|
212
|
+
const actions = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
213
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleEdit, variant: "primary", fullWidth: true, children: commonT(($) => $["editDetails"]) }),
|
|
214
|
+
/* @__PURE__ */ jsx(Button, { onClick: () => setConfirmOpen(true), variant: "secondary", fullWidth: true, children: commonT(($) => $["delete"]) })
|
|
215
|
+
] });
|
|
216
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
217
|
+
/* @__PURE__ */ jsx(Modal, { onClose: handleClose, ariaLabel: commonT(($) => $["individualDetails"]), inset: true, children: /* @__PURE__ */ jsx(DetailViewLayout, { title: commonT(($) => $["individualDetails"]), actions, children: isLegalEntityLoading || !legalEntity ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsxs(StackLayout, { gap: "medium", children: [
|
|
218
|
+
/* @__PURE__ */ jsx(
|
|
219
|
+
ListItem,
|
|
220
|
+
{
|
|
221
|
+
accessory: /* @__PURE__ */ jsx(TaskItemStatus, { status: decisionMaker.status }),
|
|
222
|
+
avatar: { iconName: "user", circle: true },
|
|
223
|
+
title: decisionMaker.name,
|
|
224
|
+
description: getDecisionMakerDescription(decisionMaker.types, individualT)
|
|
225
|
+
}
|
|
226
|
+
),
|
|
227
|
+
formattedSummary && Object.entries(formattedSummary).map(([key, value]) => {
|
|
228
|
+
const items = getStructuredListItems(value, commonT);
|
|
229
|
+
if (items.length === 0) {
|
|
230
|
+
return null;
|
|
231
|
+
}
|
|
232
|
+
return /* @__PURE__ */ jsxs(List, { variant: "grouped-secondary", children: [
|
|
233
|
+
/* @__PURE__ */ jsx(Typography, { variant: "title", children: individualT(($) => $[key]) }),
|
|
234
|
+
/* @__PURE__ */ jsx(StructuredList, { items })
|
|
235
|
+
] }, key);
|
|
236
|
+
}).filter(Boolean)
|
|
237
|
+
] }) }) }),
|
|
238
|
+
confirmOpen && /* @__PURE__ */ jsx(
|
|
239
|
+
Confirm,
|
|
240
|
+
{
|
|
241
|
+
title: commonT(($) => $["deleteItem"], { item: decisionMaker.name }),
|
|
242
|
+
description: commonT(($) => $["thisActionIsPermanent"]),
|
|
243
|
+
onConfirm: handleDelete,
|
|
244
|
+
confirmText: commonT(($) => $["delete"]),
|
|
245
|
+
onCancel: () => setConfirmOpen(false),
|
|
246
|
+
critical: true
|
|
247
|
+
}
|
|
248
|
+
)
|
|
249
|
+
] });
|
|
250
|
+
};
|
|
251
|
+
const decisionMakersGettingStarted = "adyen-kyc-decision-makers-getting-started";
|
|
252
|
+
const styles = {
|
|
253
|
+
decisionMakersGettingStarted
|
|
254
|
+
};
|
|
255
|
+
const DecisionMakersModalContent = () => {
|
|
256
|
+
const { t } = useTranslation("individual");
|
|
257
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.decisionMakersGettingStartedModal, children: [
|
|
258
|
+
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h3", className: "adyen-kyc-u-margin-bottom-40", children: t(($) => $["moreAboutOwnersAndDecisionMakers"]) }),
|
|
259
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: t(($) => $["ownersAndDecisionMakersDescriptionQ1"]) }),
|
|
260
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: t(($) => $["ownersAndDecisionMakersDescriptionA1"]) }),
|
|
261
|
+
/* @__PURE__ */ jsx(
|
|
262
|
+
Alert,
|
|
263
|
+
{
|
|
264
|
+
title: t(($) => $["ownersDescriptionAlertTitle"]),
|
|
265
|
+
icon: false,
|
|
266
|
+
className: "adyen-kyc-u-margin-bottom-32",
|
|
267
|
+
children: t(($) => $["ownersAndDecisionMakersDescriptionAlertContent"])
|
|
268
|
+
}
|
|
269
|
+
),
|
|
270
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: t(($) => $["ownersAndDecisionMakersDescriptionQ2"]) }),
|
|
271
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", children: t(($) => $["ownersAndDecisionMakersDescriptionA2P1"]) }),
|
|
272
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: t(($) => $["ownersAndDecisionMakersDescriptionA2P2"]) }),
|
|
273
|
+
/* @__PURE__ */ jsx(
|
|
274
|
+
Alert,
|
|
275
|
+
{
|
|
276
|
+
title: t(($) => $["ownersDescriptionAlertTitle"]),
|
|
277
|
+
icon: false,
|
|
278
|
+
className: "adyen-kyc-u-margin-bottom-32",
|
|
279
|
+
children: t(($) => $["ownersDescriptionAlertContent"])
|
|
280
|
+
}
|
|
281
|
+
),
|
|
282
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: t(($) => $["ownersAndDecisionMakersDescriptionQ3"]) }),
|
|
283
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: t(($) => $["ownersAndDecisionMakersDescriptionA3"]) }),
|
|
284
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: t(($) => $["ownersAndDecisionMakersDescriptionQ4"]) }),
|
|
285
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: t(($) => $["ownersAndDecisionMakersDescriptionA4"]) })
|
|
286
|
+
] });
|
|
287
|
+
};
|
|
288
|
+
const decisionMakerGroup = lazy(() => import("./decision-makers-group-CgddXgrx.js"));
|
|
289
|
+
const DecisionMakersGettingStarted = ({
|
|
290
|
+
addDecisionMakerOnClick,
|
|
291
|
+
handleCancelClick
|
|
292
|
+
}) => {
|
|
293
|
+
const { t: commonT } = useTranslation("common");
|
|
294
|
+
const { t: individualT } = useTranslation("individual");
|
|
295
|
+
const userEvents = useAnalyticsContext();
|
|
296
|
+
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
297
|
+
const openModal = () => {
|
|
298
|
+
userEvents.addPageEvent("Opened modal", {
|
|
299
|
+
actionType: "open",
|
|
300
|
+
label: "decisionMakersGettingStartedModal"
|
|
301
|
+
});
|
|
302
|
+
setIsModalOpen(true);
|
|
303
|
+
};
|
|
304
|
+
const closeModal = () => {
|
|
305
|
+
userEvents.addPageEvent("Closed modal", {
|
|
306
|
+
actionType: "close",
|
|
307
|
+
label: "decisionMakersGettingStartedModal"
|
|
308
|
+
});
|
|
309
|
+
setIsModalOpen(false);
|
|
310
|
+
};
|
|
311
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.decisionMakersGettingStarted, children: [
|
|
312
|
+
/* @__PURE__ */ jsx(
|
|
313
|
+
LandingLayout,
|
|
314
|
+
{
|
|
315
|
+
media: /* @__PURE__ */ jsx(Image, { lazyLoadedImage: decisionMakerGroup }),
|
|
316
|
+
title: individualT(($) => $["ownersAndDecisionMakers"]),
|
|
317
|
+
description: individualT(($) => $["ownersAndDecisionMakersDescription"]),
|
|
318
|
+
helpAction: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: openModal, fullWidth: true, children: commonT(($) => $["learnMore"]) }),
|
|
319
|
+
actions: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
320
|
+
/* @__PURE__ */ jsx(
|
|
321
|
+
Button,
|
|
322
|
+
{
|
|
323
|
+
fullWidth: true,
|
|
324
|
+
testId: "decision-makers-getting-started-primary-button",
|
|
325
|
+
onClick: addDecisionMakerOnClick,
|
|
326
|
+
children: commonT(($) => $["gettingStarted"])
|
|
327
|
+
}
|
|
328
|
+
),
|
|
329
|
+
handleCancelClick && /* @__PURE__ */ jsx(
|
|
330
|
+
Button,
|
|
331
|
+
{
|
|
332
|
+
variant: "tertiary",
|
|
333
|
+
fullWidth: true,
|
|
334
|
+
testId: "decision-makers-getting-started-cancel-button",
|
|
335
|
+
onClick: handleCancelClick,
|
|
336
|
+
children: commonT(($) => $["finishLater"])
|
|
337
|
+
}
|
|
338
|
+
)
|
|
339
|
+
] })
|
|
340
|
+
}
|
|
341
|
+
),
|
|
342
|
+
isModalOpen && /* @__PURE__ */ jsx(
|
|
343
|
+
Modal,
|
|
344
|
+
{
|
|
345
|
+
onClose: closeModal,
|
|
346
|
+
ariaLabel: individualT(($) => $["moreAboutOwnersAndDecisionMakers"]),
|
|
347
|
+
inset: true,
|
|
348
|
+
children: /* @__PURE__ */ jsx(DecisionMakersModalContent, {})
|
|
349
|
+
}
|
|
350
|
+
)
|
|
351
|
+
] });
|
|
352
|
+
};
|
|
353
|
+
const signatoryMissingAlert = {
|
|
354
|
+
type: "single",
|
|
355
|
+
code: "2_124",
|
|
356
|
+
titleKey: "authorizedSignatoryMissing",
|
|
357
|
+
descriptionKey: "addAtLeastOneAuthorizedSignatory",
|
|
358
|
+
actionKey: "addAuthorizedSignatory"
|
|
359
|
+
};
|
|
360
|
+
const beneficialOwnersMissingAlert = {
|
|
361
|
+
type: "grouped",
|
|
362
|
+
codes: ["2_123", "2_151", "2_185"],
|
|
363
|
+
titleKey: "beneficialOwnersMissing",
|
|
364
|
+
actionKey: "addBeneficialOwner",
|
|
365
|
+
detailKeys: {
|
|
366
|
+
"2_123": "addAllBeneficialOwners",
|
|
367
|
+
"2_151": "addAtLeastOneBeneficialOwnerControllingPerson",
|
|
368
|
+
"2_185": "addAtLeastOneDirector"
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
const decisionMakerRemediationAlerts = [
|
|
372
|
+
signatoryMissingAlert,
|
|
373
|
+
beneficialOwnersMissingAlert
|
|
374
|
+
];
|
|
375
|
+
const RemediationAlertItem = ({ config, activeCodes, onAction }) => {
|
|
376
|
+
const { t } = useTranslation("individual");
|
|
377
|
+
const isVisible = useMemo(() => {
|
|
378
|
+
if (config.type === "single") {
|
|
379
|
+
return activeCodes.includes(config.code);
|
|
380
|
+
}
|
|
381
|
+
return config.codes.some((code) => activeCodes.includes(code));
|
|
382
|
+
}, [activeCodes, config]);
|
|
383
|
+
const activeGroupedDetails = useMemo(() => {
|
|
384
|
+
if (config.type !== "grouped") {
|
|
385
|
+
return [];
|
|
386
|
+
}
|
|
387
|
+
return config.codes.filter((code) => activeCodes.includes(code)).map((code) => config.detailKeys[code]);
|
|
388
|
+
}, [activeCodes, config]);
|
|
389
|
+
if (!isVisible) {
|
|
390
|
+
return null;
|
|
391
|
+
}
|
|
392
|
+
return /* @__PURE__ */ jsxs(
|
|
393
|
+
Alert,
|
|
394
|
+
{
|
|
395
|
+
className: "adyen-kyc-decision-makers__warning",
|
|
396
|
+
title: t(($) => $[config.titleKey]),
|
|
397
|
+
variant: "warning",
|
|
398
|
+
children: [
|
|
399
|
+
config.type === "single" && /* @__PURE__ */ jsx("p", { children: t(($) => $[config.descriptionKey]) }),
|
|
400
|
+
config.type === "grouped" && (activeGroupedDetails.length > 1 ? /* @__PURE__ */ jsx("ul", { children: activeGroupedDetails.map((key) => /* @__PURE__ */ jsx("li", { children: t(($) => $[key]) }, key)) }) : /* @__PURE__ */ jsx("p", { children: t(($) => $[activeGroupedDetails[0]]) })),
|
|
401
|
+
/* @__PURE__ */ jsx(Button, { variant: "link", onClick: onAction, children: t(($) => $[config.actionKey]) })
|
|
402
|
+
]
|
|
403
|
+
}
|
|
404
|
+
);
|
|
405
|
+
};
|
|
406
|
+
const RemediationAlerts = ({ activeCodes, onAction }) => /* @__PURE__ */ jsx(Fragment, { children: decisionMakerRemediationAlerts.map((config) => /* @__PURE__ */ jsx(
|
|
407
|
+
RemediationAlertItem,
|
|
408
|
+
{
|
|
409
|
+
config,
|
|
410
|
+
activeCodes,
|
|
411
|
+
onAction
|
|
412
|
+
},
|
|
413
|
+
config.type === "single" ? config.code : config.titleKey
|
|
414
|
+
)) });
|
|
415
|
+
const DecisionMakers = (props) => {
|
|
416
|
+
const { data, isLoading } = useLegalEntity(ROOT_LE);
|
|
417
|
+
const { i18n } = useTranslation();
|
|
418
|
+
addResourceBundles(i18n, i18n.language, [
|
|
419
|
+
{ ns: "individual", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../language/bg-BG.json": () => import("./bg-BG-BLe6BCNz.js"), "../../language/cs-CZ.json": () => import("./cs-CZ-xoLsda7i.js"), "../../language/da-DK.json": () => import("./da-DK-D-TJghBi.js"), "../../language/de-DE.json": () => import("./de-DE-CCmlaL2F.js"), "../../language/el-GR.json": () => import("./el-GR-kYiInIQ9.js"), "../../language/en-US.json": () => import("./en-US-DYpvuCLO.js"), "../../language/es-ES.json": () => import("./es-ES-CJMsyMAc.js"), "../../language/et-EE.json": () => import("./et-EE-sB7wkSA3.js"), "../../language/fi-FI.json": () => import("./fi-FI-BbqwYcLI.js"), "../../language/fr-FR.json": () => import("./fr-FR-Cr-Y1vIy.js"), "../../language/hr-HR.json": () => import("./hr-HR-D8cBxUFa.js"), "../../language/hu-HU.json": () => import("./hu-HU-BVfkOdJe.js"), "../../language/it-IT.json": () => import("./it-IT-CwA8megO.js"), "../../language/ja-JP.json": () => import("./ja-JP-CCnzjx-u.js"), "../../language/lt-LT.json": () => import("./lt-LT-C5nNCk4_.js"), "../../language/lv-LV.json": () => import("./lv-LV-CEK8Re4d.js"), "../../language/nl-NL.json": () => import("./nl-NL-DOQPxTX-.js"), "../../language/no-NO.json": () => import("./no-NO-Cp3-tDMw.js"), "../../language/pl-PL.json": () => import("./pl-PL-CtDHmbhp.js"), "../../language/pt-BR.json": () => import("./pt-BR-DnKEuslh.js"), "../../language/pt-PT.json": () => import("./pt-PT-CLwCij2I.js"), "../../language/ro-RO.json": () => import("./ro-RO-Cmk-sVDr.js"), "../../language/sk-SK.json": () => import("./sk-SK-Bo5nvxWQ.js"), "../../language/sl-SI.json": () => import("./sl-SI-CrTRlNnN.js"), "../../language/sv-SE.json": () => import("./sv-SE-WPziDPQa.js") }), `../../language/${i18n.language}.json`, 4) }
|
|
420
|
+
]);
|
|
421
|
+
if (isLoading || !data) {
|
|
422
|
+
return /* @__PURE__ */ jsx(Loader, {});
|
|
423
|
+
}
|
|
424
|
+
return /* @__PURE__ */ jsx(DecisionMakersInner, { ...props, legalEntity: data });
|
|
425
|
+
};
|
|
426
|
+
const DecisionMakersInner = ({
|
|
427
|
+
legalEntity,
|
|
428
|
+
onNavigateToIndividual,
|
|
429
|
+
navigateBackToTaskList,
|
|
430
|
+
trustedEntityAssociations
|
|
431
|
+
}) => {
|
|
432
|
+
const getTaskStatus = useGetTaskStatus();
|
|
433
|
+
const { t: commonT } = useTranslation("common");
|
|
434
|
+
const { t: individualT } = useTranslation("individual");
|
|
435
|
+
const userEvents = useAnalyticsContext();
|
|
436
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
437
|
+
const { showToast } = useToastContext();
|
|
438
|
+
const isRevampedDecisionMakersTaskPageEnabled = isExperimentEnabled(
|
|
439
|
+
"EnableRevampedDecisionMakersTaskPage"
|
|
440
|
+
);
|
|
441
|
+
const [showDecisionMakerModal, setShowDecisionMakerModal] = useState(false);
|
|
442
|
+
const [selectedDecisionMaker, setSelectedDecisionMaker] = useState();
|
|
443
|
+
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
444
|
+
const openModal = () => {
|
|
445
|
+
userEvents.addPageEvent("Opened modal", {
|
|
446
|
+
actionType: "open",
|
|
447
|
+
label: "decisionMakersDescriptionModal"
|
|
448
|
+
});
|
|
449
|
+
setIsModalOpen(true);
|
|
450
|
+
};
|
|
451
|
+
const closeModal = () => {
|
|
452
|
+
userEvents.addPageEvent("Closed modal", {
|
|
453
|
+
actionType: "close",
|
|
454
|
+
label: "decisionMakersDescriptionModal"
|
|
455
|
+
});
|
|
456
|
+
setIsModalOpen(false);
|
|
457
|
+
};
|
|
458
|
+
const openDecisionMakerModal = (decisionMaker) => {
|
|
459
|
+
userEvents.addPageEvent("Opened modal", {
|
|
460
|
+
actionType: "open",
|
|
461
|
+
label: "viewDecisionMakerModal"
|
|
462
|
+
});
|
|
463
|
+
setShowDecisionMakerModal(true);
|
|
464
|
+
setSelectedDecisionMaker(decisionMaker);
|
|
465
|
+
};
|
|
466
|
+
const closeDecisionMakerModal = () => {
|
|
467
|
+
userEvents.addPageEvent("Closed modal", {
|
|
468
|
+
actionType: "close",
|
|
469
|
+
label: "viewDecisionMakerModal"
|
|
470
|
+
});
|
|
471
|
+
setShowDecisionMakerModal(false);
|
|
472
|
+
setSelectedDecisionMaker(null);
|
|
473
|
+
};
|
|
474
|
+
const capabilityProblems = useCapabilityProblems();
|
|
475
|
+
const decisionMakerRemediationCodes = useMemo(() => {
|
|
476
|
+
const missingData = capabilityProblems?.[EntityTypes.LEGAL_ENTITY]?.[legalEntity.id]?.missingData ?? [];
|
|
477
|
+
const remediationCodes = missingData.flatMap((error) => {
|
|
478
|
+
const remediation = DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING[error.code];
|
|
479
|
+
return remediation ? [remediation] : [];
|
|
480
|
+
});
|
|
481
|
+
return [...new Set(remediationCodes)];
|
|
482
|
+
}, [capabilityProblems, legalEntity.id]);
|
|
483
|
+
const updateLegalEntity = useUpdateLegalEntity();
|
|
484
|
+
const decisionMakers = getOwnDecisionMakers(legalEntity);
|
|
485
|
+
const registeredCountry = legalEntity.organization.registeredAddress.country;
|
|
486
|
+
const { data: scenarios } = useScenarios(registeredCountry, LegalEntityTypes.INDIVIDUAL);
|
|
487
|
+
const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(registeredCountry, scenarios);
|
|
488
|
+
const translationKeys = {
|
|
489
|
+
home: "goBackToTaskList"
|
|
490
|
+
};
|
|
491
|
+
const { remediationMessages } = useDataMissingRemediations({
|
|
492
|
+
legalEntityId: legalEntity.id,
|
|
493
|
+
problems: capabilityProblems ?? {}
|
|
494
|
+
});
|
|
495
|
+
const mappedDecisionMakers = decisionMakers?.reduce(
|
|
496
|
+
(mappedDecisionMakers2, decisionMaker) => {
|
|
497
|
+
if (!decisionMaker.legalEntityId) return mappedDecisionMakers2;
|
|
498
|
+
const mappedDecisionMaker = mappedDecisionMakers2[decisionMaker.legalEntityId];
|
|
499
|
+
const decisionMakerType = decisionMaker.type;
|
|
500
|
+
mappedDecisionMakers2[decisionMaker.legalEntityId] = {
|
|
501
|
+
reference: decisionMaker.legalEntityId,
|
|
502
|
+
types: mappedDecisionMaker ? [...mappedDecisionMaker.types, decisionMakerType] : [decisionMakerType],
|
|
503
|
+
status: getTaskStatus(TaskTypes.DECISION_MAKER, decisionMaker.legalEntityId),
|
|
504
|
+
name: decisionMaker.name ?? "",
|
|
505
|
+
legalEntityType: decisionMaker.entityType,
|
|
506
|
+
problems: capabilityProblems?.LegalEntity?.[decisionMaker.legalEntityId]
|
|
507
|
+
};
|
|
508
|
+
return mappedDecisionMakers2;
|
|
509
|
+
},
|
|
510
|
+
{}
|
|
511
|
+
);
|
|
512
|
+
const uniqueDecisionMakers = mappedDecisionMakers ? Object.values(mappedDecisionMakers) : [];
|
|
513
|
+
const decisionMakerStatusLabelMap = {
|
|
514
|
+
[TaskStatuses.ERROR]: commonT(($) => $["actionNeeded"]),
|
|
515
|
+
[TaskStatuses.PROCESSING]: commonT(($) => $["inReview"]),
|
|
516
|
+
[TaskStatuses.FINISHED]: commonT(($) => $["verified"])
|
|
517
|
+
};
|
|
518
|
+
const isActionNeeded = (dm) => dm.status === TaskStatuses.ERROR || dm.status === TaskStatuses.DETAILS_REQUIRED;
|
|
519
|
+
const isComplete = (dm) => dm.status === TaskStatuses.FINISHED || dm.status === TaskStatuses.PROCESSING;
|
|
520
|
+
const isSignatory = (dm) => dm.types.includes(DecisionMakerTypes.SIGNATORY);
|
|
521
|
+
const actionNeededDecisionMakers = uniqueDecisionMakers.filter(isActionNeeded);
|
|
522
|
+
const completeDecisionMakers = uniqueDecisionMakers.filter(isComplete);
|
|
523
|
+
const actionNeededSignatories = actionNeededDecisionMakers.filter(isSignatory);
|
|
524
|
+
const actionNeededBeneficialOwners = actionNeededDecisionMakers.filter((dm) => !isSignatory(dm));
|
|
525
|
+
const completeSignatories = completeDecisionMakers.filter(isSignatory);
|
|
526
|
+
const completeBeneficialOwners = completeDecisionMakers.filter((dm) => !isSignatory(dm));
|
|
527
|
+
const getOverallStatus = () => {
|
|
528
|
+
if (capabilityProblems?.LegalEntity?.[legalEntity.id]?.missingData?.length || actionNeededDecisionMakers.length > 0) {
|
|
529
|
+
return TaskStatuses.ERROR;
|
|
530
|
+
}
|
|
531
|
+
if (completeDecisionMakers.some((dm) => dm.status === TaskStatuses.PROCESSING)) {
|
|
532
|
+
return TaskStatuses.PROCESSING;
|
|
533
|
+
}
|
|
534
|
+
return TaskStatuses.FINISHED;
|
|
535
|
+
};
|
|
536
|
+
const decisionMakersTaskStatus = getOverallStatus();
|
|
537
|
+
const showWarning = Boolean(remediationMessages.DECISION_MAKER && uniqueDecisionMakers.length);
|
|
538
|
+
useEffect(() => {
|
|
539
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
540
|
+
actionType: "start"
|
|
541
|
+
});
|
|
542
|
+
}, [userEvents]);
|
|
543
|
+
useEffect(() => {
|
|
544
|
+
if (showWarning) {
|
|
545
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
546
|
+
task: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
547
|
+
actionType: "alert",
|
|
548
|
+
returnValue: "missingDecisionMaker"
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
}, [remediationMessages.DECISION_MAKER, showWarning, userEvents]);
|
|
552
|
+
const uniqueDecisionMakersPerType = (roleType) => uniqueDecisionMakers.filter(({ types }) => types.includes(roleType)).length;
|
|
553
|
+
const allowedDecisionMakerTypes = getAllowedDecisionMakerRoles(
|
|
554
|
+
legalEntity,
|
|
555
|
+
TaskTypes.DECISION_MAKER,
|
|
556
|
+
scenarios
|
|
557
|
+
);
|
|
558
|
+
const haveMaxDecisionMakers = allowedDecisionMakerTypes.length === 0;
|
|
559
|
+
const getDecisionMakerTrackingParams = (decisionMaker) => ({
|
|
560
|
+
task: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
561
|
+
associatedLegalEntityId: decisionMaker.reference,
|
|
562
|
+
associatedLegalEntityType: decisionMaker.legalEntityType,
|
|
563
|
+
roles: decisionMaker.types
|
|
564
|
+
});
|
|
565
|
+
const addDecisionMakerOnClick = () => {
|
|
566
|
+
onNavigateToIndividual();
|
|
567
|
+
};
|
|
568
|
+
const editDecisionMaker = (decisionMaker) => {
|
|
569
|
+
onNavigateToIndividual(decisionMaker.reference);
|
|
570
|
+
userEvents.addTaskEvent("Clicked button", {
|
|
571
|
+
...getDecisionMakerTrackingParams(decisionMaker),
|
|
572
|
+
actionType: "edit"
|
|
573
|
+
});
|
|
574
|
+
};
|
|
575
|
+
const deleteDecisionMaker = async (decisionMaker) => {
|
|
576
|
+
try {
|
|
577
|
+
const updatedEntityAssociations = {
|
|
578
|
+
entityAssociations: (legalEntity.entityAssociations ?? []).filter(
|
|
579
|
+
(entityAssociation) => entityAssociation.legalEntityId !== decisionMaker.reference
|
|
580
|
+
)
|
|
581
|
+
};
|
|
582
|
+
await updateLegalEntity.mutateAsync({ ...updatedEntityAssociations, id: legalEntity.id });
|
|
583
|
+
const remainingDecisionMakers = decisionMakers.filter(
|
|
584
|
+
(curr) => curr.legalEntityId !== decisionMaker.reference
|
|
585
|
+
);
|
|
586
|
+
userEvents.addTaskEvent("Clicked button", {
|
|
587
|
+
...getDecisionMakerTrackingParams(decisionMaker),
|
|
588
|
+
actionType: "remove",
|
|
589
|
+
remainingDecisionMakers
|
|
590
|
+
});
|
|
591
|
+
showToast({
|
|
592
|
+
variant: "success",
|
|
593
|
+
label: individualT(($) => $["successFullyRemovedDecisionMaker"])
|
|
594
|
+
});
|
|
595
|
+
} catch {
|
|
596
|
+
showToast({ variant: "error", label: individualT(($) => $["failedToRemoveDecisionMaker"]) });
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
const renderDecisionMakerItem = (decisionMaker) => {
|
|
600
|
+
const description = getDecisionMakerDescription(decisionMaker.types, individualT);
|
|
601
|
+
return /* @__PURE__ */ jsx(
|
|
602
|
+
ListItem,
|
|
603
|
+
{
|
|
604
|
+
accessory: /* @__PURE__ */ jsx(
|
|
605
|
+
TaskItemStatus,
|
|
606
|
+
{
|
|
607
|
+
status: decisionMaker.status,
|
|
608
|
+
statusLabel: decisionMakerStatusLabelMap[decisionMaker.status]
|
|
609
|
+
}
|
|
610
|
+
),
|
|
611
|
+
avatar: { iconName: "user", circle: true },
|
|
612
|
+
title: decisionMaker.name,
|
|
613
|
+
action: { onClick: () => openDecisionMakerModal(decisionMaker), disclosure: true },
|
|
614
|
+
description
|
|
615
|
+
},
|
|
616
|
+
decisionMaker.reference
|
|
617
|
+
);
|
|
618
|
+
};
|
|
619
|
+
const renderDecisionMakersList = (decisionMakers2) => {
|
|
620
|
+
if (decisionMakers2.length === 0) {
|
|
621
|
+
return null;
|
|
622
|
+
}
|
|
623
|
+
return /* @__PURE__ */ jsx(List, { variant: "grouped-primary", padding: "small", dividers: false, children: decisionMakers2.map(renderDecisionMakerItem) });
|
|
624
|
+
};
|
|
625
|
+
const decisionMakerSections = useMemo(
|
|
626
|
+
() => [
|
|
627
|
+
{
|
|
628
|
+
key: "actionNeeded",
|
|
629
|
+
title: commonT(($) => $["actionNeeded"]),
|
|
630
|
+
signatories: actionNeededSignatories,
|
|
631
|
+
beneficialOwners: actionNeededBeneficialOwners
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
key: "complete",
|
|
635
|
+
title: commonT(($) => $["complete"]),
|
|
636
|
+
signatories: completeSignatories,
|
|
637
|
+
beneficialOwners: completeBeneficialOwners
|
|
638
|
+
}
|
|
639
|
+
],
|
|
640
|
+
[
|
|
641
|
+
commonT,
|
|
642
|
+
actionNeededSignatories,
|
|
643
|
+
actionNeededBeneficialOwners,
|
|
644
|
+
completeSignatories,
|
|
645
|
+
completeBeneficialOwners
|
|
646
|
+
]
|
|
647
|
+
);
|
|
648
|
+
if (isRevampedDecisionMakersTaskPageEnabled && uniqueDecisionMakers.length === 0) {
|
|
649
|
+
return /* @__PURE__ */ jsx(
|
|
650
|
+
DecisionMakersGettingStarted,
|
|
651
|
+
{
|
|
652
|
+
handleCancelClick: () => navigateBackToTaskList(),
|
|
653
|
+
addDecisionMakerOnClick
|
|
654
|
+
}
|
|
655
|
+
);
|
|
656
|
+
}
|
|
657
|
+
return /* @__PURE__ */ jsx(
|
|
658
|
+
DropinLayout,
|
|
659
|
+
{
|
|
660
|
+
content: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-decision-makers adyen-kyc-u-width-full", children: [
|
|
661
|
+
isRevampedDecisionMakersTaskPageEnabled ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
662
|
+
/* @__PURE__ */ jsxs(StackLayout, { gap: "medium", children: [
|
|
663
|
+
/* @__PURE__ */ jsx(
|
|
664
|
+
Header,
|
|
665
|
+
{
|
|
666
|
+
title: individualT(($) => $["ownersAndDecisionMakers"]),
|
|
667
|
+
description: individualT(($) => $["ownersAndDecisionMakersDescription"]),
|
|
668
|
+
status: decisionMakersTaskStatus,
|
|
669
|
+
align: "center",
|
|
670
|
+
children: /* @__PURE__ */ jsx(Button, { slot: "actions", variant: "link", onClick: openModal, children: commonT(($) => $["learnMore"]) })
|
|
671
|
+
}
|
|
672
|
+
),
|
|
673
|
+
showWarning && /* @__PURE__ */ jsx(
|
|
674
|
+
RemediationAlerts,
|
|
675
|
+
{
|
|
676
|
+
activeCodes: decisionMakerRemediationCodes,
|
|
677
|
+
onAction: addDecisionMakerOnClick
|
|
678
|
+
}
|
|
679
|
+
)
|
|
680
|
+
] }),
|
|
681
|
+
/* @__PURE__ */ jsxs(StackLayout, { gap: "small", children: [
|
|
682
|
+
decisionMakerSections.map((section) => {
|
|
683
|
+
if (section.signatories.length === 0 && section.beneficialOwners.length === 0) {
|
|
684
|
+
return null;
|
|
685
|
+
}
|
|
686
|
+
return /* @__PURE__ */ jsx(List, { padding: "none", dividers: false, header: section.title, children: /* @__PURE__ */ jsxs(StackLayout, { gap: "small", children: [
|
|
687
|
+
renderDecisionMakersList(section.signatories),
|
|
688
|
+
renderDecisionMakersList(section.beneficialOwners)
|
|
689
|
+
] }) }, section.key);
|
|
690
|
+
}),
|
|
691
|
+
/* @__PURE__ */ jsx(List, { variant: "grouped-primary", padding: "small", dividers: false, children: /* @__PURE__ */ jsx(
|
|
692
|
+
ListItem,
|
|
693
|
+
{
|
|
694
|
+
avatar: { iconName: "plus", circle: true },
|
|
695
|
+
title: commonT(($) => $["addNew"]),
|
|
696
|
+
action: { onClick: addDecisionMakerOnClick }
|
|
697
|
+
}
|
|
698
|
+
) }),
|
|
699
|
+
/* @__PURE__ */ jsx(
|
|
700
|
+
Button,
|
|
701
|
+
{
|
|
702
|
+
variant: "secondary",
|
|
703
|
+
onClick: () => {
|
|
704
|
+
userEvents.addTaskEvent("Clicked button", {
|
|
705
|
+
task: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
706
|
+
actionType: "back",
|
|
707
|
+
label: translationKeys.home,
|
|
708
|
+
noOfDecisionMakers: decisionMakers.length
|
|
709
|
+
});
|
|
710
|
+
navigateBackToTaskList();
|
|
711
|
+
},
|
|
712
|
+
fullWidth: true,
|
|
713
|
+
children: commonT(($) => $[translationKeys.home])
|
|
714
|
+
}
|
|
715
|
+
)
|
|
716
|
+
] })
|
|
717
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
718
|
+
/* @__PURE__ */ jsx(
|
|
719
|
+
Header,
|
|
720
|
+
{
|
|
721
|
+
title: commonT(($) => $["decisionMaker"]),
|
|
722
|
+
description: individualT(($) => $["decisionMakerDescription"])
|
|
723
|
+
}
|
|
724
|
+
),
|
|
725
|
+
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-decision-makers__container", children: availableDecisionMakers.map(({ roleType, min }) => /* @__PURE__ */ jsx(
|
|
726
|
+
EntityGuidanceStatus,
|
|
727
|
+
{
|
|
728
|
+
country: registeredCountry,
|
|
729
|
+
currentTask: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
730
|
+
entityLabel: roleType,
|
|
731
|
+
status: iconStatus(uniqueDecisionMakersPerType(roleType), min)
|
|
732
|
+
},
|
|
733
|
+
roleType
|
|
734
|
+
)) }),
|
|
735
|
+
/* @__PURE__ */ jsx(
|
|
736
|
+
ContextGuidance,
|
|
737
|
+
{
|
|
738
|
+
title: individualT(($) => $["whatIsTheDifferenceBetweenTheseRoles"]),
|
|
739
|
+
content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: availableDecisionMakers.map(({ roleType }) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
740
|
+
Trans,
|
|
741
|
+
{
|
|
742
|
+
t: individualT,
|
|
743
|
+
i18nKey: ($) => $[`${roleType === DecisionMakerTypes.CONTROLLING_PERSON ? "controllingPerson" : roleType === DecisionMakerTypes.OWNER ? "owner" : roleType}GuideDescription`]
|
|
744
|
+
}
|
|
745
|
+
) }, roleType)) }),
|
|
746
|
+
titleId: "whatIsTheDifferenceBetweenTheseRoles",
|
|
747
|
+
contentId: "differenceBetweenAnOwnerControllingPersonAndSignatory"
|
|
748
|
+
}
|
|
749
|
+
),
|
|
750
|
+
showWarning && /* @__PURE__ */ jsx(
|
|
751
|
+
Alert,
|
|
752
|
+
{
|
|
753
|
+
className: "adyen-kyc-decision-makers__warning",
|
|
754
|
+
title: remediationMessages.DECISION_MAKER,
|
|
755
|
+
variant: "warning"
|
|
756
|
+
}
|
|
757
|
+
),
|
|
758
|
+
/* @__PURE__ */ jsxs(StackLayout, { children: [
|
|
759
|
+
uniqueDecisionMakers.map((decisionMaker) => /* @__PURE__ */ jsx(
|
|
760
|
+
EntityAssociation,
|
|
761
|
+
{
|
|
762
|
+
types: decisionMaker.types,
|
|
763
|
+
name: decisionMaker.name,
|
|
764
|
+
status: decisionMaker.status,
|
|
765
|
+
onNavigateToEntity: () => editDecisionMaker(decisionMaker),
|
|
766
|
+
problems: decisionMaker?.problems,
|
|
767
|
+
deleteEntity: () => {
|
|
768
|
+
deleteDecisionMaker(decisionMaker);
|
|
769
|
+
},
|
|
770
|
+
isDeleteDisabled: (trustedEntityAssociations ?? []).some(
|
|
771
|
+
(ea) => ea.reference === decisionMaker.reference
|
|
772
|
+
)
|
|
773
|
+
},
|
|
774
|
+
decisionMaker.reference
|
|
775
|
+
)),
|
|
776
|
+
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-decision-makers__actions", children: [
|
|
777
|
+
/* @__PURE__ */ jsx(
|
|
778
|
+
Button,
|
|
779
|
+
{
|
|
780
|
+
variant: "secondary",
|
|
781
|
+
icon: "plus",
|
|
782
|
+
onClick: addDecisionMakerOnClick,
|
|
783
|
+
disabled: haveMaxDecisionMakers,
|
|
784
|
+
fullWidth: true,
|
|
785
|
+
children: individualT(($) => $["addDecisionMaker"])
|
|
786
|
+
}
|
|
787
|
+
),
|
|
788
|
+
/* @__PURE__ */ jsx(
|
|
789
|
+
ActionBar,
|
|
790
|
+
{
|
|
791
|
+
onHome: () => {
|
|
792
|
+
userEvents.addTaskEvent("Clicked button", {
|
|
793
|
+
task: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
794
|
+
actionType: "back",
|
|
795
|
+
label: translationKeys.home,
|
|
796
|
+
noOfDecisionMakers: decisionMakers.length
|
|
797
|
+
});
|
|
798
|
+
navigateBackToTaskList();
|
|
799
|
+
},
|
|
800
|
+
homeButtonLabel: commonT(($) => $[translationKeys.home])
|
|
801
|
+
}
|
|
802
|
+
)
|
|
803
|
+
] })
|
|
804
|
+
] })
|
|
805
|
+
] }),
|
|
806
|
+
showDecisionMakerModal && selectedDecisionMaker && /* @__PURE__ */ jsx(
|
|
807
|
+
DecisionMakerDetails,
|
|
808
|
+
{
|
|
809
|
+
handleClose: closeDecisionMakerModal,
|
|
810
|
+
handleDelete: () => deleteDecisionMaker(selectedDecisionMaker),
|
|
811
|
+
handleEdit: () => editDecisionMaker(selectedDecisionMaker),
|
|
812
|
+
decisionMaker: selectedDecisionMaker,
|
|
813
|
+
parentLegalEntity: legalEntity
|
|
814
|
+
}
|
|
815
|
+
),
|
|
816
|
+
isModalOpen && /* @__PURE__ */ jsx(
|
|
817
|
+
Modal,
|
|
818
|
+
{
|
|
819
|
+
onClose: closeModal,
|
|
820
|
+
ariaLabel: individualT(($) => $["moreAboutOwnersAndDecisionMakers"]),
|
|
821
|
+
inset: true,
|
|
822
|
+
children: /* @__PURE__ */ jsx(DecisionMakersModalContent, {})
|
|
823
|
+
}
|
|
824
|
+
)
|
|
825
|
+
] })
|
|
826
|
+
}
|
|
827
|
+
);
|
|
828
|
+
};
|
|
829
|
+
export {
|
|
830
|
+
DecisionMakers
|
|
831
|
+
};
|