@adyen/kyc-components 4.25.0 → 4.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/dist/{DebugModal-DgbagO5Z.js → DebugModal-8fJx_3AM.js} +2 -2
  2. package/dist/{GlobalEntryModal-CTGSdkW7.js → GlobalEntryModal-De-1eJCW.js} +13 -4
  3. package/dist/{GlobalEntryPage-CdGXV-QZ.js → GlobalEntryPage-D8fuYItP.js} +1 -1
  4. package/dist/{PayoutDetailsPage-NM0Eqf4K.js → PayoutDetailsPage-BOW-brKt.js} +1 -1
  5. package/dist/{RootBusinessDetailsPage-B1a0hu8F.js → RootBusinessDetailsPage-MdKN-iNS.js} +1 -1
  6. package/dist/{SoleProprietorshipPage-BmNs557C.js → SoleProprietorshipPage-_aY8GRDx.js} +1 -1
  7. package/dist/{TrustMemberCompanyPage-tU2HTiDG.js → TrustMemberCompanyPage-6yLYDall.js} +1 -1
  8. package/dist/{UnincorporatedPartnershipMemberCompanyPage-DFOoV0wQ.js → UnincorporatedPartnershipMemberCompanyPage-B-wcypiJ.js} +1 -1
  9. package/dist/adyen-business-financing.js +1 -1
  10. package/dist/adyen-individual-configuration.js +1 -1
  11. package/dist/adyen-individual-status.js +1 -1
  12. package/dist/adyen-invited-decision-maker.js +1 -1
  13. package/dist/adyen-onboarding.js +3 -3
  14. package/dist/adyen-terms-of-service-management.js +1 -1
  15. package/dist/adyen-terms-of-service-status.js +1 -1
  16. package/dist/adyen-transfer-instrument-configuration.js +1 -1
  17. package/dist/adyen-transfer-instrument-management.js +1 -1
  18. package/dist/adyen-verification-status.js +1 -1
  19. package/dist/{resolveEnvironment-CLI-fiSo.js → resolveEnvironment-BjDpWUfh.js} +5 -5
  20. package/dist/{useBusinessDetailsData-dsYTeDom.js → useBusinessDetailsData-BDcLKqSN.js} +8 -2
  21. package/dist/{useNavigate-J0sRAAoI.js → useNavigate-D755WxsU.js} +6 -6
  22. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "eaba86e0-6ccd-4f95-803d-af882236b2dd", e._sentryDebugIdIdentifier = "sentry-dbid-eaba86e0-6ccd-4f95-803d-af882236b2dd");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b5d4c4ff-1f0f-42ac-9fa5-665af3af1c66", e._sentryDebugIdIdentifier = "sentry-dbid-b5d4c4ff-1f0f-42ac-9fa5-665af3af1c66");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-DbATp_35.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
@@ -351,7 +351,7 @@ var DebugModal = ({ onExit }) => {
351
351
  const rootLegalEntity = useGlobalStore().rootLegalEntity.value;
352
352
  const formDebugAvailable = Object.keys(formDebugInfo.value).length > 0;
353
353
  const metadata = {
354
- sdkVersion: "4.25.0",
354
+ sdkVersion: "4.25.1",
355
355
  locale: i18n.language,
356
356
  rootLegalEntityId: rootLegalEntity.id
357
357
  };
@@ -1,6 +1,6 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "bf41665f-feec-466c-af6c-29f386af8a41", e._sentryDebugIdIdentifier = "sentry-dbid-bf41665f-feec-466c-af6c-29f386af8a41");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "39eb7460-ea77-4d92-a88f-11eecc3cba17", e._sentryDebugIdIdentifier = "sentry-dbid-39eb7460-ea77-4d92-a88f-11eecc3cba17");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
@@ -1392,9 +1392,18 @@ var mapGlobalEntrySchemaToLegalEntity = (data, legalEntity, accountHolder, isFea
1392
1392
  ...entityAssociations && { entityAssociations }
1393
1393
  };
