@adyen/kyc-components 3.68.3 → 3.69.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-B1L_5Mar.js → AcceptTermsOfServiceComponent-CbxhLrMO.js} +35 -60
- package/dist/{AccountSetupRejected-CDiMcMlV.js → AccountSetupRejected-DGXslaws.js} +3 -3
- package/dist/{BusinessTypeSelection-CTL2ECRs.js → BusinessTypeSelection-fRfIaFLI.js} +4 -4
- package/dist/{CXEL7IU7-DK7Za0QU.js → CXEL7IU7-aKB9iLia.js} +3 -3
- package/dist/{CreateIndividualComponent-kCm3i-vM.js → CreateIndividualComponent-CbjhVVFf.js} +92 -194
- package/dist/{CustomerSupport-DWAm23Us.js → CustomerSupport-DKXz-kIB.js} +4 -4
- package/dist/{DebugModal-kg7TIA4_.js → DebugModal-D8K6RGj2.js} +8 -8
- package/dist/{DecisionMakers-Dng6SsSq.js → DecisionMakers-CIJQ3zov.js} +4 -4
- package/dist/{EmbedShell-BRE-er34.js → EmbedShell-CnI41OS9.js} +28 -8
- package/dist/{EventEmitter-D2fpze21.js → EventEmitter-Cga9L9ga.js} +418 -428
- package/dist/{HASRA6WW-B-L6bY1D.js → HASRA6WW-DElz5DM0.js} +2 -2
- package/dist/{I3HPI4QX-DvG-mupt.js → I3HPI4QX-4Ffr9LmC.js} +3 -3
- package/dist/{Introduction-CXrcsG6u.js → Introduction-C3ID8Vya.js} +3 -3
- package/dist/{Review-BlhVLQ7e.js → Review-Du7TnL-n.js} +8 -14
- package/dist/{SingpassSelection-MI6bnKQ6.js → SingpassSelection-YiO_l2KR.js} +1 -1
- package/dist/{TaxReportingDropin-Biv-eBW1.js → TaxReportingDropin-CnTMe6fD.js} +10 -16
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +1 -1
- package/dist/{bg-BG-CfJNzZu7.js → bg-BG-Ce7O3eFv.js} +15 -4
- package/dist/{core-CkFz5z0L.js → core-_EkviUyo.js} +275 -416
- package/dist/{cs-CZ-CRMGIz8x.js → cs-CZ-CrC0OM0G.js} +16 -5
- package/dist/{css-rbxi2nD5.js → css-CMXdhj7V.js} +1 -1
- package/dist/{da-DK-C7ftGVR7.js → da-DK-qSfql5UY.js} +15 -4
- package/dist/{de-DE-C39k0axr.js → de-DE-3LOqfpiA.js} +15 -4
- package/dist/{el-GR-BGGUBqdt.js → el-GR-CTuJ6hn-.js} +15 -4
- package/dist/{es-ES-BojuwecZ.js → es-ES-DgVFlRYZ.js} +19 -8
- package/dist/{et-EE-DEVH-7IA.js → et-EE-Bgft_08b.js} +15 -4
- package/dist/{fi-FI-Bku_85E3.js → fi-FI-CQW_GIPa.js} +15 -4
- package/dist/{fr-FR-HnJ_pnor.js → fr-FR-dNqcyG5e.js} +15 -4
- package/dist/{hr-HR-DXiqG0wV.js → hr-HR-C8WCFUb9.js} +15 -4
- package/dist/{hu-HU-DctyKbNV.js → hu-HU-OdcVNvSN.js} +15 -4
- package/dist/individual.js +5 -4
- package/dist/{it-IT-tSaYFPHL.js → it-IT-CPBQVRCK.js} +15 -4
- package/dist/{ja-JP-DrupcLqM.js → ja-JP-Bh4irw6C.js} +15 -4
- package/dist/{json-CjF__AdT.js → json-svAhX5Bd.js} +1 -1
- package/dist/{listToRecord-DaA2XP7r.js → listToRecord-CXkPgVsw.js} +1 -1
- package/dist/{lt-LT-C4y-mmdw.js → lt-LT-vglMkJcJ.js} +15 -4
- package/dist/{lv-LV-CqmNw1Ry.js → lv-LV-BbjKCqpN.js} +15 -4
- package/dist/{nl-NL-CALz56wW.js → nl-NL-D_O0KNNq.js} +15 -4
- package/dist/{no-NO-SyIXHgGV.js → no-NO-qkYiqc6y.js} +16 -5
- package/dist/{pl-PL-veuK_Fs-.js → pl-PL-Dt_cU3CC.js} +15 -4
- package/dist/{plaintext-CyQv4kTZ.js → plaintext-BZaNPCkz.js} +1 -1
- package/dist/{pt-PT-KPmxJycM.js → pt-PT-ikqIUFTg.js} +15 -4
- package/dist/{ro-RO-DPXG-We0.js → ro-RO-gzqKZPHh.js} +15 -4
- package/dist/{sk-SK-ldAkSZl-.js → sk-SK-BY3g56qX.js} +16 -5
- package/dist/{sl-SI-CH3W5STZ.js → sl-SI-HorvDYvW.js} +15 -4
- package/dist/style.css +5 -2
- package/dist/styles-CLV89_hH.js +5 -2
- package/dist/{sv-SE-DFrDPziR.js → sv-SE-X6UKX96z.js} +16 -5
- package/dist/terms-of-service.js +5 -4
- package/dist/types/api/address/useSearchAddress.d.ts +1 -1
- package/dist/types/api/check/useCheck.d.ts +1 -1
- package/dist/types/api/companyDataSet/useCompanyDataset.d.ts +15 -3
- package/dist/types/api/companyDataSet/useRefreshCompanyDataset.d.ts +6 -2
- package/dist/types/api/companySearch/useCompanyDeepSearch.d.ts +12 -3
- package/dist/types/api/companySearch/useCompanyIndexSearch.d.ts +2 -3
- package/dist/types/api/companySearch/useCompanyRegistrationNumberDeepSearch.d.ts +2 -3
- package/dist/types/api/companySearch/useCompanyRegistrationNumberIndexSearch.d.ts +2 -3
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +15 -3
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -1
- package/dist/types/api/pciTemplate/usePciQuestionnaire.d.ts +1 -1
- package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +1 -1
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +1 -1
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +4 -5
- package/dist/types/api/transferInstruments/useCreateTransferInstrument.d.ts +1 -1
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -1
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -1
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -1
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard.d.ts +2 -1
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +1 -1
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +1 -1
- package/dist/types/components/Business/hooks/useBusinessData/types.d.ts +7 -12
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/IdVerification/IdVerification.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdVerification/types.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +1 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +0 -2
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +1 -3
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +4 -3
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -1
- package/dist/types/components/UnincorporatedPartnership/types/types.d.ts +9 -0
- package/dist/types/context/ApiContext/ApiProvider.d.ts +3 -3
- package/dist/types/context/FormRouterContext/FormRouterContextProvider.d.ts +1 -1
- package/dist/types/context/FormRouterContext/types.d.ts +0 -2
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +5 -2
- package/dist/types/core/UIElement/UIElement.d.ts +1 -1
- package/dist/types/core/core.d.ts +1 -1
- package/dist/types/core/services/types.d.ts +3 -15
- package/dist/types/core/services/utils.d.ts +1 -3
- package/dist/types/core/types.d.ts +0 -4
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{yaml-C7Gy0d0h.js → yaml-20recjBc.js} +1 -1
- package/package.json +1 -1
- package/dist/types/components/Individual/hooks/useIdVerificationToken.d.ts +0 -13
- package/dist/types/core/models/api/company-search.d.ts +0 -70
package/dist/{CreateIndividualComponent-kCm3i-vM.js → CreateIndividualComponent-CbjhVVFf.js}
RENAMED
|
@@ -2,36 +2,30 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d9a265bb-24ee-4b81-86b5-690784799293", e._sentryDebugIdIdentifier = "sentry-dbid-d9a265bb-24ee-4b81-86b5-690784799293");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useApiContext, b as useQuery, d as httpGet, e as useMutation, h as httpPost, R as useInvalidateRootLegalEntity, f as useQueryClient,
|
|
11
|
+
import { a as useApiContext, b as useQuery, d as httpGet, e as useMutation, h as httpPost, R as useInvalidateRootLegalEntity, f as useQueryClient, dq as FormContext, $ as entriesOf, aC as objectsDeepEqual, c as createLogger, c5 as TrustedFieldsProvider, aL as businessDetailsApiKeyMapping, dr as individualApiKeyMapping, ds as remediationHasFileUploadField, dt as dataMissingRemediationsToFieldsMap, k as keysOf, n as useExperimentsContext, q as getLegalEntityCountry, C as CountryCodes, a6 as isPartOfTrustFromLegalEntity, J as LegalEntityType, a7 as hasSolePropInLegalEntity, du as individualComponentsKeyMapping, aE as businessDetailsComponentsKeyMapping, j as useAnalyticsContext, cE as summaryStep, dv as ValidationResult, dw as isNotEmptyValidator, H as isEmpty, I as useCoreContext, dx as AdyenKycSdkError, dy as hasText, dz as matchesRegex, dA as trimValWithOneSpace, dB as NO_ALPHABET_REGEX, dC as EMOJI_REGEX, dD as hasRepeatedCharacters, dE as isInvalidName, dF as INDIVIDUAL_VALID_CHAR_REGEX, dG as getFormattingRegEx, dH as SPECIAL_CHARS, dI as FormRouterContext, i as useI18nContext, d5 as MaybeModal, D as ModalContent, B as ModalHeader, L as LoaderWrapper, cF as FormNavigation, F as ModalFooter, dJ as StepProgressIndicator, G as Button, Y as Spacer, cG as Summary, U as httpDelete, bJ as getLocalizedIdDocumentTypeOptions, dK as isNewlyUploadedFile, T as TaskTypes, dL as remediationPayoutApiKeyMapping, dM as remediationBusinessDetailsApiKeyMapping, dN as remediationIndividualApiKeyMapping, dO as getNestedPropertyKeys, y as cloneObject, dP as isValueObscured, bB as isTruthyValidator, dQ as emailPattern, aS as resolveFieldMetadata, bC as getSSNType, bD as defaultFieldMetadata, bE as defaultFieldConfig, dR as defaultFieldMetadata$1, dS as fieldConfig, aX as defaultFieldMetadata$2, aZ as defaultFieldConfig$1, bF as getAgeToday, bG as euCountries, bH as DecisionMakerType, g as createFormRules, bI as allowedCountriesForNominee, bn as getAddressSchemaForCountry, bo as COUNTRIES_WITH_STATES_DATASET, bK as Scenarios, b6 as reverseMapping, dT as getNomineeFromAssociation, aD as drop, l as useToastContext, o as useSettingsContext, cm as useProviderStatus, b2 as getAssociatedLeAnalyticsPayload, bA as addressValidators, cn as getAsyncIdNumberValidationRule, co as getAsyncPhoneValidationRules, dU as addressFormatters, cp as setHasMotionCaptureScenario, dV as individualForms, cd as showIndividualMotionCapture, cq as getAllowedDecisionMakerRoles, z as datasetUtilities, dW as Individual, ap as getCapabilities, aQ as filterOutUnwantedAssociationsIfRootLE, aO as mapAddressLabels, dX as individualDocumentForms, b8 as localizeDateString, dY as individualDocumentMapping, dZ as individualObscuredFields, a$ as getOwnEntityAssociations, cr as hasNomineesChanged, cs as attachNomineeToRole, b0 as doArraysMatch, u as useLegalEntity, K as Loader } from "./EventEmitter-Cga9L9ga.js";
|
|
12
12
|
import { useCallback, useMemo, useReducer, useState, useEffect } from "preact/hooks";
|
|
13
|
-
const getScenarios = async (legalEntityId,
|
|
13
|
+
const getScenarios = async (legalEntityId, baseUrl, legalEntityType, countryCode) => {
|
|
14
14
|
const scenarioParams = new URLSearchParams({
|
|
15
15
|
...countryCode && { countryCode },
|
|
16
16
|
...legalEntityType && { legalEntityType }
|
|
17
17
|
});
|
|
18
18
|
return httpGet({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
errorMessage: `Scenarios not available`,
|
|
22
|
-
path: `legalEntities/${legalEntityId}/configurations/scenarios?${scenarioParams}`,
|
|
23
|
-
authentication: "jwt",
|
|
24
|
-
headers: {
|
|
25
|
-
"Content-Type": "application/json"
|
|
26
|
-
}
|
|
19
|
+
baseUrl,
|
|
20
|
+
path: `legalEntities/${legalEntityId}/configurations/scenarios?${scenarioParams}`
|
|
27
21
|
});
|
|
28
22
|
};
|
|
29
23
|
const useScenarios = (countryCode, legalEntityType, options) => {
|
|
30
24
|
var _a;
|
|
31
|
-
const {
|
|
25
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
32
26
|
const result = useQuery({
|
|
33
27
|
queryKey: ["scenarios", legalEntityType, countryCode],
|
|
34
|
-
queryFn: () => getScenarios(
|
|
28
|
+
queryFn: () => getScenarios(rootLegalEntityId.value, baseUrl.value, legalEntityType, countryCode),
|
|
35
29
|
...options
|
|
36
30
|
});
|
|
37
31
|
return {
|
|
@@ -39,41 +33,29 @@ const useScenarios = (countryCode, legalEntityType, options) => {
|
|
|
39
33
|
data: (_a = result.data) == null ? void 0 : _a[legalEntityType]
|
|
40
34
|
};
|
|
41
35
|
};
|
|
42
|
-
const createLegalEntity = async (legalEntityId,
|
|
36
|
+
const createLegalEntity = async (legalEntityId, baseUrl, data) => {
|
|
43
37
|
return httpPost(
|
|
44
38
|
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
errorMessage: "LegalEntity create failed",
|
|
48
|
-
path: `legalEntities/${legalEntityId}/create`,
|
|
49
|
-
authentication: "jwt",
|
|
50
|
-
headers: {
|
|
51
|
-
"Content-Type": "application/json"
|
|
52
|
-
}
|
|
39
|
+
baseUrl,
|
|
40
|
+
path: `legalEntities/${legalEntityId}/create`
|
|
53
41
|
},
|
|
54
42
|
data
|
|
55
43
|
);
|
|
56
44
|
};
|
|
57
45
|
const useCreateLegalEntity = (options) => {
|
|
58
|
-
const {
|
|
46
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
59
47
|
return useMutation({
|
|
60
48
|
mutationFn: (payload) => {
|
|
61
|
-
return createLegalEntity(
|
|
49
|
+
return createLegalEntity(rootLegalEntityId.value, baseUrl.value, payload);
|
|
62
50
|
},
|
|
63
51
|
...options
|
|
64
52
|
});
|
|
65
53
|
};
|
|
66
|
-
const verifyIdNumber = async (legalEntityId,
|
|
54
|
+
const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
|
|
67
55
|
return await httpPost(
|
|
68
56
|
{
|
|
69
|
-
|
|
70
|
-
errorLevel: "warn",
|
|
71
|
-
errorMessage: `Id number verification is not available`,
|
|
57
|
+
baseUrl,
|
|
72
58
|
path: `legalEntities/${legalEntityId}/verifications/idNumber`,
|
|
73
|
-
authentication: "jwt",
|
|
74
|
-
headers: {
|
|
75
|
-
"Content-Type": "application/json"
|
|
76
|
-
},
|
|
77
59
|
// Handler for unhappy flows, i.e. status != 200, in the idNumber verification process
|
|
78
60
|
errorHandler: async (response) => {
|
|
79
61
|
const responseData = await response;
|
|
@@ -89,71 +71,39 @@ const verifyIdNumber = async (legalEntityId, url, data) => {
|
|
|
89
71
|
);
|
|
90
72
|
};
|
|
91
73
|
const useVerifyIdNumber = (options) => {
|
|
92
|
-
const {
|
|
74
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
93
75
|
return useMutation({
|
|
94
|
-
mutationFn: (data) => verifyIdNumber(
|
|
76
|
+
mutationFn: (data) => verifyIdNumber(rootLegalEntityId.value, baseUrl.value, data),
|
|
95
77
|
...options
|
|
96
78
|
});
|
|
97
79
|
};
|
|
98
|
-
const startVerificationCheck = async (rootLegalEntityId,
|
|
80
|
+
const startVerificationCheck = async (rootLegalEntityId, baseUrl, data) => {
|
|
99
81
|
return httpPost(
|
|
100
82
|
{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
errorMessage: `Failed to find address`,
|
|
104
|
-
path: `legalEntities/${rootLegalEntityId}/providers/idVerification/process`,
|
|
105
|
-
authentication: "jwt",
|
|
106
|
-
headers: {
|
|
107
|
-
"Content-Type": "application/json"
|
|
108
|
-
}
|
|
83
|
+
baseUrl,
|
|
84
|
+
path: `legalEntities/${rootLegalEntityId}/providers/idVerification/process`
|
|
109
85
|
},
|
|
110
86
|
data
|
|
111
87
|
);
|
|
112
88
|
};
|
|
113
89
|
const useIdVerificationStartCheck = (options) => {
|
|
114
|
-
const {
|
|
90
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
115
91
|
return useMutation({
|
|
116
|
-
mutationFn: (data) => startVerificationCheck(
|
|
92
|
+
mutationFn: (data) => startVerificationCheck(rootLegalEntityId.value, baseUrl.value, data),
|
|
117
93
|
...options
|
|
118
94
|
});
|
|
119
95
|
};
|
|
120
|
-
const
|
|
96
|
+
const updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
|
|
121
97
|
return httpPost(
|
|
122
98
|
{
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
errorMessage: `Failed to find address`,
|
|
126
|
-
path: `legalEntities/${rootLegalEntityId}/providers/idVerification/initiate`,
|
|
127
|
-
authentication: "jwt",
|
|
128
|
-
headers: {
|
|
129
|
-
"Content-Type": "application/json"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
request
|
|
133
|
-
);
|
|
134
|
-
};
|
|
135
|
-
const useIdVerificationToken = (options) => {
|
|
136
|
-
const { legalEntityId, baseUrl } = useApiContext();
|
|
137
|
-
return useMutation({
|
|
138
|
-
mutationFn: (data) => getIdverificationToken(legalEntityId.value, baseUrl.value, data),
|
|
139
|
-
...options
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
const updateLegalEntity = async (rootLegalEntityId, url, data) => {
|
|
143
|
-
return httpPost(
|
|
144
|
-
{
|
|
145
|
-
loadingContext: url,
|
|
146
|
-
errorLevel: "warn",
|
|
147
|
-
errorMessage: `LegalEntity update failed`,
|
|
148
|
-
path: `legalEntities/${rootLegalEntityId}`,
|
|
149
|
-
authentication: "jwt",
|
|
150
|
-
headers: { "Content-Type": "application/json" }
|
|
99
|
+
baseUrl,
|
|
100
|
+
path: `legalEntities/${rootLegalEntityId}`
|
|
151
101
|
},
|
|
152
102
|
data
|
|
153
103
|
);
|
|
154
104
|
};
|
|
155
105
|
const useUpdateLegalEntity = (options) => {
|
|
156
|
-
const {
|
|
106
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
157
107
|
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
158
108
|
const queryClient = useQueryClient();
|
|
159
109
|
return useMutation({
|
|
@@ -168,13 +118,10 @@ const useUpdateLegalEntity = (options) => {
|
|
|
168
118
|
...options
|
|
169
119
|
});
|
|
170
120
|
};
|
|
171
|
-
const validatePhoneNumber = (
|
|
121
|
+
const validatePhoneNumber = (baseUrl, data) => {
|
|
172
122
|
return httpPost(
|
|
173
123
|
{
|
|
174
|
-
|
|
175
|
-
authentication: "jwt",
|
|
176
|
-
errorLevel: "warn",
|
|
177
|
-
errorMessage: "Phone number validation is not available",
|
|
124
|
+
baseUrl,
|
|
178
125
|
path: `validations/phonenumber`
|
|
179
126
|
},
|
|
180
127
|
data
|
|
@@ -402,24 +349,18 @@ async function convertToSingpassLinkResponse(openIdInitiateResponse) {
|
|
|
402
349
|
return { item };
|
|
403
350
|
}
|
|
404
351
|
const useOpenIdAuthorizationLink = (options) => {
|
|
405
|
-
const {
|
|
352
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
406
353
|
return useQuery({
|
|
407
354
|
queryKey: ["openIdAuthorizationLink"],
|
|
408
|
-
queryFn: () => getOpenIdAuthorizationLink(
|
|
355
|
+
queryFn: () => getOpenIdAuthorizationLink(rootLegalEntityId.value, baseUrl.value),
|
|
409
356
|
...options
|
|
410
357
|
});
|
|
411
358
|
};
|
|
412
|
-
const getOpenIdAuthorizationLink = async (legalEntityId,
|
|
359
|
+
const getOpenIdAuthorizationLink = async (legalEntityId, baseUrl) => {
|
|
413
360
|
return convertToSingpassLinkResponse(
|
|
414
361
|
httpPost({
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
errorMessage: `Failed to initiate openId`,
|
|
418
|
-
path: `/legalEntities/${legalEntityId}/openid/initiate`,
|
|
419
|
-
authentication: "jwt",
|
|
420
|
-
headers: {
|
|
421
|
-
"Content-Type": "application/json"
|
|
422
|
-
}
|
|
362
|
+
baseUrl,
|
|
363
|
+
path: `/legalEntities/${legalEntityId}/openid/initiate`
|
|
423
364
|
})
|
|
424
365
|
);
|
|
425
366
|
};
|
|
@@ -1698,17 +1639,12 @@ const nameFormatters = {
|
|
|
1698
1639
|
}
|
|
1699
1640
|
};
|
|
1700
1641
|
const logger$2 = createLogger();
|
|
1701
|
-
function FormRouterContextProvider({
|
|
1702
|
-
children,
|
|
1703
|
-
forms,
|
|
1704
|
-
setFormIndex,
|
|
1705
|
-
handleGetIdVerificationToken
|
|
1706
|
-
}) {
|
|
1642
|
+
function FormRouterContextProvider({ children, forms, setFormIndex }) {
|
|
1707
1643
|
const contextValue = useMemo(
|
|
1708
1644
|
() => ({
|
|
1709
1645
|
setFormIndex,
|
|
1710
1646
|
goToFormByFieldName: (fieldName) => {
|
|
1711
|
-
if (
|
|
1647
|
+
if (fieldName === "idDocument") {
|
|
1712
1648
|
fieldName = "idVerificationMethod";
|
|
1713
1649
|
}
|
|
1714
1650
|
const formIndex = forms.findIndex(
|
|
@@ -1724,7 +1660,7 @@ function FormRouterContextProvider({
|
|
|
1724
1660
|
}
|
|
1725
1661
|
}
|
|
1726
1662
|
}),
|
|
1727
|
-
[forms,
|
|
1663
|
+
[forms, setFormIndex]
|
|
1728
1664
|
);
|
|
1729
1665
|
return /* @__PURE__ */ jsx(FormRouterContext.Provider, { value: contextValue, children });
|
|
1730
1666
|
}
|
|
@@ -1741,7 +1677,6 @@ const FormWrapper = ({
|
|
|
1741
1677
|
gotoFormByFormIndex,
|
|
1742
1678
|
forms,
|
|
1743
1679
|
activeForm,
|
|
1744
|
-
handleGetIdVerificationToken,
|
|
1745
1680
|
validateForm,
|
|
1746
1681
|
navigationTrackingParams,
|
|
1747
1682
|
hideSidebar,
|
|
@@ -1824,18 +1759,10 @@ const FormWrapper = ({
|
|
|
1824
1759
|
verificationErrors: problems == null ? void 0 : problems.verificationErrors
|
|
1825
1760
|
}
|
|
1826
1761
|
) }),
|
|
1827
|
-
/* @__PURE__ */ jsxs(
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
forms,
|
|
1832
|
-
handleGetIdVerificationToken,
|
|
1833
|
-
children: [
|
|
1834
|
-
children,
|
|
1835
|
-
activeForm.formId === summaryStep.formId && summary && summaryContent
|
|
1836
|
-
]
|
|
1837
|
-
}
|
|
1838
|
-
)
|
|
1762
|
+
/* @__PURE__ */ jsxs(FormRouterContextProvider, { setFormIndex: gotoFormByFormIndex, forms, children: [
|
|
1763
|
+
children,
|
|
1764
|
+
activeForm.formId === summaryStep.formId && summary && summaryContent
|
|
1765
|
+
] })
|
|
1839
1766
|
] }) })
|
|
1840
1767
|
] }),
|
|
1841
1768
|
!hideFooter && /* @__PURE__ */ jsxs(ModalFooter, { children: [
|
|
@@ -1866,59 +1793,35 @@ const FormWrapper = ({
|
|
|
1866
1793
|
] });
|
|
1867
1794
|
};
|
|
1868
1795
|
const createDocument = async (context, document, ownerId) => {
|
|
1869
|
-
const {
|
|
1796
|
+
const { baseUrl, rootLegalEntityId } = context;
|
|
1870
1797
|
return httpPost(
|
|
1871
1798
|
{
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
errorMessage: `Failed to create document`,
|
|
1875
|
-
path: `legalEntities/${legalEntityId}/documents/${ownerId}`,
|
|
1876
|
-
authentication: "jwt",
|
|
1877
|
-
headers: {
|
|
1878
|
-
"Content-Type": "application/json"
|
|
1879
|
-
}
|
|
1799
|
+
baseUrl,
|
|
1800
|
+
path: `legalEntities/${rootLegalEntityId}/documents/${ownerId}`
|
|
1880
1801
|
},
|
|
1881
1802
|
document
|
|
1882
1803
|
);
|
|
1883
1804
|
};
|
|
1884
1805
|
const deleteDocument$1 = async (context, documentId) => {
|
|
1885
|
-
const {
|
|
1806
|
+
const { baseUrl, rootLegalEntityId } = context;
|
|
1886
1807
|
return httpDelete({
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
errorMessage: `Failed to update document`,
|
|
1890
|
-
path: `legalEntities/${legalEntityId}/documents/${documentId}/`,
|
|
1891
|
-
authentication: "jwt",
|
|
1892
|
-
headers: {
|
|
1893
|
-
"Content-Type": "application/json"
|
|
1894
|
-
}
|
|
1808
|
+
baseUrl,
|
|
1809
|
+
path: `legalEntities/${rootLegalEntityId}/documents/${documentId}/`
|
|
1895
1810
|
});
|
|
1896
1811
|
};
|
|
1897
1812
|
const getDocument$1 = async (context, documentId) => {
|
|
1898
|
-
const {
|
|
1813
|
+
const { baseUrl, rootLegalEntityId } = context;
|
|
1899
1814
|
return httpGet({
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
errorMessage: `Failed to fetch document`,
|
|
1903
|
-
path: `legalEntities/${legalEntityId}/documents/${documentId}`,
|
|
1904
|
-
authentication: "jwt",
|
|
1905
|
-
headers: {
|
|
1906
|
-
"Content-Type": "application/json"
|
|
1907
|
-
}
|
|
1815
|
+
baseUrl,
|
|
1816
|
+
path: `legalEntities/${rootLegalEntityId}/documents/${documentId}`
|
|
1908
1817
|
});
|
|
1909
1818
|
};
|
|
1910
1819
|
const updateDocument = async (context, document, documentId, ownerId) => {
|
|
1911
|
-
const {
|
|
1820
|
+
const { baseUrl, rootLegalEntityId } = context;
|
|
1912
1821
|
return httpPost(
|
|
1913
1822
|
{
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
errorMessage: `Failed to update document`,
|
|
1917
|
-
path: `legalEntities/${legalEntityId}/documents/${documentId}/${ownerId}`,
|
|
1918
|
-
authentication: "jwt",
|
|
1919
|
-
headers: {
|
|
1920
|
-
"Content-Type": "application/json"
|
|
1921
|
-
}
|
|
1823
|
+
baseUrl,
|
|
1824
|
+
path: `legalEntities/${rootLegalEntityId}/documents/${documentId}/${ownerId}`
|
|
1922
1825
|
},
|
|
1923
1826
|
document
|
|
1924
1827
|
);
|
|
@@ -3060,15 +2963,14 @@ function IndividualDropin({
|
|
|
3060
2963
|
trustedFieldsProvider,
|
|
3061
2964
|
trustedRoles
|
|
3062
2965
|
}) {
|
|
3063
|
-
var _a, _b, _c, _d;
|
|
3064
|
-
const { baseUrl,
|
|
2966
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2967
|
+
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
3065
2968
|
const { accountHolder, setAccountHolder, idVerificationProviderId } = useCoreContext();
|
|
3066
2969
|
const { i18n } = useI18nContext();
|
|
3067
2970
|
const userEvents = useAnalyticsContext();
|
|
3068
2971
|
const { showToast, clearToasts } = useToastContext();
|
|
3069
2972
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
3070
2973
|
const { isSettingEnabled } = useSettingsContext();
|
|
3071
|
-
const queryClient = useQueryClient();
|
|
3072
2974
|
const isRoleFieldNeeded = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER;
|
|
3073
2975
|
const isLegalRepresentative = taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
|
|
3074
2976
|
const dataFromResponse = useMemo(() => {
|
|
@@ -3097,10 +2999,9 @@ function IndividualDropin({
|
|
|
3097
2999
|
isRoleFieldNeeded,
|
|
3098
3000
|
isLegalRepresentative
|
|
3099
3001
|
]);
|
|
3100
|
-
const { mutateAsync: handleGetIdVerificationToken } = useIdVerificationToken();
|
|
3101
3002
|
const documentUtils = documentApiUtils({
|
|
3102
|
-
|
|
3103
|
-
|
|
3003
|
+
baseUrl: baseUrl.value,
|
|
3004
|
+
rootLegalEntityId: rootLegalEntityId.value
|
|
3104
3005
|
});
|
|
3105
3006
|
let roleTypes = [];
|
|
3106
3007
|
const [newDecisionMaker] = useState();
|
|
@@ -3118,6 +3019,10 @@ function IndividualDropin({
|
|
|
3118
3019
|
legalEntity: legalEntityResponse,
|
|
3119
3020
|
accountHolder
|
|
3120
3021
|
});
|
|
3022
|
+
const { data: providerStatus } = useProviderStatus({
|
|
3023
|
+
providers: ["address", "idDocument"],
|
|
3024
|
+
country: legalEntityResponse ? getLegalEntityCountry(legalEntityResponse) : country
|
|
3025
|
+
});
|
|
3121
3026
|
const associatedLeTrackingParams = taskType === TaskTypes.INDIVIDUAL ? {} : getAssociatedLeAnalyticsPayload({
|
|
3122
3027
|
associatedLegalEntity: legalEntityResponse,
|
|
3123
3028
|
associatedLegalEntityOrg: taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER ? parentLegalEntity : void 0
|
|
@@ -3131,7 +3036,7 @@ function IndividualDropin({
|
|
|
3131
3036
|
}, []);
|
|
3132
3037
|
const individualFieldValidations = useCallback(
|
|
3133
3038
|
(data2) => {
|
|
3134
|
-
var _a2, _b2, _c2, _d2,
|
|
3039
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j, _k, _l, _m;
|
|
3135
3040
|
return {
|
|
3136
3041
|
personalDetails: personalDetailsValidators({
|
|
3137
3042
|
country: ((_a2 = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _a2.residencyCountry) ?? country,
|
|
@@ -3140,8 +3045,8 @@ function IndividualDropin({
|
|
|
3140
3045
|
taskType,
|
|
3141
3046
|
idNumberType: (_b2 = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _b2.typeOfIdentity,
|
|
3142
3047
|
phonePrefix: (_d2 = (_c2 = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _c2.phoneNumber) == null ? void 0 : _d2.phoneCountryCode,
|
|
3143
|
-
idNumberExempt: (
|
|
3144
|
-
idNumber: (
|
|
3048
|
+
idNumberExempt: (_e2 = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _e2.idNumberExempt,
|
|
3049
|
+
idNumber: (_f2 = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _f2.idNumber,
|
|
3145
3050
|
existingIdNumber: (_g = dataFromResponse.personalDetails) == null ? void 0 : _g.idNumber,
|
|
3146
3051
|
formVerificationErrors: (_h = propProblems == null ? void 0 : propProblems.verificationErrors) == null ? void 0 : _h.personalDetails,
|
|
3147
3052
|
taxIdNumberType: ((_j = (_i = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _i.taxInformation) == null ? void 0 : _j.length) ? (_l = (_k = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _k.taxInformation[0]) == null ? void 0 : _l.type : void 0
|
|
@@ -3276,16 +3181,19 @@ function IndividualDropin({
|
|
|
3276
3181
|
derivedProps == null ? void 0 : derivedProps.requiredFields,
|
|
3277
3182
|
derivedProps == null ? void 0 : derivedProps.optionalFields
|
|
3278
3183
|
).filter(
|
|
3279
|
-
//
|
|
3280
|
-
(form2) =>
|
|
3184
|
+
// Prevent showing the ID verification method step when onfido is not enabled
|
|
3185
|
+
(form2) => {
|
|
3186
|
+
var _a3, _b2;
|
|
3187
|
+
return form2.formId !== "idVerificationMethod" || ((_b2 = (_a3 = providerStatus == null ? void 0 : providerStatus.statuses) == null ? void 0 : _a3.idDocument) == null ? void 0 : _b2.enabled);
|
|
3188
|
+
}
|
|
3281
3189
|
);
|
|
3282
3190
|
return addValidityToForms(requiredForms, form.isValid, problems);
|
|
3283
3191
|
}, [
|
|
3284
3192
|
derivedProps,
|
|
3285
3193
|
form.isValid,
|
|
3286
3194
|
problems,
|
|
3287
|
-
|
|
3288
|
-
(
|
|
3195
|
+
(_d = (_c = providerStatus == null ? void 0 : providerStatus.statuses) == null ? void 0 : _c.idDocument) == null ? void 0 : _d.enabled,
|
|
3196
|
+
(_e = data.idVerificationMethod) == null ? void 0 : _e.idVerificationMethod
|
|
3289
3197
|
]);
|
|
3290
3198
|
if (isRoleFieldNeeded && parentLegalEntity) {
|
|
3291
3199
|
roleTypes = getAllowedDecisionMakerRoles(parentLegalEntity, taskType);
|
|
@@ -3336,15 +3244,11 @@ function IndividualDropin({
|
|
|
3336
3244
|
return updatedLegalEntity;
|
|
3337
3245
|
};
|
|
3338
3246
|
const { mutateAsync: getIdVerificationStartCheck } = useIdVerificationStartCheck();
|
|
3339
|
-
const
|
|
3340
|
-
providers: ["address", "idDocument"],
|
|
3341
|
-
country: legalEntityResponse ? getLegalEntityCountry(legalEntityResponse) : country
|
|
3342
|
-
});
|
|
3343
|
-
const handleInstantIdVerificationStartCheck = async (onfidoResponse, legalEntityId2) => {
|
|
3247
|
+
const handleInstantIdVerificationStartCheck = async (onfidoResponse, legalEntityId) => {
|
|
3344
3248
|
const data2 = {
|
|
3345
3249
|
// providerId is not required in HO as this is already present in the startCheck endpoint
|
|
3346
3250
|
providerId: idVerificationProviderId,
|
|
3347
|
-
legalEntityId
|
|
3251
|
+
legalEntityId,
|
|
3348
3252
|
captureMetadata: onfidoResponse
|
|
3349
3253
|
};
|
|
3350
3254
|
await getIdVerificationStartCheck(data2);
|
|
@@ -3409,7 +3313,7 @@ function IndividualDropin({
|
|
|
3409
3313
|
parentLE,
|
|
3410
3314
|
dataSubmitted
|
|
3411
3315
|
}) => {
|
|
3412
|
-
var _a2, _b2, _c2, _d2,
|
|
3316
|
+
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
3413
3317
|
const newRoles = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER ? (_a2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _a2.role : taskType === TaskTypes.TRUST_MEMBER_INDIVIDUAL || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL ? trustMember == null ? void 0 : trustMember.roles : null;
|
|
3414
3318
|
const existingEntityAssociations = getOwnEntityAssociations(parentLE);
|
|
3415
3319
|
if (newRoles && (hasRolesChanged(legalEntity, existingEntityAssociations, newRoles) || ((_b2 = dataFromResponse.personalDetails) == null ? void 0 : _b2.jobTitle) !== ((_c2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _c2.jobTitle) || hasNomineesChanged(dataFromResponse.personalDetails, dataSubmitted.nominee))) {
|
|
@@ -3435,11 +3339,11 @@ function IndividualDropin({
|
|
|
3435
3339
|
}
|
|
3436
3340
|
await updateLegalEntity2({ ...updatedParentLegalEntity, id: parentLE.id });
|
|
3437
3341
|
}
|
|
3438
|
-
if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS && (existingEntityAssociations.every((ea) => ea.legalEntityId !== legalEntity.id) || ((_d2 = dataFromResponse == null ? void 0 : dataFromResponse.personalDetails) == null ? void 0 : _d2.relationship) !== ((
|
|
3342
|
+
if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS && (existingEntityAssociations.every((ea) => ea.legalEntityId !== legalEntity.id) || ((_d2 = dataFromResponse == null ? void 0 : dataFromResponse.personalDetails) == null ? void 0 : _d2.relationship) !== ((_e2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _e2.relationship))) {
|
|
3439
3343
|
const newEntityAssociation = {
|
|
3440
3344
|
type: "legalRepresentative",
|
|
3441
3345
|
legalEntityId: legalEntity.id,
|
|
3442
|
-
relationship: (
|
|
3346
|
+
relationship: (_f2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _f2.relationship
|
|
3443
3347
|
};
|
|
3444
3348
|
const updatedParentLegalEntity = {
|
|
3445
3349
|
entityAssociations: [newEntityAssociation, ...existingEntityAssociations]
|
|
@@ -3484,9 +3388,6 @@ function IndividualDropin({
|
|
|
3484
3388
|
parentLE: parentLegalEntity,
|
|
3485
3389
|
dataSubmitted
|
|
3486
3390
|
});
|
|
3487
|
-
queryClient.invalidateQueries({
|
|
3488
|
-
queryKey: ["legalEntity", parentLegalEntity.id]
|
|
3489
|
-
});
|
|
3490
3391
|
}
|
|
3491
3392
|
setLoadingStatus("success");
|
|
3492
3393
|
clearToasts();
|
|
@@ -3580,7 +3481,7 @@ function IndividualDropin({
|
|
|
3580
3481
|
};
|
|
3581
3482
|
};
|
|
3582
3483
|
const formatDataForSummary = () => {
|
|
3583
|
-
var _a2, _b2, _c2, _d2,
|
|
3484
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h;
|
|
3584
3485
|
let summaryData = cloneObject(data);
|
|
3585
3486
|
if ((_a2 = summaryData.personalDetails) == null ? void 0 : _a2.residencyCountry) {
|
|
3586
3487
|
summaryData.personalDetails.residencyCountry = datasetUtils.getCountryName(
|
|
@@ -3610,9 +3511,9 @@ function IndividualDropin({
|
|
|
3610
3511
|
i18n.locale
|
|
3611
3512
|
);
|
|
3612
3513
|
}
|
|
3613
|
-
if ((
|
|
3514
|
+
if ((_e2 = summaryData.personalDetails) == null ? void 0 : _e2.phoneNumber) {
|
|
3614
3515
|
delete summaryData.personalDetails.phoneNumber;
|
|
3615
|
-
summaryData.personalDetails.phoneNumber = (_g = (
|
|
3516
|
+
summaryData.personalDetails.phoneNumber = (_g = (_f2 = data.personalDetails) == null ? void 0 : _f2.phoneNumber) == null ? void 0 : _g.number;
|
|
3616
3517
|
}
|
|
3617
3518
|
if ((_h = summaryData.personalDetails) == null ? void 0 : _h.taxInformation) {
|
|
3618
3519
|
const taxInformation = summaryData.personalDetails.taxInformation.find(
|
|
@@ -3630,7 +3531,7 @@ function IndividualDropin({
|
|
|
3630
3531
|
};
|
|
3631
3532
|
const summaryOmittedKeys = [
|
|
3632
3533
|
...taskType === TaskTypes.DECISION_MAKER ? ["role"] : [],
|
|
3633
|
-
...((
|
|
3534
|
+
...((_f = data == null ? void 0 : data.personalDetails) == null ? void 0 : _f.idNumberExempt) ? ["idNumber"] : []
|
|
3634
3535
|
];
|
|
3635
3536
|
const {
|
|
3636
3537
|
handleNextClick,
|
|
@@ -3668,7 +3569,6 @@ function IndividualDropin({
|
|
|
3668
3569
|
forms,
|
|
3669
3570
|
onSubmit,
|
|
3670
3571
|
navigationTrackingParams: associatedLeTrackingParams,
|
|
3671
|
-
handleGetIdVerificationToken,
|
|
3672
3572
|
gotoFormByFormIndex,
|
|
3673
3573
|
validateForm: () => form.triggerValidation(activeForm.formId),
|
|
3674
3574
|
canSubmit: canSubmit() && hasDataChanged(dataFromResponse, data),
|
|
@@ -3689,7 +3589,6 @@ function IndividualDropin({
|
|
|
3689
3589
|
onNext: handleNextClick,
|
|
3690
3590
|
onBack: handleBackClick,
|
|
3691
3591
|
setHideFooter,
|
|
3692
|
-
handleGetIdVerificationToken,
|
|
3693
3592
|
legalEntityId: legalEntityResponse == null ? void 0 : legalEntityResponse.id,
|
|
3694
3593
|
allowedRoles: roleTypes,
|
|
3695
3594
|
shouldValidate,
|
|
@@ -3731,7 +3630,7 @@ const CreateIndividualComponent = ({
|
|
|
3731
3630
|
}
|
|
3732
3631
|
onSubmitSuccess == null ? void 0 : onSubmitSuccess(d);
|
|
3733
3632
|
};
|
|
3734
|
-
return !legalEntity ? /* @__PURE__ */ jsx(Loader, {
|
|
3633
|
+
return !legalEntity ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx(
|
|
3735
3634
|
IndividualDropin,
|
|
3736
3635
|
{
|
|
3737
3636
|
legalEntityResponse: legalEntity,
|
|
@@ -3755,21 +3654,20 @@ export {
|
|
|
3755
3654
|
nameValidationRulesV4 as I,
|
|
3756
3655
|
nameValidationRules as J,
|
|
3757
3656
|
adjustIdentificationData as K,
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3657
|
+
useValidatePhoneNumberImperatively as L,
|
|
3658
|
+
useVerifyIdNumber as M,
|
|
3659
|
+
useMultiForm as N,
|
|
3660
|
+
useScenarios as O,
|
|
3661
|
+
mandateIdVerificationForMotionCapture as P,
|
|
3662
|
+
mapApiDocumentToIndividualDocuments as Q,
|
|
3663
|
+
useIdVerificationStartCheck as R,
|
|
3765
3664
|
SOLE_PROP_COUNTRIES as S,
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
useSingpassMyInfoLogin as Z,
|
|
3665
|
+
FormContextProvider as T,
|
|
3666
|
+
mapIndividualDocumentToApiDocument as U,
|
|
3667
|
+
mergeAttachments as V,
|
|
3668
|
+
onfidoDocumentTypeMapping as W,
|
|
3669
|
+
IndividualDropin as X,
|
|
3670
|
+
useSingpassMyInfoLogin as Y,
|
|
3773
3671
|
getPageName as a,
|
|
3774
3672
|
mapWith as b,
|
|
3775
3673
|
createDocumentRequest as c,
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e502320b-79dd-4931-b0e6-142d95ad04c1", e._sentryDebugIdIdentifier = "sentry-dbid-e502320b-79dd-4931-b0e6-142d95ad04c1");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
-
import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, f as useQueryClient, aS as resolveFieldMetadata,
|
|
11
|
+
import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, f as useQueryClient, aS as resolveFieldMetadata, dR as defaultFieldMetadata, dS as fieldConfig, co as getAsyncPhoneValidationRules, bY as FormHeader, c9 as ContactDetails, cH as ActionBar, c as createLogger } from "./EventEmitter-Cga9L9ga.js";
|
|
12
12
|
import { useCallback, useMemo, useEffect } from "preact/hooks";
|
|
13
|
-
import { B as useUpdateLegalEntity, H as contactDetailsValidationRules,
|
|
13
|
+
import { B as useUpdateLegalEntity, H as contactDetailsValidationRules, L as useValidatePhoneNumberImperatively, N as useMultiForm } from "./CreateIndividualComponent-CbjhVVFf.js";
|
|
14
14
|
const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
|
|
15
15
|
var _a, _b, _c;
|
|
16
16
|
return {
|
|
@@ -25,7 +25,7 @@ const logger = createLogger();
|
|
|
25
25
|
const CustomerSupport = (props) => {
|
|
26
26
|
const { data, isLoading } = useLegalEntity();
|
|
27
27
|
if (isLoading || !data) {
|
|
28
|
-
return /* @__PURE__ */ jsx(Loader, {});
|
|
28
|
+
return /* @__PURE__ */ jsx(Loader, { size: "large" });
|
|
29
29
|
}
|
|
30
30
|
return /* @__PURE__ */ jsx(CustomerSupportInner, { ...props, legalEntity: data });
|
|
31
31
|
};
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "328a6af7-6a00-4bfa-84df-e9e010654be8", e._sentryDebugIdIdentifier = "sentry-dbid-328a6af7-6a00-4bfa-84df-e9e010654be8");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo, useState } from "preact/hooks";
|
|
12
|
-
import { G as Button, $ as entriesOf, bd as InputText, i as useI18nContext,
|
|
13
|
-
import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-
|
|
12
|
+
import { G as Button, $ as entriesOf, bd as InputText, i as useI18nContext, e1 as splitTaskIdentifier, n as useExperimentsContext, o as useSettingsContext, cu as useGlobalStore, e2 as valuesOf, e3 as useTaskStatuses, M as Modal, c as createLogger, Q as Icon, S as SettingNames } from "./EventEmitter-Cga9L9ga.js";
|
|
13
|
+
import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-CXkPgVsw.js";
|
|
14
14
|
var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
|
|
15
15
|
ExperimentNames2["AllowMoreRolesForMainRootTrustee"] = "AllowMoreRolesForMainRootTrustee";
|
|
16
16
|
ExperimentNames2["ShowUnsupportedEntityType"] = "ShowUnsupportedEntityType";
|
|
@@ -175,10 +175,10 @@ const transformModule = (highlights, codeNode, scope) => {
|
|
|
175
175
|
};
|
|
176
176
|
const supportedModules = ["plaintext", "json", "yaml", "css"];
|
|
177
177
|
const moduleMap = {
|
|
178
|
-
plaintext: () => import("./plaintext-
|
|
179
|
-
json: () => import("./json-
|
|
180
|
-
yaml: () => import("./yaml-
|
|
181
|
-
css: () => import("./css-
|
|
178
|
+
plaintext: () => import("./plaintext-BZaNPCkz.js"),
|
|
179
|
+
json: () => import("./json-svAhX5Bd.js"),
|
|
180
|
+
yaml: () => import("./yaml-20recjBc.js"),
|
|
181
|
+
css: () => import("./css-CMXdhj7V.js")
|
|
182
182
|
};
|
|
183
183
|
const getModule = async (name) => {
|
|
184
184
|
if (!supportedModules.includes(name)) {
|
|
@@ -469,7 +469,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
469
469
|
const [tab, setTab] = useState("metadata");
|
|
470
470
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
471
471
|
const metadata = {
|
|
472
|
-
sdkVersion: "3.
|
|
472
|
+
sdkVersion: "3.69.0",
|
|
473
473
|
locale: i18n.locale,
|
|
474
474
|
rootLegalEntityId: rootLegalEntity.id
|
|
475
475
|
};
|