@adyen/kyc-components 3.42.3 → 3.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/es/adyen-kyc-components.es.js +863 -1026
  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 +6 -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,
@@ -11815,7 +11815,7 @@ function Dropzone(props) {
11815
11815
  isRequired && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-error-text", children: i18n.get("fieldIsRequired") })
11816
11816
  ] });
11817
11817
  }
11818
- const logger$K = createLogger("TextArea");
11818
+ const logger$L = createLogger("TextArea");
11819
11819
  function TextArea(props) {
11820
11820
  const { classNameModifiers, uniqueId, ...passedProps } = props;
11821
11821
  const {
@@ -11832,7 +11832,7 @@ function TextArea(props) {
11832
11832
  const { i18n } = useI18nContext();
11833
11833
  const [value, setValue] = useState("");
11834
11834
  if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
11835
- logger$K.error("Error: Form fields that rely on InputBase may not have an onChange property");
11835
+ logger$L.error("Error: Form fields that rely on InputBase may not have an onChange property");
11836
11836
  }
11837
11837
  const handleInput = (e) => {
11838
11838
  var _a;
@@ -12251,7 +12251,7 @@ const styles$a = {
12251
12251
  "financial-information-reported-value-options": "adyen-kyc-financial-information-reported-value-options",
12252
12252
  financialInformationReportedValueOptions
12253
12253
  };
12254
- const logger$J = createLogger("InputCurrency");
12254
+ const logger$K = createLogger("InputCurrency");
12255
12255
  const determineDecimalSeparator = (formatter) => formatter.formatToParts(0.1).find((part) => part.type === "decimal").value;
12256
12256
  const determineCurrencySymbol = (formatter) => formatter.formatToParts(0).find((part) => part.type === "currency").value;
12257
12257
  const getNumberFromFormattedCurrency = (formatted, decimalSeparator) => {
@@ -12282,7 +12282,7 @@ const InputCurrency = ({
12282
12282
  const rawValue = e.target.value;
12283
12283
  const value = getNumberFromFormattedCurrency(rawValue, decimalSeparator);
12284
12284
  if (Number.isNaN(value)) {
12285
- logger$J.warn(`Unable to get number from formatted currency: "${rawValue}"`);
12285
+ logger$K.warn(`Unable to get number from formatted currency: "${rawValue}"`);
12286
12286
  setText(isUndefinedOrNull(amount) ? currencySymbol : formatter.format(amount));
12287
12287
  return;
12288
12288
  }
@@ -12752,7 +12752,7 @@ function FieldContainer$1(props) {
12752
12752
  }
12753
12753
  return renderField(fieldName);
12754
12754
  }
12755
- const logger$I = createLogger("SearchAddress");
12755
+ const logger$J = createLogger("SearchAddress");
12756
12756
  const SearchAddress = ({
12757
12757
  data,
12758
12758
  legalEntityId,
@@ -12787,7 +12787,7 @@ const SearchAddress = ({
12787
12787
  const response = await handleFindAddress(selectedAddressId);
12788
12788
  autocompleteAddressForm(response);
12789
12789
  } catch (e) {
12790
- logger$I.error(e);
12790
+ logger$J.error(e);
12791
12791
  } finally {
12792
12792
  setFindLoading(false);
12793
12793
  }
@@ -12801,7 +12801,7 @@ const SearchAddress = ({
12801
12801
  );
12802
12802
  setItems((response == null ? void 0 : response.results) || []);
12803
12803
  } catch (e) {
12804
- logger$I.error(e);
12804
+ logger$J.error(e);
12805
12805
  } finally {
12806
12806
  setSearchLoading(false);
12807
12807
  }
@@ -12853,7 +12853,7 @@ const SearchAddress = ({
12853
12853
  setItems([]);
12854
12854
  }
12855
12855
  } catch (e) {
12856
- logger$I.error(e);
12856
+ logger$J.error(e);
12857
12857
  } finally {
12858
12858
  setSearchLoading(false);
12859
12859
  }
@@ -13497,7 +13497,7 @@ AddressForm.defaultProps = {
13497
13497
  requiredFields: ADDRESS_SCHEMA,
13498
13498
  countryCode: null
13499
13499
  };
13500
- const logger$H = createLogger("AddressFieldContainer");
13500
+ const logger$I = createLogger("AddressFieldContainer");
13501
13501
  const formatAddressItem = (item) => {
13502
13502
  if (item.description.includes("Addresses")) {
13503
13503
  const splittedDescription = item.description.split(" - ");
@@ -13640,7 +13640,7 @@ function FieldContainer({
13640
13640
  setItems([]);
13641
13641
  }
13642
13642
  } catch (e) {
13643
- logger$H.error(e);
13643
+ logger$I.error(e);
13644
13644
  } finally {
13645
13645
  setSearchLoading(false);
13646
13646
  }
@@ -13658,7 +13658,7 @@ function FieldContainer({
13658
13658
  );
13659
13659
  setItems((response == null ? void 0 : response.results) ?? []);
13660
13660
  } catch (e) {
13661
- logger$H.error(e);
13661
+ logger$I.error(e);
13662
13662
  } finally {
13663
13663
  setSearchLoading(false);
13664
13664
  }
@@ -13697,7 +13697,7 @@ function FieldContainer({
13697
13697
  });
13698
13698
  }
13699
13699
  } catch (e) {
13700
- logger$H.error(e);
13700
+ logger$I.error(e);
13701
13701
  } finally {
13702
13702
  setFindLoading(false);
13703
13703
  }
@@ -14912,6 +14912,7 @@ var TaskTypes = /* @__PURE__ */ ((TaskTypes2) => {
14912
14912
  TaskTypes2["CAPABILITY_REJECTED"] = "CAPABILITY_REJECTED";
14913
14913
  TaskTypes2["SINGPASS_SELECTION"] = "SINGPASS_SELECTION";
14914
14914
  TaskTypes2["LEGAL_REPRESENTATIVE_DETAILS"] = "LEGAL_REPRESENTATIVE_DETAILS";
14915
+ TaskTypes2["SOURCE_OF_FUNDS"] = "SOURCE_OF_FUNDS";
14915
14916
  return TaskTypes2;
14916
14917
  })(TaskTypes || {});
14917
14918
  var TaskStatus = /* @__PURE__ */ ((TaskStatus2) => {
@@ -15003,9 +15004,6 @@ const COUNTRIES_THAT_USES_UEN_OR_GST = [CountryCodes.Singapore];
15003
15004
  const COUNTRIES_USING_COMPANY_SEARCH = [
15004
15005
  CountryCodes.UnitedStates
15005
15006
  ];
15006
- [
15007
- CountryCodes.UnitedKingdom
15008
- ];
15009
15007
  const COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [
15010
15008
  CountryCodes.UnitedKingdom
15011
15009
  ];
@@ -15104,14 +15102,14 @@ const rules$3 = ({
15104
15102
  }
15105
15103
  },
15106
15104
  countryOfGoverningLawRequired: () => {
15107
- var _a, _b, _c;
15105
+ var _a, _b;
15108
15106
  if ("companyNameAndCountry" in data) {
15109
- if (((_a = data.companyNameAndCountry) == null ? void 0 : _a.country) === "GB" && ((_b = data.companyNameAndCountry) == null ? void 0 : _b.differentCountryOfGoverningLaw)) {
15107
+ if (((_a = data.companyNameAndCountry) == null ? void 0 : _a.country) === CountryCodes.UnitedKingdom) {
15110
15108
  return "REQUIRED";
15111
15109
  }
15112
15110
  }
15113
15111
  if ("basicInformation" in data) {
15114
- if (isExperimentEnabled("EnableCountryOfGoverningLawForUKCompanies") && ((_c = data.basicInformation) == null ? void 0 : _c.country) === "GB") {
15112
+ if (isExperimentEnabled("EnableCountryOfGoverningLawForUKCompanies") && ((_b = data.basicInformation) == null ? void 0 : _b.country) === CountryCodes.UnitedKingdom) {
15115
15113
  return "REQUIRED";
15116
15114
  }
15117
15115
  }
@@ -15197,7 +15195,7 @@ const rules$3 = ({
15197
15195
  }
15198
15196
  }
15199
15197
  });
15200
- const logger$G = createLogger("mapPayoutAccountSchemaToApiBankAccount");
15198
+ const logger$H = createLogger("mapPayoutAccountSchemaToApiBankAccount");
15201
15199
  const getAccountIdentificationFromPayoutAccountSchema = (payoutAccount, bankCountry) => {
15202
15200
  var _a;
15203
15201
  if ("iban" in payoutAccount && payoutAccount.iban)
@@ -15277,7 +15275,7 @@ const getAccountIdentificationFromPayoutAccountSchema = (payoutAccount, bankCoun
15277
15275
  routingNumber: payoutAccount.branchCode
15278
15276
  };
15279
15277
  default:
15280
- logger$G.log(`${bankCountry.toLowerCase()}Local is not a configured region`);
15278
+ logger$H.log(`${bankCountry.toLowerCase()}Local is not a configured region`);
15281
15279
  return {
15282
15280
  type: `${bankCountry.toLowerCase()}Local`,
15283
15281
  accountNumber: payoutAccount.bankAccountNumber
@@ -15810,10 +15808,6 @@ const mapLegalEntityToCompany = (legalEntity) => {
15810
15808
  }
15811
15809
  companyCompData.companyRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
15812
15810
  }
15813
- companyCompData.companyNameAndCountry = transformCountryOfGoverningLawToSchema(
15814
- companyCompData.companyNameAndCountry,
15815
- legalEntity.organization
15816
- );
15817
15811
  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
15812
  companyCompData.companyRegistrationDetails = {
15819
15813
  ...companyCompData.companyRegistrationDetails,
@@ -15962,10 +15956,6 @@ const mapLegalEntityToSoleProp = (legalEntity) => {
15962
15956
  }
15963
15957
  solePropCompData.solePropRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
15964
15958
  }
15965
- solePropCompData.solePropNameAndCountry = transformCountryOfGoverningLawToSchema(
15966
- solePropCompData.solePropNameAndCountry,
15967
- legalEntity.soleProprietorship
15968
- );
15969
15959
  solePropCompData.solePropRegistrationDetails = {
15970
15960
  ...solePropCompData.solePropRegistrationDetails,
15971
15961
  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 +16492,7 @@ const initOnfido = async ({
16502
16492
  language: getOnfidoLocaleConfig(i18n)
16503
16493
  });
16504
16494
  };
16505
- const logger$F = createLogger("IdVerification");
16495
+ const logger$G = createLogger("IdVerification");
16506
16496
  function IdVerification({
16507
16497
  userDetails,
16508
16498
  legalEntityId,
@@ -16530,7 +16520,7 @@ function IdVerification({
16530
16520
  onIdVerificationComplete,
16531
16521
  language: getOnfidoLocaleConfig(i18n)
16532
16522
  });
16533
- })().catch(logger$F.error);
16523
+ })().catch(logger$G.error);
16534
16524
  return async () => {
16535
16525
  if (onfidoSdk.current) await onfidoSdk.current.tearDown();
16536
16526
  };
@@ -16571,7 +16561,7 @@ function IdDocumentAlreadyUpload(props) {
16571
16561
  ] })
16572
16562
  ] });
16573
16563
  }
16574
- const logger$E = createLogger("IdDocumentInstantVerification");
16564
+ const logger$F = createLogger("IdDocumentInstantVerification");
16575
16565
  const idVerificationSchema = [
16576
16566
  "instantIdVerificationData",
16577
16567
  "idDocumentType"
@@ -16651,7 +16641,7 @@ function IdDocumentInstantVerification(props) {
16651
16641
  userDetails,
16652
16642
  legalEntityId,
16653
16643
  onIdVerificationComplete: handleIdVerificationComplete,
16654
- onIdVerificationError: logger$E.error
16644
+ onIdVerificationError: logger$F.error
16655
16645
  }
16656
16646
  ),
16657
16647
  /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-document-upload__manual-upload", children: [
@@ -17027,7 +17017,7 @@ const phoneFormatters = {
17027
17017
  };
17028
17018
  const phoneFields = ["phoneNumber"];
17029
17019
  const DEFAULT_PHONE_PREFIX = "+1";
17030
- const logger$D = createLogger("PhoneInput");
17020
+ const logger$E = createLogger("PhoneInput");
17031
17021
  const usePhonePrefixes = () => {
17032
17022
  const [phonePrefixes, setPhonePrefixes] = useState();
17033
17023
  useEffect(() => {
@@ -17035,7 +17025,7 @@ const usePhonePrefixes = () => {
17035
17025
  const loaded = (await import("./phonePrefixes-zV4hciyK.js")).default;
17036
17026
  setPhonePrefixes(loaded);
17037
17027
  };
17038
- loadPhonePrefixes().catch(logger$D.error);
17028
+ loadPhonePrefixes().catch(logger$E.error);
17039
17029
  }, []);
17040
17030
  return phonePrefixes;
17041
17031
  };
@@ -20934,7 +20924,6 @@ const ActionBar = ({
20934
20924
  homeButtonLabel,
20935
20925
  backButtonLabel,
20936
20926
  nextButtonLabel,
20937
- hideOnHomeButton,
20938
20927
  hideBackButton,
20939
20928
  hideNextButton,
20940
20929
  nextButtonDisabled = false
@@ -20956,19 +20945,17 @@ const ActionBar = ({
20956
20945
  label: nextButtonLabel,
20957
20946
  className: "adyen-action-bar__button",
20958
20947
  onClick: onNext,
20959
- testId: "nextBtn",
20960
20948
  disabled: nextButtonDisabled
20961
20949
  }
20962
20950
  )
20963
20951
  ] }),
20964
- onHome && homeButtonLabel && !hideOnHomeButton && /* @__PURE__ */ jsx("div", { className: "adyen-action-bar__action", children: /* @__PURE__ */ jsx(
20952
+ onHome && homeButtonLabel && /* @__PURE__ */ jsx("div", { className: "adyen-action-bar__action", children: /* @__PURE__ */ jsx(
20965
20953
  Button,
20966
20954
  {
20967
20955
  className: "adyen-action-bar__button",
20968
20956
  label: homeButtonLabel,
20969
20957
  secondary: true,
20970
- onClick: () => onHome(),
20971
- testId: "homeBtn"
20958
+ onClick: () => onHome()
20972
20959
  }
20973
20960
  ) })
20974
20961
  ] });
@@ -21018,7 +21005,7 @@ class AdyenKycSdkError extends Error {
21018
21005
  }
21019
21006
  let sdkToken;
21020
21007
  let fetchSdkToken;
21021
- const logger$C = createLogger("Session");
21008
+ const logger$D = createLogger("Session");
21022
21009
  const setSdkToken = (token) => {
21023
21010
  sdkToken = token;
21024
21011
  };
@@ -21043,7 +21030,7 @@ const refreshSession = async () => {
21043
21030
  setSdkToken(token);
21044
21031
  isSessionRefreshed = true;
21045
21032
  } catch (e) {
21046
- logger$C.error("Failed to fetch sdk token", e);
21033
+ logger$D.error("Failed to fetch sdk token", e);
21047
21034
  }
21048
21035
  return isSessionRefreshed;
21049
21036
  };
@@ -21053,7 +21040,7 @@ const addAnimationStartListener = (element, listener) => {
21053
21040
  const removeAnimationStartListener = (element, listener) => {
21054
21041
  element.removeEventListener("animationstart", listener, false);
21055
21042
  };
21056
- const logger$B = createLogger("Fetch");
21043
+ const logger$C = createLogger("Fetch");
21057
21044
  const getRequestObject = (options, data) => {
21058
21045
  const { headers = [], method = "GET", authentication } = options;
21059
21046
  let authHeaders;
@@ -21094,10 +21081,10 @@ const logFetchError = (message, level) => {
21094
21081
  case "info":
21095
21082
  case "warn":
21096
21083
  case "error":
21097
- logger$B[level](message);
21084
+ logger$C[level](message);
21098
21085
  break;
21099
21086
  default:
21100
- logger$B.error(message);
21087
+ logger$C.error(message);
21101
21088
  }
21102
21089
  };
21103
21090
  const handleFetchResponse = async (response, responseType) => {
@@ -21181,7 +21168,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
21181
21168
  const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
21182
21169
  const MOUNT_TIMEOUT = 10 * 1e3;
21183
21170
  const TINK_VENDOR = "Tink";
21184
- const logger$A = createLogger("iframeWidget");
21171
+ const logger$B = createLogger("iframeWidget");
21185
21172
  const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
21186
21173
  const isTerminalMessageData = (data) => isObjectData(data) && Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
21187
21174
  const parseMessageJson = (message) => {
@@ -21199,7 +21186,7 @@ const callbackErrorHandler = async (response) => {
21199
21186
  try {
21200
21187
  await response;
21201
21188
  } catch (ex) {
21202
- logger$A.error(ex);
21189
+ logger$B.error(ex);
21203
21190
  }
21204
21191
  return {
21205
21192
  error: "UNKNOWN_ERROR",
@@ -21295,7 +21282,7 @@ class IFrameWidget {
21295
21282
  message = responseData.errorMessage;
21296
21283
  }
21297
21284
  } catch (ex) {
21298
- logger$A.error(ex);
21285
+ logger$B.error(ex);
21299
21286
  }
21300
21287
  throw new AdyenKycSdkError(reason, jsonData.error);
21301
21288
  }
@@ -21607,9 +21594,8 @@ function BankVerification(props) {
21607
21594
  heading,
21608
21595
  setBankVerificationError,
21609
21596
  onBack,
21610
- hideDropinLayout,
21597
+ hideSidebar,
21611
21598
  setBankInfoValidated,
21612
- hideOnHomeButton,
21613
21599
  bankInfoValidated,
21614
21600
  formIsActive,
21615
21601
  createTrustedTransferInstrument: createTrustedTransferInstrument2,
@@ -21647,8 +21633,7 @@ function BankVerification(props) {
21647
21633
  (propData == null ? void 0 : propData.verifiedCurrencyCode) ?? ((_a = currencyByCountry[country]) == null ? void 0 : _a[0])
21648
21634
  );
21649
21635
  setBankInfoValidated == null ? void 0 : setBankInfoValidated(true);
21650
- hideDropinLayout == null ? void 0 : hideDropinLayout(false);
21651
- hideOnHomeButton == null ? void 0 : hideOnHomeButton(true);
21636
+ hideSidebar == null ? void 0 : hideSidebar(false);
21652
21637
  triggerValidation();
21653
21638
  await (refreshLegalEntity == null ? void 0 : refreshLegalEntity());
21654
21639
  };
@@ -21668,8 +21653,8 @@ function BankVerification(props) {
21668
21653
  });
21669
21654
  }, [data, valid, errors, isValid]);
21670
21655
  useEffect(() => {
21671
- hideDropinLayout == null ? void 0 : hideDropinLayout(formIsActive && !bankInfoValidated);
21672
- return () => hideDropinLayout == null ? void 0 : hideDropinLayout(false);
21656
+ hideSidebar == null ? void 0 : hideSidebar(formIsActive && !bankInfoValidated);
21657
+ return () => hideSidebar == null ? void 0 : hideSidebar(false);
21673
21658
  }, [bankInfoValidated, formIsActive]);
21674
21659
  return /* @__PURE__ */ jsxs(Fragment, { children: [
21675
21660
  /* @__PURE__ */ jsx(StateContextSetter, { owner: ACCOUNT_VERIFICATION, stateRef }),
@@ -23015,16 +23000,7 @@ function Card({
23015
23000
  }
23016
23001
  );
23017
23002
  }
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
- }) => {
23003
+ const Modal = ({ children, size = "medium", onBack, onClose }) => {
23028
23004
  const dialogRef = useRef(null);
23029
23005
  useLayoutEffect(() => {
23030
23006
  const dialogElement = dialogRef.current;
@@ -23052,49 +23028,16 @@ const Modal = ({
23052
23028
  "adyen-kyc-modal--with-backButton": onBack
23053
23029
  }),
23054
23030
  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
- ] })
23031
+ children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-modal__wrapper", children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-modal__main", children: [
23032
+ /* @__PURE__ */ jsx("div", { className: "adyen-kyc-modal-button", children: /* @__PURE__ */ jsx(Button, { tertiary: true, "aria-label": "close", icon: "cross", onClick: onClose, shaded: true }) }),
23033
+ children
23034
+ ] }) })
23095
23035
  }
