@adyen/kyc-components 3.42.3 → 3.43.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 (62) hide show
  1. package/dist/es/adyen-kyc-components.es.js +888 -1029
  2. package/dist/es/{bg-BG-CMCcwscy.js → bg-BG-CCs_v0tp.js} +28 -5
  3. package/dist/es/cash-stack-rb5rBl2N.js +13 -0
  4. package/dist/es/{cs-CZ-CWoauekB.js → cs-CZ-C_bRWn21.js} +28 -5
  5. package/dist/es/{da-DK-DzEKTJHc.js → da-DK-DaQaWQd-.js} +28 -5
  6. package/dist/es/{de-DE-B6M2anx6.js → de-DE-DuSLpezf.js} +28 -5
  7. package/dist/es/{el-GR-CuqLWzR5.js → el-GR-DmgLyz80.js} +28 -5
  8. package/dist/es/{es-ES-9XfSDirr.js → es-ES-DxXud8aH.js} +28 -5
  9. package/dist/es/{et-EE-pmwl_J2R.js → et-EE-PXaQE7jG.js} +28 -5
  10. package/dist/es/{fi-FI-DgJSRyPl.js → fi-FI-osvBD5sG.js} +28 -5
  11. package/dist/es/{fr-FR-BUhY0q6T.js → fr-FR-Bs0FZL0l.js} +28 -5
  12. package/dist/es/{hr-HR-Cu45hWKx.js → hr-HR-DQIxTLgV.js} +28 -5
  13. package/dist/es/{hu-HU-igEUooEp.js → hu-HU-YYJTbjEp.js} +28 -5
  14. package/dist/es/{it-IT-DTdhIzgZ.js → it-IT-CV_B79A5.js} +28 -5
  15. package/dist/es/{lt-LT-7Ir7WV1z.js → lt-LT-COS6AdAw.js} +28 -5
  16. package/dist/es/{lv-LV-NrrHCjUD.js → lv-LV-BVwcioTj.js} +28 -5
  17. package/dist/es/{nl-NL-CfA_NFx-.js → nl-NL-CX6Snb3O.js} +28 -5
  18. package/dist/es/{no-NO-CWloqbTr.js → no-NO-VThUltIX.js} +28 -5
  19. package/dist/es/{pl-PL-BXvZOf8S.js → pl-PL-CkMByJ06.js} +28 -5
  20. package/dist/es/{pt-PT-BBmTWd3M.js → pt-PT-CIJPCsQC.js} +28 -5
  21. package/dist/es/{ro-RO-CPB_OIDF.js → ro-RO-CXVjplFU.js} +28 -5
  22. package/dist/es/{sk-SK-C0ojvkCe.js → sk-SK-6YYisb04.js} +28 -5
  23. package/dist/es/{sl-SI-qgUAiBJ9.js → sl-SI-BWpRSITB.js} +28 -5
  24. package/dist/es/{sv-SE-CJ7RsMEw.js → sv-SE-BBzzvHvH.js} +28 -5
  25. package/dist/style.css +139 -133
  26. package/dist/types/components/BankVerification/types.d.ts +1 -2
  27. package/dist/types/components/BusinessDetails/forms.d.ts +1 -1
  28. package/dist/types/components/Company/Company.d.ts +2 -2
  29. package/dist/types/components/Company/rules.d.ts +0 -1
  30. package/dist/types/components/Dropins/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
  31. package/dist/types/components/Dropins/CompanyDropin/CompanyDropin.d.ts +1 -1
  32. package/dist/types/components/Dropins/DropinLayout/ActionBar/ActionBar.d.ts +1 -1
  33. package/dist/types/components/Dropins/DropinLayout/ActionBar/type.d.ts +0 -1
  34. package/dist/types/components/Dropins/DropinLayout/DropinLayout.d.ts +1 -1
  35. package/dist/types/components/Dropins/FormWrapper/FormWrapper.d.ts +8 -11
  36. package/dist/types/components/Dropins/IndividualDropin/IndividualDropin.d.ts +1 -1
  37. package/dist/types/components/Dropins/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  38. package/dist/types/components/Dropins/SolePropDropin/SolePropDropin.d.ts +1 -1
  39. package/dist/types/components/Dropins/SourceOfFundsDropin/SourceOfFundsDropin.d.ts +2 -0
  40. package/dist/types/components/Dropins/SourceOfFundsDropin/types.d.ts +29 -0
  41. package/dist/types/components/Dropins/TrustDropin/TrustDropin.d.ts +1 -1
  42. package/dist/types/components/Dropins/types.d.ts +1 -2
  43. package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +4 -1
  44. package/dist/types/components/Individual/types.d.ts +0 -1
  45. package/dist/types/components/PayoutDetails/types.d.ts +1 -1
  46. package/dist/types/components/SoleProp/SoleProp.d.ts +2 -2
  47. package/dist/types/components/index.d.ts +2 -0
  48. package/dist/types/components/internal/Address/utils.d.ts +1 -1
  49. package/dist/types/components/internal/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
  50. package/dist/types/components/internal/CountryOfGoverningLawField/types.d.ts +1 -1
  51. package/dist/types/components/internal/EInvoicingCodeField/types.d.ts +1 -0
  52. package/dist/types/components/internal/Modal/MaybeModal.d.ts +10 -0
  53. package/dist/types/components/internal/Modal/Modal.d.ts +11 -5
  54. package/dist/types/components/internal/Svg/svgs.d.ts +2 -0
  55. package/dist/types/core/hooks/useForm/types.d.ts +1 -5
  56. package/dist/types/core/hooks/useFormComposer.d.ts +5 -8
  57. package/dist/types/core/models/form.d.ts +0 -1
  58. package/dist/types/stores/taskStore/taskTypes.d.ts +2 -1
  59. package/dist/types/utils/companyUtil.d.ts +0 -1
  60. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  61. package/dist/types/utils/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +9 -0
  62. package/package.json +1 -1
