@adyen/kyc-components 3.94.0 → 3.95.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-UXDlHmf_.js → AcceptTermsOfServiceComponent-DQBTbYHm.js} +36 -32
- package/dist/{Accordion-DM9qeMoR.js → Accordion-CyFxp5eR.js} +2 -2
- package/dist/{AccountSetupRejected-DfmKQEp-.js → AccountSetupRejected-BgPC6a82.js} +4 -4
- package/dist/{ActionBar-DCKuV5BO.js → ActionBar-DuqmbwPb.js} +2 -2
- package/dist/{Address-BEUcWe_H.js → Address-uWZO7A9W.js} +10 -12
- package/dist/{Alert-D9HbhU88.js → Alert-BpQzk7oa.js} +3 -3
- package/dist/{Avatar-C_tjYaBz.js → Avatar-cL2Btfr9.js} +2 -2
- package/dist/{BusinessFinancingComponent-B5gLGmkK.js → BusinessFinancingComponent-DQnluWsY.js} +7 -7
- package/dist/{BusinessFinancingDropin-BpZKzB71.js → BusinessFinancingDropin-TTX58HNJ.js} +689 -307
- package/dist/{BusinessFinancingPage-CKdy77OK.js → BusinessFinancingPage-CARcv8Qh.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-ClkY9cbT.js → BusinessTypeSelectionPage-BamCO_8X.js} +9 -9
- package/dist/{Checkbox-BU4IYlt6.js → Checkbox-4TE31vJm.js} +2 -2
- package/dist/{Confirm-BM1PTsnm.js → Confirm-BCbTBwh3.js} +3 -3
- package/dist/{ConstitutionalDocument-D9sPfw_B.js → ConstitutionalDocument-DAXsUY5o.js} +37 -30
- package/dist/{ContactDetails-BRnbG7BX.js → ContactDetails-DF1ERAlH.js} +8 -8
- package/dist/{ContextGuidance-CZGa7C-r.js → ContextGuidance-c2saCqxR.js} +3 -3
- package/dist/{ContractViewer-Byp71k2e.js → ContractViewer-DcQHIGMU.js} +2 -2
- package/dist/{CountryField-DShqP-Yi.js → CountryField-0SyPMIyv.js} +6 -6
- package/dist/{CreateIndividualComponent-BZ6dd8Bd.js → CreateIndividualComponent-BEG5bcc8.js} +7 -7
- package/dist/{CreateTransferInstrumentComponent-1pjVr_3y.js → CreateTransferInstrumentComponent-UEBRtXZu.js} +5 -5
- package/dist/{Currency-CEtDxV-F.js → Currency-CYaHlY2Z.js} +7 -11
- package/dist/{CustomerSupport-gmN79qSl.js → CustomerSupport-CZAM9Fzm.js} +11 -11
- package/dist/{DebugModal-C3horl0P.js → DebugModal-Dpm0S2dA.js} +9 -9
- package/dist/{DecisionMakerDetailsPage-CN1t2Ok6.js → DecisionMakerDetailsPage-CgEYI6wt.js} +14 -10
- package/dist/{DecisionMakers-83kflZpA.js → DecisionMakers-Dj2lHuCW.js} +36 -26
- package/dist/{Dropzone-DYIUInYF.js → Dropzone-D-KrwtNK.js} +4 -4
- package/dist/{EmbeddedStatus-BID4yaOx.js → EmbeddedStatus-Bz7OcIMW.js} +3 -3
- package/dist/{EndStateLayout-Cqmi0QYW.js → EndStateLayout-DnGdtXOr.js} +2 -2
- package/dist/{EntityAssociation-jMAjopdW.js → EntityAssociation-ysCVZKn5.js} +35 -23
- package/dist/{EntityGuidanceStatus-ek-5IvZb.js → EntityGuidanceStatus-BHI0RfAS.js} +3 -3
- package/dist/{ErrorPanel-ByEaxCQu.js → ErrorPanel-CAHQTbMv.js} +3 -3
- package/dist/{Field-Cp_UOAnA.js → Field-CApB-T06.js} +2 -2
- package/dist/{FormNavigation-CttAyMuX.js → FormNavigation-DSCpClML.js} +3 -3
- package/dist/{FormWrapper-C8UDjnjQ.js → FormWrapper-CVN-7oA1.js} +9 -9
- package/dist/{Header-CIxJSQWR.js → Header-DCVQMDDt.js} +2 -2
- package/dist/{Image-T-D-HDf5.js → Image-CJu0BRVo.js} +2 -2
- package/dist/{Individual.rules-DEhHxeiv.js → Individual.rules-NaoLBYL8.js} +29 -14
- package/dist/{IndividualDropin-Dz2ooI0s.js → IndividualDropin-CfUopCha.js} +71 -63
- package/dist/{InputDate-z9OpUslu.js → InputDate-CiL0lNHS.js} +2 -2
- package/dist/{InputText-CBhD5jca.js → InputText-BV_-tgjA.js} +2 -2
- package/dist/{Introduction-Bm3kybSH.js → Introduction-D1Ki78MP.js} +4 -4
- package/dist/{JpAddress-owiNWOqn.js → JpAddress-UoTJ6rCV.js} +18 -13
- package/dist/{LandingLayout-BuBU3Pyb.js → LandingLayout-Cn77l9Co.js} +2 -2
- package/dist/{fieldConfig-CMdKt41r.js → LegalCompanyNameField-iFBtpehs.js} +71 -67
- package/dist/{LegalRepresentativeDetailsPage-vS7jAxuO.js → LegalRepresentativeDetailsPage-B0UoHJQJ.js} +5 -5
- package/dist/{Link-CIBefZJS.js → Link-BJyutNM5.js} +2 -2
- package/dist/{ListItem-CnzgA-sH.js → ListItem-Bgm6YMzN.js} +3 -3
- package/dist/{LoaderWrapper-CwhIpGKR.js → LoaderWrapper-C4vG5XIf.js} +1 -1
- package/dist/ManageIndividualComponent-D9R1S14p.js +46 -0
- package/dist/{ManageTermsOfServiceComponent-BdiC5Nbd.js → ManageTermsOfServiceComponent-CwmatDwh.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-CObC5Uof.js → ManageTransferInstrumentComponent-2b76XSTc.js} +15 -14
- package/dist/{MaskedInput-BfI4FGAA.js → MaskedInput-BbFU7XNV.js} +5 -5
- package/dist/{MaybeModal-DHcu32Dh.js → MaybeModal-BpIcw6KQ.js} +3 -3
- package/dist/{Modal-BKWXTEoU.js → Modal-CJUtsR2N.js} +2 -2
- package/dist/{Name-BCar2_dk.js → Name-DTE823OG.js} +5 -5
- package/dist/{OnboardingDropinComponent-DstStqYS.js → OnboardingDropinComponent-BX4esftr.js} +850 -520
- package/dist/{PayoutDetailsDropin-DSdlqAe2.js → PayoutDetailsDropin-Cqeomvbg.js} +130 -77
- package/dist/{RadioGroup-COsozc9g.js → RadioGroup-DzUpgP12.js} +2 -2
- package/dist/{RadioGroupCard-xqC3IACY.js → RadioGroupCard-g4OS0871.js} +2 -2
- package/dist/{Review-CZwc-DMp.js → Review-Cj1WCiGQ.js} +7 -7
- package/dist/RootBusinessDetailsPage-9NXM1XdC.js +50 -0
- package/dist/{RootBusinessLinesPage-BRgtyHFs.js → RootBusinessLinesPage-YxGXibwW.js} +27 -24
- package/dist/{RootIndividualDetailsPage-C3wTzTp1.js → RootIndividualDetailsPage-DX1rjTXN.js} +7 -6
- package/dist/{Select-DeTBytOH.js → Select-C_6mHv91.js} +4 -4
- package/dist/{SignPCIComponent-CCGyrXvI.js → SignPCIComponent-OxWCtP3x.js} +14 -14
- package/dist/{SingpassSelection-BumqRwXI.js → SingpassSelection-DE4uUTZo.js} +6 -6
- package/dist/SoleProprietorshipPage-BzpFPKOl.js +50 -0
- package/dist/{SourceOfFundsPage-DkjYls-E.js → SourceOfFundsPage-CESAo3kl.js} +33 -32
- package/dist/{StepProgressIndicator-D8PfKJKf.js → StepProgressIndicator-a3q7kzzC.js} +2 -2
- package/dist/{StoreProvider-CsZ-qrGt.js → StoreProvider-BL3nK1iO.js} +157 -132
- package/dist/{StructuredList-9dnJRdx_.js → StructuredList-BNLhk_zV.js} +1 -1
- package/dist/{Summary-DPm9r7Az.js → Summary-8HdspbcQ.js} +19 -8
- package/dist/{TaskVerificationStatus-DrOQToMh.js → TaskVerificationStatus-ycoS73dK.js} +2 -2
- package/dist/{TaxInformationField-NI7Hbgov.js → TaxInformationField-BfDJhJG4.js} +438 -81
- package/dist/{TaxReportingDropin-BBUAxx92.js → TaxReportingDropin-xYD4YqWR.js} +18 -18
- package/dist/{TextArea-CCjCNpAP.js → TextArea-CWY-x138.js} +2 -2
- package/dist/{TileGroup-BhKhvfLz.js → TileGroup-DmZTiaip.js} +3 -3
- package/dist/{TrustDetailsPage-yOmFcEyO.js → TrustDetailsPage-JQ-U6HZk.js} +44 -38
- package/dist/TrustMemberCompanyPage-WwsnSV7c.js +68 -0
- package/dist/{TrustMemberIndividualPage-B8tb56n2.js → TrustMemberIndividualPage-27y1WJMM.js} +11 -8
- package/dist/{TrustMemberRoleAndTypePage-WHu1tc4O.js → TrustMemberRoleAndTypePage-DHCLuLa-.js} +43 -38
- package/dist/{TrustMembersOverview-BWbGUK3k.js → TrustMembersOverview-CqdtBx67.js} +13 -13
- package/dist/{UnincorporatedPartnershipIndividualPage-DD2dn41k.js → UnincorporatedPartnershipIndividualPage-xOJ-Kusf.js} +10 -7
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DsUSSYnI.js → UnincorporatedPartnershipMemberCompanyPage-CBw2IY6X.js} +10 -7
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Ctb0Lz_0.js → UnincorporatedPartnershipMemberRoleAndTypePage-B4fDDHnW.js} +15 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-B_GJIeZC.js → UnincorporatedPartnershipMembersOverview-BrBvKluu.js} +9 -9
- package/dist/{VerificationErrorAlert-CCiMqGl8.js → VerificationErrorAlert-DXaYFyA9.js} +4 -24
- package/dist/{ViewVerificationStatusComponent-CICJ6cy4.js → ViewVerificationStatusComponent-YY4hrQ8I.js} +4 -4
- package/dist/accountHolderUtils-DP6cbO7y.js +66 -0
- 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-kyc-components.js +20 -19
- 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-Ch6rVpGi.js → bafinUtils-BCq4-e97.js} +3 -22
- package/dist/bg-BG-CFuVZnaC.js +13 -0
- package/dist/{bg-BG-CepHap8j.js → bg-BG-DMNRRZZE.js} +8 -1
- package/dist/bg-BG-Dp1J1L2X.js +13 -0
- package/dist/{commonValidators-B8wfpMjX.js → commonValidators-BXRpCFOY.js} +2 -2
- package/dist/company-types-value-D_mKv5PT.js +23 -0
- package/dist/cs-CZ-Bd9Zz7z4.js +13 -0
- package/dist/cs-CZ-CYsR__kj.js +13 -0
- package/dist/{cs-CZ-BP7niQM9.js → cs-CZ-DXSMRqPu.js} +8 -1
- package/dist/da-DK-B3Pg-MWO.js +13 -0
- package/dist/{da-DK-Dc0QYG8m.js → da-DK-Cd5IQPv3.js} +8 -1
- package/dist/da-DK-DmFDgnbC.js +13 -0
- package/dist/{de-DE-Dz2OsS1F.js → de-DE-C9NH2zMh.js} +8 -1
- package/dist/de-DE-DRuKxSOy.js +13 -0
- package/dist/de-DE-S6qDey1L.js +13 -0
- package/dist/{dropinUtils-B4Vv7_zJ.js → dropinUtils-DGUJjA6y.js} +4 -4
- package/dist/el-GR-Cezskrdn.js +13 -0
- package/dist/{el-GR-BHG69mXl.js → el-GR-DTHQslLc.js} +8 -1
- package/dist/el-GR-DoS_Va-n.js +13 -0
- package/dist/{en-US-CzEL6t1W.js → en-US-D1sB335h.js} +9 -3
- package/dist/en-US-DLY20x1O.js +13 -0
- package/dist/{en-US-D-B35AoN.js → en-US-DYP6rAvA.js} +8 -1
- package/dist/{en-US-fyGPkcqX.js → en-US-cVpRgdC8.js} +2 -2
- package/dist/es-ES-BYl5-PFR.js +13 -0
- package/dist/{es-ES-BI_jdT67.js → es-ES-DK-7qtDf.js} +8 -1
- package/dist/es-ES-DzB4V6UZ.js +13 -0
- package/dist/et-EE-4fHYOoff.js +13 -0
- package/dist/et-EE-BkHzGD3D.js +13 -0
- package/dist/{et-EE-C_PZO2aI.js → et-EE-DNC4hcxm.js} +8 -1
- package/dist/{fi-FI-hwzizPnr.js → fi-FI-BJLU1JHw.js} +8 -1
- package/dist/fi-FI-Cxkp0GQA.js +13 -0
- package/dist/fi-FI-DFxljML-.js +13 -0
- package/dist/filterProblemsByTaskForms-Cz7iQtms.js +30 -0
- package/dist/{formUtils-q44BTi2U.js → formUtils-CJQolfmf.js} +3 -22
- package/dist/{fr-FR-CYZXbwc9.js → fr-FR-B2je0smB.js} +8 -1
- package/dist/fr-FR-DPehHVb6.js +13 -0
- package/dist/fr-FR-DsEmssxk.js +13 -0
- package/dist/{getName-BxKx8lLd.js → getName-C1AIqAns.js} +2 -2
- package/dist/{getProps-CLJfvUMb.js → getProps-O8Fpl_k_.js} +2 -6
- package/dist/getTrustedFields-C5-mXl-l.js +64 -0
- package/dist/hr-HR-Bjx-KdVs.js +13 -0
- package/dist/{hr-HR-bE6cvRCQ.js → hr-HR-C0NLgF1r.js} +8 -1
- package/dist/hr-HR-DU4nvY6g.js +13 -0
- package/dist/hu-HU-B-lUkFnQ.js +13 -0
- package/dist/hu-HU-D6frnZmR.js +13 -0
- package/dist/{hu-HU-DG-NUDx4.js → hu-HU-DU-5ujQK.js} +8 -1
- package/dist/{iframeWidget-iDH8bVr4.js → iframeWidget-DRjCrrYZ.js} +4 -4
- package/dist/{isEmpty-BNacTlfR.js → isEmpty-C7bLX-qG.js} +2 -2
- package/dist/isNewEntity-7Vw_eQBr.js +13 -0
- package/dist/it-IT-DOBp2-MP.js +13 -0
- package/dist/{it-IT-Erh1DIlj.js → it-IT-Dhwa9Ecj.js} +8 -1
- package/dist/it-IT-VFXgXyRA.js +13 -0
- package/dist/{ja-JP-DfE1PYyN.js → ja-JP-B3wVYIJU.js} +2 -2
- package/dist/ja-JP-B_Q8X66O.js +13 -0
- package/dist/{ja-JP-CWJzqrtj.js → ja-JP-Bc4U0S8-.js} +8 -1
- package/dist/{ja-JP-4Q9zp35q.js → ja-JP-Bv3ru9Xq.js} +14 -7
- package/dist/{ja-JP-CSz7fEkn.js → ja-JP-CceCDXLB.js} +2 -2
- package/dist/{ja-JP-DBoYLzeA.js → ja-JP-DSvZhFNY.js} +4 -4
- package/dist/{japanSupportUtils-C7aPdWXD.js → japanSupportUtils-BucfNSWB.js} +2 -2
- package/dist/{jpAddressSchema-De6ix57p.js → jpAddressSchema-DEOyz9Yo.js} +2 -4
- package/dist/{localizeDateString-DuTq6aHe.js → localizeDateString-n8b2kwyK.js} +2 -2
- package/dist/{lt-LT-Nd1uRoIj.js → lt-LT-C8n1GZoU.js} +8 -1
- package/dist/lt-LT-CE-GdWrg.js +13 -0
- package/dist/lt-LT-WRulV980.js +13 -0
- package/dist/{lv-LV-DKhV24CI.js → lv-LV-BZN4-Xat.js} +8 -1
- package/dist/lv-LV-C9Dhkruv.js +13 -0
- package/dist/lv-LV-dv7fqeBS.js +13 -0
- package/dist/{mapExistingFile-CGg2sd-T.js → mapExistingFile-DtG8dtIh.js} +5 -6
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BwHU4ZwL.js → mapJpAddressSchemaToAddressLocalizations-CpVZUxo1.js} +5 -5
- package/dist/{mapLegalEntityToIndividualSchema-DzCEngXr.js → mapLegalEntityToIndividualSchema-1aYgn5km.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-DLHvwig1.js → mapTransferInstrumentToPayoutAccount-BDQGKfhP.js} +2 -2
- package/dist/{nl-NL-O9GCHMDA.js → nl-NL-B0fvINJj.js} +8 -1
- package/dist/nl-NL-BwIRHJgf.js +13 -0
- package/dist/nl-NL-SjOGmGk5.js +13 -0
- package/dist/no-NO-BAWVf0GX.js +13 -0
- package/dist/{no-NO-CA1aR6Wh.js → no-NO-Jw7Gae-a.js} +8 -1
- package/dist/no-NO-u56mEoG3.js +13 -0
- package/dist/{patternValidators-CZ5mQeGD.js → patternValidators-DcjAPGFV.js} +5 -5
- package/dist/{pl-PL-BKDK0_G8.js → pl-PL-Bmaq3IC3.js} +8 -1
- package/dist/pl-PL-DEMxxz7h.js +13 -0
- package/dist/pl-PL-zqT41Yjw.js +13 -0
- package/dist/{process-field-configurations-BQY03q4v.js → process-field-configurations-CQoldE8s.js} +3 -3
- package/dist/{pt-BR-NtLaWlnZ.js → pt-BR-BaTE6BB_.js} +8 -1
- package/dist/pt-BR-BfDe_8iW.js +13 -0
- package/dist/pt-BR-fMKntiMG.js +13 -0
- package/dist/{pt-PT-C6teRGuD.js → pt-PT-C6pZR9Bc.js} +2 -2
- package/dist/pt-PT-F1qPZJ2c.js +13 -0
- package/dist/{pt-PT-DSxxVA0f.js → pt-PT-c0ap84_F.js} +8 -1
- package/dist/{resolveEnvironment-BEU3VKd8.js → resolveEnvironment-D-07Kfa-.js} +3 -3
- package/dist/ro-RO-0vx6ZLWV.js +13 -0
- package/dist/ro-RO-B5BQrf6C.js +13 -0
- package/dist/{ro-RO-Bybq8JFn.js → ro-RO-BPOHV6Wp.js} +8 -1
- package/dist/{roleMetadata-BeJKyoeE.js → roleMetadata-DsoqlMAY.js} +2 -2
- package/dist/{sk-SK-C6rMIxpz.js → sk-SK-3_SoEn6P.js} +8 -1
- package/dist/sk-SK-Bz4T7upD.js +13 -0
- package/dist/sk-SK-DuLm2CVx.js +13 -0
- package/dist/sl-SI--RTGDByj.js +13 -0
- package/dist/sl-SI-BAIm-qBe.js +13 -0
- package/dist/{sl-SI-tPwbFvOI.js → sl-SI-DbfswGh0.js} +8 -1
- package/dist/style.css +140 -148
- package/dist/styles-CLV89_hH.js +140 -148
- package/dist/sv-SE-BZNey_8S.js +13 -0
- package/dist/{sv-SE-K1QT1cOt.js → sv-SE-D_Efxy3s.js} +8 -1
- package/dist/sv-SE-Dryy3JLw.js +13 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +1 -1
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +3 -3
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +10 -10
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -1
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -3
- package/dist/types/components/{Shared → Business}/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
- package/dist/types/components/{Shared → Business}/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/{Shared → Business}/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +6 -6
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -2
- package/dist/types/components/Business/utils/companyUtil.d.ts +0 -1
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +1 -2
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -1
- package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5283 -53
- package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +3 -2
- package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -1
- package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +1 -2
- package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +1 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingSoleProprietor.d.ts +2 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSoleProprietorPersonalInformation.d.ts +4 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +14 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +10 -1
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +1 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +4 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/IdVerificationMethod.types.d.ts +2 -1
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +2 -2
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +3 -3
- package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +0 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +10 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/Currency.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +78 -0
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +12 -6
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/NumberOfEmployees/NumberOfEmployees.d.ts +1 -1
- package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +2 -2
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -2
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +1 -1
- package/dist/types/components/ui/atoms/Loader/Loader.d.ts +11 -1
- package/dist/types/context/ExperimentContext/types.d.ts +17 -0
- package/dist/types/core/models/api/individual.d.ts +3 -0
- package/dist/types/core/models/api/legal-arrangement.d.ts +3 -0
- package/dist/types/hooks/useForm/types.d.ts +0 -4
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +4 -2
- package/dist/types/hooks/usePageLandedEvent.d.ts +7 -0
- package/dist/types/router/DefaultRouteRedirect.d.ts +8 -0
- package/dist/types/router/MemoryRouterContext.d.ts +9 -0
- package/dist/types/router/OnboardingRouter.d.ts +39 -0
- package/dist/types/router/SuspenseRoute.d.ts +7 -0
- package/dist/types/router/getDefaultTask.d.ts +16 -0
- package/dist/types/router/routeConfig.d.ts +68 -0
- package/dist/types/router/useCurrentTask.d.ts +5 -0
- package/dist/types/router/useNavigate.d.ts +7 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +0 -1
- package/dist/types/utils/formUtils.d.ts +0 -3
- package/dist/types/utils/regex/patternValidators.d.ts +1 -1
- package/dist/types/utils/validatorUtils.d.ts +1 -1
- package/dist/{types-B7eWQV7z.js → types-C8yt1YG2.js} +19 -2
- package/dist/{types-BY62XJTq.js → types-DRTd35hZ.js} +2 -2
- package/dist/{types-pKG9olDB.js → types-DujGXeMG.js} +2 -2
- package/dist/{types-BuMuCpsa.js → types-XpRg7EOC.js} +2 -2
- package/dist/{useAssociatedLegalEntity-V0OP9ejx.js → useAssociatedLegalEntity-DlZrp3qi.js} +2 -2
- package/dist/{useBusinessDetailsData-BsXXL7fg.js → useBusinessDetailsData-gZ8moheH.js} +713 -718
- package/dist/useBusinessLines-BD1Yg8Ja.js +29 -0
- package/dist/useCanSeeIntroduction-BHQYUN_d.js +48 -0
- package/dist/{useCreateLegalEntity-otpCRCfZ.js → useCreateLegalEntity-DjRvxwI5.js} +2 -2
- package/dist/useDataMissingRemediations-KgLqbiZx.js +41 -0
- package/dist/{useDataset-CvATx7EN.js → useDataset-Bafefouf.js} +5 -3
- package/dist/useDeleteTransferInstrument-Cf8rmBGA.js +32 -0
- package/dist/{useForm-9nSw9LZY.js → useForm-Bh638xmS.js} +27 -27
- package/dist/{useFormContext-BnlNKQZ7.js → useFormContext-BilJQsMw.js} +7 -7
- package/dist/{useGlobalData-Dy2O7YGk.js → useGlobalData-DkE5IpZB.js} +2 -2
- package/dist/{useMultiForm-CBefohos.js → useMultiForm-djEDTyaG.js} +45 -36
- package/dist/useNavigate-DE0sTmpX.js +265 -0
- package/dist/{useOnboardingStatus-CJrlnkvv.js → useOnboardingStatus-DhK2qF95.js} +1 -1
- package/dist/usePciQuestionnaireList-DsgAv5Ql.js +29 -0
- package/dist/useSalesChannels-DUTiDcGq.js +65 -0
- package/dist/{useScenarios-CkgrmOF-.js → useScenarios-BxbmDi2R.js} +2 -2
- package/dist/useSetting-DwC0bC4k.js +19 -0
- package/dist/useTaskStatus-Cps0L-Yp.js +51 -0
- package/dist/{useTermsOfServiceStatus-DFLF3xas.js → useTermsOfServiceStatus-COugffxI.js} +1 -1
- package/dist/{useToastContext-uSKjdph9.js → useToastContext-DBDF60Ps.js} +2 -2
- package/dist/useTrustMembers-ymPJMufc.js +163 -0
- package/dist/{useUnincorporatedPartnershipMembers-BmLKVfkf.js → useUnincorporatedPartnershipMembers-ZlPU6E-_.js} +4 -4
- package/dist/{useUpdateBusinessLines-BBNXF45E.js → useUpdateBusinessLines-DfjB9Ur6.js} +4 -4
- package/dist/{useUpdateLegalEntity-DHxCVgNk.js → useUpdateLegalEntity-C8rOYkS1.js} +3 -3
- package/dist/{utils-CLLUBF1a.js → utils-B8oIRKRm.js} +2 -2
- package/dist/{utils-ClKogQZa.js → utils-D1RKmLBo.js} +3 -3
- package/dist/{utils-5yZQq_bx.js → utils-DIBG3Hc5.js} +6 -6
- package/dist/{utils-CIHH_aYF.js → utils-Dd2ry06C.js} +2 -2
- package/dist/{utils-CIIs2bXi.js → utils-_6SITBJE.js} +3 -2
- package/dist/{validate-BntX2W3B.js → validate-B6hMWJ8a.js} +10 -2
- package/dist/{validate-CLYo0JdH.js → validate-jqVPVUI3.js} +3 -3
- package/dist/{validationError-DJ6zTIzv.js → validationError-CsCEpxs1.js} +2 -2
- package/package.json +3 -2
- package/dist/ManageIndividualComponent-CJEqOUgN.js +0 -46
- package/dist/RootBusinessDetailsPage-BsAtLAyF.js +0 -50
- package/dist/SoleProprietorshipPage-zgU4q95D.js +0 -50
- package/dist/TrustMemberCompanyPage-DfXulzKv.js +0 -65
- package/dist/bg-BG-C1maG7_G.js +0 -13
- package/dist/bg-BG-D4k_k98M.js +0 -118
- package/dist/cs-CZ-Dq3xx45p.js +0 -13
- package/dist/cs-CZ-nIWwyOHK.js +0 -118
- package/dist/da-DK-CoqZjIMT.js +0 -13
- package/dist/da-DK-CrtuBoDC.js +0 -118
- package/dist/de-DE-CLMlbqGz.js +0 -13
- package/dist/de-DE-mH3MobT9.js +0 -13
- package/dist/el-GR-BEOd56RY.js +0 -13
- package/dist/el-GR-Ckn_3h1a.js +0 -118
- package/dist/en-US-d4WBvUW7.js +0 -118
- package/dist/es-ES-BnPWZP0s.js +0 -13
- package/dist/es-ES-CnyVffM-.js +0 -118
- package/dist/et-EE-RzdBGxDM.js +0 -118
- package/dist/et-EE-rYc8-Bm2.js +0 -13
- package/dist/fi-FI-CYEjY7DQ.js +0 -13
- package/dist/fi-FI-kXC-0USa.js +0 -118
- package/dist/fr-FR-6YOKsDLQ.js +0 -13
- package/dist/fr-FR-CsJuDM2B.js +0 -13
- package/dist/hr-HR-DMSNClBZ.js +0 -13
- package/dist/hr-HR-fyublN95.js +0 -118
- package/dist/hu-HU-CpJDiSu2.js +0 -118
- package/dist/hu-HU-DQlYtR9y.js +0 -13
- package/dist/it-IT-C9cOsMxY.js +0 -13
- package/dist/it-IT-DyCHFg-b.js +0 -118
- package/dist/ja-JP-NuKpFRZl.js +0 -13
- package/dist/lt-LT-CKE7_7_A.js +0 -118
- package/dist/lt-LT-DPU2ZqVt.js +0 -13
- package/dist/lv-LV-BD8xCiCe.js +0 -13
- package/dist/lv-LV-D4Ik0yoE.js +0 -118
- package/dist/nl-NL-CBnYVFv_.js +0 -13
- package/dist/nl-NL-DkbhmJAw.js +0 -118
- package/dist/no-NO-C690hkyd.js +0 -13
- package/dist/no-NO-Df5qUoTc.js +0 -118
- package/dist/pl-PL-BDclj9dt.js +0 -13
- package/dist/pl-PL-ggZjqXWE.js +0 -118
- package/dist/pt-BR-B4wCnZ06.js +0 -13
- package/dist/pt-BR-BOOm5lRR.js +0 -118
- package/dist/pt-PT-BDfNlThr.js +0 -118
- package/dist/ro-RO-BRngQXgs.js +0 -118
- package/dist/ro-RO-PA9lKU0J.js +0 -13
- package/dist/sk-SK-DmqCF6I9.js +0 -13
- package/dist/sk-SK-y9eb7N6i.js +0 -118
- package/dist/sl-SI-CGvCdquD.js +0 -118
- package/dist/sl-SI-DnT4vnh4.js +0 -13
- package/dist/sv-SE-BP2Oun8l.js +0 -118
- package/dist/sv-SE-DopUU1N2.js +0 -13
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/FinancialInformation.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/ReportedValue.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/types.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/validate.d.ts +0 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "324c8dab-549d-4b52-bd05-eaa614b7bb7f", e._sentryDebugIdIdentifier = "sentry-dbid-324c8dab-549d-4b52-bd05-eaa614b7bb7f");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { matchRoute, useLocation } from "wouter-preact";
|
|
11
|
+
import { lazy } from "preact/compat";
|
|
12
|
+
import { j as TaskTypes } from "./StoreProvider-BL3nK1iO.js";
|
|
13
|
+
const Introduction = lazy(
|
|
14
|
+
async () => (await import("./Introduction-D1Ki78MP.js")).Introduction
|
|
15
|
+
);
|
|
16
|
+
const BusinessTypeSelectionPage = lazy(
|
|
17
|
+
async () => (await import("./BusinessTypeSelectionPage-BamCO_8X.js")).BusinessTypeSelectionPage
|
|
18
|
+
);
|
|
19
|
+
const SingpassSelection = lazy(
|
|
20
|
+
async () => (await import("./SingpassSelection-DE4uUTZo.js")).SingpassSelection
|
|
21
|
+
);
|
|
22
|
+
const AccountSetupRejected = lazy(
|
|
23
|
+
async () => (await import("./AccountSetupRejected-BgPC6a82.js")).AccountSetupRejected
|
|
24
|
+
);
|
|
25
|
+
const DecisionMakers = lazy(
|
|
26
|
+
async () => (await import("./DecisionMakers-Dj2lHuCW.js")).DecisionMakers
|
|
27
|
+
);
|
|
28
|
+
const CustomerSupport = lazy(
|
|
29
|
+
async () => (await import("./CustomerSupport-CZAM9Fzm.js")).CustomerSupport
|
|
30
|
+
);
|
|
31
|
+
const Review = lazy(async () => (await import("./Review-Cj1WCiGQ.js")).Review);
|
|
32
|
+
const SignPCIComponent = lazy(
|
|
33
|
+
async () => (await import("./SignPCIComponent-OxWCtP3x.js")).SignPCIComponent
|
|
34
|
+
);
|
|
35
|
+
const AcceptTermsOfService = lazy(
|
|
36
|
+
async () => (await import("./AcceptTermsOfServiceComponent-DQBTbYHm.js")).AcceptTermsOfServiceComponent
|
|
37
|
+
);
|
|
38
|
+
const TaxReportingDropin = lazy(
|
|
39
|
+
async () => (await import("./TaxReportingDropin-xYD4YqWR.js")).TaxReportingDropin
|
|
40
|
+
);
|
|
41
|
+
const PayoutDetailsPage = lazy(
|
|
42
|
+
async () => (await import("./PayoutDetailsDropin-Cqeomvbg.js").then((n) => n.a)).PayoutDetailsPage
|
|
43
|
+
);
|
|
44
|
+
const RootBusinessDetailsPage = lazy(
|
|
45
|
+
async () => (await import("./RootBusinessDetailsPage-9NXM1XdC.js")).RootBusinessDetailsPage
|
|
46
|
+
);
|
|
47
|
+
const RootBusinessLinesPage = lazy(
|
|
48
|
+
async () => (await import("./RootBusinessLinesPage-YxGXibwW.js")).RootBusinessLinesPage
|
|
49
|
+
);
|
|
50
|
+
const SoleProprietorshipPage = lazy(
|
|
51
|
+
async () => (await import("./SoleProprietorshipPage-BzpFPKOl.js")).SoleProprietorshipPage
|
|
52
|
+
);
|
|
53
|
+
const TrustMemberCompanyPage = lazy(
|
|
54
|
+
async () => (await import("./TrustMemberCompanyPage-WwsnSV7c.js")).TrustMemberCompanyPage
|
|
55
|
+
);
|
|
56
|
+
const TrustMemberIndividualPage = lazy(
|
|
57
|
+
async () => (await import("./TrustMemberIndividualPage-27y1WJMM.js")).TrustMemberIndividualPage
|
|
58
|
+
);
|
|
59
|
+
const TrustMemberRoleAndTypePage = lazy(
|
|
60
|
+
async () => (await import("./TrustMemberRoleAndTypePage-DHCLuLa-.js")).TrustMemberRoleAndTypePage
|
|
61
|
+
);
|
|
62
|
+
const TrustMembersOverview = lazy(
|
|
63
|
+
async () => (await import("./TrustMembersOverview-CqdtBx67.js")).TrustMembersOverview
|
|
64
|
+
);
|
|
65
|
+
const UnincorporatedPartnershipMemberCompanyPage = lazy(
|
|
66
|
+
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-CBw2IY6X.js")).UnincorporatedPartnershipMemberCompanyPage
|
|
67
|
+
);
|
|
68
|
+
const UnincorporatedPartnershipIndividualPage = lazy(
|
|
69
|
+
async () => (await import("./UnincorporatedPartnershipIndividualPage-xOJ-Kusf.js")).UnincorporatedPartnershipIndividualPage
|
|
70
|
+
);
|
|
71
|
+
const UnincorporatedPartnershipMemberRoleAndTypePage = lazy(
|
|
72
|
+
async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-B4fDDHnW.js")).UnincorporatedPartnershipMemberRoleAndTypePage
|
|
73
|
+
);
|
|
74
|
+
const UnincorporatedPartnershipMembersOverview = lazy(
|
|
75
|
+
async () => (await import("./UnincorporatedPartnershipMembersOverview-BrBvKluu.js")).UnincorporatedPartnershipMembersOverview
|
|
76
|
+
);
|
|
77
|
+
const BusinessFinancingPage = lazy(
|
|
78
|
+
async () => (await import("./BusinessFinancingPage-CARcv8Qh.js")).BusinessFinancingPage
|
|
79
|
+
);
|
|
80
|
+
const TrustDetailsPage = lazy(
|
|
81
|
+
async () => (await import("./TrustDetailsPage-JQ-U6HZk.js")).TrustDetailsPage
|
|
82
|
+
);
|
|
83
|
+
const SourceOfFundsPage = lazy(
|
|
84
|
+
async () => (await import("./SourceOfFundsPage-CESAo3kl.js")).SourceOfFundsPage
|
|
85
|
+
);
|
|
86
|
+
const RootIndividualDetailsPage = lazy(
|
|
87
|
+
async () => (await import("./RootIndividualDetailsPage-DX1rjTXN.js")).RootIndividualDetailsPage
|
|
88
|
+
);
|
|
89
|
+
const LegalRepresentativeDetailsPage = lazy(
|
|
90
|
+
async () => (await import("./LegalRepresentativeDetailsPage-B0UoHJQJ.js")).LegalRepresentativeDetailsPage
|
|
91
|
+
);
|
|
92
|
+
const DecisionMakerDetailsPage = lazy(
|
|
93
|
+
async () => (await import("./DecisionMakerDetailsPage-CgEYI6wt.js")).DecisionMakerDetailsPage
|
|
94
|
+
);
|
|
95
|
+
const ROUTE_CONFIG = {
|
|
96
|
+
[TaskTypes.TASKS_OVERVIEW]: { path: "/tasks" },
|
|
97
|
+
[TaskTypes.INTRODUCTION]: { path: "/introduction", Component: Introduction },
|
|
98
|
+
[TaskTypes.BUSINESS_TYPE_SELECTION]: {
|
|
99
|
+
path: "/business-type-selection",
|
|
100
|
+
Component: BusinessTypeSelectionPage
|
|
101
|
+
},
|
|
102
|
+
[TaskTypes.SINGPASS_SELECTION]: { path: "/singpass-selection", Component: SingpassSelection },
|
|
103
|
+
[TaskTypes.INDIVIDUAL]: { path: "/individual", Component: RootIndividualDetailsPage },
|
|
104
|
+
[TaskTypes.BUSINESS_DETAILS]: { path: "/business", Component: RootBusinessDetailsPage },
|
|
105
|
+
[TaskTypes.ACQUIRING_BUSINESS_LINE]: {
|
|
106
|
+
path: "/business-lines",
|
|
107
|
+
Component: RootBusinessLinesPage
|
|
108
|
+
},
|
|
109
|
+
[TaskTypes.DECISION_MAKER_OVERVIEW]: { path: "/decision-makers", Component: DecisionMakers },
|
|
110
|
+
[TaskTypes.DECISION_MAKER]: {
|
|
111
|
+
path: "/decision-maker/:parentId/:decisionMakerId?",
|
|
112
|
+
Component: DecisionMakerDetailsPage
|
|
113
|
+
},
|
|
114
|
+
[TaskTypes.PAYOUT]: { path: "/payout/:transferInstrumentId?", Component: PayoutDetailsPage },
|
|
115
|
+
[TaskTypes.PAYIN]: { path: "/payin/:transferInstrumentId?", Component: PayoutDetailsPage },
|
|
116
|
+
[TaskTypes.SERVICE_AGREEMENT]: { path: "/service-agreement", Component: AcceptTermsOfService },
|
|
117
|
+
[TaskTypes.PCI_DSS]: { path: "/pci-dss", Component: SignPCIComponent },
|
|
118
|
+
[TaskTypes.REVIEW]: { path: "/review", Component: Review },
|
|
119
|
+
[TaskTypes.CUSTOMER_SUPPORT]: { path: "/customer-support", Component: CustomerSupport },
|
|
120
|
+
[TaskTypes.CAPABILITY_REJECTED]: {
|
|
121
|
+
path: "/capability-rejected",
|
|
122
|
+
Component: AccountSetupRejected
|
|
123
|
+
},
|
|
124
|
+
[TaskTypes.LEGAL_REPRESENTATIVE_DETAILS]: {
|
|
125
|
+
path: "/legal-representative",
|
|
126
|
+
Component: LegalRepresentativeDetailsPage
|
|
127
|
+
},
|
|
128
|
+
[TaskTypes.SOURCE_OF_FUNDS]: { path: "/source-of-funds", Component: SourceOfFundsPage },
|
|
129
|
+
[TaskTypes.BUSINESS_FINANCING]: { path: "/business-financing", Component: BusinessFinancingPage },
|
|
130
|
+
[TaskTypes.TAX_REPORTING]: { path: "/tax-reporting", Component: TaxReportingDropin },
|
|
131
|
+
[TaskTypes.SOLE_PROPRIETOR_COMPANY]: {
|
|
132
|
+
path: "/sole-proprietor",
|
|
133
|
+
Component: SoleProprietorshipPage
|
|
134
|
+
},
|
|
135
|
+
[TaskTypes.TRUST]: { path: "/trust", Component: TrustDetailsPage },
|
|
136
|
+
[TaskTypes.TRUST_MEMBER]: { path: "/trust/member" },
|
|
137
|
+
[TaskTypes.TRUST_MEMBER_OVERVIEW]: { path: "/trust/members", Component: TrustMembersOverview },
|
|
138
|
+
[TaskTypes.TRUST_MEMBER_ROLE_AND_TYPE]: {
|
|
139
|
+
path: "/trust/member/role-and-type/:memberId?",
|
|
140
|
+
Component: TrustMemberRoleAndTypePage
|
|
141
|
+
},
|
|
142
|
+
[TaskTypes.TRUST_MEMBER_INDIVIDUAL]: {
|
|
143
|
+
path: "/trust/member/:memberId/individual",
|
|
144
|
+
Component: TrustMemberIndividualPage
|
|
145
|
+
},
|
|
146
|
+
[TaskTypes.TRUST_MEMBER_COMPANY]: {
|
|
147
|
+
path: "/trust/member/:memberId/company",
|
|
148
|
+
Component: TrustMemberCompanyPage
|
|
149
|
+
},
|
|
150
|
+
[TaskTypes.TRUST_MEMBER_COMPANY_OWNER]: {
|
|
151
|
+
path: "/trust/member/:memberId/company-owner/:parentId/:decisionMakerId?",
|
|
152
|
+
Component: DecisionMakerDetailsPage
|
|
153
|
+
},
|
|
154
|
+
[TaskTypes.UNINCORPORATED_PARTNERSHIP]: {
|
|
155
|
+
path: "/partnership",
|
|
156
|
+
Component: TrustDetailsPage
|
|
157
|
+
},
|
|
158
|
+
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW]: {
|
|
159
|
+
path: "/partnership/members",
|
|
160
|
+
Component: UnincorporatedPartnershipMembersOverview
|
|
161
|
+
},
|
|
162
|
+
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE]: {
|
|
163
|
+
path: "/partnership/member/role-and-type/:memberId?",
|
|
164
|
+
Component: UnincorporatedPartnershipMemberRoleAndTypePage
|
|
165
|
+
},
|
|
166
|
+
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL]: {
|
|
167
|
+
path: "/partnership/member/:memberId/individual",
|
|
168
|
+
Component: UnincorporatedPartnershipIndividualPage
|
|
169
|
+
},
|
|
170
|
+
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY]: {
|
|
171
|
+
path: "/partnership/member/:memberId/company",
|
|
172
|
+
Component: UnincorporatedPartnershipMemberCompanyPage
|
|
173
|
+
},
|
|
174
|
+
[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER]: {
|
|
175
|
+
path: "/partnership/member/:memberId/company-owner/:parentId/:decisionMakerId?",
|
|
176
|
+
Component: DecisionMakerDetailsPage
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
const ROUTE_PATHS = Object.fromEntries(
|
|
180
|
+
Object.entries(ROUTE_CONFIG).map(([key, entry]) => [key, entry.path])
|
|
181
|
+
);
|
|
182
|
+
const buildPath = (task, params) => {
|
|
183
|
+
const routePath = ROUTE_PATHS[task];
|
|
184
|
+
const segments = routePath.split("/").filter(Boolean);
|
|
185
|
+
const built = segments.map((seg) => {
|
|
186
|
+
const isOptional = seg.endsWith("?");
|
|
187
|
+
const isParam = seg.startsWith(":");
|
|
188
|
+
if (!isParam) return seg;
|
|
189
|
+
const paramName = seg.slice(1, isOptional ? -1 : void 0);
|
|
190
|
+
const value = params?.[paramName];
|
|
191
|
+
if (!value && isOptional) return null;
|
|
192
|
+
if (!value) throw new Error(`Missing required param "${paramName}" for route "${task}"`);
|
|
193
|
+
return value;
|
|
194
|
+
}).filter((s) => s !== null);
|
|
195
|
+
return "/" + built.join("/");
|
|
196
|
+
};
|
|
197
|
+
const detectBasePath = (parser, pathname = window.location.pathname) => {
|
|
198
|
+
const pathSegments = pathname.split("/").filter(Boolean);
|
|
199
|
+
const sortedRoutes = Object.values(ROUTE_PATHS).sort(
|
|
200
|
+
(a, b) => b.split("/").filter(Boolean).length - a.split("/").filter(Boolean).length
|
|
201
|
+
);
|
|
202
|
+
for (let i = 0; i < pathSegments.length; i++) {
|
|
203
|
+
const candidatePath = "/" + pathSegments.slice(i).join("/");
|
|
204
|
+
for (const routePath of sortedRoutes) {
|
|
205
|
+
const [match] = matchRoute(parser, routePath, candidatePath);
|
|
206
|
+
if (match) {
|
|
207
|
+
const baseSegments = pathSegments.slice(0, i);
|
|
208
|
+
return baseSegments.length > 0 ? "/" + baseSegments.join("/") : "/";
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
const trimmed = pathname.endsWith("/") ? pathname.slice(0, -1) : pathname;
|
|
213
|
+
return trimmed || "/";
|
|
214
|
+
};
|
|
215
|
+
const useNavigate = () => {
|
|
216
|
+
const [, setLocation] = useLocation();
|
|
217
|
+
const withSearch = (path) => path + window.location.search;
|
|
218
|
+
const to = (task, params) => {
|
|
219
|
+
if (task === "default") {
|
|
220
|
+
setLocation(withSearch("/"));
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
setLocation(withSearch(buildPath(task, params)));
|
|
224
|
+
};
|
|
225
|
+
const back = (stepCount = 1) => {
|
|
226
|
+
window.history.go(-stepCount);
|
|
227
|
+
};
|
|
228
|
+
const replace = (task, params) => {
|
|
229
|
+
setLocation(withSearch(buildPath(task, params)), { replace: true });
|
|
230
|
+
};
|
|
231
|
+
return { to, back, replace };
|
|
232
|
+
};
|
|
233
|
+
export {
|
|
234
|
+
AccountSetupRejected as A,
|
|
235
|
+
BusinessTypeSelectionPage as B,
|
|
236
|
+
CustomerSupport as C,
|
|
237
|
+
DecisionMakers as D,
|
|
238
|
+
Introduction as I,
|
|
239
|
+
LegalRepresentativeDetailsPage as L,
|
|
240
|
+
PayoutDetailsPage as P,
|
|
241
|
+
ROUTE_PATHS as R,
|
|
242
|
+
SingpassSelection as S,
|
|
243
|
+
TrustMembersOverview as T,
|
|
244
|
+
UnincorporatedPartnershipMembersOverview as U,
|
|
245
|
+
RootIndividualDetailsPage as a,
|
|
246
|
+
RootBusinessDetailsPage as b,
|
|
247
|
+
Review as c,
|
|
248
|
+
DecisionMakerDetailsPage as d,
|
|
249
|
+
TrustMemberRoleAndTypePage as e,
|
|
250
|
+
TrustMemberIndividualPage as f,
|
|
251
|
+
TrustMemberCompanyPage as g,
|
|
252
|
+
TrustDetailsPage as h,
|
|
253
|
+
UnincorporatedPartnershipMemberRoleAndTypePage as i,
|
|
254
|
+
UnincorporatedPartnershipIndividualPage as j,
|
|
255
|
+
UnincorporatedPartnershipMemberCompanyPage as k,
|
|
256
|
+
SignPCIComponent as l,
|
|
257
|
+
SoleProprietorshipPage as m,
|
|
258
|
+
AcceptTermsOfService as n,
|
|
259
|
+
SourceOfFundsPage as o,
|
|
260
|
+
BusinessFinancingPage as p,
|
|
261
|
+
TaxReportingDropin as q,
|
|
262
|
+
RootBusinessLinesPage as r,
|
|
263
|
+
detectBasePath as s,
|
|
264
|
+
useNavigate as u
|
|
265
|
+
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, k as httpGet } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, k as httpGet } from "./StoreProvider-BL3nK1iO.js";
|
|
12
12
|
const getOnboardingStatus = async (legalEntityId, baseUrl) => {
|
|
13
13
|
return httpGet({
|
|
14
14
|
baseUrl,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "eb3e49da-9999-40d6-9020-545a4e3401ce", e._sentryDebugIdIdentifier = "sentry-dbid-eb3e49da-9999-40d6-9020-545a4e3401ce");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
+
import { b as useApiContext, k as httpGet } from "./StoreProvider-BL3nK1iO.js";
|
|
12
|
+
const getPciQuestionnaireList = async (legalEntityId, baseUrl) => {
|
|
13
|
+
return httpGet({
|
|
14
|
+
baseUrl,
|
|
15
|
+
path: `legalEntities/${legalEntityId}/pci/questionnaires`
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
const usePciQuestionnaireList = (options) => {
|
|
19
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
20
|
+
return useQuery({
|
|
21
|
+
queryKey: ["pciQuestionnaireList"],
|
|
22
|
+
queryFn: () => getPciQuestionnaireList(rootLegalEntityId.value, baseUrl.value),
|
|
23
|
+
...options
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
getPciQuestionnaireList as g,
|
|
28
|
+
usePciQuestionnaireList as u
|
|
29
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "ea0b0020-c2a2-4f82-b873-0d44c11f6d82", e._sentryDebugIdIdentifier = "sentry-dbid-ea0b0020-c2a2-4f82-b873-0d44c11f6d82");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
+
import { b as useApiContext, $ as httpPost, B as useSettingsContext } from "./StoreProvider-BL3nK1iO.js";
|
|
12
|
+
import { useMemo } from "preact/hooks";
|
|
13
|
+
import { u as useBusinessLines } from "./useBusinessLines-BD1Yg8Ja.js";
|
|
14
|
+
import { S as SettingNames } from "./TaskVerificationStatus-ycoS73dK.js";
|
|
15
|
+
const getPciStatus = async (legalEntityId, baseUrl, data) => {
|
|
16
|
+
const filteredData = {
|
|
17
|
+
...data,
|
|
18
|
+
additionalSalesChannels: data.additionalSalesChannels?.filter(
|
|
19
|
+
(channel) => channel !== "payByLink"
|
|
20
|
+
)
|
|
21
|
+
};
|
|
22
|
+
return httpPost(
|
|
23
|
+
{
|
|
24
|
+
baseUrl,
|
|
25
|
+
path: `legalEntities/${legalEntityId}/pci/signingRequired`
|
|
26
|
+
},
|
|
27
|
+
filteredData
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
const usePciStatus = (data, options) => {
|
|
31
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
32
|
+
return useQuery({
|
|
33
|
+
queryKey: ["pciStatus", data],
|
|
34
|
+
queryFn: () => getPciStatus(rootLegalEntityId.value, baseUrl.value, data),
|
|
35
|
+
staleTime: 0,
|
|
36
|
+
...options
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
function useSalesChannels() {
|
|
40
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
41
|
+
const { data: existingBusinessLines } = useBusinessLines(["paymentProcessing"]);
|
|
42
|
+
return useMemo(() => {
|
|
43
|
+
const settings = [];
|
|
44
|
+
const businessLinesSalesChannels = [
|
|
45
|
+
...new Set(existingBusinessLines?.flatMap((item) => item.salesChannels ?? []))
|
|
46
|
+
];
|
|
47
|
+
if (isSettingEnabled(SettingNames.RequirePciSignEcommerce)) {
|
|
48
|
+
settings.push("eCommerce");
|
|
49
|
+
}
|
|
50
|
+
if (isSettingEnabled(SettingNames.RequirePciSignPos)) {
|
|
51
|
+
settings.push("pos");
|
|
52
|
+
}
|
|
53
|
+
if (isSettingEnabled(SettingNames.RequirePciSignEcomMoto)) {
|
|
54
|
+
settings.push("ecomMoto");
|
|
55
|
+
}
|
|
56
|
+
if (isSettingEnabled(SettingNames.RequirePciSignPosMoto)) {
|
|
57
|
+
settings.push("posMoto");
|
|
58
|
+
}
|
|
59
|
+
return isSettingEnabled("allowBusinessLines") ? businessLinesSalesChannels : settings;
|
|
60
|
+
}, [existingBusinessLines, isSettingEnabled]);
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
usePciStatus as a,
|
|
64
|
+
useSalesChannels as u
|
|
65
|
+
};
|
|
@@ -2,13 +2,13 @@
|
|
|
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] = "688d85b7-1082-4364-a70a-cb566cc8e437", e._sentryDebugIdIdentifier = "sentry-dbid-688d85b7-1082-4364-a70a-cb566cc8e437");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery, skipToken } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext,
|
|
11
|
+
import { b as useApiContext, ad as entriesOf, ay as Scenarios, k as httpGet } from "./StoreProvider-BL3nK1iO.js";
|
|
12
12
|
const getScenarios = async (legalEntityId, baseUrl, legalEntityType, countryCode) => {
|
|
13
13
|
const scenarioParams = new URLSearchParams({
|
|
14
14
|
countryCode,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "88e83ebf-8d7e-40ed-ad66-d90e2848a57c", e._sentryDebugIdIdentifier = "sentry-dbid-88e83ebf-8d7e-40ed-ad66-d90e2848a57c");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { useContext } from "preact/hooks";
|
|
11
|
+
import { bi as SettingsContext } from "./StoreProvider-BL3nK1iO.js";
|
|
12
|
+
const useSetting = (settingName) => {
|
|
13
|
+
const context = useContext(SettingsContext);
|
|
14
|
+
const { getSetting } = context;
|
|
15
|
+
return getSetting(settingName);
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
useSetting as u
|
|
19
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "0ed34ccb-7d96-44b8-9b77-34fbd41baa9e", e._sentryDebugIdIdentifier = "sentry-dbid-0ed34ccb-7d96-44b8-9b77-34fbd41baa9e");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
+
import { q as TaskStatuses, a3 as createLogger, b as useApiContext, k as httpGet } from "./StoreProvider-BL3nK1iO.js";
|
|
12
|
+
const logger = createLogger();
|
|
13
|
+
const normalizeTaskStatuses = (taskStatuses) => {
|
|
14
|
+
return taskStatuses?.statuses?.reduce((acc, currentTask) => {
|
|
15
|
+
const status = TaskStatuses[currentTask.status];
|
|
16
|
+
const statusEntries = currentTask.taskStatusEntries;
|
|
17
|
+
acc[currentTask.type] = {
|
|
18
|
+
status: status ?? TaskStatuses.DETAILS_REQUIRED,
|
|
19
|
+
taskStatusEntries: statusEntries
|
|
20
|
+
};
|
|
21
|
+
return acc;
|
|
22
|
+
}, {});
|
|
23
|
+
};
|
|
24
|
+
const getAccountTaskStatus = (accountId, payinPayoutTaskStatus) => {
|
|
25
|
+
const taskStatusEntries = payinPayoutTaskStatus?.taskStatusEntries;
|
|
26
|
+
const taskStatusEntry = taskStatusEntries?.find((entry) => entry.id.includes(accountId));
|
|
27
|
+
if (!taskStatusEntry) {
|
|
28
|
+
logger.warn(`No task status for this account: ${accountId}`);
|
|
29
|
+
return payinPayoutTaskStatus?.status ?? TaskStatuses.PROCESSING;
|
|
30
|
+
}
|
|
31
|
+
return TaskStatuses[taskStatusEntry.status];
|
|
32
|
+
};
|
|
33
|
+
const getTaskStatus = async (legalEntityId, baseUrl) => {
|
|
34
|
+
return httpGet({
|
|
35
|
+
baseUrl,
|
|
36
|
+
path: `legalEntities/${legalEntityId}/taskStatus`
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
const useTaskStatus = (options) => {
|
|
40
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
41
|
+
return useQuery({
|
|
42
|
+
queryKey: ["taskStatus"],
|
|
43
|
+
queryFn: () => getTaskStatus(rootLegalEntityId.value, baseUrl.value),
|
|
44
|
+
select: (data) => normalizeTaskStatuses(data),
|
|
45
|
+
...options
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
getAccountTaskStatus as g,
|
|
50
|
+
useTaskStatus as u
|
|
51
|
+
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, k as httpGet } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, k as httpGet } from "./StoreProvider-BL3nK1iO.js";
|
|
12
12
|
const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
|
|
13
13
|
return httpGet({
|
|
14
14
|
baseUrl,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e6f9ba7a-1bf8-4e1f-97d8-0224dd9cc0f6", e._sentryDebugIdIdentifier = "sentry-dbid-e6f9ba7a-1bf8-4e1f-97d8-0224dd9cc0f6");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQueryClient } from "@tanstack/preact-query";
|
|
11
11
|
import { useCallback, useContext } from "preact/hooks";
|
|
12
|
-
import {
|
|
12
|
+
import { a3 as createLogger, b as useApiContext, af as ToastContext } from "./StoreProvider-BL3nK1iO.js";
|
|
13
13
|
const logger = createLogger();
|
|
14
14
|
const QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED = [
|
|
15
15
|
"businessLines",
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "aa050a7c-c33f-4f62-aaed-4cf7759360e0", e._sentryDebugIdIdentifier = "sentry-dbid-aa050a7c-c33f-4f62-aaed-4cf7759360e0");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { useMemo } from "preact/hooks";
|
|
11
|
+
import { aa as getOwnEntityAssociations, bn as TrustMemberTypes, c as useLegalEntity, o as LegalEntityTypes, R as ROOT_LE, v as useExperimentsContext } from "./StoreProvider-BL3nK1iO.js";
|
|
12
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-DlZrp3qi.js";
|
|
13
|
+
import { skipToken } from "@tanstack/preact-query";
|
|
14
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-C1AIqAns.js";
|
|
15
|
+
const useExemptSettlor = ({
|
|
16
|
+
trust
|
|
17
|
+
}) => {
|
|
18
|
+
const matchingAssociation = useMemo(() => {
|
|
19
|
+
if (!trust) return void 0;
|
|
20
|
+
return getOwnEntityAssociations(trust).find(
|
|
21
|
+
(association) => association.type === TrustMemberTypes.SETTLOR && Boolean(association.settlorExemptionReason)
|
|
22
|
+
);
|
|
23
|
+
}, [trust]);
|
|
24
|
+
const { data } = useLegalEntity(matchingAssociation?.legalEntityId ?? skipToken);
|
|
25
|
+
return data;
|
|
26
|
+
};
|
|
27
|
+
const splitAtFirstOccurrence = (str, separator) => {
|
|
28
|
+
const firstOccurrence = str.indexOf(separator);
|
|
29
|
+
if (firstOccurrence === -1) return [str];
|
|
30
|
+
return [str.slice(0, firstOccurrence), str.slice(firstOccurrence + 1)];
|
|
31
|
+
};
|
|
32
|
+
const getTrustMemberOwnerId = (trustMemberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === trustMemberId)?.legalEntityId;
|
|
33
|
+
const getFallbackName = (exemptSettlorAssociation) => {
|
|
34
|
+
const [firstName, lastName] = splitAtFirstOccurrence(exemptSettlorAssociation.name ?? "", " ");
|
|
35
|
+
return {
|
|
36
|
+
firstName,
|
|
37
|
+
lastName
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
const convertEntityAssociationIntoTrustMember = (association, associations, exemptSettlorLE) => {
|
|
41
|
+
if (association.settlorExemptionReason) {
|
|
42
|
+
return {
|
|
43
|
+
trustMemberType: "exemptSettlor",
|
|
44
|
+
roles: [TrustMemberTypes.SETTLOR],
|
|
45
|
+
legalEntityType: association.entityType,
|
|
46
|
+
legalEntityId: association.legalEntityId,
|
|
47
|
+
settlorExemptionReason: association.settlorExemptionReason,
|
|
48
|
+
exemptSettlorName: association.entityType === LegalEntityTypes.INDIVIDUAL ? exemptSettlorLE?.individual?.name ?? getFallbackName(association) : void 0,
|
|
49
|
+
name: association.name
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
if (association.entityType === LegalEntityTypes.ORGANIZATION)
|
|
53
|
+
return {
|
|
54
|
+
trustMemberType: "company",
|
|
55
|
+
roles: [],
|
|
56
|
+
legalEntityType: LegalEntityTypes.ORGANIZATION,
|
|
57
|
+
legalEntityId: association.legalEntityId,
|
|
58
|
+
name: association.name,
|
|
59
|
+
ownerId: getTrustMemberOwnerId(association.legalEntityId, associations)
|
|
60
|
+
};
|
|
61
|
+
if (association.entityType === LegalEntityTypes.INDIVIDUAL)
|
|
62
|
+
return {
|
|
63
|
+
trustMemberType: "regular",
|
|
64
|
+
roles: [],
|
|
65
|
+
legalEntityType: LegalEntityTypes.INDIVIDUAL,
|
|
66
|
+
legalEntityId: association.legalEntityId,
|
|
67
|
+
name: association.name
|
|
68
|
+
};
|
|
69
|
+
throw new Error(`Not a valid trust member: ${JSON.stringify(association)}`);
|
|
70
|
+
};
|
|
71
|
+
const mapEntityAssociationsToTrustMembers = (trustEntityId, entityAssociations, exemptSettlorLE) => {
|
|
72
|
+
const mappedTrustMembers = entityAssociations.reduce(
|
|
73
|
+
(acc, entityAssociation) => {
|
|
74
|
+
if (!Object.values(TrustMemberTypes).includes(entityAssociation.type) || entityAssociation.associatorId !== trustEntityId || !entityAssociation.legalEntityId) {
|
|
75
|
+
return acc;
|
|
76
|
+
}
|
|
77
|
+
const trustMember = acc[entityAssociation.legalEntityId] ?? convertEntityAssociationIntoTrustMember(
|
|
78
|
+
entityAssociation,
|
|
79
|
+
entityAssociations,
|
|
80
|
+
exemptSettlorLE
|
|
81
|
+
);
|
|
82
|
+
const trustMemberType = entityAssociation.type;
|
|
83
|
+
acc[entityAssociation.legalEntityId] = {
|
|
84
|
+
...trustMember,
|
|
85
|
+
roles: [.../* @__PURE__ */ new Set([...trustMember.roles, trustMemberType])]
|
|
86
|
+
};
|
|
87
|
+
return acc;
|
|
88
|
+
},
|
|
89
|
+
{}
|
|
90
|
+
);
|
|
91
|
+
return Object.values(mappedTrustMembers);
|
|
92
|
+
};
|
|
93
|
+
const mapRootLegalEntityToTrustMember = (rootLegalEntity) => ({
|
|
94
|
+
trustMemberType: "rootTrustee",
|
|
95
|
+
roles: [TrustMemberTypes.TRUSTEE],
|
|
96
|
+
legalEntityType: rootLegalEntity.type,
|
|
97
|
+
legalEntityId: rootLegalEntity.id,
|
|
98
|
+
name: getLegalEntityNameBasedOnType(rootLegalEntity)
|
|
99
|
+
});
|
|
100
|
+
const mapUndefinedBeneficiaryInfoToTrustMembers = (undefinedBeneficiaryInfo) => undefinedBeneficiaryInfo.map(({ reference, description }) => ({
|
|
101
|
+
trustMemberType: "undefinedBeneficiary",
|
|
102
|
+
roles: [TrustMemberTypes.UNDEFINED_BENEFICIARY],
|
|
103
|
+
reference,
|
|
104
|
+
description
|
|
105
|
+
}));
|
|
106
|
+
const getTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) => [
|
|
107
|
+
mapRootLegalEntityToTrustMember(rootLegalEntity),
|
|
108
|
+
...mapEntityAssociationsToTrustMembers(
|
|
109
|
+
trustLE.id,
|
|
110
|
+
trustLE.entityAssociations ?? [],
|
|
111
|
+
exemptSettlorLE
|
|
112
|
+
),
|
|
113
|
+
...mapUndefinedBeneficiaryInfoToTrustMembers(trustLE.trust?.undefinedBeneficiaryInfo ?? [])
|
|
114
|
+
];
|
|
115
|
+
const combineRootLegalEntityWithEntityAssociations = (rootLegalEntity, entityAssociations) => {
|
|
116
|
+
const allowedRolesForRootLegalEntity = [
|
|
117
|
+
TrustMemberTypes.SETTLOR,
|
|
118
|
+
TrustMemberTypes.PROTECTOR,
|
|
119
|
+
TrustMemberTypes.DEFINED_BENEFICIARY
|
|
120
|
+
];
|
|
121
|
+
const roles = entityAssociations.map((entityAssociation) => entityAssociation.type).filter((role) => allowedRolesForRootLegalEntity.includes(role));
|
|
122
|
+
return {
|
|
123
|
+
trustMemberType: "rootTrustee",
|
|
124
|
+
roles: [...roles, TrustMemberTypes.TRUSTEE],
|
|
125
|
+
legalEntityType: rootLegalEntity.type,
|
|
126
|
+
legalEntityId: rootLegalEntity.id,
|
|
127
|
+
name: getLegalEntityNameBasedOnType(rootLegalEntity)
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
const getRootTrusteeTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) => {
|
|
131
|
+
const entityAssociations = trustLE.entityAssociations ?? [];
|
|
132
|
+
const rootLegalEntityAssociations = entityAssociations.filter(
|
|
133
|
+
(a) => a.legalEntityId === rootLegalEntity.id
|
|
134
|
+
);
|
|
135
|
+
const nonRootLegalEntityAssociations = entityAssociations.filter(
|
|
136
|
+
(a) => a.legalEntityId !== rootLegalEntity.id
|
|
137
|
+
);
|
|
138
|
+
return [
|
|
139
|
+
combineRootLegalEntityWithEntityAssociations(rootLegalEntity, rootLegalEntityAssociations),
|
|
140
|
+
...mapEntityAssociationsToTrustMembers(
|
|
141
|
+
trustLE.id,
|
|
142
|
+
nonRootLegalEntityAssociations ?? [],
|
|
143
|
+
exemptSettlorLE
|
|
144
|
+
),
|
|
145
|
+
...mapUndefinedBeneficiaryInfoToTrustMembers(trustLE.trust?.undefinedBeneficiaryInfo ?? [])
|
|
146
|
+
];
|
|
147
|
+
};
|
|
148
|
+
function useTrustMembers() {
|
|
149
|
+
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
150
|
+
const { data: trust } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.TRUST);
|
|
151
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
152
|
+
const exemptSettlor = useExemptSettlor({
|
|
153
|
+
trust
|
|
154
|
+
});
|
|
155
|
+
const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
|
|
156
|
+
return useMemo(() => {
|
|
157
|
+
if (!rootLegalEntity || !trust?.trust) return [];
|
|
158
|
+
return allowMoreRolesForMainRootTrustee ? getRootTrusteeTrustMembers(trust, rootLegalEntity, exemptSettlor) : getTrustMembers(trust, rootLegalEntity, exemptSettlor);
|
|
159
|
+
}, [rootLegalEntity, trust, exemptSettlor, allowMoreRolesForMainRootTrustee]);
|
|
160
|
+
}
|
|
161
|
+
export {
|
|
162
|
+
useTrustMembers as u
|
|
163
|
+
};
|
|
@@ -2,16 +2,16 @@
|
|
|
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] = "07b9650b-7e50-4778-8f2d-ad4adfacb9f2", e._sentryDebugIdIdentifier = "sentry-dbid-07b9650b-7e50-4778-8f2d-ad4adfacb9f2");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
|
-
import {
|
|
12
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
11
|
+
import { o as LegalEntityTypes, aa as getOwnEntityAssociations, c as useLegalEntity, R as ROOT_LE } from "./StoreProvider-BL3nK1iO.js";
|
|
12
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-DlZrp3qi.js";
|
|
13
13
|
import { U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-MeN1dp53.js";
|
|
14
|
-
import { g as getLegalEntityNameBasedOnType } from "./getName-
|
|
14
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-C1AIqAns.js";
|
|
15
15
|
const getMemberOwnerId = (memberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === memberId)?.legalEntityId;
|
|
16
16
|
const convertEntityAssociationIntoUnincorporatedPartnershipMember = (association) => {
|
|
17
17
|
if (association.entityType === LegalEntityTypes.INDIVIDUAL || association.entityType === LegalEntityTypes.ORGANIZATION)
|