@adyen/kyc-components 3.48.0 → 3.48.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/es/{B4MFY5CR-DG8bMOxS.js → B4MFY5CR-Fd17DCoR.js} +1 -1
- package/dist/es/{HO4MOOFI-DqV4dJj3.js → HO4MOOFI-lWUM6L_G.js} +2 -2
- package/dist/es/{HUY7CZI3-Czph4m1h.js → HUY7CZI3-DbgH_0BN.js} +2 -2
- package/dist/es/adyen-kyc-components.es.js +1 -1
- package/dist/es/{index-B2HoAVMQ.js → index-C0Dn2sJJ.js} +9 -15
- 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 { b as createContext, d as createSignal, o as onMount, e as createEffect, c as createMemo, a as createComponent, P as Portal, S as Show, t as template, i as insert, f as createRenderEffect, h as className, j as clearDelegatedEvents, k as delegateEvents, u as useContext, l as onCleanup, s as sortFns, m as mutationSortFns, n as on, p as setAttribute, q as getSidedProp, r as use, v as createUniqueId, w as batch, x as getQueryStatusLabel, y as getMutationStatusColor, z as getQueryStatusColor, A as getQueryStatusColorByLabel, B as displayValue, F as For, C as convertRemToPixels, D as untrack, $ as $TRACK, E as useTransition, G as spread, H as mergeProps, I as createRoot, J as serialize, K as Index, L as updateNestedDataByPath, M as addEventListener, N as stringify, O as Match, Q as Switch, R as deleteNestedDataByPath, T as splitProps, U as Dynamic, V as createComputed } from "./index-
|
|
4
|
+
import { b as createContext, d as createSignal, o as onMount, e as createEffect, c as createMemo, a as createComponent, P as Portal, S as Show, t as template, i as insert, f as createRenderEffect, h as className, j as clearDelegatedEvents, k as delegateEvents, u as useContext, l as onCleanup, s as sortFns, m as mutationSortFns, n as on, p as setAttribute, q as getSidedProp, r as use, v as createUniqueId, w as batch, x as getQueryStatusLabel, y as getMutationStatusColor, z as getQueryStatusColor, A as getQueryStatusColorByLabel, B as displayValue, F as For, C as convertRemToPixels, D as untrack, $ as $TRACK, E as useTransition, G as spread, H as mergeProps, I as createRoot, J as serialize, K as Index, L as updateNestedDataByPath, M as addEventListener, N as stringify, O as Match, Q as Switch, R as deleteNestedDataByPath, T as splitProps, U as Dynamic, V as createComputed } from "./index-C0Dn2sJJ.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 { g as getPreferredColorScheme, c as createMemo, a 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-Fd17DCoR.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-C0Dn2sJJ.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 { g as getPreferredColorScheme, c as createMemo, a 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-Fd17DCoR.js";
|
|
2
|
+
import { g as getPreferredColorScheme, c as createMemo, a as createComponent } from "./index-C0Dn2sJJ.js";
|
|
3
3
|
var DevtoolsPanelComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -9069,12 +9069,6 @@ function DBANameField({
|
|
|
9069
9069
|
requiredFields
|
|
9070
9070
|
}) {
|
|
9071
9071
|
const { i18n } = useI18nContext();
|
|
9072
|
-
const handleDbaChange = (selectedValue) => {
|
|
9073
|
-
if (selectedValue === "no") {
|
|
9074
|
-
handleChangeFor("doingBusinessAs")("");
|
|
9075
|
-
}
|
|
9076
|
-
handleChangeFor("doingBusinessAsAbsent")(selectedValue);
|
|
9077
|
-
};
|
|
9078
9072
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9079
9073
|
(requiredFields == null ? void 0 : requiredFields.includes("doingBusinessAsAbsent")) && /* @__PURE__ */ jsx(
|
|
9080
9074
|
Field,
|
|
@@ -9094,7 +9088,7 @@ function DBANameField({
|
|
|
9094
9088
|
{ id: "no", name: "no" }
|
|
9095
9089
|
],
|
|
9096
9090
|
value: data.doingBusinessAsAbsent,
|
|
9097
|
-
onChange:
|
|
9091
|
+
onChange: handleChangeFor("doingBusinessAsAbsent"),
|
|
9098
9092
|
horizontal: true
|
|
9099
9093
|
}
|
|
9100
9094
|
)
|
|
@@ -11104,7 +11098,7 @@ function CompanyRegistrationDetails(props) {
|
|
|
11104
11098
|
if (currentData.sameNameAsLegalName) {
|
|
11105
11099
|
fieldsToRemove.push("tradingName");
|
|
11106
11100
|
}
|
|
11107
|
-
if (currentData.doingBusinessAsAbsent
|
|
11101
|
+
if (currentData.doingBusinessAsAbsent !== "yes") {
|
|
11108
11102
|
fieldsToRemove.push("doingBusinessAs");
|
|
11109
11103
|
}
|
|
11110
11104
|
if (currentData.exemptedFromVat) {
|
|
@@ -28770,7 +28764,7 @@ function TrustRegistrationDetails(props) {
|
|
|
28770
28764
|
const getFormSchema2 = useCallback(
|
|
28771
28765
|
(currentData) => {
|
|
28772
28766
|
const fieldsToRemove = [];
|
|
28773
|
-
if (currentData.doingBusinessAsAbsent
|
|
28767
|
+
if (currentData.doingBusinessAsAbsent !== "yes") {
|
|
28774
28768
|
fieldsToRemove.push("doingBusinessAs");
|
|
28775
28769
|
}
|
|
28776
28770
|
return requiredFields.filter((field) => !fieldsToRemove.includes(field));
|
|
@@ -30680,7 +30674,7 @@ function AdditionalInformation({
|
|
|
30680
30674
|
} else {
|
|
30681
30675
|
fieldsToRemove.push("exemptedFromRegistrationNumber");
|
|
30682
30676
|
}
|
|
30683
|
-
if (currentData.doingBusinessAsAbsent
|
|
30677
|
+
if (currentData.doingBusinessAsAbsent !== "yes") {
|
|
30684
30678
|
fieldsToRemove.push("doingBusinessAs");
|
|
30685
30679
|
}
|
|
30686
30680
|
return ((_a3 = initialFormUtilsProps.requiredFields) == null ? void 0 : _a3.filter(
|
|
@@ -33445,7 +33439,7 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, isExperimentEnabled) => {
|
|
|
33445
33439
|
(_a2 = requestObj.organization) == null ? true : delete _a2.legalFormDescription;
|
|
33446
33440
|
const taxData = ((_b2 = data.basicInformation) == null ? void 0 : _b2.taxInformation) || ((_c2 = data.additionalInformation) == null ? void 0 : _c2.taxInformation);
|
|
33447
33441
|
const registrationNumber = ((_d2 = data.basicInformation) == null ? void 0 : _d2.registrationNumber) || ((_e2 = data.additionalInformation) == null ? void 0 : _e2.registrationNumber);
|
|
33448
|
-
const doingBusinessAs = (_f2 = data.additionalInformation) == null ? void 0 : _f2.doingBusinessAs;
|
|
33442
|
+
const doingBusinessAs = ((_f2 = data.additionalInformation) == null ? void 0 : _f2.doingBusinessAs) ?? "";
|
|
33449
33443
|
if (requestObj.organization) {
|
|
33450
33444
|
if (taxData) {
|
|
33451
33445
|
requestObj.organization.taxInformation = COUNTRIES_USING_COMPANY_SEARCH.includes(
|
|
@@ -49738,7 +49732,7 @@ const ConfigurationApiProvider = ({
|
|
|
49738
49732
|
}) => {
|
|
49739
49733
|
const authContext = useAuthContext();
|
|
49740
49734
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
49741
|
-
const sdkVersion = "3.48.
|
|
49735
|
+
const sdkVersion = "3.48.1";
|
|
49742
49736
|
const rootLegalEntityId = useGlobalStore((store) => store.rootLegalEntity.id);
|
|
49743
49737
|
useAnalytics({
|
|
49744
49738
|
onUserEvent,
|
|
@@ -50623,7 +50617,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
50623
50617
|
const [tab, setTab] = useState("metadata");
|
|
50624
50618
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
50625
50619
|
const metadata = {
|
|
50626
|
-
sdkVersion: "3.48.
|
|
50620
|
+
sdkVersion: "3.48.1",
|
|
50627
50621
|
locale: i18n.locale,
|
|
50628
50622
|
rootLegalEntityId: rootLegalEntity.id
|
|
50629
50623
|
};
|
|
@@ -53614,7 +53608,7 @@ var TanstackQueryDevtools = (_k = class {
|
|
|
53614
53608
|
if (__privateGet(this, _Component)) {
|
|
53615
53609
|
Devtools = __privateGet(this, _Component);
|
|
53616
53610
|
} else {
|
|
53617
|
-
Devtools = lazy(() => import("./HO4MOOFI-
|
|
53611
|
+
Devtools = lazy(() => import("./HO4MOOFI-lWUM6L_G.js"));
|
|
53618
53612
|
__privateSet(this, _Component, Devtools);
|
|
53619
53613
|
}
|
|
53620
53614
|
setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
|
|
@@ -53736,7 +53730,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
|
|
|
53736
53730
|
if (__privateGet(this, _Component2)) {
|
|
53737
53731
|
Devtools = __privateGet(this, _Component2);
|
|
53738
53732
|
} else {
|
|
53739
|
-
Devtools = lazy(() => import("./HUY7CZI3-
|
|
53733
|
+
Devtools = lazy(() => import("./HUY7CZI3-DbgH_0BN.js"));
|
|
53740
53734
|
__privateSet(this, _Component2, Devtools);
|
|
53741
53735
|
}
|
|
53742
53736
|
setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
|