@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
package/dist/{OnboardingDropinComponent-CHtcVTHh.js → OnboardingDropinComponent-CxUcB7IU.js}
RENAMED
|
@@ -2,81 +2,99 @@
|
|
|
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] = "be431836-4ae7-4131-9a9c-4931d0ce0ef9", e._sentryDebugIdIdentifier = "sentry-dbid-be431836-4ae7-4131-9a9c-4931d0ce0ef9");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import {
|
|
10
|
+
import { b as useApiContext, h as httpPost, j as httpGet, k as useSettingsContext, m as createLogger, o as TaskStatuses, p as isPartOfTrustFromLegalEntity, q as hasSolePropInLegalEntity, L as LegalEntityTypes, r as hasOwnEntityAssociationOfType, t as isEmptyEntity, v as useAccountHolder, u as useTranslation, w as EntityTypes, x as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, y as TaskTypes, z as useAnalyticsContext, B as Icon, C as IconButton, G as Alert, H as TaskVerificationStatus, J as useExperimentsContext, K as isInstantVerifiedAccount, M as getObscuredAccountNumber, N as useGetTaskStatus, O as Typography, P as StackLayout, R as useLegalEntity, U as ROOT_LE, V as Loader, W as Button, X as useGlobalStore, Y as TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS, Z as TASK_STATUS_POLLING_INTERVAL_MS, $ as useSetting, a0 as isPartOfUnincorporatedPartnership, a1 as doesLegalEntityRequiresLegalRepresentative, a2 as getLegalRepresentative, a3 as getOwnSignatories, a4 as getOwnDecisionMakersLegalEntityIds, a5 as getOwnSolePropProblems, a6 as getOwnTrustProblems, a7 as getOwnUnincorporatedPartnershipProblems, a8 as useLocalStorage, a9 as getLegalEntityCountry, aa as CountryCodes, ab as Skeleton, ac as translateTranslatable, ad as getOwnEntityAssociations, ae as TrustMemberTypes, af as hasAllCapabilitiesResolved, ag as hasRejectedCapabilities, ah as objectsDeepEqual, ai as noop, aj as useToggles, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-CBB99upB.js";
|
|
11
11
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
12
12
|
import { useQuery, skipToken } from "@tanstack/preact-query";
|
|
13
13
|
import { lazy, Suspense } from "preact/compat";
|
|
14
|
-
import { useState, useEffect, useReducer,
|
|
15
|
-
import { u as
|
|
16
|
-
import { u as usePciQuestionnaireList, g as getPciQuestionnaireList } from "./usePciQuestionnaireList-BF7TPjbQ.js";
|
|
17
|
-
import { u as useSalesChannels, a as usePciStatus } from "./useSalesChannels-DYGRfKeh.js";
|
|
18
|
-
import { g as getAccountTaskStatus, u as useTaskStatus } from "./useTaskStatus-1OZ2clnm.js";
|
|
19
|
-
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-Dg_nBQgt.js";
|
|
14
|
+
import { useMemo, useState, useEffect, useReducer, useCallback, useContext, useRef } from "preact/hooks";
|
|
15
|
+
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-CABu0vXO.js";
|
|
20
16
|
import { C as Card } from "./Card-OQuFzmxm.js";
|
|
21
|
-
import {
|
|
22
|
-
import { u as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { g as getDefaultAccountHolderType } from "./accountHolderUtils-Btu9mMnM.js";
|
|
27
|
-
import { u as useDataMissingRemediations } from "./useDataMissingRemediations-Zgtpw7uZ.js";
|
|
28
|
-
import { S as StackLayout, U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-MeN1dp53.js";
|
|
29
|
-
import { u as useCapabilityProblems } from "./getProblemsForEntity-D8qEVVOM.js";
|
|
17
|
+
import { S as SettingNames } from "./types-CQ2p58-6.js";
|
|
18
|
+
import { u as useToastContext } from "./useToastContext-C2BAjZxO.js";
|
|
19
|
+
import { C as CompanyTypesValues, i as isBafinSignatoryFlow, s as showIdNowModal, a as idNowPostSubmit } from "./bafinUtils-B1LygAFl.js";
|
|
20
|
+
import { E as EndStateLayout } from "./EndStateLayout-DVisdSEd.js";
|
|
21
|
+
import { u as useCapabilityProblems } from "./getProblemsForEntity-DFP6N3co.js";
|
|
30
22
|
import { d as downloadFile } from "./file-CiG1D0zy.js";
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { E as ExperimentNames } from "./types-B7GElie6.js";
|
|
39
|
-
import { T as TrustedFieldsProviders, I as Image } from "./Image-CAucF9wz.js";
|
|
40
|
-
import { g as getTrustedFieldsProvider } from "./getTrustedFields-C5-mXl-l.js";
|
|
41
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-ETDoz1H2.js";
|
|
23
|
+
import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-BcntIwEo.js";
|
|
24
|
+
import { A as Avatar } from "./Avatar-CbD3nP3P.js";
|
|
25
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-BL7Hc_DC.js";
|
|
26
|
+
import { C as Confirm } from "./Confirm-NubmSSR7.js";
|
|
27
|
+
import { E as ExperimentNames } from "./types-_ugkpUNx.js";
|
|
28
|
+
import { T as TrustedFieldsProviders } from "./trusted-fields-provider-BgfIoSNJ.js";
|
|
29
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-DXp9udzH.js";
|
|
42
30
|
import cx from "classnames";
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import { Route, Switch, useRouter, useLocation, matchRoute, Router } from "wouter-preact";
|
|
31
|
+
import { I as Image, U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-QawJyhxx.js";
|
|
32
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-CdgtxRvu.js";
|
|
33
|
+
import { matchRoute, useLocation, Route, Switch, useRouter, Router } from "wouter-preact";
|
|
47
34
|
import { memoryLocation } from "wouter-preact/memory-location";
|
|
48
35
|
import { createContext } from "preact";
|
|
49
|
-
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
if (showBusinessFinancingFirst) {
|
|
64
|
-
return TaskTypes.BUSINESS_FINANCING;
|
|
65
|
-
}
|
|
66
|
-
if (canChangeEntityType && canSeeEntitySelection && !hasLegalEntityProgressedBeyondEntitySelection)
|
|
67
|
-
return TaskTypes.BUSINESS_TYPE_SELECTION;
|
|
68
|
-
if (showIntroduction) return TaskTypes.INTRODUCTION;
|
|
69
|
-
if (shouldShowSingpassSelection) return TaskTypes.SINGPASS_SELECTION;
|
|
70
|
-
return TaskTypes.TASKS_OVERVIEW;
|
|
71
|
-
};
|
|
72
|
-
const hasProgressedBeyondEntitySelection$1 = (legalEntity) => {
|
|
73
|
-
const hasOwnEntityAssocation = legalEntity.entityAssociations?.some(
|
|
74
|
-
(ea) => ea.associatorId === legalEntity.id
|
|
36
|
+
const getPciStatus = async (legalEntityId, baseUrl, data) => {
|
|
37
|
+
const filteredData = {
|
|
38
|
+
...data,
|
|
39
|
+
additionalSalesChannels: data.additionalSalesChannels?.filter(
|
|
40
|
+
(channel) => channel !== "payByLink"
|
|
41
|
+
)
|
|
42
|
+
};
|
|
43
|
+
return httpPost(
|
|
44
|
+
{
|
|
45
|
+
baseUrl,
|
|
46
|
+
path: `legalEntities/${legalEntityId}/pci/signingRequired`
|
|
47
|
+
},
|
|
48
|
+
filteredData
|
|
75
49
|
);
|
|
76
|
-
const hasOrganizationType = legalEntity.organization?.type;
|
|
77
|
-
const hasIndividualData = !!legalEntity.individual;
|
|
78
|
-
return hasOwnEntityAssocation || !!hasOrganizationType || hasIndividualData;
|
|
79
50
|
};
|
|
51
|
+
const usePciStatus = (data, options) => {
|
|
52
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
53
|
+
return useQuery({
|
|
54
|
+
queryKey: ["pciStatus", data],
|
|
55
|
+
queryFn: () => getPciStatus(rootLegalEntityId.value, baseUrl.value, data),
|
|
56
|
+
staleTime: 0,
|
|
57
|
+
...options
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
const getBusinessLines = async (legalEntityId, baseUrl) => {
|
|
61
|
+
return httpGet({
|
|
62
|
+
baseUrl,
|
|
63
|
+
path: `legalEntities/${legalEntityId}/businessLines`
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
const useBusinessLines = (businessLineType, options) => {
|
|
67
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
68
|
+
return useQuery({
|
|
69
|
+
queryKey: ["businessLines"],
|
|
70
|
+
queryFn: () => getBusinessLines(rootLegalEntityId.value, baseUrl.value),
|
|
71
|
+
select: (businessLines) => businessLines.filter((businessLine) => businessLineType.includes(businessLine.service)),
|
|
72
|
+
...options
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
function useSalesChannels() {
|
|
76
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
77
|
+
const { data: existingBusinessLines } = useBusinessLines(["paymentProcessing"]);
|
|
78
|
+
return useMemo(() => {
|
|
79
|
+
const settings = [];
|
|
80
|
+
const businessLinesSalesChannels = [
|
|
81
|
+
...new Set(existingBusinessLines?.flatMap((item) => item.salesChannels ?? []))
|
|
82
|
+
];
|
|
83
|
+
if (isSettingEnabled(SettingNames.RequirePciSignEcommerce)) {
|
|
84
|
+
settings.push("eCommerce");
|
|
85
|
+
}
|
|
86
|
+
if (isSettingEnabled(SettingNames.RequirePciSignPos)) {
|
|
87
|
+
settings.push("pos");
|
|
88
|
+
}
|
|
89
|
+
if (isSettingEnabled(SettingNames.RequirePciSignEcomMoto)) {
|
|
90
|
+
settings.push("ecomMoto");
|
|
91
|
+
}
|
|
92
|
+
if (isSettingEnabled(SettingNames.RequirePciSignPosMoto)) {
|
|
93
|
+
settings.push("posMoto");
|
|
94
|
+
}
|
|
95
|
+
return isSettingEnabled("allowBusinessLines") ? businessLinesSalesChannels : settings;
|
|
96
|
+
}, [existingBusinessLines, isSettingEnabled]);
|
|
97
|
+
}
|
|
80
98
|
const getTaskTypes = async (id, baseUrl) => {
|
|
81
99
|
return httpGet({
|
|
82
100
|
baseUrl,
|
|
@@ -97,6 +115,141 @@ const getPciQuestionnaire = async (legalEntityId, baseUrl, documentId) => {
|
|
|
97
115
|
path: `legalEntities/${legalEntityId}/pci/questionnaires/${documentId}`
|
|
98
116
|
});
|
|
99
117
|
};
|
|
118
|
+
const getPciQuestionnaireList = async (legalEntityId, baseUrl) => {
|
|
119
|
+
return httpGet({
|
|
120
|
+
baseUrl,
|
|
121
|
+
path: `legalEntities/${legalEntityId}/pci/questionnaires`
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
const usePciQuestionnaireList = (options) => {
|
|
125
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
126
|
+
return useQuery({
|
|
127
|
+
queryKey: ["pciQuestionnaireList"],
|
|
128
|
+
queryFn: () => getPciQuestionnaireList(rootLegalEntityId.value, baseUrl.value),
|
|
129
|
+
...options
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
const logger$2 = createLogger();
|
|
133
|
+
const normalizeTaskStatuses = (taskStatuses) => {
|
|
134
|
+
return taskStatuses?.statuses?.reduce((acc, currentTask) => {
|
|
135
|
+
const status = TaskStatuses[currentTask.status];
|
|
136
|
+
const statusEntries = currentTask.taskStatusEntries;
|
|
137
|
+
acc[currentTask.type] = {
|
|
138
|
+
status: status ?? TaskStatuses.DETAILS_REQUIRED,
|
|
139
|
+
taskStatusEntries: statusEntries
|
|
140
|
+
};
|
|
141
|
+
return acc;
|
|
142
|
+
}, {});
|
|
143
|
+
};
|
|
144
|
+
const getAccountTaskStatus = (accountId, payinPayoutTaskStatus) => {
|
|
145
|
+
const taskStatusEntries = payinPayoutTaskStatus?.taskStatusEntries;
|
|
146
|
+
const taskStatusEntry = taskStatusEntries?.find((entry) => entry.id.includes(accountId));
|
|
147
|
+
if (!taskStatusEntry) {
|
|
148
|
+
logger$2.warn(`No task status for this account: ${accountId}`);
|
|
149
|
+
return payinPayoutTaskStatus?.status ?? TaskStatuses.PROCESSING;
|
|
150
|
+
}
|
|
151
|
+
return TaskStatuses[taskStatusEntry.status];
|
|
152
|
+
};
|
|
153
|
+
const getTaskStatus = async (legalEntityId, baseUrl) => {
|
|
154
|
+
return httpGet({
|
|
155
|
+
baseUrl,
|
|
156
|
+
path: `legalEntities/${legalEntityId}/taskStatus`
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
const useTaskStatus = (options) => {
|
|
160
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
161
|
+
return useQuery({
|
|
162
|
+
queryKey: ["taskStatus"],
|
|
163
|
+
queryFn: () => getTaskStatus(rootLegalEntityId.value, baseUrl.value),
|
|
164
|
+
select: (data) => normalizeTaskStatuses(data),
|
|
165
|
+
...options
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
const useLegalEntityType = ({
|
|
169
|
+
legalEntity
|
|
170
|
+
}) => {
|
|
171
|
+
const isTrust = isPartOfTrustFromLegalEntity(legalEntity);
|
|
172
|
+
const isSoleProprietor = hasSolePropInLegalEntity(legalEntity);
|
|
173
|
+
const hasLegalAssociation = isTrust || isSoleProprietor;
|
|
174
|
+
switch (legalEntity.type) {
|
|
175
|
+
case LegalEntityTypes.INDIVIDUAL:
|
|
176
|
+
case LegalEntityTypes.ORGANIZATION:
|
|
177
|
+
if (!hasLegalAssociation) return legalEntity.type;
|
|
178
|
+
if (isSoleProprietor) return LegalEntityTypes.SOLE_PROPRIETORSHIP;
|
|
179
|
+
if (isTrust) return LegalEntityTypes.TRUST;
|
|
180
|
+
break;
|
|
181
|
+
default:
|
|
182
|
+
return void 0;
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
const useCanSeeIntroduction = ({ legalEntity }) => {
|
|
186
|
+
const legalEntityType = useLegalEntityType({ legalEntity });
|
|
187
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
188
|
+
switch (legalEntityType) {
|
|
189
|
+
case LegalEntityTypes.INDIVIDUAL:
|
|
190
|
+
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionIndividual);
|
|
191
|
+
case LegalEntityTypes.ORGANIZATION:
|
|
192
|
+
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionOrganization);
|
|
193
|
+
case LegalEntityTypes.SOLE_PROPRIETORSHIP:
|
|
194
|
+
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionSoleProprietor);
|
|
195
|
+
case LegalEntityTypes.TRUST:
|
|
196
|
+
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionTrust);
|
|
197
|
+
default:
|
|
198
|
+
return false;
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
const capabilitiesToPreventTypeChange = [
|
|
202
|
+
"receivePayments",
|
|
203
|
+
"issueCard",
|
|
204
|
+
"useCard",
|
|
205
|
+
"withdrawFromAtm",
|
|
206
|
+
"withdrawFromAtmInRestrictedCountries",
|
|
207
|
+
"useCardInRestrictedCountries",
|
|
208
|
+
"useCardInRestrictedIndustries",
|
|
209
|
+
"issueBankAccount",
|
|
210
|
+
"sendToThirdParty",
|
|
211
|
+
"receiveFromThirdParty",
|
|
212
|
+
"getGrantOffers",
|
|
213
|
+
"receiveGrants"
|
|
214
|
+
];
|
|
215
|
+
const entityTypeToCorrespondingAccountHolderOption = {
|
|
216
|
+
[LegalEntityTypes.INDIVIDUAL]: "myName",
|
|
217
|
+
[LegalEntityTypes.ORGANIZATION]: "theCompanyIWorkFor",
|
|
218
|
+
[LegalEntityTypes.SOLE_PROPRIETORSHIP]: "mySoleProprietorName",
|
|
219
|
+
[LegalEntityTypes.TRUST]: "aTrust",
|
|
220
|
+
[LegalEntityTypes.UNINCORPORATED_PARTNERSHIP]: "anUnincorporatedPartnership"
|
|
221
|
+
};
|
|
222
|
+
const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false, accountHolder) => {
|
|
223
|
+
if (!legalEntityResponse?.type) return void 0;
|
|
224
|
+
if (hasOwnEntityAssociationOfType(
|
|
225
|
+
LegalEntityTypes.SOLE_PROPRIETORSHIP,
|
|
226
|
+
legalEntityResponse.entityAssociations,
|
|
227
|
+
legalEntityResponse.id
|
|
228
|
+
)) {
|
|
229
|
+
return "mySoleProprietorName";
|
|
230
|
+
}
|
|
231
|
+
if (hasOwnEntityAssociationOfType(
|
|
232
|
+
LegalEntityTypes.TRUST,
|
|
233
|
+
legalEntityResponse.entityAssociations,
|
|
234
|
+
legalEntityResponse.id
|
|
235
|
+
)) {
|
|
236
|
+
return "aTrust";
|
|
237
|
+
}
|
|
238
|
+
if (hasOwnEntityAssociationOfType(
|
|
239
|
+
LegalEntityTypes.UNINCORPORATED_PARTNERSHIP,
|
|
240
|
+
legalEntityResponse.entityAssociations,
|
|
241
|
+
legalEntityResponse.id
|
|
242
|
+
)) {
|
|
243
|
+
return "anUnincorporatedPartnership";
|
|
244
|
+
}
|
|
245
|
+
if (accountHolder) {
|
|
246
|
+
return accountHolder;
|
|
247
|
+
}
|
|
248
|
+
if (isTypeChanging || !isEmptyEntity(legalEntityResponse)) {
|
|
249
|
+
return entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type];
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
const allowIndividualWithoutSoleProp = (capabilities) => !capabilities?.map((c) => c.replace("Commercial", "").replace("Consumer", "")).some((c) => capabilitiesToPreventTypeChange.includes(c));
|
|
100
253
|
const BusinessTypes = {
|
|
101
254
|
INDIVIDUAL: "individual",
|
|
102
255
|
COMPANY: "company",
|
|
@@ -143,6 +296,51 @@ const useBusinessSetup = (legalEntityResponse) => {
|
|
|
143
296
|
const businessSetup = accountHolderType === "theCompanyIWorkFor" && organizationType ? companyTypesMapping[organizationType] : businessTypeMapping[accountHolderType]?.[legalEntityResponse.type];
|
|
144
297
|
return businessSetup;
|
|
145
298
|
};
|
|
299
|
+
function useDataMissingRemediations({
|
|
300
|
+
legalEntityId,
|
|
301
|
+
problems
|
|
302
|
+
}) {
|
|
303
|
+
const { t } = useTranslation("common");
|
|
304
|
+
const decisionMakersRemediationMessage = useMemo(() => {
|
|
305
|
+
const remediationCodes = problems[EntityTypes.LEGAL_ENTITY]?.[legalEntityId]?.missingData?.reduce((remediations, error) => {
|
|
306
|
+
const remediation = DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING[error.code];
|
|
307
|
+
return remediation ? [...remediations, remediation] : remediations;
|
|
308
|
+
}, []);
|
|
309
|
+
const uniqueRemediations = [...new Set(remediationCodes)];
|
|
310
|
+
switch (uniqueRemediations?.length) {
|
|
311
|
+
case void 0:
|
|
312
|
+
case 0:
|
|
313
|
+
return void 0;
|
|
314
|
+
case 1:
|
|
315
|
+
return uniqueRemediations[0] ? t(($) => $[`remediationMessage_${uniqueRemediations[0]}`]) : t(($) => $["missingMultipleDecisionMakers"]);
|
|
316
|
+
default:
|
|
317
|
+
return t(($) => $["missingMultipleDecisionMakers"]);
|
|
318
|
+
}
|
|
319
|
+
}, [problems, t, legalEntityId]);
|
|
320
|
+
return {
|
|
321
|
+
remediationMessages: {
|
|
322
|
+
[TaskTypes.DECISION_MAKER]: decisionMakersRemediationMessage
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
const filterProblemsByTaskForms = (entityProblems, forms) => {
|
|
327
|
+
if (!entityProblems?.verificationErrors) return entityProblems;
|
|
328
|
+
const filteredEntityProblems = Object.entries(entityProblems.verificationErrors).reduce(
|
|
329
|
+
(acc, [formId, verificationErrors]) => {
|
|
330
|
+
if (!forms.includes(formId)) return acc;
|
|
331
|
+
return {
|
|
332
|
+
...entityProblems,
|
|
333
|
+
verificationErrors: {
|
|
334
|
+
...acc.verificationErrors,
|
|
335
|
+
[formId]: verificationErrors
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
},
|
|
339
|
+
{}
|
|
340
|
+
);
|
|
341
|
+
filteredEntityProblems.verificationErrors = Object.keys(filteredEntityProblems.verificationErrors ?? {}).length > 0 ? filteredEntityProblems.verificationErrors : void 0;
|
|
342
|
+
return filteredEntityProblems;
|
|
343
|
+
};
|
|
146
344
|
const businessFormIds = [
|
|
147
345
|
"basicInformation",
|
|
148
346
|
"businessSelection",
|
|
@@ -156,11 +354,12 @@ const businessFormIds = [
|
|
|
156
354
|
"companyFinancialInformation",
|
|
157
355
|
"companyConstitutionalDocument"
|
|
158
356
|
];
|
|
159
|
-
const
|
|
357
|
+
const individualFormIds = [
|
|
160
358
|
"signatoryQuestionnaire",
|
|
161
359
|
"uboQuestionnaire",
|
|
162
360
|
"basicDetails",
|
|
163
361
|
"idVerificationMethod",
|
|
362
|
+
"inviteDetails",
|
|
164
363
|
"additionalPersonalDetails",
|
|
165
364
|
"manualIdUpload",
|
|
166
365
|
"proofOfResidency",
|
|
@@ -307,8 +506,8 @@ const PayoutAccountTaskListItem = ({
|
|
|
307
506
|
const { mutateAsync: deleteTransferInstrument } = useDeleteTransferInstrument();
|
|
308
507
|
const isInstantVerificationAccount = isInstantVerifiedAccount(account);
|
|
309
508
|
const obscuredAccountNumber = getObscuredAccountNumber(account);
|
|
310
|
-
const
|
|
311
|
-
const status = isExperimentEnabled("UseTaskStatusApiForPayout") ? getAccountTaskStatus(account.id, payinPayoutTaskStatus) :
|
|
509
|
+
const getTaskStatus2 = useGetTaskStatus();
|
|
510
|
+
const status = isExperimentEnabled("UseTaskStatusApiForPayout") ? getAccountTaskStatus(account.id, payinPayoutTaskStatus) : getTaskStatus2(TaskTypes.PAYOUT, account.id);
|
|
312
511
|
const handleDeleteTransferInstrument = async () => {
|
|
313
512
|
try {
|
|
314
513
|
await deleteTransferInstrument(account.id);
|
|
@@ -344,13 +543,26 @@ const LEGAL_ENTITY_BASE_TASKS = [
|
|
|
344
543
|
const CONTRACT_TASKS = [TaskTypes.SERVICE_AGREEMENT, TaskTypes.PCI_DSS];
|
|
345
544
|
function TaskList({ onNavigateToTask, singpassComponent }) {
|
|
346
545
|
const { data: rootLe, isLoading } = useLegalEntity(ROOT_LE);
|
|
347
|
-
const {
|
|
348
|
-
|
|
349
|
-
|
|
546
|
+
const { t } = useTranslation("common");
|
|
547
|
+
const {
|
|
548
|
+
data: existingBusinessLines,
|
|
549
|
+
isLoading: isLoadingBl,
|
|
550
|
+
error: businessLinesError
|
|
551
|
+
} = useBusinessLines(["paymentProcessing"]);
|
|
350
552
|
const capabilityProblems = useCapabilityProblems() ?? {};
|
|
351
553
|
if (isLoading || !rootLe || isLoadingBl) {
|
|
352
554
|
return /* @__PURE__ */ jsx(Loader, { size: "large" });
|
|
353
555
|
}
|
|
556
|
+
if (businessLinesError) {
|
|
557
|
+
return /* @__PURE__ */ jsx(
|
|
558
|
+
EndStateLayout,
|
|
559
|
+
{
|
|
560
|
+
title: t(($) => $["thisPageIsntLoading"]),
|
|
561
|
+
variant: "error",
|
|
562
|
+
action: /* @__PURE__ */ jsx(Button, { onClick: () => window.location.reload(), fullWidth: true, children: t(($) => $["reloadPage"]) })
|
|
563
|
+
}
|
|
564
|
+
);
|
|
565
|
+
}
|
|
354
566
|
return /* @__PURE__ */ jsx(
|
|
355
567
|
TaskListInner,
|
|
356
568
|
{
|
|
@@ -377,7 +589,7 @@ function TaskListInner({
|
|
|
377
589
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
378
590
|
const { accountHolder } = useAccountHolder();
|
|
379
591
|
const tasks = useGlobalStore().tasks.value;
|
|
380
|
-
const
|
|
592
|
+
const getTaskStatus2 = useGetTaskStatus();
|
|
381
593
|
const businessSetup = useBusinessSetup(legalEntityResponse);
|
|
382
594
|
const canSeeIntroduction = useCanSeeIntroduction({ legalEntity: legalEntityResponse });
|
|
383
595
|
const additionalSalesChannels = useSalesChannels();
|
|
@@ -508,7 +720,7 @@ function TaskListInner({
|
|
|
508
720
|
const handleOnNavigateToSourceOfFunds = () => onNavigateToTask(TaskTypes.SOURCE_OF_FUNDS);
|
|
509
721
|
const handleOnNavigateToBusinessFinancing = () => onNavigateToTask(TaskTypes.BUSINESS_FINANCING);
|
|
510
722
|
const handleOnNavigateToTaxReporting = () => onNavigateToTask(TaskTypes.TAX_REPORTING);
|
|
511
|
-
const fullIndividualFormIds = [...
|
|
723
|
+
const fullIndividualFormIds = [...individualFormIds];
|
|
512
724
|
const showDecisionMakersWarning = Boolean(
|
|
513
725
|
getOwnDecisionMakersLegalEntityIds(legalEntityResponse).length && remediationMessages.DECISION_MAKER
|
|
514
726
|
);
|
|
@@ -549,7 +761,7 @@ function TaskListInner({
|
|
|
549
761
|
onNavigateToTask: handleOnNavigateToTaskIndividual,
|
|
550
762
|
icon: "decision-maker",
|
|
551
763
|
titleKey: hasTrust ? "trusteePersonalDetails" : hasUnincorporatedPartnership ? "primaryPartnerDetails" : "personalDetails",
|
|
552
|
-
status:
|
|
764
|
+
status: getTaskStatus2(TaskTypes.INDIVIDUAL),
|
|
553
765
|
problems: filterProblemsByTaskForms(rootLegalEntityProblems, fullIndividualFormIds)
|
|
554
766
|
}
|
|
555
767
|
),
|
|
@@ -570,7 +782,7 @@ function TaskListInner({
|
|
|
570
782
|
onNavigateToTask: handleOnNavigateToSoleProp,
|
|
571
783
|
icon: "company",
|
|
572
784
|
titleKey: canChangeEntityType ? "soleProprietorshipDetails" : "soleProprietorDetails",
|
|
573
|
-
status:
|
|
785
|
+
status: getTaskStatus2(TaskTypes.SOLE_PROPRIETOR_COMPANY),
|
|
574
786
|
problems: getOwnSolePropProblems(legalEntityResponse, capabilityProblems)
|
|
575
787
|
}
|
|
576
788
|
),
|
|
@@ -580,7 +792,7 @@ function TaskListInner({
|
|
|
580
792
|
onNavigateToTask: handleOnNavigateToTaskLegalRepresentative,
|
|
581
793
|
icon: "decision-maker",
|
|
582
794
|
titleKey: "legalRepresentative",
|
|
583
|
-
status:
|
|
795
|
+
status: getTaskStatus2(TaskTypes.LEGAL_REPRESENTATIVE_DETAILS)
|
|
584
796
|
}
|
|
585
797
|
),
|
|
586
798
|
tasks.includes(TaskTypes.DECISION_MAKER_OVERVIEW) && /* @__PURE__ */ jsx(
|
|
@@ -589,7 +801,7 @@ function TaskListInner({
|
|
|
589
801
|
onNavigateToTask: handleOnNavigateToTaskDecisionMaker,
|
|
590
802
|
icon: "decision-maker",
|
|
591
803
|
titleKey: hasUnincorporatedPartnership ? "entityDecisionMakers" : "decisionMakers",
|
|
592
|
-
status:
|
|
804
|
+
status: getTaskStatus2(TaskTypes.DECISION_MAKER_OVERVIEW),
|
|
593
805
|
warningMessage: showDecisionMakersWarning ? remediationMessages[TaskTypes.DECISION_MAKER] : void 0
|
|
594
806
|
}
|
|
595
807
|
),
|
|
@@ -621,7 +833,7 @@ function TaskListInner({
|
|
|
621
833
|
onNavigateToTask: handleOnNavigateToTaskTrust,
|
|
622
834
|
icon: "trust",
|
|
623
835
|
titleKey: "trustDetails",
|
|
624
|
-
status:
|
|
836
|
+
status: getTaskStatus2(TaskTypes.TRUST),
|
|
625
837
|
problems: getOwnTrustProblems(legalEntityResponse, capabilityProblems)
|
|
626
838
|
}
|
|
627
839
|
),
|
|
@@ -631,7 +843,7 @@ function TaskListInner({
|
|
|
631
843
|
onNavigateToTask: handleOnNavigateToTaskTrustMember,
|
|
632
844
|
icon: "decision-maker",
|
|
633
845
|
titleKey: "trustMembers",
|
|
634
|
-
status:
|
|
846
|
+
status: getTaskStatus2(TaskTypes.TRUST_MEMBER_OVERVIEW)
|
|
635
847
|
}
|
|
636
848
|
)
|
|
637
849
|
] }),
|
|
@@ -642,7 +854,7 @@ function TaskListInner({
|
|
|
642
854
|
onNavigateToTask: () => onNavigateToTask(TaskTypes.UNINCORPORATED_PARTNERSHIP),
|
|
643
855
|
icon: "trust",
|
|
644
856
|
titleKey: "unincorporatedDetails",
|
|
645
|
-
status:
|
|
857
|
+
status: getTaskStatus2(TaskTypes.UNINCORPORATED_PARTNERSHIP),
|
|
646
858
|
problems: getOwnUnincorporatedPartnershipProblems(
|
|
647
859
|
legalEntityResponse,
|
|
648
860
|
capabilityProblems
|
|
@@ -661,7 +873,7 @@ function TaskListInner({
|
|
|
661
873
|
},
|
|
662
874
|
icon: "decision-maker",
|
|
663
875
|
titleKey: "unincorporatedPartnershipMembers",
|
|
664
|
-
status:
|
|
876
|
+
status: getTaskStatus2(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW)
|
|
665
877
|
}
|
|
666
878
|
)
|
|
667
879
|
] }),
|
|
@@ -815,6 +1027,56 @@ const getOpenIdAuthorizationLink = async (legalEntityId, baseUrl) => {
|
|
|
815
1027
|
})
|
|
816
1028
|
);
|
|
817
1029
|
};
|
|
1030
|
+
function getTrustedFields(rootLegalEntity, apiMapping, provider) {
|
|
1031
|
+
const apiTrustedFields = getApiTrustedFields(rootLegalEntity);
|
|
1032
|
+
return parseTrustedFieldsIntoReadOnlyFields(apiTrustedFields, apiMapping);
|
|
1033
|
+
}
|
|
1034
|
+
function getTrustedEntityAssociations(rootLegalEntity, provider) {
|
|
1035
|
+
const apiTrustedFields = getApiTrustedFields(rootLegalEntity);
|
|
1036
|
+
return parseTrustedEntityAssociationsFromApiFields(apiTrustedFields);
|
|
1037
|
+
}
|
|
1038
|
+
function getTrustedFieldsProvider(rootLegalEntity) {
|
|
1039
|
+
return rootLegalEntity.trustedFields?.[0].provider;
|
|
1040
|
+
}
|
|
1041
|
+
const getApiTrustedFields = (rootLegalEntity, provider) => rootLegalEntity.trustedFields?.find((tf) => true)?.fields ?? [];
|
|
1042
|
+
function parseTrustedFieldsIntoReadOnlyFields(trustedFields, mapping) {
|
|
1043
|
+
const formFieldsMapped = [];
|
|
1044
|
+
trustedFields.forEach((field) => {
|
|
1045
|
+
for (const [key, value] of Object.entries(mapping)) {
|
|
1046
|
+
if (value === field) {
|
|
1047
|
+
formFieldsMapped.push(key);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
});
|
|
1051
|
+
const readOnlyFields = {};
|
|
1052
|
+
formFieldsMapped.forEach((field) => {
|
|
1053
|
+
const tokenizedField = field.split(".");
|
|
1054
|
+
const formField = tokenizedField.pop();
|
|
1055
|
+
const formId = tokenizedField.pop();
|
|
1056
|
+
if (formField && formId) {
|
|
1057
|
+
if (formId in readOnlyFields) {
|
|
1058
|
+
readOnlyFields[formId].push(formField);
|
|
1059
|
+
} else {
|
|
1060
|
+
readOnlyFields[formId] = [formField];
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
});
|
|
1064
|
+
return readOnlyFields;
|
|
1065
|
+
}
|
|
1066
|
+
function parseTrustedEntityAssociationsFromApiFields(trustedApiFields) {
|
|
1067
|
+
const rawTrustedEntityAssociations = trustedApiFields.filter((f) => f.startsWith("entityAssociations")) ?? [];
|
|
1068
|
+
const leIdMap = {};
|
|
1069
|
+
rawTrustedEntityAssociations.forEach((rtea) => {
|
|
1070
|
+
const [_, role, leId] = rtea.split(".");
|
|
1071
|
+
const trustedRole = role;
|
|
1072
|
+
if (!leIdMap[leId]) {
|
|
1073
|
+
leIdMap[leId] = { roles: [trustedRole] };
|
|
1074
|
+
} else {
|
|
1075
|
+
leIdMap[leId] = { roles: [...leIdMap[leId].roles, trustedRole] };
|
|
1076
|
+
}
|
|
1077
|
+
});
|
|
1078
|
+
return Object.keys(leIdMap).map((reference) => ({ reference, types: leIdMap[reference].roles }));
|
|
1079
|
+
}
|
|
818
1080
|
const SingpassMyInfoLoginActionTypes = {
|
|
819
1081
|
LOADING: "LOADING",
|
|
820
1082
|
SUCCESS: "SUCCESS",
|
|
@@ -993,7 +1255,7 @@ const SingpassBanner = ({
|
|
|
993
1255
|
Alert,
|
|
994
1256
|
{
|
|
995
1257
|
variant: "warning",
|
|
996
|
-
title:
|
|
1258
|
+
title: translateTranslatable(t, errorMessage),
|
|
997
1259
|
onClose: onAlertClose,
|
|
998
1260
|
children: /* @__PURE__ */ jsxs(Typography, { variant: "body", children: [
|
|
999
1261
|
t(($) => $["tryAgainOrContinueEnteringTheDetailsYourself"]),
|
|
@@ -1016,6 +1278,153 @@ const SingpassBanner = ({
|
|
|
1016
1278
|
}
|
|
1017
1279
|
);
|
|
1018
1280
|
};
|
|
1281
|
+
const isNewEntity = /* @__PURE__ */ Symbol("isNewEntity");
|
|
1282
|
+
const useExemptSettlor = ({
|
|
1283
|
+
trust
|
|
1284
|
+
}) => {
|
|
1285
|
+
const matchingAssociation = useMemo(() => {
|
|
1286
|
+
if (!trust) return void 0;
|
|
1287
|
+
return getOwnEntityAssociations(trust).find(
|
|
1288
|
+
(association) => association.type === TrustMemberTypes.SETTLOR && Boolean(association.settlorExemptionReason)
|
|
1289
|
+
);
|
|
1290
|
+
}, [trust]);
|
|
1291
|
+
const { data } = useLegalEntity(matchingAssociation?.legalEntityId ?? skipToken);
|
|
1292
|
+
return data;
|
|
1293
|
+
};
|
|
1294
|
+
const splitAtFirstOccurrence = (str, separator) => {
|
|
1295
|
+
const firstOccurrence = str.indexOf(separator);
|
|
1296
|
+
if (firstOccurrence === -1) return [str];
|
|
1297
|
+
return [str.slice(0, firstOccurrence), str.slice(firstOccurrence + 1)];
|
|
1298
|
+
};
|
|
1299
|
+
const getTrustMemberOwnerId = (trustMemberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === trustMemberId)?.legalEntityId;
|
|
1300
|
+
const getFallbackName = (exemptSettlorAssociation) => {
|
|
1301
|
+
const [firstName, lastName] = splitAtFirstOccurrence(exemptSettlorAssociation.name ?? "", " ");
|
|
1302
|
+
return {
|
|
1303
|
+
firstName,
|
|
1304
|
+
lastName
|
|
1305
|
+
};
|
|
1306
|
+
};
|
|
1307
|
+
const convertEntityAssociationIntoTrustMember = (association, associations, exemptSettlorLE) => {
|
|
1308
|
+
if (association.settlorExemptionReason) {
|
|
1309
|
+
return {
|
|
1310
|
+
trustMemberType: "exemptSettlor",
|
|
1311
|
+
roles: [TrustMemberTypes.SETTLOR],
|
|
1312
|
+
legalEntityType: association.entityType,
|
|
1313
|
+
legalEntityId: association.legalEntityId,
|
|
1314
|
+
settlorExemptionReason: association.settlorExemptionReason,
|
|
1315
|
+
exemptSettlorName: association.entityType === LegalEntityTypes.INDIVIDUAL ? exemptSettlorLE?.individual?.name ?? getFallbackName(association) : void 0,
|
|
1316
|
+
name: association.name
|
|
1317
|
+
};
|
|
1318
|
+
}
|
|
1319
|
+
if (association.entityType === LegalEntityTypes.ORGANIZATION)
|
|
1320
|
+
return {
|
|
1321
|
+
trustMemberType: "company",
|
|
1322
|
+
roles: [],
|
|
1323
|
+
legalEntityType: LegalEntityTypes.ORGANIZATION,
|
|
1324
|
+
legalEntityId: association.legalEntityId,
|
|
1325
|
+
name: association.name,
|
|
1326
|
+
ownerId: getTrustMemberOwnerId(association.legalEntityId, associations)
|
|
1327
|
+
};
|
|
1328
|
+
if (association.entityType === LegalEntityTypes.INDIVIDUAL)
|
|
1329
|
+
return {
|
|
1330
|
+
trustMemberType: "regular",
|
|
1331
|
+
roles: [],
|
|
1332
|
+
legalEntityType: LegalEntityTypes.INDIVIDUAL,
|
|
1333
|
+
legalEntityId: association.legalEntityId,
|
|
1334
|
+
name: association.name
|
|
1335
|
+
};
|
|
1336
|
+
throw new Error(`Not a valid trust member: ${JSON.stringify(association)}`);
|
|
1337
|
+
};
|
|
1338
|
+
const mapEntityAssociationsToTrustMembers = (trustEntityId, entityAssociations, exemptSettlorLE) => {
|
|
1339
|
+
const mappedTrustMembers = entityAssociations.reduce(
|
|
1340
|
+
(acc, entityAssociation) => {
|
|
1341
|
+
if (!Object.values(TrustMemberTypes).includes(entityAssociation.type) || entityAssociation.associatorId !== trustEntityId || !entityAssociation.legalEntityId) {
|
|
1342
|
+
return acc;
|
|
1343
|
+
}
|
|
1344
|
+
const trustMember = acc[entityAssociation.legalEntityId] ?? convertEntityAssociationIntoTrustMember(
|
|
1345
|
+
entityAssociation,
|
|
1346
|
+
entityAssociations,
|
|
1347
|
+
exemptSettlorLE
|
|
1348
|
+
);
|
|
1349
|
+
const trustMemberType = entityAssociation.type;
|
|
1350
|
+
acc[entityAssociation.legalEntityId] = {
|
|
1351
|
+
...trustMember,
|
|
1352
|
+
roles: [.../* @__PURE__ */ new Set([...trustMember.roles, trustMemberType])]
|
|
1353
|
+
};
|
|
1354
|
+
return acc;
|
|
1355
|
+
},
|
|
1356
|
+
{}
|
|
1357
|
+
);
|
|
1358
|
+
return Object.values(mappedTrustMembers);
|
|
1359
|
+
};
|
|
1360
|
+
const mapRootLegalEntityToTrustMember = (rootLegalEntity) => ({
|
|
1361
|
+
trustMemberType: "rootTrustee",
|
|
1362
|
+
roles: [TrustMemberTypes.TRUSTEE],
|
|
1363
|
+
legalEntityType: rootLegalEntity.type,
|
|
1364
|
+
legalEntityId: rootLegalEntity.id,
|
|
1365
|
+
name: getLegalEntityNameBasedOnType(rootLegalEntity)
|
|
1366
|
+
});
|
|
1367
|
+
const mapUndefinedBeneficiaryInfoToTrustMembers = (undefinedBeneficiaryInfo) => undefinedBeneficiaryInfo.map(({ reference, description }) => ({
|
|
1368
|
+
trustMemberType: "undefinedBeneficiary",
|
|
1369
|
+
roles: [TrustMemberTypes.UNDEFINED_BENEFICIARY],
|
|
1370
|
+
reference,
|
|
1371
|
+
description
|
|
1372
|
+
}));
|
|
1373
|
+
const getTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) => [
|
|
1374
|
+
mapRootLegalEntityToTrustMember(rootLegalEntity),
|
|
1375
|
+
...mapEntityAssociationsToTrustMembers(
|
|
1376
|
+
trustLE.id,
|
|
1377
|
+
trustLE.entityAssociations ?? [],
|
|
1378
|
+
exemptSettlorLE
|
|
1379
|
+
),
|
|
1380
|
+
...mapUndefinedBeneficiaryInfoToTrustMembers(trustLE.trust?.undefinedBeneficiaryInfo ?? [])
|
|
1381
|
+
];
|
|
1382
|
+
const combineRootLegalEntityWithEntityAssociations = (rootLegalEntity, entityAssociations) => {
|
|
1383
|
+
const allowedRolesForRootLegalEntity = [
|
|
1384
|
+
TrustMemberTypes.SETTLOR,
|
|
1385
|
+
TrustMemberTypes.PROTECTOR,
|
|
1386
|
+
TrustMemberTypes.DEFINED_BENEFICIARY
|
|
1387
|
+
];
|
|
1388
|
+
const roles = entityAssociations.map((entityAssociation) => entityAssociation.type).filter((role) => allowedRolesForRootLegalEntity.includes(role));
|
|
1389
|
+
return {
|
|
1390
|
+
trustMemberType: "rootTrustee",
|
|
1391
|
+
roles: [...roles, TrustMemberTypes.TRUSTEE],
|
|
1392
|
+
legalEntityType: rootLegalEntity.type,
|
|
1393
|
+
legalEntityId: rootLegalEntity.id,
|
|
1394
|
+
name: getLegalEntityNameBasedOnType(rootLegalEntity)
|
|
1395
|
+
};
|
|
1396
|
+
};
|
|
1397
|
+
const getRootTrusteeTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) => {
|
|
1398
|
+
const entityAssociations = trustLE.entityAssociations ?? [];
|
|
1399
|
+
const rootLegalEntityAssociations = entityAssociations.filter(
|
|
1400
|
+
(a) => a.legalEntityId === rootLegalEntity.id
|
|
1401
|
+
);
|
|
1402
|
+
const nonRootLegalEntityAssociations = entityAssociations.filter(
|
|
1403
|
+
(a) => a.legalEntityId !== rootLegalEntity.id
|
|
1404
|
+
);
|
|
1405
|
+
return [
|
|
1406
|
+
combineRootLegalEntityWithEntityAssociations(rootLegalEntity, rootLegalEntityAssociations),
|
|
1407
|
+
...mapEntityAssociationsToTrustMembers(
|
|
1408
|
+
trustLE.id,
|
|
1409
|
+
nonRootLegalEntityAssociations ?? [],
|
|
1410
|
+
exemptSettlorLE
|
|
1411
|
+
),
|
|
1412
|
+
...mapUndefinedBeneficiaryInfoToTrustMembers(trustLE.trust?.undefinedBeneficiaryInfo ?? [])
|
|
1413
|
+
];
|
|
1414
|
+
};
|
|
1415
|
+
function useTrustMembers() {
|
|
1416
|
+
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
1417
|
+
const { data: trust } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.TRUST);
|
|
1418
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
1419
|
+
const exemptSettlor = useExemptSettlor({
|
|
1420
|
+
trust
|
|
1421
|
+
});
|
|
1422
|
+
const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
|
|
1423
|
+
return useMemo(() => {
|
|
1424
|
+
if (!rootLegalEntity || !trust?.trust) return [];
|
|
1425
|
+
return allowMoreRolesForMainRootTrustee ? getRootTrusteeTrustMembers(trust, rootLegalEntity, exemptSettlor) : getTrustMembers(trust, rootLegalEntity, exemptSettlor);
|
|
1426
|
+
}, [rootLegalEntity, trust, exemptSettlor, allowMoreRolesForMainRootTrustee]);
|
|
1427
|
+
}
|
|
1019
1428
|
const useTrustMemberNavigation = ({ navigateTo, trust }) => {
|
|
1020
1429
|
const { t } = useTranslation("trust");
|
|
1021
1430
|
const { showToast } = useToastContext();
|
|
@@ -1122,6 +1531,255 @@ const useShouldShowIntroduction = ({
|
|
|
1122
1531
|
const { hasSeenIntroduction } = useHasSeenIntroduction({ legalEntityId: legalEntity.id });
|
|
1123
1532
|
return canSeeIntroduction && !hasSeenIntroduction;
|
|
1124
1533
|
};
|
|
1534
|
+
const getDefaultTask$1 = ({
|
|
1535
|
+
legalEntity,
|
|
1536
|
+
canSeeEntitySelection,
|
|
1537
|
+
canChangeEntityType,
|
|
1538
|
+
showIntroduction,
|
|
1539
|
+
shouldShowSingpassSelection,
|
|
1540
|
+
showServiceAgreementsFirst,
|
|
1541
|
+
showBusinessFinancingFirst
|
|
1542
|
+
}) => {
|
|
1543
|
+
const hasLegalEntityProgressedBeyondEntitySelection = hasProgressedBeyondEntitySelection$1(legalEntity);
|
|
1544
|
+
if (showServiceAgreementsFirst) {
|
|
1545
|
+
return TaskTypes.SERVICE_AGREEMENT;
|
|
1546
|
+
}
|
|
1547
|
+
if (showBusinessFinancingFirst) {
|
|
1548
|
+
return TaskTypes.BUSINESS_FINANCING;
|
|
1549
|
+
}
|
|
1550
|
+
if (canChangeEntityType && canSeeEntitySelection && !hasLegalEntityProgressedBeyondEntitySelection)
|
|
1551
|
+
return TaskTypes.BUSINESS_TYPE_SELECTION;
|
|
1552
|
+
if (showIntroduction) return TaskTypes.INTRODUCTION;
|
|
1553
|
+
if (shouldShowSingpassSelection) return TaskTypes.SINGPASS_SELECTION;
|
|
1554
|
+
return TaskTypes.TASKS_OVERVIEW;
|
|
1555
|
+
};
|
|
1556
|
+
const hasProgressedBeyondEntitySelection$1 = (legalEntity) => {
|
|
1557
|
+
const hasOwnEntityAssocation = legalEntity.entityAssociations?.some(
|
|
1558
|
+
(ea) => ea.associatorId === legalEntity.id
|
|
1559
|
+
);
|
|
1560
|
+
const hasOrganizationType = legalEntity.organization?.type;
|
|
1561
|
+
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
1562
|
+
};
|
|
1563
|
+
const Introduction$1 = lazy(
|
|
1564
|
+
async () => (await import("./Introduction-CZ_-eIBj.js")).Introduction
|
|
1565
|
+
);
|
|
1566
|
+
const BusinessTypeSelectionPage$1 = lazy(
|
|
1567
|
+
async () => (await import("./BusinessTypeSelectionPage-D3EIjy_H.js")).BusinessTypeSelectionPage
|
|
1568
|
+
);
|
|
1569
|
+
const SingpassSelection$1 = lazy(
|
|
1570
|
+
async () => (await import("./SingpassSelection-FctS_Rd2.js")).SingpassSelection
|
|
1571
|
+
);
|
|
1572
|
+
const AccountSetupRejected$1 = lazy(
|
|
1573
|
+
async () => (await import("./AccountSetupRejected-BBPH8zsy.js")).AccountSetupRejected
|
|
1574
|
+
);
|
|
1575
|
+
const DecisionMakers$1 = lazy(
|
|
1576
|
+
async () => (await import("./DecisionMakers-AhL30Hnp.js")).DecisionMakers
|
|
1577
|
+
);
|
|
1578
|
+
const CustomerSupport$1 = lazy(
|
|
1579
|
+
async () => (await import("./CustomerSupport-CU3xoowB.js")).CustomerSupport
|
|
1580
|
+
);
|
|
1581
|
+
const Review$1 = lazy(async () => (await import("./Review-BjdQyMeU.js")).Review);
|
|
1582
|
+
const SignPCIComponent$1 = lazy(
|
|
1583
|
+
async () => (await import("./SignPCIComponent-CkaBa8MB.js")).SignPCIComponent
|
|
1584
|
+
);
|
|
1585
|
+
const AcceptTermsOfService$1 = lazy(
|
|
1586
|
+
async () => (await import("./AcceptTermsOfServiceComponent-Y5aYfW8R.js")).AcceptTermsOfServiceComponent
|
|
1587
|
+
);
|
|
1588
|
+
const TaxReportingDropin$1 = lazy(
|
|
1589
|
+
async () => (await import("./TaxReportingDropin-C2dEK3ij.js")).TaxReportingDropin
|
|
1590
|
+
);
|
|
1591
|
+
const PayoutDetailsPage$1 = lazy(
|
|
1592
|
+
async () => (await import("./PayoutDetailsPage-NIBSRWDA.js")).PayoutDetailsPage
|
|
1593
|
+
);
|
|
1594
|
+
const RootBusinessDetailsPage$1 = lazy(
|
|
1595
|
+
async () => (await import("./RootBusinessDetailsPage-CE9KIQRB.js")).RootBusinessDetailsPage
|
|
1596
|
+
);
|
|
1597
|
+
const RootBusinessLinesPage$1 = lazy(
|
|
1598
|
+
async () => (await import("./RootBusinessLinesPage-DYZETgKB.js")).RootBusinessLinesPage
|
|
1599
|
+
);
|
|
1600
|
+
const SoleProprietorshipPage$1 = lazy(
|
|
1601
|
+
async () => (await import("./SoleProprietorshipPage-BolUC48_.js")).SoleProprietorshipPage
|
|
1602
|
+
);
|
|
1603
|
+
const TrustMemberCompanyPage$1 = lazy(
|
|
1604
|
+
async () => (await import("./TrustMemberCompanyPage-CbRLAXBG.js")).TrustMemberCompanyPage
|
|
1605
|
+
);
|
|
1606
|
+
const TrustMemberIndividualPage$1 = lazy(
|
|
1607
|
+
async () => (await import("./TrustMemberIndividualPage-BFRSkSas.js")).TrustMemberIndividualPage
|
|
1608
|
+
);
|
|
1609
|
+
const TrustMemberRoleAndTypePage$1 = lazy(
|
|
1610
|
+
async () => (await import("./TrustMemberRoleAndTypePage-pS7j8_f6.js")).TrustMemberRoleAndTypePage
|
|
1611
|
+
);
|
|
1612
|
+
const TrustMembersOverview$1 = lazy(
|
|
1613
|
+
async () => (await import("./TrustMembersOverview-aEVgO4Gr.js")).TrustMembersOverview
|
|
1614
|
+
);
|
|
1615
|
+
const UnincorporatedPartnershipMemberCompanyPage$1 = lazy(
|
|
1616
|
+
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-qvOu17yc.js")).UnincorporatedPartnershipMemberCompanyPage
|
|
1617
|
+
);
|
|
1618
|
+
const UnincorporatedPartnershipIndividualPage$1 = lazy(
|
|
1619
|
+
async () => (await import("./UnincorporatedPartnershipIndividualPage-DO7AXsP5.js")).UnincorporatedPartnershipIndividualPage
|
|
1620
|
+
);
|
|
1621
|
+
const UnincorporatedPartnershipMemberRoleAndTypePage$1 = lazy(
|
|
1622
|
+
async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-reBMcz-Y.js")).UnincorporatedPartnershipMemberRoleAndTypePage
|
|
1623
|
+
);
|
|
1624
|
+
const UnincorporatedPartnershipMembersOverview$1 = lazy(
|
|
1625
|
+
async () => (await import("./UnincorporatedPartnershipMembersOverview-B5YCchZY.js")).UnincorporatedPartnershipMembersOverview
|
|
1626
|
+
);
|
|
1627
|
+
const BusinessFinancingPage$1 = lazy(
|
|
1628
|
+
async () => (await import("./BusinessFinancingPage-Bg-wKhhY.js")).BusinessFinancingPage
|
|
1629
|
+
);
|
|
1630
|
+
const TrustDetailsPage$1 = lazy(
|
|
1631
|
+
async () => (await import("./TrustDetailsPage-BbQB4A5-.js")).TrustDetailsPage
|
|
1632
|
+
);
|
|
1633
|
+
const SourceOfFundsPage$1 = lazy(
|
|
1634
|
+
async () => (await import("./SourceOfFundsPage-qPaoxTgM.js")).SourceOfFundsPage
|
|
1635
|
+
);
|
|
1636
|
+
const RootIndividualDetailsPage$1 = lazy(
|
|
1637
|
+
async () => (await import("./RootIndividualDetailsPage-DCEHjEbR.js")).RootIndividualDetailsPage
|
|
1638
|
+
);
|
|
1639
|
+
const LegalRepresentativeDetailsPage$1 = lazy(
|
|
1640
|
+
async () => (await import("./LegalRepresentativeDetailsPage-DFKA0RAe.js")).LegalRepresentativeDetailsPage
|
|
1641
|
+
);
|
|
1642
|
+
const DecisionMakerDetailsPage$1 = lazy(
|
|
1643
|
+
async () => (await import("./DecisionMakerDetailsPage-C-mB9v5X.js")).DecisionMakerDetailsPage
|
|
1644
|
+
);
|
|
1645
|
+
const ROUTE_CONFIG = {
|
|
1646
|
+
[TaskTypes.TASKS_OVERVIEW]: { path: "/tasks" },
|
|
1647
|
+
[TaskTypes.INTRODUCTION]: { path: "/introduction", Component: Introduction$1 },
|
|
1648
|
+
[TaskTypes.BUSINESS_TYPE_SELECTION]: {
|
|
1649
|
+
path: "/business-type-selection",
|
|
1650
|
+
Component: BusinessTypeSelectionPage$1
|
|
1651
|
+
},
|
|
1652
|
+
[TaskTypes.SINGPASS_SELECTION]: { path: "/singpass-selection", Component: SingpassSelection$1 },
|
|
1653
|
+
[TaskTypes.INDIVIDUAL]: { path: "/individual", Component: RootIndividualDetailsPage$1 },
|
|
1654
|
+
[TaskTypes.BUSINESS_DETAILS]: { path: "/business", Component: RootBusinessDetailsPage$1 },
|
|
1655
|
+
[TaskTypes.ACQUIRING_BUSINESS_LINE]: {
|
|
1656
|
+
path: "/business-lines",
|
|
1657
|
+
Component: RootBusinessLinesPage$1
|
|
1658
|
+
},
|
|
1659
|
+
[TaskTypes.DECISION_MAKER_OVERVIEW]: { path: "/decision-makers", Component: DecisionMakers$1 },
|
|
1660
|
+
[TaskTypes.DECISION_MAKER]: {
|
|
1661
|
+
path: "/decision-maker/:parentId/:decisionMakerId?",
|
|
1662
|
+
Component: DecisionMakerDetailsPage$1
|
|
1663
|
+
},
|
|
1664
|
+
[TaskTypes.PAYOUT]: { path: "/payout/:transferInstrumentId?", Component: PayoutDetailsPage$1 },
|
|
1665
|
+
[TaskTypes.PAYIN]: { path: "/payin/:transferInstrumentId?", Component: PayoutDetailsPage$1 },
|
|
1666
|
+
[TaskTypes.SERVICE_AGREEMENT]: { path: "/service-agreement", Component: AcceptTermsOfService$1 },
|
|
1667
|
+
[TaskTypes.PCI_DSS]: { path: "/pci-dss", Component: SignPCIComponent$1 },
|
|
1668
|
+
[TaskTypes.REVIEW]: { path: "/review", Component: Review$1 },
|
|
1669
|
+
[TaskTypes.CUSTOMER_SUPPORT]: { path: "/customer-support", Component: CustomerSupport$1 },
|
|
1670
|
+
[TaskTypes.CAPABILITY_REJECTED]: {
|
|
1671
|
+
path: "/capability-rejected",
|
|
1672
|
+
Component: AccountSetupRejected$1
|
|
1673
|
+
},
|
|
1674
|
+
[TaskTypes.LEGAL_REPRESENTATIVE_DETAILS]: {
|
|
1675
|
+
path: "/legal-representative",
|
|
1676
|
+
Component: LegalRepresentativeDetailsPage$1
|
|
1677
|
+
},
|
|
1678
|
+
[TaskTypes.SOURCE_OF_FUNDS]: { path: "/source-of-funds", Component: SourceOfFundsPage$1 },
|
|
1679
|
+
[TaskTypes.BUSINESS_FINANCING]: { path: "/business-financing", Component: BusinessFinancingPage$1 },
|
|
1680
|
+
[TaskTypes.TAX_REPORTING]: { path: "/tax-reporting", Component: TaxReportingDropin$1 },
|
|
1681
|
+
[TaskTypes.SOLE_PROPRIETOR_COMPANY]: {
|
|
1682
|
+
path: "/sole-proprietor",
|
|
1683
|
+
Component: SoleProprietorshipPage$1
|
|
1684
|
+
},
|
|
1685
|
+
[TaskTypes.TRUST]: { path: "/trust", Component: TrustDetailsPage$1 },
|
|
1686
|
+
[TaskTypes.TRUST_MEMBER]: { path: "/trust/member" },
|
|
1687
|
+
[TaskTypes.TRUST_MEMBER_OVERVIEW]: { path: "/trust/members", Component: TrustMembersOverview$1 },
|
|
1688
|
+
[TaskTypes.TRUST_MEMBER_ROLE_AND_TYPE]: {
|
|
1689
|
+
path: "/trust/member/role-and-type/:memberId?",
|
|
1690
|
+
Component: TrustMemberRoleAndTypePage$1
|
|
1691
|
+
},
|
|
1692
|
+
[TaskTypes.TRUST_MEMBER_INDIVIDUAL]: {
|
|
1693
|
+
path: "/trust/member/:memberId/individual",
|
|
1694
|
+
Component: TrustMemberIndividualPage$1
|
|
1695
|
+
},
|
|
1696
|
+
[TaskTypes.TRUST_MEMBER_COMPANY]: {
|
|
1697
|
+
path: "/trust/member/:memberId/company",
|
|
1698
|
+
Component: TrustMemberCompanyPage$1
|
|
1699
|
+
},
|
|
1700
|
+
[TaskTypes.TRUST_MEMBER_COMPANY_OWNER]: {
|
|
1701
|
+
path: "/trust/member/:memberId/company-owner/:parentId/:decisionMakerId?",
|
|
1702
|
+
Component: DecisionMakerDetailsPage$1
|
|
1703
|
+
},
|
|
1704
|
+
[TaskTypes.UNINCORPORATED_PARTNERSHIP]: {
|
|
1705
|
+
path: "/partnership",
|
|
1706
|
+
Component: TrustDetailsPage$1
|
|
1707
|
+
},
|
|
1708
|
+
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW]: {
|
|
1709
|
+
path: "/partnership/members",
|
|
1710
|
+
Component: UnincorporatedPartnershipMembersOverview$1
|
|
1711
|
+
},
|
|
1712
|
+
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE]: {
|
|
1713
|
+
path: "/partnership/member/role-and-type/:memberId?",
|
|
1714
|
+
Component: UnincorporatedPartnershipMemberRoleAndTypePage$1
|
|
1715
|
+
},
|
|
1716
|
+
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL]: {
|
|
1717
|
+
path: "/partnership/member/:memberId/individual",
|
|
1718
|
+
Component: UnincorporatedPartnershipIndividualPage$1
|
|
1719
|
+
},
|
|
1720
|
+
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY]: {
|
|
1721
|
+
path: "/partnership/member/:memberId/company",
|
|
1722
|
+
Component: UnincorporatedPartnershipMemberCompanyPage$1
|
|
1723
|
+
},
|
|
1724
|
+
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER]: {
|
|
1725
|
+
path: "/partnership/member/:memberId/company-owner/:parentId/:decisionMakerId?",
|
|
1726
|
+
Component: DecisionMakerDetailsPage$1
|
|
1727
|
+
}
|
|
1728
|
+
};
|
|
1729
|
+
const ROUTE_PATHS = Object.fromEntries(
|
|
1730
|
+
Object.entries(ROUTE_CONFIG).map(([key, entry]) => [key, entry.path])
|
|
1731
|
+
);
|
|
1732
|
+
const buildPath = (task, params) => {
|
|
1733
|
+
const routePath = ROUTE_PATHS[task];
|
|
1734
|
+
const segments = routePath.split("/").filter(Boolean);
|
|
1735
|
+
const built = segments.map((seg) => {
|
|
1736
|
+
const isOptional = seg.endsWith("?");
|
|
1737
|
+
const isParam = seg.startsWith(":");
|
|
1738
|
+
if (!isParam) return seg;
|
|
1739
|
+
const paramName = seg.slice(1, isOptional ? -1 : void 0);
|
|
1740
|
+
const value = params?.[paramName];
|
|
1741
|
+
if (!value && isOptional) return null;
|
|
1742
|
+
if (!value) throw new Error(`Missing required param "${paramName}" for route "${task}"`);
|
|
1743
|
+
return value;
|
|
1744
|
+
}).filter((s) => s !== null);
|
|
1745
|
+
return "/" + built.join("/");
|
|
1746
|
+
};
|
|
1747
|
+
const detectBasePath = (parser, pathname = window.location.pathname) => {
|
|
1748
|
+
const pathSegments = pathname.split("/").filter(Boolean);
|
|
1749
|
+
const sortedRoutes = Object.values(ROUTE_PATHS).sort(
|
|
1750
|
+
(a, b) => b.split("/").filter(Boolean).length - a.split("/").filter(Boolean).length
|
|
1751
|
+
);
|
|
1752
|
+
for (let i = 0; i < pathSegments.length; i++) {
|
|
1753
|
+
const candidatePath = "/" + pathSegments.slice(i).join("/");
|
|
1754
|
+
for (const routePath of sortedRoutes) {
|
|
1755
|
+
const [match] = matchRoute(parser, routePath, candidatePath);
|
|
1756
|
+
if (match) {
|
|
1757
|
+
const baseSegments = pathSegments.slice(0, i);
|
|
1758
|
+
return baseSegments.length > 0 ? "/" + baseSegments.join("/") : "/";
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
const trimmed = pathname.endsWith("/") ? pathname.slice(0, -1) : pathname;
|
|
1763
|
+
return trimmed || "/";
|
|
1764
|
+
};
|
|
1765
|
+
const useNavigate = () => {
|
|
1766
|
+
const [, setLocation] = useLocation();
|
|
1767
|
+
const withSearch = (path) => path + window.location.search;
|
|
1768
|
+
const to = (task, params) => {
|
|
1769
|
+
if (task === "default") {
|
|
1770
|
+
setLocation(withSearch("/"));
|
|
1771
|
+
return;
|
|
1772
|
+
}
|
|
1773
|
+
setLocation(withSearch(buildPath(task, params)));
|
|
1774
|
+
};
|
|
1775
|
+
const back = (stepCount = 1) => {
|
|
1776
|
+
window.history.go(-stepCount);
|
|
1777
|
+
};
|
|
1778
|
+
const replace = (task, params) => {
|
|
1779
|
+
setLocation(withSearch(buildPath(task, params)), { replace: true });
|
|
1780
|
+
};
|
|
1781
|
+
return { to, back, replace };
|
|
1782
|
+
};
|
|
1125
1783
|
function DefaultRouteRedirect({ legalEntity, children }) {
|
|
1126
1784
|
const navigate = useNavigate();
|
|
1127
1785
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -1312,7 +1970,7 @@ function OnboardingRouter({
|
|
|
1312
1970
|
if (isBafinSignatoryFlow({
|
|
1313
1971
|
taskType: TaskTypes.DECISION_MAKER,
|
|
1314
1972
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1315
|
-
// @ts-ignore basicDetails will be there when it's
|
|
1973
|
+
// @ts-ignore basicDetails will be there when it's IndividualSchema
|
|
1316
1974
|
data,
|
|
1317
1975
|
scenarios: scenario
|
|
1318
1976
|
})) {
|
|
@@ -1329,18 +1987,26 @@ function OnboardingRouter({
|
|
|
1329
1987
|
PayoutDetailsPage$1,
|
|
1330
1988
|
{
|
|
1331
1989
|
taskType: TaskTypes.PAYOUT,
|
|
1332
|
-
handleHomeClick: () => navigate.
|
|
1990
|
+
handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW),
|
|
1333
1991
|
openBankingPartnerConfigId,
|
|
1334
|
-
onSubmit:
|
|
1992
|
+
onSubmit: async (data) => {
|
|
1993
|
+
onExternalSubmit?.(data);
|
|
1994
|
+
await refetchLegalEntity();
|
|
1995
|
+
navigate.to(TaskTypes.TASKS_OVERVIEW);
|
|
1996
|
+
}
|
|
1335
1997
|
}
|
|
1336
1998
|
) }),
|
|
1337
1999
|
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.PAYIN], children: /* @__PURE__ */ jsx(
|
|
1338
2000
|
PayoutDetailsPage$1,
|
|
1339
2001
|
{
|
|
1340
2002
|
taskType: TaskTypes.PAYIN,
|
|
1341
|
-
handleHomeClick: () => navigate.
|
|
2003
|
+
handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW),
|
|
1342
2004
|
openBankingPartnerConfigId,
|
|
1343
|
-
onSubmit:
|
|
2005
|
+
onSubmit: async (data) => {
|
|
2006
|
+
onExternalSubmit?.(data);
|
|
2007
|
+
await refetchLegalEntity();
|
|
2008
|
+
navigate.to(TaskTypes.TASKS_OVERVIEW);
|
|
2009
|
+
}
|
|
1344
2010
|
}
|
|
1345
2011
|
) }),
|
|
1346
2012
|
/* @__PURE__ */ jsx(SuspenseRoute, { path: ROUTE_PATHS[TaskTypes.TRUST_MEMBER_OVERVIEW], children: /* @__PURE__ */ jsx(
|
|
@@ -1755,15 +2421,20 @@ function WouterDropinComposerInner({
|
|
|
1755
2421
|
}, [accountHolder, rootLegalEntity]);
|
|
1756
2422
|
useEffect(() => setAccountHolderInGlobalStore(accountHolder), [accountHolder]);
|
|
1757
2423
|
const { rootLegalEntityId } = useApiContext();
|
|
2424
|
+
const { data: toggleData } = useToggles();
|
|
1758
2425
|
rootLegalEntityId.value = rootLegalEntity.id;
|
|
1759
2426
|
useEffect(() => {
|
|
1760
|
-
|
|
1761
|
-
if (
|
|
2427
|
+
let enabledExperimentNames;
|
|
2428
|
+
if (experiments.EnableOnboardingTogglesEndpoint) {
|
|
2429
|
+
enabledExperimentNames = Object.keys(toggleData?.experiments || {});
|
|
2430
|
+
} else {
|
|
2431
|
+
enabledExperimentNames = Object.entries(experiments).filter(([key, value]) => key.includes("_") && value).map(([key]) => key);
|
|
2432
|
+
}
|
|
1762
2433
|
enabledExperimentNames.forEach((experiment) => {
|
|
1763
2434
|
const [name, variant] = experiment.split("_");
|
|
1764
2435
|
userEvents.trackExperiment({ name, variant });
|
|
1765
2436
|
});
|
|
1766
|
-
}, [experiments]);
|
|
2437
|
+
}, [experiments, toggleData?.experiments, userEvents]);
|
|
1767
2438
|
const singpassBanner = isEligibleForSingpass ? /* @__PURE__ */ jsx(
|
|
1768
2439
|
SingpassBanner,
|
|
1769
2440
|
{
|
|
@@ -1959,86 +2630,86 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
1959
2630
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
1960
2631
|
};
|
|
1961
2632
|
const Introduction = lazy(
|
|
1962
|
-
async () => (await import("./Introduction-
|
|
2633
|
+
async () => (await import("./Introduction-CZ_-eIBj.js")).Introduction
|
|
1963
2634
|
);
|
|
1964
2635
|
const BusinessTypeSelectionPage = lazy(
|
|
1965
|
-
async () => (await import("./BusinessTypeSelectionPage-
|
|
2636
|
+
async () => (await import("./BusinessTypeSelectionPage-D3EIjy_H.js")).BusinessTypeSelectionPage
|
|
1966
2637
|
);
|
|
1967
2638
|
const SingpassSelection = lazy(
|
|
1968
|
-
async () => (await import("./SingpassSelection-
|
|
2639
|
+
async () => (await import("./SingpassSelection-FctS_Rd2.js")).SingpassSelection
|
|
1969
2640
|
);
|
|
1970
2641
|
const AccountSetupRejected = lazy(
|
|
1971
|
-
async () => (await import("./AccountSetupRejected-
|
|
2642
|
+
async () => (await import("./AccountSetupRejected-BBPH8zsy.js")).AccountSetupRejected
|
|
1972
2643
|
);
|
|
1973
2644
|
const DecisionMakers = lazy(
|
|
1974
|
-
async () => (await import("./DecisionMakers-
|
|
2645
|
+
async () => (await import("./DecisionMakers-AhL30Hnp.js")).DecisionMakers
|
|
1975
2646
|
);
|
|
1976
2647
|
const CustomerSupport = lazy(
|
|
1977
|
-
async () => (await import("./CustomerSupport-
|
|
2648
|
+
async () => (await import("./CustomerSupport-CU3xoowB.js")).CustomerSupport
|
|
1978
2649
|
);
|
|
1979
|
-
const Review = lazy(async () => (await import("./Review-
|
|
2650
|
+
const Review = lazy(async () => (await import("./Review-BjdQyMeU.js")).Review);
|
|
1980
2651
|
const SignPCIComponent = lazy(
|
|
1981
|
-
async () => (await import("./SignPCIComponent-
|
|
2652
|
+
async () => (await import("./SignPCIComponent-CkaBa8MB.js")).SignPCIComponent
|
|
1982
2653
|
);
|
|
1983
2654
|
const AcceptTermsOfService = lazy(
|
|
1984
|
-
async () => (await import("./AcceptTermsOfServiceComponent-
|
|
2655
|
+
async () => (await import("./AcceptTermsOfServiceComponent-Y5aYfW8R.js")).AcceptTermsOfServiceComponent
|
|
1985
2656
|
);
|
|
1986
2657
|
const TaxReportingDropin = lazy(
|
|
1987
|
-
async () => (await import("./TaxReportingDropin-
|
|
2658
|
+
async () => (await import("./TaxReportingDropin-C2dEK3ij.js")).TaxReportingDropin
|
|
1988
2659
|
);
|
|
1989
2660
|
const PayoutDetailsPage = lazy(
|
|
1990
|
-
async () => (await import("./
|
|
2661
|
+
async () => (await import("./PayoutDetailsPage-NIBSRWDA.js")).PayoutDetailsPage
|
|
1991
2662
|
);
|
|
1992
2663
|
const RootBusinessDetailsPage = lazy(
|
|
1993
|
-
async () => (await import("./RootBusinessDetailsPage-
|
|
2664
|
+
async () => (await import("./RootBusinessDetailsPage-CE9KIQRB.js")).RootBusinessDetailsPage
|
|
1994
2665
|
);
|
|
1995
2666
|
const RootBusinessLinesPage = lazy(
|
|
1996
|
-
async () => (await import("./RootBusinessLinesPage-
|
|
2667
|
+
async () => (await import("./RootBusinessLinesPage-DYZETgKB.js")).RootBusinessLinesPage
|
|
1997
2668
|
);
|
|
1998
2669
|
const SoleProprietorshipPage = lazy(
|
|
1999
|
-
async () => (await import("./SoleProprietorshipPage-
|
|
2670
|
+
async () => (await import("./SoleProprietorshipPage-BolUC48_.js")).SoleProprietorshipPage
|
|
2000
2671
|
);
|
|
2001
2672
|
const TrustMemberCompanyPage = lazy(
|
|
2002
|
-
async () => (await import("./TrustMemberCompanyPage-
|
|
2673
|
+
async () => (await import("./TrustMemberCompanyPage-CbRLAXBG.js")).TrustMemberCompanyPage
|
|
2003
2674
|
);
|
|
2004
2675
|
const TrustMemberIndividualPage = lazy(
|
|
2005
|
-
async () => (await import("./TrustMemberIndividualPage-
|
|
2676
|
+
async () => (await import("./TrustMemberIndividualPage-BFRSkSas.js")).TrustMemberIndividualPage
|
|
2006
2677
|
);
|
|
2007
2678
|
const TrustMemberRoleAndTypePage = lazy(
|
|
2008
|
-
async () => (await import("./TrustMemberRoleAndTypePage-
|
|
2679
|
+
async () => (await import("./TrustMemberRoleAndTypePage-pS7j8_f6.js")).TrustMemberRoleAndTypePage
|
|
2009
2680
|
);
|
|
2010
2681
|
const TrustMembersOverview = lazy(
|
|
2011
|
-
async () => (await import("./TrustMembersOverview-
|
|
2682
|
+
async () => (await import("./TrustMembersOverview-aEVgO4Gr.js")).TrustMembersOverview
|
|
2012
2683
|
);
|
|
2013
2684
|
const UnincorporatedPartnershipMemberCompanyPage = lazy(
|
|
2014
|
-
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-
|
|
2685
|
+
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-qvOu17yc.js")).UnincorporatedPartnershipMemberCompanyPage
|
|
2015
2686
|
);
|
|
2016
2687
|
const UnincorporatedPartnershipIndividualPage = lazy(
|
|
2017
|
-
async () => (await import("./UnincorporatedPartnershipIndividualPage-
|
|
2688
|
+
async () => (await import("./UnincorporatedPartnershipIndividualPage-DO7AXsP5.js")).UnincorporatedPartnershipIndividualPage
|
|
2018
2689
|
);
|
|
2019
2690
|
const UnincorporatedPartnershipMemberRoleAndTypePage = lazy(
|
|
2020
|
-
async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-
|
|
2691
|
+
async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-reBMcz-Y.js")).UnincorporatedPartnershipMemberRoleAndTypePage
|
|
2021
2692
|
);
|
|
2022
2693
|
const UnincorporatedPartnershipMembersOverview = lazy(
|
|
2023
|
-
async () => (await import("./UnincorporatedPartnershipMembersOverview-
|
|
2694
|
+
async () => (await import("./UnincorporatedPartnershipMembersOverview-B5YCchZY.js")).UnincorporatedPartnershipMembersOverview
|
|
2024
2695
|
);
|
|
2025
2696
|
const BusinessFinancingPage = lazy(
|
|
2026
|
-
async () => (await import("./BusinessFinancingPage-
|
|
2697
|
+
async () => (await import("./BusinessFinancingPage-Bg-wKhhY.js")).BusinessFinancingPage
|
|
2027
2698
|
);
|
|
2028
2699
|
const TrustDetailsPage = lazy(
|
|
2029
|
-
async () => (await import("./TrustDetailsPage-
|
|
2700
|
+
async () => (await import("./TrustDetailsPage-BbQB4A5-.js")).TrustDetailsPage
|
|
2030
2701
|
);
|
|
2031
2702
|
const SourceOfFundsPage = lazy(
|
|
2032
|
-
async () => (await import("./SourceOfFundsPage-
|
|
2703
|
+
async () => (await import("./SourceOfFundsPage-qPaoxTgM.js")).SourceOfFundsPage
|
|
2033
2704
|
);
|
|
2034
2705
|
const RootIndividualDetailsPage = lazy(
|
|
2035
|
-
async () => (await import("./RootIndividualDetailsPage-
|
|
2706
|
+
async () => (await import("./RootIndividualDetailsPage-DCEHjEbR.js")).RootIndividualDetailsPage
|
|
2036
2707
|
);
|
|
2037
2708
|
const LegalRepresentativeDetailsPage = lazy(
|
|
2038
|
-
async () => (await import("./LegalRepresentativeDetailsPage
|
|
2709
|
+
async () => (await import("./LegalRepresentativeDetailsPage-DFKA0RAe.js")).LegalRepresentativeDetailsPage
|
|
2039
2710
|
);
|
|
2040
2711
|
const DecisionMakerDetailsPage = lazy(
|
|
2041
|
-
async () => (await import("./DecisionMakerDetailsPage-
|
|
2712
|
+
async () => (await import("./DecisionMakerDetailsPage-C-mB9v5X.js")).DecisionMakerDetailsPage
|
|
2042
2713
|
);
|
|
2043
2714
|
function isIn(values, x) {
|
|
2044
2715
|
return values.includes(x);
|
|
@@ -2247,15 +2918,20 @@ function LegacyDropinComposer({
|
|
|
2247
2918
|
}, [accountHolder, rootLegalEntity]);
|
|
2248
2919
|
useEffect(() => setAccountHolderInGlobalStore(accountHolder), [accountHolder]);
|
|
2249
2920
|
const { rootLegalEntityId } = useApiContext();
|
|
2921
|
+
const { data: toggleData } = useToggles();
|
|
2250
2922
|
rootLegalEntityId.value = rootLegalEntity.id;
|
|
2251
2923
|
useEffect(() => {
|
|
2252
|
-
|
|
2253
|
-
if (
|
|
2924
|
+
let enabledExperimentNames;
|
|
2925
|
+
if (experiments.EnableOnboardingTogglesEndpoint) {
|
|
2926
|
+
enabledExperimentNames = Object.keys(toggleData?.experiments || {});
|
|
2927
|
+
} else {
|
|
2928
|
+
enabledExperimentNames = Object.entries(experiments).filter(([key, value]) => key.includes("_") && value).map(([key]) => key);
|
|
2929
|
+
}
|
|
2254
2930
|
enabledExperimentNames.forEach((experiment) => {
|
|
2255
2931
|
const [name, variant] = experiment.split("_");
|
|
2256
2932
|
userEvents.trackExperiment({ name, variant });
|
|
2257
2933
|
});
|
|
2258
|
-
}, [experiments]);
|
|
2934
|
+
}, [experiments, toggleData?.experiments, userEvents]);
|
|
2259
2935
|
const singpassBanner = isEligibleForSingpass ? /* @__PURE__ */ jsx(
|
|
2260
2936
|
SingpassBanner,
|
|
2261
2937
|
{
|
|
@@ -2375,7 +3051,7 @@ function LegacyDropinComposer({
|
|
|
2375
3051
|
if (isBafinSignatoryFlow({
|
|
2376
3052
|
taskType: TaskTypes.DECISION_MAKER,
|
|
2377
3053
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2378
|
-
// @ts-ignore basicDetails will be there when it's
|
|
3054
|
+
// @ts-ignore basicDetails will be there when it's IndividualSchema
|
|
2379
3055
|
data,
|
|
2380
3056
|
scenarios: scenario
|
|
2381
3057
|
})) {
|
|
@@ -2655,8 +3331,8 @@ function OnboardingDropinComponent({
|
|
|
2655
3331
|
}
|
|
2656
3332
|
const { i18n } = useTranslation();
|
|
2657
3333
|
addResourceBundles(i18n, [
|
|
2658
|
-
{ ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/da-DK.json": () => import("./da-DK-
|
|
2659
|
-
{ ns: "ui", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../ui/language/da-DK.json": () => import("./da-DK-DQ4ZYSea.js"), "../../ui/language/de-DE.json": () => import("./de-DE-CkbOZ6S_.js"), "../../ui/language/en-US.json": () => import("./en-US-
|
|
3334
|
+
{ ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/da-DK.json": () => import("./da-DK-Cv6XUSoW.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-BplDsJEb.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-CfIM2SRF.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-CBB99upB.js").then((n) => n.bT), "../../../language/locales/es-ES.json": () => import("./es-ES-DRsix_Xn.js"), "../../../language/locales/fi-FI.json": () => import("./fi-FI-BftTiz0c.js"), "../../../language/locales/fr-FR.json": () => import("./fr-FR-C6jxjXAI.js"), "../../../language/locales/it-IT.json": () => import("./it-IT-CXlaZNIj.js"), "../../../language/locales/ja-JP.json": () => import("./ja-JP-A6ArIIZ8.js"), "../../../language/locales/nl-NL.json": () => import("./nl-NL-BwWFlBOs.js"), "../../../language/locales/no-NO.json": () => import("./no-NO-JWsSd7iY.js"), "../../../language/locales/pt-BR.json": () => import("./pt-BR-BJOww8U1.js"), "../../../language/locales/sl-SI.json": () => import("./sl-SI-BfO3xEJx.js"), "../../../language/locales/sv-SE.json": () => import("./sv-SE-CMLKzwtj.js") }), `../../../language/locales/${lang}.json`, 6) },
|
|
3335
|
+
{ ns: "ui", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../ui/language/da-DK.json": () => import("./da-DK-DQ4ZYSea.js"), "../../ui/language/de-DE.json": () => import("./de-DE-CkbOZ6S_.js"), "../../ui/language/en-US.json": () => import("./en-US-B-qSAb-7.js"), "../../ui/language/es-ES.json": () => import("./es-ES-BAolMrZ0.js"), "../../ui/language/fi-FI.json": () => import("./fi-FI-D8WrLxxq.js"), "../../ui/language/fr-FR.json": () => import("./fr-FR-Beljeilc.js"), "../../ui/language/it-IT.json": () => import("./it-IT-5a7NHVFo.js"), "../../ui/language/ja-JP.json": () => import("./ja-JP-DSvZhFNY.js"), "../../ui/language/nl-NL.json": () => import("./nl-NL-CmURERx_.js"), "../../ui/language/no-NO.json": () => import("./no-NO-qyqWODMp.js"), "../../ui/language/pt-BR.json": () => import("./pt-BR-BxoOF8jB.js"), "../../ui/language/sl-SI.json": () => import("./sl-SI-DTvJT7fC.js"), "../../ui/language/sv-SE.json": () => import("./sv-SE-N-Hqwcjq.js") }), `../../ui/language/${lang}.json`, 5) }
|
|
2660
3336
|
]);
|
|
2661
3337
|
const { data: legalEntityData } = useLegalEntity(ROOT_LE);
|
|
2662
3338
|
return !legalEntityData ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx(
|
|
@@ -2668,5 +3344,21 @@ function OnboardingDropinComponent({
|
|
|
2668
3344
|
);
|
|
2669
3345
|
}
|
|
2670
3346
|
export {
|
|
2671
|
-
OnboardingDropinComponent as O
|
|
3347
|
+
OnboardingDropinComponent as O,
|
|
3348
|
+
usePciStatus as a,
|
|
3349
|
+
useCanSeeIntroduction as b,
|
|
3350
|
+
useLegalEntityType as c,
|
|
3351
|
+
allowIndividualWithoutSoleProp as d,
|
|
3352
|
+
useDataMissingRemediations as e,
|
|
3353
|
+
useTaskStatus as f,
|
|
3354
|
+
getTrustedEntityAssociations as g,
|
|
3355
|
+
useNavigate as h,
|
|
3356
|
+
filterProblemsByTaskForms as i,
|
|
3357
|
+
useBusinessLines as j,
|
|
3358
|
+
usePciQuestionnaireList as k,
|
|
3359
|
+
useTrustMembers as l,
|
|
3360
|
+
isNewEntity as m,
|
|
3361
|
+
getTrustedFieldsProvider as n,
|
|
3362
|
+
getTrustedFields as o,
|
|
3363
|
+
useSalesChannels as u
|
|
2672
3364
|
};
|