@adyen/kyc-components 3.65.3 → 3.65.5

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 (22) hide show
  1. package/dist/{AccountSetupRejected-BLLyB-ea.js → AccountSetupRejected-B72M94Is.js} +1 -1
  2. package/dist/{CXEL7IU7-V6Zas1eI.js → CXEL7IU7-BtQX4aZI.js} +2 -2
  3. package/dist/{CustomerSupport-BmJjYt34.js → CustomerSupport-BGQOr4Db.js} +1 -1
  4. package/dist/{DebugModal-Cmn7E8MJ.js → DebugModal-BfzvF9Kp.js} +7 -7
  5. package/dist/{DecisionMakers-DNgrApcU.js → DecisionMakers-CYdeSdkf.js} +1 -1
  6. package/dist/{HASRA6WW-CfMbpTsi.js → HASRA6WW-CFLZ1flZ.js} +1 -1
  7. package/dist/{I3HPI4QX-CeDzta5Z.js → I3HPI4QX-D_KIe1Ju.js} +2 -2
  8. package/dist/{Introduction-Bhp3qiZS.js → Introduction-Rya0Sy7H.js} +1 -1
  9. package/dist/{Review-HyaFweUa.js → Review-Dk6mZ16K.js} +1 -1
  10. package/dist/{SingpassSelection-Cq51JGxQ.js → SingpassSelection-ib5_mHMn.js} +1 -1
  11. package/dist/{TaxReportingDropin-BpMjsZje.js → TaxReportingDropin-CmSpuUCg.js} +1 -1
  12. package/dist/adyen-kyc-components.js +1 -1
  13. package/dist/adyenConfig.js +1 -1
  14. package/dist/{core-B4Mm0vOw.js → core-w9cPGxZk.js} +50 -33
  15. package/dist/{css-8D-N1ZxQ.js → css-BF6zK3tk.js} +1 -1
  16. package/dist/{json-aeyXd6iH.js → json-D-3xxWqv.js} +1 -1
  17. package/dist/{plaintext-B4Bcg-sy.js → plaintext-BIYPTL53.js} +1 -1
  18. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +1 -7
  19. package/dist/types/components/Shared/forms/FinancialInformation/FinancialInformation.d.ts +1 -0
  20. package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +2 -1
  21. package/dist/{yaml-CJ21XASW.js → yaml-Bq5YTp6u.js} +1 -1
  22. 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-B4Mm0vOw.js";
11
+ import { u as useI18nContext, A as AlertIcon, w as FormHeader, D as DropinLayout } from "./core-w9cPGxZk.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-CfMbpTsi.js";
11
- import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-B4Mm0vOw.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-CFLZ1flZ.js";
11
+ import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-w9cPGxZk.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-B4Mm0vOw.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-w9cPGxZk.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] = "c4c3e592-a54f-4d9e-bb2b-f6754f28901e", e._sentryDebugIdIdentifier = "sentry-dbid-c4c3e592-a54f-4d9e-bb2b-f6754f28901e");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e5510762-12df-4c51-8958-b1b8c0829bec", e._sentryDebugIdIdentifier = "sentry-dbid-e5510762-12df-4c51-8958-b1b8c0829bec");
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-B4Mm0vOw.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-w9cPGxZk.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-B4Bcg-sy.js"),
148
- json: () => import("./json-aeyXd6iH.js"),
149
- yaml: () => import("./yaml-CJ21XASW.js"),
150
- css: () => import("./css-8D-N1ZxQ.js")
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")
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.3",
441
+ sdkVersion: "3.65.5",
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-B4Mm0vOw.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-w9cPGxZk.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-B4Mm0vOw.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-w9cPGxZk.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-CfMbpTsi.js";
11
- import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-B4Mm0vOw.js";
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";
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-B4Mm0vOw.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-w9cPGxZk.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-B4Mm0vOw.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-w9cPGxZk.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-B4Mm0vOw.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-w9cPGxZk.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-B4Mm0vOw.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-w9cPGxZk.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-B4Mm0vOw.js";
10
+ import { C as Core } from "./core-w9cPGxZk.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-B4Mm0vOw.js";
10
+ import { C as Core } from "./core-w9cPGxZk.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] = "890ad135-032f-43e0-8c91-97a0ee8c7391", e._sentryDebugIdIdentifier = "sentry-dbid-890ad135-032f-43e0-8c91-97a0ee8c7391");
22
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "62549116-dfa7-49c0-8ee0-3acf6666ddc5", e._sentryDebugIdIdentifier = "sentry-dbid-62549116-dfa7-49c0-8ee0-3acf6666ddc5");
23
23
  } catch (e) {
24
24
  }
