@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.
Files changed (132) hide show
  1. package/dist/{AU-DBnla6IS.js → AU-CaovX9P8.js} +4 -5
  2. package/dist/{AcceptTermsOfServiceComponent-DGnbaEif.js → AcceptTermsOfServiceComponent-D-HcDOBq.js} +200 -13
  3. package/dist/{AccountSetupRejected-BUjkuj8y.js → AccountSetupRejected-voqgiesN.js} +3 -3
  4. package/dist/{BE-By7sRfJq.js → BE-H45zzgu4.js} +3 -2
  5. package/dist/{BR-CG-ZSQQz.js → BR-Dmkd5VjU.js} +5 -5
  6. package/dist/BusinessDetailsDropin-CnGwMWvN.js +2406 -0
  7. package/dist/{BusinessTypeSelection-DqYdtKWT.js → BusinessTypeSelection-DQr-2_Iq.js} +31 -30
  8. package/dist/{CH-DNjTl_X_.js → CH-DVyjmrDH.js} +4 -2
  9. package/dist/{CXEL7IU7-D4uuriQj.js → CXEL7IU7-Do0b5BzU.js} +3 -3
  10. package/dist/{CZ-DDucwl8A.js → CZ-1E7Zx2il.js} +3 -4
  11. package/dist/CreateIndividualComponent-BuBNDvhx.js +7204 -0
  12. package/dist/{CustomerSupport-Dt_GbO2W.js → CustomerSupport-BJrkWmYp.js} +4 -4
  13. package/dist/{DE-LKZHA8bh.js → DE-D7HKgI77.js} +6 -5
  14. package/dist/{DK-moHaAY_C.js → DK-x6M9-ek-.js} +2 -4
  15. package/dist/{DebugModal-DqSAxc2y.js → DebugModal-DdFbk-rz.js} +11 -10
  16. package/dist/{DecisionMakers-DCP-NbPE.js → DecisionMakers-DghodKJR.js} +5 -5
  17. package/dist/{ES-BOW3pjTD.js → ES-CeohntGo.js} +6 -7
  18. package/dist/{EmbedShell-D1F1J3bv.js → EmbedShell-BaZnwexg.js} +5 -6
  19. package/dist/{EventEmitter-B5nDiK-t.js → EventEmitter-Cfyz1mmg.js} +2742 -3396
  20. package/dist/{FI-gB1Mh_9c.js → FI-BOex4MFx.js} +3 -5
  21. package/dist/{FR-iSfxCiGj.js → FR-CAxkckai.js} +4 -4
  22. package/dist/{GB-UYrtNfT0.js → GB-DUnW-a4M.js} +2 -4
  23. package/dist/{HASRA6WW-yCLwR-7b.js → HASRA6WW-CLlxPThM.js} +2 -2
  24. package/dist/{HK-BsLgqwJt.js → HK-eKVHN8Vg.js} +4 -4
  25. package/dist/{HR-BOrmO4s8.js → HR-BHhcnUGU.js} +3 -3
  26. package/dist/{HU-DSPD5z5O.js → HU-hfSSMbei.js} +1 -4
  27. package/dist/{I3HPI4QX-DmhzJNXt.js → I3HPI4QX-BW3ApIxs.js} +3 -3
  28. package/dist/{IE-BNxtcUkX.js → IE-BN3Eiv5M.js} +2 -2
  29. package/dist/{IT-CjMPVtH8.js → IT-CBt6Os6J.js} +4 -7
  30. package/dist/{Introduction-Dhm3WEef.js → Introduction-C8dJNT23.js} +5 -3
  31. package/dist/{LT-CUUN_JaO.js → LT-Dkevn83h.js} +2 -4
  32. package/dist/{NL-C3ArXgfX.js → NL-zm__7LWV.js} +3 -3
  33. package/dist/{NO-yBcMewGZ.js → NO-BAcMdKUJ.js} +5 -4
  34. package/dist/NZ-DDRknBQk.js +20 -0
  35. package/dist/{PL-DGMOmdSy.js → PL-D6_6gquq.js} +6 -5
  36. package/dist/{PT-D3NkDIsX.js → PT-C2dln191.js} +3 -3
  37. package/dist/{RO-Bo0cNUJf.js → RO-C_utD--1.js} +2 -4
  38. package/dist/{Review-B5Drv-UX.js → Review-DbvMjmRe.js} +3 -3
  39. package/dist/{SE-W4QBeQtP.js → SE-BqGOP1F1.js} +2 -4
  40. package/dist/{SI-DoClLcmM.js → SI-DBADzvYO.js} +3 -6
  41. package/dist/{SK-DmiByqvu.js → SK-DamCBYsZ.js} +2 -4
  42. package/dist/{SingpassSelection-Djfz5Puu.js → SingpassSelection-CJRAISeY.js} +2 -2
  43. package/dist/SourceOfFunds.module-BhujhW0d.js +132 -0
  44. package/dist/SourceOfFundsDropin-NxYXl3NE.js +3041 -0
  45. package/dist/{listToRecord-BwWy8lby.js → TaskItemStatus-ChW10MdE.js} +3 -11
  46. package/dist/{TaxReportingDropin-CpStwino.js → TaxReportingDropin-_MxQClQd.js} +27 -45
  47. package/dist/TrustDropin-BcxdDqKa.js +706 -0
  48. package/dist/adyen-kyc-components.js +1 -1
  49. package/dist/adyenConfig.js +3 -3
  50. package/dist/core-BwyfkHN1.js +8426 -0
  51. package/dist/{css-CWOdPM3V.js → css-CcrdHRiR.js} +2 -2
  52. package/dist/en-US-QbdqemZi.js +202 -0
  53. package/dist/formatCurrency-CMOSdJMB.js +29 -0
  54. package/dist/individual.js +8 -6
  55. package/dist/ja-JP-DU7yCJYq.js +202 -0
  56. package/dist/{json-B7P51psT.js → json-jBhgszKy.js} +2 -2
  57. package/dist/listToRecord-CO3M1Q74.js +19 -0
  58. package/dist/{plaintext-C3KsPoAZ.js → plaintext-RpKLxlRt.js} +2 -2
  59. package/dist/style.css +1019 -945
  60. package/dist/styles-CLV89_hH.js +1014 -940
  61. package/dist/terms-of-service.js +8 -6
  62. package/dist/toCapitalized-Bq7laD0b.js +13 -0
  63. package/dist/types/api/configurations/useVersionConfiguration.d.ts +0 -5
  64. package/dist/types/api/legalEntity/useLegalEntity.d.ts +9 -3
  65. package/dist/types/api/queryKeys.d.ts +3 -1
  66. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +5 -4
  67. package/dist/types/components/BankAccount/forms/PayoutAccount/payoutAccountFormat.d.ts +2 -0
  68. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
  69. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  70. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +2 -0
  71. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -0
  72. package/dist/types/components/EFP/tasks/TaxReportingDropin/types.d.ts +1 -0
  73. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +0 -3
  74. package/dist/types/components/Individual/forms/Individual/IdVerification/idVerificationProviderId.d.ts +1 -0
  75. package/dist/types/components/Individual/forms/Individual/IndividualOuter.d.ts +26 -0
  76. package/dist/types/components/Individual/forms/Individual/types.d.ts +3 -2
  77. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.d.ts +1 -1
  78. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +3 -0
  79. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +4 -2
  80. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +4 -0
  81. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -3
  82. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +1 -1
  83. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +1 -1
  84. package/dist/types/components/Shared/AllowedCountryGate/AllowedCountryGate.d.ts +7 -0
  85. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +3 -0
  86. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +23 -0
  87. package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +1 -0
  88. package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +1 -0
  89. package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +1 -0
  90. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +2 -2
  91. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  92. package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -0
  93. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +4 -9
  94. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
  95. package/dist/types/components/Trust/utils/trustUtil.d.ts +2 -2
  96. package/dist/types/components/index.d.ts +1 -2
  97. package/dist/types/components/ui/atoms/ProgressBar/ProgressBar.d.ts +3 -0
  98. package/dist/types/components/ui/atoms/ProgressBar/ProgressBar.types.d.ts +5 -0
  99. package/dist/types/components/ui/atoms/StepProgressIndicator/StepProgressIndicator.d.ts +1 -0
  100. package/dist/types/core/EmbedShell/EmbedShell.d.ts +2 -3
  101. package/dist/types/core/UIElement/UIElement.d.ts +1 -2
  102. package/dist/types/core/analytics.d.ts +1 -1
  103. package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
  104. package/dist/types/core/models/api/trust.d.ts +2 -2
  105. package/dist/types/core/models/errors/entity-problems.d.ts +5 -3
  106. package/dist/types/embeds/utils.d.ts +2 -2
  107. package/dist/types/hooks/useAccountHolder.d.ts +1 -1
  108. package/dist/types/hooks/useForm/types.d.ts +0 -1
  109. package/dist/types/hooks/useTrustMembers.d.ts +2 -0
  110. package/dist/types/hooks/useUnincorporatedPartnershipMembers.d.ts +2 -0
  111. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +1 -1
  112. package/dist/types/stores/globalStore/globalStore.d.ts +18 -40
  113. package/dist/types/utils/api/getProblemsForEntity.d.ts +5 -0
  114. package/dist/types/utils/api/processValidationErrors.d.ts +2 -5
  115. package/dist/types/utils/api/useCapabilities.d.ts +2 -0
  116. package/dist/types/utils/entityAssociationUtil.d.ts +2 -1
  117. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  118. package/dist/types/utils/getLegalEntityCountry.d.ts +2 -2
  119. package/dist/types/utils/signals/useSignalValue.d.ts +40 -0
  120. package/dist/utils-BI1ZfPqr.js +228 -0
  121. package/dist/{utils-Do7EwrWz.js → utils-C6fwKsVX.js} +7 -4
  122. package/dist/{yaml-Cv3Lis4l.js → yaml-BtUk5udq.js} +2 -2
  123. package/package.json +2 -4
  124. package/dist/CreateIndividualComponent-DArsdfFf.js +0 -3697
  125. package/dist/core-BY7J00UO.js +0 -18119
  126. package/dist/types/components/Individual/forms/Individual/IndividualExperimentWrapper.d.ts +0 -3
  127. package/dist/types/components/Individual/tasks/IndividualDropin/mandatoryFields.d.ts +0 -5
  128. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/mandatoryFields.d.ts +0 -5
  129. package/dist/types/context/CoreContext/CoreContext.d.ts +0 -17
  130. package/dist/types/context/CoreContext/CoreProvider.d.ts +0 -7
  131. package/dist/types/context/CoreContext/useCoreContext.d.ts +0 -2
  132. 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] = "6f34581b-976f-4548-9df6-67ff6d74715b", e._sentryDebugIdIdentifier = "sentry-dbid-6f34581b-976f-4548-9df6-67ff6d74715b");
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
- "general partnership (GP)",
20
- "limited partnership (LP)"
18
+ "limited partnership (LP)",
19
+ "general partnership (GP)"
21
20
  ]
