@adyen/kyc-components 3.78.0 → 3.79.0-beta.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/{AcceptTermsOfServiceComponent-RKbf65lV.js → AcceptTermsOfServiceComponent-DJsxo6y6.js} +14 -12
- package/dist/{AccountSetupRejected-DXW_VZoK.js → AccountSetupRejected-GaYrlmG_.js} +2 -2
- package/dist/{Avatar-C2YDV0gm.js → Avatar-DevH_bDr.js} +2 -2
- package/dist/{BusinessDetailsDropin-CVz8h-FV.js → BusinessDetailsDropin-3ntzHytR.js} +71 -8
- package/dist/{BusinessFinancingComponent-DcTsjzjS.js → BusinessFinancingComponent-pMi8uNCF.js} +2 -2
- package/dist/{BusinessFinancingDropin-ClIw5oSr.js → BusinessFinancingDropin-DLvgCqUL.js} +8 -8
- package/dist/{BusinessFinancingPage-Q5n06X48.js → BusinessFinancingPage-DvBjb7NH.js} +2 -2
- package/dist/{BusinessTypeSelectionPage-BjThWvMl.js → BusinessTypeSelectionPage-D8RjOj5Q.js} +4 -4
- package/dist/{ContractViewer-BOWWc34c.js → ContractViewer-GOcW2OLl.js} +2 -2
- package/dist/{CreateIndividualComponent-BwYt60WF.js → CreateIndividualComponent-CM5SIRT0.js} +3 -3
- package/dist/{CreateTransferInstrumentComponent-DFXfBr_b.js → CreateTransferInstrumentComponent-ClO1AryF.js} +2 -2
- package/dist/{CustomerSupport-BpTifUgz.js → CustomerSupport-JpFkNFwU.js} +5 -5
- package/dist/{DebugModal-BzlmcbOw.js → DebugModal-FDPiOA9M.js} +8 -8
- package/dist/{DecisionMakerDetailsPage-Ca7H6XUl.js → DecisionMakerDetailsPage-BvnZF4p4.js} +3 -3
- package/dist/{DecisionMakers-OncrrnSI.js → DecisionMakers-BV5A1VoY.js} +4 -4
- package/dist/{EmbeddedStatus-Dt1svDQr.js → EmbeddedStatus-D2cm1w8t.js} +6 -6
- package/dist/{FormEndState-C7_g-krl.js → FormEndState-BJfp4sC5.js} +2 -2
- package/dist/{FormFlow-DsVBw4XS.js → FormFlow-CAYMxyI3.js} +2 -2
- package/dist/{IndividualOnfidoDropin-B9Q-UmYL.js → IndividualOnfidoDropin-NymvablQ.js} +17 -23
- package/dist/{Introduction-DCNIl7P4.js → Introduction-B0V4c9WY.js} +3 -3
- package/dist/LandingLayout-98uO-Fme.js +139 -0
- package/dist/{LegalRepresentativeDetailsPage-Z96DzAEO.js → LegalRepresentativeDetailsPage-DIpoj8cJ.js} +3 -3
- package/dist/{ManageIndividualComponent-122KEpPh.js → ManageIndividualComponent-BZuzISNE.js} +3 -3
- package/dist/{ManagePCIComponent-ICiU8bCT.js → ManagePCIComponent-ynSvqiIR.js} +3 -3
- package/dist/{ManageTermsOfServiceComponent-OhmFQls9.js → ManageTermsOfServiceComponent-C20f4Uz8.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-6utUDhjn.js → ManageTransferInstrumentComponent-CW-IPjVT.js} +4 -4
- package/dist/{OnboardingDropinComponent-qVS9VZiw.js → OnboardingDropinComponent-D_xvd0y3.js} +35 -35
- package/dist/{ProviderButton-BRuzMgOn.js → ProviderButton-DAmWrrBh.js} +9 -9
- package/dist/{Review-Br3-SpXg.js → Review-6NCHAWQT.js} +3 -3
- package/dist/{RootBusinessDetailsPage-C-i6NOsw.js → RootBusinessDetailsPage-B9dzfuO8.js} +3 -3
- package/dist/{RootIndividualDetailsPage-BWdkR4yy.js → RootIndividualDetailsPage-COK-BeIY.js} +3 -3
- package/dist/{SignPCIComponent-CLAAfaEH.js → SignPCIComponent-B7ApuXyW.js} +5 -5
- package/dist/{SingpassSelection-BNdH89aH.js → SingpassSelection-B_F647TE.js} +2 -2
- package/dist/{SoleProprietorshipPage-l2i80vf4.js → SoleProprietorshipPage-BGzUqHmW.js} +3 -3
- package/dist/{SourceOfFundsPage-Cq3w0rOb.js → SourceOfFundsPage-Bcd5Fp32.js} +117 -50
- package/dist/{StoreProvider-BexFINS8.js → StoreProvider-pr0BHE-x.js} +5723 -5579
- package/dist/{TaskItemStatus-CJT9Tf9h.js → TaskItemStatus-D_32BSJn.js} +2 -2
- package/dist/{TaxReportingDropin-BPVORMXi.js → TaxReportingDropin-BGTugcHv.js} +23 -54
- package/dist/{TileGroup-Bvs2at4r.js → TileGroup-BF7iVeKY.js} +2 -2
- package/dist/{TrustDetailsPage-CEsAp494.js → TrustDetailsPage-BRtIr2yL.js} +5 -5
- package/dist/{TrustMemberCompanyPage-CDwal1Av.js → TrustMemberCompanyPage-Dg1ROnFS.js} +4 -4
- package/dist/{TrustMemberIndividualPage-CSvuk6XK.js → TrustMemberIndividualPage-BHEzYp-T.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-DXoaa9hC.js → UnincorporatedPartnershipIndividualPage-CnSYd2lk.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-C8CPQH_m.js → UnincorporatedPartnershipMemberCompanyPage-CGEzsFpP.js} +3 -3
- package/dist/{VerificationErrorAlert-o6U_xOOw.js → VerificationErrorAlert-CxzUbQ7I.js} +8 -6
- package/dist/{ViewVerificationStatusComponent-D5oVUVgg.js → ViewVerificationStatusComponent-0rvR_2vC.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-CGow9lbX.js → css-BgAeei87.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-CSERCOTM.js → getFieldsWithExistingData-D6HWhCcx.js} +2 -2
- package/dist/{hasDataChanged-CT2kJDAl.js → hasDataChanged-BcvYHrnW.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-BQFRxvtx.js → json-NkeR8xIE.js} +2 -2
- package/dist/{localizeDateString-BN_i-DH0.js → localizeDateString-C-6M0Vee.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-OaObC033.js → mapFinancialReportsToFinancialInformation-3niSIBLT.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-nJgooSJw.js → plaintext-BuzmwOeP.js} +2 -2
- package/dist/pt-PT-BVzXBFp7.js +13 -0
- package/dist/pt-PT-D8nU-UM2.js +16 -0
- package/dist/{resolveEnvironment-Clecm3SX.js → resolveEnvironment-BjWE9qb6.js} +3 -3
- package/dist/ro-RO-CG33OwqS.js +16 -0
- package/dist/ro-RO-Cdmevo9A.js +13 -0
- package/dist/{rules-BDXwJ_ny.js → rules-BLzs3UsK.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-Dac42Q0s.js → useMultiForm-CyWxx2jn.js} +2 -2
- package/dist/{useOnboardingStatus-Dc4BUt-T.js → useOnboardingStatus-eM-p7Wdp.js} +1 -1
- package/dist/{useSalesChannelsSettings-Buh8Eyq5.js → useSalesChannelsSettings-CrDmjB7_.js} +1 -1
- package/dist/{useTermsOfServiceStatus-tab3ZtFg.js → useTermsOfServiceStatus-DBbKs9zP.js} +1 -1
- package/dist/{useUpdateLegalEntity-BHdaG-En.js → useUpdateLegalEntity-ANbvsxQ0.js} +1 -1
- package/dist/{utils-Dpjpew5O.js → utils-W0fKi1C6.js} +4 -4
- package/dist/{validate-XPyG23Wt.js → validate-q97-Zjyx.js} +2 -2
- package/dist/{yaml-BoVMW1k_.js → yaml-meMfRRjl.js} +2 -2
- package/package.json +2 -2
- package/dist/SourceOfFunds.module-D2gr_8zU.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/{AcceptTermsOfServiceComponent-RKbf65lV.js → AcceptTermsOfServiceComponent-DJsxo6y6.js}
RENAMED
|
@@ -2,19 +2,19 @@
|
|
|
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] = "0eab36dc-edc7-4b7c-9ba6-d5446b9d14a0", e._sentryDebugIdIdentifier = "sentry-dbid-0eab36dc-edc7-4b7c-9ba6-d5446b9d14a0");
|
|
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, useCallback } from "preact/hooks";
|
|
12
|
-
import { p as useApiContext, bg as useInvalidateRootLegalEntity, bh as useMutation, bj as httpPost, q as useQuery, w as skipToken, r as httpGet, X as createLogger, b as useI18nContext,
|
|
13
|
-
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-
|
|
14
|
-
import { C as ContractViewer, O as OutlinedIcon } from "./ContractViewer-
|
|
15
|
-
import { F as FormEndState } from "./FormEndState-
|
|
12
|
+
import { p as useApiContext, bg as useInvalidateRootLegalEntity, bh as useMutation, bj as httpPost, q as useQuery, w as skipToken, r as httpGet, X as createLogger, b as useI18nContext, Z as useTranslation, a0 as useAnalyticsContext, a6 as useToastContext, a7 as useExperimentsContext, bs as getLanguageCode, av as useForm, B as Alert, _ as Button, a3 as LoaderWrapper, aA as Field, bt as Select, bu as Checkbox, aP as ActionBar, bv as MaybeModal, b6 as ModalContent, b8 as ModalFooter, bw as StepProgressIndicator, b9 as Spacer, y as LegalEntityType, ag as getOwnSignatories, x as doesLegalEntityRequiresLegalRepresentative, v as getLegalRepresentative, an as getLegalEntityNameBasedOnType, aN as FormNavigation, a as useLegalEntity, R as ROOT_LE, L as Loader, W as TaskTypes } from "./StoreProvider-pr0BHE-x.js";
|
|
13
|
+
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-DBbKs9zP.js";
|
|
14
|
+
import { C as ContractViewer, O as OutlinedIcon } from "./ContractViewer-GOcW2OLl.js";
|
|
15
|
+
import { F as FormEndState } from "./FormEndState-BJfp4sC5.js";
|
|
16
16
|
import { d as downloadFile } from "./file-CiG1D0zy.js";
|
|
17
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
17
|
+
import { l as localizeDateString } from "./localizeDateString-C-6M0Vee.js";
|
|
18
18
|
const acceptTermsOfService = async (legalEntityId, baseUrl, termsOfServiceDocumentId, data) => {
|
|
19
19
|
return httpPost(
|
|
20
20
|
{
|
|
@@ -176,6 +176,7 @@ function ServiceAgreementDropin({
|
|
|
176
176
|
handleCloseClick
|
|
177
177
|
}) {
|
|
178
178
|
const { i18n } = useI18nContext();
|
|
179
|
+
const { i18n: i18next } = useTranslation();
|
|
179
180
|
const userEvents = useAnalyticsContext();
|
|
180
181
|
const { showToast } = useToastContext();
|
|
181
182
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
@@ -224,7 +225,7 @@ function ServiceAgreementDropin({
|
|
|
224
225
|
handleServiceAgreementIsNotAvailableInThatLanguage,
|
|
225
226
|
acceptanceId: activeForm?.acceptanceId,
|
|
226
227
|
serviceAgreementType: activeForm?.serviceAgreementType,
|
|
227
|
-
language:
|
|
228
|
+
language: getLanguageCode(i18next.language)
|
|
228
229
|
});
|
|
229
230
|
const { handleChangeFor, triggerValidation, data, valid, isValid, errors } = useForm({
|
|
230
231
|
schema: ["signer", "acceptServiceAgreement"],
|
|
@@ -328,10 +329,11 @@ function ServiceAgreementDropin({
|
|
|
328
329
|
}
|
|
329
330
|
};
|
|
330
331
|
const onDownloadUnacceptedTermsOfServiceDocument = async () => {
|
|
331
|
-
const
|
|
332
|
+
const languageCode = getLanguageCode(i18next.language);
|
|
333
|
+
const requestAndDownload = async (languageCode2) => {
|
|
332
334
|
const response = await getTermsOfService(rootLegalEntityId.value, baseUrl.value, {
|
|
333
335
|
type: activeForm.serviceAgreementType,
|
|
334
|
-
language:
|
|
336
|
+
language: languageCode2,
|
|
335
337
|
termsOfServiceDocumentFormat: "PDF"
|
|
336
338
|
});
|
|
337
339
|
if (!response?.document) {
|
|
@@ -341,12 +343,12 @@ function ServiceAgreementDropin({
|
|
|
341
343
|
};
|
|
342
344
|
try {
|
|
343
345
|
const availableLanguages = ["fr", "en"];
|
|
344
|
-
if (availableLanguages.includes(
|
|
345
|
-
await requestAndDownload(
|
|
346
|
+
if (availableLanguages.includes(i18next.language)) {
|
|
347
|
+
await requestAndDownload(languageCode);
|
|
346
348
|
}
|
|
347
349
|
await requestAndDownload("en");
|
|
348
350
|
} catch {
|
|
349
|
-
if (
|
|
351
|
+
if (languageCode !== FALLBACK_LANGUAGE_CODE) {
|
|
350
352
|
await requestAndDownload(FALLBACK_LANGUAGE_CODE).catch(logger.error);
|
|
351
353
|
return;
|
|
352
354
|
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { b as useI18nContext, A as AlertIcon, F as FormHeader } from "./StoreProvider-
|
|
12
|
-
import { D as DropinLayout } from "./OnboardingDropinComponent-
|
|
11
|
+
import { b as useI18nContext, A as AlertIcon, F as FormHeader } from "./StoreProvider-pr0BHE-x.js";
|
|
12
|
+
import { D as DropinLayout } from "./OnboardingDropinComponent-D_xvd0y3.js";
|
|
13
13
|
function AccountSetupRejected() {
|
|
14
14
|
const { i18n } = useI18nContext();
|
|
15
15
|
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] = "967c352a-106a-487f-9050-2bbcf0344111", e._sentryDebugIdIdentifier = "sentry-dbid-967c352a-106a-487f-9050-2bbcf0344111");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import {
|
|
12
|
+
import { a4 as Icon } from "./StoreProvider-pr0BHE-x.js";
|
|
13
13
|
const avatar = "adyen-kyc-avatar";
|
|
14
14
|
const avatarLabel = "adyen-kyc-avatar-label";
|
|
15
15
|
const avatarPrimary = "adyen-kyc-avatar-primary";
|
|
@@ -2,20 +2,20 @@
|
|
|
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] = "9a97e40b-7da3-486f-8d88-61ffc3ae9095", e._sentryDebugIdIdentifier = "sentry-dbid-9a97e40b-7da3-486f-8d88-61ffc3ae9095");
|
|
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, bh as useMutation, bj as httpPost, q as useQuery,
|
|
11
|
+
import { p as useApiContext, bh as useMutation, bj as httpPost, q as useQuery, dS as KNOWN_BROKEN_PRIMARY_SOURCE_CONNECTIONS, b as useI18nContext, dx as MemoizedDocumentUpload, _ as Button, b4 as Modal, b6 as ModalContent, C as Typography, ap as CountryCodes, O as CompanyTypesValue, dT as useGlobalData, dU as getForms, W as TaskTypes, dV as BasicInformation, dr as getFormProps, dW as CompanyStructure, dX as AdditionalInformation, dY as MemoizedConstitutionalDocument, y as LegalEntityType, dZ as FinancialInformation, bz as formatObject, be as entriesOf, cf as getDocument, cg as mapExistingFile, ch as getPageName, bn as businessDetailsComponentsKeyMapping, d_ as solePropBusinessDetailsKeyMapping, b0 as objectsDeepEqual, d$ as operationalAddressIsSameIds, e0 as COUNTRIES_USING_COMPANY_SEARCH, e1 as FIELDS_NEEDED_FOR_COMPANY_SEARCH, dg as keysOf, i as isUndefinedOrNull, dJ as isDateOlderThanAYear, aK as summaryItem, e2 as solePropBusinessDetailsApiKeyMapping, e3 as businessDetailsApiKeyMapping, dh as isEmpty, e4 as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, ck as createDocumentRequest, b2 as datasetUtilities, cF as mapAddressLabels, e5 as companyTypeMetadata, e6 as getProp, aq as isEmpty$1, X as createLogger, cE as filterOutUnwantedAssociationsIfRootLE, bT as isValidationError, bU as processValidationErrors, bV as isMaintenanceModeError, e7 as documentFormsIds, as as resolveFieldMetadata, e8 as registrationNumberDefaultFieldMetadata, e9 as inferCompanyRegistrationNumberType, ea as getCompanyRegistrationNumberOptions, eb as registrationNumberDefaultFieldConfig, ca as taxInformationDefaultFieldMetadata, ec as countryToTaxInfoTypeMap, cb as taxInformationDefaultFieldConfig, ed as getKeyForField, cn as drop, al as getOwnEntityAssociations, cO as doArraysMatch, cK as getFileExtention, P as useAccountHolder, a6 as useToastContext, a0 as useAnalyticsContext, a7 as useExperimentsContext, J as useSettingsContext, ee as verifiedBusiness, bp as useQueryClient, ef as useStateContext, K as SettingNames, eg as setIsBankAccountRequestedForOrganization, bO as getAssociatedLeAnalyticsPayload, b3 as getCapabilityProblems, co as documentApiUtils, cC as composePerScenarioFormConfigurations, cw as useScenarioConfiguration, eh as rules, cx as getPropsFromConfigurations, ei as useCompanySelection, ej as useVerifyTin, bP as getRequiredForms, bQ as addValidityToForms, bR as useFormComposer, ek as setVerifiedBusiness, el as FormWrapper, ba as Confirm, em as solePropBusinessDetailsDocumentMapping, en as businessDetailsDocumentMapping } from "./StoreProvider-pr0BHE-x.js";
|
|
12
12
|
import { useState, useEffect, useRef, useCallback, useMemo } from "preact/hooks";
|
|
13
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { h as hasDataChanged } from "./hasDataChanged-
|
|
15
|
-
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
16
|
-
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-
|
|
13
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-ANbvsxQ0.js";
|
|
14
|
+
import { h as hasDataChanged } from "./hasDataChanged-BcvYHrnW.js";
|
|
15
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-W0fKi1C6.js";
|
|
16
|
+
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-D6HWhCcx.js";
|
|
17
17
|
import cx from "classnames";
|
|
18
|
-
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-
|
|
18
|
+
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-3niSIBLT.js";
|
|
19
19
|
import { f as formatCurrency } from "./formatCurrency-CMOSdJMB.js";
|
|
20
20
|
const clearCompanyData = async (legalEntityId, baseUrl) => {
|
|
21
21
|
return httpPost({
|
|
@@ -763,6 +763,24 @@ const mapAdditionalInformation = (data, legalEntity) => {
|
|
|
763
763
|
);
|
|
764
764
|
return { ...result, ...dbaNameFields, ...isUen };
|
|
765
765
|
};
|
|
766
|
+
const mapLocalization = (data) => {
|
|
767
|
+
const mappings = [
|
|
768
|
+
{ formField: "jaHaniLegalCompanyName", script: "ja-Hani", legalEntityField: "legalName" },
|
|
769
|
+
{ formField: "jaKanaLegalCompanyName", script: "ja-Kana", legalEntityField: "legalName" }
|
|
770
|
+
];
|
|
771
|
+
const localizedScriptsAndFields = data.organization?.localization || data.soleProprietorship?.localization;
|
|
772
|
+
if (!localizedScriptsAndFields) {
|
|
773
|
+
return;
|
|
774
|
+
}
|
|
775
|
+
const result = {};
|
|
776
|
+
mappings.forEach((mapping) => {
|
|
777
|
+
const value = localizedScriptsAndFields.find(
|
|
778
|
+
(localization) => localization.script === mapping.script
|
|
779
|
+
)?.fields?.[mapping.legalEntityField];
|
|
780
|
+
result[mapping.formField] = value;
|
|
781
|
+
});
|
|
782
|
+
return result;
|
|
783
|
+
};
|
|
766
784
|
const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
767
785
|
if (!legalEntity) return {};
|
|
768
786
|
const {
|
|
@@ -803,12 +821,13 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
|
803
821
|
companyFinancialInformation: {}
|
|
804
822
|
};
|
|
805
823
|
const businessDetailsSchema = legalEntity.type === "organization" ? orgSchema : buildSolePropSchema();
|
|
824
|
+
const localization = mapLocalization(legalEntity);
|
|
806
825
|
return entriesOf(businessDetailsSchema).reduce((componentData, [key]) => {
|
|
807
826
|
switch (key) {
|
|
808
827
|
case "basicInformation": {
|
|
809
828
|
return {
|
|
810
829
|
...componentData,
|
|
811
|
-
[key]: mapBasicInformation(businessDetailsSchema[key])
|
|
830
|
+
[key]: { ...mapBasicInformation(businessDetailsSchema[key]), ...localization ?? {} }
|
|
812
831
|
};
|
|
813
832
|
}
|
|
814
833
|
case "companyStructure": {
|
|
@@ -878,6 +897,8 @@ const businessDetailsBase = {
|
|
|
878
897
|
country: { rule: "REQUIRED" },
|
|
879
898
|
entityType: { rule: "businessRequiresCompanyType" },
|
|
880
899
|
legalCompanyName: { rule: "REQUIRED" },
|
|
900
|
+
jaHaniLegalCompanyName: { rule: "japaneseLegalCompanyName" },
|
|
901
|
+
jaKanaLegalCompanyName: { rule: "japaneseLegalCompanyName" },
|
|
881
902
|
hasDoingBusinessAs: { rule: "REQUIRED" },
|
|
882
903
|
registrationAddress: { rule: "REQUIRED" },
|
|
883
904
|
operationalAddressIsSame: { rule: "REQUIRED" },
|
|
@@ -1054,6 +1075,7 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
1054
1075
|
const registrationNumber = COUNTRIES_USING_COMPANY_SEARCH.includes(
|
|
1055
1076
|
data.basicInformation?.country
|
|
1056
1077
|
) ? data.basicInformation?.registrationNumber : data.additionalInformation?.registrationNumber;
|
|
1078
|
+
const localization = processLocalizationFields(data.basicInformation);
|
|
1057
1079
|
const doingBusinessAs = data.additionalInformation?.doingBusinessAs ?? "";
|
|
1058
1080
|
const entityObject = isEmpty(data.companyStructure) ? requestObj.soleProprietorship : requestObj.organization;
|
|
1059
1081
|
if (entityObject) {
|
|
@@ -1069,6 +1091,9 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
1069
1091
|
requestObj.organization.registrationNumberAbsent = false;
|
|
1070
1092
|
}
|
|
1071
1093
|
}
|
|
1094
|
+
if (localization) {
|
|
1095
|
+
entityObject.localization = localization;
|
|
1096
|
+
}
|
|
1072
1097
|
if (data.additionalInformation?.exemptedFromRegistrationNumber && isExperimentEnabled("EnableRegistrationAndTaxAbsentStatesV4") && requestObj.organization) {
|
|
1073
1098
|
requestObj.organization.registrationNumberAbsent = data.additionalInformation?.exemptedFromRegistrationNumber;
|
|
1074
1099
|
}
|
|
@@ -1104,6 +1129,44 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
1104
1129
|
}
|
|
1105
1130
|
return requestObj;
|
|
1106
1131
|
};
|
|
1132
|
+
const processLocalizationFields = (data) => {
|
|
1133
|
+
if (!data) {
|
|
1134
|
+
return;
|
|
1135
|
+
}
|
|
1136
|
+
const LOCALIZATION_FIELDS = {
|
|
1137
|
+
jaHaniLegalCompanyName: { script: "ja-Hani", fieldName: "legalName" },
|
|
1138
|
+
jaKanaLegalCompanyName: { script: "ja-Kana", fieldName: "legalName" }
|
|
1139
|
+
};
|
|
1140
|
+
const localization = {};
|
|
1141
|
+
Object.keys(LOCALIZATION_FIELDS).forEach((field) => {
|
|
1142
|
+
const basicInformationFieldSchemaField = field;
|
|
1143
|
+
if (data[basicInformationFieldSchemaField]) {
|
|
1144
|
+
const script = LOCALIZATION_FIELDS[basicInformationFieldSchemaField]?.script;
|
|
1145
|
+
const fieldName = LOCALIZATION_FIELDS[basicInformationFieldSchemaField]?.fieldName;
|
|
1146
|
+
if (script && localization[script]) {
|
|
1147
|
+
localization[script] = {
|
|
1148
|
+
fields: {
|
|
1149
|
+
...localization[script].fields,
|
|
1150
|
+
[fieldName]: data[basicInformationFieldSchemaField]
|
|
1151
|
+
}
|
|
1152
|
+
};
|
|
1153
|
+
} else if (script && !localization[script]) {
|
|
1154
|
+
localization[script] = {
|
|
1155
|
+
fields: {
|
|
1156
|
+
[fieldName]: data[basicInformationFieldSchemaField]
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
});
|
|
1162
|
+
if (Object.keys(localization).length === 0) {
|
|
1163
|
+
return;
|
|
1164
|
+
}
|
|
1165
|
+
return Object.keys(localization).map((script) => ({
|
|
1166
|
+
script,
|
|
1167
|
+
fields: { ...localization[script].fields }
|
|
1168
|
+
}));
|
|
1169
|
+
};
|
|
1107
1170
|
const MANDATORY_FIELDS_BUSINESS_DETAILS = [
|
|
1108
1171
|
"basicInformation.legalCompanyName",
|
|
1109
1172
|
"basicInformation.country"
|
package/dist/{BusinessFinancingComponent-DcTsjzjS.js → BusinessFinancingComponent-pMi8uNCF.js}
RENAMED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo } from "preact/hooks";
|
|
12
|
-
import { a as useLegalEntity, g as getLegalEntityCountry, L as Loader } from "./StoreProvider-
|
|
13
|
-
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-
|
|
12
|
+
import { a as useLegalEntity, g as getLegalEntityCountry, L as Loader } from "./StoreProvider-pr0BHE-x.js";
|
|
13
|
+
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-DLvgCqUL.js";
|
|
14
14
|
function BusinessFinancingComponent({
|
|
15
15
|
legalEntityId,
|
|
16
16
|
onSubmitSuccess
|
|
@@ -2,20 +2,20 @@
|
|
|
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] = "6c2035d9-9033-4098-bdab-90b7e309ea96", e._sentryDebugIdIdentifier = "sentry-dbid-6c2035d9-9033-4098-bdab-90b7e309ea96");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useEffect, useMemo, useState, useCallback } from "preact/hooks";
|
|
12
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
13
|
-
import {
|
|
14
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-
|
|
15
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
16
|
-
import { F as FormEndState } from "./FormEndState-
|
|
17
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
18
|
-
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-
|
|
12
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-ANbvsxQ0.js";
|
|
13
|
+
import { by as reverseMapping, bz as formatObject, bA as isEeaCountry, y as LegalEntityType, bc as cloneObject, p as useApiContext, q as useQuery, r as httpGet, b as useI18nContext, aA as Field, bt as Select, C as Typography, bB as LegalFormField, az as createFormUtils, aX as RadioGroup, bC as Link, bD as InputText, bd as currencyByCountry, bE as InputNumber, bF as InputDate, bG as Currency, bH as CURRENCY_FIELD, bI as InputCurrency, bJ as useFormContext, aw as getFieldProps, ay as ErrorPanel, bK as getAddressSchemaForCountry, bL as COUNTRIES_WITH_STATES_DATASET, bM as Address, bN as getAddressSchemaLabelsByCountry, a0 as useAnalyticsContext, bg as useInvalidateRootLegalEntity, ao as useAssociatedLegalEntity, b2 as datasetUtilities, a6 as useToastContext, J as useSettingsContext, K as SettingNames, bO as getAssociatedLeAnalyticsPayload, bP as getRequiredForms, bQ as addValidityToForms, bR as useFormComposer, bS as trackNavigation, L as Loader, a4 as Icon, _ as Button, bT as isValidationError, bU as processValidationErrors, bV as isMaintenanceModeError } from "./StoreProvider-pr0BHE-x.js";
|
|
14
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-CAYMxyI3.js";
|
|
15
|
+
import { u as useMultiForm } from "./useMultiForm-CyWxx2jn.js";
|
|
16
|
+
import { F as FormEndState } from "./FormEndState-BJfp4sC5.js";
|
|
17
|
+
import { l as localizeDateString } from "./localizeDateString-C-6M0Vee.js";
|
|
18
|
+
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-3niSIBLT.js";
|
|
19
19
|
import { b as businessFinancingMultiformRules } from "./validate-CuwYJGc9.js";
|
|
20
20
|
const businessFinancingBaseMapping = {
|
|
21
21
|
legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { b as useI18nContext, a as useLegalEntity, R as ROOT_LE, L as Loader, g as getLegalEntityCountry } from "./StoreProvider-
|
|
12
|
-
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-
|
|
11
|
+
import { b as useI18nContext, a as useLegalEntity, R as ROOT_LE, L as Loader, g as getLegalEntityCountry } from "./StoreProvider-pr0BHE-x.js";
|
|
12
|
+
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-DLvgCqUL.js";
|
|
13
13
|
const BusinessFinancingPage = ({
|
|
14
14
|
onSubmit,
|
|
15
15
|
handleHomeClick
|
package/dist/{BusinessTypeSelectionPage-BjThWvMl.js → BusinessTypeSelectionPage-D8RjOj5Q.js}
RENAMED
|
@@ -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] = "3328d35a-0d90-43a3-b610-fb9d6c5f320b", e._sentryDebugIdIdentifier = "sentry-dbid-3328d35a-0d90-43a3-b610-fb9d6c5f320b");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { X as createLogger, b as useI18nContext,
|
|
11
|
+
import { X as createLogger, b as useI18nContext, a0 as useAnalyticsContext, a6 as useToastContext, a7 as useExperimentsContext, P as useAccountHolder, dP as getCapabilities, g as getLegalEntityCountry, y as LegalEntityType, av as useForm, a3 as LoaderWrapper, C as Typography, aA as Field, dQ as EntityTypeRadioGroupCard, aD as RadioGroupCard, _ as Button, b9 as Spacer, a4 as Icon, a as useLegalEntity, R as ROOT_LE, L as Loader } from "./StoreProvider-pr0BHE-x.js";
|
|
12
12
|
import { useState, useEffect } from "preact/hooks";
|
|
13
|
-
import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { u as useSelectionOptions, g as getBusinessType, a as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, b as getTargetLegalEntityType, c as businessTypeIcons, d as determineOrganizationTypeToUpdate } from "./utils-
|
|
13
|
+
import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-ANbvsxQ0.js";
|
|
14
|
+
import { u as useSelectionOptions, g as getBusinessType, a as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, b as getTargetLegalEntityType, c as businessTypeIcons, d as determineOrganizationTypeToUpdate } from "./utils-W0fKi1C6.js";
|
|
15
15
|
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") });
|
|
16
16
|
const logger$1 = createLogger();
|
|
17
17
|
const getBusinessTypeExamplesForCountry = async (country) => {
|
|
@@ -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] = "29872cc2-2bdf-4769-98d1-5c0527883249", e._sentryDebugIdIdentifier = "sentry-dbid-29872cc2-2bdf-4769-98d1-5c0527883249");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
11
|
+
import { a4 as Icon } from "./StoreProvider-pr0BHE-x.js";
|
|
12
12
|
import cx from "classnames";
|
|
13
13
|
import { useRef, useState, useEffect } from "preact/hooks";
|
|
14
14
|
const outlinedIcon = "adyen-kyc-outlined-icon";
|
package/dist/{CreateIndividualComponent-BwYt60WF.js → CreateIndividualComponent-CM5SIRT0.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] = "ae9a337f-ab1c-4c14-ac90-17643bf4fd97", e._sentryDebugIdIdentifier = "sentry-dbid-ae9a337f-ab1c-4c14-ac90-17643bf4fd97");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useLegalEntity,
|
|
12
|
-
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-
|
|
11
|
+
import { a as useLegalEntity, ac as useCapabilityProblems, a7 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, bk as getProblemsForEntity, U as EntityType, bl as isOnfidoAutofillFlowEnabled, W as TaskTypes } from "./StoreProvider-pr0BHE-x.js";
|
|
12
|
+
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-NymvablQ.js";
|
|
13
13
|
const CreateIndividualComponent = ({
|
|
14
14
|
legalEntityId,
|
|
15
15
|
onSubmitSuccess,
|
|
@@ -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] = "c2a80467-0830-48b1-bed1-085262e09d28", e._sentryDebugIdIdentifier = "sentry-dbid-c2a80467-0830-48b1-bed1-085262e09d28");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useState } from "preact/hooks";
|
|
12
|
-
import { a as useLegalEntity,
|
|
12
|
+
import { a as useLegalEntity, ao as useAssociatedLegalEntity, y as LegalEntityType, L as Loader, bq as PayoutDetailsDropin, W as TaskTypes } from "./StoreProvider-pr0BHE-x.js";
|
|
13
13
|
function CreateTransferInstrumentComponent({
|
|
14
14
|
legalEntityId,
|
|
15
15
|
transferInstrumentId,
|
|
@@ -2,17 +2,17 @@
|
|
|
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] = "c8c0b94c-889e-4292-b636-a53c7791fe8c", e._sentryDebugIdIdentifier = "sentry-dbid-c8c0b94c-889e-4292-b636-a53c7791fe8c");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
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,
|
|
11
|
+
import { a as useLegalEntity, R as ROOT_LE, L as Loader, b as useI18nContext, a0 as useAnalyticsContext, a6 as useToastContext, bp as useQueryClient, as as resolveFieldMetadata, c8 as defaultFieldMetadata, c9 as fieldConfig, cs as getAsyncPhoneValidationRules, F as FormHeader, df as ContactDetails, aP as ActionBar, X as createLogger } from "./StoreProvider-pr0BHE-x.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-ANbvsxQ0.js";
|
|
14
|
+
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-q97-Zjyx.js";
|
|
15
|
+
import { u as useMultiForm } from "./useMultiForm-CyWxx2jn.js";
|
|
16
16
|
const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
|
|
17
17
|
return {
|
|
18
18
|
email: customerSupport?.customerSupport?.email || "",
|
|
@@ -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] = "5f309be9-6563-4b22-b03e-14797e11f4e6", e._sentryDebugIdIdentifier = "sentry-dbid-5f309be9-6563-4b22-b03e-14797e11f4e6");
|
|
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 {
|
|
12
|
+
import { _ as Button, be as entriesOf, bD as InputText, b as useI18nContext, dM as splitTaskIdentifier, a7 as useExperimentsContext, J as useSettingsContext, ad as useGlobalStore, dj as listToRecord, dN as valuesOf, b4 as Modal, X as createLogger, a4 as Icon, K as SettingNames, dO as ExperimentNames } from "./StoreProvider-pr0BHE-x.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-D_32BSJn.js";
|
|
15
15
|
const tabs = "adyen-kyc-tabs";
|
|
16
16
|
const styles$2 = {
|
|
17
17
|
tabs
|
|
@@ -144,10 +144,10 @@ const transformModule = (highlights, codeNode, scope) => {
|
|
|
144
144
|
};
|
|
145
145
|
const supportedModules = ["plaintext", "json", "yaml", "css"];
|
|
146
146
|
const moduleMap = {
|
|
147
|
-
plaintext: () => import("./plaintext-
|
|
148
|
-
json: () => import("./json-
|
|
149
|
-
yaml: () => import("./yaml-
|
|
150
|
-
css: () => import("./css-
|
|
147
|
+
plaintext: () => import("./plaintext-BuzmwOeP.js"),
|
|
148
|
+
json: () => import("./json-NkeR8xIE.js"),
|
|
149
|
+
yaml: () => import("./yaml-meMfRRjl.js"),
|
|
150
|
+
css: () => import("./css-BgAeei87.js")
|
|
151
151
|
};
|
|
152
152
|
const getModule = async (name) => {
|
|
153
153
|
if (!supportedModules.includes(name)) {
|
|
@@ -448,7 +448,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
448
448
|
const [tab, setTab] = useState("metadata");
|
|
449
449
|
const rootLegalEntity = useGlobalStore().rootLegalEntity.value;
|
|
450
450
|
const metadata = {
|
|
451
|
-
sdkVersion: "3.
|
|
451
|
+
sdkVersion: "3.79.0-beta.0",
|
|
452
452
|
locale: i18n.locale,
|
|
453
453
|
rootLegalEntityId: rootLegalEntity.id
|
|
454
454
|
};
|
|
@@ -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] = "1abf3221-98e7-4c9e-ba85-dd0924d47816", e._sentryDebugIdIdentifier = "sentry-dbid-1abf3221-98e7-4c9e-ba85-dd0924d47816");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useLegalEntity, w as skipToken,
|
|
12
|
-
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-
|
|
11
|
+
import { a as useLegalEntity, w as skipToken, ac as useCapabilityProblems, a7 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, bk as getProblemsForEntity, U as EntityType, bl as isOnfidoAutofillFlowEnabled, W as TaskTypes, a5 as noop } from "./StoreProvider-pr0BHE-x.js";
|
|
12
|
+
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-NymvablQ.js";
|
|
13
13
|
function DecisionMakerDetailsPage({
|
|
14
14
|
decisionMakerId,
|
|
15
15
|
parentCompanyId,
|
|
@@ -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] = "3a8b53c2-aecb-418c-8309-d55a92e385af", e._sentryDebugIdIdentifier = "sentry-dbid-3a8b53c2-aecb-418c-8309-d55a92e385af");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
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,
|
|
13
|
-
import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { c as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, d as EntityAssociation } from "./OnboardingDropinComponent-
|
|
12
|
+
import { a as useLegalEntity, R as ROOT_LE, L as Loader, aa as useGetTaskStatus, b as useI18nContext, Z as useTranslation, a0 as useAnalyticsContext, a6 as useToastContext, ac as useCapabilityProblems, bx as getOwnDecisionMakers, cR as getAvailableDecisionMakerRoleTypes, W as TaskTypes, cA as getAllowedDecisionMakerRoles, F as FormHeader, aW as ContextGuidance, aU as Trans, cP as DecisionMakerType, B as Alert, ab as CardGroup, _ as Button, aP as ActionBar } from "./StoreProvider-pr0BHE-x.js";
|
|
13
|
+
import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-ANbvsxQ0.js";
|
|
14
|
+
import { c as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, d as EntityAssociation } from "./OnboardingDropinComponent-D_xvd0y3.js";
|
|
15
15
|
const DecisionMakers = (props) => {
|
|
16
16
|
const { data, isLoading } = useLegalEntity(ROOT_LE);
|
|
17
17
|
if (isLoading || !data) {
|
|
@@ -2,15 +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] = "c6498c1b-8a50-44e9-9175-26eabd4518dc", e._sentryDebugIdIdentifier = "sentry-dbid-c6498c1b-8a50-44e9-9175-26eabd4518dc");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
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,
|
|
12
|
+
import { A as Avatar } from "./Avatar-DevH_bDr.js";
|
|
13
|
+
import { Y as TaskStatus, Z as useTranslation, z as Skeleton, C as Typography } from "./StoreProvider-pr0BHE-x.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";
|
|
@@ -59,7 +59,7 @@ const EmbeddedStatus = ({
|
|
|
59
59
|
actionIndicator,
|
|
60
60
|
...props
|
|
61
61
|
}) => {
|
|
62
|
-
const {
|
|
62
|
+
const { t } = useTranslation();
|
|
63
63
|
const statusTag = status ? statusToTag(status) : { translationKey: tagLabel, variant: tagVariant };
|
|
64
64
|
const avatarVariant = light ? "tertiary" : "secondary";
|
|
65
65
|
return /* @__PURE__ */ jsxs(
|
|
@@ -87,9 +87,9 @@ const EmbeddedStatus = ({
|
|
|
87
87
|
el: "div",
|
|
88
88
|
variant: "body-stronger",
|
|
89
89
|
className: styles.embeddedStatusActionIndicator,
|
|
90
|
-
children:
|
|
90
|
+
children: t(($) => $[actionIndicator.labelKey])
|
|
91
91
|
}
|
|
92
|
-
) }) : statusTag?.translationKey && /* @__PURE__ */ jsx("section", { children: loading ? /* @__PURE__ */ jsx(Skeleton, { width: "8ch", height: "1em" }) : /* @__PURE__ */ jsx(Tag, { variant: statusTag.variant, children:
|
|
92
|
+
) }) : statusTag?.translationKey && /* @__PURE__ */ jsx("section", { children: loading ? /* @__PURE__ */ jsx(Skeleton, { width: "8ch", height: "1em" }) : /* @__PURE__ */ jsx(Tag, { variant: statusTag.variant, children: t(($) => $[statusTag.translationKey]) }) })
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
);
|
|
@@ -2,7 +2,7 @@
|
|
|
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] = "4c868799-0b5a-4752-ad93-3c8cca8a0647", e._sentryDebugIdIdentifier = "sentry-dbid-4c868799-0b5a-4752-ad93-3c8cca8a0647");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -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 {
|
|
13
|
+
import { a4 as Icon, A as AlertIcon } from "./StoreProvider-pr0BHE-x.js";
|
|
14
14
|
const formEndState = "adyen-kyc-form-end-state";
|
|
15
15
|
const icon = "adyen-kyc-icon";
|
|
16
16
|
const iconInfo = "adyen-kyc-icon-info";
|
|
@@ -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] = "4a73aab2-63c1-4f09-989b-3212330f277b", e._sentryDebugIdIdentifier = "sentry-dbid-4a73aab2-63c1-4f09-989b-3212330f277b");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo, useRef, useState } from "preact/hooks";
|
|
12
|
-
import {
|
|
12
|
+
import { dD as FormContext, a0 as useAnalyticsContext, Z as useTranslation, bv as MaybeModal, a3 as LoaderWrapper, dE as FormRouterContextProvider, aO as Summary, _ as Button, $ as IconButton, ba as Confirm } from "./StoreProvider-pr0BHE-x.js";
|
|
13
13
|
import cx from "classnames";
|
|
14
14
|
function FormContextProvider({
|
|
15
15
|
children,
|