@adyen/kyc-components 3.81.0-beta.3 → 3.81.0-beta.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-L-VLoVVm.js → AcceptTermsOfServiceComponent-h4RGwmfr.js} +5 -5
- package/dist/{AccountSetupRejected-KSsUqgS8.js → AccountSetupRejected-BtCC1DfU.js} +2 -2
- package/dist/{Avatar-DQWZKDyK.js → Avatar-D11TdIAz.js} +1 -1
- package/dist/{BusinessDetailsDropin-JEi7zNN5.js → BusinessDetailsDropin-DMkfZAhc.js} +7 -7
- package/dist/{BusinessFinancingComponent-B9nSH5XY.js → BusinessFinancingComponent-Bx3WRW6i.js} +3 -3
- package/dist/{BusinessFinancingDropin-BOSvl5M9.js → BusinessFinancingDropin-CuF4P-yp.js} +9 -9
- package/dist/{BusinessFinancingPage-L4LAbHPk.js → BusinessFinancingPage-BOVZmdFJ.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-w9pMkhBt.js → BusinessTypeSelectionPage-yupMVCzr.js} +4 -4
- package/dist/{CreateIndividualComponent-cHJthLBL.js → CreateIndividualComponent-0ye57Eu5.js} +3 -3
- package/dist/{CreateTransferInstrumentComponent-D0Sr1dH0.js → CreateTransferInstrumentComponent-Cw5cNYC5.js} +2 -2
- package/dist/{CustomerSupport-2kK-1XQx.js → CustomerSupport-BsZDxwv2.js} +5 -5
- package/dist/{DebugModal-BuQGVv0a.js → DebugModal-CgC7d1mP.js} +4 -4
- package/dist/{DecisionMakerDetailsPage-gDtpwLBj.js → DecisionMakerDetailsPage-CsxCXdBv.js} +17 -4
- package/dist/{DecisionMakers-BafJ6zYr.js → DecisionMakers-BOPprU_c.js} +10 -15
- package/dist/{EmbeddedStatus-B6Wa-fZ9.js → EmbeddedStatus-THcf_5VL.js} +3 -3
- package/dist/{EndStateLayout-DyDcIT5g.js → EndStateLayout-D4XztFnd.js} +1 -1
- package/dist/{FormFlow-BhhW8oFl.js → FormFlow-OxZkj1IL.js} +2 -2
- package/dist/{IndividualOnfidoDropin-BiQpcIMz.js → IndividualOnfidoDropin-BGSe9ayX.js} +66 -34
- package/dist/{Introduction-DZTFiW_i.js → Introduction-Dvmyo9sy.js} +3 -3
- package/dist/{LegalRepresentativeDetailsPage-B0YGVX_S.js → LegalRepresentativeDetailsPage-CwZCAmRs.js} +3 -3
- package/dist/{ManageIndividualComponent-2V-bNklu.js → ManageIndividualComponent-C_S_ydis.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-B4caG9o0.js → ManageTermsOfServiceComponent-BkLuO8oE.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-CjAmb5m0.js → ManageTransferInstrumentComponent-C4WfYBDB.js} +4 -4
- package/dist/{OnboardingDropinComponent-D4ivntVV.js → OnboardingDropinComponent-BUmJ_JVk.js} +50 -77
- package/dist/{Review-Bxitfh4C.js → Review-C5MFIBVb.js} +3 -3
- package/dist/{RootBusinessDetailsPage-I0HaXPwp.js → RootBusinessDetailsPage-C8ZJ4dmm.js} +7 -7
- package/dist/{RootIndividualDetailsPage-DKtpTUBC.js → RootIndividualDetailsPage-CU0x1BUz.js} +3 -3
- package/dist/{SignPCIComponent-DORbX1yL.js → SignPCIComponent-CPpNIBhs.js} +4 -4
- package/dist/{SingpassSelection-CFOZAV82.js → SingpassSelection-ByupuMKL.js} +18 -10
- package/dist/{SoleProprietorshipPage-BLYo2RKv.js → SoleProprietorshipPage-CNKpPAjZ.js} +3 -3
- package/dist/{SourceOfFundsPage-B9gXRtnw.js → SourceOfFundsPage-CraH1Im8.js} +14 -19
- package/dist/{StoreProvider-DTssl0d2.js → StoreProvider-BK6S-tUB.js} +448 -490
- package/dist/{TaskItemStatus-CYVSat-d.js → TaskItemStatus-BXv5vZOC.js} +2 -2
- package/dist/{TaskStatusIndicator-qrNB-v1Q.js → TaskStatusIndicator-BqoOgtJU.js} +3 -3
- package/dist/{TaxReportingDropin-DAFeDIp1.js → TaxReportingDropin-BYn-rCQo.js} +11 -16
- package/dist/{TileGroup-CGz7T1xr.js → TileGroup-ByNEsfqA.js} +2 -2
- package/dist/{TrustDetailsPage-CWwChw_h.js → TrustDetailsPage-BXHPOkFC.js} +5 -5
- package/dist/{TrustMemberCompanyPage-CfHrCwI1.js → TrustMemberCompanyPage-D3JUt2oR.js} +4 -4
- package/dist/{TrustMemberIndividualPage-f6pTxZ-b.js → TrustMemberIndividualPage-BKwm2PD-.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-CtnNK_uz.js → UnincorporatedPartnershipIndividualPage-DJAy2tiA.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-d_rcXvWb.js → UnincorporatedPartnershipMemberCompanyPage-C_4lVNk5.js} +3 -3
- package/dist/{VerificationErrorAlert-Dq-OfCNA.js → VerificationErrorAlert-CN-y2ZkT.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-D3IlyHyE.js → ViewVerificationStatusComponent-DGo_V34u.js} +3 -3
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +14 -14
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-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/{isIdNowModalOpen-BKv0f-1W.js → bafinUtils-WzgnLHUH.js} +51 -4
- package/dist/{digital-wallet-with-local-currencies-POeLD54e.js → digital-wallet-D_IpxnkN.js} +3 -3
- package/dist/en-US-TrwIHFh-.js +31 -0
- package/dist/{getFieldsWithExistingData-DGwbwOca.js → getFieldsWithExistingData-CXFYcjIh.js} +2 -2
- package/dist/{hasDataChanged-dfjRLGHb.js → hasDataChanged-Bh_UrmLp.js} +2 -2
- package/dist/{localizeDateString-DzLefmuA.js → localizeDateString-CWh-ttUS.js} +1 -1
- package/dist/{mapFinancialReportsToFinancialInformation-BSdQYsX3.js → mapFinancialReportsToFinancialInformation-CQMM1PgM.js} +2 -2
- package/dist/{resolveEnvironment-CSF9nwV8.js → resolveEnvironment-DtkNmlSt.js} +3 -3
- package/dist/{rules-ui4hKN9a.js → rules-ByuGwTNE.js} +2 -2
- package/dist/types/api/configurations/useScenarios.d.ts +2 -1
- package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +3 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +1 -0
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +35 -0
- package/dist/types/components/Shared/SingpassBanner/ProviderButton/ProviderButton.d.ts +7 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/ui/atoms/Button/Button.types.d.ts +1 -2
- package/dist/types/components/ui/atoms/Image/Image.d.ts +18 -0
- package/dist/types/components/ui/atoms/Remove/Remove.d.ts +1 -1
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +0 -64
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -2
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +2 -3
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/{useMultiForm-DYCu9P6k.js → useMultiForm-CiCxhoIc.js} +2 -2
- package/dist/{useOnboardingStatus-1I5prrsD.js → useOnboardingStatus-DHu80m4m.js} +1 -1
- package/dist/{useTermsOfServiceStatus-D1QgKXao.js → useTermsOfServiceStatus-ZzLl2fnP.js} +1 -1
- package/dist/{useUpdateLegalEntity-BgpKv8dc.js → useUpdateLegalEntity-CKaq6DPT.js} +2 -2
- package/dist/{utils-DtAyWZi1.js → utils-B2fOaECU.js} +4 -4
- package/dist/{validate-CTOcDHTS.js → validate-CaKWtDK0.js} +2 -2
- package/dist/{validate-D3pd2yc2.js → validate-DWYqp_FY.js} +2 -2
- package/package.json +1 -3
- package/dist/adyen-a-filled-czhSM_bc.js +0 -14
- package/dist/arrow-left-Dtc2gya1.js +0 -14
- package/dist/document-plus-NwgAdjyB.js +0 -17
- package/dist/hide-CigAXbWC.js +0 -18
- package/dist/idea-DwJIwJHR.js +0 -18
- package/dist/instant-verification-method-BGfknV9x.js +0 -28
- package/dist/plus-small-Dj1WRyFM.js +0 -14
- package/dist/types/components/ui/atoms/ProviderButton/ProviderButton.d.ts +0 -3
- package/dist/types/components/ui/atoms/ProviderButton/ProviderButton.types.d.ts +0 -5
|
@@ -2,26 +2,27 @@
|
|
|
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] = "e511aa09-a795-4aaa-8278-a1dbac55453d", e._sentryDebugIdIdentifier = "sentry-dbid-e511aa09-a795-4aaa-8278-a1dbac55453d");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo, useState, useEffect, useCallback, useRef } from "preact/hooks";
|
|
12
|
-
import { a as useApiContext,
|
|
13
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-
|
|
15
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-
|
|
16
|
-
import { u as useSingpassMyInfoLogin,
|
|
17
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
18
|
-
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-
|
|
19
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
20
|
-
import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-
|
|
12
|
+
import { a as useApiContext, bo as useMutation, t as httpPost, bZ as matchesRegex, b_ as trimValWithOneSpace, b$ as NO_ALPHABET_REGEX, c0 as EMOJI_REGEX, c1 as hasRepeatedCharacters, c2 as isInvalidName, c3 as INDIVIDUAL_VALID_CHAR_REGEX, c4 as getFormattingRegEx, c5 as SPECIAL_CHARS, c6 as standardKatakanaValidator, c7 as standardKanjiValidator, aw as resolveFieldMetadata, at as CountryCodes, c8 as getSSNType, au as isEmpty, c9 as defaultFieldMetadata, ca as defaultFieldConfig, cb as defaultFieldMetadata$1, cc as fieldConfig, $ as TaskTypes, cd as taxInformationDefaultFieldMetadata, O as LegalEntityTypes, ce as taxInformationDefaultFieldConfig, cf as getAgeToday, cg as euCountries, ch as getIdDocument, ci as getDocument, cj as mapExistingFile, ck as getPageName, cl as getLocalizedIdDocumentTypeOptions, cm as getPage, cn as createDocumentRequest, bC as formatObject, co as individualApiKeyMapping, cp as isEmpty$1, b8 as individualComponentsKeyMapping, bB as reverseMapping, cq as getNomineeFromAssociation, cr as drop, a0 as createLogger, X as useAccountHolder, u as useI18nContext, a3 as useAnalyticsContext, a9 as useToastContext, aa as useExperimentsContext, v as useSettingsContext, cs as documentApiUtils, ct as useProviderStatus, g as getLegalEntityCountry, bR as getAssociatedLeAnalyticsPayload, cu as addressValidators, cv as getAsyncIdNumberValidationRule, cw as getAsyncPhoneValidationRules, cx as addressFormatters, cy as useScenarios, cz as setHasMotionCaptureScenario, cA as useScenarioConfiguration, cB as getPropsFromConfigurations, cC as individualForms, cD as showIndividualMotionCapture, bS as getRequiredForms, bT as addValidityToForms, cE as getAllowedDecisionMakerRoles, bd as datasetUtilities, bU as useFormComposer, bV as trackNavigation, cF as Individual, cG as composePerScenarioFormConfigurations, cH as omitObscuredFieldsIfUnchanged, cI as filterOutUnwantedAssociationsIfRootLE, bW as isValidationError, bX as processValidationErrors, bY as isMaintenanceModeError, bj as cloneObject, cJ as mapAddressLabels, cK as individualDocumentForms, cL as individualDocumentMapping, cM as individualObscuredFields, cN as mergeAttachments, cO as getFileExtention, ap as getOwnEntityAssociations, cP as hasNomineesChanged, cQ as attachNomineeToRole, cR as idVerificationProviderId, cS as doArraysMatch, N as Typography, G as Button, aE as Field, r as useQuery, B as skipToken, x as httpGet, c as useTranslation, bq as useQueryClient, cT as IFrameWidget, bf as Modal, K as Alert, cU as getIndividualLegalEntityName, ao as Image, L as Loader, bh as Confirm, ba as DecisionMakerTypes, cV as createFormRules, cW as getAvailableDecisionMakerRoleTypes, cX as allowedCountriesForNominee, bN as getAddressSchemaForCountry, bO as COUNTRIES_WITH_STATES_DATASET, bb as Scenarios, cY as isLowRiskCountry, bt as Select, cZ as isTruthyValidator, c_ as licenseCardNumberDefaultMetadata, c$ as licenseCardNumberDefaultConfig, av as mergeFieldMetadataIntoProps, aD as createFormUtils, bM as useFormContext, aA as getFieldProps, d0 as idNumberFields, d1 as IdentityNumber, d2 as additionallIdNumberOptions, d3 as MaskedInput, bL as InputDate, d4 as formatDateObj, d5 as DriversLicense, d6 as addressFields, b as useAllowedCountries, w as SettingNames, d7 as isDecisionMakerTask, F as FormHeader, aC as ErrorPanel, aK as CountryField, bP as Address, bQ as getAddressSchemaLabelsByCountry, bF as Link, d8 as getAgeRangeForLegalRepresentative, d9 as IndividualIdNumberTypeSelector, da as TaxInformationField, bG as InputText, db as PatriotActDisclosure, dc as isLegalRepresentativeNeeded, aB as nameFields, dd as decisionMakerRoleFields, de as nomineeFields, df as contactDetailFields, a_ as ContextGuidance, b5 as TrustedFieldsProviders, dg as DecisionMakerRole, dh as NomineeDecisionMakerRole, di as LocalizedNameFields, dj as ContactDetails, dk as keysOf, b4 as objectsDeepEqual, dl as RadioWithLabel, dm as listToRecord, dn as pick, dp as IdVerification, bz as Spacer, a2 as IconButton, e as useDataset, f as datasetIdentifier, dq as IdDocumentManualUpload, M as translateStringOrObject, aY as Trans, dr as idDocumentUploadFields, ds as useFormRouterContext, dt as getFormProps, du as useCapabilities, dv as hasMotionCaptureScenario, dw as setShowIndividualMotionCapture, dx as shouldShowMotionCapture, dy as MemoizedProofOfRelationship, dz as MemoizedDocumentUpload, dA as MemoizedProofOfResidencyUpload, dB as individualOnfidoApiKeyMapping, dC as individualOnfidoBaseMapping, dD as individualOnfidoDocumentMapping, dE as individualOnfidoObscuredFields } from "./StoreProvider-BK6S-tUB.js";
|
|
13
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-CKaq6DPT.js";
|
|
14
|
+
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-CaKWtDK0.js";
|
|
15
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-OxZkj1IL.js";
|
|
16
|
+
import { u as useSingpassMyInfoLogin, a as idNowModalChildEntityId, L as LandingLayout, s as showIdNowModal, i as isBafinSignatoryFlow, b as shouldShowIdNowModal } from "./bafinUtils-WzgnLHUH.js";
|
|
17
|
+
import { u as useMultiForm } from "./useMultiForm-CiCxhoIc.js";
|
|
18
|
+
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-CXFYcjIh.js";
|
|
19
|
+
import { l as localizeDateString } from "./localizeDateString-CWh-ttUS.js";
|
|
20
|
+
import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-ByuGwTNE.js";
|
|
21
21
|
import { m as mapSchemaFieldsToApiScriptLocalization, a as mapApiScriptLocalizationToSchemaFields } from "./mapScriptLocalization-H2Re3k5X.js";
|
|
22
22
|
import { signal, computed } from "@preact/signals";
|
|
23
23
|
import { Show } from "@preact/signals/utils";
|
|
24
|
-
import { T as TileGroup } from "./TileGroup-
|
|
24
|
+
import { T as TileGroup } from "./TileGroup-ByNEsfqA.js";
|
|
25
|
+
import { lazy } from "preact/compat";
|
|
25
26
|
const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
|
|
26
27
|
return await httpPost(
|
|
27
28
|
{
|
|
@@ -1430,6 +1431,13 @@ const styles$4 = {
|
|
|
1430
1431
|
idnowVerificationHeaderIframe,
|
|
1431
1432
|
idnowVerificationHeaderImage
|
|
1432
1433
|
};
|
|
1434
|
+
const passportFrontGreenImage$1 = lazy(
|
|
1435
|
+
() => import("./passport-front-green-BL4HmtsB.js")
|
|
1436
|
+
);
|
|
1437
|
+
const isIdNowSuccessful = (status) => {
|
|
1438
|
+
const providerStatus = status?.providerStatus;
|
|
1439
|
+
return providerStatus === "SUCCESS" || providerStatus === "SUCCESS_DATA_CHANGED" || providerStatus === "REVIEW_PENDING";
|
|
1440
|
+
};
|
|
1433
1441
|
const IdNowVerificationModal = ({ handleFinish }) => {
|
|
1434
1442
|
const { t } = useTranslation(["individual", "common"]);
|
|
1435
1443
|
const [isConfirmPresented, setIsConfirmPresented] = useState(false);
|
|
@@ -1447,7 +1455,8 @@ const IdNowVerificationModal = ({ handleFinish }) => {
|
|
|
1447
1455
|
} = useIdNowIdentificationStatus(idNowModalChildEntityId.value?.id ?? skipToken, {
|
|
1448
1456
|
enabled: !!idNowModalChildEntityId.value?.id,
|
|
1449
1457
|
refetchOnMount: "always",
|
|
1450
|
-
refetchInterval:
|
|
1458
|
+
refetchInterval: 1e4,
|
|
1459
|
+
// poll every 10 seconds
|
|
1451
1460
|
retry: (failureCount, error) => {
|
|
1452
1461
|
if ("status" in error && error.status === 404) return false;
|
|
1453
1462
|
return failureCount < 3;
|
|
@@ -1483,12 +1492,16 @@ const IdNowVerificationModal = ({ handleFinish }) => {
|
|
|
1483
1492
|
handleFinish?.();
|
|
1484
1493
|
};
|
|
1485
1494
|
if (idNowStatus?.status === "finished") {
|
|
1486
|
-
if (idNowStatus
|
|
1495
|
+
if (isIdNowSuccessful(idNowStatus)) {
|
|
1487
1496
|
showToast({
|
|
1488
1497
|
label: t(($) => $["successfullyUpdatedDetails"], { ns: "common" }),
|
|
1489
1498
|
variant: "success"
|
|
1490
1499
|
});
|
|
1491
1500
|
handleConfirmDismiss();
|
|
1501
|
+
} else {
|
|
1502
|
+
if (page === 2) {
|
|
1503
|
+
handleConfirmDismiss();
|
|
1504
|
+
}
|
|
1492
1505
|
}
|
|
1493
1506
|
}
|
|
1494
1507
|
if (!isLoading && idNowStartError) {
|
|
@@ -1535,7 +1548,7 @@ const IdNowVerificationModal = ({ handleFinish }) => {
|
|
|
1535
1548
|
!isStatusLoading && /* @__PURE__ */ jsxs(
|
|
1536
1549
|
Modal,
|
|
1537
1550
|
{
|
|
1538
|
-
size: "medium",
|
|
1551
|
+
size: page === 2 ? "large" : "medium",
|
|
1539
1552
|
showCloseButton: !isLoading && !isStatusLoading,
|
|
1540
1553
|
onClose: handleDismiss,
|
|
1541
1554
|
ariaLabel: t(($) => $["identityVerification"], { ns: "common" }),
|
|
@@ -1544,11 +1557,10 @@ const IdNowVerificationModal = ({ handleFinish }) => {
|
|
|
1544
1557
|
LandingLayout,
|
|
1545
1558
|
{
|
|
1546
1559
|
media: /* @__PURE__ */ jsx(
|
|
1547
|
-
|
|
1560
|
+
Image,
|
|
1548
1561
|
{
|
|
1549
|
-
type: "image",
|
|
1550
1562
|
className: styles$4.idnowVerificationHeaderImage,
|
|
1551
|
-
|
|
1563
|
+
lazyLoadedImage: passportFrontGreenImage$1
|
|
1552
1564
|
}
|
|
1553
1565
|
),
|
|
1554
1566
|
title: t(($) => $["identityVerification"], { ns: "common" }),
|
|
@@ -1577,7 +1589,7 @@ const IdNowVerificationModal = ({ handleFinish }) => {
|
|
|
1577
1589
|
setPage(2);
|
|
1578
1590
|
await refetchIdNowStartIdentification();
|
|
1579
1591
|
},
|
|
1580
|
-
disabled: isLoading || isStatusLoading || idNowStatus?.status === "finished",
|
|
1592
|
+
disabled: isLoading || isStatusLoading || idNowStatus?.status === "finished" && isIdNowSuccessful(idNowStatus),
|
|
1581
1593
|
fullWidth: true,
|
|
1582
1594
|
children: idNowStatus?.status === "pending" ? t(($) => $["continueVerification"], { ns: "common" }) : t(($) => $["startVerification"], { ns: "common" })
|
|
1583
1595
|
}
|
|
@@ -1585,7 +1597,7 @@ const IdNowVerificationModal = ({ handleFinish }) => {
|
|
|
1585
1597
|
/* @__PURE__ */ jsx(
|
|
1586
1598
|
Button,
|
|
1587
1599
|
{
|
|
1588
|
-
disabled: isLoading || isStatusLoading
|
|
1600
|
+
disabled: isLoading || isStatusLoading,
|
|
1589
1601
|
variant: "tertiary",
|
|
1590
1602
|
onClick: handleConfirmDismiss,
|
|
1591
1603
|
fullWidth: true,
|
|
@@ -1609,7 +1621,6 @@ const IdNowVerificationModal = ({ handleFinish }) => {
|
|
|
1609
1621
|
Confirm,
|
|
1610
1622
|
{
|
|
1611
1623
|
confirmText: t(($) => $["leave"], { ns: "common" }),
|
|
1612
|
-
description: t(($) => $["unsavedChangesDescription"], { ns: "common" }),
|
|
1613
1624
|
onCancel: handleCancelDismiss,
|
|
1614
1625
|
onConfirm: handleConfirmDismiss,
|
|
1615
1626
|
title: t(($) => $["unsavedChanges"], { ns: "common" })
|
|
@@ -1685,7 +1696,7 @@ const DECISION_MAKER_TYPES_WITH_JOBTITLE = [
|
|
|
1685
1696
|
DecisionMakerTypes.CONTROLLING_PERSON
|
|
1686
1697
|
];
|
|
1687
1698
|
const ID_MISSING_DATA_ERROR_CODE = "2_8071";
|
|
1688
|
-
const
|
|
1699
|
+
const REMEDIATION_CODES_UPLOAD_ID = ["1_301", "1_302", "1_303"];
|
|
1689
1700
|
const individualOnfidoRules = ({
|
|
1690
1701
|
matchingScenario,
|
|
1691
1702
|
data,
|
|
@@ -1756,12 +1767,12 @@ const individualOnfidoRules = ({
|
|
|
1756
1767
|
return idDocumentOption?.hasBackPage ? REQUIRED : void 0;
|
|
1757
1768
|
},
|
|
1758
1769
|
isProofOfResidencyRequired: () => {
|
|
1770
|
+
if (isBafinSignatoryFlow({ taskType, data, scenarios: matchingScenario })) {
|
|
1771
|
+
return void 0;
|
|
1772
|
+
}
|
|
1759
1773
|
if (data.proofOfResidency?.proofOfResidency?.length) {
|
|
1760
1774
|
return REQUIRED;
|
|
1761
1775
|
}
|
|
1762
|
-
if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
|
|
1763
|
-
return void 0;
|
|
1764
|
-
}
|
|
1765
1776
|
const isInstantFlow = data?.idVerificationMethod?.idVerificationMethod === "instantVerification";
|
|
1766
1777
|
if (!isInstantFlow) {
|
|
1767
1778
|
return void 0;
|
|
@@ -1778,12 +1789,15 @@ const individualOnfidoRules = ({
|
|
|
1778
1789
|
}
|
|
1779
1790
|
},
|
|
1780
1791
|
isProofOfNationalIdRequired: () => {
|
|
1792
|
+
if (isBafinSignatoryFlow({ taskType, data, scenarios: matchingScenario })) {
|
|
1793
|
+
return void 0;
|
|
1794
|
+
}
|
|
1781
1795
|
if (data.proofOfNationalId?.proofOfNationalId?.length) {
|
|
1782
1796
|
return REQUIRED;
|
|
1783
1797
|
}
|
|
1784
1798
|
},
|
|
1785
1799
|
isIdVerificationMethodRequired: () => {
|
|
1786
|
-
if (taskType
|
|
1800
|
+
if (isBafinSignatoryFlow({ taskType, data, scenarios: matchingScenario })) {
|
|
1787
1801
|
return void 0;
|
|
1788
1802
|
}
|
|
1789
1803
|
return REQUIRED;
|
|
@@ -1807,12 +1821,12 @@ const individualOnfidoRules = ({
|
|
|
1807
1821
|
}
|
|
1808
1822
|
},
|
|
1809
1823
|
isPlaceOfBirthRequired: () => {
|
|
1810
|
-
if (taskType
|
|
1824
|
+
if (isBafinSignatoryFlow({ taskType, data, scenarios: matchingScenario })) {
|
|
1811
1825
|
return REQUIRED;
|
|
1812
1826
|
}
|
|
1813
1827
|
},
|
|
1814
1828
|
nationalityIfRequiredForRole: () => {
|
|
1815
|
-
if (taskType
|
|
1829
|
+
if (isBafinSignatoryFlow({ taskType, data, scenarios: matchingScenario })) {
|
|
1816
1830
|
return REQUIRED;
|
|
1817
1831
|
}
|
|
1818
1832
|
const enableNationalitySGHK = isExperimentEnabled("EnableNationalitySGHK");
|
|
@@ -1878,24 +1892,38 @@ const individualOnfidoRules = ({
|
|
|
1878
1892
|
}
|
|
1879
1893
|
},
|
|
1880
1894
|
isUsingInstantVerificationOrHasExistingDocument: () => {
|
|
1895
|
+
if (isBafinSignatoryFlow({ taskType, data, scenarios: matchingScenario })) {
|
|
1896
|
+
return void 0;
|
|
1897
|
+
}
|
|
1881
1898
|
const isUsingInstantVerification = data?.idVerificationMethod?.idVerificationMethod === "instantVerification";
|
|
1882
1899
|
const existingDocument = data?.idVerificationMethod?.idDocument;
|
|
1883
1900
|
return isUsingInstantVerification || existingDocument ? REQUIRED : void 0;
|
|
1884
1901
|
},
|
|
1885
1902
|
isManualIdFlow: () => {
|
|
1903
|
+
if (isBafinSignatoryFlow({ taskType, data, scenarios: matchingScenario })) {
|
|
1904
|
+
return void 0;
|
|
1905
|
+
}
|
|
1886
1906
|
const isManualFlow = data?.idVerificationMethod?.idVerificationMethod === "manualVerification";
|
|
1887
1907
|
return isManualFlow ? "REQUIRED" : void 0;
|
|
1888
1908
|
},
|
|
1889
1909
|
isManualIdFlowAndNotProvidingIdNumber: () => {
|
|
1910
|
+
if (isBafinSignatoryFlow({ taskType, data, scenarios: matchingScenario })) {
|
|
1911
|
+
return void 0;
|
|
1912
|
+
}
|
|
1890
1913
|
const hasMissingId = problems?.missingData?.some(
|
|
1891
1914
|
(error) => error.code === ID_MISSING_DATA_ERROR_CODE
|
|
1892
1915
|
);
|
|
1893
1916
|
const isManualFlow = data?.idVerificationMethod?.idVerificationMethod === "manualVerification";
|
|
1894
1917
|
const idNumberExempt = data?.additionalPersonalDetails?.idNumberExempt;
|
|
1895
|
-
const hasIdRemediationAction = problems?.remediationActions
|
|
1918
|
+
const hasIdRemediationAction = Object.keys(problems?.remediationActions ?? {}).some(
|
|
1919
|
+
(code) => REMEDIATION_CODES_UPLOAD_ID.includes(code)
|
|
1920
|
+
);
|
|
1896
1921
|
return isManualFlow && (idNumberExempt || hasMissingId || hasIdRemediationAction) ? "REQUIRED" : void 0;
|
|
1897
1922
|
},
|
|
1898
1923
|
isManualIdFlowAndHasMissingData: () => {
|
|
1924
|
+
if (isBafinSignatoryFlow({ taskType, data, scenarios: matchingScenario })) {
|
|
1925
|
+
return void 0;
|
|
1926
|
+
}
|
|
1899
1927
|
const hasMissingId = problems?.missingData?.some(
|
|
1900
1928
|
(error) => error.code === ID_MISSING_DATA_ERROR_CODE
|
|
1901
1929
|
);
|
|
@@ -3115,6 +3143,9 @@ const validateExtractionResult = (extractionResult) => {
|
|
|
3115
3143
|
return null;
|
|
3116
3144
|
};
|
|
3117
3145
|
const logger$2 = createLogger();
|
|
3146
|
+
const passportFrontGreenImage = lazy(
|
|
3147
|
+
() => import("./passport-front-green-BL4HmtsB.js")
|
|
3148
|
+
);
|
|
3118
3149
|
const idVerificationMethodFields = [
|
|
3119
3150
|
"idVerificationMethod",
|
|
3120
3151
|
"idDocument"
|
|
@@ -3332,12 +3363,10 @@ function IdVerificationMethod(props) {
|
|
|
3332
3363
|
LandingLayout,
|
|
3333
3364
|
{
|
|
3334
3365
|
media: /* @__PURE__ */ jsx(
|
|
3335
|
-
|
|
3366
|
+
Image,
|
|
3336
3367
|
{
|
|
3337
|
-
type: "image",
|
|
3338
3368
|
className: styles$1.verificationHeaderImage,
|
|
3339
|
-
|
|
3340
|
-
title: t(($) => $["instantIDVerificationDescription"], { ns: "common" })
|
|
3369
|
+
lazyLoadedImage: passportFrontGreenImage
|
|
3341
3370
|
}
|
|
3342
3371
|
),
|
|
3343
3372
|
title: t(($) => $["identityVerification"], { ns: "common" }),
|
|
@@ -4847,7 +4876,10 @@ function IndividualOnfidoDropin({
|
|
|
4847
4876
|
});
|
|
4848
4877
|
setAccountHolder(accountHolder);
|
|
4849
4878
|
if (dataSubmitted.idVerificationMethod && dataSubmitted.idVerificationMethod?.idVerificationMethod !== "existingDocument" || hasVerificationErrors) {
|
|
4850
|
-
|
|
4879
|
+
const isBafinSignatory = dataSubmitted?.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN);
|
|
4880
|
+
if (!isBafinSignatory) {
|
|
4881
|
+
await submitDocuments({ legalEntity: submittedLegalEntity, dataSubmitted });
|
|
4882
|
+
}
|
|
4851
4883
|
}
|
|
4852
4884
|
if (parentLegalEntity) {
|
|
4853
4885
|
await attachAssociationToParentLegalEntity({
|
|
@@ -5047,7 +5079,7 @@ function IndividualOnfidoDropin({
|
|
|
5047
5079
|
[associatedLeTrackingParams]
|
|
5048
5080
|
);
|
|
5049
5081
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5050
|
-
/* @__PURE__ */ jsx(Show, { when:
|
|
5082
|
+
/* @__PURE__ */ jsx(Show, { when: shouldShowIdNowModal, children: /* @__PURE__ */ jsx(IdNowVerificationModal, { handleFinish: handleHomeClick }) }),
|
|
5051
5083
|
/* @__PURE__ */ jsx(FormContextProvider, { form, children: /* @__PURE__ */ jsx(
|
|
5052
5084
|
FormFlow,
|
|
5053
5085
|
{
|
|
@@ -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] = "da5b7d59-a500-4fc9-8fab-918273746781", e._sentryDebugIdIdentifier = "sentry-dbid-da5b7d59-a500-4fc9-8fab-918273746781");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
|
|
12
|
-
import { $ as TaskTypes, O as LegalEntityTypes, c as useTranslation, d as useLegalEntity, R as ROOT_LE, L as Loader, a3 as useAnalyticsContext,
|
|
12
|
+
import { $ as TaskTypes, O as LegalEntityTypes, c as useTranslation, d as useLegalEntity, R as ROOT_LE, L as Loader, a3 as useAnalyticsContext, by as StepProgressIndicator, G as Button } from "./StoreProvider-BK6S-tUB.js";
|
|
13
13
|
import { useMemo } from "preact/compat";
|
|
14
|
-
import { b as useCanSeeIntroduction, c as useLegalEntityType } from "./OnboardingDropinComponent-
|
|
14
|
+
import { b as useCanSeeIntroduction, c as useLegalEntityType } from "./OnboardingDropinComponent-BUmJ_JVk.js";
|
|
15
15
|
import { t as toCapitalized } from "./toCapitalized-Bq7laD0b.js";
|
|
16
16
|
import IntroductionStrings from "./en-US-Bq2Twy6x.js";
|
|
17
17
|
const IntroductionScreens = {
|
|
@@ -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] = "7937c5c3-41bc-481d-9fba-080f9a257764", e._sentryDebugIdIdentifier = "sentry-dbid-7937c5c3-41bc-481d-9fba-080f9a257764");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { d as useLegalEntity, B as skipToken, R as ROOT_LE, af as useCapabilityProblems, aa as useExperimentsContext, L as Loader, g as getLegalEntityCountry,
|
|
12
|
-
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-
|
|
11
|
+
import { d as useLegalEntity, B as skipToken, R as ROOT_LE, af as useCapabilityProblems, aa as useExperimentsContext, L as Loader, g as getLegalEntityCountry, b6 as getProblemsForEntity, Z as EntityTypes, b7 as isOnfidoAutofillFlowEnabled, a8 as noop, $ as TaskTypes } from "./StoreProvider-BK6S-tUB.js";
|
|
12
|
+
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-BGSe9ayX.js";
|
|
13
13
|
function LegalRepresentativeDetailsPage({
|
|
14
14
|
legalRepresentativeId,
|
|
15
15
|
asModal = false,
|
package/dist/{ManageIndividualComponent-2V-bNklu.js → ManageIndividualComponent-C_S_ydis.js}
RENAMED
|
@@ -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] = "60aa1809-e6d7-4470-a247-14fd268b0d44", e._sentryDebugIdIdentifier = "sentry-dbid-60aa1809-e6d7-4470-a247-14fd268b0d44");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useApiContext, d as useLegalEntity, R as ROOT_LE } from "./StoreProvider-
|
|
12
|
-
import { u as useOnboardingStatus } from "./useOnboardingStatus-
|
|
11
|
+
import { a as useApiContext, d as useLegalEntity, R as ROOT_LE } from "./StoreProvider-BK6S-tUB.js";
|
|
12
|
+
import { u as useOnboardingStatus } from "./useOnboardingStatus-DHu80m4m.js";
|
|
13
13
|
import { O as OnboardingStatuses } from "./view-verification-status-VFcBydkR.js";
|
|
14
|
-
import { E as EmbeddedStatus } from "./EmbeddedStatus-
|
|
14
|
+
import { E as EmbeddedStatus } from "./EmbeddedStatus-THcf_5VL.js";
|
|
15
15
|
function ManageIndividualComponent({
|
|
16
16
|
legalEntityId,
|
|
17
17
|
onClick
|
package/dist/{ManageTermsOfServiceComponent-B4caG9o0.js → ManageTermsOfServiceComponent-BkLuO8oE.js}
RENAMED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "651e31fc-5219-4b40-9374-0fd91262ee71", e._sentryDebugIdIdentifier = "sentry-dbid-651e31fc-5219-4b40-9374-0fd91262ee71");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useTermsOfServiceAcceptanceInfos, u as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-
|
|
12
|
-
import { a as useApiContext, u as useI18nContext } from "./StoreProvider-
|
|
13
|
-
import { E as EmbeddedStatus } from "./EmbeddedStatus-
|
|
11
|
+
import { a as useTermsOfServiceAcceptanceInfos, u as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-ZzLl2fnP.js";
|
|
12
|
+
import { a as useApiContext, u as useI18nContext } from "./StoreProvider-BK6S-tUB.js";
|
|
13
|
+
import { E as EmbeddedStatus } from "./EmbeddedStatus-THcf_5VL.js";
|
|
14
14
|
function ManageTermsOfServiceComponent({
|
|
15
15
|
legalEntityId,
|
|
16
16
|
onClick
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "05dd3344-7e75-42cd-987d-acf61c419449", e._sentryDebugIdIdentifier = "sentry-dbid-05dd3344-7e75-42cd-987d-acf61c419449");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-
|
|
12
|
-
import { a as useApiContext, r as useQuery, x as httpGet, u as useI18nContext,
|
|
13
|
-
import { s as statusToTag, E as EmbeddedStatus } from "./EmbeddedStatus-
|
|
11
|
+
import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-CN-y2ZkT.js";
|
|
12
|
+
import { a as useApiContext, r as useQuery, x as httpGet, u as useI18nContext, bd as datasetUtilities, be as getCapabilityProblems, G as Button, bf as Modal, L as Loader, a4 as Card, bg as StructuredList, bh as Confirm, bi as mapTransferInstrumentToPayoutAccount, bj as cloneObject, bk as currencyByCountry, bl as entriesOf, a1 as TaskStatuses, bm as useTransferInstrument, a0 as createLogger, a9 as useToastContext, e as useDataset, f as datasetIdentifier, K as Alert, N as Typography } from "./StoreProvider-BK6S-tUB.js";
|
|
13
|
+
import { s as statusToTag, E as EmbeddedStatus } from "./EmbeddedStatus-THcf_5VL.js";
|
|
14
14
|
import { useState } from "preact/hooks";
|
|
15
15
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
16
16
|
import { D as DetailViewLayout } from "./DetailViewLayout-Z9cuUp4X.js";
|