@adyen/kyc-components 3.63.2 → 3.64.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/AccountSetupRejected-DE4V7-3v.js +14 -0
- package/dist/{OKF6E45R-DJQ6WuJ0.js → CXEL7IU7-DcK7-pPj.js} +2 -2
- package/dist/CustomerSupport-BRVILv21.js +120 -0
- package/dist/{DebugModal-fAWDVtvl.js → DebugModal-BJk5v_Fq.js} +6 -6
- package/dist/DecisionMakers-DMRBLJ03.js +220 -0
- package/dist/{WXAWMS3D-C0qahN6N.js → HASRA6WW-BBh_ldjJ.js} +615 -514
- package/dist/{CPIOZS5X-BAPAsUnD.js → I3HPI4QX-DgZhje7B.js} +2 -2
- package/dist/{Introduction-imwEgL7W.js → Introduction-Dh3oNC_b.js} +1 -5
- package/dist/Review-TmWR8Zbc.js +73 -0
- package/dist/SingpassSelection-BUEOfpN3.js +116 -0
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +1 -1
- package/dist/{core-CtLEZ35m.js → core-DMef9uHG.js} +30625 -33325
- package/dist/{css-Byr67uS8.js → css-BuS1n-Pw.js} +1 -1
- package/dist/{json-BOZMhevD.js → json-C8Ve6tYd.js} +1 -1
- package/dist/{plaintext-jm6guQOB.js → plaintext-Bn-4mEeM.js} +1 -1
- package/dist/style.css +479 -467
- package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +2 -0
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +17 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +17 -5
- package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +4 -0
- package/dist/types/api/pciTemplate/usePciStatus.d.ts +7 -2
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +12 -0
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +13 -0
- package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +2 -0
- package/dist/types/api/types.d.ts +8 -3
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +6 -0
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +44 -0
- package/dist/types/components/Business/forms/{Company/rules.d.ts → rules.d.ts} +4 -6
- package/dist/types/components/Business/hooks/useBusinessData/types.d.ts +1 -1
- package/dist/types/components/Business/hooks/useBusinessData/useBusinessData.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +2 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +0 -1
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -3
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/useServiceAgreement.d.ts +1 -6
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +2 -13
- package/dist/types/components/Individual/forms/Individual/types.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakers.d.ts +6 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +1 -4
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/types.d.ts +0 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/PayoutAccountTaskListItem.d.ts +1 -2
- package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +0 -1
- package/dist/types/components/UnincorporatedPartnership/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +8 -0
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
- package/dist/types/components/index.d.ts +0 -4
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
- package/dist/types/components/ui/atoms/Select/Select.types.d.ts +0 -2
- package/dist/types/components/ui/atoms/Select/useSelectFocus.d.ts +21 -0
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +2 -1
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +6 -6
- package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +2 -1
- package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +4 -3
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.d.ts +1 -1
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +1 -0
- package/dist/types/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +1 -3
- package/dist/types/context/ExperimentContext/types.d.ts +84 -4
- package/dist/types/context/StateContext/types.d.ts +2 -4
- package/dist/types/core/constants.d.ts +3 -0
- package/dist/types/core/models/api/contracts.d.ts +0 -1
- package/dist/types/core/models/api/legal-entity.d.ts +4 -5
- package/dist/types/core/models/api/organization.d.ts +2 -1
- package/dist/types/hooks/useComponentApi.d.ts +0 -4
- package/dist/types/stores/globalStore/globalStore.d.ts +4 -1
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -1
- package/dist/types/utils/api/processCapabilitites.d.ts +1 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getFieldsWithExistingData.d.ts +1 -3
- package/dist/types/utils/signals/useWatchingSignal.d.ts +9 -0
- package/dist/types/utils/simulateTextChangeFromKeyboardEvent.d.ts +11 -0
- package/dist/{yaml-BZYqXoHq.js → yaml-B0cSIA3u.js} +1 -1
- package/package.json +17 -23
- package/dist/types/components/Business/forms/Company/Company.d.ts +0 -54
- package/dist/types/components/Business/forms/Company/types.d.ts +0 -30
- package/dist/types/components/Business/forms/CompanyType/CompanyType.d.ts +0 -4
- package/dist/types/components/Business/forms/CompanyType/types.d.ts +0 -9
- package/dist/types/components/Business/forms/CompanyType/validate.d.ts +0 -3
- package/dist/types/components/Business/mapping/companyKeyMappings.d.ts +0 -7
- package/dist/types/components/Business/mapping/mapApiDocumentToCompanyDocuments.d.ts +0 -2
- package/dist/types/components/Business/mapping/mapCompanyDocumentToApiDocument.d.ts +0 -3
- package/dist/types/components/Business/mapping/mapCompanyToLegalEntity.d.ts +0 -4
- package/dist/types/components/Business/mapping/mapLegalEntityToCompany.d.ts +0 -4
- package/dist/types/components/Business/tasks/CompanyDropin/CompanyDropin.d.ts +0 -2
- package/dist/types/components/Business/tasks/CompanyDropin/companyFormConfig.d.ts +0 -7
- package/dist/types/components/Business/tasks/CompanyDropin/mandatoryFields.d.ts +0 -3
- package/dist/types/components/Business/tasks/CompanyDropin/types.d.ts +0 -10
- package/dist/types/components/Shared/fields/TradingNameField/TradingNameField.d.ts +0 -3
- package/dist/types/components/Shared/fields/TradingNameField/fieldConfig.d.ts +0 -3
- package/dist/types/components/Shared/fields/TradingNameField/types.d.ts +0 -8
- package/dist/types/components/Shared/forms/CompanyNameAndCountry/CompanyNameAndCountry.d.ts +0 -5
- package/dist/types/components/Shared/forms/CompanyNameAndCountry/validate.d.ts +0 -3
- package/dist/types/components/Shared/forms/CompanyRegistrationDetails/CompanyRegistrationDetails.d.ts +0 -4
- package/dist/types/components/Shared/forms/CompanyRegistrationDetails/types.d.ts +0 -19
- package/dist/types/components/SoleProprietorship/forms/SoleProp/SoleProp.d.ts +0 -33
- package/dist/types/components/SoleProprietorship/forms/SoleProp/types.d.ts +0 -33
- package/dist/types/components/SoleProprietorship/mapping/mapApiDocumentToSolePropDocuments.d.ts +0 -2
- package/dist/types/components/SoleProprietorship/mapping/mapLegalEntityToSoleProp.d.ts +0 -4
- package/dist/types/components/SoleProprietorship/mapping/mapSolePropDocumentToApiDocument.d.ts +0 -3
- package/dist/types/components/SoleProprietorship/mapping/mapSolePropToLegalEntity.d.ts +0 -4
- package/dist/types/components/SoleProprietorship/mapping/solePropKeyMappings.d.ts +0 -7
- package/dist/types/components/SoleProprietorship/tasks/SolePropDropin/SolePropDropin.d.ts +0 -2
- package/dist/types/components/SoleProprietorship/tasks/SolePropDropin/mandatoryFields.d.ts +0 -3
- package/dist/types/components/SoleProprietorship/tasks/SolePropDropin/solePropFormConfig.d.ts +0 -5
- package/dist/types/context/StateContext/StateContextWatcher.d.ts +0 -2
- package/dist/types/core/services/componentApi/clear-company-data.d.ts +0 -2
- package/dist/types/core/services/componentApi/delete-transferInstrument.d.ts +0 -3
- package/dist/types/core/services/componentApi/validate-account-identification.d.ts +0 -4
|
@@ -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 "./
|
|
2
|
-
import {
|
|
1
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-BBh_ldjJ.js";
|
|
2
|
+
import { ac as getPreferredColorScheme, ad as createMemo, ae as createComponent } from "./core-DMef9uHG.js";
|
|
3
3
|
var DevtoolsComponent = (props) => {
|
|
4
4
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
2
2
|
import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
|
|
3
|
-
import { T as TaskTypes, L as LegalEntityType, u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized, g as getTranslationKeysByPrefix, b as useI18nContext, c as useAnalyticsContext, S as StepProgressIndicator, B as Button } from "./core-
|
|
3
|
+
import { T as TaskTypes, L as LegalEntityType, u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized, g as getTranslationKeysByPrefix, b as useI18nContext, c as useAnalyticsContext, S as StepProgressIndicator, B as Button } from "./core-DMef9uHG.js";
|
|
4
4
|
import { useMemo } from "preact/compat";
|
|
5
5
|
var IntroductionScreens = ((IntroductionScreens2) => {
|
|
6
6
|
IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
|
|
7
|
-
IntroductionScreens2[IntroductionScreens2["COMPANY"] = TaskTypes.COMPANY] = "COMPANY";
|
|
8
7
|
IntroductionScreens2[IntroductionScreens2["INDIVIDUAL"] = TaskTypes.INDIVIDUAL] = "INDIVIDUAL";
|
|
9
8
|
IntroductionScreens2[IntroductionScreens2["DECISION_MAKER"] = TaskTypes.DECISION_MAKER] = "DECISION_MAKER";
|
|
10
9
|
IntroductionScreens2[IntroductionScreens2["SOLE_PROPRIETOR_COMPANY"] = TaskTypes.SOLE_PROPRIETOR_COMPANY] = "SOLE_PROPRIETOR_COMPANY";
|
|
@@ -23,7 +22,6 @@ const introductionScreensByLegalEntityType = {
|
|
|
23
22
|
],
|
|
24
23
|
[LegalEntityType.ORGANIZATION]: [
|
|
25
24
|
IntroductionScreens.PROLOGUE,
|
|
26
|
-
IntroductionScreens.COMPANY,
|
|
27
25
|
IntroductionScreens.DECISION_MAKER,
|
|
28
26
|
IntroductionScreens.ACCOUNT,
|
|
29
27
|
IntroductionScreens.EPILOGUE
|
|
@@ -37,7 +35,6 @@ const introductionScreensByLegalEntityType = {
|
|
|
37
35
|
],
|
|
38
36
|
[LegalEntityType.TRUST]: [
|
|
39
37
|
IntroductionScreens.PROLOGUE,
|
|
40
|
-
IntroductionScreens.COMPANY,
|
|
41
38
|
IntroductionScreens.INDIVIDUAL,
|
|
42
39
|
IntroductionScreens.DECISION_MAKER,
|
|
43
40
|
IntroductionScreens.TRUST,
|
|
@@ -48,7 +45,6 @@ const introductionScreensByLegalEntityType = {
|
|
|
48
45
|
// TODO SOE-2109: Update to use Unincorporated Partnership screens
|
|
49
46
|
[LegalEntityType.UNINCORPORATED_PARTNERSHIP]: [
|
|
50
47
|
IntroductionScreens.PROLOGUE,
|
|
51
|
-
IntroductionScreens.COMPANY,
|
|
52
48
|
IntroductionScreens.INDIVIDUAL,
|
|
53
49
|
IntroductionScreens.DECISION_MAKER,
|
|
54
50
|
IntroductionScreens.TRUST,
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
2
|
+
import { useState } from "preact/hooks";
|
|
3
|
+
import { U as useApiContext, V as useMutation, W as httpPost, b as useI18nContext, l as useToastContext, X as LoaderWrapper, h as FormHeader, Y as Checkbox, G as ActionBar, D as DropinLayout } from "./core-DMef9uHG.js";
|
|
4
|
+
const confirmReview = async (legalEntityId, url) => {
|
|
5
|
+
return httpPost({
|
|
6
|
+
loadingContext: url,
|
|
7
|
+
errorLevel: "warn",
|
|
8
|
+
errorMessage: `Failed to confirm data review`,
|
|
9
|
+
path: `legalEntities/${legalEntityId}/confirmDataReview`,
|
|
10
|
+
authentication: "jwt",
|
|
11
|
+
headers: {
|
|
12
|
+
"Content-Type": "application/json"
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
const useConfirmReview = (options) => {
|
|
17
|
+
const { legalEntityId, baseUrl } = useApiContext();
|
|
18
|
+
return useMutation({
|
|
19
|
+
mutationFn: () => {
|
|
20
|
+
return confirmReview(legalEntityId.value, baseUrl.value);
|
|
21
|
+
},
|
|
22
|
+
...options
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
function Review({ handleHomeClick }) {
|
|
26
|
+
const { i18n } = useI18nContext();
|
|
27
|
+
const [loadingStatus, setLoadingStatus] = useState();
|
|
28
|
+
const { showToast } = useToastContext();
|
|
29
|
+
const [hasConfirmed, setHasConfirmed] = useState(false);
|
|
30
|
+
const content = /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(LoaderWrapper, { status: loadingStatus, formOpacityWhenLoading: 0.3, showSpinner: false, children: [
|
|
31
|
+
/* @__PURE__ */ jsx(FormHeader, { heading: i18n.get("submitReviewOfYourData") }),
|
|
32
|
+
/* @__PURE__ */ jsx("span", { children: i18n.get("pleaseNote") }),
|
|
33
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
34
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
35
|
+
/* @__PURE__ */ jsx(
|
|
36
|
+
Checkbox,
|
|
37
|
+
{
|
|
38
|
+
checked: hasConfirmed,
|
|
39
|
+
onChange: setHasConfirmed,
|
|
40
|
+
label: i18n.get("byClickingSubmitReview"),
|
|
41
|
+
name: "confirmReviewData"
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
] }) });
|
|
45
|
+
const { mutateAsync: confirmReview2 } = useConfirmReview();
|
|
46
|
+
const onConfirmClick = async () => {
|
|
47
|
+
try {
|
|
48
|
+
setLoadingStatus("loading");
|
|
49
|
+
await confirmReview2();
|
|
50
|
+
setLoadingStatus("success");
|
|
51
|
+
showToast({ label: i18n.get("submitSuccessful"), type: "success" });
|
|
52
|
+
handleHomeClick();
|
|
53
|
+
} catch {
|
|
54
|
+
showToast({ label: i18n.get("submitFailed"), type: "error" });
|
|
55
|
+
} finally {
|
|
56
|
+
setLoadingStatus("success");
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const footer = /* @__PURE__ */ jsx(
|
|
60
|
+
ActionBar,
|
|
61
|
+
{
|
|
62
|
+
onHome: handleHomeClick,
|
|
63
|
+
homeButtonLabel: i18n.get("goToOverview"),
|
|
64
|
+
onNext: onConfirmClick,
|
|
65
|
+
nextButtonLabel: i18n.get("submitReview"),
|
|
66
|
+
nextButtonDisabled: !hasConfirmed
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
return /* @__PURE__ */ jsx(DropinLayout, { content, footer });
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
Review
|
|
73
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
2
|
+
import { useState } from "preact/hooks";
|
|
3
|
+
import { b as useI18nContext, d as useForm, e as Typography, F as Field, R as RadioGroupCard, B as Button, f as Svg, L as LegalEntityType } from "./core-DMef9uHG.js";
|
|
4
|
+
const setupAccountMethods = ["singpass", "manual"];
|
|
5
|
+
const setupAccountMethodFields = ["setupAccountMethod"];
|
|
6
|
+
const getSingpassSelectionDisabled = (legalEntityType) => {
|
|
7
|
+
switch (legalEntityType) {
|
|
8
|
+
case LegalEntityType.INDIVIDUAL:
|
|
9
|
+
case LegalEntityType.ORGANIZATION:
|
|
10
|
+
return false;
|
|
11
|
+
default:
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const legalEntityTypeToSelectionTranslationKeyMap = {
|
|
16
|
+
[LegalEntityType.INDIVIDUAL]: "retrieveMyInfo",
|
|
17
|
+
[LegalEntityType.ORGANIZATION]: "retrieveMyInfoBusiness"
|
|
18
|
+
};
|
|
19
|
+
const legalEntityTypeToSelectionDescriptionTranslationKeyMap = {
|
|
20
|
+
[LegalEntityType.INDIVIDUAL]: "getYourVerifiedDetailsInstantly",
|
|
21
|
+
[LegalEntityType.ORGANIZATION]: "getYourBusinessVerifiedDetails"
|
|
22
|
+
};
|
|
23
|
+
const getSetupAccountMethodMetadata = (legalEntityType) => {
|
|
24
|
+
const translationSingpassNameKey = legalEntityTypeToSelectionTranslationKeyMap[legalEntityType] ?? "retrieveMyInfoBusiness";
|
|
25
|
+
const translationSingpassDescriptionKey = legalEntityTypeToSelectionDescriptionTranslationKeyMap[legalEntityType] ?? "getYourBusinessVerifiedDetails";
|
|
26
|
+
const isSingpassSelectionDisabled = getSingpassSelectionDisabled(legalEntityType);
|
|
27
|
+
return {
|
|
28
|
+
singpass: {
|
|
29
|
+
name: translationSingpassNameKey,
|
|
30
|
+
description: translationSingpassDescriptionKey,
|
|
31
|
+
icon: /* @__PURE__ */ jsx(
|
|
32
|
+
Svg,
|
|
33
|
+
{
|
|
34
|
+
type: "image",
|
|
35
|
+
name: "singpass-verification-instant",
|
|
36
|
+
className: "adyen-kyc-setup-singpass-container"
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
provider: {
|
|
40
|
+
name: "singpass",
|
|
41
|
+
icon: /* @__PURE__ */ jsx(Svg, { type: "image", name: "singpass-logo", className: "adyen-kyc-singpass-logo-container" })
|
|
42
|
+
},
|
|
43
|
+
isOptionDisabled: isSingpassSelectionDisabled
|
|
44
|
+
},
|
|
45
|
+
manual: {
|
|
46
|
+
name: "enterTheDetailsYourself",
|
|
47
|
+
description: "youAlsoHaveToUploadSomeSupportingDocuments",
|
|
48
|
+
icon: /* @__PURE__ */ jsx(
|
|
49
|
+
Svg,
|
|
50
|
+
{
|
|
51
|
+
type: "image",
|
|
52
|
+
name: "singpass-verification-manual",
|
|
53
|
+
className: "adyen-kyc-setup-manual-container"
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
const SingpassSelection = (props) => {
|
|
60
|
+
const { legalEntityType, handleNextClick } = props;
|
|
61
|
+
const { i18n } = useI18nContext();
|
|
62
|
+
const [selectedMethod, setSelectedMethod] = useState();
|
|
63
|
+
const selectSetupAccountMethod = (method) => {
|
|
64
|
+
setSelectedMethod(method);
|
|
65
|
+
handleChangeFor("setupAccountMethod")(method);
|
|
66
|
+
};
|
|
67
|
+
const { handleChangeFor, data } = useForm({
|
|
68
|
+
...props,
|
|
69
|
+
schema: setupAccountMethodFields,
|
|
70
|
+
defaultData: {}
|
|
71
|
+
});
|
|
72
|
+
const methodsMetadata = getSetupAccountMethodMetadata(legalEntityType);
|
|
73
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-singpass-selection", children: [
|
|
74
|
+
/* @__PURE__ */ jsx("header", { className: "adyen-kyc-u-margin-bottom-32", children: /* @__PURE__ */ jsx(Typography, { el: "h2", variant: "title-m", children: i18n.get("howWouldYouLikeToSetUpYourAccount") }) }),
|
|
75
|
+
/* @__PURE__ */ jsx("form", { children: /* @__PURE__ */ jsx(Field, { name: "setupAccountMethod", children: (childProps) => /* @__PURE__ */ jsx(
|
|
76
|
+
RadioGroupCard,
|
|
77
|
+
{
|
|
78
|
+
...childProps,
|
|
79
|
+
name: "setupAccountMethod",
|
|
80
|
+
options: setupAccountMethods,
|
|
81
|
+
onSelect: selectSetupAccountMethod,
|
|
82
|
+
selected: data.setupAccountMethod,
|
|
83
|
+
optionId: (method) => method,
|
|
84
|
+
optionName: (method) => methodsMetadata[method].name,
|
|
85
|
+
optionDescription: (method) => methodsMetadata[method].description,
|
|
86
|
+
className: "adyen-kyc-field-verification-methods",
|
|
87
|
+
optionClassNames: () => ({
|
|
88
|
+
icon: "adyen-kyc-radio-group-card__illustration",
|
|
89
|
+
label: "adyen-kyc-field-verification-methods__card",
|
|
90
|
+
footer: "adyen-kyc-field-verification-methods__footer"
|
|
91
|
+
}),
|
|
92
|
+
renderOptionIcon: (method) => methodsMetadata[method].icon,
|
|
93
|
+
renderOptionFooter: (method) => {
|
|
94
|
+
var _a;
|
|
95
|
+
return (_a = methodsMetadata[method].provider) == null ? void 0 : _a.icon;
|
|
96
|
+
},
|
|
97
|
+
floatingRadio: true
|
|
98
|
+
}
|
|
99
|
+
) }) }),
|
|
100
|
+
/* @__PURE__ */ jsx(
|
|
101
|
+
Button,
|
|
102
|
+
{
|
|
103
|
+
disabled: !selectedMethod,
|
|
104
|
+
onClick: () => {
|
|
105
|
+
if (!selectedMethod) return;
|
|
106
|
+
handleNextClick(selectedMethod);
|
|
107
|
+
},
|
|
108
|
+
fullWidth: true,
|
|
109
|
+
children: i18n.get("next")
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
] }) });
|
|
113
|
+
};
|
|
114
|
+
export {
|
|
115
|
+
SingpassSelection
|
|
116
|
+
};
|
package/dist/adyenConfig.js
CHANGED