@adyen/kyc-components 3.37.0 → 3.37.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.
|
@@ -18361,6 +18361,7 @@ function PersonalDetailsComponent(props) {
|
|
|
18361
18361
|
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
18362
18362
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
18363
18363
|
const isAgeVerificationEnabled = isExperimentEnabled("EnableAgeVerification");
|
|
18364
|
+
const isLegalAgeEnforced = isSettingEnabled(SettingNames.EnforceLegalAge);
|
|
18364
18365
|
const {
|
|
18365
18366
|
id: PERSONAL_DETAILS,
|
|
18366
18367
|
trustedRoles,
|
|
@@ -18476,7 +18477,7 @@ function PersonalDetailsComponent(props) {
|
|
|
18476
18477
|
data,
|
|
18477
18478
|
taskType: props.taskType
|
|
18478
18479
|
});
|
|
18479
|
-
if (translatableWarningMessage) {
|
|
18480
|
+
if (!isLegalAgeEnforced && translatableWarningMessage) {
|
|
18480
18481
|
return {
|
|
18481
18482
|
title: i18n.get(translatableWarningMessage.title),
|
|
18482
18483
|
variant: "warning",
|
|
@@ -39329,7 +39330,7 @@ const entityHasUltimateParentCompany = (data) => {
|
|
|
39329
39330
|
return ((_a = data.company) == null ? void 0 : _a.isParentOwnedByAnotherCompany) && ((_b = data.company) == null ? void 0 : _b.isParentOwnedByAnotherCompany) === "Yes";
|
|
39330
39331
|
};
|
|
39331
39332
|
const prepareExposureSubmitData = (exposureIndex, data, rootLegalEntity) => {
|
|
39332
|
-
var _a;
|
|
39333
|
+
var _a, _b, _c;
|
|
39333
39334
|
const exposureData = data[exposureIndex];
|
|
39334
39335
|
if (!exposureData) return null;
|
|
39335
39336
|
if (exposureIndex === HighExposureIndex.PARENT_COMPANY && !entityHasParentCompany(data)) {
|
|
@@ -39340,7 +39341,7 @@ const prepareExposureSubmitData = (exposureIndex, data, rootLegalEntity) => {
|
|
|
39340
39341
|
}
|
|
39341
39342
|
const exposureDetails = mapHighExposureToLegalEntity(exposureData);
|
|
39342
39343
|
if (!exposureDetails.organization) return null;
|
|
39343
|
-
const exposureCountry = (_a = exposureDetails.organization.registeredAddress) == null ? void 0 : _a.country;
|
|
39344
|
+
const exposureCountry = ((_a = exposureDetails.organization.registeredAddress) == null ? void 0 : _a.country) || ((_c = (_b = rootLegalEntity == null ? void 0 : rootLegalEntity.organization) == null ? void 0 : _b.registeredAddress) == null ? void 0 : _c.country);
|
|
39344
39345
|
if (exposureDetails.organization.financialReports && isEeaCountry(exposureCountry)) {
|
|
39345
39346
|
const exposureFinancialReports = {
|
|
39346
39347
|
employeeCount: exposureData.numberOfEmployees,
|
|
@@ -41902,7 +41903,7 @@ const ConfigurationApiProvider = ({
|
|
|
41902
41903
|
}) => {
|
|
41903
41904
|
const authContext = useAuthContext();
|
|
41904
41905
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
41905
|
-
const sdkVersion = "3.37.
|
|
41906
|
+
const sdkVersion = "3.37.1";
|
|
41906
41907
|
useAnalytics({
|
|
41907
41908
|
onUserEvent,
|
|
41908
41909
|
legalEntityId: rootLegalEntityId,
|
|
@@ -42573,7 +42574,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
42573
42574
|
};
|
|
42574
42575
|
const copyToClipboard = async () => {
|
|
42575
42576
|
const toCopy = {
|
|
42576
|
-
sdkVersion: "3.37.
|
|
42577
|
+
sdkVersion: "3.37.1",
|
|
42577
42578
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
42578
42579
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
42579
42580
|
};
|
|
@@ -42638,7 +42639,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
42638
42639
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
|
|
42639
42640
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
42640
42641
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "SDK version" }),
|
|
42641
|
-
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "3.37.
|
|
42642
|
+
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "3.37.1" })
|
|
42642
42643
|
] }) }),
|
|
42643
42644
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
42644
42645
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
|