@adyen/kyc-components 4.15.0-beta.1 → 4.16.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-D9RkOGLa.js → AcceptTermsOfServiceComponent-sWwPrHpD.js} +56 -56
- package/dist/{AccountSetupRejected-DXrxeaTA.js → AccountSetupRejected-h8i4srXf.js} +1 -1
- package/dist/{AdaptiveWorkflow-DkyHp3I-.js → AdaptiveWorkflow-CVnJ9NZw.js} +17 -19
- package/dist/{AdaptiveWorkflowComponent-C0s3XA9b.js → AdaptiveWorkflowComponent-DlLfVvPW.js} +28 -28
- package/dist/{Address-ByNnIfrX.js → Address-BAE2QQ-5.js} +5 -5
- package/dist/{BusinessFinancingDropin-BI9qbTfa.js → BusinessFinancingDropin-D2MqJxaF.js} +24 -24
- package/dist/{BusinessFinancingPage-rrQUrZBL.js → BusinessFinancingPage-DpyatG4F.js} +28 -28
- package/dist/{BusinessTypeSelectionPage-DVlhdBOT.js → BusinessTypeSelectionPage-bkRgRUiw.js} +6 -6
- package/dist/{CompanyRegistrationNumberTypeSelector-B72MvtCt.js → CompanyRegistrationNumberTypeSelector-CFqyuzoH.js} +14 -19
- package/dist/{ContactDetails-9JGt7Lx0.js → ContactDetails-Cqos4P-U.js} +3 -3
- package/dist/{ContextGuidance-CaskjnLp.js → ContextGuidance-DLErBW62.js} +1 -1
- package/dist/{CountryField-D3T5pszb.js → CountryField-DSI1tYm2.js} +2 -2
- package/dist/{Currency-C9smd9hj.js → Currency-Bfjuo_qU.js} +2 -2
- package/dist/{CustomerSupport-CxnPz_MZ.js → CustomerSupport-ry1TO7UY.js} +10 -10
- package/dist/{DebugModal-CmyRTcuw.js → DebugModal-BCYwesU5.js} +3 -3
- package/dist/{DecisionMakerDetails-Cur05tOk.js → DecisionMakerDetails-BnlhqSiD.js} +3 -3
- package/dist/{DecisionMakerDetailsPage-Dqkcvgs5.js → DecisionMakerDetailsPage-DzXL7rI0.js} +4 -4
- package/dist/{DecisionMakers-oSWUwKsE.js → DecisionMakers-DKaoWAJE.js} +8 -8
- package/dist/{Dropzone-B5f298Ah.js → Dropzone-JmVSKeOB.js} +2 -2
- package/dist/{EntityAssociation-Bfb_h3mX.js → EntityAssociation-DMre5SqE.js} +1 -1
- package/dist/{ErrorPanel-CbTDpmpi.js → ErrorPanel-B5GuGh_o.js} +2 -2
- package/dist/{IndividualDropin-DypupM2F.js → IndividualDropin-DHDR28cv.js} +32 -32
- package/dist/{Introduction-CvXA6-RL.js → Introduction-BiWv1ZBC.js} +2 -2
- package/dist/{InvitedDecisionMakerComponent-D5gat3zM.js → InvitedDecisionMakerComponent-CQ8wt0IK.js} +29 -29
- package/dist/{JpAddress-C38zRvZE.js → JpAddress-BtLxuxr9.js} +4 -4
- package/dist/{LegalCompanyNameField-BxLhDFZ4.js → LegalCompanyNameField-B9Cwuyju.js} +1 -1
- package/dist/{LegalRepresentativeDetailsPage-B-MsZPf-.js → LegalRepresentativeDetailsPage-2iKaMqsA.js} +4 -4
- package/dist/{MaskedInput-CPYBS2wP.js → MaskedInput-VtgquqE0.js} +8 -5
- package/dist/{MaybeModal-95T3hqPt.js → MaybeModal-BVaPzNUU.js} +1 -1
- package/dist/{NewSummary-Cgebw71K.js → NewSummary-CaV_Faij.js} +1 -1
- package/dist/{PayoutDetailsDropinMultiForm-BvJmm0SM.js → PayoutDetailsDropinMultiForm-DTNxQTj8.js} +50 -38
- package/dist/{PayoutDetailsPage-CmUyWu_t.js → PayoutDetailsPage-B_umtanU.js} +6 -6
- package/dist/{Review-B1T5E3pI.js → Review-9LTJVH2e.js} +2 -2
- package/dist/{RootBusinessDetailsPage-CB44DIGg.js → RootBusinessDetailsPage-jLEoZd66.js} +7 -8
- package/dist/{RootBusinessLinesPage-BdxPHbIJ.js → RootBusinessLinesPage-DZ0u4YRf.js} +15 -15
- package/dist/{RootIndividualDetailsPage-BcM3xHZ8.js → RootIndividualDetailsPage-BzC1-cyB.js} +4 -4
- package/dist/{Select-CvIMIYjl.js → Select-CS2E69CJ.js} +4 -2
- package/dist/{SignPCIComponent-o5iWDa9u.js → SignPCIComponent-BAemgvnk.js} +56 -56
- package/dist/{SingpassSelection-CRFf-u1d.js → SingpassSelection-msWdDNgM.js} +1 -1
- package/dist/{SoleProprietorshipPage-DFEn0Ewu.js → SoleProprietorshipPage-DMGE-cEd.js} +6 -6
- package/dist/{SourceOfFundsPage-BCVelN0X.js → SourceOfFundsPage-DyczSaZH.js} +18 -21
- package/dist/{Summary-8V5EZBd4.js → Summary-CunMdpUq.js} +2 -2
- package/dist/{TaskListItem-C3XFLrVq.js → TaskListItem-DDKGB2H5.js} +3 -3
- package/dist/{TaxInformationField-7C6iLtFs.js → TaxInformationField-BKnequKz.js} +11 -13
- package/dist/{TaxReportingDropin-CW0-CVJR.js → TaxReportingDropin-Ca1wEDdY.js} +10 -10
- package/dist/{TrustDetailsPage-Cw2OH_cP.js → TrustDetailsPage-DCTp6-QO.js} +27 -27
- package/dist/{TrustMemberCompanyPage-XaVxyqQT.js → TrustMemberCompanyPage-CHtXG88-.js} +7 -7
- package/dist/{TrustMemberIndividualPage-DQd5nIl2.js → TrustMemberIndividualPage-CgnPbD6F.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-BJhaU0Ju.js → TrustMemberRoleAndTypePage-Bey9Tqzz.js} +10 -10
- package/dist/{TrustMembersOverview-CsdYkKZt.js → TrustMembersOverview-DuWWJMGv.js} +6 -6
- package/dist/{UnincorporatedPartnershipIndividualPage-CeDtx9P7.js → UnincorporatedPartnershipIndividualPage-DFFiL1br.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-B4AUh2uw.js → UnincorporatedPartnershipMemberCompanyPage-BWBVhegh.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CaQgmfeu.js → UnincorporatedPartnershipMemberRoleAndTypePage-C5DV96eC.js} +2 -2
- package/dist/{UnincorporatedPartnershipMembersOverview-zm15XNm0.js → UnincorporatedPartnershipMembersOverview-B5xNG_92.js} +3 -3
- package/dist/{VerificationErrorAlert-D76yRVAZ.js → VerificationErrorAlert-DBHKdlD8.js} +2 -2
- package/dist/{accountHolderUtils-DnEhXSHF.js → accountHolderUtils-DuVrEKUh.js} +1 -1
- package/dist/adyen-business-financing.js +29 -29
- package/dist/adyen-individual-configuration.js +30 -30
- package/dist/adyen-individual-status.js +27 -27
- package/dist/adyen-invited-decision-maker.js +2 -2
- package/dist/adyen-onboarding.js +67 -66
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +26 -26
- package/dist/adyen-transfer-instrument-configuration.js +29 -29
- package/dist/adyen-transfer-instrument-management.js +32 -32
- package/dist/adyen-verification-status.js +1 -1
- package/dist/{bg-BG-KjJy4fjZ.js → bg-BG-BKPnSg5G.js} +3 -1
- package/dist/bg-BG-BcmC41vE.js +7 -0
- package/dist/{constants-DvK9RVMD.js → constants-BMNUJ3-d.js} +2 -2
- 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-B4SH4SJV.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-CXzgYL6R.js → getProblemsForEntity-CCpr4UGm.js} +1 -1
- package/dist/{hr-HR-DlIGxvkT.js → hr-HR-CII1fh9u.js} +3 -1
- package/dist/hr-HR-D0zfmZK6.js +7 -0
- package/dist/{hu-HU-DicR116D.js → hu-HU-CAlsW_OP.js} +3 -1
- package/dist/hu-HU-CL021irk.js +7 -0
- package/dist/{invalidateRootLegalEntity-DfF59VHE.js → invalidateRootLegalEntity-DUOCxqZR.js} +1 -1
- 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/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/{mapLegalEntityToIndividualSchema-BUIjjkrb.js → mapLegalEntityToIndividualSchema-CADQNrLO.js} +1 -1
- package/dist/{mapTransferInstrumentToPayoutAccount-DZMqLmU8.js → mapTransferInstrumentToPayoutAccount-CvaJH9VL.js} +1 -1
- 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-Datp62BM.js → omitObscuredFieldsIfUnchanged-Ck2si051.js} +1 -1
- package/dist/{patternValidators-Dg_UvQs9.js → patternValidators-Bza9mezL.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-n3ecaPQ8.js → process-field-configurations-uFcwmzTd.js} +1 -1
- package/dist/{processCapabilities-hLmRus8U.js → processCapabilities-fPuXc9gL.js} +11 -11
- 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-BO-j8Bwm.js → resolveEnvironment-l2TGYFxw.js} +34 -38
- package/dist/{ro-RO-DJjle7nF.js → ro-RO-BfVd2Ps9.js} +3 -1
- package/dist/ro-RO-Cpv5pKod.js +7 -0
- 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/sv-SE-BoXCPhGb.js +7 -0
- package/dist/{sv-SE-DT9jLSs2.js → sv-SE-BuzHXTQj.js} +3 -1
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +1 -2
- package/dist/types/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +7 -4
- package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +1 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +23 -7
- 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/useSubmitBusinessDetails.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -2
- package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +1 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +0 -1
- 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/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +0 -1
- 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 +2 -6
- 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/{useBusinessDetailsData-DBmj3nNJ.js → useBusinessDetailsData-C3mDLYw0.js} +273 -210
- package/dist/{useCanSeeIntroduction-Cj5FkQFO.js → useCanSeeIntroduction-87OxZXI3.js} +1 -1
- package/dist/{useDataMissingRemediations-CrKtd_Fd.js → useDataMissingRemediations-BtSioM7F.js} +1 -1
- package/dist/{useForm-CANEmbG2.js → useForm-BcvMNl0D.js} +1 -1
- package/dist/{useFormContext-D9UmS1Tj.js → useFormContext-1h2DlUxb.js} +3 -3
- package/dist/{useMultiForm-Ch5yvl-v.js → useMultiForm-C0Mz4Mm6.js} +12 -12
- package/dist/{useNavigate-D4SB__Ik.js → useNavigate-CVT5ailE.js} +30 -30
- package/dist/{useTrustMembers-BOfT11Kj.js → useTrustMembers-CNy3GIeW.js} +1 -1
- package/dist/{useUpdateLegalEntity-De_ohp9A.js → useUpdateLegalEntity-GCDgDdeE.js} +1 -1
- package/dist/{utils-X8YwekZF.js → utils-BAgsI56z.js} +2 -2
- package/dist/{utils-ztjLNfgn.js → utils-Dizf4Xxc.js} +13 -18
- package/dist/{ConstitutionalDocument-FDgHtu1v.js → utils-uuBaXnz-.js} +135 -137
- package/dist/{validate-7X0zga5Q.js → validate-cXmMxcOs.js} +1 -1
- package/dist/{validateExtractionResult-CwehLDDP.js → validateExtractionResult-Bk2WRbLs.js} +3 -3
- package/dist/{validationError-DqjDv5Q-.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,9 +1,9 @@
|
|
|
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] = "84fca8d7-2add-41ab-9b71-d3923cbf5b45", e._sentryDebugIdIdentifier = "sentry-dbid-84fca8d7-2add-41ab-9b71-d3923cbf5b45");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { i as Typography, o as createLogger, r as useTranslation } from "./translation-BR3rLb4m.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-
|
|
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-l2TGYFxw.js";
|
|
7
7
|
import { r as Loader, t as Button } from "./Button-3qGOI53m.js";
|
|
8
8
|
import { r as httpPost, s as useApiContext } from "./http-DeQp0G69.js";
|
|
9
9
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-BXk2tzGe.js";
|
|
@@ -14,7 +14,7 @@ import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
|
14
14
|
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-DTHF8B9j.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";
|
|
@@ -22,35 +22,35 @@ import { t as useBusinessLines } from "./useBusinessLines-B2iCcDej.js";
|
|
|
22
22
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
23
23
|
import { i as useAnalyticsContext, n as ModalContent, r as KEYBOARD_KEYS, t as Modal } from "./Modal-C__-5LgI.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-DUOCxqZR.js";
|
|
26
26
|
import { c as CompanyTypesValues } from "./bafinUtils-BKq-s1Ka.js";
|
|
27
27
|
import { r as LoaderWrapper } from "./utils-BtyrxTzp.js";
|
|
28
28
|
import { t as Confirm } from "./Confirm-6QfuYcA7.js";
|
|
29
29
|
import { t as HandlerContext } from "./HandlerContext-DeMa68z0.js";
|
|
30
30
|
import { t as useScenarios } from "./useScenarios-BRGMIufX.js";
|
|
31
31
|
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-zPjl13U3.js";
|
|
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-
|
|
32
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-GCDgDdeE.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-BAE2QQ-5.js";
|
|
34
|
+
import { i as FormFlow, n as addValidityToForms, o as useFormComposer, s as FormContextProvider, t as useFormContext } from "./useFormContext-1h2DlUxb.js";
|
|
35
|
+
import { n as composePerScenarioFormConfigurations, r as getPropsFromConfigurations } from "./process-field-configurations-uFcwmzTd.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-B5GuGh_o.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-
|
|
39
|
+
import { n as summaryStep, r as Summary_module_default } from "./Summary-CunMdpUq.js";
|
|
40
|
+
import { t as useMultiForm } from "./useMultiForm-C0Mz4Mm6.js";
|
|
41
41
|
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-BmyzNoup.js";
|
|
42
42
|
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-Doq80YT8.js";
|
|
43
|
-
import { a as alphanumericInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput } from "./MaskedInput-
|
|
43
|
+
import { a as alphanumericInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput } from "./MaskedInput-VtgquqE0.js";
|
|
44
44
|
import { i as mapJpAddressSummaryNewSummary, n as toFullWidth, t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-BGLDkUt1.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-
|
|
46
|
+
import { i as isValidationError, n as isBusinessSelectionLegalArrangementError, o as processValidationErrors, s as isMaintenanceModeError } from "./validationError-COmWiy16.js";
|
|
47
47
|
import { a as createDocumentRequest, c as getDocuments, f as mergeProofOfOwnershipAttachments, l as getFileExtention, o as documentApiUtils, s as getDocument } from "./validate-B2bZh_uL.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-BKnequKz.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-Bza9mezL.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-Dizf4Xxc.js";
|
|
54
54
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
55
55
|
import { t as Field } from "./Field-DAUlw0M5.js";
|
|
56
56
|
import { t as TileGroup } from "./TileGroup-B8II9Mip.js";
|
|
@@ -61,7 +61,7 @@ import { n as convertFullToHalf } from "./TextArea-BvphlYOu.js";
|
|
|
61
61
|
import { t as Link } from "./Link-C0jrInxa.js";
|
|
62
62
|
import { t as InputText } from "./InputText-B-ebylm4.js";
|
|
63
63
|
import { n as formatDateObj, t as InputDate } from "./InputDate-B_jtgBB5.js";
|
|
64
|
-
import { n as CountryField, t as COUNTRY_FIELD } from "./CountryField-
|
|
64
|
+
import { n as CountryField, t as COUNTRY_FIELD } from "./CountryField-DSI1tYm2.js";
|
|
65
65
|
import { t as RadioGroup } from "./RadioGroup-CMiBSXCA.js";
|
|
66
66
|
import { t as createFormRules } from "./form-rules-CUUQGacJ.js";
|
|
67
67
|
import { t as isEmpty$1 } from "./isEmpty-BVlBH98t.js";
|
|
@@ -69,17 +69,17 @@ import { n as mapApiScriptLocalizationToSchemaFields, r as mapSchemaFieldsToApiS
|
|
|
69
69
|
import { t as currencyByCountry } from "./types-KjTYEnAG.js";
|
|
70
70
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
71
71
|
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-
|
|
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-Bfjuo_qU.js";
|
|
73
|
+
import { n as SummarySection, t as NewSummary } from "./NewSummary-CaV_Faij.js";
|
|
74
74
|
import { t as useTaskStatus } from "./useTaskStatus-BLkHjMgm.js";
|
|
75
75
|
import { t as ListItem } from "./ListItem-C_g-4xPP.js";
|
|
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-
|
|
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-CFqyuzoH.js";
|
|
77
77
|
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-jlXfi57a.js";
|
|
78
78
|
import { n as formatCurrency } from "./formatCurrency-Cq3WFpdZ.js";
|
|
79
|
-
import { S as
|
|
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-
|
|
79
|
+
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-uuBaXnz-.js";
|
|
80
|
+
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-BMNUJ3-d.js";
|
|
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-B9Cwuyju.js";
|
|
82
|
+
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-BAgsI56z.js";
|
|
83
83
|
import { Suspense, lazy } from "preact/compat";
|
|
84
84
|
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
85
|
import cx from "classnames";
|
|
@@ -175,6 +175,79 @@ var eInvoicingCodeFieldMetadata = {
|
|
|
175
175
|
transformOnType: uppercase
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
|
+
var legalEntityIdentifierFieldMetadata = {
|
|
179
|
+
validators: [{
|
|
180
|
+
modes: ["blur"],
|
|
181
|
+
validate: (val) => {
|
|
182
|
+
const isValidLength = val ? val.length === 20 : false;
|
|
183
|
+
const hasLettersAndNumbers = val ? /[a-zA-Z]/.test(val) && /[0-9]/.test(val) : false;
|
|
184
|
+
return isValidLength && hasLettersAndNumbers;
|
|
185
|
+
},
|
|
186
|
+
errorMessage: {
|
|
187
|
+
key: "enterNCharactersWithAMixForExample",
|
|
188
|
+
values: {
|
|
189
|
+
numChars: "20",
|
|
190
|
+
example: "529900T8BM49AURSDO55"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}],
|
|
194
|
+
mask: {
|
|
195
|
+
mask: makeMask(...alphanumericInputs(20)),
|
|
196
|
+
transformOnType: uppercase
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region src/components/Shared/fields/LegalEntityIdentifierField/LegalEntityIdentifierField.tsx
|
|
201
|
+
var LEGAL_ENTITY_IDENTIFIER_FIELD = ["legalEntityIdentifier", "exemptedFromLegalEntityIdentifier"];
|
|
202
|
+
function LegalEntityIdentifierField({ data, valid, errors, handleChangeFor, canExempt = true }) {
|
|
203
|
+
const { t } = useTranslation("common");
|
|
204
|
+
const placeholder = data.exemptedFromLegalEntityIdentifier ? "" : "529900T8BM49AURSDO55";
|
|
205
|
+
const isExempted = Boolean(data.exemptedFromLegalEntityIdentifier);
|
|
206
|
+
const handleExemptedChange = (isChecked) => {
|
|
207
|
+
handleChangeFor("exemptedFromLegalEntityIdentifier", "blur")(isChecked);
|
|
208
|
+
if (isChecked) handleChangeFor("legalEntityIdentifier", "input")("");
|
|
209
|
+
};
|
|
210
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(MaskedInput, {
|
|
211
|
+
type: "text",
|
|
212
|
+
name: "legalEntityIdentifier",
|
|
213
|
+
label: t(($) => $["legalEntityIdentifier"]),
|
|
214
|
+
onInput: handleChangeFor("legalEntityIdentifier", "input"),
|
|
215
|
+
onBlur: handleChangeFor("legalEntityIdentifier", "blur"),
|
|
216
|
+
value: data.legalEntityIdentifier ?? "",
|
|
217
|
+
isValid: Boolean(valid?.legalEntityIdentifier),
|
|
218
|
+
errorMessage: errors.legalEntityIdentifier,
|
|
219
|
+
disabled: isExempted,
|
|
220
|
+
helper: /* @__PURE__ */ jsxs(Typography, {
|
|
221
|
+
variant: "caption",
|
|
222
|
+
color: "secondary",
|
|
223
|
+
children: [
|
|
224
|
+
t(($) => $["aUniqueIdentifierForGlobalFinancialReporting"]),
|
|
225
|
+
" ",
|
|
226
|
+
/* @__PURE__ */ jsx(Link, {
|
|
227
|
+
href: "https://search.gleif.org/#/search/",
|
|
228
|
+
external: true,
|
|
229
|
+
inline: true,
|
|
230
|
+
children: t(($) => $["lookUpYourLEI"])
|
|
231
|
+
})
|
|
232
|
+
]
|
|
233
|
+
}),
|
|
234
|
+
helperPosition: "below",
|
|
235
|
+
persistHelper: true,
|
|
236
|
+
placeholder,
|
|
237
|
+
mask: legalEntityIdentifierFieldMetadata.mask?.mask,
|
|
238
|
+
transformOnType: legalEntityIdentifierFieldMetadata.mask?.transformOnType
|
|
239
|
+
}), canExempt && /* @__PURE__ */ jsx(Field, {
|
|
240
|
+
name: "exemptedFromLegalEntityIdentifier",
|
|
241
|
+
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
242
|
+
...childProps,
|
|
243
|
+
name: "exemptedFromLegalEntityIdentifier",
|
|
244
|
+
value: "exemptedFromLegalEntityIdentifier",
|
|
245
|
+
checked: isExempted,
|
|
246
|
+
label: t(($) => $["iDontHaveAnLEI"]),
|
|
247
|
+
onChange: handleExemptedChange
|
|
248
|
+
})
|
|
249
|
+
})] });
|
|
250
|
+
}
|
|
178
251
|
//#endregion
|
|
179
252
|
//#region src/components/Shared/fields/StockExchangeMICField/fieldConfig.ts
|
|
180
253
|
var stockExchangeMICFieldMetadata = {
|
|
@@ -427,7 +500,7 @@ function BasicInformation({ id, country, shouldValidate, fieldValidationErrors =
|
|
|
427
500
|
const isAllowedEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
|
|
428
501
|
const state = form.data.basicInformation?.stateOrProvince;
|
|
429
502
|
const currentCountryTaxInformation = form.data.basicInformation?.taxInformation?.find((tax) => tax.country === country);
|
|
430
|
-
const handleChangeFor = useCallback$1((fieldName, mode) => form.handleChangeFor(
|
|
503
|
+
const handleChangeFor = useCallback$1((fieldName, mode) => form.handleChangeFor("basicInformation", fieldName, mode), [form]);
|
|
431
504
|
const formUtils = useMemo$1(() => {
|
|
432
505
|
const initialProps = {
|
|
433
506
|
data: form.data.basicInformation ?? {},
|
|
@@ -580,8 +653,7 @@ function BasicInformation({ id, country, shouldValidate, fieldValidationErrors =
|
|
|
580
653
|
registrationNumber: form.data.basicInformation?.registrationNumber,
|
|
581
654
|
country,
|
|
582
655
|
entityType: companyType,
|
|
583
|
-
defaultData: form.defaultData?.basicInformation?.taxInformation
|
|
584
|
-
invertCompanyTypeFilter: isFeatureEnabled("EnableUnifiedCompanySearch")
|
|
656
|
+
defaultData: form.defaultData?.basicInformation?.taxInformation
|
|
585
657
|
}),
|
|
586
658
|
showField(BUSINESS_REGISTRATION_NUMBER_FIELD) && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
587
659
|
data: formUtils.getFieldData(form.data.basicInformation ?? {}, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
@@ -598,8 +670,7 @@ function BasicInformation({ id, country, shouldValidate, fieldValidationErrors =
|
|
|
598
670
|
country,
|
|
599
671
|
state,
|
|
600
672
|
canExempt: showField(["exemptedFromRegistrationNumber"]),
|
|
601
|
-
companyType
|
|
602
|
-
invertCompanyTypeFilter: isFeatureEnabled("EnableUnifiedCompanySearch")
|
|
673
|
+
companyType
|
|
603
674
|
})
|
|
604
675
|
] })
|
|
605
676
|
]
|
|
@@ -953,7 +1024,7 @@ function BusinessSelection({ id, country, fieldValidationErrors = EMPTY_OBJ$4, f
|
|
|
953
1024
|
const { data: selectData, error: selectError, mutateAsync: selectCompany, reset: resetSelectMutationState } = useCompanySelection();
|
|
954
1025
|
const { mutateAsync: clearCompanyData } = useClearCompanyData();
|
|
955
1026
|
const currentTin = form.data.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number;
|
|
956
|
-
const handleChange = useCallback$1((fieldName, mode) => form.handleChangeFor(
|
|
1027
|
+
const handleChange = useCallback$1((fieldName, mode) => form.handleChangeFor("businessSelection", fieldName, mode), [form]);
|
|
957
1028
|
/**
|
|
958
1029
|
* This ID is internal to this form, controlling selection for UI & data flow purposes. The
|
|
959
1030
|
* multiform state is used to determine whether the form is set & valid, ready for the user to progress.
|
|
@@ -972,7 +1043,7 @@ function BusinessSelection({ id, country, fieldValidationErrors = EMPTY_OBJ$4, f
|
|
|
972
1043
|
if (!isInitializedRef.current) {
|
|
973
1044
|
if (form.data.businessSelection?.selectedBusinessId) {
|
|
974
1045
|
handleChange("selectedBusinessId", "blur")("");
|
|
975
|
-
form.setErrors("selectedBusinessId", null
|
|
1046
|
+
form.setErrors("businessSelection", "selectedBusinessId", null);
|
|
976
1047
|
}
|
|
977
1048
|
isInitializedRef.current = true;
|
|
978
1049
|
}
|
|
@@ -1201,16 +1272,15 @@ function CompanyStructure({ id, country, fieldValidationErrors = EMPTY_OBJ$3, fo
|
|
|
1201
1272
|
const { rootLegalEntityId } = useApiContext();
|
|
1202
1273
|
const { data: legalEntity } = useLegalEntity(rootLegalEntityId.value);
|
|
1203
1274
|
const { isSettingEnabled } = useSettingsContext();
|
|
1204
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
1205
1275
|
const formUtils = createFormUtils({ requiredFields: form.requiredFields?.companyStructure ?? [] }, t);
|
|
1206
1276
|
const registrationNumberType = form.data.basicInformation?.registrationNumberType;
|
|
1207
1277
|
const taxIdNumberType = form.data.basicInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type;
|
|
1208
1278
|
const registrationNumberExempt = form.data.basicInformation?.exemptedFromRegistrationNumber;
|
|
1209
1279
|
const availableCompanyTypeRadioOptions = getAvailableCompanyStructures({
|
|
1210
1280
|
country,
|
|
1211
|
-
registrationNumberType
|
|
1212
|
-
registrationNumberExempt
|
|
1213
|
-
taxIdNumberType
|
|
1281
|
+
registrationNumberType,
|
|
1282
|
+
registrationNumberExempt,
|
|
1283
|
+
taxIdNumberType,
|
|
1214
1284
|
legalEntity,
|
|
1215
1285
|
accountHolder,
|
|
1216
1286
|
isSettingEnabled
|
|
@@ -1253,7 +1323,7 @@ function CompanyStructure({ id, country, fieldValidationErrors = EMPTY_OBJ$3, fo
|
|
|
1253
1323
|
name: "entityType",
|
|
1254
1324
|
tiles: companyTiles,
|
|
1255
1325
|
selected: form.data.companyStructure?.entityType ?? "",
|
|
1256
|
-
onChange: (value) => form.handleChangeFor("
|
|
1326
|
+
onChange: (value) => form.handleChangeFor("companyStructure", "entityType")(value),
|
|
1257
1327
|
isHorizontal: true,
|
|
1258
1328
|
"aria-required": true,
|
|
1259
1329
|
"aria-invalid": !form.valid.companyStructure?.entityType
|
|
@@ -1418,7 +1488,7 @@ function FinancialInformation({ id, country, fieldValidationErrors = EMPTY_OBJ$2
|
|
|
1418
1488
|
const { t } = useTranslation("common");
|
|
1419
1489
|
const { form } = useFormContext();
|
|
1420
1490
|
const defaultCurrency = currencyByCountry[country]?.[0] ?? "EUR";
|
|
1421
|
-
const handleChangeFor = useCallback$1((fieldName, mode) => form.handleChangeFor(
|
|
1491
|
+
const handleChangeFor = useCallback$1((fieldName, mode) => form.handleChangeFor("companyFinancialInformation", fieldName, mode), [form]);
|
|
1422
1492
|
const formUtils = useMemo$1(() => createFormUtils({
|
|
1423
1493
|
data: form.data.companyFinancialInformation ?? {},
|
|
1424
1494
|
fieldValidationErrors,
|
|
@@ -1485,6 +1555,36 @@ function FinancialInformation({ id, country, fieldValidationErrors = EMPTY_OBJ$2
|
|
|
1485
1555
|
});
|
|
1486
1556
|
}
|
|
1487
1557
|
//#endregion
|
|
1558
|
+
//#region src/components/Business/forms/ProofOfAddressDocument/ProofOfAddressDocument.tsx
|
|
1559
|
+
var GuidanceContent$5 = ({ t }) => {
|
|
1560
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1561
|
+
className: "adyen-kyc-upload-field__guidance",
|
|
1562
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
1563
|
+
className: "u-margin-bottom-24",
|
|
1564
|
+
children: [/* @__PURE__ */ jsx("strong", { children: t(($) => $["documentRequirements"], { ns: "common" }) }), /* @__PURE__ */ jsxs("ul", { children: [
|
|
1565
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["yourBusinesssLegalName"], { ns: "business" }) }),
|
|
1566
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["theCompleteAddress"], { ns: "business" }) }),
|
|
1567
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["anIssueDateWithinTheLast12Months"], { ns: "business" }) }),
|
|
1568
|
+
/* @__PURE__ */ jsx("li", { children: t(($) => $["clearReadableText"], { ns: "business" }) })
|
|
1569
|
+
] })]
|
|
1570
|
+
})
|
|
1571
|
+
});
|
|
1572
|
+
};
|
|
1573
|
+
function ProofOfAddressDocument({ id, country, ...props }) {
|
|
1574
|
+
const { t } = useTranslation(["common", "business"]);
|
|
1575
|
+
return /* @__PURE__ */ jsx(MemoizedDocumentUpload, {
|
|
1576
|
+
...props,
|
|
1577
|
+
id,
|
|
1578
|
+
heading: t(($) => $["uploadProofOfAddress"], { ns: "business" }),
|
|
1579
|
+
description: t(($) => $["toFinishVerifyingYourBusinessWeNeedAnOfficialDocumentThatConfirmsItsAddress"], { ns: "business" }),
|
|
1580
|
+
documentField: "proofOfAddress",
|
|
1581
|
+
documentType: "proofOfAddress",
|
|
1582
|
+
guidanceContent: /* @__PURE__ */ jsx(GuidanceContent$5, { t }),
|
|
1583
|
+
country,
|
|
1584
|
+
hidePageCount: true
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
//#endregion
|
|
1488
1588
|
//#region src/components/Business/forms/ProofOfDirectorDocument/ProofOfDirectorDocument.tsx
|
|
1489
1589
|
var documentTypes$2 = [{
|
|
1490
1590
|
id: "Internal company document",
|
|
@@ -1881,7 +1981,7 @@ function BusinessDetailsMultiform({ taskType, country, activeForm, shouldValidat
|
|
|
1881
1981
|
const { form } = useFormContext();
|
|
1882
1982
|
const companyType = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ? CompanyTypesValues.SOLE_PROPRIETORSHIP : form.data.companyStructure?.entityType;
|
|
1883
1983
|
function handleChange(formName, fieldName, mode) {
|
|
1884
|
-
return form.handleChangeFor(
|
|
1984
|
+
return form.handleChangeFor(formName, fieldName, mode);
|
|
1885
1985
|
}
|
|
1886
1986
|
const renderActiveForm = (activeForm) => {
|
|
1887
1987
|
switch (activeForm.formId) {
|
|
@@ -2011,6 +2111,21 @@ function BusinessDetailsMultiform({ taskType, country, activeForm, shouldValidat
|
|
|
2011
2111
|
fieldValidationErrors: problems.validationErrors?.[activeForm.formId] ?? {},
|
|
2012
2112
|
formVerificationErrors: problems.verificationErrors?.[activeForm.formId] ?? {}
|
|
2013
2113
|
});
|
|
2114
|
+
case "companyProofOfAddressDocument": return /* @__PURE__ */ jsx(ProofOfAddressDocument, {
|
|
2115
|
+
id: activeForm.formId,
|
|
2116
|
+
country,
|
|
2117
|
+
data: form.data.companyProofOfAddressDocument,
|
|
2118
|
+
errors: form.errors.companyProofOfAddressDocument,
|
|
2119
|
+
valid: form.valid.companyProofOfAddressDocument,
|
|
2120
|
+
allFields: form.allFields?.companyProofOfAddressDocument,
|
|
2121
|
+
requiredFields: form.requiredFields?.companyProofOfAddressDocument,
|
|
2122
|
+
optionalFields: form.optionalFields?.companyProofOfAddressDocument,
|
|
2123
|
+
trustedFields: form.trustedFields?.companyProofOfAddressDocument,
|
|
2124
|
+
handleFieldChange: (fieldName) => handleChange("companyProofOfAddressDocument", fieldName),
|
|
2125
|
+
shouldValidate,
|
|
2126
|
+
fieldValidationErrors: problems.validationErrors?.[activeForm.formId] ?? {},
|
|
2127
|
+
formVerificationErrors: problems.verificationErrors?.[activeForm.formId] ?? {}
|
|
2128
|
+
});
|
|
2014
2129
|
case "companyProofOfOwnershipDocument": return /* @__PURE__ */ jsx(ProofOfOwnershipDocument, {
|
|
2015
2130
|
id: activeForm.formId,
|
|
2016
2131
|
country,
|
|
@@ -2174,15 +2289,15 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2174
2289
|
if (!COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) return data.additionalInformation?.exemptedFromVat ? "REQUIRED" : "OPTIONAL";
|
|
2175
2290
|
},
|
|
2176
2291
|
countryUsesTaxId: () => {
|
|
2177
|
-
const isExemptFromTax = Boolean(data.basicInformation?.exemptedFromTax
|
|
2292
|
+
const isExemptFromTax = Boolean(data.basicInformation?.exemptedFromTax);
|
|
2178
2293
|
const isOrgWithBanking = rootLegalEntity?.type === "organization" && keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount");
|
|
2179
|
-
const registrationNumberType =
|
|
2294
|
+
const registrationNumberType = data.basicInformation?.registrationNumberType;
|
|
2180
2295
|
if (TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION.includes(country) && isOrgWithBanking) return isExemptFromTax ? "OPTIONAL" : "REQUIRED";
|
|
2181
2296
|
if (country === CountryCodes.Italy && isOrgWithBanking && registrationNumberType === "CCIAA") return isExemptFromTax ? "OPTIONAL" : "REQUIRED";
|
|
2182
2297
|
if (COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country) && !(taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY && COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP.includes(country))) return isExemptFromTax ? "OPTIONAL" : "REQUIRED";
|
|
2183
2298
|
},
|
|
2184
2299
|
companyRegistrationNumberExemptionAllowed: () => {
|
|
2185
|
-
const isExemptFromRegistrationNumber = Boolean(data.basicInformation?.exemptedFromRegistrationNumber
|
|
2300
|
+
const isExemptFromRegistrationNumber = Boolean(data.basicInformation?.exemptedFromRegistrationNumber);
|
|
2186
2301
|
if (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) {
|
|
2187
2302
|
if (!COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS.includes(country)) return;
|
|
2188
2303
|
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
@@ -2199,7 +2314,7 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2199
2314
|
*/
|
|
2200
2315
|
switch (country) {
|
|
2201
2316
|
case CountryCodes.HongKong:
|
|
2202
|
-
if (!defaultData?.basicInformation?.registrationNumber
|
|
2317
|
+
if (!defaultData?.basicInformation?.registrationNumber) return;
|
|
2203
2318
|
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
2204
2319
|
case CountryCodes.Australia:
|
|
2205
2320
|
case CountryCodes.NewZealand:
|
|
@@ -2212,7 +2327,7 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2212
2327
|
if (isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies") && COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(data.basicInformation?.country)) return "REQUIRED";
|
|
2213
2328
|
},
|
|
2214
2329
|
countryRequiresRegistrationNumber: () => {
|
|
2215
|
-
const isExemptFromRegistrationNumber = Boolean(data.basicInformation?.exemptedFromRegistrationNumber
|
|
2330
|
+
const isExemptFromRegistrationNumber = Boolean(data.basicInformation?.exemptedFromRegistrationNumber);
|
|
2216
2331
|
switch (taskType) {
|
|
2217
2332
|
case TaskTypes.SOLE_PROPRIETOR_COMPANY:
|
|
2218
2333
|
if (COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country)) return;
|
|
@@ -2221,7 +2336,7 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2221
2336
|
default:
|
|
2222
2337
|
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
2223
2338
|
if (country === CountryCodes.HongKong) {
|
|
2224
|
-
if (!defaultData?.
|
|
2339
|
+
if (!defaultData?.basicInformation?.registrationNumber) return;
|
|
2225
2340
|
return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
|
|
2226
2341
|
}
|
|
2227
2342
|
if (!COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return isExemptFromRegistrationNumber ? void 0 : "REQUIRED";
|
|
@@ -2243,7 +2358,7 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2243
2358
|
if (COUNTRIES_THAT_USES_UEN_OR_GST.includes(country)) return "REQUIRED";
|
|
2244
2359
|
},
|
|
2245
2360
|
countryHasTaxExemptions: () => {
|
|
2246
|
-
const isExemptFromTax = Boolean(data.basicInformation?.exemptedFromTax
|
|
2361
|
+
const isExemptFromTax = Boolean(data.basicInformation?.exemptedFromTax);
|
|
2247
2362
|
switch (taskType) {
|
|
2248
2363
|
case TaskTypes.SOLE_PROPRIETOR_COMPANY:
|
|
2249
2364
|
if (!COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS.includes(country)) return;
|
|
@@ -2297,6 +2412,14 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2297
2412
|
},
|
|
2298
2413
|
japaneseLegalCompanyName: () => {
|
|
2299
2414
|
if (isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
|
|
2415
|
+
},
|
|
2416
|
+
requireLEI: () => {
|
|
2417
|
+
if (!isFeatureEnabled("EnableLegalEntityIdentifierField")) return;
|
|
2418
|
+
return data.additionalInformation?.exemptedFromLegalEntityIdentifier ? void 0 : "REQUIRED";
|
|
2419
|
+
},
|
|
2420
|
+
requireLEIExemption: () => {
|
|
2421
|
+
if (!isFeatureEnabled("EnableLegalEntityIdentifierField")) return;
|
|
2422
|
+
return data.additionalInformation?.exemptedFromLegalEntityIdentifier ? "REQUIRED" : "OPTIONAL";
|
|
2300
2423
|
}
|
|
2301
2424
|
});
|
|
2302
2425
|
};
|
|
@@ -2609,7 +2732,7 @@ var shouldReuseRegistrationNumberAsTaxId = (country, registrationNumberType) =>
|
|
|
2609
2732
|
//#endregion
|
|
2610
2733
|
//#region src/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.ts
|
|
2611
2734
|
var mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
2612
|
-
const { companyRegistrationDocument, companyTaxDocument, companyProofOfDirectorDocument, companyConstitutionalDocument, companyProofOfSignatoryDocument, companyProofOfOwnershipDocument, basicInformation } = data;
|
|
2735
|
+
const { companyRegistrationDocument, companyTaxDocument, companyProofOfDirectorDocument, companyConstitutionalDocument, companyProofOfSignatoryDocument, companyProofOfAddressDocument, companyProofOfOwnershipDocument, basicInformation } = data;
|
|
2613
2736
|
const taxDocumentType = COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(basicInformation?.country) ? "proofOfOrganizationTaxInfo" : "vatDocument";
|
|
2614
2737
|
return (await Promise.all([
|
|
2615
2738
|
createDocumentRequest({
|
|
@@ -2654,6 +2777,13 @@ var mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
|
2654
2777
|
description: companyProofOfOwnershipDocument?.description,
|
|
2655
2778
|
page1: companyProofOfOwnershipDocument?.proofOfOwnership?.[0],
|
|
2656
2779
|
page2: companyProofOfOwnershipDocument?.proofOfOwnership?.[1]
|
|
2780
|
+
}),
|
|
2781
|
+
createDocumentRequest({
|
|
2782
|
+
entityId,
|
|
2783
|
+
entityType: "legalEntity",
|
|
2784
|
+
documentType: "proofOfAddress",
|
|
2785
|
+
description: companyProofOfAddressDocument?.description,
|
|
2786
|
+
page1: companyProofOfAddressDocument?.proofOfAddress?.[0]
|
|
2657
2787
|
})
|
|
2658
2788
|
])).filter(Boolean);
|
|
2659
2789
|
};
|
|
@@ -2661,9 +2791,8 @@ var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabl
|
|
|
2661
2791
|
const requestObj = { ...formatObject(data, accountHolder === "mySoleProprietorName" ? solePropBusinessDetailsApiKeyMapping : businessDetailsApiKeyMapping) };
|
|
2662
2792
|
delete requestObj.organization?.legalFormDescription;
|
|
2663
2793
|
const canSaveRegNumberAbsentState = isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && isRegistrationNumberAbsentStateV4Scenario(data.basicInformation?.country, data.companyStructure?.entityType);
|
|
2664
|
-
const
|
|
2665
|
-
const
|
|
2666
|
-
const registrationNumberType = useBasicInformationForTaxAndRegistration ? data.basicInformation?.registrationNumberType : data.additionalInformation?.registrationNumberType;
|
|
2794
|
+
const [taxData, registrationNumber] = [data.basicInformation?.taxInformation, data.basicInformation?.registrationNumber];
|
|
2795
|
+
const registrationNumberType = data.basicInformation?.registrationNumberType;
|
|
2667
2796
|
const localization = [mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaKana")].filter(({ fields }) => !isEmpty$1(fields)).map(({ script, fields }) => ({
|
|
2668
2797
|
script,
|
|
2669
2798
|
fields: { legalName: fields.legalCompanyName }
|
|
@@ -2687,7 +2816,7 @@ var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabl
|
|
|
2687
2816
|
if (canSaveRegNumberAbsentState && requestObj.organization) requestObj.organization.registrationNumberAbsent = false;
|
|
2688
2817
|
}
|
|
2689
2818
|
if (requestObj.organization && localization.length > 0) entityObject.localization = localization;
|
|
2690
|
-
if (data.
|
|
2819
|
+
if (data.basicInformation?.exemptedFromRegistrationNumber && canSaveRegNumberAbsentState && requestObj.organization) requestObj.organization.registrationNumberAbsent = data.basicInformation.exemptedFromRegistrationNumber;
|
|
2691
2820
|
if (data.additionalInformation?.vatAbsenceReason) entityObject.vatNumber = "";
|
|
2692
2821
|
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
2693
2822
|
if (typeof data.additionalInformation?.hasDoingBusinessAs !== "undefined") entityObject.doingBusinessAsAbsent = !data.additionalInformation.hasDoingBusinessAs;
|
|
@@ -2695,7 +2824,7 @@ var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabl
|
|
|
2695
2824
|
entityObject.doingBusinessAs = doingBusinessAs || data.basicInformation?.legalCompanyName;
|
|
2696
2825
|
delete entityObject.doingBusinessAsAbsent;
|
|
2697
2826
|
}
|
|
2698
|
-
if (data.additionalInformation?.operationalAddressIsSame
|
|
2827
|
+
if (data.additionalInformation?.operationalAddressIsSame && entityObject.principalPlaceOfBusiness) entityObject.principalPlaceOfBusiness = entityObject.registeredAddress;
|
|
2699
2828
|
const addressLocalizations = mapJpAddressSchemaToAddressLocalizations(data.additionalInformation?.registrationAddress);
|
|
2700
2829
|
if (addressLocalizations.length > 0) entityObject.registeredAddress.localization = addressLocalizations;
|
|
2701
2830
|
if (entityObject.registeredAddress?.country && entityObject.registeredAddress?.stateOrProvince && !COUNTRIES_WITH_STATES_DATASET.includes(entityObject.registeredAddress?.country)) entityObject.registeredAddress.stateOrProvince = "";
|
|
@@ -2725,16 +2854,16 @@ var mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
|
|
|
2725
2854
|
companyConstitutionalDocument: constitutionalDocument ? { constitutionalDocument: [mapExistingFile(getPageName(constitutionalDocument))] } : void 0
|
|
2726
2855
|
};
|
|
2727
2856
|
};
|
|
2728
|
-
var mapBasicInformation = ({ data, legalEntity, taskType
|
|
2857
|
+
var mapBasicInformation = ({ data, legalEntity, taskType }) => {
|
|
2729
2858
|
if (!data || !data.country) return;
|
|
2730
2859
|
const companyType = legalEntity?.type === "organization" ? legalEntity.organization?.type : void 0;
|
|
2731
2860
|
const isUen = mapIsUen(data.taxInformation, data.registrationNumber, data.country);
|
|
2732
|
-
const registrationNumberType = getDefaultRegistrationNumberType(data.registrationNumber, data.country, void 0
|
|
2861
|
+
const registrationNumberType = getDefaultRegistrationNumberType(data.registrationNumber, data.country, void 0);
|
|
2733
2862
|
const registrationNumberExemption = !data.registrationNumber && !!companyType && isRegistrationExemptionAllowed(data.country) && (() => {
|
|
2734
2863
|
const allowedEntityTypes = REGISTRATION_NUMBER_EXEMPTION_RULES[data.country];
|
|
2735
2864
|
return allowedEntityTypes.length === 0 || allowedEntityTypes.includes(companyType);
|
|
2736
2865
|
})() ? { exemptedFromRegistrationNumber: true } : {};
|
|
2737
|
-
|
|
2866
|
+
return isUsingCompanySearch(data.country, taskType) ? {
|
|
2738
2867
|
...data,
|
|
2739
2868
|
registrationNumberType,
|
|
2740
2869
|
...registrationNumberExemption,
|
|
@@ -2750,13 +2879,6 @@ var mapBasicInformation = ({ data, legalEntity, taskType, isFeatureEnabled }) =>
|
|
|
2750
2879
|
...registrationNumberExemption,
|
|
2751
2880
|
...isUen
|
|
2752
2881
|
});
|
|
2753
|
-
return isUsingCompanySearch(data.country, taskType) ? data : entriesOf(data).reduce((acc, [field]) => {
|
|
2754
|
-
if (!FIELDS_NEEDED_FOR_COMPANY_SEARCH.includes(field)) return {
|
|
2755
|
-
...acc,
|
|
2756
|
-
[field]: data[field]
|
|
2757
|
-
};
|
|
2758
|
-
return acc;
|
|
2759
|
-
}, {});
|
|
2760
2882
|
};
|
|
2761
2883
|
var mapDbaName = (legalEntity) => {
|
|
2762
2884
|
const entity = legalEntity.type === "organization" ? legalEntity.organization : legalEntity.soleProprietorship;
|
|
@@ -2775,16 +2897,13 @@ var mapIsUen = (taxInformation, registrationNumber, country) => {
|
|
|
2775
2897
|
isUen: currentCountryTaxInfo.type === "UEN"
|
|
2776
2898
|
};
|
|
2777
2899
|
};
|
|
2778
|
-
var mapAdditionalInformation = ({ data, legalEntity
|
|
2900
|
+
var mapAdditionalInformation = ({ data, legalEntity }) => {
|
|
2779
2901
|
if (!data) return;
|
|
2780
2902
|
const entity = legalEntity.type === "organization" ? legalEntity.organization : legalEntity.soleProprietorship;
|
|
2781
2903
|
const currentCountry = entity?.registeredAddress.country;
|
|
2782
2904
|
const dbaNameFields = mapDbaName(legalEntity);
|
|
2783
|
-
const isUen = mapIsUen(data.taxInformation, data.registrationNumber, currentCountry);
|
|
2784
|
-
const companyType = legalEntity.type === "organization" ? legalEntity.organization?.type : CompanyTypesValues.SOLE_PROPRIETORSHIP;
|
|
2785
|
-
const registrationNumberType = getDefaultRegistrationNumberType(entity?.registrationNumber, currentCountry, companyType);
|
|
2786
2905
|
const vatNumberType = getDefaultVatNumberType(entity?.vatNumber, currentCountry);
|
|
2787
|
-
const operationalAddressIsSame = entity?.principalPlaceOfBusiness && !objectsDeepEqual(entity.principalPlaceOfBusiness, entity.registeredAddress)
|
|
2906
|
+
const operationalAddressIsSame = !(entity?.principalPlaceOfBusiness && !objectsDeepEqual(entity.principalPlaceOfBusiness, entity.registeredAddress));
|
|
2788
2907
|
if (entity?.registeredAddress.localization) data.registrationAddress = {
|
|
2789
2908
|
...data.registrationAddress,
|
|
2790
2909
|
...mapAddressLocalizationToJpAddressSchema(entity.registeredAddress.localization)
|
|
@@ -2793,25 +2912,15 @@ var mapAdditionalInformation = ({ data, legalEntity, taskType, isFeatureEnabled
|
|
|
2793
2912
|
...data.operationalAddress,
|
|
2794
2913
|
...mapAddressLocalizationToJpAddressSchema(entity.principalPlaceOfBusiness.localization)
|
|
2795
2914
|
};
|
|
2796
|
-
const shouldStripCompanySearchFields = isUsingCompanySearch(currentCountry, taskType) || isFeatureEnabled("EnableUnifiedCompanySearch");
|
|
2797
2915
|
return {
|
|
2798
|
-
...entriesOf(data).reduce((acc, [field]) => {
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
};
|
|
2803
|
-
if (!FIELDS_NEEDED_FOR_COMPANY_SEARCH.includes(field)) return {
|
|
2804
|
-
...acc,
|
|
2805
|
-
[field]: data[field]
|
|
2806
|
-
};
|
|
2807
|
-
return acc;
|
|
2808
|
-
}, {
|
|
2916
|
+
...entriesOf(data).reduce((acc, [field]) => ({
|
|
2917
|
+
...acc,
|
|
2918
|
+
[field]: data[field]
|
|
2919
|
+
}), {
|
|
2809
2920
|
operationalAddressIsSame,
|
|
2810
|
-
registrationNumberType,
|
|
2811
2921
|
vatNumberType
|
|
2812
2922
|
}),
|
|
2813
|
-
...dbaNameFields
|
|
2814
|
-
...isUen
|
|
2923
|
+
...dbaNameFields
|
|
2815
2924
|
};
|
|
2816
2925
|
};
|
|
2817
2926
|
var mapLegalNameLocalization = (data) => {
|
|
@@ -2847,7 +2956,7 @@ var mapLegalEntityToBusinessDetailsSchema = ({ legalEntity, parentEntity, taskTy
|
|
|
2847
2956
|
};
|
|
2848
2957
|
};
|
|
2849
2958
|
const orgSchema = {
|
|
2850
|
-
...formatObject(legalEntity,
|
|
2959
|
+
...formatObject(legalEntity, businessDetailsKeyMapping),
|
|
2851
2960
|
businessSelection: {},
|
|
2852
2961
|
companyRegistrationDocument,
|
|
2853
2962
|
companyTaxDocument,
|
|
@@ -2883,9 +2992,7 @@ var mapLegalEntityToBusinessDetailsSchema = ({ legalEntity, parentEntity, taskTy
|
|
|
2883
2992
|
...componentData,
|
|
2884
2993
|
[key]: mapAdditionalInformation({
|
|
2885
2994
|
data: businessDetailsSchema[key],
|
|
2886
|
-
legalEntity
|
|
2887
|
-
taskType,
|
|
2888
|
-
isFeatureEnabled
|
|
2995
|
+
legalEntity
|
|
2889
2996
|
})
|
|
2890
2997
|
};
|
|
2891
2998
|
case "companyRegistrationDocument": return {
|
|
@@ -2951,7 +3058,7 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
2951
3058
|
companyStructure: data.companyStructure?.entityType,
|
|
2952
3059
|
countryOfRegistration: data.basicInformation?.country,
|
|
2953
3060
|
legalEntityName: accountHolder === "theCompanyIWorkFor" ? data.basicInformation?.legalCompanyName : void 0,
|
|
2954
|
-
usedAdditionalAddress: data.additionalInformation?.operationalAddressIsSame
|
|
3061
|
+
usedAdditionalAddress: !data.additionalInformation?.operationalAddressIsSame
|
|
2955
3062
|
};
|
|
2956
3063
|
/**
|
|
2957
3064
|
* Root entity is legalEntityResponse,
|
|
@@ -3001,7 +3108,7 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
3001
3108
|
taskType,
|
|
3002
3109
|
isFeatureEnabled
|
|
3003
3110
|
}));
|
|
3004
|
-
if (filteredData.
|
|
3111
|
+
if (filteredData.basicInformation && !filteredData.basicInformation.taxInformation) filteredData.basicInformation.taxInformation = void 0;
|
|
3005
3112
|
const countryOfGoverningLaw = getCountryOfGoverningLaw(isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies"), filteredData.basicInformation);
|
|
3006
3113
|
if (filteredData.basicInformation) if (countryOfGoverningLaw) filteredData.basicInformation.countryOfGoverningLaw = countryOfGoverningLaw;
|
|
3007
3114
|
else delete filteredData.basicInformation.countryOfGoverningLaw;
|
|
@@ -3043,7 +3150,6 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
3043
3150
|
});
|
|
3044
3151
|
await invalidateRootLegalEntity();
|
|
3045
3152
|
onExternalSubmit?.(data);
|
|
3046
|
-
return true;
|
|
3047
3153
|
} catch (err) {
|
|
3048
3154
|
if (isValidationError(err)) {
|
|
3049
3155
|
const getErrors = processValidationErrors(err, TaskTypes.BUSINESS_DETAILS);
|
|
@@ -3077,7 +3183,7 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
3077
3183
|
returnType: err?.errorCode,
|
|
3078
3184
|
returnValue: err?.title || "backend"
|
|
3079
3185
|
});
|
|
3080
|
-
|
|
3186
|
+
throw err;
|
|
3081
3187
|
} finally {
|
|
3082
3188
|
setLoadingStatus("success");
|
|
3083
3189
|
}
|
|
@@ -3252,13 +3358,11 @@ var formatBasicInformation = (data, datasetUtils, companyType, isCountryOfGovern
|
|
|
3252
3358
|
countryOfGoverningLaw: datasetUtils.getCountryName(getCountryOfGoverningLaw(isCountryOfGoverningLawEnabled, data))
|
|
3253
3359
|
};
|
|
3254
3360
|
};
|
|
3255
|
-
var formatAdditionalInformation = (data
|
|
3361
|
+
var formatAdditionalInformation = (data) => {
|
|
3256
3362
|
return {
|
|
3257
3363
|
businessStructure: data.legalFormLabel,
|
|
3258
3364
|
doingBusinessAs: data.doingBusinessAs,
|
|
3259
3365
|
industry: data.industryCodes?.[0].name,
|
|
3260
|
-
[getRegistrationNumberLabel(country, companyType, data)]: data.registrationNumber,
|
|
3261
|
-
[getTaxIdLabel(country)]: !data.isUen && data.taxInformation?.find((taxId) => country === taxId.country)?.number,
|
|
3262
3366
|
vatNumber: data.vatNumber,
|
|
3263
3367
|
vatAbsenceReason: data.vatAbsenceReason,
|
|
3264
3368
|
dateOfIncorporation: data.dateOfIncorporation,
|
|
@@ -3291,7 +3395,7 @@ var formatDataForSummary = (data, forms, t, language, isFeatureEnabled, version)
|
|
|
3291
3395
|
switch (formId) {
|
|
3292
3396
|
case "basicInformation": return formatBasicInformation(data[formId], datasetUtils, data.companyStructure?.entityType, isCountryOfGoverningLawEnabled);
|
|
3293
3397
|
case "companyStructure": return { entityType: t(($) => $[companyTypeMetadata[data[formId]?.entityType]?.name], { ns: "business" }) };
|
|
3294
|
-
case "additionalInformation": return formatAdditionalInformation(data[formId]
|
|
3398
|
+
case "additionalInformation": return formatAdditionalInformation(data[formId]);
|
|
3295
3399
|
case "companyRegistrationDocument": return {
|
|
3296
3400
|
fileName: data[formId].registrationDocument?.[0]?.name,
|
|
3297
3401
|
description: data[formId].description
|
|
@@ -3300,6 +3404,14 @@ var formatDataForSummary = (data, forms, t, language, isFeatureEnabled, version)
|
|
|
3300
3404
|
fileName: data[formId]?.taxDocument?.[0]?.name,
|
|
3301
3405
|
description: data[formId].description
|
|
3302
3406
|
};
|
|
3407
|
+
case "companyProofOfAddressDocument": return {
|
|
3408
|
+
fileName: data[formId]?.proofOfAddress?.[0]?.name,
|
|
3409
|
+
description: data[formId].description
|
|
3410
|
+
};
|
|
3411
|
+
case "companyConstitutionalDocument": return {
|
|
3412
|
+
fileName: data[formId]?.constitutionalDocument?.[0]?.name,
|
|
3413
|
+
description: data[formId].description
|
|
3414
|
+
};
|
|
3303
3415
|
case "companyProofOfDirectorDocument": return {
|
|
3304
3416
|
fileName: data[formId]?.proofOfDirector?.[0]?.name,
|
|
3305
3417
|
description: data[formId].description
|
|
@@ -3340,7 +3452,7 @@ var formatDataForSummary = (data, forms, t, language, isFeatureEnabled, version)
|
|
|
3340
3452
|
label: t(($) => $["registrationAddress"], { ns: "common" }),
|
|
3341
3453
|
items: registrationAddressSummaryItems
|
|
3342
3454
|
});
|
|
3343
|
-
if (data[form.formId]?.operationalAddressIsSame
|
|
3455
|
+
if (!data[form.formId]?.operationalAddressIsSame) {
|
|
3344
3456
|
const operationalAddressSummaryItems = translateAndFilterMappedSummary(formatAddress(data.additionalInformation?.operationalAddress, datasetUtils, data.basicInformation?.country, version));
|
|
3345
3457
|
if (operationalAddressSummaryItems.length > 0) summarySectionData.push({
|
|
3346
3458
|
formId: "operationalAddress",
|
|
@@ -3364,6 +3476,8 @@ var businessDetailsBase = {
|
|
|
3364
3476
|
doingBusinessAs: { rule: "requireDoingBusinessAsName" },
|
|
3365
3477
|
registrationAddress: { rule: "REQUIRED" },
|
|
3366
3478
|
operationalAddressIsSame: { rule: "REQUIRED" },
|
|
3479
|
+
legalEntityIdentifier: { rule: "requireLEI" },
|
|
3480
|
+
exemptedFromLegalEntityIdentifier: { rule: "requireLEIExemption" },
|
|
3367
3481
|
operationalAddress: { rule: "OPTIONAL" },
|
|
3368
3482
|
selectedBusinessId: { rule: "usingCompanySearch" },
|
|
3369
3483
|
stateOrProvince: { rule: "requireStateOrProvinceForCompanySearch" },
|
|
@@ -3412,7 +3526,7 @@ var businessDetailsFieldsPerScenario = {
|
|
|
3412
3526
|
...taxInformationBase,
|
|
3413
3527
|
...financialInformationBase
|
|
3414
3528
|
},
|
|
3415
|
-
L_PROOFOFADDRESS: {},
|
|
3529
|
+
L_PROOFOFADDRESS: { proofOfAddress: { rule: "REQUIRED" } },
|
|
3416
3530
|
L_REGDOC: { registrationDocument: { rule: "REQUIRED" } },
|
|
3417
3531
|
L_TAXDOC: { taxDocument: { rule: "REQUIRED" } },
|
|
3418
3532
|
L_BAFIN: { legalForm: { rule: "REQUIRED" } }
|
|
@@ -3504,9 +3618,9 @@ var applyFinancialInformation = (form, verifiedData) => {
|
|
|
3504
3618
|
const verifiedFinancialReportingDate = financialInformation.financialReportingDate;
|
|
3505
3619
|
const currentFinancialReportingDate = form.data.companyFinancialInformation?.financialReportingDate;
|
|
3506
3620
|
if (!currentFinancialReportingDate || verifiedFinancialReportingDate && verifiedFinancialReportingDate >= currentFinancialReportingDate) {
|
|
3507
|
-
if (financialInformation.numberOfEmployees != null) form.handleChangeFor("
|
|
3508
|
-
if (financialInformation.financialReportingDate) form.handleChangeFor("
|
|
3509
|
-
if (financialInformation.currency) form.handleChangeFor("
|
|
3621
|
+
if (financialInformation.numberOfEmployees != null) form.handleChangeFor("companyFinancialInformation", "numberOfEmployees")(financialInformation.numberOfEmployees);
|
|
3622
|
+
if (financialInformation.financialReportingDate) form.handleChangeFor("companyFinancialInformation", "financialReportingDate")(financialInformation.financialReportingDate);
|
|
3623
|
+
if (financialInformation.currency) form.handleChangeFor("companyFinancialInformation", "currency")(financialInformation.currency);
|
|
3510
3624
|
/**
|
|
3511
3625
|
* Determine which reported value option to select based on available data
|
|
3512
3626
|
* Priority: balanceSheetTotal > annualTurnover
|
|
@@ -3515,18 +3629,18 @@ var applyFinancialInformation = (form, verifiedData) => {
|
|
|
3515
3629
|
if (selectedReportedValueOption) {
|
|
3516
3630
|
const selectedReportedValue = selectedReportedValueOption === "balanceSheetTotal" ? financialInformation.balanceSheetTotal : financialInformation.annualTurnover;
|
|
3517
3631
|
const nonSelectedReportedValueOption = selectedReportedValueOption === "balanceSheetTotal" ? "annualTurnover" : "balanceSheetTotal";
|
|
3518
|
-
form.handleChangeFor("
|
|
3519
|
-
form.handleChangeFor(
|
|
3520
|
-
form.handleChangeFor(
|
|
3632
|
+
form.handleChangeFor("companyFinancialInformation", "reportedValueOption")(selectedReportedValueOption);
|
|
3633
|
+
form.handleChangeFor("companyFinancialInformation", selectedReportedValueOption)(selectedReportedValue);
|
|
3634
|
+
form.handleChangeFor("companyFinancialInformation", nonSelectedReportedValueOption)(void 0);
|
|
3521
3635
|
}
|
|
3522
3636
|
}
|
|
3523
3637
|
};
|
|
3524
3638
|
var applyVerifiedBusinessData = (form, country, verifiedData) => {
|
|
3525
3639
|
if (!verifiedData) return;
|
|
3526
|
-
form.handleChangeFor("
|
|
3527
|
-
if (country !== CountryCodes.UnitedStates) form.handleChangeFor("
|
|
3640
|
+
form.handleChangeFor("basicInformation", "legalCompanyName")(verifiedData.name);
|
|
3641
|
+
if (country !== CountryCodes.UnitedStates) form.handleChangeFor("basicInformation", "registrationNumber")(verifiedData.registrationNumber);
|
|
3528
3642
|
if (form.defaultData?.additionalInformation?.registrationAddress?.address || form.defaultData?.additionalInformation?.operationalAddress?.address) return;
|
|
3529
|
-
form.handleChangeFor("
|
|
3643
|
+
form.handleChangeFor("companyStructure", "entityType")(mapOrganizationTypeToCompanyType(verifiedData.companyType));
|
|
3530
3644
|
const verifiedAddress = {
|
|
3531
3645
|
...verifiedData.registeredAddress && { registrationAddress: {
|
|
3532
3646
|
...mapAddressData(verifiedData.registeredAddress),
|
|
@@ -3537,9 +3651,9 @@ var applyVerifiedBusinessData = (form, country, verifiedData) => {
|
|
|
3537
3651
|
country
|
|
3538
3652
|
} }
|
|
3539
3653
|
};
|
|
3540
|
-
if (verifiedData.principalPlaceOfBusinessAddress) form.handleChangeFor("
|
|
3541
|
-
if (verifiedAddress.registrationAddress) form.handleChangeFor("
|
|
3542
|
-
if (verifiedAddress.operationalAddress) form.handleChangeFor("
|
|
3654
|
+
if (verifiedData.principalPlaceOfBusinessAddress) form.handleChangeFor("additionalInformation", "operationalAddressIsSame", "input")(false);
|
|
3655
|
+
if (verifiedAddress.registrationAddress) form.handleChangeFor("additionalInformation", "registrationAddress")(verifiedAddress.registrationAddress);
|
|
3656
|
+
if (verifiedAddress.operationalAddress) form.handleChangeFor("additionalInformation", "operationalAddress")(verifiedAddress.operationalAddress);
|
|
3543
3657
|
applyFinancialInformation(form, verifiedData);
|
|
3544
3658
|
};
|
|
3545
3659
|
//#endregion
|
|
@@ -3638,6 +3752,7 @@ function basicInformationValidators({ country, taxIdNumberType, companyType, reg
|
|
|
3638
3752
|
state,
|
|
3639
3753
|
isFeatureEnabled
|
|
3640
3754
|
}, registrationNumberDefaultFieldMetadata).validators,
|
|
3755
|
+
exemptedFromRegistrationNumber: exemptFromRegistrationNumberDefaultFieldMetadata.validators,
|
|
3641
3756
|
jaHaniLegalCompanyName: resolveFieldMetadata(localizedLegalCompanyNameFieldConfig.jaHaniLegalCompanyName.config, {}, localizedLegalCompanyNameFieldConfig.jaHaniLegalCompanyName.metadata).validators,
|
|
3642
3757
|
jaKanaLegalCompanyName: resolveFieldMetadata(localizedLegalCompanyNameFieldConfig.jaKanaLegalCompanyName.config, {}, localizedLegalCompanyNameFieldConfig.jaKanaLegalCompanyName.metadata).validators
|
|
3643
3758
|
};
|
|
@@ -3649,20 +3764,11 @@ function businessSelectionValidators() {
|
|
|
3649
3764
|
errorMessage: "fieldIsRequired"
|
|
3650
3765
|
} };
|
|
3651
3766
|
}
|
|
3652
|
-
function additionalInformationValidators({ country,
|
|
3767
|
+
function additionalInformationValidators({ country, vatNumberType }) {
|
|
3653
3768
|
return {
|
|
3654
3769
|
hasDoingBusinessAs: doingBusinessAsAbsentFieldMetadata.validators,
|
|
3655
3770
|
doingBusinessAs: doingBusinessAsFieldMetadata.validators,
|
|
3656
|
-
|
|
3657
|
-
companyType,
|
|
3658
|
-
registrationNumberType,
|
|
3659
|
-
isFeatureEnabled
|
|
3660
|
-
}, registrationNumberDefaultFieldMetadata).validators,
|
|
3661
|
-
exemptedFromRegistrationNumber: exemptFromRegistrationNumberDefaultFieldMetadata.validators,
|
|
3662
|
-
taxInformation: resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
3663
|
-
taxIdNumberType,
|
|
3664
|
-
companyType
|
|
3665
|
-
}, taxInformationDefaultFieldMetadata).validators,
|
|
3771
|
+
legalEntityIdentifier: legalEntityIdentifierFieldMetadata.validators,
|
|
3666
3772
|
vatNumber: resolveFieldMetadata(defaultFieldConfig$1[country], { vatNumberType }, defaultFieldMetadata$1).validators,
|
|
3667
3773
|
vatAbsenceReason: vatAbsenceReasonMetadata.validators,
|
|
3668
3774
|
eInvoicingCode: eInvoicingCodeFieldMetadata.validators,
|
|
@@ -3680,7 +3786,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3680
3786
|
const { t, i18n } = useTranslation(["common", "business"]);
|
|
3681
3787
|
const userEvents = useAnalyticsContext();
|
|
3682
3788
|
const { isFeatureEnabled } = useToggleContext();
|
|
3683
|
-
const isBusinessDetailsModalEnabled =
|
|
3789
|
+
const isBusinessDetailsModalEnabled = taskType === TaskTypes.BUSINESS_DETAILS;
|
|
3684
3790
|
const { isSettingEnabled } = useSettingsContext();
|
|
3685
3791
|
const { accountHolder } = useAccountHolder();
|
|
3686
3792
|
const logger = createLogger();
|
|
@@ -3709,11 +3815,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3709
3815
|
const companySearchStateModel = useModel(() => new CompanySearchStateModel(userEvents));
|
|
3710
3816
|
const tinMismatchModalOpen = useSignal(false);
|
|
3711
3817
|
const legalArrangementModalOpen = useSignal(false);
|
|
3712
|
-
const defaultForms = useMemo$1(() => getForms(country
|
|
3713
|
-
country,
|
|
3714
|
-
taskType,
|
|
3715
|
-
isFeatureEnabled
|
|
3716
|
-
]);
|
|
3818
|
+
const defaultForms = useMemo$1(() => getForms(country), [country]);
|
|
3717
3819
|
const { data: matchingScenario } = useScenarios(country, LegalEntityTypes.ORGANIZATION);
|
|
3718
3820
|
useEffect$1(() => {
|
|
3719
3821
|
if (!matchingScenario) return;
|
|
@@ -3775,9 +3877,9 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3775
3877
|
documents
|
|
3776
3878
|
]);
|
|
3777
3879
|
const buildFieldValidations = useCallback$1((data) => {
|
|
3778
|
-
const taxInfo = data?.basicInformation?.taxInformation
|
|
3880
|
+
const taxInfo = data?.basicInformation?.taxInformation;
|
|
3779
3881
|
const taxIdType = taxInfo?.length ? taxInfo.find((taxId) => taxId.country === country)?.type : void 0;
|
|
3780
|
-
const regNumberType = data?.basicInformation?.registrationNumberType
|
|
3882
|
+
const regNumberType = data?.basicInformation?.registrationNumberType;
|
|
3781
3883
|
const companyType = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ? CompanyTypesValues.SOLE_PROPRIETORSHIP : data?.companyStructure?.entityType;
|
|
3782
3884
|
return {
|
|
3783
3885
|
basicInformation: basicInformationValidators({
|
|
@@ -3874,7 +3976,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3874
3976
|
setPrevCountry(multiForm.data.basicInformation.country);
|
|
3875
3977
|
setTrustedFields(void 0);
|
|
3876
3978
|
companySearchStateModel.resetCompanySearchData();
|
|
3877
|
-
multiForm.handleChangeFor("
|
|
3979
|
+
multiForm.handleChangeFor("companyStructure", "entityType")(void 0);
|
|
3878
3980
|
}
|
|
3879
3981
|
/**
|
|
3880
3982
|
* Infer the company structure based on the registration number type and tax ID number type
|
|
@@ -3882,7 +3984,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3882
3984
|
* the necessary information to uniquely identify the company structure
|
|
3883
3985
|
*/
|
|
3884
3986
|
const inferredCompanyStructure = useMemo$1(() => {
|
|
3885
|
-
if (
|
|
3987
|
+
if (taskType !== "BUSINESS_DETAILS") return void 0;
|
|
3886
3988
|
if (multiForm.data.companyStructure?.entityType && multiForm.data.companyStructure?.entityType === "associationIncorporated" || multiForm.data.companyStructure?.entityType === "partnershipIncorporated") return;
|
|
3887
3989
|
const registrationNumberType = multiForm.data.basicInformation?.registrationNumberType;
|
|
3888
3990
|
const taxIdNumberType = multiForm.data.basicInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type;
|
|
@@ -3900,7 +4002,6 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3900
4002
|
}, [
|
|
3901
4003
|
accountHolder,
|
|
3902
4004
|
country,
|
|
3903
|
-
isFeatureEnabled,
|
|
3904
4005
|
isSettingEnabled,
|
|
3905
4006
|
legalEntityResponse,
|
|
3906
4007
|
multiForm.data.basicInformation?.exemptedFromRegistrationNumber,
|
|
@@ -3912,7 +4013,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3912
4013
|
const applyInferredCompanyStructure = () => {
|
|
3913
4014
|
if (!inferredCompanyStructure) return;
|
|
3914
4015
|
if (multiForm.data.companyStructure?.entityType === inferredCompanyStructure) return;
|
|
3915
|
-
multiForm.handleChangeFor("
|
|
4016
|
+
multiForm.handleChangeFor("companyStructure", "entityType")(inferredCompanyStructure);
|
|
3916
4017
|
};
|
|
3917
4018
|
const getRequiredForms = useCallback$1((options) => {
|
|
3918
4019
|
return buildRequiredForms({
|
|
@@ -3972,7 +4073,8 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3972
4073
|
forms,
|
|
3973
4074
|
onSubmit: useCallback$1(async () => {
|
|
3974
4075
|
try {
|
|
3975
|
-
|
|
4076
|
+
await submit();
|
|
4077
|
+
setIsAddingBusinessDetails(false);
|
|
3976
4078
|
} catch (error) {
|
|
3977
4079
|
logger.error(error);
|
|
3978
4080
|
} finally {
|
|
@@ -4244,13 +4346,12 @@ function VerifiedBusinessCard({ verifiedBusiness, verifiedAddress }) {
|
|
|
4244
4346
|
}
|
|
4245
4347
|
//#endregion
|
|
4246
4348
|
//#region src/components/Business/forms/AdditionalInformation/AdditionalInformation.tsx
|
|
4247
|
-
var LazyJpAddress = lazy(async () => (await import("./JpAddress-
|
|
4349
|
+
var LazyJpAddress = lazy(async () => (await import("./JpAddress-BtLxuxr9.js")).JpAddress);
|
|
4248
4350
|
var ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
|
|
4249
4351
|
var ADDITIONAL_INFORMATION_FIELDS = [
|
|
4250
4352
|
...DBA_NAME_FIELD,
|
|
4251
|
-
...BUSINESS_REGISTRATION_NUMBER_FIELD,
|
|
4252
|
-
...TAX_INFORMATION_FIELD,
|
|
4253
4353
|
...VAT_NUMBER_FIELD,
|
|
4354
|
+
...LEGAL_ENTITY_IDENTIFIER_FIELD,
|
|
4254
4355
|
...INDUSTRY_CODE_FIELD,
|
|
4255
4356
|
...DATE_OF_INCORPORATION_FIELD,
|
|
4256
4357
|
...STOCK_EXCHANGE_MIC_FIELD,
|
|
@@ -4264,7 +4365,6 @@ var ADDITIONAL_INFORMATION_FIELDS = [
|
|
|
4264
4365
|
var EMPTY_OBJ = {};
|
|
4265
4366
|
function AdditionalInformation({ id, country, companyType, shouldValidate, fieldValidationErrors = EMPTY_OBJ, formVerificationErrors = EMPTY_OBJ }) {
|
|
4266
4367
|
const { t, i18n } = useTranslation(["common", "business"]);
|
|
4267
|
-
const { t: businessT } = useTranslation("business");
|
|
4268
4368
|
const { form } = useFormContext();
|
|
4269
4369
|
const { isFeatureEnabled } = useToggleContext();
|
|
4270
4370
|
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
@@ -4272,7 +4372,6 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4272
4372
|
const showVerified = !!verifiedBusiness;
|
|
4273
4373
|
const showStockData = companyType === CompanyTypesValues.PUBLIC_COMPANY;
|
|
4274
4374
|
const addressSchema = getAddressSchemaForCountry(country).filter((field) => !COUNTRIES_WITH_STATES_DATASET.includes(country) ? field !== "stateOrProvince" : true);
|
|
4275
|
-
const currentCountryTaxInformation = form.data.additionalInformation?.taxInformation?.find((taxId) => taxId.country === country);
|
|
4276
4375
|
const businessLineTypes = [];
|
|
4277
4376
|
if (requestingBanking(rootLegalEntity)) businessLineTypes.push("banking");
|
|
4278
4377
|
if (requestingIssuing(rootLegalEntity)) businessLineTypes.push("issuing");
|
|
@@ -4302,28 +4401,28 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4302
4401
|
]);
|
|
4303
4402
|
const registrationAddressValid = useRef$1(false);
|
|
4304
4403
|
const operationalAddressValid = useRef$1(false);
|
|
4305
|
-
if (form.valid.additionalInformation?.registrationAddress !== registrationAddressValid.current) form.setValid("registrationAddress", registrationAddressValid.current
|
|
4306
|
-
if (form.data.additionalInformation?.operationalAddressIsSame
|
|
4307
|
-
const handleChangeFor = useCallback$1((fieldName, mode) => form.handleChangeFor(
|
|
4404
|
+
if (form.valid.additionalInformation?.registrationAddress !== registrationAddressValid.current) form.setValid("additionalInformation", "registrationAddress", registrationAddressValid.current);
|
|
4405
|
+
if (!form.data.additionalInformation?.operationalAddressIsSame && form.valid.additionalInformation?.operationalAddress !== operationalAddressValid.current) form.setValid("additionalInformation", "operationalAddress", operationalAddressValid.current);
|
|
4406
|
+
const handleChangeFor = useCallback$1((fieldName, mode) => form.handleChangeFor("additionalInformation", fieldName, mode), [form]);
|
|
4308
4407
|
const handleRegistrationAddressChange = (state) => {
|
|
4309
4408
|
handleChangeFor("registrationAddress")(state.data);
|
|
4310
|
-
form.setValid("registrationAddress", Boolean(state.isValid)
|
|
4409
|
+
form.setValid("additionalInformation", "registrationAddress", Boolean(state.isValid));
|
|
4311
4410
|
registrationAddressValid.current = Boolean(state.isValid);
|
|
4312
4411
|
};
|
|
4313
4412
|
const handleOperationalAddressChange = (state) => {
|
|
4314
4413
|
handleChangeFor("operationalAddress")(state.data);
|
|
4315
|
-
form.setValid("operationalAddress", Boolean(state.isValid)
|
|
4414
|
+
form.setValid("additionalInformation", "operationalAddress", Boolean(state.isValid));
|
|
4316
4415
|
operationalAddressValid.current = Boolean(state.isValid);
|
|
4317
4416
|
};
|
|
4318
4417
|
const handleOperationalAddressIsSameChange = useCallback$1((isChecked) => {
|
|
4319
4418
|
if (isChecked) {
|
|
4320
|
-
handleChangeFor("operationalAddressIsSame")(
|
|
4321
|
-
form.setValid("operationalAddress", true
|
|
4322
|
-
} else handleChangeFor("operationalAddressIsSame")(
|
|
4419
|
+
handleChangeFor("operationalAddressIsSame")(true);
|
|
4420
|
+
form.setValid("additionalInformation", "operationalAddress", true);
|
|
4421
|
+
} else handleChangeFor("operationalAddressIsSame")(false);
|
|
4323
4422
|
}, [form, handleChangeFor]);
|
|
4324
4423
|
if (form.data.additionalInformation?.operationalAddressIsSame === null) handleOperationalAddressIsSameChange(true);
|
|
4325
4424
|
useEffect$1(() => {
|
|
4326
|
-
if (mustProvideOperationalAddress && form.data.additionalInformation?.operationalAddressIsSame
|
|
4425
|
+
if (mustProvideOperationalAddress && form.data.additionalInformation?.operationalAddressIsSame) handleOperationalAddressIsSameChange(false);
|
|
4327
4426
|
}, [
|
|
4328
4427
|
handleOperationalAddressIsSameChange,
|
|
4329
4428
|
mustProvideOperationalAddress,
|
|
@@ -4347,11 +4446,6 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4347
4446
|
switch (field) {
|
|
4348
4447
|
case "hasDoingBusinessAs": return mergeFieldMetadataIntoProps("hasDoingBusinessAs", doingBusinessAsAbsentFieldMetadata, acc);
|
|
4349
4448
|
case "doingBusinessAs": return mergeFieldMetadataIntoProps("doingBusinessAs", doingBusinessAsFieldMetadata, acc);
|
|
4350
|
-
case "registrationNumber": return mergeFieldMetadataIntoProps(field, resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], { registrationNumberType: form.data.additionalInformation?.registrationNumberType }, registrationNumberDefaultFieldMetadata), acc);
|
|
4351
|
-
case "taxInformation": return mergeFieldMetadataIntoProps(field, resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
4352
|
-
taxIdNumberType: currentCountryTaxInformation?.type,
|
|
4353
|
-
companyType
|
|
4354
|
-
}, taxInformationDefaultFieldMetadata), acc);
|
|
4355
4449
|
case "vatNumber": return mergeFieldMetadataIntoProps(field, resolveFieldMetadata(defaultFieldConfig$1[country], { vatNumberType: form.data.additionalInformation?.vatNumberType }, defaultFieldMetadata$1), acc);
|
|
4356
4450
|
case "vatAbsenceReason": return mergeFieldMetadataIntoProps("vatAbsenceReason", vatAbsenceReasonMetadata, acc);
|
|
4357
4451
|
case "eInvoicingCode": return mergeFieldMetadataIntoProps("eInvoicingCode", eInvoicingCodeFieldMetadata, acc);
|
|
@@ -4366,9 +4460,7 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4366
4460
|
}, initialProps);
|
|
4367
4461
|
return createFormUtils(formUtilProps ?? initialProps, t);
|
|
4368
4462
|
}, [
|
|
4369
|
-
companyType,
|
|
4370
4463
|
country,
|
|
4371
|
-
currentCountryTaxInformation?.type,
|
|
4372
4464
|
form.allFields?.additionalInformation,
|
|
4373
4465
|
form.data.additionalInformation,
|
|
4374
4466
|
form.errors.additionalInformation,
|
|
@@ -4454,37 +4546,6 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4454
4546
|
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
4455
4547
|
handleChangeFor
|
|
4456
4548
|
}),
|
|
4457
|
-
showField(BUSINESS_REGISTRATION_NUMBER_FIELD) && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
4458
|
-
data: formUtils.getFieldData(form.data.additionalInformation ?? {}, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
4459
|
-
valid: formUtils.getFieldValid(form.valid.additionalInformation ?? {}, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
4460
|
-
errors: formUtils.getFieldErrors(form.errors.additionalInformation ?? {}, fieldValidationErrors, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
4461
|
-
helperText: getRegistrationNumberHelperText(businessT, {
|
|
4462
|
-
country,
|
|
4463
|
-
companyType
|
|
4464
|
-
}),
|
|
4465
|
-
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
4466
|
-
optional: formUtils.isOptionalField("registrationNumber"),
|
|
4467
|
-
shouldValidate,
|
|
4468
|
-
handleChangeFor,
|
|
4469
|
-
country,
|
|
4470
|
-
canExempt: showField(["exemptedFromRegistrationNumber"]),
|
|
4471
|
-
companyType
|
|
4472
|
-
}),
|
|
4473
|
-
showField(TAX_INFORMATION_FIELD) && /* @__PURE__ */ jsx(TaxInformationField, {
|
|
4474
|
-
data: formUtils.getFieldData(form.data.additionalInformation ?? {}, TAX_INFORMATION_FIELD),
|
|
4475
|
-
valid: formUtils.getFieldValid(form.valid.additionalInformation ?? {}, TAX_INFORMATION_FIELD),
|
|
4476
|
-
errors: formUtils.getFieldErrors(form.errors.additionalInformation ?? {}, fieldValidationErrors, TAX_INFORMATION_FIELD),
|
|
4477
|
-
labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, { exemptedFromTax: "iDontHaveATaxId" }),
|
|
4478
|
-
mask: formUtils.getMask("taxInformation"),
|
|
4479
|
-
readonly: formUtils.isReadOnly("taxInformation"),
|
|
4480
|
-
shouldValidate,
|
|
4481
|
-
handleChangeFor,
|
|
4482
|
-
canExempt: showField(["exemptedFromTax"]),
|
|
4483
|
-
country,
|
|
4484
|
-
entityType: companyType,
|
|
4485
|
-
defaultData: form.defaultData?.additionalInformation?.taxInformation,
|
|
4486
|
-
registrationNumber: form.data.additionalInformation?.registrationNumber
|
|
4487
|
-
}),
|
|
4488
4549
|
showField(VAT_NUMBER_FIELD) && /* @__PURE__ */ jsx(VatNumberField, {
|
|
4489
4550
|
data: formUtils.getFieldData(form.data.additionalInformation ?? {}, VAT_NUMBER_FIELD),
|
|
4490
4551
|
valid: formUtils.getFieldValid(form.valid.additionalInformation ?? {}, VAT_NUMBER_FIELD),
|
|
@@ -4497,6 +4558,12 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4497
4558
|
canExempt: showField(["exemptedFromVat"]),
|
|
4498
4559
|
shouldValidate
|
|
4499
4560
|
}),
|
|
4561
|
+
showField(LEGAL_ENTITY_IDENTIFIER_FIELD) && /* @__PURE__ */ jsx(LegalEntityIdentifierField, {
|
|
4562
|
+
data: formUtils.getFieldData(form.data.additionalInformation ?? {}, LEGAL_ENTITY_IDENTIFIER_FIELD),
|
|
4563
|
+
valid: formUtils.getFieldValid(form.valid.additionalInformation ?? {}, LEGAL_ENTITY_IDENTIFIER_FIELD),
|
|
4564
|
+
errors: formUtils.getFieldErrors(form.errors.additionalInformation ?? {}, fieldValidationErrors, LEGAL_ENTITY_IDENTIFIER_FIELD),
|
|
4565
|
+
handleChangeFor
|
|
4566
|
+
}),
|
|
4500
4567
|
formUtils.isRequiredField("eInvoicingCode", false) && /* @__PURE__ */ jsx(EInvoicingCodeField, {
|
|
4501
4568
|
data: formUtils.getFieldData(form.data.additionalInformation ?? {}, EINVOICING_CODE_FIELD),
|
|
4502
4569
|
valid: formUtils.getFieldValid(form.valid.additionalInformation ?? {}, EINVOICING_CODE_FIELD),
|
|
@@ -4633,17 +4700,17 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4633
4700
|
"aria-invalid": !form.valid.additionalInformation?.operationalAddressIsSame,
|
|
4634
4701
|
name: "operationalAddressIsSame",
|
|
4635
4702
|
label: formUtils.getLabel("sameAsRegisteredAddress"),
|
|
4636
|
-
checked: form.data.additionalInformation?.operationalAddressIsSame
|
|
4703
|
+
checked: !!form.data.additionalInformation?.operationalAddressIsSame,
|
|
4637
4704
|
onChange: handleOperationalAddressIsSameChange
|
|
4638
4705
|
})
|
|
4639
4706
|
}),
|
|
4640
|
-
form.data.additionalInformation?.operationalAddressIsSame
|
|
4707
|
+
!form.data.additionalInformation?.operationalAddressIsSame && (showJapanLocalization ? /* @__PURE__ */ jsx(Suspense, {
|
|
4641
4708
|
fallback: /* @__PURE__ */ jsx(Loader, {}),
|
|
4642
4709
|
children: /* @__PURE__ */ jsx(LazyJpAddress, {
|
|
4643
4710
|
id: ADDITIONAL_INFORMATION_FORM_ID,
|
|
4644
4711
|
addressType: "operationalAddress",
|
|
4645
4712
|
data: {
|
|
4646
|
-
...form.data.additionalInformation
|
|
4713
|
+
...form.data.additionalInformation?.operationalAddress,
|
|
4647
4714
|
country
|
|
4648
4715
|
},
|
|
4649
4716
|
shouldValidate,
|
|
@@ -4676,23 +4743,15 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4676
4743
|
}
|
|
4677
4744
|
//#endregion
|
|
4678
4745
|
//#region src/components/Business/forms/BusinessDetails/forms.ts
|
|
4679
|
-
var FIELDS_NEEDED_FOR_COMPANY_SEARCH = [
|
|
4680
|
-
...STATE_FIELD,
|
|
4681
|
-
...TAX_INFORMATION_FIELD,
|
|
4682
|
-
...BUSINESS_REGISTRATION_NUMBER_FIELD
|
|
4683
|
-
];
|
|
4684
|
-
var getBasicInformationFields = (country, taskType, isFeatureEnabled) => {
|
|
4685
|
-
if (!isUsingCompanySearch(country, taskType)) return isFeatureEnabled("EnableUnifiedCompanySearch") ? BASIC_INFORMATION_FIELDS : BASIC_INFORMATION_FIELDS.filter((field) => !FIELDS_NEEDED_FOR_COMPANY_SEARCH.includes(field));
|
|
4686
|
-
return BASIC_INFORMATION_FIELDS;
|
|
4687
|
-
};
|
|
4688
|
-
var getAdditionalInformationFields = (country, taskType, isFeatureEnabled) => {
|
|
4689
|
-
if (isUsingCompanySearch(country, taskType) || isFeatureEnabled("EnableUnifiedCompanySearch")) return ADDITIONAL_INFORMATION_FIELDS.filter((field) => !FIELDS_NEEDED_FOR_COMPANY_SEARCH.includes(field));
|
|
4690
|
-
return ADDITIONAL_INFORMATION_FIELDS;
|
|
4691
|
-
};
|
|
4692
4746
|
var getFinancialInformationFields = (country) => {
|
|
4693
4747
|
return country === CountryCodes.UnitedKingdom ? financialInformationFields : financialInformationFieldsForEu;
|
|
4694
4748
|
};
|
|
4695
4749
|
var staticBusinessDetailsForms = {
|
|
4750
|
+
basicInformation: {
|
|
4751
|
+
formId: "basicInformation",
|
|
4752
|
+
formName: "basicInformationFormName",
|
|
4753
|
+
fields: BASIC_INFORMATION_FIELDS
|
|
4754
|
+
},
|
|
4696
4755
|
businessSelection: {
|
|
4697
4756
|
formId: "businessSelection",
|
|
4698
4757
|
formName: "businessSelectionFormName",
|
|
@@ -4703,6 +4762,11 @@ var staticBusinessDetailsForms = {
|
|
|
4703
4762
|
formName: "companyStructureFormName",
|
|
4704
4763
|
fields: COMPANY_STRUCTURE_FIELDS
|
|
4705
4764
|
},
|
|
4765
|
+
additionalInformation: {
|
|
4766
|
+
formId: "additionalInformation",
|
|
4767
|
+
formName: "additionalInformationFormName",
|
|
4768
|
+
fields: ADDITIONAL_INFORMATION_FIELDS
|
|
4769
|
+
},
|
|
4706
4770
|
companyRegistrationDocument: {
|
|
4707
4771
|
formId: "companyRegistrationDocument",
|
|
4708
4772
|
formName: "companyRegistrationDocumentFormName",
|
|
@@ -4723,6 +4787,11 @@ var staticBusinessDetailsForms = {
|
|
|
4723
4787
|
formName: "proofOfSignatoryFormName",
|
|
4724
4788
|
fields: ["proofOfSignatory"]
|
|
4725
4789
|
},
|
|
4790
|
+
companyProofOfAddressDocument: {
|
|
4791
|
+
formId: "companyProofOfAddressDocument",
|
|
4792
|
+
formName: "proofOfAddressFormName",
|
|
4793
|
+
fields: ["proofOfAddress"]
|
|
4794
|
+
},
|
|
4726
4795
|
companyProofOfOwnershipDocument: {
|
|
4727
4796
|
formId: "companyProofOfOwnershipDocument",
|
|
4728
4797
|
formName: "proofOfOwnershipFormName",
|
|
@@ -4734,23 +4803,16 @@ var staticBusinessDetailsForms = {
|
|
|
4734
4803
|
fields: ["constitutionalDocument"]
|
|
4735
4804
|
}
|
|
4736
4805
|
};
|
|
4737
|
-
var getForms = (country
|
|
4738
|
-
basicInformation:
|
|
4739
|
-
formId: "basicInformation",
|
|
4740
|
-
formName: "basicInformationFormName",
|
|
4741
|
-
fields: getBasicInformationFields(country, taskType, isFeatureEnabled)
|
|
4742
|
-
},
|
|
4806
|
+
var getForms = (country) => ({
|
|
4807
|
+
basicInformation: staticBusinessDetailsForms.basicInformation,
|
|
4743
4808
|
businessSelection: staticBusinessDetailsForms.businessSelection,
|
|
4744
4809
|
companyStructure: staticBusinessDetailsForms.companyStructure,
|
|
4745
|
-
additionalInformation:
|
|
4746
|
-
formId: "additionalInformation",
|
|
4747
|
-
formName: "additionalInformationFormName",
|
|
4748
|
-
fields: getAdditionalInformationFields(country, taskType, isFeatureEnabled)
|
|
4749
|
-
},
|
|
4810
|
+
additionalInformation: staticBusinessDetailsForms.additionalInformation,
|
|
4750
4811
|
companyRegistrationDocument: staticBusinessDetailsForms.companyRegistrationDocument,
|
|
4751
4812
|
companyTaxDocument: staticBusinessDetailsForms.companyTaxDocument,
|
|
4752
4813
|
companyProofOfDirectorDocument: staticBusinessDetailsForms.companyProofOfDirectorDocument,
|
|
4753
4814
|
companyProofOfSignatoryDocument: staticBusinessDetailsForms.companyProofOfSignatoryDocument,
|
|
4815
|
+
companyProofOfAddressDocument: staticBusinessDetailsForms.companyProofOfAddressDocument,
|
|
4754
4816
|
companyProofOfOwnershipDocument: staticBusinessDetailsForms.companyProofOfOwnershipDocument,
|
|
4755
4817
|
companyFinancialInformation: {
|
|
4756
4818
|
formId: "companyFinancialInformation",
|
|
@@ -4764,6 +4826,7 @@ var documentFormsIds = [
|
|
|
4764
4826
|
"companyTaxDocument",
|
|
4765
4827
|
"companyProofOfDirectorDocument",
|
|
4766
4828
|
"companyProofOfSignatoryDocument",
|
|
4829
|
+
"companyProofOfAddressDocument",
|
|
4767
4830
|
"companyConstitutionalDocument",
|
|
4768
4831
|
"companyProofOfOwnershipDocument"
|
|
4769
4832
|
];
|