@adyen/kyc-components 3.65.5 → 3.65.8

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 (23) hide show
  1. package/dist/{AccountSetupRejected-B72M94Is.js → AccountSetupRejected-Cwfd_fWK.js} +1 -1
  2. package/dist/{CXEL7IU7-BtQX4aZI.js → CXEL7IU7-BCAwo_dH.js} +2 -2
  3. package/dist/{CustomerSupport-BGQOr4Db.js → CustomerSupport-DbR3DS_R.js} +1 -1
  4. package/dist/{DebugModal-BfzvF9Kp.js → DebugModal-F6f8V0fY.js} +7 -7
  5. package/dist/{DecisionMakers-CYdeSdkf.js → DecisionMakers-CnejKZ9b.js} +1 -1
  6. package/dist/{HASRA6WW-CFLZ1flZ.js → HASRA6WW-DicnXCYI.js} +1 -1
  7. package/dist/{I3HPI4QX-D_KIe1Ju.js → I3HPI4QX-CuR07QHc.js} +2 -2
  8. package/dist/{Introduction-Rya0Sy7H.js → Introduction-DQIj19yG.js} +1 -1
  9. package/dist/{Review-Dk6mZ16K.js → Review-_0s3iKYp.js} +1 -1
  10. package/dist/{SingpassSelection-ib5_mHMn.js → SingpassSelection-Wg_zz0Wy.js} +1 -1
  11. package/dist/{TaxReportingDropin-CmSpuUCg.js → TaxReportingDropin-kxliII-X.js} +1 -1
  12. package/dist/adyen-kyc-components.js +1 -1
  13. package/dist/adyenConfig.js +1 -1
  14. package/dist/{core-w9cPGxZk.js → core-BD5fcZk-.js} +46 -36
  15. package/dist/{css-BF6zK3tk.js → css-CTXY9tfk.js} +1 -1
  16. package/dist/{json-D-3xxWqv.js → json-BKPnyins.js} +1 -1
  17. package/dist/{plaintext-BIYPTL53.js → plaintext-C_51kmw0.js} +1 -1
  18. package/dist/style.css +8 -0
  19. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +2 -1
  20. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -1
  21. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +1 -1
  22. package/dist/{yaml-Bq5YTp6u.js → yaml-DR0RzOx2.js} +1 -1
  23. package/package.json +1 -1
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { u as useI18nContext, A as AlertIcon, w as FormHeader, D as DropinLayout } from "./core-w9cPGxZk.js";
11
+ import { u as useI18nContext, A as AlertIcon, w as FormHeader, D as DropinLayout } from "./core-BD5fcZk-.js";
12
12
  function AccountSetupRejected() {
13
13
  const { i18n } = useI18nContext();
14
14
  const content = /* @__PURE__ */ jsxs("div", { children: [
@@ -7,8 +7,8 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-CFLZ1flZ.js";
11
- import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-w9cPGxZk.js";
10
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-DicnXCYI.js";
11
+ import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-BD5fcZk-.js";
12
12
  var DevtoolsPanelComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { x as useLegalEntity, y as Loader, u as useI18nContext, n as useAnalyticsContext, G as useToastContext, $ as useConfigurationApi, J as useUpdateLegalEntity, H as useQueryClient, a0 as resolveFieldMetadata, a1 as contactDetailsValidationRules, a2 as defaultFieldMetadata, a3 as fieldConfig, a4 as getAsyncPhoneValidationRules, a5 as useMultiForm, w as FormHeader, a6 as ContactDetails, _ as ActionBar, g as createLogger } from "./core-w9cPGxZk.js";
11
+ import { x as useLegalEntity, y as Loader, u as useI18nContext, n as useAnalyticsContext, G as useToastContext, $ as useConfigurationApi, J as useUpdateLegalEntity, H as useQueryClient, a0 as resolveFieldMetadata, a1 as contactDetailsValidationRules, a2 as defaultFieldMetadata, a3 as fieldConfig, a4 as getAsyncPhoneValidationRules, a5 as useMultiForm, w as FormHeader, a6 as ContactDetails, _ as ActionBar, g as createLogger } from "./core-BD5fcZk-.js";
12
12
  import { useCallback, useMemo, useEffect } from "preact/hooks";
13
13
  const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
14
14
  var _a, _b, _c;
@@ -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] = "e5510762-12df-4c51-8958-b1b8c0829bec", e._sentryDebugIdIdentifier = "sentry-dbid-e5510762-12df-4c51-8958-b1b8c0829bec");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "add9178b-03ca-4723-9f0e-22b4adf441cd", e._sentryDebugIdIdentifier = "sentry-dbid-add9178b-03ca-4723-9f0e-22b4adf441cd");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useMemo, useState } from "preact/hooks";
12
- import { B as Button, T as Tag, e as entriesOf, I as InputText, u as useI18nContext, s as splitTaskIdentifier, a as TaskItemStatus, b as useExperimentsContext, c as useSettingsContext, d as useGlobalStore, l as listToRecord, v as valuesOf, f as useTaskStatuses, M as Modal, g as createLogger, h as Icon, S as SettingNames, E as ExperimentNames } from "./core-w9cPGxZk.js";
12
+ import { B as Button, T as Tag, e as entriesOf, I as InputText, u as useI18nContext, s as splitTaskIdentifier, a as TaskItemStatus, b as useExperimentsContext, c as useSettingsContext, d as useGlobalStore, l as listToRecord, v as valuesOf, f as useTaskStatuses, M as Modal, g as createLogger, h as Icon, S as SettingNames, E as ExperimentNames } from "./core-BD5fcZk-.js";
13
13
  const tabs = "adyen-kyc-tabs";