23096
23036
  );
23097
23037
  };
23038
+ const ModalHeader = ({ children }) => /* @__PURE__ */ jsx("header", { className: "adyen-kyc-modal__header", children });
23039
+ const ModalContent = ({ children }) => /* @__PURE__ */ jsx("section", { className: "adyen-kyc-modal__content", children });
23040
+ const ModalFooter = ({ children }) => /* @__PURE__ */ jsx("footer", { className: "adyen-kyc-modal__footer", children });
23098
23041
  const PreferInstantVerificationMethod = ({
23099
23042
  loadingStatus,
23100
23043
  provider,
@@ -23155,21 +23098,18 @@ const PreferInstantVerificationMethod = ({
23155
23098
  Button,
23156
23099
  {
23157
23100
  type: "button",
23158
- label: i18n.get("addAccountWith", {
23101
+ label: hideVerificationWidget ? i18n.get("addAccountWith", {
23159
23102
  values: { providerName: iconName ? "" : provider.name }
23160
- }),
23103
+ }) : void 0,
23161
23104
  className: styles$6.preferInstantVerificationMethodInstantButton,
23162
23105
  onClick: handleClickInstantButton,
23163
23106
  disabled: bankInfoValidated,
23107
+ loading: !hideVerificationWidget,
23164
23108
  icon: iconName,
23165
23109
  iconPosition: "right",
23166
23110
  block: true
23167
23111
  }
23168
23112
  ) : /* @__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
23113
  return /* @__PURE__ */ jsxs("div", { className: styles$6.preferInstantVerificationMethod, children: [
23174
23114
  loadingStatus === "loading" ? /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-margin-bottom-8", children: /* @__PURE__ */ jsx(Skeleton, { height: "2.5rem" }) }) : InstantButton,
23175
23115
  /* @__PURE__ */ jsx(
@@ -23205,16 +23145,14 @@ const PreferInstantVerificationMethod = ({
23205
23145
  }
23206
23146
  ) : void 0
23207
23147
  ] }),
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
23148
+ isModalOpen ? /* @__PURE__ */ jsxs(Modal, { size: "small", onClose: () => setIsModalOpen(false), children: [
23149
+ /* @__PURE__ */ jsx(ModalHeader, { children: i18n.get("manuallyAddAccountQuestion") }),
23150
+ /* @__PURE__ */ jsx(ModalContent, { children: i18n.get("addingAndVerifiyingABankAccount") }),
23151
+ /* @__PURE__ */ jsx(ModalFooter, { children: /* @__PURE__ */ jsxs("div", { className: styles$6.preferInstantVerificationMethodModalFooter, children: [
23152
+ /* @__PURE__ */ jsx(Button, { label: i18n.get("yesContinue"), onClick: handleClickContinue, secondary: true }),
23153
+ /* @__PURE__ */ jsx(Button, { onClick: () => setIsModalOpen(false), label: i18n.get("cancel") })
23154
+ ] }) })
23155
+ ] }) : void 0
23218
23156
  ] });
23219
23157
  };
23220
23158
  const PayoutVerificationMethodOptionIcon = ({
@@ -23560,11 +23498,8 @@ function PayoutDetails(props) {
23560
23498
  provider,
23561
23499
  bankVendorsLoadingStatus,
23562
23500
  instantVerificationAvailable,
23563
- setHideDropinLayout,
23564
- setHideOnHomeButton,
23501
+ setHideSidebar,
23565
23502
  setSkipSubmit,
23566
- setHideFooter,
23567
- setSubmitButtonLabel,
23568
23503
  createTrustedTransferInstrument: createTrustedTransferInstrument2,
23569
23504
  handleBankVerificationError: handleBankVerificationError2,
23570
23505
  accountDetailsFromInput,
@@ -23600,7 +23535,6 @@ function PayoutDetails(props) {
23600
23535
  useEffect(() => {
23601
23536
  if ((activeForm == null ? void 0 : activeForm.formId) === summaryStep.formId && verifyInstantly) {
23602
23537
  setSkipSubmit == null ? void 0 : setSkipSubmit(true);
23603
- setSubmitButtonLabel == null ? void 0 : setSubmitButtonLabel("continue");
23604
23538
  }
23605
23539
  }, [activeForm]);
23606
23540
  const [bankInfoValidated, setBankInfoValidated] = useState(false);
@@ -23655,8 +23589,7 @@ function PayoutDetails(props) {
23655
23589
  createTrustedTransferInstrument: createTrustedTransferInstrument2,
23656
23590
  handleBankVerificationError: handleBankVerificationError2,
23657
23591
  setBankVerificationError: setInstantVerificationError,
23658
- refreshLegalEntity,
23659
- setHideFooter
23592
+ refreshLegalEntity
23660
23593
  }
23661
23594
  ) })
23662
23595
  }
