@adyen/kyc-components 3.57.3 → 3.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/es/{B4MFY5CR-CpPUcDJz.js → B4MFY5CR-_iq130op.js} +1 -1
  2. package/dist/es/{HO4MOOFI-C-4iCZGg.js → HO4MOOFI-BrouQDMu.js} +2 -2
  3. package/dist/es/{HUY7CZI3-CxRL5Nlo.js → HUY7CZI3-07pJt4CB.js} +2 -2
  4. package/dist/es/{Introduction-0R7_nNDp.js → Introduction-hqVjJq2m.js} +12 -1
  5. package/dist/es/adyen-kyc-components.es.js +1 -1
  6. package/dist/es/{bg-BG-TfrwAHSM.js → bg-BG-BBRoobbQ.js} +2 -0
  7. package/dist/es/{cs-CZ-ho_ywBEK.js → cs-CZ-ayQus68U.js} +2 -0
  8. package/dist/es/{css-BwOI_cdD.js → css-C92d5WcD.js} +1 -1
  9. package/dist/es/{da-DK-DZJF1FaY.js → da-DK-Ct4SzJso.js} +2 -0
  10. package/dist/es/{de-DE-B25fJNin.js → de-DE-DiCx4Je3.js} +2 -0
  11. package/dist/es/{el-GR-DTb_-Vz_.js → el-GR-D_xrKRCZ.js} +2 -0
  12. package/dist/es/{es-ES-DZ6sosjP.js → es-ES-DRwxjhQR.js} +2 -0
  13. package/dist/es/{et-EE-C_1JCxAI.js → et-EE-Bwi8YTvo.js} +2 -0
  14. package/dist/es/{fi-FI-CgnqRXRe.js → fi-FI-B7mjDfF2.js} +2 -0
  15. package/dist/es/{fr-FR-D8_u1qip.js → fr-FR-C3tWJfzX.js} +2 -0
  16. package/dist/es/{hr-HR-BwzK2PB9.js → hr-HR-C_zpTrJI.js} +2 -0
  17. package/dist/es/{hu-HU-BnsL9qEe.js → hu-HU-B1oY-zoH.js} +2 -0
  18. package/dist/es/{index-DsPF64fx.js → index-DgiewAdj.js} +540 -287
  19. package/dist/es/{it-IT-BTWOlTci.js → it-IT-CgIredlK.js} +2 -0
  20. package/dist/es/{json-Co9P8_KG.js → json-DYilx73m.js} +1 -1
  21. package/dist/es/{lt-LT-DNGr3dH0.js → lt-LT-Csdyd99M.js} +2 -0
  22. package/dist/es/{lv-LV-Cfni8DJ9.js → lv-LV-XA7CIA01.js} +2 -0
  23. package/dist/es/{nl-NL-Btfceq49.js → nl-NL-B3Wrg5_z.js} +2 -0
  24. package/dist/es/{no-NO-B7LAbHK6.js → no-NO-BpduYOYo.js} +2 -0
  25. package/dist/es/{pl-PL-HJUk22yx.js → pl-PL-C3fwVuwv.js} +2 -0
  26. package/dist/es/{plaintext-CFLJvf3K.js → plaintext-TI6YMNqC.js} +1 -1
  27. package/dist/es/{pt-PT-DLnvZGAx.js → pt-PT-BCsJrX3M.js} +2 -0
  28. package/dist/es/{ro-RO-BgPkmrFe.js → ro-RO-9UG_ovGp.js} +2 -0
  29. package/dist/es/{sk-SK-Ca7DYst6.js → sk-SK-OgAE6uGt.js} +2 -0
  30. package/dist/es/{sl-SI-e_4Ag1rs.js → sl-SI-C79LrLFg.js} +2 -0
  31. package/dist/es/{sv-SE-BCM3E7md.js → sv-SE-B1PE0QYc.js} +2 -0
  32. package/dist/es/{yaml-D4Ivucgl.js → yaml-D4moATPr.js} +1 -1
  33. package/dist/style.css +56 -80
  34. package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureFinancialInformation.d.ts +1 -1
  35. package/dist/types/components/EFP/tasks/HighExposureDropin/types.d.ts +1 -0
  36. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  37. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +1 -0
  38. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +1 -0
  39. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +1 -1
  40. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +1 -2
  41. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  42. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +2 -1
  43. package/dist/types/components/Trust/forms/Trust/types.d.ts +2 -0
  44. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +3 -1
  45. package/dist/types/components/UnincorporatedPartnership/types/types.d.ts +2 -0
  46. package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts +6 -0
  47. package/dist/types/components/index.d.ts +0 -2
  48. package/dist/types/components/ui/atoms/Link/Link.d.ts +2 -2
  49. package/dist/types/components/ui/atoms/Link/Link.types.d.ts +4 -10
  50. package/dist/types/components/ui/atoms/Remove/Remove.d.ts +0 -1
  51. package/dist/types/core/context/ExperimentContext/types.d.ts +2 -1
  52. package/dist/types/core/models/api/get-scenarios.d.ts +1 -0
  53. package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
  54. package/dist/types/core/models/api/legal-entity-type.d.ts +2 -1
  55. package/dist/types/core/models/api/legal-entity.d.ts +2 -0
  56. package/dist/types/core/models/api/unincorporated-partnership.d.ts +4 -0
  57. package/dist/types/core/types/AccountHolder.types.d.ts +1 -1
  58. package/dist/types/stores/globalStore/taskTypes.d.ts +7 -0
  59. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  60. package/dist/types/utils/mapping/componentApiMapping.d.ts +2 -0
  61. package/dist/types/utils/mapping/mapping.d.ts +2 -0
  62. package/package.json +1 -1
