@adyen/kyc-components 3.82.1 → 3.82.3
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-YuLikSDe.js → AcceptTermsOfServiceComponent-DBiIy4Kp.js} +14 -14
- package/dist/{AccountSetupRejected-BoLBjxVq.js → AccountSetupRejected-D27RKt9K.js} +4 -4
- package/dist/{Address-7EgUUayR.js → Address-ByYSgoVJ.js} +7 -7
- package/dist/{Alert-CmLPGrYT.js → Alert-TryjgqmO.js} +1 -1
- package/dist/{Avatar-CqP0mmN2.js → Avatar-CKP57y-Q.js} +1 -1
- package/dist/{BusinessDetailsDropin-CAYT-fCT.js → BusinessDetailsDropin-CNFVVwGJ.js} +33 -33
- package/dist/{BusinessFinancingComponent-BmWMrk_5.js → BusinessFinancingComponent-DCD8DE-r.js} +4 -4
- package/dist/{BusinessFinancingDropin-DSn-ynsz.js → BusinessFinancingDropin-Dhc_JYVL.js} +22 -22
- package/dist/{BusinessFinancingPage-Dz-hJxgt.js → BusinessFinancingPage-Cj5fDj-T.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-DZs-6cvn.js → BusinessTypeSelectionPage-BhA3bBL3.js} +6 -6
- package/dist/{Card-liZfK4iY.js → Card-BG1vjevh.js} +3 -3
- package/dist/{Confirm-Ckd-ug3S.js → Confirm-CDy3GQty.js} +2 -2
- package/dist/{CountryField-CfD1XBwa.js → CountryField-XyMQgLEa.js} +4 -4
- package/dist/{CreateIndividualComponent-BGIkGbhF.js → CreateIndividualComponent-Wn27xAGP.js} +5 -5
- package/dist/{CreateTransferInstrumentComponent-B0HXoVXQ.js → CreateTransferInstrumentComponent-B91wUVZO.js} +5 -5
- package/dist/{Currency-DRw3pbge.js → Currency-C9f9JFqI.js} +5 -5
- package/dist/{CustomerSupport-DwirNr8c.js → CustomerSupport-BkZrAQI8.js} +8 -8
- package/dist/{DebugModal-DmgolP-_.js → DebugModal-C-Kde1W7.js} +6 -6
- package/dist/{DecisionMakerDetailsPage-0cNE81KI.js → DecisionMakerDetailsPage-DGCjjcXo.js} +6 -6
- package/dist/{DecisionMakers-By6cxlIa.js → DecisionMakers-BnVBSP2h.js} +17 -17
- package/dist/{Dropzone-CyKRD1mZ.js → Dropzone-DhG3qmwK.js} +3 -3
- package/dist/{EmbeddedStatus-DGqXUwmh.js → EmbeddedStatus-CR9dSA8Q.js} +2 -2
- package/dist/{EndStateLayout-C_JbL2LS.js → EndStateLayout-CND9jpze.js} +1 -1
- package/dist/{FormFlow-Sl_BaQSG.js → FormFlow-CEWANC6O.js} +6 -6
- package/dist/{FormNavigation-DwrwmjHz.js → FormNavigation-BPlMuV0j.js} +1 -1
- package/dist/{IndividualOnfidoDropin-ltq7qbju.js → IndividualOnfidoDropin-B0Ofb9y0.js} +38 -38
- package/dist/{InputDate-B35flVD9.js → InputDate-_HFaTMsL.js} +1 -1
- package/dist/{InputText-IejcjQkZ.js → InputText-BXjA-CEb.js} +2 -2
- package/dist/{Introduction-BeyZezex.js → Introduction-r3a_Q_wG.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-D5hV2x7v.js → LegalRepresentativeDetailsPage-DzPDCpVt.js} +4 -4
- package/dist/{Link-BBjf5O9d.js → Link-D_9J4IJA.js} +1 -1
- package/dist/{ManageIndividualComponent-DjneJ3LD.js → ManageIndividualComponent-Dlx3--0h.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-FRtzhxTj.js → ManageTermsOfServiceComponent-BCDYAf1s.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-CD0UG4Ro.js → ManageTransferInstrumentComponent-Cohe-fiW.js} +12 -12
- package/dist/{MaskedInput-Os-b7s7y.js → MaskedInput-Nyf8vcDx.js} +3 -3
- package/dist/{MaybeModal-ieR_EiZ8.js → MaybeModal-CposTKIL.js} +2 -2
- package/dist/{Modal-B77fr1Lt.js → Modal-BUqWVdHG.js} +1 -1
- package/dist/{OnboardingDropinComponent-CiiGPNa7.js → OnboardingDropinComponent-BQMB-M3f.js} +85 -75
- package/dist/{PayoutDetailsDropin-BC3X6xPT.js → PayoutDetailsDropin-DzkFGL_4.js} +25 -25
- package/dist/{RadioGroup-Cmqr_X2L.js → RadioGroup-BDZqV-Mr.js} +4 -4
- package/dist/{RegistrationAddress-CRhOptNf.js → RegistrationAddress-B7q1pOsn.js} +12 -12
- package/dist/{Review-_NAUjGqG.js → Review-DoC_0S-s.js} +6 -6
- package/dist/{RootBusinessDetailsPage-C1b6B33H.js → RootBusinessDetailsPage-Bbr2WffY.js} +27 -27
- package/dist/{RootIndividualDetailsPage-Cy_DEmLw.js → RootIndividualDetailsPage-DiKCTWp6.js} +4 -4
- package/dist/{SignPCIComponent-CDg5hs1S.js → SignPCIComponent-BrwKPa1E.js} +9 -9
- package/dist/{SingpassSelection-rTyVGmGk.js → SingpassSelection-DF8-ifNE.js} +3 -3
- package/dist/{SoleProprietorshipPage-B_XBA0Lf.js → SoleProprietorshipPage-crVbQlEJ.js} +4 -4
- package/dist/{SourceOfFundsPage-BB6am_9H.js → SourceOfFundsPage-_on4Vmam.js} +26 -26
- package/dist/{StepProgressIndicator-C0-0Cl3W.js → StepProgressIndicator-hlEMGZu8.js} +1 -1
- package/dist/{StoreProvider-Ohe7QUyL.js → StoreProvider-CiZ-dp-b.js} +4 -4
- package/dist/{TaskItemStatus-DJc7TQEZ.js → TaskItemStatus-BQVo7foa.js} +1 -1
- package/dist/{TaskStatusIndicator-BvXhnO2k.js → TaskStatusIndicator-q1aiZloQ.js} +1 -1
- package/dist/{TaxInformationField-CaE2z_gu.js → TaxInformationField-B8mQXSpZ.js} +19 -13
- package/dist/{TaxReportingDropin-DsFfVmey.js → TaxReportingDropin-CRHhjxw-.js} +17 -17
- package/dist/{TileGroup-CQqODiCa.js → TileGroup-ClHre2Us.js} +2 -2
- package/dist/{TrustDetailsPage-DCEn1ZX4.js → TrustDetailsPage-CGFw51Cl.js} +22 -22
- package/dist/{TrustMemberCompanyPage-yXzhL2hk.js → TrustMemberCompanyPage-CgpUmMoS.js} +5 -5
- package/dist/{TrustMemberIndividualPage-DjagZypB.js → TrustMemberIndividualPage-3wYiHTR1.js} +4 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-f3mz1DI7.js → UnincorporatedPartnershipIndividualPage-BVz1iaWD.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BxbUdiUH.js → UnincorporatedPartnershipMemberCompanyPage-CEcZtCEv.js} +5 -5
- package/dist/{ViewVerificationStatusComponent-Dq0ybWXh.js → ViewVerificationStatusComponent-4CnmMR2o.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-BIve9gnz.js → analytics-VGKSXUs3.js} +1 -1
- package/dist/{bafinUtils-oqX-B5AM.js → bafinUtils-rVLqT7tm.js} +5 -5
- package/dist/{commonValidators-BZg0zrql.js → commonValidators-DYVRk_o-.js} +1 -1
- package/dist/{dropinUtils-gO5ybB18.js → dropinUtils-CAMPNh0H.js} +2 -2
- package/dist/{fieldConfigurations-BLQetGmt.js → fieldConfigurations-D1NqrGgr.js} +6 -6
- package/dist/{getName-BruYaj-2.js → getName-CLl4DLz5.js} +1 -1
- package/dist/{hasDataChanged-__-U6pOL.js → hasDataChanged-l0jAbTM1.js} +1 -1
- package/dist/{iframeWidget-DnGEl6a5.js → iframeWidget-CNxl2fM8.js} +3 -3
- package/dist/{isEmpty-B6ptUwPu.js → isEmpty-B2Jgc-Ae.js} +1 -1
- package/dist/{localizeDateString-DXMlQLYm.js → localizeDateString-D52U55KH.js} +1 -1
- package/dist/{mapExistingFile-Bc2z-IGY.js → mapExistingFile-d1IBaXjL.js} +3 -3
- package/dist/{mapScriptLocalization-BULwx2TC.js → mapScriptLocalization-CogsH2uy.js} +3 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-DnaXJJkF.js → mapTransferInstrumentToPayoutAccount-MzAJdTLN.js} +1 -1
- package/dist/{resolveEnvironment--uOC9tSc.js → resolveEnvironment-3SDOk4j8.js} +3 -3
- package/dist/{rules-BBAiH7M1.js → rules-mx2LkA3c.js} +3 -3
- package/dist/style.css +5 -26
- package/dist/styles-CLV89_hH.js +5 -26
- package/dist/{translation-D6srXF03.js → translation-DlBV-aLd.js} +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +1 -0
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -16
- package/dist/types/core/process-field-configurations.d.ts +4 -1
- package/dist/types/utils/addLinkedFields.d.ts +26 -2
- package/dist/{types-CIq6o1MY.js → types-BgtfChBm.js} +1 -1
- package/dist/{types-BXqAvk7e.js → types-BvfH1Hq9.js} +1 -1
- package/dist/{useAssociatedLegalEntity-BUD8gRbt.js → useAssociatedLegalEntity-CdDDTgFh.js} +1 -1
- package/dist/{useDataset-DZlThYmu.js → useDataset-gWnPim6D.js} +1 -1
- package/dist/{useForm-CKD7a4LA.js → useForm-B9xiR6rk.js} +2 -2
- package/dist/{useGlobalData-D3tyK2DF.js → useGlobalData-wXN1Shit.js} +9 -9
- package/dist/{useMultiForm-AEKmFyKg.js → useMultiForm-CApCTqZE.js} +3 -3
- package/dist/{useOnboardingStatus-i9PHj9Tj.js → useOnboardingStatus-NmD-_0MX.js} +1 -1
- package/dist/{useScenarios-GRL_KRLY.js → useScenarios-DzBi2C-3.js} +1 -1
- package/dist/{useTermsOfServiceStatus-CWe5ZDC5.js → useTermsOfServiceStatus-CcV1l3Cn.js} +1 -1
- package/dist/{useToastContext-Be5PXq9E.js → useToastContext-B2dmvtea.js} +1 -1
- package/dist/{useUnincorporatedPartnershipMembers-BuPmqMye.js → useUnincorporatedPartnershipMembers-DErNsU0p.js} +4 -4
- package/dist/{utils-D1RtyjXo.js → utils-CE3nKLt4.js} +1 -1
- package/dist/{utils-BXsulcnw.js → utils-Du8tQ9jO.js} +1 -1
- package/dist/{utils-C8NXTx1b.js → utils-co6TAFWB.js} +6 -6
- package/dist/{validate-YFSI9_Cs.js → validate-BiC_TxbN.js} +1 -1
- package/dist/{validate-DA9kAqy-.js → validate-CF1WjpO2.js} +67 -18
- package/dist/{validate-Cjpmk6ce.js → validate-D-lb4Q7H.js} +6 -6
- package/dist/{validationError-4nysb3-G.js → validationError-BB54fFFA.js} +1 -1
- package/package.json +1 -1
|
@@ -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-CiZ-dp-b.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-CiZ-dp-b.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-VGKSXUs3.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-CiZ-dp-b.js";
|
|
13
|
+
import { L as LoaderWrapper } from "./useForm-B9xiR6rk.js";
|
|
14
|
+
import { M as MaybeModal } from "./MaybeModal-CposTKIL.js";
|
|
15
|
+
import { a as ModalContent, c as ModalHeader, b as ModalFooter } from "./Modal-BUqWVdHG.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-hlEMGZu8.js";
|
|
18
|
+
import { t as trackNavigation, F as FormRouterContextProvider } from "./dropinUtils-CAMPNh0H.js";
|
|
19
|
+
import { F as FormNavigation } from "./FormNavigation-BPlMuV0j.js";
|
|
20
|
+
import { d as summaryStep, S as Summary } from "./CountryField-XyMQgLEa.js";
|
|
21
|
+
import { a as debounce } from "./analytics-VGKSXUs3.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-CiZ-dp-b.js";
|
|
12
|
+
import { V as ValidationResult } from "./useForm-B9xiR6rk.js";
|
|
13
|
+
import { a as isNotEmptyValidator } from "./commonValidators-DYVRk_o-.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-CiZ-dp-b.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-CiZ-dp-b.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-CiZ-dp-b.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-CiZ-dp-b.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-CiZ-dp-b.js";
|
|
12
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-CdDDTgFh.js";
|
|
13
|
+
import { U as UnincorporatedPartnershipMemberTypes } from "./CountryField-XyMQgLEa.js";
|
|
14
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-CLl4DLz5.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-D1NqrGgr.js";
|
|
12
|
+
import { a as useTranslation, g as getLegalEntityCountry, bC as getCapabilities, y as LegalEntityTypes, G as hasOwnEntityAssociationOfType, a8 as CountryCodes } from "./StoreProvider-CiZ-dp-b.js";
|
|
13
|
+
import { C as CompanyTypesValues } from "./bafinUtils-rVLqT7tm.js";
|
|
14
|
+
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-BQMB-M3f.js";
|
|
15
|
+
import { S as SOLE_PROP_COUNTRIES } from "./rules-mx2LkA3c.js";
|
|
16
|
+
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-BgtfChBm.js";
|
|
17
17
|
const EntityTypeRadioGroupCard = ({
|
|
18
18
|
examples,
|
|
19
19
|
optionDescription,
|
|
@@ -2,38 +2,80 @@
|
|
|
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] = "3e807c18-d9fe-4afd-bc14-aab576e2afd9", e._sentryDebugIdIdentifier = "sentry-dbid-3e807c18-d9fe-4afd-bc14-aab576e2afd9");
|
|
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-D1NqrGgr.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-CiZ-dp-b.js";
|
|
12
|
+
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-CE3nKLt4.js";
|
|
13
13
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
14
14
|
import cx from "classnames";
|
|
15
15
|
import { useEffect } from "preact/hooks";
|
|
16
16
|
const linkedFieldsMap = {
|
|
17
|
-
"additionalInformation.vatNumber":
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
"additionalInformation.vatNumber": [
|
|
18
|
+
"additionalInformation.exemptedFromVat",
|
|
19
|
+
"additionalInformation.vatAbsenceReason"
|
|
20
|
+
]
|
|
20
21
|
};
|
|
21
|
-
function calculateLinkedRequiredFields(
|
|
22
|
+
function calculateLinkedRequiredFields({
|
|
23
|
+
field,
|
|
24
|
+
formId,
|
|
25
|
+
customRules,
|
|
26
|
+
scenarioConfiguration,
|
|
27
|
+
dataMissingErrors,
|
|
28
|
+
formFieldsWithExistingData
|
|
29
|
+
}) {
|
|
22
30
|
const tldsField = makeTLDSFieldName(formId, field);
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
31
|
+
const isRootField = Boolean(linkedFieldsMap[tldsField]);
|
|
32
|
+
if (isRootField) {
|
|
33
|
+
const fieldSettings = scenarioConfiguration?.[field];
|
|
34
|
+
const isFieldRequiredBySettings = fieldSettings && isFieldRequired(fieldSettings, customRules);
|
|
35
|
+
const isFieldPopulated = formFieldsWithExistingData?.includes(field);
|
|
36
|
+
const isFieldNeededToRemediateDataMissingError = isFieldRequiredToRemediateDataMissingError(
|
|
37
|
+
formId,
|
|
38
|
+
field,
|
|
39
|
+
dataMissingErrors
|
|
40
|
+
);
|
|
41
|
+
const isRootFieldRequired = isFieldRequiredBySettings || isFieldPopulated || isFieldNeededToRemediateDataMissingError;
|
|
42
|
+
if (!isRootFieldRequired) {
|
|
43
|
+
return {
|
|
44
|
+
isRequiredFromLinkedField: false,
|
|
45
|
+
isOptionalFromLinkedField: false
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
switch (field) {
|
|
49
|
+
case "vatNumber": {
|
|
50
|
+
const processedRule = customRules.countryUsesVat();
|
|
51
|
+
return {
|
|
52
|
+
isRequiredFromLinkedField: processedRule === "REQUIRED",
|
|
53
|
+
isOptionalFromLinkedField: processedRule === "OPTIONAL"
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const rootLinkedField = Object.entries(linkedFieldsMap).find(
|
|
59
|
+
([, linkedFields]) => linkedFields.includes(tldsField)
|
|
60
|
+
)?.[0];
|
|
61
|
+
if (!rootLinkedField)
|
|
25
62
|
return {
|
|
26
63
|
isRequiredFromLinkedField: false,
|
|
27
64
|
isOptionalFromLinkedField: false
|
|
28
65
|
};
|
|
66
|
+
const linkedFieldKey = rootLinkedField.split(".")[1];
|
|
67
|
+
const linkedFieldSettings = scenarioConfiguration?.[linkedFieldKey];
|
|
68
|
+
const isLinkedFieldRequired = linkedFieldSettings && isFieldRequired(linkedFieldSettings, customRules);
|
|
69
|
+
const isLinkedFieldPopulated = formFieldsWithExistingData?.includes(linkedFieldKey);
|
|
70
|
+
const isLinkedFieldRequiredToRemediateDataMissingError = isFieldRequiredToRemediateDataMissingError(formId, linkedFieldKey, dataMissingErrors);
|
|
71
|
+
const isRootLinkedFieldRequired = isLinkedFieldRequired || isLinkedFieldPopulated || isLinkedFieldRequiredToRemediateDataMissingError;
|
|
72
|
+
if (!isRootLinkedFieldRequired) {
|
|
73
|
+
return {
|
|
74
|
+
isRequiredFromLinkedField: false,
|
|
75
|
+
isOptionalFromLinkedField: false
|
|
76
|
+
};
|
|
77
|
+
}
|
|
29
78
|
switch (field) {
|
|
30
|
-
case "vatNumber": {
|
|
31
|
-
const processedRule = customRules.countryUsesVat();
|
|
32
|
-
return {
|
|
33
|
-
isRequiredFromLinkedField: processedRule === "REQUIRED",
|
|
34
|
-
isOptionalFromLinkedField: processedRule === "OPTIONAL"
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
79
|
case "exemptedFromVat": {
|
|
38
80
|
const processedRule = customRules.isVatExempt();
|
|
39
81
|
return {
|
|
@@ -187,7 +229,14 @@ function getPropsFromConfigurations({
|
|
|
187
229
|
const isRequiredByRemediationAction = !remediationFieldAsOptional && isFieldRequiredByRemediationAction;
|
|
188
230
|
const isOptionalByRemediationAction = remediationFieldAsOptional && isFieldRequiredByRemediationAction;
|
|
189
231
|
const isRequiredFieldPopulated = !isOptionalFromFieldConfig && formFieldsWithExistingData.includes(field);
|
|
190
|
-
const { isRequiredFromLinkedField, isOptionalFromLinkedField } = calculateLinkedRequiredFields(
|
|
232
|
+
const { isRequiredFromLinkedField, isOptionalFromLinkedField } = calculateLinkedRequiredFields({
|
|
233
|
+
field,
|
|
234
|
+
formId,
|
|
235
|
+
customRules,
|
|
236
|
+
scenarioConfiguration,
|
|
237
|
+
dataMissingErrors,
|
|
238
|
+
formFieldsWithExistingData
|
|
239
|
+
});
|
|
191
240
|
const isRequired = (isRequiredFromFieldConfig || isRequiredByRemediationAction || isFieldNeededToRemediateDataMissingError || isRequiredFieldPopulated || isRequiredFromLinkedField) && !isOptionalFromLinkedField;
|
|
192
241
|
if (isRequired && !readonly.includes(field)) {
|
|
193
242
|
requiredFields[formId] = requiredFields[formId] ? [...requiredFields[formId], field] : [field];
|
|
@@ -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-CiZ-dp-b.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-B9xiR6rk.js";
|
|
14
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils, F as FormHeader } from "./CountryField-XyMQgLEa.js";
|
|
15
|
+
import { m as makeMask, a as nonInputs, n as numericInputs, s as spacer, M as MaskedInput, I as InputEmail } from "./MaskedInput-Nyf8vcDx.js";
|
|
16
|
+
import { r as resolveFieldMetadata } from "./fieldConfigurations-D1NqrGgr.js";
|
|
17
|
+
import { u as useDataset, d as datasetIdentifier } from "./useDataset-gWnPim6D.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) => {
|
|
@@ -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-CiZ-dp-b.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 = {
|