@adyen/kyc-components 3.68.1 → 3.68.3

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 (33) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-CU2alc91.js → AcceptTermsOfServiceComponent-B1L_5Mar.js} +4 -12
  2. package/dist/{AccountSetupRejected-CJ-_A3Ny.js → AccountSetupRejected-CDiMcMlV.js} +3 -3
  3. package/dist/{BusinessTypeSelection-8O8S1NJQ.js → BusinessTypeSelection-CTL2ECRs.js} +4 -4
  4. package/dist/{CXEL7IU7-BJwGAGi_.js → CXEL7IU7-DK7Za0QU.js} +3 -3
  5. package/dist/{CreateIndividualComponent-CbKLS3lw.js → CreateIndividualComponent-kCm3i-vM.js} +8 -12
  6. package/dist/{CustomerSupport-DwHNm45d.js → CustomerSupport-DWAm23Us.js} +3 -3
  7. package/dist/{DebugModal-Bl6alyPp.js → DebugModal-kg7TIA4_.js} +8 -8
  8. package/dist/{DecisionMakers-D35kGGBp.js → DecisionMakers-Dng6SsSq.js} +4 -4
  9. package/dist/{EmbedShell-uQMA3IsQ.js → EmbedShell-BRE-er34.js} +3 -3
  10. package/dist/{EventEmitter-BCgWoSHk.js → EventEmitter-D2fpze21.js} +390 -338
  11. package/dist/{HASRA6WW-bymne0OX.js → HASRA6WW-B-L6bY1D.js} +2 -2
  12. package/dist/{I3HPI4QX-BjDbFXav.js → I3HPI4QX-DvG-mupt.js} +3 -3
  13. package/dist/{Introduction-C0NQbS7T.js → Introduction-CXrcsG6u.js} +3 -3
  14. package/dist/{Review-dqxqat30.js → Review-BlhVLQ7e.js} +3 -3
  15. package/dist/{SingpassSelection-Dkxz3a-V.js → SingpassSelection-MI6bnKQ6.js} +2 -2
  16. package/dist/{TaxReportingDropin-E8B4As4p.js → TaxReportingDropin-Biv-eBW1.js} +6 -11
  17. package/dist/adyen-kyc-components.js +1 -1
  18. package/dist/adyenConfig.js +1 -1
  19. package/dist/{core-PYXN6HpB.js → core-CkFz5z0L.js} +33 -61
  20. package/dist/{css-w3W1DNq3.js → css-rbxi2nD5.js} +1 -1
  21. package/dist/individual.js +2 -2
  22. package/dist/{json-BVkPD1GZ.js → json-CjF__AdT.js} +1 -1
  23. package/dist/{listToRecord-CBVflh7a.js → listToRecord-DaA2XP7r.js} +2 -2
  24. package/dist/{plaintext-Bgjkv8j9.js → plaintext-CyQv4kTZ.js} +1 -1
  25. package/dist/terms-of-service.js +2 -2
  26. package/dist/types/api/configurations/useScenarios.d.ts +6 -6
  27. package/dist/types/api/invalidateRootLegalEntity.d.ts +6 -0
  28. package/dist/types/api/queryKeys.d.ts +38 -0
  29. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -0
  30. package/dist/types/components/EmbeddedDropins/SignPCIComponent/SignPCIComponent.d.ts +1 -2
  31. package/dist/types/components/ui/atoms/Radio/Radio.d.ts +3 -1
  32. package/dist/{yaml-Jyq-xpmw.js → yaml-C7Gy0d0h.js} +1 -1
  33. package/package.json +4 -4
