@adyen/kyc-components 4.3.0 → 4.4.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-OMNQzzlt.js → AcceptTermsOfServiceComponent-Ch1PLZkE.js} +15 -15
- package/dist/{AccountSetupRejected-BmELqasB.js → AccountSetupRejected-BPEtnc7j.js} +2 -2
- package/dist/{ActionBar-CYYTQnyt.js → ActionBar-NV7R7PEb.js} +2 -2
- package/dist/{Address-BuvEwdEz.js → Address-xF2Li1Za.js} +17 -18
- package/dist/{Avatar-6Ijr-U98.js → Avatar-Cw6tLao7.js} +2 -2
- package/dist/{BusinessFinancingComponent-C_dvZWrV.js → BusinessFinancingComponent-uqUPy4UH.js} +6 -6
- package/dist/{BusinessFinancingDropin-CqBXTRew.js → BusinessFinancingDropin-DK-KXg_B.js} +30 -30
- package/dist/BusinessFinancingPage-BoUZ_jM1.js +43 -0
- package/dist/{BusinessTypeSelectionPage-0ykcbLXM.js → BusinessTypeSelectionPage-BnJ8ucnl.js} +9 -9
- package/dist/{Checkbox-CEt2JNWg.js → Checkbox-BU__y4sz.js} +2 -2
- package/dist/{Confirm-tO8eG5lI.js → Confirm-BX6xGJJV.js} +3 -3
- package/dist/{ConstitutionalDocument-BNQrCuoP.js → ConstitutionalDocument-DV11W4Uc.js} +18 -18
- package/dist/{ContactDetails-wRdhpEXl.js → ContactDetails-0AACDs1M.js} +6 -6
- package/dist/{ContextGuidance-D-wkN66k.js → ContextGuidance-B17pNn6u.js} +2 -2
- package/dist/{CountryField-BfpNTqr6.js → CountryField-Dp6hXPqK.js} +4 -4
- package/dist/CreateIndividualComponent-pfPheGx6.js +65 -0
- package/dist/{CreateTransferInstrumentComponent-C94kteP5.js → CreateTransferInstrumentComponent-BP1o-KXu.js} +5 -5
- package/dist/{Currency-CIvge00Z.js → Currency-DKKQ4vvp.js} +10 -10
- package/dist/{CustomerSupport-Cn0cURdF.js → CustomerSupport-97KAFvBP.js} +10 -10
- package/dist/{DebugModal-CPJQfotk.js → DebugModal-BTeaM1f-.js} +9 -9
- package/dist/{DecisionMakerDetailsPage-HY7FMT3F.js → DecisionMakerDetailsPage-D092fGbY.js} +8 -8
- package/dist/{DecisionMakers-C9Y6zR4s.js → DecisionMakers-BHZW4NNI.js} +21 -22
- package/dist/{Dropzone-B87ivHUX.js → Dropzone-CLoB_3-q.js} +4 -4
- package/dist/{EmbeddedStatus-Qp66N9js.js → EmbeddedStatus-T1Tsk3PK.js} +3 -3
- package/dist/{EndStateLayout-BcYjyuoi.js → EndStateLayout-y2JP5asU.js} +2 -2
- package/dist/{EntityAssociation-NEf45gFy.js → EntityAssociation-D1BM5Je8.js} +5 -5
- package/dist/{EntityGuidanceStatus-BSe0LbpA.js → EntityGuidanceStatus-CwKr9buW.js} +4 -4
- package/dist/{ErrorPanel-0defccwj.js → ErrorPanel-DDVrYUpJ.js} +2 -2
- package/dist/{Field-CS5lBNi-.js → Field-B9sKUtUg.js} +2 -2
- package/dist/{FormNavigation-Ds6Zo4kr.js → FormNavigation-CdcEMHw0.js} +3 -3
- package/dist/{FormWrapper-CM27JHcm.js → FormWrapper-BoU8DR0W.js} +9 -9
- package/dist/{Individual.rules-BKCZ5pw4.js → Individual.rules-BD1j4LiM.js} +10 -7
- package/dist/{IndividualDropin-BEfS_NNT.js → IndividualDropin-uiNPeLuT.js} +180 -167
- package/dist/{InputDate-DbPcPUic.js → InputDate-BaGnhAVf.js} +2 -2
- package/dist/{InputText-CQMxEarX.js → InputText-D0_rMV9x.js} +2 -2
- package/dist/{Introduction-_K-ioq4w.js → Introduction-BNfrUGef.js} +4 -4
- package/dist/{JpAddress-8qsY8wnP.js → JpAddress-CzQ4H7tm.js} +10 -11
- package/dist/{LandingLayout-Bx0c6vHb.js → LandingLayout-B9DjLl1D.js} +2 -2
- package/dist/{LegalCompanyNameField-BD6Te5c5.js → LegalCompanyNameField-DoTX5byz.js} +6 -6
- package/dist/LegalRepresentativeDetailsPage-SEccCLtW.js +55 -0
- package/dist/{Link-deXxlSsM.js → Link-BieB0t1Y.js} +2 -2
- package/dist/{ListItem-Dtx0lKaK.js → ListItem-Cw-AYeFH.js} +3 -3
- package/dist/{LoaderWrapper-Dg9BXOfN.js → LoaderWrapper-B73HgNuK.js} +2 -2
- package/dist/ManageIndividualComponent-D7VJUR-y.js +46 -0
- package/dist/{ManageTermsOfServiceComponent-rpvf07UO.js → ManageTermsOfServiceComponent-Dxs0RCkC.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-D_10bdI3.js → ManageTransferInstrumentComponent-fZbHylGm.js} +12 -13
- package/dist/{MaskedInput-DX9qywO6.js → MaskedInput-B5-H7MTF.js} +5 -5
- package/dist/{MaybeModal-B6Y-CUwt.js → MaybeModal-DyP6D8Mm.js} +3 -3
- package/dist/{Modal-CyGRv-gZ.js → Modal-l3FZFwDQ.js} +2 -2
- package/dist/{Name-DB6DpTUy.js → Name-Cy0qTOPR.js} +5 -5
- package/dist/{OnboardingDropinComponent-ByCzepLz.js → OnboardingDropinComponent-Cd1FysjN.js} +805 -111
- package/dist/{PayoutDetailsDropin-CHKMEoSE.js → PayoutDetailsDropin-BLHDVWJP.js} +64 -168
- package/dist/PayoutDetailsPage-BgOgeJt8.js +55 -0
- package/dist/{RadioGroup-Bmyz_UGC.js → RadioGroup-DxGcH0In.js} +2 -2
- package/dist/{RadioGroupCard-DfDec_J3.js → RadioGroupCard-Cr8u_mxa.js} +2 -2
- package/dist/{Review-BfeBbmqL.js → Review-BBKyp3B8.js} +6 -6
- package/dist/{RootBusinessDetailsPage-CtRd9HPs.js → RootBusinessDetailsPage-Dto2CETH.js} +5 -5
- package/dist/{RootBusinessLinesPage-Btnsj8r_.js → RootBusinessLinesPage-X9UmCsne.js} +24 -27
- package/dist/RootIndividualDetailsPage-_j_pbdea.js +61 -0
- package/dist/{Select-w8VBNvQR.js → Select-BJOovb_D.js} +4 -4
- package/dist/{SignPCIComponent-CA5Ao7_u.js → SignPCIComponent-CKNCBHDi.js} +11 -11
- package/dist/{SingpassSelection-DOUOHu-z.js → SingpassSelection-CSnMQdA2.js} +6 -6
- package/dist/{SoleProprietorshipPage-4OFUvq_A.js → SoleProprietorshipPage-CUAnaNlw.js} +4 -4
- package/dist/{SourceOfFundsPage-B2L2vYO7.js → SourceOfFundsPage-DkjK2ZLc.js} +36 -40
- package/dist/{StepProgressIndicator-BBjfKoHH.js → StepProgressIndicator-B-fjkG3s.js} +2 -2
- package/dist/{StoreProvider-DFR6yFy8.js → StoreProvider-x59VMyW0.js} +222 -209
- package/dist/{StructuredList-Bh1vlAFE.js → StructuredList-CNha20ka.js} +1 -1
- package/dist/{Summary-SxfPLeM9.js → Summary-kDA3sqBe.js} +11 -9
- package/dist/{TaxInformationField-pIOj5IIN.js → TaxInformationField-C9Jy5cRJ.js} +22 -22
- package/dist/{TaxReportingDropin-BzB8nYXE.js → TaxReportingDropin-CMKrs9_R.js} +15 -15
- package/dist/{TextArea-I88bxkOh.js → TextArea-BXoK80OY.js} +2 -2
- package/dist/{TileGroup-PHV4JXvH.js → TileGroup-CD6DoIe_.js} +3 -3
- package/dist/{TrustDetailsPage-Dr6YIRGG.js → TrustDetailsPage-9vV1HSJ0.js} +33 -33
- package/dist/{TrustMemberCompanyPage-CfUxQni4.js → TrustMemberCompanyPage-BW01AXIR.js} +6 -6
- package/dist/TrustMemberIndividualPage-BRhv0I6R.js +64 -0
- package/dist/{TrustMemberRoleAndTypePage-BdBKpEha.js → TrustMemberRoleAndTypePage-CbpEp-Eb.js} +22 -23
- package/dist/{TrustMembersOverview-Ynu4zahR.js → TrustMembersOverview-DvCI2Rgo.js} +11 -11
- package/dist/UnincorporatedPartnershipIndividualPage-CfYzgKds.js +63 -0
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BFZ7GGpo.js → UnincorporatedPartnershipMemberCompanyPage-rEc73wFm.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-6C67QTtR.js → UnincorporatedPartnershipMemberRoleAndTypePage-CDAcpK4G.js} +15 -15
- package/dist/{UnincorporatedPartnershipMembersOverview-BkAc4tTI.js → UnincorporatedPartnershipMembersOverview-CibvMdLp.js} +8 -8
- package/dist/{VerificationErrorAlert-CyE2-4NI.js → VerificationErrorAlert-D3AX98bd.js} +23 -3
- package/dist/{ViewVerificationStatusComponent-0IyRvr_W.js → ViewVerificationStatusComponent-B9vYeYZb.js} +3 -3
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-invited-decision-maker.js +8 -8
- package/dist/adyen-kyc-components.js +15 -16
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +3 -3
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-BABg2zgB.js → bafinUtils-DSDSKhKB.js} +14 -2
- package/dist/bg-BG-CRbKoTLs.js +13 -0
- package/dist/{bg-BG-C6kad3Qr.js → bg-BG-Cj3_UGTi.js} +10 -1
- package/dist/{bg-BG-er0t4jTs.js → bg-BG-Cz7Cuw8v.js} +3 -1
- package/dist/bg-BG-DqRXdvRT.js +13 -0
- package/dist/{commonValidators-BcyFMdFA.js → commonValidators-B6d9s0-o.js} +2 -2
- package/dist/{cs-CZ-CQNBae2b.js → cs-CZ-BlrV3tkx.js} +3 -1
- package/dist/cs-CZ-CmPmY5GZ.js +13 -0
- package/dist/cs-CZ-DR5Pfj3g.js +13 -0
- package/dist/{cs-CZ-C_GFp3nV.js → cs-CZ-DxfB5dcV.js} +10 -1
- package/dist/{da-DK-C60mLiV1.js → da-DK-BfsYpvel.js} +10 -1
- package/dist/da-DK-CG2NcTvu.js +13 -0
- package/dist/{da-DK-gnPgzwrG.js → da-DK-CM1onr3w.js} +3 -1
- package/dist/{da-DK-Cd5IQPv3.js → da-DK-CMVthpSr.js} +2 -2
- package/dist/da-DK-DaINWU5x.js +13 -0
- package/dist/{de-DE-C9NH2zMh.js → de-DE-B5TOuf7l.js} +2 -2
- package/dist/{de-DE-D3lLuF8z.js → de-DE-CA4mYLwp.js} +3 -1
- package/dist/{de-DE-Cvz1TGdB.js → de-DE-CEsDXBn-.js} +10 -1
- package/dist/de-DE-KqZs1FFF.js +13 -0
- package/dist/de-DE-NMS4xBab.js +13 -0
- package/dist/{dropinUtils-Ds8fesIK.js → dropinUtils-DQpXPqk2.js} +4 -4
- package/dist/{el-GR-DTHQslLc.js → el-GR-BNNlN4l2.js} +2 -2
- package/dist/el-GR-Bn45KMp-.js +13 -0
- package/dist/{el-GR-DSlgFwLb.js → el-GR-CM3bIzr7.js} +10 -1
- package/dist/{el-GR-XRux2Wpv.js → el-GR-D6XimdV5.js} +3 -1
- package/dist/el-GR-DWM1mhuZ.js +13 -0
- package/dist/{en-US-h0JneJJl.js → en-US--1W760fR.js} +2 -2
- package/dist/en-US-CEnwRsyr.js +13 -0
- package/dist/{en-US-B96dpVon.js → en-US-fDACdKtT.js} +3 -1
- package/dist/{en-US.instructions-Ddr7AO05.js → en-US.instructions-CfIM2SRF.js} +1 -2
- package/dist/{es-ES-CXDJLKAI.js → es-ES-BBcx4tvi.js} +3 -1
- package/dist/{es-ES-Dj5-YMmZ.js → es-ES-BWFP5itn.js} +10 -1
- package/dist/es-ES-BWe46jej.js +13 -0
- package/dist/es-ES-DzGJ9DrB.js +13 -0
- package/dist/{es-ES-DK-7qtDf.js → es-ES-Wcpc6fm1.js} +2 -2
- package/dist/{et-EE--cL_YqWe.js → et-EE-B_Wk8564.js} +3 -1
- package/dist/{et-EE-Bij5j-z5.js → et-EE-CcXrAAc7.js} +10 -1
- package/dist/et-EE-CylmXBkF.js +13 -0
- package/dist/et-EE-JKt5dMOQ.js +13 -0
- package/dist/{fi-FI-fArobrt5.js → fi-FI-BKu826v5.js} +3 -1
- package/dist/{fi-FI-B2xHiSHi.js → fi-FI-DenK0WPz.js} +10 -1
- package/dist/fi-FI-larJ5zXy.js +13 -0
- package/dist/fi-FI-n9XAQuIy.js +13 -0
- package/dist/{formUtils-Ctj-XQBQ.js → formUtils-A6oBRG3L.js} +3 -3
- package/dist/{fr-FR-CNQtWSXx.js → fr-FR-BmTswZU5.js} +10 -1
- package/dist/{fr-FR-CiwkAb3E.js → fr-FR-C7iSS-OS.js} +3 -1
- package/dist/fr-FR-DVqpakkq.js +13 -0
- package/dist/{fr-FR-B2je0smB.js → fr-FR-DodNoPid.js} +2 -2
- package/dist/fr-FR-iD1onxpA.js +13 -0
- package/dist/{getName-VMVSrxGw.js → getName-lGICWUPQ.js} +2 -2
- package/dist/{getProblemsForEntity-B2aPSiz5.js → getProblemsForEntity-D3HpaFZB.js} +2 -2
- package/dist/hr-HR-C-Hn5lAD.js +13 -0
- package/dist/hr-HR-CAqaI1xJ.js +13 -0
- package/dist/{hr-HR-B6U5Rzzw.js → hr-HR-SDrDZRLV.js} +10 -1
- package/dist/{hr-HR-DtfHQVe0.js → hr-HR-g88yM2q1.js} +3 -1
- package/dist/{hu-HU-I4-KFzvz.js → hu-HU-ByRdd0O_.js} +3 -1
- package/dist/{hu-HU-DU-5ujQK.js → hu-HU-C3ZiFh1F.js} +2 -2
- package/dist/hu-HU-CRpdELm_.js +13 -0
- package/dist/{hu-HU-BLLoj5CX.js → hu-HU-DSVf2zbX.js} +10 -1
- package/dist/hu-HU-DynB7VhD.js +13 -0
- package/dist/{iframeWidget-CJ4GOEBG.js → iframeWidget-Huaxn_9e.js} +4 -4
- package/dist/{isEmpty-BNrK3WJw.js → isEmpty-C2vBRvpQ.js} +2 -2
- package/dist/{it-IT-DIbH-udG.js → it-IT-CUrn0j1I.js} +3 -1
- package/dist/{it-IT-Dhwa9Ecj.js → it-IT-CZ4aDoVQ.js} +2 -2
- package/dist/{it-IT-Cr20JO4o.js → it-IT-DJe5OflH.js} +10 -1
- package/dist/it-IT-DkiyBNl6.js +13 -0
- package/dist/it-IT-M7AqGzBo.js +13 -0
- package/dist/ja-JP-B0Ox3Ixh.js +13 -0
- package/dist/ja-JP-BcGZdMJa.js +13 -0
- package/dist/{ja-JP-BZb5ndp9.js → ja-JP-BpeNsNhn.js} +2 -2
- package/dist/{ja-JP-CaUe8KW7.js → ja-JP-CbP1sVFP.js} +3 -1
- package/dist/{ja-JP-BeeuQ_LL.js → ja-JP-GGV_-V6p.js} +10 -1
- package/dist/{japanSupportUtils-B1kmKF7K.js → japanSupportUtils-r2_qbuUh.js} +2 -2
- package/dist/{localizeDateString-DUFhW5fN.js → localizeDateString-Cn4lULAz.js} +2 -2
- package/dist/{lt-LT-0WbfHH_o.js → lt-LT-C9nsCODy.js} +10 -1
- package/dist/{lt-LT-BLsIcCtE.js → lt-LT-CNTNKNlX.js} +3 -1
- package/dist/lt-LT-DWs-lYAv.js +13 -0
- package/dist/lt-LT-SQmafLDX.js +13 -0
- package/dist/lv-LV-B5Os0zqy.js +13 -0
- package/dist/{lv-LV-BZN4-Xat.js → lv-LV-BdPdaVGy.js} +2 -2
- package/dist/{lv-LV-BuuUUumH.js → lv-LV-Bue450PR.js} +10 -1
- package/dist/lv-LV-CdCU8ZaR.js +13 -0
- package/dist/{lv-LV-C7hMdPcY.js → lv-LV-N81Dgdm3.js} +3 -1
- package/dist/{mapExistingFile-BU4Lq435.js → mapExistingFile-CDtoMMNP.js} +4 -4
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BLzSTlhK.js → mapJpAddressSchemaToAddressLocalizations-BX_XB7Pv.js} +2 -2
- package/dist/{mapLegalEntityToIndividualSchema-DHieAjhC.js → mapLegalEntityToIndividualSchema-BTjkDub5.js} +7 -7
- package/dist/{mapTransferInstrumentToPayoutAccount-CBruJcGL.js → mapTransferInstrumentToPayoutAccount-SwgAUEzy.js} +2 -2
- package/dist/{nl-NL-KsfqCp2v.js → nl-NL-4Mv4rnYy.js} +10 -1
- package/dist/{nl-NL-B0fvINJj.js → nl-NL-B2Uku0lw.js} +2 -2
- package/dist/nl-NL-BVRcJEzp.js +13 -0
- package/dist/nl-NL-D7k3hkBl.js +13 -0
- package/dist/{nl-NL-NlkjOSYi.js → nl-NL-Lo8OF_nj.js} +3 -1
- package/dist/{no-NO-Crlsj6HG.js → no-NO-6chPsZZE.js} +3 -1
- package/dist/{no-NO-BdG6WnpB.js → no-NO-ByCZ3mhz.js} +10 -1
- package/dist/no-NO-DOOgOJr1.js +13 -0
- package/dist/{no-NO-Jw7Gae-a.js → no-NO-DjOcJWnC.js} +2 -2
- package/dist/no-NO-DlnsfTwn.js +13 -0
- package/dist/{patternValidators-hk7OKIOW.js → patternValidators-BmE8PX2j.js} +2 -2
- package/dist/pl-PL-B-V8iF6C.js +13 -0
- package/dist/pl-PL-Bvnak7w3.js +13 -0
- package/dist/{pl-PL-DYxD6VJ_.js → pl-PL-CbJSQVfe.js} +3 -1
- package/dist/{pl-PL-DW9eaUml.js → pl-PL-DCi5Lf4k.js} +10 -1
- package/dist/{process-field-configurations-CSUAI1_s.js → process-field-configurations-BpvA07uV.js} +3 -3
- package/dist/{pt-BR-BaTE6BB_.js → pt-BR-BKdT0Bpl.js} +2 -2
- package/dist/pt-BR-BZkPZ0kK.js +13 -0
- package/dist/pt-BR-Bq41lr7C.js +13 -0
- package/dist/{pt-BR-BfxgHKY4.js → pt-BR-DRBFUW-X.js} +3 -1
- package/dist/{pt-BR-BdfWE-a1.js → pt-BR-DRz5cG4o.js} +10 -1
- package/dist/{pt-PT-TKg5FLat.js → pt-PT-BMOUpVLE.js} +3 -1
- package/dist/{pt-PT-c0ap84_F.js → pt-PT-C2li07N1.js} +2 -2
- package/dist/{pt-PT-ej54BPbB.js → pt-PT-ChRbnn0k.js} +10 -1
- package/dist/pt-PT-D-EPzKV-.js +13 -0
- package/dist/pt-PT-DkfqmPrD.js +13 -0
- package/dist/{resolveEnvironment-Dz4WVUeH.js → resolveEnvironment-CB0aXyOq.js} +3 -3
- package/dist/ro-RO-BEVRugNx.js +13 -0
- package/dist/{ro-RO-3rOfS17N.js → ro-RO-BJoL_nyS.js} +3 -1
- package/dist/{ro-RO-1ZFmLikG.js → ro-RO-Dgie5z3m.js} +10 -1
- package/dist/ro-RO-Dt2gs44k.js +13 -0
- package/dist/{ro-RO-BPOHV6Wp.js → ro-RO-iPjOeKwM.js} +2 -2
- package/dist/{roleMetadata-CCCowA5b.js → roleMetadata-CUwpxg9p.js} +3 -3
- package/dist/sk-SK-B6LcEArz.js +13 -0
- package/dist/sk-SK-Bh7WfMNd.js +13 -0
- package/dist/{sk-SK-CjrLvDMx.js → sk-SK-DxdxUonp.js} +3 -1
- package/dist/{sk-SK-Dm-pif_7.js → sk-SK-bMDoNP19.js} +10 -1
- package/dist/sl-SI-CxGdSydw.js +13 -0
- package/dist/{sl-SI-HO7231cu.js → sl-SI-DKSu25rO.js} +10 -1
- package/dist/sl-SI-DNbu8KiE.js +13 -0
- package/dist/{sl-SI-C-C-KJCX.js → sl-SI-UFngWs5n.js} +3 -1
- package/dist/style.css +80 -79
- package/dist/styles-CLV89_hH.js +80 -79
- package/dist/{sv-SE-D_Efxy3s.js → sv-SE-Blw4s8bC.js} +2 -2
- package/dist/sv-SE-CgB54Aa4.js +13 -0
- package/dist/{sv-SE-BcJ8p_Tx.js → sv-SE-Co7Nkd06.js} +10 -1
- package/dist/{sv-SE-BHfydid5.js → sv-SE-Cr0s35EH.js} +3 -1
- package/dist/sv-SE-DgMcRRS8.js +13 -0
- package/dist/{isNewEntity-7Vw_eQBr.js → trusted-fields-provider-BgfIoSNJ.js} +6 -3
- package/dist/types/api/invitedEntity/useInvitedEntityAssociationData.d.ts +7 -5
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/api/toggles/useToggles.d.ts +9 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +0 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +6 -6
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +153 -153
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +3 -3
- package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +2 -2
- package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +6 -6
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +2 -2
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/validate.d.ts +4 -4
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +2 -2
- package/dist/types/components/ui/atoms/Icon/Icon.d.ts +1 -1
- package/dist/types/components/ui/atoms/Svg/Svg.d.ts +1 -4
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +0 -4
- package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +1 -1
- package/dist/types/context/ExperimentContext/types.d.ts +4 -5
- package/dist/types/language/utils.d.ts +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-CYkhUYV6.js → types-Bo20WZNc.js} +2 -2
- package/dist/{types-BxMBuuEz.js → types-Clxic6DP.js} +2 -2
- package/dist/{types-D1PsvtzF.js → types-DP1DvIeR.js} +5 -6
- package/dist/{types-DU69aeMN.js → types-DS88e__Q.js} +2 -2
- package/dist/{Image-kVLn7Cb2.js → unincorporated-partnership-CJz9rbE4.js} +8 -7
- package/dist/{useAssociatedLegalEntity-BORPRBzY.js → useAssociatedLegalEntity-oPI1RCY_.js} +2 -2
- package/dist/{useBusinessDetailsData-SFopK4ma.js → useBusinessDetailsData-vd45u1iE.js} +68 -57
- package/dist/{useCreateLegalEntity-DC4AmtL1.js → useCreateLegalEntity-BhYUiCc8.js} +2 -2
- package/dist/{useForm-B64f0N0r.js → useForm-D1_yiIHz.js} +3 -3
- package/dist/{useFormContext-B08W9NV0.js → useFormContext-DnlTEqkz.js} +7 -7
- package/dist/{useGlobalData-CAfs9dkH.js → useGlobalData-9bYrNWxF.js} +2 -2
- package/dist/{useMultiForm-BwoKhXUz.js → useMultiForm-DiDABOlp.js} +4 -4
- package/dist/{useOnboardingStatus-DgaMwRGt.js → useOnboardingStatus-B2cPO1my.js} +1 -1
- package/dist/{useScenarios-DfdvyKrI.js → useScenarios-XKveo5Md.js} +2 -2
- package/dist/{useTermsOfServiceStatus-BlBedFIs.js → useTermsOfServiceStatus-Lg95JuP4.js} +1 -1
- package/dist/{useToastContext-D7Wu9TN_.js → useToastContext-CisUtg-6.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-CRs95EuP.js → useUnincorporatedPartnershipMembers-CIhC8Vm8.js} +5 -5
- package/dist/{useUpdateBusinessLines-B6YZCqOX.js → useUpdateBusinessLines-CKRikPUG.js} +4 -4
- package/dist/{useUpdateLegalEntity-B1R9qggb.js → useUpdateLegalEntity-DOKoyNaq.js} +3 -3
- package/dist/{utils-Drnia92l.js → utils-9BXmcrcz.js} +5 -19
- package/dist/{utils-BUyOscpp.js → utils-B9F675JL.js} +2 -2
- package/dist/{utils-CnulHkMn.js → utils-C0h9qEco.js} +2 -2
- package/dist/{utils-DTUxA3nO.js → utils-C3PfmXJ-.js} +2 -2
- package/dist/{utils-CPRZoX7V.js → utils-CrLnWtri.js} +6 -6
- package/dist/{validate-DlUk1wzH.js → validate-BX1lu4X-.js} +2 -2
- package/dist/{validate-DLxn3LIK.js → validate-rilJfP0Q.js} +3 -3
- package/dist/{validationError-CcsgWg6J.js → validationError-Ba78AmbC.js} +2 -2
- package/package.json +6 -6
- package/dist/BusinessFinancingPage-CJXuD19C.js +0 -43
- package/dist/CreateIndividualComponent-BXI_yAXJ.js +0 -65
- package/dist/LegalRepresentativeDetailsPage-C3QWHa7T.js +0 -55
- package/dist/ManageIndividualComponent-DvmShxf5.js +0 -46
- package/dist/RootIndividualDetailsPage-8nUlp7YZ.js +0 -62
- package/dist/TrustMemberIndividualPage-DG9KUe02.js +0 -64
- package/dist/UnincorporatedPartnershipIndividualPage-DKMj8Dwh.js +0 -63
- package/dist/accountHolderUtils-yQ8liitv.js +0 -66
- package/dist/bg-BG-BNRJzjXu.js +0 -13
- package/dist/bg-BG-DAqp35Dx.js +0 -13
- package/dist/company-types-value-D_mKv5PT.js +0 -23
- package/dist/cs-CZ-BMnoWiIi.js +0 -13
- package/dist/cs-CZ-Ke47w0bj.js +0 -13
- package/dist/da-DK-Cx4-hLO1.js +0 -13
- package/dist/da-DK-D17SWJin.js +0 -13
- package/dist/de-DE-CL8D8vKZ.js +0 -13
- package/dist/de-DE-DC90bn2y.js +0 -13
- package/dist/el-GR-B2xt_Hn1.js +0 -13
- package/dist/el-GR-Dvv3-Qib.js +0 -13
- package/dist/en-US-CfIkXJPX.js +0 -13
- package/dist/es-ES-CzG-lilL.js +0 -13
- package/dist/es-ES-Vn4AcK9-.js +0 -13
- package/dist/et-EE-B7OzU-54.js +0 -13
- package/dist/et-EE-BeZJ4Ub1.js +0 -13
- package/dist/fi-FI-CWIaV6Iz.js +0 -13
- package/dist/fi-FI-DooPgPb1.js +0 -13
- package/dist/filterProblemsByTaskForms-Cz7iQtms.js +0 -30
- package/dist/fr-FR-29mQrnro.js +0 -13
- package/dist/fr-FR-CCb4Oux7.js +0 -13
- package/dist/getTrustedFields-C5-mXl-l.js +0 -64
- package/dist/hr-HR-BAI0N9bo.js +0 -13
- package/dist/hr-HR-BFu1_Xrc.js +0 -13
- package/dist/hu-HU-BpNDP1I8.js +0 -13
- package/dist/hu-HU-nf030gFT.js +0 -13
- package/dist/it-IT-BRO0Hf5X.js +0 -13
- package/dist/it-IT-CToDWXlu.js +0 -13
- package/dist/ja-JP-B3Y0VVpN.js +0 -152
- package/dist/ja-JP-BkAEknQ-.js +0 -13
- package/dist/lt-LT-DpszrZ9m.js +0 -13
- package/dist/lt-LT-DxzEdyVV.js +0 -13
- package/dist/lv-LV-B3IqVQos.js +0 -13
- package/dist/lv-LV-D-j-4Dao.js +0 -13
- package/dist/nl-NL-C8CEGqAc.js +0 -13
- package/dist/nl-NL-CnvvqAEg.js +0 -13
- package/dist/no-NO-CIKbQbKT.js +0 -13
- package/dist/no-NO-DbVtqyON.js +0 -13
- package/dist/pl-PL-Bxtudsvi.js +0 -13
- package/dist/pl-PL-CTOkaDMG.js +0 -13
- package/dist/pt-BR-CL4JYBNe.js +0 -13
- package/dist/pt-BR-CLUsrQAl.js +0 -13
- package/dist/pt-PT-BLRgiqFj.js +0 -13
- package/dist/pt-PT-C-OZtnUM.js +0 -13
- package/dist/ro-RO-BeA_YyJ8.js +0 -13
- package/dist/ro-RO-Dq1NTg-A.js +0 -13
- package/dist/sk-SK-CMvUjDgW.js +0 -13
- package/dist/sk-SK-Og9MJXpR.js +0 -13
- package/dist/sl-SI-BslBqaxO.js +0 -13
- package/dist/sl-SI-CoI7iOco.js +0 -13
- package/dist/sv-SE-ChoPzG_G.js +0 -13
- package/dist/sv-SE-Dm_WHV9V.js +0 -13
- package/dist/unincorporated-partnership-D8XzcFAz.js +0 -17
- package/dist/useBusinessLines-ewWROXYV.js +0 -29
- package/dist/useCanSeeIntroduction-BbjNCK9Z.js +0 -48
- package/dist/useDataMissingRemediations-CjxCe3yc.js +0 -41
- package/dist/useDeleteTransferInstrument-HN2BLhyP.js +0 -32
- package/dist/useNavigate-BXyVMJUH.js +0 -265
- package/dist/usePciQuestionnaireList--rMXF8VL.js +0 -29
- package/dist/useSalesChannels-CGESLvW6.js +0 -65
- package/dist/useTaskStatus-CBWvTwlZ.js +0 -51
- package/dist/useTrustMembers-GEABHhkr.js +0 -163
|
@@ -2,7 +2,7 @@
|
|
|
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] = "ac0f54da-8f12-4984-99e6-bbfb10bed946", e._sentryDebugIdIdentifier = "sentry-dbid-ac0f54da-8f12-4984-99e6-bbfb10bed946");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -11,60 +11,61 @@ import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
|
11
11
|
import { Show } from "@preact/signals/utils";
|
|
12
12
|
import { useMutation, useQuery, skipToken, useQueryClient } from "@tanstack/preact-query";
|
|
13
13
|
import { useState, useRef, useCallback, useEffect, useMemo } from "preact/hooks";
|
|
14
|
-
import { u as useScenarios } from "./useScenarios-
|
|
15
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
16
|
-
import { b as useApiContext,
|
|
17
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
18
|
-
import { a as addressValidators, A as Address, u as useProviderStatus } from "./Address-
|
|
19
|
-
import { c as contactDetailsValidationRules, a as contactDetailFields, C as ContactDetails, u as useValidatePhoneNumberImperatively, g as getAsyncPhoneValidationRules } from "./ContactDetails-
|
|
20
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-
|
|
21
|
-
import { u as useToastContext } from "./useToastContext-
|
|
22
|
-
import { g as getPropsFromConfigurations, c as composePerScenarioFormConfigurations } from "./process-field-configurations-
|
|
23
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
24
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
25
|
-
import { u as uppercase, D as DocumentGuidance, m as mapExistingFile, g as getPageName, a as getPage, b as useScenarioConfiguration } from "./mapExistingFile-
|
|
14
|
+
import { u as useScenarios } from "./useScenarios-XKveo5Md.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-BhYUiCc8.js";
|
|
16
|
+
import { b as useApiContext, h as httpPost, aa as CountryCodes, aC as matchesRegex, aD as NO_ALPHABET_REGEX, aE as EMOJI_REGEX, aF as hasRepeatedCharacters, aG as isInvalidName, aH as INDIVIDUAL_VALID_CHAR_REGEX, ax as isEmpty, y as TaskTypes, L as LegalEntityTypes, aI as getAgeToday, aJ as euCountries, aK as hasText, aL as standardKatakanaValidator, aM as standardKanjiValidator, j as httpGet, u as useTranslation, W as Button, G as Alert, V as Loader, as as DecisionMakerTypes, at as Scenarios, O as Typography, ac as translateTranslatable, ap as useDataset, aq as datasetIdentifier, aN as useAllowedCountries, k as useSettingsContext, J as useExperimentsContext, aB as Header, aO as getAgeRangeForLegalRepresentative, aP as isLegalRepresentativeNeeded, aQ as Trans, aR as valuesOf, aS as keysOf, ah as objectsDeepEqual, aT as listToRecord, aU as pick, m as createLogger, C as IconButton, z as useAnalyticsContext, am as datasetUtilities, aV as useCapabilities, aW as individualApiKeyMapping, aX as drop, v as useAccountHolder, a9 as getLegalEntityCountry, aY as getAllowedDecisionMakerRoles, aZ as filterOutUnwantedAssociationsIfRootLE, an as cloneObject, a_ as individualDocumentMapping, a$ as individualObscuredFields, ad as getOwnEntityAssociations, b0 as hasNomineesChanged, b1 as attachNomineeToRole, b2 as doArraysMatch } from "./StoreProvider-x59VMyW0.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-DOKoyNaq.js";
|
|
18
|
+
import { a as addressValidators, A as Address, u as useProviderStatus } from "./Address-xF2Li1Za.js";
|
|
19
|
+
import { c as contactDetailsValidationRules, a as contactDetailFields, C as ContactDetails, u as useValidatePhoneNumberImperatively, g as getAsyncPhoneValidationRules } from "./ContactDetails-0AACDs1M.js";
|
|
20
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-DnlTEqkz.js";
|
|
21
|
+
import { u as useToastContext } from "./useToastContext-CisUtg-6.js";
|
|
22
|
+
import { g as getPropsFromConfigurations, c as composePerScenarioFormConfigurations } from "./process-field-configurations-BpvA07uV.js";
|
|
23
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-DQpXPqk2.js";
|
|
24
|
+
import { u as useMultiForm } from "./useMultiForm-DiDABOlp.js";
|
|
25
|
+
import { u as uppercase, D as DocumentGuidance, m as mapExistingFile, g as getPageName, a as getPage, b as useScenarioConfiguration } from "./mapExistingFile-CDtoMMNP.js";
|
|
26
26
|
import { J as JP_ADDRESS_REQUIRED_FIELDS } from "./jpAddressSchema-DEOyz9Yo.js";
|
|
27
|
-
import { t as toFullWidth, m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-
|
|
28
|
-
import { b as addressFields, a as getAddressSchemaLabelsByCountry, C as COUNTRIES_WITH_STATES_DATASET, m as mapAddressLabels } from "./utils-
|
|
29
|
-
import { G as GuidanceQuestionValues, a as GuidanceQuestion, g as getOnfidoIdentityTypeToApiIdentityTypeMap, i as individualFormDefaultData, m as mapLegalEntityToIndividualSchema } from "./mapLegalEntityToIndividualSchema-
|
|
30
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
31
|
-
import { g as getIdDocument, a as getDocument, c as createDocumentRequest, d as documentApiUtils, m as mergeAttachments, b as getFileExtention } from "./validate-
|
|
32
|
-
import { t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, i as individualIdNumberOptions, b as additionallIdNumberOptions, T as TaxInformationField, M as MemoizedDocumentUpload, c as taxIdNumberOptions, g as getFieldsWithExistingData } from "./TaxInformationField-
|
|
33
|
-
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-
|
|
34
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
35
|
-
import { I as IFrameWidget, o as omitObscuredFieldsIfUnchanged } from "./iframeWidget-
|
|
36
|
-
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-
|
|
37
|
-
import { v as validatePatternOnBlur } from "./patternValidators-
|
|
27
|
+
import { t as toFullWidth, m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-BX_XB7Pv.js";
|
|
28
|
+
import { b as addressFields, a as getAddressSchemaLabelsByCountry, C as COUNTRIES_WITH_STATES_DATASET, m as mapAddressLabels } from "./utils-C3PfmXJ-.js";
|
|
29
|
+
import { G as GuidanceQuestionValues, a as GuidanceQuestion, g as getOnfidoIdentityTypeToApiIdentityTypeMap, i as individualFormDefaultData, m as mapLegalEntityToIndividualSchema } from "./mapLegalEntityToIndividualSchema-BTjkDub5.js";
|
|
30
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-Ba78AmbC.js";
|
|
31
|
+
import { g as getIdDocument, a as getDocument, c as createDocumentRequest, d as documentApiUtils, m as mergeAttachments, b as getFileExtention } from "./validate-rilJfP0Q.js";
|
|
32
|
+
import { t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, i as individualIdNumberOptions, b as additionallIdNumberOptions, T as TaxInformationField, M as MemoizedDocumentUpload, c as taxIdNumberOptions, g as getFieldsWithExistingData } from "./TaxInformationField-C9Jy5cRJ.js";
|
|
33
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-r2_qbuUh.js";
|
|
34
|
+
import { l as localizeDateString } from "./localizeDateString-Cn4lULAz.js";
|
|
35
|
+
import { I as IFrameWidget, o as omitObscuredFieldsIfUnchanged } from "./iframeWidget-Huaxn_9e.js";
|
|
36
|
+
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-B5-H7MTF.js";
|
|
37
|
+
import { v as validatePatternOnBlur } from "./patternValidators-BmE8PX2j.js";
|
|
38
38
|
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
39
|
-
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-
|
|
39
|
+
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-B9F675JL.js";
|
|
40
40
|
import { lazy, Suspense, memo } from "preact/compat";
|
|
41
|
-
import { I as Image
|
|
42
|
-
import { M as Modal } from "./Modal-
|
|
43
|
-
import { L as LandingLayout } from "./LandingLayout-
|
|
44
|
-
import { C as Confirm } from "./Confirm-
|
|
45
|
-
import { a as getIndividualLegalEntityName } from "./getName-
|
|
46
|
-
import { b as idNowModalChildEntityId, a as idNowPostSubmit, s as showIdNowModal, c as shouldShowIdNowModal } from "./bafinUtils-
|
|
41
|
+
import { I as Image } from "./unincorporated-partnership-CJz9rbE4.js";
|
|
42
|
+
import { M as Modal } from "./Modal-l3FZFwDQ.js";
|
|
43
|
+
import { L as LandingLayout } from "./LandingLayout-B9DjLl1D.js";
|
|
44
|
+
import { C as Confirm } from "./Confirm-BX6xGJJV.js";
|
|
45
|
+
import { a as getIndividualLegalEntityName } from "./getName-lGICWUPQ.js";
|
|
46
|
+
import { b as idNowModalChildEntityId, a as idNowPostSubmit, s as showIdNowModal, c as shouldShowIdNowModal } from "./bafinUtils-DSDSKhKB.js";
|
|
47
47
|
import { signal } from "@preact/signals";
|
|
48
|
-
import { E as ErrorPanel, u as useFormRouterContext } from "./ErrorPanel-
|
|
48
|
+
import { E as ErrorPanel, u as useFormRouterContext } from "./ErrorPanel-DDVrYUpJ.js";
|
|
49
49
|
import { g as getFieldProps, a as getFormProps } from "./getProps-Cc3J2-z9.js";
|
|
50
|
-
import { F as Field } from "./Field-
|
|
51
|
-
import { L as Link } from "./Link-
|
|
50
|
+
import { F as Field } from "./Field-B9sKUtUg.js";
|
|
51
|
+
import { L as Link } from "./Link-BieB0t1Y.js";
|
|
52
52
|
import { S as SettingNames } from "./types-CQ2p58-6.js";
|
|
53
|
-
import { I as InputDate, f as formatDateObj } from "./InputDate-
|
|
54
|
-
import { I as InputText } from "./InputText-
|
|
55
|
-
import { C as CountryField } from "./CountryField-
|
|
56
|
-
import { R as RadioGroup, a as RadioWithLabel } from "./RadioGroup-
|
|
57
|
-
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-
|
|
58
|
-
import { C as Checkbox } from "./Checkbox-
|
|
59
|
-
import { S as Select } from "./Select-
|
|
60
|
-
import { C as ContextGuidance } from "./ContextGuidance-
|
|
61
|
-
import { C as COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES, i as individualRules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE } from "./Individual.rules-
|
|
62
|
-
import { i as isTruthyValidator } from "./commonValidators-
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
53
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-BaGnhAVf.js";
|
|
54
|
+
import { I as InputText } from "./InputText-D0_rMV9x.js";
|
|
55
|
+
import { C as CountryField } from "./CountryField-Dp6hXPqK.js";
|
|
56
|
+
import { R as RadioGroup, a as RadioWithLabel } from "./RadioGroup-DxGcH0In.js";
|
|
57
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-A6oBRG3L.js";
|
|
58
|
+
import { C as Checkbox } from "./Checkbox-BU__y4sz.js";
|
|
59
|
+
import { S as Select } from "./Select-BJOovb_D.js";
|
|
60
|
+
import { C as ContextGuidance } from "./ContextGuidance-B17pNn6u.js";
|
|
61
|
+
import { C as COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES, i as individualRules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE } from "./Individual.rules-BD1j4LiM.js";
|
|
62
|
+
import { i as isTruthyValidator } from "./commonValidators-B6d9s0-o.js";
|
|
63
|
+
import { T as TrustedFieldsProviders } from "./trusted-fields-provider-BgfIoSNJ.js";
|
|
64
|
+
import { n as nameFields, N as Name } from "./Name-Cy0qTOPR.js";
|
|
65
|
+
import { D as Dropzone } from "./Dropzone-CLoB_3-q.js";
|
|
66
|
+
import { i as isEmpty$1 } from "./isEmpty-C2vBRvpQ.js";
|
|
66
67
|
import { Onfido } from "onfido-sdk-ui";
|
|
67
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
68
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-B73HgNuK.js";
|
|
68
69
|
import { S as Spacer } from "./Spacer-BK3jDget.js";
|
|
69
70
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
70
71
|
import { m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
@@ -788,7 +789,7 @@ const additionalPersonalDetailsValidators = ({
|
|
|
788
789
|
idNumber,
|
|
789
790
|
existingIdNumber,
|
|
790
791
|
formVerificationErrors,
|
|
791
|
-
|
|
792
|
+
t,
|
|
792
793
|
taxIdNumberType
|
|
793
794
|
}) => ({
|
|
794
795
|
taxInformation: resolveFieldMetadata(
|
|
@@ -830,7 +831,7 @@ const additionalPersonalDetailsValidators = ({
|
|
|
830
831
|
...addressValidators({
|
|
831
832
|
isExperimentEnabled,
|
|
832
833
|
country,
|
|
833
|
-
|
|
834
|
+
t
|
|
834
835
|
})
|
|
835
836
|
});
|
|
836
837
|
const localizedNameValidationRulesV4 = (isExperimentEnabled = () => false, country) => {
|
|
@@ -1073,7 +1074,7 @@ const IdNowVerificationModal = ({ handleFinish }) => {
|
|
|
1073
1074
|
size: page === 2 ? "large" : "medium",
|
|
1074
1075
|
showCloseButton: !isLoading && !isStatusLoading,
|
|
1075
1076
|
onClose: handleDismiss,
|
|
1076
|
-
ariaLabel: t(($) => $["identityVerification"]
|
|
1077
|
+
ariaLabel: t(($) => $["identityVerification"]),
|
|
1077
1078
|
children: [
|
|
1078
1079
|
page === 1 && /* @__PURE__ */ jsx("div", { className: styles$4.idnowHeader, children: /* @__PURE__ */ jsx(
|
|
1079
1080
|
LandingLayout,
|
|
@@ -1085,7 +1086,7 @@ const IdNowVerificationModal = ({ handleFinish }) => {
|
|
|
1085
1086
|
lazyLoadedImage: passportFrontGreenImage$1
|
|
1086
1087
|
}
|
|
1087
1088
|
),
|
|
1088
|
-
title: t(($) => $["identityVerification"]
|
|
1089
|
+
title: t(($) => $["identityVerification"]),
|
|
1089
1090
|
description: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1090
1091
|
t(($) => $["idNowDescription"], { ns: "individual" }),
|
|
1091
1092
|
/* @__PURE__ */ jsx("br", {}),
|
|
@@ -1337,7 +1338,8 @@ const DriversLicense = ({
|
|
|
1337
1338
|
guidanceText,
|
|
1338
1339
|
shouldValidate
|
|
1339
1340
|
}) => {
|
|
1340
|
-
const {
|
|
1341
|
+
const { t: commonT } = useTranslation("common");
|
|
1342
|
+
const { t: individualT } = useTranslation("individual");
|
|
1341
1343
|
const { dataset: auStates } = useDataset(datasetIdentifier.state("AU"));
|
|
1342
1344
|
const isCountryAustralia = country === CountryCodes.Australia;
|
|
1343
1345
|
const isCountryNewZealand = country === CountryCodes.NewZealand;
|
|
@@ -1357,7 +1359,7 @@ const DriversLicense = ({
|
|
|
1357
1359
|
onChange: onIssuerStateChange,
|
|
1358
1360
|
isInvalid: false,
|
|
1359
1361
|
items: auStates,
|
|
1360
|
-
placeholder:
|
|
1362
|
+
placeholder: commonT(($) => $["selectState"]),
|
|
1361
1363
|
selected: driversLicense.issuerState
|
|
1362
1364
|
}
|
|
1363
1365
|
)
|
|
@@ -1408,14 +1410,14 @@ const DriversLicense = ({
|
|
|
1408
1410
|
(isCountryAustralia || isCountryNewZealand) && /* @__PURE__ */ jsx(
|
|
1409
1411
|
ContextGuidance,
|
|
1410
1412
|
{
|
|
1411
|
-
title:
|
|
1413
|
+
title: individualT(($) => $["whereCanIFindTheseNumbersOnMyDriversLicense"]),
|
|
1412
1414
|
content: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1413
|
-
isCountryAustralia ? `${
|
|
1415
|
+
isCountryAustralia ? `${individualT(($) => $["whereToFindNumbersOnDriversLicense"])} ` : `${individualT(($) => $["whereToFindNumbersOnDriversLicense__NZ"])} `,
|
|
1414
1416
|
/* @__PURE__ */ jsx(
|
|
1415
1417
|
Link,
|
|
1416
1418
|
{
|
|
1417
1419
|
href: isCountryAustralia ? "https://www.usi.gov.au/about/forms-id/drivers-licence" : "https://www.nzta.govt.nz/driver-licences/getting-a-licence/your-driver-licence-explained/",
|
|
1418
|
-
children:
|
|
1420
|
+
children: individualT(($) => $["iStillCantFindIt"])
|
|
1419
1421
|
}
|
|
1420
1422
|
)
|
|
1421
1423
|
] }),
|
|
@@ -1433,7 +1435,7 @@ const TypeOfIdentity = ({
|
|
|
1433
1435
|
errorMessage,
|
|
1434
1436
|
isValid
|
|
1435
1437
|
}) => {
|
|
1436
|
-
const {
|
|
1438
|
+
const { t } = useTranslation(["common", "individual"]);
|
|
1437
1439
|
return /* @__PURE__ */ jsx(
|
|
1438
1440
|
Field,
|
|
1439
1441
|
{
|
|
@@ -1441,7 +1443,7 @@ const TypeOfIdentity = ({
|
|
|
1441
1443
|
label,
|
|
1442
1444
|
errorMessage,
|
|
1443
1445
|
isValid,
|
|
1444
|
-
helper:
|
|
1446
|
+
helper: t(($) => $["typeOfIdentitySubtitle"], { ns: "individual" }),
|
|
1445
1447
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1446
1448
|
Select,
|
|
1447
1449
|
{
|
|
@@ -1450,9 +1452,9 @@ const TypeOfIdentity = ({
|
|
|
1450
1452
|
isInvalid: false,
|
|
1451
1453
|
items: availableIdentityTypesOptions.map(({ id, name }) => ({
|
|
1452
1454
|
id,
|
|
1453
|
-
name:
|
|
1455
|
+
name: t(($) => $[name])
|
|
1454
1456
|
})),
|
|
1455
|
-
placeholder:
|
|
1457
|
+
placeholder: t(($) => $["selectOne"]),
|
|
1456
1458
|
selected: selectedIdentityType,
|
|
1457
1459
|
onChange: (event) => setSelectedIdentityType(event.target.value)
|
|
1458
1460
|
}
|
|
@@ -1691,7 +1693,7 @@ const additionalIdentityInfoFields = [
|
|
|
1691
1693
|
"expiryDate"
|
|
1692
1694
|
];
|
|
1693
1695
|
const LazyJpAddress = lazy(
|
|
1694
|
-
async () => (await import("./JpAddress-
|
|
1696
|
+
async () => (await import("./JpAddress-CzQ4H7tm.js")).JpAddress
|
|
1695
1697
|
);
|
|
1696
1698
|
const additionalPersonalDetailsFields = [
|
|
1697
1699
|
"birthDate",
|
|
@@ -2102,8 +2104,8 @@ const basicDetailsFields = [
|
|
|
2102
2104
|
"jaKanaLastName"
|
|
2103
2105
|
];
|
|
2104
2106
|
function BasicDetails(props) {
|
|
2105
|
-
const { t } = useTranslation("common");
|
|
2106
|
-
const {
|
|
2107
|
+
const { t: commonT } = useTranslation("common");
|
|
2108
|
+
const { t: individualT } = useTranslation("individual");
|
|
2107
2109
|
const {
|
|
2108
2110
|
form: { triggerValidation }
|
|
2109
2111
|
} = useFormContext();
|
|
@@ -2122,7 +2124,7 @@ function BasicDetails(props) {
|
|
|
2122
2124
|
handleFieldChange
|
|
2123
2125
|
} = props;
|
|
2124
2126
|
const isLegalRepresentativeDetailsTask = taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
|
|
2125
|
-
const formUtils = createFormUtils(props,
|
|
2127
|
+
const formUtils = createFormUtils(props, commonT);
|
|
2126
2128
|
const localizedNameProps = getFieldProps(props, [
|
|
2127
2129
|
"jaHaniFirstName",
|
|
2128
2130
|
"jaHaniLastName",
|
|
@@ -2149,26 +2151,23 @@ function BasicDetails(props) {
|
|
|
2149
2151
|
Alert,
|
|
2150
2152
|
{
|
|
2151
2153
|
variant: "info",
|
|
2152
|
-
title:
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
firstName: parentLegalEntity?.individual?.name.firstName || "",
|
|
2156
|
-
lastName: parentLegalEntity?.individual?.name.lastName || ""
|
|
2157
|
-
}
|
|
2154
|
+
title: individualT(($) => $["legalRepresentativeFor"], {
|
|
2155
|
+
firstName: parentLegalEntity?.individual?.name.firstName || "",
|
|
2156
|
+
lastName: parentLegalEntity?.individual?.name.lastName || ""
|
|
2158
2157
|
})
|
|
2159
2158
|
}
|
|
2160
2159
|
),
|
|
2161
2160
|
/* @__PURE__ */ jsx(
|
|
2162
2161
|
ContextGuidance,
|
|
2163
2162
|
{
|
|
2164
|
-
title:
|
|
2165
|
-
content:
|
|
2163
|
+
title: commonT(($) => $["whyDoINeedToFillInThisInformation"]),
|
|
2164
|
+
content: individualT(($) => $["reasonForFillingIndividualPersonalDetails"]),
|
|
2166
2165
|
titleId: "whyDoINeedToFillInThisInformation",
|
|
2167
2166
|
contentId: "reasonForFillingIndividualPersonalDetails"
|
|
2168
2167
|
}
|
|
2169
2168
|
),
|
|
2170
|
-
isDecisionMakerTask(taskType) && trustedFieldsProvider === TrustedFieldsProviders.SINGPASS && readOnlyFields && /* @__PURE__ */ jsx(Typography, { color: "secondary", variant: "caption", children:
|
|
2171
|
-
"weSelectedSomeRolesBasedOnMyinfoBusinessDataAboutYourCompanysAppointmentHoldersAndShareholders"
|
|
2169
|
+
isDecisionMakerTask(taskType) && trustedFieldsProvider === TrustedFieldsProviders.SINGPASS && readOnlyFields && /* @__PURE__ */ jsx(Typography, { color: "secondary", variant: "caption", children: individualT(
|
|
2170
|
+
($) => $["weSelectedSomeRolesBasedOnMyinfoBusinessDataAboutYourCompanysAppointmentHoldersAndShareholders"]
|
|
2172
2171
|
) }),
|
|
2173
2172
|
/* @__PURE__ */ jsx(
|
|
2174
2173
|
LocalizedNameFields,
|
|
@@ -2440,7 +2439,7 @@ const ConflictRow = ({
|
|
|
2440
2439
|
onSelect,
|
|
2441
2440
|
showAs
|
|
2442
2441
|
}) => {
|
|
2443
|
-
const {
|
|
2442
|
+
const { t } = useTranslation("common");
|
|
2444
2443
|
const hasOnlyProvided = !isEmpty$1(provided) && isEmpty$1(detected);
|
|
2445
2444
|
const hasOnlyDetected = isEmpty$1(provided) && !isEmpty$1(detected);
|
|
2446
2445
|
useEffect(() => {
|
|
@@ -2453,7 +2452,7 @@ const ConflictRow = ({
|
|
|
2453
2452
|
}, [hasOnlyProvided, hasOnlyDetected, onSelect, selected]);
|
|
2454
2453
|
if (hasOnlyProvided || hasOnlyDetected) return;
|
|
2455
2454
|
return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$3.conflictRowList, children: [
|
|
2456
|
-
/* @__PURE__ */ jsx("dt", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children:
|
|
2455
|
+
/* @__PURE__ */ jsx("dt", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: t(($) => $[label]) }) }),
|
|
2457
2456
|
/* @__PURE__ */ jsxs("dd", { children: [
|
|
2458
2457
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2459
2458
|
/* @__PURE__ */ jsx(
|
|
@@ -2462,7 +2461,7 @@ const ConflictRow = ({
|
|
|
2462
2461
|
variant: "caption",
|
|
2463
2462
|
color: "tertiary",
|
|
2464
2463
|
className: styles$3.conflictRowListOptionLabel,
|
|
2465
|
-
children:
|
|
2464
|
+
children: t(($) => $["youEntered"])
|
|
2466
2465
|
}
|
|
2467
2466
|
),
|
|
2468
2467
|
/* @__PURE__ */ jsx(
|
|
@@ -2482,7 +2481,7 @@ const ConflictRow = ({
|
|
|
2482
2481
|
variant: "caption",
|
|
2483
2482
|
color: "tertiary",
|
|
2484
2483
|
className: styles$3.conflictRowListOptionLabel,
|
|
2485
|
-
children:
|
|
2484
|
+
children: t(($) => $["weDetected"])
|
|
2486
2485
|
}
|
|
2487
2486
|
),
|
|
2488
2487
|
/* @__PURE__ */ jsx(
|
|
@@ -2497,7 +2496,7 @@ const ConflictRow = ({
|
|
|
2497
2496
|
] })
|
|
2498
2497
|
] })
|
|
2499
2498
|
] }) : /* @__PURE__ */ jsxs("tr", { className: styles$3.conflictRowTable, children: [
|
|
2500
|
-
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children:
|
|
2499
|
+
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: t(($) => $[label]) }) }),
|
|
2501
2500
|
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
|
|
2502
2501
|
RadioWithLabel,
|
|
2503
2502
|
{
|
|
@@ -2538,7 +2537,7 @@ const DataConflictsModal = ({
|
|
|
2538
2537
|
onContinue,
|
|
2539
2538
|
onCancel
|
|
2540
2539
|
}) => {
|
|
2541
|
-
const {
|
|
2540
|
+
const { t: individualT } = useTranslation("individual");
|
|
2542
2541
|
const [showCancelModal, setShowCancelModal] = useState(false);
|
|
2543
2542
|
const [showError, setShowError] = useState(false);
|
|
2544
2543
|
const conflictItems = useMemo(
|
|
@@ -2562,13 +2561,19 @@ const DataConflictsModal = ({
|
|
|
2562
2561
|
[]
|
|
2563
2562
|
// No dependencies, as setShowError and setResolutions are stable.
|
|
2564
2563
|
);
|
|
2565
|
-
return /* @__PURE__ */ jsxs(Modal, { ariaLabel:
|
|
2564
|
+
return /* @__PURE__ */ jsxs(Modal, { ariaLabel: individualT(($) => $[title]), onClose: () => setShowCancelModal(true), inset: true, children: [
|
|
2566
2565
|
/* @__PURE__ */ jsxs("div", { className: styles$2.dataConflictsWrapper, children: [
|
|
2567
2566
|
/* @__PURE__ */ jsxs("div", { className: styles$2.dataConflictsHeader, children: [
|
|
2568
|
-
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h1", children:
|
|
2569
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body", children:
|
|
2567
|
+
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h1", children: individualT(($) => $[title]) }),
|
|
2568
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", children: individualT(($) => $[explanation]) })
|
|
2570
2569
|
] }),
|
|
2571
|
-
showError ? /* @__PURE__ */ jsx(
|
|
2570
|
+
showError ? /* @__PURE__ */ jsx(
|
|
2571
|
+
Alert,
|
|
2572
|
+
{
|
|
2573
|
+
variant: "error",
|
|
2574
|
+
title: individualT(($) => $["chooseTheCorrectDetailsBeforeProceeding"])
|
|
2575
|
+
}
|
|
2576
|
+
) : void 0,
|
|
2572
2577
|
/* @__PURE__ */ jsx("dl", { className: styles$2.dataConflictsList, children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(
|
|
2573
2578
|
ConflictRow,
|
|
2574
2579
|
{
|
|
@@ -2585,8 +2590,8 @@ const DataConflictsModal = ({
|
|
|
2585
2590
|
/* @__PURE__ */ jsxs("table", { className: styles$2.dataConflictsTable, children: [
|
|
2586
2591
|
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
2587
2592
|
/* @__PURE__ */ jsx("th", {}),
|
|
2588
|
-
/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "tertiary", children:
|
|
2589
|
-
/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "tertiary", children:
|
|
2593
|
+
/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "tertiary", children: individualT(($) => $["youEntered"]) }) }),
|
|
2594
|
+
/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "tertiary", children: individualT(($) => $["weDetected"]) }) })
|
|
2590
2595
|
] }) }),
|
|
2591
2596
|
/* @__PURE__ */ jsx("tbody", { children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(
|
|
2592
2597
|
ConflictRow,
|
|
@@ -2622,16 +2627,16 @@ const DataConflictsModal = ({
|
|
|
2622
2627
|
};
|
|
2623
2628
|
onContinue(finalData);
|
|
2624
2629
|
},
|
|
2625
|
-
children:
|
|
2630
|
+
children: individualT(($) => $["confirmSelection"])
|
|
2626
2631
|
}
|
|
2627
2632
|
)
|
|
2628
2633
|
] }),
|
|
2629
2634
|
showCancelModal && /* @__PURE__ */ jsx(
|
|
2630
2635
|
Confirm,
|
|
2631
2636
|
{
|
|
2632
|
-
title:
|
|
2633
|
-
confirmText:
|
|
2634
|
-
description:
|
|
2637
|
+
title: individualT(($) => $["leaveInstantVerification"]),
|
|
2638
|
+
confirmText: individualT(($) => $["leaveVerification"]),
|
|
2639
|
+
description: individualT(($) => $["anyInformationFromTheUploadedDocumentWillBeLost"]),
|
|
2635
2640
|
onConfirm: onCancel,
|
|
2636
2641
|
onCancel: () => setShowCancelModal(false),
|
|
2637
2642
|
critical: false
|
|
@@ -2803,26 +2808,27 @@ const useIdVerificationToken = ({ firstName, lastName, residencyCountry }, legal
|
|
|
2803
2808
|
});
|
|
2804
2809
|
};
|
|
2805
2810
|
const containerId = "adyen-kyc-id-verification";
|
|
2806
|
-
const getOnfidoLocaleConfig = (
|
|
2807
|
-
const language =
|
|
2811
|
+
const getOnfidoLocaleConfig = (locale, t) => {
|
|
2812
|
+
const language = locale.substring(0, 2);
|
|
2808
2813
|
return language === "en" ? {
|
|
2809
2814
|
locale: language,
|
|
2810
2815
|
phrases: {
|
|
2811
|
-
"country_select.button_primary":
|
|
2812
|
-
"doc_submit.title_id_back":
|
|
2813
|
-
"doc_submit.title_id_front":
|
|
2814
|
-
"doc_submit.title_license_back":
|
|
2815
|
-
"doc_submit.title_license_front":
|
|
2816
|
-
"doc_submit.title_passport":
|
|
2817
|
-
"doc_submit.title_permit_back":
|
|
2818
|
-
"doc_submit.title_permit_front":
|
|
2816
|
+
"country_select.button_primary": t(($) => $["continue"]),
|
|
2817
|
+
"doc_submit.title_id_back": t(($) => $["identityCardBack"]),
|
|
2818
|
+
"doc_submit.title_id_front": t(($) => $["identityCardFront"]),
|
|
2819
|
+
"doc_submit.title_license_back": t(($) => $["drivinglicenseBack"]),
|
|
2820
|
+
"doc_submit.title_license_front": t(($) => $["drivinglicenseFront"]),
|
|
2821
|
+
"doc_submit.title_passport": t(($) => $["passportPhotoPage"]),
|
|
2822
|
+
"doc_submit.title_permit_back": t(($) => $["residencePermitBack"]),
|
|
2823
|
+
"doc_submit.title_permit_front": t(($) => $["residencePermitFront"])
|
|
2819
2824
|
}
|
|
2820
2825
|
} : language;
|
|
2821
2826
|
};
|
|
2822
2827
|
const initOnfido = async ({
|
|
2823
2828
|
containerEl,
|
|
2824
2829
|
token,
|
|
2825
|
-
|
|
2830
|
+
t,
|
|
2831
|
+
locale,
|
|
2826
2832
|
onIdVerificationComplete,
|
|
2827
2833
|
onIdVerificationError,
|
|
2828
2834
|
showMotionCapture
|
|
@@ -2848,7 +2854,7 @@ const initOnfido = async ({
|
|
|
2848
2854
|
onComplete: onIdVerificationComplete,
|
|
2849
2855
|
onError: onIdVerificationError,
|
|
2850
2856
|
steps,
|
|
2851
|
-
language: getOnfidoLocaleConfig(
|
|
2857
|
+
language: getOnfidoLocaleConfig(locale, t)
|
|
2852
2858
|
});
|
|
2853
2859
|
};
|
|
2854
2860
|
const logger$3 = createLogger();
|
|
@@ -2859,7 +2865,7 @@ function IdVerification({
|
|
|
2859
2865
|
onIdVerificationComplete
|
|
2860
2866
|
}) {
|
|
2861
2867
|
const containerRef = useRef(null);
|
|
2862
|
-
const { i18n } =
|
|
2868
|
+
const { t, i18n } = useTranslation("individual");
|
|
2863
2869
|
const {
|
|
2864
2870
|
data: tokenResponse,
|
|
2865
2871
|
isLoading,
|
|
@@ -2875,10 +2881,10 @@ function IdVerification({
|
|
|
2875
2881
|
onfidoSdk.current = await initOnfido({
|
|
2876
2882
|
containerEl: containerRef.current,
|
|
2877
2883
|
token: sdkToken,
|
|
2878
|
-
|
|
2884
|
+
t,
|
|
2885
|
+
locale: i18n.language,
|
|
2879
2886
|
onIdVerificationError,
|
|
2880
2887
|
onIdVerificationComplete,
|
|
2881
|
-
language: getOnfidoLocaleConfig(i18n),
|
|
2882
2888
|
showMotionCapture: showIndividualMotionCapture.value
|
|
2883
2889
|
});
|
|
2884
2890
|
})().catch(logger$3.error);
|
|
@@ -2901,8 +2907,8 @@ const OnfidoVerificationModal = ({
|
|
|
2901
2907
|
onError,
|
|
2902
2908
|
onComplete
|
|
2903
2909
|
}) => {
|
|
2904
|
-
const {
|
|
2905
|
-
return /* @__PURE__ */ jsx(Modal, { size: "medium", onClose: closeModal, ariaLabel:
|
|
2910
|
+
const { t } = useTranslation("individual");
|
|
2911
|
+
return /* @__PURE__ */ jsx(Modal, { size: "medium", onClose: closeModal, ariaLabel: t(($) => $["identityVerification"]), children: minimumApplicantDetails && /* @__PURE__ */ jsx(
|
|
2906
2912
|
IdVerification,
|
|
2907
2913
|
{
|
|
2908
2914
|
minimumApplicantDetails,
|
|
@@ -2917,16 +2923,14 @@ const styles = {
|
|
|
2917
2923
|
uploadedDocument
|
|
2918
2924
|
};
|
|
2919
2925
|
const UploadedDocument = ({ document: document2, onDelete, onUpdate }) => {
|
|
2920
|
-
const { i18n } =
|
|
2926
|
+
const { t, i18n } = useTranslation("common");
|
|
2921
2927
|
return /* @__PURE__ */ jsxs("article", { className: styles.uploadedDocument, children: [
|
|
2922
2928
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2923
|
-
/* @__PURE__ */ jsx(Typography, { el: "h4", variant: "title", children:
|
|
2924
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children:
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
}) ?? ""
|
|
2929
|
-
}
|
|
2929
|
+
/* @__PURE__ */ jsx(Typography, { el: "h4", variant: "title", children: t(($) => $[document2.idDocumentType]) }),
|
|
2930
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["uploadedOn"], {
|
|
2931
|
+
date: localizeDateString(document2.modificationDate, i18n.language, {
|
|
2932
|
+
month: "short"
|
|
2933
|
+
}) ?? ""
|
|
2930
2934
|
}) })
|
|
2931
2935
|
] }),
|
|
2932
2936
|
/* @__PURE__ */ jsx(Spacer, {}),
|
|
@@ -2936,10 +2940,10 @@ const UploadedDocument = ({ document: document2, onDelete, onUpdate }) => {
|
|
|
2936
2940
|
onClick: onDelete,
|
|
2937
2941
|
icon: "bin",
|
|
2938
2942
|
variant: "secondary",
|
|
2939
|
-
ariaLabel:
|
|
2943
|
+
ariaLabel: t(($) => $["delete"])
|
|
2940
2944
|
}
|
|
2941
2945
|
),
|
|
2942
|
-
/* @__PURE__ */ jsx(Button, { onClick: onUpdate, variant: "secondary", children:
|
|
2946
|
+
/* @__PURE__ */ jsx(Button, { onClick: onUpdate, variant: "secondary", children: t(($) => $["update"]) })
|
|
2943
2947
|
] });
|
|
2944
2948
|
};
|
|
2945
2949
|
const validateExtractionResult = (extractionResult) => {
|
|
@@ -2977,7 +2981,7 @@ function IdVerificationMethod(props) {
|
|
|
2977
2981
|
fieldValidationErrors,
|
|
2978
2982
|
hasLiveSelfieErrorCode
|
|
2979
2983
|
} = props;
|
|
2980
|
-
const { t, i18n } = useTranslation(
|
|
2984
|
+
const { t: individualT, i18n } = useTranslation("individual");
|
|
2981
2985
|
const { t: commonT } = useTranslation("common");
|
|
2982
2986
|
const userEvents = useAnalyticsContext();
|
|
2983
2987
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
@@ -3198,8 +3202,8 @@ function IdVerificationMethod(props) {
|
|
|
3198
3202
|
lazyLoadedImage: passportFrontGreenImage
|
|
3199
3203
|
}
|
|
3200
3204
|
),
|
|
3201
|
-
title:
|
|
3202
|
-
description: showIndividualMotionCapture?.value ?
|
|
3205
|
+
title: individualT(($) => $["identityVerification"]),
|
|
3206
|
+
description: showIndividualMotionCapture?.value ? individualT(($) => $["toHelpProtectAgainstFraudAndKeepOurServices"]) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3203
3207
|
commonT(($) => $["takeOrUploadAPhoto"]),
|
|
3204
3208
|
" ",
|
|
3205
3209
|
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: commonT(($) => $["onfido"]) })
|
|
@@ -3222,7 +3226,7 @@ function IdVerificationMethod(props) {
|
|
|
3222
3226
|
children: commonT(($) => $["startVerification"])
|
|
3223
3227
|
}
|
|
3224
3228
|
),
|
|
3225
|
-
isExperimentEnabled("EnableVerifyByInvite") && isDecisionMakerTask(taskType) && /* @__PURE__ */ jsx(Button, { onClick: handleVerifyByInvite, variant: "secondary", fullWidth: true, children:
|
|
3229
|
+
isExperimentEnabled("EnableVerifyByInvite") && isDecisionMakerTask(taskType) && /* @__PURE__ */ jsx(Button, { onClick: handleVerifyByInvite, variant: "secondary", fullWidth: true, children: individualT(($) => $["verifyByInvite"]) }),
|
|
3226
3230
|
!showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(
|
|
3227
3231
|
Button,
|
|
3228
3232
|
{
|
|
@@ -3244,9 +3248,9 @@ function IdVerificationMethod(props) {
|
|
|
3244
3248
|
disclaimer: (
|
|
3245
3249
|
// TODO - replace with Trans component
|
|
3246
3250
|
!doesUserHaveExistingDocument && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3247
|
-
|
|
3251
|
+
individualT(($) => $["byContinuingToUseThisService"]),
|
|
3248
3252
|
" ",
|
|
3249
|
-
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/facial-scan-policy-and-release/", external: true, inline: true, children:
|
|
3253
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/facial-scan-policy-and-release/", external: true, inline: true, children: individualT(($) => $["onfidoFacialScanPolicy"]) }),
|
|
3250
3254
|
" ",
|
|
3251
3255
|
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: commonT(($) => $["privacyPolicy"]) }),
|
|
3252
3256
|
" ",
|
|
@@ -3271,18 +3275,18 @@ function IdVerificationMethod(props) {
|
|
|
3271
3275
|
status === "confirmManualFlowModal" && /* @__PURE__ */ jsx(
|
|
3272
3276
|
Confirm,
|
|
3273
3277
|
{
|
|
3274
|
-
title:
|
|
3275
|
-
description:
|
|
3278
|
+
title: individualT(($) => $["addDetailsManuallyQuestion"]),
|
|
3279
|
+
description: individualT(($) => $["itCanTakeUpTo"]),
|
|
3276
3280
|
onCancel: handleCancelAddDetailsManually,
|
|
3277
|
-
confirmText:
|
|
3281
|
+
confirmText: individualT(($) => $["yesAddManually"]),
|
|
3278
3282
|
onConfirm: handleContinueViaManualEntryFlow
|
|
3279
3283
|
}
|
|
3280
3284
|
),
|
|
3281
3285
|
status === "confirmDeleteDocumentModal" && /* @__PURE__ */ jsx(
|
|
3282
3286
|
Confirm,
|
|
3283
3287
|
{
|
|
3284
|
-
title:
|
|
3285
|
-
description:
|
|
3288
|
+
title: individualT(($) => $["deleteIdDocument"]),
|
|
3289
|
+
description: individualT(($) => $["youMayBeAskedToReUpload"]),
|
|
3286
3290
|
confirmText: commonT(($) => $["deleteDocument"]),
|
|
3287
3291
|
onCancel: handleCancelDeleteDocument,
|
|
3288
3292
|
onConfirm: handleDeleteDocument,
|
|
@@ -3348,20 +3352,20 @@ const proofOfRelationshipDocumentOptions = [
|
|
|
3348
3352
|
}
|
|
3349
3353
|
];
|
|
3350
3354
|
function ProofOfRelationship({ id, ...props }) {
|
|
3351
|
-
const {
|
|
3355
|
+
const { t } = useTranslation(["individual", "common"]);
|
|
3352
3356
|
const [proofOfRelationshipDocumentType, setProofOfRelationshipDocumentType] = useState(
|
|
3353
3357
|
proofOfRelationshipDocumentOptions[0].id
|
|
3354
3358
|
);
|
|
3355
3359
|
const proofOfResidencyGuidanceContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3356
3360
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-upload-field__subtitle", children: [
|
|
3357
3361
|
" ",
|
|
3358
|
-
|
|
3362
|
+
t(($) => $["requirements"], { ns: "common" })
|
|
3359
3363
|
] }),
|
|
3360
3364
|
/* @__PURE__ */ jsxs("ul", { children: [
|
|
3361
|
-
/* @__PURE__ */ jsx("li", { children:
|
|
3362
|
-
/* @__PURE__ */ jsx("li", { children:
|
|
3363
|
-
/* @__PURE__ */ jsx("li", { children:
|
|
3364
|
-
/* @__PURE__ */ jsx("li", { children:
|
|
3365
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["documentAddressedToName"], { name: props.name }) }),
|
|
3366
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["showAddressStateCountry"]) }),
|
|
3367
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["fullDocumentVisibleWithReadableText"]) }),
|
|
3368
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["documentCannotBeDamaged"]) })
|
|
3365
3369
|
] })
|
|
3366
3370
|
] });
|
|
3367
3371
|
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
@@ -3370,8 +3374,8 @@ function ProofOfRelationship({ id, ...props }) {
|
|
|
3370
3374
|
...props,
|
|
3371
3375
|
documentField: "proofOfRelationship",
|
|
3372
3376
|
documentType: "proofOfRelationship",
|
|
3373
|
-
heading:
|
|
3374
|
-
guidanceHeader: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-document-upload__subtitle adyen-kyc-u-margin-bottom-16", children:
|
|
3377
|
+
heading: t(($) => $["proofOfRelationship"], { ns: "common" }),
|
|
3378
|
+
guidanceHeader: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-document-upload__subtitle adyen-kyc-u-margin-bottom-16", children: t(($) => $["proofOfResidenceDocumentTypeLabel"], { name: props.name }) }),
|
|
3375
3379
|
documentTypeSelect: {
|
|
3376
3380
|
selectedType: proofOfRelationshipDocumentType,
|
|
3377
3381
|
setSelectedType: setProofOfRelationshipDocumentType,
|
|
@@ -3416,7 +3420,7 @@ const proofOfResidenceDocumentOptions = [
|
|
|
3416
3420
|
}
|
|
3417
3421
|
];
|
|
3418
3422
|
function ProofOfResidency({ id, ...props }) {
|
|
3419
|
-
const {
|
|
3423
|
+
const { t } = useTranslation(["individual", "common"]);
|
|
3420
3424
|
const [proofOfResidenceDocumentType, setProofOfResidenceDocumentType] = useState(
|
|
3421
3425
|
proofOfResidenceDocumentOptions[0].id
|
|
3422
3426
|
);
|
|
@@ -3424,14 +3428,14 @@ function ProofOfResidency({ id, ...props }) {
|
|
|
3424
3428
|
const proofOfResidencyGuidanceContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3425
3429
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-upload-field__subtitle", children: [
|
|
3426
3430
|
" ",
|
|
3427
|
-
|
|
3431
|
+
t(($) => $["requirements"], { ns: "common" })
|
|
3428
3432
|
] }),
|
|
3429
3433
|
/* @__PURE__ */ jsxs("ul", { children: [
|
|
3430
|
-
/* @__PURE__ */ jsx("li", { children:
|
|
3431
|
-
/* @__PURE__ */ jsx("li", { children:
|
|
3432
|
-
/* @__PURE__ */ jsx("li", { children: isMortgageOrVoterRegistration ?
|
|
3433
|
-
/* @__PURE__ */ jsx("li", { children:
|
|
3434
|
-
/* @__PURE__ */ jsx("li", { children:
|
|
3434
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["documentAddressedToName"], { name: props.name }) }),
|
|
3435
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["showAddressStateCountry"]) }),
|
|
3436
|
+
/* @__PURE__ */ jsx("li", { children: isMortgageOrVoterRegistration ? t(($) => $["dateOnDocumentNoOlderThanXMonths"], { numberOfMonths: 12 }) : t(($) => $["dateOnDocumentNoOlderThanXMonths"], { numberOfMonths: 3 }) }),
|
|
3437
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["fullDocumentVisibleWithReadableText"]) }),
|
|
3438
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["documentCannotBeDamaged"]) })
|
|
3435
3439
|
] })
|
|
3436
3440
|
] });
|
|
3437
3441
|
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
@@ -3440,8 +3444,8 @@ function ProofOfResidency({ id, ...props }) {
|
|
|
3440
3444
|
...props,
|
|
3441
3445
|
documentField: "proofOfResidency",
|
|
3442
3446
|
documentType: "proofOfResidency",
|
|
3443
|
-
heading:
|
|
3444
|
-
guidanceHeader: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-document-upload__subtitle adyen-kyc-u-margin-bottom-16", children:
|
|
3447
|
+
heading: t(($) => $["proofOfResidency"], { ns: "common" }),
|
|
3448
|
+
guidanceHeader: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-document-upload__subtitle adyen-kyc-u-margin-bottom-16", children: t(($) => $["proofOfResidenceDocumentTypeLabel"], { name: props.name }) }),
|
|
3445
3449
|
documentTypeSelect: {
|
|
3446
3450
|
selectedType: proofOfResidenceDocumentType,
|
|
3447
3451
|
setSelectedType: setProofOfResidenceDocumentType,
|
|
@@ -3460,13 +3464,13 @@ const getDisplayErrorMessage = (errorMessage, t) => {
|
|
|
3460
3464
|
return typeof errorMessage !== "boolean" ? translateTranslatable(t, errorMessage) : errorMessage;
|
|
3461
3465
|
};
|
|
3462
3466
|
const SignatoryQuestionnaireModalContent = () => {
|
|
3463
|
-
const {
|
|
3467
|
+
const { t } = useTranslation("individual");
|
|
3464
3468
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3465
|
-
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h3", className: "adyen-kyc-u-margin-bottom-40", children:
|
|
3466
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children:
|
|
3467
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children:
|
|
3468
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children:
|
|
3469
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", children:
|
|
3469
|
+
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h3", className: "adyen-kyc-u-margin-bottom-40", children: t(($) => $["moreAboutAuthorizedSignatories"]) }),
|
|
3470
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: t(($) => $["signatoryDescriptionQ1"]) }),
|
|
3471
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: t(($) => $["signatoryDescriptionA1"]) }),
|
|
3472
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: t(($) => $["signatoryDescriptionQ2"]) }),
|
|
3473
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", children: t(($) => $["signatoryDescriptionA2"]) })
|
|
3470
3474
|
] });
|
|
3471
3475
|
};
|
|
3472
3476
|
function SignatoryQuestionnaire(props) {
|
|
@@ -3523,7 +3527,15 @@ function SignatoryQuestionnaire(props) {
|
|
|
3523
3527
|
errorMessage: getDisplayErrorMessage(errorMessage, t)
|
|
3524
3528
|
}
|
|
3525
3529
|
),
|
|
3526
|
-
isModalOpen && /* @__PURE__ */ jsx(
|
|
3530
|
+
isModalOpen && /* @__PURE__ */ jsx(
|
|
3531
|
+
Modal,
|
|
3532
|
+
{
|
|
3533
|
+
onClose: closeModal,
|
|
3534
|
+
ariaLabel: t(($) => $["moreAboutAuthorizedSignatories"], { ns: "individual" }),
|
|
3535
|
+
inset: true,
|
|
3536
|
+
children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {})
|
|
3537
|
+
}
|
|
3538
|
+
)
|
|
3527
3539
|
] });
|
|
3528
3540
|
}
|
|
3529
3541
|
const useGuidanceQuestionnaire = ({
|
|
@@ -4541,8 +4553,7 @@ function IndividualDropin({
|
|
|
4541
4553
|
}) {
|
|
4542
4554
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
4543
4555
|
const { accountHolder, setAccountHolder } = useAccountHolder();
|
|
4544
|
-
const { i18n } =
|
|
4545
|
-
const { t } = useTranslation("individual");
|
|
4556
|
+
const { t, i18n } = useTranslation(["common", "individual"]);
|
|
4546
4557
|
const userEvents = useAnalyticsContext();
|
|
4547
4558
|
const { showToast, clearToasts } = useToastContext();
|
|
4548
4559
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
@@ -4632,14 +4643,14 @@ function IndividualDropin({
|
|
|
4632
4643
|
idNumber: data2?.additionalPersonalDetails?.idNumber,
|
|
4633
4644
|
existingIdNumber: dataFromResponse.additionalPersonalDetails?.idNumber,
|
|
4634
4645
|
formVerificationErrors: problems?.verificationErrors?.additionalPersonalDetails,
|
|
4635
|
-
|
|
4646
|
+
t,
|
|
4636
4647
|
taxIdNumberType: data2?.additionalPersonalDetails?.taxInformation?.length ? data2?.additionalPersonalDetails?.taxInformation[0]?.type : void 0
|
|
4637
4648
|
})
|
|
4638
4649
|
}),
|
|
4639
4650
|
[
|
|
4640
4651
|
country,
|
|
4641
4652
|
dataFromResponse.additionalPersonalDetails?.idNumber,
|
|
4642
|
-
|
|
4653
|
+
t,
|
|
4643
4654
|
isExperimentEnabled,
|
|
4644
4655
|
isSettingEnabled,
|
|
4645
4656
|
problems?.verificationErrors?.additionalPersonalDetails,
|
|
@@ -4763,7 +4774,7 @@ function IndividualDropin({
|
|
|
4763
4774
|
setExistingAttachments(res[0].attachments);
|
|
4764
4775
|
setDocuments(mapApiDocumentToIndividualDocuments(legalEntityResponse?.id));
|
|
4765
4776
|
}).catch(() => {
|
|
4766
|
-
showToast({ label:
|
|
4777
|
+
showToast({ label: t(($) => $["failedToFetchRelevantDocuments"]), variant: "error" });
|
|
4767
4778
|
});
|
|
4768
4779
|
}, []);
|
|
4769
4780
|
const forms = useMemo(() => {
|
|
@@ -4978,19 +4989,19 @@ function IndividualDropin({
|
|
|
4978
4989
|
if (isValidationError(e)) {
|
|
4979
4990
|
const getErrors = processValidationErrors(e, TaskTypes.INDIVIDUAL);
|
|
4980
4991
|
if (getErrors && !Object.keys(getErrors).length) {
|
|
4981
|
-
showToast({ label:
|
|
4992
|
+
showToast({ label: t(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
4982
4993
|
eventsAdditionalData.unmappedErrorNames = e.invalidFields?.map((field) => field.name).filter(Boolean);
|
|
4983
4994
|
} else {
|
|
4984
4995
|
setValidationErrors(getErrors);
|
|
4985
4996
|
}
|
|
4986
4997
|
} else if (isMaintenanceModeError(e)) {
|
|
4987
4998
|
showToast({
|
|
4988
|
-
label:
|
|
4999
|
+
label: t(($) => $["maintenanceModeMessage"]),
|
|
4989
5000
|
variant: "error",
|
|
4990
5001
|
duration: "indefinite"
|
|
4991
5002
|
});
|
|
4992
5003
|
} else {
|
|
4993
|
-
showToast({ label:
|
|
5004
|
+
showToast({ label: t(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
4994
5005
|
}
|
|
4995
5006
|
setLoadingStatus("success");
|
|
4996
5007
|
userEvents.addTaskEvent("Encountered error", {
|
|
@@ -5001,7 +5012,7 @@ function IndividualDropin({
|
|
|
5001
5012
|
});
|
|
5002
5013
|
}
|
|
5003
5014
|
};
|
|
5004
|
-
const datasetUtils = datasetUtilities(i18n.
|
|
5015
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
5005
5016
|
const formatIdDocument = (idDocument) => {
|
|
5006
5017
|
if (!idDocument) return void 0;
|
|
5007
5018
|
const documentType = idDocument?.instantIdVerificationData ? onfidoDocumentTypeMapping.find(
|
|
@@ -5012,7 +5023,7 @@ function IndividualDropin({
|
|
|
5012
5023
|
const backPage = idDocument.idBackPage?.[0];
|
|
5013
5024
|
if (!frontPage) return void 0;
|
|
5014
5025
|
return {
|
|
5015
|
-
documentType:
|
|
5026
|
+
documentType: t(($) => $[documentType.name]),
|
|
5016
5027
|
...backPage && documentType.hasBackPage ? {
|
|
5017
5028
|
frontPage: frontPage.name,
|
|
5018
5029
|
backPage: backPage.name
|
|
@@ -5080,12 +5091,14 @@ function IndividualDropin({
|
|
|
5080
5091
|
}
|
|
5081
5092
|
}
|
|
5082
5093
|
if (summaryData.basicDetails?.accountHolder) {
|
|
5083
|
-
summaryData.basicDetails.accountHolder =
|
|
5094
|
+
summaryData.basicDetails.accountHolder = t(
|
|
5095
|
+
($) => $[summaryData.basicDetails.accountHolder]
|
|
5096
|
+
);
|
|
5084
5097
|
}
|
|
5085
5098
|
if (summaryData.additionalPersonalDetails?.birthDate) {
|
|
5086
5099
|
summaryData.additionalPersonalDetails.birthDate = localizeDateString(
|
|
5087
5100
|
summaryData.additionalPersonalDetails.birthDate,
|
|
5088
|
-
i18n.
|
|
5101
|
+
i18n.language
|
|
5089
5102
|
);
|
|
5090
5103
|
}
|
|
5091
5104
|
if (isManualVerificationOrExistingDoc(summaryData.idVerificationMethod?.idVerificationMethod) || summaryData.proofOfResidency) {
|
|
@@ -5104,7 +5117,7 @@ function IndividualDropin({
|
|
|
5104
5117
|
}
|
|
5105
5118
|
}
|
|
5106
5119
|
if (summaryData?.signatoryQuestionnaire) {
|
|
5107
|
-
summaryData.signatoryQuestionnaire = data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES ? [
|
|
5120
|
+
summaryData.signatoryQuestionnaire = data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES ? [t(($) => $["signatorySummaryLabel"])] : [];
|
|
5108
5121
|
}
|
|
5109
5122
|
if (summaryData?.uboQuestionnaire) {
|
|
5110
5123
|
const roleFieldToLabelMap = {
|
|
@@ -5113,7 +5126,7 @@ function IndividualDropin({
|
|
|
5113
5126
|
isDirector: "directorSummaryLabel"
|
|
5114
5127
|
};
|
|
5115
5128
|
summaryData.uboQuestionnaire = Object.keys(roleFieldToLabelMap).flatMap(
|
|
5116
|
-
(field) => data?.uboQuestionnaire?.[field] === GuidanceQuestionValues.YES ? [t(($) => $[roleFieldToLabelMap[field]])] : []
|
|
5129
|
+
(field) => data?.uboQuestionnaire?.[field] === GuidanceQuestionValues.YES ? [t(($) => $[roleFieldToLabelMap[field]], { ns: "individual" })] : []
|
|
5117
5130
|
);
|
|
5118
5131
|
}
|
|
5119
5132
|
return summaryData;
|