@adyen/kyc-components 3.89.1 → 3.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-De5XWtcz.js → AcceptTermsOfServiceComponent-jlzA4hRO.js} +42 -60
- package/dist/{Accordion-CW9GGywE.js → Accordion-48qDUfrn.js} +1 -1
- package/dist/{AccountSetupRejected-_IN29uU8.js → AccountSetupRejected-eL8cEb4U.js} +3 -3
- package/dist/{ActionBar-CkNDXAZ3.js → ActionBar-BO6XSNuM.js} +1 -1
- package/dist/{Address-CIRweyT6.js → Address-BCTZUD2J.js} +25 -56
- package/dist/{Alert-Dr-PTLt5.js → Alert-DlSROjS7.js} +6 -6
- package/dist/{Avatar-DttOKUv4.js → Avatar-1DJaB2Fj.js} +1 -1
- package/dist/{BusinessDetailsMultiformDropin-ByrdkEK1.js → BusinessDetailsDropin-lXErWzqC.js} +1268 -3090
- package/dist/{BusinessFinancingComponent-D5Edu6Jp.js → BusinessFinancingComponent-C6wgWrZx.js} +6 -5
- package/dist/{BusinessFinancingDropin-D2J61fEL.js → BusinessFinancingDropin-Doz0wI42.js} +23 -33
- package/dist/{BusinessFinancingPage-C06ar5yw.js → BusinessFinancingPage-CWkMdnqc.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-CP0UXFG_.js → BusinessTypeSelectionPage-DFJqkG5_.js} +8 -9
- package/dist/{Card-thNJfUJi.js → Card-I1r9oUx8.js} +2 -2
- package/dist/{ConstitutionalDocument-Dzckgb-_.js → ConstitutionalDocument-DdFjrLEq.js} +3 -3
- package/dist/{CountryField-CJeBvrKJ.js → CountryField-BO-n2nAh.js} +6 -6
- package/dist/{CreateIndividualComponent-BDAKxFP2.js → CreateIndividualComponent-D14kgQET.js} +5 -5
- package/dist/{CreateTransferInstrumentComponent-vfia76fK.js → CreateTransferInstrumentComponent-DOM7CWHW.js} +4 -4
- package/dist/{Currency-CJF_TGyQ.js → Currency-U_NBiYL_.js} +7 -7
- package/dist/{CustomerSupport-C_fh3_q2.js → CustomerSupport-gUFWyk3X.js} +10 -10
- package/dist/{DebugModal-8s0KmcYQ.js → DebugModal-B-9dnXq3.js} +9 -9
- package/dist/{DecisionMakerDetailsPage-BcaNuUzU.js → DecisionMakerDetailsPage-Y59IaBti.js} +6 -6
- package/dist/{DecisionMakers-BShMorMY.js → DecisionMakers-CXX7UaII.js} +20 -20
- package/dist/{EmbeddedStatus-Bsq1fp5z.js → EmbeddedStatus-DY5iLZFD.js} +2 -2
- package/dist/{EndStateLayout-BzHmhWSo.js → EndStateLayout-CwW4wDY8.js} +1 -1
- package/dist/{EntityAssociation-CzUai3Yh.js → EntityAssociation-CYAh0KGI.js} +8 -8
- package/dist/{EntityGuidanceStatus-B6luxhbo.js → EntityGuidanceStatus-Dkb_9kLQ.js} +2 -2
- package/dist/FormFlow-Dgc0gB-O.js +186 -0
- package/dist/{FormNavigation-trlYkLTT.js → FormNavigation-BE3rLf_S.js} +3 -3
- package/dist/{FormWrapper-CmShqeDn.js → FormWrapper-B7su5eh3.js} +10 -10
- package/dist/{IndividualOnfido-BziAZ51z.js → IndividualOnfido-DH3VYYau.js} +71 -74
- package/dist/{IndividualOnfidoDropin-DQpZ6OI1.js → IndividualOnfidoDropin-SiWSMsi9.js} +30 -33
- package/dist/{InputText-DmMvZip7.js → InputText-DR70nC51.js} +6 -6
- package/dist/{Introduction-Wu-LBXX2.js → Introduction-C2X6DyHw.js} +4 -4
- package/dist/{JpAddress-Bl9Ppmv5.js → JpAddress-CvQyBExq.js} +8 -8
- package/dist/{LegalRepresentativeDetailsPage-Cxy69AD6.js → LegalRepresentativeDetailsPage-Wf7cQkQn.js} +4 -4
- package/dist/{ListItem-DvTbHRWc.js → ListItem-BBHNYCCw.js} +2 -2
- package/dist/{ManageIndividualComponent-DIf-I6d0.js → ManageIndividualComponent-DPh2Jp_T.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-BK3ywG-g.js → ManageTermsOfServiceComponent-4-iML1dO.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-DHfft4DJ.js → ManageTransferInstrumentComponent-D8MMBSWg.js} +12 -12
- package/dist/{MaybeModal-Bw31z92e.js → MaybeModal-Us27ek4u.js} +15 -4
- package/dist/{Modal-B-CzUny3.js → Modal-W8cfdxrr.js} +4 -4
- package/dist/{OnboardingDropinComponent-Dc5Z3bna.js → OnboardingDropinComponent-HHq3dL3N.js} +1406 -1731
- package/dist/{PayoutDetailsDropin-DrESJrLF.js → PayoutDetailsDropin-M9FYw20B.js} +62 -42
- package/dist/ProgressBar-B7gTQncy.js +47 -0
- package/dist/{Review-CN0zdu0c.js → Review-CUNKnKSZ.js} +7 -7
- package/dist/{RootBusinessDetailsPage-DsCMT0gE.js → RootBusinessDetailsPage-DC0qALED.js} +7 -22
- package/dist/{RootBusinessLinesPage-D0djzhVg.js → RootBusinessLinesPage-B8gUQ93t.js} +146 -41
- package/dist/{RootIndividualDetailsPage-C49Q1XPl.js → RootIndividualDetailsPage-ULrh2_YN.js} +6 -6
- package/dist/{SignPCIComponent-Dm45H-8u.js → SignPCIComponent-MnotetIL.js} +10 -10
- package/dist/{SingpassSelection-DR7s4WiD.js → SingpassSelection-BWdMU1Lv.js} +4 -4
- package/dist/{SoleProprietorshipPage-C2_d7XKS.js → SoleProprietorshipPage-C9mxOyGm.js} +5 -19
- package/dist/{SourceOfFundsPage-SHeYHpGr.js → SourceOfFundsPage-bptpOZNp.js} +25 -25
- package/dist/{fieldConfigurations-Kb-fhpg7.js → Spacer-D-c-0ch_.js} +34 -24
- package/dist/{StepProgressIndicator-yqQhirdb.js → StepProgressIndicator--8FNnauI.js} +1 -1
- package/dist/{StoreProvider-BHckWEYg.js → StoreProvider-D_0Pta7w.js} +130 -98
- package/dist/{Summary-Df0SenAt.js → Summary-D741mrWG.js} +4 -4
- package/dist/{TaxReportingDropin-CKin6_Er.js → TaxReportingDropin-D2gjRJag.js} +16 -16
- package/dist/{TrustDetailsPage-C699_2RX.js → TrustDetailsPage-Dj64OqRJ.js} +27 -27
- package/dist/{TrustMemberCompanyPage-Bgh-8J6_.js → TrustMemberCompanyPage-DlnCvpf5.js} +6 -22
- package/dist/{TrustMemberIndividualPage-2gZsrdqt.js → TrustMemberIndividualPage-D8LSPYGf.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-BB41jjVq.js → TrustMemberRoleAndTypePage-CN7oQduU.js} +15 -15
- package/dist/{TrustMembersOverview-DkpHLa-c.js → TrustMembersOverview-C2VH8NIl.js} +12 -12
- package/dist/{UnincorporatedPartnershipIndividualPage-uZBKkJwX.js → UnincorporatedPartnershipIndividualPage-fN2QrGh4.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CVa6qF3n.js → UnincorporatedPartnershipMemberCompanyPage-BUEeNfv-.js} +6 -22
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Ctl2MPKX.js → UnincorporatedPartnershipMemberRoleAndTypePage-DeUAOKnx.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-DZPLX8gp.js → UnincorporatedPartnershipMembersOverview-EeE4JNAc.js} +9 -9
- package/dist/{VerificationErrorAlert-BVoljWxM.js → VerificationErrorAlert-COgw5uh1.js} +4 -4
- package/dist/{ViewVerificationStatusComponent-B_gl5t76.js → ViewVerificationStatusComponent-CaPz-G-G.js} +4 -4
- package/dist/adyen-business-financing.js +8 -4
- package/dist/adyen-individual-configuration.js +2 -2
- package/dist/adyen-individual-status.js +2 -2
- package/dist/adyen-kyc-components.js +20 -20
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +2 -2
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/cross-circle-fill-maan7Z5S.js +17 -0
- package/dist/{debouncedInputEvent-C-zXYOuE.js → debouncedInputEvent-ZbuNEN6W.js} +2 -2
- package/dist/{documentUtils-l4Di7U18.js → documentUtils-XUGK4RIp.js} +3 -3
- package/dist/{dropinUtils-Cm6ETaTL.js → dropinUtils-Dggo6PZA.js} +4 -4
- package/dist/en-US-AgtwE4Fl.js +63 -0
- package/dist/{getFieldsWithExistingData-BdYN38hE.js → getFieldsWithExistingData-KwCfBJn2.js} +1 -1
- package/dist/{getName-BUZJBcAE.js → getName-B1UTZRuu.js} +2 -9
- package/dist/{hasDataChanged-D9Qx_JCQ.js → hasDataChanged-CSn4V18R.js} +2 -2
- package/dist/{iframeWidget-CemJJ3EA.js → iframeWidget-BDp1ajgy.js} +4 -4
- package/dist/info-filled-SQotHmT9.js +17 -0
- package/dist/{localizeDateString-DyXarzIl.js → localizeDateString-CZrFwyd0.js} +1 -1
- package/dist/{mapExistingFile-COnTFqXJ.js → mapExistingFile-D5fqNt1l.js} +2 -2
- package/dist/{mapFinancialReportsToFinancialInformation-BK4mXy3k.js → mapFinancialReportsToFinancialInformation-eCMwJnwj.js} +3 -3
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BulGG0pe.js → mapJpAddressSchemaToAddressLocalizations-i8O5_wuI.js} +3 -3
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-BMDtouhh.js → mapLegalEntityToIndividualOnfidoSchema-Cyg_384J.js} +3 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-MpVqVhGS.js → mapTransferInstrumentToPayoutAccount-BOYDxAUf.js} +1 -1
- package/dist/{process-field-configurations-kh7VAcBh.js → process-field-configurations-ClLFHxX6.js} +3 -3
- package/dist/{resolveEnvironment-D-9wHJs2.js → resolveEnvironment-D8CEfrp4.js} +3 -3
- package/dist/{rules-DFisB-1M.js → rules-Cr3Ka8oq.js} +5 -5
- package/dist/style.css +268 -233
- package/dist/styles-CLV89_hH.js +268 -233
- package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -18
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +8 -2
- package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +1 -3
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +5 -18
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +0 -21
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +13 -2
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +0 -11
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +3 -2
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +0 -6
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +7 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +23 -2
- package/dist/types/components/BusinessLines/forms/SctaForm/SctaInfoModal.d.ts +3 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +0 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/ui/atoms/Link/Link.types.d.ts +1 -1
- package/dist/types/components/ui/atoms/Loader/Loader.d.ts +1 -5
- package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +4 -0
- package/dist/types/context/ExperimentContext/types.d.ts +6 -5
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{types-DJeg3Tz6.js → types-CR2U3VAD.js} +1 -1
- package/dist/{types-1iAHHNsZ.js → types-DjTezJBU.js} +1 -1
- package/dist/{types-CHr4VLHl.js → types-Dk94b8kx.js} +7 -6
- package/dist/{types-BDHLVBb5.js → types-Gm2SleFm.js} +1 -1
- package/dist/{useAssociatedLegalEntity-qIkD-MFM.js → useAssociatedLegalEntity-Pgb7_79V.js} +1 -1
- package/dist/{useCreateLegalEntity-CDFKMwwk.js → useCreateLegalEntity-Ba2rxRgb.js} +2 -2
- package/dist/{useDataset-D1AsbWmY.js → useDataset-RNFlX1-i.js} +4 -4
- package/dist/{useForm-DzONzNQu.js → useForm-C261ZUdn.js} +10 -9
- package/dist/{useGlobalData-B5sNYBl5.js → useGlobalData-COSDbjgb.js} +5 -5
- package/dist/{useMultiForm-Dd80_VRc.js → useMultiForm--zHGgbxw.js} +3 -3
- package/dist/{useOnboardingStatus-YrIRg4io.js → useOnboardingStatus-DytPj9Ai.js} +1 -1
- package/dist/{useScenarios-BkCy7ImD.js → useScenarios-eYrKID9N.js} +2 -2
- package/dist/{useTermsOfServiceStatus-D2rhp6YQ.js → useTermsOfServiceStatus-BYJqq3Oi.js} +1 -1
- package/dist/{useToastContext-5JlKjAbN.js → useToastContext-CqIJgGTa.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-Dwj2XshB.js → useUnincorporatedPartnershipMembers-HC3erocB.js} +4 -4
- package/dist/{useUpdateBusinessLines-DzLgvolo.js → useUpdateBusinessLines-Dq3B1Jvy.js} +2 -2
- package/dist/{useUpdateLegalEntity-BzuSuul0.js → useUpdateLegalEntity-BPQX_o3v.js} +3 -3
- package/dist/{utils-DjzolTRQ.js → utils-B_eQ3Eny.js} +3 -3
- package/dist/{utils-Da-KDnEH.js → utils-BbmGXGUy.js} +6 -6
- package/dist/{validate-D7GAD2-j.js → validate-ArlZWHo0.js} +1 -1
- package/dist/{validate-B48OR9iz.js → validate-B_v0PjtX.js} +1 -1
- package/dist/{validationError-DzkunflV.js → validationError-BQZWqXfp.js} +1 -1
- package/package.json +2 -2
- package/dist/FormFlow-CEyVMiHY.js +0 -224
- package/dist/en-US-CBsokt1L.js +0 -42
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +0 -9
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +0 -11
- package/dist/types/components/Business/forms/BusinessDetails/BusinessDetails.d.ts +0 -3
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +0 -14
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +0 -4
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +0 -5
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -23
- /package/dist/types/components/Business/{tasks/BusinessDetailsMultiformDropin → forms/BusinessDetails}/BusinessDetailsMultiform.d.ts +0 -0
- /package/dist/types/components/Business/tasks/{BusinessDetailsMultiformDropin → BusinessDetailsDropin}/validate.d.ts +0 -0
|
@@ -2,34 +2,34 @@
|
|
|
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] = "81445a69-71da-43b9-85a6-db3388650ca8", e._sentryDebugIdIdentifier = "sentry-dbid-81445a69-71da-43b9-85a6-db3388650ca8");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { am as DecisionMakerTypes, b6 as drop, aB as cloneObject, u as useTranslation, c as useLegalEntity, B as Button, L as Loader, G as Typography,
|
|
10
|
+
import { am as DecisionMakerTypes, b6 as drop, aB as cloneObject, u as useTranslation, c as useLegalEntity, B as Button, L as Loader, G as Typography, a2 as useAnalyticsContext, R as ROOT_LE, a as addResourceBundles, a7 as useGetTaskStatus, X as useExperimentsContext, M as EntityTypes, N as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, aZ as getOwnDecisionMakers, ar as getAvailableDecisionMakerRoleTypes, O as TaskTypes, b7 as getAllowedDecisionMakerRoles, an as Trans, U as TaskStatuses, _ as __variableDynamicImportRuntimeHelper, r as LegalEntityTypes } from "./StoreProvider-D_0Pta7w.js";
|
|
11
11
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
12
12
|
import { useState, useMemo, useEffect } from "preact/hooks";
|
|
13
|
-
import { u as useScenarios } from "./useScenarios-
|
|
14
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
15
|
-
import { S as StackLayout, L as List, H as Header } from "./CountryField-
|
|
16
|
-
import { L as ListItem } from "./ListItem-
|
|
17
|
-
import { M as Modal } from "./Modal-
|
|
18
|
-
import { a as useToastContext } from "./useToastContext-
|
|
19
|
-
import { e as useDataMissingRemediations } from "./OnboardingDropinComponent-
|
|
20
|
-
import { a as Alert } from "./Alert-
|
|
21
|
-
import { I as Image, i as useCapabilityProblems, C as ContextGuidance } from "./
|
|
22
|
-
import { A as ActionBar } from "./ActionBar-
|
|
13
|
+
import { u as useScenarios } from "./useScenarios-eYrKID9N.js";
|
|
14
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-BPQX_o3v.js";
|
|
15
|
+
import { S as StackLayout, L as List, H as Header } from "./CountryField-BO-n2nAh.js";
|
|
16
|
+
import { L as ListItem } from "./ListItem-BBHNYCCw.js";
|
|
17
|
+
import { M as Modal } from "./Modal-W8cfdxrr.js";
|
|
18
|
+
import { a as useToastContext } from "./useToastContext-CqIJgGTa.js";
|
|
19
|
+
import { e as useDataMissingRemediations } from "./OnboardingDropinComponent-HHq3dL3N.js";
|
|
20
|
+
import { a as Alert } from "./Alert-DlSROjS7.js";
|
|
21
|
+
import { I as Image, i as useCapabilityProblems, C as ContextGuidance } from "./Spacer-D-c-0ch_.js";
|
|
22
|
+
import { A as ActionBar } from "./ActionBar-BO6XSNuM.js";
|
|
23
23
|
import { D as DropinLayout } from "./DropinLayout-CBP_cHLC.js";
|
|
24
|
-
import { E as EntityAssociation } from "./EntityAssociation-
|
|
25
|
-
import { E as EntityGuidanceStatus, i as iconStatus } from "./EntityGuidanceStatus-
|
|
26
|
-
import { T as TaskVerificationStatus } from "./InputText-
|
|
27
|
-
import { m as mapLegalEntityToIndividualOnfidoSchema, i as individualFormDefaultData } from "./mapLegalEntityToIndividualOnfidoSchema-
|
|
28
|
-
import {
|
|
29
|
-
import { a as datasetUtilities, S as StructuredList, C as Confirm } from "./useDataset-
|
|
24
|
+
import { E as EntityAssociation } from "./EntityAssociation-CYAh0KGI.js";
|
|
25
|
+
import { E as EntityGuidanceStatus, i as iconStatus } from "./EntityGuidanceStatus-Dkb_9kLQ.js";
|
|
26
|
+
import { T as TaskVerificationStatus } from "./InputText-DR70nC51.js";
|
|
27
|
+
import { m as mapLegalEntityToIndividualOnfidoSchema, i as individualFormDefaultData } from "./mapLegalEntityToIndividualOnfidoSchema-Cyg_384J.js";
|
|
28
|
+
import { W as GuidanceQuestionValues, Y as getTrustedEntityAssociations, M as LandingLayout } from "./IndividualOnfido-DH3VYYau.js";
|
|
29
|
+
import { a as datasetUtilities, S as StructuredList, C as Confirm } from "./useDataset-RNFlX1-i.js";
|
|
30
30
|
import { D as DetailViewLayout } from "./DetailViewLayout-Z9cuUp4X.js";
|
|
31
|
-
import {
|
|
32
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
31
|
+
import { o as mapAddressLabels } from "./Address-BCTZUD2J.js";
|
|
32
|
+
import { l as localizeDateString } from "./localizeDateString-CZrFwyd0.js";
|
|
33
33
|
import { lazy } from "preact/compat";
|
|
34
34
|
const BENEFICIAL_OWNER_ROLES = [
|
|
35
35
|
DecisionMakerTypes.OWNER,
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { A as Avatar } from "./Avatar-
|
|
13
|
-
import { U as TaskStatuses, u as useTranslation, y as Skeleton, G as Typography } from "./StoreProvider-
|
|
12
|
+
import { A as Avatar } from "./Avatar-1DJaB2Fj.js";
|
|
13
|
+
import { U as TaskStatuses, u as useTranslation, y as Skeleton, G as Typography } from "./StoreProvider-D_0Pta7w.js";
|
|
14
14
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
15
15
|
import { O as OnboardingStatuses } from "./view-verification-status-VFcBydkR.js";
|
|
16
16
|
const embeddedStatus = "adyen-kyc-embedded-status";
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
import { isValidElement, cloneElement } from "preact";
|
|
13
|
-
import { B as Button, L as Loader, a3 as Icon } from "./StoreProvider-
|
|
13
|
+
import { B as Button, L as Loader, a3 as Icon } from "./StoreProvider-D_0Pta7w.js";
|
|
14
14
|
const endStateLayout = "adyen-kyc-end-state-layout";
|
|
15
15
|
const endStateLayoutHeader = "adyen-kyc-end-state-layout-header";
|
|
16
16
|
const endStateLayoutIcon = "adyen-kyc-end-state-layout-icon";
|
|
@@ -2,21 +2,21 @@
|
|
|
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] = "7717dcaf-c839-46aa-9724-01e3a1d1386e", e._sentryDebugIdIdentifier = "sentry-dbid-7717dcaf-c839-46aa-9724-01e3a1d1386e");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useCallback, useEffect, useState } from "preact/hooks";
|
|
12
|
-
import { B as Button, u as useTranslation,
|
|
12
|
+
import { B as Button, u as useTranslation, Y as IconButton, U as TaskStatuses, a4 as noop } from "./StoreProvider-D_0Pta7w.js";
|
|
13
13
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
14
|
-
import { V as VerificationErrorAlert } from "./VerificationErrorAlert-
|
|
15
|
-
import { C as Card } from "./Card-
|
|
16
|
-
import { C as Confirm } from "./useDataset-
|
|
17
|
-
import { T as TaskVerificationStatus } from "./InputText-
|
|
18
|
-
import {
|
|
19
|
-
import { j as getRoleTagVariant, f as getRoleName } from "./CountryField-
|
|
14
|
+
import { V as VerificationErrorAlert } from "./VerificationErrorAlert-COgw5uh1.js";
|
|
15
|
+
import { C as Card } from "./Card-I1r9oUx8.js";
|
|
16
|
+
import { C as Confirm } from "./useDataset-RNFlX1-i.js";
|
|
17
|
+
import { T as TaskVerificationStatus } from "./InputText-DR70nC51.js";
|
|
18
|
+
import { k as handleKeys } from "./IndividualOnfido-DH3VYYau.js";
|
|
19
|
+
import { j as getRoleTagVariant, f as getRoleName } from "./CountryField-BO-n2nAh.js";
|
|
20
20
|
function useClickAwayListener(ref, onClickAway) {
|
|
21
21
|
const handleClickAway = useCallback(
|
|
22
22
|
(event) => {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
12
|
-
import { bA as getDecisionMakerDescriptionMap, O as TaskTypes, bB as TRUST_DEFAULT_DESCRIPTIONS_MAP, a3 as Icon, u as useTranslation, an as Trans } from "./StoreProvider-
|
|
13
|
-
import { U as UnincorporatedPartnershipMemberTypes, j as getRoleTagVariant, f as getRoleName } from "./CountryField-
|
|
12
|
+
import { bA as getDecisionMakerDescriptionMap, O as TaskTypes, bB as TRUST_DEFAULT_DESCRIPTIONS_MAP, a3 as Icon, u as useTranslation, an as Trans } from "./StoreProvider-D_0Pta7w.js";
|
|
13
|
+
import { U as UnincorporatedPartnershipMemberTypes, j as getRoleTagVariant, f as getRoleName } from "./CountryField-BO-n2nAh.js";
|
|
14
14
|
const UNINCORPORATED_PARTNERSHIP__DEFAULT_DESCRIPTIONS_MAP = {
|
|
15
15
|
[UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER]: "provideAtLeastOneSecondaryPartner",
|
|
16
16
|
[UnincorporatedPartnershipMemberTypes.OWNER]: "provideAllOwners",
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
4
|
+
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1b7d6996-02bc-4c40-b0a2-08726271624b", e._sentryDebugIdIdentifier = "sentry-dbid-1b7d6996-02bc-4c40-b0a2-08726271624b");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
+
import { useMemo, useRef, useState } from "preact/hooks";
|
|
12
|
+
import { F as FormContext } from "./Address-BCTZUD2J.js";
|
|
13
|
+
import cx from "classnames";
|
|
14
|
+
import { a2 as useAnalyticsContext, u as useTranslation, B as Button } from "./StoreProvider-D_0Pta7w.js";
|
|
15
|
+
import { L as LoaderWrapper } from "./useForm-C261ZUdn.js";
|
|
16
|
+
import { M as MaybeModal } from "./MaybeModal-Us27ek4u.js";
|
|
17
|
+
import { P as ProgressBar } from "./ProgressBar-B7gTQncy.js";
|
|
18
|
+
import { F as FormRouterContextProvider } from "./dropinUtils-Dggo6PZA.js";
|
|
19
|
+
import { C as Confirm } from "./useDataset-RNFlX1-i.js";
|
|
20
|
+
import { S as Summary } from "./Summary-D741mrWG.js";
|
|
21
|
+
function FormContextProvider({
|
|
22
|
+
children,
|
|
23
|
+
form
|
|
24
|
+
}) {
|
|
25
|
+
const contextValue = useMemo(
|
|
26
|
+
() => ({
|
|
27
|
+
form
|
|
28
|
+
}),
|
|
29
|
+
[form]
|
|
30
|
+
);
|
|
31
|
+
return /* @__PURE__ */ jsx(FormContext.Provider, { value: contextValue, children });
|
|
32
|
+
}
|
|
33
|
+
const formFlow = "adyen-kyc-form-flow";
|
|
34
|
+
const formFlowContent = "adyen-kyc-form-flow-content";
|
|
35
|
+
const formFlowFooter = "adyen-kyc-form-flow-footer";
|
|
36
|
+
const formFlowFooterBorder = "adyen-kyc-form-flow-footer-border";
|
|
37
|
+
const formFlowActions = "adyen-kyc-form-flow-actions";
|
|
38
|
+
const formFlowPrimaryActions = "adyen-kyc-form-flow-primary-actions";
|
|
39
|
+
const styles = {
|
|
40
|
+
formFlow,
|
|
41
|
+
formFlowContent,
|
|
42
|
+
formFlowFooter,
|
|
43
|
+
formFlowFooterBorder,
|
|
44
|
+
formFlowActions,
|
|
45
|
+
formFlowPrimaryActions
|
|
46
|
+
};
|
|
47
|
+
const FormFlow = ({
|
|
48
|
+
asModal = false,
|
|
49
|
+
children,
|
|
50
|
+
currentStep = 0,
|
|
51
|
+
disableBackButton,
|
|
52
|
+
disableNextButton,
|
|
53
|
+
forms,
|
|
54
|
+
gotoFormByFormIndex,
|
|
55
|
+
handleBackClick,
|
|
56
|
+
handleCancelClick,
|
|
57
|
+
handleNextClick,
|
|
58
|
+
loadingStatus,
|
|
59
|
+
summary,
|
|
60
|
+
totalSteps = 1
|
|
61
|
+
}) => {
|
|
62
|
+
const contentRef = useRef(null);
|
|
63
|
+
const userEvents = useAnalyticsContext();
|
|
64
|
+
const { t } = useTranslation("common");
|
|
65
|
+
const [isConfirmPresented, setIsConfirmPresented] = useState(false);
|
|
66
|
+
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
67
|
+
const isLoading = loadingStatus === "loading";
|
|
68
|
+
const isActionDisabled = isSubmitting || isConfirmPresented || isLoading;
|
|
69
|
+
const hasBackButton = !!handleBackClick;
|
|
70
|
+
const hasCancelButton = !!handleCancelClick;
|
|
71
|
+
const isFirstStep = currentStep === 0;
|
|
72
|
+
const isLastStep = currentStep === totalSteps - 1;
|
|
73
|
+
const isSingleStepForm = totalSteps < 2;
|
|
74
|
+
const hasProblems = summary?.problems?.verificationErrors !== void 0;
|
|
75
|
+
const progress = Math.floor(currentStep / (totalSteps - 1) * 100);
|
|
76
|
+
const scrollToTop = () => {
|
|
77
|
+
if (contentRef.current) {
|
|
78
|
+
contentRef.current.scroll({
|
|
79
|
+
top: 0,
|
|
80
|
+
behavior: "smooth"
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const handleSubmit = () => {
|
|
85
|
+
setIsSubmitting(true);
|
|
86
|
+
Promise.resolve(handleNextClick()).then(() => {
|
|
87
|
+
setIsSubmitting(false);
|
|
88
|
+
scrollToTop();
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
const handleNext = () => {
|
|
92
|
+
scrollToTop();
|
|
93
|
+
handleNextClick();
|
|
94
|
+
};
|
|
95
|
+
const handleBack = () => {
|
|
96
|
+
scrollToTop();
|
|
97
|
+
handleBackClick?.();
|
|
98
|
+
};
|
|
99
|
+
const handleDismiss = () => {
|
|
100
|
+
if (!hasCancelButton) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
setIsConfirmPresented(true);
|
|
104
|
+
};
|
|
105
|
+
const handleCancelDismiss = () => {
|
|
106
|
+
userEvents.addPageEvent("Closed modal", {
|
|
107
|
+
actionType: "close",
|
|
108
|
+
label: "cancel"
|
|
109
|
+
});
|
|
110
|
+
setIsConfirmPresented(false);
|
|
111
|
+
};
|
|
112
|
+
const handleConfirmDismiss = () => {
|
|
113
|
+
userEvents.addPageEvent("Clicked button", {
|
|
114
|
+
actionType: "navigate",
|
|
115
|
+
label: "leave"
|
|
116
|
+
});
|
|
117
|
+
setIsConfirmPresented(false);
|
|
118
|
+
handleCancelClick?.();
|
|
119
|
+
};
|
|
120
|
+
const handleSkip = () => {
|
|
121
|
+
userEvents.addPageEvent("Clicked button", {
|
|
122
|
+
actionType: "skip",
|
|
123
|
+
label: "skip"
|
|
124
|
+
});
|
|
125
|
+
gotoFormByFormIndex(currentStep + 1);
|
|
126
|
+
};
|
|
127
|
+
const footerClassName = cx(styles.formFlowFooter, {
|
|
128
|
+
[styles.formFlowFooterBorder]: isSingleStepForm
|
|
129
|
+
});
|
|
130
|
+
return /* @__PURE__ */ jsxs(
|
|
131
|
+
MaybeModal,
|
|
132
|
+
{
|
|
133
|
+
inline: !asModal,
|
|
134
|
+
onClose: handleDismiss,
|
|
135
|
+
size: "large",
|
|
136
|
+
showCloseButton: hasCancelButton,
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ jsxs("div", { ref: contentRef, className: styles.formFlow, children: [
|
|
139
|
+
/* @__PURE__ */ jsx("div", { className: styles.formFlowContent, children: /* @__PURE__ */ jsx(LoaderWrapper, { status: loadingStatus, formOpacityWhenLoading: 0, loaderSize: "large", children: /* @__PURE__ */ jsx(FormRouterContextProvider, { forms, setFormIndex: gotoFormByFormIndex, children: isLastStep && summary !== void 0 ? /* @__PURE__ */ jsx(Summary, { ...summary, forms, gotoForm: gotoFormByFormIndex }) : children }) }) }),
|
|
140
|
+
/* @__PURE__ */ jsxs("div", { className: footerClassName, children: [
|
|
141
|
+
!isSingleStepForm && /* @__PURE__ */ jsx(ProgressBar, { ariaLabel: t(($) => $["progress"]), progress }),
|
|
142
|
+
/* @__PURE__ */ jsxs("div", { className: styles.formFlowActions, children: [
|
|
143
|
+
isFirstStep && hasCancelButton && /* @__PURE__ */ jsx(
|
|
144
|
+
Button,
|
|
145
|
+
{
|
|
146
|
+
disabled: isActionDisabled || disableBackButton,
|
|
147
|
+
onClick: handleDismiss,
|
|
148
|
+
variant: "secondary",
|
|
149
|
+
children: t(($) => $["cancel"])
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
!isFirstStep && hasBackButton && /* @__PURE__ */ jsx(
|
|
153
|
+
Button,
|
|
154
|
+
{
|
|
155
|
+
disabled: isActionDisabled || disableBackButton,
|
|
156
|
+
icon: "chevron-left",
|
|
157
|
+
onClick: handleBack,
|
|
158
|
+
variant: "secondary",
|
|
159
|
+
children: t(($) => $["back"])
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ jsx("div", { className: styles.formFlowPrimaryActions, children: isLastStep ? /* @__PURE__ */ jsx(Button, { onClick: handleSubmit, loading: isSubmitting, children: t(($) => $["submit"]) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
163
|
+
hasProblems && /* @__PURE__ */ jsx(Button, { onClick: handleSkip, disabled: isActionDisabled, variant: "secondary", children: t(($) => $["skip"]) }),
|
|
164
|
+
/* @__PURE__ */ jsx(Button, { onClick: handleNext, disabled: isActionDisabled || disableNextButton, children: t(($) => $["continue"]) })
|
|
165
|
+
] }) })
|
|
166
|
+
] })
|
|
167
|
+
] })
|
|
168
|
+
] }),
|
|
169
|
+
isConfirmPresented && /* @__PURE__ */ jsx(
|
|
170
|
+
Confirm,
|
|
171
|
+
{
|
|
172
|
+
confirmText: t(($) => $["leave"]),
|
|
173
|
+
description: t(($) => $["unsavedChangesDescription"]),
|
|
174
|
+
onCancel: handleCancelDismiss,
|
|
175
|
+
onConfirm: handleConfirmDismiss,
|
|
176
|
+
title: t(($) => $["unsavedChanges"])
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
};
|
|
183
|
+
export {
|
|
184
|
+
FormContextProvider as F,
|
|
185
|
+
FormFlow as a
|
|
186
|
+
};
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2da8db04-2441-4d45-a274-4ffae1534e48", e._sentryDebugIdIdentifier = "sentry-dbid-2da8db04-2441-4d45-a274-4ffae1534e48");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { u as useTranslation, a3 as Icon,
|
|
12
|
+
import { u as useTranslation, a3 as Icon, a2 as useAnalyticsContext, G as Typography } from "./StoreProvider-D_0Pta7w.js";
|
|
13
13
|
import { t as trackNavigation } from "./trackNavigation-db_h46BT.js";
|
|
14
|
-
import { K as KEYBOARD_KEYS } from "./Modal-
|
|
14
|
+
import { K as KEYBOARD_KEYS } from "./Modal-W8cfdxrr.js";
|
|
15
15
|
const FormNavigationItem = ({
|
|
16
16
|
form,
|
|
17
17
|
isActive,
|
|
@@ -2,22 +2,22 @@
|
|
|
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] = "7d73b9f1-f063-4201-98ba-c58f7b820301", e._sentryDebugIdIdentifier = "sentry-dbid-7d73b9f1-f063-4201-98ba-c58f7b820301");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useState } from "preact/hooks";
|
|
12
|
-
import { u as useTranslation,
|
|
13
|
-
import { L as LoaderWrapper } from "./useForm-
|
|
14
|
-
import { M as MaybeModal } from "./MaybeModal-
|
|
15
|
-
import { a as ModalContent,
|
|
16
|
-
import {
|
|
17
|
-
import { S as StepProgressIndicator } from "./StepProgressIndicator
|
|
18
|
-
import { F as FormRouterContextProvider } from "./dropinUtils-
|
|
19
|
-
import { F as FormNavigation } from "./FormNavigation-
|
|
20
|
-
import { s as summaryStep, S as Summary } from "./Summary-
|
|
12
|
+
import { u as useTranslation, a2 as useAnalyticsContext, X as useExperimentsContext, B as Button } from "./StoreProvider-D_0Pta7w.js";
|
|
13
|
+
import { L as LoaderWrapper } from "./useForm-C261ZUdn.js";
|
|
14
|
+
import { M as MaybeModal } from "./MaybeModal-Us27ek4u.js";
|
|
15
|
+
import { a as ModalContent, b as ModalHeader, c as ModalFooter } from "./Modal-W8cfdxrr.js";
|
|
16
|
+
import { z as Spacer } from "./Spacer-D-c-0ch_.js";
|
|
17
|
+
import { S as StepProgressIndicator } from "./StepProgressIndicator--8FNnauI.js";
|
|
18
|
+
import { F as FormRouterContextProvider } from "./dropinUtils-Dggo6PZA.js";
|
|
19
|
+
import { F as FormNavigation } from "./FormNavigation-BE3rLf_S.js";
|
|
20
|
+
import { s as summaryStep, S as Summary } from "./Summary-D741mrWG.js";
|
|
21
21
|
const FormWrapper = ({
|
|
22
22
|
asModal = false,
|
|
23
23
|
summary,
|
|
@@ -2,30 +2,29 @@
|
|
|
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] = "4c2d4012-0fc2-4f19-a0cc-47604929fa04", e._sentryDebugIdIdentifier = "sentry-dbid-4c2d4012-0fc2-4f19-a0cc-47604929fa04");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useState, useMemo, useEffect, useContext, useCallback } from "preact/hooks";
|
|
12
|
-
import {
|
|
13
|
-
import { c as createFormUtils, H as Header, E as ErrorPanel, a as Link, m as mergeFieldMetadataIntoProps, r as roleMetadata, d as getFieldProps, i as isTruthyValidator, C as CountryField, g as getFormProps, S as StackLayout, u as useFormRouterContext } from "./CountryField-
|
|
14
|
-
import { m as makeMask,
|
|
15
|
-
import { C as CountryCodes, W as isEmpty$1, u as useTranslation,
|
|
12
|
+
import { h as useProviderStatus, R as RadioGroup, i as isDateOlderThanAYear, C as COUNTRIES_WITH_STATES_DATASET, I as InputDate, f as formatDateObj, u as useFormContext, j as addressFields, A as Address, g as getAddressSchemaForCountry, d as getAddressSchemaLabelsByCountry, k as RadioWithLabel } from "./Address-BCTZUD2J.js";
|
|
13
|
+
import { c as createFormUtils, H as Header, E as ErrorPanel, a as Link, m as mergeFieldMetadataIntoProps, r as roleMetadata, d as getFieldProps, i as isTruthyValidator, C as CountryField, g as getFormProps, S as StackLayout, u as useFormRouterContext } from "./CountryField-BO-n2nAh.js";
|
|
14
|
+
import { m as makeMask, d as nonInputs, n as numericInputs, s as spacer, c as alphaInputs, k as customInputs, b as alphanumericInputs, v as validatePatternOnBlur, u as uppercase, l as defaultFileValidationOptions, o as fileValidationRules, S as StateContextSetter, D as DropzoneFile, p as bytesToSize, q as DocumentGuidance, t as TextArea, w as getLocalizedIdDocumentTypeOptions, R as RadioGroupCard, C as ContextGuidance, I as Image, a as validateNotEmptyOnBlur, x as createFormRules, M as MaskedInput, r as resolveFieldMetadata, y as InputEmail, T as TrustedFieldsProviders, z as Spacer } from "./Spacer-D-c-0ch_.js";
|
|
15
|
+
import { C as CountryCodes, W as isEmpty$1, u as useTranslation, a2 as useAnalyticsContext, B as Button, G as Typography, a3 as Icon, aj as objectsDeepEqual, c as useLegalEntity, R as ROOT_LE, al as Scenarios, am as DecisionMakerTypes, O as TaskTypes, an as Trans, b as useApiContext, j as useQuery, k as httpPost, P as createLogger, V as useI18nContext, m as httpGet, ao as SettingsContext, X as useExperimentsContext, r as LegalEntityTypes, ap as keysOf, K as useAccountHolder, a0 as entriesOf, o as useSettingsContext, aq as getLegalRepresentativeWarningMessage, a4 as noop, g as getLegalEntityCountry, ar as getAvailableDecisionMakerRoleTypes, as as allowedCountriesForNominee, at as isLowRiskCountry, au as useVersionConfiguration, L as Loader, av as getAgeRangeForLegalRepresentative, aw as isLegalRepresentativeNeeded, $ as useMutation, ax as listToRecord, ay as pick, Y as IconButton, z as translateStringOrObject } from "./StoreProvider-D_0Pta7w.js";
|
|
16
16
|
import { memo, lazy, forwardRef, Suspense } from "preact/compat";
|
|
17
|
-
import { u as useForm, F as Field, S as Select, L as LoaderWrapper, a as SelectListItem } from "./useForm-
|
|
18
|
-
import { I as InputText, S as SettingNames } from "./InputText-
|
|
19
|
-
import { a as Alert } from "./Alert-
|
|
17
|
+
import { u as useForm, F as Field, S as Select, L as LoaderWrapper, a as SelectListItem } from "./useForm-C261ZUdn.js";
|
|
18
|
+
import { I as InputText, S as SettingNames } from "./InputText-DR70nC51.js";
|
|
19
|
+
import { a as Alert } from "./Alert-DlSROjS7.js";
|
|
20
20
|
import { signal, computed } from "@preact/signals";
|
|
21
|
-
import { u as useDataset, d as datasetIdentifier, C as Confirm, a as datasetUtilities } from "./useDataset-
|
|
21
|
+
import { u as useDataset, d as datasetIdentifier, C as Confirm, a as datasetUtilities } from "./useDataset-RNFlX1-i.js";
|
|
22
22
|
import cx from "classnames";
|
|
23
|
-
import { b as useId } from "./useToastContext-
|
|
24
|
-
import { K as KEYBOARD_KEYS, M as Modal } from "./Modal-
|
|
25
|
-
import { C as Checkbox } from "./debouncedInputEvent-
|
|
23
|
+
import { b as useId } from "./useToastContext-CqIJgGTa.js";
|
|
24
|
+
import { K as KEYBOARD_KEYS, M as Modal } from "./Modal-W8cfdxrr.js";
|
|
25
|
+
import { C as Checkbox } from "./debouncedInputEvent-ZbuNEN6W.js";
|
|
26
26
|
import { Onfido } from "onfido-sdk-ui";
|
|
27
|
-
import {
|
|
28
|
-
import { l as localizeDateString } from "./localizeDateString-DyXarzIl.js";
|
|
27
|
+
import { l as localizeDateString } from "./localizeDateString-CZrFwyd0.js";
|
|
29
28
|
const validatePhoneCountryCodeNotEmptyOnBlur = {
|
|
30
29
|
modes: ["blur"],
|
|
31
30
|
validate: (phone) => !isEmpty$1(phone?.phoneCountryCode),
|
|
@@ -806,7 +805,7 @@ function Dropzone(props) {
|
|
|
806
805
|
if (e.dataTransfer) updateFiles(e.dataTransfer);
|
|
807
806
|
setDragged(false);
|
|
808
807
|
};
|
|
809
|
-
const handleFileChange = (e) => updateFiles(e.
|
|
808
|
+
const handleFileChange = (e) => updateFiles(e.currentTarget);
|
|
810
809
|
const updateFiles = ({ files }) => {
|
|
811
810
|
if (enableTracking) {
|
|
812
811
|
userEvents.addFieldEvent("Interacted with form field", {
|
|
@@ -3995,9 +3994,7 @@ const rules = ({
|
|
|
3995
3994
|
};
|
|
3996
3995
|
return createFormRules({
|
|
3997
3996
|
requireDoingBusinessAsName: () => {
|
|
3998
|
-
|
|
3999
|
-
return data.additionalInformation?.hasDoingBusinessAs ? "REQUIRED" : void 0;
|
|
4000
|
-
}
|
|
3997
|
+
return data.additionalInformation?.hasDoingBusinessAs ? "REQUIRED" : void 0;
|
|
4001
3998
|
},
|
|
4002
3999
|
countryRequiresStateOrProvince: () => {
|
|
4003
4000
|
if (COUNTRIES_WITH_STATES_DATASET.includes(country)) {
|
|
@@ -4170,17 +4167,17 @@ const rules = ({
|
|
|
4170
4167
|
}
|
|
4171
4168
|
},
|
|
4172
4169
|
annualTurnoverRequired: () => {
|
|
4173
|
-
if (
|
|
4170
|
+
if (data.companyFinancialInformation?.reportedValueOption === "annualTurnover") {
|
|
4174
4171
|
return "REQUIRED";
|
|
4175
4172
|
}
|
|
4176
4173
|
},
|
|
4177
4174
|
netAssetsRequired: () => {
|
|
4178
|
-
if (
|
|
4175
|
+
if (data.companyFinancialInformation?.reportedValueOption === "netAssets") {
|
|
4179
4176
|
return "REQUIRED";
|
|
4180
4177
|
}
|
|
4181
4178
|
},
|
|
4182
4179
|
balanceSheetTotalRequired: () => {
|
|
4183
|
-
if (
|
|
4180
|
+
if (data.companyFinancialInformation?.reportedValueOption === "balanceSheetTotal") {
|
|
4184
4181
|
return "REQUIRED";
|
|
4185
4182
|
}
|
|
4186
4183
|
},
|
|
@@ -4208,7 +4205,7 @@ const rules = ({
|
|
|
4208
4205
|
}
|
|
4209
4206
|
},
|
|
4210
4207
|
requireBusinessSelection: () => {
|
|
4211
|
-
if (taskType !== TaskTypes.SOLE_PROPRIETOR_COMPANY && taskType !== TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY && taskType !== TaskTypes.TRUST_MEMBER_COMPANY && COUNTRIES_USING_COMPANY_SEARCH.includes(country)
|
|
4208
|
+
if (taskType !== TaskTypes.SOLE_PROPRIETOR_COMPANY && taskType !== TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY && taskType !== TaskTypes.TRUST_MEMBER_COMPANY && COUNTRIES_USING_COMPANY_SEARCH.includes(country)) {
|
|
4212
4209
|
return "REQUIRED";
|
|
4213
4210
|
}
|
|
4214
4211
|
}
|
|
@@ -4368,7 +4365,7 @@ function TaxInformationField({
|
|
|
4368
4365
|
isUsSoleProp
|
|
4369
4366
|
]);
|
|
4370
4367
|
const handleTaxInformationChange = (e, key, mode, resetToDefault) => {
|
|
4371
|
-
const value = e ? typeof e === "string" ? e : e
|
|
4368
|
+
const value = e ? typeof e === "string" ? e : e.currentTarget.value : void 0;
|
|
4372
4369
|
if (resetToDefault) {
|
|
4373
4370
|
return handleChangeFor("taxInformation", mode)(defaultData);
|
|
4374
4371
|
}
|
|
@@ -4682,7 +4679,7 @@ function PhoneField({
|
|
|
4682
4679
|
);
|
|
4683
4680
|
const handleOnBlur = useCallback(
|
|
4684
4681
|
(event) => {
|
|
4685
|
-
const onlyDigits = event.
|
|
4682
|
+
const onlyDigits = event.currentTarget.value.replace(/\D+/g, "");
|
|
4686
4683
|
const number = currentPrefix ? `${currentPrefix}${onlyDigits}` : onlyDigits;
|
|
4687
4684
|
setIsFocused(false);
|
|
4688
4685
|
handleChangeFor(
|
|
@@ -7561,7 +7558,7 @@ const additionalIdentityInfoFields = [
|
|
|
7561
7558
|
"expiryDate"
|
|
7562
7559
|
];
|
|
7563
7560
|
const LazyJpAddress = lazy(
|
|
7564
|
-
async () => (await import("./JpAddress-
|
|
7561
|
+
async () => (await import("./JpAddress-CvQyBExq.js")).JpAddress
|
|
7565
7562
|
);
|
|
7566
7563
|
const additionalPersonalDetailsFields = [
|
|
7567
7564
|
"birthDate",
|
|
@@ -9563,44 +9560,44 @@ function IndividualOnfido(props) {
|
|
|
9563
9560
|
] });
|
|
9564
9561
|
}
|
|
9565
9562
|
export {
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
|
|
9563
|
+
isRegistrationNumberAbsentStateV4Scenario as $,
|
|
9564
|
+
fieldConfig as A,
|
|
9565
|
+
isEmpty as B,
|
|
9569
9566
|
CompanyTypesValues as C,
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
|
|
9573
|
-
|
|
9574
|
-
|
|
9575
|
-
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9567
|
+
getTrustedFields as D,
|
|
9568
|
+
getAsyncIdNumberValidationRule as E,
|
|
9569
|
+
getAsyncPhoneValidationRules as F,
|
|
9570
|
+
setHasMotionCaptureScenario as G,
|
|
9571
|
+
showIndividualMotionCapture as H,
|
|
9572
|
+
Individual as I,
|
|
9573
|
+
individualDocumentForms as J,
|
|
9574
|
+
idVerificationProviderId as K,
|
|
9575
|
+
idNowModalChildEntityId as L,
|
|
9576
|
+
LandingLayout as M,
|
|
9577
|
+
check4DigitSsnFailed as N,
|
|
9578
|
+
individualOnfidoRules as O,
|
|
9579
|
+
isNextStepDisabled as P,
|
|
9580
|
+
shouldShowIdNowModal as Q,
|
|
9581
|
+
IndividualOnfido as R,
|
|
9585
9582
|
StateCodesUS as S,
|
|
9586
9583
|
TAX_INFORMATION_FIELD as T,
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9584
|
+
isCompatibleJapanVersion as U,
|
|
9585
|
+
JP_ADDRESS_REQUIRED_FIELDS as V,
|
|
9586
|
+
GuidanceQuestionValues as W,
|
|
9587
|
+
DECISION_MAKER_TYPES_WITH_JOBTITLE as X,
|
|
9588
|
+
getTrustedEntityAssociations as Y,
|
|
9589
|
+
ContactDetails as Z,
|
|
9590
|
+
MemoizedDocumentUpload as _,
|
|
9594
9591
|
getCompanyRegistrationNumberOptions as a,
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9592
|
+
COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as a0,
|
|
9593
|
+
countryToTaxInfoTypeMap as a1,
|
|
9594
|
+
rules as a2,
|
|
9595
|
+
MultiSelectList as a3,
|
|
9596
|
+
makeSelectItemForRole as a4,
|
|
9597
|
+
Name as a5,
|
|
9598
|
+
nameFields as a6,
|
|
9599
|
+
exemptedFromTaxDefaultFieldMetadata as a7,
|
|
9600
|
+
exemptedFromTaxDefaultFieldConfig as a8,
|
|
9604
9601
|
useCapabilities as a9,
|
|
9605
9602
|
InputGroup as aa,
|
|
9606
9603
|
TileGroup as ab,
|
|
@@ -9610,25 +9607,25 @@ export {
|
|
|
9610
9607
|
businessRegistrationNumberPatterns as c,
|
|
9611
9608
|
getVatNumberOptions as d,
|
|
9612
9609
|
requestingIssuing as e,
|
|
9613
|
-
|
|
9610
|
+
taxInformationDefaultFieldConfig as f,
|
|
9614
9611
|
getTrustedFieldsProvider as g,
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9612
|
+
TaxInformationField as h,
|
|
9613
|
+
toFullWidth as i,
|
|
9614
|
+
COUNTRY_OF_GOVERNING_LAW_POSSIBLE as j,
|
|
9615
|
+
handleKeys as k,
|
|
9616
|
+
COUNTRIES_USING_COMPANY_SEARCH as l,
|
|
9617
|
+
useSetting as m,
|
|
9618
|
+
individualOnfidoForms as n,
|
|
9619
|
+
individualForms as o,
|
|
9620
|
+
isBafinSignatoryFlow as p,
|
|
9621
|
+
showIdNowModal as q,
|
|
9625
9622
|
requestingBanking as r,
|
|
9626
9623
|
stateFormatGuidanceText as s,
|
|
9627
9624
|
taxInformationDefaultFieldMetadata as t,
|
|
9628
9625
|
useAllowedCountries as u,
|
|
9629
9626
|
vatNumberOptions as v,
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
defaultFieldMetadata as z
|
|
9627
|
+
getSSNType as w,
|
|
9628
|
+
defaultFieldMetadata as x,
|
|
9629
|
+
defaultFieldConfig as y,
|
|
9630
|
+
defaultFieldMetadata$1 as z
|
|
9634
9631
|
};
|