@@ -2,14 +2,14 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ce5b835d-a22d-4597-865b-f6c7d76e4cf3", e._sentryDebugIdIdentifier = "sentry-dbid-ce5b835d-a22d-4597-865b-f6c7d76e4cf3");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0f75fe0e-c0c5-423b-9130-3b81efa8de08", e._sentryDebugIdIdentifier = "sentry-dbid-0f75fe0e-c0c5-423b-9130-3b81efa8de08");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useRef, useState, useEffect, useCallback } from "preact/hooks";
12
- import { a as useApiContext, f as useQueryClient, e as useMutation, h as httpPost, b as useQuery, d as httpGet, dU as skipToken, Q as Icon, dV as AlertIcon, c as createLogger, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, n as useExperimentsContext, bi as useForm, U as Alert, G as Button, b7 as localizeDateString, L as LoaderWrapper, b8 as Field, b9 as Select, d0 as Checkbox, cG as ActionBar, c$ as MaybeModal, D as ModalContent, F as ModalFooter, dD as StepProgressIndicator, X as Spacer, J as LegalEntityType, aj as getOwnSignatories, a3 as doesLegalEntityRequiresLegalRepresentative, a2 as getLegalRepresentative, cE as FormNavigation, I as useCoreContext, u as useLegalEntity, K as Loader, T as TaskTypes } from "./EventEmitter-BCgWoSHk.js";
12
+ import { a as useApiContext, R as useInvalidateRootLegalEntity, e as useMutation, h as httpPost, b as useQuery, d as httpGet, dV as skipToken, Q as Icon, dW as AlertIcon, c as createLogger, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, n as useExperimentsContext, bj as useForm, V as Alert, G as Button, b8 as localizeDateString, L as LoaderWrapper, b9 as Field, ba as Select, d1 as Checkbox, cH as ActionBar, d0 as MaybeModal, D as ModalContent, F as ModalFooter, dE as StepProgressIndicator, Y as Spacer, J as LegalEntityType, ak as getOwnSignatories, a4 as doesLegalEntityRequiresLegalRepresentative, a3 as getLegalRepresentative, cF as FormNavigation, I as useCoreContext, u as useLegalEntity, K as Loader, T as TaskTypes } from "./EventEmitter-D2fpze21.js";
13
13
  import cx from "classnames";
14
14
  import { defineSlots } from "named-slots";