25
25
  }
@@ -7360,7 +7360,6 @@ const Select = ({
7360
7360
  returnValue: selectedItem.id
7361
7361
  });
7362
7362
  }
7363
- if (showSearchList) setIsShowList(showSearchList);
7364
7363
  },
7365
7364
  [active, closeList, isMulti, name, onChange, readonly, showSearchList, enableTracking]
7366
7365
  );
@@ -7405,7 +7404,7 @@ const Select = ({
7405
7404
  const handleClickOutside = (e) => {
7406
7405
  var _a2;
7407
7406
  if (!((_a2 = selectContainerRef.current) == null ? void 0 : _a2.contains(e.target))) {
7408
- setIsShowList(false);
7407
+ closeList("nothing");
7409
7408
  }
7410
7409
  };
7411
7410
  const handleListItemKeyDown = (e, item) => {
@@ -7452,7 +7451,7 @@ const Select = ({
7452
7451
  );
7453
7452
  const onClickButton = async () => {
7454
7453
  if (isShowList) {
7455
- setIsShowList(false);
7454
+ closeList("button");
7456
7455
  } else {
7457
7456
  showList();
7458
7457
  focusInput();
@@ -18747,12 +18746,12 @@ function Currency({
18747
18746
  Select,
18748
18747
  {
18749
18748
  ...childProps,
18750
- onChange: handleChangeFor("currency", "input"),
18749
+ onChange: handleChangeFor("currency", "blur"),
18751
18750
  name: "currency",
18752
18751
  placeholder: i18n.get("currencyPlaceholder"),
18753
18752
  selected: data.currency,
18754
18753
  items: countryCurrenciesItems,
18755
- readonly: countryCurrenciesItems.length === 1 || readonly && !!data.currency
18754
+ readonly: readonly && !!data.currency
18756
18755
  }
18757
18756
  )
18758
18757
  }
@@ -18990,6 +18989,11 @@ const financialInfoValidationWithEmployeesRules = {
18990
18989
  }
18991
18990
  ]
18992
18991
  };
18992
+ const financialInformationFieldsForEu = [
18993
+ ...FINANCIAL_REPORTING_DATE_FIELD,
18994
+ ...CURRENCY_FIELD,
18995
+ "reportedValueOption"
18996
+ ];
18993
18997
  const financialInformationFields = [
18994
18998
  ...NUMBER_OF_EMPLOYEES_FIELD,
18995
18999
  ...FINANCIAL_REPORTING_DATE_FIELD,
@@ -19032,7 +19036,7 @@ function FinancialInformation(props) {
19032
19036
  const formUtils = createFormUtils(props, i18n);
19033
19037
  return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-company-financial-information", children: [
19034
19038
  /* @__PURE__ */ jsx$1(FormHeader, { heading }),
19035
- /* @__PURE__ */ jsx$1(
19039
+ country === CountryCodes.UnitedKingdom && /* @__PURE__ */ jsx$1(
19036
19040
  NumberOfEmployees,
19037
19041
  {
19038
19042
  data: formUtils.getFieldData(data, NUMBER_OF_EMPLOYEES_FIELD),
@@ -25865,6 +25869,9 @@ const getBasicInformationFields = (country) => {
25865
25869
  }
25866
25870
  return fields;
25867
25871
  };
25872
+ const getFinancialInformationFields = (country) => {
25873
+ return country === CountryCodes.UnitedKingdom ? financialInformationFields : financialInformationFieldsForEu;
25874
+ };
25868
25875
  const staticBusinessDetailsForms = {
25869
25876
  companyStructure: {
25870
25877
  formId: "companyStructure",
@@ -25894,13 +25901,6 @@ const staticBusinessDetailsForms = {
25894
25901
  formDescription: "weNeedAnOfficialDocument",
25895
25902
  fields: ["proofOfDirector"]
25896
25903
  },
25897
- companyFinancialInformation: {
25898
- formId: "companyFinancialInformation",
25899
- formName: "financialInformation",
25900
- formHeading: "companyFinancialInformationFormHeading",
25901
- formDescription: "companyFinancialInformationFormDescription",
25902
- fields: financialInformationFields
25903
- },
25904
25904
  companyConstitutionalDocument: {
25905
25905
  formId: "companyConstitutionalDocument",
25906
25906
  formName: "constitutionalDocument",
@@ -25929,7 +25929,13 @@ const getForms = (country) => ({
25929
25929
  companyRegistrationDocument: staticBusinessDetailsForms.companyRegistrationDocument,
25930
25930
  companyTaxDocument: staticBusinessDetailsForms.companyTaxDocument,
25931
25931
  companyProofOfDirectorDocument: staticBusinessDetailsForms.companyProofOfDirectorDocument,
25932
- companyFinancialInformation: staticBusinessDetailsForms.companyFinancialInformation,
25932
+ companyFinancialInformation: {
25933
+ formId: "companyFinancialInformation",
25934
+ formName: "financialInformation",
25935
+ formHeading: "companyFinancialInformationFormHeading",
25936
+ formDescription: "companyFinancialInformationFormDescription",
25937
+ fields: getFinancialInformationFields(country)
25938
+ },
25933
25939
  companyConstitutionalDocument: staticBusinessDetailsForms.companyConstitutionalDocument
25934
25940
  });
25935
25941
  const documentFormsIds = [
@@ -30227,7 +30233,12 @@ const UNRELATED_DATA_MISSING_ERROR_CODES = [
30227
30233
  "2_8189",
30228
30234
  "2_8190",
30229
30235
  "2_8191",
30230
- "2_8193"
30236
+ "2_8193",
30237
+ "2_8247",
30238
+ "2_8150",
30239
+ "2_8249",
30240
+ "2_8248",
30241
+ "2_8250"
30231
30242
  ];
30232
30243
  const UNRELATED_INVALID_INPUT_ERROR_CODES = ["1_14", "2_901", "2_902"];
30233
30244
  const getComponentMappingFromLEFieldPath = (context, entityType) => {
@@ -38346,13 +38357,15 @@ const formatAmountWithCurrency = (amount, currency) => {
38346
38357
  }
38347
38358
  return `${formattedAmount} ${currency}`;
38348
38359
  };
38349
- const formatFinancialInformationSummary = (data, i18n) => {
38360
+ const formatFinancialInformationSummary = (data, i18n, country) => {
38350
38361
  if (!data) return {};
38351
38362
  const summary2 = {
38352
- numberOfEmployees: `${data.numberOfEmployees}`,
38353
38363
  currency: data.currency,
38354
38364
  financialReportingDate: data.financialReportingDate
38355
38365
  };
38366
+ if (country === CountryCodes.UnitedKingdom) {
38367
+ summary2.numberOfEmployees = `${data.numberOfEmployees}`;
38368
+ }
38356
38369
  if (data.netAssets) {
38357
38370
  summary2.netAssets = summaryItem(
38358
38371
  "totalAssets",
@@ -38684,7 +38697,7 @@ const formatAdditionalInformation = (data, labels, country, companyType, i18n) =
38684
38697
  const formatDataForSummary$1 = (data, forms, labels, i18n, isExperimentEnabled) => {
38685
38698
  const datasetUtils = datasetUtilities(i18n.locale);
38686
38699
  return entriesOf(data).reduce((summaryData, [form]) => {
38687
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2;
38700
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2;
38688
38701
  if (!form || !data[form]) return summaryData;
38689
38702
  const isCountryOfGoverningLawEnabled = isExperimentEnabled(
38690
38703
  "EnableCountryOfGoverningLawForUKCompanies"
@@ -38759,7 +38772,11 @@ const formatDataForSummary$1 = (data, forms, labels, i18n, isExperimentEnabled)
38759
38772
  case "companyFinancialInformation":
38760
38773
  return {
38761
38774
  ...summaryData,
38762
- [form]: formatFinancialInformationSummary(data[form], i18n)
38775
+ [form]: formatFinancialInformationSummary(
38776
+ data[form],
38777
+ i18n,
38778
+ (_l2 = data == null ? void 0 : data.basicInformation) == null ? void 0 : _l2.country
38779
+ )
38763
38780
  };
38764
38781
  default:
38765
38782
  return summaryData;
@@ -50704,26 +50721,26 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
50704
50721
  return hasOwnEntityAssocation || !!hasOrganizationType;
50705
50722
  };
50706
50723
  const Introduction = lazy$1(
50707
- async () => (await import("./Introduction-Bhp3qiZS.js")).Introduction
50724
+ async () => (await import("./Introduction-Rya0Sy7H.js")).Introduction
50708
50725
  );
50709
50726
  const SingpassSelection = lazy$1(
50710
- async () => (await import("./SingpassSelection-Cq51JGxQ.js")).SingpassSelection
50727
+ async () => (await import("./SingpassSelection-ib5_mHMn.js")).SingpassSelection
50711
50728
  );
50712
50729
  const AccountSetupRejected = lazy$1(
50713
- async () => (await import("./AccountSetupRejected-BLLyB-ea.js")).AccountSetupRejected
50730
+ async () => (await import("./AccountSetupRejected-B72M94Is.js")).AccountSetupRejected
50714
50731
  );
50715
50732
  const DecisionMakers = lazy$1(
50716
- async () => (await import("./DecisionMakers-DNgrApcU.js")).DecisionMakers
50733
+ async () => (await import("./DecisionMakers-CYdeSdkf.js")).DecisionMakers
50717
50734
  );
50718
50735
  const CustomerSupport = lazy$1(
50719
- async () => (await import("./CustomerSupport-BmJjYt34.js")).CustomerSupport
50736
+ async () => (await import("./CustomerSupport-BGQOr4Db.js")).CustomerSupport
50720
50737
  );
50721
- const Review = lazy$1(async () => (await import("./Review-HyaFweUa.js")).Review);
50738
+ const Review = lazy$1(async () => (await import("./Review-Dk6mZ16K.js")).Review);
50722
50739
  const SignPCIComponent$2 = lazy$1(
50723
50740
  async () => (await Promise.resolve().then(() => SignPCIComponent$1)).SignPCIComponent
50724
50741
  );
50725
50742
  const TaxReportingDropin = lazy$1(
50726
- async () => (await import("./TaxReportingDropin-BpMjsZje.js")).TaxReportingDropin
50743
+ async () => (await import("./TaxReportingDropin-CmSpuUCg.js")).TaxReportingDropin
50727
50744
  );
50728
50745
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
50729
50746
  const logger$6 = createLogger();
@@ -55146,7 +55163,7 @@ var TanstackQueryDevtools = (_l = class {
55146
55163
  if (__privateGet(this, _Component)) {
55147
55164
  Devtools = __privateGet(this, _Component);
55148
55165
  } else {
55149
- Devtools = lazy(() => import("./I3HPI4QX-CeDzta5Z.js"));
55166
+ Devtools = lazy(() => import("./I3HPI4QX-D_KIe1Ju.js"));
55150
55167
  __privateSet(this, _Component, Devtools);
55151
55168
  }
55152
55169
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -55268,7 +55285,7 @@ var TanstackQueryDevtoolsPanel = (_m = class {
55268
55285
  if (__privateGet(this, _Component2)) {
55269
55286
  Devtools = __privateGet(this, _Component2);
55270
55287
  } else {
55271
- Devtools = lazy(() => import("./CXEL7IU7-V6Zas1eI.js"));
55288
+ Devtools = lazy(() => import("./CXEL7IU7-BtQX4aZI.js"));
55272
55289
  __privateSet(this, _Component2, Devtools);
55273
55290
  }
55274
55291
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -55487,7 +55504,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
55487
55504
  };
55488
55505
  };
55489
55506
  const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
55490
- const sdkVersion = "3.65.3";
55507
+ const sdkVersion = "3.65.5";
55491
55508
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
55492
55509
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
55493
55510
  const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
@@ -55562,7 +55579,7 @@ const AnalyticsProvider = ({
55562
55579
  const { onboardingVersion } = useVersion();
55563
55580
  const userEvents2 = useMemo(() => createUserEvents(), []);
55564
55581
  const sessionData = {
55565
- sdkVersion: "3.65.3",
55582
+ sdkVersion: "3.65.5",
55566
55583
  componentName,
55567
55584
  userAgent: navigator.userAgent,
55568
55585
  legalEntityId,
@@ -55696,7 +55713,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
55696
55713
  [baseUrl, rootLegalEntityId]
55697
55714
  );
55698
55715
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
55699
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.65.3" }),
55716
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.65.5" }),
55700
55717
  children2
55701
55718
  ] });
55702
55719
  };
@@ -56171,7 +56188,7 @@ function StateProvider({
56171
56188
  );
56172
56189
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
56173
56190
  }
56174
- const DebugModal = lazy$1(async () => (await import("./DebugModal-Cmn7E8MJ.js").then((n) => n.D)).DebugModal);
56191
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-BfzvF9Kp.js").then((n) => n.D)).DebugModal);
56175
56192
  const DebugListener = () => {
56176
56193
  const [debugUiOpen, setDebugUiOpen] = useState(false);
56177
56194
  const { isSettingEnabled } = useSettingsContext();
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-Cmn7E8MJ.js";
10
+ import { c as cssProps } from "./DebugModal-BfzvF9Kp.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-Cmn7E8MJ.js";
10
+ import { c as cssProps } from "./DebugModal-BfzvF9Kp.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-Cmn7E8MJ.js";
10
+ import { c as cssProps } from "./DebugModal-BfzvF9Kp.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text }
13
13
  };
@@ -2,6 +2,7 @@ import type { CountryCode } from '../../../../core/models/country-code';
2
2
  import type { AdditionalInformationSchema } from '../AdditionalInformation/types';
3
3
  import type { BasicInformationSchema } from '../BasicInformation/types';
4
4
  export declare const FIELDS_NEEDED_FOR_COMPANY_SEARCH: Array<keyof BasicInformationSchema | keyof AdditionalInformationSchema>;
5
+ export declare const getFinancialInformationFields: (country: CountryCode) => (keyof import("../../../Shared/forms/FinancialInformation/types").FinancialInformationSchema)[];
5
6
  export declare const staticBusinessDetailsForms: {
6
7
  readonly companyStructure: {
7
8
  readonly formId: "companyStructure";
@@ -31,13 +32,6 @@ export declare const staticBusinessDetailsForms: {
31
32
  readonly formDescription: "weNeedAnOfficialDocument";
32
33
  readonly fields: readonly ["proofOfDirector"];
33
34
  };
34
- readonly companyFinancialInformation: {
35
- readonly formId: "companyFinancialInformation";
36
- readonly formName: "financialInformation";
37
- readonly formHeading: "companyFinancialInformationFormHeading";
38
- readonly formDescription: "companyFinancialInformationFormDescription";
39
- readonly fields: (keyof import("../../../Shared/forms/FinancialInformation/types").FinancialInformationSchema)[];
40
- };
41
35
  readonly companyConstitutionalDocument: {
42
36
  readonly formId: "companyConstitutionalDocument";
43
37
  readonly formName: "constitutionalDocument";
@@ -1,3 +1,4 @@
1
1
  import type { FinancialInformationProps, FinancialInformationSchema } from './types';
2
+ export declare const financialInformationFieldsForEu: Array<keyof FinancialInformationSchema>;
2
3
  export declare const financialInformationFields: Array<keyof FinancialInformationSchema>;
3
4
  export declare function FinancialInformation(props: FinancialInformationProps): import("preact/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import type { Language } from '../../../../language/Language';
2
+ import type { CountryCode } from '../../../../core/models/country-code';
2
3
  import type { SummaryOf } from '../../Summary/types';
3
4
  import type { FinancialInformationSchema } from './types';
4
- export declare const formatFinancialInformationSummary: (data: FinancialInformationSchema | undefined, i18n: Language) => SummaryOf<FinancialInformationSchema>;
5
+ export declare const formatFinancialInformationSummary: (data: FinancialInformationSchema | undefined, i18n: Language, country: CountryCode | undefined) => SummaryOf<FinancialInformationSchema>;
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-Cmn7E8MJ.js";
10
+ import { c as cssProps } from "./DebugModal-BfzvF9Kp.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.3",
3
+ "version": "3.65.5",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",