@adyen/kyc-components 3.79.6 → 3.79.8
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-CxlsswDe.js → AcceptTermsOfServiceComponent-CvBncbDK.js} +5 -5
- package/dist/{AccountSetupRejected-DJZlyMXP.js → AccountSetupRejected-K6hoUisO.js} +2 -2
- package/dist/{Avatar-DZ0JMZzW.js → Avatar-D3r48uwO.js} +1 -1
- package/dist/{BusinessDetailsDropin-fQi44NMX.js → BusinessDetailsDropin-BNFfTz4N.js} +6 -6
- package/dist/{BusinessFinancingComponent-Y_4y49UE.js → BusinessFinancingComponent-BvNFQvsY.js} +2 -2
- package/dist/{BusinessFinancingDropin-D8fpMbzf.js → BusinessFinancingDropin-C4L5jeHq.js} +8 -8
- package/dist/{BusinessFinancingPage-WEATbBQ3.js → BusinessFinancingPage-B97eSHgm.js} +2 -2
- package/dist/{BusinessTypeSelectionPage-RcJfOlJn.js → BusinessTypeSelectionPage-B7bX-W4q.js} +3 -3
- package/dist/{ContractViewer-5ZoVLg57.js → ContractViewer-KWy8AMkE.js} +1 -1
- package/dist/{CreateIndividualComponent-C7A8u43W.js → CreateIndividualComponent-CKx7SwzM.js} +2 -2
- package/dist/{CreateTransferInstrumentComponent-DoLikB9W.js → CreateTransferInstrumentComponent-CmeFRaHY.js} +1 -1
- package/dist/{CustomerSupport-CXo6cQS1.js → CustomerSupport-RECXwijV.js} +4 -4
- package/dist/{DebugModal-BEVHhoY-.js → DebugModal-C5yOlHoc.js} +8 -8
- package/dist/{DecisionMakerDetailsPage-CEDKTbMt.js → DecisionMakerDetailsPage-DwhEhTKP.js} +2 -2
- package/dist/{DecisionMakers-BgtfZ8GW.js → DecisionMakers-C9d2OKba.js} +3 -3
- package/dist/{EmbeddedStatus-D9uJM2I7.js → EmbeddedStatus-DF9_tLmF.js} +2 -2
- package/dist/{FormEndState-Ytnk1eJG.js → FormEndState-CMJLGaZB.js} +1 -1
- package/dist/{FormFlow-Cqk7gI0d.js → FormFlow-DexrAWst.js} +1 -1
- package/dist/{IndividualOnfidoDropin-DSDTWPn8.js → IndividualOnfidoDropin-XIfo-Tp5.js} +15 -12
- package/dist/{Introduction-CqdVELXg.js → Introduction-DSzLYGKF.js} +2 -2
- package/dist/{LandingLayout-frgca7uQ.js → LandingLayout-CkmK88cD.js} +1 -1
- package/dist/{LegalRepresentativeDetailsPage-wbQTbF6A.js → LegalRepresentativeDetailsPage-HD-oZoee.js} +2 -2
- package/dist/{ManageIndividualComponent-CEGNObp5.js → ManageIndividualComponent-C0KroAy5.js} +3 -3
- package/dist/{ManagePCIComponent-CsUdQj8n.js → ManagePCIComponent-DsZbyLGk.js} +3 -3
- package/dist/{ManageTermsOfServiceComponent-y5fNtWNr.js → ManageTermsOfServiceComponent-DYe_MkGz.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-McQ1eu4M.js → ManageTransferInstrumentComponent-C7wANLqn.js} +3 -3
- package/dist/{OnboardingDropinComponent-Cch9eUJw.js → OnboardingDropinComponent-D-4t_f_V.js} +31 -31
- package/dist/{ProviderButton-DflgO7Ds.js → ProviderButton-BAOkGhsp.js} +1 -1
- package/dist/{Review-CnkMaLwh.js → Review-CVqIFqae.js} +2 -2
- package/dist/{RootBusinessDetailsPage-B67aBIDM.js → RootBusinessDetailsPage-DNgWc8k2.js} +2 -2
- package/dist/{RootIndividualDetailsPage-Bl_U_9-9.js → RootIndividualDetailsPage-BF6QVV9f.js} +2 -2
- package/dist/{SignPCIComponent-CnOmaZGq.js → SignPCIComponent-CU_22XfH.js} +4 -4
- package/dist/{SingpassSelection-S9QNe6lz.js → SingpassSelection-DD0BCFDK.js} +1 -1
- package/dist/{SoleProprietorshipPage-BdAyJdBM.js → SoleProprietorshipPage-3kANXCmS.js} +2 -2
- package/dist/{SourceOfFundsPage-ZTsglpDg.js → SourceOfFundsPage-DqPzadeq.js} +9 -9
- package/dist/{StoreProvider-FGY-AWKM.js → StoreProvider-C9f1cNU1.js} +32 -23
- package/dist/{TaskItemStatus-aMPlR4pt.js → TaskItemStatus-Cf_EPMsj.js} +1 -1
- package/dist/{TaxReportingDropin-B30LteyS.js → TaxReportingDropin-BynPOewY.js} +6 -6
- package/dist/{TileGroup-D8f2nzfF.js → TileGroup-DEn6_dY6.js} +1 -1
- package/dist/{TrustDetailsPage-fwL3Jh2B.js → TrustDetailsPage-CqgvdvpC.js} +4 -4
- package/dist/{TrustMemberCompanyPage-C79gTM0V.js → TrustMemberCompanyPage-CHMdL0pR.js} +3 -3
- package/dist/{TrustMemberIndividualPage-DeSCc9wX.js → TrustMemberIndividualPage-ERJ7GGO0.js} +2 -2
- package/dist/{UnincorporatedPartnershipIndividualPage-By4Ib_Wd.js → UnincorporatedPartnershipIndividualPage-CgkOqLFy.js} +2 -2
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-COFBpTM_.js → UnincorporatedPartnershipMemberCompanyPage-dk0i0YTR.js} +2 -2
- package/dist/{VerificationErrorAlert-Bsy_SYxm.js → VerificationErrorAlert-CZ9R1U9u.js} +1 -1
- package/dist/{ViewVerificationStatusComponent-DnGqCtq9.js → ViewVerificationStatusComponent-B8r7DQP_.js} +2 -2
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +14 -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/{css-nkiMABO0.js → css-B_piGAoR.js} +1 -1
- package/dist/{getFieldsWithExistingData-UfIpD426.js → getFieldsWithExistingData-ZQJwfmNg.js} +1 -1
- package/dist/{hasDataChanged-BY_-EetZ.js → hasDataChanged-CAXxypQo.js} +1 -1
- package/dist/{json-N_oPCNNx.js → json-DrXnw38t.js} +1 -1
- package/dist/{localizeDateString-BHT2rwHk.js → localizeDateString-8rLJWShn.js} +1 -1
- package/dist/{mapFinancialReportsToFinancialInformation-D5eiCpsS.js → mapFinancialReportsToFinancialInformation-DsGPUKLz.js} +1 -1
- package/dist/{plaintext-BXEhmqTe.js → plaintext-CthAkigD.js} +1 -1
- package/dist/{resolveEnvironment-D-zsP3RA.js → resolveEnvironment-B_FJpuNt.js} +3 -3
- package/dist/{rules-g_wc6GUX.js → rules-DGPc1OTP.js} +1 -1
- package/dist/types/api/configurations/useScenarios.d.ts +6 -6
- package/dist/types/core/models/api/get-scenarios.d.ts +26 -20
- package/dist/{useMultiForm-DtKUEHFb.js → useMultiForm-D5ZOI3Aa.js} +1 -1
- package/dist/{useOnboardingStatus-Bs5TS7fK.js → useOnboardingStatus-CQXiKHRZ.js} +1 -1
- package/dist/{useSalesChannelsSettings-Bmz_5KJw.js → useSalesChannelsSettings-Zql8KDQv.js} +1 -1
- package/dist/{useTermsOfServiceStatus-aQ0hoMK0.js → useTermsOfServiceStatus-CL9FXPiO.js} +1 -1
- package/dist/{useUpdateLegalEntity-BNgSPkMo.js → useUpdateLegalEntity-Bg9VWqdX.js} +1 -1
- package/dist/{utils-RGgkpJ7K.js → utils-Dh8ZmxRb.js} +3 -3
- package/dist/{validate-DCf_SDU1.js → validate-B71wt5Eb.js} +1 -1
- package/dist/{validate-e6_m4njO.js → validate-BnncPwEt.js} +1 -1
- package/dist/{yaml-a0ovn_cl.js → yaml-BxJwsExg.js} +1 -1
- package/package.json +1 -1
package/dist/adyen-manage-pci.js
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import register from "preact-custom-element";
|
|
12
|
-
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-
|
|
13
|
-
import { M as ManagePCIComponent } from "./ManagePCIComponent-
|
|
12
|
+
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
|
|
13
|
+
import { M as ManagePCIComponent } from "./ManagePCIComponent-DsZbyLGk.js";
|
|
14
14
|
const AdyenManagePci = ({
|
|
15
15
|
rootlegalentityid,
|
|
16
16
|
fetchToken,
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import register from "preact-custom-element";
|
|
12
|
-
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-
|
|
13
|
-
import { M as ManageTermsOfServiceComponent } from "./ManageTermsOfServiceComponent-
|
|
12
|
+
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
|
|
13
|
+
import { M as ManageTermsOfServiceComponent } from "./ManageTermsOfServiceComponent-DYe_MkGz.js";
|
|
14
14
|
const AdyenManageTermsOfService = ({
|
|
15
15
|
rootlegalentityid,
|
|
16
16
|
fetchToken,
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import register from "preact-custom-element";
|
|
12
|
-
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-
|
|
13
|
-
import { M as ManageTransferInstrumentComponent } from "./ManageTransferInstrumentComponent-
|
|
12
|
+
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
|
|
13
|
+
import { M as ManageTransferInstrumentComponent } from "./ManageTransferInstrumentComponent-C7wANLqn.js";
|
|
14
14
|
const AdyenManageTransferInstruments = ({
|
|
15
15
|
rootlegalentityid,
|
|
16
16
|
fetchToken,
|
package/dist/adyen-onboarding.js
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import register from "preact-custom-element";
|
|
12
|
-
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-
|
|
13
|
-
import { O as OnboardingDropinComponent } from "./OnboardingDropinComponent-
|
|
12
|
+
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
|
|
13
|
+
import { O as OnboardingDropinComponent } from "./OnboardingDropinComponent-D-4t_f_V.js";
|
|
14
14
|
const AdyenOnboarding = ({
|
|
15
15
|
rootlegalentityid,
|
|
16
16
|
fetchToken,
|
package/dist/adyen-sign-pci.js
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import register from "preact-custom-element";
|
|
12
|
-
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-
|
|
13
|
-
import { SignPCIComponent } from "./SignPCIComponent-
|
|
12
|
+
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
|
|
13
|
+
import { SignPCIComponent } from "./SignPCIComponent-CU_22XfH.js";
|
|
14
14
|
const AdyenSignPci = ({
|
|
15
15
|
rootlegalentityid,
|
|
16
16
|
fetchToken,
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import register from "preact-custom-element";
|
|
12
|
-
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-
|
|
13
|
-
import { AcceptTermsOfServiceComponent } from "./AcceptTermsOfServiceComponent-
|
|
12
|
+
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
|
|
13
|
+
import { AcceptTermsOfServiceComponent } from "./AcceptTermsOfServiceComponent-CvBncbDK.js";
|
|
14
14
|
const AdyenTermsOfService = ({
|
|
15
15
|
rootlegalentityid,
|
|
16
16
|
fetchToken,
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import register from "preact-custom-element";
|
|
12
|
-
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-
|
|
13
|
-
import { C as CreateTransferInstrumentComponent } from "./CreateTransferInstrumentComponent-
|
|
12
|
+
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
|
|
13
|
+
import { C as CreateTransferInstrumentComponent } from "./CreateTransferInstrumentComponent-CmeFRaHY.js";
|
|
14
14
|
const AdyenTransferInstrument = ({
|
|
15
15
|
rootlegalentityid,
|
|
16
16
|
fetchToken,
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import register from "preact-custom-element";
|
|
12
|
-
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-
|
|
13
|
-
import { V as ViewVerificationStatusComponent } from "./ViewVerificationStatusComponent-
|
|
12
|
+
import { s as stylesheets, E as EmbedShell, r as resolveEnvironment } from "./resolveEnvironment-B_FJpuNt.js";
|
|
13
|
+
import { V as ViewVerificationStatusComponent } from "./ViewVerificationStatusComponent-B8r7DQP_.js";
|
|
14
14
|
const AdyenVerificationStatus = ({
|
|
15
15
|
rootlegalentityid,
|
|
16
16
|
fetchToken,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as cssProps } from "./DebugModal-
|
|
10
|
+
import { c as cssProps } from "./DebugModal-C5yOlHoc.js";
|
|
11
11
|
const definitions = {
|
|
12
12
|
any: { regex: /.*/g, css: cssProps.text },
|
|
13
13
|
property: { regex: /(^|[\r\n])[^:]*:/g, css: cssProps.key },
|
package/dist/{getFieldsWithExistingData-UfIpD426.js → getFieldsWithExistingData-ZQJwfmNg.js}
RENAMED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { dL as getNestedPropertyKeys } from "./StoreProvider-
|
|
10
|
+
import { dL as getNestedPropertyKeys } from "./StoreProvider-C9f1cNU1.js";
|
|
11
11
|
const getFieldsWithExistingData = (legalEntity, keyMapping, documentMapping, knownProblematicFields = []) => {
|
|
12
12
|
const apiFieldsWithExistingData = getNestedPropertyKeys(legalEntity);
|
|
13
13
|
const nonDocumentFields = apiFieldsWithExistingData.map((field) => keyMapping[field]).filter(Boolean).filter((field) => !knownProblematicFields.includes(field));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { be as entriesOf, b0 as objectsDeepEqual } from "./StoreProvider-
|
|
10
|
+
import { be as entriesOf, b0 as objectsDeepEqual } from "./StoreProvider-C9f1cNU1.js";
|
|
11
11
|
const hasDataChanged = (initialData, currentData) => entriesOf(currentData ?? {}).some(([key, value]) => {
|
|
12
12
|
if (typeof value === "object") {
|
|
13
13
|
return !objectsDeepEqual(value, initialData?.[key]);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as cssProps } from "./DebugModal-
|
|
10
|
+
import { c as cssProps } from "./DebugModal-C5yOlHoc.js";
|
|
11
11
|
const definitions = {
|
|
12
12
|
any: { regex: /.*/g, css: cssProps.text },
|
|
13
13
|
number: { regex: /-?\d+(\.\d+)?([eE][+-]?\d+)?/g, css: cssProps.number },
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { X as createLogger } from "./StoreProvider-
|
|
10
|
+
import { X as createLogger } from "./StoreProvider-C9f1cNU1.js";
|
|
11
11
|
const localizeDateString = (dateString, locale, options) => {
|
|
12
12
|
const logger = createLogger();
|
|
13
13
|
const formatOptions = {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { dM as isDateOlderThanAYear, cn as drop } from "./StoreProvider-
|
|
10
|
+
import { dM as isDateOlderThanAYear, cn as drop } from "./StoreProvider-C9f1cNU1.js";
|
|
11
11
|
const mapFinancialInformationToFinancialReport = ({
|
|
12
12
|
currency,
|
|
13
13
|
financialReportingDate,
|
|
@@ -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] = "c1dac8db-0d53-4b4c-8db5-d67730f81c41", e._sentryDebugIdIdentifier = "sentry-dbid-c1dac8db-0d53-4b4c-8db5-d67730f81c41");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { br as refreshSession, _ as Button, L as Loader, S as SettingsProvider, Q as QueryClientProvider, f as ApiProvider, E as ExperimentsContextProvider, h as StoreProvider, j as AnalyticsProvider, I as I18nProvider, D as DebugListener, T as ToastContextProvider, k as StateProvider, o as setSdkTokenHandler, n as normalizeEnvironment } from "./StoreProvider-
|
|
11
|
+
import { br as refreshSession, _ as Button, L as Loader, S as SettingsProvider, Q as QueryClientProvider, f as ApiProvider, E as ExperimentsContextProvider, h as StoreProvider, j as AnalyticsProvider, I as I18nProvider, D as DebugListener, T as ToastContextProvider, k as StateProvider, o as setSdkTokenHandler, n as normalizeEnvironment } from "./StoreProvider-C9f1cNU1.js";
|
|
12
12
|
import { useState, useEffect } from "preact/hooks";
|
|
13
13
|
const sheet = new CSSStyleSheet();
|
|
14
14
|
const stylesheets = [sheet];
|
|
@@ -56,7 +56,7 @@ const EmbedShell = ({
|
|
|
56
56
|
experiments,
|
|
57
57
|
refreshExperiments,
|
|
58
58
|
children: /* @__PURE__ */ jsxs(StoreProvider, { children: [
|
|
59
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.79.
|
|
59
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.79.8" }),
|
|
60
60
|
/* @__PURE__ */ jsx(
|
|
61
61
|
AnalyticsProvider,
|
|
62
62
|
{
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { ap as CountryCodes, cP as DecisionMakerType, cQ as createFormRules, cS as allowedCountriesForNominee, bK as getAddressSchemaForCountry, bL as COUNTRIES_WITH_STATES_DATASET, W as TaskTypes, ci as getLocalizedIdDocumentTypeOptions, cT as Scenarios } from "./StoreProvider-
|
|
10
|
+
import { ap as CountryCodes, cP as DecisionMakerType, cQ as createFormRules, cS as allowedCountriesForNominee, bK as getAddressSchemaForCountry, bL as COUNTRIES_WITH_STATES_DATASET, W as TaskTypes, ci as getLocalizedIdDocumentTypeOptions, cT as Scenarios } from "./StoreProvider-C9f1cNU1.js";
|
|
11
11
|
const REQUIRED = "REQUIRED";
|
|
12
12
|
const OPTIONAL = "OPTIONAL";
|
|
13
13
|
const SOLE_PROP_COUNTRIES = [
|
|
@@ -15,7 +15,7 @@ export type QueryKeyScenarios = ['scenarios', LeType, CountryCode];
|
|
|
15
15
|
* @param legalEntityType - needs to be dynamic, might not match the legalEntityId's legalEntityType
|
|
16
16
|
*/
|
|
17
17
|
export declare const useScenarios: (countryCode: CountryCode, legalEntityType: LeType, options?: QueryOptions<ConfigurationsResponse>) => {
|
|
18
|
-
data: ("
|
|
18
|
+
data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
|
|
19
19
|
error: Error;
|
|
20
20
|
isError: true;
|
|
21
21
|
isPending: false;
|
|
@@ -42,7 +42,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
|
|
|
42
42
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
43
43
|
promise: Promise<ConfigurationsResponse>;
|
|
44
44
|
} | {
|
|
45
|
-
data: ("
|
|
45
|
+
data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
|
|
46
46
|
error: null;
|
|
47
47
|
isError: false;
|
|
48
48
|
isPending: false;
|
|
@@ -69,7 +69,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
|
|
|
69
69
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
70
70
|
promise: Promise<ConfigurationsResponse>;
|
|
71
71
|
} | {
|
|
72
|
-
data: ("
|
|
72
|
+
data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
|
|
73
73
|
error: Error;
|
|
74
74
|
isError: true;
|
|
75
75
|
isPending: false;
|
|
@@ -96,7 +96,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
|
|
|
96
96
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
97
97
|
promise: Promise<ConfigurationsResponse>;
|
|
98
98
|
} | {
|
|
99
|
-
data: ("
|
|
99
|
+
data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
|
|
100
100
|
error: null;
|
|
101
101
|
isError: false;
|
|
102
102
|
isPending: true;
|
|
@@ -123,7 +123,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
|
|
|
123
123
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
124
124
|
promise: Promise<ConfigurationsResponse>;
|
|
125
125
|
} | {
|
|
126
|
-
data: ("
|
|
126
|
+
data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
|
|
127
127
|
error: null;
|
|
128
128
|
isError: false;
|
|
129
129
|
isPending: true;
|
|
@@ -150,7 +150,7 @@ export declare const useScenarios: (countryCode: CountryCode, legalEntityType: L
|
|
|
150
150
|
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
151
151
|
promise: Promise<ConfigurationsResponse>;
|
|
152
152
|
} | {
|
|
153
|
-
data: ("
|
|
153
|
+
data: ("L0" | "L1" | "L_TAXINFO" | "L1_ID" | "L1_IDO" | "L1_NAT" | "L1_IDDOC" | "L_PH" | "L_MOTION" | "L" | "L_REGDOC" | "L_TAXDOC" | "L_PROOFOFADDRESS" | "L_BAFIN")[] | undefined;
|
|
154
154
|
isError: false;
|
|
155
155
|
error: null;
|
|
156
156
|
isPending: false;
|
|
@@ -1,22 +1,28 @@
|
|
|
1
|
+
import type { Scenario as ApiScenario } from '../../../api/configurations/configurations.types';
|
|
1
2
|
/**
|
|
2
|
-
* @description
|
|
3
|
-
*
|
|
3
|
+
* @description The available scenarios matching the API. Scenarios are a way of defining
|
|
4
|
+
* when certain fields must be provided by default. For an example of how they are used,
|
|
5
|
+
* see {@link businessDetailsFieldsPerScenario}.
|
|
6
|
+
*
|
|
7
|
+
* *Note*: this const determines in which order scenarios will be evaluated; later entries have
|
|
8
|
+
* higher precedence. This is needed because the backend may sort them inconsistently.
|
|
9
|
+
*
|
|
10
|
+
* E.g. if `L1` and `L1_IDDOC` both define rules for a field, `L1_IDDOC` will take precedence.
|
|
4
11
|
*/
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export type Scenario = `${Scenarios}`;
|
|
12
|
+
export declare const Scenarios: {
|
|
13
|
+
readonly L0: "L0";
|
|
14
|
+
readonly L1: "L1";
|
|
15
|
+
readonly L1_ID: "L1_ID";
|
|
16
|
+
readonly L1_IDO: "L1_IDO";
|
|
17
|
+
readonly L1_NAT: "L1_NAT";
|
|
18
|
+
readonly L1_IDDOC: "L1_IDDOC";
|
|
19
|
+
readonly L: "L";
|
|
20
|
+
readonly L_REGDOC: "L_REGDOC";
|
|
21
|
+
readonly L_TAXDOC: "L_TAXDOC";
|
|
22
|
+
readonly L_PROOFOFADDRESS: "L_PROOFOFADDRESS";
|
|
23
|
+
readonly L_PH: "L_PH";
|
|
24
|
+
readonly L_MOTION: "L_MOTION";
|
|
25
|
+
readonly L_TAXINFO: "L_TAXINFO";
|
|
26
|
+
readonly L_BAFIN: "L_BAFIN";
|
|
27
|
+
};
|
|
28
|
+
export type Scenario = ApiScenario;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import { b0 as objectsDeepEqual, dH as ValidationResult, X as createLogger, dI as isNotEmptyValidator, aq as isEmpty } from "./StoreProvider-
|
|
11
|
+
import { b0 as objectsDeepEqual, dH as ValidationResult, X as createLogger, dI as isNotEmptyValidator, aq as isEmpty } from "./StoreProvider-C9f1cNU1.js";
|
|
12
12
|
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
13
13
|
a[c] = obj[c];
|
|
14
14
|
return a;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { p as useApiContext, q as useQuery, r as httpGet } from "./StoreProvider-
|
|
10
|
+
import { p as useApiContext, q as useQuery, r as httpGet } from "./StoreProvider-C9f1cNU1.js";
|
|
11
11
|
const getOnboardingStatus = async (legalEntityId, baseUrl) => {
|
|
12
12
|
return httpGet({
|
|
13
13
|
baseUrl,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { p as useApiContext, q as useQuery, bj as httpPost, J as useSettingsContext, K as SettingNames } from "./StoreProvider-
|
|
10
|
+
import { p as useApiContext, q as useQuery, bj as httpPost, J as useSettingsContext, K as SettingNames } from "./StoreProvider-C9f1cNU1.js";
|
|
11
11
|
import { useMemo } from "preact/hooks";
|
|
12
12
|
const getPciStatus = async (legalEntityId, baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { p as useApiContext, q as useQuery, r as httpGet } from "./StoreProvider-
|
|
10
|
+
import { p as useApiContext, q as useQuery, r as httpGet } from "./StoreProvider-C9f1cNU1.js";
|
|
11
11
|
const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
|
|
12
12
|
return httpGet({
|
|
13
13
|
baseUrl,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { p as useApiContext, bh as useMutation, bj as httpPost, bg as useInvalidateRootLegalEntity, bp as useQueryClient } from "./StoreProvider-
|
|
10
|
+
import { p as useApiContext, bh as useMutation, bj as httpPost, bg as useInvalidateRootLegalEntity, bp as useQueryClient } from "./StoreProvider-C9f1cNU1.js";
|
|
11
11
|
const createLegalEntity = async (legalEntityId, baseUrl, data) => {
|
|
12
12
|
return httpPost(
|
|
13
13
|
{
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { g as getLegalEntityCountry, dS as getCapabilities, y as LegalEntityType, M as hasOwnEntityAssociationOfType, O as CompanyTypesValue, ap as CountryCodes, dU as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./StoreProvider-
|
|
11
|
-
import { b as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-
|
|
12
|
-
import { S as SOLE_PROP_COUNTRIES } from "./rules-
|
|
10
|
+
import { g as getLegalEntityCountry, dS as getCapabilities, y as LegalEntityType, M as hasOwnEntityAssociationOfType, O as CompanyTypesValue, ap as CountryCodes, dU as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./StoreProvider-C9f1cNU1.js";
|
|
11
|
+
import { b as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-D-4t_f_V.js";
|
|
12
|
+
import { S as SOLE_PROP_COUNTRIES } from "./rules-DGPc1OTP.js";
|
|
13
13
|
const TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
14
14
|
const BUSINESS_BANK_ACCOUNT_COUNTRIES = [
|
|
15
15
|
CountryCodes.UnitedStates,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback } from "preact/hooks";
|
|
11
|
-
import { p as useApiContext, bj as httpPost, dK as emailPattern } from "./StoreProvider-
|
|
11
|
+
import { p as useApiContext, bj as httpPost, dK as emailPattern } from "./StoreProvider-C9f1cNU1.js";
|
|
12
12
|
const validatePhoneNumber = (baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
14
14
|
{
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as cssProps } from "./DebugModal-
|
|
10
|
+
import { c as cssProps } from "./DebugModal-C5yOlHoc.js";
|
|
11
11
|
const definitions = {
|
|
12
12
|
any: { regex: /.*/g, css: cssProps.text },
|
|
13
13
|
boolean: { regex: /^(\s*)([\w-]+)(:)\s*(.*)$/g, css: cssProps.boolean },
|