@adyen/kyc-components 3.82.3 → 3.82.5
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-DBiIy4Kp.js → AcceptTermsOfServiceComponent-BGGuYzVT.js} +14 -14
- package/dist/{AccountSetupRejected-D27RKt9K.js → AccountSetupRejected-r9CAPayx.js} +4 -4
- package/dist/{Address-ByYSgoVJ.js → Address-Ps3QJqTf.js} +7 -7
- package/dist/{Alert-TryjgqmO.js → Alert-DEfR8oqe.js} +1 -1
- package/dist/{Avatar-CKP57y-Q.js → Avatar-CIg4XXaO.js} +1 -1
- package/dist/{BusinessDetailsDropin-CNFVVwGJ.js → BusinessDetailsDropin-4sQmLYXH.js} +33 -33
- package/dist/{BusinessFinancingComponent-DCD8DE-r.js → BusinessFinancingComponent-DwXlzYZ3.js} +4 -4
- package/dist/{BusinessFinancingDropin-Dhc_JYVL.js → BusinessFinancingDropin-Fzeuauk2.js} +22 -22
- package/dist/{BusinessFinancingPage-Cj5fDj-T.js → BusinessFinancingPage-DSvUJKFY.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-BhA3bBL3.js → BusinessTypeSelectionPage-p9u7jRU1.js} +6 -6
- package/dist/{Card-BG1vjevh.js → Card-Cj9L_zDN.js} +3 -3
- package/dist/{Confirm-CDy3GQty.js → Confirm-WhBWhUrG.js} +2 -2
- package/dist/{CountryField-XyMQgLEa.js → CountryField-BrwOnWlY.js} +4 -4
- package/dist/{CreateIndividualComponent-Wn27xAGP.js → CreateIndividualComponent-fcafCBdi.js} +5 -5
- package/dist/{CreateTransferInstrumentComponent-B91wUVZO.js → CreateTransferInstrumentComponent-CFtZQOAx.js} +5 -5
- package/dist/{Currency-C9f9JFqI.js → Currency-DIaAM6JM.js} +5 -5
- package/dist/{CustomerSupport-BkZrAQI8.js → CustomerSupport-Bb6RcO70.js} +8 -8
- package/dist/{DebugModal-C-Kde1W7.js → DebugModal-CZkb8eyX.js} +6 -6
- package/dist/{DecisionMakerDetailsPage-DGCjjcXo.js → DecisionMakerDetailsPage-BLhzNkub.js} +6 -6
- package/dist/{DecisionMakers-BnVBSP2h.js → DecisionMakers-DYQws7A-.js} +17 -17
- package/dist/{Dropzone-DhG3qmwK.js → Dropzone-DTQkg4Kg.js} +3 -3
- package/dist/{EmbeddedStatus-CR9dSA8Q.js → EmbeddedStatus-B2QDK5vf.js} +2 -2
- package/dist/{EndStateLayout-CND9jpze.js → EndStateLayout-DMWEVJkT.js} +1 -1
- package/dist/{FormFlow-CEWANC6O.js → FormFlow-CaKHOZza.js} +6 -6
- package/dist/{FormNavigation-BPlMuV0j.js → FormNavigation-Bi8Sr--b.js} +1 -1
- package/dist/{IndividualOnfidoDropin-B0Ofb9y0.js → IndividualOnfidoDropin-3r04f6Cv.js} +38 -38
- package/dist/{InputDate-_HFaTMsL.js → InputDate-Dqe6TUrE.js} +1 -1
- package/dist/{InputText-BXjA-CEb.js → InputText-BRsse2d6.js} +2 -2
- package/dist/{Introduction-r3a_Q_wG.js → Introduction-BKE_3Zno.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-DzPDCpVt.js → LegalRepresentativeDetailsPage-oZ-vxsit.js} +4 -4
- package/dist/{Link-D_9J4IJA.js → Link-6IF47LVq.js} +1 -1
- package/dist/{ManageIndividualComponent-Dlx3--0h.js → ManageIndividualComponent-3QSU1mA_.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-BCDYAf1s.js → ManageTermsOfServiceComponent-BlRKpimI.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-Cohe-fiW.js → ManageTransferInstrumentComponent-DZRZkNpH.js} +12 -12
- package/dist/{MaskedInput-Nyf8vcDx.js → MaskedInput-R_MJEg2J.js} +3 -3
- package/dist/{MaybeModal-CposTKIL.js → MaybeModal-Ltu0UBj8.js} +2 -2
- package/dist/{Modal-BUqWVdHG.js → Modal-9Qu0qVf5.js} +1 -1
- package/dist/{OnboardingDropinComponent-BQMB-M3f.js → OnboardingDropinComponent-BYl2Mp31.js} +42 -42
- package/dist/{PayoutDetailsDropin-DzkFGL_4.js → PayoutDetailsDropin-CH8SA4Fs.js} +25 -25
- package/dist/{RadioGroup-BDZqV-Mr.js → RadioGroup-DnLwPMv4.js} +4 -4
- package/dist/{RegistrationAddress-B7q1pOsn.js → RegistrationAddress-Dnp0FI9g.js} +22 -16
- package/dist/{Review-DoC_0S-s.js → Review-amCviRZP.js} +6 -6
- package/dist/{RootBusinessDetailsPage-Bbr2WffY.js → RootBusinessDetailsPage-BGKAmLTF.js} +27 -27
- package/dist/{RootIndividualDetailsPage-DiKCTWp6.js → RootIndividualDetailsPage-D5vSYC_g.js} +4 -4
- package/dist/{SignPCIComponent-BrwKPa1E.js → SignPCIComponent-CqCcFVIq.js} +9 -9
- package/dist/{SingpassSelection-DF8-ifNE.js → SingpassSelection-CTfJkngt.js} +3 -3
- package/dist/{SoleProprietorshipPage-crVbQlEJ.js → SoleProprietorshipPage-C4XZddHU.js} +4 -4
- package/dist/{SourceOfFundsPage-_on4Vmam.js → SourceOfFundsPage-Dgkwb0sU.js} +26 -26
- package/dist/{StepProgressIndicator-hlEMGZu8.js → StepProgressIndicator-BorLD4VJ.js} +1 -1
- package/dist/{StoreProvider-CiZ-dp-b.js → StoreProvider-b7gR0N-6.js} +4 -4
- package/dist/{TaskItemStatus-BQVo7foa.js → TaskItemStatus-D138Dhsh.js} +1 -1
- package/dist/{TaskStatusIndicator-q1aiZloQ.js → TaskStatusIndicator-B3U88_EC.js} +1 -1
- package/dist/{TaxInformationField-B8mQXSpZ.js → TaxInformationField-DNiTNurk.js} +12 -12
- package/dist/{TaxReportingDropin-CRHhjxw-.js → TaxReportingDropin-D6DdKbIe.js} +17 -17
- package/dist/{TileGroup-ClHre2Us.js → TileGroup-C2Uhq3JB.js} +2 -2
- package/dist/{TrustDetailsPage-CGFw51Cl.js → TrustDetailsPage-CyNNSSBA.js} +22 -22
- package/dist/{TrustMemberCompanyPage-CgpUmMoS.js → TrustMemberCompanyPage-ZKlFT4L1.js} +5 -5
- package/dist/{TrustMemberIndividualPage-3wYiHTR1.js → TrustMemberIndividualPage-DcVVH8iO.js} +4 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-BVz1iaWD.js → UnincorporatedPartnershipIndividualPage-Oaloev0G.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CEcZtCEv.js → UnincorporatedPartnershipMemberCompanyPage-Bg437hax.js} +5 -5
- package/dist/{ViewVerificationStatusComponent-4CnmMR2o.js → ViewVerificationStatusComponent-3E66rhf4.js} +3 -3
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +21 -21
- package/dist/adyen-manage-individual.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-terms-of-service.js +2 -2
- package/dist/adyen-transfer-instrument.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/{analytics-VGKSXUs3.js → analytics-BkqNBJXp.js} +1 -1
- package/dist/{bafinUtils-rVLqT7tm.js → bafinUtils-0gEUkNnq.js} +5 -5
- package/dist/{commonValidators-DYVRk_o-.js → commonValidators-BJxMiRgL.js} +1 -1
- package/dist/{dropinUtils-CAMPNh0H.js → dropinUtils-C8QzheVM.js} +2 -2
- package/dist/{fieldConfigurations-D1NqrGgr.js → fieldConfigurations-CFJATAZm.js} +6 -6
- package/dist/{getName-CLl4DLz5.js → getName-C8rOnDpF.js} +1 -1
- package/dist/{hasDataChanged-l0jAbTM1.js → hasDataChanged-Bt3wBbFz.js} +1 -1
- package/dist/{iframeWidget-CNxl2fM8.js → iframeWidget-DrFGjQwr.js} +3 -3
- package/dist/{isEmpty-B2Jgc-Ae.js → isEmpty-B6SQ80Vi.js} +1 -1
- package/dist/{localizeDateString-D52U55KH.js → localizeDateString-C8UPx_yL.js} +1 -1
- package/dist/{mapExistingFile-d1IBaXjL.js → mapExistingFile-Cf4Tkz-W.js} +3 -3
- package/dist/{mapScriptLocalization-CogsH2uy.js → mapScriptLocalization-BLu6GO8J.js} +3 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-MzAJdTLN.js → mapTransferInstrumentToPayoutAccount-EbWPGYsN.js} +1 -1
- package/dist/{resolveEnvironment-3SDOk4j8.js → resolveEnvironment-Cc6jCzI-.js} +3 -3
- package/dist/{rules-mx2LkA3c.js → rules-C6r0HZ2z.js} +3 -3
- package/dist/{translation-DlBV-aLd.js → translation-BSXtJzHw.js} +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +1 -1
- package/dist/{types-BgtfChBm.js → types-CCiaKi8J.js} +1 -1
- package/dist/{types-BvfH1Hq9.js → types-DrmbzlXZ.js} +1 -1
- package/dist/{useAssociatedLegalEntity-CdDDTgFh.js → useAssociatedLegalEntity-35JmaA1W.js} +1 -1
- package/dist/{useDataset-gWnPim6D.js → useDataset-BGCGoHZu.js} +1 -1
- package/dist/{useForm-B9xiR6rk.js → useForm-FkZ08xxt.js} +2 -2
- package/dist/{useGlobalData-wXN1Shit.js → useGlobalData-CoyEDlEt.js} +9 -9
- package/dist/{useMultiForm-CApCTqZE.js → useMultiForm-DF8IBbC-.js} +3 -3
- package/dist/{useOnboardingStatus-NmD-_0MX.js → useOnboardingStatus-DwO-uYOn.js} +1 -1
- package/dist/{useScenarios-DzBi2C-3.js → useScenarios-IT-s4TI4.js} +1 -1
- package/dist/{useTermsOfServiceStatus-CcV1l3Cn.js → useTermsOfServiceStatus-BI8zNtqk.js} +1 -1
- package/dist/{useToastContext-B2dmvtea.js → useToastContext-DiCSF1bw.js} +1 -1
- package/dist/{useUnincorporatedPartnershipMembers-DErNsU0p.js → useUnincorporatedPartnershipMembers-2JVyhCje.js} +4 -4
- package/dist/{utils-co6TAFWB.js → utils-BDURRpXP.js} +6 -6
- package/dist/{utils-Du8tQ9jO.js → utils-CbV0603W.js} +1 -1
- package/dist/{utils-CE3nKLt4.js → utils-ZIRtA40T.js} +1 -1
- package/dist/{validate-BiC_TxbN.js → validate-B-U9zF9L.js} +1 -1
- package/dist/{validate-D-lb4Q7H.js → validate-DoJzR4RS.js} +6 -6
- package/dist/{validate-CF1WjpO2.js → validate-TVqF_NXq.js} +28 -12
- package/dist/{validationError-BB54fFFA.js → validationError-7CwhcGpo.js} +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useRef, useCallback } from "preact/hooks";
|
|
11
|
-
import { bp as userEvents } from "./StoreProvider-
|
|
11
|
+
import { bp as userEvents } from "./StoreProvider-b7gR0N-6.js";
|
|
12
12
|
const debounce = (func, wait) => {
|
|
13
13
|
let timerId;
|
|
14
14
|
let shouldInvoke;
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useReducer, useMemo, useContext } from "preact/hooks";
|
|
11
|
-
import { b as useApiContext, j as useQuery, k as httpPost, X as useExperimentsContext, g as getLegalEntityCountry, a8 as CountryCodes, z as isPartOfTrustFromLegalEntity, y as LegalEntityTypes, C as hasSolePropInLegalEntity, ah as individualComponentsKeyMapping, ai as businessDetailsComponentsKeyMapping, aj as SettingsContext, a as useTranslation, x as Typography, ak as DecisionMakerTypes, M as TaskTypes, al as Scenarios } from "./StoreProvider-
|
|
12
|
-
import { e as TrustedFieldsProviders } from "./fieldConfigurations-
|
|
11
|
+
import { b as useApiContext, j as useQuery, k as httpPost, X as useExperimentsContext, g as getLegalEntityCountry, a8 as CountryCodes, z as isPartOfTrustFromLegalEntity, y as LegalEntityTypes, C as hasSolePropInLegalEntity, ah as individualComponentsKeyMapping, ai as businessDetailsComponentsKeyMapping, aj as SettingsContext, a as useTranslation, x as Typography, ak as DecisionMakerTypes, M as TaskTypes, al as Scenarios } from "./StoreProvider-b7gR0N-6.js";
|
|
12
|
+
import { e as TrustedFieldsProviders } from "./fieldConfigurations-CFJATAZm.js";
|
|
13
13
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
14
|
-
import { F as Field, S as SelectListItem } from "./useForm-
|
|
15
|
-
import { I as InputText } from "./InputText-
|
|
16
|
-
import { c as createFormUtils, r as roleMetadata } from "./CountryField-
|
|
14
|
+
import { F as Field, S as SelectListItem } from "./useForm-FkZ08xxt.js";
|
|
15
|
+
import { I as InputText } from "./InputText-BRsse2d6.js";
|
|
16
|
+
import { c as createFormUtils, r as roleMetadata } from "./CountryField-BrwOnWlY.js";
|
|
17
17
|
import cx from "classnames";
|
|
18
18
|
import { signal, computed } from "@preact/signals";
|
|
19
19
|
async function convertToSingpassLinkResponse(openIdInitiateResponse) {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useState, useEffect, useMemo } from "preact/hooks";
|
|
11
|
-
import { U as useAnalyticsContext, N as createLogger } from "./StoreProvider-
|
|
12
|
-
import { d as summaryStep, h as FormRouterContext } from "./CountryField-
|
|
11
|
+
import { U as useAnalyticsContext, N as createLogger } from "./StoreProvider-b7gR0N-6.js";
|
|
12
|
+
import { d as summaryStep, h as FormRouterContext } from "./CountryField-BrwOnWlY.js";
|
|
13
13
|
import { jsx } from "preact/jsx-runtime";
|
|
14
14
|
const trackNavigation = ({
|
|
15
15
|
userEvents,
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as useLegalEntity, R as ROOT_LE, X as useExperimentsContext, am as getCapabilityProblems, g as getLegalEntityCountry, N as createLogger, b as useApiContext, an as hasText, ao as isValidMinLength, ap as matchesRegex, a9 as isEmpty, aq as NO_ALPHABET_REGEX, ar as EMOJI_REGEX, as as hasRepeatedCharacters, at as isInvalidName, au as OTHER_ENTITIES_VALID_CHAR_REGEX, av as LATIN_SPACE_MARK_PUNCTUATION_REGEX, aw as standardKatakanaValidator, ax as standardKanjiValidator, U as useAnalyticsContext, a as useTranslation, L as Loader } from "./StoreProvider-
|
|
10
|
+
import { c as useLegalEntity, R as ROOT_LE, X as useExperimentsContext, am as getCapabilityProblems, g as getLegalEntityCountry, N as createLogger, b as useApiContext, an as hasText, ao as isValidMinLength, ap as matchesRegex, a9 as isEmpty, aq as NO_ALPHABET_REGEX, ar as EMOJI_REGEX, as as hasRepeatedCharacters, at as isInvalidName, au as OTHER_ENTITIES_VALID_CHAR_REGEX, av as LATIN_SPACE_MARK_PUNCTUATION_REGEX, aw as standardKatakanaValidator, ax as standardKanjiValidator, U as useAnalyticsContext, a as useTranslation, L as Loader } from "./StoreProvider-b7gR0N-6.js";
|
|
11
11
|
import { useContext, useMemo, useRef, useState, useEffect } from "preact/hooks";
|
|
12
12
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
13
13
|
import { createContext } from "preact";
|
|
14
|
-
import { a as Alert } from "./Alert-
|
|
14
|
+
import { a as Alert } from "./Alert-DEfR8oqe.js";
|
|
15
15
|
import cx from "classnames";
|
|
16
|
-
import { d as debouncedInputEvent } from "./analytics-
|
|
17
|
-
import { c as convertFullToHalf } from "./InputText-
|
|
16
|
+
import { d as debouncedInputEvent } from "./analytics-BkqNBJXp.js";
|
|
17
|
+
import { c as convertFullToHalf } from "./InputText-BRsse2d6.js";
|
|
18
18
|
import { Suspense } from "preact/compat";
|
|
19
|
-
import { b as useId } from "./useForm-
|
|
20
|
-
import { R as Radio } from "./CountryField-
|
|
19
|
+
import { b as useId } from "./useForm-FkZ08xxt.js";
|
|
20
|
+
import { R as Radio } from "./CountryField-BrwOnWlY.js";
|
|
21
21
|
const useCapabilityProblems = () => {
|
|
22
22
|
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
23
23
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { y as LegalEntityTypes, a6 as getOwnEntityAssociations } from "./StoreProvider-
|
|
10
|
+
import { y as LegalEntityTypes, a6 as getOwnEntityAssociations } from "./StoreProvider-b7gR0N-6.js";
|
|
11
11
|
const getIndividualLegalEntityName = (legalEntityResponse) => {
|
|
12
12
|
if (!legalEntityResponse || !legalEntityResponse?.individual) return "";
|
|
13
13
|
return `${legalEntityResponse.individual?.name?.firstName ?? ""} ${legalEntityResponse.individual?.name?.lastName ?? ""}`;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { az as entriesOf, af as objectsDeepEqual } from "./StoreProvider-
|
|
10
|
+
import { az as entriesOf, af as objectsDeepEqual } from "./StoreProvider-b7gR0N-6.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,10 +7,10 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { ay as cloneObject, N as createLogger, by as isString, k as httpPost } from "./StoreProvider-
|
|
11
|
-
import { i as isValueObscured } from "./MaskedInput-
|
|
10
|
+
import { ay as cloneObject, N as createLogger, by as isString, k as httpPost } from "./StoreProvider-b7gR0N-6.js";
|
|
11
|
+
import { i as isValueObscured } from "./MaskedInput-R_MJEg2J.js";
|
|
12
12
|
import { g as getProp, d as deleteProp } from "./utils-DNSfZiio.js";
|
|
13
|
-
import { A as AdyenKycSdkError } from "./mapExistingFile-
|
|
13
|
+
import { A as AdyenKycSdkError } from "./mapExistingFile-Cf4Tkz-W.js";
|
|
14
14
|
const omitObscuredFieldsIfUnchanged = (obscuredFields, dataSubmitted, savedData) => {
|
|
15
15
|
if (!dataSubmitted) {
|
|
16
16
|
return;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { aD as keysOf } from "./StoreProvider-
|
|
10
|
+
import { aD as keysOf } from "./StoreProvider-b7gR0N-6.js";
|
|
11
11
|
const isEmpty = (obj, ignoreEmptyProperties = true) => {
|
|
12
12
|
if (obj === null || obj === void 0) return true;
|
|
13
13
|
if (Array.isArray(obj)) return obj.length === 0;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { N as createLogger } from "./StoreProvider-
|
|
10
|
+
import { N as createLogger } from "./StoreProvider-b7gR0N-6.js";
|
|
11
11
|
const localizeDateString = (dateString, locale, options) => {
|
|
12
12
|
const logger = createLogger();
|
|
13
13
|
const formatOptions = {
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useEffect, useState, useMemo } from "preact/hooks";
|
|
11
|
-
import { u as useScenarios } from "./useScenarios-
|
|
12
|
-
import { a8 as CountryCodes, N as createLogger, a as useTranslation, V as Icon } from "./StoreProvider-
|
|
11
|
+
import { u as useScenarios } from "./useScenarios-IT-s4TI4.js";
|
|
12
|
+
import { a8 as CountryCodes, N as createLogger, a as useTranslation, V as Icon } from "./StoreProvider-b7gR0N-6.js";
|
|
13
13
|
import { signal } from "@preact/signals";
|
|
14
14
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
15
15
|
import cx from "classnames";
|
|
16
16
|
import { lazy } from "preact/compat";
|
|
17
|
-
import { I as Image } from "./fieldConfigurations-
|
|
17
|
+
import { I as Image } from "./fieldConfigurations-CFJATAZm.js";
|
|
18
18
|
class AdyenKycSdkError extends Error {
|
|
19
19
|
sourceError;
|
|
20
20
|
constructor(message, sourceError) {
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, j as useQuery, o as httpGet, X as useExperimentsContext, a8 as CountryCodes } from "./StoreProvider-
|
|
11
|
-
import { u as useSetting } from "./bafinUtils-
|
|
12
|
-
import { u as useCapabilities } from "./TaxInformationField-
|
|
10
|
+
import { b as useApiContext, j as useQuery, o as httpGet, X as useExperimentsContext, a8 as CountryCodes } from "./StoreProvider-b7gR0N-6.js";
|
|
11
|
+
import { u as useSetting } from "./bafinUtils-0gEUkNnq.js";
|
|
12
|
+
import { u as useCapabilities } from "./TaxInformationField-DNiTNurk.js";
|
|
13
13
|
const getSupportedCountries = async (legalEntityId, baseUrl) => {
|
|
14
14
|
return httpGet({
|
|
15
15
|
baseUrl,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, j as useQuery, q as skipToken, o as httpGet, bz as payoutComponentKeyMapping } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, j as useQuery, q as skipToken, o as httpGet, bz as payoutComponentKeyMapping } from "./StoreProvider-b7gR0N-6.js";
|
|
11
11
|
import { m as mapWith } from "./utils-DNSfZiio.js";
|
|
12
12
|
const getTransferInstrument = async (legalEntityId, baseUrl, transferInstrumentId) => {
|
|
13
13
|
return httpGet({
|
|
@@ -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] = "0d57f121-7760-4ac8-93bb-81851aa11b17", e._sentryDebugIdIdentifier = "sentry-dbid-0d57f121-7760-4ac8-93bb-81851aa11b17");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { aP as refreshSession, B as Button, L as Loader, S as SettingsProvider, Q as QueryClientProvider, A as ApiProvider, E as ExperimentsContextProvider, d as StoreProvider, e as AnalyticsProvider, I as I18nProvider, D as DebugListener, T as ToastContextProvider, f as StateProvider, h as setSdkTokenHandler, n as normalizeEnvironment } from "./StoreProvider-
|
|
11
|
+
import { aP as refreshSession, B as Button, L as Loader, S as SettingsProvider, Q as QueryClientProvider, A as ApiProvider, E as ExperimentsContextProvider, d as StoreProvider, e as AnalyticsProvider, I as I18nProvider, D as DebugListener, T as ToastContextProvider, f as StateProvider, h as setSdkTokenHandler, n as normalizeEnvironment } from "./StoreProvider-b7gR0N-6.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.82.
|
|
59
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.82.5" }),
|
|
60
60
|
/* @__PURE__ */ jsx(
|
|
61
61
|
AnalyticsProvider,
|
|
62
62
|
{
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { a8 as CountryCodes, b9 as allowedCountriesForNominee, ak as DecisionMakerTypes, M as TaskTypes, al as Scenarios } from "./StoreProvider-
|
|
11
|
-
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET } from "./utils-
|
|
10
|
+
import { a8 as CountryCodes, b9 as allowedCountriesForNominee, ak as DecisionMakerTypes, M as TaskTypes, al as Scenarios } from "./StoreProvider-b7gR0N-6.js";
|
|
11
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET } from "./utils-CbV0603W.js";
|
|
12
12
|
import { c as createFormRules } from "./form-rules-DhbF2mY4.js";
|
|
13
|
-
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-
|
|
13
|
+
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-ZIRtA40T.js";
|
|
14
14
|
const REQUIRED = "REQUIRED";
|
|
15
15
|
const OPTIONAL = "OPTIONAL";
|
|
16
16
|
const SOLE_PROP_COUNTRIES = [
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { createElement, isValidElement, cloneElement, Children, Fragment, useContext } from "preact/compat";
|
|
11
|
-
import { aI as warnOnce, aJ as getI18n, aK as getDefaults, aL as isString, aM as warn, aN as isObject, aO as I18nContext } from "./StoreProvider-
|
|
11
|
+
import { aI as warnOnce, aJ as getI18n, aK as getDefaults, aL as isString, aM as warn, aN as isObject, aO as I18nContext } from "./StoreProvider-b7gR0N-6.js";
|
|
12
12
|
const __variableDynamicImportRuntimeHelper = (glob$1, path$13, segs) => {
|
|
13
13
|
const v = glob$1[path$13];
|
|
14
14
|
if (v) return typeof v === "function" ? v() : Promise.resolve(v);
|
|
@@ -11,7 +11,7 @@ interface PropsWithNoExemption {
|
|
|
11
11
|
interface PropsWithVatNumberExemption {
|
|
12
12
|
exemptedOption: TranslationKey;
|
|
13
13
|
selected: VatNumberType | 'exempted' | undefined;
|
|
14
|
-
setSelected: (type: VatNumberType | 'exempted') => void;
|
|
14
|
+
setSelected: (type: VatNumberType | 'exempted', exemptValue: boolean) => void;
|
|
15
15
|
}
|
|
16
16
|
type VatNumberTypeSelectorProps = {
|
|
17
17
|
country: CountryCode;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { a8 as CountryCodes } from "./StoreProvider-
|
|
10
|
+
import { a8 as CountryCodes } from "./StoreProvider-b7gR0N-6.js";
|
|
11
11
|
import { C as Currencies } from "./currency-BGwQyxBo.js";
|
|
12
12
|
const currencyByCountry = {
|
|
13
13
|
[CountryCodes.Australia]: [Currencies.AUD],
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
|
-
import { N as createLogger, c as useLegalEntity, q as skipToken } from "./StoreProvider-
|
|
11
|
+
import { N as createLogger, c as useLegalEntity, q as skipToken } from "./StoreProvider-b7gR0N-6.js";
|
|
12
12
|
const logger = createLogger();
|
|
13
13
|
function useAssociatedLegalEntity(parentLegalEntity, associationType) {
|
|
14
14
|
const matchingAssociation = useMemo(() => {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useState, useEffect } from "preact/hooks";
|
|
11
|
-
import { N as createLogger, u as useI18nContext } from "./StoreProvider-
|
|
11
|
+
import { N as createLogger, u as useI18nContext } from "./StoreProvider-b7gR0N-6.js";
|
|
12
12
|
const normalizedDatasets = {};
|
|
13
13
|
const datasets = {};
|
|
14
14
|
const createDatasetKey = (identifier, locale) => `${identifier}_${locale}`.toLowerCase();
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
import { useState, useEffect, useRef, useMemo, useCallback, useReducer } from "preact/hooks";
|
|
13
|
-
import { U as useAnalyticsContext, a as useTranslation, V as Icon, w as translateStringOrObject, L as Loader, W as noop, x as Typography, N as createLogger, a9 as isEmpty, az as entriesOf, aG as doArraysMatch } from "./StoreProvider-
|
|
13
|
+
import { U as useAnalyticsContext, a as useTranslation, V as Icon, w as translateStringOrObject, L as Loader, W as noop, x as Typography, N as createLogger, a9 as isEmpty, az as entriesOf, aG as doArraysMatch } from "./StoreProvider-b7gR0N-6.js";
|
|
14
14
|
import { computed, signal, useSignal, useSignalEffect } from "@preact/signals";
|
|
15
15
|
import { K as KEYBOARD_KEYS } from "./keys-BpNgnAsD.js";
|
|
16
|
-
import { d as debouncedInputEvent } from "./analytics-
|
|
16
|
+
import { d as debouncedInputEvent } from "./analytics-BkqNBJXp.js";
|
|
17
17
|
function Checkbox({
|
|
18
18
|
id,
|
|
19
19
|
name,
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useContext, useState, useCallback, useMemo } from "preact/hooks";
|
|
12
|
-
import { bw as StateContext, a as useTranslation, U as useAnalyticsContext, X as useExperimentsContext, B as Button } from "./StoreProvider-
|
|
13
|
-
import { L as LoaderWrapper } from "./useForm-
|
|
14
|
-
import { M as MaybeModal } from "./MaybeModal-
|
|
15
|
-
import { a as ModalContent, c as ModalHeader, b as ModalFooter } from "./Modal-
|
|
12
|
+
import { bw as StateContext, a as useTranslation, U as useAnalyticsContext, X as useExperimentsContext, B as Button } from "./StoreProvider-b7gR0N-6.js";
|
|
13
|
+
import { L as LoaderWrapper } from "./useForm-FkZ08xxt.js";
|
|
14
|
+
import { M as MaybeModal } from "./MaybeModal-Ltu0UBj8.js";
|
|
15
|
+
import { a as ModalContent, c as ModalHeader, b as ModalFooter } from "./Modal-9Qu0qVf5.js";
|
|
16
16
|
import { S as Spacer } from "./Spacer-BK3jDget.js";
|
|
17
|
-
import { S as StepProgressIndicator } from "./StepProgressIndicator-
|
|
18
|
-
import { t as trackNavigation, F as FormRouterContextProvider } from "./dropinUtils-
|
|
19
|
-
import { F as FormNavigation } from "./FormNavigation-
|
|
20
|
-
import { d as summaryStep, S as Summary } from "./CountryField-
|
|
21
|
-
import { a as debounce } from "./analytics-
|
|
17
|
+
import { S as StepProgressIndicator } from "./StepProgressIndicator-BorLD4VJ.js";
|
|
18
|
+
import { t as trackNavigation, F as FormRouterContextProvider } from "./dropinUtils-C8QzheVM.js";
|
|
19
|
+
import { F as FormNavigation } from "./FormNavigation-Bi8Sr--b.js";
|
|
20
|
+
import { d as summaryStep, S as Summary } from "./CountryField-BrwOnWlY.js";
|
|
21
|
+
import { a as debounce } from "./analytics-BkqNBJXp.js";
|
|
22
22
|
function useStateContext() {
|
|
23
23
|
const context = useContext(StateContext);
|
|
24
24
|
if (process.env.NODE_ENV === "development" && !context) {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import { af as objectsDeepEqual, N as createLogger, a9 as isEmpty } from "./StoreProvider-
|
|
12
|
-
import { V as ValidationResult } from "./useForm-
|
|
13
|
-
import { a as isNotEmptyValidator } from "./commonValidators-
|
|
11
|
+
import { af as objectsDeepEqual, N as createLogger, a9 as isEmpty } from "./StoreProvider-b7gR0N-6.js";
|
|
12
|
+
import { V as ValidationResult } from "./useForm-FkZ08xxt.js";
|
|
13
|
+
import { a as isNotEmptyValidator } from "./commonValidators-BJxMiRgL.js";
|
|
14
14
|
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
15
15
|
a[c] = obj[c];
|
|
16
16
|
return a;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, j as useQuery, o as httpGet } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, j as useQuery, o as httpGet } from "./StoreProvider-b7gR0N-6.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 { b as useApiContext, j as useQuery, az as entriesOf, q as skipToken, al as Scenarios, o as httpGet } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, j as useQuery, az as entriesOf, q as skipToken, al as Scenarios, o as httpGet } from "./StoreProvider-b7gR0N-6.js";
|
|
11
11
|
const getScenarios = async (legalEntityId, baseUrl, legalEntityType, countryCode) => {
|
|
12
12
|
const scenarioParams = new URLSearchParams({
|
|
13
13
|
...countryCode && { countryCode },
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, j as useQuery, o as httpGet } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, j as useQuery, o as httpGet } from "./StoreProvider-b7gR0N-6.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 { N as createLogger, aC as useQueryClient, b as useApiContext, aH as ToastContext } from "./StoreProvider-
|
|
10
|
+
import { N as createLogger, aC as useQueryClient, b as useApiContext, aH as ToastContext } from "./StoreProvider-b7gR0N-6.js";
|
|
11
11
|
import { useCallback, useContext } from "preact/hooks";
|
|
12
12
|
const logger = createLogger();
|
|
13
13
|
const QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED = [
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
|
-
import { y as LegalEntityTypes, a6 as getOwnEntityAssociations, c as useLegalEntity, R as ROOT_LE } from "./StoreProvider-
|
|
12
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
13
|
-
import { U as UnincorporatedPartnershipMemberTypes } from "./CountryField-
|
|
14
|
-
import { g as getLegalEntityNameBasedOnType } from "./getName-
|
|
11
|
+
import { y as LegalEntityTypes, a6 as getOwnEntityAssociations, c as useLegalEntity, R as ROOT_LE } from "./StoreProvider-b7gR0N-6.js";
|
|
12
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-35JmaA1W.js";
|
|
13
|
+
import { U as UnincorporatedPartnershipMemberTypes } from "./CountryField-BrwOnWlY.js";
|
|
14
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-C8rOnDpF.js";
|
|
15
15
|
const getMemberOwnerId = (memberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === memberId)?.legalEntityId;
|
|
16
16
|
const convertEntityAssociationIntoUnincorporatedPartnershipMember = (association) => {
|
|
17
17
|
if (association.entityType === LegalEntityTypes.INDIVIDUAL || association.entityType === LegalEntityTypes.ORGANIZATION)
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { R as RadioGroupCard } from "./fieldConfigurations-
|
|
12
|
-
import { a as useTranslation, g as getLegalEntityCountry, bC as getCapabilities, y as LegalEntityTypes, G as hasOwnEntityAssociationOfType, a8 as CountryCodes } from "./StoreProvider-
|
|
13
|
-
import { C as CompanyTypesValues } from "./bafinUtils-
|
|
14
|
-
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-
|
|
15
|
-
import { S as SOLE_PROP_COUNTRIES } from "./rules-
|
|
16
|
-
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-
|
|
11
|
+
import { R as RadioGroupCard } from "./fieldConfigurations-CFJATAZm.js";
|
|
12
|
+
import { a as useTranslation, g as getLegalEntityCountry, bC as getCapabilities, y as LegalEntityTypes, G as hasOwnEntityAssociationOfType, a8 as CountryCodes } from "./StoreProvider-b7gR0N-6.js";
|
|
13
|
+
import { C as CompanyTypesValues } from "./bafinUtils-0gEUkNnq.js";
|
|
14
|
+
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-BYl2Mp31.js";
|
|
15
|
+
import { S as SOLE_PROP_COUNTRIES } from "./rules-C6r0HZ2z.js";
|
|
16
|
+
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-CCiaKi8J.js";
|
|
17
17
|
const EntityTypeRadioGroupCard = ({
|
|
18
18
|
examples,
|
|
19
19
|
optionDescription,
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback, useState, useMemo, useEffect } from "preact/hooks";
|
|
11
|
-
import { b as useApiContext, k as httpPost, a8 as CountryCodes, a9 as isEmpty, N as createLogger, a as useTranslation, az as entriesOf } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, k as httpPost, a8 as CountryCodes, a9 as isEmpty, N as createLogger, a as useTranslation, az as entriesOf } from "./StoreProvider-b7gR0N-6.js";
|
|
12
12
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
13
|
-
import { F as Field, c as Select } from "./useForm-
|
|
14
|
-
import { m as mergeFieldMetadataIntoProps, c as createFormUtils, F as FormHeader } from "./CountryField-
|
|
15
|
-
import { m as makeMask, a as nonInputs, n as numericInputs, s as spacer, M as MaskedInput, I as InputEmail } from "./MaskedInput-
|
|
16
|
-
import { r as resolveFieldMetadata } from "./fieldConfigurations-
|
|
17
|
-
import { u as useDataset, d as datasetIdentifier } from "./useDataset-
|
|
13
|
+
import { F as Field, c as Select } from "./useForm-FkZ08xxt.js";
|
|
14
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils, F as FormHeader } from "./CountryField-BrwOnWlY.js";
|
|
15
|
+
import { m as makeMask, a as nonInputs, n as numericInputs, s as spacer, M as MaskedInput, I as InputEmail } from "./MaskedInput-R_MJEg2J.js";
|
|
16
|
+
import { r as resolveFieldMetadata } from "./fieldConfigurations-CFJATAZm.js";
|
|
17
|
+
import { u as useDataset, d as datasetIdentifier } from "./useDataset-BGCGoHZu.js";
|
|
18
18
|
import { I as InputGroup } from "./InputGroup-WBfGDV5F.js";
|
|
19
19
|
import { e as emailPattern } from "./basePatterns-BwdnMQxI.js";
|
|
20
20
|
const validatePhoneNumber = (baseUrl, data) => {
|
|
@@ -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] = "33cf395d-5033-48e8-b325-b0d6cd56f6cc", e._sentryDebugIdIdentifier = "sentry-dbid-33cf395d-5033-48e8-b325-b0d6cd56f6cc");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { e as TrustedFieldsProviders } from "./fieldConfigurations-
|
|
11
|
-
import { N as createLogger, bu as businessDetailsApiKeyMapping, a$ as individualApiKeyMapping, aE as remediationHasFileUploadField, bv as dataMissingRemediationsToFieldsMap, aD as keysOf, k as httpPost, aB as httpDelete, o as httpGet, bw as StateContext, a as useTranslation, U as useAnalyticsContext, V as Icon, x as Typography, P as IconButton } from "./StoreProvider-
|
|
12
|
-
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-
|
|
10
|
+
import { e as TrustedFieldsProviders } from "./fieldConfigurations-CFJATAZm.js";
|
|
11
|
+
import { N as createLogger, bu as businessDetailsApiKeyMapping, a$ as individualApiKeyMapping, aE as remediationHasFileUploadField, bv as dataMissingRemediationsToFieldsMap, aD as keysOf, k as httpPost, aB as httpDelete, o as httpGet, bw as StateContext, a as useTranslation, U as useAnalyticsContext, V as Icon, x as Typography, P as IconButton } from "./StoreProvider-b7gR0N-6.js";
|
|
12
|
+
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-ZIRtA40T.js";
|
|
13
13
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
14
14
|
import cx from "classnames";
|
|
15
15
|
import { useEffect } from "preact/hooks";
|
|
@@ -30,6 +30,7 @@ function calculateLinkedRequiredFields({
|
|
|
30
30
|
const tldsField = makeTLDSFieldName(formId, field);
|
|
31
31
|
const isRootField = Boolean(linkedFieldsMap[tldsField]);
|
|
32
32
|
if (isRootField) {
|
|
33
|
+
const linkedFields = linkedFieldsMap[tldsField];
|
|
33
34
|
const fieldSettings = scenarioConfiguration?.[field];
|
|
34
35
|
const isFieldRequiredBySettings = fieldSettings && isFieldRequired(fieldSettings, customRules);
|
|
35
36
|
const isFieldPopulated = formFieldsWithExistingData?.includes(field);
|
|
@@ -38,8 +39,13 @@ function calculateLinkedRequiredFields({
|
|
|
38
39
|
field,
|
|
39
40
|
dataMissingErrors
|
|
40
41
|
);
|
|
41
|
-
const
|
|
42
|
-
|
|
42
|
+
const areLinkedFieldsPopulated2 = linkedFields?.some((linkedField) => {
|
|
43
|
+
const linkedFieldKey = linkedField.split(".")[1];
|
|
44
|
+
const isLinkedFieldPopulated = formFieldsWithExistingData?.includes(linkedFieldKey);
|
|
45
|
+
return isLinkedFieldPopulated;
|
|
46
|
+
});
|
|
47
|
+
const isRootFieldRequired2 = isFieldRequiredBySettings || isFieldPopulated || isFieldNeededToRemediateDataMissingError || areLinkedFieldsPopulated2;
|
|
48
|
+
if (!isRootFieldRequired2) {
|
|
43
49
|
return {
|
|
44
50
|
isRequiredFromLinkedField: false,
|
|
45
51
|
isOptionalFromLinkedField: false
|
|
@@ -63,12 +69,22 @@ function calculateLinkedRequiredFields({
|
|
|
63
69
|
isRequiredFromLinkedField: false,
|
|
64
70
|
isOptionalFromLinkedField: false
|
|
65
71
|
};
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
+
const rootFieldKey = rootLinkedField.split(".")[1];
|
|
73
|
+
const rootFieldSettings = scenarioConfiguration?.[rootFieldKey];
|
|
74
|
+
const isRootFieldRequired = rootFieldSettings && isFieldRequired(rootFieldSettings, customRules);
|
|
75
|
+
const isRootFieldPopulated = formFieldsWithExistingData?.includes(rootFieldKey);
|
|
76
|
+
const areLinkedFieldsPopulated = linkedFieldsMap[rootLinkedField]?.some(
|
|
77
|
+
(linkedField) => {
|
|
78
|
+
const fieldKey = linkedField.split(".")[1];
|
|
79
|
+
return formFieldsWithExistingData?.includes(fieldKey);
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
const isRootFieldRequiredToRemediateDataMissingError = isFieldRequiredToRemediateDataMissingError(
|
|
83
|
+
formId,
|
|
84
|
+
rootFieldKey,
|
|
85
|
+
dataMissingErrors
|
|
86
|
+
);
|
|
87
|
+
const isRootLinkedFieldRequired = isRootFieldRequired || isRootFieldPopulated || areLinkedFieldsPopulated || isRootFieldRequiredToRemediateDataMissingError;
|
|
72
88
|
if (!isRootLinkedFieldRequired) {
|
|
73
89
|
return {
|
|
74
90
|
isRequiredFromLinkedField: false,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { M as TaskTypes, bq as remediationPayoutApiKeyMapping, br as remediationBusinessDetailsApiKeyMapping, bs as remediationIndividualApiKeyMapping } from "./StoreProvider-
|
|
10
|
+
import { M as TaskTypes, bq as remediationPayoutApiKeyMapping, br as remediationBusinessDetailsApiKeyMapping, bs as remediationIndividualApiKeyMapping } from "./StoreProvider-b7gR0N-6.js";
|
|
11
11
|
import { a as assignToProp } from "./utils-DNSfZiio.js";
|
|
12
12
|
const isMaintenanceModeError = (error) => error && typeof error === "object" && "messageCode" in error && error.messageCode === "maintenanceMode";
|
|
13
13
|
const overrideKeyMapping = {
|