@adyen/kyc-components 3.67.3 → 3.68.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-CU2alc91.js +1711 -0
- package/dist/{AccountSetupRejected-ChiJY18-.js → AccountSetupRejected-CJ-_A3Ny.js} +3 -2
- package/dist/{BusinessTypeSelection-D7ZvvIMS.js → BusinessTypeSelection-8O8S1NJQ.js} +16 -16
- package/dist/{CXEL7IU7-Bk2n0dNy.js → CXEL7IU7-BJwGAGi_.js} +3 -3
- package/dist/CreateIndividualComponent-CbKLS3lw.js +3803 -0
- package/dist/{CustomerSupport-CJNWyhvH.js → CustomerSupport-DwHNm45d.js} +4 -3
- package/dist/{DebugModal-Bv0myReE.js → DebugModal-Bl6alyPp.js} +8 -9
- package/dist/{DecisionMakers-ChL8AjTJ.js → DecisionMakers-D35kGGBp.js} +4 -2
- package/dist/EmbedShell-uQMA3IsQ.js +60 -0
- package/dist/{core-B_WrZP-J.js → EventEmitter-BCgWoSHk.js} +1242 -23651
- package/dist/{HASRA6WW-1uv7rGnF.js → HASRA6WW-bymne0OX.js} +2 -2
- package/dist/{I3HPI4QX-Cu2MHefw.js → I3HPI4QX-BjDbFXav.js} +3 -3
- package/dist/{Introduction-S84AjEkr.js → Introduction-C0NQbS7T.js} +3 -2
- package/dist/{Review-B416UIqb.js → Review-dqxqat30.js} +4 -2
- package/dist/{SingpassSelection-CGe7MVVA.js → SingpassSelection-Dkxz3a-V.js} +3 -3
- package/dist/{TaxReportingDropin-CUnugFcz.js → TaxReportingDropin-E8B4As4p.js} +48 -17
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +3 -13
- package/dist/core-PYXN6HpB.js +18040 -0
- package/dist/{css-BdtMD5A5.js → css-w3W1DNq3.js} +2 -2
- package/dist/individual.js +35 -19
- package/dist/{json-DbFHJS1e.js → json-BVkPD1GZ.js} +2 -2
- package/dist/listToRecord-CBVflh7a.js +160 -0
- package/dist/{plaintext-DuNA8yq2.js → plaintext-Bgjkv8j9.js} +2 -2
- package/dist/style.css +948 -377
- package/dist/styles-CLV89_hH.js +6142 -0
- package/dist/terms-of-service-preact.js +15 -0
- package/dist/terms-of-service-react.js +15 -0
- package/dist/terms-of-service.js +55 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -0
- package/dist/types/api/address/useRetrieveAddress.d.ts +5 -0
- package/dist/types/api/address/useSearchAddress.d.ts +1 -0
- package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -0
- package/dist/types/api/check/useCheck.d.ts +2 -0
- package/dist/types/api/configurations/useScenarios.d.ts +181 -0
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -0
- package/dist/types/api/configurations/useTaskTypes.d.ts +6 -0
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -4
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -0
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -0
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -0
- package/dist/types/api/documents/{useGetDocument.d.ts → useDocument.d.ts} +6 -1
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +5 -0
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -0
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -0
- package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +6 -2
- package/dist/types/api/pciTemplate/usePciStatus.d.ts +5 -2
- package/dist/types/api/pciTemplate/usePciTemplate.d.ts +5 -2
- package/dist/types/api/pciTemplate/useSignPci.d.ts +4 -1
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -0
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +1 -0
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -0
- package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +4 -1
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +14 -2
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +6 -2
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +5 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +6 -2
- package/dist/types/api/transferInstruments/{useGetBankVerificationProviders.d.ts → useBankVerificationProviders.d.ts} +5 -1
- package/dist/types/api/transferInstruments/{useGetTransferInstrument.d.ts → useTransferInstrument.d.ts} +6 -1
- package/dist/types/api/transferInstruments/{useGetTransferInstruments.d.ts → useTransferInstruments.d.ts} +2 -1
- package/dist/types/api/types.d.ts +14 -0
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +5 -0
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +6 -2
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +15 -0
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
- package/dist/types/components/BankAccount/hooks/useAsyncAccountDetailsValidationRules.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -4
- package/dist/types/components/EFP/tasks/HighExposureDropin/types.d.ts +0 -2
- package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +2 -8
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +4 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +3 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -5
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -4
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +10 -0
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +2 -2
- package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +0 -3
- package/dist/types/components/Trust/forms/Trust/types.d.ts +2 -2
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +30 -0
- package/dist/types/components/Trust/tasks/TrustDropin/TrustDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +6 -3
- package/dist/types/components/Trust/utils/addOrUpdateAssociatedTrustMember.d.ts +4 -4
- package/dist/types/components/Trust/utils/addOrUpdateUndefinedBeneficiary.d.ts +2 -2
- package/dist/types/components/Trust/utils/updateExemptSettlorName.d.ts +4 -4
- package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +2 -2
- package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +7 -3
- package/dist/types/components/ui/atoms/Field/Field.d.ts +26 -7
- package/dist/types/components/ui/atoms/Field/Field.types.d.ts +4 -2
- package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +2 -6
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
- package/dist/types/components/ui/atoms/Select/Select.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -2
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +3 -2
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.d.ts +1 -1
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +1 -0
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +4 -2
- package/dist/types/context/ExperimentContext/types.d.ts +0 -10
- package/dist/types/context/SettingsContext/types.d.ts +3 -1
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +26 -0
- package/dist/types/core/models/errors/validation-error.d.ts +1 -9
- package/dist/types/core/services/http.d.ts +3 -3
- package/dist/types/core/services/types.d.ts +2 -2
- package/dist/types/embeds/individual/individual.types.d.ts +5 -1
- package/dist/types/embeds/individual/preact/Individual.d.ts +3 -3
- package/dist/types/embeds/individual/react/Individual.d.ts +3 -3
- package/dist/types/embeds/individual/vue/individual.types.d.ts +3 -3
- package/dist/types/embeds/terms-of-service/adyen-terms-of-service.d.ts +1 -0
- package/dist/types/embeds/terms-of-service/preact/TermsOfService.d.ts +10 -0
- package/dist/types/embeds/terms-of-service/react/TermsOfService.d.ts +20 -0
- package/dist/types/embeds/terms-of-service/terms-of-service.types.d.ts +8 -0
- package/dist/types/embeds/utils.d.ts +4 -0
- package/dist/types/hooks/useScenarioConfiguration.d.ts +11 -4
- package/dist/types/utils/api/processValidationErrors.d.ts +5 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/utils-Do7EwrWz.js +24 -0
- package/dist/{yaml-CZT9wc9a.js → yaml-Jyq-xpmw.js} +2 -2
- package/package.json +16 -1
- package/dist/types/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +0 -7
- package/dist/types/context/ConfigurationApiContext/ConfigurationApiProvider.d.ts +0 -7
- package/dist/types/context/ConfigurationApiContext/getEmbeddedApi.d.ts +0 -5
- package/dist/types/context/ConfigurationApiContext/useConfigurationApi.d.ts +0 -2
- package/dist/types/core/models/api/get-configuration.d.ts +0 -17
- package/dist/types/core/models/api/get-tasks.d.ts +0 -2
- package/dist/types/core/services/componentApi/get-scenarios.d.ts +0 -4
- package/dist/types/core/services/componentApi/get-tasks.d.ts +0 -3
- package/dist/types/core/services/componentApi/update-legal-entity.d.ts +0 -3
- package/dist/types/core/services/componentApi/validate-phone-number.d.ts +0 -3
- package/dist/types/hooks/useComponentApi.d.ts +0 -10
|
@@ -2,14 +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] = "8ff9362b-ec67-43b8-972a-153d429cc36a", e._sentryDebugIdIdentifier = "sentry-dbid-8ff9362b-ec67-43b8-972a-153d429cc36a");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
11
|
+
import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, f as useQueryClient, aR as resolveFieldMetadata, dL as defaultFieldMetadata, dM as fieldConfig, cn as getAsyncPhoneValidationRules, bX as FormHeader, c8 as ContactDetails, cG as ActionBar, c as createLogger } from "./EventEmitter-BCgWoSHk.js";
|
|
12
12
|
import { useCallback, useMemo, useEffect } from "preact/hooks";
|
|
13
|
+
import { B as useUpdateLegalEntity, H as contactDetailsValidationRules, M as useValidatePhoneNumberImperatively, O as useMultiForm } from "./CreateIndividualComponent-CbKLS3lw.js";
|
|
13
14
|
const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
|
|
14
15
|
var _a, _b, _c;
|
|
15
16
|
return {
|
|
@@ -37,7 +38,6 @@ function CustomerSupportInner({
|
|
|
37
38
|
const { i18n } = useI18nContext();
|
|
38
39
|
const userEvents = useAnalyticsContext();
|
|
39
40
|
const { showToast } = useToastContext();
|
|
40
|
-
const { validatePhoneNumber } = useConfigurationApi();
|
|
41
41
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
42
42
|
const queryClient = useQueryClient();
|
|
43
43
|
const requiredFields = {
|
|
@@ -59,6 +59,7 @@ function CustomerSupportInner({
|
|
|
59
59
|
},
|
|
60
60
|
[country]
|
|
61
61
|
);
|
|
62
|
+
const validatePhoneNumber = useValidatePhoneNumberImperatively();
|
|
62
63
|
const asyncValidators = useMemo(
|
|
63
64
|
() => ({
|
|
64
65
|
customerSupport: {
|
|
@@ -2,14 +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] = "de8df38d-0df8-4fa2-888b-97fefcc8f6bb", e._sentryDebugIdIdentifier = "sentry-dbid-de8df38d-0df8-4fa2-888b-97fefcc8f6bb");
|
|
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 { G as Button, _ as entriesOf, bc as InputText, i as useI18nContext, dW as splitTaskIdentifier, n as useExperimentsContext, o as useSettingsContext, ct as useGlobalStore, dX as valuesOf, dY as useTaskStatuses, M as Modal, c as createLogger, Q as Icon, S as SettingNames } from "./EventEmitter-BCgWoSHk.js";
|
|
13
|
+
import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-CBVflh7a.js";
|
|
13
14
|
var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
|
|
14
15
|
ExperimentNames2["AllowMoreRolesForMainRootTrustee"] = "AllowMoreRolesForMainRootTrustee";
|
|
15
16
|
ExperimentNames2["ShowUnsupportedEntityType"] = "ShowUnsupportedEntityType";
|
|
@@ -27,12 +28,10 @@ var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
|
|
|
27
28
|
ExperimentNames2["EnablePhoneFieldScenario"] = "EnablePhoneFieldScenario";
|
|
28
29
|
ExperimentNames2["ShowCustomerSupportV4"] = "ShowCustomerSupportV4";
|
|
29
30
|
ExperimentNames2["EnableRegistrationAndTaxAbsentStatesV4"] = "EnableRegistrationAndTaxAbsentStatesV4";
|
|
30
|
-
ExperimentNames2["EnableManualCompanyTinVerification"] = "EnableManualCompanyTinVerification";
|
|
31
31
|
ExperimentNames2["EnableAutofillFlowForPureIndividualsInKeyMarkets"] = "EnableAutofillFlowForPureIndividualsInKeyMarkets";
|
|
32
32
|
ExperimentNames2["EnableAutofillFlowForPureIndividualsInAdditionalMarkets"] = "EnableAutofillFlowForPureIndividualsInAdditionalMarkets";
|
|
33
33
|
ExperimentNames2["EnableAutofillFlowForDecisionMakersInKeyMarkets"] = "EnableAutofillFlowForDecisionMakersInKeyMarkets";
|
|
34
34
|
ExperimentNames2["EnableAutofillFlowForDecisionMakersInAdditionalMarkets"] = "EnableAutofillFlowForDecisionMakersInAdditionalMarkets";
|
|
35
|
-
ExperimentNames2["EnablePreventPoBoxAddress"] = "EnablePreventPoBoxAddress";
|
|
36
35
|
ExperimentNames2["EnableLimitCountryBusinessAccountCustomers"] = "EnableLimitCountryBusinessAccountCustomers";
|
|
37
36
|
ExperimentNames2["EnableUnincorporatedPartnershipInHO"] = "EnableUnincorporatedPartnershipInHO";
|
|
38
37
|
ExperimentNames2["UseOnboardingComponentsForSingpass"] = "UseOnboardingComponentsForSingpass";
|
|
@@ -176,10 +175,10 @@ const transformModule = (highlights, codeNode, scope) => {
|
|
|
176
175
|
};
|
|
177
176
|
const supportedModules = ["plaintext", "json", "yaml", "css"];
|
|
178
177
|
const moduleMap = {
|
|
179
|
-
plaintext: () => import("./plaintext-
|
|
180
|
-
json: () => import("./json-
|
|
181
|
-
yaml: () => import("./yaml-
|
|
182
|
-
css: () => import("./css-
|
|
178
|
+
plaintext: () => import("./plaintext-Bgjkv8j9.js"),
|
|
179
|
+
json: () => import("./json-BVkPD1GZ.js"),
|
|
180
|
+
yaml: () => import("./yaml-Jyq-xpmw.js"),
|
|
181
|
+
css: () => import("./css-w3W1DNq3.js")
|
|
183
182
|
};
|
|
184
183
|
const getModule = async (name) => {
|
|
185
184
|
if (!supportedModules.includes(name)) {
|
|
@@ -470,7 +469,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
470
469
|
const [tab, setTab] = useState("metadata");
|
|
471
470
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
472
471
|
const metadata = {
|
|
473
|
-
sdkVersion: "3.
|
|
472
|
+
sdkVersion: "3.68.1",
|
|
474
473
|
locale: i18n.locale,
|
|
475
474
|
rootLegalEntityId: rootLegalEntity.id
|
|
476
475
|
};
|
|
@@ -2,14 +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] = "7d38732b-c74b-4a83-a9e4-c5ac21a2beaa", e._sentryDebugIdIdentifier = "sentry-dbid-7d38732b-c74b-4a83-a9e4-c5ac21a2beaa");
|
|
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 {
|
|
12
|
+
import { u as useLegalEntity, K as Loader, ah as useGetTaskStatus, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, c_ as getOwnDecisionMakers, d$ as getAvailableDecisionMakerRoleTypes, T as TaskTypes, cp as getAllowedDecisionMakerRoles, bX as FormHeader, c3 as ContextGuidance, bG as DecisionMakerType, U as Alert, ae as CardGroup, G as Button, cG as ActionBar } from "./EventEmitter-BCgWoSHk.js";
|
|
13
|
+
import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-CbKLS3lw.js";
|
|
14
|
+
import { h as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, j as EntityAssociation } from "./core-PYXN6HpB.js";
|
|
13
15
|
const DecisionMakers = (props) => {
|
|
14
16
|
const { data, isLoading } = useLegalEntity();
|
|
15
17
|
if (isLoading || !data) {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "16ed85ce-ee94-4044-ba5b-a810303cc8d1", e._sentryDebugIdIdentifier = "sentry-dbid-16ed85ce-ee94-4044-ba5b-a810303cc8d1");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
+
import { d4 as SettingsProvider, d5 as ExperimentsContextProvider, d6 as ApiProvider, d7 as QueryClientProvider, d8 as StoreProvider, d9 as AnalyticsProvider, da as CoreProvider, db as I18nProvider, d3 as EventEmitter, dc as DebugListener, dd as ToastContextProvider, de as StateProvider, df as ReactQueryDevtools2 } from "./EventEmitter-BCgWoSHk.js";
|
|
12
|
+
function injectCss(shadowRoot) {
|
|
13
|
+
{
|
|
14
|
+
import("./styles-CLV89_hH.js").then(({ css }) => {
|
|
15
|
+
const styleEl = document.createElement("style");
|
|
16
|
+
styleEl.appendChild(document.createTextNode(css));
|
|
17
|
+
shadowRoot.appendChild(styleEl);
|
|
18
|
+
}).catch((err) => console.error("Error loading styles", err));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const EmbedShell = ({
|
|
22
|
+
children,
|
|
23
|
+
// TODO: consider changing name to rootLegalEntity, here and in OnboardingComponents
|
|
24
|
+
/** Root legal entity */
|
|
25
|
+
legalEntityId,
|
|
26
|
+
settings,
|
|
27
|
+
experiments,
|
|
28
|
+
// HO-only
|
|
29
|
+
refreshExperiments,
|
|
30
|
+
// HO-only
|
|
31
|
+
loadingContext,
|
|
32
|
+
// sdkToken, library only
|
|
33
|
+
// getSdkToken, library only
|
|
34
|
+
componentName,
|
|
35
|
+
contextCountry,
|
|
36
|
+
locale
|
|
37
|
+
}) => {
|
|
38
|
+
const eventEmitter = new EventEmitter();
|
|
39
|
+
return /* @__PURE__ */ jsx(SettingsProvider, { settings, children: /* @__PURE__ */ jsx(ExperimentsContextProvider, { experiments, refreshExperiments, children: /* @__PURE__ */ jsx(ApiProvider, { legalEntityId, baseUrl: loadingContext, children: /* @__PURE__ */ jsx(QueryClientProvider, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
40
|
+
/* @__PURE__ */ jsxs(StoreProvider, { children: [
|
|
41
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.68.1" }),
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
|
+
AnalyticsProvider,
|
|
44
|
+
{
|
|
45
|
+
componentName,
|
|
46
|
+
legalEntityId,
|
|
47
|
+
children: /* @__PURE__ */ jsx(CoreProvider, { contextCountry, children: /* @__PURE__ */ jsxs(I18nProvider, { locale, eventEmitter, children: [
|
|
48
|
+
/* @__PURE__ */ jsx(DebugListener, {}),
|
|
49
|
+
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container-wrapper", children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container", children: /* @__PURE__ */ jsx(ToastContextProvider, { children: /* @__PURE__ */ jsx(StateProvider, { children }) }) }) })
|
|
50
|
+
] }) })
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ jsx(ReactQueryDevtools2, {})
|
|
55
|
+
] }) }) }) }) });
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
EmbedShell as E,
|
|
59
|
+
injectCss as i
|
|
60
|
+
};
|