@adyen/kyc-components 4.0.0-compact.7 → 4.0.0-compact.9
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/README.md +31 -43
- package/dist/{AcceptTermsOfServiceComponent-BFqDontt.js → AcceptTermsOfServiceComponent-Y5aYfW8R.js} +31 -26
- package/dist/{AccountSetupRejected-f8rcBzZj.js → AccountSetupRejected-BBPH8zsy.js} +2 -5
- package/dist/{ActionBar-CijauUSe.js → ActionBar-CFMobUf9.js} +2 -2
- package/dist/{Address-Bj7zJ6yZ.js → Address-DaePmCRZ.js} +22 -25
- package/dist/{Avatar-DWU7t_0U.js → Avatar-CbD3nP3P.js} +2 -2
- package/dist/{BusinessFinancingComponent-_DvatBRp.js → BusinessFinancingComponent-BfmzIskz.js} +7 -7
- package/dist/{BusinessFinancingDropin-BuATaIOz.js → BusinessFinancingDropin-CLD8LAhP.js} +199 -160
- package/dist/BusinessFinancingPage-Bg-wKhhY.js +43 -0
- package/dist/{BusinessTypeSelectionPage-gsT7g7u8.js → BusinessTypeSelectionPage-D3EIjy_H.js} +11 -17
- package/dist/{Checkbox-5Sc5pzsh.js → Checkbox-DmYVTVOD.js} +2 -2
- package/dist/{Confirm-C0J_JwMM.js → Confirm-NubmSSR7.js} +3 -3
- package/dist/{ConstitutionalDocument-Bw5T0g5Q.js → ConstitutionalDocument-Djj_JCy4.js} +43 -30
- package/dist/{ContactDetails-CXTim9KR.js → ContactDetails-tNdzS3d4.js} +13 -10
- package/dist/{ContextGuidance-074d6FWy.js → ContextGuidance-Dp2PWG5c.js} +2 -3
- package/dist/{CountryField-DxZlK1rV.js → CountryField-C7SjQFv_.js} +4 -6
- package/dist/{CreateIndividualComponent-BppUrKMC.js → CreateIndividualComponent-DwOiAUaA.js} +8 -8
- package/dist/{CreateTransferInstrumentComponent-Cl2NOJb6.js → CreateTransferInstrumentComponent-D29rvuqv.js} +6 -6
- package/dist/{Currency-CIgj9KwH.js → Currency-B4udmJgX.js} +12 -18
- package/dist/{CustomerSupport-UenL9SqQ.js → CustomerSupport-CU3xoowB.js} +10 -11
- package/dist/{DebugModal-KXKodU9u.js → DebugModal-C7WSGJRZ.js} +10 -11
- package/dist/{DecisionMakerDetailsPage-Xwe1qYtH.js → DecisionMakerDetailsPage-C-mB9v5X.js} +10 -10
- package/dist/{DecisionMakers-CJDodZSl.js → DecisionMakers-AhL30Hnp.js} +114 -55
- package/dist/{Dropzone-kpihpy7N.js → Dropzone-B9NMiWRF.js} +4 -4
- package/dist/{EmbeddedStatus-BJjPDUeS.js → EmbeddedStatus-DkQk7orK.js} +3 -3
- package/dist/{EndStateLayout-Cx1NUGVq.js → EndStateLayout-DVisdSEd.js} +2 -2
- package/dist/{EntityAssociation-BtQeHZOq.js → EntityAssociation-BSnS5dP_.js} +5 -6
- package/dist/{EntityGuidanceStatus-DyMVy3R4.js → EntityGuidanceStatus-C2eFgLqN.js} +4 -4
- package/dist/{ErrorPanel-CAALFKmE.js → ErrorPanel-D4kO8XQ8.js} +11 -13
- package/dist/{Field-Bs7wGDqk.js → Field-CPoHG0G-.js} +3 -3
- package/dist/{FormNavigation-BtSvWPRY.js → FormNavigation-yD8USwyG.js} +3 -3
- package/dist/{Individual.rules-CP2tzjmO.js → Individual.rules-0EggSgTn.js} +16 -9
- package/dist/{IndividualDropin-xfXkDkrM.js → IndividualDropin-Eo9sxeBW.js} +692 -267
- package/dist/{InputDate-CLxqciJA.js → InputDate-BVYQZZuX.js} +2 -2
- package/dist/{InputText-BdCbTzL9.js → InputText-C55stM8O.js} +2 -2
- package/dist/{Introduction-BRWdnVv5.js → Introduction-CZ_-eIBj.js} +4 -4
- package/dist/{JpAddress-BSEenMj0.js → JpAddress-B3HjxunW.js} +12 -14
- package/dist/{LandingLayout-kl7TkBGx.js → LandingLayout-C_SbjQZA.js} +2 -3
- package/dist/{LegalCompanyNameField-DzAxAnD9.js → LegalCompanyNameField-DBiJbXem.js} +6 -6
- package/dist/{LegalRepresentativeDetailsPage--yY_D66i.js → LegalRepresentativeDetailsPage-DFKA0RAe.js} +6 -6
- package/dist/{Link-CXYU8cLY.js → Link-ru5UMRxt.js} +2 -2
- package/dist/{ListItem-HD5_HiQ2.js → ListItem-C6ALEoR-.js} +3 -3
- package/dist/{LoaderWrapper-C2PvjjQc.js → LoaderWrapper-BL7Hc_DC.js} +2 -2
- package/dist/{ManageIndividualComponent-BGaAbJjj.js → ManageIndividualComponent-CkybWipX.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-DFjaajE4.js → ManageTermsOfServiceComponent-Cgjagedl.js} +6 -6
- package/dist/{ManageTransferInstrumentComponent-Dndkwh_d.js → ManageTransferInstrumentComponent-DOpxzIzn.js} +16 -18
- package/dist/{MaskedInput-BSW18fxr.js → MaskedInput-1f16YE1z.js} +5 -5
- package/dist/{MaybeModal-xIjl3I31.js → MaybeModal-7NGTfxO6.js} +3 -3
- package/dist/{Modal-CZ-HuGUO.js → Modal-BMdWqd0Y.js} +15 -25
- package/dist/{Name-D6EhveoK.js → Name-BQWEKtu9.js} +5 -5
- package/dist/NewSummary-D-9PYaY6.js +60 -0
- package/dist/{OnboardingDropinComponent-CHtcVTHh.js → OnboardingDropinComponent-CxUcB7IU.js} +813 -121
- package/dist/{PayoutDetailsDropin-C2pNMAZS.js → PayoutDetailsDropin-DWqomQHU.js} +81 -190
- package/dist/PayoutDetailsPage-NIBSRWDA.js +55 -0
- package/dist/{RadioGroup-CxcIXYzs.js → RadioGroup-BuAX_NLA.js} +2 -2
- package/dist/{RadioGroupCard-Y214QWmQ.js → RadioGroupCard-Cbd_S6Fi.js} +2 -2
- package/dist/{Review-B2NCN4h_.js → Review-BjdQyMeU.js} +6 -8
- package/dist/{RootBusinessDetailsPage-hr5fLCIH.js → RootBusinessDetailsPage-CE9KIQRB.js} +6 -6
- package/dist/{RootBusinessLinesPage-DSna9haW.js → RootBusinessLinesPage-DYZETgKB.js} +129 -139
- package/dist/{RootIndividualDetailsPage-BItguz9n.js → RootIndividualDetailsPage-DCEHjEbR.js} +9 -10
- package/dist/{Select-DaCJsYNl.js → Select-seF9rM5K.js} +4 -4
- package/dist/{SignPCIComponent-C2YjBxQM.js → SignPCIComponent-CkaBa8MB.js} +18 -17
- package/dist/{SingpassSelection-B3ozCH9I.js → SingpassSelection-FctS_Rd2.js} +6 -6
- package/dist/{SoleProprietorshipPage-DIzzhgjr.js → SoleProprietorshipPage-BolUC48_.js} +5 -5
- package/dist/{SourceOfFundsPage-C3kXyE7G.js → SourceOfFundsPage-qPaoxTgM.js} +272 -103
- package/dist/{StepProgressIndicator-BSGlNU3K.js → StepProgressIndicator-DQIv4e4a.js} +2 -2
- package/dist/{StoreProvider-99-ewU62.js → StoreProvider-CBB99upB.js} +1032 -292
- package/dist/{StructuredList-CVMZBzwq.js → StructuredList-EKVbq_i3.js} +1 -1
- package/dist/{Summary-D0GcSMNn.js → Summary-C5uRwUKn.js} +28 -24
- package/dist/{TaxInformationField-BxQvx1zK.js → TaxInformationField-B7AVdVgf.js} +614 -634
- package/dist/{TaxReportingDropin-BqvAQH2c.js → TaxReportingDropin-C2dEK3ij.js} +15 -17
- package/dist/{TextArea-BjsWgkR-.js → TextArea-BbRKVKmP.js} +2 -2
- package/dist/{TileGroup-C-5-VREz.js → TileGroup-oKbh_YGv.js} +3 -3
- package/dist/{TrustDetailsPage-YROGiuFJ.js → TrustDetailsPage-BbQB4A5-.js} +129 -120
- package/dist/{TrustMemberCompanyPage-Z2EuqPEI.js → TrustMemberCompanyPage-CbRLAXBG.js} +7 -7
- package/dist/TrustMemberIndividualPage-BFRSkSas.js +64 -0
- package/dist/{TrustMemberRoleAndTypePage-BEOtdItr.js → TrustMemberRoleAndTypePage-pS7j8_f6.js} +35 -44
- package/dist/{TrustMembersOverview-GybHMIEU.js → TrustMembersOverview-aEVgO4Gr.js} +17 -21
- package/dist/{UnincorporatedPartnershipIndividualPage-BCYxSTlv.js → UnincorporatedPartnershipIndividualPage-DO7AXsP5.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-Buez4OHl.js → UnincorporatedPartnershipMemberCompanyPage-qvOu17yc.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Cfpe0BuU.js → UnincorporatedPartnershipMemberRoleAndTypePage-reBMcz-Y.js} +15 -16
- package/dist/{UnincorporatedPartnershipMembersOverview-B3Vi088r.js → UnincorporatedPartnershipMembersOverview-B5YCchZY.js} +8 -12
- package/dist/{VerificationErrorAlert-C6_ewC7c.js → VerificationErrorAlert-BcntIwEo.js} +23 -4
- package/dist/{ViewVerificationStatusComponent-DpA4jlct.js → ViewVerificationStatusComponent-CrQahS3p.js} +3 -4
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-invited-decision-maker.js +87 -17
- package/dist/adyen-kyc-components.js +18 -47
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +3 -3
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-CIGv_BK8.js → bafinUtils-B1LygAFl.js} +14 -2
- package/dist/{commonValidators-DTt6he7v.js → commonValidators-CInBRB1V.js} +2 -2
- package/dist/{da-DK-JHZnsI59.js → da-DK-BfsYpvel.js} +18 -3
- package/dist/{da-DK-CGWvmdkq.js → da-DK-CLdNh9JT.js} +1 -2
- package/dist/{da-DK-gnPgzwrG.js → da-DK-CM1onr3w.js} +3 -1
- package/dist/{da-DK-Cd5IQPv3.js → da-DK-CMVthpSr.js} +2 -2
- package/dist/da-DK-Cv6XUSoW.js +13 -0
- package/dist/da-DK-D9FgPh5e.js +13 -0
- package/dist/{da-DK-h8DYQ_Iq.js → da-DK-mUuPR2YO.js} +2 -2
- package/dist/{de-DE-C9NH2zMh.js → de-DE-B5TOuf7l.js} +2 -2
- package/dist/{de-DE-DHDJhahG.js → de-DE-BT5g7ZXC.js} +1 -2
- package/dist/de-DE-BplDsJEb.js +13 -0
- package/dist/{de-DE-D3lLuF8z.js → de-DE-CA4mYLwp.js} +3 -1
- package/dist/{de-DE-VGGEkxUT.js → de-DE-CEsDXBn-.js} +18 -3
- package/dist/de-DE-Cg_RNIr-.js +13 -0
- package/dist/{de-DE-LQE_LFFL.js → de-DE-CwT6O212.js} +2 -2
- package/dist/{dropinUtils--st1YpV6.js → dropinUtils-D44Paj5u.js} +30 -16
- package/dist/{en-US-h0JneJJl.js → en-US--1W760fR.js} +2 -2
- package/dist/{en-US-CjjPhkB5.js → en-US-B-qSAb-7.js} +2 -1
- package/dist/en-US-B6tiYqel.js +13 -0
- package/dist/en-US-CfazE4ht.js +13 -0
- package/dist/{en-US-DoiQhi0j.js → en-US-CgakND3H.js} +1 -2
- package/dist/{en-US-D1sB335h.js → en-US-DIlZD5Wh.js} +16 -1
- package/dist/{en-US-DYP6rAvA.js → en-US-G607HIyo.js} +2 -2
- package/dist/{en-US-B96dpVon.js → en-US-fDACdKtT.js} +3 -1
- package/dist/{en-US.instructions-Ddr7AO05.js → en-US.instructions-CfIM2SRF.js} +1 -2
- package/dist/{es-ES-CxnsKEh4.js → es-ES-4FS7NoE7.js} +1 -2
- package/dist/{es-ES-CXDJLKAI.js → es-ES-BBcx4tvi.js} +3 -1
- package/dist/{es-ES-Bn9_0wK0.js → es-ES-BWFP5itn.js} +18 -3
- package/dist/es-ES-BZiC4JWr.js +13 -0
- package/dist/{es-ES-DdGmXdxO.js → es-ES-Bh8k9Zx8.js} +2 -2
- package/dist/es-ES-DRsix_Xn.js +13 -0
- package/dist/{es-ES-DK-7qtDf.js → es-ES-Wcpc6fm1.js} +2 -2
- package/dist/{fi-FI-fArobrt5.js → fi-FI-BKu826v5.js} +3 -1
- package/dist/fi-FI-BftTiz0c.js +13 -0
- package/dist/fi-FI-CEH4BfU3.js +13 -0
- package/dist/{fi-FI-PVFqd5Ra.js → fi-FI-DenK0WPz.js} +18 -3
- package/dist/{fi-FI-CIYa9SyS.js → fi-FI-DhUeTfn1.js} +2 -2
- package/dist/{fi-FI-57-xkioo.js → fi-FI-XpnJRPgt.js} +1 -2
- package/dist/{formUtils-C_sWWLS3.js → formUtils-BEcbGHkz.js} +3 -18
- package/dist/{fr-FR-mJK4hjwD.js → fr-FR-BmTswZU5.js} +18 -3
- package/dist/fr-FR-C6jxjXAI.js +13 -0
- package/dist/{fr-FR-CiwkAb3E.js → fr-FR-C7iSS-OS.js} +3 -1
- package/dist/{fr-FR-l5z31r7i.js → fr-FR-CocDMzBc.js} +2 -2
- package/dist/{fr-FR-B2je0smB.js → fr-FR-DodNoPid.js} +2 -2
- package/dist/fr-FR-NxOktkWc.js +13 -0
- package/dist/{fr-FR-BxiX8Zfi.js → fr-FR-TqAhPvzz.js} +1 -2
- package/dist/{getName-CnZDw7kV.js → getName-CdgtxRvu.js} +2 -2
- package/dist/{getProblemsForEntity-D8qEVVOM.js → getProblemsForEntity-DFP6N3co.js} +2 -2
- package/dist/{iframeWidget-DqeucjDU.js → iframeWidget-B0fieiAe.js} +4 -4
- package/dist/{isEmpty-CUuXL9Na.js → isEmpty-3U9fSQsY.js} +2 -2
- package/dist/{it-IT-BAvmkEF8.js → it-IT-B4bk2Xev.js} +2 -2
- package/dist/{it-IT-DIbH-udG.js → it-IT-CUrn0j1I.js} +3 -1
- package/dist/it-IT-CXlaZNIj.js +13 -0
- package/dist/{it-IT-Dhwa9Ecj.js → it-IT-CZ4aDoVQ.js} +2 -2
- package/dist/{it-IT-masgjk9F.js → it-IT-D-jYXj6V.js} +1 -2
- package/dist/{it-IT-BTWkWSJq.js → it-IT-DJe5OflH.js} +18 -3
- package/dist/it-IT-OppZz3gW.js +13 -0
- package/dist/{ja-JP-vv3-YsHU.js → ja-JP-8yMqZqF2.js} +1 -2
- package/dist/ja-JP-A6ArIIZ8.js +13 -0
- package/dist/{ja-JP-Bc4U0S8-.js → ja-JP-BpeNsNhn.js} +3 -3
- package/dist/{ja-JP-bz7ekGnF.js → ja-JP-CbP1sVFP.js} +4 -2
- package/dist/ja-JP-CethQRoG.js +13 -0
- package/dist/{ja-JP-g6VOUGXZ.js → ja-JP-DK55NCZY.js} +1 -2
- package/dist/{ja-JP-CceCDXLB.js → ja-JP-GGV_-V6p.js} +18 -3
- package/dist/{ja-JP-Bv3ru9Xq.js → ja-JP-GX3l4yqn.js} +17 -17
- package/dist/{japanSupportUtils-CGWcXGP2.js → japanSupportUtils-CaeglTl1.js} +2 -2
- package/dist/{localizeDateString-D6tFShQu.js → localizeDateString-D2nDwdFu.js} +2 -2
- package/dist/{mapExistingFile-BM9f5AeG.js → mapExistingFile-BigOdLU3.js} +4 -4
- package/dist/mapJpAddressSchemaToAddressLocalizations-DUoJIoRm.js +54 -0
- package/dist/{mapLegalEntityToIndividualSchema-DVKTWyvx.js → mapLegalEntityToIndividualSchema-UVUkctdQ.js} +43 -45
- package/dist/{mapTransferInstrumentToPayoutAccount--gtugk3J.js → mapTransferInstrumentToPayoutAccount-qpUP3sTf.js} +2 -2
- package/dist/{nl-NL-CTf7zH4M.js → nl-NL-4Mv4rnYy.js} +18 -3
- package/dist/{nl-NL-B0fvINJj.js → nl-NL-B2Uku0lw.js} +2 -2
- package/dist/nl-NL-BwWFlBOs.js +13 -0
- package/dist/nl-NL-CYFznuWn.js +13 -0
- package/dist/{nl-NL-DV4NqPVW.js → nl-NL-J7XpCpQm.js} +2 -2
- package/dist/{nl-NL-D1b5RUJ0.js → nl-NL-Jhr-ICkK.js} +1 -2
- package/dist/{nl-NL-NlkjOSYi.js → nl-NL-Lo8OF_nj.js} +3 -1
- package/dist/{no-NO-Crlsj6HG.js → no-NO-6chPsZZE.js} +3 -1
- package/dist/{no-NO-Dkh4SWbB.js → no-NO-BH6DId3q.js} +1 -2
- package/dist/no-NO-BsEie1We.js +13 -0
- package/dist/{no-NO-RfTK9KAV.js → no-NO-ByCZ3mhz.js} +18 -3
- package/dist/{no-NO-B9618F4_.js → no-NO-CtDyNTm6.js} +2 -2
- package/dist/{no-NO-Jw7Gae-a.js → no-NO-DjOcJWnC.js} +2 -2
- package/dist/no-NO-JWsSd7iY.js +13 -0
- package/dist/{patternValidators-vYKnE5-t.js → patternValidators-BkY5yvNa.js} +2 -2
- package/dist/{process-field-configurations-Dl2Isz78.js → process-field-configurations-BnIbMyYt.js} +5 -5
- package/dist/{pt-BR-BRdIEO2O.js → pt-BR-4Iozxvfr.js} +1 -2
- package/dist/pt-BR-BJOww8U1.js +13 -0
- package/dist/{pt-BR-BaTE6BB_.js → pt-BR-BKdT0Bpl.js} +2 -2
- package/dist/pt-BR-C-YbDjn-.js +13 -0
- package/dist/{pt-BR-zuqB_CBf.js → pt-BR-D4BTdo_w.js} +2 -2
- package/dist/{pt-BR-BfxgHKY4.js → pt-BR-DRBFUW-X.js} +3 -1
- package/dist/{pt-BR-BbFJsIVX.js → pt-BR-DRz5cG4o.js} +18 -3
- package/dist/{resolveEnvironment-B_JokQ0n.js → resolveEnvironment-C5RkjL5E.js} +5 -5
- package/dist/{roleMetadata-eM6T7GeQ.js → roleMetadata-C8VLzyMj.js} +3 -3
- package/dist/sl-SI-BfO3xEJx.js +13 -0
- package/dist/sl-SI-CJH14wbj.js +13 -0
- package/dist/{sl-SI-59OQIZ3f.js → sl-SI-C_4ajjU4.js} +2 -2
- package/dist/{sl-SI-D8dDckrW.js → sl-SI-DKSu25rO.js} +18 -3
- package/dist/{sl-SI-C-C-KJCX.js → sl-SI-UFngWs5n.js} +3 -1
- package/dist/{sl-SI-CvUzNn9Z.js → sl-SI-Y9h1ht45.js} +1 -2
- package/dist/style.css +1868 -1836
- package/dist/styles-CLV89_hH.js +1868 -1836
- package/dist/{sv-SE-D_Efxy3s.js → sv-SE-Blw4s8bC.js} +2 -2
- package/dist/sv-SE-CMLKzwtj.js +13 -0
- package/dist/{sv-SE-DGpvVvWj.js → sv-SE-Co7Nkd06.js} +18 -3
- package/dist/{sv-SE-BHfydid5.js → sv-SE-Cr0s35EH.js} +3 -1
- package/dist/{sv-SE-BsLkPEzn.js → sv-SE-DFSm22oQ.js} +1 -2
- package/dist/{sv-SE-CQWBP7n1.js → sv-SE-DKnUr7xo.js} +2 -2
- package/dist/sv-SE-ZsucW_Uj.js +13 -0
- package/dist/{isNewEntity-7Vw_eQBr.js → trusted-fields-provider-BgfIoSNJ.js} +6 -3
- package/dist/types/api/companyDataSet/companyDataset.types.d.ts +5 -0
- package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +6 -3
- package/dist/types/api/companySearch/companySearch.types.d.ts +8 -0
- package/dist/types/api/companySearch/useCompanySearch.d.ts +9 -3
- package/dist/types/api/companySelection/companySelection.types.d.ts +3 -3
- package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +1 -0
- package/dist/types/api/invitations/invitations.types.d.ts +14 -0
- package/dist/types/api/invitations/useCreateInvitation.d.ts +14 -0
- package/dist/types/api/invitations/useInvitationStatuses.d.ts +8 -0
- package/dist/types/api/invitedEntity/useInvitedEntityAssociationData.d.ts +9 -0
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +4 -4
- package/dist/types/api/queryKeys.d.ts +4 -1
- package/dist/types/api/toggles/useToggles.d.ts +9 -0
- package/dist/types/components/Apps/tasks/TaskList/types.d.ts +2 -2
- package/dist/types/components/BankAccount/fields/BankAccountNumber/BankAccountNumber.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankCode/BankCode.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BranchCode/BranchCode.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/Iban.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +2 -2
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +0 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +2 -2
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +7 -7
- package/dist/types/components/Business/forms/FinancialInformation/FinancialInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Business/forms/FinancialInformation/types.d.ts +7 -17
- package/dist/types/components/Business/forms/rules.d.ts +10 -8
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -6
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +2 -1
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
- package/dist/types/components/Business/utils/companyUtil.d.ts +1 -1
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +6 -0
- package/dist/types/components/Business/utils/submit.d.ts +2 -0
- package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +5 -0
- package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +4 -4
- package/dist/types/components/Contract/tasks/PciDropin/PciDropin.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/types.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2783 -2783
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSummary.d.ts +14 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +5 -7
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +8 -9
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +11 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +15 -0
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.d.ts +1 -1
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -0
- package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +1 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +5 -4
- package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +2 -2
- package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +6 -6
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IdVerificationMethod/{individualOnfidoConflictsSchema.d.ts → individualConflictsSchema.d.ts} +12 -12
- package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +2 -2
- package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual.d.ts +12 -7
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +6 -5
- package/dist/types/components/Individual/forms/Individual.types.d.ts +15 -5
- package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.d.ts +4 -0
- package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/InviteDetails/validate.d.ts +3 -0
- package/dist/types/components/Individual/forms/form-ids.d.ts +2 -2
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +2 -2
- package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -2
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +2 -2
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -6
- package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +2 -2
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +3 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerListItem/DecisionMakerListItem.d.ts +8 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerGettingStarted/InvitedDecisionMakerGettingStarted.d.ts +4 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerSubmitSuccess/InvitedDecisionMakerSubmitSuccess.d.ts +1 -0
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
- package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -0
- package/dist/types/components/Shared/FormNavigation/types.d.ts +2 -2
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +14 -0
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -0
- package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +0 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/Currency/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/FinancialReportingDate/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +5 -244
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/fields/NumberOfEmployees/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -0
- package/dist/types/components/Shared/fields/ReportedValueOptionField/ReportedValueOptionField.d.ts +3 -0
- package/dist/types/components/Shared/fields/ReportedValueOptionField/fieldConfig.d.ts +5 -0
- package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +10 -0
- package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +17 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/getDefaultTaxIdNumberType.d.ts +5 -5
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/inferTaxIdNumberType.d.ts +5 -5
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +2 -3
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +232 -0
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +9 -1
- package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +13 -0
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +5 -5
- package/dist/types/components/Shared/forms/Address/utils.d.ts +6 -1
- package/dist/types/components/Shared/forms/Address/validate.d.ts +4 -4
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +6 -6
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +5 -4
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +1 -1
- package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +2 -2
- package/dist/types/components/ui/atoms/Icon/Icon.d.ts +1 -1
- package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
- package/dist/types/components/ui/atoms/Svg/Svg.d.ts +1 -4
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +0 -4
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +2 -2
- package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +1 -1
- package/dist/types/context/ExperimentContext/types.d.ts +9 -7
- package/dist/types/context/FormRouterContext/FormRouterContext.d.ts +4 -0
- package/dist/types/context/FormRouterContext/useFormRouterContext.d.ts +3 -0
- package/dist/types/context/StateContext/types.d.ts +2 -2
- package/dist/types/core/models/api/financialReport.d.ts +7 -1
- package/dist/types/core/models/api/legal-entity.d.ts +1 -6
- package/dist/types/core/models/api/organization.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +1 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +5 -0
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +7 -2
- package/dist/types/embeds/individual-status/adyen-individual-status.types.d.ts +5 -0
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +5 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +5 -0
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.types.d.ts +5 -0
- package/dist/types/embeds/terms-of-service-status/adyen-terms-of-service-status.types.d.ts +5 -0
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.types.d.ts +5 -0
- package/dist/types/embeds/transfer-instrument-management/adyen-transfer-instrument-management.types.d.ts +5 -0
- package/dist/types/embeds/verification-status/adyen-verification-status.types.d.ts +5 -0
- package/dist/types/hooks/useForm/types.d.ts +3 -6
- package/dist/types/hooks/useUboQuestionnaire.d.ts +1 -1
- package/dist/types/language/types.d.ts +3 -15
- package/dist/types/language/utils.d.ts +6 -5
- package/dist/types/stores/formState.d.ts +2 -2
- package/dist/types/stores/globalStore/get-task-status.d.ts +6 -0
- package/dist/types/types/errors/error-message.d.ts +2 -2
- package/dist/types/types/errors/remediation.d.ts +2 -2
- package/dist/types/types/form-configuration.d.ts +2 -2
- package/dist/types/types/form.d.ts +2 -2
- package/dist/types/utils/decisionMaker.d.ts +2 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +6 -6
- package/dist/types/utils/formUtils.d.ts +5 -6
- package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
- package/dist/types/utils/not.d.ts +12 -0
- package/dist/types/utils/roleMetadata.d.ts +4 -4
- package/dist/types/utils/textTransformation/toFullWidth.d.ts +2 -3
- package/dist/types/utils/validatorUtils.d.ts +1 -0
- package/dist/types-CQ2p58-6.js +36 -0
- package/dist/{types-C8io4KaH.js → types-CcxS0801.js} +2 -2
- package/dist/{types-DwXc_yI8.js → types-DcouFF7I.js} +2 -2
- package/dist/{types-B7GElie6.js → types-_ugkpUNx.js} +11 -9
- package/dist/{types-BQL9Lsg4.js → types-vXKpLHZM.js} +2 -2
- package/dist/{Image-CAucF9wz.js → unincorporated-partnership-QawJyhxx.js} +8 -7
- package/dist/{useAssociatedLegalEntity-ETDoz1H2.js → useAssociatedLegalEntity-DXp9udzH.js} +2 -2
- package/dist/{useBusinessDetailsData-FrL0b9Ni.js → useBusinessDetailsData-CgfVRRNG.js} +1090 -917
- package/dist/{useCreateLegalEntity-DrcLoNYT.js → useCreateLegalEntity-C5daQcez.js} +2 -2
- package/dist/{useForm-DqUW2TbW.js → useForm-BQDytQRR.js} +3 -3
- package/dist/{useFormContext-CkuaJPUI.js → useFormContext-CX6rQNws.js} +9 -8
- package/dist/{FormWrapper-B3N3YosC.js → useGlobalData-xVRfhIqc.js} +66 -11
- package/dist/{useMultiForm-Dm2IEMH9.js → useMultiForm-DRZSxmEa.js} +12 -6
- package/dist/{useOnboardingStatus-H7Xqe2GC.js → useOnboardingStatus-C6X8CPF2.js} +2 -2
- package/dist/{useScenarios-CibP5LVa.js → useScenarios-C5uruC52.js} +2 -2
- package/dist/{useTermsOfServiceStatus-Dg_nBQgt.js → useTermsOfServiceStatus-CABu0vXO.js} +2 -2
- package/dist/{useToastContext-D643iewp.js → useToastContext-C2BAjZxO.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-BM9dNg4i.js → useUnincorporatedPartnershipMembers-Duhfzca2.js} +5 -5
- package/dist/{useUpdateBusinessLines-BuW6Vnof.js → useUpdateBusinessLines-CFgADcSW.js} +5 -5
- package/dist/{useUpdateLegalEntity-tRw1V_Mt.js → useUpdateLegalEntity-vK1vTzAB.js} +3 -3
- package/dist/{utils-D9h2Aq2w.js → utils-Bh3VtXaW.js} +55 -22
- package/dist/{utils-BnolcW6V.js → utils-Bo1WrnnM.js} +6 -6
- package/dist/{utils-BasWTkqk.js → utils-BvFIL5qs.js} +22 -2
- package/dist/{utils-b_KUV0wb.js → utils-HUgTKRia.js} +2 -2
- package/dist/{utils-PkTZS9uf.js → utils-nUjUW0ze.js} +2 -2
- package/dist/{validate-K0fmvoFj.js → validate-CDGLD3wC.js} +24 -12
- package/dist/{validate-CtxacqMv.js → validate-DDCTmBf4.js} +5 -5
- package/dist/{validationError-DdlWONz2.js → validationError-DmAD3_AN.js} +3 -3
- package/package.json +35 -53
- package/dist/Accordion-B2vSnESS.js +0 -88
- package/dist/Alert-CFmX9yNV.js +0 -169
- package/dist/BusinessFinancingPage-Bpu78Ynn.js +0 -43
- package/dist/DropinLayout-CBP_cHLC.js +0 -17
- package/dist/Header-vslG1ugE.js +0 -83
- package/dist/TaskVerificationStatus-DZIw2ztV.js +0 -129
- package/dist/TrustMemberIndividualPage-DmNp3D89.js +0 -64
- package/dist/accountHolderUtils-Btu9mMnM.js +0 -66
- package/dist/company-types-value-D_mKv5PT.js +0 -23
- package/dist/da-DK-DvZ431fC.js +0 -13
- package/dist/da-DK-DzcTI92X.js +0 -13
- package/dist/datasetUtil-BHQp0-xL.js +0 -58
- package/dist/de-DE-0uSzhWg5.js +0 -13
- package/dist/de-DE-dPfrbCii.js +0 -13
- package/dist/en-US-CozY33On.js +0 -13
- package/dist/en-US-cVpRgdC8.js +0 -13
- package/dist/es-ES--IvNed_Q.js +0 -13
- package/dist/es-ES-B7dt4cn7.js +0 -13
- package/dist/fi-FI-BUixKfXH.js +0 -13
- package/dist/fi-FI-REMsyTSr.js +0 -13
- package/dist/filterProblemsByTaskForms-Cz7iQtms.js +0 -30
- package/dist/fr-FR-BM-qNLci.js +0 -13
- package/dist/fr-FR-CvHWmim-.js +0 -13
- package/dist/getTrustedFields-C5-mXl-l.js +0 -64
- package/dist/it-IT-BeX7-OcD.js +0 -13
- package/dist/it-IT-D63gRTDc.js +0 -13
- package/dist/ja-JP-B3wVYIJU.js +0 -151
- package/dist/ja-JP-DL0IjTzn.js +0 -13
- package/dist/mapJpAddressSchemaToAddressLocalizations-Cu4hdrYE.js +0 -162
- package/dist/nl-NL-CM5U8ODq.js +0 -13
- package/dist/nl-NL-KQ6bciOb.js +0 -13
- package/dist/no-NO-BQL_M1pn.js +0 -13
- package/dist/no-NO-Ds3VioxT.js +0 -13
- package/dist/pt-BR-AZ3roErF.js +0 -13
- package/dist/pt-BR-Ct4s4jXV.js +0 -13
- package/dist/sl-SI-C0wSbuau.js +0 -13
- package/dist/sl-SI-hxwQIw_i.js +0 -13
- package/dist/sv-SE-0PQ-U1u6.js +0 -13
- package/dist/sv-SE-DtKjf4Go.js +0 -13
- package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +0 -23
- package/dist/unincorporated-partnership-MeN1dp53.js +0 -97
- package/dist/useBusinessLines-C5NQ5pE8.js +0 -29
- package/dist/useCanSeeIntroduction-BdZJ7k-_.js +0 -48
- package/dist/useDataMissingRemediations-Zgtpw7uZ.js +0 -41
- package/dist/useDataset-Cap5ZjTr.js +0 -76
- package/dist/useDeleteTransferInstrument-B2wRj-qL.js +0 -32
- package/dist/useGlobalData-5Z6W3or1.js +0 -68
- package/dist/useNavigate-CI0N-POy.js +0 -265
- package/dist/usePciQuestionnaireList-BF7TPjbQ.js +0 -29
- package/dist/useSalesChannels-DYGRfKeh.js +0 -65
- package/dist/useSetting-CbBaitp6.js +0 -19
- package/dist/useTaskStatus-1OZ2clnm.js +0 -51
- package/dist/useTrustMembers-BTCDIu6B.js +0 -163
- /package/dist/types/components/{Business/forms/FinancialInformation → Shared/fields/ReportedValueOptionField}/ReportedValue.d.ts +0 -0
|
@@ -2,53 +2,50 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7ebf1097-f7e4-47c2-b6e7-f4afd34052a5", e._sentryDebugIdIdentifier = "sentry-dbid-7ebf1097-f7e4-47c2-b6e7-f4afd34052a5");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext,
|
|
10
|
+
import { b as useApiContext, h as httpPost, j as httpGet, u as useTranslation, O as Typography, G as Alert, W as Button, ac as translateTranslatable, V as Loader, B as Icon, C as IconButton, Z as TASK_STATUS_POLLING_INTERVAL_MS, aB as Header, P as StackLayout, m as createLogger, R as useLegalEntity, U as ROOT_LE, z as useAnalyticsContext, bS as useLegalEntities, ah as objectsDeepEqual, a as addResourceBundles, w as EntityTypes, a9 as getLegalEntityCountry, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-CBB99upB.js";
|
|
11
11
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
12
|
-
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-
|
|
12
|
+
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-DFP6N3co.js";
|
|
13
13
|
import { useState, useMemo, useCallback, useEffect } from "preact/hooks";
|
|
14
|
-
import {
|
|
14
|
+
import { f as useTaskStatus, j as useBusinessLines } from "./OnboardingDropinComponent-CxUcB7IU.js";
|
|
15
15
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
|
|
16
|
-
import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-
|
|
17
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
18
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
19
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-
|
|
20
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils
|
|
21
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
22
|
-
import { c as createDocumentRequest, d as documentApiUtils } from "./validate-
|
|
16
|
+
import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-C2BAjZxO.js";
|
|
17
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-C5daQcez.js";
|
|
18
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-vK1vTzAB.js";
|
|
19
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-CX6rQNws.js";
|
|
20
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-D44Paj5u.js";
|
|
21
|
+
import { u as useMultiForm } from "./useMultiForm-DRZSxmEa.js";
|
|
22
|
+
import { c as createDocumentRequest, d as documentApiUtils } from "./validate-DDCTmBf4.js";
|
|
23
|
+
import { i as isEmpty } from "./isEmpty-3U9fSQsY.js";
|
|
23
24
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
24
25
|
import { signal } from "@preact/signals";
|
|
25
|
-
import { E as ErrorPanel } from "./ErrorPanel-
|
|
26
|
-
import { c as createFormUtils } from "./formUtils-
|
|
27
|
-
import { F as Field } from "./Field-
|
|
28
|
-
import { S as Select } from "./Select-
|
|
29
|
-
import { T as TextArea } from "./TextArea-
|
|
30
|
-
import { I as InputDate } from "./InputDate-
|
|
26
|
+
import { E as ErrorPanel } from "./ErrorPanel-D4kO8XQ8.js";
|
|
27
|
+
import { c as createFormUtils } from "./formUtils-BEcbGHkz.js";
|
|
28
|
+
import { F as Field } from "./Field-CPoHG0G-.js";
|
|
29
|
+
import { S as Select } from "./Select-seF9rM5K.js";
|
|
30
|
+
import { T as TextArea } from "./TextArea-BbRKVKmP.js";
|
|
31
|
+
import { I as InputDate } from "./InputDate-BVYQZZuX.js";
|
|
31
32
|
import { I as InputGroup } from "./InputGroup-WBfGDV5F.js";
|
|
32
|
-
import { I as InputText } from "./InputText-
|
|
33
|
-
import { a as allowedCurrencies, T as TODAY_DATE,
|
|
34
|
-
import { R as RadioGroup } from "./RadioGroup-
|
|
35
|
-
import { C as CountryField } from "./CountryField-
|
|
36
|
-
import { A as Avatar } from "./Avatar-
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import { C as
|
|
40
|
-
import { T as TileGroup } from "./TileGroup-
|
|
33
|
+
import { I as InputText } from "./InputText-C55stM8O.js";
|
|
34
|
+
import { a as allowedCurrencies, T as TODAY_DATE, b as formatDateForInput, S as SOF_CHARACTERS_LIMIT, g as getInputErrors, c as formatAmountWithCurrency, s as sofCategoryItemMapper, d as getPageHeadings, e as getServiceTranslationSelectTitle, h as getSofCardDetails, i as getGettingStartedCardDetails, j as getAdditionalDataSchemaKeys, k as getServiceTranslation, p as parseSOFDocumentDescription, l as getRelevantErrors, m as getUniqueRemediationActions, n as SOF_INVALID_INPUT_ERROR_CODES, o as getServiceTranslationKey, q as getDocumentRequirements, r as getDocumentLists, t as getSourceOfFundsRequiredFields, M as MISSING_DATA_SOF_UPLOAD_CODE, u as parseOriginatorDetails, v as getApplicableBusinessLines, w as areSourceOfFundsEqual, x as getSourceOfFundsRequiredForms, y as getSourceOfFundsPayload, z as getAdditionalDataForOriginator, A as ALLOWED_SOF_SERVICES, B as parseSofOriginatorPayload } from "./utils-Bh3VtXaW.js";
|
|
35
|
+
import { R as RadioGroup } from "./RadioGroup-BuAX_NLA.js";
|
|
36
|
+
import { C as CountryField } from "./CountryField-C7SjQFv_.js";
|
|
37
|
+
import { A as Avatar } from "./Avatar-CbD3nP3P.js";
|
|
38
|
+
import { M as Modal } from "./Modal-BMdWqd0Y.js";
|
|
39
|
+
import { C as Confirm } from "./Confirm-NubmSSR7.js";
|
|
40
|
+
import { C as Checkbox } from "./Checkbox-DmYVTVOD.js";
|
|
41
|
+
import { T as TileGroup } from "./TileGroup-oKbh_YGv.js";
|
|
41
42
|
import { lazy } from "preact/compat";
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { I as Image } from "./Image-CAucF9wz.js";
|
|
45
|
-
import { L as LandingLayout } from "./LandingLayout-kl7TkBGx.js";
|
|
46
|
-
import { S as StackLayout } from "./unincorporated-partnership-MeN1dp53.js";
|
|
47
|
-
import { i as isEmpty } from "./isEmpty-CUuXL9Na.js";
|
|
43
|
+
import { I as Image } from "./unincorporated-partnership-QawJyhxx.js";
|
|
44
|
+
import { L as LandingLayout } from "./LandingLayout-C_SbjQZA.js";
|
|
48
45
|
import { C as Card } from "./Card-OQuFzmxm.js";
|
|
49
|
-
import { S as StructuredList } from "./StructuredList-
|
|
50
|
-
import { D as Dropzone } from "./Dropzone-
|
|
51
|
-
import { v as validateDateNotInTheFuture } from "./validate-
|
|
46
|
+
import { S as StructuredList } from "./StructuredList-EKVbq_i3.js";
|
|
47
|
+
import { D as Dropzone } from "./Dropzone-B9NMiWRF.js";
|
|
48
|
+
import { v as validateDateNotInTheFuture } from "./validate-CDGLD3wC.js";
|
|
52
49
|
const updateSourceOfFunds = async (businessLineId, legalEntityId, baseUrl, data) => {
|
|
53
50
|
return httpPost(
|
|
54
51
|
{
|
|
@@ -116,6 +113,7 @@ const sourceOfFunds = "adyen-kyc-source-of-funds";
|
|
|
116
113
|
const sourceOfFundsWrapperLoading = "adyen-kyc-source-of-funds-wrapper-loading";
|
|
117
114
|
const sourceOfFundsWrapperHeading = "adyen-kyc-source-of-funds-wrapper-heading";
|
|
118
115
|
const sourceOfFundsWrapperDescription = "adyen-kyc-source-of-funds-wrapper-description";
|
|
116
|
+
const sourceOfFundsSameAsCheckbox = "adyen-kyc-source-of-funds-same-as-checkbox";
|
|
119
117
|
const sourceOfFundsGettingStarted = "adyen-kyc-source-of-funds-getting-started";
|
|
120
118
|
const sourceOfFundsGettingStartedError = "adyen-kyc-source-of-funds-getting-started-error";
|
|
121
119
|
const sourceOfFundsGettingStartedErrorActions = "adyen-kyc-source-of-funds-getting-started-error-actions";
|
|
@@ -141,6 +139,7 @@ const styles = {
|
|
|
141
139
|
sourceOfFundsWrapperLoading,
|
|
142
140
|
sourceOfFundsWrapperHeading,
|
|
143
141
|
sourceOfFundsWrapperDescription,
|
|
142
|
+
sourceOfFundsSameAsCheckbox,
|
|
144
143
|
sourceOfFundsGettingStarted,
|
|
145
144
|
sourceOfFundsGettingStartedError,
|
|
146
145
|
sourceOfFundsGettingStartedErrorActions,
|
|
@@ -232,7 +231,7 @@ function AdditionalDataForAssetSale(props) {
|
|
|
232
231
|
{
|
|
233
232
|
...childProps,
|
|
234
233
|
name: "dateOfSourceEvent",
|
|
235
|
-
value: data.dateOfSourceEvent,
|
|
234
|
+
value: formatDateForInput(data.dateOfSourceEvent),
|
|
236
235
|
onInput: handleChangeFor("dateOfSourceEvent", "input"),
|
|
237
236
|
onBlur: handleChangeFor("dateOfSourceEvent", "blur"),
|
|
238
237
|
"aria-required": true,
|
|
@@ -1041,8 +1040,8 @@ function AdditionalDataForThirdParty(props) {
|
|
|
1041
1040
|
const [activeFinancier, setActiveFinancier] = useState();
|
|
1042
1041
|
const [activeIndex, setActiveIndex] = useState();
|
|
1043
1042
|
const { data, fieldProblems, errors, handleChangeFor, formUtils, valid } = props;
|
|
1043
|
+
const { t: commonT } = useTranslation("common");
|
|
1044
1044
|
const { t: sofT } = useTranslation("sof");
|
|
1045
|
-
const { i18n } = useI18nContext();
|
|
1046
1045
|
const handleToggleFinancierModal = () => {
|
|
1047
1046
|
setActiveFinancier(void 0);
|
|
1048
1047
|
setActiveIndex(void 0);
|
|
@@ -1083,13 +1082,12 @@ function AdditionalDataForThirdParty(props) {
|
|
|
1083
1082
|
};
|
|
1084
1083
|
handleChangeFor("financiers")(financierEvent);
|
|
1085
1084
|
};
|
|
1085
|
+
const errorMessage = formUtils.getErrorMessage("financiers", errors, fieldProblems);
|
|
1086
1086
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1087
1087
|
errors.financiers && !valid.financiers && /* @__PURE__ */ jsx(
|
|
1088
1088
|
Alert,
|
|
1089
1089
|
{
|
|
1090
|
-
title:
|
|
1091
|
-
formUtils.getErrorMessage("financiers", errors, fieldProblems)
|
|
1092
|
-
),
|
|
1090
|
+
title: typeof errorMessage == "boolean" ? void 0 : translateTranslatable(commonT, errorMessage),
|
|
1093
1091
|
variant: "error",
|
|
1094
1092
|
className: styles.sourceOfFundsSofFinancierFormError,
|
|
1095
1093
|
children: sofT(($) => $["addAtLeastOneInvestor"])
|
|
@@ -1211,16 +1209,21 @@ function SourceOfFundsAdditionalData(props) {
|
|
|
1211
1209
|
}
|
|
1212
1210
|
function SourceOfFundsType(props) {
|
|
1213
1211
|
const { t } = useTranslation(["common", "sof"]);
|
|
1214
|
-
const { i18n } = useI18nContext();
|
|
1215
1212
|
const {
|
|
1216
1213
|
data: formData,
|
|
1217
1214
|
categories,
|
|
1218
1215
|
errors: formErrors,
|
|
1219
|
-
fieldValidationErrors: formFieldProblems
|
|
1216
|
+
fieldValidationErrors: formFieldProblems,
|
|
1217
|
+
sameAsOption,
|
|
1218
|
+
useSameAs,
|
|
1219
|
+
onUseSameAsChange
|
|
1220
1220
|
} = props;
|
|
1221
1221
|
const { form } = useFormContext();
|
|
1222
1222
|
const { handleChangeFor } = form;
|
|
1223
1223
|
const handleFieldChange = (fieldName, mode) => handleChangeFor(fieldName, "sourceOfFundsType", mode);
|
|
1224
|
+
const handleUseSameAsChange = (isChecked) => {
|
|
1225
|
+
onUseSameAsChange?.(isChecked);
|
|
1226
|
+
};
|
|
1224
1227
|
const formUtils = createFormUtils(props, t);
|
|
1225
1228
|
const categoryItems = [
|
|
1226
1229
|
{
|
|
@@ -1235,16 +1238,32 @@ function SourceOfFundsType(props) {
|
|
|
1235
1238
|
})) ?? []
|
|
1236
1239
|
];
|
|
1237
1240
|
const errorMessage = formUtils.getErrorMessage("type", formErrors, formFieldProblems);
|
|
1238
|
-
return /* @__PURE__ */
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1241
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1242
|
+
sameAsOption && /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsSameAsCheckbox, children: /* @__PURE__ */ jsx(Field, { name: "useSameAs", children: (childProps) => /* @__PURE__ */ jsx(
|
|
1243
|
+
Checkbox,
|
|
1244
|
+
{
|
|
1245
|
+
...childProps,
|
|
1246
|
+
"aria-required": false,
|
|
1247
|
+
"aria-invalid": false,
|
|
1248
|
+
name: "useSameAs",
|
|
1249
|
+
label: t(($) => $["useSameFundingSourceAndDetails"], {
|
|
1250
|
+
ns: "sof"
|
|
1251
|
+
}),
|
|
1252
|
+
checked: Boolean(useSameAs),
|
|
1253
|
+
onChange: handleUseSameAsChange
|
|
1254
|
+
}
|
|
1255
|
+
) }) }),
|
|
1256
|
+
/* @__PURE__ */ jsx(Field, { el: "fieldset", name: "type", children: () => /* @__PURE__ */ jsx(
|
|
1257
|
+
TileGroup,
|
|
1258
|
+
{
|
|
1259
|
+
name: "type",
|
|
1260
|
+
tiles: categoryItems,
|
|
1261
|
+
errorMessage: typeof errorMessage !== "boolean" ? translateTranslatable(t, errorMessage) : void 0,
|
|
1262
|
+
selected: formData?.type ? formData.type : [],
|
|
1263
|
+
onChange: handleFieldChange("type", "input")
|
|
1264
|
+
}
|
|
1265
|
+
) })
|
|
1266
|
+
] });
|
|
1248
1267
|
}
|
|
1249
1268
|
function getIconById(id) {
|
|
1250
1269
|
switch (id) {
|
|
@@ -1285,7 +1304,14 @@ function getIconById(id) {
|
|
|
1285
1304
|
}
|
|
1286
1305
|
}
|
|
1287
1306
|
function SourceOfFunds(props) {
|
|
1288
|
-
const {
|
|
1307
|
+
const {
|
|
1308
|
+
activeForm,
|
|
1309
|
+
activeBusinessLine,
|
|
1310
|
+
sourceOfFundsType,
|
|
1311
|
+
sameAsOption,
|
|
1312
|
+
useSameAs,
|
|
1313
|
+
onUseSameAsChange
|
|
1314
|
+
} = props;
|
|
1289
1315
|
const { form } = useFormContext();
|
|
1290
1316
|
const { data: formData, errors, valid, fieldProblems: fieldValidationErrors } = form;
|
|
1291
1317
|
const { data: sourceOfFundsTypesData, isLoading } = useSourceOfFundsTypes();
|
|
@@ -1327,7 +1353,10 @@ function SourceOfFunds(props) {
|
|
|
1327
1353
|
data: formData?.sourceOfFundsType,
|
|
1328
1354
|
errors: errors?.sourceOfFundsType,
|
|
1329
1355
|
valid: valid?.sourceOfFundsType,
|
|
1330
|
-
fieldValidationErrors: fieldValidationErrors?.sourceOfFundsType
|
|
1356
|
+
fieldValidationErrors: fieldValidationErrors?.sourceOfFundsType,
|
|
1357
|
+
sameAsOption,
|
|
1358
|
+
useSameAs,
|
|
1359
|
+
onUseSameAsChange
|
|
1331
1360
|
}
|
|
1332
1361
|
),
|
|
1333
1362
|
activeForm?.formId === "additionalData" && /* @__PURE__ */ jsx(
|
|
@@ -1377,7 +1406,6 @@ const SourceOfFundsGettingStarted = ({
|
|
|
1377
1406
|
}) => {
|
|
1378
1407
|
const { t: sofT } = useTranslation("sof");
|
|
1379
1408
|
const { t: commonT } = useTranslation("common");
|
|
1380
|
-
const { i18n } = useI18nContext();
|
|
1381
1409
|
const hasSourceOfFunds = businessLines?.some(
|
|
1382
1410
|
(businessLine) => !isEmpty(businessLine.sourceOfFunds)
|
|
1383
1411
|
);
|
|
@@ -1448,7 +1476,7 @@ const SourceOfFundsGettingStarted = ({
|
|
|
1448
1476
|
);
|
|
1449
1477
|
});
|
|
1450
1478
|
},
|
|
1451
|
-
[handleSourceOfFundsClick,
|
|
1479
|
+
[handleSourceOfFundsClick, sofDocuments]
|
|
1452
1480
|
);
|
|
1453
1481
|
const errorObjects = useMemo(
|
|
1454
1482
|
() => getRelevantErrors(problems, SOF_INVALID_INPUT_ERROR_CODES),
|
|
@@ -1559,7 +1587,10 @@ const SOFUploadModal = (props) => {
|
|
|
1559
1587
|
setDocumentType(e.target.value);
|
|
1560
1588
|
};
|
|
1561
1589
|
const serviceRadioItems = useMemo(() => {
|
|
1562
|
-
|
|
1590
|
+
const uniqueBusinessLines = Array.from(
|
|
1591
|
+
new Map(businessLines.map((businessLine) => [businessLine.service, businessLine])).values()
|
|
1592
|
+
);
|
|
1593
|
+
return uniqueBusinessLines.map((businessLine) => ({
|
|
1563
1594
|
id: businessLine.service,
|
|
1564
1595
|
name: sofT(($) => $[getServiceTranslationKey(businessLine?.service || "")])
|
|
1565
1596
|
}));
|
|
@@ -1866,6 +1897,7 @@ function SourceOfFundsDropin({
|
|
|
1866
1897
|
const [gettingStarted, setGettingStarted] = useState(true);
|
|
1867
1898
|
const [showUploadPage, setShowUploadPage] = useState(false);
|
|
1868
1899
|
const [loading, setLoading] = useState(false);
|
|
1900
|
+
const [useSameAs, setUseSameAs] = useState(false);
|
|
1869
1901
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
1870
1902
|
const { t: sofT } = useTranslation("sof");
|
|
1871
1903
|
const userEvents = useAnalyticsContext();
|
|
@@ -1885,6 +1917,7 @@ function SourceOfFundsDropin({
|
|
|
1885
1917
|
const {
|
|
1886
1918
|
data = activeSourceOfFund,
|
|
1887
1919
|
setFormData,
|
|
1920
|
+
setData,
|
|
1888
1921
|
requiredFields,
|
|
1889
1922
|
isValid,
|
|
1890
1923
|
triggerValidation
|
|
@@ -1940,20 +1973,21 @@ function SourceOfFundsDropin({
|
|
|
1940
1973
|
setLoading(true);
|
|
1941
1974
|
try {
|
|
1942
1975
|
if (normalizedBusinessLines.length) {
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
(businessLine) => mapSourceOfFundToSourceOfFundsSchema(businessLine)
|
|
1976
|
+
setAllBusinessLines(
|
|
1977
|
+
(prev) => objectsDeepEqual(prev, normalizedBusinessLines) ? prev : normalizedBusinessLines
|
|
1946
1978
|
);
|
|
1947
|
-
if (
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1979
|
+
if (!activeBusinessLine) {
|
|
1980
|
+
const firstBusinessLine = normalizedBusinessLines[0];
|
|
1981
|
+
if (firstBusinessLine) {
|
|
1982
|
+
const mappedSof = mapSourceOfFundToSourceOfFundsSchema(firstBusinessLine);
|
|
1983
|
+
setActiveBusinessLine(firstBusinessLine);
|
|
1984
|
+
setActiveSourceOfFund(mappedSof);
|
|
1985
|
+
if (mappedSof?.sourceOfFundsType) {
|
|
1986
|
+
setFormData("sourceOfFundsType", mappedSof.sourceOfFundsType);
|
|
1987
|
+
}
|
|
1988
|
+
if (mappedSof?.additionalData) {
|
|
1989
|
+
setFormData("additionalData", mappedSof.additionalData);
|
|
1990
|
+
}
|
|
1957
1991
|
}
|
|
1958
1992
|
}
|
|
1959
1993
|
}
|
|
@@ -1964,12 +1998,35 @@ function SourceOfFundsDropin({
|
|
|
1964
1998
|
setLoading(false);
|
|
1965
1999
|
}
|
|
1966
2000
|
}
|
|
1967
|
-
}, [
|
|
2001
|
+
}, [
|
|
2002
|
+
sofBusinessLines,
|
|
2003
|
+
areLegalEntitiesLoading,
|
|
2004
|
+
normalizedBusinessLines,
|
|
2005
|
+
activeBusinessLine,
|
|
2006
|
+
sofT,
|
|
2007
|
+
logger
|
|
2008
|
+
]);
|
|
1968
2009
|
useEffect(() => {
|
|
1969
2010
|
userEvents.addTaskEvent("Landed on page", {
|
|
1970
2011
|
actionType: "start"
|
|
1971
2012
|
});
|
|
1972
2013
|
}, [userEvents]);
|
|
2014
|
+
useEffect(() => {
|
|
2015
|
+
if (!gettingStarted && activeBusinessLine && allBusinessLines.length > 1) {
|
|
2016
|
+
const applicableBusinessLines = getApplicableBusinessLines(allBusinessLines);
|
|
2017
|
+
if (applicableBusinessLines.length > 1) {
|
|
2018
|
+
const allHaveSoFType = applicableBusinessLines.every((bl) => bl.sourceOfFunds?.type);
|
|
2019
|
+
if (allHaveSoFType) {
|
|
2020
|
+
const currentSoF = mapSourceOfFundToSourceOfFundsSchema(activeBusinessLine);
|
|
2021
|
+
const allIdentical = applicableBusinessLines.filter((bl) => bl.id !== activeBusinessLine.id).every((bl) => {
|
|
2022
|
+
const blSoF = mapSourceOfFundToSourceOfFundsSchema(bl);
|
|
2023
|
+
return areSourceOfFundsEqual(currentSoF, blSoF);
|
|
2024
|
+
});
|
|
2025
|
+
setUseSameAs(allIdentical);
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
}, [gettingStarted, activeBusinessLine, allBusinessLines]);
|
|
1973
2030
|
const sourceOfFundsRequiredForms = useMemo(
|
|
1974
2031
|
() => getSourceOfFundsRequiredForms(data?.sourceOfFundsType),
|
|
1975
2032
|
[data?.sourceOfFundsType]
|
|
@@ -2021,45 +2078,108 @@ function SourceOfFundsDropin({
|
|
|
2021
2078
|
setLoadingStatus("loading");
|
|
2022
2079
|
const { additionalData } = sofData;
|
|
2023
2080
|
const sofPayload = getSourceOfFundsPayload(sofType, additionalData);
|
|
2024
|
-
if (sofType === "donations" || sofType === "inheritance") {
|
|
2025
|
-
try {
|
|
2026
|
-
sofPayload.originatorLegalEntityId = await createOrUpdateOriginator(
|
|
2027
|
-
additionalData,
|
|
2028
|
-
activeSourceOfFund?.additionalData
|
|
2029
|
-
);
|
|
2030
|
-
} catch (e) {
|
|
2031
|
-
setSofErrorMessage(e?.message || sofT(($) => $["errorUpdatingSourceOfFunds"]));
|
|
2032
|
-
logger.log("Error updating source of funds", e);
|
|
2033
|
-
}
|
|
2034
|
-
eventsAdditionalData.originatorType = additionalData?.originatorType ?? "";
|
|
2035
|
-
}
|
|
2036
2081
|
if (sofType === "thirdPartyFunding") {
|
|
2037
2082
|
eventsAdditionalData.financiers = `${additionalData?.financiers?.length || 0} investor(s)`;
|
|
2038
2083
|
}
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2084
|
+
if (sofType === "donations" || sofType === "inheritance") {
|
|
2085
|
+
eventsAdditionalData.originatorType = additionalData?.originatorType ?? "";
|
|
2086
|
+
}
|
|
2087
|
+
const targetBusinessLines = useSameAs ? getApplicableBusinessLines(allBusinessLines) : [activeBusinessLine];
|
|
2088
|
+
const savePromises = targetBusinessLines.filter((bl) => bl.id).map(async (bl) => {
|
|
2089
|
+
const payload = { ...sofPayload };
|
|
2090
|
+
if (sofType === "donations" || sofType === "inheritance") {
|
|
2091
|
+
try {
|
|
2092
|
+
const blSourceOfFunds = mapSourceOfFundToSourceOfFundsSchema(bl);
|
|
2093
|
+
const blAdditionalData = blSourceOfFunds?.additionalData;
|
|
2094
|
+
const originatorDataForBl = useSameAs ? {
|
|
2095
|
+
...additionalData,
|
|
2096
|
+
originatorLegalEntityId: blAdditionalData?.originatorLegalEntityId
|
|
2097
|
+
} : getAdditionalDataForOriginator(
|
|
2098
|
+
additionalData,
|
|
2099
|
+
activeSourceOfFund?.additionalData,
|
|
2100
|
+
useSameAs
|
|
2101
|
+
);
|
|
2102
|
+
payload.originatorLegalEntityId = await createOrUpdateOriginator(
|
|
2103
|
+
originatorDataForBl,
|
|
2104
|
+
blAdditionalData
|
|
2105
|
+
);
|
|
2106
|
+
} catch (e) {
|
|
2107
|
+
logger.log("Error creating originator legal entity for business line", e);
|
|
2108
|
+
throw e;
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
return updateSoFMutation({
|
|
2112
|
+
...payload,
|
|
2113
|
+
businessLineId: bl.id
|
|
2049
2114
|
});
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2115
|
+
});
|
|
2116
|
+
try {
|
|
2117
|
+
const results = await Promise.allSettled(savePromises);
|
|
2118
|
+
const failures = results.filter((r) => r.status === "rejected");
|
|
2119
|
+
if (failures.length > 0) {
|
|
2120
|
+
setSofErrorMessage(
|
|
2121
|
+
sofT(($) => $["errorUpdatingMultipleSourceOfFunds"], { count: failures.length })
|
|
2122
|
+
);
|
|
2123
|
+
logger.error("Failed to update SoF for some business lines", failures);
|
|
2124
|
+
}
|
|
2125
|
+
const successes = results.filter((r) => r.status === "fulfilled");
|
|
2126
|
+
if (successes.length > 0) {
|
|
2127
|
+
userEvents.addTaskEvent("Success", {
|
|
2128
|
+
actionType: "submit",
|
|
2129
|
+
returnValue: sofType,
|
|
2130
|
+
additionalData: {
|
|
2131
|
+
...eventsAdditionalData,
|
|
2132
|
+
appliedToMultiple: useSameAs,
|
|
2133
|
+
successCount: successes.length,
|
|
2134
|
+
failureCount: failures.length
|
|
2135
|
+
}
|
|
2136
|
+
});
|
|
2137
|
+
setGettingStarted(true);
|
|
2138
|
+
setShowUploadPage(false);
|
|
2139
|
+
setActiveSourceOfFund({ sourceOfFundsType: {}, additionalData: {} });
|
|
2140
|
+
gotoFormByFormIndex(0);
|
|
2141
|
+
setUseSameAs(false);
|
|
2142
|
+
if (failures.length === 0) {
|
|
2143
|
+
showToast({ label: sofT(($) => $["successAddedFundingSources"]), variant: "success" });
|
|
2144
|
+
setSofErrorMessage("");
|
|
2145
|
+
} else {
|
|
2146
|
+
showToast({
|
|
2147
|
+
label: sofT(($) => $["successAddedFundingSources"]),
|
|
2148
|
+
variant: "success"
|
|
2149
|
+
});
|
|
2150
|
+
}
|
|
2151
|
+
if (useSameAs) {
|
|
2152
|
+
} else {
|
|
2153
|
+
const applicableBusinessLines = getApplicableBusinessLines(allBusinessLines);
|
|
2154
|
+
const businessLinesWithSoFAfterSubmit = applicableBusinessLines.filter((bl) => {
|
|
2155
|
+
const wasJustUpdated = targetBusinessLines.some((target) => target.id === bl.id);
|
|
2156
|
+
return wasJustUpdated || !isEmpty(bl.sourceOfFunds);
|
|
2157
|
+
});
|
|
2158
|
+
if (businessLinesWithSoFAfterSubmit.length === applicableBusinessLines.length) {
|
|
2159
|
+
handleHomeClick?.();
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
} else {
|
|
2163
|
+
setSofErrorMessage(sofT(($) => $["errorUpdatingSourceOfFunds"]));
|
|
2164
|
+
}
|
|
2057
2165
|
} catch (e) {
|
|
2058
2166
|
setSofErrorMessage(sofT(($) => $["errorUpdatingSourceOfFunds"]));
|
|
2059
2167
|
logger.log("Error updating source of funds", e);
|
|
2060
2168
|
}
|
|
2061
2169
|
setLoadingStatus("success");
|
|
2062
|
-
}, [
|
|
2170
|
+
}, [
|
|
2171
|
+
data,
|
|
2172
|
+
activeSourceOfFund,
|
|
2173
|
+
activeBusinessLine,
|
|
2174
|
+
allBusinessLines,
|
|
2175
|
+
useSameAs,
|
|
2176
|
+
updateSoFMutation,
|
|
2177
|
+
createOrUpdateOriginator,
|
|
2178
|
+
userEvents,
|
|
2179
|
+
showToast,
|
|
2180
|
+
sofT,
|
|
2181
|
+
logger
|
|
2182
|
+
]);
|
|
2063
2183
|
const handleGettingStarted = useCallback(() => {
|
|
2064
2184
|
setGettingStarted(!gettingStarted);
|
|
2065
2185
|
}, [gettingStarted]);
|
|
@@ -2067,7 +2187,53 @@ function SourceOfFundsDropin({
|
|
|
2067
2187
|
setActiveBusinessLine(businessLine);
|
|
2068
2188
|
setActiveSourceOfFund(SoF);
|
|
2069
2189
|
setGettingStarted(false);
|
|
2190
|
+
setUseSameAs(false);
|
|
2070
2191
|
};
|
|
2192
|
+
const sameAsOption = useMemo(() => {
|
|
2193
|
+
if (!activeBusinessLine || !allBusinessLines.length) {
|
|
2194
|
+
return void 0;
|
|
2195
|
+
}
|
|
2196
|
+
const applicableBusinessLines = getApplicableBusinessLines(allBusinessLines);
|
|
2197
|
+
if (applicableBusinessLines.length <= 1) {
|
|
2198
|
+
return void 0;
|
|
2199
|
+
}
|
|
2200
|
+
return {
|
|
2201
|
+
businessLineId: "",
|
|
2202
|
+
// Not used anymore
|
|
2203
|
+
productName: sofT(($) => $["useSameFundingSourceAndDetails"]),
|
|
2204
|
+
sourceOfFunds: activeSourceOfFund
|
|
2205
|
+
};
|
|
2206
|
+
}, [activeBusinessLine, allBusinessLines, activeSourceOfFund, sofT]);
|
|
2207
|
+
const setAdditionalDataFields = useCallback(
|
|
2208
|
+
(additionalData) => {
|
|
2209
|
+
if (!additionalData) return;
|
|
2210
|
+
Object.keys(additionalData).forEach((key) => {
|
|
2211
|
+
const fieldKey = key;
|
|
2212
|
+
const value = additionalData[fieldKey];
|
|
2213
|
+
if (value !== void 0) {
|
|
2214
|
+
setData(fieldKey, value, "additionalData");
|
|
2215
|
+
}
|
|
2216
|
+
});
|
|
2217
|
+
},
|
|
2218
|
+
[setData]
|
|
2219
|
+
);
|
|
2220
|
+
const handleUseSameAsChange = useCallback(
|
|
2221
|
+
(checked) => {
|
|
2222
|
+
setUseSameAs(checked);
|
|
2223
|
+
if (checked && sameAsOption) {
|
|
2224
|
+
const { sourceOfFunds: sourceOfFunds2 } = sameAsOption;
|
|
2225
|
+
setActiveSourceOfFund(sourceOfFunds2);
|
|
2226
|
+
setFormData("sourceOfFundsType", sourceOfFunds2.sourceOfFundsType);
|
|
2227
|
+
setAdditionalDataFields(sourceOfFunds2.additionalData);
|
|
2228
|
+
} else if (!checked && activeBusinessLine) {
|
|
2229
|
+
const currentSoF = mapSourceOfFundToSourceOfFundsSchema(activeBusinessLine);
|
|
2230
|
+
setActiveSourceOfFund(currentSoF);
|
|
2231
|
+
setFormData("sourceOfFundsType", currentSoF.sourceOfFundsType);
|
|
2232
|
+
setAdditionalDataFields(currentSoF.additionalData);
|
|
2233
|
+
}
|
|
2234
|
+
},
|
|
2235
|
+
[sameAsOption, activeBusinessLine, setFormData, setAdditionalDataFields]
|
|
2236
|
+
);
|
|
2071
2237
|
const { handleNextClick, activeForm, gotoFormByFormIndex, steps, handleBackClick } = useFormComposer({
|
|
2072
2238
|
problems,
|
|
2073
2239
|
forms,
|
|
@@ -2128,7 +2294,10 @@ function SourceOfFundsDropin({
|
|
|
2128
2294
|
activeForm,
|
|
2129
2295
|
activeBusinessLine,
|
|
2130
2296
|
sourceOfFundsType: data?.sourceOfFundsType?.type,
|
|
2131
|
-
data: activeSourceOfFund
|
|
2297
|
+
data: activeSourceOfFund,
|
|
2298
|
+
sameAsOption,
|
|
2299
|
+
useSameAs,
|
|
2300
|
+
onUseSameAsChange: handleUseSameAsChange
|
|
2132
2301
|
}
|
|
2133
2302
|
)
|
|
2134
2303
|
}
|
|
@@ -2140,7 +2309,7 @@ const SourceOfFundsPage = ({ onSubmit, handleHomeClick }) => {
|
|
|
2140
2309
|
const capabilityProblems = useCapabilityProblems();
|
|
2141
2310
|
const { i18n } = useTranslation();
|
|
2142
2311
|
addResourceBundles(i18n, [
|
|
2143
|
-
{ ns: "sof", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../tasks/SourceOfFundsDropin/language/da-DK.json": () => import("./da-DK-DZwlENGe.js"), "../tasks/SourceOfFundsDropin/language/de-DE.json": () => import("./de-DE-DXR3EpEc.js"), "../tasks/SourceOfFundsDropin/language/en-US.json": () => import("./en-US-
|
|
2312
|
+
{ ns: "sof", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../tasks/SourceOfFundsDropin/language/da-DK.json": () => import("./da-DK-DZwlENGe.js"), "../tasks/SourceOfFundsDropin/language/de-DE.json": () => import("./de-DE-DXR3EpEc.js"), "../tasks/SourceOfFundsDropin/language/en-US.json": () => import("./en-US-CfazE4ht.js"), "../tasks/SourceOfFundsDropin/language/es-ES.json": () => import("./es-ES-yMXcOjDL.js"), "../tasks/SourceOfFundsDropin/language/fi-FI.json": () => import("./fi-FI-xqnQ38yC.js"), "../tasks/SourceOfFundsDropin/language/fr-FR.json": () => import("./fr-FR-BSynpexF.js"), "../tasks/SourceOfFundsDropin/language/it-IT.json": () => import("./it-IT-C_651bEP.js"), "../tasks/SourceOfFundsDropin/language/ja-JP.json": () => import("./ja-JP-CvNJvxkQ.js"), "../tasks/SourceOfFundsDropin/language/nl-NL.json": () => import("./nl-NL-JChnFdCY.js"), "../tasks/SourceOfFundsDropin/language/no-NO.json": () => import("./no-NO--OoWld_l.js"), "../tasks/SourceOfFundsDropin/language/pt-BR.json": () => import("./pt-BR-C0I_kTQ6.js"), "../tasks/SourceOfFundsDropin/language/sl-SI.json": () => import("./sl-SI-BZpXMHiG.js"), "../tasks/SourceOfFundsDropin/language/sv-SE.json": () => import("./sv-SE-DsPdegWB.js") }), `../tasks/SourceOfFundsDropin/language/${lang}.json`, 5) }
|
|
2144
2313
|
]);
|
|
2145
2314
|
if (!rootLe) {
|
|
2146
2315
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "82d9d0f2-275c-43bd-a665-33f65da63e77", e._sentryDebugIdIdentifier = "sentry-dbid-82d9d0f2-275c-43bd-a665-33f65da63e77");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { u as useTranslation,
|
|
12
|
+
import { u as useTranslation, O as Typography } from "./StoreProvider-CBB99upB.js";
|
|
13
13
|
const range = (stop, start = 0, step = 1) => Array.from({ length: (stop - start) / step + 1 }, (_, i) => start + i * step);
|
|
14
14
|
const progressBar = "adyen-kyc-progress-bar";
|
|
15
15
|
const progressBarThick = "adyen-kyc-progress-bar-thick";
|