@adyen/kyc-components 2.18.0 → 2.19.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 (43) hide show
  1. package/dist/es/adyen-kyc-components.es.js +612 -338
  2. package/dist/style.css +12 -11
  3. package/dist/types/components/Dropins/IndividualDropin/components/IndividualDropinComponent.d.ts +1 -1
  4. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +16 -0
  5. package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +11 -0
  6. package/dist/types/components/Individual/types.d.ts +2 -1
  7. package/dist/types/components/Introduction/Introduction.d.ts +10 -0
  8. package/dist/types/components/Introduction/IntroductionScreen.d.ts +8 -0
  9. package/dist/types/components/Introduction/constants.d.ts +3 -0
  10. package/dist/types/components/Introduction/copy.d.ts +14 -0
  11. package/dist/types/components/Introduction/types.d.ts +12 -0
  12. package/dist/types/components/TaskList/types.d.ts +1 -1
  13. package/dist/types/components/index.d.ts +4 -2
  14. package/dist/types/components/internal/AccountHolder/types.d.ts +1 -1
  15. package/dist/types/components/internal/Address/utils.d.ts +1 -1
  16. package/dist/types/core/Context/SettingsContext/types.d.ts +6 -2
  17. package/dist/types/core/SDKValidation/index.d.ts +1 -1
  18. package/dist/types/core/Services/componentApi/create-legal-entity.d.ts +3 -0
  19. package/dist/types/core/Services/componentApi/index.d.ts +2 -0
  20. package/dist/types/core/Services/componentApi/update-legal-entity.d.ts +3 -0
  21. package/dist/types/core/core.d.ts +1 -1
  22. package/dist/types/core/hooks/introduction/useCanSeeIntroduction.d.ts +5 -0
  23. package/dist/types/core/hooks/introduction/useHasSeenIntroduction.d.ts +7 -0
  24. package/dist/types/core/hooks/introduction/useIntroductionScreens.d.ts +8 -0
  25. package/dist/types/core/hooks/introduction/useShouldShowIntroduction.d.ts +5 -0
  26. package/dist/types/core/hooks/useBusinessSetup.d.ts +1 -1
  27. package/dist/types/core/hooks/useComponentApi.d.ts +6 -0
  28. package/dist/types/core/hooks/useLegalEntityType.d.ts +6 -0
  29. package/dist/types/core/hooks/useLocalStorage.d.ts +5 -2
  30. package/dist/types/core/models/api/organization.d.ts +1 -1
  31. package/dist/types/core/models/errors/entity-problems.d.ts +1 -1
  32. package/dist/types/core/models/form-rules.d.ts +1 -0
  33. package/dist/types/language/config.d.ts +46 -27
  34. package/dist/types/utils/decision-maker-roles.d.ts +1 -1
  35. package/dist/types/utils/entity-status-util.d.ts +2 -2
  36. package/dist/types/utils/trust-util.d.ts +1 -1
  37. package/package.json +1 -1
  38. package/dist/types/components/EmbeddedDropins/TransferInstrumentComponent/TransferInstrumentComponent.d.ts +0 -11
  39. package/dist/types/components/TaskIntros/TaskIntro.d.ts +0 -8
  40. package/dist/types/components/TaskIntros/TaskIntros.d.ts +0 -10
  41. package/dist/types/components/TaskIntros/copy.d.ts +0 -14
  42. package/dist/types/components/TaskIntros/types.d.ts +0 -8
  43. package/dist/types/core/hooks/taskIntros.d.ts +0 -10
@@ -139,8 +139,13 @@ const privateCompanyTitle = "Private company";
139
139
  const privateCompanyDescription = "Owned privately. The shareholders don’t necessarily trade on public exchanges (like the stock market).";
140
140
  const publicCompanyTitle = "Public company";
141
141
  const publicCompanyDescription = "Owned by public shareholders. They’re also required to disclose financial information to the public regularly.";
142
+ const incorporatedPartnership = "Incorporated partnership";
143
+ const unincorporatedPartnership = "Unincorporated partnership";
142
144
  const incorporatedPartnershipTitle = "Incorporated partnership";
143
145
  const incorporatedPartnershipDescription = "An agreement between two or more people who run a business together.";
146
+ const incorporatedPartnershipNewEntryFlowDescription = "You and your partners have limited liability for business debts.";
147
+ const unincorporatedPartnershipDescription = "You or your partners are personally liable for business debts.";
148
+ const unincorporatedPartnershipNewEntryFlowDescription = "You or your partners are personally liable for business debts.";
144
149
  const nonProfitOrCharitableOrgTitle = "Non-profit or charitable organization";
145
150
  const nonProfitOrCharitableOrgDescription = "An organization that has an official status as not for profit or tax exempt, sometimes called an NGO.";
146
151
  const governmentalOrganizationTitle = "Governmental organization";
@@ -316,9 +321,9 @@ const directorDescription = "Someone appointed to manage a company's business an
316
321
  const provideAllDirectors = "Add <strong>all directors</strong>. You should have at least 1 director.";
317
322
  const addDecisionMaker = "Add decision-maker";
318
323
  const decisionMakers = "Decision-makers";
319
- const goToIntro = "How does it work?";
324
+ const goToIntroduction = "How does it work?";
320
325
  const goToOverview = "Go to overview";
321
- const goToOverviewFromIntro = "Skip intro";
326
+ const goToOverviewFromIntroduction = "Skip intro";
322
327
  const saveAndGoToOverview = "Save and go to overview";
323
328
  const pleaseEnsureTheFollowing = "Please ensure the following section is fulfilled to complete the review of your data.";
324
329
  const edit = "Edit";
@@ -1091,31 +1096,45 @@ const firstNameOfSettlor = "First name of settlor";
1091
1096
  const lastNameOfSettlor = "Last name of settlor";
1092
1097
  const enterSettlorsFirstNameExactlyAsItAppearsInID = "Enter the settlor's first name(s) exactly as it appears on their identity document";
1093
1098
  const enterSettlorsLastNameExactlyAsItAppearsInID = "Enter the settlor's last name(s) exactly as it appears on their identity document";
