@adyen/kyc-components 4.0.0-compact.3 → 4.0.0-compact.7
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/4-people-BtDi7O9A.js +24 -0
- package/dist/AcceptTermsOfServiceComponent-BFqDontt.js +650 -0
- package/dist/Accordion-B2vSnESS.js +88 -0
- package/dist/AccountSetupRejected-f8rcBzZj.js +26 -0
- package/dist/ActionBar-CijauUSe.js +31 -0
- package/dist/Address-Bj7zJ6yZ.js +1112 -0
- package/dist/Alert-CFmX9yNV.js +169 -0
- package/dist/Avatar-DWU7t_0U.js +60 -0
- package/dist/BusinessFinancingComponent-_DvatBRp.js +55 -0
- package/dist/BusinessFinancingDropin-BuATaIOz.js +2235 -0
- package/dist/BusinessFinancingPage-Bpu78Ynn.js +43 -0
- package/dist/BusinessTypeSelectionPage-gsT7g7u8.js +446 -0
- package/dist/Card-OQuFzmxm.js +90 -0
- package/dist/Checkbox-5Sc5pzsh.js +74 -0
- package/dist/Confirm-C0J_JwMM.js +64 -0
- package/dist/ConstitutionalDocument-Bw5T0g5Q.js +2361 -0
- package/dist/ContactDetails-CXTim9KR.js +396 -0
- package/dist/ContextGuidance-074d6FWy.js +34 -0
- package/dist/ContractViewer-DcQHIGMU.js +935 -0
- package/dist/CountryField-DxZlK1rV.js +66 -0
- package/dist/CreateIndividualComponent-BppUrKMC.js +65 -0
- package/dist/CreateTransferInstrumentComponent-Cl2NOJb6.js +56 -0
- package/dist/Currency-CIgj9KwH.js +238 -0
- package/dist/CustomerSupport-UenL9SqQ.js +156 -0
- package/dist/DebugModal-KXKodU9u.js +416 -0
- package/dist/DecisionMakerDetailsPage-Xwe1qYtH.js +104 -0
- package/dist/DecisionMakers-CJDodZSl.js +858 -0
- package/dist/Dropzone-kpihpy7N.js +224 -0
- package/dist/EmbeddedStatus-BJjPDUeS.js +97 -0
- package/dist/EndStateLayout-Cx1NUGVq.js +71 -0
- package/dist/EntityAssociation-BtQeHZOq.js +178 -0
- package/dist/EntityGuidanceStatus-DyMVy3R4.js +106 -0
- package/dist/ErrorPanel-CAALFKmE.js +194 -0
- package/dist/Field-Bs7wGDqk.js +141 -0
- package/dist/FormNavigation-BtSvWPRY.js +144 -0
- package/dist/FormWrapper-B3N3YosC.js +135 -0
- package/dist/Header-vslG1ugE.js +83 -0
- package/dist/Image-CAucF9wz.js +27 -0
- package/dist/Individual.rules-CP2tzjmO.js +383 -0
- package/dist/IndividualDropin-xfXkDkrM.js +5168 -0
- package/dist/InputDate-CLxqciJA.js +43 -0
- package/dist/InputGroup-WBfGDV5F.js +32 -0
- package/dist/InputText-BdCbTzL9.js +134 -0
- package/dist/Introduction-BRWdnVv5.js +256 -0
- package/dist/JpAddress-BSEenMj0.js +329 -0
- package/dist/LandingLayout-kl7TkBGx.js +60 -0
- package/dist/LegalCompanyNameField-DzAxAnD9.js +138 -0
- package/dist/LegalRepresentativeDetailsPage--yY_D66i.js +55 -0
- package/dist/Link-CXYU8cLY.js +35 -0
- package/dist/List-BAzyC6sw.js +83 -0
- package/dist/ListItem-HD5_HiQ2.js +69 -0
- package/dist/LoaderWrapper-C2PvjjQc.js +42 -0
- package/dist/ManageIndividualComponent-BGaAbJjj.js +46 -0
- package/dist/ManageTermsOfServiceComponent-DFjaajE4.js +52 -0
- package/dist/ManageTransferInstrumentComponent-Dndkwh_d.js +292 -0
- package/dist/MaskedInput-BSW18fxr.js +811 -0
- package/dist/MaybeModal-xIjl3I31.js +36 -0
- package/dist/Modal-CZ-HuGUO.js +147 -0
- package/dist/Name-D6EhveoK.js +81 -0
- package/dist/OnboardingDropinComponent-CHtcVTHh.js +2672 -0
- package/dist/PayoutDetailsDropin-C2pNMAZS.js +4978 -0
- package/dist/Radio-BMtxBpnn.js +39 -0
- package/dist/RadioGroup-CxcIXYzs.js +100 -0
- package/dist/RadioGroupCard-Y214QWmQ.js +152 -0
- package/dist/Review-B2NCN4h_.js +84 -0
- package/dist/RootBusinessDetailsPage-hr5fLCIH.js +50 -0
- package/dist/RootBusinessLinesPage-DSna9haW.js +1553 -0
- package/dist/RootIndividualDetailsPage-BItguz9n.js +62 -0
- package/dist/Select-DaCJsYNl.js +868 -0
- package/dist/SignPCIComponent-C2YjBxQM.js +307 -0
- package/dist/SingpassSelection-B3ozCH9I.js +132 -0
- package/dist/SoleProprietorshipPage-DIzzhgjr.js +50 -0
- package/dist/SourceOfFundsPage-C3kXyE7G.js +2162 -0
- package/dist/Spacer-BK3jDget.js +18 -0
- package/dist/StepProgressIndicator-BSGlNU3K.js +78 -0
- package/dist/StoreProvider-99-ewU62.js +4793 -0
- package/dist/StructuredList-CVMZBzwq.js +61 -0
- package/dist/Summary-D0GcSMNn.js +220 -0
- package/dist/TaskVerificationStatus-DZIw2ztV.js +129 -0
- package/dist/TaxInformationField-BxQvx1zK.js +3741 -0
- package/dist/TaxReportingDropin-BqvAQH2c.js +503 -0
- package/dist/TextArea-BjsWgkR-.js +103 -0
- package/dist/TileGroup-C-5-VREz.js +203 -0
- package/dist/TrustDetailsPage-YROGiuFJ.js +2172 -0
- package/dist/TrustMemberCompanyPage-Z2EuqPEI.js +68 -0
- package/dist/TrustMemberIndividualPage-DmNp3D89.js +64 -0
- package/dist/TrustMemberRoleAndTypePage-BEOtdItr.js +1087 -0
- package/dist/TrustMembersOverview-GybHMIEU.js +439 -0
- package/dist/UnincorporatedPartnershipIndividualPage-BCYxSTlv.js +63 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-Buez4OHl.js +71 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-Cfpe0BuU.js +292 -0
- package/dist/UnincorporatedPartnershipMembersOverview-B3Vi088r.js +173 -0
- package/dist/VerificationErrorAlert-C6_ewC7c.js +60 -0
- package/dist/ViewVerificationStatusComponent-DpA4jlct.js +181 -0
- package/dist/accountHolderUtils-Btu9mMnM.js +66 -0
- package/dist/adyen-business-financing.js +8 -4
- package/dist/adyen-individual-configuration.js +8 -4
- package/dist/adyen-individual-status.js +5 -4
- package/dist/adyen-invited-decision-maker.js +87 -0
- package/dist/adyen-kyc-components.js +23 -21
- package/dist/adyen-onboarding.js +8 -4
- package/dist/adyen-terms-of-service-management.js +8 -4
- package/dist/adyen-terms-of-service-status.js +5 -4
- package/dist/adyen-transfer-instrument-configuration.js +8 -4
- package/dist/adyen-transfer-instrument-management.js +5 -4
- package/dist/adyen-verification-status.js +8 -4
- package/dist/arrow-right-BoqwUH_d.js +14 -0
- package/dist/bafinUtils-CIGv_BK8.js +80 -0
- package/dist/bag-BXVWLrwo.js +14 -0
- package/dist/bank-1GvaHPAZ.js +14 -0
- package/dist/bin-Ba-3ll8T.js +18 -0
- package/dist/business-lines-BAqTbnBw.js +135 -0
- package/dist/capital-9TKHySO7.js +17 -0
- package/dist/cash-stack-DwYu4xNy.js +22 -0
- package/dist/certificate-N2YFedpI.js +17 -0
- package/dist/checkmark-D9dGhGpG.js +14 -0
- package/dist/checkmark-circle-CFWClLQ6.js +20 -0
- package/dist/checkmark-circle-fill-DEB-tuGl.js +17 -0
- package/dist/checkmark-small-D3VNx2lo.js +14 -0
- package/dist/chevron-down-C7SUSYfl.js +14 -0
- package/dist/chevron-left-BXmd-S46.js +14 -0
- package/dist/chevron-right-jE6RwM2B.js +14 -0
- package/dist/chevron-up-BdfNcqzq.js +14 -0
- package/dist/circle-BJPTMCWB.js +17 -0
- package/dist/circle-small-filled-BuO8Vg8j.js +14 -0
- package/dist/clock-DAzaBRWk.js +20 -0
- package/dist/coins-DYdzG5e_.js +17 -0
- package/dist/commonValidators-DTt6he7v.js +24 -0
- package/dist/company-types-value-D_mKv5PT.js +23 -0
- package/dist/contract-BfJb1t6M.js +14 -0
- package/dist/cross-CDS_eot4.js +14 -0
- package/dist/cross-circle-fill-C-EJ57Yn.js +17 -0
- package/dist/cross-circle-fill-small-DkPjsuBH.js +14 -0
- package/dist/currency-CrdnaaDu.js +35 -0
- package/dist/da-DK-B3Pg-MWO.js +13 -0
- package/dist/da-DK-CGWvmdkq.js +38 -0
- package/dist/da-DK-Cd5IQPv3.js +75 -0
- package/dist/da-DK-DQ4ZYSea.js +65 -0
- package/dist/da-DK-DzcTI92X.js +13 -0
- package/dist/da-DK-vcVNQJbX.js +63 -0
- package/dist/datasetUtil-BHQp0-xL.js +58 -0
- package/dist/de-DE-C9NH2zMh.js +75 -0
- package/dist/de-DE-CWEW2yqg.js +63 -0
- package/dist/de-DE-CkbOZ6S_.js +65 -0
- package/dist/de-DE-DHDJhahG.js +38 -0
- package/dist/de-DE-S6qDey1L.js +13 -0
- package/dist/de-DE-dPfrbCii.js +13 -0
- package/dist/debouncedInputEvent-Cv2S512Y.js +46 -0
- package/dist/decision-makers-group-DrvpnEqj.js +1944 -0
- package/dist/digital-wallet-Bx5YM1LY.js +46 -0
- package/dist/document-1-qlSTF558.js +14 -0
- package/dist/document-blurred-BiWap0xs.js +37 -0
- package/dist/document-cut-off-aQezqOif.js +32 -0
- package/dist/document-expired-BhBXaWWQ.js +38 -0
- package/dist/document-front-DYuhZGeQ.js +30 -0
- package/dist/document-person-CDbnTOdV.js +20 -0
- package/dist/download-BZQB1WkZ.js +17 -0
- package/dist/dropinUtils--st1YpV6.js +200 -0
- package/dist/edit-1-DAqtnOIx.js +14 -0
- package/dist/en-US-BSQXKu6d.js +54 -0
- package/dist/en-US-CjjPhkB5.js +65 -0
- package/dist/en-US-D1sB335h.js +61 -0
- package/dist/en-US-DLY20x1O.js +13 -0
- package/dist/en-US-DYP6rAvA.js +75 -0
- package/dist/en-US-DoiQhi0j.js +38 -0
- package/dist/en-US-cVpRgdC8.js +13 -0
- package/dist/es-ES--IvNed_Q.js +13 -0
- package/dist/es-ES-BAolMrZ0.js +65 -0
- package/dist/es-ES-BYl5-PFR.js +13 -0
- package/dist/es-ES-CDgjGql5.js +63 -0
- package/dist/es-ES-CxnsKEh4.js +38 -0
- package/dist/es-ES-DK-7qtDf.js +75 -0
- package/dist/external-link-Cg6pJaSJ.js +14 -0
- package/dist/fi-FI-57-xkioo.js +38 -0
- package/dist/fi-FI-BJLU1JHw.js +75 -0
- package/dist/fi-FI-BUixKfXH.js +13 -0
- package/dist/fi-FI-CsZlDJFb.js +63 -0
- package/dist/fi-FI-D8WrLxxq.js +65 -0
- package/dist/fi-FI-DFxljML-.js +13 -0
- package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
- package/dist/filterProblemsByTaskForms-Cz7iQtms.js +30 -0
- package/dist/form-rules-DhbF2mY4.js +13 -0
- package/dist/formUtils-C_sWWLS3.js +107 -0
- package/dist/fr-FR-B2je0smB.js +75 -0
- package/dist/fr-FR-BM-qNLci.js +13 -0
- package/dist/fr-FR-Beljeilc.js +65 -0
- package/dist/fr-FR-BxiX8Zfi.js +38 -0
- package/dist/fr-FR-DPehHVb6.js +13 -0
- package/dist/fr-FR-VoxPkXSc.js +63 -0
- package/dist/funds-in-CInoUdmG.js +21 -0
- package/dist/getName-CnZDw7kV.js +41 -0
- package/dist/getProblemsForEntity-D8qEVVOM.js +24 -0
- package/dist/getProps-Cc3J2-z9.js +148 -0
- package/dist/getTrustedFields-C5-mXl-l.js +64 -0
- package/dist/gift-omNInZeB.js +14 -0
- package/dist/graph-DunG_uu1.js +21 -0
- package/dist/graph-up-BZze4i6m.js +20 -0
- package/dist/headquarter-BhpSibFO.js +21 -0
- package/dist/hotel-Cp7VgGCJ.js +22 -0
- package/dist/house-BhyBQdR3.js +21 -0
- package/dist/id-blurred-B5lHEP8M.js +59 -0
- package/dist/id-cut-off-Ba1FRzKO.js +55 -0
- package/dist/id-front-CpNWN6nG.js +52 -0
- package/dist/id-glare-DgCQON8k.js +49 -0
- package/dist/iframeWidget-DqeucjDU.js +234 -0
- package/dist/image-CmB0ioUM.js +17 -0
- package/dist/info-Bb_-xIEK.js +21 -0
- package/dist/info-filled-CK8LB339.js +17 -0
- package/dist/instant-verification-UrnuHTYn.js +40 -0
- package/dist/isEmpty-CUuXL9Na.js +23 -0
- package/dist/isNewEntity-7Vw_eQBr.js +13 -0
- package/dist/it-IT-5a7NHVFo.js +65 -0
- package/dist/it-IT-D63gRTDc.js +13 -0
- package/dist/it-IT-DOBp2-MP.js +13 -0
- package/dist/it-IT-DZjw9LNC.js +63 -0
- package/dist/it-IT-Dhwa9Ecj.js +75 -0
- package/dist/it-IT-masgjk9F.js +38 -0
- package/dist/ja-JP-B3wVYIJU.js +151 -0
- package/dist/ja-JP-Bc4U0S8-.js +75 -0
- package/dist/ja-JP-BoxeBgOv.js +32 -0
- package/dist/ja-JP-BqluCflj.js +63 -0
- package/dist/ja-JP-Bv3ru9Xq.js +125 -0
- package/dist/ja-JP-CbgaW99b.js +54 -0
- package/dist/ja-JP-CceCDXLB.js +55 -0
- package/dist/ja-JP-CvNJvxkQ.js +218 -0
- package/dist/ja-JP-DL0IjTzn.js +13 -0
- package/dist/ja-JP-DSvZhFNY.js +65 -0
- package/dist/ja-JP-FWHXsXlW.js +24 -0
- package/dist/ja-JP-bz7ekGnF.js +27 -0
- package/dist/ja-JP-g6VOUGXZ.js +136 -0
- package/dist/ja-JP-vv3-YsHU.js +38 -0
- package/dist/japanSupportUtils-CGWcXGP2.js +16 -0
- package/dist/jpAddressSchema-DEOyz9Yo.js +26 -0
- package/dist/localizeDateString-D6tFShQu.js +27 -0
- package/dist/location-itJfxrDQ.js +17 -0
- package/dist/mail-VHTlAusn.js +14 -0
- package/dist/manual-verification-BO8zgAYT.js +41 -0
- package/dist/mapExistingFile-BM9f5AeG.js +230 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-Cu4hdrYE.js +162 -0
- package/dist/mapLegalEntityToIndividualSchema-DVKTWyvx.js +206 -0
- package/dist/mapTransferInstrumentToPayoutAccount--gtugk3J.js +34 -0
- package/dist/minus-circle-filled-ZhtJ0GD3.js +17 -0
- package/dist/nl-NL-B0fvINJj.js +75 -0
- package/dist/nl-NL-CmURERx_.js +65 -0
- package/dist/nl-NL-D1b5RUJ0.js +38 -0
- package/dist/nl-NL-KQ6bciOb.js +13 -0
- package/dist/nl-NL-SjOGmGk5.js +13 -0
- package/dist/nl-NL-lcNM54vV.js +63 -0
- package/dist/no-NO-BAWVf0GX.js +13 -0
- package/dist/no-NO-CTrVITNu.js +63 -0
- package/dist/no-NO-Dkh4SWbB.js +38 -0
- package/dist/no-NO-Ds3VioxT.js +13 -0
- package/dist/no-NO-Jw7Gae-a.js +75 -0
- package/dist/no-NO-qyqWODMp.js +65 -0
- package/dist/onfido-logo-BSkKPH10.js +14 -0
- package/dist/options-horizontal-GuXvLvV3.js +18 -0
- package/dist/partner-QD27Vy4w.js +18 -0
- package/dist/passport-blurred-CVG493IJ.js +59 -0
- package/dist/passport-cut-off-COzA_TmB.js +56 -0
- package/dist/passport-front-WJleLixT.js +52 -0
- package/dist/passport-front-green-CZVkCa1n.js +232 -0
- package/dist/passport-glare-BP5WnJZj.js +50 -0
- package/dist/patternValidators-vYKnE5-t.js +83 -0
- package/dist/pay-by-link-plane-BpY8Q6-B.js +22 -0
- package/dist/payout-DtB68BcZ.js +20 -0
- package/dist/payout-verification-instant-BzpfOQLD.js +41 -0
- package/dist/payout-verification-manual-gNEoeZkV.js +90 -0
- package/dist/person-IVZG3t3_.js +17 -0
- package/dist/plaid-logo-FsZ7kfL-.js +14 -0
- package/dist/plus-DiALAL8-.js +14 -0
- package/dist/plus-circle-filled-BzHtTqEN.js +17 -0
- package/dist/process-field-configurations-Dl2Isz78.js +324 -0
- package/dist/pt-BR-BRdIEO2O.js +38 -0
- package/dist/pt-BR-BaTE6BB_.js +75 -0
- package/dist/pt-BR-BfDe_8iW.js +13 -0
- package/dist/pt-BR-BxoOF8jB.js +65 -0
- package/dist/pt-BR-Ct4s4jXV.js +13 -0
- package/dist/pt-BR-DA44Wgbt.js +63 -0
- package/dist/recurring-DKNs9K3x.js +17 -0
- package/dist/reporting-D5ABpLO_.js +16 -0
- package/dist/resolveEnvironment-B_JokQ0n.js +84 -0
- package/dist/revenue-accelerate-D7Sp0V4a.js +17 -0
- package/dist/review-D4TUjcWF.js +17 -0
- package/dist/roleMetadata-eM6T7GeQ.js +66 -0
- package/dist/save-BfqO2JBI.js +14 -0
- package/dist/search-Cmzbf5zI.js +17 -0
- package/dist/show-IdbU1C6P.js +17 -0
- package/dist/singpass-logo-wY4xsmTX.js +17 -0
- package/dist/singpass-verification-instant-JCqTr7Mv.js +40 -0
- package/dist/singpass-verification-manual-DQ7XW6R3.js +34 -0
- package/dist/sl-SI-BAIm-qBe.js +13 -0
- package/dist/sl-SI-BZpXMHiG.js +13 -0
- package/dist/sl-SI-CvUzNn9Z.js +38 -0
- package/dist/sl-SI-D8dDckrW.js +55 -0
- package/dist/sl-SI-DEaeEVKB.js +24 -0
- package/dist/sl-SI-DTvJT7fC.js +65 -0
- package/dist/sl-SI-DZHePXbK.js +63 -0
- package/dist/sl-SI-DbfswGh0.js +75 -0
- package/dist/sl-SI-DqUEy_Cm.js +32 -0
- package/dist/sl-SI-hxwQIw_i.js +13 -0
- package/dist/solution-payments-DpyE_sdS.js +14 -0
- package/dist/store-Btc4GcmU.js +14 -0
- package/dist/style.css +2642 -2946
- package/dist/styles-CLV89_hH.js +2642 -2946
- package/dist/summaryItem-CAQCQSkt.js +18 -0
- package/dist/sv-SE-0PQ-U1u6.js +13 -0
- package/dist/sv-SE-BZNey_8S.js +13 -0
- package/dist/sv-SE-BsLkPEzn.js +38 -0
- package/dist/sv-SE-D_Efxy3s.js +75 -0
- package/dist/sv-SE-Dq56vGlB.js +63 -0
- package/dist/sv-SE-N-Hqwcjq.js +65 -0
- package/dist/tax-reporting-graph-hgoilCHZ.js +504 -0
- package/dist/terminal-1-D1pwXCoi.js +18 -0
- package/dist/tink-logo-DDyjz5eJ.js +17 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
- package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
- package/dist/types/api/address/useSearchAddress.d.ts +1 -2
- package/dist/types/api/businessLines/useBusinessLines.d.ts +3 -3
- package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +2 -2
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +2 -2
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +2 -2
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
- package/dist/types/api/check/useCheck.d.ts +1 -2
- package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +2 -2
- package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -2
- package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
- package/dist/types/api/configurations/useScenarios.d.ts +3 -161
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +2 -2
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -4
- package/dist/types/api/documents/useCreateDocument.d.ts +2 -2
- package/dist/types/api/documents/useDeleteDocument.d.ts +2 -2
- package/dist/types/api/documents/useDocument.d.ts +2 -2
- package/dist/types/api/documents/useDocuments.d.ts +4 -0
- package/dist/types/api/documents/useUpdateDocument.d.ts +2 -2
- package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -4
- package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +3 -3
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -2
- package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +8 -389
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +2 -2
- package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -2
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -2
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +1 -1
- package/dist/types/api/pci/usePciStatus.d.ts +1 -1
- package/dist/types/api/pci/usePciTemplate.d.ts +1 -1
- package/dist/types/api/pci/useSignPci.d.ts +2 -3
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
- package/dist/types/api/queryKeys.d.ts +4 -2
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -1
- package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +2 -3
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -7
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -1
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -1
- package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
- package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +15 -0
- package/dist/types/api/types.d.ts +3 -2
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
- package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +2 -3
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -1
- package/dist/types/components/Apps/tasks/TaskList/utils.d.ts +4 -0
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.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 +0 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +439 -439
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +3 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +0 -2
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +0 -3
- package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +2 -0
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +12 -11
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -1
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +4 -4
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +0 -1
- package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +4 -0
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +3 -0
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +3 -0
- package/dist/types/components/Business/forms/rules.d.ts +10 -10
- package/dist/types/components/Business/mapping/businessDetails/businessBankAccountTaxIdUtils.d.ts +7 -0
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -2
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +8 -1
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +7 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -4
- package/dist/types/components/Business/utils/companyUtil.d.ts +0 -10
- package/dist/types/components/Business/utils/useBusinessDetailsData.d.ts +21 -0
- package/dist/types/components/BusinessLines/constants.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +10 -10
- package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +1 -2
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +2 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +10 -7
- 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 +5771 -541
- 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/EFP/tasks/SourceOfFundsDropin/types.d.ts +20 -21
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +6 -4
- package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/InvitedDecisionMakerComponent/InvitedDecisionMakerComponent.d.ts +4 -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/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -3
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +29 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/Identity.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +11 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.d.ts +4 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +22 -0
- package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +22 -0
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +8 -0
- package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +12 -0
- package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +24 -0
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +43 -0
- package/dist/types/components/Individual/forms/IdDocumentUpload/utils.d.ts +3 -0
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +18 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/IdVerificationMethod.types.d.ts +21 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +7 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +7 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +46 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +4 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +12 -0
- package/dist/types/components/Individual/forms/Individual.d.ts +56 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +45 -0
- package/dist/types/components/Individual/forms/Individual.types.d.ts +60 -0
- package/dist/types/components/Individual/forms/ProofOfRelationship/types.d.ts +14 -0
- package/dist/types/components/Individual/forms/ProofOfResidency/types.d.ts +39 -0
- package/dist/types/components/Individual/forms/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +6 -0
- package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaire.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +7 -0
- package/dist/types/components/Individual/forms/form-ids.d.ts +2 -0
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -2
- package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -3
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
- package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +1 -1
- package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +1 -1
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -12
- package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -3
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -0
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +3 -0
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +6 -7
- 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 +2 -14
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +0 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +8 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
- 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/EntityAssociation/EntityAssociation.d.ts +0 -1
- 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/Introduction/copy.d.ts +3 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -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/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +3 -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/IdFieldTypeSelector/countryIdNumberTypes.d.ts +121 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
- 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/LocalizedNameFields/types.d.ts +9 -0
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +5 -0
- 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/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +5 -0
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +8 -0
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- 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/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +6 -0
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -1
- 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/Address.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +3 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/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 +5 -5
- package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +2 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +2 -1
- 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 +5 -5
- 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/Card/Card.d.ts +19 -0
- package/dist/types/components/ui/atoms/Loader/Loader.d.ts +11 -1
- package/dist/types/components/ui/atoms/MultiSelectList/MultiSelectList.d.ts +0 -1
- package/dist/types/components/ui/atoms/Svg/Svg.d.ts +0 -1
- package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +0 -1
- package/dist/types/context/ExperimentContext/types.d.ts +19 -42
- package/dist/types/context/QueryContext/QueryClient.d.ts +1 -1
- package/dist/types/context/StateContext/types.d.ts +2 -3
- package/dist/types/core/models/api/individual.d.ts +3 -0
- package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
- package/dist/types/core/models/api/legal-arrangement.d.ts +3 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
- package/dist/types/core/process-field-configurations.d.ts +0 -5
- package/dist/types/core/services/types.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +4 -2
- package/dist/types/embeds/baseEmbedProps.d.ts +0 -21
- package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +2 -1
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +5 -1
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.d.ts +5 -0
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +34 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +2 -1
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.d.ts +5 -1
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.d.ts +2 -1
- package/dist/types/embeds/verification-status/adyen-verification-status.d.ts +2 -1
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -1
- package/dist/types/hooks/useForm/types.d.ts +0 -8
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +4 -2
- package/dist/types/hooks/usePageLandedEvent.d.ts +7 -0
- package/dist/types/hooks/useUboQuestionnaire.d.ts +2 -2
- package/dist/types/language/types.d.ts +7 -2
- package/dist/types/language/utils.d.ts +1 -2
- 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/stores/formState.d.ts +1 -1
- package/dist/types/stores/globalStore/taskStatus.d.ts +5 -3
- package/dist/types/types/assert.d.ts +1 -0
- package/dist/types/types/form-rules.d.ts +0 -1
- package/dist/types/utils/addLinkedFields.d.ts +0 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -0
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +28 -0
- package/dist/types/utils/api/documentUtils.d.ts +6 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +14 -2
- package/dist/types/utils/birthDateUtils.d.ts +0 -17
- package/dist/types/utils/entityAssociationUtil.d.ts +3 -4
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +0 -2
- package/dist/types/utils/formUtils.d.ts +1 -6
- package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -2
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -3
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/types/utils/japanSupportUtils.d.ts +2 -1
- package/dist/types/utils/logger.d.ts +0 -1
- package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
- package/dist/types/utils/performance.d.ts +64 -0
- package/dist/types/utils/regex/patternValidators.d.ts +1 -1
- package/dist/types/utils/translation.d.ts +3 -2
- package/dist/types/utils/validatorUtils.d.ts +2 -1
- package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +3 -2
- package/dist/types-B7GElie6.js +138 -0
- package/dist/types-BQL9Lsg4.js +74 -0
- package/dist/types-C8io4KaH.js +64 -0
- package/dist/types-DwXc_yI8.js +34 -0
- package/dist/unincorporated-partnership-MeN1dp53.js +97 -0
- package/dist/upload-BmUXjsaU.js +17 -0
- package/dist/us-check-C1rTBsCY.js +46 -0
- package/dist/us-check-account-number-9lI1dXNC.js +48 -0
- package/dist/us-check-routing-number-s_KaAGSM.js +49 -0
- package/dist/useAssociatedLegalEntity-ETDoz1H2.js +34 -0
- package/dist/useBusinessDetailsData-FrL0b9Ni.js +5197 -0
- package/dist/useBusinessLines-C5NQ5pE8.js +29 -0
- package/dist/useCanSeeIntroduction-BdZJ7k-_.js +48 -0
- package/dist/useCreateLegalEntity-DrcLoNYT.js +32 -0
- package/dist/useDataMissingRemediations-Zgtpw7uZ.js +41 -0
- package/dist/useDataset-Cap5ZjTr.js +76 -0
- package/dist/useDeleteTransferInstrument-B2wRj-qL.js +32 -0
- package/dist/useForm-DqUW2TbW.js +582 -0
- package/dist/useFormContext-CkuaJPUI.js +201 -0
- package/dist/useGlobalData-5Z6W3or1.js +68 -0
- package/dist/useId-BZ0PA7jP.js +24 -0
- package/dist/useMultiForm-Dm2IEMH9.js +873 -0
- package/dist/useNavigate-CI0N-POy.js +265 -0
- package/dist/useOnboardingStatus-H7Xqe2GC.js +28 -0
- package/dist/usePciQuestionnaireList-BF7TPjbQ.js +29 -0
- package/dist/useSalesChannels-DYGRfKeh.js +65 -0
- package/dist/useScenarios-CibP5LVa.js +48 -0
- package/dist/useSetting-CbBaitp6.js +19 -0
- package/dist/useTaskStatus-1OZ2clnm.js +51 -0
- package/dist/useTermsOfServiceStatus-Dg_nBQgt.js +43 -0
- package/dist/useToastContext-D643iewp.js +49 -0
- package/dist/useTrustMembers-BTCDIu6B.js +163 -0
- package/dist/useUnincorporatedPartnershipMembers-BM9dNg4i.js +99 -0
- package/dist/useUpdateBusinessLines-BuW6Vnof.js +339 -0
- package/dist/useUpdateLegalEntity-tRw1V_Mt.js +40 -0
- package/dist/utils-BasWTkqk.js +159 -0
- package/dist/utils-BnolcW6V.js +237 -0
- package/dist/utils-D9h2Aq2w.js +778 -0
- package/dist/utils-PkTZS9uf.js +58 -0
- package/dist/utils-b_KUV0wb.js +29 -0
- package/dist/validate-CtxacqMv.js +434 -0
- package/dist/validate-K0fmvoFj.js +108 -0
- package/dist/validationError-DdlWONz2.js +86 -0
- package/dist/warning-circle-fill-DBvt921B.js +17 -0
- package/dist/warning-diamond-filled-Lb2od2ry.js +17 -0
- package/dist/webinar-m9nuFZBt.js +22 -0
- package/dist/yapily-logo-BduxhNRA.js +17 -0
- package/package.json +88 -56
- package/dist/4-people-BzyXLUF9.js +0 -24
- package/dist/AcceptTermsOfServiceComponent-DmtE39CC.js +0 -642
- package/dist/Accordion-C-BvE1VA.js +0 -88
- package/dist/AccountSetupRejected-DDoI43lB.js +0 -26
- package/dist/ActionBar-Dzrzolec.js +0 -31
- package/dist/Address-e41CN3CB.js +0 -1317
- package/dist/Alert-Dk-oZlnx.js +0 -159
- package/dist/Avatar-efxn8pKz.js +0 -60
- package/dist/BusinessDetailsDropin-DDh_D2hv.js +0 -2359
- package/dist/BusinessFinancingComponent-C04uRrhE.js +0 -55
- package/dist/BusinessFinancingDropin-_OlSqohS.js +0 -1843
- package/dist/BusinessFinancingPage-DdMugwOa.js +0 -43
- package/dist/BusinessTypeSelectionPage-vkCTEFEJ.js +0 -426
- package/dist/Card-CqXQA0AI.js +0 -82
- package/dist/ConstitutionalDocument-CcwyClZ7.js +0 -143
- package/dist/ContractViewer-Byp71k2e.js +0 -935
- package/dist/CountryField-CzRN1OE8.js +0 -843
- package/dist/CreateIndividualComponent-BNeY6u8q.js +0 -71
- package/dist/CreateTransferInstrumentComponent-B8cNHRdF.js +0 -63
- package/dist/Currency-BBt4yo5i.js +0 -183
- package/dist/CustomerSupport-CObTT8cH.js +0 -153
- package/dist/DebugModal-DJcim6UP.js +0 -413
- package/dist/DecisionMakerDetailsPage-CrQgRW8X.js +0 -106
- package/dist/DecisionMakers-B-3aMddf.js +0 -842
- package/dist/EmbeddedStatus-C_5DguHv.js +0 -99
- package/dist/EndStateLayout-CwdrDEYY.js +0 -71
- package/dist/EntityAssociation-C413vcu6.js +0 -159
- package/dist/EntityGuidanceStatus-C6b8i7os.js +0 -105
- package/dist/FormFlow-PppMJ6OA.js +0 -186
- package/dist/FormNavigation-DL47b_QR.js +0 -144
- package/dist/FormWrapper-BOrTn1C8.js +0 -135
- package/dist/IndividualOnfido-CmmyKC7J.js +0 -9631
- package/dist/IndividualOnfidoDropin-BsCb6dvy.js +0 -2569
- package/dist/InputText-BfL9DgWp.js +0 -249
- package/dist/Introduction-CBMl7v2M.js +0 -300
- package/dist/JpAddress-BCwWQ0Ul.js +0 -271
- package/dist/LegalRepresentativeDetailsPage-CDURNY_v.js +0 -60
- package/dist/ListItem-BhUSZdS5.js +0 -69
- package/dist/ManageIndividualComponent-wYIuZdQ8.js +0 -46
- package/dist/ManageTermsOfServiceComponent-6RBHbbsn.js +0 -52
- package/dist/ManageTransferInstrumentComponent-BDyWbySW.js +0 -287
- package/dist/MaybeModal-CG0BAO68.js +0 -36
- package/dist/Modal-CJ_hgcGb.js +0 -149
- package/dist/OnboardingDropinComponent-D3dYF_4W.js +0 -7617
- package/dist/PayoutDetailsDropin-DxALk48X.js +0 -4840
- package/dist/Review-C_JnI94L.js +0 -83
- package/dist/RootBusinessDetailsPage-BE3Uck1r.js +0 -46
- package/dist/RootBusinessLinesPage-DknXuZgi.js +0 -1484
- package/dist/RootIndividualDetailsPage-BIj988Sh.js +0 -71
- package/dist/SignPCIComponent-BjVEKTlw.js +0 -304
- package/dist/SingpassSelection-Bkbz_bGo.js +0 -130
- package/dist/SoleProprietorshipPage-DSOEsSfJ.js +0 -46
- package/dist/SourceOfFundsPage-cWwthA_A.js +0 -2383
- package/dist/Spacer-D4I0f08n.js +0 -1416
- package/dist/StepProgressIndicator-FNAEisRr.js +0 -78
- package/dist/StoreProvider-jtUYKLRz.js +0 -7707
- package/dist/Summary-COehg8IT.js +0 -204
- package/dist/TaxReportingDropin-BBkhMcPn.js +0 -501
- package/dist/TrustDetailsPage-50i4_lFA.js +0 -2149
- package/dist/TrustMemberCompanyPage-v2Md1srF.js +0 -57
- package/dist/TrustMemberIndividualPage-Bn6TXkhN.js +0 -66
- package/dist/TrustMemberRoleAndTypePage-C_NPNe6_.js +0 -985
- package/dist/TrustMembersOverview-FcSsQZ3Z.js +0 -438
- package/dist/UnincorporatedPartnershipIndividualPage-zsyk9RTz.js +0 -65
- package/dist/UnincorporatedPartnershipMemberCompanyPage-FP75ZgOg.js +0 -60
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-n6SndOAj.js +0 -281
- package/dist/UnincorporatedPartnershipMembersOverview-BbW2q9EI.js +0 -172
- package/dist/VerificationErrorAlert-B7jRGdgn.js +0 -79
- package/dist/ViewVerificationStatusComponent-CuUmC319.js +0 -180
- package/dist/arrow-right-KxA3SvQj.js +0 -14
- package/dist/bag-BPumznWh.js +0 -14
- package/dist/bank-D6FiNBhs.js +0 -14
- package/dist/bin-Bz6KOIeE.js +0 -18
- package/dist/business-lines-DboUCbXw.js +0 -135
- package/dist/capital-GVQ3svwN.js +0 -17
- package/dist/cash-stack-D9AoDDwt.js +0 -22
- package/dist/certificate-CdEWgHQf.js +0 -17
- package/dist/checkmark-Q7x6tGhy.js +0 -14
- package/dist/checkmark-circle-fill-CsvN5_PL.js +0 -17
- package/dist/checkmark-circle-x7dzbp3I.js +0 -20
- package/dist/checkmark-small-D35myntq.js +0 -14
- package/dist/chevron-down-C2iDorpW.js +0 -14
- package/dist/chevron-left-ztPO84q-.js +0 -14
- package/dist/chevron-right-C_JN0oDt.js +0 -14
- package/dist/chevron-up-CgG8n25g.js +0 -14
- package/dist/circle-Bt3Nlr3q.js +0 -17
- package/dist/circle-small-filled-YMzP6yQU.js +0 -14
- package/dist/clock-BZHremOA.js +0 -20
- package/dist/coins-fkAk6dCo.js +0 -17
- package/dist/contract-BTa4HltT.js +0 -14
- package/dist/cross-Cn09MtQ_.js +0 -14
- package/dist/cross-circle-fill-maan7Z5S.js +0 -17
- package/dist/cross-circle-fill-small-DCz52AuN.js +0 -14
- package/dist/da-DK-BlU1EczG.js +0 -30
- package/dist/da-DK-DEdQ-QPp.js +0 -13
- package/dist/da-DK-DYpfNZdP.js +0 -37
- package/dist/da-DK-Dc0QYG8m.js +0 -68
- package/dist/da-DK-DqkN5oIu.js +0 -13
- package/dist/da-DK-jK7c9UL0.js +0 -57
- package/dist/de-DE-BXt1K0Tr.js +0 -37
- package/dist/de-DE-COuUdtao.js +0 -13
- package/dist/de-DE-DrSSblam.js +0 -13
- package/dist/de-DE-Dz2OsS1F.js +0 -68
- package/dist/de-DE-s0B-XZyp.js +0 -30
- package/dist/de-DE-wmerDL2e.js +0 -57
- package/dist/debouncedInputEvent-HhImBs4O.js +0 -109
- package/dist/decision-makers-group-CgddXgrx.js +0 -1944
- package/dist/digital-wallet-D_IpxnkN.js +0 -46
- package/dist/document-1-C08ut-Dt.js +0 -14
- package/dist/document-blurred-2Zpodj3_.js +0 -37
- package/dist/document-cut-off-ClS7RiOp.js +0 -32
- package/dist/document-expired-CjksBq-N.js +0 -38
- package/dist/document-front-DiAairT3.js +0 -30
- package/dist/document-person-vxlA6C5f.js +0 -20
- package/dist/documentUtils-DIcRD9lR.js +0 -218
- package/dist/download-Drhk9k1f.js +0 -17
- package/dist/dropinUtils-BK1u6OTG.js +0 -200
- package/dist/edit-1-CFoDTMvQ.js +0 -14
- package/dist/el-GR-CdgLZhuO.js +0 -13
- package/dist/en-US-CzEL6t1W.js +0 -55
- package/dist/en-US-D-B35AoN.js +0 -68
- package/dist/en-US-Dg505Oh3.js +0 -37
- package/dist/en-US-d4WBvUW7.js +0 -118
- package/dist/en-US-fyGPkcqX.js +0 -13
- package/dist/en-US-gsp7CD_E.js +0 -57
- package/dist/es-ES-BI_jdT67.js +0 -68
- package/dist/es-ES-BhNhIf08.js +0 -37
- package/dist/es-ES-DNGEW6V_.js +0 -13
- package/dist/es-ES-Qnc0Q6JH.js +0 -57
- package/dist/es-ES-ShWaSuJd.js +0 -13
- package/dist/es-ES-esfwvKwz.js +0 -30
- package/dist/external-link-DCMYUMfW.js +0 -14
- package/dist/fi-FI-ChApf7lf.js +0 -13
- package/dist/fi-FI-CjB6QC01.js +0 -30
- package/dist/fi-FI-CoI_94Fv.js +0 -13
- package/dist/fi-FI-Dn2MC8uW.js +0 -57
- package/dist/fi-FI-hwzizPnr.js +0 -68
- package/dist/fi-FI-ysUrBilO.js +0 -37
- package/dist/fr-FR-BSvSKazD.js +0 -37
- package/dist/fr-FR-BWX14yb7.js +0 -57
- package/dist/fr-FR-Br7OeDIe.js +0 -13
- package/dist/fr-FR-C1XqLftn.js +0 -30
- package/dist/fr-FR-CYZXbwc9.js +0 -68
- package/dist/fr-FR-Q3urMjbl.js +0 -13
- package/dist/funds-in-D8bj0aoE.js +0 -21
- package/dist/getFieldsWithExistingData-DxCFyXNd.js +0 -22
- package/dist/getName-BS-pHwl0.js +0 -41
- package/dist/gift-CQ_DEma7.js +0 -14
- package/dist/graph-BJmqglH2.js +0 -21
- package/dist/graph-up-Bq6adtlX.js +0 -20
- package/dist/hasDataChanged-CWdnpJrE.js +0 -19
- package/dist/headquarter-DNYyuuFq.js +0 -21
- package/dist/hotel-BuNql78Z.js +0 -22
- package/dist/house-B6sNRj-B.js +0 -21
- package/dist/id-blurred-9dzBOWCE.js +0 -59
- package/dist/id-cut-off-CohJCI2h.js +0 -55
- package/dist/id-front-CSZfvdRg.js +0 -52
- package/dist/id-glare-Q2JWo5ts.js +0 -49
- package/dist/id-verification-instant-BUVBO4R3.js +0 -58
- package/dist/id-verification-manual-B3YZALYU.js +0 -55
- package/dist/iframeWidget-Uz4rHS0r.js +0 -234
- package/dist/image-BSihO8lR.js +0 -17
- package/dist/info-filled-SQotHmT9.js +0 -17
- package/dist/info-vHTZWoJ7.js +0 -21
- package/dist/instant-verification-Dvvkyfmp.js +0 -40
- package/dist/it-IT-B0YGvVgW.js +0 -57
- package/dist/it-IT-BAvsF2TB.js +0 -13
- package/dist/it-IT-C_YDqVNT.js +0 -30
- package/dist/it-IT-Erh1DIlj.js +0 -68
- package/dist/it-IT-Qfzc8jnW.js +0 -37
- package/dist/it-IT-vdMlF0Ha.js +0 -13
- package/dist/localizeDateString-DgSdo3D5.js +0 -27
- package/dist/location-Q4oKvnkl.js +0 -17
- package/dist/mail-BOdyoVqB.js +0 -14
- package/dist/manual-verification-BvZWqA00.js +0 -41
- package/dist/mapExistingFile-CqrlnmFQ.js +0 -156
- package/dist/mapFinancialReportsToFinancialInformation-ZmhVRj3f.js +0 -67
- package/dist/mapJpAddressSchemaToAddressLocalizations-D6HjhjJT.js +0 -63
- package/dist/mapLegalEntityToIndividualOnfidoSchema-COcit7Hx.js +0 -146
- package/dist/mapTransferInstrumentToPayoutAccount-DfJHF9H8.js +0 -33
- package/dist/minus-circle-filled-kC2IUvKz.js +0 -17
- package/dist/nl-NL-BMUYBqlF.js +0 -57
- package/dist/nl-NL-BwKrj-29.js +0 -13
- package/dist/nl-NL-C3YJkSIj.js +0 -13
- package/dist/nl-NL-D7gBNWEY.js +0 -37
- package/dist/nl-NL-DyeSX0PH.js +0 -30
- package/dist/nl-NL-O9GCHMDA.js +0 -68
- package/dist/no-NO-B6OPS2CA.js +0 -13
- package/dist/no-NO-C-gCYc9q.js +0 -37
- package/dist/no-NO-CA1aR6Wh.js +0 -68
- package/dist/no-NO-D4BECLky.js +0 -130
- package/dist/no-NO-DKbWxgF-.js +0 -57
- package/dist/no-NO-DPRsAb_o.js +0 -30
- package/dist/onfido-logo-BWSv__sQ.js +0 -14
- package/dist/options-horizontal-CBmbNv7R.js +0 -18
- package/dist/partner-CPjsrePY.js +0 -18
- package/dist/passport-blurred-B4UDQfmc.js +0 -59
- package/dist/passport-cut-off-C0N2mgLk.js +0 -56
- package/dist/passport-front-BwA7wR91.js +0 -52
- package/dist/passport-front-green-BL4HmtsB.js +0 -232
- package/dist/passport-glare-Mg2ixsYA.js +0 -50
- package/dist/pay-by-link-plane-BVZndh67.js +0 -22
- package/dist/payout-ChUEoLjt.js +0 -20
- package/dist/payout-verification-instant-5u-wvFKv.js +0 -41
- package/dist/payout-verification-manual-BH2mu0UW.js +0 -90
- package/dist/person-DGjUU4S4.js +0 -17
- package/dist/plaid-logo-CtActXTN.js +0 -14
- package/dist/plus-CWXA5wdX.js +0 -14
- package/dist/plus-circle-filled-CbC0u2Y1.js +0 -17
- package/dist/process-field-configurations-N1jHgPa8.js +0 -324
- package/dist/pt-BR--kaJvtE6.js +0 -57
- package/dist/pt-BR-BKQRvAfq.js +0 -13
- package/dist/pt-BR-C-C4ZJ9x.js +0 -30
- package/dist/pt-BR-NtLaWlnZ.js +0 -68
- package/dist/pt-BR-gh27BC86.js +0 -13
- package/dist/pt-BR-ur86nRrK.js +0 -37
- package/dist/pt-PT-B4F_5NWi.js +0 -55
- package/dist/pt-PT-BZ5ZZm6G.js +0 -57
- package/dist/pt-PT-Bf4IV7wp.js +0 -13
- package/dist/pt-PT-CFY1O_K0.js +0 -13
- package/dist/pt-PT-CIo3mlXL.js +0 -24
- package/dist/pt-PT-CVNEcs32.js +0 -37
- package/dist/pt-PT-D2Xe-OdG.js +0 -13
- package/dist/pt-PT-DSxxVA0f.js +0 -68
- package/dist/pt-PT-DVKtHjIY.js +0 -13
- package/dist/pt-PT-DYihdcJx.js +0 -13
- package/dist/pt-PT-Dm5DRDrd.js +0 -32
- package/dist/pt-PT-DpDxAynk.js +0 -13
- package/dist/pt-PT-JVqqgvPs.js +0 -54
- package/dist/pt-PT-LbneTcRx.js +0 -30
- package/dist/pt-PT-TKg5FLat.js +0 -27
- package/dist/recurring-CkL4cCM2.js +0 -17
- package/dist/reporting-DerosUNm.js +0 -16
- package/dist/resolveEnvironment-DZ77JxLV.js +0 -164
- package/dist/revenue-accelerate-Dp4Ns_5c.js +0 -17
- package/dist/review-CxIN9azU.js +0 -17
- package/dist/rules-_v8BprU3.js +0 -317
- package/dist/save-Fgy7EDid.js +0 -14
- package/dist/search-C4GZ-Rc1.js +0 -17
- package/dist/show-yPjPmEf8.js +0 -17
- package/dist/singpass-logo-BkMSwiGY.js +0 -17
- package/dist/singpass-verification-instant-hY4eGFwl.js +0 -40
- package/dist/singpass-verification-manual-DwhRpy5Q.js +0 -34
- package/dist/sl-SI-8SzKx7XD.js +0 -30
- package/dist/sl-SI-CUCrzJQv.js +0 -37
- package/dist/sl-SI-DdjgSySI.js +0 -13
- package/dist/sl-SI-DtdGMD6i.js +0 -57
- package/dist/solution-payments-CNAat9h7.js +0 -14
- package/dist/store-IuAkDRAp.js +0 -14
- package/dist/sv-SE-B7cpKp1l.js +0 -30
- package/dist/sv-SE-BHkYspm-.js +0 -130
- package/dist/sv-SE-C6uPh9g5.js +0 -37
- package/dist/sv-SE-K1QT1cOt.js +0 -68
- package/dist/sv-SE-kR514dO1.js +0 -57
- package/dist/sv-SE-zTiw1bUU.js +0 -13
- package/dist/tax-reporting-graph-DjzwRgE6.js +0 -504
- package/dist/terminal-1-_me9J9h0.js +0 -18
- package/dist/tink-logo-BcIv93ND.js +0 -17
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/mandatoryFields.d.ts +0 -3
- package/dist/types/components/Individual/fields/DecisionMakerRole/DecisionMakerRole.d.ts +0 -3
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +0 -10
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +0 -23
- package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +0 -9
- package/dist/types/components/Individual/fields/NameFields/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentAlreadyUpload.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentInstantVerification.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentUpload.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +0 -53
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -15
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +0 -9
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/Identity.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +0 -41
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +0 -21
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +0 -39
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -40
- package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -51
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -29
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +0 -13
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +0 -22
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -22
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +0 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +0 -12
- package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/DataConflictsModal.d.ts +0 -24
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +0 -17
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -20
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +0 -7
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +0 -7
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +0 -46
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +0 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/validateExtractionResult.d.ts +0 -12
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -52
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +0 -46
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +0 -59
- package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +0 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +0 -13
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +0 -7
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +0 -4
- package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +0 -3
- package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +0 -3
- package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +0 -8
- package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +0 -5
- package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +0 -3
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +0 -3
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualOnfidoSchema.d.ts +0 -3
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +0 -2
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +0 -4
- package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +0 -3
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +0 -3
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +0 -8
- package/dist/types/components/ui/molecules/Card/Card.d.ts +0 -3
- package/dist/types/components/ui/molecules/Card/types.d.ts +0 -26
- package/dist/types/embeds/EmbedBaseElement.d.ts +0 -41
- package/dist/types/embeds/EmbedCore.d.ts +0 -22
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +0 -14
- package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +0 -12
- package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +0 -12
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +0 -12
- package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +0 -16
- package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +0 -14
- package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +0 -20
- package/dist/types-BnnF5_7m.js +0 -34
- package/dist/types-D0u3f6aG.js +0 -87
- package/dist/types-Dk94b8kx.js +0 -161
- package/dist/types-sYQKhaSL.js +0 -74
- package/dist/upload-BF65P4KM.js +0 -17
- package/dist/us-check-CYY6Crhr.js +0 -46
- package/dist/us-check-account-number-C7KE5YzX.js +0 -48
- package/dist/us-check-routing-number-DUbhsYAR.js +0 -49
- package/dist/useAssociatedLegalEntity-00JVCmQ7.js +0 -33
- package/dist/useCreateLegalEntity-BvvwB9r0.js +0 -31
- package/dist/useDataset-8WyOJBhU.js +0 -220
- package/dist/useForm-DLxHtZTP.js +0 -1624
- package/dist/useGlobalData-D9dz7GIi.js +0 -68
- package/dist/useMultiForm--sSlt50X.js +0 -864
- package/dist/useOnboardingStatus-91zhqzLd.js +0 -27
- package/dist/useScenarios-CqKpYbe_.js +0 -46
- package/dist/useTermsOfServiceStatus-DLQVpbik.js +0 -42
- package/dist/useToastContext-FI3dwzzs.js +0 -60
- package/dist/useUnincorporatedPartnershipMembers-CdQDPlZq.js +0 -99
- package/dist/useUpdateBusinessLines-BulhyPjH.js +0 -46
- package/dist/useUpdateLegalEntity-Q3Icdeo6.js +0 -39
- package/dist/utils-DQLhii3U.js +0 -774
- package/dist/utils-DV0_GilJ.js +0 -237
- package/dist/validate-BD3wn-YX.js +0 -100
- package/dist/validate-H-iE__-w.js +0 -41
- package/dist/validationError-B5aoMbe_.js +0 -86
- package/dist/warning-circle-fill-CEN1WL7A.js +0 -17
- package/dist/warning-diamond-filled-BfXMlVrG.js +0 -17
- package/dist/webinar-DqjqrNEv.js +0 -22
- package/dist/yapily-logo-CZ4ywjwA.js +0 -17
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/PayoutAccountTaskListItem.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskList.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListGroup.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListItem.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/types.d.ts +0 -0
- /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
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/AdditionalPersonalDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/BasicDetails → BasicDetails}/BasicDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/GuidanceQuestion → GuidanceQuestion}/GuidanceQuestion.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/IdDocumentManualUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdNowVerificationModal → IdNowVerificationModal}/IdNowVerificationModal.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/IdVerification.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/idVerificationProviderId.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/types.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/ManualIdUpload → ManualIdUpload}/ManualIdUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/index.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/ProofOfResidency.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaireModalContent.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/tasks/{IndividualOnfidoDropin/IndividualOnfidoStore.d.ts → IndividualDropin/IndividualStore.d.ts} +0 -0
- /package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/LocalizedNameFields.d.ts +0 -0
|
@@ -0,0 +1,1087 @@
|
|
|
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] = "0d9787f0-0968-4cf0-9d37-c6abe0da3a2f", e._sentryDebugIdIdentifier = "sentry-dbid-0d9787f0-0968-4cf0-9d37-c6abe0da3a2f");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { o as LegalEntityTypes, bn as TrustMemberTypes, ai as isEmpty, u as useTranslation, v as useExperimentsContext, c as useLegalEntity, ae as getOwnEntityAssociations, a0 as CountryCodes, a3 as createLogger, a as addResourceBundles, L as Loader, g as getLegalEntityCountry, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-99-ewU62.js";
|
|
11
|
+
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
12
|
+
import { skipToken } from "@tanstack/preact-query";
|
|
13
|
+
import { useParams } from "wouter-preact";
|
|
14
|
+
import { u as useTrustMembers } from "./useTrustMembers-BTCDIu6B.js";
|
|
15
|
+
import { useEffect, useState } from "preact/hooks";
|
|
16
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-DrcLoNYT.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-tRw1V_Mt.js";
|
|
18
|
+
import { u as useToastContext } from "./useToastContext-D643iewp.js";
|
|
19
|
+
import { A as ActionBar } from "./ActionBar-CijauUSe.js";
|
|
20
|
+
import { D as DropinLayout } from "./DropinLayout-CBP_cHLC.js";
|
|
21
|
+
import { F as FormNavigation } from "./FormNavigation-BtSvWPRY.js";
|
|
22
|
+
import { s as summaryStep, S as Summary } from "./Summary-D0GcSMNn.js";
|
|
23
|
+
import { i as isNewEntity } from "./isNewEntity-7Vw_eQBr.js";
|
|
24
|
+
import { F as Field } from "./Field-Bs7wGDqk.js";
|
|
25
|
+
import { H as Header } from "./Header-vslG1ugE.js";
|
|
26
|
+
import cx from "classnames";
|
|
27
|
+
import { a as SelectListItem } from "./Select-DaCJsYNl.js";
|
|
28
|
+
import { T as TextArea } from "./TextArea-BjsWgkR-.js";
|
|
29
|
+
import { T as TileGroup } from "./TileGroup-C-5-VREz.js";
|
|
30
|
+
import { u as useForm } from "./useForm-DqUW2TbW.js";
|
|
31
|
+
import { E as ErrorPanel } from "./ErrorPanel-CAALFKmE.js";
|
|
32
|
+
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-DxZlK1rV.js";
|
|
33
|
+
import { a as defaultFieldMetadata, c as defaultFieldConfig, e as LegalCompanyNameField, g as getLegalCompanyNameHelperText, L as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-DzAxAnD9.js";
|
|
34
|
+
import { N as Name, n as nameFields } from "./Name-D6EhveoK.js";
|
|
35
|
+
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
36
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-C_sWWLS3.js";
|
|
37
|
+
import { g as getFieldProps } from "./getProps-Cc3J2-z9.js";
|
|
38
|
+
import { r as roleMetadata, g as getRoleName } from "./roleMetadata-eM6T7GeQ.js";
|
|
39
|
+
import { t as trustMemberLegalEntityTypes, i as isOrganizationAndSettlor, s as settlorExemptionReasonWithNoneOfTheAbove, c as couldBeExemptSettlor, a as isExemptSettlor } from "./types-DwXc_yI8.js";
|
|
40
|
+
import { s as summaryItem } from "./summaryItem-CAQCQSkt.js";
|
|
41
|
+
const handleKeys = (keys, callback, propagationMode = "stopIfMatches") => (event) => {
|
|
42
|
+
if (propagationMode === "stop") event.stopPropagation();
|
|
43
|
+
if (keys.includes(event.key)) {
|
|
44
|
+
if (propagationMode === "stopIfMatches") event.stopPropagation();
|
|
45
|
+
callback();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const multiSelectList = "adyen-kyc-multi-select-list";
|
|
49
|
+
const multiSelectListItem = "adyen-kyc-multi-select-list-item";
|
|
50
|
+
const multiSelectListItemWithDescription = "adyen-kyc-multi-select-list-item-with-description";
|
|
51
|
+
const styles$1 = {
|
|
52
|
+
multiSelectList,
|
|
53
|
+
multiSelectListItem,
|
|
54
|
+
multiSelectListItemWithDescription
|
|
55
|
+
};
|
|
56
|
+
const MultiSelectList = ({
|
|
57
|
+
options,
|
|
58
|
+
selected,
|
|
59
|
+
onSelect,
|
|
60
|
+
mapToSelectItem
|
|
61
|
+
}) => /* @__PURE__ */ jsx("ul", { className: styles$1.multiSelectList, children: options.map((option) => {
|
|
62
|
+
const item = mapToSelectItem(option);
|
|
63
|
+
const isSelected = selected.includes(option);
|
|
64
|
+
const handleSelect = () => {
|
|
65
|
+
const newSelection = isSelected ? selected.filter((selectedOption) => selectedOption !== option) : [...selected, option];
|
|
66
|
+
onSelect(newSelection);
|
|
67
|
+
};
|
|
68
|
+
return /* @__PURE__ */ jsx(
|
|
69
|
+
SelectListItem,
|
|
70
|
+
{
|
|
71
|
+
id: item.id,
|
|
72
|
+
item,
|
|
73
|
+
selected: isSelected,
|
|
74
|
+
onKeyDown: handleKeys(["Enter", " "], handleSelect),
|
|
75
|
+
onSelect: handleSelect,
|
|
76
|
+
isMulti: true,
|
|
77
|
+
className: cx([
|
|
78
|
+
styles$1.multiSelectListItem,
|
|
79
|
+
{
|
|
80
|
+
[styles$1.multiSelectListItemWithDescription]: !!item.description
|
|
81
|
+
}
|
|
82
|
+
])
|
|
83
|
+
},
|
|
84
|
+
item.id
|
|
85
|
+
);
|
|
86
|
+
}) });
|
|
87
|
+
const makeSelectItemForRole = (role, t) => {
|
|
88
|
+
const metadata = roleMetadata[role];
|
|
89
|
+
if (!metadata)
|
|
90
|
+
throw Error(
|
|
91
|
+
`Cannot make select item for role "${role}"; no metadata found. Valid roles include: ${Object.keys(
|
|
92
|
+
roleMetadata
|
|
93
|
+
).join("\n")}`
|
|
94
|
+
);
|
|
95
|
+
const { name, description } = metadata;
|
|
96
|
+
return {
|
|
97
|
+
id: role,
|
|
98
|
+
name: t(($) => $[name]),
|
|
99
|
+
description: description ? t(($) => $[description]) : void 0
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
const convertExistingSettlorExemptionReasons = (existingReasons) => {
|
|
103
|
+
if (!existingReasons || !existingReasons.length) return ["noneOfTheAbove"];
|
|
104
|
+
return existingReasons;
|
|
105
|
+
};
|
|
106
|
+
const convertExistingTrustMember = (trustMember) => {
|
|
107
|
+
switch (trustMember.trustMemberType) {
|
|
108
|
+
case "undefinedBeneficiary":
|
|
109
|
+
return {
|
|
110
|
+
entityType: LegalEntityTypes.INDIVIDUAL,
|
|
111
|
+
role: ["undefinedBeneficiary"],
|
|
112
|
+
descriptionUndefinedBeneficiary: trustMember.description
|
|
113
|
+
};
|
|
114
|
+
case "regular":
|
|
115
|
+
case "company":
|
|
116
|
+
return {
|
|
117
|
+
entityType: trustMember.legalEntityType,
|
|
118
|
+
role: trustMember.roles,
|
|
119
|
+
settlorExemptionReason: ["noneOfTheAbove"],
|
|
120
|
+
country: trustMember.trustMemberType === "company" ? trustMember.country : void 0,
|
|
121
|
+
legalCompanyName: trustMember.trustMemberType === "company" ? trustMember.name : void 0
|
|
122
|
+
};
|
|
123
|
+
case "rootTrustee":
|
|
124
|
+
return {
|
|
125
|
+
trustMemberType: trustMember.trustMemberType,
|
|
126
|
+
entityType: trustMember.legalEntityType,
|
|
127
|
+
role: trustMember.roles,
|
|
128
|
+
settlorExemptionReason: ["noneOfTheAbove"]
|
|
129
|
+
};
|
|
130
|
+
case "exemptSettlor":
|
|
131
|
+
return {
|
|
132
|
+
entityType: trustMember.legalEntityType,
|
|
133
|
+
role: ["settlor"],
|
|
134
|
+
settlorExemptionReason: convertExistingSettlorExemptionReasons(
|
|
135
|
+
trustMember.settlorExemptionReason
|
|
136
|
+
),
|
|
137
|
+
firstName: trustMember.exemptSettlorName?.firstName,
|
|
138
|
+
lastName: trustMember.exemptSettlorName?.lastName,
|
|
139
|
+
legalCompanyName: trustMember.name,
|
|
140
|
+
country: trustMember.country
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
const convertRootTrusteeTrustMember = (trustMember) => ({
|
|
145
|
+
trustMemberType: trustMember.trustMemberType,
|
|
146
|
+
entityType: trustMember.legalEntityType,
|
|
147
|
+
role: trustMember.roles,
|
|
148
|
+
settlorExemptionReason: ["noneOfTheAbove"]
|
|
149
|
+
});
|
|
150
|
+
const allowedCrossoverRolesMatrix = {
|
|
151
|
+
settlor: ["secondaryTrustee", "protector"],
|
|
152
|
+
secondaryTrustee: ["settlor", "protector", "definedBeneficiary"],
|
|
153
|
+
protector: ["settlor", "secondaryTrustee", "definedBeneficiary"],
|
|
154
|
+
definedBeneficiary: ["secondaryTrustee", "protector"],
|
|
155
|
+
undefinedBeneficiary: []
|
|
156
|
+
};
|
|
157
|
+
const allowedCrossoverRolesMatrixByTrustMemberAndLegalEntityType = {
|
|
158
|
+
rootTrustee: {
|
|
159
|
+
[LegalEntityTypes.INDIVIDUAL]: {
|
|
160
|
+
settlor: ["secondaryTrustee", "protector"],
|
|
161
|
+
secondaryTrustee: ["settlor", "protector", "definedBeneficiary"],
|
|
162
|
+
protector: ["settlor", "secondaryTrustee", "definedBeneficiary"],
|
|
163
|
+
definedBeneficiary: ["secondaryTrustee", "protector"],
|
|
164
|
+
undefinedBeneficiary: []
|
|
165
|
+
},
|
|
166
|
+
[LegalEntityTypes.ORGANIZATION]: {
|
|
167
|
+
settlor: ["secondaryTrustee", "protector"],
|
|
168
|
+
secondaryTrustee: ["settlor", "protector"],
|
|
169
|
+
protector: ["settlor", "secondaryTrustee"],
|
|
170
|
+
definedBeneficiary: [],
|
|
171
|
+
undefinedBeneficiary: []
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
const getAllowedCrossoverRolesMatrixByTrustMemberAndLegalEntityType = (trustMember) => {
|
|
176
|
+
const { trustMemberType } = trustMember;
|
|
177
|
+
if (trustMemberType === "undefinedBeneficiary") {
|
|
178
|
+
return allowedCrossoverRolesMatrix;
|
|
179
|
+
}
|
|
180
|
+
const crossoverRolesByTrustMember = allowedCrossoverRolesMatrixByTrustMemberAndLegalEntityType[trustMemberType];
|
|
181
|
+
if (!crossoverRolesByTrustMember) {
|
|
182
|
+
return allowedCrossoverRolesMatrix;
|
|
183
|
+
}
|
|
184
|
+
const crossoverRoles = crossoverRolesByTrustMember[trustMember.legalEntityType];
|
|
185
|
+
if (!crossoverRoles) {
|
|
186
|
+
return allowedCrossoverRolesMatrix;
|
|
187
|
+
}
|
|
188
|
+
return crossoverRoles;
|
|
189
|
+
};
|
|
190
|
+
const availablesRolesByTrustMemberTypeAndLegalEntityType = {
|
|
191
|
+
rootTrustee: {
|
|
192
|
+
[LegalEntityTypes.INDIVIDUAL]: ["settlor", "protector", "definedBeneficiary"],
|
|
193
|
+
[LegalEntityTypes.ORGANIZATION]: ["settlor", "protector"]
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
const getAvailableRolesByTrustMemberTypeAndLegalEntityType = (currentRoles, trustMember) => {
|
|
197
|
+
if (!currentRoles?.length) {
|
|
198
|
+
const { trustMemberType, legalEntityType } = trustMember;
|
|
199
|
+
const availableRolesByTrustMemberType = availablesRolesByTrustMemberTypeAndLegalEntityType[trustMemberType];
|
|
200
|
+
if (!availableRolesByTrustMemberType) {
|
|
201
|
+
return Object.values(TrustMemberTypes);
|
|
202
|
+
}
|
|
203
|
+
const availableRoles = availableRolesByTrustMemberType[legalEntityType];
|
|
204
|
+
if (!availableRoles) {
|
|
205
|
+
return Object.values(TrustMemberTypes);
|
|
206
|
+
}
|
|
207
|
+
return availableRoles;
|
|
208
|
+
}
|
|
209
|
+
const crossoverRolesMatrix = trustMember ? getAllowedCrossoverRolesMatrixByTrustMemberAndLegalEntityType(trustMember) : allowedCrossoverRolesMatrix;
|
|
210
|
+
const roles = currentRoles.map((role) => [role, ...crossoverRolesMatrix[role]]).reduce(
|
|
211
|
+
(existingAllowed, allowedForRole) => existingAllowed.filter((role) => allowedForRole.includes(role))
|
|
212
|
+
);
|
|
213
|
+
return roles.filter((r) => r !== "secondaryTrustee");
|
|
214
|
+
};
|
|
215
|
+
const getAvailableRoles = (currentRoles) => {
|
|
216
|
+
if (!currentRoles?.length) return Object.values(TrustMemberTypes);
|
|
217
|
+
return currentRoles.map((role) => [role, ...allowedCrossoverRolesMatrix[role]]).reduce(
|
|
218
|
+
(existingAllowed, allowedForRole) => existingAllowed.filter((role) => allowedForRole.includes(role))
|
|
219
|
+
);
|
|
220
|
+
};
|
|
221
|
+
const roleAndTypeValidationRules = {
|
|
222
|
+
entityType: {
|
|
223
|
+
modes: ["blur"],
|
|
224
|
+
validate: (entityType) => !isEmpty(entityType),
|
|
225
|
+
errorMessage: "fieldIsRequired"
|
|
226
|
+
},
|
|
227
|
+
role: {
|
|
228
|
+
modes: ["blur"],
|
|
229
|
+
validate: (role) => !!role?.length,
|
|
230
|
+
errorMessage: "fieldIsRequired"
|
|
231
|
+
},
|
|
232
|
+
descriptionUndefinedBeneficiary: {
|
|
233
|
+
modes: ["blur"],
|
|
234
|
+
validate: (description) => !isEmpty(description),
|
|
235
|
+
errorMessage: "fieldIsRequired"
|
|
236
|
+
},
|
|
237
|
+
settlorExemptionReason: {
|
|
238
|
+
modes: ["blur"],
|
|
239
|
+
validate: (reasons) => Boolean(reasons?.length),
|
|
240
|
+
errorMessage: "fieldIsRequired"
|
|
241
|
+
},
|
|
242
|
+
country: {
|
|
243
|
+
modes: ["blur"],
|
|
244
|
+
validate: (country) => !!country,
|
|
245
|
+
errorMessage: "fieldIsRequired"
|
|
246
|
+
},
|
|
247
|
+
legalCompanyName: {
|
|
248
|
+
modes: ["blur"],
|
|
249
|
+
validate: (name) => !!name,
|
|
250
|
+
errorMessage: "fieldIsRequired"
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
const CHARACTERS_LIMIT = 256;
|
|
254
|
+
const leTypeCardDetails = {
|
|
255
|
+
[LegalEntityTypes.INDIVIDUAL]: {
|
|
256
|
+
id: "individual",
|
|
257
|
+
name: "naturalPersonTitle",
|
|
258
|
+
description: "naturalPersonDescription"
|
|
259
|
+
},
|
|
260
|
+
[LegalEntityTypes.ORGANIZATION]: {
|
|
261
|
+
id: "organization",
|
|
262
|
+
name: "businessEntityTitle",
|
|
263
|
+
description: "businessEntityDescription"
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
const convertExistingTrustMemberToDefaultData = (trustMember, allowMoreRolesForMainRootTrusteeEnabled) => {
|
|
267
|
+
if (!trustMember) {
|
|
268
|
+
return {};
|
|
269
|
+
}
|
|
270
|
+
if (allowMoreRolesForMainRootTrusteeEnabled && trustMember.trustMemberType === "rootTrustee") {
|
|
271
|
+
return convertRootTrusteeTrustMember(trustMember);
|
|
272
|
+
}
|
|
273
|
+
return convertExistingTrustMember(trustMember);
|
|
274
|
+
};
|
|
275
|
+
const TrustRoleAndEntityType = (props) => {
|
|
276
|
+
const { t: commonT } = useTranslation("common");
|
|
277
|
+
const { t: trustT } = useTranslation("trust");
|
|
278
|
+
const {
|
|
279
|
+
existingTrustMember,
|
|
280
|
+
isOrganizationSettlorWithExemptionEnabled,
|
|
281
|
+
onChange,
|
|
282
|
+
id,
|
|
283
|
+
country,
|
|
284
|
+
fieldValidationErrors,
|
|
285
|
+
formVerificationErrors
|
|
286
|
+
} = props;
|
|
287
|
+
const trustRoleAndEntityTypeCountry = country;
|
|
288
|
+
let mergedProps = props;
|
|
289
|
+
mergedProps = mergeFieldMetadataIntoProps(
|
|
290
|
+
"legalCompanyName",
|
|
291
|
+
resolveFieldMetadata(
|
|
292
|
+
defaultFieldConfig[trustRoleAndEntityTypeCountry],
|
|
293
|
+
{},
|
|
294
|
+
defaultFieldMetadata
|
|
295
|
+
),
|
|
296
|
+
mergedProps
|
|
297
|
+
);
|
|
298
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
299
|
+
const allowMoreRolesForMainRootTrusteeEnabled = isExperimentEnabled(
|
|
300
|
+
"AllowMoreRolesForMainRootTrustee"
|
|
301
|
+
);
|
|
302
|
+
const defaultData = convertExistingTrustMemberToDefaultData(
|
|
303
|
+
existingTrustMember,
|
|
304
|
+
allowMoreRolesForMainRootTrusteeEnabled
|
|
305
|
+
);
|
|
306
|
+
const formUtils = createFormUtils(mergedProps, commonT);
|
|
307
|
+
const decideFields = (data2) => {
|
|
308
|
+
if (data2.role?.includes("undefinedBeneficiary")) {
|
|
309
|
+
return ["role", "descriptionUndefinedBeneficiary"];
|
|
310
|
+
}
|
|
311
|
+
if (data2.role?.length) {
|
|
312
|
+
if (isOrganizationSettlorWithExemptionEnabled && isOrganizationAndSettlor(data2)) {
|
|
313
|
+
return ["role", "entityType", "settlorExemptionReason", "country", "legalCompanyName"];
|
|
314
|
+
}
|
|
315
|
+
if (couldBeExemptSettlor(data2, country)) {
|
|
316
|
+
return isExemptSettlor(data2) ? ["role", "entityType", "settlorExemptionReason", "firstName", "lastName"] : ["role", "entityType", "settlorExemptionReason"];
|
|
317
|
+
}
|
|
318
|
+
return allowMoreRolesForMainRootTrusteeEnabled ? ["role", "entityType", "trustMemberType"] : ["role", "entityType"];
|
|
319
|
+
}
|
|
320
|
+
return ["role"];
|
|
321
|
+
};
|
|
322
|
+
const { data, valid, schema, errors, fieldProblems, handleChangeFor, isValid } = useForm({
|
|
323
|
+
...props,
|
|
324
|
+
schema: decideFields,
|
|
325
|
+
rules: roleAndTypeValidationRules,
|
|
326
|
+
defaultData,
|
|
327
|
+
fieldProblems: fieldValidationErrors
|
|
328
|
+
});
|
|
329
|
+
const availableRoles = allowMoreRolesForMainRootTrusteeEnabled && existingTrustMember?.trustMemberType === "rootTrustee" ? getAvailableRolesByTrustMemberTypeAndLegalEntityType(data.role, existingTrustMember) : getAvailableRoles(data.role);
|
|
330
|
+
const { data: exemptSettlorLe } = useLegalEntity(
|
|
331
|
+
isOrganizationSettlorWithExemptionEnabled && existingTrustMember && existingTrustMember.trustMemberType === "exemptSettlor" && existingTrustMember.legalEntityId !== isNewEntity && existingTrustMember.roles !== void 0 && existingTrustMember.roles.length === 1 && existingTrustMember.roles[0] === "settlor" ? existingTrustMember.legalEntityId : skipToken
|
|
332
|
+
);
|
|
333
|
+
useEffect(() => {
|
|
334
|
+
if (exemptSettlorLe && exemptSettlorLe.organization) {
|
|
335
|
+
handleChangeFor("country")(exemptSettlorLe.organization.registeredAddress.country);
|
|
336
|
+
}
|
|
337
|
+
}, [exemptSettlorLe]);
|
|
338
|
+
useEffect(() => {
|
|
339
|
+
onChange?.({
|
|
340
|
+
schema,
|
|
341
|
+
data,
|
|
342
|
+
errors,
|
|
343
|
+
valid,
|
|
344
|
+
isValid,
|
|
345
|
+
dataStoreId: id,
|
|
346
|
+
fieldProblems
|
|
347
|
+
});
|
|
348
|
+
}, [schema, data, isValid, commonT, errors, valid, id, fieldProblems]);
|
|
349
|
+
const onInputDescription = (e) => {
|
|
350
|
+
const { value } = e.currentTarget;
|
|
351
|
+
handleChangeFor("descriptionUndefinedBeneficiary")(value);
|
|
352
|
+
};
|
|
353
|
+
const changeRoles = (roles) => {
|
|
354
|
+
handleChangeFor("role")(roles);
|
|
355
|
+
if (roles.includes("undefinedBeneficiary")) {
|
|
356
|
+
handleChangeFor("entityType")(void 0);
|
|
357
|
+
} else {
|
|
358
|
+
handleChangeFor("descriptionUndefinedBeneficiary")(void 0);
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
const changeSettlorExemptionReasons = (exemptionReasons) => {
|
|
362
|
+
if (exemptionReasons.includes("noneOfTheAbove")) {
|
|
363
|
+
handleChangeFor("settlorExemptionReason")(
|
|
364
|
+
data.settlorExemptionReason?.includes("noneOfTheAbove") ? exemptionReasons.filter((reason) => reason !== "noneOfTheAbove") : ["noneOfTheAbove"]
|
|
365
|
+
);
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
368
|
+
handleChangeFor("settlorExemptionReason")(exemptionReasons);
|
|
369
|
+
};
|
|
370
|
+
const nameProps = getFieldProps(props, nameFields);
|
|
371
|
+
const onEntityTypeChange = (value) => {
|
|
372
|
+
if (isOrganizationSettlorWithExemptionEnabled && value === LegalEntityTypes.ORGANIZATION && data.role?.length === 1 && data.role[0] === "settlor") {
|
|
373
|
+
changeSettlorExemptionReasons(["professionalServiceProvider"]);
|
|
374
|
+
}
|
|
375
|
+
handleChangeFor("entityType")(value);
|
|
376
|
+
};
|
|
377
|
+
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-trust__role-and-entity-type adyen-kyc-u-width-full", children: [
|
|
378
|
+
/* @__PURE__ */ jsx(Header, { title: commonT(($) => $["roleAndEntityType"]) }),
|
|
379
|
+
/* @__PURE__ */ jsx(
|
|
380
|
+
ErrorPanel,
|
|
381
|
+
{
|
|
382
|
+
verificationErrors: formVerificationErrors,
|
|
383
|
+
validationErrors: fieldValidationErrors,
|
|
384
|
+
formUtils,
|
|
385
|
+
id: "ariaErrorField"
|
|
386
|
+
}
|
|
387
|
+
),
|
|
388
|
+
/* @__PURE__ */ jsx(
|
|
389
|
+
Field,
|
|
390
|
+
{
|
|
391
|
+
el: "fieldset",
|
|
392
|
+
name: "role",
|
|
393
|
+
label: formUtils.getLabel("role", "selectTheApplicableRoles"),
|
|
394
|
+
errorMessage: formUtils.getErrorMessage("role", errors, fieldProblems),
|
|
395
|
+
isValid: valid.role,
|
|
396
|
+
disabled: availableRoles.length === 0,
|
|
397
|
+
showErrorIconBottom: true,
|
|
398
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
399
|
+
MultiSelectList,
|
|
400
|
+
{
|
|
401
|
+
...childProps,
|
|
402
|
+
options: Object.values(TrustMemberTypes),
|
|
403
|
+
selected: data.role ?? [],
|
|
404
|
+
onSelect: changeRoles,
|
|
405
|
+
mapToSelectItem: (role) => ({
|
|
406
|
+
...makeSelectItemForRole(role, commonT),
|
|
407
|
+
disabled: !availableRoles.includes(role)
|
|
408
|
+
})
|
|
409
|
+
}
|
|
410
|
+
)
|
|
411
|
+
}
|
|
412
|
+
),
|
|
413
|
+
schema?.includes("entityType") && /* @__PURE__ */ jsx(
|
|
414
|
+
Field,
|
|
415
|
+
{
|
|
416
|
+
el: "fieldset",
|
|
417
|
+
name: "entityType",
|
|
418
|
+
errorMessage: formUtils.getErrorMessage("entityType", errors, fieldProblems),
|
|
419
|
+
label: formUtils.getLabel("entityType", "whatTypeOfYourMembersEntity"),
|
|
420
|
+
classNameModifiers: ["entityType"],
|
|
421
|
+
disabled: Boolean(existingTrustMember),
|
|
422
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
423
|
+
TileGroup,
|
|
424
|
+
{
|
|
425
|
+
...childProps,
|
|
426
|
+
name: "entityType",
|
|
427
|
+
tiles: trustMemberLegalEntityTypes.map((option) => ({
|
|
428
|
+
value: option,
|
|
429
|
+
label: trustT(($) => $[leTypeCardDetails[option].name]),
|
|
430
|
+
subTitle: trustT(($) => $[leTypeCardDetails[option].description])
|
|
431
|
+
})),
|
|
432
|
+
selected: data.entityType ?? "",
|
|
433
|
+
onChange: (value) => onEntityTypeChange(value),
|
|
434
|
+
isHorizontal: true,
|
|
435
|
+
"aria-required": true,
|
|
436
|
+
"aria-invalid": !valid.entityType
|
|
437
|
+
}
|
|
438
|
+
)
|
|
439
|
+
}
|
|
440
|
+
),
|
|
441
|
+
schema?.includes("descriptionUndefinedBeneficiary") && /* @__PURE__ */ jsx(
|
|
442
|
+
Field,
|
|
443
|
+
{
|
|
444
|
+
name: "descriptionUndefinedBeneficiary",
|
|
445
|
+
label: formUtils.getLabel("description"),
|
|
446
|
+
isValid: valid.descriptionUndefinedBeneficiary,
|
|
447
|
+
errorMessage: formUtils.getErrorMessage(
|
|
448
|
+
"descriptionUndefinedBeneficiary",
|
|
449
|
+
errors,
|
|
450
|
+
fieldProblems
|
|
451
|
+
),
|
|
452
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
453
|
+
TextArea,
|
|
454
|
+
{
|
|
455
|
+
...childProps,
|
|
456
|
+
name: "descriptionUndefinedBeneficiary",
|
|
457
|
+
value: data.descriptionUndefinedBeneficiary,
|
|
458
|
+
maxLength: CHARACTERS_LIMIT,
|
|
459
|
+
onInput: onInputDescription,
|
|
460
|
+
helper: trustT(($) => $["describeWhoIsABeneficiaryInYourTrust"]),
|
|
461
|
+
"aria-required": true,
|
|
462
|
+
"aria-invalid": !valid.descriptionUndefinedBeneficiary
|
|
463
|
+
}
|
|
464
|
+
)
|
|
465
|
+
}
|
|
466
|
+
),
|
|
467
|
+
schema?.includes("settlorExemptionReason") && !isOrganizationAndSettlor(data) && /* @__PURE__ */ jsx(
|
|
468
|
+
Field,
|
|
469
|
+
{
|
|
470
|
+
el: "fieldset",
|
|
471
|
+
name: "settlorExemptionReason",
|
|
472
|
+
label: formUtils.getLabel("settlorExemptionReason", "whichOfTheseApplyToTheSettlor"),
|
|
473
|
+
isValid: valid.settlorExemptionReason,
|
|
474
|
+
errorMessage: formUtils.getErrorMessage("settlorExemptionReason", errors, fieldProblems),
|
|
475
|
+
showErrorIconBottom: true,
|
|
476
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
477
|
+
MultiSelectList,
|
|
478
|
+
{
|
|
479
|
+
...childProps,
|
|
480
|
+
options: settlorExemptionReasonWithNoneOfTheAbove,
|
|
481
|
+
selected: data.settlorExemptionReason ?? [],
|
|
482
|
+
onSelect: changeSettlorExemptionReasons,
|
|
483
|
+
mapToSelectItem: (reason) => ({
|
|
484
|
+
id: reason,
|
|
485
|
+
name: trustT(($) => $[reason])
|
|
486
|
+
})
|
|
487
|
+
}
|
|
488
|
+
)
|
|
489
|
+
}
|
|
490
|
+
),
|
|
491
|
+
data.trustMemberType !== "rootTrustee" && (schema.includes("firstName") || schema.includes("lastName")) ? /* @__PURE__ */ jsx(
|
|
492
|
+
Name,
|
|
493
|
+
{
|
|
494
|
+
...nameProps,
|
|
495
|
+
data: {
|
|
496
|
+
firstName: defaultData.firstName,
|
|
497
|
+
lastName: defaultData.lastName
|
|
498
|
+
},
|
|
499
|
+
requiredFields: schema.filter(
|
|
500
|
+
(field) => nameFields.includes(field)
|
|
501
|
+
),
|
|
502
|
+
labels: {
|
|
503
|
+
firstName: "firstNameOfSettlor",
|
|
504
|
+
lastName: "lastNameOfSettlor",
|
|
505
|
+
enterNameExactlyAsAppearInID: "enterSettlorsFirstNameExactlyAsItAppearsInID",
|
|
506
|
+
enterLastNameExactlyAsAppearInID: "enterSettlorsLastNameExactlyAsItAppearsInID"
|
|
507
|
+
},
|
|
508
|
+
errors,
|
|
509
|
+
fieldValidationErrors: fieldProblems,
|
|
510
|
+
handleFieldChange: handleChangeFor,
|
|
511
|
+
valid,
|
|
512
|
+
dataStoreId: id
|
|
513
|
+
}
|
|
514
|
+
) : void 0,
|
|
515
|
+
isOrganizationSettlorWithExemptionEnabled && schema?.includes("country") && schema?.includes("legalCompanyName") ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
516
|
+
/* @__PURE__ */ jsx(
|
|
517
|
+
CountryField,
|
|
518
|
+
{
|
|
519
|
+
data: formUtils.getFieldData(data, COUNTRY_FIELD),
|
|
520
|
+
valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
|
|
521
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, COUNTRY_FIELD),
|
|
522
|
+
labels: formUtils.getFieldLabels(COUNTRY_FIELD),
|
|
523
|
+
readonly: false,
|
|
524
|
+
allowedCountries: void 0,
|
|
525
|
+
handleChangeFor
|
|
526
|
+
}
|
|
527
|
+
),
|
|
528
|
+
/* @__PURE__ */ jsx(
|
|
529
|
+
LegalCompanyNameField,
|
|
530
|
+
{
|
|
531
|
+
data: formUtils.getFieldData(data, LEGAL_COMPANY_NAME_FIELD),
|
|
532
|
+
valid: formUtils.getFieldValid(valid, LEGAL_COMPANY_NAME_FIELD),
|
|
533
|
+
errors: formUtils.getFieldErrors(errors, fieldProblems, LEGAL_COMPANY_NAME_FIELD),
|
|
534
|
+
labels: formUtils.getFieldLabels(LEGAL_COMPANY_NAME_FIELD),
|
|
535
|
+
helperText: getLegalCompanyNameHelperText(trustT, {
|
|
536
|
+
country: trustRoleAndEntityTypeCountry
|
|
537
|
+
}),
|
|
538
|
+
readonly: false,
|
|
539
|
+
handleChangeFor
|
|
540
|
+
}
|
|
541
|
+
)
|
|
542
|
+
] }) : void 0
|
|
543
|
+
] });
|
|
544
|
+
};
|
|
545
|
+
const mapTrustMemberToEntityAssociations = (trustMember) => {
|
|
546
|
+
if (trustMember.legalEntityId === isNewEntity) {
|
|
547
|
+
throw Error("Cannot map a new trust member, you must create it first");
|
|
548
|
+
}
|
|
549
|
+
if (trustMember.trustMemberType === "exemptSettlor")
|
|
550
|
+
return [
|
|
551
|
+
{
|
|
552
|
+
legalEntityId: trustMember.legalEntityId,
|
|
553
|
+
entityType: trustMember.legalEntityType,
|
|
554
|
+
type: TrustMemberTypes.SETTLOR,
|
|
555
|
+
settlorExemptionReason: trustMember.settlorExemptionReason,
|
|
556
|
+
name: trustMember.legalEntityType === LegalEntityTypes.INDIVIDUAL ? `${trustMember.exemptSettlorName?.firstName} ${trustMember.exemptSettlorName?.lastName}` : trustMember.name ?? ""
|
|
557
|
+
}
|
|
558
|
+
];
|
|
559
|
+
return trustMember.roles.map((role) => ({
|
|
560
|
+
legalEntityId: trustMember.legalEntityId,
|
|
561
|
+
type: role
|
|
562
|
+
}));
|
|
563
|
+
};
|
|
564
|
+
const addOrUpdateAssociatedTrustMember = async ({
|
|
565
|
+
newOrUpdated,
|
|
566
|
+
trust,
|
|
567
|
+
updateLegalEntity
|
|
568
|
+
}) => {
|
|
569
|
+
const otherAssociations = getOwnEntityAssociations(trust).filter(
|
|
570
|
+
(existingAssociation) => existingAssociation.legalEntityId !== newOrUpdated.legalEntityId
|
|
571
|
+
);
|
|
572
|
+
const updatedAssociations = mapTrustMemberToEntityAssociations(newOrUpdated);
|
|
573
|
+
const patchLE = {
|
|
574
|
+
entityAssociations: [...otherAssociations, ...updatedAssociations]
|
|
575
|
+
};
|
|
576
|
+
await updateLegalEntity({ ...patchLE, id: trust.id });
|
|
577
|
+
};
|
|
578
|
+
const updateRootTrusteeTrustMember = async ({
|
|
579
|
+
trustMember,
|
|
580
|
+
trust,
|
|
581
|
+
updateLegalEntity
|
|
582
|
+
}) => {
|
|
583
|
+
const otherAssociations = getOwnEntityAssociations(trust).filter(
|
|
584
|
+
(existingAssociation) => existingAssociation.legalEntityId !== trustMember.legalEntityId
|
|
585
|
+
);
|
|
586
|
+
const updatedAssociations = mapRootTrustMemberToEntityAssociations(trustMember);
|
|
587
|
+
const patchLE = {
|
|
588
|
+
entityAssociations: [...otherAssociations, ...updatedAssociations]
|
|
589
|
+
};
|
|
590
|
+
await updateLegalEntity({ ...patchLE, id: trust.id });
|
|
591
|
+
};
|
|
592
|
+
const mapRootTrustMemberToEntityAssociations = (trustMember) => trustMember.roles.filter((r) => r !== "secondaryTrustee").map((role) => ({
|
|
593
|
+
legalEntityId: trustMember.legalEntityId,
|
|
594
|
+
type: role
|
|
595
|
+
}));
|
|
596
|
+
const addOrUpdateUndefinedBeneficiary = async ({
|
|
597
|
+
newOrUpdated,
|
|
598
|
+
trust,
|
|
599
|
+
updateLegalEntity
|
|
600
|
+
}) => {
|
|
601
|
+
const otherUndefinedBeneficiaries = trust.trust?.undefinedBeneficiaryInfo?.filter(
|
|
602
|
+
(ub) => ub.reference !== newOrUpdated.reference
|
|
603
|
+
) ?? [];
|
|
604
|
+
const patchLE = {
|
|
605
|
+
trust: {
|
|
606
|
+
undefinedBeneficiaryInfo: [
|
|
607
|
+
...otherUndefinedBeneficiaries,
|
|
608
|
+
newOrUpdated.reference === isNewEntity ? {
|
|
609
|
+
description: newOrUpdated.description
|
|
610
|
+
} : {
|
|
611
|
+
reference: newOrUpdated.reference,
|
|
612
|
+
description: newOrUpdated.description
|
|
613
|
+
}
|
|
614
|
+
]
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
await updateLegalEntity({ ...patchLE, id: trust.id });
|
|
618
|
+
};
|
|
619
|
+
const createExemptSettlor = async ({
|
|
620
|
+
exemptSettlor,
|
|
621
|
+
trust,
|
|
622
|
+
handleCreateLegalEntity
|
|
623
|
+
}) => {
|
|
624
|
+
const exemptSettlorLE = {
|
|
625
|
+
type: LegalEntityTypes.INDIVIDUAL,
|
|
626
|
+
individual: {
|
|
627
|
+
name: {
|
|
628
|
+
firstName: exemptSettlor.exemptSettlorName?.firstName ?? "",
|
|
629
|
+
lastName: exemptSettlor.exemptSettlorName?.lastName ?? ""
|
|
630
|
+
},
|
|
631
|
+
residentialAddress: {
|
|
632
|
+
country: trust.trust.registeredAddress.country
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
return handleCreateLegalEntity(exemptSettlorLE);
|
|
637
|
+
};
|
|
638
|
+
const createOrganizationExemptSettlor = async ({
|
|
639
|
+
exemptSettlor,
|
|
640
|
+
handleCreateLegalEntity
|
|
641
|
+
}) => {
|
|
642
|
+
const exemptSettlorLE = {
|
|
643
|
+
type: LegalEntityTypes.ORGANIZATION,
|
|
644
|
+
organization: {
|
|
645
|
+
legalName: exemptSettlor.name ?? "",
|
|
646
|
+
registeredAddress: {
|
|
647
|
+
country: exemptSettlor.country ?? "NL"
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
return handleCreateLegalEntity(exemptSettlorLE);
|
|
652
|
+
};
|
|
653
|
+
const exemptSettlorNamesTheSame = (existingSettlor, newSettlor) => JSON.stringify(existingSettlor.exemptSettlorName) === JSON.stringify(newSettlor.exemptSettlorName);
|
|
654
|
+
const updateExemptSettlorName = async ({
|
|
655
|
+
exemptSettlor,
|
|
656
|
+
updateLegalEntity
|
|
657
|
+
}) => {
|
|
658
|
+
const exemptSettlorPatch = {
|
|
659
|
+
individual: {
|
|
660
|
+
name: {
|
|
661
|
+
firstName: exemptSettlor.exemptSettlorName?.firstName,
|
|
662
|
+
lastName: exemptSettlor.exemptSettlorName?.lastName
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
};
|
|
666
|
+
return updateLegalEntity({
|
|
667
|
+
...exemptSettlorPatch,
|
|
668
|
+
id: exemptSettlor.legalEntityId
|
|
669
|
+
});
|
|
670
|
+
};
|
|
671
|
+
const updateOrganizationExemptSettlorName = async ({
|
|
672
|
+
exemptSettlor,
|
|
673
|
+
updateLegalEntity
|
|
674
|
+
}) => {
|
|
675
|
+
const exemptSettlorPatch = {
|
|
676
|
+
organization: {
|
|
677
|
+
legalName: exemptSettlor.name,
|
|
678
|
+
registeredAddress: {
|
|
679
|
+
country: exemptSettlor.country
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
return updateLegalEntity({
|
|
684
|
+
...exemptSettlorPatch,
|
|
685
|
+
id: exemptSettlor.legalEntityId
|
|
686
|
+
});
|
|
687
|
+
};
|
|
688
|
+
const settlorExemptionReasonsList = "adyen-kyc-settlor-exemption-reasons-list";
|
|
689
|
+
const styles = {
|
|
690
|
+
settlorExemptionReasonsList
|
|
691
|
+
};
|
|
692
|
+
const formatRolesForSummary = (roles, commonT) => roles.map((role) => commonT(($) => $[getRoleName(role)])).join(", ");
|
|
693
|
+
const formatSettlorExemptionReasonsForSummary = (reasons, trustT) => /* @__PURE__ */ jsx("ul", { className: styles.settlorExemptionReasonsList, children: reasons.map((reason) => /* @__PURE__ */ jsx("li", { children: trustT(($) => $[reason]) }, reason)) });
|
|
694
|
+
const formatRoleAndEntityTypeSummary = (data, commonT, trustT, isOrganizationSettlorWithExemptionEnabled) => {
|
|
695
|
+
const { trustMemberType, roles } = data;
|
|
696
|
+
const role = formatRolesForSummary(roles, commonT);
|
|
697
|
+
switch (trustMemberType) {
|
|
698
|
+
case "undefinedBeneficiary":
|
|
699
|
+
return {
|
|
700
|
+
role,
|
|
701
|
+
descriptionUndefinedBeneficiary: data.description
|
|
702
|
+
};
|
|
703
|
+
case "exemptSettlor":
|
|
704
|
+
return {
|
|
705
|
+
role,
|
|
706
|
+
entityType: trustT(($) => $[data.legalEntityType]),
|
|
707
|
+
firstName: data.exemptSettlorName?.firstName,
|
|
708
|
+
lastName: data.exemptSettlorName?.lastName,
|
|
709
|
+
country: isOrganizationSettlorWithExemptionEnabled ? data.country : void 0,
|
|
710
|
+
legalCompanyName: isOrganizationSettlorWithExemptionEnabled ? data.name : void 0,
|
|
711
|
+
settlorExemptionReason: summaryItem(
|
|
712
|
+
"otherInformation",
|
|
713
|
+
formatSettlorExemptionReasonsForSummary(data.settlorExemptionReason ?? [], trustT)
|
|
714
|
+
)
|
|
715
|
+
};
|
|
716
|
+
case "company":
|
|
717
|
+
case "rootTrustee":
|
|
718
|
+
case "regular":
|
|
719
|
+
return {};
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
const summary = {
|
|
723
|
+
formId: "summary",
|
|
724
|
+
formName: "summary"
|
|
725
|
+
};
|
|
726
|
+
const regularForms = {
|
|
727
|
+
roleAndEntityType: {
|
|
728
|
+
formId: "roleAndEntityType",
|
|
729
|
+
formName: "roleAndEntityType",
|
|
730
|
+
fields: ["role", "entityType"]
|
|
731
|
+
},
|
|
732
|
+
memberDetails: {
|
|
733
|
+
formId: "memberDetails",
|
|
734
|
+
formName: "memberDetails"
|
|
735
|
+
},
|
|
736
|
+
summary
|
|
737
|
+
};
|
|
738
|
+
const undefinedBeneficiaryForms = {
|
|
739
|
+
roleAndEntityType: {
|
|
740
|
+
formId: "roleAndEntityType",
|
|
741
|
+
formName: "roleAndEntityType",
|
|
742
|
+
fields: ["role", "entityType", "descriptionUndefinedBeneficiary"]
|
|
743
|
+
},
|
|
744
|
+
summary
|
|
745
|
+
};
|
|
746
|
+
const exemptSettlorForms = {
|
|
747
|
+
roleAndEntityType: {
|
|
748
|
+
formId: "roleAndEntityType",
|
|
749
|
+
formName: "roleAndEntityType",
|
|
750
|
+
fields: ["role", "entityType", "settlorExemptionReason"]
|
|
751
|
+
},
|
|
752
|
+
summary
|
|
753
|
+
};
|
|
754
|
+
const decideForms = (trustMember) => {
|
|
755
|
+
if (trustMember === "incomplete") return regularForms;
|
|
756
|
+
switch (trustMember.trustMemberType) {
|
|
757
|
+
case "undefinedBeneficiary":
|
|
758
|
+
return undefinedBeneficiaryForms;
|
|
759
|
+
case "exemptSettlor":
|
|
760
|
+
return exemptSettlorForms;
|
|
761
|
+
case "rootTrustee":
|
|
762
|
+
return exemptSettlorForms;
|
|
763
|
+
case "regular":
|
|
764
|
+
case "company":
|
|
765
|
+
return regularForms;
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
const convertDataToTrustMember = (data, existingTrustMember, isOrganizationSettlorWithExemptionReasonEnabled = false) => {
|
|
769
|
+
const existingId = existingTrustMember ? existingTrustMember.trustMemberType === "undefinedBeneficiary" ? existingTrustMember.reference : existingTrustMember.legalEntityId : void 0;
|
|
770
|
+
if (data.trustMemberType === "rootTrustee") {
|
|
771
|
+
return {
|
|
772
|
+
trustMemberType: "rootTrustee",
|
|
773
|
+
roles: data.role ?? [],
|
|
774
|
+
legalEntityType: data.entityType ?? LegalEntityTypes.ORGANIZATION,
|
|
775
|
+
legalEntityId: "",
|
|
776
|
+
name: data.firstName ?? ""
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
if (data.role?.length) {
|
|
780
|
+
if (isExemptSettlor(data)) {
|
|
781
|
+
if (isOrganizationSettlorWithExemptionReasonEnabled && data.entityType === LegalEntityTypes.ORGANIZATION) {
|
|
782
|
+
return {
|
|
783
|
+
trustMemberType: "exemptSettlor",
|
|
784
|
+
roles: [TrustMemberTypes.SETTLOR],
|
|
785
|
+
legalEntityType: LegalEntityTypes.ORGANIZATION,
|
|
786
|
+
legalEntityId: existingId ?? isNewEntity,
|
|
787
|
+
name: data.legalCompanyName ?? "",
|
|
788
|
+
settlorExemptionReason: ["professionalServiceProvider"],
|
|
789
|
+
country: data.country
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
return {
|
|
793
|
+
trustMemberType: "exemptSettlor",
|
|
794
|
+
roles: [TrustMemberTypes.SETTLOR],
|
|
795
|
+
legalEntityType: LegalEntityTypes.INDIVIDUAL,
|
|
796
|
+
settlorExemptionReason: data.settlorExemptionReason.filter(
|
|
797
|
+
(reason) => reason !== "noneOfTheAbove"
|
|
798
|
+
),
|
|
799
|
+
exemptSettlorName: {
|
|
800
|
+
firstName: data.firstName ?? "",
|
|
801
|
+
lastName: data.lastName ?? ""
|
|
802
|
+
},
|
|
803
|
+
legalEntityId: existingId ?? isNewEntity
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
if (data.role.includes("undefinedBeneficiary"))
|
|
807
|
+
return {
|
|
808
|
+
trustMemberType: "undefinedBeneficiary",
|
|
809
|
+
roles: [TrustMemberTypes.UNDEFINED_BENEFICIARY],
|
|
810
|
+
description: data.descriptionUndefinedBeneficiary ?? "",
|
|
811
|
+
reference: existingId ?? isNewEntity
|
|
812
|
+
};
|
|
813
|
+
if (data.entityType === LegalEntityTypes.ORGANIZATION) {
|
|
814
|
+
return {
|
|
815
|
+
trustMemberType: "company",
|
|
816
|
+
roles: data.role,
|
|
817
|
+
legalEntityType: LegalEntityTypes.ORGANIZATION,
|
|
818
|
+
legalEntityId: existingId ?? isNewEntity,
|
|
819
|
+
name: data.legalCompanyName ?? "",
|
|
820
|
+
country: data.country
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
if (data.entityType === LegalEntityTypes.INDIVIDUAL)
|
|
824
|
+
return {
|
|
825
|
+
trustMemberType: "regular",
|
|
826
|
+
roles: data.role,
|
|
827
|
+
legalEntityType: LegalEntityTypes.INDIVIDUAL,
|
|
828
|
+
legalEntityId: existingId ?? isNewEntity,
|
|
829
|
+
name: ""
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
return "incomplete";
|
|
833
|
+
};
|
|
834
|
+
const logger = createLogger();
|
|
835
|
+
function RoleAndTypeDropin({
|
|
836
|
+
trust,
|
|
837
|
+
trustMemberLe,
|
|
838
|
+
existingTrustMember,
|
|
839
|
+
navigateToFullDropinFor,
|
|
840
|
+
navigateBack,
|
|
841
|
+
country
|
|
842
|
+
}) {
|
|
843
|
+
const { t: commonT } = useTranslation("common");
|
|
844
|
+
const { t: trustT } = useTranslation("trust");
|
|
845
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
846
|
+
const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
|
|
847
|
+
const [trustMember, setTrustMember] = useState(
|
|
848
|
+
existingTrustMember ?? "incomplete"
|
|
849
|
+
);
|
|
850
|
+
const [shouldValidate, setShouldValidate] = useState(false);
|
|
851
|
+
const { showToast } = useToastContext();
|
|
852
|
+
const isOrganizationSettlorWithExemptionReasonEnabled = (country2) => country2 === CountryCodes.Australia;
|
|
853
|
+
const isOrganizationSettlorWithExemptionEnabled = isOrganizationSettlorWithExemptionReasonEnabled(
|
|
854
|
+
trust?.trust?.countryOfGoverningLaw
|
|
855
|
+
);
|
|
856
|
+
const formList = decideForms(trustMember);
|
|
857
|
+
const forms = Object.values(formList);
|
|
858
|
+
const [formValidity, setFormValidity] = useState({
|
|
859
|
+
roleAndEntityType: false
|
|
860
|
+
});
|
|
861
|
+
const [activeForm, setActiveForm] = useState(regularForms.roleAndEntityType);
|
|
862
|
+
const isSummaryStep = activeForm.formId === summaryStep.formId;
|
|
863
|
+
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
864
|
+
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
865
|
+
const addOrUpdateTrustMember = async (updated, existing) => {
|
|
866
|
+
if (existing?.trustMemberType === "undefinedBeneficiary" && updated.trustMemberType === "undefinedBeneficiary" && existing.description === updated.description) {
|
|
867
|
+
await updateLegalEntity(trustMemberLe);
|
|
868
|
+
navigateBack();
|
|
869
|
+
return;
|
|
870
|
+
}
|
|
871
|
+
if (trust === void 0) {
|
|
872
|
+
throw new Error("No associated trust");
|
|
873
|
+
}
|
|
874
|
+
try {
|
|
875
|
+
switch (updated.trustMemberType) {
|
|
876
|
+
case "undefinedBeneficiary":
|
|
877
|
+
await addOrUpdateUndefinedBeneficiary({
|
|
878
|
+
newOrUpdated: updated,
|
|
879
|
+
trust,
|
|
880
|
+
updateLegalEntity
|
|
881
|
+
});
|
|
882
|
+
break;
|
|
883
|
+
case "exemptSettlor":
|
|
884
|
+
if (!existing) {
|
|
885
|
+
const newSettlorLE = isOrganizationSettlorWithExemptionEnabled && updated.legalEntityType === "organization" ? await createOrganizationExemptSettlor({
|
|
886
|
+
exemptSettlor: updated,
|
|
887
|
+
handleCreateLegalEntity: createLegalEntity
|
|
888
|
+
}) : await createExemptSettlor({
|
|
889
|
+
exemptSettlor: updated,
|
|
890
|
+
trust,
|
|
891
|
+
handleCreateLegalEntity: createLegalEntity
|
|
892
|
+
});
|
|
893
|
+
updated.legalEntityId = newSettlorLE.id;
|
|
894
|
+
}
|
|
895
|
+
if (existing && !exemptSettlorNamesTheSame(existing, updated)) {
|
|
896
|
+
await updateExemptSettlorName({
|
|
897
|
+
exemptSettlor: updated,
|
|
898
|
+
updateLegalEntity
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
if (existing && isOrganizationSettlorWithExemptionEnabled && updated.legalEntityType === "organization") {
|
|
902
|
+
await updateOrganizationExemptSettlorName({
|
|
903
|
+
exemptSettlor: updated,
|
|
904
|
+
updateLegalEntity
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
await addOrUpdateAssociatedTrustMember({
|
|
908
|
+
newOrUpdated: updated,
|
|
909
|
+
trust,
|
|
910
|
+
updateLegalEntity
|
|
911
|
+
});
|
|
912
|
+
break;
|
|
913
|
+
case "regular":
|
|
914
|
+
case "company":
|
|
915
|
+
await addOrUpdateAssociatedTrustMember({
|
|
916
|
+
newOrUpdated: updated,
|
|
917
|
+
trust,
|
|
918
|
+
updateLegalEntity
|
|
919
|
+
});
|
|
920
|
+
break;
|
|
921
|
+
case "rootTrustee":
|
|
922
|
+
if (allowMoreRolesForMainRootTrustee && existing) {
|
|
923
|
+
existing.roles = updated.roles;
|
|
924
|
+
await updateRootTrusteeTrustMember({
|
|
925
|
+
trustMember: existing,
|
|
926
|
+
trust,
|
|
927
|
+
updateLegalEntity
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
break;
|
|
931
|
+
default:
|
|
932
|
+
logger.warn(
|
|
933
|
+
`Updating trust member type "${updated.trustMemberType}" is not implemented.`
|
|
934
|
+
);
|
|
935
|
+
}
|
|
936
|
+
showToast({ label: commonT(($) => $["successfullyUpdatedDetails"]), variant: "success" });
|
|
937
|
+
navigateBack();
|
|
938
|
+
} catch (err) {
|
|
939
|
+
logger.error(err);
|
|
940
|
+
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
941
|
+
}
|
|
942
|
+
};
|
|
943
|
+
const summaryData = trustMember === "incomplete" ? {} : {
|
|
944
|
+
roleAndEntityType: formatRoleAndEntityTypeSummary(
|
|
945
|
+
trustMember,
|
|
946
|
+
commonT,
|
|
947
|
+
trustT,
|
|
948
|
+
isOrganizationSettlorWithExemptionEnabled
|
|
949
|
+
)
|
|
950
|
+
};
|
|
951
|
+
const onNavigateToNextStep = () => {
|
|
952
|
+
if (isSummaryStep && trustMember !== "incomplete") {
|
|
953
|
+
addOrUpdateTrustMember(trustMember, existingTrustMember);
|
|
954
|
+
return;
|
|
955
|
+
}
|
|
956
|
+
gotoFormByFormIndex(forms.findIndex((form) => form.formId === activeForm.formId) + 1);
|
|
957
|
+
};
|
|
958
|
+
const onTrustMemberChange = ({
|
|
959
|
+
data,
|
|
960
|
+
isValid = false,
|
|
961
|
+
dataStoreId = void 0
|
|
962
|
+
}) => {
|
|
963
|
+
if (dataStoreId) {
|
|
964
|
+
setFormValidity({ ...formValidity, [dataStoreId]: isValid });
|
|
965
|
+
}
|
|
966
|
+
setTrustMember(
|
|
967
|
+
convertDataToTrustMember(
|
|
968
|
+
data,
|
|
969
|
+
existingTrustMember,
|
|
970
|
+
isOrganizationSettlorWithExemptionEnabled
|
|
971
|
+
)
|
|
972
|
+
);
|
|
973
|
+
};
|
|
974
|
+
const saveRolesAndNavigate = async () => {
|
|
975
|
+
if (trustMember === "incomplete") return;
|
|
976
|
+
if (hasRolesChanged(trustMember.roles, existingTrustMember?.roles)) {
|
|
977
|
+
addOrUpdateTrustMember(trustMember, existingTrustMember);
|
|
978
|
+
}
|
|
979
|
+
navigateBack();
|
|
980
|
+
};
|
|
981
|
+
const hasRolesChanged = (newRoles = [], existingRoles = []) => newRoles.length !== existingRoles.length || !newRoles.every((newRole) => existingRoles.includes(newRole));
|
|
982
|
+
const formsWithValidity = forms.map((form) => ({
|
|
983
|
+
formId: form.formId,
|
|
984
|
+
formName: form.formName,
|
|
985
|
+
isValid: formValidity[form.formId]
|
|
986
|
+
}));
|
|
987
|
+
const gotoFormByFormIndex = (formIndex) => {
|
|
988
|
+
const targetForm = forms[formIndex];
|
|
989
|
+
if (!formValidity.roleAndEntityType || trustMember === "incomplete") {
|
|
990
|
+
setShouldValidate(true);
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
if (trustMember.trustMemberType === "regular" || trustMember.trustMemberType === "company") {
|
|
994
|
+
if (targetForm.formId === regularForms.memberDetails.formId) {
|
|
995
|
+
navigateToFullDropinFor(trustMember);
|
|
996
|
+
return;
|
|
997
|
+
}
|
|
998
|
+
if (targetForm.formId === summaryStep.formId) return;
|
|
999
|
+
}
|
|
1000
|
+
setActiveForm(targetForm);
|
|
1001
|
+
};
|
|
1002
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1003
|
+
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__sidebar-wrapper", children: /* @__PURE__ */ jsx(
|
|
1004
|
+
FormNavigation,
|
|
1005
|
+
{
|
|
1006
|
+
forms: formsWithValidity,
|
|
1007
|
+
activeForm: formsWithValidity.find((form) => form.formId === activeForm.formId),
|
|
1008
|
+
taskName: "trustMembers",
|
|
1009
|
+
gotoForm: gotoFormByFormIndex
|
|
1010
|
+
}
|
|
1011
|
+
) }),
|
|
1012
|
+
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-container", children: [
|
|
1013
|
+
/* @__PURE__ */ jsx(
|
|
1014
|
+
"div",
|
|
1015
|
+
{
|
|
1016
|
+
className: activeForm.formId !== "roleAndEntityType" ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
|
|
1017
|
+
children: /* @__PURE__ */ jsx(
|
|
1018
|
+
TrustRoleAndEntityType,
|
|
1019
|
+
{
|
|
1020
|
+
id: "roleAndEntityType",
|
|
1021
|
+
existingTrustMember,
|
|
1022
|
+
onChange: onTrustMemberChange,
|
|
1023
|
+
shouldValidate,
|
|
1024
|
+
isOrganizationSettlorWithExemptionEnabled,
|
|
1025
|
+
country
|
|
1026
|
+
}
|
|
1027
|
+
)
|
|
1028
|
+
}
|
|
1029
|
+
),
|
|
1030
|
+
isSummaryStep && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-form-wrapper", children: /* @__PURE__ */ jsx(
|
|
1031
|
+
Summary,
|
|
1032
|
+
{
|
|
1033
|
+
data: summaryData,
|
|
1034
|
+
forms: [undefinedBeneficiaryForms.roleAndEntityType],
|
|
1035
|
+
gotoForm: gotoFormByFormIndex
|
|
1036
|
+
}
|
|
1037
|
+
) }),
|
|
1038
|
+
/* @__PURE__ */ jsx(
|
|
1039
|
+
ActionBar,
|
|
1040
|
+
{
|
|
1041
|
+
onNext: onNavigateToNextStep,
|
|
1042
|
+
onHome: saveRolesAndNavigate,
|
|
1043
|
+
nextButtonLabel: isSummaryStep ? commonT(($) => $["submit"]) : commonT(($) => $["continue"]),
|
|
1044
|
+
homeButtonLabel: commonT(($) => $["saveAndGoToOverview"])
|
|
1045
|
+
}
|
|
1046
|
+
)
|
|
1047
|
+
] })
|
|
1048
|
+
] });
|
|
1049
|
+
return /* @__PURE__ */ jsx(DropinLayout, { content });
|
|
1050
|
+
}
|
|
1051
|
+
function TrustMemberRoleAndTypePage({
|
|
1052
|
+
trustId,
|
|
1053
|
+
memberId: memberIdProp,
|
|
1054
|
+
navigateToFullDropinFor,
|
|
1055
|
+
navigateBack
|
|
1056
|
+
}) {
|
|
1057
|
+
const routeParams = useParams();
|
|
1058
|
+
const memberId = memberIdProp ?? routeParams.memberId;
|
|
1059
|
+
const { i18n } = useTranslation();
|
|
1060
|
+
const { data: memberLe } = useLegalEntity(memberId ?? skipToken);
|
|
1061
|
+
const { data: trustLe } = useLegalEntity(trustId ?? skipToken);
|
|
1062
|
+
const trustMembers = useTrustMembers();
|
|
1063
|
+
addResourceBundles(i18n, [
|
|
1064
|
+
{ ns: "trust", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/da-DK.json": () => import("./da-DK-Cd5IQPv3.js"), "../language/de-DE.json": () => import("./de-DE-C9NH2zMh.js"), "../language/en-US.json": () => import("./en-US-DYP6rAvA.js"), "../language/es-ES.json": () => import("./es-ES-DK-7qtDf.js"), "../language/fi-FI.json": () => import("./fi-FI-BJLU1JHw.js"), "../language/fr-FR.json": () => import("./fr-FR-B2je0smB.js"), "../language/it-IT.json": () => import("./it-IT-Dhwa9Ecj.js"), "../language/ja-JP.json": () => import("./ja-JP-Bc4U0S8-.js"), "../language/nl-NL.json": () => import("./nl-NL-B0fvINJj.js"), "../language/no-NO.json": () => import("./no-NO-Jw7Gae-a.js"), "../language/pt-BR.json": () => import("./pt-BR-BaTE6BB_.js"), "../language/sl-SI.json": () => import("./sl-SI-DbfswGh0.js"), "../language/sv-SE.json": () => import("./sv-SE-D_Efxy3s.js") }), `../language/${lang}.json`, 3) }
|
|
1065
|
+
]);
|
|
1066
|
+
if (!trustLe || memberId && !memberLe) {
|
|
1067
|
+
return /* @__PURE__ */ jsx(Loader, {});
|
|
1068
|
+
}
|
|
1069
|
+
const country = getLegalEntityCountry(memberLe ?? trustLe);
|
|
1070
|
+
const trustMember = memberId ? trustMembers.find(
|
|
1071
|
+
(tm) => tm.trustMemberType !== "undefinedBeneficiary" && tm.legalEntityId === memberId
|
|
1072
|
+
) : void 0;
|
|
1073
|
+
return /* @__PURE__ */ jsx(
|
|
1074
|
+
RoleAndTypeDropin,
|
|
1075
|
+
{
|
|
1076
|
+
trust: trustLe,
|
|
1077
|
+
trustMemberLe: memberLe,
|
|
1078
|
+
existingTrustMember: trustMember,
|
|
1079
|
+
country,
|
|
1080
|
+
navigateToFullDropinFor,
|
|
1081
|
+
navigateBack
|
|
1082
|
+
}
|
|
1083
|
+
);
|
|
1084
|
+
}
|
|
1085
|
+
export {
|
|
1086
|
+
TrustMemberRoleAndTypePage
|
|
1087
|
+
};
|