@adyen/kyc-components 2.57.4 → 2.58.1

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 (95) hide show
  1. package/dist/es/adyen-kyc-components.es.js +776 -306
  2. package/dist/es/{bg-BG-Cg7uHZ7u.js → bg-BG-DSGcxUqd.js} +1160 -1079
  3. package/dist/es/{cs-CZ-MP5JPvEI.js → cs-CZ-DAS2jbyW.js} +1167 -1086
  4. package/dist/es/{da-DK-Bf4-HdQJ.js → da-DK-CH9-Y2_h.js} +1151 -1070
  5. package/dist/es/{de-DE-CpV6Dp0r.js → de-DE-Cvre4fQ7.js} +1152 -1071
  6. package/dist/es/{el-GR-DzwQKvWE.js → el-GR-BLJi6VdO.js} +1149 -1068
  7. package/dist/es/{es-ES-E5qWUSQV.js → es-ES-BfHjS5Hb.js} +1166 -1085
  8. package/dist/es/{et-EE-DRZrZKKJ.js → et-EE-DG5Cjsj_.js} +1156 -1075
  9. package/dist/es/{fi-FI-Bk1rCYU6.js → fi-FI-RdmcbEt_.js} +1155 -1074
  10. package/dist/es/{fr-FR-tlByDhb7.js → fr-FR-Cuu7ywoh.js} +1154 -1073
  11. package/dist/es/{hr-HR-CZUCz_Lu.js → hr-HR-CwRw-oEW.js} +1155 -1074
  12. package/dist/es/{hu-HU-CmEicftd.js → hu-HU-PO0jI1sW.js} +1149 -1068
  13. package/dist/es/{it-IT-BNGHjXBu.js → it-IT-RXBJv4US.js} +1172 -1091
  14. package/dist/es/{lt-LT-BDv4TY99.js → lt-LT-BCLEVKxe.js} +1149 -1068
  15. package/dist/es/{lv-LV-HfHaTFsC.js → lv-LV-DfWQ_6E9.js} +1152 -1071
  16. package/dist/es/{nl-NL-CSyNOXAT.js → nl-NL-2CzcCtiM.js} +1156 -1075
  17. package/dist/es/{no-NO-BzBtvG7T.js → no-NO-r9q3S-TP.js} +1163 -1082
  18. package/dist/es/{pl-PL-CwUuiZyG.js → pl-PL-Nix6oaTv.js} +1154 -1073
  19. package/dist/es/{pt-PT-CY_ZCE9N.js → pt-PT-CGVej1Ae.js} +1168 -1087
  20. package/dist/es/{ro-RO-C-OpimQU.js → ro-RO-DhJK0CPN.js} +1163 -1082
  21. package/dist/es/{sk-SK-Vi54HLZU.js → sk-SK-Akja9ejH.js} +1156 -1075
  22. package/dist/es/{sl-SI-2FDuP5IV.js → sl-SI-Bq22qBey.js} +1154 -1073
  23. package/dist/es/{sv-SE-lw5yiImq.js → sv-SE-2gCnkRkv.js} +1156 -1075
  24. package/dist/style.css +29 -6
  25. package/dist/types/components/BusinessDetails/forms.d.ts +7 -0
  26. package/dist/types/components/Company/component/CompanyComponent.d.ts +8 -0
  27. package/dist/types/components/Company/rules.d.ts +1 -0
  28. package/dist/types/components/Company/types.d.ts +2 -0
  29. package/dist/types/components/Dropins/BusinessDetailsDropin/utils.d.ts +1 -1
  30. package/dist/types/components/FinancialInformation/component/FinancialInformation.d.ts +3 -0
  31. package/dist/types/components/FinancialInformation/component/ReportedValue.d.ts +13 -0
  32. package/dist/types/components/FinancialInformation/types.d.ts +14 -0
  33. package/dist/types/components/FinancialInformation/validate.d.ts +3 -0
  34. package/dist/types/components/RegistrationAddress/component/RegistrationAddressComponent.d.ts +1 -2
  35. package/dist/types/components/index.d.ts +8 -8
  36. package/dist/types/components/internal/Address/validate.d.ts +1 -1
  37. package/dist/types/components/internal/Currency/Currency.d.ts +2 -4
  38. package/dist/types/components/internal/Currency/types.d.ts +2 -2
  39. package/dist/types/components/internal/FinancialReportingDate/FinancialReportingDate.d.ts +3 -0
  40. package/dist/types/components/internal/FinancialReportingDate/types.d.ts +5 -0
  41. package/dist/types/components/internal/FormFields/InputCurrency.d.ts +11 -0
  42. package/dist/types/components/internal/FormFields/InputNumber.d.ts +2 -0
  43. package/dist/types/components/internal/FormFields/Radio/Radio.d.ts +11 -0
  44. package/dist/types/components/internal/FormFields/Radio/RadioWithLabel.d.ts +7 -0
  45. package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +18 -2
  46. package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCard.d.ts +1 -1
  47. package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +2 -2
  48. package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.d.ts +1 -1
  49. package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +1 -2
  50. package/dist/types/components/internal/NumberOfEmployees/NumberOfEmployees.d.ts +3 -0
  51. package/dist/types/components/internal/NumberOfEmployees/types.d.ts +5 -0
  52. package/dist/types/core/Context/ExperimentContext/types.d.ts +1 -0
  53. package/dist/types/core/Context/I18nProvider/I18nContext.d.ts +1 -1
  54. package/dist/types/core/Context/StateContext/useGlobalData.d.ts +1 -1
  55. package/dist/types/core/models/api/financialReport.d.ts +9 -0
  56. package/dist/types/core/models/api/organization.d.ts +2 -0
  57. package/dist/types/utils/formUtils.d.ts +1 -1
  58. package/dist/types/utils/formatCurrency.d.ts +2 -0
  59. package/dist/types/utils/get-name.d.ts +1 -1
  60. package/dist/types/utils/isEmpty.d.ts +1 -0
  61. package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
  62. package/dist/types/utils/mapping/componentApiMapping.d.ts +10 -0
  63. package/dist/types/utils/trackNavigation.d.ts +1 -1
  64. package/package.json +1 -1
  65. package/dist/types/components/BankVerification/verification/widget/index.d.ts +0 -1
  66. package/dist/types/components/Dropins/CompanyDropin/index.d.ts +0 -1
  67. package/dist/types/components/Dropins/DropinComposer/index.d.ts +0 -1
  68. package/dist/types/components/Dropins/DropinLayout/ActionBar/index.d.ts +0 -1
  69. package/dist/types/components/Dropins/IndividualDropin/index.d.ts +0 -1
  70. package/dist/types/components/Dropins/PayoutDetailsDropin/index.d.ts +0 -1
  71. package/dist/types/components/Dropins/PciDropin/index.d.ts +0 -1
  72. package/dist/types/components/Dropins/RoleAndTypeDropin/index.d.ts +0 -1
  73. package/dist/types/components/Dropins/ServiceAgreementDropinComponent/index.d.ts +0 -1
  74. package/dist/types/components/Dropins/SolePropDropin/index.d.ts +0 -1
  75. package/dist/types/components/Dropins/TrustDropin/index.d.ts +0 -1
  76. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/index.d.ts +0 -2
  77. package/dist/types/components/IdVerificationMethod/index.d.ts +0 -1
  78. package/dist/types/components/internal/Button/index.d.ts +0 -1
  79. package/dist/types/components/internal/ContextGuidance/index.d.ts +0 -1
  80. package/dist/types/components/internal/ContractViewer/index.d.ts +0 -1
  81. package/dist/types/components/internal/Currency/index.d.ts +0 -1
  82. package/dist/types/components/internal/FormFields/Checkbox/index.d.ts +0 -1
  83. package/dist/types/components/internal/FormFields/Field/index.d.ts +0 -1
  84. package/dist/types/components/internal/FormFields/InputDate/index.d.ts +0 -1
  85. package/dist/types/components/internal/FormFields/InputRadio/InputRadio.d.ts +0 -6
  86. package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts +0 -1
  87. package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +0 -18
  88. package/dist/types/components/internal/FormFields/Select/index.d.ts +0 -1
  89. package/dist/types/components/internal/Icon/index.d.ts +0 -1
  90. package/dist/types/components/internal/Link/index.d.ts +0 -1
  91. package/dist/types/components/internal/LoaderWrapper/index.d.ts +0 -1
  92. package/dist/types/components/internal/PhoneInput/index.d.ts +0 -1
  93. package/dist/types/components/internal/Svg/index.d.ts +0 -1
  94. package/dist/types/language/index.d.ts +0 -1
  95. package/dist/types/utils/idGenerator.d.ts +0 -1
@@ -1,11 +1,11 @@
1
- import { useContext, useState, useCallback, useEffect, useMemo, useReducer, useRef, useLayoutEffect } from "preact/hooks";
1
+ import { useContext, useState, useCallback, useEffect, useMemo, useReducer, useId, useRef, useLayoutEffect } from "preact/hooks";
2
2
  import { createContext, isValidElement, createElement, render } from "preact";
3
3
  import { sanitize } from "isomorphic-dompurify";
4
4
  import cx from "classnames";
5
- import { lazy, Suspense, useId, forwardRef, memo, useMemo as useMemo$1 } from "preact/compat";
5
+ import { lazy, Suspense, forwardRef, memo, useMemo as useMemo$1 } from "preact/compat";
6
6
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
7
7
  import debounce from "lodash-es/debounce";
8
- import isEmpty$1 from "lodash-es/isEmpty";
8
+ import isEmpty$2 from "lodash-es/isEmpty";
9
9
  import isISIN from "validator/es/lib/isISIN.js";
10
10
  import OpenBankingSDK from "@adyen/openbankingsdk";
11
11
  import range from "lodash-es/range";