1394
1394
  if (entity.organization) {
1395
- if (!(isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && isRegistrationNumberAbsentStateV4Scenario(data.entityInformation.country, data.companyStructure?.organizationType))) delete entity.organization.registrationNumberAbsent;
1396
- else if (data.registrationInformation.exemptedFromRegistrationNumber) entity.organization.registrationNumberAbsent = true;
1397
- else if (data.registrationInformation.registrationNumber) entity.organization.registrationNumberAbsent = false;
1395
+ const canSaveRegistrationNumberAbsentState = isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && isRegistrationNumberAbsentStateV4Scenario(data.entityInformation.country, data.companyStructure?.organizationType);
1396
+ /**
1397
+ * Only include registrationNumberAbsent in request payload when feature is enabled
1398
+ * and for applicable scenarios or if it exists already on the LE.
1399
+ * This allows users who have the property set on their LE to switch to another type
1400
+ * For example: AU governmental org w/ registrationNumberAbsent true -> private company w/ registration number
1401
+ */
1402
+ if (!canSaveRegistrationNumberAbsentState && (legalEntity.organization?.registrationNumberAbsent === void 0 || legalEntity.organization?.registrationNumberAbsent === null)) delete entity.organization.registrationNumberAbsent;
1403
+ if (canSaveRegistrationNumberAbsentState) {
1404
+ if (data.registrationInformation.exemptedFromRegistrationNumber) entity.organization.registrationNumberAbsent = true;
1405
+ else if (data.registrationInformation.registrationNumber) entity.organization.registrationNumberAbsent = false;
1406
+ }
1398
1407
  }
1399
1408
  /** Only an organization holds these, the api has nowhere to put them on the other entity types */
1400
1409
  const localization = isOrg ? mapJapaneseLegalNamesToLocalization(data.registrationInformation ?? {}) : void 0;
@@ -8,7 +8,7 @@ import { t as Button } from "./Button-BxdC8cVB.js";
8
8
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
9
9
  import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
10
10
  import { t as LandingLayout } from "./LandingLayout-BsIoIFzs.js";
11
- import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-CTGSdkW7.js";
11
+ import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-De-1eJCW.js";
12
12
  import { t as Image } from "./Image-Bn_Yyuof.js";
13
13
  import { t as Link } from "./Link-C3dYYTm_.js";
14
14
  import { lazy } from "preact/compat";
@@ -7,7 +7,7 @@ import { t as Loader } from "./Loader-BVtlpTeo.js";
7
7
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
8
8
  import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
9
9
  import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-BY_voJ99.js";
10
- import { t as useNavigate } from "./useNavigate-J0sRAAoI.js";
10
+ import { t as useNavigate } from "./useNavigate-D755WxsU.js";
11
11
  import { t as PayoutDetailsDropin } from "./PayoutDetailsDropin-NyizAaYy.js";
12
12
  import { jsx } from "preact/jsx-runtime";
13
13
  import { useParams } from "wouter-preact";
@@ -9,7 +9,7 @@ import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynami
9
9
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
10
10
  import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-BY_voJ99.js";
11
11
  import { t as filterProblemsByTaskForms } from "./filterProblemsByTaskForms-DaJ3LZ2L.js";
