@adyen/kyc-components 3.70.0-beta.0 → 3.70.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/{AU-DBnla6IS.js → AU-CaovX9P8.js} +4 -5
- package/dist/{AcceptTermsOfServiceComponent-DGnbaEif.js → AcceptTermsOfServiceComponent-D-HcDOBq.js} +200 -13
- package/dist/{AccountSetupRejected-BUjkuj8y.js → AccountSetupRejected-voqgiesN.js} +3 -3
- package/dist/{BE-By7sRfJq.js → BE-H45zzgu4.js} +3 -2
- package/dist/{BR-CG-ZSQQz.js → BR-Dmkd5VjU.js} +5 -5
- package/dist/BusinessDetailsDropin-CnGwMWvN.js +2406 -0
- package/dist/{BusinessTypeSelection-DqYdtKWT.js → BusinessTypeSelection-DQr-2_Iq.js} +31 -30
- package/dist/{CH-DNjTl_X_.js → CH-DVyjmrDH.js} +4 -2
- package/dist/{CXEL7IU7-D4uuriQj.js → CXEL7IU7-Do0b5BzU.js} +3 -3
- package/dist/{CZ-DDucwl8A.js → CZ-1E7Zx2il.js} +3 -4
- package/dist/CreateIndividualComponent-BuBNDvhx.js +7204 -0
- package/dist/{CustomerSupport-Dt_GbO2W.js → CustomerSupport-BJrkWmYp.js} +4 -4
- package/dist/{DE-LKZHA8bh.js → DE-D7HKgI77.js} +6 -5
- package/dist/{DK-moHaAY_C.js → DK-x6M9-ek-.js} +2 -4
- package/dist/{DebugModal-DqSAxc2y.js → DebugModal-DdFbk-rz.js} +11 -10
- package/dist/{DecisionMakers-DCP-NbPE.js → DecisionMakers-DghodKJR.js} +5 -5
- package/dist/{ES-BOW3pjTD.js → ES-CeohntGo.js} +6 -7
- package/dist/{EmbedShell-D1F1J3bv.js → EmbedShell-BaZnwexg.js} +5 -6
- package/dist/{EventEmitter-B5nDiK-t.js → EventEmitter-Cfyz1mmg.js} +2742 -3396
- package/dist/{FI-gB1Mh_9c.js → FI-BOex4MFx.js} +3 -5
- package/dist/{FR-iSfxCiGj.js → FR-CAxkckai.js} +4 -4
- package/dist/{GB-UYrtNfT0.js → GB-DUnW-a4M.js} +2 -4
- package/dist/{HASRA6WW-yCLwR-7b.js → HASRA6WW-CLlxPThM.js} +2 -2
- package/dist/{HK-BsLgqwJt.js → HK-eKVHN8Vg.js} +4 -4
- package/dist/{HR-BOrmO4s8.js → HR-BHhcnUGU.js} +3 -3
- package/dist/{HU-DSPD5z5O.js → HU-hfSSMbei.js} +1 -4
- package/dist/{I3HPI4QX-DmhzJNXt.js → I3HPI4QX-BW3ApIxs.js} +3 -3
- package/dist/{IE-BNxtcUkX.js → IE-BN3Eiv5M.js} +2 -2
- package/dist/{IT-CjMPVtH8.js → IT-CBt6Os6J.js} +4 -7
- package/dist/{Introduction-Dhm3WEef.js → Introduction-C8dJNT23.js} +5 -3
- package/dist/{LT-CUUN_JaO.js → LT-Dkevn83h.js} +2 -4
- package/dist/{NL-C3ArXgfX.js → NL-zm__7LWV.js} +3 -3
- package/dist/{NO-yBcMewGZ.js → NO-BAcMdKUJ.js} +5 -4
- package/dist/NZ-DDRknBQk.js +20 -0
- package/dist/{PL-DGMOmdSy.js → PL-D6_6gquq.js} +6 -5
- package/dist/{PT-D3NkDIsX.js → PT-C2dln191.js} +3 -3
- package/dist/{RO-Bo0cNUJf.js → RO-C_utD--1.js} +2 -4
- package/dist/{Review-B5Drv-UX.js → Review-DbvMjmRe.js} +3 -3
- package/dist/{SE-W4QBeQtP.js → SE-BqGOP1F1.js} +2 -4
- package/dist/{SI-DoClLcmM.js → SI-DBADzvYO.js} +3 -6
- package/dist/{SK-DmiByqvu.js → SK-DamCBYsZ.js} +2 -4
- package/dist/{SingpassSelection-Djfz5Puu.js → SingpassSelection-CJRAISeY.js} +2 -2
- package/dist/SourceOfFunds.module-BhujhW0d.js +132 -0
- package/dist/SourceOfFundsDropin-NxYXl3NE.js +3041 -0
- package/dist/{listToRecord-BwWy8lby.js → TaskItemStatus-ChW10MdE.js} +3 -11
- package/dist/{TaxReportingDropin-CpStwino.js → TaxReportingDropin-_MxQClQd.js} +27 -45
- package/dist/TrustDropin-BcxdDqKa.js +706 -0
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +3 -3
- package/dist/core-BwyfkHN1.js +8426 -0
- package/dist/{css-CWOdPM3V.js → css-CcrdHRiR.js} +2 -2
- package/dist/en-US-QbdqemZi.js +202 -0
- package/dist/formatCurrency-CMOSdJMB.js +29 -0
- package/dist/individual.js +8 -6
- package/dist/ja-JP-DU7yCJYq.js +202 -0
- package/dist/{json-B7P51psT.js → json-jBhgszKy.js} +2 -2
- package/dist/listToRecord-CO3M1Q74.js +19 -0
- package/dist/{plaintext-C3KsPoAZ.js → plaintext-RpKLxlRt.js} +2 -2
- package/dist/style.css +1019 -945
- package/dist/styles-CLV89_hH.js +1014 -940
- package/dist/terms-of-service.js +8 -6
- package/dist/toCapitalized-Bq7laD0b.js +13 -0
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +0 -5
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +9 -3
- package/dist/types/api/queryKeys.d.ts +3 -1
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +5 -4
- package/dist/types/components/BankAccount/forms/PayoutAccount/payoutAccountFormat.d.ts +2 -0
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +2 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -0
- package/dist/types/components/EFP/tasks/TaxReportingDropin/types.d.ts +1 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerification/idVerificationProviderId.d.ts +1 -0
- package/dist/types/components/Individual/forms/Individual/IndividualOuter.d.ts +26 -0
- package/dist/types/components/Individual/forms/Individual/types.d.ts +3 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +3 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +4 -2
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +4 -0
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -3
- 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/AllowedCountryGate/AllowedCountryGate.d.ts +7 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +3 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +23 -0
- package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +1 -0
- package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +1 -0
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +1 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -0
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +4 -9
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
- package/dist/types/components/Trust/utils/trustUtil.d.ts +2 -2
- package/dist/types/components/index.d.ts +1 -2
- package/dist/types/components/ui/atoms/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/types/components/ui/atoms/ProgressBar/ProgressBar.types.d.ts +5 -0
- package/dist/types/components/ui/atoms/StepProgressIndicator/StepProgressIndicator.d.ts +1 -0
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +2 -3
- package/dist/types/core/UIElement/UIElement.d.ts +1 -2
- package/dist/types/core/analytics.d.ts +1 -1
- package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
- package/dist/types/core/models/api/trust.d.ts +2 -2
- package/dist/types/core/models/errors/entity-problems.d.ts +5 -3
- package/dist/types/embeds/utils.d.ts +2 -2
- package/dist/types/hooks/useAccountHolder.d.ts +1 -1
- package/dist/types/hooks/useForm/types.d.ts +0 -1
- package/dist/types/hooks/useTrustMembers.d.ts +2 -0
- package/dist/types/hooks/useUnincorporatedPartnershipMembers.d.ts +2 -0
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +1 -1
- package/dist/types/stores/globalStore/globalStore.d.ts +18 -40
- package/dist/types/utils/api/getProblemsForEntity.d.ts +5 -0
- package/dist/types/utils/api/processValidationErrors.d.ts +2 -5
- package/dist/types/utils/api/useCapabilities.d.ts +2 -0
- package/dist/types/utils/entityAssociationUtil.d.ts +2 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getLegalEntityCountry.d.ts +2 -2
- package/dist/types/utils/signals/useSignalValue.d.ts +40 -0
- package/dist/utils-BI1ZfPqr.js +228 -0
- package/dist/{utils-Do7EwrWz.js → utils-C6fwKsVX.js} +7 -4
- package/dist/{yaml-Cv3Lis4l.js → yaml-BtUk5udq.js} +2 -2
- package/package.json +2 -4
- package/dist/CreateIndividualComponent-DArsdfFf.js +0 -3697
- package/dist/core-BY7J00UO.js +0 -18119
- package/dist/types/components/Individual/forms/Individual/IndividualExperimentWrapper.d.ts +0 -3
- package/dist/types/components/Individual/tasks/IndividualDropin/mandatoryFields.d.ts +0 -5
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/mandatoryFields.d.ts +0 -5
- package/dist/types/context/CoreContext/CoreContext.d.ts +0 -17
- package/dist/types/context/CoreContext/CoreProvider.d.ts +0 -7
- package/dist/types/context/CoreContext/useCoreContext.d.ts +0 -2
- package/dist/types/core/models/api/trust-types-value.d.ts +0 -21
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c8275c22-2a7f-4b43-a801-90b530e91a2c", e._sentryDebugIdIdentifier = "sentry-dbid-c8275c22-2a7f-4b43-a801-90b530e91a2c");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -12,12 +12,11 @@ const AU = {
|
|
|
12
12
|
"incorporated association (Inc)"
|
|
13
13
|
],
|
|
14
14
|
partnershipIncorporated: [
|
|
15
|
-
"incorporated limited partnership (ILP)"
|
|
16
|
-
"limited liability partnership (LLP)"
|
|
15
|
+
"incorporated limited partnership (ILP)"
|
|
17
16
|
],
|
|
18
17
|
partnershipUnincorporated: [
|
|
19
|
-
"
|
|
20
|
-
"
|
|
18
|
+
"limited partnership (LP)",
|
|
19
|
+
"general partnership (GP)"
|
|
21
20
|
]
|
|
22
21
|
};
|
|
23
22
|
export {
|
package/dist/{AcceptTermsOfServiceComponent-DGnbaEif.js → AcceptTermsOfServiceComponent-D-HcDOBq.js}
RENAMED
|
@@ -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] = "8c0286d8-0bc1-429d-8bd7-c4a8026a5c62", e._sentryDebugIdIdentifier = "sentry-dbid-8c0286d8-0bc1-429d-8bd7-c4a8026a5c62");
|
|
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, X as useInvalidateRootLegalEntity, c as useMutation, h as httpPost, a as useQuery, b as httpGet, a8 as skipToken, V as Icon, e as useI18nContext, J as Typography, dm as globalStyles, bv as AlertIcon, db as KEYBOARD_KEYS, f as useAnalyticsContext, ak as noop, a3 as createLogger, t as useToastContext, g as useExperimentsContext, aB as useForm, Z as Alert, B as Button, bc as localizeDateString, L as LoaderWrapper, aH as Field, b7 as Select, b8 as Checkbox, aT as ActionBar, M as MaybeModal, i as ModalContent, k as ModalFooter, S as Spacer, O as LegalEntityType, ar as getOwnSignatories, a9 as doesLegalEntityRequiresLegalRepresentative, a7 as getLegalRepresentative, N as useLegalEntity, Q as Loader, T as TaskTypes, W as ROOT_LE } from "./EventEmitter-Cfyz1mmg.js";
|
|
13
13
|
import cx from "classnames";
|
|
14
14
|
import { defineSlots } from "named-slots";
|
|
15
15
|
const acceptTermsOfService = async (legalEntityId, baseUrl, termsOfServiceDocumentId, data) => {
|
|
@@ -106,10 +106,69 @@ const useTermsOfService = (data, options) => {
|
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
108
|
const outlinedIcon = "adyen-kyc-outlined-icon";
|
|
109
|
-
const styles = {
|
|
109
|
+
const styles$1 = {
|
|
110
110
|
outlinedIcon
|
|
111
111
|
};
|
|
112
|
-
const OutlinedIcon = ({ name }) => /* @__PURE__ */ jsx("div", { className: styles.outlinedIcon, children: /* @__PURE__ */ jsx(Icon, { name }) });
|
|
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
|
+
const styles = {
|
|
120
|
+
progressBar,
|
|
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
|
+
);
|
|
171
|
+
};
|
|
113
172
|
const FormEndState = ({ variant = "success", children, className }) => {
|
|
114
173
|
const Slot = defineSlots(children, ["title", "content", "icon", "actions"]);
|
|
115
174
|
return /* @__PURE__ */ jsxs(
|
|
@@ -126,6 +185,136 @@ const FormEndState = ({ variant = "success", children, className }) => {
|
|
|
126
185
|
}
|
|
127
186
|
);
|
|
128
187
|
};
|
|
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
|
+
}
|
|
129
318
|
const downloadFile = async (base64, filename) => {
|
|
130
319
|
saveBlobAsFile(base64ToBlob(base64), filename);
|
|
131
320
|
};
|
|
@@ -1587,7 +1776,7 @@ function ServiceAgreementDropin({
|
|
|
1587
1776
|
}
|
|
1588
1777
|
function AcceptTermsOfServiceComponent({
|
|
1589
1778
|
legalEntityId,
|
|
1590
|
-
modalView,
|
|
1779
|
+
modalView = false,
|
|
1591
1780
|
asEmbedded = true,
|
|
1592
1781
|
/* triggered when X button clicked, or at the end, on Finish button click */
|
|
1593
1782
|
onClose,
|
|
@@ -1596,7 +1785,6 @@ function AcceptTermsOfServiceComponent({
|
|
|
1596
1785
|
onAccept,
|
|
1597
1786
|
handleAddSigner
|
|
1598
1787
|
}) {
|
|
1599
|
-
const { isModalView, setIsModalView } = useCoreContext();
|
|
1600
1788
|
if (!legalEntityId) {
|
|
1601
1789
|
throw new Error("Must provide at-least a legalEntityId");
|
|
1602
1790
|
}
|
|
@@ -1604,13 +1792,10 @@ function AcceptTermsOfServiceComponent({
|
|
|
1604
1792
|
unAcceptedTermsOfServiceTypes: [],
|
|
1605
1793
|
acceptedTermsOfServices: []
|
|
1606
1794
|
});
|
|
1607
|
-
const { data: legalEntity } = useLegalEntity();
|
|
1795
|
+
const { data: legalEntity } = useLegalEntity(ROOT_LE);
|
|
1608
1796
|
const { data: serviceAgreementStatus, isLoading: isStatusLoading } = useTermsOfServiceStatus();
|
|
1609
1797
|
const { data: serviceAgreementAcceptanceInfos, isLoading: isAcceptanceInfoLoading } = useTermsOfServiceAcceptanceInfos();
|
|
1610
1798
|
const { mutateAsync: acceptTermsOfService2 } = useAcceptTermsOfService();
|
|
1611
|
-
if (modalView) {
|
|
1612
|
-
setIsModalView(true);
|
|
1613
|
-
}
|
|
1614
1799
|
const handleOnClose = () => {
|
|
1615
1800
|
if (modalView) {
|
|
1616
1801
|
onUnmount == null ? void 0 : onUnmount();
|
|
@@ -1656,7 +1841,7 @@ function AcceptTermsOfServiceComponent({
|
|
|
1656
1841
|
handleHomeClick: handleOnClose,
|
|
1657
1842
|
handleSign,
|
|
1658
1843
|
asEmbedded,
|
|
1659
|
-
asModal:
|
|
1844
|
+
asModal: modalView,
|
|
1660
1845
|
handleCloseClick: handleOnClose,
|
|
1661
1846
|
handleAddSigner
|
|
1662
1847
|
}
|
|
@@ -1669,10 +1854,12 @@ const AcceptTermsOfServiceComponent$1 = /* @__PURE__ */ Object.freeze(/* @__PURE
|
|
|
1669
1854
|
export {
|
|
1670
1855
|
AcceptTermsOfServiceComponent as A,
|
|
1671
1856
|
ContractViewer as C,
|
|
1672
|
-
|
|
1857
|
+
FormNavigation as F,
|
|
1673
1858
|
OutlinedIcon as O,
|
|
1859
|
+
StepProgressIndicator as S,
|
|
1674
1860
|
useTermsOfServiceStatus as a,
|
|
1675
|
-
|
|
1861
|
+
FormEndState as b,
|
|
1862
|
+
AcceptTermsOfServiceComponent$1 as c,
|
|
1676
1863
|
downloadFile as d,
|
|
1677
1864
|
useTermsOfServiceAcceptanceInfos as u
|
|
1678
1865
|
};
|
|
@@ -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] = "097f93fd-4cf9-4640-a0d9-9b4550e49824", e._sentryDebugIdIdentifier = "sentry-dbid-097f93fd-4cf9-4640-a0d9-9b4550e49824");
|
|
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 "./core-
|
|
11
|
+
import { e as useI18nContext, bv as AlertIcon, aE as FormHeader } from "./EventEmitter-Cfyz1mmg.js";
|
|
12
|
+
import { D as DropinLayout } from "./core-BwyfkHN1.js";
|
|
13
13
|
function AccountSetupRejected() {
|
|
14
14
|
const { i18n } = useI18nContext();
|
|
15
15
|
const content = /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b9639491-ccdf-426f-a12b-f70fbd199736", e._sentryDebugIdIdentifier = "sentry-dbid-b9639491-ccdf-426f-a12b-f70fbd199736");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -12,7 +12,8 @@ const BE = {
|
|
|
12
12
|
"vereniging zonder winstoogmerk (VZW) / association sans but lucratif (ASBL)"
|
|
13
13
|
],
|
|
14
14
|
partnershipIncorporated: [
|
|
15
|
-
"commanditaire vennootschap
|
|
15
|
+
"gewone commanditaire vennootschap (Comm.V) / société en commandite simple (SCS)",
|
|
16
|
+
"société en nom collectif (SNC) / vennootschap onder firma (VOF)"
|
|
16
17
|
],
|
|
17
18
|
partnershipUnincorporated: [
|
|
18
19
|
"maatschap / société simple"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1505cb70-7bf2-4669-8535-ebb61f53be08", e._sentryDebugIdIdentifier = "sentry-dbid-1505cb70-7bf2-4669-8535-ebb61f53be08");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -13,12 +13,12 @@ const BR = {
|
|
|
13
13
|
"cooperativas"
|
|
14
14
|
],
|
|
15
15
|
partnershipIncorporated: [
|
|
16
|
-
"sociedade em nome coletivo",
|
|
17
|
-
"sociedade em comandita simples",
|
|
18
|
-
"sociedade em comandita por ações"
|
|
16
|
+
"sociedade em nome coletivo (SCA)",
|
|
17
|
+
"sociedade em comandita simples (SCS)",
|
|
18
|
+
"sociedade em comandita por ações (SNC)"
|
|
19
19
|
],
|
|
20
20
|
partnershipUnincorporated: [
|
|
21
|
-
"sociedade em comum
|
|
21
|
+
"sociedade em comum",
|
|
22
22
|
"sociedade em conta de participação"
|
|
23
23
|
]
|
|
24
24
|
};
|