@adyen/kyc-components 3.20.2 → 3.21.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 (31) hide show
  1. package/dist/es/adyen-kyc-components.es.js +773 -331
  2. package/dist/style.css +841 -1300
  3. package/dist/types/components/Company/trustedFields.d.ts +7 -0
  4. package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +1 -1
  5. package/dist/types/components/Dropins/CompanyDropin/types.d.ts +2 -0
  6. package/dist/types/components/Dropins/HighExposureDropin/components/AdditionalFieldsForHighExposureParentCompany.d.ts +1 -1
  7. package/dist/types/components/Dropins/HighExposureDropin/components/AdditionalFieldsForHighExposureUltimateParentCompany.d.ts +1 -1
  8. package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureBusinessInformation.d.ts +2 -1
  9. package/dist/types/components/Dropins/HighExposureDropin/components/HighExposureOwnershipStructure.d.ts +4 -0
  10. package/dist/types/components/Dropins/HighExposureDropin/types.d.ts +80 -7
  11. package/dist/types/components/Dropins/HighExposureDropin/validate.d.ts +4 -1
  12. package/dist/types/components/EmbeddedDropins/UpdateLegalEntityForHighExposure/UpdateLegalEntityForHighExposure.d.ts +1 -1
  13. package/dist/types/components/Individual/types.d.ts +1 -1
  14. package/dist/types/components/internal/LegalFormField/LegalFormField.d.ts +1 -1
  15. package/dist/types/components/internal/LegalFormField/types.d.ts +4 -1
  16. package/dist/types/components/internal/NaceCodeField/NaceCodeField.d.ts +1 -1
  17. package/dist/types/components/internal/NaceCodeField/types.d.ts +5 -1
  18. package/dist/types/components/internal/Spinner/Spinner.d.ts +3 -4
  19. package/dist/types/components/internal/Tag/Tag.d.ts +6 -5
  20. package/dist/types/components/internal/Toast/types.d.ts +1 -1
  21. package/dist/types/components/internal/Typography/Typography.d.ts +3 -0
  22. package/dist/types/components/internal/Typography/types.d.ts +12 -0
  23. package/dist/types/core/Context/SettingsContext/types.d.ts +3 -1
  24. package/dist/types/core/models/api/legal-entity.d.ts +6 -0
  25. package/dist/types/core/models/api/trusted-fields-provider.d.ts +4 -0
  26. package/dist/types/utils/get-props.d.ts +0 -9
  27. package/dist/types/utils/roleMetadata.d.ts +3 -2
  28. package/package.json +1 -1
  29. package/dist/types/components/internal/Heading/Heading.d.ts +0 -10
  30. package/dist/types/components/internal/Spinner/index.d.ts +0 -1
  31. package/dist/types/components/internal/Tag/index.d.ts +0 -1
@@ -257,6 +257,7 @@ const validationPleaseEnterAValidStockISIN = "Please enter a valid ISIN. For exa
257
257
  const shareholderDocument = "Shareholder document";
258
258
  const role = "Role";
259
259
  const selectAllTheRolesThatThisDecisionMakerHolds = "Select all the roles that this decision-maker holds.";
260
+ const selectedSomeRolesBasedOnMyinfo = "We selected some roles based on Myinfo business data about your company's appointment holders and shareholders.";
260
261
  const selectTheApplicableRoles = "Select the applicable role(s)";
261
262
  const back = "Back";
262
263
  const next = "Next";
@@ -455,7 +456,6 @@ const issuedInTheLastXMonths = "Issued in the last %{number} months";
455
456
  const bankAccountVerification = "Bank account verification";
456
457
  const bankStatementDocument = "Bank statement";
457
458
  const requirements = "Requirements:";
458
- const ifDocumentMoreThan12months = "If your document is older than 12 months, then it should contain a statement with the company’s assets and liabilities. You will need to have it signed and dated by someone with decision-making or signing power within the company. Make sure the date, title, and legal entity name are included.";
459
459
  const whyDoINeedToFillInThisInformation = "Why do I need to fill in this information?";
460
460
  const reasonForFillingCompanyRegistrationDetails = "We have to make sure the businesses using our services will not be misusing the funds or causing harm. To do that, we’ll check all of this information against official records. This is a part of the financial regulations that we have to follow as a payments provider.";
461
461
  const reasonForFillingCompanyAddressDetails = "We have to make sure the businesses using our services will not be misusing the funds or causing harm. To do that, we’ll check all of this information against official records. This is a part of the financial regulations that we have to follow as a payments provider.";
@@ -469,7 +469,6 @@ const controllingPersonGuideDescription = "A <strong>controlling person</strong>
469
469
  const signatoryGuideDescription = "A <strong>signatory</strong> has been given authority to sign official documents on behalf of the company. Usually a signatory is also an owner or a controlling person.";
470
470
  const 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.";
471
471
  const someoneAppointedToManageACompanysBusinessAndAffairs = "Someone appointed to manage a company's business and affairs.";
472
- const whatIfDocumentIsMoreThan12MonthsOld = "What if my document is more than 12 months old?";
473
472
  const depositSlip = "Deposit slip";
474
473
  const screenshotOfOnlineBankingEnviroment = "Screenshot of online banking environment";
475
474
  const officialEmailOrALetterFromYourBank = "Official email or a letter from your bank";
@@ -1373,7 +1372,6 @@ const startANewSessionFromTheSamePlaceYouOriginallyAccessed = "Start a new sessi
1373
1372
  const differentCountryOfGoverningLaw = "This company has a different country/region of governing law";
1374
1373
  const countryOfGoverningLaw = "Country/region of governing law";
1375
1374
  const nationalInsuranceNumber = "National Insurance Number (NINO)";
1376
- const detailsForCapital = "Details for capital";
1377
1375
  const parentCompany = "Parent company";
1378
1376
  const ultimateParentCompany = "Ultimate parent company";
1379
1377
  const numberOfEmployees = "Number of employees";
@@ -1384,6 +1382,28 @@ const businessStructure = "Business structure";
1384
1382
  const selectOne = "Select one";
1385
1383
  const industryAndNaceCode = "Industry and NACE code";
1386
1384
  const youMustXYearsOldToContinue = "You must be at least %{minimumAge} years old to continue";
