@adyen/kyc-components 4.2.0-beta.3 → 4.3.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-BcThpdef.js → AcceptTermsOfServiceComponent-DHOEbKRw.js} +30 -25
- package/dist/{AccountSetupRejected-D4ZUKySq.js → AccountSetupRejected-BtePboYl.js} +2 -5
- package/dist/{ActionBar-_kxaPjuA.js → ActionBar-CQZiRESM.js} +2 -2
- package/dist/{Address-Bp3gAZwV.js → Address-CZsphDQn.js} +11 -13
- package/dist/{Avatar-4kQAjsiY.js → Avatar-umWLtbNh.js} +2 -2
- package/dist/{BusinessFinancingComponent-s7ax4ND-.js → BusinessFinancingComponent-Bq1XvxN0.js} +6 -6
- package/dist/{BusinessFinancingDropin-ZEaog4sO.js → BusinessFinancingDropin-DGNDmZPX.js} +200 -123
- package/dist/{BusinessFinancingPage-9bjno-km.js → BusinessFinancingPage-B3Mppy3e.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-BNRQeYZz.js → BusinessTypeSelectionPage-DFwTrEj2.js} +9 -9
- package/dist/{Checkbox-BH0zIKqJ.js → Checkbox-grZtL86z.js} +2 -2
- package/dist/{Confirm-Dx4QYQUB.js → Confirm-gSH15YjO.js} +3 -3
- package/dist/{ConstitutionalDocument-CMQlemXU.js → ConstitutionalDocument-C1ho_WGb.js} +39 -22
- package/dist/{ContactDetails-Dm7hH34-.js → ContactDetails-beFUwzWU.js} +6 -9
- package/dist/{ContextGuidance-jojldspk.js → ContextGuidance-DN9_2r5g.js} +2 -3
- package/dist/{CountryField-CRP1LtfT.js → CountryField-CK9UwJHn.js} +4 -6
- package/dist/{CreateIndividualComponent-jL7Ta2xx.js → CreateIndividualComponent-TaKBME08.js} +7 -7
- package/dist/{CreateTransferInstrumentComponent-BAUyoBDg.js → CreateTransferInstrumentComponent-WGgDfmsE.js} +4 -4
- package/dist/{Currency-q_fri27x.js → Currency-DEgTOLD3.js} +7 -7
- package/dist/{CustomerSupport-g6_dn2eL.js → CustomerSupport-CByUZkgX.js} +10 -11
- package/dist/{DebugModal-8M6rDSjI.js → DebugModal-1rEVOPzu.js} +8 -9
- package/dist/{DecisionMakerDetailsPage-BvJBgflk.js → DecisionMakerDetailsPage-dB5GuLx1.js} +9 -9
- package/dist/{DecisionMakers-Dgu4mm-t.js → DecisionMakers-DS14GhtC.js} +23 -33
- package/dist/{Dropzone-C0r5MN2c.js → Dropzone-CI7gyNBs.js} +4 -4
- package/dist/{EmbeddedStatus-CAwsc7gn.js → EmbeddedStatus-BdQ39yKX.js} +3 -3
- package/dist/{EndStateLayout-DvlbjE6I.js → EndStateLayout-CmNueoBE.js} +2 -2
- package/dist/{EntityAssociation-B6BboL-v.js → EntityAssociation-CCExGpww.js} +5 -6
- package/dist/{EntityGuidanceStatus-Bz15IrlX.js → EntityGuidanceStatus-DYkFfoBr.js} +4 -4
- package/dist/{ErrorPanel-BkXUK_F0.js → ErrorPanel-CmGFPsaG.js} +2 -3
- package/dist/{Field-COLdO9jz.js → Field-BuHaTPvn.js} +3 -3
- package/dist/{FormNavigation-TCli8Qsa.js → FormNavigation-B4rGWlDy.js} +3 -3
- package/dist/{FormWrapper-B3xDHdGU.js → FormWrapper-BC0uqTgd.js} +9 -9
- package/dist/{Image-BlWYOlMz.js → Image-CLQ4EuPK.js} +2 -2
- package/dist/{Individual.rules-DRGsKUar.js → Individual.rules-vC5TbPZA.js} +8 -8
- package/dist/{IndividualDropin-BrpwLdZl.js → IndividualDropin-DvQ-z4rT.js} +177 -132
- package/dist/{InputDate-BvK1kvDw.js → InputDate-DRD072Dy.js} +2 -2
- package/dist/{InputText-BjedS9h7.js → InputText-BUnL2S1h.js} +2 -2
- package/dist/{Introduction-CQ4hrI5j.js → Introduction-DaWEcxk1.js} +4 -4
- package/dist/{JpAddress-g76WbAjI.js → JpAddress-DLD5oFVR.js} +11 -12
- package/dist/{LandingLayout-DRNCyVO_.js → LandingLayout-DtrCsF3s.js} +2 -3
- package/dist/{LegalCompanyNameField-BapKH1n2.js → LegalCompanyNameField-D4TnW4PU.js} +6 -6
- package/dist/{LegalRepresentativeDetailsPage-9fmLU5fh.js → LegalRepresentativeDetailsPage-jZLVn4-D.js} +6 -6
- package/dist/{Link-wT7wXn7z.js → Link-xCQbA-9e.js} +2 -2
- package/dist/{ListItem-DHyZrVrc.js → ListItem-DSqo8-K1.js} +3 -3
- package/dist/{LoaderWrapper-DAGc3KzI.js → LoaderWrapper-7vOgmEsk.js} +2 -2
- package/dist/ManageIndividualComponent-CCIhrOiG.js +46 -0
- package/dist/{ManageTermsOfServiceComponent-DqurOA43.js → ManageTermsOfServiceComponent-CD8xsVbW.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-DkaY6uos.js → ManageTransferInstrumentComponent-QxybfaMB.js} +12 -15
- package/dist/{MaskedInput-CLyDZ-xK.js → MaskedInput-Bg8sJ8Sz.js} +5 -5
- package/dist/{MaybeModal-DpRek-Nn.js → MaybeModal-dbukcqGt.js} +3 -3
- package/dist/{Modal-CZtp1HSI.js → Modal-C5NXMpqk.js} +2 -2
- package/dist/{Name-Bxi6C5rE.js → Name-DyGu-N0I.js} +5 -5
- package/dist/{OnboardingDropinComponent-B5HuMN3c.js → OnboardingDropinComponent-B_W8eeJV.js} +59 -61
- package/dist/{PayoutDetailsDropin-BW7IR1A1.js → PayoutDetailsDropin-C6FSD0nU.js} +63 -61
- package/dist/{RadioGroup-D4DN0p1B.js → RadioGroup-BP8CNtf9.js} +2 -2
- package/dist/{RadioGroupCard-CMUvyZ1d.js → RadioGroupCard-DUxGxMW2.js} +2 -2
- package/dist/{Review-DLsW7v8W.js → Review-DdowS_67.js} +6 -8
- package/dist/{RootBusinessDetailsPage-C9AxMbHN.js → RootBusinessDetailsPage-DGaPZVX3.js} +4 -4
- package/dist/{RootBusinessLinesPage-YgSJVVLj.js → RootBusinessLinesPage-RUqhW4fz.js} +28 -34
- package/dist/{RootIndividualDetailsPage-YpZEbgBw.js → RootIndividualDetailsPage-CC5xZsrC.js} +8 -8
- package/dist/{Select-DWCeyfPK.js → Select-DtconBUQ.js} +4 -4
- package/dist/{SignPCIComponent-2w7O6g_D.js → SignPCIComponent-_IAj-hon.js} +17 -16
- package/dist/{SingpassSelection-CbzkPGfw.js → SingpassSelection-WatLq--G.js} +6 -6
- package/dist/{SoleProprietorshipPage-DeoeTy76.js → SoleProprietorshipPage-ChABh93Y.js} +4 -4
- package/dist/{SourceOfFundsPage-CX9gODrt.js → SourceOfFundsPage-CgLOgUd4.js} +37 -37
- package/dist/{StepProgressIndicator-DxRiADdo.js → StepProgressIndicator-Dc7Tml_I.js} +1 -1
- package/dist/{StoreProvider-Cs2w6BiW.js → StoreProvider-C-jrVTWp.js} +873 -206
- package/dist/{StructuredList-BNLhk_zV.js → StructuredList-Bh1vlAFE.js} +1 -1
- package/dist/{Summary-DARCKKrx.js → Summary-BEaMvlq_.js} +7 -8
- package/dist/{TaxInformationField-D5AraebA.js → TaxInformationField-B5-jJ7Eb.js} +186 -210
- package/dist/{TaxReportingDropin-WHWPBDD8.js → TaxReportingDropin-CrIW9iYH.js} +15 -17
- package/dist/{TextArea-DAdUD93W.js → TextArea-j1AG1rrF.js} +2 -2
- package/dist/{TileGroup-CVt7AK6N.js → TileGroup-CRXdfE4_.js} +3 -3
- package/dist/{TrustDetailsPage-BnO3yn7V.js → TrustDetailsPage-C77SN50n.js} +34 -48
- package/dist/{TrustMemberCompanyPage-h559kWH3.js → TrustMemberCompanyPage-BJ8bGLiS.js} +5 -5
- package/dist/{TrustMemberIndividualPage-CqiHdKg7.js → TrustMemberIndividualPage-BnXdAysv.js} +6 -6
- package/dist/{TrustMemberRoleAndTypePage-Dwknlfme.js → TrustMemberRoleAndTypePage-Dl3NWfe-.js} +21 -23
- package/dist/{TrustMembersOverview-B4YCHAVc.js → TrustMembersOverview-DY1Gmewy.js} +10 -14
- package/dist/{UnincorporatedPartnershipIndividualPage-ChYM-5eW.js → UnincorporatedPartnershipIndividualPage-DI_gEl_-.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CxBPHmpw.js → UnincorporatedPartnershipMemberCompanyPage-CHueVUrD.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CYSxanrA.js → UnincorporatedPartnershipMemberRoleAndTypePage-m8_d5tqB.js} +11 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-CwP-v2Mz.js → UnincorporatedPartnershipMembersOverview-D-xD5eFQ.js} +7 -11
- package/dist/{VerificationErrorAlert-eQMPpWDF.js → VerificationErrorAlert-DGCWu0L2.js} +2 -3
- package/dist/{ViewVerificationStatusComponent-D6E-l2aA.js → ViewVerificationStatusComponent--iI2ei_a.js} +3 -4
- package/dist/{accountHolderUtils-DeGjw3VP.js → accountHolderUtils-C2OlbJ51.js} +2 -2
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-invited-decision-maker.js +86 -16
- package/dist/adyen-kyc-components.js +19 -47
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +3 -3
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-KqAv4HF4.js → bafinUtils-C297BWva.js} +2 -2
- package/dist/bg-BG-BNRJzjXu.js +13 -0
- package/dist/{bg-BG-K7feXvEc.js → bg-BG-DbFzLQK7.js} +1 -2
- package/dist/{commonValidators-lK3J4Pp5.js → commonValidators-CCjmpuF-.js} +2 -2
- package/dist/cs-CZ-BMnoWiIi.js +13 -0
- package/dist/{cs-CZ-CYQO0o5V.js → cs-CZ-CBuNZ7UO.js} +1 -2
- package/dist/{da-DK-CGWvmdkq.js → da-DK-CLdNh9JT.js} +1 -2
- package/dist/da-DK-D17SWJin.js +13 -0
- package/dist/{de-DE-DHDJhahG.js → de-DE-BT5g7ZXC.js} +1 -2
- package/dist/de-DE-DC90bn2y.js +13 -0
- package/dist/{dropinUtils-BP49oC-E.js → dropinUtils-BZzBJOLK.js} +4 -4
- package/dist/el-GR-B2xt_Hn1.js +13 -0
- package/dist/{el-GR-DHNlnOwf.js → el-GR-BvRBuezU.js} +1 -2
- package/dist/{en-US-D1sB335h.js → en-US-BtFr9JRa.js} +10 -1
- package/dist/en-US-CfIkXJPX.js +13 -0
- package/dist/{en-US-DoiQhi0j.js → en-US-CgakND3H.js} +1 -2
- package/dist/{es-ES-CxnsKEh4.js → es-ES-4FS7NoE7.js} +1 -2
- package/dist/es-ES-CzG-lilL.js +13 -0
- package/dist/et-EE-B7OzU-54.js +13 -0
- package/dist/{et-EE-BQixWUEV.js → et-EE-CksV5_e1.js} +1 -2
- package/dist/fi-FI-DooPgPb1.js +13 -0
- package/dist/{fi-FI-57-xkioo.js → fi-FI-XpnJRPgt.js} +1 -2
- package/dist/{formUtils-DXsZZezg.js → formUtils-B4IA171l.js} +3 -18
- package/dist/fr-FR-29mQrnro.js +13 -0
- package/dist/{fr-FR-BxiX8Zfi.js → fr-FR-TqAhPvzz.js} +1 -2
- package/dist/{getName-CnH-XZ-0.js → getName-ff7GRCPB.js} +2 -2
- package/dist/{getProblemsForEntity-By7SKsmj.js → getProblemsForEntity-BawudFMK.js} +2 -2
- package/dist/hr-HR-BFu1_Xrc.js +13 -0
- package/dist/{hr-HR-BynZTNSB.js → hr-HR-CKZ_yuXC.js} +1 -2
- package/dist/{hu-HU-BtRIDozk.js → hu-HU-BEV8uVRt.js} +1 -2
- package/dist/hu-HU-nf030gFT.js +13 -0
- package/dist/{iframeWidget-DjhbmseH.js → iframeWidget-CTg-yqbt.js} +4 -4
- package/dist/{isEmpty-DKYWTFsj.js → isEmpty-Cu6FSL8p.js} +2 -2
- package/dist/it-IT-CToDWXlu.js +13 -0
- package/dist/{it-IT-masgjk9F.js → it-IT-D-jYXj6V.js} +1 -2
- package/dist/{ja-JP-vv3-YsHU.js → ja-JP-8yMqZqF2.js} +1 -2
- package/dist/ja-JP-BkAEknQ-.js +13 -0
- package/dist/{japanSupportUtils-D0DlRSnN.js → japanSupportUtils-Cti0IcPz.js} +2 -2
- package/dist/{localizeDateString-DFvjNZA-.js → localizeDateString-0tXkduO2.js} +2 -2
- package/dist/{lt-LT-2BMif2Bk.js → lt-LT-CK0t2AVY.js} +1 -2
- package/dist/lt-LT-DxzEdyVV.js +13 -0
- package/dist/lv-LV-D-j-4Dao.js +13 -0
- package/dist/{lv-LV-CHdEDRVO.js → lv-LV-JvlzK9X-.js} +1 -2
- package/dist/{mapExistingFile-BCvrQOQa.js → mapExistingFile-DKT0jbo0.js} +4 -4
- package/dist/mapJpAddressSchemaToAddressLocalizations-DQu3DXe4.js +88 -0
- package/dist/{mapLegalEntityToIndividualSchema-p_QAp6yM.js → mapLegalEntityToIndividualSchema-ZmAAvk9K.js} +40 -42
- package/dist/{mapTransferInstrumentToPayoutAccount-ZzCG5sdH.js → mapTransferInstrumentToPayoutAccount-BogO6kRJ.js} +2 -2
- package/dist/nl-NL-C8CEGqAc.js +13 -0
- package/dist/{nl-NL-D1b5RUJ0.js → nl-NL-Jhr-ICkK.js} +1 -2
- package/dist/{no-NO-Dkh4SWbB.js → no-NO-BH6DId3q.js} +1 -2
- package/dist/no-NO-DbVtqyON.js +13 -0
- package/dist/{patternValidators-D3ilblqn.js → patternValidators-BDuN6yoZ.js} +2 -2
- package/dist/{pl-PL-BkGihn5Q.js → pl-PL-B5c0NNHB.js} +1 -2
- package/dist/pl-PL-Bxtudsvi.js +13 -0
- package/dist/{process-field-configurations-gWPqA4wV.js → process-field-configurations-CPAL_-Z4.js} +4 -4
- package/dist/{pt-BR-BRdIEO2O.js → pt-BR-4Iozxvfr.js} +1 -2
- package/dist/pt-BR-CL4JYBNe.js +13 -0
- package/dist/{pt-PT-BfL7qUzo.js → pt-PT-09L8XznW.js} +1 -2
- package/dist/pt-PT-C-OZtnUM.js +13 -0
- package/dist/{resolveEnvironment--0u8n19D.js → resolveEnvironment-DJYy04Zt.js} +5 -5
- package/dist/{ro-RO-C2yBVFht.js → ro-RO-D7-7tmTR.js} +1 -2
- package/dist/ro-RO-Dq1NTg-A.js +13 -0
- package/dist/{roleMetadata-DWItqtcL.js → roleMetadata-CsQgP06-.js} +3 -3
- package/dist/sk-SK-CMvUjDgW.js +13 -0
- package/dist/{sk-SK-C74EF23u.js → sk-SK-D3tsz1Pg.js} +1 -2
- package/dist/sl-SI-BslBqaxO.js +13 -0
- package/dist/{sl-SI-CvUzNn9Z.js → sl-SI-Y9h1ht45.js} +1 -2
- package/dist/style.css +1877 -1856
- package/dist/styles-CLV89_hH.js +1877 -1856
- package/dist/{sv-SE-BsLkPEzn.js → sv-SE-DFSm22oQ.js} +1 -2
- package/dist/sv-SE-Dm_WHV9V.js +13 -0
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +1 -0
- package/dist/types/api/invitedEntity/useInvitedEntityAssociationData.d.ts +7 -0
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/components/BankAccount/fields/BankAccountNumber/BankAccountNumber.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankCode/BankCode.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BranchCode/BranchCode.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/Iban.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +4 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -1
- package/dist/types/components/Business/utils/submit.d.ts +1 -1
- package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +1 -1
- package/dist/types/components/Contract/tasks/PciDropin/PciDropin.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/types.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSummary.d.ts +14 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +1 -3
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.d.ts +1 -1
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -0
- package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +1 -1
- package/dist/types/components/Individual/forms/IdVerificationMethod/{individualOnfidoConflictsSchema.d.ts → individualConflictsSchema.d.ts} +12 -12
- package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual.d.ts +7 -7
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +3 -3
- package/dist/types/components/Individual/forms/Individual.types.d.ts +13 -5
- package/dist/types/components/Individual/forms/form-ids.d.ts +2 -2
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +2 -2
- package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -2
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +2 -2
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -6
- package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +2 -2
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -2
- 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 +3 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerGettingStarted/InvitedDecisionMakerGettingStarted.d.ts +4 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerSubmitSuccess/InvitedDecisionMakerSubmitSuccess.d.ts +1 -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/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -0
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +14 -0
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +0 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +8 -14
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +13 -0
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +2 -2
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
- package/dist/types/context/ExperimentContext/types.d.ts +1 -2
- package/dist/types/context/StateContext/types.d.ts +2 -2
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
- package/dist/types/hooks/useForm/types.d.ts +0 -3
- package/dist/types/hooks/useUboQuestionnaire.d.ts +1 -1
- package/dist/types/language/types.d.ts +1 -1
- package/dist/types/language/utils.d.ts +3 -2
- package/dist/types/stores/formState.d.ts +2 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +5 -5
- package/dist/types/utils/formUtils.d.ts +2 -4
- package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
- package/dist/types/utils/textTransformation/toFullWidth.d.ts +2 -3
- package/dist/{types-Bsq90MtZ.js → types-CEookCt2.js} +2 -2
- package/dist/types-CQ2p58-6.js +36 -0
- package/dist/{types-zvl4yaK4.js → types-Ccyga0T3.js} +2 -2
- package/dist/{types-DS0jcRWy.js → types-D6yU8_jd.js} +2 -2
- package/dist/{types-BW4HQI5X.js → types-yb-6qrgr.js} +2 -3
- package/dist/unincorporated-partnership-D8XzcFAz.js +17 -0
- package/dist/{useAssociatedLegalEntity-D1QAjxfz.js → useAssociatedLegalEntity-DxIrdCiW.js} +2 -2
- package/dist/{useBusinessDetailsData-DA8ZAoqM.js → useBusinessDetailsData-B-lAYrsg.js} +176 -192
- package/dist/{useBusinessLines-ig6N-3bv.js → useBusinessLines-Csvpr85-.js} +2 -2
- package/dist/{useCanSeeIntroduction-DIzzcbtH.js → useCanSeeIntroduction-CtoZS8gv.js} +3 -3
- package/dist/{useCreateLegalEntity-BlPIg7bR.js → useCreateLegalEntity-CRmpSW-p.js} +2 -2
- package/dist/{useDataMissingRemediations-awdHHpxL.js → useDataMissingRemediations-DKYVGUPb.js} +2 -2
- package/dist/{useDeleteTransferInstrument-BLCncQUW.js → useDeleteTransferInstrument-Dbt3iSDq.js} +3 -3
- package/dist/{useForm-DeH2DfkH.js → useForm-PNo1-TUg.js} +3 -3
- package/dist/{useFormContext-BoD6vfPh.js → useFormContext-DZ0JzOzl.js} +9 -8
- package/dist/{useGlobalData-BX6vERjU.js → useGlobalData-DkxLk7lN.js} +2 -2
- package/dist/{useMultiForm-BpbxAenV.js → useMultiForm-BKHh9pIa.js} +4 -4
- package/dist/{useNavigate-_B6wPlU_.js → useNavigate-CIa35xrx.js} +30 -30
- package/dist/{useOnboardingStatus-f-bbvzT0.js → useOnboardingStatus-UlcW0uJt.js} +2 -2
- package/dist/{usePciQuestionnaireList-uOAcvbaD.js → usePciQuestionnaireList-DuGLuR49.js} +2 -2
- package/dist/{useSalesChannels-BaBwQqcP.js → useSalesChannels-Dce6D7J1.js} +4 -4
- package/dist/{useScenarios-BJJvml-j.js → useScenarios-HttV-8Oo.js} +2 -2
- package/dist/{useTaskStatus-1tjqSb4D.js → useTaskStatus-DNhqpQ2D.js} +2 -2
- package/dist/{useTermsOfServiceStatus-B3VyH-O5.js → useTermsOfServiceStatus-CmMOe9uh.js} +2 -2
- package/dist/{useToastContext-D06xzYOV.js → useToastContext-pGIuUtOK.js} +2 -2
- package/dist/{useTrustMembers-BKqlPqX9.js → useTrustMembers-BVMLWQPp.js} +4 -4
- package/dist/{useUnincorporatedPartnershipMembers-DXBAF3-e.js → useUnincorporatedPartnershipMembers-lNQMZi00.js} +5 -5
- package/dist/{useUpdateBusinessLines-DKXhqYCR.js → useUpdateBusinessLines-D5dzDvDz.js} +5 -5
- package/dist/{useUpdateLegalEntity-Ci7INf21.js → useUpdateLegalEntity-Zci5El_5.js} +3 -3
- package/dist/{utils-CHfAVbD1.js → utils-BBCW8T5n.js} +2 -2
- package/dist/{utils-qZ76EKjf.js → utils-DO61bZBE.js} +2 -2
- package/dist/{utils-BTirG8oU.js → utils-DW097Fth.js} +2 -2
- package/dist/{utils-C6Jnurmx.js → utils-DmGPdHLa.js} +3 -3
- package/dist/{utils-BQnTjqYC.js → utils-LSf8dbhe.js} +5 -5
- package/dist/{validate-CGRP-XKK.js → validate-CqF9k0Xk.js} +3 -3
- package/dist/{validate-WROT-SMP.js → validate-H0lJr72L.js} +2 -2
- package/dist/{validationError-DGhgpBkU.js → validationError-Cg6KszQD.js} +3 -3
- package/package.json +28 -25
- package/dist/Accordion-Cqu7QS2u.js +0 -88
- package/dist/Alert-DdvR5JXz.js +0 -169
- package/dist/DropinLayout-CBP_cHLC.js +0 -17
- package/dist/Header-BsGesDVP.js +0 -83
- package/dist/ManageIndividualComponent-BvEUZxYS.js +0 -46
- package/dist/TaskVerificationStatus-CLNmwFAF.js +0 -129
- package/dist/bg-BG-6XzbmxcW.js +0 -13
- package/dist/cs-CZ-C6vEQ8P9.js +0 -13
- package/dist/da-DK-DzcTI92X.js +0 -13
- package/dist/datasetUtil-BHQp0-xL.js +0 -58
- package/dist/de-DE-dPfrbCii.js +0 -13
- package/dist/el-GR-Dazirlmt.js +0 -13
- package/dist/en-US-cVpRgdC8.js +0 -13
- package/dist/es-ES--IvNed_Q.js +0 -13
- package/dist/et-EE-CsTXSlnY.js +0 -13
- package/dist/fi-FI-BUixKfXH.js +0 -13
- package/dist/fr-FR-BM-qNLci.js +0 -13
- package/dist/hr-HR-BF74vdPD.js +0 -13
- package/dist/hu-HU-DYhMVR_c.js +0 -13
- package/dist/it-IT-D63gRTDc.js +0 -13
- package/dist/ja-JP-DL0IjTzn.js +0 -13
- package/dist/lt-LT-BX8dOAzK.js +0 -13
- package/dist/lv-LV-dA8yYdKe.js +0 -13
- package/dist/mapJpAddressSchemaToAddressLocalizations-CH7_92jG.js +0 -162
- package/dist/nl-NL-KQ6bciOb.js +0 -13
- package/dist/no-NO-Ds3VioxT.js +0 -13
- package/dist/pl-PL-BgbxWHGE.js +0 -13
- package/dist/pt-BR-Ct4s4jXV.js +0 -13
- package/dist/pt-PT-DBEsmXQX.js +0 -13
- package/dist/ro-RO-C00Ig8CL.js +0 -13
- package/dist/sk-SK-BbJWayDh.js +0 -13
- package/dist/sl-SI-hxwQIw_i.js +0 -13
- package/dist/sv-SE-0PQ-U1u6.js +0 -13
- package/dist/unincorporated-partnership-MeN1dp53.js +0 -97
- package/dist/useDataset-D9eSt03k.js +0 -76
- package/dist/useSetting-BWKORbmz.js +0 -19
|
@@ -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] = "df984871-f4da-4674-be75-c263c6e54e02", e._sentryDebugIdIdentifier = "sentry-dbid-df984871-f4da-4674-be75-c263c6e54e02");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -2,21 +2,20 @@
|
|
|
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] = "19bb0719-a93e-464c-8188-76e4b60ca622", e._sentryDebugIdIdentifier = "sentry-dbid-19bb0719-a93e-464c-8188-76e4b60ca622");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
12
|
-
import { H as Header } from "./Header-BsGesDVP.js";
|
|
11
|
+
import { m as useAnalyticsContext, af as useI18nContext, u as useTranslation, au as Header, aq as isEmpty, q as IconButton, a7 as translateTranslatable, bu as Svg } from "./StoreProvider-C-jrVTWp.js";
|
|
13
12
|
import { L as List } from "./List-BAzyC6sw.js";
|
|
14
|
-
import { S as StructuredList } from "./StructuredList-
|
|
13
|
+
import { S as StructuredList } from "./StructuredList-Bh1vlAFE.js";
|
|
15
14
|
import { useEffect } from "preact/hooks";
|
|
16
|
-
import { E as ErrorPanel } from "./ErrorPanel-
|
|
15
|
+
import { E as ErrorPanel } from "./ErrorPanel-CmGFPsaG.js";
|
|
17
16
|
import { t as trackNavigation } from "./trackNavigation-db_h46BT.js";
|
|
18
|
-
import { c as createFormUtils } from "./formUtils-
|
|
19
|
-
import { g as getRoleName } from "./roleMetadata-
|
|
17
|
+
import { c as createFormUtils } from "./formUtils-B4IA171l.js";
|
|
18
|
+
import { g as getRoleName } from "./roleMetadata-CsQgP06-.js";
|
|
20
19
|
import { i as isSummaryItem } from "./summaryItem-CAQCQSkt.js";
|
|
21
20
|
const usePageLandedEvent = () => {
|
|
22
21
|
const userEvents = useAnalyticsContext();
|
|
@@ -179,7 +178,7 @@ function Summary({
|
|
|
179
178
|
dataList.push(renderField(label, roles));
|
|
180
179
|
} else if (isSummaryItem(fieldData)) {
|
|
181
180
|
const { summaryLabel, summaryValue } = fieldData;
|
|
182
|
-
dataList.push(renderField(
|
|
181
|
+
dataList.push(renderField(translateTranslatable(t, summaryLabel) ?? "", summaryValue));
|
|
183
182
|
} else if (typeof fieldData === "object") {
|
|
184
183
|
dataList.push(renderSummaryItems(fieldData, labelData));
|
|
185
184
|
} else if (["string", "number"].includes(typeof fieldData)) {
|
|
@@ -2,35 +2,35 @@
|
|
|
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] = "d928f6c0-58fe-4674-8ead-a70b57a7a7eb", e._sentryDebugIdIdentifier = "sentry-dbid-d928f6c0-58fe-4674-8ead-a70b57a7a7eb");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import {
|
|
10
|
+
import { bm as getNestedPropertyKeys, a5 as CountryCodes, L as LegalEntityTypes, ab as objectsDeepEqual, u as useTranslation, au as Header, h as TaskTypes, aN as keysOf, v as useExperimentsContext, k as useAccountHolder, a7 as translateTranslatable } from "./StoreProvider-C-jrVTWp.js";
|
|
11
11
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
12
12
|
import { memo } from "preact/compat";
|
|
13
13
|
import { useState, useRef, useEffect, useCallback, useMemo } from "preact/hooks";
|
|
14
|
-
import { F as Field } from "./Field-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { u as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { C as Checkbox } from "./Checkbox-BH0zIKqJ.js";
|
|
14
|
+
import { F as Field } from "./Field-BuHaTPvn.js";
|
|
15
|
+
import { S as Select } from "./Select-DtconBUQ.js";
|
|
16
|
+
import { T as TextArea } from "./TextArea-j1AG1rrF.js";
|
|
17
|
+
import { S as StateContextSetter } from "./validate-CqF9k0Xk.js";
|
|
18
|
+
import { u as useForm } from "./useForm-PNo1-TUg.js";
|
|
19
|
+
import { u as uppercase, D as DocumentGuidance } from "./mapExistingFile-DKT0jbo0.js";
|
|
20
|
+
import { D as Dropzone } from "./Dropzone-CI7gyNBs.js";
|
|
21
|
+
import { E as ErrorPanel } from "./ErrorPanel-CmGFPsaG.js";
|
|
22
|
+
import { c as createFormUtils } from "./formUtils-B4IA171l.js";
|
|
23
|
+
import { C as Checkbox } from "./Checkbox-grZtL86z.js";
|
|
25
24
|
import { C as CompanyTypesValues } from "./company-types-value-D_mKv5PT.js";
|
|
26
|
-
import { m as makeMask, n as numericInputs, a as nonInputs, d as alphanumericInputs, c as customInputs, b as alphaInputs, s as spacer, M as MaskedInput } from "./MaskedInput-
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
25
|
+
import { m as makeMask, n as numericInputs, a as nonInputs, d as alphanumericInputs, c as customInputs, b as alphaInputs, s as spacer, M as MaskedInput } from "./MaskedInput-Bg8sJ8Sz.js";
|
|
26
|
+
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
27
|
+
import { S as SettingNames } from "./types-CQ2p58-6.js";
|
|
28
|
+
import { C as COUNTRIES_WITH_STATES_DATASET } from "./utils-DO61bZBE.js";
|
|
29
29
|
import { c as createFormRules } from "./form-rules-DhbF2mY4.js";
|
|
30
|
-
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-
|
|
31
|
-
import { i as isDateOlderThanAYear } from "./Address-
|
|
32
|
-
import { v as validatePatternOnBlur, a as validateNotEmptyOnBlur } from "./patternValidators-
|
|
33
|
-
import { R as RadioGroup } from "./RadioGroup-
|
|
30
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-Cti0IcPz.js";
|
|
31
|
+
import { i as isDateOlderThanAYear } from "./Address-CZsphDQn.js";
|
|
32
|
+
import { v as validatePatternOnBlur, a as validateNotEmptyOnBlur } from "./patternValidators-BDuN6yoZ.js";
|
|
33
|
+
import { R as RadioGroup } from "./RadioGroup-BP8CNtf9.js";
|
|
34
34
|
const getFieldsWithExistingData = (legalEntity, keyMapping, documentMapping, knownProblematicFields = []) => {
|
|
35
35
|
const apiFieldsWithExistingData = getNestedPropertyKeys(legalEntity);
|
|
36
36
|
const nonDocumentFields = apiFieldsWithExistingData.map((field) => keyMapping[field]).filter(Boolean).filter((field) => !knownProblematicFields.includes(field));
|
|
@@ -2029,7 +2029,14 @@ const taxInformationDefaultFieldConfig = {
|
|
|
2029
2029
|
},
|
|
2030
2030
|
[CountryCodes.Japan]: {
|
|
2031
2031
|
label: "taxInformationNumber__JP",
|
|
2032
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Japan)
|
|
2032
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Japan),
|
|
2033
|
+
guidanceText: {
|
|
2034
|
+
key: "enterNDigitsForExample",
|
|
2035
|
+
values: {
|
|
2036
|
+
numDigits: "13",
|
|
2037
|
+
example: "2169151989941"
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2033
2040
|
},
|
|
2034
2041
|
[CountryCodes.Philippines]: {
|
|
2035
2042
|
validators: mapValidators([validatePatternOnBlur(/^\d{12}$/)], CountryCodes.Philippines)
|
|
@@ -2306,10 +2313,6 @@ const MemoizedDocumentUpload = memo(
|
|
|
2306
2313
|
DocumentUpload,
|
|
2307
2314
|
(prevProps, nextProps) => prevProps.shouldValidate === nextProps.shouldValidate && objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.errors, nextProps.errors) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && objectsDeepEqual(prevProps.documentTypeSelect, nextProps.documentTypeSelect) && prevProps.documentField === nextProps.documentField && prevProps.name === nextProps.name && prevProps.country === nextProps.country && prevProps.companyType === nextProps.companyType
|
|
2308
2315
|
);
|
|
2309
|
-
const useCapabilities = () => {
|
|
2310
|
-
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
2311
|
-
return rootLegalEntity?.capabilities;
|
|
2312
|
-
};
|
|
2313
2316
|
const companyRegistrationNumberOptions = {
|
|
2314
2317
|
[CountryCodes.Australia]: [
|
|
2315
2318
|
{
|
|
@@ -2976,7 +2979,9 @@ const COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION = [
|
|
|
2976
2979
|
CountryCodes.PuertoRico,
|
|
2977
2980
|
CountryCodes.UnitedStates
|
|
2978
2981
|
];
|
|
2979
|
-
const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS = [
|
|
2982
|
+
const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS = [
|
|
2983
|
+
CountryCodes.HongKong
|
|
2984
|
+
];
|
|
2980
2985
|
const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS = [
|
|
2981
2986
|
CountryCodes.Austria,
|
|
2982
2987
|
CountryCodes.Canada,
|
|
@@ -3103,6 +3108,7 @@ const isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
|
|
|
3103
3108
|
};
|
|
3104
3109
|
const rules = ({
|
|
3105
3110
|
data,
|
|
3111
|
+
defaultData,
|
|
3106
3112
|
country,
|
|
3107
3113
|
taskType,
|
|
3108
3114
|
isExperimentEnabled = () => false,
|
|
@@ -3199,6 +3205,13 @@ const rules = ({
|
|
|
3199
3205
|
}
|
|
3200
3206
|
return;
|
|
3201
3207
|
}
|
|
3208
|
+
// We're no longer collecting registration numbers for new HK entities, but for existing,
|
|
3209
|
+
// we want to offer the exemption if they have a registration number attached. See OXP-7075
|
|
3210
|
+
case CountryCodes.HongKong: {
|
|
3211
|
+
if (country === CountryCodes.HongKong && !defaultData?.additionalInformation?.registrationNumber)
|
|
3212
|
+
return;
|
|
3213
|
+
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
3214
|
+
}
|
|
3202
3215
|
default: {
|
|
3203
3216
|
if (!COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS.includes(country))
|
|
3204
3217
|
return;
|
|
@@ -3229,6 +3242,10 @@ const rules = ({
|
|
|
3229
3242
|
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) {
|
|
3230
3243
|
return "OPTIONAL";
|
|
3231
3244
|
}
|
|
3245
|
+
if (country === CountryCodes.HongKong) {
|
|
3246
|
+
if (!defaultData?.additionalInformation?.registrationNumber) return;
|
|
3247
|
+
return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
|
|
3248
|
+
}
|
|
3232
3249
|
if (!COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) {
|
|
3233
3250
|
return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
|
|
3234
3251
|
}
|
|
@@ -3284,16 +3301,10 @@ const rules = ({
|
|
|
3284
3301
|
},
|
|
3285
3302
|
countryRequiresFinancialInformation,
|
|
3286
3303
|
isDateOfIncorporationRequired: () => {
|
|
3287
|
-
|
|
3288
|
-
return countryRequiresDateOfIncorporationForCompanies() || countryRequiresFinancialInformation();
|
|
3289
|
-
}
|
|
3290
|
-
return countryRequiresDateOfIncorporationForCompanies();
|
|
3304
|
+
return countryRequiresDateOfIncorporationForCompanies() || countryRequiresFinancialInformation();
|
|
3291
3305
|
},
|
|
3292
3306
|
isFinancialReportingFieldsRequired: () => {
|
|
3293
|
-
|
|
3294
|
-
return countryRequiresFinancialInformation() === "REQUIRED" && isDateOlderThanAYear(data.additionalInformation?.dateOfIncorporation) ? "REQUIRED" : void 0;
|
|
3295
|
-
}
|
|
3296
|
-
return countryRequiresFinancialInformation();
|
|
3307
|
+
return countryRequiresFinancialInformation() === "REQUIRED" && isDateOlderThanAYear(data.additionalInformation?.dateOfIncorporation) ? "REQUIRED" : void 0;
|
|
3297
3308
|
},
|
|
3298
3309
|
isIndustryCodeRequired: () => {
|
|
3299
3310
|
const needsBusinessLine = requestingIssuing(rootLegalEntity) || requestingBanking(rootLegalEntity);
|
|
@@ -3390,7 +3401,7 @@ function TaxIdNumberTypeSelector({
|
|
|
3390
3401
|
companyType,
|
|
3391
3402
|
selected,
|
|
3392
3403
|
setSelected,
|
|
3393
|
-
|
|
3404
|
+
exemptedOptionLabel,
|
|
3394
3405
|
isUsSoleProp,
|
|
3395
3406
|
errorMessage
|
|
3396
3407
|
}) {
|
|
@@ -3399,26 +3410,26 @@ function TaxIdNumberTypeSelector({
|
|
|
3399
3410
|
(selectedStr) => {
|
|
3400
3411
|
const newSelected = selectedStr;
|
|
3401
3412
|
if (newSelected === "exempted") {
|
|
3402
|
-
if (
|
|
3413
|
+
if (exemptedOptionLabel) {
|
|
3403
3414
|
setSelected(newSelected);
|
|
3404
3415
|
}
|
|
3405
3416
|
return;
|
|
3406
3417
|
}
|
|
3407
3418
|
setSelected(newSelected);
|
|
3408
3419
|
},
|
|
3409
|
-
[
|
|
3420
|
+
[exemptedOptionLabel, setSelected]
|
|
3410
3421
|
);
|
|
3411
3422
|
const options = useMemo(() => {
|
|
3412
3423
|
const availableOptions = getTaxIdNumberOptions(country, companyType) ?? [];
|
|
3413
|
-
if (availableOptions.length === 0 || !
|
|
3424
|
+
if (availableOptions.length === 0 || !exemptedOptionLabel) return availableOptions;
|
|
3414
3425
|
return [
|
|
3415
3426
|
...availableOptions,
|
|
3416
3427
|
{
|
|
3417
3428
|
id: "exempted",
|
|
3418
|
-
name:
|
|
3429
|
+
name: exemptedOptionLabel
|
|
3419
3430
|
}
|
|
3420
3431
|
];
|
|
3421
|
-
}, [country, companyType,
|
|
3432
|
+
}, [country, companyType, exemptedOptionLabel]);
|
|
3422
3433
|
useEffect(() => {
|
|
3423
3434
|
if (!isUsSoleProp && !selected && options.length > 0) {
|
|
3424
3435
|
handleSelect(options[0].id);
|
|
@@ -3445,6 +3456,15 @@ function TaxIdNumberTypeSelector({
|
|
|
3445
3456
|
}
|
|
3446
3457
|
);
|
|
3447
3458
|
}
|
|
3459
|
+
function upsertTaxInfoForCountry(taxInformation, country, newEntry) {
|
|
3460
|
+
if (!taxInformation) return [newEntry];
|
|
3461
|
+
const hasExisting = taxInformation.some((t) => t.country === country);
|
|
3462
|
+
const base = hasExisting ? taxInformation : [...taxInformation, newEntry];
|
|
3463
|
+
return base.map((t) => t.country === country ? newEntry : t);
|
|
3464
|
+
}
|
|
3465
|
+
function removeTaxInfoForCountry(taxInformation, country) {
|
|
3466
|
+
return taxInformation?.filter((t) => t.country !== country);
|
|
3467
|
+
}
|
|
3448
3468
|
const TAX_INFORMATION_FIELD = [
|
|
3449
3469
|
"taxInformation",
|
|
3450
3470
|
"exemptedFromTax",
|
|
@@ -3456,7 +3476,6 @@ function TaxInformationField({
|
|
|
3456
3476
|
errors,
|
|
3457
3477
|
labels,
|
|
3458
3478
|
mask,
|
|
3459
|
-
guidanceText,
|
|
3460
3479
|
placeholder,
|
|
3461
3480
|
readonly,
|
|
3462
3481
|
optional,
|
|
@@ -3476,16 +3495,16 @@ function TaxInformationField({
|
|
|
3476
3495
|
[data?.taxInformation, data.exemptedFromTax, defaultData, country]
|
|
3477
3496
|
);
|
|
3478
3497
|
const isUsSoleProp = country === "US" && entityType === CompanyTypesValues.SOLE_PROPRIETORSHIP;
|
|
3479
|
-
const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : labels.exemptedFromTax;
|
|
3480
|
-
const shouldRenderInput = isUsSoleProp ? currentCountryTaxInformation?.type === "EIN" : !data.isUen;
|
|
3481
3498
|
const options = getTaxIdNumberOptions(country, entityType);
|
|
3482
3499
|
const showTaxIdExemptedOptions = canExempt && (options?.length ?? 0) > 1 || isUsSoleProp;
|
|
3483
3500
|
const canSaveAbsentState = isExperimentEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust";
|
|
3501
|
+
const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : labels.exemptedFromTax;
|
|
3502
|
+
const shouldRenderInput = isUsSoleProp ? currentCountryTaxInformation?.type === "EIN" : !data.isUen;
|
|
3484
3503
|
const taxIdNumberType = useMemo(() => {
|
|
3485
|
-
if (
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
return
|
|
3504
|
+
if (data.exemptedFromTax) return "exempted";
|
|
3505
|
+
if (currentCountryTaxInformation?.type) return currentCountryTaxInformation.type;
|
|
3506
|
+
if (isUsSoleProp) return void 0;
|
|
3507
|
+
return getDefaultTaxIdNumberType(data.taxInformation, country, entityType);
|
|
3489
3508
|
}, [
|
|
3490
3509
|
country,
|
|
3491
3510
|
currentCountryTaxInformation?.type,
|
|
@@ -3494,110 +3513,126 @@ function TaxInformationField({
|
|
|
3494
3513
|
entityType,
|
|
3495
3514
|
isUsSoleProp
|
|
3496
3515
|
]);
|
|
3497
|
-
const
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3516
|
+
const fieldMetadata = resolveFieldMetadata(
|
|
3517
|
+
taxInformationDefaultFieldConfig[country],
|
|
3518
|
+
{
|
|
3519
|
+
taxIdNumberType: currentCountryTaxInformation?.type,
|
|
3520
|
+
companyType: entityType
|
|
3521
|
+
},
|
|
3522
|
+
taxInformationDefaultFieldMetadata
|
|
3523
|
+
);
|
|
3524
|
+
const updateTaxInfo = useCallback(
|
|
3525
|
+
(mode, newEntry) => {
|
|
3526
|
+
const entry = canSaveAbsentState ? { ...newEntry, numberAbsent: newEntry.numberAbsent ?? false } : newEntry;
|
|
3527
|
+
handleChangeFor(
|
|
3528
|
+
"taxInformation",
|
|
3529
|
+
mode
|
|
3530
|
+
)(upsertTaxInfoForCountry(data.taxInformation, country, entry));
|
|
3531
|
+
},
|
|
3532
|
+
[canSaveAbsentState, country, data.taxInformation, handleChangeFor]
|
|
3533
|
+
);
|
|
3534
|
+
const updateTaxType = useCallback(
|
|
3535
|
+
(type, mode) => {
|
|
3536
|
+
updateTaxInfo(mode, {
|
|
3537
|
+
country,
|
|
3538
|
+
number: currentCountryTaxInformation?.number,
|
|
3539
|
+
type
|
|
3540
|
+
});
|
|
3541
|
+
},
|
|
3542
|
+
[country, currentCountryTaxInformation?.number, updateTaxInfo]
|
|
3543
|
+
);
|
|
3544
|
+
const resetToDefaultData = useCallback(() => {
|
|
3545
|
+
if (defaultData !== void 0) {
|
|
3546
|
+
handleChangeFor("taxInformation", "input")(defaultData);
|
|
3547
|
+
}
|
|
3548
|
+
}, [defaultData, handleChangeFor]);
|
|
3549
|
+
const removeCountryTaxInfo = useCallback(() => {
|
|
3550
|
+
handleChangeFor(
|
|
3551
|
+
"taxInformation",
|
|
3552
|
+
"input"
|
|
3553
|
+
)(removeTaxInfoForCountry(data.taxInformation, country));
|
|
3554
|
+
}, [country, data.taxInformation, handleChangeFor]);
|
|
3555
|
+
const setUenAsTaxId = useCallback(
|
|
3556
|
+
(uen) => {
|
|
3557
|
+
updateTaxInfo("blur", { country, number: uen ?? "", type: "UEN" });
|
|
3558
|
+
},
|
|
3559
|
+
[country, updateTaxInfo]
|
|
3560
|
+
);
|
|
3561
|
+
const addTaxAbsentStatus = useCallback(
|
|
3562
|
+
(exempted) => {
|
|
3563
|
+
handleChangeFor(
|
|
3564
|
+
"taxInformation",
|
|
3565
|
+
"input"
|
|
3566
|
+
)(upsertTaxInfoForCountry(data.taxInformation, country, { country, numberAbsent: exempted }));
|
|
3567
|
+
},
|
|
3568
|
+
[country, data.taxInformation, handleChangeFor]
|
|
3569
|
+
);
|
|
3570
|
+
const handleTaxNumberChange = useCallback(
|
|
3571
|
+
(e, mode) => {
|
|
3572
|
+
const value = e ? typeof e === "string" ? e : e.currentTarget.value : void 0;
|
|
3573
|
+
const resolvedType = currentCountryTaxInformation?.type ?? (taxIdNumberType !== "exempted" ? taxIdNumberType : void 0);
|
|
3574
|
+
updateTaxInfo(mode, {
|
|
3575
|
+
country,
|
|
3576
|
+
number: value,
|
|
3577
|
+
type: resolvedType
|
|
3578
|
+
});
|
|
3579
|
+
},
|
|
3580
|
+
[country, currentCountryTaxInformation?.type, taxIdNumberType, updateTaxInfo]
|
|
3581
|
+
);
|
|
3582
|
+
const handleTaxIdNumberTypeChange = useCallback(
|
|
3583
|
+
(taxIdType) => {
|
|
3584
|
+
if (!canExempt && taxIdType === "exempted") {
|
|
3585
|
+
throw Error(`${country} does not allow tax exemptions`);
|
|
3586
|
+
}
|
|
3587
|
+
if (taxIdType === "exempted") {
|
|
3588
|
+
handleChangeFor("exemptedFromTax")(true);
|
|
3589
|
+
updateTaxType(void 0, "input");
|
|
3590
|
+
return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCountryTaxInfo();
|
|
3591
|
+
}
|
|
3592
|
+
handleChangeFor("exemptedFromTax")(false);
|
|
3593
|
+
if (country === "SG") {
|
|
3594
|
+
if (taxIdType === "UEN") {
|
|
3595
|
+
handleChangeFor("isUen")(true);
|
|
3596
|
+
setUenAsTaxId(registrationNumber);
|
|
3597
|
+
} else {
|
|
3598
|
+
handleChangeFor("isUen")(false);
|
|
3599
|
+
removeCountryTaxInfo();
|
|
3540
3600
|
}
|
|
3541
|
-
const taxInformation = currentCountryTaxInformation ? data.taxInformation : [...data.taxInformation, newTaxInformation];
|
|
3542
|
-
const updatedTaxInformation = taxInformation.map((taxInfo) => {
|
|
3543
|
-
if (taxInfo.country !== country) return taxInfo;
|
|
3544
|
-
return newTaxInformation;
|
|
3545
|
-
});
|
|
3546
|
-
return handleChangeFor("taxInformation", mode)(updatedTaxInformation);
|
|
3547
3601
|
}
|
|
3548
|
-
|
|
3549
|
-
|
|
3602
|
+
updateTaxType(taxIdType, "input");
|
|
3603
|
+
},
|
|
3604
|
+
[
|
|
3605
|
+
addTaxAbsentStatus,
|
|
3606
|
+
canExempt,
|
|
3607
|
+
canSaveAbsentState,
|
|
3608
|
+
country,
|
|
3609
|
+
handleChangeFor,
|
|
3610
|
+
updateTaxType,
|
|
3611
|
+
registrationNumber,
|
|
3612
|
+
removeCountryTaxInfo,
|
|
3613
|
+
setUenAsTaxId
|
|
3614
|
+
]
|
|
3615
|
+
);
|
|
3616
|
+
const handleExemptedFromTaxChange = useCallback(
|
|
3617
|
+
(exempted) => {
|
|
3618
|
+
handleChangeFor("exemptedFromTax")(exempted);
|
|
3619
|
+
if (canSaveAbsentState) {
|
|
3620
|
+
addTaxAbsentStatus(exempted);
|
|
3621
|
+
} else {
|
|
3622
|
+
removeCountryTaxInfo();
|
|
3623
|
+
}
|
|
3624
|
+
},
|
|
3625
|
+
[addTaxAbsentStatus, canSaveAbsentState, handleChangeFor, removeCountryTaxInfo]
|
|
3626
|
+
);
|
|
3627
|
+
const prevCountryRef = useRef(country);
|
|
3550
3628
|
useEffect(() => {
|
|
3551
|
-
if (!country) return;
|
|
3629
|
+
if (!country || prevCountryRef.current === country) return;
|
|
3630
|
+
prevCountryRef.current = country;
|
|
3552
3631
|
const hasSavedTaxId = defaultData?.find((taxId) => taxId.country === country);
|
|
3553
|
-
if (currentCountryTaxInformation?.country === country) return;
|
|
3554
3632
|
if (currentCountryTaxInformation && !hasSavedTaxId) return;
|
|
3555
3633
|
if (entityType === CompanyTypesValues.SOLE_PROPRIETORSHIP) return;
|
|
3556
|
-
|
|
3557
|
-
handleChangeFor("taxInformation", "input")(defaultData);
|
|
3558
|
-
}
|
|
3559
|
-
const newCountryOptions = getTaxIdNumberOptions(country, entityType);
|
|
3560
|
-
if (newCountryOptions && newCountryOptions.length > 0) {
|
|
3561
|
-
handleTaxInformationChange(newCountryOptions[0].id, "type", "input", true);
|
|
3562
|
-
} else {
|
|
3563
|
-
handleTaxInformationChange(void 0, "type", "input", true);
|
|
3564
|
-
}
|
|
3634
|
+
resetToDefaultData();
|
|
3565
3635
|
}, [country]);
|
|
3566
|
-
const removeCurrentCountryTaxInformation = () => {
|
|
3567
|
-
const filterdTaxInformation = data.taxInformation?.filter((taxId) => taxId.country !== country);
|
|
3568
|
-
handleChangeFor("taxInformation", "input")(filterdTaxInformation);
|
|
3569
|
-
};
|
|
3570
|
-
const setUenAsTaxId = (uen) => {
|
|
3571
|
-
if (!data.taxInformation) {
|
|
3572
|
-
return handleChangeFor(
|
|
3573
|
-
"taxInformation",
|
|
3574
|
-
"blur"
|
|
3575
|
-
)([
|
|
3576
|
-
{
|
|
3577
|
-
country,
|
|
3578
|
-
number: uen ?? "",
|
|
3579
|
-
type: "UEN"
|
|
3580
|
-
}
|
|
3581
|
-
]);
|
|
3582
|
-
}
|
|
3583
|
-
const taxInformation = currentCountryTaxInformation ? data.taxInformation : [
|
|
3584
|
-
...data.taxInformation,
|
|
3585
|
-
{
|
|
3586
|
-
country,
|
|
3587
|
-
number: uen ?? "",
|
|
3588
|
-
type: "UEN"
|
|
3589
|
-
}
|
|
3590
|
-
];
|
|
3591
|
-
const updatedTaxInformation = taxInformation.map((taxInfo) => {
|
|
3592
|
-
if (taxInfo.country !== country) return taxInfo;
|
|
3593
|
-
return {
|
|
3594
|
-
country,
|
|
3595
|
-
number: uen ?? "",
|
|
3596
|
-
type: "UEN"
|
|
3597
|
-
};
|
|
3598
|
-
});
|
|
3599
|
-
return handleChangeFor("taxInformation", "blur")(updatedTaxInformation);
|
|
3600
|
-
};
|
|
3601
3636
|
useEffect(() => {
|
|
3602
3637
|
if (country === "SG" && data.isUen && registrationNumber && registrationNumber !== currentCountryTaxInformation?.number) {
|
|
3603
3638
|
setUenAsTaxId(registrationNumber);
|
|
@@ -3609,64 +3644,6 @@ function TaxInformationField({
|
|
|
3609
3644
|
country,
|
|
3610
3645
|
setUenAsTaxId
|
|
3611
3646
|
]);
|
|
3612
|
-
const addTaxAbsentStatus = (exempted) => {
|
|
3613
|
-
if (!data.taxInformation) {
|
|
3614
|
-
const updatedTaxInformation2 = [
|
|
3615
|
-
{
|
|
3616
|
-
country,
|
|
3617
|
-
numberAbsent: exempted
|
|
3618
|
-
}
|
|
3619
|
-
];
|
|
3620
|
-
return handleChangeFor("taxInformation", "input")(updatedTaxInformation2);
|
|
3621
|
-
}
|
|
3622
|
-
const taxInformation = currentCountryTaxInformation ? data.taxInformation : [
|
|
3623
|
-
...data.taxInformation,
|
|
3624
|
-
{
|
|
3625
|
-
country,
|
|
3626
|
-
numberAbsent: exempted
|
|
3627
|
-
}
|
|
3628
|
-
];
|
|
3629
|
-
const updatedTaxInformation = taxInformation.map((taxInfo) => {
|
|
3630
|
-
if (taxInfo.country !== country) return taxInfo;
|
|
3631
|
-
return {
|
|
3632
|
-
country,
|
|
3633
|
-
numberAbsent: exempted
|
|
3634
|
-
};
|
|
3635
|
-
});
|
|
3636
|
-
return handleChangeFor("taxInformation", "input")(updatedTaxInformation);
|
|
3637
|
-
};
|
|
3638
|
-
const handleTaxIdNumberTypeChange = (taxIdType) => {
|
|
3639
|
-
if (!canExempt && taxIdType === "exempted") {
|
|
3640
|
-
throw Error(`${country} does not allow tax exemptions`);
|
|
3641
|
-
}
|
|
3642
|
-
switch (taxIdType) {
|
|
3643
|
-
case "exempted":
|
|
3644
|
-
handleChangeFor("exemptedFromTax")(true);
|
|
3645
|
-
handleTaxInformationChange(void 0, "type", "input");
|
|
3646
|
-
return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCurrentCountryTaxInformation();
|
|
3647
|
-
default:
|
|
3648
|
-
handleChangeFor("exemptedFromTax")(false);
|
|
3649
|
-
}
|
|
3650
|
-
if (country === "SG") {
|
|
3651
|
-
if (taxIdType === "UEN") {
|
|
3652
|
-
handleChangeFor("isUen")(true);
|
|
3653
|
-
setUenAsTaxId(registrationNumber);
|
|
3654
|
-
} else {
|
|
3655
|
-
handleChangeFor("isUen")(false);
|
|
3656
|
-
removeCurrentCountryTaxInformation();
|
|
3657
|
-
}
|
|
3658
|
-
}
|
|
3659
|
-
handleTaxInformationChange(taxIdType, "type", "input");
|
|
3660
|
-
};
|
|
3661
|
-
const handleExemptedFromTaxChange = (exempted) => {
|
|
3662
|
-
if (canSaveAbsentState) {
|
|
3663
|
-
addTaxAbsentStatus(exempted);
|
|
3664
|
-
handleChangeFor("exemptedFromTax")(exempted);
|
|
3665
|
-
} else {
|
|
3666
|
-
handleChangeFor("exemptedFromTax")(exempted);
|
|
3667
|
-
removeCurrentCountryTaxInformation();
|
|
3668
|
-
}
|
|
3669
|
-
};
|
|
3670
3647
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-field__tax-information", children: [
|
|
3671
3648
|
/* @__PURE__ */ jsx(
|
|
3672
3649
|
TaxIdNumberTypeSelector,
|
|
@@ -3675,7 +3652,7 @@ function TaxInformationField({
|
|
|
3675
3652
|
companyType: entityType,
|
|
3676
3653
|
setSelected: handleTaxIdNumberTypeChange,
|
|
3677
3654
|
selected: taxIdNumberType,
|
|
3678
|
-
|
|
3655
|
+
exemptedOptionLabel: showTaxIdExemptedOptions ? exemptionLabel : void 0,
|
|
3679
3656
|
isUsSoleProp,
|
|
3680
3657
|
errorMessage: isUsSoleProp ? errors.taxInformation : false
|
|
3681
3658
|
}
|
|
@@ -3688,13 +3665,13 @@ function TaxInformationField({
|
|
|
3688
3665
|
"aria-invalid": !valid.taxInformation,
|
|
3689
3666
|
name: "taxInformation",
|
|
3690
3667
|
label: labels.taxInformation ?? "",
|
|
3691
|
-
formatGuidance: guidanceText
|
|
3668
|
+
formatGuidance: translateTranslatable(t, fieldMetadata.guidanceText),
|
|
3692
3669
|
value: currentCountryTaxInformation?.number ?? "",
|
|
3693
3670
|
errorMessage: errors.taxInformation,
|
|
3694
3671
|
placeholder,
|
|
3695
3672
|
isValid: Boolean(valid.taxInformation) && !!currentCountryTaxInformation,
|
|
3696
|
-
onInput: (e) =>
|
|
3697
|
-
onBlur: (e) =>
|
|
3673
|
+
onInput: (e) => handleTaxNumberChange(e, "input"),
|
|
3674
|
+
onBlur: (e) => handleTaxNumberChange(e, "blur"),
|
|
3698
3675
|
disabled: data.exemptedFromTax || data.isUen,
|
|
3699
3676
|
readonly,
|
|
3700
3677
|
optional,
|
|
@@ -3742,9 +3719,8 @@ export {
|
|
|
3742
3719
|
requestingBanking as r,
|
|
3743
3720
|
stateFormatGuidanceText as s,
|
|
3744
3721
|
taxInformationDefaultFieldMetadata as t,
|
|
3745
|
-
|
|
3722
|
+
getVatNumberOptions as u,
|
|
3746
3723
|
vatNumberOptions as v,
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
exemptedFromTaxDefaultFieldConfig as y
|
|
3724
|
+
exemptedFromTaxDefaultFieldMetadata as w,
|
|
3725
|
+
exemptedFromTaxDefaultFieldConfig as x
|
|
3750
3726
|
};
|