@adyen/kyc-components 4.15.0-beta.1 → 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-D9RkOGLa.js → AcceptTermsOfServiceComponent-CmtFeS0G.js} +5 -5
- package/dist/{AccountSetupRejected-DXrxeaTA.js → AccountSetupRejected-SL49fuK1.js} +1 -1
- package/dist/{AdaptiveWorkflow-DkyHp3I-.js → AdaptiveWorkflow-Dm_oZAtl.js} +17 -19
- package/dist/{AdaptiveWorkflowComponent-C0s3XA9b.js → AdaptiveWorkflowComponent-M-n5xnz9.js} +2 -2
- package/dist/{Address-ByNnIfrX.js → Address-Bsm5AJWG.js} +5 -5
- package/dist/{BusinessFinancingDropin-BI9qbTfa.js → BusinessFinancingDropin-CYFujr_t.js} +14 -14
- package/dist/{BusinessFinancingPage-rrQUrZBL.js → BusinessFinancingPage-DZpGJikD.js} +2 -2
- package/dist/{BusinessTypeSelectionPage-DVlhdBOT.js → BusinessTypeSelectionPage-BcEwSu-j.js} +6 -6
- package/dist/{CompanyRegistrationNumberTypeSelector-B72MvtCt.js → CompanyRegistrationNumberTypeSelector-5zZnchK5.js} +14 -19
- package/dist/{ContactDetails-9JGt7Lx0.js → ContactDetails-JvG4ofw4.js} +3 -3
- package/dist/{ContextGuidance-CaskjnLp.js → ContextGuidance-CPo1RXqO.js} +1 -1
- package/dist/{CountryField-D3T5pszb.js → CountryField-DV9ce-qa.js} +2 -2
- package/dist/{Currency-C9smd9hj.js → Currency-BdWx4a7F.js} +2 -2
- package/dist/{CustomerSupport-CxnPz_MZ.js → CustomerSupport-Bj2PXXUS.js} +8 -8
- package/dist/{DebugModal-CmyRTcuw.js → DebugModal-DOrbJ9GB.js} +3 -3
- package/dist/{DecisionMakerDetails-Cur05tOk.js → DecisionMakerDetails-2SRSTivT.js} +3 -3
- package/dist/{DecisionMakerDetailsPage-Dqkcvgs5.js → DecisionMakerDetailsPage-l-Z8TwIm.js} +4 -4
- package/dist/{DecisionMakers-oSWUwKsE.js → DecisionMakers-BikexMpU.js} +8 -8
- package/dist/{Dropzone-B5f298Ah.js → Dropzone-Cl1Hoy90.js} +2 -2
- package/dist/{EntityAssociation-Bfb_h3mX.js → EntityAssociation-DT-LshYE.js} +1 -1
- package/dist/{ErrorPanel-CbTDpmpi.js → ErrorPanel-B46gDhCD.js} +2 -2
- package/dist/{IndividualDropin-DypupM2F.js → IndividualDropin-CMVrIxMy.js} +24 -24
- package/dist/{Introduction-CvXA6-RL.js → Introduction-DUay4S7_.js} +2 -2
- package/dist/{InvitedDecisionMakerComponent-D5gat3zM.js → InvitedDecisionMakerComponent-B9vjrn0y.js} +3 -3
- package/dist/{JpAddress-C38zRvZE.js → JpAddress-Dq7JWIH7.js} +4 -4
- package/dist/{LegalCompanyNameField-BxLhDFZ4.js → LegalCompanyNameField-B5CmBTd4.js} +1 -1
- package/dist/{LegalRepresentativeDetailsPage-B-MsZPf-.js → LegalRepresentativeDetailsPage-DxLcXGYa.js} +4 -4
- package/dist/{MaskedInput-CPYBS2wP.js → MaskedInput-BqBhlwWa.js} +1 -1
- package/dist/{MaybeModal-95T3hqPt.js → MaybeModal-BkZ_5yv-.js} +1 -1
- package/dist/{NewSummary-Cgebw71K.js → NewSummary-1AO56RTG.js} +1 -1
- package/dist/{PayoutDetailsDropinMultiForm-BvJmm0SM.js → PayoutDetailsDropinMultiForm-BZvGdfFw.js} +15 -15
- package/dist/{PayoutDetailsPage-CmUyWu_t.js → PayoutDetailsPage-D5yoTUCH.js} +5 -5
- package/dist/{Review-B1T5E3pI.js → Review-7JasUcjy.js} +2 -2
- package/dist/{RootBusinessDetailsPage-CB44DIGg.js → RootBusinessDetailsPage-DBJNNiGc.js} +6 -7
- package/dist/{RootBusinessLinesPage-BdxPHbIJ.js → RootBusinessLinesPage-CZGtgE0q.js} +11 -11
- package/dist/{RootIndividualDetailsPage-BcM3xHZ8.js → RootIndividualDetailsPage-BSwFuPHf.js} +4 -4
- package/dist/{Select-CvIMIYjl.js → Select-CS2E69CJ.js} +4 -2
- package/dist/{SignPCIComponent-o5iWDa9u.js → SignPCIComponent-Bfu0wgMM.js} +5 -5
- package/dist/{SingpassSelection-CRFf-u1d.js → SingpassSelection-BgdopRjs.js} +1 -1
- package/dist/{SoleProprietorshipPage-DFEn0Ewu.js → SoleProprietorshipPage-BlAc34Pn.js} +5 -5
- package/dist/{SourceOfFundsPage-BCVelN0X.js → SourceOfFundsPage-Dv_NJVKv.js} +12 -12
- package/dist/{Summary-8V5EZBd4.js → Summary-DxQMUvRi.js} +2 -2
- package/dist/{TaskListItem-C3XFLrVq.js → TaskListItem-DOTrEZ9e.js} +3 -3
- package/dist/{TaxInformationField-7C6iLtFs.js → TaxInformationField-jNgSdv5g.js} +11 -13
- package/dist/{TaxReportingDropin-CW0-CVJR.js → TaxReportingDropin-Hmtz9tal.js} +5 -5
- package/dist/{TrustDetailsPage-Cw2OH_cP.js → TrustDetailsPage-CvNFzktD.js} +20 -20
- package/dist/{TrustMemberCompanyPage-XaVxyqQT.js → TrustMemberCompanyPage-DM72ABzz.js} +6 -6
- package/dist/{TrustMemberIndividualPage-DQd5nIl2.js → TrustMemberIndividualPage-CYq1D4W7.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-BJhaU0Ju.js → TrustMemberRoleAndTypePage-q6yEVUDR.js} +10 -10
- package/dist/{TrustMembersOverview-CsdYkKZt.js → TrustMembersOverview-D48OqAzS.js} +6 -6
- package/dist/{UnincorporatedPartnershipIndividualPage-CeDtx9P7.js → UnincorporatedPartnershipIndividualPage-DnhI0TNp.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-B4AUh2uw.js → UnincorporatedPartnershipMemberCompanyPage-DRt-i8Pj.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CaQgmfeu.js → UnincorporatedPartnershipMemberRoleAndTypePage-Bilfz6Qs.js} +2 -2
- package/dist/{UnincorporatedPartnershipMembersOverview-zm15XNm0.js → UnincorporatedPartnershipMembersOverview-BKqB9JWc.js} +3 -3
- package/dist/{VerificationErrorAlert-D76yRVAZ.js → VerificationErrorAlert-CItpN9Id.js} +2 -2
- package/dist/{accountHolderUtils-DnEhXSHF.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-DvK9RVMD.js → constants-6Hdf6hNy.js} +2 -2
- package/dist/{getProblemsForEntity-CXzgYL6R.js → getProblemsForEntity-CQX49pBy.js} +1 -1
- package/dist/{invalidateRootLegalEntity-DfF59VHE.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-Datp62BM.js → omitObscuredFieldsIfUnchanged-CxUdW_hs.js} +1 -1
- package/dist/{patternValidators-Dg_UvQs9.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-BO-j8Bwm.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-DBmj3nNJ.js → useBusinessDetailsData-CdOak9Wq.js} +72 -167
- package/dist/{useCanSeeIntroduction-Cj5FkQFO.js → useCanSeeIntroduction-CNNn9cts.js} +1 -1
- package/dist/{useDataMissingRemediations-CrKtd_Fd.js → useDataMissingRemediations-IH7p5j8V.js} +1 -1
- package/dist/{useForm-CANEmbG2.js → useForm-B3Jo_Jbx.js} +1 -1
- package/dist/{useFormContext-D9UmS1Tj.js → useFormContext-D-d0WyQm.js} +3 -3
- package/dist/{useMultiForm-Ch5yvl-v.js → useMultiForm-D_17VPX_.js} +1 -1
- package/dist/{useNavigate-D4SB__Ik.js → useNavigate-CsnYf5i1.js} +30 -30
- package/dist/{useTrustMembers-BOfT11Kj.js → useTrustMembers-NkM-hgOm.js} +1 -1
- package/dist/{useUpdateLegalEntity-De_ohp9A.js → useUpdateLegalEntity-BEzBO8ny.js} +1 -1
- package/dist/{ConstitutionalDocument-FDgHtu1v.js → utils-BAPGRNO9.js} +135 -137
- package/dist/{utils-ztjLNfgn.js → utils-BzpnzDBD.js} +13 -18
- package/dist/{utils-X8YwekZF.js → utils-CB9oLqgE.js} +2 -2
- package/dist/{validate-7X0zga5Q.js → validate-BqYHsBzg.js} +1 -1
- package/dist/{validateExtractionResult-CwehLDDP.js → validateExtractionResult-CLJ93Tay.js} +3 -3
- package/dist/{validationError-DqjDv5Q-.js → validationError-Bny-1EE5.js} +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4eba7412-4f13-47ee-8b27-79e50a807512", e._sentryDebugIdIdentifier = "sentry-dbid-4eba7412-4f13-47ee-8b27-79e50a807512");
|
|
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 { o as objectsDeepEqual } 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 } from "preact/hooks";
|
|
@@ -25,36 +25,36 @@ var hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
25
25
|
};
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/router/routeConfig.ts
|
|
28
|
-
var Introduction = lazy(async () => (await import("./Introduction-
|
|
29
|
-
var Adaptive = lazy(async () => (await import("./AdaptiveWorkflow-
|
|
30
|
-
var BusinessTypeSelectionPage = lazy(async () => (await import("./BusinessTypeSelectionPage-
|
|
31
|
-
var SingpassSelection = lazy(async () => (await import("./SingpassSelection-
|
|
32
|
-
var AccountSetupRejected = lazy(async () => (await import("./AccountSetupRejected-
|
|
33
|
-
var DecisionMakers = lazy(async () => (await import("./DecisionMakers-
|
|
34
|
-
var CustomerSupport = lazy(async () => (await import("./CustomerSupport-
|
|
35
|
-
var Review = lazy(async () => (await import("./Review-
|
|
36
|
-
var SignPCIComponent = lazy(async () => (await import("./SignPCIComponent-
|
|
37
|
-
var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceComponent-
|
|
38
|
-
var TaxReportingDropin = lazy(async () => (await import("./TaxReportingDropin-
|
|
39
|
-
var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-
|
|
40
|
-
var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-
|
|
41
|
-
var RootBusinessLinesPage = lazy(async () => (await import("./RootBusinessLinesPage-
|
|
42
|
-
var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-
|
|
43
|
-
var TrustMemberCompanyPage = lazy(async () => (await import("./TrustMemberCompanyPage-
|
|
44
|
-
var TrustMemberIndividualPage = lazy(async () => (await import("./TrustMemberIndividualPage-
|
|
45
|
-
var TrustMemberRoleAndTypePage = lazy(async () => (await import("./TrustMemberRoleAndTypePage-
|
|
46
|
-
var TrustMembersOverview = lazy(async () => (await import("./TrustMembersOverview-
|
|
47
|
-
var UnincorporatedPartnershipMemberCompanyPage = lazy(async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-
|
|
48
|
-
var UnincorporatedPartnershipIndividualPage = lazy(async () => (await import("./UnincorporatedPartnershipIndividualPage-
|
|
49
|
-
var UnincorporatedPartnershipMemberRoleAndTypePage = lazy(async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-
|
|
50
|
-
var UnincorporatedPartnershipMembersOverview = lazy(async () => (await import("./UnincorporatedPartnershipMembersOverview-
|
|
51
|
-
var BusinessFinancingPage = lazy(async () => (await import("./BusinessFinancingPage-
|
|
52
|
-
var TrustDetailsPage = lazy(async () => (await import("./TrustDetailsPage-
|
|
53
|
-
var SourceOfFundsPage = lazy(async () => (await import("./SourceOfFundsPage-
|
|
54
|
-
var RootIndividualDetailsPage = lazy(async () => (await import("./RootIndividualDetailsPage-
|
|
55
|
-
var LegalRepresentativeDetailsPage = lazy(async () => (await import("./LegalRepresentativeDetailsPage-
|
|
56
|
-
var DecisionMakerDetailsPage = lazy(async () => (await import("./DecisionMakerDetailsPage-
|
|
57
|
-
lazy(async () => (await import("./InvitedDecisionMakerComponent-
|
|
28
|
+
var Introduction = lazy(async () => (await import("./Introduction-DUay4S7_.js")).Introduction);
|
|
29
|
+
var Adaptive = lazy(async () => (await import("./AdaptiveWorkflow-Dm_oZAtl.js")).AdaptiveWorkflow);
|
|
30
|
+
var BusinessTypeSelectionPage = lazy(async () => (await import("./BusinessTypeSelectionPage-BcEwSu-j.js")).BusinessTypeSelectionPage);
|
|
31
|
+
var SingpassSelection = lazy(async () => (await import("./SingpassSelection-BgdopRjs.js")).SingpassSelection);
|
|
32
|
+
var AccountSetupRejected = lazy(async () => (await import("./AccountSetupRejected-SL49fuK1.js")).AccountSetupRejected);
|
|
33
|
+
var DecisionMakers = lazy(async () => (await import("./DecisionMakers-BikexMpU.js")).DecisionMakers);
|
|
34
|
+
var CustomerSupport = lazy(async () => (await import("./CustomerSupport-Bj2PXXUS.js")).CustomerSupport);
|
|
35
|
+
var Review = lazy(async () => (await import("./Review-7JasUcjy.js")).Review);
|
|
36
|
+
var SignPCIComponent = lazy(async () => (await import("./SignPCIComponent-Bfu0wgMM.js").then((n) => n.n)).SignPCIComponent);
|
|
37
|
+
var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceComponent-CmtFeS0G.js").then((n) => n.n)).AcceptTermsOfServiceComponent);
|
|
38
|
+
var TaxReportingDropin = lazy(async () => (await import("./TaxReportingDropin-Hmtz9tal.js").then((n) => n.n)).TaxReportingDropin);
|
|
39
|
+
var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-D5yoTUCH.js")).PayoutDetailsPage);
|
|
40
|
+
var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-DBJNNiGc.js")).RootBusinessDetailsPage);
|
|
41
|
+
var RootBusinessLinesPage = lazy(async () => (await import("./RootBusinessLinesPage-CZGtgE0q.js")).RootBusinessLinesPage);
|
|
42
|
+
var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-BlAc34Pn.js")).SoleProprietorshipPage);
|
|
43
|
+
var TrustMemberCompanyPage = lazy(async () => (await import("./TrustMemberCompanyPage-DM72ABzz.js")).TrustMemberCompanyPage);
|
|
44
|
+
var TrustMemberIndividualPage = lazy(async () => (await import("./TrustMemberIndividualPage-CYq1D4W7.js")).TrustMemberIndividualPage);
|
|
45
|
+
var TrustMemberRoleAndTypePage = lazy(async () => (await import("./TrustMemberRoleAndTypePage-q6yEVUDR.js")).TrustMemberRoleAndTypePage);
|
|
46
|
+
var TrustMembersOverview = lazy(async () => (await import("./TrustMembersOverview-D48OqAzS.js")).TrustMembersOverview);
|
|
47
|
+
var UnincorporatedPartnershipMemberCompanyPage = lazy(async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-DRt-i8Pj.js")).UnincorporatedPartnershipMemberCompanyPage);
|
|
48
|
+
var UnincorporatedPartnershipIndividualPage = lazy(async () => (await import("./UnincorporatedPartnershipIndividualPage-DnhI0TNp.js")).UnincorporatedPartnershipIndividualPage);
|
|
49
|
+
var UnincorporatedPartnershipMemberRoleAndTypePage = lazy(async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-Bilfz6Qs.js")).UnincorporatedPartnershipMemberRoleAndTypePage);
|
|
50
|
+
var UnincorporatedPartnershipMembersOverview = lazy(async () => (await import("./UnincorporatedPartnershipMembersOverview-BKqB9JWc.js")).UnincorporatedPartnershipMembersOverview);
|
|
51
|
+
var BusinessFinancingPage = lazy(async () => (await import("./BusinessFinancingPage-DZpGJikD.js")).BusinessFinancingPage);
|
|
52
|
+
var TrustDetailsPage = lazy(async () => (await import("./TrustDetailsPage-CvNFzktD.js")).TrustDetailsPage);
|
|
53
|
+
var SourceOfFundsPage = lazy(async () => (await import("./SourceOfFundsPage-Dv_NJVKv.js").then((n) => n.n)).SourceOfFundsPage);
|
|
54
|
+
var RootIndividualDetailsPage = lazy(async () => (await import("./RootIndividualDetailsPage-BSwFuPHf.js")).RootIndividualDetailsPage);
|
|
55
|
+
var LegalRepresentativeDetailsPage = lazy(async () => (await import("./LegalRepresentativeDetailsPage-DxLcXGYa.js")).LegalRepresentativeDetailsPage);
|
|
56
|
+
var DecisionMakerDetailsPage = lazy(async () => (await import("./DecisionMakerDetailsPage-l-Z8TwIm.js")).DecisionMakerDetailsPage);
|
|
57
|
+
lazy(async () => (await import("./InvitedDecisionMakerComponent-B9vjrn0y.js").then((n) => n.n)).InvitedDecisionMakerComponent);
|
|
58
58
|
var ROUTE_CONFIG = {
|
|
59
59
|
[TaskTypes.ADAPTIVE]: {
|
|
60
60
|
path: "/adaptive",
|
|
@@ -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] = "88619ddb-07c1-40df-882f-af823ba659c1", e._sentryDebugIdIdentifier = "sentry-dbid-88619ddb-07c1-40df-882f-af823ba659c1");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { j as useToggleContext } from "./resolveEnvironment-
|
|
5
|
+
import { j as useToggleContext } from "./resolveEnvironment-B3XdWKTk.js";
|
|
6
6
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-BXk2tzGe.js";
|
|
7
7
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
8
8
|
import { s as getOwnEntityAssociations } from "./entityAssociationUtil-C-wflW8q.js";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b7206278-d5cd-4827-91c7-aab05516a31d", e._sentryDebugIdIdentifier = "sentry-dbid-b7206278-d5cd-4827-91c7-aab05516a31d");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as httpPost, s as useApiContext } from "./http-DeQp0G69.js";
|
|
6
|
-
import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-
|
|
6
|
+
import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-Cg46D4Ef.js";
|
|
7
7
|
import { useMutation, useQueryClient } from "@tanstack/preact-query";
|
|
8
8
|
//#region src/api/legalEntity/useUpdateLegalEntity.ts
|
|
9
9
|
var updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
|
|
@@ -1,159 +1,35 @@
|
|
|
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] = "11960a93-b087-4ed6-b9bd-f9ecd23d952d", e._sentryDebugIdIdentifier = "sentry-dbid-11960a93-b087-4ed6-b9bd-f9ecd23d952d");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BR3rLb4m.js";
|
|
6
|
-
import { j as useToggleContext } from "./resolveEnvironment-
|
|
6
|
+
import { j as useToggleContext } from "./resolveEnvironment-B3XdWKTk.js";
|
|
7
7
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
8
8
|
import { l as keysOf, o as objectsDeepEqual } from "./AnalyticsContext-BFrJmsp0.js";
|
|
9
9
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
10
10
|
import { t as TaskTypes } from "./taskTypes-NawDTp5n.js";
|
|
11
11
|
import { c as CompanyTypesValues } from "./bafinUtils-BKq-s1Ka.js";
|
|
12
12
|
import { n as translateTranslatable } from "./utils-BtyrxTzp.js";
|
|
13
|
-
import "./Address-
|
|
14
|
-
import "./ErrorPanel-
|
|
15
|
-
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-
|
|
16
|
-
import { r as MemoizedDocumentUpload } from "./TaxInformationField-
|
|
13
|
+
import "./Address-Bsm5AJWG.js";
|
|
14
|
+
import "./ErrorPanel-B46gDhCD.js";
|
|
15
|
+
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-BqBhlwWa.js";
|
|
16
|
+
import { r as MemoizedDocumentUpload } from "./TaxInformationField-jNgSdv5g.js";
|
|
17
17
|
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
18
|
-
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-
|
|
19
|
-
import { a as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, b as REGISTRATION_NUMBER_EXEMPTION_RULES, f as COUNTRIES_USING_COMPANY_SEARCH } from "./utils-
|
|
18
|
+
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-Df7_l0ZR.js";
|
|
19
|
+
import { a as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, b as REGISTRATION_NUMBER_EXEMPTION_RULES, f as COUNTRIES_USING_COMPANY_SEARCH } from "./utils-BzpnzDBD.js";
|
|
20
20
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
21
21
|
import { t as Field } from "./Field-DAUlw0M5.js";
|
|
22
22
|
import { t as Checkbox } from "./Checkbox-DPFQmSgp.js";
|
|
23
|
-
import "./Dropzone-
|
|
24
|
-
import "./useForm-
|
|
23
|
+
import "./Dropzone-Cl1Hoy90.js";
|
|
24
|
+
import "./useForm-B3Jo_Jbx.js";
|
|
25
25
|
import { t as InputText } from "./InputText-B-ebylm4.js";
|
|
26
26
|
import { t as RadioGroup } from "./RadioGroup-CMiBSXCA.js";
|
|
27
|
-
import "./ContextGuidance-
|
|
28
|
-
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-
|
|
27
|
+
import "./ContextGuidance-CPo1RXqO.js";
|
|
28
|
+
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-5zZnchK5.js";
|
|
29
29
|
import { memo } from "preact/compat";
|
|
30
30
|
import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1 } from "preact/hooks";
|
|
31
31
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
32
32
|
import "preact";
|
|
33
|
-
//#region src/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.tsx
|
|
34
|
-
var BUSINESS_REGISTRATION_NUMBER_FIELD = [
|
|
35
|
-
"registrationNumber",
|
|
36
|
-
"registrationNumberType",
|
|
37
|
-
"exemptedFromRegistrationNumber"
|
|
38
|
-
];
|
|
39
|
-
function BusinessRegistrationNumberField({ data, valid, errors, helperText, readonly, shouldValidate, optional, handleChangeFor, country, state, canExempt, companyType, invertCompanyTypeFilter }) {
|
|
40
|
-
const { t } = useTranslation("common");
|
|
41
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
42
|
-
const registrationNumberOptions = getCompanyRegistrationNumberOptions(country, companyType, invertCompanyTypeFilter);
|
|
43
|
-
const defaultType = getDefaultRegistrationNumberType(data.registrationNumber, country, companyType, invertCompanyTypeFilter);
|
|
44
|
-
const showExemptedOption = canExempt && !!registrationNumberOptions && registrationNumberOptions.length > 1;
|
|
45
|
-
const showExemptionGuidance = isFeatureEnabled("EnableUnifiedCompanySearch") && companyType !== "trust" && companyType !== "soleProprietorship" && !!data.exemptedFromRegistrationNumber;
|
|
46
|
-
const registrationNumberType = data.exemptedFromRegistrationNumber ? "exempted" : data.registrationNumberType ? data.registrationNumberType : defaultType;
|
|
47
|
-
const fieldMetadata = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
48
|
-
registrationNumberType: registrationNumberType === "exempted" ? void 0 : registrationNumberType,
|
|
49
|
-
state
|
|
50
|
-
}, registrationNumberDefaultFieldMetadata);
|
|
51
|
-
const exemptionFieldMetadata = resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata);
|
|
52
|
-
const handleRegistrationNumberChange = (e, mode) => {
|
|
53
|
-
const value = typeof e === "string" ? e : e.currentTarget.value;
|
|
54
|
-
handleChangeFor("registrationNumber", mode)(value);
|
|
55
|
-
handleChangeFor("registrationNumberType")(registrationNumberType);
|
|
56
|
-
};
|
|
57
|
-
const handleExemptedFromRegistrationNumber = (exempt) => {
|
|
58
|
-
if (exempt) handleChangeFor("registrationNumber")("");
|
|
59
|
-
handleChangeFor("exemptedFromRegistrationNumber")(exempt);
|
|
60
|
-
};
|
|
61
|
-
const handleCompanyRegistrationNumberTypeChange = (regNumberType) => {
|
|
62
|
-
if (regNumberType === "exempted") {
|
|
63
|
-
if (!canExempt) throw Error(`${country} does not allow tax exemptions`);
|
|
64
|
-
handleChangeFor("registrationNumber")("");
|
|
65
|
-
handleChangeFor("exemptedFromRegistrationNumber")(true);
|
|
66
|
-
handleChangeFor("registrationNumberType")(void 0);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
if (canExempt && data.exemptedFromRegistrationNumber === true) handleChangeFor("exemptedFromRegistrationNumber")(false);
|
|
70
|
-
handleChangeFor("registrationNumber")("");
|
|
71
|
-
handleChangeFor("registrationNumberType")(regNumberType);
|
|
72
|
-
};
|
|
73
|
-
if (registrationNumberType && registrationNumberType !== "exempted") {
|
|
74
|
-
if (!registrationNumberOptions?.find((option) => option.id === registrationNumberType)) handleChangeFor("registrationNumberType")(defaultType);
|
|
75
|
-
}
|
|
76
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
77
|
-
/* @__PURE__ */ jsx(CompanyRegistrationNumberTypeSelector, {
|
|
78
|
-
companyType,
|
|
79
|
-
country,
|
|
80
|
-
invertCompanyTypeFilter,
|
|
81
|
-
setSelected: handleCompanyRegistrationNumberTypeChange,
|
|
82
|
-
selected: registrationNumberType,
|
|
83
|
-
exemptedOptionLabel: showExemptedOption ? translateTranslatable(t, exemptionFieldMetadata.label) : void 0
|
|
84
|
-
}),
|
|
85
|
-
/* @__PURE__ */ jsx(MaskedInput, {
|
|
86
|
-
"aria-required": true,
|
|
87
|
-
"aria-invalid": !valid.registrationNumber,
|
|
88
|
-
name: "registrationNumber",
|
|
89
|
-
type: "text",
|
|
90
|
-
value: data?.registrationNumber ?? "",
|
|
91
|
-
label: translateTranslatable(t, fieldMetadata.label) ?? "",
|
|
92
|
-
formatGuidance: translateTranslatable(t, fieldMetadata.guidanceText),
|
|
93
|
-
errorMessage: errors.registrationNumber,
|
|
94
|
-
isValid: Boolean(valid.registrationNumber),
|
|
95
|
-
onInput: (e) => handleRegistrationNumberChange(e, "input"),
|
|
96
|
-
onBlur: (e) => handleRegistrationNumberChange(e, "blur"),
|
|
97
|
-
disabled: data.exemptedFromRegistrationNumber,
|
|
98
|
-
optional,
|
|
99
|
-
readonly,
|
|
100
|
-
shouldValidate: !optional && shouldValidate,
|
|
101
|
-
helper: helperText,
|
|
102
|
-
...fieldMetadata.mask
|
|
103
|
-
}),
|
|
104
|
-
canExempt && !showExemptedOption && /* @__PURE__ */ jsx(Field, {
|
|
105
|
-
name: "exemptedFromRegistrationNumber",
|
|
106
|
-
formatGuidance: showExemptionGuidance ? translateTranslatable(t, exemptionFieldMetadata.guidanceText) : void 0,
|
|
107
|
-
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
108
|
-
...childProps,
|
|
109
|
-
"aria-required": false,
|
|
110
|
-
"aria-invalid": false,
|
|
111
|
-
name: "exemptedFromRegistrationNumber",
|
|
112
|
-
value: "exemptedFromRegistrationNumber",
|
|
113
|
-
checked: Boolean(data.exemptedFromRegistrationNumber),
|
|
114
|
-
label: translateTranslatable(t, exemptionFieldMetadata.label),
|
|
115
|
-
readonly,
|
|
116
|
-
onChange: handleExemptedFromRegistrationNumber
|
|
117
|
-
})
|
|
118
|
-
})
|
|
119
|
-
] });
|
|
120
|
-
}
|
|
121
|
-
//#endregion
|
|
122
|
-
//#region src/components/Business/utils/utils.ts
|
|
123
|
-
var countryToTaxInfoTypeMap = {
|
|
124
|
-
US: "EIN",
|
|
125
|
-
AU: "ABN",
|
|
126
|
-
NZ: "IRD",
|
|
127
|
-
HK: "BRN",
|
|
128
|
-
SG: "GST"
|
|
129
|
-
};
|
|
130
|
-
var isFinancialInformationRequired = (isFinancialInformationFeatureEnabled, taskType, country, capabilities, legalEntityType) => {
|
|
131
|
-
const isOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION;
|
|
132
|
-
if (!isFinancialInformationFeatureEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) return;
|
|
133
|
-
if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) return "REQUIRED";
|
|
134
|
-
if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
|
|
135
|
-
if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) return "REQUIRED";
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
var getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
|
|
139
|
-
if (!isCountryOfGoverningLawEnabled || basicData?.country !== CountryCodes.UnitedKingdom) return;
|
|
140
|
-
return !basicData.countryOfGoverningLaw ? CountryCodes.UnitedKingdom : basicData.countryOfGoverningLaw;
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* Checks if a country allows registration number exemption for business details.
|
|
144
|
-
*
|
|
145
|
-
* @param country The country code to check.
|
|
146
|
-
* @returns True if the country allows registration number exemption, false otherwise.
|
|
147
|
-
*/
|
|
148
|
-
var isRegistrationExemptionAllowed = (country) => country in REGISTRATION_NUMBER_EXEMPTION_RULES;
|
|
149
|
-
var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
|
|
150
|
-
return country === CountryCodes.Australia && (entityType === CompanyTypesValues.GOVERNMENTAL_ORGANIZATION || entityType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) || country === CountryCodes.NewZealand;
|
|
151
|
-
};
|
|
152
|
-
var isUsingCompanySearch = (country, taskType) => {
|
|
153
|
-
if (taskType !== TaskTypes.BUSINESS_DETAILS) return false;
|
|
154
|
-
return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
|
|
155
|
-
};
|
|
156
|
-
//#endregion
|
|
157
33
|
//#region src/components/Shared/fields/DBANameField/DBANameField.tsx
|
|
158
34
|
var DBA_NAME_FIELD = ["hasDoingBusinessAs", "doingBusinessAs"];
|
|
159
35
|
function DBANameField({ data, valid, errors, readonly, handleChangeFor }) {
|
|
@@ -1159,4 +1035,126 @@ function ConstitutionalDocumentUpload({ id, legalEntityType, ...props }) {
|
|
|
1159
1035
|
}
|
|
1160
1036
|
var MemoizedConstitutionalDocument = memo(ConstitutionalDocumentUpload, (prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.shouldValidate === nextProps.shouldValidate);
|
|
1161
1037
|
//#endregion
|
|
1162
|
-
|
|
1038
|
+
//#region src/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.tsx
|
|
1039
|
+
var BUSINESS_REGISTRATION_NUMBER_FIELD = [
|
|
1040
|
+
"registrationNumber",
|
|
1041
|
+
"registrationNumberType",
|
|
1042
|
+
"exemptedFromRegistrationNumber"
|
|
1043
|
+
];
|
|
1044
|
+
function BusinessRegistrationNumberField({ data, valid, errors, helperText, readonly, shouldValidate, optional, handleChangeFor, country, state, canExempt, companyType }) {
|
|
1045
|
+
const { t } = useTranslation("common");
|
|
1046
|
+
const registrationNumberOptions = getCompanyRegistrationNumberOptions(country, companyType);
|
|
1047
|
+
const defaultType = getDefaultRegistrationNumberType(data.registrationNumber, country, companyType);
|
|
1048
|
+
const showExemptedOption = canExempt && !!registrationNumberOptions && registrationNumberOptions.length > 1;
|
|
1049
|
+
const showExemptionGuidance = companyType !== "trust" && companyType !== "soleProprietorship" && !!data.exemptedFromRegistrationNumber;
|
|
1050
|
+
const registrationNumberType = data.exemptedFromRegistrationNumber ? "exempted" : data.registrationNumberType ? data.registrationNumberType : defaultType;
|
|
1051
|
+
const fieldMetadata = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
1052
|
+
registrationNumberType: registrationNumberType === "exempted" ? void 0 : registrationNumberType,
|
|
1053
|
+
state
|
|
1054
|
+
}, registrationNumberDefaultFieldMetadata);
|
|
1055
|
+
const exemptionFieldMetadata = resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata);
|
|
1056
|
+
const handleRegistrationNumberChange = (e, mode) => {
|
|
1057
|
+
const value = typeof e === "string" ? e : e.currentTarget.value;
|
|
1058
|
+
handleChangeFor("registrationNumber", mode)(value);
|
|
1059
|
+
handleChangeFor("registrationNumberType")(registrationNumberType);
|
|
1060
|
+
};
|
|
1061
|
+
const handleExemptedFromRegistrationNumber = (exempt) => {
|
|
1062
|
+
if (exempt) handleChangeFor("registrationNumber")("");
|
|
1063
|
+
handleChangeFor("exemptedFromRegistrationNumber")(exempt);
|
|
1064
|
+
};
|
|
1065
|
+
const handleCompanyRegistrationNumberTypeChange = (regNumberType) => {
|
|
1066
|
+
if (regNumberType === "exempted") {
|
|
1067
|
+
if (!canExempt) throw Error(`${country} does not allow tax exemptions`);
|
|
1068
|
+
handleChangeFor("registrationNumber")("");
|
|
1069
|
+
handleChangeFor("exemptedFromRegistrationNumber")(true);
|
|
1070
|
+
handleChangeFor("registrationNumberType")(void 0);
|
|
1071
|
+
return;
|
|
1072
|
+
}
|
|
1073
|
+
if (canExempt && data.exemptedFromRegistrationNumber === true) handleChangeFor("exemptedFromRegistrationNumber")(false);
|
|
1074
|
+
handleChangeFor("registrationNumber")("");
|
|
1075
|
+
handleChangeFor("registrationNumberType")(regNumberType);
|
|
1076
|
+
};
|
|
1077
|
+
if (registrationNumberType && registrationNumberType !== "exempted") {
|
|
1078
|
+
if (!registrationNumberOptions?.find((option) => option.id === registrationNumberType)) handleChangeFor("registrationNumberType")(defaultType);
|
|
1079
|
+
}
|
|
1080
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
1081
|
+
/* @__PURE__ */ jsx(CompanyRegistrationNumberTypeSelector, {
|
|
1082
|
+
companyType,
|
|
1083
|
+
country,
|
|
1084
|
+
setSelected: handleCompanyRegistrationNumberTypeChange,
|
|
1085
|
+
selected: registrationNumberType,
|
|
1086
|
+
exemptedOptionLabel: showExemptedOption ? translateTranslatable(t, exemptionFieldMetadata.label) : void 0
|
|
1087
|
+
}),
|
|
1088
|
+
/* @__PURE__ */ jsx(MaskedInput, {
|
|
1089
|
+
"aria-required": true,
|
|
1090
|
+
"aria-invalid": !valid.registrationNumber,
|
|
1091
|
+
name: "registrationNumber",
|
|
1092
|
+
type: "text",
|
|
1093
|
+
value: data?.registrationNumber ?? "",
|
|
1094
|
+
label: translateTranslatable(t, fieldMetadata.label) ?? "",
|
|
1095
|
+
formatGuidance: translateTranslatable(t, fieldMetadata.guidanceText),
|
|
1096
|
+
errorMessage: errors.registrationNumber,
|
|
1097
|
+
isValid: Boolean(valid.registrationNumber),
|
|
1098
|
+
onInput: (e) => handleRegistrationNumberChange(e, "input"),
|
|
1099
|
+
onBlur: (e) => handleRegistrationNumberChange(e, "blur"),
|
|
1100
|
+
disabled: data.exemptedFromRegistrationNumber,
|
|
1101
|
+
optional,
|
|
1102
|
+
readonly,
|
|
1103
|
+
shouldValidate: !optional && shouldValidate,
|
|
1104
|
+
helper: helperText,
|
|
1105
|
+
...fieldMetadata.mask
|
|
1106
|
+
}),
|
|
1107
|
+
canExempt && !showExemptedOption && /* @__PURE__ */ jsx(Field, {
|
|
1108
|
+
name: "exemptedFromRegistrationNumber",
|
|
1109
|
+
formatGuidance: showExemptionGuidance ? translateTranslatable(t, exemptionFieldMetadata.guidanceText) : void 0,
|
|
1110
|
+
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
1111
|
+
...childProps,
|
|
1112
|
+
"aria-required": false,
|
|
1113
|
+
"aria-invalid": false,
|
|
1114
|
+
name: "exemptedFromRegistrationNumber",
|
|
1115
|
+
value: "exemptedFromRegistrationNumber",
|
|
1116
|
+
checked: Boolean(data.exemptedFromRegistrationNumber),
|
|
1117
|
+
label: translateTranslatable(t, exemptionFieldMetadata.label),
|
|
1118
|
+
readonly,
|
|
1119
|
+
onChange: handleExemptedFromRegistrationNumber
|
|
1120
|
+
})
|
|
1121
|
+
})
|
|
1122
|
+
] });
|
|
1123
|
+
}
|
|
1124
|
+
//#endregion
|
|
1125
|
+
//#region src/components/Business/utils/utils.ts
|
|
1126
|
+
var countryToTaxInfoTypeMap = {
|
|
1127
|
+
US: "EIN",
|
|
1128
|
+
AU: "ABN",
|
|
1129
|
+
NZ: "IRD",
|
|
1130
|
+
HK: "BRN",
|
|
1131
|
+
SG: "GST"
|
|
1132
|
+
};
|
|
1133
|
+
var isFinancialInformationRequired = (isFinancialInformationFeatureEnabled, taskType, country, capabilities, legalEntityType) => {
|
|
1134
|
+
const isOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION;
|
|
1135
|
+
if (!isFinancialInformationFeatureEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) return;
|
|
1136
|
+
if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) return "REQUIRED";
|
|
1137
|
+
if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
|
|
1138
|
+
if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) return "REQUIRED";
|
|
1139
|
+
}
|
|
1140
|
+
};
|
|
1141
|
+
var getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
|
|
1142
|
+
if (!isCountryOfGoverningLawEnabled || basicData?.country !== CountryCodes.UnitedKingdom) return;
|
|
1143
|
+
return !basicData.countryOfGoverningLaw ? CountryCodes.UnitedKingdom : basicData.countryOfGoverningLaw;
|
|
1144
|
+
};
|
|
1145
|
+
/**
|
|
1146
|
+
* Checks if a country allows registration number exemption for business details.
|
|
1147
|
+
*
|
|
1148
|
+
* @param country The country code to check.
|
|
1149
|
+
* @returns True if the country allows registration number exemption, false otherwise.
|
|
1150
|
+
*/
|
|
1151
|
+
var isRegistrationExemptionAllowed = (country) => country in REGISTRATION_NUMBER_EXEMPTION_RULES;
|
|
1152
|
+
var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
|
|
1153
|
+
return country === CountryCodes.Australia && (entityType === CompanyTypesValues.GOVERNMENTAL_ORGANIZATION || entityType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) || country === CountryCodes.NewZealand;
|
|
1154
|
+
};
|
|
1155
|
+
var isUsingCompanySearch = (country, taskType) => {
|
|
1156
|
+
if (taskType !== TaskTypes.BUSINESS_DETAILS) return false;
|
|
1157
|
+
return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
|
|
1158
|
+
};
|
|
1159
|
+
//#endregion
|
|
1160
|
+
export { DBA_NAME_FIELD as S, defaultFieldMetadata as _, isRegistrationNumberAbsentStateV4Scenario as a, doingBusinessAsFieldMetadata as b, BusinessRegistrationNumberField as c, operationalAddressIsSameIds as d, operationalAddressIsSameItems as f, defaultFieldConfig as g, getDefaultVatNumberType as h, isRegistrationExemptionAllowed as i, MemoizedConstitutionalDocument as l, VatNumberField as m, getCountryOfGoverningLaw as n, isUsingCompanySearch as o, VAT_NUMBER_FIELD as p, isFinancialInformationRequired as r, BUSINESS_REGISTRATION_NUMBER_FIELD as s, countryToTaxInfoTypeMap as t, registrationAddressFields as u, vatAbsenceReasonMetadata as v, DBANameField as x, doingBusinessAsAbsentFieldMetadata as y };
|
|
@@ -1,14 +1,14 @@
|
|
|
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] = "1181f762-d229-4033-897b-2b518a242520", e._sentryDebugIdIdentifier = "sentry-dbid-1181f762-d229-4033-897b-2b518a242520");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-BR3rLb4m.js";
|
|
6
6
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
7
7
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
8
8
|
import { c as CompanyTypesValues } from "./bafinUtils-BKq-s1Ka.js";
|
|
9
|
-
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, u as spacer } from "./MaskedInput-
|
|
9
|
+
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, u as spacer } from "./MaskedInput-BqBhlwWa.js";
|
|
10
10
|
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
11
|
-
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-
|
|
11
|
+
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-Df7_l0ZR.js";
|
|
12
12
|
import { t as Field } from "./Field-DAUlw0M5.js";
|
|
13
13
|
import { t as RadioGroup } from "./RadioGroup-CMiBSXCA.js";
|
|
14
14
|
import { useCallback, useEffect, useMemo } from "preact/hooks";
|
|
@@ -2003,15 +2003,11 @@ var taxIdNumberOptions = {
|
|
|
2003
2003
|
name: "ein"
|
|
2004
2004
|
}]
|
|
2005
2005
|
};
|
|
2006
|
-
var getTaxIdNumberOptions = (country, companyType
|
|
2006
|
+
var getTaxIdNumberOptions = (country, companyType) => {
|
|
2007
2007
|
const optionsForCountry = taxIdNumberOptions[country];
|
|
2008
2008
|
if (!optionsForCountry) return optionsForCountry;
|
|
2009
|
-
if (
|
|
2010
|
-
|
|
2011
|
-
return optionsForCountry.filter((option) => !isApplicableOnlyForSingleRestrictedType(option));
|
|
2012
|
-
}
|
|
2013
|
-
if (!companyType) return optionsForCountry;
|
|
2014
|
-
return optionsForCountry.filter((option) => option.applicableOnlyFor?.includes(companyType) ?? true);
|
|
2009
|
+
if (isRestrictedEntityType(companyType)) return optionsForCountry.filter((option) => option.applicableOnlyFor?.includes(companyType) ?? true);
|
|
2010
|
+
return optionsForCountry.filter((option) => !isApplicableOnlyForSingleRestrictedType(option));
|
|
2015
2011
|
};
|
|
2016
2012
|
function getValidCompanyTypesForTaxIdNumberType(country, taxIdNumberType) {
|
|
2017
2013
|
if (!taxIdNumberType) return void 0;
|
|
@@ -2030,9 +2026,9 @@ function getValidCompanyTypesForTaxIdNumberType(country, taxIdNumberType) {
|
|
|
2030
2026
|
* @param country the country of the LE
|
|
2031
2027
|
* @param companyType the company type, e.g. `nonProfit`
|
|
2032
2028
|
*/
|
|
2033
|
-
var inferTaxIdNumberType = (taxInformation, country, companyType
|
|
2029
|
+
var inferTaxIdNumberType = (taxInformation, country, companyType) => {
|
|
2034
2030
|
if (!taxInformation) return void 0;
|
|
2035
|
-
const optionsForCountry = getTaxIdNumberOptions(country, companyType
|
|
2031
|
+
const optionsForCountry = getTaxIdNumberOptions(country, companyType);
|
|
2036
2032
|
const metadataFn = taxInformationDefaultFieldConfig[country];
|
|
2037
2033
|
if (!optionsForCountry || !metadataFn) return void 0;
|
|
2038
2034
|
if (optionsForCountry.length === 1) return optionsForCountry[0].id;
|
|
@@ -2074,9 +2070,9 @@ function findExistingTaxInformation(taxInformation, country) {
|
|
|
2074
2070
|
* @param entityType - Type of entity (company type or individual)
|
|
2075
2071
|
* @returns The determined tax ID number type or undefined if none can be determined
|
|
2076
2072
|
*/
|
|
2077
|
-
function getDefaultTaxIdNumberType(taxInformation, country, entityType
|
|
2073
|
+
function getDefaultTaxIdNumberType(taxInformation, country, entityType) {
|
|
2078
2074
|
const existingTaxInformation = findExistingTaxInformation(taxInformation, country);
|
|
2079
|
-
return existingTaxInformation?.type ?? (existingTaxInformation?.number ? inferTaxIdNumberType(taxInformation, country, entityType
|
|
2075
|
+
return existingTaxInformation?.type ?? (existingTaxInformation?.number ? inferTaxIdNumberType(taxInformation, country, entityType) : getTaxIdNumberOptions(country, entityType)?.[0]?.id);
|
|
2080
2076
|
}
|
|
2081
2077
|
//#endregion
|
|
2082
2078
|
//#region src/components/Business/forms/rules.constants.ts
|
|
@@ -2222,7 +2218,7 @@ var COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [CountryCodes.Singapore];
|
|
|
2222
2218
|
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [CountryCodes.Germany];
|
|
2223
2219
|
//#endregion
|
|
2224
2220
|
//#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.tsx
|
|
2225
|
-
function TaxIdNumberTypeSelector({ country, companyType,
|
|
2221
|
+
function TaxIdNumberTypeSelector({ country, companyType, selected, setSelected, exemptedOptionLabel, isUsSoleProp, errorMessage }) {
|
|
2226
2222
|
const { t } = useTranslation("common");
|
|
2227
2223
|
const handleSelect = useCallback((selectedStr) => {
|
|
2228
2224
|
const newSelected = selectedStr;
|
|
@@ -2233,7 +2229,7 @@ function TaxIdNumberTypeSelector({ country, companyType, invertCompanyTypeFilter
|
|
|
2233
2229
|
setSelected(newSelected);
|
|
2234
2230
|
}, [exemptedOptionLabel, setSelected]);
|
|
2235
2231
|
const options = useMemo(() => {
|
|
2236
|
-
const availableOptions = getTaxIdNumberOptions(country, companyType
|
|
2232
|
+
const availableOptions = getTaxIdNumberOptions(country, companyType) ?? [];
|
|
2237
2233
|
if (availableOptions.length === 0 || !exemptedOptionLabel) return availableOptions;
|
|
2238
2234
|
return [...availableOptions, {
|
|
2239
2235
|
id: "exempted",
|
|
@@ -2242,8 +2238,7 @@ function TaxIdNumberTypeSelector({ country, companyType, invertCompanyTypeFilter
|
|
|
2242
2238
|
}, [
|
|
2243
2239
|
country,
|
|
2244
2240
|
companyType,
|
|
2245
|
-
exemptedOptionLabel
|
|
2246
|
-
invertCompanyTypeFilter
|
|
2241
|
+
exemptedOptionLabel
|
|
2247
2242
|
]);
|
|
2248
2243
|
useEffect(() => {
|
|
2249
2244
|
if (!isUsSoleProp && !selected && options.length > 0) handleSelect(options[0].id);
|
|
@@ -5,10 +5,10 @@ try {
|
|
|
5
5
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
6
6
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
|
|
7
7
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
8
|
-
import { t as getCapabilities } from "./processCapabilities-
|
|
8
|
+
import { t as getCapabilities } from "./processCapabilities-CTUJbebx.js";
|
|
9
9
|
import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-C-wflW8q.js";
|
|
10
10
|
import { c as CompanyTypesValues } from "./bafinUtils-BKq-s1Ka.js";
|
|
11
|
-
import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-
|
|
11
|
+
import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-Cq0fdep_.js";
|
|
12
12
|
import { r as SOLE_PROP_COUNTRIES } from "./Individual.rules-Cc2Uigav.js";
|
|
13
13
|
import { t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-Bm4RGrSI.js";
|
|
14
14
|
//#region src/components/Shared/forms/BusinessTypeSelection/utils.ts
|
|
@@ -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] = "e2ba823b-69ed-44b8-9b28-a635ae75699b", e._sentryDebugIdIdentifier = "sentry-dbid-e2ba823b-69ed-44b8-9b28-a635ae75699b");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { et as hasText } from "./resolveEnvironment-
|
|
5
|
+
import { et as hasText } from "./resolveEnvironment-B3XdWKTk.js";
|
|
6
6
|
//#region src/components/EFP/tasks/BusinessFinancingDropin/validate.ts
|
|
7
7
|
var validateLegalEntityIdentifier = (legalEntityIdentifier) => {
|
|
8
8
|
if (!legalEntityIdentifier) return true;
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f7473b76-a64e-49b2-a8ad-2b865bd48cca", e._sentryDebugIdIdentifier = "sentry-dbid-f7473b76-a64e-49b2-a8ad-2b865bd48cca");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { i as Typography, o as createLogger, r as useTranslation } from "./translation-BR3rLb4m.js";
|
|
6
|
-
import { P as listToRecord, x as Alert } from "./resolveEnvironment-
|
|
6
|
+
import { P as listToRecord, x as Alert } from "./resolveEnvironment-B3XdWKTk.js";
|
|
7
7
|
import { n as IconButton, t as Button } from "./Button-3qGOI53m.js";
|
|
8
8
|
import { r as httpPost, s as useApiContext } from "./http-DeQp0G69.js";
|
|
9
9
|
import { l as keysOf, o as objectsDeepEqual, s as pick, u as valuesOf } from "./AnalyticsContext-BFrJmsp0.js";
|
|
@@ -12,10 +12,10 @@ import { t as Modal } from "./Modal-C__-5LgI.js";
|
|
|
12
12
|
import { n as translateTranslatable } from "./utils-BtyrxTzp.js";
|
|
13
13
|
import { t as Confirm } from "./Confirm-6QfuYcA7.js";
|
|
14
14
|
import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-DVc3a6gf.js";
|
|
15
|
-
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-
|
|
15
|
+
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-BqBhlwWa.js";
|
|
16
16
|
import { t as localizeDateString } from "./localizeDateString-CU7HGR-k.js";
|
|
17
17
|
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
18
|
-
import { o as validatePatternOnBlur } from "./patternValidators-
|
|
18
|
+
import { o as validatePatternOnBlur } from "./patternValidators-Df7_l0ZR.js";
|
|
19
19
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
20
20
|
import { t as Field } from "./Field-DAUlw0M5.js";
|
|
21
21
|
import { t as Checkbox } from "./Checkbox-DPFQmSgp.js";
|
|
@@ -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] = "8b6c9354-fbc4-45d9-9ad2-4e1485dfde9d", e._sentryDebugIdIdentifier = "sentry-dbid-8b6c9354-fbc4-45d9-9ad2-4e1485dfde9d");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { S as remediationPayoutApiKeyMapping, d as remediationIndividualApiKeyMapping, v as remediationBusinessDetailsApiKeyMapping } from "./processCapabilities-
|
|
5
|
+
import { S as remediationPayoutApiKeyMapping, d as remediationIndividualApiKeyMapping, v as remediationBusinessDetailsApiKeyMapping } from "./processCapabilities-CTUJbebx.js";
|
|
6
6
|
import { t as TaskTypes } from "./taskTypes-NawDTp5n.js";
|
|
7
7
|
import { t as assignToProp } from "./utils-DdHbAadK.js";
|
|
8
8
|
//#region src/types/errors/maintenance-mode-error.ts
|