@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] = "7fc0a0a9-2a39-406d-b6e5-32b841816f9c", e._sentryDebugIdIdentifier = "sentry-dbid-7fc0a0a9-2a39-406d-b6e5-32b841816f9c");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,63 +10,61 @@
|
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useMutation, useQuery, skipToken, useQueryClient } from "@tanstack/preact-query";
|
|
12
12
|
import { useState, useMemo, useEffect, useRef, useCallback } from "preact/hooks";
|
|
13
|
-
import { D as Divider, I as INDUSTRY_CODE_FIELD, i as industryCodeFieldMetadata, u as useIndustryCodes, a as IndustryCodeField, b as useCreateBusinessLine, c as useUpdateBusinessLine } from "./useUpdateBusinessLines-
|
|
14
|
-
import { u as useScenarios } from "./useScenarios-
|
|
15
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
16
|
-
import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-
|
|
17
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
18
|
-
import { u as useTranslation, bH as isISIN, W as Button, J as useExperimentsContext, R as useLegalEntity, U as ROOT_LE, am as datasetUtilities, aB as Header, O as Typography, V as Loader, aa as CountryCodes, k as useSettingsContext, aN as useAllowedCountries, b as useApiContext, h as httpPost, P as StackLayout, G as Alert, ao as entriesOf, z as useAnalyticsContext, m as createLogger, v as useAccountHolder,
|
|
19
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-
|
|
20
|
-
import { C as CompanyTypesValues } from "./bafinUtils-
|
|
21
|
-
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-
|
|
22
|
-
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
23
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
24
|
-
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-
|
|
25
|
-
import { C as Confirm } from "./Confirm-
|
|
26
|
-
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-
|
|
27
|
-
import { d as TAX_INFORMATION_FIELD, r as requestingBanking, e as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, f as getTaxInformationPlaceholderText, S as StateCodesUS, h as isUsingCompanySearch, M as MemoizedDocumentUpload, j as getCompanyRegistrationNumberOptions, k as countryToTaxInfoTypeMap, l as isRegistrationNumberAbsentStateV4Scenario, m as getTaxIdNumberOptions, n as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, o as rules, g as getFieldsWithExistingData } from "./TaxInformationField-
|
|
28
|
-
import { u as usePageLandedEvent, s as summaryStep } from "./Summary-
|
|
29
|
-
import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, r as registrationAddressFields, o as operationalAddressIsSameIds, v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, b as registrationNumberDefaultFieldMetadata, c as registrationNumberDefaultFieldConfig, e as doingBusinessAsFieldMetadata, f as doingBusinessAsAbsentFieldMetadata, g as DBANameField, h as BusinessRegistrationNumberField, i as getRegistrationNumberHelperText, j as VatNumberField, M as MemoizedConstitutionalDocument, k as getDefaultRegistrationNumberType, l as getDefaultVatNumberType, m as inferCompanyRegistrationNumberType, n as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-
|
|
30
|
-
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-
|
|
31
|
-
import { t as toFullWidth, a as mapJpAddressSummary, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-
|
|
32
|
-
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-
|
|
13
|
+
import { D as Divider, I as INDUSTRY_CODE_FIELD, i as industryCodeFieldMetadata, u as useIndustryCodes, a as IndustryCodeField, b as useCreateBusinessLine, c as useUpdateBusinessLine } from "./useUpdateBusinessLines-1pywGJxr.js";
|
|
14
|
+
import { u as useScenarios } from "./useScenarios-DJzsH2gd.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-p2CrQlAX.js";
|
|
16
|
+
import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-D9-q58mO.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-BswSgPWT.js";
|
|
18
|
+
import { u as useTranslation, bH as isISIN, W as Button, J as useExperimentsContext, R as useLegalEntity, U as ROOT_LE, am as datasetUtilities, aB as Header, O as Typography, V as Loader, aa as CountryCodes, k as useSettingsContext, aN as useAllowedCountries, b as useApiContext, h as httpPost, P as StackLayout, G as Alert, ao as entriesOf, z as useAnalyticsContext, m as createLogger, v as useAccountHolder, y as TaskTypes, L as LegalEntityTypes, ax as isEmpty, i as isUndefinedOrNull, bI as businessDetailsComponentsKeyMapping, bJ as solePropBusinessDetailsKeyMapping, ah as objectsDeepEqual, aS as keysOf, bK as solePropBusinessDetailsApiKeyMapping, bl as businessDetailsApiKeyMapping, at as Scenarios, aZ as filterOutUnwantedAssociationsIfRootLE, aX as drop, ad as getOwnEntityAssociations, b2 as doArraysMatch, bL as solePropBusinessDetailsDocumentMapping, bM as businessDetailsDocumentMapping } from "./StoreProvider-CDvuKNZP.js";
|
|
19
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-C1SR24Ki.js";
|
|
20
|
+
import { C as CompanyTypesValues } from "./bafinUtils-BPLSJ1MR.js";
|
|
21
|
+
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-Cb30tRmq.js";
|
|
22
|
+
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-CH5elK0n.js";
|
|
23
|
+
import { u as useMultiForm } from "./useMultiForm-DPExov8c.js";
|
|
24
|
+
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-ebhAtDpQ.js";
|
|
25
|
+
import { C as Confirm } from "./Confirm-CYgHkICM.js";
|
|
26
|
+
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-CdMI5st2.js";
|
|
27
|
+
import { d as TAX_INFORMATION_FIELD, r as requestingBanking, e as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, f as getTaxInformationPlaceholderText, S as StateCodesUS, h as isUsingCompanySearch, M as MemoizedDocumentUpload, j as getCompanyRegistrationNumberOptions, k as countryToTaxInfoTypeMap, l as isRegistrationNumberAbsentStateV4Scenario, m as getTaxIdNumberOptions, n as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, o as rules, g as getFieldsWithExistingData } from "./TaxInformationField-P4kd2RBf.js";
|
|
28
|
+
import { u as usePageLandedEvent, s as summaryStep } from "./Summary-DrjyVpAf.js";
|
|
29
|
+
import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, r as registrationAddressFields, o as operationalAddressIsSameIds, v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, b as registrationNumberDefaultFieldMetadata, c as registrationNumberDefaultFieldConfig, e as doingBusinessAsFieldMetadata, f as doingBusinessAsAbsentFieldMetadata, g as DBANameField, h as BusinessRegistrationNumberField, i as getRegistrationNumberHelperText, j as VatNumberField, M as MemoizedConstitutionalDocument, k as getDefaultRegistrationNumberType, l as getDefaultVatNumberType, m as inferCompanyRegistrationNumberType, n as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-DgivwkYj.js";
|
|
30
|
+
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-C4g499L3.js";
|
|
31
|
+
import { t as toFullWidth, a as mapJpAddressSummary, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-6-TZehkD.js";
|
|
32
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-BQ0Na9UT.js";
|
|
33
33
|
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
34
34
|
import { s as summaryItem } from "./summaryItem-CAQCQSkt.js";
|
|
35
|
-
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-
|
|
36
|
-
import { b as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as defaultFieldMetadata$1, c as defaultFieldConfig$1, e as StateField, i as isDateOlderThanAYear } from "./Address-
|
|
35
|
+
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-B-6ygFSY.js";
|
|
36
|
+
import { b as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as defaultFieldMetadata$1, c as defaultFieldConfig$1, e as StateField, i as isDateOlderThanAYear } from "./Address-DmC7K_9S.js";
|
|
37
37
|
import { S as SettingNames } from "./types-CQ2p58-6.js";
|
|
38
|
-
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
39
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
40
|
-
import { i as isEmpty$1 } from "./isEmpty-
|
|
38
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-D4c7_3F2.js";
|
|
39
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-NidfTgvm.js";
|
|
40
|
+
import { i as isEmpty$1 } from "./isEmpty-JkZqLeJ_.js";
|
|
41
41
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
42
42
|
import { b as mapAddressLocalizationToJpAddressSchema, a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
43
|
-
import { L as LegalFormField, I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-
|
|
44
|
-
import { g as getLegalCompanyNameHelperText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-
|
|
45
|
-
import { j as useBusinessLines } from "./OnboardingDropinComponent-
|
|
43
|
+
import { L as LegalFormField, I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-C1POIMJZ.js";
|
|
44
|
+
import { g as getLegalCompanyNameHelperText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-C4QSM1kF.js";
|
|
45
|
+
import { j as useBusinessLines } from "./OnboardingDropinComponent-CYZHcP1A.js";
|
|
46
46
|
import { Suspense, lazy } from "preact/compat";
|
|
47
|
-
import { C as Checkbox } from "./Checkbox-
|
|
48
|
-
import { F as Field } from "./Field-
|
|
49
|
-
import { E as ErrorPanel } from "./ErrorPanel-
|
|
50
|
-
import { I as InputDate, f as formatDateObj } from "./InputDate-
|
|
51
|
-
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-
|
|
52
|
-
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-
|
|
53
|
-
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-
|
|
54
|
-
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-
|
|
47
|
+
import { C as Checkbox } from "./Checkbox-DEpPoJN_.js";
|
|
48
|
+
import { F as Field } from "./Field-BnYaQCpL.js";
|
|
49
|
+
import { E as ErrorPanel } from "./ErrorPanel-Wws7gA5m.js";
|
|
50
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-D7tf-vyK.js";
|
|
51
|
+
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-ORRO5SAA.js";
|
|
52
|
+
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-Bmnp6vfE.js";
|
|
53
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-Bl8SBmWK.js";
|
|
54
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-B6aNrTga.js";
|
|
55
55
|
import { u as useDebouncedCallback } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
56
56
|
import { signal } from "@preact/signals";
|
|
57
57
|
import cx from "classnames";
|
|
58
|
-
import { L as Link } from "./Link-
|
|
58
|
+
import { L as Link } from "./Link-DHZbclel.js";
|
|
59
59
|
import { S as StructuredList } from "./StructuredList-CNha20ka.js";
|
|
60
|
-
import { I as InputText } from "./InputText-
|
|
61
|
-
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-
|
|
62
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
60
|
+
import { I as InputText } from "./InputText-DJmeZHiM.js";
|
|
61
|
+
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-BNisulC2.js";
|
|
62
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-DbnjDZaG.js";
|
|
63
63
|
import { C as Card } from "./Card-OQuFzmxm.js";
|
|
64
|
-
import { L as ListItem } from "./ListItem-
|
|
65
|
-
import { T as TileGroup } from "./TileGroup-
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import { u as useForm } from "./useForm-vad8DlLx.js";
|
|
69
|
-
import { c as currencyByCountry } from "./types-DW90uFG-.js";
|
|
64
|
+
import { L as ListItem } from "./ListItem-DRdYYUwm.js";
|
|
65
|
+
import { T as TileGroup } from "./TileGroup-C7pJdtfG.js";
|
|
66
|
+
import { c as currencyByCountry } from "./types-DItwm0zf.js";
|
|
67
|
+
import { R as RadioGroup } from "./RadioGroup-Brbd7IGZ.js";
|
|
70
68
|
const DATE_OF_INCORPORATION_FIELD = [
|
|
71
69
|
"dateOfIncorporation"
|
|
72
70
|
];
|
|
@@ -336,7 +334,7 @@ const verifiedBusiness = signal(void 0);
|
|
|
336
334
|
const isVerifiedSingleCompanySearchResult = signal(false);
|
|
337
335
|
const additionalInformationContent = "adyen-kyc-additional-information-content";
|
|
338
336
|
const additionalInformationSectionHeading = "adyen-kyc-additional-information-section-heading";
|
|
339
|
-
const styles$
|
|
337
|
+
const styles$4 = {
|
|
340
338
|
additionalInformationContent,
|
|
341
339
|
additionalInformationSectionHeading
|
|
342
340
|
};
|
|
@@ -345,7 +343,7 @@ const verifiedBusinessCardContent = "adyen-kyc-verified-business-card-content";
|
|
|
345
343
|
const verifiedBusinessCardContentCollapsed = "adyen-kyc-verified-business-card-content-collapsed";
|
|
346
344
|
const verifiedBusinessCardContentExpanded = "adyen-kyc-verified-business-card-content-expanded";
|
|
347
345
|
const verifiedBusinessCardExpandButton = "adyen-kyc-verified-business-card-expand-button";
|
|
348
|
-
const styles$
|
|
346
|
+
const styles$3 = {
|
|
349
347
|
verifiedBusinessCard,
|
|
350
348
|
verifiedBusinessCardContent,
|
|
351
349
|
verifiedBusinessCardContentCollapsed,
|
|
@@ -390,12 +388,12 @@ function VerifiedBusinessCard({
|
|
|
390
388
|
].filter((item) => !!item.details),
|
|
391
389
|
[address, addressLink, t, verifiedBusiness2?.legalForm]
|
|
392
390
|
);
|
|
393
|
-
const expandedContentClasses = cx(styles$
|
|
394
|
-
[styles$
|
|
395
|
-
[styles$
|
|
391
|
+
const expandedContentClasses = cx(styles$3.verifiedBusinessCardContent, {
|
|
392
|
+
[styles$3.verifiedBusinessCardContentCollapsed]: !expanded,
|
|
393
|
+
[styles$3.verifiedBusinessCardContentExpanded]: expanded
|
|
396
394
|
});
|
|
397
|
-
return /* @__PURE__ */ jsxs("section", { className: styles$
|
|
398
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
395
|
+
return /* @__PURE__ */ jsxs("section", { className: styles$3.verifiedBusinessCard, children: [
|
|
396
|
+
/* @__PURE__ */ jsxs("div", { className: styles$3.verifiedBusinessCardContent, children: [
|
|
399
397
|
/* @__PURE__ */ jsx(StructuredList, { items: baseItems }),
|
|
400
398
|
/* @__PURE__ */ jsx(Divider, {})
|
|
401
399
|
] }),
|
|
@@ -403,11 +401,11 @@ function VerifiedBusinessCard({
|
|
|
403
401
|
/* @__PURE__ */ jsx(StructuredList, { items: expandedItems }),
|
|
404
402
|
/* @__PURE__ */ jsx(Divider, {})
|
|
405
403
|
] }),
|
|
406
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
404
|
+
/* @__PURE__ */ jsx("div", { className: styles$3.verifiedBusinessCardExpandButton, children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => setExpanded(!expanded), children: expanded ? t(($) => $["hideDetails"], { ns: "common" }) : t(($) => $["showDetails"], { ns: "common" }) }) })
|
|
407
405
|
] });
|
|
408
406
|
}
|
|
409
407
|
const LazyJpAddress = lazy(
|
|
410
|
-
async () => (await import("./JpAddress-
|
|
408
|
+
async () => (await import("./JpAddress-BLSFMUBF.js")).JpAddress
|
|
411
409
|
);
|
|
412
410
|
const ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
|
|
413
411
|
const ADDITIONAL_INFORMATION_FIELDS = [
|
|
@@ -700,9 +698,9 @@ function AdditionalInformation({
|
|
|
700
698
|
formUtils
|
|
701
699
|
}
|
|
702
700
|
),
|
|
703
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
701
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.additionalInformationContent, children: [
|
|
704
702
|
showVerified && /* @__PURE__ */ jsxs("section", { children: [
|
|
705
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
703
|
+
/* @__PURE__ */ jsx("div", { className: styles$4.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["verifiedInformation"], { ns: "business" }) }) }),
|
|
706
704
|
/* @__PURE__ */ jsx(
|
|
707
705
|
VerifiedBusinessCard,
|
|
708
706
|
{
|
|
@@ -712,7 +710,7 @@ function AdditionalInformation({
|
|
|
712
710
|
)
|
|
713
711
|
] }),
|
|
714
712
|
/* @__PURE__ */ jsxs("section", { children: [
|
|
715
|
-
showVerified && /* @__PURE__ */ jsx("div", { className: styles$
|
|
713
|
+
showVerified && /* @__PURE__ */ jsx("div", { className: styles$4.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["otherBusinessInformation"], { ns: "business" }) }) }),
|
|
716
714
|
/* @__PURE__ */ jsxs("fieldset", { children: [
|
|
717
715
|
showField(LEGAL_FORM_FIELDS) && /* @__PURE__ */ jsx(
|
|
718
716
|
LegalFormField,
|
|
@@ -918,7 +916,7 @@ function AdditionalInformation({
|
|
|
918
916
|
] })
|
|
919
917
|
] }),
|
|
920
918
|
showStockData && /* @__PURE__ */ jsxs("section", { children: [
|
|
921
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
919
|
+
/* @__PURE__ */ jsx("div", { className: styles$4.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["stockExchangeInformation"], { ns: "business" }) }) }),
|
|
922
920
|
/* @__PURE__ */ jsxs("fieldset", { children: [
|
|
923
921
|
showField(STOCK_EXCHANGE_MIC_FIELD) && /* @__PURE__ */ jsx(
|
|
924
922
|
StockExchangeMICField,
|
|
@@ -992,7 +990,7 @@ function AdditionalInformation({
|
|
|
992
990
|
] })
|
|
993
991
|
] }),
|
|
994
992
|
/* @__PURE__ */ jsxs("section", { "data-testid": "registeredBusinessAddress", children: [
|
|
995
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
993
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.additionalInformationSectionHeading, children: [
|
|
996
994
|
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["registeredBusinessAddress"], { ns: "business" }) }),
|
|
997
995
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: registrationAddressDescription })
|
|
998
996
|
] }),
|
|
@@ -1033,7 +1031,7 @@ function AdditionalInformation({
|
|
|
1033
1031
|
)
|
|
1034
1032
|
] }),
|
|
1035
1033
|
/* @__PURE__ */ jsxs("section", { "data-testid": "principalPlaceOfBusiness", children: [
|
|
1036
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
1034
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.additionalInformationSectionHeading, children: [
|
|
1037
1035
|
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["principalPlaceOfBusiness"], { ns: "business" }) }),
|
|
1038
1036
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["thePhysicalLocationWhereABusiness"], { ns: "business" }) })
|
|
1039
1037
|
] }),
|
|
@@ -1217,7 +1215,7 @@ const localizedLegalCompanyNameFieldConfig = {
|
|
|
1217
1215
|
}
|
|
1218
1216
|
};
|
|
1219
1217
|
const basicInformation = "adyen-kyc-basic-information";
|
|
1220
|
-
const styles$
|
|
1218
|
+
const styles$2 = {
|
|
1221
1219
|
basicInformation
|
|
1222
1220
|
};
|
|
1223
1221
|
const BASIC_INFORMATION_FIELDS = [
|
|
@@ -1398,7 +1396,7 @@ function BasicInformation({
|
|
|
1398
1396
|
handleChange: handleChangeFor,
|
|
1399
1397
|
t: businessT
|
|
1400
1398
|
});
|
|
1401
|
-
return /* @__PURE__ */ jsxs("form", { id, className: styles$
|
|
1399
|
+
return /* @__PURE__ */ jsxs("form", { id, className: styles$2.basicInformation, children: [
|
|
1402
1400
|
/* @__PURE__ */ jsx(Header, { title: t(($) => $["basicInformationFormHeading"], { ns: "business" }), children: /* @__PURE__ */ jsx(
|
|
1403
1401
|
FormDescription,
|
|
1404
1402
|
{
|
|
@@ -1587,12 +1585,8 @@ const useClearCompanyData = (options) => {
|
|
|
1587
1585
|
};
|
|
1588
1586
|
function useCompanySearchExperiments() {
|
|
1589
1587
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
1590
|
-
const isAgnosticEndpointEnabled = isExperimentEnabled(
|
|
1591
|
-
"EnableProviderAgnosticCompanySearchAndSelect"
|
|
1592
|
-
);
|
|
1593
1588
|
return {
|
|
1594
|
-
isAgnosticEndpointEnabled
|
|
1595
|
-
isLookupPathEnabled: isAgnosticEndpointEnabled && isExperimentEnabled("EnableNonApiOnboardingComponentsRoutesForCompanySearchAndSelect")
|
|
1589
|
+
isAgnosticEndpointEnabled: isExperimentEnabled("EnableProviderAgnosticCompanySearchAndSelect")
|
|
1596
1590
|
};
|
|
1597
1591
|
}
|
|
1598
1592
|
const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
|
|
@@ -1621,17 +1615,13 @@ const KNOWN_DISALLOWED_INDEX_DATASET_STATES = [
|
|
|
1621
1615
|
StateCodesUS.Illinois,
|
|
1622
1616
|
StateCodesUS.Texas
|
|
1623
1617
|
];
|
|
1624
|
-
const getLookupBaseUrl = (baseUrl) => {
|
|
1625
|
-
return baseUrl.replace("/api/", "/lookup/");
|
|
1626
|
-
};
|
|
1627
1618
|
const KOMPANY_SEARCH_FAILURE = "Kompany index and deep search both failed to complete";
|
|
1628
1619
|
const useCompanySearch = (data, options) => {
|
|
1629
1620
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1630
|
-
const { isAgnosticEndpointEnabled
|
|
1631
|
-
const baseUrlValue = isLookupPathEnabled ? getLookupBaseUrl(baseUrl.value) : baseUrl.value;
|
|
1621
|
+
const { isAgnosticEndpointEnabled } = useCompanySearchExperiments();
|
|
1632
1622
|
return useQuery({
|
|
1633
1623
|
queryKey: ["companySearch", data],
|
|
1634
|
-
queryFn: () => handleCompanySearch(rootLegalEntityId.value,
|
|
1624
|
+
queryFn: () => handleCompanySearch(rootLegalEntityId.value, baseUrl.value, data, isAgnosticEndpointEnabled),
|
|
1635
1625
|
retry: 0,
|
|
1636
1626
|
...options
|
|
1637
1627
|
});
|
|
@@ -1754,25 +1744,24 @@ const verifyTin = async (legalEntityId, baseUrl, data) => {
|
|
|
1754
1744
|
};
|
|
1755
1745
|
const useCompanySelection = (data, options) => {
|
|
1756
1746
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1757
|
-
const { isAgnosticEndpointEnabled
|
|
1747
|
+
const { isAgnosticEndpointEnabled } = useCompanySearchExperiments();
|
|
1758
1748
|
return useQuery({
|
|
1759
1749
|
queryKey: ["companySelection", data],
|
|
1760
1750
|
queryFn: data ? () => handleCompanySelection(
|
|
1761
1751
|
rootLegalEntityId.value,
|
|
1762
1752
|
baseUrl.value,
|
|
1763
1753
|
data,
|
|
1764
|
-
isAgnosticEndpointEnabled
|
|
1765
|
-
isLookupPathEnabled
|
|
1754
|
+
isAgnosticEndpointEnabled
|
|
1766
1755
|
) : skipToken,
|
|
1767
1756
|
retry: 0,
|
|
1768
1757
|
...options
|
|
1769
1758
|
});
|
|
1770
1759
|
};
|
|
1771
|
-
const handleCompanySelection = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled
|
|
1760
|
+
const handleCompanySelection = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled) => {
|
|
1772
1761
|
const [companyDatasetResult, tinMatch] = await Promise.all([
|
|
1773
1762
|
handleCompanyDataset(
|
|
1774
1763
|
rootLegalEntityId,
|
|
1775
|
-
|
|
1764
|
+
baseUrl,
|
|
1776
1765
|
isAgnosticEndpointEnabled ? {
|
|
1777
1766
|
id: data.id
|
|
1778
1767
|
} : {
|
|
@@ -2025,7 +2014,7 @@ function BusinessInformationCard({
|
|
|
2025
2014
|
] }) });
|
|
2026
2015
|
}
|
|
2027
2016
|
const businessSelectionFooter = "adyen-kyc-business-selection-footer";
|
|
2028
|
-
const styles$
|
|
2017
|
+
const styles$1 = {
|
|
2029
2018
|
businessSelectionFooter
|
|
2030
2019
|
};
|
|
2031
2020
|
const BUSINESS_SELECTION_FIELDS = [
|
|
@@ -2212,7 +2201,7 @@ function BusinessSelection({
|
|
|
2212
2201
|
},
|
|
2213
2202
|
providerAgnosticEndpointsEnabled ? result.resultId : result.id
|
|
2214
2203
|
)) }),
|
|
2215
|
-
/* @__PURE__ */ jsxs(Typography, { el: "span", color: "secondary", className: styles$
|
|
2204
|
+
/* @__PURE__ */ jsxs(Typography, { el: "span", color: "secondary", className: styles$1.businessSelectionFooter, children: [
|
|
2216
2205
|
t(($) => $["businessSelection__footer"], { ns: "business" }),
|
|
2217
2206
|
/* @__PURE__ */ jsx(Button, { variant: "link", onClick: proceedToManualDataEntry, testId: "manualDataEntry", children: t(($) => $["businessSelection__footerButton"], { ns: "business" }) })
|
|
2218
2207
|
] })
|
|
@@ -2367,7 +2356,7 @@ function FinancialReportingDate({
|
|
|
2367
2356
|
handleChangeFor
|
|
2368
2357
|
}) {
|
|
2369
2358
|
const { t } = useTranslation("common");
|
|
2370
|
-
return /* @__PURE__ */ jsx(
|
|
2359
|
+
return /* @__PURE__ */ jsx(
|
|
2371
2360
|
Field,
|
|
2372
2361
|
{
|
|
2373
2362
|
name: "financialReportingDate",
|
|
@@ -2391,7 +2380,7 @@ function FinancialReportingDate({
|
|
|
2391
2380
|
}
|
|
2392
2381
|
)
|
|
2393
2382
|
}
|
|
2394
|
-
)
|
|
2383
|
+
);
|
|
2395
2384
|
}
|
|
2396
2385
|
const NUMBER_OF_EMPLOYEES_FIELD = [
|
|
2397
2386
|
"numberOfEmployees"
|
|
@@ -2404,7 +2393,7 @@ function NumberOfEmployees({
|
|
|
2404
2393
|
readonly,
|
|
2405
2394
|
handleChangeFor
|
|
2406
2395
|
}) {
|
|
2407
|
-
return /* @__PURE__ */ jsx(
|
|
2396
|
+
return /* @__PURE__ */ jsx(
|
|
2408
2397
|
Field,
|
|
2409
2398
|
{
|
|
2410
2399
|
name: "numberOfEmployees",
|
|
@@ -2427,15 +2416,13 @@ function NumberOfEmployees({
|
|
|
2427
2416
|
}
|
|
2428
2417
|
)
|
|
2429
2418
|
}
|
|
2430
|
-
)
|
|
2419
|
+
);
|
|
2431
2420
|
}
|
|
2432
|
-
const
|
|
2433
|
-
const styles$1 = {
|
|
2434
|
-
financialInformationReportedValueOptions
|
|
2435
|
-
};
|
|
2421
|
+
const reportedValueOptions = "adyen-kyc-reported-value-options";
|
|
2436
2422
|
const reportedValue = "adyen-kyc-reported-value";
|
|
2437
2423
|
const reportedValueInput = "adyen-kyc-reported-value-input";
|
|
2438
2424
|
const styles = {
|
|
2425
|
+
reportedValueOptions,
|
|
2439
2426
|
reportedValue,
|
|
2440
2427
|
reportedValueInput
|
|
2441
2428
|
};
|
|
@@ -2463,237 +2450,217 @@ const ReportedValue = ({
|
|
|
2463
2450
|
}
|
|
2464
2451
|
) }) });
|
|
2465
2452
|
};
|
|
2466
|
-
const
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
{
|
|
2481
|
-
|
|
2482
|
-
validate: (currency) => !isEmpty(currency),
|
|
2483
|
-
errorMessage: "fieldIsRequired"
|
|
2453
|
+
const REPORTED_VALUE_OPTION_FIELD = [
|
|
2454
|
+
"reportedValueOption",
|
|
2455
|
+
"balanceSheetTotal",
|
|
2456
|
+
"annualTurnover"
|
|
2457
|
+
];
|
|
2458
|
+
function ReportedValueOptionField({
|
|
2459
|
+
data,
|
|
2460
|
+
valid,
|
|
2461
|
+
errors,
|
|
2462
|
+
handleChangeFor,
|
|
2463
|
+
currency
|
|
2464
|
+
}) {
|
|
2465
|
+
const { t } = useTranslation("common");
|
|
2466
|
+
const updateReportedValueOption = (option) => {
|
|
2467
|
+
if (data.reportedValueOption) {
|
|
2468
|
+
handleChangeFor(data.reportedValueOption)(null);
|
|
2484
2469
|
}
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
},
|
|
2491
|
-
balanceSheetTotal: {
|
|
2492
|
-
modes: ["blur"],
|
|
2493
|
-
validate: (amount) => !isUndefinedOrNull(amount),
|
|
2494
|
-
errorMessage: "fieldIsRequired"
|
|
2495
|
-
},
|
|
2496
|
-
annualTurnover: {
|
|
2497
|
-
modes: ["blur"],
|
|
2498
|
-
validate: (amount) => !isUndefinedOrNull(amount),
|
|
2499
|
-
errorMessage: "fieldIsRequired"
|
|
2500
|
-
}
|
|
2501
|
-
};
|
|
2502
|
-
const financialInfoValidationEmployeesOnlyRules = {
|
|
2503
|
-
numberOfEmployees: [
|
|
2504
|
-
{
|
|
2505
|
-
modes: ["blur"],
|
|
2506
|
-
validate: (numberOfEmployees) => !isEmpty(numberOfEmployees),
|
|
2507
|
-
errorMessage: "fieldIsRequired"
|
|
2508
|
-
},
|
|
2470
|
+
const newReportedValue = option;
|
|
2471
|
+
handleChangeFor("reportedValueOption")(newReportedValue);
|
|
2472
|
+
};
|
|
2473
|
+
return /* @__PURE__ */ jsx(
|
|
2474
|
+
Field,
|
|
2509
2475
|
{
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2476
|
+
el: "fieldset",
|
|
2477
|
+
name: "reportedValueOption",
|
|
2478
|
+
label: t(($) => $["reportedValue"]),
|
|
2479
|
+
errorMessage: errors.reportedValueOption,
|
|
2480
|
+
helper: t(($) => $["useFiguresFromTheMostRecentYearAvailable"]),
|
|
2481
|
+
isValid: Boolean(valid.reportedValueOption),
|
|
2482
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
2483
|
+
RadioGroup,
|
|
2484
|
+
{
|
|
2485
|
+
name: "reportedValueOption",
|
|
2486
|
+
...childProps,
|
|
2487
|
+
value: data.reportedValueOption,
|
|
2488
|
+
items: [
|
|
2489
|
+
{
|
|
2490
|
+
id: "balanceSheetTotal",
|
|
2491
|
+
name: "balanceSheetTotal",
|
|
2492
|
+
content: /* @__PURE__ */ jsx(
|
|
2493
|
+
ReportedValue,
|
|
2494
|
+
{
|
|
2495
|
+
label: t(($) => $["balanceSheetTotal"]),
|
|
2496
|
+
currency,
|
|
2497
|
+
amount: data.balanceSheetTotal,
|
|
2498
|
+
onAmountChanged: handleChangeFor("balanceSheetTotal"),
|
|
2499
|
+
fieldName: "balanceSheetTotal",
|
|
2500
|
+
isValid: valid.balanceSheetTotal,
|
|
2501
|
+
errorMessage: errors.balanceSheetTotal
|
|
2502
|
+
}
|
|
2503
|
+
)
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
id: "annualTurnover",
|
|
2507
|
+
name: "annualTurnover",
|
|
2508
|
+
content: /* @__PURE__ */ jsx(
|
|
2509
|
+
ReportedValue,
|
|
2510
|
+
{
|
|
2511
|
+
label: t(($) => $["annualTurnover"]),
|
|
2512
|
+
currency,
|
|
2513
|
+
amount: data.annualTurnover,
|
|
2514
|
+
onAmountChanged: handleChangeFor("annualTurnover"),
|
|
2515
|
+
fieldName: "annualTurnover",
|
|
2516
|
+
isValid: valid.annualTurnover,
|
|
2517
|
+
errorMessage: errors.annualTurnover
|
|
2518
|
+
}
|
|
2519
|
+
)
|
|
2520
|
+
}
|
|
2521
|
+
],
|
|
2522
|
+
onChange: updateReportedValueOption,
|
|
2523
|
+
showContentOnlyOnSelected: true,
|
|
2524
|
+
className: styles.reportedValueOptions
|
|
2525
|
+
}
|
|
2526
|
+
)
|
|
2513
2527
|
}
|
|
2514
|
-
|
|
2515
|
-
}
|
|
2516
|
-
const financialInfoValidationWithEmployeesRules = {
|
|
2517
|
-
...financialInfoValidationRules,
|
|
2518
|
-
...financialInfoValidationEmployeesOnlyRules
|
|
2519
|
-
};
|
|
2528
|
+
);
|
|
2529
|
+
}
|
|
2520
2530
|
const financialInformationFieldsForEu = [
|
|
2521
2531
|
...FINANCIAL_REPORTING_DATE_FIELD,
|
|
2522
2532
|
...CURRENCY_FIELD,
|
|
2523
|
-
|
|
2533
|
+
...REPORTED_VALUE_OPTION_FIELD
|
|
2524
2534
|
];
|
|
2525
2535
|
const financialInformationFields = [
|
|
2526
2536
|
...NUMBER_OF_EMPLOYEES_FIELD,
|
|
2527
2537
|
...FINANCIAL_REPORTING_DATE_FIELD,
|
|
2528
2538
|
...CURRENCY_FIELD,
|
|
2529
|
-
|
|
2539
|
+
...REPORTED_VALUE_OPTION_FIELD
|
|
2530
2540
|
];
|
|
2531
|
-
function FinancialInformation(
|
|
2541
|
+
function FinancialInformation({
|
|
2542
|
+
id,
|
|
2543
|
+
country,
|
|
2544
|
+
validationErrors = {},
|
|
2545
|
+
verificationErrors = {}
|
|
2546
|
+
}) {
|
|
2532
2547
|
const { t } = useTranslation("common");
|
|
2548
|
+
const { form } = useFormContext();
|
|
2533
2549
|
usePageLandedEvent();
|
|
2534
|
-
const { id, country, data: financialInformationData, multiForm, fieldValidationErrors } = props;
|
|
2535
2550
|
const defaultCurrency = currencyByCountry[country]?.[0] ?? "EUR";
|
|
2536
|
-
const
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
...financialInformationFields,
|
|
2540
|
-
...data2.reportedValueOption ? [data2.reportedValueOption] : []
|
|
2541
|
-
];
|
|
2542
|
-
const getValidator = () => {
|
|
2543
|
-
if (!showReportingFields) {
|
|
2544
|
-
return financialInfoValidationEmployeesOnlyRules;
|
|
2545
|
-
}
|
|
2546
|
-
if (country === CountryCodes.UnitedKingdom) {
|
|
2547
|
-
return financialInfoValidationWithEmployeesRules;
|
|
2548
|
-
}
|
|
2549
|
-
return financialInfoValidationRules;
|
|
2550
|
-
};
|
|
2551
|
-
const { handleChangeFor, data, valid, errors, fieldProblems, schema } = useForm({
|
|
2552
|
-
...props,
|
|
2553
|
-
schema: getSchema,
|
|
2554
|
-
defaultData: financialInformationData,
|
|
2555
|
-
rules: getValidator(),
|
|
2556
|
-
fieldProblems: fieldValidationErrors
|
|
2557
|
-
});
|
|
2558
|
-
const { updateStateSlice } = useGlobalDataSlice(id);
|
|
2559
|
-
useEffect(() => {
|
|
2560
|
-
updateStateSlice({
|
|
2561
|
-
data,
|
|
2562
|
-
valid,
|
|
2563
|
-
errors,
|
|
2564
|
-
fieldProblems,
|
|
2565
|
-
schema
|
|
2566
|
-
});
|
|
2567
|
-
}, [data, valid, errors, fieldProblems, schema, updateStateSlice]);
|
|
2568
|
-
const handleChange = useCallback(
|
|
2569
|
-
(fieldName, mode) => multiForm ? multiForm.handleChangeFor(fieldName, "companyFinancialInformation", mode) : handleChangeFor(fieldName, mode),
|
|
2570
|
-
[handleChangeFor, multiForm]
|
|
2551
|
+
const handleChangeFor = useCallback(
|
|
2552
|
+
(fieldName, mode) => form.handleChangeFor(fieldName, "companyFinancialInformation", mode),
|
|
2553
|
+
[form]
|
|
2571
2554
|
);
|
|
2572
|
-
const
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2555
|
+
const formUtils = useMemo(
|
|
2556
|
+
() => createFormUtils(
|
|
2557
|
+
{
|
|
2558
|
+
data: form.data.companyFinancialInformation ?? {},
|
|
2559
|
+
allFields: form.allFields?.companyFinancialInformation ?? [],
|
|
2560
|
+
requiredFields: form.requiredFields?.companyFinancialInformation ?? [],
|
|
2561
|
+
optionalFields: form.optionalFields?.companyFinancialInformation ?? [],
|
|
2562
|
+
trustedFields: form.trustedFields?.companyFinancialInformation ?? [],
|
|
2563
|
+
obscuredFields: form.obscuredFields?.companyFinancialInformation ?? [],
|
|
2564
|
+
errors: form.errors.companyFinancialInformation ?? {},
|
|
2565
|
+
valid: form.valid.companyFinancialInformation ?? {}
|
|
2566
|
+
},
|
|
2567
|
+
t
|
|
2568
|
+
),
|
|
2569
|
+
[form, handleChangeFor, t, validationErrors, verificationErrors]
|
|
2570
|
+
);
|
|
2571
|
+
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
2572
|
+
return /* @__PURE__ */ jsxs("form", { id, className: "adyen-kyc-company-financial-information", children: [
|
|
2584
2573
|
/* @__PURE__ */ jsx(Header, { title: t(($) => $["companyFinancialInformationFormHeading"], { ns: "business" }) }),
|
|
2574
|
+
/* @__PURE__ */ jsx(
|
|
2575
|
+
ErrorPanel,
|
|
2576
|
+
{
|
|
2577
|
+
id: "ariaErrorField",
|
|
2578
|
+
verificationErrors,
|
|
2579
|
+
validationErrors,
|
|
2580
|
+
formUtils
|
|
2581
|
+
}
|
|
2582
|
+
),
|
|
2585
2583
|
country === CountryCodes.UnitedKingdom && /* @__PURE__ */ jsx(
|
|
2586
2584
|
NumberOfEmployees,
|
|
2587
2585
|
{
|
|
2588
|
-
data: formUtils.getFieldData(
|
|
2586
|
+
data: formUtils.getFieldData(
|
|
2587
|
+
form.data.companyFinancialInformation ?? {},
|
|
2588
|
+
NUMBER_OF_EMPLOYEES_FIELD
|
|
2589
|
+
),
|
|
2589
2590
|
errors: formUtils.getFieldErrors(
|
|
2590
|
-
|
|
2591
|
-
|
|
2591
|
+
form.errors.companyFinancialInformation ?? {},
|
|
2592
|
+
form.fieldProblems.companyFinancialInformation,
|
|
2592
2593
|
NUMBER_OF_EMPLOYEES_FIELD
|
|
2593
2594
|
),
|
|
2594
|
-
handleChangeFor
|
|
2595
|
+
handleChangeFor,
|
|
2595
2596
|
labels: formUtils.getFieldLabels(NUMBER_OF_EMPLOYEES_FIELD),
|
|
2596
2597
|
readonly: formUtils.isReadOnly("numberOfEmployees"),
|
|
2597
|
-
valid: formUtils.getFieldValid(
|
|
2598
|
+
valid: formUtils.getFieldValid(
|
|
2599
|
+
form.valid.companyFinancialInformation ?? {},
|
|
2600
|
+
NUMBER_OF_EMPLOYEES_FIELD
|
|
2601
|
+
)
|
|
2598
2602
|
}
|
|
2599
2603
|
),
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
data
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
errorMessage: formUtils.getErrorMessage(
|
|
2661
|
-
"balanceSheetTotal",
|
|
2662
|
-
formErrors,
|
|
2663
|
-
formFieldProblems
|
|
2664
|
-
)
|
|
2665
|
-
}
|
|
2666
|
-
)
|
|
2667
|
-
},
|
|
2668
|
-
{
|
|
2669
|
-
id: "annualTurnover",
|
|
2670
|
-
name: "annualTurnover",
|
|
2671
|
-
content: /* @__PURE__ */ jsx(
|
|
2672
|
-
ReportedValue,
|
|
2673
|
-
{
|
|
2674
|
-
label: t(($) => $["annualTurnover"]),
|
|
2675
|
-
currency: formData.currency ?? defaultCurrency,
|
|
2676
|
-
amount: formData.annualTurnover,
|
|
2677
|
-
onAmountChanged: handleChange("annualTurnover"),
|
|
2678
|
-
fieldName: "annualTurnover",
|
|
2679
|
-
isValid: formValid.annualTurnover,
|
|
2680
|
-
errorMessage: formUtils.getErrorMessage(
|
|
2681
|
-
"annualTurnover",
|
|
2682
|
-
formErrors,
|
|
2683
|
-
formFieldProblems
|
|
2684
|
-
)
|
|
2685
|
-
}
|
|
2686
|
-
)
|
|
2687
|
-
}
|
|
2688
|
-
],
|
|
2689
|
-
onChange: updateReportedValueOption,
|
|
2690
|
-
showContentOnlyOnSelected: true,
|
|
2691
|
-
className: styles$1.financialInformationReportedValueOptions
|
|
2692
|
-
}
|
|
2693
|
-
)
|
|
2694
|
-
}
|
|
2695
|
-
)
|
|
2696
|
-
] })
|
|
2604
|
+
showField(FINANCIAL_REPORTING_DATE_FIELD) && /* @__PURE__ */ jsx(
|
|
2605
|
+
FinancialReportingDate,
|
|
2606
|
+
{
|
|
2607
|
+
data: formUtils.getFieldData(
|
|
2608
|
+
form.data.companyFinancialInformation ?? {},
|
|
2609
|
+
FINANCIAL_REPORTING_DATE_FIELD
|
|
2610
|
+
),
|
|
2611
|
+
errors: formUtils.getFieldErrors(
|
|
2612
|
+
form.errors.companyFinancialInformation ?? {},
|
|
2613
|
+
form.fieldProblems.companyFinancialInformation,
|
|
2614
|
+
FINANCIAL_REPORTING_DATE_FIELD
|
|
2615
|
+
),
|
|
2616
|
+
handleChangeFor,
|
|
2617
|
+
labels: formUtils.getFieldLabels(FINANCIAL_REPORTING_DATE_FIELD),
|
|
2618
|
+
readonly: formUtils.isReadOnly("financialReportingDate"),
|
|
2619
|
+
valid: formUtils.getFieldValid(
|
|
2620
|
+
form.valid.companyFinancialInformation ?? {},
|
|
2621
|
+
FINANCIAL_REPORTING_DATE_FIELD
|
|
2622
|
+
)
|
|
2623
|
+
}
|
|
2624
|
+
),
|
|
2625
|
+
showField(CURRENCY_FIELD) && /* @__PURE__ */ jsx(
|
|
2626
|
+
Currency,
|
|
2627
|
+
{
|
|
2628
|
+
country,
|
|
2629
|
+
labels: { currency: t(($) => $["reportingCurrency"]) },
|
|
2630
|
+
data: formUtils.getFieldData(form.data.companyFinancialInformation ?? {}, CURRENCY_FIELD),
|
|
2631
|
+
errors: formUtils.getFieldErrors(
|
|
2632
|
+
form.errors.companyFinancialInformation ?? {},
|
|
2633
|
+
form.fieldProblems.companyFinancialInformation,
|
|
2634
|
+
CURRENCY_FIELD
|
|
2635
|
+
),
|
|
2636
|
+
handleChangeFor,
|
|
2637
|
+
readonly: formUtils.isReadOnly("currency"),
|
|
2638
|
+
valid: formUtils.getFieldValid(
|
|
2639
|
+
form.valid.companyFinancialInformation ?? {},
|
|
2640
|
+
CURRENCY_FIELD
|
|
2641
|
+
)
|
|
2642
|
+
}
|
|
2643
|
+
),
|
|
2644
|
+
showField(REPORTED_VALUE_OPTION_FIELD) && /* @__PURE__ */ jsx(
|
|
2645
|
+
ReportedValueOptionField,
|
|
2646
|
+
{
|
|
2647
|
+
data: formUtils.getFieldData(
|
|
2648
|
+
form.data.companyFinancialInformation ?? {},
|
|
2649
|
+
REPORTED_VALUE_OPTION_FIELD
|
|
2650
|
+
),
|
|
2651
|
+
valid: formUtils.getFieldValid(
|
|
2652
|
+
form.valid.companyFinancialInformation ?? {},
|
|
2653
|
+
REPORTED_VALUE_OPTION_FIELD
|
|
2654
|
+
),
|
|
2655
|
+
errors: formUtils.getFieldErrors(
|
|
2656
|
+
form.errors.companyFinancialInformation ?? {},
|
|
2657
|
+
form.fieldProblems.companyFinancialInformation,
|
|
2658
|
+
REPORTED_VALUE_OPTION_FIELD
|
|
2659
|
+
),
|
|
2660
|
+
handleChangeFor,
|
|
2661
|
+
currency: form.data.companyFinancialInformation?.currency ?? defaultCurrency
|
|
2662
|
+
}
|
|
2663
|
+
)
|
|
2697
2664
|
] });
|
|
2698
2665
|
}
|
|
2699
2666
|
const FIELDS_NEEDED_FOR_COMPANY_SEARCH = [...STATE_FIELD, ...TAX_INFORMATION_FIELD, ...BUSINESS_REGISTRATION_NUMBER_FIELD];
|
|
@@ -2705,8 +2672,7 @@ const getBasicInformationFields = (country, taskType) => {
|
|
|
2705
2672
|
return fields;
|
|
2706
2673
|
};
|
|
2707
2674
|
const getFinancialInformationFields = (country) => {
|
|
2708
|
-
|
|
2709
|
-
return [...fields, "netAssets", "balanceSheetTotal", "annualTurnover"];
|
|
2675
|
+
return country === CountryCodes.UnitedKingdom ? financialInformationFields : financialInformationFieldsForEu;
|
|
2710
2676
|
};
|
|
2711
2677
|
const staticBusinessDetailsForms = {
|
|
2712
2678
|
businessSelection: {
|
|
@@ -3332,7 +3298,7 @@ function BusinessDetailsMultiform({
|
|
|
3332
3298
|
requiredFields: form.requiredFields?.companyTaxDocument,
|
|
3333
3299
|
optionalFields: form.optionalFields?.companyTaxDocument,
|
|
3334
3300
|
trustedFields: form.trustedFields?.companyTaxDocument,
|
|
3335
|
-
handleFieldChange: () => handleChange("companyTaxDocument",
|
|
3301
|
+
handleFieldChange: (fieldName) => handleChange("companyTaxDocument", fieldName)
|
|
3336
3302
|
}
|
|
3337
3303
|
) : /* @__PURE__ */ jsx(VatDocument, { children: /* @__PURE__ */ jsx(
|
|
3338
3304
|
MemoizedDocumentUpload,
|
|
@@ -3470,15 +3436,11 @@ function BusinessDetailsMultiform({
|
|
|
3470
3436
|
return /* @__PURE__ */ jsx(
|
|
3471
3437
|
FinancialInformation,
|
|
3472
3438
|
{
|
|
3473
|
-
multiForm: form,
|
|
3474
3439
|
id: activeForm2.formId,
|
|
3475
3440
|
country,
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
optionalFields: form.optionalFields?.companyFinancialInformation,
|
|
3480
|
-
trustedFields: form.trustedFields?.companyFinancialInformation,
|
|
3481
|
-
shouldValidate
|
|
3441
|
+
shouldValidate,
|
|
3442
|
+
validationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
3443
|
+
verificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
3482
3444
|
}
|
|
3483
3445
|
);
|
|
3484
3446
|
default:
|
|
@@ -3494,6 +3456,76 @@ const CompanyStructureValidation = {
|
|
|
3494
3456
|
errorMessage: "fieldIsRequired"
|
|
3495
3457
|
}
|
|
3496
3458
|
};
|
|
3459
|
+
const currencyMetadata = {
|
|
3460
|
+
validators: {
|
|
3461
|
+
modes: ["blur"],
|
|
3462
|
+
validate: (currency) => !isEmpty(currency),
|
|
3463
|
+
errorMessage: "fieldIsRequired"
|
|
3464
|
+
}
|
|
3465
|
+
};
|
|
3466
|
+
const financialReportingDateMetadata = {
|
|
3467
|
+
validators: [
|
|
3468
|
+
{
|
|
3469
|
+
modes: ["blur"],
|
|
3470
|
+
validate: (date) => !isEmpty(date),
|
|
3471
|
+
errorMessage: "fieldIsRequired"
|
|
3472
|
+
},
|
|
3473
|
+
{
|
|
3474
|
+
modes: ["blur"],
|
|
3475
|
+
validate: (date) => date ? new Date(date) < /* @__PURE__ */ new Date() : false,
|
|
3476
|
+
errorMessage: "invalidFinancialReportingDate"
|
|
3477
|
+
}
|
|
3478
|
+
]
|
|
3479
|
+
};
|
|
3480
|
+
const numberOfEmployeesMetadata = {
|
|
3481
|
+
validators: [
|
|
3482
|
+
{
|
|
3483
|
+
modes: ["blur"],
|
|
3484
|
+
validate: (numberOfEmployees) => !isEmpty(numberOfEmployees),
|
|
3485
|
+
errorMessage: "fieldIsRequired"
|
|
3486
|
+
},
|
|
3487
|
+
{
|
|
3488
|
+
modes: ["blur"],
|
|
3489
|
+
validate: (numberOfEmployees) => Number.isInteger(Number(numberOfEmployees)) && Number(numberOfEmployees) > 0,
|
|
3490
|
+
errorMessage: "pleaseEnterAValidWholeNumber"
|
|
3491
|
+
}
|
|
3492
|
+
]
|
|
3493
|
+
};
|
|
3494
|
+
const reportedValueOptionMetadata = {
|
|
3495
|
+
validators: {
|
|
3496
|
+
modes: ["blur"],
|
|
3497
|
+
validate: (option) => !isEmpty(option),
|
|
3498
|
+
errorMessage: "fieldIsRequired"
|
|
3499
|
+
}
|
|
3500
|
+
};
|
|
3501
|
+
const balanceSheetTotalMetadata = {
|
|
3502
|
+
validators: {
|
|
3503
|
+
modes: ["blur"],
|
|
3504
|
+
validate: (amount) => !isUndefinedOrNull(amount),
|
|
3505
|
+
errorMessage: "fieldIsRequired"
|
|
3506
|
+
}
|
|
3507
|
+
};
|
|
3508
|
+
const annualTurnoverMetadata = {
|
|
3509
|
+
validators: {
|
|
3510
|
+
modes: ["blur"],
|
|
3511
|
+
validate: (amount) => !isUndefinedOrNull(amount),
|
|
3512
|
+
errorMessage: "fieldIsRequired"
|
|
3513
|
+
}
|
|
3514
|
+
};
|
|
3515
|
+
const financialInfoValidationRules = {
|
|
3516
|
+
financialReportingDate: financialReportingDateMetadata.validators,
|
|
3517
|
+
currency: currencyMetadata.validators,
|
|
3518
|
+
reportedValueOption: reportedValueOptionMetadata.validators,
|
|
3519
|
+
balanceSheetTotal: balanceSheetTotalMetadata.validators,
|
|
3520
|
+
annualTurnover: annualTurnoverMetadata.validators
|
|
3521
|
+
};
|
|
3522
|
+
const financialInfoValidationEmployeesOnlyRules = {
|
|
3523
|
+
numberOfEmployees: numberOfEmployeesMetadata.validators
|
|
3524
|
+
};
|
|
3525
|
+
const financialInfoValidationWithEmployeesRules = {
|
|
3526
|
+
...financialInfoValidationRules,
|
|
3527
|
+
...financialInfoValidationEmployeesOnlyRules
|
|
3528
|
+
};
|
|
3497
3529
|
const mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
|
|
3498
3530
|
const registrationDocument = getDocument(entityId, "registrationDocument");
|
|
3499
3531
|
const taxDocument = getDocument(entityId, "vatDocument") ?? getDocument(entityId, "proofOfOrganizationTaxInfo");
|
|
@@ -4586,7 +4618,6 @@ const financialInformationBase = {
|
|
|
4586
4618
|
currency: { rule: "isFinancialReportingFieldsRequired" },
|
|
4587
4619
|
reportedValueOption: { rule: "isFinancialReportingFieldsRequired" },
|
|
4588
4620
|
annualTurnover: { rule: "annualTurnoverRequired" },
|
|
4589
|
-
netAssets: { rule: "netAssetsRequired" },
|
|
4590
4621
|
balanceSheetTotal: { rule: "balanceSheetTotalRequired" }
|
|
4591
4622
|
};
|
|
4592
4623
|
const businessDetailsFieldsPerScenario = {
|
|
@@ -4773,7 +4804,7 @@ function BusinessDetailsDropin({
|
|
|
4773
4804
|
rootLegalEntityId: rootLegalEntityId.value
|
|
4774
4805
|
});
|
|
4775
4806
|
const { data: matchingScenario } = useScenarios(country, LegalEntityTypes.ORGANIZATION);
|
|
4776
|
-
const { isAgnosticEndpointEnabled
|
|
4807
|
+
const { isAgnosticEndpointEnabled } = useCompanySearchExperiments();
|
|
4777
4808
|
useEffect(() => {
|
|
4778
4809
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
4779
4810
|
userEvents.addTaskEvent("Landed on page", {
|
|
@@ -5078,7 +5109,7 @@ function BusinessDetailsDropin({
|
|
|
5078
5109
|
useEffect(() => {
|
|
5079
5110
|
if (!searchingCompanies && companySearchResponse?.results) {
|
|
5080
5111
|
userEvents.addPageEvent("Success", {
|
|
5081
|
-
actionType: "
|
|
5112
|
+
actionType: "resolve",
|
|
5082
5113
|
returnValue: "companySearch",
|
|
5083
5114
|
additionalData: {
|
|
5084
5115
|
numberOfResults: companySearchResponse.results.length
|
|
@@ -5099,10 +5130,6 @@ function BusinessDetailsDropin({
|
|
|
5099
5130
|
return handleNextClick(currentForms);
|
|
5100
5131
|
}
|
|
5101
5132
|
try {
|
|
5102
|
-
userEvents.addPageEvent("Triggered async operation", {
|
|
5103
|
-
actionType: "start",
|
|
5104
|
-
returnValue: "companySearch"
|
|
5105
|
-
});
|
|
5106
5133
|
setLoadingStatus("loading");
|
|
5107
5134
|
tinMatched.value = void 0;
|
|
5108
5135
|
verifiedBusiness.value = void 0;
|
|
@@ -5137,8 +5164,7 @@ function BusinessDetailsDropin({
|
|
|
5137
5164
|
id: searchResponse.results[0].resultId
|
|
5138
5165
|
} : { company: searchResponse.results[0] }
|
|
5139
5166
|
},
|
|
5140
|
-
isAgnosticEndpointEnabled
|
|
5141
|
-
isLookupPathEnabled
|
|
5167
|
+
isAgnosticEndpointEnabled
|
|
5142
5168
|
);
|
|
5143
5169
|
if (handleTinResponse(!!companySelectionResponse.tinMatched)) {
|
|
5144
5170
|
verifiedBusiness.value = companySelectionResponse;
|