@@ -95,7 +95,7 @@ const defaultLocaleTranslations = {
95
95
  addExtraBankAccount: "Add extra bank account",
96
96
  addExtraPayinAccount: "Add extra payin account",
97
97
  addExtraPayoutAccount: "Add extra payout account",
98
- addingAndVerifiyingABankAccount: "Adding and verifying a bank account typically takes 1 3 business days with this method.",
98
+ addingAndVerifiyingABankAccount: "Adding and verifying a bank account with this method typically takes up to 3 business days.",
99
99
  addManually: "Add manually",
100
100
  addMissingBankDetails: "We are missing your bank details in order to perform payouts, please add your bank account.",
101
101
  addOwnerToTrustMember: "Add owner of %{trustMember}",
@@ -312,7 +312,6 @@ const defaultLocaleTranslations = {
312
312
  decisionMaker: "Decision-makers",
313
313
  decisionMakerDescription: "Provide the information of the owners, controlling persons, and signatories in your company. Keep in mind that one person may hold multiple roles. The requirements are as follows:",
314
314
  decisionMakers: "Decision-makers",
315
- defaultCufeCodesInItalyAreEither: "Default CUFE codes in Italy are either 16-digit (B2B transactions) or 8-digit (B2C transactions). E.g. %{example} or %{exampleTwo}",
316
315
  definedBeneficiary: "Defined beneficiary",
317
316
  definedBeneficiaryDescription: "A natural person, corporate entity, or member of a class in whose interest the trust is principally constituted or operates.",
318
317
  "delete": "Delete",
@@ -322,7 +321,6 @@ const defaultLocaleTranslations = {
322
321
  descriptionOptional: "Description (optional)",
323
322
  descriptionUndefinedBeneficiary: "Undefined beneficiary description",
324
323
  detCentralePersonregister: "Det Centrale Personregister (CPR)",
325
- differentCountryOfGoverningLaw: "This company has a different country/region of governing law",
326
324
  director: "Director",
327
325
  directorDescription: "Someone appointed to manage a company's business and affairs",
328
326
  directorGuideDescription: "A <strong>director</strong> is someone appointed to manage a company's business and affairs. Who your directors are can be found on the companies register.",
@@ -370,7 +368,7 @@ const defaultLocaleTranslations = {
370
368
  drivinglicenseFront: "Driving license (front)",
371
369
  dropFileToUpload: "Drop file to upload",
372
370
  duplicatedFiles: "Duplicated files",
373
- eInvoicingCode: "E-invoicing code (CUFE)",
371
+ eInvoicingCode: "E-invoicing (SDI) code",
374
372
  edit: "Edit",
375
373
  editDetails: "Edit details",
376
374
  editEntityDetails: "Edit entity details",
@@ -689,9 +687,11 @@ const defaultLocaleTranslations = {
689
687
  fieldMustContainAtLeast: "%{fieldName} must contain at least %{minLength} characters",
690
688
  fileName: "File name",
691
689
  financialInformation: "Financial information",
690
+ financialProductInformation: "Financial product information",
692
691
  financialReportingDate: "Financial reporting date",
693
692
  findYourIncorporatedAssociationNumberInThePublicRegistryForYourState: "Find your incorporated association number in the public registry for your state.",
694
693
  finish: "Finish",
694
+ finishLater: "Finish later",
695
695
  firmenbuchnummer: "Firmenbuchnummer",
696
696
  firstHomeSaverAccountsTrust: "First home saver accounts trust",
697
697
  firstName: "First name",
@@ -704,6 +704,7 @@ const defaultLocaleTranslations = {
704
704
  frontPage: "Front page",
705
705
  fullDocumentVisible: "The full document needs to be visible, with all text readable",
706
706
  fullDocumentVisibleWithReadableText: "The full document needs to be visible, with all text readable",
707
+ fundingSources: "Funding sources",
707
708
  getSetUpInstantly: "Get set up instantly",
708
709
  getYourBusinessVerifiedDetails: "Get your business's verified details instantly and skip uploading documents.",
709
710
  getYourVerifiedDetailsInstantly: "Get your verified details instantly and skip uploading documents.",
@@ -1262,6 +1263,7 @@ const defaultLocaleTranslations = {
1262
1263
  sorryAnErrorOccurred: "We are sorry, an error has occurred",
1263
1264
  sorryWeCantSetUpAnAccountForYou: "Sorry, we can't set up an account for you",
1264
1265
  sortCode: "Sort code",
1266
+ sourceOfFunds: "Source of funds",
1265
1267
  ssn: "SSN",
1266
1268
  stamregister: "Stamregister erhverv (SE-nummer)",
1267
1269
  startANewSessionFromTheSamePlaceYouOriginallyAccessed: "Start a new session from the same place you originally accessed this page.",
@@ -1314,6 +1316,7 @@ const defaultLocaleTranslations = {
1314
1316
  taxationDocument: "Taxation document",
1315
1317
  taxpayerReferenceNumber: "Taxpayer reference number",
1316
1318
  textToVerifyAccount: "For you to receive your payouts, we need a verified bank account.",
1319
+ the7CharacterIdentifierAssignedToThis: "The 7-character identifier assigned to this company by the Sistema di Interscambio (SDI) for electronic invoicing in Italy. For example, %{example}",
1317
1320
  theBankAccountHolderMustBeInYourName_: "The bank account holder must be in your name: <strong>%{name}</strong>",
1318
1321
  theBankAccountHolderMustHaveTheSameNameAsYourCompany_: "The bank account holder must have the same name as your company <strong>%{companyName}</strong>.",
1319
1322
  theCompanyIWorkFor: "The company I work for",
@@ -1321,6 +1324,7 @@ const defaultLocaleTranslations = {
1321
1324
  thenResubmit: "then resubmit.",
1322
1325
  thereAreNoSigners: "There are no signers, please add yourself to make sure you can accept the terms and get the funds.",
1323
1326
  thereWasAnErrorTryAgain: "There was an error, please try again",
1327
+ thisCompanyDoesntHaveAnSDI: "This company doesn’t have an SDI code",
1324
1328
  thisIsMyBusiness: "This is my business",
1325
1329
  thisMeansYouHaveAParentCompany: "If yes, this means you have a parent company, such as a global headquarters or a holding company.",
1326
1330
  thisMeansYouHaveAnUltimateParentCompany: "If yes, this means you have an ultimate parent company. An ultimate parent company is the company that's highest in the corporate structure. Learn more.",
@@ -1808,7 +1812,7 @@ const KNOWN_DISALLOWED_INDEX_DATASET_STATES = [
1808
1812
  StateCodesUS.California,
1809
1813
  StateCodesUS.Texas
1810
1814
  ];
1811
- const logger$P = createLogger("useBusinessData");
1815
+ const logger$Q = createLogger("useBusinessData");
1812
1816
  function useBusinessData({
1813
1817
  handleCompanyIndexSearch,
1814
1818
  handleCompanyDeepSearch,
@@ -1845,7 +1849,7 @@ function useBusinessData({
1845
1849
  const searchByRegistrationNumber = useCallback(
1846
1850
  async (data) => {
1847
1851
  if (!handleCompanyRegistrationNumberDeepSearch || !handleCompanyRegistrationNumberIndexSearch) {
1848
- logger$P.error("Missing handlers for searchByRegistrationNumber");
1852
+ logger$Q.error("Missing handlers for searchByRegistrationNumber");
1849
1853
  return;
1850
1854
  }
1851
1855
  const requestPayload = {
@@ -1865,7 +1869,7 @@ function useBusinessData({
1865
1869
  const searchByCompanyName = useCallback(
1866
1870
  async (data) => {
1867
1871
  if (!handleCompanyDeepSearch || !handleCompanyIndexSearch) {
1868
- logger$P.error("Missing handlers for searchByCompanyName");
1872
+ logger$Q.error("Missing handlers for searchByCompanyName");
1869
1873
  return;
1870
1874
  }
1871
1875
  return KNOWN_BROKEN_PRIMARY_SOURCE_CONNECTIONS.includes(data.state) ? await handleCompanyIndexSearch({
@@ -1904,7 +1908,7 @@ function useBusinessData({
1904
1908
  return (response == null ? void 0 : response.results) || [];
1905
1909
  } catch (e) {
1906
1910
  setSearching("error");
1907
- logger$P.error(e);
1911
+ logger$Q.error(e);
1908
1912
  } finally {
1909
1913
  setCachedSearch(data);
1910
1914
  setSearching((prevState) => prevState !== "error" ? "loaded" : prevState);
@@ -1915,7 +1919,7 @@ function useBusinessData({
1915
1919
  const fetchBusinessData = useCallback(
1916
1920
  async (company, state) => {
1917
1921
  if (!handleGetCompanyDataset || !handleRefreshCompanyDataset) {
1918
- logger$P.error("Missing handlers for fetchBusinessData");
1922
+ logger$Q.error("Missing handlers for fetchBusinessData");
1919
1923
  return;
1920
1924
  }
1921
1925
  const date = (/* @__PURE__ */ new Date()).toDateString();
@@ -1944,7 +1948,7 @@ function useBusinessData({
1944
1948
  });
1945
1949
  } catch (e) {
1946
1950
  setFetching("error");
1947
- logger$P.error(e);
1951
+ logger$Q.error(e);
1948
1952
  } finally {
1949
1953
  setFetching((prevState) => prevState !== "error" ? "loaded" : prevState);
1950
1954
  }
@@ -1954,7 +1958,7 @@ function useBusinessData({
1954
1958
  const verifyBusinessData = useCallback(
1955
1959
  async (data, tin) => {
1956
1960
  if (!handleVerifyTin) {
1957
- logger$P.log("Missing handlers for verifyBusinessData");
1961
+ logger$Q.log("Missing handlers for verifyBusinessData");
1958
1962
  return;
1959
1963
  }
1960
1964
  try {
@@ -1970,7 +1974,7 @@ function useBusinessData({
1970
1974
  return matched;
1971
1975
  } catch (e) {
1972
1976
  setVerifying("error");
1973
- logger$P.error(e);
1977
+ logger$Q.error(e);
1974
1978
  } finally {
1975
1979
  setVerifying((prevState) => prevState !== "error" ? "loaded" : prevState);
1976
1980
  }
@@ -1983,7 +1987,7 @@ function useBusinessData({
1983
1987
  await (handleClearCompanyData == null ? void 0 : handleClearCompanyData());
1984
1988
  } catch (e) {
1985
1989
  setResettingTrustedData("error");
1986
- logger$P.error(e);
1990
+ logger$Q.error(e);
1987
1991
  } finally {
1988
1992
  setResettingTrustedData((prevState) => prevState !== "error" ? "loaded" : prevState);
1989
1993
  }
@@ -2294,7 +2298,8 @@ const icons = {
2294
2298
  upload: lazy(() => import("./upload-XwV0PfcC.js")),
2295
2299
  "users-3": lazy(() => import("./4-people-BTQ6Okmp.js")),
2296
2300
  warning: lazy(() => import("./warning-filled-Od0v7tGX.js")),
2297
- webinar: lazy(() => import("./webinar-DgBtUiyw.js"))
2301
+ webinar: lazy(() => import("./webinar-DgBtUiyw.js")),
2302
+ "cash-stack": lazy(() => import("./cash-stack-rb5rBl2N.js"))
2298
2303
  };
2299
2304
  const customIcons = {
2300
2305
  review: lazy(() => import("./review-C4CnZ2XP.js"))
@@ -2411,12 +2416,12 @@ const unscalableIconNames = [
2411
2416
  "upload",
2412
2417
  "warning"
2413
2418
  ];
2414
- const logger$O = createLogger("Icon");
2419
+ const logger$P = createLogger("Icon");
2415
2420
  const Svg = ({ className, name, testId, title, type }) => {
2416
2421
  const LazyLoadedSvg = svgs[name];
2417
2422
  const viewBox = unscalableIconNames.includes(name) ? "0 0 16 16" : void 0;
2418
2423
  if (!LazyLoadedSvg) {
2419
- logger$O.error(`No such svg: "${name}"`);
2424
+ logger$P.error(`No such svg: "${name}"`);
2420
2425
  return null;
2421
2426
  }
2422
2427
  return /* @__PURE__ */ jsx("span", { className: cx(`adyen-kyc-${type}`, className), "data-testid": testId, children: /* @__PURE__ */ jsx(Suspense, { fallback: null, children: viewBox ? /* @__PURE__ */ jsx(LazyLoadedSvg, { "aria-hidden": type === "icon", viewBox, title: title || name }) : /* @__PURE__ */ jsx(LazyLoadedSvg, { "aria-hidden": type === "icon", title: title || name }) }) });
@@ -2654,10 +2659,10 @@ function useFormRouterContext() {
2654
2659
  }
2655
2660
  return context;
2656
2661
  }
2657
- const logger$N = createLogger("Link");
2662
+ const logger$O = createLogger("Link");
2658
2663
  const isValidLink = (href) => {
2659
2664
  if (href === "#") {
2660
- logger$N.error(
2665
+ logger$O.error(
2661
2666
  'Links must include a valid href. If your href is "#", consider using a Button instead'
2662
2667
  );
2663
2668
  return false;
@@ -3022,7 +3027,7 @@ class ValidationResult {
3022
3027
  return this.validationResults.find((result) => result.hasError);
3023
3028
  }
3024
3029
  }
3025
- const logger$M = createLogger("useAsyncValidator");
3030
+ const logger$N = createLogger("useAsyncValidator");
3026
3031
  const useAsyncValidator = (asyncRules) => {
3027
3032
  const [asyncValidationResults, setAsyncValidationResults] = useState({});
3028
3033
  const clearAsyncValidationResults = useCallback(() => setAsyncValidationResults({}), []);
@@ -3042,7 +3047,7 @@ const useAsyncValidator = (asyncRules) => {
3042
3047
  }
3043
3048
  ])
3044
3049
  });
3045
- }).catch(logger$M.error);
3050
+ }).catch(logger$N.error);
3046
3051
  },
3047
3052
  [asyncRules, clearAsyncValidationResults]
3048
3053
  );
@@ -3600,6 +3605,285 @@ function useForm({
3600
3605
  fieldProblems: state.fieldProblems
3601
3606
  };
3602
3607
  }
3608
+ var CountryCodes = /* @__PURE__ */ ((CountryCodes2) => {
3609
+ CountryCodes2["Afghanistan"] = "AF";
3610
+ CountryCodes2["AlandIslands"] = "AX";
3611
+ CountryCodes2["Albania"] = "AL";
3612
+ CountryCodes2["Algeria"] = "DZ";
3613
+ CountryCodes2["AmericanSamoa"] = "AS";
3614
+ CountryCodes2["Andorra"] = "AD";
3615
+ CountryCodes2["Angola"] = "AO";
3616
+ CountryCodes2["Anguilla"] = "AI";
3617
+ CountryCodes2["Antarctica"] = "AQ";
3618
+ CountryCodes2["AntiguaAndBarbuda"] = "AG";
3619
+ CountryCodes2["Argentina"] = "AR";
3620
+ CountryCodes2["Armenia"] = "AM";
3621
+ CountryCodes2["Aruba"] = "AW";
3622
+ CountryCodes2["Australia"] = "AU";
3623
+ CountryCodes2["Austria"] = "AT";
3624
+ CountryCodes2["Azerbaijan"] = "AZ";
3625
+ CountryCodes2["Bahamas"] = "BS";
3626
+ CountryCodes2["Bahrain"] = "BH";
3627
+ CountryCodes2["Bangladesh"] = "BD";
3628
+ CountryCodes2["Barbados"] = "BB";
3629
+ CountryCodes2["Belarus"] = "BY";
3630
+ CountryCodes2["Belgium"] = "BE";
3631
+ CountryCodes2["Belize"] = "BZ";
3632
+ CountryCodes2["Benin"] = "BJ";
3633
+ CountryCodes2["Bermuda"] = "BM";
3634
+ CountryCodes2["Bhutan"] = "BT";
3635
+ CountryCodes2["Bolivia"] = "BO";
3636
+ CountryCodes2["BonaireSintEustatiusSaba"] = "BQ";
3637
+ CountryCodes2["BosniaAndHerzegovina"] = "BA";
3638
+ CountryCodes2["Botswana"] = "BW";
3639
+ CountryCodes2["BouvetIsland"] = "BV";
3640
+ CountryCodes2["Brazil"] = "BR";
3641
+ CountryCodes2["BritishIndianOceanTerritory"] = "IO";
3642
+ CountryCodes2["BruneiDarussalam"] = "BN";
3643
+ CountryCodes2["Bulgaria"] = "BG";
3644
+ CountryCodes2["BurkinaFaso"] = "BF";
3645
+ CountryCodes2["Burundi"] = "BI";
3646
+ CountryCodes2["Cambodia"] = "KH";
3647
+ CountryCodes2["Cameroon"] = "CM";
3648
+ CountryCodes2["Canada"] = "CA";
3649
+ CountryCodes2["CapeVerde"] = "CV";
3650
+ CountryCodes2["CaymanIslands"] = "KY";
3651
+ CountryCodes2["CentralAfricanRepublic"] = "CF";
3652
+ CountryCodes2["Chad"] = "TD";
3653
+ CountryCodes2["Chile"] = "CL";
3654
+ CountryCodes2["China"] = "CN";
3655
+ CountryCodes2["ChristmasIsland"] = "CX";
3656
+ CountryCodes2["CocosKeelingIslands"] = "CC";
3657
+ CountryCodes2["Colombia"] = "CO";
3658
+ CountryCodes2["Comoros"] = "KM";
3659
+ CountryCodes2["Congo"] = "CG";
3660
+ CountryCodes2["CongoDemocraticRepublic"] = "CD";
3661
+ CountryCodes2["CookIslands"] = "CK";
3662
+ CountryCodes2["CostaRica"] = "CR";
3663
+ CountryCodes2["CoteDIvoire"] = "CI";
3664
+ CountryCodes2["Croatia"] = "HR";
3665
+ CountryCodes2["Cuba"] = "CU";
3666
+ CountryCodes2["Curacao"] = "CW";
3667
+ CountryCodes2["Cyprus"] = "CY";
3668
+ CountryCodes2["CzechRepublic"] = "CZ";
3669
+ CountryCodes2["Denmark"] = "DK";
3670
+ CountryCodes2["Djibouti"] = "DJ";
3671
+ CountryCodes2["Dominica"] = "DM";
3672
+ CountryCodes2["DominicanRepublic"] = "DO";
3673
+ CountryCodes2["Ecuador"] = "EC";
3674
+ CountryCodes2["Egypt"] = "EG";
3675
+ CountryCodes2["ElSalvador"] = "SV";
3676
+ CountryCodes2["EquatorialGuinea"] = "GQ";
3677
+ CountryCodes2["Eritrea"] = "ER";
3678
+ CountryCodes2["Estonia"] = "EE";
3679
+ CountryCodes2["Ethiopia"] = "ET";
3680
+ CountryCodes2["FalklandIslands"] = "FK";
3681
+ CountryCodes2["FaroeIslands"] = "FO";
3682
+ CountryCodes2["Fiji"] = "FJ";
3683
+ CountryCodes2["Finland"] = "FI";
3684
+ CountryCodes2["France"] = "FR";
3685
+ CountryCodes2["FrenchGuiana"] = "GF";
3686
+ CountryCodes2["FrenchPolynesia"] = "PF";
3687
+ CountryCodes2["FrenchSouthernTerritories"] = "TF";
3688
+ CountryCodes2["Gabon"] = "GA";
3689
+ CountryCodes2["Gambia"] = "GM";
3690
+ CountryCodes2["Georgia"] = "GE";
3691
+ CountryCodes2["Germany"] = "DE";
3692
+ CountryCodes2["Ghana"] = "GH";
3693
+ CountryCodes2["Gibraltar"] = "GI";
3694
+ CountryCodes2["Greece"] = "GR";
3695
+ CountryCodes2["Greece_ISO_639_1"] = "EL";
3696
+ CountryCodes2["Greenland"] = "GL";
3697
+ CountryCodes2["Grenada"] = "GD";
3698
+ CountryCodes2["Guadeloupe"] = "GP";
3699
+ CountryCodes2["Guam"] = "GU";
3700
+ CountryCodes2["Guatemala"] = "GT";
3701
+ CountryCodes2["Guernsey"] = "GG";
3702
+ CountryCodes2["Guinea"] = "GN";
3703
+ CountryCodes2["GuineaBissau"] = "GW";
3704
+ CountryCodes2["Guyana"] = "GY";
3705
+ CountryCodes2["Haiti"] = "HT";
3706
+ CountryCodes2["HeardIslandMcdonaldIslands"] = "HM";
3707
+ CountryCodes2["HolySeeVaticanCityState"] = "VA";
3708
+ CountryCodes2["Honduras"] = "HN";
3709
+ CountryCodes2["HongKong"] = "HK";
3710
+ CountryCodes2["Hungary"] = "HU";
3711
+ CountryCodes2["Iceland"] = "IS";
3712
+ CountryCodes2["India"] = "IN";
3713
+ CountryCodes2["Indonesia"] = "ID";
3714
+ CountryCodes2["Iran"] = "IR";
3715
+ CountryCodes2["Iraq"] = "IQ";
3716
+ CountryCodes2["Ireland"] = "IE";
3717
+ CountryCodes2["IsleOfMan"] = "IM";
3718
+ CountryCodes2["Israel"] = "IL";
3719
+ CountryCodes2["Italy"] = "IT";
3720
+ CountryCodes2["Jamaica"] = "JM";
3721
+ CountryCodes2["Japan"] = "JP";
3722
+ CountryCodes2["Jersey"] = "JE";
3723
+ CountryCodes2["Jordan"] = "JO";
3724
+ CountryCodes2["Kazakhstan"] = "KZ";
3725
+ CountryCodes2["Kenya"] = "KE";
3726
+ CountryCodes2["Kiribati"] = "KI";
3727
+ CountryCodes2["Korea"] = "KR";
3728
+ CountryCodes2["KoreaDemocraticPeoplesRepublic"] = "KP";
3729
+ CountryCodes2["Kuwait"] = "KW";
3730
+ CountryCodes2["Kyrgyzstan"] = "KG";
3731
+ CountryCodes2["LaoPeoplesDemocraticRepublic"] = "LA";
3732
+ CountryCodes2["Latvia"] = "LV";
3733
+ CountryCodes2["Lebanon"] = "LB";
3734
+ CountryCodes2["Lesotho"] = "LS";
3735
+ CountryCodes2["Liberia"] = "LR";
3736
+ CountryCodes2["LibyanArabJamahiriya"] = "LY";
3737
+ CountryCodes2["Liechtenstein"] = "LI";
3738
+ CountryCodes2["Lithuania"] = "LT";
3739
+ CountryCodes2["Luxembourg"] = "LU";
3740
+ CountryCodes2["Macao"] = "MO";
3741
+ CountryCodes2["Macedonia"] = "MK";
3742
+ CountryCodes2["Madagascar"] = "MG";
3743
+ CountryCodes2["Malawi"] = "MW";
3744
+ CountryCodes2["Malaysia"] = "MY";
3745
+ CountryCodes2["Maldives"] = "MV";
3746
+ CountryCodes2["Mali"] = "ML";
3747
+ CountryCodes2["Malta"] = "MT";
3748
+ CountryCodes2["MarshallIslands"] = "MH";
3749
+ CountryCodes2["Martinique"] = "MQ";
3750
+ CountryCodes2["Mauritania"] = "MR";
3751
+ CountryCodes2["Mauritius"] = "MU";
3752
+ CountryCodes2["Mayotte"] = "YT";
3753
+ CountryCodes2["Mexico"] = "MX";
3754
+ CountryCodes2["Micronesia"] = "FM";
3755
+ CountryCodes2["Moldova"] = "MD";
3756
+ CountryCodes2["Monaco"] = "MC";
3757
+ CountryCodes2["Mongolia"] = "MN";
3758
+ CountryCodes2["Montenegro"] = "ME";
3759
+ CountryCodes2["Montserrat"] = "MS";
3760
+ CountryCodes2["Morocco"] = "MA";
3761
+ CountryCodes2["Mozambique"] = "MZ";
3762
+ CountryCodes2["Myanmar"] = "MM";
3763
+ CountryCodes2["Namibia"] = "NA";
3764
+ CountryCodes2["Nauru"] = "NR";
3765
+ CountryCodes2["Nepal"] = "NP";
3766
+ CountryCodes2["Netherlands"] = "NL";
3767
+ CountryCodes2["NewCaledonia"] = "NC";
3768
+ CountryCodes2["NewZealand"] = "NZ";
3769
+ CountryCodes2["Nicaragua"] = "NI";
3770
+ CountryCodes2["Niger"] = "NE";
3771
+ CountryCodes2["Nigeria"] = "NG";
3772
+ CountryCodes2["Niue"] = "NU";
3773
+ CountryCodes2["NorfolkIsland"] = "NF";
3774
+ CountryCodes2["NorthernMarianaIslands"] = "MP";
3775
+ CountryCodes2["Norway"] = "NO";
3776
+ CountryCodes2["Oman"] = "OM";
3777
+ CountryCodes2["Pakistan"] = "PK";
3778
+ CountryCodes2["Palau"] = "PW";
3779
+ CountryCodes2["PalestinianTerritory"] = "PS";
3780
+ CountryCodes2["Panama"] = "PA";
3781
+ CountryCodes2["PapuaNewGuinea"] = "PG";
3782
+ CountryCodes2["Paraguay"] = "PY";
3783
+ CountryCodes2["Peru"] = "PE";
3784
+ CountryCodes2["Philippines"] = "PH";
3785
+ CountryCodes2["Pitcairn"] = "PN";
3786
+ CountryCodes2["Poland"] = "PL";
3787
+ CountryCodes2["Portugal"] = "PT";
3788
+ CountryCodes2["PuertoRico"] = "PR";
3789
+ CountryCodes2["Qatar"] = "QA";
3790
+ CountryCodes2["Reunion"] = "RE";
3791
+ CountryCodes2["Romania"] = "RO";
3792
+ CountryCodes2["RussianFederation"] = "RU";
3793
+ CountryCodes2["Rwanda"] = "RW";
3794
+ CountryCodes2["SaintHelena"] = "SH";
3795
+ CountryCodes2["SaintKittsAndNevis"] = "KN";
3796
+ CountryCodes2["SaintLucia"] = "LC";
3797
+ CountryCodes2["SaintPierreAndMiquelon"] = "PM";
3798
+ CountryCodes2["SaintVincentAndGrenadines"] = "VC";
3799
+ CountryCodes2["Samoa"] = "WS";
3800
+ CountryCodes2["SanMarino"] = "SM";
3801
+ CountryCodes2["SaoTomeAndPrincipe"] = "ST";
3802
+ CountryCodes2["SaudiArabia"] = "SA";
3803
+ CountryCodes2["Senegal"] = "SN";
3804
+ CountryCodes2["Serbia"] = "RS";
3805
+ CountryCodes2["Seychelles"] = "SC";
3806
+ CountryCodes2["SierraLeone"] = "SL";
3807
+ CountryCodes2["Singapore"] = "SG";
3808
+ CountryCodes2["Slovakia"] = "SK";
3809
+ CountryCodes2["Slovenia"] = "SI";
3810
+ CountryCodes2["SolomonIslands"] = "SB";
3811
+ CountryCodes2["Somalia"] = "SO";
3812
+ CountryCodes2["SouthAfrica"] = "ZA";
3813
+ CountryCodes2["SouthGeorgiaAndSandwichIsl"] = "GS";
3814
+ CountryCodes2["Spain"] = "ES";
3815
+ CountryCodes2["SriLanka"] = "LK";
3816
+ CountryCodes2["Sudan"] = "SD";
3817
+ CountryCodes2["Suriname"] = "SR";
3818
+ CountryCodes2["SvalbardAndJanMayen"] = "SJ";
3819
+ CountryCodes2["Swaziland"] = "SZ";
3820
+ CountryCodes2["Sweden"] = "SE";
3821
+ CountryCodes2["Switzerland"] = "CH";
3822
+ CountryCodes2["SyrianArabRepublic"] = "SY";
3823
+ CountryCodes2["Taiwan"] = "TW";
3824
+ CountryCodes2["Tajikistan"] = "TJ";
3825
+ CountryCodes2["Tanzania"] = "TZ";
3826
+ CountryCodes2["Thailand"] = "TH";
3827
+ CountryCodes2["TimorLeste"] = "TL";
3828
+ CountryCodes2["Togo"] = "TG";
3829
+ CountryCodes2["Tokelau"] = "TK";
3830
+ CountryCodes2["Tonga"] = "TO";
3831
+ CountryCodes2["TrinidadAndTobago"] = "TT";
3832
+ CountryCodes2["Tunisia"] = "TN";
3833
+ CountryCodes2["Turkey"] = "TR";
3834
+ CountryCodes2["Turkmenistan"] = "TM";
3835
+ CountryCodes2["TurksAndCaicosIslands"] = "TC";
3836
+ CountryCodes2["Tuvalu"] = "TV";
3837
+ CountryCodes2["Uganda"] = "UG";
3838
+ CountryCodes2["Ukraine"] = "UA";
3839
+ CountryCodes2["UnitedArabEmirates"] = "AE";
3840
+ CountryCodes2["UnitedKingdom"] = "GB";
3841
+ CountryCodes2["UnitedStates"] = "US";
3842
+ CountryCodes2["UnitedStatesOutlyingIslands"] = "UM";
3843
+ CountryCodes2["Uruguay"] = "UY";
3844
+ CountryCodes2["Uzbekistan"] = "UZ";
3845
+ CountryCodes2["Vanuatu"] = "VU";
3846
+ CountryCodes2["Venezuela"] = "VE";
3847
+ CountryCodes2["Vietnam"] = "VN";
3848
+ CountryCodes2["VirginIslandsBritish"] = "VG";
3849
+ CountryCodes2["VirginIslandsUS"] = "VI";
3850
+ CountryCodes2["WallisAndFutuna"] = "WF";
3851
+ CountryCodes2["WesternSahara"] = "EH";
3852
+ CountryCodes2["Yemen"] = "YE";
3853
+ CountryCodes2["Zambia"] = "ZM";
3854
+ CountryCodes2["Zimbabwe"] = "ZW";
3855
+ return CountryCodes2;
3856
+ })(CountryCodes || {});
3857
+ const euCountries = [
3858
+ "AT",
3859
+ "BE",
3860
+ "BG",
3861
+ "HR",
3862
+ "CY",
3863
+ "CZ",
3864
+ "DK",
3865
+ "EE",
3866
+ "FI",
3867
+ "FR",
3868
+ "DE",
3869
+ "GR",
3870
+ "HU",
3871
+ "IE",
3872
+ "IT",
3873
+ "LV",
3874
+ "LT",
3875
+ "LU",
3876
+ "MT",
3877
+ "NL",
3878
+ "PL",
3879
+ "PT",
3880
+ "RO",
3881
+ "SK",
3882
+ "SI",
3883
+ "ES",
3884
+ "SE"
3885
+ /* Sweden */
3886
+ ];
3603
3887
  const resolveFieldMetadata = (countryEntry, params, defaultMetadata) => {
3604
3888
  if (typeof countryEntry === "object") {
3605
3889
  return countryEntry;
@@ -4671,7 +4955,6 @@ function CountryField({
4671
4955
  );
4672
4956
  }
4673
4957
  const COUNTRY_OF_GOVERNING_LAW_FIELD = [
4674
- "differentCountryOfGoverningLaw",
4675
4958
  "countryOfGoverningLaw"
4676
4959
  ];
4677
4960
  function CountryOfGoverningLawField({
@@ -4683,42 +4966,38 @@ function CountryOfGoverningLawField({
4683
4966
  handleChangeFor,
4684
4967
  helperText,
4685
4968
  allowedCountries,
4969
+ country,
4686
4970
  classNameModifiers = []
4687
4971
  }) {
4688
4972
  const { i18n } = useI18nContext();
4689
- return /* @__PURE__ */ jsxs(Fragment, { children: [
4690
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field", children: /* @__PURE__ */ jsx(
4691
- Checkbox,
4692
- {
4693
- name: "differentCountryOfGoverningLaw",
4694
- label: (labels2 == null ? void 0 : labels2.differentCountryOfGoverningLaw) || i18n.get("differentCountryOfGoverningLaw"),
4695
- value: "differentCountryOfGoverningLaw",
4696
- readonly: false,
4697
- checked: data.differentCountryOfGoverningLaw ?? false,
4698
- onChange: handleChangeFor("differentCountryOfGoverningLaw"),
4699
- "aria-required": false,
4700
- "aria-label": (labels2 == null ? void 0 : labels2.differentCountryOfGoverningLaw) || i18n.get("differentCountryOfGoverningLaw"),
4701
- "aria-invalid": false
4702
- }
4703
- ) }),
4704
- (data == null ? void 0 : data.differentCountryOfGoverningLaw) && /* @__PURE__ */ jsx(
4705
- CountryField,
4706
- {
4707
- name: "countryOfGoverningLaw",
4708
- data: { country: data.countryOfGoverningLaw },
4709
- valid: { country: valid.countryOfGoverningLaw },
4710
- errors: {
4711
- country: errors.countryOfGoverningLaw
4712
- },
4713
- labels: { country: (labels2 == null ? void 0 : labels2.countryOfGoverningLaw) || i18n.get("countryOfGoverningLaw") },
4714
- readonly,
4715
- allowedCountries,
4716
- classNameModifiers,
4717
- handleChangeFor: () => handleChangeFor("countryOfGoverningLaw"),
4718
- helperText: { country: helperText == null ? void 0 : helperText.countryOfGoverningLaw }
4719
- }
4720
- )
4721
- ] });
4973
+ useEffect(() => {
4974
+ if (country === CountryCodes.UnitedKingdom && !data.countryOfGoverningLaw) {
4975
+ const countryOfGoverningLawEvent = {
4976
+ target: {
4977
+ name: "countryOfGoverningLaw",
4978
+ value: CountryCodes.UnitedKingdom
4979
+ }
4980
+ };
4981
+ handleChangeFor("countryOfGoverningLaw")(countryOfGoverningLawEvent);
4982
+ }
4983
+ }, [country]);
4984
+ return /* @__PURE__ */ jsx(
4985
+ CountryField,
4986
+ {
4987
+ name: "countryOfGoverningLaw",
4988
+ data: { country: data.countryOfGoverningLaw },
4989
+ valid: { country: valid.countryOfGoverningLaw },
4990
+ errors: {
4991
+ country: errors.countryOfGoverningLaw
4992
+ },
4993
+ labels: { country: (labels2 == null ? void 0 : labels2.countryOfGoverningLaw) || i18n.get("countryOfGoverningLaw") },
4994
+ readonly,
4995
+ allowedCountries,
4996
+ classNameModifiers,
4997
+ handleChangeFor: () => handleChangeFor("countryOfGoverningLaw"),
4998
+ helperText: { country: helperText == null ? void 0 : helperText.countryOfGoverningLaw }
4999
+ }
5000
+ );
4722
5001
  }
4723
5002
  function FormHeader({
4724
5003
  heading,
@@ -4749,285 +5028,6 @@ function FormHeader({
4749
5028
  descEl
4750
5029
  ] });
4751
5030
  }
4752
- var CountryCodes = /* @__PURE__ */ ((CountryCodes2) => {
4753
- CountryCodes2["Afghanistan"] = "AF";
4754
- CountryCodes2["AlandIslands"] = "AX";
4755
- CountryCodes2["Albania"] = "AL";
4756
- CountryCodes2["Algeria"] = "DZ";
4757
- CountryCodes2["AmericanSamoa"] = "AS";
4758
- CountryCodes2["Andorra"] = "AD";
4759
- CountryCodes2["Angola"] = "AO";
4760
- CountryCodes2["Anguilla"] = "AI";
4761
- CountryCodes2["Antarctica"] = "AQ";
4762
- CountryCodes2["AntiguaAndBarbuda"] = "AG";
4763
- CountryCodes2["Argentina"] = "AR";
4764
- CountryCodes2["Armenia"] = "AM";
4765
- CountryCodes2["Aruba"] = "AW";
4766
- CountryCodes2["Australia"] = "AU";
4767
- CountryCodes2["Austria"] = "AT";
4768
- CountryCodes2["Azerbaijan"] = "AZ";
4769
- CountryCodes2["Bahamas"] = "BS";
4770
- CountryCodes2["Bahrain"] = "BH";
4771
- CountryCodes2["Bangladesh"] = "BD";
4772
- CountryCodes2["Barbados"] = "BB";
4773
- CountryCodes2["Belarus"] = "BY";
4774
- CountryCodes2["Belgium"] = "BE";
4775
- CountryCodes2["Belize"] = "BZ";
4776
- CountryCodes2["Benin"] = "BJ";
4777
- CountryCodes2["Bermuda"] = "BM";
4778
- CountryCodes2["Bhutan"] = "BT";
4779
- CountryCodes2["Bolivia"] = "BO";
4780
- CountryCodes2["BonaireSintEustatiusSaba"] = "BQ";
4781
- CountryCodes2["BosniaAndHerzegovina"] = "BA";
4782
- CountryCodes2["Botswana"] = "BW";
4783
- CountryCodes2["BouvetIsland"] = "BV";
4784
- CountryCodes2["Brazil"] = "BR";
4785
- CountryCodes2["BritishIndianOceanTerritory"] = "IO";
4786
- CountryCodes2["BruneiDarussalam"] = "BN";
4787
- CountryCodes2["Bulgaria"] = "BG";
4788
- CountryCodes2["BurkinaFaso"] = "BF";
4789
- CountryCodes2["Burundi"] = "BI";
4790
- CountryCodes2["Cambodia"] = "KH";
4791
- CountryCodes2["Cameroon"] = "CM";
4792
- CountryCodes2["Canada"] = "CA";
4793
- CountryCodes2["CapeVerde"] = "CV";
4794
- CountryCodes2["CaymanIslands"] = "KY";
4795
- CountryCodes2["CentralAfricanRepublic"] = "CF";
4796
- CountryCodes2["Chad"] = "TD";
4797
- CountryCodes2["Chile"] = "CL";
4798
- CountryCodes2["China"] = "CN";
4799
- CountryCodes2["ChristmasIsland"] = "CX";
4800
- CountryCodes2["CocosKeelingIslands"] = "CC";
4801
- CountryCodes2["Colombia"] = "CO";
4802
- CountryCodes2["Comoros"] = "KM";
4803
- CountryCodes2["Congo"] = "CG";
4804
- CountryCodes2["CongoDemocraticRepublic"] = "CD";
4805
- CountryCodes2["CookIslands"] = "CK";
4806
- CountryCodes2["CostaRica"] = "CR";
4807
- CountryCodes2["CoteDIvoire"] = "CI";
4808
- CountryCodes2["Croatia"] = "HR";
4809
- CountryCodes2["Cuba"] = "CU";
4810
- CountryCodes2["Curacao"] = "CW";
4811
- CountryCodes2["Cyprus"] = "CY";
4812
- CountryCodes2["CzechRepublic"] = "CZ";
4813
- CountryCodes2["Denmark"] = "DK";
4814
- CountryCodes2["Djibouti"] = "DJ";
4815
- CountryCodes2["Dominica"] = "DM";
4816
- CountryCodes2["DominicanRepublic"] = "DO";
4817
- CountryCodes2["Ecuador"] = "EC";
4818
- CountryCodes2["Egypt"] = "EG";
4819
- CountryCodes2["ElSalvador"] = "SV";
4820
- CountryCodes2["EquatorialGuinea"] = "GQ";
4821
- CountryCodes2["Eritrea"] = "ER";
4822
- CountryCodes2["Estonia"] = "EE";
4823
- CountryCodes2["Ethiopia"] = "ET";
4824
- CountryCodes2["FalklandIslands"] = "FK";
4825
- CountryCodes2["FaroeIslands"] = "FO";
4826
- CountryCodes2["Fiji"] = "FJ";
4827
- CountryCodes2["Finland"] = "FI";
4828
- CountryCodes2["France"] = "FR";
4829
- CountryCodes2["FrenchGuiana"] = "GF";
4830
- CountryCodes2["FrenchPolynesia"] = "PF";
4831
- CountryCodes2["FrenchSouthernTerritories"] = "TF";
4832
- CountryCodes2["Gabon"] = "GA";
4833
- CountryCodes2["Gambia"] = "GM";
4834
- CountryCodes2["Georgia"] = "GE";
4835
- CountryCodes2["Germany"] = "DE";
4836
- CountryCodes2["Ghana"] = "GH";
4837
- CountryCodes2["Gibraltar"] = "GI";
4838
- CountryCodes2["Greece"] = "GR";
4839
- CountryCodes2["Greece_ISO_639_1"] = "EL";
4840
- CountryCodes2["Greenland"] = "GL";
4841
- CountryCodes2["Grenada"] = "GD";
4842
- CountryCodes2["Guadeloupe"] = "GP";
4843
- CountryCodes2["Guam"] = "GU";
4844
- CountryCodes2["Guatemala"] = "GT";
4845
- CountryCodes2["Guernsey"] = "GG";
4846
- CountryCodes2["Guinea"] = "GN";
4847
- CountryCodes2["GuineaBissau"] = "GW";
4848
- CountryCodes2["Guyana"] = "GY";
4849
- CountryCodes2["Haiti"] = "HT";
4850
- CountryCodes2["HeardIslandMcdonaldIslands"] = "HM";
4851
- CountryCodes2["HolySeeVaticanCityState"] = "VA";
4852
- CountryCodes2["Honduras"] = "HN";
4853
- CountryCodes2["HongKong"] = "HK";
4854
- CountryCodes2["Hungary"] = "HU";
4855
- CountryCodes2["Iceland"] = "IS";
4856
- CountryCodes2["India"] = "IN";
4857
- CountryCodes2["Indonesia"] = "ID";
4858
- CountryCodes2["Iran"] = "IR";
4859
- CountryCodes2["Iraq"] = "IQ";
4860
- CountryCodes2["Ireland"] = "IE";
4861
- CountryCodes2["IsleOfMan"] = "IM";
4862
- CountryCodes2["Israel"] = "IL";
4863
- CountryCodes2["Italy"] = "IT";
4864
- CountryCodes2["Jamaica"] = "JM";
4865
- CountryCodes2["Japan"] = "JP";
4866
- CountryCodes2["Jersey"] = "JE";
4867
- CountryCodes2["Jordan"] = "JO";
4868
- CountryCodes2["Kazakhstan"] = "KZ";
4869
- CountryCodes2["Kenya"] = "KE";
4870
- CountryCodes2["Kiribati"] = "KI";
4871
- CountryCodes2["Korea"] = "KR";
4872
- CountryCodes2["KoreaDemocraticPeoplesRepublic"] = "KP";
4873
- CountryCodes2["Kuwait"] = "KW";
4874
- CountryCodes2["Kyrgyzstan"] = "KG";
4875
- CountryCodes2["LaoPeoplesDemocraticRepublic"] = "LA";
4876
- CountryCodes2["Latvia"] = "LV";
4877
- CountryCodes2["Lebanon"] = "LB";
4878
- CountryCodes2["Lesotho"] = "LS";
4879
- CountryCodes2["Liberia"] = "LR";
4880
- CountryCodes2["LibyanArabJamahiriya"] = "LY";
4881
- CountryCodes2["Liechtenstein"] = "LI";
4882
- CountryCodes2["Lithuania"] = "LT";
4883
- CountryCodes2["Luxembourg"] = "LU";
4884
- CountryCodes2["Macao"] = "MO";
4885
- CountryCodes2["Macedonia"] = "MK";
4886
- CountryCodes2["Madagascar"] = "MG";
4887
- CountryCodes2["Malawi"] = "MW";
4888
- CountryCodes2["Malaysia"] = "MY";
4889
- CountryCodes2["Maldives"] = "MV";
4890
- CountryCodes2["Mali"] = "ML";
4891
- CountryCodes2["Malta"] = "MT";
4892
- CountryCodes2["MarshallIslands"] = "MH";
4893
- CountryCodes2["Martinique"] = "MQ";
4894
- CountryCodes2["Mauritania"] = "MR";
4895
- CountryCodes2["Mauritius"] = "MU";
4896
- CountryCodes2["Mayotte"] = "YT";
4897
- CountryCodes2["Mexico"] = "MX";
4898
- CountryCodes2["Micronesia"] = "FM";
4899
- CountryCodes2["Moldova"] = "MD";
4900
- CountryCodes2["Monaco"] = "MC";
4901
- CountryCodes2["Mongolia"] = "MN";
4902
- CountryCodes2["Montenegro"] = "ME";
4903
- CountryCodes2["Montserrat"] = "MS";
4904
- CountryCodes2["Morocco"] = "MA";
4905
- CountryCodes2["Mozambique"] = "MZ";
4906
- CountryCodes2["Myanmar"] = "MM";
4907
- CountryCodes2["Namibia"] = "NA";
4908
- CountryCodes2["Nauru"] = "NR";
4909
- CountryCodes2["Nepal"] = "NP";
4910
- CountryCodes2["Netherlands"] = "NL";
4911
- CountryCodes2["NewCaledonia"] = "NC";
4912
- CountryCodes2["NewZealand"] = "NZ";
4913
- CountryCodes2["Nicaragua"] = "NI";
4914
- CountryCodes2["Niger"] = "NE";
4915
- CountryCodes2["Nigeria"] = "NG";
4916
- CountryCodes2["Niue"] = "NU";
4917
- CountryCodes2["NorfolkIsland"] = "NF";
4918
- CountryCodes2["NorthernMarianaIslands"] = "MP";
4919
- CountryCodes2["Norway"] = "NO";
4920
- CountryCodes2["Oman"] = "OM";
4921
- CountryCodes2["Pakistan"] = "PK";
4922
- CountryCodes2["Palau"] = "PW";
4923
- CountryCodes2["PalestinianTerritory"] = "PS";
4924
- CountryCodes2["Panama"] = "PA";
4925
- CountryCodes2["PapuaNewGuinea"] = "PG";
4926
- CountryCodes2["Paraguay"] = "PY";
4927
- CountryCodes2["Peru"] = "PE";
4928
- CountryCodes2["Philippines"] = "PH";
4929
- CountryCodes2["Pitcairn"] = "PN";
4930
- CountryCodes2["Poland"] = "PL";
4931
- CountryCodes2["Portugal"] = "PT";
4932
- CountryCodes2["PuertoRico"] = "PR";
4933
- CountryCodes2["Qatar"] = "QA";
4934
- CountryCodes2["Reunion"] = "RE";
4935
- CountryCodes2["Romania"] = "RO";
4936
- CountryCodes2["RussianFederation"] = "RU";
4937
- CountryCodes2["Rwanda"] = "RW";
4938
- CountryCodes2["SaintHelena"] = "SH";
4939
- CountryCodes2["SaintKittsAndNevis"] = "KN";
4940
- CountryCodes2["SaintLucia"] = "LC";
4941
- CountryCodes2["SaintPierreAndMiquelon"] = "PM";
4942
- CountryCodes2["SaintVincentAndGrenadines"] = "VC";
4943
- CountryCodes2["Samoa"] = "WS";
4944
- CountryCodes2["SanMarino"] = "SM";
4945
- CountryCodes2["SaoTomeAndPrincipe"] = "ST";
4946
- CountryCodes2["SaudiArabia"] = "SA";
4947
- CountryCodes2["Senegal"] = "SN";
4948
- CountryCodes2["Serbia"] = "RS";
4949
- CountryCodes2["Seychelles"] = "SC";
4950
- CountryCodes2["SierraLeone"] = "SL";
4951
- CountryCodes2["Singapore"] = "SG";
4952
- CountryCodes2["Slovakia"] = "SK";
4953
- CountryCodes2["Slovenia"] = "SI";
4954
- CountryCodes2["SolomonIslands"] = "SB";
4955
- CountryCodes2["Somalia"] = "SO";
4956
- CountryCodes2["SouthAfrica"] = "ZA";
4957
- CountryCodes2["SouthGeorgiaAndSandwichIsl"] = "GS";
4958
- CountryCodes2["Spain"] = "ES";
4959
- CountryCodes2["SriLanka"] = "LK";
4960
- CountryCodes2["Sudan"] = "SD";
4961
- CountryCodes2["Suriname"] = "SR";
4962
- CountryCodes2["SvalbardAndJanMayen"] = "SJ";
4963
- CountryCodes2["Swaziland"] = "SZ";
4964
- CountryCodes2["Sweden"] = "SE";
4965
- CountryCodes2["Switzerland"] = "CH";
4966
- CountryCodes2["SyrianArabRepublic"] = "SY";
4967
- CountryCodes2["Taiwan"] = "TW";
4968
- CountryCodes2["Tajikistan"] = "TJ";
4969
- CountryCodes2["Tanzania"] = "TZ";
4970
- CountryCodes2["Thailand"] = "TH";
4971
- CountryCodes2["TimorLeste"] = "TL";
4972
- CountryCodes2["Togo"] = "TG";
4973
- CountryCodes2["Tokelau"] = "TK";
4974
- CountryCodes2["Tonga"] = "TO";
4975
- CountryCodes2["TrinidadAndTobago"] = "TT";
4976
- CountryCodes2["Tunisia"] = "TN";
4977
- CountryCodes2["Turkey"] = "TR";
4978
- CountryCodes2["Turkmenistan"] = "TM";
4979
- CountryCodes2["TurksAndCaicosIslands"] = "TC";
4980
- CountryCodes2["Tuvalu"] = "TV";
4981
- CountryCodes2["Uganda"] = "UG";
4982
- CountryCodes2["Ukraine"] = "UA";
4983
- CountryCodes2["UnitedArabEmirates"] = "AE";
4984
- CountryCodes2["UnitedKingdom"] = "GB";
4985
- CountryCodes2["UnitedStates"] = "US";
4986
- CountryCodes2["UnitedStatesOutlyingIslands"] = "UM";
4987
- CountryCodes2["Uruguay"] = "UY";
4988
- CountryCodes2["Uzbekistan"] = "UZ";
4989
- CountryCodes2["Vanuatu"] = "VU";
4990
- CountryCodes2["Venezuela"] = "VE";
4991
- CountryCodes2["Vietnam"] = "VN";
4992
- CountryCodes2["VirginIslandsBritish"] = "VG";
4993
- CountryCodes2["VirginIslandsUS"] = "VI";
4994
- CountryCodes2["WallisAndFutuna"] = "WF";
4995
- CountryCodes2["WesternSahara"] = "EH";
4996
- CountryCodes2["Yemen"] = "YE";
4997
- CountryCodes2["Zambia"] = "ZM";
4998
- CountryCodes2["Zimbabwe"] = "ZW";
4999
- return CountryCodes2;
5000
- })(CountryCodes || {});
5001
- const euCountries = [
5002
- "AT",
5003
- "BE",
5004
- "BG",
5005
- "HR",
5006
- "CY",
5007
- "CZ",
5008
- "DK",
5009
- "EE",
5010
- "FI",
5011
- "FR",
5012
- "DE",
5013
- "GR",
5014
- "HU",
5015
- "IE",
5016
- "IT",
5017
- "LV",
5018
- "LT",
5019
- "LU",
5020
- "MT",
5021
- "NL",
5022
- "PL",
5023
- "PT",
5024
- "RO",
5025
- "SK",
5026
- "SI",
5027
- "ES",
5028
- "SE"
5029
- /* Sweden */
5030
- ];
5031
5031
  const validateNotEmptyOnBlur = {
5032
5032
  modes: ["blur"],
5033
5033
  validate: (val) => !isEmpty$1(val),
@@ -5331,7 +5331,7 @@ function CompanyNameAndCountry(props) {
5331
5331
  ),
5332
5332
  mergedProps
5333
5333
  );
5334
- const schemaWithGoverningLaw = (sliceData == null ? void 0 : sliceData.country) === "GB" && (sliceData == null ? void 0 : sliceData.differentCountryOfGoverningLaw) ? countryWithGoverningLawFields : companyNameAndCountryFields;
5334
+ const schemaWithGoverningLaw = (sliceData == null ? void 0 : sliceData.country) === CountryCodes.UnitedKingdom ? countryWithGoverningLawFields : companyNameAndCountryFields;
5335
5335
  const {
5336
5336
  data: formData,
5337
5337
  valid: formValid,
@@ -5360,18 +5360,6 @@ function CompanyNameAndCountry(props) {
5360
5360
  fieldProblems: formFieldProblems
5361
5361
  });
5362
5362
  }, [formData, formErrors, formFieldProblems, formValid, updateStateSlice]);
5363
- const handleChangeForCountries = (key) => (e) => {
5364
- handleChangeFor(key)(e);
5365
- if (!formData.differentCountryOfGoverningLaw && e.target.value === "GB") {
5366
- const countryOfGoverningLawEvent = {
5367
- target: {
5368
- name: "countryOfGoverningLaw",
5369
- value: e.target.value
5370
- }
5371
- };
5372
- handleChangeFor("countryOfGoverningLaw")(countryOfGoverningLawEvent);
5373
- }
5374
- };
5375
5363
  return /* @__PURE__ */ jsxs("form", { children: [
5376
5364
  /* @__PURE__ */ jsx(FormHeader, { heading: props == null ? void 0 : props.heading }),
5377
5365
  /* @__PURE__ */ jsx(
@@ -5410,13 +5398,14 @@ function CompanyNameAndCountry(props) {
5410
5398
  readonly: formUtils.isReadOnly("country") || !isAllowedEditPrefilledCountry || Boolean(props == null ? void 0 : props.disableCountry),
5411
5399
  classNameModifiers: ["country"],
5412
5400
  allowedCountries: mergedProps.isTopLevelEntity ? allowedCountries : void 0,
5413
- handleChangeFor: handleChangeForCountries
5401
+ handleChangeFor
5414
5402
  }
5415
5403
  ),
5416
5404
  showCountryOfGoverningLaw && /* @__PURE__ */ jsx(
5417
5405
  CountryOfGoverningLawField,
5418
5406
  {
5419
5407
  data: formUtils.getFieldData(formData, COUNTRY_OF_GOVERNING_LAW_FIELD),
5408
+ country: sliceData == null ? void 0 : sliceData.country,
5420
5409
  valid: formUtils.getFieldValid(formValid, COUNTRY_OF_GOVERNING_LAW_FIELD),
5421
5410
  errors: formUtils.getFieldErrors(
5422
5411
  formErrors,
@@ -7713,7 +7702,7 @@ const deriveInputState = (isValid, isFocused, isDisabled, isOptional, hasNullish
7713
7702
  };
7714
7703
  };
7715
7704
  const MISMATCH_ANIMATION_NAME = "mismatchShake";
7716
- const logger$L = createLogger("MaskedInput");
7705
+ const logger$M = createLogger("MaskedInput");
7717
7706
  const Inner = ({
7718
7707
  name,
7719
7708
  label,
@@ -7863,7 +7852,7 @@ const MaskedInput = ({
7863
7852
  );
7864
7853
  useEffect(() => {
7865
7854
  if (!mask) {
7866
- logger$L.warn("`mask` is undefined. No masking of input will take place.");
7855
+ logger$M.warn("`mask` is undefined. No masking of input will take place.");
7867
7856
  }
7868
7857
  }, [mask]);
7869
7858
  const getMaskResult = useCallback(
@@ -7907,7 +7896,7 @@ const MaskedInput = ({
7907
7896
  return;
7908
7897
  }
7909
7898
  if (preserveMismatchingInitialValue) {
7910
- logger$L.warn(
7899
+ logger$M.warn(
7911
7900
  `Value received "${value}" does not match mask`,
7912
7901
  maskResult,
7913
7902
  `
@@ -7917,7 +7906,7 @@ Preserving mismatched initial value until user input.`
7917
7906
  return;
7918
7907
  }
7919
7908
  const fallback = displayValueToPure(maskResult.partialDisplayValue);
7920
- logger$L.warn(
7909
+ logger$M.warn(
7921
7910
  `Value received "${value}" does not match mask`,
7922
7911
  maskResult,
7923
7912
  `
@@ -8711,7 +8700,11 @@ const dateOfIncorporationFieldMetadata = {
8711
8700
  }
8712
8701
  ]
8713
8702
  };
8714
- const DBA_NAME_FIELD = ["hasDba", "dbaName"];
8703
+ const DBA_NAME_FIELD = [
8704
+ "hasDba",
8705
+ "dbaName",
8706
+ "doingBusinessAsAbsent"
8707
+ ];
8715
8708
  function DBANameField({
8716
8709
  data,
8717
8710
  valid,
@@ -8816,40 +8809,60 @@ function EInvoicingCodeField({
8816
8809
  shouldValidate,
8817
8810
  handleChangeFor
8818
8811
  }) {
8819
- return /* @__PURE__ */ jsx(
8820
- MaskedInput,
8821
- {
8822
- name: "eInvoicingCode",
8823
- type: "text",
8824
- label: labels2.eInvoicingCode ?? "",
8825
- formatGuidance: guidanceText == null ? void 0 : guidanceText.eInvoicingCode,
8826
- placeholder: placeholders == null ? void 0 : placeholders.eInvoicingCode,
8827
- ...mask,
8828
- classNameModifiers: { field: ["eInvoicingCode"], input: ["eInvoicingCode"] },
8829
- errorMessage: errors.eInvoicingCode,
8830
- isValid: valid.eInvoicingCode ?? false,
8831
- value: data.eInvoicingCode ?? "",
8832
- readonly,
8833
- shouldValidate,
8834
- onInput: handleChangeFor("eInvoicingCode", "input"),
8835
- onBlur: handleChangeFor("eInvoicingCode", "blur"),
8836
- "aria-required": true,
8837
- "aria-label": labels2.eInvoicingCode,
8838
- "aria-invalid": !valid.eInvoicingCode
8839
- }
8840
- );
8812
+ const { i18n } = useI18nContext();
8813
+ const [noInvoicingCode, setNoInvoicingCode] = useState(false);
8814
+ const handleNoInvoicingCode = () => {
8815
+ setNoInvoicingCode(!noInvoicingCode);
8816
+ handleChangeFor("eInvoicingCode")("0000000");
8817
+ };
8818
+ return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-field", children: [
8819
+ /* @__PURE__ */ jsx(
8820
+ MaskedInput,
8821
+ {
8822
+ name: "eInvoicingCode",
8823
+ type: "text",
8824
+ label: labels2.eInvoicingCode ?? "",
8825
+ formatGuidance: guidanceText == null ? void 0 : guidanceText.eInvoicingCode,
8826
+ placeholder: placeholders == null ? void 0 : placeholders.eInvoicingCode,
8827
+ classNameModifiers: { field: ["eInvoicingCode"], input: ["eInvoicingCode"] },
8828
+ errorMessage: errors.eInvoicingCode,
8829
+ isValid: valid.eInvoicingCode ?? false,
8830
+ value: data.eInvoicingCode ?? "",
8831
+ readonly: readonly || noInvoicingCode,
8832
+ shouldValidate,
8833
+ onInput: handleChangeFor("eInvoicingCode", "input"),
8834
+ onBlur: handleChangeFor("eInvoicingCode", "blur"),
8835
+ disabled: noInvoicingCode,
8836
+ "aria-required": true,
8837
+ "aria-label": labels2.eInvoicingCode,
8838
+ "aria-invalid": !valid.eInvoicingCode,
8839
+ ...mask
8840
+ }
8841
+ ),
8842
+ /* @__PURE__ */ jsx(Field, { name: "noEInvoicingCode", children: (childProps) => /* @__PURE__ */ jsx(
8843
+ Checkbox,
8844
+ {
8845
+ ...childProps,
8846
+ "aria-required": false,
8847
+ "aria-label": i18n.get("thisCompanyDoesntHaveAnSDI"),
8848
+ "aria-invalid": false,
8849
+ label: i18n.get("thisCompanyDoesntHaveAnSDI"),
8850
+ checked: noInvoicingCode,
8851
+ onChange: handleNoInvoicingCode
8852
+ }
8853
+ ) })
8854
+ ] });
8841
8855
  }
8842
8856
  const eInvoicingCodeFieldMetadata = {
8843
- validators: validatePatternOnBlur(/^[A-Z0-9]{10}$|^[A-Z0-9]{18}$/),
8857
+ validators: validatePatternOnBlur(/^[A-Z0-9]{7}$/),
8844
8858
  mask: {
8845
- mask: makeMask(...nonInputs("IT", { includeInValue: true }), spacer, ...alphanumericInputs(16)),
8859
+ mask: makeMask(...alphanumericInputs(16)),
8846
8860
  transformOnType: uppercase
8847
8861
  },
8848
8862
  guidanceText: {
8849
- key: "defaultCufeCodesInItalyAreEither",
8863
+ key: "the7CharacterIdentifierAssignedToThis",
8850
8864
  values: {
8851
- example: "IT20220999999ABCDE",
8852
- exampleTwo: "IT20220999"
8865
+ example: "MP10YNU"
8853
8866
  }
8854
8867
  }
8855
8868
  };
@@ -10099,33 +10112,20 @@ const getUpdatedCountryOfGoverningLaw = (nameAndCountry) => {
10099
10112
  return nameAndCountry;
10100
10113
  }
10101
10114
  const updatedNameAndCountry = cloneObject(nameAndCountry);
10102
- if (updatedNameAndCountry.country === "GB" && !updatedNameAndCountry.differentCountryOfGoverningLaw) {
10103
- updatedNameAndCountry.countryOfGoverningLaw = "GB";
10104
- } else if (updatedNameAndCountry.country !== "GB") {
10115
+ if (updatedNameAndCountry.country !== CountryCodes.UnitedKingdom) {
10105
10116
  delete updatedNameAndCountry.countryOfGoverningLaw;
10106
10117
  }
10107
10118
  return updatedNameAndCountry;
10108
10119
  };
10109
10120
  const transformCountryOfGoverningLawToLegalEntity = (nameAndCountry, organization) => {
10110
10121
  const updatedOrganization = cloneObject(organization);
10111
- if (nameAndCountry.country === "GB") {
10112
- if (!nameAndCountry.differentCountryOfGoverningLaw) {
10113
- updatedOrganization.countryOfGoverningLaw = CountryCodes.UnitedKingdom;
10114
- } else {
10115
- updatedOrganization.countryOfGoverningLaw = nameAndCountry.countryOfGoverningLaw;
10116
- }
10122
+ if (nameAndCountry.country === CountryCodes.UnitedKingdom) {
10123
+ updatedOrganization.countryOfGoverningLaw = nameAndCountry.countryOfGoverningLaw;
10117
10124
  } else {
10118
10125
  delete updatedOrganization.countryOfGoverningLaw;
10119
10126
  }
10120
10127
  return updatedOrganization;
10121
10128
  };
10122
- const transformCountryOfGoverningLawToSchema = (nameAndCountry, organization) => {
10123
- const updatedNameAndCountry = cloneObject(nameAndCountry);
10124
- if (organization.registeredAddress.country === CountryCodes.UnitedKingdom && organization.countryOfGoverningLaw !== CountryCodes.UnitedKingdom) {
10125
- updatedNameAndCountry.differentCountryOfGoverningLaw = true;
10126
- }
10127
- return updatedNameAndCountry;
10128
- };
10129
10129
  function TaxIdNumberTypeSelector({
10130
10130
  country,
10131
10131
  companyType,
@@ -10712,7 +10712,8 @@ function CompanyRegistrationDetails(props) {
10712
10712
  resolveFieldMetadata(
10713
10713
  defaultFieldConfig$6[country],
10714
10714
  {
10715
- taxIdNumberType
10715
+ taxIdNumberType,
10716
+ companyType: mergedProps.companyType
10716
10717
  },
10717
10718
  defaultFieldMetadata$7
10718
10719
  ),
@@ -11815,7 +11816,7 @@ function Dropzone(props) {
11815
11816
  isRequired && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-error-text", children: i18n.get("fieldIsRequired") })
11816
11817
  ] });
11817
11818
  }
11818
- const logger$K = createLogger("TextArea");
11819
+ const logger$L = createLogger("TextArea");
11819
11820
  function TextArea(props) {
11820
11821
  const { classNameModifiers, uniqueId, ...passedProps } = props;
11821
11822
  const {
@@ -11832,7 +11833,7 @@ function TextArea(props) {
11832
11833
  const { i18n } = useI18nContext();
11833
11834
  const [value, setValue] = useState("");
11834
11835
  if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
11835
- logger$K.error("Error: Form fields that rely on InputBase may not have an onChange property");
11836
+ logger$L.error("Error: Form fields that rely on InputBase may not have an onChange property");
11836
11837
  }
11837
11838
  const handleInput = (e) => {
11838
11839
  var _a;
@@ -12251,7 +12252,7 @@ const styles$a = {
12251
12252
  "financial-information-reported-value-options": "adyen-kyc-financial-information-reported-value-options",
12252
12253
  financialInformationReportedValueOptions
12253
12254
  };
12254
- const logger$J = createLogger("InputCurrency");
12255
+ const logger$K = createLogger("InputCurrency");
12255
12256
  const determineDecimalSeparator = (formatter) => formatter.formatToParts(0.1).find((part) => part.type === "decimal").value;
12256
12257
  const determineCurrencySymbol = (formatter) => formatter.formatToParts(0).find((part) => part.type === "currency").value;
12257
12258
  const getNumberFromFormattedCurrency = (formatted, decimalSeparator) => {
@@ -12282,7 +12283,7 @@ const InputCurrency = ({
12282
12283
  const rawValue = e.target.value;
12283
12284
  const value = getNumberFromFormattedCurrency(rawValue, decimalSeparator);
12284
12285
  if (Number.isNaN(value)) {
12285
- logger$J.warn(`Unable to get number from formatted currency: "${rawValue}"`);
12286
+ logger$K.warn(`Unable to get number from formatted currency: "${rawValue}"`);
12286
12287
  setText(isUndefinedOrNull(amount) ? currencySymbol : formatter.format(amount));
12287
12288
  return;
12288
12289
  }
@@ -12752,7 +12753,7 @@ function FieldContainer$1(props) {
12752
12753
  }
12753
12754
  return renderField(fieldName);
12754
12755
  }
12755
- const logger$I = createLogger("SearchAddress");
12756
+ const logger$J = createLogger("SearchAddress");
12756
12757
  const SearchAddress = ({
12757
12758
  data,
12758
12759
  legalEntityId,
@@ -12787,7 +12788,7 @@ const SearchAddress = ({
12787
12788
  const response = await handleFindAddress(selectedAddressId);
12788
12789
  autocompleteAddressForm(response);
12789
12790
  } catch (e) {
12790
- logger$I.error(e);
12791
+ logger$J.error(e);
12791
12792
  } finally {
12792
12793
  setFindLoading(false);
12793
12794
  }
@@ -12801,7 +12802,7 @@ const SearchAddress = ({
12801
12802
  );
12802
12803
  setItems((response == null ? void 0 : response.results) || []);
12803
12804
  } catch (e) {
12804
- logger$I.error(e);
12805
+ logger$J.error(e);
12805
12806
  } finally {
12806
12807
  setSearchLoading(false);
12807
12808
  }
@@ -12853,7 +12854,7 @@ const SearchAddress = ({
12853
12854
  setItems([]);
12854
12855
  }
12855
12856
  } catch (e) {
12856
- logger$I.error(e);
12857
+ logger$J.error(e);
12857
12858
  } finally {
12858
12859
  setSearchLoading(false);
12859
12860
  }
@@ -13497,7 +13498,7 @@ AddressForm.defaultProps = {
13497
13498
  requiredFields: ADDRESS_SCHEMA,
13498
13499
  countryCode: null
13499
13500
  };
13500
- const logger$H = createLogger("AddressFieldContainer");
13501
+ const logger$I = createLogger("AddressFieldContainer");
13501
13502
  const formatAddressItem = (item) => {
13502
13503
  if (item.description.includes("Addresses")) {
13503
13504
  const splittedDescription = item.description.split(" - ");
@@ -13640,7 +13641,7 @@ function FieldContainer({
13640
13641
  setItems([]);
13641
13642
  }
13642
13643
  } catch (e) {
13643
- logger$H.error(e);
13644
+ logger$I.error(e);
13644
13645
  } finally {
13645
13646
  setSearchLoading(false);
13646
13647
  }
@@ -13658,7 +13659,7 @@ function FieldContainer({
13658
13659
  );
13659
13660
  setItems((response == null ? void 0 : response.results) ?? []);
13660
13661
  } catch (e) {
13661
- logger$H.error(e);
13662
+ logger$I.error(e);
13662
13663
  } finally {
13663
13664
  setSearchLoading(false);
13664
13665
  }
@@ -13697,7 +13698,7 @@ function FieldContainer({
13697
13698
  });
13698
13699
  }
13699
13700
  } catch (e) {
13700
- logger$H.error(e);
13701
+ logger$I.error(e);
13701
13702
  } finally {
13702
13703
  setFindLoading(false);
13703
13704
  }
@@ -14912,6 +14913,7 @@ var TaskTypes = /* @__PURE__ */ ((TaskTypes2) => {
14912
14913
  TaskTypes2["CAPABILITY_REJECTED"] = "CAPABILITY_REJECTED";
14913
14914
  TaskTypes2["SINGPASS_SELECTION"] = "SINGPASS_SELECTION";
14914
14915
  TaskTypes2["LEGAL_REPRESENTATIVE_DETAILS"] = "LEGAL_REPRESENTATIVE_DETAILS";
14916
+ TaskTypes2["SOURCE_OF_FUNDS"] = "SOURCE_OF_FUNDS";
14915
14917
  return TaskTypes2;
14916
14918
  })(TaskTypes || {});
14917
14919
  var TaskStatus = /* @__PURE__ */ ((TaskStatus2) => {
@@ -15003,9 +15005,6 @@ const COUNTRIES_THAT_USES_UEN_OR_GST = [CountryCodes.Singapore];
15003
15005
  const COUNTRIES_USING_COMPANY_SEARCH = [
15004
15006
  CountryCodes.UnitedStates
15005
15007
  ];
15006
- [
15007
- CountryCodes.UnitedKingdom
15008
- ];
15009
15008
  const COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [
15010
15009
  CountryCodes.UnitedKingdom
15011
15010
  ];
@@ -15104,14 +15103,14 @@ const rules$3 = ({
15104
15103
  }
15105
15104
  },
15106
15105
  countryOfGoverningLawRequired: () => {
15107
- var _a, _b, _c;
15106
+ var _a, _b;
15108
15107
  if ("companyNameAndCountry" in data) {
15109
- if (((_a = data.companyNameAndCountry) == null ? void 0 : _a.country) === "GB" && ((_b = data.companyNameAndCountry) == null ? void 0 : _b.differentCountryOfGoverningLaw)) {
15108
+ if (((_a = data.companyNameAndCountry) == null ? void 0 : _a.country) === CountryCodes.UnitedKingdom) {
15110
15109
  return "REQUIRED";
15111
15110
  }
15112
15111
  }
15113
15112
  if ("basicInformation" in data) {
15114
- if (isExperimentEnabled("EnableCountryOfGoverningLawForUKCompanies") && ((_c = data.basicInformation) == null ? void 0 : _c.country) === "GB") {
15113
+ if (isExperimentEnabled("EnableCountryOfGoverningLawForUKCompanies") && ((_b = data.basicInformation) == null ? void 0 : _b.country) === CountryCodes.UnitedKingdom) {
15115
15114
  return "REQUIRED";
15116
15115
  }
15117
15116
  }
@@ -15197,7 +15196,7 @@ const rules$3 = ({
15197
15196
  }
15198
15197
  }
15199
15198
  });
15200
- const logger$G = createLogger("mapPayoutAccountSchemaToApiBankAccount");
15199
+ const logger$H = createLogger("mapPayoutAccountSchemaToApiBankAccount");
15201
15200
  const getAccountIdentificationFromPayoutAccountSchema = (payoutAccount, bankCountry) => {
15202
15201
  var _a;
15203
15202
  if ("iban" in payoutAccount && payoutAccount.iban)
@@ -15277,7 +15276,7 @@ const getAccountIdentificationFromPayoutAccountSchema = (payoutAccount, bankCoun
15277
15276
  routingNumber: payoutAccount.branchCode
15278
15277
  };
15279
15278
  default:
15280
- logger$G.log(`${bankCountry.toLowerCase()}Local is not a configured region`);
15279
+ logger$H.log(`${bankCountry.toLowerCase()}Local is not a configured region`);
15281
15280
  return {
15282
15281
  type: `${bankCountry.toLowerCase()}Local`,
15283
15282
  accountNumber: payoutAccount.bankAccountNumber
@@ -15810,10 +15809,6 @@ const mapLegalEntityToCompany = (legalEntity) => {
15810
15809
  }
15811
15810
  companyCompData.companyRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
15812
15811
  }
15813
- companyCompData.companyNameAndCountry = transformCountryOfGoverningLawToSchema(
15814
- companyCompData.companyNameAndCountry,
15815
- legalEntity.organization
15816
- );
15817
15812
  const sameNameAsLegalName = !(((_b = companyCompData.companyNameAndCountry) == null ? void 0 : _b.legalCompanyName) && ((_c = companyCompData.companyRegistrationDetails) == null ? void 0 : _c.tradingName) && companyCompData.companyNameAndCountry.legalCompanyName !== companyCompData.companyRegistrationDetails.tradingName);
15818
15813
  companyCompData.companyRegistrationDetails = {
15819
15814
  ...companyCompData.companyRegistrationDetails,
@@ -15962,10 +15957,6 @@ const mapLegalEntityToSoleProp = (legalEntity) => {
15962
15957
  }
15963
15958
  solePropCompData.solePropRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
15964
15959
  }
15965
- solePropCompData.solePropNameAndCountry = transformCountryOfGoverningLawToSchema(
15966
- solePropCompData.solePropNameAndCountry,
15967
- legalEntity.soleProprietorship
15968
- );
15969
15960
  solePropCompData.solePropRegistrationDetails = {
15970
15961
  ...solePropCompData.solePropRegistrationDetails,
15971
15962
  tradingName: ((_e = solePropCompData.solePropRegistrationDetails) == null ? void 0 : _e.tradingName) ? (_f = solePropCompData.solePropRegistrationDetails) == null ? void 0 : _f.tradingName : (_g = solePropCompData.solePropNameAndCountry) == null ? void 0 : _g.legalCompanyName,
@@ -16502,7 +16493,7 @@ const initOnfido = async ({
16502
16493
  language: getOnfidoLocaleConfig(i18n)
16503
16494
  });
16504
16495
  };
16505
- const logger$F = createLogger("IdVerification");
16496
+ const logger$G = createLogger("IdVerification");
16506
16497
  function IdVerification({
16507
16498
  userDetails,
16508
16499
  legalEntityId,
@@ -16530,7 +16521,7 @@ function IdVerification({
16530
16521
  onIdVerificationComplete,
16531
16522
  language: getOnfidoLocaleConfig(i18n)
16532
16523
  });
16533
- })().catch(logger$F.error);
16524
+ })().catch(logger$G.error);
16534
16525
  return async () => {
16535
16526
  if (onfidoSdk.current) await onfidoSdk.current.tearDown();
16536
16527
  };
@@ -16571,7 +16562,7 @@ function IdDocumentAlreadyUpload(props) {
16571
16562
  ] })
16572
16563
  ] });
16573
16564
  }
16574
- const logger$E = createLogger("IdDocumentInstantVerification");
16565
+ const logger$F = createLogger("IdDocumentInstantVerification");
16575
16566
  const idVerificationSchema = [
16576
16567
  "instantIdVerificationData",
16577
16568
  "idDocumentType"
@@ -16651,7 +16642,7 @@ function IdDocumentInstantVerification(props) {
16651
16642
  userDetails,
16652
16643
  legalEntityId,
16653
16644
  onIdVerificationComplete: handleIdVerificationComplete,
16654
- onIdVerificationError: logger$E.error
16645
+ onIdVerificationError: logger$F.error
16655
16646
  }
16656
16647
  ),
16657
16648
  /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-document-upload__manual-upload", children: [
@@ -17027,7 +17018,7 @@ const phoneFormatters = {
17027
17018
  };
17028
17019
  const phoneFields = ["phoneNumber"];
17029
17020
  const DEFAULT_PHONE_PREFIX = "+1";
17030
- const logger$D = createLogger("PhoneInput");
17021
+ const logger$E = createLogger("PhoneInput");
17031
17022
  const usePhonePrefixes = () => {
17032
17023
  const [phonePrefixes, setPhonePrefixes] = useState();
17033
17024
  useEffect(() => {
@@ -17035,7 +17026,7 @@ const usePhonePrefixes = () => {
17035
17026
  const loaded = (await import("./phonePrefixes-zV4hciyK.js")).default;
17036
17027
  setPhonePrefixes(loaded);
17037
17028
  };
17038
- loadPhonePrefixes().catch(logger$D.error);
17029
+ loadPhonePrefixes().catch(logger$E.error);
17039
17030
  }, []);
17040
17031
  return phonePrefixes;
17041
17032
  };
@@ -20934,7 +20925,6 @@ const ActionBar = ({
20934
20925
  homeButtonLabel,
20935
20926
  backButtonLabel,
20936
20927
  nextButtonLabel,
20937
- hideOnHomeButton,
20938
20928
  hideBackButton,
20939
20929
  hideNextButton,
20940
20930
  nextButtonDisabled = false
@@ -20956,19 +20946,17 @@ const ActionBar = ({
20956
20946
  label: nextButtonLabel,
20957
20947
  className: "adyen-action-bar__button",
20958
20948
  onClick: onNext,
20959
- testId: "nextBtn",
20960
20949
  disabled: nextButtonDisabled
20961
20950
  }
20962
20951
  )
20963
20952
  ] }),
20964
- onHome && homeButtonLabel && !hideOnHomeButton && /* @__PURE__ */ jsx("div", { className: "adyen-action-bar__action", children: /* @__PURE__ */ jsx(
20953
+ onHome && homeButtonLabel && /* @__PURE__ */ jsx("div", { className: "adyen-action-bar__action", children: /* @__PURE__ */ jsx(
20965
20954
  Button,
20966
20955
  {
20967
20956
  className: "adyen-action-bar__button",
20968
20957
  label: homeButtonLabel,
20969
20958
  secondary: true,
20970
- onClick: () => onHome(),
20971
- testId: "homeBtn"
20959
+ onClick: () => onHome()
20972
20960
  }
20973
20961
  ) })
20974
20962
  ] });
@@ -21018,7 +21006,7 @@ class AdyenKycSdkError extends Error {
21018
21006
  }
21019
21007
  let sdkToken;
21020
21008
  let fetchSdkToken;
21021
- const logger$C = createLogger("Session");
21009
+ const logger$D = createLogger("Session");
21022
21010
  const setSdkToken = (token) => {
21023
21011
  sdkToken = token;
21024
21012
  };
@@ -21043,7 +21031,7 @@ const refreshSession = async () => {
21043
21031
  setSdkToken(token);
21044
21032
  isSessionRefreshed = true;
21045
21033
  } catch (e) {
21046
- logger$C.error("Failed to fetch sdk token", e);
21034
+ logger$D.error("Failed to fetch sdk token", e);
21047
21035
  }
21048
21036
  return isSessionRefreshed;
21049
21037
  };
@@ -21053,7 +21041,7 @@ const addAnimationStartListener = (element, listener) => {
21053
21041
  const removeAnimationStartListener = (element, listener) => {
21054
21042
  element.removeEventListener("animationstart", listener, false);
21055
21043
  };
21056
- const logger$B = createLogger("Fetch");
21044
+ const logger$C = createLogger("Fetch");
21057
21045
  const getRequestObject = (options, data) => {
21058
21046
  const { headers = [], method = "GET", authentication } = options;
21059
21047
  let authHeaders;
@@ -21094,10 +21082,10 @@ const logFetchError = (message, level) => {
21094
21082
  case "info":
21095
21083
  case "warn":
21096
21084
  case "error":
21097
- logger$B[level](message);
21085
+ logger$C[level](message);
21098
21086
  break;
21099
21087
  default:
21100
- logger$B.error(message);
21088
+ logger$C.error(message);
21101
21089
  }
21102
21090
  };
21103
21091
  const handleFetchResponse = async (response, responseType) => {
@@ -21181,7 +21169,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
21181
21169
  const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
21182
21170
  const MOUNT_TIMEOUT = 10 * 1e3;
21183
21171
  const TINK_VENDOR = "Tink";
21184
- const logger$A = createLogger("iframeWidget");
21172
+ const logger$B = createLogger("iframeWidget");
21185
21173
  const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
21186
21174
  const isTerminalMessageData = (data) => isObjectData(data) && Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
21187
21175
  const parseMessageJson = (message) => {
@@ -21199,7 +21187,7 @@ const callbackErrorHandler = async (response) => {
21199
21187
  try {
21200
21188
  await response;
21201
21189
  } catch (ex) {
21202
- logger$A.error(ex);
21190
+ logger$B.error(ex);
21203
21191
  }
21204
21192
  return {
21205
21193
  error: "UNKNOWN_ERROR",
@@ -21295,7 +21283,7 @@ class IFrameWidget {
21295
21283
  message = responseData.errorMessage;
21296
21284
  }
21297
21285
  } catch (ex) {
21298
- logger$A.error(ex);
21286
+ logger$B.error(ex);
21299
21287
  }
21300
21288
  throw new AdyenKycSdkError(reason, jsonData.error);
21301
21289
  }
@@ -21607,9 +21595,8 @@ function BankVerification(props) {
21607
21595
  heading,
21608
21596
  setBankVerificationError,
21609
21597
  onBack,
21610
- hideDropinLayout,
21598
+ hideSidebar,
21611
21599
  setBankInfoValidated,
21612
- hideOnHomeButton,
21613
21600
  bankInfoValidated,
21614
21601
  formIsActive,
21615
21602
  createTrustedTransferInstrument: createTrustedTransferInstrument2,
@@ -21647,8 +21634,7 @@ function BankVerification(props) {
21647
21634
  (propData == null ? void 0 : propData.verifiedCurrencyCode) ?? ((_a = currencyByCountry[country]) == null ? void 0 : _a[0])
21648
21635
  );
21649
21636
  setBankInfoValidated == null ? void 0 : setBankInfoValidated(true);
21650
- hideDropinLayout == null ? void 0 : hideDropinLayout(false);
21651
- hideOnHomeButton == null ? void 0 : hideOnHomeButton(true);
21637
+ hideSidebar == null ? void 0 : hideSidebar(false);
21652
21638
  triggerValidation();
21653
21639
  await (refreshLegalEntity == null ? void 0 : refreshLegalEntity());
21654
21640
  };
@@ -21668,8 +21654,8 @@ function BankVerification(props) {
21668
21654
  });
21669
21655
  }, [data, valid, errors, isValid]);
21670
21656
  useEffect(() => {
21671
- hideDropinLayout == null ? void 0 : hideDropinLayout(formIsActive && !bankInfoValidated);
21672
- return () => hideDropinLayout == null ? void 0 : hideDropinLayout(false);
21657
+ hideSidebar == null ? void 0 : hideSidebar(formIsActive && !bankInfoValidated);
21658
+ return () => hideSidebar == null ? void 0 : hideSidebar(false);
21673
21659
  }, [bankInfoValidated, formIsActive]);
21674
21660
  return /* @__PURE__ */ jsxs(Fragment, { children: [
21675
21661
  /* @__PURE__ */ jsx(StateContextSetter, { owner: ACCOUNT_VERIFICATION, stateRef }),
@@ -23015,16 +23001,7 @@ function Card({
23015
23001
  }
23016
23002
  );
23017
23003
  }
23018
- const Modal = ({
23019
- header: header2,
23020
- children,
23021
- footer,
23022
- size = "medium",
23023
- /** Regulates header positioning, movable/scrollable or fixed */
23024
- movableHeader = false,
23025
- onBack,
23026
- onClose
23027
- }) => {
23004
+ const Modal = ({ children, size = "medium", onBack, onClose }) => {
23028
23005
  const dialogRef = useRef(null);
23029
23006
  useLayoutEffect(() => {
23030
23007
  const dialogElement = dialogRef.current;
@@ -23052,49 +23029,16 @@ const Modal = ({
23052
23029
  "adyen-kyc-modal--with-backButton": onBack
23053
23030
  }),
23054
23031
  onClose,
23055
- children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-modal__wrapper", children: [
23056
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-modal__main", children: [
23057
- /* @__PURE__ */ jsxs(
23058
- "section",
23059
- {
23060
- className: cx("adyen-kyc-modal-top-bar", {
23061
- "adyen-kyc-modal-top-bar--fixed": !movableHeader
23062
- }),
23063
- children: [
23064
- onBack ? /* @__PURE__ */ jsx(
23065
- Button,
23066
- {
23067
- tertiary: true,
23068
- "aria-label": "back",
23069
- icon: "arrow-left",
23070
- className: "adyen-kyc-modal-button",
23071
- onClick: onBack,
23072
- shaded: true
23073
- }
23074
- ) : /* @__PURE__ */ jsx("div", {}),
23075
- !movableHeader && header2 && /* @__PURE__ */ jsx("header", { className: "adyen-kyc-modal__header", children: header2 }),
23076
- onClose ? /* @__PURE__ */ jsx(
23077
- Button,
23078
- {
23079
- tertiary: true,
23080
- "aria-label": "close",
23081
- icon: "cross",
23082
- className: "adyen-kyc-modal-button",
23083
- onClick: onClose,
23084
- shaded: true
23085
- }
23086
- ) : /* @__PURE__ */ jsx("div", {})
23087
- ]
23088
- }
23089
- ),
23090
- movableHeader && header2 && /* @__PURE__ */ jsx("header", { className: "adyen-kyc-modal__header", children: header2 }),
23091
- /* @__PURE__ */ jsx("section", { className: "adyen-kyc-modal__content", children })
23092
- ] }),
23093
- /* @__PURE__ */ jsx("div", { children: footer && /* @__PURE__ */ jsx("footer", { className: "adyen-kyc-modal__footer", children: footer }) })
23094
- ] })
23032
+ children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-modal__wrapper", children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-modal__main", children: [
23033
+ /* @__PURE__ */ jsx("div", { className: "adyen-kyc-modal-button", children: /* @__PURE__ */ jsx(Button, { tertiary: true, "aria-label": "close", icon: "cross", onClick: onClose, shaded: true }) }),
23034
+ children
23035
+ ] }) })
23095
23036
  }
23096
23037
  );
23097
23038
  };
23039
+ const ModalHeader = ({ children }) => /* @__PURE__ */ jsx("header", { className: "adyen-kyc-modal__header", children });
23040
+ const ModalContent = ({ children }) => /* @__PURE__ */ jsx("section", { className: "adyen-kyc-modal__content", children });
23041
+ const ModalFooter = ({ children }) => /* @__PURE__ */ jsx("footer", { className: "adyen-kyc-modal__footer", children });
23098
23042
  const PreferInstantVerificationMethod = ({
23099
23043
  loadingStatus,
23100
23044
  provider,
@@ -23155,21 +23099,18 @@ const PreferInstantVerificationMethod = ({
23155
23099
  Button,
23156
23100
  {
23157
23101
  type: "button",
23158
- label: i18n.get("addAccountWith", {
23102
+ label: hideVerificationWidget ? i18n.get("addAccountWith", {
23159
23103
  values: { providerName: iconName ? "" : provider.name }
23160
- }),
23104
+ }) : void 0,
23161
23105
  className: styles$6.preferInstantVerificationMethodInstantButton,
23162
23106
  onClick: handleClickInstantButton,
23163
23107
  disabled: bankInfoValidated,
23108
+ loading: !hideVerificationWidget,
23164
23109
  icon: iconName,
23165
23110
  iconPosition: "right",
23166
23111
  block: true
23167
23112
  }
23168
23113
  ) : /* @__PURE__ */ jsx(Card, { background: "secondary", className: styles$6.preferInstantVerificationMethodCard, children: i18n.get("unfortunatelyAnInstantProvider") });
23169
- const footer = /* @__PURE__ */ jsxs("div", { className: styles$6.preferInstantVerificationMethodModalFooter, children: [
23170
- /* @__PURE__ */ jsx(Button, { label: i18n.get("yesContinue"), onClick: handleClickContinue, secondary: true }),
23171
- /* @__PURE__ */ jsx(Button, { onClick: () => setIsModalOpen(false), label: i18n.get("cancel") })
23172
- ] });
23173
23114
  return /* @__PURE__ */ jsxs("div", { className: styles$6.preferInstantVerificationMethod, children: [
23174
23115
  loadingStatus === "loading" ? /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-margin-bottom-8", children: /* @__PURE__ */ jsx(Skeleton, { height: "2.5rem" }) }) : InstantButton,
23175
23116
  /* @__PURE__ */ jsx(
@@ -23205,16 +23146,14 @@ const PreferInstantVerificationMethod = ({
23205
23146
  }
23206
23147
  ) : void 0
23207
23148
  ] }),
23208
- isModalOpen ? /* @__PURE__ */ jsx(
23209
- Modal,
23210
- {
23211
- header: i18n.get("manuallyAddAccountQuestion"),
23212
- footer,
23213
- size: "small",
23214
- onClose: () => setIsModalOpen(false),
23215
- children: i18n.get("addingAndVerifiyingABankAccount")
23216
- }
23217
- ) : void 0
23149
+ isModalOpen ? /* @__PURE__ */ jsxs(Modal, { size: "small", onClose: () => setIsModalOpen(false), children: [
23150
+ /* @__PURE__ */ jsx(ModalHeader, { children: i18n.get("manuallyAddAccountQuestion") }),
23151
+ /* @__PURE__ */ jsx(ModalContent, { children: i18n.get("addingAndVerifiyingABankAccount") }),
23152
+ /* @__PURE__ */ jsx(ModalFooter, { children: /* @__PURE__ */ jsxs("div", { className: styles$6.preferInstantVerificationMethodModalFooter, children: [
23153
+ /* @__PURE__ */ jsx(Button, { label: i18n.get("yesContinue"), onClick: handleClickContinue, secondary: true }),
23154
+ /* @__PURE__ */ jsx(Button, { onClick: () => setIsModalOpen(false), label: i18n.get("cancel") })
23155
+ ] }) })
23156
+ ] }) : void 0
23218
23157
  ] });
23219
23158
  };
23220
23159
  const PayoutVerificationMethodOptionIcon = ({
@@ -23560,11 +23499,8 @@ function PayoutDetails(props) {
23560
23499
  provider,
23561
23500
  bankVendorsLoadingStatus,
23562
23501
  instantVerificationAvailable,
23563
- setHideDropinLayout,
23564
- setHideOnHomeButton,
23502
+ setHideSidebar,
23565
23503
  setSkipSubmit,
23566
- setHideFooter,
23567
- setSubmitButtonLabel,
23568
23504
  createTrustedTransferInstrument: createTrustedTransferInstrument2,
23569
23505
  handleBankVerificationError: handleBankVerificationError2,
23570
23506
  accountDetailsFromInput,
@@ -23600,7 +23536,6 @@ function PayoutDetails(props) {
23600
23536
  useEffect(() => {
23601
23537
  if ((activeForm == null ? void 0 : activeForm.formId) === summaryStep.formId && verifyInstantly) {
23602
23538
  setSkipSubmit == null ? void 0 : setSkipSubmit(true);
23603
- setSubmitButtonLabel == null ? void 0 : setSubmitButtonLabel("continue");
23604
23539
  }
23605
23540
  }, [activeForm]);
23606
23541
  const [bankInfoValidated, setBankInfoValidated] = useState(false);
@@ -23655,8 +23590,7 @@ function PayoutDetails(props) {
23655
23590
  createTrustedTransferInstrument: createTrustedTransferInstrument2,
23656
23591
  handleBankVerificationError: handleBankVerificationError2,
23657
23592
  setBankVerificationError: setInstantVerificationError,
23658
- refreshLegalEntity,
23659
- setHideFooter
23593
+ refreshLegalEntity
23660
23594
  }
23661
23595
  ) })
23662
23596
  }
@@ -23674,9 +23608,8 @@ function PayoutDetails(props) {
23674
23608
  provider,
23675
23609
  country: bankCountry,
23676
23610
  onBack,
23677
- hideDropinLayout: setHideDropinLayout,
23611
+ hideSidebar: setHideSidebar,
23678
23612
  setBankVerificationError: setInstantVerificationError,
23679
- hideOnHomeButton: setHideOnHomeButton,
23680
23613
  bankInfoValidated,
23681
23614
  setBankInfoValidated,
23682
23615
  formIsActive: (activeForm == null ? void 0 : activeForm.formId) === PayoutAccountVerificationFormID,
@@ -25817,7 +25750,6 @@ const useFormComposer = ({
25817
25750
  baseTrackingPayload,
25818
25751
  forms,
25819
25752
  formRef,
25820
- submitButtonLabel,
25821
25753
  externalBackClick,
25822
25754
  onSubmit
25823
25755
  }) => {
@@ -25903,20 +25835,15 @@ const useFormComposer = ({
25903
25835
  trackNavigation({ fromForm, toForm, component: "ActionBar", baseTrackingPayload, i18n });
25904
25836
  }
25905
25837
  };
25906
- const nextButtonLabel = isFinalStep ? i18n.get(submitButtonLabel ?? "submit") : i18n.get("next");
25907
25838
  const backClickHandler = isFirstStep ? externalBackClick : handleBackClick;
25908
25839
  return {
25909
25840
  handleBackClick: backClickHandler,
25910
25841
  handleNextClick,
25911
- hideHomeButton: isFirstStep,
25912
- hideBackButton: isFinalStep,
25913
- nextButtonLabel,
25914
25842
  gotoFormByFormIndex,
25915
25843
  activeForm,
25916
25844
  shouldValidate,
25917
25845
  setShouldValidate,
25918
- currentStep,
25919
- totalSteps
25846
+ steps: { current: currentStep, total: totalSteps }
25920
25847
  };
25921
25848
  };
25922
25849
  const obscuredPayoutFields = ["bankAccountNumber", "iban"];
@@ -25977,7 +25904,7 @@ const useUnifyLoadingStatus = (setParentLoadingStatus, ...childLoadingStatuses)
25977
25904
  setParentLoadingStatus(loadingStatus);
25978
25905
  }, [...childLoadingStatuses]);
25979
25906
  };
25980
- const logger$z = createLogger("useScenarioConfiguration");
25907
+ const logger$A = createLogger("useScenarioConfiguration");
25981
25908
  const useScenarioConfiguration = ({
25982
25909
  getConfigurationData,
25983
25910
  getPayoutAccountFormatData,
@@ -26000,12 +25927,12 @@ const useScenarioConfiguration = ({
26000
25927
  const response = await getConfigurationData();
26001
25928
  setConfigurationResponse(response);
26002
25929
  } catch (err) {
26003
- logger$z.warn("WARNING: Configuration request failed - error:", err);
25930
+ logger$A.warn("WARNING: Configuration request failed - error:", err);
26004
25931
  } finally {
26005
25932
  setConfigurationLoadingStatus("success");
26006
25933
  }
26007
25934
  };
26008
- makeConfigCallAndSave().catch(logger$z.error);
25935
+ makeConfigCallAndSave().catch(logger$A.error);
26009
25936
  }, [getConfigurationData, setConfigurationLoadingStatus]);
26010
25937
  useEffect(() => {
26011
25938
  if (!getPayoutAccountFormatData) return;
@@ -26024,12 +25951,12 @@ const useScenarioConfiguration = ({
26024
25951
  const defaultAccountFormat = defaultPayoutAccountFormat[country] ?? allowedBankAccountFormats[0];
26025
25952
  setAccountFormat(existingBankAccountFormat ?? defaultAccountFormat);
26026
25953
  } catch (err) {
26027
- logger$z.warn("WARNING: Payout format request failed - error:", err);
25954
+ logger$A.warn("WARNING: Payout format request failed - error:", err);
26028
25955
  } finally {
26029
25956
  setpayoutFormatLoadingStatus("success");
26030
25957
  }
26031
25958
  };
26032
- makePayoutFormatCallAndSave().catch(logger$z.error);
25959
+ makePayoutFormatCallAndSave().catch(logger$A.error);
26033
25960
  }, [
26034
25961
  country,
26035
25962
  setAccountFormat,
@@ -27054,7 +26981,8 @@ function AdditionalInformation({
27054
26981
  handleChangeFor,
27055
26982
  resetToDefaultData,
27056
26983
  setErrors,
27057
- setValid
26984
+ setValid,
26985
+ setData
27058
26986
  } = useForm({
27059
26987
  schema: getFormSchema2,
27060
26988
  defaultData: mergedDefaultData,
@@ -27291,7 +27219,8 @@ function AdditionalInformation({
27291
27219
  mask: formUtils.getMask("eInvoicingCode"),
27292
27220
  guidanceText: formUtils.getFieldGuidanceText(EINVOICING_CODE_FIELD),
27293
27221
  readonly: formUtils.isReadOnly("eInvoicingCode"),
27294
- handleChangeFor
27222
+ handleChangeFor,
27223
+ setData
27295
27224
  }
27296
27225
  ) }),
27297
27226
  showField(DATE_OF_INCORPORATION_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
@@ -27608,7 +27537,7 @@ function BusinessInformationCard({
27608
27537
  }
27609
27538
  );
27610
27539
  }
27611
- const logger$y = createLogger("BusinessSelection");
27540
+ const logger$z = createLogger("BusinessSelection");
27612
27541
  function BusinessSelection({
27613
27542
  showCompanyStructure,
27614
27543
  searching,
@@ -27660,7 +27589,7 @@ function BusinessSelection({
27660
27589
  setCurrentBusinessSelection(businessData);
27661
27590
  }
27662
27591
  } catch (e) {
27663
- logger$y.error(e);
27592
+ logger$z.error(e);
27664
27593
  }
27665
27594
  },
27666
27595
  [basicInformation == null ? void 0 : basicInformation.stateOrProvince, fetchBusinessData, fetching, selectedBusinessId]
@@ -27674,7 +27603,7 @@ function BusinessSelection({
27674
27603
  handleNextClick == null ? void 0 : handleNextClick();
27675
27604
  }
27676
27605
  } catch (e) {
27677
- logger$y.error(e);
27606
+ logger$z.error(e);
27678
27607
  }
27679
27608
  },
27680
27609
  [currentTin, handleNextClick, handleBusinessVerification]
@@ -27882,7 +27811,7 @@ function BasicInformation({
27882
27811
  const getFormSchema2 = useCallback(
27883
27812
  (currentData) => {
27884
27813
  const fieldsToRemove = [];
27885
- if (!currentData.differentCountryOfGoverningLaw) {
27814
+ if (currentData.country !== CountryCodes.UnitedKingdom) {
27886
27815
  fieldsToRemove.push("countryOfGoverningLaw");
27887
27816
  }
27888
27817
  return (requiredFields == null ? void 0 : requiredFields.filter((field) => !fieldsToRemove.includes(field))) ?? ["country"];
@@ -27961,7 +27890,8 @@ function BasicInformation({
27961
27890
  resolveFieldMetadata(
27962
27891
  defaultFieldConfig$6[country],
27963
27892
  {
27964
- taxIdNumberType
27893
+ taxIdNumberType,
27894
+ companyType
27965
27895
  },
27966
27896
  defaultFieldMetadata$7
27967
27897
  ),
@@ -28103,6 +28033,7 @@ function BasicInformation({
28103
28033
  CountryOfGoverningLawField,
28104
28034
  {
28105
28035
  data: formUtils.getFieldData(formData, COUNTRY_OF_GOVERNING_LAW_FIELD),
28036
+ country: sliceData == null ? void 0 : sliceData.country,
28106
28037
  valid: formUtils.getFieldValid(formValid, COUNTRY_OF_GOVERNING_LAW_FIELD),
28107
28038
  errors: formUtils.getFieldErrors(
28108
28039
  formErrors,
@@ -28443,14 +28374,24 @@ const mapBasicInformation = (data) => {
28443
28374
  return acc;
28444
28375
  }, {});
28445
28376
  };
28377
+ const mapDbaName = (legalEntity) => {
28378
+ var _a, _b;
28379
+ const dbaName = {};
28380
+ if ((_a = legalEntity.organization) == null ? void 0 : _a.doingBusinessAsAbsent) {
28381
+ dbaName.hasDba = false;
28382
+ } else if ((_b = legalEntity.organization) == null ? void 0 : _b.doingBusinessAs) {
28383
+ dbaName.hasDba = legalEntity.organization.doingBusinessAs !== legalEntity.organization.legalName;
28384
+ }
28385
+ return dbaName;
28386
+ };
28446
28387
  const mapAdditionalInformation = (data, legalEntity) => {
28447
- var _a, _b, _c, _d, _e, _f, _g;
28388
+ var _a, _b, _c, _d;
28448
28389
  if (!data) return;
28449
- const dbaName = ((_a = legalEntity.organization) == null ? void 0 : _a.doingBusinessAs) ? ((_b = legalEntity.organization) == null ? void 0 : _b.doingBusinessAs) !== ((_c = legalEntity.organization) == null ? void 0 : _c.legalName) ? { hasDba: true } : { hasDba: false } : {};
28450
- const currentCountry = (_d = legalEntity.organization) == null ? void 0 : _d.registeredAddress.country;
28451
- const operationalAddressIsSame = ((_e = legalEntity.organization) == null ? void 0 : _e.principalPlaceOfBusiness) && !objectsDeepEqual(
28452
- (_f = legalEntity.organization) == null ? void 0 : _f.principalPlaceOfBusiness,
28453
- (_g = legalEntity.organization) == null ? void 0 : _g.registeredAddress
28390
+ const dbaName = mapDbaName(legalEntity);
28391
+ const currentCountry = (_a = legalEntity.organization) == null ? void 0 : _a.registeredAddress.country;
28392
+ const operationalAddressIsSame = ((_b = legalEntity.organization) == null ? void 0 : _b.principalPlaceOfBusiness) && !objectsDeepEqual(
28393
+ (_c = legalEntity.organization) == null ? void 0 : _c.principalPlaceOfBusiness,
28394
+ (_d = legalEntity.organization) == null ? void 0 : _d.registeredAddress
28454
28395
  ) ? operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME : operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
28455
28396
  return entriesOf(data).reduce(
28456
28397
  (acc, [field]) => {
@@ -29181,25 +29122,22 @@ const ExpiryModal = ({ secondsUntilExpiry, onContinue }) => {
29181
29122
  const { i18n } = useI18nContext();
29182
29123
  const { minutes, leftoverSeconds } = getDurationInMinutesAndSeconds(secondsUntilExpiry);
29183
29124
  const hasExpired = secondsUntilExpiry <= 0;
29184
- return /* @__PURE__ */ jsx(
29185
- Modal,
29186
- {
29187
- size: "small",
29188
- onClose: onContinue,
29189
- header: /* @__PURE__ */ jsx(Typography, { variant: "title", children: i18n.get("sessionTimeout") }),
29190
- footer: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-expiry-modal__footer", children: /* @__PURE__ */ jsx(
29191
- Button,
29192
- {
29193
- label: hasExpired ? i18n.get("close") : i18n.get("continue"),
29194
- onClick: () => onContinue()
29195
- }
29196
- ) }),
29197
- children: /* @__PURE__ */ jsx(Typography, { variant: "body", children: hasExpired ? i18n.get("toProtectYourInformationThisSessionHasExpired") : i18n.get({
29198
- key: "thisSessionWillExpireIn",
29199
- values: { timeUntilExpiry: formatMinutesAndSeconds(minutes, leftoverSeconds, i18n) }
29200
- }) })
29201
- }
29202
- );
29125
+ return /* @__PURE__ */ jsxs(Modal, { size: "small", onClose: onContinue, children: [
29126
+ /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsx(Typography, { variant: "title", children: i18n.get("sessionTimeout") }) }),
29127
+ /* @__PURE__ */ jsx(ModalContent, { children: /* @__PURE__ */ jsx(Typography, { variant: "body", children: hasExpired ? i18n.get("toProtectYourInformationThisSessionHasExpired") : i18n.get({
29128
+ key: "thisSessionWillExpireIn",
29129
+ values: {
29130
+ timeUntilExpiry: formatMinutesAndSeconds(minutes, leftoverSeconds, i18n)
29131
+ }
29132
+ }) }) }),
29133
+ /* @__PURE__ */ jsx(ModalFooter, { children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-expiry-modal__footer", children: /* @__PURE__ */ jsx(
29134
+ Button,
29135
+ {
29136
+ label: hasExpired ? i18n.get("close") : i18n.get("continue"),
29137
+ onClick: () => onContinue()
29138
+ }
29139
+ ) }) })
29140
+ ] });
29203
29141
  };
29204
29142
  const ALMOST_EXPIRED_THRESHOLD = 2 * 60 * 1e3;
29205
29143
  const checkIfAlmostExpired = (expiry) => {
@@ -29247,7 +29185,7 @@ const useExpiryThreshold = (expiry) => {
29247
29185
  return { expiryStatus: "notYetCloseToExpiry", secondsUntilExpiry: void 0 };
29248
29186
  };
29249
29187
  const ExpiryContext = createContext(false);
29250
- const logger$x = createLogger("ExpiryProvider");
29188
+ const logger$y = createLogger("ExpiryProvider");
29251
29189
  const ExpiryProvider = ({
29252
29190
  expiry: initialExpiry,
29253
29191
  eventEmitter,
@@ -29276,7 +29214,7 @@ const ExpiryProvider = ({
29276
29214
  refreshExpiry().then((newExpiry) => {
29277
29215
  setExpiry(newExpiry);
29278
29216
  setModalDismissed(false);
29279
- }).catch(logger$x.error);
29217
+ }).catch(logger$y.error);
29280
29218
  }
29281
29219
  }
29282
29220
  ),
@@ -29298,7 +29236,7 @@ const ExpiryProvider = ({
29298
29236
  return /* @__PURE__ */ jsx(ExpiryContext.Provider, { value: expiryStatus === "expired", children });
29299
29237
  };
29300
29238
  const useHasExpired = () => useContext(ExpiryContext);
29301
- const logger$w = createLogger("FormRouterContextProvider");
29239
+ const logger$x = createLogger("FormRouterContextProvider");
29302
29240
  function FormRouterContextProvider({
29303
29241
  children,
29304
29242
  forms,
@@ -29321,7 +29259,7 @@ function FormRouterContextProvider({
29321
29259
  if (formIndex > -1) {
29322
29260
  setFormIndex(formIndex);
29323
29261
  } else {
29324
- logger$w.error("No form was found to have that field so form navigation failed.");
29262
+ logger$x.error("No form was found to have that field so form navigation failed.");
29325
29263
  }
29326
29264
  }
29327
29265
  }),
@@ -29329,6 +29267,9 @@ function FormRouterContextProvider({
29329
29267
  );
29330
29268
  return /* @__PURE__ */ jsx(FormRouterContext.Provider, { value: contextValue, children });
29331
29269
  }
29270
+ const MaybeModal = ({ children, inline = false, onClose, onBack }) => {
29271
+ return inline ? /* @__PURE__ */ jsx("div", { children }) : /* @__PURE__ */ jsx(Modal, { onClose, onBack, children });
29272
+ };
29332
29273
  const range = (stop, start = 0, step = 1) => Array.from({ length: (stop - start) / step + 1 }, (_, i) => start + i * step);
29333
29274
  const shouldHighlight = (active, current, fillBefore) => !fillBefore ? active === current : active >= current;
29334
29275
  const StepProgressIndicator = ({
@@ -29376,46 +29317,6 @@ const StepProgressIndicator = ({
29376
29317
  }
29377
29318
  );
29378
29319
  };
29379
- const DropinLayout = ({
29380
- content,
29381
- footer,
29382
- showAsModal,
29383
- onBack,
29384
- onClose,
29385
- open = true
29386
- }) => {
29387
- const [modalOpen, setModalOpen] = useState(true);
29388
- const handleClose = () => {
29389
- setModalOpen(false);
29390
- onClose == null ? void 0 : onClose();
29391
- };
29392
- if (!open) {
29393
- handleClose();
29394
- }
29395
- if (!showAsModal) {
29396
- return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropin", children: [
29397
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__content", children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__content-main", children: content }) }),
29398
- footer && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__footer-container", children: footer })
29399
- ] });
29400
- }
29401
- if (modalOpen) {
29402
- return /* @__PURE__ */ jsx(
29403
- Modal,
29404
- {
29405
- footer,
29406
- onClose: !onBack ? handleClose : void 0,
29407
- onBack,
29408
- movableHeader: true,
29409
- children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-modal-content adyen-kyc-externalComponent", children: content })
29410
- }
29411
- );
29412
- }
29413
- return null;
29414
- };
29415
- const EmbeddedActionBar = ({ left, right }) => /* @__PURE__ */ jsxs("footer", { className: "adyen-kyc-embedded-action-bar", children: [
29416
- /* @__PURE__ */ jsx("section", { children: left }),
29417
- /* @__PURE__ */ jsx("section", { className: "adyen-kyc-embedded-action-bar-right", children: right })
29418
- ] });
29419
29320
  const FormNavigationItem = ({
29420
29321
  form,
29421
29322
  isActive,
@@ -29491,16 +29392,14 @@ function FormNavigation({
29491
29392
  ] });
29492
29393
  }
29493
29394
  const FormWrapper = ({
29395
+ asModal = false,
29494
29396
  summary: summary2,
29495
29397
  taskName: taskName2,
29496
29398
  children,
29497
29399
  handleNextClick,
29498
29400
  handleBackClick,
29499
- handleHomeClick,
29500
29401
  handleCloseClick,
29501
- nextButtonLabel,
29502
- backButtonLabel,
29503
- homeButtonLabel,
29402
+ handleHomeClick,
29504
29403
  loadingStatus,
29505
29404
  gotoFormByFormIndex,
29506
29405
  forms,
@@ -29508,32 +29407,20 @@ const FormWrapper = ({
29508
29407
  handleGetIdVerificationToken,
29509
29408
  validateForm,
29510
29409
  baseTrackingPayload,
29511
- hideDropinLayout,
29410
+ hideSidebar,
29512
29411
  hideFooter,
29513
- hideHomeButton,
29514
- hideBackButton,
29515
- hideNextButton,
29516
- hideNavigation,
29517
- asModal,
29518
29412
  canSubmit: canSubmit2,
29519
29413
  onSubmit,
29520
29414
  problems,
29521
- currentStep,
29522
- totalSteps
29415
+ steps,
29416
+ showBackButton,
29417
+ hideNextButton
29523
29418
  }) => {
29524
29419
  var _a;
29525
29420
  const { i18n } = useI18nContext();
29526
29421
  const hasExpired = useHasExpired();
29527
29422
  const { data: summaryData, omitted, labels: labels2 } = summary2 || {};
29528
- const [isOpen, setIsOpen] = useState(true);
29529
29423
  const [finishLaterLoading, setFinishLaterLoading] = useState(false);
29530
- const onHomeClick = () => {
29531
- if (canSubmit2) {
29532
- onSubmit();
29533
- } else {
29534
- handleHomeClick == null ? void 0 : handleHomeClick();
29535
- }
29536
- };
29537
29424
  const showLegalCaption = ["solePropDetails", "companyDetails", "businessDetails"].includes(
29538
29425
  taskName2
29539
29426
  );
@@ -29556,109 +29443,78 @@ const FormWrapper = ({
29556
29443
  showTaxExemptedLegalCaption
29557
29444
  }
29558
29445
  ) });
29559
- const handleFinishLater = () => {
29446
+ const onHomeClick = () => {
29560
29447
  setFinishLaterLoading(true);
29561
- onSubmit().then(() => {
29562
- setIsOpen(false);
29563
- }).catch(() => {
29564
- }).finally(() => setFinishLaterLoading(false));
29565
- };
29566
- const formFooter = !hideDropinLayout && !hideFooter && /* @__PURE__ */ jsx(
29567
- ActionBar,
29568
- {
29569
- onNext: handleNextClick,
29570
- onBack: handleBackClick,
29571
- onHome: onHomeClick,
29572
- backButtonLabel: backButtonLabel ?? i18n.get("back"),
29573
- nextButtonLabel,
29574
- homeButtonLabel,
29575
- hideOnHomeButton: hideHomeButton,
29576
- hideBackButton,
29577
- hideNextButton,
29578
- nextButtonDisabled: loadingStatus === "loading"
29448
+ if (canSubmit2) {
29449
+ onSubmit().then(() => {
29450
+ setFinishLaterLoading(false);
29451
+ });
29452
+ } else {
29453
+ handleHomeClick == null ? void 0 : handleHomeClick();
29454
+ setFinishLaterLoading(false);
29579
29455
  }
29580
- );
29581
- const embeddedFooter = !hideFooter && /* @__PURE__ */ jsx(
29582
- EmbeddedActionBar,
29583
- {
29584
- left: /* @__PURE__ */ jsx(
29456
+ };
29457
+ const isFirstStep = steps.current === 0;
29458
+ const isFinalStep = steps.current === steps.total - 1;
29459
+ return /* @__PURE__ */ jsxs(MaybeModal, { inline: !asModal, onClose: handleCloseClick, onBack: handleBackClick, children: [
29460
+ /* @__PURE__ */ jsxs(ModalContent, { children: [
29461
+ /* @__PURE__ */ jsx(ModalHeader, {}),
29462
+ /* @__PURE__ */ jsxs(LoaderWrapper, { status: loadingStatus, formOpacityWhenLoading: 0.3, loaderSize: "large", children: [
29463
+ hasExpired && /* @__PURE__ */ jsx(ExpiredBanner, {}),
29464
+ /* @__PURE__ */ jsxs("div", { className: !hideSidebar ? "adyen-kyc-form-with-sidebar" : "", children: [
29465
+ !asModal && !hideSidebar && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__sidebar-wrapper", children: /* @__PURE__ */ jsx(
29466
+ FormNavigation,
29467
+ {
29468
+ forms,
29469
+ activeForm,
29470
+ gotoForm: gotoFormByFormIndex,
29471
+ validateForm,
29472
+ taskName: taskName2,
29473
+ trackNavigation: ({ fromForm, toForm, component }) => trackNavigation({ fromForm, toForm, component, baseTrackingPayload, i18n }),
29474
+ verificationErrors: problems == null ? void 0 : problems.verificationErrors
29475
+ }
29476
+ ) }),
29477
+ /* @__PURE__ */ jsxs(
29478
+ FormRouterContextProvider,
29479
+ {
29480
+ setFormIndex: gotoFormByFormIndex,
29481
+ forms,
29482
+ handleGetIdVerificationToken,
29483
+ children: [
29484
+ children,
29485
+ activeForm.formId === summaryStep.formId && summaryContent
29486
+ ]
29487
+ }
29488
+ )
29489
+ ] })
29490
+ ] })
29491
+ ] }),
29492
+ !hideFooter && /* @__PURE__ */ jsxs(ModalFooter, { children: [
29493
+ /* @__PURE__ */ jsx("div", { style: { width: "30%" }, children: /* @__PURE__ */ jsx(
29585
29494
  StepProgressIndicator,
29586
29495
  {
29587
- activeStepIndex: currentStep ?? 0,
29588
- stepsCount: totalSteps ?? 3,
29496
+ activeStepIndex: steps.current ?? 0,
29497
+ stepsCount: steps.total,
29589
29498
  fillBefore: true,
29590
29499
  thick: true
29591
29500
  }
29592
- ),
29593
- right: /* @__PURE__ */ jsxs(Fragment, { children: [
29594
- !hideBackButton && /* @__PURE__ */ jsxs(Fragment, { children: [
29595
- !asModal && handleBackClick && /* @__PURE__ */ jsx(Button, { label: i18n.get("back"), onClick: handleBackClick, secondary: true }),
29596
- /* @__PURE__ */ jsx(
29597
- Button,
29598
- {
29599
- label: "Finish Later",
29600
- secondary: true,
29601
- icon: "save",
29602
- onClick: handleFinishLater,
29603
- loading: finishLaterLoading
29604
- }
29605
- )
29606
- ] }),
29607
- !hideNextButton && /* @__PURE__ */ jsx(Button, { label: nextButtonLabel, onClick: handleNextClick })
29608
- ] })
29609
- }
29610
- );
29611
- const multiStepForm = /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-container", children: [
29612
- hasExpired && /* @__PURE__ */ jsx(ExpiredBanner, {}),
29613
- /* @__PURE__ */ jsx(LoaderWrapper, { status: loadingStatus, formOpacityWhenLoading: 0.3, loaderSize: "large", children: /* @__PURE__ */ jsxs(
29614
- FormRouterContextProvider,
29615
- {
29616
- setFormIndex: gotoFormByFormIndex,
29617
- forms,
29618
- handleGetIdVerificationToken,
29619
- children: [
29620
- children,
29621
- activeForm.formId === summaryStep.formId && summaryContent
29622
- ]
29623
- }
29624
- ) })
29625
- ] });
29626
- const sidebar = !hideDropinLayout && !hideNavigation && /* @__PURE__ */ jsx(
29627
- LoaderWrapper,
29628
- {
29629
- status: loadingStatus,
29630
- formOpacityWhenLoading: 0.3,
29631
- showSpinner: false,
29632
- className: "adyen-kyc-dropin__sidebar-wrapper",
29633
- children: /* @__PURE__ */ jsx(
29634
- FormNavigation,
29501
+ ) }),
29502
+ /* @__PURE__ */ jsx("div", { style: { flex: "1" } }),
29503
+ (!isFirstStep || showBackButton) && handleBackClick && /* @__PURE__ */ jsx(Button, { secondary: true, label: i18n.get("back"), onClick: handleBackClick }),
29504
+ !isFirstStep && !isFinalStep && /* @__PURE__ */ jsx(
29505
+ Button,
29635
29506
  {
29636
- forms,
29637
- activeForm,
29638
- gotoForm: gotoFormByFormIndex,
29639
- validateForm,
29640
- taskName: taskName2,
29641
- trackNavigation: ({ fromForm, toForm, component }) => trackNavigation({ fromForm, toForm, component, baseTrackingPayload, i18n }),
29642
- verificationErrors: problems == null ? void 0 : problems.verificationErrors
29507
+ label: i18n.get("finishLater"),
29508
+ secondary: true,
29509
+ icon: "save",
29510
+ onClick: onHomeClick,
29511
+ loading: finishLaterLoading
29643
29512
  }
29644
- )
29645
- }
29646
- );
29647
- const footer = hideNavigation ? embeddedFooter : formFooter;
29648
- return /* @__PURE__ */ jsx(
29649
- DropinLayout,
29650
- {
29651
- showAsModal: asModal,
29652
- open: isOpen,
29653
- onBack: !hideBackButton ? handleBackClick : void 0,
29654
- onClose: handleCloseClick,
29655
- content: /* @__PURE__ */ jsxs(Fragment, { children: [
29656
- sidebar,
29657
- multiStepForm
29658
- ] }),
29659
- footer: footer || void 0
29660
- }
29661
- );
29513
+ ),
29514
+ !isFinalStep && !hideNextButton && /* @__PURE__ */ jsx(Button, { label: i18n.get("next"), onClick: handleNextClick }),
29515
+ isFinalStep && /* @__PURE__ */ jsx(Button, { label: i18n.get("submit"), onClick: handleNextClick })
29516
+ ] })
29517
+ ] });
29662
29518
  };
29663
29519
  var BusinessDetailsEvents = /* @__PURE__ */ ((BusinessDetailsEvents2) => {
29664
29520
  BusinessDetailsEvents2["TASK_START"] = "BusinessDetails_TaskStarted";
@@ -30113,11 +29969,11 @@ async function submit({
30113
29969
  }
30114
29970
  }
30115
29971
  const getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
30116
- if (!isCountryOfGoverningLawEnabled || (basicData == null ? void 0 : basicData.country) !== "GB") {
29972
+ if (!isCountryOfGoverningLawEnabled || (basicData == null ? void 0 : basicData.country) !== CountryCodes.UnitedKingdom) {
30117
29973
  return void 0;
30118
29974
  }
30119
- if (isCountryOfGoverningLawEnabled && (basicData == null ? void 0 : basicData.country) == "GB" && !(basicData == null ? void 0 : basicData.differentCountryOfGoverningLaw)) {
30120
- return "GB";
29975
+ if (isCountryOfGoverningLawEnabled && (basicData == null ? void 0 : basicData.country) === CountryCodes.UnitedKingdom && !(basicData == null ? void 0 : basicData.countryOfGoverningLaw)) {
29976
+ return CountryCodes.UnitedKingdom;
30121
29977
  }
30122
29978
  return basicData == null ? void 0 : basicData.countryOfGoverningLaw;
30123
29979
  };
@@ -30130,8 +29986,7 @@ function BusinessDetailsDropin({
30130
29986
  trackingConfig,
30131
29987
  capabilities,
30132
29988
  taskName: taskName2,
30133
- hideDropinLayout,
30134
- homeButtonLabel,
29989
+ hideSidebar,
30135
29990
  taskType = TaskTypes.BUSINESS_DETAILS,
30136
29991
  onChange,
30137
29992
  onSubmit: onExternalSubmit,
@@ -30314,7 +30169,7 @@ function BusinessDetailsDropin({
30314
30169
  keys: ["operationalAddressIsSame"]
30315
30170
  }
30316
30171
  }),
30317
- [currentState.data, derivedProps == null ? void 0 : derivedProps.labels, forms, i18n]
30172
+ [currentState.data, derivedProps == null ? void 0 : derivedProps.labels, forms, i18n, isExperimentEnabled]
30318
30173
  );
30319
30174
  const submitTask = useCallback(() => {
30320
30175
  setAccountHolder(accountHolder);
@@ -30349,18 +30204,17 @@ function BusinessDetailsDropin({
30349
30204
  showToast,
30350
30205
  clearToasts,
30351
30206
  handleUpdateLegalEntity,
30352
- onExternalSubmit
30207
+ onExternalSubmit,
30208
+ isExperimentEnabled
30353
30209
  ]);
30354
30210
  const {
30355
30211
  handleNextClick,
30356
30212
  handleBackClick,
30357
- hideHomeButton,
30358
- hideBackButton,
30359
30213
  activeForm,
30360
30214
  shouldValidate,
30361
30215
  setShouldValidate,
30362
30216
  gotoFormByFormIndex,
30363
- nextButtonLabel
30217
+ steps
30364
30218
  } = useFormComposer({
30365
30219
  problems: currentProblems,
30366
30220
  baseTrackingPayload,
@@ -30439,35 +30293,22 @@ function BusinessDetailsDropin({
30439
30293
  () => showBusinessSelection && activeForm.formId === "basicInformation",
30440
30294
  [activeForm.formId, showBusinessSelection]
30441
30295
  );
30442
- const hideBack = useMemo(() => {
30443
- if (!COUNTRIES_USING_COMPANY_SEARCH.includes(currentCountry)) return hideBackButton;
30444
- if (isBusinessSelection) {
30445
- return searching === "loading" || fetching === "loading" || verifying === "loading" || resettingTrustedData === "loading" ? hideBackButton : false;
30296
+ const hideFooter = isBusinessSelection === true && (searching === "loading" || fetching === "loading" || verifying === "loading" || resettingTrustedData === "loading");
30297
+ const hideNextButton = useMemo(() => {
30298
+ switch (activeForm.formId) {
30299
+ case "basicInformation":
30300
+ return isBusinessSelection;
30301
+ default:
30302
+ return false;
30446
30303
  }
30447
- return hideBackButton;
30448
- }, [
30449
- currentCountry,
30450
- hideBackButton,
30451
- isBusinessSelection,
30452
- searching,
30453
- fetching,
30454
- verifying,
30455
- resettingTrustedData
30456
- ]);
30457
- const hideHome = useMemo(() => {
30458
- if (!COUNTRIES_USING_COMPANY_SEARCH.includes(currentCountry)) return hideHomeButton;
30304
+ }, [activeForm.formId, isBusinessSelection]);
30305
+ const showBackButton = useMemo(() => {
30306
+ if (!COUNTRIES_USING_COMPANY_SEARCH.includes(currentCountry)) return false;
30459
30307
  if (isBusinessSelection) {
30460
- return searching === "loading" || fetching === "loading" || verifying === "loading" || resettingTrustedData === "loading" ? true : hideHomeButton;
30308
+ return searching !== "loading" || fetching !== "loading" || verifying !== "loading" || resettingTrustedData !== "loading";
30461
30309
  }
30462
- }, [
30463
- currentCountry,
30464
- hideHomeButton,
30465
- isBusinessSelection,
30466
- searching,
30467
- fetching,
30468
- verifying,
30469
- resettingTrustedData
30470
- ]);
30310
+ return false;
30311
+ }, [currentCountry, isBusinessSelection, searching, fetching, verifying, resettingTrustedData]);
30471
30312
  const goToForm = useCallback(
30472
30313
  (index) => {
30473
30314
  if (!COUNTRIES_USING_COMPANY_SEARCH.includes(currentCountry))
@@ -30591,10 +30432,8 @@ function BusinessDetailsDropin({
30591
30432
  {
30592
30433
  taskName: taskName2 ?? "businessDetails",
30593
30434
  gotoFormByFormIndex: goToForm,
30594
- hideDropinLayout,
30595
- hideHomeButton: hideHome,
30596
- hideBackButton: hideBack,
30597
- hideNextButton: isBusinessSelection,
30435
+ hideSidebar,
30436
+ hideFooter,
30598
30437
  loadingStatus,
30599
30438
  forms,
30600
30439
  activeForm,
@@ -30604,12 +30443,12 @@ function BusinessDetailsDropin({
30604
30443
  problems: currentProblems,
30605
30444
  canSubmit: canSubmitForm,
30606
30445
  summary: summaryData,
30607
- homeButtonLabel,
30608
- nextButtonLabel,
30609
- backButtonLabel: i18n.get("goBack"),
30610
30446
  handleNextClick: nextClick,
30611
30447
  handleBackClick: backClick,
30612
30448
  handleHomeClick,
30449
+ steps,
30450
+ showBackButton,
30451
+ hideNextButton,
30613
30452
  children: /* @__PURE__ */ jsx(
30614
30453
  BusinessDetails,
30615
30454
  {
@@ -30688,10 +30527,9 @@ const formatFileSummaryData$1 = (companyRegistrationDocument, companyTaxDocument
30688
30527
  function CompanyDropin({
30689
30528
  country: parentCountry,
30690
30529
  problems: propProblems,
30691
- hideDropinLayout,
30530
+ hideSidebar,
30692
30531
  taskName: taskName2,
30693
30532
  capabilities,
30694
- homeButtonLabel,
30695
30533
  taskType = TaskTypes.COMPANY,
30696
30534
  trackingConfig,
30697
30535
  associationDetail,
@@ -30954,12 +30792,17 @@ function CompanyDropin({
30954
30792
  summaryData.companyNameAndCountry = getUpdatedCountryOfGoverningLaw(
30955
30793
  summaryData.companyNameAndCountry
30956
30794
  );
30795
+ summaryData.companyNameAndCountry.countryOfGoverningLaw = datasetUtils.getCountryName(
30796
+ summaryData.companyNameAndCountry.countryOfGoverningLaw
30797
+ );
30957
30798
  } else {
30958
30799
  summaryData.companyNameAndCountry.country = datasetUtils.getCountryName(
30959
30800
  summaryData.companyNameAndCountry.country
30960
30801
  );
30961
30802
  }
30962
- summaryData.companyNameAndCountry.countryRegionOfEstablishment = summaryData.companyNameAndCountry.country;
30803
+ summaryData.companyNameAndCountry.countryRegionOfEstablishment = datasetUtils.getCountryName(
30804
+ summaryData.companyNameAndCountry.country
30805
+ );
30963
30806
  delete summaryData.companyNameAndCountry.country;
30964
30807
  }
30965
30808
  if ((_a2 = summaryData.companyType) == null ? void 0 : _a2.entityType) {
@@ -31022,13 +30865,11 @@ function CompanyDropin({
31022
30865
  const {
31023
30866
  handleNextClick,
31024
30867
  handleBackClick,
31025
- hideHomeButton,
31026
- hideBackButton,
31027
30868
  activeForm,
31028
30869
  shouldValidate,
31029
30870
  setShouldValidate,
31030
30871
  gotoFormByFormIndex,
31031
- nextButtonLabel
30872
+ steps
31032
30873
  } = useFormComposer({
31033
30874
  problems,
31034
30875
  baseTrackingPayload,
@@ -31043,12 +30884,8 @@ function CompanyDropin({
31043
30884
  handleNextClick,
31044
30885
  gotoFormByFormIndex,
31045
30886
  handleHomeClick,
31046
- homeButtonLabel,
31047
30887
  handleBackClick,
31048
- hideDropinLayout,
31049
- hideHomeButton,
31050
- hideBackButton,
31051
- nextButtonLabel,
30888
+ hideSidebar,
31052
30889
  loadingStatus,
31053
30890
  forms,
31054
30891
  activeForm,
@@ -31063,6 +30900,7 @@ function CompanyDropin({
31063
30900
  keys: ["operationalAddressIsSame"]
31064
30901
  }
31065
30902
  },
30903
+ steps,
31066
30904
  children: /* @__PURE__ */ jsx(
31067
30905
  Company,
31068
30906
  {
@@ -31086,7 +30924,7 @@ function CompanyDropin({
31086
30924
  }
31087
30925
  const IgnoreLocalStorageContext = createContext(false);
31088
30926
  const useIgnoreLocalStorage = () => useContext(IgnoreLocalStorageContext);
31089
- const logger$v = createLogger("useLocalStorage");
30927
+ const logger$w = createLogger("useLocalStorage");
31090
30928
  const useLocalStorage = (key, defaultValue, options) => {
31091
30929
  const { serializer, parser, syncData } = useMemo(
31092
30930
  () => ({
@@ -31106,7 +30944,7 @@ const useLocalStorage = (key, defaultValue, options) => {
31106
30944
  const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
31107
30945
  return res;
31108
30946
  } catch (err) {
31109
- logger$v.error(err);
30947
+ logger$w.error(err);
31110
30948
  return defaultValue;
31111
30949
  }
31112
30950
  });
@@ -31141,7 +30979,7 @@ const useLocalStorage = (key, defaultValue, options) => {
31141
30979
  try {
31142
30980
  updateLocalStorage();
31143
30981
  } catch (err) {
31144
- logger$v.error(err);
30982
+ logger$w.error(err);
31145
30983
  }
31146
30984
  }, [value, ignoreLocalStorage]);
31147
30985
  useEffect(() => {
@@ -31154,7 +30992,7 @@ const useLocalStorage = (key, defaultValue, options) => {
31154
30992
  setValue(event.newValue ? parser(event.newValue) : void 0);
31155
30993
  }
31156
30994
  } catch (err) {
31157
- logger$v.error(err);
30995
+ logger$w.error(err);
31158
30996
  }
31159
30997
  };
31160
30998
  if (ignoreLocalStorage) return;
@@ -31338,7 +31176,7 @@ const useSingpassMyInfoLogin = ({
31338
31176
  trustedEntityAssociations
31339
31177
  };
31340
31178
  };
31341
- const logger$u = createLogger("useAssociatedLegalArrangement");
31179
+ const logger$v = createLogger("useAssociatedLegalArrangement");
31342
31180
  function useAssociatedLegalArrangement({
31343
31181
  rootLegalEntity,
31344
31182
  getLegalEntity: getLegalEntity2
@@ -31354,7 +31192,7 @@ function useAssociatedLegalArrangement({
31354
31192
  (entity) => entity.type === LegalEntityType.SOLE_PROPRIETORSHIP || entity.type === LegalEntityType.TRUST
31355
31193
  );
31356
31194
  if (foundEntity == null ? void 0 : foundEntity.legalEntityId) {
31357
- getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$u.error);
31195
+ getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$v.error);
31358
31196
  }
31359
31197
  }, [getAssociatedEntity, rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations]);
31360
31198
  useEffect(() => {
@@ -31404,7 +31242,7 @@ const useCanSeeEntitySelection = (legalEntityId) => {
31404
31242
  setCanSeeEntitySelection: setCanSeeEntitySelectionIntoLocalStorage
31405
31243
  };
31406
31244
  };
31407
- const logger$t = createLogger("useExemptSettlor");
31245
+ const logger$u = createLogger("useExemptSettlor");
31408
31246
  const useExemptSettlor = ({
31409
31247
  trust,
31410
31248
  handleGetLegalEntity
@@ -31422,7 +31260,7 @@ const useExemptSettlor = ({
31422
31260
  );
31423
31261
  useEffect(() => {
31424
31262
  if (!(trust == null ? void 0 : trust.trust)) return;
31425
- updateExemptSettlor(trust).catch(logger$t.error);
31263
+ updateExemptSettlor(trust).catch(logger$u.error);
31426
31264
  }, [trust, updateExemptSettlor]);
31427
31265
  return exemptSettlor;
31428
31266
  };
@@ -31796,6 +31634,10 @@ const updateOrganizationExemptSettlorName = async ({
31796
31634
  };
31797
31635
  return handleUpdateLegalEntity(exemptSettlorPatch, exemptSettlor.legalEntityId);
31798
31636
  };
31637
+ const DropinLayout = ({ content, footer }) => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropin", children: [
31638
+ /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__content", children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__content-main", children: content }) }),
31639
+ footer && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__footer-container", children: footer })
31640
+ ] });
31799
31641
  function AccountSetupRejected() {
31800
31642
  const { i18n } = useI18nContext();
31801
31643
  const content = /* @__PURE__ */ jsxs("div", { children: [
@@ -32244,7 +32086,7 @@ const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
32244
32086
  phone
32245
32087
  };
32246
32088
  };
32247
- const logger$s = createLogger("CustomerSupport");
32089
+ const logger$t = createLogger("CustomerSupport");
32248
32090
  function CustomerSupport(props) {
32249
32091
  var _a, _b, _c, _d, _e, _f;
32250
32092
  const { i18n } = useI18nContext();
@@ -32278,7 +32120,7 @@ function CustomerSupport(props) {
32278
32120
  onSubmit();
32279
32121
  } catch {
32280
32122
  const label = i18n.get("failedToUpdateDetails");
32281
- logger$s.error(label, payload);
32123
+ logger$t.error(label, payload);
32282
32124
  showToast({ label, type: "error" });
32283
32125
  }
32284
32126
  };
@@ -33109,7 +32951,7 @@ const mapReceivedTaskType = (taskType) => {
33109
32951
  return taskType;
33110
32952
  }
33111
32953
  };
33112
- const logger$r = createLogger("taskStore");
32954
+ const logger$s = createLogger("taskStore");
33113
32955
  const computed = dist.createComputed(
33114
32956
  ({
33115
32957
  taskTypes,
@@ -33142,7 +32984,7 @@ const computed = dist.createComputed(
33142
32984
  transferInstruments
33143
32985
  });
33144
32986
  } catch (err) {
33145
- logger$r.error(`Could not calculate task status for ${taskIdentifier}. `, err);
32987
+ logger$s.error(`Could not calculate task status for ${taskIdentifier}. `, err);
33146
32988
  }
33147
32989
  return acc;
33148
32990
  }, {});
@@ -33194,7 +33036,7 @@ const useGetTaskStatus = () => {
33194
33036
  const taskIdentifier = id ? `${taskType}-${id}` : taskType;
33195
33037
  const status = (_a = taskStatuses[taskIdentifier]) == null ? void 0 : _a.status;
33196
33038
  if (status === void 0) {
33197
- logger$r.warn(`No status for task '${taskIdentifier}', returning UNKNOWN`);
33039
+ logger$s.warn(`No status for task '${taskIdentifier}', returning UNKNOWN`);
33198
33040
  return TaskStatus.UNKNOWN;
33199
33041
  }
33200
33042
  return status;
@@ -34197,6 +34039,7 @@ function TaskList({
34197
34039
  const handleOnNavigateToSoleProp = () => onNavigateToTask(TaskTypes.SOLE_PROPRIETOR_COMPANY);
34198
34040
  const handleOnNavigateToServiceAgreement = () => onNavigateToTask(TaskTypes.SERVICE_AGREEMENT);
34199
34041
  const handleOnNavigateToTaskLegalRepresentative = () => onNavigateToTask(TaskTypes.LEGAL_REPRESENTATIVE_DETAILS);
34042
+ const handleOnNavigateToSourceOfFunds = () => onNavigateToTask(TaskTypes.SOURCE_OF_FUNDS);
34200
34043
  const companyTaskDescriptionKey = isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
34201
34044
  const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
34202
34045
  const onEditBusinessSetupClick = () => {
@@ -34352,6 +34195,16 @@ function TaskList({
34352
34195
  }
34353
34196
  )
34354
34197
  ] }),
34198
+ tasks.includes(TaskTypes.SOURCE_OF_FUNDS) && /* @__PURE__ */ jsx(TaskListGroup, { title: i18n.get("financialProductInformation"), children: /* @__PURE__ */ jsx(
34199
+ TaskListItem,
34200
+ {
34201
+ onNavigateToTask: handleOnNavigateToSourceOfFunds,
34202
+ icon: "cash-stack",
34203
+ title: i18n.get("fundingSources"),
34204
+ status: getTaskStatus(TaskTypes.SOURCE_OF_FUNDS),
34205
+ problems: getOwnTrustProblems(legalEntityResponse, capabilityProblems)
34206
+ }
34207
+ ) }),
34355
34208
  (tasks.includes(TaskTypes.PAYOUT) || tasks.includes(TaskTypes.PAYIN)) && !hidePayoutAccountTaskExperiment && /* @__PURE__ */ jsx(
34356
34209
  TaskListGroup,
34357
34210
  {
@@ -34901,7 +34754,7 @@ const validators = ({
34901
34754
  })
34902
34755
  });
34903
34756
  const parseConfiguration$4 = ({ matchingScenario }) => parseIndividualScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.INDIVIDUAL]);
34904
- const logger$q = createLogger("IndividualDropin");
34757
+ const logger$r = createLogger("IndividualDropin");
34905
34758
  function IndividualDropin({
34906
34759
  handleCreateDocument,
34907
34760
  handleGetDocument,
@@ -34916,9 +34769,7 @@ function IndividualDropin({
34916
34769
  parentLegalEntity,
34917
34770
  legalEntityResponse,
34918
34771
  taskName: taskName2,
34919
- handleHomeClick,
34920
34772
  handleCloseClick,
34921
- homeButtonLabel,
34922
34773
  isTargetLegalEntityType,
34923
34774
  country: parentCountry,
34924
34775
  handleCreateLegalEntity,
@@ -34928,8 +34779,8 @@ function IndividualDropin({
34928
34779
  handleUpdateLegalEntity,
34929
34780
  trustMember,
34930
34781
  onSubmit: externalOnSubmit,
34931
- hideNavigation = false,
34932
34782
  asModal = false,
34783
+ hideSidebar,
34933
34784
  handleBackClick: externalBackClick,
34934
34785
  trustedFields,
34935
34786
  trustedFieldsProvider,
@@ -35164,11 +35015,11 @@ function IndividualDropin({
35164
35015
  );
35165
35016
  if (!formattedDocuments || formattedDocuments.length === 0) {
35166
35017
  if (existingAttachments == null ? void 0 : existingAttachments.length)
35167
- logger$q.log(
35018
+ logger$r.log(
35168
35019
  "User has already uploaded documents and is not changing them, nothing needs to be done"
35169
35020
  );
35170
35021
  else
35171
- logger$q.error(
35022
+ logger$r.error(
35172
35023
  `formattedDocuments is empty, but there are no existing documents. Something has gone wrong`
35173
35024
  );
35174
35025
  return;
@@ -35290,7 +35141,7 @@ function IndividualDropin({
35290
35141
  clearToasts();
35291
35142
  externalOnSubmit == null ? void 0 : externalOnSubmit(dataSubmitted);
35292
35143
  } catch (e) {
35293
- logger$q.error("Failed to update individual", e);
35144
+ logger$r.error("Failed to update individual", e);
35294
35145
  if (isValidationError(e)) {
35295
35146
  const validationErrors = processValidationErrors(e, TaskTypes.INDIVIDUAL);
35296
35147
  setProblems({ ...problems, validationErrors });
@@ -35417,15 +35268,11 @@ function IndividualDropin({
35417
35268
  const {
35418
35269
  handleNextClick,
35419
35270
  handleBackClick,
35420
- hideHomeButton,
35421
- hideBackButton,
35422
35271
  activeForm,
35423
35272
  shouldValidate,
35424
35273
  setShouldValidate,
35425
35274
  gotoFormByFormIndex,
35426
- nextButtonLabel,
35427
- currentStep,
35428
- totalSteps
35275
+ steps
35429
35276
  } = useFormComposer({
35430
35277
  problems,
35431
35278
  baseTrackingPayload,
@@ -35447,26 +35294,20 @@ function IndividualDropin({
35447
35294
  },
35448
35295
  handleBackClick,
35449
35296
  handleNextClick,
35450
- handleHomeClick,
35451
35297
  handleCloseClick,
35452
- hideHomeButton,
35453
- hideBackButton,
35454
35298
  hideFooter,
35299
+ hideSidebar,
35455
35300
  loadingStatus,
35456
35301
  forms,
35457
35302
  onSubmit,
35458
35303
  baseTrackingPayload,
35459
35304
  handleGetIdVerificationToken,
35460
35305
  gotoFormByFormIndex,
35461
- nextButtonLabel,
35462
- homeButtonLabel,
35463
35306
  validateForm: () => setShouldValidate(true),
35464
35307
  canSubmit: canSubmit2() && hasDataChanged(dataFromResponse, data),
35465
35308
  problems,
35466
- hideNavigation,
35467
35309
  asModal,
35468
- currentStep,
35469
- totalSteps,
35310
+ steps,
35470
35311
  children: /* @__PURE__ */ jsx(
35471
35312
  Individual,
35472
35313
  {
@@ -35499,7 +35340,7 @@ function IndividualDropin({
35499
35340
  }
35500
35341
  );
35501
35342
  }
35502
- const logger$p = createLogger("useBankConfigurationHandler");
35343
+ const logger$q = createLogger("useBankConfigurationHandler");
35503
35344
  const useBankConfigurationHandlers = ({
35504
35345
  handleGetBankVerificationVendors,
35505
35346
  bankAccountCountry,
@@ -35517,7 +35358,7 @@ const useBankConfigurationHandlers = ({
35517
35358
  const bankVerificationVendorsResponse = handleGetBankVerificationVendors ? await handleGetBankVerificationVendors(bankAccountCountry) : [];
35518
35359
  setProvider(bankVerificationVendorsResponse == null ? void 0 : bankVerificationVendorsResponse[0]);
35519
35360
  })().catch(() => {
35520
- logger$p.error();
35361
+ logger$q.error();
35521
35362
  setProvider(void 0);
35522
35363
  }).finally(() => {
35523
35364
  setLoadingStatus("success");
@@ -35641,17 +35482,18 @@ function PayoutDetailsDropin({
35641
35482
  problems: propProblems,
35642
35483
  onSubmit: externalOnSubmit,
35643
35484
  onChange,
35485
+ asModal = false,
35486
+ handleCloseClick,
35644
35487
  taskType: propTaskType,
35645
35488
  taskName: taskName2,
35646
35489
  capabilities,
35647
35490
  handleHomeClick,
35648
- homeButtonLabel,
35649
- hideNavigation,
35650
35491
  refreshLegalEntity,
35651
35492
  navigateBackToTaskList,
35652
35493
  handleCreateTrustedTransferInstrument,
35653
35494
  handleBankVerificationError: handleBankVerificationError2,
35654
- handleBackClick: externalBackClick
35495
+ handleBackClick: externalBackClick,
35496
+ hideSidebar
35655
35497
  }) {
35656
35498
  var _a, _b, _c, _d, _e, _f, _g;
35657
35499
  const { isEmbeddedDropin } = useAuthContext();
@@ -35698,11 +35540,8 @@ function PayoutDetailsDropin({
35698
35540
  } = useStateContext();
35699
35541
  const formValidity = currentState.validityByForm;
35700
35542
  const bankAccountCountry = ((_c = (_b = currentState == null ? void 0 : currentState.data) == null ? void 0 : _b.payoutVerificationMethod) == null ? void 0 : _c.bankCountry) ?? defaultPayoutCountry;
35701
- const [hideDropinLayout, setHideDropinLayout] = useState(false);
35702
- const [hideFooter, setHideFooter] = useState(false);
35703
- const [submitButtonLabel, setSubmitButtonLabel] = useState("submit");
35543
+ const [hideFooterAndSidebar, setHideFooterAndSidebar] = useState(false);
35704
35544
  const [skipSubmit, setSkipSubmit] = useState(false);
35705
- const [hideOnHomeButton, setHideHomeButton] = useState(false);
35706
35545
  const [loadingStatus, setLoadingStatus] = useState("loading");
35707
35546
  const [bankVendorsLoadingStatus, setBankVendorsLoadingStatus] = useState("loading");
35708
35547
  const [configurationLoadingStatus, setConfigurationLoadingStatus] = useState("loading");
@@ -35986,18 +35825,15 @@ function PayoutDetailsDropin({
35986
35825
  const {
35987
35826
  handleNextClick,
35988
35827
  handleBackClick,
35989
- hideHomeButton,
35990
- hideBackButton,
35991
35828
  activeForm,
35992
35829
  shouldValidate,
35993
35830
  setShouldValidate,
35994
35831
  gotoFormByFormIndex,
35995
- nextButtonLabel
35832
+ steps
35996
35833
  } = useFormComposer({
35997
35834
  problems,
35998
35835
  baseTrackingPayload,
35999
35836
  forms,
36000
- submitButtonLabel,
36001
35837
  externalBackClick,
36002
35838
  onSubmit: skipSubmit ? () => {
36003
35839
  if (trustedTransferInstrumentId) {
@@ -36006,11 +35842,6 @@ function PayoutDetailsDropin({
36006
35842
  navigateBackToTaskList == null ? void 0 : navigateBackToTaskList();
36007
35843
  } : onSubmit
36008
35844
  });
36009
- const currentStep = useMemo(
36010
- () => Object.values(forms).findIndex((step) => step.formId === activeForm.formId),
36011
- [forms, activeForm.formId]
36012
- );
36013
- const totalSteps = useMemo(() => Object.keys(forms).length, [forms]);
36014
35845
  const omittedForms = showWidgetInVerificationMethodStep && ((_g = data == null ? void 0 : data.payoutVerificationMethod) == null ? void 0 : _g.payoutVerificationMethod) === "instantVerification" ? [] : [payoutSteps.payoutVerificationMethod.formId];
36015
35846
  return /* @__PURE__ */ jsx(
36016
35847
  FormWrapper,
@@ -36029,23 +35860,19 @@ function PayoutDetailsDropin({
36029
35860
  handleBackClick,
36030
35861
  handleNextClick,
36031
35862
  handleHomeClick,
36032
- hideDropinLayout,
36033
- hideHomeButton: hideHomeButton || hideOnHomeButton,
36034
- hideBackButton,
36035
- hideFooter,
36036
- hideNavigation,
35863
+ handleCloseClick,
35864
+ hideSidebar: hideSidebar || hideFooterAndSidebar,
35865
+ hideFooter: hideFooterAndSidebar,
36037
35866
  loadingStatus,
35867
+ asModal,
36038
35868
  forms,
36039
35869
  onSubmit,
36040
35870
  baseTrackingPayload,
36041
35871
  gotoFormByFormIndex,
36042
- nextButtonLabel,
36043
- homeButtonLabel,
36044
35872
  validateForm: () => setShouldValidate(true),
36045
35873
  canSubmit: canSubmit2(),
36046
35874
  problems,
36047
- currentStep,
36048
- totalSteps,
35875
+ steps,
36049
35876
  children: /* @__PURE__ */ jsx(
36050
35877
  PayoutDetails,
36051
35878
  {
@@ -36058,11 +35885,9 @@ function PayoutDetailsDropin({
36058
35885
  problems,
36059
35886
  onBack: handleBackClick,
36060
35887
  accountHolder: accountHolder ?? getLegalEntityNameBasedOnType(legalEntityResponse),
36061
- setHideDropinLayout,
36062
- setSubmitButtonLabel,
36063
- setHideOnHomeButton: setHideHomeButton,
35888
+ setHideSidebar: setHideFooterAndSidebar,
35889
+ setHideFooter: setHideFooterAndSidebar,
36064
35890
  setSkipSubmit,
36065
- setHideFooter,
36066
35891
  onChange,
36067
35892
  legalEntityResponse,
36068
35893
  associatedLegalArrangement,
@@ -36109,6 +35934,10 @@ function ContractViewer({ contract, className, onExpandSection }) {
36109
35934
  }, [contract, adyenDocumentViewer, onExpandSection]);
36110
35935
  return /* @__PURE__ */ jsx("div", { ref: container, className: classNames });
36111
35936
  }
35937
+ const EmbeddedActionBar = ({ left, right }) => /* @__PURE__ */ jsxs("footer", { className: "adyen-kyc-embedded-action-bar", children: [
35938
+ /* @__PURE__ */ jsx("section", { children: left }),
35939
+ /* @__PURE__ */ jsx("section", { className: "adyen-kyc-embedded-action-bar-right", children: right })
35940
+ ] });
36112
35941
  const pciValidationRules = {
36113
35942
  signer: {
36114
35943
  modes: ["blur"],
@@ -36267,15 +36096,7 @@ function PciDropin({
36267
36096
  }
36268
36097
  )
36269
36098
  ] });
36270
- const footer = !asEmbedded ? /* @__PURE__ */ jsx(
36271
- ActionBar,
36272
- {
36273
- onHome: goHome,
36274
- homeButtonLabel: i18n.get("goToOverview"),
36275
- onNext: handleSignClick,
36276
- nextButtonLabel: i18n.get("sign")
36277
- }
36278
- ) : /* @__PURE__ */ jsx(EmbeddedActionBar, { right: /* @__PURE__ */ jsx(Button, { label: i18n.get("sign"), onClick: handleSignClick }) });
36099
+ const footer = !asEmbedded ? /* @__PURE__ */ jsx(ActionBar, { onHome: goHome, onNext: handleSignClick, nextButtonLabel: i18n.get("sign") }) : /* @__PURE__ */ jsx(EmbeddedActionBar, { right: /* @__PURE__ */ jsx(Button, { label: i18n.get("sign"), onClick: handleSignClick }) });
36279
36100
  const endScreen = !needsSigning && /* @__PURE__ */ jsx(
36280
36101
  Splashscreen,
36281
36102
  {
@@ -37070,7 +36891,7 @@ const serviceAgreementValidationRules = {
37070
36891
  errorMessage: "fieldIsRequired"
37071
36892
  }
37072
36893
  };
37073
- const logger$o = createLogger("useServiceAgreement");
36894
+ const logger$p = createLogger("useServiceAgreement");
37074
36895
  const FALLBACK_LANGUAGE_CODE$1 = "en";
37075
36896
  const useServiceAgreement = ({
37076
36897
  handleGetServiceAgreement,
@@ -37100,7 +36921,7 @@ const useServiceAgreement = ({
37100
36921
  const contract = JSON.parse(decodeURIComponent(escape(window.atob(document2))));
37101
36922
  setServiceAgreement({ id, contract });
37102
36923
  };
37103
- requestAcceptedServiceAgreement().catch(logger$o.error).finally(() => setLoading("success"));
36924
+ requestAcceptedServiceAgreement().catch(logger$p.error).finally(() => setLoading("success"));
37104
36925
  }, [acceptanceId, handleViewAcceptedTermsOfServiceDocument]);
37105
36926
  useEffect(() => {
37106
36927
  const requestServiceAgreement = async () => {
@@ -37115,7 +36936,7 @@ const useServiceAgreement = ({
37115
36936
  }
37116
36937
  );
37117
36938
  if (!document2) {
37118
- logger$o.log('"document" field was missing in response');
36939
+ logger$p.log('"document" field was missing in response');
37119
36940
  return;
37120
36941
  }
37121
36942
  const contract = JSON.parse(decodeURIComponent(escape(window.atob(document2))));
@@ -37130,7 +36951,7 @@ const useServiceAgreement = ({
37130
36951
  throw err;
37131
36952
  }
37132
36953
  };
37133
- requestServiceAgreement().catch(logger$o.error);
36954
+ requestServiceAgreement().catch(logger$p.error);
37134
36955
  }, [
37135
36956
  handleGetServiceAgreement,
37136
36957
  handleServiceAgreementIsNotAvailableInThatLanguage,
@@ -37155,7 +36976,7 @@ const serviceAgreementTypesTranslationMapping = {
37155
36976
  adyenPccr: "pccr",
37156
36977
  adyenChargeCard: "chargeCardUserAgreement"
37157
36978
  };
37158
- const logger$n = createLogger("ServiceAgreementDropin");
36979
+ const logger$o = createLogger("ServiceAgreementDropin");
37159
36980
  const FALLBACK_LANGUAGE_CODE = "en";
37160
36981
  function ServiceAgreementDropin({
37161
36982
  legalEntityResponse,
@@ -37338,7 +37159,7 @@ function ServiceAgreementDropin({
37338
37159
  await requestAndDownload(i18n.languageCode);
37339
37160
  } catch {
37340
37161
  if (i18n.languageCode !== FALLBACK_LANGUAGE_CODE) {
37341
- await requestAndDownload(FALLBACK_LANGUAGE_CODE).catch(logger$n.error);
37162
+ await requestAndDownload(FALLBACK_LANGUAGE_CODE).catch(logger$o.error);
37342
37163
  return;
37343
37164
  }
37344
37165
  showToast({
@@ -37625,8 +37446,7 @@ function SolePropDropin({
37625
37446
  country: externalCountry,
37626
37447
  parentLegalEntity,
37627
37448
  legalEntityResponse,
37628
- homeButtonLabel,
37629
- hideDropinLayout,
37449
+ hideSidebar,
37630
37450
  onSubmit: onExternalSubmit,
37631
37451
  onChange,
37632
37452
  taskType,
@@ -37861,13 +37681,11 @@ function SolePropDropin({
37861
37681
  const {
37862
37682
  handleNextClick,
37863
37683
  handleBackClick,
37864
- hideHomeButton,
37865
- hideBackButton,
37866
37684
  activeForm,
37867
37685
  shouldValidate,
37868
37686
  setShouldValidate,
37869
37687
  gotoFormByFormIndex,
37870
- nextButtonLabel
37688
+ steps
37871
37689
  } = useFormComposer({
37872
37690
  problems,
37873
37691
  baseTrackingPayload,
@@ -37883,11 +37701,7 @@ function SolePropDropin({
37883
37701
  handleNextClick,
37884
37702
  gotoFormByFormIndex,
37885
37703
  handleHomeClick,
37886
- hideDropinLayout,
37887
- hideHomeButton,
37888
- hideBackButton,
37889
- nextButtonLabel,
37890
- homeButtonLabel,
37704
+ hideSidebar,
37891
37705
  loadingStatus,
37892
37706
  forms,
37893
37707
  activeForm,
@@ -37902,6 +37716,7 @@ function SolePropDropin({
37902
37716
  keys: ["operationalAddressIsSame"]
37903
37717
  }
37904
37718
  },
37719
+ steps,
37905
37720
  children: /* @__PURE__ */ jsx(
37906
37721
  SoleProp,
37907
37722
  {
@@ -37966,9 +37781,8 @@ function TrustDropin({
37966
37781
  problems: problemsProp,
37967
37782
  onSubmit: externalOnSubmit,
37968
37783
  onChange,
37969
- hideDropinLayout,
37970
- handleHomeClick,
37971
- homeButtonLabel
37784
+ hideSidebar,
37785
+ handleHomeClick
37972
37786
  }) {
37973
37787
  var _a;
37974
37788
  const { i18n } = useI18nContext();
@@ -38194,7 +38008,7 @@ function TrustDropin({
38194
38008
  shouldValidate,
38195
38009
  setShouldValidate,
38196
38010
  gotoFormByFormIndex,
38197
- nextButtonLabel
38011
+ steps
38198
38012
  } = useFormComposer({
38199
38013
  problems,
38200
38014
  baseTrackingPayload,
@@ -38209,15 +38023,13 @@ function TrustDropin({
38209
38023
  handleNextClick,
38210
38024
  handleBackClick,
38211
38025
  gotoFormByFormIndex,
38212
- nextButtonLabel,
38213
38026
  loadingStatus,
38214
38027
  forms,
38215
38028
  activeForm,
38216
38029
  baseTrackingPayload,
38217
38030
  onSubmit,
38218
- hideDropinLayout,
38031
+ hideSidebar,
38219
38032
  handleHomeClick,
38220
- homeButtonLabel,
38221
38033
  validateForm: () => setShouldValidate(true),
38222
38034
  canSubmit: canSubmit2(data) && hasDataChanged(dataFromResponse, data),
38223
38035
  problems,
@@ -38227,6 +38039,7 @@ function TrustDropin({
38227
38039
  keys: ["operationalAddressIsSame"]
38228
38040
  }
38229
38041
  },
38042
+ steps,
38230
38043
  children: /* @__PURE__ */ jsx(
38231
38044
  Trust,
38232
38045
  {
@@ -38369,6 +38182,14 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
38369
38182
  const hasOrganizationType = (_b = legalEntity.organization) == null ? void 0 : _b.type;
38370
38183
  return hasOwnEntityAssocation || !!hasOrganizationType;
38371
38184
  };
38185
+ const logger$n = createLogger("SourceOfFundsDropin");
38186
+ function SourceOfFundsDropin({ legalEntityResponse, country }) {
38187
+ const { i18n } = useI18nContext();
38188
+ useEffect(() => {
38189
+ logger$n.log(`Welcome to Source of funds. LE: ${legalEntityResponse.id}; Country: ${country}`);
38190
+ }, []);
38191
+ return /* @__PURE__ */ jsx("div", { children: i18n.get("sourceOfFunds") });
38192
+ }
38372
38193
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
38373
38194
  const logger$m = createLogger("DropinComposer");
38374
38195
  const isOrganizationSettlorWithExemptionReasonEnabled = (country) => country === CountryCodes.Australia;
@@ -39051,7 +38872,6 @@ function DropinComposer({
39051
38872
  setTargetLegalEntityType(void 0);
39052
38873
  },
39053
38874
  handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW),
39054
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39055
38875
  handleCreateLegalEntity: args.handleCreateLegalEntity,
39056
38876
  handleUpdateLegalEntity: args.handleUpdateLegalEntity,
39057
38877
  handleGetDocument: args.handleGetDocument,
@@ -39102,7 +38922,6 @@ function DropinComposer({
39102
38922
  onChange: handleOnChange,
39103
38923
  onSubmit: handleOnSubmit,
39104
38924
  handleHomeClick: navigateBack,
39105
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39106
38925
  handleCreateLegalEntity: args.handleCreateLegalEntity,
39107
38926
  handleUpdateLegalEntity: args.handleUpdateLegalEntity,
39108
38927
  handleGetDocument: args.handleGetDocument,
@@ -39137,7 +38956,6 @@ function DropinComposer({
39137
38956
  await handleOnSubmit(data);
39138
38957
  },
39139
38958
  handleHomeClick: navigateBack,
39140
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39141
38959
  handleCreateLegalEntity: args.handleCreateLegalEntity,
39142
38960
  handleUpdateLegalEntity: args.handleUpdateLegalEntity,
39143
38961
  handleGetDocument: args.handleGetDocument,
@@ -39166,7 +38984,6 @@ function DropinComposer({
39166
38984
  onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 2),
39167
38985
  handleBackClick: navigateBack,
39168
38986
  handleHomeClick: () => navigateTo(TaskTypes.TRUST_MEMBER_OVERVIEW),
39169
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39170
38987
  trustMember,
39171
38988
  handleCreateLegalEntity: args.handleCreateLegalEntity,
39172
38989
  handleUpdateLegalEntity: args.handleUpdateLegalEntity,
@@ -39200,7 +39017,6 @@ function DropinComposer({
39200
39017
  setTargetLegalEntityType(void 0);
39201
39018
  },
39202
39019
  handleHomeClick: navigateBack,
39203
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39204
39020
  handleAddressSearch: args.handleAddressSearch,
39205
39021
  handleFindAddress: args.handleFindAddress,
39206
39022
  isTargetLegalEntityType: targetLegalEntityType === LegalEntityType.ORGANIZATION,
@@ -39208,7 +39024,7 @@ function DropinComposer({
39208
39024
  }
39209
39025
  );
39210
39026
  case TaskTypes.BUSINESS_DETAILS:
39211
- return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-display-flex adyen-kyc-u-justify-content-center", children: /* @__PURE__ */ jsx(
39027
+ return /* @__PURE__ */ jsx(
39212
39028
  BusinessDetailsDropin,
39213
39029
  {
39214
39030
  ...args,
@@ -39220,7 +39036,6 @@ function DropinComposer({
39220
39036
  legalEntityResponse: rootLegalEntity,
39221
39037
  capabilities,
39222
39038
  problems: getLegalEntityProblems(rootLegalEntity),
39223
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39224
39039
  country: ((_e = legalEntityResponse.organization) == null ? void 0 : _e.registeredAddress.country) ?? contextCountry,
39225
39040
  onChange: handleOnChange,
39226
39041
  onSubmit: async (data) => {
@@ -39246,7 +39061,7 @@ function DropinComposer({
39246
39061
  handleClearCompanyData: args.handleClearCompanyData,
39247
39062
  isTargetLegalEntityType: targetLegalEntityType === LegalEntityType.ORGANIZATION
39248
39063
  }
39249
- ) });
39064
+ );
39250
39065
  case TaskTypes.TRUST_MEMBER_COMPANY:
39251
39066
  return /* @__PURE__ */ jsx(
39252
39067
  CompanyDropin,
@@ -39264,7 +39079,6 @@ function DropinComposer({
39264
39079
  onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 2),
39265
39080
  handleBackClick: navigateBack,
39266
39081
  handleHomeClick: navigateBack,
39267
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39268
39082
  associationDetail: trustMember,
39269
39083
  handleAddressSearch: args.handleAddressSearch,
39270
39084
  handleFindAddress: args.handleFindAddress
@@ -39289,7 +39103,6 @@ function DropinComposer({
39289
39103
  onChange: handleOnChange,
39290
39104
  onSubmit: handleOnSubmit,
39291
39105
  handleHomeClick: navigateBack,
39292
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39293
39106
  navigateBackToTaskList: navigateBack,
39294
39107
  handleCreateTransferInstrument: args.handleCreateTransferInstrument,
39295
39108
  handleUpdateTransferInstrument: args.handleUpdateTransferInstrument,
@@ -39317,7 +39130,6 @@ function DropinComposer({
39317
39130
  onChange: handleOnChange,
39318
39131
  onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 1),
39319
39132
  handleHomeClick: navigateBack,
39320
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39321
39133
  country: (((_i = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.trust) == null ? void 0 : _i.countryOfGoverningLaw) || ((_j = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.trust) == null ? void 0 : _j.registeredAddress.country)) ?? rootLegalEntityCountry,
39322
39134
  handleAddressSearch: args.handleAddressSearch,
39323
39135
  handleFindAddress: args.handleFindAddress
@@ -39382,7 +39194,6 @@ function DropinComposer({
39382
39194
  onChange: handleOnChange,
39383
39195
  onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 1),
39384
39196
  handleHomeClick: navigateBack,
39385
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39386
39197
  country: (((_m = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _m.countryOfGoverningLaw) || ((_o = (_n = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _n.registeredAddress) == null ? void 0 : _o.country)) ?? rootLegalEntityCountry,
39387
39198
  handleAddressSearch: args.handleAddressSearch,
39388
39199
  handleFindAddress: args.handleFindAddress
@@ -39429,7 +39240,6 @@ function DropinComposer({
39429
39240
  onChange: handleOnChange,
39430
39241
  onSubmit: handleOnSubmit,
39431
39242
  handleHomeClick: navigateBack,
39432
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39433
39243
  handleCreateLegalEntity: args.handleCreateLegalEntity,
39434
39244
  handleUpdateLegalEntity: args.handleUpdateLegalEntity,
39435
39245
  handleGetDocument: args.handleGetDocument,
@@ -39441,6 +39251,19 @@ function DropinComposer({
39441
39251
  handleGetIdVerificationStartCheck: args.handleGetIdVerificationStartCheck
39442
39252
  }
39443
39253
  );
39254
+ case TaskTypes.SOURCE_OF_FUNDS:
39255
+ return /* @__PURE__ */ jsx(
39256
+ SourceOfFundsDropin,
39257
+ {
39258
+ country: rootLegalEntityCountry,
39259
+ legalEntityResponse: rootLegalEntity,
39260
+ handleUpdateLegalEntity: args.handleUpdateLegalEntity,
39261
+ capabilities,
39262
+ problems: getLegalEntityProblems(rootLegalEntity),
39263
+ onSubmit: handleOnSubmit,
39264
+ handleHomeClick: navigateBack
39265
+ }
39266
+ );
39444
39267
  default:
39445
39268
  return null;
39446
39269
  }
@@ -40334,8 +40157,8 @@ function CreateIndividualComponent({
40334
40157
  handleAddressSearch: isAddressEnabled ? searchAddress2 : void 0,
40335
40158
  handleGetIdVerificationToken: isIdDocumentEnabled ? getIdVerificationToken : void 0,
40336
40159
  handleGetIdVerificationStartCheck: isIdDocumentEnabled ? idVerificationStartCheck : void 0,
40337
- hideNavigation: true,
40338
40160
  asModal: isModalView,
40161
+ hideSidebar: true,
40339
40162
  onSubmit,
40340
40163
  handleCloseClick: handleOnClose,
40341
40164
  taskType
@@ -40347,6 +40170,9 @@ function CreateTransferInstrumentComponent({
40347
40170
  legalEntityId,
40348
40171
  transferInstrumentId,
40349
40172
  openBankingPartnerConfigId,
40173
+ modalView,
40174
+ onClose,
40175
+ onUnmount,
40350
40176
  onSubmitSuccess,
40351
40177
  handleBackClick
40352
40178
  }) {
@@ -40362,6 +40188,7 @@ function CreateTransferInstrumentComponent({
40362
40188
  createTrustedTransferInstrument: createTrustedTransferInstrument2,
40363
40189
  handleBankVerificationError: handleBankVerificationError2
40364
40190
  } = useComponentApi(legalEntityId);
40191
+ const { isModalView, setIsModalView } = useCoreContext();
40365
40192
  const [legalEntity, setLegalEntity] = useState();
40366
40193
  const [transferInstrument, setTransferInstrument] = useState();
40367
40194
  const [loadingStatus, setLoadingStatus] = useState("success");
@@ -40370,6 +40197,15 @@ function CreateTransferInstrumentComponent({
40370
40197
  getLegalEntity: getLegalEntity2
40371
40198
  });
40372
40199
  const { i18n } = useI18nContext();
40200
+ if (modalView) {
40201
+ setIsModalView(true);
40202
+ }
40203
+ const handleOnClose = () => {
40204
+ if (modalView) {
40205
+ onUnmount == null ? void 0 : onUnmount();
40206
+ }
40207
+ onClose == null ? void 0 : onClose();
40208
+ };
40373
40209
  const fetchLegalEntity = useCallback(async () => {
40374
40210
  const le = await getLegalEntity2(legalEntityId);
40375
40211
  setLegalEntity(le);
@@ -40405,12 +40241,14 @@ function CreateTransferInstrumentComponent({
40405
40241
  handleCreateTransferInstrument: createTransferInstrument2,
40406
40242
  handleUpdateTransferInstrument: updateTransferInstrument2,
40407
40243
  handleBackClick,
40408
- hideNavigation: true,
40244
+ handleCloseClick: handleOnClose,
40409
40245
  refreshLegalEntity: fetchLegalEntity,
40410
40246
  onSubmit: onSubmitSuccess,
40411
40247
  handleCreateTrustedTransferInstrument: createTrustedTransferInstrument2,
40412
40248
  handleBankVerificationError: handleBankVerificationError2,
40413
- taskType: TaskTypes.PAYOUT
40249
+ taskType: TaskTypes.PAYOUT,
40250
+ hideSidebar: true,
40251
+ asModal: isModalView
40414
40252
  }
40415
40253
  );
40416
40254
  }
@@ -40717,33 +40555,30 @@ const Confirm = ({ onConfirm, title, confirmBtnLabel, onClose }) => {
40717
40555
  onClose();
40718
40556
  }
40719
40557
  };
40720
- const modalHeader = /* @__PURE__ */ jsx(
40721
- Typography,
40722
- {
40723
- variant: "title",
40724
- el: "h3",
40725
- className: "adyen-kyc-u-margin-top-8 adyen-kyc-u-margin-left-8",
40726
- children: title
40727
- }
40728
- );
40729
- const modalFooter = /* @__PURE__ */ jsx(
40730
- EmbeddedActionBar,
40731
- {
40732
- right: /* @__PURE__ */ jsxs(Fragment, { children: [
40733
- /* @__PURE__ */ jsx(Button, { label: i18n.get("cancel"), onClick: onClose, secondary: true }),
40734
- /* @__PURE__ */ jsx(
40735
- Button,
40736
- {
40737
- label: confirmBtnLabel || i18n.get("confirm"),
40738
- onClick: handleConfirm,
40739
- critical: true,
40740
- disabled: isInFlight
40741
- }
40742
- )
40743
- ] })
40744
- }
40745
- );
40746
- return /* @__PURE__ */ jsx(Modal, { header: modalHeader, footer: modalFooter, size: "small" });
40558
+ return /* @__PURE__ */ jsxs(Modal, { size: "small", onClose, children: [
40559
+ /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsx(
40560
+ Typography,
40561
+ {
40562
+ variant: "title",
40563
+ el: "h3",
40564
+ className: "adyen-kyc-u-margin-top-8 adyen-kyc-u-margin-left-8",
40565
+ children: title
40566
+ }
40567
+ ) }),
40568
+ /* @__PURE__ */ jsxs(ModalFooter, { children: [
40569
+ /* @__PURE__ */ jsx("div", { style: { flex: "1" } }),
40570
+ /* @__PURE__ */ jsx(Button, { label: i18n.get("cancel"), onClick: onClose, secondary: true }),
40571
+ /* @__PURE__ */ jsx(
40572
+ Button,
40573
+ {
40574
+ label: confirmBtnLabel || i18n.get("confirm"),
40575
+ onClick: handleConfirm,
40576
+ critical: true,
40577
+ disabled: isInFlight
40578
+ }
40579
+ )
40580
+ ] })
40581
+ ] });
40747
40582
  };
40748
40583
  function ManageTransferInstrumentOverviewItemModal({
40749
40584
  status,
@@ -40804,15 +40639,6 @@ function ManageTransferInstrumentOverviewItemModal({
40804
40639
  }
40805
40640
  return summaries;
40806
40641
  };
40807
- const modalHeader = /* @__PURE__ */ jsx(
40808
- Typography,
40809
- {
40810
- variant: "title-l",
40811
- el: "h3",
40812
- className: "adyen-kyc-manage-ti-overview-item-summary__header",
40813
- children: i18n.get("bankAccount")
40814
- }
40815
- );
40816
40642
  const handleRemove = async () => {
40817
40643
  await onRemove(transferInstrument.id);
40818
40644
  onClose();
@@ -40825,50 +40651,58 @@ function ManageTransferInstrumentOverviewItemModal({
40825
40651
  setConfirmOpen(true);
40826
40652
  }
40827
40653
  };
40828
- const modalFooter = () => {
40829
- if (!transferInstrument) return;
40830
- const actions = /* @__PURE__ */ jsxs(Fragment, { children: [
40831
- /* @__PURE__ */ jsx(
40832
- Button,
40833
- {
40834
- title: i18n.get("delete"),
40835
- icon: "bin",
40836
- secondary: true,
40837
- disabled: isReviewInProgress,
40838
- onClick: handleDeleteClick
40839
- }
40840
- ),
40841
- showEditButton && /* @__PURE__ */ jsx(
40842
- Button,
40843
- {
40844
- label: i18n.get("edit"),
40845
- onClick: () => onEdit(transferInstrument.id),
40846
- disabled: isReviewInProgress
40847
- }
40848
- )
40849
- ] });
40850
- return /* @__PURE__ */ jsx(EmbeddedActionBar, { right: actions });
40851
- };
40852
40654
  return /* @__PURE__ */ jsxs(Fragment, { children: [
40853
- /* @__PURE__ */ jsx(Modal, { header: modalHeader, onClose, footer: modalFooter(), children: !transferInstrument ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-manage-ti-overview-item-summary", children: [
40854
- !!((_b = (_a = problems.BankAccount) == null ? void 0 : _a[transferInstrument.id]) == null ? void 0 : _b.verificationErrors) && /* @__PURE__ */ jsx(
40855
- VerificationErrorAlert,
40655
+ /* @__PURE__ */ jsxs(Modal, { onClose, children: [
40656
+ /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsx(
40657
+ Typography,
40856
40658
  {
40857
- className: "adyen-kyc-manage-ti-overview-item-summary__error",
40858
- problems: (_c = problems.BankAccount) == null ? void 0 : _c[transferInstrument.id],
40859
- children: /* @__PURE__ */ jsx(
40860
- Button,
40861
- {
40862
- className: "adyen-kyc-manage-ti-overview-item-summary__error-button",
40863
- label: i18n.get("editDetails"),
40864
- tertiary: true,
40865
- onClick: () => onEdit(transferInstrument.id)
40866
- }
40867
- )
40659
+ variant: "title-l",
40660
+ el: "h3",
40661
+ className: "adyen-kyc-manage-ti-overview-item-summary__header",
40662
+ children: i18n.get("bankAccount")
40868
40663
  }
40869
- ),
40870
- getStructuredLists().map((listItems) => /* @__PURE__ */ jsx(Card, { className: "adyen-kyc-manage-ti-overview-item-summary__card", children: /* @__PURE__ */ jsx(StructuredList, { items: listItems }) }, listItems))
40871
- ] }) }),
40664
+ ) }),
40665
+ /* @__PURE__ */ jsx(ModalContent, { children: !transferInstrument ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-manage-ti-overview-item-summary", children: [
40666
+ !!((_b = (_a = problems.BankAccount) == null ? void 0 : _a[transferInstrument.id]) == null ? void 0 : _b.verificationErrors) && /* @__PURE__ */ jsx(
40667
+ VerificationErrorAlert,
40668
+ {
40669
+ className: "adyen-kyc-manage-ti-overview-item-summary__error",
40670
+ problems: (_c = problems.BankAccount) == null ? void 0 : _c[transferInstrument.id],
40671
+ children: /* @__PURE__ */ jsx(
40672
+ Button,
40673
+ {
40674
+ className: "adyen-kyc-manage-ti-overview-item-summary__error-button",
40675
+ label: i18n.get("editDetails"),
40676
+ tertiary: true,
40677
+ onClick: () => onEdit(transferInstrument.id)
40678
+ }
40679
+ )
40680
+ }
40681
+ ),
40682
+ getStructuredLists().map((listItems) => /* @__PURE__ */ jsx(Card, { className: "adyen-kyc-manage-ti-overview-item-summary__card", children: /* @__PURE__ */ jsx(StructuredList, { items: listItems }) }, listItems))
40683
+ ] }) }),
40684
+ transferInstrument && /* @__PURE__ */ jsxs(ModalFooter, { children: [
40685
+ /* @__PURE__ */ jsx("div", { style: { flex: "1" } }),
40686
+ /* @__PURE__ */ jsx(
40687
+ Button,
40688
+ {
40689
+ title: i18n.get("delete"),
40690
+ icon: "bin",
40691
+ secondary: true,
40692
+ disabled: isReviewInProgress,
40693
+ onClick: handleDeleteClick
40694
+ }
40695
+ ),
40696
+ showEditButton && /* @__PURE__ */ jsx(
40697
+ Button,
40698
+ {
40699
+ label: i18n.get("edit"),
40700
+ onClick: () => onEdit(transferInstrument.id),
40701
+ disabled: isReviewInProgress
40702
+ }
40703
+ )
40704
+ ] })
40705
+ ] }),
40872
40706
  confirmOpen && /* @__PURE__ */ jsx(
40873
40707
  Confirm,
40874
40708
  {
@@ -43119,8 +42953,8 @@ function HighExposureDropin(props) {
43119
42953
  activeForm,
43120
42954
  setShouldValidate,
43121
42955
  gotoFormByFormIndex,
43122
- nextButtonLabel,
43123
- shouldValidate
42956
+ shouldValidate,
42957
+ steps
43124
42958
  } = useFormComposer({
43125
42959
  problems,
43126
42960
  baseTrackingPayload,
@@ -43203,7 +43037,6 @@ function HighExposureDropin(props) {
43203
43037
  handleNextClick,
43204
43038
  handleBackClick,
43205
43039
  gotoFormByFormIndex,
43206
- nextButtonLabel,
43207
43040
  loadingStatus,
43208
43041
  forms,
43209
43042
  activeForm,
@@ -43219,6 +43052,7 @@ function HighExposureDropin(props) {
43219
43052
  keys: omittedSummaryKeys
43220
43053
  }
43221
43054
  },
43055
+ steps,
43222
43056
  children: /* @__PURE__ */ jsx("div", { children: renderActiveForm(activeForm || highExposureForms.company) })
43223
43057
  }
43224
43058
  );
@@ -43513,7 +43347,8 @@ const componentsMap = {
43513
43347
  managePCIComponent: ManagePCIComponent,
43514
43348
  signPCIComponent: SignPCIComponent,
43515
43349
  viewVerificationStatusComponent: ViewVerificationStatusComponent,
43516
- updateLegalEntityForHighExposureComponent: UpdateLegalEntityForHighExposure
43350
+ updateLegalEntityForHighExposureComponent: UpdateLegalEntityForHighExposure,
43351
+ sourceOfFundsDropin: SourceOfFundsDropin
43517
43352
  };
43518
43353
  const AuthProvider = ({
43519
43354
  children,
@@ -43983,7 +43818,7 @@ const ConfigurationApiProvider = ({
43983
43818
  }) => {
43984
43819
  const authContext = useAuthContext();
43985
43820
  const { isEmbeddedDropin, loadingContext } = authContext;
43986
- const sdkVersion = "3.42.3";
43821
+ const sdkVersion = "3.43.1";
43987
43822
  useAnalytics({
43988
43823
  onUserEvent,
43989
43824
  legalEntityId: rootLegalEntityId,
@@ -44102,7 +43937,7 @@ const useAllowedLocales = () => {
44102
43937
  }, []);
44103
43938
  return allowedLocales;
44104
43939
  };
44105
- const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-CMCcwscy.js"), "./locales/cs-CZ.json": () => import("./cs-CZ-CWoauekB.js"), "./locales/da-DK.json": () => import("./da-DK-DzEKTJHc.js"), "./locales/de-DE.json": () => import("./de-DE-B6M2anx6.js"), "./locales/el-GR.json": () => import("./el-GR-CuqLWzR5.js"), "./locales/en-US.instructions.json": () => import("./en-US.instructions-DLPEHGI-.js"), "./locales/en-US.json": () => Promise.resolve().then(() => enUS), "./locales/es-ES.json": () => import("./es-ES-9XfSDirr.js"), "./locales/et-EE.json": () => import("./et-EE-pmwl_J2R.js"), "./locales/fi-FI.json": () => import("./fi-FI-DgJSRyPl.js"), "./locales/fr-FR.json": () => import("./fr-FR-BUhY0q6T.js"), "./locales/hr-HR.json": () => import("./hr-HR-Cu45hWKx.js"), "./locales/hu-HU.json": () => import("./hu-HU-igEUooEp.js"), "./locales/it-IT.json": () => import("./it-IT-DTdhIzgZ.js"), "./locales/lt-LT.json": () => import("./lt-LT-7Ir7WV1z.js"), "./locales/lv-LV.json": () => import("./lv-LV-NrrHCjUD.js"), "./locales/nl-NL.json": () => import("./nl-NL-CfA_NFx-.js"), "./locales/no-NO.json": () => import("./no-NO-CWloqbTr.js"), "./locales/pl-PL.json": () => import("./pl-PL-BXvZOf8S.js"), "./locales/pt-PT.json": () => import("./pt-PT-BBmTWd3M.js"), "./locales/ro-RO.json": () => import("./ro-RO-CPB_OIDF.js"), "./locales/sk-SK.json": () => import("./sk-SK-C0ojvkCe.js"), "./locales/sl-SI.json": () => import("./sl-SI-qgUAiBJ9.js"), "./locales/sv-SE.json": () => import("./sv-SE-CJ7RsMEw.js") });
43940
+ const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-CCs_v0tp.js"), "./locales/cs-CZ.json": () => import("./cs-CZ-C_bRWn21.js"), "./locales/da-DK.json": () => import("./da-DK-DaQaWQd-.js"), "./locales/de-DE.json": () => import("./de-DE-DuSLpezf.js"), "./locales/el-GR.json": () => import("./el-GR-DmgLyz80.js"), "./locales/en-US.instructions.json": () => import("./en-US.instructions-DLPEHGI-.js"), "./locales/en-US.json": () => Promise.resolve().then(() => enUS), "./locales/es-ES.json": () => import("./es-ES-DxXud8aH.js"), "./locales/et-EE.json": () => import("./et-EE-PXaQE7jG.js"), "./locales/fi-FI.json": () => import("./fi-FI-osvBD5sG.js"), "./locales/fr-FR.json": () => import("./fr-FR-Bs0FZL0l.js"), "./locales/hr-HR.json": () => import("./hr-HR-DQIxTLgV.js"), "./locales/hu-HU.json": () => import("./hu-HU-YYJTbjEp.js"), "./locales/it-IT.json": () => import("./it-IT-CV_B79A5.js"), "./locales/lt-LT.json": () => import("./lt-LT-COS6AdAw.js"), "./locales/lv-LV.json": () => import("./lv-LV-BVwcioTj.js"), "./locales/nl-NL.json": () => import("./nl-NL-CX6Snb3O.js"), "./locales/no-NO.json": () => import("./no-NO-VThUltIX.js"), "./locales/pl-PL.json": () => import("./pl-PL-CkMByJ06.js"), "./locales/pt-PT.json": () => import("./pt-PT-CIJPCsQC.js"), "./locales/ro-RO.json": () => import("./ro-RO-CXVjplFU.js"), "./locales/sk-SK.json": () => import("./sk-SK-6YYisb04.js"), "./locales/sl-SI.json": () => import("./sl-SI-BWpRSITB.js"), "./locales/sv-SE.json": () => import("./sv-SE-BBzzvHvH.js") });
44106
43941
  const loadLocale = async (locale) => {
44107
43942
  const importForLocale = localeImports[`./locales/${locale}.json`];
44108
43943
  if (!importForLocale) {
@@ -44828,7 +44663,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
44828
44663
  const { i18n } = useI18nContext();
44829
44664
  const [tab, setTab] = useState("metadata");
44830
44665
  const metadata = {
44831
- sdkVersion: "3.42.3",
44666
+ sdkVersion: "3.43.1",
44832
44667
  locale: i18n.locale,
44833
44668
  rootLegalEntityId
44834
44669
  };
@@ -44865,59 +44700,65 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
44865
44700
  }
44866
44701
  setTab(tab2);
44867
44702
  };
44868
- const header2 = /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-debug-modal__header", children: [
44869
- /* @__PURE__ */ jsx("h1", { children: "Debug" }),
44870
- /* @__PURE__ */ jsx(
44871
- Tabs,
44872
- {
44873
- activeTab: tab,
44874
- onChange: changeTab,
44875
- tabs: [
44876
- {
44877
- name: "metadata",
44878
- label: "Metadata"
44879
- },
44880
- {
44881
- name: "experimentsSettings",
44882
- label: "Experiments & Settings"
44883
- },
44884
- {
44885
- name: "taskStatuses",
44886
- label: "Task Statuses"
44887
- },
44888
- {
44889
- name: "legalEntityData",
44890
- label: "Legal Entity Data"
44703
+ return /* @__PURE__ */ jsxs(Modal, { size: "fullscreen", onClose: onExit, children: [
44704
+ /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-debug-modal__header", children: [
44705
+ /* @__PURE__ */ jsx("h1", { children: "Debug" }),
44706
+ " ",
44707
+ /* @__PURE__ */ jsx(
44708
+ Tabs,
44709
+ {
44710
+ activeTab: tab,
44711
+ onChange: changeTab,
44712
+ tabs: [
44713
+ {
44714
+ name: "metadata",
44715
+ label: "Metadata"
44716
+ },
44717
+ {
44718
+ name: "experimentsSettings",
44719
+ label: "Experiments & Settings"
44720
+ },
44721
+ {
44722
+ name: "taskStatuses",
44723
+ label: "Task Statuses"
44724
+ },
44725
+ {
44726
+ name: "legalEntityData",
44727
+ label: "Legal Entity Data"
44728
+ }
44729
+ ]
44730
+ }
44731
+ )
44732
+ ] }) }),
44733
+ /* @__PURE__ */ jsx(ModalContent, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
44734
+ /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-debug-modal__content", children: [
44735
+ tab === "metadata" ? /* @__PURE__ */ jsx(DebugMetadata, { metadata }) : void 0,
44736
+ tab === "taskStatuses" ? /* @__PURE__ */ jsx(DebugTaskStatuses, { taskStatuses }) : void 0,
44737
+ tab === "experimentsSettings" ? /* @__PURE__ */ jsx(DebugExperimentsAndSettings, { experiments, settings }) : void 0,
44738
+ tab === "legalEntityData" ? /* @__PURE__ */ jsx(DebugLegalEntityData, { legalEntityData }) : void 0
44739
+ ] }),
44740
+ " "
44741
+ ] }) }),
44742
+ /* @__PURE__ */ jsx(ModalFooter, { children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__footer", children: /* @__PURE__ */ jsxs("div", { children: [
44743
+ /* @__PURE__ */ jsx(
44744
+ Button,
44745
+ {
44746
+ label: "Copy debug info",
44747
+ "aria-label": "Copy debug info",
44748
+ icon: "document",
44749
+ onClick: () => {
44750
+ copyToClipboard().catch((error) => {
44751
+ logger.error("Error copying to clipboard:", error);
44752
+ });
44891
44753
  }
44892
- ]
44893
- }
44894
- )
44895
- ] });
44896
- const footer = /* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__footer", children: /* @__PURE__ */ jsxs("div", { children: [
44897
- /* @__PURE__ */ jsx(
44898
- Button,
44899
- {
44900
- label: "Copy debug info",
44901
- "aria-label": "Copy debug info",
44902
- icon: "document",
44903
- onClick: () => {
44904
- copyToClipboard().catch((error) => {
44905
- logger.error("Error copying to clipboard:", error);
44906
- });
44907
44754
  }
44908
- }
44909
- ),
44910
- debugInfoCopied ? /* @__PURE__ */ jsxs("span", { className: "adyen-kyc-debug-modal__footer--copy-status", children: [
44911
- /* @__PURE__ */ jsx(Icon, { name: "check" }),
44912
- " Copied!"
44913
- ] }) : void 0
44914
- ] }) });
44915
- return /* @__PURE__ */ jsx(Modal, { size: "fullscreen", header: header2, footer, onClose: onExit, children: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-debug-modal__content", children: [
44916
- tab === "metadata" ? /* @__PURE__ */ jsx(DebugMetadata, { metadata }) : void 0,
44917
- tab === "taskStatuses" ? /* @__PURE__ */ jsx(DebugTaskStatuses, { taskStatuses }) : void 0,
44918
- tab === "experimentsSettings" ? /* @__PURE__ */ jsx(DebugExperimentsAndSettings, { experiments, settings }) : void 0,
44919
- tab === "legalEntityData" ? /* @__PURE__ */ jsx(DebugLegalEntityData, { legalEntityData }) : void 0
44920
- ] }) }) });
44755
+ ),
44756
+ debugInfoCopied ? /* @__PURE__ */ jsxs("span", { className: "adyen-kyc-debug-modal__footer--copy-status", children: [
44757
+ /* @__PURE__ */ jsx(Icon, { name: "check" }),
44758
+ " Copied!"
44759
+ ] }) : void 0
44760
+ ] }) }) })
44761
+ ] });
44921
44762
  };
44922
44763
  const DebugWrapper = ({
44923
44764
  rootLegalEntityId,
@@ -45436,7 +45277,8 @@ const pciDropinSchema = {
45436
45277
  };
45437
45278
  const createTransferInstrumentComponentSchema = {
45438
45279
  onSubmitSuccess: { type: "function" },
45439
- legalEntityId: { type: "string", required: true }
45280
+ legalEntityId: { type: "string", required: true },
45281
+ modalView: { type: "boolean" }
45440
45282
  };
45441
45283
  const manageTransferInstrumentComponentSchema = {
45442
45284
  onAdd: { type: "function" },
@@ -45486,6 +45328,22 @@ const updateLegalEntityForHighExposureComponentSchema = {
45486
45328
  legalEntityId: { type: "string", required: true },
45487
45329
  onSubmitSuccess: { type: "function" }
45488
45330
  };
45331
+ const sourceOfFundsDropinSchema = {
45332
+ handleUpdateLegalEntity: { type: "function", required: true },
45333
+ onSubmit: { type: "function" },
45334
+ capabilities: { type: "array" },
45335
+ country: { type: "string", required: true },
45336
+ legalEntityResponse: {
45337
+ type: "object",
45338
+ required: true,
45339
+ propertiesSchema: {
45340
+ id: { type: "string", required: true },
45341
+ type: { type: "string", exactValue: LegalEntityType.ORGANIZATION, required: true },
45342
+ capabilities: { type: "object", required: true },
45343
+ organization: organizationPropSchema
45344
+ }
45345
+ }
45346
+ };
45489
45347
  const componentsSchemaMap = {
45490
45348
  payoutAccount: payoutAccountSchema,
45491
45349
  soleProprietorDropin: solePropDropinSchema,
@@ -45505,7 +45363,8 @@ const componentsSchemaMap = {
45505
45363
  createTransferInstrumentComponent: createTransferInstrumentComponentSchema,
45506
45364
  viewVerificationStatusComponent: viewVerificationStatusComponentSchema,
45507
45365
  updateLegalEntityForHighExposureComponent: updateLegalEntityForHighExposureComponentSchema,
45508
- onboardingDropinComponent: onboardingDropinComponentSchema
45366
+ onboardingDropinComponent: onboardingDropinComponentSchema,
45367
+ sourceOfFundsDropin: sourceOfFundsDropinSchema
45509
45368
  };
45510
45369
  const validateComponentName = (componentName) => {
45511
45370
  if (!componentName) {