@adyen/kyc-components 3.65.0 → 3.65.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccountSetupRejected-8Bcks_Pu.js → AccountSetupRejected-u9_iImBO.js} +1 -1
- package/dist/{CXEL7IU7-EInZOSNY.js → CXEL7IU7-DHcCuJ2m.js} +2 -2
- package/dist/{CustomerSupport-BCIrCnC-.js → CustomerSupport-CY87Y7T7.js} +19 -9
- package/dist/{DebugModal-BTbmQWwe.js → DebugModal-Cey2830Z.js} +7 -7
- package/dist/{DecisionMakers-BJ5xphlP.js → DecisionMakers-BjxM2oNu.js} +4 -4
- package/dist/{HASRA6WW-C4T4T8Nn.js → HASRA6WW-DN6P5SXo.js} +1 -1
- package/dist/{I3HPI4QX-s_JOUk5d.js → I3HPI4QX-DeOR87Z4.js} +2 -2
- package/dist/{Introduction-DfZOVSDf.js → Introduction-3TeEgMLX.js} +1 -1
- package/dist/{Review-VgvMT5nK.js → Review-CITd00kn.js} +1 -1
- package/dist/{SingpassSelection-hpY3DbKh.js → SingpassSelection-C4wkclNF.js} +1 -1
- package/dist/{TaxReportingDropin-Dqfa6FM8.js → TaxReportingDropin-C_ymKVa9.js} +1 -1
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +1 -1
- package/dist/{core-D8ryGpa4.js → core-GqGrg6fP.js} +16 -16
- package/dist/{css-CycUexVO.js → css-CtEWaiJk.js} +1 -1
- package/dist/{json-BNxOWY2H.js → json-D5uHg8M-.js} +1 -1
- package/dist/{plaintext-DOua1PdK.js → plaintext-DhOJkp1R.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-DG6kdH_n.js → yaml-gfFwBUVD.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 { u as useI18nContext, A as AlertIcon, w as FormHeader, D as DropinLayout } from "./core-
|
|
11
|
+
import { u as useI18nContext, A as AlertIcon, w as FormHeader, D as DropinLayout } from "./core-GqGrg6fP.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 { as as getPreferredColorScheme, at as createMemo, au 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-DN6P5SXo.js";
|
|
11
|
+
import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-GqGrg6fP.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] = "507da29d-482e-46b6-a2cb-b6923a2b2a73", e._sentryDebugIdIdentifier = "sentry-dbid-507da29d-482e-46b6-a2cb-b6923a2b2a73");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import {
|
|
11
|
-
import { u as useI18nContext, n as useAnalyticsContext, G as useToastContext, $ as useConfigurationApi,
|
|
10
|
+
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
+
import { x as useLegalEntity, y as Loader, u as useI18nContext, n as useAnalyticsContext, G as useToastContext, $ as useConfigurationApi, J as useUpdateLegalEntity, H as useQueryClient, a0 as resolveFieldMetadata, a1 as contactDetailsValidationRules, a2 as defaultFieldMetadata, a3 as fieldConfig, a4 as getAsyncPhoneValidationRules, a5 as useMultiForm, w as FormHeader, a6 as ContactDetails, _ as ActionBar, g as createLogger } from "./core-GqGrg6fP.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] = "bcdc10aa-aef5-455c-92ce-50f5e69ddb4c", e._sentryDebugIdIdentifier = "sentry-dbid-bcdc10aa-aef5-455c-92ce-50f5e69ddb4c");
|
|
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, T as Tag, e as entriesOf, I as InputText, u as useI18nContext, s as splitTaskIdentifier, a as TaskItemStatus, b as useExperimentsContext, c as useSettingsContext, d as useGlobalStore, l as listToRecord, v as valuesOf, f as useTaskStatuses, M as Modal, g as createLogger, h as Icon, S as SettingNames, E as ExperimentNames } from "./core-
|
|
12
|
+
import { B as Button, T as Tag, e as entriesOf, I as InputText, u as useI18nContext, s as splitTaskIdentifier, a as TaskItemStatus, b as useExperimentsContext, c as useSettingsContext, d as useGlobalStore, l as listToRecord, v as valuesOf, f as useTaskStatuses, M as Modal, g as createLogger, h as Icon, S as SettingNames, E as ExperimentNames } from "./core-GqGrg6fP.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-DhOJkp1R.js"),
|
|
148
|
+
json: () => import("./json-D5uHg8M-.js"),
|
|
149
|
+
yaml: () => import("./yaml-gfFwBUVD.js"),
|
|
150
|
+
css: () => import("./css-CtEWaiJk.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.65.
|
|
441
|
+
sdkVersion: "3.65.1",
|
|
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] = "ad0b29c8-653f-4565-a99f-48165f944092", e._sentryDebugIdIdentifier = "sentry-dbid-ad0b29c8-653f-4565-a99f-48165f944092");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
-
import { x as useLegalEntity, y as Loader, z as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, G as useToastContext, H as useQueryClient, J as useUpdateLegalEntity, K as getOwnDecisionMakers, N as getAvailableDecisionMakerRoleTypes, O as useDataMissingRemediations, i as TaskTypes, P as getAllowedDecisionMakerRoles, D as DropinLayout, w as FormHeader, Q as EntityGuidanceStatus, U as iconStatus, V as ContextGuidance, W as DecisionMakerType, X as Alert, Y as CardGroup, Z as EntityAssociation, B as Button, _ as ActionBar } from "./core-
|
|
11
|
+
import { x as useLegalEntity, y as Loader, z as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, G as useToastContext, H as useQueryClient, J as useUpdateLegalEntity, K as getOwnDecisionMakers, N as getAvailableDecisionMakerRoleTypes, O as useDataMissingRemediations, i as TaskTypes, P as getAllowedDecisionMakerRoles, D as DropinLayout, w as FormHeader, Q as EntityGuidanceStatus, U as iconStatus, V as ContextGuidance, W as DecisionMakerType, X as Alert, Y as CardGroup, Z as EntityAssociation, B as Button, _ as ActionBar } from "./core-GqGrg6fP.js";
|
|
12
12
|
import { useState, useEffect } from "preact/hooks";
|
|
13
13
|
const DecisionMakers = (props) => {
|
|
14
14
|
const { data, isLoading } = useLegalEntity();
|
|
@@ -35,7 +35,7 @@ const DecisionMakersInner = ({
|
|
|
35
35
|
queryClient.invalidateQueries({
|
|
36
36
|
queryKey: ["legalEntity", legalEntity.id],
|
|
37
37
|
exact: true,
|
|
38
|
-
refetchType: "
|
|
38
|
+
refetchType: "all"
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -113,7 +113,7 @@ const DecisionMakersInner = ({
|
|
|
113
113
|
(entityAssociation) => entityAssociation.legalEntityId !== decisionMaker.reference
|
|
114
114
|
)
|
|
115
115
|
};
|
|
116
|
-
updateLegalEntity.
|
|
116
|
+
await updateLegalEntity.mutateAsync({ ...updatedEntityAssociations, id: legalEntity.id });
|
|
117
117
|
const remainingDecisionMakers = decisionMakers.filter(
|
|
118
118
|
(curr) => curr.legalEntityId !== decisionMaker.reference
|
|
119
119
|
);
|
|
@@ -10,7 +10,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
;
|
|
13
|
-
import { av as createContext, aw as createSignal, ax as onMount, ay as createEffect, at as createMemo, au as createComponent, az as Portal, aA as Show, aB as template, aC as insert, aD as createRenderEffect, aE as className, aF as clearDelegatedEvents, aG as delegateEvents, aH as useContext, aI as onCleanup, aJ as sortFns, aK as mutationSortFns, aL as on, aM as setAttribute, aN as getSidedProp, aO as use, aP as createUniqueId, aQ as batch, aR as getQueryStatusLabel, aS as getMutationStatusColor, aT as getQueryStatusColor, aU as getQueryStatusColorByLabel, aV as displayValue, aW as For, aX as convertRemToPixels, aY as untrack, aZ as $TRACK, a_ as useTransition, a$ as spread, b0 as mergeProps, b1 as createRoot, b2 as serialize, b3 as Index, b4 as updateNestedDataByPath, b5 as addEventListener, b6 as stringify, b7 as Match, b8 as Switch, b9 as deleteNestedDataByPath, ba as splitProps, bb as Dynamic, bc as createComputed } from "./core-
|
|
13
|
+
import { av as createContext, aw as createSignal, ax as onMount, ay as createEffect, at as createMemo, au as createComponent, az as Portal, aA as Show, aB as template, aC as insert, aD as createRenderEffect, aE as className, aF as clearDelegatedEvents, aG as delegateEvents, aH as useContext, aI as onCleanup, aJ as sortFns, aK as mutationSortFns, aL as on, aM as setAttribute, aN as getSidedProp, aO as use, aP as createUniqueId, aQ as batch, aR as getQueryStatusLabel, aS as getMutationStatusColor, aT as getQueryStatusColor, aU as getQueryStatusColorByLabel, aV as displayValue, aW as For, aX as convertRemToPixels, aY as untrack, aZ as $TRACK, a_ as useTransition, a$ as spread, b0 as mergeProps, b1 as createRoot, b2 as serialize, b3 as Index, b4 as updateNestedDataByPath, b5 as addEventListener, b6 as stringify, b7 as Match, b8 as Switch, b9 as deleteNestedDataByPath, ba as splitProps, bb as Dynamic, bc as createComputed } from "./core-GqGrg6fP.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 { as as getPreferredColorScheme, at as createMemo, au 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-DN6P5SXo.js";
|
|
11
|
+
import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-GqGrg6fP.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 { i as TaskTypes, L as LegalEntityType, j as useCanSeeIntroduction, k as useLegalEntityType, t as toCapitalized, m as getTranslationKeysByPrefix, u as useI18nContext, n as useAnalyticsContext, o as StepProgressIndicator, B as Button } from "./core-
|
|
12
|
+
import { i as TaskTypes, L as LegalEntityType, j as useCanSeeIntroduction, k as useLegalEntityType, t as toCapitalized, m as getTranslationKeysByPrefix, u as useI18nContext, n as useAnalyticsContext, o as StepProgressIndicator, B as Button } from "./core-GqGrg6fP.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 { a7 as useApiContext, a8 as useMutation, a9 as httpPost, u as useI18nContext, G as useToastContext, aa as LoaderWrapper, w as FormHeader, ab as Checkbox, _ as ActionBar, D as DropinLayout } from "./core-
|
|
12
|
+
import { a7 as useApiContext, a8 as useMutation, a9 as httpPost, u as useI18nContext, G as useToastContext, aa as LoaderWrapper, w as FormHeader, ab as Checkbox, _ as ActionBar, D as DropinLayout } from "./core-GqGrg6fP.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 { u as useI18nContext, p as useForm, q as Typography, F as Field, R as RadioGroupCard, B as Button, r as Svg, L as LegalEntityType } from "./core-
|
|
12
|
+
import { u as useI18nContext, p as useForm, q as Typography, F as Field, R as RadioGroupCard, B as Button, r as Svg, L as LegalEntityType } from "./core-GqGrg6fP.js";
|
|
13
13
|
const setupAccountMethods = ["singpass", "manual"];
|
|
14
14
|
const setupAccountMethodFields = ["setupAccountMethod"];
|
|
15
15
|
const getSingpassSelectionDisabled = (legalEntityType) => {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { a7 as useApiContext, ac as useQuery, ad as httpGet, q as Typography, u as useI18nContext, ae as useFormContext, F as Field, af as RadioGroup, ag as getFormProps, h as Icon, ah as isEmpty, r as Svg, ai as sofStyles, B as Button, aj as Card, ak as StructuredList, al as IconButton, H as useQueryClient, n as useAnalyticsContext, x as useLegalEntity, J as useUpdateLegalEntity, a5 as useMultiForm, am as isEmpty$1, an as getRequiredForms, ao as addValidityToForms, g as createLogger, ap as useFormComposer, y as Loader, aq as FormContextProvider, ar as FormWrapper } from "./core-
|
|
11
|
+
import { a7 as useApiContext, ac as useQuery, ad as httpGet, q as Typography, u as useI18nContext, ae as useFormContext, F as Field, af as RadioGroup, ag as getFormProps, h as Icon, ah as isEmpty, r as Svg, ai as sofStyles, B as Button, aj as Card, ak as StructuredList, al as IconButton, H as useQueryClient, n as useAnalyticsContext, x as useLegalEntity, J as useUpdateLegalEntity, a5 as useMultiForm, am as isEmpty$1, an as getRequiredForms, ao as addValidityToForms, g as createLogger, ap as useFormComposer, y as Loader, aq as FormContextProvider, ar as FormWrapper } from "./core-GqGrg6fP.js";
|
|
12
12
|
import { useState, useRef, useEffect, useMemo, useCallback } from "preact/hooks";
|
|
13
13
|
import { signal } from "@preact/signals";
|
|
14
14
|
import cx from "classnames";
|
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] = "c2b3011f-92b6-42bf-aa9f-4ad3dbc0bbcd", e._sentryDebugIdIdentifier = "sentry-dbid-c2b3011f-92b6-42bf-aa9f-4ad3dbc0bbcd");
|
|
23
23
|
} catch (e) {
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -41777,13 +41777,13 @@ const useUpdateSourceOfFunds = (options) => {
|
|
|
41777
41777
|
...options
|
|
41778
41778
|
});
|
|
41779
41779
|
};
|
|
41780
|
-
const updateLegalEntity = async (
|
|
41780
|
+
const updateLegalEntity = async (rootLegalEntityId, url, data) => {
|
|
41781
41781
|
return httpPost(
|
|
41782
41782
|
{
|
|
41783
41783
|
loadingContext: url,
|
|
41784
41784
|
errorLevel: "warn",
|
|
41785
41785
|
errorMessage: `Failed to sign pci`,
|
|
41786
|
-
path: `legalEntities/${
|
|
41786
|
+
path: `legalEntities/${rootLegalEntityId}`,
|
|
41787
41787
|
authentication: "jwt",
|
|
41788
41788
|
headers: { "Content-Type": "application/json" }
|
|
41789
41789
|
},
|
|
@@ -50705,26 +50705,26 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
50705
50705
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
50706
50706
|
};
|
|
50707
50707
|
const Introduction = lazy$1(
|
|
50708
|
-
async () => (await import("./Introduction-
|
|
50708
|
+
async () => (await import("./Introduction-3TeEgMLX.js")).Introduction
|
|
50709
50709
|
);
|
|
50710
50710
|
const SingpassSelection = lazy$1(
|
|
50711
|
-
async () => (await import("./SingpassSelection-
|
|
50711
|
+
async () => (await import("./SingpassSelection-C4wkclNF.js")).SingpassSelection
|
|
50712
50712
|
);
|
|
50713
50713
|
const AccountSetupRejected = lazy$1(
|
|
50714
|
-
async () => (await import("./AccountSetupRejected-
|
|
50714
|
+
async () => (await import("./AccountSetupRejected-u9_iImBO.js")).AccountSetupRejected
|
|
50715
50715
|
);
|
|
50716
50716
|
const DecisionMakers = lazy$1(
|
|
50717
|
-
async () => (await import("./DecisionMakers-
|
|
50717
|
+
async () => (await import("./DecisionMakers-BjxM2oNu.js")).DecisionMakers
|
|
50718
50718
|
);
|
|
50719
50719
|
const CustomerSupport = lazy$1(
|
|
50720
|
-
async () => (await import("./CustomerSupport-
|
|
50720
|
+
async () => (await import("./CustomerSupport-CY87Y7T7.js")).CustomerSupport
|
|
50721
50721
|
);
|
|
50722
|
-
const Review = lazy$1(async () => (await import("./Review-
|
|
50722
|
+
const Review = lazy$1(async () => (await import("./Review-CITd00kn.js")).Review);
|
|
50723
50723
|
const SignPCIComponent$2 = lazy$1(
|
|
50724
50724
|
async () => (await Promise.resolve().then(() => SignPCIComponent$1)).SignPCIComponent
|
|
50725
50725
|
);
|
|
50726
50726
|
const TaxReportingDropin = lazy$1(
|
|
50727
|
-
async () => (await import("./TaxReportingDropin-
|
|
50727
|
+
async () => (await import("./TaxReportingDropin-C_ymKVa9.js")).TaxReportingDropin
|
|
50728
50728
|
);
|
|
50729
50729
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
50730
50730
|
const logger$6 = createLogger();
|
|
@@ -55147,7 +55147,7 @@ var TanstackQueryDevtools = (_l = class {
|
|
|
55147
55147
|
if (__privateGet(this, _Component)) {
|
|
55148
55148
|
Devtools = __privateGet(this, _Component);
|
|
55149
55149
|
} else {
|
|
55150
|
-
Devtools = lazy(() => import("./I3HPI4QX-
|
|
55150
|
+
Devtools = lazy(() => import("./I3HPI4QX-DeOR87Z4.js"));
|
|
55151
55151
|
__privateSet(this, _Component, Devtools);
|
|
55152
55152
|
}
|
|
55153
55153
|
setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
|
|
@@ -55269,7 +55269,7 @@ var TanstackQueryDevtoolsPanel = (_m = class {
|
|
|
55269
55269
|
if (__privateGet(this, _Component2)) {
|
|
55270
55270
|
Devtools = __privateGet(this, _Component2);
|
|
55271
55271
|
} else {
|
|
55272
|
-
Devtools = lazy(() => import("./CXEL7IU7-
|
|
55272
|
+
Devtools = lazy(() => import("./CXEL7IU7-DHcCuJ2m.js"));
|
|
55273
55273
|
__privateSet(this, _Component2, Devtools);
|
|
55274
55274
|
}
|
|
55275
55275
|
setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
|
|
@@ -55488,7 +55488,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
|
|
|
55488
55488
|
};
|
|
55489
55489
|
};
|
|
55490
55490
|
const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
|
|
55491
|
-
const sdkVersion = "3.65.
|
|
55491
|
+
const sdkVersion = "3.65.1";
|
|
55492
55492
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
55493
55493
|
const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
|
|
55494
55494
|
const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
|
|
@@ -55563,7 +55563,7 @@ const AnalyticsProvider = ({
|
|
|
55563
55563
|
const { onboardingVersion } = useVersion();
|
|
55564
55564
|
const userEvents2 = useMemo(() => createUserEvents(), []);
|
|
55565
55565
|
const sessionData = {
|
|
55566
|
-
sdkVersion: "3.65.
|
|
55566
|
+
sdkVersion: "3.65.1",
|
|
55567
55567
|
componentName,
|
|
55568
55568
|
userAgent: navigator.userAgent,
|
|
55569
55569
|
legalEntityId,
|
|
@@ -55697,7 +55697,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
|
|
|
55697
55697
|
[baseUrl, rootLegalEntityId]
|
|
55698
55698
|
);
|
|
55699
55699
|
return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
|
|
55700
|
-
/* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.65.
|
|
55700
|
+
/* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.65.1" }),
|
|
55701
55701
|
children2
|
|
55702
55702
|
] });
|
|
55703
55703
|
};
|
|
@@ -56172,7 +56172,7 @@ function StateProvider({
|
|
|
56172
56172
|
);
|
|
56173
56173
|
return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
|
|
56174
56174
|
}
|
|
56175
|
-
const DebugModal = lazy$1(async () => (await import("./DebugModal-
|
|
56175
|
+
const DebugModal = lazy$1(async () => (await import("./DebugModal-Cey2830Z.js").then((n) => n.D)).DebugModal);
|
|
56176
56176
|
const DebugListener = () => {
|
|
56177
56177
|
const [debugUiOpen, setDebugUiOpen] = useState(false);
|
|
56178
56178
|
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-Cey2830Z.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-Cey2830Z.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-Cey2830Z.js";
|
|
11
11
|
const definitions = {
|
|
12
12
|
any: { regex: /.*/g, css: cssProps.text },
|
|
13
13
|
boolean: { regex: /^(\s*)([\w-]+)(:)\s*(.*)$/g, css: cssProps.boolean },
|