@adyen/kyc-components 3.64.8 → 3.64.10
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/{AccountSetupRejected-CP9jkbCa.js → AccountSetupRejected-B7Q_0jUS.js} +1 -1
- package/dist/{CXEL7IU7-Cy-ydTWh.js → CXEL7IU7-C6YRNrd-.js} +2 -2
- package/dist/{CustomerSupport-CbpXcaLL.js → CustomerSupport-gFEHjf45.js} +19 -9
- package/dist/{DebugModal-B23U9e_H.js → DebugModal-C6BjKBBo.js} +7 -7
- package/dist/{DecisionMakers-HwvsPt2t.js → DecisionMakers-Dfr_CTQY.js} +4 -5
- package/dist/{HASRA6WW-Df5UPpuR.js → HASRA6WW-DlnUitEG.js} +1 -1
- package/dist/{I3HPI4QX-DSxyrvV1.js → I3HPI4QX-CzVKRJbs.js} +2 -2
- package/dist/{Introduction--cfHmxYn.js → Introduction-CHV6zbvS.js} +1 -1
- package/dist/{Review-PD2SlGvU.js → Review-Cm_OUclY.js} +1 -1
- package/dist/{SingpassSelection-DgEe6r8W.js → SingpassSelection-Cy2FHFZ_.js} +1 -1
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +1 -1
- package/dist/{core-FHBxkwxA.js → core-DbiaqMSk.js} +17 -19
- package/dist/{css-B-GQV8RP.js → css-CcW8pRcL.js} +1 -1
- package/dist/{json-C4EryEB4.js → json-BoWSNpEz.js} +1 -1
- package/dist/{plaintext-C4DxiaSK.js → plaintext-SWyhUsG4.js} +1 -1
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +3 -3
- package/dist/types/components/Shared/tasks/CustomerSupport/CustomerSupport.d.ts +1 -1
- package/dist/types/core/models/api/legal-entity.d.ts +7 -0
- package/dist/{yaml-BCEniKV8.js → yaml-BIB0AZE9.js} +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { b as useI18nContext, A as AlertIcon, h as FormHeader, D as DropinLayout } from "./core-
|
|
11
|
+
import { b as useI18nContext, A as AlertIcon, h as FormHeader, D as DropinLayout } from "./core-DbiaqMSk.js";
|
|
12
12
|
function AccountSetupRejected() {
|
|
13
13
|
const { i18n } = useI18nContext();
|
|
14
14
|
const content = /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-
|
|
11
|
-
import { ac as getPreferredColorScheme, ad as createMemo, ae as createComponent } from "./core-
|
|
10
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-DlnUitEG.js";
|
|
11
|
+
import { ac as getPreferredColorScheme, ad as createMemo, ae as createComponent } from "./core-DbiaqMSk.js";
|
|
12
12
|
var DevtoolsPanelComponent = (props) => {
|
|
13
13
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
14
14
|
prefix: "TanstackQueryDevtools"
|
|
@@ -2,13 +2,13 @@
|
|
|
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] = "f6d53404-350b-4984-8d8a-615bca5079cf", e._sentryDebugIdIdentifier = "sentry-dbid-f6d53404-350b-4984-8d8a-615bca5079cf");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import {
|
|
11
|
-
import { b as useI18nContext, c as useAnalyticsContext, l as useToastContext, H as useConfigurationApi,
|
|
10
|
+
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
+
import { i as useLegalEntity, j as Loader, b as useI18nContext, c as useAnalyticsContext, l as useToastContext, H as useConfigurationApi, n as useUpdateLegalEntity, m as useQueryClient, I as resolveFieldMetadata, J as contactDetailsValidationRules, K as defaultFieldMetadata, M as fieldConfig, N as getAsyncPhoneValidationRules, O as useMultiForm, h as FormHeader, P as ContactDetails, G as ActionBar, Q as createLogger } from "./core-DbiaqMSk.js";
|
|
12
12
|
import { useCallback, useMemo, useEffect } from "preact/hooks";
|
|
13
13
|
const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
|
|
14
14
|
var _a, _b, _c;
|
|
@@ -21,13 +21,23 @@ const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
const logger = createLogger();
|
|
24
|
-
|
|
24
|
+
const CustomerSupport = (props) => {
|
|
25
|
+
const { data, isLoading } = useLegalEntity();
|
|
26
|
+
if (isLoading || !data) {
|
|
27
|
+
return /* @__PURE__ */ jsx(Loader, {});
|
|
28
|
+
}
|
|
29
|
+
return /* @__PURE__ */ jsx(CustomerSupportInner, { ...props, legalEntity: data });
|
|
30
|
+
};
|
|
31
|
+
function CustomerSupportInner({
|
|
32
|
+
country,
|
|
33
|
+
onSubmit,
|
|
34
|
+
legalEntity
|
|
35
|
+
}) {
|
|
25
36
|
var _a, _b, _c, _d;
|
|
26
37
|
const { i18n } = useI18nContext();
|
|
27
38
|
const userEvents = useAnalyticsContext();
|
|
28
39
|
const { showToast } = useToastContext();
|
|
29
40
|
const { validatePhoneNumber } = useConfigurationApi();
|
|
30
|
-
const { data: legalEntity } = useLegalEntity();
|
|
31
41
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
32
42
|
const queryClient = useQueryClient();
|
|
33
43
|
const requiredFields = {
|
|
@@ -57,11 +67,11 @@ function CustomerSupport({ country, onSubmit }) {
|
|
|
57
67
|
}),
|
|
58
68
|
[validatePhoneNumber]
|
|
59
69
|
);
|
|
60
|
-
const legalEntityType = legalEntity
|
|
70
|
+
const legalEntityType = legalEntity.type;
|
|
61
71
|
const defaultCustomerSupportData = {
|
|
62
72
|
customerSupport: {
|
|
63
|
-
phoneNumber: (_b = (_a = legalEntity
|
|
64
|
-
email: (_d = (_c = legalEntity
|
|
73
|
+
phoneNumber: (_b = (_a = legalEntity[legalEntityType]) == null ? void 0 : _a.support) == null ? void 0 : _b.phone,
|
|
74
|
+
email: (_d = (_c = legalEntity[legalEntityType]) == null ? void 0 : _c.support) == null ? void 0 : _d.email
|
|
65
75
|
}
|
|
66
76
|
};
|
|
67
77
|
const { data, handleChangeFor, valid, errors, isValid, triggerValidation } = useMultiForm({
|
|
@@ -87,7 +97,7 @@ function CustomerSupport({ country, onSubmit }) {
|
|
|
87
97
|
try {
|
|
88
98
|
const patchLegalEntity = {
|
|
89
99
|
...payload,
|
|
90
|
-
id: legalEntity
|
|
100
|
+
id: legalEntity.id
|
|
91
101
|
};
|
|
92
102
|
await updateLegalEntity(patchLegalEntity);
|
|
93
103
|
queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntity == null ? void 0 : legalEntity.id] });
|
|
@@ -2,14 +2,14 @@
|
|
|
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] = "9c32d77c-abfb-41f5-8bf6-5d628c03c83e", e._sentryDebugIdIdentifier = "sentry-dbid-9c32d77c-abfb-41f5-8bf6-5d628c03c83e");
|
|
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 { B as Button, Z as Tag, _ as entriesOf, $ as InputText, b as useI18nContext, a0 as splitTaskIdentifier, a1 as TaskItemStatus, a2 as useExperimentsContext, a3 as useSettingsContext, a4 as useGlobalStore, a5 as listToRecord, a6 as valuesOf, a7 as useTaskStatuses, a8 as Modal, Q as createLogger, a9 as Icon, aa as SettingNames, ab as ExperimentNames } from "./core-
|
|
12
|
+
import { B as Button, Z as Tag, _ as entriesOf, $ as InputText, b as useI18nContext, a0 as splitTaskIdentifier, a1 as TaskItemStatus, a2 as useExperimentsContext, a3 as useSettingsContext, a4 as useGlobalStore, a5 as listToRecord, a6 as valuesOf, a7 as useTaskStatuses, a8 as Modal, Q as createLogger, a9 as Icon, aa as SettingNames, ab as ExperimentNames } from "./core-DbiaqMSk.js";
|
|
13
13
|
const tabs = "adyen-kyc-tabs";
|
|
14
14
|
const styles$1 = {
|
|
15
15
|
tabs
|
|
@@ -144,10 +144,10 @@ const transformModule = (highlights, codeNode, scope) => {
|
|
|
144
144
|
};
|
|
145
145
|
const supportedModules = ["plaintext", "json", "yaml", "css"];
|
|
146
146
|
const moduleMap = {
|
|
147
|
-
plaintext: () => import("./plaintext-
|
|
148
|
-
json: () => import("./json-
|
|
149
|
-
yaml: () => import("./yaml-
|
|
150
|
-
css: () => import("./css-
|
|
147
|
+
plaintext: () => import("./plaintext-SWyhUsG4.js"),
|
|
148
|
+
json: () => import("./json-BoWSNpEz.js"),
|
|
149
|
+
yaml: () => import("./yaml-BIB0AZE9.js"),
|
|
150
|
+
css: () => import("./css-CcW8pRcL.js")
|
|
151
151
|
};
|
|
152
152
|
const getModule = async (name) => {
|
|
153
153
|
if (!supportedModules.includes(name)) {
|
|
@@ -438,7 +438,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
438
438
|
const [tab, setTab] = useState("metadata");
|
|
439
439
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
440
440
|
const metadata = {
|
|
441
|
-
sdkVersion: "3.64.
|
|
441
|
+
sdkVersion: "3.64.10",
|
|
442
442
|
locale: i18n.locale,
|
|
443
443
|
rootLegalEntityId: rootLegalEntity.id
|
|
444
444
|
};
|
|
@@ -2,13 +2,13 @@
|
|
|
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] = "0ca33f92-864e-4ea0-bfe5-47baddecde56", e._sentryDebugIdIdentifier = "sentry-dbid-0ca33f92-864e-4ea0-bfe5-47baddecde56");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
-
import { i as useLegalEntity, j as Loader, k as useGetTaskStatus, b as useI18nContext, c as useAnalyticsContext, l as useToastContext, m as useQueryClient, n as useUpdateLegalEntity, o as getOwnDecisionMakers, p as getAvailableDecisionMakerRoleTypes, q as useDataMissingRemediations, T as TaskTypes, r as getAllowedDecisionMakerRoles, D as DropinLayout, h as FormHeader, E as EntityGuidanceStatus, s as iconStatus, v as ContextGuidance, w as DecisionMakerType, x as Alert, y as CardGroup, z as EntityAssociation, B as Button, G as ActionBar } from "./core-
|
|
11
|
+
import { i as useLegalEntity, j as Loader, k as useGetTaskStatus, b as useI18nContext, c as useAnalyticsContext, l as useToastContext, m as useQueryClient, n as useUpdateLegalEntity, o as getOwnDecisionMakers, p as getAvailableDecisionMakerRoleTypes, q as useDataMissingRemediations, T as TaskTypes, r as getAllowedDecisionMakerRoles, D as DropinLayout, h as FormHeader, E as EntityGuidanceStatus, s as iconStatus, v as ContextGuidance, w as DecisionMakerType, x as Alert, y as CardGroup, z as EntityAssociation, B as Button, G as ActionBar } from "./core-DbiaqMSk.js";
|
|
12
12
|
import { useState, useEffect } from "preact/hooks";
|
|
13
13
|
const DecisionMakers = (props) => {
|
|
14
14
|
const { data, isLoading } = useLegalEntity();
|
|
@@ -34,8 +34,7 @@ const DecisionMakersInner = ({
|
|
|
34
34
|
onSuccess: () => {
|
|
35
35
|
queryClient.invalidateQueries({
|
|
36
36
|
queryKey: ["legalEntity", legalEntity.id],
|
|
37
|
-
|
|
38
|
-
refetchType: "active"
|
|
37
|
+
refetchType: "all"
|
|
39
38
|
});
|
|
40
39
|
}
|
|
41
40
|
});
|
|
@@ -113,7 +112,7 @@ const DecisionMakersInner = ({
|
|
|
113
112
|
(entityAssociation) => entityAssociation.legalEntityId !== decisionMaker.reference
|
|
114
113
|
)
|
|
115
114
|
};
|
|
116
|
-
updateLegalEntity.
|
|
115
|
+
await updateLegalEntity.mutateAsync({ ...updatedEntityAssociations, id: legalEntity.id });
|
|
117
116
|
const remainingDecisionMakers = decisionMakers.filter(
|
|
118
117
|
(curr) => curr.legalEntityId !== decisionMaker.reference
|
|
119
118
|
);
|
|
@@ -10,7 +10,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
;
|
|
13
|
-
import { af as createContext, ag as createSignal, ah as onMount, ai as createEffect, ad as createMemo, ae as createComponent, aj as Portal, ak as Show, al as template, am as insert, an as createRenderEffect, ao as className, ap as clearDelegatedEvents, aq as delegateEvents, ar as useContext, as as onCleanup, at as sortFns, au as mutationSortFns, av as on, aw as setAttribute, ax as getSidedProp, ay as use, az as createUniqueId, aA as batch, aB as getQueryStatusLabel, aC as getMutationStatusColor, aD as getQueryStatusColor, aE as getQueryStatusColorByLabel, aF as displayValue, aG as For, aH as convertRemToPixels, aI as untrack, aJ as $TRACK, aK as useTransition, aL as spread, aM as mergeProps, aN as createRoot, aO as serialize, aP as Index, aQ as updateNestedDataByPath, aR as addEventListener, aS as stringify, aT as Match, aU as Switch, aV as deleteNestedDataByPath, aW as splitProps, aX as Dynamic, aY as createComputed } from "./core-
|
|
13
|
+
import { af as createContext, ag as createSignal, ah as onMount, ai as createEffect, ad as createMemo, ae as createComponent, aj as Portal, ak as Show, al as template, am as insert, an as createRenderEffect, ao as className, ap as clearDelegatedEvents, aq as delegateEvents, ar as useContext, as as onCleanup, at as sortFns, au as mutationSortFns, av as on, aw as setAttribute, ax as getSidedProp, ay as use, az as createUniqueId, aA as batch, aB as getQueryStatusLabel, aC as getMutationStatusColor, aD as getQueryStatusColor, aE as getQueryStatusColorByLabel, aF as displayValue, aG as For, aH as convertRemToPixels, aI as untrack, aJ as $TRACK, aK as useTransition, aL as spread, aM as mergeProps, aN as createRoot, aO as serialize, aP as Index, aQ as updateNestedDataByPath, aR as addEventListener, aS as stringify, aT as Match, aU as Switch, aV as deleteNestedDataByPath, aW as splitProps, aX as Dynamic, aY as createComputed } from "./core-DbiaqMSk.js";
|
|
14
14
|
var isNonNullable = (i2) => i2 != null;
|
|
15
15
|
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
16
16
|
function chain(callbacks) {
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-
|
|
11
|
-
import { ac as getPreferredColorScheme, ad as createMemo, ae as createComponent } from "./core-
|
|
10
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-DlnUitEG.js";
|
|
11
|
+
import { ac as getPreferredColorScheme, ad as createMemo, ae as createComponent } from "./core-DbiaqMSk.js";
|
|
12
12
|
var DevtoolsComponent = (props) => {
|
|
13
13
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
14
14
|
prefix: "TanstackQueryDevtools"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
|
|
12
|
-
import { T as TaskTypes, L as LegalEntityType, u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized, g as getTranslationKeysByPrefix, b as useI18nContext, c as useAnalyticsContext, S as StepProgressIndicator, B as Button } from "./core-
|
|
12
|
+
import { T as TaskTypes, L as LegalEntityType, u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized, g as getTranslationKeysByPrefix, b as useI18nContext, c as useAnalyticsContext, S as StepProgressIndicator, B as Button } from "./core-DbiaqMSk.js";
|
|
13
13
|
import { useMemo } from "preact/compat";
|
|
14
14
|
var IntroductionScreens = ((IntroductionScreens2) => {
|
|
15
15
|
IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState } from "preact/hooks";
|
|
12
|
-
import { U as useApiContext, V as useMutation, W as httpPost, b as useI18nContext, l as useToastContext, X as LoaderWrapper, h as FormHeader, Y as Checkbox, G as ActionBar, D as DropinLayout } from "./core-
|
|
12
|
+
import { U as useApiContext, V as useMutation, W as httpPost, b as useI18nContext, l as useToastContext, X as LoaderWrapper, h as FormHeader, Y as Checkbox, G as ActionBar, D as DropinLayout } from "./core-DbiaqMSk.js";
|
|
13
13
|
const confirmReview = async (legalEntityId, url) => {
|
|
14
14
|
return httpPost({
|
|
15
15
|
loadingContext: url,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState } from "preact/hooks";
|
|
12
|
-
import { b as useI18nContext, d as useForm, e as Typography, F as Field, R as RadioGroupCard, B as Button, f as Svg, L as LegalEntityType } from "./core-
|
|
12
|
+
import { b as useI18nContext, d as useForm, e as Typography, F as Field, R as RadioGroupCard, B as Button, f as Svg, L as LegalEntityType } from "./core-DbiaqMSk.js";
|
|
13
13
|
const setupAccountMethods = ["singpass", "manual"];
|
|
14
14
|
const setupAccountMethodFields = ["setupAccountMethod"];
|
|
15
15
|
const getSingpassSelectionDisabled = (legalEntityType) => {
|
package/dist/adyenConfig.js
CHANGED
|
@@ -19,7 +19,7 @@ var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout,
|
|
|
19
19
|
{
|
|
20
20
|
try {
|
|
21
21
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
22
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
22
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3ad3e1c9-e910-4676-b4b2-cdbcca802949", e._sentryDebugIdIdentifier = "sentry-dbid-3ad3e1c9-e910-4676-b4b2-cdbcca802949");
|
|
23
23
|
} catch (e) {
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -11942,8 +11942,7 @@ function BankVerification(props) {
|
|
|
11942
11942
|
triggerValidation();
|
|
11943
11943
|
queryClient.invalidateQueries({
|
|
11944
11944
|
queryKey: ["legalEntity", rootLegalEntity.id],
|
|
11945
|
-
|
|
11946
|
-
refetchType: "active"
|
|
11945
|
+
refetchType: "all"
|
|
11947
11946
|
});
|
|
11948
11947
|
};
|
|
11949
11948
|
const handleOnBack = () => {
|
|
@@ -14692,8 +14691,7 @@ const PreferInstantVerificationMethod = ({
|
|
|
14692
14691
|
setMoveToNextStep(true);
|
|
14693
14692
|
queryClient.invalidateQueries({
|
|
14694
14693
|
queryKey: ["legalEntity", rootLegalEntity.id],
|
|
14695
|
-
|
|
14696
|
-
refetchType: "active"
|
|
14694
|
+
refetchType: "all"
|
|
14697
14695
|
});
|
|
14698
14696
|
};
|
|
14699
14697
|
useEffect(() => {
|
|
@@ -33513,13 +33511,13 @@ const useUpdateSourceOfFunds = (options) => {
|
|
|
33513
33511
|
...options
|
|
33514
33512
|
});
|
|
33515
33513
|
};
|
|
33516
|
-
const updateLegalEntity$1 = async (
|
|
33514
|
+
const updateLegalEntity$1 = async (rootLegalEntityId, url, data) => {
|
|
33517
33515
|
return httpPost(
|
|
33518
33516
|
{
|
|
33519
33517
|
loadingContext: url,
|
|
33520
33518
|
errorLevel: "warn",
|
|
33521
33519
|
errorMessage: `Failed to sign pci`,
|
|
33522
|
-
path: `legalEntities/${
|
|
33520
|
+
path: `legalEntities/${rootLegalEntityId}`,
|
|
33523
33521
|
authentication: "jwt",
|
|
33524
33522
|
headers: { "Content-Type": "application/json" }
|
|
33525
33523
|
},
|
|
@@ -50759,21 +50757,21 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
50759
50757
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
50760
50758
|
};
|
|
50761
50759
|
const Introduction = lazy$1(
|
|
50762
|
-
async () => (await import("./Introduction
|
|
50760
|
+
async () => (await import("./Introduction-CHV6zbvS.js")).Introduction
|
|
50763
50761
|
);
|
|
50764
50762
|
const SingpassSelection = lazy$1(
|
|
50765
|
-
async () => (await import("./SingpassSelection-
|
|
50763
|
+
async () => (await import("./SingpassSelection-Cy2FHFZ_.js")).SingpassSelection
|
|
50766
50764
|
);
|
|
50767
50765
|
const AccountSetupRejected = lazy$1(
|
|
50768
|
-
async () => (await import("./AccountSetupRejected-
|
|
50766
|
+
async () => (await import("./AccountSetupRejected-B7Q_0jUS.js")).AccountSetupRejected
|
|
50769
50767
|
);
|
|
50770
50768
|
const DecisionMakers = lazy$1(
|
|
50771
|
-
async () => (await import("./DecisionMakers-
|
|
50769
|
+
async () => (await import("./DecisionMakers-Dfr_CTQY.js")).DecisionMakers
|
|
50772
50770
|
);
|
|
50773
50771
|
const CustomerSupport = lazy$1(
|
|
50774
|
-
async () => (await import("./CustomerSupport-
|
|
50772
|
+
async () => (await import("./CustomerSupport-gFEHjf45.js")).CustomerSupport
|
|
50775
50773
|
);
|
|
50776
|
-
const Review = lazy$1(async () => (await import("./Review-
|
|
50774
|
+
const Review = lazy$1(async () => (await import("./Review-Cm_OUclY.js")).Review);
|
|
50777
50775
|
const SignPCIComponent$2 = lazy$1(
|
|
50778
50776
|
async () => (await Promise.resolve().then(() => SignPCIComponent$1)).SignPCIComponent
|
|
50779
50777
|
);
|
|
@@ -55448,7 +55446,7 @@ var TanstackQueryDevtools = (_k = class {
|
|
|
55448
55446
|
if (__privateGet(this, _Component)) {
|
|
55449
55447
|
Devtools = __privateGet(this, _Component);
|
|
55450
55448
|
} else {
|
|
55451
|
-
Devtools = lazy(() => import("./I3HPI4QX-
|
|
55449
|
+
Devtools = lazy(() => import("./I3HPI4QX-CzVKRJbs.js"));
|
|
55452
55450
|
__privateSet(this, _Component, Devtools);
|
|
55453
55451
|
}
|
|
55454
55452
|
setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
|
|
@@ -55570,7 +55568,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
|
|
|
55570
55568
|
if (__privateGet(this, _Component2)) {
|
|
55571
55569
|
Devtools = __privateGet(this, _Component2);
|
|
55572
55570
|
} else {
|
|
55573
|
-
Devtools = lazy(() => import("./CXEL7IU7-
|
|
55571
|
+
Devtools = lazy(() => import("./CXEL7IU7-C6YRNrd-.js"));
|
|
55574
55572
|
__privateSet(this, _Component2, Devtools);
|
|
55575
55573
|
}
|
|
55576
55574
|
setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
|
|
@@ -55789,7 +55787,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
|
|
|
55789
55787
|
};
|
|
55790
55788
|
};
|
|
55791
55789
|
const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
|
|
55792
|
-
const sdkVersion = "3.64.
|
|
55790
|
+
const sdkVersion = "3.64.10";
|
|
55793
55791
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
55794
55792
|
const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
|
|
55795
55793
|
const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
|
|
@@ -55864,7 +55862,7 @@ const AnalyticsProvider = ({
|
|
|
55864
55862
|
const { onboardingVersion } = useVersion();
|
|
55865
55863
|
const userEvents2 = useMemo(() => createUserEvents(), []);
|
|
55866
55864
|
const sessionData = {
|
|
55867
|
-
sdkVersion: "3.64.
|
|
55865
|
+
sdkVersion: "3.64.10",
|
|
55868
55866
|
componentName,
|
|
55869
55867
|
userAgent: navigator.userAgent,
|
|
55870
55868
|
legalEntityId,
|
|
@@ -55998,7 +55996,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
|
|
|
55998
55996
|
[baseUrl, rootLegalEntityId]
|
|
55999
55997
|
);
|
|
56000
55998
|
return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
|
|
56001
|
-
/* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.64.
|
|
55999
|
+
/* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.64.10" }),
|
|
56002
56000
|
children2
|
|
56003
56001
|
] });
|
|
56004
56002
|
};
|
|
@@ -56473,7 +56471,7 @@ function StateProvider({
|
|
|
56473
56471
|
);
|
|
56474
56472
|
return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
|
|
56475
56473
|
}
|
|
56476
|
-
const DebugModal = lazy$1(async () => (await import("./DebugModal-
|
|
56474
|
+
const DebugModal = lazy$1(async () => (await import("./DebugModal-C6BjKBBo.js").then((n) => n.D)).DebugModal);
|
|
56477
56475
|
const DebugListener = () => {
|
|
56478
56476
|
const [debugUiOpen, setDebugUiOpen] = useState(false);
|
|
56479
56477
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as cssProps } from "./DebugModal-
|
|
10
|
+
import { c as cssProps } from "./DebugModal-C6BjKBBo.js";
|
|
11
11
|
const definitions = {
|
|
12
12
|
any: { regex: /.*/g, css: cssProps.text },
|
|
13
13
|
property: { regex: /(^|[\r\n])[^:]*:/g, css: cssProps.key },
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as cssProps } from "./DebugModal-
|
|
10
|
+
import { c as cssProps } from "./DebugModal-C6BjKBBo.js";
|
|
11
11
|
const definitions = {
|
|
12
12
|
any: { regex: /.*/g, css: cssProps.text },
|
|
13
13
|
number: { regex: /-?\d+(\.\d+)?([eE][+-]?\d+)?/g, css: cssProps.number },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type MutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { NewPatchLegalEntity } from '../../core/models/api/legal-entity';
|
|
3
3
|
import type { components } from './legalEntity.contract';
|
|
4
4
|
type SuccessResponse = components['schemas']['LegalEntityDto'];
|
|
5
|
-
export declare const useUpdateLegalEntity: (options?: Omit<MutationOptions<SuccessResponse, Error,
|
|
5
|
+
export declare const useUpdateLegalEntity: (options?: Omit<MutationOptions<SuccessResponse, Error, NewPatchLegalEntity>, "mutationFn">) => import("@tanstack/react-query").UseMutationResult<{
|
|
6
6
|
readonly capabilities?: {
|
|
7
7
|
[key: string]: components["schemas"]["LegalEntityCapabilityDto"];
|
|
8
8
|
};
|
|
@@ -18,5 +18,5 @@ export declare const useUpdateLegalEntity: (options?: Omit<MutationOptions<Succe
|
|
|
18
18
|
readonly trustedFields?: components["schemas"]["TrustedFieldsDto"][];
|
|
19
19
|
type?: components["schemas"]["LegalEntityType"];
|
|
20
20
|
unincorporatedPartnership?: components["schemas"]["UnincorporatedPartnershipDto"];
|
|
21
|
-
}, Error,
|
|
21
|
+
}, Error, NewPatchLegalEntity, unknown>;
|
|
22
22
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { CustomerSupportProps } from './types';
|
|
2
|
-
export declare
|
|
2
|
+
export declare const CustomerSupport: (props: CustomerSupportProps) => import("preact/jsx-runtime").JSX.Element;
|
|
@@ -30,9 +30,16 @@ export interface LegalEntityTrustedFields {
|
|
|
30
30
|
provider: TrustedFieldsProvider;
|
|
31
31
|
fields: string[];
|
|
32
32
|
}
|
|
33
|
+
/** @deprecated - use type below */
|
|
33
34
|
export type PatchLegalEntity = Omit<PartialDeep<LegalEntity, {
|
|
34
35
|
recurseIntoArrays: true;
|
|
35
36
|
}>, 'id'>;
|
|
37
|
+
/** This mandates the id property */
|
|
38
|
+
export type NewPatchLegalEntity = PartialDeep<LegalEntity, {
|
|
39
|
+
recurseIntoArrays: true;
|
|
40
|
+
}> & {
|
|
41
|
+
id: string;
|
|
42
|
+
};
|
|
36
43
|
export type ExistingLegalEntity = SetRequired<LegalEntity, 'id' | 'type'>;
|
|
37
44
|
/** Narrowed down type of LegalEntity, so that required fields are not optional */
|
|
38
45
|
export type ExistingOrganizationLegalEntity = SetRequired<ExistingLegalEntity, 'organization'>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as cssProps } from "./DebugModal-
|
|
10
|
+
import { c as cssProps } from "./DebugModal-C6BjKBBo.js";
|
|
11
11
|
const definitions = {
|
|
12
12
|
any: { regex: /.*/g, css: cssProps.text },
|
|
13
13
|
boolean: { regex: /^(\s*)([\w-]+)(:)\s*(.*)$/g, css: cssProps.boolean },
|