22
21
  };
23
22
  export {
@@ -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] = "4528743a-00f4-4a48-a59f-284aeb8adf0b", e._sentryDebugIdIdentifier = "sentry-dbid-4528743a-00f4-4a48-a59f-284aeb8adf0b");
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 { a as useApiContext, R as useInvalidateRootLegalEntity, e as useMutation, h as httpPost, b as useQuery, d as httpGet, e0 as skipToken, Q as Icon, e1 as AlertIcon, c as createLogger, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, n as useExperimentsContext, bj as useForm, V as Alert, G as Button, b8 as localizeDateString, L as LoaderWrapper, b9 as Field, ba as Select, d7 as Checkbox, cI as ActionBar, d6 as MaybeModal, D as ModalContent, F as ModalFooter, dK as StepProgressIndicator, Y as Spacer, J as LegalEntityType, ak as getOwnSignatories, a4 as doesLegalEntityRequiresLegalRepresentative, a3 as getLegalRepresentative, cG as FormNavigation, I as useCoreContext, u as useLegalEntity, K as Loader, T as TaskTypes } from "./EventEmitter-B5nDiK-t.js";
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: isModalView,
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
- FormEndState as F,
1857
+ FormNavigation as F,
1673
1858
  OutlinedIcon as O,
1859
+ StepProgressIndicator as S,
1674
1860
  useTermsOfServiceStatus as a,
1675
- AcceptTermsOfServiceComponent$1 as b,
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] = "f02b351e-1180-4fda-9ea7-c18f8516163f", e._sentryDebugIdIdentifier = "sentry-dbid-f02b351e-1180-4fda-9ea7-c18f8516163f");
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 { i as useI18nContext, e1 as AlertIcon, bZ as FormHeader } from "./EventEmitter-B5nDiK-t.js";
12
- import { D as DropinLayout } from "./core-BY7J00UO.js";
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] = "a42963e1-80c4-4077-8f4c-65087194309e", e._sentryDebugIdIdentifier = "sentry-dbid-a42963e1-80c4-4077-8f4c-65087194309e");
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 op aandelen (Comm.VA) / société en commandite par actions (SCA)"
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] = "f3bbf079-a2ff-4d88-92b6-7a61fc0d5a90", e._sentryDebugIdIdentifier = "sentry-dbid-f3bbf079-a2ff-4d88-92b6-7a61fc0d5a90");
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 (no legal personality)",
21
+ "sociedade em comum",
22
22
  "sociedade em conta de participação"
23
23
  ]
24
24
  };