@adyen/kyc-components 4.15.0 → 4.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-BD_JroRz.js → AcceptTermsOfServiceComponent-CmtFeS0G.js} +5 -5
- package/dist/{AccountSetupRejected-DHKfPNWa.js → AccountSetupRejected-SL49fuK1.js} +1 -1
- package/dist/{AdaptiveWorkflow-DGgHx41m.js → AdaptiveWorkflow-Dm_oZAtl.js} +17 -19
- package/dist/{AdaptiveWorkflowComponent-DBh9g5IV.js → AdaptiveWorkflowComponent-M-n5xnz9.js} +2 -2
- package/dist/{Address-3TDVgqVq.js → Address-Bsm5AJWG.js} +5 -5
- package/dist/{BusinessFinancingDropin-cDfjI956.js → BusinessFinancingDropin-CYFujr_t.js} +14 -14
- package/dist/{BusinessFinancingPage-tyRFXqyJ.js → BusinessFinancingPage-DZpGJikD.js} +2 -2
- package/dist/{BusinessTypeSelectionPage-B6QWvxOC.js → BusinessTypeSelectionPage-BcEwSu-j.js} +6 -6
- package/dist/{CompanyRegistrationNumberTypeSelector-DMiBUq8k.js → CompanyRegistrationNumberTypeSelector-5zZnchK5.js} +14 -19
- package/dist/{ContactDetails-DH-7icLz.js → ContactDetails-JvG4ofw4.js} +3 -3
- package/dist/{ContextGuidance-BZSXDHz_.js → ContextGuidance-CPo1RXqO.js} +1 -1
- package/dist/{CountryField-BzmcE2_J.js → CountryField-DV9ce-qa.js} +2 -2
- package/dist/{Currency-B4whLGUA.js → Currency-BdWx4a7F.js} +2 -2
- package/dist/{CustomerSupport-C3MMJwgg.js → CustomerSupport-Bj2PXXUS.js} +8 -8
- package/dist/{DebugModal-R0t5596v.js → DebugModal-DOrbJ9GB.js} +3 -3
- package/dist/{DecisionMakerDetails-B3xGLPb_.js → DecisionMakerDetails-2SRSTivT.js} +3 -3
- package/dist/{DecisionMakerDetailsPage-D_sUcbU3.js → DecisionMakerDetailsPage-l-Z8TwIm.js} +4 -4
- package/dist/{DecisionMakers-BSuidRNb.js → DecisionMakers-BikexMpU.js} +8 -8
- package/dist/{Dropzone-xSD_bSLX.js → Dropzone-Cl1Hoy90.js} +2 -2
- package/dist/{EntityAssociation-43kxknUP.js → EntityAssociation-DT-LshYE.js} +1 -1
- package/dist/{ErrorPanel-CuEJ_HT4.js → ErrorPanel-B46gDhCD.js} +2 -2
- package/dist/{IndividualDropin-CSMTVLJ3.js → IndividualDropin-CMVrIxMy.js} +24 -24
- package/dist/{Introduction-8jt1Icuf.js → Introduction-DUay4S7_.js} +2 -2
- package/dist/{InvitedDecisionMakerComponent-m4eUD2iO.js → InvitedDecisionMakerComponent-B9vjrn0y.js} +3 -3
- package/dist/{JpAddress-DvbjlTPx.js → JpAddress-Dq7JWIH7.js} +4 -4
- package/dist/{LegalCompanyNameField-Cvt-DCIQ.js → LegalCompanyNameField-B5CmBTd4.js} +1 -1
- package/dist/{LegalRepresentativeDetailsPage-ChxFRYnO.js → LegalRepresentativeDetailsPage-DxLcXGYa.js} +4 -4
- package/dist/{MaskedInput-CH07iWkV.js → MaskedInput-BqBhlwWa.js} +1 -1
- package/dist/{MaybeModal-Cjfte2wk.js → MaybeModal-BkZ_5yv-.js} +1 -1
- package/dist/{NewSummary-NGM7pziq.js → NewSummary-1AO56RTG.js} +1 -1
- package/dist/{PayoutDetailsDropinMultiForm-CHp4V3li.js → PayoutDetailsDropinMultiForm-BZvGdfFw.js} +15 -15
- package/dist/{PayoutDetailsPage-qTCWLiy2.js → PayoutDetailsPage-D5yoTUCH.js} +5 -5
- package/dist/{Review-0jYjm7mz.js → Review-7JasUcjy.js} +2 -2
- package/dist/{RootBusinessDetailsPage-ZKJgWqTt.js → RootBusinessDetailsPage-DBJNNiGc.js} +6 -7
- package/dist/{RootBusinessLinesPage-ETBGq9mn.js → RootBusinessLinesPage-CZGtgE0q.js} +11 -11
- package/dist/{RootIndividualDetailsPage-pnAGbzVX.js → RootIndividualDetailsPage-BSwFuPHf.js} +4 -4
- package/dist/{Select-CvIMIYjl.js → Select-CS2E69CJ.js} +4 -2
- package/dist/{SignPCIComponent-fIeeQr0e.js → SignPCIComponent-Bfu0wgMM.js} +5 -5
- package/dist/{SingpassSelection-D-zNII-R.js → SingpassSelection-BgdopRjs.js} +1 -1
- package/dist/{SoleProprietorshipPage-DQBeFTli.js → SoleProprietorshipPage-BlAc34Pn.js} +5 -5
- package/dist/{SourceOfFundsPage-C4lmfCgC.js → SourceOfFundsPage-Dv_NJVKv.js} +12 -12
- package/dist/{Summary-pmGPpwSj.js → Summary-DxQMUvRi.js} +2 -2
- package/dist/{TaskListItem-Df7o0R3U.js → TaskListItem-DOTrEZ9e.js} +3 -3
- package/dist/{TaxInformationField-BzqeMMNO.js → TaxInformationField-jNgSdv5g.js} +11 -13
- package/dist/{TaxReportingDropin-BbauusqJ.js → TaxReportingDropin-Hmtz9tal.js} +5 -5
- package/dist/{TrustDetailsPage-B25Yd72w.js → TrustDetailsPage-CvNFzktD.js} +20 -20
- package/dist/{TrustMemberCompanyPage-CJKlw747.js → TrustMemberCompanyPage-DM72ABzz.js} +6 -6
- package/dist/{TrustMemberIndividualPage-DU25T4xS.js → TrustMemberIndividualPage-CYq1D4W7.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-DkJKPaXP.js → TrustMemberRoleAndTypePage-q6yEVUDR.js} +10 -10
- package/dist/{TrustMembersOverview-CPGee5kS.js → TrustMembersOverview-D48OqAzS.js} +6 -6
- package/dist/{UnincorporatedPartnershipIndividualPage-AXa9Jkgx.js → UnincorporatedPartnershipIndividualPage-DnhI0TNp.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DdytGaBE.js → UnincorporatedPartnershipMemberCompanyPage-DRt-i8Pj.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-C8kcJPOV.js → UnincorporatedPartnershipMemberRoleAndTypePage-Bilfz6Qs.js} +2 -2
- package/dist/{UnincorporatedPartnershipMembersOverview-490CDTY8.js → UnincorporatedPartnershipMembersOverview-BKqB9JWc.js} +3 -3
- package/dist/{VerificationErrorAlert-C1lNcNtx.js → VerificationErrorAlert-CItpN9Id.js} +2 -2
- package/dist/{accountHolderUtils-BHZeFpzE.js → accountHolderUtils-Cq0fdep_.js} +1 -1
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +4 -4
- package/dist/adyen-individual-status.js +1 -1
- package/dist/adyen-invited-decision-maker.js +2 -2
- package/dist/adyen-onboarding.js +39 -39
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +1 -1
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +5 -5
- package/dist/adyen-verification-status.js +1 -1
- package/dist/{constants-0Q_7xGKq.js → constants-6Hdf6hNy.js} +2 -2
- package/dist/{getProblemsForEntity-CXzgYL6R.js → getProblemsForEntity-CQX49pBy.js} +1 -1
- package/dist/{invalidateRootLegalEntity-Tyg8nMBI.js → invalidateRootLegalEntity-Cg46D4Ef.js} +1 -1
- package/dist/{mapLegalEntityToIndividualSchema-BUIjjkrb.js → mapLegalEntityToIndividualSchema-96tUxxLB.js} +1 -1
- package/dist/{mapTransferInstrumentToPayoutAccount-DZMqLmU8.js → mapTransferInstrumentToPayoutAccount-CUM6S0kM.js} +1 -1
- package/dist/{omitObscuredFieldsIfUnchanged-xfvMpTn9.js → omitObscuredFieldsIfUnchanged-CxUdW_hs.js} +1 -1
- package/dist/{patternValidators-CIMz_tiU.js → patternValidators-Df7_l0ZR.js} +1 -1
- package/dist/{process-field-configurations-n3ecaPQ8.js → process-field-configurations-BxW_4vT6.js} +1 -1
- package/dist/{processCapabilities-hLmRus8U.js → processCapabilities-CTUJbebx.js} +5 -7
- package/dist/{resolveEnvironment-C3pxOwlh.js → resolveEnvironment-B3XdWKTk.js} +7 -11
- package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +1 -2
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +1 -3
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +12 -7
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -2
- 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/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/context/ToggleContext/types.d.ts +0 -4
- package/dist/{useBusinessDetailsData-Bnqxr1vB.js → useBusinessDetailsData-CdOak9Wq.js} +72 -167
- package/dist/{useCanSeeIntroduction-0_NPWoZG.js → useCanSeeIntroduction-CNNn9cts.js} +1 -1
- package/dist/{useDataMissingRemediations-CrKtd_Fd.js → useDataMissingRemediations-IH7p5j8V.js} +1 -1
- package/dist/{useForm-aetR7uJY.js → useForm-B3Jo_Jbx.js} +1 -1
- package/dist/{useFormContext-Dr4l-QjT.js → useFormContext-D-d0WyQm.js} +3 -3
- package/dist/{useMultiForm-DKxfY1kQ.js → useMultiForm-D_17VPX_.js} +1 -1
- package/dist/{useNavigate-DCmX3vhp.js → useNavigate-CsnYf5i1.js} +30 -30
- package/dist/{useTrustMembers-sJ-e7GJ3.js → useTrustMembers-NkM-hgOm.js} +1 -1
- package/dist/{useUpdateLegalEntity-B8WoiNVo.js → useUpdateLegalEntity-BEzBO8ny.js} +1 -1
- package/dist/{ConstitutionalDocument-CAcre-q4.js → utils-BAPGRNO9.js} +135 -137
- package/dist/{utils-siyZuj_8.js → utils-BzpnzDBD.js} +13 -18
- package/dist/{utils-CwzT0-IU.js → utils-CB9oLqgE.js} +2 -2
- package/dist/{validate-BqauOvvu.js → validate-BqYHsBzg.js} +1 -1
- package/dist/{validateExtractionResult-CCrDT5AB.js → validateExtractionResult-CLJ93Tay.js} +3 -3
- package/dist/{validationError-DqjDv5Q-.js → validationError-Bny-1EE5.js} +1 -1
- package/package.json +1 -1
|
@@ -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] = "61d26389-ea8d-48b8-91d8-a18d57d52cee", e._sentryDebugIdIdentifier = "sentry-dbid-61d26389-ea8d-48b8-91d8-a18d57d52cee");
|
|
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-B3XdWKTk.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 businessDetailsDocumentMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsComponentsKeyMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-
|
|
17
|
+
import { _ as businessDetailsDocumentMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsComponentsKeyMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-CTUJbebx.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-Cg46D4Ef.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-BEzBO8ny.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-Bsm5AJWG.js";
|
|
34
|
+
import { i as FormFlow, n as addValidityToForms, o as useFormComposer, s as FormContextProvider, t as useFormContext } from "./useFormContext-D-d0WyQm.js";
|
|
35
|
+
import { n as composePerScenarioFormConfigurations, r as getPropsFromConfigurations } from "./process-field-configurations-BxW_4vT6.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-B46gDhCD.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-DxQMUvRi.js";
|
|
40
|
+
import { t as useMultiForm } from "./useMultiForm-D_17VPX_.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-BqBhlwWa.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-Bny-1EE5.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-jNgSdv5g.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-Df7_l0ZR.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-BzpnzDBD.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-DV9ce-qa.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-BdWx4a7F.js";
|
|
73
|
+
import { n as SummarySection, t as NewSummary } from "./NewSummary-1AO56RTG.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-5zZnchK5.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, d as operationalAddressIsSameIds, 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-BAPGRNO9.js";
|
|
80
|
+
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-6Hdf6hNy.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-B5CmBTd4.js";
|
|
82
|
+
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-CB9oLqgE.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";
|
|
@@ -580,8 +580,7 @@ function BasicInformation({ id, country, shouldValidate, fieldValidationErrors =
|
|
|
580
580
|
registrationNumber: form.data.basicInformation?.registrationNumber,
|
|
581
581
|
country,
|
|
582
582
|
entityType: companyType,
|
|
583
|
-
defaultData: form.defaultData?.basicInformation?.taxInformation
|
|
584
|
-
invertCompanyTypeFilter: isFeatureEnabled("EnableUnifiedCompanySearch")
|
|
583
|
+
defaultData: form.defaultData?.basicInformation?.taxInformation
|
|
585
584
|
}),
|
|
586
585
|
showField(BUSINESS_REGISTRATION_NUMBER_FIELD) && /* @__PURE__ */ jsx(BusinessRegistrationNumberField, {
|
|
587
586
|
data: formUtils.getFieldData(form.data.basicInformation ?? {}, BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
@@ -598,8 +597,7 @@ function BasicInformation({ id, country, shouldValidate, fieldValidationErrors =
|
|
|
598
597
|
country,
|
|
599
598
|
state,
|
|
600
599
|
canExempt: showField(["exemptedFromRegistrationNumber"]),
|
|
601
|
-
companyType
|
|
602
|
-
invertCompanyTypeFilter: isFeatureEnabled("EnableUnifiedCompanySearch")
|
|
600
|
+
companyType
|
|
603
601
|
})
|
|
604
602
|
] })
|
|
605
603
|
]
|
|
@@ -1201,16 +1199,15 @@ function CompanyStructure({ id, country, fieldValidationErrors = EMPTY_OBJ$3, fo
|
|
|
1201
1199
|
const { rootLegalEntityId } = useApiContext();
|
|
1202
1200
|
const { data: legalEntity } = useLegalEntity(rootLegalEntityId.value);
|
|
1203
1201
|
const { isSettingEnabled } = useSettingsContext();
|
|
1204
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
1205
1202
|
const formUtils = createFormUtils({ requiredFields: form.requiredFields?.companyStructure ?? [] }, t);
|
|
1206
1203
|
const registrationNumberType = form.data.basicInformation?.registrationNumberType;
|
|
1207
1204
|
const taxIdNumberType = form.data.basicInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type;
|
|
1208
1205
|
const registrationNumberExempt = form.data.basicInformation?.exemptedFromRegistrationNumber;
|
|
1209
1206
|
const availableCompanyTypeRadioOptions = getAvailableCompanyStructures({
|
|
1210
1207
|
country,
|
|
1211
|
-
registrationNumberType
|
|
1212
|
-
registrationNumberExempt
|
|
1213
|
-
taxIdNumberType
|
|
1208
|
+
registrationNumberType,
|
|
1209
|
+
registrationNumberExempt,
|
|
1210
|
+
taxIdNumberType,
|
|
1214
1211
|
legalEntity,
|
|
1215
1212
|
accountHolder,
|
|
1216
1213
|
isSettingEnabled
|
|
@@ -2174,15 +2171,15 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2174
2171
|
if (!COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) return data.additionalInformation?.exemptedFromVat ? "REQUIRED" : "OPTIONAL";
|
|
2175
2172
|
},
|
|
2176
2173
|
countryUsesTaxId: () => {
|
|
2177
|
-
const isExemptFromTax = Boolean(data.basicInformation?.exemptedFromTax
|
|
2174
|
+
const isExemptFromTax = Boolean(data.basicInformation?.exemptedFromTax);
|
|
2178
2175
|
const isOrgWithBanking = rootLegalEntity?.type === "organization" && keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount");
|
|
2179
|
-
const registrationNumberType =
|
|
2176
|
+
const registrationNumberType = data.basicInformation?.registrationNumberType;
|
|
2180
2177
|
if (TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION.includes(country) && isOrgWithBanking) return isExemptFromTax ? "OPTIONAL" : "REQUIRED";
|
|
2181
2178
|
if (country === CountryCodes.Italy && isOrgWithBanking && registrationNumberType === "CCIAA") return isExemptFromTax ? "OPTIONAL" : "REQUIRED";
|
|
2182
2179
|
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
2180
|
},
|
|
2184
2181
|
companyRegistrationNumberExemptionAllowed: () => {
|
|
2185
|
-
const isExemptFromRegistrationNumber = Boolean(data.basicInformation?.exemptedFromRegistrationNumber
|
|
2182
|
+
const isExemptFromRegistrationNumber = Boolean(data.basicInformation?.exemptedFromRegistrationNumber);
|
|
2186
2183
|
if (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) {
|
|
2187
2184
|
if (!COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS.includes(country)) return;
|
|
2188
2185
|
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
@@ -2199,7 +2196,7 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2199
2196
|
*/
|
|
2200
2197
|
switch (country) {
|
|
2201
2198
|
case CountryCodes.HongKong:
|
|
2202
|
-
if (!defaultData?.basicInformation?.registrationNumber
|
|
2199
|
+
if (!defaultData?.basicInformation?.registrationNumber) return;
|
|
2203
2200
|
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
2204
2201
|
case CountryCodes.Australia:
|
|
2205
2202
|
case CountryCodes.NewZealand:
|
|
@@ -2212,7 +2209,7 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2212
2209
|
if (isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies") && COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(data.basicInformation?.country)) return "REQUIRED";
|
|
2213
2210
|
},
|
|
2214
2211
|
countryRequiresRegistrationNumber: () => {
|
|
2215
|
-
const isExemptFromRegistrationNumber = Boolean(data.basicInformation?.exemptedFromRegistrationNumber
|
|
2212
|
+
const isExemptFromRegistrationNumber = Boolean(data.basicInformation?.exemptedFromRegistrationNumber);
|
|
2216
2213
|
switch (taskType) {
|
|
2217
2214
|
case TaskTypes.SOLE_PROPRIETOR_COMPANY:
|
|
2218
2215
|
if (COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country)) return;
|
|
@@ -2221,7 +2218,7 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2221
2218
|
default:
|
|
2222
2219
|
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
2223
2220
|
if (country === CountryCodes.HongKong) {
|
|
2224
|
-
if (!defaultData?.
|
|
2221
|
+
if (!defaultData?.basicInformation?.registrationNumber) return;
|
|
2225
2222
|
return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
|
|
2226
2223
|
}
|
|
2227
2224
|
if (!COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return isExemptFromRegistrationNumber ? void 0 : "REQUIRED";
|
|
@@ -2243,7 +2240,7 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2243
2240
|
if (COUNTRIES_THAT_USES_UEN_OR_GST.includes(country)) return "REQUIRED";
|
|
2244
2241
|
},
|
|
2245
2242
|
countryHasTaxExemptions: () => {
|
|
2246
|
-
const isExemptFromTax = Boolean(data.basicInformation?.exemptedFromTax
|
|
2243
|
+
const isExemptFromTax = Boolean(data.basicInformation?.exemptedFromTax);
|
|
2247
2244
|
switch (taskType) {
|
|
2248
2245
|
case TaskTypes.SOLE_PROPRIETOR_COMPANY:
|
|
2249
2246
|
if (!COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS.includes(country)) return;
|
|
@@ -2661,9 +2658,8 @@ var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabl
|
|
|
2661
2658
|
const requestObj = { ...formatObject(data, accountHolder === "mySoleProprietorName" ? solePropBusinessDetailsApiKeyMapping : businessDetailsApiKeyMapping) };
|
|
2662
2659
|
delete requestObj.organization?.legalFormDescription;
|
|
2663
2660
|
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;
|
|
2661
|
+
const [taxData, registrationNumber] = [data.basicInformation?.taxInformation, data.basicInformation?.registrationNumber];
|
|
2662
|
+
const registrationNumberType = data.basicInformation?.registrationNumberType;
|
|
2667
2663
|
const localization = [mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaKana")].filter(({ fields }) => !isEmpty$1(fields)).map(({ script, fields }) => ({
|
|
2668
2664
|
script,
|
|
2669
2665
|
fields: { legalName: fields.legalCompanyName }
|
|
@@ -2687,7 +2683,7 @@ var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabl
|
|
|
2687
2683
|
if (canSaveRegNumberAbsentState && requestObj.organization) requestObj.organization.registrationNumberAbsent = false;
|
|
2688
2684
|
}
|
|
2689
2685
|
if (requestObj.organization && localization.length > 0) entityObject.localization = localization;
|
|
2690
|
-
if (data.
|
|
2686
|
+
if (data.basicInformation?.exemptedFromRegistrationNumber && canSaveRegNumberAbsentState && requestObj.organization) requestObj.organization.registrationNumberAbsent = data.basicInformation.exemptedFromRegistrationNumber;
|
|
2691
2687
|
if (data.additionalInformation?.vatAbsenceReason) entityObject.vatNumber = "";
|
|
2692
2688
|
if (isFeatureEnabled("EnableDoingBusinessAsNameV4")) {
|
|
2693
2689
|
if (typeof data.additionalInformation?.hasDoingBusinessAs !== "undefined") entityObject.doingBusinessAsAbsent = !data.additionalInformation.hasDoingBusinessAs;
|
|
@@ -2725,16 +2721,16 @@ var mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
|
|
|
2725
2721
|
companyConstitutionalDocument: constitutionalDocument ? { constitutionalDocument: [mapExistingFile(getPageName(constitutionalDocument))] } : void 0
|
|
2726
2722
|
};
|
|
2727
2723
|
};
|
|
2728
|
-
var mapBasicInformation = ({ data, legalEntity, taskType
|
|
2724
|
+
var mapBasicInformation = ({ data, legalEntity, taskType }) => {
|
|
2729
2725
|
if (!data || !data.country) return;
|
|
2730
2726
|
const companyType = legalEntity?.type === "organization" ? legalEntity.organization?.type : void 0;
|
|
2731
2727
|
const isUen = mapIsUen(data.taxInformation, data.registrationNumber, data.country);
|
|
2732
|
-
const registrationNumberType = getDefaultRegistrationNumberType(data.registrationNumber, data.country, void 0
|
|
2728
|
+
const registrationNumberType = getDefaultRegistrationNumberType(data.registrationNumber, data.country, void 0);
|
|
2733
2729
|
const registrationNumberExemption = !data.registrationNumber && !!companyType && isRegistrationExemptionAllowed(data.country) && (() => {
|
|
2734
2730
|
const allowedEntityTypes = REGISTRATION_NUMBER_EXEMPTION_RULES[data.country];
|
|
2735
2731
|
return allowedEntityTypes.length === 0 || allowedEntityTypes.includes(companyType);
|
|
2736
2732
|
})() ? { exemptedFromRegistrationNumber: true } : {};
|
|
2737
|
-
|
|
2733
|
+
return isUsingCompanySearch(data.country, taskType) ? {
|
|
2738
2734
|
...data,
|
|
2739
2735
|
registrationNumberType,
|
|
2740
2736
|
...registrationNumberExemption,
|
|
@@ -2750,13 +2746,6 @@ var mapBasicInformation = ({ data, legalEntity, taskType, isFeatureEnabled }) =>
|
|
|
2750
2746
|
...registrationNumberExemption,
|
|
2751
2747
|
...isUen
|
|
2752
2748
|
});
|
|
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
2749
|
};
|
|
2761
2750
|
var mapDbaName = (legalEntity) => {
|
|
2762
2751
|
const entity = legalEntity.type === "organization" ? legalEntity.organization : legalEntity.soleProprietorship;
|
|
@@ -2775,14 +2764,11 @@ var mapIsUen = (taxInformation, registrationNumber, country) => {
|
|
|
2775
2764
|
isUen: currentCountryTaxInfo.type === "UEN"
|
|
2776
2765
|
};
|
|
2777
2766
|
};
|
|
2778
|
-
var mapAdditionalInformation = ({ data, legalEntity
|
|
2767
|
+
var mapAdditionalInformation = ({ data, legalEntity }) => {
|
|
2779
2768
|
if (!data) return;
|
|
2780
2769
|
const entity = legalEntity.type === "organization" ? legalEntity.organization : legalEntity.soleProprietorship;
|
|
2781
2770
|
const currentCountry = entity?.registeredAddress.country;
|
|
2782
2771
|
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
2772
|
const vatNumberType = getDefaultVatNumberType(entity?.vatNumber, currentCountry);
|
|
2787
2773
|
const operationalAddressIsSame = entity?.principalPlaceOfBusiness && !objectsDeepEqual(entity.principalPlaceOfBusiness, entity.registeredAddress) ? operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME : operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
|
|
2788
2774
|
if (entity?.registeredAddress.localization) data.registrationAddress = {
|
|
@@ -2793,25 +2779,15 @@ var mapAdditionalInformation = ({ data, legalEntity, taskType, isFeatureEnabled
|
|
|
2793
2779
|
...data.operationalAddress,
|
|
2794
2780
|
...mapAddressLocalizationToJpAddressSchema(entity.principalPlaceOfBusiness.localization)
|
|
2795
2781
|
};
|
|
2796
|
-
const shouldStripCompanySearchFields = isUsingCompanySearch(currentCountry, taskType) || isFeatureEnabled("EnableUnifiedCompanySearch");
|
|
2797
2782
|
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
|
-
}, {
|
|
2783
|
+
...entriesOf(data).reduce((acc, [field]) => ({
|
|
2784
|
+
...acc,
|
|
2785
|
+
[field]: data[field]
|
|
2786
|
+
}), {
|
|
2809
2787
|
operationalAddressIsSame,
|
|
2810
|
-
registrationNumberType,
|
|
2811
2788
|
vatNumberType
|
|
2812
2789
|
}),
|
|
2813
|
-
...dbaNameFields
|
|
2814
|
-
...isUen
|
|
2790
|
+
...dbaNameFields
|
|
2815
2791
|
};
|
|
2816
2792
|
};
|
|
2817
2793
|
var mapLegalNameLocalization = (data) => {
|
|
@@ -2883,9 +2859,7 @@ var mapLegalEntityToBusinessDetailsSchema = ({ legalEntity, parentEntity, taskTy
|
|
|
2883
2859
|
...componentData,
|
|
2884
2860
|
[key]: mapAdditionalInformation({
|
|
2885
2861
|
data: businessDetailsSchema[key],
|
|
2886
|
-
legalEntity
|
|
2887
|
-
taskType,
|
|
2888
|
-
isFeatureEnabled
|
|
2862
|
+
legalEntity
|
|
2889
2863
|
})
|
|
2890
2864
|
};
|
|
2891
2865
|
case "companyRegistrationDocument": return {
|
|
@@ -3001,7 +2975,7 @@ function useSubmitBusinessDetails({ country, data, forms, legalEntityResponse, a
|
|
|
3001
2975
|
taskType,
|
|
3002
2976
|
isFeatureEnabled
|
|
3003
2977
|
}));
|
|
3004
|
-
if (filteredData.
|
|
2978
|
+
if (filteredData.basicInformation && !filteredData.basicInformation.taxInformation) filteredData.basicInformation.taxInformation = void 0;
|
|
3005
2979
|
const countryOfGoverningLaw = getCountryOfGoverningLaw(isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies"), filteredData.basicInformation);
|
|
3006
2980
|
if (filteredData.basicInformation) if (countryOfGoverningLaw) filteredData.basicInformation.countryOfGoverningLaw = countryOfGoverningLaw;
|
|
3007
2981
|
else delete filteredData.basicInformation.countryOfGoverningLaw;
|
|
@@ -3252,13 +3226,11 @@ var formatBasicInformation = (data, datasetUtils, companyType, isCountryOfGovern
|
|
|
3252
3226
|
countryOfGoverningLaw: datasetUtils.getCountryName(getCountryOfGoverningLaw(isCountryOfGoverningLawEnabled, data))
|
|
3253
3227
|
};
|
|
3254
3228
|
};
|
|
3255
|
-
var formatAdditionalInformation = (data
|
|
3229
|
+
var formatAdditionalInformation = (data) => {
|
|
3256
3230
|
return {
|
|
3257
3231
|
businessStructure: data.legalFormLabel,
|
|
3258
3232
|
doingBusinessAs: data.doingBusinessAs,
|
|
3259
3233
|
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
3234
|
vatNumber: data.vatNumber,
|
|
3263
3235
|
vatAbsenceReason: data.vatAbsenceReason,
|
|
3264
3236
|
dateOfIncorporation: data.dateOfIncorporation,
|
|
@@ -3291,7 +3263,7 @@ var formatDataForSummary = (data, forms, t, language, isFeatureEnabled, version)
|
|
|
3291
3263
|
switch (formId) {
|
|
3292
3264
|
case "basicInformation": return formatBasicInformation(data[formId], datasetUtils, data.companyStructure?.entityType, isCountryOfGoverningLawEnabled);
|
|
3293
3265
|
case "companyStructure": return { entityType: t(($) => $[companyTypeMetadata[data[formId]?.entityType]?.name], { ns: "business" }) };
|
|
3294
|
-
case "additionalInformation": return formatAdditionalInformation(data[formId]
|
|
3266
|
+
case "additionalInformation": return formatAdditionalInformation(data[formId]);
|
|
3295
3267
|
case "companyRegistrationDocument": return {
|
|
3296
3268
|
fileName: data[formId].registrationDocument?.[0]?.name,
|
|
3297
3269
|
description: data[formId].description
|
|
@@ -3638,6 +3610,7 @@ function basicInformationValidators({ country, taxIdNumberType, companyType, reg
|
|
|
3638
3610
|
state,
|
|
3639
3611
|
isFeatureEnabled
|
|
3640
3612
|
}, registrationNumberDefaultFieldMetadata).validators,
|
|
3613
|
+
exemptedFromRegistrationNumber: exemptFromRegistrationNumberDefaultFieldMetadata.validators,
|
|
3641
3614
|
jaHaniLegalCompanyName: resolveFieldMetadata(localizedLegalCompanyNameFieldConfig.jaHaniLegalCompanyName.config, {}, localizedLegalCompanyNameFieldConfig.jaHaniLegalCompanyName.metadata).validators,
|
|
3642
3615
|
jaKanaLegalCompanyName: resolveFieldMetadata(localizedLegalCompanyNameFieldConfig.jaKanaLegalCompanyName.config, {}, localizedLegalCompanyNameFieldConfig.jaKanaLegalCompanyName.metadata).validators
|
|
3643
3616
|
};
|
|
@@ -3649,20 +3622,10 @@ function businessSelectionValidators() {
|
|
|
3649
3622
|
errorMessage: "fieldIsRequired"
|
|
3650
3623
|
} };
|
|
3651
3624
|
}
|
|
3652
|
-
function additionalInformationValidators({ country,
|
|
3625
|
+
function additionalInformationValidators({ country, vatNumberType }) {
|
|
3653
3626
|
return {
|
|
3654
3627
|
hasDoingBusinessAs: doingBusinessAsAbsentFieldMetadata.validators,
|
|
3655
3628
|
doingBusinessAs: doingBusinessAsFieldMetadata.validators,
|
|
3656
|
-
registrationNumber: resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
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,
|
|
3666
3629
|
vatNumber: resolveFieldMetadata(defaultFieldConfig$1[country], { vatNumberType }, defaultFieldMetadata$1).validators,
|
|
3667
3630
|
vatAbsenceReason: vatAbsenceReasonMetadata.validators,
|
|
3668
3631
|
eInvoicingCode: eInvoicingCodeFieldMetadata.validators,
|
|
@@ -3709,11 +3672,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3709
3672
|
const companySearchStateModel = useModel(() => new CompanySearchStateModel(userEvents));
|
|
3710
3673
|
const tinMismatchModalOpen = useSignal(false);
|
|
3711
3674
|
const legalArrangementModalOpen = useSignal(false);
|
|
3712
|
-
const defaultForms = useMemo$1(() => getForms(country
|
|
3713
|
-
country,
|
|
3714
|
-
taskType,
|
|
3715
|
-
isFeatureEnabled
|
|
3716
|
-
]);
|
|
3675
|
+
const defaultForms = useMemo$1(() => getForms(country), [country]);
|
|
3717
3676
|
const { data: matchingScenario } = useScenarios(country, LegalEntityTypes.ORGANIZATION);
|
|
3718
3677
|
useEffect$1(() => {
|
|
3719
3678
|
if (!matchingScenario) return;
|
|
@@ -3775,9 +3734,9 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3775
3734
|
documents
|
|
3776
3735
|
]);
|
|
3777
3736
|
const buildFieldValidations = useCallback$1((data) => {
|
|
3778
|
-
const taxInfo = data?.basicInformation?.taxInformation
|
|
3737
|
+
const taxInfo = data?.basicInformation?.taxInformation;
|
|
3779
3738
|
const taxIdType = taxInfo?.length ? taxInfo.find((taxId) => taxId.country === country)?.type : void 0;
|
|
3780
|
-
const regNumberType = data?.basicInformation?.registrationNumberType
|
|
3739
|
+
const regNumberType = data?.basicInformation?.registrationNumberType;
|
|
3781
3740
|
const companyType = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ? CompanyTypesValues.SOLE_PROPRIETORSHIP : data?.companyStructure?.entityType;
|
|
3782
3741
|
return {
|
|
3783
3742
|
basicInformation: basicInformationValidators({
|
|
@@ -3882,7 +3841,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3882
3841
|
* the necessary information to uniquely identify the company structure
|
|
3883
3842
|
*/
|
|
3884
3843
|
const inferredCompanyStructure = useMemo$1(() => {
|
|
3885
|
-
if (
|
|
3844
|
+
if (taskType !== "BUSINESS_DETAILS") return void 0;
|
|
3886
3845
|
if (multiForm.data.companyStructure?.entityType && multiForm.data.companyStructure?.entityType === "associationIncorporated" || multiForm.data.companyStructure?.entityType === "partnershipIncorporated") return;
|
|
3887
3846
|
const registrationNumberType = multiForm.data.basicInformation?.registrationNumberType;
|
|
3888
3847
|
const taxIdNumberType = multiForm.data.basicInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type;
|
|
@@ -3900,7 +3859,6 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3900
3859
|
}, [
|
|
3901
3860
|
accountHolder,
|
|
3902
3861
|
country,
|
|
3903
|
-
isFeatureEnabled,
|
|
3904
3862
|
isSettingEnabled,
|
|
3905
3863
|
legalEntityResponse,
|
|
3906
3864
|
multiForm.data.basicInformation?.exemptedFromRegistrationNumber,
|
|
@@ -4244,12 +4202,10 @@ function VerifiedBusinessCard({ verifiedBusiness, verifiedAddress }) {
|
|
|
4244
4202
|
}
|
|
4245
4203
|
//#endregion
|
|
4246
4204
|
//#region src/components/Business/forms/AdditionalInformation/AdditionalInformation.tsx
|
|
4247
|
-
var LazyJpAddress = lazy(async () => (await import("./JpAddress-
|
|
4205
|
+
var LazyJpAddress = lazy(async () => (await import("./JpAddress-Dq7JWIH7.js")).JpAddress);
|
|
4248
4206
|
var ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
|
|
4249
4207
|
var ADDITIONAL_INFORMATION_FIELDS = [
|
|
4250
4208
|
...DBA_NAME_FIELD,
|
|
4251
|
-
...BUSINESS_REGISTRATION_NUMBER_FIELD,
|
|
4252
|
-
...TAX_INFORMATION_FIELD,
|
|
4253
4209
|
...VAT_NUMBER_FIELD,
|
|
4254
4210
|
...INDUSTRY_CODE_FIELD,
|
|
4255
4211
|
...DATE_OF_INCORPORATION_FIELD,
|
|
@@ -4264,7 +4220,6 @@ var ADDITIONAL_INFORMATION_FIELDS = [
|
|
|
4264
4220
|
var EMPTY_OBJ = {};
|
|
4265
4221
|
function AdditionalInformation({ id, country, companyType, shouldValidate, fieldValidationErrors = EMPTY_OBJ, formVerificationErrors = EMPTY_OBJ }) {
|
|
4266
4222
|
const { t, i18n } = useTranslation(["common", "business"]);
|
|
4267
|
-
const { t: businessT } = useTranslation("business");
|
|
4268
4223
|
const { form } = useFormContext();
|
|
4269
4224
|
const { isFeatureEnabled } = useToggleContext();
|
|
4270
4225
|
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
@@ -4272,7 +4227,6 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4272
4227
|
const showVerified = !!verifiedBusiness;
|
|
4273
4228
|
const showStockData = companyType === CompanyTypesValues.PUBLIC_COMPANY;
|
|
4274
4229
|
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
4230
|
const businessLineTypes = [];
|
|
4277
4231
|
if (requestingBanking(rootLegalEntity)) businessLineTypes.push("banking");
|
|
4278
4232
|
if (requestingIssuing(rootLegalEntity)) businessLineTypes.push("issuing");
|
|
@@ -4347,11 +4301,6 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4347
4301
|
switch (field) {
|
|
4348
4302
|
case "hasDoingBusinessAs": return mergeFieldMetadataIntoProps("hasDoingBusinessAs", doingBusinessAsAbsentFieldMetadata, acc);
|
|
4349
4303
|
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
4304
|
case "vatNumber": return mergeFieldMetadataIntoProps(field, resolveFieldMetadata(defaultFieldConfig$1[country], { vatNumberType: form.data.additionalInformation?.vatNumberType }, defaultFieldMetadata$1), acc);
|
|
4356
4305
|
case "vatAbsenceReason": return mergeFieldMetadataIntoProps("vatAbsenceReason", vatAbsenceReasonMetadata, acc);
|
|
4357
4306
|
case "eInvoicingCode": return mergeFieldMetadataIntoProps("eInvoicingCode", eInvoicingCodeFieldMetadata, acc);
|
|
@@ -4366,9 +4315,7 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4366
4315
|
}, initialProps);
|
|
4367
4316
|
return createFormUtils(formUtilProps ?? initialProps, t);
|
|
4368
4317
|
}, [
|
|
4369
|
-
companyType,
|
|
4370
4318
|
country,
|
|
4371
|
-
currentCountryTaxInformation?.type,
|
|
4372
4319
|
form.allFields?.additionalInformation,
|
|
4373
4320
|
form.data.additionalInformation,
|
|
4374
4321
|
form.errors.additionalInformation,
|
|
@@ -4454,37 +4401,6 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4454
4401
|
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
4455
4402
|
handleChangeFor
|
|
4456
4403
|
}),
|
|
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
4404
|
showField(VAT_NUMBER_FIELD) && /* @__PURE__ */ jsx(VatNumberField, {
|
|
4489
4405
|
data: formUtils.getFieldData(form.data.additionalInformation ?? {}, VAT_NUMBER_FIELD),
|
|
4490
4406
|
valid: formUtils.getFieldValid(form.valid.additionalInformation ?? {}, VAT_NUMBER_FIELD),
|
|
@@ -4676,23 +4592,15 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4676
4592
|
}
|
|
4677
4593
|
//#endregion
|
|
4678
4594
|
//#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
4595
|
var getFinancialInformationFields = (country) => {
|
|
4693
4596
|
return country === CountryCodes.UnitedKingdom ? financialInformationFields : financialInformationFieldsForEu;
|
|
4694
4597
|
};
|
|
4695
4598
|
var staticBusinessDetailsForms = {
|
|
4599
|
+
basicInformation: {
|
|
4600
|
+
formId: "basicInformation",
|
|
4601
|
+
formName: "basicInformationFormName",
|
|
4602
|
+
fields: BASIC_INFORMATION_FIELDS
|
|
4603
|
+
},
|
|
4696
4604
|
businessSelection: {
|
|
4697
4605
|
formId: "businessSelection",
|
|
4698
4606
|
formName: "businessSelectionFormName",
|
|
@@ -4703,6 +4611,11 @@ var staticBusinessDetailsForms = {
|
|
|
4703
4611
|
formName: "companyStructureFormName",
|
|
4704
4612
|
fields: COMPANY_STRUCTURE_FIELDS
|
|
4705
4613
|
},
|
|
4614
|
+
additionalInformation: {
|
|
4615
|
+
formId: "additionalInformation",
|
|
4616
|
+
formName: "additionalInformationFormName",
|
|
4617
|
+
fields: ADDITIONAL_INFORMATION_FIELDS
|
|
4618
|
+
},
|
|
4706
4619
|
companyRegistrationDocument: {
|
|
4707
4620
|
formId: "companyRegistrationDocument",
|
|
4708
4621
|
formName: "companyRegistrationDocumentFormName",
|
|
@@ -4734,19 +4647,11 @@ var staticBusinessDetailsForms = {
|
|
|
4734
4647
|
fields: ["constitutionalDocument"]
|
|
4735
4648
|
}
|
|
4736
4649
|
};
|
|
4737
|
-
var getForms = (country
|
|
4738
|
-
basicInformation:
|
|
4739
|
-
formId: "basicInformation",
|
|
4740
|
-
formName: "basicInformationFormName",
|
|
4741
|
-
fields: getBasicInformationFields(country, taskType, isFeatureEnabled)
|
|
4742
|
-
},
|
|
4650
|
+
var getForms = (country) => ({
|
|
4651
|
+
basicInformation: staticBusinessDetailsForms.basicInformation,
|
|
4743
4652
|
businessSelection: staticBusinessDetailsForms.businessSelection,
|
|
4744
4653
|
companyStructure: staticBusinessDetailsForms.companyStructure,
|
|
4745
|
-
additionalInformation:
|
|
4746
|
-
formId: "additionalInformation",
|
|
4747
|
-
formName: "additionalInformationFormName",
|
|
4748
|
-
fields: getAdditionalInformationFields(country, taskType, isFeatureEnabled)
|
|
4749
|
-
},
|
|
4654
|
+
additionalInformation: staticBusinessDetailsForms.additionalInformation,
|
|
4750
4655
|
companyRegistrationDocument: staticBusinessDetailsForms.companyRegistrationDocument,
|
|
4751
4656
|
companyTaxDocument: staticBusinessDetailsForms.companyTaxDocument,
|
|
4752
4657
|
companyProofOfDirectorDocument: staticBusinessDetailsForms.companyProofOfDirectorDocument,
|
|
@@ -2,7 +2,7 @@ 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
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "bd7f1f2e-8c7d-4238-adeb-651ba254df9b", e._sentryDebugIdIdentifier = "sentry-dbid-bd7f1f2e-8c7d-4238-adeb-651ba254df9b");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { _ as isPartOfTrustFromLegalEntity } from "./resolveEnvironment-
|
|
5
|
+
import { _ as isPartOfTrustFromLegalEntity } from "./resolveEnvironment-B3XdWKTk.js";
|
|
6
6
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
7
7
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
8
8
|
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-C-wflW8q.js";
|
package/dist/{useDataMissingRemediations-CrKtd_Fd.js → useDataMissingRemediations-IH7p5j8V.js}
RENAMED
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0e08a2d6-3469-4a22-a5b2-81f030dfcd29", e._sentryDebugIdIdentifier = "sentry-dbid-0e08a2d6-3469-4a22-a5b2-81f030dfcd29");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BR3rLb4m.js";
|
|
6
|
-
import { C as EntityTypes, T as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING } from "./processCapabilities-
|
|
6
|
+
import { C as EntityTypes, T as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING } from "./processCapabilities-CTUJbebx.js";
|
|
7
7
|
import { t as TaskTypes } from "./taskTypes-NawDTp5n.js";
|
|
8
8
|
import { useMemo } from "preact/hooks";
|
|
9
9
|
//#region src/hooks/useDataMissingRemediations.ts
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4995c2a1-d968-472d-a832-542999fb395d", e._sentryDebugIdIdentifier = "sentry-dbid-4995c2a1-d968-472d-a832-542999fb395d");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { o as createLogger } from "./translation-BR3rLb4m.js";
|
|
6
|
-
import { nt as isEmpty } from "./resolveEnvironment-
|
|
6
|
+
import { nt as isEmpty } from "./resolveEnvironment-B3XdWKTk.js";
|
|
7
7
|
import { r as doArraysMatch } from "./AnalyticsContext-BFrJmsp0.js";
|
|
8
8
|
import { i as omitKeys, n as addKeys, t as ValidationResult } from "./validationResult-CqlLuppx.js";
|
|
9
9
|
import { useCallback, useEffect, useMemo, useReducer, useState } from "preact/hooks";
|
|
@@ -8,10 +8,10 @@ import { i as useAnalyticsContext } from "./Modal-C__-5LgI.js";
|
|
|
8
8
|
import { r as LoaderWrapper } from "./utils-BtyrxTzp.js";
|
|
9
9
|
import { t as Confirm } from "./Confirm-6QfuYcA7.js";
|
|
10
10
|
import { t as formDebugInfo } from "./debugStore-Dwn1FXrh.js";
|
|
11
|
-
import { r as FormRouterContext } from "./ErrorPanel-
|
|
11
|
+
import { r as FormRouterContext } from "./ErrorPanel-B46gDhCD.js";
|
|
12
12
|
import { t as trackNavigation } from "./trackNavigation-DR70qR8T.js";
|
|
13
|
-
import { n as summaryStep, t as Summary } from "./Summary-
|
|
14
|
-
import { t as MaybeModal } from "./MaybeModal-
|
|
13
|
+
import { n as summaryStep, t as Summary } from "./Summary-DxQMUvRi.js";
|
|
14
|
+
import { t as MaybeModal } from "./MaybeModal-BkZ_5yv-.js";
|
|
15
15
|
import { t as ProgressBar } from "./ProgressBar-DWFxLMUA.js";
|
|
16
16
|
import { useCallback, useContext, useMemo, useRef, useState } from "preact/hooks";
|
|
17
17
|
import cx from "classnames";
|