@adyen/kyc-components 4.15.1 → 4.16.0-beta.1
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-CmtFeS0G.js → AcceptTermsOfServiceComponent-DZ4Hw6AN.js} +70 -70
- package/dist/{Accordion-DmH02rWQ.js → Accordion-IXKjwyLD.js} +1 -1
- package/dist/{AccountSetupRejected-SL49fuK1.js → AccountSetupRejected-CjeuSESr.js} +2 -2
- package/dist/{AdaptiveWorkflow-Dm_oZAtl.js → AdaptiveWorkflow-BkDE0_j5.js} +32 -31
- package/dist/{AdaptiveWorkflowComponent-M-n5xnz9.js → AdaptiveWorkflowComponent-ClDn_hix.js} +31 -31
- package/dist/{Address-Bsm5AJWG.js → Address-5AHpnFKh.js} +11 -11
- package/dist/{Avatar-Z3MS8_pW.js → Avatar-CdBNstmD.js} +1 -1
- package/dist/{BusinessFinancingDropin-CYFujr_t.js → BusinessFinancingDropin-CxGZ9xsG.js} +41 -41
- package/dist/{BusinessFinancingPage-DZpGJikD.js → BusinessFinancingPage-BOxrLVDc.js} +32 -32
- package/dist/{BusinessTypeSelectionPage-BcEwSu-j.js → BusinessTypeSelectionPage-BBRRNMqS.js} +15 -15
- package/dist/{Button-3qGOI53m.js → Button-i8I2dHP8.js} +1 -1
- package/dist/{Checkbox-DPFQmSgp.js → Checkbox-D7BRIoQL.js} +1 -1
- package/dist/{CompanyRegistrationNumberTypeSelector-5zZnchK5.js → CompanyRegistrationNumberTypeSelector-B4DpE8h0.js} +6 -6
- package/dist/{Confirm-6QfuYcA7.js → Confirm-CA-gL38n.js} +3 -3
- package/dist/{ContactDetails-JvG4ofw4.js → ContactDetails-Bozw6duY.js} +6 -6
- package/dist/{ContextGuidance-CPo1RXqO.js → ContextGuidance-CXjjVsGI.js} +2 -2
- package/dist/{CountryField-DV9ce-qa.js → CountryField-CfpxIma_.js} +4 -4
- package/dist/{Currency-BdWx4a7F.js → Currency-GWKdVICK.js} +8 -8
- package/dist/{CustomerSupport-Bj2PXXUS.js → CustomerSupport-DD0z-4_J.js} +15 -15
- package/dist/DataConflictsModal-B6S-QiY6.js +236 -0
- package/dist/{DebugModal-DOrbJ9GB.js → DebugModal-CezPEAB1.js} +10 -10
- package/dist/{DecisionMakerDetails-2SRSTivT.js → DecisionMakerDetails-C5sVUty5.js} +14 -14
- package/dist/{DecisionMakerDetailsPage-l-Z8TwIm.js → DecisionMakerDetailsPage-B7WQ0VJp.js} +9 -9
- package/dist/{DecisionMakers-BikexMpU.js → DecisionMakers-BQKWA-VU.js} +18 -18
- package/dist/{Dropzone-Cl1Hoy90.js → Dropzone-ClO0JKeS.js} +6 -6
- package/dist/{EmbeddedStatus-Cz3F9iXD.js → EmbeddedStatus-_k9EhrGV.js} +4 -4
- package/dist/{EndStateLayout-ic1EOve9.js → EndStateLayout-CBRHUXyY.js} +2 -2
- package/dist/{EntityAssociation-DT-LshYE.js → EntityAssociation-B-s0oU-f.js} +7 -7
- package/dist/{ErrorPanel-B46gDhCD.js → ErrorPanel-DkZa2YS_.js} +4 -4
- package/dist/{Field-DAUlw0M5.js → Field-DoXLi6EY.js} +3 -3
- package/dist/{FormNavigation-LjknVdf5.js → FormNavigation-mEocY-KU.js} +2 -2
- package/dist/{IndividualDropin-CMVrIxMy.js → IndividualDropin-LeX30Jp7.js} +61 -55
- package/dist/{InputDate-B_jtgBB5.js → InputDate-CPkdZkHB.js} +1 -1
- package/dist/{InputText-B-ebylm4.js → InputText-B0N7am-q.js} +1 -1
- package/dist/{Introduction-DUay4S7_.js → Introduction-BRntAlUN.js} +8 -8
- package/dist/{InvitedDecisionMakerComponent-B9vjrn0y.js → InvitedDecisionMakerComponent-B0v59Hxj.js} +40 -40
- package/dist/{JpAddress-Dq7JWIH7.js → JpAddress-Bl34PpJf.js} +12 -12
- package/dist/{LandingLayout-C1yh_ggf.js → LandingLayout-CUAkXrpL.js} +1 -1
- package/dist/{LegalCompanyNameField-B5CmBTd4.js → LegalCompanyNameField-B_pDQ0Cq.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-DxLcXGYa.js → LegalRepresentativeDetailsPage-DJ0QaojI.js} +8 -8
- package/dist/{Link-C0jrInxa.js → Link-JFzfaUOa.js} +1 -1
- package/dist/{ListItem-C_g-4xPP.js → ListItem-V4x0raZw.js} +2 -2
- package/dist/{MaskedInput-BqBhlwWa.js → MaskedInput-7qV9oiWq.js} +12 -9
- package/dist/{MaybeModal-BkZ_5yv-.js → MaybeModal-YLDGzmlZ.js} +2 -2
- package/dist/{Modal-C__-5LgI.js → Modal-BLP2aF-u.js} +1 -1
- package/dist/{Name-BlfQjJkJ.js → Name-Dz2Meujh.js} +3 -3
- package/dist/{NewSummary-1AO56RTG.js → NewSummary-CAGVGm66.js} +4 -4
- package/dist/{PayoutDetailsDropinMultiForm-BZvGdfFw.js → PayoutDetailsDropinMultiForm-rtAgZS5b.js} +67 -55
- package/dist/{PayoutDetailsPage-D5yoTUCH.js → PayoutDetailsPage-CZWZ7CDv.js} +10 -10
- package/dist/{RadioGroup-CMiBSXCA.js → RadioGroup-qV8mGGwm.js} +2 -2
- package/dist/{Review-7JasUcjy.js → Review-CMm-qjHl.js} +8 -8
- package/dist/{RootBusinessDetailsPage-DBJNNiGc.js → RootBusinessDetailsPage-kIlDKDvv.js} +8 -8
- package/dist/{RootBusinessLinesPage-CZGtgE0q.js → RootBusinessLinesPage-DSZt6DI8.js} +35 -35
- package/dist/{RootIndividualDetailsPage-BSwFuPHf.js → RootIndividualDetailsPage-CqD6I3JD.js} +8 -8
- package/dist/{Select-CS2E69CJ.js → Select-DUo2rOfa.js} +4 -4
- package/dist/{SignPCIComponent-Bfu0wgMM.js → SignPCIComponent-BH66HlNj.js} +67 -67
- package/dist/{SingpassSelection-BgdopRjs.js → SingpassSelection-B7z-TIrj.js} +6 -6
- package/dist/{SoleProprietorshipPage-BlAc34Pn.js → SoleProprietorshipPage-DxkVrRqB.js} +9 -9
- package/dist/{SourceOfFundsPage-Dv_NJVKv.js → SourceOfFundsPage-BPjHrtZ5.js} +41 -44
- package/dist/{Summary-DxQMUvRi.js → Summary-BVa-n2sC.js} +9 -9
- package/dist/{TaskListItem-DOTrEZ9e.js → TaskListItem-C-khPMdk.js} +10 -10
- package/dist/{TaskVerificationStatus-DTHF8B9j.js → TaskVerificationStatus-CKHPTEpH.js} +1 -1
- package/dist/{TaxInformationField-jNgSdv5g.js → TaxInformationField-WDl7mpRS.js} +14 -14
- package/dist/{TaxReportingDropin-Hmtz9tal.js → TaxReportingDropin-CCzuH6qF.js} +22 -22
- package/dist/{TextArea-BvphlYOu.js → TextArea-CT04Dg1N.js} +2 -2
- package/dist/{TileGroup-B8II9Mip.js → TileGroup-DitwS4Ud.js} +2 -2
- package/dist/{TrustDetailsPage-CvNFzktD.js → TrustDetailsPage-D2JFtIFY.js} +39 -39
- package/dist/{TrustMemberCompanyPage-DM72ABzz.js → TrustMemberCompanyPage-m3HqQ6n8.js} +10 -10
- package/dist/{TrustMemberIndividualPage-CYq1D4W7.js → TrustMemberIndividualPage-BxaCeO5r.js} +8 -8
- package/dist/{TrustMemberRoleAndTypePage-q6yEVUDR.js → TrustMemberRoleAndTypePage-DV8ETJCV.js} +20 -20
- package/dist/{TrustMembersOverview-D48OqAzS.js → TrustMembersOverview-DlNH9dqI.js} +13 -13
- package/dist/{UnincorporatedPartnershipIndividualPage-DnhI0TNp.js → UnincorporatedPartnershipIndividualPage-B7rTBYdg.js} +8 -8
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DRt-i8Pj.js → UnincorporatedPartnershipMemberCompanyPage-Cr4QKUrC.js} +10 -10
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Bilfz6Qs.js → UnincorporatedPartnershipMemberRoleAndTypePage-BafdZhk1.js} +12 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-BKqB9JWc.js → UnincorporatedPartnershipMembersOverview-DzOWX_m6.js} +9 -9
- package/dist/{VerificationErrorAlert-CItpN9Id.js → VerificationErrorAlert-3Y7AdHVB.js} +4 -4
- package/dist/{accountHolderUtils-Cq0fdep_.js → accountHolderUtils-B0KEeZZo.js} +1 -1
- package/dist/adyen-business-financing.js +33 -33
- package/dist/adyen-individual-configuration.js +34 -34
- package/dist/adyen-individual-status.js +33 -33
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +81 -80
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +31 -31
- package/dist/adyen-transfer-instrument-configuration.js +33 -33
- package/dist/adyen-transfer-instrument-management.js +40 -40
- package/dist/adyen-verification-status.js +6 -6
- package/dist/{bg-BG-KjJy4fjZ.js → bg-BG-BKPnSg5G.js} +3 -1
- package/dist/bg-BG-BcmC41vE.js +7 -0
- package/dist/{constants-6Hdf6hNy.js → constants-Cg4wVFzF.js} +5 -5
- package/dist/{cs-CZ-m-2EDC49.js → cs-CZ-BBnvx4CY.js} +3 -1
- package/dist/cs-CZ-ghdW0Tc6.js +7 -0
- package/dist/da-DK-CBOVFYaa.js +7 -0
- package/dist/{da-DK-C8TyCAru.js → da-DK-CRp6gV0v.js} +3 -1
- package/dist/de-DE-CA81fzkA.js +7 -0
- package/dist/{de-DE-QoAah1C3.js → de-DE-asP1wacy.js} +3 -1
- package/dist/{el-GR-C0N0zQ3U.js → el-GR-B18pS-T4.js} +3 -1
- package/dist/el-GR-BjOmQ_B_.js +7 -0
- package/dist/en-US-DXMKV9NN.js +7 -0
- package/dist/en-US-Dab7moVA.js +7 -0
- package/dist/{en-US-DLsYeEWI.js → en-US-Dokjxy17.js} +2 -2
- package/dist/es-ES-BEYl7Z8S.js +7 -0
- package/dist/{es-ES-D5rPI9Qc.js → es-ES-BN2YT82N.js} +3 -1
- package/dist/es-LA-D741KUNg.js +7 -0
- package/dist/{es-LA-C58S3BbB.js → es-LA-DK1UJyRv.js} +3 -1
- package/dist/{et-EE-IiaprrVp.js → et-EE-6Fsbs-mA.js} +3 -1
- package/dist/et-EE-CfgyGext.js +7 -0
- package/dist/{fi-FI-DdF7vjHQ.js → fi-FI-C4Ta33KJ.js} +3 -1
- package/dist/fi-FI-DFO20YZY.js +7 -0
- package/dist/{fr-FR-jPc-OwlY.js → fr-FR-DKTSJHnY.js} +3 -1
- package/dist/fr-FR-wvWrk_PU.js +7 -0
- package/dist/{getProblemsForEntity-CQX49pBy.js → getProblemsForEntity-D6XC4DZ2.js} +2 -2
- package/dist/{hr-HR-DlIGxvkT.js → hr-HR-CII1fh9u.js} +3 -1
- package/dist/hr-HR-D0zfmZK6.js +7 -0
- package/dist/{http-DeQp0G69.js → http-8qgzqVqk.js} +1 -1
- package/dist/{hu-HU-DicR116D.js → hu-HU-CAlsW_OP.js} +3 -1
- package/dist/hu-HU-CL021irk.js +7 -0
- package/dist/{invalidateRootLegalEntity-Cg46D4Ef.js → invalidateRootLegalEntity-CIR9WITC.js} +3 -3
- package/dist/it-IT-6VoxKX97.js +7 -0
- package/dist/{it-IT-BVAe-EX_.js → it-IT-BUwmmlzT.js} +3 -1
- package/dist/ja-JP-Cja4dur8.js +7 -0
- package/dist/{ja-JP-Fu1XFofD.js → ja-JP-XWbEAz1Y.js} +3 -1
- package/dist/{localizeDateString-CU7HGR-k.js → localizeDateString-Bmx3yBcR.js} +1 -1
- package/dist/lt-LT-CNFgOeH4.js +7 -0
- package/dist/{lt-LT-DfL5ey_8.js → lt-LT-Vhhg1gZf.js} +3 -1
- package/dist/lv-LV-BdSdhjTP.js +7 -0
- package/dist/{lv-LV-CqZT6L9i.js → lv-LV-x-MIpGh3.js} +3 -1
- package/dist/{mapExistingFile-BmyzNoup.js → mapExistingFile-BmI24MBQ.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BGLDkUt1.js → mapJpAddressSchemaToAddressLocalizations-Dzcl40cA.js} +1 -1
- package/dist/{mapLegalEntityToIndividualSchema-96tUxxLB.js → mapLegalEntityToIndividualSchema-7sVfeCn9.js} +8 -8
- package/dist/{mapTransferInstrumentToPayoutAccount-CUM6S0kM.js → mapTransferInstrumentToPayoutAccount-CxdVWYkh.js} +2 -2
- package/dist/nl-NL-CclRrN3_.js +7 -0
- package/dist/{nl-NL-CmlQQSLp.js → nl-NL-CvSvFKVp.js} +3 -1
- package/dist/no-NO-CO5xyGPh.js +7 -0
- package/dist/{no-NO-BatbPb3N.js → no-NO-TyUIFxXT.js} +3 -1
- package/dist/{omitObscuredFieldsIfUnchanged-CxUdW_hs.js → omitObscuredFieldsIfUnchanged-BFb355ro.js} +1 -1
- package/dist/{patternValidators-Df7_l0ZR.js → patternValidators-D7FquZM7.js} +1 -1
- package/dist/{pl-PL-ZyxybmlP.js → pl-PL-BYzL4w2k.js} +3 -1
- package/dist/pl-PL-DUH23AYC.js +7 -0
- package/dist/{process-field-configurations-BxW_4vT6.js → process-field-configurations-DQlTj--V.js} +2 -2
- package/dist/{processCapabilities-CTUJbebx.js → processCapabilities-fPuXc9gL.js} +7 -5
- package/dist/{pt-BR-Dq0Sd1h9.js → pt-BR-D5r3Ig2a.js} +3 -1
- package/dist/pt-BR-MAQR_CUu2.js +7 -0
- package/dist/pt-PT-CoKsjpyN.js +7 -0
- package/dist/{pt-PT-BuM6Edx0.js → pt-PT-Dsxz9fKe.js} +3 -1
- package/dist/{resolveEnvironment-B3XdWKTk.js → resolveEnvironment-BHl_lvUz.js} +43 -43
- package/dist/{ro-RO-DJjle7nF.js → ro-RO-BfVd2Ps9.js} +3 -1
- package/dist/ro-RO-Cpv5pKod.js +7 -0
- package/dist/{roleMetadata-CWdYxbqM.js → roleMetadata-v10ns9iG.js} +1 -1
- package/dist/{sk-SK-CSPSMUYC.js → sk-SK-ID0z1rIS.js} +3 -1
- package/dist/sk-SK-p_p2X_aA.js +7 -0
- package/dist/sl-SI-BpZp1MAq.js +7 -0
- package/dist/{sl-SI-C82Kr3vf.js → sl-SI-hxmAPrRM.js} +3 -1
- package/dist/style.css +84 -74
- package/dist/styles-DYaAeu4q.js +84 -74
- package/dist/sv-SE-BoXCPhGb.js +7 -0
- package/dist/{sv-SE-DT9jLSs2.js → sv-SE-BuzHXTQj.js} +3 -1
- package/dist/{translation-BR3rLb4m.js → translation-BYvhW5zA.js} +1 -1
- package/dist/types/api/companySelection/companySelection.types.d.ts +2 -0
- package/dist/types/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +7 -2
- package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +1 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +11 -0
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -0
- package/dist/types/components/Business/forms/ProofOfAddressDocument/ProofOfAddressDocument.d.ts +2 -0
- package/dist/types/components/Business/forms/ProofOfAddressDocument/types.d.ts +5 -0
- package/dist/types/components/Business/forms/rules.d.ts +2 -0
- package/dist/types/components/Business/hooks/useCompanySearchNextClickOverrides.d.ts +2 -1
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/modals/LegalArrangementModal.d.ts +5 -0
- package/dist/types/components/Business/modals/RegistrationNumberMismatchModal.d.ts +11 -0
- package/dist/types/components/Business/modals/TinMismatchModal.d.ts +6 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +4 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -1
- package/dist/types/components/{Individual/forms → Shared}/DataConflictsModal/ConflictRow.d.ts +1 -1
- package/dist/types/components/{Individual/forms → Shared}/DataConflictsModal/DataConflictsModal.d.ts +23 -4
- package/dist/types/components/Shared/fields/LegalEntityIdentifierField/LegalEntityIdentifierField.d.ts +3 -0
- package/dist/types/components/Shared/fields/LegalEntityIdentifierField/fieldConfig.d.ts +5 -0
- package/dist/types/components/Shared/fields/LegalEntityIdentifierField/types.d.ts +8 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +2 -1
- package/dist/types/context/ToggleContext/types.d.ts +4 -4
- package/dist/types/hooks/useMultiForm/types.d.ts +4 -4
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getFormSlice.d.ts +2 -2
- package/dist/{types-KjTYEnAG.js → types-QSnyOf8p.js} +1 -1
- package/dist/{unincorporated-partnership-BstfjTh2.js → unincorporated-partnership-nnTW3FnG.js} +1 -1
- package/dist/{useAssociatedLegalEntity-QRvyeNwU.js → useAssociatedLegalEntity-CkuvFV-D.js} +2 -2
- package/dist/{useBusinessDetailsData-CdOak9Wq.js → useBusinessDetailsData-CbbJuIKL.js} +426 -188
- package/dist/{useBusinessLines-B2iCcDej.js → useBusinessLines-BFsRoAAj.js} +1 -1
- package/dist/{useCanSeeIntroduction-CNNn9cts.js → useCanSeeIntroduction-DgFDsQgm.js} +1 -1
- package/dist/{useCreateLegalEntity-zPjl13U3.js → useCreateLegalEntity-CoBr-K0N.js} +1 -1
- package/dist/{useDataMissingRemediations-IH7p5j8V.js → useDataMissingRemediations-QYShC4SG.js} +2 -2
- package/dist/{useForm-B3Jo_Jbx.js → useForm-BKm6Dmci.js} +2 -2
- package/dist/{useFormContext-D-d0WyQm.js → useFormContext-P2kjARGr.js} +8 -8
- package/dist/{useLegalEntity-BXk2tzGe.js → useLegalEntity-CtlUQv_J.js} +1 -1
- package/dist/{useMultiForm-D_17VPX_.js → useMultiForm-CwCmJ-c9.js} +13 -13
- package/dist/{useNavigate-CsnYf5i1.js → useNavigate-CyW_IvoG.js} +31 -31
- package/dist/{useOnboardingStatus-BgO4uPbW.js → useOnboardingStatus-BlXlrSAS.js} +1 -1
- package/dist/{usePciQuestionnaireList-BEPt97lw.js → usePciQuestionnaireList-CbkNC_Ye.js} +1 -1
- package/dist/{useSalesChannels-CxxzJGtX.js → useSalesChannels-DW5ilTS0.js} +2 -2
- package/dist/{useScenarios-BRGMIufX.js → useScenarios-DciPyzQ-.js} +1 -1
- package/dist/{useTaskLandedEvent-Doq80YT8.js → useTaskLandedEvent-BXtOctC4.js} +1 -1
- package/dist/{useTaskStatus-BLkHjMgm.js → useTaskStatus-wrAxqtIR.js} +1 -1
- package/dist/{useTermsOfServiceStatus-B1OpYOua.js → useTermsOfServiceStatus-D1_ECrkO.js} +1 -1
- package/dist/{useTrustMembers-NkM-hgOm.js → useTrustMembers-DcQRRXsA.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-DK_yrIU4.js → useUnincorporatedPartnershipMembers-7T2XW_zN.js} +3 -3
- package/dist/{useUpdateBusinessLines-jlXfi57a.js → useUpdateBusinessLines-Cncate8L.js} +1 -1
- package/dist/{useUpdateLegalEntity-BEzBO8ny.js → useUpdateLegalEntity-BIiqCVyZ.js} +2 -2
- package/dist/{utils-BzpnzDBD.js → utils-BAQNYhRA.js} +5 -5
- package/dist/{utils-CB9oLqgE.js → utils-B_-UNRKr.js} +3 -3
- package/dist/{utils-BAPGRNO9.js → utils-Btr8RMlM.js} +18 -18
- package/dist/{utils-BtyrxTzp.js → utils-C1buyvRw.js} +1 -1
- package/dist/{validate-B2bZh_uL.js → validate-DkjeS-zE.js} +4 -4
- package/dist/{validate-BqYHsBzg.js → validate-baVXdS7B.js} +1 -1
- package/dist/{validateExtractionResult-CLJ93Tay.js → validateExtractionResult-Dpmu7Heg.js} +12 -232
- package/dist/{validationError-Bny-1EE5.js → validationError-COmWiy16.js} +1 -1
- package/package.json +3 -2
- package/dist/bg-BG-FthOeqMs.js +0 -7
- package/dist/cs-CZ-nMdCNolB.js +0 -7
- package/dist/da-DK-BF_wiKbj.js +0 -7
- package/dist/de-DE-z8FJw9Yv.js +0 -7
- package/dist/el-GR-DHiKsTJQ.js +0 -7
- package/dist/en-US-BeIZBdDm.js +0 -7
- package/dist/en-US-BqGRsgfO.js +0 -7
- package/dist/es-ES-C6Rs-ie9.js +0 -7
- package/dist/es-LA-xilYCaSd.js +0 -7
- package/dist/et-EE-DEs2iukD.js +0 -7
- package/dist/fi-FI-8eStbIaM.js +0 -7
- package/dist/fr-FR-B8iVi3nn.js +0 -7
- package/dist/hr-HR-Bt2ZduQN.js +0 -7
- package/dist/hu-HU-DTRbo1IU.js +0 -7
- package/dist/it-IT-DzzajnKQ.js +0 -7
- package/dist/ja-JP-BpNu5KzH.js +0 -7
- package/dist/lt-LT-BJbA6rDr.js +0 -7
- package/dist/lv-LV-BBbE9hg5.js +0 -7
- package/dist/nl-NL-7ddo0NCH.js +0 -7
- package/dist/no-NO-Bf-QR3EY.js +0 -7
- package/dist/pl-PL-Dd9fkdnr.js +0 -7
- package/dist/pt-BR-uhrvEANO2.js +0 -7
- package/dist/pt-PT-Cz4rJgbi.js +0 -7
- package/dist/ro-RO-BnZbYPEH.js +0 -7
- package/dist/sk-SK-DBHPBJm4.js +0 -7
- package/dist/sl-SI-dukW1tgW.js +0 -7
- package/dist/sv-SE-BlGBkLAA.js +0 -7
|
@@ -1,85 +1,86 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1f1c2a44-4445-406c-887c-b012227d3446", e._sentryDebugIdIdentifier = "sentry-dbid-1f1c2a44-4445-406c-887c-b012227d3446");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { i as Typography, o as createLogger, r as useTranslation } from "./translation-
|
|
6
|
-
import { E as useAllowedCountries, T as datasetUtilities, at as isUndefinedOrNull, ft as useAccountHolder, j as useToggleContext, k as Header, nt as isEmpty, rt as isISIN, x as Alert } from "./resolveEnvironment-
|
|
7
|
-
import { r as Loader, t as Button } from "./Button-
|
|
8
|
-
import { r as httpPost, s as useApiContext } from "./http-
|
|
9
|
-
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-
|
|
5
|
+
import { i as Typography, o as createLogger, r as useTranslation } from "./translation-BYvhW5zA.js";
|
|
6
|
+
import { E as useAllowedCountries, T as datasetUtilities, at as isUndefinedOrNull, ft as useAccountHolder, j as useToggleContext, k as Header, nt as isEmpty, rt as isISIN, x as Alert } from "./resolveEnvironment-BHl_lvUz.js";
|
|
7
|
+
import { r as Loader, t as Button } from "./Button-i8I2dHP8.js";
|
|
8
|
+
import { r as httpPost, s as useApiContext } from "./http-8qgzqVqk.js";
|
|
9
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CtlUQv_J.js";
|
|
10
10
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
11
11
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
12
12
|
import { c as entriesOf, i as drop, l as keysOf, o as objectsDeepEqual, r as doArraysMatch } from "./AnalyticsContext-BFrJmsp0.js";
|
|
13
13
|
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
14
|
-
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-
|
|
14
|
+
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-CKHPTEpH.js";
|
|
15
15
|
import { n as TASK_STATUS_POLLING_INTERVAL_MS } from "./taskStatus-BtekPA8E.js";
|
|
16
16
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
17
|
-
import { _ as
|
|
17
|
+
import { _ as businessDetailsKeyMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsDocumentMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-fPuXc9gL.js";
|
|
18
18
|
import { t as TaskTypes } from "./taskTypes-NawDTp5n.js";
|
|
19
19
|
import { r as filterOutUnwantedAssociationsIfRootLE, s as getOwnEntityAssociations } from "./entityAssociationUtil-C-wflW8q.js";
|
|
20
20
|
import { t as Scenarios } from "./get-scenarios-Bb-paHmJ.js";
|
|
21
|
-
import { t as useBusinessLines } from "./useBusinessLines-
|
|
21
|
+
import { t as useBusinessLines } from "./useBusinessLines-BFsRoAAj.js";
|
|
22
22
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
23
|
-
import { i as useAnalyticsContext, n as ModalContent, r as KEYBOARD_KEYS, t as Modal } from "./Modal-
|
|
23
|
+
import { i as useAnalyticsContext, n as ModalContent, r as KEYBOARD_KEYS, t as Modal } from "./Modal-BLP2aF-u.js";
|
|
24
24
|
import { t as SettingNames } from "./types-Cwq1JAWT.js";
|
|
25
|
-
import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-
|
|
25
|
+
import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-CIR9WITC.js";
|
|
26
26
|
import { c as CompanyTypesValues } from "./bafinUtils-BKq-s1Ka.js";
|
|
27
|
-
import { r as LoaderWrapper } from "./utils-
|
|
28
|
-
import { t as Confirm } from "./Confirm-
|
|
27
|
+
import { r as LoaderWrapper } from "./utils-C1buyvRw.js";
|
|
28
|
+
import { t as Confirm } from "./Confirm-CA-gL38n.js";
|
|
29
29
|
import { t as HandlerContext } from "./HandlerContext-DeMa68z0.js";
|
|
30
|
-
import { t as useScenarios } from "./useScenarios-
|
|
31
|
-
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
32
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
33
|
-
import { a as defaultFieldMetadata, i as defaultFieldConfig, l as formatAddressForCleanse, n as STATE_FIELD, r as StateField, t as Address, u as useAddressCleanse } from "./Address-
|
|
34
|
-
import { i as FormFlow, n as addValidityToForms, o as useFormComposer, s as FormContextProvider, t as useFormContext } from "./useFormContext-
|
|
35
|
-
import { n as composePerScenarioFormConfigurations, r as getPropsFromConfigurations } from "./process-field-configurations-
|
|
30
|
+
import { t as useScenarios } from "./useScenarios-DciPyzQ-.js";
|
|
31
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CoBr-K0N.js";
|
|
32
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-BIiqCVyZ.js";
|
|
33
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfig, l as formatAddressForCleanse, n as STATE_FIELD, r as StateField, t as Address, u as useAddressCleanse } from "./Address-5AHpnFKh.js";
|
|
34
|
+
import { i as FormFlow, n as addValidityToForms, o as useFormComposer, s as FormContextProvider, t as useFormContext } from "./useFormContext-P2kjARGr.js";
|
|
35
|
+
import { n as composePerScenarioFormConfigurations, r as getPropsFromConfigurations } from "./process-field-configurations-DQlTj--V.js";
|
|
36
36
|
import { t as StructuredList } from "./StructuredList-CUyo9-3i.js";
|
|
37
|
-
import { t as ErrorPanel } from "./ErrorPanel-
|
|
37
|
+
import { t as ErrorPanel } from "./ErrorPanel-DkZa2YS_.js";
|
|
38
38
|
import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-DVc3a6gf.js";
|
|
39
|
-
import { n as summaryStep, r as Summary_module_default } from "./Summary-
|
|
40
|
-
import { t as useMultiForm } from "./useMultiForm-
|
|
41
|
-
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-
|
|
42
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
43
|
-
import { a as alphanumericInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput } from "./MaskedInput-
|
|
44
|
-
import { i as mapJpAddressSummaryNewSummary, n as toFullWidth, t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-
|
|
39
|
+
import { n as summaryStep, r as Summary_module_default } from "./Summary-BVa-n2sC.js";
|
|
40
|
+
import { t as useMultiForm } from "./useMultiForm-CwCmJ-c9.js";
|
|
41
|
+
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-BmI24MBQ.js";
|
|
42
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-BXtOctC4.js";
|
|
43
|
+
import { a as alphanumericInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput } from "./MaskedInput-7qV9oiWq.js";
|
|
44
|
+
import { i as mapJpAddressSummaryNewSummary, n as toFullWidth, t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-Dzcl40cA.js";
|
|
45
45
|
import { a as mapAddressLabelsNewSummary, c as COUNTRIES_WITH_STATES_DATASET, n as getAddressSchemaLabelsByCountry, r as getKeyForField, t as getAddressSchemaForCountry } from "./utils-DNIZ6F6L.js";
|
|
46
|
-
import { i as isValidationError, n as isBusinessSelectionLegalArrangementError, o as processValidationErrors, s as isMaintenanceModeError } from "./validationError-
|
|
47
|
-
import { a as createDocumentRequest, c as getDocuments, f as mergeProofOfOwnershipAttachments, l as getFileExtention, o as documentApiUtils, s as getDocument } from "./validate-
|
|
46
|
+
import { i as isValidationError, n as isBusinessSelectionLegalArrangementError, o as processValidationErrors, s as isMaintenanceModeError } from "./validationError-COmWiy16.js";
|
|
47
|
+
import { a as createDocumentRequest, c as getDocuments, f as mergeProofOfOwnershipAttachments, l as getFileExtention, o as documentApiUtils, s as getDocument } from "./validate-DkjeS-zE.js";
|
|
48
48
|
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
49
|
-
import { a as getFieldsWithExistingData, n as TaxInformationField, r as MemoizedDocumentUpload, t as TAX_INFORMATION_FIELD } from "./TaxInformationField-
|
|
49
|
+
import { a as getFieldsWithExistingData, n as TaxInformationField, r as MemoizedDocumentUpload, t as TAX_INFORMATION_FIELD } from "./TaxInformationField-WDl7mpRS.js";
|
|
50
50
|
import { a as isJapanLocalizationEnabled } from "./Individual.rules-Cc2Uigav.js";
|
|
51
51
|
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
52
|
-
import { a as validateNotEmptyOnBlur, n as validateJaKanaLegalCompanyName, o as validatePatternOnBlur, t as validateJaHaniLegalCompanyName } from "./patternValidators-
|
|
53
|
-
import { A as taxInformationDefaultFieldMetadata, C as getTaxIdNumberOptions, O as getTaxInformationPlaceholderText, _ as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, b as REGISTRATION_NUMBER_EXEMPTION_RULES, c as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, d as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, g as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, h as COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS, i as COUNTRIES_REQUIRING_E_INVOICING_CODE, k as taxInformationDefaultFieldConfig, l as COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION, m as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, o as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, p as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, s as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, u as COUNTRIES_THAT_USES_UEN_OR_GST, v as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, w as getValidCompanyTypesForTaxIdNumberType, x as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, y as COUNTRY_OF_GOVERNING_LAW_POSSIBLE } from "./utils-
|
|
52
|
+
import { a as validateNotEmptyOnBlur, n as validateJaKanaLegalCompanyName, o as validatePatternOnBlur, t as validateJaHaniLegalCompanyName } from "./patternValidators-D7FquZM7.js";
|
|
53
|
+
import { A as taxInformationDefaultFieldMetadata, C as getTaxIdNumberOptions, O as getTaxInformationPlaceholderText, _ as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, b as REGISTRATION_NUMBER_EXEMPTION_RULES, c as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, d as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, g as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, h as COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS, i as COUNTRIES_REQUIRING_E_INVOICING_CODE, k as taxInformationDefaultFieldConfig, l as COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION, m as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, o as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, p as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, s as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, u as COUNTRIES_THAT_USES_UEN_OR_GST, v as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, w as getValidCompanyTypesForTaxIdNumberType, x as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, y as COUNTRY_OF_GOVERNING_LAW_POSSIBLE } from "./utils-BAQNYhRA.js";
|
|
54
54
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
55
|
-
import { t as Field } from "./Field-
|
|
56
|
-
import { t as TileGroup } from "./TileGroup-
|
|
57
|
-
import { t as LandingLayout } from "./LandingLayout-
|
|
55
|
+
import { t as Field } from "./Field-DoXLi6EY.js";
|
|
56
|
+
import { t as TileGroup } from "./TileGroup-DitwS4Ud.js";
|
|
57
|
+
import { t as LandingLayout } from "./LandingLayout-CUAkXrpL.js";
|
|
58
58
|
import { n as useDebouncedCallback } from "./debouncedInputEvent-Fwwp_K_-.js";
|
|
59
|
-
import { t as Checkbox } from "./Checkbox-
|
|
60
|
-
import { n as convertFullToHalf } from "./TextArea-
|
|
61
|
-
import { t as Link } from "./Link-
|
|
62
|
-
import { t as InputText } from "./InputText-
|
|
63
|
-
import { n as formatDateObj, t as InputDate } from "./InputDate-
|
|
64
|
-
import { n as CountryField, t as COUNTRY_FIELD } from "./CountryField-
|
|
65
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
59
|
+
import { t as Checkbox } from "./Checkbox-D7BRIoQL.js";
|
|
60
|
+
import { n as convertFullToHalf } from "./TextArea-CT04Dg1N.js";
|
|
61
|
+
import { t as Link } from "./Link-JFzfaUOa.js";
|
|
62
|
+
import { t as InputText } from "./InputText-B0N7am-q.js";
|
|
63
|
+
import { n as formatDateObj, t as InputDate } from "./InputDate-CPkdZkHB.js";
|
|
64
|
+
import { n as CountryField, t as COUNTRY_FIELD } from "./CountryField-CfpxIma_.js";
|
|
65
|
+
import { t as RadioGroup } from "./RadioGroup-qV8mGGwm.js";
|
|
66
66
|
import { t as createFormRules } from "./form-rules-CUUQGacJ.js";
|
|
67
67
|
import { t as isEmpty$1 } from "./isEmpty-BVlBH98t.js";
|
|
68
|
+
import { t as DataConflictsModal } from "./DataConflictsModal-B6S-QiY6.js";
|
|
68
69
|
import { n as mapApiScriptLocalizationToSchemaFields, r as mapSchemaFieldsToApiScriptLocalization, t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-CBeBTFmC.js";
|
|
69
|
-
import { t as currencyByCountry } from "./types-
|
|
70
|
+
import { t as currencyByCountry } from "./types-QSnyOf8p.js";
|
|
70
71
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
71
72
|
import { t as DetailViewLayout } from "./DetailViewLayout-DNCGEd7b.js";
|
|
72
|
-
import { a as LegalFormField, c as getNestedTrustedFields, i as InputCurrency, l as isDateOlderThanAYear, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD, u as mapAddressData } from "./Currency-
|
|
73
|
-
import { n as SummarySection, t as NewSummary } from "./NewSummary-
|
|
74
|
-
import { t as useTaskStatus } from "./useTaskStatus-
|
|
75
|
-
import { t as ListItem } from "./ListItem-
|
|
76
|
-
import { a as getValidCompanyTypesForRegistrationNumberType, c as getRegistrationNumberHelperText, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-
|
|
77
|
-
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-
|
|
73
|
+
import { a as LegalFormField, c as getNestedTrustedFields, i as InputCurrency, l as isDateOlderThanAYear, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD, u as mapAddressData } from "./Currency-GWKdVICK.js";
|
|
74
|
+
import { n as SummarySection, t as NewSummary } from "./NewSummary-CAGVGm66.js";
|
|
75
|
+
import { t as useTaskStatus } from "./useTaskStatus-wrAxqtIR.js";
|
|
76
|
+
import { t as ListItem } from "./ListItem-V4x0raZw.js";
|
|
77
|
+
import { a as getValidCompanyTypesForRegistrationNumberType, c as getRegistrationNumberHelperText, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-B4DpE8h0.js";
|
|
78
|
+
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-Cncate8L.js";
|
|
78
79
|
import { n as formatCurrency } from "./formatCurrency-Cq3WFpdZ.js";
|
|
79
|
-
import { S as DBA_NAME_FIELD, _ as defaultFieldMetadata$1, a as isRegistrationNumberAbsentStateV4Scenario, b as doingBusinessAsFieldMetadata, c as BusinessRegistrationNumberField,
|
|
80
|
-
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-
|
|
81
|
-
import { a as defaultFieldMetadata$2, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig$2, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-
|
|
82
|
-
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
80
|
+
import { S as DBA_NAME_FIELD, _ as defaultFieldMetadata$1, a as isRegistrationNumberAbsentStateV4Scenario, b as doingBusinessAsFieldMetadata, c as BusinessRegistrationNumberField, g as defaultFieldConfig$1, h as getDefaultVatNumberType, i as isRegistrationExemptionAllowed, l as MemoizedConstitutionalDocument, m as VatNumberField, n as getCountryOfGoverningLaw, o as isUsingCompanySearch, p as VAT_NUMBER_FIELD, r as isFinancialInformationRequired, s as BUSINESS_REGISTRATION_NUMBER_FIELD, t as countryToTaxInfoTypeMap, u as registrationAddressFields, v as vatAbsenceReasonMetadata, x as DBANameField, y as doingBusinessAsAbsentFieldMetadata } from "./utils-Btr8RMlM.js";
|
|
81
|
+
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-Cg4wVFzF.js";
|
|
82
|
+
import { a as defaultFieldMetadata$2, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig$2, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-B_pDQ0Cq.js";
|
|
83
|
+
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-B_-UNRKr.js";
|
|
83
84
|
import { Suspense, lazy } from "preact/compat";
|
|
84
85
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
85
86
|
import cx from "classnames";
|
|
@@ -175,6 +176,80 @@ var eInvoicingCodeFieldMetadata = {
|
|
|
175
176
|
transformOnType: uppercase
|
|
176
177
|
}
|
|
177
178
|
};
|
|
179
|
+
var legalEntityIdentifierFieldMetadata = {
|
|
180
|
+
validators: [{
|
|
181
|
+
modes: ["blur"],
|
|
182
|
+
validate: (val) => {
|
|
183
|
+
const isValidLength = val ? val.length === 20 : false;
|
|
184
|
+
const hasLettersAndNumbers = val ? /[a-zA-Z]/.test(val) && /[0-9]/.test(val) : false;
|
|
185
|
+
return isValidLength && hasLettersAndNumbers;
|
|
186
|
+
},
|
|
187
|
+
errorMessage: {
|
|
188
|
+
key: "enterNCharactersWithAMixForExample",
|
|
189
|
+
values: {
|
|
190
|
+
numChars: "20",
|
|
191
|
+
example: "529900T8BM49AURSDO55"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}],
|
|
195
|
+
mask: {
|
|
196
|
+
mask: makeMask(...alphanumericInputs(20)),
|
|
197
|
+
transformOnType: uppercase
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region src/components/Shared/fields/LegalEntityIdentifierField/LegalEntityIdentifierField.tsx
|
|
202
|
+
var LEGAL_ENTITY_IDENTIFIER_FIELD = ["legalEntityIdentifier", "exemptedFromLegalEntityIdentifier"];
|
|
203
|
+
function LegalEntityIdentifierField({ data, valid, errors, handleChangeFor, shouldValidate, canExempt = true }) {
|
|
204
|
+
const { t } = useTranslation("common");
|
|
205
|
+
const placeholder = data.exemptedFromLegalEntityIdentifier ? "" : "529900T8BM49AURSDO55";
|
|
206
|
+
const isExempted = Boolean(data.exemptedFromLegalEntityIdentifier);
|
|
207
|
+
const handleExemptedChange = (isChecked) => {
|
|
208
|
+
handleChangeFor("exemptedFromLegalEntityIdentifier", "blur")(isChecked);
|
|
209
|
+
if (isChecked) handleChangeFor("legalEntityIdentifier", "input")("");
|
|
210
|
+
};
|
|
211
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(MaskedInput, {
|
|
212
|
+
type: "text",
|
|
213
|
+
name: "legalEntityIdentifier",
|
|
214
|
+
label: t(($) => $["legalEntityIdentifier"]),
|
|
215
|
+
onInput: handleChangeFor("legalEntityIdentifier", "input"),
|
|
216
|
+
onBlur: handleChangeFor("legalEntityIdentifier", "blur"),
|
|
217
|
+
value: data.legalEntityIdentifier ?? "",
|
|
218
|
+
isValid: Boolean(valid?.legalEntityIdentifier),
|
|
219
|
+
errorMessage: errors.legalEntityIdentifier,
|
|
220
|
+
disabled: isExempted,
|
|
221
|
+
helper: /* @__PURE__ */ jsxs(Typography, {
|
|
222
|
+
variant: "caption",
|
|
223
|
+
color: "secondary",
|
|
224
|
+
children: [
|
|
225
|
+
t(($) => $["aUniqueIdentifierForGlobalFinancialReporting"]),
|
|
226
|
+
" ",
|
|
227
|
+
/* @__PURE__ */ jsx(Link, {
|
|
228
|
+
href: "https://search.gleif.org/#/search/",
|
|
229
|
+
external: true,
|
|
230
|
+
inline: true,
|
|
231
|
+
children: t(($) => $["lookUpYourLEI"])
|
|
232
|
+
})
|
|
233
|
+
]
|
|
234
|
+
}),
|
|
235
|
+
helperPosition: "below",
|
|
236
|
+
persistHelper: true,
|
|
237
|
+
shouldValidate,
|
|
238
|
+
placeholder,
|
|
239
|
+
mask: legalEntityIdentifierFieldMetadata.mask?.mask,
|
|
240
|
+
transformOnType: legalEntityIdentifierFieldMetadata.mask?.transformOnType
|
|
241
|
+
}), canExempt && /* @__PURE__ */ jsx(Field, {
|
|
242
|
+
name: "exemptedFromLegalEntityIdentifier",
|
|
243
|
+
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
244
|
+
...childProps,
|
|
245
|
+
name: "exemptedFromLegalEntityIdentifier",
|
|
246
|
+
value: "exemptedFromLegalEntityIdentifier",
|
|
247
|
+
checked: isExempted,
|
|
248
|
+
label: t(($) => $["iDontHaveAnLEI"]),
|
|
249
|
+
onChange: handleExemptedChange
|
|
250
|
+
})
|
|
251
|
+
})] });
|
|
252
|
+
}
|
|
178
253
|
//#endregion
|
|
179
254
|
//#region src/components/Shared/fields/StockExchangeMICField/fieldConfig.ts
|
|
180
255
|
var stockExchangeMICFieldMetadata = {
|
|
@@ -297,10 +372,25 @@ var legalFormFieldMetadata = {
|
|
|
297
372
|
validators: [validateNotEmptyOnBlur]
|
|
298
373
|
};
|
|
299
374
|
//#endregion
|
|
300
|
-
//#region src/
|
|
301
|
-
|
|
302
|
-
return
|
|
303
|
-
|
|
375
|
+
//#region src/api/companyDataSet/useClearCompanyData.ts
|
|
376
|
+
var clearCompanyData = async (legalEntityId, baseUrl) => {
|
|
377
|
+
return httpPost({
|
|
378
|
+
baseUrl,
|
|
379
|
+
path: `legalEntities/${legalEntityId}/companyDataset/clearCompanyData`
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
var useClearCompanyData = (options) => {
|
|
383
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
384
|
+
const logger = createLogger();
|
|
385
|
+
return useMutation({
|
|
386
|
+
mutationFn: () => {
|
|
387
|
+
return clearCompanyData(rootLegalEntityId.value, baseUrl.value);
|
|
388
|
+
},
|
|
389
|
+
retry: 0,
|
|
390
|
+
onError: (e) => logger.error(e),
|
|
391
|
+
...options
|
|
392
|
+
});
|
|
393
|
+
};
|
|
304
394
|
//#endregion
|
|
305
395
|
//#region src/components/Shared/fields/LocalizedLegalCompanyNameField/types.ts
|
|
306
396
|
var JAPANESE_LEGAL_COMPANY_NAME_FIELDS = ["jaHaniLegalCompanyName", "jaKanaLegalCompanyName"];
|
|
@@ -427,7 +517,7 @@ function BasicInformation({ id, country, shouldValidate, fieldValidationErrors =
|
|
|
427
517
|
const isAllowedEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
|
|
428
518
|
const state = form.data.basicInformation?.stateOrProvince;
|
|
429
519
|
const currentCountryTaxInformation = form.data.basicInformation?.taxInformation?.find((tax) => tax.country === country);
|
|
430
|
-
const handleChangeFor = useCallback$1((fieldName, mode) => form.handleChangeFor(
|
|
520
|
+
const handleChangeFor = useCallback$1((fieldName, mode) => form.handleChangeFor("basicInformation", fieldName, mode), [form]);
|
|
431
521
|
const formUtils = useMemo$1(() => {
|
|
432
522
|
const initialProps = {
|
|
433
523
|
data: form.data.basicInformation ?? {},
|
|
@@ -604,24 +694,6 @@ function BasicInformation({ id, country, shouldValidate, fieldValidationErrors =
|
|
|
604
694
|
});
|
|
605
695
|
}
|
|
606
696
|
//#endregion
|
|
607
|
-
//#region src/api/companyDataSet/useClearCompanyData.ts
|
|
608
|
-
var clearCompanyData = async (legalEntityId, baseUrl) => {
|
|
609
|
-
return httpPost({
|
|
610
|
-
baseUrl,
|
|
611
|
-
path: `legalEntities/${legalEntityId}/companyDataset/clearCompanyData`
|
|
612
|
-
});
|
|
613
|
-
};
|
|
614
|
-
var useClearCompanyData = (options) => {
|
|
615
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
616
|
-
return useMutation({
|
|
617
|
-
mutationFn: () => {
|
|
618
|
-
return clearCompanyData(rootLegalEntityId.value, baseUrl.value);
|
|
619
|
-
},
|
|
620
|
-
retry: 0,
|
|
621
|
-
...options
|
|
622
|
-
});
|
|
623
|
-
};
|
|
624
|
-
//#endregion
|
|
625
697
|
//#region src/utils/performance.ts
|
|
626
698
|
/**
|
|
627
699
|
* Start timing an operation
|
|
@@ -845,7 +917,13 @@ var handleCompanySelection = async (rootLegalEntityId, baseUrl, queryClient, dat
|
|
|
845
917
|
tinMatched: tinMatchResult.status === "fulfilled" ? tinMatchResult.value.matched : false
|
|
846
918
|
};
|
|
847
919
|
}
|
|
848
|
-
default:
|
|
920
|
+
default: {
|
|
921
|
+
const companyDatasetResult = await handleCompanyDataset(rootLegalEntityId, baseUrl, { id: data.id });
|
|
922
|
+
return {
|
|
923
|
+
...companyDatasetResult,
|
|
924
|
+
registrationNumberMatched: companyDatasetResult.registrationNumber ? data.registrationNumber === companyDatasetResult.registrationNumber : void 0
|
|
925
|
+
};
|
|
926
|
+
}
|
|
849
927
|
}
|
|
850
928
|
};
|
|
851
929
|
//#endregion
|
|
@@ -951,7 +1029,8 @@ function BusinessSelection({ id, country, fieldValidationErrors = EMPTY_OBJ$4, f
|
|
|
951
1029
|
const { data: selectData, error: selectError, mutateAsync: selectCompany, reset: resetSelectMutationState } = useCompanySelection();
|
|
952
1030
|
const { mutateAsync: clearCompanyData } = useClearCompanyData();
|
|
953
1031
|
const currentTin = form.data.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number;
|
|
954
|
-
const
|
|
1032
|
+
const currentRegistrationNumber = form.data.basicInformation?.registrationNumber;
|
|
1033
|
+
const handleChange = useCallback$1((fieldName, mode) => form.handleChangeFor("businessSelection", fieldName, mode), [form]);
|
|
955
1034
|
/**
|
|
956
1035
|
* This ID is internal to this form, controlling selection for UI & data flow purposes. The
|
|
957
1036
|
* multiform state is used to determine whether the form is set & valid, ready for the user to progress.
|
|
@@ -970,7 +1049,7 @@ function BusinessSelection({ id, country, fieldValidationErrors = EMPTY_OBJ$4, f
|
|
|
970
1049
|
if (!isInitializedRef.current) {
|
|
971
1050
|
if (form.data.businessSelection?.selectedBusinessId) {
|
|
972
1051
|
handleChange("selectedBusinessId", "blur")("");
|
|
973
|
-
form.setErrors("selectedBusinessId", null
|
|
1052
|
+
form.setErrors("businessSelection", "selectedBusinessId", null);
|
|
974
1053
|
}
|
|
975
1054
|
isInitializedRef.current = true;
|
|
976
1055
|
}
|
|
@@ -982,10 +1061,11 @@ function BusinessSelection({ id, country, fieldValidationErrors = EMPTY_OBJ$4, f
|
|
|
982
1061
|
id: result.resultId,
|
|
983
1062
|
name: result.name,
|
|
984
1063
|
tin: currentTin ?? "",
|
|
1064
|
+
registrationNumber: currentRegistrationNumber ?? "",
|
|
985
1065
|
country
|
|
986
1066
|
});
|
|
987
1067
|
handleChange("selectedBusinessId", "blur")(result.resultId);
|
|
988
|
-
companySearchStateModel.selectCompany(companySelectionResponse, selectedCompanyIdx);
|
|
1068
|
+
companySearchStateModel.selectCompany(companySelectionResponse, selectedCompanyIdx, country);
|
|
989
1069
|
} catch (e) {
|
|
990
1070
|
if (isBusinessSelectionLegalArrangementError(e)) {
|
|
991
1071
|
companySearchStateModel.disallowSelection("LEGAL_ARRANGEMENT");
|
|
@@ -1012,11 +1092,11 @@ function BusinessSelection({ id, country, fieldValidationErrors = EMPTY_OBJ$4, f
|
|
|
1012
1092
|
tin: currentTin ?? ""
|
|
1013
1093
|
};
|
|
1014
1094
|
const { matched } = await queryClient.fetchQuery(verifyTinQueryOptions(rootLegalEntityId.peek(), baseUrl.peek(), tinVerificationParams, userEvents));
|
|
1015
|
-
companySearchStateModel.
|
|
1095
|
+
companySearchStateModel.setVerificationMatched(!!matched);
|
|
1016
1096
|
handleChange("selectedBusinessId", "blur")("notListed");
|
|
1017
1097
|
} catch (e) {
|
|
1018
1098
|
logger.error(e);
|
|
1019
|
-
companySearchStateModel.
|
|
1099
|
+
companySearchStateModel.setVerificationMatched(false);
|
|
1020
1100
|
handleChange("selectedBusinessId", "blur")("notListed");
|
|
1021
1101
|
} finally {
|
|
1022
1102
|
isSelectPending.value = false;
|
|
@@ -1250,7 +1330,7 @@ function CompanyStructure({ id, country, fieldValidationErrors = EMPTY_OBJ$3, fo
|
|
|
1250
1330
|
name: "entityType",
|
|
1251
1331
|
tiles: companyTiles,
|
|
1252
1332
|
selected: form.data.companyStructure?.entityType ?? "",
|
|
1253
|
-
onChange: (value) => form.handleChangeFor("
|
|
1333
|
+
onChange: (value) => form.handleChangeFor("companyStructure", "entityType")(value),
|
|
1254
1334
|
isHorizontal: true,
|
|
1255
1335
|
"aria-required": true,
|
|
1256
1336
|
"aria-invalid": !form.valid.companyStructure?.entityType
|
|
@@ -1415,7 +1495,7 @@ function FinancialInformation({ id, country, fieldValidationErrors = EMPTY_OBJ$2
|
|
|
1415
1495
|
const { t } = useTranslation("common");
|
|
1416
1496
|
const { form } = useFormContext();
|
|
1417
1497
|
const defaultCurrency = currencyByCountry[country]?.[0] ?? "EUR";
|
|
1418
|
-
const handleChangeFor = useCallback$1((fieldName, mode) => form.handleChangeFor(
|
|
1498
|
+
const handleChangeFor = useCallback$1((fieldName, mode) => form.handleChangeFor("companyFinancialInformation", fieldName, mode), [form]);
|
|
1419
1499
|
const formUtils = useMemo$1(() => createFormUtils({
|
|
1420
1500
|
data: form.data.companyFinancialInformation ?? {},
|
|
1421
1501
|
fieldValidationErrors,
|
|
@@ -1482,6 +1562,36 @@ function FinancialInformation({ id, country, fieldValidationErrors = EMPTY_OBJ$2
|
|
|
1482
1562
|
});
|
|
1483
1563
|
}
|
|
1484
1564
|
//#endregion
|
|
1565
|
+
//#region src/components/Business/forms/ProofOfAddressDocument/ProofOfAddressDocument.tsx
|
|
1566
|
+
var GuidanceContent$5 = ({ t }) => {
|
|
1567
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1568
|
+
className: "adyen-kyc-upload-field__guidance",
|
|
1569
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
1570
|
+
className: "u-margin-bottom-24",
|
|
1571
|
+
children: [/* @__PURE__ */ jsx("strong", { children: t(($) => $["documentRequirements"], { ns: "common" }) }), /* @__PURE__ */ jsxs("ul", { children: [
|
|
1572
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["yourBusinesssLegalName"], { ns: "business" }) }),
|
|
1573
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["theCompleteAddress"], { ns: "business" }) }),
|
|
1574
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["anIssueDateWithinTheLast12Months"], { ns: "business" }) }),
|
|
1575
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["clearReadableText"], { ns: "business" }) })
|
|
1576
|
+
] })]
|
|
1577
|
+
})
|
|
1578
|
+
});
|
|
1579
|
+
};
|
|
1580
|
+
function ProofOfAddressDocument({ id, country, ...props }) {
|
|
1581
|
+
const { t } = useTranslation(["common", "business"]);
|
|
1582
|
+
return /* @__PURE__ */ jsx(MemoizedDocumentUpload, {
|
|
1583
|
+
...props,
|
|
1584
|
+
id,
|
|
1585
|
+
heading: t(($) => $["uploadProofOfAddress"], { ns: "business" }),
|
|
1586
|
+
description: t(($) => $["toFinishVerifyingYourBusinessWeNeedAnOfficialDocumentThatConfirmsItsAddress"], { ns: "business" }),
|
|
1587
|
+
documentField: "proofOfAddress",
|
|
1588
|
+
documentType: "proofOfAddress",
|
|
1589
|
+
guidanceContent: /* @__PURE__ */ jsx(GuidanceContent$5, { t }),
|
|
1590
|
+
country,
|
|
1591
|
+
hidePageCount: true
|
|
1592
|
+
});
|
|
1593
|
+
}
|
|
1594
|
+
//#endregion
|
|
1485
1595
|
//#region src/components/Business/forms/ProofOfDirectorDocument/ProofOfDirectorDocument.tsx
|
|
1486
1596
|
var documentTypes$2 = [{
|
|
1487
1597
|
id: "Internal company document",
|
|
@@ -1878,7 +1988,7 @@ function BusinessDetailsMultiform({ taskType, country, activeForm, shouldValidat
|
|
|
1878
1988
|
const { form } = useFormContext();
|
|
1879
1989
|
const companyType = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ? CompanyTypesValues.SOLE_PROPRIETORSHIP : form.data.companyStructure?.entityType;
|
|
1880
1990
|
function handleChange(formName, fieldName, mode) {
|
|
1881
|
-
return form.handleChangeFor(
|
|
1991
|
+
return form.handleChangeFor(formName, fieldName, mode);
|
|
1882
1992
|
}
|
|
1883
1993
|
const renderActiveForm = (activeForm) => {
|
|
1884
1994
|
switch (activeForm.formId) {
|
|
@@ -2008,6 +2118,21 @@ function BusinessDetailsMultiform({ taskType, country, activeForm, shouldValidat
|
|
|
2008
2118
|
fieldValidationErrors: problems.validationErrors?.[activeForm.formId] ?? {},
|
|
2009
2119
|
formVerificationErrors: problems.verificationErrors?.[activeForm.formId] ?? {}
|
|
2010
2120
|
});
|
|
2121
|
+
case "companyProofOfAddressDocument": return /* @__PURE__ */ jsx(ProofOfAddressDocument, {
|
|
2122
|
+
id: activeForm.formId,
|
|
2123
|
+
country,
|
|
2124
|
+
data: form.data.companyProofOfAddressDocument,
|
|
2125
|
+
errors: form.errors.companyProofOfAddressDocument,
|
|
2126
|
+
valid: form.valid.companyProofOfAddressDocument,
|
|
2127
|
+
allFields: form.allFields?.companyProofOfAddressDocument,
|
|
2128
|
+
requiredFields: form.requiredFields?.companyProofOfAddressDocument,
|
|
2129
|
+
optionalFields: form.optionalFields?.companyProofOfAddressDocument,
|
|
2130
|
+
trustedFields: form.trustedFields?.companyProofOfAddressDocument,
|
|
2131
|
+
handleFieldChange: (fieldName) => handleChange("companyProofOfAddressDocument", fieldName),
|
|
2132
|
+
shouldValidate,
|
|
2133
|
+
fieldValidationErrors: problems.validationErrors?.[activeForm.formId] ?? {},
|
|
2134
|
+
formVerificationErrors: problems.verificationErrors?.[activeForm.formId] ?? {}
|
|
2135
|
+
});
|
|
2011
2136
|
case "companyProofOfOwnershipDocument": return /* @__PURE__ */ jsx(ProofOfOwnershipDocument, {
|
|
2012
2137
|
id: activeForm.formId,
|
|
2013
2138
|
country,
|
|
@@ -2294,6 +2419,14 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2294
2419
|
},
|
|
2295
2420
|
japaneseLegalCompanyName: () => {
|
|
2296
2421
|
if (isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
|
|
2422
|
+
},
|
|
2423
|
+
requireLEI: () => {
|
|
2424
|
+
if (!isFeatureEnabled("EnableLegalEntityIdentifierField") || taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) return;
|
|
2425
|
+
return data.additionalInformation?.exemptedFromLegalEntityIdentifier ? void 0 : "REQUIRED";
|
|
2426
|
+
},
|
|
2427
|
+
requireLEIExemption: () => {
|
|
2428
|
+
if (!isFeatureEnabled("EnableLegalEntityIdentifierField") || taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) return;
|
|
2429
|
+
return data.additionalInformation?.exemptedFromLegalEntityIdentifier ? "REQUIRED" : "OPTIONAL";
|
|
2297
2430
|
}
|
|
2298
2431
|
});
|
|
2299
2432
|
};
|
|
@@ -2308,13 +2441,14 @@ var toNormalizedString = (s) => stripWhitespace(s.toLowerCase());
|
|
|
2308
2441
|
var isNormalizedStringMatch = (s1, s2) => toNormalizedString(s1) === toNormalizedString(s2);
|
|
2309
2442
|
//#endregion
|
|
2310
2443
|
//#region src/components/Business/hooks/useCompanySearchNextClickOverrides.ts
|
|
2311
|
-
function useCompanySearchNextClickOverrides({ country, multiForm, companySearchStateModel, getRequiredForms, skipBusinessSelection, setLoadingStatus, isTinMatched, tinMismatchModalOpen, legalArrangementModalOpen }) {
|
|
2444
|
+
function useCompanySearchNextClickOverrides({ country, multiForm, companySearchStateModel, getRequiredForms, skipBusinessSelection, setLoadingStatus, isTinMatched, tinMismatchModalOpen, legalArrangementModalOpen, registrationNumberMismatchModalOpen }) {
|
|
2312
2445
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
2313
2446
|
const userEvents = useAnalyticsContext();
|
|
2314
2447
|
const queryClient = useQueryClient();
|
|
2315
2448
|
const { mutateAsync: selectCompany } = useCompanySelection();
|
|
2316
|
-
const {
|
|
2449
|
+
const { mutate: clearCompanyData } = useClearCompanyData();
|
|
2317
2450
|
const logger = createLogger();
|
|
2451
|
+
const isVerificationFailed = () => country === CountryCodes.UnitedStates ? !companySearchStateModel.verificationMatched.value : companySearchStateModel.verificationMatched.value === false;
|
|
2318
2452
|
/**
|
|
2319
2453
|
* Returns `null` for non-navs, such as showing the TIN mismatch model for 0 or 1 results
|
|
2320
2454
|
*/
|
|
@@ -2342,6 +2476,7 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2342
2476
|
return formsWithoutSearchResults;
|
|
2343
2477
|
}
|
|
2344
2478
|
const tin = multiForm.data.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number ?? "";
|
|
2479
|
+
const registrationNumber = multiForm.data.basicInformation?.registrationNumber ?? "";
|
|
2345
2480
|
skipBusinessSelection.value = searchResponse.results.length === 0;
|
|
2346
2481
|
const currentForms = getRequiredForms({ skipBusinessSelection: skipBusinessSelection.peek() });
|
|
2347
2482
|
switch (searchResponse.results.length) {
|
|
@@ -2354,8 +2489,8 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2354
2489
|
const tinVerificationResponse = await queryClient.fetchQuery(verifyTinQueryOptions(rootLegalEntityId.peek(), baseUrl.peek(), verifyTinQueryInput, userEvents));
|
|
2355
2490
|
setLoadingStatus("success");
|
|
2356
2491
|
const tinMatched = !!tinVerificationResponse.matched;
|
|
2357
|
-
companySearchStateModel.
|
|
2358
|
-
if (companySearchStateModel.
|
|
2492
|
+
companySearchStateModel.setVerificationMatched(tinMatched);
|
|
2493
|
+
if (companySearchStateModel.verificationMatched.value) return currentForms;
|
|
2359
2494
|
tinMismatchModalOpen.value = true;
|
|
2360
2495
|
return null;
|
|
2361
2496
|
} catch (e) {
|
|
@@ -2375,36 +2510,27 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2375
2510
|
state: multiForm.data.basicInformation?.stateOrProvince,
|
|
2376
2511
|
name: multiForm.data.basicInformation?.legalCompanyName,
|
|
2377
2512
|
tin,
|
|
2513
|
+
registrationNumber,
|
|
2378
2514
|
id: searchResponse.results[0].resultId,
|
|
2379
2515
|
country
|
|
2380
2516
|
});
|
|
2381
|
-
companySearchStateModel.selectCompany(companySelectionResponse, -1);
|
|
2517
|
+
companySearchStateModel.selectCompany(companySelectionResponse, -1, country);
|
|
2382
2518
|
setLoadingStatus("success");
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
}
|
|
2393
|
-
clearCompanyData().then();
|
|
2394
|
-
return currentForms;
|
|
2395
|
-
}
|
|
2396
|
-
default:
|
|
2397
|
-
companySearchStateModel.confirmCompany(multiForm, country);
|
|
2398
|
-
skipBusinessSelection.value = true;
|
|
2399
|
-
return getRequiredForms({
|
|
2400
|
-
skipBusinessSelection: skipBusinessSelection.peek(),
|
|
2401
|
-
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm
|
|
2402
|
-
});
|
|
2519
|
+
if (isVerificationFailed()) {
|
|
2520
|
+
clearCompanyData();
|
|
2521
|
+
return currentForms;
|
|
2522
|
+
} else {
|
|
2523
|
+
companySearchStateModel.confirmCompany(multiForm, country);
|
|
2524
|
+
skipBusinessSelection.value = true;
|
|
2525
|
+
return getRequiredForms({
|
|
2526
|
+
skipBusinessSelection: skipBusinessSelection.peek(),
|
|
2527
|
+
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm
|
|
2528
|
+
});
|
|
2403
2529
|
}
|
|
2404
2530
|
} catch (e) {
|
|
2405
2531
|
logger.error(e);
|
|
2406
2532
|
setLoadingStatus("error");
|
|
2407
|
-
clearCompanyData()
|
|
2533
|
+
clearCompanyData();
|
|
2408
2534
|
return formsWithoutSearchResults;
|
|
2409
2535
|
}
|
|
2410
2536
|
default:
|
|
@@ -2427,12 +2553,22 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2427
2553
|
}
|
|
2428
2554
|
switch (selectedBusinessId) {
|
|
2429
2555
|
case "notListed":
|
|
2430
|
-
if (country ===
|
|
2556
|
+
if (country === CountryCodes.UnitedStates && isVerificationFailed()) isTinMatched.value = false;
|
|
2431
2557
|
return getRequiredForms({});
|
|
2432
2558
|
default:
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2559
|
+
switch (country) {
|
|
2560
|
+
case CountryCodes.UnitedStates:
|
|
2561
|
+
if (isVerificationFailed()) {
|
|
2562
|
+
tinMismatchModalOpen.value = true;
|
|
2563
|
+
return null;
|
|
2564
|
+
}
|
|
2565
|
+
break;
|
|
2566
|
+
default:
|
|
2567
|
+
if (isVerificationFailed()) {
|
|
2568
|
+
registrationNumberMismatchModalOpen.value = true;
|
|
2569
|
+
return null;
|
|
2570
|
+
}
|
|
2571
|
+
break;
|
|
2436
2572
|
}
|
|
2437
2573
|
companySearchStateModel.confirmCompany(multiForm, country);
|
|
2438
2574
|
return getRequiredForms({ skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm });
|
|
@@ -2606,7 +2742,7 @@ var shouldReuseRegistrationNumberAsTaxId = (country, registrationNumberType) =>
|
|
|
2606
2742
|
//#endregion
|
|
2607
2743
|
//#region src/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.ts
|
|
2608
2744
|
var mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
2609
|
-
const { companyRegistrationDocument, companyTaxDocument, companyProofOfDirectorDocument, companyConstitutionalDocument, companyProofOfSignatoryDocument, companyProofOfOwnershipDocument, basicInformation } = data;
|
|
2745
|
+
const { companyRegistrationDocument, companyTaxDocument, companyProofOfDirectorDocument, companyConstitutionalDocument, companyProofOfSignatoryDocument, companyProofOfAddressDocument, companyProofOfOwnershipDocument, basicInformation } = data;
|
|
2610
2746
|
const taxDocumentType = COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(basicInformation?.country) ? "proofOfOrganizationTaxInfo" : "vatDocument";
|
|
2611
2747
|
return (await Promise.all([
|
|
2612
2748
|
createDocumentRequest({
|
|
@@ -2651,6 +2787,13 @@ var mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
|
2651
2787
|
description: companyProofOfOwnershipDocument?.description,
|
|
2652
2788
|
page1: companyProofOfOwnershipDocument?.proofOfOwnership?.[0],
|
|
2653
2789
|
page2: companyProofOfOwnershipDocument?.proofOfOwnership?.[1]
|
|
2790
|
+
}),
|
|
2791
|
+
createDocumentRequest({
|
|
2792
|
+
entityId,
|
|
2793
|
+
entityType: "legalEntity",
|
|
2794
|
+
documentType: "proofOfAddress",
|
|
2795
|
+
description: companyProofOfAddressDocument?.description,
|
|
2796
|
+
page1: companyProofOfAddressDocument?.proofOfAddress?.[0]
|
|
2654
2797
|
})
|
|
2655
2798
|
])).filter(Boolean);
|
|
2656
2799
|
};
|
|
@@ -2691,7 +2834,7 @@ var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabl
|
|
|
2691
2834
|
entityObject.doingBusinessAs = doingBusinessAs || data.basicInformation?.legalCompanyName;
|
|
2692
2835
|
delete entityObject.doingBusinessAsAbsent;
|
|
2693
2836
|
}
|
|
2694
|
-
if (data.additionalInformation?.operationalAddressIsSame
|
|
2837
|
+
if (data.additionalInformation?.operationalAddressIsSame && entityObject.principalPlaceOfBusiness) entityObject.principalPlaceOfBusiness = entityObject.registeredAddress;
|
|
2695
2838
|
const addressLocalizations = mapJpAddressSchemaToAddressLocalizations(data.additionalInformation?.registrationAddress);
|
|
2696
2839
|
if (addressLocalizations.length > 0) entityObject.registeredAddress.localization = addressLocalizations;
|
|
2697
2840
|
if (entityObject.registeredAddress?.country && entityObject.registeredAddress?.stateOrProvince && !COUNTRIES_WITH_STATES_DATASET.includes(entityObject.registeredAddress?.country)) entityObject.registeredAddress.stateOrProvince = "";
|
|
@@ -2770,7 +2913,7 @@ var mapAdditionalInformation = ({ data, legalEntity }) => {
|
|
|
2770
2913
|
const currentCountry = entity?.registeredAddress.country;
|
|
2771
2914
|
const dbaNameFields = mapDbaName(legalEntity);
|
|
2772
2915
|
const vatNumberType = getDefaultVatNumberType(entity?.vatNumber, currentCountry);
|
|
2773
|
-
const operationalAddressIsSame = entity?.principalPlaceOfBusiness && !objectsDeepEqual(entity.principalPlaceOfBusiness, entity.registeredAddress)
|
|
2916
|
+
const operationalAddressIsSame = !(entity?.principalPlaceOfBusiness && !objectsDeepEqual(entity.principalPlaceOfBusiness, entity.registeredAddress));
|
|
2774
2917
|
if (entity?.registeredAddress.localization) data.registrationAddress = {
|
|
2775
2918
|
...data.registrationAddress,
|
|
2776
2919
|
...mapAddressLocalizationToJpAddressSchema(entity.registeredAddress.localization)
|
|
@@ -2823,7 +2966,7 @@ var mapLegalEntityToBusinessDetailsSchema = ({ legalEntity, parentEntity, taskTy
|
|
|
2823
2966
|
};
|
|
2824
2967
|
};
|
|
2825
2968
|
const orgSchema = {
|
|
2826
|
-
...formatObject(legalEntity,
|
|
2969
|
+
...formatObject(legalEntity, businessDetailsKeyMapping),
|
|
2827
2970
|
businessSelection: {},
|
|
2828
2971
|
companyRegistrationDocument,
|
|
2829
2972
|
companyTaxDocument,
|
|
@@ -2925,7 +3068,7 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
2925
3068
|
companyStructure: data.companyStructure?.entityType,
|
|
2926
3069
|
countryOfRegistration: data.basicInformation?.country,
|
|
2927
3070
|
legalEntityName: accountHolder === "theCompanyIWorkFor" ? data.basicInformation?.legalCompanyName : void 0,
|
|
2928
|
-
usedAdditionalAddress: data.additionalInformation?.operationalAddressIsSame
|
|
3071
|
+
usedAdditionalAddress: !data.additionalInformation?.operationalAddressIsSame
|
|
2929
3072
|
};
|
|
2930
3073
|
/**
|
|
2931
3074
|
* Root entity is legalEntityResponse,
|
|
@@ -3017,7 +3160,6 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
3017
3160
|
});
|
|
3018
3161
|
await invalidateRootLegalEntity();
|
|
3019
3162
|
onExternalSubmit?.(data);
|
|
3020
|
-
return true;
|
|
3021
3163
|
} catch (err) {
|
|
3022
3164
|
if (isValidationError(err)) {
|
|
3023
3165
|
const getErrors = processValidationErrors(err, TaskTypes.BUSINESS_DETAILS);
|
|
@@ -3051,7 +3193,7 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
3051
3193
|
returnType: err?.errorCode,
|
|
3052
3194
|
returnValue: err?.title || "backend"
|
|
3053
3195
|
});
|
|
3054
|
-
|
|
3196
|
+
throw err;
|
|
3055
3197
|
} finally {
|
|
3056
3198
|
setLoadingStatus("success");
|
|
3057
3199
|
}
|
|
@@ -3169,6 +3311,67 @@ var unsetCustomerSupportNumber = (customerSupport) => {
|
|
|
3169
3311
|
} : void 0;
|
|
3170
3312
|
};
|
|
3171
3313
|
//#endregion
|
|
3314
|
+
//#region src/context/handlerContext/useHandlerContext.ts
|
|
3315
|
+
function useHandlerContext() {
|
|
3316
|
+
return useContext$1(HandlerContext);
|
|
3317
|
+
}
|
|
3318
|
+
//#endregion
|
|
3319
|
+
//#region src/components/Business/modals/LegalArrangementModal.tsx
|
|
3320
|
+
function LegalArrangementModal({ onCancel }) {
|
|
3321
|
+
const { t } = useTranslation(["common", "business"]);
|
|
3322
|
+
const { onNavigateToTask } = useHandlerContext();
|
|
3323
|
+
return /* @__PURE__ */ jsx(Confirm, {
|
|
3324
|
+
title: t(($) => $["thisBusinessIsntRegisteredAsACompany"], { ns: "business" }),
|
|
3325
|
+
description: t(($) => $["ifThisIsYourBusinessGoBackAndChooseADifferentSetup"], { ns: "business" }),
|
|
3326
|
+
cancelText: t(($) => $["close"], { ns: "common" }),
|
|
3327
|
+
confirmText: t(($) => $["continue"], { ns: "common" }),
|
|
3328
|
+
onCancel,
|
|
3329
|
+
onConfirm: () => onNavigateToTask?.(TaskTypes.BUSINESS_TYPE_SELECTION),
|
|
3330
|
+
analyticsEventLabel: "legalArrangementModal"
|
|
3331
|
+
});
|
|
3332
|
+
}
|
|
3333
|
+
//#endregion
|
|
3334
|
+
//#region src/components/Business/modals/RegistrationNumberMismatchModal.tsx
|
|
3335
|
+
function RegistrationNumberMismatchModal({ companySearchStateModel, registrationNumberMismatchModalOpen, confirmDataSelection }) {
|
|
3336
|
+
const { t } = useTranslation(["common", "business"]);
|
|
3337
|
+
const { form } = useFormContext();
|
|
3338
|
+
const providedData = { registrationNumber: form.data.basicInformation?.registrationNumber };
|
|
3339
|
+
const detectedData = { registrationNumber: companySearchStateModel.selectedCompany.value?.registrationNumber };
|
|
3340
|
+
const formData = form.data.basicInformation || {};
|
|
3341
|
+
const registrationNumberType = formData.exemptedFromRegistrationNumber ? "exempted" : formData.registrationNumberType ? formData.registrationNumberType : getDefaultRegistrationNumberType(formData.registrationNumber, form.data.basicInformation?.country, form.data.companyStructure?.entityType);
|
|
3342
|
+
const { label: registrationNumberLabel } = resolveFieldMetadata(registrationNumberDefaultFieldConfig[form.data.basicInformation?.country], {
|
|
3343
|
+
registrationNumberType: registrationNumberType === "exempted" ? void 0 : registrationNumberType,
|
|
3344
|
+
state: formData.stateOrProvince || void 0
|
|
3345
|
+
}, registrationNumberDefaultFieldMetadata);
|
|
3346
|
+
return /* @__PURE__ */ jsx(DataConflictsModal, {
|
|
3347
|
+
providedData,
|
|
3348
|
+
detectedData,
|
|
3349
|
+
conflictingProperties: ["registrationNumber"],
|
|
3350
|
+
formatters: {},
|
|
3351
|
+
labels: { registrationNumber: registrationNumberLabel },
|
|
3352
|
+
title: t(($) => $["verifyYourBusinesssDetails"], { ns: "business" }),
|
|
3353
|
+
explanation: t(($) => $["selectTheOptionWithTheMostCorrectDetailsToContinue"], { ns: "business" }),
|
|
3354
|
+
onCancel: () => registrationNumberMismatchModalOpen.value = false,
|
|
3355
|
+
onContinue: confirmDataSelection,
|
|
3356
|
+
listOnly: true
|
|
3357
|
+
});
|
|
3358
|
+
}
|
|
3359
|
+
//#endregion
|
|
3360
|
+
//#region src/components/Business/modals/TinMismatchModal.tsx
|
|
3361
|
+
function TinMismatchModal({ onCancel, onConfirm }) {
|
|
3362
|
+
const { t } = useTranslation(["common", "business"]);
|
|
3363
|
+
const modalDescriptionKey = typeof useContext$1(CompanySearchStateContext).selectedCompany.value === "undefined" ? "theEinDidntMatchLegalBusinessName" : "itLooksLikeThisBusinessUsesADifferentEIN";
|
|
3364
|
+
return /* @__PURE__ */ jsx(Confirm, {
|
|
3365
|
+
title: t(($) => $["employerIdentificationNumberDoesntMatch"], { ns: "business" }),
|
|
3366
|
+
description: t(($) => $[modalDescriptionKey], { ns: "business" }),
|
|
3367
|
+
cancelText: t(($) => $["close"], { ns: "common" }),
|
|
3368
|
+
confirmText: t(($) => $["continue"], { ns: "common" }),
|
|
3369
|
+
onCancel,
|
|
3370
|
+
onConfirm,
|
|
3371
|
+
analyticsEventLabel: "tinVerificationFailureModal"
|
|
3372
|
+
});
|
|
3373
|
+
}
|
|
3374
|
+
//#endregion
|
|
3172
3375
|
//#region src/components/Business/utils/buildRequiredForms.ts
|
|
3173
3376
|
function buildRequiredForms({ config: { forms, requiredFields, optionalFields, isValid, problems, isSettingEnabled, accountHolder, legalEntityResponse }, options }) {
|
|
3174
3377
|
/**
|
|
@@ -3272,6 +3475,14 @@ var formatDataForSummary = (data, forms, t, language, isFeatureEnabled, version)
|
|
|
3272
3475
|
fileName: data[formId]?.taxDocument?.[0]?.name,
|
|
3273
3476
|
description: data[formId].description
|
|
3274
3477
|
};
|
|
3478
|
+
case "companyProofOfAddressDocument": return {
|
|
3479
|
+
fileName: data[formId]?.proofOfAddress?.[0]?.name,
|
|
3480
|
+
description: data[formId].description
|
|
3481
|
+
};
|
|
3482
|
+
case "companyConstitutionalDocument": return {
|
|
3483
|
+
fileName: data[formId]?.constitutionalDocument?.[0]?.name,
|
|
3484
|
+
description: data[formId].description
|
|
3485
|
+
};
|
|
3275
3486
|
case "companyProofOfDirectorDocument": return {
|
|
3276
3487
|
fileName: data[formId]?.proofOfDirector?.[0]?.name,
|
|
3277
3488
|
description: data[formId].description
|
|
@@ -3312,7 +3523,7 @@ var formatDataForSummary = (data, forms, t, language, isFeatureEnabled, version)
|
|
|
3312
3523
|
label: t(($) => $["registrationAddress"], { ns: "common" }),
|
|
3313
3524
|
items: registrationAddressSummaryItems
|
|
3314
3525
|
});
|
|
3315
|
-
if (data[form.formId]?.operationalAddressIsSame
|
|
3526
|
+
if (!data[form.formId]?.operationalAddressIsSame) {
|
|
3316
3527
|
const operationalAddressSummaryItems = translateAndFilterMappedSummary(formatAddress(data.additionalInformation?.operationalAddress, datasetUtils, data.basicInformation?.country, version));
|
|
3317
3528
|
if (operationalAddressSummaryItems.length > 0) summarySectionData.push({
|
|
3318
3529
|
formId: "operationalAddress",
|
|
@@ -3336,6 +3547,8 @@ var businessDetailsBase = {
|
|
|
3336
3547
|
doingBusinessAs: { rule: "requireDoingBusinessAsName" },
|
|
3337
3548
|
registrationAddress: { rule: "REQUIRED" },
|
|
3338
3549
|
operationalAddressIsSame: { rule: "REQUIRED" },
|
|
3550
|
+
legalEntityIdentifier: { rule: "requireLEI" },
|
|
3551
|
+
exemptedFromLegalEntityIdentifier: { rule: "requireLEIExemption" },
|
|
3339
3552
|
operationalAddress: { rule: "OPTIONAL" },
|
|
3340
3553
|
selectedBusinessId: { rule: "usingCompanySearch" },
|
|
3341
3554
|
stateOrProvince: { rule: "requireStateOrProvinceForCompanySearch" },
|
|
@@ -3384,7 +3597,7 @@ var businessDetailsFieldsPerScenario = {
|
|
|
3384
3597
|
...taxInformationBase,
|
|
3385
3598
|
...financialInformationBase
|
|
3386
3599
|
},
|
|
3387
|
-
L_PROOFOFADDRESS: {},
|
|
3600
|
+
L_PROOFOFADDRESS: { proofOfAddress: { rule: "REQUIRED" } },
|
|
3388
3601
|
L_REGDOC: { registrationDocument: { rule: "REQUIRED" } },
|
|
3389
3602
|
L_TAXDOC: { taxDocument: { rule: "REQUIRED" } },
|
|
3390
3603
|
L_BAFIN: { legalForm: { rule: "REQUIRED" } }
|
|
@@ -3476,9 +3689,9 @@ var applyFinancialInformation = (form, verifiedData) => {
|
|
|
3476
3689
|
const verifiedFinancialReportingDate = financialInformation.financialReportingDate;
|
|
3477
3690
|
const currentFinancialReportingDate = form.data.companyFinancialInformation?.financialReportingDate;
|
|
3478
3691
|
if (!currentFinancialReportingDate || verifiedFinancialReportingDate && verifiedFinancialReportingDate >= currentFinancialReportingDate) {
|
|
3479
|
-
if (financialInformation.numberOfEmployees != null) form.handleChangeFor("
|
|
3480
|
-
if (financialInformation.financialReportingDate) form.handleChangeFor("
|
|
3481
|
-
if (financialInformation.currency) form.handleChangeFor("
|
|
3692
|
+
if (financialInformation.numberOfEmployees != null) form.handleChangeFor("companyFinancialInformation", "numberOfEmployees")(financialInformation.numberOfEmployees);
|
|
3693
|
+
if (financialInformation.financialReportingDate) form.handleChangeFor("companyFinancialInformation", "financialReportingDate")(financialInformation.financialReportingDate);
|
|
3694
|
+
if (financialInformation.currency) form.handleChangeFor("companyFinancialInformation", "currency")(financialInformation.currency);
|
|
3482
3695
|
/**
|
|
3483
3696
|
* Determine which reported value option to select based on available data
|
|
3484
3697
|
* Priority: balanceSheetTotal > annualTurnover
|
|
@@ -3487,18 +3700,18 @@ var applyFinancialInformation = (form, verifiedData) => {
|
|
|
3487
3700
|
if (selectedReportedValueOption) {
|
|
3488
3701
|
const selectedReportedValue = selectedReportedValueOption === "balanceSheetTotal" ? financialInformation.balanceSheetTotal : financialInformation.annualTurnover;
|
|
3489
3702
|
const nonSelectedReportedValueOption = selectedReportedValueOption === "balanceSheetTotal" ? "annualTurnover" : "balanceSheetTotal";
|
|
3490
|
-
form.handleChangeFor("
|
|
3491
|
-
form.handleChangeFor(
|
|
3492
|
-
form.handleChangeFor(
|
|
3703
|
+
form.handleChangeFor("companyFinancialInformation", "reportedValueOption")(selectedReportedValueOption);
|
|
3704
|
+
form.handleChangeFor("companyFinancialInformation", selectedReportedValueOption)(selectedReportedValue);
|
|
3705
|
+
form.handleChangeFor("companyFinancialInformation", nonSelectedReportedValueOption)(void 0);
|
|
3493
3706
|
}
|
|
3494
3707
|
}
|
|
3495
3708
|
};
|
|
3496
3709
|
var applyVerifiedBusinessData = (form, country, verifiedData) => {
|
|
3497
3710
|
if (!verifiedData) return;
|
|
3498
|
-
form.handleChangeFor("
|
|
3499
|
-
if (country !== CountryCodes.UnitedStates) form.handleChangeFor("
|
|
3711
|
+
form.handleChangeFor("basicInformation", "legalCompanyName")(verifiedData.name);
|
|
3712
|
+
if (country !== CountryCodes.UnitedStates && verifiedData.registrationNumber) form.handleChangeFor("basicInformation", "registrationNumber")(verifiedData.registrationNumber);
|
|
3500
3713
|
if (form.defaultData?.additionalInformation?.registrationAddress?.address || form.defaultData?.additionalInformation?.operationalAddress?.address) return;
|
|
3501
|
-
form.handleChangeFor("
|
|
3714
|
+
form.handleChangeFor("companyStructure", "entityType")(mapOrganizationTypeToCompanyType(verifiedData.companyType));
|
|
3502
3715
|
const verifiedAddress = {
|
|
3503
3716
|
...verifiedData.registeredAddress && { registrationAddress: {
|
|
3504
3717
|
...mapAddressData(verifiedData.registeredAddress),
|
|
@@ -3509,9 +3722,9 @@ var applyVerifiedBusinessData = (form, country, verifiedData) => {
|
|
|
3509
3722
|
country
|
|
3510
3723
|
} }
|
|
3511
3724
|
};
|
|
3512
|
-
if (verifiedData.principalPlaceOfBusinessAddress) form.handleChangeFor("
|
|
3513
|
-
if (verifiedAddress.registrationAddress) form.handleChangeFor("
|
|
3514
|
-
if (verifiedAddress.operationalAddress) form.handleChangeFor("
|
|
3725
|
+
if (verifiedData.principalPlaceOfBusinessAddress) form.handleChangeFor("additionalInformation", "operationalAddressIsSame", "input")(false);
|
|
3726
|
+
if (verifiedAddress.registrationAddress) form.handleChangeFor("additionalInformation", "registrationAddress")(verifiedAddress.registrationAddress);
|
|
3727
|
+
if (verifiedAddress.operationalAddress) form.handleChangeFor("additionalInformation", "operationalAddress")(verifiedAddress.operationalAddress);
|
|
3515
3728
|
applyFinancialInformation(form, verifiedData);
|
|
3516
3729
|
};
|
|
3517
3730
|
//#endregion
|
|
@@ -3520,7 +3733,7 @@ var CompanySearchStateModel = createModel((userEvents) => {
|
|
|
3520
3733
|
const companySearchName = signal();
|
|
3521
3734
|
const selectedCompany = signal(void 0);
|
|
3522
3735
|
const verifiedBusiness = signal(void 0);
|
|
3523
|
-
const
|
|
3736
|
+
const verificationMatched = signal(void 0);
|
|
3524
3737
|
/** We cannot allow selections in a few situations, this is used to track them */
|
|
3525
3738
|
const disallowedSelectionReason = signal(void 0);
|
|
3526
3739
|
/** Only used for MixPanel tracking, not meant to be exposed */
|
|
@@ -3528,7 +3741,7 @@ var CompanySearchStateModel = createModel((userEvents) => {
|
|
|
3528
3741
|
const resetCompanySearchData = () => {
|
|
3529
3742
|
selectedCompany.value = void 0;
|
|
3530
3743
|
verifiedBusiness.value = void 0;
|
|
3531
|
-
|
|
3744
|
+
verificationMatched.value = void 0;
|
|
3532
3745
|
disallowedSelectionReason.value = void 0;
|
|
3533
3746
|
selectedCompanyIdx.value = -1;
|
|
3534
3747
|
};
|
|
@@ -3536,21 +3749,21 @@ var CompanySearchStateModel = createModel((userEvents) => {
|
|
|
3536
3749
|
companySearchName,
|
|
3537
3750
|
selectedCompany,
|
|
3538
3751
|
verifiedBusiness,
|
|
3539
|
-
|
|
3752
|
+
verificationMatched,
|
|
3540
3753
|
disallowedSelectionReason,
|
|
3541
3754
|
resetCompanySearchData,
|
|
3542
3755
|
disallowSelection: (reason) => {
|
|
3543
3756
|
resetCompanySearchData();
|
|
3544
3757
|
disallowedSelectionReason.value = reason;
|
|
3545
3758
|
},
|
|
3546
|
-
|
|
3759
|
+
setVerificationMatched: (value) => {
|
|
3547
3760
|
resetCompanySearchData();
|
|
3548
|
-
|
|
3761
|
+
verificationMatched.value = value;
|
|
3549
3762
|
},
|
|
3550
|
-
selectCompany: (selected, idx) => {
|
|
3763
|
+
selectCompany: (selected, idx, country) => {
|
|
3551
3764
|
resetCompanySearchData();
|
|
3552
3765
|
selectedCompany.value = selected;
|
|
3553
|
-
|
|
3766
|
+
verificationMatched.value = country === CountryCodes.UnitedStates ? selected.tinMatched : selected.registrationNumberMatched;
|
|
3554
3767
|
/** `-1` indicates auto-selection, not a manual user interaction */
|
|
3555
3768
|
if (idx > -1) {
|
|
3556
3769
|
selectedCompanyIdx.value = idx;
|
|
@@ -3626,6 +3839,7 @@ function additionalInformationValidators({ country, vatNumberType }) {
|
|
|
3626
3839
|
return {
|
|
3627
3840
|
hasDoingBusinessAs: doingBusinessAsAbsentFieldMetadata.validators,
|
|
3628
3841
|
doingBusinessAs: doingBusinessAsFieldMetadata.validators,
|
|
3842
|
+
legalEntityIdentifier: legalEntityIdentifierFieldMetadata.validators,
|
|
3629
3843
|
vatNumber: resolveFieldMetadata(defaultFieldConfig$1[country], { vatNumberType }, defaultFieldMetadata$1).validators,
|
|
3630
3844
|
vatAbsenceReason: vatAbsenceReasonMetadata.validators,
|
|
3631
3845
|
eInvoicingCode: eInvoicingCodeFieldMetadata.validators,
|
|
@@ -3643,10 +3857,11 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3643
3857
|
const { t, i18n } = useTranslation(["common", "business"]);
|
|
3644
3858
|
const userEvents = useAnalyticsContext();
|
|
3645
3859
|
const { isFeatureEnabled } = useToggleContext();
|
|
3646
|
-
const isBusinessDetailsModalEnabled =
|
|
3860
|
+
const isBusinessDetailsModalEnabled = taskType === TaskTypes.BUSINESS_DETAILS;
|
|
3647
3861
|
const { isSettingEnabled } = useSettingsContext();
|
|
3648
3862
|
const { accountHolder } = useAccountHolder();
|
|
3649
3863
|
const logger = createLogger();
|
|
3864
|
+
const { mutate: clearCompanyData } = useClearCompanyData();
|
|
3650
3865
|
/**
|
|
3651
3866
|
* Analytics
|
|
3652
3867
|
*/
|
|
@@ -3672,6 +3887,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3672
3887
|
const companySearchStateModel = useModel(() => new CompanySearchStateModel(userEvents));
|
|
3673
3888
|
const tinMismatchModalOpen = useSignal(false);
|
|
3674
3889
|
const legalArrangementModalOpen = useSignal(false);
|
|
3890
|
+
const registrationNumberMismatchModalOpen = useSignal(false);
|
|
3675
3891
|
const defaultForms = useMemo$1(() => getForms(country), [country]);
|
|
3676
3892
|
const { data: matchingScenario } = useScenarios(country, LegalEntityTypes.ORGANIZATION);
|
|
3677
3893
|
useEffect$1(() => {
|
|
@@ -3833,7 +4049,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3833
4049
|
setPrevCountry(multiForm.data.basicInformation.country);
|
|
3834
4050
|
setTrustedFields(void 0);
|
|
3835
4051
|
companySearchStateModel.resetCompanySearchData();
|
|
3836
|
-
multiForm.handleChangeFor("
|
|
4052
|
+
multiForm.handleChangeFor("companyStructure", "entityType")(void 0);
|
|
3837
4053
|
}
|
|
3838
4054
|
/**
|
|
3839
4055
|
* Infer the company structure based on the registration number type and tax ID number type
|
|
@@ -3870,7 +4086,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3870
4086
|
const applyInferredCompanyStructure = () => {
|
|
3871
4087
|
if (!inferredCompanyStructure) return;
|
|
3872
4088
|
if (multiForm.data.companyStructure?.entityType === inferredCompanyStructure) return;
|
|
3873
|
-
multiForm.handleChangeFor("
|
|
4089
|
+
multiForm.handleChangeFor("companyStructure", "entityType")(inferredCompanyStructure);
|
|
3874
4090
|
};
|
|
3875
4091
|
const getRequiredForms = useCallback$1((options) => {
|
|
3876
4092
|
return buildRequiredForms({
|
|
@@ -3930,7 +4146,8 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3930
4146
|
forms,
|
|
3931
4147
|
onSubmit: useCallback$1(async () => {
|
|
3932
4148
|
try {
|
|
3933
|
-
|
|
4149
|
+
await submit();
|
|
4150
|
+
setIsAddingBusinessDetails(false);
|
|
3934
4151
|
} catch (error) {
|
|
3935
4152
|
logger.error(error);
|
|
3936
4153
|
} finally {
|
|
@@ -3951,7 +4168,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3951
4168
|
*/
|
|
3952
4169
|
skipBusinessSelection.value = activeForm.formId !== "businessSelection";
|
|
3953
4170
|
companySearchStateModel.confirmCompany(multiForm, country);
|
|
3954
|
-
if (companySearchStateModel.
|
|
4171
|
+
if (country === CountryCodes.UnitedStates && companySearchStateModel.verificationMatched.value === false) isTinMatched.value = false;
|
|
3955
4172
|
handleNextClick(getRequiredForms({
|
|
3956
4173
|
skipBusinessSelection: skipBusinessSelection.value,
|
|
3957
4174
|
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm
|
|
@@ -3972,7 +4189,8 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3972
4189
|
setLoadingStatus,
|
|
3973
4190
|
isTinMatched,
|
|
3974
4191
|
tinMismatchModalOpen,
|
|
3975
|
-
legalArrangementModalOpen
|
|
4192
|
+
legalArrangementModalOpen,
|
|
4193
|
+
registrationNumberMismatchModalOpen
|
|
3976
4194
|
});
|
|
3977
4195
|
const overrideNextClick = async () => {
|
|
3978
4196
|
if (!activeForm.isValid) return handleNextClick();
|
|
@@ -4028,6 +4246,29 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4028
4246
|
const allVerificationErrors = {};
|
|
4029
4247
|
for (const form in problems.verificationErrors) for (const verificationError in problems.verificationErrors[form]) allVerificationErrors[verificationError] = problems.verificationErrors[form][verificationError];
|
|
4030
4248
|
const shouldAutoOpenFormForErrors = (Object.keys(allValidationErrors).length > 0 || Object.keys(allVerificationErrors).length > 0) && !hasEnteredFormFlowBefore;
|
|
4249
|
+
const shouldRenderFormFlow = !isBusinessDetailsModalEnabled || isAddingBusinessDetails || shouldAutoOpenFormForErrors;
|
|
4250
|
+
const confirmDataSelection = (resolved) => {
|
|
4251
|
+
const userProvided = resolved.registrationNumber !== companySearchStateModel.selectedCompany.value?.registrationNumber;
|
|
4252
|
+
/**
|
|
4253
|
+
* If the user is on 'Business Selection', we don't want to remove the page out from under them as
|
|
4254
|
+
* nav can get a bit weird when doing so. Instead, we'll only remove it from the flow if the user is
|
|
4255
|
+
* still on 'Basic Information', the only other place this modal is accessible from.
|
|
4256
|
+
*/
|
|
4257
|
+
skipBusinessSelection.value = activeForm.formId !== "businessSelection";
|
|
4258
|
+
if (userProvided) {
|
|
4259
|
+
registrationNumberMismatchModalOpen.value = false;
|
|
4260
|
+
const currentForms = getRequiredForms({ skipBusinessSelection: skipBusinessSelection.peek() });
|
|
4261
|
+
clearCompanyData();
|
|
4262
|
+
handleNextClick(currentForms);
|
|
4263
|
+
} else {
|
|
4264
|
+
companySearchStateModel.confirmCompany(multiForm, country);
|
|
4265
|
+
registrationNumberMismatchModalOpen.value = false;
|
|
4266
|
+
handleNextClick(getRequiredForms({
|
|
4267
|
+
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm,
|
|
4268
|
+
skipBusinessSelection: skipBusinessSelection.peek()
|
|
4269
|
+
}));
|
|
4270
|
+
}
|
|
4271
|
+
};
|
|
4031
4272
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [isBusinessDetailsModalEnabled && /* @__PURE__ */ jsx(BusinessDetailsGettingStarted, {
|
|
4032
4273
|
openModal: () => {
|
|
4033
4274
|
setIsAddingBusinessDetails(true);
|
|
@@ -4036,7 +4277,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4036
4277
|
handleCancelClick: () => handleHomeClick?.(),
|
|
4037
4278
|
data: defaultDataSummarySections,
|
|
4038
4279
|
t
|
|
4039
|
-
}),
|
|
4280
|
+
}), shouldRenderFormFlow && /* @__PURE__ */ jsx(FormContextProvider, {
|
|
4040
4281
|
form: multiForm,
|
|
4041
4282
|
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
4042
4283
|
summaryComponent: /* @__PURE__ */ jsxs(NewSummary, {
|
|
@@ -4086,38 +4327,20 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4086
4327
|
/* @__PURE__ */ jsx(Show, {
|
|
4087
4328
|
when: legalArrangementModalOpen,
|
|
4088
4329
|
children: /* @__PURE__ */ jsx(LegalArrangementModal, { onCancel: () => legalArrangementModalOpen.value = false })
|
|
4330
|
+
}),
|
|
4331
|
+
/* @__PURE__ */ jsx(Show, {
|
|
4332
|
+
when: registrationNumberMismatchModalOpen,
|
|
4333
|
+
children: /* @__PURE__ */ jsx(RegistrationNumberMismatchModal, {
|
|
4334
|
+
companySearchStateModel,
|
|
4335
|
+
registrationNumberMismatchModalOpen,
|
|
4336
|
+
confirmDataSelection
|
|
4337
|
+
})
|
|
4089
4338
|
})
|
|
4090
4339
|
]
|
|
4091
4340
|
})
|
|
4092
4341
|
})
|
|
4093
4342
|
})] });
|
|
4094
4343
|
}
|
|
4095
|
-
function TinMismatchModal({ onCancel, onConfirm }) {
|
|
4096
|
-
const { t } = useTranslation(["common", "business"]);
|
|
4097
|
-
const modalDescriptionKey = typeof useContext$1(CompanySearchStateContext).selectedCompany.value === "undefined" ? "theEinDidntMatchLegalBusinessName" : "itLooksLikeThisBusinessUsesADifferentEIN";
|
|
4098
|
-
return /* @__PURE__ */ jsx(Confirm, {
|
|
4099
|
-
title: t(($) => $["employerIdentificationNumberDoesntMatch"], { ns: "business" }),
|
|
4100
|
-
description: t(($) => $[modalDescriptionKey], { ns: "business" }),
|
|
4101
|
-
cancelText: t(($) => $["close"], { ns: "common" }),
|
|
4102
|
-
confirmText: t(($) => $["continue"], { ns: "common" }),
|
|
4103
|
-
onCancel,
|
|
4104
|
-
onConfirm,
|
|
4105
|
-
analyticsEventLabel: "tinVerificationFailureModal"
|
|
4106
|
-
});
|
|
4107
|
-
}
|
|
4108
|
-
function LegalArrangementModal({ onCancel }) {
|
|
4109
|
-
const { t } = useTranslation(["common", "business"]);
|
|
4110
|
-
const { onNavigateToTask } = useHandlerContext();
|
|
4111
|
-
return /* @__PURE__ */ jsx(Confirm, {
|
|
4112
|
-
title: t(($) => $["thisBusinessIsntRegisteredAsACompany"], { ns: "business" }),
|
|
4113
|
-
description: t(($) => $["ifThisIsYourBusinessGoBackAndChooseADifferentSetup"], { ns: "business" }),
|
|
4114
|
-
cancelText: t(($) => $["close"], { ns: "common" }),
|
|
4115
|
-
confirmText: t(($) => $["continue"], { ns: "common" }),
|
|
4116
|
-
onCancel,
|
|
4117
|
-
onConfirm: () => onNavigateToTask?.(TaskTypes.BUSINESS_TYPE_SELECTION),
|
|
4118
|
-
analyticsEventLabel: "legalArrangementModal"
|
|
4119
|
-
});
|
|
4120
|
-
}
|
|
4121
4344
|
var AdditionalInformation_module_default = {
|
|
4122
4345
|
"additional-information-content": "_additional-information-content_1oltc_1",
|
|
4123
4346
|
additionalInformationContent: "_additional-information-content_1oltc_1",
|
|
@@ -4202,11 +4425,12 @@ function VerifiedBusinessCard({ verifiedBusiness, verifiedAddress }) {
|
|
|
4202
4425
|
}
|
|
4203
4426
|
//#endregion
|
|
4204
4427
|
//#region src/components/Business/forms/AdditionalInformation/AdditionalInformation.tsx
|
|
4205
|
-
var LazyJpAddress = lazy(async () => (await import("./JpAddress-
|
|
4428
|
+
var LazyJpAddress = lazy(async () => (await import("./JpAddress-Bl34PpJf.js")).JpAddress);
|
|
4206
4429
|
var ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
|
|
4207
4430
|
var ADDITIONAL_INFORMATION_FIELDS = [
|
|
4208
4431
|
...DBA_NAME_FIELD,
|
|
4209
4432
|
...VAT_NUMBER_FIELD,
|
|
4433
|
+
...LEGAL_ENTITY_IDENTIFIER_FIELD,
|
|
4210
4434
|
...INDUSTRY_CODE_FIELD,
|
|
4211
4435
|
...DATE_OF_INCORPORATION_FIELD,
|
|
4212
4436
|
...STOCK_EXCHANGE_MIC_FIELD,
|
|
@@ -4256,28 +4480,28 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4256
4480
|
]);
|
|
4257
4481
|
const registrationAddressValid = useRef$1(false);
|
|
4258
4482
|
const operationalAddressValid = useRef$1(false);
|
|
4259
|
-
if (form.valid.additionalInformation?.registrationAddress !== registrationAddressValid.current) form.setValid("registrationAddress", registrationAddressValid.current
|
|
4260
|
-
if (form.data.additionalInformation?.operationalAddressIsSame
|
|
4261
|
-
const handleChangeFor = useCallback$1((fieldName, mode) => form.handleChangeFor(
|
|
4483
|
+
if (form.valid.additionalInformation?.registrationAddress !== registrationAddressValid.current) form.setValid("additionalInformation", "registrationAddress", registrationAddressValid.current);
|
|
4484
|
+
if (!form.data.additionalInformation?.operationalAddressIsSame && form.valid.additionalInformation?.operationalAddress !== operationalAddressValid.current) form.setValid("additionalInformation", "operationalAddress", operationalAddressValid.current);
|
|
4485
|
+
const handleChangeFor = useCallback$1((fieldName, mode) => form.handleChangeFor("additionalInformation", fieldName, mode), [form]);
|
|
4262
4486
|
const handleRegistrationAddressChange = (state) => {
|
|
4263
4487
|
handleChangeFor("registrationAddress")(state.data);
|
|
4264
|
-
form.setValid("registrationAddress", Boolean(state.isValid)
|
|
4488
|
+
form.setValid("additionalInformation", "registrationAddress", Boolean(state.isValid));
|
|
4265
4489
|
registrationAddressValid.current = Boolean(state.isValid);
|
|
4266
4490
|
};
|
|
4267
4491
|
const handleOperationalAddressChange = (state) => {
|
|
4268
4492
|
handleChangeFor("operationalAddress")(state.data);
|
|
4269
|
-
form.setValid("operationalAddress", Boolean(state.isValid)
|
|
4493
|
+
form.setValid("additionalInformation", "operationalAddress", Boolean(state.isValid));
|
|
4270
4494
|
operationalAddressValid.current = Boolean(state.isValid);
|
|
4271
4495
|
};
|
|
4272
4496
|
const handleOperationalAddressIsSameChange = useCallback$1((isChecked) => {
|
|
4273
4497
|
if (isChecked) {
|
|
4274
|
-
handleChangeFor("operationalAddressIsSame")(
|
|
4275
|
-
form.setValid("operationalAddress", true
|
|
4276
|
-
} else handleChangeFor("operationalAddressIsSame")(
|
|
4498
|
+
handleChangeFor("operationalAddressIsSame")(true);
|
|
4499
|
+
form.setValid("additionalInformation", "operationalAddress", true);
|
|
4500
|
+
} else handleChangeFor("operationalAddressIsSame")(false);
|
|
4277
4501
|
}, [form, handleChangeFor]);
|
|
4278
4502
|
if (form.data.additionalInformation?.operationalAddressIsSame === null) handleOperationalAddressIsSameChange(true);
|
|
4279
4503
|
useEffect$1(() => {
|
|
4280
|
-
if (mustProvideOperationalAddress && form.data.additionalInformation?.operationalAddressIsSame
|
|
4504
|
+
if (mustProvideOperationalAddress && form.data.additionalInformation?.operationalAddressIsSame) handleOperationalAddressIsSameChange(false);
|
|
4281
4505
|
}, [
|
|
4282
4506
|
handleOperationalAddressIsSameChange,
|
|
4283
4507
|
mustProvideOperationalAddress,
|
|
@@ -4413,6 +4637,13 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4413
4637
|
canExempt: showField(["exemptedFromVat"]),
|
|
4414
4638
|
shouldValidate
|
|
4415
4639
|
}),
|
|
4640
|
+
showField(LEGAL_ENTITY_IDENTIFIER_FIELD) && /* @__PURE__ */ jsx(LegalEntityIdentifierField, {
|
|
4641
|
+
data: formUtils.getFieldData(form.data.additionalInformation ?? {}, LEGAL_ENTITY_IDENTIFIER_FIELD),
|
|
4642
|
+
valid: formUtils.getFieldValid(form.valid.additionalInformation ?? {}, LEGAL_ENTITY_IDENTIFIER_FIELD),
|
|
4643
|
+
errors: formUtils.getFieldErrors(form.errors.additionalInformation ?? {}, fieldValidationErrors, LEGAL_ENTITY_IDENTIFIER_FIELD),
|
|
4644
|
+
handleChangeFor,
|
|
4645
|
+
shouldValidate
|
|
4646
|
+
}),
|
|
4416
4647
|
formUtils.isRequiredField("eInvoicingCode", false) && /* @__PURE__ */ jsx(EInvoicingCodeField, {
|
|
4417
4648
|
data: formUtils.getFieldData(form.data.additionalInformation ?? {}, EINVOICING_CODE_FIELD),
|
|
4418
4649
|
valid: formUtils.getFieldValid(form.valid.additionalInformation ?? {}, EINVOICING_CODE_FIELD),
|
|
@@ -4549,17 +4780,17 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4549
4780
|
"aria-invalid": !form.valid.additionalInformation?.operationalAddressIsSame,
|
|
4550
4781
|
name: "operationalAddressIsSame",
|
|
4551
4782
|
label: formUtils.getLabel("sameAsRegisteredAddress"),
|
|
4552
|
-
checked: form.data.additionalInformation?.operationalAddressIsSame
|
|
4783
|
+
checked: !!form.data.additionalInformation?.operationalAddressIsSame,
|
|
4553
4784
|
onChange: handleOperationalAddressIsSameChange
|
|
4554
4785
|
})
|
|
4555
4786
|
}),
|
|
4556
|
-
form.data.additionalInformation?.operationalAddressIsSame
|
|
4787
|
+
!form.data.additionalInformation?.operationalAddressIsSame && (showJapanLocalization ? /* @__PURE__ */ jsx(Suspense, {
|
|
4557
4788
|
fallback: /* @__PURE__ */ jsx(Loader, {}),
|
|
4558
4789
|
children: /* @__PURE__ */ jsx(LazyJpAddress, {
|
|
4559
4790
|
id: ADDITIONAL_INFORMATION_FORM_ID,
|
|
4560
4791
|
addressType: "operationalAddress",
|
|
4561
4792
|
data: {
|
|
4562
|
-
...form.data.additionalInformation
|
|
4793
|
+
...form.data.additionalInformation?.operationalAddress,
|
|
4563
4794
|
country
|
|
4564
4795
|
},
|
|
4565
4796
|
shouldValidate,
|
|
@@ -4636,6 +4867,11 @@ var staticBusinessDetailsForms = {
|
|
|
4636
4867
|
formName: "proofOfSignatoryFormName",
|
|
4637
4868
|
fields: ["proofOfSignatory"]
|
|
4638
4869
|
},
|
|
4870
|
+
companyProofOfAddressDocument: {
|
|
4871
|
+
formId: "companyProofOfAddressDocument",
|
|
4872
|
+
formName: "proofOfAddressFormName",
|
|
4873
|
+
fields: ["proofOfAddress"]
|
|
4874
|
+
},
|
|
4639
4875
|
companyProofOfOwnershipDocument: {
|
|
4640
4876
|
formId: "companyProofOfOwnershipDocument",
|
|
4641
4877
|
formName: "proofOfOwnershipFormName",
|
|
@@ -4656,6 +4892,7 @@ var getForms = (country) => ({
|
|
|
4656
4892
|
companyTaxDocument: staticBusinessDetailsForms.companyTaxDocument,
|
|
4657
4893
|
companyProofOfDirectorDocument: staticBusinessDetailsForms.companyProofOfDirectorDocument,
|
|
4658
4894
|
companyProofOfSignatoryDocument: staticBusinessDetailsForms.companyProofOfSignatoryDocument,
|
|
4895
|
+
companyProofOfAddressDocument: staticBusinessDetailsForms.companyProofOfAddressDocument,
|
|
4659
4896
|
companyProofOfOwnershipDocument: staticBusinessDetailsForms.companyProofOfOwnershipDocument,
|
|
4660
4897
|
companyFinancialInformation: {
|
|
4661
4898
|
formId: "companyFinancialInformation",
|
|
@@ -4669,6 +4906,7 @@ var documentFormsIds = [
|
|
|
4669
4906
|
"companyTaxDocument",
|
|
4670
4907
|
"companyProofOfDirectorDocument",
|
|
4671
4908
|
"companyProofOfSignatoryDocument",
|
|
4909
|
+
"companyProofOfAddressDocument",
|
|
4672
4910
|
"companyConstitutionalDocument",
|
|
4673
4911
|
"companyProofOfOwnershipDocument"
|
|
4674
4912
|
];
|