@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
package/dist/{CreateIndividualComponent-VcuAGdji.js → CreateIndividualComponent-DXfJBqsm.js}
RENAMED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useLegalEntity, ab as useCapabilityProblems, a6 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, bi as getProblemsForEntity, U as EntityType, bj as isOnfidoAutofillFlowEnabled, W as TaskTypes } from "./StoreProvider-
|
|
12
|
-
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-
|
|
11
|
+
import { a as useLegalEntity, ab as useCapabilityProblems, a6 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, bi as getProblemsForEntity, U as EntityType, bj as isOnfidoAutofillFlowEnabled, W as TaskTypes } from "./StoreProvider-BrRdDvRD.js";
|
|
12
|
+
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-CvL-Yr9h.js";
|
|
13
13
|
const CreateIndividualComponent = ({
|
|
14
14
|
legalEntityId,
|
|
15
15
|
onSubmitSuccess,
|
|
@@ -25,15 +25,15 @@ const CreateIndividualComponent = ({
|
|
|
25
25
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
26
26
|
const handleOnClose = () => {
|
|
27
27
|
if (modalView) {
|
|
28
|
-
onUnmount
|
|
28
|
+
onUnmount?.();
|
|
29
29
|
}
|
|
30
|
-
onClose
|
|
30
|
+
onClose?.();
|
|
31
31
|
};
|
|
32
32
|
const onSubmit = (d) => {
|
|
33
33
|
if (modalView) {
|
|
34
|
-
onUnmount
|
|
34
|
+
onUnmount?.();
|
|
35
35
|
}
|
|
36
|
-
onSubmitSuccess
|
|
36
|
+
onSubmitSuccess?.(d);
|
|
37
37
|
};
|
|
38
38
|
if (!individualLe) {
|
|
39
39
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useState } from "preact/hooks";
|
|
12
|
-
import { a as useLegalEntity, an as useAssociatedLegalEntity, y as LegalEntityType, L as Loader, bo as PayoutDetailsDropin, W as TaskTypes } from "./StoreProvider-
|
|
12
|
+
import { a as useLegalEntity, an as useAssociatedLegalEntity, y as LegalEntityType, L as Loader, bo as PayoutDetailsDropin, W as TaskTypes } from "./StoreProvider-BrRdDvRD.js";
|
|
13
13
|
function CreateTransferInstrumentComponent({
|
|
14
14
|
legalEntityId,
|
|
15
15
|
transferInstrumentId,
|
|
@@ -29,9 +29,9 @@ function CreateTransferInstrumentComponent({
|
|
|
29
29
|
]);
|
|
30
30
|
const handleOnClose = () => {
|
|
31
31
|
if (modalView) {
|
|
32
|
-
onUnmount
|
|
32
|
+
onUnmount?.();
|
|
33
33
|
}
|
|
34
|
-
onClose
|
|
34
|
+
onClose?.();
|
|
35
35
|
};
|
|
36
36
|
return isLegalEntityLoading || !legalEntity ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx(
|
|
37
37
|
PayoutDetailsDropin,
|
|
@@ -8,17 +8,16 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useLegalEntity, R as ROOT_LE, L as Loader, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, bn as useQueryClient, ar as resolveFieldMetadata, bE as defaultFieldMetadata, bF as fieldConfig, bG as getAsyncPhoneValidationRules, F as FormHeader, bH as ContactDetails, aO as ActionBar, X as createLogger } from "./StoreProvider-
|
|
11
|
+
import { a as useLegalEntity, R as ROOT_LE, L as Loader, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, bn as useQueryClient, ar as resolveFieldMetadata, bE as defaultFieldMetadata, bF as fieldConfig, bG as getAsyncPhoneValidationRules, F as FormHeader, bH as ContactDetails, aO as ActionBar, X as createLogger } from "./StoreProvider-BrRdDvRD.js";
|
|
12
12
|
import { useCallback, useMemo, useEffect } from "preact/hooks";
|
|
13
|
-
import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-
|
|
15
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
13
|
+
import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-Dq1_zjoK.js";
|
|
14
|
+
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-oBon75jd.js";
|
|
15
|
+
import { u as useMultiForm } from "./useMultiForm-BVNodhuF.js";
|
|
16
16
|
const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
|
|
17
|
-
var _a, _b, _c;
|
|
18
17
|
return {
|
|
19
|
-
email:
|
|
18
|
+
email: customerSupport?.customerSupport?.email || "",
|
|
20
19
|
phone: {
|
|
21
|
-
number:
|
|
20
|
+
number: customerSupport?.customerSupport?.phoneNumber?.number || "",
|
|
22
21
|
type: "mobile"
|
|
23
22
|
}
|
|
24
23
|
};
|
|
@@ -36,7 +35,6 @@ function CustomerSupportInner({
|
|
|
36
35
|
onSubmit,
|
|
37
36
|
legalEntity
|
|
38
37
|
}) {
|
|
39
|
-
var _a, _b, _c, _d;
|
|
40
38
|
const { i18n } = useI18nContext();
|
|
41
39
|
const userEvents = useAnalyticsContext();
|
|
42
40
|
const { showToast } = useToastContext();
|
|
@@ -46,19 +44,16 @@ function CustomerSupportInner({
|
|
|
46
44
|
customerSupport: ["email", "phoneNumber"]
|
|
47
45
|
};
|
|
48
46
|
const validators = useCallback(
|
|
49
|
-
(data2) => {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
},
|
|
47
|
+
(data2) => ({
|
|
48
|
+
customerSupport: {
|
|
49
|
+
...contactDetailsValidationRules,
|
|
50
|
+
phoneNumber: resolveFieldMetadata(
|
|
51
|
+
fieldConfig[data2?.customerSupport?.phoneNumber?.phoneCountryCode ?? country],
|
|
52
|
+
{},
|
|
53
|
+
defaultFieldMetadata
|
|
54
|
+
)?.validators
|
|
55
|
+
}
|
|
56
|
+
}),
|
|
62
57
|
[country]
|
|
63
58
|
);
|
|
64
59
|
const validatePhoneNumber = useValidatePhoneNumberImperatively();
|
|
@@ -73,8 +68,8 @@ function CustomerSupportInner({
|
|
|
73
68
|
const legalEntityType = legalEntity.type;
|
|
74
69
|
const defaultCustomerSupportData = {
|
|
75
70
|
customerSupport: {
|
|
76
|
-
phoneNumber:
|
|
77
|
-
email:
|
|
71
|
+
phoneNumber: legalEntity[legalEntityType]?.support?.phone,
|
|
72
|
+
email: legalEntity[legalEntityType]?.support?.email
|
|
78
73
|
}
|
|
79
74
|
};
|
|
80
75
|
const { data, handleChangeFor, valid, errors, isValid, triggerValidation } = useMultiForm({
|
|
@@ -90,7 +85,7 @@ function CustomerSupportInner({
|
|
|
90
85
|
}, [userEvents]);
|
|
91
86
|
const submitForm = async () => {
|
|
92
87
|
const isAsyncValidationValid = await triggerValidation("customerSupport");
|
|
93
|
-
if (!
|
|
88
|
+
if (!isValid?.customerSupport || !isAsyncValidationValid) {
|
|
94
89
|
return;
|
|
95
90
|
}
|
|
96
91
|
const support = mapCustomerSupportSchemaToCustomerSupportType(data);
|
|
@@ -103,7 +98,7 @@ function CustomerSupportInner({
|
|
|
103
98
|
id: legalEntity.id
|
|
104
99
|
};
|
|
105
100
|
await updateLegalEntity(patchLegalEntity);
|
|
106
|
-
queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntity
|
|
101
|
+
queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntity?.id] });
|
|
107
102
|
onSubmit();
|
|
108
103
|
userEvents.addTaskEvent("Success", {
|
|
109
104
|
actionType: "submit"
|
|
@@ -130,7 +125,7 @@ function CustomerSupportInner({
|
|
|
130
125
|
errors: errors.customerSupport,
|
|
131
126
|
valid: valid.customerSupport,
|
|
132
127
|
country,
|
|
133
|
-
requiredFields: requiredFields
|
|
128
|
+
requiredFields: requiredFields?.customerSupport,
|
|
134
129
|
handleFieldChange
|
|
135
130
|
}
|
|
136
131
|
),
|
|
@@ -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] = "329d25a4-a5b2-4673-bdc9-666e58c1f0a9", e._sentryDebugIdIdentifier = "sentry-dbid-329d25a4-a5b2-4673-bdc9-666e58c1f0a9");
|
|
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 { Z as Button, bc as entriesOf, bq as InputText, b as useI18nContext, br as splitTaskIdentifier, a6 as useExperimentsContext, J as useSettingsContext, ac as useGlobalStore, bs as listToRecord, bt as valuesOf, b2 as Modal, X as createLogger, a3 as Icon, K as SettingNames, bu as ExperimentNames } from "./StoreProvider-
|
|
12
|
+
import { Z as Button, bc as entriesOf, bq as InputText, b as useI18nContext, br as splitTaskIdentifier, a6 as useExperimentsContext, J as useSettingsContext, ac as useGlobalStore, bs as listToRecord, bt as valuesOf, b2 as Modal, X as createLogger, a3 as Icon, K as SettingNames, bu as ExperimentNames } from "./StoreProvider-BrRdDvRD.js";
|
|
13
13
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
14
|
-
import { T as TaskItemStatus } from "./TaskItemStatus-
|
|
14
|
+
import { T as TaskItemStatus } from "./TaskItemStatus-CRW18YEt.js";
|
|
15
15
|
const tabs = "adyen-kyc-tabs";
|
|
16
16
|
const styles$1 = {
|
|
17
17
|
tabs
|
|
@@ -92,7 +92,6 @@ const DebugExperimentsAndSettings = ({
|
|
|
92
92
|
{
|
|
93
93
|
name: "search",
|
|
94
94
|
value: searchTerm,
|
|
95
|
-
classNameModifiers: ["search"],
|
|
96
95
|
onInput: (e) => setSearchTerm(e.target.value),
|
|
97
96
|
placeholder: "Search for Experiments/Settings 🔎",
|
|
98
97
|
trimOnBlur: true,
|
|
@@ -115,9 +114,8 @@ const DebugExperimentsAndSettings = ({
|
|
|
115
114
|
] });
|
|
116
115
|
};
|
|
117
116
|
const getRanges = (search, element) => {
|
|
118
|
-
var _a;
|
|
119
117
|
const textNode = element.childNodes[0];
|
|
120
|
-
const content =
|
|
118
|
+
const content = textNode.textContent?.toLowerCase();
|
|
121
119
|
if (!content)
|
|
122
120
|
return [];
|
|
123
121
|
const indexes = [];
|
|
@@ -146,10 +144,10 @@ const transformModule = (highlights, codeNode, scope) => {
|
|
|
146
144
|
};
|
|
147
145
|
const supportedModules = ["plaintext", "json", "yaml", "css"];
|
|
148
146
|
const moduleMap = {
|
|
149
|
-
plaintext: () => import("./plaintext-
|
|
150
|
-
json: () => import("./json-
|
|
151
|
-
yaml: () => import("./yaml
|
|
152
|
-
css: () => import("./css-
|
|
147
|
+
plaintext: () => import("./plaintext-gixHsy-4.js"),
|
|
148
|
+
json: () => import("./json-BjWB0qFp.js"),
|
|
149
|
+
yaml: () => import("./yaml-BcbMORik.js"),
|
|
150
|
+
css: () => import("./css-CLuJIElL.js")
|
|
153
151
|
};
|
|
154
152
|
const getModule = async (name) => {
|
|
155
153
|
if (!supportedModules.includes(name)) {
|
|
@@ -293,7 +291,6 @@ let MonogonCode$1 = class MonogonCode extends HTMLElement {
|
|
|
293
291
|
this.styleEl = themeStyleEl;
|
|
294
292
|
}
|
|
295
293
|
async refresh() {
|
|
296
|
-
var _a;
|
|
297
294
|
if (!this.codeEl)
|
|
298
295
|
return;
|
|
299
296
|
const moduleName = this.getAttribute("lang") ?? "plaintext";
|
|
@@ -301,7 +298,7 @@ let MonogonCode$1 = class MonogonCode extends HTMLElement {
|
|
|
301
298
|
const content = this.getAttribute("content") ?? "";
|
|
302
299
|
this.value = content;
|
|
303
300
|
this.codeEl.textContent = module.format ? module.format(content) : content;
|
|
304
|
-
if (!
|
|
301
|
+
if (!this.codeEl.childNodes?.[0])
|
|
305
302
|
return;
|
|
306
303
|
const littleHash = window.crypto.randomUUID().substring(0, 6);
|
|
307
304
|
const definitions = transformModule(module.definitions, this.codeEl, littleHash);
|
|
@@ -327,10 +324,9 @@ const MonogonCode2 = ({ content, lang }) => {
|
|
|
327
324
|
return /* @__PURE__ */ jsx("monogon-code", { content, lang });
|
|
328
325
|
};
|
|
329
326
|
const DebugLegalEntityData = ({ legalEntityData }) => {
|
|
330
|
-
var _a;
|
|
331
327
|
if (!legalEntityData) return /* @__PURE__ */ jsx(Fragment, {});
|
|
332
328
|
const { rootLegalEntity, rootLegalEntityType } = legalEntityData;
|
|
333
|
-
const uboDetails =
|
|
329
|
+
const uboDetails = rootLegalEntity.entityAssociations?.map(
|
|
334
330
|
({ name, type, jobTitle }) => (
|
|
335
331
|
// If `name` is undefined, replace the tuple with `null` to easily filter it out later. Checking this to ensure that the 'data' for DebugTable always has a keyName.
|
|
336
332
|
name ? {
|
|
@@ -340,7 +336,7 @@ const DebugLegalEntityData = ({ legalEntityData }) => {
|
|
|
340
336
|
variant: "blue"
|
|
341
337
|
} : null
|
|
342
338
|
)
|
|
343
|
-
).filter(Boolean)
|
|
339
|
+
).filter(Boolean) ?? [];
|
|
344
340
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
345
341
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
346
342
|
"Root legal entity type: ",
|
|
@@ -440,7 +436,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
440
436
|
const [tab, setTab] = useState("metadata");
|
|
441
437
|
const rootLegalEntity = useGlobalStore().rootLegalEntity.value;
|
|
442
438
|
const metadata = {
|
|
443
|
-
sdkVersion: "3.
|
|
439
|
+
sdkVersion: "3.77.0-beta.1",
|
|
444
440
|
locale: i18n.locale,
|
|
445
441
|
rootLegalEntityId: rootLegalEntity.id
|
|
446
442
|
};
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useLegalEntity, w as skipToken, ab as useCapabilityProblems, a6 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, 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, w as skipToken, ab as useCapabilityProblems, a6 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, 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 DecisionMakerDetailsPage({
|
|
14
14
|
decisionMakerId,
|
|
15
15
|
parentCompanyId,
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState, useEffect } from "preact/hooks";
|
|
12
|
-
import { a as useLegalEntity, R as ROOT_LE, L as Loader, a9 as useGetTaskStatus, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, ab as useCapabilityProblems, bA as getOwnDecisionMakers, bB as getAvailableDecisionMakerRoleTypes, W as TaskTypes, bC as getAllowedDecisionMakerRoles, F as FormHeader, aU as ContextGuidance, bD as DecisionMakerType, B as Alert, aa as CardGroup, Z as Button, aO as ActionBar } from "./StoreProvider-
|
|
13
|
-
import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { b as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, c as EntityAssociation } from "./OnboardingDropinComponent-
|
|
12
|
+
import { a as useLegalEntity, R as ROOT_LE, L as Loader, a9 as useGetTaskStatus, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, ab as useCapabilityProblems, bA as getOwnDecisionMakers, bB as getAvailableDecisionMakerRoleTypes, W as TaskTypes, bC as getAllowedDecisionMakerRoles, F as FormHeader, aU as ContextGuidance, bD as DecisionMakerType, B as Alert, aa as CardGroup, Z as Button, aO as ActionBar } from "./StoreProvider-BrRdDvRD.js";
|
|
13
|
+
import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-Dq1_zjoK.js";
|
|
14
|
+
import { b as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, c as EntityAssociation } from "./OnboardingDropinComponent-Cn5iAzbv.js";
|
|
15
15
|
const DecisionMakers = (props) => {
|
|
16
16
|
const { data, isLoading } = useLegalEntity(ROOT_LE);
|
|
17
17
|
if (isLoading || !data) {
|
|
@@ -42,9 +42,8 @@ const DecisionMakersInner = ({
|
|
|
42
42
|
legalEntityId: legalEntity.id,
|
|
43
43
|
problems: capabilityProblems
|
|
44
44
|
});
|
|
45
|
-
const mappedDecisionMakers = decisionMakers
|
|
45
|
+
const mappedDecisionMakers = decisionMakers?.reduce(
|
|
46
46
|
(mappedDecisionMakers2, decisionMaker) => {
|
|
47
|
-
var _a;
|
|
48
47
|
if (!decisionMaker.legalEntityId) return {};
|
|
49
48
|
const mappedDecisionMaker = mappedDecisionMakers2[decisionMaker.legalEntityId];
|
|
50
49
|
const decisionMakerType = decisionMaker.type;
|
|
@@ -54,7 +53,7 @@ const DecisionMakersInner = ({
|
|
|
54
53
|
status: getTaskStatus(TaskTypes.DECISION_MAKER, decisionMaker.legalEntityId),
|
|
55
54
|
name: decisionMaker.name ?? "",
|
|
56
55
|
legalEntityType: decisionMaker.entityType,
|
|
57
|
-
problems:
|
|
56
|
+
problems: capabilityProblems?.LegalEntity?.[decisionMaker.legalEntityId]
|
|
58
57
|
};
|
|
59
58
|
return mappedDecisionMakers2;
|
|
60
59
|
},
|
|
@@ -169,14 +168,14 @@ const DecisionMakersInner = ({
|
|
|
169
168
|
variant: "warning"
|
|
170
169
|
}
|
|
171
170
|
),
|
|
172
|
-
|
|
171
|
+
uniqueDecisionMakers?.length > 0 ? /* @__PURE__ */ jsx(CardGroup, { children: uniqueDecisionMakers.map((decisionMaker) => /* @__PURE__ */ jsx(
|
|
173
172
|
EntityAssociation,
|
|
174
173
|
{
|
|
175
174
|
types: decisionMaker.types,
|
|
176
175
|
name: decisionMaker.name,
|
|
177
176
|
status: decisionMaker.status,
|
|
178
177
|
onNavigateToEntity: () => editDecisionMaker(decisionMaker),
|
|
179
|
-
problems: decisionMaker
|
|
178
|
+
problems: decisionMaker?.problems,
|
|
180
179
|
removeEntity: () => {
|
|
181
180
|
deleteDecisionMaker(decisionMaker);
|
|
182
181
|
},
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { A as Avatar } from "./Avatar-
|
|
13
|
-
import { Y as TaskStatus, b as useI18nContext, z as Skeleton, C as Typography } from "./StoreProvider-
|
|
12
|
+
import { A as Avatar } from "./Avatar-BJYDv1Ar.js";
|
|
13
|
+
import { Y as TaskStatus, b as useI18nContext, z as Skeleton, C as Typography } from "./StoreProvider-BrRdDvRD.js";
|
|
14
14
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
15
15
|
import { O as OnboardingStatus } from "./view-verification-status-DTkA8PtO.js";
|
|
16
16
|
const embeddedStatus = "adyen-kyc-embedded-status";
|
|
@@ -89,7 +89,7 @@ const EmbeddedStatus = ({
|
|
|
89
89
|
className: styles.embeddedStatusActionIndicator,
|
|
90
90
|
children: i18n.get(actionIndicator.labelKey)
|
|
91
91
|
}
|
|
92
|
-
) }) :
|
|
92
|
+
) }) : statusTag?.translationKey && /* @__PURE__ */ jsx("section", { children: loading ? /* @__PURE__ */ jsx(Skeleton, { width: "8ch", height: "1em" }) : /* @__PURE__ */ jsx(Tag, { variant: statusTag.variant, children: i18n.get(statusTag.translationKey) }) })
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
import { defineSlots } from "named-slots";
|
|
13
|
-
import { a3 as Icon, A as AlertIcon } from "./StoreProvider-
|
|
13
|
+
import { a3 as Icon, A as AlertIcon } from "./StoreProvider-BrRdDvRD.js";
|
|
14
14
|
const FormEndState = ({ variant = "success", children, className }) => {
|
|
15
15
|
const Slot = defineSlots(children, ["title", "content", "icon", "actions"]);
|
|
16
16
|
return /* @__PURE__ */ jsxs(
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo, useRef, useState } from "preact/hooks";
|
|
12
|
-
import { dG as FormContext, $ as useAnalyticsContext, b as useI18nContext, bJ as MaybeModal, a2 as LoaderWrapper, dH as FormRouterContextProvider, aN as Summary, Z as Button, _ as IconButton, b8 as Confirm } from "./StoreProvider-
|
|
12
|
+
import { dG as FormContext, $ as useAnalyticsContext, b as useI18nContext, bJ as MaybeModal, a2 as LoaderWrapper, dH as FormRouterContextProvider, aN as Summary, Z as Button, _ as IconButton, b8 as Confirm } from "./StoreProvider-BrRdDvRD.js";
|
|
13
13
|
import cx from "classnames";
|
|
14
14
|
function FormContextProvider({
|
|
15
15
|
children,
|
|
@@ -87,7 +87,6 @@ const FormFlow = ({
|
|
|
87
87
|
summary,
|
|
88
88
|
totalSteps = 1
|
|
89
89
|
}) => {
|
|
90
|
-
var _a;
|
|
91
90
|
const contentRef = useRef(null);
|
|
92
91
|
const userEvents = useAnalyticsContext();
|
|
93
92
|
const { i18n } = useI18nContext();
|
|
@@ -100,7 +99,7 @@ const FormFlow = ({
|
|
|
100
99
|
const isFirstStep = currentStep === 0;
|
|
101
100
|
const isLastStep = currentStep === totalSteps - 1;
|
|
102
101
|
const isSingleStepForm = isFirstStep && isLastStep;
|
|
103
|
-
const hasProblems =
|
|
102
|
+
const hasProblems = summary?.problems?.verificationErrors !== void 0;
|
|
104
103
|
const progress = Math.floor(currentStep / (totalSteps - 1) * 100);
|
|
105
104
|
const scrollToTop = () => {
|
|
106
105
|
if (contentRef.current) {
|
|
@@ -119,7 +118,7 @@ const FormFlow = ({
|
|
|
119
118
|
};
|
|
120
119
|
const handleSave = () => {
|
|
121
120
|
setIsSaving(true);
|
|
122
|
-
Promise.resolve(handleSaveClick
|
|
121
|
+
Promise.resolve(handleSaveClick?.()).then(() => {
|
|
123
122
|
setIsSaving(false);
|
|
124
123
|
});
|
|
125
124
|
};
|
|
@@ -129,7 +128,7 @@ const FormFlow = ({
|
|
|
129
128
|
};
|
|
130
129
|
const handleBack = () => {
|
|
131
130
|
scrollToTop();
|
|
132
|
-
handleBackClick
|
|
131
|
+
handleBackClick?.();
|
|
133
132
|
};
|
|
134
133
|
const handleDismiss = () => {
|
|
135
134
|
setIsConfirmPresented(true);
|