@adyen/kyc-components 2.63.1 → 2.65.0
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/adyen-kyc-components.es.js +88 -144
- package/dist/style.css +236 -112
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +2 -2
- package/dist/types/core/analytics.d.ts +3 -1
- package/dist/types/core/models/api/analytics.d.ts +0 -1
- package/dist/types/core/user-events.d.ts +1 -1
- package/package.json +5 -4
- package/dist/types/components/AutoResizer.d.ts +0 -56
|
@@ -11896,6 +11896,7 @@ function FinancialInformation(props) {
|
|
|
11896
11896
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
11897
11897
|
RadioGroup,
|
|
11898
11898
|
{
|
|
11899
|
+
name: "reportedValueOption",
|
|
11899
11900
|
...childProps,
|
|
11900
11901
|
value: data.reportedValueOption,
|
|
11901
11902
|
items: [
|
|
@@ -15970,6 +15971,7 @@ function IdVerificationMethodComponent(props) {
|
|
|
15970
15971
|
RadioCardSelect,
|
|
15971
15972
|
{
|
|
15972
15973
|
...childProps,
|
|
15974
|
+
name: "idVerificationMethod",
|
|
15973
15975
|
options: idVerificationMethods,
|
|
15974
15976
|
onSelect: handleChangeFor("idVerificationMethod"),
|
|
15975
15977
|
selected: data.idVerificationMethod,
|
|
@@ -17569,6 +17571,7 @@ const TypeOfIdentity = ({
|
|
|
17569
17571
|
Select,
|
|
17570
17572
|
{
|
|
17571
17573
|
...childProps,
|
|
17574
|
+
name: "typeOfIdentity",
|
|
17572
17575
|
isInvalid: false,
|
|
17573
17576
|
items: availableIdentityTypesOptions.map(({ id, name }) => ({
|
|
17574
17577
|
id,
|
|
@@ -17622,6 +17625,7 @@ const DriversLicense$1 = ({
|
|
|
17622
17625
|
Select,
|
|
17623
17626
|
{
|
|
17624
17627
|
...childProps,
|
|
17628
|
+
name: "issuerState",
|
|
17625
17629
|
onChange: onIssuerStateChange,
|
|
17626
17630
|
isInvalid: false,
|
|
17627
17631
|
items: auStates,
|
|
@@ -24934,7 +24938,6 @@ const applyVerifiedBusinessData = (verifiedBusiness, handleChangeFor) => {
|
|
|
24934
24938
|
};
|
|
24935
24939
|
const structuredList = "adyen-kyc-structured-list";
|
|
24936
24940
|
const structuredListListItem = "adyen-kyc-structured-list-list-item";
|
|
24937
|
-
const adyenLayoutMd = "adyen-layout-md";
|
|
24938
24941
|
const structuredListLabel = "adyen-kyc-structured-list-label";
|
|
24939
24942
|
const structuredListValue = "adyen-kyc-structured-list-value";
|
|
24940
24943
|
const styles$1 = {
|
|
@@ -24942,8 +24945,6 @@ const styles$1 = {
|
|
|
24942
24945
|
structuredList,
|
|
24943
24946
|
"structured-list-list-item": "adyen-kyc-structured-list-list-item",
|
|
24944
24947
|
structuredListListItem,
|
|
24945
|
-
"adyen-layout-md": "adyen-layout-md",
|
|
24946
|
-
adyenLayoutMd,
|
|
24947
24948
|
"structured-list-label": "adyen-kyc-structured-list-label",
|
|
24948
24949
|
structuredListLabel,
|
|
24949
24950
|
"structured-list-value": "adyen-kyc-structured-list-value",
|
|
@@ -26840,8 +26841,8 @@ function isEmptyEntity(legalEntity) {
|
|
|
26840
26841
|
const typeSpecificSection = legalEntity[type];
|
|
26841
26842
|
if (!typeSpecificSection) return true;
|
|
26842
26843
|
const fieldsOnEntity = getNestedPropertyKeys(typeSpecificSection, false, false);
|
|
26843
|
-
const sortedMinimumFields = minimumFields.
|
|
26844
|
-
const sortedFieldsOnEntity = fieldsOnEntity.
|
|
26844
|
+
const sortedMinimumFields = [...minimumFields].sort();
|
|
26845
|
+
const sortedFieldsOnEntity = [...fieldsOnEntity].sort();
|
|
26845
26846
|
return sortedFieldsOnEntity.every((value, index) => value === sortedMinimumFields[index]);
|
|
26846
26847
|
}
|
|
26847
26848
|
const capabilitiesToPreventTypeChange = [
|
|
@@ -28146,9 +28147,8 @@ async function submitDocuments({
|
|
|
28146
28147
|
await documentUtils.uploadDocuments(formattedDocument, legalEntity.id);
|
|
28147
28148
|
formattedDocument.forEach((doc) => {
|
|
28148
28149
|
var _a;
|
|
28149
|
-
userEvents.
|
|
28150
|
+
userEvents.addTaskEvent("Success", {
|
|
28150
28151
|
...additionalTrackingParams,
|
|
28151
|
-
actionLevel: "task",
|
|
28152
28152
|
actionType: "upload",
|
|
28153
28153
|
documentType: doc.type,
|
|
28154
28154
|
fileExtention: ((_a = doc.attachments) == null ? void 0 : _a.map((item) => getFileExtention(item.pageName))) ?? []
|
|
@@ -28157,9 +28157,8 @@ async function submitDocuments({
|
|
|
28157
28157
|
}
|
|
28158
28158
|
} catch (err) {
|
|
28159
28159
|
logger2.error(err);
|
|
28160
|
-
userEvents.
|
|
28160
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
28161
28161
|
...additionalTrackingParams,
|
|
28162
|
-
actionLevel: "task",
|
|
28163
28162
|
actionType: "upload",
|
|
28164
28163
|
returnType: err.errorCode,
|
|
28165
28164
|
returnValue: err.title ?? err.message
|
|
@@ -28187,7 +28186,6 @@ async function submit({
|
|
|
28187
28186
|
setLoadingStatus("loading");
|
|
28188
28187
|
const trackingPayload = {
|
|
28189
28188
|
...additionalTrackingParams,
|
|
28190
|
-
actionLevel: "task",
|
|
28191
28189
|
actionType: "submit",
|
|
28192
28190
|
companyStructure: ((_a = data.companyStructure) == null ? void 0 : _a.entityType) ?? null,
|
|
28193
28191
|
countryOfRegistration: ((_b = data.basicInformation) == null ? void 0 : _b.country) ?? null,
|
|
@@ -28219,7 +28217,7 @@ async function submit({
|
|
|
28219
28217
|
forms
|
|
28220
28218
|
})
|
|
28221
28219
|
]);
|
|
28222
|
-
userEvents.
|
|
28220
|
+
userEvents.addTaskEvent("Success", trackingPayload);
|
|
28223
28221
|
clearToasts();
|
|
28224
28222
|
onExternalSubmit == null ? void 0 : onExternalSubmit(data);
|
|
28225
28223
|
} catch (err) {
|
|
@@ -28241,7 +28239,7 @@ async function submit({
|
|
|
28241
28239
|
showToast({ label: i18n.get("failedToUpdateDetails"), type: "error" });
|
|
28242
28240
|
}
|
|
28243
28241
|
logger2.error(err);
|
|
28244
|
-
userEvents.
|
|
28242
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
28245
28243
|
...trackingPayload,
|
|
28246
28244
|
returnType: err == null ? void 0 : err.errorCode,
|
|
28247
28245
|
returnValue: (err == null ? void 0 : err.title) || "backend"
|
|
@@ -28292,8 +28290,7 @@ function BusinessDetailsDropinComponent({
|
|
|
28292
28290
|
}, [currentState, onChange]);
|
|
28293
28291
|
useEffect(() => {
|
|
28294
28292
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
28295
|
-
userEvents.
|
|
28296
|
-
actionLevel: "task",
|
|
28293
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
28297
28294
|
actionType: "start",
|
|
28298
28295
|
...associatedLeTrackingParams
|
|
28299
28296
|
});
|
|
@@ -28860,9 +28857,8 @@ function CompanyDropinComponent({
|
|
|
28860
28857
|
}) : {};
|
|
28861
28858
|
useEffect(() => {
|
|
28862
28859
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
28863
|
-
userEvents.
|
|
28860
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
28864
28861
|
...associatedLeTrackingParams,
|
|
28865
|
-
actionLevel: "task",
|
|
28866
28862
|
actionType: "start"
|
|
28867
28863
|
});
|
|
28868
28864
|
}, []);
|
|
@@ -28945,10 +28941,9 @@ function CompanyDropinComponent({
|
|
|
28945
28941
|
if (formattedDocument) {
|
|
28946
28942
|
await documentUtils.uploadDocuments(formattedDocument, legalEntity.id);
|
|
28947
28943
|
formattedDocument.forEach((doc) => {
|
|
28948
|
-
userEvents.
|
|
28944
|
+
userEvents.addTaskEvent("Success", {
|
|
28949
28945
|
...associatedLeTrackingParams,
|
|
28950
|
-
|
|
28951
|
-
actionType: "save",
|
|
28946
|
+
actionType: "upload",
|
|
28952
28947
|
documentType: doc.type,
|
|
28953
28948
|
fileExtention: doc.attachments.map((item) => getFileExtention(item.pageName))
|
|
28954
28949
|
});
|
|
@@ -28983,7 +28978,6 @@ function CompanyDropinComponent({
|
|
|
28983
28978
|
let legalEntity = mapCompanyToLegalEntity(filteredData);
|
|
28984
28979
|
setLoadingStatus("loading");
|
|
28985
28980
|
const companyTrackingPayload = {
|
|
28986
|
-
actionLevel: "task",
|
|
28987
28981
|
actionType: "submit",
|
|
28988
28982
|
companyStructure: dataSubmitted.companyType.entityType,
|
|
28989
28983
|
countryOfRegistration: dataSubmitted.companyNameAndCountry.country,
|
|
@@ -29008,7 +29002,7 @@ function CompanyDropinComponent({
|
|
|
29008
29002
|
);
|
|
29009
29003
|
}
|
|
29010
29004
|
setAccountHolder(accountHolder);
|
|
29011
|
-
userEvents.
|
|
29005
|
+
userEvents.addTaskEvent("Success", {
|
|
29012
29006
|
...associatedLeTrackingParams,
|
|
29013
29007
|
...companyTrackingPayload,
|
|
29014
29008
|
legalEntityId: legalEntity.id,
|
|
@@ -29034,9 +29028,8 @@ function CompanyDropinComponent({
|
|
|
29034
29028
|
showToast({ label: i18n.get("failedToUpdateDetails"), type: "error" });
|
|
29035
29029
|
}
|
|
29036
29030
|
setLoadingStatus("success");
|
|
29037
|
-
userEvents.
|
|
29031
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
29038
29032
|
...associatedLeTrackingParams,
|
|
29039
|
-
actionLevel: "task",
|
|
29040
29033
|
actionType: "submit",
|
|
29041
29034
|
returnType: e.errorCode,
|
|
29042
29035
|
returnValue: e.title
|
|
@@ -30096,8 +30089,7 @@ const BusinessTypeSelection = ({
|
|
|
30096
30089
|
);
|
|
30097
30090
|
}, [data.businessType, data.legalArrangement, currentStep]);
|
|
30098
30091
|
useEffect(() => {
|
|
30099
|
-
userEvents.
|
|
30100
|
-
actionLevel: "task",
|
|
30092
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
30101
30093
|
actionType: "start"
|
|
30102
30094
|
});
|
|
30103
30095
|
}, []);
|
|
@@ -30144,7 +30136,6 @@ const BusinessTypeSelection = ({
|
|
|
30144
30136
|
};
|
|
30145
30137
|
const updateLegalEntityAndSelectAccountHolder = async () => {
|
|
30146
30138
|
const trackingPayload = {
|
|
30147
|
-
actionLevel: "task",
|
|
30148
30139
|
actionType: "submit"
|
|
30149
30140
|
};
|
|
30150
30141
|
try {
|
|
@@ -30154,7 +30145,7 @@ const BusinessTypeSelection = ({
|
|
|
30154
30145
|
type: targetLegalEntityType
|
|
30155
30146
|
};
|
|
30156
30147
|
await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity(updateLegalEntityPayload, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
|
|
30157
|
-
userEvents.
|
|
30148
|
+
userEvents.addTaskEvent("Success", trackingPayload);
|
|
30158
30149
|
}
|
|
30159
30150
|
if (targetLegalEntityType === LegalEntityType.INDIVIDUAL) {
|
|
30160
30151
|
if (hasSolePropInLegalEntity(legalEntityResponse)) {
|
|
@@ -30163,7 +30154,7 @@ const BusinessTypeSelection = ({
|
|
|
30163
30154
|
entityAssociations: []
|
|
30164
30155
|
};
|
|
30165
30156
|
await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity(updateLegalEntityPayload, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
|
|
30166
|
-
userEvents.
|
|
30157
|
+
userEvents.addTaskEvent("Success", trackingPayload);
|
|
30167
30158
|
}
|
|
30168
30159
|
return;
|
|
30169
30160
|
}
|
|
@@ -30181,7 +30172,7 @@ const BusinessTypeSelection = ({
|
|
|
30181
30172
|
},
|
|
30182
30173
|
legalEntityResponse == null ? void 0 : legalEntityResponse.id
|
|
30183
30174
|
));
|
|
30184
|
-
userEvents.
|
|
30175
|
+
userEvents.addTaskEvent("Success", trackingPayload);
|
|
30185
30176
|
}
|
|
30186
30177
|
} catch (e) {
|
|
30187
30178
|
showToast({ label: i18n.get("failedToUpdateDetails"), type: "error" });
|
|
@@ -30800,16 +30791,14 @@ const DecisionMakersComponent = ({
|
|
|
30800
30791
|
const uniqueDecisionMakers = mappedDecisionMakers ? Object.values(mappedDecisionMakers) : [];
|
|
30801
30792
|
const showWarning = Boolean(remediationMessages.DECISION_MAKER && uniqueDecisionMakers.length);
|
|
30802
30793
|
useEffect(() => {
|
|
30803
|
-
userEvents.
|
|
30804
|
-
actionLevel: "task",
|
|
30794
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
30805
30795
|
actionType: "start"
|
|
30806
30796
|
});
|
|
30807
30797
|
}, []);
|
|
30808
30798
|
useEffect(() => {
|
|
30809
30799
|
if (showWarning) {
|
|
30810
|
-
userEvents.
|
|
30800
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
30811
30801
|
task: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
30812
|
-
actionLevel: "task",
|
|
30813
30802
|
actionType: "alert",
|
|
30814
30803
|
label: remediationMessages.DECISION_MAKER
|
|
30815
30804
|
});
|
|
@@ -30833,9 +30822,8 @@ const DecisionMakersComponent = ({
|
|
|
30833
30822
|
};
|
|
30834
30823
|
const editDecisionMaker = (decisionMaker) => {
|
|
30835
30824
|
onNavigateToIndividual(decisionMaker.reference);
|
|
30836
|
-
userEvents.
|
|
30825
|
+
userEvents.addTaskEvent("Clicked button", {
|
|
30837
30826
|
...getDecisionMakerTrackingParams(decisionMaker),
|
|
30838
|
-
actionLevel: "task",
|
|
30839
30827
|
actionType: "edit"
|
|
30840
30828
|
});
|
|
30841
30829
|
};
|
|
@@ -30851,9 +30839,8 @@ const DecisionMakersComponent = ({
|
|
|
30851
30839
|
const remainingDecisionMakers = decisionMakers.filter(
|
|
30852
30840
|
(curr) => curr.legalEntityId !== decisionMaker.reference
|
|
30853
30841
|
);
|
|
30854
|
-
userEvents.
|
|
30842
|
+
userEvents.addTaskEvent("Clicked button", {
|
|
30855
30843
|
...getDecisionMakerTrackingParams(decisionMaker),
|
|
30856
|
-
actionLevel: "task",
|
|
30857
30844
|
actionType: "remove",
|
|
30858
30845
|
remainingDecisionMakers
|
|
30859
30846
|
});
|
|
@@ -30945,9 +30932,8 @@ const DecisionMakersComponent = ({
|
|
|
30945
30932
|
ActionBar,
|
|
30946
30933
|
{
|
|
30947
30934
|
onHome: () => {
|
|
30948
|
-
userEvents.
|
|
30935
|
+
userEvents.addTaskEvent("Clicked button", {
|
|
30949
30936
|
task: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
30950
|
-
actionLevel: "task",
|
|
30951
30937
|
actionType: "back",
|
|
30952
30938
|
label: translationKeys.home,
|
|
30953
30939
|
noOfDecisionMakers: decisionMakers.length
|
|
@@ -31130,8 +31116,7 @@ const Introduction = ({
|
|
|
31130
31116
|
page: (introductionScreens == null ? void 0 : introductionScreens.length) ? introductionScreens[activeIndex] : void 0
|
|
31131
31117
|
};
|
|
31132
31118
|
useEffect(() => {
|
|
31133
|
-
userEvents.
|
|
31134
|
-
actionLevel: "task",
|
|
31119
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
31135
31120
|
actionType: "start"
|
|
31136
31121
|
});
|
|
31137
31122
|
}, []);
|
|
@@ -31202,8 +31187,7 @@ const Introduction = ({
|
|
|
31202
31187
|
{
|
|
31203
31188
|
label: i18n.get(translationKeys.start),
|
|
31204
31189
|
onClick: () => {
|
|
31205
|
-
userEvents.
|
|
31206
|
-
actionLevel: "task",
|
|
31190
|
+
userEvents.addTaskEvent("Success", {
|
|
31207
31191
|
actionType: "submit",
|
|
31208
31192
|
label: translationKeys.start
|
|
31209
31193
|
});
|
|
@@ -31845,18 +31829,16 @@ function TaskListComponent({
|
|
|
31845
31829
|
const companyTaskDescriptionKey = isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
|
|
31846
31830
|
const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
|
|
31847
31831
|
const onEditBusinessSetupClick = () => {
|
|
31848
|
-
userEvents.
|
|
31832
|
+
userEvents.addTaskEvent("Clicked button", {
|
|
31849
31833
|
task: TaskTypes.TASKS_OVERVIEW,
|
|
31850
|
-
actionLevel: "task",
|
|
31851
31834
|
actionType: "edit"
|
|
31852
31835
|
});
|
|
31853
31836
|
onNavigateToTask(TaskTypes.BUSINESS_TYPE_SELECTION);
|
|
31854
31837
|
};
|
|
31855
31838
|
useEffect(() => {
|
|
31856
31839
|
if (showDecisionMakersWarning) {
|
|
31857
|
-
userEvents.
|
|
31840
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
31858
31841
|
task: TaskTypes.TASKS_OVERVIEW,
|
|
31859
|
-
actionLevel: "task",
|
|
31860
31842
|
actionType: "alert",
|
|
31861
31843
|
label: remediationMessages.DECISION_MAKER
|
|
31862
31844
|
});
|
|
@@ -32587,7 +32569,7 @@ function IndividualDropinComponent({
|
|
|
32587
32569
|
trustedFieldsProvider,
|
|
32588
32570
|
trustedRoles
|
|
32589
32571
|
}) {
|
|
32590
|
-
var _a, _b, _c, _d;
|
|
32572
|
+
var _a, _b, _c, _d, _e;
|
|
32591
32573
|
const { accountHolder, setAccountHolder } = useCoreContext();
|
|
32592
32574
|
const { i18n } = useI18nContext();
|
|
32593
32575
|
const { showToast, clearToasts } = useToastContext();
|
|
@@ -32627,9 +32609,8 @@ function IndividualDropinComponent({
|
|
|
32627
32609
|
});
|
|
32628
32610
|
useEffect(() => {
|
|
32629
32611
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
32630
|
-
userEvents.
|
|
32612
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
32631
32613
|
...associatedLeTrackingParams,
|
|
32632
|
-
actionLevel: "task",
|
|
32633
32614
|
actionType: "start"
|
|
32634
32615
|
});
|
|
32635
32616
|
}, []);
|
|
@@ -32692,8 +32673,16 @@ function IndividualDropinComponent({
|
|
|
32692
32673
|
onChange == null ? void 0 : onChange(currentState);
|
|
32693
32674
|
}, [currentState, onChange]);
|
|
32694
32675
|
const forms = useMemo(() => {
|
|
32676
|
+
var _a2;
|
|
32677
|
+
const formsWithUpdatedName = {
|
|
32678
|
+
...individualForms,
|
|
32679
|
+
idDocument: {
|
|
32680
|
+
...individualForms.idDocument,
|
|
32681
|
+
formName: ((_a2 = data.idVerificationMethod) == null ? void 0 : _a2.idVerificationMethod) === "instantVerification" ? "instantVerification" : "idDocument"
|
|
32682
|
+
}
|
|
32683
|
+
};
|
|
32695
32684
|
const requiredForms = getRequiredForms(
|
|
32696
|
-
|
|
32685
|
+
formsWithUpdatedName,
|
|
32697
32686
|
derivedProps == null ? void 0 : derivedProps.requiredFields,
|
|
32698
32687
|
derivedProps == null ? void 0 : derivedProps.optionalFields
|
|
32699
32688
|
).filter(
|
|
@@ -32701,20 +32690,26 @@ function IndividualDropinComponent({
|
|
|
32701
32690
|
(form) => form.formId !== "idVerificationMethod" || Boolean(handleGetIdVerificationToken)
|
|
32702
32691
|
);
|
|
32703
32692
|
return addValidityToForms(requiredForms, formValidity, problems);
|
|
32704
|
-
}, [
|
|
32693
|
+
}, [
|
|
32694
|
+
derivedProps,
|
|
32695
|
+
formValidity,
|
|
32696
|
+
problems,
|
|
32697
|
+
handleGetIdVerificationToken,
|
|
32698
|
+
(_b = data.idVerificationMethod) == null ? void 0 : _b.idVerificationMethod
|
|
32699
|
+
]);
|
|
32705
32700
|
const isRoleTypeTask = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER;
|
|
32706
32701
|
if (isRoleTypeTask && parentLegalEntity) {
|
|
32707
32702
|
roleTypes = getAllowedDecisionMakerRoles(parentLegalEntity, taskType);
|
|
32708
32703
|
}
|
|
32709
32704
|
if (parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) {
|
|
32710
|
-
const associations = (
|
|
32705
|
+
const associations = (_c = parentLegalEntity == null ? void 0 : parentLegalEntity.entityAssociations) == null ? void 0 : _c.filter(
|
|
32711
32706
|
(ea) => ea.legalEntityId === (legalEntityResponse == null ? void 0 : legalEntityResponse.id)
|
|
32712
32707
|
);
|
|
32713
32708
|
if (associations && associations.length > 0) {
|
|
32714
32709
|
if (isRoleTypeTask && parentLegalEntity) {
|
|
32715
|
-
const jobTitle = (
|
|
32710
|
+
const jobTitle = (_d = associations.find(
|
|
32716
32711
|
(association) => Boolean(association.jobTitle)
|
|
32717
|
-
)) == null ? void 0 :
|
|
32712
|
+
)) == null ? void 0 : _d.jobTitle;
|
|
32718
32713
|
dataFromResponse = {
|
|
32719
32714
|
...dataFromResponse,
|
|
32720
32715
|
personalDetails: {
|
|
@@ -32760,9 +32755,8 @@ function IndividualDropinComponent({
|
|
|
32760
32755
|
throw new Error("Provide handler to create legalEntity");
|
|
32761
32756
|
}
|
|
32762
32757
|
updatedLegalEntity = await handleCreateLegalEntity(legalEntity);
|
|
32763
|
-
userEvents.
|
|
32758
|
+
userEvents.addTaskEvent("Success", {
|
|
32764
32759
|
...associatedLeTrackingParams,
|
|
32765
|
-
actionLevel: "task",
|
|
32766
32760
|
actionType: "submit",
|
|
32767
32761
|
legalEntityId: updatedLegalEntity.id,
|
|
32768
32762
|
entityType: updatedLegalEntity.type,
|
|
@@ -32771,9 +32765,8 @@ function IndividualDropinComponent({
|
|
|
32771
32765
|
});
|
|
32772
32766
|
} else {
|
|
32773
32767
|
updatedLegalEntity = await handleUpdateLegalEntity(drop("type").from(legalEntity), leId);
|
|
32774
|
-
userEvents.
|
|
32768
|
+
userEvents.addTaskEvent("Success", {
|
|
32775
32769
|
...associatedLeTrackingParams,
|
|
32776
|
-
actionLevel: "task",
|
|
32777
32770
|
actionType: "submit",
|
|
32778
32771
|
legalEntityId: updatedLegalEntity.id,
|
|
32779
32772
|
entityType: updatedLegalEntity.type,
|
|
@@ -32813,9 +32806,8 @@ function IndividualDropinComponent({
|
|
|
32813
32806
|
);
|
|
32814
32807
|
uploadedDocuments == null ? void 0 : uploadedDocuments.forEach((doc) => {
|
|
32815
32808
|
var _a3;
|
|
32816
|
-
userEvents.
|
|
32809
|
+
userEvents.addTaskEvent("Success", {
|
|
32817
32810
|
...associatedLeTrackingParams,
|
|
32818
|
-
actionLevel: "task",
|
|
32819
32811
|
actionType: "upload",
|
|
32820
32812
|
documentType: doc.type,
|
|
32821
32813
|
fileExtention: ((_a3 = doc == null ? void 0 : doc.attachments) == null ? void 0 : _a3.map((item) => getFileExtention(item.pageName))) ?? null
|
|
@@ -32833,7 +32825,7 @@ function IndividualDropinComponent({
|
|
|
32833
32825
|
parentLE,
|
|
32834
32826
|
dataSubmitted
|
|
32835
32827
|
}) => {
|
|
32836
|
-
var _a2, _b2, _c2, _d2,
|
|
32828
|
+
var _a2, _b2, _c2, _d2, _e2, _f;
|
|
32837
32829
|
const newRoles = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER ? (_a2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _a2.role : taskType === TaskTypes.TRUST_MEMBER_INDIVIDUAL ? trustMember == null ? void 0 : trustMember.roles : null;
|
|
32838
32830
|
const existingEntityAssociations = getOwnEntityAssociations(parentLE);
|
|
32839
32831
|
if (newRoles && (hasRolesChanged(legalEntity, existingEntityAssociations, newRoles) || ((_b2 = dataFromResponse.personalDetails) == null ? void 0 : _b2.jobTitle) !== ((_c2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _c2.jobTitle))) {
|
|
@@ -32854,7 +32846,7 @@ function IndividualDropinComponent({
|
|
|
32854
32846
|
};
|
|
32855
32847
|
await handleUpdateLegalEntity(updatedParentLegalEntity, parentLE.id);
|
|
32856
32848
|
}
|
|
32857
|
-
if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS && (existingEntityAssociations.every((ea) => ea.legalEntityId !== legalEntity.id) || ((_d2 = dataFromResponse == null ? void 0 : dataFromResponse.personalDetails) == null ? void 0 : _d2.relationship) !== ((
|
|
32849
|
+
if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS && (existingEntityAssociations.every((ea) => ea.legalEntityId !== legalEntity.id) || ((_d2 = dataFromResponse == null ? void 0 : dataFromResponse.personalDetails) == null ? void 0 : _d2.relationship) !== ((_e2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _e2.relationship))) {
|
|
32858
32850
|
const newEntityAssociation = {
|
|
32859
32851
|
type: "legalRepresentative",
|
|
32860
32852
|
legalEntityId: legalEntity.id,
|
|
@@ -32922,9 +32914,8 @@ function IndividualDropinComponent({
|
|
|
32922
32914
|
showToast({ label: i18n.get("failedToUpdateDetails"), type: "error" });
|
|
32923
32915
|
}
|
|
32924
32916
|
setLoadingStatus("success");
|
|
32925
|
-
userEvents.
|
|
32917
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
32926
32918
|
...associatedLeTrackingParams,
|
|
32927
|
-
actionLevel: "task",
|
|
32928
32919
|
actionType: "submit",
|
|
32929
32920
|
returnType: e.errorCode,
|
|
32930
32921
|
returnValue: e.title
|
|
@@ -33018,7 +33009,7 @@ function IndividualDropinComponent({
|
|
|
33018
33009
|
};
|
|
33019
33010
|
const summaryOmittedKeys = [
|
|
33020
33011
|
...taskType === TaskTypes.DECISION_MAKER ? ["role"] : [],
|
|
33021
|
-
...((
|
|
33012
|
+
...((_e = data.personalDetails) == null ? void 0 : _e.idNumberExempt) ? ["idNumber"] : []
|
|
33022
33013
|
];
|
|
33023
33014
|
const {
|
|
33024
33015
|
handleNextClick,
|
|
@@ -33314,8 +33305,7 @@ function PayoutDetailsDropinComponent({
|
|
|
33314
33305
|
const existingBankAccountFormat = transferInstrument ? ((_d = existingPayoutDetails == null ? void 0 : existingPayoutDetails.payoutAccountDetails) == null ? void 0 : _d.iban) ? "iban" : "local" : void 0;
|
|
33315
33306
|
useEffect(() => {
|
|
33316
33307
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
33317
|
-
userEvents.
|
|
33318
|
-
actionLevel: "task",
|
|
33308
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
33319
33309
|
actionType: "start"
|
|
33320
33310
|
});
|
|
33321
33311
|
}, []);
|
|
@@ -33442,8 +33432,7 @@ function PayoutDetailsDropinComponent({
|
|
|
33442
33432
|
);
|
|
33443
33433
|
documents2.forEach((document2) => {
|
|
33444
33434
|
var _a2;
|
|
33445
|
-
userEvents.
|
|
33446
|
-
actionLevel: "task",
|
|
33435
|
+
userEvents.addTaskEvent("Success", {
|
|
33447
33436
|
actionType: "upload",
|
|
33448
33437
|
documentType: document2.type,
|
|
33449
33438
|
fileExtention: ((_a2 = document2.attachments) == null ? void 0 : _a2.map((item) => getFileExtention(item.pageName))) ?? null
|
|
@@ -33479,7 +33468,6 @@ function PayoutDetailsDropinComponent({
|
|
|
33479
33468
|
);
|
|
33480
33469
|
}
|
|
33481
33470
|
const baseTracking = {
|
|
33482
|
-
actionLevel: "task",
|
|
33483
33471
|
actionType: "submit",
|
|
33484
33472
|
documentType: DocumentType.BANK_STATEMENT,
|
|
33485
33473
|
bankCountry: (payoutVerificationMethod == null ? void 0 : payoutVerificationMethod.bankCountry) ?? defaultPayoutCountry,
|
|
@@ -33500,7 +33488,7 @@ function PayoutDetailsDropinComponent({
|
|
|
33500
33488
|
transferInstrumentId
|
|
33501
33489
|
);
|
|
33502
33490
|
}
|
|
33503
|
-
userEvents.
|
|
33491
|
+
userEvents.addTaskEvent("Success", baseTracking);
|
|
33504
33492
|
try {
|
|
33505
33493
|
await submitDocuments2({ forms, transferInstrument: transferInstrument2, dataSubmitted });
|
|
33506
33494
|
setLoadingStatus("success");
|
|
@@ -33529,7 +33517,7 @@ function PayoutDetailsDropinComponent({
|
|
|
33529
33517
|
showToast({ label: i18n.get("failedToUpdateDetails"), type: "error" });
|
|
33530
33518
|
}
|
|
33531
33519
|
setLoadingStatus("success");
|
|
33532
|
-
userEvents.
|
|
33520
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
33533
33521
|
...baseTracking,
|
|
33534
33522
|
returnType: (e == null ? void 0 : e.errorCode) || "backend",
|
|
33535
33523
|
returnValue: (e == null ? void 0 : e.title) || (e == null ? void 0 : e.message)
|
|
@@ -33602,8 +33590,7 @@ function PayoutDetailsDropinComponent({
|
|
|
33602
33590
|
if (trustedTransferInstrumentId) {
|
|
33603
33591
|
externalOnSubmit == null ? void 0 : externalOnSubmit({ ...data, id: trustedTransferInstrumentId });
|
|
33604
33592
|
}
|
|
33605
|
-
userEvents.
|
|
33606
|
-
actionLevel: "task",
|
|
33593
|
+
userEvents.addTaskEvent("Success", {
|
|
33607
33594
|
actionType: "submit"
|
|
33608
33595
|
});
|
|
33609
33596
|
navigateBackToTaskList == null ? void 0 : navigateBackToTaskList();
|
|
@@ -33752,7 +33739,6 @@ function PciDropinComponent({
|
|
|
33752
33739
|
const handleSignClick = async () => {
|
|
33753
33740
|
if (loadingStatus === "loading") return;
|
|
33754
33741
|
const baseTracking = {
|
|
33755
|
-
actionLevel: "task",
|
|
33756
33742
|
actionType: "sign",
|
|
33757
33743
|
label: translationKeys.sign
|
|
33758
33744
|
};
|
|
@@ -33763,19 +33749,19 @@ function PciDropinComponent({
|
|
|
33763
33749
|
await handleSign(legalEntityResponse.id, { signedBy: data.signer, pciTemplateReferences });
|
|
33764
33750
|
setLoadingStatus("success");
|
|
33765
33751
|
showToast({ label: i18n.get("pciSignedSuccessfully"), type: "success" });
|
|
33766
|
-
userEvents.
|
|
33752
|
+
userEvents.addTaskEvent("Success", baseTracking);
|
|
33767
33753
|
goHome();
|
|
33768
33754
|
} catch (e) {
|
|
33769
33755
|
setLoadingStatus("success");
|
|
33770
33756
|
showToast({ label: i18n.get("pciSignFailed"), type: "error" });
|
|
33771
|
-
userEvents.
|
|
33757
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
33772
33758
|
...baseTracking,
|
|
33773
33759
|
returnType: (e == null ? void 0 : e.errorCode) || "backend",
|
|
33774
33760
|
returnValue: (e == null ? void 0 : e.title) ?? (e == null ? void 0 : e.message)
|
|
33775
33761
|
});
|
|
33776
33762
|
}
|
|
33777
33763
|
} else {
|
|
33778
|
-
userEvents.
|
|
33764
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
33779
33765
|
...baseTracking,
|
|
33780
33766
|
returnType: "validation",
|
|
33781
33767
|
returnValue: Object.entries(valid).filter(([, value]) => !value).map(([key]) => key)
|
|
@@ -33797,8 +33783,7 @@ function PciDropinComponent({
|
|
|
33797
33783
|
};
|
|
33798
33784
|
useEffect(() => {
|
|
33799
33785
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
33800
|
-
userEvents.
|
|
33801
|
-
actionLevel: "task",
|
|
33786
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
33802
33787
|
actionType: "start"
|
|
33803
33788
|
});
|
|
33804
33789
|
}, []);
|
|
@@ -34232,6 +34217,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
34232
34217
|
RadioCardSelect,
|
|
34233
34218
|
{
|
|
34234
34219
|
...childProps,
|
|
34220
|
+
name: "entityType",
|
|
34235
34221
|
options: trustMemberLegalEntityTypes,
|
|
34236
34222
|
onSelect: onEntityTypeChange,
|
|
34237
34223
|
selected: data.entityType,
|
|
@@ -34776,7 +34762,6 @@ function ServiceAgreementDropinComponent({
|
|
|
34776
34762
|
const signers = getSigners();
|
|
34777
34763
|
const handleSignClick = async () => {
|
|
34778
34764
|
const baseTracking = {
|
|
34779
|
-
actionLevel: "task",
|
|
34780
34765
|
actionType: "sign"
|
|
34781
34766
|
};
|
|
34782
34767
|
triggerValidation();
|
|
@@ -34790,20 +34775,20 @@ function ServiceAgreementDropinComponent({
|
|
|
34790
34775
|
label: i18n.get("serviceAgreementSignedSuccessfully"),
|
|
34791
34776
|
type: "success"
|
|
34792
34777
|
});
|
|
34793
|
-
userEvents.
|
|
34778
|
+
userEvents.addTaskEvent("Success", baseTracking);
|
|
34794
34779
|
data.acceptServiceAgreement = false;
|
|
34795
34780
|
data.signer = void 0;
|
|
34796
34781
|
} catch (e) {
|
|
34797
34782
|
setLoadingStatus("success");
|
|
34798
34783
|
showToast({ label: i18n.get("serviceAgreementSignFailed"), type: "error" });
|
|
34799
|
-
userEvents.
|
|
34784
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
34800
34785
|
...baseTracking,
|
|
34801
34786
|
returnType: (e == null ? void 0 : e.errorCode) || "backend",
|
|
34802
34787
|
returnValue: (e == null ? void 0 : e.title) ?? (e == null ? void 0 : e.message)
|
|
34803
34788
|
});
|
|
34804
34789
|
}
|
|
34805
34790
|
} else {
|
|
34806
|
-
userEvents.
|
|
34791
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
34807
34792
|
...baseTracking,
|
|
34808
34793
|
returnType: "validation",
|
|
34809
34794
|
returnValue: Object.entries(valid).filter(([, value]) => !value).map(([key]) => key)
|
|
@@ -34818,10 +34803,9 @@ function ServiceAgreementDropinComponent({
|
|
|
34818
34803
|
handleHomeClick();
|
|
34819
34804
|
};
|
|
34820
34805
|
const handleExpandSection = (title) => {
|
|
34821
|
-
userEvents.
|
|
34822
|
-
actionLevel: "task",
|
|
34806
|
+
userEvents.addFieldEvent("Clicked accordion", {
|
|
34823
34807
|
actionType: "open",
|
|
34824
|
-
|
|
34808
|
+
field: title
|
|
34825
34809
|
});
|
|
34826
34810
|
};
|
|
34827
34811
|
useEffect(() => {
|
|
@@ -34829,13 +34813,15 @@ function ServiceAgreementDropinComponent({
|
|
|
34829
34813
|
gotoForm(serviceAgreementAcceptanceInfos.length - 1);
|
|
34830
34814
|
}, [serviceAgreementAcceptanceInfos]);
|
|
34831
34815
|
useEffect(() => {
|
|
34832
|
-
userEvents.
|
|
34833
|
-
actionLevel: "task",
|
|
34816
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
34834
34817
|
actionType: "start"
|
|
34835
34818
|
});
|
|
34836
34819
|
const initialFormIndex = forms.length === signedForms.length ? 0 : signedForms.length;
|
|
34837
34820
|
gotoForm(initialFormIndex);
|
|
34838
34821
|
}, []);
|
|
34822
|
+
useEffect(() => {
|
|
34823
|
+
userEvents.updateSharedEventProperties({ page: activeForm.formName });
|
|
34824
|
+
}, [activeForm]);
|
|
34839
34825
|
const gotoForm = (index) => {
|
|
34840
34826
|
setActiveForm(forms[index]);
|
|
34841
34827
|
setActiveFormIndex(index);
|
|
@@ -35775,7 +35761,7 @@ const useNavigation = ({
|
|
|
35775
35761
|
};
|
|
35776
35762
|
}, [navigateTo]);
|
|
35777
35763
|
useEffect(() => {
|
|
35778
|
-
const pushedTask = taskHistory.
|
|
35764
|
+
const pushedTask = taskHistory[taskHistory.length - 1];
|
|
35779
35765
|
if (pushedTask === "default") {
|
|
35780
35766
|
const defaultTask = getDefaultTask({
|
|
35781
35767
|
legalEntity,
|
|
@@ -35797,8 +35783,8 @@ const useNavigation = ({
|
|
|
35797
35783
|
taskHistory
|
|
35798
35784
|
]);
|
|
35799
35785
|
return {
|
|
35800
|
-
currentTask: actualTasks.
|
|
35801
|
-
previousTask: actualTasks.
|
|
35786
|
+
currentTask: actualTasks[actualTasks.length - 1],
|
|
35787
|
+
previousTask: actualTasks[actualTasks.length - 2],
|
|
35802
35788
|
navigateBack,
|
|
35803
35789
|
navigateTo
|
|
35804
35790
|
};
|
|
@@ -36337,9 +36323,8 @@ function DropinComposerComponent({
|
|
|
36337
36323
|
} catch (e) {
|
|
36338
36324
|
showToast({ label: i18n.get("failedToDownloadPci"), type: "error" });
|
|
36339
36325
|
} finally {
|
|
36340
|
-
userEvents.
|
|
36326
|
+
userEvents.addTaskEvent("Clicked button", {
|
|
36341
36327
|
task: TaskTypes.PCI_DSS,
|
|
36342
|
-
actionLevel: "task",
|
|
36343
36328
|
actionType: "download"
|
|
36344
36329
|
});
|
|
36345
36330
|
}
|
|
@@ -39336,7 +39321,6 @@ const useAnalytics = async ({
|
|
|
39336
39321
|
sdkVersion,
|
|
39337
39322
|
componentName
|
|
39338
39323
|
}) => {
|
|
39339
|
-
const { i18n } = useI18nContext();
|
|
39340
39324
|
const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
|
|
39341
39325
|
const loadingContext = `${base}api/${COMPONENTS_API_VERSION}/`;
|
|
39342
39326
|
useEffect(() => {
|
|
@@ -39345,8 +39329,7 @@ const useAnalytics = async ({
|
|
|
39345
39329
|
sdkVersion,
|
|
39346
39330
|
componentName,
|
|
39347
39331
|
userAgent: navigator.userAgent,
|
|
39348
|
-
legalEntityId
|
|
39349
|
-
locale: i18n.locale
|
|
39332
|
+
legalEntityId
|
|
39350
39333
|
};
|
|
39351
39334
|
if (isEmbeddedDropin) {
|
|
39352
39335
|
try {
|
|
@@ -39666,7 +39649,7 @@ const ConfigurationApiProvider = ({
|
|
|
39666
39649
|
}) => {
|
|
39667
39650
|
const authContext = useAuthContext();
|
|
39668
39651
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
39669
|
-
const sdkVersion = "2.
|
|
39652
|
+
const sdkVersion = "2.65.0";
|
|
39670
39653
|
useAnalytics({
|
|
39671
39654
|
onUserEvent,
|
|
39672
39655
|
legalEntityId: rootLegalEntityId,
|
|
@@ -40134,48 +40117,6 @@ function ToastContextProvider({ children }) {
|
|
|
40134
40117
|
children
|
|
40135
40118
|
] });
|
|
40136
40119
|
}
|
|
40137
|
-
const layoutBreakpointClassnames = {
|
|
40138
|
-
xsOnly: "adyen-layout-xs-only",
|
|
40139
|
-
md: "adyen-layout-md",
|
|
40140
|
-
lg: "adyen-layout-lg"
|
|
40141
|
-
};
|
|
40142
|
-
const layoutBreakpointSizes = {
|
|
40143
|
-
md: 680,
|
|
40144
|
-
lg: 1024
|
|
40145
|
-
};
|
|
40146
|
-
const getBreakpointClassNames = (containerSize) => {
|
|
40147
|
-
const breakPoints = Object.entries(layoutBreakpointSizes);
|
|
40148
|
-
const classes = breakPoints.reduce((acc, [bp, size]) => {
|
|
40149
|
-
if (size <= containerSize) acc.push(layoutBreakpointClassnames[bp]);
|
|
40150
|
-
return acc;
|
|
40151
|
-
}, []);
|
|
40152
|
-
return classes.length > 0 ? classes : ["adyen-layout-xs-only"];
|
|
40153
|
-
};
|
|
40154
|
-
const assignLayoutClasses = (entries, container) => {
|
|
40155
|
-
let newClasses = [];
|
|
40156
|
-
entries.forEach((entry) => {
|
|
40157
|
-
var _a;
|
|
40158
|
-
const parentWidth = (_a = entry.contentBoxSize) == null ? void 0 : _a[0].inlineSize;
|
|
40159
|
-
if (parentWidth) {
|
|
40160
|
-
newClasses = getBreakpointClassNames(parentWidth);
|
|
40161
|
-
} else {
|
|
40162
|
-
newClasses.push(layoutBreakpointClassnames.lg);
|
|
40163
|
-
}
|
|
40164
|
-
container.classList.remove(...Object.values(layoutBreakpointClassnames));
|
|
40165
|
-
container.classList.add(...newClasses);
|
|
40166
|
-
});
|
|
40167
|
-
};
|
|
40168
|
-
const AutoResizer = ({ children }) => {
|
|
40169
|
-
const containerRef = useRef(null);
|
|
40170
|
-
useEffect(() => {
|
|
40171
|
-
const container = containerRef.current;
|
|
40172
|
-
if (!container) return;
|
|
40173
|
-
const resizeObserver = new ResizeObserver((entries) => assignLayoutClasses(entries, container));
|
|
40174
|
-
resizeObserver.observe(container);
|
|
40175
|
-
return () => resizeObserver.unobserve(container);
|
|
40176
|
-
});
|
|
40177
|
-
return /* @__PURE__ */ jsx("div", { ref: containerRef, "data-testid": "auto-resizer-content", children });
|
|
40178
|
-
};
|
|
40179
40120
|
class EventEmitter {
|
|
40180
40121
|
constructor() {
|
|
40181
40122
|
this.listeners = {
|
|
@@ -40342,7 +40283,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40342
40283
|
};
|
|
40343
40284
|
const copyToClipboard = async () => {
|
|
40344
40285
|
const toCopy = {
|
|
40345
|
-
sdkVersion: "2.
|
|
40286
|
+
sdkVersion: "2.65.0",
|
|
40346
40287
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
40347
40288
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
40348
40289
|
};
|
|
@@ -40407,7 +40348,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40407
40348
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
|
|
40408
40349
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40409
40350
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "SDK version" }),
|
|
40410
|
-
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.
|
|
40351
|
+
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.65.0" })
|
|
40411
40352
|
] }) }),
|
|
40412
40353
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40413
40354
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
|
|
@@ -40585,7 +40526,7 @@ class UIElement extends BaseElement {
|
|
|
40585
40526
|
{
|
|
40586
40527
|
rootLegalEntityId,
|
|
40587
40528
|
handleGetLegalEntity: "handleGetLegalEntity" in this.props.componentProps ? this.props.componentProps.handleGetLegalEntity : void 0,
|
|
40588
|
-
children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container-wrapper", children: /* @__PURE__ */ jsx(
|
|
40529
|
+
children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container-wrapper", children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container", children: /* @__PURE__ */ jsx(ToastContextProvider, { children: /* @__PURE__ */ jsx(StateProvider, { children: /* @__PURE__ */ jsx(Component, { ...this.props.componentProps, onUnmount: this.remove }) }) }) }) })
|
|
40589
40530
|
}
|
|
40590
40531
|
)
|
|
40591
40532
|
}
|
|
@@ -41130,6 +41071,9 @@ class Core {
|
|
|
41130
41071
|
this.initializeSession();
|
|
41131
41072
|
}
|
|
41132
41073
|
}
|
|
41074
|
+
if (CSS.supports("container", "foo / inline-size") === false) {
|
|
41075
|
+
import("container-query-polyfill");
|
|
41076
|
+
}
|
|
41133
41077
|
export {
|
|
41134
41078
|
Core as default
|
|
41135
41079
|
};
|