@adyen/kyc-components 3.68.0 → 3.68.2

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 (73) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-yutCVhdr.js → AcceptTermsOfServiceComponent-SQljDrXa.js} +8 -22
  2. package/dist/{AccountSetupRejected-Bp9MbaZF.js → AccountSetupRejected-ycQ81Di0.js} +3 -3
  3. package/dist/{BusinessTypeSelection-Bda3HjOy.js → BusinessTypeSelection-DvvmJzYv.js} +4 -4
  4. package/dist/{CXEL7IU7-DIlmKme0.js → CXEL7IU7-CGVwBOx0.js} +3 -3
  5. package/dist/{CreateIndividualComponent-wIMjaodd.js → CreateIndividualComponent-rathlqPP.js} +13 -12
  6. package/dist/{CustomerSupport-BBpiWDZu.js → CustomerSupport-D_JLR2FT.js} +3 -3
  7. package/dist/{DebugModal-Chl6VeCw.js → DebugModal-P05awsgJ.js} +8 -8
  8. package/dist/{DecisionMakers-91Uxeb4Z.js → DecisionMakers-DUC8rE56.js} +4 -4
  9. package/dist/{EmbedShell-BgnrqkKO.js → EmbedShell-H979Qm-6.js} +3 -3
  10. package/dist/{EventEmitter-MB52FRnR.js → EventEmitter-5jszKCaJ.js} +418 -359
  11. package/dist/{HASRA6WW-CYutWFzS.js → HASRA6WW-BPCY6elk.js} +2 -2
  12. package/dist/{I3HPI4QX-h-J4eisw.js → I3HPI4QX-06D9Iepl.js} +3 -3
  13. package/dist/{Introduction-Cn5uh084.js → Introduction-BghsurRU.js} +3 -3
  14. package/dist/{Review-BITkfvbx.js → Review-Dd7WI3Yz.js} +4 -3
  15. package/dist/{SingpassSelection-BPrfSrSw.js → SingpassSelection-DByRqKls.js} +2 -2
  16. package/dist/{TaxReportingDropin-DZLUs3Hb.js → TaxReportingDropin-BADfykll.js} +7 -12
  17. package/dist/adyen-kyc-components.js +1 -1
  18. package/dist/adyenConfig.js +1 -1
  19. package/dist/{core-DnQST_lN.js → core-C0rY8vL6.js} +81 -110
  20. package/dist/{css-ChtZI8YA.js → css-DLNP39b3.js} +1 -1
  21. package/dist/individual.js +2 -2
  22. package/dist/{json-CY-QM445.js → json-CrltTDwR.js} +1 -1
  23. package/dist/{listToRecord-CogvyLiD.js → listToRecord-3sI8p0aA.js} +2 -2
  24. package/dist/{plaintext-BzvCXlZZ.js → plaintext-BOAoTqQE.js} +1 -1
  25. package/dist/terms-of-service.js +2 -2
  26. package/dist/types/api/address/useAddressCleanse.d.ts +1 -0
  27. package/dist/types/api/address/useRetrieveAddress.d.ts +5 -0
  28. package/dist/types/api/address/useSearchAddress.d.ts +1 -0
  29. package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -0
  30. package/dist/types/api/check/useCheck.d.ts +2 -0
  31. package/dist/types/api/configurations/useScenarios.d.ts +7 -6
  32. package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -0
  33. package/dist/types/api/configurations/useTaskTypes.d.ts +1 -0
  34. package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -4
  35. package/dist/types/api/datasets/useLegalForms.d.ts +1 -0
  36. package/dist/types/api/datasets/useNaceCodes.d.ts +1 -0
  37. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -0
  38. package/dist/types/api/documents/{useGetDocument.d.ts → useDocument.d.ts} +6 -1
  39. package/dist/types/api/invalidateRootLegalEntity.d.ts +6 -0
  40. package/dist/types/api/legalEntity/useLegalEntity.d.ts +5 -0
  41. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -0
  42. package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -0
  43. package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +1 -0
  44. package/dist/types/api/pciTemplate/usePciStatus.d.ts +1 -0
  45. package/dist/types/api/pciTemplate/usePciTemplate.d.ts +1 -0
  46. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -0
  47. package/dist/types/api/queryKeys.d.ts +38 -0
  48. package/dist/types/api/taskStatus/useTaskStatus.d.ts +1 -0
  49. package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -0
  50. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +9 -0
  51. package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -0
  52. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -0
  53. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -0
  54. package/dist/types/api/transferInstruments/{useGetBankVerificationProviders.d.ts → useBankVerificationProviders.d.ts} +5 -1
  55. package/dist/types/api/transferInstruments/{useGetTransferInstrument.d.ts → useTransferInstrument.d.ts} +6 -1
  56. package/dist/types/api/transferInstruments/{useGetTransferInstruments.d.ts → useTransferInstruments.d.ts} +2 -1
  57. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +5 -0
  58. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -0
  59. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -1
  60. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
  61. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +1 -1
  62. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
  63. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
  64. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -1
  65. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -1
  66. package/dist/types/components/EmbeddedDropins/SignPCIComponent/SignPCIComponent.d.ts +1 -2
  67. package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +5 -1
  68. package/dist/types/components/ui/atoms/Radio/Radio.d.ts +3 -1
  69. package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.d.ts +1 -1
  70. package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +1 -0
  71. package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -1
  72. package/dist/{yaml-CFgf8XoZ.js → yaml-Cc82rT2c.js} +1 -1
  73. 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] = "940ec023-4741-4054-8ac7-2305621c1bce", e._sentryDebugIdIdentifier = "sentry-dbid-940ec023-4741-4054-8ac7-2305621c1bce");
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, d as useMutation, h as httpPost, b as useQuery, e 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-MB52FRnR.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-5jszKCaJ.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", legalEntityId.value]
45
- });
46
- queryClient.invalidateQueries({
47
- queryKey: ["termsOfServiceAcceptanceInfos", legalEntityId.value]
48
- });
40
+ await invalidateRootLegalEntity();
49
41
  },
