@adyen/kyc-components 3.78.1 → 3.79.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-CALk_lYs.js → AcceptTermsOfServiceComponent-BYhhk8TQ.js} +14 -12
- package/dist/{AccountSetupRejected-B4it2mAn.js → AccountSetupRejected-BEOktFiG.js} +2 -2
- package/dist/{Avatar-DTNBQIw4.js → Avatar-Bpx1BiR6.js} +2 -2
- package/dist/{BusinessDetailsDropin-BbiQUpTu.js → BusinessDetailsDropin-DQ9HiW45.js} +71 -8
- package/dist/{BusinessFinancingComponent-CoGow_z4.js → BusinessFinancingComponent-Cvo9_fno.js} +2 -2
- package/dist/{BusinessFinancingDropin-BUDDEt2y.js → BusinessFinancingDropin-msfodTyQ.js} +8 -8
- package/dist/{BusinessFinancingPage-Dx_hYx0g.js → BusinessFinancingPage-B5Xw-yH6.js} +2 -2
- package/dist/{BusinessTypeSelectionPage-R-vVja1w.js → BusinessTypeSelectionPage-Bxdhq03c.js} +4 -4
- package/dist/{ContractViewer-BUrLFkjz.js → ContractViewer-C7uRvIMH.js} +2 -2
- package/dist/{CreateIndividualComponent-CheH_tkQ.js → CreateIndividualComponent-DyaVsMAQ.js} +3 -3
- package/dist/{CreateTransferInstrumentComponent-CzT-zIuq.js → CreateTransferInstrumentComponent-BdA8RAKi.js} +2 -2
- package/dist/{CustomerSupport-eBFsBh5z.js → CustomerSupport-BMuEw9QX.js} +5 -5
- package/dist/{DebugModal-DSJ2Bu7L.js → DebugModal-CH_a1xPp.js} +8 -8
- package/dist/{DecisionMakerDetailsPage-D9HX27JP.js → DecisionMakerDetailsPage-_Vcfi13i.js} +3 -3
- package/dist/{DecisionMakers-DtEzrxlu.js → DecisionMakers-CgeGEEUz.js} +4 -4
- package/dist/{EmbeddedStatus-DW2KDeVq.js → EmbeddedStatus-DdJkMzzq.js} +6 -6
- package/dist/{FormEndState-CFsbWpxb.js → FormEndState-B4BOXD6K.js} +2 -2
- package/dist/{FormFlow-DCykB5i5.js → FormFlow-DBUPE96g.js} +2 -2
- package/dist/{IndividualOnfidoDropin-BSlyi20E.js → IndividualOnfidoDropin-yD8J8_wV.js} +17 -23
- package/dist/{Introduction-BZi_bthG.js → Introduction-j3go43kb.js} +3 -3
- package/dist/LandingLayout-CWUiKZ_Y.js +139 -0
- package/dist/{LegalRepresentativeDetailsPage-BIoRbtw2.js → LegalRepresentativeDetailsPage-DnzUpBDG.js} +3 -3
- package/dist/{ManageIndividualComponent-DMjlsbAy.js → ManageIndividualComponent-DTeTqAUr.js} +3 -3
- package/dist/{ManagePCIComponent-DBZfPp3V.js → ManagePCIComponent-Cn4Vuewf.js} +3 -3
- package/dist/{ManageTermsOfServiceComponent-DKETCed8.js → ManageTermsOfServiceComponent-DTXnAMhG.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-BSmYg0hN.js → ManageTransferInstrumentComponent-CBYehx_t.js} +4 -4
- package/dist/{OnboardingDropinComponent-BIYee1P5.js → OnboardingDropinComponent-DWcyxz6X.js} +35 -35
- package/dist/{ProviderButton-68h5aop6.js → ProviderButton-ChnPixpz.js} +9 -9
- package/dist/{Review-B64WSoNY.js → Review-C01An3Wl.js} +3 -3
- package/dist/{RootBusinessDetailsPage-pLFlImAT.js → RootBusinessDetailsPage-C8ZdxDW9.js} +3 -3
- package/dist/{RootIndividualDetailsPage-DNB6X1fo.js → RootIndividualDetailsPage-DDIrbB7-.js} +3 -3
- package/dist/{SignPCIComponent-C1FVDlrB.js → SignPCIComponent-J8gdxoQ0.js} +5 -5
- package/dist/{SingpassSelection-CYGyZdB5.js → SingpassSelection-BHFjqKtb.js} +2 -2
- package/dist/{SoleProprietorshipPage-B7edHXYn.js → SoleProprietorshipPage-B3toOI2F.js} +3 -3
- package/dist/{SourceOfFundsPage-Bl_iGS7M.js → SourceOfFundsPage-CBxjQ8zJ.js} +117 -50
- package/dist/{StoreProvider-C_CN8zyd.js → StoreProvider-DJxvFnRD.js} +5723 -5579
- package/dist/{TaskItemStatus-BSA2z5Iz.js → TaskItemStatus-CK1qrdCf.js} +2 -2
- package/dist/{TaxReportingDropin-CAUNn0j2.js → TaxReportingDropin-O_fR1zLM.js} +23 -54
- package/dist/{TileGroup-WyUkfpOq.js → TileGroup-D-vnIebh.js} +2 -2
- package/dist/{TrustDetailsPage-BL01OsYz.js → TrustDetailsPage-DQltmdcB.js} +5 -5
- package/dist/{TrustMemberCompanyPage-DUahXkBs.js → TrustMemberCompanyPage-C9uS0UYc.js} +4 -4
- package/dist/{TrustMemberIndividualPage-Q_ILxUsL.js → TrustMemberIndividualPage-8rMdNNNf.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-ByeOd96j.js → UnincorporatedPartnershipIndividualPage-ByhDF63-.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DfnEI10w.js → UnincorporatedPartnershipMemberCompanyPage-BwjX8pqP.js} +3 -3
- package/dist/{VerificationErrorAlert-BdX_bk-t.js → VerificationErrorAlert-DFjfc2SU.js} +8 -6
- package/dist/{ViewVerificationStatusComponent-DxSqjkK8.js → ViewVerificationStatusComponent-Dp24LJ_o.js} +3 -3
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +22 -14
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-pci.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +2 -2
- package/dist/adyen-manage-transfer-instruments.js +2 -2
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-sign-pci.js +2 -2
- package/dist/adyen-terms-of-service.js +2 -2
- package/dist/adyen-transfer-instrument.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/bg-BG-BvSUDgGF.js +13 -0
- package/dist/bg-BG-HpLj_LOM.js +16 -0
- package/dist/cs-CZ-CQ_M3lEp.js +16 -0
- package/dist/cs-CZ-y4mvq4Lv.js +13 -0
- package/dist/{css-Shm8LIVZ.js → css-BtsHqofY.js} +2 -2
- package/dist/da-DK-k4JW3iVF.js +16 -0
- package/dist/da-DK-qgQOVjDp.js +13 -0
- package/dist/de-DE-C7mjtS5w.js +16 -0
- package/dist/de-DE-pSdsxBpQ.js +13 -0
- package/dist/el-GR-Bvjk5Sw8.js +13 -0
- package/dist/el-GR-CEQrkYHW.js +16 -0
- package/dist/en-US-DDagIr01.js +16 -0
- package/dist/es-ES-DB1c74Kv.js +16 -0
- package/dist/es-ES-Dy1uR2H_.js +13 -0
- package/dist/et-EE-d9V24rcf.js +13 -0
- package/dist/et-EE-xIegUSuv.js +16 -0
- package/dist/fi-FI-B0fnAFV2.js +13 -0
- package/dist/fi-FI-NCxneAqU.js +16 -0
- package/dist/fr-FR-BoKzVp2q.js +13 -0
- package/dist/fr-FR-daiUnUwo.js +16 -0
- package/dist/{getFieldsWithExistingData-FB3OWEkp.js → getFieldsWithExistingData-BtvDAW-l.js} +2 -2
- package/dist/{hasDataChanged-DPdMlQpS.js → hasDataChanged-DcG85sRa.js} +1 -1
- package/dist/hr-HR-BAUywqDj.js +16 -0
- package/dist/hr-HR-CF0AHQzi.js +13 -0
- package/dist/hu-HU-3GQojIHR.js +16 -0
- package/dist/hu-HU-CSPhOvLC.js +13 -0
- package/dist/it-IT-BH-eqIKH.js +13 -0
- package/dist/it-IT-pDWPFHEh.js +16 -0
- package/dist/ja-JP-B3yqM_FM.js +13 -0
- package/dist/ja-JP-scPXJ93L.js +16 -0
- package/dist/{json-BoKnQ33j.js → json-IilfysQm.js} +2 -2
- package/dist/{localizeDateString-Bt8M0P5i.js → localizeDateString-DXUTHzgL.js} +1 -1
- package/dist/lt-LT-BcGNy8Ti.js +16 -0
- package/dist/lt-LT-Lzl_Cbw-.js +13 -0
- package/dist/lv-LV-CBD07r1Y.js +16 -0
- package/dist/lv-LV-y00wN1pj.js +13 -0
- package/dist/{mapFinancialReportsToFinancialInformation-BWJUvu-v.js → mapFinancialReportsToFinancialInformation-Blm5alO_.js} +2 -2
- package/dist/nl-NL-BxJUDHMK.js +16 -0
- package/dist/nl-NL-DmnFXAQC.js +13 -0
- package/dist/no-NO-DbvFfP96.js +13 -0
- package/dist/no-NO-Drup6Jyy.js +16 -0
- package/dist/pl-PL--mmxopYA.js +13 -0
- package/dist/pl-PL-BXv8Mmzb.js +16 -0
- package/dist/{plaintext-D6ArdwCo.js → plaintext-Df_IEi_C.js} +2 -2
- package/dist/pt-PT-BVzXBFp7.js +13 -0
- package/dist/pt-PT-D8nU-UM2.js +16 -0
- package/dist/{resolveEnvironment-Bj2dnNqq.js → resolveEnvironment-DCR05dlR.js} +3 -3
- package/dist/ro-RO-CG33OwqS.js +16 -0
- package/dist/ro-RO-Cdmevo9A.js +13 -0
- package/dist/{rules-f7BBCo7l.js → rules-DRgmFncu.js} +2 -2
- package/dist/sk-SK-DV_xkO69.js +16 -0
- package/dist/sk-SK-nfeuTcY5.js +13 -0
- package/dist/sl-SI-B5yeoadY.js +16 -0
- package/dist/sl-SI-DUTZDqkP.js +13 -0
- package/dist/style.css +126 -74
- package/dist/styles-CLV89_hH.js +126 -74
- package/dist/sv-SE-BTx2XKAp.js +13 -0
- package/dist/sv-SE-CfxyR53r.js +16 -0
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +1 -0
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +4 -0
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +12 -0
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/types.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -3
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRoleAndType.d.ts +1 -2
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +3 -3
- package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +10 -0
- package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +8 -0
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +1 -2
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +2 -2
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/core/models/api/legal-arrangement.d.ts +8 -0
- package/dist/types/core/models/api/organization.d.ts +8 -0
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +28 -0
- package/dist/types/language/Language.d.ts +0 -7
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +1 -0
- package/dist/types/utils/regex/patternValidators.d.ts +2 -0
- package/dist/{useMultiForm-BrNel_mc.js → useMultiForm-DNEiitFq.js} +2 -2
- package/dist/{useOnboardingStatus-BE1z1eUt.js → useOnboardingStatus-orr6iwF9.js} +1 -1
- package/dist/{useSalesChannelsSettings-nYpTkuYo.js → useSalesChannelsSettings-B8WCV-4A.js} +1 -1
- package/dist/{useTermsOfServiceStatus-YHUiTdhT.js → useTermsOfServiceStatus-BHg3MVR-.js} +1 -1
- package/dist/{useUpdateLegalEntity-Csc_isIR.js → useUpdateLegalEntity-SM0TLT5D.js} +1 -1
- package/dist/{utils-CdkXwLGZ.js → utils-DhHlD6W3.js} +4 -4
- package/dist/{validate-B6FOA4Ta.js → validate-CEDlgqDf.js} +2 -2
- package/dist/{yaml-BsoWkUaV.js → yaml-BSMtY3K-.js} +2 -2
- package/package.json +2 -2
- package/dist/SourceOfFunds.module-C6_DeyyN.js +0 -128
- package/dist/bg-BG-BJEwX54-.js +0 -13
- package/dist/cs-CZ-0aKeukjR.js +0 -13
- package/dist/da-DK-BiQSdU1f.js +0 -13
- package/dist/de-DE-Dx-1f5v5.js +0 -13
- package/dist/el-GR-DNpOiXlS.js +0 -13
- package/dist/es-ES-CtpW_j9H.js +0 -13
- package/dist/et-EE-CMNzVzun.js +0 -13
- package/dist/fi-FI-DVdPICca.js +0 -13
- package/dist/fr-FR-BwbkqjVl.js +0 -13
- package/dist/hr-HR-BZ_Eg80E.js +0 -13
- package/dist/hu-HU-CJg6YVP9.js +0 -13
- package/dist/it-IT-CQKKYAgU.js +0 -13
- package/dist/ja-JP-DVefHilf.js +0 -13
- package/dist/lt-LT-VPxl7F_u.js +0 -13
- package/dist/lv-LV-DAuc68rg.js +0 -13
- package/dist/nl-NL-DwjbYj_Q.js +0 -13
- package/dist/no-NO-CvXFRRN-.js +0 -13
- package/dist/pl-PL-Bdl7Nmzc.js +0 -13
- package/dist/pt-PT-DxxkYoPz.js +0 -13
- package/dist/ro-RO-hnKiFjCy.js +0 -13
- package/dist/sk-SK-DwwhojyK.js +0 -13
- package/dist/sl-SI-YYS0gksL.js +0 -13
- package/dist/sv-SE-Dc4DCQEl.js +0 -13
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/RichText.d.ts +0 -5
- package/dist/types/utils/sanitizeHtml.d.ts +0 -3
package/dist/{RootIndividualDetailsPage-DNB6X1fo.js → RootIndividualDetailsPage-DDIrbB7-.js}
RENAMED
|
@@ -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] = "66e47061-b341-43ff-9b3d-d7078acecee3", e._sentryDebugIdIdentifier = "sentry-dbid-66e47061-b341-43ff-9b3d-d7078acecee3");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useLegalEntity, R as ROOT_LE,
|
|
12
|
-
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-
|
|
11
|
+
import { a as useLegalEntity, R as ROOT_LE, ac as useCapabilityProblems, a7 as useExperimentsContext, P as useAccountHolder, L as Loader, g as getLegalEntityCountry, G as isPartOfTrustFromLegalEntity, bk as getProblemsForEntity, U as EntityType, bl as isOnfidoAutofillFlowEnabled, W as TaskTypes, a5 as noop } from "./StoreProvider-DJxvFnRD.js";
|
|
12
|
+
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-yD8J8_wV.js";
|
|
13
13
|
function RootIndividualDetailsPage({
|
|
14
14
|
asModal = false,
|
|
15
15
|
hideSidebar = false,
|
|
@@ -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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0761efbf-4f0c-447b-a8da-f3115e3f16d2", e._sentryDebugIdIdentifier = "sentry-dbid-0761efbf-4f0c-447b-a8da-f3115e3f16d2");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { p as useApiContext, q as useQuery, bj as httpPost, bg as useInvalidateRootLegalEntity, bh as useMutation,
|
|
12
|
-
import { u as useSalesChannelsSettings, a as usePciStatus } from "./useSalesChannelsSettings-
|
|
13
|
-
import { O as OutlinedIcon, C as ContractViewer } from "./ContractViewer-
|
|
14
|
-
import { F as FormEndState } from "./FormEndState-
|
|
11
|
+
import { p as useApiContext, q as useQuery, bj as httpPost, bg as useInvalidateRootLegalEntity, bh as useMutation, aq as isEmpty, b as useI18nContext, a0 as useAnalyticsContext, a6 as useToastContext, av as useForm, bx as getOwnDecisionMakers, y as LegalEntityType, W as TaskTypes, bv as MaybeModal, b6 as ModalContent, _ as Button, a3 as LoaderWrapper, aA as Field, bt as Select, bu as Checkbox, b8 as ModalFooter, b9 as Spacer, a as useLegalEntity, R as ROOT_LE, L as Loader } from "./StoreProvider-DJxvFnRD.js";
|
|
12
|
+
import { u as useSalesChannelsSettings, a as usePciStatus } from "./useSalesChannelsSettings-B8WCV-4A.js";
|
|
13
|
+
import { O as OutlinedIcon, C as ContractViewer } from "./ContractViewer-C7uRvIMH.js";
|
|
14
|
+
import { F as FormEndState } from "./FormEndState-B4BOXD6K.js";
|
|
15
15
|
import { useState, useCallback, useEffect } from "preact/hooks";
|
|
16
16
|
const getPciTemplate = async (legalEntityId, baseUrl, data) => {
|
|
17
17
|
return httpPost(
|
|
@@ -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] = "30ff0c48-0db9-4c90-826a-79b8aeb6b94a", e._sentryDebugIdIdentifier = "sentry-dbid-30ff0c48-0db9-4c90-826a-79b8aeb6b94a");
|
|
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 { b as useI18nContext,
|
|
12
|
+
import { b as useI18nContext, av as useForm, C as Typography, aA as Field, aD as RadioGroupCard, _ as Button, bo as Svg, y as LegalEntityType } from "./StoreProvider-DJxvFnRD.js";
|
|
13
13
|
const setupAccountMethods = ["singpass", "manual"];
|
|
14
14
|
const setupAccountMethodFields = ["setupAccountMethod"];
|
|
15
15
|
const getSingpassSelectionDisabled = (legalEntityType) => {
|
|
@@ -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] = "326b5ecb-9ab1-476b-91f2-1a9235ba5a8e", e._sentryDebugIdIdentifier = "sentry-dbid-326b5ecb-9ab1-476b-91f2-1a9235ba5a8e");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useLegalEntity, R as ROOT_LE, w as skipToken,
|
|
12
|
-
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-
|
|
11
|
+
import { a as useLegalEntity, R as ROOT_LE, w as skipToken, ac as useCapabilityProblems, L as Loader, bk as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry, W as TaskTypes } from "./StoreProvider-DJxvFnRD.js";
|
|
12
|
+
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-DQ9HiW45.js";
|
|
13
13
|
function SoleProprietorshipPage({
|
|
14
14
|
solePropId,
|
|
15
15
|
isTargetLegalEntityType = false,
|
|
@@ -2,25 +2,25 @@
|
|
|
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] = "3d313b2e-3e34-4615-bcf5-eaf2b78ae876", e._sentryDebugIdIdentifier = "sentry-dbid-3d313b2e-3e34-4615-bcf5-eaf2b78ae876");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { p as useApiContext, q as useQuery, r as httpGet, bg as useInvalidateRootLegalEntity, bh as useMutation, bj as httpPost,
|
|
11
|
+
import { p as useApiContext, q as useQuery, r as httpGet, bg as useInvalidateRootLegalEntity, bh as useMutation, bj as httpPost, bz as formatObject, y as LegalEntityType, C as Typography, eA as Currencies, b as useI18nContext, aA as Field, eB as InputGroup, bt as Select, bD as InputText, bF as InputDate, aE as TextArea, aX as RadioGroup, aG as CountryField, b4 as Modal, B as Alert, _ as Button, ba as Confirm, aq as isEmpty, av as useForm, eC as useGlobalDataSlice, ay as ErrorPanel, az as createFormUtils, L as Loader, a4 as Icon, dr as getFormProps, a1 as Card, b7 as StructuredList, $ as IconButton, dh as isEmpty$1, bo as Svg, a6 as useToastContext, X as createLogger, eD as Dropzone, ck as createDocumentRequest, bp as useQueryClient, a as useLegalEntity, R as ROOT_LE, ef as useStateContext, a0 as useAnalyticsContext, eE as useLegalEntities, cx as getPropsFromConfigurations, bP as getRequiredForms, bQ as addValidityToForms, bR as useFormComposer, co as documentApiUtils, el as FormWrapper, ac as useCapabilityProblems, bk as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry } from "./StoreProvider-DJxvFnRD.js";
|
|
12
12
|
import { useState, useMemo, useEffect, useCallback, useRef } from "preact/hooks";
|
|
13
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { h as hasDataChanged } from "./hasDataChanged-
|
|
13
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-SM0TLT5D.js";
|
|
14
|
+
import { h as hasDataChanged } from "./hasDataChanged-DcG85sRa.js";
|
|
15
15
|
import { signal } from "@preact/signals";
|
|
16
|
-
import { s as styles, T as TaskStatusIndicator } from "./SourceOfFunds.module-C6_DeyyN.js";
|
|
17
16
|
import { a as formatAmountWithCurrency } from "./formatCurrency-CMOSdJMB.js";
|
|
18
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
17
|
+
import { l as localizeDateString } from "./localizeDateString-DXUTHzgL.js";
|
|
19
18
|
import { t as toCapitalized } from "./toCapitalized-Bq7laD0b.js";
|
|
20
|
-
import { A as Avatar } from "./Avatar-
|
|
19
|
+
import { A as Avatar } from "./Avatar-Bpx1BiR6.js";
|
|
21
20
|
import { v as validateDateNotInTheFuture } from "./validate-CuwYJGc9.js";
|
|
22
|
-
import { T as TileGroup } from "./TileGroup-
|
|
23
|
-
import {
|
|
21
|
+
import { T as TileGroup } from "./TileGroup-D-vnIebh.js";
|
|
22
|
+
import { L as LandingLayout, T as TaskStatusIndicator } from "./LandingLayout-CWUiKZ_Y.js";
|
|
23
|
+
import { n as normalizedTaskStatusStore } from "./OnboardingDropinComponent-DWcyxz6X.js";
|
|
24
24
|
const getBusinessLines = async (legalEntityId, baseUrl) => {
|
|
25
25
|
return httpGet({
|
|
26
26
|
baseUrl,
|
|
@@ -98,6 +98,62 @@ const useSourceOfFundsTypes = (options) => {
|
|
|
98
98
|
...options
|
|
99
99
|
});
|
|
100
100
|
};
|
|
101
|
+
const sourceOfFunds = "adyen-kyc-source-of-funds";
|
|
102
|
+
const sourceOfFundsWrapperLoading = "adyen-kyc-source-of-funds-wrapper-loading";
|
|
103
|
+
const sourceOfFundsWrapperHeading = "adyen-kyc-source-of-funds-wrapper-heading";
|
|
104
|
+
const sourceOfFundsWrapperDescription = "adyen-kyc-source-of-funds-wrapper-description";
|
|
105
|
+
const sourceOfFundsGettingStarted = "adyen-kyc-source-of-funds-getting-started";
|
|
106
|
+
const sourceOfFundsGettingStartedHeading = "adyen-kyc-source-of-funds-getting-started-heading";
|
|
107
|
+
const sourceOfFundsGettingStartedBody = "adyen-kyc-source-of-funds-getting-started-body";
|
|
108
|
+
const sourceOfFundsGettingStartedError = "adyen-kyc-source-of-funds-getting-started-error";
|
|
109
|
+
const sourceOfFundsGettingStartedErrorActions = "adyen-kyc-source-of-funds-getting-started-error-actions";
|
|
110
|
+
const sourceOfFundsGettingStartedCards = "adyen-kyc-source-of-funds-getting-started-cards";
|
|
111
|
+
const sourceOfFundsGettingStartedCardsCard = "adyen-kyc-source-of-funds-getting-started-cards-card";
|
|
112
|
+
const sourceOfFundsGettingStartedCardsCardHeader = "adyen-kyc-source-of-funds-getting-started-cards-card-header";
|
|
113
|
+
const sourceOfFundsGettingStartedCardsCardBody = "adyen-kyc-source-of-funds-getting-started-cards-card-body";
|
|
114
|
+
const sourceOfFundsGettingStartedActions = "adyen-kyc-source-of-funds-getting-started-actions";
|
|
115
|
+
const sourceOfFundsAdditionalDataForm = "adyen-kyc-source-of-funds-additional-data-form";
|
|
116
|
+
const sourceOfFundsThirdPartyFundingFinancierGroup = "adyen-kyc-source-of-funds-third-party-funding-financier-group";
|
|
117
|
+
const sourceOfFundsThirdPartyFundingNameAvatarGroup = "adyen-kyc-source-of-funds-third-party-funding-name-avatar-group";
|
|
118
|
+
const sourceOfFundsThirdPartyFundingNameAddressGroup = "adyen-kyc-source-of-funds-third-party-funding-name-address-group";
|
|
119
|
+
const sourceOfFundsSofFinancierFormError = "adyen-kyc-source-of-funds-sof-financier-form-error";
|
|
120
|
+
const sourceOfFundsSofFinancierFormNameGroup = "adyen-kyc-source-of-funds-sof-financier-form-name-group";
|
|
121
|
+
const sourceOfFundsFinancierFooter = "adyen-kyc-source-of-funds-financier-footer";
|
|
122
|
+
const sourceOfFundsGridContainer = "adyen-kyc-source-of-funds-grid-container";
|
|
123
|
+
const sourceOfFundsUploadModalContentField = "adyen-kyc-source-of-funds-upload-modal-content-field";
|
|
124
|
+
const sourceOfFundsUploadModalContentFieldRadioGroup = "adyen-kyc-source-of-funds-upload-modal-content-field-radio-group";
|
|
125
|
+
const sourceOfFundsUploadModalContentRequirementsContainer = "adyen-kyc-source-of-funds-upload-modal-content-requirements-container";
|
|
126
|
+
const sourceOfFundsUploadListHeading = "adyen-kyc-source-of-funds-upload-list-heading";
|
|
127
|
+
const sourceOfFundsModal = "adyen-kyc-source-of-funds-modal";
|
|
128
|
+
const styles = {
|
|
129
|
+
sourceOfFunds,
|
|
130
|
+
sourceOfFundsWrapperLoading,
|
|
131
|
+
sourceOfFundsWrapperHeading,
|
|
132
|
+
sourceOfFundsWrapperDescription,
|
|
133
|
+
sourceOfFundsGettingStarted,
|
|
134
|
+
sourceOfFundsGettingStartedHeading,
|
|
135
|
+
sourceOfFundsGettingStartedBody,
|
|
136
|
+
sourceOfFundsGettingStartedError,
|
|
137
|
+
sourceOfFundsGettingStartedErrorActions,
|
|
138
|
+
sourceOfFundsGettingStartedCards,
|
|
139
|
+
sourceOfFundsGettingStartedCardsCard,
|
|
140
|
+
sourceOfFundsGettingStartedCardsCardHeader,
|
|
141
|
+
sourceOfFundsGettingStartedCardsCardBody,
|
|
142
|
+
sourceOfFundsGettingStartedActions,
|
|
143
|
+
sourceOfFundsAdditionalDataForm,
|
|
144
|
+
sourceOfFundsThirdPartyFundingFinancierGroup,
|
|
145
|
+
sourceOfFundsThirdPartyFundingNameAvatarGroup,
|
|
146
|
+
sourceOfFundsThirdPartyFundingNameAddressGroup,
|
|
147
|
+
sourceOfFundsSofFinancierFormError,
|
|
148
|
+
sourceOfFundsSofFinancierFormNameGroup,
|
|
149
|
+
sourceOfFundsFinancierFooter,
|
|
150
|
+
sourceOfFundsGridContainer,
|
|
151
|
+
sourceOfFundsUploadModalContentField,
|
|
152
|
+
sourceOfFundsUploadModalContentFieldRadioGroup,
|
|
153
|
+
sourceOfFundsUploadModalContentRequirementsContainer,
|
|
154
|
+
sourceOfFundsUploadListHeading,
|
|
155
|
+
sourceOfFundsModal
|
|
156
|
+
};
|
|
101
157
|
const additionalDataSchemaKeys = [
|
|
102
158
|
"description",
|
|
103
159
|
"dateOfFundsReceived",
|
|
@@ -766,15 +822,15 @@ const formatDateForInput = (isoDateString) => {
|
|
|
766
822
|
return "";
|
|
767
823
|
}
|
|
768
824
|
};
|
|
769
|
-
const getSofCardDetails = (i18n,
|
|
770
|
-
if (!
|
|
825
|
+
const getSofCardDetails = (i18n, sourceOfFunds2) => {
|
|
826
|
+
if (!sourceOfFunds2) {
|
|
771
827
|
return "";
|
|
772
828
|
}
|
|
773
|
-
if (
|
|
829
|
+
if (sourceOfFunds2?.adyenProcessedFunds) {
|
|
774
830
|
return i18n.get("sofTypeAdyenLabel");
|
|
775
831
|
}
|
|
776
|
-
if (
|
|
777
|
-
return i18n.get(`sofType${toCapitalized(
|
|
832
|
+
if (sourceOfFunds2?.type) {
|
|
833
|
+
return i18n.get(`sofType${toCapitalized(sourceOfFunds2?.type)}Label`);
|
|
778
834
|
}
|
|
779
835
|
return "";
|
|
780
836
|
};
|
|
@@ -2352,22 +2408,57 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2352
2408
|
"data-testid": "source-of-funds-getting-started",
|
|
2353
2409
|
children: [
|
|
2354
2410
|
!hasSourceOfFunds && /* @__PURE__ */ jsx(
|
|
2355
|
-
|
|
2356
|
-
{
|
|
2357
|
-
type: "image",
|
|
2358
|
-
testId: "source-of-funds-getting-started-icon",
|
|
2359
|
-
name: "source-of-funds",
|
|
2360
|
-
className: styles.sourceOfFundsGettingStartedIcon
|
|
2361
|
-
}
|
|
2362
|
-
),
|
|
2363
|
-
hasSourceOfFunds && /* @__PURE__ */ jsx(
|
|
2364
|
-
TaskStatusIndicator,
|
|
2411
|
+
LandingLayout,
|
|
2365
2412
|
{
|
|
2366
|
-
|
|
2413
|
+
media: /* @__PURE__ */ jsx(
|
|
2414
|
+
Svg,
|
|
2415
|
+
{
|
|
2416
|
+
type: "image",
|
|
2417
|
+
testId: "source-of-funds-getting-started-icon",
|
|
2418
|
+
name: "source-of-funds"
|
|
2419
|
+
}
|
|
2420
|
+
),
|
|
2421
|
+
title: i18n.get("fundingSourcesForFinancialProducts"),
|
|
2422
|
+
description: i18n.get("inTheNextStepWellCollectInformation"),
|
|
2423
|
+
actions: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2424
|
+
/* @__PURE__ */ jsx(
|
|
2425
|
+
Button,
|
|
2426
|
+
{
|
|
2427
|
+
fullWidth: true,
|
|
2428
|
+
testId: "source-of-funds-getting-primary-button",
|
|
2429
|
+
onClick: handleGettingStartedClick,
|
|
2430
|
+
children: i18n.get("gettingStarted")
|
|
2431
|
+
}
|
|
2432
|
+
),
|
|
2433
|
+
handleCancelClick && /* @__PURE__ */ jsx(
|
|
2434
|
+
Button,
|
|
2435
|
+
{
|
|
2436
|
+
variant: "tertiary",
|
|
2437
|
+
fullWidth: true,
|
|
2438
|
+
testId: "source-of-funds-getting-cancel-button",
|
|
2439
|
+
onClick: handleCancelClick,
|
|
2440
|
+
children: i18n.get("backToTaskList")
|
|
2441
|
+
}
|
|
2442
|
+
)
|
|
2443
|
+
] })
|
|
2367
2444
|
}
|
|
2368
2445
|
),
|
|
2369
|
-
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsGettingStartedHeading, el: "h2", variant: "title-l", children: i18n.get("fundingSourcesForFinancialProducts") }),
|
|
2370
2446
|
hasSourceOfFunds && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2447
|
+
/* @__PURE__ */ jsx(
|
|
2448
|
+
TaskStatusIndicator,
|
|
2449
|
+
{
|
|
2450
|
+
taskStatus: normalizedTaskStatusStore?.value?.SOURCE_OF_FUNDS?.status
|
|
2451
|
+
}
|
|
2452
|
+
),
|
|
2453
|
+
/* @__PURE__ */ jsx(
|
|
2454
|
+
Typography,
|
|
2455
|
+
{
|
|
2456
|
+
className: styles.sourceOfFundsGettingStartedHeading,
|
|
2457
|
+
el: "h2",
|
|
2458
|
+
variant: "title-l",
|
|
2459
|
+
children: i18n.get("fundingSourcesForFinancialProducts")
|
|
2460
|
+
}
|
|
2461
|
+
),
|
|
2371
2462
|
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsGettingStartedBody, children: i18n.get("addAllSourcesOfFundsBeingUsed") }),
|
|
2372
2463
|
errorObjects && errorObjects.map((errorObj, index) => {
|
|
2373
2464
|
const uniqueActions = getUniqueRemediationActions(errorObj);
|
|
@@ -2405,30 +2496,6 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2405
2496
|
children: i18n.get("backToTaskList")
|
|
2406
2497
|
}
|
|
2407
2498
|
)
|
|
2408
|
-
] }),
|
|
2409
|
-
!hasSourceOfFunds && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2410
|
-
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsGettingStartedBody, children: i18n.get("inTheNextStepWellCollectInformation") }),
|
|
2411
|
-
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsGettingStartedActions, children: [
|
|
2412
|
-
/* @__PURE__ */ jsx(
|
|
2413
|
-
Button,
|
|
2414
|
-
{
|
|
2415
|
-
fullWidth: true,
|
|
2416
|
-
testId: "source-of-funds-getting-primary-button",
|
|
2417
|
-
onClick: handleGettingStartedClick,
|
|
2418
|
-
children: i18n.get("gettingStarted")
|
|
2419
|
-
}
|
|
2420
|
-
),
|
|
2421
|
-
handleCancelClick && /* @__PURE__ */ jsx(
|
|
2422
|
-
Button,
|
|
2423
|
-
{
|
|
2424
|
-
variant: "tertiary",
|
|
2425
|
-
fullWidth: true,
|
|
2426
|
-
testId: "source-of-funds-getting-cancel-button",
|
|
2427
|
-
onClick: handleCancelClick,
|
|
2428
|
-
children: i18n.get("cancel")
|
|
2429
|
-
}
|
|
2430
|
-
)
|
|
2431
|
-
] })
|
|
2432
2499
|
] })
|
|
2433
2500
|
]
|
|
2434
2501
|
}
|