@@ -23674,9 +23607,8 @@ function PayoutDetails(props) {
23674
23607
  provider,
23675
23608
  country: bankCountry,
23676
23609
  onBack,
23677
- hideDropinLayout: setHideDropinLayout,
23610
+ hideSidebar: setHideSidebar,
23678
23611
  setBankVerificationError: setInstantVerificationError,
23679
- hideOnHomeButton: setHideOnHomeButton,
23680
23612
  bankInfoValidated,
23681
23613
  setBankInfoValidated,
23682
23614
  formIsActive: (activeForm == null ? void 0 : activeForm.formId) === PayoutAccountVerificationFormID,
@@ -25817,7 +25749,6 @@ const useFormComposer = ({
25817
25749
  baseTrackingPayload,
25818
25750
  forms,
25819
25751
  formRef,
25820
- submitButtonLabel,
25821
25752
  externalBackClick,
25822
25753
  onSubmit
25823
25754
  }) => {
@@ -25903,20 +25834,15 @@ const useFormComposer = ({
25903
25834
  trackNavigation({ fromForm, toForm, component: "ActionBar", baseTrackingPayload, i18n });
25904
25835
  }
25905
25836
  };
25906
- const nextButtonLabel = isFinalStep ? i18n.get(submitButtonLabel ?? "submit") : i18n.get("next");
25907
25837
  const backClickHandler = isFirstStep ? externalBackClick : handleBackClick;
25908
25838
  return {
25909
25839
  handleBackClick: backClickHandler,
25910
25840
  handleNextClick,
25911
- hideHomeButton: isFirstStep,
25912
- hideBackButton: isFinalStep,
25913
- nextButtonLabel,
25914
25841
  gotoFormByFormIndex,
25915
25842
  activeForm,
25916
25843
  shouldValidate,
25917
25844
  setShouldValidate,
25918
- currentStep,
25919
- totalSteps
25845
+ steps: { current: currentStep, total: totalSteps }
25920
25846
  };
25921
25847
  };
25922
25848
  const obscuredPayoutFields = ["bankAccountNumber", "iban"];
@@ -25977,7 +25903,7 @@ const useUnifyLoadingStatus = (setParentLoadingStatus, ...childLoadingStatuses)
25977
25903
  setParentLoadingStatus(loadingStatus);
25978
25904
  }, [...childLoadingStatuses]);
25979
25905
  };
25980
- const logger$z = createLogger("useScenarioConfiguration");
25906
+ const logger$A = createLogger("useScenarioConfiguration");
25981
25907
  const useScenarioConfiguration = ({
25982
25908
  getConfigurationData,
25983
25909
  getPayoutAccountFormatData,
@@ -26000,12 +25926,12 @@ const useScenarioConfiguration = ({
26000
25926
  const response = await getConfigurationData();
26001
25927
  setConfigurationResponse(response);
26002
25928
  } catch (err) {
26003
- logger$z.warn("WARNING: Configuration request failed - error:", err);
25929
+ logger$A.warn("WARNING: Configuration request failed - error:", err);
26004
25930
  } finally {
26005
25931
  setConfigurationLoadingStatus("success");
26006
25932
  }
26007
25933
  };
26008
- makeConfigCallAndSave().catch(logger$z.error);
25934
+ makeConfigCallAndSave().catch(logger$A.error);
26009
25935
  }, [getConfigurationData, setConfigurationLoadingStatus]);
