@adyen/kyc-components 3.77.6-beta.0 → 3.78.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-C6seE64R.js → AcceptTermsOfServiceComponent-RKbf65lV.js} +6 -8
- package/dist/{AccountSetupRejected-DgyZ-Wrr.js → AccountSetupRejected-DXW_VZoK.js} +2 -2
- package/dist/{Avatar-sF5sr-Ah.js → Avatar-C2YDV0gm.js} +1 -1
- package/dist/{BusinessDetailsDropin-Djw_yKWI.js → BusinessDetailsDropin-CVz8h-FV.js} +21 -7
- package/dist/{BusinessFinancingComponent-6z2UGYN4.js → BusinessFinancingComponent-DcTsjzjS.js} +2 -2
- package/dist/{BusinessFinancingDropin-OcI1tC2B.js → BusinessFinancingDropin-ClIw5oSr.js} +9 -87
- package/dist/{BusinessFinancingPage-MmCPXdlf.js → BusinessFinancingPage-Q5n06X48.js} +2 -2
- package/dist/{BusinessTypeSelectionPage-gvidVnkn.js → BusinessTypeSelectionPage-BjThWvMl.js} +4 -4
- package/dist/{CZ-BhoS6sd6.js → CZ-BiPeoA9G.js} +11 -1
- package/dist/{ContractViewer-CdwsJgno.js → ContractViewer-BOWWc34c.js} +268 -262
- package/dist/{CreateIndividualComponent-CiBZWR0k.js → CreateIndividualComponent-BwYt60WF.js} +3 -3
- package/dist/{CreateTransferInstrumentComponent-QbaOdrk1.js → CreateTransferInstrumentComponent-DFXfBr_b.js} +2 -2
- package/dist/{CustomerSupport-D7NtLkc9.js → CustomerSupport-BpTifUgz.js} +5 -5
- package/dist/{DebugModal-DimjqtnD.js → DebugModal-BzlmcbOw.js} +35 -23
- package/dist/{DecisionMakerDetailsPage-Cxon0ap-.js → DecisionMakerDetailsPage-Ca7H6XUl.js} +3 -3
- package/dist/{DecisionMakers-CazJidcN.js → DecisionMakers-OncrrnSI.js} +11 -15
- package/dist/{EmbeddedStatus-DkZhpamZ.js → EmbeddedStatus-Dt1svDQr.js} +2 -2
- package/dist/FormEndState-C7_g-krl.js +59 -0
- package/dist/{FormFlow-Dzkcrsl7.js → FormFlow-DsVBw4XS.js} +15 -15
- package/dist/{HU-v3vOxRm8.js → HU-D8vJYkDH.js} +10 -1
- package/dist/{IndividualOnfidoDropin-DGhKo4Ak.js → IndividualOnfidoDropin-B9Q-UmYL.js} +165 -101
- package/dist/{Introduction-CismDvpS.js → Introduction-DCNIl7P4.js} +28 -30
- package/dist/{LegalRepresentativeDetailsPage-4GpiWTOM.js → LegalRepresentativeDetailsPage-Z96DzAEO.js} +3 -3
- package/dist/{ManageIndividualComponent-iW8XRfnG.js → ManageIndividualComponent-122KEpPh.js} +3 -3
- package/dist/{ManagePCIComponent-CPPuaVP3.js → ManagePCIComponent-ICiU8bCT.js} +3 -3
- package/dist/{ManageTermsOfServiceComponent-Cs5fcfdR.js → ManageTermsOfServiceComponent-OhmFQls9.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-FTUbVv-7.js → ManageTransferInstrumentComponent-6utUDhjn.js} +4 -4
- package/dist/{OnboardingDropinComponent-DRO0ICTJ.js → OnboardingDropinComponent-qVS9VZiw.js} +46 -48
- package/dist/{ProviderButton-BU29A7-y.js → ProviderButton-BRuzMgOn.js} +2 -2
- package/dist/{Review-Gn3tX9xJ.js → Review-Br3-SpXg.js} +3 -3
- package/dist/{RootBusinessDetailsPage-BKVHHsuD.js → RootBusinessDetailsPage-C-i6NOsw.js} +3 -3
- package/dist/{RootIndividualDetailsPage-DFK69opn.js → RootIndividualDetailsPage-BWdkR4yy.js} +3 -3
- package/dist/{SignPCIComponent-D6I4CoNJ.js → SignPCIComponent-CLAAfaEH.js} +5 -6
- package/dist/{SingpassSelection-vOscoZ-R.js → SingpassSelection-BNdH89aH.js} +2 -2
- package/dist/{SoleProprietorshipPage-eaQ1DgWY.js → SoleProprietorshipPage-l2i80vf4.js} +3 -3
- package/dist/{SourceOfFunds.module-CkHrokk6.js → SourceOfFunds.module-D2gr_8zU.js} +1 -1
- package/dist/{SourceOfFundsPage-CJ7huEtv.js → SourceOfFundsPage-Cq3w0rOb.js} +9 -9
- package/dist/{StoreProvider-BofoPXrW.js → StoreProvider-BexFINS8.js} +2478 -1648
- package/dist/{TaskItemStatus-CzBKaTNX.js → TaskItemStatus-CJT9Tf9h.js} +2 -2
- package/dist/{TaxReportingDropin-Cvre3O7p.js → TaxReportingDropin-BPVORMXi.js} +30 -10
- package/dist/{TileGroup-Q4qoaIGQ.js → TileGroup-Bvs2at4r.js} +2 -2
- package/dist/{TrustDetailsPage-B4f2S1UI.js → TrustDetailsPage-CEsAp494.js} +5 -5
- package/dist/{TrustMemberCompanyPage--u1Ps-QC.js → TrustMemberCompanyPage-CDwal1Av.js} +4 -4
- package/dist/{TrustMemberIndividualPage-DTzO_9um.js → TrustMemberIndividualPage-CSvuk6XK.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-BpcW7d1F.js → UnincorporatedPartnershipIndividualPage-DXoaa9hC.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-D0_jyxa9.js → UnincorporatedPartnershipMemberCompanyPage-C8CPQH_m.js} +3 -3
- package/dist/{VerificationErrorAlert-BUFe76ky.js → VerificationErrorAlert-o6U_xOOw.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-DOlFddLe.js → ViewVerificationStatusComponent-D5oVUVgg.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-pci.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +2 -2
- package/dist/adyen-manage-transfer-instruments.js +2 -2
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-sign-pci.js +2 -2
- package/dist/adyen-terms-of-service.js +2 -2
- package/dist/adyen-transfer-instrument.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/bg-BG-BJEwX54-.js +13 -0
- package/dist/bg-BG-BY3Wa361.js +54 -0
- package/dist/cs-CZ-0aKeukjR.js +13 -0
- package/dist/cs-CZ-BEFeaKsV.js +54 -0
- package/dist/{css-D8BUPzi2.js → css-CGow9lbX.js} +2 -2
- package/dist/da-DK-BiQSdU1f.js +13 -0
- package/dist/da-DK-D6UK8XT9.js +54 -0
- package/dist/de-DE-DUl6gRKv.js +54 -0
- package/dist/de-DE-Dx-1f5v5.js +13 -0
- package/dist/el-GR-B5j7VZ3E.js +54 -0
- package/dist/el-GR-DNpOiXlS.js +13 -0
- package/dist/en-US-Bq2Twy6x.js +54 -0
- package/dist/es-ES-Cavm0szq.js +54 -0
- package/dist/es-ES-CtpW_j9H.js +13 -0
- package/dist/et-EE-CMNzVzun.js +13 -0
- package/dist/et-EE-DUWZ2Vqm.js +54 -0
- package/dist/fi-FI-DVa-ccaW.js +54 -0
- package/dist/fi-FI-DVdPICca.js +13 -0
- package/dist/fr-FR-BwbkqjVl.js +13 -0
- package/dist/fr-FR-CY9emHgF.js +54 -0
- package/dist/{getFieldsWithExistingData-CGqpVE1H.js → getFieldsWithExistingData-CSERCOTM.js} +2 -2
- package/dist/{hasDataChanged-Ct-Cw0Nk.js → hasDataChanged-CT2kJDAl.js} +2 -2
- package/dist/hr-HR-BZ_Eg80E.js +13 -0
- package/dist/hr-HR-CnP5sqih.js +54 -0
- package/dist/hu-HU-BTlpbCpc.js +54 -0
- package/dist/hu-HU-CJg6YVP9.js +13 -0
- package/dist/it-IT-CQKKYAgU.js +13 -0
- package/dist/it-IT-GgHc0cHR.js +54 -0
- package/dist/ja-JP-BhS-_dIx.js +54 -0
- package/dist/ja-JP-DVefHilf.js +13 -0
- package/dist/{json-CAT1e69T.js → json-BQFRxvtx.js} +2 -2
- package/dist/{localizeDateString-DjAgGFr2.js → localizeDateString-BN_i-DH0.js} +1 -1
- package/dist/lt-LT-DTQGR9M0.js +54 -0
- package/dist/lt-LT-VPxl7F_u.js +13 -0
- package/dist/lv-LV-BQ4F1GrV.js +54 -0
- package/dist/lv-LV-DAuc68rg.js +13 -0
- package/dist/{mapFinancialReportsToFinancialInformation-DvfcmxQy.js → mapFinancialReportsToFinancialInformation-OaObC033.js} +2 -2
- package/dist/minus-circle-filled-BGKeHaxJ.js +17 -0
- package/dist/nl-NL-CUcML482.js +54 -0
- package/dist/nl-NL-DwjbYj_Q.js +13 -0
- package/dist/no-NO-BBCvsecq.js +54 -0
- package/dist/no-NO-CvXFRRN-.js +13 -0
- package/dist/pl-PL-Bdl7Nmzc.js +13 -0
- package/dist/pl-PL-kGaeUP-w.js +54 -0
- package/dist/{plaintext-C0cDoYPs.js → plaintext-nJgooSJw.js} +2 -2
- package/dist/plus-circle-filled-Cnf1oJTm.js +17 -0
- package/dist/pt-PT-DxxkYoPz.js +13 -0
- package/dist/pt-PT-JVqqgvPs.js +54 -0
- package/dist/{resolveEnvironment-BWqtKIrO.js → resolveEnvironment-Clecm3SX.js} +3 -3
- package/dist/ro-RO-C83h2zHZ.js +54 -0
- package/dist/ro-RO-hnKiFjCy.js +13 -0
- package/dist/{rules-XiHwdQYh.js → rules-BDXwJ_ny.js} +2 -2
- package/dist/sk-SK-CgLJIuJw.js +54 -0
- package/dist/sk-SK-DwwhojyK.js +13 -0
- package/dist/sl-SI-BzeVaC1Z.js +54 -0
- package/dist/sl-SI-YYS0gksL.js +13 -0
- package/dist/style.css +101 -130
- package/dist/styles-CLV89_hH.js +101 -130
- package/dist/sv-SE-CVmo11gI.js +54 -0
- package/dist/sv-SE-Dc4DCQEl.js +13 -0
- package/dist/types/api/companySelection/useCompanySelection.d.ts +18 -1
- package/dist/types/api/configurations/useScenarios.d.ts +6 -6
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -1
- package/dist/types/components/EFP/fields/LegalFormField/types.d.ts +4 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts +1 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.d.ts +1 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +7 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -1
- package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +1 -2
- package/dist/types/components/Shared/Introduction/copy.d.ts +2 -2
- package/dist/types/components/Shared/devex/DebugListener/DebugModal.d.ts +0 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -2
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +1 -2
- package/dist/types/components/ui/atoms/Accordion/Accordion.d.ts +1 -2
- package/dist/types/components/ui/atoms/Button/Button.d.ts +2 -3
- package/dist/types/components/ui/atoms/Button/Button.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/Field/Field.d.ts +3 -6
- package/dist/types/components/ui/atoms/Field/Field.types.d.ts +8 -12
- package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +4 -6
- package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +3 -4
- package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
- package/dist/types/components/ui/atoms/Remove/Remove.d.ts +1 -2
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -2
- package/dist/types/components/ui/atoms/Select/Select.types.d.ts +1 -0
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -2
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +3 -4
- package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -2
- package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +2 -2
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +4 -0
- package/dist/types/components/ui/atoms/TextArea/TextArea.d.ts +1 -2
- package/dist/types/components/ui/atoms/Tile/Tile.d.ts +1 -2
- package/dist/types/components/ui/molecules/Card/Card.d.ts +1 -2
- package/dist/types/components/ui/molecules/Card/types.d.ts +3 -3
- package/dist/types/components/ui/molecules/Dropzone/Dropzone.d.ts +1 -2
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +1 -2
- package/dist/types/components/ui/molecules/FormEndState/FormEndState.d.ts +0 -1
- package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +1 -2
- package/dist/types/components/ui/molecules/InputDate/InputDate.d.ts +3 -3
- package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +2 -2
- package/dist/types/context/ExperimentContext/types.d.ts +4 -0
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +1 -0
- package/dist/types/core/UIElement/UIElement.d.ts +1 -0
- package/dist/types/core/models/api/get-scenarios.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +1 -1
- package/dist/types/language/i18n.d.ts +2 -0
- package/dist/types/language/types.d.ts +3 -0
- package/dist/types/language/utils.d.ts +0 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/eventHandlers/handleKeys.d.ts +2 -2
- package/dist/types/utils/simulateTextChangeFromKeyboardEvent.d.ts +2 -2
- package/dist/{useMultiForm-DDpJxXKZ.js → useMultiForm-Dac42Q0s.js} +42 -2
- package/dist/{useOnboardingStatus-C4Zp3qlO.js → useOnboardingStatus-Dc4BUt-T.js} +1 -1
- package/dist/{useSalesChannelsSettings-BJZTNEXt.js → useSalesChannelsSettings-Buh8Eyq5.js} +2 -2
- package/dist/{useTermsOfServiceStatus-BLoApTTW.js → useTermsOfServiceStatus-tab3ZtFg.js} +1 -1
- package/dist/{useUpdateLegalEntity-D94GqAKV.js → useUpdateLegalEntity-BHdaG-En.js} +2 -2
- package/dist/{utils-CTBJ3JSG.js → utils-Dpjpew5O.js} +4 -4
- package/dist/{validate-B9Emr3_s.js → validate-XPyG23Wt.js} +2 -2
- package/dist/{yaml-DC1LKc08.js → yaml-BoVMW1k_.js} +2 -2
- package/package.json +6 -3
- package/dist/FormEndState-DVqZIH3v.js +0 -32
- package/dist/bg-BG-CRw-yV0n.js +0 -13
- package/dist/cs-CZ-CKaXnO0J.js +0 -13
- package/dist/da-DK-yugi-zGr.js +0 -13
- package/dist/de-DE-C9D0VHPK.js +0 -13
- package/dist/el-GR-Cfek3dpt.js +0 -13
- package/dist/es-ES-Be9ntX5H.js +0 -13
- package/dist/et-EE-CnhmrnD_.js +0 -13
- package/dist/fi-FI-DXCfpnHj.js +0 -13
- package/dist/fr-FR-FzCZ5niV.js +0 -13
- package/dist/hr-HR-DIVU0YhD.js +0 -13
- package/dist/hu-HU-BqIaQOvc.js +0 -13
- package/dist/it-IT-_Wa83lsl.js +0 -13
- package/dist/ja-JP-BcbV8ztd.js +0 -13
- package/dist/lt-LT-InjX-Q9A.js +0 -13
- package/dist/lv-LV-CGvjqeg2.js +0 -13
- package/dist/nl-NL-BuSsBOd9.js +0 -13
- package/dist/no-NO-1oDvJ_s2.js +0 -13
- package/dist/pl-PL-BlMeifdM.js +0 -13
- package/dist/pt-PT-B74E7Ui9.js +0 -13
- package/dist/ro-RO-CG5G2hM2.js +0 -13
- package/dist/sk-SK-CZZJsLFf.js +0 -13
- package/dist/sl-SI-BzTwh4Mo.js +0 -13
- package/dist/sv-SE-B1gRccAU.js +0 -13
- package/dist/types/utils/isInWebview.d.ts +0 -1
- package/dist/types/utils/useStateFromProp.d.ts +0 -9
|
@@ -2,24 +2,24 @@
|
|
|
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] = "608ae467-db8a-4002-a9bb-0d5f4fa29c65", e._sentryDebugIdIdentifier = "sentry-dbid-608ae467-db8a-4002-a9bb-0d5f4fa29c65");
|
|
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 } from "preact/hooks";
|
|
12
|
-
import { p 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, P as ProviderButton } from "./ProviderButton-
|
|
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 { p as useApiContext, bh as useMutation, bj as httpPost, bV as matchesRegex, bW as trimValWithOneSpace, bX as NO_ALPHABET_REGEX, bY as EMOJI_REGEX, bZ as hasRepeatedCharacters, b_ as isInvalidName, b$ as INDIVIDUAL_VALID_CHAR_REGEX, c0 as getFormattingRegEx, c1 as SPECIAL_CHARS, c2 as standardKatakanaValidator, c3 as standardKanjiValidator, ar as resolveFieldMetadata, ao as CountryCodes, c4 as getSSNType, ap as isEmpty, c5 as defaultFieldMetadata, c6 as defaultFieldConfig, c7 as defaultFieldMetadata$1, c8 as fieldConfig, W as TaskTypes, c9 as taxInformationDefaultFieldMetadata, y as LegalEntityType, ca as taxInformationDefaultFieldConfig, cb as getAgeToday, cc as euCountries, cd as getIdDocument, ce as getDocument, cf as mapExistingFile, cg as getPageName, ch as getLocalizedIdDocumentTypeOptions, ci as getPage, cj as createDocumentRequest, by as formatObject, ck as individualApiKeyMapping, bm as individualComponentsKeyMapping, bx as reverseMapping, cl as getNomineeFromAssociation, cm as drop, X as createLogger, P as useAccountHolder, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, a6 as useExperimentsContext, J as useSettingsContext, cn as documentApiUtils, co as useProviderStatus, g as getLegalEntityCountry, bN as getAssociatedLeAnalyticsPayload, cp as addressValidators, cq as getAsyncIdNumberValidationRule, cr as getAsyncPhoneValidationRules, cs as addressFormatters, ct as useScenarios, cu as setHasMotionCaptureScenario, cv as useScenarioConfiguration, cw as getPropsFromConfigurations, cx as individualForms, cy as showIndividualMotionCapture, bO as getRequiredForms, bP as addValidityToForms, cz as getAllowedDecisionMakerRoles, b2 as datasetUtilities, bQ as useFormComposer, bR as trackNavigation, cA as Individual, cB as composePerScenarioFormConfigurations, cC as omitObscuredFieldsIfUnchanged, cD as filterOutUnwantedAssociationsIfRootLE, bS as isValidationError, bT as processValidationErrors, bU as isMaintenanceModeError, bc as cloneObject, cE as mapAddressLabels, cF as individualDocumentForms, cG as individualDocumentMapping, cH as individualObscuredFields, cI as mergeAttachments, cJ as getFileExtention, ak as getOwnEntityAssociations, cK as hasNomineesChanged, cL as attachNomineeToRole, cM as idVerificationProviderId, cN as doArraysMatch, C as Typography, Z as Button, az as Field, cO as DecisionMakerType, cP as createFormRules, cQ as getAvailableDecisionMakerRoleTypes, cR as allowedCountriesForNominee, bJ as getAddressSchemaForCountry, bK as COUNTRIES_WITH_STATES_DATASET, cS as Scenarios, cT as isLowRiskCountry, bs as Select, cU as isTruthyValidator, cV as licenseCardNumberDefaultMetadata, cW as licenseCardNumberDefaultConfig, aq as mergeFieldMetadataIntoProps, ay as createFormUtils, bI as useFormContext, av as getFieldProps, cX as idNumberFields, cY as IdentityNumber, cZ as additionallIdNumberOptions, c_ as MaskedInput, bE as InputDate, c$ as formatDateObj, d0 as DriversLicense, d1 as addressFields, u as useAllowedCountries, K as SettingNames, d2 as getDefaultTaxIdNumberType, F as FormHeader, ax as ErrorPanel, aF as CountryField, bL as Address, bM as getAddressSchemaLabelsByCountry, bB as Link, ba as Confirm, d3 as getAgeRangeForLegalRepresentative, d4 as IndividualIdNumberTypeSelector, d5 as TaxInformationField, d6 as PatriotActDisclosure, d7 as isLegalRepresentativeNeeded, aw as nameFields, d8 as decisionMakerRoleFields, d9 as nomineeFields, da as contactDetailFields, B as Alert, aW as ContextGuidance, b1 as TrustedFieldsProvider, db as DecisionMakerRole, dc as NomineeDecisionMakerRole, dd as LocalizedNameFields, bC as InputText, de as ContactDetails, df as keysOf, b0 as objectsDeepEqual, dg as isEmpty$1, dh as RadioWithLabel, di as listToRecord, b4 as Modal, bo as Svg, dj as pick, dk as IdVerification, b9 as Spacer, _ as IconButton, c as useDataset, d as datasetIdentifier, L as Loader, dl as isPersonUnderAge, dm as IdDocumentManualUpload, dn as idDocumentUploadFields, dp as useFormRouterContext, dq as getFormProps, dr as useCapabilities, ds as hasMotionCaptureScenario, dt as setShowIndividualMotionCapture, du as shouldShowMotionCapture, dv as MemoizedProofOfRelationship, dw as MemoizedDocumentUpload, dx as MemoizedProofOfResidencyUpload, dy as individualOnfidoApiKeyMapping, dz as individualOnfidoBaseMapping, bp as useQueryClient, dA as individualOnfidoDocumentMapping, dB as individualOnfidoObscuredFields } from "./StoreProvider-BexFINS8.js";
|
|
13
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-BHdaG-En.js";
|
|
14
|
+
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-XPyG23Wt.js";
|
|
15
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-DsVBw4XS.js";
|
|
16
|
+
import { u as useSingpassMyInfoLogin, P as ProviderButton } from "./ProviderButton-BRuzMgOn.js";
|
|
17
|
+
import { u as useMultiForm } from "./useMultiForm-Dac42Q0s.js";
|
|
18
|
+
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-CSERCOTM.js";
|
|
19
|
+
import { l as localizeDateString } from "./localizeDateString-BN_i-DH0.js";
|
|
20
|
+
import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-BDXwJ_ny.js";
|
|
21
21
|
import { signal, computed } from "@preact/signals";
|
|
22
|
-
import { T as TileGroup } from "./TileGroup-
|
|
22
|
+
import { T as TileGroup } from "./TileGroup-Bvs2at4r.js";
|
|
23
23
|
const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
|
|
24
24
|
return await httpPost(
|
|
25
25
|
{
|
|
@@ -1361,6 +1361,71 @@ const basicDetailsValidators = ({
|
|
|
1361
1361
|
...contactDetailsValidationRules,
|
|
1362
1362
|
...isExperimentEnabled("StrictNameAndAddressValidationV4") ? nameValidationRulesV4 : void 0
|
|
1363
1363
|
});
|
|
1364
|
+
const guidanceQuestion = "adyen-kyc-guidance-question";
|
|
1365
|
+
const options = "adyen-kyc-options";
|
|
1366
|
+
const styles$6 = {
|
|
1367
|
+
guidanceQuestion,
|
|
1368
|
+
options
|
|
1369
|
+
};
|
|
1370
|
+
var GuidanceQuestionValues = /* @__PURE__ */ ((GuidanceQuestionValues2) => {
|
|
1371
|
+
GuidanceQuestionValues2["YES"] = "Yes";
|
|
1372
|
+
GuidanceQuestionValues2["NO"] = "No";
|
|
1373
|
+
return GuidanceQuestionValues2;
|
|
1374
|
+
})(GuidanceQuestionValues || {});
|
|
1375
|
+
const GuidanceQuestion = (props) => {
|
|
1376
|
+
const {
|
|
1377
|
+
descriptionLinkText,
|
|
1378
|
+
errorMessage,
|
|
1379
|
+
name,
|
|
1380
|
+
noLabel,
|
|
1381
|
+
onChange,
|
|
1382
|
+
onDescriptionLinkClick,
|
|
1383
|
+
question,
|
|
1384
|
+
value,
|
|
1385
|
+
yesLabel
|
|
1386
|
+
} = props;
|
|
1387
|
+
const { i18n } = useI18nContext();
|
|
1388
|
+
const userEvents = useAnalyticsContext();
|
|
1389
|
+
const handleChange = (selectedValue) => {
|
|
1390
|
+
userEvents.addFieldEvent("Interacted with form field", {
|
|
1391
|
+
actionType: "select",
|
|
1392
|
+
field: name,
|
|
1393
|
+
returnValue: selectedValue
|
|
1394
|
+
});
|
|
1395
|
+
const newValue = selectedValue || null;
|
|
1396
|
+
onChange(newValue);
|
|
1397
|
+
};
|
|
1398
|
+
const yesTileLabel = yesLabel ?? i18n.get("yes");
|
|
1399
|
+
const noTileLabel = noLabel ?? i18n.get("no");
|
|
1400
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$6.guidanceQuestion, children: [
|
|
1401
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", el: "p", children: question }),
|
|
1402
|
+
descriptionLinkText && onDescriptionLinkClick && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: onDescriptionLinkClick, children: descriptionLinkText }),
|
|
1403
|
+
/* @__PURE__ */ jsx(Field, { name, className: styles$6.options, children: () => /* @__PURE__ */ jsx(
|
|
1404
|
+
TileGroup,
|
|
1405
|
+
{
|
|
1406
|
+
allowMultiple: false,
|
|
1407
|
+
errorMessage,
|
|
1408
|
+
isHorizontal: true,
|
|
1409
|
+
maxSelected: 1,
|
|
1410
|
+
name,
|
|
1411
|
+
onChange: handleChange,
|
|
1412
|
+
selected: value || "",
|
|
1413
|
+
tiles: [
|
|
1414
|
+
{
|
|
1415
|
+
label: yesTileLabel,
|
|
1416
|
+
value: "Yes"
|
|
1417
|
+
/* YES */
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
label: noTileLabel,
|
|
1421
|
+
value: "No"
|
|
1422
|
+
/* NO */
|
|
1423
|
+
}
|
|
1424
|
+
]
|
|
1425
|
+
}
|
|
1426
|
+
) })
|
|
1427
|
+
] });
|
|
1428
|
+
};
|
|
1364
1429
|
const areArraysDifferent = (a = [], b = []) => {
|
|
1365
1430
|
if (a.length !== b.length) {
|
|
1366
1431
|
return true;
|
|
@@ -1372,19 +1437,19 @@ const areArraysDifferent = (a = [], b = []) => {
|
|
|
1372
1437
|
const calculateRoles = (data) => {
|
|
1373
1438
|
const roleMappings = [
|
|
1374
1439
|
{
|
|
1375
|
-
isApplicable: data?.signatoryQuestionnaire?.isSignatory ===
|
|
1440
|
+
isApplicable: data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES,
|
|
1376
1441
|
role: DecisionMakerType.SIGNATORY
|
|
1377
1442
|
},
|
|
1378
1443
|
{
|
|
1379
|
-
isApplicable: data?.uboQuestionnaire?.isOwner ===
|
|
1444
|
+
isApplicable: data?.uboQuestionnaire?.isOwner === GuidanceQuestionValues.YES,
|
|
1380
1445
|
role: DecisionMakerType.OWNER
|
|
1381
1446
|
},
|
|
1382
1447
|
{
|
|
1383
|
-
isApplicable: data?.uboQuestionnaire?.isControllingPerson ===
|
|
1448
|
+
isApplicable: data?.uboQuestionnaire?.isControllingPerson === GuidanceQuestionValues.YES,
|
|
1384
1449
|
role: DecisionMakerType.CONTROLLING_PERSON
|
|
1385
1450
|
},
|
|
1386
1451
|
{
|
|
1387
|
-
isApplicable: data?.uboQuestionnaire?.isDirector ===
|
|
1452
|
+
isApplicable: data?.uboQuestionnaire?.isDirector === GuidanceQuestionValues.YES,
|
|
1388
1453
|
role: DecisionMakerType.DIRECTOR
|
|
1389
1454
|
}
|
|
1390
1455
|
];
|
|
@@ -1631,12 +1696,12 @@ const individualOnfidoRules = ({
|
|
|
1631
1696
|
return REQUIRED;
|
|
1632
1697
|
},
|
|
1633
1698
|
isGuidedDecisionMakersFlowEnabled: () => {
|
|
1634
|
-
if (isExperimentEnabled("EnableGuidedDecisionMakersFlow") || isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow")) {
|
|
1699
|
+
if (!isExperimentEnabled("DisableGuidedDecisionMakersFlow") && (isExperimentEnabled("EnableGuidedDecisionMakersFlow") || isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow"))) {
|
|
1635
1700
|
return "REQUIRED";
|
|
1636
1701
|
}
|
|
1637
1702
|
},
|
|
1638
1703
|
isGuidedDecisionMakersFlowDisabled: () => {
|
|
1639
|
-
if (!isExperimentEnabled("EnableGuidedDecisionMakersFlow") && !isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow")) {
|
|
1704
|
+
if (isExperimentEnabled("DisableGuidedDecisionMakersFlow") || !isExperimentEnabled("EnableGuidedDecisionMakersFlow") && !isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow")) {
|
|
1640
1705
|
return "REQUIRED";
|
|
1641
1706
|
}
|
|
1642
1707
|
},
|
|
@@ -2164,6 +2229,7 @@ function BasicDetails(props) {
|
|
|
2164
2229
|
} = useFormContext();
|
|
2165
2230
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
2166
2231
|
const isGuidedDecisionMakersFlowEnabled = isExperimentEnabled("EnableGuidedDecisionMakersFlow") || isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow");
|
|
2232
|
+
const isGuidedDecisionMakersFlowDisabled = isExperimentEnabled("DisableGuidedDecisionMakersFlow");
|
|
2167
2233
|
const {
|
|
2168
2234
|
country,
|
|
2169
2235
|
data,
|
|
@@ -2232,7 +2298,7 @@ function BasicDetails(props) {
|
|
|
2232
2298
|
isDecisionMakerTask && trustedFieldsProvider === TrustedFieldsProvider.SINGPASS && readOnlyFields && /* @__PURE__ */ jsx(Typography, { color: "secondary", variant: "caption", children: i18n.get(
|
|
2233
2299
|
"weSelectedSomeRolesBasedOnMyinfoBusinessDataAboutYourCompanysAppointmentHoldersAndShareholders"
|
|
2234
2300
|
) }),
|
|
2235
|
-
isDecisionMakerTask && !isGuidedDecisionMakersFlowEnabled && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2301
|
+
isDecisionMakerTask && (isGuidedDecisionMakersFlowDisabled || !isGuidedDecisionMakersFlowEnabled) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2236
2302
|
/* @__PURE__ */ jsx(
|
|
2237
2303
|
DecisionMakerRole,
|
|
2238
2304
|
{
|
|
@@ -2403,7 +2469,7 @@ const isNextStepDisabled = signal(false);
|
|
|
2403
2469
|
const conflictRowTable = "adyen-kyc-conflict-row-table";
|
|
2404
2470
|
const conflictRowList = "adyen-kyc-conflict-row-list";
|
|
2405
2471
|
const conflictRowListOptionLabel = "adyen-kyc-conflict-row-list-option-label";
|
|
2406
|
-
const styles$
|
|
2472
|
+
const styles$5 = {
|
|
2407
2473
|
conflictRowTable,
|
|
2408
2474
|
conflictRowList,
|
|
2409
2475
|
conflictRowListOptionLabel
|
|
@@ -2429,7 +2495,7 @@ const ConflictRow = ({
|
|
|
2429
2495
|
}
|
|
2430
2496
|
}, [hasOnlyProvided, hasOnlyDetected, onSelect, selected]);
|
|
2431
2497
|
if (hasOnlyProvided || hasOnlyDetected) return;
|
|
2432
|
-
return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
2498
|
+
return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$5.conflictRowList, children: [
|
|
2433
2499
|
/* @__PURE__ */ jsx("dt", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get(label) }) }),
|
|
2434
2500
|
/* @__PURE__ */ jsxs("dd", { children: [
|
|
2435
2501
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -2438,7 +2504,7 @@ const ConflictRow = ({
|
|
|
2438
2504
|
{
|
|
2439
2505
|
variant: "caption",
|
|
2440
2506
|
color: "tertiary",
|
|
2441
|
-
className: styles$
|
|
2507
|
+
className: styles$5.conflictRowListOptionLabel,
|
|
2442
2508
|
children: i18n.get("youEntered")
|
|
2443
2509
|
}
|
|
2444
2510
|
),
|
|
@@ -2458,7 +2524,7 @@ const ConflictRow = ({
|
|
|
2458
2524
|
{
|
|
2459
2525
|
variant: "caption",
|
|
2460
2526
|
color: "tertiary",
|
|
2461
|
-
className: styles$
|
|
2527
|
+
className: styles$5.conflictRowListOptionLabel,
|
|
2462
2528
|
children: i18n.get("weDetected")
|
|
2463
2529
|
}
|
|
2464
2530
|
),
|
|
@@ -2473,7 +2539,7 @@ const ConflictRow = ({
|
|
|
2473
2539
|
)
|
|
2474
2540
|
] })
|
|
2475
2541
|
] })
|
|
2476
|
-
] }) : /* @__PURE__ */ jsxs("tr", { className: styles$
|
|
2542
|
+
] }) : /* @__PURE__ */ jsxs("tr", { className: styles$5.conflictRowTable, children: [
|
|
2477
2543
|
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get(label) }) }),
|
|
2478
2544
|
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
|
|
2479
2545
|
RadioWithLabel,
|
|
@@ -2499,7 +2565,7 @@ const dataConflictsWrapper = "adyen-kyc-data-conflicts-wrapper";
|
|
|
2499
2565
|
const dataConflictsHeader = "adyen-kyc-data-conflicts-header";
|
|
2500
2566
|
const dataConflictsTable = "adyen-kyc-data-conflicts-table";
|
|
2501
2567
|
const dataConflictsList = "adyen-kyc-data-conflicts-list";
|
|
2502
|
-
const styles$
|
|
2568
|
+
const styles$4 = {
|
|
2503
2569
|
dataConflictsWrapper,
|
|
2504
2570
|
dataConflictsHeader,
|
|
2505
2571
|
dataConflictsTable,
|
|
@@ -2540,13 +2606,13 @@ const DataConflictsModal = ({
|
|
|
2540
2606
|
// No dependencies, as setShowError and setResolutions are stable.
|
|
2541
2607
|
);
|
|
2542
2608
|
return /* @__PURE__ */ jsxs(Modal, { ariaLabel: i18n.get(title), onClose: () => setShowCancelModal(true), inset: true, children: [
|
|
2543
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2544
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2609
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.dataConflictsWrapper, children: [
|
|
2610
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.dataConflictsHeader, children: [
|
|
2545
2611
|
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h1", children: i18n.get(title) }),
|
|
2546
2612
|
/* @__PURE__ */ jsx(Typography, { variant: "body", children: i18n.get(explanation) })
|
|
2547
2613
|
] }),
|
|
2548
2614
|
showError ? /* @__PURE__ */ jsx(Alert, { variant: "error", title: i18n.get("chooseTheCorrectDetailsBeforeProceeding") }) : void 0,
|
|
2549
|
-
/* @__PURE__ */ jsx("dl", { className: styles$
|
|
2615
|
+
/* @__PURE__ */ jsx("dl", { className: styles$4.dataConflictsList, children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(
|
|
2550
2616
|
ConflictRow,
|
|
2551
2617
|
{
|
|
2552
2618
|
showAs: "listItem",
|
|
@@ -2559,7 +2625,7 @@ const DataConflictsModal = ({
|
|
|
2559
2625
|
},
|
|
2560
2626
|
property
|
|
2561
2627
|
)) }),
|
|
2562
|
-
/* @__PURE__ */ jsxs("table", { className: styles$
|
|
2628
|
+
/* @__PURE__ */ jsxs("table", { className: styles$4.dataConflictsTable, children: [
|
|
2563
2629
|
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
2564
2630
|
/* @__PURE__ */ jsx("th", {}),
|
|
2565
2631
|
/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "tertiary", children: i18n.get("youEntered") }) }),
|
|
@@ -2617,12 +2683,12 @@ const DataConflictsModal = ({
|
|
|
2617
2683
|
] });
|
|
2618
2684
|
};
|
|
2619
2685
|
const verificationDisclaimer = "adyen-kyc-verification-disclaimer";
|
|
2620
|
-
const styles$
|
|
2686
|
+
const styles$3 = {
|
|
2621
2687
|
verificationDisclaimer
|
|
2622
2688
|
};
|
|
2623
2689
|
const IdVerificationDisclaimer = () => {
|
|
2624
2690
|
const { i18n } = useI18nContext();
|
|
2625
|
-
return /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "tertiary", className: styles$
|
|
2691
|
+
return /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "tertiary", className: styles$3.verificationDisclaimer, children: [
|
|
2626
2692
|
i18n.get("ifYouChooseToUseOnfido"),
|
|
2627
2693
|
" ",
|
|
2628
2694
|
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: i18n.get("onfidoPrivacyPolicy") }),
|
|
@@ -2635,25 +2701,25 @@ const IdVerificationDisclaimer = () => {
|
|
|
2635
2701
|
const verificationHeader = "adyen-kyc-verification-header";
|
|
2636
2702
|
const verificationHeaderImage = "adyen-kyc-verification-header-image";
|
|
2637
2703
|
const verificationHeaderContent = "adyen-kyc-verification-header-content";
|
|
2638
|
-
const styles$
|
|
2704
|
+
const styles$2 = {
|
|
2639
2705
|
verificationHeader,
|
|
2640
2706
|
verificationHeaderImage,
|
|
2641
2707
|
verificationHeaderContent
|
|
2642
2708
|
};
|
|
2643
2709
|
const IdVerificationHeader = () => {
|
|
2644
2710
|
const { i18n } = useI18nContext();
|
|
2645
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
2711
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$2.verificationHeader, children: [
|
|
2646
2712
|
/* @__PURE__ */ jsx(
|
|
2647
2713
|
Svg,
|
|
2648
2714
|
{
|
|
2649
|
-
className: styles$
|
|
2715
|
+
className: styles$2.verificationHeaderImage,
|
|
2650
2716
|
type: "image",
|
|
2651
2717
|
name: "passport-front-green",
|
|
2652
2718
|
title: i18n.get("instantIDVerificationDescription")
|
|
2653
2719
|
}
|
|
2654
2720
|
),
|
|
2655
2721
|
/* @__PURE__ */ jsx(Typography, { variant: "title-l", children: i18n.get("capturePersonalDetails") }),
|
|
2656
|
-
/* @__PURE__ */ jsxs(Typography, { variant: "body", color: "primary", className: styles$
|
|
2722
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "body", color: "primary", className: styles$2.verificationHeaderContent, children: [
|
|
2657
2723
|
i18n.get("takeOrUploadAPhoto"),
|
|
2658
2724
|
" ",
|
|
2659
2725
|
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: i18n.get("onfido") })
|
|
@@ -2663,7 +2729,7 @@ const IdVerificationHeader = () => {
|
|
|
2663
2729
|
const verifyOnfidoContainer = "adyen-kyc-verify-onfido-container";
|
|
2664
2730
|
const verifyOnfidoError = "adyen-kyc-verify-onfido-error";
|
|
2665
2731
|
const verifyOnfidoContent = "adyen-kyc-verify-onfido-content";
|
|
2666
|
-
const styles$
|
|
2732
|
+
const styles$1 = {
|
|
2667
2733
|
verifyOnfidoContainer,
|
|
2668
2734
|
verifyOnfidoError,
|
|
2669
2735
|
verifyOnfidoContent
|
|
@@ -2809,12 +2875,12 @@ const OnfidoVerificationModal = ({
|
|
|
2809
2875
|
) });
|
|
2810
2876
|
};
|
|
2811
2877
|
const uploadedDocument = "adyen-kyc-uploaded-document";
|
|
2812
|
-
const styles
|
|
2878
|
+
const styles = {
|
|
2813
2879
|
uploadedDocument
|
|
2814
2880
|
};
|
|
2815
2881
|
const UploadedDocument = ({ document, onDelete, onUpdate }) => {
|
|
2816
2882
|
const { i18n } = useI18nContext();
|
|
2817
|
-
return /* @__PURE__ */ jsxs("article", { className: styles
|
|
2883
|
+
return /* @__PURE__ */ jsxs("article", { className: styles.uploadedDocument, children: [
|
|
2818
2884
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2819
2885
|
/* @__PURE__ */ jsx(Typography, { el: "h4", variant: "title", children: i18n.get(document.idDocumentType) }),
|
|
2820
2886
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("uploadedOn", {
|
|
@@ -3047,7 +3113,7 @@ function IdVerificationMethod(props) {
|
|
|
3047
3113
|
const modalProvidedData = resolvedData || comparableExistingData;
|
|
3048
3114
|
const formUtils = createFormUtils(props, i18n);
|
|
3049
3115
|
isNextStepDisabled.value = showLoadingSpinner;
|
|
3050
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
3116
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$1.verifyOnfidoContainer, children: [
|
|
3051
3117
|
/* @__PURE__ */ jsx(
|
|
3052
3118
|
ErrorPanel,
|
|
3053
3119
|
{
|
|
@@ -3063,10 +3129,10 @@ function IdVerificationMethod(props) {
|
|
|
3063
3129
|
{
|
|
3064
3130
|
variant: "error",
|
|
3065
3131
|
title: i18n.get(error.key, error.options),
|
|
3066
|
-
className: styles$
|
|
3132
|
+
className: styles$1.verifyOnfidoError
|
|
3067
3133
|
}
|
|
3068
3134
|
) : void 0,
|
|
3069
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
3135
|
+
/* @__PURE__ */ jsx("div", { className: styles$1.verifyOnfidoContent, children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : /* @__PURE__ */ jsx(Fragment, { children: hasExistingDocument ? /* @__PURE__ */ jsx(
|
|
3070
3136
|
UploadedDocument,
|
|
3071
3137
|
{
|
|
3072
3138
|
document: existingDocument,
|
|
@@ -3169,52 +3235,6 @@ const ManualIdUpload = () => {
|
|
|
3169
3235
|
const getDisplayErrorMessage = (errorMessage, i18n) => {
|
|
3170
3236
|
return typeof errorMessage !== "boolean" ? i18n.get(errorMessage) : errorMessage;
|
|
3171
3237
|
};
|
|
3172
|
-
const guidanceQuestion = "adyen-kyc-guidance-question";
|
|
3173
|
-
const options = "adyen-kyc-options";
|
|
3174
|
-
const styles = {
|
|
3175
|
-
guidanceQuestion,
|
|
3176
|
-
options
|
|
3177
|
-
};
|
|
3178
|
-
const GuidanceQuestion = (props) => {
|
|
3179
|
-
const {
|
|
3180
|
-
descriptionLinkText,
|
|
3181
|
-
errorMessage,
|
|
3182
|
-
name,
|
|
3183
|
-
noLabel,
|
|
3184
|
-
onChange,
|
|
3185
|
-
onDescriptionLinkClick,
|
|
3186
|
-
question,
|
|
3187
|
-
value,
|
|
3188
|
-
yesLabel
|
|
3189
|
-
} = props;
|
|
3190
|
-
const { i18n } = useI18nContext();
|
|
3191
|
-
const handleChange = (selectedValue) => {
|
|
3192
|
-
const newValue = selectedValue || null;
|
|
3193
|
-
onChange(newValue);
|
|
3194
|
-
};
|
|
3195
|
-
const yesTileLabel = yesLabel ?? i18n.get("yes");
|
|
3196
|
-
const noTileLabel = noLabel ?? i18n.get("no");
|
|
3197
|
-
return /* @__PURE__ */ jsxs("div", { className: styles.guidanceQuestion, children: [
|
|
3198
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body", el: "p", children: question }),
|
|
3199
|
-
descriptionLinkText && onDescriptionLinkClick && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: onDescriptionLinkClick, children: descriptionLinkText }),
|
|
3200
|
-
/* @__PURE__ */ jsx(Field, { name, className: styles.options, children: () => /* @__PURE__ */ jsx(
|
|
3201
|
-
TileGroup,
|
|
3202
|
-
{
|
|
3203
|
-
allowMultiple: false,
|
|
3204
|
-
errorMessage,
|
|
3205
|
-
isHorizontal: true,
|
|
3206
|
-
maxSelected: 1,
|
|
3207
|
-
name,
|
|
3208
|
-
onChange: handleChange,
|
|
3209
|
-
selected: value || "",
|
|
3210
|
-
tiles: [
|
|
3211
|
-
{ label: yesTileLabel, value: "yes" },
|
|
3212
|
-
{ label: noTileLabel, value: "no" }
|
|
3213
|
-
]
|
|
3214
|
-
}
|
|
3215
|
-
) })
|
|
3216
|
-
] });
|
|
3217
|
-
};
|
|
3218
3238
|
const SignatoryQuestionnaireModalContent = () => {
|
|
3219
3239
|
const { i18n } = useI18nContext();
|
|
3220
3240
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -3227,6 +3247,7 @@ const SignatoryQuestionnaireModalContent = () => {
|
|
|
3227
3247
|
};
|
|
3228
3248
|
function SignatoryQuestionnaire(props) {
|
|
3229
3249
|
const { i18n } = useI18nContext();
|
|
3250
|
+
const userEvents = useAnalyticsContext();
|
|
3230
3251
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
3231
3252
|
const {
|
|
3232
3253
|
data,
|
|
@@ -3240,8 +3261,19 @@ function SignatoryQuestionnaire(props) {
|
|
|
3240
3261
|
if (!handleFieldChange) {
|
|
3241
3262
|
return;
|
|
3242
3263
|
}
|
|
3243
|
-
const
|
|
3244
|
-
|
|
3264
|
+
const openModal = () => {
|
|
3265
|
+
userEvents.addPageEvent("Opened modal", {
|
|
3266
|
+
actionType: "open",
|
|
3267
|
+
label: "isSignatoryModal"
|
|
3268
|
+
});
|
|
3269
|
+
setIsModalOpen(true);
|
|
3270
|
+
};
|
|
3271
|
+
const closeModal = () => {
|
|
3272
|
+
userEvents.addPageEvent("Closed modal", {
|
|
3273
|
+
actionType: "close",
|
|
3274
|
+
label: "isSignatoryModal"
|
|
3275
|
+
});
|
|
3276
|
+
setIsModalOpen(false);
|
|
3245
3277
|
};
|
|
3246
3278
|
const errorMessage = formUtils.getErrorMessage("isSignatory", errors, fieldValidationErrors);
|
|
3247
3279
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-individual__personal-details", "aria-describedby": "ariaErrorField", children: [
|
|
@@ -3261,13 +3293,13 @@ function SignatoryQuestionnaire(props) {
|
|
|
3261
3293
|
name: "isSignatory",
|
|
3262
3294
|
value: data?.isSignatory,
|
|
3263
3295
|
onChange: handleFieldChange("isSignatory"),
|
|
3264
|
-
onDescriptionLinkClick:
|
|
3296
|
+
onDescriptionLinkClick: openModal,
|
|
3265
3297
|
question: i18n.get("signatoryQuestion"),
|
|
3266
3298
|
descriptionLinkText: i18n.get("whatDoesThisMean"),
|
|
3267
3299
|
errorMessage: getDisplayErrorMessage(errorMessage, i18n)
|
|
3268
3300
|
}
|
|
3269
3301
|
),
|
|
3270
|
-
isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose:
|
|
3302
|
+
isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: i18n.get("moreAboutAuthorizedSignatories"), inset: true, children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {}) })
|
|
3271
3303
|
] });
|
|
3272
3304
|
}
|
|
3273
3305
|
const RichText = ({ content }) => {
|
|
@@ -3349,6 +3381,7 @@ const uboQuestionnaireFields = [
|
|
|
3349
3381
|
];
|
|
3350
3382
|
function UboQuestionnaire(props) {
|
|
3351
3383
|
const { i18n } = useI18nContext();
|
|
3384
|
+
const userEvents = useAnalyticsContext();
|
|
3352
3385
|
const {
|
|
3353
3386
|
data,
|
|
3354
3387
|
description,
|
|
@@ -3364,9 +3397,19 @@ function UboQuestionnaire(props) {
|
|
|
3364
3397
|
return;
|
|
3365
3398
|
}
|
|
3366
3399
|
const openModal = (modalType) => () => {
|
|
3400
|
+
userEvents.addPageEvent("Opened modal", {
|
|
3401
|
+
actionType: "open",
|
|
3402
|
+
label: `${modalType}Modal`
|
|
3403
|
+
});
|
|
3367
3404
|
setActiveModal(modalType);
|
|
3368
3405
|
};
|
|
3369
3406
|
const closeModal = () => {
|
|
3407
|
+
if (activeModal) {
|
|
3408
|
+
userEvents.addPageEvent("Closed modal", {
|
|
3409
|
+
actionType: "close",
|
|
3410
|
+
label: `${activeModal}Modal`
|
|
3411
|
+
});
|
|
3412
|
+
}
|
|
3370
3413
|
setActiveModal(null);
|
|
3371
3414
|
};
|
|
3372
3415
|
const modalAriaLabelMap = {
|
|
@@ -3418,7 +3461,7 @@ function UboQuestionnaire(props) {
|
|
|
3418
3461
|
errorMessage: getDisplayErrorMessage(isDirectorErrorMessage, i18n)
|
|
3419
3462
|
}
|
|
3420
3463
|
),
|
|
3421
|
-
formUtils.isRequiredField("isNomineeDirector") && data?.isDirector ===
|
|
3464
|
+
formUtils.isRequiredField("isNomineeDirector") && data?.isDirector === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(
|
|
3422
3465
|
GuidanceQuestion,
|
|
3423
3466
|
{
|
|
3424
3467
|
name: "isNomineeDirector",
|
|
@@ -3440,7 +3483,7 @@ function UboQuestionnaire(props) {
|
|
|
3440
3483
|
errorMessage: getDisplayErrorMessage(isOwnerErrorMessage, i18n)
|
|
3441
3484
|
}
|
|
3442
3485
|
),
|
|
3443
|
-
formUtils.isRequiredField("isNomineeShareholder") && data?.isOwner ===
|
|
3486
|
+
formUtils.isRequiredField("isNomineeShareholder") && data?.isOwner === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(
|
|
3444
3487
|
GuidanceQuestion,
|
|
3445
3488
|
{
|
|
3446
3489
|
name: "isNomineeShareholder",
|
|
@@ -3525,12 +3568,14 @@ const proofOfRelationshipFormID = individualOnfidoForms.proofOfRelationship.form
|
|
|
3525
3568
|
const LIVE_SELFIE_ERROR_CODE = "2_8210";
|
|
3526
3569
|
function IndividualOnfido(props) {
|
|
3527
3570
|
const { i18n } = useI18nContext();
|
|
3571
|
+
const userEvents = useAnalyticsContext();
|
|
3528
3572
|
const {
|
|
3529
3573
|
form: { errors, valid, fieldProblems: fieldValidationErrors, handleChangeFor, setFormData }
|
|
3530
3574
|
} = useFormContext();
|
|
3531
3575
|
const { setFormIndex } = useFormRouterContext();
|
|
3532
3576
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
3533
3577
|
const isGuidedDecisionMakersFlowEnabled = isExperimentEnabled("EnableGuidedDecisionMakersFlow") || isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow");
|
|
3578
|
+
const isGuidedDecisionMakersFlowDisabled = isExperimentEnabled("DisableGuidedDecisionMakersFlow");
|
|
3534
3579
|
const [isDecisionMakerNotRequiredModalOpen, setIsDecisionMakerNotRequiredModalOpen] = useState(false);
|
|
3535
3580
|
const {
|
|
3536
3581
|
activeForm: propActiveForm,
|
|
@@ -3560,8 +3605,12 @@ function IndividualOnfido(props) {
|
|
|
3560
3605
|
if (!data?.signatoryQuestionnaire && !data?.uboQuestionnaire) return;
|
|
3561
3606
|
const { signatoryQuestionnaire, uboQuestionnaire } = data;
|
|
3562
3607
|
const isDirectorApplicable = uboQuestionnaireFormProps?.requiredFields?.includes("isDirector");
|
|
3563
|
-
const isNotRequired = signatoryQuestionnaire && uboQuestionnaire && signatoryQuestionnaire?.isSignatory ===
|
|
3608
|
+
const isNotRequired = signatoryQuestionnaire && uboQuestionnaire && signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.NO && uboQuestionnaire?.isOwner === GuidanceQuestionValues.NO && uboQuestionnaire?.isControllingPerson === GuidanceQuestionValues.NO && (!isDirectorApplicable || uboQuestionnaire?.isDirector === GuidanceQuestionValues.NO);
|
|
3564
3609
|
if (isNotRequired) {
|
|
3610
|
+
userEvents.addPageEvent("Opened modal", {
|
|
3611
|
+
actionType: "open",
|
|
3612
|
+
label: "personalInfoNotNeeded"
|
|
3613
|
+
});
|
|
3565
3614
|
setIsDecisionMakerNotRequiredModalOpen(true);
|
|
3566
3615
|
} else {
|
|
3567
3616
|
onNext?.();
|
|
@@ -3575,10 +3624,18 @@ function IndividualOnfido(props) {
|
|
|
3575
3624
|
}
|
|
3576
3625
|
}, [propActiveForm, setNextHandler, data]);
|
|
3577
3626
|
const handleCloseModalAndGoBack = () => {
|
|
3627
|
+
userEvents.addPageEvent("Closed modal", {
|
|
3628
|
+
actionType: "close",
|
|
3629
|
+
label: "personalInfoNotNeeded"
|
|
3630
|
+
});
|
|
3578
3631
|
setIsDecisionMakerNotRequiredModalOpen(false);
|
|
3579
3632
|
handleHomeClick?.();
|
|
3580
3633
|
};
|
|
3581
3634
|
const handleCloseModalAndChangeAnswers = () => {
|
|
3635
|
+
userEvents.addPageEvent("Clicked button", {
|
|
3636
|
+
actionType: "cancel",
|
|
3637
|
+
label: `personalInfoNotNeeded`
|
|
3638
|
+
});
|
|
3582
3639
|
setIsDecisionMakerNotRequiredModalOpen(false);
|
|
3583
3640
|
};
|
|
3584
3641
|
const gotoFormByFormId = (formId) => {
|
|
@@ -3598,14 +3655,20 @@ function IndividualOnfido(props) {
|
|
|
3598
3655
|
const capabilities = useCapabilities();
|
|
3599
3656
|
const newRoles = useMemo(() => calculateRoles(data), [data]);
|
|
3600
3657
|
useEffect(() => {
|
|
3601
|
-
if (isGuidedDecisionMakersFlowEnabled) {
|
|
3658
|
+
if (!isGuidedDecisionMakersFlowDisabled && isGuidedDecisionMakersFlowEnabled) {
|
|
3602
3659
|
const currentRoles = data?.basicDetails?.role ?? [];
|
|
3603
3660
|
if (areArraysDifferent(newRoles, currentRoles)) {
|
|
3604
3661
|
const basicDetailsData = data?.basicDetails ?? {};
|
|
3605
3662
|
setFormData("basicDetails", { ...basicDetailsData, role: newRoles });
|
|
3606
3663
|
}
|
|
3607
3664
|
}
|
|
3608
|
-
}, [
|
|
3665
|
+
}, [
|
|
3666
|
+
newRoles,
|
|
3667
|
+
data?.basicDetails,
|
|
3668
|
+
setFormData,
|
|
3669
|
+
isGuidedDecisionMakersFlowDisabled,
|
|
3670
|
+
isGuidedDecisionMakersFlowEnabled
|
|
3671
|
+
]);
|
|
3609
3672
|
const hasMotionCaptureScenarioValue = hasMotionCaptureScenario?.value;
|
|
3610
3673
|
useEffect(() => {
|
|
3611
3674
|
setShowIndividualMotionCapture(
|
|
@@ -3821,7 +3884,7 @@ const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido, isExperimentEn
|
|
|
3821
3884
|
{
|
|
3822
3885
|
country: individualOnfido.additionalPersonalDetails.country,
|
|
3823
3886
|
number: individualOnfido.additionalPersonalDetails.idNumber,
|
|
3824
|
-
type: individualOnfido.additionalPersonalDetails.typeOfIdentity
|
|
3887
|
+
type: individualOnfido.additionalPersonalDetails.typeOfIdentity.toUpperCase()
|
|
3825
3888
|
}
|
|
3826
3889
|
];
|
|
3827
3890
|
}
|
|
@@ -3938,7 +4001,7 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
|
|
|
3938
4001
|
}
|
|
3939
4002
|
if (isRoleFieldNeeded && individualOnfido.signatoryQuestionnaire && individualOnfido.uboQuestionnaire) {
|
|
3940
4003
|
const associationTypes = new Set(associations.map((ea) => ea.type));
|
|
3941
|
-
const hasAssociation = (type) => associationTypes.has(type) ?
|
|
4004
|
+
const hasAssociation = (type) => associationTypes.has(type) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
|
|
3942
4005
|
individualOnfido.signatoryQuestionnaire.isSignatory = hasAssociation(
|
|
3943
4006
|
DecisionMakerType.SIGNATORY
|
|
3944
4007
|
);
|
|
@@ -3947,7 +4010,7 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
|
|
|
3947
4010
|
DecisionMakerType.CONTROLLING_PERSON
|
|
3948
4011
|
);
|
|
3949
4012
|
individualOnfido.uboQuestionnaire.isDirector = hasAssociation(DecisionMakerType.DIRECTOR);
|
|
3950
|
-
const hasNomineeAssociation = (type) => associations.some((ea) => ea.type === type && ea.nominee) ?
|
|
4013
|
+
const hasNomineeAssociation = (type) => associations.some((ea) => ea.type === type && ea.nominee) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
|
|
3951
4014
|
individualOnfido.uboQuestionnaire.isNomineeDirector = hasNomineeAssociation(
|
|
3952
4015
|
DecisionMakerType.DIRECTOR
|
|
3953
4016
|
);
|
|
@@ -4195,6 +4258,7 @@ function IndividualOnfidoDropin({
|
|
|
4195
4258
|
const { isSettingEnabled } = useSettingsContext();
|
|
4196
4259
|
const queryClient = useQueryClient();
|
|
4197
4260
|
const isGuidedDecisionMakersFlowEnabled = isExperimentEnabled("EnableGuidedDecisionMakersFlow") || isExperimentEnabled("DecisionMakersFlowOptimization_GuidedDecisionMakersFlow");
|
|
4261
|
+
const isGuidedDecisionMakersFlowDisabled = isExperimentEnabled("DisableGuidedDecisionMakersFlow");
|
|
4198
4262
|
const defaultCountry = "NL";
|
|
4199
4263
|
const { data: providerStatus } = useProviderStatus({
|
|
4200
4264
|
providers: ["idDocument"],
|
|
@@ -4518,7 +4582,7 @@ function IndividualOnfidoDropin({
|
|
|
4518
4582
|
...existingEntityAssociations.filter((ea) => ea.legalEntityId !== legalEntity.id) || []
|
|
4519
4583
|
]
|
|
4520
4584
|
};
|
|
4521
|
-
const nomineeDataSource = isGuidedDecisionMakersFlowEnabled ? dataSubmitted?.uboQuestionnaire : dataSubmitted.basicDetails;
|
|
4585
|
+
const nomineeDataSource = !isGuidedDecisionMakersFlowDisabled && isGuidedDecisionMakersFlowEnabled ? dataSubmitted?.uboQuestionnaire : dataSubmitted.basicDetails;
|
|
4522
4586
|
if (nomineeDataSource && updatedParentLegalEntity.entityAssociations) {
|
|
4523
4587
|
updatedParentLegalEntity.entityAssociations = updatedParentLegalEntity.entityAssociations.map(
|
|
4524
4588
|
(ea) => attachNomineeToRole(ea, country, nomineeDataSource)
|
|
@@ -4691,7 +4755,7 @@ function IndividualOnfidoDropin({
|
|
|
4691
4755
|
}
|
|
4692
4756
|
}
|
|
4693
4757
|
if (summaryData?.signatoryQuestionnaire) {
|
|
4694
|
-
summaryData.signatoryQuestionnaire = data?.signatoryQuestionnaire?.isSignatory ===
|
|
4758
|
+
summaryData.signatoryQuestionnaire = data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES ? [i18n.get("signatorySummaryLabel")] : [];
|
|
4695
4759
|
}
|
|
4696
4760
|
if (summaryData?.uboQuestionnaire) {
|
|
4697
4761
|
const roleFieldToLabelMap = {
|
|
@@ -4700,7 +4764,7 @@ function IndividualOnfidoDropin({
|
|
|
4700
4764
|
isDirector: "directorSummaryLabel"
|
|
4701
4765
|
};
|
|
4702
4766
|
summaryData.uboQuestionnaire = Object.keys(roleFieldToLabelMap).flatMap(
|
|
4703
|
-
(field) => data?.uboQuestionnaire?.[field] ===
|
|
4767
|
+
(field) => data?.uboQuestionnaire?.[field] === GuidanceQuestionValues.YES ? [i18n.get(roleFieldToLabelMap[field])] : []
|
|
4704
4768
|
);
|
|
4705
4769
|
}
|
|
4706
4770
|
return summaryData;
|