@adyen/kyc-components 3.66.5 → 3.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccountSetupRejected-D9dFdnIa.js → AccountSetupRejected-gYtp0Txi.js} +1 -1
- package/dist/{BusinessTypeSelection-CUMbs_zu.js → BusinessTypeSelection-BGnlpnIt.js} +3 -4
- package/dist/{CXEL7IU7-CmzQcJTJ.js → CXEL7IU7-BMBtNPj4.js} +3 -3
- package/dist/{CustomerSupport-C3WSxbV4.js → CustomerSupport-DtPK_BrP.js} +2 -2
- package/dist/{DebugModal-DumKT2hR.js → DebugModal-BdMr7fPl.js} +8 -7
- package/dist/{DecisionMakers-NThHl5xn.js → DecisionMakers-B98U_ugm.js} +3 -11
- package/dist/{HASRA6WW-q5ZV1XWT.js → HASRA6WW-cUOcZUGT.js} +2 -2
- package/dist/{I3HPI4QX-B0hu1gFe.js → I3HPI4QX-BgHxLhRI.js} +3 -3
- package/dist/{Introduction-DLZ10UXL.js → Introduction-OexTjfSi.js} +1 -1
- package/dist/{Review-B6wdyvwt.js → Review-BoeUIf9n.js} +2 -2
- package/dist/{SingpassSelection-N3cO89q2.js → SingpassSelection-ChdugAIt.js} +1 -1
- package/dist/{TaxReportingDropin-Svaluvni.js → TaxReportingDropin-Bdl7gnfT.js} +59 -99
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +1 -1
- package/dist/{core-DGVGd409.js → core-B-WQPmuP.js} +2462 -2593
- package/dist/{css-CSSiAxLL.js → css-5glJY2Bu.js} +2 -2
- package/dist/ja-JP-DrupcLqM.js +1902 -0
- package/dist/{json-CBjDObNO.js → json-aSN8-541.js} +2 -2
- package/dist/{plaintext-Cu8Ozvxr.js → plaintext-C27sgoKw.js} +2 -2
- package/dist/style.css +205 -184
- package/dist/types/api/address/useAddressCleanse.d.ts +31 -2
- package/dist/types/api/address/useRetrieveAddress.d.ts +21 -0
- package/dist/types/api/address/useSearchAddress.d.ts +20 -0
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +1 -0
- package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +9 -0
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +4 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +411 -3
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +2 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +4 -0
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +12 -8
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/iframeWidget.d.ts +0 -4
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +0 -3
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +0 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +6 -5
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureRegisteredAddress.d.ts +1 -1
- package/dist/types/components/EFP/tasks/HighExposureDropin/types.d.ts +1 -19
- package/dist/types/components/EFP/tasks/HighExposureDropin/utils.d.ts +2 -2
- package/dist/types/components/EFP/tasks/TaxReportingDropin/validate.d.ts +3 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +2 -19
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +1 -3
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/OnboardingDropinComponent.d.ts +1 -2
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/IdVerification/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/types.d.ts +3 -7
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +0 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +3 -7
- package/dist/types/components/Individual/hooks/useIdVerificationToken.d.ts +2 -2
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +1 -1
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/AddressField.d.ts +9 -0
- package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +15 -0
- package/dist/types/components/Shared/forms/Address/SearchAddressItem.d.ts +3 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +2 -21
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/validate.d.ts +8 -6
- package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +0 -4
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +0 -3
- package/dist/types/components/Shared/tasks/TaskList/PayoutAccountTaskListItem.d.ts +3 -1
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +5 -0
- package/dist/types/components/SoleProprietorship/hooks/useExemptSettlor.d.ts +1 -3
- package/dist/types/components/Trust/forms/Trust/types.d.ts +0 -2
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/TrustRoleAndEntityType.d.ts +1 -3
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +0 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/RoleAndTypeDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +4 -5
- package/dist/types/components/Trust/tasks/TrustDropin/TrustDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +4 -2
- package/dist/types/components/Trust/utils/addOrUpdateAssociatedTrustMember.d.ts +3 -3
- package/dist/types/components/Trust/utils/addOrUpdateUndefinedBeneficiary.d.ts +2 -2
- package/dist/types/components/Trust/utils/createExemptSettlor.d.ts +3 -3
- package/dist/types/components/Trust/utils/deleteAssociatedTrustMember.d.ts +3 -3
- package/dist/types/components/Trust/utils/deleteUndefinedBeneficiary.d.ts +3 -3
- package/dist/types/components/Trust/utils/updateExemptSettlorName.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +18 -5
- package/dist/types/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +7 -3
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +6 -0
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/validate.d.ts +3 -0
- package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +2 -2
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
- package/dist/types/components/ui/atoms/Select/Select.types.d.ts +31 -16
- package/dist/types/components/ui/atoms/Select/useSelectFocus.d.ts +2 -3
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -1
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +11 -28
- package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -1
- package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +3 -2
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +4 -4
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -1
- package/dist/types/components/ui/molecules/InputText/InputText.d.ts +2 -1
- package/dist/types/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +0 -3
- package/dist/types/context/ExperimentContext/types.d.ts +4 -0
- package/dist/types/context/FormRouterContext/types.d.ts +2 -2
- package/dist/types/context/SettingsContext/types.d.ts +2 -0
- package/dist/types/core/analytics.d.ts +16 -1
- package/dist/types/core/models/api/contracts.d.ts +0 -19
- package/dist/types/core/models/api/organization.d.ts +1 -2
- package/dist/types/core/models/state-code.d.ts +2 -1
- package/dist/types/hooks/introduction/useCanSeeIntroduction.d.ts +2 -1
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +3 -5
- package/dist/types/hooks/useAnalytics.d.ts +1 -1
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +14 -0
- package/dist/types/hooks/useAssociatedLegalRepresentative.d.ts +1 -5
- package/dist/types/hooks/useAsyncValidator.d.ts +1 -1
- package/dist/types/hooks/useComponentApi.d.ts +0 -8
- package/dist/types/hooks/useForm/reducer.d.ts +2 -1
- package/dist/types/hooks/useForm/types.d.ts +2 -1
- package/dist/types/stores/globalStore/StoreProvider.d.ts +1 -9
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +1 -3
- package/dist/types/stores/globalStore/taskStatus.d.ts +6 -2
- package/dist/types/utils/debounce.d.ts +20 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/useDebouncedState.d.ts +3 -0
- package/dist/types/utils/useMirrorProp.d.ts +16 -0
- package/dist/types/utils/validation/types.d.ts +2 -1
- package/dist/{yaml-C1h5I16b.js → yaml-BLLI4LYJ.js} +2 -2
- package/package.json +1 -1
- package/dist/types/components/Shared/forms/Address/FieldContainer.d.ts +0 -10
- package/dist/types/core/models/api/address-search.d.ts +0 -31
- package/dist/types/core/services/componentApi/create-legal-entity.d.ts +0 -3
- package/dist/types/core/services/componentApi/get-address.d.ts +0 -3
- package/dist/types/core/services/componentApi/get-idverification-token.d.ts +0 -3
- package/dist/types/core/services/componentApi/get-legal-entity.d.ts +0 -3
- package/dist/types/core/services/componentApi/idVerification-startcheck.d.ts +0 -3
- package/dist/types/core/services/componentApi/open-singpass-authorization-link.d.ts +0 -3
- package/dist/types/core/services/componentApi/search-address.d.ts +0 -3
- package/dist/types/hooks/useAssociatedLegalArrangement.d.ts +0 -13
- package/dist/types/utils/scroll.d.ts +0 -1
|
@@ -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-
|
|
11
|
+
import { u as useI18nContext, V as AlertIcon, W as FormHeader, X as DropinLayout } from "./core-B-WQPmuP.js";
|
|
12
12
|
function AccountSetupRejected() {
|
|
13
13
|
const { i18n } = useI18nContext();
|
|
14
14
|
const content = /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ec7d1fc0-9b05-478a-89e2-1f7136004a7a", e._sentryDebugIdIdentifier = "sentry-dbid-ec7d1fc0-9b05-478a-89e2-1f7136004a7a");
|
|
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 { 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-
|
|
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-B-WQPmuP.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`];
|
|
@@ -443,6 +443,5 @@ const BusinessTypeSelectionInner = ({
|
|
|
443
443
|
] }) });
|
|
444
444
|
};
|
|
445
445
|
export {
|
|
446
|
-
BusinessTypeSelection
|
|
447
|
-
BusinessTypeSelectionInner
|
|
446
|
+
BusinessTypeSelection
|
|
448
447
|
};
|
|
@@ -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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "84effdac-d303-4c5a-9f0c-ed51d824d1e6", e._sentryDebugIdIdentifier = "sentry-dbid-84effdac-d303-4c5a-9f0c-ed51d824d1e6");
|
|
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-
|
|
11
|
-
import {
|
|
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-cUOcZUGT.js";
|
|
11
|
+
import { aF as getPreferredColorScheme, aG as createMemo, aH as createComponent } from "./core-B-WQPmuP.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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f73a4d1c-17d4-4fcc-9b0a-6d1bd6d69bf0", e._sentryDebugIdIdentifier = "sentry-dbid-f73a4d1c-17d4-4fcc-9b0a-6d1bd6d69bf0");
|
|
6
6
|
} catch (e) {
|
|
7
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,
|
|
11
|
+
import { p as useLegalEntity, q as Loader, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, aa as useConfigurationApi, Z as useUpdateLegalEntity, ab 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, a9 as ActionBar, g as createLogger } from "./core-B-WQPmuP.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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e05bb119-f8d9-4b94-a206-313942437ec9", e._sentryDebugIdIdentifier = "sentry-dbid-e05bb119-f8d9-4b94-a206-313942437ec9");
|
|
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-
|
|
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-B-WQPmuP.js";
|
|
13
13
|
var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
|
|
14
14
|
ExperimentNames2["AllowMoreRolesForMainRootTrustee"] = "AllowMoreRolesForMainRootTrustee";
|
|
15
15
|
ExperimentNames2["ShowUnsupportedEntityType"] = "ShowUnsupportedEntityType";
|
|
@@ -38,6 +38,7 @@ var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
|
|
|
38
38
|
ExperimentNames2["UseOnboardingComponentsForSingpass"] = "UseOnboardingComponentsForSingpass";
|
|
39
39
|
ExperimentNames2["EnableCheckOnCreateBankAccount"] = "EnableCheckOnCreateBankAccount";
|
|
40
40
|
ExperimentNames2["EnableTaxIdRequiredForBusinessAccountsScenarios"] = "EnableTaxIdRequiredForBusinessAccountsScenarios";
|
|
41
|
+
ExperimentNames2["EnableJaJPLocale"] = "EnableJaJPLocale";
|
|
41
42
|
ExperimentNames2["CredentialBankingWeightage_EmphasizeCredentialBankingFlow"] = "CredentialBankingWeightage_EmphasizeCredentialBankingFlow";
|
|
42
43
|
return ExperimentNames2;
|
|
43
44
|
})(ExperimentNames || {});
|
|
@@ -175,10 +176,10 @@ const transformModule = (highlights, codeNode, scope) => {
|
|
|
175
176
|
};
|
|
176
177
|
const supportedModules = ["plaintext", "json", "yaml", "css"];
|
|
177
178
|
const moduleMap = {
|
|
178
|
-
plaintext: () => import("./plaintext-
|
|
179
|
-
json: () => import("./json-
|
|
180
|
-
yaml: () => import("./yaml-
|
|
181
|
-
css: () => import("./css-
|
|
179
|
+
plaintext: () => import("./plaintext-C27sgoKw.js"),
|
|
180
|
+
json: () => import("./json-aSN8-541.js"),
|
|
181
|
+
yaml: () => import("./yaml-BLLI4LYJ.js"),
|
|
182
|
+
css: () => import("./css-5glJY2Bu.js")
|
|
182
183
|
};
|
|
183
184
|
const getModule = async (name) => {
|
|
184
185
|
if (!supportedModules.includes(name)) {
|
|
@@ -469,7 +470,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
469
470
|
const [tab, setTab] = useState("metadata");
|
|
470
471
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
471
472
|
const metadata = {
|
|
472
|
-
sdkVersion: "3.
|
|
473
|
+
sdkVersion: "3.67.0",
|
|
473
474
|
locale: i18n.locale,
|
|
474
475
|
rootLegalEntityId: rootLegalEntity.id
|
|
475
476
|
};
|
|
@@ -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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "da3bbdc0-9687-47ba-949e-fc0f0689b0fd", e._sentryDebugIdIdentifier = "sentry-dbid-da3bbdc0-9687-47ba-949e-fc0f0689b0fd");
|
|
6
6
|
} catch (e) {
|
|
7
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-DGVGd409.js";
|
|
12
11
|
import { useState, useEffect } from "preact/hooks";
|
|
12
|
+
import { p as useLegalEntity, q as Loader, Y as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, Z as useUpdateLegalEntity, _ as getOwnDecisionMakers, $ as getAvailableDecisionMakerRoleTypes, a0 as useDataMissingRemediations, i as TaskTypes, a1 as getAllowedDecisionMakerRoles, X as DropinLayout, W as FormHeader, a2 as EntityGuidanceStatus, a3 as iconStatus, a4 as ContextGuidance, a5 as DecisionMakerType, a6 as Alert, a7 as CardGroup, a8 as EntityAssociation, B as Button, a9 as ActionBar } from "./core-B-WQPmuP.js";
|
|
13
13
|
const DecisionMakers = (props) => {
|
|
14
14
|
const { data, isLoading } = useLegalEntity();
|
|
15
15
|
if (isLoading || !data) {
|
|
@@ -29,15 +29,7 @@ const DecisionMakersInner = ({
|
|
|
29
29
|
const userEvents = useAnalyticsContext();
|
|
30
30
|
const { showToast } = useToastContext();
|
|
31
31
|
const [isRemoveDisabled, setIsRemoveDisabled] = useState(false);
|
|
32
|
-
const
|
|
33
|
-
const updateLegalEntity = useUpdateLegalEntity({
|
|
34
|
-
onSuccess: () => {
|
|
35
|
-
queryClient.invalidateQueries({
|
|
36
|
-
queryKey: ["legalEntity", legalEntity.id],
|
|
37
|
-
refetchType: "all"
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
});
|
|
32
|
+
const updateLegalEntity = useUpdateLegalEntity();
|
|
41
33
|
const decisionMakers = getOwnDecisionMakers(legalEntity);
|
|
42
34
|
const registeredCountry = legalEntity.organization.registeredAddress.country;
|
|
43
35
|
const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(registeredCountry);
|
|
@@ -5,12 +5,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
{
|
|
6
6
|
try {
|
|
7
7
|
let e2 = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n2 = new e2.Error().stack;
|
|
8
|
-
n2 && (e2._sentryDebugIds = e2._sentryDebugIds || {}, e2._sentryDebugIds[n2] = "
|
|
8
|
+
n2 && (e2._sentryDebugIds = e2._sentryDebugIds || {}, e2._sentryDebugIds[n2] = "2613b1f8-1e6b-4424-84da-cf7004679cf6", e2._sentryDebugIdIdentifier = "sentry-dbid-2613b1f8-1e6b-4424-84da-cf7004679cf6");
|
|
9
9
|
} catch (e2) {
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
;
|
|
13
|
-
import {
|
|
13
|
+
import { aI as createContext, aJ as createSignal, aK as onMount, aL as createEffect, aG as createMemo, aH as createComponent, aM as Portal, aN as Show, aO as template, aP as insert, aQ as createRenderEffect, aR as className, aS as clearDelegatedEvents, aT as delegateEvents, aU as useContext, aV as onCleanup, aW as sortFns, aX as mutationSortFns, aY as on, aZ as setAttribute, a_ as getSidedProp, a$ as use, b0 as createUniqueId, b1 as batch, b2 as getQueryStatusLabel, b3 as getMutationStatusColor, b4 as getQueryStatusColor, b5 as getQueryStatusColorByLabel, b6 as displayValue, b7 as For, b8 as convertRemToPixels, b9 as untrack, ba as $TRACK, bb as useTransition, bc as spread, bd as mergeProps, be as createRoot, bf as serialize, bg as Index, bh as updateNestedDataByPath, bi as addEventListener, bj as stringify, bk as Match, bl as Switch, bm as deleteNestedDataByPath, bn as splitProps, bo as Dynamic, bp as createComputed } from "./core-B-WQPmuP.js";
|
|
14
14
|
var isNonNullable = (i2) => i2 != null;
|
|
15
15
|
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
16
16
|
function chain(callbacks) {
|
|
@@ -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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cb4809ea-53ef-44c6-985e-0a887a6c9ab4", e._sentryDebugIdIdentifier = "sentry-dbid-cb4809ea-53ef-44c6-985e-0a887a6c9ab4");
|
|
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, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-
|
|
11
|
-
import {
|
|
10
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-cUOcZUGT.js";
|
|
11
|
+
import { aF as getPreferredColorScheme, aG as createMemo, aH as createComponent } from "./core-B-WQPmuP.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-
|
|
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-B-WQPmuP.js";
|
|
13
13
|
import { useMemo } from "preact/compat";
|
|
14
14
|
var IntroductionScreens = ((IntroductionScreens2) => {
|
|
15
15
|
IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
|
|
@@ -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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2782ae0c-bc99-424b-8812-6248aaf2c401", e._sentryDebugIdIdentifier = "sentry-dbid-2782ae0c-bc99-424b-8812-6248aaf2c401");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
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,
|
|
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, a9 as ActionBar, X as DropinLayout } from "./core-B-WQPmuP.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-
|
|
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-B-WQPmuP.js";
|
|
13
13
|
const setupAccountMethods = ["singpass", "manual"];
|
|
14
14
|
const setupAccountMethodFields = ["setupAccountMethod"];
|
|
15
15
|
const getSingpassSelectionDisabled = (legalEntityType) => {
|
|
@@ -2,16 +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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c9e9f2dd-daee-494f-94d2-a8615ac78c60", e._sentryDebugIdIdentifier = "sentry-dbid-c9e9f2dd-daee-494f-94d2-a8615ac78c60");
|
|
6
6
|
} catch (e) {
|
|
7
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
|
|
11
|
+
import { aj as useApiContext, an as useQuery, ao as httpGet, H as Typography, u as useI18nContext, ap as useFormContext, a6 as Alert, 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 TaskStatusIndicator, av as normalizedTaskStatusStore, aw as Card, ax as StructuredList, ay as IconButton, az as isEmpty$1, ab as useQueryClient, n as useAnalyticsContext, p as useLegalEntity, Z as useUpdateLegalEntity, ah as useMultiForm, aA as getRequiredForms, aB as addValidityToForms, aC as useFormComposer, g as createLogger, q as Loader, aD as FormContextProvider, aE as FormWrapper } from "./core-B-WQPmuP.js";
|
|
12
12
|
import { useState, useRef, useEffect, useMemo, useCallback } from "preact/hooks";
|
|
13
13
|
import { signal } from "@preact/signals";
|
|
14
|
-
import cx from "classnames";
|
|
15
14
|
const getTaxClassification = async (legalEntityId, url) => {
|
|
16
15
|
return httpGet({
|
|
17
16
|
loadingContext: url,
|
|
@@ -49,7 +48,7 @@ const summary = "adyen-kyc-summary";
|
|
|
49
48
|
const summaryTaxStatusCard = "adyen-kyc-summary-tax-status-card";
|
|
50
49
|
const summaryTaxStatusCardHeader = "adyen-kyc-summary-tax-status-card--header";
|
|
51
50
|
const summaryTaxStatusCardBody = "adyen-kyc-summary-tax-status-card--body";
|
|
52
|
-
const styles
|
|
51
|
+
const styles = {
|
|
53
52
|
taxReportingDropin,
|
|
54
53
|
textCenter,
|
|
55
54
|
radioCaption,
|
|
@@ -99,7 +98,7 @@ const getTaxOptionsRadioItems = (i18n, taxRecommendationData, taxReportingClassi
|
|
|
99
98
|
return Object.entries(taxReportingOptionsToShow).map(([key, value]) => ({
|
|
100
99
|
id: key,
|
|
101
100
|
name: key,
|
|
102
|
-
content: /* @__PURE__ */ jsx(Typography, { variant: "body", color: "secondary", className: styles
|
|
101
|
+
content: /* @__PURE__ */ jsx(Typography, { variant: "body", color: "secondary", className: styles.radioCaption, children: i18n.get(value) })
|
|
103
102
|
}));
|
|
104
103
|
};
|
|
105
104
|
const getRecommendedTaxOptionsRadioItems = (i18n, showRecommendation, taxRecommendationData) => {
|
|
@@ -108,7 +107,7 @@ const getRecommendedTaxOptionsRadioItems = (i18n, showRecommendation, taxRecomme
|
|
|
108
107
|
{
|
|
109
108
|
id: taxRecommendationType,
|
|
110
109
|
name: taxRecommendationType,
|
|
111
|
-
content: /* @__PURE__ */ jsx(Typography, { variant: "body", color: "secondary", className: styles
|
|
110
|
+
content: /* @__PURE__ */ jsx(Typography, { variant: "body", color: "secondary", className: styles.radioCaption, children: i18n.get(taxReportingOptions[taxRecommendationType]) })
|
|
112
111
|
}
|
|
113
112
|
] : [];
|
|
114
113
|
};
|
|
@@ -135,8 +134,8 @@ function TaxReportingClassificationForm({
|
|
|
135
134
|
);
|
|
136
135
|
const handleFieldChange = (fieldName, mode) => handleChangeFor(fieldName, "taxClassification", mode);
|
|
137
136
|
return /* @__PURE__ */ jsxs("form", { className: "tax-reporting", children: [
|
|
138
|
-
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h2", className: styles
|
|
139
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body", el: "div", className: styles
|
|
137
|
+
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h2", className: styles.textCenter, children: i18n.get("taxStatusSelfCertification") }),
|
|
138
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", el: "div", className: styles.subtitle, children: /* @__PURE__ */ jsx(
|
|
140
139
|
"div",
|
|
141
140
|
{
|
|
142
141
|
dangerouslySetInnerHTML: {
|
|
@@ -144,9 +143,10 @@ function TaxReportingClassificationForm({
|
|
|
144
143
|
}
|
|
145
144
|
}
|
|
146
145
|
) }),
|
|
146
|
+
((_a = errors == null ? void 0 : errors.type) == null ? void 0 : _a.errorMessage) && /* @__PURE__ */ jsx(Alert, { variant: "error", title: i18n.get(errors.type.errorMessage) }),
|
|
147
147
|
showRecommendation ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
148
148
|
/* @__PURE__ */ jsx(Typography, { variant: "body-stronger", children: i18n.get("recommendedForYourBusiness") }),
|
|
149
|
-
/* @__PURE__ */ jsx(Field, { name: "type", errorMessage: (
|
|
149
|
+
/* @__PURE__ */ jsx(Field, { name: "type", errorMessage: (_b = errors == null ? void 0 : errors.type) == null ? void 0 : _b.errorMessage, children: (childProps) => /* @__PURE__ */ jsx(
|
|
150
150
|
RadioGroup,
|
|
151
151
|
{
|
|
152
152
|
...childProps,
|
|
@@ -158,7 +158,7 @@ function TaxReportingClassificationForm({
|
|
|
158
158
|
) }),
|
|
159
159
|
/* @__PURE__ */ jsx(Typography, { variant: "body-stronger", children: i18n.get("otherOptions") })
|
|
160
160
|
] }) : null,
|
|
161
|
-
/* @__PURE__ */ jsx(Field, { name: "type",
|
|
161
|
+
/* @__PURE__ */ jsx(Field, { name: "type", children: (childProps) => /* @__PURE__ */ jsx(
|
|
162
162
|
RadioGroup,
|
|
163
163
|
{
|
|
164
164
|
...childProps,
|
|
@@ -176,7 +176,7 @@ function TaxReporting(props) {
|
|
|
176
176
|
const { errors, valid, fieldProblems: fieldValidationErrors } = form;
|
|
177
177
|
const { activeForm: propActiveForm, taxReportingClassification, taxRecommendationData } = props;
|
|
178
178
|
const classificationFormProps = getFormProps(props, taxClassificationFormID);
|
|
179
|
-
const renderActiveForm = (activeForm) => /* @__PURE__ */ jsx(Fragment, { children: (activeForm == null ? void 0 : activeForm.formId) === taxClassificationFormID && /* @__PURE__ */ jsx("div", { className: styles
|
|
179
|
+
const renderActiveForm = (activeForm) => /* @__PURE__ */ jsx(Fragment, { children: (activeForm == null ? void 0 : activeForm.formId) === taxClassificationFormID && /* @__PURE__ */ jsx("div", { className: styles.taxReportingDropinFormContainer, children: /* @__PURE__ */ jsx(
|
|
180
180
|
TaxReportingClassificationForm,
|
|
181
181
|
{
|
|
182
182
|
...classificationFormProps,
|
|
@@ -205,67 +205,18 @@ function TaxReporting(props) {
|
|
|
205
205
|
renderActiveForm(propActiveForm)
|
|
206
206
|
] });
|
|
207
207
|
}
|
|
208
|
-
const inTaskStatus = "adyen-kyc-in-task-status";
|
|
209
|
-
const inTaskStatusIndicator = "adyen-kyc-in-task-status-indicator";
|
|
210
|
-
const inTaskStatusIndicatorSuccess = "adyen-kyc-in-task-status-indicator-success";
|
|
211
|
-
const inTaskStatusIndicatorError = "adyen-kyc-in-task-status-indicator-error";
|
|
212
|
-
const inTaskStatusIndicatorWarning = "adyen-kyc-in-task-status-indicator-warning";
|
|
213
|
-
const inTaskStatusLabel = "adyen-kyc-in-task-status-label";
|
|
214
|
-
const styles = {
|
|
215
|
-
inTaskStatus,
|
|
216
|
-
inTaskStatusIndicator,
|
|
217
|
-
inTaskStatusIndicatorSuccess,
|
|
218
|
-
inTaskStatusIndicatorError,
|
|
219
|
-
inTaskStatusIndicatorWarning,
|
|
220
|
-
inTaskStatusLabel
|
|
221
|
-
};
|
|
222
|
-
const getIndicatorLabelAndClassnames = ({
|
|
223
|
-
variant
|
|
224
|
-
}) => {
|
|
225
|
-
if (variant === "success") {
|
|
226
|
-
return {
|
|
227
|
-
indicatorLabel: "taskComplete",
|
|
228
|
-
indicatorClassname: styles.inTaskStatusIndicatorSuccess
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
if (variant === "inProgress") {
|
|
232
|
-
return {
|
|
233
|
-
indicatorLabel: "taskInProgress",
|
|
234
|
-
indicatorClassname: styles.inTaskStatusIndicatorWarning
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
return {
|
|
238
|
-
indicatorLabel: "taskHasErrors",
|
|
239
|
-
indicatorClassname: styles.inTaskStatusIndicatorError
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
const TaskStatusIndicator = ({ variant, label }) => {
|
|
243
|
-
const { i18n } = useI18nContext();
|
|
244
|
-
const { indicatorLabel, indicatorClassname } = getIndicatorLabelAndClassnames({ variant });
|
|
245
|
-
const labelToRender = label ?? i18n.get(indicatorLabel);
|
|
246
|
-
return /* @__PURE__ */ jsxs("div", { className: styles.inTaskStatus, children: [
|
|
247
|
-
/* @__PURE__ */ jsx(
|
|
248
|
-
"div",
|
|
249
|
-
{
|
|
250
|
-
"data-testid": "task-status-indicator",
|
|
251
|
-
className: cx(styles.inTaskStatusIndicator, indicatorClassname)
|
|
252
|
-
}
|
|
253
|
-
),
|
|
254
|
-
/* @__PURE__ */ jsx("div", { className: styles.inTaskStatusLabel, children: labelToRender })
|
|
255
|
-
] });
|
|
256
|
-
};
|
|
257
208
|
const TaxReportingGettingStarted = ({
|
|
258
209
|
handleToggleFormVisible,
|
|
259
210
|
handleCancelClick,
|
|
260
211
|
taxReportingClassification
|
|
261
212
|
}) => {
|
|
262
|
-
var _a;
|
|
213
|
+
var _a, _b, _c, _d;
|
|
263
214
|
const { i18n } = useI18nContext();
|
|
264
215
|
const hasTaxReportingClassification = !isEmpty(
|
|
265
216
|
(_a = taxReportingClassification == null ? void 0 : taxReportingClassification.taxClassification) == null ? void 0 : _a.type
|
|
266
217
|
);
|
|
267
218
|
const taxStatusSummary = getTaxStatusSummary(i18n, taxReportingClassification);
|
|
268
|
-
return /* @__PURE__ */ jsxs("div", { className: styles
|
|
219
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.taxReportingDropinGettingStarted, children: [
|
|
269
220
|
!hasTaxReportingClassification && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
270
221
|
/* @__PURE__ */ jsx(
|
|
271
222
|
Svg,
|
|
@@ -318,17 +269,21 @@ const TaxReportingGettingStarted = ({
|
|
|
318
269
|
] }),
|
|
319
270
|
hasTaxReportingClassification && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
320
271
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
321
|
-
/* @__PURE__ */ jsx(
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
272
|
+
/* @__PURE__ */ jsx(
|
|
273
|
+
TaskStatusIndicator,
|
|
274
|
+
{
|
|
275
|
+
taskStatus: (_d = (_c = (_b = normalizedTaskStatusStore) == null ? void 0 : _b.value) == null ? void 0 : _c.TAX_REPORTING) == null ? void 0 : _d.status
|
|
276
|
+
}
|
|
277
|
+
),
|
|
278
|
+
/* @__PURE__ */ jsx(Typography, { className: styles.textCenter, el: "h2", variant: "title-l", children: i18n.get("selfCertifiedTaxStatus") }),
|
|
279
|
+
/* @__PURE__ */ jsx(Typography, { className: styles.subtitle, el: "div", variant: "body", children: i18n.get("noFurtherActionOrRecertificationIsNeeded") }),
|
|
280
|
+
/* @__PURE__ */ jsx("div", { className: styles.summary, children: /* @__PURE__ */ jsx(
|
|
325
281
|
Card,
|
|
326
282
|
{
|
|
327
|
-
className: styles
|
|
328
|
-
headerClassName: styles
|
|
329
|
-
bodyClassName: styles
|
|
283
|
+
className: styles.summaryTaxStatusCard,
|
|
284
|
+
headerClassName: styles.summaryTaxStatusCardHeader,
|
|
285
|
+
bodyClassName: styles.summaryTaxStatusCardBody,
|
|
330
286
|
title: i18n.get("taxStatus"),
|
|
331
|
-
stateful: true,
|
|
332
287
|
headerButton: /* @__PURE__ */ jsx(
|
|
333
288
|
IconButton,
|
|
334
289
|
{
|
|
@@ -338,7 +293,13 @@ const TaxReportingGettingStarted = ({
|
|
|
338
293
|
variant: "tertiary"
|
|
339
294
|
}
|
|
340
295
|
),
|
|
341
|
-
children: /* @__PURE__ */ jsx(
|
|
296
|
+
children: /* @__PURE__ */ jsx(
|
|
297
|
+
StructuredList,
|
|
298
|
+
{
|
|
299
|
+
className: styles.summaryTaxStatusCardDescription,
|
|
300
|
+
items: taxStatusSummary
|
|
301
|
+
}
|
|
302
|
+
)
|
|
342
303
|
}
|
|
343
304
|
) })
|
|
344
305
|
] }),
|
|
@@ -354,6 +315,13 @@ const TaxReportingGettingStarted = ({
|
|
|
354
315
|
] })
|
|
355
316
|
] });
|
|
356
317
|
};
|
|
318
|
+
const taxReportingTypeValidations = {
|
|
319
|
+
type: {
|
|
320
|
+
modes: ["blur"],
|
|
321
|
+
validate: (type) => !isEmpty$1(type),
|
|
322
|
+
errorMessage: "chooseATaxStatusOptionToContinue"
|
|
323
|
+
}
|
|
324
|
+
};
|
|
357
325
|
const logger = createLogger();
|
|
358
326
|
function TaxReportingDropin({ problems, handleHomeClick }) {
|
|
359
327
|
var _a, _b, _c, _d, _e;
|
|
@@ -365,31 +333,7 @@ function TaxReportingDropin({ problems, handleHomeClick }) {
|
|
|
365
333
|
const { data: taxRecommendationData, isLoading: isLoadingTaxRecommendationData } = useTaxClassification();
|
|
366
334
|
const userEvents = useAnalyticsContext();
|
|
367
335
|
const { data: legalEntityData, isLoading } = useLegalEntity();
|
|
368
|
-
const {
|
|
369
|
-
onSuccess: async () => {
|
|
370
|
-
await queryClient.invalidateQueries({
|
|
371
|
-
queryKey: ["legalEntity"],
|
|
372
|
-
refetchType: "all"
|
|
373
|
-
});
|
|
374
|
-
await queryClient.invalidateQueries({
|
|
375
|
-
queryKey: ["taxClassification"],
|
|
376
|
-
refetchType: "all"
|
|
377
|
-
});
|
|
378
|
-
await queryClient.invalidateQueries({
|
|
379
|
-
queryKey: ["taskStatus"],
|
|
380
|
-
refetchType: "all"
|
|
381
|
-
});
|
|
382
|
-
handleHomeClick == null ? void 0 : handleHomeClick();
|
|
383
|
-
setFormVisible(false);
|
|
384
|
-
gotoFormByFormIndex(0);
|
|
385
|
-
setTaxClassificationErrorMessage("");
|
|
386
|
-
setLoadingStatus("success");
|
|
387
|
-
},
|
|
388
|
-
onError: (e) => {
|
|
389
|
-
setTaxClassificationErrorMessage((e == null ? void 0 : e.message) || i18n.get("errorUpdatingTaxClassification"));
|
|
390
|
-
setLoadingStatus("success");
|
|
391
|
-
}
|
|
392
|
-
});
|
|
336
|
+
const { mutateAsync: updateLegalEntityMutation } = useUpdateLegalEntity();
|
|
393
337
|
useEffect(() => {
|
|
394
338
|
clearTaxClassificationErrorMessage();
|
|
395
339
|
}, []);
|
|
@@ -417,6 +361,9 @@ function TaxReportingDropin({ problems, handleHomeClick }) {
|
|
|
417
361
|
);
|
|
418
362
|
const form = useMultiForm({
|
|
419
363
|
requiredFields: taxReportingRequiredFields,
|
|
364
|
+
rules: {
|
|
365
|
+
taxClassification: taxReportingTypeValidations
|
|
366
|
+
},
|
|
420
367
|
defaultData
|
|
421
368
|
});
|
|
422
369
|
const { data = taxReportingClassification, setData, triggerValidation } = form;
|
|
@@ -477,8 +424,20 @@ function TaxReportingDropin({ problems, handleHomeClick }) {
|
|
|
477
424
|
}
|
|
478
425
|
};
|
|
479
426
|
try {
|
|
480
|
-
updateLegalEntityMutation(legalEntityPayload);
|
|
427
|
+
await updateLegalEntityMutation(legalEntityPayload);
|
|
428
|
+
await queryClient.invalidateQueries({
|
|
429
|
+
queryKey: ["taxClassification"]
|
|
430
|
+
});
|
|
431
|
+
await queryClient.invalidateQueries({
|
|
432
|
+
queryKey: ["taskStatus"]
|
|
433
|
+
});
|
|
434
|
+
handleHomeClick == null ? void 0 : handleHomeClick();
|
|
435
|
+
setFormVisible(false);
|
|
436
|
+
gotoFormByFormIndex(0);
|
|
437
|
+
setTaxClassificationErrorMessage("");
|
|
438
|
+
setLoadingStatus("success");
|
|
481
439
|
} catch (e) {
|
|
440
|
+
setTaxClassificationErrorMessage((e == null ? void 0 : e.message) || i18n.get("errorUpdatingTaxClassification"));
|
|
482
441
|
logger.log("Error updating source of funds", e);
|
|
483
442
|
setLoadingStatus("success");
|
|
484
443
|
}
|
|
@@ -495,9 +454,10 @@ function TaxReportingDropin({ problems, handleHomeClick }) {
|
|
|
495
454
|
} = useFormComposer({
|
|
496
455
|
problems,
|
|
497
456
|
forms,
|
|
498
|
-
onSubmit: handleSubmit
|
|
457
|
+
onSubmit: handleSubmit,
|
|
458
|
+
triggerValidation: form.triggerValidation
|
|
499
459
|
});
|
|
500
|
-
return /* @__PURE__ */ jsx("div", { className: styles
|
|
460
|
+
return /* @__PURE__ */ jsx("div", { className: styles.taxReportingDropin, children: isLoading || isLoadingTaxRecommendationData ? /* @__PURE__ */ jsx(Loader, { size: "medium" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
501
461
|
!formVisible && /* @__PURE__ */ jsx(
|
|
502
462
|
TaxReportingGettingStarted,
|
|
503
463
|
{
|