@adyen/kyc-components 4.20.3 → 4.21.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/AcceptTermsOfServiceWorkflow-DvXLuBUP.js +28 -0
- package/dist/{Accordion-BWdAGMRb.js → Accordion-DC7Iuj-J.js} +3 -2
- package/dist/{AccountSetupRejected-BAnMTKtK.js → AccountSetupRejected-Bme0n9Ry.js} +2 -2
- package/dist/AdaptiveWorkflow-DeyDJH93.js +210 -0
- package/dist/{AdaptiveWorkflowComponent-wOE8D9cu.js → AdaptiveWorkflowComponent-CjTr9flK.js} +35 -34
- package/dist/{AddressField-BgdOTaxA.js → AddressField-Dwiy0Lp9.js} +13 -79
- package/dist/{Avatar-CeZIQS8n.js → Avatar-BKTdqNpO.js} +2 -2
- package/dist/{BusinessFinancingDropin-By68ymM3.js → BusinessFinancingDropin-BJyuZ8dK.js} +155 -36
- package/dist/{BusinessFinancingPage-XGqZnfJA.js → BusinessFinancingPage-C3DpzYDs.js} +34 -34
- package/dist/{BusinessRegistrationNumberField-BEMTWqsw.js → BusinessRegistrationNumberField-Bvq9kBeC.js} +28 -133
- package/dist/BusinessRegistrationNumberFieldGroup-DekPmMPr.js +172 -0
- package/dist/{BusinessTypeSelectionPage-D6MZOp0S.js → BusinessTypeSelectionPage-2DBhHIV3.js} +19 -16
- package/dist/{Button-Cm7cT6BX.js → Button-DSD_afG_.js} +4 -85
- package/dist/{Checkbox-faFUul66.js → Checkbox-CoYc9mYJ.js} +2 -2
- package/dist/{CompanyRegistrationNumberTypeSelector-BZou9I4l.js → CompanyRegistrationNumberTypeSelector-Cw_MwFNk.js} +6 -8
- package/dist/ComponentGroup-bPTim8ap.js +32 -0
- package/dist/{ContactDetails-DEytFGKP.js → ContactDetails-1U7gtwcT.js} +8 -9
- package/dist/{ContextGuidance-BwO0HQqx.js → ContextGuidance-Crh1eg4L.js} +3 -3
- package/dist/{Currency-BAx_Uo5W.js → Currency-C4CO9Z4U.js} +9 -8
- package/dist/{CustomerSupport-D0ufIpy-.js → CustomerSupport-toFotwt6.js} +16 -15
- package/dist/{DataConflictsModal-BEYWyGQl.js → DataConflictsModal-CL635lXr.js} +10 -9
- package/dist/{DebugModal-wlvutaIe.js → DebugModal-DjM4D9y0.js} +13 -13
- package/dist/{DecisionMakerDetails-C-Zl97-L.js → DecisionMakerDetails-Cgw6FTX3.js} +59 -22
- package/dist/{DecisionMakerDetailsPage-CJy_C9vF.js → DecisionMakerDetailsPage-Dotl9hm4.js} +35 -17
- package/dist/{DecisionMakers-CJhpy3hL.js → DecisionMakers-Bb1k-3jK.js} +22 -20
- package/dist/{Dropzone-tCvWDUb_.js → Dropzone-De-_68uO.js} +9 -7
- package/dist/{EmbeddedStatus-uz3Ivsyw.js → EmbeddedStatus-CkSg9-9r.js} +5 -4
- package/dist/{EndStateLayout-BUK64Vqu.js → EndStateLayout-CarfWtTC.js} +4 -3
- package/dist/{EntityAssociation-B5xzdKZ7.js → EntityAssociation-fyXv0iPm.js} +7 -7
- package/dist/{ErrorPanel-DrMirhyf.js → ErrorPanel-Deuo7Len.js} +6 -6
- package/dist/GlobalEntryModal-5lEeqSu-.js +589 -0
- package/dist/{GlobalEntryPage-kke7lpsi.js → GlobalEntryPage-BMk0JcPT.js} +35 -34
- package/dist/Icon-CurE93CX.js +175 -0
- package/dist/{validateExtractionResult-BAj3G_p_.js → IdentityNumber-d4r6gTEr.js} +7 -344
- package/dist/IdentityNumberFieldGroup-BjFhY6v3.js +57 -0
- package/dist/IdentityScreeningWorkflow-CPpI04Cl.js +307 -0
- package/dist/{Image-8SOcICah.js → Image-D82terx4.js} +2 -2
- package/dist/{Individual.rules-C-6V0eRk.js → Individual.rules-YSORZ1Ud.js} +9 -10
- package/dist/{IndividualDropin-CC3-AIiO.js → IndividualDropin-DHUs3srO.js} +86 -82
- package/dist/IndustryCodeFieldGroup-DZUq90Hc.js +188 -0
- package/dist/{InputDate-DDVX2D-5.js → InputDate-BSoTKQgE.js} +2 -2
- package/dist/{InputText-Cf9ccCaj.js → InputText-CQUZ2_58.js} +41 -6
- package/dist/{Introduction-CTYHDxDW.js → Introduction-QQJUBGqW.js} +9 -8
- package/dist/{InvitedDecisionMakerComponent-BdySOH9B.js → InvitedDecisionMakerComponent-C9Sr5OVw.js} +48 -46
- package/dist/{JpAddressFields-CrBmLCtM.js → JpAddressFields-C2M1PEEu.js} +51 -11
- package/dist/{LegalCompanyNameField-DBp71z3A.js → LegalCompanyNameField-Ccmj94Cp.js} +5 -5
- package/dist/LegalName-DAhyDtZO.js +33 -0
- package/dist/{LegalRepresentativeDetailsPage-VN50UtKG.js → LegalRepresentativeDetailsPage-BWDUzLAO.js} +11 -11
- package/dist/{Link-B7RA2gSt.js → Link-B-gN0d8l.js} +2 -2
- package/dist/{ListItem-Cy46BXUv.js → ListItem-BGdnopqb.js} +3 -3
- package/dist/Loader-BEpMlKm2.js +92 -0
- package/dist/{Modal-nylR9F4X.js → Modal-SdFoz5L1.js} +3 -3
- package/dist/{Name-hxEchkBU.js → Name-NSt7wAJx.js} +5 -5
- package/dist/{NewSummary-BoZKS3an.js → NewSummary-Bs2oSxfd.js} +10 -9
- package/dist/{PatriotActDisclosure-DoR57O_a.js → PatriotActDisclosure-f5X4wFJ7.js} +110 -222
- package/dist/{PayoutDetailsDropin-Dptk-AWq.js → PayoutDetailsDropin-L7lwM7Lx.js} +260 -172
- package/dist/{PayoutDetailsPage-G9U8ZN76.js → PayoutDetailsPage-0-Kh-Us8.js} +9 -9
- package/dist/{CountryField-CqJ_jC11.js → RadioGroup-DvcMPdV_.js} +168 -13
- package/dist/{Review-BFrPwvnk.js → Review-CWhmiMyu.js} +8 -8
- package/dist/RootBusinessDetailsPage-cC5TaC3R.js +68 -0
- package/dist/{RootBusinessLinesPage-CP7J0yeT.js → RootBusinessLinesPage-CaUWOtl2.js} +34 -30
- package/dist/{RootIndividualDetailsPage-BnDa9cNx.js → RootIndividualDetailsPage-Dko5-jkQ.js} +12 -12
- package/dist/{Select-Bl58NHvM.js → Select-DuIuKg3u.js} +11 -8
- package/dist/{useSettingsContext-Bpf4UqRT.js → SettingsContext-Dl-9WWCI.js} +2 -8
- package/dist/{SignPCIComponent-BA7DZ4NN.js → SignPCIComponent-tcbQ9ywv.js} +44 -43
- package/dist/{SingpassSelection-Dvu6g9iG.js → SingpassSelection-DiXuMp_4.js} +7 -6
- package/dist/SoleProprietorshipPage-D7C77YuZ.js +70 -0
- package/dist/{SourceOfFundsPage-C-s6bb2S.js → SourceOfFundsPage-m80VKcKb.js} +40 -38
- package/dist/SourceOfFundsWorkflow-BiwO_slV.js +28 -0
- package/dist/{utils-B2150fIA.js → StateField-BLKrxMHo.js} +82 -8
- package/dist/Step-BmMwlRAP.js +195 -0
- package/dist/{StructuredList-C2fNU0uz.js → StructuredList-ByaWQPt4.js} +6 -5
- package/dist/Task-D56Ov4hE.js +129 -0
- package/dist/TaskGroup-Cb0LMscl.js +46 -0
- package/dist/{TaskListItem-BWaVqmtJ.js → TaskListItem-ChTNrH8o.js} +12 -58
- package/dist/TaskStepperContextProvider-DuM9tlet.js +81 -0
- package/dist/{TaskVerificationStatus-DMj8rsZ_.js → TaskVerificationStatus-DCfFNRJc.js} +4 -3
- package/dist/TaxInformationFieldGroup-DTRRPgsO.js +288 -0
- package/dist/{TaxReportingDropin-ZK7ZJdPp.js → TaxReportingDropin-BDMleLS7.js} +23 -21
- package/dist/TaxReportingWorkflow-DDUwvJUg.js +28 -0
- package/dist/{TermsOfServiceManagement-B_kPOWFg.js → TermsOfServiceManagement-D25wc-rD.js} +49 -47
- package/dist/{TextArea-CoS-i-FF.js → TextArea-DONjpYoD.js} +7 -13
- package/dist/{TrustDetailsPage-DgklXUzD.js → TrustDetailsPage-eCuV5_H9.js} +433 -442
- package/dist/TrustMemberCompanyPage-B5ZvuGJU.js +109 -0
- package/dist/{TrustMemberIndividualPage-CUqnRk8R.js → TrustMemberIndividualPage-D68huyWG.js} +12 -12
- package/dist/{TrustMemberRoleAndTypePage-B0k2Q7Vd.js → TrustMemberRoleAndTypePage-Dzi7gUQJ.js} +48 -47
- package/dist/{TrustMembersOverview-B3K-gYQC.js → TrustMembersOverview-DPOZrxaa.js} +42 -40
- package/dist/Typography-CAc_f5Iq.js +80 -0
- package/dist/UboTaskItem-BTg9SYx6.js +115 -0
- package/dist/{UnincorporatedPartnershipIndividualPage-BLeo-3Dg.js → UnincorporatedPartnershipIndividualPage-CiloYr6z.js} +11 -11
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-D_vDaZDa.js → UnincorporatedPartnershipMemberCompanyPage-DFToIXPu.js} +36 -36
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-ZGrk1pwS.js → UnincorporatedPartnershipMemberRoleAndTypePage-B1zDZaTe.js} +12 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-D3P6RnSe.js → UnincorporatedPartnershipMembersOverview-BkoW2TeI.js} +10 -9
- package/dist/{VerificationErrorAlert-CZgXhF8q.js → VerificationErrorAlert-OvA_tFEA.js} +5 -5
- package/dist/Workflow-BR6It8DD.js +228 -0
- package/dist/{accountHolderUtils-CwDO1erJ.js → accountHolderUtils-BWP2t1n2.js} +3 -3
- package/dist/adyen-business-financing.js +35 -35
- package/dist/adyen-individual-configuration.js +37 -37
- package/dist/adyen-individual-status.js +34 -34
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +67 -63
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +6 -6
- package/dist/adyen-transfer-instrument-configuration.js +33 -33
- package/dist/adyen-transfer-instrument-management.js +44 -41
- package/dist/adyen-verification-status.js +8 -6
- package/dist/{utils-CIAOij_i.js → bafinUtils-BPvihvBP.js} +684 -167
- package/dist/{bg-BG-qQc6pN4K.js → bg-BG-BeFIiwVZ.js} +3 -1
- package/dist/bg-BG-CXqERnFH.js +7 -0
- package/dist/bg-BG-D4mSRREu.js +7 -0
- package/dist/{bg-BG-Smu9r9Kp.js → bg-BG-DpSUitm0.js} +12 -2
- package/dist/{constants-4cwXR749.js → constants-2R-DUr5z.js} +5 -5
- package/dist/{countries-CPj8hkLs.js → countries-BE4iGVAo.js} +1 -1
- package/dist/{country-IYuKDSdC.js → country-DkgapJ4w.js} +2 -2
- package/dist/cs-CZ-C_VaBRMS.js +23 -0
- package/dist/cs-CZ-DAXMHrMi.js +7 -0
- package/dist/{cs-CZ-Jsmhr_B3.js → cs-CZ-DHfA1xjQ.js} +3 -1
- package/dist/cs-CZ-DySBJFlc.js +7 -0
- package/dist/{da-DK-CXZXQspY.js → da-DK--DlccBc0.js} +3 -1
- package/dist/da-DK-BVaEiAWd.js +7 -0
- package/dist/da-DK-BfaKncp5.js +23 -0
- package/dist/da-DK-BuvKW6Sq.js +7 -0
- package/dist/de-DE-BQaqplTp.js +7 -0
- package/dist/{de-DE-BRJ0jBty.js → de-DE-B_iHAkLT.js} +3 -1
- package/dist/de-DE-BqujMxXu.js +7 -0
- package/dist/de-DE-GUfA18ps.js +23 -0
- package/dist/{decisionMaker-Dt53wKqO.js → decisionMaker-M0Tm92JR.js} +1 -1
- package/dist/{decisionMakerRoles-CTy0faoW.js → decisionMakerRoles-DbKnutwk.js} +3 -3
- package/dist/el-GR-B1NjHThy.js +7 -0
- package/dist/el-GR-C6jyW53I.js +7 -0
- package/dist/{el-GR-DEBvBgI-.js → el-GR-CJqHd-CD.js} +12 -2
- package/dist/{el-GR-BMGYrO4V.js → el-GR-D09thseu.js} +3 -1
- package/dist/en-US-C3i5Oge2.js +7 -0
- package/dist/en-US-CJPD8qHc.js +7 -0
- package/dist/{en-US-BFM81i9K.js → en-US-CO9xzDL5.js} +1 -4
- package/dist/en-US-D4NrsDmW.js +7 -0
- package/dist/{en-US.instructions-pRLq5gXB.js → en-US.instructions-CqF1qVJV.js} +2 -1
- package/dist/{entityAssociationUtil-DLXInibJ.js → entityAssociationUtil-CLBR9osP.js} +1 -1
- package/dist/{error-CSOAG0Cl.js → error-BAlndbwJ.js} +3 -3
- package/dist/es-ES-BM5RTwb7.js +7 -0
- package/dist/{es-ES-pt4yy_U2.js → es-ES-Bpxn6XGC.js} +3 -1
- package/dist/es-ES-C64v4NJD.js +7 -0
- package/dist/es-ES-IobfbI71.js +23 -0
- package/dist/es-LA--YYwwbVo.js +23 -0
- package/dist/es-LA-B7pY2dp1.js +7 -0
- package/dist/es-LA-CcMAcJ7u.js +7 -0
- package/dist/{es-LA-CGrMi4rR.js → es-LA-CjxlB1WZ.js} +3 -1
- package/dist/et-EE-DqYCOl2Y.js +23 -0
- package/dist/{et-EE-dDMeDiTJ.js → et-EE-Dtc7YYb4.js} +3 -1
- package/dist/{et-EE-BGpsJPjk.js → et-EE-FtKFvr3u.js} +2 -2
- package/dist/{et-EE-OAYKzRjG.js → et-EE-wDQx9HoZ.js} +2 -2
- package/dist/{fi-FI-iRb7nS7X.js → fi-FI-DBhYlO4B.js} +3 -1
- package/dist/{fi-FI-BTG87BwH.js → fi-FI-DSCFTLoG.js} +12 -2
- package/dist/fi-FI-KMP96Qxc.js +7 -0
- package/dist/fi-FI-SFw2grVp.js +7 -0
- package/dist/{MaskedInput-BQ_cTsL0.js → form-rules-BNF4Yysw.js} +378 -14
- package/dist/formHook-Dgi2CgbT.js +24 -0
- package/dist/{formatValidationError-B9NRahV5.js → formatValidationError-Cbkto-0l.js} +2 -2
- package/dist/fr-FR-C8IPWMDL.js +7 -0
- package/dist/fr-FR-Dsh0Vb20.js +7 -0
- package/dist/{fr-FR-DUrcyeOg.js → fr-FR-N8UDU_0Y.js} +3 -1
- package/dist/fr-FR-ZWnkRO7z.js +23 -0
- package/dist/{AnalyticsContext-BnRQ9H1u.js → genUtils-Ce61IJs8.js} +2 -17
- package/dist/{getLegalEntityCountry-BHh7Ux8v.js → getLegalEntityCountry-CNE5uei8.js} +1 -1
- package/dist/{getName-C5jqdkJg.js → getName-s7qmFean.js} +2 -2
- package/dist/{getProblemsForEntity-DStlTvE-.js → getProblemsForEntity-CTxd78-9.js} +4 -4
- package/dist/{getTrustedDecisionMakers-CAbhvydj.js → getTrustedDecisionMakers-DWVtW7JE.js} +2 -2
- package/dist/hr-HR-2a3ywU0e.js +23 -0
- package/dist/hr-HR-COvc9TZy.js +7 -0
- package/dist/hr-HR-Cqgf9B0v.js +7 -0
- package/dist/{hr-HR-LnDb18bf.js → hr-HR-GLRwxTIZ.js} +3 -1
- package/dist/{http-D6AdUBhO.js → http-DsJtugN1.js} +2 -2
- package/dist/hu-HU-BOXBLK1a.js +23 -0
- package/dist/{hu-HU-VLUIAFMp.js → hu-HU-DIjDe5aa.js} +2 -2
- package/dist/{hu-HU-D9Avt-9f.js → hu-HU-DyM1X3r6.js} +2 -2
- package/dist/{hu-HU-Cc7wqn6A.js → hu-HU-s1MKqwI4.js} +3 -1
- package/dist/{isEmpty-MyMko24J.js → isEmpty-DD8Insy0.js} +2 -2
- package/dist/{it-IT-BPA_Upt_.js → it-IT-2reNk09A.js} +3 -1
- package/dist/it-IT-BKTDLRBT.js +7 -0
- package/dist/it-IT-Dj2NtH7G.js +23 -0
- package/dist/it-IT-xXO07yyz.js +7 -0
- package/dist/{ja-JP-CYb1SAoz.js → ja-JP-Bf97gKqg.js} +3 -1
- package/dist/ja-JP-BhHK_ru2.js +7 -0
- package/dist/ja-JP-DbLRpEVj.js +7 -0
- package/dist/{ja-JP-Yi2wExJE.js → ja-JP-lXTbRXBb.js} +12 -2
- package/dist/{localizeDateString-D-MlYN4V.js → localizeDateString-Dxlqr4rL.js} +2 -2
- package/dist/logger-Z8AeTE4x.js +29 -0
- package/dist/{lt-LT-B9Nm7OZQ.js → lt-LT-BUgsY7cD.js} +3 -1
- package/dist/lt-LT-Be3q6tyu.js +7 -0
- package/dist/lt-LT-Btr5el2q.js +7 -0
- package/dist/lt-LT-COUN4qC5.js +23 -0
- package/dist/lv-LV-8wOWTo3r.js +7 -0
- package/dist/{lv-LV-DkjsE74u.js → lv-LV-BpniO6xp.js} +3 -1
- package/dist/lv-LV-DCeyOqHY.js +7 -0
- package/dist/lv-LV-DKbvF9t_.js +23 -0
- package/dist/{mapExistingFile-LvvzPjnk.js → mapExistingFile-R6-FnjjY.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-De5AnfAt.js → mapJpAddressSchemaToAddressLocalizations-BEgqt-ZQ.js} +3 -3
- package/dist/{mapLegalEntityToIndividualSchema-ByNJpSx9.js → mapLegalEntityToIndividualSchema-DGiQtWMQ.js} +10 -9
- package/dist/{mapTransferInstrumentToPayoutAccount-cKBtK0Qx.js → mapTransferInstrumentToPayoutAccount-D-RdVquH.js} +3 -3
- package/dist/nl-NL-CdHkQcOS.js +7 -0
- package/dist/nl-NL-CtK4OR3t.js +23 -0
- package/dist/nl-NL-Dyb3tkBi.js +7 -0
- package/dist/{nl-NL-BtdPxlFm.js → nl-NL-_B3Ey_x1.js} +3 -1
- package/dist/no-NO-B-xCUkf4.js +7 -0
- package/dist/no-NO-CxZumo2p.js +23 -0
- package/dist/{no-NO-BIhMgC99.js → no-NO-CytzrDfA.js} +3 -1
- package/dist/no-NO-DXDddmYv.js +7 -0
- package/dist/pl-PL-CBwRmIu5.js +7 -0
- package/dist/pl-PL-Cc09pXO8.js +7 -0
- package/dist/pl-PL-Csv1Lg5y.js +23 -0
- package/dist/{pl-PL-BT6NmGgO.js → pl-PL-DLBeIbY5.js} +3 -1
- package/dist/{processCapabilities-BSpmJOEd.js → processCapabilities-uXoRmB5x.js} +2 -2
- package/dist/{processValidationErrors-DP_eetOL.js → processValidationErrors-B2Yvt5KJ.js} +3 -3
- package/dist/{pt-BR-B0SUw4uu.js → pt-BR-Cf5Jif3w.js} +3 -1
- package/dist/pt-BR-DA4PVtVa2.js +7 -0
- package/dist/pt-BR-IBsCApUj.js +23 -0
- package/dist/pt-BR-hMhyqixD.js +7 -0
- package/dist/pt-PT-CYKk0WDI.js +23 -0
- package/dist/{pt-PT-KikTTc5A.js → pt-PT-Cg7oMqTO.js} +3 -1
- package/dist/pt-PT-D2qX_lOd.js +7 -0
- package/dist/pt-PT-QU0CQs-d.js +7 -0
- package/dist/{resolveEnvironment-CcqxJHLP.js → resolveEnvironment-C5lXxn2H.js} +68 -46
- package/dist/ro-RO-23qEGblz.js +23 -0
- package/dist/ro-RO-CQjOM8e-.js +7 -0
- package/dist/ro-RO-DNye-gMC.js +7 -0
- package/dist/{ro-RO-DajmyI4j.js → ro-RO-UHWXt9rv.js} +3 -1
- package/dist/sk-SK-2jlbtz2r.js +7 -0
- package/dist/{sk-SK-DJWcs0qJ.js → sk-SK-BQHhBpDH.js} +3 -1
- package/dist/sk-SK-CwbBfCsU.js +7 -0
- package/dist/sk-SK-D8j8B4ng.js +23 -0
- package/dist/sl-SI-333ryFnM.js +23 -0
- package/dist/sl-SI-9XdXVgB8.js +7 -0
- package/dist/{sl-SI-C_QeUL6t.js → sl-SI-CTrggdef.js} +3 -1
- package/dist/sl-SI-Cyx0QtxG.js +7 -0
- package/dist/style.css +693 -672
- package/dist/styles-DYaAeu4q.js +693 -672
- package/dist/{sv-SE-D3MOTV-T.js → sv-SE-Bk55FXGN.js} +3 -1
- package/dist/sv-SE-CqhSdYBe.js +7 -0
- package/dist/sv-SE-CwsP7bTA.js +23 -0
- package/dist/sv-SE-kbf3zbjX.js +7 -0
- package/dist/{translation-DH4IlMCP.js → translation-BOm4lmPx.js} +3 -271
- package/dist/types/adaptiveWorkflow/AdaptiveWorkflow.d.ts +5 -2
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +32 -39
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/BusinessRegistrationNumberFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/ExemptedFromRegistrationNumberField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberInputField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/IdentityNumber/IdentityNumberFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/IndustryCode/IndustryCodeFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Fields/LegalName.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/ExemptedFromTaxField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdNumberInputField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/{useCustomerDataV2.d.ts → useCustomerData.d.ts} +4 -9
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/IdentityScreeningWorkflow/IdentityScreening.d.ts +19 -0
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/{IdentityScreeningWorkflow.d.ts → IdentityScreeningWorkflow/IdentityScreeningWorkflow.d.ts} +1 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/contextMap.d.ts +8 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Task/contextMap.d.ts +9 -1
- package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/contextMap.d.ts +8 -1
- package/dist/types/adaptiveWorkflow/components/Layout/Workflow/Workflow.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/{WorkflowEndState → Layout/Workflow/WorkflowEndState}/WorkflowEndState.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/{WorkflowHeading → Layout/Workflow/WorkflowHeading}/WorkflowHeading.d.ts +1 -1
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +4 -5
- package/dist/types/adaptiveWorkflow/components/types.d.ts +4 -108
- package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/WorkflowContext.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/formHook.d.ts +2 -2
- package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +2 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutSummary.d.ts +14 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +2 -1
- package/dist/types/components/Business/forms/rules.constants.d.ts +0 -17
- package/dist/types/components/Business/utils/utils.d.ts +0 -1
- package/dist/types/components/GlobalEntry/constants.d.ts +0 -22
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.d.ts +2 -1
- package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/UnincorporatedOrganizationTypeField.d.ts +2 -1
- package/dist/types/components/GlobalEntry/fields/UnincorporatedOrganizationTypeField/types.d.ts +1 -1
- package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +4 -1
- package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +2 -1
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +8 -2
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
- package/dist/types/components/GlobalEntry/rules.d.ts +23 -0
- package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +6 -1
- package/dist/types/components/GlobalEntry/utils.d.ts +3 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +9 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +4 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +7 -2
- package/dist/types/components/Shared/SummarySection/SummarySection.d.ts +1 -0
- package/dist/types/components/Shared/VerifiedWith/VerifiedWith.d.ts +7 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +0 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/constants.d.ts +2 -0
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +3 -2
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +4 -0
- package/dist/types/components/Shared/forms/Address/AddressFields.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/Trust.d.ts +13 -0
- package/dist/types/components/Trust/forms/Trust/form-ids.d.ts +2 -0
- package/dist/types/components/Trust/{tasks/TrustDropin/Trust.d.ts → forms/Trust/forms.d.ts} +3 -4
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -20
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetails.d.ts +2 -3
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +3 -3
- package/dist/types/components/Trust/tasks/TrustDropin/TrustDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/types.d.ts +15 -0
- package/dist/types/router/routeConfig.d.ts +1 -1
- package/dist/types/utils/businessUtils.d.ts +19 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-BLWT7WnU.js → types-Ai_80DXu.js} +1 -1
- package/dist/{types-B4LsyK73.js → types-BeveNAZK.js} +1 -1
- package/dist/{types-Bm4RGrSI.js → types-CdxNdaM6.js} +1 -1
- package/dist/useAdaptiveWorkflow-DsQESk9f.js +28 -0
- package/dist/{useAssociatedLegalEntity-CzQlHWXy.js → useAssociatedLegalEntity-BdcoiUby.js} +3 -3
- package/dist/{useBusinessDetailsData-BWapORXF.js → useBusinessDetailsData-BKT3IfpU.js} +88 -183
- package/dist/{useBusinessLines-D-rc-Z6G.js → useBusinessLines-BhSN6qCH.js} +2 -2
- package/dist/{useCanSeeIntroduction-Dk5qC6nk.js → useCanSeeIntroduction-DWsC-Urc.js} +4 -5
- package/dist/{useCreateLegalEntity-Ctdmk3Ky.js → useCreateLegalEntity-CYZd_62a.js} +2 -2
- package/dist/{useDataMissingRemediations-DNZ_UDbI.js → useDataMissingRemediations-Cd-jucOu.js} +3 -3
- package/dist/{useForm-CHswd6lC.js → useForm-DV-XkAG5.js} +5 -5
- package/dist/useHideTaskStepper-MdPt1zI8.js +25 -0
- package/dist/{useId-f0koANuV.js → useId-BsNe9jOR.js} +4 -4
- package/dist/useIndustryCodes-uAj90IyS.js +32 -0
- package/dist/{useLegalEntity-DR51Q4mE.js → useLegalEntity-QQXN6YOm.js} +2 -2
- package/dist/{useNavigate-6p1Qv-lq.js → useNavigate-Dgq-_gvF.js} +33 -33
- package/dist/{useOnboardingStatus-op5TyMUR.js → useOnboardingStatus-CsGUjkm-.js} +2 -2
- package/dist/{usePciQuestionnaireList-BZsgbrTy.js → usePciQuestionnaireList-CFNJD8pS.js} +2 -2
- package/dist/{useSalesChannels-Mi6DmHab.js → useSalesChannels-BBdfIEYx.js} +5 -5
- package/dist/{useScenarios-Bne3C0PV.js → useScenarios-CGcmXgJv.js} +3 -3
- package/dist/{useTaskLandedEvent-C7fcguXK.js → useTaskLandedEvent-Ceflt6Ba.js} +2 -2
- package/dist/{useTaskStatus-Be6XyW54.js → useTaskStatus-CgrhdaE_.js} +2 -2
- package/dist/useTaskStepperContext-BIEhTt1x.js +15 -0
- package/dist/{useTermsOfServiceStatus-D0NHUKl_.js → useTermsOfServiceStatus-DbJDklA2.js} +2 -2
- package/dist/{useTrustMembers-CVDndW8J.js → useTrustMembers-BRyiDXJr.js} +6 -6
- package/dist/{useUnincorporatedPartnershipMembers-C5CNWe_U.js → useUnincorporatedPartnershipMembers-00l8eNLk.js} +5 -5
- package/dist/{useUpdateBusinessLines-D6D9DAn1.js → useUpdateBusinessLines-DCKYTzxd.js} +4 -29
- package/dist/{useUpdateLegalEntity-BEZu238V.js → useUpdateLegalEntity-C0U3rIhc.js} +3 -3
- package/dist/{utils-mIdxBeix.js → utils-7UVBZ1Oy.js} +8 -8
- package/dist/{utils-DwujAUJC.js → utils-Br7Ah3uy.js} +1 -1
- package/dist/utils-CFaGY5aD.js +52 -0
- package/dist/{validate-BNu91k9j.js → validate-COZwjFYQ.js} +10 -6
- package/dist/validate-D4VQ3msP.js +125 -0
- package/dist/{validate-C-08Q88R.js → validate-NJXha9gC.js} +1 -1
- package/dist/{validate-BUiBDGcK.js → validate-lQWcaLZr.js} +4 -4
- package/dist/validateExtractionResult-BnSV5Z6F.js +343 -0
- package/dist/{validationError-CipBbukM.js → validationError-DprLeGG3.js} +2 -2
- package/package.json +2 -2
- package/dist/AdaptiveWorkflow-DcNkLVei.js +0 -5112
- package/dist/Address-CX1D0_2b.js +0 -133
- package/dist/GlobalEntryModal-BdnqANLh.js +0 -353
- package/dist/JpAddress-DxPC1_Og.js +0 -284
- package/dist/JpAddress.module-BBUPrd-N.js +0 -48
- package/dist/RadioGroup-DcR1jQy7.js +0 -84
- package/dist/RootBusinessDetailsPage-C0F7j2XS.js +0 -68
- package/dist/SoleProprietorshipPage-SrAcCnvl.js +0 -70
- package/dist/TrustMemberCompanyPage-D6iTASaK.js +0 -109
- package/dist/bafinUtils-BnYNUBzu.js +0 -276
- package/dist/bg-BG-BkIvSbsH.js +0 -7
- package/dist/bg-BG-Bmveyt6S.js +0 -7
- package/dist/cs-CZ-BQ5B0-Kt.js +0 -13
- package/dist/cs-CZ-CPvgcrDs.js +0 -7
- package/dist/cs-CZ-D5CQd_YI.js +0 -7
- package/dist/da-DK-Bl0-8FN4.js +0 -7
- package/dist/da-DK-CXAIXO3c.js +0 -13
- package/dist/da-DK-D5969QKP.js +0 -7
- package/dist/de-DE-DFQGGPCj.js +0 -13
- package/dist/de-DE-Hah2EvAY.js +0 -7
- package/dist/de-DE-uDUBu-3n.js +0 -7
- package/dist/debugStore-DpSgCNGn.js +0 -40
- package/dist/el-GR-C9KGlGa7.js +0 -7
- package/dist/el-GR-DWh7gn7M.js +0 -7
- package/dist/en-US-DqhKW1eC.js +0 -7
- package/dist/en-US-MqobYcqc.js +0 -7
- package/dist/en-US-X8pjkwa3.js +0 -7
- package/dist/es-ES-C7XCTACS.js +0 -7
- package/dist/es-ES-DSwi-qfd.js +0 -7
- package/dist/es-ES-_qbfha1o.js +0 -13
- package/dist/es-LA-0IrX8yr2.js +0 -7
- package/dist/es-LA-1H8dAUVR.js +0 -7
- package/dist/es-LA-DF0v3VMe.js +0 -13
- package/dist/et-EE-evCiUrFW.js +0 -13
- package/dist/fi-FI-BdrXeX9d.js +0 -7
- package/dist/fi-FI-Cdof5NRG.js +0 -7
- package/dist/fieldConfigurations-CZCFghnK.js +0 -11
- package/dist/form-rules-DV3hxYqZ.js +0 -359
- package/dist/fr-FR-DIiBHkhs.js +0 -13
- package/dist/fr-FR-NOULV1vy.js +0 -7
- package/dist/fr-FR-hleHEr-Y.js +0 -7
- package/dist/hr-HR--ti3n_XO.js +0 -7
- package/dist/hr-HR-2h3d5-q3.js +0 -7
- package/dist/hr-HR-DofgeWWO.js +0 -13
- package/dist/hu-HU-FdLZGnBz.js +0 -13
- package/dist/it-IT-CWIAGNlE.js +0 -7
- package/dist/it-IT-CXgZZgyU.js +0 -13
- package/dist/it-IT-Dq5z7p1-.js +0 -7
- package/dist/ja-JP-C1c2UPpy.js +0 -7
- package/dist/ja-JP-Dyhw0Ycj.js +0 -7
- package/dist/japanSupportUtils-H5Zfox2v.js +0 -11
- package/dist/lt-LT-BMI4JzrS.js +0 -7
- package/dist/lt-LT-BZ6seLuB.js +0 -13
- package/dist/lt-LT-C62dFtWW.js +0 -7
- package/dist/lv-LV-CMYrAWqu.js +0 -13
- package/dist/lv-LV-LkNZQ__4.js +0 -7
- package/dist/lv-LV-W0I-UUyj.js +0 -7
- package/dist/nl-NL-C9HoBicG.js +0 -7
- package/dist/nl-NL-CC2r7Ldv.js +0 -7
- package/dist/nl-NL-CiH1raQa.js +0 -13
- package/dist/no-NO-Bo9rlROU.js +0 -7
- package/dist/no-NO-Ce2vzrp7.js +0 -13
- package/dist/no-NO-V7_rz3uN.js +0 -7
- package/dist/patternValidators-CCaCwU3M.js +0 -73
- package/dist/pl-PL-2QyKX67Y.js +0 -7
- package/dist/pl-PL-STp7eeFE.js +0 -7
- package/dist/pl-PL-aErZF5Xz.js +0 -13
- package/dist/pt-BR-CFGpH3BW.js +0 -7
- package/dist/pt-BR-D08Fo1qY.js +0 -7
- package/dist/pt-BR-hRRebYjo.js +0 -13
- package/dist/pt-PT-BAQWYDe6.js +0 -7
- package/dist/pt-PT-BHR4CEnv.js +0 -7
- package/dist/pt-PT-UAIvemf-.js +0 -13
- package/dist/ro-RO-BJeKitCz.js +0 -13
- package/dist/ro-RO-ni-ZNqXU.js +0 -7
- package/dist/ro-RO-wG0rfL5w.js +0 -7
- package/dist/sk-SK-DJinBnS1.js +0 -7
- package/dist/sk-SK-DQAGAOJW.js +0 -7
- package/dist/sk-SK-ztSYyXUE.js +0 -13
- package/dist/sl-SI-B-MLX0nT.js +0 -7
- package/dist/sl-SI-BY4TzP-F.js +0 -13
- package/dist/sl-SI-DUaLO_J7.js +0 -7
- package/dist/sv-SE-5uxyEq2a.js +0 -7
- package/dist/sv-SE-CNQCI2nX.js +0 -7
- package/dist/sv-SE-CrUbxniG.js +0 -13
- package/dist/toFullWidth-Dgy4X4i8.js +0 -52
- package/dist/types/adaptiveWorkflow/component-registry-v2.d.ts +0 -46
- package/dist/types/adaptiveWorkflow/components/DynamicForm/DynamicForm.d.ts +0 -8
- package/dist/types/adaptiveWorkflow/components/DynamicForm/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/DynamicForm/useCustomerData.d.ts +0 -25
- package/dist/types/adaptiveWorkflow/components/Fields/AcceptTermsOfServiceWorkflow/AcceptTermsOfServiceWorkflow.d.ts +0 -5
- package/dist/types/adaptiveWorkflow/components/Fields/IdentityScreening/IdentityScreeningWorkflow.d.ts +0 -18
- package/dist/types/adaptiveWorkflow/components/Fields/SourceOfFundsWorkflow/SourceOfFundsWorkflow.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/Fields/TaxReportingWorkflow/TaxReportingWorkflow.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/SpecializedComponent/SpecializedComponent.d.ts +0 -34
- package/dist/types/adaptiveWorkflow/components/SubTask/SubTask.d.ts +0 -7
- package/dist/types/adaptiveWorkflow/components/SubTask/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/Task/Task.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/Task/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/TaskGroup/TaskGroup.d.ts +0 -6
- package/dist/types/adaptiveWorkflow/components/TaskGroup/contextMap.d.ts +0 -2
- package/dist/types/adaptiveWorkflow/components/TaskGroupParser/TaskGroupParser.d.ts +0 -7
- package/dist/types/adaptiveWorkflow/components/TaskItems/UboTaskItem/UboTaskItem.d.ts +0 -16
- package/dist/types/adaptiveWorkflow/components/TaskParser/TaskParser.d.ts +0 -7
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddress.d.ts +0 -7
- package/dist/uppercase-DvjwUM0n.js +0 -7
- /package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/WorkflowContextProvider.d.ts +0 -0
- /package/dist/types/{context → adaptiveWorkflow/context}/WorkflowContext/useWorkflowContext.d.ts +0 -0
|
@@ -1,54 +1,52 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f6124337-1cb4-459b-a723-117702107bc4", e._sentryDebugIdIdentifier = "sentry-dbid-f6124337-1cb4-459b-a723-117702107bc4");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
6
|
-
import { C as useDataset, J as extractFieldName, M as ExperimentNames, N as FeatureNames, T as datasetUtilities, Z as hasEmptyFields,
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
5
|
+
import { r as useTranslation, t as Trans } from "./translation-BOm4lmPx.js";
|
|
6
|
+
import { C as useDataset, J as extractFieldName, M as ExperimentNames, N as FeatureNames, T as datasetUtilities, Z as hasEmptyFields, j as useToggleContext, k as Header, mt as useAccountHolder, nt as isEmpty, pt as useSettingsContext, q as concatenateFieldNames, tt as isAccountIdentifierObscured, w as datasetIdentifier, x as Alert } from "./resolveEnvironment-C5lXxn2H.js";
|
|
7
|
+
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
|
+
import { t as Icon } from "./Icon-CurE93CX.js";
|
|
9
|
+
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
10
|
+
import { t as Button } from "./Button-DSD_afG_.js";
|
|
11
|
+
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
|
|
9
12
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
10
|
-
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-
|
|
11
|
-
import { t as
|
|
12
|
-
import { c as keysOf, n as cloneObject, o as objectsDeepEqual } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
13
|
+
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
|
|
14
|
+
import { a as objectsDeepEqual, s as keysOf, t as cloneObject } from "./genUtils-Ce61IJs8.js";
|
|
13
15
|
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
14
16
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
15
17
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
16
|
-
import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-
|
|
17
|
-
import { t as EEA_Countries } from "./countries-
|
|
18
|
-
import { i as useAnalyticsContext, t as Modal } from "./Modal-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
18
|
+
import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-CLBR9osP.js";
|
|
19
|
+
import { t as EEA_Countries } from "./countries-BE4iGVAo.js";
|
|
20
|
+
import { i as useAnalyticsContext, t as Modal } from "./Modal-SdFoz5L1.js";
|
|
21
|
+
import { a as SettingNames, t as InputText } from "./InputText-CQUZ2_58.js";
|
|
22
|
+
import { _ as LandingLayout, a as uppercase, c as customInputs, d as numericInputs, f as spacer, g as getPropsFromConfigurations, l as makeMask, m as augmentWithCountryConfigs, n as MaskedInput, o as alphaInputs, s as alphanumericInputs, t as createFormRules, u as nonInputs } from "./form-rules-BNF4Yysw.js";
|
|
21
23
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
22
|
-
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-
|
|
23
|
-
import { f as translateTranslatable, p as LoaderWrapper, r as Field, t as Select } from "./Select-
|
|
24
|
-
import { n as Confirm } from "./StructuredList-
|
|
25
|
-
import { C as FormContextProvider, S as
|
|
26
|
-
import { t as Image } from "./Image-
|
|
27
|
-
import { t as
|
|
24
|
+
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-BsNe9jOR.js";
|
|
25
|
+
import { f as translateTranslatable, p as LoaderWrapper, r as Field, t as Select } from "./Select-DuIuKg3u.js";
|
|
26
|
+
import { n as Confirm, t as StructuredList } from "./StructuredList-ByaWQPt4.js";
|
|
27
|
+
import { A as createFormUtils, C as isSummaryItem, M as trackNavigation, N as FormContextProvider, S as summaryStep, T as summaryItem, _ as useMultiForm, b as useFormComposer, c as validatePatternOnBlur, d as CountryField, f as useFormContext, h as FormFlow, j as mergeFieldMetadataIntoProps, l as resolveFieldMetadata, m as getRequiredForms, p as addValidityToForms, t as RadioGroup, v as isNotEmptyValidator } from "./RadioGroup-DvcMPdV_.js";
|
|
28
|
+
import { t as Image } from "./Image-D82terx4.js";
|
|
29
|
+
import { t as List } from "./List-ywoRPg-q.js";
|
|
30
|
+
import { n as useFormRouterContext, t as ErrorPanel } from "./ErrorPanel-Deuo7Len.js";
|
|
28
31
|
import { t as getFormSlice } from "./getFormSlice-C1ma6Xd4.js";
|
|
29
|
-
import { n as getLegalEntityNameBasedOnType, r as getPayoutAccountHolderName } from "./getName-
|
|
30
|
-
import { a as useUnifyLoadingStatus, i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-
|
|
31
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
32
|
-
import {
|
|
33
|
-
import { n as
|
|
34
|
-
import {
|
|
35
|
-
import { n as
|
|
36
|
-
import { a as isValidationError, i as isIdDocumentUploadError, n as isBankStatementUploadError, o as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable } from "./validationError-CipBbukM.js";
|
|
37
|
-
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
38
|
-
import { o as validatePatternOnBlur } from "./patternValidators-CCaCwU3M.js";
|
|
32
|
+
import { n as getLegalEntityNameBasedOnType, r as getPayoutAccountHolderName } from "./getName-s7qmFean.js";
|
|
33
|
+
import { a as useUnifyLoadingStatus, i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-R6-FnjjY.js";
|
|
34
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-Ceflt6Ba.js";
|
|
35
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-B2Yvt5KJ.js";
|
|
36
|
+
import { a as createDocumentRequest, i as bytesToSize, l as getFileExtention, n as fileValidationRules, o as documentApiUtils, r as DropzoneFile, s as getDocument, t as defaultFileValidationOptions } from "./validate-COZwjFYQ.js";
|
|
37
|
+
import { n as omitObscuredFieldsIfUnchanged, t as AdyenKycSdkError } from "./error-BAlndbwJ.js";
|
|
38
|
+
import { a as isValidationError, i as isIdDocumentUploadError, n as isBankStatementUploadError, o as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable } from "./validationError-DprLeGG3.js";
|
|
39
39
|
import { t as bankStatementDescriptionPattern } from "./basePatterns-plHFNzgJ.js";
|
|
40
|
-
import { t as
|
|
41
|
-
import { t as
|
|
42
|
-
import { t as
|
|
43
|
-
import { t as InputText } from "./InputText-Cf9ccCaj.js";
|
|
44
|
-
import { t as RadioGroup } from "./RadioGroup-DcR1jQy7.js";
|
|
45
|
-
import { t as ContextGuidance } from "./ContextGuidance-BwO0HQqx.js";
|
|
40
|
+
import { t as TextArea } from "./TextArea-DONjpYoD.js";
|
|
41
|
+
import { t as Link } from "./Link-B-gN0d8l.js";
|
|
42
|
+
import { t as ContextGuidance } from "./ContextGuidance-Crh1eg4L.js";
|
|
46
43
|
import { t as Tag } from "./Tag-CNeDHqKp.js";
|
|
47
|
-
import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-
|
|
44
|
+
import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-D-RdVquH.js";
|
|
48
45
|
import { t as Currencies } from "./currency-DQwXq9Mc.js";
|
|
49
|
-
import { t as currencyByCountry } from "./types-
|
|
50
|
-
import { t as useUnincorporatedPartnershipMembers } from "./useUnincorporatedPartnershipMembers-
|
|
46
|
+
import { t as currencyByCountry } from "./types-Ai_80DXu.js";
|
|
47
|
+
import { t as useUnincorporatedPartnershipMembers } from "./useUnincorporatedPartnershipMembers-00l8eNLk.js";
|
|
51
48
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
49
|
+
import { t as NewSummary } from "./NewSummary-Bs2oSxfd.js";
|
|
52
50
|
import { lazy, memo, useMemo, useRef, useState } from "preact/compat";
|
|
53
51
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
54
52
|
import cx from "classnames";
|
|
@@ -881,6 +879,13 @@ var validDocumentTypes = [
|
|
|
881
879
|
];
|
|
882
880
|
var paymentCardDocumentTypes = ["card"];
|
|
883
881
|
var idDocumentTypes = ["idDocument"];
|
|
882
|
+
var allowedCountries = [
|
|
883
|
+
"US",
|
|
884
|
+
"FR",
|
|
885
|
+
"GB",
|
|
886
|
+
"AU"
|
|
887
|
+
];
|
|
888
|
+
var expandedCountries = ["CA", "DE"];
|
|
884
889
|
function BankDocumentClassification(props) {
|
|
885
890
|
const { legalEntity, id, fieldValidationErrors: fieldProblems, formVerificationErrors, country, handleNextClick } = props;
|
|
886
891
|
const { t } = useTranslation("banking");
|
|
@@ -900,15 +905,16 @@ function BankDocumentClassification(props) {
|
|
|
900
905
|
trustedFields
|
|
901
906
|
}, commonT);
|
|
902
907
|
const { isFeatureEnabled } = useToggleContext();
|
|
903
|
-
const enableBankDocumentClassification = isFeatureEnabled(FeatureNames.EnableBankDocumentClassification);
|
|
904
|
-
const
|
|
908
|
+
const enableBankDocumentClassification = isFeatureEnabled(FeatureNames.EnableBankDocumentClassification) && !!country && allowedCountries.includes(country);
|
|
909
|
+
const isExpandedCountryEnabled = isFeatureEnabled(FeatureNames.EnableBankDocumentClassificationShadowMode) && !!country && expandedCountries.includes(country);
|
|
910
|
+
const shouldClassifyDocument = enableBankDocumentClassification || isExpandedCountryEnabled;
|
|
905
911
|
const validateDocumentMutation = useValidateDocumentMultipart({
|
|
906
912
|
onSuccess: (response) => {
|
|
907
913
|
const documentType = response?.documentType || "";
|
|
908
914
|
let rejectedMessage = null;
|
|
909
915
|
if (paymentCardDocumentTypes.includes(documentType)) rejectedMessage = "imagesOfDebitOrCreditCardsAreNotAccepted";
|
|
910
916
|
else if (idDocumentTypes.includes(documentType)) rejectedMessage = "idDocumentsAreNotAccepted";
|
|
911
|
-
if (
|
|
917
|
+
if (rejectedMessage) {
|
|
912
918
|
userEvents.addEvent("Encountered error", {
|
|
913
919
|
actionType: "reject",
|
|
914
920
|
actionLevel: "journey",
|
|
@@ -922,14 +928,13 @@ function BankDocumentClassification(props) {
|
|
|
922
928
|
userEvents.addEvent("Success", {
|
|
923
929
|
actionType: "upload",
|
|
924
930
|
actionLevel: "journey",
|
|
925
|
-
label:
|
|
931
|
+
label: "bankDocumentClassification",
|
|
926
932
|
additionalData: {
|
|
927
933
|
documentType,
|
|
928
934
|
subDocumentType: response?.subDocumentType,
|
|
929
935
|
blurryOrLowQuality: response?.blurryOrLowQuality
|
|
930
936
|
}
|
|
931
937
|
});
|
|
932
|
-
if (isShadowMode) return;
|
|
933
938
|
if (response?.blurryOrLowQuality || !validDocumentTypes.includes(response?.documentType || "")) {
|
|
934
939
|
userEvents.addEvent("Opened modal", {
|
|
935
940
|
actionType: "open",
|
|
@@ -943,9 +948,8 @@ function BankDocumentClassification(props) {
|
|
|
943
948
|
userEvents.addEvent("Encountered error", {
|
|
944
949
|
actionType: "upload",
|
|
945
950
|
actionLevel: "journey",
|
|
946
|
-
label:
|
|
951
|
+
label: "bankDocumentClassification"
|
|
947
952
|
});
|
|
948
|
-
if (isShadowMode) return;
|
|
949
953
|
logger.error("Document validation failed:", error);
|
|
950
954
|
setShowReviewModal(false);
|
|
951
955
|
},
|
|
@@ -956,12 +960,7 @@ function BankDocumentClassification(props) {
|
|
|
956
960
|
const handleDocumentUpload = async (files) => {
|
|
957
961
|
setDocumentTypeErrorMessage(null);
|
|
958
962
|
handleChange("bankStatementDocument")(files);
|
|
959
|
-
if (!
|
|
960
|
-
"US",
|
|
961
|
-
"FR",
|
|
962
|
-
"GB",
|
|
963
|
-
"AU"
|
|
964
|
-
].includes(country || "") || isShadowMode)) return;
|
|
963
|
+
if (!shouldClassifyDocument) return;
|
|
965
964
|
if (files.length > 0) {
|
|
966
965
|
const file = files[0];
|
|
967
966
|
if (file && file instanceof File) {
|
|
@@ -1069,7 +1068,7 @@ function BankDocumentClassification(props) {
|
|
|
1069
1068
|
name: "bankStatementDocument",
|
|
1070
1069
|
isValid: valid?.bankStatementDocument ?? true,
|
|
1071
1070
|
children: (childProps) => /* @__PURE__ */ jsxs("div", {
|
|
1072
|
-
className: validateDocumentMutation.isPending
|
|
1071
|
+
className: validateDocumentMutation.isPending ? BankDocumentClassification_module_default.filePickerDisabled : "",
|
|
1073
1072
|
children: [/* @__PURE__ */ jsx(FilePicker, {
|
|
1074
1073
|
...childProps,
|
|
1075
1074
|
name: "bankStatementDocument",
|
|
@@ -1077,10 +1076,10 @@ function BankDocumentClassification(props) {
|
|
|
1077
1076
|
setFiles: handleDocumentUpload,
|
|
1078
1077
|
isValid: valid?.bankStatementDocument ?? true,
|
|
1079
1078
|
errorMessage: errors?.bankStatementDocument?.errorMessage,
|
|
1080
|
-
loading: validateDocumentMutation.isPending
|
|
1079
|
+
loading: validateDocumentMutation.isPending,
|
|
1081
1080
|
enableTracking: true,
|
|
1082
1081
|
...bankStatementValidationOptions
|
|
1083
|
-
}),
|
|
1082
|
+
}), shouldClassifyDocument && aiLabelMessage]
|
|
1084
1083
|
})
|
|
1085
1084
|
}),
|
|
1086
1085
|
data?.bankStatementDocument?.length ? /* @__PURE__ */ jsx(Field, {
|
|
@@ -2491,22 +2490,26 @@ var regions = {
|
|
|
2491
2490
|
};
|
|
2492
2491
|
var getAllowedBankCountries = (country) => Object.values(regions).find((countriesInARegion) => countriesInARegion.includes(country)) ?? [country];
|
|
2493
2492
|
var VerificationMethod_module_default = {
|
|
2494
|
-
"instant-verification-error": "_instant-verification-
|
|
2495
|
-
instantVerificationError: "_instant-verification-
|
|
2496
|
-
"payout-verification-method-card": "_payout-verification-method-
|
|
2497
|
-
payoutVerificationMethodCard: "_payout-verification-method-
|
|
2498
|
-
"payout-verification-method-card-
|
|
2499
|
-
|
|
2500
|
-
"payout-verification-method-card-
|
|
2501
|
-
|
|
2502
|
-
"payout-verification-method-card-
|
|
2503
|
-
|
|
2504
|
-
"payout-verification-method-card-
|
|
2505
|
-
|
|
2506
|
-
"payout-verification-method-card-
|
|
2507
|
-
|
|
2508
|
-
"payout-verification-method-card-
|
|
2509
|
-
|
|
2493
|
+
"instant-verification-error": "_instant-verification-error_1maus_1",
|
|
2494
|
+
instantVerificationError: "_instant-verification-error_1maus_1",
|
|
2495
|
+
"payout-verification-method-card": "_payout-verification-method-card_1maus_5",
|
|
2496
|
+
payoutVerificationMethodCard: "_payout-verification-method-card_1maus_5",
|
|
2497
|
+
"payout-verification-method-card-disabled": "_payout-verification-method-card-disabled_1maus_9",
|
|
2498
|
+
payoutVerificationMethodCardDisabled: "_payout-verification-method-card-disabled_1maus_9",
|
|
2499
|
+
"payout-verification-method-card-image": "_payout-verification-method-card-image_1maus_14",
|
|
2500
|
+
payoutVerificationMethodCardImage: "_payout-verification-method-card-image_1maus_14",
|
|
2501
|
+
"payout-verification-method-card-body": "_payout-verification-method-card-body_1maus_18",
|
|
2502
|
+
payoutVerificationMethodCardBody: "_payout-verification-method-card-body_1maus_18",
|
|
2503
|
+
"payout-verification-method-card-image-container": "_payout-verification-method-card-image-container_1maus_31",
|
|
2504
|
+
payoutVerificationMethodCardImageContainer: "_payout-verification-method-card-image-container_1maus_31",
|
|
2505
|
+
"payout-verification-method-card-tag": "_payout-verification-method-card-tag_1maus_48",
|
|
2506
|
+
payoutVerificationMethodCardTag: "_payout-verification-method-card-tag_1maus_48",
|
|
2507
|
+
"payout-verification-method-card-content": "_payout-verification-method-card-content_1maus_53",
|
|
2508
|
+
payoutVerificationMethodCardContent: "_payout-verification-method-card-content_1maus_53",
|
|
2509
|
+
"payout-verification-method-card-title": "_payout-verification-method-card-title_1maus_67",
|
|
2510
|
+
payoutVerificationMethodCardTitle: "_payout-verification-method-card-title_1maus_67",
|
|
2511
|
+
"payout-verification-method-card-subtitle": "_payout-verification-method-card-subtitle_1maus_78",
|
|
2512
|
+
payoutVerificationMethodCardSubtitle: "_payout-verification-method-card-subtitle_1maus_78"
|
|
2510
2513
|
};
|
|
2511
2514
|
//#endregion
|
|
2512
2515
|
//#region src/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.tsx
|
|
@@ -2518,13 +2521,14 @@ var PayoutVerificationMethodOptionIcon = ({ method, methodsMetadata }) => {
|
|
|
2518
2521
|
});
|
|
2519
2522
|
};
|
|
2520
2523
|
var PayoutVerificationMethodOptionCard = ({ payoutMethod, title, subtitle, tag, selectVerificationMethod, payoutVerificationMethod, methodsMetadata, bankInfoValidated, instantVerificationAvailable }) => {
|
|
2524
|
+
const isCardDisabled = bankInfoValidated || payoutMethod === "instantVerification" && !instantVerificationAvailable;
|
|
2521
2525
|
return /* @__PURE__ */ jsx(Card, {
|
|
2522
2526
|
onClick: () => selectVerificationMethod(payoutMethod),
|
|
2523
|
-
disabled:
|
|
2527
|
+
disabled: isCardDisabled,
|
|
2524
2528
|
selected: payoutMethod === payoutVerificationMethod,
|
|
2525
2529
|
padding: "none",
|
|
2526
2530
|
children: /* @__PURE__ */ jsxs("div", {
|
|
2527
|
-
className: cx(VerificationMethod_module_default.payoutVerificationMethodCardBody, VerificationMethod_module_default.payoutVerificationMethodCard),
|
|
2531
|
+
className: cx(VerificationMethod_module_default.payoutVerificationMethodCardBody, VerificationMethod_module_default.payoutVerificationMethodCard, { [VerificationMethod_module_default.payoutVerificationMethodCardDisabled]: isCardDisabled }),
|
|
2528
2532
|
children: [/* @__PURE__ */ jsx("div", {
|
|
2529
2533
|
className: VerificationMethod_module_default.payoutVerificationMethodCardImageContainer,
|
|
2530
2534
|
children: /* @__PURE__ */ jsx(PayoutVerificationMethodOptionIcon, {
|
|
@@ -2538,13 +2542,14 @@ var PayoutVerificationMethodOptionCard = ({ payoutMethod, title, subtitle, tag,
|
|
|
2538
2542
|
/* @__PURE__ */ jsx(Typography, {
|
|
2539
2543
|
el: "h4",
|
|
2540
2544
|
variant: "body-strongest",
|
|
2545
|
+
color: isCardDisabled ? "disabled" : "primary",
|
|
2541
2546
|
className: VerificationMethod_module_default.payoutVerificationMethodCardTitle,
|
|
2542
2547
|
children: title
|
|
2543
2548
|
}),
|
|
2544
2549
|
/* @__PURE__ */ jsx(Typography, {
|
|
2545
2550
|
el: "p",
|
|
2546
2551
|
variant: "body",
|
|
2547
|
-
color: "secondary",
|
|
2552
|
+
color: isCardDisabled ? "disabled" : "secondary",
|
|
2548
2553
|
className: VerificationMethod_module_default.payoutVerificationMethodCardSubtitle,
|
|
2549
2554
|
children: subtitle
|
|
2550
2555
|
})
|
|
@@ -2654,7 +2659,7 @@ function PayoutVerificationMethod(props) {
|
|
|
2654
2659
|
subtitle: t(($) => $["theFastestWayToVerifyYourAccount"]),
|
|
2655
2660
|
tag: /* @__PURE__ */ jsx(Tag, {
|
|
2656
2661
|
variant: "blue",
|
|
2657
|
-
className: "u-margin-bottom-8",
|
|
2662
|
+
className: cx("u-margin-bottom-8", VerificationMethod_module_default.payoutVerificationMethodCardTag),
|
|
2658
2663
|
children: t(($) => $["recommended"])
|
|
2659
2664
|
}),
|
|
2660
2665
|
selectVerificationMethod,
|
|
@@ -3018,6 +3023,178 @@ var getAppropriatePayoutDetailsSteps = (isEditing, instantVerificationAvailable,
|
|
|
3018
3023
|
if (isEditing || !instantVerificationAvailable && !canChangeCountry || isForcedManualPayoutFlowEnabled) delete dependentSteps["payoutVerificationMethod"];
|
|
3019
3024
|
return dependentSteps;
|
|
3020
3025
|
};
|
|
3026
|
+
var VerifiedWith_module_default = {
|
|
3027
|
+
"verified-with": "_verified-with_j7pcm_1",
|
|
3028
|
+
verifiedWith: "_verified-with_j7pcm_1",
|
|
3029
|
+
logo: "_logo_j7pcm_5"
|
|
3030
|
+
};
|
|
3031
|
+
//#endregion
|
|
3032
|
+
//#region src/components/Shared/VerifiedWith/VerifiedWith.tsx
|
|
3033
|
+
var VerifiedWith = ({ name, logo }) => {
|
|
3034
|
+
const { t } = useTranslation("common");
|
|
3035
|
+
return /* @__PURE__ */ jsx(List, {
|
|
3036
|
+
variant: "grouped-secondary",
|
|
3037
|
+
children: /* @__PURE__ */ jsx(StructuredList, {
|
|
3038
|
+
className: VerifiedWith_module_default.verifiedWith,
|
|
3039
|
+
items: [{
|
|
3040
|
+
term: t(($) => $["verifiedWith"]),
|
|
3041
|
+
details: logo ? /* @__PURE__ */ jsx(Image, {
|
|
3042
|
+
className: VerifiedWith_module_default.logo,
|
|
3043
|
+
lazyLoadedImage: logo,
|
|
3044
|
+
alt: name
|
|
3045
|
+
}) : name
|
|
3046
|
+
}]
|
|
3047
|
+
})
|
|
3048
|
+
});
|
|
3049
|
+
};
|
|
3050
|
+
//#endregion
|
|
3051
|
+
//#region src/components/BankAccount/tasks/PayoutDetailsDropin/utils.ts
|
|
3052
|
+
var CUSTOM_LABELS = {
|
|
3053
|
+
verifiedAccountHolder: "accountHolder",
|
|
3054
|
+
verifiedBankCountry: "bankCountry",
|
|
3055
|
+
verifiedBankName: "bankName",
|
|
3056
|
+
verifiedCurrencyCode: "currencyCode",
|
|
3057
|
+
verifiedBankAccountNumber: "bankAccountNumber"
|
|
3058
|
+
};
|
|
3059
|
+
/**
|
|
3060
|
+
* we are determining the header of the modal from the first error. to be refined in later iterations
|
|
3061
|
+
*
|
|
3062
|
+
* @param errors
|
|
3063
|
+
*/
|
|
3064
|
+
var getInvalidFieldsErrorHeader = (invalidField) => {
|
|
3065
|
+
switch (invalidField) {
|
|
3066
|
+
case "LEGAL_BUSINESS_NAME":
|
|
3067
|
+
case "FIRST_NAME":
|
|
3068
|
+
case "LAST_NAME": return "caasBankAccountHolderDoesNotMatch";
|
|
3069
|
+
default: return "weCouldntCompleteTheAccountCheck";
|
|
3070
|
+
}
|
|
3071
|
+
};
|
|
3072
|
+
/**
|
|
3073
|
+
* we are determining the content of the modal from the first error. to be refined in later iterations
|
|
3074
|
+
*
|
|
3075
|
+
* @param errors
|
|
3076
|
+
*/
|
|
3077
|
+
var getInvalidFieldsErrorContent = (invalidField) => {
|
|
3078
|
+
switch (invalidField) {
|
|
3079
|
+
case "LEGAL_BUSINESS_NAME": return "caasBankAccountMustBeInYourNameYourBusinessLegalNameOrDoingBusinessAs";
|
|
3080
|
+
case "FIRST_NAME":
|
|
3081
|
+
case "LAST_NAME": return "caasBankAccountMustBeInYourName";
|
|
3082
|
+
default: return "weCouldntCompleteTheAccountCheck";
|
|
3083
|
+
}
|
|
3084
|
+
};
|
|
3085
|
+
var defaultInvalidErrorMessage = {
|
|
3086
|
+
header: "weCouldntCompleteTheAccountCheck",
|
|
3087
|
+
content: "weCouldntCompleteTheAccountCheck"
|
|
3088
|
+
};
|
|
3089
|
+
var getInvalidFieldsErrorMessage = (errors) => {
|
|
3090
|
+
if (!errors || errors.length === 0) return defaultInvalidErrorMessage;
|
|
3091
|
+
const [firstError] = errors;
|
|
3092
|
+
const { invalidFields } = firstError;
|
|
3093
|
+
if (!invalidFields || invalidFields.length === 0) return defaultInvalidErrorMessage;
|
|
3094
|
+
const [firstInvalidField] = invalidFields;
|
|
3095
|
+
return {
|
|
3096
|
+
header: getInvalidFieldsErrorHeader(firstInvalidField),
|
|
3097
|
+
content: getInvalidFieldsErrorContent(firstInvalidField)
|
|
3098
|
+
};
|
|
3099
|
+
};
|
|
3100
|
+
var getPayoutVerificationMethod = (transferInstrument, instantVerificationEnabled) => {
|
|
3101
|
+
if (transferInstrument) return "manualVerification";
|
|
3102
|
+
else return instantVerificationEnabled ? "instantVerification" : "manualVerification";
|
|
3103
|
+
};
|
|
3104
|
+
/**
|
|
3105
|
+
* Ensures that all the "verified" fields have the corresponding regular field's label in the summary.
|
|
3106
|
+
* Same as if they were manually entered.
|
|
3107
|
+
*/
|
|
3108
|
+
var formatAccountVerificationSummary = (data, getCountryName) => {
|
|
3109
|
+
if (!data) return {};
|
|
3110
|
+
const summary = {};
|
|
3111
|
+
keysOf(CUSTOM_LABELS).forEach((key) => {
|
|
3112
|
+
const value = data[key];
|
|
3113
|
+
if (!value) return;
|
|
3114
|
+
summary[key] = summaryItem(CUSTOM_LABELS[key], key === "verifiedBankCountry" ? getCountryName(value) ?? value : value);
|
|
3115
|
+
});
|
|
3116
|
+
return summary;
|
|
3117
|
+
};
|
|
3118
|
+
//#endregion
|
|
3119
|
+
//#region src/components/BankAccount/tasks/PayoutDetailsDropin/PayoutSummary.tsx
|
|
3120
|
+
var omittedKeys = ["transferInstrumentId", "payoutVerificationMethod"];
|
|
3121
|
+
var formsWithoutEditButton = ["payoutVerificationMethod", "payoutAccountVerification"];
|
|
3122
|
+
var labelOverrides = { payoutAccountVerification: "bankAccount" };
|
|
3123
|
+
var PayoutSummary = ({ data, forms, omittedForms, problems, provider, shouldUseBankAccountType }) => {
|
|
3124
|
+
const { t, i18n } = useTranslation("common");
|
|
3125
|
+
const { t: bankingT } = useTranslation("banking");
|
|
3126
|
+
const { goToFormByFormId } = useFormRouterContext();
|
|
3127
|
+
const { getCountryName } = datasetUtilities(i18n.language);
|
|
3128
|
+
const formatFileSummaryData = (bankDocuments) => {
|
|
3129
|
+
const bankStatementDocument = bankDocuments?.bankStatementDocument?.[0];
|
|
3130
|
+
return {
|
|
3131
|
+
documentType: bankDocuments?.documentType && t(($) => $[bankDocuments?.documentType]),
|
|
3132
|
+
fileName: bankStatementDocument?.name,
|
|
3133
|
+
description: bankDocuments?.description
|
|
3134
|
+
};
|
|
3135
|
+
};
|
|
3136
|
+
/**
|
|
3137
|
+
* Display copy of the form data. Inputs are read from the typed `data` and only the widened
|
|
3138
|
+
* clone is written to, so form state is never mutated.
|
|
3139
|
+
*/
|
|
3140
|
+
const formatDataForSummary = () => {
|
|
3141
|
+
const summaryData = cloneObject(data);
|
|
3142
|
+
const { bankCountry } = data.payoutVerificationMethod ?? {};
|
|
3143
|
+
const { accountType } = data.payoutAccountDetails ?? {};
|
|
3144
|
+
if (summaryData.payoutAccountDetails) {
|
|
3145
|
+
if (bankCountry) summaryData.payoutAccountDetails.bankCountry = getCountryName(bankCountry) ?? void 0;
|
|
3146
|
+
if (shouldUseBankAccountType && accountType) summaryData.payoutAccountDetails.accountType = bankingT(($) => $[accountType]);
|
|
3147
|
+
}
|
|
3148
|
+
if (data.payoutAccountDocuments) summaryData.payoutAccountDocuments = formatFileSummaryData(data.payoutAccountDocuments);
|
|
3149
|
+
summaryData.payoutAccountVerification = formatAccountVerificationSummary(data.payoutAccountVerification, getCountryName);
|
|
3150
|
+
return summaryData;
|
|
3151
|
+
};
|
|
3152
|
+
const summaryData = formatDataForSummary();
|
|
3153
|
+
const formatItemsForStructuredList = (formData) => Object.entries(formData).flatMap(([key, value]) => {
|
|
3154
|
+
if (omittedKeys.includes(key) || !value) return [];
|
|
3155
|
+
if (isSummaryItem(value)) {
|
|
3156
|
+
const { summaryLabel, summaryValue, preTranslated } = value;
|
|
3157
|
+
return [{
|
|
3158
|
+
term: preTranslated ? summaryLabel : translateTranslatable(t, summaryLabel) ?? "",
|
|
3159
|
+
details: summaryValue
|
|
3160
|
+
}];
|
|
3161
|
+
}
|
|
3162
|
+
return [{
|
|
3163
|
+
term: t(($) => $[key]),
|
|
3164
|
+
details: value
|
|
3165
|
+
}];
|
|
3166
|
+
});
|
|
3167
|
+
return /* @__PURE__ */ jsx(NewSummary, {
|
|
3168
|
+
handleEditForm: goToFormByFormId,
|
|
3169
|
+
sections: forms.flatMap(({ formId, formName }) => {
|
|
3170
|
+
const formData = summaryData[formId];
|
|
3171
|
+
if (!formData || Object.values(formData).every((value) => isEmpty(value)) || formId === summaryStep.formId || omittedForms.includes(formId)) return [];
|
|
3172
|
+
return [{
|
|
3173
|
+
formId,
|
|
3174
|
+
label: t(($) => $[labelOverrides[formId] ?? formName]),
|
|
3175
|
+
items: formatItemsForStructuredList(formData),
|
|
3176
|
+
hideEditButton: formsWithoutEditButton.includes(formId)
|
|
3177
|
+
}];
|
|
3178
|
+
}),
|
|
3179
|
+
children: [/* @__PURE__ */ jsx(ErrorPanel, {
|
|
3180
|
+
validationErrors: problems?.validationErrors && Object.values(problems.validationErrors)?.reduce((acc, validError) => ({
|
|
3181
|
+
...acc,
|
|
3182
|
+
...validError
|
|
3183
|
+
}), {}),
|
|
3184
|
+
verificationErrors: problems?.verificationErrors && Object.values(problems.verificationErrors)?.reduce((acc, verifError) => ({
|
|
3185
|
+
...acc,
|
|
3186
|
+
...verifError
|
|
3187
|
+
}), {}),
|
|
3188
|
+
formUtils: createFormUtils({ labels: {} }, t),
|
|
3189
|
+
id: "ariaErrorField",
|
|
3190
|
+
slot: "errorPanel"
|
|
3191
|
+
}, "errorPanel"), ...provider ? [/* @__PURE__ */ jsx(VerifiedWith, {
|
|
3192
|
+
name: provider.name,
|
|
3193
|
+
logo: getProviderIconName(provider.name),
|
|
3194
|
+
slot: "extraContent"
|
|
3195
|
+
}, "extraContent")] : []]
|
|
3196
|
+
});
|
|
3197
|
+
};
|
|
3021
3198
|
//#endregion
|
|
3022
3199
|
//#region src/components/BankAccount/utils/defaultPayoutAccountFormat.ts
|
|
3023
3200
|
var defaultPayoutAccountFormat = {
|
|
@@ -3336,73 +3513,6 @@ var usePayoutAccountFormat = (country, existingBankAccountFormat) => {
|
|
|
3336
3513
|
return accountFormats?.[activeFormat];
|
|
3337
3514
|
};
|
|
3338
3515
|
//#endregion
|
|
3339
|
-
//#region src/components/BankAccount/tasks/PayoutDetailsDropin/utils.ts
|
|
3340
|
-
var CUSTOM_LABELS = {
|
|
3341
|
-
verifiedAccountHolder: "accountHolder",
|
|
3342
|
-
verifiedBankCountry: "bankCountry",
|
|
3343
|
-
verifiedBankName: "bankName",
|
|
3344
|
-
verifiedCurrencyCode: "currencyCode",
|
|
3345
|
-
verifiedBankAccountNumber: "bankAccountNumber"
|
|
3346
|
-
};
|
|
3347
|
-
/**
|
|
3348
|
-
* we are determining the header of the modal from the first error. to be refined in later iterations
|
|
3349
|
-
*
|
|
3350
|
-
* @param errors
|
|
3351
|
-
*/
|
|
3352
|
-
var getInvalidFieldsErrorHeader = (invalidField) => {
|
|
3353
|
-
switch (invalidField) {
|
|
3354
|
-
case "LEGAL_BUSINESS_NAME":
|
|
3355
|
-
case "FIRST_NAME":
|
|
3356
|
-
case "LAST_NAME": return "caasBankAccountHolderDoesNotMatch";
|
|
3357
|
-
default: return "weCouldntCompleteTheAccountCheck";
|
|
3358
|
-
}
|
|
3359
|
-
};
|
|
3360
|
-
/**
|
|
3361
|
-
* we are determining the content of the modal from the first error. to be refined in later iterations
|
|
3362
|
-
*
|
|
3363
|
-
* @param errors
|
|
3364
|
-
*/
|
|
3365
|
-
var getInvalidFieldsErrorContent = (invalidField) => {
|
|
3366
|
-
switch (invalidField) {
|
|
3367
|
-
case "LEGAL_BUSINESS_NAME": return "caasBankAccountMustBeInYourNameYourBusinessLegalNameOrDoingBusinessAs";
|
|
3368
|
-
case "FIRST_NAME":
|
|
3369
|
-
case "LAST_NAME": return "caasBankAccountMustBeInYourName";
|
|
3370
|
-
default: return "weCouldntCompleteTheAccountCheck";
|
|
3371
|
-
}
|
|
3372
|
-
};
|
|
3373
|
-
var defaultInvalidErrorMessage = {
|
|
3374
|
-
header: "weCouldntCompleteTheAccountCheck",
|
|
3375
|
-
content: "weCouldntCompleteTheAccountCheck"
|
|
3376
|
-
};
|
|
3377
|
-
var getInvalidFieldsErrorMessage = (errors) => {
|
|
3378
|
-
if (!errors || errors.length === 0) return defaultInvalidErrorMessage;
|
|
3379
|
-
const [firstError] = errors;
|
|
3380
|
-
const { invalidFields } = firstError;
|
|
3381
|
-
if (!invalidFields || invalidFields.length === 0) return defaultInvalidErrorMessage;
|
|
3382
|
-
const [firstInvalidField] = invalidFields;
|
|
3383
|
-
return {
|
|
3384
|
-
header: getInvalidFieldsErrorHeader(firstInvalidField),
|
|
3385
|
-
content: getInvalidFieldsErrorContent(firstInvalidField)
|
|
3386
|
-
};
|
|
3387
|
-
};
|
|
3388
|
-
var getPayoutVerificationMethod = (transferInstrument, instantVerificationEnabled) => {
|
|
3389
|
-
if (transferInstrument) return "manualVerification";
|
|
3390
|
-
else return instantVerificationEnabled ? "instantVerification" : "manualVerification";
|
|
3391
|
-
};
|
|
3392
|
-
/**
|
|
3393
|
-
* Ensures that all the "verified" fields have the corresponding regular field's label in the summary.
|
|
3394
|
-
* Same as if they were manually entered.
|
|
3395
|
-
*/
|
|
3396
|
-
var formatAccountVerificationSummary = (data) => {
|
|
3397
|
-
if (!data) return {};
|
|
3398
|
-
const summary = {};
|
|
3399
|
-
keysOf(CUSTOM_LABELS).forEach((key) => {
|
|
3400
|
-
if (!data[key]) return;
|
|
3401
|
-
summary[key] = summaryItem(CUSTOM_LABELS[key], data[key]);
|
|
3402
|
-
});
|
|
3403
|
-
return summary;
|
|
3404
|
-
};
|
|
3405
|
-
//#endregion
|
|
3406
3516
|
//#region src/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.tsx
|
|
3407
3517
|
function PayoutDetailsDropin({ legalEntityResponse, problems: propProblems, onSubmit: externalOnSubmit, asModal = false, handleCloseClick, taskType: propTaskType, handleHomeClick, currentTransferInstrumentId, navigateBackToTaskList, handleBackClick: externalBackClick, openBankingPartnerConfigId }) {
|
|
3408
3518
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
@@ -3755,27 +3865,6 @@ function PayoutDetailsDropin({ legalEntityResponse, problems: propProblems, onSu
|
|
|
3755
3865
|
});
|
|
3756
3866
|
}
|
|
3757
3867
|
};
|
|
3758
|
-
const formatFileSummaryData = (bankDocuments) => {
|
|
3759
|
-
const bankStatementDocument = bankDocuments?.bankStatementDocument?.[0];
|
|
3760
|
-
return {
|
|
3761
|
-
documentType: bankDocuments?.documentType && commonT(($) => $[bankDocuments?.documentType]),
|
|
3762
|
-
fileName: bankStatementDocument?.name,
|
|
3763
|
-
description: bankDocuments?.description
|
|
3764
|
-
};
|
|
3765
|
-
};
|
|
3766
|
-
const datasetUtils = datasetUtilities(i18next.language);
|
|
3767
|
-
const formatDataForSummary = () => {
|
|
3768
|
-
const summaryData = cloneObject(multiForm.data);
|
|
3769
|
-
if (summaryData.payoutAccountDetails) summaryData.payoutAccountDetails.accountHolder = accountHolderName;
|
|
3770
|
-
if (summaryData.payoutVerificationMethod?.bankCountry && summaryData.payoutAccountDetails) summaryData.payoutAccountDetails.bankCountry = datasetUtils.getCountryName(summaryData.payoutVerificationMethod.bankCountry);
|
|
3771
|
-
if (shouldUseBankAccountType && summaryData.payoutAccountDetails?.accountType) {
|
|
3772
|
-
const accountTypeKey = summaryData.payoutAccountDetails.accountType;
|
|
3773
|
-
summaryData.payoutAccountDetails.accountType = t(($) => $[accountTypeKey]);
|
|
3774
|
-
}
|
|
3775
|
-
if (summaryData.payoutAccountDocuments) summaryData.payoutAccountDocuments = formatFileSummaryData(multiForm.data?.payoutAccountDocuments);
|
|
3776
|
-
summaryData.payoutAccountVerification = formatAccountVerificationSummary(multiForm.data.payoutAccountVerification);
|
|
3777
|
-
return summaryData;
|
|
3778
|
-
};
|
|
3779
3868
|
const createTrustedTransferInstrumentHandler = async (code, state) => {
|
|
3780
3869
|
try {
|
|
3781
3870
|
const trustedTransferInstrument = await handleCreateTrustedTransferInstrument({
|
|
@@ -3900,7 +3989,7 @@ function PayoutDetailsDropin({ legalEntityResponse, problems: propProblems, onSu
|
|
|
3900
3989
|
setPreviousTrustedInstrumentStatus(createTrustedTransferInstrumentStatus);
|
|
3901
3990
|
}
|
|
3902
3991
|
}
|
|
3903
|
-
const omittedForms =
|
|
3992
|
+
const omittedForms = [payoutSteps.payoutVerificationMethod.formId, ...isInstantVerificationFlow ? [payoutSteps.payoutAccountDetails.formId] : []];
|
|
3904
3993
|
const { header: invalidFieldHeader, content: invalidFieldContent } = getInvalidFieldsErrorMessage(checkAsAServiceData?.errors ?? []);
|
|
3905
3994
|
if (isFeatureEnabled(FeatureNames.EnableBankAccountDetailsLandingPage) && !hasStarted && !legalEntityResponse.transferInstruments?.length) return /* @__PURE__ */ jsx(PayoutDetailsGettingStarted, {
|
|
3906
3995
|
onGetStarted: () => setHasStarted(true),
|
|
@@ -3927,15 +4016,14 @@ function PayoutDetailsDropin({ legalEntityResponse, problems: propProblems, onSu
|
|
|
3927
4016
|
}), /* @__PURE__ */ jsx(FormContextProvider, {
|
|
3928
4017
|
form: multiForm,
|
|
3929
4018
|
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
3930
|
-
|
|
3931
|
-
data:
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
},
|
|
4019
|
+
summaryComponent: /* @__PURE__ */ jsx(PayoutSummary, {
|
|
4020
|
+
data: multiForm.data,
|
|
4021
|
+
forms,
|
|
4022
|
+
omittedForms,
|
|
4023
|
+
problems,
|
|
4024
|
+
provider: isInstantVerificationFlow ? provider : void 0,
|
|
4025
|
+
shouldUseBankAccountType
|
|
4026
|
+
}),
|
|
3939
4027
|
asModal,
|
|
3940
4028
|
currentStep: steps.current,
|
|
3941
4029
|
totalSteps: steps.total,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9ca015ed-c199-40f9-8f4e-adac1dcfe7cc", e._sentryDebugIdIdentifier = "sentry-dbid-9ca015ed-c199-40f9-8f4e-adac1dcfe7cc");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as addResourceBundles, r as useTranslation } from "./translation-
|
|
6
|
-
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
7
|
-
import {
|
|
8
|
-
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-
|
|
9
|
-
import { C as EntityTypes } from "./processCapabilities-
|
|
10
|
-
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-
|
|
11
|
-
import { t as useNavigate } from "./useNavigate-
|
|
12
|
-
import { t as PayoutDetailsDropin } from "./PayoutDetailsDropin-
|
|
5
|
+
import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
|
|
6
|
+
import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-C5lXxn2H.js";
|
|
7
|
+
import { t as Loader } from "./Loader-BEpMlKm2.js";
|
|
8
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
|
|
9
|
+
import { C as EntityTypes } from "./processCapabilities-uXoRmB5x.js";
|
|
10
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-CTxd78-9.js";
|
|
11
|
+
import { t as useNavigate } from "./useNavigate-Dgq-_gvF.js";
|
|
12
|
+
import { t as PayoutDetailsDropin } from "./PayoutDetailsDropin-L7lwM7Lx.js";
|
|
13
13
|
import { jsx } from "preact/jsx-runtime";
|
|
14
14
|
import { useParams } from "wouter-preact";
|
|
15
15
|
//#region src/components/BankAccount/pages/PayoutDetailsPage.tsx
|