26010
25936
  useEffect(() => {
26011
25937
  if (!getPayoutAccountFormatData) return;
@@ -26024,12 +25950,12 @@ const useScenarioConfiguration = ({
26024
25950
  const defaultAccountFormat = defaultPayoutAccountFormat[country] ?? allowedBankAccountFormats[0];
26025
25951
  setAccountFormat(existingBankAccountFormat ?? defaultAccountFormat);
26026
25952
  } catch (err) {
26027
- logger$z.warn("WARNING: Payout format request failed - error:", err);
25953
+ logger$A.warn("WARNING: Payout format request failed - error:", err);
26028
25954
  } finally {
26029
25955
  setpayoutFormatLoadingStatus("success");
26030
25956
  }
26031
25957
  };
26032
- makePayoutFormatCallAndSave().catch(logger$z.error);
25958
+ makePayoutFormatCallAndSave().catch(logger$A.error);
26033
25959
  }, [
26034
25960
  country,
26035
25961
  setAccountFormat,
@@ -27054,7 +26980,8 @@ function AdditionalInformation({
27054
26980
  handleChangeFor,
27055
26981
  resetToDefaultData,
27056
26982
  setErrors,
27057
- setValid
26983
+ setValid,
26984
+ setData
27058
26985
  } = useForm({
27059
26986
  schema: getFormSchema2,
27060
26987
  defaultData: mergedDefaultData,
@@ -27291,7 +27218,8 @@ function AdditionalInformation({
27291
27218
  mask: formUtils.getMask("eInvoicingCode"),
27292
27219
  guidanceText: formUtils.getFieldGuidanceText(EINVOICING_CODE_FIELD),
27293
27220
  readonly: formUtils.isReadOnly("eInvoicingCode"),
27294
- handleChangeFor
27221
+ handleChangeFor,
27222
+ setData
27295
27223
  }
27296
27224
  ) }),
27297
27225
  showField(DATE_OF_INCORPORATION_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
@@ -27608,7 +27536,7 @@ function BusinessInformationCard({
27608
27536
  }
27609
27537
  );
27610
27538
  }
27611
- const logger$y = createLogger("BusinessSelection");
27539
+ const logger$z = createLogger("BusinessSelection");
27612
27540
  function BusinessSelection({
27613
27541
  showCompanyStructure,
27614
27542
  searching,
@@ -27660,7 +27588,7 @@ function BusinessSelection({
27660
27588
  setCurrentBusinessSelection(businessData);
27661
27589
  }
27662
27590
  } catch (e) {
27663
- logger$y.error(e);
27591
+ logger$z.error(e);
27664
27592
  }
27665
27593
  },
27666
27594
  [basicInformation == null ? void 0 : basicInformation.stateOrProvince, fetchBusinessData, fetching, selectedBusinessId]
@@ -27674,7 +27602,7 @@ function BusinessSelection({
27674
27602
  handleNextClick == null ? void 0 : handleNextClick();
27675
27603
  }
27676
27604
  } catch (e) {
27677
- logger$y.error(e);
27605
+ logger$z.error(e);
27678
27606
  }
27679
27607
  },
27680
27608
  [currentTin, handleNextClick, handleBusinessVerification]
@@ -27882,7 +27810,7 @@ function BasicInformation({
27882
27810
  const getFormSchema2 = useCallback(
27883
27811
  (currentData) => {
27884
27812
  const fieldsToRemove = [];
27885
- if (!currentData.differentCountryOfGoverningLaw) {
27813
+ if (currentData.country !== CountryCodes.UnitedKingdom) {
27886
27814
  fieldsToRemove.push("countryOfGoverningLaw");
27887
27815
  }
27888
27816
  return (requiredFields == null ? void 0 : requiredFields.filter((field) => !fieldsToRemove.includes(field))) ?? ["country"];
@@ -28103,6 +28031,7 @@ function BasicInformation({
28103
28031
  CountryOfGoverningLawField,
28104
28032
  {
28105
28033
  data: formUtils.getFieldData(formData, COUNTRY_OF_GOVERNING_LAW_FIELD),
28034
+ country: sliceData == null ? void 0 : sliceData.country,
28106
28035
  valid: formUtils.getFieldValid(formValid, COUNTRY_OF_GOVERNING_LAW_FIELD),
28107
28036
  errors: formUtils.getFieldErrors(
28108
28037
  formErrors,
@@ -28443,14 +28372,24 @@ const mapBasicInformation = (data) => {
28443
28372
  return acc;
28444
28373
  }, {});
28445
28374
  };
28375
+ const mapDbaName = (legalEntity) => {
28376
+ var _a, _b;
28377
+ const dbaName = {};
28378
+ if ((_a = legalEntity.organization) == null ? void 0 : _a.doingBusinessAsAbsent) {
28379
+ dbaName.hasDba = false;
28380
+ } else if ((_b = legalEntity.organization) == null ? void 0 : _b.doingBusinessAs) {
28381
+ dbaName.hasDba = legalEntity.organization.doingBusinessAs !== legalEntity.organization.legalName;
28382
+ }
28383
+ return dbaName;
28384
+ };
28446
28385
  const mapAdditionalInformation = (data, legalEntity) => {
28447
- var _a, _b, _c, _d, _e, _f, _g;
28386
+ var _a, _b, _c, _d;
28448
28387
  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
28388
+ const dbaName = mapDbaName(legalEntity);
28389
+ const currentCountry = (_a = legalEntity.organization) == null ? void 0 : _a.registeredAddress.country;
28390
+ const operationalAddressIsSame = ((_b = legalEntity.organization) == null ? void 0 : _b.principalPlaceOfBusiness) && !objectsDeepEqual(
28391
+ (_c = legalEntity.organization) == null ? void 0 : _c.principalPlaceOfBusiness,
28392
+ (_d = legalEntity.organization) == null ? void 0 : _d.registeredAddress
28454
28393
  ) ? operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME : operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
28455
28394
  return entriesOf(data).reduce(
28456
28395
  (acc, [field]) => {
@@ -29181,25 +29120,22 @@ const ExpiryModal = ({ secondsUntilExpiry, onContinue }) => {
29181
29120
  const { i18n } = useI18nContext();
29182
29121
  const { minutes, leftoverSeconds } = getDurationInMinutesAndSeconds(secondsUntilExpiry);
29183
29122
  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
- );
29123
+ return /* @__PURE__ */ jsxs(Modal, { size: "small", onClose: onContinue, children: [
29124
+ /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsx(Typography, { variant: "title", children: i18n.get("sessionTimeout") }) }),
29125
+ /* @__PURE__ */ jsx(ModalContent, { children: /* @__PURE__ */ jsx(Typography, { variant: "body", children: hasExpired ? i18n.get("toProtectYourInformationThisSessionHasExpired") : i18n.get({
29126
+ key: "thisSessionWillExpireIn",
29127
+ values: {
29128
+ timeUntilExpiry: formatMinutesAndSeconds(minutes, leftoverSeconds, i18n)
29129
+ }
29130
+ }) }) }),
29131
+ /* @__PURE__ */ jsx(ModalFooter, { children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-expiry-modal__footer", children: /* @__PURE__ */ jsx(
29132
+ Button,
29133
+ {
29134
+ label: hasExpired ? i18n.get("close") : i18n.get("continue"),
29135
+ onClick: () => onContinue()
29136
+ }
29137
+ ) }) })
29138
+ ] });
29203
29139
  };
29204
29140
  const ALMOST_EXPIRED_THRESHOLD = 2 * 60 * 1e3;
29205
29141
  const checkIfAlmostExpired = (expiry) => {
@@ -29247,7 +29183,7 @@ const useExpiryThreshold = (expiry) => {
29247
29183
  return { expiryStatus: "notYetCloseToExpiry", secondsUntilExpiry: void 0 };
29248
29184
  };
29249
29185
  const ExpiryContext = createContext(false);
29250
- const logger$x = createLogger("ExpiryProvider");
29186
+ const logger$y = createLogger("ExpiryProvider");
29251
29187
  const ExpiryProvider = ({
29252
29188
  expiry: initialExpiry,
29253
29189
  eventEmitter,
@@ -29276,7 +29212,7 @@ const ExpiryProvider = ({
29276
29212
  refreshExpiry().then((newExpiry) => {
29277
29213
  setExpiry(newExpiry);
29278
29214
  setModalDismissed(false);
29279
- }).catch(logger$x.error);
29215
+ }).catch(logger$y.error);
29280
29216
  }
29281
29217
  }
29282
29218
  ),
@@ -29298,7 +29234,7 @@ const ExpiryProvider = ({
29298
29234
  return /* @__PURE__ */ jsx(ExpiryContext.Provider, { value: expiryStatus === "expired", children });
29299
29235
  };
29300
29236
  const useHasExpired = () => useContext(ExpiryContext);
29301
- const logger$w = createLogger("FormRouterContextProvider");
29237
+ const logger$x = createLogger("FormRouterContextProvider");
29302
29238
  function FormRouterContextProvider({
29303
29239
  children,
29304
29240
  forms,
@@ -29321,7 +29257,7 @@ function FormRouterContextProvider({
29321
29257
  if (formIndex > -1) {
29322
29258
  setFormIndex(formIndex);
29323
29259
  } else {
29324
- logger$w.error("No form was found to have that field so form navigation failed.");
29260
+ logger$x.error("No form was found to have that field so form navigation failed.");
29325
29261
  }
29326
29262
  }
29327
29263
  }),
@@ -29329,6 +29265,9 @@ function FormRouterContextProvider({
29329
29265
  );
29330
29266
  return /* @__PURE__ */ jsx(FormRouterContext.Provider, { value: contextValue, children });
29331
29267
  }
29268
+ const MaybeModal = ({ children, inline = false, onClose, onBack }) => {
29269
+ return inline ? /* @__PURE__ */ jsx("div", { children }) : /* @__PURE__ */ jsx(Modal, { onClose, onBack, children });
29270
+ };
29332
29271
  const range = (stop, start = 0, step = 1) => Array.from({ length: (stop - start) / step + 1 }, (_, i) => start + i * step);
29333
29272
  const shouldHighlight = (active, current, fillBefore) => !fillBefore ? active === current : active >= current;
29334
29273
  const StepProgressIndicator = ({
@@ -29376,46 +29315,6 @@ const StepProgressIndicator = ({
29376
29315
  }
29377
29316
  );
29378
29317
  };
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
29318
  const FormNavigationItem = ({
29420
29319
  form,
29421
29320
  isActive,
@@ -29491,16 +29390,14 @@ function FormNavigation({
29491
29390
  ] });
29492
29391
  }
29493
29392
  const FormWrapper = ({
29393
+ asModal = false,
29494
29394
  summary: summary2,
29495
29395
  taskName: taskName2,
29496
29396
  children,
29497
29397
  handleNextClick,
29498
29398
  handleBackClick,
29499
- handleHomeClick,
29500
29399
  handleCloseClick,
29501
- nextButtonLabel,
29502
- backButtonLabel,
29503
- homeButtonLabel,
29400
+ handleHomeClick,
29504
29401
  loadingStatus,
29505
29402
  gotoFormByFormIndex,
29506
29403
  forms,
@@ -29508,32 +29405,18 @@ const FormWrapper = ({
29508
29405
  handleGetIdVerificationToken,
29509
29406
  validateForm,
29510
29407
  baseTrackingPayload,
29511
- hideDropinLayout,
29408
+ hideSidebar,
29512
29409
  hideFooter,
29513
- hideHomeButton,
29514
- hideBackButton,
29515
- hideNextButton,
29516
- hideNavigation,
29517
- asModal,
29518
29410
  canSubmit: canSubmit2,
29519
29411
  onSubmit,
29520
29412
  problems,
29521
- currentStep,
29522
- totalSteps
29413
+ steps
29523
29414
  }) => {
29524
29415
  var _a;
29525
29416
  const { i18n } = useI18nContext();
29526
29417
  const hasExpired = useHasExpired();
29527
29418
  const { data: summaryData, omitted, labels: labels2 } = summary2 || {};
29528
- const [isOpen, setIsOpen] = useState(true);
29529
29419
  const [finishLaterLoading, setFinishLaterLoading] = useState(false);
29530
- const onHomeClick = () => {
29531
- if (canSubmit2) {
29532
- onSubmit();
29533
- } else {
29534
- handleHomeClick == null ? void 0 : handleHomeClick();
29535
- }
29536
- };
29537
29420
  const showLegalCaption = ["solePropDetails", "companyDetails", "businessDetails"].includes(
29538
29421
  taskName2
29539
29422
  );
@@ -29556,109 +29439,78 @@ const FormWrapper = ({
29556
29439
  showTaxExemptedLegalCaption
29557
29440
  }
29558
29441
  ) });
29559
- const handleFinishLater = () => {
29442
+ const onHomeClick = () => {
29560
29443
  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"
29444
+ if (canSubmit2) {
29445
+ onSubmit().then(() => {
29446
+ setFinishLaterLoading(false);
29447
+ });
29448
+ } else {
29449
+ handleHomeClick == null ? void 0 : handleHomeClick();
29450
+ setFinishLaterLoading(false);
29579
29451
  }
29580
- );
29581
- const embeddedFooter = !hideFooter && /* @__PURE__ */ jsx(
29582
- EmbeddedActionBar,
29583
- {
29584
- left: /* @__PURE__ */ jsx(
29452
+ };
29453
+ const isFirstStep = steps.current === 0;
29454
+ const isFinalStep = steps.current === steps.total - 1;
29455
+ return /* @__PURE__ */ jsxs(MaybeModal, { inline: !asModal, onClose: handleCloseClick, onBack: handleBackClick, children: [
29456
+ /* @__PURE__ */ jsxs(ModalContent, { children: [
29457
+ /* @__PURE__ */ jsx(ModalHeader, {}),
29458
+ /* @__PURE__ */ jsxs(LoaderWrapper, { status: loadingStatus, formOpacityWhenLoading: 0.3, loaderSize: "large", children: [
29459
+ hasExpired && /* @__PURE__ */ jsx(ExpiredBanner, {}),
29460
+ /* @__PURE__ */ jsxs("div", { className: !hideSidebar ? "adyen-kyc-form-with-sidebar" : "", children: [
29461
+ !asModal && !hideSidebar && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__sidebar-wrapper", children: /* @__PURE__ */ jsx(
29462
+ FormNavigation,
29463
+ {
29464
+ forms,
29465
+ activeForm,
29466
+ gotoForm: gotoFormByFormIndex,
29467
+ validateForm,
29468
+ taskName: taskName2,
29469
+ trackNavigation: ({ fromForm, toForm, component }) => trackNavigation({ fromForm, toForm, component, baseTrackingPayload, i18n }),
29470
+ verificationErrors: problems == null ? void 0 : problems.verificationErrors
29471
+ }
29472
+ ) }),
29473
+ /* @__PURE__ */ jsxs(
29474
+ FormRouterContextProvider,
29475
+ {
29476
+ setFormIndex: gotoFormByFormIndex,
29477
+ forms,
29478
+ handleGetIdVerificationToken,
29479
+ children: [
29480
+ children,
29481
+ activeForm.formId === summaryStep.formId && summaryContent
29482
+ ]
29483
+ }
29484
+ )
29485
+ ] })
29486
+ ] })
29487
+ ] }),
29488
+ !hideFooter && /* @__PURE__ */ jsxs(ModalFooter, { children: [
29489
+ /* @__PURE__ */ jsx("div", { style: { width: "30%" }, children: /* @__PURE__ */ jsx(
29585
29490
  StepProgressIndicator,
29586
29491
  {
29587
- activeStepIndex: currentStep ?? 0,
29588
- stepsCount: totalSteps ?? 3,
29492
+ activeStepIndex: steps.current ?? 0,
29493
+ stepsCount: steps.total,
29589
29494
  fillBefore: true,
29590
29495
  thick: true
29591
29496
  }
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,
29497
+ ) }),
29498
+ /* @__PURE__ */ jsx("div", { style: { flex: "1" } }),
29499
+ !isFirstStep && handleBackClick && /* @__PURE__ */ jsx(Button, { secondary: true, label: i18n.get("back"), onClick: handleBackClick }),
29500
+ !isFirstStep && !isFinalStep && /* @__PURE__ */ jsx(
29501
+ Button,
29635
29502
  {
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
29503
+ label: i18n.get("finishLater"),
29504
+ secondary: true,
29505
+ icon: "save",
29506
+ onClick: onHomeClick,
29507
+ loading: finishLaterLoading
29643
29508
  }
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
- );
29509
+ ),
29510
+ !isFinalStep && /* @__PURE__ */ jsx(Button, { label: i18n.get("next"), onClick: handleNextClick }),
29511
+ isFinalStep && /* @__PURE__ */ jsx(Button, { label: i18n.get("submit"), onClick: handleNextClick })
29512
+ ] })
29513
+ ] });
29662
29514
  };
29663
29515
  var BusinessDetailsEvents = /* @__PURE__ */ ((BusinessDetailsEvents2) => {
29664
29516
  BusinessDetailsEvents2["TASK_START"] = "BusinessDetails_TaskStarted";
@@ -30113,11 +29965,11 @@ async function submit({
30113
29965
  }
30114
29966
  }
30115
29967
  const getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
30116
- if (!isCountryOfGoverningLawEnabled || (basicData == null ? void 0 : basicData.country) !== "GB") {
29968
+ if (!isCountryOfGoverningLawEnabled || (basicData == null ? void 0 : basicData.country) !== CountryCodes.UnitedKingdom) {
30117
29969
  return void 0;
30118
29970
  }
30119
- if (isCountryOfGoverningLawEnabled && (basicData == null ? void 0 : basicData.country) == "GB" && !(basicData == null ? void 0 : basicData.differentCountryOfGoverningLaw)) {
30120
- return "GB";
29971
+ if (isCountryOfGoverningLawEnabled && (basicData == null ? void 0 : basicData.country) === CountryCodes.UnitedKingdom && !(basicData == null ? void 0 : basicData.countryOfGoverningLaw)) {
29972
+ return CountryCodes.UnitedKingdom;
30121
29973
  }
30122
29974
  return basicData == null ? void 0 : basicData.countryOfGoverningLaw;
30123
29975
  };
@@ -30130,8 +29982,7 @@ function BusinessDetailsDropin({
30130
29982
  trackingConfig,
30131
29983
  capabilities,
30132
29984
  taskName: taskName2,
30133
- hideDropinLayout,
30134
- homeButtonLabel,
29985
+ hideSidebar,
30135
29986
  taskType = TaskTypes.BUSINESS_DETAILS,
30136
29987
  onChange,
30137
29988
  onSubmit: onExternalSubmit,
@@ -30354,13 +30205,11 @@ function BusinessDetailsDropin({
30354
30205
  const {
30355
30206
  handleNextClick,
30356
30207
  handleBackClick,
30357
- hideHomeButton,
30358
- hideBackButton,
30359
30208
  activeForm,
30360
30209
  shouldValidate,
30361
30210
  setShouldValidate,
30362
30211
  gotoFormByFormIndex,
30363
- nextButtonLabel
30212
+ steps
30364
30213
  } = useFormComposer({
30365
30214
  problems: currentProblems,
30366
30215
  baseTrackingPayload,
@@ -30439,35 +30288,7 @@ function BusinessDetailsDropin({
30439
30288
  () => showBusinessSelection && activeForm.formId === "basicInformation",
30440
30289
  [activeForm.formId, showBusinessSelection]
30441
30290
  );
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;
30446
- }
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;
30459
- if (isBusinessSelection) {
30460
- return searching === "loading" || fetching === "loading" || verifying === "loading" || resettingTrustedData === "loading" ? true : hideHomeButton;
30461
- }
30462
- }, [
30463
- currentCountry,
30464
- hideHomeButton,
30465
- isBusinessSelection,
30466
- searching,
30467
- fetching,
30468
- verifying,
30469
- resettingTrustedData
30470
- ]);
30291
+ const hideFooter = isBusinessSelection === true && (searching === "loading" || fetching === "loading" || verifying === "loading" || resettingTrustedData === "loading");
30471
30292
  const goToForm = useCallback(
30472
30293
  (index) => {
30473
30294
  if (!COUNTRIES_USING_COMPANY_SEARCH.includes(currentCountry))
@@ -30591,10 +30412,8 @@ function BusinessDetailsDropin({
30591
30412
  {
30592
30413
  taskName: taskName2 ?? "businessDetails",
30593
30414
  gotoFormByFormIndex: goToForm,
30594
- hideDropinLayout,
30595
- hideHomeButton: hideHome,
30596
- hideBackButton: hideBack,
30597
- hideNextButton: isBusinessSelection,
30415
+ hideSidebar,
30416
+ hideFooter,
30598
30417
  loadingStatus,
30599
30418
  forms,
30600
30419
  activeForm,
@@ -30604,12 +30423,10 @@ function BusinessDetailsDropin({
30604
30423
  problems: currentProblems,
30605
30424
  canSubmit: canSubmitForm,
30606
30425
  summary: summaryData,
30607
- homeButtonLabel,
30608
- nextButtonLabel,
30609
- backButtonLabel: i18n.get("goBack"),
30610
30426
  handleNextClick: nextClick,
30611
30427
  handleBackClick: backClick,
30612
30428
  handleHomeClick,
30429
+ steps,
30613
30430
  children: /* @__PURE__ */ jsx(
30614
30431
  BusinessDetails,
30615
30432
  {
@@ -30688,10 +30505,9 @@ const formatFileSummaryData$1 = (companyRegistrationDocument, companyTaxDocument
30688
30505
  function CompanyDropin({
30689
30506
  country: parentCountry,
30690
30507
  problems: propProblems,
30691
- hideDropinLayout,
30508
+ hideSidebar,
30692
30509
  taskName: taskName2,
30693
30510
  capabilities,
30694
- homeButtonLabel,
30695
30511
  taskType = TaskTypes.COMPANY,
30696
30512
  trackingConfig,
30697
30513
  associationDetail,
@@ -30954,12 +30770,17 @@ function CompanyDropin({
30954
30770
  summaryData.companyNameAndCountry = getUpdatedCountryOfGoverningLaw(
30955
30771
  summaryData.companyNameAndCountry
30956
30772
  );
30773
+ summaryData.companyNameAndCountry.countryOfGoverningLaw = datasetUtils.getCountryName(
30774
+ summaryData.companyNameAndCountry.countryOfGoverningLaw
30775
+ );
30957
30776
  } else {
30958
30777
  summaryData.companyNameAndCountry.country = datasetUtils.getCountryName(
30959
30778
  summaryData.companyNameAndCountry.country
30960
30779
  );
30961
30780
  }
30962
- summaryData.companyNameAndCountry.countryRegionOfEstablishment = summaryData.companyNameAndCountry.country;
30781
+ summaryData.companyNameAndCountry.countryRegionOfEstablishment = datasetUtils.getCountryName(
30782
+ summaryData.companyNameAndCountry.country
30783
+ );
30963
30784
  delete summaryData.companyNameAndCountry.country;
30964
30785
  }
30965
30786
  if ((_a2 = summaryData.companyType) == null ? void 0 : _a2.entityType) {
@@ -31022,13 +30843,11 @@ function CompanyDropin({
31022
30843
  const {
31023
30844
  handleNextClick,
31024
30845
  handleBackClick,
31025
- hideHomeButton,
31026
- hideBackButton,
31027
30846
  activeForm,
31028
30847
  shouldValidate,
31029
30848
  setShouldValidate,
31030
30849
  gotoFormByFormIndex,
31031
- nextButtonLabel
30850
+ steps
31032
30851
  } = useFormComposer({
31033
30852
  problems,
31034
30853
  baseTrackingPayload,
@@ -31043,12 +30862,8 @@ function CompanyDropin({
31043
30862
  handleNextClick,
31044
30863
  gotoFormByFormIndex,
31045
30864
  handleHomeClick,
31046
- homeButtonLabel,
31047
30865
  handleBackClick,
31048
- hideDropinLayout,
31049
- hideHomeButton,
31050
- hideBackButton,
31051
- nextButtonLabel,
30866
+ hideSidebar,
31052
30867
  loadingStatus,
31053
30868
  forms,
31054
30869
  activeForm,
@@ -31063,6 +30878,7 @@ function CompanyDropin({
31063
30878
  keys: ["operationalAddressIsSame"]
31064
30879
  }
31065
30880
  },
30881
+ steps,
31066
30882
  children: /* @__PURE__ */ jsx(
31067
30883
  Company,
31068
30884
  {
@@ -31086,7 +30902,7 @@ function CompanyDropin({
31086
30902
  }
31087
30903
  const IgnoreLocalStorageContext = createContext(false);
31088
30904
  const useIgnoreLocalStorage = () => useContext(IgnoreLocalStorageContext);
31089
- const logger$v = createLogger("useLocalStorage");
30905
+ const logger$w = createLogger("useLocalStorage");
31090
30906
  const useLocalStorage = (key, defaultValue, options) => {
31091
30907
  const { serializer, parser, syncData } = useMemo(
31092
30908
  () => ({
@@ -31106,7 +30922,7 @@ const useLocalStorage = (key, defaultValue, options) => {
31106
30922
  const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
31107
30923
  return res;
31108
30924
  } catch (err) {
31109
- logger$v.error(err);
30925
+ logger$w.error(err);
31110
30926
  return defaultValue;
31111
30927
  }
31112
30928
  });
@@ -31141,7 +30957,7 @@ const useLocalStorage = (key, defaultValue, options) => {
31141
30957
  try {
31142
30958
  updateLocalStorage();
31143
30959
  } catch (err) {
31144
- logger$v.error(err);
30960
+ logger$w.error(err);
31145
30961
  }
31146
30962
  }, [value, ignoreLocalStorage]);
31147
30963
  useEffect(() => {
@@ -31154,7 +30970,7 @@ const useLocalStorage = (key, defaultValue, options) => {
31154
30970
  setValue(event.newValue ? parser(event.newValue) : void 0);
31155
30971
  }
31156
30972
  } catch (err) {
31157
- logger$v.error(err);
30973
+ logger$w.error(err);
31158
30974
  }
31159
30975
  };
31160
30976
  if (ignoreLocalStorage) return;
@@ -31338,7 +31154,7 @@ const useSingpassMyInfoLogin = ({
31338
31154
  trustedEntityAssociations
31339
31155
  };
31340
31156
  };
31341
- const logger$u = createLogger("useAssociatedLegalArrangement");
31157
+ const logger$v = createLogger("useAssociatedLegalArrangement");
31342
31158
  function useAssociatedLegalArrangement({
31343
31159
  rootLegalEntity,
31344
31160
  getLegalEntity: getLegalEntity2
@@ -31354,7 +31170,7 @@ function useAssociatedLegalArrangement({
31354
31170
  (entity) => entity.type === LegalEntityType.SOLE_PROPRIETORSHIP || entity.type === LegalEntityType.TRUST
31355
31171
  );
31356
31172
  if (foundEntity == null ? void 0 : foundEntity.legalEntityId) {
31357
- getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$u.error);
31173
+ getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$v.error);
31358
31174
  }
31359
31175
  }, [getAssociatedEntity, rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations]);
31360
31176
  useEffect(() => {
@@ -31404,7 +31220,7 @@ const useCanSeeEntitySelection = (legalEntityId) => {
31404
31220
  setCanSeeEntitySelection: setCanSeeEntitySelectionIntoLocalStorage
31405
31221
  };
31406
31222
  };
31407
- const logger$t = createLogger("useExemptSettlor");
31223
+ const logger$u = createLogger("useExemptSettlor");
31408
31224
  const useExemptSettlor = ({
31409
31225
  trust,
31410
31226
  handleGetLegalEntity
@@ -31422,7 +31238,7 @@ const useExemptSettlor = ({
31422
31238
  );
31423
31239
  useEffect(() => {
31424
31240
  if (!(trust == null ? void 0 : trust.trust)) return;
31425
- updateExemptSettlor(trust).catch(logger$t.error);
31241
+ updateExemptSettlor(trust).catch(logger$u.error);
31426
31242
  }, [trust, updateExemptSettlor]);
31427
31243
  return exemptSettlor;
31428
31244
  };
@@ -31796,6 +31612,10 @@ const updateOrganizationExemptSettlorName = async ({
31796
31612
  };
31797
31613
  return handleUpdateLegalEntity(exemptSettlorPatch, exemptSettlor.legalEntityId);
31798
31614
  };
31615
+ const DropinLayout = ({ content, footer }) => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropin", children: [
31616
+ /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__content", children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__content-main", children: content }) }),
31617
+ footer && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__footer-container", children: footer })
31618
+ ] });
31799
31619
  function AccountSetupRejected() {
31800
31620
  const { i18n } = useI18nContext();
31801
31621
  const content = /* @__PURE__ */ jsxs("div", { children: [
@@ -32244,7 +32064,7 @@ const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
32244
32064
  phone
32245
32065
  };
32246
32066
  };
32247
- const logger$s = createLogger("CustomerSupport");
32067
+ const logger$t = createLogger("CustomerSupport");
32248
32068
  function CustomerSupport(props) {
32249
32069
  var _a, _b, _c, _d, _e, _f;
32250
32070
  const { i18n } = useI18nContext();
@@ -32278,7 +32098,7 @@ function CustomerSupport(props) {
32278
32098
  onSubmit();
32279
32099
  } catch {
32280
32100
  const label = i18n.get("failedToUpdateDetails");
32281
- logger$s.error(label, payload);
32101
+ logger$t.error(label, payload);
32282
32102
  showToast({ label, type: "error" });
32283
32103
  }
32284
32104
  };
@@ -33109,7 +32929,7 @@ const mapReceivedTaskType = (taskType) => {
33109
32929
  return taskType;
33110
32930
  }
33111
32931
  };
33112
- const logger$r = createLogger("taskStore");
32932
+ const logger$s = createLogger("taskStore");
33113
32933
  const computed = dist.createComputed(
33114
32934
  ({
33115
32935
  taskTypes,
@@ -33142,7 +32962,7 @@ const computed = dist.createComputed(
33142
32962
  transferInstruments
33143
32963
  });
33144
32964
  } catch (err) {
33145
- logger$r.error(`Could not calculate task status for ${taskIdentifier}. `, err);
32965
+ logger$s.error(`Could not calculate task status for ${taskIdentifier}. `, err);
33146
32966
  }
33147
32967
  return acc;
33148
32968
  }, {});
@@ -33194,7 +33014,7 @@ const useGetTaskStatus = () => {
33194
33014
  const taskIdentifier = id ? `${taskType}-${id}` : taskType;
33195
33015
  const status = (_a = taskStatuses[taskIdentifier]) == null ? void 0 : _a.status;
33196
33016
  if (status === void 0) {
33197
- logger$r.warn(`No status for task '${taskIdentifier}', returning UNKNOWN`);
33017
+ logger$s.warn(`No status for task '${taskIdentifier}', returning UNKNOWN`);
33198
33018
  return TaskStatus.UNKNOWN;
33199
33019
  }
33200
33020
  return status;
@@ -34197,6 +34017,7 @@ function TaskList({
34197
34017
  const handleOnNavigateToSoleProp = () => onNavigateToTask(TaskTypes.SOLE_PROPRIETOR_COMPANY);
34198
34018
  const handleOnNavigateToServiceAgreement = () => onNavigateToTask(TaskTypes.SERVICE_AGREEMENT);
34199
34019
  const handleOnNavigateToTaskLegalRepresentative = () => onNavigateToTask(TaskTypes.LEGAL_REPRESENTATIVE_DETAILS);
34020
+ const handleOnNavigateToSourceOfFunds = () => onNavigateToTask(TaskTypes.SOURCE_OF_FUNDS);
34200
34021
  const companyTaskDescriptionKey = isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
34201
34022
  const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
34202
34023
  const onEditBusinessSetupClick = () => {
@@ -34352,6 +34173,16 @@ function TaskList({
34352
34173
  }
34353
34174
  )
34354
34175
  ] }),
34176
+ tasks.includes(TaskTypes.SOURCE_OF_FUNDS) && /* @__PURE__ */ jsx(TaskListGroup, { title: i18n.get("financialProductInformation"), children: /* @__PURE__ */ jsx(
34177
+ TaskListItem,
34178
+ {
34179
+ onNavigateToTask: handleOnNavigateToSourceOfFunds,
34180
+ icon: "cash-stack",
34181
+ title: i18n.get("fundingSources"),
34182
+ status: getTaskStatus(TaskTypes.SOURCE_OF_FUNDS),
34183
+ problems: getOwnTrustProblems(legalEntityResponse, capabilityProblems)
34184
+ }
34185
+ ) }),
34355
34186
  (tasks.includes(TaskTypes.PAYOUT) || tasks.includes(TaskTypes.PAYIN)) && !hidePayoutAccountTaskExperiment && /* @__PURE__ */ jsx(
34356
34187
  TaskListGroup,
34357
34188
  {
@@ -34901,7 +34732,7 @@ const validators = ({
34901
34732
  })
34902
34733
  });
34903
34734
  const parseConfiguration$4 = ({ matchingScenario }) => parseIndividualScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.INDIVIDUAL]);
34904
- const logger$q = createLogger("IndividualDropin");
34735
+ const logger$r = createLogger("IndividualDropin");
34905
34736
  function IndividualDropin({
34906
34737
  handleCreateDocument,
34907
34738
  handleGetDocument,
@@ -34916,9 +34747,7 @@ function IndividualDropin({
34916
34747
  parentLegalEntity,
34917
34748
  legalEntityResponse,
34918
34749
  taskName: taskName2,
34919
- handleHomeClick,
34920
34750
  handleCloseClick,
34921
- homeButtonLabel,
34922
34751
  isTargetLegalEntityType,
34923
34752
  country: parentCountry,
34924
34753
  handleCreateLegalEntity,
@@ -34928,8 +34757,8 @@ function IndividualDropin({
34928
34757
  handleUpdateLegalEntity,
34929
34758
  trustMember,
34930
34759
  onSubmit: externalOnSubmit,
34931
- hideNavigation = false,
34932
34760
  asModal = false,
34761
+ hideSidebar,
34933
34762
  handleBackClick: externalBackClick,
34934
34763
  trustedFields,
34935
34764
  trustedFieldsProvider,
@@ -35164,11 +34993,11 @@ function IndividualDropin({
35164
34993
  );
35165
34994
  if (!formattedDocuments || formattedDocuments.length === 0) {
35166
34995
  if (existingAttachments == null ? void 0 : existingAttachments.length)
35167
- logger$q.log(
34996
+ logger$r.log(
35168
34997
  "User has already uploaded documents and is not changing them, nothing needs to be done"
35169
34998
  );
35170
34999
  else
35171
- logger$q.error(
35000
+ logger$r.error(
35172
35001
  `formattedDocuments is empty, but there are no existing documents. Something has gone wrong`
35173
35002
  );
35174
35003
  return;
@@ -35290,7 +35119,7 @@ function IndividualDropin({
35290
35119
  clearToasts();
35291
35120
  externalOnSubmit == null ? void 0 : externalOnSubmit(dataSubmitted);
35292
35121
  } catch (e) {
35293
- logger$q.error("Failed to update individual", e);
35122
+ logger$r.error("Failed to update individual", e);
35294
35123
  if (isValidationError(e)) {
35295
35124
  const validationErrors = processValidationErrors(e, TaskTypes.INDIVIDUAL);
35296
35125
  setProblems({ ...problems, validationErrors });
@@ -35417,15 +35246,11 @@ function IndividualDropin({
35417
35246
  const {
35418
35247
  handleNextClick,
35419
35248
  handleBackClick,
35420
- hideHomeButton,
35421
- hideBackButton,
35422
35249
  activeForm,
35423
35250
  shouldValidate,
35424
35251
  setShouldValidate,
35425
35252
  gotoFormByFormIndex,
35426
- nextButtonLabel,
35427
- currentStep,
35428
- totalSteps
35253
+ steps
35429
35254
  } = useFormComposer({
35430
35255
  problems,
35431
35256
  baseTrackingPayload,
@@ -35447,26 +35272,20 @@ function IndividualDropin({
35447
35272
  },
35448
35273
  handleBackClick,
35449
35274
  handleNextClick,
35450
- handleHomeClick,
35451
35275
  handleCloseClick,
35452
- hideHomeButton,
35453
- hideBackButton,
35454
35276
  hideFooter,
35277
+ hideSidebar,
35455
35278
  loadingStatus,
35456
35279
  forms,
35457
35280
  onSubmit,
35458
35281
  baseTrackingPayload,
35459
35282
  handleGetIdVerificationToken,
35460
35283
  gotoFormByFormIndex,
35461
- nextButtonLabel,
35462
- homeButtonLabel,
35463
35284
  validateForm: () => setShouldValidate(true),
35464
35285
  canSubmit: canSubmit2() && hasDataChanged(dataFromResponse, data),
35465
35286
  problems,
35466
- hideNavigation,
35467
35287
  asModal,
35468
- currentStep,
35469
- totalSteps,
35288
+ steps,
35470
35289
  children: /* @__PURE__ */ jsx(
35471
35290
  Individual,
35472
35291
  {
@@ -35499,7 +35318,7 @@ function IndividualDropin({
35499
35318
  }
35500
35319
  );
35501
35320
  }
35502
- const logger$p = createLogger("useBankConfigurationHandler");
35321
+ const logger$q = createLogger("useBankConfigurationHandler");
35503
35322
  const useBankConfigurationHandlers = ({
35504
35323
  handleGetBankVerificationVendors,
35505
35324
  bankAccountCountry,
@@ -35517,7 +35336,7 @@ const useBankConfigurationHandlers = ({
35517
35336
  const bankVerificationVendorsResponse = handleGetBankVerificationVendors ? await handleGetBankVerificationVendors(bankAccountCountry) : [];
35518
35337
  setProvider(bankVerificationVendorsResponse == null ? void 0 : bankVerificationVendorsResponse[0]);
35519
35338
  })().catch(() => {
35520
- logger$p.error();
35339
+ logger$q.error();
35521
35340
  setProvider(void 0);
35522
35341
  }).finally(() => {
35523
35342
  setLoadingStatus("success");
@@ -35641,17 +35460,18 @@ function PayoutDetailsDropin({
35641
35460
  problems: propProblems,
35642
35461
  onSubmit: externalOnSubmit,
35643
35462
  onChange,
35463
+ asModal = false,
35464
+ handleCloseClick,
35644
35465
  taskType: propTaskType,
35645
35466
  taskName: taskName2,
35646
35467
  capabilities,
35647
35468
  handleHomeClick,
35648
- homeButtonLabel,
35649
- hideNavigation,
35650
35469
  refreshLegalEntity,
35651
35470
  navigateBackToTaskList,
35652
35471
  handleCreateTrustedTransferInstrument,
35653
35472
  handleBankVerificationError: handleBankVerificationError2,
35654
- handleBackClick: externalBackClick
35473
+ handleBackClick: externalBackClick,
35474
+ hideSidebar
35655
35475
  }) {
35656
35476
  var _a, _b, _c, _d, _e, _f, _g;
35657
35477
  const { isEmbeddedDropin } = useAuthContext();
@@ -35698,11 +35518,8 @@ function PayoutDetailsDropin({
35698
35518
  } = useStateContext();
35699
35519
  const formValidity = currentState.validityByForm;
35700
35520
  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");
35521
+ const [hideFooterAndSidebar, setHideFooterAndSidebar] = useState(false);
35704
35522
  const [skipSubmit, setSkipSubmit] = useState(false);
35705
- const [hideOnHomeButton, setHideHomeButton] = useState(false);
35706
35523
  const [loadingStatus, setLoadingStatus] = useState("loading");
35707
35524
  const [bankVendorsLoadingStatus, setBankVendorsLoadingStatus] = useState("loading");
35708
35525
  const [configurationLoadingStatus, setConfigurationLoadingStatus] = useState("loading");
@@ -35986,18 +35803,15 @@ function PayoutDetailsDropin({
35986
35803
  const {
35987
35804
  handleNextClick,
35988
35805
  handleBackClick,
35989
- hideHomeButton,
35990
- hideBackButton,
35991
35806
  activeForm,
35992
35807
  shouldValidate,
35993
35808
  setShouldValidate,
35994
35809
  gotoFormByFormIndex,
35995
- nextButtonLabel
35810
+ steps
35996
35811
  } = useFormComposer({
35997
35812
  problems,
35998
35813
  baseTrackingPayload,
35999
35814
  forms,
36000
- submitButtonLabel,
36001
35815
  externalBackClick,
36002
35816
  onSubmit: skipSubmit ? () => {
36003
35817
  if (trustedTransferInstrumentId) {
@@ -36006,11 +35820,6 @@ function PayoutDetailsDropin({
36006
35820
  navigateBackToTaskList == null ? void 0 : navigateBackToTaskList();
36007
35821
  } : onSubmit
36008
35822
  });
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
35823
  const omittedForms = showWidgetInVerificationMethodStep && ((_g = data == null ? void 0 : data.payoutVerificationMethod) == null ? void 0 : _g.payoutVerificationMethod) === "instantVerification" ? [] : [payoutSteps.payoutVerificationMethod.formId];
36015
35824
  return /* @__PURE__ */ jsx(
36016
35825
  FormWrapper,
@@ -36029,23 +35838,19 @@ function PayoutDetailsDropin({
36029
35838
  handleBackClick,
36030
35839
  handleNextClick,
36031
35840
  handleHomeClick,
36032
- hideDropinLayout,
36033
- hideHomeButton: hideHomeButton || hideOnHomeButton,
36034
- hideBackButton,
36035
- hideFooter,
36036
- hideNavigation,
35841
+ handleCloseClick,
35842
+ hideSidebar: hideSidebar || hideFooterAndSidebar,
35843
+ hideFooter: hideFooterAndSidebar,
36037
35844
  loadingStatus,
35845
+ asModal,
36038
35846
  forms,
36039
35847
  onSubmit,
36040
35848
  baseTrackingPayload,
36041
35849
  gotoFormByFormIndex,
36042
- nextButtonLabel,
36043
- homeButtonLabel,
36044
35850
  validateForm: () => setShouldValidate(true),
36045
35851
  canSubmit: canSubmit2(),
36046
35852
  problems,
36047
- currentStep,
36048
- totalSteps,
35853
+ steps,
36049
35854
  children: /* @__PURE__ */ jsx(
36050
35855
  PayoutDetails,
36051
35856
  {
@@ -36058,11 +35863,9 @@ function PayoutDetailsDropin({
36058
35863
  problems,
36059
35864
  onBack: handleBackClick,
36060
35865
  accountHolder: accountHolder ?? getLegalEntityNameBasedOnType(legalEntityResponse),
36061
- setHideDropinLayout,
36062
- setSubmitButtonLabel,
36063
- setHideOnHomeButton: setHideHomeButton,
35866
+ setHideSidebar: setHideFooterAndSidebar,
35867
+ setHideFooter: setHideFooterAndSidebar,
36064
35868
  setSkipSubmit,
36065
- setHideFooter,
36066
35869
  onChange,
36067
35870
  legalEntityResponse,
36068
35871
  associatedLegalArrangement,
@@ -36109,6 +35912,10 @@ function ContractViewer({ contract, className, onExpandSection }) {
36109
35912
  }, [contract, adyenDocumentViewer, onExpandSection]);
36110
35913
  return /* @__PURE__ */ jsx("div", { ref: container, className: classNames });
36111
35914
  }
35915
+ const EmbeddedActionBar = ({ left, right }) => /* @__PURE__ */ jsxs("footer", { className: "adyen-kyc-embedded-action-bar", children: [
35916
+ /* @__PURE__ */ jsx("section", { children: left }),
35917
+ /* @__PURE__ */ jsx("section", { className: "adyen-kyc-embedded-action-bar-right", children: right })
35918
+ ] });
36112
35919
  const pciValidationRules = {
36113
35920
  signer: {
36114
35921
  modes: ["blur"],
@@ -36267,15 +36074,7 @@ function PciDropin({
36267
36074
  }
36268
36075
  )
36269
36076
  ] });
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 }) });
36077
+ 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
36078
  const endScreen = !needsSigning && /* @__PURE__ */ jsx(
36280
36079
  Splashscreen,
36281
36080
  {
@@ -37070,7 +36869,7 @@ const serviceAgreementValidationRules = {
37070
36869
  errorMessage: "fieldIsRequired"
37071
36870
  }
37072
36871
  };
37073
- const logger$o = createLogger("useServiceAgreement");
36872
+ const logger$p = createLogger("useServiceAgreement");
37074
36873
  const FALLBACK_LANGUAGE_CODE$1 = "en";
37075
36874
  const useServiceAgreement = ({
37076
36875
  handleGetServiceAgreement,
@@ -37100,7 +36899,7 @@ const useServiceAgreement = ({
37100
36899
  const contract = JSON.parse(decodeURIComponent(escape(window.atob(document2))));
37101
36900
  setServiceAgreement({ id, contract });
37102
36901
  };
37103
- requestAcceptedServiceAgreement().catch(logger$o.error).finally(() => setLoading("success"));
36902
+ requestAcceptedServiceAgreement().catch(logger$p.error).finally(() => setLoading("success"));
37104
36903
  }, [acceptanceId, handleViewAcceptedTermsOfServiceDocument]);
37105
36904
  useEffect(() => {
37106
36905
  const requestServiceAgreement = async () => {
@@ -37115,7 +36914,7 @@ const useServiceAgreement = ({
37115
36914
  }
37116
36915
  );
37117
36916
  if (!document2) {
37118
- logger$o.log('"document" field was missing in response');
36917
+ logger$p.log('"document" field was missing in response');
37119
36918
  return;
37120
36919
  }
37121
36920
  const contract = JSON.parse(decodeURIComponent(escape(window.atob(document2))));
@@ -37130,7 +36929,7 @@ const useServiceAgreement = ({
37130
36929
  throw err;
37131
36930
  }
37132
36931
  };
37133
- requestServiceAgreement().catch(logger$o.error);
36932
+ requestServiceAgreement().catch(logger$p.error);
37134
36933
  }, [
37135
36934
  handleGetServiceAgreement,
37136
36935
  handleServiceAgreementIsNotAvailableInThatLanguage,
@@ -37155,7 +36954,7 @@ const serviceAgreementTypesTranslationMapping = {
37155
36954
  adyenPccr: "pccr",
37156
36955
  adyenChargeCard: "chargeCardUserAgreement"
37157
36956
  };
37158
- const logger$n = createLogger("ServiceAgreementDropin");
36957
+ const logger$o = createLogger("ServiceAgreementDropin");
37159
36958
  const FALLBACK_LANGUAGE_CODE = "en";
37160
36959
  function ServiceAgreementDropin({
37161
36960
  legalEntityResponse,
@@ -37338,7 +37137,7 @@ function ServiceAgreementDropin({
37338
37137
  await requestAndDownload(i18n.languageCode);
37339
37138
  } catch {
37340
37139
  if (i18n.languageCode !== FALLBACK_LANGUAGE_CODE) {
37341
- await requestAndDownload(FALLBACK_LANGUAGE_CODE).catch(logger$n.error);
37140
+ await requestAndDownload(FALLBACK_LANGUAGE_CODE).catch(logger$o.error);
37342
37141
  return;
37343
37142
  }
37344
37143
  showToast({
@@ -37625,8 +37424,7 @@ function SolePropDropin({
37625
37424
  country: externalCountry,
37626
37425
  parentLegalEntity,
37627
37426
  legalEntityResponse,
37628
- homeButtonLabel,
37629
- hideDropinLayout,
37427
+ hideSidebar,
37630
37428
  onSubmit: onExternalSubmit,
37631
37429
  onChange,
37632
37430
  taskType,
@@ -37861,13 +37659,11 @@ function SolePropDropin({
37861
37659
  const {
37862
37660
  handleNextClick,
37863
37661
  handleBackClick,
37864
- hideHomeButton,
37865
- hideBackButton,
37866
37662
  activeForm,
37867
37663
  shouldValidate,
37868
37664
  setShouldValidate,
37869
37665
  gotoFormByFormIndex,
37870
- nextButtonLabel
37666
+ steps
37871
37667
  } = useFormComposer({
37872
37668
  problems,
37873
37669
  baseTrackingPayload,
@@ -37883,11 +37679,7 @@ function SolePropDropin({
37883
37679
  handleNextClick,
37884
37680
  gotoFormByFormIndex,
37885
37681
  handleHomeClick,
37886
- hideDropinLayout,
37887
- hideHomeButton,
37888
- hideBackButton,
37889
- nextButtonLabel,
37890
- homeButtonLabel,
37682
+ hideSidebar,
37891
37683
  loadingStatus,
37892
37684
  forms,
37893
37685
  activeForm,
@@ -37902,6 +37694,7 @@ function SolePropDropin({
37902
37694
  keys: ["operationalAddressIsSame"]
37903
37695
  }
37904
37696
  },
37697
+ steps,
37905
37698
  children: /* @__PURE__ */ jsx(
37906
37699
  SoleProp,
37907
37700
  {
@@ -37966,9 +37759,8 @@ function TrustDropin({
37966
37759
  problems: problemsProp,
37967
37760
  onSubmit: externalOnSubmit,
37968
37761
  onChange,
37969
- hideDropinLayout,
37970
- handleHomeClick,
37971
- homeButtonLabel
37762
+ hideSidebar,
37763
+ handleHomeClick
37972
37764
  }) {
37973
37765
  var _a;
37974
37766
  const { i18n } = useI18nContext();
@@ -38194,7 +37986,7 @@ function TrustDropin({
38194
37986
  shouldValidate,
38195
37987
  setShouldValidate,
38196
37988
  gotoFormByFormIndex,
38197
- nextButtonLabel
37989
+ steps
38198
37990
  } = useFormComposer({
38199
37991
  problems,
38200
37992
  baseTrackingPayload,
@@ -38209,15 +38001,13 @@ function TrustDropin({
38209
38001
  handleNextClick,
38210
38002
  handleBackClick,
38211
38003
  gotoFormByFormIndex,
38212
- nextButtonLabel,
38213
38004
  loadingStatus,
38214
38005
  forms,
38215
38006
  activeForm,
38216
38007
  baseTrackingPayload,
38217
38008
  onSubmit,
38218
- hideDropinLayout,
38009
+ hideSidebar,
38219
38010
  handleHomeClick,
38220
- homeButtonLabel,
38221
38011
  validateForm: () => setShouldValidate(true),
38222
38012
  canSubmit: canSubmit2(data) && hasDataChanged(dataFromResponse, data),
38223
38013
  problems,
@@ -38227,6 +38017,7 @@ function TrustDropin({
38227
38017
  keys: ["operationalAddressIsSame"]
38228
38018
  }
38229
38019
  },
38020
+ steps,
38230
38021
  children: /* @__PURE__ */ jsx(
38231
38022
  Trust,
38232
38023
  {
@@ -38369,6 +38160,14 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
38369
38160
  const hasOrganizationType = (_b = legalEntity.organization) == null ? void 0 : _b.type;
38370
38161
  return hasOwnEntityAssocation || !!hasOrganizationType;
38371
38162
  };
38163
+ const logger$n = createLogger("SourceOfFundsDropin");
38164
+ function SourceOfFundsDropin({ legalEntityResponse, country }) {
38165
+ const { i18n } = useI18nContext();
38166
+ useEffect(() => {
38167
+ logger$n.log(`Welcome to Source of funds. LE: ${legalEntityResponse.id}; Country: ${country}`);
38168
+ }, []);
38169
+ return /* @__PURE__ */ jsx("div", { children: i18n.get("sourceOfFunds") });
38170
+ }
38372
38171
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
38373
38172
  const logger$m = createLogger("DropinComposer");
38374
38173
  const isOrganizationSettlorWithExemptionReasonEnabled = (country) => country === CountryCodes.Australia;
@@ -39051,7 +38850,6 @@ function DropinComposer({
39051
38850
  setTargetLegalEntityType(void 0);
39052
38851
  },
39053
38852
  handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW),
39054
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39055
38853
  handleCreateLegalEntity: args.handleCreateLegalEntity,
39056
38854
  handleUpdateLegalEntity: args.handleUpdateLegalEntity,
39057
38855
  handleGetDocument: args.handleGetDocument,
@@ -39102,7 +38900,6 @@ function DropinComposer({
39102
38900
  onChange: handleOnChange,
39103
38901
  onSubmit: handleOnSubmit,
39104
38902
  handleHomeClick: navigateBack,
39105
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39106
38903
  handleCreateLegalEntity: args.handleCreateLegalEntity,
39107
38904
  handleUpdateLegalEntity: args.handleUpdateLegalEntity,
39108
38905
  handleGetDocument: args.handleGetDocument,
@@ -39137,7 +38934,6 @@ function DropinComposer({
39137
38934
  await handleOnSubmit(data);
39138
38935
  },
39139
38936
  handleHomeClick: navigateBack,
39140
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39141
38937
  handleCreateLegalEntity: args.handleCreateLegalEntity,
39142
38938
  handleUpdateLegalEntity: args.handleUpdateLegalEntity,
39143
38939
  handleGetDocument: args.handleGetDocument,
@@ -39166,7 +38962,6 @@ function DropinComposer({
39166
38962
  onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 2),
39167
38963
  handleBackClick: navigateBack,
39168
38964
  handleHomeClick: () => navigateTo(TaskTypes.TRUST_MEMBER_OVERVIEW),
39169
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39170
38965
  trustMember,
39171
38966
  handleCreateLegalEntity: args.handleCreateLegalEntity,
39172
38967
  handleUpdateLegalEntity: args.handleUpdateLegalEntity,
@@ -39200,7 +38995,6 @@ function DropinComposer({
39200
38995
  setTargetLegalEntityType(void 0);
39201
38996
  },
39202
38997
  handleHomeClick: navigateBack,
39203
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39204
38998
  handleAddressSearch: args.handleAddressSearch,
39205
38999
  handleFindAddress: args.handleFindAddress,
39206
39000
  isTargetLegalEntityType: targetLegalEntityType === LegalEntityType.ORGANIZATION,
@@ -39220,7 +39014,6 @@ function DropinComposer({
39220
39014
  legalEntityResponse: rootLegalEntity,
39221
39015
  capabilities,
39222
39016
  problems: getLegalEntityProblems(rootLegalEntity),
39223
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39224
39017
  country: ((_e = legalEntityResponse.organization) == null ? void 0 : _e.registeredAddress.country) ?? contextCountry,
39225
39018
  onChange: handleOnChange,
39226
39019
  onSubmit: async (data) => {
@@ -39264,7 +39057,6 @@ function DropinComposer({
39264
39057
  onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 2),
39265
39058
  handleBackClick: navigateBack,
39266
39059
  handleHomeClick: navigateBack,
39267
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39268
39060
  associationDetail: trustMember,
39269
39061
  handleAddressSearch: args.handleAddressSearch,
39270
39062
  handleFindAddress: args.handleFindAddress
@@ -39289,7 +39081,6 @@ function DropinComposer({
39289
39081
  onChange: handleOnChange,
39290
39082
  onSubmit: handleOnSubmit,
39291
39083
  handleHomeClick: navigateBack,
39292
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39293
39084
  navigateBackToTaskList: navigateBack,
39294
39085
  handleCreateTransferInstrument: args.handleCreateTransferInstrument,
39295
39086
  handleUpdateTransferInstrument: args.handleUpdateTransferInstrument,
@@ -39317,7 +39108,6 @@ function DropinComposer({
39317
39108
  onChange: handleOnChange,
39318
39109
  onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 1),
39319
39110
  handleHomeClick: navigateBack,
39320
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39321
39111
  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
39112
  handleAddressSearch: args.handleAddressSearch,
39323
39113
  handleFindAddress: args.handleFindAddress
@@ -39382,7 +39172,6 @@ function DropinComposer({
39382
39172
  onChange: handleOnChange,
39383
39173
  onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 1),
39384
39174
  handleHomeClick: navigateBack,
39385
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39386
39175
  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
39176
  handleAddressSearch: args.handleAddressSearch,
39388
39177
  handleFindAddress: args.handleFindAddress
@@ -39429,7 +39218,6 @@ function DropinComposer({
39429
39218
  onChange: handleOnChange,
39430
39219
  onSubmit: handleOnSubmit,
39431
39220
  handleHomeClick: navigateBack,
39432
- homeButtonLabel: i18n.get("saveAndGoToOverview"),
39433
39221
  handleCreateLegalEntity: args.handleCreateLegalEntity,
39434
39222
  handleUpdateLegalEntity: args.handleUpdateLegalEntity,
39435
39223
  handleGetDocument: args.handleGetDocument,
@@ -39441,6 +39229,19 @@ function DropinComposer({
39441
39229
  handleGetIdVerificationStartCheck: args.handleGetIdVerificationStartCheck
39442
39230
  }
39443
39231
  );
39232
+ case TaskTypes.SOURCE_OF_FUNDS:
39233
+ return /* @__PURE__ */ jsx(
39234
+ SourceOfFundsDropin,
39235
+ {
39236
+ country: rootLegalEntityCountry,
39237
+ legalEntityResponse: rootLegalEntity,
39238
+ handleUpdateLegalEntity: args.handleUpdateLegalEntity,
39239
+ capabilities,
39240
+ problems: getLegalEntityProblems(rootLegalEntity),
39241
+ onSubmit: handleOnSubmit,
39242
+ handleHomeClick: navigateBack
39243
+ }
39244
+ );
39444
39245
  default:
39445
39246
  return null;
39446
39247
  }
@@ -40334,8 +40135,8 @@ function CreateIndividualComponent({
40334
40135
  handleAddressSearch: isAddressEnabled ? searchAddress2 : void 0,
40335
40136
  handleGetIdVerificationToken: isIdDocumentEnabled ? getIdVerificationToken : void 0,
40336
40137
  handleGetIdVerificationStartCheck: isIdDocumentEnabled ? idVerificationStartCheck : void 0,
40337
- hideNavigation: true,
40338
40138
  asModal: isModalView,
40139
+ hideSidebar: true,
40339
40140
  onSubmit,
40340
40141
  handleCloseClick: handleOnClose,
40341
40142
  taskType
@@ -40347,6 +40148,9 @@ function CreateTransferInstrumentComponent({
40347
40148
  legalEntityId,
40348
40149
  transferInstrumentId,
40349
40150
  openBankingPartnerConfigId,
40151
+ modalView,
40152
+ onClose,
40153
+ onUnmount,
40350
40154
  onSubmitSuccess,
40351
40155
  handleBackClick
40352
40156
  }) {
@@ -40362,6 +40166,7 @@ function CreateTransferInstrumentComponent({
40362
40166
  createTrustedTransferInstrument: createTrustedTransferInstrument2,
40363
40167
  handleBankVerificationError: handleBankVerificationError2
40364
40168
  } = useComponentApi(legalEntityId);
40169
+ const { isModalView, setIsModalView } = useCoreContext();
40365
40170
  const [legalEntity, setLegalEntity] = useState();
40366
40171
  const [transferInstrument, setTransferInstrument] = useState();
40367
40172
  const [loadingStatus, setLoadingStatus] = useState("success");
@@ -40370,6 +40175,15 @@ function CreateTransferInstrumentComponent({
40370
40175
  getLegalEntity: getLegalEntity2
40371
40176
  });
40372
40177
  const { i18n } = useI18nContext();
40178
+ if (modalView) {
40179
+ setIsModalView(true);
40180
+ }
40181
+ const handleOnClose = () => {
40182
+ if (modalView) {
40183
+ onUnmount == null ? void 0 : onUnmount();
40184
+ }
40185
+ onClose == null ? void 0 : onClose();
40186
+ };
40373
40187
  const fetchLegalEntity = useCallback(async () => {
40374
40188
  const le = await getLegalEntity2(legalEntityId);
40375
40189
  setLegalEntity(le);
@@ -40405,12 +40219,14 @@ function CreateTransferInstrumentComponent({
40405
40219
  handleCreateTransferInstrument: createTransferInstrument2,
40406
40220
  handleUpdateTransferInstrument: updateTransferInstrument2,
40407
40221
  handleBackClick,
40408
- hideNavigation: true,
40222
+ handleCloseClick: handleOnClose,
40409
40223
  refreshLegalEntity: fetchLegalEntity,
40410
40224
  onSubmit: onSubmitSuccess,
40411
40225
  handleCreateTrustedTransferInstrument: createTrustedTransferInstrument2,
40412
40226
  handleBankVerificationError: handleBankVerificationError2,
40413
- taskType: TaskTypes.PAYOUT
40227
+ taskType: TaskTypes.PAYOUT,
40228
+ hideSidebar: true,
40229
+ asModal: isModalView
40414
40230
  }
40415
40231
  );
40416
40232
  }
@@ -40717,33 +40533,30 @@ const Confirm = ({ onConfirm, title, confirmBtnLabel, onClose }) => {
40717
40533
  onClose();
40718
40534
  }
40719
40535
  };
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" });
40536
+ return /* @__PURE__ */ jsxs(Modal, { size: "small", onClose, children: [
40537
+ /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsx(
40538
+ Typography,
40539
+ {
40540
+ variant: "title",
40541
+ el: "h3",
40542
+ className: "adyen-kyc-u-margin-top-8 adyen-kyc-u-margin-left-8",
40543
+ children: title
40544
+ }
40545
+ ) }),
40546
+ /* @__PURE__ */ jsxs(ModalFooter, { children: [
40547
+ /* @__PURE__ */ jsx("div", { style: { flex: "1" } }),
40548
+ /* @__PURE__ */ jsx(Button, { label: i18n.get("cancel"), onClick: onClose, secondary: true }),
40549
+ /* @__PURE__ */ jsx(
40550
+ Button,
40551
+ {
40552
+ label: confirmBtnLabel || i18n.get("confirm"),
40553
+ onClick: handleConfirm,
40554
+ critical: true,
40555
+ disabled: isInFlight
40556
+ }
40557
+ )
40558
+ ] })
40559
+ ] });
40747
40560
  };
40748
40561
  function ManageTransferInstrumentOverviewItemModal({
40749
40562
  status,
@@ -40804,15 +40617,6 @@ function ManageTransferInstrumentOverviewItemModal({
40804
40617
  }
40805
40618
  return summaries;
40806
40619
  };
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
40620
  const handleRemove = async () => {
40817
40621
  await onRemove(transferInstrument.id);
40818
40622
  onClose();
@@ -40825,50 +40629,58 @@ function ManageTransferInstrumentOverviewItemModal({
40825
40629
  setConfirmOpen(true);
40826
40630
  }
40827
40631
  };
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
40632
  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,
40633
+ /* @__PURE__ */ jsxs(Modal, { onClose, children: [
40634
+ /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsx(
40635
+ Typography,
40856
40636
  {
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
- )
40637
+ variant: "title-l",
40638
+ el: "h3",
40639
+ className: "adyen-kyc-manage-ti-overview-item-summary__header",
40640
+ children: i18n.get("bankAccount")
40868
40641
  }
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
- ] }) }),
40642
+ ) }),
40643
+ /* @__PURE__ */ jsx(ModalContent, { children: !transferInstrument ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-manage-ti-overview-item-summary", children: [
40644
+ !!((_b = (_a = problems.BankAccount) == null ? void 0 : _a[transferInstrument.id]) == null ? void 0 : _b.verificationErrors) && /* @__PURE__ */ jsx(
40645
+ VerificationErrorAlert,
40646
+ {
40647
+ className: "adyen-kyc-manage-ti-overview-item-summary__error",
40648
+ problems: (_c = problems.BankAccount) == null ? void 0 : _c[transferInstrument.id],
40649
+ children: /* @__PURE__ */ jsx(
40650
+ Button,
40651
+ {
40652
+ className: "adyen-kyc-manage-ti-overview-item-summary__error-button",
40653
+ label: i18n.get("editDetails"),
40654
+ tertiary: true,
40655
+ onClick: () => onEdit(transferInstrument.id)
40656
+ }
40657
+ )
40658
+ }
40659
+ ),
40660
+ getStructuredLists().map((listItems) => /* @__PURE__ */ jsx(Card, { className: "adyen-kyc-manage-ti-overview-item-summary__card", children: /* @__PURE__ */ jsx(StructuredList, { items: listItems }) }, listItems))
40661
+ ] }) }),
40662
+ transferInstrument && /* @__PURE__ */ jsxs(ModalFooter, { children: [
40663
+ /* @__PURE__ */ jsx("div", { style: { flex: "1" } }),
40664
+ /* @__PURE__ */ jsx(
40665
+ Button,
40666
+ {
40667
+ title: i18n.get("delete"),
40668
+ icon: "bin",
40669
+ secondary: true,
40670
+ disabled: isReviewInProgress,
40671
+ onClick: handleDeleteClick
40672
+ }
40673
+ ),
40674
+ showEditButton && /* @__PURE__ */ jsx(
40675
+ Button,
40676
+ {
40677
+ label: i18n.get("edit"),
40678
+ onClick: () => onEdit(transferInstrument.id),
40679
+ disabled: isReviewInProgress
40680
+ }
40681
+ )
40682
+ ] })
40683
+ ] }),
40872
40684
  confirmOpen && /* @__PURE__ */ jsx(
40873
40685
  Confirm,
40874
40686
  {
@@ -43119,8 +42931,8 @@ function HighExposureDropin(props) {
43119
42931
  activeForm,
43120
42932
  setShouldValidate,
43121
42933
  gotoFormByFormIndex,
43122
- nextButtonLabel,
43123
- shouldValidate
42934
+ shouldValidate,
42935
+ steps
43124
42936
  } = useFormComposer({
43125
42937
  problems,
43126
42938
  baseTrackingPayload,
@@ -43203,7 +43015,6 @@ function HighExposureDropin(props) {
43203
43015
  handleNextClick,
43204
43016
  handleBackClick,
43205
43017
  gotoFormByFormIndex,
43206
- nextButtonLabel,
43207
43018
  loadingStatus,
43208
43019
  forms,
43209
43020
  activeForm,
@@ -43219,6 +43030,7 @@ function HighExposureDropin(props) {
43219
43030
  keys: omittedSummaryKeys
43220
43031
  }
43221
43032
  },
43033
+ steps,
43222
43034
  children: /* @__PURE__ */ jsx("div", { children: renderActiveForm(activeForm || highExposureForms.company) })
43223
43035
  }
43224
43036
  );
@@ -43513,7 +43325,8 @@ const componentsMap = {
43513
43325
  managePCIComponent: ManagePCIComponent,
43514
43326
  signPCIComponent: SignPCIComponent,
43515
43327
  viewVerificationStatusComponent: ViewVerificationStatusComponent,
43516
- updateLegalEntityForHighExposureComponent: UpdateLegalEntityForHighExposure
43328
+ updateLegalEntityForHighExposureComponent: UpdateLegalEntityForHighExposure,
43329
+ sourceOfFundsDropin: SourceOfFundsDropin
43517
43330
  };
43518
43331
  const AuthProvider = ({
43519
43332
  children,
@@ -43983,7 +43796,7 @@ const ConfigurationApiProvider = ({
43983
43796
  }) => {
43984
43797
  const authContext = useAuthContext();
43985
43798
  const { isEmbeddedDropin, loadingContext } = authContext;
43986
- const sdkVersion = "3.42.3";
43799
+ const sdkVersion = "3.43.0";
43987
43800
  useAnalytics({
43988
43801
  onUserEvent,
43989
43802
  legalEntityId: rootLegalEntityId,
@@ -44102,7 +43915,7 @@ const useAllowedLocales = () => {
44102
43915
  }, []);
44103
43916
  return allowedLocales;
44104
43917
  };
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") });
43918
+ 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
43919
  const loadLocale = async (locale) => {
44107
43920
  const importForLocale = localeImports[`./locales/${locale}.json`];
44108
43921
  if (!importForLocale) {
@@ -44828,7 +44641,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
44828
44641
  const { i18n } = useI18nContext();
44829
44642
  const [tab, setTab] = useState("metadata");
44830
44643
  const metadata = {
44831
- sdkVersion: "3.42.3",
44644
+ sdkVersion: "3.43.0",
44832
44645
  locale: i18n.locale,
44833
44646
  rootLegalEntityId
44834
44647
  };
@@ -44865,59 +44678,65 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
44865
44678
  }
44866
44679
  setTab(tab2);
44867
44680
  };
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"
44681
+ return /* @__PURE__ */ jsxs(Modal, { size: "fullscreen", onClose: onExit, children: [
44682
+ /* @__PURE__ */ jsx(ModalHeader, { children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-debug-modal__header", children: [
44683
+ /* @__PURE__ */ jsx("h1", { children: "Debug" }),
44684
+ " ",
44685
+ /* @__PURE__ */ jsx(
44686
+ Tabs,
44687
+ {
44688
+ activeTab: tab,
44689
+ onChange: changeTab,
44690
+ tabs: [
44691
+ {
44692
+ name: "metadata",
44693
+ label: "Metadata"
44694
+ },
44695
+ {
44696
+ name: "experimentsSettings",
44697
+ label: "Experiments & Settings"
44698
+ },
44699
+ {
44700
+ name: "taskStatuses",
44701
+ label: "Task Statuses"
44702
+ },
44703
+ {
44704
+ name: "legalEntityData",
44705
+ label: "Legal Entity Data"
44706
+ }
44707
+ ]
44708
+ }
44709
+ )
44710
+ ] }) }),
44711
+ /* @__PURE__ */ jsx(ModalContent, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
44712
+ /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-debug-modal__content", children: [
44713
+ tab === "metadata" ? /* @__PURE__ */ jsx(DebugMetadata, { metadata }) : void 0,
44714
+ tab === "taskStatuses" ? /* @__PURE__ */ jsx(DebugTaskStatuses, { taskStatuses }) : void 0,
44715
+ tab === "experimentsSettings" ? /* @__PURE__ */ jsx(DebugExperimentsAndSettings, { experiments, settings }) : void 0,
44716
+ tab === "legalEntityData" ? /* @__PURE__ */ jsx(DebugLegalEntityData, { legalEntityData }) : void 0
44717
+ ] }),
44718
+ " "
44719
+ ] }) }),
44720
+ /* @__PURE__ */ jsx(ModalFooter, { children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__footer", children: /* @__PURE__ */ jsxs("div", { children: [
44721
+ /* @__PURE__ */ jsx(
44722
+ Button,
44723
+ {
44724
+ label: "Copy debug info",
44725
+ "aria-label": "Copy debug info",
44726
+ icon: "document",
44727
+ onClick: () => {
44728
+ copyToClipboard().catch((error) => {
44729
+ logger.error("Error copying to clipboard:", error);
44730
+ });
44891
44731
  }
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
44732
  }
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
- ] }) }) });
44733
+ ),
44734
+ debugInfoCopied ? /* @__PURE__ */ jsxs("span", { className: "adyen-kyc-debug-modal__footer--copy-status", children: [
44735
+ /* @__PURE__ */ jsx(Icon, { name: "check" }),
44736
+ " Copied!"
44737
+ ] }) : void 0
44738
+ ] }) }) })
44739
+ ] });
44921
44740
  };
44922
44741
  const DebugWrapper = ({
44923
44742
  rootLegalEntityId,
@@ -45436,7 +45255,8 @@ const pciDropinSchema = {
45436
45255
  };
45437
45256
  const createTransferInstrumentComponentSchema = {
45438
45257
  onSubmitSuccess: { type: "function" },
45439
- legalEntityId: { type: "string", required: true }
45258
+ legalEntityId: { type: "string", required: true },
45259
+ modalView: { type: "boolean" }
45440
45260
  };
45441
45261
  const manageTransferInstrumentComponentSchema = {
45442
45262
  onAdd: { type: "function" },
@@ -45486,6 +45306,22 @@ const updateLegalEntityForHighExposureComponentSchema = {
45486
45306
  legalEntityId: { type: "string", required: true },
45487
45307
  onSubmitSuccess: { type: "function" }
45488
45308
  };
45309
+ const sourceOfFundsDropinSchema = {
45310
+ handleUpdateLegalEntity: { type: "function", required: true },
45311
+ onSubmit: { type: "function" },
45312
+ capabilities: { type: "array" },
45313
+ country: { type: "string", required: true },
45314
+ legalEntityResponse: {
45315
+ type: "object",
45316
+ required: true,
45317
+ propertiesSchema: {
45318
+ id: { type: "string", required: true },
45319
+ type: { type: "string", exactValue: LegalEntityType.ORGANIZATION, required: true },
45320
+ capabilities: { type: "object", required: true },
45321
+ organization: organizationPropSchema
45322
+ }
45323
+ }
45324
+ };
45489
45325
  const componentsSchemaMap = {
45490
45326
  payoutAccount: payoutAccountSchema,
45491
45327
  soleProprietorDropin: solePropDropinSchema,
@@ -45505,7 +45341,8 @@ const componentsSchemaMap = {
45505
45341
  createTransferInstrumentComponent: createTransferInstrumentComponentSchema,
45506
45342
  viewVerificationStatusComponent: viewVerificationStatusComponentSchema,
45507
45343
  updateLegalEntityForHighExposureComponent: updateLegalEntityForHighExposureComponentSchema,
45508
- onboardingDropinComponent: onboardingDropinComponentSchema
45344
+ onboardingDropinComponent: onboardingDropinComponentSchema,
45345
+ sourceOfFundsDropin: sourceOfFundsDropinSchema
45509
45346
  };
45510
45347
  const validateComponentName = (componentName) => {
45511
45348
  if (!componentName) {