@adyen/kyc-components 3.66.2 → 3.66.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.
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { u as useI18nContext, V as AlertIcon, W as FormHeader, X as DropinLayout } from "./core-3THxSDWA.js";
11
+ import { u as useI18nContext, V as AlertIcon, W as FormHeader, X as DropinLayout } from "./core-BUumq1mX.js";
12
12
  function AccountSetupRejected() {
13
13
  const { i18n } = useI18nContext();
14
14
  const content = /* @__PURE__ */ jsxs("div", { children: [
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useState, useEffect } from "preact/hooks";
12
- import { p as useLegalEntity, q as Loader, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, b as useExperimentsContext, w as useSelectionOptions, x as getCapabilities, y as getLegalEntityCountry, z as getBusinessType, A as getDefaultLegalArrangementOrSuborganizationType, L as LegalEntityType, D as useForm, E as legalArrangementMetadata, F as getTargetLegalEntityType, G as LoaderWrapper, H as Typography, J as Field, K as EntityTypeRadioGroupCard, R as RadioGroupCard, B as Button, N as Spacer, h as Icon, O as businessTypeIcons, P as hasSolePropInLegalEntity, Q as determineOrganizationTypeToUpdate } from "./core-3THxSDWA.js";
12
+ import { p as useLegalEntity, q as Loader, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, b as useExperimentsContext, w as useSelectionOptions, x as getCapabilities, y as getLegalEntityCountry, z as getBusinessType, A as getDefaultLegalArrangementOrSuborganizationType, L as LegalEntityType, D as useForm, E as legalArrangementMetadata, F as getTargetLegalEntityType, G as LoaderWrapper, H as Typography, J as Field, K as EntityTypeRadioGroupCard, R as RadioGroupCard, B as Button, N as Spacer, h as Icon, O as businessTypeIcons, P as hasSolePropInLegalEntity, Q as determineOrganizationTypeToUpdate } from "./core-BUumq1mX.js";
13
13
  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") });
14
14
  const getBusinessTypeExamplesForCountry = async (country) => {
15
15
  const importForCountry = businessTypeExamples[`../localized/legalEntityTypeExamples/${country}.json`];
@@ -7,8 +7,8 @@
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-Cru_bjn5.js";
11
- import { aD as getPreferredColorScheme, aE as createMemo, aF as createComponent } from "./core-3THxSDWA.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-ZADZXBaU.js";
11
+ import { aD as getPreferredColorScheme, aE as createMemo, aF as createComponent } from "./core-BUumq1mX.js";
12
12
  var DevtoolsPanelComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { p as useLegalEntity, q as Loader, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, ab as useConfigurationApi, _ as useUpdateLegalEntity, Z as useQueryClient, ac as resolveFieldMetadata, ad as contactDetailsValidationRules, ae as defaultFieldMetadata, af as fieldConfig, ag as getAsyncPhoneValidationRules, ah as useMultiForm, W as FormHeader, ai as ContactDetails, aa as ActionBar, g as createLogger } from "./core-3THxSDWA.js";
11
+ import { p as useLegalEntity, q as Loader, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, ab as useConfigurationApi, _ as useUpdateLegalEntity, Z as useQueryClient, ac as resolveFieldMetadata, ad as contactDetailsValidationRules, ae as defaultFieldMetadata, af as fieldConfig, ag as getAsyncPhoneValidationRules, ah as useMultiForm, W as FormHeader, ai as ContactDetails, aa as ActionBar, g as createLogger } from "./core-BUumq1mX.js";
12
12
  import { useCallback, useMemo, useEffect } from "preact/hooks";
13
13
  const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
14
14
  var _a, _b, _c;
@@ -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] = "0f4d7760-53c3-4322-8f0a-8d1b9c253561", e._sentryDebugIdIdentifier = "sentry-dbid-0f4d7760-53c3-4322-8f0a-8d1b9c253561");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cee0b21b-bfcf-4ab3-be4d-cb1ac6458ea9", e._sentryDebugIdIdentifier = "sentry-dbid-cee0b21b-bfcf-4ab3-be4d-cb1ac6458ea9");
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 { B as Button, T as Tag, e as entriesOf, I as InputText, u as useI18nContext, s as splitTaskIdentifier, a as TaskItemStatus, b as useExperimentsContext, c as useSettingsContext, d as useGlobalStore, l as listToRecord, v as valuesOf, f as useTaskStatuses, M as Modal, g as createLogger, h as Icon, S as SettingNames } from "./core-3THxSDWA.js";
12
+ import { B as Button, T as Tag, e as entriesOf, I as InputText, u as useI18nContext, s as splitTaskIdentifier, a as TaskItemStatus, b as useExperimentsContext, c as useSettingsContext, d as useGlobalStore, l as listToRecord, v as valuesOf, f as useTaskStatuses, M as Modal, g as createLogger, h as Icon, S as SettingNames } from "./core-BUumq1mX.js";
13
13
  var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
14
14
  ExperimentNames2["AllowMoreRolesForMainRootTrustee"] = "AllowMoreRolesForMainRootTrustee";
15
15
  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-DYLD97Bi.js"),
179
- json: () => import("./json-7syHrDhU.js"),
180
- yaml: () => import("./yaml-dLCAzO5I.js"),
181
- css: () => import("./css-DPN_JUQd.js")
178
+ plaintext: () => import("./plaintext-B99bp_o9.js"),
179
+ json: () => import("./json-DGoJZ2FI.js"),
180
+ yaml: () => import("./yaml-C5JLyHL7.js"),
181
+ css: () => import("./css-DuTJPTMz.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.66.2",
472
+ sdkVersion: "3.66.3",
473
473
  locale: i18n.locale,
474
474
  rootLegalEntityId: rootLegalEntity.id
475
475
  };
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { p as useLegalEntity, q as Loader, Y as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, Z as useQueryClient, _ as useUpdateLegalEntity, $ as getOwnDecisionMakers, a0 as getAvailableDecisionMakerRoleTypes, a1 as useDataMissingRemediations, i as TaskTypes, a2 as getAllowedDecisionMakerRoles, X as DropinLayout, W as FormHeader, a3 as EntityGuidanceStatus, a4 as iconStatus, a5 as ContextGuidance, a6 as DecisionMakerType, a7 as Alert, a8 as CardGroup, a9 as EntityAssociation, B as Button, aa as ActionBar } from "./core-3THxSDWA.js";
11
+ import { p as useLegalEntity, q as Loader, Y as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, Z as useQueryClient, _ as useUpdateLegalEntity, $ as getOwnDecisionMakers, a0 as getAvailableDecisionMakerRoleTypes, a1 as useDataMissingRemediations, i as TaskTypes, a2 as getAllowedDecisionMakerRoles, X as DropinLayout, W as FormHeader, a3 as EntityGuidanceStatus, a4 as iconStatus, a5 as ContextGuidance, a6 as DecisionMakerType, a7 as Alert, a8 as CardGroup, a9 as EntityAssociation, B as Button, aa as ActionBar } from "./core-BUumq1mX.js";
12
12
  import { useState, useEffect } from "preact/hooks";
13
13
  const DecisionMakers = (props) => {
14
14
  const { data, isLoading } = useLegalEntity();
@@ -10,7 +10,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10
10
  }
11
11
  }
12
12
  ;
13
- import { aG as createContext, aH as createSignal, aI as onMount, aJ as createEffect, aE as createMemo, aF as createComponent, aK as Portal, aL as Show, aM as template, aN as insert, aO as createRenderEffect, aP as className, aQ as clearDelegatedEvents, aR as delegateEvents, aS as useContext, aT as onCleanup, aU as sortFns, aV as mutationSortFns, aW as on, aX as setAttribute, aY as getSidedProp, aZ as use, a_ as createUniqueId, a$ as batch, b0 as getQueryStatusLabel, b1 as getMutationStatusColor, b2 as getQueryStatusColor, b3 as getQueryStatusColorByLabel, b4 as displayValue, b5 as For, b6 as convertRemToPixels, b7 as untrack, b8 as $TRACK, b9 as useTransition, ba as spread, bb as mergeProps, bc as createRoot, bd as serialize, be as Index, bf as updateNestedDataByPath, bg as addEventListener, bh as stringify, bi as Match, bj as Switch, bk as deleteNestedDataByPath, bl as splitProps, bm as Dynamic, bn as createComputed } from "./core-3THxSDWA.js";
13
+ import { aG as createContext, aH as createSignal, aI as onMount, aJ as createEffect, aE as createMemo, aF as createComponent, aK as Portal, aL as Show, aM as template, aN as insert, aO as createRenderEffect, aP as className, aQ as clearDelegatedEvents, aR as delegateEvents, aS as useContext, aT as onCleanup, aU as sortFns, aV as mutationSortFns, aW as on, aX as setAttribute, aY as getSidedProp, aZ as use, a_ as createUniqueId, a$ as batch, b0 as getQueryStatusLabel, b1 as getMutationStatusColor, b2 as getQueryStatusColor, b3 as getQueryStatusColorByLabel, b4 as displayValue, b5 as For, b6 as convertRemToPixels, b7 as untrack, b8 as $TRACK, b9 as useTransition, ba as spread, bb as mergeProps, bc as createRoot, bd as serialize, be as Index, bf as updateNestedDataByPath, bg as addEventListener, bh as stringify, bi as Match, bj as Switch, bk as deleteNestedDataByPath, bl as splitProps, bm as Dynamic, bn as createComputed } from "./core-BUumq1mX.js";
14
14
  var isNonNullable = (i2) => i2 != null;
15
15
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
16
16
  function chain(callbacks) {
@@ -7,8 +7,8 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-Cru_bjn5.js";
11
- import { aD as getPreferredColorScheme, aE as createMemo, aF as createComponent } from "./core-3THxSDWA.js";
10
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-ZADZXBaU.js";
11
+ import { aD as getPreferredColorScheme, aE as createMemo, aF as createComponent } from "./core-BUumq1mX.js";
12
12
  var DevtoolsComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
11
11
  import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
12
- import { i as TaskTypes, L as LegalEntityType, j as useCanSeeIntroduction, k as useLegalEntityType, t as toCapitalized, m as getTranslationKeysByPrefix, u as useI18nContext, n as useAnalyticsContext, o as StepProgressIndicator, B as Button } from "./core-3THxSDWA.js";
12
+ import { i as TaskTypes, L as LegalEntityType, j as useCanSeeIntroduction, k as useLegalEntityType, t as toCapitalized, m as getTranslationKeysByPrefix, u as useI18nContext, n as useAnalyticsContext, o as StepProgressIndicator, B as Button } from "./core-BUumq1mX.js";
13
13
  import { useMemo } from "preact/compat";
14
14
  var IntroductionScreens = ((IntroductionScreens2) => {
15
15
  IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { aj as useApiContext, ak as useMutation, al as httpPost, u as useI18nContext, r as useToastContext, G as LoaderWrapper, W as FormHeader, am as Checkbox, aa as ActionBar, X as DropinLayout } from "./core-3THxSDWA.js";
12
+ import { aj as useApiContext, ak as useMutation, al as httpPost, u as useI18nContext, r as useToastContext, G as LoaderWrapper, W as FormHeader, am as Checkbox, aa as ActionBar, X as DropinLayout } from "./core-BUumq1mX.js";
13
13
  const confirmReview = async (legalEntityId, url) => {
14
14
  return httpPost({
15
15
  loadingContext: url,
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { u as useI18nContext, D as useForm, H as Typography, J as Field, R as RadioGroupCard, B as Button, U as Svg, L as LegalEntityType } from "./core-3THxSDWA.js";
12
+ import { u as useI18nContext, D as useForm, H as Typography, J as Field, R as RadioGroupCard, B as Button, U as Svg, L as LegalEntityType } from "./core-BUumq1mX.js";
13
13
  const setupAccountMethods = ["singpass", "manual"];
14
14
  const setupAccountMethodFields = ["setupAccountMethod"];
15
15
  const getSingpassSelectionDisabled = (legalEntityType) => {
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
- import { aj as useApiContext, an as useQuery, ao as httpGet, H as Typography, u as useI18nContext, ap as useFormContext, J as Field, aq as RadioGroup, ar as getFormProps, h as Icon, as as isEmpty, U as Svg, at as sofStyles, B as Button, au as Card, av as StructuredList, aw as IconButton, Z as useQueryClient, n as useAnalyticsContext, p as useLegalEntity, _ as useUpdateLegalEntity, ah as useMultiForm, ax as isEmpty$1, ay as getRequiredForms, az as addValidityToForms, g as createLogger, aA as useFormComposer, q as Loader, aB as FormContextProvider, aC as FormWrapper } from "./core-3THxSDWA.js";
11
+ import { aj as useApiContext, an as useQuery, ao as httpGet, H as Typography, u as useI18nContext, ap as useFormContext, J as Field, aq as RadioGroup, ar as getFormProps, h as Icon, as as isEmpty, U as Svg, at as sofStyles, B as Button, au as Card, av as StructuredList, aw as IconButton, Z as useQueryClient, n as useAnalyticsContext, p as useLegalEntity, _ as useUpdateLegalEntity, ah as useMultiForm, ax as isEmpty$1, ay as getRequiredForms, az as addValidityToForms, g as createLogger, aA as useFormComposer, q as Loader, aB as FormContextProvider, aC as FormWrapper } from "./core-BUumq1mX.js";
12
12
  import { useState, useRef, useEffect, useMemo, useCallback } from "preact/hooks";
13
13
  import { signal } from "@preact/signals";
14
14
  import cx from "classnames";
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { C as Core } from "./core-3THxSDWA.js";
10
+ import { C as Core } from "./core-BUumq1mX.js";
11
11
  if (CSS.supports("container", "foo / inline-size") === false) {
12
12
  import("container-query-polyfill");
13
13
  }
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { C as Core } from "./core-3THxSDWA.js";
10
+ import { C as Core } from "./core-BUumq1mX.js";
11
11
  const environmentMap = Object.freeze({
12
12
  live: "https://live.adyen.com",
13
13
  test: "https://test.adyen.com"
@@ -19,7 +19,7 @@ var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout,
19
19
  {
20
20
  try {
21
21
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
22
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "96893e5c-7d7a-4e7e-a0c1-20f9494252b4", e._sentryDebugIdIdentifier = "sentry-dbid-96893e5c-7d7a-4e7e-a0c1-20f9494252b4");
22
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "11efd87a-cc11-42cc-9d80-826405cd7465", e._sentryDebugIdIdentifier = "sentry-dbid-11efd87a-cc11-42cc-9d80-826405cd7465");
23
23
  } catch (e) {
24
24
  }
25
25
  }
@@ -34309,7 +34309,7 @@ function PayoutDetailsDropin({
34309
34309
  const {
34310
34310
  data: transferInstrument,
34311
34311
  refetch: refetchTransferInstrument,
34312
- isLoading
34312
+ isLoading: isTransferInstrumentLoading
34313
34313
  } = useGetTransferInstrument(currentTransferInstrumentId);
34314
34314
  const { mutateAsync: handleUpdateTransferInstrument } = useUpdateTransferInstrument();
34315
34315
  const { mutateAsync: handleCreateTrustedTransferInstrument } = useCreateTrustedTransferInstrument();
@@ -34331,7 +34331,7 @@ function PayoutDetailsDropin({
34331
34331
  const fallbackCurrency = (_a2 = currencyByCountry[defaultPayoutCountry]) == null ? void 0 : _a2[0];
34332
34332
  const accountHolderName = accountHolder || getLegalEntityNameBasedOnType(legalEntityResponse);
34333
34333
  const instantVerificationEnabled = Boolean(
34334
- !transferInstrument && isSettingEnabled("instantBankVerification")
34334
+ !isTransferInstrumentLoading && !transferInstrument && isSettingEnabled("instantBankVerification")
34335
34335
  );
34336
34336
  const taskType = propTaskType ?? TaskTypes.PAYOUT;
34337
34337
  const [trustedTransferInstrumentId, setTrustedTransferInstrumentId] = useState();
@@ -34365,6 +34365,7 @@ function PayoutDetailsDropin({
34365
34365
  const [hideFooter, setHideFooter] = useState(false);
34366
34366
  const [skipSubmit, setSkipSubmit] = useState(false);
34367
34367
  const [loadingStatus, setLoadingStatus] = useState("loading");
34368
+ const [isSubmitting, setIsSubmitting] = useState(false);
34368
34369
  const [configurationLoadingStatus, setConfigurationLoadingStatus] = useState("loading");
34369
34370
  const [data, setData] = useState(prefilledData);
34370
34371
  const [problems, setProblems] = useState(
@@ -34490,7 +34491,13 @@ function PayoutDetailsDropin({
34490
34491
  legalEntityResponse,
34491
34492
  payoutDetailsSteps
34492
34493
  ]);
34493
- useUnifyLoadingStatus(setLoadingStatus, configurationLoadingStatus, bankVendorsLoadingStatus);
34494
+ useUnifyLoadingStatus(
34495
+ setLoadingStatus,
34496
+ configurationLoadingStatus,
34497
+ // bank vendor loading status only matters when we fetch bank vendors
34498
+ instantVerificationEnabled ? bankVendorsLoadingStatus : "success",
34499
+ isSubmitting ? "loading" : "success"
34500
+ );
34494
34501
  const forms = useMemo(() => {
34495
34502
  const requiredForms = getRequiredForms(
34496
34503
  payoutDetailsSteps,
@@ -34556,7 +34563,7 @@ function PayoutDetailsDropin({
34556
34563
  if (payoutAccountData) setAccountDetailsFromInput(payoutAccountData);
34557
34564
  }, [data]);
34558
34565
  const onSubmit = async () => {
34559
- setLoadingStatus("loading");
34566
+ setIsSubmitting(true);
34560
34567
  const dataSubmitted = cloneObject(data);
34561
34568
  const { payoutAccountDetails, payoutVerificationMethod } = dataSubmitted;
34562
34569
  const baseTracking = {
@@ -34593,7 +34600,7 @@ function PayoutDetailsDropin({
34593
34600
  } catch (e) {
34594
34601
  showToast({ label: e.message, variant: "error" });
34595
34602
  } finally {
34596
- setLoadingStatus("success");
34603
+ setIsSubmitting(false);
34597
34604
  }
34598
34605
  } catch (e) {
34599
34606
  if (isValidationError(e)) {
@@ -34613,7 +34620,7 @@ function PayoutDetailsDropin({
34613
34620
  const errorTranslatable = mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable(e);
34614
34621
  showToast({ label: i18n.get(errorTranslatable), variant: "error" });
34615
34622
  }
34616
- setLoadingStatus("success");
34623
+ setIsSubmitting(false);
34617
34624
  userEvents2.addTaskEvent("Encountered error", {
34618
34625
  ...baseTracking,
34619
34626
  returnType: (e == null ? void 0 : e.errorCode) || "backend",
@@ -34795,7 +34802,7 @@ function PayoutDetailsDropin({
34795
34802
  handleCloseClick,
34796
34803
  hideSidebar: hideSidebar || hideFooterAndSidebar,
34797
34804
  hideFooter: hideFooter || hideFooterAndSidebar,
34798
- loadingStatus: isLoading ? "loading" : loadingStatus,
34805
+ loadingStatus: isTransferInstrumentLoading ? "loading" : loadingStatus,
34799
34806
  asModal,
34800
34807
  forms,
34801
34808
  onSubmit,
@@ -34804,7 +34811,7 @@ function PayoutDetailsDropin({
34804
34811
  canSubmit: canSubmit2(),
34805
34812
  problems,
34806
34813
  steps,
34807
- children: !isLoading && /* @__PURE__ */ jsx$1(
34814
+ children: (!isTransferInstrumentLoading || isSubmitting) && /* @__PURE__ */ jsx$1(
34808
34815
  PayoutDetails,
34809
34816
  {
34810
34817
  ...derivedProps,
@@ -35147,6 +35154,7 @@ const useDeleteTransferInstrument = (options) => {
35147
35154
  mutationFn: (transferInstrumentId) => deleteTransferInstrument(legalEntityId.value, baseUrl.value, transferInstrumentId),
35148
35155
  onSuccess: () => {
35149
35156
  queryClient.invalidateQueries({ queryKey: ["transferInstruments", legalEntityId] });
35157
+ queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntityId] });
35150
35158
  },
35151
35159
  ...options
35152
35160
  });
@@ -36179,18 +36187,16 @@ const PayoutAccountTaskListItem = ({
36179
36187
  var _a2;
36180
36188
  const { i18n } = useI18nContext();
36181
36189
  const { showToast } = useToastContext();
36182
- const { refetch: refetchLegalEntity } = useLegalEntity();
36183
- const mutate = useDeleteTransferInstrument({ onSuccess: () => refetchLegalEntity() });
36190
+ const { mutateAsync: deleteTransferInstrument2 } = useDeleteTransferInstrument();
36184
36191
  const [isDeletingTransferInstrument, setIsDeletingTransferInstrument] = useState(false);
36185
36192
  const isInstantVerificationAccount = isInstantVerifiedAccount(account);
36186
36193
  const [isRemoveDisabled, setIsRemoveDisabled] = useState(false);
36187
36194
  const obscuredAccountNumber = getObscuredAccountNumber(account);
36188
36195
  const getTaskStatus2 = useGetTaskStatus();
36189
36196
  const status = getTaskStatus2(TaskTypes.PAYOUT, account.id);
36190
- const deleteTransferInstrument2 = async () => {
36197
+ const handleDeleteTransferInstrument = async () => {
36191
36198
  try {
36192
- await mutate.mutateAsync(account.id);
36193
- await refetchLegalEntity();
36199
+ await deleteTransferInstrument2(account.id);
36194
36200
  showToast({ label: i18n.get("transferInstrumentDeleted"), variant: "success" });
36195
36201
  } catch {
36196
36202
  showToast({ label: i18n.get("failedToDeletePayoutAccount"), variant: "error" });
@@ -36209,7 +36215,7 @@ const PayoutAccountTaskListItem = ({
36209
36215
  loading: isDeletingTransferInstrument,
36210
36216
  removeEntity: () => {
36211
36217
  setIsDeletingTransferInstrument(true);
36212
- deleteTransferInstrument2();
36218
+ handleDeleteTransferInstrument();
36213
36219
  },
36214
36220
  isRemoveDisabled,
36215
36221
  handleIsRemoveDisabled: setIsRemoveDisabled
@@ -50408,24 +50414,24 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
50408
50414
  return hasOwnEntityAssocation || !!hasOrganizationType;
50409
50415
  };
50410
50416
  const Introduction = lazy$1(
50411
- async () => (await import("./Introduction-h77KchJ3.js")).Introduction
50417
+ async () => (await import("./Introduction-BEP9UbW9.js")).Introduction
50412
50418
  );
50413
50419
  const BusinessTypeSelection = lazy$1(
50414
- async () => (await import("./BusinessTypeSelection-2HJti_8F.js")).BusinessTypeSelection
50420
+ async () => (await import("./BusinessTypeSelection-Cc9qVeGR.js")).BusinessTypeSelection
50415
50421
  );
50416
50422
  const SingpassSelection = lazy$1(
50417
- async () => (await import("./SingpassSelection-Dw3pv9Bj.js")).SingpassSelection
50423
+ async () => (await import("./SingpassSelection-DosW-5TS.js")).SingpassSelection
50418
50424
  );
50419
50425
  const AccountSetupRejected = lazy$1(
50420
- async () => (await import("./AccountSetupRejected-DVh7NV2H.js")).AccountSetupRejected
50426
+ async () => (await import("./AccountSetupRejected-CNg-6DmU.js")).AccountSetupRejected
50421
50427
  );
50422
50428
  const DecisionMakers = lazy$1(
50423
- async () => (await import("./DecisionMakers-BOKWRvNu.js")).DecisionMakers
50429
+ async () => (await import("./DecisionMakers-hSmjLohq.js")).DecisionMakers
50424
50430
  );
50425
50431
  const CustomerSupport = lazy$1(
50426
- async () => (await import("./CustomerSupport-CASwZ4gu.js")).CustomerSupport
50432
+ async () => (await import("./CustomerSupport-1kguK3O1.js")).CustomerSupport
50427
50433
  );
50428
- const Review = lazy$1(async () => (await import("./Review-Cg40i5oi.js")).Review);
50434
+ const Review = lazy$1(async () => (await import("./Review-uqvp-0Ef.js")).Review);
50429
50435
  const SignPCIComponent$2 = lazy$1(
50430
50436
  async () => (await Promise.resolve().then(() => SignPCIComponent$1)).SignPCIComponent
50431
50437
  );
@@ -50433,7 +50439,7 @@ const AcceptTermsOfService = lazy$1(
50433
50439
  async () => (await Promise.resolve().then(() => AcceptTermsOfServiceComponent$1)).AcceptTermsOfServiceComponent
50434
50440
  );
50435
50441
  const TaxReportingDropin = lazy$1(
50436
- async () => (await import("./TaxReportingDropin-Cf98KDXb.js")).TaxReportingDropin
50442
+ async () => (await import("./TaxReportingDropin-Bhsqy0ic.js")).TaxReportingDropin
50437
50443
  );
50438
50444
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
50439
50445
  const logger$6 = createLogger();
@@ -54757,7 +54763,7 @@ var TanstackQueryDevtools = (_l = class {
54757
54763
  if (__privateGet(this, _Component)) {
54758
54764
  Devtools = __privateGet(this, _Component);
54759
54765
  } else {
54760
- Devtools = lazy(() => import("./I3HPI4QX-Cz9GeRtD.js"));
54766
+ Devtools = lazy(() => import("./I3HPI4QX-BeS-EGaw.js"));
54761
54767
  __privateSet(this, _Component, Devtools);
54762
54768
  }
54763
54769
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -54879,7 +54885,7 @@ var TanstackQueryDevtoolsPanel = (_m = class {
54879
54885
  if (__privateGet(this, _Component2)) {
54880
54886
  Devtools = __privateGet(this, _Component2);
54881
54887
  } else {
54882
- Devtools = lazy(() => import("./CXEL7IU7-Cu3318Ir.js"));
54888
+ Devtools = lazy(() => import("./CXEL7IU7-HhffchJ8.js"));
54883
54889
  __privateSet(this, _Component2, Devtools);
54884
54890
  }
54885
54891
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -55098,7 +55104,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
55098
55104
  };
55099
55105
  };
55100
55106
  const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
55101
- const sdkVersion = "3.66.2";
55107
+ const sdkVersion = "3.66.3";
55102
55108
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
55103
55109
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
55104
55110
  const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
@@ -55173,7 +55179,7 @@ const AnalyticsProvider = ({
55173
55179
  const { onboardingVersion } = useVersion();
55174
55180
  const userEvents2 = useMemo(() => createUserEvents(), []);
55175
55181
  const sessionData = {
55176
- sdkVersion: "3.66.2",
55182
+ sdkVersion: "3.66.3",
55177
55183
  componentName,
55178
55184
  userAgent: navigator.userAgent,
55179
55185
  legalEntityId,
@@ -55307,7 +55313,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
55307
55313
  [baseUrl, rootLegalEntityId]
55308
55314
  );
55309
55315
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
55310
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.66.2" }),
55316
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.66.3" }),
55311
55317
  children2
55312
55318
  ] });
55313
55319
  };
@@ -55782,7 +55788,7 @@ function StateProvider({
55782
55788
  );
55783
55789
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
55784
55790
  }
55785
- const DebugModal = lazy$1(async () => (await import("./DebugModal-Byo_aTIl.js").then((n) => n.D)).DebugModal);
55791
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-B0X-bLkW.js").then((n) => n.D)).DebugModal);
55786
55792
  const DebugListener = () => {
55787
55793
  const [debugUiOpen, setDebugUiOpen] = useState(false);
55788
55794
  const { isSettingEnabled } = useSettingsContext();
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-Byo_aTIl.js";
10
+ import { c as cssProps } from "./DebugModal-B0X-bLkW.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text },
13
13
  property: { regex: /(^|[\r\n])[^:]*:/g, css: cssProps.key },
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-Byo_aTIl.js";
10
+ import { c as cssProps } from "./DebugModal-B0X-bLkW.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text },
13
13
  number: { regex: /-?\d+(\.\d+)?([eE][+-]?\d+)?/g, css: cssProps.number },
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-Byo_aTIl.js";
10
+ import { c as cssProps } from "./DebugModal-B0X-bLkW.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text }
13
13
  };
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-Byo_aTIl.js";
10
+ import { c as cssProps } from "./DebugModal-B0X-bLkW.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text },
13
13
  boolean: { regex: /^(\s*)([\w-]+)(:)\s*(.*)$/g, css: cssProps.boolean },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.66.2",
3
+ "version": "3.66.3",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",