@adyen/kyc-components 3.68.0 → 3.68.2
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-yutCVhdr.js → AcceptTermsOfServiceComponent-SQljDrXa.js} +8 -22
- package/dist/{AccountSetupRejected-Bp9MbaZF.js → AccountSetupRejected-ycQ81Di0.js} +3 -3
- package/dist/{BusinessTypeSelection-Bda3HjOy.js → BusinessTypeSelection-DvvmJzYv.js} +4 -4
- package/dist/{CXEL7IU7-DIlmKme0.js → CXEL7IU7-CGVwBOx0.js} +3 -3
- package/dist/{CreateIndividualComponent-wIMjaodd.js → CreateIndividualComponent-rathlqPP.js} +13 -12
- package/dist/{CustomerSupport-BBpiWDZu.js → CustomerSupport-D_JLR2FT.js} +3 -3
- package/dist/{DebugModal-Chl6VeCw.js → DebugModal-P05awsgJ.js} +8 -8
- package/dist/{DecisionMakers-91Uxeb4Z.js → DecisionMakers-DUC8rE56.js} +4 -4
- package/dist/{EmbedShell-BgnrqkKO.js → EmbedShell-H979Qm-6.js} +3 -3
- package/dist/{EventEmitter-MB52FRnR.js → EventEmitter-5jszKCaJ.js} +418 -359
- package/dist/{HASRA6WW-CYutWFzS.js → HASRA6WW-BPCY6elk.js} +2 -2
- package/dist/{I3HPI4QX-h-J4eisw.js → I3HPI4QX-06D9Iepl.js} +3 -3
- package/dist/{Introduction-Cn5uh084.js → Introduction-BghsurRU.js} +3 -3
- package/dist/{Review-BITkfvbx.js → Review-Dd7WI3Yz.js} +4 -3
- package/dist/{SingpassSelection-BPrfSrSw.js → SingpassSelection-DByRqKls.js} +2 -2
- package/dist/{TaxReportingDropin-DZLUs3Hb.js → TaxReportingDropin-BADfykll.js} +7 -12
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +1 -1
- package/dist/{core-DnQST_lN.js → core-C0rY8vL6.js} +81 -110
- package/dist/{css-ChtZI8YA.js → css-DLNP39b3.js} +1 -1
- package/dist/individual.js +2 -2
- package/dist/{json-CY-QM445.js → json-CrltTDwR.js} +1 -1
- package/dist/{listToRecord-CogvyLiD.js → listToRecord-3sI8p0aA.js} +2 -2
- package/dist/{plaintext-BzvCXlZZ.js → plaintext-BOAoTqQE.js} +1 -1
- package/dist/terms-of-service.js +2 -2
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -0
- package/dist/types/api/address/useRetrieveAddress.d.ts +5 -0
- package/dist/types/api/address/useSearchAddress.d.ts +1 -0
- package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -0
- package/dist/types/api/check/useCheck.d.ts +2 -0
- package/dist/types/api/configurations/useScenarios.d.ts +7 -6
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -0
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -0
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -4
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -0
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -0
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -0
- package/dist/types/api/documents/{useGetDocument.d.ts → useDocument.d.ts} +6 -1
- package/dist/types/api/invalidateRootLegalEntity.d.ts +6 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +5 -0
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -0
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -0
- package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +1 -0
- package/dist/types/api/pciTemplate/usePciStatus.d.ts +1 -0
- package/dist/types/api/pciTemplate/usePciTemplate.d.ts +1 -0
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -0
- package/dist/types/api/queryKeys.d.ts +38 -0
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +1 -0
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -0
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +9 -0
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -0
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -0
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -0
- package/dist/types/api/transferInstruments/{useGetBankVerificationProviders.d.ts → useBankVerificationProviders.d.ts} +5 -1
- package/dist/types/api/transferInstruments/{useGetTransferInstrument.d.ts → useTransferInstrument.d.ts} +6 -1
- package/dist/types/api/transferInstruments/{useGetTransferInstruments.d.ts → useTransferInstruments.d.ts} +2 -1
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +5 -0
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/SignPCIComponent/SignPCIComponent.d.ts +1 -2
- package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +5 -1
- package/dist/types/components/ui/atoms/Radio/Radio.d.ts +3 -1
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.d.ts +1 -1
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +1 -0
- package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -1
- package/dist/{yaml-CFgf8XoZ.js → yaml-Cc82rT2c.js} +1 -1
- package/package.json +4 -4
package/dist/{AcceptTermsOfServiceComponent-yutCVhdr.js → AcceptTermsOfServiceComponent-SQljDrXa.js}
RENAMED
|
@@ -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] = "0f75fe0e-c0c5-423b-9130-3b81efa8de08", e._sentryDebugIdIdentifier = "sentry-dbid-0f75fe0e-c0c5-423b-9130-3b81efa8de08");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useState, useEffect, useCallback } from "preact/hooks";
|
|
12
|
-
import { a as useApiContext,
|
|
12
|
+
import { a as useApiContext, R as useInvalidateRootLegalEntity, e as useMutation, h as httpPost, b as useQuery, d as httpGet, dV as skipToken, Q as Icon, dW as AlertIcon, c as createLogger, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, n as useExperimentsContext, bj as useForm, V as Alert, G as Button, b8 as localizeDateString, L as LoaderWrapper, b9 as Field, ba as Select, d1 as Checkbox, cH as ActionBar, d0 as MaybeModal, D as ModalContent, F as ModalFooter, dE as StepProgressIndicator, Y as Spacer, J as LegalEntityType, ak as getOwnSignatories, a4 as doesLegalEntityRequiresLegalRepresentative, a3 as getLegalRepresentative, cF as FormNavigation, I as useCoreContext, u as useLegalEntity, K as Loader, T as TaskTypes } from "./EventEmitter-5jszKCaJ.js";
|
|
13
13
|
import cx from "classnames";
|
|
14
14
|
import { defineSlots } from "named-slots";
|
|
15
15
|
const acceptTermsOfService = async (legalEntityId, url, termsOfServiceDocumentId, data) => {
|
|
@@ -33,19 +33,11 @@ const acceptTermsOfService = async (legalEntityId, url, termsOfServiceDocumentId
|
|
|
33
33
|
};
|
|
34
34
|
const useAcceptTermsOfService = (options) => {
|
|
35
35
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
36
|
-
const
|
|
36
|
+
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
37
37
|
return useMutation({
|
|
38
38
|
mutationFn: (data) => acceptTermsOfService(legalEntityId.value, baseUrl.value, data.termsOfServiceDocumentId, data),
|
|
39
39
|
onSuccess: async () => {
|
|
40
|
-
|
|
41
|
-
queryKey: ["legalEntity", legalEntityId.value]
|
|
42
|
-
});
|
|
43
|
-
queryClient.invalidateQueries({
|
|
44
|
-
queryKey: ["termsOfServiceStatus", legalEntityId.value]
|
|
45
|
-
});
|
|
46
|
-
queryClient.invalidateQueries({
|
|
47
|
-
queryKey: ["termsOfServiceAcceptanceInfos", legalEntityId.value]
|
|
48
|
-
});
|
|
40
|
+
await invalidateRootLegalEntity();
|
|
49
41
|
},
|
|
50
42
|
...options
|
|
51
43
|
});
|
|
@@ -65,7 +57,7 @@ const getTermsOfServiceAcceptanceInfos = async (legalEntityId, url) => {
|
|
|
65
57
|
const useTermsOfServiceAcceptanceInfos = (options) => {
|
|
66
58
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
67
59
|
return useQuery({
|
|
68
|
-
queryKey: ["termsOfServiceAcceptanceInfos"
|
|
60
|
+
queryKey: ["termsOfServiceAcceptanceInfos"],
|
|
69
61
|
queryFn: () => getTermsOfServiceAcceptanceInfos(legalEntityId.value, baseUrl.value),
|
|
70
62
|
...options
|
|
71
63
|
});
|
|
@@ -85,7 +77,7 @@ const getTermsOfServiceStatus = async (legalEntityId, url) => {
|
|
|
85
77
|
const useTermsOfServiceStatus = (options) => {
|
|
86
78
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
87
79
|
return useQuery({
|
|
88
|
-
queryKey: ["termsOfServiceStatus"
|
|
80
|
+
queryKey: ["termsOfServiceStatus"],
|
|
89
81
|
queryFn: () => getTermsOfServiceStatus(legalEntityId.value, baseUrl.value),
|
|
90
82
|
...options
|
|
91
83
|
});
|
|
@@ -105,13 +97,7 @@ const getAcceptedTermsOfService = async (legalEntityId, url, termsOfServiceAccep
|
|
|
105
97
|
const useAcceptedTermsOfService = (termsOfServiceAcceptanceReference, documentFormat, options) => {
|
|
106
98
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
107
99
|
return useQuery({
|
|
108
|
-
queryKey: [
|
|
109
|
-
"acceptedTermsOfService",
|
|
110
|
-
termsOfServiceAcceptanceReference,
|
|
111
|
-
documentFormat,
|
|
112
|
-
legalEntityId.value,
|
|
113
|
-
baseUrl.value
|
|
114
|
-
],
|
|
100
|
+
queryKey: ["acceptedTermsOfService", termsOfServiceAcceptanceReference, documentFormat],
|
|
115
101
|
queryFn: termsOfServiceAcceptanceReference ? () => getAcceptedTermsOfService(
|
|
116
102
|
legalEntityId.value,
|
|
117
103
|
baseUrl.value,
|
|
@@ -139,7 +125,7 @@ const getTermsOfService = async (legalEntityId, url, data) => {
|
|
|
139
125
|
const useTermsOfService = (data, options) => {
|
|
140
126
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
141
127
|
return useQuery({
|
|
142
|
-
queryKey: ["termsOfService",
|
|
128
|
+
queryKey: ["termsOfService", data],
|
|
143
129
|
queryFn: () => getTermsOfService(legalEntityId.value, baseUrl.value, data),
|
|
144
130
|
...options
|
|
145
131
|
});
|
|
@@ -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] = "65075b4c-3f18-430d-91fc-0e702156a9c6", e._sentryDebugIdIdentifier = "sentry-dbid-65075b4c-3f18-430d-91fc-0e702156a9c6");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { i as useI18nContext,
|
|
12
|
-
import { D as DropinLayout } from "./core-
|
|
11
|
+
import { i as useI18nContext, dW as AlertIcon, bY as FormHeader } from "./EventEmitter-5jszKCaJ.js";
|
|
12
|
+
import { D as DropinLayout } from "./core-C0rY8vL6.js";
|
|
13
13
|
function AccountSetupRejected() {
|
|
14
14
|
const { i18n } = useI18nContext();
|
|
15
15
|
const content = /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -2,16 +2,16 @@
|
|
|
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] = "254a1d95-391b-48a3-b493-16ec6bddf23d", e._sentryDebugIdIdentifier = "sentry-dbid-254a1d95-391b-48a3-b493-16ec6bddf23d");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useState, useEffect } from "preact/hooks";
|
|
12
|
-
import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, n as useExperimentsContext,
|
|
13
|
-
import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-
|
|
14
|
-
import { b as useSelectionOptions, g as getBusinessType, c as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, d as getTargetLegalEntityType, e as businessTypeIcons, f as determineOrganizationTypeToUpdate } from "./core-
|
|
12
|
+
import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, n as useExperimentsContext, ap as getCapabilities, q as getLegalEntityCountry, J as LegalEntityType, bj as useForm, L as LoaderWrapper, E as Typography, b9 as Field, d$ as EntityTypeRadioGroupCard, cz as RadioGroupCard, G as Button, Y as Spacer, Q as Icon, a7 as hasSolePropInLegalEntity } from "./EventEmitter-5jszKCaJ.js";
|
|
13
|
+
import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-rathlqPP.js";
|
|
14
|
+
import { b as useSelectionOptions, g as getBusinessType, c as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, d as getTargetLegalEntityType, e as businessTypeIcons, f as determineOrganizationTypeToUpdate } from "./core-C0rY8vL6.js";
|
|
15
15
|
const businessTypeExamples = /* @__PURE__ */ Object.assign({ "../localized/legalEntityTypeExamples/AT.json": () => import("./AT-EpV7jN58.js"), "../localized/legalEntityTypeExamples/AU.json": () => import("./AU-pBsEvEUy.js"), "../localized/legalEntityTypeExamples/BE.json": () => import("./BE-CU5o9cmc.js"), "../localized/legalEntityTypeExamples/BR.json": () => import("./BR-ORoHRwTk.js"), "../localized/legalEntityTypeExamples/CA.json": () => import("./CA-VXNq-m6m.js"), "../localized/legalEntityTypeExamples/CH.json": () => import("./CH-B_-afpD_.js"), "../localized/legalEntityTypeExamples/CZ.json": () => import("./CZ-CTw_bQIu.js"), "../localized/legalEntityTypeExamples/DE.json": () => import("./DE-D_jIDxOH.js"), "../localized/legalEntityTypeExamples/DK.json": () => import("./DK-dBzrfgpQ.js"), "../localized/legalEntityTypeExamples/ES.json": () => import("./ES-DYbZmFcJ.js"), "../localized/legalEntityTypeExamples/FI.json": () => import("./FI-C9nRvop7.js"), "../localized/legalEntityTypeExamples/FR.json": () => import("./FR-BycGQO4W.js"), "../localized/legalEntityTypeExamples/GB.json": () => import("./GB-DFyzo5sN.js"), "../localized/legalEntityTypeExamples/HK.json": () => import("./HK-WqZ5UBEF.js"), "../localized/legalEntityTypeExamples/HR.json": () => import("./HR-CRa19tH1.js"), "../localized/legalEntityTypeExamples/HU.json": () => import("./HU-D5NCweWf.js"), "../localized/legalEntityTypeExamples/IE.json": () => import("./IE-rhATS57q.js"), "../localized/legalEntityTypeExamples/IT.json": () => import("./IT-wD7dHdYD.js"), "../localized/legalEntityTypeExamples/LT.json": () => import("./LT-0F72uCyI.js"), "../localized/legalEntityTypeExamples/NL.json": () => import("./NL-q2U2l276.js"), "../localized/legalEntityTypeExamples/NO.json": () => import("./NO-CX12Zsf_.js"), "../localized/legalEntityTypeExamples/PL.json": () => import("./PL-CwCXF3Yu.js"), "../localized/legalEntityTypeExamples/PT.json": () => import("./PT-Dei5v1nD.js"), "../localized/legalEntityTypeExamples/RO.json": () => import("./RO-Dxk08mOu.js"), "../localized/legalEntityTypeExamples/SE.json": () => import("./SE-AP3gLiyy.js"), "../localized/legalEntityTypeExamples/SG.json": () => import("./SG-DMcOb17i.js"), "../localized/legalEntityTypeExamples/SI.json": () => import("./SI-BXe-yndm.js"), "../localized/legalEntityTypeExamples/SK.json": () => import("./SK-DwdgoGnD.js"), "../localized/legalEntityTypeExamples/US.json": () => import("./US-DHxLSqeC.js") });
|
|
16
16
|
const getBusinessTypeExamplesForCountry = async (country) => {
|
|
17
17
|
const importForCountry = businessTypeExamples[`../localized/legalEntityTypeExamples/${country}.json`];
|
|
@@ -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] = "9944a3f9-3fec-4cd0-99c6-51639e008b66", e._sentryDebugIdIdentifier = "sentry-dbid-9944a3f9-3fec-4cd0-99c6-51639e008b66");
|
|
6
6
|
} catch (e) {
|
|
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 {
|
|
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-BPCY6elk.js";
|
|
11
|
+
import { e1 as getPreferredColorScheme, e2 as createMemo, e3 as createComponent } from "./EventEmitter-5jszKCaJ.js";
|
|
12
12
|
var DevtoolsPanelComponent = (props) => {
|
|
13
13
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
14
14
|
prefix: "TanstackQueryDevtools"
|
package/dist/{CreateIndividualComponent-wIMjaodd.js → CreateIndividualComponent-rathlqPP.js}
RENAMED
|
@@ -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] = "ae8fe5ec-a78a-4f08-a5d5-147596ab6e2a", e._sentryDebugIdIdentifier = "sentry-dbid-ae8fe5ec-a78a-4f08-a5d5-147596ab6e2a");
|
|
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,
|
|
11
|
+
import { a as useApiContext, b as useQuery, d as httpGet, e as useMutation, h as httpPost, R as useInvalidateRootLegalEntity, f as useQueryClient, dk as FormContext, $ as entriesOf, aC as objectsDeepEqual, c as createLogger, c5 as TrustedFieldsProvider, aL as businessDetailsApiKeyMapping, dl as individualApiKeyMapping, dm as remediationHasFileUploadField, dn as dataMissingRemediationsToFieldsMap, k as keysOf, n as useExperimentsContext, q as getLegalEntityCountry, C as CountryCodes, a6 as isPartOfTrustFromLegalEntity, J as LegalEntityType, a7 as hasSolePropInLegalEntity, dp as individualComponentsKeyMapping, aE as businessDetailsComponentsKeyMapping, j as useAnalyticsContext, cE as summaryStep, dq as ValidationResult, dr as isNotEmptyValidator, H as isEmpty, I as useCoreContext, ds as AdyenKycSdkError, dt as hasText, du as matchesRegex, dv as trimValWithOneSpace, dw as NO_ALPHABET_REGEX, dx as EMOJI_REGEX, dy as hasRepeatedCharacters, dz as isInvalidName, dA as INDIVIDUAL_VALID_CHAR_REGEX, dB as getFormattingRegEx, dC as SPECIAL_CHARS, dD as FormRouterContext, i as useI18nContext, d0 as MaybeModal, D as ModalContent, B as ModalHeader, L as LoaderWrapper, cF as FormNavigation, F as ModalFooter, dE as StepProgressIndicator, G as Button, Y as Spacer, cG as Summary, U as httpDelete, bJ as getLocalizedIdDocumentTypeOptions, dF as isNewlyUploadedFile, T as TaskTypes, dG as remediationPayoutApiKeyMapping, dH as remediationBusinessDetailsApiKeyMapping, dI as remediationIndividualApiKeyMapping, dJ as getNestedPropertyKeys, y as cloneObject, dK as isValueObscured, bB as isTruthyValidator, dL as emailPattern, aS as resolveFieldMetadata, bC as getSSNType, bD as defaultFieldMetadata, bE as defaultFieldConfig, dM as defaultFieldMetadata$1, dN 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, dO as getNomineeFromAssociation, aD as drop, l as useToastContext, o as useSettingsContext, b2 as getAssociatedLeAnalyticsPayload, bA as addressValidators, cn as getAsyncIdNumberValidationRule, co as getAsyncPhoneValidationRules, dP as addressFormatters, cp as setHasMotionCaptureScenario, dQ as individualForms, cd as showIndividualMotionCapture, cq as getAllowedDecisionMakerRoles, cm as useProviderStatus, z as datasetUtilities, dR as Individual, ap as getCapabilities, aQ as filterOutUnwantedAssociationsIfRootLE, aO as mapAddressLabels, dS as individualDocumentForms, b8 as localizeDateString, dT as individualDocumentMapping, dU as individualObscuredFields, a$ as getOwnEntityAssociations, cr as hasNomineesChanged, cs as attachNomineeToRole, b0 as doArraysMatch, u as useLegalEntity, K as Loader } from "./EventEmitter-5jszKCaJ.js";
|
|
12
12
|
import { useCallback, useMemo, useReducer, useState, useEffect } from "preact/hooks";
|
|
13
13
|
const getScenarios = async (legalEntityId, url, legalEntityType, countryCode) => {
|
|
14
14
|
const scenarioParams = new URLSearchParams({
|
|
@@ -30,7 +30,7 @@ const useScenarios = (countryCode, legalEntityType, options) => {
|
|
|
30
30
|
var _a;
|
|
31
31
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
32
32
|
const result = useQuery({
|
|
33
|
-
queryKey: ["scenarios",
|
|
33
|
+
queryKey: ["scenarios", legalEntityType, countryCode],
|
|
34
34
|
queryFn: () => getScenarios(legalEntityId.value, baseUrl.value, legalEntityType, countryCode),
|
|
35
35
|
...options
|
|
36
36
|
});
|
|
@@ -153,16 +153,17 @@ const updateLegalEntity = async (rootLegalEntityId, url, data) => {
|
|
|
153
153
|
);
|
|
154
154
|
};
|
|
155
155
|
const useUpdateLegalEntity = (options) => {
|
|
156
|
-
const { legalEntityId, baseUrl } = useApiContext();
|
|
156
|
+
const { legalEntityId: rootLegalEntityId, baseUrl } = useApiContext();
|
|
157
|
+
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
157
158
|
const queryClient = useQueryClient();
|
|
158
159
|
return useMutation({
|
|
159
|
-
mutationFn: (payload) =>
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
160
|
+
mutationFn: (payload) => updateLegalEntity(rootLegalEntityId.value, baseUrl.value, payload),
|
|
161
|
+
onSuccess: async (response, payload) => {
|
|
162
|
+
if (response.id === rootLegalEntityId.value) {
|
|
163
|
+
await invalidateRootLegalEntity();
|
|
164
|
+
} else {
|
|
165
|
+
queryClient.setQueryData(["legalEntity", payload.id], response);
|
|
166
|
+
}
|
|
166
167
|
},
|
|
167
168
|
...options
|
|
168
169
|
});
|
|
@@ -403,7 +404,7 @@ async function convertToSingpassLinkResponse(openIdInitiateResponse) {
|
|
|
403
404
|
const useOpenIdAuthorizationLink = (options) => {
|
|
404
405
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
405
406
|
return useQuery({
|
|
406
|
-
queryKey: ["openIdAuthorizationLink"
|
|
407
|
+
queryKey: ["openIdAuthorizationLink"],
|
|
407
408
|
queryFn: () => getOpenIdAuthorizationLink(legalEntityId.value, baseUrl.value),
|
|
408
409
|
...options
|
|
409
410
|
});
|
|
@@ -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] = "db5dabdb-2b2e-4d42-bd17-92131deb5268", e._sentryDebugIdIdentifier = "sentry-dbid-db5dabdb-2b2e-4d42-bd17-92131deb5268");
|
|
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,
|
|
11
|
+
import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, f as useQueryClient, aS as resolveFieldMetadata, dM as defaultFieldMetadata, dN as fieldConfig, co as getAsyncPhoneValidationRules, bY as FormHeader, c9 as ContactDetails, cH as ActionBar, c as createLogger } from "./EventEmitter-5jszKCaJ.js";
|
|
12
12
|
import { useCallback, useMemo, useEffect } from "preact/hooks";
|
|
13
|
-
import { B as useUpdateLegalEntity, H as contactDetailsValidationRules, M as useValidatePhoneNumberImperatively, O as useMultiForm } from "./CreateIndividualComponent-
|
|
13
|
+
import { B as useUpdateLegalEntity, H as contactDetailsValidationRules, M as useValidatePhoneNumberImperatively, O as useMultiForm } from "./CreateIndividualComponent-rathlqPP.js";
|
|
14
14
|
const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
|
|
15
15
|
var _a, _b, _c;
|
|
16
16
|
return {
|
|
@@ -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] = "b2497e82-0ef9-4d8c-828a-fb6610861e31", e._sentryDebugIdIdentifier = "sentry-dbid-b2497e82-0ef9-4d8c-828a-fb6610861e31");
|
|
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,
|
|
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, dX as splitTaskIdentifier, n as useExperimentsContext, o as useSettingsContext, cu as useGlobalStore, dY as valuesOf, dZ as useTaskStatuses, M as Modal, c as createLogger, Q as Icon, S as SettingNames } from "./EventEmitter-5jszKCaJ.js";
|
|
13
|
+
import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-3sI8p0aA.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-BOAoTqQE.js"),
|
|
179
|
+
json: () => import("./json-CrltTDwR.js"),
|
|
180
|
+
yaml: () => import("./yaml-Cc82rT2c.js"),
|
|
181
|
+
css: () => import("./css-DLNP39b3.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.68.
|
|
472
|
+
sdkVersion: "3.68.2",
|
|
473
473
|
locale: i18n.locale,
|
|
474
474
|
rootLegalEntityId: rootLegalEntity.id
|
|
475
475
|
};
|
|
@@ -2,16 +2,16 @@
|
|
|
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] = "445ef417-65d0-4a5d-9a66-740e1b0d08a4", e._sentryDebugIdIdentifier = "sentry-dbid-445ef417-65d0-4a5d-9a66-740e1b0d08a4");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState, useEffect } from "preact/hooks";
|
|
12
|
-
import { u as useLegalEntity, K as Loader,
|
|
13
|
-
import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-
|
|
14
|
-
import { h as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, j as EntityAssociation } from "./core-
|
|
12
|
+
import { u as useLegalEntity, K as Loader, ai as useGetTaskStatus, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, c$ as getOwnDecisionMakers, e0 as getAvailableDecisionMakerRoleTypes, T as TaskTypes, cq as getAllowedDecisionMakerRoles, bY as FormHeader, c4 as ContextGuidance, bH as DecisionMakerType, V as Alert, af as CardGroup, G as Button, cH as ActionBar } from "./EventEmitter-5jszKCaJ.js";
|
|
13
|
+
import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-rathlqPP.js";
|
|
14
|
+
import { h as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, j as EntityAssociation } from "./core-C0rY8vL6.js";
|
|
15
15
|
const DecisionMakers = (props) => {
|
|
16
16
|
const { data, isLoading } = useLegalEntity();
|
|
17
17
|
if (isLoading || !data) {
|
|
@@ -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] = "5d7eba82-d01c-4e7d-86c8-44e1c839585a", e._sentryDebugIdIdentifier = "sentry-dbid-5d7eba82-d01c-4e7d-86c8-44e1c839585a");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
11
|
+
import { d5 as SettingsProvider, d6 as ExperimentsContextProvider, d7 as ApiProvider, d8 as QueryClientProvider, d9 as StoreProvider, da as AnalyticsProvider, db as CoreProvider, dc as I18nProvider, d4 as EventEmitter, dd as DebugListener, de as ToastContextProvider, df as StateProvider, dg as ReactQueryDevtools2 } from "./EventEmitter-5jszKCaJ.js";
|
|
12
12
|
function injectCss(shadowRoot) {
|
|
13
13
|
{
|
|
14
14
|
import("./styles-CLV89_hH.js").then(({ css }) => {
|
|
@@ -38,7 +38,7 @@ const EmbedShell = ({
|
|
|
38
38
|
const eventEmitter = new EventEmitter();
|
|
39
39
|
return /* @__PURE__ */ jsx(SettingsProvider, { settings, children: /* @__PURE__ */ jsx(ExperimentsContextProvider, { experiments, refreshExperiments, children: /* @__PURE__ */ jsx(ApiProvider, { legalEntityId, baseUrl: loadingContext, children: /* @__PURE__ */ jsx(QueryClientProvider, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
40
40
|
/* @__PURE__ */ jsxs(StoreProvider, { children: [
|
|
41
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.68.
|
|
41
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.68.2" }),
|
|
42
42
|
/* @__PURE__ */ jsx(
|
|
43
43
|
AnalyticsProvider,
|
|
44
44
|
{
|