@adyen/kyc-components 3.71.3 → 3.73.0-beta.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/{AcceptTermsOfServiceComponent-Dsv4mY-k.js → AcceptTermsOfServiceComponent-Ib77t0y9.js} +11 -198
- package/dist/{AccountSetupRejected-Cz2iWdPE.js → AccountSetupRejected-Dcrt_Wjb.js} +3 -3
- package/dist/{BusinessDetailsDropin-CxJ7Ga0q.js → BusinessDetailsDropin-D10LCgSY.js} +199 -98
- package/dist/BusinessFinancingPage-CVRFAPxm.js +35 -0
- package/dist/{BusinessTypeSelection-wbCak0Us.js → BusinessTypeSelectionPage-DK4PY3_p.js} +47 -40
- package/dist/{CXEL7IU7-B9HOZi-H.js → CXEL7IU7-DyO75Uac.js} +3 -3
- package/dist/{CreateIndividualComponent-C3uFsTUT.js → CreateIndividualComponent-BiMYdvQq.js} +265 -1227
- package/dist/CreateTransferInstrumentComponent-CaBD_3yr.js +1082 -0
- package/dist/{CustomerSupport-BuxhbwRm.js → CustomerSupport-BqyayBTP.js} +4 -3
- package/dist/{DebugModal-B_DAGmya.js → DebugModal-CO_clhiW.js} +12 -11
- package/dist/DecisionMakerDetailsPage-C0wmo475.js +80 -0
- package/dist/{DecisionMakers-L6oYW0-J.js → DecisionMakers-B2rmqsfW.js} +6 -5
- package/dist/{EventEmitter-DTdpTyY7.js → EventEmitter-BmWcyurq.js} +1015 -1407
- package/dist/FormNavigation-W4SYacAX.js +205 -0
- package/dist/{HASRA6WW-CBmvzSwj.js → HASRA6WW-Cj_9-H1H.js} +2 -2
- package/dist/{I3HPI4QX-9ko0FQd6.js → I3HPI4QX-CCkDLYPH.js} +3 -3
- package/dist/{Introduction-C16zT64A.js → Introduction-DlsETOX7.js} +14 -6
- package/dist/LegalRepresentativeDetailsPage-Dbp83K05.js +55 -0
- package/dist/ManageIndividualComponent-D-47IZH6.js +190 -0
- package/dist/Modal-6j0jkYFX.js +135 -0
- package/dist/PayoutDetailsPage-CWAOATOb.js +57 -0
- package/dist/{Review-BbsJ9Iv_.js → Review-B0v_A189.js} +4 -3
- package/dist/RootBusinessDetailsPage-D_3xc6YN.js +43 -0
- package/dist/RootIndividualDetailsPage-CT-rsvpD.js +71 -0
- package/dist/{EmbedShell-DpZpuM-4.js → ShadowStylesRoot-DMxqA0py.js} +28 -10
- package/dist/{SingpassSelection-Biuh42TV.js → SingpassSelection-DB5BHBy1.js} +2 -2
- package/dist/SoleProprietorshipPage-CFZ3F57F.js +45 -0
- package/dist/{SourceOfFunds.module-CwVf62zO.js → SourceOfFunds.module-sL22I1gI.js} +2 -2
- package/dist/{SourceOfFundsDropin-Bz8cTP4R.js → SourceOfFundsPage-Tde0WbSG.js} +44 -20
- package/dist/Tag-DdkVScyr.js +41 -0
- package/dist/{TaskItemStatus-DzTphBn7.js → TaskItemStatus-DqNACVFe.js} +4 -32
- package/dist/{TaxReportingDropin-xDar-7mC.js → TaxReportingDropin-CPQZXr1j.js} +6 -5
- package/dist/{TrustOuter-2GEllVo3.js → TrustDetailsPage-BGkbFLaG.js} +20 -29
- package/dist/TrustMemberCompanyPage-CQi1xGDz.js +55 -0
- package/dist/TrustMemberIndividualPage-BI_XyXhS.js +60 -0
- package/dist/UnincorporatedPartnershipIndividualPage-B6gLv55I.js +60 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-jHwnxg3n.js +58 -0
- package/dist/adyen-individual.js +41 -0
- package/dist/adyen-kyc-components.js +3 -6
- package/dist/adyen-manage-individual.js +41 -0
- package/dist/adyen-terms-of-service.js +47 -0
- package/dist/adyen-terms-of-service.vue_vue_type_script_lang-CLUMW5mI.js +34 -0
- package/dist/adyen-transfer-instrument.js +59 -0
- package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-uEpG3KG3.js +45 -0
- package/dist/{bg-BG-CzEF3tzV.js → bg-BG-CZRQZyXO.js} +12 -5
- package/dist/{cs-CZ-TMjslGp_.js → cs-CZ-BbUFgifZ.js} +12 -5
- package/dist/{css-CypmaTn8.js → css-CFY1scQ9.js} +2 -2
- package/dist/{da-DK-DWzvDWZJ.js → da-DK-CP71BFS7.js} +12 -5
- package/dist/{de-DE-BtIL-7gp.js → de-DE-DY56JGZt.js} +12 -5
- package/dist/{el-GR-DHSSlqbw.js → el-GR-CnENEp5c.js} +12 -5
- package/dist/{es-ES-OwkE9-Cu.js → es-ES-dV62vQcV.js} +28 -21
- package/dist/{et-EE-DvixWnLd.js → et-EE-BBgAN3Wc.js} +12 -5
- package/dist/{fi-FI-DZiXWe_g.js → fi-FI-DVmGWIxn.js} +12 -5
- package/dist/{fr-FR-BBwiWhiT.js → fr-FR-VwG8Rg7R.js} +12 -5
- package/dist/{hr-HR-DJYofWKU.js → hr-HR-Bs_lxjxQ.js} +12 -5
- package/dist/{hu-HU-k9c6wZld.js → hu-HU-8dVSiOZM.js} +12 -5
- package/dist/{core-BsRrVyKB.js → index-D6YGuPb5.js} +810 -1908
- package/dist/{it-IT-oOwbWW3K.js → it-IT-DvwWMDl1.js} +12 -5
- package/dist/{ja-JP-CT3g8Hhn.js → ja-JP-BB6zzyEg.js} +12 -5
- package/dist/{json-DDReVYSW.js → json-RoVXbcQq.js} +2 -2
- package/dist/localizeDateString-DtxuKMqB.js +27 -0
- package/dist/{lt-LT-CVHIsEF8.js → lt-LT-BQtNojlb.js} +12 -5
- package/dist/{lv-LV-BFx0cvZ2.js → lv-LV-BpEw5uN5.js} +12 -5
- package/dist/mapExistingFile-CwT8TZ5D.js +870 -0
- package/dist/{nl-NL-rmSZu4Rf.js → nl-NL-vBEBXTP-.js} +12 -5
- package/dist/{no-NO-BOnQvimN.js → no-NO-BFhTqUoD.js} +12 -5
- package/dist/{pl-PL-5j22An4E.js → pl-PL-dsGZvzVf.js} +12 -5
- package/dist/{plaintext-Cjcgjaqv.js → plaintext-DpBLPLCO.js} +2 -2
- package/dist/{terms-of-service-preact.js → preact/adyen-individual.js} +4 -4
- package/dist/{individual-react.js → preact/adyen-manage-individual.js} +4 -4
- package/dist/{terms-of-service-react.js → preact/adyen-terms-of-service.js} +5 -4
- package/dist/preact/adyen-transfer-instrument.js +16 -0
- package/dist/{pt-PT-DP8U1qyu.js → pt-PT-BB38pZbh.js} +12 -5
- package/dist/{ro-RO-BTdtoC6P.js → ro-RO-BgxNxoxJ.js} +12 -5
- package/dist/{sk-SK-DYTx4mOB.js → sk-SK-rtDeCztl.js} +12 -5
- package/dist/{sl-SI-D8CiUN69.js → sl-SI-qoGCwUdU.js} +12 -5
- package/dist/style.css +1942 -1990
- package/dist/styles-CLV89_hH.js +1942 -1990
- package/dist/{sv-SE-Daslxeqr.js → sv-SE-f1T7PBSW.js} +12 -5
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -5
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -11
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +14 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +12 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -0
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -0
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +2 -0
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +8 -0
- package/dist/types/components/Business/forms/rules.d.ts +0 -1
- package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +8 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -3
- package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +7 -0
- package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +7 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +1 -0
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -1
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +20 -0
- package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +12 -0
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +16 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +4 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +3 -5
- package/dist/types/components/Shared/forms/DocumentUpload/DocumentUpload.d.ts +1 -1
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +5 -0
- package/dist/types/components/Shared/pages/BusinessTypeSelectionPage.d.ts +2 -0
- package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +7 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +0 -6
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -0
- package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +8 -0
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +10 -0
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +11 -0
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +16 -0
- package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +9 -0
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +4 -7
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +0 -2
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +16 -0
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +11 -0
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +8 -0
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/UnincorporatedPartnershipMembersOverview.d.ts +1 -5
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRoleAndType.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
- package/dist/types/context/AnalyticsContext/AnalyticsProvider.d.ts +2 -2
- package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +1 -1
- package/dist/types/context/ExperimentContext/types.d.ts +6 -6
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +3 -4
- package/dist/types/core/environment/resolveEnvironment.d.ts +1 -0
- package/dist/types/core/models/api/document.d.ts +1 -1
- package/dist/types/embeds/ShadowStylesRoot.d.ts +3 -0
- package/dist/types/embeds/baseEmbedProps.d.ts +30 -0
- package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +3 -0
- package/dist/types/embeds/individual/adyen-individual.types.d.ts +30 -0
- package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +3 -0
- package/dist/types/embeds/manage-individual/adyen-manage-individual.d.ts +1 -0
- package/dist/types/embeds/manage-individual/adyen-manage-individual.types.d.ts +29 -0
- package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +3 -0
- package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +30 -0
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +3 -0
- package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +36 -0
- package/dist/types/hooks/useDataConflicts.d.ts +1 -5
- package/dist/types/stores/globalStore/taskTypes.d.ts +0 -1
- package/dist/types/utils/country.d.ts +3 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getDisplayErrorMessage.d.ts +3 -0
- package/dist/useToastContext-DiQ_PGrE.js +33 -0
- package/dist/{utils-Fkk087z-.js → utils-Bl8l2XY4.js} +4 -4
- package/dist/vue/adyen-individual.js +43 -0
- package/dist/vue/adyen-manage-individual.js +46 -0
- package/dist/vue/adyen-terms-of-service.js +26 -0
- package/dist/vue/adyen-transfer-instrument.js +28 -0
- package/dist/{yaml-GnQQmt7i.js → yaml-DEzkYiMR.js} +2 -2
- package/package.json +28 -61
- package/dist/adyenConfig.js +0 -34
- package/dist/individual-preact.js +0 -15
- package/dist/individual-vue.js +0 -35
- package/dist/individual.js +0 -58
- package/dist/listToRecord-CO3M1Q74.js +0 -19
- package/dist/terms-of-service.js +0 -58
- package/dist/transfer-instrument-preact.js +0 -32
- package/dist/transfer-instrument-react.js +0 -32
- package/dist/transfer-instrument-vue.js +0 -41
- package/dist/transfer-instrument.js +0 -38
- package/dist/types/components/BankAccount/forms/PayoutDetails/utils.d.ts +0 -2
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +0 -22
- package/dist/types/components/Individual/forms/Individual/IndividualOuter.d.ts +0 -26
- package/dist/types/components/Trust/tasks/TrustDropin/TrustOuter.d.ts +0 -10
- package/dist/types/components/ui/atoms/List/List.d.ts +0 -9
- package/dist/types/embeds/adyenConfig.d.ts +0 -22
- package/dist/types/embeds/individual/individual.types.d.ts +0 -12
- package/dist/types/embeds/individual/preact/Individual.d.ts +0 -15
- package/dist/types/embeds/individual/react/Individual.d.ts +0 -20
- package/dist/types/embeds/individual/vue/individual.types.d.ts +0 -9
- package/dist/types/embeds/terms-of-service/preact/TermsOfService.d.ts +0 -10
- package/dist/types/embeds/terms-of-service/react/TermsOfService.d.ts +0 -20
- package/dist/types/embeds/terms-of-service/terms-of-service.types.d.ts +0 -8
- package/dist/types/embeds/transfer-instrument/preact/TransferInstrument.d.ts +0 -15
- package/dist/types/embeds/transfer-instrument/react/TransferInstrument.d.ts +0 -20
- package/dist/types/embeds/transfer-instrument/transfer-instrument.types.d.ts +0 -17
- package/dist/types/embeds/transfer-instrument/vue/transfer-instrument.types.d.ts +0 -9
- package/dist/types/embeds/types.d.ts +0 -19
- package/dist/types/embeds/utils.d.ts +0 -7
- package/dist/utils-Du6OO4ZK.js +0 -27
package/dist/{AcceptTermsOfServiceComponent-Dsv4mY-k.js → AcceptTermsOfServiceComponent-Ib77t0y9.js}
RENAMED
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "df9d2a86-69a3-4fcf-b906-0c035548ce27", e._sentryDebugIdIdentifier = "sentry-dbid-df9d2a86-69a3-4fcf-b906-0c035548ce27");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useState, useEffect, useCallback } from "preact/hooks";
|
|
12
|
-
import {
|
|
12
|
+
import { u as useApiContext, y as useInvalidateRootLegalEntity, V as useMutation, U as httpPost, a as useQuery, h as httpGet, a6 as skipToken, N as Icon, bd as AlertIcon, a1 as createLogger, b as useI18nContext, x as useAnalyticsContext, al as useExperimentsContext, n as useForm, X as Alert, O as Button, aj as LoaderWrapper, F as Field, S as Select, b9 as Checkbox, aY as ActionBar, L as LegalEntityType, av as getOwnSignatories, a7 as doesLegalEntityRequiresLegalRepresentative, a5 as getLegalRepresentative, P as useLegalEntity, aq as ROOT_LE, M as Loader, ah as TaskTypes } from "./EventEmitter-BmWcyurq.js";
|
|
13
|
+
import { u as useToastContext, M as MaybeModal, S as Spacer } from "./useToastContext-DiQ_PGrE.js";
|
|
14
|
+
import { b as ModalContent, c as ModalFooter } from "./Modal-6j0jkYFX.js";
|
|
15
|
+
import { S as StepProgressIndicator, F as FormNavigation } from "./FormNavigation-W4SYacAX.js";
|
|
13
16
|
import cx from "classnames";
|
|
14
17
|
import { defineSlots } from "named-slots";
|
|
18
|
+
import { l as localizeDateString } from "./localizeDateString-DtxuKMqB.js";
|
|
15
19
|
const acceptTermsOfService = async (legalEntityId, baseUrl, termsOfServiceDocumentId, data) => {
|
|
16
20
|
return httpPost(
|
|
17
21
|
{
|
|
@@ -106,69 +110,10 @@ const useTermsOfService = (data, options) => {
|
|
|
106
110
|
});
|
|
107
111
|
};
|
|
108
112
|
const outlinedIcon = "adyen-kyc-outlined-icon";
|
|
109
|
-
const styles$1 = {
|
|
110
|
-
outlinedIcon
|
|
111
|
-
};
|
|
112
|
-
const OutlinedIcon = ({ name }) => /* @__PURE__ */ jsx("div", { className: styles$1.outlinedIcon, children: /* @__PURE__ */ jsx(Icon, { name }) });
|
|
113
|
-
const range = (stop, start = 0, step = 1) => Array.from({ length: (stop - start) / step + 1 }, (_, i) => start + i * step);
|
|
114
|
-
const progressBar = "adyen-kyc-progress-bar";
|
|
115
|
-
const progressBarThick = "adyen-kyc-progress-bar-thick";
|
|
116
|
-
const progressStep = "adyen-kyc-progress-step";
|
|
117
|
-
const progressStepActive = "adyen-kyc-progress-step-active";
|
|
118
|
-
const progressBarCircles = "adyen-kyc-progress-bar-circles";
|
|
119
113
|
const styles = {
|
|
120
|
-
|
|
121
|
-
progressBarThick,
|
|
122
|
-
progressStep,
|
|
123
|
-
progressStepActive,
|
|
124
|
-
progressBarCircles
|
|
125
|
-
};
|
|
126
|
-
const shouldHighlight = (active, current, fillBefore) => !fillBefore ? active === current : active >= current;
|
|
127
|
-
const StepProgressIndicator = ({
|
|
128
|
-
activeStepIndex,
|
|
129
|
-
stepsCount,
|
|
130
|
-
fillBefore,
|
|
131
|
-
thick,
|
|
132
|
-
circles
|
|
133
|
-
}) => {
|
|
134
|
-
const { i18n } = useI18nContext();
|
|
135
|
-
if (stepsCount === 0 || stepsCount > 10) {
|
|
136
|
-
return /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get("XOfYSteps", {
|
|
137
|
-
values: { currentStep: activeStepIndex, totalSteps: stepsCount }
|
|
138
|
-
}) });
|
|
139
|
-
}
|
|
140
|
-
return /* @__PURE__ */ jsx(
|
|
141
|
-
"div",
|
|
142
|
-
{
|
|
143
|
-
"aria-label": `Step ${activeStepIndex} of ${stepsCount}`,
|
|
144
|
-
className: styles.progress,
|
|
145
|
-
role: "group",
|
|
146
|
-
children: /* @__PURE__ */ jsx(
|
|
147
|
-
"ol",
|
|
148
|
-
{
|
|
149
|
-
className: cx(styles.progressBar, {
|
|
150
|
-
[styles.progressBarThick]: thick,
|
|
151
|
-
[styles.progressBarCircles]: circles
|
|
152
|
-
}),
|
|
153
|
-
children: range(stepsCount).map((stepNumber) => {
|
|
154
|
-
const isHighlighted = shouldHighlight(activeStepIndex, stepNumber, fillBefore);
|
|
155
|
-
return /* @__PURE__ */ jsx(
|
|
156
|
-
"li",
|
|
157
|
-
{
|
|
158
|
-
"aria-current": isHighlighted ? "step" : void 0,
|
|
159
|
-
className: cx(styles.progressStep, {
|
|
160
|
-
[styles.progressStepActive]: isHighlighted
|
|
161
|
-
}),
|
|
162
|
-
children: /* @__PURE__ */ jsx("span", { className: globalStyles.screenReaderOnly, children: `Step ${stepNumber}: ${stepNumber < activeStepIndex ? "completed" : "not completed"}` })
|
|
163
|
-
},
|
|
164
|
-
stepNumber
|
|
165
|
-
);
|
|
166
|
-
})
|
|
167
|
-
}
|
|
168
|
-
)
|
|
169
|
-
}
|
|
170
|
-
);
|
|
114
|
+
outlinedIcon
|
|
171
115
|
};
|
|
116
|
+
const OutlinedIcon = ({ name }) => /* @__PURE__ */ jsx("div", { className: styles.outlinedIcon, children: /* @__PURE__ */ jsx(Icon, { name }) });
|
|
172
117
|
const FormEndState = ({ variant = "success", children, className }) => {
|
|
173
118
|
const Slot = defineSlots(children, ["title", "content", "icon", "actions"]);
|
|
174
119
|
return /* @__PURE__ */ jsxs(
|
|
@@ -185,136 +130,6 @@ const FormEndState = ({ variant = "success", children, className }) => {
|
|
|
185
130
|
}
|
|
186
131
|
);
|
|
187
132
|
};
|
|
188
|
-
const FormNavigationItem = ({
|
|
189
|
-
form,
|
|
190
|
-
isActive,
|
|
191
|
-
onClick,
|
|
192
|
-
hasVerificationErrors
|
|
193
|
-
}) => {
|
|
194
|
-
const { i18n } = useI18nContext();
|
|
195
|
-
const hasError = form.hasServerValidationErrors || hasVerificationErrors;
|
|
196
|
-
const handleKeyDown = (e) => {
|
|
197
|
-
if (onClick && (e.key === KEYBOARD_KEYS.enter || e.key === KEYBOARD_KEYS.space)) {
|
|
198
|
-
e.preventDefault();
|
|
199
|
-
onClick();
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
return /* @__PURE__ */ jsx(
|
|
203
|
-
"li",
|
|
204
|
-
{
|
|
205
|
-
"aria-label": i18n.get(form.formName),
|
|
206
|
-
"aria-current": isActive,
|
|
207
|
-
className: cx("adyen-kyc-form-navigation__item", {
|
|
208
|
-
"adyen-kyc-form-navigation__item--active": isActive,
|
|
209
|
-
"adyen-kyc-form-navigation__item--valid": form.isValid,
|
|
210
|
-
"adyen-kyc-form-navigation__item--isnav": Boolean(onClick)
|
|
211
|
-
}),
|
|
212
|
-
children: /* @__PURE__ */ jsxs(
|
|
213
|
-
"button",
|
|
214
|
-
{
|
|
215
|
-
type: "button",
|
|
216
|
-
onClick,
|
|
217
|
-
onKeyDown: onClick ? handleKeyDown : void 0,
|
|
218
|
-
tabIndex: onClick ? 0 : void 0,
|
|
219
|
-
children: [
|
|
220
|
-
i18n.get(form.formName),
|
|
221
|
-
form.hasServerValidationErrors && /* @__PURE__ */ jsxs("span", { className: "adyen-kyc-form-navigation__item-icon adyen-kyc-form-navigation__item-icon--error", children: [
|
|
222
|
-
/* @__PURE__ */ jsx(Icon, { name: "warning" }),
|
|
223
|
-
/* @__PURE__ */ jsx("span", { className: globalStyles.screenReaderOnly, children: i18n.get("formStepInvalid") })
|
|
224
|
-
] }),
|
|
225
|
-
form.isValid && !hasError && /* @__PURE__ */ jsxs("span", { className: "adyen-kyc-form-navigation__item-icon adyen-kyc-form-navigation__item-icon--success", children: [
|
|
226
|
-
/* @__PURE__ */ jsx(Icon, { name: "checkmark-small" }),
|
|
227
|
-
/* @__PURE__ */ jsx("span", { className: globalStyles.screenReaderOnly, children: i18n.get("formStepCompleted") })
|
|
228
|
-
] })
|
|
229
|
-
]
|
|
230
|
-
}
|
|
231
|
-
)
|
|
232
|
-
},
|
|
233
|
-
form.formId
|
|
234
|
-
);
|
|
235
|
-
};
|
|
236
|
-
function FormNavigation({
|
|
237
|
-
forms,
|
|
238
|
-
activeForm,
|
|
239
|
-
gotoForm,
|
|
240
|
-
validateForm,
|
|
241
|
-
className,
|
|
242
|
-
taskName,
|
|
243
|
-
verificationErrors,
|
|
244
|
-
trackNavigation = noop
|
|
245
|
-
}) {
|
|
246
|
-
const { i18n } = useI18nContext();
|
|
247
|
-
const userEvents = useAnalyticsContext();
|
|
248
|
-
const taskNameTranslated = i18n.get(taskName);
|
|
249
|
-
const getFormIndex = (form) => forms.findIndex((f) => f.formId === form.formId);
|
|
250
|
-
const goToForm = (form) => () => {
|
|
251
|
-
if (form.formId === activeForm.formId) return;
|
|
252
|
-
gotoForm(getFormIndex(form));
|
|
253
|
-
trackNavigation({
|
|
254
|
-
userEvents,
|
|
255
|
-
actionType: "navigate",
|
|
256
|
-
toForm: form.formName,
|
|
257
|
-
label: form.formName,
|
|
258
|
-
returnValue: "success"
|
|
259
|
-
});
|
|
260
|
-
};
|
|
261
|
-
const getNavigateHandler = (form, activeForm2) => {
|
|
262
|
-
const priorForms = forms.slice(0, getFormIndex(form));
|
|
263
|
-
const allPriorFormsValid = priorForms.every((subForm) => subForm.isValid);
|
|
264
|
-
if (allPriorFormsValid || !validateForm) {
|
|
265
|
-
return goToForm(form);
|
|
266
|
-
}
|
|
267
|
-
return activeForm2.isValid ? void 0 : () => {
|
|
268
|
-
trackNavigation({
|
|
269
|
-
userEvents,
|
|
270
|
-
actionType: "navigate",
|
|
271
|
-
toForm: form.formName,
|
|
272
|
-
label: form.formName,
|
|
273
|
-
returnValue: "validation error"
|
|
274
|
-
});
|
|
275
|
-
validateForm();
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
return /* @__PURE__ */ jsxs("div", { className: cx("adyen-kyc-form-navigation", className), children: [
|
|
279
|
-
/* @__PURE__ */ jsx(
|
|
280
|
-
Typography,
|
|
281
|
-
{
|
|
282
|
-
el: "h3",
|
|
283
|
-
variant: "body",
|
|
284
|
-
color: "secondary",
|
|
285
|
-
className: "adyen-kyc-form-navigation__header",
|
|
286
|
-
children: taskNameTranslated
|
|
287
|
-
}
|
|
288
|
-
),
|
|
289
|
-
forms && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
290
|
-
/* @__PURE__ */ jsx(
|
|
291
|
-
Typography,
|
|
292
|
-
{
|
|
293
|
-
color: "tertiary",
|
|
294
|
-
variant: "caption-stronger",
|
|
295
|
-
className: "adyen-kyc-form-navigation__step-count",
|
|
296
|
-
children: i18n.get("stepsX/YofForm", {
|
|
297
|
-
values: {
|
|
298
|
-
activeFormIndex: getFormIndex(activeForm) + 1,
|
|
299
|
-
totalForms: forms.length,
|
|
300
|
-
taskNameTranslated
|
|
301
|
-
}
|
|
302
|
-
})
|
|
303
|
-
}
|
|
304
|
-
),
|
|
305
|
-
/* @__PURE__ */ jsx("ul", { className: "adyen-kyc-form-navigation__items", children: forms.map((form) => /* @__PURE__ */ jsx(
|
|
306
|
-
FormNavigationItem,
|
|
307
|
-
{
|
|
308
|
-
form,
|
|
309
|
-
isActive: form.formId === activeForm.formId,
|
|
310
|
-
onClick: getNavigateHandler(form, activeForm),
|
|
311
|
-
hasVerificationErrors: Boolean((verificationErrors == null ? void 0 : verificationErrors[form.formId]) ?? false)
|
|
312
|
-
},
|
|
313
|
-
form.formId
|
|
314
|
-
)) })
|
|
315
|
-
] })
|
|
316
|
-
] });
|
|
317
|
-
}
|
|
318
133
|
const downloadFile = async (base64, filename) => {
|
|
319
134
|
saveBlobAsFile(base64ToBlob(base64), filename);
|
|
320
135
|
};
|
|
@@ -1854,12 +1669,10 @@ const AcceptTermsOfServiceComponent$1 = /* @__PURE__ */ Object.freeze(/* @__PURE
|
|
|
1854
1669
|
export {
|
|
1855
1670
|
AcceptTermsOfServiceComponent as A,
|
|
1856
1671
|
ContractViewer as C,
|
|
1857
|
-
|
|
1672
|
+
FormEndState as F,
|
|
1858
1673
|
OutlinedIcon as O,
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
useTermsOfServiceStatus as b,
|
|
1862
|
-
AcceptTermsOfServiceComponent$1 as c,
|
|
1674
|
+
useTermsOfServiceStatus as a,
|
|
1675
|
+
AcceptTermsOfServiceComponent$1 as b,
|
|
1863
1676
|
downloadFile as d,
|
|
1864
1677
|
useTermsOfServiceAcceptanceInfos as u
|
|
1865
1678
|
};
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9e35e36d-c14d-47a8-97aa-d7375b3fafea", e._sentryDebugIdIdentifier = "sentry-dbid-9e35e36d-c14d-47a8-97aa-d7375b3fafea");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
12
|
-
import { D as DropinLayout } from "./
|
|
11
|
+
import { b as useI18nContext, bd as AlertIcon, aK as FormHeader } from "./EventEmitter-BmWcyurq.js";
|
|
12
|
+
import { D as DropinLayout } from "./index-D6YGuPb5.js";
|
|
13
13
|
function AccountSetupRejected() {
|
|
14
14
|
const { i18n } = useI18nContext();
|
|
15
15
|
const content = /* @__PURE__ */ jsxs("div", { children: [
|