@adyen/kyc-components 4.4.0 → 4.5.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-CtSxtBKi.js → AcceptTermsOfServiceComponent-CecGGc1X.js} +14 -14
- package/dist/{AccountSetupRejected-Izp48yEO.js → AccountSetupRejected-SKRfXM45.js} +1 -1
- package/dist/{ActionBar-Ca6J5mWK.js → ActionBar-NfqEa4Lj.js} +1 -1
- package/dist/{Address-D_vmsuPk.js → Address-DmC7K_9S.js} +10 -10
- package/dist/{Avatar-CKx8J5lx.js → Avatar-DkqYMxqu.js} +1 -1
- package/dist/{BusinessFinancingComponent-DaxARiGM.js → BusinessFinancingComponent-cYBfPHpF.js} +5 -5
- package/dist/{BusinessFinancingDropin-Dd2HLLMa.js → BusinessFinancingDropin-jEPDLEm2.js} +106 -143
- package/dist/{BusinessFinancingPage-BOejVYXh.js → BusinessFinancingPage-D_bJLl-t.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-CTDOUjiA.js → BusinessTypeSelectionPage-CZeSwYus.js} +9 -9
- package/dist/{Checkbox-RZJnbRBZ.js → Checkbox-DEpPoJN_.js} +1 -1
- package/dist/{Confirm-DHTZz6n-.js → Confirm-CYgHkICM.js} +2 -2
- package/dist/{ConstitutionalDocument-CG6z6hOH.js → ConstitutionalDocument-DgivwkYj.js} +18 -18
- package/dist/{ContactDetails-X7roxa7M.js → ContactDetails-opl6-mP9.js} +7 -6
- package/dist/{ContextGuidance-DeZxHGha.js → ContextGuidance-gC4RuGIB.js} +1 -1
- package/dist/{CountryField-prWQNOFZ.js → CountryField-BNisulC2.js} +3 -3
- package/dist/{CreateIndividualComponent-Cr5P6AhY.js → CreateIndividualComponent-BaXw9qdQ.js} +5 -5
- package/dist/{CreateTransferInstrumentComponent-BUzLyFsB.js → CreateTransferInstrumentComponent-Dj0ENBoI.js} +4 -4
- package/dist/{Currency-BCTmbxvQ.js → Currency-C1POIMJZ.js} +9 -15
- package/dist/{CustomerSupport-BUSF6AeJ.js → CustomerSupport-BZYjtYIh.js} +10 -10
- package/dist/{DebugModal-DnwBnRrX.js → DebugModal-BfObi6jq.js} +7 -7
- package/dist/{DecisionMakerDetailsPage-l8dykx5K.js → DecisionMakerDetailsPage-B9TlNZ0D.js} +8 -8
- package/dist/{DecisionMakers-DwsykbVA.js → DecisionMakers-DH44nnKN.js} +20 -20
- package/dist/{Dropzone-BpVTBLdK.js → Dropzone-BbFC9YFN.js} +4 -4
- package/dist/{EmbeddedStatus-CiAT9LVT.js → EmbeddedStatus-C80N4YnY.js} +2 -2
- package/dist/{EndStateLayout-DmuB86Km.js → EndStateLayout-LuO-W__f.js} +1 -1
- package/dist/{EntityAssociation-B2agfeew.js → EntityAssociation-CqyEchYv.js} +4 -4
- package/dist/{EntityGuidanceStatus-ByQeAaJX.js → EntityGuidanceStatus-kD9uByJU.js} +3 -3
- package/dist/{ErrorPanel-Dc-0FFlw.js → ErrorPanel-Wws7gA5m.js} +1 -1
- package/dist/{Field-BCh4RjjH.js → Field-BnYaQCpL.js} +1 -1
- package/dist/{FormNavigation-Dw9vBfOE.js → FormNavigation-DdP2rb2I.js} +3 -3
- package/dist/{Individual.rules-Df2tyewj.js → Individual.rules-BOr9HYuB.js} +10 -6
- package/dist/{IndividualDropin-ffk4cENA.js → IndividualDropin-DQrqvsVq.js} +377 -64
- package/dist/{InputDate-lBYns5ES.js → InputDate-D7tf-vyK.js} +1 -1
- package/dist/{InputText-cE4sdkOF.js → InputText-DJmeZHiM.js} +2 -2
- package/dist/{Introduction-BLHqyzh4.js → Introduction-C5ZzdtBf.js} +4 -4
- package/dist/{JpAddress-DgMxCxUO.js → JpAddress-BLSFMUBF.js} +9 -9
- package/dist/{LandingLayout-DO4D3GZF.js → LandingLayout-DCtOMPr1.js} +1 -1
- package/dist/{LegalCompanyNameField-C2V3zE5H.js → LegalCompanyNameField-C4QSM1kF.js} +6 -6
- package/dist/{LegalRepresentativeDetailsPage-C-fi8ExM.js → LegalRepresentativeDetailsPage-BNnoUySl.js} +4 -4
- package/dist/{Link-C53bmm0L.js → Link-DHZbclel.js} +1 -1
- package/dist/{ListItem-DPoOuxMs.js → ListItem-DRdYYUwm.js} +2 -2
- package/dist/{LoaderWrapper-CyNmE5d5.js → LoaderWrapper-DbnjDZaG.js} +1 -1
- package/dist/{ManageIndividualComponent-D2TaeVp-.js → ManageIndividualComponent-B8NRYoKJ.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-B06SqV2S.js → ManageTermsOfServiceComponent-BhqRq0Vj.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-CD5CeLd4.js → ManageTransferInstrumentComponent-Cn_V6mz7.js} +14 -12
- package/dist/{MaskedInput-BiyWZvf9.js → MaskedInput-Bmnp6vfE.js} +4 -4
- package/dist/{MaybeModal-CQ9Nwb5m.js → MaybeModal-JqIe8Hi4.js} +2 -2
- package/dist/{Modal-B2axEGgw.js → Modal-C4g499L3.js} +15 -25
- package/dist/{Name-DF_giEzW.js → Name-BAP43zgz.js} +4 -4
- package/dist/NewSummary-D04coEyZ.js +60 -0
- package/dist/{OnboardingDropinComponent-JrMNoZpj.js → OnboardingDropinComponent-CYZHcP1A.js} +73 -72
- package/dist/{PayoutDetailsDropin-CiUSUC71.js → PayoutDetailsDropin-CDOhcFNG.js} +37 -38
- package/dist/{PayoutDetailsPage-DqQzTo4c.js → PayoutDetailsPage-B6ObdKoo.js} +5 -5
- package/dist/{RadioGroup-DoV1tEJl.js → RadioGroup-Brbd7IGZ.js} +1 -1
- package/dist/{RadioGroupCard-9aQGW7JN.js → RadioGroupCard-CLjm3HWF.js} +1 -1
- package/dist/{Review-ai4kHVX1.js → Review-CUs3fAkl.js} +6 -6
- package/dist/{RootBusinessDetailsPage-DSkrHvsT.js → RootBusinessDetailsPage-DbQaq7S-.js} +4 -4
- package/dist/{RootBusinessLinesPage-A0Tr3mxD.js → RootBusinessLinesPage-ClrIGBCx.js} +73 -74
- package/dist/{RootIndividualDetailsPage-Bq6hAuWB.js → RootIndividualDetailsPage-C7NXtN3M.js} +5 -5
- package/dist/{Select-DpfHA9OG.js → Select-DeoKjJst.js} +4 -4
- package/dist/{SignPCIComponent-BQiuhLUm.js → SignPCIComponent-CBm2s71f.js} +10 -10
- package/dist/{SingpassSelection-DZllhRC7.js → SingpassSelection-D3GBr1C7.js} +6 -6
- package/dist/{SoleProprietorshipPage-dW52UoqY.js → SoleProprietorshipPage-3kI9hRjQ.js} +3 -3
- package/dist/{SourceOfFundsPage-CP1y52UZ.js → SourceOfFundsPage-BaN1Heuy.js} +37 -32
- package/dist/{StepProgressIndicator-CbH70qse.js → StepProgressIndicator-DTMH_ysU.js} +1 -1
- package/dist/{StoreProvider-mHLtWums.js → StoreProvider-CDvuKNZP.js} +18 -20
- package/dist/{Summary-D-nudpZf.js → Summary-DrjyVpAf.js} +9 -7
- package/dist/{TaxInformationField-b3yhWTWD.js → TaxInformationField-P4kd2RBf.js} +19 -24
- package/dist/{TaxReportingDropin-B-8GeWGr.js → TaxReportingDropin-DoLfjPDT.js} +14 -14
- package/dist/{TextArea-C0PzOf5N.js → TextArea-8HzHbl8a.js} +2 -2
- package/dist/{TileGroup-CKUlaXGR.js → TileGroup-C7pJdtfG.js} +2 -2
- package/dist/{TrustDetailsPage-Czk6U1Tc.js → TrustDetailsPage-CZxWlMFk.js} +31 -32
- package/dist/{TrustMemberCompanyPage-DXT3RepM.js → TrustMemberCompanyPage-ChlEiIX1.js} +4 -4
- package/dist/{TrustMemberIndividualPage-DWmPqSUW.js → TrustMemberIndividualPage-D0ErvJ2Q.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-c23IPOaR.js → TrustMemberRoleAndTypePage--2DWDQYD.js} +21 -21
- package/dist/{TrustMembersOverview-BRNYhXYG.js → TrustMembersOverview-1pruZb7Q.js} +10 -10
- package/dist/{UnincorporatedPartnershipIndividualPage-CZVQg1Lm.js → UnincorporatedPartnershipIndividualPage-DY5POsz3.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-D3GMfr2u.js → UnincorporatedPartnershipMemberCompanyPage-CVS8HujV.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dwi-t1pR.js → UnincorporatedPartnershipMemberRoleAndTypePage-BiWrP7jm.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-D-hiEWen.js → UnincorporatedPartnershipMembersOverview-CwihTjBJ.js} +7 -7
- package/dist/{VerificationErrorAlert-Bv13UiEj.js → VerificationErrorAlert-C5fltP_W.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-8v5Nm_wk.js → ViewVerificationStatusComponent-THjhd99f.js} +2 -2
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual-configuration.js +2 -2
- package/dist/adyen-individual-status.js +2 -2
- package/dist/adyen-invited-decision-maker.js +7 -7
- package/dist/adyen-kyc-components.js +15 -15
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +2 -2
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/{bafinUtils-pwkl8kSq.js → bafinUtils-BPLSJ1MR.js} +1 -1
- package/dist/{bg-BG-DyX-yYYI.js → bg-BG-BnwkqGm9.js} +2 -2
- package/dist/{bg-BG-DqRXdvRT.js → bg-BG-C6dSR1jk.js} +2 -2
- package/dist/bg-BG-DKld3x63.js +13 -0
- package/dist/{commonValidators-Q1vH12Fp.js → commonValidators-MPgcG-b2.js} +1 -1
- package/dist/{cs-CZ-CmPmY5GZ.js → cs-CZ-B6atm9_Q.js} +2 -2
- package/dist/cs-CZ-BBLagJI6.js +13 -0
- package/dist/{cs-CZ-BD5bYeuJ.js → cs-CZ-BeMYkFfD.js} +2 -2
- package/dist/{da-DK-DaINWU5x.js → da-DK-Cv6XUSoW.js} +2 -2
- package/dist/da-DK-D9FgPh5e.js +13 -0
- package/dist/{da-DK-h8DYQ_Iq.js → da-DK-mUuPR2YO.js} +2 -2
- package/dist/{de-DE-KqZs1FFF.js → de-DE-BplDsJEb.js} +2 -2
- package/dist/de-DE-Cg_RNIr-.js +13 -0
- package/dist/{de-DE-LQE_LFFL.js → de-DE-CwT6O212.js} +2 -2
- package/dist/{dropinUtils-cvPDQGkm.js → dropinUtils-CH5elK0n.js} +15 -14
- package/dist/{el-GR-DGbzdIL0.js → el-GR-BuAfpG6u.js} +2 -2
- package/dist/el-GR-ZRGBgvMu.js +13 -0
- package/dist/{el-GR-Bn45KMp-.js → el-GR-dRK7xHn2.js} +2 -2
- package/dist/{en-US-BtFr9JRa.js → en-US-DIlZD5Wh.js} +7 -1
- package/dist/{en-US-CEnwRsyr.js → en-US-UidrdpJ0.js} +2 -2
- package/dist/es-ES-BZiC4JWr.js +13 -0
- package/dist/{es-ES-DdGmXdxO.js → es-ES-Bh8k9Zx8.js} +2 -2
- package/dist/{es-ES-DzGJ9DrB.js → es-ES-DRsix_Xn.js} +2 -2
- package/dist/{et-EE-D5SNtVsM.js → et-EE-BBnYC5q8.js} +2 -2
- package/dist/{et-EE-JKt5dMOQ.js → et-EE-BXiYapXy.js} +2 -2
- package/dist/et-EE-D_NmrrzQ.js +13 -0
- package/dist/{fi-FI-n9XAQuIy.js → fi-FI-BftTiz0c.js} +2 -2
- package/dist/fi-FI-CEH4BfU3.js +13 -0
- package/dist/{fi-FI-CIYa9SyS.js → fi-FI-DhUeTfn1.js} +2 -2
- package/dist/{formUtils-Cu4r_cE7.js → formUtils-Bl8SBmWK.js} +3 -3
- package/dist/{fr-FR-iD1onxpA.js → fr-FR-C6jxjXAI.js} +2 -2
- package/dist/{fr-FR-l5z31r7i.js → fr-FR-CocDMzBc.js} +2 -2
- package/dist/fr-FR-NxOktkWc.js +13 -0
- package/dist/{getName-D92TbZE4.js → getName-C_u_P9U0.js} +1 -1
- package/dist/{getProblemsForEntity-Cn6NNpx3.js → getProblemsForEntity-BZRck7Nu.js} +1 -1
- package/dist/{hr-HR-CAqaI1xJ.js → hr-HR-B_TEU3r4.js} +2 -2
- package/dist/{hr-HR-BtowKWUi.js → hr-HR-D9OGeEuB.js} +2 -2
- package/dist/hr-HR-D_MUIhtx.js +13 -0
- package/dist/{hu-HU-CRpdELm_.js → hu-HU-CX83V9tu.js} +2 -2
- package/dist/{hu-HU-MHIPehPS.js → hu-HU-DjaoFDqm.js} +2 -2
- package/dist/hu-HU-LxStrFGU.js +13 -0
- package/dist/{iframeWidget-LYI4Hywy.js → iframeWidget-DRlrwi6o.js} +4 -4
- package/dist/{isEmpty-BtKNXm_E.js → isEmpty-JkZqLeJ_.js} +1 -1
- package/dist/{it-IT-BAvmkEF8.js → it-IT-B4bk2Xev.js} +2 -2
- package/dist/{it-IT-DkiyBNl6.js → it-IT-CXlaZNIj.js} +2 -2
- package/dist/it-IT-OppZz3gW.js +13 -0
- package/dist/{ja-JP-B0Ox3Ixh.js → ja-JP-A6ArIIZ8.js} +2 -2
- package/dist/ja-JP-CethQRoG.js +13 -0
- package/dist/{ja-JP-g6VOUGXZ.js → ja-JP-DK55NCZY.js} +1 -2
- package/dist/{japanSupportUtils-Cjg3HGeh.js → japanSupportUtils-B6aNrTga.js} +1 -1
- package/dist/{localizeDateString-iKn35I7t.js → localizeDateString-DJzFcyYr.js} +1 -1
- package/dist/lt-LT-CBTFJxth.js +13 -0
- package/dist/{lt-LT-DDs3ngzd.js → lt-LT-CfQUS8PP.js} +2 -2
- package/dist/{lt-LT-DWs-lYAv.js → lt-LT-ww192lYg.js} +2 -2
- package/dist/{lv-LV-CdCU8ZaR.js → lv-LV-CpHy-ZoF.js} +2 -2
- package/dist/lv-LV-DTaBIHLh.js +13 -0
- package/dist/{lv-LV-CmB2-IO5.js → lv-LV-DoKxsoVR.js} +2 -2
- package/dist/{mapExistingFile-DAKnbl3q.js → mapExistingFile-ebhAtDpQ.js} +4 -4
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BwqkpwLG.js → mapJpAddressSchemaToAddressLocalizations-6-TZehkD.js} +2 -2
- package/dist/{mapLegalEntityToIndividualSchema-DHNvFq3z.js → mapLegalEntityToIndividualSchema-DV9h15hI.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-CFiPK7nF.js → mapTransferInstrumentToPayoutAccount-DtwUb1q5.js} +1 -1
- package/dist/{nl-NL-D7k3hkBl.js → nl-NL-BwWFlBOs.js} +2 -2
- package/dist/nl-NL-CYFznuWn.js +13 -0
- package/dist/{nl-NL-DV4NqPVW.js → nl-NL-J7XpCpQm.js} +2 -2
- package/dist/no-NO-BsEie1We.js +13 -0
- package/dist/{no-NO-B9618F4_.js → no-NO-CtDyNTm6.js} +2 -2
- package/dist/{no-NO-DOOgOJr1.js → no-NO-JWsSd7iY.js} +2 -2
- package/dist/{patternValidators-DHivz8FR.js → patternValidators-ORRO5SAA.js} +1 -1
- package/dist/pl-PL-BH_LPZJa.js +13 -0
- package/dist/{pl-PL-DqzUSnFK.js → pl-PL-CCX1rSGF.js} +2 -2
- package/dist/{pl-PL-Bvnak7w3.js → pl-PL-CLmmSNgn.js} +2 -2
- package/dist/{process-field-configurations-TVQJVhh6.js → process-field-configurations-Cb30tRmq.js} +3 -3
- package/dist/{pt-BR-BZkPZ0kK.js → pt-BR-BJOww8U1.js} +2 -2
- package/dist/pt-BR-C-YbDjn-.js +13 -0
- package/dist/{pt-BR-zuqB_CBf.js → pt-BR-D4BTdo_w.js} +2 -2
- package/dist/pt-PT-BTbVsews.js +13 -0
- package/dist/{pt-PT-DkfqmPrD.js → pt-PT-CL9VzmZE.js} +2 -2
- package/dist/{pt-PT-CFY1O_K0.js → pt-PT-DBZj2dDI.js} +2 -2
- package/dist/{resolveEnvironment-DRIoWKkq.js → resolveEnvironment-Btgj9fGu.js} +3 -3
- package/dist/ro-RO-C5PJhlmM.js +13 -0
- package/dist/{ro-RO-BEVRugNx.js → ro-RO-Cu1T3z6k.js} +2 -2
- package/dist/{ro-RO-7CJ4F5iB.js → ro-RO-DaU2--fX.js} +2 -2
- package/dist/{roleMetadata-23PazJen.js → roleMetadata-YdrYEXdt.js} +2 -2
- package/dist/{sk-SK-DubwJifw.js → sk-SK-B-1yRol7.js} +2 -2
- package/dist/{sk-SK-Bh7WfMNd.js → sk-SK-CEjJ-qZG.js} +2 -2
- package/dist/sk-SK-DO-AqRjE.js +13 -0
- package/dist/{sl-SI-CxGdSydw.js → sl-SI-BfO3xEJx.js} +2 -2
- package/dist/sl-SI-CJH14wbj.js +13 -0
- package/dist/{sl-SI-59OQIZ3f.js → sl-SI-C_4ajjU4.js} +2 -2
- package/dist/style.css +11 -9
- package/dist/styles-CLV89_hH.js +11 -9
- package/dist/{sv-SE-CgB54Aa4.js → sv-SE-CMLKzwtj.js} +2 -2
- package/dist/{sv-SE-CQWBP7n1.js → sv-SE-DKnUr7xo.js} +2 -2
- package/dist/sv-SE-ZsucW_Uj.js +13 -0
- package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
- package/dist/types/api/invitations/invitations.types.d.ts +14 -0
- package/dist/types/api/invitations/useCreateInvitation.d.ts +14 -0
- package/dist/types/components/Apps/tasks/TaskList/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -2
- package/dist/types/components/Business/forms/FinancialInformation/FinancialInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Business/forms/FinancialInformation/types.d.ts +7 -17
- package/dist/types/components/Business/forms/rules.d.ts +0 -1
- package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +0 -1
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +4 -4
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2607 -2607
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +4 -4
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +4 -5
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual.d.ts +5 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +1 -0
- package/dist/types/components/Individual/forms/Individual.types.d.ts +2 -0
- package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.d.ts +4 -0
- package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/InviteDetails/validate.d.ts +3 -0
- package/dist/types/components/Individual/forms/form-ids.d.ts +1 -1
- package/dist/types/components/Shared/FormNavigation/types.d.ts +2 -2
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/FinancialReportingDate/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +5 -5
- package/dist/types/components/Shared/fields/NumberOfEmployees/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/ReportedValueOptionField/ReportedValueOptionField.d.ts +3 -0
- package/dist/types/components/Shared/fields/ReportedValueOptionField/fieldConfig.d.ts +5 -0
- package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +10 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +3 -3
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +6 -6
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
- package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +2 -2
- package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +2 -2
- package/dist/types/context/ExperimentContext/types.d.ts +0 -4
- package/dist/types/core/models/api/financialReport.d.ts +7 -1
- package/dist/types/core/user-events.d.ts +1 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +5 -0
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +5 -0
- package/dist/types/embeds/individual-status/adyen-individual-status.types.d.ts +5 -0
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +5 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +5 -0
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.types.d.ts +5 -0
- package/dist/types/embeds/terms-of-service-status/adyen-terms-of-service-status.types.d.ts +5 -0
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.types.d.ts +5 -0
- package/dist/types/embeds/transfer-instrument-management/adyen-transfer-instrument-management.types.d.ts +5 -0
- package/dist/types/embeds/verification-status/adyen-verification-status.types.d.ts +5 -0
- package/dist/types/hooks/useForm/types.d.ts +3 -3
- package/dist/types/language/types.d.ts +3 -8
- package/dist/types/language/utils.d.ts +2 -2
- package/dist/types/types/errors/error-message.d.ts +2 -2
- package/dist/types/types/errors/remediation.d.ts +2 -2
- package/dist/types/types/form-configuration.d.ts +2 -2
- package/dist/types/types/form.d.ts +2 -2
- package/dist/types/utils/decisionMaker.d.ts +2 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +2 -2
- package/dist/types/utils/formUtils.d.ts +4 -3
- package/dist/types/utils/roleMetadata.d.ts +4 -4
- package/dist/{types-DW90uFG-.js → types-DItwm0zf.js} +2 -2
- package/dist/{types-s-Q2XpkZ.js → types-DV-k9m0i.js} +1 -1
- package/dist/{types-CCxHnxb7.js → types-DhC6v0PF.js} +1 -1
- package/dist/{types-DP1DvIeR.js → types-_ugkpUNx.js} +2 -6
- package/dist/{unincorporated-partnership-DPbAzJDe.js → unincorporated-partnership-CIe8e4wR.js} +1 -1
- package/dist/{useAssociatedLegalEntity-BEuHjBZz.js → useAssociatedLegalEntity-Cn5H9wTJ.js} +1 -1
- package/dist/{useBusinessDetailsData-BO8XWfJZ.js → useBusinessDetailsData-FR_NRvw9.js} +339 -313
- package/dist/{useCreateLegalEntity-Bk8GSKP1.js → useCreateLegalEntity-p2CrQlAX.js} +1 -1
- package/dist/{useForm-vad8DlLx.js → useForm-C8AWA3sh.js} +3 -3
- package/dist/{useFormContext-B5QKkdAI.js → useFormContext-C1SR24Ki.js} +7 -7
- package/dist/{FormWrapper-DBd93g5-.js → useGlobalData-CLlOpZnu.js} +66 -11
- package/dist/{useMultiForm-cC2wlHNB.js → useMultiForm-DPExov8c.js} +12 -6
- package/dist/{useOnboardingStatus-V-UqaVrD.js → useOnboardingStatus-BD-8KaSZ.js} +1 -1
- package/dist/{useScenarios-BbG9i_sD.js → useScenarios-DJzsH2gd.js} +1 -1
- package/dist/{useTermsOfServiceStatus-QeWE09L-.js → useTermsOfServiceStatus-CbE9Ro0N.js} +1 -1
- package/dist/{useToastContext-wDfBfnfF.js → useToastContext-D9-q58mO.js} +1 -1
- package/dist/{useUnincorporatedPartnershipMembers-qPE2KPx9.js → useUnincorporatedPartnershipMembers-DB6EK6uW.js} +4 -4
- package/dist/{useUpdateBusinessLines-Dt0n6cQU.js → useUpdateBusinessLines-1pywGJxr.js} +4 -4
- package/dist/{useUpdateLegalEntity-DZgtsmFg.js → useUpdateLegalEntity-BswSgPWT.js} +2 -2
- package/dist/{utils-DvL1qQJh.js → utils-B-6ygFSY.js} +3 -3
- package/dist/{utils-CXINiC_b.js → utils-BQ0Na9UT.js} +2 -2
- package/dist/{utils-t9bNKGqn.js → utils-CFBp4SLl.js} +1 -1
- package/dist/{utils-JAP5Kj4w.js → utils-D4c7_3F2.js} +6 -6
- package/dist/{utils-Cg8MDRUC.js → utils-DgFq9CIB.js} +1 -1
- package/dist/{validate-CkFqyHrv.js → validate-CdMI5st2.js} +5 -5
- package/dist/{validate-DmrKFNZ-.js → validate-D__xHxXc.js} +24 -12
- package/dist/{validationError-BZEfEJF0.js → validationError-NidfTgvm.js} +1 -1
- package/package.json +7 -17
- package/dist/bg-BG-CRbKoTLs.js +0 -13
- package/dist/cs-CZ-DR5Pfj3g.js +0 -13
- package/dist/da-DK-CG2NcTvu.js +0 -13
- package/dist/de-DE-NMS4xBab.js +0 -13
- package/dist/el-GR-DWM1mhuZ.js +0 -13
- package/dist/es-ES-BWe46jej.js +0 -13
- package/dist/et-EE-CylmXBkF.js +0 -13
- package/dist/fi-FI-larJ5zXy.js +0 -13
- package/dist/fr-FR-DVqpakkq.js +0 -13
- package/dist/hr-HR-C-Hn5lAD.js +0 -13
- package/dist/hu-HU-DynB7VhD.js +0 -13
- package/dist/it-IT-M7AqGzBo.js +0 -13
- package/dist/ja-JP-BcGZdMJa.js +0 -13
- package/dist/lt-LT-SQmafLDX.js +0 -13
- package/dist/lv-LV-B5Os0zqy.js +0 -13
- package/dist/nl-NL-BVRcJEzp.js +0 -13
- package/dist/no-NO-DlnsfTwn.js +0 -13
- package/dist/pl-PL-B-V8iF6C.js +0 -13
- package/dist/pt-BR-Bq41lr7C.js +0 -13
- package/dist/pt-PT-D-EPzKV-.js +0 -13
- package/dist/ro-RO-Dt2gs44k.js +0 -13
- package/dist/sk-SK-B6LcEArz.js +0 -13
- package/dist/sl-SI-DNbu8KiE.js +0 -13
- package/dist/sv-SE-DgMcRRS8.js +0 -13
- package/dist/types/api/utils/getLookupBaseUrl.d.ts +0 -9
- package/dist/useGlobalData-Btrs_29g.js +0 -68
- /package/dist/types/components/{Business/forms/FinancialInformation → Shared/fields/ReportedValueOptionField}/ReportedValue.d.ts +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2df53a1f-9b04-4dd3-bdbf-4dc9eb7c5ba6", e._sentryDebugIdIdentifier = "sentry-dbid-2df53a1f-9b04-4dd3-bdbf-4dc9eb7c5ba6");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -11,62 +11,64 @@ import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
|
11
11
|
import { Show } from "@preact/signals/utils";
|
|
12
12
|
import { useMutation, useQuery, skipToken, useQueryClient } from "@tanstack/preact-query";
|
|
13
13
|
import { useState, useRef, useCallback, useEffect, useMemo } from "preact/hooks";
|
|
14
|
-
import { u as useScenarios } from "./useScenarios-
|
|
15
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
16
|
-
import { b as useApiContext, h as httpPost, aa as CountryCodes, aC as matchesRegex, aD as NO_ALPHABET_REGEX, aE as EMOJI_REGEX, aF as hasRepeatedCharacters, aG as isInvalidName, aH as INDIVIDUAL_VALID_CHAR_REGEX, ax as isEmpty, y as TaskTypes, L as LegalEntityTypes, aI as getAgeToday, aJ as euCountries, aK as hasText, aL as standardKatakanaValidator, aM as standardKanjiValidator, j as httpGet, u as useTranslation, W as Button, G as Alert, V as Loader, as as DecisionMakerTypes, at as Scenarios, O as Typography, ac as translateTranslatable, ap as useDataset, aq as datasetIdentifier, aN as useAllowedCountries, k as useSettingsContext, J as useExperimentsContext, aB as Header, aO as getAgeRangeForLegalRepresentative, aP as isLegalRepresentativeNeeded, aQ as Trans, aR as valuesOf, aS as keysOf, ah as objectsDeepEqual, aT as listToRecord, aU as pick, m as createLogger, C as IconButton, z as useAnalyticsContext, am as datasetUtilities, aV as useCapabilities, aW as individualApiKeyMapping, aX as drop, v as useAccountHolder, a9 as getLegalEntityCountry, aY as getAllowedDecisionMakerRoles, aZ as filterOutUnwantedAssociationsIfRootLE, an as cloneObject, a_ as individualDocumentMapping, a$ as individualObscuredFields, ad as getOwnEntityAssociations, b0 as hasNomineesChanged, b1 as attachNomineeToRole, b2 as doArraysMatch } from "./StoreProvider-
|
|
17
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
18
|
-
import { a as addressValidators, A as Address, u as useProviderStatus } from "./Address-
|
|
19
|
-
import { c as contactDetailsValidationRules, a as contactDetailFields, C as ContactDetails, u as useValidatePhoneNumberImperatively, g as getAsyncPhoneValidationRules } from "./ContactDetails-
|
|
20
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-
|
|
21
|
-
import { u as useToastContext } from "./useToastContext-
|
|
22
|
-
import { g as getPropsFromConfigurations, c as composePerScenarioFormConfigurations } from "./process-field-configurations-
|
|
23
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
24
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
25
|
-
import { u as uppercase, D as DocumentGuidance, m as mapExistingFile, g as getPageName, a as getPage, b as useScenarioConfiguration } from "./mapExistingFile-
|
|
14
|
+
import { u as useScenarios } from "./useScenarios-DJzsH2gd.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-p2CrQlAX.js";
|
|
16
|
+
import { b as useApiContext, h as httpPost, aa as CountryCodes, aC as matchesRegex, aD as NO_ALPHABET_REGEX, aE as EMOJI_REGEX, aF as hasRepeatedCharacters, aG as isInvalidName, aH as INDIVIDUAL_VALID_CHAR_REGEX, ax as isEmpty, y as TaskTypes, L as LegalEntityTypes, aI as getAgeToday, aJ as euCountries, aK as hasText, aL as standardKatakanaValidator, aM as standardKanjiValidator, j as httpGet, u as useTranslation, W as Button, G as Alert, V as Loader, as as DecisionMakerTypes, at as Scenarios, O as Typography, ac as translateTranslatable, ap as useDataset, aq as datasetIdentifier, aN as useAllowedCountries, k as useSettingsContext, J as useExperimentsContext, aB as Header, aO as getAgeRangeForLegalRepresentative, aP as isLegalRepresentativeNeeded, aQ as Trans, aR as valuesOf, aS as keysOf, ah as objectsDeepEqual, aT as listToRecord, aU as pick, m as createLogger, C as IconButton, z as useAnalyticsContext, am as datasetUtilities, aV as useCapabilities, aW as individualApiKeyMapping, aX as drop, v as useAccountHolder, a9 as getLegalEntityCountry, aY as getAllowedDecisionMakerRoles, aZ as filterOutUnwantedAssociationsIfRootLE, an as cloneObject, a_ as individualDocumentMapping, a$ as individualObscuredFields, ad as getOwnEntityAssociations, b0 as hasNomineesChanged, b1 as attachNomineeToRole, b2 as doArraysMatch } from "./StoreProvider-CDvuKNZP.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-BswSgPWT.js";
|
|
18
|
+
import { a as addressValidators, A as Address, u as useProviderStatus } from "./Address-DmC7K_9S.js";
|
|
19
|
+
import { c as contactDetailsValidationRules, a as contactDetailFields, C as ContactDetails, P as PhoneField, u as useValidatePhoneNumberImperatively, g as getAsyncPhoneValidationRules } from "./ContactDetails-opl6-mP9.js";
|
|
20
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-C1SR24Ki.js";
|
|
21
|
+
import { u as useToastContext } from "./useToastContext-D9-q58mO.js";
|
|
22
|
+
import { g as getPropsFromConfigurations, c as composePerScenarioFormConfigurations } from "./process-field-configurations-Cb30tRmq.js";
|
|
23
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-CH5elK0n.js";
|
|
24
|
+
import { u as useMultiForm } from "./useMultiForm-DPExov8c.js";
|
|
25
|
+
import { u as uppercase, D as DocumentGuidance, m as mapExistingFile, g as getPageName, a as getPage, b as useScenarioConfiguration } from "./mapExistingFile-ebhAtDpQ.js";
|
|
26
26
|
import { J as JP_ADDRESS_REQUIRED_FIELDS } from "./jpAddressSchema-DEOyz9Yo.js";
|
|
27
|
-
import { t as toFullWidth, m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-
|
|
28
|
-
import { b as addressFields, a as getAddressSchemaLabelsByCountry, C as COUNTRIES_WITH_STATES_DATASET, m as mapAddressLabels } from "./utils-
|
|
29
|
-
import { G as GuidanceQuestionValues, a as GuidanceQuestion, g as getOnfidoIdentityTypeToApiIdentityTypeMap, i as individualFormDefaultData, m as mapLegalEntityToIndividualSchema } from "./mapLegalEntityToIndividualSchema-
|
|
30
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
31
|
-
import { g as getIdDocument, a as getDocument, c as createDocumentRequest, d as documentApiUtils, m as mergeAttachments, b as getFileExtention } from "./validate-
|
|
32
|
-
import { t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, i as individualIdNumberOptions, b as additionallIdNumberOptions, T as TaxInformationField, M as MemoizedDocumentUpload, c as taxIdNumberOptions, g as getFieldsWithExistingData } from "./TaxInformationField-
|
|
33
|
-
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-
|
|
34
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
35
|
-
import { I as IFrameWidget, o as omitObscuredFieldsIfUnchanged } from "./iframeWidget-
|
|
36
|
-
import { m as makeMask, n as numericInputs, a as nonInputs, b as alphaInputs, c as customInputs, s as spacer, d as alphanumericInputs, M as MaskedInput } from "./MaskedInput-
|
|
37
|
-
import { v as validatePatternOnBlur } from "./patternValidators-
|
|
27
|
+
import { t as toFullWidth, m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-6-TZehkD.js";
|
|
28
|
+
import { b as addressFields, a as getAddressSchemaLabelsByCountry, C as COUNTRIES_WITH_STATES_DATASET, m as mapAddressLabels } from "./utils-BQ0Na9UT.js";
|
|
29
|
+
import { G as GuidanceQuestionValues, a as GuidanceQuestion, g as getOnfidoIdentityTypeToApiIdentityTypeMap, i as individualFormDefaultData, m as mapLegalEntityToIndividualSchema } from "./mapLegalEntityToIndividualSchema-DV9h15hI.js";
|
|
30
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-NidfTgvm.js";
|
|
31
|
+
import { g as getIdDocument, a as getDocument, c as createDocumentRequest, d as documentApiUtils, m as mergeAttachments, b as getFileExtention } from "./validate-CdMI5st2.js";
|
|
32
|
+
import { t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, i as individualIdNumberOptions, b as additionallIdNumberOptions, T as TaxInformationField, M as MemoizedDocumentUpload, c as taxIdNumberOptions, g as getFieldsWithExistingData } from "./TaxInformationField-P4kd2RBf.js";
|
|
33
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-B6aNrTga.js";
|
|
34
|
+
import { l as localizeDateString } from "./localizeDateString-DJzFcyYr.js";
|
|
35
|
+
import { I as IFrameWidget, o as omitObscuredFieldsIfUnchanged } from "./iframeWidget-DRlrwi6o.js";
|
|
36
|
+
import { m as makeMask, n as numericInputs, a as nonInputs, b as alphaInputs, c as customInputs, s as spacer, d as alphanumericInputs, M as MaskedInput, I as InputEmail } from "./MaskedInput-Bmnp6vfE.js";
|
|
37
|
+
import { v as validatePatternOnBlur } from "./patternValidators-ORRO5SAA.js";
|
|
38
38
|
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
39
|
-
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-
|
|
39
|
+
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-CFBp4SLl.js";
|
|
40
40
|
import { lazy, Suspense, memo } from "preact/compat";
|
|
41
|
-
import { I as Image } from "./unincorporated-partnership-
|
|
42
|
-
import { M as Modal } from "./Modal-
|
|
43
|
-
import { L as LandingLayout } from "./LandingLayout-
|
|
44
|
-
import { C as Confirm } from "./Confirm-
|
|
45
|
-
import { a as getIndividualLegalEntityName } from "./getName-
|
|
46
|
-
import { b as idNowModalChildEntityId, a as idNowPostSubmit, s as showIdNowModal, c as shouldShowIdNowModal } from "./bafinUtils-
|
|
41
|
+
import { I as Image } from "./unincorporated-partnership-CIe8e4wR.js";
|
|
42
|
+
import { M as Modal } from "./Modal-C4g499L3.js";
|
|
43
|
+
import { L as LandingLayout } from "./LandingLayout-DCtOMPr1.js";
|
|
44
|
+
import { C as Confirm } from "./Confirm-CYgHkICM.js";
|
|
45
|
+
import { a as getIndividualLegalEntityName } from "./getName-C_u_P9U0.js";
|
|
46
|
+
import { b as idNowModalChildEntityId, a as idNowPostSubmit, s as showIdNowModal, c as shouldShowIdNowModal } from "./bafinUtils-BPLSJ1MR.js";
|
|
47
47
|
import { signal } from "@preact/signals";
|
|
48
|
-
import { E as ErrorPanel, u as useFormRouterContext } from "./ErrorPanel-
|
|
48
|
+
import { E as ErrorPanel, u as useFormRouterContext } from "./ErrorPanel-Wws7gA5m.js";
|
|
49
49
|
import { g as getFieldProps, a as getFormProps } from "./getProps-Cc3J2-z9.js";
|
|
50
|
-
import { F as Field } from "./Field-
|
|
51
|
-
import { L as Link } from "./Link-
|
|
50
|
+
import { F as Field } from "./Field-BnYaQCpL.js";
|
|
51
|
+
import { L as Link } from "./Link-DHZbclel.js";
|
|
52
52
|
import { S as SettingNames } from "./types-CQ2p58-6.js";
|
|
53
|
-
import { I as InputDate, f as formatDateObj } from "./InputDate-
|
|
54
|
-
import { I as InputText } from "./InputText-
|
|
55
|
-
import { C as CountryField } from "./CountryField-
|
|
56
|
-
import { R as RadioGroup, a as RadioWithLabel } from "./RadioGroup-
|
|
57
|
-
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-
|
|
58
|
-
import { C as Checkbox } from "./Checkbox-
|
|
59
|
-
import { S as Select } from "./Select-
|
|
60
|
-
import { C as ContextGuidance } from "./ContextGuidance-
|
|
61
|
-
import { C as COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES, i as individualRules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE } from "./Individual.rules-
|
|
62
|
-
import { i as isTruthyValidator } from "./commonValidators-
|
|
53
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-D7tf-vyK.js";
|
|
54
|
+
import { I as InputText } from "./InputText-DJmeZHiM.js";
|
|
55
|
+
import { C as CountryField } from "./CountryField-BNisulC2.js";
|
|
56
|
+
import { R as RadioGroup, a as RadioWithLabel } from "./RadioGroup-Brbd7IGZ.js";
|
|
57
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-Bl8SBmWK.js";
|
|
58
|
+
import { C as Checkbox } from "./Checkbox-DEpPoJN_.js";
|
|
59
|
+
import { S as Select } from "./Select-DeoKjJst.js";
|
|
60
|
+
import { C as ContextGuidance } from "./ContextGuidance-gC4RuGIB.js";
|
|
61
|
+
import { C as COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES, i as individualRules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE } from "./Individual.rules-BOr9HYuB.js";
|
|
62
|
+
import { i as isTruthyValidator } from "./commonValidators-MPgcG-b2.js";
|
|
63
63
|
import { T as TrustedFieldsProviders } from "./trusted-fields-provider-BgfIoSNJ.js";
|
|
64
|
-
import { n as nameFields, N as Name } from "./Name-
|
|
65
|
-
import { D as Dropzone } from "./Dropzone-
|
|
66
|
-
import { i as isEmpty$1 } from "./isEmpty-
|
|
64
|
+
import { n as nameFields, N as Name } from "./Name-BAP43zgz.js";
|
|
65
|
+
import { D as Dropzone } from "./Dropzone-BbFC9YFN.js";
|
|
66
|
+
import { i as isEmpty$1 } from "./isEmpty-JkZqLeJ_.js";
|
|
67
67
|
import { Onfido } from "onfido-sdk-ui";
|
|
68
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
68
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-DbnjDZaG.js";
|
|
69
69
|
import { S as Spacer } from "./Spacer-BK3jDget.js";
|
|
70
|
+
import { T as TextArea } from "./TextArea-8HzHbl8a.js";
|
|
71
|
+
import { e as emailPattern } from "./basePatterns-BwdnMQxI.js";
|
|
70
72
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
71
73
|
import { m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
72
74
|
const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
|
|
@@ -111,6 +113,28 @@ const useIdVerificationStartCheck = (options) => {
|
|
|
111
113
|
...options
|
|
112
114
|
});
|
|
113
115
|
};
|
|
116
|
+
const createInvitation = async (baseUrl, organizationLegalEntityId, inviteeLegalEntityId, data) => {
|
|
117
|
+
return httpPost(
|
|
118
|
+
{
|
|
119
|
+
baseUrl,
|
|
120
|
+
path: `legalEntities/${organizationLegalEntityId}/invitations/associations/${inviteeLegalEntityId}`
|
|
121
|
+
},
|
|
122
|
+
data
|
|
123
|
+
);
|
|
124
|
+
};
|
|
125
|
+
const useCreateInvitation = (options) => {
|
|
126
|
+
const { baseUrl } = useApiContext();
|
|
127
|
+
return useMutation({
|
|
128
|
+
mutationFn: ({
|
|
129
|
+
organizationLegalEntityId,
|
|
130
|
+
inviteeLegalEntityId,
|
|
131
|
+
data
|
|
132
|
+
}) => {
|
|
133
|
+
return createInvitation(baseUrl.value, organizationLegalEntityId, inviteeLegalEntityId, data);
|
|
134
|
+
},
|
|
135
|
+
...options
|
|
136
|
+
});
|
|
137
|
+
};
|
|
114
138
|
const customerSupportPresubmitProcess = (legalEntityResponse, legalEntityToSubmit) => {
|
|
115
139
|
if (legalEntityResponse.type === "individual") {
|
|
116
140
|
return processCustomerSupportForIndividual(legalEntityResponse, legalEntityToSubmit);
|
|
@@ -1693,7 +1717,7 @@ const additionalIdentityInfoFields = [
|
|
|
1693
1717
|
"expiryDate"
|
|
1694
1718
|
];
|
|
1695
1719
|
const LazyJpAddress = lazy(
|
|
1696
|
-
async () => (await import("./JpAddress-
|
|
1720
|
+
async () => (await import("./JpAddress-BLSFMUBF.js")).JpAddress
|
|
1697
1721
|
);
|
|
1698
1722
|
const additionalPersonalDetailsFields = [
|
|
1699
1723
|
"birthDate",
|
|
@@ -3314,6 +3338,176 @@ function IdVerificationMethod(props) {
|
|
|
3314
3338
|
) : void 0
|
|
3315
3339
|
] });
|
|
3316
3340
|
}
|
|
3341
|
+
const validateSenderNameNotEmpty = {
|
|
3342
|
+
modes: ["blur"],
|
|
3343
|
+
validate: (senderName) => !isEmpty(senderName),
|
|
3344
|
+
errorMessage: "fieldIsRequired"
|
|
3345
|
+
};
|
|
3346
|
+
const v4NameRules = nameValidationRulesV4.firstName ?? [];
|
|
3347
|
+
const senderNameRules = Array.isArray(v4NameRules) ? v4NameRules : [v4NameRules];
|
|
3348
|
+
const validateMessageNotEmpty = {
|
|
3349
|
+
modes: ["blur"],
|
|
3350
|
+
validate: (message) => !isEmpty(message),
|
|
3351
|
+
errorMessage: "fieldIsRequired"
|
|
3352
|
+
};
|
|
3353
|
+
const validateEmailNotEmpty = {
|
|
3354
|
+
modes: ["blur"],
|
|
3355
|
+
validate: (email) => !isEmpty(email),
|
|
3356
|
+
errorMessage: "fieldIsRequired"
|
|
3357
|
+
};
|
|
3358
|
+
const validateEmailFormat = {
|
|
3359
|
+
modes: ["blur"],
|
|
3360
|
+
validate: (email) => email ? emailPattern.test(email) : true,
|
|
3361
|
+
errorMessage: "invalidEmail"
|
|
3362
|
+
};
|
|
3363
|
+
const validatePhoneNotEmpty = {
|
|
3364
|
+
modes: ["blur"],
|
|
3365
|
+
validate: (phone) => !isEmpty(phone?.number),
|
|
3366
|
+
errorMessage: "fieldIsRequired"
|
|
3367
|
+
};
|
|
3368
|
+
const inviteDetailsValidators = {
|
|
3369
|
+
senderName: [validateSenderNameNotEmpty, ...senderNameRules],
|
|
3370
|
+
message: [validateMessageNotEmpty],
|
|
3371
|
+
email: [validateEmailNotEmpty, validateEmailFormat],
|
|
3372
|
+
phoneNumber: [validatePhoneNotEmpty]
|
|
3373
|
+
};
|
|
3374
|
+
const inviteDetailsFields = [
|
|
3375
|
+
"senderName",
|
|
3376
|
+
"message",
|
|
3377
|
+
"email",
|
|
3378
|
+
"phoneNumber"
|
|
3379
|
+
];
|
|
3380
|
+
function InviteDetails(props) {
|
|
3381
|
+
const { t } = useTranslation("individual");
|
|
3382
|
+
const { t: commonT } = useTranslation("common");
|
|
3383
|
+
const {
|
|
3384
|
+
form: { data: formData, handleChangeFor: handleBasicDetailsChangeFor }
|
|
3385
|
+
} = useFormContext();
|
|
3386
|
+
const {
|
|
3387
|
+
country,
|
|
3388
|
+
data,
|
|
3389
|
+
errors = {},
|
|
3390
|
+
fieldValidationErrors,
|
|
3391
|
+
handleFieldChange,
|
|
3392
|
+
heading,
|
|
3393
|
+
recipientFirstName,
|
|
3394
|
+
valid = {}
|
|
3395
|
+
} = props;
|
|
3396
|
+
const formUtils = createFormUtils(props, commonT);
|
|
3397
|
+
const basicDetails = formData.basicDetails ?? {};
|
|
3398
|
+
const handleEmailChange = useCallback(
|
|
3399
|
+
(mode) => (e) => {
|
|
3400
|
+
handleFieldChange?.("email", mode)(e);
|
|
3401
|
+
handleBasicDetailsChangeFor("email", "basicDetails", mode)(e);
|
|
3402
|
+
},
|
|
3403
|
+
[handleFieldChange, handleBasicDetailsChangeFor]
|
|
3404
|
+
);
|
|
3405
|
+
const handlePhoneChange = useCallback(
|
|
3406
|
+
(key, mode) => (e) => {
|
|
3407
|
+
handleFieldChange?.(key, mode)(e);
|
|
3408
|
+
handleBasicDetailsChangeFor(key, "basicDetails", mode)(e);
|
|
3409
|
+
},
|
|
3410
|
+
[handleFieldChange, handleBasicDetailsChangeFor]
|
|
3411
|
+
);
|
|
3412
|
+
useEffect(() => {
|
|
3413
|
+
if (!handleFieldChange) return;
|
|
3414
|
+
handleFieldChange("email", "input")(data?.email);
|
|
3415
|
+
handleFieldChange("phoneNumber", "input")(data?.phoneNumber);
|
|
3416
|
+
}, []);
|
|
3417
|
+
const emailValue = data?.email ?? basicDetails.email ?? "";
|
|
3418
|
+
const phoneValue = data?.phoneNumber ?? basicDetails.phoneNumber;
|
|
3419
|
+
if (!handleFieldChange) {
|
|
3420
|
+
return null;
|
|
3421
|
+
}
|
|
3422
|
+
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-individual__personal-details", children: [
|
|
3423
|
+
/* @__PURE__ */ jsx(
|
|
3424
|
+
Header,
|
|
3425
|
+
{
|
|
3426
|
+
title: heading ?? t(($) => $["inviteDetails"]),
|
|
3427
|
+
description: t(($) => $["checkThatContactInfoIsCorrect"], { name: recipientFirstName })
|
|
3428
|
+
}
|
|
3429
|
+
),
|
|
3430
|
+
/* @__PURE__ */ jsx(
|
|
3431
|
+
Field,
|
|
3432
|
+
{
|
|
3433
|
+
name: "email",
|
|
3434
|
+
label: commonT(($) => $["email"]),
|
|
3435
|
+
errorMessage: formUtils.getErrorMessage("email", errors, fieldValidationErrors),
|
|
3436
|
+
isValid: valid.email,
|
|
3437
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
3438
|
+
InputEmail,
|
|
3439
|
+
{
|
|
3440
|
+
...childProps,
|
|
3441
|
+
name: "email",
|
|
3442
|
+
value: emailValue,
|
|
3443
|
+
onInput: handleEmailChange("input"),
|
|
3444
|
+
onBlur: handleEmailChange("blur"),
|
|
3445
|
+
"aria-required": true,
|
|
3446
|
+
"aria-invalid": valid.email === false
|
|
3447
|
+
}
|
|
3448
|
+
)
|
|
3449
|
+
}
|
|
3450
|
+
),
|
|
3451
|
+
/* @__PURE__ */ jsx(
|
|
3452
|
+
PhoneField,
|
|
3453
|
+
{
|
|
3454
|
+
country,
|
|
3455
|
+
data: { phoneNumber: phoneValue },
|
|
3456
|
+
valid: { phoneNumber: valid.phoneNumber ?? true },
|
|
3457
|
+
errors: { phoneNumber: errors.phoneNumber?.errorMessage },
|
|
3458
|
+
labels: { phoneNumber: t(($) => $["mobileNumber"]) },
|
|
3459
|
+
optional: false,
|
|
3460
|
+
readonly: false,
|
|
3461
|
+
handleChangeFor: handlePhoneChange
|
|
3462
|
+
}
|
|
3463
|
+
),
|
|
3464
|
+
/* @__PURE__ */ jsx(
|
|
3465
|
+
Field,
|
|
3466
|
+
{
|
|
3467
|
+
name: "senderName",
|
|
3468
|
+
label: commonT(($) => $["sender"]),
|
|
3469
|
+
errorMessage: formUtils.getErrorMessage("senderName", errors, fieldValidationErrors),
|
|
3470
|
+
isValid: valid.senderName,
|
|
3471
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
3472
|
+
InputText,
|
|
3473
|
+
{
|
|
3474
|
+
...childProps,
|
|
3475
|
+
name: "senderName",
|
|
3476
|
+
value: data?.senderName,
|
|
3477
|
+
placeholder: t(($) => $["name"]),
|
|
3478
|
+
onInput: handleFieldChange("senderName", "input"),
|
|
3479
|
+
onBlur: handleFieldChange("senderName", "blur"),
|
|
3480
|
+
"aria-required": true,
|
|
3481
|
+
"aria-invalid": !valid.senderName
|
|
3482
|
+
}
|
|
3483
|
+
)
|
|
3484
|
+
}
|
|
3485
|
+
),
|
|
3486
|
+
/* @__PURE__ */ jsx(
|
|
3487
|
+
Field,
|
|
3488
|
+
{
|
|
3489
|
+
name: "message",
|
|
3490
|
+
errorMessage: formUtils.getErrorMessage("message", errors, fieldValidationErrors),
|
|
3491
|
+
isValid: valid.message,
|
|
3492
|
+
helper: t(($) => $["thisMessageAppearsInTheEmail"]),
|
|
3493
|
+
helperPosition: "below",
|
|
3494
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
3495
|
+
TextArea,
|
|
3496
|
+
{
|
|
3497
|
+
...childProps,
|
|
3498
|
+
name: "message",
|
|
3499
|
+
value: data?.message,
|
|
3500
|
+
placeholder: t(($) => $["messagePlaceholder"]),
|
|
3501
|
+
onInput: handleFieldChange("message", "input"),
|
|
3502
|
+
onBlur: handleFieldChange("message", "blur"),
|
|
3503
|
+
"aria-required": true,
|
|
3504
|
+
"aria-invalid": !valid.message
|
|
3505
|
+
}
|
|
3506
|
+
)
|
|
3507
|
+
}
|
|
3508
|
+
)
|
|
3509
|
+
] });
|
|
3510
|
+
}
|
|
3317
3511
|
const ManualIdUpload = () => {
|
|
3318
3512
|
const { form } = useFormContext();
|
|
3319
3513
|
const { handleChangeFor } = form;
|
|
@@ -3803,6 +3997,11 @@ const individualForms = {
|
|
|
3803
3997
|
formName: "verificationMethod",
|
|
3804
3998
|
fields: idVerificationMethodFields
|
|
3805
3999
|
},
|
|
4000
|
+
inviteDetails: {
|
|
4001
|
+
formId: "inviteDetails",
|
|
4002
|
+
formName: "inviteDetails",
|
|
4003
|
+
fields: inviteDetailsFields
|
|
4004
|
+
},
|
|
3806
4005
|
additionalPersonalDetails: {
|
|
3807
4006
|
formId: "additionalPersonalDetails",
|
|
3808
4007
|
formName: "additionalPersonalDetails",
|
|
@@ -3833,6 +4032,7 @@ const signatoryQuestionnaireFormID = individualForms.signatoryQuestionnaire.form
|
|
|
3833
4032
|
const uboQuestionnaireFormID = individualForms.uboQuestionnaire.formId;
|
|
3834
4033
|
const basicDetailsFormID = individualForms.basicDetails.formId;
|
|
3835
4034
|
const additionalPersonalDetailsFormID = individualForms.additionalPersonalDetails.formId;
|
|
4035
|
+
const inviteDetailsFormID = individualForms.inviteDetails.formId;
|
|
3836
4036
|
const idVerificationMethodFormID = individualForms.idVerificationMethod.formId;
|
|
3837
4037
|
const manualIdUploadFormID = individualForms.manualIdUpload.formId;
|
|
3838
4038
|
const proofOfResidencyFormID = individualForms.proofOfResidency.formId;
|
|
@@ -3967,6 +4167,9 @@ function Individual(props) {
|
|
|
3967
4167
|
const handleContinueToAdditionalDetails = () => {
|
|
3968
4168
|
gotoFormByFormId(additionalPersonalDetailsFormID);
|
|
3969
4169
|
};
|
|
4170
|
+
const handleContinueToInviteDetails = () => {
|
|
4171
|
+
gotoFormByFormId(inviteDetailsFormID);
|
|
4172
|
+
};
|
|
3970
4173
|
const handleDeleteDocument = () => {
|
|
3971
4174
|
logger$1.info("handle delete document");
|
|
3972
4175
|
};
|
|
@@ -4071,6 +4274,7 @@ function Individual(props) {
|
|
|
4071
4274
|
taskType,
|
|
4072
4275
|
handlers: {
|
|
4073
4276
|
handleContinueToAdditionalDetails,
|
|
4277
|
+
handleContinueToInviteDetails,
|
|
4074
4278
|
handleDeleteDocument,
|
|
4075
4279
|
handleUpdateDocument
|
|
4076
4280
|
},
|
|
@@ -4079,6 +4283,28 @@ function Individual(props) {
|
|
|
4079
4283
|
hasLiveSelfieErrorCode
|
|
4080
4284
|
}
|
|
4081
4285
|
);
|
|
4286
|
+
case inviteDetailsFormID: {
|
|
4287
|
+
const inviteDetailsData = {
|
|
4288
|
+
email: data?.basicDetails?.email ?? "",
|
|
4289
|
+
phoneNumber: data?.basicDetails?.phoneNumber,
|
|
4290
|
+
senderName: data?.inviteDetails?.senderName ?? "",
|
|
4291
|
+
message: data?.inviteDetails?.message ?? ""
|
|
4292
|
+
};
|
|
4293
|
+
return /* @__PURE__ */ jsx(
|
|
4294
|
+
InviteDetails,
|
|
4295
|
+
{
|
|
4296
|
+
country: countryOfResidence,
|
|
4297
|
+
data: inviteDetailsData,
|
|
4298
|
+
errors: errors?.inviteDetails,
|
|
4299
|
+
fieldValidationErrors: fieldValidationErrors?.inviteDetails,
|
|
4300
|
+
handleFieldChange: handleFieldChange("inviteDetails"),
|
|
4301
|
+
heading: individualT(($) => $["inviteDetails"]),
|
|
4302
|
+
id: inviteDetailsFormID,
|
|
4303
|
+
recipientFirstName: data?.basicDetails?.firstName ?? "",
|
|
4304
|
+
valid: valid?.inviteDetails
|
|
4305
|
+
}
|
|
4306
|
+
);
|
|
4307
|
+
}
|
|
4082
4308
|
case additionalPersonalDetailsFormID:
|
|
4083
4309
|
return /* @__PURE__ */ jsx(
|
|
4084
4310
|
AdditionalPersonalDetails,
|
|
@@ -4503,30 +4729,41 @@ const phoneNumberBase = {
|
|
|
4503
4729
|
rule: "contactsIfRequiredForRole"
|
|
4504
4730
|
}
|
|
4505
4731
|
};
|
|
4732
|
+
const inviteDetails = {
|
|
4733
|
+
senderName: {
|
|
4734
|
+
rule: "isVerifyByInviteSelected"
|
|
4735
|
+
},
|
|
4736
|
+
message: {
|
|
4737
|
+
rule: "isVerifyByInviteSelected"
|
|
4738
|
+
}
|
|
4739
|
+
};
|
|
4506
4740
|
const taxInformationBase = {
|
|
4507
4741
|
taxInformation: { rule: "countryUsesTaxId" }
|
|
4508
4742
|
};
|
|
4509
4743
|
const individualFieldsPerScenario = {
|
|
4510
|
-
L0: drop("address", "birthDate").from(identityOnfidoBase),
|
|
4511
|
-
L1: identityOnfidoBase,
|
|
4744
|
+
L0: { ...drop("address", "birthDate").from(identityOnfidoBase), ...inviteDetails },
|
|
4745
|
+
L1: { ...identityOnfidoBase, ...inviteDetails },
|
|
4512
4746
|
L1_ID: {
|
|
4513
4747
|
...identityOnfidoBase,
|
|
4514
4748
|
...identityNumber,
|
|
4515
|
-
...additionalIdentityInfo
|
|
4749
|
+
...additionalIdentityInfo,
|
|
4750
|
+
...inviteDetails
|
|
4516
4751
|
},
|
|
4517
4752
|
L1_IDO: {
|
|
4518
4753
|
// TODO: change idNumber rule to optional once optional fields are implemented
|
|
4519
4754
|
...identityOnfidoBase,
|
|
4520
4755
|
...identityNumber,
|
|
4521
|
-
...additionalIdentityInfo
|
|
4756
|
+
...additionalIdentityInfo,
|
|
4757
|
+
...inviteDetails
|
|
4522
4758
|
},
|
|
4523
4759
|
L1_NAT: {
|
|
4524
4760
|
...identityOnfidoBase,
|
|
4525
4761
|
...identityNumber,
|
|
4526
4762
|
...additionalIdentityInfo,
|
|
4527
|
-
...nationality
|
|
4763
|
+
...nationality,
|
|
4764
|
+
...inviteDetails
|
|
4528
4765
|
},
|
|
4529
|
-
L_TAXINFO: { ...identityOnfidoBase, ...taxInformationBase },
|
|
4766
|
+
L_TAXINFO: { ...identityOnfidoBase, ...taxInformationBase, ...inviteDetails },
|
|
4530
4767
|
L1_IDDOC: idDocRequired,
|
|
4531
4768
|
L_PH: phoneNumberBase
|
|
4532
4769
|
};
|
|
@@ -4645,7 +4882,8 @@ function IndividualDropin({
|
|
|
4645
4882
|
formVerificationErrors: problems?.verificationErrors?.additionalPersonalDetails,
|
|
4646
4883
|
t,
|
|
4647
4884
|
taxIdNumberType: data2?.additionalPersonalDetails?.taxInformation?.length ? data2?.additionalPersonalDetails?.taxInformation[0]?.type : void 0
|
|
4648
|
-
})
|
|
4885
|
+
}),
|
|
4886
|
+
inviteDetails: inviteDetailsValidators
|
|
4649
4887
|
}),
|
|
4650
4888
|
[
|
|
4651
4889
|
country,
|
|
@@ -4785,16 +5023,38 @@ function IndividualDropin({
|
|
|
4785
5023
|
);
|
|
4786
5024
|
const filteredForms = requiredForms.filter((form2) => {
|
|
4787
5025
|
const { formId } = form2;
|
|
4788
|
-
if (!isInstantVerificationEnabled && formId ===
|
|
5026
|
+
if (!isInstantVerificationEnabled && formId === individualForms.idVerificationMethod.formId) {
|
|
5027
|
+
return false;
|
|
5028
|
+
}
|
|
5029
|
+
if (data.idVerificationMethod?.idVerificationMethod === "verifyByInvite" && // Only these forms are used for verify by invite flow
|
|
5030
|
+
// Everything else should be hidden
|
|
5031
|
+
![
|
|
5032
|
+
individualForms.uboQuestionnaire.formId,
|
|
5033
|
+
individualForms.signatoryQuestionnaire.formId,
|
|
5034
|
+
individualForms.basicDetails.formId,
|
|
5035
|
+
individualForms.idVerificationMethod.formId,
|
|
5036
|
+
individualForms.inviteDetails.formId,
|
|
5037
|
+
"summary"
|
|
5038
|
+
].includes(formId)) {
|
|
4789
5039
|
return false;
|
|
4790
5040
|
}
|
|
4791
|
-
if (
|
|
5041
|
+
if (
|
|
5042
|
+
// Hide questionnaires for invited decision maker flow
|
|
5043
|
+
isInvitedEntity && (formId === individualForms.signatoryQuestionnaire.formId || formId === individualForms.uboQuestionnaire.formId)
|
|
5044
|
+
) {
|
|
4792
5045
|
return false;
|
|
4793
5046
|
}
|
|
4794
5047
|
return true;
|
|
4795
5048
|
});
|
|
4796
5049
|
return addValidityToForms(filteredForms, form.isValid, problems);
|
|
4797
|
-
}, [
|
|
5050
|
+
}, [
|
|
5051
|
+
derivedProps,
|
|
5052
|
+
form.isValid,
|
|
5053
|
+
isInstantVerificationEnabled,
|
|
5054
|
+
problems,
|
|
5055
|
+
isInvitedEntity,
|
|
5056
|
+
data.idVerificationMethod?.idVerificationMethod
|
|
5057
|
+
]);
|
|
4798
5058
|
const { mutateAsync: getIdVerificationStartCheck } = useIdVerificationStartCheck();
|
|
4799
5059
|
const handleInstantIdVerificationStartCheck = async (onfidoResponse, legalEntityId) => {
|
|
4800
5060
|
const providerId = idVerificationProviderId.value;
|
|
@@ -4808,6 +5068,7 @@ function IndividualDropin({
|
|
|
4808
5068
|
};
|
|
4809
5069
|
const roleTypes = isRoleFieldNeeded && parentLegalEntity ? getAllowedDecisionMakerRoles(parentLegalEntity, taskType, matchingScenario) : [];
|
|
4810
5070
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
5071
|
+
const { mutateAsync: createInvitationMutation } = useCreateInvitation();
|
|
4811
5072
|
const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions(country);
|
|
4812
5073
|
const submitLegalEntity = async ({
|
|
4813
5074
|
dataSubmitted,
|
|
@@ -4842,6 +5103,40 @@ function IndividualDropin({
|
|
|
4842
5103
|
}
|
|
4843
5104
|
return updatedLegalEntity;
|
|
4844
5105
|
};
|
|
5106
|
+
const createInvite = async ({
|
|
5107
|
+
inviteeLegalEntityId,
|
|
5108
|
+
inviteDetails: inviteDetails2
|
|
5109
|
+
}) => {
|
|
5110
|
+
if (!parentLegalEntity?.id || !inviteDetails2?.senderName || !inviteDetails2?.message) {
|
|
5111
|
+
logger.warn("createInvite: Missing required data", {
|
|
5112
|
+
hasParentLegalEntity: !!parentLegalEntity?.id,
|
|
5113
|
+
hasSenderName: !!inviteDetails2?.senderName,
|
|
5114
|
+
hasMessage: !!inviteDetails2?.message
|
|
5115
|
+
});
|
|
5116
|
+
showToast({ label: t(($) => $["provideAllRequiredDetails"]), variant: "error" });
|
|
5117
|
+
throw new Error("createInvite: Missing required data");
|
|
5118
|
+
}
|
|
5119
|
+
try {
|
|
5120
|
+
const { url: inviteLink } = await createInvitationMutation({
|
|
5121
|
+
organizationLegalEntityId: parentLegalEntity.id,
|
|
5122
|
+
inviteeLegalEntityId,
|
|
5123
|
+
data: {
|
|
5124
|
+
facilitatorName: inviteDetails2.senderName,
|
|
5125
|
+
facilitatorMessage: inviteDetails2.message,
|
|
5126
|
+
sendEmail: true,
|
|
5127
|
+
locale: i18n.language
|
|
5128
|
+
}
|
|
5129
|
+
});
|
|
5130
|
+
logger.log("Invitation created successfully", {
|
|
5131
|
+
inviteeLegalEntityId,
|
|
5132
|
+
inviteLink
|
|
5133
|
+
});
|
|
5134
|
+
} catch (error) {
|
|
5135
|
+
logger.error("Failed to create invitation", { error, inviteeLegalEntityId });
|
|
5136
|
+
showToast({ label: t(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
5137
|
+
throw error;
|
|
5138
|
+
}
|
|
5139
|
+
};
|
|
4845
5140
|
const submitDocuments = async ({
|
|
4846
5141
|
legalEntity,
|
|
4847
5142
|
dataSubmitted
|
|
@@ -4979,6 +5274,12 @@ function IndividualDropin({
|
|
|
4979
5274
|
refetchType: "all"
|
|
4980
5275
|
});
|
|
4981
5276
|
}
|
|
5277
|
+
if (dataSubmitted.idVerificationMethod?.idVerificationMethod === "verifyByInvite") {
|
|
5278
|
+
await createInvite({
|
|
5279
|
+
inviteeLegalEntityId: submittedLegalEntity.id,
|
|
5280
|
+
inviteDetails: dataSubmitted.inviteDetails
|
|
5281
|
+
});
|
|
5282
|
+
}
|
|
4982
5283
|
idNowModalChildEntityId.value = submittedLegalEntity;
|
|
4983
5284
|
setLoadingStatus("success");
|
|
4984
5285
|
clearToasts();
|
|
@@ -5101,6 +5402,12 @@ function IndividualDropin({
|
|
|
5101
5402
|
i18n.language
|
|
5102
5403
|
);
|
|
5103
5404
|
}
|
|
5405
|
+
if (summaryData.idVerificationMethod?.idVerificationMethod === "verifyByInvite") {
|
|
5406
|
+
summaryData.idVerificationMethod = {
|
|
5407
|
+
idVerificationMethod: t(($) => $["selfVerificationInvite"], { ns: "individual" }),
|
|
5408
|
+
sender: data?.inviteDetails?.senderName
|
|
5409
|
+
};
|
|
5410
|
+
}
|
|
5104
5411
|
if (isManualVerificationOrExistingDoc(summaryData.idVerificationMethod?.idVerificationMethod) || summaryData.proofOfResidency) {
|
|
5105
5412
|
const fileSummaryData = formatFileSummaryData(data);
|
|
5106
5413
|
summaryData = { ...summaryData, ...fileSummaryData };
|
|
@@ -5138,13 +5445,19 @@ function IndividualDropin({
|
|
|
5138
5445
|
];
|
|
5139
5446
|
const isUploadEmpty = !data?.manualIdUpload || Object.keys(data?.manualIdUpload).length === 0;
|
|
5140
5447
|
const omittedFormsForSummary = [
|
|
5141
|
-
// 1. Omit idDocument if instant OR (manual/existing AND upload is empty)
|
|
5142
|
-
...data?.idVerificationMethod?.idVerificationMethod === "instantVerification" || isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) && isUploadEmpty ? ["idDocument"] : [],
|
|
5143
|
-
// 2. Omit idVerificationMethod if manual or
|
|
5144
|
-
...isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) ? ["idVerificationMethod"] : []
|
|
5448
|
+
// 1. Omit idDocument if instant OR (manual/existing AND upload is empty) OR verifyByInvite
|
|
5449
|
+
...data?.idVerificationMethod?.idVerificationMethod === "instantVerification" || isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) && isUploadEmpty || data?.idVerificationMethod?.idVerificationMethod === "verifyByInvite" ? ["idDocument", "inviteDetails"] : [],
|
|
5450
|
+
// 2. Omit idVerificationMethod if manual, existing, or verifyByInvite (labels handled by inviteDetails or customLabels)
|
|
5451
|
+
...isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) ? ["idVerificationMethod", "inviteDetails"] : []
|
|
5145
5452
|
];
|
|
5453
|
+
const idVerificationMethodLabelMap = {
|
|
5454
|
+
instantVerification: "idVerificationMethod",
|
|
5455
|
+
manualVerification: "idDocument",
|
|
5456
|
+
existingDocument: "idDocument",
|
|
5457
|
+
verifyByInvite: "idVerificationMethod"
|
|
5458
|
+
};
|
|
5146
5459
|
const customLabelsForSummary = {
|
|
5147
|
-
idVerificationMethod: data?.idVerificationMethod?.idVerificationMethod
|
|
5460
|
+
idVerificationMethod: idVerificationMethodLabelMap[data?.idVerificationMethod?.idVerificationMethod ?? ""] ?? "idDocument"
|
|
5148
5461
|
};
|
|
5149
5462
|
const {
|
|
5150
5463
|
handleNextClick,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo } from "preact/hooks";
|
|
12
|
-
import { a as InputBase } from "./InputText-
|
|
12
|
+
import { a as InputBase } from "./InputText-DJmeZHiM.js";
|
|
13
13
|
const checkDateInputSupport = () => {
|
|
14
14
|
const input = document.createElement("input");
|
|
15
15
|
input.setAttribute("type", "date");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "497ed156-06bd-414f-a9d2-c93236f37bb1", e._sentryDebugIdIdentifier = "sentry-dbid-497ed156-06bd-414f-a9d2-c93236f37bb1");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -11,7 +11,7 @@ import { jsx } from "preact/jsx-runtime";
|
|
|
11
11
|
import { forwardRef } from "preact/compat";
|
|
12
12
|
import { useRef, useState, useCallback, useLayoutEffect } from "preact/hooks";
|
|
13
13
|
import cx from "classnames";
|
|
14
|
-
import { z as useAnalyticsContext } from "./StoreProvider-
|
|
14
|
+
import { z as useAnalyticsContext } from "./StoreProvider-CDvuKNZP.js";
|
|
15
15
|
import { d as debouncedInputEvent } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
16
16
|
const InputBase = forwardRef((props, ref) => {
|
|
17
17
|
const userEvents = useAnalyticsContext();
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "67414846-8bec-4b8f-bff9-2fcd588690f6", e._sentryDebugIdIdentifier = "sentry-dbid-67414846-8bec-4b8f-bff9-2fcd588690f6");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { y as TaskTypes, L as LegalEntityTypes, u as useTranslation, R as useLegalEntity, U as ROOT_LE, a as addResourceBundles, V as Loader, z as useAnalyticsContext, W as Button, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-
|
|
10
|
+
import { y as TaskTypes, L as LegalEntityTypes, u as useTranslation, R as useLegalEntity, U as ROOT_LE, a as addResourceBundles, V as Loader, z as useAnalyticsContext, W as Button, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-CDvuKNZP.js";
|
|
11
11
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
12
12
|
import { useState, useEffect } from "preact/hooks";
|
|
13
|
-
import { S as StepProgressIndicator } from "./StepProgressIndicator-
|
|
13
|
+
import { S as StepProgressIndicator } from "./StepProgressIndicator-DTMH_ysU.js";
|
|
14
14
|
import { useMemo } from "preact/compat";
|
|
15
|
-
import { b as useCanSeeIntroduction, c as useLegalEntityType } from "./OnboardingDropinComponent-
|
|
15
|
+
import { b as useCanSeeIntroduction, c as useLegalEntityType } from "./OnboardingDropinComponent-CYZHcP1A.js";
|
|
16
16
|
const IntroductionScreens = {
|
|
17
17
|
PROLOGUE: "PROLOGUE",
|
|
18
18
|
INDIVIDUAL: TaskTypes.INDIVIDUAL,
|