12
- import { n as getForms, r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-dsYTeDom.js";
12
+ import { n as getForms, r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-BDcLKqSN.js";
13
13
  import { jsx } from "preact/jsx-runtime";
14
14
  //#region src/components/Business/pages/RootBusinessDetailsPage.tsx
15
15
  var RootBusinessDetailsPage = ({ onSubmit, handleHomeClick }) => {
@@ -9,7 +9,7 @@ import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js"
9
9
  import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
10
10
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
11
11
  import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-BY_voJ99.js";
12
- import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-dsYTeDom.js";
12
+ import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-BDcLKqSN.js";
13
13
  import { jsx } from "preact/jsx-runtime";
14
14
  import { skipToken } from "@tanstack/preact-query";
15
15
  //#region src/components/Business/pages/SoleProprietorshipPage.tsx
@@ -10,7 +10,7 @@ import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynami
10
10
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
11
11
  import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-BY_voJ99.js";
12
12
  import { t as useTrustMembers } from "./useTrustMembers-uhgi2qfN.js";
13
- import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-dsYTeDom.js";
13
+ import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-BDcLKqSN.js";
14
14
  import { jsx } from "preact/jsx-runtime";
15
15
  import { skipToken } from "@tanstack/preact-query";
16
16
  import { useParams } from "wouter-preact";
@@ -10,7 +10,7 @@ import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynami
10
10
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
11
11
  import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-BY_voJ99.js";
12
12
  import { t as useUnincorporatedPartnershipMembers } from "./useUnincorporatedPartnershipMembers-DVEWj1is.js";
13
- import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-dsYTeDom.js";
13
+ import { r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-BDcLKqSN.js";
14
14
  import { jsx } from "preact/jsx-runtime";
15
15
  import { skipToken } from "@tanstack/preact-query";
16
16
  import { useParams } from "wouter-preact";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c4bb514c-0971-4534-8e00-5bd2689fe88c", e._sentryDebugIdIdentifier = "sentry-dbid-c4bb514c-0971-4534-8e00-5bd2689fe88c");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
- import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-CLI-fiSo.js";
6
+ import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-BjDpWUfh.js";
7
7
  import { t as Loader } from "./Loader-BVtlpTeo.js";
8
8
  import { r as useLegalEntity } from "./useLegalEntity-QQXN6YOm.js";
9
9
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e449d049-73f3-4417-8b4c-53bf8a2a1f13", e._sentryDebugIdIdentifier = "sentry-dbid-e449d049-73f3-4417-8b4c-53bf8a2a1f13");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
- import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-CLI-fiSo.js";
6
+ import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-BjDpWUfh.js";
7
7
  import { t as Loader } from "./Loader-BVtlpTeo.js";
8
8
  import { r as useLegalEntity } from "./useLegalEntity-QQXN6YOm.js";
9
9
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c8c9f4a5-2a39-40e5-94ff-2748036d3f63", e._sentryDebugIdIdentifier = "sentry-dbid-c8c9f4a5-2a39-40e5-94ff-2748036d3f63");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
- import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-CLI-fiSo.js";
6
+ import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-BjDpWUfh.js";
7
7
  import { s as useApiContext } from "./http-DsJtugN1.js";
8
8
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
9
9
  import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
@@ -2,7 +2,7 @@ try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "729d62d4-46f0-4621-9cfc-3c262f5216ec", e._sentryDebugIdIdentifier = "sentry-dbid-729d62d4-46f0-4621-9cfc-3c262f5216ec");
4
4
  } catch (e) {}
5
- import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-CLI-fiSo.js";
5
+ import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-BjDpWUfh.js";
6
6
  import { t as InvitedDecisionMakerComponent } from "./InvitedDecisionMakerComponent-hdQc0T7D.js";
7
7
  import register from "preact-custom-element";
8
8
  import { jsx } from "preact/jsx-runtime";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ea7a5ccb-7585-4d92-9605-76a462d6b491", e._sentryDebugIdIdentifier = "sentry-dbid-ea7a5ccb-7585-4d92-9605-76a462d6b491");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
- import { i as stylesheets, n as EmbedShell, r as useToggles, t as resolveEnvironment } from "./resolveEnvironment-CLI-fiSo.js";
6
+ import { i as stylesheets, n as EmbedShell, r as useToggles, t as resolveEnvironment } from "./resolveEnvironment-BjDpWUfh.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Icon } from "./Icon-DFQgr7dy.js";
9
9
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
@@ -52,13 +52,13 @@ import { t as downloadFile } from "./file-1IenVoh8.js";
52
52
  import { t as filterProblemsByTaskForms } from "./filterProblemsByTaskForms-DaJ3LZ2L.js";
53
53
  import { t as useDeleteTransferInstrument } from "./useDeleteTransferInstrument-C10xzHiO.js";
54
54
  import { t as TaskListItem } from "./TaskListItem-ChlmCIfF.js";
55
- import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-CTGSdkW7.js";
55
+ import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-De-1eJCW.js";
56
56
  import { t as Image } from "./Image-Bn_Yyuof.js";
57
57
  import { r as translateTranslatable } from "./utils-CYUYe54m.js";
58
58
  import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporatedPartnership-BbNowjM2.js";
59
59
  import { t as isNewEntity } from "./isNewEntity-vML86iIM.js";
60
60
  import { a as idNowPostSubmit, n as isBafinSignatoryFlow, s as showIdNowModal } from "./bafinUtils-RXELXyTR.js";
61
- import { A as UnincorporatedPartnershipMemberRoleAndTypePage, C as TrustDetailsPage, D as TrustMembersOverview, E as TrustMemberRoleAndTypePage, M as getDefaultTask, O as UnincorporatedPartnershipIndividualPage, S as TaxReportingDropin, T as TrustMemberIndividualPage, _ as RootIndividualDetailsPage, a as BusinessTypeSelectionPage, b as SoleProprietorshipPage, c as DecisionMakers, d as LegalRepresentativeDetailsPage, f as PayoutDetailsPage, g as RootBusinessLinesPage, h as RootBusinessDetailsPage, i as BusinessFinancingPage, j as UnincorporatedPartnershipMembersOverview, k as UnincorporatedPartnershipMemberCompanyPage, l as GlobalEntryPage, m as Review, n as AcceptTermsOfService, o as CustomerSupport, p as ROUTE_PATHS, r as AccountSetupRejected, s as DecisionMakerDetailsPage, t as useNavigate, u as Introduction, v as SignPCIComponent, w as TrustMemberCompanyPage, x as SourceOfFundsPage, y as SingpassSelection } from "./useNavigate-J0sRAAoI.js";
61
+ import { A as UnincorporatedPartnershipMemberRoleAndTypePage, C as TrustDetailsPage, D as TrustMembersOverview, E as TrustMemberRoleAndTypePage, M as getDefaultTask, O as UnincorporatedPartnershipIndividualPage, S as TaxReportingDropin, T as TrustMemberIndividualPage, _ as RootIndividualDetailsPage, a as BusinessTypeSelectionPage, b as SoleProprietorshipPage, c as DecisionMakers, d as LegalRepresentativeDetailsPage, f as PayoutDetailsPage, g as RootBusinessLinesPage, h as RootBusinessDetailsPage, i as BusinessFinancingPage, j as UnincorporatedPartnershipMembersOverview, k as UnincorporatedPartnershipMemberCompanyPage, l as GlobalEntryPage, m as Review, n as AcceptTermsOfService, o as CustomerSupport, p as ROUTE_PATHS, r as AccountSetupRejected, s as DecisionMakerDetailsPage, t as useNavigate, u as Introduction, v as SignPCIComponent, w as TrustMemberCompanyPage, x as SourceOfFundsPage, y as SingpassSelection } from "./useNavigate-D755WxsU.js";
62
62
  import { t as useTrustMembers } from "./useTrustMembers-uhgi2qfN.js";
63
63
  import register from "preact-custom-element";
64
64
  import { Suspense, lazy } from "preact/compat";
@@ -2,7 +2,7 @@ try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "76188a61-cee8-435e-97b4-bbcd37f1b015", e._sentryDebugIdIdentifier = "sentry-dbid-76188a61-cee8-435e-97b4-bbcd37f1b015");
4
4
  } catch (e) {}