15
15
  const acceptTermsOfService = async (legalEntityId, url, termsOfServiceDocumentId, data) => {
@@ -33,19 +33,11 @@ const acceptTermsOfService = async (legalEntityId, url, termsOfServiceDocumentId
33
33
  };
34
34
  const useAcceptTermsOfService = (options) => {
35
35
  const { legalEntityId, baseUrl } = useApiContext();
36
- const queryClient = useQueryClient();
36
+ const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
37
37
  return useMutation({
38
38
  mutationFn: (data) => acceptTermsOfService(legalEntityId.value, baseUrl.value, data.termsOfServiceDocumentId, data),
39
39
  onSuccess: async () => {
40
- queryClient.invalidateQueries({
41
- queryKey: ["legalEntity", legalEntityId.value]
42
- });
43
- queryClient.invalidateQueries({
44
- queryKey: ["termsOfServiceStatus"]
45
- });
46
- queryClient.invalidateQueries({
47
- queryKey: ["termsOfServiceAcceptanceInfos"]
48
- });
40
+ await invalidateRootLegalEntity();
49
41
  },
50
42
  ...options
51
43
  });
@@ -2,14 +2,14 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "93fb8e55-cd0e-40f8-a59e-6287a9b8347b", e._sentryDebugIdIdentifier = "sentry-dbid-93fb8e55-cd0e-40f8-a59e-6287a9b8347b");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "65075b4c-3f18-430d-91fc-0e702156a9c6", e._sentryDebugIdIdentifier = "sentry-dbid-65075b4c-3f18-430d-91fc-0e702156a9c6");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { i as useI18nContext, dV as AlertIcon, bX as FormHeader } from "./EventEmitter-BCgWoSHk.js";
12
- import { D as DropinLayout } from "./core-PYXN6HpB.js";
11
+ import { i as useI18nContext, dW as AlertIcon, bY as FormHeader } from "./EventEmitter-D2fpze21.js";
12
+ import { D as DropinLayout } from "./core-CkFz5z0L.js";
13
13
  function AccountSetupRejected() {
14
14
  const { i18n } = useI18nContext();
15
15
  const content = /* @__PURE__ */ jsxs("div", { children: [
@@ -2,16 +2,16 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a8a4a6f9-9aa0-4c55-b75b-67c1eeb6bf28", e._sentryDebugIdIdentifier = "sentry-dbid-a8a4a6f9-9aa0-4c55-b75b-67c1eeb6bf28");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "254a1d95-391b-48a3-b493-16ec6bddf23d", e._sentryDebugIdIdentifier = "sentry-dbid-254a1d95-391b-48a3-b493-16ec6bddf23d");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useState, useEffect } from "preact/hooks";
12
- import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, n as useExperimentsContext, ao as getCapabilities, q as getLegalEntityCountry, J as LegalEntityType, bi as useForm, L as LoaderWrapper, E as Typography, b8 as Field, d_ as EntityTypeRadioGroupCard, cy as RadioGroupCard, G as Button, X as Spacer, Q as Icon, a6 as hasSolePropInLegalEntity } from "./EventEmitter-BCgWoSHk.js";
13
- import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-CbKLS3lw.js";
14
- import { b as useSelectionOptions, g as getBusinessType, c as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, d as getTargetLegalEntityType, e as businessTypeIcons, f as determineOrganizationTypeToUpdate } from "./core-PYXN6HpB.js";
12
+ import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, n as useExperimentsContext, ap as getCapabilities, q as getLegalEntityCountry, J as LegalEntityType, bj as useForm, L as LoaderWrapper, E as Typography, b9 as Field, d$ as EntityTypeRadioGroupCard, cz as RadioGroupCard, G as Button, Y as Spacer, Q as Icon, a7 as hasSolePropInLegalEntity } from "./EventEmitter-D2fpze21.js";
13
+ import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-kCm3i-vM.js";
14
+ import { b as useSelectionOptions, g as getBusinessType, c as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, d as getTargetLegalEntityType, e as businessTypeIcons, f as determineOrganizationTypeToUpdate } from "./core-CkFz5z0L.js";
15
15
  const businessTypeExamples = /* @__PURE__ */ Object.assign({ "../localized/legalEntityTypeExamples/AT.json": () => import("./AT-EpV7jN58.js"), "../localized/legalEntityTypeExamples/AU.json": () => import("./AU-pBsEvEUy.js"), "../localized/legalEntityTypeExamples/BE.json": () => import("./BE-CU5o9cmc.js"), "../localized/legalEntityTypeExamples/BR.json": () => import("./BR-ORoHRwTk.js"), "../localized/legalEntityTypeExamples/CA.json": () => import("./CA-VXNq-m6m.js"), "../localized/legalEntityTypeExamples/CH.json": () => import("./CH-B_-afpD_.js"), "../localized/legalEntityTypeExamples/CZ.json": () => import("./CZ-CTw_bQIu.js"), "../localized/legalEntityTypeExamples/DE.json": () => import("./DE-D_jIDxOH.js"), "../localized/legalEntityTypeExamples/DK.json": () => import("./DK-dBzrfgpQ.js"), "../localized/legalEntityTypeExamples/ES.json": () => import("./ES-DYbZmFcJ.js"), "../localized/legalEntityTypeExamples/FI.json": () => import("./FI-C9nRvop7.js"), "../localized/legalEntityTypeExamples/FR.json": () => import("./FR-BycGQO4W.js"), "../localized/legalEntityTypeExamples/GB.json": () => import("./GB-DFyzo5sN.js"), "../localized/legalEntityTypeExamples/HK.json": () => import("./HK-WqZ5UBEF.js"), "../localized/legalEntityTypeExamples/HR.json": () => import("./HR-CRa19tH1.js"), "../localized/legalEntityTypeExamples/HU.json": () => import("./HU-D5NCweWf.js"), "../localized/legalEntityTypeExamples/IE.json": () => import("./IE-rhATS57q.js"), "../localized/legalEntityTypeExamples/IT.json": () => import("./IT-wD7dHdYD.js"), "../localized/legalEntityTypeExamples/LT.json": () => import("./LT-0F72uCyI.js"), "../localized/legalEntityTypeExamples/NL.json": () => import("./NL-q2U2l276.js"), "../localized/legalEntityTypeExamples/NO.json": () => import("./NO-CX12Zsf_.js"), "../localized/legalEntityTypeExamples/PL.json": () => import("./PL-CwCXF3Yu.js"), "../localized/legalEntityTypeExamples/PT.json": () => import("./PT-Dei5v1nD.js"), "../localized/legalEntityTypeExamples/RO.json": () => import("./RO-Dxk08mOu.js"), "../localized/legalEntityTypeExamples/SE.json": () => import("./SE-AP3gLiyy.js"), "../localized/legalEntityTypeExamples/SG.json": () => import("./SG-DMcOb17i.js"), "../localized/legalEntityTypeExamples/SI.json": () => import("./SI-BXe-yndm.js"), "../localized/legalEntityTypeExamples/SK.json": () => import("./SK-DwdgoGnD.js"), "../localized/legalEntityTypeExamples/US.json": () => import("./US-DHxLSqeC.js") });
16
16
  const getBusinessTypeExamplesForCountry = async (country) => {
17
17
  const importForCountry = businessTypeExamples[`../localized/legalEntityTypeExamples/${country}.json`];
@@ -2,13 +2,13 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5f4e04d1-838f-42d9-8447-c205377ea3b5", e._sentryDebugIdIdentifier = "sentry-dbid-5f4e04d1-838f-42d9-8447-c205377ea3b5");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9944a3f9-3fec-4cd0-99c6-51639e008b66", e._sentryDebugIdIdentifier = "sentry-dbid-9944a3f9-3fec-4cd0-99c6-51639e008b66");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-bymne0OX.js";
11
- import { e0 as getPreferredColorScheme, e1 as createMemo, e2 as createComponent } from "./EventEmitter-BCgWoSHk.js";
10
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-B-L6bY1D.js";
11
+ import { e1 as getPreferredColorScheme, e2 as createMemo, e3 as createComponent } from "./EventEmitter-D2fpze21.js";
12
12
  var DevtoolsPanelComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"
@@ -2,13 +2,13 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "22bed4db-f337-43bb-a56a-6149a3e0a76c", e._sentryDebugIdIdentifier = "sentry-dbid-22bed4db-f337-43bb-a56a-6149a3e0a76c");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ae8fe5ec-a78a-4f08-a5d5-147596ab6e2a", e._sentryDebugIdIdentifier = "sentry-dbid-ae8fe5ec-a78a-4f08-a5d5-147596ab6e2a");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { a as useApiContext, b as useQuery, d as httpGet, e as useMutation, h as httpPost, f as useQueryClient, dj as FormContext, _ as entriesOf, aB as objectsDeepEqual, c as createLogger, c4 as TrustedFieldsProvider, aK as businessDetailsApiKeyMapping, dk as individualApiKeyMapping, dl as remediationHasFileUploadField, dm as dataMissingRemediationsToFieldsMap, k as keysOf, n as useExperimentsContext, q as getLegalEntityCountry, C as CountryCodes, a5 as isPartOfTrustFromLegalEntity, J as LegalEntityType, a6 as hasSolePropInLegalEntity, dn as individualComponentsKeyMapping, aD as businessDetailsComponentsKeyMapping, j as useAnalyticsContext, cD as summaryStep, dp as ValidationResult, dq as isNotEmptyValidator, H as isEmpty, I as useCoreContext, dr as AdyenKycSdkError, ds as hasText, dt as matchesRegex, du as trimValWithOneSpace, dv as NO_ALPHABET_REGEX, dw as EMOJI_REGEX, dx as hasRepeatedCharacters, dy as isInvalidName, dz as INDIVIDUAL_VALID_CHAR_REGEX, dA as getFormattingRegEx, dB as SPECIAL_CHARS, dC as FormRouterContext, i as useI18nContext, c$ as MaybeModal, D as ModalContent, B as ModalHeader, L as LoaderWrapper, cE as FormNavigation, F as ModalFooter, dD as StepProgressIndicator, G as Button, X as Spacer, cF as Summary, R as httpDelete, bI as getLocalizedIdDocumentTypeOptions, dE as isNewlyUploadedFile, T as TaskTypes, dF as remediationPayoutApiKeyMapping, dG as remediationBusinessDetailsApiKeyMapping, dH as remediationIndividualApiKeyMapping, dI as getNestedPropertyKeys, y as cloneObject, dJ as isValueObscured, bA as isTruthyValidator, dK as emailPattern, aR as resolveFieldMetadata, bB as getSSNType, bC as defaultFieldMetadata, bD as defaultFieldConfig, dL as defaultFieldMetadata$1, dM as fieldConfig, aW as defaultFieldMetadata$2, aY as defaultFieldConfig$1, bE as getAgeToday, bF as euCountries, bG as DecisionMakerType, g as createFormRules, bH as allowedCountriesForNominee, bm as getAddressSchemaForCountry, bn as COUNTRIES_WITH_STATES_DATASET, bJ as Scenarios, b5 as reverseMapping, dN as getNomineeFromAssociation, aC as drop, l as useToastContext, o as useSettingsContext, b1 as getAssociatedLeAnalyticsPayload, bz as addressValidators, cm as getAsyncIdNumberValidationRule, cn as getAsyncPhoneValidationRules, dO as addressFormatters, co as setHasMotionCaptureScenario, dP as individualForms, cc as showIndividualMotionCapture, cp as getAllowedDecisionMakerRoles, cl as useProviderStatus, z as datasetUtilities, dQ as Individual, ao as getCapabilities, aP as filterOutUnwantedAssociationsIfRootLE, aN as mapAddressLabels, dR as individualDocumentForms, b7 as localizeDateString, dS as individualDocumentMapping, dT as individualObscuredFields, a_ as getOwnEntityAssociations, cq as hasNomineesChanged, cr as attachNomineeToRole, a$ as doArraysMatch, u as useLegalEntity, K as Loader } from "./EventEmitter-BCgWoSHk.js";
11
+ import { a as useApiContext, b as useQuery, d as httpGet, e as useMutation, h as httpPost, R as useInvalidateRootLegalEntity, f as useQueryClient, dk as FormContext, $ as entriesOf, aC as objectsDeepEqual, c as createLogger, c5 as TrustedFieldsProvider, aL as businessDetailsApiKeyMapping, dl as individualApiKeyMapping, dm as remediationHasFileUploadField, dn as dataMissingRemediationsToFieldsMap, k as keysOf, n as useExperimentsContext, q as getLegalEntityCountry, C as CountryCodes, a6 as isPartOfTrustFromLegalEntity, J as LegalEntityType, a7 as hasSolePropInLegalEntity, dp as individualComponentsKeyMapping, aE as businessDetailsComponentsKeyMapping, j as useAnalyticsContext, cE as summaryStep, dq as ValidationResult, dr as isNotEmptyValidator, H as isEmpty, I as useCoreContext, ds as AdyenKycSdkError, dt as hasText, du as matchesRegex, dv as trimValWithOneSpace, dw as NO_ALPHABET_REGEX, dx as EMOJI_REGEX, dy as hasRepeatedCharacters, dz as isInvalidName, dA as INDIVIDUAL_VALID_CHAR_REGEX, dB as getFormattingRegEx, dC as SPECIAL_CHARS, dD as FormRouterContext, i as useI18nContext, d0 as MaybeModal, D as ModalContent, B as ModalHeader, L as LoaderWrapper, cF as FormNavigation, F as ModalFooter, dE as StepProgressIndicator, G as Button, Y as Spacer, cG as Summary, U as httpDelete, bJ as getLocalizedIdDocumentTypeOptions, dF as isNewlyUploadedFile, T as TaskTypes, dG as remediationPayoutApiKeyMapping, dH as remediationBusinessDetailsApiKeyMapping, dI as remediationIndividualApiKeyMapping, dJ as getNestedPropertyKeys, y as cloneObject, dK as isValueObscured, bB as isTruthyValidator, dL as emailPattern, aS as resolveFieldMetadata, bC as getSSNType, bD as defaultFieldMetadata, bE as defaultFieldConfig, dM as defaultFieldMetadata$1, dN as fieldConfig, aX as defaultFieldMetadata$2, aZ as defaultFieldConfig$1, bF as getAgeToday, bG as euCountries, bH as DecisionMakerType, g as createFormRules, bI as allowedCountriesForNominee, bn as getAddressSchemaForCountry, bo as COUNTRIES_WITH_STATES_DATASET, bK as Scenarios, b6 as reverseMapping, dO as getNomineeFromAssociation, aD as drop, l as useToastContext, o as useSettingsContext, b2 as getAssociatedLeAnalyticsPayload, bA as addressValidators, cn as getAsyncIdNumberValidationRule, co as getAsyncPhoneValidationRules, dP as addressFormatters, cp as setHasMotionCaptureScenario, dQ as individualForms, cd as showIndividualMotionCapture, cq as getAllowedDecisionMakerRoles, cm as useProviderStatus, z as datasetUtilities, dR as Individual, ap as getCapabilities, aQ as filterOutUnwantedAssociationsIfRootLE, aO as mapAddressLabels, dS as individualDocumentForms, b8 as localizeDateString, dT as individualDocumentMapping, dU as individualObscuredFields, a$ as getOwnEntityAssociations, cr as hasNomineesChanged, cs as attachNomineeToRole, b0 as doArraysMatch, u as useLegalEntity, K as Loader } from "./EventEmitter-D2fpze21.js";
12
12
  import { useCallback, useMemo, useReducer, useState, useEffect } from "preact/hooks";
13
13
  const getScenarios = async (legalEntityId, url, legalEntityType, countryCode) => {
14
14
  const scenarioParams = new URLSearchParams({
@@ -154,19 +154,15 @@ const updateLegalEntity = async (rootLegalEntityId, url, data) => {
154
154
  };
155
155
  const useUpdateLegalEntity = (options) => {
156
156
  const { legalEntityId: rootLegalEntityId, baseUrl } = useApiContext();
157
+ const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
157
158
  const queryClient = useQueryClient();
158
159
  return useMutation({
159
- mutationFn: (payload) => {
160
- return updateLegalEntity(rootLegalEntityId.value, baseUrl.value, payload);
161
- },
160
+ mutationFn: (payload) => updateLegalEntity(rootLegalEntityId.value, baseUrl.value, payload),
162
161
  onSuccess: async (response, payload) => {
163
- queryClient.invalidateQueries({
164
- queryKey: ["legalEntity", payload.id]
165
- });
166
- if (payload.id === rootLegalEntityId.value) {
167
- queryClient.invalidateQueries({
168
- queryKey: ["taskTypes"]
169
- });
162
+ if (response.id === rootLegalEntityId.value) {
163
+ await invalidateRootLegalEntity();
164
+ } else {
165
+ queryClient.setQueryData(["legalEntity", payload.id], response);
170
166
  }
171
167
  },
172
168
  ...options
@@ -2,15 +2,15 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8ff9362b-ec67-43b8-972a-153d429cc36a", e._sentryDebugIdIdentifier = "sentry-dbid-8ff9362b-ec67-43b8-972a-153d429cc36a");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "db5dabdb-2b2e-4d42-bd17-92131deb5268", e._sentryDebugIdIdentifier = "sentry-dbid-db5dabdb-2b2e-4d42-bd17-92131deb5268");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, f as useQueryClient, aR as resolveFieldMetadata, dL as defaultFieldMetadata, dM as fieldConfig, cn as getAsyncPhoneValidationRules, bX as FormHeader, c8 as ContactDetails, cG as ActionBar, c as createLogger } from "./EventEmitter-BCgWoSHk.js";
11
+ import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, f as useQueryClient, aS as resolveFieldMetadata, dM as defaultFieldMetadata, dN as fieldConfig, co as getAsyncPhoneValidationRules, bY as FormHeader, c9 as ContactDetails, cH as ActionBar, c as createLogger } from "./EventEmitter-D2fpze21.js";
12
12
  import { useCallback, useMemo, useEffect } from "preact/hooks";
13
- import { B as useUpdateLegalEntity, H as contactDetailsValidationRules, M as useValidatePhoneNumberImperatively, O as useMultiForm } from "./CreateIndividualComponent-CbKLS3lw.js";
13
+ import { B as useUpdateLegalEntity, H as contactDetailsValidationRules, M as useValidatePhoneNumberImperatively, O as useMultiForm } from "./CreateIndividualComponent-kCm3i-vM.js";
14
14
  const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
15
15
  var _a, _b, _c;
16
16
  return {
@@ -2,15 +2,15 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "de8df38d-0df8-4fa2-888b-97fefcc8f6bb", e._sentryDebugIdIdentifier = "sentry-dbid-de8df38d-0df8-4fa2-888b-97fefcc8f6bb");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "300c16a1-95f6-4885-9e8e-1d29199282a9", e._sentryDebugIdIdentifier = "sentry-dbid-300c16a1-95f6-4885-9e8e-1d29199282a9");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useMemo, useState } from "preact/hooks";
12
- import { G as Button, _ as entriesOf, bc as InputText, i as useI18nContext, dW as splitTaskIdentifier, n as useExperimentsContext, o as useSettingsContext, ct as useGlobalStore, dX as valuesOf, dY as useTaskStatuses, M as Modal, c as createLogger, Q as Icon, S as SettingNames } from "./EventEmitter-BCgWoSHk.js";
13
- import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-CBVflh7a.js";
12
+ import { G as Button, $ as entriesOf, bd as InputText, i as useI18nContext, dX as splitTaskIdentifier, n as useExperimentsContext, o as useSettingsContext, cu as useGlobalStore, dY as valuesOf, dZ as useTaskStatuses, M as Modal, c as createLogger, Q as Icon, S as SettingNames } from "./EventEmitter-D2fpze21.js";
13
+ import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-DaA2XP7r.js";
14
14
  var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
15
15
  ExperimentNames2["AllowMoreRolesForMainRootTrustee"] = "AllowMoreRolesForMainRootTrustee";
16
16
  ExperimentNames2["ShowUnsupportedEntityType"] = "ShowUnsupportedEntityType";
@@ -175,10 +175,10 @@ const transformModule = (highlights, codeNode, scope) => {
175
175
  };
176
176
  const supportedModules = ["plaintext", "json", "yaml", "css"];
177
177
  const moduleMap = {
178
- plaintext: () => import("./plaintext-Bgjkv8j9.js"),
179
- json: () => import("./json-BVkPD1GZ.js"),
180
- yaml: () => import("./yaml-Jyq-xpmw.js"),
181
- css: () => import("./css-w3W1DNq3.js")
178
+ plaintext: () => import("./plaintext-CyQv4kTZ.js"),
179
+ json: () => import("./json-CjF__AdT.js"),
180
+ yaml: () => import("./yaml-C7Gy0d0h.js"),
181
+ css: () => import("./css-rbxi2nD5.js")
182
182
  };
183
183
  const getModule = async (name) => {
184
184
  if (!supportedModules.includes(name)) {
@@ -469,7 +469,7 @@ const DebugModal = ({ onExit }) => {
469
469
  const [tab, setTab] = useState("metadata");
470
470
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
471
471
  const metadata = {
472
- sdkVersion: "3.68.1",
472
+ sdkVersion: "3.68.3",
473
473
  locale: i18n.locale,
474
474
  rootLegalEntityId: rootLegalEntity.id
475
475
  };
@@ -2,16 +2,16 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7d38732b-c74b-4a83-a9e4-c5ac21a2beaa", e._sentryDebugIdIdentifier = "sentry-dbid-7d38732b-c74b-4a83-a9e4-c5ac21a2beaa");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "445ef417-65d0-4a5d-9a66-740e1b0d08a4", e._sentryDebugIdIdentifier = "sentry-dbid-445ef417-65d0-4a5d-9a66-740e1b0d08a4");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState, useEffect } from "preact/hooks";
12
- import { u as useLegalEntity, K as Loader, ah as useGetTaskStatus, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, c_ as getOwnDecisionMakers, d$ as getAvailableDecisionMakerRoleTypes, T as TaskTypes, cp as getAllowedDecisionMakerRoles, bX as FormHeader, c3 as ContextGuidance, bG as DecisionMakerType, U as Alert, ae as CardGroup, G as Button, cG as ActionBar } from "./EventEmitter-BCgWoSHk.js";
13
- import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-CbKLS3lw.js";
14
- import { h as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, j as EntityAssociation } from "./core-PYXN6HpB.js";
12
+ import { u as useLegalEntity, K as Loader, ai as useGetTaskStatus, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, c$ as getOwnDecisionMakers, e0 as getAvailableDecisionMakerRoleTypes, T as TaskTypes, cq as getAllowedDecisionMakerRoles, bY as FormHeader, c4 as ContextGuidance, bH as DecisionMakerType, V as Alert, af as CardGroup, G as Button, cH as ActionBar } from "./EventEmitter-D2fpze21.js";
13
+ import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-kCm3i-vM.js";
14
+ import { h as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, j as EntityAssociation } from "./core-CkFz5z0L.js";
15
15
  const DecisionMakers = (props) => {
16
16
  const { data, isLoading } = useLegalEntity();
17
17
  if (isLoading || !data) {
@@ -2,13 +2,13 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "16ed85ce-ee94-4044-ba5b-a810303cc8d1", e._sentryDebugIdIdentifier = "sentry-dbid-16ed85ce-ee94-4044-ba5b-a810303cc8d1");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ae3da866-9600-454c-8185-38a8efa2b645", e._sentryDebugIdIdentifier = "sentry-dbid-ae3da866-9600-454c-8185-38a8efa2b645");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
- import { d4 as SettingsProvider, d5 as ExperimentsContextProvider, d6 as ApiProvider, d7 as QueryClientProvider, d8 as StoreProvider, d9 as AnalyticsProvider, da as CoreProvider, db as I18nProvider, d3 as EventEmitter, dc as DebugListener, dd as ToastContextProvider, de as StateProvider, df as ReactQueryDevtools2 } from "./EventEmitter-BCgWoSHk.js";
11
+ import { d5 as SettingsProvider, d6 as ExperimentsContextProvider, d7 as ApiProvider, d8 as QueryClientProvider, d9 as StoreProvider, da as AnalyticsProvider, db as CoreProvider, dc as I18nProvider, d4 as EventEmitter, dd as DebugListener, de as ToastContextProvider, df as StateProvider, dg as ReactQueryDevtools2 } from "./EventEmitter-D2fpze21.js";
12
12
  function injectCss(shadowRoot) {
13
13
  {
14
14
  import("./styles-CLV89_hH.js").then(({ css }) => {
@@ -38,7 +38,7 @@ const EmbedShell = ({
38
38
  const eventEmitter = new EventEmitter();
39
39
  return /* @__PURE__ */ jsx(SettingsProvider, { settings, children: /* @__PURE__ */ jsx(ExperimentsContextProvider, { experiments, refreshExperiments, children: /* @__PURE__ */ jsx(ApiProvider, { legalEntityId, baseUrl: loadingContext, children: /* @__PURE__ */ jsx(QueryClientProvider, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
40
40
  /* @__PURE__ */ jsxs(StoreProvider, { children: [
41
- /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.68.1" }),
41
+ /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.68.3" }),
42
42
  /* @__PURE__ */ jsx(
43
43
  AnalyticsProvider,
44
44
  {