1094
- const taskIntroPrologueTitle = "Before you begin...";
1095
- const taskIntroPrologueDescriptionP1 = "We'll ask for some details about your business as part of financial regulations.";
1096
- const taskIntroPrologueDescriptionP2 = "Our advice? Have these details on hand so you can get verified quickly.";
1097
- const taskIntroCompanyTitle = "Company details";
1098
- const taskIntroCompanyDescriptionP1 = "For example, your company name and registration number.";
1099
- const taskIntroCompanyDescriptionP2 = "Where to find this information";
1100
- const taskIntroCompanyDescriptionLI1 = "Your company registration document";
1101
- const taskIntroDecisionMakerTitle = "Decision-makers";
1102
- const taskIntroDecisionMakerDescriptionP1 = "For example, the name and address of important people in your company.";
1103
- const taskIntroDecisionMakerDescriptionP2 = "Where to find this information";
1104
- const taskIntroDecisionMakerDescriptionLI1 = "Driver's license";
1105
- const taskIntroDecisionMakerDescriptionLI2 = "Passport";
1106
- const taskIntroDecisionMakerDescriptionLI3 = "ID document";
1107
- const taskIntroIndividualTitle = "Personal details";
1108
- const taskIntroIndividualDescriptionP1 = "For example, your name and residential address.";
1109
- const taskIntroIndividualDescriptionP2 = "Where to find this information";
1110
- const taskIntroIndividualDescriptionLI1 = "Driver's license";
1111
- const taskIntroIndividualDescriptionLI2 = "Passport";
1112
- const taskIntroIndividualDescriptionLI3 = "ID document";
1113
- const taskIntroPayoutTitle = "Bank account details";
1114
- const taskIntroPayoutDescriptionP1 = "For example, the account holder name and account number.";
1115
- const taskIntroPayoutDescriptionP2 = "This is the bank account you use to send or receive funds.";
1116
- const taskIntroEpilogueTitle = "Why do we need this information?";
1117
- const taskIntroEpilogueDescriptionP1 = "We check all this information against official records to verify your identity and comply with financial regulations.";
1118
- const taskIntroEpilogueDescriptionP2 = "Your information will be used only for these purposes.";
1099
+ const introductionScreenPrologueTitle = "Before you begin...";
1100
+ const introductionScreenPrologueDescriptionP1 = "Well ask for some details about your business as part of financial regulations.";
1101
+ const introductionScreenPrologueDescriptionP2 = "Our advice? Have these details on hand so you can get verified quickly.";
1102
+ const introductionScreenCompanyTitle = "Company details";
1103
+ const introductionScreenCompanyDescriptionP1 = "For example, your company name and registration number.";
1104
+ const introductionScreenCompanyDescriptionP2 = "Where to find this information";
1105
+ const introductionScreenCompanyDescriptionLI1 = "Your company registration document";
1106
+ const introductionScreenIndividualTitle = "Personal details";
1107
+ const introductionScreenIndividualDescriptionP1 = "For example, your name and residential address.";
1108
+ const introductionScreenIndividualDescriptionP2 = "Where to find this information";
1109
+ const introductionScreenIndividualDescriptionLI1 = "Drivers license";
1110
+ const introductionScreenIndividualDescriptionLI2 = "Passport";
1111
+ const introductionScreenIndividualDescriptionLI3 = "ID document";
1112
+ const introductionScreenDecisionMakerTitle = "Decision-makers";
1113
+ const introductionScreenDecisionMakerDescriptionP1 = "For example, the name and address of important people in your company.";
1114
+ const introductionScreenDecisionMakerDescriptionP2 = "Where to find this information";
1115
+ const introductionScreenDecisionMakerDescriptionLI1 = "Drivers license";
1116
+ const introductionScreenDecisionMakerDescriptionLI2 = "Passport";
1117
+ const introductionScreenDecisionMakerDescriptionLI3 = "ID document";
1118
+ const introductionScreenSoleProprietorCompanyTitle = "Sole proprietorship details";
1119
+ const introductionScreenSoleProprietorCompanyDescriptionP1 = "For example, your business name and tax identification number.";
1120
+ const introductionScreenSoleProprietorCompanyDescriptionP2 = "Where to find this information";
1121
+ const introductionScreenSoleProprietorCompanyDescriptionLI1 = "Your sole proprietorship registration document";
1122
+ const introductionScreenTrustTitle = "Trust details";
1123
+ const introductionScreenTrustDescriptionP1 = "For example, your trust’s name and business number. You’ll also need to upload your trust deed.";
1124
+ const introductionScreenTrustDescriptionP2 = "Where to find this information";
1125
+ const introductionScreenTrustDescriptionLI1 = "Your trust registration document";
1126
+ const introductionScreenTrustMemberTitle = "Trust members";
1127
+ const introductionScreenTrustMemberDescriptionP1 = "The name, date of birth, and address of trust members such as settlors and beneficiaries.";
1128
+ const introductionScreenTrustMemberDescriptionP2 = "Where to find this information";
1129
+ const introductionScreenTrustMemberDescriptionLI1 = "Driver’s license";
1130
+ const introductionScreenTrustMemberDescriptionLI2 = "Passport";
1131
+ const introductionScreenTrustMemberDescriptionLI3 = "ID document";
1132
+ const introductionScreenAccountTitle = "Bank account details";
1133
+ const introductionScreenAccountDescriptionP1 = "For example, the account holder name and account number.";
1134
+ const introductionScreenAccountDescriptionP2 = "This is the bank account you use to send or receive funds.";
1135
+ const introductionScreenEpilogueTitle = "Why do we need this information?";
1136
+ const introductionScreenEpilogueDescriptionP1 = "We check all this information against official records to verify your identity and comply with financial regulations.";
1137
+ const introductionScreenEpilogueDescriptionP2 = "Your information will be used only for these purposes.";
1119
1138
  const defaultTrans = {
1120
1139
  close,
1121
1140
  individual,
@@ -1242,8 +1261,13 @@ const defaultTrans = {
1242
1261
  privateCompanyDescription,
1243
1262
  publicCompanyTitle,
1244
1263
  publicCompanyDescription,
1264
+ incorporatedPartnership,
1265
+ unincorporatedPartnership,
1245
1266
  incorporatedPartnershipTitle,
1246
1267
  incorporatedPartnershipDescription,
1268
+ incorporatedPartnershipNewEntryFlowDescription,
1269
+ unincorporatedPartnershipDescription,
1270
+ unincorporatedPartnershipNewEntryFlowDescription,
1247
1271
  nonProfitOrCharitableOrgTitle,
1248
1272
  nonProfitOrCharitableOrgDescription,
1249
1273
  governmentalOrganizationTitle,
@@ -1419,9 +1443,9 @@ const defaultTrans = {
1419
1443
  provideAllDirectors,
1420
1444
  addDecisionMaker,
1421
1445
  decisionMakers,
1422
- goToIntro,
1446
+ goToIntroduction,
1423
1447
  goToOverview,
1424
- goToOverviewFromIntro,
1448
+ goToOverviewFromIntroduction,
1425
1449
  saveAndGoToOverview,
1426
1450
  pleaseEnsureTheFollowing,
1427
1451
  edit,
@@ -2211,31 +2235,45 @@ const defaultTrans = {
2211
2235
  lastNameOfSettlor,
2212
2236
  enterSettlorsFirstNameExactlyAsItAppearsInID,
2213
2237
  enterSettlorsLastNameExactlyAsItAppearsInID,
2214
- taskIntroPrologueTitle,
2215
- taskIntroPrologueDescriptionP1,
2216
- taskIntroPrologueDescriptionP2,
2217
- taskIntroCompanyTitle,
2218
- taskIntroCompanyDescriptionP1,
2219
- taskIntroCompanyDescriptionP2,
2220
- taskIntroCompanyDescriptionLI1,
2221
- taskIntroDecisionMakerTitle,
2222
- taskIntroDecisionMakerDescriptionP1,
2223
- taskIntroDecisionMakerDescriptionP2,
2224
- taskIntroDecisionMakerDescriptionLI1,
2225
- taskIntroDecisionMakerDescriptionLI2,
2226
- taskIntroDecisionMakerDescriptionLI3,
2227
- taskIntroIndividualTitle,
2228
- taskIntroIndividualDescriptionP1,
2229
- taskIntroIndividualDescriptionP2,
2230
- taskIntroIndividualDescriptionLI1,
2231
- taskIntroIndividualDescriptionLI2,
2232
- taskIntroIndividualDescriptionLI3,
2233
- taskIntroPayoutTitle,
2234
- taskIntroPayoutDescriptionP1,
2235
- taskIntroPayoutDescriptionP2,
2236
- taskIntroEpilogueTitle,
2237
- taskIntroEpilogueDescriptionP1,
2238
- taskIntroEpilogueDescriptionP2
2238
+ introductionScreenPrologueTitle,
2239
+ introductionScreenPrologueDescriptionP1,
2240
+ introductionScreenPrologueDescriptionP2,
2241
+ introductionScreenCompanyTitle,
2242
+ introductionScreenCompanyDescriptionP1,
2243
+ introductionScreenCompanyDescriptionP2,
2244
+ introductionScreenCompanyDescriptionLI1,
2245
+ introductionScreenIndividualTitle,
2246
+ introductionScreenIndividualDescriptionP1,
2247
+ introductionScreenIndividualDescriptionP2,
2248
+ introductionScreenIndividualDescriptionLI1,
2249
+ introductionScreenIndividualDescriptionLI2,
2250
+ introductionScreenIndividualDescriptionLI3,
2251
+ introductionScreenDecisionMakerTitle,
2252
+ introductionScreenDecisionMakerDescriptionP1,
2253
+ introductionScreenDecisionMakerDescriptionP2,
2254
+ introductionScreenDecisionMakerDescriptionLI1,
2255
+ introductionScreenDecisionMakerDescriptionLI2,
2256
+ introductionScreenDecisionMakerDescriptionLI3,
2257
+ introductionScreenSoleProprietorCompanyTitle,
2258
+ introductionScreenSoleProprietorCompanyDescriptionP1,
2259
+ introductionScreenSoleProprietorCompanyDescriptionP2,
2260
+ introductionScreenSoleProprietorCompanyDescriptionLI1,
2261
+ introductionScreenTrustTitle,
2262
+ introductionScreenTrustDescriptionP1,
2263
+ introductionScreenTrustDescriptionP2,
2264
+ introductionScreenTrustDescriptionLI1,
2265
+ introductionScreenTrustMemberTitle,
2266
+ introductionScreenTrustMemberDescriptionP1,
2267
+ introductionScreenTrustMemberDescriptionP2,
2268
+ introductionScreenTrustMemberDescriptionLI1,
2269
+ introductionScreenTrustMemberDescriptionLI2,
2270
+ introductionScreenTrustMemberDescriptionLI3,
2271
+ introductionScreenAccountTitle,
2272
+ introductionScreenAccountDescriptionP1,
2273
+ introductionScreenAccountDescriptionP2,
2274
+ introductionScreenEpilogueTitle,
2275
+ introductionScreenEpilogueDescriptionP1,
2276
+ introductionScreenEpilogueDescriptionP2
2239
2277
  };
2240
2278
  const FALLBACK_LOCALE = "en-US";
2241
2279
  const defaultTranslation = defaultTrans;
@@ -2914,7 +2952,7 @@ const createLogger = (namespace) => {
2914
2952
  });
2915
2953
  return methods;
2916
2954
  };
2917
- const logger$n = createLogger("Link");
2955
+ const logger$o = createLogger("Link");
2918
2956
  const getIconClass = (icon, external) => {
2919
2957
  if (external) {
2920
2958
  return "adl-link__icon adyen-kyc-icon-external-link";
@@ -2926,7 +2964,7 @@ const getIconClass = (icon, external) => {
2926
2964
  };
2927
2965
  const isValidLink = (href) => {
2928
2966
  if (href === "#") {
2929
- logger$n.error('Links must include a valid href. If your href is "#", consider using a Button instead');
2967
+ logger$o.error('Links must include a valid href. If your href is "#", consider using a Button instead');
2930
2968
  return false;
2931
2969
  }
2932
2970
  return true;
@@ -3162,11 +3200,15 @@ var SettingNames = /* @__PURE__ */ ((SettingNames2) => {
3162
3200
  SettingNames2["AllowIntraRegionCrossBorderPayout"] = "allowIntraRegionCrossBorderPayout";
3163
3201
  SettingNames2["AllowLegalEntityTypeChange"] = "changeLegalEntityType";
3164
3202
  SettingNames2["AllowPrefilledCountryEdit"] = "editPrefilledCountry";
3165
- SettingNames2["ViewOnboardingGuidance"] = "viewOnboardingGuidance";
3166
3203
  SettingNames2["RequirePciSignEcommerce"] = "requirePciSignEcommerce";
3167
3204
  SettingNames2["RequirePciSignPos"] = "requirePciSignPos";
3168
3205
  SettingNames2["RequirePciSignEcomMoto"] = "requirePciSignEcomMoto";
3169
3206
  SettingNames2["RequirePciSignPosMoto"] = "requirePciSignPosMoto";
3207
+ SettingNames2["HideOnboardingIntroductionIndividual"] = "hideOnboardingIntroductionIndividual";
3208
+ SettingNames2["HideOnboardingIntroductionOrganization"] = "hideOnboardingIntroductionOrganization";
3209
+ SettingNames2["HideOnboardingIntroductionTrust"] = "hideOnboardingIntroductionTrust";
3210
+ SettingNames2["HideOnboardingIntroductionSoleProprietor"] = "hideOnboardingIntroductionSoleProprietor";
3211
+ SettingNames2["ViewOnboardingGuidance"] = "viewOnboardingGuidance";
3170
3212
  return SettingNames2;
3171
3213
  })(SettingNames || {});
3172
3214
  const ON_CHANGE_DEBOUNCE_DURATION = 200;
@@ -3216,14 +3258,14 @@ function useResetGlobalData(caller) {
3216
3258
  }
3217
3259
  }), [dispatch, caller]);
3218
3260
  }
3219
- const logger$m = createLogger("useAllowedCountries");
3261
+ const logger$n = createLogger("useAllowedCountries");
3220
3262
  const useAllowedCountries = () => {
3221
3263
  const {
3222
3264
  getAllowedCountries: getAllowedCountries2
3223
3265
  } = useConfigurationApi();
3224
3266
  const [allowedCountries, setAllowedCountries] = useState();
3225
3267
  useEffect(() => {
3226
- getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$m.error);
3268
+ getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$n.error);
3227
3269
  }, []);
3228
3270
  return allowedCountries;
3229
3271
  };
@@ -3562,7 +3604,7 @@ class ValidationResult {
3562
3604
  return this.validationResults.filter((result) => result.hasError);
3563
3605
  }
3564
3606
  }
3565
- const logger$l = createLogger("useAsyncValidator");
3607
+ const logger$m = createLogger("useAsyncValidator");
3566
3608
  const useAsyncValidator = (asyncRules) => {
3567
3609
  const [asyncValidationResults, setAsyncValidationResults] = useState({});
3568
3610
  const clearAsyncValidationResults = useCallback(() => setAsyncValidationResults({}), []);
@@ -3585,7 +3627,7 @@ const useAsyncValidator = (asyncRules) => {
3585
3627
  hasError: !isValid
3586
3628
  }])
3587
3629
  });
3588
- }).catch(logger$l.error);
3630
+ }).catch(logger$m.error);
3589
3631
  }, [asyncRules, clearAsyncValidationResults]);
3590
3632
  return {
3591
3633
  asyncValidationResults,
@@ -5006,7 +5048,7 @@ const Select = ({
5006
5048
  })]
5007
5049
  });
5008
5050
  };
5009
- const logger$k = createLogger("CountryField");
5051
+ const logger$l = createLogger("CountryField");
5010
5052
  const COUNTRY_FIELD = ["country"];