5
- import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-CLI-fiSo.js";
5
+ import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-BjDpWUfh.js";
6
6
  import { t as emitAdyenSdkEvent } from "./emitEvent-CcGIaOut.js";
7
7
  import { t as TermsOfServiceManagement } from "./TermsOfServiceManagement-BM5K4cpw.js";
8
8
  import register from "preact-custom-element";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6e7ed64d-ba1c-4bf1-9694-dcbe81993253", e._sentryDebugIdIdentifier = "sentry-dbid-6e7ed64d-ba1c-4bf1-9694-dcbe81993253");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
- import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-CLI-fiSo.js";
6
+ import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-BjDpWUfh.js";
7
7
  import { s as useApiContext } from "./http-DsJtugN1.js";
8
8
  import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
9
9
  import { n as useTermsOfServiceAcceptanceInfos, t as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-DbJDklA2.js";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "924eebdb-f5e0-4575-893d-a9254accb0dd", e._sentryDebugIdIdentifier = "sentry-dbid-924eebdb-f5e0-4575-893d-a9254accb0dd");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
- import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-CLI-fiSo.js";
6
+ import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-BjDpWUfh.js";
7
7
  import { t as Loader } from "./Loader-BVtlpTeo.js";
8
8
  import { r as useLegalEntity } from "./useLegalEntity-QQXN6YOm.js";
9
9
  import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "66db2553-002d-49b1-b95d-268183963e08", e._sentryDebugIdIdentifier = "sentry-dbid-66db2553-002d-49b1-b95d-268183963e08");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
- import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-CLI-fiSo.js";
6
+ import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-BjDpWUfh.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
9
9
  import { t as Loader } from "./Loader-BVtlpTeo.js";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fb214a55-b971-4dd3-ad1d-70c387e23def", e._sentryDebugIdIdentifier = "sentry-dbid-fb214a55-b971-4dd3-ad1d-70c387e23def");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
- import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-CLI-fiSo.js";
6
+ import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-BjDpWUfh.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Loader } from "./Loader-BVtlpTeo.js";
9
9
  import { t as Button } from "./Button-BxdC8cVB.js";
