@adyen/kyc-components 3.92.1 → 3.93.0-beta.2
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-Cc5TwxYd.js → AcceptTermsOfServiceComponent-B4fXz2Mj.js} +17 -16
- package/dist/{Accordion-CAqKHAj9.js → Accordion-B9ASz7oD.js} +2 -2
- package/dist/{AccountSetupRejected-C9FCwunF.js → AccountSetupRejected-BsYzF0XW.js} +3 -3
- package/dist/{ActionBar-C1rqfjkV.js → ActionBar-Gbat0LF-.js} +1 -1
- package/dist/{Address-C8Kqz-2b.js → Address-Bu9zOvAM.js} +15 -15
- package/dist/{Alert-E_a_csSs.js → Alert-0L9Okc_j.js} +3 -3
- package/dist/{Avatar-wQ0mYsYL.js → Avatar-C2jFofpv.js} +2 -2
- package/dist/{BusinessFinancingComponent-ReMZLbjX.js → BusinessFinancingComponent-C12Xnx_y.js} +5 -5
- package/dist/{BusinessFinancingDropin-DtSERjsb.js → BusinessFinancingDropin-BYwivstT.js} +29 -28
- package/dist/{BusinessFinancingPage-DqSCsrPJ.js → BusinessFinancingPage-CUeLDq8J.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-zzDSHomI.js → BusinessTypeSelectionPage-BQ1yBBhx.js} +9 -9
- package/dist/Card-OQuFzmxm.js +90 -0
- package/dist/{Checkbox-Bp4HrJKI.js → Checkbox-DBN0bHrR.js} +2 -2
- package/dist/{Confirm-Ba5lqFqd.js → Confirm-DvCDgyAD.js} +3 -3
- package/dist/{ConstitutionalDocument-DD5CB7gM.js → ConstitutionalDocument-BXepv2HE.js} +18 -18
- package/dist/{validate-CIuB6JUT.js → ContactDetails-D84L456z.js} +21 -20
- package/dist/{ContextGuidance-aACh9e6u.js → ContextGuidance-CyvagjSm.js} +3 -3
- package/dist/{CountryField-B0daMnwW.js → CountryField-DelOJ_90.js} +4 -4
- package/dist/{CreateIndividualComponent-pLTW4M3J.js → CreateIndividualComponent-B56tad3f.js} +6 -12
- package/dist/{CreateTransferInstrumentComponent-DlSD28ga.js → CreateTransferInstrumentComponent-DAIYbzea.js} +4 -4
- package/dist/{Currency-DXgu9MoR.js → Currency-DARtu8dS.js} +11 -8
- package/dist/{CustomerSupport-eNBxns8l.js → CustomerSupport-HpsRjJyl.js} +12 -11
- package/dist/{DebugModal-jvulkSEe.js → DebugModal-DEYa0E-D.js} +12 -10
- package/dist/{DecisionMakerDetailsPage-IV32QvAq.js → DecisionMakerDetailsPage-CmvZWgoB.js} +12 -18
- package/dist/{DecisionMakers-CNxYaQOO.js → DecisionMakers-eOsvlawr.js} +21 -22
- package/dist/{Dropzone-CJTj99Jm.js → Dropzone-BgrGUcIm.js} +16 -10
- package/dist/{EmbeddedStatus-BytQYrC_.js → EmbeddedStatus-CGIXkUXu.js} +3 -3
- package/dist/{EndStateLayout-DlvjAj-7.js → EndStateLayout-DhaJTPGG.js} +2 -2
- package/dist/EntityAssociation-oAuDZDjG.js +166 -0
- package/dist/{EntityGuidanceStatus-D9aXAd7N.js → EntityGuidanceStatus-BfJcqJTt.js} +3 -3
- package/dist/{ErrorPanel-DNtK56tD.js → ErrorPanel-CQ5mK5uz.js} +3 -3
- package/dist/{Field-BEoeMy3u.js → Field-QQ5BBCkn.js} +2 -3
- package/dist/{FormNavigation-Ci1LhKvo.js → FormNavigation-Cl5fnGKp.js} +3 -3
- package/dist/{FormWrapper-BCkcULLO.js → FormWrapper-BXCADDZ_.js} +9 -9
- package/dist/{Header-87H731cQ.js → Header-DVxe8YCk.js} +2 -2
- package/dist/{Image-Dv-RB-a6.js → Image-D2r8auP6.js} +4 -9
- package/dist/{rules-CovTg5rc.js → Individual.rules-nvOffGHU.js} +165 -117
- package/dist/{IndividualOnfidoDropin-HK_0jjJH.js → IndividualDropin-Ou29J7Dx.js} +1188 -3959
- package/dist/{InputDate-BcSMepXz.js → InputDate-DplEveci.js} +1 -1
- package/dist/{InputText-D0zIJLdp.js → InputText-V4X24bPM.js} +2 -2
- package/dist/{Introduction-D_Zv9G9d.js → Introduction-kVYYqDhe.js} +4 -4
- package/dist/{JpAddress-C0Q47X_G.js → JpAddress-BKT0w3jl.js} +11 -10
- package/dist/{LandingLayout-oK1JT5Lv.js → LandingLayout-DZt1EtCP.js} +2 -2
- package/dist/{LegalRepresentativeDetailsPage-BrBQg06_.js → LegalRepresentativeDetailsPage-BuOPrCAO.js} +6 -11
- package/dist/{Link-BTTClZw-.js → Link-s00fWIPD.js} +2 -2
- package/dist/{ListItem-BJYQ6BfN.js → ListItem-BOjfMtNh.js} +3 -3
- package/dist/{LoaderWrapper-Dl2oV2v2.js → LoaderWrapper-lbUTZxip.js} +1 -1
- package/dist/ManageIndividualComponent-C80dv903.js +46 -0
- package/dist/{ManageTermsOfServiceComponent-Qpzy5iZg.js → ManageTermsOfServiceComponent-8sW0ubtp.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-CvTD7JqX.js → ManageTransferInstrumentComponent-Djr3hDnm.js} +15 -14
- package/dist/{MaskedInput-Bet0abik.js → MaskedInput-Dtui0pFL.js} +17 -9
- package/dist/{MaybeModal-Bk3WmK24.js → MaybeModal-DAmEe4LX.js} +2 -2
- package/dist/{Modal-1Hv5tfNy.js → Modal-DjqZRXyy.js} +5 -5
- package/dist/{makeSelectItemForRole-B1DAxBZ_.js → Name-2lTBQb7g.js} +5 -57
- package/dist/{OnboardingDropinComponent-tQW1hXKP.js → OnboardingDropinComponent-Druuv3sE.js} +156 -125
- package/dist/{PayoutDetailsDropin-BEoP-NR0.js → PayoutDetailsDropin-B7LtRa1B.js} +91 -87
- package/dist/{RadioGroup-Bg_8BEDn.js → RadioGroup-DUYNpTgM.js} +7 -5
- package/dist/{RadioGroupCard-NRR-OqqG.js → RadioGroupCard-pMlnbEEB.js} +5 -3
- package/dist/{Review-DbX6GFkR.js → Review-_FUu7r2a.js} +8 -7
- package/dist/{RootBusinessDetailsPage-BWewaAOg.js → RootBusinessDetailsPage-yrq_AuhE.js} +9 -8
- package/dist/{RootBusinessLinesPage-CJ9jECx0.js → RootBusinessLinesPage-Cl18f4sM.js} +82 -55
- package/dist/{RootIndividualDetailsPage-CvQ2742R.js → RootIndividualDetailsPage-DCBlFXBW.js} +8 -18
- package/dist/{Select-DglmHz2C.js → Select-mBoYJnAZ.js} +16 -8
- package/dist/{SignPCIComponent-C6vCs_hW.js → SignPCIComponent-Kf3AvaVB.js} +13 -12
- package/dist/{SingpassSelection-Dv7obY3Y.js → SingpassSelection-CfWMbH3h.js} +6 -6
- package/dist/{SoleProprietorshipPage-BBaiVx9A.js → SoleProprietorshipPage-5Zy5JrB-.js} +5 -4
- package/dist/{SourceOfFundsPage-y4UhFduk.js → SourceOfFundsPage-CzUTeF1S.js} +195 -431
- package/dist/{StepProgressIndicator-zp8q1OzD.js → StepProgressIndicator-BE9LWSk0.js} +2 -2
- package/dist/{StoreProvider-BY1HQxMn.js → StoreProvider-D5FOVv9p.js} +170 -3243
- package/dist/{Summary-Dt4LcwGJ.js → Summary-v4P9Y5kQ.js} +6 -6
- package/dist/{TaskVerificationStatus-D7Yyt06M.js → TaskVerificationStatus-5hk86s25.js} +2 -2
- package/dist/{TaxInformationField-jCqBsFve.js → TaxInformationField-AcI4laLZ.js} +1469 -1475
- package/dist/{TaxReportingDropin-PYjxhlen.js → TaxReportingDropin-ZzpWS0S-.js} +35 -37
- package/dist/{TextArea-DaEM1LmR.js → TextArea-DeNjm7Gm.js} +2 -2
- package/dist/{TileGroup-B9NP0xL_.js → TileGroup-CZWfBoyM.js} +4 -4
- package/dist/{TrustDetailsPage-CcSVv1MP.js → TrustDetailsPage--gTP7acy.js} +41 -35
- package/dist/{TrustMemberCompanyPage-f7sbolBK.js → TrustMemberCompanyPage-Bmqb5sgh.js} +6 -5
- package/dist/{TrustMemberIndividualPage-BlkZ5WtP.js → TrustMemberIndividualPage-BJ7a5vEO.js} +6 -11
- package/dist/{TrustMemberRoleAndTypePage-DCsR7Tdy.js → TrustMemberRoleAndTypePage-eGQ7qNwo.js} +78 -22
- package/dist/{TrustMembersOverview-BhDqS5F-.js → TrustMembersOverview-C9VGJyIN.js} +12 -12
- package/dist/{UnincorporatedPartnershipIndividualPage-BbprnGI_.js → UnincorporatedPartnershipIndividualPage-DY8NWGLK.js} +6 -11
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BxpxNdg6.js → UnincorporatedPartnershipMemberCompanyPage-CxGb07CR.js} +6 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-3xUvx9l-.js → UnincorporatedPartnershipMemberRoleAndTypePage-CP88Xvoy.js} +12 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-BpZbRr_e.js → UnincorporatedPartnershipMembersOverview-CtJIWCek.js} +9 -9
- package/dist/{VerificationErrorAlert-7DNyS4C_.js → VerificationErrorAlert-DAmWLDTw.js} +5 -4
- package/dist/{ViewVerificationStatusComponent-urVZF63U.js → ViewVerificationStatusComponent-BKvZhB3Q.js} +5 -4
- package/dist/adyen-business-financing.js +6 -3
- package/dist/adyen-individual-configuration.js +6 -3
- package/dist/adyen-individual-status.js +2 -2
- package/dist/adyen-kyc-components.js +19 -19
- package/dist/adyen-onboarding.js +6 -3
- package/dist/adyen-terms-of-service-management.js +6 -3
- package/dist/adyen-terms-of-service-status.js +2 -2
- package/dist/adyen-transfer-instrument-configuration.js +6 -3
- package/dist/adyen-transfer-instrument-management.js +2 -2
- package/dist/adyen-verification-status.js +6 -3
- package/dist/{bafinUtils-BROXAx5r.js → bafinUtils-D-iUsb1z.js} +19 -69
- package/dist/{bg-BG-DVjwfSz4.js → bg-BG-BMe54km9.js} +2 -2
- package/dist/{commonValidators-B7eyF3yt.js → commonValidators-CalwJK5h.js} +2 -2
- package/dist/{cs-CZ-CLY9qYTs.js → cs-CZ-BwiHrdav.js} +2 -2
- package/dist/{da-DK-uHPPFvD-.js → da-DK-D3nwkjjZ.js} +2 -2
- package/dist/{de-DE-SMf6w4NJ.js → de-DE-ZU2Hsp38.js} +2 -2
- package/dist/{dropinUtils-DqJ1Ds6F.js → dropinUtils-D59ldyqp.js} +4 -4
- package/dist/{el-GR-wv99Y9Yf.js → el-GR-DbOICeSZ.js} +2 -2
- package/dist/{es-ES-BqpvBqmR.js → es-ES-diRragkx.js} +2 -2
- package/dist/{et-EE-CAuCY0qn.js → et-EE--PzlaQkR.js} +2 -2
- package/dist/{fi-FI-DPegZzTc.js → fi-FI-D0_0MXLR.js} +2 -2
- package/dist/{fieldConfig-DVdDkF4v.js → fieldConfig-1wEVw6MW.js} +6 -6
- package/dist/{formUtils-6n_sAj9f.js → formUtils-BUyxO4Zy.js} +3 -3
- package/dist/{fr-FR-BPGwsLDa.js → fr-FR-CbjzHhqH.js} +2 -2
- package/dist/{getName-2kWqXhZa.js → getName-BCGuaRKD.js} +2 -2
- package/dist/{hr-HR-DdqNL1pQ.js → hr-HR-CDuWrX1x.js} +2 -2
- package/dist/{hu-HU-C1LJENXO.js → hu-HU-CXB62KSV.js} +2 -2
- package/dist/{iframeWidget-BHiCu3PY.js → iframeWidget-CxqD-Z9-.js} +4 -4
- package/dist/{isEmpty-COLZr49P.js → isEmpty-BCB0E6W3.js} +2 -2
- package/dist/{it-IT-B1eJg9RL.js → it-IT-BbW5PMj0.js} +2 -2
- package/dist/ja-JP-D8-geaup.js +13 -0
- package/dist/{japanSupportUtils-DHTmTrsj.js → japanSupportUtils-CNwDfN86.js} +3 -3
- package/dist/{localizeDateString-tOyK52gO.js → localizeDateString-DnJ6n3p4.js} +2 -2
- package/dist/{lt-LT-BmRnIfWs.js → lt-LT-BCusE8Fe.js} +2 -2
- package/dist/{lv-LV-CX9j9Dtv.js → lv-LV-D_D39wup.js} +2 -2
- package/dist/{mapExistingFile-Bz4_d6_m.js → mapExistingFile-DF8ylI3D.js} +4 -4
- package/dist/{mapJpAddressSchemaToAddressLocalizations-COA1bDNt.js → mapJpAddressSchemaToAddressLocalizations-Y24lCOu6.js} +38 -38
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-CdLLvb8F.js → mapLegalEntityToIndividualSchema-BfluetfB.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-CPpBX8oM.js → mapTransferInstrumentToPayoutAccount-DGEME7Zv.js} +3 -2
- package/dist/{nl-NL-cVVIDG7s.js → nl-NL-Z2ifhzHq.js} +2 -2
- package/dist/{no-NO-C_tmZ39d.js → no-NO-D09wFbmU.js} +2 -2
- package/dist/{patternValidators-DSKvrLlO.js → patternValidators-DbUGFIUU.js} +2 -2
- package/dist/{pl-PL-DFZFSKZX.js → pl-PL-uU0uFIWi.js} +2 -2
- package/dist/{process-field-configurations-2fq1Bq8j.js → process-field-configurations-DGERpLQI.js} +4 -4
- package/dist/{pt-BR-CMiGlY3k.js → pt-BR-DzLl_fGR.js} +2 -2
- package/dist/{pt-PT-DmdQxN_1.js → pt-PT-Czix42gf.js} +2 -2
- package/dist/{resolveEnvironment-DPBuIa7_.js → resolveEnvironment-S2KpSjit.js} +3 -3
- package/dist/{ro-RO-B0slmyWK.js → ro-RO-BmHGZmbO.js} +2 -2
- package/dist/{roleMetadata-steXST1L.js → roleMetadata-CKgUDBXU.js} +2 -2
- package/dist/{sk-SK-BptPuon4.js → sk-SK-hx3DmG_3.js} +2 -2
- package/dist/{sl-SI-C3nGkfNb.js → sl-SI-D06jZL__.js} +2 -2
- package/dist/style.css +272 -295
- package/dist/styles-CLV89_hH.js +272 -295
- package/dist/{sv-SE-CXn28ybc.js → sv-SE-eJgjc6iG.js} +2 -2
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
- package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
- package/dist/types/api/address/useSearchAddress.d.ts +1 -2
- package/dist/types/api/businessLines/useBusinessLines.d.ts +2 -2
- package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +1 -1
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +1 -1
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +1 -1
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +1 -1
- package/dist/types/api/check/useCheck.d.ts +1 -2
- package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +1 -1
- package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -2
- package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
- package/dist/types/api/configurations/useScenarios.d.ts +2 -160
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +1 -1
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +1 -3
- package/dist/types/api/documents/useCreateDocument.d.ts +1 -1
- package/dist/types/api/documents/useDeleteDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocuments.d.ts +1 -1
- package/dist/types/api/documents/useUpdateDocument.d.ts +1 -1
- package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +1 -1
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -4
- package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +1 -1
- package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +1 -1
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +2 -2
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -2
- package/dist/types/api/legalEntity/useConfirmReview.d.ts +1 -1
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +8 -389
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +1 -1
- package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +1 -1
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -2
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +1 -1
- package/dist/types/api/pci/usePciStatus.d.ts +1 -1
- package/dist/types/api/pci/usePciTemplate.d.ts +1 -1
- package/dist/types/api/pci/useSignPci.d.ts +1 -1
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
- package/dist/types/api/queryKeys.d.ts +1 -1
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +1 -1
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -1
- package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +1 -2
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -7
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -1
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -1
- package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
- package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/api/types.d.ts +1 -1
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +1 -1
- package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +1 -1
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +1 -2
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -2
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +0 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -1
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +3 -3
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +2 -1
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +8 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +0 -1
- package/dist/types/components/Business/utils/companyUtil.d.ts +0 -9
- package/dist/types/components/BusinessLines/constants.d.ts +2 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +2 -1
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +4 -2
- package/dist/types/components/BusinessLines/tasks/validate.d.ts +0 -2
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +20 -21
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +5 -2
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -3
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +29 -0
- package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.types.d.ts +3 -3
- package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/TypeOfIdentity/index.d.ts +2 -2
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.d.ts +4 -0
- package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/validate.d.ts +8 -8
- package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +22 -0
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +9 -0
- package/dist/types/components/Individual/forms/{IndividualOnfido/DataConflictsModal → DataConflictsModal}/ConflictRow.d.ts +1 -1
- package/dist/types/components/Individual/forms/{IndividualOnfido/DataConflictsModal → DataConflictsModal}/DataConflictsModal.d.ts +1 -1
- package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/types.d.ts +5 -15
- package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/utils.d.ts +1 -1
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +18 -0
- package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.types.d.ts +3 -3
- package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +1 -1
- package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/UploadedDocument/UploadedDocument.d.ts +1 -1
- package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/individualOnfidoConflictsSchema.d.ts +5 -5
- package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +4 -0
- package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/validateExtractionResult.d.ts +3 -3
- package/dist/types/components/Individual/forms/{IndividualOnfido/IndividualOnfido.d.ts → Individual.d.ts} +6 -2
- package/dist/types/components/Individual/forms/{IndividualOnfido/IndividualOnfido.rules.d.ts → Individual.rules.d.ts} +5 -6
- package/dist/types/components/Individual/forms/{IndividualOnfido/IndividualOnfido.types.d.ts → Individual.types.d.ts} +15 -15
- package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.types.d.ts +1 -1
- package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaireModalContent.d.ts +1 -1
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -2
- package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -3
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
- package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +1 -1
- package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +1 -1
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -12
- package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -3
- package/dist/types/components/Individual/mapping/{mapIndividualOnfidoSchemaToLegalEntity.d.ts → mapIndividualSchemaToLegalEntity.d.ts} +1 -1
- package/dist/types/components/Individual/mapping/{mapLegalEntityToIndividualOnfidoSchema.d.ts → mapLegalEntityToIndividualSchema.d.ts} +1 -1
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +3 -4
- package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +1 -13
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +0 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +8 -0
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
- package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
- package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/types.d.ts +2 -2
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +4 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +0 -2
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +2 -1
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +2 -2
- package/dist/types/components/ui/atoms/Card/Card.d.ts +19 -0
- package/dist/types/context/ExperimentContext/types.d.ts +0 -36
- package/dist/types/context/QueryContext/QueryClient.d.ts +1 -1
- package/dist/types/context/StateContext/types.d.ts +2 -3
- package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
- package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +3 -2
- package/dist/types/embeds/baseEmbedProps.d.ts +0 -21
- package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +2 -1
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +5 -1
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
- package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +2 -1
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.d.ts +5 -1
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.d.ts +2 -1
- package/dist/types/embeds/verification-status/adyen-verification-status.d.ts +2 -1
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -1
- package/dist/types/hooks/useUboQuestionnaire.d.ts +2 -2
- package/dist/types/stores/formState.d.ts +1 -1
- package/dist/types/utils/addLinkedFields.d.ts +0 -2
- package/dist/types/utils/api/processCapabilitites.d.ts +2 -3
- package/dist/types/utils/birthDateUtils.d.ts +0 -17
- package/dist/types/utils/entityAssociationUtil.d.ts +3 -4
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -3
- package/dist/types/utils/logger.d.ts +0 -1
- package/dist/types/utils/performance.d.ts +64 -0
- package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +3 -2
- package/dist/{types-2lh4v1NS.js → types-CUp2kEQJ.js} +1 -1
- package/dist/{types-Dk94b8kx.js → types-DY4_Oje-.js} +1 -37
- package/dist/{types-MoVpdFbr.js → types-DgF4O5ru.js} +2 -2
- package/dist/{types-CGYmPCYj.js → types-vqz1MZ1F.js} +2 -2
- package/dist/{useAssociatedLegalEntity-BufOLUsc.js → useAssociatedLegalEntity-C8wrPYHO.js} +3 -2
- package/dist/{useBusinessDetailsData-D4EbMk7x.js → useBusinessDetailsData-nW3yfjoJ.js} +253 -183
- package/dist/{useCreateLegalEntity-CmZ_Xs5Y.js → useCreateLegalEntity-DEc1Kwc9.js} +3 -2
- package/dist/{useDataset-BRi4mlWJ.js → useDataset-CLceNuVk.js} +2 -2
- package/dist/{useForm-DpYu-ydO.js → useForm-C6Y--Xun.js} +3 -3
- package/dist/{useFormContext-03qTwgil.js → useFormContext-7UjLuyeC.js} +7 -7
- package/dist/{useGlobalData-Dk70ESMH.js → useGlobalData-DS2ZGdGI.js} +2 -2
- package/dist/{useMultiForm-BNwZbeFz.js → useMultiForm-B3D5YMQv.js} +5 -5
- package/dist/{useOnboardingStatus-D6f5Kt_w.js → useOnboardingStatus-pO-8haat.js} +3 -2
- package/dist/{useScenarios-BQO76Qbs.js → useScenarios-BeYCbuMy.js} +5 -3
- package/dist/{useTermsOfServiceStatus-pQ-OjZcj.js → useTermsOfServiceStatus-a9HTnF2t.js} +3 -2
- package/dist/{useToastContext-BG3cHfke.js → useToastContext-CY5gBg6O.js} +3 -2
- package/dist/{useUnincorporatedPartnershipMembers-DumGMdhZ.js → useUnincorporatedPartnershipMembers-BFoyyohQ.js} +4 -4
- package/dist/{useUpdateBusinessLines-BWk0eCVS.js → useUpdateBusinessLines-Ca6VPudz.js} +20 -17
- package/dist/{useUpdateLegalEntity-DJomQK33.js → useUpdateLegalEntity-CV9zKmhh.js} +4 -3
- package/dist/{utils-DkGVdk7W.js → utils-9A5Vx0Md.js} +25 -21
- package/dist/{utils-B5nzpIMU.js → utils-DJ11eWHJ.js} +6 -6
- package/dist/{utils-Cm0vPCdA.js → utils-DW7BsBmK.js} +1 -1
- package/dist/{utils-DtmnCXcG.js → utils-DkD_AO7r.js} +2 -2
- package/dist/{utils-CANy0Arr.js → utils-kwRyi0uY.js} +2 -2
- package/dist/{validate-DUJOPfMa.js → validate-BjjltZlf.js} +2 -2
- package/dist/{validate-D5t_i90f.js → validate-CDvp3PSV.js} +4 -3
- package/dist/{validationError-BkGOdtDT.js → validationError-BSalUIny.js} +3 -3
- package/package.json +56 -49
- package/dist/Card-BSfGetza.js +0 -82
- package/dist/EntityAssociation-Bl1NeRHI.js +0 -159
- package/dist/ManageIndividualComponent-C7zwlJuO.js +0 -46
- package/dist/hasDataChanged-DzGl3k7N.js +0 -19
- package/dist/id-verification-instant-Byt4Oul6.js +0 -58
- package/dist/id-verification-manual-CvcTkOSY.js +0 -55
- package/dist/ja-JP-PnqAHl14.js +0 -13
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/mandatoryFields.d.ts +0 -3
- package/dist/types/components/Individual/fields/DecisionMakerRole/DecisionMakerRole.d.ts +0 -3
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +0 -10
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +0 -23
- package/dist/types/components/Individual/fields/NameFields/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentAlreadyUpload.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentInstantVerification.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentUpload.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -15
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +0 -47
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/Identity.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +0 -41
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +0 -21
- package/dist/types/components/Individual/forms/Individual/form-ids.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -40
- package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -50
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -29
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -22
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +0 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +0 -17
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +0 -4
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +0 -4
- package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +0 -3
- package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +0 -3
- package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +0 -8
- package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +0 -3
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +0 -3
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +0 -2
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +0 -4
- package/dist/types/components/ui/molecules/Card/Card.d.ts +0 -3
- package/dist/types/components/ui/molecules/Card/types.d.ts +0 -26
- package/dist/types/embeds/EmbedBaseElement.d.ts +0 -41
- package/dist/types/embeds/EmbedCore.d.ts +0 -22
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +0 -14
- package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +0 -12
- package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +0 -12
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +0 -12
- package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +0 -16
- package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +0 -14
- package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +0 -20
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/AdditionalPersonalDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/BasicDetails → BasicDetails}/BasicDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/GuidanceQuestion → GuidanceQuestion}/GuidanceQuestion.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/IdDocumentManualUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdNowVerificationModal → IdNowVerificationModal}/IdNowVerificationModal.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/IdVerification.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/idVerificationProviderId.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/types.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/ManualIdUpload → ManualIdUpload}/ManualIdUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/index.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/ProofOfResidency.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaireModalContent.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/form-ids.d.ts → form-ids.d.ts} +0 -0
- /package/dist/types/components/Individual/tasks/{IndividualOnfidoDropin/IndividualOnfidoStore.d.ts → IndividualDropin/IndividualStore.d.ts} +0 -0
- /package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/LocalizedNameFields.d.ts +0 -0
|
@@ -2,72 +2,74 @@
|
|
|
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] = "40cfd7ac-6372-4e45-8f41-9d6cf761b440", e._sentryDebugIdIdentifier = "sentry-dbid-40cfd7ac-6372-4e45-8f41-9d6cf761b440");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
11
|
+
import { useMutation, useQuery, skipToken, useQueryClient } from "@tanstack/preact-query";
|
|
12
12
|
import { useEffect, useCallback, useState, useMemo } 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
|
|
15
|
-
import { u as
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { u as
|
|
22
|
-
import { u as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
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-Ca6VPudz.js";
|
|
14
|
+
import { u as useTranslation, ag as useI18nContext, an as isEmpty, i as isUndefinedOrNull, C as CountryCodes, br as isISIN, B as Button, W as useExperimentsContext, c as useLegalEntity, R as ROOT_LE, aC as useVersionConfiguration, x as Typography, L as Loader, m as useSettingsContext, b as useApiContext, j as httpPost, ai as entriesOf, P as useAnalyticsContext, z as createLogger, K as useAccountHolder, O as TaskTypes, q as LegalEntityTypes, bs as businessDetailsComponentsKeyMapping, bt as solePropBusinessDetailsKeyMapping, aa as objectsDeepEqual, aG as keysOf, bu as solePropBusinessDetailsApiKeyMapping, b5 as businessDetailsApiKeyMapping, aM as filterOutUnwantedAssociationsIfRootLE, aK as drop, a6 as getOwnEntityAssociations, aR as doArraysMatch, bv as solePropBusinessDetailsDocumentMapping, bw as businessDetailsDocumentMapping } from "./StoreProvider-D5FOVv9p.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-DEc1Kwc9.js";
|
|
16
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-CV9zKmhh.js";
|
|
17
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-7UjLuyeC.js";
|
|
18
|
+
import { u as useToastContext } from "./useToastContext-CY5gBg6O.js";
|
|
19
|
+
import { C as CompanyTypesValues } from "./bafinUtils-D-iUsb1z.js";
|
|
20
|
+
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-DGERpLQI.js";
|
|
21
|
+
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-D59ldyqp.js";
|
|
22
|
+
import { u as useMultiForm } from "./useMultiForm-B3D5YMQv.js";
|
|
23
|
+
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-DF8ylI3D.js";
|
|
24
|
+
import { C as Confirm } from "./Confirm-DvCDgyAD.js";
|
|
25
|
+
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-CDvp3PSV.js";
|
|
26
|
+
import { c as TAX_INFORMATION_FIELD, r as requestingBanking, d as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, S as StateCodesUS, e as isUsingCompanySearch, M as MemoizedDocumentUpload, f as isRegistrationNumberAbsentStateV4Scenario, h as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, j as getCompanyRegistrationNumberOptions, k as countryToTaxInfoTypeMap, l as rules, g as getFieldsWithExistingData } from "./TaxInformationField-AcI4laLZ.js";
|
|
27
|
+
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$1, a as defaultFieldConfig$1, b as registrationNumberDefaultFieldMetadata, c as registrationNumberDefaultFieldConfig, e as doingBusinessAsFieldMetadata, f as doingBusinessAsAbsentFieldMetadata, g as DBANameField, h as BusinessRegistrationNumberField, i as VatNumberField, M as MemoizedConstitutionalDocument, j as getDefaultRegistrationNumberType, k as getDefaultVatNumberType, l as inferCompanyRegistrationNumberType, m as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-BXepv2HE.js";
|
|
28
|
+
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-DjqZRXyy.js";
|
|
29
|
+
import { S as SettingNames } from "./TaskVerificationStatus-5hk86s25.js";
|
|
30
|
+
import { t as toFullWidth, u as useAllowedCountries, m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-Y24lCOu6.js";
|
|
31
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-kwRyi0uY.js";
|
|
32
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-DJ11eWHJ.js";
|
|
33
|
+
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-9A5Vx0Md.js";
|
|
34
|
+
import { b as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, c as StateField, i as isDateOlderThanAYear } from "./Address-Bu9zOvAM.js";
|
|
34
35
|
import { s as summaryItem } from "./summaryItem-CAQCQSkt.js";
|
|
35
|
-
import { s as summaryStep } from "./Summary-
|
|
36
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
36
|
+
import { s as summaryStep } from "./Summary-v4P9Y5kQ.js";
|
|
37
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-BSalUIny.js";
|
|
37
38
|
import { a as datasetUtilities } from "./datasetUtil-BHQp0-xL.js";
|
|
38
39
|
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
39
|
-
import { I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, L as LegalFormField, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-
|
|
40
|
-
import { i as isEmpty$1 } from "./isEmpty-
|
|
40
|
+
import { I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, L as LegalFormField, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-DARtu8dS.js";
|
|
41
|
+
import { i as isEmpty$1 } from "./isEmpty-BCB0E6W3.js";
|
|
41
42
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
42
43
|
import { b as mapAddressLocalizationToJpAddressSchema, a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
43
|
-
import { L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./fieldConfig-
|
|
44
|
-
import {
|
|
45
|
-
import { F as Field } from "./Field-
|
|
46
|
-
import { H as Header } from "./Header-
|
|
47
|
-
import { R as RadioGroup } from "./RadioGroup-
|
|
48
|
-
import { u as useGlobalDataSlice } from "./useGlobalData-
|
|
49
|
-
import { u as useForm } from "./useForm-
|
|
50
|
-
import { c as createFormUtils, m as mergeFieldMetadataIntoProps } from "./formUtils-
|
|
51
|
-
import { c as currencyByCountry } from "./types-
|
|
52
|
-
import { I as InputDate, f as formatDateObj } from "./InputDate-
|
|
44
|
+
import { L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./fieldConfig-1wEVw6MW.js";
|
|
45
|
+
import { i as useBusinessLines } from "./OnboardingDropinComponent-Druuv3sE.js";
|
|
46
|
+
import { F as Field } from "./Field-QQ5BBCkn.js";
|
|
47
|
+
import { H as Header } from "./Header-DVxe8YCk.js";
|
|
48
|
+
import { R as RadioGroup } from "./RadioGroup-DUYNpTgM.js";
|
|
49
|
+
import { u as useGlobalDataSlice } from "./useGlobalData-DS2ZGdGI.js";
|
|
50
|
+
import { u as useForm } from "./useForm-C6Y--Xun.js";
|
|
51
|
+
import { c as createFormUtils, m as mergeFieldMetadataIntoProps } from "./formUtils-BUyxO4Zy.js";
|
|
52
|
+
import { c as currencyByCountry } from "./types-vqz1MZ1F.js";
|
|
53
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-DplEveci.js";
|
|
53
54
|
import { Suspense, lazy } from "preact/compat";
|
|
54
|
-
import { C as Checkbox } from "./Checkbox-
|
|
55
|
-
import { E as ErrorPanel } from "./ErrorPanel-
|
|
56
|
-
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-
|
|
57
|
-
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-
|
|
58
|
-
import { i as isCompatibleJapanVersion } from "./japanSupportUtils-
|
|
55
|
+
import { C as Checkbox } from "./Checkbox-DBN0bHrR.js";
|
|
56
|
+
import { E as ErrorPanel } from "./ErrorPanel-CQ5mK5uz.js";
|
|
57
|
+
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-DbUGFIUU.js";
|
|
58
|
+
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-Dtui0pFL.js";
|
|
59
|
+
import { i as isCompatibleJapanVersion } from "./japanSupportUtils-CNwDfN86.js";
|
|
59
60
|
import { u as useDebouncedCallback } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
60
61
|
import { signal } from "@preact/signals";
|
|
61
62
|
import cx from "classnames";
|
|
62
|
-
import { L as Link } from "./Link-
|
|
63
|
+
import { L as Link } from "./Link-s00fWIPD.js";
|
|
63
64
|
import { S as StructuredList } from "./StructuredList-9dnJRdx_.js";
|
|
64
|
-
import { I as InputText } from "./InputText-
|
|
65
|
-
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-
|
|
66
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
65
|
+
import { I as InputText } from "./InputText-V4X24bPM.js";
|
|
66
|
+
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-DelOJ_90.js";
|
|
67
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-lbUTZxip.js";
|
|
67
68
|
import { S as StackLayout } from "./unincorporated-partnership-MeN1dp53.js";
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
69
|
+
import { C as Card } from "./Card-OQuFzmxm.js";
|
|
70
|
+
import { L as ListItem } from "./ListItem-BOjfMtNh.js";
|
|
71
|
+
import { a as Alert } from "./Alert-0L9Okc_j.js";
|
|
72
|
+
import { T as TileGroup } from "./TileGroup-CZWfBoyM.js";
|
|
71
73
|
const FINANCIAL_REPORTING_DATE_FIELD = [
|
|
72
74
|
"financialReportingDate"
|
|
73
75
|
];
|
|
@@ -145,12 +147,12 @@ function NumberOfEmployees({
|
|
|
145
147
|
) });
|
|
146
148
|
}
|
|
147
149
|
const financialInformationReportedValueOptions = "adyen-kyc-financial-information-reported-value-options";
|
|
148
|
-
const styles$
|
|
150
|
+
const styles$5 = {
|
|
149
151
|
financialInformationReportedValueOptions
|
|
150
152
|
};
|
|
151
153
|
const reportedValue = "adyen-kyc-reported-value";
|
|
152
154
|
const reportedValueInput = "adyen-kyc-reported-value-input";
|
|
153
|
-
const styles$
|
|
155
|
+
const styles$4 = {
|
|
154
156
|
reportedValue,
|
|
155
157
|
reportedValueInput
|
|
156
158
|
};
|
|
@@ -165,7 +167,7 @@ const ReportedValue = ({
|
|
|
165
167
|
isValid
|
|
166
168
|
}) => {
|
|
167
169
|
const { i18n } = useI18nContext();
|
|
168
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
170
|
+
return /* @__PURE__ */ jsx("div", { className: styles$4.reportedValue, children: /* @__PURE__ */ jsx(Field, { name: fieldName, errorMessage, isValid, helper, children: (childProps) => /* @__PURE__ */ jsx(
|
|
169
171
|
InputCurrency,
|
|
170
172
|
{
|
|
171
173
|
...childProps,
|
|
@@ -173,7 +175,7 @@ const ReportedValue = ({
|
|
|
173
175
|
currency,
|
|
174
176
|
amount,
|
|
175
177
|
onAmountChanged,
|
|
176
|
-
className: styles$
|
|
178
|
+
className: styles$4.reportedValueInput,
|
|
177
179
|
"aria-label": label
|
|
178
180
|
}
|
|
179
181
|
) }) });
|
|
@@ -402,7 +404,7 @@ function FinancialInformation(props) {
|
|
|
402
404
|
],
|
|
403
405
|
onChange: updateReportedValueOption,
|
|
404
406
|
showContentOnlyOnSelected: true,
|
|
405
|
-
className: styles$
|
|
407
|
+
className: styles$5.financialInformationReportedValueOptions
|
|
406
408
|
}
|
|
407
409
|
)
|
|
408
410
|
}
|
|
@@ -708,7 +710,7 @@ const verifiedBusiness = signal(void 0);
|
|
|
708
710
|
const isVerifiedSingleCompanySearchResult = signal(false);
|
|
709
711
|
const additionalInformationContent = "adyen-kyc-additional-information-content";
|
|
710
712
|
const additionalInformationSectionHeading = "adyen-kyc-additional-information-section-heading";
|
|
711
|
-
const styles$
|
|
713
|
+
const styles$3 = {
|
|
712
714
|
additionalInformationContent,
|
|
713
715
|
additionalInformationSectionHeading
|
|
714
716
|
};
|
|
@@ -717,7 +719,7 @@ const verifiedBusinessCardContent = "adyen-kyc-verified-business-card-content";
|
|
|
717
719
|
const verifiedBusinessCardContentCollapsed = "adyen-kyc-verified-business-card-content-collapsed";
|
|
718
720
|
const verifiedBusinessCardContentExpanded = "adyen-kyc-verified-business-card-content-expanded";
|
|
719
721
|
const verifiedBusinessCardExpandButton = "adyen-kyc-verified-business-card-expand-button";
|
|
720
|
-
const styles$
|
|
722
|
+
const styles$2 = {
|
|
721
723
|
verifiedBusinessCard,
|
|
722
724
|
verifiedBusinessCardContent,
|
|
723
725
|
verifiedBusinessCardContentCollapsed,
|
|
@@ -762,12 +764,12 @@ function VerifiedBusinessCard({
|
|
|
762
764
|
].filter((item) => !!item.details),
|
|
763
765
|
[address, addressLink, t, verifiedBusiness2?.legalForm]
|
|
764
766
|
);
|
|
765
|
-
const expandedContentClasses = cx(styles$
|
|
766
|
-
[styles$
|
|
767
|
-
[styles$
|
|
767
|
+
const expandedContentClasses = cx(styles$2.verifiedBusinessCardContent, {
|
|
768
|
+
[styles$2.verifiedBusinessCardContentCollapsed]: !expanded,
|
|
769
|
+
[styles$2.verifiedBusinessCardContentExpanded]: expanded
|
|
768
770
|
});
|
|
769
|
-
return /* @__PURE__ */ jsxs("section", { className: styles$
|
|
770
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
771
|
+
return /* @__PURE__ */ jsxs("section", { className: styles$2.verifiedBusinessCard, children: [
|
|
772
|
+
/* @__PURE__ */ jsxs("div", { className: styles$2.verifiedBusinessCardContent, children: [
|
|
771
773
|
/* @__PURE__ */ jsx(StructuredList, { items: baseItems }),
|
|
772
774
|
/* @__PURE__ */ jsx(Divider, {})
|
|
773
775
|
] }),
|
|
@@ -775,11 +777,11 @@ function VerifiedBusinessCard({
|
|
|
775
777
|
/* @__PURE__ */ jsx(StructuredList, { items: expandedItems }),
|
|
776
778
|
/* @__PURE__ */ jsx(Divider, {})
|
|
777
779
|
] }),
|
|
778
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
780
|
+
/* @__PURE__ */ jsx("div", { className: styles$2.verifiedBusinessCardExpandButton, children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => setExpanded(!expanded), children: expanded ? t(($) => $["hideDetails"], { ns: "common" }) : t(($) => $["showDetails"], { ns: "common" }) }) })
|
|
779
781
|
] });
|
|
780
782
|
}
|
|
781
783
|
const LazyJpAddress = lazy(
|
|
782
|
-
async () => (await import("./JpAddress-
|
|
784
|
+
async () => (await import("./JpAddress-BKT0w3jl.js")).JpAddress
|
|
783
785
|
);
|
|
784
786
|
const ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
|
|
785
787
|
const ADDITIONAL_INFORMATION_FIELDS = [
|
|
@@ -851,6 +853,14 @@ function AdditionalInformation({
|
|
|
851
853
|
}
|
|
852
854
|
};
|
|
853
855
|
}, [verifiedBusiness$1, form.data?.basicInformation?.stateOrProvince, country]);
|
|
856
|
+
const [registrationAddressValid, setRegistrationAddressValid] = useState(false);
|
|
857
|
+
const [operationalAddressValid, setOperationalAddressValid] = useState(false);
|
|
858
|
+
if (form.valid.additionalInformation?.registrationAddress !== registrationAddressValid) {
|
|
859
|
+
form.setValid("registrationAddress", registrationAddressValid, "additionalInformation");
|
|
860
|
+
}
|
|
861
|
+
if (form.data.additionalInformation?.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME && form.valid.additionalInformation?.operationalAddress !== operationalAddressValid) {
|
|
862
|
+
form.setValid("operationalAddress", operationalAddressValid, "additionalInformation");
|
|
863
|
+
}
|
|
854
864
|
const handleChangeFor = useCallback(
|
|
855
865
|
(fieldName, mode) => form.handleChangeFor(fieldName, "additionalInformation", mode),
|
|
856
866
|
[form]
|
|
@@ -858,10 +868,12 @@ function AdditionalInformation({
|
|
|
858
868
|
const handleRegistrationAddressChange = (state) => {
|
|
859
869
|
handleChangeFor("registrationAddress")(state.data);
|
|
860
870
|
form.setValid("registrationAddress", Boolean(state.isValid), "additionalInformation");
|
|
871
|
+
setRegistrationAddressValid(Boolean(state.isValid));
|
|
861
872
|
};
|
|
862
873
|
const handleOperationalAddressChange = (state) => {
|
|
863
874
|
handleChangeFor("operationalAddress")(state.data);
|
|
864
875
|
form.setValid("operationalAddress", Boolean(state.isValid), "additionalInformation");
|
|
876
|
+
setOperationalAddressValid(Boolean(state.isValid));
|
|
865
877
|
};
|
|
866
878
|
const handleOperationalAddressIsSameChange = useCallback(
|
|
867
879
|
(isChecked) => {
|
|
@@ -1030,9 +1042,9 @@ function AdditionalInformation({
|
|
|
1030
1042
|
formUtils
|
|
1031
1043
|
}
|
|
1032
1044
|
),
|
|
1033
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
1045
|
+
/* @__PURE__ */ jsxs("div", { className: styles$3.additionalInformationContent, children: [
|
|
1034
1046
|
showVerified && /* @__PURE__ */ jsxs("section", { children: [
|
|
1035
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1047
|
+
/* @__PURE__ */ jsx("div", { className: styles$3.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["verifiedInformation"], { ns: "business" }) }) }),
|
|
1036
1048
|
/* @__PURE__ */ jsx(
|
|
1037
1049
|
VerifiedBusinessCard,
|
|
1038
1050
|
{
|
|
@@ -1042,7 +1054,7 @@ function AdditionalInformation({
|
|
|
1042
1054
|
)
|
|
1043
1055
|
] }),
|
|
1044
1056
|
/* @__PURE__ */ jsxs("section", { children: [
|
|
1045
|
-
showVerified && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1057
|
+
showVerified && /* @__PURE__ */ jsx("div", { className: styles$3.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["otherBusinessInformation"], { ns: "business" }) }) }),
|
|
1046
1058
|
/* @__PURE__ */ jsxs("fieldset", { children: [
|
|
1047
1059
|
showField(LEGAL_FORM_FIELDS) && /* @__PURE__ */ jsx(
|
|
1048
1060
|
LegalFormField,
|
|
@@ -1264,7 +1276,7 @@ function AdditionalInformation({
|
|
|
1264
1276
|
] })
|
|
1265
1277
|
] }),
|
|
1266
1278
|
showStockData && /* @__PURE__ */ jsxs("section", { children: [
|
|
1267
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
1279
|
+
/* @__PURE__ */ jsx("div", { className: styles$3.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["stockExchangeInformation"], { ns: "business" }) }) }),
|
|
1268
1280
|
/* @__PURE__ */ jsxs("fieldset", { children: [
|
|
1269
1281
|
showField(STOCK_EXCHANGE_MIC_FIELD) && /* @__PURE__ */ jsx(
|
|
1270
1282
|
StockExchangeMICField,
|
|
@@ -1344,7 +1356,7 @@ function AdditionalInformation({
|
|
|
1344
1356
|
] })
|
|
1345
1357
|
] }),
|
|
1346
1358
|
/* @__PURE__ */ jsxs("section", { "data-testid": "registeredBusinessAddress", children: [
|
|
1347
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
1359
|
+
/* @__PURE__ */ jsxs("div", { className: styles$3.additionalInformationSectionHeading, children: [
|
|
1348
1360
|
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["registeredBusinessAddress"], { ns: "business" }) }),
|
|
1349
1361
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: registrationAddressDescription })
|
|
1350
1362
|
] }),
|
|
@@ -1385,7 +1397,7 @@ function AdditionalInformation({
|
|
|
1385
1397
|
)
|
|
1386
1398
|
] }),
|
|
1387
1399
|
/* @__PURE__ */ jsxs("section", { "data-testid": "principalPlaceOfBusiness", children: [
|
|
1388
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
1400
|
+
/* @__PURE__ */ jsxs("div", { className: styles$3.additionalInformationSectionHeading, children: [
|
|
1389
1401
|
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["principalPlaceOfBusiness"], { ns: "business" }) }),
|
|
1390
1402
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["thePhysicalLocationWhereABusiness"], { ns: "business" }) })
|
|
1391
1403
|
] }),
|
|
@@ -1608,7 +1620,7 @@ const defaultFieldConfig = {
|
|
|
1608
1620
|
})
|
|
1609
1621
|
};
|
|
1610
1622
|
const basicInformation = "adyen-kyc-basic-information";
|
|
1611
|
-
const styles$
|
|
1623
|
+
const styles$1 = {
|
|
1612
1624
|
basicInformation
|
|
1613
1625
|
};
|
|
1614
1626
|
const BASIC_INFORMATION_FIELDS = [
|
|
@@ -1787,7 +1799,7 @@ function BasicInformation({
|
|
|
1787
1799
|
formUtils,
|
|
1788
1800
|
handleChange: handleChangeFor
|
|
1789
1801
|
});
|
|
1790
|
-
return /* @__PURE__ */ jsxs("form", { id, className: styles$
|
|
1802
|
+
return /* @__PURE__ */ jsxs("form", { id, className: styles$1.basicInformation, children: [
|
|
1791
1803
|
/* @__PURE__ */ jsx(Header, { title: t(($) => $["basicInformationFormHeading"], { ns: "business" }), children: /* @__PURE__ */ jsx(
|
|
1792
1804
|
FormDescription,
|
|
1793
1805
|
{
|
|
@@ -2195,19 +2207,8 @@ const applyVerifiedBusinessData = (form, country, verifiedData) => {
|
|
|
2195
2207
|
)(verifiedAddress.operationalAddress);
|
|
2196
2208
|
}
|
|
2197
2209
|
};
|
|
2198
|
-
const businessInformation = "adyen-kyc-business-information";
|
|
2199
|
-
const businessInformationContent = "adyen-kyc-business-information-content";
|
|
2200
|
-
const businessInformationContentFetching = "adyen-kyc-business-information-content-fetching";
|
|
2201
|
-
const styles$1 = {
|
|
2202
|
-
businessInformation,
|
|
2203
|
-
businessInformationContent,
|
|
2204
|
-
businessInformationContentFetching
|
|
2205
|
-
};
|
|
2206
2210
|
function BusinessInformation({ fetching, selectedBusiness }) {
|
|
2207
2211
|
const { t } = useTranslation(["common", "business"]);
|
|
2208
|
-
const businessInformationClasses = cx(styles$1.businessInformationContent, {
|
|
2209
|
-
[styles$1.businessInformationContentFetching]: fetching
|
|
2210
|
-
});
|
|
2211
2212
|
const items = useMemo(
|
|
2212
2213
|
() => selectedBusiness ? entriesOf(selectedBusiness).reduce(
|
|
2213
2214
|
(acc, [key, value]) => {
|
|
@@ -2242,10 +2243,10 @@ function BusinessInformation({ fetching, selectedBusiness }) {
|
|
|
2242
2243
|
[selectedBusiness, t]
|
|
2243
2244
|
);
|
|
2244
2245
|
if (fetching) {
|
|
2245
|
-
return /* @__PURE__ */ jsx(
|
|
2246
|
+
return /* @__PURE__ */ jsx(Loader, { size: "large" });
|
|
2246
2247
|
}
|
|
2247
2248
|
if (!fetching) {
|
|
2248
|
-
return /* @__PURE__ */ jsx(
|
|
2249
|
+
return /* @__PURE__ */ jsx(StructuredList, { items });
|
|
2249
2250
|
}
|
|
2250
2251
|
return null;
|
|
2251
2252
|
}
|
|
@@ -2263,6 +2264,7 @@ function BusinessInformationCard({
|
|
|
2263
2264
|
handleBackClick
|
|
2264
2265
|
}) {
|
|
2265
2266
|
const { t } = useTranslation(["common", "business"]);
|
|
2267
|
+
const isSelected = selectedBusinessId === result.id;
|
|
2266
2268
|
const excludeResultAsGovernmentEntity = useMemo(
|
|
2267
2269
|
() => isBankAccountRequestedForOrganization.value && currentBusinessSelection?.organizationType === "GOVERNMENTAL_ORGANIZATION",
|
|
2268
2270
|
[currentBusinessSelection]
|
|
@@ -2278,77 +2280,78 @@ function BusinessInformationCard({
|
|
|
2278
2280
|
setIsBusinessSelection?.(false);
|
|
2279
2281
|
}
|
|
2280
2282
|
};
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2283
|
+
const handleCardClick = () => {
|
|
2284
|
+
handleSelectBusiness(result);
|
|
2285
|
+
};
|
|
2286
|
+
return /* @__PURE__ */ jsx(Card, { selected: isSelected, onClick: isSelected ? void 0 : handleCardClick, children: /* @__PURE__ */ jsxs(StackLayout, { children: [
|
|
2287
|
+
/* @__PURE__ */ jsx(
|
|
2288
|
+
ListItem,
|
|
2289
|
+
{
|
|
2290
|
+
avatar: { iconName: "company", circle: true },
|
|
2291
|
+
title: result.name,
|
|
2292
|
+
description: result.registrationNumber,
|
|
2293
|
+
accessory: fetching && isSelected ? /* @__PURE__ */ jsx(Loader, { size: "medium" }) : null
|
|
2294
|
+
}
|
|
2295
|
+
),
|
|
2296
|
+
isSelected && !fetching && /* @__PURE__ */ jsxs(StackLayout, { children: [
|
|
2297
|
+
invalidTin && /* @__PURE__ */ jsx(
|
|
2298
|
+
Alert,
|
|
2299
|
+
{
|
|
2300
|
+
variant: "warning",
|
|
2301
|
+
type: "callToAction",
|
|
2302
|
+
title: t(($) => $["businessSelection__invalidTin"], { ns: "business" }),
|
|
2303
|
+
actions: /* @__PURE__ */ jsx(Button, { testId: "backBtn", onClick: handleGoBack, variant: "link", children: t(($) => $["back"], { ns: "common" }) }),
|
|
2304
|
+
testId: "invalidTin"
|
|
2305
|
+
}
|
|
2306
|
+
),
|
|
2307
|
+
fetchingError && /* @__PURE__ */ jsx(
|
|
2308
|
+
Alert,
|
|
2309
|
+
{
|
|
2310
|
+
variant: "info",
|
|
2311
|
+
type: "callToAction",
|
|
2312
|
+
title: t(($) => $["businessSelection__failedToLoad"], { ns: "business" }),
|
|
2313
|
+
actions: /* @__PURE__ */ jsx(
|
|
2314
|
+
Button,
|
|
2315
|
+
{
|
|
2316
|
+
testId: "reloadBusiness",
|
|
2317
|
+
onClick: () => refetchCompanySelection(),
|
|
2318
|
+
variant: "link",
|
|
2319
|
+
children: t(($) => $["tryAgain"], { ns: "common" })
|
|
2320
|
+
}
|
|
2321
|
+
),
|
|
2322
|
+
testId: "failedToLoad"
|
|
2323
|
+
}
|
|
2324
|
+
),
|
|
2325
|
+
excludeResultAsGovernmentEntity && /* @__PURE__ */ jsx(
|
|
2326
|
+
Alert,
|
|
2327
|
+
{
|
|
2328
|
+
variant: "info",
|
|
2329
|
+
type: "callToAction",
|
|
2330
|
+
title: t(($) => $["businessSelection__unableToOnboardGovernmentEntity"], {
|
|
2331
|
+
ns: "business"
|
|
2332
|
+
}),
|
|
2333
|
+
actions: /* @__PURE__ */ jsx(Button, { onClick: handleGoBack, variant: "link", children: t(($) => $["goBack"], { ns: "common" }) })
|
|
2334
|
+
}
|
|
2335
|
+
),
|
|
2336
|
+
!fetchingError && !excludeResultAsGovernmentEntity && /* @__PURE__ */ jsx(Card, { variant: "secondary", padding: "large", children: /* @__PURE__ */ jsx(
|
|
2337
|
+
BusinessInformation,
|
|
2338
|
+
{
|
|
2339
|
+
fetching,
|
|
2340
|
+
selectedBusiness: currentBusinessSelection
|
|
2341
|
+
}
|
|
2342
|
+
) }),
|
|
2343
|
+
showSelectButton && /* @__PURE__ */ jsx(
|
|
2291
2344
|
Button,
|
|
2292
2345
|
{
|
|
2293
2346
|
onClick: () => handleConfirmSelection(currentBusinessSelection),
|
|
2294
2347
|
testId: "selectBusiness",
|
|
2295
2348
|
disabled: invalidTin,
|
|
2349
|
+
fullWidth: true,
|
|
2296
2350
|
children: t(($) => $["thisIsMyBusiness"], { ns: "business" })
|
|
2297
2351
|
}
|
|
2298
|
-
)
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
children: selectedBusinessId === result.id && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: styles$1.businessInformation, children: [
|
|
2302
|
-
/* @__PURE__ */ jsx(Divider, {}),
|
|
2303
|
-
invalidTin && /* @__PURE__ */ jsx(
|
|
2304
|
-
Alert,
|
|
2305
|
-
{
|
|
2306
|
-
variant: "warning",
|
|
2307
|
-
type: "callToAction",
|
|
2308
|
-
title: t(($) => $["businessSelection__invalidTin"], { ns: "business" }),
|
|
2309
|
-
actions: /* @__PURE__ */ jsx(Button, { testId: "backBtn", onClick: handleGoBack, variant: "link", children: t(($) => $["back"], { ns: "common" }) }),
|
|
2310
|
-
testId: "invalidTin"
|
|
2311
|
-
}
|
|
2312
|
-
),
|
|
2313
|
-
fetchingError && /* @__PURE__ */ jsx(
|
|
2314
|
-
Alert,
|
|
2315
|
-
{
|
|
2316
|
-
variant: "info",
|
|
2317
|
-
type: "callToAction",
|
|
2318
|
-
title: t(($) => $["businessSelection__failedToLoad"], { ns: "business" }),
|
|
2319
|
-
actions: /* @__PURE__ */ jsx(
|
|
2320
|
-
Button,
|
|
2321
|
-
{
|
|
2322
|
-
testId: "reloadBusiness",
|
|
2323
|
-
onClick: () => refetchCompanySelection(),
|
|
2324
|
-
variant: "link",
|
|
2325
|
-
children: t(($) => $["tryAgain"], { ns: "common" })
|
|
2326
|
-
}
|
|
2327
|
-
),
|
|
2328
|
-
testId: "failedToLoad"
|
|
2329
|
-
}
|
|
2330
|
-
),
|
|
2331
|
-
excludeResultAsGovernmentEntity && /* @__PURE__ */ jsx(
|
|
2332
|
-
Alert,
|
|
2333
|
-
{
|
|
2334
|
-
variant: "info",
|
|
2335
|
-
type: "callToAction",
|
|
2336
|
-
title: t(($) => $["businessSelection__unableToOnboardGovernmentEntity"], {
|
|
2337
|
-
ns: "business"
|
|
2338
|
-
}),
|
|
2339
|
-
actions: /* @__PURE__ */ jsx(Button, { onClick: handleGoBack, variant: "link", children: t(($) => $["goBack"], { ns: "common" }) })
|
|
2340
|
-
}
|
|
2341
|
-
),
|
|
2342
|
-
!fetchingError && !excludeResultAsGovernmentEntity && /* @__PURE__ */ jsx(
|
|
2343
|
-
BusinessInformation,
|
|
2344
|
-
{
|
|
2345
|
-
fetching,
|
|
2346
|
-
selectedBusiness: currentBusinessSelection
|
|
2347
|
-
}
|
|
2348
|
-
)
|
|
2349
|
-
] }) })
|
|
2350
|
-
}
|
|
2351
|
-
);
|
|
2352
|
+
)
|
|
2353
|
+
] })
|
|
2354
|
+
] }) });
|
|
2352
2355
|
}
|
|
2353
2356
|
const businessSelectionFooter = "adyen-kyc-business-selection-footer";
|
|
2354
2357
|
const styles = {
|
|
@@ -2589,7 +2592,7 @@ function CompanyStructure({
|
|
|
2589
2592
|
validationErrors = {},
|
|
2590
2593
|
verificationErrors = {}
|
|
2591
2594
|
}) {
|
|
2592
|
-
const { t } = useTranslation(["common", "business"]);
|
|
2595
|
+
const { t } = useTranslation(["common", "business", "ui"]);
|
|
2593
2596
|
const { form } = useFormContext();
|
|
2594
2597
|
const { accountHolder } = useAccountHolder();
|
|
2595
2598
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -2669,9 +2672,9 @@ function CompanyStructure({
|
|
|
2669
2672
|
] });
|
|
2670
2673
|
}
|
|
2671
2674
|
const FIELDS_NEEDED_FOR_COMPANY_SEARCH = [...STATE_FIELD, ...TAX_INFORMATION_FIELD, ...BUSINESS_REGISTRATION_NUMBER_FIELD];
|
|
2672
|
-
const getBasicInformationFields = (country) => {
|
|
2675
|
+
const getBasicInformationFields = (country, taskType) => {
|
|
2673
2676
|
let fields = [...BASIC_INFORMATION_FIELDS];
|
|
2674
|
-
if (!
|
|
2677
|
+
if (!isUsingCompanySearch(country, taskType)) {
|
|
2675
2678
|
fields = fields.filter((field) => !FIELDS_NEEDED_FOR_COMPANY_SEARCH.includes(field));
|
|
2676
2679
|
}
|
|
2677
2680
|
return fields;
|
|
@@ -2722,18 +2725,18 @@ const staticBusinessDetailsForms = {
|
|
|
2722
2725
|
fields: ["constitutionalDocument"]
|
|
2723
2726
|
}
|
|
2724
2727
|
};
|
|
2725
|
-
const getForms = (country) => ({
|
|
2728
|
+
const getForms = (country, taskType) => ({
|
|
2726
2729
|
basicInformation: {
|
|
2727
2730
|
formId: "basicInformation",
|
|
2728
2731
|
formName: "basicInformationFormName",
|
|
2729
|
-
fields: getBasicInformationFields(country)
|
|
2732
|
+
fields: getBasicInformationFields(country, taskType)
|
|
2730
2733
|
},
|
|
2731
2734
|
businessSelection: staticBusinessDetailsForms.businessSelection,
|
|
2732
2735
|
companyStructure: staticBusinessDetailsForms.companyStructure,
|
|
2733
2736
|
additionalInformation: {
|
|
2734
2737
|
formId: "additionalInformation",
|
|
2735
2738
|
formName: "additionalInformationFormName",
|
|
2736
|
-
fields:
|
|
2739
|
+
fields: isUsingCompanySearch(country, taskType) ? ADDITIONAL_INFORMATION_FIELDS.filter(
|
|
2737
2740
|
(field) => !FIELDS_NEEDED_FOR_COMPANY_SEARCH.includes(field)
|
|
2738
2741
|
) : ADDITIONAL_INFORMATION_FIELDS
|
|
2739
2742
|
},
|
|
@@ -2760,6 +2763,52 @@ const documentFormsIds = [
|
|
|
2760
2763
|
const stripWhitespace = (str) => str.replace(/\s/g, "");
|
|
2761
2764
|
const toNormalizedString = (s) => stripWhitespace(s.toLowerCase());
|
|
2762
2765
|
const isNormalizedStringMatch = (s1, s2) => toNormalizedString(s1) === toNormalizedString(s2);
|
|
2766
|
+
const startTiming = (key, timings = /* @__PURE__ */ new Map()) => {
|
|
2767
|
+
const startTime = Date.now();
|
|
2768
|
+
timings.set(key, { startTime });
|
|
2769
|
+
return startTime;
|
|
2770
|
+
};
|
|
2771
|
+
const endTiming = (key, timings) => {
|
|
2772
|
+
const timing = timings.get(key);
|
|
2773
|
+
if (!timing || timing.endTime) {
|
|
2774
|
+
return void 0;
|
|
2775
|
+
}
|
|
2776
|
+
const endTime = Date.now();
|
|
2777
|
+
const duration = endTime - timing.startTime;
|
|
2778
|
+
const updatedTiming = { ...timing, endTime, duration };
|
|
2779
|
+
timings.set(key, updatedTiming);
|
|
2780
|
+
return duration;
|
|
2781
|
+
};
|
|
2782
|
+
const withTiming = async (key, fn, analytics, timings = /* @__PURE__ */ new Map()) => {
|
|
2783
|
+
startTiming(key, timings);
|
|
2784
|
+
try {
|
|
2785
|
+
const result = await fn();
|
|
2786
|
+
const duration = endTiming(key, timings) || 0;
|
|
2787
|
+
analytics.addEvent("Performance", {
|
|
2788
|
+
actionType: "resolve",
|
|
2789
|
+
actionLevel: "page",
|
|
2790
|
+
label: key,
|
|
2791
|
+
additionalData: {
|
|
2792
|
+
duration
|
|
2793
|
+
}
|
|
2794
|
+
});
|
|
2795
|
+
return { result, duration };
|
|
2796
|
+
} catch (error) {
|
|
2797
|
+
const duration = endTiming(key, timings) || 0;
|
|
2798
|
+
analytics.addEvent("Performance", {
|
|
2799
|
+
actionType: "reject",
|
|
2800
|
+
actionLevel: "page",
|
|
2801
|
+
label: key,
|
|
2802
|
+
additionalData: {
|
|
2803
|
+
duration
|
|
2804
|
+
}
|
|
2805
|
+
});
|
|
2806
|
+
throw error;
|
|
2807
|
+
}
|
|
2808
|
+
};
|
|
2809
|
+
const trackPerformance = (key, fn, analytics) => {
|
|
2810
|
+
return withTiming(key, fn, analytics);
|
|
2811
|
+
};
|
|
2763
2812
|
const documentTypes$2 = [
|
|
2764
2813
|
{ id: "Internal company document", name: "internalCompanyDocument" },
|
|
2765
2814
|
{ id: "Business registry statement", name: "businessRegistryStatement" }
|
|
@@ -3434,9 +3483,9 @@ const mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
|
|
|
3434
3483
|
} : void 0
|
|
3435
3484
|
};
|
|
3436
3485
|
};
|
|
3437
|
-
const mapBasicInformation = (data) => {
|
|
3486
|
+
const mapBasicInformation = (data, taskType) => {
|
|
3438
3487
|
if (!data) return;
|
|
3439
|
-
return !!data.country &&
|
|
3488
|
+
return !!data.country && isUsingCompanySearch(data.country, taskType) ? data : entriesOf(data).reduce((acc, [field]) => {
|
|
3440
3489
|
if (!FIELDS_NEEDED_FOR_COMPANY_SEARCH.includes(field)) {
|
|
3441
3490
|
return {
|
|
3442
3491
|
...acc,
|
|
@@ -3471,7 +3520,7 @@ const mapIsUen = (taxInformation, registrationNumber, country) => {
|
|
|
3471
3520
|
isUen: currentCountryTaxInfo.type === "UEN"
|
|
3472
3521
|
};
|
|
3473
3522
|
};
|
|
3474
|
-
const mapAdditionalInformation = (data, legalEntity) => {
|
|
3523
|
+
const mapAdditionalInformation = (data, legalEntity, taskType) => {
|
|
3475
3524
|
if (!data) return;
|
|
3476
3525
|
const entity = legalEntity.type === "organization" ? legalEntity.organization : legalEntity.soleProprietorship;
|
|
3477
3526
|
const currentCountry = entity?.registeredAddress.country;
|
|
@@ -3503,7 +3552,7 @@ const mapAdditionalInformation = (data, legalEntity) => {
|
|
|
3503
3552
|
}
|
|
3504
3553
|
const result = entriesOf(data).reduce(
|
|
3505
3554
|
(acc, [field]) => {
|
|
3506
|
-
if (!
|
|
3555
|
+
if (!isUsingCompanySearch(currentCountry, taskType)) {
|
|
3507
3556
|
return {
|
|
3508
3557
|
...acc,
|
|
3509
3558
|
[field]: data[field]
|
|
@@ -3540,7 +3589,11 @@ const mapLegalNameLocalization = (data) => {
|
|
|
3540
3589
|
}
|
|
3541
3590
|
return result;
|
|
3542
3591
|
};
|
|
3543
|
-
const mapLegalEntityToBusinessDetailsSchema = (
|
|
3592
|
+
const mapLegalEntityToBusinessDetailsSchema = ({
|
|
3593
|
+
legalEntity,
|
|
3594
|
+
parentEntity,
|
|
3595
|
+
taskType
|
|
3596
|
+
}) => {
|
|
3544
3597
|
if (!legalEntity) return {};
|
|
3545
3598
|
const {
|
|
3546
3599
|
companyRegistrationDocument,
|
|
@@ -3587,7 +3640,7 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
|
3587
3640
|
return {
|
|
3588
3641
|
...componentData,
|
|
3589
3642
|
[key]: {
|
|
3590
|
-
...mapBasicInformation(businessDetailsSchema[key]),
|
|
3643
|
+
...mapBasicInformation(businessDetailsSchema[key], taskType),
|
|
3591
3644
|
...mapLegalNameLocalization(legalEntity)
|
|
3592
3645
|
}
|
|
3593
3646
|
};
|
|
@@ -3611,7 +3664,7 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
|
3611
3664
|
case "additionalInformation": {
|
|
3612
3665
|
return {
|
|
3613
3666
|
...componentData,
|
|
3614
|
-
[key]: mapAdditionalInformation(businessDetailsSchema[key], legalEntity)
|
|
3667
|
+
[key]: mapAdditionalInformation(businessDetailsSchema[key], legalEntity, taskType)
|
|
3615
3668
|
};
|
|
3616
3669
|
}
|
|
3617
3670
|
case "companyRegistrationDocument": {
|
|
@@ -3676,12 +3729,12 @@ const businessDetailsBase = {
|
|
|
3676
3729
|
/* Base optional fields */
|
|
3677
3730
|
operationalAddress: { rule: "OPTIONAL" },
|
|
3678
3731
|
/* Fields with custom country specific rules */
|
|
3679
|
-
hasSelectedBusiness: { rule: "
|
|
3732
|
+
hasSelectedBusiness: { rule: "usingCompanySearch" },
|
|
3680
3733
|
stockExchangeMIC: { rule: "ifPubliclyTradedCompany" },
|
|
3681
3734
|
stockISIN: { rule: "ifPubliclyTradedCompany" },
|
|
3682
3735
|
stockTickerSymbol: { rule: "ifPubliclyTradedCompany" },
|
|
3683
3736
|
dateOfIncorporation: { rule: "isDateOfIncorporationRequired" },
|
|
3684
|
-
stateOrProvince: { rule: "
|
|
3737
|
+
stateOrProvince: { rule: "usingCompanySearch" },
|
|
3685
3738
|
registrationNumber: { rule: "countryRequiresRegistrationNumber" },
|
|
3686
3739
|
registrationNumberType: { rule: "registrationNumberType" },
|
|
3687
3740
|
exemptedFromRegistrationNumber: { rule: "companyRegistrationNumberExemptionAllowed" },
|
|
@@ -3713,7 +3766,7 @@ const businessDetailsFieldsPerScenario = {
|
|
|
3713
3766
|
L0: {
|
|
3714
3767
|
country: { rule: "REQUIRED" },
|
|
3715
3768
|
legalCompanyName: { rule: "REQUIRED" },
|
|
3716
|
-
stateOrProvince: { rule: "
|
|
3769
|
+
stateOrProvince: { rule: "usingCompanySearch" },
|
|
3717
3770
|
...financialInformationBase
|
|
3718
3771
|
},
|
|
3719
3772
|
L1: {
|
|
@@ -3849,7 +3902,7 @@ const mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
|
3849
3902
|
]);
|
|
3850
3903
|
return documents.filter(Boolean);
|
|
3851
3904
|
};
|
|
3852
|
-
const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperimentEnabled) => {
|
|
3905
|
+
const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperimentEnabled, taskType) => {
|
|
3853
3906
|
const requestObj = {
|
|
3854
3907
|
...formatObject(
|
|
3855
3908
|
data,
|
|
@@ -3861,12 +3914,10 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
3861
3914
|
data.basicInformation?.country,
|
|
3862
3915
|
data.companyStructure?.entityType
|
|
3863
3916
|
);
|
|
3864
|
-
const taxData =
|
|
3865
|
-
data.basicInformation?.country
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
data.basicInformation?.country
|
|
3869
|
-
) ? data.basicInformation?.registrationNumber : data.additionalInformation?.registrationNumber;
|
|
3917
|
+
const [taxData, registrationNumber] = isUsingCompanySearch(
|
|
3918
|
+
data.basicInformation?.country,
|
|
3919
|
+
taskType
|
|
3920
|
+
) ? [data.basicInformation?.taxInformation, data.basicInformation?.registrationNumber] : [data.additionalInformation?.taxInformation, data.additionalInformation?.registrationNumber];
|
|
3870
3921
|
const localization = [
|
|
3871
3922
|
mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaHani"),
|
|
3872
3923
|
mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaKana")
|
|
@@ -4287,7 +4338,11 @@ async function submit({
|
|
|
4287
4338
|
await handleUpdateLegalEntity({ ...updatedAssociations, id: legalEntityResponse.id });
|
|
4288
4339
|
}
|
|
4289
4340
|
};
|
|
4290
|
-
const savedLegalEntityData = legalEntityResponse ? mapLegalEntityToBusinessDetailsSchema(
|
|
4341
|
+
const savedLegalEntityData = legalEntityResponse ? mapLegalEntityToBusinessDetailsSchema({
|
|
4342
|
+
legalEntity: legalEntityResponse,
|
|
4343
|
+
parentEntity: void 0,
|
|
4344
|
+
taskType
|
|
4345
|
+
}) : null;
|
|
4291
4346
|
const filteredData = savedLegalEntityData ? setRemovedFieldsOnSchemaToDeletedValue(data, savedLegalEntityData) : data;
|
|
4292
4347
|
if (filteredData?.additionalInformation && !filteredData?.additionalInformation?.taxInformation) {
|
|
4293
4348
|
filteredData.additionalInformation.taxInformation = void 0;
|
|
@@ -4381,7 +4436,12 @@ async function submit({
|
|
|
4381
4436
|
}
|
|
4382
4437
|
try {
|
|
4383
4438
|
const mappedLegalEntity = {
|
|
4384
|
-
...mapBusinessDetailsSchemaToLegalEntity(
|
|
4439
|
+
...mapBusinessDetailsSchemaToLegalEntity(
|
|
4440
|
+
filteredData,
|
|
4441
|
+
accountHolder,
|
|
4442
|
+
isExperimentEnabled,
|
|
4443
|
+
taskType
|
|
4444
|
+
),
|
|
4385
4445
|
entityAssociations: filterOutUnwantedAssociationsIfRootLE(
|
|
4386
4446
|
taskType,
|
|
4387
4447
|
entityToUpdate,
|
|
@@ -4629,7 +4689,7 @@ function BusinessDetailsDropin({
|
|
|
4629
4689
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
4630
4690
|
const [derivedProps, setDerivedProps] = useState();
|
|
4631
4691
|
const [trustedFields, setTrustedFields] = useState(subjectEntity?.trustedFields ?? void 0);
|
|
4632
|
-
const defaultForms = useMemo(() => getForms(country), [country]);
|
|
4692
|
+
const defaultForms = useMemo(() => getForms(country, taskType), [country, taskType]);
|
|
4633
4693
|
const documentUtils = documentApiUtils({
|
|
4634
4694
|
baseUrl: baseUrl.value,
|
|
4635
4695
|
rootLegalEntityId: rootLegalEntityId.value
|
|
@@ -4651,10 +4711,11 @@ function BusinessDetailsDropin({
|
|
|
4651
4711
|
country
|
|
4652
4712
|
});
|
|
4653
4713
|
const defaultData = useMemo(() => {
|
|
4654
|
-
const mapped = mapLegalEntityToBusinessDetailsSchema(
|
|
4655
|
-
!isAssociationTaskType ? legalEntityResponse : isSoleProp ? associatedLegalArrangement ?? legalEntityResponse : nestedLegalEntity,
|
|
4656
|
-
isSoleProp ? legalEntityResponse : void 0
|
|
4657
|
-
|
|
4714
|
+
const mapped = mapLegalEntityToBusinessDetailsSchema({
|
|
4715
|
+
legalEntity: !isAssociationTaskType ? legalEntityResponse : isSoleProp ? associatedLegalArrangement ?? legalEntityResponse : nestedLegalEntity,
|
|
4716
|
+
parentEntity: isSoleProp ? legalEntityResponse : void 0,
|
|
4717
|
+
taskType
|
|
4718
|
+
});
|
|
4658
4719
|
const initialEfpBusinessLineData = isSettingEnabled("allowBusinessLines") && efpBusinessLines && efpBusinessLines.length > 0 ? {
|
|
4659
4720
|
additionalInformation: {
|
|
4660
4721
|
...mapped.additionalInformation,
|
|
@@ -4677,6 +4738,7 @@ function BusinessDetailsDropin({
|
|
|
4677
4738
|
isSoleProp,
|
|
4678
4739
|
associatedLegalArrangement,
|
|
4679
4740
|
nestedLegalEntity,
|
|
4741
|
+
taskType,
|
|
4680
4742
|
documents,
|
|
4681
4743
|
efpBusinessLines,
|
|
4682
4744
|
isSettingEnabled
|
|
@@ -4945,18 +5007,26 @@ function BusinessDetailsDropin({
|
|
|
4945
5007
|
};
|
|
4946
5008
|
useVerifyTin(verifyTinQueryInput, { enabled: false });
|
|
4947
5009
|
const attemptBusinessSearch = async () => {
|
|
4948
|
-
if (
|
|
5010
|
+
if (!isUsingCompanySearch(country, taskType)) {
|
|
4949
5011
|
const currentForms = updateForms({ searchResults: [] });
|
|
4950
5012
|
return handleNextClick(currentForms);
|
|
4951
5013
|
}
|
|
4952
5014
|
try {
|
|
5015
|
+
userEvents.addPageEvent("Triggered async operation", {
|
|
5016
|
+
actionType: "start",
|
|
5017
|
+
returnValue: "companySearch"
|
|
5018
|
+
});
|
|
4953
5019
|
setLoadingStatus("loading");
|
|
4954
5020
|
tinMatched.value = void 0;
|
|
4955
5021
|
verifiedBusiness.value = void 0;
|
|
4956
5022
|
isVerifiedSingleCompanySearchResult.value = false;
|
|
4957
|
-
const searchResponse = await
|
|
4958
|
-
|
|
4959
|
-
|
|
5023
|
+
const { result: searchResponse } = await trackPerformance(
|
|
5024
|
+
"companySearch",
|
|
5025
|
+
() => queryClient.fetchQuery({
|
|
5026
|
+
queryKey: ["companySearch", companySearchQueryInput]
|
|
5027
|
+
}),
|
|
5028
|
+
userEvents
|
|
5029
|
+
);
|
|
4960
5030
|
let currentForms = updateForms({ searchResults: searchResponse.results });
|
|
4961
5031
|
const handleTinResponse = (matched) => {
|
|
4962
5032
|
if (matched) {
|
|
@@ -5004,7 +5074,7 @@ function BusinessDetailsDropin({
|
|
|
5004
5074
|
};
|
|
5005
5075
|
const overrideNextClick = async () => {
|
|
5006
5076
|
if (!activeForm.isValid) return handleNextClick();
|
|
5007
|
-
if (!
|
|
5077
|
+
if (!isUsingCompanySearch(country, taskType) || isSoleProp) {
|
|
5008
5078
|
return handleNextClick();
|
|
5009
5079
|
}
|
|
5010
5080
|
switch (activeForm.formId) {
|