50
42
  ...options
51
43
  });
@@ -65,7 +57,7 @@ const getTermsOfServiceAcceptanceInfos = async (legalEntityId, url) => {
65
57
  const useTermsOfServiceAcceptanceInfos = (options) => {
66
58
  const { legalEntityId, baseUrl } = useApiContext();
67
59
  return useQuery({
68
- queryKey: ["termsOfServiceAcceptanceInfos", legalEntityId.value, baseUrl.value],
60
+ queryKey: ["termsOfServiceAcceptanceInfos"],
69
61
  queryFn: () => getTermsOfServiceAcceptanceInfos(legalEntityId.value, baseUrl.value),
70
62
  ...options
71
63
  });
@@ -85,7 +77,7 @@ const getTermsOfServiceStatus = async (legalEntityId, url) => {
85
77
  const useTermsOfServiceStatus = (options) => {
86
78
  const { legalEntityId, baseUrl } = useApiContext();
87
79
  return useQuery({
88
- queryKey: ["termsOfServiceStatus", legalEntityId.value, baseUrl.value],
80
+ queryKey: ["termsOfServiceStatus"],
89
81
  queryFn: () => getTermsOfServiceStatus(legalEntityId.value, baseUrl.value),
90
82
  ...options
91
83
  });
@@ -105,13 +97,7 @@ const getAcceptedTermsOfService = async (legalEntityId, url, termsOfServiceAccep
105
97
  const useAcceptedTermsOfService = (termsOfServiceAcceptanceReference, documentFormat, options) => {
106
98
  const { legalEntityId, baseUrl } = useApiContext();
107
99
  return useQuery({
108
- queryKey: [
109
- "acceptedTermsOfService",
110
- termsOfServiceAcceptanceReference,
111
- documentFormat,
112
- legalEntityId.value,
113
- baseUrl.value
114
- ],
100
+ queryKey: ["acceptedTermsOfService", termsOfServiceAcceptanceReference, documentFormat],
115
101
  queryFn: termsOfServiceAcceptanceReference ? () => getAcceptedTermsOfService(
116
102
  legalEntityId.value,
117
103
  baseUrl.value,
@@ -139,7 +125,7 @@ const getTermsOfService = async (legalEntityId, url, data) => {
139
125
  const useTermsOfService = (data, options) => {
140
126
  const { legalEntityId, baseUrl } = useApiContext();
141
127
  return useQuery({
142
- queryKey: ["termsOfService", legalEntityId.value, baseUrl.value, data],
128
+ queryKey: ["termsOfService", data],
143
129
  queryFn: () => getTermsOfService(legalEntityId.value, baseUrl.value, data),
144
130
  ...options
145
131
  });
@@ -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-MB52FRnR.js";
12
- import { D as DropinLayout } from "./core-DnQST_lN.js";
11
+ import { i as useI18nContext, dW as AlertIcon, bY as FormHeader } from "./EventEmitter-5jszKCaJ.js";
12
+ import { D as DropinLayout } from "./core-C0rY8vL6.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-MB52FRnR.js";
13
- import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-wIMjaodd.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-DnQST_lN.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-5jszKCaJ.js";
13
+ import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-rathlqPP.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-C0rY8vL6.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-CYutWFzS.js";
11
- import { e0 as getPreferredColorScheme, e1 as createMemo, e2 as createComponent } from "./EventEmitter-MB52FRnR.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-BPCY6elk.js";
11
+ import { e1 as getPreferredColorScheme, e2 as createMemo, e3 as createComponent } from "./EventEmitter-5jszKCaJ.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] = "09a4b53c-3e3e-4a3b-8617-fa5ff1d17204", e._sentryDebugIdIdentifier = "sentry-dbid-09a4b53c-3e3e-4a3b-8617-fa5ff1d17204");
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, e as httpGet, d 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-MB52FRnR.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-5jszKCaJ.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({
@@ -30,7 +30,7 @@ const useScenarios = (countryCode, legalEntityType, options) => {
30
30
  var _a;
31
31
  const { legalEntityId, baseUrl } = useApiContext();
32
32
  const result = useQuery({
33
- queryKey: ["scenarios", legalEntityId.value, baseUrl.value, legalEntityType, countryCode],
33
+ queryKey: ["scenarios", legalEntityType, countryCode],
34
34
  queryFn: () => getScenarios(legalEntityId.value, baseUrl.value, legalEntityType, countryCode),
35
35
  ...options
36
36
  });
@@ -153,16 +153,17 @@ const updateLegalEntity = async (rootLegalEntityId, url, data) => {
153
153
  );
154
154
  };
155
155
  const useUpdateLegalEntity = (options) => {
156
- const { legalEntityId, baseUrl } = useApiContext();
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(legalEntityId.value, baseUrl.value, payload);
161
- },
162
- onSuccess: async () => {
163
- queryClient.invalidateQueries({
164
- queryKey: ["legalEntity", legalEntityId.value]
165
- });
160
+ mutationFn: (payload) => updateLegalEntity(rootLegalEntityId.value, baseUrl.value, payload),
161
+ onSuccess: async (response, payload) => {
162
+ if (response.id === rootLegalEntityId.value) {
163
+ await invalidateRootLegalEntity();
164
+ } else {
165
+ queryClient.setQueryData(["legalEntity", payload.id], response);
166
+ }
166
167
  },
167
168
  ...options
168
169
  });
@@ -403,7 +404,7 @@ async function convertToSingpassLinkResponse(openIdInitiateResponse) {
403
404
  const useOpenIdAuthorizationLink = (options) => {
404
405
  const { legalEntityId, baseUrl } = useApiContext();
405
406
  return useQuery({
406
- queryKey: ["openIdAuthorizationLink", legalEntityId.value, baseUrl.value],
407
+ queryKey: ["openIdAuthorizationLink"],
407
408
  queryFn: () => getOpenIdAuthorizationLink(legalEntityId.value, baseUrl.value),
408
409
  ...options
409
410
  });
@@ -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-MB52FRnR.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-5jszKCaJ.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-wIMjaodd.js";
13
+ import { B as useUpdateLegalEntity, H as contactDetailsValidationRules, M as useValidatePhoneNumberImperatively, O as useMultiForm } from "./CreateIndividualComponent-rathlqPP.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] = "2fe12ed2-0179-4663-967b-157da3aff5cb", e._sentryDebugIdIdentifier = "sentry-dbid-2fe12ed2-0179-4663-967b-157da3aff5cb");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b2497e82-0ef9-4d8c-828a-fb6610861e31", e._sentryDebugIdIdentifier = "sentry-dbid-b2497e82-0ef9-4d8c-828a-fb6610861e31");
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-MB52FRnR.js";
13
- import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-CogvyLiD.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-5jszKCaJ.js";
13
+ import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-3sI8p0aA.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-BzvCXlZZ.js"),
179
- json: () => import("./json-CY-QM445.js"),
180
- yaml: () => import("./yaml-CFgf8XoZ.js"),
181
- css: () => import("./css-ChtZI8YA.js")
178
+ plaintext: () => import("./plaintext-BOAoTqQE.js"),
179
+ json: () => import("./json-CrltTDwR.js"),
180
+ yaml: () => import("./yaml-Cc82rT2c.js"),
181
+ css: () => import("./css-DLNP39b3.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.0",
472
+ sdkVersion: "3.68.2",
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-MB52FRnR.js";
13
- import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-wIMjaodd.js";
14
- import { h as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, j as EntityAssociation } from "./core-DnQST_lN.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-5jszKCaJ.js";
13
+ import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-rathlqPP.js";
14
+ import { h as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, j as EntityAssociation } from "./core-C0rY8vL6.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] = "1561b19a-c350-427a-92ce-9dcf6b6ac903", e._sentryDebugIdIdentifier = "sentry-dbid-1561b19a-c350-427a-92ce-9dcf6b6ac903");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5d7eba82-d01c-4e7d-86c8-44e1c839585a", e._sentryDebugIdIdentifier = "sentry-dbid-5d7eba82-d01c-4e7d-86c8-44e1c839585a");
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-MB52FRnR.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-5jszKCaJ.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.0" }),
41
+ /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.68.2" }),
42
42
  /* @__PURE__ */ jsx(
43
43
  AnalyticsProvider,
44
44
  {