5011
5053
  function CountryField({
5012
5054
  data,
@@ -5029,7 +5071,7 @@ function CountryField({
5029
5071
  dataset: countriesFromApi
5030
5072
  } = useDataset(datasetIdentifier.country);
5031
5073
  useEffect(() => {
5032
- loadFlags2().catch(logger$k.error);
5074
+ loadFlags2().catch(logger$l.error);
5033
5075
  }, [loadFlags2]);
5034
5076
  const countries = countriesFromApi.filter((country2) => allowedCountries ? allowedCountries.includes(country2.id) : true).map((item) => ({
5035
5077
  ...item,
@@ -8716,7 +8758,7 @@ var DecisionMakerType = /* @__PURE__ */ ((DecisionMakerType2) => {
8716
8758
  })(DecisionMakerType || {});
8717
8759
  var TaskTypes = /* @__PURE__ */ ((TaskTypes2) => {
8718
8760
  TaskTypes2["BUSINESS_TYPE_SELECTION"] = "BUSINESS_TYPE_SELECTION";
8719
- TaskTypes2["INTRO"] = "INTRO";
8761
+ TaskTypes2["INTRODUCTION"] = "INTRODUCTION";
8720
8762
  TaskTypes2["TASKS_OVERVIEW"] = "TASKS_OVERVIEW";
8721
8763
  TaskTypes2["REVIEW"] = "REVIEW";
8722
8764
  TaskTypes2["INDIVIDUAL"] = "INDIVIDUAL";
@@ -8765,7 +8807,8 @@ const EXPIRY_DATE_REQUIRED_FOR_COUNTRIES = [CountryCodes.NewZealand];
8765
8807
  const rules$3 = ({
8766
8808
  data,
8767
8809
  country: country2,
8768
- taskType
8810
+ taskType,
8811
+ isEmbeddedDropin
8769
8812
  }) => ({
8770
8813
  isDirectorIdNumberRequiredForCountry: () => {
8771
8814
  var _a, _b, _c, _d, _e;
@@ -8830,7 +8873,7 @@ const rules$3 = ({
8830
8873
  }
8831
8874
  },
8832
8875
  accountHolderIfCustomer: () => {
8833
- if (taskType === TaskTypes.INDIVIDUAL) {
8876
+ if (taskType === TaskTypes.INDIVIDUAL && !isEmbeddedDropin) {
8834
8877
  return REQUIRED;
8835
8878
  }
8836
8879
  },
@@ -8862,7 +8905,7 @@ const accountHolderValidationRules = {
8862
8905
  }
8863
8906
  };
8864
8907
  const accountHolderFields = ["accountHolder"];
8865
- const logger$j = createLogger("AccountHolder");
8908
+ const logger$k = createLogger("AccountHolder");
8866
8909
  function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntityTypeAllowed, isTrustFlowEnabled, isSoleProprietorshipAllowed, isChangeToMyNameAllowed) {
8867
8910
  switch (legalEntityType) {
8868
8911
  case LegalEntityType.ORGANIZATION: {
@@ -8872,7 +8915,7 @@ function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntity
8872
8915
  return [...isChangeToMyNameAllowed ? ["myName"] : [], ...isChangeOfLegalEntityTypeAllowed ? ["theCompanyIWorkFor"] : [], ...isTrustFlowEnabled ? ["aTrust"] : [], ...isSoleProprietorshipAllowed ? ["mySoleProprietorName"] : []];
8873
8916
  }
8874
8917
  default:
8875
- logger$j.error(`No available account holder options for legal entity type '${legalEntityType}'`);
8918
+ logger$k.error(`No available account holder options for legal entity type '${legalEntityType}'`);
8876
8919
  return [];
8877
8920
  }
8878
8921
  }
@@ -9612,7 +9655,7 @@ function Dropzone(props) {
9612
9655
  })]
9613
9656
  });
9614
9657
  }
9615
- const logger$i = createLogger("TextArea");
9658
+ const logger$j = createLogger("TextArea");
9616
9659
  function TextArea(props) {
9617
9660
  const {
9618
9661
  classNameModifiers,
@@ -9633,7 +9676,7 @@ function TextArea(props) {
9633
9676
  } = useI18nContext();
9634
9677
  const [value, setValue] = useState("");
9635
9678
  if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
9636
- logger$i.error("Error: Form fields that rely on InputBase may not have an onChange property");
9679
+ logger$j.error("Error: Form fields that rely on InputBase may not have an onChange property");
9637
9680
  }
9638
9681
  const handleInput = (e) => {
9639
9682
  var _a;
@@ -10045,7 +10088,7 @@ function FieldContainer(props) {
10045
10088
  }
10046
10089
  return renderField(fieldName);
10047
10090
  }
10048
- const logger$h = createLogger("SearchAddress");
10091
+ const logger$i = createLogger("SearchAddress");
10049
10092
  const SearchAddress = ({
10050
10093
  data,
10051
10094
  legalEntityId,
@@ -10071,7 +10114,7 @@ const SearchAddress = ({
10071
10114
  const response = await handleFindAddress(selectedAddressId);
10072
10115
  autocompleteAddressForm(response);
10073
10116
  } catch (e) {
10074
- logger$h.error(e);
10117
+ logger$i.error(e);
10075
10118
  }
10076
10119
  };
10077
10120
  const onDrilldown = async (selectedAddress) => {
@@ -10083,7 +10126,7 @@ const SearchAddress = ({
10083
10126
  }, legalEntityId);
10084
10127
  setItems((response == null ? void 0 : response.results) || []);
10085
10128
  } catch (e) {
10086
- logger$h.error(e);
10129
+ logger$i.error(e);
10087
10130
  }
10088
10131
  };
10089
10132
  const onChange = (e) => {
@@ -10138,7 +10181,7 @@ const SearchAddress = ({
10138
10181
  setItems([]);
10139
10182
  }
10140
10183
  } catch (e) {
10141
- logger$h.error(e);
10184
+ logger$i.error(e);
10142
10185
  }
10143
10186
  setLoading(false);
10144
10187
  }
@@ -13510,7 +13553,7 @@ const initOnfido = async ({
13510
13553
  language: getOnfidoLocaleConfig(i18n)
13511
13554
  });
13512
13555
  };
13513
- const logger$g = createLogger("IdVerificationComponent");
13556
+ const logger$h = createLogger("IdVerificationComponent");
13514
13557
  function IdVerificationComponent({
13515
13558
  userDetails,
13516
13559
  legalEntityId,
@@ -13543,7 +13586,7 @@ function IdVerificationComponent({
13543
13586
  onIdVerificationError,
13544
13587
  onIdVerificationComplete
13545
13588
  });
13546
- })().catch(logger$g.error);
13589
+ })().catch(logger$h.error);
13547
13590
  return () => {
13548
13591
  if (onfidoSdk.current)
13549
13592
  onfidoSdk.current.tearDown();
@@ -13595,7 +13638,7 @@ function IdDocumentAlreadyUpload(props) {
13595
13638
  })]
13596
13639
  });
13597
13640
  }
13598
- const logger$f = createLogger("IdDocumentInstantVerificationComponent");
13641
+ const logger$g = createLogger("IdDocumentInstantVerificationComponent");
13599
13642
  const idVerificationSchema = ["instantIdVerificationData", "idDocumentType"];
