@adyen/kyc-components 3.76.3 → 3.77.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-C3V731bH.js → AcceptTermsOfServiceComponent-WTEKgPVt.js} +36 -40
- package/dist/{AccountSetupRejected-bq2hrmu-.js → AccountSetupRejected-CIQuxXLY.js} +2 -2
- package/dist/{Avatar-3MOygTP9.js → Avatar-BJYDv1Ar.js} +1 -1
- package/dist/{BusinessDetailsDropin-Duc71mfS.js → BusinessDetailsDropin-ChnYNgo4.js} +250 -320
- package/dist/{BusinessFinancingComponent-u7ltaVK0.js → BusinessFinancingComponent-BBEZAdO9.js} +2 -2
- package/dist/{BusinessFinancingDropin-DLE7ETbI.js → BusinessFinancingDropin-Bcn9KS7_.js} +150 -180
- package/dist/{BusinessFinancingPage-CEEi6PcZ.js → BusinessFinancingPage-BRNwYKmT.js} +2 -2
- package/dist/{BusinessTypeSelectionPage-Dybj65v6.js → BusinessTypeSelectionPage-DUEUCWHY.js} +69 -74
- package/dist/{ContractViewer-0kEQu6By.js → ContractViewer-708cVL6N.js} +196 -193
- package/dist/{CreateIndividualComponent-VcuAGdji.js → CreateIndividualComponent-DXfJBqsm.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-CxPOcJBD.js → CreateTransferInstrumentComponent-DPXiWljQ.js} +3 -3
- package/dist/{CustomerSupport-BPtW9sKz.js → CustomerSupport-IzHhC65g.js} +21 -26
- package/dist/{DebugModal-D9VvfCmh.js → DebugModal-zCCEKOHn.js} +12 -16
- package/dist/{DecisionMakerDetailsPage-ta8WkonF.js → DecisionMakerDetailsPage-ALg9mmxg.js} +2 -2
- package/dist/{DecisionMakers-CEqr6LLo.js → DecisionMakers-BzNXJkx5.js} +7 -8
- package/dist/{EmbeddedStatus-BfXFWtd9.js → EmbeddedStatus-C7ZbvJrU.js} +3 -3
- package/dist/{FormEndState-D2y3OosF.js → FormEndState-D2RzLrIv.js} +1 -1
- package/dist/{FormFlow-6wFVsBGd.js → FormFlow-j2CwOJWy.js} +4 -5
- package/dist/{IndividualOnfidoDropin-CvnIM45k.js → IndividualOnfidoDropin-CvL-Yr9h.js} +507 -645
- package/dist/{Introduction-B6hmb9fK.js → Introduction-BDlHh7ew.js} +8 -8
- package/dist/{LegalRepresentativeDetailsPage-DAwqaNEX.js → LegalRepresentativeDetailsPage-DqAUihve.js} +2 -2
- package/dist/{ManageIndividualComponent-er0MIZpS.js → ManageIndividualComponent-DIk2wvlz.js} +7 -11
- package/dist/{ManagePCIComponent-CLJJBaY5.js → ManagePCIComponent-BdlzsQqO.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-BfdCTOFq.js → ManageTermsOfServiceComponent-DB1-Vo35.js} +6 -7
- package/dist/{ManageTransferInstrumentComponent-BMkbrc6J.js → ManageTransferInstrumentComponent-DfX55cuK.js} +20 -28
- package/dist/{OnboardingDropinComponent-B3Ceo9Sa.js → OnboardingDropinComponent-Cn5iAzbv.js} +186 -229
- package/dist/{ProviderButton-NLK2FsiD.js → ProviderButton-BaLypVYo.js} +4 -5
- package/dist/{Review-B5FCv7_t.js → Review-CAq_2I-E.js} +2 -2
- package/dist/{RootBusinessDetailsPage-CoggSPSA.js → RootBusinessDetailsPage-DX-H6CIy.js} +2 -2
- package/dist/{RootIndividualDetailsPage-CgGnWbJR.js → RootIndividualDetailsPage-RUBw-42Q.js} +2 -2
- package/dist/{SignPCIComponent-DeENkCtR.js → SignPCIComponent-Df4oTQuO.js} +17 -18
- package/dist/{SingpassSelection-CQQT-6iD.js → SingpassSelection-BUlxELfI.js} +2 -5
- package/dist/{SoleProprietorshipPage-DhSqcpgd.js → SoleProprietorshipPage-CQI2uVbx.js} +2 -2
- package/dist/{SourceOfFunds.module-B6lRIY7Z.js → SourceOfFunds.module-Cr-fely_.js} +1 -1
- package/dist/{SourceOfFundsPage-SqCQc3gy.js → SourceOfFundsPage-DeYS7i29.js} +385 -445
- package/dist/{StoreProvider-BafgY4AM.js → StoreProvider-BrRdDvRD.js} +2497 -4744
- package/dist/{TaskItemStatus-v2hXtLeo.js → TaskItemStatus-CRW18YEt.js} +2 -2
- package/dist/{TaxReportingDropin-BzEIhO7h.js → TaxReportingDropin-R2aKA5m9.js} +41 -50
- package/dist/{TileGroup-BmC0xth5.js → TileGroup-CvpNkrLc.js} +6 -8
- package/dist/{TrustDetailsPage-Bn8coejp.js → TrustDetailsPage-BAzpVvls.js} +61 -74
- package/dist/{TrustMemberCompanyPage-N9eM6EqA.js → TrustMemberCompanyPage-B0JnaXwV.js} +3 -3
- package/dist/{TrustMemberIndividualPage-C60R5Udv.js → TrustMemberIndividualPage-B9rePqeT.js} +2 -2
- package/dist/{UnincorporatedPartnershipIndividualPage-C2KRE-W0.js → UnincorporatedPartnershipIndividualPage-C4qYdZSl.js} +2 -2
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-HY2UrO0m.js → UnincorporatedPartnershipMemberCompanyPage-Bc9xGrsF.js} +2 -2
- package/dist/{VerificationErrorAlert-CFt6JZfO.js → VerificationErrorAlert-Bg4vL7pT.js} +3 -3
- package/dist/{ViewVerificationStatusComponent-BsXPn8nw.js → ViewVerificationStatusComponent-DWSR9LEo.js} +11 -12
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +15 -16
- 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-CRw-yV0n.js +13 -0
- package/dist/cs-CZ-CKaXnO0J.js +13 -0
- package/dist/{css-CuH1HCst.js → css-CLuJIElL.js} +1 -1
- package/dist/da-DK-yugi-zGr.js +13 -0
- package/dist/de-DE-B3nctkG8.js +13 -0
- package/dist/de-DE-C9D0VHPK.js +13 -0
- package/dist/el-GR-CdgLZhuO.js +13 -0
- package/dist/el-GR-Cfek3dpt.js +13 -0
- package/dist/en-US-DSoLr6rp.js +13 -0
- package/dist/es-ES-BRfK6tX7.js +13 -0
- package/dist/es-ES-Be9ntX5H.js +13 -0
- package/dist/et-EE-CnhmrnD_.js +13 -0
- package/dist/fi-FI-DXCfpnHj.js +13 -0
- package/dist/fr-FR-Dk6Lw2On.js +13 -0
- package/dist/fr-FR-FzCZ5niV.js +13 -0
- package/dist/{getFieldsWithExistingData-D48pjTVK.js → getFieldsWithExistingData-CBicZjFs.js} +2 -3
- package/dist/{hasDataChanged-PSMjYHG9.js → hasDataChanged-CXJVCR6e.js} +3 -3
- package/dist/hr-HR-DIVU0YhD.js +13 -0
- package/dist/hu-HU-BqIaQOvc.js +13 -0
- package/dist/it-IT-D7G4BaP7.js +13 -0
- package/dist/it-IT-_Wa83lsl.js +13 -0
- package/dist/ja-JP-BcbV8ztd.js +13 -0
- package/dist/ja-JP-DTW_hY1L.js +13 -0
- package/dist/{json-B0_kBnis.js → json-BjWB0qFp.js} +1 -1
- package/dist/{style.css → kyc-components.css} +184 -419
- package/dist/{localizeDateString-DJUsfABW.js → localizeDateString-CbNoUJA8.js} +5 -5
- package/dist/lt-LT-InjX-Q9A.js +13 -0
- package/dist/lv-LV-CGvjqeg2.js +13 -0
- package/dist/{mapFinancialReportsToFinancialInformation-B37D6HIb.js → mapFinancialReportsToFinancialInformation-BSw47oTR.js} +19 -12
- package/dist/nl-NL-BuSsBOd9.js +13 -0
- package/dist/nl-NL-CFzm75Jw.js +13 -0
- package/dist/no-NO-1oDvJ_s2.js +13 -0
- package/dist/pl-PL-BlMeifdM.js +13 -0
- package/dist/{plaintext-Bl3bwitY.js → plaintext-gixHsy-4.js} +1 -1
- package/dist/pt-PT-B74E7Ui9.js +13 -0
- package/dist/pt-PT-DpDxAynk.js +13 -0
- package/dist/{resolveEnvironment-BC0a9aZH.js → resolveEnvironment-Db6sOTRm.js} +3 -3
- package/dist/ro-RO-CG5G2hM2.js +13 -0
- package/dist/ru-RU-FZb2upqh.js +13 -0
- package/dist/{rules-BS4PHjQj.js → rules-C58gMIhU.js} +42 -69
- package/dist/sk-SK-CZZJsLFf.js +13 -0
- package/dist/sl-SI-BzTwh4Mo.js +13 -0
- package/dist/styles-CLV89_hH.js +184 -419
- package/dist/sv-SE-B1gRccAU.js +13 -0
- package/dist/sv-SE-rckxD-43.js +13 -0
- package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +3 -3
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +0 -3
- package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +0 -1
- package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +0 -1
- package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +0 -1
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +6 -0
- package/dist/types/components/Shared/Summary/Summary.d.ts +0 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +5 -3
- package/dist/types/components/Shared/fields/CountryField/CountryField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +5 -3
- package/dist/types/components/Shared/forms/Address/AddressField.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/types.d.ts +0 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +1 -1
- package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +1 -2
- package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -1
- package/dist/types/components/ui/atoms/Field/Field.types.d.ts +3 -0
- package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +1 -0
- package/dist/types/components/ui/atoms/List/List.d.ts +12 -0
- package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +1 -5
- package/dist/types/context/StateContext/types.d.ts +0 -1
- package/dist/types/core/models/api/financialReport.d.ts +2 -2
- package/dist/types/hooks/useForm/types.d.ts +0 -3
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/urlUtils.d.ts +1 -0
- package/dist/types/utils/validatorUtils.d.ts +2 -0
- package/dist/{useMultiForm-dm89puU3.js → useMultiForm-BVNodhuF.js} +109 -131
- package/dist/{useOnboardingStatus-D5_rf7Nj.js → useOnboardingStatus-D1StsMfq.js} +1 -1
- package/dist/{useSalesChannelsSettings-gdc_FFjP.js → useSalesChannelsSettings-CLdEt82t.js} +1 -1
- package/dist/{useTermsOfServiceStatus-B-3LfVZN.js → useTermsOfServiceStatus-BoGp8Uwf.js} +1 -1
- package/dist/{useUpdateLegalEntity-EqURNCSS.js → useUpdateLegalEntity-Dq1_zjoK.js} +1 -1
- package/dist/{utils-BsikY8kY.js → utils-DL82tc-K.js} +18 -11
- package/dist/{validate-BVwcth48.js → validate-oBon75jd.js} +1 -1
- package/dist/{yaml--rja7woq.js → yaml-BcbMORik.js} +1 -1
- package/dist/zh-CN-wUb4MmTZ.js +13 -0
- package/dist/zh-TW-DNTXHLKa.js +13 -0
- package/package.json +11 -13
- package/dist/bg-BG-COTwZXwN.js +0 -2040
- package/dist/cs-CZ-DUlgJKVq.js +0 -2040
- package/dist/da-DK-BDzDHhVR.js +0 -2040
- package/dist/de-DE-B3TpRjZX.js +0 -994
- package/dist/de-DE-DJdgXqS_.js +0 -2040
- package/dist/el-GR-CFEuLvxK.js +0 -994
- package/dist/el-GR-D5i9BNyh.js +0 -2040
- package/dist/en-US-ghR-1_C2.js +0 -994
- package/dist/es-ES-BtWn2FOQ.js +0 -994
- package/dist/es-ES-VOSWszW5.js +0 -2040
- package/dist/et-EE-Bp4Ngsn4.js +0 -2040
- package/dist/fi-FI-DaujOE-a.js +0 -2040
- package/dist/fr-FR-BdPZxk11.js +0 -2040
- package/dist/fr-FR-HvIkGqJf.js +0 -994
- package/dist/hr-HR-BY7C7NxY.js +0 -2040
- package/dist/hu-HU-DHCty-Tc.js +0 -2040
- package/dist/it-IT-BMsuhZEQ.js +0 -2040
- package/dist/it-IT-CjbZahlB.js +0 -994
- package/dist/ja-JP-4jufT0xh.js +0 -994
- package/dist/ja-JP-BYDz1z2G.js +0 -2040
- package/dist/lt-LT-DNJ9V9xV.js +0 -2040
- package/dist/lv-LV-CFJwN5wq.js +0 -2040
- package/dist/nl-NL-B3xjfpMi.js +0 -994
- package/dist/nl-NL-DibAf790.js +0 -2040
- package/dist/no-NO-DHCy5rXx.js +0 -2040
- package/dist/pl-PL-eZBNH5HH.js +0 -2040
- package/dist/pt-PT-BpYDD-PX.js +0 -994
- package/dist/pt-PT-CiN_Wmfe.js +0 -2040
- package/dist/ro-RO-CgyMTvLc.js +0 -2040
- package/dist/ru-RU-BlgIj-Q4.js +0 -994
- package/dist/sk-SK-B5qlQB_U.js +0 -2040
- package/dist/sl-SI-8PPfrGzL.js +0 -2040
- package/dist/sv-SE-7lcf_fB9.js +0 -994
- package/dist/sv-SE-ZWLw6D3j.js +0 -2040
- package/dist/zh-CN-xYZH718R.js +0 -994
- package/dist/zh-TW-DqBBNurv.js +0 -994
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useReducer, useMemo } from "preact/hooks";
|
|
11
|
-
import { p as useApiContext, q as useQuery, bh as httpPost, a6 as useExperimentsContext, g as getLegalEntityCountry, ao as CountryCodes, G as isPartOfTrustFromLegalEntity, y as LegalEntityType, H as hasSolePropInLegalEntity, a$ as TrustedFieldsProvider, bk as individualComponentsKeyMapping, bl as businessDetailsComponentsKeyMapping, b as useI18nContext, Z as Button, bm as Svg } from "./StoreProvider-
|
|
11
|
+
import { p as useApiContext, q as useQuery, bh as httpPost, a6 as useExperimentsContext, g as getLegalEntityCountry, ao as CountryCodes, G as isPartOfTrustFromLegalEntity, y as LegalEntityType, H as hasSolePropInLegalEntity, a$ as TrustedFieldsProvider, bk as individualComponentsKeyMapping, bl as businessDetailsComponentsKeyMapping, b as useI18nContext, Z as Button, bm as Svg } from "./StoreProvider-BrRdDvRD.js";
|
|
12
12
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
13
13
|
async function convertToSingpassLinkResponse(openIdInitiateResponse) {
|
|
14
14
|
const response = await Promise.resolve(openIdInitiateResponse);
|
|
@@ -105,7 +105,7 @@ const useSingpassMyInfoLogin = ({
|
|
|
105
105
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
106
106
|
const isSingpassEnabledForOC = isExperimentEnabled("UseOnboardingComponentsForSingpass");
|
|
107
107
|
const apiMapping = getApiMapping(legalEntity);
|
|
108
|
-
const legalEntityTrustedFields = legalEntity
|
|
108
|
+
const legalEntityTrustedFields = legalEntity?.trustedFields;
|
|
109
109
|
const { refetch: fetchOpenIdAuthorizationLink } = useOpenIdAuthorizationLink({ enabled: false });
|
|
110
110
|
const isEligibleForSingpass = useMemo(() => {
|
|
111
111
|
if (!legalEntity) {
|
|
@@ -126,9 +126,8 @@ const useSingpassMyInfoLogin = ({
|
|
|
126
126
|
return isVanillaOrganization && isSingpassEnabledForOC || isVanillaIndividual && isSingpassEnabledForOC;
|
|
127
127
|
}, [legalEntity, accountHolder]);
|
|
128
128
|
const singpassTrustedFields = useMemo(() => {
|
|
129
|
-
var _a;
|
|
130
129
|
const allTrustedFields = isEligibleForSingpass && legalEntityTrustedFields ? legalEntityTrustedFields : [];
|
|
131
|
-
return
|
|
130
|
+
return allTrustedFields.find((tf) => tf.provider === TrustedFieldsProvider.SINGPASS)?.fields || [];
|
|
132
131
|
}, [isEligibleForSingpass, legalEntity]);
|
|
133
132
|
const trustedFields = useMemo(
|
|
134
133
|
() => apiMapping ? parseTrustedFieldsIntoReadOnlyFields(singpassTrustedFields, apiMapping) : {},
|
|
@@ -145,7 +144,7 @@ const useSingpassMyInfoLogin = ({
|
|
|
145
144
|
/* LOADING */
|
|
146
145
|
});
|
|
147
146
|
const { data } = await fetchOpenIdAuthorizationLink();
|
|
148
|
-
return data
|
|
147
|
+
return data?.item.authUrl;
|
|
149
148
|
};
|
|
150
149
|
const handleSingpassMyInfoLoginSuccess = () => {
|
|
151
150
|
dispatch({
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState } from "preact/hooks";
|
|
12
|
-
import { p as useApiContext, bf as useMutation, bh as httpPost, b as useI18nContext, a5 as useToastContext, a2 as LoaderWrapper, F as FormHeader, bI as Checkbox, aO as ActionBar } from "./StoreProvider-
|
|
13
|
-
import { D as DropinLayout } from "./OnboardingDropinComponent-
|
|
12
|
+
import { p as useApiContext, bf as useMutation, bh as httpPost, b as useI18nContext, a5 as useToastContext, a2 as LoaderWrapper, F as FormHeader, bI as Checkbox, aO as ActionBar } from "./StoreProvider-BrRdDvRD.js";
|
|
13
|
+
import { D as DropinLayout } from "./OnboardingDropinComponent-Cn5iAzbv.js";
|
|
14
14
|
const confirmReview = async (legalEntityId, baseUrl) => {
|
|
15
15
|
return httpPost({
|
|
16
16
|
baseUrl,
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { P as useAccountHolder, a as useLegalEntity, R as ROOT_LE, ab as useCapabilityProblems, L as Loader, G as isPartOfTrustFromLegalEntity, bi as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry, W as TaskTypes } from "./StoreProvider-
|
|
12
|
-
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-
|
|
11
|
+
import { P as useAccountHolder, a as useLegalEntity, R as ROOT_LE, ab as useCapabilityProblems, L as Loader, G as isPartOfTrustFromLegalEntity, bi as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry, W as TaskTypes } from "./StoreProvider-BrRdDvRD.js";
|
|
12
|
+
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-ChnYNgo4.js";
|
|
13
13
|
const RootBusinessDetailsPage = ({
|
|
14
14
|
isTargetLegalEntityType = false,
|
|
15
15
|
onSubmit,
|
package/dist/{RootIndividualDetailsPage-CgGnWbJR.js → RootIndividualDetailsPage-RUBw-42Q.js}
RENAMED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useLegalEntity, R as ROOT_LE, ab as useCapabilityProblems, a6 as useExperimentsContext, P as useAccountHolder, L as Loader, g as getLegalEntityCountry, G as isPartOfTrustFromLegalEntity, bi as getProblemsForEntity, U as EntityType, bj as isOnfidoAutofillFlowEnabled, W as TaskTypes, a4 as noop } from "./StoreProvider-
|
|
12
|
-
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-
|
|
11
|
+
import { a as useLegalEntity, R as ROOT_LE, ab as useCapabilityProblems, a6 as useExperimentsContext, P as useAccountHolder, L as Loader, g as getLegalEntityCountry, G as isPartOfTrustFromLegalEntity, bi as getProblemsForEntity, U as EntityType, bj as isOnfidoAutofillFlowEnabled, W as TaskTypes, a4 as noop } from "./StoreProvider-BrRdDvRD.js";
|
|
12
|
+
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-CvL-Yr9h.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] = "c6678ac9-0a37-4fc8-bb69-4f813c2355c2", e._sentryDebugIdIdentifier = "sentry-dbid-c6678ac9-0a37-4fc8-bb69-4f813c2355c2");
|
|
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, bh as httpPost, be as useInvalidateRootLegalEntity, bf as useMutation, ap as isEmpty, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, au as useForm, bA as getOwnDecisionMakers, y as LegalEntityType, W as TaskTypes, bJ as MaybeModal, b4 as ModalContent, Z as Button, a2 as LoaderWrapper, az as Field, bK as Select, bI as Checkbox, b6 as ModalFooter, b7 as Spacer, a as useLegalEntity, R as ROOT_LE, L as Loader } from "./StoreProvider-
|
|
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, bh as httpPost, be as useInvalidateRootLegalEntity, bf as useMutation, ap as isEmpty, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, au as useForm, bA as getOwnDecisionMakers, y as LegalEntityType, W as TaskTypes, bJ as MaybeModal, b4 as ModalContent, Z as Button, a2 as LoaderWrapper, az as Field, bK as Select, bI as Checkbox, b6 as ModalFooter, b7 as Spacer, a as useLegalEntity, R as ROOT_LE, L as Loader } from "./StoreProvider-BrRdDvRD.js";
|
|
12
|
+
import { u as useSalesChannelsSettings, a as usePciStatus } from "./useSalesChannelsSettings-CLdEt82t.js";
|
|
13
|
+
import { O as OutlinedIcon, C as ContractViewer } from "./ContractViewer-708cVL6N.js";
|
|
14
|
+
import { F as FormEndState } from "./FormEndState-D2RzLrIv.js";
|
|
15
15
|
import { useState, useCallback, useEffect } from "preact/hooks";
|
|
16
16
|
const getPciTemplate = async (legalEntityId, baseUrl, data) => {
|
|
17
17
|
return httpPost(
|
|
@@ -73,7 +73,6 @@ function PciDropin({
|
|
|
73
73
|
needsSigning = true,
|
|
74
74
|
handleCloseClick
|
|
75
75
|
}) {
|
|
76
|
-
var _a, _b, _c, _d;
|
|
77
76
|
const { i18n } = useI18nContext();
|
|
78
77
|
const userEvents = useAnalyticsContext();
|
|
79
78
|
const { showToast } = useToastContext();
|
|
@@ -103,7 +102,7 @@ function PciDropin({
|
|
|
103
102
|
).map(({ legalEntityId: id, name }) => ({ id, name })) : [
|
|
104
103
|
{
|
|
105
104
|
id: legalEntityResponse.id,
|
|
106
|
-
name: `${
|
|
105
|
+
name: `${legalEntityResponse?.individual?.name.firstName} ${legalEntityResponse.individual?.name.lastName}`
|
|
107
106
|
}
|
|
108
107
|
];
|
|
109
108
|
const handleSignClick = async () => {
|
|
@@ -126,8 +125,8 @@ function PciDropin({
|
|
|
126
125
|
showToast({ label: i18n.get("pciSignFailed"), variant: "error" });
|
|
127
126
|
userEvents.addTaskEvent("Encountered error", {
|
|
128
127
|
...baseTracking,
|
|
129
|
-
returnType:
|
|
130
|
-
returnValue:
|
|
128
|
+
returnType: e?.errorCode || "backend",
|
|
129
|
+
returnValue: e?.title ?? e?.message
|
|
131
130
|
});
|
|
132
131
|
}
|
|
133
132
|
} else {
|
|
@@ -176,10 +175,10 @@ function PciDropin({
|
|
|
176
175
|
{
|
|
177
176
|
name: "signer",
|
|
178
177
|
label: i18n.get("signer"),
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
errorMessage: (_c = errors.signer) == null ? void 0 : _c.errorMessage,
|
|
178
|
+
className: "adyen-kyc-u-margin-y-32 adyen-kyc-u-width-half",
|
|
179
|
+
errorMessage: errors.signer?.errorMessage,
|
|
182
180
|
isValid: valid.signer,
|
|
181
|
+
dataTestId: "signer",
|
|
183
182
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
184
183
|
Select,
|
|
185
184
|
{
|
|
@@ -198,7 +197,7 @@ function PciDropin({
|
|
|
198
197
|
{
|
|
199
198
|
el: "fieldset",
|
|
200
199
|
name: "acceptPci",
|
|
201
|
-
errorMessage:
|
|
200
|
+
errorMessage: errors.acceptPci?.errorMessage,
|
|
202
201
|
isValid: valid.acceptPci,
|
|
203
202
|
showErrorIconBottom: true,
|
|
204
203
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
@@ -248,9 +247,9 @@ function SignPCIComponent({
|
|
|
248
247
|
const signPci2 = useSignPci();
|
|
249
248
|
const handleOnClose = () => {
|
|
250
249
|
if (modalView) {
|
|
251
|
-
onUnmount
|
|
250
|
+
onUnmount?.();
|
|
252
251
|
}
|
|
253
|
-
onClose
|
|
252
|
+
onClose?.();
|
|
254
253
|
};
|
|
255
254
|
if (isLegalEntityLoading || isPciStatusLoading || isPciTemplateDataLoading || !legalEntityData || !pciTemplateData) {
|
|
256
255
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
@@ -271,12 +270,12 @@ function SignPCIComponent({
|
|
|
271
270
|
handleHomeClick: handleOnClose,
|
|
272
271
|
handleSign: async (_legalEntityId, signedBy) => {
|
|
273
272
|
await signPci2.mutateAsync(signedBy);
|
|
274
|
-
onUnmount
|
|
275
|
-
onSigned
|
|
273
|
+
onUnmount?.();
|
|
274
|
+
onSigned?.();
|
|
276
275
|
},
|
|
277
276
|
handleCloseClick: handleOnClose,
|
|
278
277
|
asModal: modalView,
|
|
279
|
-
needsSigning: Boolean(pciStatusData
|
|
278
|
+
needsSigning: Boolean(pciStatusData?.signingRequired)
|
|
280
279
|
}
|
|
281
280
|
);
|
|
282
281
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState } from "preact/hooks";
|
|
12
|
-
import { b as useI18nContext, au as useForm, C as Typography, az as Field, aC as RadioGroupCard, Z as Button, bm as Svg, y as LegalEntityType } from "./StoreProvider-
|
|
12
|
+
import { b as useI18nContext, au as useForm, C as Typography, az as Field, aC as RadioGroupCard, Z as Button, bm as Svg, y as LegalEntityType } from "./StoreProvider-BrRdDvRD.js";
|
|
13
13
|
const setupAccountMethods = ["singpass", "manual"];
|
|
14
14
|
const setupAccountMethodFields = ["setupAccountMethod"];
|
|
15
15
|
const getSingpassSelectionDisabled = (legalEntityType) => {
|
|
@@ -99,10 +99,7 @@ const SingpassSelection = (props) => {
|
|
|
99
99
|
footer: "adyen-kyc-field-verification-methods__footer"
|
|
100
100
|
}),
|
|
101
101
|
renderOptionIcon: (method) => methodsMetadata[method].icon,
|
|
102
|
-
renderOptionFooter: (method) =>
|
|
103
|
-
var _a;
|
|
104
|
-
return (_a = methodsMetadata[method].provider) == null ? void 0 : _a.icon;
|
|
105
|
-
},
|
|
102
|
+
renderOptionFooter: (method) => methodsMetadata[method].provider?.icon,
|
|
106
103
|
floatingRadio: true
|
|
107
104
|
}
|
|
108
105
|
) }) }),
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useLegalEntity, R as ROOT_LE, w as skipToken, ab as useCapabilityProblems, L as Loader, bi as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry, W as TaskTypes } from "./StoreProvider-
|
|
12
|
-
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-
|
|
11
|
+
import { a as useLegalEntity, R as ROOT_LE, w as skipToken, ab as useCapabilityProblems, L as Loader, bi as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry, W as TaskTypes } from "./StoreProvider-BrRdDvRD.js";
|
|
12
|
+
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-ChnYNgo4.js";
|
|
13
13
|
function SoleProprietorshipPage({
|
|
14
14
|
solePropId,
|
|
15
15
|
isTargetLegalEntityType = false,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { b as useI18nContext, Y as TaskStatus } from "./StoreProvider-
|
|
12
|
+
import { b as useI18nContext, Y as TaskStatus } from "./StoreProvider-BrRdDvRD.js";
|
|
13
13
|
const inTaskStatus = "adyen-kyc-in-task-status";
|
|
14
14
|
const inTaskStatusIndicator = "adyen-kyc-in-task-status-indicator";
|
|
15
15
|
const inTaskStatusIndicatorSuccess = "adyen-kyc-in-task-status-indicator-success";
|