@adyen/kyc-components 2.63.1 → 2.64.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 +59 -131
- 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 +4 -3
- 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,9 +28941,8 @@ 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
|
-
actionLevel: "task",
|
|
28951
28946
|
actionType: "save",
|
|
28952
28947
|
documentType: doc.type,
|
|
28953
28948
|
fileExtention: doc.attachments.map((item) => getFileExtention(item.pageName))
|
|
@@ -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
|
});
|
|
@@ -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
|
}, []);
|
|
@@ -32760,9 +32741,8 @@ function IndividualDropinComponent({
|
|
|
32760
32741
|
throw new Error("Provide handler to create legalEntity");
|
|
32761
32742
|
}
|
|
32762
32743
|
updatedLegalEntity = await handleCreateLegalEntity(legalEntity);
|
|
32763
|
-
userEvents.
|
|
32744
|
+
userEvents.addTaskEvent("Success", {
|
|
32764
32745
|
...associatedLeTrackingParams,
|
|
32765
|
-
actionLevel: "task",
|
|
32766
32746
|
actionType: "submit",
|
|
32767
32747
|
legalEntityId: updatedLegalEntity.id,
|
|
32768
32748
|
entityType: updatedLegalEntity.type,
|
|
@@ -32771,9 +32751,8 @@ function IndividualDropinComponent({
|
|
|
32771
32751
|
});
|
|
32772
32752
|
} else {
|
|
32773
32753
|
updatedLegalEntity = await handleUpdateLegalEntity(drop("type").from(legalEntity), leId);
|
|
32774
|
-
userEvents.
|
|
32754
|
+
userEvents.addTaskEvent("Success", {
|
|
32775
32755
|
...associatedLeTrackingParams,
|
|
32776
|
-
actionLevel: "task",
|
|
32777
32756
|
actionType: "submit",
|
|
32778
32757
|
legalEntityId: updatedLegalEntity.id,
|
|
32779
32758
|
entityType: updatedLegalEntity.type,
|
|
@@ -32813,9 +32792,8 @@ function IndividualDropinComponent({
|
|
|
32813
32792
|
);
|
|
32814
32793
|
uploadedDocuments == null ? void 0 : uploadedDocuments.forEach((doc) => {
|
|
32815
32794
|
var _a3;
|
|
32816
|
-
userEvents.
|
|
32795
|
+
userEvents.addTaskEvent("Success", {
|
|
32817
32796
|
...associatedLeTrackingParams,
|
|
32818
|
-
actionLevel: "task",
|
|
32819
32797
|
actionType: "upload",
|
|
32820
32798
|
documentType: doc.type,
|
|
32821
32799
|
fileExtention: ((_a3 = doc == null ? void 0 : doc.attachments) == null ? void 0 : _a3.map((item) => getFileExtention(item.pageName))) ?? null
|
|
@@ -32922,9 +32900,8 @@ function IndividualDropinComponent({
|
|
|
32922
32900
|
showToast({ label: i18n.get("failedToUpdateDetails"), type: "error" });
|
|
32923
32901
|
}
|
|
32924
32902
|
setLoadingStatus("success");
|
|
32925
|
-
userEvents.
|
|
32903
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
32926
32904
|
...associatedLeTrackingParams,
|
|
32927
|
-
actionLevel: "task",
|
|
32928
32905
|
actionType: "submit",
|
|
32929
32906
|
returnType: e.errorCode,
|
|
32930
32907
|
returnValue: e.title
|
|
@@ -33314,8 +33291,7 @@ function PayoutDetailsDropinComponent({
|
|
|
33314
33291
|
const existingBankAccountFormat = transferInstrument ? ((_d = existingPayoutDetails == null ? void 0 : existingPayoutDetails.payoutAccountDetails) == null ? void 0 : _d.iban) ? "iban" : "local" : void 0;
|
|
33315
33292
|
useEffect(() => {
|
|
33316
33293
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
33317
|
-
userEvents.
|
|
33318
|
-
actionLevel: "task",
|
|
33294
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
33319
33295
|
actionType: "start"
|
|
33320
33296
|
});
|
|
33321
33297
|
}, []);
|
|
@@ -33442,8 +33418,7 @@ function PayoutDetailsDropinComponent({
|
|
|
33442
33418
|
);
|
|
33443
33419
|
documents2.forEach((document2) => {
|
|
33444
33420
|
var _a2;
|
|
33445
|
-
userEvents.
|
|
33446
|
-
actionLevel: "task",
|
|
33421
|
+
userEvents.addTaskEvent("Success", {
|
|
33447
33422
|
actionType: "upload",
|
|
33448
33423
|
documentType: document2.type,
|
|
33449
33424
|
fileExtention: ((_a2 = document2.attachments) == null ? void 0 : _a2.map((item) => getFileExtention(item.pageName))) ?? null
|
|
@@ -33479,7 +33454,6 @@ function PayoutDetailsDropinComponent({
|
|
|
33479
33454
|
);
|
|
33480
33455
|
}
|
|
33481
33456
|
const baseTracking = {
|
|
33482
|
-
actionLevel: "task",
|
|
33483
33457
|
actionType: "submit",
|
|
33484
33458
|
documentType: DocumentType.BANK_STATEMENT,
|
|
33485
33459
|
bankCountry: (payoutVerificationMethod == null ? void 0 : payoutVerificationMethod.bankCountry) ?? defaultPayoutCountry,
|
|
@@ -33500,7 +33474,7 @@ function PayoutDetailsDropinComponent({
|
|
|
33500
33474
|
transferInstrumentId
|
|
33501
33475
|
);
|
|
33502
33476
|
}
|
|
33503
|
-
userEvents.
|
|
33477
|
+
userEvents.addTaskEvent("Success", baseTracking);
|
|
33504
33478
|
try {
|
|
33505
33479
|
await submitDocuments2({ forms, transferInstrument: transferInstrument2, dataSubmitted });
|
|
33506
33480
|
setLoadingStatus("success");
|
|
@@ -33529,7 +33503,7 @@ function PayoutDetailsDropinComponent({
|
|
|
33529
33503
|
showToast({ label: i18n.get("failedToUpdateDetails"), type: "error" });
|
|
33530
33504
|
}
|
|
33531
33505
|
setLoadingStatus("success");
|
|
33532
|
-
userEvents.
|
|
33506
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
33533
33507
|
...baseTracking,
|
|
33534
33508
|
returnType: (e == null ? void 0 : e.errorCode) || "backend",
|
|
33535
33509
|
returnValue: (e == null ? void 0 : e.title) || (e == null ? void 0 : e.message)
|
|
@@ -33602,8 +33576,7 @@ function PayoutDetailsDropinComponent({
|
|
|
33602
33576
|
if (trustedTransferInstrumentId) {
|
|
33603
33577
|
externalOnSubmit == null ? void 0 : externalOnSubmit({ ...data, id: trustedTransferInstrumentId });
|
|
33604
33578
|
}
|
|
33605
|
-
userEvents.
|
|
33606
|
-
actionLevel: "task",
|
|
33579
|
+
userEvents.addTaskEvent("Success", {
|
|
33607
33580
|
actionType: "submit"
|
|
33608
33581
|
});
|
|
33609
33582
|
navigateBackToTaskList == null ? void 0 : navigateBackToTaskList();
|
|
@@ -33752,7 +33725,6 @@ function PciDropinComponent({
|
|
|
33752
33725
|
const handleSignClick = async () => {
|
|
33753
33726
|
if (loadingStatus === "loading") return;
|
|
33754
33727
|
const baseTracking = {
|
|
33755
|
-
actionLevel: "task",
|
|
33756
33728
|
actionType: "sign",
|
|
33757
33729
|
label: translationKeys.sign
|
|
33758
33730
|
};
|
|
@@ -33763,19 +33735,19 @@ function PciDropinComponent({
|
|
|
33763
33735
|
await handleSign(legalEntityResponse.id, { signedBy: data.signer, pciTemplateReferences });
|
|
33764
33736
|
setLoadingStatus("success");
|
|
33765
33737
|
showToast({ label: i18n.get("pciSignedSuccessfully"), type: "success" });
|
|
33766
|
-
userEvents.
|
|
33738
|
+
userEvents.addTaskEvent("Success", baseTracking);
|
|
33767
33739
|
goHome();
|
|
33768
33740
|
} catch (e) {
|
|
33769
33741
|
setLoadingStatus("success");
|
|
33770
33742
|
showToast({ label: i18n.get("pciSignFailed"), type: "error" });
|
|
33771
|
-
userEvents.
|
|
33743
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
33772
33744
|
...baseTracking,
|
|
33773
33745
|
returnType: (e == null ? void 0 : e.errorCode) || "backend",
|
|
33774
33746
|
returnValue: (e == null ? void 0 : e.title) ?? (e == null ? void 0 : e.message)
|
|
33775
33747
|
});
|
|
33776
33748
|
}
|
|
33777
33749
|
} else {
|
|
33778
|
-
userEvents.
|
|
33750
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
33779
33751
|
...baseTracking,
|
|
33780
33752
|
returnType: "validation",
|
|
33781
33753
|
returnValue: Object.entries(valid).filter(([, value]) => !value).map(([key]) => key)
|
|
@@ -33797,8 +33769,7 @@ function PciDropinComponent({
|
|
|
33797
33769
|
};
|
|
33798
33770
|
useEffect(() => {
|
|
33799
33771
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
33800
|
-
userEvents.
|
|
33801
|
-
actionLevel: "task",
|
|
33772
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
33802
33773
|
actionType: "start"
|
|
33803
33774
|
});
|
|
33804
33775
|
}, []);
|
|
@@ -34232,6 +34203,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
34232
34203
|
RadioCardSelect,
|
|
34233
34204
|
{
|
|
34234
34205
|
...childProps,
|
|
34206
|
+
name: "entityType",
|
|
34235
34207
|
options: trustMemberLegalEntityTypes,
|
|
34236
34208
|
onSelect: onEntityTypeChange,
|
|
34237
34209
|
selected: data.entityType,
|
|
@@ -34776,7 +34748,6 @@ function ServiceAgreementDropinComponent({
|
|
|
34776
34748
|
const signers = getSigners();
|
|
34777
34749
|
const handleSignClick = async () => {
|
|
34778
34750
|
const baseTracking = {
|
|
34779
|
-
actionLevel: "task",
|
|
34780
34751
|
actionType: "sign"
|
|
34781
34752
|
};
|
|
34782
34753
|
triggerValidation();
|
|
@@ -34790,20 +34761,20 @@ function ServiceAgreementDropinComponent({
|
|
|
34790
34761
|
label: i18n.get("serviceAgreementSignedSuccessfully"),
|
|
34791
34762
|
type: "success"
|
|
34792
34763
|
});
|
|
34793
|
-
userEvents.
|
|
34764
|
+
userEvents.addTaskEvent("Success", baseTracking);
|
|
34794
34765
|
data.acceptServiceAgreement = false;
|
|
34795
34766
|
data.signer = void 0;
|
|
34796
34767
|
} catch (e) {
|
|
34797
34768
|
setLoadingStatus("success");
|
|
34798
34769
|
showToast({ label: i18n.get("serviceAgreementSignFailed"), type: "error" });
|
|
34799
|
-
userEvents.
|
|
34770
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
34800
34771
|
...baseTracking,
|
|
34801
34772
|
returnType: (e == null ? void 0 : e.errorCode) || "backend",
|
|
34802
34773
|
returnValue: (e == null ? void 0 : e.title) ?? (e == null ? void 0 : e.message)
|
|
34803
34774
|
});
|
|
34804
34775
|
}
|
|
34805
34776
|
} else {
|
|
34806
|
-
userEvents.
|
|
34777
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
34807
34778
|
...baseTracking,
|
|
34808
34779
|
returnType: "validation",
|
|
34809
34780
|
returnValue: Object.entries(valid).filter(([, value]) => !value).map(([key]) => key)
|
|
@@ -34829,8 +34800,7 @@ function ServiceAgreementDropinComponent({
|
|
|
34829
34800
|
gotoForm(serviceAgreementAcceptanceInfos.length - 1);
|
|
34830
34801
|
}, [serviceAgreementAcceptanceInfos]);
|
|
34831
34802
|
useEffect(() => {
|
|
34832
|
-
userEvents.
|
|
34833
|
-
actionLevel: "task",
|
|
34803
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
34834
34804
|
actionType: "start"
|
|
34835
34805
|
});
|
|
34836
34806
|
const initialFormIndex = forms.length === signedForms.length ? 0 : signedForms.length;
|
|
@@ -35775,7 +35745,7 @@ const useNavigation = ({
|
|
|
35775
35745
|
};
|
|
35776
35746
|
}, [navigateTo]);
|
|
35777
35747
|
useEffect(() => {
|
|
35778
|
-
const pushedTask = taskHistory.
|
|
35748
|
+
const pushedTask = taskHistory[taskHistory.length - 1];
|
|
35779
35749
|
if (pushedTask === "default") {
|
|
35780
35750
|
const defaultTask = getDefaultTask({
|
|
35781
35751
|
legalEntity,
|
|
@@ -35797,8 +35767,8 @@ const useNavigation = ({
|
|
|
35797
35767
|
taskHistory
|
|
35798
35768
|
]);
|
|
35799
35769
|
return {
|
|
35800
|
-
currentTask: actualTasks.
|
|
35801
|
-
previousTask: actualTasks.
|
|
35770
|
+
currentTask: actualTasks[actualTasks.length - 1],
|
|
35771
|
+
previousTask: actualTasks[actualTasks.length - 2],
|
|
35802
35772
|
navigateBack,
|
|
35803
35773
|
navigateTo
|
|
35804
35774
|
};
|
|
@@ -36337,9 +36307,8 @@ function DropinComposerComponent({
|
|
|
36337
36307
|
} catch (e) {
|
|
36338
36308
|
showToast({ label: i18n.get("failedToDownloadPci"), type: "error" });
|
|
36339
36309
|
} finally {
|
|
36340
|
-
userEvents.
|
|
36310
|
+
userEvents.addTaskEvent("Clicked button", {
|
|
36341
36311
|
task: TaskTypes.PCI_DSS,
|
|
36342
|
-
actionLevel: "task",
|
|
36343
36312
|
actionType: "download"
|
|
36344
36313
|
});
|
|
36345
36314
|
}
|
|
@@ -39336,7 +39305,6 @@ const useAnalytics = async ({
|
|
|
39336
39305
|
sdkVersion,
|
|
39337
39306
|
componentName
|
|
39338
39307
|
}) => {
|
|
39339
|
-
const { i18n } = useI18nContext();
|
|
39340
39308
|
const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
|
|
39341
39309
|
const loadingContext = `${base}api/${COMPONENTS_API_VERSION}/`;
|
|
39342
39310
|
useEffect(() => {
|
|
@@ -39345,8 +39313,7 @@ const useAnalytics = async ({
|
|
|
39345
39313
|
sdkVersion,
|
|
39346
39314
|
componentName,
|
|
39347
39315
|
userAgent: navigator.userAgent,
|
|
39348
|
-
legalEntityId
|
|
39349
|
-
locale: i18n.locale
|
|
39316
|
+
legalEntityId
|
|
39350
39317
|
};
|
|
39351
39318
|
if (isEmbeddedDropin) {
|
|
39352
39319
|
try {
|
|
@@ -39666,7 +39633,7 @@ const ConfigurationApiProvider = ({
|
|
|
39666
39633
|
}) => {
|
|
39667
39634
|
const authContext = useAuthContext();
|
|
39668
39635
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
39669
|
-
const sdkVersion = "2.
|
|
39636
|
+
const sdkVersion = "2.64.0";
|
|
39670
39637
|
useAnalytics({
|
|
39671
39638
|
onUserEvent,
|
|
39672
39639
|
legalEntityId: rootLegalEntityId,
|
|
@@ -40134,48 +40101,6 @@ function ToastContextProvider({ children }) {
|
|
|
40134
40101
|
children
|
|
40135
40102
|
] });
|
|
40136
40103
|
}
|
|
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
40104
|
class EventEmitter {
|
|
40180
40105
|
constructor() {
|
|
40181
40106
|
this.listeners = {
|
|
@@ -40342,7 +40267,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40342
40267
|
};
|
|
40343
40268
|
const copyToClipboard = async () => {
|
|
40344
40269
|
const toCopy = {
|
|
40345
|
-
sdkVersion: "2.
|
|
40270
|
+
sdkVersion: "2.64.0",
|
|
40346
40271
|
experiments: Object.fromEntries(allExperimentsWithValues),
|
|
40347
40272
|
settings: Object.fromEntries(allSettingsWithValues)
|
|
40348
40273
|
};
|
|
@@ -40407,7 +40332,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
40407
40332
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx("table", { children: /* @__PURE__ */ jsxs("tbody", { children: [
|
|
40408
40333
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40409
40334
|
/* @__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.
|
|
40335
|
+
/* @__PURE__ */ jsx(Tag, { variant: "green", className: "adyen-kyc-tag--large", children: "2.64.0" })
|
|
40411
40336
|
] }) }),
|
|
40412
40337
|
/* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs("td", { children: [
|
|
40413
40338
|
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-debug-modal__table-key", children: "rootLegalEntityId" }),
|
|
@@ -40585,7 +40510,7 @@ class UIElement extends BaseElement {
|
|
|
40585
40510
|
{
|
|
40586
40511
|
rootLegalEntityId,
|
|
40587
40512
|
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(
|
|
40513
|
+
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
40514
|
}
|
|
40590
40515
|
)
|
|
40591
40516
|
}
|
|
@@ -41130,6 +41055,9 @@ class Core {
|
|
|
41130
41055
|
this.initializeSession();
|
|
41131
41056
|
}
|
|
41132
41057
|
}
|
|
41058
|
+
if (CSS.supports("container", "foo / inline-size") === false) {
|
|
41059
|
+
import("container-query-polyfill");
|
|
41060
|
+
}
|
|
41133
41061
|
export {
|
|
41134
41062
|
Core as default
|
|
41135
41063
|
};
|