13600
13643
  const documentTypeValidationRules = {
13601
13644
  instantIdVerificationData: {
@@ -13677,7 +13720,7 @@ function IdDocumentInstantVerificationComponent(props) {
13677
13720
  userDetails: props.userDetails,
13678
13721
  legalEntityId: props.legalEntityId,
13679
13722
  onIdVerificationComplete: handleIdVerificationComplete,
13680
- onIdVerificationError: logger$f.error
13723
+ onIdVerificationError: logger$g.error
13681
13724
  }), jsxs("div", {
13682
13725
  className: "adyen-kyc-document-upload__manual-upload",
13683
13726
  children: [i18n.get("canNotCompleteInstantVerification"), " ", jsx("button", {
@@ -16369,7 +16412,7 @@ class AdyenKycSdkError extends Error {
16369
16412
  }
16370
16413
  let sdkToken;
16371
16414
  let fetchSdkToken;
16372
- const logger$e = createLogger("Session");
16415
+ const logger$f = createLogger("Session");
16373
16416
  const setSdkToken = (token) => {
16374
16417
  sdkToken = token;
16375
16418
  };
@@ -16387,7 +16430,7 @@ const refreshSession = async () => {
16387
16430
  } = await fetchSdkToken();
16388
16431
  setSdkToken(token);
16389
16432
  } catch (e) {
16390
- logger$e.error("Failed to fetch sdk token", e);
16433
+ logger$f.error("Failed to fetch sdk token", e);
16391
16434
  }
16392
16435
  };
16393
16436
  const addAnimationStartListener = (element, listener) => {
@@ -16400,7 +16443,7 @@ const removeAnimationStartListener = (element, listener) => {
16400
16443
  element.removeEventListener("MSAnimationStart", listener, false);
16401
16444
  element.removeEventListener("webkitAnimationStart", listener, false);
16402
16445
  };
16403
- const logger$d = createLogger("Fetch");
16446
+ const logger$e = createLogger("Fetch");
16404
16447
  const getRequestObject = (options, data) => {
16405
16448
  const {
16406
16449
  headers = [],
@@ -16447,10 +16490,10 @@ const logFetchError = (message, level) => {
16447
16490
  case "info":
16448
16491
  case "warn":
16449
16492
  case "error":
16450
- logger$d[level](message);
16493
+ logger$e[level](message);
16451
16494
  break;
16452
16495
  default:
16453
- logger$d.error(message);
16496
+ logger$e.error(message);
16454
16497
  }
16455
16498
  };
16456
16499
  const handleFetchResponse = async (response, responseType) => {
@@ -16539,7 +16582,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
16539
16582
  const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
16540
16583
  const MOUNT_TIMEOUT = 10 * 1e3;
16541
16584
  const TINK_VENDOR = "Tink";
16542
- const logger$c = createLogger("iframeWidget");
16585
+ const logger$d = createLogger("iframeWidget");
16543
16586
  const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
16544
16587
  const isTerminalMessageData = (data) => Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
16545
16588
  const parseMessageJson = (message) => {
@@ -16558,7 +16601,7 @@ const callbackErrorHandler = async (response) => {
16558
16601
  try {
16559
16602
  await response;
16560
16603
  } catch (ex) {
16561
- logger$c.error(ex);
16604
+ logger$d.error(ex);
16562
16605
  }
16563
16606
  return {
16564
16607
  error: "UNKNOWN_ERROR",
@@ -16664,7 +16707,7 @@ class IFrameWidget {
16664
16707
  message = responseData.errorMessage;
16665
16708
  }
16666
16709
  } catch (ex) {
16667
- logger$c.error(ex);
16710
+ logger$d.error(ex);
16668
16711
  }
16669
16712
  throw new AdyenKycSdkError(reason, jsonData.error);
16670
16713
  }
@@ -16850,7 +16893,7 @@ function BankVerificationWidget({
16850
16893
  ref: widgetContainerRef
16851
16894
  });
16852
16895
  }
16853
- const logger$b = createLogger("BankVerification");
16896
+ const logger$c = createLogger("BankVerification");
16854
16897
  const accountVerificationFields = ["verifiedAccountHolder", "verifiedBankCountry", "verifiedBankName", "verifiedCurrencyCode", "verifiedBankAccountNumber"];
16855
16898
  const InstantVerificationErrorContext = createContext(null);
16856
16899
  const useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
@@ -16884,7 +16927,7 @@ const usePreferredVendorForCountry = (country2, getBankVerificationVendors) => {
16884
16927
  const preferredVendor2 = vendors[0];
16885
16928
  setPreferredVendor(preferredVendor2.name ? preferredVendor2 : null);
16886
16929
  };
16887
- getPreferredVendor().catch(logger$b.error);
16930
+ getPreferredVendor().catch(logger$c.error);
16888
16931
  }, [country2, getBankVerificationVendors]);
16889
16932
  return preferredVendor;
16890
16933
  };
@@ -19311,7 +19354,7 @@ const entityProblemInitialState = {
19311
19354
  // default status - if the entity is not listed in the problems array
19312
19355
  validationErrors: {}
19313
19356
  };
19314
- const UNRELATED_DATA_MISSING_ERROR_CODES = ["2_8036"];
19357
+ const UNRELATED_DATA_MISSING_ERROR_CODES = ["2_8036", "2_8064", "2_8067", "2_8189"];
19315
19358
  const UNRELATED_INVALID_INPUT_ERROR_CODES = ["1_14", "2_901", "2_902"];
19316
19359
  function getCapabilityProblems(response) {
19317
19360
  const capabilities = (response == null ? void 0 : response.capabilities) || {};
@@ -19352,9 +19395,7 @@ function setVerificationError(error, entityProblems) {
19352
19395
  break;
19353
19396
  }
19354
19397
  case VerificationErrorType.DATA_MISSING: {
19355
- if (!isUnRelatedErrorCode(error)) {
19356
- setMissingDataError(error, entityProblems);
19357
- }
19398
+ setMissingDataError(error, entityProblems);
19358
19399
  break;
19359
19400
  }
19360
19401
  case VerificationErrorType.DATA_REVIEW:
@@ -19368,7 +19409,9 @@ function setVerificationError(error, entityProblems) {
19368
19409
  const isUnRelatedErrorCode = (error) => UNRELATED_DATA_MISSING_ERROR_CODES.includes(error == null ? void 0 : error.code) || UNRELATED_INVALID_INPUT_ERROR_CODES.includes(error == null ? void 0 : error.code);
19369
19410
  function setMissingDataError(verificationError, entityProblems) {
19370
19411
  entityProblems.missingData = entityProblems.missingData ? [...entityProblems.missingData, verificationError] : [verificationError];
19371
- setPriorityStatus(entityProblems, TaskStatus.DETAILS_REQUIRED);
19412
+ if (!isUnRelatedErrorCode(verificationError)) {
19413
+ setPriorityStatus(entityProblems, TaskStatus.DETAILS_REQUIRED);
19414
+ }
19372
19415
  }
19373
19416
  const setReviewRequiredError = (verificationError, entityProblems) => {
19374
19417
  entityProblems.isReviewRequired = true;
@@ -20107,7 +20150,7 @@ const defaultPayoutAccountFormat = {
20107
20150
  [CountryCodes.Sweden]: "local",
20108
20151
  [CountryCodes.UnitedKingdom]: "local"
20109
20152
  };
20110
- const logger$a = createLogger("useScenarioConfiguration");
20153
+ const logger$b = createLogger("useScenarioConfiguration");
20111
20154
  const useScenarioConfiguration = ({
20112
20155
  getConfigurationData,
20113
20156
  getPayoutAccountFormatData,
@@ -20129,12 +20172,12 @@ const useScenarioConfiguration = ({
20129
20172
  const response = await getConfigurationData();
20130
20173
  setConfigurationResponse(response);
20131
20174
  } catch (err) {
20132
- logger$a.warn("WARNING: Configuration request failed - error:", err);
20175
+ logger$b.warn("WARNING: Configuration request failed - error:", err);
20133
20176
  } finally {
20134
20177
  setLoadingStatus("success");
20135
20178
  }
20136
20179
  };
20137
- makeConfigCallAndSave().catch(logger$a.error);
20180
+ makeConfigCallAndSave().catch(logger$b.error);
20138
20181
  }, [getConfigurationData, setLoadingStatus]);
20139
20182
  useEffect(() => {
20140
20183
  setLoadingStatus("loading");
@@ -20150,12 +20193,12 @@ const useScenarioConfiguration = ({
20150
20193
  const defaultAccountFormat = defaultPayoutAccountFormat[country2] ?? allowedBankAccountFormats[0];
20151
20194
  setAccountFormat(defaultAccountFormat);
20152
20195
  } catch (err) {
20153
- logger$a.warn("WARNING: Payout format request failed - error:", err);
20196
+ logger$b.warn("WARNING: Payout format request failed - error:", err);
20154
20197
  } finally {
20155
20198
  setLoadingStatus("success");
20156
20199
  }
20157
20200
  };
20158
- makePayoutFormatCallAndSave().catch(logger$a.error);
20201
+ makePayoutFormatCallAndSave().catch(logger$b.error);
20159
20202
  }, [country2, setAccountFormat, getPayoutAccountFormatData, setLoadingStatus]);
20160
20203
  const {
20161
20204
  fieldConfigurations,
@@ -20811,7 +20854,7 @@ var ToastType = /* @__PURE__ */ ((ToastType2) => {
20811
20854
  return ToastType2;
20812
20855
  })(ToastType || {});
20813
20856
  const FormComposer = "";
20814
- const logger$9 = createLogger("FormRouterContextProvider");
20857
+ const logger$a = createLogger("FormRouterContextProvider");
20815
20858
  function FormRouterContextProvider({
20816
20859
  children,
20817
20860
  forms,
@@ -20831,7 +20874,7 @@ function FormRouterContextProvider({
20831
20874
  if (formIndex > -1) {
20832
20875
  setFormIndex(formIndex);
20833
20876
  } else {
20834
- logger$9.error("No form was found to have that field so form navigation failed.");
20877
+ logger$a.error("No form was found to have that field so form navigation failed.");
20835
20878
  }
20836
20879
  }
20837
20880
  }), [forms, handleGetIdVerificationToken, setFormIndex]);
@@ -21431,8 +21474,8 @@ function CompanyDropinComponent({
21431
21474
  })
21432
21475
  });
21433
21476
  }
21434
- const logger$8 = createLogger("useLocalStorage");
21435
- function useLocalStorage(key, defaultValue, options) {
21477
+ const logger$9 = createLogger("useLocalStorage");
21478
+ const useLocalStorage = (key, defaultValue, options) => {
21436
21479
  const {
21437
21480
  serializer,
21438
21481
  parser,
@@ -21452,7 +21495,7 @@ function useLocalStorage(key, defaultValue, options) {
21452
21495
  const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
21453
21496
  return res;
21454
21497
  } catch (err) {
21455
- logger$8.error(err);
21498
+ logger$9.error(err);
21456
21499
  return defaultValue;
21457
21500
  }
21458
21501
  });
@@ -21484,7 +21527,7 @@ function useLocalStorage(key, defaultValue, options) {
21484
21527
  try {
21485
21528
  updateLocalStorage();
21486
21529
  } catch (err) {
21487
- logger$8.error(err);
21530
+ logger$9.error(err);
21488
21531
  }
21489
21532
  }, [value]);
21490
21533
  useEffect(() => {
@@ -21499,7 +21542,7 @@ function useLocalStorage(key, defaultValue, options) {
21499
21542
  setValue(event.newValue ? parser(event.newValue) : void 0);
21500
21543
  }
21501
21544
  } catch (err) {
21502
- logger$8.error(err);
21545
+ logger$9.error(err);
21503
21546
  }
21504
21547
  };
21505
21548
  if (typeof window === "undefined")
@@ -21508,32 +21551,74 @@ function useLocalStorage(key, defaultValue, options) {
21508
21551
  return () => window.removeEventListener("storage", handleStorageChange);
21509
21552
  }, [key, syncData]);
21510
21553
  return [value, setValue];
21511
- }
21512
- const isIntroForLE = (legalEntity) => Boolean(legalEntity.type) && (legalEntity.type === LegalEntityType.INDIVIDUAL || legalEntity.type === LegalEntityType.ORGANIZATION) && !(hasOwnEntityAssociationOfType(LegalEntityType.SOLE_PROPRIETORSHIP, legalEntity.entityAssociations, legalEntity.id) || hasOwnEntityAssociationOfType(LegalEntityType.TRUST, legalEntity.entityAssociations, legalEntity.id));
21513
- const useCanSeeIntro = (legalEntity) => {
21514
- const {
21515
- isSettingEnabled
21516
- } = useSettingsContext();
21517
- return {
21518
- canSeeIntro: isSettingEnabled("viewOnboardingGuidance") && isIntroForLE(legalEntity)
21519
- };
21520
21554
  };
21521
- const getHasSeenIntroStorageKey = (legalEntityId) => `COMPLETED_INTRO-${legalEntityId}`;
21522
- const useHasSeenIntro = (legalEntityId) => {
21523
- const [hasSeenIntro, setHasSeenIntro] = useLocalStorage(getHasSeenIntroStorageKey(legalEntityId), false);
21555
+ const getHasSeenIntroductionStorageKey = (legalEntityId) => `COMPLETED_INTRO-${legalEntityId}`;
21556
+ const useHasSeenIntroduction = ({
21557
+ legalEntityId
21558
+ }) => {
21559
+ const [hasSeenIntroduction, setHasSeenIntroduction] = useLocalStorage(getHasSeenIntroductionStorageKey(legalEntityId), false);
21524
21560
  return {
21525
- hasSeenIntro,
21526
- setHasSeenIntro
21561
+ hasSeenIntroduction,
21562
+ setHasSeenIntroduction
21527
21563
  };
21528
21564
  };
21529
- const useShouldShowIntro = (legalEntity) => {
21565
+ const useLegalEntityType = ({
21566
+ legalEntity
21567
+ }) => {
21530
21568
  const {
21531
- canSeeIntro
21532
- } = useCanSeeIntro(legalEntity);
21569
+ isExperimentEnabled
21570
+ } = useExperimentsContext();
21571
+ const isTrust = isPartOfTrustFromLegalEntity(legalEntity);
21572
+ const isSoleProprietor = hasSolePropInLegalEntity(legalEntity);
21573
+ const hasLegalAssociation = isTrust || isSoleProprietor;
21574
+ switch (legalEntity.type) {
21575
+ case LegalEntityType.INDIVIDUAL:
21576
+ case LegalEntityType.ORGANIZATION:
21577
+ if (!hasLegalAssociation)
21578
+ return legalEntity.type;
21579
+ if (isSoleProprietor)
21580
+ return LegalEntityType.SOLE_PROPRIETORSHIP;
21581
+ if (isTrust)
21582
+ return isExperimentEnabled(ExperimentNames.EnableTrustFlow) ? LegalEntityType.TRUST : legalEntity.type;
21583
+ break;
21584
+ default:
21585
+ return void 0;
21586
+ }
21587
+ };
21588
+ const useCanSeeIntroduction = ({
21589
+ legalEntity
21590
+ }) => {
21591
+ const legalEntityType = useLegalEntityType({
21592
+ legalEntity
21593
+ });
21533
21594
  const {
21534
- hasSeenIntro
21535
- } = useHasSeenIntro(legalEntity.id);
21536
- return canSeeIntro && !hasSeenIntro;
21595
+ isSettingEnabled
21596
+ } = useSettingsContext();
21597
+ switch (legalEntityType) {
21598
+ case LegalEntityType.INDIVIDUAL:
21599
+ return !isSettingEnabled(SettingNames.HideOnboardingIntroductionIndividual);
21600
+ case LegalEntityType.ORGANIZATION:
21601
+ return !isSettingEnabled(SettingNames.HideOnboardingIntroductionOrganization);
21602
+ case LegalEntityType.SOLE_PROPRIETORSHIP:
21603
+ return !isSettingEnabled(SettingNames.HideOnboardingIntroductionSoleProprietor);
21604
+ case LegalEntityType.TRUST:
21605
+ return !isSettingEnabled(SettingNames.HideOnboardingIntroductionTrust);
21606
+ default:
21607
+ return false;
21608
+ }
21609
+ };
21610
+ const useShouldShowIntroduction = ({
21611
+ legalEntity
21612
+ }) => {
21613
+ const canSeeIntroduction = useCanSeeIntroduction({
21614
+ legalEntity
21615
+ });
21616
+ const {
21617
+ hasSeenIntroduction
21618
+ } = useHasSeenIntroduction({
21619
+ legalEntityId: legalEntity.id
21620
+ });
21621
+ return canSeeIntroduction && !hasSeenIntroduction;
21537
21622
  };
21538
21623
  const useShouldShowBusinessTypeSelection = (accountHolder2) => {
21539
21624
  const {
@@ -21541,7 +21626,7 @@ const useShouldShowBusinessTypeSelection = (accountHolder2) => {
21541
21626
  } = useExperimentsContext();
21542
21627
  return isExperimentEnabled("EnableNewEntryFlow") && !accountHolder2;
21543
21628
  };
21544
- const logger$7 = createLogger("useExemptSettlor");
21629
+ const logger$8 = createLogger("useExemptSettlor");
21545
21630
  const useExemptSettlor = ({
21546
21631
  trust: trust2,
21547
21632
  handleGetLegalEntity
@@ -21553,7 +21638,7 @@ const useExemptSettlor = ({
21553
21638
  setExemptSettlor(exemptSettlorLE);
21554
21639
  }, [handleGetLegalEntity]);
21555
21640
  useEffect(() => {
21556
- updateExemptSettlor(trust2).catch(logger$7.error);
21641
+ updateExemptSettlor(trust2).catch(logger$8.error);
21557
21642
  }, [trust2, updateExemptSettlor]);
21558
21643
  return exemptSettlor;
21559
21644
  };
@@ -22070,14 +22155,19 @@ const legalArrangementItems = [{
22070
22155
  name: "trust",
22071
22156
  description: "youAreTrusteeManagingTheTrustForBeneficiaries"
22072
22157
  }, {
22073
- id: "aPartnership",
22074
- accountHolder: "aPartnership",
22075
- name: "partnership",
22076
- description: "jointlyOwnedBusinessWhereTwoOrMorePeopleOperateAndShareProfits"
22158
+ id: "incorporatedPartnership",
22159
+ accountHolder: "incorporatedPartnership",
22160
+ name: "incorporatedPartnership",
22161
+ description: "incorporatedPartnershipNewEntryFlowDescription"
22162
+ }, {
22163
+ id: "unincorporatedPartnership",
22164
+ accountHolder: "unincorporatedPartnership",
22165
+ name: "unincorporatedPartnership",
22166
+ description: "unincorporatedPartnershipNewEntryFlowDescription"
22077
22167
  }, {
22078
22168
  id: "anAssociation",
22079
22169
  accountHolder: "anAssociation",
22080
- name: "association",
22170
+ name: "associationIncorporatedTitle",
22081
22171
  description: "groupOfPeopleActingTogetherForNonCommercialPurpose"
22082
22172
  }];
22083
22173
  const trusteeTypeItems = [{
@@ -22098,9 +22188,6 @@ const getFormSchema = (isLegalArrangement, isTrust) => {
22098
22188
  return schema;
22099
22189
  };
22100
22190
  const getBusinessTypes = (includeTrust, includeSoleProp) => businessTypes.filter((businessType) => {
22101
- if (businessType.id === "legalArrangement") {
22102
- return includeTrust;
22103
- }
22104
22191
  if (businessType.id === "soleProprietorship") {
22105
22192
  return includeSoleProp;
22106
22193
  }
@@ -22150,6 +22237,9 @@ const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, c
22150
22237
  if (isOrganization && businessType === "legalArrangement" && legalArrangement === "aTrust" && trusteeType === "individual" || businessType === "individual" || businessType === "soleProprietorship") {
22151
22238
  return LegalEntityType.INDIVIDUAL;
22152
22239
  }
22240
+ if (legalArrangement === "incorporatedPartnership") {
22241
+ return LegalEntityType.ORGANIZATION;
22242
+ }
22153
22243
  return currentLegalEntityType;
22154
22244
  };
22155
22245
  const BusinessTypeSelection = ({
@@ -22181,7 +22271,7 @@ const BusinessTypeSelection = ({
22181
22271
  const businessTypeItems = getBusinessTypes(showTrustOption, showSolePropOption);
22182
22272
  const getDefaultBusinessType = () => {
22183
22273
  if (accountHolder2) {
22184
- if (["aTrust", "aPartnership", "anAssociation"].includes(accountHolder2)) {
22274
+ if (["aTrust", "incorporatedPartnership", "unincorporatedPartnership", "anAssociation"].includes(accountHolder2)) {
22185
22275
  return businessTypeItems.find((businessTypeItem) => businessTypeItem.id === "legalArrangement");
22186
22276
  }
22187
22277
  return businessTypeItems.find((businessTypeItem) => businessTypeItem.accountHolder === accountHolder2);
@@ -22218,7 +22308,7 @@ const BusinessTypeSelection = ({
22218
22308
  setFormSchema(getFormSchema(((_a2 = data.businessType) == null ? void 0 : _a2.id) === "legalArrangement" && !!data.legalArrangement || currentStep === 1, ((_b2 = data.legalArrangement) == null ? void 0 : _b2.id) === "aTrust"));
22219
22309
  }, [data.businessType, data.legalArrangement, currentStep]);
22220
22310
  const handleNextClick = async () => {
22221
- var _a2, _b2, _c2;
22311
+ var _a2, _b2;
22222
22312
  if (loadingStatus === "loading")
22223
22313
  return;
22224
22314
  triggerValidation();
@@ -22231,7 +22321,8 @@ const BusinessTypeSelection = ({
22231
22321
  );
22232
22322
  return;
22233
22323
  }
22234
- if (((_b2 = data.legalArrangement) == null ? void 0 : _b2.id) === "aPartnership" || ((_c2 = data.legalArrangement) == null ? void 0 : _c2.id) === "anAssociation") {
22324
+ const legalArrangementId = (_b2 = data.legalArrangement) == null ? void 0 : _b2.id;
22325
+ if (legalArrangementId === "anAssociation" || legalArrangementId === "unincorporatedPartnership") {
22235
22326
  setCurrentStep(
22236
22327
  2
22237
22328
  /* WE_CANNOT_SET_UP_ACCOUNT */
@@ -22254,13 +22345,33 @@ const BusinessTypeSelection = ({
22254
22345
  }
22255
22346
  };
22256
22347
  const updateLegalEntityAndSelectAccountHolder = async () => {
22348
+ var _a2;
22349
+ const selectedLegalArrangement = (_a2 = data.legalArrangement) == null ? void 0 : _a2.id;
22257
22350
  try {
22258
22351
  if (legalEntityResponse.type !== targetLegalEntityType) {
22259
22352
  setLoadingStatus("loading");
22260
- await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity({
22261
- type: targetLegalEntityType,
22262
- entityAssociations: []
22263
- }, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
22353
+ const updateLegalEntityPayload = {
22354
+ type: targetLegalEntityType
22355
+ };
22356
+ await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity(updateLegalEntityPayload, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
22357
+ if (selectedLegalArrangement === "incorporatedPartnership") {
22358
+ await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity({
22359
+ type: LegalEntityType.ORGANIZATION
22360
+ }, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
22361
+ await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity({
22362
+ organization: {
22363
+ type: CompanyTypesValue.INCORPORATED_PARTNERSHIP
22364
+ }
22365
+ }, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
22366
+ }
22367
+ } else if (newAccountHolder !== accountHolder2) {
22368
+ if (newAccountHolder === "theCompanyIWorkFor") {
22369
+ await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity({
22370
+ organization: {
22371
+ type: ""
22372
+ }
22373
+ }, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
22374
+ }
22264
22375
  }
22265
22376
  } catch (e) {
22266
22377
  showToast({
@@ -22412,12 +22523,13 @@ function useDataMissingRemediations({
22412
22523
  const remediation = DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING[error.code];
22413
22524
  return remediation ? [...remediations, remediation] : remediations;
22414
22525
  }, []);
22415
- switch (remediationCodes == null ? void 0 : remediationCodes.length) {
22526
+ const uniqueRemediations = [...new Set(remediationCodes)];
22527
+ switch (uniqueRemediations == null ? void 0 : uniqueRemediations.length) {
22416
22528
  case void 0:
22417
22529
  case 0:
22418
22530
  return void 0;
22419
22531
  case 1:
22420
- return remediationCodes[0] ? i18n.get(`remediationMessage_${remediationCodes[0]}`) : i18n.get("missingMultipleDecisionMakers");
22532
+ return uniqueRemediations[0] ? i18n.get(`remediationMessage_${uniqueRemediations[0]}`) : i18n.get("missingMultipleDecisionMakers");
22421
22533
  default:
22422
22534
  return i18n.get("missingMultipleDecisionMakers");
22423
22535
  }
@@ -23151,6 +23263,189 @@ function Shimmer() {
23151
23263
  })]
23152
23264
  });
23153
23265
  }
23266
+ const _introduction_component = "";
23267
+ var IntroductionScreens = ((IntroductionScreens2) => {
23268
+ IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
23269
+ IntroductionScreens2[IntroductionScreens2["COMPANY"] = TaskTypes.COMPANY] = "COMPANY";
23270
+ IntroductionScreens2[IntroductionScreens2["INDIVIDUAL"] = TaskTypes.INDIVIDUAL] = "INDIVIDUAL";
23271
+ IntroductionScreens2[IntroductionScreens2["DECISION_MAKER"] = TaskTypes.DECISION_MAKER] = "DECISION_MAKER";
23272
+ IntroductionScreens2[IntroductionScreens2["SOLE_PROPRIETOR_COMPANY"] = TaskTypes.SOLE_PROPRIETOR_COMPANY] = "SOLE_PROPRIETOR_COMPANY";
23273
+ IntroductionScreens2[IntroductionScreens2["TRUST"] = TaskTypes.TRUST] = "TRUST";
23274
+ IntroductionScreens2[IntroductionScreens2["TRUST_MEMBER_OVERVIEW"] = TaskTypes.TRUST_MEMBER_OVERVIEW] = "TRUST_MEMBER_OVERVIEW";
23275
+ IntroductionScreens2["ACCOUNT"] = "ACCOUNT";
23276
+ IntroductionScreens2["EPILOGUE"] = "EPILOGUE";
23277
+ return IntroductionScreens2;
23278
+ })(IntroductionScreens || {});
23279
+ const introductionScreensByLegalEntityType = {
23280
+ [LegalEntityType.INDIVIDUAL]: [IntroductionScreens.PROLOGUE, IntroductionScreens.INDIVIDUAL, IntroductionScreens.ACCOUNT, IntroductionScreens.EPILOGUE],
23281
+ [LegalEntityType.ORGANIZATION]: [IntroductionScreens.PROLOGUE, IntroductionScreens.COMPANY, IntroductionScreens.DECISION_MAKER, IntroductionScreens.ACCOUNT, IntroductionScreens.EPILOGUE],
23282
+ [LegalEntityType.SOLE_PROPRIETORSHIP]: [IntroductionScreens.PROLOGUE, IntroductionScreens.INDIVIDUAL, IntroductionScreens.SOLE_PROPRIETOR_COMPANY, IntroductionScreens.ACCOUNT, IntroductionScreens.EPILOGUE],
23283
+ [LegalEntityType.TRUST]: [IntroductionScreens.PROLOGUE, IntroductionScreens.COMPANY, IntroductionScreens.INDIVIDUAL, IntroductionScreens.DECISION_MAKER, IntroductionScreens.TRUST, IntroductionScreens.TRUST_MEMBER_OVERVIEW, IntroductionScreens.ACCOUNT, IntroductionScreens.EPILOGUE]
23284
+ };
23285
+ const useIntroductionScreens = ({
23286
+ legalEntity,
23287
+ tasks
23288
+ }) => {
23289
+ const canSeeIntroduction = useCanSeeIntroduction({
23290
+ legalEntity
23291
+ });
23292
+ const legalEntityType = useLegalEntityType({
23293
+ legalEntity
23294
+ });
23295
+ const introductionScreens = useMemo$1(() => legalEntityType ? introductionScreensByLegalEntityType[legalEntityType].filter((screen, _i, a) => {
23296
+ const isAccountScreen = screen === IntroductionScreens.ACCOUNT;
23297
+ const hasAccountTask = tasks.includes(TaskTypes.PAYIN) || tasks.includes(TaskTypes.PAYOUT);
23298
+ const isSoleProprietorScreen = screen === IntroductionScreens.SOLE_PROPRIETOR_COMPANY;
23299
+ const isSoleProprietor = legalEntityType === LegalEntityType.SOLE_PROPRIETORSHIP;
23300
+ const isTrustScreen = screen === IntroductionScreens.TRUST || screen === IntroductionScreens.TRUST_MEMBER_OVERVIEW;
23301
+ const isTrust = legalEntityType === LegalEntityType.TRUST;
23302
+ if (isAccountScreen)
23303
+ return hasAccountTask;
23304
+ if (isSoleProprietorScreen)
23305
+ return isSoleProprietor;
23306
+ if (isTrustScreen)
23307
+ return isTrust;
23308
+ return tasks.some((task) => screen === task);
23309
+ }) : [], [legalEntityType, tasks]);
23310
+ return canSeeIntroduction && (introductionScreens == null ? void 0 : introductionScreens.length) > 0 ? [IntroductionScreens.PROLOGUE, ...introductionScreens, IntroductionScreens.EPILOGUE] : void 0;
23311
+ };
23312
+ const StepProgressIndicator$1 = "";
23313
+ const StepProgressIndicator = ({
23314
+ activeStepIndex,
23315
+ stepsCount
23316
+ }) => stepsCount > 0 ? jsx("div", {
23317
+ "aria-label": `Step ${activeStepIndex + 1} of ${stepsCount}`,
23318
+ className: "adyen-kyc-progress",
23319
+ role: "group",
23320
+ children: jsx("ol", {
23321
+ className: "adyen-kyc-progress__bar",
23322
+ children: range(stepsCount).map((stepNumber) => {
23323
+ const isActive = stepNumber === activeStepIndex;
23324
+ return jsx("li", {
23325
+ "aria-current": isActive ? "step" : void 0,
23326
+ className: cx("adyen-kyc-progress__step", {
23327
+ "adyen-kyc-progress__step--active": isActive
23328
+ }),
23329
+ children: jsx("span", {
23330
+ className: "adyen-kyc-progress__step-label",
23331
+ children: `Step ${stepNumber + 1}: ${stepNumber < activeStepIndex ? "completed" : "not completed"}`
23332
+ })
23333
+ }, stepNumber);
23334
+ })
23335
+ })
23336
+ }) : null;
23337
+ const toCapitalized = (s) => `${s[0].toUpperCase()}${s.slice(1).toLowerCase()}`;
23338
+ const toPascalCase = (s) => s.split(/[^A-Za-z]/).map((word) => toCapitalized(word)).join("");
23339
+ var IntroductionScreenTranslationKeyElements = /* @__PURE__ */ ((IntroductionScreenTranslationKeyElements2) => {
23340
+ IntroductionScreenTranslationKeyElements2["ListItem"] = "LI";
23341
+ IntroductionScreenTranslationKeyElements2["Paragraph"] = "P";
23342
+ return IntroductionScreenTranslationKeyElements2;
23343
+ })(IntroductionScreenTranslationKeyElements || {});
23344
+ const getIntroductionScreenTranslationKeys = (translations, factors) => {
23345
+ const elForKey = (factors.elementType || "").toUpperCase();
23346
+ const lForKey = toPascalCase(factors.legalEntityType || "");
23347
+ const iForKey = toPascalCase(factors.introductionScreen);
23348
+ const keyPrefix = `introductionScreen${iForKey}Description${elForKey}`;
23349
+ const keyPrefixWithL = `introductionScreen${iForKey}${lForKey}Description${elForKey}`;
23350
+ const keys = getTranslationKeysByPrefix(translations, keyPrefix);
23351
+ const keysWithL = getTranslationKeysByPrefix(translations, keyPrefixWithL);
23352
+ return (keysWithL.length ? keysWithL : keys).sort((a, b) => Number(a.charAt(a.length - 1)) - Number(b.charAt(b.length - 1)));
23353
+ };
23354
+ const IntroductionScreen = ({
23355
+ introductionScreen,
23356
+ legalEntity,
23357
+ number: number2
23358
+ }) => {
23359
+ const {
23360
+ i18n
23361
+ } = useI18nContext();
23362
+ const legalEntityType = useLegalEntityType({
23363
+ legalEntity
23364
+ });
23365
+ const paragraphKeys = useMemo(() => legalEntityType ? getIntroductionScreenTranslationKeys(i18n.translations, {
23366
+ introductionScreen,
23367
+ legalEntityType,
23368
+ elementType: IntroductionScreenTranslationKeyElements.Paragraph
23369
+ }) : void 0, [i18n, introductionScreen, legalEntityType]);
23370
+ const listItemKeys = useMemo(() => legalEntityType ? getIntroductionScreenTranslationKeys(i18n.translations, {
23371
+ introductionScreen,
23372
+ legalEntityType,
23373
+ elementType: IntroductionScreenTranslationKeyElements.ListItem
23374
+ }) : void 0, [i18n, introductionScreen, legalEntityType]);
23375
+ return jsxs(Fragment, {
23376
+ children: [jsx("div", {
23377
+ className: "adyen-kyc-introduction__number",
23378
+ children: number2
23379
+ }), jsx("div", {
23380
+ className: "adyen-kyc-introduction__title",
23381
+ children: i18n.get(`introductionScreen${toPascalCase(introductionScreen)}Title`)
23382
+ }), jsxs("div", {
23383
+ className: "adyen-kyc-introduction__description",
23384
+ children: [!!(paragraphKeys == null ? void 0 : paragraphKeys.length) && paragraphKeys.map((key) => jsx("p", {
23385
+ children: i18n.get(key)
23386
+ }, key)), !!(listItemKeys == null ? void 0 : listItemKeys.length) && jsx("ul", {
23387
+ children: listItemKeys.map((key) => jsx("li", {
23388
+ children: i18n.get(key)
23389
+ }, key))
23390
+ })]
23391
+ })]
23392
+ });
23393
+ };
23394
+ const Introduction = ({
23395
+ legalEntity,
23396
+ onExitIntroduction,
23397
+ tasks
23398
+ }) => {
23399
+ const {
23400
+ i18n
23401
+ } = useI18nContext();
23402
+ const introductionScreens = useIntroductionScreens({
23403
+ legalEntity,
23404
+ tasks
23405
+ });
23406
+ const [activeIndex, setActiveIndex] = useState(0);
23407
+ useEffect(() => {
23408
+ if (!(introductionScreens == null ? void 0 : introductionScreens.length))
23409
+ onExitIntroduction();
23410
+ }, [onExitIntroduction, introductionScreens]);
23411
+ return (introductionScreens == null ? void 0 : introductionScreens.length) ? jsxs("div", {
23412
+ className: "adyen-kyc-introduction",
23413
+ children: [jsx(StepProgressIndicator, {
23414
+ activeStepIndex: activeIndex,
23415
+ stepsCount: introductionScreens.length
23416
+ }), jsx("div", {
23417
+ className: "adyen-kyc-introduction__skip",
23418
+ children: jsx(Button, {
23419
+ label: i18n.get("goToOverviewFromIntroduction"),
23420
+ onClick: () => onExitIntroduction(),
23421
+ showAsLink: true,
23422
+ type: "button"
23423
+ })
23424
+ }), jsx(IntroductionScreen, {
23425
+ introductionScreen: introductionScreens[activeIndex],
23426
+ legalEntity,
23427
+ number: activeIndex > 0 && activeIndex < introductionScreens.length - 1 ? activeIndex : void 0
23428
+ // prologue and epilogue should not be numbered
23429
+ }, introductionScreens[activeIndex]), jsxs("div", {
23430
+ className: "adyen-kyc-introduction__nav",
23431
+ children: [jsx(Button, {
23432
+ disabled: activeIndex === 0,
23433
+ label: "Back",
23434
+ onClick: () => setActiveIndex((currentValue) => currentValue - 1),
23435
+ secondary: true,
23436
+ type: "button"
23437
+ }), activeIndex + 1 === introductionScreens.length ? jsx(Button, {
23438
+ label: "Start",
23439
+ onClick: () => onExitIntroduction(),
23440
+ type: "button"
23441
+ }) : jsx(Button, {
23442
+ label: "Next",
23443
+ onClick: () => setActiveIndex((currentValue) => currentValue + 1),
23444
+ type: "button"
23445
+ })]
23446
+ })]
23447
+ }) : null;
23448
+ };
23154
23449
  function LegalEntityTypeSwitcher({
23155
23450
  targetLegalEntityType,
23156
23451
  handleHomeClick,
@@ -23293,151 +23588,6 @@ function ReviewComponent({
23293
23588
  footer
23294
23589
  });
23295
23590
  }
23296
- const _taskIntros_component = "";
23297
- const StepProgressIndicator$1 = "";
23298
- const StepProgressIndicator = ({
23299
- activeStepIndex,
23300
- stepsCount
23301
- }) => stepsCount > 0 ? jsx("div", {
23302
- "aria-label": `Step ${activeStepIndex + 1} of ${stepsCount}`,
23303
- className: "adyen-kyc-progress",
23304
- role: "group",
23305
- children: jsx("ol", {
23306
- className: "adyen-kyc-progress__bar",
23307
- children: range(stepsCount).map((stepNumber) => {
23308
- const isActive = stepNumber === activeStepIndex;
23309
- return jsx("li", {
23310
- "aria-current": isActive ? "step" : void 0,
23311
- className: cx("adyen-kyc-progress__step", {
23312
- "adyen-kyc-progress__step--active": isActive
23313
- }),
23314
- children: jsx("span", {
23315
- className: "adyen-kyc-progress__step-label",
23316
- children: `Step ${stepNumber + 1}: ${stepNumber < activeStepIndex ? "completed" : "not completed"}`
23317
- })
23318
- }, stepNumber);
23319
- })
23320
- })
23321
- }) : null;
23322
- const toCapitalized = (s) => `${s[0].toUpperCase()}${s.slice(1).toLowerCase()}`;
23323
- const toPascalCase = (s) => s.split(/[^A-Za-z]/).map((word) => toCapitalized(word)).join("");
23324
- var IntroDescriptionTranslationKeyElements = /* @__PURE__ */ ((IntroDescriptionTranslationKeyElements2) => {
23325
- IntroDescriptionTranslationKeyElements2["ListItem"] = "LI";
23326
- IntroDescriptionTranslationKeyElements2["Paragraph"] = "P";
23327
- return IntroDescriptionTranslationKeyElements2;
23328
- })(IntroDescriptionTranslationKeyElements || {});
23329
- const getIntroDescriptionTranslationKeys = (translations, factors) => {
23330
- const elForKey = (factors.elementType || "").toUpperCase();
23331
- const lForKey = toPascalCase(factors.legalEntityType || "");
23332
- const iForKey = toPascalCase(factors.introType);
23333
- const keyPrefix = `taskIntro${iForKey}Description${elForKey}`;
23334
- const keyPrefixWithL = `taskIntro${iForKey}${lForKey}Description${elForKey}`;
23335
- const keys = getTranslationKeysByPrefix(translations, keyPrefix);
23336
- const keysWithL = getTranslationKeysByPrefix(translations, keyPrefixWithL);
23337
- return (keysWithL.length ? keysWithL : keys).sort((a, b) => Number(a.charAt(a.length - 1)) - Number(b.charAt(b.length - 1)));
23338
- };
23339
- const TaskIntro = ({
23340
- intro,
23341
- legalEntityType,
23342
- number: number2
23343
- }) => {
23344
- const {
23345
- i18n
23346
- } = useI18nContext();
23347
- const paragraphKeys = useMemo(() => getIntroDescriptionTranslationKeys(i18n.translations, {
23348
- introType: intro,
23349
- legalEntityType,
23350
- elementType: IntroDescriptionTranslationKeyElements.Paragraph
23351
- }), [i18n, intro, legalEntityType]);
23352
- const listItemKeys = useMemo(() => getIntroDescriptionTranslationKeys(i18n.translations, {
23353
- introType: intro,
23354
- legalEntityType,
23355
- elementType: IntroDescriptionTranslationKeyElements.ListItem
23356
- }), [i18n, intro, legalEntityType]);
23357
- return jsxs(Fragment, {
23358
- children: [jsx("div", {
23359
- className: "adyen-kyc-task-intros__number",
23360
- children: number2
23361
- }), jsx("div", {
23362
- className: "adyen-kyc-task-intros__title",
23363
- children: i18n.get(`taskIntro${toPascalCase(intro)}Title`)
23364
- }), jsxs("div", {
23365
- className: "adyen-kyc-task-intros__description",
23366
- children: [paragraphKeys.map((key) => jsx("p", {
23367
- children: i18n.get(key)
23368
- }, key)), !!listItemKeys.length && jsx("ul", {
23369
- children: listItemKeys.map((key) => jsx("li", {
23370
- children: i18n.get(key)
23371
- }, key))
23372
- })]
23373
- })]
23374
- });
23375
- };
23376
- const taskIntrosInOrder = [
23377
- TaskTypes.COMPANY,
23378
- TaskTypes.DECISION_MAKER,
23379
- TaskTypes.INDIVIDUAL,
23380
- // TaskTypes.PAYIN,
23381
- TaskTypes.PAYOUT
23382
- ];
23383
- var ExtraIntroTypes = /* @__PURE__ */ ((ExtraIntroTypes2) => {
23384
- ExtraIntroTypes2["PROLOGUE"] = "prologue";
23385
- ExtraIntroTypes2["EPILOGUE"] = "epilogue";
23386
- return ExtraIntroTypes2;
23387
- })(ExtraIntroTypes || {});
23388
- const TaskIntros = ({
23389
- legalEntityType,
23390
- onExitIntro,
23391
- tasks
23392
- }) => {
23393
- const {
23394
- i18n
23395
- } = useI18nContext();
23396
- const [activeIndex, setActiveIndex] = useState(0);
23397
- const taskIntros = useMemo(() => taskIntrosInOrder.filter((taskIntro) => tasks.some((t) => t === taskIntro)), [tasks]);
23398
- const allIntros = useMemo(() => (taskIntros == null ? void 0 : taskIntros.length) ? [ExtraIntroTypes.PROLOGUE, ...taskIntros, ExtraIntroTypes.EPILOGUE] : void 0, [taskIntros]);
23399
- useEffect(() => {
23400
- if (!taskIntros.length)
23401
- onExitIntro();
23402
- }, [onExitIntro, taskIntros]);
23403
- return (allIntros == null ? void 0 : allIntros.length) ? jsxs("div", {
23404
- className: "adyen-kyc-task-intros",
23405
- children: [jsx(StepProgressIndicator, {
23406
- activeStepIndex: activeIndex,
23407
- stepsCount: allIntros.length
23408
- }), jsx("div", {
23409
- className: "adyen-kyc-task-intros__skip",
23410
- children: jsx(Button, {
23411
- label: i18n.get("goToOverviewFromIntro"),
23412
- onClick: () => onExitIntro(),
23413
- showAsLink: true,
23414
- type: "button"
23415
- })
23416
- }), jsx(TaskIntro, {
23417
- intro: allIntros[activeIndex],
23418
- legalEntityType,
23419
- number: activeIndex > 0 && activeIndex < allIntros.length - 1 ? activeIndex : void 0
23420
- // prologue and epilogue should not be numbered
23421
- }, allIntros[activeIndex]), jsxs("div", {
23422
- className: "adyen-kyc-task-intros__nav",
23423
- children: [jsx(Button, {
23424
- disabled: activeIndex === 0,
23425
- label: "Back",
23426
- onClick: () => setActiveIndex((currentValue) => currentValue - 1),
23427
- secondary: true,
23428
- type: "button"
23429
- }), activeIndex + 1 === allIntros.length ? jsx(Button, {
23430
- label: "Start",
23431
- onClick: () => onExitIntro(),
23432
- type: "button"
23433
- }) : jsx(Button, {
23434
- label: "Next",
23435
- onClick: () => setActiveIndex((currentValue) => currentValue + 1),
23436
- type: "button"
23437
- })]
23438
- })]
23439
- }) : null;
23440
- };
23441
23591
  const TaskList = "";
23442
23592
  const businessTypeMapping = {
23443
23593
  myName: {
@@ -23466,7 +23616,7 @@ const useBusinessSetup = (legalEntityResponse) => {
23466
23616
  const accountHolderType = accountHolder2 || getDefaultAccountHolderType(legalEntityResponse);
23467
23617
  const businessSetup = (_a = businessTypeMapping[accountHolderType]) == null ? void 0 : _a[legalEntityResponse == null ? void 0 : legalEntityResponse.type];
23468
23618
  return {
23469
- businessSetup
23619
+ businessSetup: businessSetup || accountHolder2
23470
23620
  };
23471
23621
  };
23472
23622
  const useEnableNewEntryFlow = () => {
@@ -23652,9 +23802,9 @@ function TaskListComponent({
23652
23802
  const {
23653
23803
  isExperimentEnabled
23654
23804
  } = useExperimentsContext();
23655
- const {
23656
- canSeeIntro
23657
- } = useCanSeeIntro(legalEntityResponse);
23805
+ const canSeeIntroduction = useCanSeeIntroduction({
23806
+ legalEntity: legalEntityResponse
23807
+ });
23658
23808
  const {
23659
23809
  remediationMessages
23660
23810
  } = useDataMissingRemediations({
@@ -23696,11 +23846,11 @@ function TaskListComponent({
23696
23846
  const companyTaskDescriptionKey = isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
23697
23847
  const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
23698
23848
  return jsxs("div", {
23699
- children: [canSeeIntro && jsx("div", {
23849
+ children: [canSeeIntroduction && jsx("div", {
23700
23850
  className: "adyen-task-list__nav",
23701
23851
  children: jsx(Button, {
23702
- label: i18n.get("goToIntro"),
23703
- onClick: () => onNavigateToTask(TaskTypes.INTRO),
23852
+ label: i18n.get("goToIntroduction"),
23853
+ onClick: () => onNavigateToTask(TaskTypes.INTRODUCTION),
23704
23854
  showAsLink: true,
23705
23855
  type: "button"
23706
23856
  })
@@ -24197,7 +24347,9 @@ function IndividualDropinComponent({
24197
24347
  handleUpdateLegalEntity,
24198
24348
  trustMember,
24199
24349
  onSubmit: externalOnSubmit,
24200
- onTypeSwitch
24350
+ onTypeSwitch,
24351
+ hideNavigation = false,
24352
+ handleBackClick: externalBackClick
24201
24353
  }) {
24202
24354
  var _a, _b, _c, _d;
24203
24355
  const {
@@ -24214,6 +24366,9 @@ function IndividualDropinComponent({
24214
24366
  const {
24215
24367
  getConfiguration: getConfiguration2
24216
24368
  } = useConfigurationApi();
24369
+ const {
24370
+ isEmbeddedDropin
24371
+ } = useAuthContext();
24217
24372
  let dataFromResponse = mapLegalEntityToIndividual(legalEntityResponse, isTargetLegalEntityType);
24218
24373
  const documentUtils = documentApiUtils(handleCreateDocument, handleGetDocument, handleUpdateDocument);
24219
24374
  let roleTypes = [];
@@ -24255,7 +24410,8 @@ function IndividualDropinComponent({
24255
24410
  const fieldsFromCustomRules = useMemo(() => rules$3({
24256
24411
  data,
24257
24412
  country: country2,
24258
- taskType
24413
+ taskType,
24414
+ isEmbeddedDropin
24259
24415
  }), [country2, data, taskType]);
24260
24416
  const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, individualForms, (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]);
24261
24417
  const {
@@ -24573,6 +24729,7 @@ function IndividualDropinComponent({
24573
24729
  } = useFormComposer({
24574
24730
  problems,
24575
24731
  baseTrackingPayload,
24732
+ externalBackClick,
24576
24733
  forms,
24577
24734
  formRef,
24578
24735
  onSubmit
@@ -24599,6 +24756,7 @@ function IndividualDropinComponent({
24599
24756
  validateForm: () => setShouldValidate(true),
24600
24757
  canSubmit: canSubmit2() && hasDataChanged(dataFromResponse, data),
24601
24758
  problems,
24759
+ hideNavigation,
24602
24760
  children: jsx(IndividualComponent, {
24603
24761
  ...derivedProps,
24604
24762
  capabilities: Object.keys((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}),
@@ -26285,7 +26443,7 @@ const serviceAgreementValidationRules = {
26285
26443
  errorMessage: "fieldIsRequired"
26286
26444
  }
26287
26445
  };
26288
- const logger$6 = createLogger("useServiceAgreement");
26446
+ const logger$7 = createLogger("useServiceAgreement");
26289
26447
  const FALLBACK_LANGUAGE_CODE = "en";
26290
26448
  const useServiceAgreement = ({
26291
26449
  handleGetServiceAgreement,
@@ -26314,7 +26472,7 @@ const useServiceAgreement = ({
26314
26472
  language: agreementLanguage
26315
26473
  });
26316
26474
  if (!document2) {
26317
- logger$6.log('"document" field was missing in response');
26475
+ logger$7.log('"document" field was missing in response');
26318
26476
  return;
26319
26477
  }
26320
26478
  const contract = JSON.parse(decodeURIComponent(escape(window.atob(document2))));
@@ -26332,7 +26490,7 @@ const useServiceAgreement = ({
26332
26490
  throw err;
26333
26491
  }
26334
26492
  };
26335
- requestServiceAgreement().catch(logger$6.error);
26493
+ requestServiceAgreement().catch(logger$7.error);
26336
26494
  }, [handleGetServiceAgreement, handleServiceAgreementIsNotAvailableInThatLanguage, agreementLanguage, legalEntityId, serviceAgreementType]);
26337
26495
  return {
26338
26496
  loading: loading2,
@@ -27674,7 +27832,7 @@ function TrustDropinComponent(props) {
27674
27832
  }
27675
27833
  const PAGES_WITH_STATUS = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
27676
27834
  const POLLING_INTERVAL = 3e3;
27677
- const logger$5 = createLogger("DropinComposerComponent");
27835
+ const logger$6 = createLogger("DropinComposerComponent");
27678
27836
  const isOrganizationSettlorWithExemptionReasonEnabled = (enabled, country2) => country2 === CountryCodes.Australia && enabled;
27679
27837
  function DropinComposerComponent({
27680
27838
  capabilities,
@@ -27708,18 +27866,22 @@ function DropinComposerComponent({
27708
27866
  const [isLoadingConfiguration, setIsLoadingConfiguration] = useState(false);
27709
27867
  const [pollingId, setPollingId] = useState(null);
27710
27868
  const showBusinessTypeSelection = useShouldShowBusinessTypeSelection(accountHolder2);
27711
- const showIntro = useShouldShowIntro(legalEntityResponse);
27869
+ const showIntroduction = useShouldShowIntroduction({
27870
+ legalEntity: legalEntityResponse
27871
+ });
27712
27872
  const {
27713
- setHasSeenIntro
27714
- } = useHasSeenIntro(legalEntityResponse.id);
27873
+ setHasSeenIntroduction
27874
+ } = useHasSeenIntroduction({
27875
+ legalEntityId: legalEntityResponse.id
27876
+ });
27715
27877
  const [tasks, setTasks] = useState([]);
27716
27878
  const initialTask = useMemo(() => {
27717
27879
  if (showBusinessTypeSelection)
27718
27880
  return TaskTypes.BUSINESS_TYPE_SELECTION;
27719
- if (showIntro)
27720
- return TaskTypes.INTRO;
27881
+ if (showIntroduction)
27882
+ return TaskTypes.INTRODUCTION;
27721
27883
  return TaskTypes.TASKS_OVERVIEW;
27722
- }, [showBusinessTypeSelection, showIntro]);
27884
+ }, [showBusinessTypeSelection, showIntroduction]);
27723
27885
  const [taskHistory, setTaskHistory] = useState([initialTask]);
27724
27886
  const [legalEntity, setLegalEntity] = useState(legalEntityResponse);
27725
27887
  const [associatedLegalEntity, setAssociatedLegalEntity] = useState(null);
@@ -27763,7 +27925,7 @@ function DropinComposerComponent({
27763
27925
  setPciStatus(response);
27764
27926
  return response;
27765
27927
  } catch (e) {
27766
- logger$5.warn(i18n.get("failedToGetPciStatus"));
27928
+ logger$6.warn(i18n.get("failedToGetPciStatus"));
27767
27929
  }
27768
27930
  }
27769
27931
  return void 0;
@@ -27792,7 +27954,7 @@ function DropinComposerComponent({
27792
27954
  useEffect(() => {
27793
27955
  if (!tasks.includes(TaskTypes.PCI_DSS))
27794
27956
  return;
27795
- getPciTemplate().catch(logger$5.error);
27957
+ getPciTemplate().catch(logger$6.error);
27796
27958
  }, [getPciTemplate, tasks]);
27797
27959
  const getServiceAgreementAcceptanceInfos = async () => {
27798
27960
  if (legalEntity.id && (args == null ? void 0 : args.handleGetServiceAgreementAcceptanceInfos)) {
@@ -27800,7 +27962,7 @@ function DropinComposerComponent({
27800
27962
  const response = await args.handleGetServiceAgreementAcceptanceInfos(legalEntity.id);
27801
27963
  setServiceAgreementAcceptanceInfos(response.data);
27802
27964
  } catch (e) {
27803
- logger$5.warn(i18n.get("failedToGetServiceAgreementStatus"));
27965
+ logger$6.warn(i18n.get("failedToGetServiceAgreementStatus"));
27804
27966
  }
27805
27967
  }
27806
27968
  };
@@ -27810,7 +27972,7 @@ function DropinComposerComponent({
27810
27972
  const response = await args.handleGetServiceAgreementStatus(legalEntity.id);
27811
27973
  setServiceAgreementTypes(response.termsOfServiceTypes);
27812
27974
  } catch (e) {
27813
- logger$5.warn(i18n.get("failedToGetServiceAgreementStatus"));
27975
+ logger$6.warn(i18n.get("failedToGetServiceAgreementStatus"));
27814
27976
  }
27815
27977
  }
27816
27978
  };
@@ -27849,7 +28011,7 @@ function DropinComposerComponent({
27849
28011
  setCapabilityProblems(getCapabilityProblems(response));
27850
28012
  return response;
27851
28013
  } catch (e) {
27852
- logger$5.warn(i18n.get("failedToFetchLegalEntityDetails"));
28014
+ logger$6.warn(i18n.get("failedToFetchLegalEntityDetails"));
27853
28015
  }
27854
28016
  }
27855
28017
  return void 0;
@@ -27861,7 +28023,7 @@ function DropinComposerComponent({
27861
28023
  setTrust(response);
27862
28024
  return response;
27863
28025
  } catch (e) {
27864
- logger$5.warn(i18n.get("failedToFetchTrustDetails"));
28026
+ logger$6.warn(i18n.get("failedToFetchTrustDetails"));
27865
28027
  }
27866
28028
  }
27867
28029
  return void 0;
@@ -27911,7 +28073,7 @@ function DropinComposerComponent({
27911
28073
  label: i18n.get("successFullyRemovedTrustMember")
27912
28074
  });
27913
28075
  } catch (err) {
27914
- logger$5.error(`Failed to delete trust member`, err);
28076
+ logger$6.error(`Failed to delete trust member`, err);
27915
28077
  showToast({
27916
28078
  type: ToastType.ERROR,
27917
28079
  label: i18n.get("failedToRemoveTrustMember")
@@ -27981,7 +28143,7 @@ function DropinComposerComponent({
27981
28143
  }
27982
28144
  break;
27983
28145
  default:
27984
- logger$5.warn(`Updating trust member type "${trustMember.trustMemberType}" is not implemented.`);
28146
+ logger$6.warn(`Updating trust member type "${trustMember.trustMemberType}" is not implemented.`);
27985
28147
  }
27986
28148
  showToast({
27987
28149
  label: i18n.get("successfullyUpdatedDetails"),
@@ -27989,7 +28151,7 @@ function DropinComposerComponent({
27989
28151
  });
27990
28152
  await refreshTrustAndRunOnSubmit(trust2, 1);
27991
28153
  } catch (err) {
27992
- logger$5.error(err);
28154
+ logger$6.error(err);
27993
28155
  showToast({
27994
28156
  label: i18n.get("failedToUpdateDetails"),
27995
28157
  type: ToastType.ERROR
@@ -28212,7 +28374,7 @@ function DropinComposerComponent({
28212
28374
  }
28213
28375
  };
28214
28376
  setIsLoadingConfiguration(true);
28215
- fetchConfiguration().catch(logger$5.error).finally(() => {
28377
+ fetchConfiguration().catch(logger$6.error).finally(() => {
28216
28378
  setIsLoadingConfiguration(false);
28217
28379
  onLoad();
28218
28380
  });
@@ -28262,14 +28424,14 @@ function DropinComposerComponent({
28262
28424
  onAccountHolderSelect: async (newAccountHolder) => {
28263
28425
  setAccountHolder(newAccountHolder);
28264
28426
  await refreshLegalEntity();
28265
- onNavigateTo(showIntro ? TaskTypes.INTRO : TaskTypes.TASKS_OVERVIEW);
28427
+ onNavigateTo(showIntroduction ? TaskTypes.INTRODUCTION : TaskTypes.TASKS_OVERVIEW);
28266
28428
  }
28267
28429
  });
28268
- case TaskTypes.INTRO:
28269
- return jsx(TaskIntros, {
28270
- legalEntityType: legalEntity.type,
28271
- onExitIntro: () => {
28272
- setHasSeenIntro(true);
28430
+ case TaskTypes.INTRODUCTION:
28431
+ return jsx(Introduction, {
28432
+ legalEntity,
28433
+ onExitIntroduction: () => {
28434
+ setHasSeenIntroduction(true);
28273
28435
  onNavigateTo(TaskTypes.TASKS_OVERVIEW);
28274
28436
  },
28275
28437
  tasks
@@ -28596,6 +28758,22 @@ const createDocument = async (context, document2, ownerId) => {
28596
28758
  }
28597
28759
  }, document2);
28598
28760
  };
28761
+ const createLegalEntity = async (context, legalEntity) => {
28762
+ const {
28763
+ loadingContext,
28764
+ legalEntityId
28765
+ } = context;
28766
+ return httpPost({
28767
+ loadingContext,
28768
+ errorLevel: "warn",
28769
+ errorMessage: `LegalEntity creation available`,
28770
+ path: `${legalEntityId}`,
28771
+ authentication: "jwt",
28772
+ headers: {
28773
+ "Content-Type": "application/json"
28774
+ }
28775
+ }, legalEntity);
28776
+ };
28599
28777
  const createTransferInstrument = async (context, transferInstrument) => {
28600
28778
  const {
28601
28779
  loadingContext,
@@ -28750,6 +28928,22 @@ const updateDocument = async (context, document2, documentId, ownerId) => {
28750
28928
  }
28751
28929
  }, document2);
28752
28930
  };
28931
+ const updateLegalEntity = async (context, legalEntity) => {
28932
+ const {
28933
+ loadingContext,
28934
+ legalEntityId
28935
+ } = context;
28936
+ return httpPost({
28937
+ loadingContext,
28938
+ errorLevel: "warn",
28939
+ errorMessage: `LegalEntity update failed`,
28940
+ path: `${legalEntityId}`,
28941
+ authentication: "jwt",
28942
+ headers: {
28943
+ "Content-Type": "application/json"
28944
+ }
28945
+ }, legalEntity);
28946
+ };
28753
28947
  const updateTransferInstrument = async (context, transferInstrument, transferInstrumentId) => {
28754
28948
  const {
28755
28949
  loadingContext,
@@ -28829,6 +29023,14 @@ const useComponentApi = (rootLegalEntityId) => {
28829
29023
  ...baseRequestContext,
28830
29024
  legalEntityId
28831
29025
  }),
29026
+ updateLegalEntity: async (legalEntity, legalEntityId) => updateLegalEntity({
29027
+ ...baseRequestContext,
29028
+ legalEntityId
29029
+ }, legalEntity),
29030
+ createLegalEntity: async (legalEntity) => createLegalEntity({
29031
+ ...baseRequestContext,
29032
+ legalEntityId: rootLegalEntityId
29033
+ }, legalEntity),
28832
29034
  getTransferInstrument: async (transferInstrumentId) => getTransferInstrument(baseRequestContext, transferInstrumentId),
28833
29035
  getBankVerificationVendor: async (country2) => getBankVerificationVendor(baseRequestContext, country2),
28834
29036
  getDocument: async (documentId) => getDocument(baseRequestContext, documentId),
@@ -28860,12 +29062,65 @@ class EventEmitter {
28860
29062
  };
28861
29063
  }
28862
29064
  }
28863
- const logger$4 = createLogger("TransferInstrumentComponent");
28864
- function TransferInstrumentComponent({
29065
+ const logger$5 = createLogger("CreateIndividualComponent");
29066
+ function CreateIndividualComponent({
29067
+ parentLegalEntityId,
29068
+ legalEntityId,
29069
+ taskType,
29070
+ onSubmitSuccess,
29071
+ handleBackClick,
29072
+ eventEmitter
29073
+ }) {
29074
+ if (!legalEntityId && !parentLegalEntityId) {
29075
+ throw new Error("Must provide at-least one of parentLegalEntityId or legalEntityId");
29076
+ }
29077
+ const {
29078
+ getLegalEntity: getLegalEntity2,
29079
+ createLegalEntity: createLegalEntity2,
29080
+ updateLegalEntity: updateLegalEntity2,
29081
+ getDocument: getDocument2,
29082
+ createDocument: createDocument2,
29083
+ updateDocument: updateDocument2
29084
+ } = useComponentApi(legalEntityId ?? parentLegalEntityId);
29085
+ const [legalEntity, setLegalEntity] = useState();
29086
+ const [parentLegalEntity, setParentLegalEntity] = useState();
29087
+ const [loadingStatus, setLoadingStatus] = useState("loading");
29088
+ const fetchLegalEntity = useCallback(async () => {
29089
+ try {
29090
+ const [parentEntity, entity] = await Promise.all([parentLegalEntityId ? getLegalEntity2(parentLegalEntityId) : Promise.resolve(void 0), legalEntityId ? getLegalEntity2(legalEntityId) : Promise.resolve(void 0)]);
29091
+ setParentLegalEntity(parentEntity);
29092
+ setLegalEntity(entity);
29093
+ } catch (error) {
29094
+ logger$5.error(error);
29095
+ } finally {
29096
+ setLoadingStatus("success");
29097
+ }
29098
+ }, [parentLegalEntityId, legalEntityId, getLegalEntity2]);
29099
+ useEffect(() => {
29100
+ fetchLegalEntity().catch(logger$5.error);
29101
+ }, [fetchLegalEntity]);
29102
+ return loadingStatus === "loading" ? jsx(Loader, {
29103
+ size: "medium"
29104
+ }) : jsx(IndividualDropinComponent, {
29105
+ eventEmitter: eventEmitter ?? new EventEmitter(),
29106
+ parentLegalEntity,
29107
+ legalEntityResponse: legalEntity,
29108
+ handleGetDocument: getDocument2,
29109
+ handleCreateDocument: createDocument2,
29110
+ handleUpdateDocument: updateDocument2,
29111
+ handleUpdateLegalEntity: updateLegalEntity2,
29112
+ handleCreateLegalEntity: createLegalEntity2,
29113
+ handleBackClick,
29114
+ hideNavigation: true,
29115
+ onSubmit: onSubmitSuccess,
29116
+ taskType
29117
+ });
29118
+ }
29119
+ const logger$4 = createLogger("CreateTransferInstrumentComponent");
29120
+ function CreateTransferInstrumentComponent({
28865
29121
  legalEntityId,
28866
29122
  transferInstrumentId,
28867
- onChange,
28868
- onSubmit,
29123
+ onSubmitSuccess,
28869
29124
  handleBackClick,
28870
29125
  eventEmitter
28871
29126
  }) {
@@ -28911,8 +29166,7 @@ function TransferInstrumentComponent({
28911
29166
  handleBackClick,
28912
29167
  hideNavigation: true,
28913
29168
  refreshLegalEntity: fetchLegalEntity,
28914
- onChange,
28915
- onSubmit,
29169
+ onSubmit: onSubmitSuccess,
28916
29170
  createTrustedTransferInstrument: createTrustedTransferInstrument2,
28917
29171
  handleBankVerificationError: handleBankVerificationError2,
28918
29172
  taskType: TaskTypes.PAYOUT
@@ -28926,7 +29180,8 @@ const componentsMap = {
28926
29180
  trustDropin: TrustDropinComponent,
28927
29181
  soleProprietorDropin: SolePropDropinComponent,
28928
29182
  pci: PciDropinComponent,
28929
- transferInstrumentComponent: TransferInstrumentComponent
29183
+ createTransferInstrumentComponent: CreateTransferInstrumentComponent,
29184
+ createIndividualComponent: CreateIndividualComponent
28930
29185
  };
28931
29186
  const AuthProvider = ({
28932
29187
  children,
@@ -29014,7 +29269,7 @@ const getEmbeddedApi = ({
29014
29269
  const [scenarios, tasks] = await Promise.all([getScenarios(baseRequestContext), getTasks(baseRequestContext)]);
29015
29270
  return {
29016
29271
  matchingScenario: {
29017
- [legalEntityType]: scenarios
29272
+ ...scenarios
29018
29273
  },
29019
29274
  taskList: tasks
29020
29275
  };
@@ -29484,6 +29739,10 @@ const I18nProvider = ({
29484
29739
  const settingsDefaults = {
29485
29740
  changeLegalEntityType: true,
29486
29741
  editPrefilledCountry: true,
29742
+ hideOnboardingIntroductionIndividual: true,
29743
+ hideOnboardingIntroductionOrganization: true,
29744
+ hideOnboardingIntroductionTrust: true,
29745
+ hideOnboardingIntroductionSoleProprietor: true,
29487
29746
  viewOnboardingGuidance: false
29488
29747
  };
29489
29748
  function SettingsContextProvider({
@@ -30144,11 +30403,8 @@ const pciDropinSchema = {
30144
30403
  }
30145
30404
  }
30146
30405
  };
30147
- const transferInstrumentComponentSchema = {
30148
- onChange: {
30149
- type: "function"
30150
- },
30151
- onSubmit: {
30406
+ const createTransferInstrumentComponentSchema = {
30407
+ onSubmitSuccess: {
30152
30408
  type: "function"
30153
30409
  },
30154
30410
  legalEntityId: {
@@ -30156,6 +30412,23 @@ const transferInstrumentComponentSchema = {
30156
30412
  required: true
30157
30413
  }
30158
30414
  };
30415
+ const createIndividualComponentSchema = {
30416
+ onSubmitSuccess: {
30417
+ type: "function"
30418
+ },
30419
+ legalEntityId: {
30420
+ type: "string"
30421
+ },
30422
+ parentLegalEntityId: {
30423
+ type: "string"
30424
+ },
30425
+ taskType: {
30426
+ type: "string"
30427
+ },
30428
+ handleBackClick: {
30429
+ type: "function"
30430
+ }
30431
+ };
30159
30432
  const componentsSchemaMap = {
30160
30433
  payoutAccount: payoutAccountSchema,
30161
30434
  soleProprietorDropin: solePropDropinSchema,
@@ -30164,7 +30437,8 @@ const componentsSchemaMap = {
30164
30437
  individualDropin: individualDropinSchema,
30165
30438
  trustDropin: trustDropinSchema,
30166
30439
  taskList: taskListSchema,
30167
- transferInstrumentComponent: transferInstrumentComponentSchema
30440
+ createIndividualComponent: createIndividualComponentSchema,
30441
+ createTransferInstrumentComponent: createTransferInstrumentComponentSchema
30168
30442
  };
30169
30443
  const validateComponentName = (componentName) => {
30170
30444
  if (!componentName) {