@adyen/kyc-components 4.28.0-beta.1 → 4.28.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceWorkflow-CWGZOKtu.js → AcceptTermsOfServiceWorkflow-ClAdxVXd.js} +1 -1
- package/dist/{AccountSetupRejected-Bs7galfS.js → AccountSetupRejected-Cr_DSiTy.js} +1 -1
- package/dist/{AdaptiveWorkflow-DXJ1u52c.js → AdaptiveWorkflow-CLLU9pOr.js} +20 -20
- package/dist/{AdaptiveWorkflowComponent-Bmo1CJwM.js → AdaptiveWorkflowComponent-xaThXPQf.js} +2 -2
- package/dist/{AddressFields-M5jupF8l.js → Address-5fEOjxqk.js} +15 -15
- package/dist/{BusinessFinancingDropin-Bbw34hVf.js → BusinessFinancingDropin-DGx2jDOE.js} +22 -22
- package/dist/{BusinessFinancingPage-CvD-Tk_-.js → BusinessFinancingPage-CnUMV6CL.js} +2 -2
- package/dist/{BusinessRegistrationNumberField-B1O-D58L.js → BusinessRegistrationNumberField-DNbNu2rk.js} +5 -5
- package/dist/{BusinessRegistrationNumberFieldGroup-C8UNd3to.js → BusinessRegistrationNumberFieldGroup-BQc3omGX.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-B10xJcSU.js → BusinessTypeSelectionPage-BaP-I4aE.js} +11 -11
- package/dist/{Checkbox-CyMoenl6.js → Checkbox-BEkC71r4.js} +2 -2
- package/dist/{ComponentGroup-Jgi1oBjC.js → ComponentGroup-D7Qb-iKj.js} +1 -1
- package/dist/{ConstitutionalDocument-bMwKgqNu.js → ConstitutionalDocument-B8Tban-6.js} +131 -125
- package/dist/{ContactDetails-Dfr6ysdg.js → ContactDetails-OK5zV1U1.js} +5 -5
- package/dist/{ContextGuidance-C7seYQD4.js → ContextGuidance-Dw47AcKO.js} +2 -2
- package/dist/{CountryField-EEsbyp0x.js → CountryField-B7939WQQ.js} +3 -3
- package/dist/{Currency-dsFhBAjy.js → Currency-DrA7jcDt.js} +6 -6
- package/dist/{CustomerSupport-CJVqvdU5.js → CustomerSupport-CJ7N-GAZ.js} +12 -12
- package/dist/{DateField-t7FT_iiL.js → DateField-C3vGj_MK.js} +4 -4
- package/dist/{DebugModal-BTrunkih.js → DebugModal-DGzw1r1i.js} +6 -6
- package/dist/{DecisionMakerDetails-DMljWAWQ.js → DecisionMakerDetails-H1FVYCbP.js} +9 -9
- package/dist/{DecisionMakerDetailsPage-B5c_0PN_.js → DecisionMakerDetailsPage-DnC08qvK.js} +5 -5
- package/dist/{DecisionMakers-a3DaG-6U.js → DecisionMakers-DA6xwA3n.js} +11 -11
- package/dist/{Dropzone-448ZL9VM.js → Dropzone-WVQBXsOb.js} +5 -5
- package/dist/{EmailField-Cra7AXIF.js → EmailField-DlTqeno3.js} +4 -4
- package/dist/{EntityAssociation-CGquqR8h.js → EntityAssociation-4ZdNmRZ3.js} +3 -3
- package/dist/{ErrorPanel-CXMvMtur.js → ErrorPanel-Dwtd8sic.js} +2 -2
- package/dist/{GlobalEntryModal-CM5T8FKp.js → GlobalEntryModal-xc6OrAh4.js} +17 -16
- package/dist/{GlobalEntryPage-BP588kux.js → GlobalEntryPage-BE9bv-C3.js} +4 -4
- package/dist/{IdentityNumber-DnA5GktA.js → IdentityNumber-De-er201.js} +4 -4
- package/dist/{IdentityNumberFieldGroup-R8A5uEoN.js → IdentityNumberFieldGroup-C5MkqhvI.js} +3 -3
- package/dist/{IdentityScreeningWorkflow-BEf9j8g8.js → IdentityScreeningWorkflow-CIJU2RTu.js} +8 -8
- package/dist/{IndividualDropin-BunW0Y1z.js → IndividualDropin-BwgEZs3x.js} +99 -138
- package/dist/{IndustryCodeFieldGroup-Dgped8t4.js → IndustryCodeFieldGroup-bwVEhYKO.js} +4 -4
- package/dist/{InputDate-PcZy5N0W.js → InputDate-CXixeMAM.js} +4 -4
- package/dist/{Introduction-CLSqIBpQ.js → Introduction-DJjsxmbk.js} +5 -5
- package/dist/{InvitedDecisionMakerComponent-BxhfJSKq.js → InvitedDecisionMakerComponent-D6x3KHFI.js} +7 -7
- package/dist/{JpAddressFields-CapPuNBU.js → JpAddress-D68j3n7L.js} +13 -13
- package/dist/{LegalCompanyNameField-4bmqY29I.js → LegalCompanyNameField-BOgs_a16.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-DxOy9vCU.js → LegalRepresentativeDetailsPage-DDEEsmwC.js} +3 -3
- package/dist/{Name-CsOs3hQG.js → Name-BHB7kRk8.js} +3 -3
- package/dist/{NumberField-D8xlMgic.js → NumberField-q3UvReko.js} +3 -3
- package/dist/{PatriotActDisclosure-CTwsaivh.js → PatriotActDisclosure-BRuDw3WO.js} +9 -9
- package/dist/{PayoutDetailsDropin-DAzIUYe4.js → PayoutDetailsDropin-Dnrjswyh.js} +22 -22
- package/dist/{PayoutDetailsPage-VLk0DpD7.js → PayoutDetailsPage-AWba5nQN.js} +4 -4
- package/dist/{RadioGroup-CEi7ZDGi.js → RadioGroup-Csw26Mhr.js} +2 -2
- package/dist/{Review-B03d6GlL.js → Review-BIChuo5g.js} +5 -5
- package/dist/{RootBusinessDetailsPage-bY2g62IM.js → RootBusinessDetailsPage-Bzea1U5y.js} +2 -2
- package/dist/{RootBusinessLinesPage-DKqmR8rB.js → RootBusinessLinesPage-DidBwXGi.js} +17 -17
- package/dist/{RootIndividualDetailsPage-YA9xZU8y.js → RootIndividualDetailsPage-DlFgWqMP.js} +3 -3
- package/dist/{Select-DTqe0uNK.js → Select-Jjt3H6zs.js} +3 -3
- package/dist/{SignPCIComponent-CXGnjpKO.js → SignPCIComponent-Cbt8lEs0.js} +10 -10
- package/dist/{SingpassSelection-CDHJdkCZ.js → SingpassSelection-B_wq0ro8.js} +4 -4
- package/dist/{SoleProprietorshipPage-DCjHOTI3.js → SoleProprietorshipPage-DHQ6E1NL.js} +2 -2
- package/dist/{SourceOfFundsPage-BEPx4XB0.js → SourceOfFundsPage-DGgdXrvc.js} +18 -18
- package/dist/{SourceOfFundsWorkflow-CWYq6pxv.js → SourceOfFundsWorkflow-B8iEJ4QO.js} +1 -1
- package/dist/{StateField-DgYpF1_M.js → StateField-_JphU2zZ.js} +9 -9
- package/dist/{Step-DGmEuzNc.js → Step-Bz-enzE4.js} +3 -3
- package/dist/{Summary-CzJ698Zr.js → Summary-CIL8fweW.js} +1 -1
- package/dist/{SummarySection-uydAtNRx.js → SummarySection-BdHCHEUu.js} +2 -2
- package/dist/{Task-CxQnoPlO.js → Task-Bt8pnDA9.js} +4 -4
- package/dist/{TaskGroup-CNvLui70.js → TaskGroup-CKzG9dgu.js} +2 -2
- package/dist/{TaskListItem-D84K14gG.js → TaskListItem-C71fxN7v.js} +5 -5
- package/dist/TaxInformationField-Da-YR7qg.js +259 -0
- package/dist/{TaxInformationFieldGroup-hUnJmpAo.js → TaxInformationFieldGroup-6qs90McT.js} +7 -7
- package/dist/{TaxReportingDropin-CR1Cpz3u.js → TaxReportingDropin-Ci8EwFZR.js} +11 -11
- package/dist/{TaxReportingWorkflow-NIVnKcpn.js → TaxReportingWorkflow-BbfN5mpW.js} +1 -1
- package/dist/{TermsOfServiceManagement-BJclOKlD.js → TermsOfServiceManagement-CdkojO9F.js} +9 -9
- package/dist/{TextArea-CvDM-4De.js → TextArea-CUlnWuqT.js} +3 -3
- package/dist/{TextField-DBCBCZMg.js → TextField-C4nHBtK8.js} +4 -4
- package/dist/{TrustDetailsPage-B_6vHQnx.js → TrustDetailsPage-CtjpFHPY.js} +23 -22
- package/dist/{TrustMemberCompanyPage-DSTdfCRt.js → TrustMemberCompanyPage-zKqn-pzF.js} +4 -4
- package/dist/{TrustMemberIndividualPage-CxD06on9.js → TrustMemberIndividualPage-BMleFxIy.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-Bwl9Dv6w.js → TrustMemberRoleAndTypePage-DFpwcJbZ.js} +19 -19
- package/dist/{TrustMembersOverview-Bl_tZ47h.js → TrustMembersOverview-D5H8_NMF.js} +10 -10
- package/dist/{UboTaskItem-CYSbY0FC.js → UboTaskItem-BJY_1oAJ.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-DLpkOoQr.js → UnincorporatedPartnershipIndividualPage-JxcAD39T.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BWmArxU3.js → UnincorporatedPartnershipMemberCompanyPage-CxsnGabe.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DGys2yUf.js → UnincorporatedPartnershipMemberRoleAndTypePage-BcE8CfWU.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-GVimwN0S.js → UnincorporatedPartnershipMembersOverview-DO1-L5Cn.js} +5 -5
- package/dist/{VerificationErrorAlert-BjsV8ARt.js → VerificationErrorAlert-ByJQTWwc.js} +2 -2
- package/dist/{WebsiteField-Sz7RUbW_.js → WebsiteField-BAqw1q1A.js} +4 -4
- package/dist/{Workflow-Cty0HzIp.js → Workflow-DgFkPT5b.js} +3 -3
- package/dist/{accountHolderUtils-DEWA3MWe.js → accountHolderUtils-C4sbpGq9.js} +1 -1
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +1 -1
- package/dist/adyen-invited-decision-maker.js +2 -2
- package/dist/adyen-onboarding.js +18 -18
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +1 -1
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +6 -6
- package/dist/adyen-verification-status.js +1 -1
- package/dist/{bafinUtils-CFvCTqAt.js → bafinUtils-Cs44-4gm.js} +10 -257
- package/dist/{constants-Ctu_3qBl.js → constants-B8YCUIao.js} +3 -3
- package/dist/{dropinUtils-DBnjaFWb.js → dropinUtils-BAx_kWeq.js} +5 -5
- package/dist/{error-C05wuAm2.js → error-8q7lWdou.js} +2 -2
- package/dist/{fieldConfig-28YDsFPu.js → fieldConfig-Bv9qSPl1.js} +1 -1
- package/dist/{formatDataForSummary-Ccs4H7BO.js → formatDataForSummary-DVcusBqf.js} +127 -15
- package/dist/{formatValidationError-DIPpFoJQ.js → formatValidationError-CRIcczdD.js} +1 -1
- package/dist/{getDefaultRegistrationNumberType-C3OAyMCv.js → getDefaultRegistrationNumberType--Vh5y4A3.js} +5 -5
- package/dist/{getValidationError-C00cY5Gg.js → getValidationError-t17tjdt8.js} +1 -1
- package/dist/{invalidateRootLegalEntity-DrJp13W1.js → invalidateRootLegalEntity-BWLd6SvV.js} +1 -1
- package/dist/mapAddressLocalizationToJpAddressSchema-DqM6uUSJ.js +39 -0
- package/dist/{mapExistingFile-CqbTLZ6i.js → mapExistingFile-CLSPk17k.js} +1 -1
- package/dist/{mapTransferInstrumentToPayoutAccount-Dq0983R5.js → mapTransferInstrumentToPayoutAccount-BcWIlJYq.js} +1 -1
- package/dist/{processValidationErrors-D0qSlh3W.js → processValidationErrors-CMs3YEdp.js} +2 -2
- package/dist/{registerEmbed-DQqTWYX2.js → registerEmbed-Xubdbk-a.js} +7 -7
- package/dist/{roleMetadata-B1KP0JZL.js → roleMetadata-i1i1JuLw.js} +2 -2
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IdVerificationMethod/individualConflictsSchema.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -1
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +18 -0
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +4 -1
- package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +4 -1
- package/dist/types/components/Shared/{forms/Address/AddressFields.d.ts → fields/Address/Address.d.ts} +2 -2
- package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/RegistrationAndOperationalAddressFields.d.ts +7 -1
- package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/types.d.ts +5 -5
- package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/utils.d.ts +2 -2
- package/dist/types/components/Shared/{forms → fields}/Address/SearchAddress.d.ts +1 -1
- package/dist/types/components/Shared/fields/Address/localized/jp/JpAddress.d.ts +2 -0
- package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +1 -1
- package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +1 -1
- package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSummary.d.ts +1 -1
- package/dist/types/components/Shared/{forms → fields}/Address/rules.d.ts +1 -1
- package/dist/types/components/Shared/{forms → fields}/Address/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/forms.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRegistrationAddress/types.d.ts +1 -1
- package/dist/types/utils/addressToString.d.ts +1 -1
- package/dist/{unincorporatedPartnership-E0Wffo2-.js → unincorporatedPartnership-DPK34PF1.js} +1 -1
- package/dist/{useBusinessDetailsData-B2jIzpVP.js → useBusinessDetailsData-DwaSU98Q.js} +37 -37
- package/dist/{useCanSeeIntroduction-CguqBHaC.js → useCanSeeIntroduction-BMXtlTKu.js} +2 -2
- package/dist/{useForm-CwWvs060.js → useForm-tZJzKTj7.js} +2 -2
- package/dist/{useId-BV444pyC.js → useId-usoEnbTl.js} +1 -1
- package/dist/{useNavigate-BPvz7b_2.js → useNavigate-hJpbSouk.js} +32 -32
- package/dist/{useSalesChannels-GPyBj7Bk.js → useSalesChannels-OXrUy-Oo.js} +1 -1
- package/dist/{useSaveForLater-BSIOwMfL.js → useSaveForLater-fJUZyWBN.js} +3 -3
- package/dist/{useTaskLandedEvent-CuOu8Sqr.js → useTaskLandedEvent-CmLLhK6a.js} +1 -1
- package/dist/{useTrustMembers-Dwbb5xh4.js → useTrustMembers-C4jO1FRe.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-1bLF5aPT.js → useUnincorporatedPartnershipMembers-5_bcpZVq.js} +2 -2
- package/dist/{utils-B_dD2dvD.js → utils-6Lfk9m3d.js} +1 -1
- package/dist/{utils-BPKdYHDB.js → utils-B9FZV547.js} +3 -3
- package/dist/{utils-tMG2x_WY.js → utils-CMDo05iY.js} +1 -1
- package/dist/{validate-BZLQWEd-.js → validate-BY2KTX10.js} +2 -2
- package/dist/{validate-BlsJOvUC.js → validate-CEKo7egC.js} +8 -8
- package/dist/{validate-DlL0gf63.js → validate-D-9807Cu.js} +2 -2
- package/dist/{validate-Dtlyak_C.js → validate-NlmooHWm.js} +3 -3
- package/dist/{validateExtractionResult-BD0Vu-XF.js → validateExtractionResult-D8JAU47X.js} +1 -1
- package/package.json +1 -1
- package/dist/mapAddressLocalizationToJpAddressSchema-CyNuoq1S.js +0 -26
- package/dist/mapJpAddressSchemaToAddressLocalizations-BtkCWRQU.js +0 -19
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +0 -2
- /package/dist/types/components/Shared/{forms → fields}/Address/AddressField.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/SearchAddressItem.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/constants.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/ReadonlyTextField.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/utils.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/validate.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/validate.formats.d.ts +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "68aa481c-c122-4f5a-9a72-1805047f04e3", e._sentryDebugIdIdentifier = "sentry-dbid-68aa481c-c122-4f5a-9a72-1805047f04e3");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { a as InputBase } from "./RadioGroup-
|
|
7
|
-
import { o as Field } from "./Select-
|
|
6
|
+
import { a as InputBase } from "./RadioGroup-Csw26Mhr.js";
|
|
7
|
+
import { o as Field } from "./Select-Jjt3H6zs.js";
|
|
8
8
|
import { n as emailPattern } from "./basePatterns-plHFNzgJ.js";
|
|
9
9
|
import { n as withForm } from "./formHook-Dgi2CgbT.js";
|
|
10
|
-
import { t as getValidationError } from "./getValidationError-
|
|
10
|
+
import { t as getValidationError } from "./getValidationError-t17tjdt8.js";
|
|
11
11
|
import { t as isNotEmpty } from "./sharedValidators-DODW7kuK.js";
|
|
12
12
|
import { jsx } from "preact/jsx-runtime";
|
|
13
13
|
//#region src/adaptiveWorkflow/components/Shared/Fields/EmailField/validators.ts
|
|
@@ -7,9 +7,9 @@ import { n as IconButton, t as Button } from "./Button-EhGM-oCO.js";
|
|
|
7
7
|
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-Br7t30ur.js";
|
|
8
8
|
import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
|
|
9
9
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
10
|
-
import { t as VerificationErrorAlert } from "./VerificationErrorAlert-
|
|
11
|
-
import { s as Confirm } from "./utils-
|
|
12
|
-
import { n as getRoleTagVariant, t as getRoleName } from "./roleMetadata-
|
|
10
|
+
import { t as VerificationErrorAlert } from "./VerificationErrorAlert-ByJQTWwc.js";
|
|
11
|
+
import { s as Confirm } from "./utils-6Lfk9m3d.js";
|
|
12
|
+
import { n as getRoleTagVariant, t as getRoleName } from "./roleMetadata-i1i1JuLw.js";
|
|
13
13
|
import { t as Tag } from "./Tag-CNeDHqKp.js";
|
|
14
14
|
import { useCallback, useEffect, useRef, useState } from "preact/hooks";
|
|
15
15
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -3,11 +3,11 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1d536c14-2290-4037-99f8-c4f023f3ba53", e._sentryDebugIdIdentifier = "sentry-dbid-1d536c14-2290-4037-99f8-c4f023f3ba53");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { T as Alert } from "./registerEmbed-
|
|
6
|
+
import { T as Alert } from "./registerEmbed-Xubdbk-a.js";
|
|
7
7
|
import { t as Button } from "./Button-EhGM-oCO.js";
|
|
8
8
|
import { s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
9
9
|
import { r as remediationHasFileUploadField } from "./processCapabilities-B75YIdXZ.js";
|
|
10
|
-
import { h as getFieldNameFromPath, x as FormRouterContext } from "./dropinUtils-
|
|
10
|
+
import { h as getFieldNameFromPath, x as FormRouterContext } from "./dropinUtils-BAx_kWeq.js";
|
|
11
11
|
import { useContext } from "preact/hooks";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
13
13
|
//#region src/context/FormRouterContext/useFormRouterContext.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b576d7c5-dc0b-4070-b043-97d07ee8d156", e._sentryDebugIdIdentifier = "sentry-dbid-b576d7c5-dc0b-4070-b043-97d07ee8d156");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { A as useAllowedCountries, N as Header, P as _rolldown_dynamic_import_helper_default, T as Alert, _ as isPartOfTrustFromLegalEntity, ct as isEmpty, vt as useAccountHolder } from "./registerEmbed-
|
|
6
|
+
import { A as useAllowedCountries, N as Header, P as _rolldown_dynamic_import_helper_default, T as Alert, _ as isPartOfTrustFromLegalEntity, ct as isEmpty, vt as useAccountHolder } from "./registerEmbed-Xubdbk-a.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
9
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
@@ -17,24 +17,25 @@ import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
|
17
17
|
import { y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
18
18
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
19
19
|
import { f as hasSolePropInLegalEntity, s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
20
|
-
import { i as useToggleContext, r as useDebouncedCallback } from "./Checkbox-
|
|
21
|
-
import { a as useAnalyticsContext } from "./useId-
|
|
22
|
-
import { r as InputText } from "./RadioGroup-
|
|
20
|
+
import { i as useToggleContext, r as useDebouncedCallback } from "./Checkbox-BEkC71r4.js";
|
|
21
|
+
import { a as useAnalyticsContext } from "./useId-usoEnbTl.js";
|
|
22
|
+
import { r as InputText } from "./RadioGroup-Csw26Mhr.js";
|
|
23
23
|
import { i as getTrustedFieldsProvider, t as ListItem } from "./ListItem-aX6AyCay.js";
|
|
24
24
|
import { t as getFormSlice } from "./getFormSlice-CxtXJ0-P.js";
|
|
25
25
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
26
|
-
import { n as useToastContext } from "./invalidateRootLegalEntity-
|
|
27
|
-
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, r as createFormRules } from "./unincorporatedPartnership-
|
|
28
|
-
import { o as Field, p as LoaderWrapper } from "./Select-
|
|
29
|
-
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-
|
|
30
|
-
import { a as CountryOfGoverningLawField, c as useCompanyTypeExamples, d as verifyTinQueryOptions, f as companySearchQueryOptions, g as useClearCompanyData, h as useStoredStateOrProvince, i as COUNTRY_OF_GOVERNING_LAW_FIELD, l as useCompanySelection, m as trackPerformance, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as useLegalCompanyNameField, p as useCompanySearch, r as isNormalizedStringMatch, t as CountryOfGoverningLawFieldValidation } from "./validate-
|
|
31
|
-
import { d as COUNTRIES_WITH_STATES_DATASET, h as useUpdateLegalEntity, n as StateField, p as isJapanLocalizationEnabled, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-
|
|
32
|
-
import { H as FormContextProvider, I as useMultiForm, V as summaryStep, c as CountryField, d as isBusinessSelectionLegalArrangementError, g as createFormUtils, o as List, s as COUNTRY_FIELD, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-
|
|
33
|
-
import { A as REGISTRATION_NUMBER_EXEMPTION_RULES,
|
|
34
|
-
import { a as getValidCompanyTypesForRegistrationNumberType, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType
|
|
26
|
+
import { n as useToastContext } from "./invalidateRootLegalEntity-BWLd6SvV.js";
|
|
27
|
+
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, r as createFormRules } from "./unincorporatedPartnership-DPK34PF1.js";
|
|
28
|
+
import { o as Field, p as LoaderWrapper } from "./Select-Jjt3H6zs.js";
|
|
29
|
+
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-6Lfk9m3d.js";
|
|
30
|
+
import { a as CountryOfGoverningLawField, c as useCompanyTypeExamples, d as verifyTinQueryOptions, f as companySearchQueryOptions, g as useClearCompanyData, h as useStoredStateOrProvince, i as COUNTRY_OF_GOVERNING_LAW_FIELD, l as useCompanySelection, m as trackPerformance, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as useLegalCompanyNameField, p as useCompanySearch, r as isNormalizedStringMatch, t as CountryOfGoverningLawFieldValidation } from "./validate-CEKo7egC.js";
|
|
31
|
+
import { d as COUNTRIES_WITH_STATES_DATASET, h as useUpdateLegalEntity, n as StateField, p as isJapanLocalizationEnabled, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-_JphU2zZ.js";
|
|
32
|
+
import { H as FormContextProvider, I as useMultiForm, V as summaryStep, c as CountryField, d as isBusinessSelectionLegalArrangementError, g as createFormUtils, o as List, s as COUNTRY_FIELD, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-BAx_kWeq.js";
|
|
33
|
+
import { A as REGISTRATION_NUMBER_EXEMPTION_RULES, C as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, D as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, F as mapJapaneseLegalNamesToLocalization, I as mapLocalizationToJapaneseLegalNames, M as isRegistrationExemptionAllowed, N as isRegistrationNumberAbsentStateV4Scenario, T as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, U as TileGroup, V as getValidCompanyTypesForTaxIdNumberType, _ as taxInformationDefaultFieldMetadata, b as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, c as DataConflictsModal, g as taxInformationDefaultFieldConfig, h as getTaxInformationPlaceholderText, j as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, k as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, w as COUNTRIES_USING_COMPANY_SEARCH } from "./bafinUtils-Cs44-4gm.js";
|
|
34
|
+
import { a as getValidCompanyTypesForRegistrationNumberType, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType--Vh5y4A3.js";
|
|
35
35
|
import { a as TRUST_COUNTRIES, i as SOLE_PROP_COUNTRIES, n as INDIVIDUALS_WHO_TRADE_COUNTRIES, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-CHlmmcB8.js";
|
|
36
|
-
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-
|
|
37
|
-
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-
|
|
36
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-BOgs_a16.js";
|
|
37
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-DNbNu2rk.js";
|
|
38
|
+
import { n as TaxInformationField, t as TAX_INFORMATION_FIELD } from "./TaxInformationField-Da-YR7qg.js";
|
|
38
39
|
import { Suspense, lazy } from "preact/compat";
|
|
39
40
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useReducer, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
40
41
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "56e52e9e-5d46-4f43-88dd-cc6714cdc27c", e._sentryDebugIdIdentifier = "sentry-dbid-56e52e9e-5d46-4f43-88dd-cc6714cdc27c");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { P as _rolldown_dynamic_import_helper_default } from "./registerEmbed-
|
|
6
|
+
import { P as _rolldown_dynamic_import_helper_default } from "./registerEmbed-Xubdbk-a.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
8
8
|
import { t as Button } from "./Button-EhGM-oCO.js";
|
|
9
9
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
|
|
10
|
-
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-
|
|
11
|
-
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-
|
|
10
|
+
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-xc6OrAh4.js";
|
|
11
|
+
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-DPK34PF1.js";
|
|
12
12
|
import { t as Link } from "./Link-BtWj5mVH.js";
|
|
13
13
|
import { lazy } from "preact/compat";
|
|
14
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -4,10 +4,10 @@ try {
|
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
6
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
7
|
-
import { t as Checkbox } from "./Checkbox-
|
|
8
|
-
import { a as resolveFieldMetadata } from "./unincorporatedPartnership-
|
|
9
|
-
import { a as translateTranslatable, o as Field } from "./Select-
|
|
10
|
-
import { A as alphanumericInputs, D as validatePatternOnBlur, F as spacer, M as makeMask, N as nonInputs, O as uppercase, P as numericInputs, _ as mergeFieldMetadataIntoProps, g as createFormUtils, j as customInputs, k as alphaInputs, r as MaskedInput } from "./dropinUtils-
|
|
7
|
+
import { t as Checkbox } from "./Checkbox-BEkC71r4.js";
|
|
8
|
+
import { a as resolveFieldMetadata } from "./unincorporatedPartnership-DPK34PF1.js";
|
|
9
|
+
import { a as translateTranslatable, o as Field } from "./Select-Jjt3H6zs.js";
|
|
10
|
+
import { A as alphanumericInputs, D as validatePatternOnBlur, F as spacer, M as makeMask, N as nonInputs, O as uppercase, P as numericInputs, _ as mergeFieldMetadataIntoProps, g as createFormUtils, j as customInputs, k as alphaInputs, r as MaskedInput } from "./dropinUtils-BAx_kWeq.js";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
12
12
|
//#region src/utils/regex/countryIdNumberPatterns.ts
|
|
13
13
|
var CountryIdNumberPatterns = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "90af35a1-042f-4d87-a428-d7f9266d11a3", e._sentryDebugIdIdentifier = "sentry-dbid-90af35a1-042f-4d87-a428-d7f9266d11a3");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { a as resolveFieldMetadata } from "./unincorporatedPartnership-
|
|
6
|
-
import { i as defaultFieldMetadata, r as defaultFieldConfig, t as IdentityNumber } from "./IdentityNumber-
|
|
5
|
+
import { a as resolveFieldMetadata } from "./unincorporatedPartnership-DPK34PF1.js";
|
|
6
|
+
import { i as defaultFieldMetadata, r as defaultFieldConfig, t as IdentityNumber } from "./IdentityNumber-De-er201.js";
|
|
7
7
|
import { n as withForm } from "./formHook-Dgi2CgbT.js";
|
|
8
8
|
import { t as toTanStackValidators } from "./tanstackValidation-BgAM9eKo.js";
|
|
9
9
|
import { useCallback } from "preact/hooks";
|
package/dist/{IdentityScreeningWorkflow-BEf9j8g8.js → IdentityScreeningWorkflow-CIJU2RTu.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "eb89a987-47bb-4d1e-bf95-02eb6b264627", e._sentryDebugIdIdentifier = "sentry-dbid-eb89a987-47bb-4d1e-bf95-02eb6b264627");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation, t as Trans } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { T as Alert, i as isDarkMode } from "./registerEmbed-
|
|
6
|
+
import { T as Alert, i as isDarkMode } from "./registerEmbed-Xubdbk-a.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
9
9
|
import { t as Button } from "./Button-EhGM-oCO.js";
|
|
10
10
|
import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
|
|
11
|
-
import { n as Modal } from "./useId-
|
|
11
|
+
import { n as Modal } from "./useId-usoEnbTl.js";
|
|
12
12
|
import { t as EndStateLayout } from "./EndStateLayout-CBzxX67s.js";
|
|
13
|
-
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-
|
|
14
|
-
import { p as LoaderWrapper } from "./Select-
|
|
15
|
-
import { b as FormFlow_module_default } from "./dropinUtils-
|
|
16
|
-
import { c as DataConflictsModal } from "./bafinUtils-
|
|
13
|
+
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-DPK34PF1.js";
|
|
14
|
+
import { p as LoaderWrapper } from "./Select-Jjt3H6zs.js";
|
|
15
|
+
import { b as FormFlow_module_default } from "./dropinUtils-BAx_kWeq.js";
|
|
16
|
+
import { c as DataConflictsModal } from "./bafinUtils-Cs44-4gm.js";
|
|
17
17
|
import { t as Link } from "./Link-BtWj5mVH.js";
|
|
18
|
-
import { a as fromIndividualConflictSchema, d as useExtractDocumentInformation, i as mapExtractionResultToSchema, l as useDataConflicts, n as UploadedDocument, o as toIndividualConflictSchema, r as useIdVerificationToken, s as IdVerificationMethod_module_default, t as validateExtractionResult } from "./validateExtractionResult-
|
|
18
|
+
import { a as fromIndividualConflictSchema, d as useExtractDocumentInformation, i as mapExtractionResultToSchema, l as useDataConflicts, n as UploadedDocument, o as toIndividualConflictSchema, r as useIdVerificationToken, s as IdVerificationMethod_module_default, t as validateExtractionResult } from "./validateExtractionResult-D8JAU47X.js";
|
|
19
19
|
import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
|
|
20
20
|
import { t as useHideTaskStepper } from "./useHideTaskStepper-DvHXw3zd.js";
|
|
21
21
|
import { lazy } from "preact/compat";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d115628e-596e-497f-a777-9b917391f010", e._sentryDebugIdIdentifier = "sentry-dbid-d115628e-596e-497f-a777-9b917391f010");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation, t as Trans } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { A as useAllowedCountries, D as useDataset, G as INDIVIDUAL_VALID_CHAR_REGEX, J as NO_ALPHABET_UNICODE_REGEX, N as Header, O as datasetIdentifier, T as Alert, U as EMOJI_REGEX, a as useGetTaskStatus, bt as useVersionConfiguration, c as getAgeRangeForLegalRepresentative, ct as isEmpty, ht as standardKatakanaValidator, i as isDarkMode, it as hasMaximumTwoRepeatedCharacters, j as useCapabilities, k as datasetUtilities, l as getAgeToday, mt as standardKanjiValidator, ot as hasText, pt as matchesRegex, u as isLegalRepresentativeNeeded, ut as isInvalidName, vt as useAccountHolder } from "./registerEmbed-
|
|
6
|
+
import { A as useAllowedCountries, D as useDataset, G as INDIVIDUAL_VALID_CHAR_REGEX, J as NO_ALPHABET_UNICODE_REGEX, N as Header, O as datasetIdentifier, T as Alert, U as EMOJI_REGEX, a as useGetTaskStatus, bt as useVersionConfiguration, c as getAgeRangeForLegalRepresentative, ct as isEmpty, ht as standardKatakanaValidator, i as isDarkMode, it as hasMaximumTwoRepeatedCharacters, j as useCapabilities, k as datasetUtilities, l as getAgeToday, mt as standardKanjiValidator, ot as hasText, pt as matchesRegex, u as isLegalRepresentativeNeeded, ut as isInvalidName, vt as useAccountHolder } from "./registerEmbed-Xubdbk-a.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
9
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
@@ -21,46 +21,46 @@ import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
|
|
|
21
21
|
import { t as Scenarios } from "./scenarios-nibtmpSb.js";
|
|
22
22
|
import { s as getAvailableDecisionMakerRoleTypes, t as getAllowedDecisionMakerRoles } from "./decisionMakerRoles-DA8MK9Dh.js";
|
|
23
23
|
import { i as isLowRiskCountry } from "./country-WYlusjTL.js";
|
|
24
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
25
|
-
import { a as useAnalyticsContext, n as Modal } from "./useId-
|
|
26
|
-
import { r as InputText, s as SettingNames, t as RadioGroup } from "./RadioGroup-
|
|
27
|
-
import { n as useToastContext } from "./invalidateRootLegalEntity-
|
|
28
|
-
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, i as convertFullToHalf, l as LandingLayout, n as Image, r as createFormRules, s as composePerScenarioFormConfigurations } from "./unincorporatedPartnership-
|
|
29
|
-
import { a as translateTranslatable, o as Field, p as LoaderWrapper, t as Select } from "./Select-
|
|
30
|
-
import { o as StructuredList,
|
|
31
|
-
import { f as addressFields, h as useUpdateLegalEntity, m as isEmpty$1, p as isJapanLocalizationEnabled, s as addressFieldRule } from "./StateField-
|
|
32
|
-
import { H as FormContextProvider, I as useMultiForm, R as isTruthyValidator, _ as mergeFieldMetadataIntoProps, c as CountryField, g as createFormUtils, i as InputEmail, n as getRequiredForms, p as isValidationError, r as MaskedInput, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-
|
|
33
|
-
import {
|
|
24
|
+
import { i as useToggleContext } from "./Checkbox-BEkC71r4.js";
|
|
25
|
+
import { a as useAnalyticsContext, n as Modal } from "./useId-usoEnbTl.js";
|
|
26
|
+
import { r as InputText, s as SettingNames, t as RadioGroup } from "./RadioGroup-Csw26Mhr.js";
|
|
27
|
+
import { n as useToastContext } from "./invalidateRootLegalEntity-BWLd6SvV.js";
|
|
28
|
+
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, i as convertFullToHalf, l as LandingLayout, n as Image, r as createFormRules, s as composePerScenarioFormConfigurations } from "./unincorporatedPartnership-DPK34PF1.js";
|
|
29
|
+
import { a as translateTranslatable, o as Field, p as LoaderWrapper, t as Select } from "./Select-Jjt3H6zs.js";
|
|
30
|
+
import { o as StructuredList, s as Confirm } from "./utils-6Lfk9m3d.js";
|
|
31
|
+
import { f as addressFields, h as useUpdateLegalEntity, m as isEmpty$1, p as isJapanLocalizationEnabled, s as addressFieldRule } from "./StateField-_JphU2zZ.js";
|
|
32
|
+
import { H as FormContextProvider, I as useMultiForm, R as isTruthyValidator, _ as mergeFieldMetadataIntoProps, a as isValueObscured, c as CountryField, g as createFormUtils, i as InputEmail, n as getRequiredForms, p as isValidationError, r as MaskedInput, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-BAx_kWeq.js";
|
|
33
|
+
import { _ as taxInformationDefaultFieldMetadata, a as idNowPostSubmit, c as DataConflictsModal, g as taxInformationDefaultFieldConfig, i as idNowModalChildEntityId, n as isBafinSignatoryFlow, o as shouldShowIdNowModal, s as showIdNowModal, v as toFullWidth } from "./bafinUtils-Cs44-4gm.js";
|
|
34
|
+
import { n as TaxInformationField, r as findExistingTaxInformation } from "./TaxInformationField-Da-YR7qg.js";
|
|
34
35
|
import { t as getIndividualLegalEntityName } from "./getName-Cii7OyRd.js";
|
|
35
36
|
import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
|
|
36
37
|
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CgzVD39K.js";
|
|
37
|
-
import { a as
|
|
38
|
-
import { n as useProviderStatus, t as
|
|
39
|
-
import { a as contactDetailsValidationRules, c as getAsyncPhoneValidationRules, i as phonePrefixes_default, l as getPhonePlaceholder, n as contactDetailFields, o as defaultFieldMetadata, r as PhoneField, s as fieldConfig, t as ContactDetails, u as useValidatePhoneNumberImperatively } from "./ContactDetails-
|
|
40
|
-
import { i as useScenarioConfiguration, n as getPage, r as getPageName, t as mapExistingFile } from "./mapExistingFile-
|
|
41
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
42
|
-
import { n as SaveForLaterButton, t as useSaveForLater } from "./useSaveForLater-
|
|
43
|
-
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-
|
|
38
|
+
import { a as mapIndividualSchemaToLegalEntity, c as individualFormDefaultData, i as TAX_ID_FROM_ID_NUMBER_COUNTRIES, l as shouldNavigateToAdditionalPersonalDetailsForMissingData, n as SummaryBulletList, o as GuidanceQuestion, r as mapLegalEntityToIndividualSchema, s as GuidanceQuestionValues, t as formatDataForSummary, u as useCreateInvitation } from "./formatDataForSummary-DVcusBqf.js";
|
|
39
|
+
import { n as useProviderStatus, t as Address } from "./Address-5fEOjxqk.js";
|
|
40
|
+
import { a as contactDetailsValidationRules, c as getAsyncPhoneValidationRules, i as phonePrefixes_default, l as getPhonePlaceholder, n as contactDetailFields, o as defaultFieldMetadata, r as PhoneField, s as fieldConfig, t as ContactDetails, u as useValidatePhoneNumberImperatively } from "./ContactDetails-OK5zV1U1.js";
|
|
41
|
+
import { i as useScenarioConfiguration, n as getPage, r as getPageName, t as mapExistingFile } from "./mapExistingFile-CLSPk17k.js";
|
|
42
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-CmLLhK6a.js";
|
|
43
|
+
import { n as SaveForLaterButton, t as useSaveForLater } from "./useSaveForLater-fJUZyWBN.js";
|
|
44
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-CMs3YEdp.js";
|
|
44
45
|
import { a as getFileExtention, c as mergeAttachments, n as documentApiUtils, o as getIdDocument, r as getDocument, s as isIdDocumentType, t as createDocumentRequest, u as getLocalizedIdDocumentTypeOptions } from "./documentUtils-6K3LdjjN.js";
|
|
45
|
-
import { i as getFieldsWithExistingData, n as MemoizedDocumentUpload, r as DocumentGuidance, t as PatriotActDisclosure } from "./PatriotActDisclosure-
|
|
46
|
-
import { n as omitObscuredFieldsIfUnchanged, t as AdyenKycSdkError } from "./error-
|
|
47
|
-
import { a as getAsyncIdNumberValidationRule, i as defaultFieldMetadata$1, n as idNumberFields, o as licenseCardNumberDefaultConfig, r as defaultFieldConfig, s as licenseCardNumberDefaultMetadata, t as IdentityNumber } from "./IdentityNumber-
|
|
48
|
-
import { t as InputDate } from "./InputDate-
|
|
49
|
-
import { t as addressValidators } from "./validate-
|
|
46
|
+
import { i as getFieldsWithExistingData, n as MemoizedDocumentUpload, r as DocumentGuidance, t as PatriotActDisclosure } from "./PatriotActDisclosure-BRuDw3WO.js";
|
|
47
|
+
import { n as omitObscuredFieldsIfUnchanged, t as AdyenKycSdkError } from "./error-8q7lWdou.js";
|
|
48
|
+
import { a as getAsyncIdNumberValidationRule, i as defaultFieldMetadata$1, n as idNumberFields, o as licenseCardNumberDefaultConfig, r as defaultFieldConfig, s as licenseCardNumberDefaultMetadata, t as IdentityNumber } from "./IdentityNumber-De-er201.js";
|
|
49
|
+
import { t as InputDate } from "./InputDate-CXixeMAM.js";
|
|
50
|
+
import { t as addressValidators } from "./validate-NlmooHWm.js";
|
|
50
51
|
import { n as emailPattern } from "./basePatterns-plHFNzgJ.js";
|
|
51
|
-
import { n as useFormRouterContext, t as ErrorPanel } from "./ErrorPanel-
|
|
52
|
-
import { t as TextArea } from "./TextArea-
|
|
53
|
-
import { t as Dropzone } from "./Dropzone-
|
|
52
|
+
import { n as useFormRouterContext, t as ErrorPanel } from "./ErrorPanel-Dwtd8sic.js";
|
|
53
|
+
import { t as TextArea } from "./TextArea-CUlnWuqT.js";
|
|
54
|
+
import { t as Dropzone } from "./Dropzone-WVQBXsOb.js";
|
|
54
55
|
import { n as getFieldProps, r as getFormProps } from "./getProps-DVqK7eRw.js";
|
|
55
56
|
import { t as Link } from "./Link-BtWj5mVH.js";
|
|
56
57
|
import { r as formatDateObj } from "./InputDate.utils-D4Ov0KIl.js";
|
|
57
|
-
import { t as ContextGuidance } from "./ContextGuidance-
|
|
58
|
-
import { n as nameFields, t as Name } from "./Name-
|
|
59
|
-
import { t as formatValidationError } from "./formatValidationError-
|
|
60
|
-
import { a as fromIndividualConflictSchema, c as createAddressConflictRule, d as useExtractDocumentInformation, i as mapExtractionResultToSchema, l as useDataConflicts, n as UploadedDocument, o as toIndividualConflictSchema, r as useIdVerificationToken, s as IdVerificationMethod_module_default, t as validateExtractionResult, u as addressToString } from "./validateExtractionResult-
|
|
61
|
-
import { t as
|
|
62
|
-
import { t as
|
|
63
|
-
import { t as SummarySection } from "./SummarySection-uydAtNRx.js";
|
|
58
|
+
import { t as ContextGuidance } from "./ContextGuidance-Dw47AcKO.js";
|
|
59
|
+
import { n as nameFields, t as Name } from "./Name-BHB7kRk8.js";
|
|
60
|
+
import { t as formatValidationError } from "./formatValidationError-CRIcczdD.js";
|
|
61
|
+
import { a as fromIndividualConflictSchema, c as createAddressConflictRule, d as useExtractDocumentInformation, i as mapExtractionResultToSchema, l as useDataConflicts, n as UploadedDocument, o as toIndividualConflictSchema, r as useIdVerificationToken, s as IdVerificationMethod_module_default, t as validateExtractionResult, u as addressToString } from "./validateExtractionResult-D8JAU47X.js";
|
|
62
|
+
import { t as Summary } from "./Summary-CIL8fweW.js";
|
|
63
|
+
import { t as SummarySection } from "./SummarySection-BdHCHEUu.js";
|
|
64
64
|
import { Suspense, lazy, memo } from "preact/compat";
|
|
65
65
|
import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
66
66
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -854,7 +854,13 @@ var REMEDIATION_CODES_UPLOAD_ID = [
|
|
|
854
854
|
"1_302",
|
|
855
855
|
"1_303"
|
|
856
856
|
];
|
|
857
|
-
|
|
857
|
+
/** Must match the scenarios that include `identityNumber` in `individualFormConfig`. */
|
|
858
|
+
var SCENARIOS_ASKING_FOR_ID_NUMBER = [
|
|
859
|
+
Scenarios.L1_ID,
|
|
860
|
+
Scenarios.L1_IDO,
|
|
861
|
+
Scenarios.L1_NAT
|
|
862
|
+
];
|
|
863
|
+
var individualRules = ({ matchingScenario, data, country, taskType, isFeatureEnabled = () => false, isSettingEnabled = () => false, rootLegalEntity, problems, version = 3, existingTaxInformation }) => {
|
|
858
864
|
/** A decision maker is localized by the country of the entity they belong to. */
|
|
859
865
|
const japanTargetCountry = () => taskType === TaskTypes.DECISION_MAKER && rootLegalEntity && getLegalEntityCountry(rootLegalEntity) || country;
|
|
860
866
|
const addressFieldRequired = (field) => addressFieldRule({
|
|
@@ -863,22 +869,33 @@ var individualRules = ({ matchingScenario, data, country, taskType, isFeatureEna
|
|
|
863
869
|
isSettingEnabled,
|
|
864
870
|
version
|
|
865
871
|
});
|
|
872
|
+
const idNumberRules = () => {
|
|
873
|
+
if (data.additionalPersonalDetails?.idNumberExempt) return OPTIONAL;
|
|
874
|
+
if (!data.basicDetails?.role) return REQUIRED;
|
|
875
|
+
if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) return;
|
|
876
|
+
if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) return REQUIRED;
|
|
877
|
+
if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) return REQUIRED;
|
|
878
|
+
};
|
|
879
|
+
/**
|
|
880
|
+
* Whether the required identity number also provides the tax ID, which the submit
|
|
881
|
+
* copies from it (see `getTaxInformationWithIdNumber`), so the tax ID is not asked for again.
|
|
882
|
+
*
|
|
883
|
+
* The saved identity number stays obscured until the user edits it, and is not resubmitted while
|
|
884
|
+
* it is, so there is nothing to copy: it only covers the tax ID alongside a saved one.
|
|
885
|
+
*/
|
|
886
|
+
const isTaxIdCoveredByIdNumber = () => {
|
|
887
|
+
if (!TAX_ID_FROM_ID_NUMBER_COUNTRIES.includes(country) || !matchingScenario?.some((scenario) => SCENARIOS_ASKING_FOR_ID_NUMBER.includes(scenario)) || idNumberRules() !== REQUIRED) return false;
|
|
888
|
+
if (!isValueObscured(data.additionalPersonalDetails?.idNumber)) return true;
|
|
889
|
+
return existingTaxInformation?.some((taxInfo) => taxInfo.country === country) ?? false;
|
|
890
|
+
};
|
|
866
891
|
return createFormRules({
|
|
867
|
-
countryUsesTaxId: () =>
|
|
868
|
-
if (matchingScenario?.includes(Scenarios.L_TAXINFO) && TAX_ID_REQUIRED_COUNTRIES.includes(country)) return "REQUIRED";
|
|
869
|
-
},
|
|
892
|
+
countryUsesTaxId: () => matchingScenario?.includes(Scenarios.L_TAXINFO) && TAX_ID_REQUIRED_COUNTRIES.includes(country) && !isTaxIdCoveredByIdNumber() ? REQUIRED : void 0,
|
|
870
893
|
isDirectorIdNumberRequiredForCountry: () => {
|
|
871
894
|
if (!data.basicDetails?.role) return REQUIRED;
|
|
872
895
|
if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) return REQUIRED;
|
|
873
896
|
if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) return REQUIRED;
|
|
874
897
|
},
|
|
875
|
-
idNumberRules
|
|
876
|
-
if (data.additionalPersonalDetails?.idNumberExempt) return OPTIONAL;
|
|
877
|
-
if (!data.basicDetails?.role) return REQUIRED;
|
|
878
|
-
if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) return;
|
|
879
|
-
if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) return REQUIRED;
|
|
880
|
-
if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) return REQUIRED;
|
|
881
|
-
},
|
|
898
|
+
idNumberRules,
|
|
882
899
|
requiredIfDecisionMakerTask: () => {
|
|
883
900
|
if (taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER) return REQUIRED;
|
|
884
901
|
},
|
|
@@ -1246,7 +1263,7 @@ var additionalIdentityInfoFields = [
|
|
|
1246
1263
|
];
|
|
1247
1264
|
//#endregion
|
|
1248
1265
|
//#region src/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.tsx
|
|
1249
|
-
var LazyJpAddressFields = lazy(async () => (await import("./
|
|
1266
|
+
var LazyJpAddressFields = lazy(async () => (await import("./JpAddress-D68j3n7L.js")).JpAddress);
|
|
1250
1267
|
var additionalPersonalDetailsFields = [
|
|
1251
1268
|
"birthDate",
|
|
1252
1269
|
...idNumberFields,
|
|
@@ -1326,7 +1343,7 @@ function AdditionalPersonalDetails(props) {
|
|
|
1326
1343
|
handleFieldChange,
|
|
1327
1344
|
addressType: "residentialAddress"
|
|
1328
1345
|
})
|
|
1329
|
-
}) : /* @__PURE__ */ jsx(
|
|
1346
|
+
}) : /* @__PURE__ */ jsx(Address, {
|
|
1330
1347
|
...addressFieldProps.residentialAddress,
|
|
1331
1348
|
handleFieldChange,
|
|
1332
1349
|
addressType: "residentialAddress",
|
|
@@ -3321,71 +3338,6 @@ var mapIndividualDocumentToApiDocument = async (data, entityId) => {
|
|
|
3321
3338
|
])).filter(Boolean);
|
|
3322
3339
|
};
|
|
3323
3340
|
//#endregion
|
|
3324
|
-
//#region src/components/Individual/mapping/adjustOnfidoIdentificationData.ts
|
|
3325
|
-
var adjustOnfidoIdentificationData = (data, apiData) => {
|
|
3326
|
-
const { typeOfIdentity, idNumber, idNumberExempt } = data;
|
|
3327
|
-
const type = getOnfidoIdentityTypeToApiIdentityTypeMap(data)[typeOfIdentity] ?? "nationalIdNumber";
|
|
3328
|
-
const identificationData = {
|
|
3329
|
-
...apiData,
|
|
3330
|
-
number: idNumber,
|
|
3331
|
-
type
|
|
3332
|
-
};
|
|
3333
|
-
switch (typeOfIdentity) {
|
|
3334
|
-
case "passport": return {
|
|
3335
|
-
...identificationData,
|
|
3336
|
-
cardNumber: ""
|
|
3337
|
-
};
|
|
3338
|
-
case "driversLicense": return {
|
|
3339
|
-
...identificationData,
|
|
3340
|
-
expiryDate: ""
|
|
3341
|
-
};
|
|
3342
|
-
default: return idNumber === void 0 && idNumberExempt === void 0 ? void 0 : {
|
|
3343
|
-
...identificationData,
|
|
3344
|
-
expiryDate: "",
|
|
3345
|
-
cardNumber: "",
|
|
3346
|
-
nationalIdExempt: apiData?.nationalIdExempt ?? !idNumber
|
|
3347
|
-
};
|
|
3348
|
-
}
|
|
3349
|
-
};
|
|
3350
|
-
//#endregion
|
|
3351
|
-
//#region src/components/Individual/mapping/mapIndividualSchemaToLegalEntity.ts
|
|
3352
|
-
var mapIndividualSchemaToLegalEntity = (individual, matchingScenario, existingTaxInformation, countryOfResidence) => {
|
|
3353
|
-
const legalEntity = {
|
|
3354
|
-
...formatObject(individual, individualApiKeyMapping),
|
|
3355
|
-
type: "individual"
|
|
3356
|
-
};
|
|
3357
|
-
if (individual.additionalPersonalDetails) {
|
|
3358
|
-
if (matchingScenario?.includes(Scenarios.L_TAXINFO) && individual.additionalPersonalDetails?.idNumber && (individual.additionalPersonalDetails?.country === CountryCodes.Spain || individual.additionalPersonalDetails?.country === CountryCodes.Italy)) {
|
|
3359
|
-
const taxCountry = individual.additionalPersonalDetails?.country;
|
|
3360
|
-
const taxType = taxCountry === CountryCodes.Spain && individual.additionalPersonalDetails?.typeOfIdentity ? individual.additionalPersonalDetails?.typeOfIdentity.toUpperCase() : taxIdNumberOptions[taxCountry][0]["id"];
|
|
3361
|
-
legalEntity.individual.taxInformation = [{
|
|
3362
|
-
country: taxCountry,
|
|
3363
|
-
number: individual.additionalPersonalDetails.idNumber,
|
|
3364
|
-
type: taxType
|
|
3365
|
-
}];
|
|
3366
|
-
}
|
|
3367
|
-
legalEntity.individual.identificationData = adjustOnfidoIdentificationData(individual.additionalPersonalDetails, legalEntity.individual.identificationData);
|
|
3368
|
-
}
|
|
3369
|
-
const nameLocalization = [mapSchemaFieldsToApiScriptLocalization(individual.basicDetails ?? {}, "jaHani"), mapSchemaFieldsToApiScriptLocalization(individual.basicDetails ?? {}, "jaKana")].filter(({ fields }) => !isEmpty$1(fields));
|
|
3370
|
-
if (nameLocalization.length) legalEntity.individual.name.localization = nameLocalization;
|
|
3371
|
-
const addressLocalizations = mapJpAddressSchemaToAddressLocalizations(individual.additionalPersonalDetails);
|
|
3372
|
-
if (addressLocalizations.length > 0) legalEntity.individual.residentialAddress.localization = addressLocalizations;
|
|
3373
|
-
if (individual.basicDetails?.phoneNumber) {
|
|
3374
|
-
const phone = {
|
|
3375
|
-
number: individual.basicDetails.phoneNumber.number,
|
|
3376
|
-
type: "mobile"
|
|
3377
|
-
};
|
|
3378
|
-
if (phone.number && legalEntity.individual) legalEntity.individual.phone = phone;
|
|
3379
|
-
else delete legalEntity?.individual?.phone;
|
|
3380
|
-
}
|
|
3381
|
-
if (legalEntity.individual?.taxInformation) {
|
|
3382
|
-
const taxInformation = getSubmittableTaxInformation(legalEntity.individual.taxInformation, individual.additionalPersonalDetails?.country ?? countryOfResidence, existingTaxInformation);
|
|
3383
|
-
if (taxInformation.length) legalEntity.individual.taxInformation = taxInformation;
|
|
3384
|
-
else delete legalEntity.individual.taxInformation;
|
|
3385
|
-
}
|
|
3386
|
-
return legalEntity;
|
|
3387
|
-
};
|
|
3388
|
-
//#endregion
|
|
3389
3341
|
//#region src/components/Individual/tasks/IndividualDropin/individualFormConfig.ts
|
|
3390
3342
|
var identityOnfidoBase = {
|
|
3391
3343
|
role: { rule: "requiredIfDecisionMakerTask" },
|
|
@@ -3611,7 +3563,7 @@ var onfidoLogo = lazy(() => import("./onfido-logo-CMRuSr8M.js"));
|
|
|
3611
3563
|
* Row formatting lives in {@link formatDataForSummary}. This component owns the lazily loaded
|
|
3612
3564
|
* provider logo, which the formatter cannot, and composes the sections into `Summary`.
|
|
3613
3565
|
*/
|
|
3614
|
-
var IndividualSummary = ({ data, forms, taskType, country, isSettingEnabled, problems, handleEditForm, existingTaxInformation }) => {
|
|
3566
|
+
var IndividualSummary = ({ data, forms, taskType, country, isSettingEnabled, problems, handleEditForm, existingTaxInformation, matchingScenario }) => {
|
|
3615
3567
|
const { t, i18n } = useTranslation(["common", "individual"]);
|
|
3616
3568
|
const sections = useMemo$1(() => formatDataForSummary({
|
|
3617
3569
|
data,
|
|
@@ -3622,6 +3574,7 @@ var IndividualSummary = ({ data, forms, taskType, country, isSettingEnabled, pro
|
|
|
3622
3574
|
country,
|
|
3623
3575
|
isSettingEnabled,
|
|
3624
3576
|
existingTaxInformation,
|
|
3577
|
+
matchingScenario,
|
|
3625
3578
|
instantVerificationDetails: /* @__PURE__ */ jsx(Image, {
|
|
3626
3579
|
lazyLoadedImage: onfidoLogo,
|
|
3627
3580
|
className: IndividualSummary_module_default.summaryContentLogo,
|
|
@@ -3635,7 +3588,8 @@ var IndividualSummary = ({ data, forms, taskType, country, isSettingEnabled, pro
|
|
|
3635
3588
|
taskType,
|
|
3636
3589
|
country,
|
|
3637
3590
|
isSettingEnabled,
|
|
3638
|
-
existingTaxInformation
|
|
3591
|
+
existingTaxInformation,
|
|
3592
|
+
matchingScenario
|
|
3639
3593
|
]);
|
|
3640
3594
|
const allValidationErrors = problems?.validationErrors ? Object.values(problems.validationErrors).reduce((acc, errors) => ({
|
|
3641
3595
|
...acc,
|
|
@@ -3724,27 +3678,31 @@ function IndividualDropin({ taskType = TaskTypes.INDIVIDUAL, parentLegalEntity,
|
|
|
3724
3678
|
* Analytics
|
|
3725
3679
|
*/
|
|
3726
3680
|
useTaskLandedEvent(taskType);
|
|
3727
|
-
const individualFieldValidations = useCallback$1((data) =>
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3681
|
+
const individualFieldValidations = useCallback$1((data) => {
|
|
3682
|
+
const additionalPersonalDetails = data?.additionalPersonalDetails;
|
|
3683
|
+
const residenceCountry = additionalPersonalDetails?.country ?? parentCountry;
|
|
3684
|
+
return {
|
|
3685
|
+
basicDetails: basicDetailsValidators({
|
|
3686
|
+
isFeatureEnabled,
|
|
3687
|
+
isSettingEnabled,
|
|
3688
|
+
country: residenceCountry
|
|
3689
|
+
}),
|
|
3690
|
+
additionalPersonalDetails: additionalPersonalDetailsValidators({
|
|
3691
|
+
country: residenceCountry,
|
|
3692
|
+
isFeatureEnabled,
|
|
3693
|
+
isSettingEnabled,
|
|
3694
|
+
taskType,
|
|
3695
|
+
idNumberType: additionalPersonalDetails?.typeOfIdentity,
|
|
3696
|
+
idNumberExempt: additionalPersonalDetails?.idNumberExempt,
|
|
3697
|
+
idNumber: additionalPersonalDetails?.idNumber,
|
|
3698
|
+
existingIdNumber: dataFromResponse.additionalPersonalDetails?.idNumber,
|
|
3699
|
+
formVerificationErrors: problems?.verificationErrors?.additionalPersonalDetails,
|
|
3700
|
+
t,
|
|
3701
|
+
taxIdNumberType: findExistingTaxInformation(additionalPersonalDetails?.taxInformation, residenceCountry)?.type
|
|
3702
|
+
}),
|
|
3703
|
+
inviteDetails: inviteDetailsValidators()
|
|
3704
|
+
};
|
|
3705
|
+
}, [
|
|
3748
3706
|
parentCountry,
|
|
3749
3707
|
dataFromResponse.additionalPersonalDetails?.idNumber,
|
|
3750
3708
|
t,
|
|
@@ -3815,7 +3773,8 @@ additionalPersonalDetails: check4DigitSsnFailed(problems?.verificationErrors?.ad
|
|
|
3815
3773
|
isSettingEnabled,
|
|
3816
3774
|
rootLegalEntity: parentLegalEntity,
|
|
3817
3775
|
problems,
|
|
3818
|
-
version: versionConfiguration?.version
|
|
3776
|
+
version: versionConfiguration?.version,
|
|
3777
|
+
existingTaxInformation: legalEntityResponse?.individual?.taxInformation
|
|
3819
3778
|
}), [
|
|
3820
3779
|
country,
|
|
3821
3780
|
matchingScenario,
|
|
@@ -3825,7 +3784,8 @@ additionalPersonalDetails: check4DigitSsnFailed(problems?.verificationErrors?.ad
|
|
|
3825
3784
|
parentLegalEntity,
|
|
3826
3785
|
taskType,
|
|
3827
3786
|
problems,
|
|
3828
|
-
versionConfiguration?.version
|
|
3787
|
+
versionConfiguration?.version,
|
|
3788
|
+
legalEntityResponse?.individual?.taxInformation
|
|
3829
3789
|
]);
|
|
3830
3790
|
const hasLiveSelfieErrorCode = hasLiveSelfieError(problems);
|
|
3831
3791
|
useEffect$1(() => {
|
|
@@ -4200,7 +4160,8 @@ additionalPersonalDetails: check4DigitSsnFailed(problems?.verificationErrors?.ad
|
|
|
4200
4160
|
isSettingEnabled,
|
|
4201
4161
|
problems,
|
|
4202
4162
|
handleEditForm: gotoFormByFormId,
|
|
4203
|
-
existingTaxInformation: legalEntityResponse?.individual?.taxInformation
|
|
4163
|
+
existingTaxInformation: legalEntityResponse?.individual?.taxInformation,
|
|
4164
|
+
matchingScenario
|
|
4204
4165
|
}),
|
|
4205
4166
|
asModal,
|
|
4206
4167
|
currentStep: steps.current,
|
|
@@ -5,13 +5,13 @@ try {
|
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
6
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
7
7
|
import { n as IconButton } from "./Button-EhGM-oCO.js";
|
|
8
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
8
|
+
import { i as useToggleContext } from "./Checkbox-BEkC71r4.js";
|
|
9
9
|
import { t as useBusinessLines } from "./useBusinessLines-0FcuDMzo.js";
|
|
10
|
-
import { o as Field, t as Select } from "./Select-
|
|
11
|
-
import { o as List } from "./dropinUtils-
|
|
10
|
+
import { o as Field, t as Select } from "./Select-Jjt3H6zs.js";
|
|
11
|
+
import { o as List } from "./dropinUtils-BAx_kWeq.js";
|
|
12
12
|
import { n as withForm } from "./formHook-Dgi2CgbT.js";
|
|
13
13
|
import { t as toTanStackValidators } from "./tanstackValidation-BgAM9eKo.js";
|
|
14
|
-
import { n as useIndustryCodes, t as industryCodeFieldMetadata } from "./fieldConfig-
|
|
14
|
+
import { n as useIndustryCodes, t as industryCodeFieldMetadata } from "./fieldConfig-Bv9qSPl1.js";
|
|
15
15
|
import { useMemo, useRef, useState } from "preact/hooks";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
17
17
|
import { useStore } from "@tanstack/preact-form";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1f3f9000-e4ff-4f02-9180-9bc0e54ab3b7", e._sentryDebugIdIdentifier = "sentry-dbid-1f3f9000-e4ff-4f02-9180-9bc0e54ab3b7");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { X as SPECIAL_CHARS, tt as getFormattingRegEx } from "./registerEmbed-
|
|
5
|
+
import { X as SPECIAL_CHARS, tt as getFormattingRegEx } from "./registerEmbed-Xubdbk-a.js";
|
|
6
6
|
import { r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
7
7
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
8
|
-
import { a as InputBase } from "./RadioGroup-
|
|
8
|
+
import { a as InputBase } from "./RadioGroup-Csw26Mhr.js";
|
|
9
9
|
import { n as formatDate, t as checkDateInputSupport } from "./InputDate.utils-D4Ov0KIl.js";
|
|
10
10
|
import { useCallback, useMemo } from "preact/hooks";
|
|
11
11
|
import { jsx } from "preact/jsx-runtime";
|
|
@@ -45,7 +45,7 @@ var formatAddressForCleanse = ({ street, street2, city, country, postalCode }) =
|
|
|
45
45
|
].filter(Boolean).join(" ");
|
|
46
46
|
};
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region src/components/Shared/
|
|
48
|
+
//#region src/components/Shared/fields/Address/validate.formats.ts
|
|
49
49
|
var createFormatByDigits = (digits) => {
|
|
50
50
|
return {
|
|
51
51
|
formatter: (val) => val ? val.replace(getFormattingRegEx("^\\d", "g"), "").substring(0, digits) : void 0,
|