@adyen/kyc-components 3.57.1 → 3.57.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/es/{B4MFY5CR-D75YgS09.js → B4MFY5CR-DkZtb7d3.js} +1 -1
- package/dist/es/{HO4MOOFI-DNsHY5mz.js → HO4MOOFI-wzF0N7iv.js} +2 -2
- package/dist/es/{HUY7CZI3-COPs-NYa.js → HUY7CZI3-BK_rqYHa.js} +2 -2
- package/dist/es/{Introduction-CYuHFb7b.js → Introduction-DhHhXrxa.js} +1 -1
- package/dist/es/adyen-kyc-components.es.js +1 -1
- package/dist/es/{css-DnOp_BRh.js → css-Bnf6yr_R.js} +1 -1
- package/dist/es/{index-D2pgAbpu.js → index-BSMeMrJR.js} +22 -16
- package/dist/es/{json-DvF_GzGv.js → json-BOvlLUxr.js} +1 -1
- package/dist/es/{plaintext-CBZzipLc.js → plaintext-BFkPKRSv.js} +1 -1
- package/dist/es/{yaml-CjI4QAHh.js → yaml-BvMTQEly.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { h as createContext, i as createSignal, o as onMount, j as createEffect, e as createMemo, f as createComponent, P as Portal, k as Show, l as template, m as insert, n as createRenderEffect, p as className, q as clearDelegatedEvents, r as delegateEvents, s as useContext, v as onCleanup, w as sortFns, x as mutationSortFns, y as on, z as setAttribute, A as getSidedProp, C as use, D as createUniqueId, E as batch, F as getQueryStatusLabel, G as getMutationStatusColor, H as getQueryStatusColor, I as getQueryStatusColorByLabel, J as displayValue, K as For, M as convertRemToPixels, N as untrack, $ as $TRACK, O as useTransition, Q as spread, R as mergeProps, U as createRoot, V as serialize, W as Index, X as updateNestedDataByPath, Y as addEventListener, Z as stringify, _ as Match, a0 as Switch, a1 as deleteNestedDataByPath, a2 as splitProps, a3 as Dynamic, a4 as createComputed } from "./index-
|
|
4
|
+
import { h as createContext, i as createSignal, o as onMount, j as createEffect, e as createMemo, f as createComponent, P as Portal, k as Show, l as template, m as insert, n as createRenderEffect, p as className, q as clearDelegatedEvents, r as delegateEvents, s as useContext, v as onCleanup, w as sortFns, x as mutationSortFns, y as on, z as setAttribute, A as getSidedProp, C as use, D as createUniqueId, E as batch, F as getQueryStatusLabel, G as getMutationStatusColor, H as getQueryStatusColor, I as getQueryStatusColorByLabel, J as displayValue, K as For, M as convertRemToPixels, N as untrack, $ as $TRACK, O as useTransition, Q as spread, R as mergeProps, U as createRoot, V as serialize, W as Index, X as updateNestedDataByPath, Y as addEventListener, Z as stringify, _ as Match, a0 as Switch, a1 as deleteNestedDataByPath, a2 as splitProps, a3 as Dynamic, a4 as createComputed } from "./index-BSMeMrJR.js";
|
|
5
5
|
var isNonNullable = (i2) => i2 != null;
|
|
6
6
|
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
7
7
|
function chain(callbacks) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./B4MFY5CR-
|
|
2
|
-
import { d as getPreferredColorScheme, e as createMemo, f as createComponent } from "./index-
|
|
1
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./B4MFY5CR-DkZtb7d3.js";
|
|
2
|
+
import { d as getPreferredColorScheme, e as createMemo, f as createComponent } from "./index-BSMeMrJR.js";
|
|
3
3
|
var DevtoolsComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./B4MFY5CR-
|
|
2
|
-
import { d as getPreferredColorScheme, e as createMemo, f as createComponent } from "./index-
|
|
1
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./B4MFY5CR-DkZtb7d3.js";
|
|
2
|
+
import { d as getPreferredColorScheme, e as createMemo, f as createComponent } from "./index-BSMeMrJR.js";
|
|
3
3
|
var DevtoolsPanelComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
2
2
|
import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
|
|
3
|
-
import { T as TaskTypes, L as LegalEntityType, u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized, g as getTranslationKeysByPrefix, b as useI18nContext, c as userEvents, S as StepProgressIndicator, B as Button } from "./index-
|
|
3
|
+
import { T as TaskTypes, L as LegalEntityType, u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized, g as getTranslationKeysByPrefix, b as useI18nContext, c as userEvents, S as StepProgressIndicator, B as Button } from "./index-BSMeMrJR.js";
|
|
4
4
|
import { useMemo } from "preact/compat";
|
|
5
5
|
var IntroductionScreens = ((IntroductionScreens2) => {
|
|
6
6
|
IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
|
|
@@ -20849,6 +20849,11 @@ function TaxInformationField({
|
|
|
20849
20849
|
});
|
|
20850
20850
|
return handleChangeFor("taxInformation", "blur")(updatedTaxInformation);
|
|
20851
20851
|
};
|
|
20852
|
+
useEffect(() => {
|
|
20853
|
+
if (country === "SG" && data.isUen && (currentCountryTaxInformation == null ? void 0 : currentCountryTaxInformation.number) !== registrationNumber) {
|
|
20854
|
+
setUenAsTaxId(registrationNumber);
|
|
20855
|
+
}
|
|
20856
|
+
}, [registrationNumber]);
|
|
20852
20857
|
const handleTaxInformationInput = (value) => {
|
|
20853
20858
|
if (!data.taxInformation) {
|
|
20854
20859
|
const taxInfo = canSaveAbsentState ? {
|
|
@@ -31976,7 +31981,7 @@ function AdditionalInformation({
|
|
|
31976
31981
|
var _a3;
|
|
31977
31982
|
handleChangeFor("registrationAddress")(state.data);
|
|
31978
31983
|
setValid("registrationAddress", Boolean(state.isValid));
|
|
31979
|
-
if (((_a3 = state == null ? void 0 : state.data) == null ? void 0 : _a3.poBox) && isPreventPoBoxEnabled) {
|
|
31984
|
+
if (((_a3 = state == null ? void 0 : state.data) == null ? void 0 : _a3.poBox) === true && isPreventPoBoxEnabled) {
|
|
31980
31985
|
handleOperationalAddressIsSameChange(false);
|
|
31981
31986
|
}
|
|
31982
31987
|
};
|
|
@@ -32264,7 +32269,7 @@ function AdditionalInformation({
|
|
|
32264
32269
|
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: i18n.get("principalPlaceOfBusiness") }),
|
|
32265
32270
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("principalPlaceOfBusinessDescription") })
|
|
32266
32271
|
] }),
|
|
32267
|
-
(
|
|
32272
|
+
(((_h2 = formData == null ? void 0 : formData.registrationAddress) == null ? void 0 : _h2.poBox) !== true || !isPreventPoBoxEnabled) && /* @__PURE__ */ jsx(
|
|
32268
32273
|
Field,
|
|
32269
32274
|
{
|
|
32270
32275
|
name: "operationalAddressIsSame",
|
|
@@ -33484,6 +33489,7 @@ function BusinessDetails(props) {
|
|
|
33484
33489
|
const classNames = cx("adyen-kyc-business-details", {
|
|
33485
33490
|
"adyen-kyc-business-details--hide": (activeForm == null ? void 0 : activeForm.formId) === "summary"
|
|
33486
33491
|
});
|
|
33492
|
+
const companyType = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ? CompanyTypesValue.SOLE_PROPRIETORSHIP : companyStructure == null ? void 0 : companyStructure.entityType;
|
|
33487
33493
|
return /* @__PURE__ */ jsxs("div", { className: classNames, children: [
|
|
33488
33494
|
/* @__PURE__ */ jsx("div", { className: formWrapperClasses(forms.basicInformation.formId), children: /* @__PURE__ */ jsx(
|
|
33489
33495
|
BasicInformation,
|
|
@@ -33493,7 +33499,7 @@ function BusinessDetails(props) {
|
|
|
33493
33499
|
heading: i18n.get((activeForm == null ? void 0 : activeForm.formHeading) || forms.basicInformation.formHeading),
|
|
33494
33500
|
description: (activeForm == null ? void 0 : activeForm.formDescription) ? i18n.get(activeForm == null ? void 0 : activeForm.formDescription) : void 0,
|
|
33495
33501
|
country,
|
|
33496
|
-
companyType
|
|
33502
|
+
companyType,
|
|
33497
33503
|
isTopLevelEntity,
|
|
33498
33504
|
showBusinessSelection,
|
|
33499
33505
|
showCompanyStructure,
|
|
@@ -33536,7 +33542,7 @@ function BusinessDetails(props) {
|
|
|
33536
33542
|
id: forms.additionalInformation.formId,
|
|
33537
33543
|
heading: i18n.get((activeForm == null ? void 0 : activeForm.formHeading) ?? forms.additionalInformation.formHeading),
|
|
33538
33544
|
country,
|
|
33539
|
-
companyType
|
|
33545
|
+
companyType,
|
|
33540
33546
|
verifiedBusiness,
|
|
33541
33547
|
showCompanyStructure,
|
|
33542
33548
|
handleAddressSearch,
|
|
@@ -33551,7 +33557,7 @@ function BusinessDetails(props) {
|
|
|
33551
33557
|
heading: forms.companyRegistrationDocument.formHeading,
|
|
33552
33558
|
description: forms.companyRegistrationDocument.formDescription,
|
|
33553
33559
|
country,
|
|
33554
|
-
companyType
|
|
33560
|
+
companyType
|
|
33555
33561
|
}
|
|
33556
33562
|
) }),
|
|
33557
33563
|
/* @__PURE__ */ jsx("div", { className: formWrapperClasses(forms.companyTaxDocument.formId), children: country === "US" ? /* @__PURE__ */ jsx(
|
|
@@ -33562,7 +33568,7 @@ function BusinessDetails(props) {
|
|
|
33562
33568
|
heading: forms.companyTaxDocument.formHeading,
|
|
33563
33569
|
description: forms.companyTaxDocument.formDescription,
|
|
33564
33570
|
country,
|
|
33565
|
-
companyType
|
|
33571
|
+
companyType
|
|
33566
33572
|
}
|
|
33567
33573
|
) : /* @__PURE__ */ jsx(
|
|
33568
33574
|
MemoizedDocumentUpload,
|
|
@@ -51192,7 +51198,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
51192
51198
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
51193
51199
|
};
|
|
51194
51200
|
const Introduction = lazy$1(
|
|
51195
|
-
async () => (await import("./Introduction-
|
|
51201
|
+
async () => (await import("./Introduction-DhHhXrxa.js")).Introduction
|
|
51196
51202
|
);
|
|
51197
51203
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
51198
51204
|
const logger$d = createLogger("DropinComposer");
|
|
@@ -56189,7 +56195,7 @@ var TanstackQueryDevtools = (_k = class {
|
|
|
56189
56195
|
if (__privateGet(this, _Component)) {
|
|
56190
56196
|
Devtools = __privateGet(this, _Component);
|
|
56191
56197
|
} else {
|
|
56192
|
-
Devtools = lazy(() => import("./HO4MOOFI-
|
|
56198
|
+
Devtools = lazy(() => import("./HO4MOOFI-wzF0N7iv.js"));
|
|
56193
56199
|
__privateSet(this, _Component, Devtools);
|
|
56194
56200
|
}
|
|
56195
56201
|
setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
|
|
@@ -56311,7 +56317,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
|
|
|
56311
56317
|
if (__privateGet(this, _Component2)) {
|
|
56312
56318
|
Devtools = __privateGet(this, _Component2);
|
|
56313
56319
|
} else {
|
|
56314
|
-
Devtools = lazy(() => import("./HUY7CZI3-
|
|
56320
|
+
Devtools = lazy(() => import("./HUY7CZI3-BK_rqYHa.js"));
|
|
56315
56321
|
__privateSet(this, _Component2, Devtools);
|
|
56316
56322
|
}
|
|
56317
56323
|
setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
|
|
@@ -56532,7 +56538,7 @@ const useAnalytics = ({
|
|
|
56532
56538
|
componentName,
|
|
56533
56539
|
onboardingVersion
|
|
56534
56540
|
}) => {
|
|
56535
|
-
const sdkVersion = "3.57.
|
|
56541
|
+
const sdkVersion = "3.57.2";
|
|
56536
56542
|
const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
|
|
56537
56543
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
56538
56544
|
const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
|
|
@@ -57023,7 +57029,7 @@ const ConfigurationApiProvider = ({
|
|
|
57023
57029
|
[authContext, rootLegalEntityId]
|
|
57024
57030
|
);
|
|
57025
57031
|
return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
|
|
57026
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.57.
|
|
57032
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.57.2" }),
|
|
57027
57033
|
children2
|
|
57028
57034
|
] });
|
|
57029
57035
|
};
|
|
@@ -57598,10 +57604,10 @@ const transformModule = (highlights, codeNode, scope) => {
|
|
|
57598
57604
|
};
|
|
57599
57605
|
const supportedModules = ["plaintext", "json", "yaml", "css"];
|
|
57600
57606
|
const moduleMap = {
|
|
57601
|
-
plaintext: () => import("./plaintext-
|
|
57602
|
-
json: () => import("./json-
|
|
57603
|
-
yaml: () => import("./yaml-
|
|
57604
|
-
css: () => import("./css-
|
|
57607
|
+
plaintext: () => import("./plaintext-BFkPKRSv.js"),
|
|
57608
|
+
json: () => import("./json-BOvlLUxr.js"),
|
|
57609
|
+
yaml: () => import("./yaml-BvMTQEly.js"),
|
|
57610
|
+
css: () => import("./css-Bnf6yr_R.js")
|
|
57605
57611
|
};
|
|
57606
57612
|
const getModule = async (name) => {
|
|
57607
57613
|
if (!supportedModules.includes(name)) {
|
|
@@ -57892,7 +57898,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
57892
57898
|
const [tab, setTab] = useState("metadata");
|
|
57893
57899
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
57894
57900
|
const metadata = {
|
|
57895
|
-
sdkVersion: "3.57.
|
|
57901
|
+
sdkVersion: "3.57.2",
|
|
57896
57902
|
locale: i18n.locale,
|
|
57897
57903
|
rootLegalEntityId: rootLegalEntity.id
|
|
57898
57904
|
};
|