@adyen/kyc-components 4.14.0-beta.1 → 4.15.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-1uEZfZy9.js → AcceptTermsOfServiceComponent-B1_ZqT8v.js} +21 -21
- package/dist/{Accordion-CSpLDvKK.js → Accordion-DmH02rWQ.js} +1 -1
- package/dist/{AccountSetupRejected-CAn0yVZw.js → AccountSetupRejected-CYyJL_st.js} +2 -2
- package/dist/{AdaptiveWorkflow-CDcYUVpq.js → AdaptiveWorkflow-CaDaMZEC.js} +31 -31
- package/dist/{AdaptiveWorkflowComponent-CxDpcY8j.js → AdaptiveWorkflowComponent-DqWP2kUh.js} +6 -6
- package/dist/{Address-xj9sAzwv.js → Address-FbRHdNSE.js} +14 -15
- package/dist/{Avatar-DqBKHRAr.js → Avatar-Z3MS8_pW.js} +1 -1
- package/dist/{BusinessFinancingDropin-xDFdsAfo.js → BusinessFinancingDropin-F2e_Y9GW.js} +34 -35
- package/dist/{BusinessFinancingPage-BF7S-Oh8.js → BusinessFinancingPage-BR103B31.js} +7 -7
- package/dist/{BusinessTypeSelectionPage-BQ3LihDH.js → BusinessTypeSelectionPage-BpsMCofr.js} +14 -14
- package/dist/{Button-DBN5gM_d.js → Button-3qGOI53m.js} +1 -1
- package/dist/{Checkbox-tUvgt59R.js → Checkbox-DPFQmSgp.js} +1 -1
- package/dist/{CompanyRegistrationNumberTypeSelector-BwAx82de.js → CompanyRegistrationNumberTypeSelector-DuhdLlxA.js} +7 -7
- package/dist/{Confirm-C4GotFqm.js → Confirm-6QfuYcA7.js} +3 -3
- package/dist/{ConstitutionalDocument-C_n_2MY2.js → ConstitutionalDocument-BjENfQq0.js} +57 -19
- package/dist/{ContactDetails-Dsz7We5h.js → ContactDetails-D4jywPM1.js} +7 -7
- package/dist/{ContextGuidance-jqFxBdPW.js → ContextGuidance-DLlQSpdE.js} +2 -2
- package/dist/{CountryField-Cd0dVMev.js → CountryField-CoPyShy3.js} +5 -5
- package/dist/{Currency-DeExUcOI.js → Currency-C75xXkkT.js} +45 -10
- package/dist/{CustomerSupport-RpjcT46k.js → CustomerSupport-DYVyr9Xs.js} +13 -13
- package/dist/{DebugModal-DCn2ZI4W.js → DebugModal-lhHBRJ1F.js} +10 -10
- package/dist/{DecisionMakerDetails-DpwFtwUj.js → DecisionMakerDetails-CNeaLZcT.js} +15 -15
- package/dist/{DecisionMakerDetailsPage-hW8fiq-7.js → DecisionMakerDetailsPage-CjgUmt3Q.js} +8 -8
- package/dist/{DecisionMakers-Dfy-VjMm.js → DecisionMakers-DHjQ6_2w.js} +17 -17
- package/dist/{Dropzone-D6r7VMi-.js → Dropzone-CV5ikL-T.js} +19 -7
- package/dist/{EmbeddedStatus-BKVqJCeu.js → EmbeddedStatus-Cz3F9iXD.js} +4 -4
- package/dist/{EndStateLayout-DfThkkI3.js → EndStateLayout-ic1EOve9.js} +2 -2
- package/dist/{EntityAssociation-DQxA6YMj.js → EntityAssociation-C3WXj_Ll.js} +7 -7
- package/dist/{ErrorPanel-CxTj7p9g.js → ErrorPanel-CLMnAAMi.js} +3 -3
- package/dist/{Field-CQWAWo5U.js → Field-DAUlw0M5.js} +3 -3
- package/dist/{FormNavigation-BwLxW6W7.js → FormNavigation-LjknVdf5.js} +2 -2
- package/dist/{Individual.rules-DrC9MYN9.js → Individual.rules-Cc2Uigav.js} +8 -5
- package/dist/{IndividualDropin-D8TOFZKq.js → IndividualDropin-BuO2qp78.js} +46 -48
- package/dist/{InputDate-cTgjAhzm.js → InputDate-B_jtgBB5.js} +2 -2
- package/dist/{InputText-8abfNtHh.js → InputText-B-ebylm4.js} +3 -3
- package/dist/{Introduction-ixhMyl8E.js → Introduction-BigwaxQh.js} +8 -8
- package/dist/{InvitedDecisionMakerComponent-B1izjp0j.js → InvitedDecisionMakerComponent-B6hzsvxg.js} +20 -24
- package/dist/{JpAddress-DTDGr3Lj.js → JpAddress-C3t5uUVC.js} +13 -13
- package/dist/{LandingLayout-Dg0sEASR.js → LandingLayout-C1yh_ggf.js} +1 -1
- package/dist/{LegalCompanyNameField-CAdSqL89.js → LegalCompanyNameField-BEYJc-cO.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-CyzuAHcZ.js → LegalRepresentativeDetailsPage-B-S7peV_.js} +7 -7
- package/dist/{Link-DtaYQWb-.js → Link-C0jrInxa.js} +1 -1
- package/dist/{ListItem-CZWSCEeJ.js → ListItem-C_g-4xPP.js} +2 -2
- package/dist/{MaskedInput-DxBKNIy0.js → MaskedInput-Ccb-5Sk2.js} +6 -6
- package/dist/{MaybeModal-BRuXui6d.js → MaybeModal-DWTUOvUf.js} +2 -2
- package/dist/{Modal-BgeE7zM2.js → Modal-C__-5LgI.js} +1 -1
- package/dist/{Name-DtDvWkku.js → Name-BlfQjJkJ.js} +4 -4
- package/dist/{NewSummary-C5MuPLiw.js → NewSummary-raAN3-Os.js} +4 -4
- package/dist/{PayoutDetailsDropinMultiForm-Ckd2710I.js → PayoutDetailsDropinMultiForm-CN3Mq3RI.js} +131 -534
- package/dist/{PayoutDetailsPage-DjDQ6Vlh.js → PayoutDetailsPage-BXSyHbcR.js} +8 -8
- package/dist/{RadioGroup-DlzXLoMN.js → RadioGroup-CMiBSXCA.js} +2 -2
- package/dist/{Review-DR7bT3pT.js → Review-Dxdqw9W4.js} +8 -8
- package/dist/{RootBusinessDetailsPage-CdjsY2XZ.js → RootBusinessDetailsPage-polINWeA.js} +6 -6
- package/dist/{RootBusinessLinesPage-C2aVJxgw.js → RootBusinessLinesPage-CodFfnxC.js} +31 -31
- package/dist/{RootIndividualDetailsPage-COv3D0yc.js → RootIndividualDetailsPage-BswgJJjN.js} +7 -7
- package/dist/{Select-vMYP9lm8.js → Select-CvIMIYjl.js} +6 -6
- package/dist/{SignPCIComponent-RokhhmIo.js → SignPCIComponent-Cckiube5.js} +20 -20
- package/dist/{SingpassSelection-tvP6qCe-.js → SingpassSelection-BrbjLrJ_.js} +6 -6
- package/dist/{SoleProprietorshipPage-DaGkRcdD.js → SoleProprietorshipPage-CJSXoE6K.js} +7 -7
- package/dist/{SourceOfFundsPage-D1SL8bvB.js → SourceOfFundsPage-4PU-1SXQ.js} +35 -35
- package/dist/{Summary-BOCTsgEX.js → Summary-CxQgBZob.js} +9 -9
- package/dist/{TaskListItem-zKqr2pBR.js → TaskListItem-C8ZjQZX_.js} +9 -9
- package/dist/{TaskVerificationStatus-gGr34dp5.js → TaskVerificationStatus-DTHF8B9j.js} +1 -1
- package/dist/{TaxInformationField-lB2c7ZTW.js → TaxInformationField-DXHcjgAF.js} +14 -15
- package/dist/{TaxReportingDropin-BQbLmJKM.js → TaxReportingDropin-CmqB2ntX.js} +18 -18
- package/dist/{TextArea-C2DkQ41s.js → TextArea-BvphlYOu.js} +4 -4
- package/dist/{TileGroup-B7-q4NXH.js → TileGroup-B8II9Mip.js} +2 -2
- package/dist/{TrustDetailsPage-BPFKlxkR.js → TrustDetailsPage-DM1VTZI-.js} +32 -32
- package/dist/{TrustMemberCompanyPage-McPQYDk7.js → TrustMemberCompanyPage-c3iSRewM.js} +8 -8
- package/dist/{TrustMemberIndividualPage-CnH8T1Lu.js → TrustMemberIndividualPage-B1rB7uNu.js} +7 -7
- package/dist/{TrustMemberRoleAndTypePage-BTC7WpUF.js → TrustMemberRoleAndTypePage-XgH8Wwy7.js} +20 -20
- package/dist/{TrustMembersOverview-BdonlUzH.js → TrustMembersOverview-DN9zUUlt.js} +13 -13
- package/dist/{UnincorporatedPartnershipIndividualPage-DY4YoCZN.js → UnincorporatedPartnershipIndividualPage-BhyWShKQ.js} +7 -7
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-qhsJSG8L.js → UnincorporatedPartnershipMemberCompanyPage-C2KPC7sY.js} +8 -8
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-mbu0dCs_.js → UnincorporatedPartnershipMemberRoleAndTypePage-CYEHdEyh.js} +12 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-DMG9dXeh.js → UnincorporatedPartnershipMembersOverview-C7UxDf-P.js} +9 -9
- package/dist/{VerificationErrorAlert-Dzzc5odR.js → VerificationErrorAlert-BK9X3AUa.js} +4 -4
- package/dist/{accountHolderUtils-BVoEh3CW.js → accountHolderUtils-oeDmrJa0.js} +1 -1
- package/dist/adyen-business-financing.js +8 -8
- package/dist/adyen-individual-configuration.js +8 -8
- package/dist/adyen-individual-status.js +8 -8
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +62 -57
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +7 -7
- package/dist/adyen-transfer-instrument-configuration.js +7 -7
- package/dist/adyen-transfer-instrument-management.js +13 -13
- package/dist/adyen-verification-status.js +6 -6
- package/dist/{constants-DcwdVIR7.js → constants-rWSN2wEc.js} +6 -6
- package/dist/{debouncedInputEvent-D2-Kctv9.js → debouncedInputEvent-Fwwp_K_-.js} +2 -2
- package/dist/en-US-BeIZBdDm.js +7 -0
- package/dist/en-US-CKZZNUWW.js +16 -0
- package/dist/{en-US-BIYEZxZV.js → en-US-CmzloEL3.js} +3 -1
- package/dist/{getProblemsForEntity-CogrYbYP.js → getProblemsForEntity-CXzgYL6R.js} +1 -1
- package/dist/{http-DYzfwjcs.js → http-DeQp0G69.js} +1 -1
- package/dist/{invalidateRootLegalEntity-mo0fHe_C.js → invalidateRootLegalEntity-C1N15Q0Y.js} +3 -3
- package/dist/{localizeDateString-DB-oTe60.js → localizeDateString-CU7HGR-k.js} +1 -1
- package/dist/{mapExistingFile-CZB9JLAV.js → mapExistingFile-BmyzNoup.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-DUElzaoS.js → mapJpAddressSchemaToAddressLocalizations-BGLDkUt1.js} +1 -1
- package/dist/{mapLegalEntityToIndividualSchema-BsHNunzQ.js → mapLegalEntityToIndividualSchema-BUIjjkrb.js} +7 -7
- package/dist/{mapTransferInstrumentToPayoutAccount-DuqJ08ye.js → mapTransferInstrumentToPayoutAccount-DZMqLmU8.js} +2 -2
- package/dist/{omitObscuredFieldsIfUnchanged-CINvB5J0.js → omitObscuredFieldsIfUnchanged-hdceMqqj.js} +2 -2
- package/dist/{patternValidators-D2SnvVZo.js → patternValidators-CDmm-_TB.js} +1 -1
- package/dist/{process-field-configurations-U459c7bG.js → process-field-configurations-n3ecaPQ8.js} +1 -1
- package/dist/{resolveEnvironment-F1C4x0Ox.js → resolveEnvironment-QjQSqNQs.js} +29 -26
- package/dist/{roleMetadata-bznvTmh3.js → roleMetadata-CWdYxbqM.js} +1 -1
- package/dist/{translation-ZXpd9jdD.js → translation-BR3rLb4m.js} +1 -1
- package/dist/types/components/Business/forms/rules.constants.d.ts +39 -3
- package/dist/types/components/Business/forms/rules.d.ts +0 -39
- package/dist/types/components/Business/utils/utils.d.ts +13 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getFormSlice.d.ts +12 -0
- package/dist/{types-Bvp3aTbC.js → types-KjTYEnAG.js} +1 -1
- package/dist/{unincorporated-partnership-GaTPaALJ.js → unincorporated-partnership-BstfjTh2.js} +1 -1
- package/dist/{useAssociatedLegalEntity-CQAe7Co6.js → useAssociatedLegalEntity-QRvyeNwU.js} +2 -2
- package/dist/{useBusinessDetailsData--UzGTaBx.js → useBusinessDetailsData-QQBD_f1x.js} +240 -57
- package/dist/{useBusinessLines-Dshc0pYD.js → useBusinessLines-B2iCcDej.js} +1 -1
- package/dist/{useCanSeeIntroduction-DeIwd-Ji.js → useCanSeeIntroduction-PbyUkvm7.js} +1 -1
- package/dist/{useCreateLegalEntity-38twl3gB.js → useCreateLegalEntity-zPjl13U3.js} +1 -1
- package/dist/{useDataMissingRemediations-7H0hHxXG.js → useDataMissingRemediations-CrKtd_Fd.js} +1 -1
- package/dist/{useForm-D9aoTf9e.js → useForm-D6hI8MLf.js} +2 -2
- package/dist/{useFormContext-DN57in75.js → useFormContext-BTYjMg5H.js} +8 -8
- package/dist/{useLegalEntity-EN5ubX2H.js → useLegalEntity-BXk2tzGe.js} +1 -1
- package/dist/{useMultiForm-or2Imhtr.js → useMultiForm-DJ8osfTK.js} +2 -2
- package/dist/{useNavigate-fLnJyzpQ.js → useNavigate-DzSXuo5y.js} +31 -31
- package/dist/{useOnboardingStatus-Cf6dZFB2.js → useOnboardingStatus-BgO4uPbW.js} +1 -1
- package/dist/{usePciQuestionnaireList-C3bk4K8n.js → usePciQuestionnaireList-BEPt97lw.js} +1 -1
- package/dist/{useSalesChannels-CC-N9vqE.js → useSalesChannels-CxxzJGtX.js} +2 -2
- package/dist/{useScenarios-ful0VqQ4.js → useScenarios-BRGMIufX.js} +1 -1
- package/dist/{useTaskLandedEvent-CtlV_Bum.js → useTaskLandedEvent-Doq80YT8.js} +1 -1
- package/dist/{useTaskStatus-CLcXCIz7.js → useTaskStatus-BLkHjMgm.js} +1 -1
- package/dist/{useTermsOfServiceStatus-DwWvz0vR.js → useTermsOfServiceStatus-B1OpYOua.js} +1 -1
- package/dist/{useTrustMembers-CjbLGmAO.js → useTrustMembers-pXhb6YbF.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-wgiUFuxT.js → useUnincorporatedPartnershipMembers-DK_yrIU4.js} +3 -3
- package/dist/{useUpdateBusinessLines-BRxlqBnM.js → useUpdateBusinessLines-jlXfi57a.js} +1 -1
- package/dist/{useUpdateLegalEntity-CzOYowpM.js → useUpdateLegalEntity-BxyHb_HE.js} +2 -2
- package/dist/{utils-DcUoR5qG.js → utils-BtyrxTzp.js} +1 -1
- package/dist/{utils-DyheWgN6.js → utils-D5_baw2Q.js} +3 -3
- package/dist/{constants-DrtMSDfx.js → utils-DNIZ6F6L.js} +67 -2
- package/dist/{utils-H5Qnf2xq.js → utils-DubzvooO.js} +59 -276
- package/dist/{validate-CTkDo5X9.js → validate-B2bZh_uL.js} +6 -18
- package/dist/{validate-CUEI7ct0.js → validate-DyAEhVQH.js} +1 -1
- package/dist/{validateExtractionResult-CGT-d88b.js → validateExtractionResult-BjS2z1De.js} +14 -14
- package/dist/{validationError-tIm9Zzjt.js → validationError-DqjDv5Q-.js} +1 -1
- package/package.json +1 -1
- package/dist/en-US-xwcTnMwf.js +0 -7
- package/dist/japanSupportUtils-H5Zfox2v.js +0 -11
- package/dist/types/constants/config.d.ts +0 -1
- package/dist/types/context/StateContext/useGlobalData.d.ts +0 -10
- package/dist/types/context/StateContext/useStateContext.d.ts +0 -2
- package/dist/utils-BgdkZkf5.js +0 -71
- package/dist/utils-K8Z-zRnu.js +0 -32
|
@@ -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] = "3986f00f-7a0a-4309-8d1d-4fdcd600bba6", e._sentryDebugIdIdentifier = "sentry-dbid-3986f00f-7a0a-4309-8d1d-4fdcd600bba6");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as httpGet, s as useApiContext } from "./http-
|
|
5
|
+
import { n as httpGet, s as useApiContext } from "./http-DeQp0G69.js";
|
|
6
6
|
import { useQuery } from "@tanstack/preact-query";
|
|
7
7
|
//#region src/api/taskStatus/useTaskStatus.ts
|
|
8
8
|
var getTaskStatus = async (legalEntityId, baseUrl, taskType) => {
|
|
@@ -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] = "e930c45a-24fa-46dd-afdc-d6da10c23643", e._sentryDebugIdIdentifier = "sentry-dbid-e930c45a-24fa-46dd-afdc-d6da10c23643");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as httpGet, s as useApiContext } from "./http-
|
|
5
|
+
import { n as httpGet, s as useApiContext } from "./http-DeQp0G69.js";
|
|
6
6
|
import { useQuery } from "@tanstack/preact-query";
|
|
7
7
|
//#region src/api/termsOfService/useTermsOfServiceAcceptanceInfos.ts
|
|
8
8
|
var getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
|
|
@@ -2,12 +2,12 @@ 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-
|
|
6
|
-
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-
|
|
5
|
+
import { j as useToggleContext } from "./resolveEnvironment-QjQSqNQs.js";
|
|
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";
|
|
9
9
|
import { r as TrustMemberTypes } from "./trustMemberGuidance-CgdU2v0j.js";
|
|
10
|
-
import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
10
|
+
import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-QRvyeNwU.js";
|
|
11
11
|
import { n as getLegalEntityNameBasedOnType } from "./getName-D4ECvzcI.js";
|
|
12
12
|
import { useMemo } from "preact/hooks";
|
|
13
13
|
import { skipToken } from "@tanstack/preact-query";
|
|
@@ -2,11 +2,11 @@ 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] = "59a3b3e9-4021-41ea-af73-b9f663f1d267", e._sentryDebugIdIdentifier = "sentry-dbid-59a3b3e9-4021-41ea-af73-b9f663f1d267");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-
|
|
5
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-BXk2tzGe.js";
|
|
6
6
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
7
7
|
import { s as getOwnEntityAssociations } from "./entityAssociationUtil-C-wflW8q.js";
|
|
8
|
-
import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
9
|
-
import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-
|
|
8
|
+
import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-QRvyeNwU.js";
|
|
9
|
+
import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-BstfjTh2.js";
|
|
10
10
|
import { n as getLegalEntityNameBasedOnType } from "./getName-D4ECvzcI.js";
|
|
11
11
|
import { useMemo } from "preact/hooks";
|
|
12
12
|
//#region src/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.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] = "9b692f08-d0b3-4161-97b3-29412fe2dcfb", e._sentryDebugIdIdentifier = "sentry-dbid-9b692f08-d0b3-4161-97b3-29412fe2dcfb");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-
|
|
5
|
+
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-DeQp0G69.js";
|
|
6
6
|
import { useMutation, useQuery } from "@tanstack/preact-query";
|
|
7
7
|
//#region src/api/industryCodes/useIndustryCodes.ts
|
|
8
8
|
var fetchIndustryCodes = async (legalEntityId, baseUrl, businessLineTypes, locale) => {
|
|
@@ -2,8 +2,8 @@ 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] = "b7206278-d5cd-4827-91c7-aab05516a31d", e._sentryDebugIdIdentifier = "sentry-dbid-b7206278-d5cd-4827-91c7-aab05516a31d");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { r as httpPost, s as useApiContext } from "./http-
|
|
6
|
-
import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-
|
|
5
|
+
import { r as httpPost, s as useApiContext } from "./http-DeQp0G69.js";
|
|
6
|
+
import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-C1N15Q0Y.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) => {
|
|
@@ -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] = "fa121bf3-3e27-49e9-a6a7-a762f41932d5", e._sentryDebugIdIdentifier = "sentry-dbid-fa121bf3-3e27-49e9-a6a7-a762f41932d5");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { r as Loader } from "./Button-
|
|
5
|
+
import { r as Loader } from "./Button-3qGOI53m.js";
|
|
6
6
|
import cx from "classnames";
|
|
7
7
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
8
8
|
var LoaderWrapper_module_default = {
|
|
@@ -1,6 +1,6 @@
|
|
|
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] = "201b9c35-54f6-4e33-9848-4e3fbd26347a", e._sentryDebugIdIdentifier = "sentry-dbid-201b9c35-54f6-4e33-9848-4e3fbd26347a");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
6
6
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
|
|
@@ -8,8 +8,8 @@ import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
|
8
8
|
import { t as getCapabilities } from "./processCapabilities-hLmRus8U.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-
|
|
12
|
-
import { r as SOLE_PROP_COUNTRIES } from "./Individual.rules-
|
|
11
|
+
import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-oeDmrJa0.js";
|
|
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
|
|
15
15
|
var TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
@@ -1,8 +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] = "7c9cd2e3-8112-4d87-9335-ac1829dcb8f3", e._sentryDebugIdIdentifier = "sentry-dbid-7c9cd2e3-8112-4d87-9335-ac1829dcb8f3");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
6
|
+
import { r as summaryItem } from "./summaryItem-uDWmtYtt.js";
|
|
6
7
|
//#region src/components/Shared/forms/Address/constants.ts
|
|
7
8
|
var addressFields = [
|
|
8
9
|
"address",
|
|
@@ -139,4 +140,68 @@ var LABELS = {
|
|
|
139
140
|
address: { default: ADDRESS }
|
|
140
141
|
};
|
|
141
142
|
//#endregion
|
|
142
|
-
|
|
143
|
+
//#region src/components/Shared/forms/Address/utils.ts
|
|
144
|
+
/**
|
|
145
|
+
* Returns the key for a field of the passed country or the default key for that field.
|
|
146
|
+
* @param fieldName - The data to pre-fill the address fields
|
|
147
|
+
* @param country - The selected country
|
|
148
|
+
*/
|
|
149
|
+
var getKeyForField = (fieldName, country) => country ? LABELS[fieldName][country] || LABELS[fieldName].default : LABELS[fieldName].default;
|
|
150
|
+
/**
|
|
151
|
+
* Returns the address schema of the selected country or the default address schema.
|
|
152
|
+
* @param country - The selected country
|
|
153
|
+
*/
|
|
154
|
+
var getAddressSchemaForCountry = (country) => country && ADDRESS_SCHEMAS[country] ? ADDRESS_SCHEMAS[country] : ADDRESS_SCHEMAS.default;
|
|
155
|
+
/**
|
|
156
|
+
* Returns the field labels for each field in the selected countries address schema.
|
|
157
|
+
* @param country - The selected country
|
|
158
|
+
*/
|
|
159
|
+
var getAddressSchemaLabelsByCountry = (country) => {
|
|
160
|
+
return getAddressSchemaForCountry(country).reduce((labels, field) => ({
|
|
161
|
+
...labels,
|
|
162
|
+
[field]: getKeyForField(field, country)
|
|
163
|
+
}), {});
|
|
164
|
+
};
|
|
165
|
+
var mapAddressLabels = (data, datasetUtils) => {
|
|
166
|
+
if (data?.country) return getAddressSchemaForCountry(data.country).reduce((mappedAddress, field) => {
|
|
167
|
+
const labelKey = getKeyForField(field, data.country);
|
|
168
|
+
const value = data?.[field];
|
|
169
|
+
if (!value) return mappedAddress;
|
|
170
|
+
switch (field) {
|
|
171
|
+
case "country": return {
|
|
172
|
+
...mappedAddress,
|
|
173
|
+
[field]: summaryItem(labelKey, datasetUtils.getCountryName(value) ?? value)
|
|
174
|
+
};
|
|
175
|
+
case "stateOrProvince": return {
|
|
176
|
+
...mappedAddress,
|
|
177
|
+
[field]: summaryItem(labelKey, datasetUtils.getStateName(value, data.country) ?? value)
|
|
178
|
+
};
|
|
179
|
+
default: return {
|
|
180
|
+
...mappedAddress,
|
|
181
|
+
[field]: summaryItem(labelKey, value)
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
}, {});
|
|
185
|
+
return data;
|
|
186
|
+
};
|
|
187
|
+
var mapAddressLabelsNewSummary = (data, datasetUtils) => {
|
|
188
|
+
if (!data?.country) return {};
|
|
189
|
+
const addressSchema = getAddressSchemaForCountry(data.country);
|
|
190
|
+
const mappedSummary = {};
|
|
191
|
+
for (const field of addressSchema) {
|
|
192
|
+
const labelKey = getKeyForField(field, data.country);
|
|
193
|
+
const value = data?.[field];
|
|
194
|
+
if (field === "country") {
|
|
195
|
+
mappedSummary[labelKey] = datasetUtils.getCountryName(value) ?? value;
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
if (field === "stateOrProvince") {
|
|
199
|
+
mappedSummary[labelKey] = datasetUtils.getStateName(value, data.country) ?? value;
|
|
200
|
+
continue;
|
|
201
|
+
}
|
|
202
|
+
mappedSummary[labelKey] = value;
|
|
203
|
+
}
|
|
204
|
+
return mappedSummary;
|
|
205
|
+
};
|
|
206
|
+
//#endregion
|
|
207
|
+
export { mapAddressLabelsNewSummary as a, COUNTRIES_WITH_STATES_DATASET as c, mapAddressLabels as i, addressFields as l, getAddressSchemaLabelsByCountry as n, CONDENSED_ADDRESS_FIELDS as o, getKeyForField as r, COUNTRIES_WITH_HOUSE_NUMBER_FIRST as s, getAddressSchemaForCountry as t };
|
|
@@ -1,23 +1,16 @@
|
|
|
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] = "e9249d78-3840-4749-abca-5eedc28ac928", e._sentryDebugIdIdentifier = "sentry-dbid-e9249d78-3840-4749-abca-5eedc28ac928");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-
|
|
5
|
+
import { r as useTranslation } from "./translation-BR3rLb4m.js";
|
|
6
6
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
7
|
-
import { l as keysOf } from "./AnalyticsContext-BFrJmsp0.js";
|
|
8
7
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
9
|
-
import { t as TaskTypes } from "./taskTypes-NawDTp5n.js";
|
|
10
|
-
import { t as SettingNames } from "./types-Cwq1JAWT.js";
|
|
11
8
|
import { c as CompanyTypesValues } from "./bafinUtils-BKq-s1Ka.js";
|
|
12
|
-
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, u as spacer } from "./MaskedInput-
|
|
13
|
-
import { i as COUNTRIES_WITH_STATES_DATASET } from "./constants-DrtMSDfx.js";
|
|
14
|
-
import { t as isJapanLocalizationEnabled } from "./japanSupportUtils-H5Zfox2v.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-Ccb-5Sk2.js";
|
|
15
10
|
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
16
|
-
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-
|
|
17
|
-
import { t as Field } from "./Field-
|
|
18
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
19
|
-
import { t as createFormRules } from "./form-rules-CUUQGacJ.js";
|
|
20
|
-
import { n as isDateOlderThanAYear } from "./utils-K8Z-zRnu.js";
|
|
11
|
+
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-CDmm-_TB.js";
|
|
12
|
+
import { t as Field } from "./Field-DAUlw0M5.js";
|
|
13
|
+
import { t as RadioGroup } from "./RadioGroup-CMiBSXCA.js";
|
|
21
14
|
import { useCallback, useEffect, useMemo } from "preact/hooks";
|
|
22
15
|
import { jsx } from "preact/jsx-runtime";
|
|
23
16
|
//#region src/types/datasets/state-code.ts
|
|
@@ -2086,52 +2079,7 @@ function getDefaultTaxIdNumberType(taxInformation, country, entityType, invertCo
|
|
|
2086
2079
|
return existingTaxInformation?.type ?? (existingTaxInformation?.number ? inferTaxIdNumberType(taxInformation, country, entityType, invertCompanyTypeFilter) : getTaxIdNumberOptions(country, entityType, invertCompanyTypeFilter)?.[0]?.id);
|
|
2087
2080
|
}
|
|
2088
2081
|
//#endregion
|
|
2089
|
-
//#region src/components/Business/utils/requestingCapabilities.ts
|
|
2090
|
-
var ISSUING_CAPABILITY_GROUP = [
|
|
2091
|
-
"issueCard",
|
|
2092
|
-
"issueCardConsumer",
|
|
2093
|
-
"issueCardCommercial",
|
|
2094
|
-
"useCard",
|
|
2095
|
-
"useCardConsumer",
|
|
2096
|
-
"useCardCommercial"
|
|
2097
|
-
];
|
|
2098
|
-
function requestingIssuing(rootLegalEntity) {
|
|
2099
|
-
const capabilities = rootLegalEntity?.capabilities ?? {};
|
|
2100
|
-
return ISSUING_CAPABILITY_GROUP.some((capability) => capability in capabilities && capabilities[capability]?.requested === true);
|
|
2101
|
-
}
|
|
2102
|
-
var BANKING_CAPABILITY_GROUP = [
|
|
2103
|
-
"issueBankAccount",
|
|
2104
|
-
"sendToThirdParty",
|
|
2105
|
-
"receiveFromThirdParty"
|
|
2106
|
-
];
|
|
2107
|
-
function requestingBanking(rootLegalEntity) {
|
|
2108
|
-
const capabilities = rootLegalEntity?.capabilities ?? {};
|
|
2109
|
-
return BANKING_CAPABILITY_GROUP.some((capability) => capability in capabilities && capabilities[capability]?.requested === true);
|
|
2110
|
-
}
|
|
2111
|
-
//#endregion
|
|
2112
|
-
//#region src/components/Business/utils/utils.ts
|
|
2113
|
-
var countryToTaxInfoTypeMap = {
|
|
2114
|
-
US: "EIN",
|
|
2115
|
-
AU: "ABN",
|
|
2116
|
-
NZ: "IRD",
|
|
2117
|
-
HK: "BRN",
|
|
2118
|
-
SG: "GST"
|
|
2119
|
-
};
|
|
2120
|
-
var isFinancialInformationRequired = (isFinancialInformationFeatureEnabled, taskType, country, capabilities, legalEntityType) => {
|
|
2121
|
-
const isOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION;
|
|
2122
|
-
if (!isFinancialInformationFeatureEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) return;
|
|
2123
|
-
if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) return "REQUIRED";
|
|
2124
|
-
if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
|
|
2125
|
-
if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) return "REQUIRED";
|
|
2126
|
-
}
|
|
2127
|
-
};
|
|
2128
|
-
var getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
|
|
2129
|
-
if (!isCountryOfGoverningLawEnabled || basicData?.country !== CountryCodes.UnitedKingdom) return;
|
|
2130
|
-
return !basicData.countryOfGoverningLaw ? CountryCodes.UnitedKingdom : basicData.countryOfGoverningLaw;
|
|
2131
|
-
};
|
|
2132
|
-
//#endregion
|
|
2133
2082
|
//#region src/components/Business/forms/rules.constants.ts
|
|
2134
|
-
var isRegistrationExemptionAllowed = (country) => country in REGISTRATION_NUMBER_EXEMPTION_RULES;
|
|
2135
2083
|
/**
|
|
2136
2084
|
* Source of truth for registration-number exemption eligibility in Business Details.
|
|
2137
2085
|
*
|
|
@@ -2151,41 +2099,28 @@ var REGISTRATION_NUMBER_EXEMPTION_RULES = {
|
|
|
2151
2099
|
[CountryCodes.HongKong]: [],
|
|
2152
2100
|
[CountryCodes.NewZealand]: []
|
|
2153
2101
|
};
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
];
|
|
2102
|
+
/**
|
|
2103
|
+
* @description Countries in this list use the provider-backed company search flow.
|
|
2104
|
+
* For these countries, business details can be prefilled from provider results,
|
|
2105
|
+
* and search/verification may require tax identifiers (for example TIN or VAT)
|
|
2106
|
+
* in addition to company name/registration details.
|
|
2107
|
+
*
|
|
2108
|
+
* If a country is in this list, it means it will attempt to make an api call for company search.
|
|
2109
|
+
* If the api doesnt have a provider for that country, it will return no results like below
|
|
2110
|
+
* ```
|
|
2111
|
+
* {
|
|
2112
|
+
* "results": [],
|
|
2113
|
+
* "provider": "NO_PROVIDER"
|
|
2114
|
+
* }
|
|
2115
|
+
* ```
|
|
2116
|
+
*/
|
|
2117
|
+
var COUNTRIES_USING_COMPANY_SEARCH = [CountryCodes.UnitedStates, CountryCodes.UnitedKingdom];
|
|
2170
2118
|
var COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION = [
|
|
2171
2119
|
CountryCodes.HongKong,
|
|
2172
2120
|
CountryCodes.PuertoRico,
|
|
2173
2121
|
CountryCodes.UnitedStates
|
|
2174
2122
|
];
|
|
2175
|
-
var COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS = [
|
|
2176
|
-
CountryCodes.Austria,
|
|
2177
|
-
CountryCodes.Canada,
|
|
2178
|
-
CountryCodes.Finland,
|
|
2179
|
-
CountryCodes.Germany,
|
|
2180
|
-
CountryCodes.Lithuania,
|
|
2181
|
-
CountryCodes.Luxembourg,
|
|
2182
|
-
CountryCodes.NewZealand,
|
|
2183
|
-
CountryCodes.Poland,
|
|
2184
|
-
CountryCodes.Sweden,
|
|
2185
|
-
CountryCodes.Switzerland
|
|
2186
|
-
];
|
|
2187
2123
|
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER = [CountryCodes.Canada, CountryCodes.UnitedStates];
|
|
2188
|
-
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [CountryCodes.Germany];
|
|
2189
2124
|
/**
|
|
2190
2125
|
* Also used to determine what documenttype needs to be used
|
|
2191
2126
|
* when uploading tax document in mapping.ts
|
|
@@ -2206,31 +2141,9 @@ var COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT = [
|
|
|
2206
2141
|
CountryCodes.Brazil,
|
|
2207
2142
|
CountryCodes.Japan
|
|
2208
2143
|
];
|
|
2209
|
-
var COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [CountryCodes.Singapore];
|
|
2210
2144
|
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES = [];
|
|
2211
|
-
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS = [
|
|
2212
|
-
CountryCodes.Canada,
|
|
2213
|
-
CountryCodes.PuertoRico,
|
|
2214
|
-
CountryCodes.UnitedStates
|
|
2215
|
-
];
|
|
2216
2145
|
var COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION = [CountryCodes.HongKong, CountryCodes.Singapore];
|
|
2217
2146
|
var COUNTRIES_THAT_USES_UEN_OR_GST = [CountryCodes.Singapore];
|
|
2218
|
-
/**
|
|
2219
|
-
* @description Countries in this list use the provider-backed company search flow.
|
|
2220
|
-
* For these countries, business details can be prefilled from provider results,
|
|
2221
|
-
* and search/verification may require tax identifiers (for example TIN or VAT)
|
|
2222
|
-
* in addition to company name/registration details.
|
|
2223
|
-
*
|
|
2224
|
-
* If a country is in this list, it means it will attempt to make an api call for company search.
|
|
2225
|
-
* If the api doesnt have a provider for that country, it will return no results like below
|
|
2226
|
-
* ```
|
|
2227
|
-
* {
|
|
2228
|
-
* "results": [],
|
|
2229
|
-
* "provider": "NO_PROVIDER"
|
|
2230
|
-
* }
|
|
2231
|
-
* ```
|
|
2232
|
-
*/
|
|
2233
|
-
var COUNTRIES_USING_COMPANY_SEARCH = [CountryCodes.UnitedStates, CountryCodes.UnitedKingdom];
|
|
2234
2147
|
var COUNTRY_OF_GOVERNING_LAW_POSSIBLE = [CountryCodes.UnitedKingdom];
|
|
2235
2148
|
var COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [
|
|
2236
2149
|
CountryCodes.Austria,
|
|
@@ -2271,172 +2184,42 @@ var TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION = [
|
|
|
2271
2184
|
CountryCodes.Slovakia,
|
|
2272
2185
|
CountryCodes.Slovenia
|
|
2273
2186
|
];
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
isVatExempt: () => {
|
|
2311
|
-
if (!COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) return data.additionalInformation?.exemptedFromVat ? "REQUIRED" : "OPTIONAL";
|
|
2312
|
-
},
|
|
2313
|
-
countryUsesTaxId: () => {
|
|
2314
|
-
const isExemptFromTax = Boolean(data.basicInformation?.exemptedFromTax ?? data.additionalInformation?.exemptedFromTax);
|
|
2315
|
-
const isOrgWithBanking = rootLegalEntity?.type === "organization" && keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount");
|
|
2316
|
-
const registrationNumberType = isFeatureEnabled("EnableUnifiedCompanySearch") ? data.basicInformation?.registrationNumberType : data.additionalInformation?.registrationNumberType;
|
|
2317
|
-
if (TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION.includes(country) && isOrgWithBanking) return isExemptFromTax ? "OPTIONAL" : "REQUIRED";
|
|
2318
|
-
if (country === CountryCodes.Italy && isOrgWithBanking && registrationNumberType === "CCIAA") return isExemptFromTax ? "OPTIONAL" : "REQUIRED";
|
|
2319
|
-
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";
|
|
2320
|
-
},
|
|
2321
|
-
companyRegistrationNumberExemptionAllowed: () => {
|
|
2322
|
-
const isExemptFromRegistrationNumber = Boolean(data.basicInformation?.exemptedFromRegistrationNumber ?? data.additionalInformation?.exemptedFromRegistrationNumber);
|
|
2323
|
-
if (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) {
|
|
2324
|
-
if (!COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS.includes(country)) return;
|
|
2325
|
-
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
2326
|
-
}
|
|
2327
|
-
if (!isRegistrationExemptionAllowed(country)) return;
|
|
2328
|
-
const companyType = data.companyStructure?.entityType;
|
|
2329
|
-
const allowedTypes = REGISTRATION_NUMBER_EXEMPTION_RULES[country];
|
|
2330
|
-
if (allowedTypes.length > 0 && companyType && !allowedTypes.includes(companyType)) return;
|
|
2331
|
-
/**
|
|
2332
|
-
* Country-specific guard checks before applying the shared exemption rule result.
|
|
2333
|
-
*
|
|
2334
|
-
* - HK first enforces the legacy registration-number presence guard for existing entities.
|
|
2335
|
-
* - AU/NZ then enforce the absent-state V4 feature flag gate.
|
|
2336
|
-
*/
|
|
2337
|
-
switch (country) {
|
|
2338
|
-
case CountryCodes.HongKong:
|
|
2339
|
-
if (!defaultData?.basicInformation?.registrationNumber && !defaultData?.additionalInformation?.registrationNumber) return;
|
|
2340
|
-
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
2341
|
-
case CountryCodes.Australia:
|
|
2342
|
-
case CountryCodes.NewZealand:
|
|
2343
|
-
if (!isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4")) return;
|
|
2344
|
-
return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
2345
|
-
default: return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
|
|
2346
|
-
}
|
|
2347
|
-
},
|
|
2348
|
-
countryOfGoverningLawRequired: () => {
|
|
2349
|
-
if (isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies") && COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(data.basicInformation?.country)) return "REQUIRED";
|
|
2350
|
-
},
|
|
2351
|
-
countryRequiresRegistrationNumber: () => {
|
|
2352
|
-
const isExemptFromRegistrationNumber = Boolean(data.basicInformation?.exemptedFromRegistrationNumber ?? data.additionalInformation?.exemptedFromRegistrationNumber);
|
|
2353
|
-
switch (taskType) {
|
|
2354
|
-
case TaskTypes.SOLE_PROPRIETOR_COMPANY:
|
|
2355
|
-
if (COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country)) return;
|
|
2356
|
-
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS.includes(country)) return "OPTIONAL";
|
|
2357
|
-
return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
|
|
2358
|
-
default:
|
|
2359
|
-
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
2360
|
-
if (country === CountryCodes.HongKong) {
|
|
2361
|
-
if (!defaultData?.additionalInformation?.registrationNumber) return;
|
|
2362
|
-
return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
|
|
2363
|
-
}
|
|
2364
|
-
if (!COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return isExemptFromRegistrationNumber ? void 0 : "REQUIRED";
|
|
2365
|
-
}
|
|
2366
|
-
},
|
|
2367
|
-
registrationNumberType: () => {
|
|
2368
|
-
switch (taskType) {
|
|
2369
|
-
case TaskTypes.SOLE_PROPRIETOR_COMPANY:
|
|
2370
|
-
if (COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country)) return;
|
|
2371
|
-
return "OPTIONAL";
|
|
2372
|
-
default:
|
|
2373
|
-
if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) return "OPTIONAL";
|
|
2374
|
-
if (COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return;
|
|
2375
|
-
return "OPTIONAL";
|
|
2376
|
-
}
|
|
2377
|
-
},
|
|
2378
|
-
countryUsesUenOrGst: () => {
|
|
2379
|
-
if (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) return;
|
|
2380
|
-
if (COUNTRIES_THAT_USES_UEN_OR_GST.includes(country)) return "REQUIRED";
|
|
2381
|
-
},
|
|
2382
|
-
countryHasTaxExemptions: () => {
|
|
2383
|
-
const isExemptFromTax = Boolean(data.basicInformation?.exemptedFromTax ?? data.additionalInformation?.exemptedFromTax);
|
|
2384
|
-
switch (taskType) {
|
|
2385
|
-
case TaskTypes.SOLE_PROPRIETOR_COMPANY:
|
|
2386
|
-
if (!COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS.includes(country)) return;
|
|
2387
|
-
return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
2388
|
-
default:
|
|
2389
|
-
if (isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust") return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
2390
|
-
if (COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES.includes(country)) return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
|
|
2391
|
-
}
|
|
2392
|
-
},
|
|
2393
|
-
usingCompanySearch: () => {
|
|
2394
|
-
if (isUsingCompanySearch(country, taskType)) return "REQUIRED";
|
|
2395
|
-
},
|
|
2396
|
-
requireStateOrProvinceForCompanySearch: () => {
|
|
2397
|
-
if (isUsingCompanySearch(country, taskType) && COUNTRIES_WITH_STATES_DATASET.includes(country)) return "REQUIRED";
|
|
2398
|
-
},
|
|
2399
|
-
countryRequiresFinancialInformation,
|
|
2400
|
-
isDateOfIncorporationRequired: () => {
|
|
2401
|
-
return countryRequiresDateOfIncorporationForCompanies() || countryRequiresFinancialInformation();
|
|
2402
|
-
},
|
|
2403
|
-
isFinancialReportingFieldsRequired: () => {
|
|
2404
|
-
if (countryRequiresFinancialInformation() !== "REQUIRED") return;
|
|
2405
|
-
if (isDateOlderThanAYear(data.additionalInformation?.dateOfIncorporation)) return "REQUIRED";
|
|
2406
|
-
/**
|
|
2407
|
-
* MultiForm recalculates required/optional schemas when rules change and reindexes form state
|
|
2408
|
-
* against those schemas. If these financial fields are not included, provider-applied values can
|
|
2409
|
-
* be pruned and appear to reset. Keeping them OPTIONAL by default when the feature is enabled
|
|
2410
|
-
* (instead of undefined) preserves existing values in the form while still avoiding hard validation
|
|
2411
|
-
* requirements when provider data is partial.
|
|
2412
|
-
*/
|
|
2413
|
-
if (hasFinancialInformation(verifiedBusiness?.financialInformation) || hasFinancialInformation(data.companyFinancialInformation)) return "OPTIONAL";
|
|
2414
|
-
},
|
|
2415
|
-
isIndustryCodeRequired: () => {
|
|
2416
|
-
const needsBusinessLine = requestingIssuing(rootLegalEntity) || requestingBanking(rootLegalEntity);
|
|
2417
|
-
if (isSettingEnabled(SettingNames.AllowBusinessLines) && needsBusinessLine) return "REQUIRED";
|
|
2418
|
-
},
|
|
2419
|
-
annualTurnoverRequired: () => {
|
|
2420
|
-
if (data.companyFinancialInformation?.reportedValueOption === "annualTurnover") return "REQUIRED";
|
|
2421
|
-
},
|
|
2422
|
-
balanceSheetTotalRequired: () => {
|
|
2423
|
-
if (data.companyFinancialInformation?.reportedValueOption === "balanceSheetTotal") return "REQUIRED";
|
|
2424
|
-
},
|
|
2425
|
-
isEInvoicingCodeEnabled: () => {
|
|
2426
|
-
if (isFeatureEnabled("EnableEInvoicingCodeField") && COUNTRIES_REQUIRING_E_INVOICING_CODE.includes(country)) return "REQUIRED";
|
|
2427
|
-
},
|
|
2428
|
-
ifCountryUsAndTinFailed: () => {
|
|
2429
|
-
if (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) return;
|
|
2430
|
-
if (tinMatched === false && country === CountryCodes.UnitedStates) return "REQUIRED";
|
|
2431
|
-
},
|
|
2432
|
-
businessRequiresCompanyType: () => {
|
|
2433
|
-
if (taskType !== TaskTypes.SOLE_PROPRIETOR_COMPANY) return "REQUIRED";
|
|
2434
|
-
},
|
|
2435
|
-
japaneseLegalCompanyName: () => {
|
|
2436
|
-
if (isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
|
|
2437
|
-
}
|
|
2438
|
-
});
|
|
2439
|
-
};
|
|
2187
|
+
/**
|
|
2188
|
+
* Sole proprietorship specific rules
|
|
2189
|
+
*/
|
|
2190
|
+
var COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION = [
|
|
2191
|
+
CountryCodes.Australia,
|
|
2192
|
+
CountryCodes.Gibraltar,
|
|
2193
|
+
CountryCodes.Guernsey,
|
|
2194
|
+
CountryCodes.HongKong,
|
|
2195
|
+
CountryCodes.Ireland,
|
|
2196
|
+
CountryCodes.IsleOfMan,
|
|
2197
|
+
CountryCodes.Jersey,
|
|
2198
|
+
CountryCodes.Malta,
|
|
2199
|
+
CountryCodes.PuertoRico,
|
|
2200
|
+
CountryCodes.Spain,
|
|
2201
|
+
CountryCodes.UnitedKingdom,
|
|
2202
|
+
CountryCodes.UnitedStates
|
|
2203
|
+
];
|
|
2204
|
+
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS = [
|
|
2205
|
+
CountryCodes.Canada,
|
|
2206
|
+
CountryCodes.PuertoRico,
|
|
2207
|
+
CountryCodes.UnitedStates
|
|
2208
|
+
];
|
|
2209
|
+
var COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS = [
|
|
2210
|
+
CountryCodes.Austria,
|
|
2211
|
+
CountryCodes.Canada,
|
|
2212
|
+
CountryCodes.Finland,
|
|
2213
|
+
CountryCodes.Germany,
|
|
2214
|
+
CountryCodes.Lithuania,
|
|
2215
|
+
CountryCodes.Luxembourg,
|
|
2216
|
+
CountryCodes.NewZealand,
|
|
2217
|
+
CountryCodes.Poland,
|
|
2218
|
+
CountryCodes.Sweden,
|
|
2219
|
+
CountryCodes.Switzerland
|
|
2220
|
+
];
|
|
2221
|
+
var COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [CountryCodes.Singapore];
|
|
2222
|
+
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [CountryCodes.Germany];
|
|
2440
2223
|
//#endregion
|
|
2441
2224
|
//#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.tsx
|
|
2442
2225
|
function TaxIdNumberTypeSelector({ country, companyType, invertCompanyTypeFilter, selected, setSelected, exemptedOptionLabel, isUsSoleProp, errorMessage }) {
|
|
@@ -2504,4 +2287,4 @@ function removeTaxInfoForCountry(taxInformation, country) {
|
|
|
2504
2287
|
return taxInformation?.filter((t) => t.country !== country);
|
|
2505
2288
|
}
|
|
2506
2289
|
//#endregion
|
|
2507
|
-
export {
|
|
2290
|
+
export { taxInformationDefaultFieldMetadata as A, getTaxIdNumberOptions as C, exemptedFromTaxDefaultFieldMetadata as D, exemptedFromTaxDefaultFieldConfig as E, businessRegistrationNumberMasks as M, stateFormatGuidanceText as N, getTaxInformationPlaceholderText as O, getDefaultTaxIdNumberType as S, taxIdNumberOptions as T, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS as _, COUNTRIES_REQUIRING_FINANCIAL_INFORMATION as a, REGISTRATION_NUMBER_EXEMPTION_RULES as b, COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP as c, COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as d, COUNTRIES_USING_COMPANY_SEARCH as f, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES as g, COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS as h, COUNTRIES_REQUIRING_E_INVOICING_CODE as i, businessRegistrationNumberPatterns as j, taxInformationDefaultFieldConfig as k, COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION as l, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS as m, upsertTaxInfoForCountry as n, COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION as o, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER as p, TaxIdNumberTypeSelector as r, COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION as s, removeTaxInfoForCountry as t, COUNTRIES_THAT_USES_UEN_OR_GST as u, COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 as v, getValidCompanyTypesForTaxIdNumberType as w, TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION as x, COUNTRY_OF_GOVERNING_LAW_POSSIBLE as y };
|
|
@@ -1,12 +1,11 @@
|
|
|
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] = "89fbde08-aa62-41d6-969f-1f394063885f", e._sentryDebugIdIdentifier = "sentry-dbid-89fbde08-aa62-41d6-969f-1f394063885f");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { a as Icon, i as Typography, o as createLogger, r as useTranslation } from "./translation-
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
8
|
-
import {
|
|
9
|
-
import { i as useAnalyticsContext } from "./Modal-BgeE7zM2.js";
|
|
5
|
+
import { a as Icon, i as Typography, o as createLogger, r as useTranslation } from "./translation-BR3rLb4m.js";
|
|
6
|
+
import { n as IconButton, r as Loader } from "./Button-3qGOI53m.js";
|
|
7
|
+
import { n as httpGet, r as httpPost, t as httpDelete } from "./http-DeQp0G69.js";
|
|
8
|
+
import { i as useAnalyticsContext } from "./Modal-C__-5LgI.js";
|
|
10
9
|
import { t as getLocalizedIdDocumentTypeOptions } from "./utils-DwujAUJC.js";
|
|
11
10
|
import { useEffect } from "preact/hooks";
|
|
12
11
|
import cx from "classnames";
|
|
@@ -218,17 +217,6 @@ var mergeProofOfOwnershipAttachments = (existing, incoming) => {
|
|
|
218
217
|
return [...incoming, ...filteredExisting].slice(0, 2);
|
|
219
218
|
};
|
|
220
219
|
//#endregion
|
|
221
|
-
//#region src/context/StateContext/StateContextSetter.tsx
|
|
222
|
-
function StateContextSetter({ stateRef }) {
|
|
223
|
-
if (stateRef.current.setState) return null;
|
|
224
|
-
return /* @__PURE__ */ jsx(StateContext.Consumer, { children: (stateContextValue) => {
|
|
225
|
-
const { dispatch, setActiveForms } = stateContextValue;
|
|
226
|
-
stateRef.current.setState = dispatch;
|
|
227
|
-
stateRef.current.setActiveForms = setActiveForms;
|
|
228
|
-
return null;
|
|
229
|
-
} });
|
|
230
|
-
}
|
|
231
|
-
//#endregion
|
|
232
220
|
//#region src/utils/bytesToSize.ts
|
|
233
221
|
function bytesToSize(bytes) {
|
|
234
222
|
const sizes = [
|
|
@@ -394,4 +382,4 @@ var fileValidationRules = ({ allowedFileTypes, maxNumberOfFiles, maxSize, isOpti
|
|
|
394
382
|
}
|
|
395
383
|
];
|
|
396
384
|
//#endregion
|
|
397
|
-
export {
|
|
385
|
+
export { createDocumentRequest as a, getDocuments as c, mergeAttachments as d, mergeProofOfOwnershipAttachments as f, bytesToSize as i, getFileExtention as l, fileValidationRules as n, documentApiUtils as o, DropzoneFile as r, getDocument as s, defaultFileValidationOptions as t, getIdDocument as u };
|
|
@@ -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-QjQSqNQs.js";
|
|
6
6
|
//#region src/components/EFP/tasks/BusinessFinancingDropin/validate.ts
|
|
7
7
|
var validateLegalEntityIdentifier = (legalEntityIdentifier) => {
|
|
8
8
|
if (!legalEntityIdentifier) return true;
|