@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
|
@@ -2,50 +2,59 @@
|
|
|
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] = "ad7a8679-194a-4617-8f3e-011ce184c0cb", e._sentryDebugIdIdentifier = "sentry-dbid-ad7a8679-194a-4617-8f3e-011ce184c0cb");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useEffect, useMemo, useState, useCallback } from "preact/hooks";
|
|
12
|
-
import { u as useScenarios } from "./useScenarios-
|
|
13
|
-
import { R as RadioGroup, u as
|
|
14
|
-
import { u as useProviderStatus, A as Address, a as addressValidators, b as addressFormatters } from "./Address-
|
|
15
|
-
import { c as contactDetailFields, C as ContactDetails, a as contactDetailsValidationRules, d as defaultFieldMetadata$1, f as fieldConfig, u as useValidatePhoneNumberImperatively, g as getAsyncPhoneValidationRules } from "./validate-
|
|
16
|
-
import { b as useApiContext,
|
|
17
|
-
import { u as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { M as MultiSelectList, m as makeSelectItemForRole, n as nameFields, N as Name, a as useSingpassMyInfoLogin, b as idNowModalChildEntityId,
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { g as
|
|
12
|
+
import { u as useScenarios } from "./useScenarios-CEHvpucH.js";
|
|
13
|
+
import { R as RadioGroup, u as useCreateLegalEntity, a as useUpdateLegalEntity, b as RadioWithLabel } from "./RadioGroup-Br5v8w0a.js";
|
|
14
|
+
import { u as useProviderStatus, A as Address, a as addressValidators, b as addressFormatters } from "./Address-BBHj9Aas.js";
|
|
15
|
+
import { c as contactDetailFields, C as ContactDetails, a as contactDetailsValidationRules, d as defaultFieldMetadata$1, f as fieldConfig, u as useValidatePhoneNumberImperatively, g as getAsyncPhoneValidationRules } from "./validate-9J9pJpyR.js";
|
|
16
|
+
import { b as useApiContext, aD as useMutation, k as httpPost, as as matchesRegex, aQ as trimValWithOneSpace, at as NO_ALPHABET_REGEX, au as EMOJI_REGEX, av as hasRepeatedCharacters, aw as isInvalidName, aR as INDIVIDUAL_VALID_CHAR_REGEX, aS as getFormattingRegEx, aT as SPECIAL_CHARS, a9 as CountryCodes, ao as Scenarios, an as DecisionMakerTypes, M as TaskTypes, u as useTranslation, ad as Trans, j as useQuery, N as createLogger, af as useI18nContext, x as Typography, U as Icon, m as useSettingsContext, X as useExperimentsContext, y as LegalEntityTypes, aU as getLegalRepresentativeWarningMessage, ai as objectsDeepEqual, az as standardKatakanaValidator, aA as standardKanjiValidator, aa as isEmpty, aV as getAgeToday, aW as euCountries, aX as individualApiKeyMapping, ak as individualComponentsKeyMapping, aO as reverseMapping, aY as getNomineeFromAssociation, aZ as drop, P as useAnalyticsContext, g as getLegalEntityCountry, a_ as getAllowedDecisionMakerRoles, a$ as filterOutUnwantedAssociationsIfRootLE, aB as cloneObject, b0 as individualDocumentMapping, b1 as individualObscuredFields, a7 as getOwnEntityAssociations, b2 as hasNomineesChanged, b3 as attachNomineeToRole, aJ as doArraysMatch, q as skipToken, o as httpGet, aF as useQueryClient, B as Button, L as Loader, b4 as getAvailableDecisionMakerRoleTypes, b5 as allowedCountriesForNominee, b6 as isLowRiskCountry, b7 as getAgeRangeForLegalRepresentative, b8 as isLegalRepresentativeNeeded, aG as keysOf, b9 as listToRecord, ba as pick, V as IconButton, w as translateStringOrObject, bb as individualOnfidoApiKeyMapping, bc as individualOnfidoDocumentMapping, bd as individualOnfidoObscuredFields } from "./StoreProvider-DadhkEyO.js";
|
|
17
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-Bx1n-f4V.js";
|
|
18
|
+
import { u as useToastContext } from "./useToastContext-D58NfzLh.js";
|
|
19
|
+
import { g as getPropsFromConfigurations, c as composePerScenarioFormConfigurations } from "./process-field-configurations-B1Iwtpx2.js";
|
|
20
|
+
import { M as MultiSelectList, m as makeSelectItemForRole, n as nameFields, N as Name, a as useSingpassMyInfoLogin, b as idNowModalChildEntityId, s as showIdNowModal, i as isBafinSignatoryFlow, c as shouldShowIdNowModal } from "./bafinUtils-CAVAvSFg.js";
|
|
21
|
+
import { f as validatePatternOnBlur, R as RadioGroupCard, C as ContextGuidance, r as resolveFieldMetadata, e as TrustedFieldsProviders, a as useAccountHolder } from "./fieldConfigurations-BZuo2e0d.js";
|
|
22
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer, t as trackNavigation } from "./dropinUtils-wWEQXoqU.js";
|
|
23
|
+
import { u as useMultiForm } from "./useMultiForm-D-wGVJq1.js";
|
|
24
|
+
import { u as uppercase, D as DocumentGuidance, m as mapExistingFile, g as getPageName, a as getPage, b as useScenarioConfiguration } from "./mapExistingFile-Ct5Drm_t.js";
|
|
25
|
+
import { b as addressFields, m as mapAddressLabels, g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-qNiMqbmo.js";
|
|
26
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-kAn6qx2R.js";
|
|
27
|
+
import { C as Checkbox, g as getAssociatedLeAnalyticsPayload } from "./analytics-awjVudvY.js";
|
|
28
|
+
import { g as getIdDocument, a as getDocument, c as createDocumentRequest, d as documentApiUtils, m as mergeAttachments, b as getFileExtention } from "./validate-6QHmaW1O.js";
|
|
29
|
+
import { u as useDataset, d as datasetIdentifier, a as datasetUtilities, C as Confirm } from "./useDataset-B-72Ufk7.js";
|
|
30
|
+
import { i as individualIdNumberOptions, a as additionallIdNumberOptions, t as taxInformationDefaultFieldMetadata, b as taxInformationDefaultFieldConfig, T as TaxInformationField, M as MemoizedDocumentUpload, u as useCapabilities, g as getFieldsWithExistingData } from "./TaxInformationField-C4OeLAhU.js";
|
|
31
|
+
import { l as localizeDateString } from "./localizeDateString--iXm1oBl.js";
|
|
32
|
+
import { o as omitObscuredFieldsIfUnchanged, I as IFrameWidget } from "./iframeWidget-Bdf5GkVq.js";
|
|
33
|
+
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-D-PqLpBS.js";
|
|
34
|
+
import { H as Header, E as ErrorPanel, c as createFormUtils, m as mergeFieldMetadataIntoProps, g as getFieldProps, C as CountryField, h as getFormProps, u as useFormRouterContext } from "./CountryField-DunKeW_n.js";
|
|
31
35
|
import { lazy, forwardRef, memo, Suspense } from "preact/compat";
|
|
32
|
-
import { F as Field,
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { I as InputText, S as SettingNames } from "./InputText-
|
|
36
|
-
import { u as useAllowedCountries, m as
|
|
37
|
-
import { a as Alert } from "./Alert-
|
|
38
|
-
import { I as InputDate, f as formatDateObj } from "./InputDate-
|
|
39
|
-
import { m as makeMask, n as numericInputs, a as nonInputs, b as alphaInputs, c as customInputs, s as spacer, d as alphanumericInputs, M as MaskedInput } from "./MaskedInput-
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
36
|
+
import { F as Field, c as Select, L as LoaderWrapper } from "./useForm-Aw38WiTE.js";
|
|
37
|
+
import { I as Image } from "./Image-TkXLA-UY.js";
|
|
38
|
+
import { L as Link } from "./Link-BZJgg2rS.js";
|
|
39
|
+
import { I as InputText, S as SettingNames } from "./InputText-zem7Kt4i.js";
|
|
40
|
+
import { t as toFullWidth, u as useAllowedCountries, m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-Btg-uZPu.js";
|
|
41
|
+
import { a as Alert } from "./Alert-Dz_jjJ1E.js";
|
|
42
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-DggMbeJG.js";
|
|
43
|
+
import { m as makeMask, n as numericInputs, a as nonInputs, b as alphaInputs, c as customInputs, s as spacer, d as alphanumericInputs, M as MaskedInput } from "./MaskedInput-CSKFmTC0.js";
|
|
44
|
+
import { i as isTruthyValidator } from "./commonValidators-DM04eNpa.js";
|
|
45
|
+
import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-CzXw9tws.js";
|
|
46
|
+
import { i as isEmpty$1 } from "./isEmpty-DWL1114W.js";
|
|
42
47
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
48
|
+
import { m as mapSchemaFieldsToApiScriptLocalization, a as mapApiScriptLocalizationToSchemaFields } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
43
49
|
import { signal, computed } from "@preact/signals";
|
|
44
50
|
import { Show } from "@preact/signals/utils";
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
51
|
+
import { J as JP_ADDRESS_REQUIRED_FIELDS } from "./jpAddressSchema-ULGNNt5U.js";
|
|
52
|
+
import { G as GuidanceQuestionValues, a as GuidanceQuestion, g as getOnfidoIdentityTypeToApiIdentityTypeMap, m as mapLegalEntityToIndividualOnfidoSchema } from "./mapLegalEntityToIndividualOnfidoSchema-DQsaMiqB.js";
|
|
53
|
+
import { M as Modal } from "./Modal-DvB1odWq.js";
|
|
54
|
+
import { L as LandingLayout } from "./LandingLayout-BLjTVlVb.js";
|
|
55
|
+
import { a as getIndividualLegalEntityName } from "./getName-DwJ2SEhe.js";
|
|
56
|
+
import { D as Dropzone } from "./Dropzone-BtTUNjsc.js";
|
|
57
|
+
import { c as createFormRules } from "./form-rules-DhbF2mY4.js";
|
|
49
58
|
import { Onfido } from "onfido-sdk-ui";
|
|
50
59
|
import { S as Spacer } from "./Spacer-BK3jDget.js";
|
|
51
60
|
const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
|
|
@@ -67,11 +76,11 @@ const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
|
|
|
67
76
|
data
|
|
68
77
|
);
|
|
69
78
|
};
|
|
70
|
-
const useVerifyIdNumber = (
|
|
79
|
+
const useVerifyIdNumber = (options) => {
|
|
71
80
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
72
81
|
return useMutation({
|
|
73
82
|
mutationFn: (data) => verifyIdNumber(rootLegalEntityId.value, baseUrl.value, data),
|
|
74
|
-
...
|
|
83
|
+
...options
|
|
75
84
|
});
|
|
76
85
|
};
|
|
77
86
|
const startVerificationCheck = async (rootLegalEntityId, baseUrl, data) => {
|
|
@@ -83,11 +92,11 @@ const startVerificationCheck = async (rootLegalEntityId, baseUrl, data) => {
|
|
|
83
92
|
data
|
|
84
93
|
);
|
|
85
94
|
};
|
|
86
|
-
const useIdVerificationStartCheck = (
|
|
95
|
+
const useIdVerificationStartCheck = (options) => {
|
|
87
96
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
88
97
|
return useMutation({
|
|
89
98
|
mutationFn: (data) => startVerificationCheck(rootLegalEntityId.value, baseUrl.value, data),
|
|
90
|
-
...
|
|
99
|
+
...options
|
|
91
100
|
});
|
|
92
101
|
};
|
|
93
102
|
const nameValidationRulesV4 = {
|
|
@@ -732,7 +741,7 @@ function IdDocumentManualUpload(props) {
|
|
|
732
741
|
const hasBack = hasBackPage(data?.idDocumentType);
|
|
733
742
|
const formUtils = createFormUtils(props, t);
|
|
734
743
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-individual-document-upload adyen-kyc-individual-document-upload--idDocument", children: [
|
|
735
|
-
/* @__PURE__ */ jsx(
|
|
744
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $["idDocument"]) }),
|
|
736
745
|
/* @__PURE__ */ jsx(
|
|
737
746
|
ErrorPanel,
|
|
738
747
|
{
|
|
@@ -816,7 +825,7 @@ const getIdVerificationToken = async (rootLegalEntityId, baseUrl, request) => ht
|
|
|
816
825
|
},
|
|
817
826
|
request
|
|
818
827
|
);
|
|
819
|
-
const useIdVerificationToken = ({ firstName, lastName, residencyCountry }, legalEntityId,
|
|
828
|
+
const useIdVerificationToken = ({ firstName, lastName, residencyCountry }, legalEntityId, options) => {
|
|
820
829
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
821
830
|
const data = firstName && lastName && residencyCountry ? {
|
|
822
831
|
name: { firstName, lastName },
|
|
@@ -835,7 +844,7 @@ const useIdVerificationToken = ({ firstName, lastName, residencyCountry }, legal
|
|
|
835
844
|
enabled: Boolean(firstName && lastName && residencyCountry),
|
|
836
845
|
queryKey: ["idVerificationToken", data],
|
|
837
846
|
queryFn: () => getIdVerificationToken(rootLegalEntityId.value, baseUrl.value, data),
|
|
838
|
-
...
|
|
847
|
+
...options
|
|
839
848
|
});
|
|
840
849
|
};
|
|
841
850
|
const containerId = "adyen-kyc-id-verification";
|
|
@@ -936,7 +945,7 @@ function IdDocumentAlreadyUpload(props) {
|
|
|
936
945
|
const { t: commonT } = useTranslation("common");
|
|
937
946
|
const formUtils = createFormUtils(props, commonT);
|
|
938
947
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-individual-document-upload adyen-kyc-individual-document-upload--idDocument", children: [
|
|
939
|
-
/* @__PURE__ */ jsx(
|
|
948
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $["documentVerification"]) }),
|
|
940
949
|
/* @__PURE__ */ jsx(
|
|
941
950
|
ErrorPanel,
|
|
942
951
|
{
|
|
@@ -1089,7 +1098,7 @@ function IdVerificationMethod$1(props) {
|
|
|
1089
1098
|
const formUtils = createFormUtils(props, commonT);
|
|
1090
1099
|
const allowedIdVerificationMethods = showIndividualMotionCapture.value ? instantIdVerificationMethods : idVerificationMethods;
|
|
1091
1100
|
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-verification-method", children: [
|
|
1092
|
-
/* @__PURE__ */ jsx(
|
|
1101
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $["verifyIndividualIdentity"], { name }) }),
|
|
1093
1102
|
/* @__PURE__ */ jsx(
|
|
1094
1103
|
ErrorPanel,
|
|
1095
1104
|
{
|
|
@@ -1118,8 +1127,8 @@ function IdVerificationMethod$1(props) {
|
|
|
1118
1127
|
onSelect: handleFieldChange("idVerificationMethod"),
|
|
1119
1128
|
selected: data?.idVerificationMethod,
|
|
1120
1129
|
optionId: (method) => method,
|
|
1121
|
-
optionName: (method) => methodsMetadata[method].name,
|
|
1122
|
-
optionDescription: (method) => methodsMetadata[method].description,
|
|
1130
|
+
optionName: (method) => t(($) => $[methodsMetadata[method].name]),
|
|
1131
|
+
optionDescription: (method) => t(($) => $[methodsMetadata[method].description]),
|
|
1123
1132
|
className: "adyen-kyc-field-verification-methods",
|
|
1124
1133
|
optionClassNames: () => ({
|
|
1125
1134
|
label: "adyen-kyc-field-verification-methods__card"
|
|
@@ -1169,16 +1178,16 @@ function IndividualIdNumberTypeSelector({
|
|
|
1169
1178
|
handleFieldChange
|
|
1170
1179
|
}) {
|
|
1171
1180
|
const { t } = useTranslation("common");
|
|
1172
|
-
const
|
|
1181
|
+
const options = useMemo(
|
|
1173
1182
|
() => individualIdNumberOptions[country] ?? [],
|
|
1174
1183
|
[country]
|
|
1175
1184
|
);
|
|
1176
1185
|
useEffect(() => {
|
|
1177
|
-
if (!selected &&
|
|
1178
|
-
handleFieldChange(
|
|
1186
|
+
if (!selected && options.length > 0) {
|
|
1187
|
+
handleFieldChange(options[0].id);
|
|
1179
1188
|
}
|
|
1180
|
-
}, [
|
|
1181
|
-
if (
|
|
1189
|
+
}, [options, selected, handleFieldChange]);
|
|
1190
|
+
if (options.length <= 1) return null;
|
|
1182
1191
|
return /* @__PURE__ */ jsx(
|
|
1183
1192
|
Field,
|
|
1184
1193
|
{
|
|
@@ -1190,7 +1199,7 @@ function IndividualIdNumberTypeSelector({
|
|
|
1190
1199
|
{
|
|
1191
1200
|
...childProps,
|
|
1192
1201
|
name: "individualIdNumberType",
|
|
1193
|
-
items:
|
|
1202
|
+
items: options,
|
|
1194
1203
|
value: selected,
|
|
1195
1204
|
onChange: (value) => handleFieldChange(value)
|
|
1196
1205
|
}
|
|
@@ -1413,7 +1422,7 @@ function NameFields(props) {
|
|
|
1413
1422
|
}
|
|
1414
1423
|
const formUtils = createFormUtils(formProps, t);
|
|
1415
1424
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: fieldConfigs.map(
|
|
1416
|
-
({ name, isValid, label, helper }) => formUtils.isRequiredField(name) && /* @__PURE__ */ jsx(
|
|
1425
|
+
({ name, isValid, label, helper, transformInput, transformMode }) => formUtils.isRequiredField(name) && /* @__PURE__ */ jsx(
|
|
1417
1426
|
Field,
|
|
1418
1427
|
{
|
|
1419
1428
|
name,
|
|
@@ -1433,7 +1442,9 @@ function NameFields(props) {
|
|
|
1433
1442
|
trimOnBlur: true,
|
|
1434
1443
|
spellCheck: false,
|
|
1435
1444
|
"aria-required": true,
|
|
1436
|
-
"aria-invalid": !isValid
|
|
1445
|
+
"aria-invalid": !isValid,
|
|
1446
|
+
transformInput,
|
|
1447
|
+
transformMode
|
|
1437
1448
|
}
|
|
1438
1449
|
)
|
|
1439
1450
|
},
|
|
@@ -1463,12 +1474,16 @@ const LocalizedNameFields = (props) => {
|
|
|
1463
1474
|
{
|
|
1464
1475
|
name: "jaHaniLastName",
|
|
1465
1476
|
label: "jaHaniLastName",
|
|
1466
|
-
isValid: jaHaniNameProps.valid?.jaHaniLastName
|
|
1477
|
+
isValid: jaHaniNameProps.valid?.jaHaniLastName,
|
|
1478
|
+
transformInput: (value) => toFullWidth(value),
|
|
1479
|
+
transformMode: "blur"
|
|
1467
1480
|
},
|
|
1468
1481
|
{
|
|
1469
1482
|
name: "jaHaniFirstName",
|
|
1470
1483
|
label: "jaHaniFirstName",
|
|
1471
|
-
isValid: jaHaniNameProps.valid?.jaHaniFirstName
|
|
1484
|
+
isValid: jaHaniNameProps.valid?.jaHaniFirstName,
|
|
1485
|
+
transformInput: (value) => toFullWidth(value),
|
|
1486
|
+
transformMode: "blur"
|
|
1472
1487
|
}
|
|
1473
1488
|
],
|
|
1474
1489
|
formProps: {
|
|
@@ -1486,12 +1501,16 @@ const LocalizedNameFields = (props) => {
|
|
|
1486
1501
|
{
|
|
1487
1502
|
name: "jaKanaLastName",
|
|
1488
1503
|
label: "jaKanaLastName",
|
|
1489
|
-
isValid: jaKanaNameProps.valid?.jaKanaLastName
|
|
1504
|
+
isValid: jaKanaNameProps.valid?.jaKanaLastName,
|
|
1505
|
+
transformInput: (value) => toFullWidth(value),
|
|
1506
|
+
transformMode: "blur"
|
|
1490
1507
|
},
|
|
1491
1508
|
{
|
|
1492
1509
|
name: "jaKanaFirstName",
|
|
1493
1510
|
label: "jaKanaFirstName",
|
|
1494
|
-
isValid: jaKanaNameProps.valid?.jaKanaFirstName
|
|
1511
|
+
isValid: jaKanaNameProps.valid?.jaKanaFirstName,
|
|
1512
|
+
transformInput: (value) => toFullWidth(value),
|
|
1513
|
+
transformMode: "blur"
|
|
1495
1514
|
}
|
|
1496
1515
|
],
|
|
1497
1516
|
formProps: {
|
|
@@ -2043,10 +2062,14 @@ const ERROR_CODES = {
|
|
|
2043
2062
|
PERSONAL_DETAILS_VALIDATION: "1_30"
|
|
2044
2063
|
};
|
|
2045
2064
|
const getSSNType = (formVerifcationErrors, existingIdNumber) => {
|
|
2065
|
+
const has4DigitSsnCheckFailed = check4DigitSsnFailed(formVerifcationErrors);
|
|
2066
|
+
return has4DigitSsnCheckFailed || existingIdNumber?.length === 9 ? "ssn" : "ssnLastFour";
|
|
2067
|
+
};
|
|
2068
|
+
const check4DigitSsnFailed = (formVerifcationErrors) => {
|
|
2046
2069
|
const individualDetailsError = formVerifcationErrors?.[ERROR_CODES.PERSONAL_DETAILS_VALIDATION];
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2070
|
+
return individualDetailsError?.[ERROR_CODES.SSN_4_DIGITS_VALIDATION]?.some(
|
|
2071
|
+
(error) => error.code === ERROR_CODES.SSN_REMEDIATION
|
|
2072
|
+
);
|
|
2050
2073
|
};
|
|
2051
2074
|
const IdentityUS = forwardRef((props, ref) => {
|
|
2052
2075
|
const { form } = useFormContext();
|
|
@@ -2223,7 +2246,7 @@ function PersonalDetails(props) {
|
|
|
2223
2246
|
const alertProps = getAlertProps();
|
|
2224
2247
|
const handleFieldChange = (fieldName, mode) => handleChangeFor(fieldName, "personalDetails", mode);
|
|
2225
2248
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-individual__personal-details", "aria-describedby": "ariaErrorField", children: [
|
|
2226
|
-
/* @__PURE__ */ jsx(
|
|
2249
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading }),
|
|
2227
2250
|
/* @__PURE__ */ jsx(
|
|
2228
2251
|
ErrorPanel,
|
|
2229
2252
|
{
|
|
@@ -2728,7 +2751,7 @@ function Individual(props) {
|
|
|
2728
2751
|
}
|
|
2729
2752
|
) }),
|
|
2730
2753
|
activeForm.formId === addressFormID && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-wrapper", children: [
|
|
2731
|
-
/* @__PURE__ */ jsx(
|
|
2754
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $["providePersonalAddress"]) }),
|
|
2732
2755
|
/* @__PURE__ */ jsx(
|
|
2733
2756
|
ContextGuidance,
|
|
2734
2757
|
{
|
|
@@ -4052,62 +4075,6 @@ const basicDetailsValidators = ({
|
|
|
4052
4075
|
...contactDetailsValidationRules,
|
|
4053
4076
|
...isExperimentEnabled("StrictNameAndAddressValidationV4") ? nameValidationRulesV4 : void 0
|
|
4054
4077
|
});
|
|
4055
|
-
const guidanceQuestion = "adyen-kyc-guidance-question";
|
|
4056
|
-
const options = "adyen-kyc-options";
|
|
4057
|
-
const styles$5 = {
|
|
4058
|
-
guidanceQuestion,
|
|
4059
|
-
options
|
|
4060
|
-
};
|
|
4061
|
-
const GuidanceQuestionValues = {
|
|
4062
|
-
YES: "Yes",
|
|
4063
|
-
NO: "No"
|
|
4064
|
-
};
|
|
4065
|
-
const GuidanceQuestion = (props) => {
|
|
4066
|
-
const {
|
|
4067
|
-
descriptionLinkText,
|
|
4068
|
-
errorMessage,
|
|
4069
|
-
name,
|
|
4070
|
-
noLabel,
|
|
4071
|
-
onChange,
|
|
4072
|
-
onDescriptionLinkClick,
|
|
4073
|
-
question,
|
|
4074
|
-
value,
|
|
4075
|
-
yesLabel
|
|
4076
|
-
} = props;
|
|
4077
|
-
const { i18n } = useI18nContext();
|
|
4078
|
-
const userEvents = useAnalyticsContext();
|
|
4079
|
-
const handleChange = (selectedValue) => {
|
|
4080
|
-
userEvents.addFieldEvent("Interacted with form field", {
|
|
4081
|
-
actionType: "select",
|
|
4082
|
-
field: name,
|
|
4083
|
-
returnValue: selectedValue
|
|
4084
|
-
});
|
|
4085
|
-
const newValue = selectedValue || null;
|
|
4086
|
-
onChange(newValue);
|
|
4087
|
-
};
|
|
4088
|
-
const yesTileLabel = yesLabel ?? i18n.get("yes");
|
|
4089
|
-
const noTileLabel = noLabel ?? i18n.get("no");
|
|
4090
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$5.guidanceQuestion, children: [
|
|
4091
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body", el: "p", children: question }),
|
|
4092
|
-
descriptionLinkText && onDescriptionLinkClick && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: onDescriptionLinkClick, children: descriptionLinkText }),
|
|
4093
|
-
/* @__PURE__ */ jsx(Field, { name, className: styles$5.options, children: () => /* @__PURE__ */ jsx(
|
|
4094
|
-
TileGroup,
|
|
4095
|
-
{
|
|
4096
|
-
allowMultiple: false,
|
|
4097
|
-
errorMessage,
|
|
4098
|
-
isHorizontal: true,
|
|
4099
|
-
maxSelected: 1,
|
|
4100
|
-
name,
|
|
4101
|
-
onChange: handleChange,
|
|
4102
|
-
selected: value || "",
|
|
4103
|
-
tiles: [
|
|
4104
|
-
{ label: yesTileLabel, value: GuidanceQuestionValues.YES },
|
|
4105
|
-
{ label: noTileLabel, value: GuidanceQuestionValues.NO }
|
|
4106
|
-
]
|
|
4107
|
-
}
|
|
4108
|
-
) })
|
|
4109
|
-
] });
|
|
4110
|
-
};
|
|
4111
4078
|
const getIdNowProviderIdentificationStatus = async (rootLegalEntityId, baseUrl, legalEntityId) => {
|
|
4112
4079
|
return httpGet({
|
|
4113
4080
|
baseUrl,
|
|
@@ -4120,7 +4087,7 @@ const getIdNowProviderIdentificationStatus = async (rootLegalEntityId, baseUrl,
|
|
|
4120
4087
|
}
|
|
4121
4088
|
});
|
|
4122
4089
|
};
|
|
4123
|
-
const useIdNowIdentificationStatus = (legalEntityId,
|
|
4090
|
+
const useIdNowIdentificationStatus = (legalEntityId, options) => {
|
|
4124
4091
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
4125
4092
|
return useQuery({
|
|
4126
4093
|
queryKey: legalEntityId === skipToken ? [] : ["idNowProviderIdentificationStatus", legalEntityId],
|
|
@@ -4129,7 +4096,7 @@ const useIdNowIdentificationStatus = (legalEntityId, options2) => {
|
|
|
4129
4096
|
baseUrl.value,
|
|
4130
4097
|
legalEntityId
|
|
4131
4098
|
),
|
|
4132
|
-
...
|
|
4099
|
+
...options
|
|
4133
4100
|
});
|
|
4134
4101
|
};
|
|
4135
4102
|
const idNowProviderStartIdentification = async (rootLegalEntityId, baseUrl, legalEntityId) => {
|
|
@@ -4138,12 +4105,12 @@ const idNowProviderStartIdentification = async (rootLegalEntityId, baseUrl, lega
|
|
|
4138
4105
|
path: `legalEntities/${rootLegalEntityId}/child/${legalEntityId}/provider/idnow/identification/start`
|
|
4139
4106
|
});
|
|
4140
4107
|
};
|
|
4141
|
-
const useIdNowStartIdentification = (legalEntityId,
|
|
4108
|
+
const useIdNowStartIdentification = (legalEntityId, options) => {
|
|
4142
4109
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
4143
4110
|
return useQuery({
|
|
4144
4111
|
queryKey: legalEntityId === skipToken ? [] : ["idNowProviderStartIdentification", legalEntityId],
|
|
4145
4112
|
queryFn: legalEntityId === skipToken ? skipToken : () => idNowProviderStartIdentification(rootLegalEntityId.value, baseUrl.value, legalEntityId),
|
|
4146
|
-
...
|
|
4113
|
+
...options
|
|
4147
4114
|
});
|
|
4148
4115
|
};
|
|
4149
4116
|
const idnowHeader = "adyen-kyc-idnow-header";
|
|
@@ -4382,21 +4349,6 @@ const calculateRoles = (data) => {
|
|
|
4382
4349
|
];
|
|
4383
4350
|
return roleMappings.filter(({ isApplicable }) => isApplicable).map(({ role }) => role);
|
|
4384
4351
|
};
|
|
4385
|
-
const JP_ADDRESS_REQUIRED_FIELDS = [
|
|
4386
|
-
"postalCode",
|
|
4387
|
-
"otherAddressInformation",
|
|
4388
|
-
// Kanji
|
|
4389
|
-
"jaHaniStateOrProvince",
|
|
4390
|
-
"jaHaniCity",
|
|
4391
|
-
"jaHaniAddress",
|
|
4392
|
-
// Katakana
|
|
4393
|
-
"jaKanaStateOrProvince",
|
|
4394
|
-
"jaKanaCity",
|
|
4395
|
-
// Romaji
|
|
4396
|
-
"stateOrProvince",
|
|
4397
|
-
"city",
|
|
4398
|
-
"address"
|
|
4399
|
-
];
|
|
4400
4352
|
const REQUIRED = "REQUIRED";
|
|
4401
4353
|
const OPTIONAL = "OPTIONAL";
|
|
4402
4354
|
const ID_NUMBER_EXEMPT_COUNTRIES = [
|
|
@@ -4464,13 +4416,17 @@ const individualOnfidoRules = ({
|
|
|
4464
4416
|
}
|
|
4465
4417
|
},
|
|
4466
4418
|
idNumberRules: () => {
|
|
4419
|
+
const hasBusinessAccountScenario = matchingScenario?.includes(Scenarios.L_TAXINFO);
|
|
4467
4420
|
if (data.additionalPersonalDetails?.idNumberExempt) {
|
|
4468
4421
|
return OPTIONAL;
|
|
4469
4422
|
}
|
|
4470
4423
|
if (!data.basicDetails?.role) {
|
|
4471
4424
|
return REQUIRED;
|
|
4472
4425
|
}
|
|
4473
|
-
if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) {
|
|
4426
|
+
if (hasBusinessAccountScenario && country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) {
|
|
4427
|
+
return REQUIRED;
|
|
4428
|
+
}
|
|
4429
|
+
if (!hasBusinessAccountScenario && country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) {
|
|
4474
4430
|
return void 0;
|
|
4475
4431
|
}
|
|
4476
4432
|
if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) {
|
|
@@ -4972,7 +4928,7 @@ const additionalIdentityInfoFields = [
|
|
|
4972
4928
|
"expiryDate"
|
|
4973
4929
|
];
|
|
4974
4930
|
const LazyJpAddress = lazy(
|
|
4975
|
-
async () => (await import("./JpAddress-
|
|
4931
|
+
async () => (await import("./JpAddress-BEKjE0bR.js")).JpAddress
|
|
4976
4932
|
);
|
|
4977
4933
|
const additionalPersonalDetailsFields = [
|
|
4978
4934
|
"birthDate",
|
|
@@ -5043,7 +4999,7 @@ function AdditionalPersonalDetails(props) {
|
|
|
5043
4999
|
const isRootIndividual = taskType === TaskTypes.INDIVIDUAL;
|
|
5044
5000
|
const canEditCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit) || isDecisionMakerTask(taskType);
|
|
5045
5001
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-individual__personal-details", "aria-describedby": "ariaErrorField", children: [
|
|
5046
|
-
/* @__PURE__ */ jsx(
|
|
5002
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading }),
|
|
5047
5003
|
/* @__PURE__ */ jsx(
|
|
5048
5004
|
ErrorPanel,
|
|
5049
5005
|
{
|
|
@@ -5280,7 +5236,7 @@ function BasicDetails(props) {
|
|
|
5280
5236
|
return;
|
|
5281
5237
|
}
|
|
5282
5238
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-individual__personal-details", "aria-describedby": "ariaErrorField", children: [
|
|
5283
|
-
/* @__PURE__ */ jsx(
|
|
5239
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading }),
|
|
5284
5240
|
/* @__PURE__ */ jsx(
|
|
5285
5241
|
ErrorPanel,
|
|
5286
5242
|
{
|
|
@@ -5386,11 +5342,11 @@ const extractDocumentInformation = async (legalEntityId, baseUrl, data) => httpP
|
|
|
5386
5342
|
},
|
|
5387
5343
|
data
|
|
5388
5344
|
);
|
|
5389
|
-
const useExtractDocumentInformation = (
|
|
5345
|
+
const useExtractDocumentInformation = (options) => {
|
|
5390
5346
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
5391
5347
|
return useMutation({
|
|
5392
5348
|
mutationFn: (data) => extractDocumentInformation(rootLegalEntityId.value, baseUrl.value, data),
|
|
5393
|
-
...
|
|
5349
|
+
...options
|
|
5394
5350
|
});
|
|
5395
5351
|
};
|
|
5396
5352
|
const mapApiAddressToSchema = (address) => ({
|
|
@@ -6080,7 +6036,8 @@ function IdVerificationMethod(props) {
|
|
|
6080
6036
|
}
|
|
6081
6037
|
};
|
|
6082
6038
|
if (hasLiveSelfieErrorCode && data.idVerificationMethod?.idVerificationMethod === "existingDocument") {
|
|
6083
|
-
|
|
6039
|
+
setStatus("ready");
|
|
6040
|
+
handleFieldChange("idDocument")(void 0);
|
|
6084
6041
|
}
|
|
6085
6042
|
const handleCancelDeleteDocument = () => {
|
|
6086
6043
|
setStatus("ready");
|
|
@@ -6304,7 +6261,7 @@ function SignatoryQuestionnaire(props) {
|
|
|
6304
6261
|
};
|
|
6305
6262
|
const errorMessage = formUtils.getErrorMessage("isSignatory", errors, fieldValidationErrors);
|
|
6306
6263
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-individual__personal-details", "aria-describedby": "ariaErrorField", children: [
|
|
6307
|
-
/* @__PURE__ */ jsx(
|
|
6264
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading }),
|
|
6308
6265
|
/* @__PURE__ */ jsx(
|
|
6309
6266
|
ErrorPanel,
|
|
6310
6267
|
{
|
|
@@ -6329,7 +6286,101 @@ function SignatoryQuestionnaire(props) {
|
|
|
6329
6286
|
isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: t(($) => $["moreAboutAuthorizedSignatories"]), inset: true, children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {}) })
|
|
6330
6287
|
] });
|
|
6331
6288
|
}
|
|
6332
|
-
const
|
|
6289
|
+
const useGuidanceQuestionnaire = ({
|
|
6290
|
+
data,
|
|
6291
|
+
handleFieldChange,
|
|
6292
|
+
openModal,
|
|
6293
|
+
formUtils,
|
|
6294
|
+
errors,
|
|
6295
|
+
fieldValidationErrors,
|
|
6296
|
+
country
|
|
6297
|
+
}) => {
|
|
6298
|
+
const { t } = useTranslation(["individual"]);
|
|
6299
|
+
const { t: commonT } = useTranslation(["common"]);
|
|
6300
|
+
const defaultQuestions = useMemo(
|
|
6301
|
+
() => ({
|
|
6302
|
+
isDirector: t(
|
|
6303
|
+
($) => {
|
|
6304
|
+
return $["isThisPersonListedAsADirector"];
|
|
6305
|
+
},
|
|
6306
|
+
{ ns: "individual" }
|
|
6307
|
+
),
|
|
6308
|
+
isOwner: t(($) => $["doesThisPersonOwn25PercentOrMoreOfBusiness"], { ns: "individual" }),
|
|
6309
|
+
isControllingPerson: t(($) => $["doesThisPersonHaveSignificantResponsibility"], {
|
|
6310
|
+
ns: "individual"
|
|
6311
|
+
}),
|
|
6312
|
+
isNomineeDirector: t(($) => $["isThisPersonANomineeDirectorAppointed"], { ns: "individual" }),
|
|
6313
|
+
isNomineeShareholder: t(($) => $["isThisPersonANomineeShareholderAppointedToHold"], {
|
|
6314
|
+
ns: "individual"
|
|
6315
|
+
})
|
|
6316
|
+
}),
|
|
6317
|
+
[t]
|
|
6318
|
+
);
|
|
6319
|
+
const defaultDescriptionLinkTextByField = useMemo(
|
|
6320
|
+
() => ({
|
|
6321
|
+
isDirector: t(($) => $["whatDoesThisMean"]),
|
|
6322
|
+
isNomineeDirector: t(($) => $["whatDoesThisMean"]),
|
|
6323
|
+
isOwner: t(($) => $["whatDoesThisMean"]),
|
|
6324
|
+
isNomineeShareholder: void 0,
|
|
6325
|
+
isControllingPerson: t(($) => $["whatDoesThisMean"])
|
|
6326
|
+
}),
|
|
6327
|
+
[t]
|
|
6328
|
+
);
|
|
6329
|
+
const questionsMap = useMemo(() => {
|
|
6330
|
+
const questionsByCountry = {
|
|
6331
|
+
JP: {
|
|
6332
|
+
isDirector: t(($) => $["isThisPersonARegisteredRepresentativeDirector"], {
|
|
6333
|
+
ns: "individual"
|
|
6334
|
+
}),
|
|
6335
|
+
isOwner: t(($) => $["doesThisPersonOwn25PercentOrMoreOfBusiness"], { ns: "individual" }),
|
|
6336
|
+
isControllingPerson: t(($) => $["doesThisPersonHaveSignificantResponsibility"], {
|
|
6337
|
+
ns: "individual"
|
|
6338
|
+
})
|
|
6339
|
+
}
|
|
6340
|
+
};
|
|
6341
|
+
return questionsByCountry[country] ?? {};
|
|
6342
|
+
}, [t, country]);
|
|
6343
|
+
const registerGuidanceQuestion = useCallback(
|
|
6344
|
+
(fieldName) => {
|
|
6345
|
+
const name = fieldName;
|
|
6346
|
+
const value = data?.[fieldName];
|
|
6347
|
+
const onChange = handleFieldChange ? handleFieldChange(fieldName) : () => {
|
|
6348
|
+
};
|
|
6349
|
+
const onDescriptionLinkClick = fieldName !== "isNomineeShareholder" ? openModal(fieldName) : void 0;
|
|
6350
|
+
const question = questionsMap[fieldName] || defaultQuestions[fieldName];
|
|
6351
|
+
const descriptionLinkText = defaultDescriptionLinkTextByField[fieldName];
|
|
6352
|
+
const formErrorMessage = formUtils.getErrorMessage(fieldName, errors, fieldValidationErrors);
|
|
6353
|
+
return {
|
|
6354
|
+
name,
|
|
6355
|
+
value,
|
|
6356
|
+
onChange,
|
|
6357
|
+
onDescriptionLinkClick,
|
|
6358
|
+
question,
|
|
6359
|
+
descriptionLinkText,
|
|
6360
|
+
errorMessage: getDisplayErrorMessage(formErrorMessage, commonT)
|
|
6361
|
+
};
|
|
6362
|
+
},
|
|
6363
|
+
[
|
|
6364
|
+
commonT,
|
|
6365
|
+
data,
|
|
6366
|
+
defaultDescriptionLinkTextByField,
|
|
6367
|
+
defaultQuestions,
|
|
6368
|
+
errors,
|
|
6369
|
+
fieldValidationErrors,
|
|
6370
|
+
formUtils,
|
|
6371
|
+
handleFieldChange,
|
|
6372
|
+
openModal,
|
|
6373
|
+
questionsMap
|
|
6374
|
+
]
|
|
6375
|
+
);
|
|
6376
|
+
return {
|
|
6377
|
+
registerGuidanceQuestion
|
|
6378
|
+
};
|
|
6379
|
+
};
|
|
6380
|
+
const UboQuestionnaireModalContent = ({
|
|
6381
|
+
modalType,
|
|
6382
|
+
country
|
|
6383
|
+
}) => {
|
|
6333
6384
|
const { t } = useTranslation("individual");
|
|
6334
6385
|
switch (modalType) {
|
|
6335
6386
|
case "isOwner":
|
|
@@ -6381,6 +6432,15 @@ const UboQuestionnaireModalContent = ({ modalType }) => {
|
|
|
6381
6432
|
/* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: t(($) => $["controllingPersonDescriptionA2"]) })
|
|
6382
6433
|
] });
|
|
6383
6434
|
case "isDirector":
|
|
6435
|
+
if (country === "JP") {
|
|
6436
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6437
|
+
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h3", className: "adyen-kyc-u-margin-bottom-40", children: t(($) => $["moreAboutRegisteredRepresentativeDirectors"]) }),
|
|
6438
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: t(($) => $["whatIsARegisteredRepresentativeDirector"]) }),
|
|
6439
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: t(($) => $["directorIsANaturalPerson"]) }),
|
|
6440
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: t(($) => $["canABusinessHaveMultipleRegisteredRepresentativeDirectors"]) }),
|
|
6441
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", children: t(($) => $["aBusinessCanHaveManyDirectors"]) })
|
|
6442
|
+
] });
|
|
6443
|
+
}
|
|
6384
6444
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6385
6445
|
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h3", className: "adyen-kyc-u-margin-bottom-40", children: t(($) => $["moreAboutDirectors"]) }),
|
|
6386
6446
|
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: t(($) => $["directorDescriptionQ1"]) }),
|
|
@@ -6410,13 +6470,11 @@ function UboQuestionnaire(props) {
|
|
|
6410
6470
|
formVerificationErrors,
|
|
6411
6471
|
heading,
|
|
6412
6472
|
fieldValidationErrors,
|
|
6413
|
-
handleFieldChange
|
|
6473
|
+
handleFieldChange,
|
|
6474
|
+
country
|
|
6414
6475
|
} = props;
|
|
6415
6476
|
const formUtils = createFormUtils(props, t);
|
|
6416
6477
|
const [activeModal, setActiveModal] = useState(null);
|
|
6417
|
-
if (!handleFieldChange) {
|
|
6418
|
-
return;
|
|
6419
|
-
}
|
|
6420
6478
|
const openModal = (modalType) => () => {
|
|
6421
6479
|
userEvents.addPageEvent("Opened modal", {
|
|
6422
6480
|
actionType: "open",
|
|
@@ -6433,34 +6491,27 @@ function UboQuestionnaire(props) {
|
|
|
6433
6491
|
}
|
|
6434
6492
|
setActiveModal(null);
|
|
6435
6493
|
};
|
|
6494
|
+
const { registerGuidanceQuestion } = useGuidanceQuestionnaire({
|
|
6495
|
+
data,
|
|
6496
|
+
handleFieldChange,
|
|
6497
|
+
openModal,
|
|
6498
|
+
country,
|
|
6499
|
+
formUtils,
|
|
6500
|
+
errors,
|
|
6501
|
+
fieldValidationErrors
|
|
6502
|
+
});
|
|
6503
|
+
if (!handleFieldChange) {
|
|
6504
|
+
return;
|
|
6505
|
+
}
|
|
6436
6506
|
const modalAriaLabelMap = {
|
|
6437
6507
|
isOwner: individualT(($) => $["moreAboutOwners"]),
|
|
6438
6508
|
isControllingPerson: individualT(($) => $["moreAboutOwnershipThroughControl"]),
|
|
6439
|
-
isDirector: individualT(($) => $["moreAboutDirectors"])
|
|
6509
|
+
isDirector: individualT(($) => $["moreAboutDirectors"]),
|
|
6510
|
+
isNomineeDirector: "",
|
|
6511
|
+
isNomineeShareholder: ""
|
|
6440
6512
|
};
|
|
6441
|
-
const isDirectorErrorMessage = formUtils.getErrorMessage(
|
|
6442
|
-
"isDirector",
|
|
6443
|
-
errors,
|
|
6444
|
-
fieldValidationErrors
|
|
6445
|
-
);
|
|
6446
|
-
const isNomineeDirectorErrorMessage = formUtils.getErrorMessage(
|
|
6447
|
-
"isNomineeDirector",
|
|
6448
|
-
errors,
|
|
6449
|
-
fieldValidationErrors
|
|
6450
|
-
);
|
|
6451
|
-
const isOwnerErrorMessage = formUtils.getErrorMessage("isOwner", errors, fieldValidationErrors);
|
|
6452
|
-
const isNomineeShareholderErrorMessage = formUtils.getErrorMessage(
|
|
6453
|
-
"isNomineeShareholder",
|
|
6454
|
-
errors,
|
|
6455
|
-
fieldValidationErrors
|
|
6456
|
-
);
|
|
6457
|
-
const isControllingPersonErrorMessage = formUtils.getErrorMessage(
|
|
6458
|
-
"isControllingPerson",
|
|
6459
|
-
errors,
|
|
6460
|
-
fieldValidationErrors
|
|
6461
|
-
);
|
|
6462
6513
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-individual__personal-details", "aria-describedby": "ariaErrorField", children: [
|
|
6463
|
-
/* @__PURE__ */ jsx(
|
|
6514
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading, description }),
|
|
6464
6515
|
/* @__PURE__ */ jsx(
|
|
6465
6516
|
ErrorPanel,
|
|
6466
6517
|
{
|
|
@@ -6470,67 +6521,12 @@ function UboQuestionnaire(props) {
|
|
|
6470
6521
|
id: "ariaErrorField"
|
|
6471
6522
|
}
|
|
6472
6523
|
),
|
|
6473
|
-
formUtils.isRequiredField("isDirector") && /* @__PURE__ */ jsx(
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
onDescriptionLinkClick: openModal("isDirector"),
|
|
6480
|
-
question: t(($) => $["isThisPersonListedAsADirector"], { ns: "individual" }),
|
|
6481
|
-
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
6482
|
-
errorMessage: getDisplayErrorMessage(isDirectorErrorMessage, t)
|
|
6483
|
-
}
|
|
6484
|
-
),
|
|
6485
|
-
formUtils.isRequiredField("isNomineeDirector") && data?.isDirector === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(
|
|
6486
|
-
GuidanceQuestion,
|
|
6487
|
-
{
|
|
6488
|
-
name: "isNomineeDirector",
|
|
6489
|
-
value: data?.isNomineeDirector,
|
|
6490
|
-
onChange: handleFieldChange("isNomineeDirector"),
|
|
6491
|
-
question: t(($) => $["isThisPersonANomineeDirectorAppointed"], { ns: "individual" }),
|
|
6492
|
-
errorMessage: getDisplayErrorMessage(isNomineeDirectorErrorMessage, t)
|
|
6493
|
-
}
|
|
6494
|
-
),
|
|
6495
|
-
formUtils.isRequiredField("isOwner") && /* @__PURE__ */ jsx(
|
|
6496
|
-
GuidanceQuestion,
|
|
6497
|
-
{
|
|
6498
|
-
name: "isOwner",
|
|
6499
|
-
value: data?.isOwner,
|
|
6500
|
-
onChange: handleFieldChange("isOwner"),
|
|
6501
|
-
onDescriptionLinkClick: openModal("isOwner"),
|
|
6502
|
-
question: t(($) => $["doesThisPersonOwn25PercentOrMoreOfBusiness"], { ns: "individual" }),
|
|
6503
|
-
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
6504
|
-
errorMessage: getDisplayErrorMessage(isOwnerErrorMessage, t)
|
|
6505
|
-
}
|
|
6506
|
-
),
|
|
6507
|
-
formUtils.isRequiredField("isNomineeShareholder") && data?.isOwner === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(
|
|
6508
|
-
GuidanceQuestion,
|
|
6509
|
-
{
|
|
6510
|
-
name: "isNomineeShareholder",
|
|
6511
|
-
value: data?.isNomineeShareholder,
|
|
6512
|
-
onChange: handleFieldChange("isNomineeShareholder"),
|
|
6513
|
-
question: t(($) => $["isThisPersonANomineeShareholderAppointedToHold"], {
|
|
6514
|
-
ns: "individual"
|
|
6515
|
-
}),
|
|
6516
|
-
errorMessage: getDisplayErrorMessage(isNomineeShareholderErrorMessage, t)
|
|
6517
|
-
}
|
|
6518
|
-
),
|
|
6519
|
-
formUtils.isRequiredField("isControllingPerson") && /* @__PURE__ */ jsx(
|
|
6520
|
-
GuidanceQuestion,
|
|
6521
|
-
{
|
|
6522
|
-
name: "isControllingPerson",
|
|
6523
|
-
value: data?.isControllingPerson,
|
|
6524
|
-
onChange: handleFieldChange("isControllingPerson"),
|
|
6525
|
-
onDescriptionLinkClick: openModal("isControllingPerson"),
|
|
6526
|
-
question: t(($) => $["doesThisPersonHaveSignificantResponsibility"], {
|
|
6527
|
-
ns: "individual"
|
|
6528
|
-
}),
|
|
6529
|
-
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
6530
|
-
errorMessage: getDisplayErrorMessage(isControllingPersonErrorMessage, t)
|
|
6531
|
-
}
|
|
6532
|
-
),
|
|
6533
|
-
activeModal && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: modalAriaLabelMap[activeModal], inset: true, children: /* @__PURE__ */ jsx(UboQuestionnaireModalContent, { modalType: activeModal }) })
|
|
6524
|
+
formUtils.isRequiredField("isDirector") && /* @__PURE__ */ jsx(GuidanceQuestion, { ...registerGuidanceQuestion("isDirector") }),
|
|
6525
|
+
formUtils.isRequiredField("isNomineeDirector") && data?.isDirector === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(GuidanceQuestion, { ...registerGuidanceQuestion("isNomineeDirector") }),
|
|
6526
|
+
formUtils.isRequiredField("isOwner") && /* @__PURE__ */ jsx(GuidanceQuestion, { ...registerGuidanceQuestion("isOwner") }),
|
|
6527
|
+
formUtils.isRequiredField("isNomineeShareholder") && data?.isOwner === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(GuidanceQuestion, { ...registerGuidanceQuestion("isNomineeShareholder") }),
|
|
6528
|
+
formUtils.isRequiredField("isControllingPerson") && /* @__PURE__ */ jsx(GuidanceQuestion, { ...registerGuidanceQuestion("isControllingPerson") }),
|
|
6529
|
+
activeModal && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: modalAriaLabelMap[activeModal], inset: true, children: /* @__PURE__ */ jsx(UboQuestionnaireModalContent, { modalType: activeModal, country }) })
|
|
6534
6530
|
] });
|
|
6535
6531
|
}
|
|
6536
6532
|
const logger$1 = createLogger();
|
|
@@ -6735,7 +6731,8 @@ function IndividualOnfido(props) {
|
|
|
6735
6731
|
id: uboQuestionnaireFormID,
|
|
6736
6732
|
handleFieldChange: handleFieldChange("uboQuestionnaire"),
|
|
6737
6733
|
errors: errors?.uboQuestionnaire,
|
|
6738
|
-
fieldValidationErrors: fieldValidationErrors?.uboQuestionnaire
|
|
6734
|
+
fieldValidationErrors: fieldValidationErrors?.uboQuestionnaire,
|
|
6735
|
+
country: countryOfResidence
|
|
6739
6736
|
}
|
|
6740
6737
|
);
|
|
6741
6738
|
case basicDetailsFormID:
|
|
@@ -6855,24 +6852,6 @@ function IndividualOnfido(props) {
|
|
|
6855
6852
|
)
|
|
6856
6853
|
] });
|
|
6857
6854
|
}
|
|
6858
|
-
const getOnfidoIdentityTypeToApiIdentityTypeMap = (data) => {
|
|
6859
|
-
const { country } = data;
|
|
6860
|
-
switch (country) {
|
|
6861
|
-
case CountryCodes.HongKong:
|
|
6862
|
-
return {
|
|
6863
|
-
passport: "passport",
|
|
6864
|
-
driversLicense: "driversLicense",
|
|
6865
|
-
proofOfIdentityCard: "nationalIdNumber"
|
|
6866
|
-
};
|
|
6867
|
-
default:
|
|
6868
|
-
return {
|
|
6869
|
-
nationalIdNumber: "nationalIdNumber",
|
|
6870
|
-
passport: "passport",
|
|
6871
|
-
driversLicense: "driversLicense",
|
|
6872
|
-
proofOfIdentityCard: "identityCard"
|
|
6873
|
-
};
|
|
6874
|
-
}
|
|
6875
|
-
};
|
|
6876
6855
|
const adjustOnfidoIdentificationData = (data, apiData) => {
|
|
6877
6856
|
const { typeOfIdentity, idNumber, idNumberExempt } = data;
|
|
6878
6857
|
const identificationData = {
|
|
@@ -6927,27 +6906,11 @@ const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido, isExperimentEn
|
|
|
6927
6906
|
if (nameLocalization.length) {
|
|
6928
6907
|
legalEntity.individual.name.localization = nameLocalization;
|
|
6929
6908
|
}
|
|
6930
|
-
const
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
mapSchemaFieldsToApiScriptLocalization(
|
|
6936
|
-
individualOnfido.additionalPersonalDetails ?? {},
|
|
6937
|
-
"jaKana"
|
|
6938
|
-
)
|
|
6939
|
-
].filter(({ fields }) => !isEmpty$1(fields)).map(({ script, fields }) => ({
|
|
6940
|
-
script,
|
|
6941
|
-
fields: {
|
|
6942
|
-
city: fields.city,
|
|
6943
|
-
// mismatch between API `street` and schema `address`
|
|
6944
|
-
// only applicable for `ja-Hani`, not `ja-Kana`
|
|
6945
|
-
..."address" in fields ? { street: fields.address } : void 0
|
|
6946
|
-
}
|
|
6947
|
-
}));
|
|
6948
|
-
if (addressLocalization.length) {
|
|
6949
|
-
legalEntity.individual.residentialAddress.localization = addressLocalization;
|
|
6950
|
-
}
|
|
6909
|
+
const addressLocalizations = mapJpAddressSchemaToAddressLocalizations(
|
|
6910
|
+
individualOnfido.additionalPersonalDetails
|
|
6911
|
+
);
|
|
6912
|
+
if (addressLocalizations.length > 0)
|
|
6913
|
+
legalEntity.individual.residentialAddress.localization = addressLocalizations;
|
|
6951
6914
|
if (individualOnfido.basicDetails?.phoneNumber) {
|
|
6952
6915
|
const phone = {
|
|
6953
6916
|
number: individualOnfido.basicDetails.phoneNumber.number,
|
|
@@ -6961,123 +6924,6 @@ const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido, isExperimentEn
|
|
|
6961
6924
|
}
|
|
6962
6925
|
return legalEntity;
|
|
6963
6926
|
};
|
|
6964
|
-
const getIndividualSchemaFromAPI = {
|
|
6965
|
-
...individualOnfidoBaseMapping
|
|
6966
|
-
};
|
|
6967
|
-
const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isRoleFieldNeeded, parentLegalEntity) => {
|
|
6968
|
-
let individualOnfido = {
|
|
6969
|
-
...formatObject(legalEntity, getIndividualSchemaFromAPI)
|
|
6970
|
-
};
|
|
6971
|
-
individualOnfido = {
|
|
6972
|
-
...individualOnfido,
|
|
6973
|
-
basicDetails: {
|
|
6974
|
-
...individualOnfido?.basicDetails,
|
|
6975
|
-
...isChangingType && {
|
|
6976
|
-
firstName: "",
|
|
6977
|
-
lastName: "",
|
|
6978
|
-
localization: {}
|
|
6979
|
-
}
|
|
6980
|
-
},
|
|
6981
|
-
signatoryQuestionnaire: {
|
|
6982
|
-
isSignatory: isChangingType ? null : individualOnfido.signatoryQuestionnaire?.isSignatory ?? null
|
|
6983
|
-
},
|
|
6984
|
-
uboQuestionnaire: isChangingType ? {
|
|
6985
|
-
isOwner: null,
|
|
6986
|
-
isControllingPerson: null,
|
|
6987
|
-
isDirector: null,
|
|
6988
|
-
isNomineeShareholder: null,
|
|
6989
|
-
isNomineeDirector: null
|
|
6990
|
-
} : {
|
|
6991
|
-
isOwner: individualOnfido.uboQuestionnaire?.isOwner ?? null,
|
|
6992
|
-
isControllingPerson: individualOnfido.uboQuestionnaire?.isControllingPerson ?? null,
|
|
6993
|
-
isDirector: individualOnfido.uboQuestionnaire?.isDirector ?? null,
|
|
6994
|
-
isNomineeDirector: individualOnfido.uboQuestionnaire?.isNomineeDirector ?? null,
|
|
6995
|
-
isNomineeShareholder: individualOnfido.uboQuestionnaire?.isNomineeShareholder ?? null
|
|
6996
|
-
}
|
|
6997
|
-
};
|
|
6998
|
-
if (legalEntity?.documentDetails?.length) {
|
|
6999
|
-
individualOnfido = {
|
|
7000
|
-
...individualOnfido,
|
|
7001
|
-
idVerificationMethod: {
|
|
7002
|
-
// Manually set verification method for existing document journey
|
|
7003
|
-
idVerificationMethod: "existingDocument",
|
|
7004
|
-
idDocument: mapDocumentDetailToIdDocument(legalEntity.documentDetails)
|
|
7005
|
-
}
|
|
7006
|
-
};
|
|
7007
|
-
}
|
|
7008
|
-
if (legalEntity.individual?.identificationData?.type && individualOnfido.additionalPersonalDetails) {
|
|
7009
|
-
const apiIdentityTypeToIdentityTypeMap = reverseMapping(
|
|
7010
|
-
getOnfidoIdentityTypeToApiIdentityTypeMap(individualOnfido.additionalPersonalDetails)
|
|
7011
|
-
);
|
|
7012
|
-
individualOnfido.additionalPersonalDetails.typeOfIdentity = apiIdentityTypeToIdentityTypeMap[legalEntity.individual.identificationData.type];
|
|
7013
|
-
}
|
|
7014
|
-
if (legalEntity.individual?.name?.localization) {
|
|
7015
|
-
for (const scriptLoc of legalEntity.individual.name.localization) {
|
|
7016
|
-
individualOnfido.basicDetails = {
|
|
7017
|
-
...individualOnfido.basicDetails,
|
|
7018
|
-
...mapApiScriptLocalizationToSchemaFields(scriptLoc)
|
|
7019
|
-
};
|
|
7020
|
-
}
|
|
7021
|
-
}
|
|
7022
|
-
if (legalEntity.individual?.residentialAddress?.localization) {
|
|
7023
|
-
for (const { script, fields } of legalEntity.individual.residentialAddress.localization) {
|
|
7024
|
-
const schemaFieldsFromLocalization = mapApiScriptLocalizationToSchemaFields({
|
|
7025
|
-
script,
|
|
7026
|
-
fields: {
|
|
7027
|
-
city: fields.city,
|
|
7028
|
-
// mismatch between API `street` and schema `address`
|
|
7029
|
-
address: fields.street
|
|
7030
|
-
}
|
|
7031
|
-
});
|
|
7032
|
-
individualOnfido.additionalPersonalDetails = {
|
|
7033
|
-
...individualOnfido.additionalPersonalDetails,
|
|
7034
|
-
...schemaFieldsFromLocalization
|
|
7035
|
-
// TODO determine hani/kana state/province from Romaji field
|
|
7036
|
-
};
|
|
7037
|
-
}
|
|
7038
|
-
}
|
|
7039
|
-
if (!parentLegalEntity?.entityAssociations) {
|
|
7040
|
-
return individualOnfido;
|
|
7041
|
-
}
|
|
7042
|
-
const associations = parentLegalEntity?.entityAssociations?.filter((ea) => ea.legalEntityId === legalEntity?.id) ?? [];
|
|
7043
|
-
if (isRoleFieldNeeded && individualOnfido.basicDetails) {
|
|
7044
|
-
individualOnfido.basicDetails.role = associations.map((ea) => ea.type);
|
|
7045
|
-
individualOnfido.basicDetails.jobTitle = associations.find(
|
|
7046
|
-
({ jobTitle }) => Boolean(jobTitle)
|
|
7047
|
-
)?.jobTitle;
|
|
7048
|
-
}
|
|
7049
|
-
if (isRoleFieldNeeded && individualOnfido.signatoryQuestionnaire && individualOnfido.uboQuestionnaire) {
|
|
7050
|
-
const associationTypes = new Set(associations.map((ea) => ea.type));
|
|
7051
|
-
const hasAssociation = (type) => associationTypes.has(type) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
|
|
7052
|
-
individualOnfido.signatoryQuestionnaire.isSignatory = hasAssociation(
|
|
7053
|
-
DecisionMakerTypes.SIGNATORY
|
|
7054
|
-
);
|
|
7055
|
-
individualOnfido.uboQuestionnaire.isOwner = hasAssociation(DecisionMakerTypes.OWNER);
|
|
7056
|
-
individualOnfido.uboQuestionnaire.isControllingPerson = hasAssociation(
|
|
7057
|
-
DecisionMakerTypes.CONTROLLING_PERSON
|
|
7058
|
-
);
|
|
7059
|
-
individualOnfido.uboQuestionnaire.isDirector = hasAssociation(DecisionMakerTypes.DIRECTOR);
|
|
7060
|
-
const hasNomineeAssociation = (type) => associations.some((ea) => ea.type === type && ea.nominee) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
|
|
7061
|
-
individualOnfido.uboQuestionnaire.isNomineeDirector = hasNomineeAssociation(
|
|
7062
|
-
DecisionMakerTypes.DIRECTOR
|
|
7063
|
-
);
|
|
7064
|
-
individualOnfido.uboQuestionnaire.isNomineeShareholder = hasNomineeAssociation(
|
|
7065
|
-
DecisionMakerTypes.OWNER
|
|
7066
|
-
);
|
|
7067
|
-
}
|
|
7068
|
-
individualOnfido.basicDetails = getNomineeFromAssociation(
|
|
7069
|
-
associations,
|
|
7070
|
-
individualOnfido.basicDetails
|
|
7071
|
-
);
|
|
7072
|
-
return individualOnfido;
|
|
7073
|
-
};
|
|
7074
|
-
const mapDocumentDetailToIdDocument = (documents) => {
|
|
7075
|
-
const activeDocument = documents.find((document2) => document2.active);
|
|
7076
|
-
return activeDocument ? {
|
|
7077
|
-
idDocumentType: activeDocument.type,
|
|
7078
|
-
modificationDate: activeDocument.modificationDate
|
|
7079
|
-
} : void 0;
|
|
7080
|
-
};
|
|
7081
6927
|
const identityOnfidoBase = {
|
|
7082
6928
|
role: {
|
|
7083
6929
|
rule: "requiredIfDecisionMakerTask"
|
|
@@ -7446,7 +7292,12 @@ function IndividualOnfidoDropin({
|
|
|
7446
7292
|
asyncRules: individualFieldAsyncValidations,
|
|
7447
7293
|
optionalFields: derivedProps?.optionalFields,
|
|
7448
7294
|
obscuredFields: {
|
|
7449
|
-
|
|
7295
|
+
/**takes care of scenario when the 4 digit provided is wrong based on verification errors and
|
|
7296
|
+
* we need to show validation error for defaultData which is already saved
|
|
7297
|
+
**/
|
|
7298
|
+
additionalPersonalDetails: check4DigitSsnFailed(
|
|
7299
|
+
problems?.verificationErrors?.additionalPersonalDetails
|
|
7300
|
+
) ? [] : ["idNumber"]
|
|
7450
7301
|
}
|
|
7451
7302
|
});
|
|
7452
7303
|
const documentUtils = documentApiUtils({
|
|
@@ -7597,7 +7448,7 @@ function IndividualOnfidoDropin({
|
|
|
7597
7448
|
dataSubmitted,
|
|
7598
7449
|
legalEntity.id
|
|
7599
7450
|
);
|
|
7600
|
-
if (!formattedDocuments || formattedDocuments
|
|
7451
|
+
if (!formattedDocuments || formattedDocuments?.length === 0) {
|
|
7601
7452
|
if (existingAttachments?.length)
|
|
7602
7453
|
logger.log(
|
|
7603
7454
|
"User has already uploaded documents and is not changing them, nothing needs to be done"
|
|
@@ -7797,18 +7648,23 @@ function IndividualOnfidoDropin({
|
|
|
7797
7648
|
if (summaryData?.basicDetails?.phoneNumber) {
|
|
7798
7649
|
summaryData.basicDetails.phoneNumber = summaryData.basicDetails.phoneNumber.number;
|
|
7799
7650
|
}
|
|
7800
|
-
if (summaryData.additionalPersonalDetails?.country) {
|
|
7801
|
-
summaryData.additionalPersonalDetails.country = datasetUtils.getCountryName(
|
|
7802
|
-
summaryData.additionalPersonalDetails.country
|
|
7803
|
-
);
|
|
7804
|
-
}
|
|
7805
7651
|
if (summaryData.additionalPersonalDetails?.nationality) {
|
|
7806
7652
|
summaryData.additionalPersonalDetails.nationality = datasetUtils.getCountryName(
|
|
7807
7653
|
summaryData.additionalPersonalDetails.nationality
|
|
7808
7654
|
);
|
|
7809
7655
|
}
|
|
7810
|
-
if (
|
|
7811
|
-
|
|
7656
|
+
if (data.additionalPersonalDetails) {
|
|
7657
|
+
if (country === CountryCodes.Japan) {
|
|
7658
|
+
summaryData.additionalPersonalDetails = {
|
|
7659
|
+
...drop(...JP_ADDRESS_REQUIRED_FIELDS).from(summaryData.additionalPersonalDetails),
|
|
7660
|
+
...mapJpAddressSummary(data.additionalPersonalDetails, datasetUtils)
|
|
7661
|
+
};
|
|
7662
|
+
} else {
|
|
7663
|
+
summaryData.additionalPersonalDetails = {
|
|
7664
|
+
...summaryData.additionalPersonalDetails,
|
|
7665
|
+
...mapAddressLabels(data.additionalPersonalDetails, datasetUtils)
|
|
7666
|
+
};
|
|
7667
|
+
}
|
|
7812
7668
|
}
|
|
7813
7669
|
if (summaryData.basicDetails?.accountHolder) {
|
|
7814
7670
|
summaryData.basicDetails.accountHolder = i18n.get(summaryData.basicDetails.accountHolder);
|
|
@@ -7949,6 +7805,5 @@ function IndividualOnfidoDropin({
|
|
|
7949
7805
|
}
|
|
7950
7806
|
export {
|
|
7951
7807
|
IndividualOnfidoDropin as I,
|
|
7952
|
-
JP_ADDRESS_REQUIRED_FIELDS as J,
|
|
7953
7808
|
IndividualDropin as a
|
|
7954
7809
|
};
|