@adyen/kyc-components 2.71.0 → 2.71.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.
|
@@ -2,7 +2,7 @@
|
|
|
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] = "40d1dc95-b7c5-46d5-9879-893580b78671", e._sentryDebugIdIdentifier = "sentry-dbid-40d1dc95-b7c5-46d5-9879-893580b78671");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
const BG = {
|
|
11
11
|
iban: {
|
|
12
12
|
bankStatementRequirement: "REQUIRED",
|
|
13
|
-
defaultCurrency: "
|
|
13
|
+
defaultCurrency: "EUR",
|
|
14
14
|
fields: [
|
|
15
15
|
"accountHolder",
|
|
16
16
|
"accountHolderCity",
|
|
@@ -2,7 +2,7 @@
|
|
|
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] = "62a0be1c-dd98-42b9-8d68-1cd430b89d1e", e._sentryDebugIdIdentifier = "sentry-dbid-62a0be1c-dd98-42b9-8d68-1cd430b89d1e");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -11509,7 +11509,6 @@ const DocumentUpload = memo(
|
|
|
11509
11509
|
var Currencies = /* @__PURE__ */ ((Currencies2) => {
|
|
11510
11510
|
Currencies2["AED"] = "AED";
|
|
11511
11511
|
Currencies2["AUD"] = "AUD";
|
|
11512
|
-
Currencies2["BGN"] = "BGN";
|
|
11513
11512
|
Currencies2["BRL"] = "BRL";
|
|
11514
11513
|
Currencies2["CAD"] = "CAD";
|
|
11515
11514
|
Currencies2["CHF"] = "CHF";
|
|
@@ -11536,7 +11535,7 @@ const currencyByCountry = {
|
|
|
11536
11535
|
[CountryCodes.Austria]: [Currencies.EUR],
|
|
11537
11536
|
[CountryCodes.Belgium]: [Currencies.EUR],
|
|
11538
11537
|
[CountryCodes.Brazil]: [Currencies.BRL],
|
|
11539
|
-
[CountryCodes.Bulgaria]: [Currencies.
|
|
11538
|
+
[CountryCodes.Bulgaria]: [Currencies.EUR],
|
|
11540
11539
|
[CountryCodes.Canada]: [Currencies.CAD, Currencies.USD],
|
|
11541
11540
|
[CountryCodes.Croatia]: [Currencies.HRK, Currencies.EUR],
|
|
11542
11541
|
[CountryCodes.Cyprus]: [Currencies.EUR],
|
|
@@ -18291,7 +18290,7 @@ function PersonalDetailsComponent(props) {
|
|
|
18291
18290
|
const isDecisionMakerTask = props.taskType === TaskTypes.DECISION_MAKER || props.taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER;
|
|
18292
18291
|
const isTopLevelEntity = props.taskType === TaskTypes.INDIVIDUAL;
|
|
18293
18292
|
const isLegalRepresentativeDetailsTask = props.taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
|
|
18294
|
-
const countryRequiringNationality = ((
|
|
18293
|
+
const countryRequiringNationality = ((_b = props.data) == null ? void 0 : _b.residencyCountry) || ((_d = (_c = props.parentLegalEntity) == null ? void 0 : _c.organization) == null ? void 0 : _d.registeredAddress.country);
|
|
18295
18294
|
const requiredFieldsByTask = (props.requiredFields || personalDetailsFields).filter(
|
|
18296
18295
|
(field) => !canChangeEntityType && (field !== "role" || field === "role" && isDecisionMakerTask) || canChangeEntityType && (field !== "role" || field === "role" && isDecisionMakerTask) || field === "relationship" && isLegalRepresentativeDetailsTask
|
|
18297
18296
|
);
|
|
@@ -20383,7 +20382,6 @@ function BankVerification(props) {
|
|
|
20383
20382
|
}
|
|
20384
20383
|
const BankVerification$1 = memo(BankVerification);
|
|
20385
20384
|
const countriesWithMultipleCurrencies = /* @__PURE__ */ new Set([
|
|
20386
|
-
CountryCodes.Bulgaria,
|
|
20387
20385
|
CountryCodes.Canada,
|
|
20388
20386
|
CountryCodes.Croatia,
|
|
20389
20387
|
CountryCodes.CzechRepublic,
|
|
@@ -33140,7 +33138,7 @@ const useBankConfigurationHandlers = ({
|
|
|
33140
33138
|
provider
|
|
33141
33139
|
};
|
|
33142
33140
|
};
|
|
33143
|
-
const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-CyP5INSp.js"), "./AE.json": () => import("./AE-mIZ12t47.js"), "./AI.json": () => import("./AI-CYOqGKk2.js"), "./AL.json": () => import("./AL-BX1fEo1A.js"), "./AR.json": () => import("./AR-C9kMRnHG.js"), "./AS.json": () => import("./AS-B0TMZQ6o.js"), "./AT.json": () => import("./AT-DJLlevck.js"), "./AU.json": () => import("./AU-B5LSe4bo.js"), "./AX.json": () => import("./AX-Z6f6EnJc.js"), "./AZ.json": () => import("./AZ-BqrKjWMH.js"), "./BA.json": () => import("./BA-BbP72Tn6.js"), "./BE.json": () => import("./BE-B-m_4F41.js"), "./BG.json": () => import("./BG-
|
|
33141
|
+
const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-CyP5INSp.js"), "./AE.json": () => import("./AE-mIZ12t47.js"), "./AI.json": () => import("./AI-CYOqGKk2.js"), "./AL.json": () => import("./AL-BX1fEo1A.js"), "./AR.json": () => import("./AR-C9kMRnHG.js"), "./AS.json": () => import("./AS-B0TMZQ6o.js"), "./AT.json": () => import("./AT-DJLlevck.js"), "./AU.json": () => import("./AU-B5LSe4bo.js"), "./AX.json": () => import("./AX-Z6f6EnJc.js"), "./AZ.json": () => import("./AZ-BqrKjWMH.js"), "./BA.json": () => import("./BA-BbP72Tn6.js"), "./BE.json": () => import("./BE-B-m_4F41.js"), "./BG.json": () => import("./BG-9eEmxtKB.js"), "./BH.json": () => import("./BH-Ded1Eyrc.js"), "./BM.json": () => import("./BM-CBl-UQUl.js"), "./BR.json": () => import("./BR-DsY9PZVZ.js"), "./BS.json": () => import("./BS-dBfArxRw.js"), "./BV.json": () => import("./BV-D0QBsH7-.js"), "./BY.json": () => import("./BY-BsQUo3fM.js"), "./CA.json": () => import("./CA-DT4cmOOe.js"), "./CH.json": () => import("./CH-CesIKOYy.js"), "./CN.json": () => import("./CN-BV-5PSpq.js"), "./CR.json": () => import("./CR-Dtv-rXg9.js"), "./CY.json": () => import("./CY-BnJ7k_mN.js"), "./CZ.json": () => import("./CZ-BhoS6sd6.js"), "./DE.json": () => import("./DE-DdcbG-CC.js"), "./DK.json": () => import("./DK-DA8qRrzq.js"), "./DO.json": () => import("./DO-B1BWc3Iy.js"), "./EC.json": () => import("./EC-DbNXe71-.js"), "./EE.json": () => import("./EE-CaXoPgZz.js"), "./ES.json": () => import("./ES-Bt_oaIaf.js"), "./FI.json": () => import("./FI-C5V3lLuN.js"), "./FJ.json": () => import("./FJ-CBdbPf5l.js"), "./FO.json": () => import("./FO-1pD1p939.js"), "./FR.json": () => import("./FR-Bc1tLIC4.js"), "./GB.json": () => import("./GB-CgPHb-dM.js"), "./GE.json": () => import("./GE-Deog1a3Z.js"), "./GF.json": () => import("./GF-Cda8N7A4.js"), "./GG.json": () => import("./GG-BGuqxplU.js"), "./GI.json": () => import("./GI-CROkpYrU.js"), "./GL.json": () => import("./GL-0vO9Of9c.js"), "./GP.json": () => import("./GP-za-3opp-.js"), "./GR.json": () => import("./GR-B9c2boG8.js"), "./GT.json": () => import("./GT-C1jhs-Dx.js"), "./GU.json": () => import("./GU-CALV5vh1.js"), "./HK.json": () => import("./HK-BB3PIq-Z.js"), "./HR.json": () => import("./HR-p4luVYpu.js"), "./HU.json": () => import("./HU-v3vOxRm8.js"), "./ID.json": () => import("./ID-BcOv4SXj.js"), "./IE.json": () => import("./IE-Cli_j7Al.js"), "./IL.json": () => import("./IL-CQ0yHRRe.js"), "./IM.json": () => import("./IM-mpIyBn16.js"), "./IN.json": () => import("./IN-BhEI9o7G.js"), "./IS.json": () => import("./IS-02zCAdvq.js"), "./IT.json": () => import("./IT-CzURFhrK.js"), "./JE.json": () => import("./JE-MFwIYti7.js"), "./JM.json": () => import("./JM-BMGgBK6y.js"), "./JO.json": () => import("./JO-rY8A8f9C.js"), "./JP.json": () => import("./JP-BQG5dF1Y.js"), "./KR.json": () => import("./KR-74SwXHka.js"), "./KW.json": () => import("./KW-CcVPOJ8B.js"), "./KY.json": () => import("./KY-DXCeltYA.js"), "./KZ.json": () => import("./KZ-CZNjdp22.js"), "./LB.json": () => import("./LB-DZ5YfAsO.js"), "./LI.json": () => import("./LI-DA06W10W.js"), "./LT.json": () => import("./LT-DuU6E2Ct.js"), "./LU.json": () => import("./LU-BQHhNpDy.js"), "./LV.json": () => import("./LV-DN7wckbP.js"), "./MC.json": () => import("./MC-DtSWC4jS.js"), "./MD.json": () => import("./MD-DVc0183a.js"), "./ME.json": () => import("./ME-DiJhSuli.js"), "./MK.json": () => import("./MK-BZxslBTS.js"), "./MP.json": () => import("./MP-7IpnbfCj.js"), "./MQ.json": () => import("./MQ-DusG_no1.js"), "./MR.json": () => import("./MR-DaBVNHqN.js"), "./MT.json": () => import("./MT-DeDMQ1f_.js"), "./MU.json": () => import("./MU-D3gGVu1R.js"), "./MX.json": () => import("./MX-CZVOFg3D.js"), "./MY.json": () => import("./MY-ym71svTa.js"), "./NC.json": () => import("./NC-xzMvjp9-.js"), "./NL.json": () => import("./NL-aVL0NAp-.js"), "./NO.json": () => import("./NO-DlYk5HZt.js"), "./NZ.json": () => import("./NZ-DbPw3QYJ.js"), "./PE.json": () => import("./PE-CdxgPh3v.js"), "./PF.json": () => import("./PF-CstaOd9Z.js"), "./PH.json": () => import("./PH-BYgMDYIH.js"), "./PK.json": () => import("./PK-bLhtgsEk.js"), "./PL.json": () => import("./PL-Bg7axKQA.js"), "./PM.json": () => import("./PM-BWbxAh4u.js"), "./PR.json": () => import("./PR-CFPKXEXp.js"), "./PS.json": () => import("./PS-B8obOOWY.js"), "./PT.json": () => import("./PT-hB1HnBM2.js"), "./QA.json": () => import("./QA-CSfx-mvb.js"), "./RE.json": () => import("./RE-BApq1FJ6.js"), "./RO.json": () => import("./RO-BLlC4CKq.js"), "./RS.json": () => import("./RS-BCenke-W.js"), "./RU.json": () => import("./RU-D27RC7dq.js"), "./SA.json": () => import("./SA-C9VgxCgm.js"), "./SE.json": () => import("./SE-q25Qt85B.js"), "./SG.json": () => import("./SG-DoCqjlFi.js"), "./SI.json": () => import("./SI-BzA-ozn6.js"), "./SJ.json": () => import("./SJ-Z9jwQQlz.js"), "./SK.json": () => import("./SK-DOTdLJPw.js"), "./SM.json": () => import("./SM-B4BIgmhk.js"), "./TF.json": () => import("./TF-BOWng-Dz.js"), "./TH.json": () => import("./TH-CvyXLcZK.js"), "./TL.json": () => import("./TL-BWslydRz.js"), "./TN.json": () => import("./TN-Cjd3bM_V.js"), "./TR.json": () => import("./TR-BBx5CuWS.js"), "./TT.json": () => import("./TT-D4-z5BA-.js"), "./TW.json": () => import("./TW-BC8YpnMr.js"), "./UA.json": () => import("./UA-DrXUnAe6.js"), "./US.json": () => import("./US-D8dI5_i1.js"), "./UY.json": () => import("./UY-DEHqLXhX.js"), "./VA.json": () => import("./VA-bPXdCnwD.js"), "./VG.json": () => import("./VG-DnKAVCsi.js"), "./VI.json": () => import("./VI-CU9MA9ux.js"), "./VN.json": () => import("./VN-CTSqsmB6.js"), "./WF.json": () => import("./WF-CwHbsjtJ.js"), "./YT.json": () => import("./YT-BCyAAbo7.js"), "./ZA.json": () => import("./ZA-NU7slima.js") });
|
|
33144
33142
|
const getAccountFormatsForCountry = async (country) => {
|
|
33145
33143
|
const importForCountry = accountFormatsImports[`./${country}.json`];
|
|
33146
33144
|
if (!importForCountry) {
|
|
@@ -39315,7 +39313,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
|
|
|
39315
39313
|
};
|
|
39316
39314
|
};
|
|
39317
39315
|
const useAnalytics = ({ onUserEvent, legalEntityId, componentName }) => {
|
|
39318
|
-
const sdkVersion = "2.71.
|
|
39316
|
+
const sdkVersion = "2.71.2";
|
|
39319
39317
|
const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
|
|
39320
39318
|
const loadingContext = `${base}api/${COMPONENTS_API_VERSION}/`;
|
|
39321
39319
|
useEffect(() => {
|
|
@@ -39657,7 +39655,7 @@ const ConfigurationApiProvider = ({
|
|
|
39657
39655
|
[authContext, rootLegalEntityId]
|
|
39658
39656
|
);
|
|
39659
39657
|
return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
|
|
39660
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "2.71.
|
|
39658
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "2.71.2" }),
|
|
39661
39659
|
children
|
|
39662
39660
|
] });
|
|
39663
39661
|
};
|
|
@@ -40273,7 +40271,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40273
40271
|
};
|
|
40274
40272
|
const copyToClipboard = async () => {
|
|
40275
40273
|
const toCopy = {
|
|
40276
|
-
sdkVersion: "2.71.
|
|
40274
|
+
sdkVersion: "2.71.2",
|
|
40277
40275
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
40278
40276
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
40279
40277
|
};
|
|
@@ -40338,7 +40336,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40338
40336
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
|
|
40339
40337
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40340
40338
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "SDK version" }),
|
|
40341
|
-
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.71.
|
|
40339
|
+
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.71.2" })
|
|
40342
40340
|
] }) }),
|
|
40343
40341
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40344
40342
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
|
|
@@ -40483,7 +40481,7 @@ class UIElement extends BaseElement {
|
|
|
40483
40481
|
userEvents.updateBaseTrackingPayload({
|
|
40484
40482
|
...baseTracking,
|
|
40485
40483
|
componentName: this.props.componentName,
|
|
40486
|
-
sdkVersion: "2.71.
|
|
40484
|
+
sdkVersion: "2.71.2",
|
|
40487
40485
|
userAgent: navigator.userAgent
|
|
40488
40486
|
});
|
|
40489
40487
|
return /* @__PURE__ */ jsx(SettingsProvider, { settings: this.props.settings, children: /* @__PURE__ */ jsx(
|