@@ -113,6 +113,7 @@ const defaultLocaleTranslations = {
113
113
  annualTurnoverValue: "Annual turnover value",
114
114
  aNomineeDirectorIsAppointed: "A nominee director is appointed to act on the interests of a third party.",
115
115
  aNomineeShareholderHoldsShares: "A nominee shareholder holds shares on behalf of a third party.",
116
+ anUnincorporatedPartnership: "An Unincorporated Partnership",
116
117
  anyInformationFromTheUploadedDocumentWillBeLost: "Any information from the uploaded document will be lost. You will need to manually add this data.",
117
118
  anyInformationTakenFromThisDocument: "Any information taken from this document will be marked as unverified.",
118
119
  apartmentSuite: "Apartment / Suite",
@@ -226,6 +227,7 @@ const defaultLocaleTranslations = {
226
227
  businessStructure: "Business structure",
227
228
  businessTrust: "Business trust",
228
229
  businessTrusteeDetails: "Business trustee details",
230
+ businessTrustEntity: "Business Trust Entity",
229
231
  byClickingSignIAcknowledgeAndAgree: "By clicking the Sign button, I acknowledge and agree to the following: ",
230
232
  byClickingSubmitReview: "By clicking 'Submit review', you confirm that all of your information has been reviewed, and that all newly provided or already existing data is accurate and up-to-date.",
231
233
  byProceedingToTheNextStepYouConfirmThatYouHaveReadUnderstandAndAcceptTheTerms: 'By proceeding to the next step, you confirm that you have read, understand, and accept the <a href="https://onfido.com/privacy/" target="_blank" rel="noopener noreferrer nofollow">Onfido Privacy Policy</a> and <a href="https://onfido.com/terms-of-service/" target="_blank" rel="noopener noreferrer nofollow">Onfido Terms of Service</a>.',
@@ -803,6 +805,7 @@ const defaultLocaleTranslations = {
803
805
  gamblingProceedDetails: "Gambling proceed details",
804
806
  gamblingWebsite: "Gambling website",
805
807
  "GEMI-number": "GEMI number or ΑΡΙΘΜΟΣ Γ.Ε.ΜΗ (Γενικού Εμπορικού Μητρώου)",
808
+ generalPartnership: "General Partnership",
806
809
  getSetUpInstantly: "Get set up instantly",
807
810
  gettingStarted: "Get Started",
808
811
  getYourBusinessVerifiedDetails: "Get your business's verified details instantly and skip uploading documents.",
@@ -1190,10 +1193,12 @@ const defaultLocaleTranslations = {
1190
1193
  parentCompanyInformation: "Parent company information",
1191
1194
  partitaIVA: "Partita IVA",
1192
1195
  partnership: "Partnership",
1196
+ partnershipAgreement: "Partnership Agreement",
1193
1197
  partnerShipAgreement: "Partnership agreement",
1194
1198
  partnershipIncorporated: "Incorporated partnership",
1195
1199
  partnershipIncorporatedDescription: "You and your partners have limited liability for business debts.",
1196
1200
  partnershipOrAssociation: "Partnership or association",
1201
+ partnershipsUnincorporated: "Unincorporated partnerships",
1197
1202
  partnershipUnincorporated: "Unincorporated partnership",
1198
1203
  partnershipUnincorporatedDescription: "You or your partners are personally liable for business debts.",
1199
1204
  passport: "Passport",
@@ -1313,6 +1318,7 @@ const defaultLocaleTranslations = {
1313
1318
  registeredAddressHeaderDescription__PR: "Your address as it appears on your Department of State Registration.",
1314
1319
  registeredAddressHeaderDescription__US: "Your address as it appears on your Secretary of State Registration.",
1315
1320
  registeredAddressTrustHeaderDescription: "The address registered to your trust",
1321
+ registeredAddressUnincorporatedPartnershipHeaderDescription: "The address registered to your unincorporated partnership",
1316
1322
  registeredBusinessAddress: "Registered business address",
1317
1323
  registeredBusinessAddressDescription: "Your business's official address used for government and other legal purposes.",
1318
1324
  registeredBusinessAddressDescription__withCountry: "Your business's official address used for government and other legal purposes in %{country}.",
@@ -1661,7 +1667,9 @@ const defaultLocaleTranslations = {
1661
1667
  undefinedBeneficiaryDescription: "A class or group of beneficiaries that is not named, but defined in an ascertainable manner in the trust deed.",
1662
1668
  underJudicialAdministration: "Yes, the company is under judicial administration, receivership or similar measures",
1663
1669
  undoWithTimer: "Undo... %{secondsLeft}",
1664
- unfortunatelyAnInstantProvider: "Unfortunately an instant provider isn't available for this country.",
1670
+ unfortunatelyAnInstantProvider: "Unfortunately an instant provider isnt available for this country.",
1671
+ unincorporatedDetails: "Unincorporated Partnership Details",
1672
+ unincorporatedPartnershipType: "Unincorporated Partnership Type",
1665
1673
  uniqueIdentificationCode: "Unique identification code (ЕИК/UIC)",
1666
1674
  unknown: "Unknown",
1667
1675
  unlistedPublicUnitTrust: "Unlisted public unit trust",
@@ -1734,6 +1742,7 @@ const defaultLocaleTranslations = {
1734
1742
  whatFinancialProductIsThisFor: "What financial product is this for?",
1735
1743
  whatIsTheDifferenceBetweenTheseRoles: "What is the difference between these roles?",
1736
1744
  whatTypeOfCompanyDoYouHave: "What type of company do you have?",
1745
+ whatTypeOfOPartnershipAreYou: "What type of unincorporated partnership are you?",
1737
1746
  whatTypeOfTrusteeAreYou: "What type of trustee are you?",
1738
1747
  whatTypeOfYourMembersEntity: "What's the type of your member's entity?",
1739
1748
  whereCanIFindTheseNumbersOnMyDriversLicense: "Where can I find these numbers on my driver's license?",
@@ -1828,7 +1837,7 @@ const createLogger = (namespace) => {
1828
1837
  };
1829
1838
  let sdkToken;
1830
1839
  let fetchSdkToken;
1831
- const logger$V = createLogger("Session");
1840
+ const logger$U = createLogger("Session");
1832
1841
  const setSdkToken = (token) => {
1833
1842
  sdkToken = token;
1834
1843
  };
@@ -1853,7 +1862,7 @@ const refreshSession = async () => {
1853
1862
  setSdkToken(token);
1854
1863
  isSessionRefreshed = true;
1855
1864
  } catch (e) {
1856
- logger$V.error("Failed to fetch sdk token", e);
1865
+ logger$U.error("Failed to fetch sdk token", e);
1857
1866
  }
1858
1867
  return isSessionRefreshed;
1859
1868
  };
@@ -2092,7 +2101,7 @@ function useToastContext() {
2092
2101
  }
2093
2102
  return context;
2094
2103
  }
2095
- const logger$U = createLogger("useBankConfigurationHandler");
2104
+ const logger$T = createLogger("useBankConfigurationHandler");
2096
2105
  const useBankConfigurationHandlers = ({
2097
2106
  handleGetBankVerificationVendors,
2098
2107
  bankAccountCountry,
@@ -2110,7 +2119,7 @@ const useBankConfigurationHandlers = ({
2110
2119
  const bankVerificationVendorsResponse = handleGetBankVerificationVendors ? await handleGetBankVerificationVendors(bankAccountCountry) : [];
2111
2120
  setProvider(bankVerificationVendorsResponse == null ? void 0 : bankVerificationVendorsResponse[0]);
2112
2121
  })().catch(() => {
2113
- logger$U.error();
2122
+ logger$T.error();
2114
2123
  setProvider(void 0);
2115
2124
  }).finally(() => {
2116
2125
  setLoadingStatus("success");
@@ -2337,12 +2346,12 @@ const unscalableIconNames = [
2337
2346
  "upload",
2338
2347
  "warning"
2339
2348
  ];
2340
- const logger$T = createLogger("Icon");
2349
+ const logger$S = createLogger("Icon");
2341
2350
  const Svg = ({ className: className2, name, testId, title, type }) => {
2342
2351
  const LazyLoadedSvg = svgs[name];
2343
2352
  const viewBox = unscalableIconNames.includes(name) ? "0 0 16 16" : void 0;
2344
2353
  if (!LazyLoadedSvg) {
2345
- logger$T.error(`No such svg: "${name}"`);
2354
+ logger$S.error(`No such svg: "${name}"`);
2346
2355
  return null;
2347
2356
  }
2348
2357
  return /* @__PURE__ */ jsx("span", { className: cx(`adyen-kyc-${type}`, className2), "data-testid": testId, children: /* @__PURE__ */ jsx(Suspense, { fallback: null, children: viewBox ? /* @__PURE__ */ jsx(LazyLoadedSvg, { "aria-hidden": type === "icon", viewBox, title: title || name }) : /* @__PURE__ */ jsx(LazyLoadedSvg, { "aria-hidden": type === "icon", title: title || name }) }) });
@@ -2356,7 +2365,7 @@ const loaderSmall = "adyen-kyc-loader-small";
2356
2365
  const loaderMedium = "adyen-kyc-loader-medium";
2357
2366
  const loaderXsmall = "adyen-kyc-loader-xsmall";
2358
2367
  const loaderDot = "adyen-kyc-loader-dot";
2359
- const styles$x = {
2368
+ const styles$y = {
2360
2369
  loaderWrapper,
2361
2370
  loaderWrapperInline,
2362
2371
  loader,
@@ -2367,16 +2376,16 @@ const styles$x = {
2367
2376
  loaderDot
2368
2377
  };
2369
2378
  const sizeMap = {
2370
- xsmall: styles$x.loaderXsmall,
2371
- small: styles$x.loaderSmall,
2372
- medium: styles$x.loaderMedium,
2373
- large: styles$x.loaderLarge
2379
+ xsmall: styles$y.loaderXsmall,
2380
+ small: styles$y.loaderSmall,
2381
+ medium: styles$y.loaderMedium,
2382
+ large: styles$y.loaderLarge
2374
2383
  };
2375
- const Loader = ({ inline = false, size = "large", dot = false }) => /* @__PURE__ */ jsx("div", { className: cx(styles$x.loaderWrapper, { [styles$x.loaderWrapperInline]: inline }), children: /* @__PURE__ */ jsx(
2384
+ const Loader = ({ inline = false, size = "large", dot = false }) => /* @__PURE__ */ jsx("div", { className: cx(styles$y.loaderWrapper, { [styles$y.loaderWrapperInline]: inline }), children: /* @__PURE__ */ jsx(
2376
2385
  "div",
2377
2386
  {
2378
2387
  role: "progressbar",
2379
- className: cx(styles$x.loader, sizeMap[size], { [styles$x.loaderDot]: dot })
2388
+ className: cx(styles$y.loader, sizeMap[size], { [styles$y.loaderDot]: dot })
2380
2389
  }
2381
2390
  ) });
2382
2391
  const button = "adyen-kyc-button";
@@ -2392,7 +2401,7 @@ const buttonVariantCritical = "adyen-kyc-button-variant-critical";
2392
2401
  const buttonVariantLink = "adyen-kyc-button-variant-link";
2393
2402
  const buttonVariantSurface = "adyen-kyc-button-variant-surface";
2394
2403
  const buttonSpinner = "adyen-kyc-button-spinner";
2395
- const styles$w = {
2404
+ const styles$x = {
2396
2405
  button,
2397
2406
  buttonFullWidth,
2398
2407
  buttonLabel,
@@ -2421,17 +2430,17 @@ const ButtonBase = ({
2421
2430
  }) => {
2422
2431
  const isDisabled = disabled || loading;
2423
2432
  const buttonVariantStyle = {
2424
- primary: styles$w.buttonVariantPrimary,
2425
- secondary: styles$w.buttonVariantSecondary,
2426
- tertiary: styles$w.buttonVariantTertiary,
2427
- critical: styles$w.buttonVariantCritical,
2428
- link: styles$w.buttonVariantLink,
2429
- surface: styles$w.buttonVariantSurface
2430
- };
2431
- const rootClassName = cx(styles$w.button, buttonVariantStyle[variant], {
2432
- [styles$w.buttonShapeRectangle]: circle === false,
2433
- [styles$w.buttonShapeCircle]: circle === true,
2434
- [styles$w.buttonFullWidth]: fullWidth
2433
+ primary: styles$x.buttonVariantPrimary,
2434
+ secondary: styles$x.buttonVariantSecondary,
2435
+ tertiary: styles$x.buttonVariantTertiary,
2436
+ critical: styles$x.buttonVariantCritical,
2437
+ link: styles$x.buttonVariantLink,
2438
+ surface: styles$x.buttonVariantSurface
2439
+ };
2440
+ const rootClassName = cx(styles$x.button, buttonVariantStyle[variant], {
2441
+ [styles$x.buttonShapeRectangle]: circle === false,
2442
+ [styles$x.buttonShapeCircle]: circle === true,
2443
+ [styles$x.buttonFullWidth]: fullWidth
2435
2444
  });
2436
2445
  const handleOnClick = (event) => {
2437
2446
  event.preventDefault();
@@ -2449,7 +2458,7 @@ const ButtonBase = ({
2449
2458
  onClick: handleOnClick,
2450
2459
  type,
2451
2460
  children: [
2452
- loading && /* @__PURE__ */ jsx("div", { className: styles$w.buttonSpinner, children: /* @__PURE__ */ jsx(Loader, { size: "small" }) }),
2461
+ loading && /* @__PURE__ */ jsx("div", { className: styles$x.buttonSpinner, children: /* @__PURE__ */ jsx(Loader, { size: "small" }) }),
2453
2462
  children2
2454
2463
  ]
2455
2464
  }
@@ -2476,8 +2485,8 @@ const Button = ({
2476
2485
  type,
2477
2486
  variant
2478
2487
  };
2479
- const labelClassname = cx(styles$w.buttonLabel, {
2480
- [styles$w.buttonLabelPadding]: variant !== "link"
2488
+ const labelClassname = cx(styles$x.buttonLabel, {
2489
+ [styles$x.buttonLabelPadding]: variant !== "link"
2481
2490
  });
2482
2491
  return /* @__PURE__ */ jsx(ButtonBase, { ...buttonProps, children: /* @__PURE__ */ jsxs("div", { className: labelClassname, children: [
2483
2492
  icon && /* @__PURE__ */ jsx(Icon, { name: icon }),
@@ -2503,13 +2512,13 @@ const IconButton = ({
2503
2512
  testId,
2504
2513
  variant
2505
2514
  };
2506
- return /* @__PURE__ */ jsx(ButtonBase, { ...buttonProps, children: /* @__PURE__ */ jsx("div", { className: styles$w.buttonLabel, children: /* @__PURE__ */ jsx(Icon, { name: icon }) }) });
2515
+ return /* @__PURE__ */ jsx(ButtonBase, { ...buttonProps, children: /* @__PURE__ */ jsx("div", { className: styles$x.buttonLabel, children: /* @__PURE__ */ jsx(Icon, { name: icon }) }) });
2507
2516
  };
2508
2517
  const divider = "adyen-kyc-divider";
2509
- const styles$v = {
2518
+ const styles$w = {
2510
2519
  divider
2511
2520
  };
2512
- const Divider = () => /* @__PURE__ */ jsx("hr", { className: styles$v.divider });
2521
+ const Divider = () => /* @__PURE__ */ jsx("hr", { className: styles$w.divider });
2513
2522
  function FormHeader({
2514
2523
  heading,
2515
2524
  description,
@@ -2559,7 +2568,7 @@ const Typography = ({
2559
2568
  const skeleton = "adyen-kyc-skeleton";
2560
2569
  const skeletonCircle = "adyen-kyc-skeleton-circle";
2561
2570
  const skeletonText = "adyen-kyc-skeleton-text";
2562
- const styles$u = {
2571
+ const styles$v = {
2563
2572
  skeleton,
2564
2573
  skeletonCircle,
2565
2574
  skeletonText
@@ -2570,9 +2579,9 @@ const Skeleton = ({
2570
2579
  height = "1em",
2571
2580
  width
2572
2581
  }) => {
2573
- const classNames = cx(styles$u.skeleton, {
2574
- [styles$u.skeletonCircle]: circle,
2575
- [styles$u.skeletonText]: text
2582
+ const classNames = cx(styles$v.skeleton, {
2583
+ [styles$v.skeletonCircle]: circle,
2584
+ [styles$v.skeletonText]: text
2576
2585
  });
2577
2586
  return /* @__PURE__ */ jsx("div", { className: classNames, style: { height, width } });
2578
2587
  };
@@ -2588,7 +2597,7 @@ const accordionContent = "adyen-kyc-accordion-content";
2588
2597
  const accordionWithIcon = "adyen-kyc-accordion-with-icon";
2589
2598
  const accordionArrow = "adyen-kyc-accordion-arrow";
2590
2599
  const accordionArrowRight = "adyen-kyc-accordion-arrow-right";
2591
- const styles$t = {
2600
+ const styles$u = {
2592
2601
  accordion,
2593
2602
  accordionSummary,
2594
2603
  accordionBasic,
@@ -2616,34 +2625,34 @@ const Accordion = ({
2616
2625
  onToggle(e.newState === "closed" ? "close" : "open");
2617
2626
  };
2618
2627
  const variantMap2 = {
2619
- basic: styles$t.accordionBasic,
2620
- info: styles$t.accordionInfo,
2621
- error: styles$t.accordionError,
2622
- warning: styles$t.accordionWarning,
2623
- success: styles$t.accordionSuccess
2628
+ basic: styles$u.accordionBasic,
2629
+ info: styles$u.accordionInfo,
2630
+ error: styles$u.accordionError,
2631
+ warning: styles$u.accordionWarning,
2632
+ success: styles$u.accordionSuccess
2624
2633
  };
2625
2634
  return /* @__PURE__ */ jsxs(
2626
2635
  "details",
2627
2636
  {
2628
2637
  onToggle: handleToggle,
2629
- className: cx(className2, styles$t.accordion, variantMap2[variant], {
2630
- [styles$t.accordionWithIcon]: expandOnLeft,
2631
- [styles$t.accordionNarrow]: narrow
2638
+ className: cx(className2, styles$u.accordion, variantMap2[variant], {
2639
+ [styles$u.accordionWithIcon]: expandOnLeft,
2640
+ [styles$u.accordionNarrow]: narrow
2632
2641
  }),
2633
2642
  children: [
2634
- /* @__PURE__ */ jsxs("summary", { className: styles$t.accordionSummary, children: [
2635
- expandOnLeft && /* @__PURE__ */ jsx(Icon, { name: "chevron-down", className: styles$t.accordionArrow }),
2643
+ /* @__PURE__ */ jsxs("summary", { className: styles$u.accordionSummary, children: [
2644
+ expandOnLeft && /* @__PURE__ */ jsx(Icon, { name: "chevron-down", className: styles$u.accordionArrow }),
2636
2645
  /* @__PURE__ */ jsx(Slot, { name: "icon" }),
2637
2646
  /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "body-strongest", children: /* @__PURE__ */ jsx(Slot, { name: "title", children: /* @__PURE__ */ jsx(Skeleton, {}) }) }),
2638
2647
  !expandOnLeft && /* @__PURE__ */ jsx(
2639
2648
  Icon,
2640
2649
  {
2641
2650
  name: "chevron-down",
2642
- className: cx(styles$t.accordionArrow, styles$t.accordionArrowRight)
2651
+ className: cx(styles$u.accordionArrow, styles$u.accordionArrowRight)
2643
2652
  }
2644
2653
  )
2645
2654
  ] }),
2646
- /* @__PURE__ */ jsx("div", { className: styles$t.accordionContent, children: /* @__PURE__ */ jsx(Slot, { name: "content", children: /* @__PURE__ */ jsx(Skeleton, {}) }) })
2655
+ /* @__PURE__ */ jsx("div", { className: styles$u.accordionContent, children: /* @__PURE__ */ jsx(Slot, { name: "content", children: /* @__PURE__ */ jsx(Skeleton, {}) }) })
2647
2656
  ]
2648
2657
  }
2649
2658
  );
@@ -2664,7 +2673,7 @@ const alertIconError = "adyen-kyc-alert-icon-error";
2664
2673
  const alertIconWarning = "adyen-kyc-alert-icon-warning";
2665
2674
  const alertIconSuccess = "adyen-kyc-alert-icon-success";
2666
2675
  const alertTitle = "adyen-kyc-alert-title";
2667
- const styles$s = {
2676
+ const styles$t = {
2668
2677
  alert,
2669
2678
  alertWithoutIcon,
2670
2679
  alertExplanation,
@@ -2683,19 +2692,19 @@ const styles$s = {
2683
2692
  alertTitle
2684
2693
  };
2685
2694
  const variantMap$1 = {
2686
- basic: styles$s.alertBasic,
2687
- info: styles$s.alertInfo,
2688
- error: styles$s.alertError,
2689
- warning: styles$s.alertWarning,
2690
- success: styles$s.alertSuccess
2695
+ basic: styles$t.alertBasic,
2696
+ info: styles$t.alertInfo,
2697
+ error: styles$t.alertError,
2698
+ warning: styles$t.alertWarning,
2699
+ success: styles$t.alertSuccess
2691
2700
  };
2692
2701
  const iconVariantMap = {
2693
2702
  basic: "",
2694
2703
  // does not exist
2695
- info: styles$s.alertIconInfo,
2696
- error: styles$s.alertIconError,
2697
- warning: styles$s.alertIconWarning,
2698
- success: styles$s.alertIconSuccess
2704
+ info: styles$t.alertIconInfo,
2705
+ error: styles$t.alertIconError,
2706
+ warning: styles$t.alertIconWarning,
2707
+ success: styles$t.alertIconSuccess
2699
2708
  };
2700
2709
  const Alert = ({
2701
2710
  title,
@@ -2721,7 +2730,7 @@ const Alert = ({
2721
2730
  if (isValidElement(icon)) {
2722
2731
  return icon;
2723
2732
  }
2724
- return /* @__PURE__ */ jsx("span", { className: cx(styles$s.alertIcon, iconVariantMap[variant]), children: /* @__PURE__ */ jsx(AlertIcon, { variant }) });
2733
+ return /* @__PURE__ */ jsx("span", { className: cx(styles$t.alertIcon, iconVariantMap[variant]), children: /* @__PURE__ */ jsx(AlertIcon, { variant }) });
2725
2734
  };
2726
2735
  const renderedIcon = renderIcon();
2727
2736
  if (type === "collapsible") {
@@ -2730,7 +2739,7 @@ const Alert = ({
2730
2739
  /* @__PURE__ */ jsx("template", { slot: "icon", children: renderedIcon }),
2731
2740
  /* @__PURE__ */ jsxs("template", { slot: "content", children: [
2732
2741
  children2,
2733
- !!actions && /* @__PURE__ */ jsx("div", { className: styles$s.alertActions, children: actions })
2742
+ !!actions && /* @__PURE__ */ jsx("div", { className: styles$t.alertActions, children: actions })
2734
2743
  ] })
2735
2744
  ] });
2736
2745
  }
@@ -2738,18 +2747,18 @@ const Alert = ({
2738
2747
  return /* @__PURE__ */ jsxs(
2739
2748
  "div",
2740
2749
  {
2741
- className: cx(styles$s.alert, className2, variantMap$1[variant], {
2742
- [styles$s.alertWithoutIcon]: !renderedIcon
2750
+ className: cx(styles$t.alert, className2, variantMap$1[variant], {
2751
+ [styles$t.alertWithoutIcon]: !renderedIcon
2743
2752
  }),
2744
2753
  role: "alert",
2745
2754
  "data-testid": testId,
2746
2755
  children: [
2747
- /* @__PURE__ */ jsxs("div", { className: styles$s.alertHeader, children: [
2756
+ /* @__PURE__ */ jsxs("div", { className: styles$t.alertHeader, children: [
2748
2757
  renderedIcon,
2749
- title && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "body-strongest", className: styles$s.alertTitle, children: title }),
2750
- !!actions && /* @__PURE__ */ jsx("div", { className: styles$s.alertActions, children: actions })
2758
+ title && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "body-strongest", className: styles$t.alertTitle, children: title }),
2759
+ !!actions && /* @__PURE__ */ jsx("div", { className: styles$t.alertActions, children: actions })
2751
2760
  ] }),
2752
- !!children2 && /* @__PURE__ */ jsx("div", { className: styles$s.alertExplanation, children: children2 })
2761
+ !!children2 && /* @__PURE__ */ jsx("div", { className: styles$t.alertExplanation, children: children2 })
2753
2762
  ]
2754
2763
  }
2755
2764
  );
@@ -2757,19 +2766,19 @@ const Alert = ({
2757
2766
  return /* @__PURE__ */ jsxs(
2758
2767
  "div",
2759
2768
  {
2760
- className: cx(styles$s.alert, className2, variantMap$1[variant], {
2761
- [styles$s.alertWithoutIcon]: !renderedIcon
2769
+ className: cx(styles$t.alert, className2, variantMap$1[variant], {
2770
+ [styles$t.alertWithoutIcon]: !renderedIcon
2762
2771
  }),
2763
2772
  role: "alert",
2764
2773
  "data-testid": testId,
2765
2774
  children: [
2766
- /* @__PURE__ */ jsxs("div", { className: styles$s.alertHeader, children: [
2775
+ /* @__PURE__ */ jsxs("div", { className: styles$t.alertHeader, children: [
2767
2776
  renderedIcon,
2768
- title && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "body-strongest", className: styles$s.alertTitle, children: title }),
2777
+ title && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "body-strongest", className: styles$t.alertTitle, children: title }),
2769
2778
  type === "dismissible" && /* @__PURE__ */ jsx(Button, { variant: "tertiary", icon: "cross", onClick: closeAlert, children: i18n.get("close") })
2770
2779
  ] }),
2771
- !!children2 && /* @__PURE__ */ jsx("div", { className: styles$s.alertExplanation, children: children2 }),
2772
- !!actions && /* @__PURE__ */ jsx("div", { className: styles$s.alertActions, children: actions })
2780
+ !!children2 && /* @__PURE__ */ jsx("div", { className: styles$t.alertExplanation, children: children2 }),
2781
+ !!actions && /* @__PURE__ */ jsx("div", { className: styles$t.alertActions, children: actions })
2773
2782
  ]
2774
2783
  }
2775
2784
  );
@@ -2788,45 +2797,6 @@ const AlertIcon = ({ variant }) => {
2788
2797
  return /* @__PURE__ */ jsx(Icon, { name: "info-circle" });
2789
2798
  }
2790
2799
  };
2791
- const logger$S = createLogger("Link");
2792
- const isValidLink = (href) => {
2793
- if (href === "#") {
2794
- logger$S.error(
2795
- 'Links must include a valid href. If your href is "#", consider using a Button instead'
2796
- );
2797
- return false;
2798
- }
2799
- return true;
2800
- };
2801
- const Link = ({
2802
- className: className2,
2803
- children: children2,
2804
- href,
2805
- external,
2806
- icon,
2807
- onClick,
2808
- iconPosition = "left"
2809
- }) => {
2810
- if (!isValidLink(href)) return null;
2811
- const target = external ? "_blank" : "_self";
2812
- const rel = external ? "external noopener noreferrer" : void 0;
2813
- const showIcon = !!icon || external;
2814
- const iconLeft = showIcon && iconPosition === "left" && !external;
2815
- const classNames = cx("adyen-kyc-link", className2, {
2816
- "adyen-kyc-link--with-icon": showIcon,
2817
- "adyen-kyc-link--icon-left": iconLeft
2818
- });
2819
- return /* @__PURE__ */ jsxs("a", { href, className: classNames, target, rel, onClick, children: [
2820
- /* @__PURE__ */ jsx("span", { className: "adyen-kyc-link__text adyen-kyc-link--inherit", children: children2 }),
2821
- showIcon && /* @__PURE__ */ jsx(
2822
- Icon,
2823
- {
2824
- name: external ? "external-link" : icon,
2825
- className: "adyen-kyc-link__icon"
2826
- }
2827
- )
2828
- ] });
2829
- };
2830
2800
  const FormRouterContext = createContext$1(null);
2831
2801
  function useFormRouterContext() {
2832
2802
  const context = useContext$1(FormRouterContext);
@@ -2838,13 +2808,12 @@ function useFormRouterContext() {
2838
2808
  const NavigateToFieldLink = ({ fieldName, label }) => {
2839
2809
  const { goToFormByFieldName } = useFormRouterContext();
2840
2810
  return /* @__PURE__ */ jsx(
2841
- Link,
2811
+ Button,
2842
2812
  {
2843
- onClick: (e) => {
2844
- e.preventDefault();
2813
+ onClick: () => {
2845
2814
  goToFormByFieldName(fieldName);
2846
2815
  },
2847
- href: "to-field-link",
2816
+ variant: "link",
2848
2817
  children: label
2849
2818
  }
2850
2819
  );
@@ -2891,7 +2860,7 @@ const list = "adyen-kyc-list";
2891
2860
  const listNoMarkers = "adyen-kyc-list-no-markers";
2892
2861
  const listItem = "adyen-kyc-list-item";
2893
2862
  const listOrdered = "adyen-kyc-list-ordered";
2894
- const styles$r = {
2863
+ const styles$s = {
2895
2864
  list,
2896
2865
  listNoMarkers,
2897
2866
  listItem,
@@ -2899,12 +2868,12 @@ const styles$r = {
2899
2868
  };
2900
2869
  function List({ className: className2, ordered, noMarkers, items }) {
2901
2870
  const classNames = cx([
2902
- styles$r.list,
2903
- ordered && styles$r.listOrdered,
2904
- noMarkers && styles$r.listNoMarkers,
2871
+ styles$s.list,
2872
+ ordered && styles$s.listOrdered,
2873
+ noMarkers && styles$s.listNoMarkers,
2905
2874
  className2
2906
2875
  ]);
2907
- return /* @__PURE__ */ jsx("ul", { className: classNames, children: items.map((item, idx) => /* @__PURE__ */ jsx("li", { className: styles$r.listItem, children: item }, idx)) });
2876
+ return /* @__PURE__ */ jsx("ul", { className: classNames, children: items.map((item, idx) => /* @__PURE__ */ jsx("li", { className: styles$s.listItem, children: item }, idx)) });
2908
2877
  }
2909
2878
  var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
2910
2879
  DocumentType2["BANK_STATEMENT"] = "bankStatement";
@@ -3206,6 +3175,7 @@ var LegalEntityType = /* @__PURE__ */ ((LegalEntityType2) => {
3206
3175
  LegalEntityType2["ORGANIZATION"] = "organization";
3207
3176
  LegalEntityType2["TRUST"] = "trust";
3208
3177
  LegalEntityType2["SOLE_PROPRIETORSHIP"] = "soleProprietorship";
3178
+ LegalEntityType2["UNINCORPORATED_PARTNERSHIP"] = "unincorporatedPartnership";
3209
3179
  return LegalEntityType2;
3210
3180
  })(LegalEntityType || {});
3211
3181
  var TransferInstrumentType = /* @__PURE__ */ ((TransferInstrumentType2) => {
@@ -5936,6 +5906,13 @@ var TaskTypes = /* @__PURE__ */ ((TaskTypes2) => {
5936
5906
  TaskTypes2["TRUST_MEMBER_COMPANY"] = "TRUST_MEMBER_COMPANY";
5937
5907
  TaskTypes2["TRUST_MEMBER_ROLE_AND_TYPE"] = "TRUST_MEMBER_ROLE_AND_TYPE";
5938
5908
  TaskTypes2["TRUST_MEMBER_COMPANY_OWNER"] = "TRUST_MEMBER_COMPANY_OWNER";
5909
+ TaskTypes2["UNINCORPORATED_PARTNERSHIP"] = "UNINCORPORATED_PARTNERSHIP";
5910
+ TaskTypes2["UNINCORPORATED_PARTNERSHIP_MEMBER"] = "UNINCORPORATED_PARTNERSHIP_MEMBER";
5911
+ TaskTypes2["UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW"] = "UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW";
5912
+ TaskTypes2["UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL"] = "UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL";
5913
+ TaskTypes2["UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY"] = "UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY";
5914
+ TaskTypes2["UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE"] = "UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE";
5915
+ TaskTypes2["UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER"] = "UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER";
5939
5916
  TaskTypes2["SOLE_PROPRIETOR_COMPANY"] = "SOLE_PROPRIETOR_COMPANY";
5940
5917
  TaskTypes2["CAPABILITY_REJECTED"] = "CAPABILITY_REJECTED";
5941
5918
  TaskTypes2["SINGPASS_SELECTION"] = "SINGPASS_SELECTION";
@@ -9909,6 +9886,29 @@ const getCountrySpecificTrustTypeOptions = (country) => {
9909
9886
  return countrySpecificTrustTypeOption;
9910
9887
  });
9911
9888
  };
9889
+ const isPartOfUnincorporatedPartnership = (legalEntity) => {
9890
+ var _a2;
9891
+ return (_a2 = legalEntity == null ? void 0 : legalEntity.entityAssociations) == null ? void 0 : _a2.some(
9892
+ (ea) => ea.entityType === LegalEntityType.UNINCORPORATED_PARTNERSHIP && ea.associatorId === legalEntity.id
9893
+ );
9894
+ };
9895
+ const getOwnUnincorporatedPartnershipLegalEntityId = (legalEntity) => {
9896
+ var _a2, _b2;
9897
+ return (_b2 = (_a2 = legalEntity == null ? void 0 : legalEntity.entityAssociations) == null ? void 0 : _a2.find(
9898
+ (ea) => ea.entityType === LegalEntityType.UNINCORPORATED_PARTNERSHIP && ea.associatorId === legalEntity.id
9899
+ )) == null ? void 0 : _b2.legalEntityId;
9900
+ };
9901
+ const getOwnUnincorporatedPartnershipLegalEntityIdAsArray = (legalEntity) => {
9902
+ const legalEntityId = getOwnUnincorporatedPartnershipLegalEntityId(legalEntity);
9903
+ return legalEntityId ? [legalEntityId] : [];
9904
+ };
9905
+ const getOwnUnincorporatedPartnershipProblems = (legalEntity, capabilityProblems) => {
9906
+ var _a2;
9907
+ const legalEntityId = getOwnUnincorporatedPartnershipLegalEntityId(legalEntity);
9908
+ if (legalEntityId) {
9909
+ return (_a2 = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _a2[legalEntityId];
9910
+ }
9911
+ };
9912
9912
  var VerificationStatus = /* @__PURE__ */ ((VerificationStatus2) => {
9913
9913
  VerificationStatus2["VALID"] = "valid";
9914
9914
  VerificationStatus2["PENDING"] = "pending";
@@ -10907,6 +10907,27 @@ const trustBaseMapping = {
10907
10907
  "trustRegistrationAddress.operationalAddress.address": "trust.principalPlaceOfBusiness.street",
10908
10908
  "trustRegistrationAddress.operationalAddress.otherAddressInformation": "trust.principalPlaceOfBusiness.street2"
10909
10909
  };
10910
+ const unincorporatedPartnershipBaseMapping = {
10911
+ "trustRegistrationDetails.trustType": "unincorporatedPartnership.type",
10912
+ "trustRegistrationDetails.legalName": "unincorporatedPartnership.name",
10913
+ "trustRegistrationDetails.doingBusinessAs": "unincorporatedPartnership.doingBusinessAs",
10914
+ "trustRegistrationDetails.hasDoingBusinessAs": "unincorporatedPartnership.doingBusinessAsAbsent",
10915
+ "trustRegistrationDetails.country": "unincorporatedPartnership.countryOfGoverningLaw",
10916
+ "trustRegistrationDetails.registrationNumber": "unincorporatedPartnership.registrationNumber",
10917
+ "trustRegistrationDetails.taxInformation": "unincorporatedPartnership.taxInformation",
10918
+ "trustRegistrationAddress.registrationAddress.city": "unincorporatedPartnership.registeredAddress.city",
10919
+ "trustRegistrationAddress.registrationAddress.country": "unincorporatedPartnership.registeredAddress.country",
10920
+ "trustRegistrationAddress.registrationAddress.postalCode": "unincorporatedPartnership.registeredAddress.postalCode",
10921
+ "trustRegistrationAddress.registrationAddress.stateOrProvince": "unincorporatedPartnership.registeredAddress.stateOrProvince",
10922
+ "trustRegistrationAddress.registrationAddress.address": "unincorporatedPartnership.registeredAddress.street",
10923
+ "trustRegistrationAddress.registrationAddress.otherAddressInformation": "unincorporatedPartnership.registeredAddress.street2",
10924
+ "trustRegistrationAddress.operationalAddress.city": "unincorporatedPartnership.principalPlaceOfBusiness.city",
10925
+ "trustRegistrationAddress.operationalAddress.country": "unincorporatedPartnership.principalPlaceOfBusiness.country",
10926
+ "trustRegistrationAddress.operationalAddress.postalCode": "unincorporatedPartnership.principalPlaceOfBusiness.postalCode",
10927
+ "trustRegistrationAddress.operationalAddress.stateOrProvince": "unincorporatedPartnership.principalPlaceOfBusiness.stateOrProvince",
10928
+ "trustRegistrationAddress.operationalAddress.address": "unincorporatedPartnership.principalPlaceOfBusiness.street",
10929
+ "trustRegistrationAddress.operationalAddress.otherAddressInformation": "unincorporatedPartnership.principalPlaceOfBusiness.street2"
10930
+ };
10910
10931
  const solePropBaseMapping = {
10911
10932
  "solePropNameAndCountry.country": "soleProprietorship.countryOfGoverningLaw",
10912
10933
  "solePropNameAndCountry.legalCompanyName": "soleProprietorship.name",
@@ -11002,6 +11023,12 @@ const payoutComponentKeyMapping = {
11002
11023
  const trustComponentsKeyMapping = {
11003
11024
  ...trustBaseMapping
11004
11025
  };
11026
+ const unincorporatedPartnershipComponentsKeyMapping = {
11027
+ ...unincorporatedPartnershipBaseMapping
11028
+ };
11029
+ const unincorporatedPartnershipApiKeyMapping = {
11030
+ ...reverseObject(unincorporatedPartnershipBaseMapping)
11031
+ };
11005
11032
  const trustApiKeyMapping = {
11006
11033
  ...reverseObject(trustBaseMapping)
11007
11034
  };
@@ -11069,6 +11096,9 @@ const legalEntityDocumentToFieldMapping = {
11069
11096
  },
11070
11097
  [LegalEntityType.TRUST]: {
11071
11098
  [DocumentType.CONSTITUTIONAL_DOCUMENT]: "trustConstitutionalDocument.constitutionalDocument"
11099
+ },
11100
+ [LegalEntityType.UNINCORPORATED_PARTNERSHIP]: {
11101
+ [DocumentType.CONSTITUTIONAL_DOCUMENT]: "trustConstitutionalDocument.constitutionalDocument"
11072
11102
  }
11073
11103
  };
11074
11104
  const sourceOfFundsComponentsKeyMapping = {
@@ -11445,6 +11475,58 @@ const mapLegalEntityToTrust = (legalEntity, isExperimentEnabled) => {
11445
11475
  }
11446
11476
  return trustCompData;
11447
11477
  };
11478
+ const mapLegalEntityToUnincorporatedPartnership = (legalEntity, isExperimentEnabled) => {
11479
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
11480
+ let trustCompData;
11481
+ if (legalEntity == null ? void 0 : legalEntity.unincorporatedPartnership) {
11482
+ trustCompData = formatObject(legalEntity, unincorporatedPartnershipComponentsKeyMapping);
11483
+ trustCompData.trustRegistrationDetails.country = legalEntity.unincorporatedPartnership.countryOfGoverningLaw;
11484
+ if ((_a2 = legalEntity.unincorporatedPartnership) == null ? void 0 : _a2.description) {
11485
+ trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.unincorporatedPartnership.description;
11486
+ }
11487
+ if ((_b2 = legalEntity.unincorporatedPartnership) == null ? void 0 : _b2.principalPlaceOfBusiness) {
11488
+ trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
11489
+ } else {
11490
+ if (!trustCompData.trustRegistrationAddress) {
11491
+ trustCompData.trustRegistrationAddress = {};
11492
+ }
11493
+ trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
11494
+ }
11495
+ if ((_d2 = (_c2 = legalEntity.unincorporatedPartnership) == null ? void 0 : _c2.taxInformation) == null ? void 0 : _d2.length) {
11496
+ const { country } = legalEntity.unincorporatedPartnership.registeredAddress;
11497
+ const countryTaxInformation = legalEntity.unincorporatedPartnership.taxInformation.find(
11498
+ (info) => info.country === country
11499
+ );
11500
+ if ((countryTaxInformation == null ? void 0 : countryTaxInformation.type) === "UEN") {
11501
+ trustCompData.trustRegistrationDetails.isUen = true;
11502
+ }
11503
+ if ((countryTaxInformation == null ? void 0 : countryTaxInformation.type) === "GST") {
11504
+ trustCompData.trustRegistrationDetails.isUen = false;
11505
+ }
11506
+ const taxNumberAbsent = countryTaxInformation == null ? void 0 : countryTaxInformation.numberAbsent;
11507
+ if (taxNumberAbsent !== void 0) {
11508
+ trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
11509
+ }
11510
+ }
11511
+ if ((_e2 = legalEntity == null ? void 0 : legalEntity.documentDetails) == null ? void 0 : _e2.length) {
11512
+ trustCompData = {
11513
+ ...trustCompData,
11514
+ ...mapApiDocumentToTrustDocument(legalEntity == null ? void 0 : legalEntity.id)
11515
+ };
11516
+ }
11517
+ if (isExperimentEnabled("EnableDoingBusinessAsNameV4")) {
11518
+ if (typeof ((_f2 = trustCompData == null ? void 0 : trustCompData.trustRegistrationDetails) == null ? void 0 : _f2.hasDoingBusinessAs) === "boolean") {
11519
+ trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.unincorporatedPartnership.doingBusinessAsAbsent;
11520
+ if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs)
11521
+ (_g2 = legalEntity.unincorporatedPartnership) == null ? true : delete _g2.doingBusinessAs;
11522
+ }
11523
+ } else {
11524
+ trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs ? legalEntity.unincorporatedPartnership.doingBusinessAs === legalEntity.unincorporatedPartnership.name ? false : true : void 0;
11525
+ trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs;
11526
+ }
11527
+ }
11528
+ return trustCompData;
11529
+ };
11448
11530
  const mapTrustToLegalEntity = (data, isExperimentEnabled) => {
11449
11531
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2;
11450
11532
  const requestObj = {
@@ -11482,6 +11564,43 @@ const mapTrustToLegalEntity = (data, isExperimentEnabled) => {
11482
11564
  requestObj.type = LegalEntityType.TRUST;
11483
11565
  return requestObj;
11484
11566
  };
11567
+ const mapUnincorporatedPartnershipToLegalEntity = (data, isExperimentEnabled) => {
11568
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2;
11569
+ const requestObj = {
11570
+ ...formatObject(data, unincorporatedPartnershipApiKeyMapping)
11571
+ };
11572
+ const taxId = (_c2 = (_b2 = (_a2 = data.trustRegistrationDetails) == null ? void 0 : _a2.taxInformation) == null ? void 0 : _b2.find(
11573
+ (tax) => {
11574
+ var _a3;
11575
+ return tax.country === ((_a3 = data.trustRegistrationDetails) == null ? void 0 : _a3.country);
11576
+ }
11577
+ )) == null ? void 0 : _c2.number;
11578
+ if (taxId || isExperimentEnabled("EnableRegistrationAndTaxAbsentStatesV4")) {
11579
+ requestObj.unincorporatedPartnership = updateTaxInformation(
11580
+ {
11581
+ taxId,
11582
+ country: (_d2 = data.trustRegistrationDetails) == null ? void 0 : _d2.country,
11583
+ exemptedFromTax: (_e2 = data.trustRegistrationDetails) == null ? void 0 : _e2.exemptedFromTax,
11584
+ entity: requestObj.unincorporatedPartnership
11585
+ },
11586
+ isExperimentEnabled("EnableRegistrationAndTaxAbsentStatesV4")
11587
+ );
11588
+ }
11589
+ if ((_f2 = data.trustRegistrationDetails) == null ? void 0 : _f2.objectOfTrust) {
11590
+ requestObj.unincorporatedPartnership.description = data.trustRegistrationDetails.objectOfTrust;
11591
+ }
11592
+ if (isExperimentEnabled("EnableDoingBusinessAsNameV4")) {
11593
+ requestObj.unincorporatedPartnership.doingBusinessAsAbsent = typeof ((_g2 = data.trustRegistrationDetails) == null ? void 0 : _g2.hasDoingBusinessAs) !== "undefined" ? !((_h2 = data.trustRegistrationDetails) == null ? void 0 : _h2.hasDoingBusinessAs) : void 0;
11594
+ if (requestObj.unincorporatedPartnership.doingBusinessAsAbsent) {
11595
+ requestObj.unincorporatedPartnership.doingBusinessAs = "";
11596
+ }
11597
+ } else {
11598
+ (_i2 = requestObj.unincorporatedPartnership) == null ? true : delete _i2.doingBusinessAsAbsent;
11599
+ requestObj.unincorporatedPartnership.doingBusinessAs = ((_j2 = data.trustRegistrationDetails) == null ? void 0 : _j2.doingBusinessAs) || ((_k2 = data.trustRegistrationDetails) == null ? void 0 : _k2.legalName);
11600
+ }
11601
+ requestObj.type = LegalEntityType.UNINCORPORATED_PARTNERSHIP;
11602
+ return requestObj;
11603
+ };
11485
11604
  const mapLegalEntityToHighExposure = (legalEntity) => formatObject(legalEntity, highExposureComponentsKeyMapping);
11486
11605
  const mapHighExposureToLegalEntity = (data) => ({
11487
11606
  ...formatObject(data, highExposureApiKeyMapping)
@@ -12068,11 +12187,17 @@ const emptyFieldsForSoleProp = [
12068
12187
  "name",
12069
12188
  "registeredAddress.country"
12070
12189
  ];
12190
+ const emptyFieldsForUnincorporatedPartnership = [
12191
+ "name",
12192
+ "countryOfGoverningLaw",
12193
+ "registeredAddress.country"
12194
+ ];
12071
12195
  const emptyFieldsByEntityType = {
12072
12196
  [LegalEntityType.INDIVIDUAL]: emptyFieldsForIndividual,
12073
12197
  [LegalEntityType.ORGANIZATION]: emptyFieldsForOrganization,
12074
12198
  [LegalEntityType.TRUST]: emptyFieldsForTrust,
12075
- [LegalEntityType.SOLE_PROPRIETORSHIP]: emptyFieldsForSoleProp
12199
+ [LegalEntityType.SOLE_PROPRIETORSHIP]: emptyFieldsForSoleProp,
12200
+ [LegalEntityType.UNINCORPORATED_PARTNERSHIP]: emptyFieldsForUnincorporatedPartnership
12076
12201
  };
12077
12202
  function isEmptyEntity(legalEntity) {
12078
12203
  var _a2;
@@ -12318,6 +12443,16 @@ const calculateTaskStatus = ({
12318
12443
  return calculateCustomerSupportTask(capabilityProblems, rootLegalEntity);
12319
12444
  case TaskTypes.BUSINESS_FINANCING:
12320
12445
  return calculateBusinessFinancingTaskStatus(capabilityProblems, rootLegalEntity);
12446
+ case TaskTypes.UNINCORPORATED_PARTNERSHIP: {
12447
+ const partnerIds = getOwnUnincorporatedPartnershipLegalEntityIdAsArray(rootLegalEntity);
12448
+ if (accountHolder === "anUnincorporatedPartnership" && partnerIds.length === 0)
12449
+ return {
12450
+ status: TaskStatus.EMPTY,
12451
+ reason: "newEntityAlwaysEmpty"
12452
+ };
12453
+ relevantEntityIds = partnerIds;
12454
+ break;
12455
+ }
12321
12456
  }
12322
12457
  return getRegularTaskStatus({
12323
12458
  taskType,
@@ -12339,7 +12474,8 @@ const splitTaskIdentifier = (taskIdentifier) => {
12339
12474
  const NEEDS_SUPPORT_DETAILS = [
12340
12475
  "theCompanyIWorkFor",
12341
12476
  "mySoleProprietorName",
12342
- "aTrust"
12477
+ "aTrust",
12478
+ "anUnincorporatedPartnership"
12343
12479
  ];
12344
12480
  const CAPABILITIES_REQUIRING_CUSTOMER_SUPPORT = ["receivePayments"];
12345
12481
  const requireCustomerSupport = (accountHolder, capabilities) => {
@@ -12391,6 +12527,9 @@ const determineTaskIdentifiers = ({
12391
12527
  }
12392
12528
  });
12393
12529
  }
12530
+ if (accountHolder === "anUnincorporatedPartnership") {
12531
+ tasks.push(TaskTypes.UNINCORPORATED_PARTNERSHIP);
12532
+ }
12394
12533
  if (requireCustomerSupport(accountHolder, capabilities)) {
12395
12534
  tasks.push("CUSTOMER_SUPPORT");
12396
12535
  }
@@ -15332,6 +15471,26 @@ function PayoutAccount(props) {
15332
15471
  )
15333
15472
  ] });
15334
15473
  }
15474
+ const link = "adyen-kyc-link";
15475
+ const linkDefault = "adyen-kyc-link-default";
15476
+ const linkInline = "adyen-kyc-link-inline";
15477
+ const styles$r = {
15478
+ link,
15479
+ linkDefault,
15480
+ linkInline
15481
+ };
15482
+ const Link = ({ children: children2, external = false, href, inline = false }) => {
15483
+ const rel = external ? "external noopener noreferrer" : void 0;
15484
+ const target = external ? "_blank" : "_self";
15485
+ const className2 = cx(styles$r.link, {
15486
+ [styles$r.linkInline]: inline,
15487
+ [styles$r.linkDefault]: !inline
15488
+ });
15489
+ return /* @__PURE__ */ jsxs("a", { className: className2, href, rel, target, children: [
15490
+ children2,
15491
+ external && !inline && /* @__PURE__ */ jsx(Icon, { name: "external-link" })
15492
+ ] });
15493
+ };
15335
15494
  const Radio = ({
15336
15495
  id,
15337
15496
  value,
@@ -15502,6 +15661,7 @@ var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
15502
15661
  ExperimentNames2["EnableSolePropUsingBusinessDetails"] = "EnableSolePropUsingBusinessDetails";
15503
15662
  ExperimentNames2["EnableLimitCountryBusinessAccountCustomers"] = "EnableLimitCountryBusinessAccountCustomers";
15504
15663
  ExperimentNames2["EnableTrustMemberCompanyUsingBusinessDetails"] = "EnableTrustMemberCompanyUsingBusinessDetails";
15664
+ ExperimentNames2["EnableUnincorporatedPartnershipInHO"] = "EnableUnincorporatedPartnershipInHO";
15505
15665
  return ExperimentNames2;
15506
15666
  })(ExperimentNames || {});
15507
15667
  function useDataset(datasetIdentifier2, skip) {
@@ -16041,6 +16201,7 @@ const getMustHaveSameAccountHolderNameText = (legalEntityType, accountHolderName
16041
16201
  });
16042
16202
  case LegalEntityType.ORGANIZATION:
16043
16203
  case LegalEntityType.TRUST:
16204
+ case LegalEntityType.UNINCORPORATED_PARTNERSHIP:
16044
16205
  return i18n.get("theBankAccountHolderMustHaveTheSameNameAsYourCompany_", {
16045
16206
  values: { companyName: accountHolderName }
16046
16207
  });
@@ -16310,7 +16471,7 @@ function PayoutVerificationMethod(props) {
16310
16471
  }
16311
16472
  ),
16312
16473
  /* @__PURE__ */ jsx(Typography, { children: i18n.get("adyenWillOnlyGetTemporaryAccess") }),
16313
- /* @__PURE__ */ jsx(Link, { href: "https://www.adyen.com/policies-and-disclaimer/privacy-policy", external: true, children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get("adyenPrivacyPolicy") }) })
16474
+ /* @__PURE__ */ jsx(Typography, { variant: "caption", children: /* @__PURE__ */ jsx(Link, { href: "https://www.adyen.com/policies-and-disclaimer/privacy-policy", external: true, children: i18n.get("adyenPrivacyPolicy") }) })
16314
16475
  ] })
16315
16476
  }
16316
16477
  ) : void 0
@@ -18998,12 +19159,7 @@ const taxIdNumberOptions = {
18998
19159
  [CountryCodes.Australia]: [
18999
19160
  {
19000
19161
  id: "ABN",
19001
- name: "australianBusinessNumberAbn",
19002
- applicableOnlyFor: [
19003
- CompanyTypesValue.UNINCORPORATED_PARTNERSHIP,
19004
- CompanyTypesValue.SOLE_PROPRIETORSHIP,
19005
- LegalEntityType.TRUST
19006
- ]
19162
+ name: "australianBusinessNumberAbn"
19007
19163
  }
19008
19164
  ],
19009
19165
  [CountryCodes.Belgium]: [{ id: "BUSINESS_NUMMER", name: "businessNumber" }],
@@ -27170,7 +27326,7 @@ function PersonalDetails(props) {
27170
27326
  );
27171
27327
  const getAlertProps = () => {
27172
27328
  if (typeof birthDateErrorMessage === "string") {
27173
- return { title: birthDateErrorMessage, variant: "error" };
27329
+ return { title: i18n.get(birthDateErrorMessage), variant: "error" };
27174
27330
  }
27175
27331
  const translatableWarningMessage = getLegalRepresentativeWarningMessage({
27176
27332
  data,
@@ -27817,6 +27973,7 @@ var ConstitutionalDocumentTypes = /* @__PURE__ */ ((ConstitutionalDocumentTypes2
27817
27973
  ConstitutionalDocumentTypes2["BUSINESS_REGISTRATION_DOCUMENT"] = "businessRegistrationDocument";
27818
27974
  ConstitutionalDocumentTypes2["TRUST_DEED"] = "trustDeed";
27819
27975
  ConstitutionalDocumentTypes2["TRUST_INSTRUMENT"] = "trustInstrument";
27976
+ ConstitutionalDocumentTypes2["PARTNERSHIP_AGREEMENT"] = "partnershipAgreement";
27820
27977
  return ConstitutionalDocumentTypes2;
27821
27978
  })(ConstitutionalDocumentTypes || {});
27822
27979
  const getConstitutionDocumentTypeOptionsMapping = (legalEntityType, country) => {
@@ -27856,6 +28013,13 @@ const getConstitutionDocumentTypeOptionsMapping = (legalEntityType, country) =>
27856
28013
  { id: ConstitutionalDocumentTypes.TAX_FILING, name: "taxFiling" }
27857
28014
  ];
27858
28015
  }
28016
+ case LegalEntityType.UNINCORPORATED_PARTNERSHIP:
28017
+ return [
28018
+ {
28019
+ id: ConstitutionalDocumentTypes.PARTNERSHIP_AGREEMENT,
28020
+ name: "partnershipAgreement"
28021
+ }
28022
+ ];
27859
28023
  default:
27860
28024
  return [
27861
28025
  { id: ConstitutionalDocumentTypes.TRUST_DEED, name: "trustDeed" },
@@ -28073,6 +28237,27 @@ function SoleProp(props) {
28073
28237
  };
28074
28238
  return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-sol-prop", children: renderActiveForm(activeForm || solePropForms.solePropNameAndCountry) });
28075
28239
  }
28240
+ const ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES = [
28241
+ CountryCodes.Australia,
28242
+ CountryCodes.Belgium,
28243
+ CountryCodes.Canada,
28244
+ CountryCodes.CzechRepublic,
28245
+ CountryCodes.France,
28246
+ CountryCodes.Germany,
28247
+ CountryCodes.HongKong,
28248
+ CountryCodes.Hungary,
28249
+ CountryCodes.Ireland,
28250
+ CountryCodes.Netherlands,
28251
+ CountryCodes.NewZealand,
28252
+ CountryCodes.Poland,
28253
+ CountryCodes.Romania,
28254
+ CountryCodes.Singapore,
28255
+ CountryCodes.Slovakia,
28256
+ CountryCodes.Spain,
28257
+ CountryCodes.Switzerland,
28258
+ CountryCodes.UnitedKingdom,
28259
+ CountryCodes.UnitedStates
28260
+ ];
28076
28261
  const trustRegistrationDetailsValidations = {
28077
28262
  trustType: {
28078
28263
  modes: ["blur"],
@@ -28153,6 +28338,8 @@ function TrustRegistrationDetails(props) {
28153
28338
  const isStrictNameAndAddressValidationEnabled = isExperimentEnabled(
28154
28339
  ExperimentNames.StrictNameAndAddressValidationV4
28155
28340
  );
28341
+ const { taskType } = props;
28342
+ const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
28156
28343
  const country = (sliceData == null ? void 0 : sliceData.country) ?? mergedProps.country;
28157
28344
  const defaultData = useMemo(
28158
28345
  () => ({ ...mergedProps.data, country }),
@@ -28268,11 +28455,11 @@ function TrustRegistrationDetails(props) {
28268
28455
  id: "ariaErrorField"
28269
28456
  }
28270
28457
  ),
28271
- /* @__PURE__ */ jsx(
28458
+ !isUnincorporatedPartnership && /* @__PURE__ */ jsx(
28272
28459
  Alert,
28273
28460
  {
28274
28461
  variant: "info",
28275
- title: i18n.get("makeSureToHaveYourTrustDeed"),
28462
+ title: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "secondary", children: i18n.get("makeSureToHaveYourTrustDeed") }),
28276
28463
  className: "adyen-kyc-u-margin-bottom-16"
28277
28464
  }
28278
28465
  ),
@@ -28286,7 +28473,7 @@ function TrustRegistrationDetails(props) {
28286
28473
  country: "countryRegionOfEstablishment"
28287
28474
  }),
28288
28475
  readonly: formUtils.isReadOnly("country"),
28289
- allowedCountries: ALLOWED_TRUST_COUNTRIES,
28476
+ allowedCountries: isUnincorporatedPartnership ? ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES : ALLOWED_TRUST_COUNTRIES,
28290
28477
  classNameModifiers: ["country"],
28291
28478
  handleChangeFor: () => (e) => {
28292
28479
  handleChangeFor("country", "input")(e);
@@ -28298,7 +28485,9 @@ function TrustRegistrationDetails(props) {
28298
28485
  Field,
28299
28486
  {
28300
28487
  name: "legalName",
28301
- label: formUtils.getLabel("legalName", "nameOfTrustAgreement"),
28488
+ label: formUtils.getLabel(
28489
+ !isUnincorporatedPartnership ? "nameOfTrustAgreement" : "legalName"
28490
+ ),
28302
28491
  classNameModifiers: ["legalName"],
28303
28492
  errorMessage: formUtils.getErrorMessage("legalName", errors, fieldProblems),
28304
28493
  isValid: valid.legalName,
@@ -28334,7 +28523,7 @@ function TrustRegistrationDetails(props) {
28334
28523
  setErrors
28335
28524
  }
28336
28525
  ),
28337
- formUtils.isRequiredField("trustType") && /* @__PURE__ */ jsx(
28526
+ formUtils.isRequiredField("trustType") && !isUnincorporatedPartnership && /* @__PURE__ */ jsx(
28338
28527
  Field,
28339
28528
  {
28340
28529
  name: "trustType",
@@ -28459,10 +28648,11 @@ const trustRegistrationDetailsFormId = trustForms.trustRegistrationDetails.formI
28459
28648
  const trustConstitutionalDocumentFormId = trustForms.trustConstitutionalDocument.formId;
28460
28649
  function Trust(props) {
28461
28650
  const { i18n } = useI18nContext();
28462
- const { country, handleAddressSearch, handleFindAddress, activeForm } = props;
28651
+ const { country, handleAddressSearch, handleFindAddress, activeForm, taskType } = props;
28463
28652
  const trustRegistrationDetailsFormProps = getFormProps(props, trustRegistrationDetailsFormId);
28464
28653
  const trustRegistrationAddressFormProps = getNestedOuterFormPropsFromOuterFormProps(props, trustRegistrationAddressFormId);
28465
28654
  const trustDocumentFormProps = getFormProps(props, trustConstitutionalDocumentFormId);
28655
+ const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
28466
28656
  const renderActiveForm = (activeForm2) => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-trust", children: [
28467
28657
  /* @__PURE__ */ jsx(
28468
28658
  "div",
@@ -28474,7 +28664,8 @@ function Trust(props) {
28474
28664
  ...trustRegistrationDetailsFormProps,
28475
28665
  heading: i18n.get("registrationDetails"),
28476
28666
  id: trustRegistrationDetailsFormId,
28477
- country
28667
+ country,
28668
+ taskType
28478
28669
  }
28479
28670
  )
28480
28671
  }
@@ -28488,7 +28679,7 @@ function Trust(props) {
28488
28679
  {
28489
28680
  ...trustRegistrationAddressFormProps,
28490
28681
  heading: i18n.get("registeredAddress"),
28491
- description: i18n.get("registeredAddressTrustHeaderDescription"),
28682
+ description: !isUnincorporatedPartnership ? i18n.get("registeredAddressTrustHeaderDescription") : i18n.get("registeredAddressUnincorporatedPartnershipHeaderDescription"),
28492
28683
  id: trustRegistrationAddressFormId,
28493
28684
  country,
28494
28685
  problems: props == null ? void 0 : props.problems,
@@ -28508,7 +28699,7 @@ function Trust(props) {
28508
28699
  {
28509
28700
  ...trustDocumentFormProps,
28510
28701
  id: trustConstitutionalDocumentFormId,
28511
- legalEntityType: LegalEntityType.TRUST,
28702
+ legalEntityType: isUnincorporatedPartnership ? LegalEntityType.UNINCORPORATED_PARTNERSHIP : LegalEntityType.TRUST,
28512
28703
  country
28513
28704
  }
28514
28705
  )
@@ -31072,7 +31263,8 @@ const entityTypeToCorrespondingAccountHolderOption = {
31072
31263
  [LegalEntityType.INDIVIDUAL]: "myName",
31073
31264
  [LegalEntityType.ORGANIZATION]: "theCompanyIWorkFor",
31074
31265
  [LegalEntityType.SOLE_PROPRIETORSHIP]: "mySoleProprietorName",
31075
- [LegalEntityType.TRUST]: "aTrust"
31266
+ [LegalEntityType.TRUST]: "aTrust",
31267
+ [LegalEntityType.UNINCORPORATED_PARTNERSHIP]: "anUnincorporatedPartnership"
31076
31268
  };
31077
31269
  const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false, accountHolder) => {
31078
31270
  if (accountHolder) {
@@ -31093,6 +31285,13 @@ const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false
31093
31285
  )) {
31094
31286
  return "aTrust";
31095
31287
  }
31288
+ if (hasOwnEntityAssociationOfType(
31289
+ LegalEntityType.UNINCORPORATED_PARTNERSHIP,
31290
+ legalEntityResponse.entityAssociations,
31291
+ legalEntityResponse.id
31292
+ )) {
31293
+ return "anUnincorporatedPartnership";
31294
+ }
31096
31295
  if (isTypeChanging || !isEmptyEntity(legalEntityResponse)) {
31097
31296
  return entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type];
31098
31297
  }
@@ -31466,7 +31665,7 @@ const legalArrangementMetadata = {
31466
31665
  },
31467
31666
  partnershipUnincorporated: {
31468
31667
  id: "partnershipUnincorporated",
31469
- accountHolder: "theCompanyIWorkFor",
31668
+ accountHolder: "anUnincorporatedPartnership",
31470
31669
  name: "partnershipUnincorporated",
31471
31670
  description: "partnershipUnincorporatedDescription"
31472
31671
  },
@@ -31539,10 +31738,11 @@ const getDefaultLegalArrangementOrSuborganizationType = (legalEntityResponse, ac
31539
31738
  return void 0;
31540
31739
  };
31541
31740
  const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, currentLegalEntityType) => {
31542
- if (businessType === "legalArrangement" && legalArrangement === "aTrust" && trusteeType === "company" || businessType === "company") {
31741
+ const trustOrUnincorporatedPartnership = legalArrangement === "aTrust" || legalArrangement === "partnershipUnincorporated";
31742
+ if (businessType === "legalArrangement" && trustOrUnincorporatedPartnership && trusteeType === "company" || businessType === "company") {
31543
31743
  return LegalEntityType.ORGANIZATION;
31544
31744
  }
31545
- if (businessType === "legalArrangement" && legalArrangement === "aTrust" && trusteeType === "individual" || businessType === "individual" || businessType === "soleProprietorship") {
31745
+ if (businessType === "legalArrangement" && trustOrUnincorporatedPartnership && trusteeType === "individual" || businessType === "individual" || businessType === "soleProprietorship") {
31546
31746
  return LegalEntityType.INDIVIDUAL;
31547
31747
  }
31548
31748
  if (legalArrangement && isLegalArrangementOrganizationSubtype(legalArrangement)) {
@@ -31561,6 +31761,8 @@ const convertApiFieldNameToSchemaFieldName = (apiField, legalEntityType, isExper
31561
31761
  return (isExperimentEnabled == null ? void 0 : isExperimentEnabled("EnableSolePropUsingBusinessDetails")) ? apiField in solePropBusinessDetailsApiKeyMapping ? solePropBusinessDetailsApiKeyMapping[apiField] : void 0 : apiField in solePropApiKeyMapping ? solePropApiKeyMapping[apiField] : void 0;
31562
31762
  case LegalEntityType.TRUST:
31563
31763
  return apiField in trustApiKeyMapping ? trustApiKeyMapping[apiField] : void 0;
31764
+ case LegalEntityType.UNINCORPORATED_PARTNERSHIP:
31765
+ return apiField in unincorporatedPartnershipComponentsKeyMapping ? unincorporatedPartnershipComponentsKeyMapping[apiField] : void 0;
31564
31766
  default:
31565
31767
  throw Error("No valid legal entity type, cannot convert");
31566
31768
  }
@@ -31653,7 +31855,7 @@ function VerifiedBusinessCard({
31653
31855
  const { i18n } = useI18nContext();
31654
31856
  const [expanded, setExpanded] = useState(false);
31655
31857
  const address = (verifiedAddress == null ? void 0 : verifiedAddress.address) && (verifiedAddress == null ? void 0 : verifiedAddress.city) && (verifiedAddress == null ? void 0 : verifiedAddress.stateOrProvince) && (verifiedAddress == null ? void 0 : verifiedAddress.postalCode) ? `${verifiedAddress == null ? void 0 : verifiedAddress.address} ${verifiedAddress.city} ${verifiedAddress.stateOrProvince} ${verifiedAddress.postalCode}` : verifiedBusiness == null ? void 0 : verifiedBusiness.address;
31656
- const addressLink = address ? `https://www.google.com/maps/place/${address.replaceAll(" ", "+")}` : void 0;
31858
+ const addressLink = `https://www.google.com/maps/place/${address == null ? void 0 : address.replaceAll(" ", "+")}`;
31657
31859
  const baseItems = useMemo(
31658
31860
  () => [
31659
31861
  {
@@ -31675,9 +31877,10 @@ function VerifiedBusinessCard({
31675
31877
  },
31676
31878
  {
31677
31879
  term: i18n.get("address"),
31678
- details: /* @__PURE__ */ jsxs("span", { className: "adyen-kyc-verified-business-card__address", children: [
31880
+ details: address && /* @__PURE__ */ jsxs(Fragment, { children: [
31679
31881
  address,
31680
- addressLink && /* @__PURE__ */ jsx(Link, { external: true, href: addressLink, iconPosition: "right", children: i18n.get("showOnMap") })
31882
+ /* @__PURE__ */ jsx("br", {}),
31883
+ /* @__PURE__ */ jsx(Link, { href: addressLink, external: true, children: i18n.get("showOnMap") })
31681
31884
  ] })
31682
31885
  }
31683
31886
  ].filter((item) => !!item.details),
@@ -39884,16 +40087,16 @@ const saveBlobAsFile = (fileData, filename) => {
39884
40087
  window.navigator.msSaveBlob(fileData, filename);
39885
40088
  } else {
39886
40089
  const blobUrl = window.URL.createObjectURL(fileData);
39887
- const link = document.createElement("a");
39888
- link.style.display = "none";
39889
- link.href = blobUrl;
39890
- link.setAttribute("download", filename);
39891
- if (typeof link.download === "undefined") {
39892
- link.setAttribute("target", "_blank");
39893
- }
39894
- document.body.appendChild(link);
39895
- link.click();
39896
- document.body.removeChild(link);
40090
+ const link2 = document.createElement("a");
40091
+ link2.style.display = "none";
40092
+ link2.href = blobUrl;
40093
+ link2.setAttribute("download", filename);
40094
+ if (typeof link2.download === "undefined") {
40095
+ link2.setAttribute("target", "_blank");
40096
+ }
40097
+ document.body.appendChild(link2);
40098
+ link2.click();
40099
+ document.body.removeChild(link2);
39897
40100
  window.URL.revokeObjectURL(blobUrl);
39898
40101
  }
39899
40102
  };
@@ -42381,7 +42584,7 @@ function useAssociatedLegalArrangement({
42381
42584
  const refreshAssociatedLegalArrangement = useCallback(() => {
42382
42585
  var _a2;
42383
42586
  const foundEntity = (_a2 = rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations) == null ? void 0 : _a2.find(
42384
- (entity) => entity.type === LegalEntityType.SOLE_PROPRIETORSHIP || entity.type === LegalEntityType.TRUST
42587
+ (entity) => entity.type === LegalEntityType.SOLE_PROPRIETORSHIP || entity.type === LegalEntityType.TRUST || entity.type === LegalEntityType.UNINCORPORATED_PARTNERSHIP
42385
42588
  );
42386
42589
  if (foundEntity == null ? void 0 : foundEntity.legalEntityId) {
42387
42590
  getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$q.error);
@@ -43388,9 +43591,10 @@ const BusinessTypeSelection = ({
43388
43591
  onBack,
43389
43592
  handleUpdateLegalEntity
43390
43593
  }) => {
43391
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2;
43594
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n;
43392
43595
  const { i18n } = useI18nContext();
43393
43596
  const { showToast } = useToastContext();
43597
+ const { isExperimentEnabled } = useExperimentsContext();
43394
43598
  const [loadingStatus, setLoadingStatus] = useState();
43395
43599
  const [currentStep, setCurrentStep] = useState(
43396
43600
  0
@@ -43436,23 +43640,24 @@ const BusinessTypeSelection = ({
43436
43640
  });
43437
43641
  const newAccountHolder = ((_c2 = data.businessType) == null ? void 0 : _c2.accountHolder) || ((_d2 = data.legalArrangement) == null ? void 0 : _d2.accountHolder);
43438
43642
  const targetLegalArrangement = (_e2 = data.legalArrangement) == null ? void 0 : _e2.id;
43643
+ const trustOrUnincorporatedPartnership = ((_f2 = data.legalArrangement) == null ? void 0 : _f2.id) === "aTrust" || ((_g2 = data.legalArrangement) == null ? void 0 : _g2.id) === "partnershipUnincorporated";
43439
43644
  const targetLegalEntityType = getTargetLegalEntityType(
43440
- (_f2 = data.businessType) == null ? void 0 : _f2.id,
43441
- (_g2 = data.legalArrangement) == null ? void 0 : _g2.id,
43442
- (_h2 = data.trusteeType) == null ? void 0 : _h2.id,
43645
+ (_h2 = data.businessType) == null ? void 0 : _h2.id,
43646
+ (_i2 = data.legalArrangement) == null ? void 0 : _i2.id,
43647
+ (_j2 = data.trusteeType) == null ? void 0 : _j2.id,
43443
43648
  legalEntityResponse == null ? void 0 : legalEntityResponse.type
43444
43649
  );
43445
43650
  const isLegalEntityTypeChanging = currentLegalEntityType !== targetLegalEntityType;
43446
43651
  const isLegalArrangementChanging = currentCompanyTypesValue !== targetLegalArrangement;
43447
43652
  useEffect(() => {
43448
- var _a3, _b3;
43653
+ var _a3;
43449
43654
  setFormSchema(
43450
43655
  getFormSchema(
43451
43656
  ((_a3 = data.businessType) == null ? void 0 : _a3.id) === "legalArrangement" && !!data.legalArrangement || currentStep === 1,
43452
- ((_b3 = data.legalArrangement) == null ? void 0 : _b3.id) === "aTrust"
43657
+ trustOrUnincorporatedPartnership
43453
43658
  )
43454
43659
  );
43455
- }, [data.businessType, data.legalArrangement, currentStep]);
43660
+ }, [data.businessType, data.legalArrangement, currentStep, trustOrUnincorporatedPartnership]);
43456
43661
  useEffect(() => {
43457
43662
  userEvents.addTaskEvent("Landed on page", {
43458
43663
  actionType: "start"
@@ -43474,7 +43679,7 @@ const BusinessTypeSelection = ({
43474
43679
  );
43475
43680
  return;
43476
43681
  }
43477
- if (targetLegalArrangement === "partnershipUnincorporated") {
43682
+ if (targetLegalArrangement === "partnershipUnincorporated" && !isExperimentEnabled(ExperimentNames.EnableUnincorporatedPartnershipInHO)) {
43478
43683
  setCurrentStep(
43479
43684
  2
43480
43685
  /* WE_CANNOT_SET_UP_ACCOUNT */
@@ -43575,7 +43780,7 @@ const BusinessTypeSelection = ({
43575
43780
  {
43576
43781
  name: "businessType",
43577
43782
  useLabelElement: false,
43578
- errorMessage: (_i2 = errors.businessType) == null ? void 0 : _i2.errorMessage,
43783
+ errorMessage: (_k2 = errors.businessType) == null ? void 0 : _k2.errorMessage,
43579
43784
  showErrorIconBottom: true,
43580
43785
  isValid: valid.businessType,
43581
43786
  children: (childProps) => {
@@ -43604,7 +43809,7 @@ const BusinessTypeSelection = ({
43604
43809
  {
43605
43810
  name: "legalArrangement",
43606
43811
  useLabelElement: false,
43607
- errorMessage: (_j2 = errors.legalArrangement) == null ? void 0 : _j2.errorMessage,
43812
+ errorMessage: (_l2 = errors.legalArrangement) == null ? void 0 : _l2.errorMessage,
43608
43813
  showErrorIconBottom: true,
43609
43814
  isValid: valid.legalArrangement,
43610
43815
  children: (childProps) => {
@@ -43626,14 +43831,16 @@ const BusinessTypeSelection = ({
43626
43831
  }
43627
43832
  }
43628
43833
  ),
43629
- ((_k2 = data.legalArrangement) == null ? void 0 : _k2.id) === "aTrust" && /* @__PURE__ */ jsx(
43834
+ trustOrUnincorporatedPartnership && /* @__PURE__ */ jsx(
43630
43835
  Field,
43631
43836
  {
43632
43837
  name: "trusteeType",
43633
- label: i18n.get("whatTypeOfTrusteeAreYou"),
43838
+ label: i18n.get(
43839
+ ((_m = data.legalArrangement) == null ? void 0 : _m.id) === "aTrust" ? "whatTypeOfTrusteeAreYou" : "whatTypeOfOPartnershipAreYou"
43840
+ ),
43634
43841
  className: "adyen-kyc-u-margin-top-32",
43635
43842
  useLabelElement: false,
43636
- errorMessage: (_l2 = errors.trusteeType) == null ? void 0 : _l2.errorMessage,
43843
+ errorMessage: (_n = errors.trusteeType) == null ? void 0 : _n.errorMessage,
43637
43844
  showErrorIconBottom: true,
43638
43845
  isValid: valid.trusteeType,
43639
43846
  children: (childProps) => {
@@ -44093,6 +44300,11 @@ const businessTypeMapping = {
44093
44300
  [LegalEntityType.INDIVIDUAL]: "individualTrustee",
44094
44301
  [LegalEntityType.ORGANIZATION]: "companyTrustee"
44095
44302
  /* COMPANY_TRUSTEE */
44303
+ },
44304
+ anUnincorporatedPartnership: {
44305
+ [LegalEntityType.INDIVIDUAL]: "partnershipUnincorporated",
44306
+ [LegalEntityType.ORGANIZATION]: "partnershipUnincorporated"
44307
+ /* UNINCORPORATED_PARTNERSHIP */
44096
44308
  }
44097
44309
  };
44098
44310
  const companyTypesMapping = {
@@ -44143,7 +44355,6 @@ function useDataMissingRemediations({
44143
44355
  };
44144
44356
  }
44145
44357
  const useSofStatus = (legalEntityResponse) => {
44146
- const [sofStatus, setSofStatus] = useState(TaskStatus.PROCESSING);
44147
44358
  const { data: businessLinesData } = useBusinessLines();
44148
44359
  const sofErrors = useMemo(() => {
44149
44360
  const sofError = { hasMissingDataError: false, hasInvalidInputError: false };
@@ -44188,24 +44399,28 @@ const useSofStatus = (legalEntityResponse) => {
44188
44399
  }
44189
44400
  return (banking == null ? void 0 : banking.allowed) || (issueBankAccount == null ? void 0 : issueBankAccount.allowed) || false;
44190
44401
  }, [legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities]);
44191
- useEffect(() => {
44192
- const hasAllSourceOfFundsCompleted = filteredBusinessLines == null ? void 0 : filteredBusinessLines.some(
44402
+ const sofStatus = useMemo(() => {
44403
+ const allBusinessLinesHaveSourceOfFunds = filteredBusinessLines == null ? void 0 : filteredBusinessLines.every(
44193
44404
  (businessLine) => !isEmpty$2(businessLine.sourceOfFunds)
44194
44405
  );
44195
- if (sofErrors == null ? void 0 : sofErrors.hasInvalidInputError) {
44196
- setSofStatus(TaskStatus.ERROR);
44197
- } else if (!hasAllSourceOfFundsCompleted || (sofErrors == null ? void 0 : sofErrors.hasMissingDataError)) {
44198
- setSofStatus(TaskStatus.EMPTY);
44199
- } else if (hasAllSofCapabilitiesApproved) {
44200
- setSofStatus(TaskStatus.FINISHED);
44201
- } else {
44202
- setSofStatus(TaskStatus.PROCESSING);
44406
+ const hasMissingRequiredData = !legalEntityResponse || !allBusinessLinesHaveSourceOfFunds || (sofErrors == null ? void 0 : sofErrors.hasMissingDataError);
44407
+ const hasInvalidInput = sofErrors == null ? void 0 : sofErrors.hasInvalidInputError;
44408
+ if (hasMissingRequiredData) {
44409
+ return TaskStatus.EMPTY;
44203
44410
  }
44411
+ if (hasInvalidInput) {
44412
+ return TaskStatus.ERROR;
44413
+ }
44414
+ if (hasAllSofCapabilitiesApproved) {
44415
+ return TaskStatus.FINISHED;
44416
+ }
44417
+ return TaskStatus.PROCESSING;
44204
44418
  }, [
44205
44419
  sofErrors == null ? void 0 : sofErrors.hasInvalidInputError,
44206
44420
  sofErrors == null ? void 0 : sofErrors.hasMissingDataError,
44207
44421
  hasAllSofCapabilitiesApproved,
44208
- filteredBusinessLines
44422
+ filteredBusinessLines,
44423
+ legalEntityResponse
44209
44424
  ]);
44210
44425
  return { sofStatus };
44211
44426
  };
@@ -44535,6 +44750,7 @@ function TaskList({
44535
44750
  const getTaskStatus = useGetTaskStatus();
44536
44751
  const hasTaskOfGroupAccountDetails = tasks.some((task) => LEGAL_ENTITY_BASE_TASKS.includes(task));
44537
44752
  const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
44753
+ const hasUnincorporatedPartnership = accountHolder === "anUnincorporatedPartnership" || isPartOfUnincorporatedPartnership(legalEntityResponse);
44538
44754
  const hasContractTasks = tasks.some((task) => CONTRACT_TASKS.includes(task));
44539
44755
  const isCompany = tasks.some((task) => task === TaskTypes.COMPANY);
44540
44756
  const companyTaskType = useMemo(() => {
@@ -44739,6 +44955,19 @@ function TaskList({
44739
44955
  }
44740
44956
  )
44741
44957
  ] }),
44958
+ hasUnincorporatedPartnership && /* @__PURE__ */ jsx(TaskListGroup, { title: i18n.get("partnershipsUnincorporated"), children: /* @__PURE__ */ jsx(
44959
+ TaskListItem,
44960
+ {
44961
+ onNavigateToTask: () => onNavigateToTask(TaskTypes.UNINCORPORATED_PARTNERSHIP),
44962
+ icon: "trust",
44963
+ titleKey: "unincorporatedDetails",
44964
+ status: getTaskStatus(TaskTypes.UNINCORPORATED_PARTNERSHIP),
44965
+ problems: getOwnUnincorporatedPartnershipProblems(
44966
+ legalEntityResponse,
44967
+ capabilityProblems
44968
+ )
44969
+ }
44970
+ ) }),
44742
44971
  tasks.includes(TaskTypes.SOURCE_OF_FUNDS) && /* @__PURE__ */ jsx(TaskListGroup, { title: i18n.get("financialProductInformation"), children: /* @__PURE__ */ jsx(
44743
44972
  TaskListItem,
44744
44973
  {
@@ -45256,15 +45485,7 @@ function HighExposureBusinessInformation({
45256
45485
  helper: /* @__PURE__ */ jsxs("div", { children: [
45257
45486
  /* @__PURE__ */ jsx("span", { children: i18n.get("anLEIIsAUniqueCode") }),
45258
45487
  " ",
45259
- /* @__PURE__ */ jsx(
45260
- Link,
45261
- {
45262
- href: "https://search.gleif.org/#/search/",
45263
- external: true,
45264
- className: ["adyen-kyc__high-exposure-link"],
45265
- children: i18n.get("lookUpYourLEI")
45266
- }
45267
- )
45488
+ /* @__PURE__ */ jsx(Link, { href: "https://search.gleif.org/#/search/", external: true, inline: true, children: i18n.get("lookUpYourLEI") })
45268
45489
  ] }),
45269
45490
  errorMessage: formUtils.getErrorMessage("doesYourCompanyHaveLEI", errors, fieldProblems),
45270
45491
  children: (childProps) => /* @__PURE__ */ jsx(
@@ -45328,19 +45549,23 @@ function HighExposureFinancialInformation({
45328
45549
  fieldProblems,
45329
45550
  handleChangeFor,
45330
45551
  country,
45331
- sectionHeading
45552
+ sectionHeading,
45553
+ setValidCurrency
45332
45554
  }) {
45333
45555
  var _a2;
45334
45556
  const { i18n } = useI18nContext();
45335
45557
  const financialData = data;
45336
45558
  const financialErrors = errors;
45337
45559
  const isFinancialDataValid = valid;
45338
- const currenciesForCurrCountry = currencyByCountry[country] ?? [];
45560
+ const currenciesForCurrCountry = useMemo(() => currencyByCountry[country] ?? [], [country]);
45339
45561
  const [firstCurrency] = currenciesForCurrCountry;
45340
45562
  const defaultCurrency = firstCurrency ?? "EUR";
45341
- if ((currenciesForCurrCountry == null ? void 0 : currenciesForCurrCountry.length) === 1) {
45342
- financialData.currency = firstCurrency;
45343
- }
45563
+ useEffect(() => {
45564
+ if ((currenciesForCurrCountry == null ? void 0 : currenciesForCurrCountry.length) === 1) {
45565
+ financialData.currency = firstCurrency;
45566
+ setValidCurrency("currency", true);
45567
+ }
45568
+ }, [currenciesForCurrCountry, firstCurrency, setValidCurrency, financialData]);
45344
45569
  return /* @__PURE__ */ jsxs("section", { children: [
45345
45570
  /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: i18n.get(sectionHeading || "financialInformation") }),
45346
45571
  /* @__PURE__ */ jsx(
@@ -45608,7 +45833,7 @@ function AdditionalFieldsForHighExposureCompany(props) {
45608
45833
  (currentData) => getCompanySchemaKeys(country, currentData, companySchemaKeys),
45609
45834
  []
45610
45835
  );
45611
- const { handleChangeFor, data, schema, valid, errors, fieldProblems } = useForm({
45836
+ const { handleChangeFor, data, schema, valid, errors, fieldProblems, setValid } = useForm({
45612
45837
  ...props,
45613
45838
  schema: getFormSchema2,
45614
45839
  defaultData: highExposureCompanyDetailsData,
@@ -45678,7 +45903,8 @@ function AdditionalFieldsForHighExposureCompany(props) {
45678
45903
  country,
45679
45904
  formUtils,
45680
45905
  fieldProblems,
45681
- targetPage: HighExposurePagesEnums.COMPANY_PAGE
45906
+ targetPage: HighExposurePagesEnums.COMPANY_PAGE,
45907
+ setValidCurrency: setValid
45682
45908
  }
45683
45909
  ),
45684
45910
  /* @__PURE__ */ jsx(
@@ -45943,7 +46169,8 @@ function AdditionalFieldsForHighExposureParentCompany(props) {
45943
46169
  country,
45944
46170
  formUtils,
45945
46171
  fieldProblems,
45946
- targetPage: HighExposurePagesEnums.PARENT_COMPANY_PAGE
46172
+ targetPage: HighExposurePagesEnums.PARENT_COMPANY_PAGE,
46173
+ setValidCurrency: setValid
45947
46174
  }
45948
46175
  ),
45949
46176
  /* @__PURE__ */ jsx(
@@ -45978,7 +46205,7 @@ function AdditionalFieldsForHighExposureUltimateParentCompany(props) {
45978
46205
  (currentData) => getParentCompanySchemaKeys(currentData, parentCompaniesSchemaKeys),
45979
46206
  []
45980
46207
  );
45981
- const { handleChangeFor, data, valid, errors, fieldProblems, schema } = useForm({
46208
+ const { handleChangeFor, data, valid, errors, fieldProblems, schema, setValid } = useForm({
45982
46209
  ...props,
45983
46210
  schema: getFormSchema2,
45984
46211
  defaultData: { ...additionalFieldsForHighExposureUltimateParentCompanyData },
@@ -46072,7 +46299,8 @@ function AdditionalFieldsForHighExposureUltimateParentCompany(props) {
46072
46299
  country,
46073
46300
  formUtils,
46074
46301
  fieldProblems,
46075
- targetPage: HighExposurePagesEnums.ULTIMATE_PARENT_COMPANY_PAGE
46302
+ targetPage: HighExposurePagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
46303
+ setValidCurrency: setValid
46076
46304
  }
46077
46305
  ),
46078
46306
  /* @__PURE__ */ jsx(
@@ -46461,8 +46689,7 @@ function HighExposureDropin(props) {
46461
46689
  id: companyFormId,
46462
46690
  country,
46463
46691
  handleFindAddress: getAddress2,
46464
- handleAddressSearch: searchAddress2,
46465
- shouldValidate
46692
+ handleAddressSearch: searchAddress2
46466
46693
  }
46467
46694
  ) }),
46468
46695
  /* @__PURE__ */ jsx("div", { className: formWrapperClasses(activeForm2, ultimateParentCompanyFormId), children: /* @__PURE__ */ jsx(
@@ -46475,8 +46702,7 @@ function HighExposureDropin(props) {
46475
46702
  id: companyFormId,
46476
46703
  country,
46477
46704
  handleFindAddress: getAddress2,
46478
- handleAddressSearch: searchAddress2,
46479
- shouldValidate
46705
+ handleAddressSearch: searchAddress2
46480
46706
  }
46481
46707
  ) })
46482
46708
  ] });
@@ -47634,11 +47860,11 @@ const IdVerificationDisclaimer = () => {
47634
47860
  return /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "tertiary", className: styles$8.verificationDisclaimer, children: [
47635
47861
  i18n.get("ifYouChooseToUseOnfido"),
47636
47862
  " ",
47637
- /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, children: i18n.get("onfidoPrivacyPolicy") }),
47863
+ /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: i18n.get("onfidoPrivacyPolicy") }),
47638
47864
  " ",
47639
47865
  i18n.get("and"),
47640
47866
  " ",
47641
- /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, children: i18n.get("onfidoTermsOfService") })
47867
+ /* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, inline: true, children: i18n.get("onfidoTermsOfService") })
47642
47868
  ] });
47643
47869
  };
47644
47870
  const verificationHeader = "adyen-kyc-verification-header";
@@ -47665,7 +47891,7 @@ const IdVerificationHeader = () => {
47665
47891
  /* @__PURE__ */ jsxs(Typography, { variant: "body", color: "primary", className: styles$7.verificationHeaderContent, children: [
47666
47892
  i18n.get("takeOrUploadAPhoto"),
47667
47893
  " ",
47668
- /* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, children: i18n.get("onfido") })
47894
+ /* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: i18n.get("onfido") })
47669
47895
  ] })
47670
47896
  ] });
47671
47897
  };
@@ -47831,18 +48057,17 @@ const UploadedDocument = ({ document: document2, onDelete, onUpdate }) => {
47831
48057
  }
47832
48058
  }) })
47833
48059
  ] }),
47834
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-display-flex", children: [
47835
- /* @__PURE__ */ jsx(
47836
- IconButton,
47837
- {
47838
- onClick: onDelete,
47839
- icon: "bin",
47840
- variant: "secondary",
47841
- ariaLabel: i18n.get("delete")
47842
- }
47843
- ),
47844
- /* @__PURE__ */ jsx(Button, { onClick: onUpdate, variant: "secondary", children: i18n.get("update") })
47845
- ] })
48060
+ /* @__PURE__ */ jsx(Spacer, {}),
48061
+ /* @__PURE__ */ jsx(
48062
+ IconButton,
48063
+ {
48064
+ onClick: onDelete,
48065
+ icon: "bin",
48066
+ variant: "secondary",
48067
+ ariaLabel: i18n.get("delete")
48068
+ }
48069
+ ),
48070
+ /* @__PURE__ */ jsx(Button, { onClick: onUpdate, variant: "secondary", children: i18n.get("update") })
47846
48071
  ] });
47847
48072
  };
47848
48073
  const logger$h = createLogger("IdVerificationMethod");
@@ -47885,6 +48110,7 @@ function IdVerificationMethod({ legalEntityId, handlers }) {
47885
48110
  residencyCountry: (_e2 = data.additionalPersonalDetails) == null ? void 0 : _e2.country
47886
48111
  };
47887
48112
  const launchOnfido = () => {
48113
+ clearError();
47888
48114
  setStatus("onfidoModal");
47889
48115
  handleFieldChange("idVerificationMethod")("instantVerification");
47890
48116
  };
@@ -47934,6 +48160,7 @@ function IdVerificationMethod({ legalEntityId, handlers }) {
47934
48160
  }
47935
48161
  };
47936
48162
  const handleUpdateDocument = () => {
48163
+ launchOnfido();
47937
48164
  handlers.handleUpdateDocument();
47938
48165
  };
47939
48166
  const datasetUtils = datasetUtilities(i18n.locale);
@@ -47944,7 +48171,7 @@ function IdVerificationMethod({ legalEntityId, handlers }) {
47944
48171
  UploadedDocument,
47945
48172
  {
47946
48173
  document: existingDocument,
47947
- onDelete: () => setStatus("ready"),
48174
+ onDelete: () => setStatus("confirmDeleteDocumentModal"),
47948
48175
  onUpdate: handleUpdateDocument
47949
48176
  }
47950
48177
  ) : /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -48218,7 +48445,8 @@ function IndividualOnfidoDropin({
48218
48445
  handleBackClick: externalBackClick,
48219
48446
  trustedFields,
48220
48447
  trustedFieldsProvider,
48221
- trustedRoles
48448
+ trustedRoles,
48449
+ isInstantVerificationEnabled = true
48222
48450
  }) {
48223
48451
  var _a2, _b2, _c2, _d2;
48224
48452
  const { accountHolder, setAccountHolder, idVerificationProviderId } = useCoreContext();
@@ -48403,8 +48631,9 @@ function IndividualOnfidoDropin({
48403
48631
  derivedProps == null ? void 0 : derivedProps.requiredFields,
48404
48632
  derivedProps == null ? void 0 : derivedProps.optionalFields
48405
48633
  );
48406
- return addValidityToForms(requiredForms, form.isValid, problems);
48407
- }, [derivedProps, form.isValid, problems]);
48634
+ const filteredForms = !isInstantVerificationEnabled ? requiredForms.filter((f) => f.formId !== "idVerificationMethod") : requiredForms;
48635
+ return addValidityToForms(filteredForms, form.isValid, problems);
48636
+ }, [derivedProps, form.isValid, isInstantVerificationEnabled, problems]);
48408
48637
  const handleInstantIdVerificationStartCheck = async (onfidoResponse, legalEntityId) => {
48409
48638
  const data2 = {
48410
48639
  // providerId is not required in HO as this is already present in the startCheck endpoint
@@ -50252,9 +50481,10 @@ function TrustDropin({
50252
50481
  const { showToast } = useToastContext();
50253
50482
  const [loadingStatus, setLoadingStatus] = useState("success");
50254
50483
  const formRef = useRef(null);
50484
+ const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
50255
50485
  const trustData = useMemo(
50256
- () => mapLegalEntityToTrust(legalEntityResponse, isExperimentEnabled),
50257
- [isExperimentEnabled, legalEntityResponse]
50486
+ () => isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(legalEntityResponse, isExperimentEnabled) : mapLegalEntityToTrust(legalEntityResponse, isExperimentEnabled),
50487
+ [isExperimentEnabled, legalEntityResponse, isUnincorporatedPartnership]
50258
50488
  );
50259
50489
  const currentCountry = useMemo(
50260
50490
  () => {
@@ -50339,7 +50569,7 @@ function TrustDropin({
50339
50569
  );
50340
50570
  return addValidityToForms(requiredForms, formValidity, problems);
50341
50571
  }, [derivedProps, formValidity, problems]);
50342
- const onSubmit = async () => {
50572
+ const onSubmitTrust = async () => {
50343
50573
  setLoadingStatus("loading");
50344
50574
  const trustDetails = mapTrustToLegalEntity(currentState.data, isExperimentEnabled);
50345
50575
  try {
@@ -50352,7 +50582,42 @@ function TrustDropin({
50352
50582
  } catch (e) {
50353
50583
  showToast({ label: i18n.get("failedToUpdateDetails"), type: "error" });
50354
50584
  if (isValidationError(e)) {
50355
- const validationErrors = processValidationErrors(e, TaskTypes.TRUST);
50585
+ const validationErrors = processValidationErrors(e, taskType);
50586
+ setProblems({ ...problems, validationErrors });
50587
+ } else if (isMaintenanceModeError(e)) {
50588
+ showToast({
50589
+ label: i18n.get("failedToUpdateDetails"),
50590
+ subLabel: i18n.get("maintenanceModeMessage"),
50591
+ type: "error",
50592
+ duration: "indefinite"
50593
+ });
50594
+ }
50595
+ setLoadingStatus("success");
50596
+ }
50597
+ };
50598
+ const onSubmitUnincorporatedPartnership = async () => {
50599
+ setLoadingStatus("loading");
50600
+ const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(
50601
+ currentState.data,
50602
+ isExperimentEnabled
50603
+ );
50604
+ try {
50605
+ const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(
50606
+ unincorporatedPartnershipDetails
50607
+ );
50608
+ await submitDocuments2({
50609
+ forms,
50610
+ legalEntity: updatedUnincorporatedPartnershipDetails,
50611
+ dataSubmitted: currentState.data
50612
+ });
50613
+ await attachTrustToParentLegalEntity(updatedUnincorporatedPartnershipDetails);
50614
+ setLoadingStatus("success");
50615
+ showToast({ label: i18n.get("successfullyUpdatedDetails"), type: "success" });
50616
+ externalOnSubmit == null ? void 0 : externalOnSubmit(currentState.data);
50617
+ } catch (e) {
50618
+ showToast({ label: i18n.get("failedToUpdateDetails"), type: "error" });
50619
+ if (isValidationError(e)) {
50620
+ const validationErrors = processValidationErrors(e, taskType);
50356
50621
  setProblems({ ...problems, validationErrors });
50357
50622
  } else if (isMaintenanceModeError(e)) {
50358
50623
  showToast({
@@ -50400,7 +50665,7 @@ function TrustDropin({
50400
50665
  const updatedParentLegalEntity = {
50401
50666
  entityAssociations: [
50402
50667
  {
50403
- type: LegalEntityType.TRUST,
50668
+ type: trust.type,
50404
50669
  legalEntityId: trust.id
50405
50670
  },
50406
50671
  ...existingEntityAssociations
@@ -50506,12 +50771,12 @@ function TrustDropin({
50506
50771
  problems,
50507
50772
  navigationTrackingParams: associatedLeTrackingParams,
50508
50773
  forms,
50509
- onSubmit
50774
+ onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust
50510
50775
  });
50511
50776
  return /* @__PURE__ */ jsx(
50512
50777
  FormWrapper,
50513
50778
  {
50514
- taskName: "trustDetails",
50779
+ taskName: isUnincorporatedPartnership ? "unincorporatedDetails" : "trustDetails",
50515
50780
  handleNextClick,
50516
50781
  handleBackClick,
50517
50782
  gotoFormByFormIndex,
@@ -50519,7 +50784,7 @@ function TrustDropin({
50519
50784
  forms,
50520
50785
  activeForm,
50521
50786
  navigationTrackingParams: associatedLeTrackingParams,
50522
- onSubmit,
50787
+ onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust,
50523
50788
  hideSidebar,
50524
50789
  handleHomeClick,
50525
50790
  validateForm: () => setShouldValidate(true),
@@ -50544,7 +50809,8 @@ function TrustDropin({
50544
50809
  handleAddressSearch,
50545
50810
  handleFindAddress,
50546
50811
  shouldValidate,
50547
- ref: formRef
50812
+ ref: formRef,
50813
+ taskType
50548
50814
  }
50549
50815
  )
50550
50816
  }
@@ -50590,17 +50856,7 @@ const CompanyTrustMemberTaskItem = ({
50590
50856
  title: /* @__PURE__ */ jsxs(Fragment, { children: [
50591
50857
  i18n.get("helpUsVerifyCompany"),
50592
50858
  " ",
50593
- /* @__PURE__ */ jsx(
50594
- Link,
50595
- {
50596
- onClick: (e) => {
50597
- e.preventDefault();
50598
- onAddOwner();
50599
- },
50600
- href: "to-company-owner",
50601
- children: i18n.get("providePersonalDetailsOfOwner")
50602
- }
50603
- )
50859
+ /* @__PURE__ */ jsx(Button, { onClick: onAddOwner, variant: "link", children: i18n.get("providePersonalDetailsOfOwner") })
50604
50860
  ] }),
50605
50861
  className: "adyen-kyc-u-margin-top-16"
50606
50862
  }
@@ -51199,7 +51455,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
51199
51455
  return hasOwnEntityAssocation || !!hasOrganizationType;
51200
51456
  };
51201
51457
  const Introduction = lazy$1(
51202
- async () => (await import("./Introduction-0R7_nNDp.js")).Introduction
51458
+ async () => (await import("./Introduction-hqVjJq2m.js")).Introduction
51203
51459
  );
51204
51460
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
51205
51461
  const logger$d = createLogger("DropinComposer");
@@ -51210,9 +51466,10 @@ function DropinComposer({
51210
51466
  onChange,
51211
51467
  onLoad = noop$2,
51212
51468
  onNavigate = noop$2,
51469
+ isInstantVerificationEnabled,
51213
51470
  ...args
51214
51471
  }) {
51215
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
51472
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
51216
51473
  const { contextCountry, accountHolder, setAccountHolder } = useCoreContext();
51217
51474
  const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
51218
51475
  const { i18n } = useI18nContext();
@@ -51851,6 +52108,7 @@ function DropinComposer({
51851
52108
  handleFindAddress: args.handleFindAddress,
51852
52109
  handleGetIdVerificationToken: args.handleGetIdVerificationToken,
51853
52110
  handleGetIdVerificationStartCheck: args.handleGetIdVerificationStartCheck,
52111
+ isInstantVerificationEnabled,
51854
52112
  isTargetLegalEntityType: targetLegalEntityType === LegalEntityType.INDIVIDUAL,
51855
52113
  trustedFields: singpassTrustedFields,
51856
52114
  trustedFieldsProvider: isEligibleForSingpass ? TrustedFieldsProvider.SINGPASS : void 0
@@ -52149,6 +52407,24 @@ function DropinComposer({
52149
52407
  country: (_o = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.trust) == null ? void 0 : _o.countryOfGoverningLaw
52150
52408
  }
52151
52409
  );
52410
+ case TaskTypes.UNINCORPORATED_PARTNERSHIP:
52411
+ return /* @__PURE__ */ jsx(
52412
+ TrustDropin,
52413
+ {
52414
+ ...args,
52415
+ taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP,
52416
+ problems: associatedLegalArrangement ? (_p = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _p[associatedLegalArrangement.id] : void 0,
52417
+ parentLegalEntity: rootLegalEntity,
52418
+ legalEntityResponse: associatedLegalArrangement,
52419
+ capabilities,
52420
+ onChange: handleOnChange,
52421
+ onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 1),
52422
+ handleHomeClick: navigateBack,
52423
+ country: (((_q = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.unincorporatedPartnership) == null ? void 0 : _q.countryOfGoverningLaw) || ((_r = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.unincorporatedPartnership) == null ? void 0 : _r.registeredAddress.country)) ?? rootLegalEntityCountry,
52424
+ handleAddressSearch: args.handleAddressSearch,
52425
+ handleFindAddress: args.handleFindAddress
52426
+ }
52427
+ );
52152
52428
  case TaskTypes.PCI_DSS:
52153
52429
  return pciTemplateResponse ? /* @__PURE__ */ jsx(
52154
52430
  PciDropin,
@@ -52173,8 +52449,8 @@ function DropinComposer({
52173
52449
  legalEntityResponse: rootLegalEntity,
52174
52450
  associatedLegalArrangement,
52175
52451
  capabilities,
52176
- problems: associatedLegalArrangement ? (_p = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _p[associatedLegalArrangement.id] : void 0,
52177
- country: (((_q = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _q.countryOfGoverningLaw) || ((_s = (_r = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _r.registeredAddress) == null ? void 0 : _s.country)) ?? rootLegalEntityCountry,
52452
+ problems: associatedLegalArrangement ? (_s = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _s[associatedLegalArrangement.id] : void 0,
52453
+ country: (((_t = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _t.countryOfGoverningLaw) || ((_v = (_u = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _u.registeredAddress) == null ? void 0 : _v.country)) ?? rootLegalEntityCountry,
52178
52454
  onChange: handleOnChange,
52179
52455
  onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 1),
52180
52456
  handleGetDocument: args.handleGetDocument,
@@ -52203,11 +52479,11 @@ function DropinComposer({
52203
52479
  parentLegalEntity: rootLegalEntity,
52204
52480
  legalEntityResponse: associatedLegalArrangement,
52205
52481
  capabilities,
52206
- problems: associatedLegalArrangement ? (_t = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _t[associatedLegalArrangement.id] : void 0,
52482
+ problems: associatedLegalArrangement ? (_w = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _w[associatedLegalArrangement.id] : void 0,
52207
52483
  onChange: handleOnChange,
52208
52484
  onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 1),
52209
52485
  handleHomeClick: navigateBack,
52210
- country: (((_u = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _u.countryOfGoverningLaw) || ((_w = (_v = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _v.registeredAddress) == null ? void 0 : _w.country)) ?? rootLegalEntityCountry,
52486
+ country: (((_x = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _x.countryOfGoverningLaw) || ((_z = (_y = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _y.registeredAddress) == null ? void 0 : _z.country)) ?? rootLegalEntityCountry,
52211
52487
  handleAddressSearch: args.handleAddressSearch,
52212
52488
  handleFindAddress: args.handleFindAddress
52213
52489
  }
@@ -52310,7 +52586,7 @@ function OnboardingDropinComponent({
52310
52586
  legalEntityId,
52311
52587
  openBankingPartnerConfigId
52312
52588
  }) {
52313
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
52589
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2;
52314
52590
  if (!legalEntityId) {
52315
52591
  throw new Error("Must provide at-least legalEntityId");
52316
52592
  }
@@ -52422,7 +52698,8 @@ function OnboardingDropinComponent({
52422
52698
  handleRefreshCompanyDataset: refreshCompanyDataset2,
52423
52699
  handleClearCompanyData: clearCompanyData2,
52424
52700
  handleVerifyTin: verifyTin2,
52425
- handleOpenSingpassAuthorizationLink: openSingpassAuthorizationLink2
52701
+ handleOpenSingpassAuthorizationLink: openSingpassAuthorizationLink2,
52702
+ isInstantVerificationEnabled: (_j2 = (_i2 = providerStatus == null ? void 0 : providerStatus.statuses) == null ? void 0 : _i2.idDocument) == null ? void 0 : _j2.enabled
52426
52703
  }
52427
52704
  );
52428
52705
  }
@@ -52750,7 +53027,6 @@ function ViewVerificationStatusComponent({
52750
53027
  }
52751
53028
  const componentsMap = {
52752
53029
  individualDropin: IndividualDropin,
52753
- individualOnfidoDropin: IndividualOnfidoDropin,
52754
53030
  businessDetailsDropin: BusinessDetailsDropin,
52755
53031
  companyDropin: CompanyDropin,
52756
53032
  taskList: DropinComposer,
@@ -52965,28 +53241,6 @@ const individualDropinSchema = {
52965
53241
  }
52966
53242
  }
52967
53243
  };
52968
- const individualOnfidoDropinSchema = {
52969
- handleUpdateLegalEntity: { type: "function", required: true },
52970
- handleUpdateDocument: { type: "function", required: true },
52971
- handleCreateDocument: { type: "function", required: true },
52972
- handleGetDocument: { type: "function", required: true },
52973
- onChange: { type: "function" },
52974
- onSubmit: { type: "function" },
52975
- readOnly: { type: "boolean" },
52976
- country: { type: "string" },
52977
- capabilities: { type: "array" },
52978
- legalEntityResponse: {
52979
- type: "object",
52980
- required: true,
52981
- propertiesSchema: {
52982
- id: { type: "string", required: true },
52983
- type: { type: "string", exactValue: LegalEntityType.INDIVIDUAL, required: true },
52984
- documentDetails: { type: "array" },
52985
- capabilities: { type: "object", required: true },
52986
- individual: individualPropSchema
52987
- }
52988
- }
52989
- };
52990
53244
  const transferInstrumentSchema = {
52991
53245
  id: { type: "string", required: true },
52992
53246
  legalEntityId: { type: "string", required: true },
@@ -53234,7 +53488,6 @@ const componentsSchemaMap = {
53234
53488
  businessDetailsDropin: businessDetailsDropinSchema,
53235
53489
  companyDropin: companyDropinSchema,
53236
53490
  individualDropin: individualDropinSchema,
53237
- individualOnfidoDropin: individualOnfidoDropinSchema,
53238
53491
  trustDropin: trustDropinSchema,
53239
53492
  taskList: taskListSchema,
53240
53493
  manageTransferInstrumentComponent: manageTransferInstrumentComponentSchema,
@@ -56196,7 +56449,7 @@ var TanstackQueryDevtools = (_k = class {
56196
56449
  if (__privateGet(this, _Component)) {
56197
56450
  Devtools = __privateGet(this, _Component);
56198
56451
  } else {
56199
- Devtools = lazy(() => import("./HO4MOOFI-C-4iCZGg.js"));
56452
+ Devtools = lazy(() => import("./HO4MOOFI-BrouQDMu.js"));
56200
56453
  __privateSet(this, _Component, Devtools);
56201
56454
  }
56202
56455
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -56318,7 +56571,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
56318
56571
  if (__privateGet(this, _Component2)) {
56319
56572
  Devtools = __privateGet(this, _Component2);
56320
56573
  } else {
56321
- Devtools = lazy(() => import("./HUY7CZI3-CxRL5Nlo.js"));
56574
+ Devtools = lazy(() => import("./HUY7CZI3-07pJt4CB.js"));
56322
56575
  __privateSet(this, _Component2, Devtools);
56323
56576
  }
56324
56577
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -56539,7 +56792,7 @@ const useAnalytics = ({
56539
56792
  componentName,
56540
56793
  onboardingVersion
56541
56794
  }) => {
56542
- const sdkVersion = "3.57.3";
56795
+ const sdkVersion = "3.58.0";
56543
56796
  const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
56544
56797
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
56545
56798
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
@@ -57030,7 +57283,7 @@ const ConfigurationApiProvider = ({
57030
57283
  [authContext, rootLegalEntityId]
57031
57284
  );
57032
57285
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
57033
- /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.57.3" }),
57286
+ /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.58.0" }),
57034
57287
  children2
57035
57288
  ] });
57036
57289
  };
@@ -57148,7 +57401,7 @@ const useAllowedLocales = () => {
57148
57401
  }, []);
57149
57402
  return allowedLocales;
57150
57403
  };
57151
- const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-TfrwAHSM.js"), "./locales/cs-CZ.json": () => import("./cs-CZ-ho_ywBEK.js"), "./locales/da-DK.json": () => import("./da-DK-DZJF1FaY.js"), "./locales/de-DE.json": () => import("./de-DE-B25fJNin.js"), "./locales/el-GR.json": () => import("./el-GR-DTb_-Vz_.js"), "./locales/en-US.json": () => Promise.resolve().then(() => enUS), "./locales/es-ES.json": () => import("./es-ES-DZ6sosjP.js"), "./locales/et-EE.json": () => import("./et-EE-C_1JCxAI.js"), "./locales/fi-FI.json": () => import("./fi-FI-CgnqRXRe.js"), "./locales/fr-FR.json": () => import("./fr-FR-D8_u1qip.js"), "./locales/hr-HR.json": () => import("./hr-HR-BwzK2PB9.js"), "./locales/hu-HU.json": () => import("./hu-HU-BnsL9qEe.js"), "./locales/it-IT.json": () => import("./it-IT-BTWOlTci.js"), "./locales/lt-LT.json": () => import("./lt-LT-DNGr3dH0.js"), "./locales/lv-LV.json": () => import("./lv-LV-Cfni8DJ9.js"), "./locales/nl-NL.json": () => import("./nl-NL-Btfceq49.js"), "./locales/no-NO.json": () => import("./no-NO-B7LAbHK6.js"), "./locales/pl-PL.json": () => import("./pl-PL-HJUk22yx.js"), "./locales/pt-PT.json": () => import("./pt-PT-DLnvZGAx.js"), "./locales/ro-RO.json": () => import("./ro-RO-BgPkmrFe.js"), "./locales/sk-SK.json": () => import("./sk-SK-Ca7DYst6.js"), "./locales/sl-SI.json": () => import("./sl-SI-e_4Ag1rs.js"), "./locales/sv-SE.json": () => import("./sv-SE-BCM3E7md.js") });
57404
+ const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-BBRoobbQ.js"), "./locales/cs-CZ.json": () => import("./cs-CZ-ayQus68U.js"), "./locales/da-DK.json": () => import("./da-DK-Ct4SzJso.js"), "./locales/de-DE.json": () => import("./de-DE-DiCx4Je3.js"), "./locales/el-GR.json": () => import("./el-GR-D_xrKRCZ.js"), "./locales/en-US.json": () => Promise.resolve().then(() => enUS), "./locales/es-ES.json": () => import("./es-ES-DRwxjhQR.js"), "./locales/et-EE.json": () => import("./et-EE-Bwi8YTvo.js"), "./locales/fi-FI.json": () => import("./fi-FI-B7mjDfF2.js"), "./locales/fr-FR.json": () => import("./fr-FR-C3tWJfzX.js"), "./locales/hr-HR.json": () => import("./hr-HR-C_zpTrJI.js"), "./locales/hu-HU.json": () => import("./hu-HU-B1oY-zoH.js"), "./locales/it-IT.json": () => import("./it-IT-CgIredlK.js"), "./locales/lt-LT.json": () => import("./lt-LT-Csdyd99M.js"), "./locales/lv-LV.json": () => import("./lv-LV-XA7CIA01.js"), "./locales/nl-NL.json": () => import("./nl-NL-B3Wrg5_z.js"), "./locales/no-NO.json": () => import("./no-NO-BpduYOYo.js"), "./locales/pl-PL.json": () => import("./pl-PL-C3fwVuwv.js"), "./locales/pt-PT.json": () => import("./pt-PT-BCsJrX3M.js"), "./locales/ro-RO.json": () => import("./ro-RO-9UG_ovGp.js"), "./locales/sk-SK.json": () => import("./sk-SK-OgAE6uGt.js"), "./locales/sl-SI.json": () => import("./sl-SI-C79LrLFg.js"), "./locales/sv-SE.json": () => import("./sv-SE-B1PE0QYc.js") });
57152
57405
  const loadLocale = async (locale) => {
57153
57406
  const importForLocale = localeImports[`./locales/${locale}.json`];
57154
57407
  if (!importForLocale) {
@@ -57605,10 +57858,10 @@ const transformModule = (highlights, codeNode, scope) => {
57605
57858
  };
57606
57859
  const supportedModules = ["plaintext", "json", "yaml", "css"];
57607
57860
  const moduleMap = {
57608
- plaintext: () => import("./plaintext-CFLJvf3K.js"),
57609
- json: () => import("./json-Co9P8_KG.js"),
57610
- yaml: () => import("./yaml-D4Ivucgl.js"),
57611
- css: () => import("./css-BwOI_cdD.js")
57861
+ plaintext: () => import("./plaintext-TI6YMNqC.js"),
57862
+ json: () => import("./json-DYilx73m.js"),
57863
+ yaml: () => import("./yaml-D4moATPr.js"),
57864
+ css: () => import("./css-C92d5WcD.js")
57612
57865
  };
57613
57866
  const getModule = async (name) => {
57614
57867
  if (!supportedModules.includes(name)) {
@@ -57899,7 +58152,7 @@ const DebugModal = ({ onExit }) => {
57899
58152
  const [tab, setTab] = useState("metadata");
57900
58153
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
57901
58154
  const metadata = {
57902
- sdkVersion: "3.57.3",
58155
+ sdkVersion: "3.58.0",
57903
58156
  locale: i18n.locale,
57904
58157
  rootLegalEntityId: rootLegalEntity.id
57905
58158
  };