@@ -1,6 +1,6 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3c0949c0-f6ab-42e9-a49a-d36c8be7906d", e._sentryDebugIdIdentifier = "sentry-dbid-3c0949c0-f6ab-42e9-a49a-d36c8be7906d");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "36c4b794-5de2-4889-a529-670a86431525", e._sentryDebugIdIdentifier = "sentry-dbid-36c4b794-5de2-4889-a529-670a86431525");
4
4
  } catch (e) {}
5
5
  import { a as setDefaults, i as setI18n, n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
@@ -312,7 +312,7 @@ var getAnalyticsAssociatedEntityDetails = (rootLegalEntity, accountHolderType) =
312
312
  //#endregion
313
313
  //#region src/hooks/useAnalytics/useAnalytics.ts
314
314
  var useAnalytics = ({ userEvents, sessionId, sessionData }) => {
315
- const sdkVersion = "4.25.0";
315
+ const sdkVersion = "4.25.1";
316
316
  const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
317
317
  const { mutateAsync } = usePushAnalyticEvent(sessionId ?? "");
318
318
  const { accountHolder } = useAccountHolder();
@@ -408,7 +408,7 @@ var AnalyticsProvider = ({ componentName, children, rootLegalEntityId, locale })
408
408
  const capabilities = rootLegalEntity?.capabilities && Object.keys(rootLegalEntity.capabilities);
409
409
  const shouldTrackPrefilledDetails = capabilities?.includes("receivePayments") && onboardingVersion && onboardingVersion > 1;
410
410
  const sessionData = {
411
- sdkVersion: "4.25.0",
411
+ sdkVersion: "4.25.1",
412
412
  componentName,
413
413
  userAgent: navigator.userAgent,
414
414
  legalEntityId: rootLegalEntityId,
@@ -864,7 +864,7 @@ var AllowedCountryGate = ({ children }) => {
864
864
  };
865
865
  //#endregion
866
866
  //#region src/components/Shared/devex/DebugListener/DebugListener.tsx
867
- var DebugModal = lazy(async () => (await import("./DebugModal-DgbagO5Z.js")).DebugModal);
867
+ var DebugModal = lazy(async () => (await import("./DebugModal-8fJx_3AM.js")).DebugModal);
868
868
  /**
869
869
  * Adds a listener on the page to open the debug modal when the
870
870
  * debug modal key combination is pressed to open it
@@ -965,7 +965,7 @@ var EmbedShell = ({ children, rootLegalEntityId, settings, features, refreshExpe
965
965
  children: [/* @__PURE__ */ jsx(LanguageSwitcher, { locale }), /* @__PURE__ */ jsxs(StoreProvider, { children: [/* @__PURE__ */ jsx("span", {
966
966
  id: "sdk-version",
967
967
  hidden: true,
968
- children: "4.25.0"
968
+ children: "4.25.1"
969
969
  }), /* @__PURE__ */ jsx(AnalyticsProvider, {
970
970
  componentName,
971
971
  locale,
@@ -1,6 +1,6 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "08d8408e-9565-472b-8183-c7703ab2b270", e._sentryDebugIdIdentifier = "sentry-dbid-08d8408e-9565-472b-8183-c7703ab2b270");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c53c5ef2-a7d8-4fc7-8cf1-ff8a3d6690e5", e._sentryDebugIdIdentifier = "sentry-dbid-c53c5ef2-a7d8-4fc7-8cf1-ff8a3d6690e5");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-DbATp_35.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
@@ -2359,7 +2359,13 @@ var mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEnabl
2359
2359
  }
2360
2360
  requestObj.type = isSoleProp ? "soleProprietorship" : "organization";
2361
2361
  if (entityObject?.registeredAddress.country === "US") delete entityObject.registrationNumber;
2362
- if (!canSaveRegNumberAbsentState && !isSoleProp) delete requestObj.organization?.registrationNumberAbsent;
2362
+ /**
2363
+ * Only include registrationNumberAbsent in request payload when feature is enabled
2364
+ * and for applicable scenarios or if it exists already on the LE.
2365
+ * This allows users who have the property set on their LE to switch to another type
2366
+ * For example: AU governmental org w/ registrationNumberAbsent true -> private company w/ registration number
2367
+ */
2368
+ if (!canSaveRegNumberAbsentState && !isSoleProp && (rootLegalEntity?.organization?.registrationNumberAbsent === void 0 || rootLegalEntity?.organization?.registrationNumberAbsent === null)) delete requestObj.organization?.registrationNumberAbsent;
2363
2369
  return requestObj;
2364
2370
  };
2365
2371
  //#endregion
@@ -29,7 +29,7 @@ var hasProgressedBeyondEntitySelection = (legalEntity) => {
29
29
  var Introduction = lazy(async () => (await import("./Introduction-DFW6EaLG.js")).Introduction);
30
30
  var Adaptive = lazy(async () => (await import("./AdaptiveWorkflow-2EE8iiMD.js")).AdaptiveWorkflow);
31
31
  var BusinessTypeSelectionPage = lazy(async () => (await import("./BusinessTypeSelectionPage-DeWD37jR.js")).BusinessTypeSelectionPage);
32
- var GlobalEntryPage = lazy(async () => (await import("./GlobalEntryPage-CdGXV-QZ.js")).GlobalEntryPage);
32
+ var GlobalEntryPage = lazy(async () => (await import("./GlobalEntryPage-D8fuYItP.js")).GlobalEntryPage);
33
33
  var SingpassSelection = lazy(async () => (await import("./SingpassSelection-B6NONcr4.js")).SingpassSelection);
34
34
  var AccountSetupRejected = lazy(async () => (await import("./AccountSetupRejected-BtcxtVKO.js")).AccountSetupRejected);
35
35
  var DecisionMakers = lazy(async () => (await import("./DecisionMakers-qRoXooYA.js")).DecisionMakers);
@@ -38,15 +38,15 @@ var Review = lazy(async () => (await import("./Review-CzgmjDcZ.js")).Review);
38
38
  var SignPCIComponent = lazy(async () => (await import("./SignPCIComponent-CIkdVNH2.js").then((n) => n.n)).SignPCIComponent);
39
39
  var AcceptTermsOfService = lazy(async () => (await import("./TermsOfServiceManagement-BM5K4cpw.js").then((n) => n.n)).TermsOfServiceManagement);
40
40
  var TaxReportingDropin = lazy(async () => (await import("./TaxReportingDropin-Cq3gBWtp.js")).TaxReportingDropin);
41
- var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-NM0Eqf4K.js")).PayoutDetailsPage);
42
- var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-B1a0hu8F.js")).RootBusinessDetailsPage);
41
+ var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-BOW-brKt.js")).PayoutDetailsPage);
42
+ var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-MdKN-iNS.js")).RootBusinessDetailsPage);
43
43
  var RootBusinessLinesPage = lazy(async () => (await import("./RootBusinessLinesPage-Dv1uT7OS.js")).RootBusinessLinesPage);
44
- var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-BmNs557C.js")).SoleProprietorshipPage);
45
- var TrustMemberCompanyPage = lazy(async () => (await import("./TrustMemberCompanyPage-tU2HTiDG.js")).TrustMemberCompanyPage);
44
+ var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-_aY8GRDx.js")).SoleProprietorshipPage);
45
+ var TrustMemberCompanyPage = lazy(async () => (await import("./TrustMemberCompanyPage-6yLYDall.js")).TrustMemberCompanyPage);
46
46
  var TrustMemberIndividualPage = lazy(async () => (await import("./TrustMemberIndividualPage-BLBtnoSq.js")).TrustMemberIndividualPage);
47
47
  var TrustMemberRoleAndTypePage = lazy(async () => (await import("./TrustMemberRoleAndTypePage-DIwrtOWr.js")).TrustMemberRoleAndTypePage);
48
48
  var TrustMembersOverview = lazy(async () => (await import("./TrustMembersOverview-CowTgfIb.js")).TrustMembersOverview);
49
- var UnincorporatedPartnershipMemberCompanyPage = lazy(async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-DFOoV0wQ.js")).UnincorporatedPartnershipMemberCompanyPage);
49
+ var UnincorporatedPartnershipMemberCompanyPage = lazy(async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-B-wcypiJ.js")).UnincorporatedPartnershipMemberCompanyPage);
50
50
  var UnincorporatedPartnershipIndividualPage = lazy(async () => (await import("./UnincorporatedPartnershipIndividualPage-BT0j54-O.js")).UnincorporatedPartnershipIndividualPage);
51
51
  var UnincorporatedPartnershipMemberRoleAndTypePage = lazy(async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-D973uyHj.js")).UnincorporatedPartnershipMemberRoleAndTypePage);
52
52
  var UnincorporatedPartnershipMembersOverview = lazy(async () => (await import("./UnincorporatedPartnershipMembersOverview-5w1BrDMI.js")).UnincorporatedPartnershipMembersOverview);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "4.25.0",
3
+ "version": "4.25.1",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-for-platforms",