@@ -243,6 +243,8 @@ const defaultTrans = {
243
243
  codulDeIdentificareFiscala: "Codul de identificare fiscală (CIF)",
244
244
  company: "Company",
245
245
  companyDetails: "Company details",
246
+ companyFinancialInformationFormHeading: "Financial Details",
247
+ companyFinancialInformationFormDescription: "Financial information",
246
248
  companyLegalName: "Company legal name",
247
249
  companyName: "Company name",
248
250
  companyNumber: "Company number",
@@ -298,6 +300,7 @@ const defaultTrans = {
298
300
  cyRegistrationNumber: "Αριθμός Εγγραφής",
299
301
  dateDeedWasSigned: "Date deed was signed",
300
302
  dateOfIncorporation: "Date of incorporation",
303
+ dateOfTotalAssetsCalculation: "The date on which total assets and annual turnover were calculated is often the balance sheet date.",
301
304
  dateOnDocumentNoOlderThanXMonths: "Date on the document is no older than %{numberOfMonths} months",
302
305
  datePlaceholder: "dd/mm/yyyy",
303
306
  dbaName: "Doing Business As (DBA) name",
@@ -821,6 +824,7 @@ const defaultTrans = {
821
824
  invalidDateOfBirth: "Please enter a valid date of birth",
822
825
  invalidDateOfIncorporation: "Please enter a valid date of incorporation",
823
826
  invalidEmail: "Please enter a valid email",
827
+ invalidFinancialReportingDate: "Please enter a valid reporting date",
824
828
  invalidFormat: "Invalid format",
825
829
  invalidFormatBankStatementDescription: "Please ensure your input contains solely letters, digits, currency codes, and the specified special characters: -._,:;'*!@#%()+?¿/「」",
826
830
  invalidFormatExpects: "Invalid format. Expected format: %{format}",
@@ -845,6 +849,7 @@ const defaultTrans = {
845
849
  invalidFormatIdentityNumberSG: "Please use the NRIC format: S1234567A",
846
850
  invalidFormatIdentityNumberUS: "Please provide last 4 digits",
847
851
  invalidFormatIdentityNumberUS9: "Please use the SSN format: XXXXXXXXX",
852
+ invalidNumberOfEmployees: "Please enter a valid number",
848
853
  invalidPhoneNumber: "Please enter a valid phone number.",
849
854
  invalidRegistrationNumber: "Invalid registration number",
850
855
  invalidRole: "Please select a role",
@@ -1329,7 +1334,7 @@ const defaultTrans = {
1329
1334
  tooManyFiles: "Too many files",
1330
1335
  totalAssets: "Total assets",
1331
1336
  totalAssetsCurrency: "Total assets currency",
1332
- totalAssetsHelper: "Total liabilities plus total equity",
1337
+ totalAssetsHelper: "The sum of total liabilities and total equity.",
1333
1338
  totalAssetsValue: "Total assets value",
1334
1339
  tradingName: "Trading name",
1335
1340
  transferInstrumentDeleted: "Transfer instrument deleted",
@@ -1475,7 +1480,9 @@ const defaultTrans = {
1475
1480
  yourIbanShouldBeginWith_: "Your IBAN should begin with %{countryCode}.",
1476
1481
  zentralesVereinsregisterId: "Zentrales Vereinsregister ID",
1477
1482
  zipCode: "ZIP code",
1478
- incorporatedAssociationRegistrationNumber: "Incorporated association registration number"
1483
+ incorporatedAssociationRegistrationNumber: "Incorporated association registration number",
1484
+ reportingCurrency: "Reporting currency",
1485
+ reportedValue: "Reported value"
1479
1486
  };
1480
1487
  const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1481
1488
  __proto__: null,
@@ -1781,7 +1788,7 @@ var StateCodesUS = /* @__PURE__ */ ((StateCodesUS2) => {
1781
1788
  StateCodesUS2["Wyoming"] = "WY";
1782
1789
  return StateCodesUS2;
1783
1790
  })(StateCodesUS || {});
1784
- const logger$D = createLogger("useBusinessData");
1791
+ const logger$E = createLogger("useBusinessData");
1785
1792
  const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
1786
1793
  const KNOWN_BROKEN_PRIMARY_SOURCE_CONNECTIONS = [StateCodesUS.Arkansas, StateCodesUS.Connecticut, StateCodesUS.Georgia, StateCodesUS.Hawaii, StateCodesUS.Indiana, StateCodesUS.Kentucky, StateCodesUS.Maryland, StateCodesUS.Minnesota, StateCodesUS.Missouri, StateCodesUS.Montana, StateCodesUS.NewHampshire, StateCodesUS.NewMexico, StateCodesUS.SouthCarolina, StateCodesUS.Utah, StateCodesUS.Vermont, StateCodesUS.Wisconsin, StateCodesUS.Wyoming];
1787
1794
  const KNOWN_DISALLOWED_INDEX_DATASET_STATES = [StateCodesUS.California, StateCodesUS.Texas];
@@ -1819,7 +1826,7 @@ function useBusinessData({
1819
1826
  };
1820
1827
  const searchForBusiness = useCallback(async (data) => {
1821
1828
  if (!handleCompanyDeepSearch || !handleCompanyIndexSearch) {
1822
- logger$D.log("Missing handlers for searchForBusiness");
1829
+ logger$E.log("Missing handlers for searchForBusiness");
1823
1830
  return;
1824
1831
  }
1825
1832
  if (searchResults && objectsDeepEqual(cachedSearch, data)) return;
@@ -1836,7 +1843,7 @@ function useBusinessData({
1836
1843
  return response == null ? void 0 : response.results;
1837
1844
  } catch (e) {
1838
1845
  setSearching("error");
1839
- logger$D.error(e);
1846
+ logger$E.error(e);
1840
1847
  } finally {
1841
1848
  setCachedSearch(data);
1842
1849
  setSearching((prevState) => prevState !== "error" ? "loaded" : prevState);
@@ -1844,7 +1851,7 @@ function useBusinessData({
1844
1851
  }, [handleCompanyDeepSearch, handleCompanyIndexSearch, searchResults, cachedSearch]);
1845
1852
  const fetchBusinessData = useCallback(async (company, state) => {
1846
1853
  if (!handleGetCompanyDataset || !handleRefreshCompanyDataset) {
1847
- logger$D.log("Missing handlers for fetchBusinessData");
1854
+ logger$E.log("Missing handlers for fetchBusinessData");
1848
1855
  return;
1849
1856
  }
1850
1857
  if (cachedBusiness && objectsDeepEqual({
@@ -1885,14 +1892,14 @@ function useBusinessData({
1885
1892
  } catch (e) {
1886
1893
  setFetching("error");
1887
1894
  setCachedBusiness(void 0);
1888
- logger$D.error(e);
1895
+ logger$E.error(e);
1889
1896
  } finally {
1890
1897
  setFetching((prevState) => prevState !== "error" ? "loaded" : prevState);
1891
1898
  }
1892
1899
  }, [cachedBusiness, handleGetCompanyDataset, handleRefreshCompanyDataset]);
1893
1900
  const verifyBusinessData = useCallback(async (data, tin) => {
1894
1901
  if (!handleVerifyTin) {
1895
- logger$D.log("Missing handlers for verifyBusinessData");
1902
+ logger$E.log("Missing handlers for verifyBusinessData");
1896
1903
  return;
1897
1904
  }
1898
1905
  try {
@@ -1913,7 +1920,7 @@ function useBusinessData({
1913
1920
  return matched;
1914
1921
  } catch (e) {
1915
1922
  setVerifying("error");
1916
- logger$D.error(e);
1923
+ logger$E.error(e);
1917
1924
  } finally {
1918
1925
  setVerifying((prevState) => prevState !== "error" ? "loaded" : prevState);
1919
1926
  }
@@ -1924,7 +1931,7 @@ function useBusinessData({
1924
1931
  await (handleClearCompanyData == null ? void 0 : handleClearCompanyData());
1925
1932
  } catch (e) {
1926
1933
  setResettingTrustedData("error");
1927
- logger$D.error(e);
1934
+ logger$E.error(e);
1928
1935
  } finally {
1929
1936
  setResettingTrustedData((prevState) => prevState !== "error" ? "loaded" : prevState);
1930
1937
  }
@@ -2129,19 +2136,19 @@ const getMaxLengthByFieldAndCountry = (formattingRules, field, country, ignoreIf
2129
2136
  return maxLength || MAX_LENGTH;
2130
2137
  };
2131
2138
  const isUndefinedOrNull = (input) => input === void 0 || input === null;
2132
- const isEmpty = (input) => isUndefinedOrNull(input) || typeof input === "object" && Object.keys(input).length === 0 || typeof input === "string" && /^\s*$/.test(input);
2139
+ const isEmpty$1 = (input) => isUndefinedOrNull(input) || typeof input === "object" && Object.keys(input).length === 0 || typeof input === "string" && /^\s*$/.test(input);
2133
2140
  const isString = (input) => typeof input === "string" || input instanceof String;
2134
- const hasText = (input) => isString(input) && !isEmpty(input);
2141
+ const hasText = (input) => isString(input) && !isEmpty$1(input);
2135
2142
  const SPECIAL_CHARS = "?\\-\\+_=!@#$%^&*(){}~<>\\[\\]\\/\\\\";
2136
2143
  const getFormattingRegEx = (specChars, flags = "g") => new RegExp(`[${specChars}]`, flags);
2137
2144
  const trimValWithOneSpace = (val) => val.trimStart().replace(/\s+/g, " ");
2138
2145
  const EMOJI_REGEX = new RegExp("(\\p{Emoji}\\uFE0F|\\p{Emoji_Presentation}|\\p{Extended_Pictographic})", "gu");
2139
2146
  const NO_ALPHABET_REGEX = /^[^a-zA-Z]*$/;
2140
- const INDIVIDUAL_VALID_CHAR_REGEX = /^[\w\s\-—./']*$/;
2141
- const OTHER_ENTITIES_VALID_CHAR_REGEX = /^[\w\s,.;:\-—&!?@()"'/\\+]+$/;
2147
+ const INDIVIDUAL_VALID_CHAR_REGEX = /^[\p{L}\p{M}\d\s\-—./']*$/u;
2148
+ const OTHER_ENTITIES_VALID_CHAR_REGEX = /^[\w\s,.;:\-—&!?@()"'/\\+\p{L}\p{M}]+$/u;
2142
2149
  const matchesRegex = (regex, input) => isString(input) && regex.test(input ?? "");
2143
- const hasRepeatedCharacters = (input) => !isEmpty(input) && input.length > 1 && new Set(input).size === 1;
2144
- const isValidMinLength = (input, minLength = 1) => !isEmpty(input) && input.length >= minLength;
2150
+ const hasRepeatedCharacters = (input) => !isEmpty$1(input) && input.length > 1 && new Set(input).size === 1;
2151
+ const isValidMinLength = (input, minLength = 1) => !isEmpty$1(input) && input.length >= minLength;
2145
2152
  const isInvalidName = (input) => {
2146
2153
  const invalidNames = /* @__PURE__ */ new Set(["John Doe", "Jane Doe", "ABCD", "ABCDE", "ABCDEF", "ABCDEFG", "My Customer", "An other", "n/a", "not applicable", "n/A", "N/A", "N/a", "N\\ /A", "not app", "null"]);
2147
2154
  return invalidNames.has(input || "");
@@ -2225,7 +2232,7 @@ const svgs = {
2225
2232
  "trustly-logo": lazy(() => import("./trustly-logo-YJslAOYF.js"))
2226
2233
  };
2227
2234
  const unscalableIconNames = ["bin", "check", "checkmark", "checkmark-small", "chevron-right", "chevron-left", "company", "contract", "cross", "decision-maker", "document", "download", "edit", "info-circle", "image", "location", "payout", "pci", "plus", "remove", "save", "search", "trust", "user", "upload", "warning"];
2228
- const logger$C = createLogger("Icon");
2235
+ const logger$D = createLogger("Icon");
2229
2236
  const Svg = ({
2230
2237
  className,
2231
2238
  name,
@@ -2236,7 +2243,7 @@ const Svg = ({
2236
2243
  const LazyLoadedSvg = svgs[name];
2237
2244
  const viewBox = unscalableIconNames.includes(name) ? "0 0 16 16" : void 0;
2238
2245
  if (!LazyLoadedSvg) {
2239
- logger$C.error(`No such svg: "${name}"`);
2246
+ logger$D.error(`No such svg: "${name}"`);
2240
2247
  return null;
2241
2248
  }
2242
2249
  return jsx("span", {
@@ -2526,10 +2533,10 @@ function useFormRouterContext() {
2526
2533
  }
2527
2534
  return context;
2528
2535
  }
2529
- const logger$B = createLogger("Link");
2536
+ const logger$C = createLogger("Link");
2530
2537
  const isValidLink = (href) => {
2531
2538
  if (href === "#") {
2532
- logger$B.error('Links must include a valid href. If your href is "#", consider using a Button instead');
2539
+ logger$C.error('Links must include a valid href. If your href is "#", consider using a Button instead');
2533
2540
  return false;
2534
2541
  }
2535
2542
  return true;
@@ -2816,6 +2823,7 @@ var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
2816
2823
  ExperimentNames2["EnableNationalitySGHK"] = "EnableNationalitySGHK";
2817
2824
  ExperimentNames2["EnableAUGovernmentalOrganizationSkipRegistrationNumber"] = "EnableAUGovernmentalOrganizationSkipRegistrationNumber";
2818
2825
  ExperimentNames2["EnableMinimalRegistrationNumberValidationForAuIncorporatedAssociation"] = "EnableMinimalRegistrationNumberValidationForAuIncorporatedAssociation";
2826
+ ExperimentNames2["EnableFinancialInformationComponentV4"] = "EnableFinancialInformationComponentV4";
2819
2827
  ExperimentNames2["EnablePreferInstantVerificationFlow"] = "EnablePreferInstantVerificationFlow";
2820
2828
  return ExperimentNames2;
2821
2829
  })(ExperimentNames || {});
@@ -2877,7 +2885,7 @@ const useSetting = (settingName) => {
2877
2885
  } = context;
2878
2886
  return getSetting(settingName);
2879
2887
  };
2880
- const logger$A = createLogger("useAllowedCountries");
2888
+ const logger$B = createLogger("useAllowedCountries");
2881
2889
  const useAllowedCountries = () => {
2882
2890
  const acceptedCountries = useSetting("acceptedCountries");
2883
2891
  const {
@@ -2886,7 +2894,7 @@ const useAllowedCountries = () => {
2886
2894
  const [allowedCountries, setAllowedCountries] = useState(acceptedCountries);
2887
2895
  useEffect(() => {
2888
2896
  if (acceptedCountries !== void 0) return;
2889
- getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$A.error);
2897
+ getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$B.error);
2890
2898
  }, [acceptedCountries]);
2891
2899
  return allowedCountries;
2892
2900
  };
@@ -3245,7 +3253,7 @@ function reducer({
3245
3253
  }
3246
3254
  };
3247
3255
  }
3248
- const logger$z = createLogger("useAsyncValidator");
3256
+ const logger$A = createLogger("useAsyncValidator");
3249
3257
  const useAsyncValidator = (asyncRules) => {
3250
3258
  const [asyncValidationResults, setAsyncValidationResults] = useState({});
3251
3259
  const clearAsyncValidationResults = useCallback(() => setAsyncValidationResults({}), []);
@@ -3266,7 +3274,7 @@ const useAsyncValidator = (asyncRules) => {
3266
3274
  hasError: !isValid
3267
3275
  }])
3268
3276
  });
3269
- }).catch(logger$z.error);
3277
+ }).catch(logger$A.error);
3270
3278
  }, [asyncRules, clearAsyncValidationResults]);
3271
3279
  return {
3272
3280
  asyncValidationResults,
@@ -3294,7 +3302,7 @@ const useStaticValidator = (rules2) => {
3294
3302
  const isFieldObscured = !!((_b = context == null ? void 0 : context.state.obscuredFields) == null ? void 0 : _b.includes(key));
3295
3303
  const validationRulesResult = fieldRules.map((rule) => {
3296
3304
  const shouldValidate = rule.modes.includes(mode) && !isFieldObscured;
3297
- const isValid = isFieldOptional && isEmpty(value) ? true : rule.validate(value, context);
3305
+ const isValid = isFieldOptional && isEmpty$1(value) ? true : rule.validate(value, context);
3298
3306
  return {
3299
3307
  isValid,
3300
3308
  errorMessage: typeof rule.errorMessage === "function" ? rule.errorMessage(value, context) : rule.errorMessage,
@@ -3338,7 +3346,7 @@ function useForm({
3338
3346
  asyncValidationResults
3339
3347
  } = useAsyncValidator(asyncRules);
3340
3348
  const getRequiredFields = useMemo(() => typeof schema === "function" ? schema : () => schema, [schema]);
3341
- const getSchema = useMemo(() => defaultData ? getRequiredFields(defaultData) : [], [defaultData, getRequiredFields]);
3349
+ const getSchema2 = useMemo(() => defaultData ? getRequiredFields(defaultData) : [], [defaultData, getRequiredFields]);
3342
3350
  const getReducer = useCallback(() => reducer({
3343
3351
  staticValidate: triggerStaticValidation,
3344
3352
  asyncValidate: triggerAsyncValidation,
@@ -3348,7 +3356,7 @@ function useForm({
3348
3356
  formatters
3349
3357
  }), [triggerStaticValidation, triggerAsyncValidation, obscuredFields, optionalFields, trustedFields, formatters]);
3350
3358
  const initialData = useMemo(() => ({
3351
- schema: getSchema,
3359
+ schema: getSchema2,
3352
3360
  defaultData,
3353
3361
  fieldProblems,
3354
3362
  obscuredFields,
@@ -3357,7 +3365,7 @@ function useForm({
3357
3365
  formatters,
3358
3366
  staticValidate: triggerStaticValidation,
3359
3367
  asyncValidate: triggerAsyncValidation
3360
- }), [getSchema, defaultData, fieldProblems, obscuredFields, optionalFields, trustedFields, formatters, triggerStaticValidation, triggerAsyncValidation]);
3368
+ }), [getSchema2, defaultData, fieldProblems, obscuredFields, optionalFields, trustedFields, formatters, triggerStaticValidation, triggerAsyncValidation]);
3361
3369
  const [state, dispatch] = useReducer(getReducer(), initialData, init);
3362
3370
  const isValid = useMemo(() => {
3363
3371
  var _a;
@@ -3416,7 +3424,7 @@ function useForm({
3416
3424
  });
3417
3425
  }, [defaultData]);
3418
3426
  const resetToDefaultData = useCallback(() => {
3419
- getSchema.forEach((field) => {
3427
+ getSchema2.forEach((field) => {
3420
3428
  if (!defaultData || typeof defaultData[field] !== "undefined") {
3421
3429
  return handleChangeFor(field)(defaultData == null ? void 0 : defaultData[field]);
3422
3430
  }
@@ -3424,7 +3432,7 @@ function useForm({
3424
3432
  setErrors(field, null);
3425
3433
  setData(field, defaultData[field]);
3426
3434
  });
3427
- }, [defaultData, getSchema, handleChangeFor, setData, setErrors, setValid]);
3435
+ }, [defaultData, getSchema2, handleChangeFor, setData, setErrors, setValid]);
3428
3436
  useEffect(() => {
3429
3437
  const newSchema = getRequiredFields(state.data);
3430
3438
  if (!doArraysMatch(state.schema, newSchema)) {
@@ -4727,7 +4735,7 @@ const euCountries = [
4727
4735
  ];
4728
4736
  const validateNotEmptyOnBlur = {
4729
4737
  modes: ["blur"],
4730
- validate: (val) => !isEmpty(val),
4738
+ validate: (val) => !isEmpty$1(val),
4731
4739
  errorMessage: "fieldIsRequired"
4732
4740
  };
4733
4741
  const validateLegalCompanyName = [{
@@ -4965,7 +4973,7 @@ const PatriotActDisclosure = () => {
4965
4973
  const companyCountryValidationRules = {
4966
4974
  country: {
4967
4975
  modes: ["blur"],
4968
- validate: (companyCountry) => !isEmpty(companyCountry),
4976
+ validate: (companyCountry) => !isEmpty$1(companyCountry),
4969
4977
  errorMessage: "fieldIsRequired"
4970
4978
  },
4971
4979
  legalCompanyName: [{
@@ -4983,7 +4991,7 @@ const companyCountryValidationRules = {
4983
4991
  }],
4984
4992
  countryOfGoverningLaw: {
4985
4993
  modes: ["blur"],
4986
- validate: (countryOfGoverningLaw) => !isEmpty(countryOfGoverningLaw),
4994
+ validate: (countryOfGoverningLaw) => !isEmpty$1(countryOfGoverningLaw),
4987
4995
  errorMessage: "fieldIsRequired"
4988
4996
  }
4989
4997
  };
@@ -7219,7 +7227,7 @@ const deriveInputState = (isValid, isFocused, isDisabled, isOptional, hasNullish
7219
7227
  };
7220
7228
  };
7221
7229
  const MISMATCH_ANIMATION_NAME = "mismatchShake";
7222
- const logger$y = createLogger("MaskedInputText");
7230
+ const logger$z = createLogger("MaskedInputText");
7223
7231
  const MaskedInputText = ({
7224
7232
  value,
7225
7233
  onInput,
@@ -7247,7 +7255,7 @@ const MaskedInputText = ({
7247
7255
  isExperimentEnabled
7248
7256
  } = useExperimentsContext();
7249
7257
  const preserveMismatchingInitialValue = isExperimentEnabled("PreserveMismatchedInitialValues");
7250
- const hasExistingData = !isEmpty(value);
7258
+ const hasExistingData = !isEmpty$1(value);
7251
7259
  const [preservingMismatchedValue, setPreservingMismatchedValue] = useState(false);
7252
7260
  const [isFocused, setIsFocused] = useState(false);
7253
7261
  const [hasBlurred, setHasBlurred] = useState(hasExistingData);
@@ -7268,7 +7276,7 @@ const MaskedInputText = ({
7268
7276
  };
7269
7277
  useEffect(() => {
7270
7278
  if (!mask) {
7271
- logger$y.warn("`mask` is undefined. No masking of input will take place.");
7279
+ logger$z.warn("`mask` is undefined. No masking of input will take place.");
7272
7280
  }
7273
7281
  }, [mask]);
7274
7282
  const getMaskResult = useCallback((pureValue) => {
@@ -7293,13 +7301,13 @@ const MaskedInputText = ({
7293
7301
  return;
7294
7302
  }
7295
7303
  if (preserveMismatchingInitialValue) {
7296
- logger$y.warn(`Value received "${value}" does not match mask`, maskResult, `
7304
+ logger$z.warn(`Value received "${value}" does not match mask`, maskResult, `
7297
7305
  Preserving mismatched initial value until user input.`);
7298
7306
  setPreservingMismatchedValue(true);
7299
7307
  return;
7300
7308
  }
7301
7309
  const fallback = displayValueToPure(maskResult.partialDisplayValue);
7302
- logger$y.warn(`Value received "${value}" does not match mask`, maskResult, `
7310
+ logger$z.warn(`Value received "${value}" does not match mask`, maskResult, `
7303
7311
  Falling back to partially valid value "${fallback}"`);
7304
7312
  onInput(fallback);
7305
7313
  }
@@ -7453,58 +7461,82 @@ Falling back to partially valid value "${fallback}"`);
7453
7461
  })
7454
7462
  });
7455
7463
  };
7456
- let idCounter = Date.now();
7457
- const getUniqueId = (prefix = "id") => {
7458
- idCounter += 1;
7459
- return `${prefix}-${idCounter}`;
7460
- };
7461
- const InputRadio = ({
7462
- className,
7463
- ...props
7464
+ const Radio = ({
7465
+ id,
7466
+ value,
7467
+ groupName,
7468
+ checked = false,
7469
+ disabled = false,
7470
+ onClick,
7471
+ className
7464
7472
  }) => jsx("input", {
7465
- ...props,
7466
- className: cx("adyen-kyc-input-radio__input", className)
7473
+ className: cx(["adyen-kyc-input-radio__input", className]),
7474
+ id,
7475
+ type: "radio",
7476
+ checked,
7477
+ name: groupName,
7478
+ onClick,
7479
+ value,
7480
+ disabled
7467
7481
  });
7482
+ const RadioWithLabel = ({
7483
+ value,
7484
+ label,
7485
+ content,
7486
+ groupName,
7487
+ checked = false,
7488
+ disabled = false,
7489
+ onClick
7490
+ }) => {
7491
+ const id = useId();
7492
+ return jsxs("label", {
7493
+ htmlFor: id,
7494
+ className: "adyen-kyc-input-radio",
7495
+ children: [jsx(Radio, {
7496
+ id,
7497
+ checked,
7498
+ groupName,
7499
+ onClick,
7500
+ value,
7501
+ disabled
7502
+ }), jsxs("div", {
7503
+ className: "adyen-kyc-input-radio__content",
7504
+ children: [jsx("span", {
7505
+ className: "adyen-kyc-input-radio__label adyen-kyc-label__text",
7506
+ children: label
7507
+ }), content]
7508
+ })]
7509
+ });
7510
+ };
7468
7511
  function RadioGroup({
7469
7512
  items = [],
7470
7513
  name,
7471
7514
  onChange = noop,
7472
7515
  value,
7473
- isInvalid,
7474
- uniqueId,
7475
- className,
7476
7516
  disabled = false,
7477
- horizontal = false
7517
+ horizontal = false,
7518
+ showContentOnlyOnSelected = false,
7519
+ className
7478
7520
  }) {
7479
7521
  const {
7480
7522
  i18n
7481
7523
  } = useI18nContext();
7482
- const uniqueIdBase = uniqueId == null ? void 0 : uniqueId.replace(/[0-9]/g, "").substring(0, uniqueId.lastIndexOf("-"));
7483
- const classes = horizontal ? "adyen-kyc-radio-group adyen-kyc-radio-group--horizontal" : "adyen-kyc-radio-group";
7484
7524
  return jsx("div", {
7485
- className: classes,
7525
+ className: cx(["adyen-kyc-radio-group", {
7526
+ "adyen-kyc-radio-group--horizontal": horizontal
7527
+ }, className]),
7486
7528
  children: items.map((item) => {
7487
- const uniqueId2 = getUniqueId(uniqueIdBase);
7488
- return jsxs("label", {
7489
- htmlFor: uniqueId2,
7490
- className: "adyen-kyc-input-radio",
7491
- children: [jsx(InputRadio, {
7492
- id: uniqueId2,
7493
- type: "radio",
7494
- checked: value === item.id,
7495
- "aria-checked": value === item.id,
7496
- name: name ?? item.name,
7497
- onChange,
7498
- onClick: onChange,
7499
- value: item.id,
7500
- disabled
7501
- }), jsx("span", {
7502
- className: cx(["adyen-kyc-input-radio__label", "adyen-kyc-label__text", className, {
7503
- "adyen-kyc-radio-group__label--invalid": isInvalid
7504
- }]),
7505
- children: i18n.get(item.name)
7506
- })]
7507
- }, item.name || item.id);
7529
+ const isSelected = item.id === value;
7530
+ const visibleContent = isSelected || !showContentOnlyOnSelected ? item.content : void 0;
7531
+ return jsx(RadioWithLabel, {
7532
+ value: item.id,
7533
+ label: i18n.get(item.name),
7534
+ content: visibleContent,
7535
+ groupName: name,
7536
+ checked: isSelected,
7537
+ disabled,
7538
+ onClick: () => onChange(item.id)
7539
+ }, item.id);
7508
7540
  })
7509
7541
  });
7510
7542
  }
@@ -7689,7 +7721,7 @@ function CompanyRegistrationNumberTypeSelector({
7689
7721
  name: "companyRegistrationNumberType",
7690
7722
  items: options,
7691
7723
  value: selected,
7692
- onChange: (e) => handleSelect(e.target.value)
7724
+ onChange: handleSelect
7693
7725
  })
7694
7726
  });
7695
7727
  }
@@ -9215,7 +9247,7 @@ function TaxIdNumberTypeSelector({
9215
9247
  name: "taxIdNumberType",
9216
9248
  items: options,
9217
9249
  value: selected,
9218
- onChange: (e) => handleSelect(e.target.value)
9250
+ onChange: handleSelect
9219
9251
  })
9220
9252
  });
9221
9253
  }
@@ -9620,7 +9652,7 @@ function CompanyRegistrationDetailsComponent(props) {
9620
9652
  } = useGlobalDataSlice(COMPANY_REGISTRATION_DETAILS);
9621
9653
  const country = (companyNameAndCountry == null ? void 0 : companyNameAndCountry.country) ?? mergedProps.country;
9622
9654
  const hideOptionalRegistrationNumberField = FLOWS_THAT_HIDE_REGISTRATION_NUMBER.some((f) => f.country === country && mergedProps.companyType && f.companyType.includes(mergedProps.companyType));
9623
- const requiredFields = isEmpty$1(mergedProps.requiredFields) ? companyRegistrationDetailsFields : mergedProps.requiredFields;
9655
+ const requiredFields = isEmpty$2(mergedProps.requiredFields) ? companyRegistrationDetailsFields : mergedProps.requiredFields;
9624
9656
  const legalCompanyName = companyNameAndCountry == null ? void 0 : companyNameAndCountry.legalCompanyName;
9625
9657
  const defaultVatNumberType = ((_a = mergedProps.data) == null ? void 0 : _a.vatNumber) ? inferTaxIdNumberType((_b = mergedProps.data) == null ? void 0 : _b.vatNumber, country) : (_c = taxIdNumberOptions[country]) == null ? void 0 : _c[0].id;
9626
9658
  const [vatNumberType, setVatNumberType] = useState(defaultVatNumberType);
@@ -9909,6 +9941,9 @@ const companyBase = {
9909
9941
  },
9910
9942
  countryOfGoverningLaw: {
9911
9943
  rule: "countryOfGoverningLawRequired"
9944
+ },
9945
+ numberOfEmployees: {
9946
+ rule: "countryRequiringFinancialInformation"
9912
9947
  }
9913
9948
  };
9914
9949
  const businessDetailsBase = {
@@ -10301,7 +10336,6 @@ const RadioCard = ({
10301
10336
  optionDescription,
10302
10337
  optionSubtitle,
10303
10338
  name,
10304
- uniqueId,
10305
10339
  isInvalid,
10306
10340
  isSelected,
10307
10341
  onSelect,
@@ -10310,13 +10344,15 @@ const RadioCard = ({
10310
10344
  loading,
10311
10345
  icon,
10312
10346
  body,
10313
- footer
10347
+ footer,
10348
+ floatingRadio
10314
10349
  }) => {
10315
10350
  const {
10316
10351
  i18n
10317
10352
  } = useI18nContext();
10353
+ const id = useId();
10318
10354
  return jsxs("label", {
10319
- htmlFor: uniqueId,
10355
+ htmlFor: id,
10320
10356
  className: cx(["adyen-kyc-radio-card", classNames == null ? void 0 : classNames.label, {
10321
10357
  "adyen-kyc-radio-card--disabled": disabled
10322
10358
  }]),
@@ -10350,55 +10386,49 @@ const RadioCard = ({
10350
10386
  size: "small",
10351
10387
  dot: true
10352
10388
  })
10353
- }) : jsx(InputRadio, {
10354
- id: uniqueId,
10355
- type: "radio",
10389
+ }) : jsx(Radio, {
10390
+ id,
10356
10391
  checked: isSelected,
10357
- className: "adyen-kyc-radio-group-card__input",
10358
- name,
10359
- onChange: onSelect,
10392
+ groupName: name,
10360
10393
  onClick: onSelect,
10361
10394
  value: optionId,
10362
- "aria-checked": isSelected,
10363
- disabled
10395
+ disabled,
10396
+ className: cx({
10397
+ "adyen-kyc-radio-group-card__radio--floating": floatingRadio
10398
+ })
10364
10399
  })]
10365
10400
  }, optionId);
10366
10401
  };
10367
- function RadioGroupCard({
10402
+ const RadioGroupCard = ({
10368
10403
  items,
10369
10404
  name,
10370
10405
  onSelect,
10371
10406
  selected,
10372
10407
  isInvalid,
10373
- uniqueId,
10374
10408
  className,
10375
10409
  itemClassNames,
10376
10410
  itemIcon,
10377
10411
  itemBody,
10378
10412
  itemFooter,
10379
10413
  isItemDisabled
10380
- }) {
10381
- const uniqueIdBase = uniqueId == null ? void 0 : uniqueId.replace(/[0-9]/g, "").substring(0, uniqueId.lastIndexOf("-"));
10382
- return jsx("div", {
10383
- className: className ?? "adyen-kyc-radio-group-card",
10384
- children: items.map((item) => jsx(RadioCard, {
10385
- optionId: item.id,
10386
- optionName: item.name,
10387
- optionDescription: item.description,
10388
- optionSubtitle: item.subtitle,
10389
- uniqueId: getUniqueId(uniqueIdBase),
10390
- isInvalid,
10391
- isSelected: selected === item,
10392
- onSelect: () => onSelect(item),
10393
- name,
10394
- classNames: itemClassNames == null ? void 0 : itemClassNames(item),
10395
- icon: itemIcon == null ? void 0 : itemIcon(item),
10396
- body: itemBody == null ? void 0 : itemBody(item),
10397
- footer: itemFooter == null ? void 0 : itemFooter(item),
10398
- disabled: isItemDisabled == null ? void 0 : isItemDisabled(item)
10399
- }, item.id))
10400
- });
10401
- }
10414
+ }) => jsx("div", {
10415
+ className: className ?? "adyen-kyc-radio-group-card",
10416
+ children: items.map((item) => jsx(RadioCard, {
10417
+ optionId: item.id,
10418
+ optionName: item.name,
10419
+ optionDescription: item.description,
10420
+ optionSubtitle: item.subtitle,
10421
+ isInvalid,
10422
+ isSelected: selected === item,
10423
+ onSelect: () => onSelect(item),
10424
+ name,
10425
+ classNames: itemClassNames == null ? void 0 : itemClassNames(item),
10426
+ icon: itemIcon == null ? void 0 : itemIcon(item),
10427
+ body: itemBody == null ? void 0 : itemBody(item),
10428
+ footer: itemFooter == null ? void 0 : itemFooter(item),
10429
+ disabled: isItemDisabled == null ? void 0 : isItemDisabled(item)
10430
+ }, item.id))
10431
+ });
10402
10432
  const EntityTypeRadioGroupCard = ({
10403
10433
  examples,
10404
10434
  ...baseProps
@@ -10924,7 +10954,7 @@ function Dropzone(props) {
10924
10954
  })]
10925
10955
  });
10926
10956
  }
10927
- const logger$x = createLogger("TextArea");
10957
+ const logger$y = createLogger("TextArea");
10928
10958
  function TextArea(props) {
10929
10959
  const {
10930
10960
  classNameModifiers,
@@ -10945,7 +10975,7 @@ function TextArea(props) {
10945
10975
  } = useI18nContext();
10946
10976
  const [value, setValue] = useState("");
10947
10977
  if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
10948
- logger$x.error("Error: Form fields that rely on InputBase may not have an onChange property");
10978
+ logger$y.error("Error: Form fields that rely on InputBase may not have an onChange property");
10949
10979
  }
10950
10980
  const handleInput = (e) => {
10951
10981
  var _a;
@@ -11121,6 +11151,433 @@ function DocumentUploadComponent({
11121
11151
  });
11122
11152
  }
11123
11153
  const DocumentUpload = memo(DocumentUploadComponent, (prevProps, nextProps) => prevProps.shouldValidate === nextProps.shouldValidate && objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && objectsDeepEqual(prevProps.documentTypeSelect, nextProps.documentTypeSelect) && prevProps.documentField === nextProps.documentField && prevProps.name === nextProps.name && prevProps.country === nextProps.country && prevProps.companyType === nextProps.companyType);
11154
+ var Currencies = /* @__PURE__ */ ((Currencies2) => {
11155
+ Currencies2["AED"] = "AED";
11156
+ Currencies2["AUD"] = "AUD";
11157
+ Currencies2["BGN"] = "BGN";
11158
+ Currencies2["BRL"] = "BRL";
11159
+ Currencies2["CAD"] = "CAD";
11160
+ Currencies2["CHF"] = "CHF";
11161
+ Currencies2["CZK"] = "CZK";
11162
+ Currencies2["DKK"] = "DKK";
11163
+ Currencies2["EUR"] = "EUR";
11164
+ Currencies2["GBP"] = "GBP";
11165
+ Currencies2["HKD"] = "HKD";
11166
+ Currencies2["HRK"] = "HRK";
11167
+ Currencies2["HUF"] = "HUF";
11168
+ Currencies2["MXN"] = "MXN";
11169
+ Currencies2["MYR"] = "MYR";
11170
+ Currencies2["NOK"] = "NOK";
11171
+ Currencies2["NZD"] = "NZD";
11172
+ Currencies2["PLN"] = "PLN";
11173
+ Currencies2["RON"] = "RON";
11174
+ Currencies2["SEK"] = "SEK";
11175
+ Currencies2["SGD"] = "SGD";
11176
+ Currencies2["USD"] = "USD";
11177
+ return Currencies2;
11178
+ })(Currencies || {});
11179
+ const currencyByCountry = {
11180
+ [CountryCodes.Australia]: [Currencies.AUD],
11181
+ [CountryCodes.Austria]: [Currencies.EUR],
11182
+ [CountryCodes.Belgium]: [Currencies.EUR],
11183
+ [CountryCodes.Brazil]: [Currencies.BRL],
11184
+ [CountryCodes.Bulgaria]: [Currencies.BGN, Currencies.EUR],
11185
+ [CountryCodes.Canada]: [Currencies.CAD, Currencies.USD],
11186
+ [CountryCodes.Croatia]: [Currencies.HRK, Currencies.EUR],
11187
+ [CountryCodes.Cyprus]: [Currencies.EUR],
11188
+ [CountryCodes.CzechRepublic]: [Currencies.CZK, Currencies.EUR],
11189
+ [CountryCodes.Denmark]: [Currencies.DKK, Currencies.EUR],
11190
+ [CountryCodes.Estonia]: [Currencies.EUR],
11191
+ [CountryCodes.Finland]: [Currencies.EUR],
11192
+ [CountryCodes.France]: [Currencies.EUR],
11193
+ [CountryCodes.Germany]: [Currencies.EUR],
11194
+ [CountryCodes.Gibraltar]: [Currencies.GBP],
11195
+ [CountryCodes.Greece]: [Currencies.EUR],
11196
+ [CountryCodes.Guernsey]: [Currencies.GBP],
11197
+ [CountryCodes.HongKong]: [Currencies.HKD],
11198
+ [CountryCodes.Hungary]: [Currencies.HUF, Currencies.EUR],
11199
+ [CountryCodes.Ireland]: [Currencies.EUR],
11200
+ [CountryCodes.IsleOfMan]: [Currencies.GBP],
11201
+ [CountryCodes.Italy]: [Currencies.EUR],
11202
+ [CountryCodes.Jersey]: [Currencies.GBP],
11203
+ [CountryCodes.Latvia]: [Currencies.EUR],
11204
+ [CountryCodes.Liechtenstein]: [Currencies.CHF, Currencies.EUR],
11205
+ [CountryCodes.Lithuania]: [Currencies.EUR],
11206
+ [CountryCodes.Luxembourg]: [Currencies.EUR],
11207
+ [CountryCodes.Malaysia]: [Currencies.MYR],
11208
+ [CountryCodes.Malta]: [Currencies.EUR],
11209
+ [CountryCodes.Mexico]: [Currencies.MXN],
11210
+ [CountryCodes.Monaco]: [Currencies.EUR],
11211
+ [CountryCodes.Netherlands]: [Currencies.EUR],
11212
+ [CountryCodes.NewZealand]: [Currencies.NZD],
11213
+ [CountryCodes.Norway]: [Currencies.NOK, Currencies.EUR],
11214
+ [CountryCodes.Poland]: [Currencies.PLN, Currencies.EUR],
11215
+ [CountryCodes.Portugal]: [Currencies.EUR],
11216
+ [CountryCodes.PuertoRico]: [Currencies.USD],
11217
+ // should exactly match CountryCodes.UnitedStates
11218
+ [CountryCodes.Romania]: [Currencies.RON, Currencies.EUR],
11219
+ [CountryCodes.Singapore]: [Currencies.SGD],
11220
+ [CountryCodes.Slovakia]: [Currencies.EUR],
11221
+ [CountryCodes.Slovenia]: [Currencies.EUR],
11222
+ [CountryCodes.Spain]: [Currencies.EUR],
11223
+ [CountryCodes.Sweden]: [Currencies.SEK, Currencies.EUR],
11224
+ [CountryCodes.Switzerland]: [Currencies.CHF, Currencies.EUR],
11225
+ [CountryCodes.UnitedArabEmirates]: [Currencies.AED],
11226
+ [CountryCodes.UnitedKingdom]: [Currencies.GBP, Currencies.EUR],
11227
+ [CountryCodes.UnitedStates]: [Currencies.USD]
11228
+ };
11229
+ const CURRENCY_FIELD = ["currency"];
11230
+ function Currency({
11231
+ data,
11232
+ valid,
11233
+ errors,
11234
+ labels: labels2,
11235
+ readonly,
11236
+ handleChangeFor,
11237
+ helperText,
11238
+ country
11239
+ }) {
11240
+ const {
11241
+ i18n
11242
+ } = useI18nContext();
11243
+ const currenciesForCurrCountry = currencyByCountry[country];
11244
+ const countryCurrenciesItems = currenciesForCurrCountry ? currenciesForCurrCountry.map((currency) => ({
11245
+ id: currency,
11246
+ name: currency
11247
+ })) : [];
11248
+ return jsx("div", {
11249
+ className: "adyen-kyc-field__currency",
11250
+ children: jsx(Field, {
11251
+ name: "currency",
11252
+ label: labels2.currency,
11253
+ helper: helperText == null ? void 0 : helperText.currency,
11254
+ errorMessage: errors.currency,
11255
+ isValid: valid.currency,
11256
+ classNameModifiers: ["currency"],
11257
+ children: (childProps) => jsx(Select, {
11258
+ ...childProps,
11259
+ onChange: handleChangeFor("currency", "input"),
11260
+ name: "currency",
11261
+ placeholder: i18n.get("currencyPlaceholder"),
11262
+ selected: data.currency,
11263
+ items: countryCurrenciesItems,
11264
+ readonly: countryCurrenciesItems.length === 1 || readonly && !!data.currency
11265
+ })
11266
+ })
11267
+ });
11268
+ }
11269
+ const FINANCIAL_REPORTING_DATE_FIELD = ["financialReportingDate"];
11270
+ function FinancialReportingDate({
11271
+ data,
11272
+ valid,
11273
+ errors,
11274
+ labels: labels2,
11275
+ readonly,
11276
+ handleChangeFor
11277
+ }) {
11278
+ const {
11279
+ i18n
11280
+ } = useI18nContext();
11281
+ return jsx("div", {
11282
+ children: jsx(Field, {
11283
+ name: "financialReportingDate",
11284
+ label: labels2.financialReportingDate,
11285
+ helper: i18n.get("dateOfTotalAssetsCalculation"),
11286
+ helperPosition: "below",
11287
+ errorMessage: errors.financialReportingDate,
11288
+ isValid: valid.financialReportingDate,
11289
+ classNameModifiers: ["financialReportingDate"],
11290
+ children: (childProps) => jsx(InputDate, {
11291
+ ...childProps,
11292
+ name: "financialReportingDate",
11293
+ value: data.financialReportingDate,
11294
+ onInput: handleChangeFor("financialReportingDate", "input"),
11295
+ onBlur: handleChangeFor("financialReportingDate", "blur"),
11296
+ "aria-required": true,
11297
+ "aria-label": labels2.financialReportingDate,
11298
+ "aria-invalid": !valid.financialReportingDate,
11299
+ readonly,
11300
+ max: formatDateObj(/* @__PURE__ */ new Date())
11301
+ })
11302
+ })
11303
+ });
11304
+ }
11305
+ function InputNumber(props) {
11306
+ return jsx(InputBase, {
11307
+ ...props,
11308
+ type: "number"
11309
+ });
11310
+ }
11311
+ const NUMBER_OF_EMPLOYEES_FIELD = ["numberOfEmployees"];
11312
+ function NumberOfEmployees({
11313
+ data,
11314
+ valid,
11315
+ errors,
11316
+ labels: labels2,
11317
+ readonly,
11318
+ handleChangeFor,
11319
+ helperText
11320
+ }) {
11321
+ return jsx("div", {
11322
+ children: jsx(Field, {
11323
+ name: "numberOfEmployees",
11324
+ label: labels2.numberOfEmployees,
11325
+ helper: helperText == null ? void 0 : helperText.numberOfEmployees,
11326
+ errorMessage: errors.numberOfEmployees,
11327
+ isValid: valid.numberOfEmployees,
11328
+ classNameModifiers: ["numberOfEmployees"],
11329
+ children: (childProps) => jsx(InputNumber, {
11330
+ ...childProps,
11331
+ "aria-required": true,
11332
+ "aria-label": labels2.numberOfEmployees,
11333
+ "aria-invalid": !valid.numberOfEmployees,
11334
+ name: "numberOfEmployees",
11335
+ min: "0",
11336
+ step: "1",
11337
+ value: data.numberOfEmployees,
11338
+ readonly,
11339
+ onInput: handleChangeFor("numberOfEmployees", "input"),
11340
+ onBlur: handleChangeFor("numberOfEmployees", "blur")
11341
+ })
11342
+ })
11343
+ });
11344
+ }
11345
+ const financialInfoValidationRules = {
11346
+ numberOfEmployees: [{
11347
+ modes: ["blur"],
11348
+ validate: (numberOfEmployees) => !isEmpty$1(numberOfEmployees),
11349
+ errorMessage: "fieldIsRequired"
11350
+ }],
11351
+ financialReportingDate: [{
11352
+ modes: ["blur"],
11353
+ validate: (date) => !isEmpty$1(date),
11354
+ errorMessage: "fieldIsRequired"
11355
+ }, {
11356
+ modes: ["blur"],
11357
+ validate: (date) => date ? new Date(date) < /* @__PURE__ */ new Date() : false,
11358
+ errorMessage: "invalidFinancialReportingDate"
11359
+ }],
11360
+ currency: [{
11361
+ modes: ["blur"],
11362
+ validate: (currency) => !isEmpty$1(currency),
11363
+ errorMessage: "fieldIsRequired"
11364
+ }],
11365
+ reportedValueOption: {
11366
+ modes: ["blur"],
11367
+ validate: (option) => !isEmpty$1(option),
11368
+ errorMessage: "fieldIsRequired"
11369
+ },
11370
+ netAssets: {
11371
+ modes: ["blur"],
11372
+ validate: (amount) => !isUndefinedOrNull(amount),
11373
+ errorMessage: "fieldIsRequired"
11374
+ },
11375
+ annualTurnover: {
11376
+ modes: ["blur"],
11377
+ validate: (amount) => !isUndefinedOrNull(amount),
11378
+ errorMessage: "fieldIsRequired"
11379
+ }
11380
+ };
11381
+ const financialInformationReportedValueOptions = "adyen-kyc-financial-information-reported-value-options";
11382
+ const styles$6 = {
11383
+ "financial-information-reported-value-options": "adyen-kyc-financial-information-reported-value-options",
11384
+ financialInformationReportedValueOptions
11385
+ };
11386
+ const logger$x = createLogger("InputCurrency");
11387
+ const determineDecimalSeparator = (formatter) => formatter.formatToParts(0.1).find((part) => part.type === "decimal").value;
11388
+ const determineCurrencySymbol = (formatter) => formatter.formatToParts(0).find((part) => part.type === "currency").value;
11389
+ const getNumberFromFormattedCurrency = (formatted, decimalSeparator) => {
11390
+ const lastDecimalIndex = formatted.lastIndexOf(decimalSeparator);
11391
+ const normalized = Array.from(formatted).reduce((acc, curr, i) => {
11392
+ if (/[0-9]/.test(curr)) return acc + curr;
11393
+ if (i === lastDecimalIndex) return `${acc}.`;
11394
+ return acc;
11395
+ }, "");
11396
+ return parseFloat(normalized);
11397
+ };
11398
+ const InputCurrency = ({
11399
+ locale,
11400
+ currency,
11401
+ amount,
11402
+ onAmountChanged,
11403
+ ...baseProps
11404
+ }) => {
11405
+ const formatter = useMemo(() => new Intl.NumberFormat(locale, {
11406
+ style: "currency",
11407
+ currency
11408
+ }), [locale, currency]);
11409
+ const decimalSeparator = useMemo(() => determineDecimalSeparator(formatter), [formatter]);
11410
+ const currencySymbol = useMemo(() => determineCurrencySymbol(formatter), [formatter]);
11411
+ const [text, setText] = useState("");
11412
+ const onInput = (e) => setText(e.target.value);
11413
+ const onBlur = (e) => {
11414
+ const rawValue = e.target.value;
11415
+ const value = getNumberFromFormattedCurrency(rawValue, decimalSeparator);
11416
+ if (Number.isNaN(value)) {
11417
+ logger$x.warn(`Unable to get number from formatted currency: "${rawValue}"`);
11418
+ setText(isUndefinedOrNull(amount) ? currencySymbol : formatter.format(amount));
11419
+ return;
11420
+ }
11421
+ onAmountChanged(value);
11422
+ };
11423
+ useEffect(() => {
11424
+ setText(isUndefinedOrNull(amount) ? currencySymbol : formatter.format(amount));
11425
+ }, [amount, currencySymbol, formatter]);
11426
+ return jsx(InputText, {
11427
+ ...baseProps,
11428
+ value: text,
11429
+ onInput,
11430
+ onBlur
11431
+ });
11432
+ };
11433
+ const reportedValue = "adyen-kyc-reported-value";
11434
+ const reportedValueInput = "adyen-kyc-reported-value-input";
11435
+ const styles$5 = {
11436
+ "reported-value": "adyen-kyc-reported-value",
11437
+ reportedValue,
11438
+ "reported-value-input": "adyen-kyc-reported-value-input",
11439
+ reportedValueInput
11440
+ };
11441
+ const ReportedValue = ({
11442
+ currency,
11443
+ amount,
11444
+ onAmountChanged,
11445
+ helper,
11446
+ fieldName,
11447
+ errorMessage,
11448
+ isValid
11449
+ }) => {
11450
+ const {
11451
+ i18n
11452
+ } = useI18nContext();
11453
+ return jsx("div", {
11454
+ className: styles$5.reportedValue,
11455
+ children: jsx(Field, {
11456
+ name: fieldName,
11457
+ errorMessage,
11458
+ isValid,
11459
+ helper,
11460
+ children: (childProps) => jsx(InputCurrency, {
11461
+ ...childProps,
11462
+ locale: i18n.locale,
11463
+ currency,
11464
+ amount,
11465
+ onAmountChanged,
11466
+ className: styles$5.reportedValueInput
11467
+ })
11468
+ })
11469
+ });
11470
+ };
11471
+ const financialInformationFields = [...NUMBER_OF_EMPLOYEES_FIELD, ...FINANCIAL_REPORTING_DATE_FIELD, ...CURRENCY_FIELD, "reportedValueOption"];
11472
+ const getSchema = (data) => [...financialInformationFields, ...data.reportedValueOption ? [data.reportedValueOption] : []];
11473
+ function FinancialInformation(props) {
11474
+ var _a;
11475
+ const {
11476
+ i18n
11477
+ } = useI18nContext();
11478
+ const defaultCurrency = ((_a = currencyByCountry[props.country]) == null ? void 0 : _a[0]) ?? "EUR";
11479
+ const {
11480
+ handleChangeFor,
11481
+ data,
11482
+ valid,
11483
+ errors,
11484
+ fieldProblems,
11485
+ schema
11486
+ } = useForm({
11487
+ ...props,
11488
+ schema: getSchema,
11489
+ defaultData: props.data,
11490
+ rules: financialInfoValidationRules,
11491
+ fieldProblems: props == null ? void 0 : props.fieldValidationErrors
11492
+ });
11493
+ const {
11494
+ updateStateSlice
11495
+ } = useGlobalDataSlice("companyFinancialInformation");
11496
+ useEffect(() => {
11497
+ updateStateSlice({
11498
+ data,
11499
+ valid,
11500
+ errors,
11501
+ fieldProblems,
11502
+ schema
11503
+ });
11504
+ }, [data, valid, errors, fieldProblems, schema, updateStateSlice]);
11505
+ const updateReportedValueOption = (option) => {
11506
+ if (data.reportedValueOption) {
11507
+ handleChangeFor(data.reportedValueOption)(null);
11508
+ }
11509
+ const newReportedValue = option;
11510
+ handleChangeFor("reportedValueOption")(newReportedValue);
11511
+ };
11512
+ const formUtils = formUtilities(props, i18n);
11513
+ return jsxs("div", {
11514
+ className: "adyen-kyc-company-financial-information",
11515
+ children: [jsx(FormHeader, {
11516
+ heading: props.heading
11517
+ }), jsx(NumberOfEmployees, {
11518
+ data: formUtils.getFieldData(data, NUMBER_OF_EMPLOYEES_FIELD),
11519
+ errors: formUtils.getFieldErrors(errors, fieldProblems, NUMBER_OF_EMPLOYEES_FIELD),
11520
+ handleChangeFor,
11521
+ labels: formUtils.getFieldLabels(NUMBER_OF_EMPLOYEES_FIELD),
11522
+ readonly: formUtils.isReadOnly("numberOfEmployees"),
11523
+ valid: formUtils.getFieldValid(valid, NUMBER_OF_EMPLOYEES_FIELD)
11524
+ }), jsx(FinancialReportingDate, {
11525
+ data: formUtils.getFieldData(data, FINANCIAL_REPORTING_DATE_FIELD),
11526
+ errors: formUtils.getFieldErrors(errors, fieldProblems, FINANCIAL_REPORTING_DATE_FIELD),
11527
+ handleChangeFor,
11528
+ labels: formUtils.getFieldLabels(FINANCIAL_REPORTING_DATE_FIELD),
11529
+ readonly: formUtils.isReadOnly("financialReportingDate"),
11530
+ valid: formUtils.getFieldValid(valid, FINANCIAL_REPORTING_DATE_FIELD)
11531
+ }), jsx(Currency, {
11532
+ country: props.country,
11533
+ data: formUtils.getFieldData(data, CURRENCY_FIELD),
11534
+ errors: formUtils.getFieldErrors(errors, fieldProblems, CURRENCY_FIELD),
11535
+ handleChangeFor,
11536
+ labels: {
11537
+ currency: i18n.get("reportingCurrency")
11538
+ },
11539
+ readonly: formUtils.isReadOnly("currency"),
11540
+ valid: formUtils.getFieldValid(valid, CURRENCY_FIELD)
11541
+ }), jsx(Field, {
11542
+ name: "reportedValueOption",
11543
+ label: i18n.get("reportedValue"),
11544
+ errorMessage: formUtils.getErrorMessage("reportedValueOption", errors, fieldProblems),
11545
+ isValid: valid.reportedValueOption,
11546
+ children: (childProps) => jsx(RadioGroup, {
11547
+ ...childProps,
11548
+ value: data.reportedValueOption,
11549
+ items: [{
11550
+ id: "netAssets",
11551
+ name: "totalAssets",
11552
+ content: jsx(ReportedValue, {
11553
+ currency: data.currency ?? defaultCurrency,
11554
+ amount: data.netAssets,
11555
+ onAmountChanged: handleChangeFor("netAssets"),
11556
+ helper: i18n.get("totalAssetsHelper"),
11557
+ fieldName: "netAssets",
11558
+ isValid: valid.netAssets,
11559
+ errorMessage: formUtils.getErrorMessage("netAssets", errors, fieldProblems)
11560
+ })
11561
+ }, {
11562
+ id: "annualTurnover",
11563
+ name: "annualTurnover",
11564
+ content: jsx(ReportedValue, {
11565
+ currency: data.currency ?? defaultCurrency,
11566
+ amount: data.annualTurnover,
11567
+ onAmountChanged: handleChangeFor("annualTurnover"),
11568
+ helper: i18n.get("annualTurnoverHelper"),
11569
+ fieldName: "annualTurnover",
11570
+ isValid: valid.annualTurnover,
11571
+ errorMessage: formUtils.getErrorMessage("annualTurnover", errors, fieldProblems)
11572
+ })
11573
+ }],
11574
+ onChange: updateReportedValueOption,
11575
+ showContentOnlyOnSelected: true,
11576
+ className: styles$6.financialInformationReportedValueOptions
11577
+ })
11578
+ })]
11579
+ });
11580
+ }
11124
11581
  function List({
11125
11582
  className,
11126
11583
  nested,
@@ -12868,10 +13325,7 @@ function RegistrationAddressComponent(props) {
12868
13325
  handleChangeFor("operationalAddress")(state.data);
12869
13326
  setValid("operationalAddress", Boolean(state.isValid));
12870
13327
  };
12871
- const handleOperationalAddressIsSameChange = (e) => {
12872
- const {
12873
- value
12874
- } = e.target;
13328
+ const handleOperationalAddressIsSameChange = (value) => {
12875
13329
  handleChangeFor("operationalAddressIsSame")(value);
12876
13330
  if (value === "OperationAddressAnswerYes") setValid("operationalAddress", true);
12877
13331
  };
@@ -13230,6 +13684,13 @@ const companyForms = {
13230
13684
  formHeading: "companyTaxDocumentFormHeading",
13231
13685
  formDescription: "companyTaxDocumentFormDescription",
13232
13686
  fields: ["taxDocument"]
13687
+ },
13688
+ companyFinancialInformation: {
13689
+ formId: "companyFinancialInformation",
13690
+ formName: "financialInformation",
13691
+ formHeading: "companyFinancialInformationFormHeading",
13692
+ formDescription: "companyFinancialInformationFormDescription",
13693
+ fields: financialInformationFields
13233
13694
  }
13234
13695
  };
13235
13696
  const CompanyNameAndCountryFormID = companyForms.companyNameAndCountry.formId;
@@ -13238,6 +13699,7 @@ const CompanyRegistrationDetailsFormID = companyForms.companyRegistrationDetails
13238
13699
  const CompanyRegistrationAddressFormID = companyForms.companyRegistrationAddress.formId;
13239
13700
  const CompanyRegistrationDocumentFormID = companyForms.companyRegistrationDocument.formId;
13240
13701
  const CompanyTaxDocumentFormID = companyForms.companyTaxDocument.formId;
13702
+ const CompanyFinancialInformationFormID = companyForms.companyFinancialInformation.formId;
13241
13703
  const companyDocumentForms = [CompanyRegistrationDocumentFormID, CompanyTaxDocumentFormID];
13242
13704
  function CompanyComponent(props) {
13243
13705
  const {
@@ -13252,6 +13714,7 @@ function CompanyComponent(props) {
13252
13714
  const companyRegistrationAddressFormProps = getNestedOuterFormPropsFromOuterFormProps(props, CompanyRegistrationAddressFormID);
13253
13715
  const companyRegistrationDocumentFormProps = getFormProps(props, CompanyRegistrationDocumentFormID);
13254
13716
  const companyTaxDocumentFormProps = getFormProps(props, CompanyTaxDocumentFormID);
13717
+ const companyFinancialInformationFormProps = getFormProps(props, CompanyFinancialInformationFormID);
13255
13718
  const handleStateChange = ({
13256
13719
  currentState,
13257
13720
  prevState
@@ -13359,6 +13822,14 @@ function CompanyComponent(props) {
13359
13822
  }),
13360
13823
  id: CompanyTaxDocumentFormID
13361
13824
  })
13825
+ }), jsx("div", {
13826
+ className: props.activeForm.formId !== CompanyFinancialInformationFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
13827
+ children: jsx(FinancialInformation, {
13828
+ ...companyFinancialInformationFormProps,
13829
+ heading: i18n.get("financialInformation"),
13830
+ id: CompanyFinancialInformationFormID,
13831
+ country: props.country
13832
+ })
13362
13833
  })]
13363
13834
  });
13364
13835
  }
@@ -13587,6 +14058,7 @@ const COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS = [
13587
14058
  const COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION = [CountryCodes.HongKong, CountryCodes.Singapore];
13588
14059
  const COUNTRIES_THAT_USES_UEN_OR_GST = [CountryCodes.Singapore];
13589
14060
  const COUNTRIES_USING_COMPANY_SEARCH = [CountryCodes.UnitedStates];
14061
+ const COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [CountryCodes.UnitedKingdom];
13590
14062
  const rules$3 = ({
13591
14063
  data,
13592
14064
  country,
@@ -13702,6 +14174,11 @@ const rules$3 = ({
13702
14174
  if (COUNTRIES_USING_COMPANY_SEARCH.includes(country)) {
13703
14175
  return "REQUIRED";
13704
14176
  }
14177
+ },
14178
+ countryRequiringFinancialInformation: () => {
14179
+ if (isExperimentEnabled("EnableFinancialInformationComponentV4") && COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) {
14180
+ return "REQUIRED";
14181
+ }
13705
14182
  }
13706
14183
  });
13707
14184
  var LegalEntityType = /* @__PURE__ */ ((LegalEntityType2) => {
@@ -13724,6 +14201,16 @@ const getObscuredAccountNumber = ({
13724
14201
  accountIdentifier,
13725
14202
  realLastFour
13726
14203
  }) => realLastFour ? `*******${realLastFour}` : accountIdentifier;
14204
+ const isEmpty = (obj, ignoreEmptyProperties = true) => {
14205
+ if (obj === null || obj === void 0) return true;
14206
+ if (Array.isArray(obj)) return obj.length === 0;
14207
+ if (typeof obj !== "object") return false;
14208
+ return keysOf(obj).every(
14209
+ (key) => !Object.hasOwn(obj, key) || // if it's an inherited property, we don't care
14210
+ ignoreEmptyProperties && isEmpty(obj[key], true)
14211
+ // or if the property is itself empty
14212
+ );
14213
+ };
13727
14214
  const mandatoryApiFields = {
13728
14215
  INDIVIDUAL: ["personalDetails.firstName", "personalDetails.lastName", "personalDetails.residencyCountry"],
13729
14216
  DECISIONMAKER: ["personalDetails.firstName", "personalDetails.lastName", "personalDetails.residencyCountry", "personalDetails.role", "personalDetails.jobTitle"],
@@ -13880,6 +14367,13 @@ const highExposureBaseMapping = {
13880
14367
  "parentCompany.numberOfEmployees": "parentCompany.numberOfEmployees",
13881
14368
  "ultimateParentCompany.numberOfEmployees": "ultimateParentCompany.numberOfEmployees"
13882
14369
  };
14370
+ const financialInformationComponentsKeyMapping = {
14371
+ numberOfEmployees: "employeeCount",
14372
+ annualTurnover: "annualTurnover",
14373
+ netAssets: "netAssets",
14374
+ financialReportingDate: "dateOfFinancialData",
14375
+ currency: "currencyOfFinancialData"
14376
+ };
13883
14377
  const businessDetailsComponentsKeyMapping = {
13884
14378
  "additionalInformation.exemptedFromVat": "organization.vatAbsenceReason",
13885
14379
  ...businessDetailsBaseMapping
@@ -13919,6 +14413,9 @@ const solePropComponentsKeyMapping = {
13919
14413
  const solePropApiKeyMapping = {
13920
14414
  ...reverseObject(solePropBaseMapping)
13921
14415
  };
14416
+ const financialInformationApiKeyMapping = {
14417
+ ...reverseObject(financialInformationComponentsKeyMapping)
14418
+ };
13922
14419
  const remediationBusinessDetailsApiKeyMapping = {
13923
14420
  ...businessDetailsApiKeyMapping,
13924
14421
  "organization.registeredAddress": "additionalInformation.registrationAddress",
@@ -14082,6 +14579,21 @@ const mapPayoutAccountToTransferInstrument = ({
14082
14579
  payoutAccountData.type = TransferInstrumentType.BANK_ACCOUNT;
14083
14580
  return payoutAccountData;
14084
14581
  };
14582
+ const mapFinancialReportsToFinancialInformation = (financialReports) => {
14583
+ const mostRecentReport = financialReports.reduce((latest, curr) => {
14584
+ if (!latest || curr.dateOfFinancialData > latest.dateOfFinancialData) {
14585
+ return curr;
14586
+ }
14587
+ return latest;
14588
+ }, void 0);
14589
+ const financialInfo = formatObject(mostRecentReport, financialInformationComponentsKeyMapping);
14590
+ if (financialInfo.netAssets !== void 0) {
14591
+ financialInfo.reportedValueOption = "netAssets";
14592
+ } else if (financialInfo.annualTurnover !== void 0) {
14593
+ financialInfo.reportedValueOption = "annualTurnover";
14594
+ }
14595
+ return financialInfo;
14596
+ };
14085
14597
  const mapLegalEntityToIndividual = (legalEntity, isChangingType) => {
14086
14598
  var _a, _b, _c;
14087
14599
  let individualData = formatObject(legalEntity, individualComponentsKeyMapping);
@@ -14122,7 +14634,7 @@ const mapIndividualToLegalEntity = (data) => {
14122
14634
  return requestObj;
14123
14635
  };
14124
14636
  const mapLegalEntityToCompany = (legalEntity) => {
14125
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
14637
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
14126
14638
  let companyCompData;
14127
14639
  if (legalEntity == null ? void 0 : legalEntity.organization) {
14128
14640
  companyCompData = formatObject(legalEntity, companyComponentsKeyMapping);
@@ -14159,6 +14671,9 @@ const mapLegalEntityToCompany = (legalEntity) => {
14159
14671
  ...mapApiDocumentToCompanyDocuments(legalEntity == null ? void 0 : legalEntity.id)
14160
14672
  };
14161
14673
  }
14674
+ if ((_j = legalEntity == null ? void 0 : legalEntity.organization) == null ? void 0 : _j.financialReports) {
14675
+ companyCompData.companyFinancialInformation = mapFinancialReportsToFinancialInformation(legalEntity.organization.financialReports);
14676
+ }
14162
14677
  }
14163
14678
  companyCompData = {
14164
14679
  ...companyCompData,
@@ -14190,6 +14705,9 @@ const mapCompanyToLegalEntity = (data) => {
14190
14705
  });
14191
14706
  }
14192
14707
  requestObj.organization = transformCountryOfGoverningLawToLegalEntity(data.companyNameAndCountry, requestObj.organization);
14708
+ if (!isEmpty(data.companyFinancialInformation)) {
14709
+ requestObj.organization.financialReports = [formatObject(data.companyFinancialInformation, financialInformationApiKeyMapping)];
14710
+ }
14193
14711
  requestObj.type = LegalEntityType.ORGANIZATION;
14194
14712
  return requestObj;
14195
14713
  };
@@ -15035,13 +15553,12 @@ function IdDocumentUploadComponent(props) {
15035
15553
  ...props
15036
15554
  });
15037
15555
  }
15038
- function RadioCardSelect({
15556
+ const RadioCardSelect = ({
15039
15557
  options,
15040
15558
  name,
15041
15559
  onSelect,
15042
15560
  selected,
15043
15561
  isInvalid,
15044
- uniqueId,
15045
15562
  className,
15046
15563
  optionId,
15047
15564
  optionName,
@@ -15051,29 +15568,27 @@ function RadioCardSelect({
15051
15568
  renderOptionIcon,
15052
15569
  renderOptionBody,
15053
15570
  renderOptionFooter,
15054
- isOptionDisabled
15055
- }) {
15056
- const uniqueIdBase = uniqueId == null ? void 0 : uniqueId.replace(/[0-9]/g, "").substring(0, uniqueId.lastIndexOf("-"));
15057
- return jsx("div", {
15058
- className: className ?? "adyen-kyc-radio-group-card",
15059
- children: options.map((option) => jsx(RadioCard, {
15060
- optionId: optionId(option),
15061
- optionName: optionName(option),
15062
- optionDescription: optionDescription == null ? void 0 : optionDescription(option),
15063
- optionSubtitle: optionSubtitle == null ? void 0 : optionSubtitle(option),
15064
- uniqueId: getUniqueId(uniqueIdBase),
15065
- isInvalid,
15066
- isSelected: selected === option,
15067
- onSelect: () => onSelect(option),
15068
- name,
15069
- classNames: optionClassNames == null ? void 0 : optionClassNames(option),
15070
- icon: renderOptionIcon == null ? void 0 : renderOptionIcon(option),
15071
- body: renderOptionBody == null ? void 0 : renderOptionBody(option),
15072
- footer: renderOptionFooter == null ? void 0 : renderOptionFooter(option),
15073
- disabled: isOptionDisabled == null ? void 0 : isOptionDisabled(option)
15074
- }, optionId(option)))
15075
- });
15076
- }
15571
+ isOptionDisabled,
15572
+ floatingRadio
15573
+ }) => jsx("div", {
15574
+ className: className ?? "adyen-kyc-radio-group-card",
15575
+ children: options.map((option) => jsx(RadioCard, {
15576
+ optionId: optionId(option),
15577
+ optionName: optionName(option),
15578
+ optionDescription: optionDescription == null ? void 0 : optionDescription(option),
15579
+ optionSubtitle: optionSubtitle == null ? void 0 : optionSubtitle(option),
15580
+ isInvalid,
15581
+ isSelected: selected === option,
15582
+ onSelect: () => onSelect(option),
15583
+ name,
15584
+ classNames: optionClassNames == null ? void 0 : optionClassNames(option),
15585
+ icon: renderOptionIcon == null ? void 0 : renderOptionIcon(option),
15586
+ body: renderOptionBody == null ? void 0 : renderOptionBody(option),
15587
+ footer: renderOptionFooter == null ? void 0 : renderOptionFooter(option),
15588
+ disabled: isOptionDisabled == null ? void 0 : isOptionDisabled(option),
15589
+ floatingRadio
15590
+ }, optionId(option)))
15591
+ });
15077
15592
  const idVerificationMethodsMetadata = {
15078
15593
  instantVerification: {
15079
15594
  name: "instantVerification",
@@ -15211,14 +15726,15 @@ function IdVerificationMethodComponent(props) {
15211
15726
  optionDescription: (method) => idVerificationMethodsMetadata[method].description,
15212
15727
  className: "adyen-kyc-field-verification-methods",
15213
15728
  optionClassNames: () => ({
15214
- label: "adyen-kyc-field-verification-methods__card adyen-kyc-radio-group-card--floating-radio"
15729
+ label: "adyen-kyc-field-verification-methods__card"
15215
15730
  }),
15216
15731
  renderOptionIcon: (method) => jsx(IdVerificationMethodOptionIcon, {
15217
15732
  method
15218
15733
  }),
15219
15734
  renderOptionFooter: (method) => jsx(IdVerificationMethodOptionFooter, {
15220
15735
  method
15221
- })
15736
+ }),
15737
+ floatingRadio: true
15222
15738
  })
15223
15739
  }), jsx(ContextGuidance, {
15224
15740
  page: "Instant verification with Onfido",
@@ -16570,10 +17086,7 @@ function IndividualIdNumberTypeSelector({
16570
17086
  name: "individualIdNumberType",
16571
17087
  items: options,
16572
17088
  value: selected,
16573
- onChange: (e) => {
16574
- var _a;
16575
- return setSelected == null ? void 0 : setSelected((_a = e == null ? void 0 : e.target) == null ? void 0 : _a.value);
16576
- }
17089
+ onChange: (value) => setSelected(value)
16577
17090
  })
16578
17091
  });
16579
17092
  }
@@ -16747,7 +17260,7 @@ const personalDetailsValidationRules = {
16747
17260
  errorMessage: "fieldIsRequired"
16748
17261
  }, {
16749
17262
  modes: ["blur"],
16750
- validate: (birthDate) => !isEmpty(birthDate) && new Date(birthDate) < /* @__PURE__ */ new Date(),
17263
+ validate: (birthDate) => !isEmpty$1(birthDate) && new Date(birthDate) < /* @__PURE__ */ new Date(),
16751
17264
  errorMessage: "invalidDateOfBirth"
16752
17265
  }],
16753
17266
  residencyCountry: {
@@ -16805,7 +17318,7 @@ const isTruthyValidator = {
16805
17318
  errorMessage: "fieldIsRequired"
16806
17319
  };
16807
17320
  const isNotEmptyValidator = {
16808
- validate: (value) => !isEmpty(value),
17321
+ validate: (value) => !isEmpty$1(value),
16809
17322
  modes: ["blur"],
16810
17323
  errorMessage: "fieldIsRequired"
16811
17324
  };
@@ -18769,105 +19282,30 @@ const ActionBar = ({
18769
19282
  })
18770
19283
  })]
18771
19284
  });
18772
- var Currencies = /* @__PURE__ */ ((Currencies2) => {
18773
- Currencies2["AED"] = "AED";
18774
- Currencies2["AUD"] = "AUD";
18775
- Currencies2["BGN"] = "BGN";
18776
- Currencies2["BRL"] = "BRL";
18777
- Currencies2["CAD"] = "CAD";
18778
- Currencies2["CHF"] = "CHF";
18779
- Currencies2["CZK"] = "CZK";
18780
- Currencies2["DKK"] = "DKK";
18781
- Currencies2["EUR"] = "EUR";
18782
- Currencies2["GBP"] = "GBP";
18783
- Currencies2["HKD"] = "HKD";
18784
- Currencies2["HRK"] = "HRK";
18785
- Currencies2["HUF"] = "HUF";
18786
- Currencies2["MXN"] = "MXN";
18787
- Currencies2["MYR"] = "MYR";
18788
- Currencies2["NOK"] = "NOK";
18789
- Currencies2["NZD"] = "NZD";
18790
- Currencies2["PLN"] = "PLN";
18791
- Currencies2["RON"] = "RON";
18792
- Currencies2["SEK"] = "SEK";
18793
- Currencies2["SGD"] = "SGD";
18794
- Currencies2["USD"] = "USD";
18795
- return Currencies2;
18796
- })(Currencies || {});
18797
- const currencyByCountry = {
18798
- [CountryCodes.Australia]: [Currencies.AUD],
18799
- [CountryCodes.Austria]: [Currencies.EUR],
18800
- [CountryCodes.Belgium]: [Currencies.EUR],
18801
- [CountryCodes.Brazil]: [Currencies.BRL],
18802
- [CountryCodes.Bulgaria]: [Currencies.BGN, Currencies.EUR],
18803
- [CountryCodes.Canada]: [Currencies.CAD, Currencies.USD],
18804
- [CountryCodes.Croatia]: [Currencies.HRK, Currencies.EUR],
18805
- [CountryCodes.Cyprus]: [Currencies.EUR],
18806
- [CountryCodes.CzechRepublic]: [Currencies.CZK, Currencies.EUR],
18807
- [CountryCodes.Denmark]: [Currencies.DKK, Currencies.EUR],
18808
- [CountryCodes.Estonia]: [Currencies.EUR],
18809
- [CountryCodes.Finland]: [Currencies.EUR],
18810
- [CountryCodes.France]: [Currencies.EUR],
18811
- [CountryCodes.Germany]: [Currencies.EUR],
18812
- [CountryCodes.Gibraltar]: [Currencies.GBP],
18813
- [CountryCodes.Greece]: [Currencies.EUR],
18814
- [CountryCodes.Guernsey]: [Currencies.GBP],
18815
- [CountryCodes.HongKong]: [Currencies.HKD],
18816
- [CountryCodes.Hungary]: [Currencies.HUF, Currencies.EUR],
18817
- [CountryCodes.Ireland]: [Currencies.EUR],
18818
- [CountryCodes.IsleOfMan]: [Currencies.GBP],
18819
- [CountryCodes.Italy]: [Currencies.EUR],
18820
- [CountryCodes.Jersey]: [Currencies.GBP],
18821
- [CountryCodes.Latvia]: [Currencies.EUR],
18822
- [CountryCodes.Liechtenstein]: [Currencies.CHF, Currencies.EUR],
18823
- [CountryCodes.Lithuania]: [Currencies.EUR],
18824
- [CountryCodes.Luxembourg]: [Currencies.EUR],
18825
- [CountryCodes.Malaysia]: [Currencies.MYR],
18826
- [CountryCodes.Malta]: [Currencies.EUR],
18827
- [CountryCodes.Mexico]: [Currencies.MXN],
18828
- [CountryCodes.Monaco]: [Currencies.EUR],
18829
- [CountryCodes.Netherlands]: [Currencies.EUR],
18830
- [CountryCodes.NewZealand]: [Currencies.NZD],
18831
- [CountryCodes.Norway]: [Currencies.NOK, Currencies.EUR],
18832
- [CountryCodes.Poland]: [Currencies.PLN, Currencies.EUR],
18833
- [CountryCodes.Portugal]: [Currencies.EUR],
18834
- [CountryCodes.PuertoRico]: [Currencies.USD],
18835
- // should exactly match CountryCodes.UnitedStates
18836
- [CountryCodes.Romania]: [Currencies.RON, Currencies.EUR],
18837
- [CountryCodes.Singapore]: [Currencies.SGD],
18838
- [CountryCodes.Slovakia]: [Currencies.EUR],
18839
- [CountryCodes.Slovenia]: [Currencies.EUR],
18840
- [CountryCodes.Spain]: [Currencies.EUR],
18841
- [CountryCodes.Sweden]: [Currencies.SEK, Currencies.EUR],
18842
- [CountryCodes.Switzerland]: [Currencies.CHF, Currencies.EUR],
18843
- [CountryCodes.UnitedArabEmirates]: [Currencies.AED],
18844
- [CountryCodes.UnitedKingdom]: [Currencies.GBP, Currencies.EUR],
18845
- [CountryCodes.UnitedStates]: [Currencies.USD]
18846
- };
18847
19285
  const bankVerificationValidationRules = {
18848
19286
  verifiedAccountHolder: {
18849
19287
  modes: ["blur"],
18850
- validate: (verifiedAccountHolder) => !isEmpty(verifiedAccountHolder),
19288
+ validate: (verifiedAccountHolder) => !isEmpty$1(verifiedAccountHolder),
18851
19289
  errorMessage: "fieldIsRequired"
18852
19290
  },
18853
19291
  verifiedBankCountry: {
18854
19292
  modes: ["blur"],
18855
- validate: (verifiedBankCountry) => !isEmpty(verifiedBankCountry),
19293
+ validate: (verifiedBankCountry) => !isEmpty$1(verifiedBankCountry),
18856
19294
  errorMessage: "fieldIsRequired"
18857
19295
  },
18858
19296
  verifiedBankName: {
18859
19297
  modes: ["blur"],
18860
- validate: (verifiedBankName) => !isEmpty(verifiedBankName),
19298
+ validate: (verifiedBankName) => !isEmpty$1(verifiedBankName),
18861
19299
  errorMessage: "fieldIsRequired"
18862
19300
  },
18863
19301
  verifiedCurrencyCode: {
18864
19302
  modes: ["blur"],
18865
- validate: (verifiedCurrencyCode) => !isEmpty(verifiedCurrencyCode),
19303
+ validate: (verifiedCurrencyCode) => !isEmpty$1(verifiedCurrencyCode),
18866
19304
  errorMessage: "fieldIsRequired"
18867
19305
  },
18868
19306
  verifiedBankAccountNumber: {
18869
19307
  modes: ["blur"],
18870
- validate: (verifiedBankAccountNumber) => !isEmpty(verifiedBankAccountNumber),
19308
+ validate: (verifiedBankAccountNumber) => !isEmpty$1(verifiedBankAccountNumber),
18871
19309
  errorMessage: "fieldIsRequired"
18872
19310
  }
18873
19311
  };
@@ -20191,7 +20629,6 @@ function BranchCode(props) {
20191
20629
  "aria-invalid": !valid.branchCode
20192
20630
  });
20193
20631
  }
20194
- const currencyFields = ["currency"];
20195
20632
  const bbanPatternsByCountry = {
20196
20633
  [CountryCodes.Albania]: /\d{8}[\dA-Z]{16}/,
20197
20634
  [CountryCodes.Andorra]: /\d{8}[\dA-Z]{12}/,
@@ -20264,7 +20701,7 @@ const customPrefixByCountry = {
20264
20701
  [CountryCodes.IsleOfMan]: "GB"
20265
20702
  };
20266
20703
  function ibanValidator(input, bankCountry) {
20267
- if (isEmpty(input)) return false;
20704
+ if (isEmpty$1(input)) return false;
20268
20705
  const ibanInput = input.replace(/ /g, "").toUpperCase();
20269
20706
  if (!/^([a-zA-Z0-9]{4} ){2,8}[a-zA-Z0-9]{1,4}|[a-zA-Z0-9]{12,34}$/.test(ibanInput)) {
20270
20707
  return false;
@@ -20545,7 +20982,7 @@ const CheckGuidance = ({
20545
20982
  className: "adyen-kyc-check-guidance__image"
20546
20983
  })]
20547
20984
  });
20548
- const payoutAccountFields = ["accountHolder", ...ibanFields, ...branchCodeFields, ...swiftCodeFields, ...currencyFields, ...bankAccountNumberFields, ...bankNameFields, ...bankCodeFields];
20985
+ const payoutAccountFields = ["accountHolder", ...ibanFields, ...branchCodeFields, ...swiftCodeFields, ...bankAccountNumberFields, ...bankNameFields, ...bankCodeFields];
20549
20986
  function PayoutAccountComponent(props) {
20550
20987
  const {
20551
20988
  accountHolder,
@@ -21204,7 +21641,7 @@ function PayoutVerificationMethod(props) {
21204
21641
  optionSubtitle: (method) => methodsMetadata[method].subtitle,
21205
21642
  className: "adyen-kyc-field-verification-methods",
21206
21643
  optionClassNames: () => ({
21207
- label: "adyen-kyc-field-verification-methods__card adyen-kyc-radio-group-card--floating-radio"
21644
+ label: "adyen-kyc-field-verification-methods__card"
21208
21645
  }),
21209
21646
  isOptionDisabled: (option) => bankInfoValidated || option === "instantVerification" && !instantVerificationAvailable,
21210
21647
  renderOptionIcon: (method) => jsx(PayoutVerificationMethodOptionIcon, {
@@ -21214,7 +21651,8 @@ function PayoutVerificationMethod(props) {
21214
21651
  renderOptionFooter: (method) => jsx(PayoutVerificationMethodOptionFooter, {
21215
21652
  method,
21216
21653
  methodsMetadata
21217
- })
21654
+ }),
21655
+ floatingRadio: true
21218
21656
  })]
21219
21657
  })
21220
21658
  }), jsx(ErrorPanel, {
@@ -21330,7 +21768,7 @@ function PayoutDetailsComponent(props) {
21330
21768
  const taskHeading = i18n.get("addABankAccountForPayouts");
21331
21769
  const isBankStatementDocumentOptional = formUtilities(bankDocumentFormProps ?? {}, i18n).isOptionalField("bankStatementDocument");
21332
21770
  const globalData = useGlobalData();
21333
- const data = isEmpty(globalData) ? propData : globalData;
21771
+ const data = isEmpty$1(globalData) ? propData : globalData;
21334
21772
  const resetData = useResetGlobalData();
21335
21773
  const verifyInstantly = ((_a = data == null ? void 0 : data.payoutVerificationMethod) == null ? void 0 : _a.payoutVerificationMethod) === "instantVerification";
21336
21774
  const bankCountry = ((_b = data == null ? void 0 : data.payoutVerificationMethod) == null ? void 0 : _b.bankCountry) ?? country;
@@ -23200,7 +23638,7 @@ function Summary({
23200
23638
  formName
23201
23639
  }) => {
23202
23640
  const currentFormData = summaryData[formId];
23203
- const isFormEmpty = !currentFormData || Object.values(currentFormData).every((value) => isEmpty(value));
23641
+ const isFormEmpty = !currentFormData || Object.values(currentFormData).every((value) => isEmpty$1(value));
23204
23642
  if (isFormEmpty || formId === summaryStep.formId || omittedForms.includes(formId)) return;
23205
23643
  const summaryItems = currentFormData.hasInnerForms ? renderInnerForms(labels2 == null ? void 0 : labels2[formId], formId, currentFormData) : renderSummarySection(currentFormData, labels2 == null ? void 0 : labels2[formId], i18n.get(formName), formId);
23206
23644
  summaryList.push(summaryItems);
@@ -23226,7 +23664,7 @@ function Summary({
23226
23664
  const fieldName = i18n.get(labelData[field]) || i18n.get(field);
23227
23665
  if (typeof fieldData === "object") {
23228
23666
  dataList.push(renderSummaryItems(fieldData, labelData));
23229
- } else if (typeof fieldData === "string") {
23667
+ } else if (["string", "number"].includes(typeof fieldData)) {
23230
23668
  dataList.push(jsxs("div", {
23231
23669
  className: "adyen-kyc-summary-section__field",
23232
23670
  children: [jsx("dt", {
@@ -24230,7 +24668,7 @@ function DBANameField({
24230
24668
  name: "no"
24231
24669
  }],
24232
24670
  value: selection,
24233
- onChange: (e) => handleChangeFor("hasDba")(e.target.value === "yes"),
24671
+ onChange: (newValue) => handleChangeFor("hasDba")(newValue === "yes"),
24234
24672
  horizontal: true
24235
24673
  })
24236
24674
  }), data.hasDba && jsx(Field, {
@@ -25190,7 +25628,7 @@ const businessNameFieldMetadata = {
25190
25628
  const CountryFieldValidation = () => ({
25191
25629
  country: {
25192
25630
  modes: ["blur"],
25193
- validate: (country) => !isEmpty(country),
25631
+ validate: (country) => !isEmpty$1(country),
25194
25632
  errorMessage: "fieldIsRequired"
25195
25633
  }
25196
25634
  });
@@ -25527,7 +25965,7 @@ const mapOrganizationTypeToCompanyType = (organizationType) => {
25527
25965
  const CompanyStructureValidation = {
25528
25966
  entityType: {
25529
25967
  modes: ["blur"],
25530
- validate: (entityType) => !isEmpty(entityType),
25968
+ validate: (entityType) => !isEmpty$1(entityType),
25531
25969
  errorMessage: "fieldIsRequired"
25532
25970
  }
25533
25971
  };
@@ -25674,6 +26112,13 @@ const getForms = (country) => ({
25674
26112
  formHeading: "companyTaxDocumentFormHeading",
25675
26113
  formDescription: "companyTaxDocumentFormDescription",
25676
26114
  fields: ["taxDocument"]
26115
+ },
26116
+ financialInformation: {
26117
+ formId: "financialInformation",
26118
+ formName: "financialInformation",
26119
+ formHeading: "companyFinancialInformationFormHeading",
26120
+ formDescription: "companyFinancialInformationFormDescription",
26121
+ fields: financialInformationFields
25677
26122
  }
25678
26123
  });
25679
26124
  const documentFormsIds = ["companyRegistrationDocument", "companyTaxDocument"];
@@ -27034,7 +27479,7 @@ const parseConfiguration$6 = ({
27034
27479
  }) => parseBusinessDetailsScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.ORGANIZATION], country);
27035
27480
  const canSubmit$2 = (data) => MANDATORY_API_FIELDS.every((detail) => {
27036
27481
  const value = getProp(data, detail);
27037
- return !isEmpty(value);
27482
+ return !isEmpty$1(value);
27038
27483
  });
27039
27484
  const isDocumentsRequired$2 = (forms) => forms.some((form) => documentFormsIds.includes(form.formId));
27040
27485
  const removeConditionalForms = (forms, isSkippingCompanyStructure) => isSkippingCompanyStructure ? forms.filter((f) => f.formId !== "companyStructure" && f.formId !== "companyType") : forms;
@@ -27647,13 +28092,22 @@ function BusinessDetailsDropinComponent({
27647
28092
  })
27648
28093
  });
27649
28094
  }
28095
+ const formatCurrency = (amount, currency, locale) => {
28096
+ const {
28097
+ format
28098
+ } = new Intl.NumberFormat(locale, currency ? {
28099
+ style: "currency",
28100
+ currency
28101
+ } : void 0);
28102
+ return format(amount);
28103
+ };
27650
28104
  const parseConfiguration$5 = ({
27651
28105
  country,
27652
28106
  matchingScenario
27653
28107
  }) => parseCompanyScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.ORGANIZATION], country);
27654
28108
  const canSubmit$1 = (data) => mandatoryApiFields.ORGANIZATION.every((detail) => {
27655
28109
  const value = getProp(data, detail);
27656
- return !isEmpty(value);
28110
+ return !isEmpty$1(value);
27657
28111
  });
27658
28112
  const isDocumentsRequired$1 = (forms) => forms.some((form) => [companyForms.companyRegistrationDocument.formId, companyForms.companyTaxDocument.formId].includes(form.formId));
27659
28113
  const formatFileSummaryData$1 = (companyRegistrationDocument, companyTaxDocument) => {
@@ -27973,6 +28427,17 @@ function CompanyDropinComponent({
27973
28427
  }
27974
28428
  delete summaryData.companyRegistrationDetails.taxInformation;
27975
28429
  }
28430
+ const financialInfoSummary = summaryData.companyFinancialInformation;
28431
+ if (financialInfoSummary) {
28432
+ delete financialInfoSummary.reportedValueOption;
28433
+ if (financialInfoSummary.netAssets) {
28434
+ financialInfoSummary.totalAssets = formatCurrency(financialInfoSummary.netAssets, financialInfoSummary.currency, i18n.locale);
28435
+ delete financialInfoSummary.netAssets;
28436
+ }
28437
+ if (financialInfoSummary.annualTurnover) {
28438
+ financialInfoSummary.annualTurnover = formatCurrency(financialInfoSummary.annualTurnover, financialInfoSummary.currency, i18n.locale);
28439
+ }
28440
+ }
27976
28441
  if (isDocumentsRequired$1(forms2)) {
27977
28442
  companyDocumentForms.forEach((formId) => delete summaryData[formId]);
27978
28443
  summaryData = {
@@ -30378,14 +30843,15 @@ const SingpassSelection = (props) => {
30378
30843
  className: "adyen-kyc-field-verification-methods",
30379
30844
  optionClassNames: () => ({
30380
30845
  icon: "adyen-kyc-radio-group-card__illustration",
30381
- label: "adyen-kyc-field-verification-methods__card adyen-kyc-radio-group-card--floating-radio",
30846
+ label: "adyen-kyc-field-verification-methods__card",
30382
30847
  footer: "adyen-kyc-field-verification-methods__footer"
30383
30848
  }),
30384
30849
  renderOptionIcon: (method) => methodsMetadata[method].icon,
30385
30850
  renderOptionFooter: (method) => {
30386
30851
  var _a;
30387
30852
  return (_a = methodsMetadata[method].provider) == null ? void 0 : _a.icon;
30388
- }
30853
+ },
30854
+ floatingRadio: true
30389
30855
  })
30390
30856
  })
30391
30857
  }), jsx(Button, {
@@ -31173,7 +31639,7 @@ const isNotEmptyBirthDateValidatorRule = {
31173
31639
  };
31174
31640
  const isNotOutOfRangeBirthDateValidatorRule = {
31175
31641
  modes: ["blur"],
31176
- validate: (birthDate) => !isEmpty(birthDate) && new Date(birthDate) < /* @__PURE__ */ new Date(),
31642
+ validate: (birthDate) => !isEmpty$1(birthDate) && new Date(birthDate) < /* @__PURE__ */ new Date(),
31177
31643
  errorMessage: "invalidDateOfBirth"
31178
31644
  };
31179
31645
  const buildMinimumAgeValidationRule = (minimumAge) => ({
@@ -31617,7 +32083,7 @@ function IndividualDropinComponent({
31617
32083
  const mandatoryDetails = taskType === TaskTypes.DECISION_MAKER ? isDecisionMakerOwner ? mandatoryApiFields.DECISION_MAKER_OWNER : mandatoryApiFields.DECISIONMAKER : mandatoryApiFields.INDIVIDUAL;
31618
32084
  return mandatoryDetails.every((detail) => {
31619
32085
  const value = getProp(data, detail);
31620
- return !isEmpty(value) || Array.isArray(detail) && detail.length > 0;
32086
+ return !isEmpty$1(value) || Array.isArray(detail) && detail.length > 0;
31621
32087
  });
31622
32088
  };
31623
32089
  const datasetUtils = datasetUtilities(i18n.locale);
@@ -32230,7 +32696,7 @@ function PayoutDetailsDropinComponent({
32230
32696
  return false;
32231
32697
  }
32232
32698
  const bankDetails = data.payoutAccountDetails;
32233
- return !isEmpty(bankDetails) && Object.values(bankDetails).every(Boolean);
32699
+ return !isEmpty$1(bankDetails) && Object.values(bankDetails).every(Boolean);
32234
32700
  };
32235
32701
  const datasetUtils = datasetUtilities(i18n.locale);
32236
32702
  const formatDataForSummary2 = () => {
@@ -32373,7 +32839,7 @@ function ContractViewer({
32373
32839
  const pciValidationRules = {
32374
32840
  signer: {
32375
32841
  modes: ["blur"],
32376
- validate: (signer) => !isEmpty(signer),
32842
+ validate: (signer) => !isEmpty$1(signer),
32377
32843
  errorMessage: "fieldIsRequired"
32378
32844
  },
32379
32845
  acceptPci: {
@@ -32694,7 +33160,7 @@ const isOrganizationAndSettlor = (data) => {
32694
33160
  const roleAndTypeValidationRules = {
32695
33161
  entityType: {
32696
33162
  modes: ["blur"],
32697
- validate: (entityType) => !isEmpty(entityType),
33163
+ validate: (entityType) => !isEmpty$1(entityType),
32698
33164
  errorMessage: "fieldIsRequired"
32699
33165
  },
32700
33166
  role: {
@@ -32704,7 +33170,7 @@ const roleAndTypeValidationRules = {
32704
33170
  },
32705
33171
  descriptionUndefinedBeneficiary: {
32706
33172
  modes: ["blur"],
32707
- validate: (description) => !isEmpty(description),
33173
+ validate: (description) => !isEmpty$1(description),
32708
33174
  errorMessage: "fieldIsRequired"
32709
33175
  },
32710
33176
  settlorExemptionReason: {
@@ -33658,7 +34124,7 @@ const formatFileSummaryData = (solePropConstitutionalDocument) => {
33658
34124
  };
33659
34125
  const canSubmit = (data) => mandatoryApiFields.SOLE_PROPRIETORSHIP.every((detail) => {
33660
34126
  const value = getProp(data, detail);
33661
- return !isEmpty(value);
34127
+ return !isEmpty$1(value);
33662
34128
  });
33663
34129
  const hasRegisteredAddress = (dataFromResponse) => {
33664
34130
  var _a;
@@ -33914,6 +34380,8 @@ function SolePropDropinComponent({
33914
34380
  const {
33915
34381
  handleNextClick,
33916
34382
  handleBackClick,
34383
+ hideHomeButton,
34384
+ hideBackButton,
33917
34385
  activeForm,
33918
34386
  shouldValidate,
33919
34387
  setShouldValidate,
@@ -33933,6 +34401,8 @@ function SolePropDropinComponent({
33933
34401
  gotoFormByFormIndex,
33934
34402
  handleHomeClick,
33935
34403
  hideDropinLayout,
34404
+ hideHomeButton,
34405
+ hideBackButton,
33936
34406
  nextButtonLabel,
33937
34407
  homeButtonLabel,
33938
34408
  loadingStatus,
@@ -34210,7 +34680,7 @@ function TrustDropinComponent({
34210
34680
  };
34211
34681
  const canSubmit2 = (data2) => mandatoryApiFields.TRUST.every((detail) => {
34212
34682
  const value = getProp(data2, detail);
34213
- return !isEmpty(value);
34683
+ return !isEmpty$1(value);
34214
34684
  });
34215
34685
  const baseTrackingPayload = getBaseTrackingPayload({
34216
34686
  trackingConfig,
@@ -36227,57 +36697,57 @@ const validateLegalEntityIdentifier = (legalEntityIdentifier, doesYourCompanyHav
36227
36697
  const isRequired = doesYourCompanyHaveLEI === "Yes";
36228
36698
  const isValidLength = legalEntityIdentifier ? legalEntityIdentifier.length === 20 : false;
36229
36699
  const hasLettersAndNumbers = legalEntityIdentifier ? /[a-zA-Z]/.test(legalEntityIdentifier) && /[0-9]/.test(legalEntityIdentifier) : false;
36230
- return !isRequired || !isEmpty(legalEntityIdentifier) && isValidLength && hasLettersAndNumbers;
36700
+ return !isRequired || !isEmpty$1(legalEntityIdentifier) && isValidLength && hasLettersAndNumbers;
36231
36701
  };
36232
36702
  const highExposureCompanyDetailsValidations = {
36233
36703
  numberOfEmployees: {
36234
36704
  modes: ["blur"],
36235
- validate: (numberOfEmployees) => !isEmpty(numberOfEmployees),
36705
+ validate: (numberOfEmployees) => !isEmpty$1(numberOfEmployees),
36236
36706
  errorMessage: "fieldIsRequired"
36237
36707
  },
36238
36708
  legalInformationInsolvency: {
36239
36709
  modes: ["blur"],
36240
- validate: (legalInformationInsolvency) => !isEmpty(legalInformationInsolvency),
36710
+ validate: (legalInformationInsolvency) => !isEmpty$1(legalInformationInsolvency),
36241
36711
  errorMessage: "fieldIsRequired"
36242
36712
  },
36243
36713
  totalAssetsValue: {
36244
36714
  modes: ["blur"],
36245
- validate: (value) => !isEmpty(value),
36715
+ validate: (value) => !isEmpty$1(value),
36246
36716
  errorMessage: "fieldIsRequired"
36247
36717
  },
36248
36718
  totalAssetsCurrency: {
36249
36719
  modes: ["input"],
36250
- validate: (value) => !isEmpty(value),
36720
+ validate: (value) => !isEmpty$1(value),
36251
36721
  errorMessage: "fieldIsRequired"
36252
36722
  },
36253
36723
  annualTurnoverValue: {
36254
36724
  modes: ["blur"],
36255
- validate: (value) => !isEmpty(value),
36725
+ validate: (value) => !isEmpty$1(value),
36256
36726
  errorMessage: "fieldIsRequired"
36257
36727
  },
36258
36728
  annualTurnoverCurrency: {
36259
36729
  modes: ["blur"],
36260
- validate: (value) => !isEmpty(value),
36730
+ validate: (value) => !isEmpty$1(value),
36261
36731
  errorMessage: "fieldIsRequired"
36262
36732
  },
36263
36733
  financialReportingDate: {
36264
36734
  modes: ["blur"],
36265
- validate: (value) => !isEmpty(value),
36735
+ validate: (value) => !isEmpty$1(value),
36266
36736
  errorMessage: "fieldIsRequired"
36267
36737
  },
36268
36738
  legalForm: {
36269
36739
  modes: ["blur"],
36270
- validate: (legalForm) => !isEmpty(legalForm),
36740
+ validate: (legalForm) => !isEmpty$1(legalForm),
36271
36741
  errorMessage: "fieldIsRequired"
36272
36742
  },
36273
36743
  naceCode: {
36274
36744
  modes: ["blur"],
36275
- validate: (naceCode) => !isEmpty(naceCode),
36745
+ validate: (naceCode) => !isEmpty$1(naceCode),
36276
36746
  errorMessage: "fieldIsRequired"
36277
36747
  },
36278
36748
  doesYourCompanyHaveLEI: {
36279
36749
  modes: ["blur"],
36280
- validate: (doesYourCompanyHaveLEI) => !isEmpty(doesYourCompanyHaveLEI),
36750
+ validate: (doesYourCompanyHaveLEI) => !isEmpty$1(doesYourCompanyHaveLEI),
36281
36751
  errorMessage: "fieldIsRequired"
36282
36752
  },
36283
36753
  legalEntityIdentifier: {
@@ -36290,14 +36760,14 @@ const highExposureCompanyDetailsValidations = {
36290
36760
  },
36291
36761
  isCompanyOwnedByAnotherCompany: {
36292
36762
  modes: ["blur"],
36293
- validate: (isCompanyOwnedByAnotherCompany) => !isEmpty(isCompanyOwnedByAnotherCompany),
36763
+ validate: (isCompanyOwnedByAnotherCompany) => !isEmpty$1(isCompanyOwnedByAnotherCompany),
36294
36764
  errorMessage: "fieldIsRequired"
36295
36765
  },
36296
36766
  isParentOwnedByAnotherCompany: {
36297
36767
  modes: ["blur"],
36298
36768
  validate: (isParentOwnedByAnotherCompany, context) => {
36299
36769
  var _a, _b;
36300
- return ((_b = (_a = context == null ? void 0 : context.state) == null ? void 0 : _a.data) == null ? void 0 : _b.isCompanyOwnedByAnotherCompany) === "Yes" ? !isEmpty(isParentOwnedByAnotherCompany) : true;
36770
+ return ((_b = (_a = context == null ? void 0 : context.state) == null ? void 0 : _a.data) == null ? void 0 : _b.isCompanyOwnedByAnotherCompany) === "Yes" ? !isEmpty$1(isParentOwnedByAnotherCompany) : true;
36301
36771
  },
36302
36772
  errorMessage: "fieldIsRequired"
36303
36773
  }
@@ -36311,32 +36781,32 @@ const highExposureCompanyDetailsValidations = {
36311
36781
  const highExposureParentCompanyDetailsValidations = {
36312
36782
  addressCountry: {
36313
36783
  modes: ["blur"],
36314
- validate: (addressCountry) => !isEmpty(addressCountry),
36784
+ validate: (addressCountry) => !isEmpty$1(addressCountry),
36315
36785
  errorMessage: "fieldIsRequired"
36316
36786
  },
36317
36787
  legalName: {
36318
36788
  modes: ["blur"],
36319
- validate: (legalName) => !isEmpty(legalName),
36789
+ validate: (legalName) => !isEmpty$1(legalName),
36320
36790
  errorMessage: "fieldIsRequired"
36321
36791
  },
36322
36792
  numberOfEmployees: {
36323
36793
  modes: ["blur"],
36324
- validate: (numberOfEmployees) => !isEmpty(numberOfEmployees),
36794
+ validate: (numberOfEmployees) => !isEmpty$1(numberOfEmployees),
36325
36795
  errorMessage: "fieldIsRequired"
36326
36796
  },
36327
36797
  legalForm: {
36328
36798
  modes: ["blur"],
36329
- validate: (legalForm) => !isEmpty(legalForm),
36799
+ validate: (legalForm) => !isEmpty$1(legalForm),
36330
36800
  errorMessage: "fieldIsRequired"
36331
36801
  },
36332
36802
  naceCode: {
36333
36803
  modes: ["blur"],
36334
- validate: (naceCode) => !isEmpty(naceCode),
36804
+ validate: (naceCode) => !isEmpty$1(naceCode),
36335
36805
  errorMessage: "fieldIsRequired"
36336
36806
  },
36337
36807
  doesYourCompanyHaveLEI: {
36338
36808
  modes: ["blur"],
36339
- validate: (doesYourCompanyHaveLEI) => !isEmpty(doesYourCompanyHaveLEI),
36809
+ validate: (doesYourCompanyHaveLEI) => !isEmpty$1(doesYourCompanyHaveLEI),
36340
36810
  errorMessage: "fieldIsRequired"
36341
36811
  },
36342
36812
  legalEntityIdentifier: {
@@ -36349,37 +36819,37 @@ const highExposureParentCompanyDetailsValidations = {
36349
36819
  },
36350
36820
  isThisAddressTheMainHeadquarters: {
36351
36821
  modes: ["blur"],
36352
- validate: (isThisAddressTheMainHeadquarters) => !isEmpty(isThisAddressTheMainHeadquarters),
36822
+ validate: (isThisAddressTheMainHeadquarters) => !isEmpty$1(isThisAddressTheMainHeadquarters),
36353
36823
  errorMessage: "fieldIsRequired"
36354
36824
  },
36355
36825
  legalInformationInsolvency: {
36356
36826
  modes: ["blur"],
36357
- validate: (value) => !isEmpty(value),
36827
+ validate: (value) => !isEmpty$1(value),
36358
36828
  errorMessage: "fieldIsRequired"
36359
36829
  },
36360
36830
  totalAssetsValue: {
36361
36831
  modes: ["blur"],
36362
- validate: (value) => !isEmpty(value),
36832
+ validate: (value) => !isEmpty$1(value),
36363
36833
  errorMessage: "fieldIsRequired"
36364
36834
  },
36365
36835
  totalAssetsCurrency: {
36366
36836
  modes: ["input"],
36367
- validate: (value) => !isEmpty(value),
36837
+ validate: (value) => !isEmpty$1(value),
36368
36838
  errorMessage: "fieldIsRequired"
36369
36839
  },
36370
36840
  annualTurnoverValue: {
36371
36841
  modes: ["blur"],
36372
- validate: (value) => !isEmpty(value),
36842
+ validate: (value) => !isEmpty$1(value),
36373
36843
  errorMessage: "fieldIsRequired"
36374
36844
  },
36375
36845
  annualTurnoverCurrency: {
36376
36846
  modes: ["blur"],
36377
- validate: (value) => !isEmpty(value),
36847
+ validate: (value) => !isEmpty$1(value),
36378
36848
  errorMessage: "fieldIsRequired"
36379
36849
  },
36380
36850
  financialReportingDate: {
36381
36851
  modes: ["blur"],
36382
- validate: (value) => !isEmpty(value),
36852
+ validate: (value) => !isEmpty$1(value),
36383
36853
  errorMessage: "fieldIsRequired"
36384
36854
  }
36385
36855
  // TODO: revisit
@@ -36392,32 +36862,32 @@ const highExposureParentCompanyDetailsValidations = {
36392
36862
  const highExposureUltimateParentCompanyDetailsValidations = {
36393
36863
  addressCountry: {
36394
36864
  modes: ["blur"],
36395
- validate: (addressCountry) => !isEmpty(addressCountry),
36865
+ validate: (addressCountry) => !isEmpty$1(addressCountry),
36396
36866
  errorMessage: "fieldIsRequired"
36397
36867
  },
36398
36868
  legalName: {
36399
36869
  modes: ["blur"],
36400
- validate: (legalName) => !isEmpty(legalName),
36870
+ validate: (legalName) => !isEmpty$1(legalName),
36401
36871
  errorMessage: "fieldIsRequired"
36402
36872
  },
36403
36873
  numberOfEmployees: {
36404
36874
  modes: ["blur"],
36405
- validate: (numberOfEmployees) => !isEmpty(numberOfEmployees),
36875
+ validate: (numberOfEmployees) => !isEmpty$1(numberOfEmployees),
36406
36876
  errorMessage: "fieldIsRequired"
36407
36877
  },
36408
36878
  legalForm: {
36409
36879
  modes: ["blur"],
36410
- validate: (legalForm) => !isEmpty(legalForm),
36880
+ validate: (legalForm) => !isEmpty$1(legalForm),
36411
36881
  errorMessage: "fieldIsRequired"
36412
36882
  },
36413
36883
  naceCode: {
36414
36884
  modes: ["blur"],
36415
- validate: (naceCode) => !isEmpty(naceCode),
36885
+ validate: (naceCode) => !isEmpty$1(naceCode),
36416
36886
  errorMessage: "fieldIsRequired"
36417
36887
  },
36418
36888
  doesYourCompanyHaveLEI: {
36419
36889
  modes: ["blur"],
36420
- validate: (doesYourCompanyHaveLEI) => !isEmpty(doesYourCompanyHaveLEI),
36890
+ validate: (doesYourCompanyHaveLEI) => !isEmpty$1(doesYourCompanyHaveLEI),
36421
36891
  errorMessage: "fieldIsRequired"
36422
36892
  },
36423
36893
  legalEntityIdentifier: {
@@ -36430,37 +36900,37 @@ const highExposureUltimateParentCompanyDetailsValidations = {
36430
36900
  },
36431
36901
  isThisAddressTheMainHeadquarters: {
36432
36902
  modes: ["blur"],
36433
- validate: (isThisAddressTheMainHeadquarters) => !isEmpty(isThisAddressTheMainHeadquarters),
36903
+ validate: (isThisAddressTheMainHeadquarters) => !isEmpty$1(isThisAddressTheMainHeadquarters),
36434
36904
  errorMessage: "fieldIsRequired"
36435
36905
  },
36436
36906
  legalInformationInsolvency: {
36437
36907
  modes: ["blur"],
36438
- validate: (value) => !isEmpty(value),
36908
+ validate: (value) => !isEmpty$1(value),
36439
36909
  errorMessage: "fieldIsRequired"
36440
36910
  },
36441
36911
  totalAssetsValue: {
36442
36912
  modes: ["blur"],
36443
- validate: (value) => !isEmpty(value),
36913
+ validate: (value) => !isEmpty$1(value),
36444
36914
  errorMessage: "fieldIsRequired"
36445
36915
  },
36446
36916
  totalAssetsCurrency: {
36447
36917
  modes: ["input"],
36448
- validate: (value) => !isEmpty(value),
36918
+ validate: (value) => !isEmpty$1(value),
36449
36919
  errorMessage: "fieldIsRequired"
36450
36920
  },
36451
36921
  annualTurnoverValue: {
36452
36922
  modes: ["blur"],
36453
- validate: (value) => !isEmpty(value),
36923
+ validate: (value) => !isEmpty$1(value),
36454
36924
  errorMessage: "fieldIsRequired"
36455
36925
  },
36456
36926
  annualTurnoverCurrency: {
36457
36927
  modes: ["blur"],
36458
- validate: (value) => !isEmpty(value),
36928
+ validate: (value) => !isEmpty$1(value),
36459
36929
  errorMessage: "fieldIsRequired"
36460
36930
  },
36461
36931
  financialReportingDate: {
36462
36932
  modes: ["blur"],
36463
- validate: (value) => !isEmpty(value),
36933
+ validate: (value) => !isEmpty$1(value),
36464
36934
  errorMessage: "fieldIsRequired"
36465
36935
  }
36466
36936
  // TODO: revisit
@@ -37597,7 +38067,7 @@ function UpdateLegalEntityForHighExposure({
37597
38067
  };
37598
38068
  const canSubmit2 = (data2) => mandatoryApiFields.HIGH_EXPOSURE.every((detail) => {
37599
38069
  const value = getProp(data2, detail);
37600
- return !isEmpty(value);
38070
+ return !isEmpty$1(value);
37601
38071
  });
37602
38072
  const baseTrackingPayload = getBaseTrackingPayload({
37603
38073
  trackingConfig,
@@ -38253,7 +38723,7 @@ const ConfigurationApiProvider = ({
38253
38723
  isEmbeddedDropin,
38254
38724
  loadingContext
38255
38725
  } = authContext;
38256
- const sdkVersion = "2.57.4";
38726
+ const sdkVersion = "2.58.1";
38257
38727
  useAnalytics({
38258
38728
  onUserEvent,
38259
38729
  legalEntityId: rootLegalEntityId,
@@ -38346,7 +38816,7 @@ const useAllowedLocales = () => {
38346
38816
  }, []);
38347
38817
  return allowedLocales;
38348
38818
  };
38349
- const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-Cg7uHZ7u.js"), "./locales/cs-CZ.json": () => import("./cs-CZ-MP5JPvEI.js"), "./locales/da-DK.json": () => import("./da-DK-Bf4-HdQJ.js"), "./locales/de-DE.json": () => import("./de-DE-CpV6Dp0r.js"), "./locales/el-GR.json": () => import("./el-GR-DzwQKvWE.js"), "./locales/en-US.json": () => Promise.resolve().then(() => enUS), "./locales/es-ES.json": () => import("./es-ES-E5qWUSQV.js"), "./locales/et-EE.json": () => import("./et-EE-DRZrZKKJ.js"), "./locales/fi-FI.json": () => import("./fi-FI-Bk1rCYU6.js"), "./locales/fr-FR.json": () => import("./fr-FR-tlByDhb7.js"), "./locales/hr-HR.json": () => import("./hr-HR-CZUCz_Lu.js"), "./locales/hu-HU.json": () => import("./hu-HU-CmEicftd.js"), "./locales/it-IT.json": () => import("./it-IT-BNGHjXBu.js"), "./locales/lt-LT.json": () => import("./lt-LT-BDv4TY99.js"), "./locales/lv-LV.json": () => import("./lv-LV-HfHaTFsC.js"), "./locales/nl-NL.json": () => import("./nl-NL-CSyNOXAT.js"), "./locales/no-NO.json": () => import("./no-NO-BzBtvG7T.js"), "./locales/pl-PL.json": () => import("./pl-PL-CwUuiZyG.js"), "./locales/pt-PT.json": () => import("./pt-PT-CY_ZCE9N.js"), "./locales/ro-RO.json": () => import("./ro-RO-C-OpimQU.js"), "./locales/sk-SK.json": () => import("./sk-SK-Vi54HLZU.js"), "./locales/sl-SI.json": () => import("./sl-SI-2FDuP5IV.js"), "./locales/sv-SE.json": () => import("./sv-SE-lw5yiImq.js") });
38819
+ const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-DSGcxUqd.js"), "./locales/cs-CZ.json": () => import("./cs-CZ-DAS2jbyW.js"), "./locales/da-DK.json": () => import("./da-DK-CH9-Y2_h.js"), "./locales/de-DE.json": () => import("./de-DE-Cvre4fQ7.js"), "./locales/el-GR.json": () => import("./el-GR-BLJi6VdO.js"), "./locales/en-US.json": () => Promise.resolve().then(() => enUS), "./locales/es-ES.json": () => import("./es-ES-BfHjS5Hb.js"), "./locales/et-EE.json": () => import("./et-EE-DG5Cjsj_.js"), "./locales/fi-FI.json": () => import("./fi-FI-RdmcbEt_.js"), "./locales/fr-FR.json": () => import("./fr-FR-Cuu7ywoh.js"), "./locales/hr-HR.json": () => import("./hr-HR-CwRw-oEW.js"), "./locales/hu-HU.json": () => import("./hu-HU-PO0jI1sW.js"), "./locales/it-IT.json": () => import("./it-IT-RXBJv4US.js"), "./locales/lt-LT.json": () => import("./lt-LT-BCLEVKxe.js"), "./locales/lv-LV.json": () => import("./lv-LV-DfWQ_6E9.js"), "./locales/nl-NL.json": () => import("./nl-NL-2CzcCtiM.js"), "./locales/no-NO.json": () => import("./no-NO-r9q3S-TP.js"), "./locales/pl-PL.json": () => import("./pl-PL-Nix6oaTv.js"), "./locales/pt-PT.json": () => import("./pt-PT-CGVej1Ae.js"), "./locales/ro-RO.json": () => import("./ro-RO-DhJK0CPN.js"), "./locales/sk-SK.json": () => import("./sk-SK-Akja9ejH.js"), "./locales/sl-SI.json": () => import("./sl-SI-Bq22qBey.js"), "./locales/sv-SE.json": () => import("./sv-SE-2gCnkRkv.js") });
38350
38820
  const loadLocale = async (locale) => {
38351
38821
  const importForLocale = localeImports[`./locales/${locale}.json`];
38352
38822
  if (!importForLocale) {
@@ -38465,7 +38935,7 @@ function SettingsProvider({
38465
38935
  }
38466
38936
  function removeObjectPropsWithEmptyValues(obj) {
38467
38937
  keysOf(obj).forEach((key) => {
38468
- if (obj[key] === null || isEmpty(obj[key])) delete obj[key];
38938
+ if (obj[key] === null || isEmpty$1(obj[key])) delete obj[key];
38469
38939
  });
38470
38940
  return obj;
38471
38941
  }
@@ -38649,7 +39119,7 @@ const Toast = ({
38649
39119
  }) => {
38650
39120
  const toastRef = useRef(null);
38651
39121
  const isLoading = type === "loading";
38652
- const labelId = getUniqueId("toast");
39122
+ const labelId = useId();
38653
39123
  const handleShow = useCallback(() => {
38654
39124
  var _a;
38655
39125
  return (_a = toastRef.current) == null ? void 0 : _a.classList.add("adyen-kyc-toast--visible");
@@ -38936,7 +39406,7 @@ const DebugModal = ({
38936
39406
  };
38937
39407
  const copyToClipboard = async () => {
38938
39408
  const toCopy = {
38939
- sdkVersion: "2.57.4",
39409
+ sdkVersion: "2.58.1",
38940
39410
  experiments: Object.fromEntries(allExperimentsWithValues),
38941
39411
  settings: Object.fromEntries(allSettingsWithValues)
38942
39412
  };
@@ -38975,7 +39445,7 @@ const DebugModal = ({
38975
39445
  children: [jsxs("div", {
38976
39446
  className: "adyen-kyc-debug-modal__meta",
38977
39447
  children: [jsxs("span", {
38978
- children: ["SDK version: ", "2.57.4"]
39448
+ children: ["SDK version: ", "2.58.1"]
38979
39449
  }), jsxs("span", {
38980
39450
  children: ["rootLegalEntityId: ", rootLegalEntityId]
38981
39451
  })]