1385
+ const doesTheCompanyEarnMoreThanHalf = "Does the company earn more than 50% of its income from selling goods or non-financial services?";
1386
+ const doesYourCompanyHaveLEI = "Does your company have a Legal Entity Identifier (LEI)?";
1387
+ const anLEIIsAUniqueCode = "An LEI is a unique code that identifies legal entities, including companies, who engage in financial transactions.";
1388
+ const lookUpYourLEI = "Look up your LEI.";
1389
+ const legalEntityIdentifier = "Legal Entity Identifier (LEI)";
1390
+ const yourBusinessDetails = "Your business details";
1391
+ const progress = "Progress";
1392
+ const ownershipStructure = "Ownership structure";
1393
+ const isCompanyOwnedByAnotherCompany = "Is %{company} owned by another company?";
1394
+ const isParentOwnedByAnotherCompany = "Is your parent company owned by another company?";
1395
+ const thisMeansYouHaveAParentCompany = "If yes, this means you have a parent company, such as a global headquarters or a holding company.";
1396
+ const 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.";
1397
+ const additionalInformationIsRequiredForLoan = "Additional information is required to complete your capital loan application.";
1398
+ const beforeYourCapitalLoanApplicationCanBeSubmitted = "Before your capital loan application can be submitted, we need to collect a bit more information about you. All information collected here is required.";
1399
+ const legalName = "Legal name";
1400
+ const businessInformation = "Business information";
1401
+ const parentCompanyInformation = "Parent company information";
1402
+ const inTheLastStepOwnedByAParentCompany = "In the last step, you indicated that your business is owned by a parent company. We need to know some information about this company before submitting your application.";
1403
+ const ultimateParentCompanyInformation = "Ultimate parent company information";
1404
+ const inThePreviousStepOwnedByAnUltimateParentCompany = "In a previous step, you indicated that your business’ parent company was owned by an ultimate parent company. We need to know some information about this company before submitting your application.";
1405
+ const doesThisCompanyHaveLEI = "Does this company have a Legal Entity Identifier (LEI)?";
1406
+ const iDontKnow = "I don't know";
1387
1407
  const defaultTrans = {
1388
1408
  smartling,
1389
1409
  close,
@@ -1603,6 +1623,7 @@ const defaultTrans = {
1603
1623
  shareholderDocument,
1604
1624
  role,
1605
1625
  selectAllTheRolesThatThisDecisionMakerHolds,
1626
+ selectedSomeRolesBasedOnMyinfo,
1606
1627
  selectTheApplicableRoles,
1607
1628
  back,
1608
1629
  next,
@@ -1801,7 +1822,6 @@ const defaultTrans = {
1801
1822
  bankAccountVerification,
1802
1823
  bankStatementDocument,
1803
1824
  requirements,
1804
- ifDocumentMoreThan12months,
1805
1825
  whyDoINeedToFillInThisInformation,
1806
1826
  reasonForFillingCompanyRegistrationDetails,
1807
1827
  reasonForFillingCompanyAddressDetails,
@@ -1815,7 +1835,6 @@ const defaultTrans = {
1815
1835
  signatoryGuideDescription,
1816
1836
  directorGuideDescription,
1817
1837
  someoneAppointedToManageACompanysBusinessAndAffairs,
1818
- whatIfDocumentIsMoreThan12MonthsOld,
1819
1838
  depositSlip,
1820
1839
  screenshotOfOnlineBankingEnviroment,
1821
1840
  officialEmailOrALetterFromYourBank,
@@ -2729,7 +2748,6 @@ const defaultTrans = {
2729
2748
  differentCountryOfGoverningLaw,
2730
2749
  countryOfGoverningLaw,
2731
2750
  nationalInsuranceNumber,
2732
- detailsForCapital,
2733
2751
  parentCompany,
2734
2752
  ultimateParentCompany,
2735
2753
  numberOfEmployees,
@@ -2739,7 +2757,29 @@ const defaultTrans = {
2739
2757
  businessStructure,
2740
2758
  selectOne,
2741
2759
  industryAndNaceCode,
2742
- youMustXYearsOldToContinue
2760
+ youMustXYearsOldToContinue,
2761
+ doesTheCompanyEarnMoreThanHalf,
2762
+ doesYourCompanyHaveLEI,
2763
+ anLEIIsAUniqueCode,
2764
+ lookUpYourLEI,
2765
+ legalEntityIdentifier,
2766
+ yourBusinessDetails,
2767
+ progress,
2768
+ ownershipStructure,
2769
+ isCompanyOwnedByAnotherCompany,
2770
+ isParentOwnedByAnotherCompany,
2771
+ thisMeansYouHaveAParentCompany,
2772
+ thisMeansYouHaveAnUltimateParentCompany,
2773
+ additionalInformationIsRequiredForLoan,
2774
+ beforeYourCapitalLoanApplicationCanBeSubmitted,
2775
+ legalName,
2776
+ businessInformation,
2777
+ parentCompanyInformation,
2778
+ inTheLastStepOwnedByAParentCompany,
2779
+ ultimateParentCompanyInformation,
2780
+ inThePreviousStepOwnedByAnUltimateParentCompany,
2781
+ doesThisCompanyHaveLEI,
2782
+ iDontKnow
2743
2783
  };
2744
2784
  const FALLBACK_LOCALE = "en-US";
2745
2785
  const defaultTranslation = Object.entries(defaultTrans).reduce((acc, [translationKey, translationValue]) => translationKey !== "smartling" ? {
@@ -2948,6 +2988,7 @@ var SettingNames = /* @__PURE__ */ ((SettingNames2) => {
2948
2988
  SettingNames2["HideOnboardingIntroductionSoleProprietor"] = "hideOnboardingIntroductionSoleProprietor";
2949
2989
  SettingNames2["TransferInstrumentLimit"] = "transferInstrumentLimit";
2950
2990
  SettingNames2["ViewOnboardingGuidance"] = "viewOnboardingGuidance";
2991
+ SettingNames2["InstantBankVerification"] = "instantBankVerification";
2951
2992
  return SettingNames2;
2952
2993
  })(SettingNames || {});
2953
2994
  const SettingsContext = createContext(void 0);
@@ -3615,19 +3656,6 @@ function getFormProps(props, innerFormId) {
3615
3656
  shouldValidate: (activeFormId ? activeFormId === innerFormId : true) && props.shouldValidate
3616
3657
  };
3617
3658
  }
3618
- function removeFormLayer(obj, formId) {
3619
- if (!obj) {
3620
- return obj;
3621
- }
3622
- const formIdWithDelimiter = `${formId}.`;
3623
- return Object.entries(obj).reduce((acc, [key, value]) => {
3624
- const newKey = key.startsWith(formIdWithDelimiter) ? key.substring(formIdWithDelimiter.length, key.length) : key;
3625
- return {
3626
- ...acc,
3627
- [newKey]: value
3628
- };
3629
- }, {});
3630
- }
3631
3659
  function getNestedOuterFormPropsFromOuterFormProps(props, innerFormId) {
3632
3660
  const newProps = getFormProps(props, innerFormId);
3633
3661
  if (newProps === null) {
@@ -3640,6 +3668,16 @@ function getNestedOuterFormPropsFromOuterFormProps(props, innerFormId) {
3640
3668
  helperText,
3641
3669
  masks
3642
3670
  } = newProps;
3671
+ const {
3672
+ readOnlyFields,
3673
+ requiredFields,
3674
+ optionalFields,
3675
+ obscuredFields,
3676
+ verifyFields,
3677
+ problems,
3678
+ validators: validators2,
3679
+ shouldValidate
3680
+ } = props;
3643
3681
  return {
3644
3682
  placeholders,
3645
3683
  labels: labels2,
@@ -3647,15 +3685,15 @@ function getNestedOuterFormPropsFromOuterFormProps(props, innerFormId) {
3647
3685
  helperText,
3648
3686
  masks,
3649
3687
  // maintain the structure of the special fields
3650
- readOnlyFields: removeFormLayer(props.readOnlyFields, innerFormId),
3651
- requiredFields: removeFormLayer(props.requiredFields, innerFormId),
3652
- optionalFields: removeFormLayer(props.optionalFields, innerFormId),
3653
- obscuredFields: removeFormLayer(props.obscuredFields, innerFormId),
3654
- verifyFields: removeFormLayer(props.verifyFields, innerFormId),
3688
+ readOnlyFields,
3689
+ requiredFields,
3690
+ optionalFields,
3691
+ obscuredFields,
3692
+ verifyFields,
3655
3693
  // the rest we just pass along for now, as they will be eventually be processed by getFormProps
3656
- problems: props.problems,
3657
- validators: props.validators,
3658
- shouldValidate: props.shouldValidate
3694
+ problems,
3695
+ validators: validators2,
3696
+ shouldValidate
3659
3697
  };
3660
3698
  }
3661
3699
  function getFieldProps(props, innerFormFields) {
@@ -4595,12 +4633,10 @@ const Loader = ({
4595
4633
  });
4596
4634
  const Tag = ({
4597
4635
  className,
4598
- isBasic = false,
4636
+ variant = "blue",
4599
4637
  children
4600
4638
  }) => {
4601
- const classNames = cx("adyen-kyc-tag", className, {
4602
- "adyen-kyc-tag--basic": isBasic
4603
- });
4639
+ const classNames = cx("adyen-kyc-tag", className, `adyen-kyc-tag--${variant}`);
4604
4640
  return jsx("span", {
4605
4641
  className: classNames,
4606
4642
  children
@@ -4755,13 +4791,29 @@ const SelectButtonContentMulti = ({
4755
4791
  className: "adyen-kyc-dropdown-selected-items",
4756
4792
  children: active.map((item) => jsx(Tag, {
4757
4793
  className: item.className,
4758
- isBasic: true,
4794
+ variant: "grey",
4759
4795
  children: (item == null ? void 0 : item.selectedOptionName) || (item == null ? void 0 : item.name) || placeholder
4760
4796
  }, item.id))
4761
4797
  }) : jsx("span", {
4762
4798
  className: "adyen-kyc-dropdown-button__text adyen-kyc-dropdown-button__text--placeholder",
4763
4799
  children: placeholder
4764
4800
  });
4801
+ const Typography = ({
4802
+ el = "p",
4803
+ variant = "body",
4804
+ color = "primary",
4805
+ className,
4806
+ children,
4807
+ ...props
4808
+ }) => {
4809
+ const TypographyElement = el;
4810
+ const classNames = cx(className, "adyen-kyc-typography", `adyen-kyc-typography--${color}`, `adyen-kyc-typography--${variant}`);
4811
+ return jsx(TypographyElement, {
4812
+ ...props,
4813
+ className: classNames,
4814
+ children
4815
+ });
4816
+ };
4765
4817
  function Checkbox({
4766
4818
  classNameModifiers = [],
4767
4819
  label,
@@ -4838,10 +4890,14 @@ const SelectListItem = ({
4838
4890
  className: "adyen-kyc-dropdown-element__icon",
4839
4891
  children: item.icon
4840
4892
  }), item.description ? jsxs(Fragment, {
4841
- children: [jsx("span", {
4842
- className: "adyen-kyc-dropdown-element__label adyen-kyc-u-font-weight-semi-bold",
4893
+ children: [jsx(Typography, {
4894
+ el: "span",
4895
+ variant: "body-strongest",
4896
+ className: "adyen-kyc-dropdown-element__label",
4843
4897
  children: item.name
4844
- }), jsx("span", {
4898
+ }), jsx(Typography, {
4899
+ el: "span",
4900
+ color: "secondary",
4845
4901
  className: "adyen-kyc-dropdown-element-description__text",
4846
4902
  children: item.description
4847
4903
  })]
@@ -5821,7 +5877,7 @@ function CompanyNameAndCountry(props) {
5821
5877
  labels: formUtils.getFieldLabels(COUNTRY_FIELD, {
5822
5878
  country: "countryRegionOfEstablishment"
5823
5879
  }),
5824
- readonly: !isAllowedEditPrefilledCountry || Boolean(props == null ? void 0 : props.disableCountry),
5880
+ readonly: formUtils.isReadOnly("country") || !isAllowedEditPrefilledCountry || Boolean(props == null ? void 0 : props.disableCountry),
5825
5881
  classNameModifiers: ["country"],
5826
5882
  allowedCountries: mergedProps.isTopLevelEntity ? allowedCountries : void 0,
5827
5883
  handleChangeFor: handleChangeForCountries
@@ -8473,7 +8529,8 @@ function BusinessRegistrationNumber(props) {
8473
8529
  registrationNumberType
8474
8530
  }, defaultFieldMetadata$9);
8475
8531
  const mergedProps = mergeFieldMetadataIntoProps("registrationNumber", metadata, {
8476
- requiredFields: schema
8532
+ requiredFields: schema,
8533
+ readOnlyFields: props.readOnlyFields
8477
8534
  });
8478
8535
  const {
8479
8536
  handleChangeFor,
@@ -11439,7 +11496,7 @@ function isEmptyEntity(legalEntity) {
11439
11496
  const sortedFieldsOnEntity = fieldsOnEntity.toSorted();
11440
11497
  return sortedFieldsOnEntity.every((value, index) => value === sortedMinimumFields[index]);
11441
11498
  }
11442
- const capabilitiesToPreventTypeChange = ["receivePayments", "issueCard", "useCard", "withdrawFromAtm", "withdrawFromAtmInRestrictedCountries", "receiveFromTransferInstrument", "useCardInRestrictedCountries", "useCardInRestrictedIndustries", "issueBankAccount", "sendToThirdParty", "receiveFromThirdParty", "getGrantOffers", "receiveGrants"];
11499
+ const capabilitiesToPreventTypeChange = ["receivePayments", "issueCard", "useCard", "withdrawFromAtm", "withdrawFromAtmInRestrictedCountries", "useCardInRestrictedCountries", "useCardInRestrictedIndustries", "issueBankAccount", "sendToThirdParty", "receiveFromThirdParty", "getGrantOffers", "receiveGrants"];
11443
11500
  const entityTypeToCorrespondingAccountHolderOption = {
11444
11501
  [LegalEntityType.INDIVIDUAL]: "myName",
11445
11502
  [LegalEntityType.ORGANIZATION]: "theCompanyIWorkFor",
@@ -12521,7 +12578,8 @@ function FieldContainer(props) {
12521
12578
  trimOnBlur,
12522
12579
  hideField,
12523
12580
  maxlength,
12524
- handleChangeFor
12581
+ handleChangeFor,
12582
+ readOnly
12525
12583
  } = props;
12526
12584
  const formUtils = formUtilities(props, i18n);
12527
12585
  const errorMessage = formUtils.getErrorMessage(fieldName, errors, fieldProblems);
@@ -12543,7 +12601,7 @@ function FieldContainer(props) {
12543
12601
  labels: {
12544
12602
  country: formUtils.getLabel(field)
12545
12603
  },
12546
- readonly: formUtils.isReadOnly(field),
12604
+ readonly: readOnly,
12547
12605
  classNameModifiers,
12548
12606
  className: hideField ? "adyen-kyc-u-display-none" : "",
12549
12607
  handleChangeFor
@@ -12562,7 +12620,7 @@ function FieldContainer(props) {
12562
12620
  labels: {
12563
12621
  stateOrProvince: formUtils.getLabel(field)
12564
12622
  },
12565
- readonly: formUtils.isReadOnly(field),
12623
+ readonly: readOnly,
12566
12624
  classNameModifiers,
12567
12625
  selectedCountry: data.country,
12568
12626
  handleChangeFor
@@ -12585,7 +12643,8 @@ function FieldContainer(props) {
12585
12643
  "aria-required": true,
12586
12644
  "aria-label": props == null ? void 0 : props["aria-label"],
12587
12645
  "aria-invalid": !valid[field],
12588
- trimOnBlur
12646
+ trimOnBlur,
12647
+ readonly: readOnly
12589
12648
  })
12590
12649
  });
12591
12650
  }
@@ -13434,7 +13493,7 @@ function RegistrationAddressComponent(props) {
13434
13493
  readOnlyFields: registrationAddressReadOnlyFields,
13435
13494
  obscuredFields: registrationAddressObscuredFields,
13436
13495
  verifyFields: registrationAddressVerifyFields
13437
- } = getFormProps(props, props.id);
13496
+ } = getFormProps(props, registrationAddressFormID);
13438
13497
  const {
13439
13498
  data: formData,
13440
13499
  valid: formValid,
@@ -13632,29 +13691,15 @@ const GuidanceContent$1 = ({
13632
13691
  })
13633
13692
  })]
13634
13693
  })]
13635
- }) : jsxs(Fragment, {
13636
- children: [jsxs("div", {
13637
- className: "adyen-kyc-u-margin-bottom-24",
13638
- children: [jsxs("strong", {
13639
- children: [" ", i18n.get("requirements")]
13640
- }), jsxs(List, {
13641
- className: "adyen-kyc-upload-field__requirements",
13642
- children: [jsx(ListItem, {
13643
- children: i18n.get("documentIssuedByGovernmentAuthority")
13644
- }), jsx(ListItem, {
13645
- children: i18n.get("dateOnDocumentNoOlderThanXMonths", {
13646
- values: {
13647
- numberOfMonths: 12
13648
- }
13649
- })
13650
- })]
13651
- })]
13652
- }), jsx(ContextGuidance, {
13653
- page: "Company registration document",
13654
- titleId: "whatIfDocumentIsMoreThan12MonthsOld",
13655
- contentId: "ifDocumentMoreThan12months",
13656
- title: i18n.get("whatIfDocumentIsMoreThan12MonthsOld"),
13657
- content: i18n.get("ifDocumentMoreThan12months")
13694
+ }) : jsxs("div", {
13695
+ className: "adyen-kyc-u-margin-bottom-24",
13696
+ children: [jsxs("strong", {
13697
+ children: [" ", i18n.get("documentRequirements")]
13698
+ }), jsx(List, {
13699
+ className: "adyen-kyc-upload-field__requirements",
13700
+ children: jsx(ListItem, {
13701
+ children: i18n.get("documentIssuedByGovernmentAuthority")
13702
+ })
13658
13703
  })]
13659
13704
  })
13660
13705
  });
@@ -13769,9 +13814,9 @@ const GuidanceContent = ({
13769
13814
  })]
13770
13815
  }) : jsxs("div", {
13771
13816
  className: "adyen-kyc-u-margin-bottom-24",
13772
- children: [jsxs("div", {
13817
+ children: [jsx("div", {
13773
13818
  className: "adyen-kyc-upload-field__subtitle",
13774
- children: [" ", i18n.get("requirements")]
13819
+ children: i18n.get("documentRequirements")
13775
13820
  }), jsxs(List, {
13776
13821
  className: "adyen-kyc-upload-field__requirements",
13777
13822
  children: [jsx(ListItem, {
@@ -14430,7 +14475,7 @@ const mandatoryApiFields = {
14430
14475
  ORGANIZATION: ["companyNameAndCountry.legalCompanyName", "companyNameAndCountry.country"],
14431
14476
  SOLE_PROPRIETORSHIP: ["solePropNameAndCountry.legalCompanyName", "solePropNameAndCountry.country"],
14432
14477
  TRUST: ["trustRegistrationDetails.legalName", "trustRegistrationDetails.country"],
14433
- HIGH_EXPOSURE: ["company.numberOfEmployees", "parentCompany.numberOfEmployees", "ultimateParentCompany.numberOfEmployees"]
14478
+ HIGH_EXPOSURE: ["company.numberOfEmployees", "parentCompany.parentNumberOfEmployees", "ultimateParentCompany.ultimateParentNumberOfEmployees"]
14434
14479
  };
14435
14480
  const individualObscuredFields = ["personalDetails.idNumber", "personalDetails.idNumberExempt"];
14436
14481
  const individualBaseMapping = {
@@ -16958,60 +17003,60 @@ const roleMetadata = {
16958
17003
  [DecisionMakerType.CONTROLLING_PERSON]: {
16959
17004
  name: "controllingPerson",
16960
17005
  description: "controllingPersonDescription",
16961
- className: "adyen-kyc-tag--teal"
17006
+ variant: "teal"
16962
17007
  },
16963
17008
  [DecisionMakerType.OWNER]: {
16964
17009
  name: "owner",
16965
17010
  description: "ownerDescription",
16966
- className: "adyen-kyc-tag--purple"
17011
+ variant: "red"
16967
17012
  },
16968
17013
  [DecisionMakerType.SIGNATORY]: {
16969
17014
  name: "signatory",
16970
17015
  description: "signatoryDescription",
16971
- className: "adyen-kyc-tag--light-blue"
17016
+ variant: "green"
16972
17017
  },
16973
17018
  [DecisionMakerType.DIRECTOR]: {
16974
17019
  name: "director",
16975
17020
  description: "directorDescription",
16976
- className: "adyen-kyc-tag--orange"
17021
+ variant: "orange"
16977
17022
  },
16978
17023
  [TrustMemberTypes.DEFINED_BENEFICIARY]: {
16979
17024
  name: "definedBeneficiary",
16980
17025
  description: "definedBeneficiaryDescription",
16981
- className: "adyen-kyc-tag--orange"
17026
+ variant: "orange"
16982
17027
  },
16983
17028
  [TrustMemberTypes.UNDEFINED_BENEFICIARY]: {
16984
17029
  name: "undefinedBeneficiary",
16985
17030
  description: "undefinedBeneficiaryDescription",
16986
- className: "adyen-kyc-tag--orange"
17031
+ variant: "orange"
16987
17032
  },
16988
17033
  [TrustMemberTypes.PROTECTOR]: {
16989
17034
  name: "protector",
16990
17035
  description: "personAppointmentUnderTrustInstrument",
16991
- className: "adyen-kyc-tag--orange"
17036
+ variant: "orange"
16992
17037
  },
16993
17038
  [TrustMemberTypes.TRUSTEE]: {
16994
17039
  name: "trustee",
16995
17040
  description: "legalOwnerOfProperty",
16996
- className: "adyen-kyc-tag--light-blue"
17041
+ variant: "green"
16997
17042
  },
16998
17043
  [TrustMemberTypes.SETTLOR]: {
16999
17044
  name: "settlor",
17000
17045
  description: "entityEstablishingTrust",
17001
- className: "adyen-kyc-tag--orange"
17046
+ variant: "orange"
17002
17047
  },
17003
17048
  [TrustMemberGuidanceLabel.BENEFICIARY]: {
17004
17049
  name: TrustMemberGuidanceLabel.BENEFICIARY,
17005
- className: "adyen-kyc-tag--orange"
17050
+ variant: "orange"
17006
17051
  },
17007
17052
  [TrustMemberGuidanceLabel.TRUSTEE]: {
17008
17053
  name: TrustMemberGuidanceLabel.TRUSTEE,
17009
- className: "adyen-kyc-tag--light-blue"
17054
+ variant: "green"
17010
17055
  }
17011
17056
  };
17012
- const getRoleTagColor = (role2) => {
17057
+ const getRoleTagVariant = (role2) => {
17013
17058
  var _a;
17014
- return ((_a = roleMetadata[role2]) == null ? void 0 : _a.className) ?? "adyen-kyc-tag--blue";
17059
+ return ((_a = roleMetadata[role2]) == null ? void 0 : _a.variant) ?? "blue";
17015
17060
  };
17016
17061
  const getRoleName = (role2) => {
17017
17062
  var _a;
@@ -17023,13 +17068,13 @@ const makeSelectItemForRole = (role2, i18n) => {
17023
17068
  const {
17024
17069
  name,
17025
17070
  description: description2,
17026
- className
17071
+ variant
17027
17072
  } = metadata;
17028
17073
  return {
17029
17074
  id: role2,
17030
17075
  name: i18n.get(name),
17031
17076
  description: description2 ? i18n.get(description2) : void 0,
17032
- className
17077
+ className: `adyen-kyc-tag--${variant}`
17033
17078
  };
17034
17079
  };
17035
17080
  const handleKeys = (keys, callback, propagationMode = "stopIfMatches") => (event) => {
@@ -22087,7 +22132,7 @@ const trustRegistrationDetailsValidations = {
22087
22132
  },
22088
22133
  legalName: {
22089
22134
  modes: ["blur"],
22090
- validate: (legalName) => !!legalName,
22135
+ validate: (legalName2) => !!legalName2,
22091
22136
  errorMessage: "fieldIsRequired"
22092
22137
  },
22093
22138
  objectOfTrust: {
@@ -23008,55 +23053,6 @@ function ErrorPanel({
23008
23053
  })]
23009
23054
  });
23010
23055
  }
23011
- const headingTypes = {
23012
- 1: ({
23013
- children,
23014
- className
23015
- }) => jsx("h1", {
23016
- className,
23017
- children
23018
- }),
23019
- 2: ({
23020
- children,
23021
- className
23022
- }) => jsx("h2", {
23023
- className,
23024
- children
23025
- }),
23026
- 3: ({
23027
- children,
23028
- className
23029
- }) => jsx("h3", {
23030
- className,
23031
- children
23032
- }),
23033
- 4: ({
23034
- children,
23035
- className
23036
- }) => jsx("h4", {
23037
- className,
23038
- children
23039
- }),
23040
- sub: ({
23041
- children,
23042
- className
23043
- }) => jsx("div", {
23044
- className,
23045
- children
23046
- })
23047
- };
23048
- function Heading({
23049
- className,
23050
- level,
23051
- children
23052
- }) {
23053
- const HeadingElement = headingTypes[level] || headingTypes[1];
23054
- const classNames = cx("adyen-kyc-heading", `adyen-kyc-heading--${level}`, className);
23055
- return jsx(HeadingElement, {
23056
- className: classNames,
23057
- children
23058
- });
23059
- }
23060
23056
  const summaryStep = {
23061
23057
  formId: "summary",
23062
23058
  formName: "summary"
@@ -23098,8 +23094,9 @@ function Summary({
23098
23094
  }, i18n);
23099
23095
  const summarySectionHeader = (formName, formId) => jsxs("header", {
23100
23096
  className: "adyen-kyc-summary-section__header",
23101
- children: [jsx(Heading, {
23102
- level: 4,
23097
+ children: [jsx(Typography, {
23098
+ el: "h4",
23099
+ variant: "title",
23103
23100
  className: "adyen-kyc-summary-section__heading",
23104
23101
  children: formName
23105
23102
  }), jsx(Button, {
@@ -23183,9 +23180,9 @@ function Summary({
23183
23180
  return jsxs("div", {
23184
23181
  role: "region",
23185
23182
  className: "adyen-kyc-summary",
23186
- children: [showFormHeader && jsx("h2", {
23187
- className: "adyen-kyc-summary__heading",
23188
- children: i18n.get("summary")
23183
+ children: [showFormHeader && jsx(FormHeader, {
23184
+ heading: i18n.get("summary"),
23185
+ classNames: "adyen-kyc-summary__heading"
23189
23186
  }), jsx(ErrorPanel, {
23190
23187
  validationErrors: allValidationErrors,
23191
23188
  verificationErrors: allVerificationErrors,
@@ -26811,6 +26808,42 @@ function BusinessDetailsDropinComponent({
26811
26808
  })
26812
26809
  });
26813
26810
  }
26811
+ const getTrustedFieldsByProvider = (provider, trustedFields2) => trustedFields2.find((tf) => tf.provider === provider);
26812
+ const parseTrustedFieldsIntoReadOnlyFields = (trustedFields2, mapping) => {
26813
+ const formFieldsMapped = [];
26814
+ trustedFields2.fields.forEach((field) => {
26815
+ for (const [key, value] of Object.entries(mapping)) {
26816
+ if (value === field) {
26817
+ formFieldsMapped.push(key);
26818
+ }
26819
+ }
26820
+ });
26821
+ const readOnlyFields = {};
26822
+ formFieldsMapped.forEach((field) => {
26823
+ const tokenizedField = field.split(".");
26824
+ const formField = tokenizedField.pop();
26825
+ const formId = tokenizedField.pop();
26826
+ if (formField && formId) {
26827
+ if (formId in readOnlyFields) {
26828
+ readOnlyFields[formId].push(formField);
26829
+ } else {
26830
+ readOnlyFields[formId] = [formField];
26831
+ }
26832
+ }
26833
+ });
26834
+ return readOnlyFields;
26835
+ };
26836
+ const trustedFields = ({
26837
+ fields,
26838
+ trustedFieldsProvider,
26839
+ apiMapping
26840
+ }) => {
26841
+ if (!fields || !trustedFieldsProvider || !apiMapping) {
26842
+ return {};
26843
+ }
26844
+ const trustedFieldsOfProvider = getTrustedFieldsByProvider(trustedFieldsProvider, fields);
26845
+ return trustedFieldsOfProvider ? parseTrustedFieldsIntoReadOnlyFields(trustedFieldsOfProvider, apiMapping) : {};
26846
+ };
26814
26847
  const parseConfiguration$6 = ({
26815
26848
  country: country2,
26816
26849
  matchingScenario
@@ -26860,7 +26893,8 @@ function CompanyDropinComponent({
26860
26893
  handleUpdateLegalEntity,
26861
26894
  handleHomeClick,
26862
26895
  onTypeSwitch,
26863
- onChange
26896
+ onChange,
26897
+ trustedFieldsProvider
26864
26898
  }) {
26865
26899
  var _a, _b;
26866
26900
  const {
@@ -26924,7 +26958,15 @@ function CompanyDropinComponent({
26924
26958
  isSettingEnabled,
26925
26959
  isExperimentEnabled
26926
26960
  }), [country2, data, taskType, requiredFields, isSettingEnabled]);
26927
- const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, companyForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], fieldsFromCustomRules), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions]);
26961
+ const legalEntityTrustedFields = legalEntityResponse == null ? void 0 : legalEntityResponse.trustedFields;
26962
+ const trustedFieldsOfProvider = useMemo(() => trustedFields({
26963
+ fields: legalEntityTrustedFields,
26964
+ trustedFieldsProvider,
26965
+ apiMapping: companyComponentsKeyMapping
26966
+ }), [legalEntityTrustedFields, trustedFieldsProvider]);
26967
+ const derivedProps = useMemo(() => ({
26968
+ ...getPropsFromConfigurations(fieldConfigurations, companyForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], fieldsFromCustomRules)
26969
+ }), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions]);
26928
26970
  const isCountryOfGoverningLawEnabled = isExperimentEnabled("EnableCountryOfGoverningLawForUKCompanies");
26929
26971
  const {
26930
26972
  state: {
@@ -27187,7 +27229,8 @@ function CompanyDropinComponent({
27187
27229
  onCountryChange: setCountry,
27188
27230
  ref: formRef,
27189
27231
  shouldValidate,
27190
- isTopLevelEntity: taskType === TaskTypes.COMPANY
27232
+ isTopLevelEntity: taskType === TaskTypes.COMPANY,
27233
+ readOnlyFields: trustedFieldsOfProvider
27191
27234
  })
27192
27235
  });
27193
27236
  }
@@ -29260,6 +29303,11 @@ function useSalesChannelsSettings() {
29260
29303
  return settings;
29261
29304
  }, [isSettingEnabled]);
29262
29305
  }
29306
+ var TrustedFieldsProvider = /* @__PURE__ */ ((TrustedFieldsProvider2) => {
29307
+ TrustedFieldsProvider2["SINGPASS"] = "singpass";
29308
+ TrustedFieldsProvider2["KOMPANY"] = "kompany";
29309
+ return TrustedFieldsProvider2;
29310
+ })(TrustedFieldsProvider || {});
29263
29311
  const downloadFile = async (base64, filename) => {
29264
29312
  saveBlobAsFile(base64ToBlob(base64), filename);
29265
29313
  };
@@ -29834,11 +29882,13 @@ const BusinessTypeSelection = ({
29834
29882
  className: "adyen-kyc-business-type-selection",
29835
29883
  children: [jsxs("header", {
29836
29884
  className: "adyen-kyc-u-margin-bottom-32",
29837
- children: [jsx(Heading, {
29838
- level: 2,
29885
+ children: [jsx(Typography, {
29886
+ el: "h2",
29887
+ variant: "title-m",
29839
29888
  children: i18n.get(businessTypeSelectionStepTitles[currentStep])
29840
- }), currentStep === 3 && jsx(Heading, {
29841
- level: "sub",
29889
+ }), currentStep === 3 && jsx(Typography, {
29890
+ el: "p",
29891
+ variant: "title",
29842
29892
  children: i18n.get("someInformationWillNotBeSaved")
29843
29893
  })]
29844
29894
  }), currentStep === 0 && jsx(Field, {
@@ -30199,11 +30249,13 @@ function Card({
30199
30249
  onKeyDown,
30200
30250
  children: [title && jsxs("header", {
30201
30251
  className: "adyen-kyc-card__header",
30202
- children: [jsx(Heading, {
30203
- level: 4,
30252
+ children: [jsx(Typography, {
30253
+ el: "h4",
30254
+ variant: "title",
30204
30255
  children: title
30205
- }), subTitle && jsx(Heading, {
30206
- level: "sub",
30256
+ }), subTitle && jsx(Typography, {
30257
+ el: "p",
30258
+ variant: "body",
30207
30259
  children: subTitle
30208
30260
  })]
30209
30261
  }), jsx("div", {
@@ -30416,8 +30468,8 @@ const EntityAssociation = ({
30416
30468
  })]
30417
30469
  }), jsx("div", {
30418
30470
  children: types.map((type) => jsx(Tag, {
30419
- className: `adyen-kyc-entity-association__tag ${getRoleTagColor(type)}`,
30420
- isBasic: true,
30471
+ className: "adyen-kyc-entity-association__tag",
30472
+ variant: getRoleTagVariant(type),
30421
30473
  children: i18n.get(getRoleName(type))
30422
30474
  }, type))
30423
30475
  }), status === TaskStatus.ERROR && jsx(VerificationErrorAlert, {
@@ -30505,8 +30557,8 @@ const EntityGuidanceStatus = ({
30505
30557
  children: [jsx(EntityStatusIcon, {
30506
30558
  status
30507
30559
  }), jsx(Tag, {
30508
- className: `adyen-kyc-entity-status__tag ${getRoleTagColor(entityLabel)}`,
30509
- isBasic: true,
30560
+ className: "adyen-kyc-entity-status__tag",
30561
+ variant: getRoleTagVariant(entityLabel),
30510
30562
  children: i18n.get(getRoleName(entityLabel))
30511
30563
  }, entityLabel), jsx("span", {
30512
30564
  className: "adyen-kyc-entity-status--text",
@@ -31253,8 +31305,9 @@ const SingpassSelection = (props) => {
31253
31305
  className: "adyen-kyc-singpass-selection",
31254
31306
  children: [jsx("header", {
31255
31307
  className: "adyen-kyc-u-margin-bottom-32",
31256
- children: jsx(Heading, {
31257
- level: 2,
31308
+ children: jsx(Typography, {
31309
+ el: "h2",
31310
+ variant: "title-m",
31258
31311
  children: i18n.get("howWouldYouLikeToSetUpYourAccount")
31259
31312
  })
31260
31313
  }), jsx("form", {
@@ -31506,8 +31559,9 @@ const TaskListGroup = ({
31506
31559
  className: "adyen-task-list-group",
31507
31560
  children: [title && jsx("header", {
31508
31561
  className: "adyen-task-list-group__header",
31509
- children: jsx(Heading, {
31510
- level: 4,
31562
+ children: jsx(Typography, {
31563
+ el: "h4",
31564
+ variant: "title",
31511
31565
  children: title
31512
31566
  })
31513
31567
  }), jsx("div", {
@@ -31629,13 +31683,17 @@ function TaskListComponent({
31629
31683
  })
31630
31684
  }), isEnableNewEntryFlowEnabled && jsxs("header", {
31631
31685
  className: "adyen-task-list__heading",
31632
- children: [jsx(Heading, {
31633
- level: 1,
31686
+ children: [jsx(Typography, {
31687
+ el: "h1",
31688
+ variant: "title-l",
31634
31689
  children: i18n.get("setUpYourAccount")
31635
- }), jsxs(Heading, {
31636
- level: "sub",
31637
- children: [jsx("span", {
31638
- className: "adyen-kyc-u-font-weight-semi-bold",
31690
+ }), jsxs(Typography, {
31691
+ el: "p",
31692
+ variant: "title",
31693
+ className: "adyen-task-list__description",
31694
+ children: [jsx(Typography, {
31695
+ el: "span",
31696
+ variant: "body-strongest",
31639
31697
  children: i18n.get("yourBusinessSetup", {
31640
31698
  values: {
31641
31699
  businessSetup: i18n.get(businessSetup)
@@ -31646,7 +31704,6 @@ function TaskListComponent({
31646
31704
  icon: "edit",
31647
31705
  tertiary: true,
31648
31706
  onClick: onEditBusinessSetupClick,
31649
- className: "adyen-kyc-u-margin-left-4",
31650
31707
  type: "button"
31651
31708
  })]
31652
31709
  })]
@@ -32824,7 +32881,7 @@ function PayoutDetailsDropinComponent({
32824
32881
  const [documents2, setDocuments] = useState();
32825
32882
  const fallbackCurrency = (_a = currencyByCountry[defaultPayoutCountry]) == null ? void 0 : _a[0];
32826
32883
  const accountHolderName = accountHolder2 || getLegalEntityNameBasedOnType(legalEntityResponse);
32827
- const instantVerificationEnabled = Boolean(!transferInstrument && handleGetBankVerificationVendors);
32884
+ const instantVerificationEnabled = Boolean(!transferInstrument && handleGetBankVerificationVendors && isSettingEnabled("instantBankVerification"));
32828
32885
  const taskType = propTaskType ?? TaskTypes.PAYOUT;
32829
32886
  const [trustedTransferInstrumentId, setTrustedTransferInstrumentId] = useState();
32830
32887
  const prefilledData = {
@@ -35967,7 +36024,8 @@ function DropinComposerComponent({
35967
36024
  handleAddressSearch: args == null ? void 0 : args.handleAddressSearch,
35968
36025
  handleFindAddress: args == null ? void 0 : args.handleFindAddress,
35969
36026
  onTypeSwitch: navigateToTypeSwitcher,
35970
- isTargetLegalEntityType: legalEntityType === LegalEntityType.ORGANIZATION
36027
+ isTargetLegalEntityType: legalEntityType === LegalEntityType.ORGANIZATION,
36028
+ trustedFieldsProvider: eligibleForSingpass && TrustedFieldsProvider.SINGPASS
35971
36029
  });
35972
36030
  case TaskTypes.COMPANY_SEARCH:
35973
36031
  return jsx(CompanySearchDropinComponent, {
@@ -37011,10 +37069,11 @@ function AddTransferInstrument({
37011
37069
  i18n
37012
37070
  } = useI18nContext();
37013
37071
  return jsxs(Fragment, {
37014
- children: [jsx(Heading, {
37015
- level: 1,
37072
+ children: [jsx(Typography, {
37073
+ el: "h1",
37074
+ variant: "title-l",
37016
37075
  children: i18n.get("bankDetails")
37017
- }), jsx("p", {
37076
+ }), jsx(Typography, {
37018
37077
  children: i18n.get("addMissingBankDetails")
37019
37078
  }), jsx(Button, {
37020
37079
  label: i18n.get("addBankDetails"),
@@ -37112,8 +37171,9 @@ function ManageTransferInstrumentOverviewItem({
37112
37171
  className: "adyen-kyc-manage-ti-overview-item__header",
37113
37172
  children: [jsxs("div", {
37114
37173
  className: "adyen-kyc-manage-ti-overview-item__title",
37115
- children: [status, jsx(Heading, {
37116
- level: 2,
37174
+ children: [status, jsx(Typography, {
37175
+ el: "h2",
37176
+ variant: "title-m",
37117
37177
  children: transferInstrumentReference.transferInstrument.accountIdentifier
37118
37178
  })]
37119
37179
  }), jsx("p", {
@@ -37352,6 +37412,30 @@ function OnboardingDropinComponent({
37352
37412
  handleGetBankVerificationVendors: (country2) => getBankVerificationVendor2(country2, openBankingPartnerConfigId)
37353
37413
  });
37354
37414
  }
37415
+ var HighExposurePagesEnums = /* @__PURE__ */ ((HighExposurePagesEnums2) => {
37416
+ HighExposurePagesEnums2["COMPANY_PAGE"] = "COMPANY_PAGE";
37417
+ HighExposurePagesEnums2["PARENT_COMPANY_PAGE"] = "PARENT_COMPANY_PAGE";
37418
+ HighExposurePagesEnums2["ULTIMATE_PARENT_COMPANY_PAGE"] = "ULTIMATE_PARENT_COMPANY_PAGE";
37419
+ return HighExposurePagesEnums2;
37420
+ })(HighExposurePagesEnums || {});
37421
+ const highExposureRadioItems = [{
37422
+ id: "Yes",
37423
+ name: "yes"
37424
+ }, {
37425
+ id: "No",
37426
+ name: "no"
37427
+ }];
37428
+ const highExposureParentRadioItems = [...highExposureRadioItems, {
37429
+ id: "I don't know",
37430
+ name: "iDontKnow"
37431
+ }];
37432
+ const validateLegalEntityIdentifier = (legalEntityIdentifier2, doesYourCompanyHaveLEI2, isDisabled) => {
37433
+ if (isDisabled) return true;
37434
+ const isRequired = doesYourCompanyHaveLEI2 === "Yes";
37435
+ const isValidLength = legalEntityIdentifier2 ? legalEntityIdentifier2.length === 20 : false;
37436
+ const hasLettersAndNumbers = legalEntityIdentifier2 ? /[a-zA-Z]/.test(legalEntityIdentifier2) && /[0-9]/.test(legalEntityIdentifier2) : false;
37437
+ return !isRequired || !isEmpty(legalEntityIdentifier2) && isValidLength && hasLettersAndNumbers;
37438
+ };
37355
37439
  const highExposureCompanyDetailsValidations = {
37356
37440
  country: {
37357
37441
  modes: ["blur"],
@@ -37372,16 +37456,126 @@ const highExposureCompanyDetailsValidations = {
37372
37456
  modes: ["blur"],
37373
37457
  validate: (naceCode) => !isEmpty(naceCode),
37374
37458
  errorMessage: "fieldIsRequired"
37459
+ },
37460
+ doesTheCompanyEarnMoreThanHalf: {
37461
+ modes: ["blur"],
37462
+ validate: (doesTheCompanyEarnMoreThanHalf2) => !isEmpty(doesTheCompanyEarnMoreThanHalf2),
37463
+ errorMessage: "fieldIsRequired"
37464
+ },
37465
+ doesYourCompanyHaveLEI: {
37466
+ modes: ["blur"],
37467
+ validate: (doesYourCompanyHaveLEI2) => !isEmpty(doesYourCompanyHaveLEI2),
37468
+ errorMessage: "fieldIsRequired"
37469
+ },
37470
+ legalEntityIdentifier: {
37471
+ modes: ["blur"],
37472
+ validate: (legalEntityIdentifier2, context) => {
37473
+ var _a, _b;
37474
+ return validateLegalEntityIdentifier(legalEntityIdentifier2, (_b = (_a = context == null ? void 0 : context.state) == null ? void 0 : _a.data) == null ? void 0 : _b.doesTheCompanyEarnMoreThanHalf);
37475
+ },
37476
+ errorMessage: "fieldIsRequired"
37477
+ },
37478
+ isCompanyOwnedByAnotherCompany: {
37479
+ modes: ["blur"],
37480
+ validate: (isCompanyOwnedByAnotherCompany2) => !isEmpty(isCompanyOwnedByAnotherCompany2),
37481
+ errorMessage: "fieldIsRequired"
37482
+ },
37483
+ isParentOwnedByAnotherCompany: {
37484
+ modes: ["blur"],
37485
+ validate: (isParentOwnedByAnotherCompany2, context) => {
37486
+ var _a, _b;
37487
+ return ((_b = (_a = context == null ? void 0 : context.state) == null ? void 0 : _a.data) == null ? void 0 : _b.isCompanyOwnedByAnotherCompany) ? !isEmpty(isParentOwnedByAnotherCompany2) : true;
37488
+ },
37489
+ errorMessage: "fieldIsRequired"
37490
+ }
37491
+ };
37492
+ const highExposureParentCompanyDetailsValidations = {
37493
+ parentLegalName: {
37494
+ modes: ["blur"],
37495
+ validate: (parentLegalName) => !isEmpty(parentLegalName),
37496
+ errorMessage: "fieldIsRequired"
37497
+ },
37498
+ parentNumberOfEmployees: {
37499
+ modes: ["blur"],
37500
+ validate: (parentNumberOfEmployees) => !isEmpty(parentNumberOfEmployees),
37501
+ errorMessage: "fieldIsRequired"
37502
+ },
37503
+ parentLegalForm: {
37504
+ modes: ["blur"],
37505
+ validate: (parentLegalForm) => !isEmpty(parentLegalForm),
37506
+ errorMessage: "fieldIsRequired"
37507
+ },
37508
+ parentNaceCode: {
37509
+ modes: ["blur"],
37510
+ validate: (parentNaceCode) => !isEmpty(parentNaceCode),
37511
+ errorMessage: "fieldIsRequired"
37512
+ },
37513
+ doesTheParentCompanyEarnMoreThanHalf: {
37514
+ modes: ["blur"],
37515
+ validate: (doesTheParentCompanyEarnMoreThanHalf) => !isEmpty(doesTheParentCompanyEarnMoreThanHalf),
37516
+ errorMessage: "fieldIsRequired"
37517
+ },
37518
+ doesYourParentCompanyHaveLEI: {
37519
+ modes: ["blur"],
37520
+ validate: (doesYourParentCompanyHaveLEI) => !isEmpty(doesYourParentCompanyHaveLEI),
37521
+ errorMessage: "fieldIsRequired"
37522
+ },
37523
+ parentLegalEntityIdentifier: {
37524
+ modes: ["blur"],
37525
+ validate: (parentLegalEntityIdentifier, context) => {
37526
+ var _a, _b, _c, _d;
37527
+ return validateLegalEntityIdentifier(parentLegalEntityIdentifier, (_b = (_a = context == null ? void 0 : context.state) == null ? void 0 : _a.data) == null ? void 0 : _b.doesYourParentCompanyHaveLEI, Boolean((_d = (_c = context == null ? void 0 : context.state) == null ? void 0 : _c.data) == null ? void 0 : _d.doesNotKnowParentNumberOfEmployees));
37528
+ },
37529
+ errorMessage: "fieldIsRequired"
37530
+ }
37531
+ };
37532
+ const highExposureUltimateParentCompanyDetailsValidations = {
37533
+ ultimateParentLegalName: {
37534
+ modes: ["blur"],
37535
+ validate: (ultimateParentLegalName) => !isEmpty(ultimateParentLegalName),
37536
+ errorMessage: "fieldIsRequired"
37537
+ },
37538
+ ultimateParentNumberOfEmployees: {
37539
+ modes: ["blur"],
37540
+ validate: (ultimateParentNumberOfEmployees) => !isEmpty(ultimateParentNumberOfEmployees),
37541
+ errorMessage: "fieldIsRequired"
37542
+ },
37543
+ ultimateParentLegalForm: {
37544
+ modes: ["blur"],
37545
+ validate: (ultimateParentLegalForm) => !isEmpty(ultimateParentLegalForm),
37546
+ errorMessage: "fieldIsRequired"
37547
+ },
37548
+ ultimateParentNaceCode: {
37549
+ modes: ["blur"],
37550
+ validate: (ultimateParentNaceCode) => !isEmpty(ultimateParentNaceCode),
37551
+ errorMessage: "fieldIsRequired"
37552
+ },
37553
+ doesTheUltimateParentCompanyEarnMoreThanHalf: {
37554
+ modes: ["blur"],
37555
+ validate: (doesTheUltimateParentCompanyEarnMoreThanHalf) => !isEmpty(doesTheUltimateParentCompanyEarnMoreThanHalf),
37556
+ errorMessage: "fieldIsRequired"
37557
+ },
37558
+ doesYourUltimateParentCompanyHaveLEI: {
37559
+ modes: ["blur"],
37560
+ validate: (doesYourUltimateParentCompanyHaveLEI) => !isEmpty(doesYourUltimateParentCompanyHaveLEI),
37561
+ errorMessage: "fieldIsRequired"
37562
+ },
37563
+ ultimateParentLegalEntityIdentifier: {
37564
+ modes: ["blur"],
37565
+ validate: (ultimateParentLegalEntityIdentifier, context) => {
37566
+ var _a, _b, _c, _d;
37567
+ return validateLegalEntityIdentifier(ultimateParentLegalEntityIdentifier, (_b = (_a = context == null ? void 0 : context.state) == null ? void 0 : _a.data) == null ? void 0 : _b.doesYourUltimateParentCompanyHaveLEI, Boolean((_d = (_c = context == null ? void 0 : context.state) == null ? void 0 : _c.data) == null ? void 0 : _d.doesNotKnowUltimateParentNumberOfEmployees));
37568
+ },
37569
+ errorMessage: "fieldIsRequired"
37375
37570
  }
37376
37571
  };
37377
- const LEGAL_FORM_FIELD = ["legalForm"];
37378
37572
  const logger$8 = createLogger("LegalFormField");
37379
37573
  function LegalFormField({
37380
37574
  name = "legalForm",
37381
37575
  data,
37382
37576
  valid,
37383
- errors,
37384
- labels: labels2,
37577
+ errorMessage,
37578
+ label,
37385
37579
  readonly,
37386
37580
  handleChangeFor,
37387
37581
  helperText,
@@ -37408,8 +37602,8 @@ function LegalFormField({
37408
37602
  }, [countryCode]);
37409
37603
  return jsx(Field, {
37410
37604
  name,
37411
- label: (labels2 == null ? void 0 : labels2.legalForm) || i18n.get("businessStructure"),
37412
- errorMessage: errors.legalForm,
37605
+ label: label || i18n.get("businessStructure"),
37606
+ errorMessage,
37413
37607
  classNameModifiers,
37414
37608
  isValid: valid.legalForm,
37415
37609
  helper: helperText == null ? void 0 : helperText.legalForm,
@@ -37424,14 +37618,13 @@ function LegalFormField({
37424
37618
  })
37425
37619
  });
37426
37620
  }
37427
- const NACE_CODE_FIELD = ["naceCode"];
37428
37621
  const logger$7 = createLogger("NaceCodeField");
37429
37622
  function NaceCodeField({
37430
37623
  name = "naceCode",
37431
37624
  data,
37432
37625
  valid,
37433
- errors,
37434
- labels: labels2,
37626
+ errorMessage,
37627
+ label,
37435
37628
  readonly,
37436
37629
  handleChangeFor,
37437
37630
  helperText,
@@ -37453,8 +37646,8 @@ function NaceCodeField({
37453
37646
  }, []);
37454
37647
  return jsx(Field, {
37455
37648
  name,
37456
- label: (labels2 == null ? void 0 : labels2.naceCode) || i18n.get("industryAndNaceCode"),
37457
- errorMessage: errors.naceCode,
37649
+ label: label || i18n.get("industryAndNaceCode"),
37650
+ errorMessage,
37458
37651
  classNameModifiers,
37459
37652
  isValid: valid.naceCode,
37460
37653
  helper: helperText == null ? void 0 : helperText.naceCode,
@@ -37476,58 +37669,238 @@ function HighExposureBusinessInformation({
37476
37669
  errors,
37477
37670
  fieldProblems,
37478
37671
  handleChangeFor,
37479
- country: country2
37672
+ country: country2,
37673
+ fieldMapping,
37674
+ targetPage,
37675
+ sectionHeading
37480
37676
  }) {
37677
+ const {
37678
+ i18n
37679
+ } = useI18nContext();
37680
+ const getFieldName = (fieldKey) => fieldMapping[fieldKey] ?? fieldKey;
37681
+ const getFieldData = (fieldKey) => {
37682
+ const fieldData = data[getFieldName(fieldKey)];
37683
+ return fieldData ? fieldData.toString() : void 0;
37684
+ };
37685
+ const isMainCompany = targetPage === HighExposurePagesEnums.COMPANY_PAGE;
37481
37686
  return jsxs(Fragment, {
37482
- children: [jsx(LegalFormField, {
37687
+ children: [jsx(Typography, {
37688
+ el: "h3",
37689
+ variant: "title",
37690
+ children: i18n.get(sectionHeading || "yourBusinessDetails")
37691
+ }), !isMainCompany && jsx(Field, {
37692
+ name: getFieldName("legalName"),
37693
+ label: formUtils.getLabel(getFieldName("legalName"), "legalName"),
37694
+ classNameModifiers: ["legalName"],
37695
+ errorMessage: formUtils.getErrorMessage(getFieldName("legalName"), errors, fieldProblems),
37696
+ isValid: valid[getFieldName("legalName")],
37697
+ children: (childProps) => jsx(InputText, {
37698
+ ...childProps,
37699
+ name: getFieldName("legalName"),
37700
+ value: getFieldData("legalName"),
37701
+ readonly: false,
37702
+ classNameModifiers: ["legalName"],
37703
+ onInput: handleChangeFor(getFieldName("legalName"), "input"),
37704
+ onBlur: handleChangeFor(getFieldName("legalName"), "blur"),
37705
+ "aria-required": true,
37706
+ "aria-label": formUtils.getLabel(getFieldName("legalName")),
37707
+ "aria-invalid": !valid[getFieldName("legalName")]
37708
+ })
37709
+ }), jsx(LegalFormField, {
37710
+ name: getFieldName("legalForm"),
37483
37711
  countryCode: country2,
37484
37712
  data: {
37485
- legalForm: data.legalForm
37713
+ legalForm: getFieldData("legalForm")
37486
37714
  },
37487
37715
  valid: {
37488
- legalForm: valid.legalForm
37716
+ legalForm: valid[getFieldName("legalForm")]
37489
37717
  },
37490
- errors: formUtils.getFieldErrors(errors, fieldProblems, LEGAL_FORM_FIELD),
37491
- handleChangeFor: () => handleChangeFor("legalForm", "blur"),
37718
+ errorMessage: formUtils.getErrorMessage(getFieldName("legalForm"), errors, fieldProblems),
37719
+ handleChangeFor: () => handleChangeFor(getFieldName("legalForm"), "blur"),
37492
37720
  readonly: false,
37493
- labels: formUtils.getFieldLabels(LEGAL_FORM_FIELD, {
37494
- legalForm: "businessStructure"
37495
- })
37721
+ label: formUtils.getLabel(getFieldName("legalForm"), "businessStructure")
37496
37722
  }), jsx(NaceCodeField, {
37723
+ name: getFieldName("naceCode"),
37497
37724
  data: {
37498
- naceCode: data.naceCode
37725
+ naceCode: getFieldData("naceCode")
37499
37726
  },
37500
37727
  valid: {
37501
- naceCode: valid.naceCode
37728
+ naceCode: valid[getFieldName("naceCode")]
37502
37729
  },
37503
- errors: formUtils.getFieldErrors(errors, fieldProblems, NACE_CODE_FIELD),
37504
- handleChangeFor: () => handleChangeFor("naceCode", "blur"),
37730
+ errorMessage: formUtils.getErrorMessage(getFieldName("naceCode"), errors, fieldProblems),
37731
+ handleChangeFor: () => handleChangeFor(getFieldName("naceCode"), "blur"),
37505
37732
  readonly: false,
37506
- labels: formUtils.getFieldLabels(NACE_CODE_FIELD, {
37507
- naceCode: "industryAndNaceCode"
37508
- })
37733
+ label: formUtils.getLabel(getFieldName("naceCode"), "industryAndNaceCode")
37509
37734
  }), jsx(Field, {
37510
- name: "numberOfEmployees",
37511
- label: formUtils.getLabel("numberOfEmployees", "numberOfEmployees"),
37735
+ name: getFieldName("numberOfEmployees"),
37736
+ label: formUtils.getLabel(getFieldName("numberOfEmployees"), "numberOfEmployees"),
37512
37737
  classNameModifiers: ["legalName"],
37513
- errorMessage: formUtils.getErrorMessage("numberOfEmployees", errors, fieldProblems),
37514
- isValid: valid.numberOfEmployees,
37738
+ errorMessage: formUtils.getErrorMessage(getFieldName("numberOfEmployees"), errors, fieldProblems),
37739
+ isValid: valid[getFieldName("numberOfEmployees")],
37515
37740
  children: (childProps) => jsx(InputText, {
37516
37741
  ...childProps,
37517
- name: "numberOfEmployees",
37518
- value: data.numberOfEmployees,
37519
- readonly: formUtils.isReadOnly("numberOfEmployees"),
37742
+ name: getFieldName("numberOfEmployees"),
37743
+ value: getFieldData("numberOfEmployees"),
37744
+ readonly: false,
37520
37745
  classNameModifiers: ["legalName"],
37521
- onInput: handleChangeFor("numberOfEmployees", "input"),
37522
- onBlur: handleChangeFor("numberOfEmployees", "blur"),
37746
+ onInput: handleChangeFor(getFieldName("numberOfEmployees"), "input"),
37747
+ onBlur: handleChangeFor(getFieldName("numberOfEmployees"), "blur"),
37748
+ "aria-required": true,
37749
+ "aria-label": formUtils.getLabel(getFieldName("numberOfEmployees")),
37750
+ "aria-invalid": !valid[getFieldName("numberOfEmployees")]
37751
+ })
37752
+ }), jsx(Field, {
37753
+ name: getFieldName("doesTheCompanyEarnMoreThanHalf"),
37754
+ classNameModifiers: ["highExposureBusinessInformation"],
37755
+ label: i18n.get("doesTheCompanyEarnMoreThanHalf"),
37756
+ errorMessage: formUtils.getErrorMessage(getFieldName("doesTheCompanyEarnMoreThanHalf"), errors, fieldProblems),
37757
+ children: (childProps) => jsx(RadioGroup, {
37758
+ ...childProps,
37759
+ name: getFieldName("doesTheCompanyEarnMoreThanHalf"),
37760
+ items: isMainCompany ? highExposureRadioItems : highExposureParentRadioItems,
37761
+ value: getFieldData("doesTheCompanyEarnMoreThanHalf"),
37762
+ disabled: false,
37763
+ onChange: handleChangeFor(getFieldName("doesTheCompanyEarnMoreThanHalf")),
37764
+ "aria-required": true,
37765
+ "aria-label": i18n.get("doesTheCompanyEarnMoreThanHalf"),
37766
+ "aria-invalid": !valid[getFieldName("doesTheCompanyEarnMoreThanHalf")]
37767
+ })
37768
+ }), jsx(Field, {
37769
+ name: getFieldName("doesYourCompanyHaveLEI"),
37770
+ classNameModifiers: ["highExposureBusinessInformation"],
37771
+ label: i18n.get(isMainCompany ? "doesYourCompanyHaveLEI" : "doesThisCompanyHaveLEI"),
37772
+ helper: jsxs("div", {
37773
+ children: [jsx("span", {
37774
+ children: i18n.get("anLEIIsAUniqueCode")
37775
+ }), " ", jsx(Link, {
37776
+ href: "https://search.gleif.org/#/search/",
37777
+ external: true,
37778
+ className: ["adyen-kyc__high-exposure-link"],
37779
+ children: i18n.get("lookUpYourLEI")
37780
+ })]
37781
+ }),
37782
+ errorMessage: formUtils.getErrorMessage(getFieldName("doesYourCompanyHaveLEI"), errors, fieldProblems),
37783
+ children: (childProps) => jsx(RadioGroup, {
37784
+ ...childProps,
37785
+ name: getFieldName("doesYourCompanyHaveLEI"),
37786
+ items: isMainCompany ? highExposureRadioItems : highExposureParentRadioItems,
37787
+ value: getFieldData("doesYourCompanyHaveLEI"),
37788
+ disabled: false,
37789
+ onChange: handleChangeFor(getFieldName("doesYourCompanyHaveLEI")),
37790
+ "aria-required": true,
37791
+ "aria-label": i18n.get(isMainCompany ? "doesYourCompanyHaveLEI" : "doesThisCompanyHaveLEI"),
37792
+ "aria-invalid": !valid[getFieldName("doesYourCompanyHaveLEI")]
37793
+ })
37794
+ }), getFieldData("doesYourCompanyHaveLEI") === "Yes" && jsxs(Fragment, {
37795
+ children: [jsx(Field, {
37796
+ name: getFieldName("legalEntityIdentifier"),
37797
+ label: formUtils.getLabel(getFieldName("legalEntityIdentifier"), "legalEntityIdentifier"),
37798
+ errorMessage: formUtils.getErrorMessage(getFieldName("legalEntityIdentifier"), errors, fieldProblems),
37799
+ isValid: valid.legalEntityIdentifier,
37800
+ helper: i18n.get("enterNCharactersWithAMixForExample", {
37801
+ values: {
37802
+ numChars: 20,
37803
+ example: "529900T8BM49AURSDO55"
37804
+ }
37805
+ }),
37806
+ helperPosition: "below",
37807
+ children: (childProps) => jsx(InputText, {
37808
+ ...childProps,
37809
+ name: getFieldName("legalEntityIdentifier"),
37810
+ value: getFieldData("legalEntityIdentifier"),
37811
+ readonly: Boolean(getFieldData("doesNotKnowNumberOfEmployees")),
37812
+ classNameModifiers: ["legalName"],
37813
+ onInput: handleChangeFor(getFieldName("legalEntityIdentifier"), "input"),
37814
+ onBlur: handleChangeFor(getFieldName("legalEntityIdentifier"), "blur"),
37815
+ "aria-required": true,
37816
+ "aria-label": formUtils.getLabel(getFieldName("legalEntityIdentifier")),
37817
+ "aria-invalid": !valid[getFieldName("legalEntityIdentifier")],
37818
+ isValid: valid[getFieldName("legalEntityIdentifier")]
37819
+ })
37820
+ }), !isMainCompany && jsx(Checkbox, {
37821
+ name: getFieldName("doesNotKnowNumberOfEmployees"),
37822
+ label: i18n.get("iDontKnow"),
37823
+ value: getFieldData("doesNotKnowNumberOfEmployees"),
37824
+ readonly: false,
37825
+ classNameModifiers: ["exempted-from-tax"],
37826
+ checked: Boolean(getFieldData("doesNotKnowNumberOfEmployees")),
37827
+ onChange: handleChangeFor(getFieldName("doesNotKnowNumberOfEmployees")),
37828
+ "aria-required": false,
37829
+ "aria-label": i18n.get("iDontKnow"),
37830
+ "aria-invalid": false
37831
+ })]
37832
+ })]
37833
+ });
37834
+ }
37835
+ function HighExposureOwnershipStructure({
37836
+ formUtils,
37837
+ data,
37838
+ valid,
37839
+ errors,
37840
+ fieldProblems,
37841
+ handleChangeFor,
37842
+ legalEntity
37843
+ }) {
37844
+ const {
37845
+ i18n
37846
+ } = useI18nContext();
37847
+ return jsxs(Fragment, {
37848
+ children: [jsx(Typography, {
37849
+ el: "h3",
37850
+ variant: "title",
37851
+ children: i18n.get("ownershipStructure")
37852
+ }), jsx(Field, {
37853
+ name: "isCompanyOwnedByAnotherCompany",
37854
+ classNameModifiers: ["highExposureBusinessInformation"],
37855
+ label: i18n.get("isCompanyOwnedByAnotherCompany", {
37856
+ values: {
37857
+ company: (legalEntity == null ? void 0 : legalEntity.organization) ? legalEntity.organization.legalName : ""
37858
+ }
37859
+ }),
37860
+ errorMessage: formUtils.getErrorMessage("isCompanyOwnedByAnotherCompany", errors, fieldProblems),
37861
+ helper: i18n.get("thisMeansYouHaveAParentCompany"),
37862
+ children: (childProps) => jsx(RadioGroup, {
37863
+ ...childProps,
37864
+ name: "isCompanyOwnedByAnotherCompany",
37865
+ items: highExposureRadioItems,
37866
+ value: data.isCompanyOwnedByAnotherCompany,
37867
+ disabled: false,
37868
+ onChange: handleChangeFor("isCompanyOwnedByAnotherCompany"),
37869
+ "aria-required": true,
37870
+ "aria-label": formUtils.getLabel("isCompanyOwnedByAnotherCompany"),
37871
+ "aria-invalid": !valid.isCompanyOwnedByAnotherCompany
37872
+ })
37873
+ }), (data == null ? void 0 : data.isCompanyOwnedByAnotherCompany) === "Yes" && jsx(Field, {
37874
+ name: "isParentOwnedByAnotherCompany",
37875
+ classNameModifiers: ["highExposureBusinessInformation"],
37876
+ label: formUtils.getLabel("isParentOwnedByAnotherCompany"),
37877
+ helper: i18n.get("thisMeansYouHaveAnUltimateParentCompany"),
37878
+ errorMessage: formUtils.getErrorMessage("isParentOwnedByAnotherCompany", errors, fieldProblems),
37879
+ children: (childProps) => jsx(RadioGroup, {
37880
+ ...childProps,
37881
+ name: "isParentOwnedByAnotherCompany",
37882
+ items: highExposureRadioItems,
37883
+ value: data.isParentOwnedByAnotherCompany,
37884
+ disabled: false,
37885
+ onChange: handleChangeFor("isParentOwnedByAnotherCompany"),
37523
37886
  "aria-required": true,
37524
- "aria-label": formUtils.getLabel("numberOfEmployees"),
37525
- "aria-invalid": !valid.numberOfEmployees
37887
+ "aria-label": formUtils.getLabel("isParentOwnedByAnotherCompany"),
37888
+ "aria-invalid": !valid.doesYourCompanyHaveLEI
37526
37889
  })
37527
37890
  })]
37528
37891
  });
37529
37892
  }
37530
- const highExposureCompanyDetailsFields = ["numberOfEmployees", "legalForm", "naceCode"];
37893
+ const companyFieldMapping = {
37894
+ legalForm: "legalForm",
37895
+ naceCode: "naceCode",
37896
+ numberOfEmployees: "numberOfEmployees",
37897
+ doesTheCompanyEarnMoreThanHalf: "doesTheCompanyEarnMoreThanHalf",
37898
+ doesYourCompanyHaveLEI: "doesYourCompanyHaveLEI",
37899
+ legalEntityIdentifier: "legalEntityIdentifier",
37900
+ isCompanyOwnedByAnotherCompany: "isCompanyOwnedByAnotherCompany",
37901
+ isParentOwnedByAnotherCompany: "isParentOwnedByAnotherCompany"
37902
+ };
37903
+ const highExposureCompanyDetailsFields = Object.values(companyFieldMapping);
37531
37904
  function AdditionalFieldsForHighExposureCompany(props) {
37532
37905
  const {
37533
37906
  i18n
@@ -37548,6 +37921,7 @@ function AdditionalFieldsForHighExposureCompany(props) {
37548
37921
  fieldProblems: props == null ? void 0 : props.fieldValidationErrors
37549
37922
  });
37550
37923
  const formUtils = formUtilities(props, i18n);
37924
+ const highExposureHandleChangeFor = handleChangeFor;
37551
37925
  const {
37552
37926
  updateStateSlice
37553
37927
  } = useGlobalDataSlice("company");
@@ -37560,9 +37934,19 @@ function AdditionalFieldsForHighExposureCompany(props) {
37560
37934
  });
37561
37935
  }, [data, valid, errors, fieldProblems]);
37562
37936
  return jsxs("form", {
37563
- className: "adyen-kyc__registration-details",
37564
- children: [jsx(FormHeader, {
37565
- heading: props.heading
37937
+ className: "adyen-kyc__high-exposure-company",
37938
+ children: [jsx(Typography, {
37939
+ el: "h1",
37940
+ variant: "title-l",
37941
+ children: i18n.get("additionalInformationIsRequiredForLoan")
37942
+ }), jsx(Typography, {
37943
+ el: "p",
37944
+ variant: "body",
37945
+ children: i18n.get("beforeYourCapitalLoanApplicationCanBeSubmitted")
37946
+ }), jsx(Typography, {
37947
+ el: "p",
37948
+ variant: "body",
37949
+ children: i18n.get("euFinancialRegulationsRequireUs")
37566
37950
  }), jsx(ErrorPanel, {
37567
37951
  verificationErrors: props.formVerificationErrors,
37568
37952
  validationErrors: props == null ? void 0 : props.fieldValidationErrors,
@@ -37570,21 +37954,39 @@ function AdditionalFieldsForHighExposureCompany(props) {
37570
37954
  id: "ariaErrorField"
37571
37955
  }), jsx(HighExposureBusinessInformation, {
37572
37956
  ...props,
37573
- handleChangeFor,
37957
+ handleChangeFor: highExposureHandleChangeFor,
37574
37958
  errors,
37575
37959
  data,
37576
37960
  valid,
37577
37961
  country: props.country,
37578
37962
  formUtils,
37963
+ fieldProblems,
37964
+ targetPage: HighExposurePagesEnums.COMPANY_PAGE,
37965
+ fieldMapping: companyFieldMapping
37966
+ }), jsx(HighExposureOwnershipStructure, {
37967
+ ...props,
37968
+ handleChangeFor,
37969
+ errors,
37970
+ data,
37971
+ valid,
37972
+ legalEntity: props.legalEntity,
37973
+ formUtils,
37579
37974
  fieldProblems
37580
37975
  })]
37581
37976
  });
37582
37977
  }
37583
- const highExposureParentCompanyDetailsFields = ["numberOfEmployees"];
37584
- function AdditionalFieldsForHighExposureParentCompany({
37585
- requiredFields,
37586
- ...props
37587
- }) {
37978
+ const parentCompanyFieldMapping$1 = {
37979
+ legalName: "parentLegalName",
37980
+ legalForm: "parentLegalForm",
37981
+ naceCode: "parentNaceCode",
37982
+ numberOfEmployees: "parentNumberOfEmployees",
37983
+ doesTheCompanyEarnMoreThanHalf: "doesTheParentCompanyEarnMoreThanHalf",
37984
+ doesYourCompanyHaveLEI: "doesYourParentCompanyHaveLEI",
37985
+ legalEntityIdentifier: "parentLegalEntityIdentifier",
37986
+ doesNotKnowNumberOfEmployees: "doesNotKnowParentNumberOfEmployees"
37987
+ };
37988
+ const highExposureParentCompanyDetailsFields = Object.values(parentCompanyFieldMapping$1);
37989
+ function AdditionalFieldsForHighExposureParentCompany(props) {
37588
37990
  const {
37589
37991
  i18n
37590
37992
  } = useI18nContext();
@@ -37596,14 +37998,15 @@ function AdditionalFieldsForHighExposureParentCompany({
37596
37998
  fieldProblems
37597
37999
  } = useForm({
37598
38000
  ...props,
37599
- schema: ["numberOfEmployees"],
38001
+ schema: highExposureParentCompanyDetailsFields,
37600
38002
  defaultData: {
37601
38003
  ...props.data
37602
38004
  },
37603
- rules: props.validators || highExposureCompanyDetailsValidations,
38005
+ rules: props.validators || highExposureParentCompanyDetailsValidations,
37604
38006
  fieldProblems: props == null ? void 0 : props.fieldValidationErrors
37605
38007
  });
37606
38008
  const formUtils = formUtilities(props, i18n);
38009
+ const highExposureHandleChangeFor = handleChangeFor;
37607
38010
  const {
37608
38011
  updateStateSlice
37609
38012
  } = useGlobalDataSlice("parentCompany");
@@ -37616,39 +38019,47 @@ function AdditionalFieldsForHighExposureParentCompany({
37616
38019
  });
37617
38020
  }, [data, valid, errors, fieldProblems]);
37618
38021
  return jsxs("form", {
37619
- className: "adyen-kyc__registration-details",
37620
- children: [jsx(FormHeader, {
37621
- heading: props.heading
38022
+ className: "adyen-kyc__high-exposure-company",
38023
+ children: [jsx(Typography, {
38024
+ el: "h1",
38025
+ variant: "title-l",
38026
+ children: i18n.get("parentCompanyInformation")
38027
+ }), jsx(Typography, {
38028
+ el: "p",
38029
+ variant: "body",
38030
+ children: i18n.get("inTheLastStepOwnedByAParentCompany")
37622
38031
  }), jsx(ErrorPanel, {
37623
38032
  verificationErrors: props.formVerificationErrors,
37624
38033
  validationErrors: props == null ? void 0 : props.fieldValidationErrors,
37625
38034
  formUtils,
37626
38035
  id: "ariaErrorField"
37627
- }), formUtils.isRequiredField("numberOfEmployees") && jsx(Field, {
37628
- name: "numberOfEmployees",
37629
- label: formUtils.getLabel("numberOfEmployees", "numberOfEmployees"),
37630
- classNameModifiers: ["legalName"],
37631
- errorMessage: formUtils.getErrorMessage("numberOfEmployees", errors, fieldProblems),
37632
- isValid: valid.numberOfEmployees,
37633
- children: (childProps) => jsx(InputText, {
37634
- ...childProps,
37635
- name: "numberOfEmployees",
37636
- value: data.numberOfEmployees,
37637
- readonly: formUtils.isReadOnly("numberOfEmployees"),
37638
- classNameModifiers: ["legalName"],
37639
- onInput: handleChangeFor("numberOfEmployees", "input"),
37640
- onBlur: handleChangeFor("numberOfEmployees", "blur"),
37641
- "aria-required": true,
37642
- "aria-label": formUtils.getLabel("numberOfEmployees"),
37643
- "aria-invalid": !valid.numberOfEmployees
37644
- })
38036
+ }), jsx(HighExposureBusinessInformation, {
38037
+ ...props,
38038
+ handleChangeFor: highExposureHandleChangeFor,
38039
+ sectionHeading: "businessInformation",
38040
+ errors,
38041
+ data,
38042
+ valid,
38043
+ country: props.country,
38044
+ formUtils,
38045
+ fieldProblems,
38046
+ targetPage: HighExposurePagesEnums.PARENT_COMPANY_PAGE,
38047
+ fieldMapping: parentCompanyFieldMapping$1
37645
38048
  })]
37646
38049
  });
37647
38050
  }
37648
- function AdditionalFieldsForHighExposureUltimateParentCompany({
37649
- requiredFields,
37650
- ...props
37651
- }) {
38051
+ const parentCompanyFieldMapping = {
38052
+ legalName: "ultimateParentLegalName",
38053
+ legalForm: "ultimateParentLegalForm",
38054
+ naceCode: "ultimateParentNaceCode",
38055
+ numberOfEmployees: "ultimateParentNumberOfEmployees",
38056
+ doesTheCompanyEarnMoreThanHalf: "doesTheUltimateParentCompanyEarnMoreThanHalf",
38057
+ doesYourCompanyHaveLEI: "doesYourUltimateParentCompanyHaveLEI",
38058
+ legalEntityIdentifier: "ultimateParentLegalEntityIdentifier",
38059
+ doesNotKnowNumberOfEmployees: "doesNotKnowUltimateParentNumberOfEmployees"
38060
+ };
38061
+ const highExposureUltimateParentCompanyDetailsFields = Object.values(parentCompanyFieldMapping);
38062
+ function AdditionalFieldsForHighExposureUltimateParentCompany(props) {
37652
38063
  const {
37653
38064
  i18n
37654
38065
  } = useI18nContext();
@@ -37660,14 +38071,15 @@ function AdditionalFieldsForHighExposureUltimateParentCompany({
37660
38071
  fieldProblems
37661
38072
  } = useForm({
37662
38073
  ...props,
37663
- schema: ["numberOfEmployees"],
38074
+ schema: highExposureUltimateParentCompanyDetailsFields,
37664
38075
  defaultData: {
37665
38076
  ...props.data
37666
38077
  },
37667
- rules: props.validators || highExposureCompanyDetailsValidations,
38078
+ rules: props.validators || highExposureUltimateParentCompanyDetailsValidations,
37668
38079
  fieldProblems: props == null ? void 0 : props.fieldValidationErrors
37669
38080
  });
37670
38081
  const formUtils = formUtilities(props, i18n);
38082
+ const highExposureHandleChangeFor = handleChangeFor;
37671
38083
  const {
37672
38084
  updateStateSlice
37673
38085
  } = useGlobalDataSlice("ultimateParentCompany");
@@ -37680,32 +38092,32 @@ function AdditionalFieldsForHighExposureUltimateParentCompany({
37680
38092
  });
37681
38093
  }, [data, valid, errors, fieldProblems]);
37682
38094
  return jsxs("form", {
37683
- className: "adyen-kyc__registration-details",
37684
- children: [jsx(FormHeader, {
37685
- heading: props.heading
38095
+ className: "adyen-kyc__high-exposure-company",
38096
+ children: [jsx(Typography, {
38097
+ el: "h1",
38098
+ variant: "title-l",
38099
+ children: i18n.get("ultimateParentCompanyInformation")
38100
+ }), jsx(Typography, {
38101
+ el: "p",
38102
+ variant: "body",
38103
+ children: i18n.get("inThePreviousStepOwnedByAnUltimateParentCompany")
37686
38104
  }), jsx(ErrorPanel, {
37687
38105
  verificationErrors: props.formVerificationErrors,
37688
38106
  validationErrors: props == null ? void 0 : props.fieldValidationErrors,
37689
38107
  formUtils,
37690
38108
  id: "ariaErrorField"
37691
- }), formUtils.isRequiredField("numberOfEmployees") && jsx(Field, {
37692
- name: "numberOfEmployees",
37693
- label: formUtils.getLabel("numberOfEmployees", "numberOfEmployees"),
37694
- classNameModifiers: ["legalName"],
37695
- errorMessage: formUtils.getErrorMessage("numberOfEmployees", errors, fieldProblems),
37696
- isValid: valid.numberOfEmployees,
37697
- children: (childProps) => jsx(InputText, {
37698
- ...childProps,
37699
- name: "numberOfEmployees",
37700
- value: data.numberOfEmployees,
37701
- readonly: formUtils.isReadOnly("numberOfEmployees"),
37702
- classNameModifiers: ["legalName"],
37703
- onInput: handleChangeFor("numberOfEmployees", "input"),
37704
- onBlur: handleChangeFor("numberOfEmployees", "blur"),
37705
- "aria-required": true,
37706
- "aria-label": formUtils.getLabel("numberOfEmployees"),
37707
- "aria-invalid": !valid.numberOfEmployees
37708
- })
38109
+ }), jsx(HighExposureBusinessInformation, {
38110
+ ...props,
38111
+ handleChangeFor: highExposureHandleChangeFor,
38112
+ sectionHeading: "businessInformation",
38113
+ errors,
38114
+ data,
38115
+ valid,
38116
+ country: props.country,
38117
+ formUtils,
38118
+ fieldProblems,
38119
+ targetPage: HighExposurePagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
38120
+ fieldMapping: parentCompanyFieldMapping
37709
38121
  })]
37710
38122
  });
37711
38123
  }
@@ -37736,20 +38148,15 @@ function HighExposureDropinComponent(props) {
37736
38148
  const highExposureCompanyDetailsFormProps = getFormProps(props, companyFormId);
37737
38149
  const highExposureParentCompanyDetailsFormProps = getFormProps(props, parentCompanyFormId);
37738
38150
  const highExposureUltimateParentCompanyDetailsFormProps = getFormProps(props, ultimateParentCompanyFormId);
37739
- const renderActiveForm = (activeForm) => jsxs("div", {
38151
+ const renderActiveForm = (activeForm) => jsx("div", {
37740
38152
  className: "adyen-kyc",
37741
- children: [jsx(ContextGuidance, {
37742
- page: "High exposure company details page",
37743
- titleId: "whyDoINeedToFillInThisInformation",
37744
- contentId: "euFinancialRegulationsRequireUs",
37745
- title: i18n.get("whyDoINeedToFillInThisInformation"),
37746
- content: i18n.get("euFinancialRegulationsRequireUs")
37747
- }), jsxs("div", {
38153
+ children: jsxs("div", {
37748
38154
  className: "adyen-kyc-form-wrapper",
37749
38155
  children: [activeForm.formId === companyFormId && jsx(AdditionalFieldsForHighExposureCompany, {
37750
38156
  ...highExposureCompanyDetailsFormProps,
37751
38157
  legalEntityId: props.legalEntityId,
37752
- heading: i18n.get("detailsForCapital"),
38158
+ legalEntity: props.legalEntity,
38159
+ heading: i18n.get("yourBusinessDetails"),
37753
38160
  id: companyFormId,
37754
38161
  country: props.country
37755
38162
  }), activeForm.formId === parentCompanyFormId && jsx(AdditionalFieldsForHighExposureParentCompany, {
@@ -37765,7 +38172,7 @@ function HighExposureDropinComponent(props) {
37765
38172
  id: companyFormId,
37766
38173
  country: props.country
37767
38174
  })]
37768
- })]
38175
+ })
37769
38176
  });
37770
38177
  return jsx("div", {
37771
38178
  className: "adyen-kyc",
@@ -37780,6 +38187,24 @@ const customLabels = {
37780
38187
  company: {
37781
38188
  legalForm: "businessStructure",
37782
38189
  naceCode: "industryAndNaceCode"
38190
+ },
38191
+ parentCompany: {
38192
+ parentLegalName: "legalName",
38193
+ parentLegalForm: "businessStructure",
38194
+ parentNaceCode: "industryAndNaceCode",
38195
+ parentNumberOfEmployees: "numberOfEmployees",
38196
+ doesTheParentCompanyEarnMoreThanHalf: "doesTheCompanyEarnMoreThanHalf",
38197
+ doesYourParentCompanyHaveLEI: "doesThisCompanyHaveLEI",
38198
+ parentLegalEntityIdentifier: "legalEntityIdentifier"
38199
+ },
38200
+ ultimateParentCompany: {
38201
+ ultimateParentLegalName: "legalName",
38202
+ ultimateParentLegalForm: "businessStructure",
38203
+ ultimateParentNaceCode: "industryAndNaceCode",
38204
+ ultimateParentNumberOfEmployees: "numberOfEmployees",
38205
+ doesTheUltimateParentCompanyEarnMoreThanHalf: "doesTheCompanyEarnMoreThanHalf",
38206
+ doesYourUltimateParentCompanyHaveLEI: "doesThisCompanyHaveLEI",
38207
+ ultimateParentLegalEntityIdentifier: "legalEntityIdentifier"
37783
38208
  }
37784
38209
  };
37785
38210
  function UpdateLegalEntityForHighExposure({
@@ -37793,16 +38218,17 @@ function UpdateLegalEntityForHighExposure({
37793
38218
  hideDropinLayout,
37794
38219
  handleHomeClick,
37795
38220
  homeButtonLabel,
37796
- legalEntityId
38221
+ legalEntityId,
38222
+ legalEntity: legalEntityProps
37797
38223
  }) {
37798
- var _a;
38224
+ var _a, _b, _c;
37799
38225
  const {
37800
38226
  getLegalEntity: getLegalEntity2
37801
38227
  } = useComponentApi(legalEntityId);
37802
38228
  const {
37803
38229
  i18n
37804
38230
  } = useI18nContext();
37805
- const [legalEntity, setLegalEntity] = useState();
38231
+ const [legalEntity, setLegalEntity] = useState(legalEntityProps);
37806
38232
  const fetchLegalEntity = useCallback(async () => {
37807
38233
  const legalEntityResponse = await getLegalEntity2(legalEntityId);
37808
38234
  setLegalEntity(legalEntityResponse);
@@ -37827,6 +38253,7 @@ function UpdateLegalEntityForHighExposure({
37827
38253
  } = useToastContext();
37828
38254
  const [loadingStatus, setLoadingStatus] = useState("success");
37829
38255
  const formRef = useRef(null);
38256
+ const [highExposureRequiredForms, setHighExposureRequiredForms] = useState(highExposureForms);
37830
38257
  const getConfigurationData = useCallback(() => getConfiguration2({
37831
38258
  legalEntityType: LegalEntityType.ORGANIZATION,
37832
38259
  capabilities,
@@ -37853,10 +38280,33 @@ function UpdateLegalEntityForHighExposure({
37853
38280
  });
37854
38281
  onChange == null ? void 0 : onChange(currentState);
37855
38282
  }, [currentState]);
38283
+ useEffect(() => {
38284
+ var _a2, _b2;
38285
+ const showParentCompany = ((_a2 = data == null ? void 0 : data.company) == null ? void 0 : _a2.isCompanyOwnedByAnotherCompany) === "Yes";
38286
+ const showUltimateParentCompany = ((_b2 = data == null ? void 0 : data.company) == null ? void 0 : _b2.isParentOwnedByAnotherCompany) === "Yes";
38287
+ let updateForms = {
38288
+ company: {
38289
+ ...highExposureForms.company
38290
+ }
38291
+ };
38292
+ if (showParentCompany) {
38293
+ updateForms = {
38294
+ ...updateForms,
38295
+ parentCompany: highExposureForms.parentCompany
38296
+ };
38297
+ }
38298
+ if (showParentCompany && showUltimateParentCompany) {
38299
+ updateForms = {
38300
+ ...updateForms,
38301
+ ultimateParentCompany: highExposureForms.ultimateParentCompany
38302
+ };
38303
+ }
38304
+ setHighExposureRequiredForms(updateForms);
38305
+ }, [(_a = data == null ? void 0 : data.company) == null ? void 0 : _a.isCompanyOwnedByAnotherCompany, (_b = data == null ? void 0 : data.company) == null ? void 0 : _b.isParentOwnedByAnotherCompany]);
37856
38306
  const forms2 = useMemo(() => {
37857
- const requiredForms = getRequiredForms(highExposureForms, derivedProps == null ? void 0 : derivedProps.requiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields);
38307
+ const requiredForms = getRequiredForms(highExposureRequiredForms, derivedProps == null ? void 0 : derivedProps.requiredFields, derivedProps == null ? void 0 : derivedProps.optionalFields);
37858
38308
  return addValidityToForms(requiredForms, formValidity, problems);
37859
- }, [derivedProps, formValidity, problems]);
38309
+ }, [derivedProps == null ? void 0 : derivedProps.optionalFields, derivedProps == null ? void 0 : derivedProps.requiredFields, formValidity, highExposureRequiredForms, problems]);
37860
38310
  const onSubmit = async () => {
37861
38311
  setLoadingStatus("loading");
37862
38312
  const exposureDetails = mapHighExposureToLegalEntity(data);
@@ -37921,7 +38371,7 @@ function UpdateLegalEntityForHighExposure({
37921
38371
  onSubmit
37922
38372
  });
37923
38373
  return jsx(FormWrapper, {
37924
- taskName: "detailsForCapital",
38374
+ taskName: "progress",
37925
38375
  handleNextClick,
37926
38376
  handleBackClick,
37927
38377
  gotoFormByFormIndex,
@@ -37947,10 +38397,11 @@ function UpdateLegalEntityForHighExposure({
37947
38397
  activeForm,
37948
38398
  capabilities,
37949
38399
  data,
37950
- country: ((_a = data == null ? void 0 : data.company) == null ? void 0 : _a.country) ?? country2,
38400
+ country: ((_c = data == null ? void 0 : data.company) == null ? void 0 : _c.country) ?? country2,
37951
38401
  problems,
37952
38402
  shouldValidate,
37953
- ref: formRef
38403
+ ref: formRef,
38404
+ legalEntity
37954
38405
  })
37955
38406
  });
37956
38407
  }
@@ -38625,7 +39076,7 @@ const ConfigurationApiProvider = ({
38625
39076
  isEmbeddedDropin,
38626
39077
  loadingContext
38627
39078
  } = authContext;
38628
- const sdkVersion = "3.20.2";
39079
+ const sdkVersion = "3.21.0";
38629
39080
  useAnalytics({
38630
39081
  onUserEvent,
38631
39082
  legalEntityId: rootLegalEntityId,
@@ -38804,7 +39255,8 @@ const settingsDefaults = {
38804
39255
  hideOnboardingIntroductionTrust: true,
38805
39256
  hideOnboardingIntroductionSoleProprietor: true,
38806
39257
  viewOnboardingGuidance: false,
38807
- transferInstrumentLimit: 0
39258
+ transferInstrumentLimit: 0,
39259
+ instantBankVerification: true
38808
39260
  };
38809
39261
  function SettingsProvider({
38810
39262
  children,
@@ -39009,8 +39461,7 @@ const Toast = ({
39009
39461
  onToastAction
39010
39462
  }) => {
39011
39463
  const toastRef = useRef(null);
39012
- const loading2 = type === "loading";
39013
- const successToast = type === "loading";
39464
+ const isLoading = type === "loading";
39014
39465
  const labelId = getUniqueId("toast");
39015
39466
  const handleShow = useCallback(() => {
39016
39467
  var _a;
@@ -39027,52 +39478,49 @@ const Toast = ({
39027
39478
  setTimeout(() => handleHide(), duration);
39028
39479
  }
39029
39480
  }, [label, duration, handleHide, handleShow]);
39481
+ const statusClassMap = Object.freeze({
39482
+ info: "",
39483
+ loading: "adyen-kyc-toast__loading",
39484
+ success: "adyen-kyc-toast__success",
39485
+ error: "adyen-kyc-toast__error"
39486
+ });
39030
39487
  return jsxs("div", {
39031
39488
  ref: toastRef,
39032
39489
  role: actionLabel ? "alertdialog" : "alert",
39033
- className: "adyen-kyc-toast",
39490
+ className: `adyen-kyc-toast ${statusClassMap[type]}`,
39034
39491
  "aria-labelledby": labelId,
39035
- children: [loading2 && jsx("div", {
39492
+ children: [isLoading && jsx("div", {
39036
39493
  className: "adyen-kyc-toast__loader",
39037
- children: jsx("div", {
39038
- className: "adyen-kyc-loading-indicator adyen-kyc-loading-indicator--small adyen-kyc-loading-indicator--dark"
39494
+ children: jsx(Spinner, {
39495
+ size: "small"
39039
39496
  })
39040
- }), !loading2 && jsxs("div", {
39041
- className: cx("adyen-kyc-toast__status", {
39042
- "adyen-kyc-toast__status--success": successToast,
39043
- "adyen-kyc-toast__status--error": !successToast
39044
- }),
39045
- children: [successToast && jsx(Icon, {
39046
- className: "adyen-kyc-toast__status-icon",
39047
- name: "checkmark"
39048
- }), !successToast && jsx(Icon, {
39049
- className: "adyen-kyc-toast__status-icon",
39050
- name: "cross"
39051
- })]
39052
39497
  }), jsxs("div", {
39053
39498
  className: "adyen-kyc-toast__message",
39054
39499
  children: [jsx("span", {
39055
39500
  id: labelId,
39056
39501
  className: "adyen-kyc-toast__title",
39057
39502
  children: label
39058
- }), actionLabel && jsx("button", {
39059
- className: "adyen-kyc-link adyen-kyc-toast__action",
39060
- title: "performAction",
39061
- type: "button",
39062
- onClick: onToastAction,
39063
- children: actionLabel
39064
- }), !loading2 && subLabel && jsx("span", {
39503
+ }), !isLoading && subLabel && jsx("span", {
39065
39504
  className: "adyen-kyc-toast__subtitle",
39066
39505
  children: subLabel
39067
39506
  })]
39068
- }), !loading2 && jsx("button", {
39069
- className: "adyen-kyc-toast__close",
39070
- title: "close",
39071
- type: "button",
39072
- onClick: handleHide,
39073
- children: jsx(Icon, {
39074
- name: "cross"
39075
- })
39507
+ }), jsxs("div", {
39508
+ className: "adyen-kyc-toast__actions",
39509
+ children: [!isLoading && jsx("button", {
39510
+ className: "adyen-kyc-toast__close",
39511
+ title: "close",
39512
+ type: "button",
39513
+ onClick: handleHide,
39514
+ children: jsx(Icon, {
39515
+ name: "cross"
39516
+ })
39517
+ }), actionLabel && jsx(Button, {
39518
+ onClick: onToastAction ?? noop,
39519
+ className: "adyen-kyc-link adyen-kyc-toast__action adyen-kyc-u-margin-right-8",
39520
+ title: "performAction",
39521
+ label: actionLabel,
39522
+ tertiary: true
39523
+ })]
39076
39524
  })]
39077
39525
  });
39078
39526
  };
@@ -40083,18 +40531,12 @@ const validateCoreOptions = (coreOptions) => {
40083
40531
  if (!(coreOptions.sdkToken && coreOptions.getSdkToken) && !coreOptions.clientKey) {
40084
40532
  throw new Error(`
40085
40533
 
40086
- Please specify either sdkToken and getSdkToken handler or a clientKey for the SDK to initialize!
40087
-
40088
-
40089
- - For more information please check: https://docs.adyen.com/platforms/onboard-users/components/?tab=npm_recommended__1#step-7-initiate-the-onboarding-component`);
40534
+ Missing or invalid parameters. Specify either the sdkToken and getSdkToken handler or a clientKey in your request to initialize the component.`);
40090
40535
  }
40091
40536
  if (missing.length > 0) {
40092
40537
  throw new Error(`
40093
40538
 
40094
- Please specify a ${listify(missing)} for the SDK to initialize!
40095
-
40096
- - For more information please check: https://docs.adyen.com/platforms/onboard-users/components/?tab=npm_recommended__1#step-7-initiate-the-onboarding-component
40097
- `);
40539
+ Missing or invalid parameters. Specify ${listify(missing)} in your request to initialize the component.`);
40098
40540
  }
40099
40541
  };
40100
40542
  const validateComponentOptions = (componentName, options) => {