@adyen/kyc-components 4.17.0 → 4.18.0-beta.0
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/{Accordion-DmH02rWQ.js → Accordion-IXKjwyLD.js} +1 -1
- package/dist/{AccountSetupRejected-aY_awPqH.js → AccountSetupRejected-DIIh9pcf.js} +2 -2
- package/dist/{AdaptiveWorkflow-C1OnKoz6.js → AdaptiveWorkflow-C78mb41T.js} +34 -34
- package/dist/{AdaptiveWorkflowComponent-B9NVZwBG.js → AdaptiveWorkflowComponent-Bz_k9JDJ.js} +32 -32
- package/dist/Address-CUkUuSeU.js +132 -0
- package/dist/{Address-BDAWsBP6.js → AddressField-DP5U5xs8.js} +14 -134
- package/dist/{Avatar-Z3MS8_pW.js → Avatar-CdBNstmD.js} +1 -1
- package/dist/{BusinessFinancingDropin-DYZPXmaA.js → BusinessFinancingDropin-BIYr1Mgu.js} +57 -39
- package/dist/{BusinessFinancingPage-CWAVQIUu.js → BusinessFinancingPage-C-UIVRTK.js} +32 -32
- package/dist/{BusinessTypeSelectionPage-mR4yxGIO.js → BusinessTypeSelectionPage-CFz9n5DM.js} +15 -15
- package/dist/{Button-3qGOI53m.js → Button-i8I2dHP8.js} +1 -1
- package/dist/{Checkbox-yzDgU8Go.js → Checkbox-DdEBnXOB.js} +1 -1
- package/dist/{CompanyRegistrationNumberTypeSelector-DuiQt7Rc.js → CompanyRegistrationNumberTypeSelector-BXzFJpA0.js} +8 -20
- package/dist/{Confirm-D3iEEzM7.js → Confirm-DcqMV7rd.js} +3 -3
- package/dist/{ContactDetails-DfGTy-MW.js → ContactDetails-BAmxW5qa.js} +8 -8
- package/dist/{ContextGuidance-CBREh6Su.js → ContextGuidance-DPro1Ce0.js} +2 -2
- package/dist/{CountryField-BooICUbM.js → CountryField-DoLt4vNa.js} +5 -5
- package/dist/{Currency-CFuP1Dyd.js → Currency-D1hJGOjo.js} +53 -18
- package/dist/{CustomerSupport-DFyRJizn.js → CustomerSupport-Bsi7JCV0.js} +15 -15
- package/dist/{DataConflictsModal-DQ3mkW9z.js → DataConflictsModal-DFtNyKkX.js} +7 -7
- package/dist/{DebugModal-C-ikCH1j.js → DebugModal-CAA4o3Ik.js} +10 -10
- package/dist/{DecisionMakerDetails-BHf3n6d6.js → DecisionMakerDetails-C12XRPSF.js} +27 -18
- package/dist/{DecisionMakerDetailsPage-0mfoRbLJ.js → DecisionMakerDetailsPage-thw-YQUL.js} +12 -12
- package/dist/{DecisionMakers-DyNHZELs.js → DecisionMakers-CnaehF1O.js} +21 -21
- package/dist/{Dropzone-BMxSdYQ2.js → Dropzone-N76XfpBB.js} +7 -7
- package/dist/{EmbeddedStatus-JozflNLq.js → EmbeddedStatus-g37gc_ic.js} +3 -3
- package/dist/{EndStateLayout-ic1EOve9.js → EndStateLayout-CBRHUXyY.js} +2 -2
- package/dist/{EntityAssociation-pJy_kse0.js → EntityAssociation-s22o_uZU.js} +7 -7
- package/dist/{ErrorPanel-BqfHivX7.js → ErrorPanel-O79YWbUj.js} +48 -28
- package/dist/{Field-CIqSPDus.js → Field-Dg-2A6bG.js} +4 -4
- package/dist/GlobalEntryModal-xjoLjr6j.js +34 -0
- package/dist/GlobalEntryPage-BVhiWGwA.js +44 -0
- package/dist/{Individual.rules-s4Yf5eU4.js → Individual.rules-Caf9UMUo.js} +4 -4
- package/dist/{IndividualDropin-BdIwUDOo.js → IndividualDropin-CvD8ck4A.js} +56 -56
- package/dist/{InputDate-DSeCO1wk.js → InputDate-CxzAaaCm.js} +2 -2
- package/dist/{InputText-DtRsfuMv.js → InputText-CQcWyZ8_.js} +2 -2
- package/dist/{Introduction-DLfzBonb.js → Introduction-DVudpVd5.js} +9 -9
- package/dist/{InvitedDecisionMakerComponent-CaoxJri-.js → InvitedDecisionMakerComponent-C-3tUrFX.js} +114 -46
- package/dist/{JpAddress-Cqb_UMwB.js → JpAddress-D5kADcay.js} +16 -56
- package/dist/JpAddress.module-Bdx0E9ys.js +48 -0
- package/dist/JpAddressFields-S9ICJml_.js +246 -0
- package/dist/{LandingLayout-C1yh_ggf.js → LandingLayout-iZpW1Vsx.js} +8 -3
- package/dist/{LegalCompanyNameField-DskXNNbo.js → LegalCompanyNameField-BFwuu5bv.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-pILfh5cO.js → LegalRepresentativeDetailsPage-DlNCi8DF.js} +10 -10
- package/dist/{Link-C0jrInxa.js → Link-JFzfaUOa.js} +1 -1
- package/dist/{ListItem-DENJV6DO.js → ListItem-BnVTcObB.js} +2 -2
- package/dist/{MaskedInput-C5W0lx70.js → MaskedInput-ClZhzZhf.js} +6 -6
- package/dist/{MaybeModal-DYEqnOf-.js → MaybeModal-CXLj-oVR.js} +2 -2
- package/dist/{Modal-DParMHcv.js → Modal-ByJare7m.js} +1 -1
- package/dist/{Name-kHxte68O.js → Name-Cw7gZ538.js} +5 -5
- package/dist/{NewSummary-JEU35ul4.js → NewSummary-DwQr3V21.js} +7 -7
- package/dist/{PatriotActDisclosure-BqaWGRcZ.js → PatriotActDisclosure-Bj4aG0px.js} +16 -16
- package/dist/{PayoutDetailsDropinMultiForm-C-M8c5Xx.js → PayoutDetailsDropin-jb9Hx02m.js} +416 -220
- package/dist/PayoutDetailsPage-Dp0HMUYv.js +70 -0
- package/dist/{RadioGroup-_XpoFWaf.js → RadioGroup-Bt1Dv_S8.js} +3 -3
- package/dist/{Review-BbJHml8D.js → Review-DW7Hi2gx.js} +8 -8
- package/dist/RootBusinessDetailsPage-C-FjzIi3.js +68 -0
- package/dist/{RootBusinessLinesPage-D7_26OI5.js → RootBusinessLinesPage-B1OZKJpD.js} +51 -43
- package/dist/{RootIndividualDetailsPage-2N5uuxXl.js → RootIndividualDetailsPage-Ck_WKeFS.js} +10 -10
- package/dist/{Select-BgdbPMw9.js → Select-D4oEtS2n.js} +5 -5
- package/dist/{SignPCIComponent-DGv1bkdf.js → SignPCIComponent-C5vrqvCz.js} +44 -44
- package/dist/{SingpassSelection-h1jxupMg.js → SingpassSelection-DqrNj-an.js} +6 -6
- package/dist/{SoleProprietorshipPage-CLetJc-c.js → SoleProprietorshipPage-DjOug4ur.js} +34 -34
- package/dist/{SourceOfFundsPage-CsCBYxJP.js → SourceOfFundsPage-DACANZ6Z.js} +47 -42
- package/dist/{StructuredList-CUyo9-3i.js → StructuredList-Ci4Ut4E5.js} +1 -1
- package/dist/{Summary-DLL-G-wC.js → Summary-D99yCbkr.js} +22 -13
- package/dist/{TaskListItem-Bk-gLf9K.js → TaskListItem-g2OyGxyr.js} +13 -13
- package/dist/{TaskVerificationStatus-DTHF8B9j.js → TaskVerificationStatus-CKHPTEpH.js} +1 -1
- package/dist/{TaxReportingDropin-TCSYgjMp.js → TaxReportingDropin-DmbAZkl5.js} +21 -21
- package/dist/{AcceptTermsOfServiceComponent-DahZIago.js → TermsOfServiceManagement-B_NkGchz.js} +52 -52
- package/dist/{TextArea-DNSnqxGL.js → TextArea-BUx3yuMJ.js} +3 -3
- package/dist/{TileGroup-DWtO7N2P.js → TileGroup-PzJay6GP.js} +3 -3
- package/dist/{TrustDetailsPage-BMnQTWaY.js → TrustDetailsPage-BcXyqFKh.js} +74 -36
- package/dist/{TrustMemberCompanyPage-p4Zo8KWk.js → TrustMemberCompanyPage-CYTBXqUX.js} +35 -35
- package/dist/{TrustMemberIndividualPage-C_glkWhn.js → TrustMemberIndividualPage-Byn5YPlI.js} +10 -10
- package/dist/{TrustMemberRoleAndTypePage-CbzyU01D.js → TrustMemberRoleAndTypePage-AgnpRfSP.js} +23 -23
- package/dist/{TrustMembersOverview-B17lJDGj.js → TrustMembersOverview-D-QdvGO6.js} +15 -15
- package/dist/{UnincorporatedPartnershipIndividualPage-BFfog1or.js → UnincorporatedPartnershipIndividualPage-gYP8zjZK.js} +10 -10
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CXCA43e0.js → UnincorporatedPartnershipMemberCompanyPage-DDBOA6Ch.js} +35 -35
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Kqj-yQMo.js → UnincorporatedPartnershipMemberRoleAndTypePage-BGYKpP3_.js} +25 -147
- package/dist/{UnincorporatedPartnershipMembersOverview-XfXSoBGc.js → UnincorporatedPartnershipMembersOverview-D_aNlf-l.js} +10 -10
- package/dist/{VerificationErrorAlert-Q-TvD-Mb.js → VerificationErrorAlert-CemHk8yo.js} +4 -4
- package/dist/{accountHolderUtils-Brjeiw04.js → accountHolderUtils-DnQqH1QM.js} +2 -2
- package/dist/adyen-business-financing.js +33 -33
- package/dist/adyen-individual-configuration.js +36 -36
- package/dist/adyen-individual-status.js +33 -33
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +160 -116
- package/dist/adyen-terms-of-service-management.js +4 -4
- package/dist/adyen-terms-of-service-status.js +9 -9
- package/dist/adyen-transfer-instrument-configuration.js +61 -60
- package/dist/adyen-transfer-instrument-management.js +66 -65
- package/dist/adyen-verification-status.js +6 -6
- package/dist/{bafinUtils-BKq-s1Ka.js → bafinUtils-CbfyDBkh.js} +6 -6
- package/dist/bg-BG-BNxxbT-Z.js +7 -0
- package/dist/bg-BG-CEcxO0H0.js +7 -0
- package/dist/{bg-BG-DvFMee1j.js → bg-BG-DWtVZckB.js} +2 -2
- package/dist/business-details-CPkvjYXG.js +355 -0
- package/dist/{constants-JBn-5I_D.js → constants-OXaHzh7d.js} +6 -6
- package/dist/cs-CZ-B2huX9v2.js +7 -0
- package/dist/cs-CZ-Bw702SPD.js +7 -0
- package/dist/{cs-CZ-B7aDrpPP.js → cs-CZ-DeM0O93X.js} +2 -2
- package/dist/da-DK-CUL_Et0l.js +7 -0
- package/dist/da-DK-D-u3tkjY.js +7 -0
- package/dist/{da-DK-C3i7IAmt.js → da-DK-DrYRErQi.js} +2 -2
- package/dist/{de-DE-DtVJKjKN.js → de-DE-CNHKj2ar.js} +2 -2
- package/dist/de-DE-Cd5T_rWB.js +7 -0
- package/dist/de-DE-D-2q3DBW.js +7 -0
- package/dist/{decisionMakerRoles-DIG8zo1C.js → decisionMakerRoles-CTy0faoW.js} +2 -2
- package/dist/el-GR-BHu8fnYR.js +7 -0
- package/dist/{el-GR-DxtT4Lft.js → el-GR-DC8wWZlc.js} +2 -2
- package/dist/el-GR-RkQ7qOtM.js +7 -0
- package/dist/en-US-7Uo1OcXR.js +51 -0
- package/dist/en-US-B48_sHax.js +13 -0
- package/dist/en-US-BNfqvbyW.js +7 -0
- package/dist/en-US-CUqerEKF.js +7 -0
- package/dist/en-US-MqobYcqc.js +7 -0
- package/dist/en-US.instructions-CksZ4E5j.js +11 -0
- package/dist/{entityAssociationUtil-C-wflW8q.js → entityAssociationUtil-DLXInibJ.js} +1 -1
- package/dist/es-ES-CtKqdJ9Z.js +7 -0
- package/dist/{es-ES-BIQfz_ub.js → es-ES-L_7CovzS.js} +2 -2
- package/dist/es-ES-sAOz5HKH.js +7 -0
- package/dist/es-LA-BU32JqC-.js +7 -0
- package/dist/{es-LA-CsbPBWVy.js → es-LA-DPvp-UlN.js} +2 -2
- package/dist/es-LA-racbldhR.js +7 -0
- package/dist/{et-EE-BcjBS0ZN.js → et-EE-4OTBQhPM.js} +2 -2
- package/dist/et-EE-C29Bb4Rw.js +7 -0
- package/dist/et-EE-CXOeuULd.js +7 -0
- package/dist/{fi-FI-DEpeYxdL.js → fi-FI-6yq1jSRa.js} +2 -2
- package/dist/fi-FI-BNfxJDvc.js +7 -0
- package/dist/fi-FI-BT1l2Dz5.js +7 -0
- package/dist/{formUtils-C4NqSvj-.js → formUtils-BrLGUOLK.js} +1 -1
- package/dist/fr-FR-Byelw2ED.js +7 -0
- package/dist/{fr-FR-GQrgs_DS.js → fr-FR-DBM2tUge.js} +2 -2
- package/dist/fr-FR-DKdat8Bf.js +7 -0
- package/dist/getFormSlice-C1ma6Xd4.js +21 -0
- package/dist/{getName-D4ECvzcI.js → getName-C5jqdkJg.js} +1 -1
- package/dist/{getProblemsForEntity-CjAq8_4L.js → getProblemsForEntity-ubvE1Px7.js} +2 -2
- package/dist/{getProps-1L-urpfA.js → getProps-DVqK7eRw.js} +51 -2
- package/dist/global-entry-illustration-By_EjQFM.js +288 -0
- package/dist/hr-HR-CAwy4u2B.js +7 -0
- package/dist/hr-HR-Cmnnjuvd.js +7 -0
- package/dist/{hr-HR-BwKDcJ9v.js → hr-HR-Vx0hO2h4.js} +2 -2
- package/dist/{http-DeQp0G69.js → http-8qgzqVqk.js} +1 -1
- package/dist/hu-HU-8uDv5c4i.js +7 -0
- package/dist/hu-HU-BmQJPXo2.js +7 -0
- package/dist/{hu-HU-81HMvS9Y.js → hu-HU-DsUOhM2K.js} +2 -2
- package/dist/{invalidateRootLegalEntity-CCtOf4ib.js → invalidateRootLegalEntity-CHNRruhe.js} +3 -3
- package/dist/it-IT-8DGwiIEf.js +7 -0
- package/dist/{it-IT-Il0f-h2h.js → it-IT-CL_4Y1hK.js} +2 -2
- package/dist/it-IT-VzcvfA7e.js +7 -0
- package/dist/ja-JP-B05v6NdN.js +7 -0
- package/dist/ja-JP-BG7p2_ZL.js +7 -0
- package/dist/{ja-JP-Dk2zBWeH.js → ja-JP-CNBPrNgM.js} +2 -2
- package/dist/{localizeDateString-CU7HGR-k.js → localizeDateString-Bmx3yBcR.js} +1 -1
- package/dist/lt-LT-C7Bf2i87.js +7 -0
- package/dist/{lt-LT-DZ2Uu9bq.js → lt-LT-CPBTVJeD.js} +2 -2
- package/dist/lt-LT-DCayRCd-.js +7 -0
- package/dist/{lv-LV-BCMHodgd.js → lv-LV-CBsGjmsA.js} +2 -2
- package/dist/lv-LV-D3bkGuXV.js +7 -0
- package/dist/lv-LV-DXymHGml.js +7 -0
- package/dist/{mapExistingFile-BeuzYADl.js → mapExistingFile-BvFf01k6.js} +11 -8
- package/dist/{mapJpAddressSchemaToAddressLocalizations-DZUd0pQT.js → mapJpAddressSchemaToAddressLocalizations-DHL5chu8.js} +15 -2
- package/dist/{mapLegalEntityToIndividualSchema-Dgs8wnkZ.js → mapLegalEntityToIndividualSchema-BeR7ESyx.js} +9 -9
- package/dist/{mapTransferInstrumentToPayoutAccount-BHF5J5eC.js → mapTransferInstrumentToPayoutAccount-2iWuaqS_.js} +3 -3
- package/dist/{nl-NL-D2oZHtTs.js → nl-NL-C5MHFAIE.js} +2 -2
- package/dist/nl-NL-DkYkY9Mu.js +7 -0
- package/dist/nl-NL-lyCxhWKl.js +7 -0
- package/dist/{no-NO-D5l99NQF.js → no-NO-Bna_-q84.js} +2 -2
- package/dist/no-NO-CCbUtRmU.js +7 -0
- package/dist/no-NO-FFwOUFr9.js +7 -0
- package/dist/{omitObscuredFieldsIfUnchanged-BQSBg_D9.js → omitObscuredFieldsIfUnchanged-DFZ6pVTM.js} +2 -2
- package/dist/{patternValidators-ldthuMTg.js → patternValidators-BFk0f6IP.js} +1 -1
- package/dist/pl-PL-B9u7WZBs.js +7 -0
- package/dist/pl-PL-BDauaEiz.js +7 -0
- package/dist/{pl-PL-C_QR0_4u.js → pl-PL-Ddtqvtag.js} +2 -2
- package/dist/{process-field-configurations-DIEIpM00.js → process-field-configurations-DBtjrbif.js} +4 -4
- package/dist/{processCapabilities-BeE0xWUp.js → processCapabilities-C2kMryYn.js} +25 -25
- package/dist/{validationError-DwNvWaOL.js → processValidationErrors--FWewgRp.js} +21 -27
- package/dist/pt-BR-CoWBKHni.js +7 -0
- package/dist/{pt-BR-DVpGdnO-.js → pt-BR-D3oWr3QJ.js} +2 -2
- package/dist/pt-BR-XeJRk5pM2.js +7 -0
- package/dist/pt-PT-CCuTeMbQ.js +7 -0
- package/dist/pt-PT-Dhfc0izN.js +7 -0
- package/dist/{pt-PT-Bkylp1fh.js → pt-PT-DpYwMinP.js} +2 -2
- package/dist/{resolveEnvironment-DqVK_B7n.js → resolveEnvironment-CL_fPQJG.js} +51 -43
- package/dist/ro-RO-B9RvKzTz.js +7 -0
- package/dist/ro-RO-CXGpXJAG.js +7 -0
- package/dist/{ro-RO-D9hC-2Yu.js → ro-RO-CZpwJ4Sy.js} +2 -2
- package/dist/{roleMetadata-BgKauSqU.js → roleMetadata-a4sEtgHv.js} +2 -2
- package/dist/sk-SK-B2XAy5Yw.js +7 -0
- package/dist/sk-SK-DoHPhXvk.js +7 -0
- package/dist/{sk-SK-DWVcJde-.js → sk-SK-DyKdrRnN.js} +2 -2
- package/dist/sl-SI-DwiiZ7hf.js +7 -0
- package/dist/sl-SI-Ga2XE4DC.js +7 -0
- package/dist/{sl-SI-cVr04Hr7.js → sl-SI-nHUFaEcp.js} +2 -2
- package/dist/style.css +148 -245
- package/dist/styles-DYaAeu4q.js +148 -245
- package/dist/sv-SE-3IKbfvgP.js +7 -0
- package/dist/sv-SE-DYjpbult.js +7 -0
- package/dist/{sv-SE-DTqSBLbI.js → sv-SE-DxMX8Ox_.js} +2 -2
- package/dist/{taskTypes-NawDTp5n.js → taskTypes-3vSkMBDm.js} +2 -1
- package/dist/{translation-BR3rLb4m.js → translation-BYvhW5zA.js} +1 -1
- package/dist/types/api/companySearch/useCompanySearch.d.ts +6 -0
- package/dist/types/api/invitedEntity/getInvitedEntityProblems.d.ts +4 -0
- package/dist/types/api/invitedEntity/useInvitedEntityVerificationErrors.d.ts +7 -0
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +5 -0
- package/dist/types/components/Apps/tasks/TaskList/{TaskListGroup.d.ts → TaskListGroup/TaskListGroup.d.ts} +1 -1
- package/dist/types/components/Apps/tasks/TaskList/TaskListItem/types.d.ts +25 -0
- package/dist/types/components/Apps/tasks/TaskList/types.d.ts +0 -25
- package/dist/types/components/BankAccount/fields/BankAccountType/BankAccountType.d.ts +2 -0
- package/dist/types/components/BankAccount/fields/BankAccountType/type.d.ts +6 -0
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/{PayoutDetailsMultiform.d.ts → PayoutDetails.d.ts} +2 -2
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +2 -0
- package/dist/types/components/BankAccount/utils/payoutAccountFormats.d.ts +18 -0
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +26 -4
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +22 -4
- package/dist/types/components/Business/forms/BusinessDetails/{BusinessDetailsMultiform.d.ts → BusinessDetails.d.ts} +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +27 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +9 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +11 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +3 -0
- package/dist/types/components/EmbeddedDropins/{AcceptTermsOfServiceComponent/AcceptTermsOfServiceComponent.d.ts → TermsOfServiceManagement/TermsOfServiceManagement.d.ts} +2 -2
- package/dist/types/components/EmbeddedDropins/TermsOfServiceStatus/TermsOfServiceStatus.d.ts +6 -0
- package/dist/types/components/GlobalEntry/forms/GlobalEntryModal/GlobalEntryModal.d.ts +1 -0
- package/dist/types/components/GlobalEntry/forms/GlobalEntryModal/isGlobalEntryModalOpen.d.ts +1 -0
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryPage.d.ts +1 -0
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +6 -5
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/AddressFields.d.ts +11 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +9 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +2 -2
- package/dist/types/components/ui/molecules/ErrorPanel/ServerValidationErrors.d.ts +1 -1
- package/dist/types/components/ui/molecules/ErrorPanel/types.d.ts +4 -8
- package/dist/types/context/ToggleContext/types.d.ts +8 -0
- package/dist/types/core/types.d.ts +0 -11
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.types.d.ts +1 -1
- package/dist/types/hooks/useScenarioConfiguration.d.ts +4 -2
- package/dist/types/router/getDefaultTask.d.ts +3 -1
- package/dist/types/router/routeConfig.d.ts +2 -1
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -0
- package/dist/types/types/errors/entity-problems.d.ts +8 -1
- package/dist/types/types/form-rules.d.ts +1 -1
- package/dist/types/utils/api/processValidationErrors.d.ts +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getFieldNameFromPath.d.ts +1 -0
- package/dist/types/utils/getFormSlice.d.ts +7 -4
- package/dist/types/utils/getProps.d.ts +12 -0
- package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +0 -5
- package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +0 -3
- package/dist/types/utils/validationError.d.ts +1 -0
- package/dist/{unincorporated-partnership-BstfjTh2.js → unincorporated-partnership-nnTW3FnG.js} +1 -1
- package/dist/{useAssociatedLegalEntity-QRvyeNwU.js → useAssociatedLegalEntity-CkuvFV-D.js} +2 -2
- package/dist/{useBusinessDetailsData-Cdr8zQFV.js → useBusinessDetailsData-DZ_7dsp9.js} +479 -347
- package/dist/{useBusinessLines-B2iCcDej.js → useBusinessLines-BFsRoAAj.js} +1 -1
- package/dist/{useCanSeeIntroduction-BAXdnYUx.js → useCanSeeIntroduction-DmiEdYxi.js} +2 -2
- package/dist/{useCreateLegalEntity-zPjl13U3.js → useCreateLegalEntity-CoBr-K0N.js} +1 -1
- package/dist/{useDataMissingRemediations-BZwtMi3U.js → useDataMissingRemediations-BzbA8Mu4.js} +3 -3
- package/dist/{useForm-DhSq8lwH.js → useForm-Cj24Z0GS.js} +3 -3
- package/dist/{useFormContext-Dtfe218N.js → useFormContext-CYWY41hm.js} +9 -10
- package/dist/{useLegalEntity-BXk2tzGe.js → useLegalEntity-CtlUQv_J.js} +1 -1
- package/dist/{useMultiForm-DGafu7JW.js → useMultiForm-Cccdz8QU.js} +20 -54
- package/dist/{useNavigate-Bu0KYCiB.js → useNavigate-D0jdU3Lc.js} +41 -35
- package/dist/{useOnboardingStatus-BgO4uPbW.js → useOnboardingStatus-BlXlrSAS.js} +1 -1
- package/dist/{usePciQuestionnaireList-BEPt97lw.js → usePciQuestionnaireList-CbkNC_Ye.js} +1 -1
- package/dist/{useSalesChannels-D3vQBhRT.js → useSalesChannels-CQjvFAb2.js} +2 -2
- package/dist/{useScenarios-Bh7kKk_q.js → useScenarios-DeLWDtIg.js} +1 -1
- package/dist/{useTaskLandedEvent-DDVHIkiF.js → useTaskLandedEvent-BiIxm8IU.js} +1 -1
- package/dist/{useTaskStatus-BLkHjMgm.js → useTaskStatus-wrAxqtIR.js} +1 -1
- package/dist/{useTermsOfServiceStatus-B1OpYOua.js → useTermsOfServiceStatus-D1_ECrkO.js} +1 -1
- package/dist/{useTrustMembers-Do3hdGIJ.js → useTrustMembers-BVOC0v85.js} +6 -6
- package/dist/{useUnincorporatedPartnershipMembers-BSEcDBC7.js → useUnincorporatedPartnershipMembers-B5WCX6yK.js} +6 -6
- package/dist/{useUpdateBusinessLines-jlXfi57a.js → useUpdateBusinessLines-Cncate8L.js} +1 -1
- package/dist/{useUpdateLegalEntity-CsWHWigd.js → useUpdateLegalEntity-Cdv-ffXE.js} +2 -2
- package/dist/{utils-BtyrxTzp.js → utils-C1buyvRw.js} +1 -1
- package/dist/{utils-DT_Qe3DC.js → utils-CMdCAAbw.js} +16 -56
- package/dist/{utils-CTt_G6Rx.js → utils-DK1Fqkgs.js} +34 -9
- package/dist/{utils-CGlii18m.js → utils-DnCitvpf.js} +6 -6
- package/dist/{validate-C52znTzq.js → validate-CMxq61UU.js} +5 -5
- package/dist/{validate-CeVER2vD.js → validate-Cr-q1Y4p.js} +1 -1
- package/dist/{validateExtractionResult-CxXkhbrM.js → validateExtractionResult-CwUaiu2n.js} +11 -11
- package/dist/validationError-CPM3NYRx.js +55 -0
- package/package.json +3 -11
- package/dist/AD-Clkur2Hx.js +0 -15
- package/dist/AE-BUOfE-VR.js +0 -17
- package/dist/AI-BApAOdVW.js +0 -19
- package/dist/AL-DfPgkH9x.js +0 -19
- package/dist/AR-Bddz61XJ.js +0 -19
- package/dist/AS-C3xgvOIz.js +0 -17
- package/dist/AT-DnJdtYnd.js +0 -15
- package/dist/AU-DL1fsj76.js +0 -16
- package/dist/AX-BTtRN-MP.js +0 -15
- package/dist/AZ-CXVL6e85.js +0 -19
- package/dist/BA-27B-jpFq.js +0 -19
- package/dist/BE-BSUwgR6_.js +0 -15
- package/dist/BG-ChvSTIBz.js +0 -19
- package/dist/BH-D1HvWueK.js +0 -19
- package/dist/BM-bLwVUrnz.js +0 -19
- package/dist/BR-nSEEl5uz.js +0 -18
- package/dist/BS-Bf402NRj.js +0 -19
- package/dist/BV-CJwVioP4.js +0 -19
- package/dist/BY-CYaB1wEE.js +0 -19
- package/dist/CA-B49VPJKw.js +0 -17
- package/dist/CH-BASES6q1.js +0 -15
- package/dist/CN-CEIcYgEd.js +0 -19
- package/dist/CR-CU6MVhAz.js +0 -19
- package/dist/CY-DSZIX0eb.js +0 -15
- package/dist/CZ-CUYgGHVo.js +0 -27
- package/dist/DE-3Qc-SfVV.js +0 -15
- package/dist/DK--Bs4HfJM.js +0 -27
- package/dist/DO-D4wgMRWE.js +0 -19
- package/dist/EC-B2FGK-mr.js +0 -20
- package/dist/EE-qXeASUC-.js +0 -15
- package/dist/ES-BBz54aGb.js +0 -15
- package/dist/FI-DHkXLS9S.js +0 -15
- package/dist/FJ-V_2w3UTO.js +0 -19
- package/dist/FO-DR-Xnm7u.js +0 -19
- package/dist/FR-CtpYelsq.js +0 -15
- package/dist/GB-G_B8HSJg.js +0 -27
- package/dist/GE-By9lo4py.js +0 -19
- package/dist/GF-B0xFBl9q.js +0 -15
- package/dist/GG-bAeosM_i.js +0 -27
- package/dist/GI-DfkPsLw0.js +0 -35
- package/dist/GL-DhRtJPZY.js +0 -19
- package/dist/GP-DNyYQvJw.js +0 -15
- package/dist/GR-DK-QrYIO.js +0 -15
- package/dist/GT-BRuMYK92.js +0 -19
- package/dist/GU-DAYIt05K.js +0 -17
- package/dist/HK-DeKSh6yq.js +0 -17
- package/dist/HR-D0EqC8kx.js +0 -15
- package/dist/HU-DIT5cG5Z.js +0 -26
- package/dist/ID-BBzj2tyK.js +0 -19
- package/dist/IE-CxtzANSG.js +0 -15
- package/dist/IL-CgJ0eWPT.js +0 -15
- package/dist/IM-Ca1LRzUz.js +0 -27
- package/dist/IN--pr2-g7e.js +0 -20
- package/dist/IS-BZeqGau3.js +0 -19
- package/dist/IT-BioiAQgd.js +0 -15
- package/dist/JE-BCj36onT.js +0 -27
- package/dist/JM-b03xrGTz.js +0 -19
- package/dist/JO-CA8m_H5N.js +0 -19
- package/dist/JP-DroDT2u3.js +0 -20
- package/dist/KR-BkBLDQIT.js +0 -19
- package/dist/KW-dB3SXEf8.js +0 -19
- package/dist/KY-mZ-zKVkq.js +0 -19
- package/dist/KZ-CcyUPGdv.js +0 -19
- package/dist/LB-DmtcVmjU.js +0 -19
- package/dist/LI-haSXATP0.js +0 -15
- package/dist/LT-CYlhLD3-.js +0 -15
- package/dist/LU-CnQilYzI.js +0 -15
- package/dist/LV-BJoOuCmD.js +0 -15
- package/dist/MC-1OhRuam2.js +0 -15
- package/dist/MD-DN7TRpmW.js +0 -19
- package/dist/ME-CuMiA40n.js +0 -19
- package/dist/MK-DGR-uR66.js +0 -19
- package/dist/MP-xhfj0dkC.js +0 -17
- package/dist/MQ-CZu5G2-t.js +0 -15
- package/dist/MR--V7elAIS.js +0 -19
- package/dist/MT-BmkVDeF2.js +0 -15
- package/dist/MU-LzgqzZzT.js +0 -19
- package/dist/MX-z-WoZkPd.js +0 -17
- package/dist/MY-WsFwWp2U.js +0 -16
- package/dist/NC-B9M8cc6C.js +0 -19
- package/dist/NL-CXjh0eXG.js +0 -15
- package/dist/NO-BuWcaqBm.js +0 -26
- package/dist/NZ-BDDXct1F.js +0 -11
- package/dist/PE-DJZc_8Lk.js +0 -19
- package/dist/PF-D593LuXT.js +0 -19
- package/dist/PH-CJRjYgx3.js +0 -19
- package/dist/PK-C1TVRYA6.js +0 -19
- package/dist/PL-C3tudSnw.js +0 -26
- package/dist/PM-CPvVGX_s.js +0 -15
- package/dist/PR-C6mnN4I1.js +0 -17
- package/dist/PS-Bqa7HAb6.js +0 -19
- package/dist/PT-BHFP2Jx8.js +0 -15
- package/dist/PayoutDetailsPage-IhLlwUKv.js +0 -69
- package/dist/QA-B2A0rFrR.js +0 -19
- package/dist/RE-BSdvJRM5.js +0 -15
- package/dist/RO-BZxtXYEM.js +0 -15
- package/dist/RS-DAtcOeON.js +0 -19
- package/dist/RU-CDpkuVOX.js +0 -19
- package/dist/RootBusinessDetailsPage-CumD-zxI.js +0 -68
- package/dist/SA-BoAcP38a.js +0 -19
- package/dist/SE-DX5R7MEM.js +0 -27
- package/dist/SG-Dm4nWFwC.js +0 -16
- package/dist/SI-CbzJWJo5.js +0 -15
- package/dist/SJ-C0EiPIY7.js +0 -19
- package/dist/SK-Bg9K35hT.js +0 -15
- package/dist/SM-BAP1izca.js +0 -15
- package/dist/TF-BzLXwUD9.js +0 -19
- package/dist/TH-wvwE8m03.js +0 -20
- package/dist/TL-CAwOhktT.js +0 -19
- package/dist/TN-Bs-VE6A_.js +0 -19
- package/dist/TR-7uYc2xp7.js +0 -19
- package/dist/TT-DbzL2xhJ.js +0 -20
- package/dist/TW-BTAvA4FA.js +0 -21
- package/dist/UA-BAkAL82L.js +0 -19
- package/dist/US-BXek71cY.js +0 -17
- package/dist/UY-Bq43JSIl.js +0 -19
- package/dist/VA-CHkQ7jk0.js +0 -15
- package/dist/VG-DnUOjTKa.js +0 -19
- package/dist/VI-CjjaTPrq.js +0 -17
- package/dist/VN-DgqMueJl.js +0 -19
- package/dist/WF-Czcwchbb.js +0 -19
- package/dist/YT-BTQIBrb1.js +0 -15
- package/dist/ZA-BAufwt8q.js +0 -20
- package/dist/bg-BG-BHL5r3bk.js +0 -7
- package/dist/bg-BG-CYrrltO8.js +0 -7
- package/dist/cs-CZ-DfuZr4cv.js +0 -7
- package/dist/cs-CZ-SBisIyel.js +0 -7
- package/dist/da-DK-CLx0Hv_L.js +0 -7
- package/dist/da-DK-CcvXqgMA.js +0 -7
- package/dist/de-DE-CcOP7Z3J.js +0 -7
- package/dist/de-DE-qTvDZ5Tj.js +0 -7
- package/dist/el-GR-CO9ixkqP.js +0 -7
- package/dist/el-GR-D1QMkjQd.js +0 -7
- package/dist/en-US-C1J9jcVI.js +0 -7
- package/dist/en-US-CJsQJw90.js +0 -7
- package/dist/en-US-Dokjxy17.js +0 -7
- package/dist/es-ES-CwLsmJeQ.js +0 -7
- package/dist/es-ES-fgGV_t7L.js +0 -7
- package/dist/es-LA-CLD_193O.js +0 -7
- package/dist/es-LA-b7TFh_XZ.js +0 -7
- package/dist/et-EE-CEiroCyD.js +0 -7
- package/dist/et-EE-o65QgBKk.js +0 -7
- package/dist/fi-FI-CKffkrhp.js +0 -7
- package/dist/fi-FI-Cqf4k_ja.js +0 -7
- package/dist/fr-FR-B_JTgxAY.js +0 -7
- package/dist/fr-FR-CQbo6d_Q.js +0 -7
- package/dist/hr-HR-BH4GZRVw.js +0 -7
- package/dist/hr-HR-COHtbZDp.js +0 -7
- package/dist/hu-HU-D0LsAFcV.js +0 -7
- package/dist/hu-HU-xQwE0I5f.js +0 -7
- package/dist/it-IT-DDUd_IZC.js +0 -7
- package/dist/it-IT-NOsTkUWg.js +0 -7
- package/dist/ja-JP-Br0ivw8k.js +0 -7
- package/dist/ja-JP-C98F-BgJ.js +0 -7
- package/dist/jpAddressSchema-DT19YcnH.js +0 -17
- package/dist/lt-LT-DUC5ir_t.js +0 -7
- package/dist/lt-LT-erbGBPqF.js +0 -7
- package/dist/lv-LV-BBegWP3c.js +0 -7
- package/dist/lv-LV-xbEcOY__.js +0 -7
- package/dist/nl-NL-Cpuz-HtA.js +0 -7
- package/dist/nl-NL-NTjVSJq2.js +0 -7
- package/dist/no-NO-B6zGFOCK.js +0 -7
- package/dist/no-NO-Bd3KNpMs.js +0 -7
- package/dist/pl-PL-Bg2G4ioZ.js +0 -7
- package/dist/pl-PL-Cw9UG-qg.js +0 -7
- package/dist/pt-BR-BrCPGoU1.js +0 -7
- package/dist/pt-BR-DT63AAqA2.js +0 -7
- package/dist/pt-PT-BFTfpBI4.js +0 -7
- package/dist/pt-PT-Dilg4TrM.js +0 -7
- package/dist/ro-RO-DJeBU2j9.js +0 -7
- package/dist/ro-RO-DRzT7WiY.js +0 -7
- package/dist/sk-SK-CuXM9tOj.js +0 -7
- package/dist/sk-SK-rMCHSdm4.js +0 -7
- package/dist/sl-SI-BDRsH7Bv.js +0 -7
- package/dist/sl-SI-Dg4bivT7.js +0 -7
- package/dist/sv-SE-Cimi5Nb9.js +0 -7
- package/dist/sv-SE-DaklU1jx.js +0 -7
- package/dist/trackNavigation-DR70qR8T.js +0 -15
- package/dist/trusted-fields-provider-DLz8KKVf.js +0 -10
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropinMultiForm.d.ts +0 -2
- package/dist/types/components/EmbeddedDropins/ManageTermsOfServiceComponent/ManageTermsOfServiceComponent.d.ts +0 -6
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +0 -3
- package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +0 -4
- package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +0 -4
- package/dist/types/components/Shared/FormNavigation/types.d.ts +0 -22
- package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +0 -14
- /package/dist/types/components/Apps/tasks/TaskList/{TaskListItem.d.ts → TaskListItem/TaskListItem.d.ts} +0 -0
- /package/dist/types/components/BankAccount/forms/PayoutAccount/{payoutAccountFormat.d.ts → store.d.ts} +0 -0
- /package/dist/types/components/{Apps/tasks/TaskList → BankAccount/tasks/PayoutAccount}/PayoutAccountTaskListItem.d.ts +0 -0
|
@@ -1,60 +1,62 @@
|
|
|
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] = "33f10419-be03-4862-9a89-0cf44a8076fc", e._sentryDebugIdIdentifier = "sentry-dbid-33f10419-be03-4862-9a89-0cf44a8076fc");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { a as Icon, i as Typography, o as createLogger, r as useTranslation, t as Trans } from "./translation-
|
|
6
|
-
import { C as useDataset, J as extractFieldName, M as ExperimentNames, N as FeatureNames, T as datasetUtilities, Z as hasEmptyFields, ft as useAccountHolder, j as useToggleContext, k as Header, nt as isEmpty, q as concatenateFieldNames, tt as isAccountIdentifierObscured, w as datasetIdentifier, x as Alert } from "./resolveEnvironment-
|
|
7
|
-
import { t as Button } from "./Button-
|
|
8
|
-
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-
|
|
5
|
+
import { a as Icon, i as Typography, o as createLogger, r as useTranslation, t as Trans } from "./translation-BYvhW5zA.js";
|
|
6
|
+
import { C as useDataset, J as extractFieldName, M as ExperimentNames, N as FeatureNames, T as datasetUtilities, Z as hasEmptyFields, ft as useAccountHolder, j as useToggleContext, k as Header, nt as isEmpty, q as concatenateFieldNames, tt as isAccountIdentifierObscured, w as datasetIdentifier, x as Alert } from "./resolveEnvironment-CL_fPQJG.js";
|
|
7
|
+
import { t as Button } from "./Button-i8I2dHP8.js";
|
|
8
|
+
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-8qgzqVqk.js";
|
|
9
9
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
10
10
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
|
|
11
11
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
12
12
|
import { c as keysOf, n as cloneObject, o as objectsDeepEqual } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
13
13
|
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
14
14
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
15
|
-
import { t as TaskTypes } from "./taskTypes-
|
|
16
|
-
import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-
|
|
15
|
+
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
16
|
+
import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-DLXInibJ.js";
|
|
17
17
|
import { t as EEA_Countries } from "./countries-CPj8hkLs.js";
|
|
18
|
-
import { i as useAnalyticsContext, t as Modal } from "./Modal-
|
|
18
|
+
import { i as useAnalyticsContext, t as Modal } from "./Modal-ByJare7m.js";
|
|
19
19
|
import { t as SettingNames } from "./types-Cwq1JAWT.js";
|
|
20
|
+
import { t as LandingLayout } from "./LandingLayout-iZpW1Vsx.js";
|
|
20
21
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
21
|
-
import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-
|
|
22
|
-
import { n as translateTranslatable, r as LoaderWrapper } from "./utils-
|
|
23
|
-
import { t as Confirm } from "./Confirm-
|
|
24
|
-
import { n as Image } from "./unincorporated-partnership-
|
|
25
|
-
import { n as getLegalEntityNameBasedOnType, r as getPayoutAccountHolderName } from "./getName-
|
|
26
|
-
import { i as FormFlow, n as addValidityToForms, o as useFormComposer, r as getRequiredForms, s as FormContextProvider, t as useFormContext } from "./useFormContext-
|
|
27
|
-
import { r as getPropsFromConfigurations, t as augmentWithCountryConfigs } from "./process-field-configurations-
|
|
28
|
-
import { t as ErrorPanel } from "./ErrorPanel-
|
|
29
|
-
import {
|
|
30
|
-
import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-
|
|
31
|
-
import { n as summaryStep } from "./Summary-DLL-G-wC.js";
|
|
22
|
+
import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-CHNRruhe.js";
|
|
23
|
+
import { n as translateTranslatable, r as LoaderWrapper } from "./utils-C1buyvRw.js";
|
|
24
|
+
import { t as Confirm } from "./Confirm-DcqMV7rd.js";
|
|
25
|
+
import { n as Image } from "./unincorporated-partnership-nnTW3FnG.js";
|
|
26
|
+
import { n as getLegalEntityNameBasedOnType, r as getPayoutAccountHolderName } from "./getName-C5jqdkJg.js";
|
|
27
|
+
import { i as FormFlow, n as addValidityToForms, o as useFormComposer, r as getRequiredForms, s as FormContextProvider, t as useFormContext } from "./useFormContext-CYWY41hm.js";
|
|
28
|
+
import { r as getPropsFromConfigurations, t as augmentWithCountryConfigs } from "./process-field-configurations-DBtjrbif.js";
|
|
29
|
+
import { t as ErrorPanel } from "./ErrorPanel-O79YWbUj.js";
|
|
30
|
+
import { i as trackNavigation, n as summaryStep } from "./Summary-D99yCbkr.js";
|
|
31
|
+
import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-BrLGUOLK.js";
|
|
32
32
|
import { r as summaryItem } from "./summaryItem-uDWmtYtt.js";
|
|
33
|
-
import { n as isNotEmptyValidator, t as useMultiForm } from "./useMultiForm-
|
|
34
|
-
import { a as useUnifyLoadingStatus, i as useScenarioConfiguration, o as payoutAccountFormat, r as getPageName, t as mapExistingFile } from "./mapExistingFile-
|
|
35
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
36
|
-
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-
|
|
37
|
-
import {
|
|
38
|
-
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-
|
|
39
|
-
import { t as omitObscuredFieldsIfUnchanged } from "./omitObscuredFieldsIfUnchanged-
|
|
33
|
+
import { n as isNotEmptyValidator, t as useMultiForm } from "./useMultiForm-Cccdz8QU.js";
|
|
34
|
+
import { a as useUnifyLoadingStatus, i as useScenarioConfiguration, o as payoutAccountFormat, r as getPageName, t as mapExistingFile } from "./mapExistingFile-BvFf01k6.js";
|
|
35
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-BiIxm8IU.js";
|
|
36
|
+
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-ClZhzZhf.js";
|
|
37
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors--FWewgRp.js";
|
|
38
|
+
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-CMxq61UU.js";
|
|
39
|
+
import { t as omitObscuredFieldsIfUnchanged } from "./omitObscuredFieldsIfUnchanged-DFZ6pVTM.js";
|
|
40
|
+
import { a as isValidationError, i as isIdDocumentUploadError, n as isBankStatementUploadError, o as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable } from "./validationError-CPM3NYRx.js";
|
|
40
41
|
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
41
|
-
import { o as validatePatternOnBlur } from "./patternValidators-
|
|
42
|
+
import { o as validatePatternOnBlur } from "./patternValidators-BFk0f6IP.js";
|
|
42
43
|
import { t as bankStatementDescriptionPattern } from "./basePatterns-plHFNzgJ.js";
|
|
43
44
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
44
|
-
import { t as Field } from "./Field-
|
|
45
|
-
import { t as
|
|
46
|
-
import { t as
|
|
47
|
-
import { t as
|
|
48
|
-
import { t as
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import { t as ContextGuidance } from "./ContextGuidance-
|
|
45
|
+
import { t as Field } from "./Field-Dg-2A6bG.js";
|
|
46
|
+
import { t as Select } from "./Select-D4oEtS2n.js";
|
|
47
|
+
import { t as TextArea } from "./TextArea-BUx3yuMJ.js";
|
|
48
|
+
import { t as Link } from "./Link-JFzfaUOa.js";
|
|
49
|
+
import { t as InputText } from "./InputText-CQcWyZ8_.js";
|
|
50
|
+
import { n as CountryField } from "./CountryField-DoLt4vNa.js";
|
|
51
|
+
import { t as RadioGroup } from "./RadioGroup-Bt1Dv_S8.js";
|
|
52
|
+
import { t as ContextGuidance } from "./ContextGuidance-DPro1Ce0.js";
|
|
52
53
|
import { t as createFormRules } from "./form-rules-CUUQGacJ.js";
|
|
53
54
|
import { t as Tag } from "./Tag-CNeDHqKp.js";
|
|
54
|
-
import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-
|
|
55
|
+
import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-2iWuaqS_.js";
|
|
55
56
|
import { t as Currencies } from "./currency-DQwXq9Mc.js";
|
|
56
57
|
import { t as currencyByCountry } from "./types-KjTYEnAG.js";
|
|
57
|
-
import { t as
|
|
58
|
+
import { t as getFormSlice } from "./getFormSlice-C1ma6Xd4.js";
|
|
59
|
+
import { t as useUnincorporatedPartnershipMembers } from "./useUnincorporatedPartnershipMembers-B5WCX6yK.js";
|
|
58
60
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
59
61
|
import { lazy, memo, useMemo, useRef, useState } from "preact/compat";
|
|
60
62
|
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";
|
|
@@ -179,142 +181,6 @@ var useUpdateTrustedTransferInstrument = (options) => {
|
|
|
179
181
|
});
|
|
180
182
|
};
|
|
181
183
|
//#endregion
|
|
182
|
-
//#region src/datasets/generators/getAccountFormatForCountry.ts
|
|
183
|
-
var accountFormatsImports = /* @__PURE__ */ Object.assign({
|
|
184
|
-
"../accountFormats/AD.json": () => import("./AD-Clkur2Hx.js"),
|
|
185
|
-
"../accountFormats/AE.json": () => import("./AE-BUOfE-VR.js"),
|
|
186
|
-
"../accountFormats/AI.json": () => import("./AI-BApAOdVW.js"),
|
|
187
|
-
"../accountFormats/AL.json": () => import("./AL-DfPgkH9x.js"),
|
|
188
|
-
"../accountFormats/AR.json": () => import("./AR-Bddz61XJ.js"),
|
|
189
|
-
"../accountFormats/AS.json": () => import("./AS-C3xgvOIz.js"),
|
|
190
|
-
"../accountFormats/AT.json": () => import("./AT-DnJdtYnd.js"),
|
|
191
|
-
"../accountFormats/AU.json": () => import("./AU-DL1fsj76.js"),
|
|
192
|
-
"../accountFormats/AX.json": () => import("./AX-BTtRN-MP.js"),
|
|
193
|
-
"../accountFormats/AZ.json": () => import("./AZ-CXVL6e85.js"),
|
|
194
|
-
"../accountFormats/BA.json": () => import("./BA-27B-jpFq.js"),
|
|
195
|
-
"../accountFormats/BE.json": () => import("./BE-BSUwgR6_.js"),
|
|
196
|
-
"../accountFormats/BG.json": () => import("./BG-ChvSTIBz.js"),
|
|
197
|
-
"../accountFormats/BH.json": () => import("./BH-D1HvWueK.js"),
|
|
198
|
-
"../accountFormats/BM.json": () => import("./BM-bLwVUrnz.js"),
|
|
199
|
-
"../accountFormats/BR.json": () => import("./BR-nSEEl5uz.js"),
|
|
200
|
-
"../accountFormats/BS.json": () => import("./BS-Bf402NRj.js"),
|
|
201
|
-
"../accountFormats/BV.json": () => import("./BV-CJwVioP4.js"),
|
|
202
|
-
"../accountFormats/BY.json": () => import("./BY-CYaB1wEE.js"),
|
|
203
|
-
"../accountFormats/CA.json": () => import("./CA-B49VPJKw.js"),
|
|
204
|
-
"../accountFormats/CH.json": () => import("./CH-BASES6q1.js"),
|
|
205
|
-
"../accountFormats/CN.json": () => import("./CN-CEIcYgEd.js"),
|
|
206
|
-
"../accountFormats/CR.json": () => import("./CR-CU6MVhAz.js"),
|
|
207
|
-
"../accountFormats/CY.json": () => import("./CY-DSZIX0eb.js"),
|
|
208
|
-
"../accountFormats/CZ.json": () => import("./CZ-CUYgGHVo.js"),
|
|
209
|
-
"../accountFormats/DE.json": () => import("./DE-3Qc-SfVV.js"),
|
|
210
|
-
"../accountFormats/DK.json": () => import("./DK--Bs4HfJM.js"),
|
|
211
|
-
"../accountFormats/DO.json": () => import("./DO-D4wgMRWE.js"),
|
|
212
|
-
"../accountFormats/EC.json": () => import("./EC-B2FGK-mr.js"),
|
|
213
|
-
"../accountFormats/EE.json": () => import("./EE-qXeASUC-.js"),
|
|
214
|
-
"../accountFormats/ES.json": () => import("./ES-BBz54aGb.js"),
|
|
215
|
-
"../accountFormats/FI.json": () => import("./FI-DHkXLS9S.js"),
|
|
216
|
-
"../accountFormats/FJ.json": () => import("./FJ-V_2w3UTO.js"),
|
|
217
|
-
"../accountFormats/FO.json": () => import("./FO-DR-Xnm7u.js"),
|
|
218
|
-
"../accountFormats/FR.json": () => import("./FR-CtpYelsq.js"),
|
|
219
|
-
"../accountFormats/GB.json": () => import("./GB-G_B8HSJg.js"),
|
|
220
|
-
"../accountFormats/GE.json": () => import("./GE-By9lo4py.js"),
|
|
221
|
-
"../accountFormats/GF.json": () => import("./GF-B0xFBl9q.js"),
|
|
222
|
-
"../accountFormats/GG.json": () => import("./GG-bAeosM_i.js"),
|
|
223
|
-
"../accountFormats/GI.json": () => import("./GI-DfkPsLw0.js"),
|
|
224
|
-
"../accountFormats/GL.json": () => import("./GL-DhRtJPZY.js"),
|
|
225
|
-
"../accountFormats/GP.json": () => import("./GP-DNyYQvJw.js"),
|
|
226
|
-
"../accountFormats/GR.json": () => import("./GR-DK-QrYIO.js"),
|
|
227
|
-
"../accountFormats/GT.json": () => import("./GT-BRuMYK92.js"),
|
|
228
|
-
"../accountFormats/GU.json": () => import("./GU-DAYIt05K.js"),
|
|
229
|
-
"../accountFormats/HK.json": () => import("./HK-DeKSh6yq.js"),
|
|
230
|
-
"../accountFormats/HR.json": () => import("./HR-D0EqC8kx.js"),
|
|
231
|
-
"../accountFormats/HU.json": () => import("./HU-DIT5cG5Z.js"),
|
|
232
|
-
"../accountFormats/ID.json": () => import("./ID-BBzj2tyK.js"),
|
|
233
|
-
"../accountFormats/IE.json": () => import("./IE-CxtzANSG.js"),
|
|
234
|
-
"../accountFormats/IL.json": () => import("./IL-CgJ0eWPT.js"),
|
|
235
|
-
"../accountFormats/IM.json": () => import("./IM-Ca1LRzUz.js"),
|
|
236
|
-
"../accountFormats/IN.json": () => import("./IN--pr2-g7e.js"),
|
|
237
|
-
"../accountFormats/IS.json": () => import("./IS-BZeqGau3.js"),
|
|
238
|
-
"../accountFormats/IT.json": () => import("./IT-BioiAQgd.js"),
|
|
239
|
-
"../accountFormats/JE.json": () => import("./JE-BCj36onT.js"),
|
|
240
|
-
"../accountFormats/JM.json": () => import("./JM-b03xrGTz.js"),
|
|
241
|
-
"../accountFormats/JO.json": () => import("./JO-CA8m_H5N.js"),
|
|
242
|
-
"../accountFormats/JP.json": () => import("./JP-DroDT2u3.js"),
|
|
243
|
-
"../accountFormats/KR.json": () => import("./KR-BkBLDQIT.js"),
|
|
244
|
-
"../accountFormats/KW.json": () => import("./KW-dB3SXEf8.js"),
|
|
245
|
-
"../accountFormats/KY.json": () => import("./KY-mZ-zKVkq.js"),
|
|
246
|
-
"../accountFormats/KZ.json": () => import("./KZ-CcyUPGdv.js"),
|
|
247
|
-
"../accountFormats/LB.json": () => import("./LB-DmtcVmjU.js"),
|
|
248
|
-
"../accountFormats/LI.json": () => import("./LI-haSXATP0.js"),
|
|
249
|
-
"../accountFormats/LT.json": () => import("./LT-CYlhLD3-.js"),
|
|
250
|
-
"../accountFormats/LU.json": () => import("./LU-CnQilYzI.js"),
|
|
251
|
-
"../accountFormats/LV.json": () => import("./LV-BJoOuCmD.js"),
|
|
252
|
-
"../accountFormats/MC.json": () => import("./MC-1OhRuam2.js"),
|
|
253
|
-
"../accountFormats/MD.json": () => import("./MD-DN7TRpmW.js"),
|
|
254
|
-
"../accountFormats/ME.json": () => import("./ME-CuMiA40n.js"),
|
|
255
|
-
"../accountFormats/MK.json": () => import("./MK-DGR-uR66.js"),
|
|
256
|
-
"../accountFormats/MP.json": () => import("./MP-xhfj0dkC.js"),
|
|
257
|
-
"../accountFormats/MQ.json": () => import("./MQ-CZu5G2-t.js"),
|
|
258
|
-
"../accountFormats/MR.json": () => import("./MR--V7elAIS.js"),
|
|
259
|
-
"../accountFormats/MT.json": () => import("./MT-BmkVDeF2.js"),
|
|
260
|
-
"../accountFormats/MU.json": () => import("./MU-LzgqzZzT.js"),
|
|
261
|
-
"../accountFormats/MX.json": () => import("./MX-z-WoZkPd.js"),
|
|
262
|
-
"../accountFormats/MY.json": () => import("./MY-WsFwWp2U.js"),
|
|
263
|
-
"../accountFormats/NC.json": () => import("./NC-B9M8cc6C.js"),
|
|
264
|
-
"../accountFormats/NL.json": () => import("./NL-CXjh0eXG.js"),
|
|
265
|
-
"../accountFormats/NO.json": () => import("./NO-BuWcaqBm.js"),
|
|
266
|
-
"../accountFormats/NZ.json": () => import("./NZ-BDDXct1F.js"),
|
|
267
|
-
"../accountFormats/PE.json": () => import("./PE-DJZc_8Lk.js"),
|
|
268
|
-
"../accountFormats/PF.json": () => import("./PF-D593LuXT.js"),
|
|
269
|
-
"../accountFormats/PH.json": () => import("./PH-CJRjYgx3.js"),
|
|
270
|
-
"../accountFormats/PK.json": () => import("./PK-C1TVRYA6.js"),
|
|
271
|
-
"../accountFormats/PL.json": () => import("./PL-C3tudSnw.js"),
|
|
272
|
-
"../accountFormats/PM.json": () => import("./PM-CPvVGX_s.js"),
|
|
273
|
-
"../accountFormats/PR.json": () => import("./PR-C6mnN4I1.js"),
|
|
274
|
-
"../accountFormats/PS.json": () => import("./PS-Bqa7HAb6.js"),
|
|
275
|
-
"../accountFormats/PT.json": () => import("./PT-BHFP2Jx8.js"),
|
|
276
|
-
"../accountFormats/QA.json": () => import("./QA-B2A0rFrR.js"),
|
|
277
|
-
"../accountFormats/RE.json": () => import("./RE-BSdvJRM5.js"),
|
|
278
|
-
"../accountFormats/RO.json": () => import("./RO-BZxtXYEM.js"),
|
|
279
|
-
"../accountFormats/RS.json": () => import("./RS-DAtcOeON.js"),
|
|
280
|
-
"../accountFormats/RU.json": () => import("./RU-CDpkuVOX.js"),
|
|
281
|
-
"../accountFormats/SA.json": () => import("./SA-BoAcP38a.js"),
|
|
282
|
-
"../accountFormats/SE.json": () => import("./SE-DX5R7MEM.js"),
|
|
283
|
-
"../accountFormats/SG.json": () => import("./SG-Dm4nWFwC.js"),
|
|
284
|
-
"../accountFormats/SI.json": () => import("./SI-CbzJWJo5.js"),
|
|
285
|
-
"../accountFormats/SJ.json": () => import("./SJ-C0EiPIY7.js"),
|
|
286
|
-
"../accountFormats/SK.json": () => import("./SK-Bg9K35hT.js"),
|
|
287
|
-
"../accountFormats/SM.json": () => import("./SM-BAP1izca.js"),
|
|
288
|
-
"../accountFormats/TF.json": () => import("./TF-BzLXwUD9.js"),
|
|
289
|
-
"../accountFormats/TH.json": () => import("./TH-wvwE8m03.js"),
|
|
290
|
-
"../accountFormats/TL.json": () => import("./TL-CAwOhktT.js"),
|
|
291
|
-
"../accountFormats/TN.json": () => import("./TN-Bs-VE6A_.js"),
|
|
292
|
-
"../accountFormats/TR.json": () => import("./TR-7uYc2xp7.js"),
|
|
293
|
-
"../accountFormats/TT.json": () => import("./TT-DbzL2xhJ.js"),
|
|
294
|
-
"../accountFormats/TW.json": () => import("./TW-BTAvA4FA.js"),
|
|
295
|
-
"../accountFormats/UA.json": () => import("./UA-BAkAL82L.js"),
|
|
296
|
-
"../accountFormats/US.json": () => import("./US-BXek71cY.js"),
|
|
297
|
-
"../accountFormats/UY.json": () => import("./UY-Bq43JSIl.js"),
|
|
298
|
-
"../accountFormats/VA.json": () => import("./VA-CHkQ7jk0.js"),
|
|
299
|
-
"../accountFormats/VG.json": () => import("./VG-DnUOjTKa.js"),
|
|
300
|
-
"../accountFormats/VI.json": () => import("./VI-CjjaTPrq.js"),
|
|
301
|
-
"../accountFormats/VN.json": () => import("./VN-DgqMueJl.js"),
|
|
302
|
-
"../accountFormats/WF.json": () => import("./WF-Czcwchbb.js"),
|
|
303
|
-
"../accountFormats/YT.json": () => import("./YT-BTQIBrb1.js"),
|
|
304
|
-
"../accountFormats/ZA.json": () => import("./ZA-BAufwt8q.js")
|
|
305
|
-
});
|
|
306
|
-
var getAccountFormatsForCountry = async (country) => {
|
|
307
|
-
const importForCountry = accountFormatsImports[`../accountFormats/${country}.json`];
|
|
308
|
-
if (!importForCountry) throw Error(`No account formats available for ${country}`);
|
|
309
|
-
return {
|
|
310
|
-
...(await importForCountry()).default,
|
|
311
|
-
numberAndBic: {
|
|
312
|
-
bankStatementRequirement: "OPTIONAL",
|
|
313
|
-
fields: ["bankAccountNumber", "swiftCode"]
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
//#endregion
|
|
318
184
|
//#region src/api/documentValidation/useDocumentMultipartValidate.ts
|
|
319
185
|
var validateDocumentMultipart = async (context, request) => {
|
|
320
186
|
const { baseUrl, rootLegalEntityId } = context;
|
|
@@ -470,20 +336,6 @@ function FilePicker({ files, setFiles, isValid, errorMessage, multiple = false,
|
|
|
470
336
|
] });
|
|
471
337
|
}
|
|
472
338
|
//#endregion
|
|
473
|
-
//#region src/utils/getFormSlice.ts
|
|
474
|
-
function getFormSlice(form, formName) {
|
|
475
|
-
return {
|
|
476
|
-
data: form.data[formName],
|
|
477
|
-
valid: form.valid[formName],
|
|
478
|
-
errors: form.errors[formName],
|
|
479
|
-
requiredFields: form.requiredFields?.[formName],
|
|
480
|
-
optionalFields: form.optionalFields?.[formName],
|
|
481
|
-
obscuredFields: form.obscuredFields?.[formName],
|
|
482
|
-
trustedFields: form.trustedFields?.[formName],
|
|
483
|
-
handleChange: (key, mode) => form.handleChangeFor(formName, key, mode)
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
//#endregion
|
|
487
339
|
//#region src/components/BankAccount/fields/BankAccountNumber/fieldConfig.ts
|
|
488
340
|
var simpleBankAccountNumberMetadata = (example, length, maxLength) => {
|
|
489
341
|
if (maxLength) return {
|
|
@@ -1784,7 +1636,8 @@ var getAccountIdentificationFromPayoutAccountSchema = (payoutAccount, bankCountr
|
|
|
1784
1636
|
case CountryCodes.UnitedStates: return {
|
|
1785
1637
|
type: "usLocal",
|
|
1786
1638
|
accountNumber: payoutAccount.bankAccountNumber,
|
|
1787
|
-
routingNumber: payoutAccount.branchCode
|
|
1639
|
+
routingNumber: payoutAccount.branchCode,
|
|
1640
|
+
...payoutAccount.accountType && { accountType: payoutAccount.accountType }
|
|
1788
1641
|
};
|
|
1789
1642
|
default:
|
|
1790
1643
|
logger.log(`${bankCountry.toLowerCase()}Local is not a configured region`);
|
|
@@ -2093,6 +1946,41 @@ function BankAccountNumber(props) {
|
|
|
2093
1946
|
});
|
|
2094
1947
|
}
|
|
2095
1948
|
//#endregion
|
|
1949
|
+
//#region src/components/BankAccount/fields/BankAccountType/BankAccountType.tsx
|
|
1950
|
+
function BankAccountType(props) {
|
|
1951
|
+
const { t } = useTranslation(["banking"]);
|
|
1952
|
+
const { t: commonT } = useTranslation("common");
|
|
1953
|
+
const { fieldValidationErrors: fieldProblems } = props;
|
|
1954
|
+
const { form } = useFormContext();
|
|
1955
|
+
const { data, valid, errors, handleChange } = getFormSlice(form, "payoutAccountDetails");
|
|
1956
|
+
const formUtils = createFormUtils(props, commonT);
|
|
1957
|
+
const accountTypeOptions = [{
|
|
1958
|
+
id: "checking",
|
|
1959
|
+
name: t(($) => $["checking"])
|
|
1960
|
+
}, {
|
|
1961
|
+
id: "savings",
|
|
1962
|
+
name: t(($) => $["savings"])
|
|
1963
|
+
}];
|
|
1964
|
+
const selectAccountType = (accountType) => {
|
|
1965
|
+
handleChange("accountType", "input")(accountType);
|
|
1966
|
+
};
|
|
1967
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
1968
|
+
el: "fieldset",
|
|
1969
|
+
name: "accountType",
|
|
1970
|
+
label: t(($) => $["accountType"]),
|
|
1971
|
+
errorMessage: formUtils.getErrorMessage("accountType", errors, fieldProblems),
|
|
1972
|
+
isValid: valid?.accountType ?? true,
|
|
1973
|
+
children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
|
|
1974
|
+
...childProps,
|
|
1975
|
+
name: "accountType",
|
|
1976
|
+
value: data?.accountType,
|
|
1977
|
+
items: accountTypeOptions,
|
|
1978
|
+
onChange: selectAccountType,
|
|
1979
|
+
horizontal: true
|
|
1980
|
+
})
|
|
1981
|
+
});
|
|
1982
|
+
}
|
|
1983
|
+
//#endregion
|
|
2096
1984
|
//#region src/components/BankAccount/fields/BankCity/BankCity.tsx
|
|
2097
1985
|
function BankCity(props) {
|
|
2098
1986
|
const { t } = useTranslation("common");
|
|
@@ -2475,6 +2363,7 @@ var InstantVerificationCTA = ({ provider }) => {
|
|
|
2475
2363
|
//#region src/components/BankAccount/forms/PayoutAccount/PayoutAccount.tsx
|
|
2476
2364
|
var payoutAccountFields = [
|
|
2477
2365
|
"accountHolder",
|
|
2366
|
+
"accountType",
|
|
2478
2367
|
...ibanFields,
|
|
2479
2368
|
...branchCodeFields,
|
|
2480
2369
|
...swiftCodeFields,
|
|
@@ -2537,6 +2426,10 @@ function PayoutAccount(props) {
|
|
|
2537
2426
|
bankAccountFormat: accountFormat,
|
|
2538
2427
|
handleAccountFormatChange
|
|
2539
2428
|
}),
|
|
2429
|
+
formUtils.isRequiredField("accountType") && /* @__PURE__ */ jsx(BankAccountType, {
|
|
2430
|
+
dataStoreId: id,
|
|
2431
|
+
fieldValidationErrors
|
|
2432
|
+
}),
|
|
2540
2433
|
formUtils.isRequiredField("branchCode") && /* @__PURE__ */ jsx(BranchCode, {
|
|
2541
2434
|
country,
|
|
2542
2435
|
dataStoreId: id,
|
|
@@ -2817,7 +2710,7 @@ function PayoutVerificationMethod(props) {
|
|
|
2817
2710
|
});
|
|
2818
2711
|
}
|
|
2819
2712
|
//#endregion
|
|
2820
|
-
//#region src/components/BankAccount/forms/PayoutDetails/
|
|
2713
|
+
//#region src/components/BankAccount/forms/PayoutDetails/PayoutDetails.tsx
|
|
2821
2714
|
var payoutSteps = {
|
|
2822
2715
|
payoutCountryDetails: {
|
|
2823
2716
|
formId: "payoutCountryDetails",
|
|
@@ -2851,7 +2744,7 @@ var PayoutVerificationMethodFormID = payoutSteps.payoutVerificationMethod.formId
|
|
|
2851
2744
|
var PayoutAccountDetailsFormID = payoutSteps.payoutAccountDetails.formId;
|
|
2852
2745
|
var PayoutAccountDocumentsFormID = payoutSteps.payoutAccountDocuments.formId;
|
|
2853
2746
|
var PayoutAccountVerificationFormID = payoutSteps.payoutAccountVerification.formId;
|
|
2854
|
-
function
|
|
2747
|
+
function PayoutDetails({ activeForm, shouldValidate, problems = {}, country, accountHolder, legalEntityResponse, provider, bankVendorsLoadingStatus, instantVerificationAvailable, setHideSidebar, createTrustedTransferInstrument, accountDetailsFromInput, onBack, setHasAsyncValidationError, showInstantVerificationCTA, handleNextClick }) {
|
|
2855
2748
|
const { t } = useTranslation("banking");
|
|
2856
2749
|
const { t: commonT } = useTranslation("common");
|
|
2857
2750
|
const { form } = useFormContext();
|
|
@@ -3033,6 +2926,278 @@ var mapPayoutDocumentsToApiDocuments = async (data, entityId) => {
|
|
|
3033
2926
|
existingDocument: getDocument(entityId, "bankStatement")
|
|
3034
2927
|
});
|
|
3035
2928
|
};
|
|
2929
|
+
//#endregion
|
|
2930
|
+
//#region src/components/BankAccount/utils/payoutAccountFormats.ts
|
|
2931
|
+
var IBAN_ONLY = { iban: { fields: [
|
|
2932
|
+
"accountHolder",
|
|
2933
|
+
"country",
|
|
2934
|
+
"iban"
|
|
2935
|
+
] } };
|
|
2936
|
+
/**
|
|
2937
|
+
* Required payout account fields per country, keyed off the countries supported in
|
|
2938
|
+
* {@link currencyByCountry}. Countries outside that list are intentionally omitted.
|
|
2939
|
+
*/
|
|
2940
|
+
var payoutAccountFormatsByCountry = {
|
|
2941
|
+
[CountryCodes.Australia]: { local: { fields: [
|
|
2942
|
+
"accountHolder",
|
|
2943
|
+
"bankAccountNumber",
|
|
2944
|
+
"branchCode",
|
|
2945
|
+
"country"
|
|
2946
|
+
] } },
|
|
2947
|
+
[CountryCodes.Austria]: IBAN_ONLY,
|
|
2948
|
+
[CountryCodes.Belgium]: IBAN_ONLY,
|
|
2949
|
+
[CountryCodes.Brazil]: { local: { fields: [
|
|
2950
|
+
"accountHolder",
|
|
2951
|
+
"accountHolderCity",
|
|
2952
|
+
"bankAccountNumber",
|
|
2953
|
+
"bankCode",
|
|
2954
|
+
"bankName",
|
|
2955
|
+
"branchCode",
|
|
2956
|
+
"country"
|
|
2957
|
+
] } },
|
|
2958
|
+
[CountryCodes.Bulgaria]: { iban: { fields: [
|
|
2959
|
+
"accountHolder",
|
|
2960
|
+
"accountHolderCity",
|
|
2961
|
+
"bankCity",
|
|
2962
|
+
"bankName",
|
|
2963
|
+
"country",
|
|
2964
|
+
"iban",
|
|
2965
|
+
"swiftCode"
|
|
2966
|
+
] } },
|
|
2967
|
+
[CountryCodes.Canada]: { local: { fields: [
|
|
2968
|
+
"accountHolder",
|
|
2969
|
+
"bankAccountNumber",
|
|
2970
|
+
"bankCode",
|
|
2971
|
+
"branchCode",
|
|
2972
|
+
"country"
|
|
2973
|
+
] } },
|
|
2974
|
+
[CountryCodes.Croatia]: IBAN_ONLY,
|
|
2975
|
+
[CountryCodes.Cyprus]: IBAN_ONLY,
|
|
2976
|
+
[CountryCodes.CzechRepublic]: {
|
|
2977
|
+
iban: { fields: [
|
|
2978
|
+
"accountHolder",
|
|
2979
|
+
"country",
|
|
2980
|
+
"iban"
|
|
2981
|
+
] },
|
|
2982
|
+
local: { fields: [
|
|
2983
|
+
"accountHolder",
|
|
2984
|
+
"bankAccountNumber",
|
|
2985
|
+
"bankCode",
|
|
2986
|
+
"country"
|
|
2987
|
+
] }
|
|
2988
|
+
},
|
|
2989
|
+
[CountryCodes.Denmark]: {
|
|
2990
|
+
iban: { fields: [
|
|
2991
|
+
"accountHolder",
|
|
2992
|
+
"country",
|
|
2993
|
+
"iban"
|
|
2994
|
+
] },
|
|
2995
|
+
local: { fields: [
|
|
2996
|
+
"accountHolder",
|
|
2997
|
+
"bankAccountNumber",
|
|
2998
|
+
"bankCode",
|
|
2999
|
+
"country"
|
|
3000
|
+
] }
|
|
3001
|
+
},
|
|
3002
|
+
[CountryCodes.Estonia]: IBAN_ONLY,
|
|
3003
|
+
[CountryCodes.Finland]: IBAN_ONLY,
|
|
3004
|
+
[CountryCodes.France]: IBAN_ONLY,
|
|
3005
|
+
[CountryCodes.Germany]: IBAN_ONLY,
|
|
3006
|
+
[CountryCodes.Gibraltar]: {
|
|
3007
|
+
iban: { fields: [
|
|
3008
|
+
"accountHolder",
|
|
3009
|
+
"accountHolderCity",
|
|
3010
|
+
"bankCity",
|
|
3011
|
+
"bankName",
|
|
3012
|
+
"country",
|
|
3013
|
+
"iban",
|
|
3014
|
+
"swiftCode"
|
|
3015
|
+
] },
|
|
3016
|
+
local: { fields: [
|
|
3017
|
+
"accountHolder",
|
|
3018
|
+
"accountHolderCity",
|
|
3019
|
+
"bankAccountNumber",
|
|
3020
|
+
"bankCity",
|
|
3021
|
+
"bankName",
|
|
3022
|
+
"branchCode",
|
|
3023
|
+
"country",
|
|
3024
|
+
"swiftCode"
|
|
3025
|
+
] }
|
|
3026
|
+
},
|
|
3027
|
+
[CountryCodes.Greece]: IBAN_ONLY,
|
|
3028
|
+
[CountryCodes.Guernsey]: {
|
|
3029
|
+
iban: { fields: [
|
|
3030
|
+
"accountHolder",
|
|
3031
|
+
"country",
|
|
3032
|
+
"iban"
|
|
3033
|
+
] },
|
|
3034
|
+
local: { fields: [
|
|
3035
|
+
"accountHolder",
|
|
3036
|
+
"bankAccountNumber",
|
|
3037
|
+
"branchCode",
|
|
3038
|
+
"country"
|
|
3039
|
+
] }
|
|
3040
|
+
},
|
|
3041
|
+
[CountryCodes.HongKong]: { local: { fields: [
|
|
3042
|
+
"accountHolder",
|
|
3043
|
+
"accountHolderCity",
|
|
3044
|
+
"bankAccountNumber",
|
|
3045
|
+
"bankCode",
|
|
3046
|
+
"country"
|
|
3047
|
+
] } },
|
|
3048
|
+
[CountryCodes.Hungary]: {
|
|
3049
|
+
iban: { fields: [
|
|
3050
|
+
"accountHolder",
|
|
3051
|
+
"country",
|
|
3052
|
+
"iban"
|
|
3053
|
+
] },
|
|
3054
|
+
local: { fields: [
|
|
3055
|
+
"accountHolder",
|
|
3056
|
+
"bankAccountNumber",
|
|
3057
|
+
"country"
|
|
3058
|
+
] }
|
|
3059
|
+
},
|
|
3060
|
+
[CountryCodes.Ireland]: IBAN_ONLY,
|
|
3061
|
+
[CountryCodes.IsleOfMan]: {
|
|
3062
|
+
iban: { fields: [
|
|
3063
|
+
"accountHolder",
|
|
3064
|
+
"country",
|
|
3065
|
+
"iban"
|
|
3066
|
+
] },
|
|
3067
|
+
local: { fields: [
|
|
3068
|
+
"accountHolder",
|
|
3069
|
+
"bankAccountNumber",
|
|
3070
|
+
"branchCode",
|
|
3071
|
+
"country"
|
|
3072
|
+
] }
|
|
3073
|
+
},
|
|
3074
|
+
[CountryCodes.Italy]: IBAN_ONLY,
|
|
3075
|
+
[CountryCodes.Jersey]: {
|
|
3076
|
+
iban: { fields: [
|
|
3077
|
+
"accountHolder",
|
|
3078
|
+
"country",
|
|
3079
|
+
"iban"
|
|
3080
|
+
] },
|
|
3081
|
+
local: { fields: [
|
|
3082
|
+
"accountHolder",
|
|
3083
|
+
"bankAccountNumber",
|
|
3084
|
+
"branchCode",
|
|
3085
|
+
"country"
|
|
3086
|
+
] }
|
|
3087
|
+
},
|
|
3088
|
+
[CountryCodes.Latvia]: IBAN_ONLY,
|
|
3089
|
+
[CountryCodes.Liechtenstein]: IBAN_ONLY,
|
|
3090
|
+
[CountryCodes.Lithuania]: IBAN_ONLY,
|
|
3091
|
+
[CountryCodes.Luxembourg]: IBAN_ONLY,
|
|
3092
|
+
[CountryCodes.Malaysia]: { local: { fields: [
|
|
3093
|
+
"accountHolder",
|
|
3094
|
+
"accountHolderCity",
|
|
3095
|
+
"bankAccountNumber",
|
|
3096
|
+
"country"
|
|
3097
|
+
] } },
|
|
3098
|
+
[CountryCodes.Malta]: IBAN_ONLY,
|
|
3099
|
+
[CountryCodes.Mexico]: { local: { fields: [
|
|
3100
|
+
"accountHolder",
|
|
3101
|
+
"accountHolderCity",
|
|
3102
|
+
"bankAccountNumber",
|
|
3103
|
+
"bankName",
|
|
3104
|
+
"country"
|
|
3105
|
+
] } },
|
|
3106
|
+
[CountryCodes.Monaco]: IBAN_ONLY,
|
|
3107
|
+
[CountryCodes.Netherlands]: IBAN_ONLY,
|
|
3108
|
+
[CountryCodes.NewZealand]: { local: { fields: ["bankAccountNumber", "country"] } },
|
|
3109
|
+
[CountryCodes.Norway]: {
|
|
3110
|
+
iban: { fields: [
|
|
3111
|
+
"accountHolder",
|
|
3112
|
+
"country",
|
|
3113
|
+
"iban"
|
|
3114
|
+
] },
|
|
3115
|
+
local: { fields: [
|
|
3116
|
+
"accountHolder",
|
|
3117
|
+
"bankAccountNumber",
|
|
3118
|
+
"country"
|
|
3119
|
+
] }
|
|
3120
|
+
},
|
|
3121
|
+
[CountryCodes.Poland]: {
|
|
3122
|
+
iban: { fields: [
|
|
3123
|
+
"accountHolder",
|
|
3124
|
+
"country",
|
|
3125
|
+
"iban"
|
|
3126
|
+
] },
|
|
3127
|
+
local: { fields: [
|
|
3128
|
+
"accountHolder",
|
|
3129
|
+
"bankAccountNumber",
|
|
3130
|
+
"country"
|
|
3131
|
+
] }
|
|
3132
|
+
},
|
|
3133
|
+
[CountryCodes.Portugal]: IBAN_ONLY,
|
|
3134
|
+
[CountryCodes.PuertoRico]: { local: { fields: [
|
|
3135
|
+
"accountHolder",
|
|
3136
|
+
"accountHolderCity",
|
|
3137
|
+
"bankAccountNumber",
|
|
3138
|
+
"branchCode",
|
|
3139
|
+
"country"
|
|
3140
|
+
] } },
|
|
3141
|
+
[CountryCodes.Romania]: IBAN_ONLY,
|
|
3142
|
+
[CountryCodes.Singapore]: { local: { fields: [
|
|
3143
|
+
"accountHolder",
|
|
3144
|
+
"bankAccountNumber",
|
|
3145
|
+
"country",
|
|
3146
|
+
"swiftCode"
|
|
3147
|
+
] } },
|
|
3148
|
+
[CountryCodes.Slovakia]: IBAN_ONLY,
|
|
3149
|
+
[CountryCodes.Slovenia]: IBAN_ONLY,
|
|
3150
|
+
[CountryCodes.Spain]: IBAN_ONLY,
|
|
3151
|
+
[CountryCodes.Sweden]: {
|
|
3152
|
+
iban: { fields: [
|
|
3153
|
+
"accountHolder",
|
|
3154
|
+
"country",
|
|
3155
|
+
"iban"
|
|
3156
|
+
] },
|
|
3157
|
+
local: { fields: [
|
|
3158
|
+
"accountHolder",
|
|
3159
|
+
"bankAccountNumber",
|
|
3160
|
+
"branchCode",
|
|
3161
|
+
"country"
|
|
3162
|
+
] }
|
|
3163
|
+
},
|
|
3164
|
+
[CountryCodes.Switzerland]: IBAN_ONLY,
|
|
3165
|
+
[CountryCodes.UnitedArabEmirates]: { iban: { fields: [
|
|
3166
|
+
"accountHolder",
|
|
3167
|
+
"accountHolderCity",
|
|
3168
|
+
"country",
|
|
3169
|
+
"iban",
|
|
3170
|
+
"swiftCode"
|
|
3171
|
+
] } },
|
|
3172
|
+
[CountryCodes.UnitedKingdom]: {
|
|
3173
|
+
iban: { fields: [
|
|
3174
|
+
"accountHolder",
|
|
3175
|
+
"country",
|
|
3176
|
+
"iban"
|
|
3177
|
+
] },
|
|
3178
|
+
local: { fields: [
|
|
3179
|
+
"accountHolder",
|
|
3180
|
+
"bankAccountNumber",
|
|
3181
|
+
"branchCode",
|
|
3182
|
+
"country"
|
|
3183
|
+
] }
|
|
3184
|
+
},
|
|
3185
|
+
[CountryCodes.UnitedStates]: { local: { fields: [
|
|
3186
|
+
"accountHolder",
|
|
3187
|
+
"accountHolderCity",
|
|
3188
|
+
"bankAccountNumber",
|
|
3189
|
+
"branchCode",
|
|
3190
|
+
"country"
|
|
3191
|
+
] } }
|
|
3192
|
+
};
|
|
3193
|
+
var getAccountFormatsForCountry = (country) => {
|
|
3194
|
+
const countryBankFormats = payoutAccountFormatsByCountry[country];
|
|
3195
|
+
if (!countryBankFormats) throw new Error(`No account formats available for ${country}`);
|
|
3196
|
+
return {
|
|
3197
|
+
...countryBankFormats,
|
|
3198
|
+
numberAndBic: { fields: ["bankAccountNumber", "swiftCode"] }
|
|
3199
|
+
};
|
|
3200
|
+
};
|
|
3036
3201
|
var PayoutDetailsGettingStarted_module_default = {
|
|
3037
3202
|
"payout-details-getting-started": "_payout-details-getting-started_wa0f0_1",
|
|
3038
3203
|
payoutDetailsGettingStarted: "_payout-details-getting-started_wa0f0_1"
|
|
@@ -3087,12 +3252,13 @@ var payoutDetailsCountryConfig = {
|
|
|
3087
3252
|
bankStatementDocument: { label: "listitemVoidedChequeBankLetterBankStatementOnline" }
|
|
3088
3253
|
}
|
|
3089
3254
|
};
|
|
3090
|
-
var parseConfiguration = ({ requiredFields, country, bankVerificationAvailable }) => parsePayoutScenarios({
|
|
3255
|
+
var parseConfiguration = ({ requiredFields, country, bankVerificationAvailable, enableUSBankAccountTypeSelection }) => parsePayoutScenarios({
|
|
3091
3256
|
requiredFields: requiredFields?.fields,
|
|
3092
3257
|
country,
|
|
3093
|
-
bankVerificationAvailable
|
|
3258
|
+
bankVerificationAvailable,
|
|
3259
|
+
enableUSBankAccountTypeSelection
|
|
3094
3260
|
});
|
|
3095
|
-
function parsePayoutScenarios({ requiredFields, country, bankVerificationAvailable }) {
|
|
3261
|
+
function parsePayoutScenarios({ requiredFields, country, bankVerificationAvailable, enableUSBankAccountTypeSelection }) {
|
|
3096
3262
|
if (!requiredFields) return {};
|
|
3097
3263
|
let formConfig = {
|
|
3098
3264
|
payoutVerificationMethod: { rule: "REQUIRED" },
|
|
@@ -3107,6 +3273,7 @@ function parsePayoutScenarios({ requiredFields, country, bankVerificationAvailab
|
|
|
3107
3273
|
obscured: obscuredPayoutFields.includes(fieldName)
|
|
3108
3274
|
};
|
|
3109
3275
|
});
|
|
3276
|
+
if (enableUSBankAccountTypeSelection && country === CountryCodes.UnitedStates) formConfig.accountType = { rule: "REQUIRED" };
|
|
3110
3277
|
if (bankVerificationAvailable) formConfig = {
|
|
3111
3278
|
...formConfig,
|
|
3112
3279
|
verifiedAccountHolder: { rule: "whenUsingInstantVerification" },
|
|
@@ -3197,8 +3364,8 @@ var formatAccountVerificationSummary = (data) => {
|
|
|
3197
3364
|
return summary;
|
|
3198
3365
|
};
|
|
3199
3366
|
//#endregion
|
|
3200
|
-
//#region src/components/BankAccount/tasks/PayoutDetailsDropin/
|
|
3201
|
-
function
|
|
3367
|
+
//#region src/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.tsx
|
|
3368
|
+
function PayoutDetailsDropin({ legalEntityResponse, problems: propProblems, onSubmit: externalOnSubmit, asModal = false, handleCloseClick, taskType: propTaskType, handleHomeClick, currentTransferInstrumentId, navigateBackToTaskList, handleBackClick: externalBackClick, openBankingPartnerConfigId }) {
|
|
3202
3369
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
3203
3370
|
const { data: transferInstrument, refetch: refetchTransferInstrument, isLoading: isTransferInstrumentLoading } = useTransferInstrument(currentTransferInstrumentId ?? skipToken);
|
|
3204
3371
|
const { mutateAsync: handleUpdateTransferInstrument } = useUpdateTransferInstrument();
|
|
@@ -3213,9 +3380,11 @@ function PayoutDetailsDropinMultiForm({ legalEntityResponse, problems: propProbl
|
|
|
3213
3380
|
const { isSettingEnabled } = useSettingsContext();
|
|
3214
3381
|
const { isExperimentEnabled } = useToggleContext();
|
|
3215
3382
|
const enabledCrossBorderPayouts = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
|
|
3383
|
+
const enableUSBankAccountTypeSelection = isFeatureEnabled(FeatureNames.EnableUSBankAccountTypeSelection);
|
|
3216
3384
|
const isForcedManualPayoutFlowEnabled = isExperimentEnabled(ExperimentNames.BankingPayoutFlow_ForcedManualVerification) && !isSettingEnabled(SettingNames.AllowIntraRegionCrossBorderPayout);
|
|
3217
3385
|
const defaultPayoutCountry = getLegalEntityCountry(legalEntityResponse);
|
|
3218
3386
|
const existingPayoutDetails = useMemo$1(() => transferInstrument ? mapTransferInstrumentToPayoutAccount(transferInstrument, enabledCrossBorderPayouts) : void 0, [transferInstrument, enabledCrossBorderPayouts]);
|
|
3387
|
+
const prefilledBankAccountCountry = (enabledCrossBorderPayouts ? existingPayoutDetails?.payoutCountryDetails?.bankCountry : existingPayoutDetails?.payoutVerificationMethod?.bankCountry) ?? defaultPayoutCountry;
|
|
3219
3388
|
const [documents, setDocuments] = useState$1();
|
|
3220
3389
|
const accountHolder = getPayoutAccountHolderName(legalEntityResponse, t);
|
|
3221
3390
|
const fallbackCurrency = currencyByCountry[defaultPayoutCountry]?.[0];
|
|
@@ -3223,33 +3392,39 @@ function PayoutDetailsDropinMultiForm({ legalEntityResponse, problems: propProbl
|
|
|
3223
3392
|
const instantVerificationEnabled = Boolean(!isTransferInstrumentLoading && !transferInstrument && isSettingEnabled("instantBankVerification"));
|
|
3224
3393
|
const taskType = propTaskType ?? TaskTypes.PAYOUT;
|
|
3225
3394
|
const [trustedTransferInstrumentId, setTrustedTransferInstrumentId] = useState$1();
|
|
3226
|
-
const prefilledData = useMemo$1(() =>
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3395
|
+
const prefilledData = useMemo$1(() => {
|
|
3396
|
+
const { accountType: existingAccountType, ...existingPayoutAccountDetails } = existingPayoutDetails?.payoutAccountDetails ?? {};
|
|
3397
|
+
return {
|
|
3398
|
+
payoutCountryDetails: {
|
|
3399
|
+
bankCountry: existingPayoutDetails?.payoutCountryDetails?.bankCountry ?? defaultPayoutCountry,
|
|
3400
|
+
preferredCurrency: existingPayoutDetails?.payoutCountryDetails?.preferredCurrency ?? getDefaultCurrencyForCountry(defaultPayoutCountry)
|
|
3401
|
+
},
|
|
3402
|
+
payoutAccountDetails: {
|
|
3403
|
+
accountHolder: accountHolderName,
|
|
3404
|
+
currency: fallbackCurrency,
|
|
3405
|
+
...existingPayoutAccountDetails,
|
|
3406
|
+
...enableUSBankAccountTypeSelection && prefilledBankAccountCountry === CountryCodes.UnitedStates && { accountType: existingAccountType ?? "checking" }
|
|
3407
|
+
},
|
|
3408
|
+
payoutVerificationMethod: {
|
|
3409
|
+
payoutVerificationMethod: getPayoutVerificationMethod(transferInstrument, instantVerificationEnabled),
|
|
3410
|
+
bankCountry: defaultPayoutCountry,
|
|
3411
|
+
...existingPayoutDetails?.payoutVerificationMethod
|
|
3412
|
+
},
|
|
3413
|
+
payoutAccountVerification: {
|
|
3414
|
+
verifiedAccountHolder: accountHolderName,
|
|
3415
|
+
verifiedBankCountry: defaultPayoutCountry,
|
|
3416
|
+
...existingPayoutDetails?.payoutAccountVerification
|
|
3417
|
+
}
|
|
3418
|
+
};
|
|
3419
|
+
}, [
|
|
3247
3420
|
existingPayoutDetails,
|
|
3248
3421
|
defaultPayoutCountry,
|
|
3249
3422
|
accountHolderName,
|
|
3250
3423
|
fallbackCurrency,
|
|
3251
3424
|
instantVerificationEnabled,
|
|
3252
|
-
transferInstrument
|
|
3425
|
+
transferInstrument,
|
|
3426
|
+
enableUSBankAccountTypeSelection,
|
|
3427
|
+
prefilledBankAccountCountry
|
|
3253
3428
|
]);
|
|
3254
3429
|
const documentUtils = documentApiUtils({
|
|
3255
3430
|
baseUrl: baseUrl.value,
|
|
@@ -3290,6 +3465,7 @@ function PayoutDetailsDropinMultiForm({ legalEntityResponse, problems: propProbl
|
|
|
3290
3465
|
rules: buildFieldValidations
|
|
3291
3466
|
});
|
|
3292
3467
|
const bankAccountCountry = (enabledCrossBorderPayouts ? multiForm.data?.payoutCountryDetails?.bankCountry : multiForm.data?.payoutVerificationMethod?.bankCountry) ?? initialBankAccountCountry;
|
|
3468
|
+
const shouldUseBankAccountType = enableUSBankAccountTypeSelection && bankAccountCountry === CountryCodes.UnitedStates;
|
|
3293
3469
|
const isMaskedBankAccountNumber = multiForm.data.payoutAccountDetails?.bankAccountNumber?.includes("*") || multiForm.data.payoutAccountDetails?.iban?.includes("*");
|
|
3294
3470
|
const existingBankAccountFormat = transferInstrument ? transferInstrument?.bankAccount?.accountIdentification?.type === "numberAndBic" ? "numberAndBic" : existingPayoutDetails?.payoutAccountDetails?.iban ? "iban" : "local" : void 0;
|
|
3295
3471
|
/**
|
|
@@ -3299,6 +3475,21 @@ function PayoutDetailsDropinMultiForm({ legalEntityResponse, problems: propProbl
|
|
|
3299
3475
|
useEffect$1(() => {
|
|
3300
3476
|
resetPayoutSignals();
|
|
3301
3477
|
}, []);
|
|
3478
|
+
useEffect$1(() => {
|
|
3479
|
+
const payoutAccountDetails = multiForm.data.payoutAccountDetails;
|
|
3480
|
+
if (!payoutAccountDetails) return;
|
|
3481
|
+
if (shouldUseBankAccountType) {
|
|
3482
|
+
if (!payoutAccountDetails.accountType) multiForm.setFormData("payoutAccountDetails", {
|
|
3483
|
+
...payoutAccountDetails,
|
|
3484
|
+
accountType: "checking"
|
|
3485
|
+
});
|
|
3486
|
+
return;
|
|
3487
|
+
}
|
|
3488
|
+
if (payoutAccountDetails.accountType) {
|
|
3489
|
+
const { accountType: _accountType, ...payoutAccountDetailsWithoutAccountType } = payoutAccountDetails;
|
|
3490
|
+
multiForm.setFormData("payoutAccountDetails", payoutAccountDetailsWithoutAccountType);
|
|
3491
|
+
}
|
|
3492
|
+
}, [multiForm, shouldUseBankAccountType]);
|
|
3302
3493
|
const { data: providers, refetch: refetchBankVerificationProviders, status: bankVendorsLoadingStatus } = useBankVerificationProviders({
|
|
3303
3494
|
country: bankAccountCountry,
|
|
3304
3495
|
configId: openBankingPartnerConfigId,
|
|
@@ -3320,7 +3511,8 @@ function PayoutDetailsDropinMultiForm({ legalEntityResponse, problems: propProbl
|
|
|
3320
3511
|
instantVerificationAvailable,
|
|
3321
3512
|
setLoadingStatus: setConfigurationLoadingStatus,
|
|
3322
3513
|
country: bankAccountCountry,
|
|
3323
|
-
existingBankAccountFormat
|
|
3514
|
+
existingBankAccountFormat,
|
|
3515
|
+
enableUSBankAccountTypeSelection
|
|
3324
3516
|
});
|
|
3325
3517
|
/**
|
|
3326
3518
|
* parse configuration and create component props
|
|
@@ -3533,6 +3725,10 @@ function PayoutDetailsDropinMultiForm({ legalEntityResponse, problems: propProbl
|
|
|
3533
3725
|
const summaryData = cloneObject(multiForm.data);
|
|
3534
3726
|
if (summaryData.payoutAccountDetails) summaryData.payoutAccountDetails.accountHolder = accountHolderName;
|
|
3535
3727
|
if (summaryData.payoutVerificationMethod?.bankCountry && summaryData.payoutAccountDetails) summaryData.payoutAccountDetails.bankCountry = datasetUtils.getCountryName(summaryData.payoutVerificationMethod.bankCountry);
|
|
3728
|
+
if (shouldUseBankAccountType && summaryData.payoutAccountDetails?.accountType) {
|
|
3729
|
+
const accountTypeKey = summaryData.payoutAccountDetails.accountType;
|
|
3730
|
+
summaryData.payoutAccountDetails.accountType = t(($) => $[accountTypeKey]);
|
|
3731
|
+
}
|
|
3536
3732
|
if (summaryData.payoutAccountDocuments) summaryData.payoutAccountDocuments = formatFileSummaryData(multiForm.data?.payoutAccountDocuments);
|
|
3537
3733
|
summaryData.payoutAccountVerification = formatAccountVerificationSummary(multiForm.data.payoutAccountVerification);
|
|
3538
3734
|
return summaryData;
|
|
@@ -3710,7 +3906,7 @@ function PayoutDetailsDropinMultiForm({ legalEntityResponse, problems: propProbl
|
|
|
3710
3906
|
loadingStatus: isTransferInstrumentLoading ? "loading" : loadingStatus,
|
|
3711
3907
|
disableNextButton: !!classifyingDocument.value,
|
|
3712
3908
|
disableBackButton: !!classifyingDocument.value,
|
|
3713
|
-
children: (!isTransferInstrumentLoading || isSubmitting) && /* @__PURE__ */ jsx(
|
|
3909
|
+
children: (!isTransferInstrumentLoading || isSubmitting) && /* @__PURE__ */ jsx(PayoutDetails, {
|
|
3714
3910
|
activeForm,
|
|
3715
3911
|
shouldValidate,
|
|
3716
3912
|
problems,
|
|
@@ -3733,4 +3929,4 @@ function PayoutDetailsDropinMultiForm({ legalEntityResponse, problems: propProbl
|
|
|
3733
3929
|
});
|
|
3734
3930
|
}
|
|
3735
3931
|
//#endregion
|
|
3736
|
-
export {
|
|
3932
|
+
export { PayoutDetailsDropin as t };
|