14
14
  const styles$1 = {
15
15
  tabs
@@ -144,10 +144,10 @@ const transformModule = (highlights, codeNode, scope) => {
144
144
  };
145
145
  const supportedModules = ["plaintext", "json", "yaml", "css"];
146
146
  const moduleMap = {
147
- plaintext: () => import("./plaintext-BIYPTL53.js"),
148
- json: () => import("./json-D-3xxWqv.js"),
149
- yaml: () => import("./yaml-Bq5YTp6u.js"),
150
- css: () => import("./css-BF6zK3tk.js")
147
+ plaintext: () => import("./plaintext-C_51kmw0.js"),
148
+ json: () => import("./json-BKPnyins.js"),
149
+ yaml: () => import("./yaml-DR0RzOx2.js"),
150
+ css: () => import("./css-CTXY9tfk.js")
151
151
  };
152
152
  const getModule = async (name) => {
153
153
  if (!supportedModules.includes(name)) {
@@ -438,7 +438,7 @@ const DebugModal = ({ onExit }) => {
438
438
  const [tab, setTab] = useState("metadata");
439
439
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
440
440
  const metadata = {
441
- sdkVersion: "3.65.5",
441
+ sdkVersion: "3.65.8",
442
442
  locale: i18n.locale,
443
443
  rootLegalEntityId: rootLegalEntity.id
444
444
  };
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { x as useLegalEntity, y as Loader, z as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, G as useToastContext, H as useQueryClient, J as useUpdateLegalEntity, K as getOwnDecisionMakers, N as getAvailableDecisionMakerRoleTypes, O as useDataMissingRemediations, i as TaskTypes, P as getAllowedDecisionMakerRoles, D as DropinLayout, w as FormHeader, Q as EntityGuidanceStatus, U as iconStatus, V as ContextGuidance, W as DecisionMakerType, X as Alert, Y as CardGroup, Z as EntityAssociation, B as Button, _ as ActionBar } from "./core-w9cPGxZk.js";
11
+ import { x as useLegalEntity, y as Loader, z as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, G as useToastContext, H as useQueryClient, J as useUpdateLegalEntity, K as getOwnDecisionMakers, N as getAvailableDecisionMakerRoleTypes, O as useDataMissingRemediations, i as TaskTypes, P as getAllowedDecisionMakerRoles, D as DropinLayout, w as FormHeader, Q as EntityGuidanceStatus, U as iconStatus, V as ContextGuidance, W as DecisionMakerType, X as Alert, Y as CardGroup, Z as EntityAssociation, B as Button, _ as ActionBar } from "./core-BD5fcZk-.js";
12
12
  import { useState, useEffect } from "preact/hooks";
13
13
  const DecisionMakers = (props) => {
14
14
  const { data, isLoading } = useLegalEntity();
@@ -10,7 +10,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10
10
  }
11
11
  }
12
12
  ;
13
- import { av as createContext, aw as createSignal, ax as onMount, ay as createEffect, at as createMemo, au as createComponent, az as Portal, aA as Show, aB as template, aC as insert, aD as createRenderEffect, aE as className, aF as clearDelegatedEvents, aG as delegateEvents, aH as useContext, aI as onCleanup, aJ as sortFns, aK as mutationSortFns, aL as on, aM as setAttribute, aN as getSidedProp, aO as use, aP as createUniqueId, aQ as batch, aR as getQueryStatusLabel, aS as getMutationStatusColor, aT as getQueryStatusColor, aU as getQueryStatusColorByLabel, aV as displayValue, aW as For, aX as convertRemToPixels, aY as untrack, aZ as $TRACK, a_ as useTransition, a$ as spread, b0 as mergeProps, b1 as createRoot, b2 as serialize, b3 as Index, b4 as updateNestedDataByPath, b5 as addEventListener, b6 as stringify, b7 as Match, b8 as Switch, b9 as deleteNestedDataByPath, ba as splitProps, bb as Dynamic, bc as createComputed } from "./core-w9cPGxZk.js";
13
+ import { av as createContext, aw as createSignal, ax as onMount, ay as createEffect, at as createMemo, au as createComponent, az as Portal, aA as Show, aB as template, aC as insert, aD as createRenderEffect, aE as className, aF as clearDelegatedEvents, aG as delegateEvents, aH as useContext, aI as onCleanup, aJ as sortFns, aK as mutationSortFns, aL as on, aM as setAttribute, aN as getSidedProp, aO as use, aP as createUniqueId, aQ as batch, aR as getQueryStatusLabel, aS as getMutationStatusColor, aT as getQueryStatusColor, aU as getQueryStatusColorByLabel, aV as displayValue, aW as For, aX as convertRemToPixels, aY as untrack, aZ as $TRACK, a_ as useTransition, a$ as spread, b0 as mergeProps, b1 as createRoot, b2 as serialize, b3 as Index, b4 as updateNestedDataByPath, b5 as addEventListener, b6 as stringify, b7 as Match, b8 as Switch, b9 as deleteNestedDataByPath, ba as splitProps, bb as Dynamic, bc as createComputed } from "./core-BD5fcZk-.js";
14
14
  var isNonNullable = (i2) => i2 != null;
15
15
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
16
16
  function chain(callbacks) {
@@ -7,8 +7,8 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-CFLZ1flZ.js";
11
- import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-w9cPGxZk.js";
10
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-DicnXCYI.js";
11
+ import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-BD5fcZk-.js";
12
12
  var DevtoolsComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
11
11
  import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
12
- import { i as TaskTypes, L as LegalEntityType, j as useCanSeeIntroduction, k as useLegalEntityType, t as toCapitalized, m as getTranslationKeysByPrefix, u as useI18nContext, n as useAnalyticsContext, o as StepProgressIndicator, B as Button } from "./core-w9cPGxZk.js";
12
+ import { i as TaskTypes, L as LegalEntityType, j as useCanSeeIntroduction, k as useLegalEntityType, t as toCapitalized, m as getTranslationKeysByPrefix, u as useI18nContext, n as useAnalyticsContext, o as StepProgressIndicator, B as Button } from "./core-BD5fcZk-.js";
13
13
  import { useMemo } from "preact/compat";
14
14
  var IntroductionScreens = ((IntroductionScreens2) => {
15
15
  IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { a7 as useApiContext, a8 as useMutation, a9 as httpPost, u as useI18nContext, G as useToastContext, aa as LoaderWrapper, w as FormHeader, ab as Checkbox, _ as ActionBar, D as DropinLayout } from "./core-w9cPGxZk.js";
12
+ import { a7 as useApiContext, a8 as useMutation, a9 as httpPost, u as useI18nContext, G as useToastContext, aa as LoaderWrapper, w as FormHeader, ab as Checkbox, _ as ActionBar, D as DropinLayout } from "./core-BD5fcZk-.js";
13
13
  const confirmReview = async (legalEntityId, url) => {
14
14
  return httpPost({
15
15
  loadingContext: url,
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { u as useI18nContext, p as useForm, q as Typography, F as Field, R as RadioGroupCard, B as Button, r as Svg, L as LegalEntityType } from "./core-w9cPGxZk.js";
12
+ import { u as useI18nContext, p as useForm, q as Typography, F as Field, R as RadioGroupCard, B as Button, r as Svg, L as LegalEntityType } from "./core-BD5fcZk-.js";
13
13
  const setupAccountMethods = ["singpass", "manual"];
14
14
  const setupAccountMethodFields = ["setupAccountMethod"];
15
15
  const getSingpassSelectionDisabled = (legalEntityType) => {
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
- import { a7 as useApiContext, ac as useQuery, ad as httpGet, q as Typography, u as useI18nContext, ae as useFormContext, F as Field, af as RadioGroup, ag as getFormProps, h as Icon, ah as isEmpty, r as Svg, ai as sofStyles, B as Button, aj as Card, ak as StructuredList, al as IconButton, H as useQueryClient, n as useAnalyticsContext, x as useLegalEntity, J as useUpdateLegalEntity, a5 as useMultiForm, am as isEmpty$1, an as getRequiredForms, ao as addValidityToForms, g as createLogger, ap as useFormComposer, y as Loader, aq as FormContextProvider, ar as FormWrapper } from "./core-w9cPGxZk.js";
11
+ import { a7 as useApiContext, ac as useQuery, ad as httpGet, q as Typography, u as useI18nContext, ae as useFormContext, F as Field, af as RadioGroup, ag as getFormProps, h as Icon, ah as isEmpty, r as Svg, ai as sofStyles, B as Button, aj as Card, ak as StructuredList, al as IconButton, H as useQueryClient, n as useAnalyticsContext, x as useLegalEntity, J as useUpdateLegalEntity, a5 as useMultiForm, am as isEmpty$1, an as getRequiredForms, ao as addValidityToForms, g as createLogger, ap as useFormComposer, y as Loader, aq as FormContextProvider, ar as FormWrapper } from "./core-BD5fcZk-.js";
12
12
  import { useState, useRef, useEffect, useMemo, useCallback } from "preact/hooks";
13
13
  import { signal } from "@preact/signals";
14
14
  import cx from "classnames";
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { C as Core } from "./core-w9cPGxZk.js";
10
+ import { C as Core } from "./core-BD5fcZk-.js";
11
11
  if (CSS.supports("container", "foo / inline-size") === false) {
12
12
  import("container-query-polyfill");
13
13
  }
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { C as Core } from "./core-w9cPGxZk.js";
10
+ import { C as Core } from "./core-BD5fcZk-.js";
11
11
  const environmentMap = Object.freeze({
12
12
  live: "https://live.adyen.com",
13
13
  test: "https://test.adyen.com"
@@ -19,7 +19,7 @@ var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout,
19
19
  {
20
20
  try {
21
21
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
22
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "62549116-dfa7-49c0-8ee0-3acf6666ddc5", e._sentryDebugIdIdentifier = "sentry-dbid-62549116-dfa7-49c0-8ee0-3acf6666ddc5");
22
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b502f4ff-601e-4dd9-841c-3678212a94f7", e._sentryDebugIdIdentifier = "sentry-dbid-b502f4ff-601e-4dd9-841c-3678212a94f7");
23
23
  } catch (e) {
24
24
  }
25
25
  }
@@ -6789,6 +6789,7 @@ function uuidv4() {
6789
6789
  return v.toString(16);
6790
6790
  });
6791
6791
  }
6792
+ const isAppleMobile = /iPhone|iPad/.test(navigator.platform);
6792
6793
  function SelectButtonElement({
6793
6794
  filterable,
6794
6795
  toggleButtonRef,
@@ -6862,7 +6863,9 @@ function SelectButton({
6862
6863
  "adyen-kyc-dropdown-button--active": showList,
6863
6864
  "adyen-kyc-dropdown-button--invalid": isInvalid,
6864
6865
  "adyen-kyc-dropdown-field--valid": isValid,
6865
- "adyen-kyc-dropdown-button-search": isSearch
6866
+ "adyen-kyc-dropdown-button-search": isSearch,
6867
+ // To resolve a bug where filterable select `<input>`s weren't focusable on iOS
6868
+ "adyen-kyc-dropdown-ignore-pointer-events": isSearch && isAppleMobile
6866
6869
  }),
6867
6870
  filterable,
6868
6871
  onClick: !readonly ? (e) => {
@@ -6920,7 +6923,8 @@ const SelectButtonContentSingle = ({
6920
6923
  const activeLabel = (activeSingle == null ? void 0 : activeSingle.selectedOptionName) || (activeSingle == null ? void 0 : activeSingle.name) || textFilter || placeholder;
6921
6924
  return (activeLabel == null ? void 0 : activeLabel.length) > 50 ? activeLabel.substring(0, 50) + "..." : activeLabel || "";
6922
6925
  }, [activeSingle, textFilter, placeholder]);
6923
- return !showList || !filterable ? /* @__PURE__ */ jsxs(Fragment, { children: [
6926
+ return !(showList && filterable || // To resolve a bug where filterable select `<input>`s weren't focusable on iOS
6927
+ isAppleMobile && isSearch) ? /* @__PURE__ */ jsxs(Fragment, { children: [
6924
6928
  (activeSingle == null ? void 0 : activeSingle.icon) && /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc-dropdown-button__icon", children: activeSingle.icon }),
6925
6929
  isSearch && !hideSearchIcon && /* @__PURE__ */ jsx$1(Icon, { name: "search", className: "adyen-kyc-dropdown-button-search__icon" }),
6926
6930
  /* @__PURE__ */ jsx$1(
@@ -6942,7 +6946,11 @@ const SelectButtonContentSingle = ({
6942
6946
  "aria-expanded": showList,
6943
6947
  "aria-owns": selectListId,
6944
6948
  autoComplete: "off",
6945
- className: cx("adyen-kyc-filter-input"),
6949
+ className: cx({
6950
+ "adyen-kyc-filter-input": true,
6951
+ // To resolve a bug where filterable select `<input>`s weren't focusable on iOS
6952
+ "adyen-kyc-dropdown-handle-pointer-events": isAppleMobile
6953
+ }),
6946
6954
  onInput: (e) => onInput(e.target.value),
6947
6955
  placeholder,
6948
6956
  ref: filterInputRef,
@@ -17447,7 +17455,8 @@ const companyRegistrationNumberOptions = {
17447
17455
  CompanyTypesValue.INCORPORATED_PARTNERSHIP,
17448
17456
  CompanyTypesValue.NON_PROFIT_OR_CHARITABLE,
17449
17457
  CompanyTypesValue.UNINCORPORATED_PARTNERSHIP,
17450
- CompanyTypesValue.UNLISTED_PUBLIC_COMPANY
17458
+ CompanyTypesValue.UNLISTED_PUBLIC_COMPANY,
17459
+ CompanyTypesValue.PUBLIC_COMPANY
17451
17460
  ]
17452
17461
  }
17453
17462
  ]
@@ -26645,9 +26654,10 @@ const initOnfido = async ({
26645
26654
  type: "document",
26646
26655
  options: {
26647
26656
  documentTypes: {
26648
- ["passport"]: true,
26649
- ["driversLicense"]: true,
26650
- ["identityCard"]: true
26657
+ passport: true,
26658
+ driving_licence: true,
26659
+ national_identity_card: true,
26660
+ residence_permit: false
26651
26661
  }
26652
26662
  }
26653
26663
  },
@@ -38430,12 +38440,12 @@ const mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
38430
38440
  ]);
38431
38441
  return documents.filter(Boolean);
38432
38442
  };
38433
- const mapBusinessDetailsSchemaToLegalEntity = (data, isExperimentEnabled) => {
38443
+ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperimentEnabled) => {
38434
38444
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n, _o, _p, _q;
38435
38445
  const requestObj = {
38436
38446
  ...formatObject(
38437
38447
  data,
38438
- isEmpty(data.companyStructure) ? solePropBusinessDetailsApiKeyMapping : businessDetailsApiKeyMapping
38448
+ accountHolder === "mySoleProprietorName" ? solePropBusinessDetailsApiKeyMapping : businessDetailsApiKeyMapping
38439
38449
  )
38440
38450
  };
38441
38451
  (_a2 = requestObj.organization) == null ? true : delete _a2.legalFormDescription;
@@ -38663,12 +38673,12 @@ const formatBasicInformation = (data, labels, datasetUtils, companyType, isCount
38663
38673
  };
38664
38674
  };
38665
38675
  const formatAdditionalInformation = (data, labels, country, companyType, i18n) => {
38666
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2;
38676
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2;
38667
38677
  const registrationNumberLabel = resolveFieldMetadata(
38668
38678
  defaultFieldConfig$5[country],
38669
38679
  {
38670
38680
  companyType,
38671
- registrationNumberType: data.registrationNumber ? inferCompanyRegistrationNumberType(data == null ? void 0 : data.registrationNumber, country, companyType) : (_a2 = getCompanyRegistrationNumberOptions(country, companyType)) == null ? void 0 : _a2[0].id
38681
+ registrationNumberType: data.registrationNumber ? inferCompanyRegistrationNumberType(data == null ? void 0 : data.registrationNumber, country, companyType) : (_b2 = (_a2 = getCompanyRegistrationNumberOptions(country, companyType)) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.id
38672
38682
  },
38673
38683
  defaultFieldMetadata$6
38674
38684
  ).label;
@@ -38682,16 +38692,16 @@ const formatAdditionalInformation = (data, labels, country, companyType, i18n) =
38682
38692
  defaultFieldMetadata$5
38683
38693
  ).label;
38684
38694
  return {
38685
- [((_b2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _b2.doingBusinessAs) ?? "doingBusinessAs"]: data.doingBusinessAs,
38695
+ [((_c2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _c2.doingBusinessAs) ?? "doingBusinessAs"]: data.doingBusinessAs,
38686
38696
  [registrationNumberLabel]: data.registrationNumber,
38687
- [taxIdLabel]: data.isUen ? void 0 : (_d2 = (_c2 = data.taxInformation) == null ? void 0 : _c2.find((taxId) => country === taxId.country)) == null ? void 0 : _d2.number,
38688
- [((_e2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _e2.vatNumber) ?? "vatNumber"]: data.vatNumber,
38689
- [((_f2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _f2.vatAbsenceReason) ?? "vatAbsenceReason"]: data.vatAbsenceReason ? i18n.get(data.vatAbsenceReason) : void 0,
38690
- [((_g2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _g2.dateOfIncorporation) ?? "dateOfIncorporation"]: data.dateOfIncorporation,
38691
- [((_h2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _h2.stockExchangeMIC) ?? "stockExchangeMIC"]: data.stockExchangeMIC,
38692
- [((_i2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _i2.stockISIN) ?? "stockISIN"]: data.stockISIN,
38693
- [((_j2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _j2.stockTickerSymbol) ?? "stockTickerSymbol"]: data.stockTickerSymbol,
38694
- [((_k2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _k2.eInvoicingCode) ?? "eInvoicingCode"]: data.eInvoicingCode
38697
+ [taxIdLabel]: data.isUen ? void 0 : (_e2 = (_d2 = data.taxInformation) == null ? void 0 : _d2.find((taxId) => country === taxId.country)) == null ? void 0 : _e2.number,
38698
+ [((_f2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _f2.vatNumber) ?? "vatNumber"]: data.vatNumber,
38699
+ [((_g2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _g2.vatAbsenceReason) ?? "vatAbsenceReason"]: data.vatAbsenceReason ? i18n.get(data.vatAbsenceReason) : void 0,
38700
+ [((_h2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _h2.dateOfIncorporation) ?? "dateOfIncorporation"]: data.dateOfIncorporation,
38701
+ [((_i2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _i2.stockExchangeMIC) ?? "stockExchangeMIC"]: data.stockExchangeMIC,
38702
+ [((_j2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _j2.stockISIN) ?? "stockISIN"]: data.stockISIN,
38703
+ [((_k2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _k2.stockTickerSymbol) ?? "stockTickerSymbol"]: data.stockTickerSymbol,
38704
+ [((_l2 = labels == null ? void 0 : labels.additionalInformation) == null ? void 0 : _l2.eInvoicingCode) ?? "eInvoicingCode"]: data.eInvoicingCode
38695
38705
  };
38696
38706
  };
38697
38707
  const formatDataForSummary$1 = (data, forms, labels, i18n, isExperimentEnabled) => {
@@ -38928,7 +38938,7 @@ async function submit({
38928
38938
  }
38929
38939
  try {
38930
38940
  const mappedLegalEntity = {
38931
- ...mapBusinessDetailsSchemaToLegalEntity(filteredData, isExperimentEnabled),
38941
+ ...mapBusinessDetailsSchemaToLegalEntity(filteredData, accountHolder, isExperimentEnabled),
38932
38942
  entityAssociations: filterOutUnwantedAssociationsIfRootLE(
38933
38943
  taskType,
38934
38944
  entityToUpdate,
@@ -39236,7 +39246,7 @@ function BusinessDetailsDropin({
39236
39246
  nestedLegalEntityDetails,
39237
39247
  problems: currentProblems,
39238
39248
  taskType: taskType ?? TaskTypes.BUSINESS_DETAILS,
39239
- accountHolder,
39249
+ accountHolder: accountHolder ?? "theCompanyIWorkFor",
39240
39250
  forms,
39241
39251
  documentUtils,
39242
39252
  i18n,
@@ -50721,26 +50731,26 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
50721
50731
  return hasOwnEntityAssocation || !!hasOrganizationType;
50722
50732
  };
50723
50733
  const Introduction = lazy$1(
50724
- async () => (await import("./Introduction-Rya0Sy7H.js")).Introduction
50734
+ async () => (await import("./Introduction-DQIj19yG.js")).Introduction
50725
50735
  );
50726
50736
  const SingpassSelection = lazy$1(
50727
- async () => (await import("./SingpassSelection-ib5_mHMn.js")).SingpassSelection
50737
+ async () => (await import("./SingpassSelection-Wg_zz0Wy.js")).SingpassSelection
50728
50738
  );
50729
50739
  const AccountSetupRejected = lazy$1(
50730
- async () => (await import("./AccountSetupRejected-B72M94Is.js")).AccountSetupRejected
50740
+ async () => (await import("./AccountSetupRejected-Cwfd_fWK.js")).AccountSetupRejected
50731
50741
  );
50732
50742
  const DecisionMakers = lazy$1(
50733
- async () => (await import("./DecisionMakers-CYdeSdkf.js")).DecisionMakers
50743
+ async () => (await import("./DecisionMakers-CnejKZ9b.js")).DecisionMakers
50734
50744
  );
50735
50745
  const CustomerSupport = lazy$1(
50736
- async () => (await import("./CustomerSupport-BGQOr4Db.js")).CustomerSupport
50746
+ async () => (await import("./CustomerSupport-DbR3DS_R.js")).CustomerSupport
50737
50747
  );
50738
- const Review = lazy$1(async () => (await import("./Review-Dk6mZ16K.js")).Review);
50748
+ const Review = lazy$1(async () => (await import("./Review-_0s3iKYp.js")).Review);
50739
50749
  const SignPCIComponent$2 = lazy$1(
50740
50750
  async () => (await Promise.resolve().then(() => SignPCIComponent$1)).SignPCIComponent
50741
50751
  );
50742
50752
  const TaxReportingDropin = lazy$1(
50743
- async () => (await import("./TaxReportingDropin-CmSpuUCg.js")).TaxReportingDropin
50753
+ async () => (await import("./TaxReportingDropin-kxliII-X.js")).TaxReportingDropin
50744
50754
  );
50745
50755
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
50746
50756
  const logger$6 = createLogger();
@@ -55163,7 +55173,7 @@ var TanstackQueryDevtools = (_l = class {
55163
55173
  if (__privateGet(this, _Component)) {
55164
55174
  Devtools = __privateGet(this, _Component);
55165
55175
  } else {
55166
- Devtools = lazy(() => import("./I3HPI4QX-D_KIe1Ju.js"));
55176
+ Devtools = lazy(() => import("./I3HPI4QX-CuR07QHc.js"));
55167
55177
  __privateSet(this, _Component, Devtools);
55168
55178
  }
55169
55179
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -55285,7 +55295,7 @@ var TanstackQueryDevtoolsPanel = (_m = class {
55285
55295
  if (__privateGet(this, _Component2)) {
55286
55296
  Devtools = __privateGet(this, _Component2);
55287
55297
  } else {
55288
- Devtools = lazy(() => import("./CXEL7IU7-BtQX4aZI.js"));
55298
+ Devtools = lazy(() => import("./CXEL7IU7-BCAwo_dH.js"));
55289
55299
  __privateSet(this, _Component2, Devtools);
55290
55300
  }
55291
55301
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -55504,7 +55514,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
55504
55514
  };
55505
55515
  };
55506
55516
  const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
55507
- const sdkVersion = "3.65.5";
55517
+ const sdkVersion = "3.65.8";
55508
55518
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
55509
55519
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
55510
55520
  const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
@@ -55579,7 +55589,7 @@ const AnalyticsProvider = ({
55579
55589
  const { onboardingVersion } = useVersion();
55580
55590
  const userEvents2 = useMemo(() => createUserEvents(), []);
55581
55591
  const sessionData = {
55582
- sdkVersion: "3.65.5",
55592
+ sdkVersion: "3.65.8",
55583
55593
  componentName,
55584
55594
  userAgent: navigator.userAgent,
55585
55595
  legalEntityId,
@@ -55713,7 +55723,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
55713
55723
  [baseUrl, rootLegalEntityId]
55714
55724
  );
55715
55725
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
55716
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.65.5" }),
55726
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.65.8" }),
55717
55727
  children2
55718
55728
  ] });
55719
55729
  };
@@ -56188,7 +56198,7 @@ function StateProvider({
56188
56198
  );
56189
56199
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
56190
56200
  }
56191
- const DebugModal = lazy$1(async () => (await import("./DebugModal-BfzvF9Kp.js").then((n) => n.D)).DebugModal);
56201
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-F6f8V0fY.js").then((n) => n.D)).DebugModal);
56192
56202
  const DebugListener = () => {
56193
56203
  const [debugUiOpen, setDebugUiOpen] = useState(false);
56194
56204
  const { isSettingEnabled } = useSettingsContext();
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-BfzvF9Kp.js";
10
+ import { c as cssProps } from "./DebugModal-F6f8V0fY.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text },
13
13
  property: { regex: /(^|[\r\n])[^:]*:/g, css: cssProps.key },
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-BfzvF9Kp.js";
10
+ import { c as cssProps } from "./DebugModal-F6f8V0fY.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text },
13
13
  number: { regex: /-?\d+(\.\d+)?([eE][+-]?\d+)?/g, css: cssProps.number },
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-BfzvF9Kp.js";
10
+ import { c as cssProps } from "./DebugModal-F6f8V0fY.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text }
13
13
  };
package/dist/style.css CHANGED
@@ -984,6 +984,14 @@
984
984
  .adyen-kyc-dropdown-element {
985
985
  align-items: center;
986
986
  display: flex;
987
+ }
988
+
989
+ .adyen-kyc-dropdown-ignore-pointer-events {
990
+ pointer-events: none;
991
+ }
992
+
993
+ .adyen-kyc-dropdown-handle-pointer-events {
994
+ pointer-events: auto;
987
995
  }/* #region Borders */
988
996
  /* #endregion */
989
997
  /* for container queries */
@@ -1,6 +1,7 @@
1
1
  import type { ExperimentName } from '../../../../context/ExperimentContext/types';
2
+ import type { AccountHolderOption } from '../../../../core/types/AccountHolder.types';
2
3
  import type { Document } from '../../../../core/models/api/document';
3
4
  import type { LegalEntity } from '../../../../core/models/api/legal-entity';
4
5
  import type { BusinessDetailsSchema } from '../../forms/BusinessDetails/types';
5
6
  export declare const mapBusinessDetailsDocumentToApiDocument: (data: BusinessDetailsSchema, entityId: string) => Promise<Document[]>;
6
- export declare const mapBusinessDetailsSchemaToLegalEntity: (data: BusinessDetailsSchema, isExperimentEnabled: (key: ExperimentName) => boolean) => LegalEntity;
7
+ export declare const mapBusinessDetailsSchemaToLegalEntity: (data: BusinessDetailsSchema, accountHolder: AccountHolderOption, isExperimentEnabled: (key: ExperimentName) => boolean) => LegalEntity;
@@ -48,7 +48,7 @@ export interface SubmitProps {
48
48
  nestedLegalEntityDetails?: TrustMember | UnincorporatedPartnershipMember;
49
49
  problems: EntityProblems | undefined;
50
50
  taskType: TaskTypes;
51
- accountHolder?: AccountHolderOption;
51
+ accountHolder: AccountHolderOption;
52
52
  forms: FormModelWithValidity[];
53
53
  documentUtils: DocumentApiUtils;
54
54
  i18n: Language;
@@ -98,7 +98,7 @@ export declare const companyRegistrationNumberOptions: {
98
98
  }, {
99
99
  readonly id: "companyNumber";
100
100
  readonly name: "companyNumber";
101
- readonly applicableOnlyFor: readonly [CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.GOVERNMENTAL_ORGANIZATION, CompanyTypesValue.INCORPORATED_ASSOCIATION, CompanyTypesValue.INCORPORATED_PARTNERSHIP, CompanyTypesValue.NON_PROFIT_OR_CHARITABLE, CompanyTypesValue.UNINCORPORATED_PARTNERSHIP, CompanyTypesValue.UNLISTED_PUBLIC_COMPANY];
101
+ readonly applicableOnlyFor: readonly [CompanyTypesValue.PRIVATE_COMPANY, CompanyTypesValue.GOVERNMENTAL_ORGANIZATION, CompanyTypesValue.INCORPORATED_ASSOCIATION, CompanyTypesValue.INCORPORATED_PARTNERSHIP, CompanyTypesValue.NON_PROFIT_OR_CHARITABLE, CompanyTypesValue.UNINCORPORATED_PARTNERSHIP, CompanyTypesValue.UNLISTED_PUBLIC_COMPANY, CompanyTypesValue.PUBLIC_COMPANY];
102
102
  }];
103
103
  };
104
104
  export declare const getCompanyRegistrationNumberOptions: (country: CountryCode, companyType: CompanyTypesValue | "trust" | undefined) => readonly CompanyRegistrationNumberOption[] | undefined;
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-BfzvF9Kp.js";
10
+ import { c as cssProps } from "./DebugModal-F6f8V0fY.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text },
13
13
  boolean: { regex: /^(\s*)([\w-]+)(:)\s*(.*)$/g, css: cssProps.boolean },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.65.5",
3
+ "version": "3.65.8",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",