@adyen/kyc-components 3.76.0-beta.1 → 4.0.0-beta.1
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-BOQpgDuh.js → AcceptTermsOfServiceComponent-BQ4Yct7L.js} +6 -6
- package/dist/{AccountSetupRejected-CLD5yPUd.js → AccountSetupRejected-UVhxMcAe.js} +2 -2
- package/dist/{Avatar-ByXDvRnN.js → Avatar-NEiNEcRx.js} +1 -1
- package/dist/{BusinessDetailsDropin-CC8AQSzz.js → BusinessDetailsDropin-l0xfPekL.js} +18 -47
- package/dist/{BusinessFinancingComponent-DaTK2ha9.js → BusinessFinancingComponent-Bs-poF2d.js} +2 -2
- package/dist/{BusinessFinancingDropin-Cxo-nBOC.js → BusinessFinancingDropin-DoRzdS4n.js} +10 -20
- package/dist/{BusinessFinancingPage-CBxphlTv.js → BusinessFinancingPage-DSlmJmOK.js} +2 -2
- package/dist/{BusinessTypeSelectionPage-BTtEGnSf.js → BusinessTypeSelectionPage-Bmi_8K2g.js} +4 -4
- package/dist/{ContractViewer-Df9tNJPa.js → ContractViewer-R4-gfVmp.js} +1 -1
- package/dist/{CreateIndividualComponent-CB4EKaBU.js → CreateIndividualComponent-D3aXuYRk.js} +3 -3
- package/dist/{CreateTransferInstrumentComponent-DzLl5c2J.js → CreateTransferInstrumentComponent-C-ncZ-A8.js} +2 -2
- package/dist/{CustomerSupport-WjBJL8ee.js → CustomerSupport-CMFRgQNa.js} +5 -5
- package/dist/{DebugModal-DTjZh61l.js → DebugModal-BEmhG3UP.js} +8 -8
- package/dist/{DecisionMakerDetailsPage-CGHxqfLV.js → DecisionMakerDetailsPage-DI2Ubmef.js} +3 -3
- package/dist/{DecisionMakers-Cq1ugA0Q.js → DecisionMakers-BKhtcs_K.js} +4 -4
- package/dist/{EmbeddedStatus-U4HvtsbX.js → EmbeddedStatus-BsZsXbKc.js} +2 -2
- package/dist/{FormEndState-DXjakR3n.js → FormEndState-C3HCmXcw.js} +1 -1
- package/dist/{FormFlow-DQdofZrs.js → FormFlow-Bt-mu4Wm.js} +2 -2
- package/dist/{IndividualOnfidoDropin-Ces-NVRq.js → IndividualOnfidoDropin-DGMCOm9M.js} +12 -80
- package/dist/{Introduction-CoAMVQ3N.js → Introduction-DJ6qIUPC.js} +3 -3
- package/dist/{LegalRepresentativeDetailsPage-DR4k-6tr.js → LegalRepresentativeDetailsPage-CyHwQR_W.js} +3 -3
- package/dist/{ManageIndividualComponent-DCy_23X2.js → ManageIndividualComponent-BIMCvcr2.js} +3 -3
- package/dist/{ManagePCIComponent-mIpoEgqY.js → ManagePCIComponent-Blj60xLa.js} +3 -3
- package/dist/{ManageTermsOfServiceComponent-BhbLMdNx.js → ManageTermsOfServiceComponent-CsM23jq3.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-BPiWJOhY.js → ManageTransferInstrumentComponent-Vut9_bRn.js} +3 -3
- package/dist/{OnboardingDropinComponent-BVaYr5u1.js → OnboardingDropinComponent-BW6er2HU.js} +44 -45
- package/dist/{ProviderButton-BhJVIjNR.js → ProviderButton-DAsW5EVa.js} +2 -2
- package/dist/{Review-C5hzFoFb.js → Review-DWDbL9-9.js} +3 -3
- package/dist/{RootBusinessDetailsPage-msInyOAG.js → RootBusinessDetailsPage-BTYIldSf.js} +2 -2
- package/dist/{RootIndividualDetailsPage-DkzqPD70.js → RootIndividualDetailsPage-DCxJ3ycQ.js} +3 -3
- package/dist/{SignPCIComponent-DGUa4ESJ.js → SignPCIComponent-kHaxhkWa.js} +5 -5
- package/dist/{SingpassSelection-ChJWE7tg.js → SingpassSelection-Dmlbiq4Z.js} +2 -2
- package/dist/{SoleProprietorshipPage-Bkz3cuhd.js → SoleProprietorshipPage-Bdhs90-q.js} +2 -2
- package/dist/{SourceOfFunds.module-D9RYIoX3.js → SourceOfFunds.module-xwHIboir.js} +1 -1
- package/dist/{SourceOfFundsPage-gHK01p0a.js → SourceOfFundsPage-Bj22DAFv.js} +9 -14
- package/dist/{StoreProvider-BPX6_P1w.js → StoreProvider-BmzY19Td.js} +423 -367
- package/dist/{TaskItemStatus-Cja3jHef.js → TaskItemStatus-CB6FEOnk.js} +2 -2
- package/dist/{TaxReportingDropin-EGclbYvF.js → TaxReportingDropin-jofokkei.js} +7 -7
- package/dist/{TileGroup-D2oyZXRy.js → TileGroup-i5Jc08ns.js} +2 -2
- package/dist/{TrustDetailsPage-BjZh9pfZ.js → TrustDetailsPage-B6HmvYUf.js} +9 -9
- package/dist/{TrustMemberCompanyPage-YzgDh_y0.js → TrustMemberCompanyPage-D3VJOq6a.js} +3 -3
- package/dist/{TrustMemberIndividualPage-B08_52rA.js → TrustMemberIndividualPage-1aeOYsnG.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-DECzh_NU.js → UnincorporatedPartnershipIndividualPage-Bt7e6ncF.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CY5rfvMd.js → UnincorporatedPartnershipMemberCompanyPage-Ck5C_SEU.js} +2 -2
- package/dist/{VerificationErrorAlert-BMxnbhxL.js → VerificationErrorAlert-DhtKOmjt.js} +1 -1
- package/dist/{ViewVerificationStatusComponent-MQ3YZjpk.js → ViewVerificationStatusComponent-DtKLcCGI.js} +2 -2
- 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/{css-CCYsn1Bx.js → css-CQUoQdd2.js} +1 -1
- package/dist/{getFieldsWithExistingData-Df64vw7x.js → getFieldsWithExistingData-BW8_TEQl.js} +2 -2
- package/dist/{hasDataChanged-sUtN0Sjv.js → hasDataChanged-Mu0HyZ3E.js} +1 -1
- package/dist/{json-BYBI9iH_.js → json-DWikzB4g.js} +1 -1
- package/dist/{localizeDateString-CNlJ2Twp.js → localizeDateString-QtCjf8Fg.js} +1 -1
- package/dist/{mapFinancialReportsToFinancialInformation-ByUX4IZt.js → mapFinancialReportsToFinancialInformation-C-2jp0wg.js} +2 -2
- package/dist/{plaintext-BuWLFFGU.js → plaintext-B39yQnOr.js} +1 -1
- package/dist/{resolveEnvironment-CeEOE-Ml.js → resolveEnvironment-Dx0BPNMa.js} +3 -3
- package/dist/{rules-BOvgh8q2.js → rules-CUANHpja.js} +2 -2
- package/dist/style.css +0 -19
- package/dist/styles-CLV89_hH.js +0 -19
- package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +3 -3
- package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +0 -1
- package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +0 -1
- package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +2 -1
- package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +1 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +5 -3
- package/dist/types/components/Shared/fields/CountryField/CountryField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/AddressField.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/types.d.ts +0 -1
- package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +1 -2
- package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -1
- package/dist/types/components/ui/atoms/Field/Field.types.d.ts +2 -0
- package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +1 -5
- package/dist/types/context/StateContext/types.d.ts +0 -1
- package/dist/types/hooks/useForm/types.d.ts +1 -2
- package/dist/types/utils/api/processCapabilitites.d.ts +2 -1
- package/dist/{useMultiForm-CZt22ApL.js → useMultiForm-Bwx2nVhh.js} +2 -2
- package/dist/{useOnboardingStatus-DUpCpEX5.js → useOnboardingStatus-Cwba-HzS.js} +1 -1
- package/dist/{useSalesChannelsSettings-7_LCHKOD.js → useSalesChannelsSettings-BLzegVJh.js} +1 -1
- package/dist/{useTermsOfServiceStatus-XQrO9fJx.js → useTermsOfServiceStatus-C-i9mF4m.js} +1 -1
- package/dist/{useUpdateLegalEntity-n02Bk4nJ.js → useUpdateLegalEntity-xQlAqIqy.js} +2 -2
- package/dist/{utils-0EQ0eKAn.js → utils-DXv7uAh6.js} +4 -4
- package/dist/{validate-DVNNANhX.js → validate-BN5p-GhK.js} +2 -2
- package/dist/{yaml-Ca7Tl3w_.js → yaml-jFdy-qnY.js} +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout,
|
|
|
19
19
|
{
|
|
20
20
|
try {
|
|
21
21
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
22
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
22
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f23c6311-2b3d-40e2-9197-63f167055a5f", e._sentryDebugIdIdentifier = "sentry-dbid-f23c6311-2b3d-40e2-9197-63f167055a5f");
|
|
23
23
|
} catch (e) {
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -5638,7 +5638,6 @@ function Checkbox({
|
|
|
5638
5638
|
name,
|
|
5639
5639
|
value,
|
|
5640
5640
|
className,
|
|
5641
|
-
classNameModifiers = [],
|
|
5642
5641
|
label,
|
|
5643
5642
|
isInvalid,
|
|
5644
5643
|
onChange,
|
|
@@ -5680,8 +5679,7 @@ function Checkbox({
|
|
|
5680
5679
|
className: cx([
|
|
5681
5680
|
"adyen-kyc-checkbox__input",
|
|
5682
5681
|
[className],
|
|
5683
|
-
{ "adyen-kyc-checkbox__input--invalid": isInvalid }
|
|
5684
|
-
classNameModifiers.map((m) => `adyen-kyc-input--${m}`)
|
|
5682
|
+
{ "adyen-kyc-checkbox__input--invalid": isInvalid }
|
|
5685
5683
|
]),
|
|
5686
5684
|
type: "checkbox",
|
|
5687
5685
|
onClick: (event) => {
|
|
@@ -5855,6 +5853,7 @@ const Field = ({
|
|
|
5855
5853
|
showErrorIconBottom = false,
|
|
5856
5854
|
el = "label",
|
|
5857
5855
|
wrapperRef,
|
|
5856
|
+
dataTestId,
|
|
5858
5857
|
onBlur,
|
|
5859
5858
|
onFieldBlur,
|
|
5860
5859
|
onFocus,
|
|
@@ -5898,6 +5897,7 @@ const Field = ({
|
|
|
5898
5897
|
}
|
|
5899
5898
|
),
|
|
5900
5899
|
ref: wrapperRef,
|
|
5900
|
+
"data-testid": dataTestId,
|
|
5901
5901
|
children: /* @__PURE__ */ jsxs(
|
|
5902
5902
|
MaybeLabelElement,
|
|
5903
5903
|
{
|
|
@@ -9283,6 +9283,29 @@ function ServerValidationErrors({
|
|
|
9283
9283
|
)) })
|
|
9284
9284
|
] }) });
|
|
9285
9285
|
}
|
|
9286
|
+
const KEY_MARKETS = [
|
|
9287
|
+
CountryCodes.UnitedStates,
|
|
9288
|
+
CountryCodes.UnitedKingdom,
|
|
9289
|
+
CountryCodes.Germany,
|
|
9290
|
+
CountryCodes.France,
|
|
9291
|
+
CountryCodes.Canada,
|
|
9292
|
+
CountryCodes.Australia
|
|
9293
|
+
];
|
|
9294
|
+
function isOnfidoAutofillFlowEnabled(country, taskType, isExperimentEnabled) {
|
|
9295
|
+
const market = KEY_MARKETS.includes(country) ? "KeyMarkets" : "AdditionalMarkets";
|
|
9296
|
+
let type;
|
|
9297
|
+
switch (taskType) {
|
|
9298
|
+
case TaskTypes.INDIVIDUAL:
|
|
9299
|
+
type = "PureIndividuals";
|
|
9300
|
+
break;
|
|
9301
|
+
case TaskTypes.DECISION_MAKER:
|
|
9302
|
+
type = "DecisionMakers";
|
|
9303
|
+
break;
|
|
9304
|
+
default:
|
|
9305
|
+
return false;
|
|
9306
|
+
}
|
|
9307
|
+
return isExperimentEnabled(`EnableAutofillFlowFor${type}In${market}`);
|
|
9308
|
+
}
|
|
9286
9309
|
var VerificationErrorType = /* @__PURE__ */ ((VerificationErrorType2) => {
|
|
9287
9310
|
VerificationErrorType2["DATA_MISSING"] = "dataMissing";
|
|
9288
9311
|
VerificationErrorType2["INVALID_INPUT"] = "invalidInput";
|
|
@@ -10115,7 +10138,12 @@ const mapPayoutAccountSchemaToApiBankAccount = (payoutAccount, bankCountry) => (
|
|
|
10115
10138
|
});
|
|
10116
10139
|
const useCapabilityProblems = () => {
|
|
10117
10140
|
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
10118
|
-
|
|
10141
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
10142
|
+
return rootLegalEntity ? getCapabilityProblems(
|
|
10143
|
+
rootLegalEntity,
|
|
10144
|
+
getLegalEntityCountry(rootLegalEntity),
|
|
10145
|
+
isExperimentEnabled
|
|
10146
|
+
) : void 0;
|
|
10119
10147
|
};
|
|
10120
10148
|
const getProblemsForEntity = (capabilityProblems, entityType, entityId) => {
|
|
10121
10149
|
var _a2;
|
|
@@ -14097,7 +14125,7 @@ const useForwardedRef = (forwardedRef) => {
|
|
|
14097
14125
|
return forwardedRef ?? backupRef;
|
|
14098
14126
|
};
|
|
14099
14127
|
const InputEmail = forwardRef(
|
|
14100
|
-
({
|
|
14128
|
+
({ onInput, transformInput, ...props }, ref) => {
|
|
14101
14129
|
const [cursorPosition, setCursorPosition] = useState(null);
|
|
14102
14130
|
const localRef = useForwardedRef(ref);
|
|
14103
14131
|
const inputHandler = useCallback(
|
|
@@ -14127,7 +14155,6 @@ const InputEmail = forwardRef(
|
|
|
14127
14155
|
InputBase,
|
|
14128
14156
|
{
|
|
14129
14157
|
...props,
|
|
14130
|
-
classNameModifiers: [...classNameModifiers],
|
|
14131
14158
|
onInput: inputHandler,
|
|
14132
14159
|
ref: localRef,
|
|
14133
14160
|
type: "email",
|
|
@@ -14137,7 +14164,7 @@ const InputEmail = forwardRef(
|
|
|
14137
14164
|
}
|
|
14138
14165
|
);
|
|
14139
14166
|
const InputTelephone = forwardRef(
|
|
14140
|
-
({
|
|
14167
|
+
({ onInput, transformInput, ...props }, ref) => {
|
|
14141
14168
|
const [cursorPosition, setCursorPosition] = useState(null);
|
|
14142
14169
|
const localRef = useForwardedRef(ref);
|
|
14143
14170
|
const inputHandler = useCallback(
|
|
@@ -14167,7 +14194,7 @@ const InputTelephone = forwardRef(
|
|
|
14167
14194
|
InputBase,
|
|
14168
14195
|
{
|
|
14169
14196
|
...props,
|
|
14170
|
-
classNameModifiers: [
|
|
14197
|
+
classNameModifiers: ["large"],
|
|
14171
14198
|
onInput: inputHandler,
|
|
14172
14199
|
ref: localRef,
|
|
14173
14200
|
type: "tel"
|
|
@@ -14258,8 +14285,6 @@ const Inner = ({
|
|
|
14258
14285
|
displayValue,
|
|
14259
14286
|
inputRef,
|
|
14260
14287
|
type,
|
|
14261
|
-
classNameModifiers,
|
|
14262
|
-
showingMismatch,
|
|
14263
14288
|
id,
|
|
14264
14289
|
onInput,
|
|
14265
14290
|
onBlur,
|
|
@@ -14288,10 +14313,6 @@ const Inner = ({
|
|
|
14288
14313
|
readonly,
|
|
14289
14314
|
placeholder,
|
|
14290
14315
|
value: displayValue,
|
|
14291
|
-
classNameModifiers: [
|
|
14292
|
-
...(classNameModifiers == null ? void 0 : classNameModifiers.input) ?? [],
|
|
14293
|
-
...showingMismatch ? ["mismatch"] : []
|
|
14294
|
-
],
|
|
14295
14316
|
onInput,
|
|
14296
14317
|
onPaste,
|
|
14297
14318
|
onKeyDown,
|
|
@@ -14318,10 +14339,6 @@ const Inner = ({
|
|
|
14318
14339
|
readonly,
|
|
14319
14340
|
placeholder,
|
|
14320
14341
|
value: displayValue,
|
|
14321
|
-
classNameModifiers: [
|
|
14322
|
-
...(classNameModifiers == null ? void 0 : classNameModifiers.input) ?? [],
|
|
14323
|
-
...showingMismatch ? ["mismatch"] : []
|
|
14324
|
-
],
|
|
14325
14342
|
onInput,
|
|
14326
14343
|
onPaste,
|
|
14327
14344
|
onKeyDown,
|
|
@@ -14348,10 +14365,6 @@ const Inner = ({
|
|
|
14348
14365
|
readonly,
|
|
14349
14366
|
placeholder,
|
|
14350
14367
|
value: displayValue,
|
|
14351
|
-
classNameModifiers: [
|
|
14352
|
-
...(classNameModifiers == null ? void 0 : classNameModifiers.input) ?? [],
|
|
14353
|
-
...showingMismatch ? ["mismatch"] : []
|
|
14354
|
-
],
|
|
14355
14368
|
onInput,
|
|
14356
14369
|
onPaste,
|
|
14357
14370
|
onKeyDown,
|
|
@@ -14380,7 +14393,6 @@ const MaskedInput = ({
|
|
|
14380
14393
|
disabled = false,
|
|
14381
14394
|
optional = false,
|
|
14382
14395
|
formatGuidance = "",
|
|
14383
|
-
classNameModifiers,
|
|
14384
14396
|
acceptObscuredValue = false,
|
|
14385
14397
|
helper,
|
|
14386
14398
|
helperPosition = "below",
|
|
@@ -14596,7 +14608,6 @@ const MaskedInput = ({
|
|
|
14596
14608
|
errorMessage: inputState.errorMessage || inputState.isError,
|
|
14597
14609
|
helper: getHelper(),
|
|
14598
14610
|
helperPosition,
|
|
14599
|
-
classNameModifiers: classNameModifiers == null ? void 0 : classNameModifiers.field,
|
|
14600
14611
|
disabled,
|
|
14601
14612
|
optional,
|
|
14602
14613
|
children: ({ onBlurHandler: fieldOnBlur, onFocusHandler: fieldOnFocus, id, ...childProps }) => /* @__PURE__ */ jsx$1(
|
|
@@ -14613,7 +14624,6 @@ const MaskedInput = ({
|
|
|
14613
14624
|
inputRef,
|
|
14614
14625
|
inputState,
|
|
14615
14626
|
type,
|
|
14616
|
-
classNameModifiers,
|
|
14617
14627
|
showingMismatch,
|
|
14618
14628
|
onInput: handleInput,
|
|
14619
14629
|
onBlur: (event) => handleBlur(event, fieldOnBlur),
|
|
@@ -14636,7 +14646,6 @@ const MaskedInput = ({
|
|
|
14636
14646
|
inputRef,
|
|
14637
14647
|
inputState,
|
|
14638
14648
|
type,
|
|
14639
|
-
classNameModifiers,
|
|
14640
14649
|
showingMismatch,
|
|
14641
14650
|
onInput: handleInput,
|
|
14642
14651
|
onBlur: (event) => handleBlur(event),
|
|
@@ -14748,11 +14757,11 @@ const simpleBankAccountNumberMetadata = (example, length, maxLength) => {
|
|
|
14748
14757
|
}
|
|
14749
14758
|
};
|
|
14750
14759
|
};
|
|
14751
|
-
const defaultFieldMetadata$
|
|
14760
|
+
const defaultFieldMetadata$9 = {
|
|
14752
14761
|
label: "bankAccountNumber",
|
|
14753
14762
|
validators: isNotEmptyValidator
|
|
14754
14763
|
};
|
|
14755
|
-
const defaultFieldConfig$
|
|
14764
|
+
const defaultFieldConfig$8 = {
|
|
14756
14765
|
[CountryCodes.Denmark]: simpleBankAccountNumberMetadata("2621955959", 10),
|
|
14757
14766
|
[CountryCodes.Norway]: simpleBankAccountNumberMetadata("86011117947", 11),
|
|
14758
14767
|
[CountryCodes.UnitedKingdom]: simpleBankAccountNumberMetadata("10000003", 8),
|
|
@@ -14833,8 +14842,8 @@ const defaultFieldConfig$9 = {
|
|
|
14833
14842
|
const bankAccountNumberFields = ["bankAccountNumber"];
|
|
14834
14843
|
function BankAccountNumber(props) {
|
|
14835
14844
|
const { i18n } = useI18nContext();
|
|
14836
|
-
const { country, fieldConfig: fieldConfig2 = defaultFieldConfig$
|
|
14837
|
-
const metadata = resolveFieldMetadata(fieldConfig2[country], {}, defaultFieldMetadata$
|
|
14845
|
+
const { country, fieldConfig: fieldConfig2 = defaultFieldConfig$8, onFocus, onBlur } = props;
|
|
14846
|
+
const metadata = resolveFieldMetadata(fieldConfig2[country], {}, defaultFieldMetadata$9);
|
|
14838
14847
|
const mergedProps = mergeFieldMetadataIntoProps("bankAccountNumber", metadata, props);
|
|
14839
14848
|
const { handleChangeFor, data, valid, errors, fieldProblems } = useForm({
|
|
14840
14849
|
...mergedProps,
|
|
@@ -14867,7 +14876,6 @@ function BankAccountNumber(props) {
|
|
|
14867
14876
|
errorMessage: formUtils.getErrorMessage("bankAccountNumber", errors, fieldProblems),
|
|
14868
14877
|
"aria-required": true,
|
|
14869
14878
|
"aria-invalid": !valid.bankAccountNumber,
|
|
14870
|
-
classNameModifiers: { field: ["bankAccountNumber"], input: ["bankAccountNumber"] },
|
|
14871
14879
|
onBlur: handleBlur,
|
|
14872
14880
|
onInput: handleChangeFor("bankAccountNumber", "input"),
|
|
14873
14881
|
onFocus,
|
|
@@ -14900,7 +14908,6 @@ function BankCity(props) {
|
|
|
14900
14908
|
{
|
|
14901
14909
|
name: "bankCity",
|
|
14902
14910
|
label: formUtils.getLabel("bankCity"),
|
|
14903
|
-
classNameModifiers: ["bankCity"],
|
|
14904
14911
|
errorMessage: formUtils.getErrorMessage("bankCity", errors, fieldProblems),
|
|
14905
14912
|
isValid: valid.bankCity,
|
|
14906
14913
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
@@ -14919,7 +14926,7 @@ function BankCity(props) {
|
|
|
14919
14926
|
}
|
|
14920
14927
|
);
|
|
14921
14928
|
}
|
|
14922
|
-
const defaultFieldMetadata$
|
|
14929
|
+
const defaultFieldMetadata$8 = {
|
|
14923
14930
|
label: "bankCode",
|
|
14924
14931
|
validators: isNotEmptyValidator
|
|
14925
14932
|
};
|
|
@@ -14937,7 +14944,7 @@ const simpleBankCodeMetadata = (length, example, label) => ({
|
|
|
14937
14944
|
}
|
|
14938
14945
|
}
|
|
14939
14946
|
});
|
|
14940
|
-
const defaultFieldConfig$
|
|
14947
|
+
const defaultFieldConfig$7 = {
|
|
14941
14948
|
[CountryCodes.Brazil]: simpleBankCodeMetadata(3, "123"),
|
|
14942
14949
|
[CountryCodes.Canada]: simpleBankCodeMetadata(3, "100", "institutionNumber"),
|
|
14943
14950
|
[CountryCodes.Denmark]: simpleBankCodeMetadata(4, "5051"),
|
|
@@ -14951,8 +14958,8 @@ const defaultFieldConfig$8 = {
|
|
|
14951
14958
|
const bankCodeFields = ["bankCode"];
|
|
14952
14959
|
function BankCode(props) {
|
|
14953
14960
|
const { i18n } = useI18nContext();
|
|
14954
|
-
const { country, fieldConfig: fieldConfig2 = defaultFieldConfig$
|
|
14955
|
-
const metadata = resolveFieldMetadata(fieldConfig2[country], {}, defaultFieldMetadata$
|
|
14961
|
+
const { country, fieldConfig: fieldConfig2 = defaultFieldConfig$7 } = props;
|
|
14962
|
+
const metadata = resolveFieldMetadata(fieldConfig2[country], {}, defaultFieldMetadata$8);
|
|
14956
14963
|
const mergedProps = mergeFieldMetadataIntoProps("bankCode", metadata, props);
|
|
14957
14964
|
const { handleChangeFor, data, valid, errors, fieldProblems } = useForm({
|
|
14958
14965
|
...mergedProps,
|
|
@@ -14974,7 +14981,6 @@ function BankCode(props) {
|
|
|
14974
14981
|
name: "bankCode",
|
|
14975
14982
|
type: "text",
|
|
14976
14983
|
label: formUtils.getLabel("bankCode"),
|
|
14977
|
-
classNameModifiers: { field: ["bankCode"], input: ["bankCode"] },
|
|
14978
14984
|
errorMessage: formUtils.getErrorMessage("bankCode", errors, fieldProblems),
|
|
14979
14985
|
formatGuidance: formUtils.getGuidanceText("bankCode"),
|
|
14980
14986
|
...formUtils.getMask("bankCode"),
|
|
@@ -15011,7 +15017,6 @@ function BankName(props) {
|
|
|
15011
15017
|
{
|
|
15012
15018
|
name: "bankName",
|
|
15013
15019
|
label: formUtils.getLabel("bankName"),
|
|
15014
|
-
classNameModifiers: ["bankName"],
|
|
15015
15020
|
errorMessage: formUtils.getErrorMessage("bankName", errors, fieldProblems),
|
|
15016
15021
|
isValid: valid.bankName,
|
|
15017
15022
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
@@ -15030,11 +15035,11 @@ function BankName(props) {
|
|
|
15030
15035
|
}
|
|
15031
15036
|
);
|
|
15032
15037
|
}
|
|
15033
|
-
const defaultFieldMetadata$
|
|
15038
|
+
const defaultFieldMetadata$7 = {
|
|
15034
15039
|
label: "branchCode",
|
|
15035
15040
|
validators: isNotEmptyValidator
|
|
15036
15041
|
};
|
|
15037
|
-
const defaultFieldConfig$
|
|
15042
|
+
const defaultFieldConfig$6 = {
|
|
15038
15043
|
[CountryCodes.UnitedKingdom]: {
|
|
15039
15044
|
label: "sortCode",
|
|
15040
15045
|
validators: validatePatternOnBlur(/^\d{6}$/),
|
|
@@ -15123,8 +15128,8 @@ const defaultFieldConfig$7 = {
|
|
|
15123
15128
|
const branchCodeFields = ["branchCode"];
|
|
15124
15129
|
function BranchCode(props) {
|
|
15125
15130
|
const { i18n } = useI18nContext();
|
|
15126
|
-
const { country, fieldConfig: fieldConfig2 = defaultFieldConfig$
|
|
15127
|
-
const metadata = resolveFieldMetadata(fieldConfig2[country], {}, defaultFieldMetadata$
|
|
15131
|
+
const { country, fieldConfig: fieldConfig2 = defaultFieldConfig$6, onFocus, onBlur } = props;
|
|
15132
|
+
const metadata = resolveFieldMetadata(fieldConfig2[country], {}, defaultFieldMetadata$7);
|
|
15128
15133
|
const mergedProps = mergeFieldMetadataIntoProps("branchCode", metadata, props);
|
|
15129
15134
|
const { handleChangeFor, data, valid, errors, fieldProblems } = useForm({
|
|
15130
15135
|
...mergedProps,
|
|
@@ -15152,7 +15157,6 @@ function BranchCode(props) {
|
|
|
15152
15157
|
label: formUtils.getLabel("branchCode"),
|
|
15153
15158
|
formatGuidance: formUtils.getGuidanceText("branchCode"),
|
|
15154
15159
|
...formUtils.getMask("branchCode"),
|
|
15155
|
-
classNameModifiers: { field: ["branchCode"], input: ["branchCode"] },
|
|
15156
15160
|
errorMessage: formUtils.getErrorMessage("branchCode", errors, fieldProblems),
|
|
15157
15161
|
isValid: valid.branchCode,
|
|
15158
15162
|
value: data.branchCode ?? "",
|
|
@@ -15331,11 +15335,11 @@ const gbIbanMetadata = ibanMetadata(
|
|
|
15331
15335
|
"GB09 BARC 2003 9554 8297 59",
|
|
15332
15336
|
true
|
|
15333
15337
|
);
|
|
15334
|
-
const defaultFieldMetadata$
|
|
15338
|
+
const defaultFieldMetadata$6 = {
|
|
15335
15339
|
label: "iban",
|
|
15336
15340
|
validators: isNotEmptyValidator
|
|
15337
15341
|
};
|
|
15338
|
-
const defaultFieldConfig$
|
|
15342
|
+
const defaultFieldConfig$5 = {
|
|
15339
15343
|
[CountryCodes.Austria]: ibanMetadata(CountryCodes.Austria, 18, "AT88 5400 0746 7265 9747"),
|
|
15340
15344
|
[CountryCodes.Belgium]: ibanMetadata(CountryCodes.Belgium, 14, "BE59 9788 6743 2226"),
|
|
15341
15345
|
[CountryCodes.Croatia]: ibanMetadata(CountryCodes.Croatia, 19, "HR51 2484 0083 5929 6973 8"),
|
|
@@ -15453,8 +15457,8 @@ const defaultFieldConfig$6 = {
|
|
|
15453
15457
|
const ibanFields = ["iban"];
|
|
15454
15458
|
function Iban(props) {
|
|
15455
15459
|
const { i18n } = useI18nContext();
|
|
15456
|
-
const { country, fieldConfig: fieldConfig2 = defaultFieldConfig$
|
|
15457
|
-
const metadata = resolveFieldMetadata(fieldConfig2[country], {}, defaultFieldMetadata$
|
|
15460
|
+
const { country, fieldConfig: fieldConfig2 = defaultFieldConfig$5, data: ibanData, obscuredFields } = props;
|
|
15461
|
+
const metadata = resolveFieldMetadata(fieldConfig2[country], {}, defaultFieldMetadata$6);
|
|
15458
15462
|
const mergedProps = mergeFieldMetadataIntoProps("iban", metadata, props);
|
|
15459
15463
|
const { handleChangeFor, data, valid, errors, fieldProblems } = useForm({
|
|
15460
15464
|
...mergedProps,
|
|
@@ -15483,7 +15487,6 @@ function Iban(props) {
|
|
|
15483
15487
|
isValid: valid.iban,
|
|
15484
15488
|
value: data.iban ?? "",
|
|
15485
15489
|
readonly: formUtils.isReadOnly("iban"),
|
|
15486
|
-
classNameModifiers: { field: ["iban"], input: ["iban"] },
|
|
15487
15490
|
onInput: handleChangeFor("iban", "blur"),
|
|
15488
15491
|
onBlur: handleChangeFor("iban", "blur"),
|
|
15489
15492
|
"aria-required": true,
|
|
@@ -15534,7 +15537,6 @@ function SwiftCode(props) {
|
|
|
15534
15537
|
label: formUtils.getLabel("swiftCode"),
|
|
15535
15538
|
formatGuidance: formUtils.getGuidanceText("swiftCode"),
|
|
15536
15539
|
...formUtils.getMask("swiftCode"),
|
|
15537
|
-
classNameModifiers: { field: ["swiftCode"], input: ["swiftCode"] },
|
|
15538
15540
|
errorMessage: formUtils.getErrorMessage("swiftCode", errors, fieldProblems),
|
|
15539
15541
|
isValid: valid.swiftCode,
|
|
15540
15542
|
value: data.swiftCode ?? "",
|
|
@@ -16210,7 +16212,6 @@ function CountryField({
|
|
|
16210
16212
|
handleChangeFor,
|
|
16211
16213
|
helperText,
|
|
16212
16214
|
allowedCountries,
|
|
16213
|
-
classNameModifiers = ["country"],
|
|
16214
16215
|
handleBlur
|
|
16215
16216
|
}) {
|
|
16216
16217
|
const { i18n } = useI18nContext();
|
|
@@ -16227,10 +16228,10 @@ function CountryField({
|
|
|
16227
16228
|
name,
|
|
16228
16229
|
label: (labels == null ? void 0 : labels.country) || i18n.get("country"),
|
|
16229
16230
|
errorMessage: errors.country,
|
|
16230
|
-
classNameModifiers,
|
|
16231
|
+
classNameModifiers: ["country"],
|
|
16231
16232
|
isValid: valid.country,
|
|
16232
16233
|
helper: helperText == null ? void 0 : helperText.country,
|
|
16233
|
-
|
|
16234
|
+
dataTestId: "country",
|
|
16234
16235
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
16235
16236
|
Select,
|
|
16236
16237
|
{
|
|
@@ -16415,7 +16416,6 @@ function PayoutVerificationMethod(props) {
|
|
|
16415
16416
|
labels: { country: formUtils.getLabel("bankCountry", "bankAccountCountryRegion") },
|
|
16416
16417
|
readonly: !intraRegionCrossBorderPayoutsAllowed || allowedBankCountries.length === 1 || bankInfoValidated,
|
|
16417
16418
|
allowedCountries: allowedBankCountries,
|
|
16418
|
-
classNameModifiers: ["country"],
|
|
16419
16419
|
handleChangeFor: () => (e) => {
|
|
16420
16420
|
clearPayoutAccountDetails();
|
|
16421
16421
|
return handleChangeFor("bankCountry", "input")(e);
|
|
@@ -17373,7 +17373,6 @@ function BusinessRegistrationNumberField({
|
|
|
17373
17373
|
{
|
|
17374
17374
|
"aria-required": true,
|
|
17375
17375
|
"aria-invalid": !valid.registrationNumber,
|
|
17376
|
-
classNameModifiers: { field: ["registrationNumber"], input: ["registrationNumberInput"] },
|
|
17377
17376
|
name: "registrationNumber",
|
|
17378
17377
|
type: "text",
|
|
17379
17378
|
value: (data == null ? void 0 : data.registrationNumber) ?? "",
|
|
@@ -17392,28 +17391,20 @@ function BusinessRegistrationNumberField({
|
|
|
17392
17391
|
...mask
|
|
17393
17392
|
}
|
|
17394
17393
|
),
|
|
17395
|
-
canExempt && !showExemptedOption && /* @__PURE__ */ jsx$1(
|
|
17396
|
-
|
|
17394
|
+
canExempt && !showExemptedOption && /* @__PURE__ */ jsx$1(Field, { el: "fieldset", name: "exemptedFromRegistrationNumber", children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
17395
|
+
Checkbox,
|
|
17397
17396
|
{
|
|
17398
|
-
|
|
17397
|
+
...childProps,
|
|
17398
|
+
"aria-required": false,
|
|
17399
|
+
"aria-invalid": false,
|
|
17399
17400
|
name: "exemptedFromRegistrationNumber",
|
|
17400
|
-
|
|
17401
|
-
|
|
17402
|
-
|
|
17403
|
-
|
|
17404
|
-
|
|
17405
|
-
"aria-required": false,
|
|
17406
|
-
"aria-invalid": false,
|
|
17407
|
-
name: "exemptedFromRegistrationNumber",
|
|
17408
|
-
value: "exemptedFromRegistrationNumber",
|
|
17409
|
-
checked: Boolean(data.exemptedFromRegistrationNumber),
|
|
17410
|
-
label: labels == null ? void 0 : labels.exemptedFromRegistrationNumber,
|
|
17411
|
-
readonly,
|
|
17412
|
-
onChange: handleExemptedFromRegistrationNumber
|
|
17413
|
-
}
|
|
17414
|
-
)
|
|
17401
|
+
value: "exemptedFromRegistrationNumber",
|
|
17402
|
+
checked: Boolean(data.exemptedFromRegistrationNumber),
|
|
17403
|
+
label: labels == null ? void 0 : labels.exemptedFromRegistrationNumber,
|
|
17404
|
+
readonly,
|
|
17405
|
+
onChange: handleExemptedFromRegistrationNumber
|
|
17415
17406
|
}
|
|
17416
|
-
)
|
|
17407
|
+
) })
|
|
17417
17408
|
] });
|
|
17418
17409
|
}
|
|
17419
17410
|
const addressFields = [
|
|
@@ -17565,7 +17556,6 @@ function StateField({
|
|
|
17565
17556
|
readonly,
|
|
17566
17557
|
handleChangeFor,
|
|
17567
17558
|
selectedCountry,
|
|
17568
|
-
classNameModifiers = ["stateOrProvince"],
|
|
17569
17559
|
handleBlur
|
|
17570
17560
|
}) {
|
|
17571
17561
|
const { i18n } = useI18nContext();
|
|
@@ -17581,9 +17571,9 @@ function StateField({
|
|
|
17581
17571
|
{
|
|
17582
17572
|
name: "stateOrProvince",
|
|
17583
17573
|
label: (labels == null ? void 0 : labels.stateOrProvince) || i18n.get(labelKey),
|
|
17584
|
-
classNameModifiers,
|
|
17585
17574
|
errorMessage: errors.stateOrProvince,
|
|
17586
17575
|
isValid: valid.stateOrProvince,
|
|
17576
|
+
dataTestId: "stateOrProvince",
|
|
17587
17577
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
17588
17578
|
Select,
|
|
17589
17579
|
{
|
|
@@ -18284,7 +18274,6 @@ function TaxInformationField({
|
|
|
18284
18274
|
"aria-required": true,
|
|
18285
18275
|
"aria-invalid": !valid.taxInformation,
|
|
18286
18276
|
name: "taxInformation",
|
|
18287
|
-
classNameModifiers: { field: ["taxInformation"], input: ["taxInformationInput"] },
|
|
18288
18277
|
label: labels.taxInformation ?? "",
|
|
18289
18278
|
formatGuidance: (guidanceText == null ? void 0 : guidanceText.taxInformation) ?? "",
|
|
18290
18279
|
value: (currentCountryTaxInformation == null ? void 0 : currentCountryTaxInformation.number) ?? "",
|
|
@@ -18300,7 +18289,7 @@ function TaxInformationField({
|
|
|
18300
18289
|
...mask
|
|
18301
18290
|
}
|
|
18302
18291
|
),
|
|
18303
|
-
canExempt && !showTaxIdExemptedOptions && /* @__PURE__ */ jsx$1(Field, { el: "fieldset", name: "exemptedFromTax",
|
|
18292
|
+
canExempt && !showTaxIdExemptedOptions && /* @__PURE__ */ jsx$1(Field, { el: "fieldset", name: "exemptedFromTax", children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
18304
18293
|
Checkbox,
|
|
18305
18294
|
{
|
|
18306
18295
|
...childProps,
|
|
@@ -18337,7 +18326,7 @@ function Currency({
|
|
|
18337
18326
|
helper: helperText == null ? void 0 : helperText.currency,
|
|
18338
18327
|
errorMessage: errors.currency,
|
|
18339
18328
|
isValid: valid.currency,
|
|
18340
|
-
|
|
18329
|
+
dataTestId: "currency",
|
|
18341
18330
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
18342
18331
|
Select,
|
|
18343
18332
|
{
|
|
@@ -18401,7 +18390,6 @@ function FinancialReportingDate({
|
|
|
18401
18390
|
helperPosition: "below",
|
|
18402
18391
|
errorMessage: errors.financialReportingDate,
|
|
18403
18392
|
isValid: valid.financialReportingDate,
|
|
18404
|
-
classNameModifiers: ["financialReportingDate"],
|
|
18405
18393
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
18406
18394
|
InputDate,
|
|
18407
18395
|
{
|
|
@@ -18442,7 +18430,6 @@ function NumberOfEmployees({
|
|
|
18442
18430
|
helper: helperText == null ? void 0 : helperText.numberOfEmployees,
|
|
18443
18431
|
errorMessage: errors.numberOfEmployees,
|
|
18444
18432
|
isValid: valid.numberOfEmployees,
|
|
18445
|
-
classNameModifiers: ["numberOfEmployees"],
|
|
18446
18433
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
18447
18434
|
InputNumber,
|
|
18448
18435
|
{
|
|
@@ -19946,10 +19933,10 @@ const businessRegistrationNumberPatterns = {
|
|
|
19946
19933
|
default: /^\d{9}$/
|
|
19947
19934
|
}
|
|
19948
19935
|
};
|
|
19949
|
-
const
|
|
19936
|
+
const registrationNumberDefaultFieldMetadata = {
|
|
19950
19937
|
label: "registrationNumber"
|
|
19951
19938
|
};
|
|
19952
|
-
const
|
|
19939
|
+
const registrationNumberDefaultFieldConfig = {
|
|
19953
19940
|
[CountryCodes.Australia]: ({ companyType }) => {
|
|
19954
19941
|
if (companyType === CompanyTypesValue.INCORPORATED_ASSOCIATION) {
|
|
19955
19942
|
return {
|
|
@@ -20773,6 +20760,44 @@ const defaultFieldConfig$5 = {
|
|
|
20773
20760
|
guidanceText: state ? stateFormatGuidanceText[state] : stateFormatGuidanceText.default
|
|
20774
20761
|
})
|
|
20775
20762
|
};
|
|
20763
|
+
const exemptFromRegistrationNumberDefaultFieldMetadata = {
|
|
20764
|
+
label: "iDontHaveARegistrationNumber"
|
|
20765
|
+
};
|
|
20766
|
+
const exemptFromRegistrationNumberDefaultFieldConfig = {
|
|
20767
|
+
[CountryCodes.Australia]: {
|
|
20768
|
+
label: "doNotHaveAcn"
|
|
20769
|
+
},
|
|
20770
|
+
[CountryCodes.Austria]: {
|
|
20771
|
+
label: "doNotHaveFirmenbuchnummer"
|
|
20772
|
+
},
|
|
20773
|
+
[CountryCodes.Finland]: {
|
|
20774
|
+
label: "doNotHaveYTunnus"
|
|
20775
|
+
},
|
|
20776
|
+
[CountryCodes.HongKong]: {
|
|
20777
|
+
label: "iDoNotHaveCompanyRegistrationNumber"
|
|
20778
|
+
},
|
|
20779
|
+
[CountryCodes.Germany]: {
|
|
20780
|
+
label: "doNotHaveHandelsregisternummerOrVereinsregisternummer"
|
|
20781
|
+
},
|
|
20782
|
+
[CountryCodes.Lithuania]: {
|
|
20783
|
+
label: "doNotHaveLtRegistrationNumber"
|
|
20784
|
+
},
|
|
20785
|
+
[CountryCodes.Luxembourg]: {
|
|
20786
|
+
label: "doNotHaveLuRegistrationNumber"
|
|
20787
|
+
},
|
|
20788
|
+
[CountryCodes.Poland]: {
|
|
20789
|
+
label: "doNotHaveRegonKrsNumber"
|
|
20790
|
+
},
|
|
20791
|
+
[CountryCodes.PuertoRico]: {
|
|
20792
|
+
label: "doNotHaveEIN"
|
|
20793
|
+
},
|
|
20794
|
+
[CountryCodes.Sweden]: {
|
|
20795
|
+
label: "doNotHaveOrganisationsnummer"
|
|
20796
|
+
},
|
|
20797
|
+
[CountryCodes.Switzerland]: {
|
|
20798
|
+
label: "doNotHaveChRegistrationNumber"
|
|
20799
|
+
}
|
|
20800
|
+
};
|
|
20776
20801
|
const DATE_OF_INCORPORATION_FIELD = [
|
|
20777
20802
|
"dateOfIncorporation"
|
|
20778
20803
|
];
|
|
@@ -20790,7 +20815,6 @@ function DateOfIncorporationField({
|
|
|
20790
20815
|
{
|
|
20791
20816
|
name: "dateOfIncorporation",
|
|
20792
20817
|
label: labels.dateOfIncorporation,
|
|
20793
|
-
classNameModifiers: ["dateOfIncorporation"],
|
|
20794
20818
|
errorMessage: errors.dateOfIncorporation,
|
|
20795
20819
|
isValid: valid.dateOfIncorporation,
|
|
20796
20820
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
@@ -20938,7 +20962,6 @@ function EInvoicingCodeField({
|
|
|
20938
20962
|
label: labels.eInvoicingCode ?? "",
|
|
20939
20963
|
formatGuidance: guidanceText == null ? void 0 : guidanceText.eInvoicingCode,
|
|
20940
20964
|
placeholder: placeholders == null ? void 0 : placeholders.eInvoicingCode,
|
|
20941
|
-
classNameModifiers: { field: ["eInvoicingCode"], input: ["eInvoicingCode"] },
|
|
20942
20965
|
errorMessage: errors.eInvoicingCode,
|
|
20943
20966
|
isValid: valid.eInvoicingCode ?? false,
|
|
20944
20967
|
value: data.eInvoicingCode ?? "",
|
|
@@ -21535,7 +21558,7 @@ function getDefaultTaxIdNumberType(taxInformation, country, entityType) {
|
|
|
21535
21558
|
}
|
|
21536
21559
|
const inferCompanyRegistrationNumberType = (registrationNumber, country, companyType) => {
|
|
21537
21560
|
const optionsForCountry = getCompanyRegistrationNumberOptions(country, companyType);
|
|
21538
|
-
const metadataFn =
|
|
21561
|
+
const metadataFn = registrationNumberDefaultFieldConfig[country];
|
|
21539
21562
|
if (!optionsForCountry) return void 0;
|
|
21540
21563
|
if (optionsForCountry.length === 1 || typeof metadataFn !== "function")
|
|
21541
21564
|
return optionsForCountry[0].id;
|
|
@@ -22262,7 +22285,6 @@ function StockExchangeMICField({
|
|
|
22262
22285
|
formatGuidance: guidanceText == null ? void 0 : guidanceText.stockExchangeMIC,
|
|
22263
22286
|
placeholder: placeholders == null ? void 0 : placeholders.stockExchangeMIC,
|
|
22264
22287
|
...mask,
|
|
22265
|
-
classNameModifiers: { field: ["stockExchangeMIC"], input: ["stockExchangeMIC"] },
|
|
22266
22288
|
errorMessage: errors.stockExchangeMIC,
|
|
22267
22289
|
isValid: valid.stockExchangeMIC ?? false,
|
|
22268
22290
|
value: data.stockExchangeMIC ?? "",
|
|
@@ -22318,7 +22340,6 @@ function StockISINField({
|
|
|
22318
22340
|
formatGuidance: guidanceText == null ? void 0 : guidanceText.stockISIN,
|
|
22319
22341
|
placeholder: placeholders == null ? void 0 : placeholders.stockISIN,
|
|
22320
22342
|
...mask,
|
|
22321
|
-
classNameModifiers: { field: ["stockISIN"], input: ["stockISIN"] },
|
|
22322
22343
|
errorMessage: errors.stockISIN,
|
|
22323
22344
|
isValid: valid.stockISIN ?? false,
|
|
22324
22345
|
value: data.stockISIN ?? "",
|
|
@@ -22370,7 +22391,6 @@ function StockTickerSymbolField({
|
|
|
22370
22391
|
formatGuidance: guidanceText == null ? void 0 : guidanceText.stockTickerSymbol,
|
|
22371
22392
|
placeholder: placeholders == null ? void 0 : placeholders.stockTickerSymbol,
|
|
22372
22393
|
...mask,
|
|
22373
|
-
classNameModifiers: { field: ["stockTickerSymbol"], input: ["stockTickerSymbol"] },
|
|
22374
22394
|
errorMessage: errors.stockTickerSymbol,
|
|
22375
22395
|
isValid: valid.stockTickerSymbol ?? false,
|
|
22376
22396
|
value: data.stockTickerSymbol ?? "",
|
|
@@ -22489,7 +22509,6 @@ function VatNumberField({
|
|
|
22489
22509
|
type: "text",
|
|
22490
22510
|
"aria-required": true,
|
|
22491
22511
|
"aria-invalid": !valid.vatNumber,
|
|
22492
|
-
classNameModifiers: { field: ["vatNumber"], input: ["vatNumber"] },
|
|
22493
22512
|
name: "vatNumber",
|
|
22494
22513
|
value: (data == null ? void 0 : data.vatNumber) ?? "",
|
|
22495
22514
|
label: labels.vatNumber ?? "",
|
|
@@ -22524,7 +22543,6 @@ function VatNumberField({
|
|
|
22524
22543
|
{
|
|
22525
22544
|
el: "fieldset",
|
|
22526
22545
|
name: "vatAbsenceReason",
|
|
22527
|
-
classNameModifiers: ["vatAbsenceReason"],
|
|
22528
22546
|
label: labels == null ? void 0 : labels.vatAbsenceReason,
|
|
22529
22547
|
errorMessage: errors.vatAbsenceReason,
|
|
22530
22548
|
isValid: valid.vatAbsenceReason,
|
|
@@ -22661,7 +22679,6 @@ const SearchAddress = ({
|
|
|
22661
22679
|
labelKey,
|
|
22662
22680
|
errorMessage,
|
|
22663
22681
|
isValid,
|
|
22664
|
-
classNameModifiers,
|
|
22665
22682
|
readOnly,
|
|
22666
22683
|
optional,
|
|
22667
22684
|
handleBlur,
|
|
@@ -22731,7 +22748,6 @@ const SearchAddress = ({
|
|
|
22731
22748
|
{
|
|
22732
22749
|
name: "address",
|
|
22733
22750
|
label: i18n.get(labelKey),
|
|
22734
|
-
classNameModifiers,
|
|
22735
22751
|
errorMessage,
|
|
22736
22752
|
isValid,
|
|
22737
22753
|
optional,
|
|
@@ -22781,7 +22797,6 @@ const formatAddressResult = (item) => {
|
|
|
22781
22797
|
return item;
|
|
22782
22798
|
};
|
|
22783
22799
|
function AddressField({
|
|
22784
|
-
classNameModifiers = [],
|
|
22785
22800
|
schema,
|
|
22786
22801
|
data,
|
|
22787
22802
|
valid,
|
|
@@ -22855,7 +22870,6 @@ function AddressField({
|
|
|
22855
22870
|
labelKey,
|
|
22856
22871
|
errorMessage,
|
|
22857
22872
|
isValid: valid == null ? void 0 : valid.address,
|
|
22858
|
-
classNameModifiers,
|
|
22859
22873
|
readOnly,
|
|
22860
22874
|
optional,
|
|
22861
22875
|
handleBlur: (e) => {
|
|
@@ -22870,7 +22884,6 @@ function AddressField({
|
|
|
22870
22884
|
{
|
|
22871
22885
|
name: fieldName,
|
|
22872
22886
|
label: i18n.get(labelKey),
|
|
22873
|
-
classNameModifiers,
|
|
22874
22887
|
errorMessage,
|
|
22875
22888
|
isValid: valid == null ? void 0 : valid[fieldName],
|
|
22876
22889
|
optional,
|
|
@@ -22878,7 +22891,6 @@ function AddressField({
|
|
|
22878
22891
|
InputText,
|
|
22879
22892
|
{
|
|
22880
22893
|
...childProps,
|
|
22881
|
-
classNameModifiers,
|
|
22882
22894
|
name: fieldName,
|
|
22883
22895
|
value,
|
|
22884
22896
|
onInput: handleChangeFor(fieldName, "input"),
|
|
@@ -22904,7 +22916,6 @@ function AddressField({
|
|
|
22904
22916
|
errors: { country: errorMessage },
|
|
22905
22917
|
labels: { country: formUtils.getLabel(fieldName, labelKey) },
|
|
22906
22918
|
readonly: Boolean(readOnly),
|
|
22907
|
-
classNameModifiers,
|
|
22908
22919
|
className: hideField ? "adyen-kyc-search-address-field-hide" : "",
|
|
22909
22920
|
handleChangeFor,
|
|
22910
22921
|
handleBlur
|
|
@@ -22919,7 +22930,6 @@ function AddressField({
|
|
|
22919
22930
|
errors: { stateOrProvince: errorMessage },
|
|
22920
22931
|
labels: { stateOrProvince: formUtils.getLabel(fieldName, labelKey) },
|
|
22921
22932
|
readonly: Boolean(readOnly),
|
|
22922
|
-
classNameModifiers,
|
|
22923
22933
|
selectedCountry: data.country,
|
|
22924
22934
|
handleChangeFor,
|
|
22925
22935
|
handleBlur
|
|
@@ -22931,7 +22941,6 @@ function AddressField({
|
|
|
22931
22941
|
{
|
|
22932
22942
|
name: fieldName,
|
|
22933
22943
|
label: i18n.get(labelKey),
|
|
22934
|
-
classNameModifiers,
|
|
22935
22944
|
errorMessage,
|
|
22936
22945
|
isValid: valid == null ? void 0 : valid[fieldName],
|
|
22937
22946
|
optional,
|
|
@@ -22939,7 +22948,6 @@ function AddressField({
|
|
|
22939
22948
|
InputText,
|
|
22940
22949
|
{
|
|
22941
22950
|
...childProps,
|
|
22942
|
-
classNameModifiers,
|
|
22943
22951
|
name: fieldName,
|
|
22944
22952
|
value: fieldName === "postalCode" ? value == null ? void 0 : value.toUpperCase() : value,
|
|
22945
22953
|
onInput: handleChangeFor(fieldName, "input"),
|
|
@@ -23425,7 +23433,6 @@ function Address({
|
|
|
23425
23433
|
return /* @__PURE__ */ jsx$1(
|
|
23426
23434
|
AddressField,
|
|
23427
23435
|
{
|
|
23428
|
-
classNameModifiers: [fieldName],
|
|
23429
23436
|
schema: formSchema,
|
|
23430
23437
|
data: formData,
|
|
23431
23438
|
valid: formValid,
|
|
@@ -23599,7 +23606,6 @@ function RegistrationAddress(props) {
|
|
|
23599
23606
|
el: "fieldset",
|
|
23600
23607
|
name: "operationalAddressIsSame",
|
|
23601
23608
|
label: formUtils.getLabel("operationalAddressIsSame"),
|
|
23602
|
-
classNameModifiers: ["operationalAddressIsSame"],
|
|
23603
23609
|
errorMessage: (_c2 = formErrors.operationalAddressIsSame) == null ? void 0 : _c2.errorMessage,
|
|
23604
23610
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
23605
23611
|
RadioGroup,
|
|
@@ -23856,13 +23862,23 @@ function AdditionalInformation({
|
|
|
23856
23862
|
return mergeFieldMetadataIntoProps(
|
|
23857
23863
|
field,
|
|
23858
23864
|
resolveFieldMetadata(
|
|
23859
|
-
|
|
23865
|
+
registrationNumberDefaultFieldConfig[country],
|
|
23860
23866
|
{
|
|
23861
23867
|
companyType,
|
|
23862
23868
|
registrationNumberType,
|
|
23863
23869
|
isExperimentEnabled
|
|
23864
23870
|
},
|
|
23865
|
-
|
|
23871
|
+
registrationNumberDefaultFieldMetadata
|
|
23872
|
+
),
|
|
23873
|
+
acc
|
|
23874
|
+
);
|
|
23875
|
+
case "exemptedFromRegistrationNumber":
|
|
23876
|
+
return mergeFieldMetadataIntoProps(
|
|
23877
|
+
field,
|
|
23878
|
+
resolveFieldMetadata(
|
|
23879
|
+
exemptFromRegistrationNumberDefaultFieldConfig[country],
|
|
23880
|
+
{},
|
|
23881
|
+
exemptFromRegistrationNumberDefaultFieldMetadata
|
|
23866
23882
|
),
|
|
23867
23883
|
acc
|
|
23868
23884
|
);
|
|
@@ -24311,7 +24327,6 @@ function AdditionalInformation({
|
|
|
24311
24327
|
{
|
|
24312
24328
|
el: "fieldset",
|
|
24313
24329
|
name: "operationalAddressIsSame",
|
|
24314
|
-
classNameModifiers: ["operationalAddressIsSame"],
|
|
24315
24330
|
errorMessage: formErrors.operationalAddressIsSame,
|
|
24316
24331
|
isValid: formValid.operationalAddressIsSame,
|
|
24317
24332
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
@@ -24416,8 +24431,7 @@ function CountryOfGoverningLawField({
|
|
|
24416
24431
|
handleChangeFor,
|
|
24417
24432
|
helperText,
|
|
24418
24433
|
allowedCountries,
|
|
24419
|
-
country
|
|
24420
|
-
classNameModifiers = []
|
|
24434
|
+
country
|
|
24421
24435
|
}) {
|
|
24422
24436
|
const { i18n } = useI18nContext();
|
|
24423
24437
|
useEffect(() => {
|
|
@@ -24443,7 +24457,6 @@ function CountryOfGoverningLawField({
|
|
|
24443
24457
|
labels: { country: (labels == null ? void 0 : labels.countryOfGoverningLaw) || i18n.get("countryOfGoverningLaw") },
|
|
24444
24458
|
readonly,
|
|
24445
24459
|
allowedCountries,
|
|
24446
|
-
classNameModifiers,
|
|
24447
24460
|
handleChangeFor: () => handleChangeFor("countryOfGoverningLaw"),
|
|
24448
24461
|
helperText: { country: helperText == null ? void 0 : helperText.countryOfGoverningLaw }
|
|
24449
24462
|
}
|
|
@@ -24550,7 +24563,6 @@ function LegalCompanyNameField({
|
|
|
24550
24563
|
helper: helperText == null ? void 0 : helperText.legalCompanyName,
|
|
24551
24564
|
errorMessage: errors.legalCompanyName,
|
|
24552
24565
|
isValid: valid.legalCompanyName,
|
|
24553
|
-
classNameModifiers: ["legalCompanyName"],
|
|
24554
24566
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
24555
24567
|
InputText,
|
|
24556
24568
|
{
|
|
@@ -24560,7 +24572,6 @@ function LegalCompanyNameField({
|
|
|
24560
24572
|
name: "legalCompanyName",
|
|
24561
24573
|
value: data.legalCompanyName,
|
|
24562
24574
|
readonly,
|
|
24563
|
-
classNameModifiers: ["legalCompanyName"],
|
|
24564
24575
|
onInput: handleChangeFor("legalCompanyName", "input"),
|
|
24565
24576
|
onBlur: handleChangeFor("legalCompanyName", "blur"),
|
|
24566
24577
|
onKeyDown: handleKeyDown
|
|
@@ -25179,14 +25190,24 @@ function BasicInformation({
|
|
|
25179
25190
|
return mergeFieldMetadataIntoProps(
|
|
25180
25191
|
field,
|
|
25181
25192
|
resolveFieldMetadata(
|
|
25182
|
-
|
|
25193
|
+
registrationNumberDefaultFieldConfig[country],
|
|
25183
25194
|
{
|
|
25184
25195
|
companyType,
|
|
25185
25196
|
registrationNumberType,
|
|
25186
25197
|
state: sliceData == null ? void 0 : sliceData.stateOrProvince,
|
|
25187
25198
|
isExperimentEnabled
|
|
25188
25199
|
},
|
|
25189
|
-
|
|
25200
|
+
registrationNumberDefaultFieldMetadata
|
|
25201
|
+
),
|
|
25202
|
+
acc
|
|
25203
|
+
);
|
|
25204
|
+
case "exemptedFromRegistrationNumber":
|
|
25205
|
+
return mergeFieldMetadataIntoProps(
|
|
25206
|
+
field,
|
|
25207
|
+
resolveFieldMetadata(
|
|
25208
|
+
exemptFromRegistrationNumberDefaultFieldConfig[country],
|
|
25209
|
+
{},
|
|
25210
|
+
exemptFromRegistrationNumberDefaultFieldMetadata
|
|
25190
25211
|
),
|
|
25191
25212
|
acc
|
|
25192
25213
|
);
|
|
@@ -27075,7 +27096,6 @@ function ContactDetails(props) {
|
|
|
27075
27096
|
{
|
|
27076
27097
|
name: "email",
|
|
27077
27098
|
label: formUtils.getLabel("email"),
|
|
27078
|
-
classNameModifiers: ["email"],
|
|
27079
27099
|
errorMessage: formUtils.getErrorMessage("email", errors, fieldValidationErrors),
|
|
27080
27100
|
isValid: valid.email,
|
|
27081
27101
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
@@ -27085,7 +27105,6 @@ function ContactDetails(props) {
|
|
|
27085
27105
|
name: "email",
|
|
27086
27106
|
value: data == null ? void 0 : data.email,
|
|
27087
27107
|
readonly: formUtils.isReadOnly("email"),
|
|
27088
|
-
classNameModifiers: ["email"],
|
|
27089
27108
|
onInput: handleFieldChange("email", "input"),
|
|
27090
27109
|
onBlur: handleFieldChange("email", "blur"),
|
|
27091
27110
|
"aria-required": true,
|
|
@@ -27275,7 +27294,6 @@ const DecisionMakerRole = (props) => {
|
|
|
27275
27294
|
{
|
|
27276
27295
|
el: "fieldset",
|
|
27277
27296
|
name: "role",
|
|
27278
|
-
classNameModifiers: ["role"],
|
|
27279
27297
|
label: formUtils.getLabel("role", "selectAllTheRolesThatThisDecisionMakerHolds"),
|
|
27280
27298
|
errorMessage: formUtils.getErrorMessage("role", errors, fieldValidationErrors),
|
|
27281
27299
|
isValid: valid == null ? void 0 : valid.role,
|
|
@@ -28000,7 +28018,6 @@ function IdentityNumber(props) {
|
|
|
28000
28018
|
type: "text",
|
|
28001
28019
|
label: formUtils.getLabel("idNumber", "idNumber"),
|
|
28002
28020
|
formatGuidance: formUtils.getGuidanceText("idNumber"),
|
|
28003
|
-
classNameModifiers: { field: ["idNumber"], input: ["idNumber"] },
|
|
28004
28021
|
errorMessage,
|
|
28005
28022
|
shouldValidate: (_a2 = errors == null ? void 0 : errors.idNumber) == null ? void 0 : _a2.hasError,
|
|
28006
28023
|
isValid: !!(valid == null ? void 0 : valid.idNumber),
|
|
@@ -28018,13 +28035,12 @@ function IdentityNumber(props) {
|
|
|
28018
28035
|
...formUtils.getMask("idNumber")
|
|
28019
28036
|
}
|
|
28020
28037
|
),
|
|
28021
|
-
/* @__PURE__ */ jsx$1(Field, { el: "fieldset",
|
|
28038
|
+
/* @__PURE__ */ jsx$1(Field, { el: "fieldset", name: "idNumberExempt", children: (childProps) => formUtils.isVisibleField("idNumberExempt") && /* @__PURE__ */ jsx$1(
|
|
28022
28039
|
Checkbox,
|
|
28023
28040
|
{
|
|
28024
28041
|
...childProps,
|
|
28025
28042
|
label: formUtils.getLabel("idNumberExempt"),
|
|
28026
28043
|
checked: Boolean(data == null ? void 0 : data.idNumberExempt),
|
|
28027
|
-
classNameModifiers: ["idNumberExempt"],
|
|
28028
28044
|
name: "idNumberExempt",
|
|
28029
28045
|
onChange: handleFieldChange("idNumberExempt")
|
|
28030
28046
|
}
|
|
@@ -28040,12 +28056,11 @@ function NameFields(props) {
|
|
|
28040
28056
|
}
|
|
28041
28057
|
const formUtils = createFormUtils(formProps, i18n);
|
|
28042
28058
|
return /* @__PURE__ */ jsx$1("div", { className: "adyen-kyc-field-wrapper", children: fieldConfigs.map(
|
|
28043
|
-
({ name, isValid, label, helper
|
|
28059
|
+
({ name, isValid, label, helper }) => formUtils.isRequiredField(name) && /* @__PURE__ */ jsx$1(
|
|
28044
28060
|
Field,
|
|
28045
28061
|
{
|
|
28046
28062
|
name,
|
|
28047
28063
|
label: formUtils.getLabel(label),
|
|
28048
|
-
classNameModifiers: [...classNameModifiers, "col-50"],
|
|
28049
28064
|
errorMessage: formUtils.getErrorMessage(name, errors, fieldValidationErrors),
|
|
28050
28065
|
isValid,
|
|
28051
28066
|
helper: helper && formUtils.getLabel(helper),
|
|
@@ -28055,7 +28070,6 @@ function NameFields(props) {
|
|
|
28055
28070
|
...childProps,
|
|
28056
28071
|
name,
|
|
28057
28072
|
value: data == null ? void 0 : data[name],
|
|
28058
|
-
classNameModifiers: [...classNameModifiers],
|
|
28059
28073
|
readonly: formUtils.isReadOnly(name),
|
|
28060
28074
|
onInput: handleFieldChange(name, "input"),
|
|
28061
28075
|
onBlur: handleFieldChange(name, "blur"),
|
|
@@ -28093,13 +28107,11 @@ const LocalizedNameFields = (props) => {
|
|
|
28093
28107
|
{
|
|
28094
28108
|
name: "jaHaniLastName",
|
|
28095
28109
|
label: "jaHaniLastName",
|
|
28096
|
-
classNameModifiers: ["jaHaniLastName"],
|
|
28097
28110
|
isValid: (_b2 = jaHaniNameProps.valid) == null ? void 0 : _b2.jaHaniLastName
|
|
28098
28111
|
},
|
|
28099
28112
|
{
|
|
28100
28113
|
name: "jaHaniFirstName",
|
|
28101
28114
|
label: "jaHaniFirstName",
|
|
28102
|
-
classNameModifiers: ["jaHaniFirstName"],
|
|
28103
28115
|
isValid: (_c2 = jaHaniNameProps.valid) == null ? void 0 : _c2.jaHaniFirstName
|
|
28104
28116
|
}
|
|
28105
28117
|
],
|
|
@@ -28118,13 +28130,11 @@ const LocalizedNameFields = (props) => {
|
|
|
28118
28130
|
{
|
|
28119
28131
|
name: "jaKanaLastName",
|
|
28120
28132
|
label: "jaKanaLastName",
|
|
28121
|
-
classNameModifiers: ["jaKanaLastName"],
|
|
28122
28133
|
isValid: (_e2 = jaKanaNameProps.valid) == null ? void 0 : _e2.jaKanaLastName
|
|
28123
28134
|
},
|
|
28124
28135
|
{
|
|
28125
28136
|
name: "jaKanaFirstName",
|
|
28126
28137
|
label: "jaKanaFirstName",
|
|
28127
|
-
classNameModifiers: ["jaKanaFirstName"],
|
|
28128
28138
|
isValid: (_f2 = jaKanaNameProps.valid) == null ? void 0 : _f2.jaKanaFirstName
|
|
28129
28139
|
}
|
|
28130
28140
|
],
|
|
@@ -28143,13 +28153,11 @@ const LocalizedNameFields = (props) => {
|
|
|
28143
28153
|
{
|
|
28144
28154
|
name: "lastName",
|
|
28145
28155
|
label: "lastName__JP",
|
|
28146
|
-
classNameModifiers: ["lastName"],
|
|
28147
28156
|
isValid: (_h2 = nameProps.valid) == null ? void 0 : _h2.lastName
|
|
28148
28157
|
},
|
|
28149
28158
|
{
|
|
28150
28159
|
name: "firstName",
|
|
28151
28160
|
label: "firstName__JP",
|
|
28152
|
-
classNameModifiers: ["firstName"],
|
|
28153
28161
|
isValid: (_i2 = nameProps.valid) == null ? void 0 : _i2.firstName
|
|
28154
28162
|
}
|
|
28155
28163
|
],
|
|
@@ -28212,7 +28220,6 @@ const DriversLicense = ({
|
|
|
28212
28220
|
type: "text",
|
|
28213
28221
|
label: formUtils.getLabel("idNumber", "idNumber"),
|
|
28214
28222
|
formatGuidance: formUtils.getGuidanceText("idNumber"),
|
|
28215
|
-
classNameModifiers: { field: ["idNumber"], input: ["idNumber"] },
|
|
28216
28223
|
errorMessage: errorMessages.idNumber,
|
|
28217
28224
|
shouldValidate,
|
|
28218
28225
|
isValid: Boolean(isValid.idNumber),
|
|
@@ -28233,7 +28240,6 @@ const DriversLicense = ({
|
|
|
28233
28240
|
type: "text",
|
|
28234
28241
|
label: formUtils.getLabel("licenseCardNumber", "licenseCardNumber"),
|
|
28235
28242
|
formatGuidance: formUtils.getGuidanceText("licenseCardNumber"),
|
|
28236
|
-
classNameModifiers: { field: ["licenseCardNumber"], input: ["licenseCardNumber"] },
|
|
28237
28243
|
errorMessage: errorMessages.licenseCardNumber,
|
|
28238
28244
|
shouldValidate,
|
|
28239
28245
|
isValid: Boolean(isValid.licenseCardNumber),
|
|
@@ -28384,7 +28390,6 @@ function IdentityAu({
|
|
|
28384
28390
|
type: "text",
|
|
28385
28391
|
label: formUtils.getLabel("idNumber", "idNumber"),
|
|
28386
28392
|
formatGuidance: formUtils.getGuidanceText("idNumber"),
|
|
28387
|
-
classNameModifiers: { field: ["idNumber"], input: ["idNumber"] },
|
|
28388
28393
|
errorMessage: formUtils.getErrorMessage("idNumber", errors, fieldValidationErrors),
|
|
28389
28394
|
shouldValidate,
|
|
28390
28395
|
isValid: Boolean(valid == null ? void 0 : valid.idNumber),
|
|
@@ -28504,7 +28509,6 @@ function IdentityHK({
|
|
|
28504
28509
|
type: "text",
|
|
28505
28510
|
label: formUtils.getLabel("idNumber", "idNumber"),
|
|
28506
28511
|
formatGuidance: formUtils.getGuidanceText("idNumber"),
|
|
28507
|
-
classNameModifiers: { field: ["idNumber"], input: ["idNumber"] },
|
|
28508
28512
|
errorMessage: formUtils.getErrorMessage("idNumber", errors, fieldValidationErrors),
|
|
28509
28513
|
shouldValidate,
|
|
28510
28514
|
isValid: Boolean(valid == null ? void 0 : valid.idNumber),
|
|
@@ -28611,7 +28615,6 @@ function IdentityNZ({
|
|
|
28611
28615
|
type: "text",
|
|
28612
28616
|
label: formUtils.getLabel("idNumber", "idNumber"),
|
|
28613
28617
|
formatGuidance: formUtils.getGuidanceText("idNumber"),
|
|
28614
|
-
classNameModifiers: { field: ["idNumber"], input: ["idNumber"] },
|
|
28615
28618
|
errorMessage: formUtils.getErrorMessage("idNumber", errors, fieldValidationErrors),
|
|
28616
28619
|
shouldValidate,
|
|
28617
28620
|
isValid: !!(valid == null ? void 0 : valid.idNumber),
|
|
@@ -28630,7 +28633,6 @@ function IdentityNZ({
|
|
|
28630
28633
|
{
|
|
28631
28634
|
name: "expiryDate",
|
|
28632
28635
|
label: formUtils.getLabel("passportExpiryDate"),
|
|
28633
|
-
classNameModifiers: ["expiryDate"],
|
|
28634
28636
|
errorMessage: formUtils.getErrorMessage("expiryDate", errors, fieldValidationErrors),
|
|
28635
28637
|
isValid: valid == null ? void 0 : valid.expiryDate,
|
|
28636
28638
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
@@ -28940,7 +28942,6 @@ function PersonalDetails(props) {
|
|
|
28940
28942
|
{
|
|
28941
28943
|
name: "birthDate",
|
|
28942
28944
|
label: formUtils.getLabel("birthDate"),
|
|
28943
|
-
classNameModifiers: ["birthDate"],
|
|
28944
28945
|
errorMessage: isAgeVerificationEnabled && birthDateErrorMessage ? true : birthDateErrorMessage,
|
|
28945
28946
|
isValid: fieldValidationErrors == null ? void 0 : fieldValidationErrors.birthDate,
|
|
28946
28947
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
@@ -28971,7 +28972,6 @@ function PersonalDetails(props) {
|
|
|
28971
28972
|
labels: { country: formUtils.getLabel("residencyCountry") },
|
|
28972
28973
|
readonly: !isAllowedEditPrefilledCountry && !isDecisionMakerTask || formUtils.isReadOnly("residencyCountry"),
|
|
28973
28974
|
allowedCountries: isTopLevelEntity ? allowedCountries : void 0,
|
|
28974
|
-
classNameModifiers: ["country"],
|
|
28975
28975
|
handleChangeFor: () => (e) => {
|
|
28976
28976
|
handleFieldChange("residencyCountry", "input")(e);
|
|
28977
28977
|
handleChangeFor("country", "address")(e);
|
|
@@ -28983,7 +28983,6 @@ function PersonalDetails(props) {
|
|
|
28983
28983
|
{
|
|
28984
28984
|
el: "fieldset",
|
|
28985
28985
|
name: "relationship",
|
|
28986
|
-
classNameModifiers: ["relationship"],
|
|
28987
28986
|
label: i18n.get({
|
|
28988
28987
|
key: "relationshipTo",
|
|
28989
28988
|
values: {
|
|
@@ -29011,7 +29010,6 @@ function PersonalDetails(props) {
|
|
|
29011
29010
|
{
|
|
29012
29011
|
name: "birthDate",
|
|
29013
29012
|
label: formUtils.getLabel("birthDate"),
|
|
29014
|
-
classNameModifiers: ["birthDate"],
|
|
29015
29013
|
errorMessage: isAgeVerificationEnabled && birthDateErrorMessage ? true : birthDateErrorMessage,
|
|
29016
29014
|
isValid: valid == null ? void 0 : valid.birthDate,
|
|
29017
29015
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
@@ -29062,7 +29060,6 @@ function PersonalDetails(props) {
|
|
|
29062
29060
|
},
|
|
29063
29061
|
labels: { country: formUtils.getLabel("nationality") },
|
|
29064
29062
|
readonly: formUtils.isReadOnly("nationality"),
|
|
29065
|
-
classNameModifiers: ["nationality"],
|
|
29066
29063
|
handleChangeFor: () => handleFieldChange("nationality", "input")
|
|
29067
29064
|
}
|
|
29068
29065
|
),
|
|
@@ -29081,7 +29078,6 @@ function PersonalDetails(props) {
|
|
|
29081
29078
|
{
|
|
29082
29079
|
name: "jobTitle",
|
|
29083
29080
|
label: formUtils.getLabel("jobTitle"),
|
|
29084
|
-
classNameModifiers: ["jobTitle"],
|
|
29085
29081
|
errorMessage: formUtils.getErrorMessage("jobTitle", errors, fieldValidationErrors),
|
|
29086
29082
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
29087
29083
|
InputText,
|
|
@@ -29496,6 +29492,47 @@ function Individual(props) {
|
|
|
29496
29492
|
};
|
|
29497
29493
|
return /* @__PURE__ */ jsx$1("div", { className: "adyen-kyc-individual", children: renderActiveForm(propActiveForm) });
|
|
29498
29494
|
}
|
|
29495
|
+
const individualOnfidoObscuredFields = [
|
|
29496
|
+
"additionalPersonalDetails.idNumber",
|
|
29497
|
+
"additionalPersonalDetails.idNumberExempt"
|
|
29498
|
+
];
|
|
29499
|
+
const individualOnfidoBaseMapping = {
|
|
29500
|
+
"basicDetails.firstName": "individual.name.firstName",
|
|
29501
|
+
"basicDetails.lastName": "individual.name.lastName",
|
|
29502
|
+
"basicDetails.phoneNumber.number": "individual.phone.number",
|
|
29503
|
+
"basicDetails.phoneNumber.phoneCountryCode": "individual.phone.phoneCountryCode",
|
|
29504
|
+
"basicDetails.phoneNumber.type": "individual.phone.type",
|
|
29505
|
+
"basicDetails.email": "individual.email",
|
|
29506
|
+
"additionalPersonalDetails.birthDate": "individual.birthData.dateOfBirth",
|
|
29507
|
+
"additionalPersonalDetails.idNumber": "individual.identificationData.number",
|
|
29508
|
+
"additionalPersonalDetails.idNumberExempt": "individual.identificationData.nationalIdExempt",
|
|
29509
|
+
"additionalPersonalDetails.typeOfIdentity": "individual.identificationData.type",
|
|
29510
|
+
"additionalPersonalDetails.issuerState": "individual.identificationData.issuerState",
|
|
29511
|
+
"additionalPersonalDetails.licenseCardNumber": "individual.identificationData.cardNumber",
|
|
29512
|
+
"additionalPersonalDetails.expiryDate": "individual.identificationData.expiryDate",
|
|
29513
|
+
"additionalPersonalDetails.nationality": "individual.nationality",
|
|
29514
|
+
"additionalPersonalDetails.taxInformation": "individual.taxInformation",
|
|
29515
|
+
// Address fields
|
|
29516
|
+
"additionalPersonalDetails.city": "individual.residentialAddress.city",
|
|
29517
|
+
"additionalPersonalDetails.country": "individual.residentialAddress.country",
|
|
29518
|
+
"additionalPersonalDetails.postalCode": "individual.residentialAddress.postalCode",
|
|
29519
|
+
"additionalPersonalDetails.stateOrProvince": "individual.residentialAddress.stateOrProvince",
|
|
29520
|
+
"additionalPersonalDetails.address": "individual.residentialAddress.street",
|
|
29521
|
+
"additionalPersonalDetails.otherAddressInformation": "individual.residentialAddress.street2"
|
|
29522
|
+
};
|
|
29523
|
+
const individualOnfidoApiKeyMapping = {
|
|
29524
|
+
...reverseMapping(individualOnfidoBaseMapping)
|
|
29525
|
+
};
|
|
29526
|
+
const individualOnfidoDocumentMapping = {
|
|
29527
|
+
["passport"]: "idVerificationMethod.idDocument",
|
|
29528
|
+
["proofOfResidency"]: "proofOfResidency.proofOfResidency",
|
|
29529
|
+
["proofOfNationalIdNumber"]: "proofOfNationalId.proofOfNationalId",
|
|
29530
|
+
["proofOfRelationship"]: "proofOfRelationship.proofOfRelationship"
|
|
29531
|
+
};
|
|
29532
|
+
const remediationIndividualOnfidoApiKeyMapping = {
|
|
29533
|
+
...individualOnfidoApiKeyMapping,
|
|
29534
|
+
...individualOnfidoDocumentMapping
|
|
29535
|
+
};
|
|
29499
29536
|
var ConstitutionalDocumentTypes = /* @__PURE__ */ ((ConstitutionalDocumentTypes2) => {
|
|
29500
29537
|
ConstitutionalDocumentTypes2["BUSINESS_NAME_FILING"] = "doingBusinessAsNameFiling";
|
|
29501
29538
|
ConstitutionalDocumentTypes2["TAX_FILING"] = "taxFiling";
|
|
@@ -29932,13 +29969,22 @@ function TrustRegistrationDetails(props) {
|
|
|
29932
29969
|
mergedProps = mergeFieldMetadataIntoProps(
|
|
29933
29970
|
"registrationNumber",
|
|
29934
29971
|
resolveFieldMetadata(
|
|
29935
|
-
|
|
29972
|
+
registrationNumberDefaultFieldConfig[country],
|
|
29936
29973
|
{
|
|
29937
29974
|
companyType: LegalEntityType.TRUST,
|
|
29938
29975
|
registrationNumberType,
|
|
29939
29976
|
isExperimentEnabled
|
|
29940
29977
|
},
|
|
29941
|
-
|
|
29978
|
+
registrationNumberDefaultFieldMetadata
|
|
29979
|
+
),
|
|
29980
|
+
mergedProps
|
|
29981
|
+
);
|
|
29982
|
+
mergedProps = mergeFieldMetadataIntoProps(
|
|
29983
|
+
"exemptedFromRegistrationNumber",
|
|
29984
|
+
resolveFieldMetadata(
|
|
29985
|
+
exemptFromRegistrationNumberDefaultFieldConfig[country],
|
|
29986
|
+
{},
|
|
29987
|
+
exemptFromRegistrationNumberDefaultFieldMetadata
|
|
29942
29988
|
),
|
|
29943
29989
|
mergedProps
|
|
29944
29990
|
);
|
|
@@ -30028,7 +30074,6 @@ function TrustRegistrationDetails(props) {
|
|
|
30028
30074
|
}),
|
|
30029
30075
|
readonly: formUtils.isReadOnly("country"),
|
|
30030
30076
|
allowedCountries: isUnincorporatedPartnership ? ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES : ALLOWED_TRUST_COUNTRIES,
|
|
30031
|
-
classNameModifiers: ["country"],
|
|
30032
30077
|
handleChangeFor: () => (e) => {
|
|
30033
30078
|
handleChangeFor("country", "input")(e);
|
|
30034
30079
|
if (mergedProps.onCountryChange) mergedProps.onCountryChange(e);
|
|
@@ -30042,7 +30087,6 @@ function TrustRegistrationDetails(props) {
|
|
|
30042
30087
|
label: formUtils.getLabel(
|
|
30043
30088
|
!isUnincorporatedPartnership ? "nameOfTrustAgreement" : "legalName"
|
|
30044
30089
|
),
|
|
30045
|
-
classNameModifiers: ["legalName"],
|
|
30046
30090
|
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldProblems),
|
|
30047
30091
|
isValid: valid.legalName,
|
|
30048
30092
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
@@ -30052,7 +30096,6 @@ function TrustRegistrationDetails(props) {
|
|
|
30052
30096
|
name: "legalName",
|
|
30053
30097
|
value: data.legalName,
|
|
30054
30098
|
readonly: formUtils.isReadOnly("legalName"),
|
|
30055
|
-
classNameModifiers: ["legalName"],
|
|
30056
30099
|
onInput: handleChangeFor("legalName", "input"),
|
|
30057
30100
|
onBlur: handleChangeFor("legalName", "blur"),
|
|
30058
30101
|
"aria-required": true,
|
|
@@ -30081,9 +30124,9 @@ function TrustRegistrationDetails(props) {
|
|
|
30081
30124
|
{
|
|
30082
30125
|
name: "trustType",
|
|
30083
30126
|
label: formUtils.getLabel("trustType", "typeOfTrustAgreement"),
|
|
30084
|
-
classNameModifiers: ["trust-type"],
|
|
30085
30127
|
errorMessage: formUtils.getErrorMessage("trustType", errors, fieldProblems),
|
|
30086
30128
|
isValid: valid.trustType,
|
|
30129
|
+
dataTestId: "trust-type",
|
|
30087
30130
|
children: (childProps) => /* @__PURE__ */ jsx$1(
|
|
30088
30131
|
Select,
|
|
30089
30132
|
{
|
|
@@ -30331,16 +30374,18 @@ const UNRELATED_DATA_MISSING_ERROR_CODES = [
|
|
|
30331
30374
|
"2_8250"
|
|
30332
30375
|
];
|
|
30333
30376
|
const UNRELATED_INVALID_INPUT_ERROR_CODES = ["1_14", "2_901", "2_902"];
|
|
30334
|
-
const getComponentMappingFromLEFieldPath = (context, entityType) => {
|
|
30377
|
+
const getComponentMappingFromLEFieldPath = (context, entityType, country, isExperimentEnabled) => {
|
|
30335
30378
|
if (!(context == null ? void 0 : context.key)) {
|
|
30336
30379
|
return;
|
|
30337
30380
|
}
|
|
30338
30381
|
if (context.key === "idVerificationMethod") {
|
|
30339
30382
|
return "idVerificationMethod.idVerificationMethod";
|
|
30340
30383
|
}
|
|
30384
|
+
const isOnfidoAutofillFlow = isExperimentEnabled ? isOnfidoAutofillFlowEnabled(country, TaskTypes.INDIVIDUAL, isExperimentEnabled) : false;
|
|
30385
|
+
const individualRemediationKeyMapping = isOnfidoAutofillFlow ? remediationIndividualOnfidoApiKeyMapping : remediationIndividualApiKeyMapping;
|
|
30341
30386
|
switch (entityType) {
|
|
30342
30387
|
case LegalEntityType.INDIVIDUAL:
|
|
30343
|
-
return context.key in
|
|
30388
|
+
return context.key in individualRemediationKeyMapping ? individualRemediationKeyMapping[context.key] : void 0;
|
|
30344
30389
|
case LegalEntityType.ORGANIZATION:
|
|
30345
30390
|
return context.key in remediationBusinessDetailsApiKeyMapping ? remediationBusinessDetailsApiKeyMapping[context.key] : void 0;
|
|
30346
30391
|
case EntityType.BANK_ACCOUNT:
|
|
@@ -30363,14 +30408,16 @@ const getLinkedRemedidationFormFields = (accFormsAndFields, field) => {
|
|
|
30363
30408
|
return;
|
|
30364
30409
|
}
|
|
30365
30410
|
};
|
|
30366
|
-
const getRemediationsWithFormsAndFields = (remediatingActions, entityType) => {
|
|
30411
|
+
const getRemediationsWithFormsAndFields = (remediatingActions, entityType, country, isExperimentEnabled) => {
|
|
30367
30412
|
const mappedRemediations = remediatingActions.reduce(
|
|
30368
30413
|
(acc, { code: remediationCode }) => {
|
|
30369
30414
|
const apiFieldPathToRemediate = invalidInputRemediationActionMappings[remediationCode];
|
|
30370
30415
|
if (!apiFieldPathToRemediate) {
|
|
30371
30416
|
return acc;
|
|
30372
30417
|
}
|
|
30373
|
-
const mappedCompFields = apiFieldPathToRemediate.map(
|
|
30418
|
+
const mappedCompFields = apiFieldPathToRemediate.map(
|
|
30419
|
+
(context) => getComponentMappingFromLEFieldPath(context, entityType, country, isExperimentEnabled)
|
|
30420
|
+
).filter(Boolean);
|
|
30374
30421
|
if (!mappedCompFields) {
|
|
30375
30422
|
return acc;
|
|
30376
30423
|
}
|
|
@@ -30405,7 +30452,7 @@ const getRemediationsWithFormsAndFields = (remediatingActions, entityType) => {
|
|
|
30405
30452
|
};
|
|
30406
30453
|
};
|
|
30407
30454
|
const isUnRelatedErrorCode = (error) => UNRELATED_DATA_MISSING_ERROR_CODES.includes(error == null ? void 0 : error.code) || UNRELATED_INVALID_INPUT_ERROR_CODES.includes(error == null ? void 0 : error.code);
|
|
30408
|
-
const getInvalidInputError = (parentVerificationError, entityType) => {
|
|
30455
|
+
const getInvalidInputError = (parentVerificationError, entityType, country, isExperimentEnabled) => {
|
|
30409
30456
|
const { allForms, childErrorsWithRemActions } = (parentVerificationError.subErrors ?? []).reduce(
|
|
30410
30457
|
(acc, { code: errorCode, remediatingActions }) => {
|
|
30411
30458
|
if (!(remediatingActions == null ? void 0 : remediatingActions.length)) {
|
|
@@ -30413,7 +30460,9 @@ const getInvalidInputError = (parentVerificationError, entityType) => {
|
|
|
30413
30460
|
}
|
|
30414
30461
|
const { forms, remediationsWithFormsAndFields } = getRemediationsWithFormsAndFields(
|
|
30415
30462
|
remediatingActions,
|
|
30416
|
-
entityType
|
|
30463
|
+
entityType,
|
|
30464
|
+
country,
|
|
30465
|
+
isExperimentEnabled
|
|
30417
30466
|
);
|
|
30418
30467
|
acc.childErrorsWithRemActions[errorCode] = remediationsWithFormsAndFields;
|
|
30419
30468
|
forms.forEach((formId) => acc.allForms.add(formId));
|
|
@@ -30473,13 +30522,13 @@ function getPriorityStatus(entityProblems, newStatusWithReason) {
|
|
|
30473
30522
|
function getMissingDataError(verificationError, entityProblems) {
|
|
30474
30523
|
return entityProblems.missingData ? [...entityProblems.missingData, verificationError] : [verificationError];
|
|
30475
30524
|
}
|
|
30476
|
-
function getEntityProblems(verificationErrors, entityType) {
|
|
30525
|
+
function getEntityProblems(verificationErrors, entityType, country, isExperimentEnabled) {
|
|
30477
30526
|
return verificationErrors.reduce((entityProblems, verificationError) => {
|
|
30478
30527
|
const currEntityProblems = cloneObject(entityProblems);
|
|
30479
30528
|
switch (verificationError.type) {
|
|
30480
30529
|
case VerificationErrorType.INVALID_INPUT: {
|
|
30481
30530
|
if (!isUnRelatedErrorCode(verificationError) && verificationError.subErrors) {
|
|
30482
|
-
const { verificationErrors: newVerificationErrors, remediationActions } = getInvalidInputError(verificationError, entityType);
|
|
30531
|
+
const { verificationErrors: newVerificationErrors, remediationActions } = getInvalidInputError(verificationError, entityType, country, isExperimentEnabled);
|
|
30483
30532
|
currEntityProblems.verificationErrors = mergeFormLevelErrors(
|
|
30484
30533
|
currEntityProblems.verificationErrors,
|
|
30485
30534
|
newVerificationErrors
|
|
@@ -30572,7 +30621,7 @@ const overrideVerificationErrors = (verificationErrors, country) => verification
|
|
|
30572
30621
|
}
|
|
30573
30622
|
return verificationError;
|
|
30574
30623
|
});
|
|
30575
|
-
function getCapabilityProblems(entity, country) {
|
|
30624
|
+
function getCapabilityProblems(entity, country, isExperimentEnabled) {
|
|
30576
30625
|
const problems = (entity == null ? void 0 : entity.problems) ?? [];
|
|
30577
30626
|
const aggregatedErrorsByEntity = aggregateProblemsByEntity(problems, entity);
|
|
30578
30627
|
return entriesOf(aggregatedErrorsByEntity).reduce(
|
|
@@ -30582,7 +30631,9 @@ function getCapabilityProblems(entity, country) {
|
|
|
30582
30631
|
...capabilityProblems[baseEntityType],
|
|
30583
30632
|
[entityId]: getEntityProblems(
|
|
30584
30633
|
overrideVerificationErrors(verificationErrors, country),
|
|
30585
|
-
exactEntityType
|
|
30634
|
+
exactEntityType,
|
|
30635
|
+
country,
|
|
30636
|
+
isExperimentEnabled
|
|
30586
30637
|
)
|
|
30587
30638
|
}
|
|
30588
30639
|
}),
|
|
@@ -31584,7 +31635,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
|
|
|
31584
31635
|
};
|
|
31585
31636
|
};
|
|
31586
31637
|
const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
|
|
31587
|
-
const sdkVersion = "
|
|
31638
|
+
const sdkVersion = "4.0.0-beta.1";
|
|
31588
31639
|
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
31589
31640
|
const { mutateAsync } = usePushAnalyticEvent(sessionId ?? "");
|
|
31590
31641
|
useEffect(() => {
|
|
@@ -31624,7 +31675,7 @@ const AnalyticsProvider = ({
|
|
|
31624
31675
|
const userEvents2 = useMemo(() => createUserEvents(), []);
|
|
31625
31676
|
const onboardingVersion = isLoading ? void 0 : isError ? 1 : versionData == null ? void 0 : versionData.version;
|
|
31626
31677
|
const sessionData = {
|
|
31627
|
-
sdkVersion: "
|
|
31678
|
+
sdkVersion: "4.0.0-beta.1",
|
|
31628
31679
|
componentName,
|
|
31629
31680
|
userAgent: navigator.userAgent,
|
|
31630
31681
|
legalEntityId: rootLegalEntityId,
|
|
@@ -32028,7 +32079,7 @@ function StateProvider({
|
|
|
32028
32079
|
);
|
|
32029
32080
|
return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children });
|
|
32030
32081
|
}
|
|
32031
|
-
const DebugModal = lazy(async () => (await import("./DebugModal-
|
|
32082
|
+
const DebugModal = lazy(async () => (await import("./DebugModal-BEmhG3UP.js").then((n) => n.D)).DebugModal);
|
|
32032
32083
|
const DebugListener = () => {
|
|
32033
32084
|
const [debugUiOpen, setDebugUiOpen] = useState(false);
|
|
32034
32085
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -32134,9 +32185,9 @@ export {
|
|
|
32134
32185
|
getOwnSolePropProblems as ah,
|
|
32135
32186
|
getOwnTrustProblems as ai,
|
|
32136
32187
|
getOwnUnincorporatedPartnershipProblems as aj,
|
|
32137
|
-
|
|
32138
|
-
|
|
32139
|
-
|
|
32188
|
+
getOwnEntityAssociations as ak,
|
|
32189
|
+
TrustMemberTypes as al,
|
|
32190
|
+
getLegalEntityNameBasedOnType as am,
|
|
32140
32191
|
useAssociatedLegalEntity as an,
|
|
32141
32192
|
CountryCodes as ao,
|
|
32142
32193
|
isEmpty$1 as ap,
|
|
@@ -32151,7 +32202,7 @@ export {
|
|
|
32151
32202
|
createFormUtils as ay,
|
|
32152
32203
|
Field as az,
|
|
32153
32204
|
useI18nContext as b,
|
|
32154
|
-
|
|
32205
|
+
COUNTRIES_WITH_STATES_DATASET as b$,
|
|
32155
32206
|
datasetUtilities as b0,
|
|
32156
32207
|
getCapabilityProblems as b1,
|
|
32157
32208
|
Modal as b2,
|
|
@@ -32162,33 +32213,33 @@ export {
|
|
|
32162
32213
|
Spacer as b7,
|
|
32163
32214
|
Confirm as b8,
|
|
32164
32215
|
mapTransferInstrumentToPayoutAccount as b9,
|
|
32165
|
-
|
|
32166
|
-
|
|
32167
|
-
|
|
32168
|
-
|
|
32169
|
-
|
|
32170
|
-
|
|
32171
|
-
|
|
32172
|
-
|
|
32173
|
-
|
|
32174
|
-
|
|
32175
|
-
|
|
32176
|
-
|
|
32177
|
-
|
|
32178
|
-
|
|
32179
|
-
|
|
32180
|
-
|
|
32181
|
-
|
|
32182
|
-
|
|
32183
|
-
|
|
32184
|
-
|
|
32185
|
-
|
|
32186
|
-
|
|
32187
|
-
|
|
32188
|
-
|
|
32189
|
-
|
|
32190
|
-
|
|
32191
|
-
|
|
32216
|
+
getOwnDecisionMakers as bA,
|
|
32217
|
+
getAvailableDecisionMakerRoleTypes as bB,
|
|
32218
|
+
getAllowedDecisionMakerRoles as bC,
|
|
32219
|
+
DecisionMakerType as bD,
|
|
32220
|
+
defaultFieldMetadata$1 as bE,
|
|
32221
|
+
fieldConfig as bF,
|
|
32222
|
+
getAsyncPhoneValidationRules as bG,
|
|
32223
|
+
ContactDetails as bH,
|
|
32224
|
+
Checkbox as bI,
|
|
32225
|
+
MaybeModal as bJ,
|
|
32226
|
+
Select as bK,
|
|
32227
|
+
useFormContext as bL,
|
|
32228
|
+
getFormProps as bM,
|
|
32229
|
+
isEmpty as bN,
|
|
32230
|
+
getRequiredForms as bO,
|
|
32231
|
+
addValidityToForms as bP,
|
|
32232
|
+
useFormComposer as bQ,
|
|
32233
|
+
reverseMapping as bR,
|
|
32234
|
+
formatObject as bS,
|
|
32235
|
+
isEeaCountry as bT,
|
|
32236
|
+
Link as bU,
|
|
32237
|
+
InputNumber as bV,
|
|
32238
|
+
InputDate as bW,
|
|
32239
|
+
Currency as bX,
|
|
32240
|
+
CURRENCY_FIELD as bY,
|
|
32241
|
+
InputCurrency as bZ,
|
|
32242
|
+
getAddressSchemaForCountry as b_,
|
|
32192
32243
|
cloneObject as ba,
|
|
32193
32244
|
currencyByCountry as bb,
|
|
32194
32245
|
entriesOf as bc,
|
|
@@ -32198,186 +32249,191 @@ export {
|
|
|
32198
32249
|
httpDelete as bg,
|
|
32199
32250
|
httpPost as bh,
|
|
32200
32251
|
getProblemsForEntity as bi,
|
|
32201
|
-
|
|
32202
|
-
|
|
32203
|
-
|
|
32204
|
-
|
|
32205
|
-
|
|
32206
|
-
|
|
32207
|
-
|
|
32208
|
-
|
|
32209
|
-
|
|
32210
|
-
|
|
32211
|
-
|
|
32212
|
-
|
|
32213
|
-
|
|
32214
|
-
|
|
32215
|
-
|
|
32216
|
-
|
|
32217
|
-
|
|
32252
|
+
isOnfidoAutofillFlowEnabled as bj,
|
|
32253
|
+
individualComponentsKeyMapping as bk,
|
|
32254
|
+
businessDetailsComponentsKeyMapping as bl,
|
|
32255
|
+
Svg as bm,
|
|
32256
|
+
useQueryClient as bn,
|
|
32257
|
+
PayoutDetailsDropin as bo,
|
|
32258
|
+
refreshSession as bp,
|
|
32259
|
+
InputText as bq,
|
|
32260
|
+
splitTaskIdentifier as br,
|
|
32261
|
+
listToRecord as bs,
|
|
32262
|
+
valuesOf as bt,
|
|
32263
|
+
ExperimentNames as bu,
|
|
32264
|
+
KEYBOARD_KEYS as bv,
|
|
32265
|
+
getTranslationKeysByPrefix as bw,
|
|
32266
|
+
StepProgressIndicator as bx,
|
|
32267
|
+
getCapabilities as by,
|
|
32268
|
+
EntityTypeRadioGroupCard as bz,
|
|
32218
32269
|
useDataset as c,
|
|
32219
|
-
|
|
32220
|
-
|
|
32221
|
-
|
|
32222
|
-
|
|
32223
|
-
|
|
32224
|
-
|
|
32225
|
-
|
|
32226
|
-
|
|
32227
|
-
|
|
32228
|
-
|
|
32229
|
-
|
|
32230
|
-
|
|
32231
|
-
|
|
32232
|
-
|
|
32233
|
-
|
|
32234
|
-
|
|
32235
|
-
|
|
32236
|
-
|
|
32237
|
-
|
|
32238
|
-
|
|
32239
|
-
|
|
32240
|
-
|
|
32241
|
-
|
|
32242
|
-
|
|
32243
|
-
|
|
32244
|
-
|
|
32245
|
-
|
|
32246
|
-
|
|
32247
|
-
|
|
32248
|
-
|
|
32249
|
-
|
|
32250
|
-
|
|
32251
|
-
|
|
32252
|
-
|
|
32253
|
-
|
|
32254
|
-
|
|
32255
|
-
|
|
32256
|
-
|
|
32257
|
-
|
|
32258
|
-
|
|
32259
|
-
|
|
32260
|
-
|
|
32261
|
-
|
|
32262
|
-
|
|
32263
|
-
|
|
32264
|
-
|
|
32265
|
-
|
|
32266
|
-
|
|
32267
|
-
|
|
32268
|
-
|
|
32269
|
-
|
|
32270
|
-
|
|
32271
|
-
|
|
32272
|
-
|
|
32273
|
-
|
|
32274
|
-
|
|
32275
|
-
|
|
32276
|
-
|
|
32277
|
-
|
|
32278
|
-
|
|
32279
|
-
|
|
32280
|
-
|
|
32281
|
-
|
|
32282
|
-
|
|
32270
|
+
isLowRiskCountry as c$,
|
|
32271
|
+
Address as c0,
|
|
32272
|
+
getAddressSchemaLabelsByCountry as c1,
|
|
32273
|
+
getAssociatedLeAnalyticsPayload as c2,
|
|
32274
|
+
trackNavigation as c3,
|
|
32275
|
+
isValidationError as c4,
|
|
32276
|
+
processValidationErrors as c5,
|
|
32277
|
+
isMaintenanceModeError as c6,
|
|
32278
|
+
matchesRegex as c7,
|
|
32279
|
+
trimValWithOneSpace as c8,
|
|
32280
|
+
NO_ALPHABET_REGEX as c9,
|
|
32281
|
+
useProviderStatus as cA,
|
|
32282
|
+
addressValidators as cB,
|
|
32283
|
+
getAsyncIdNumberValidationRule as cC,
|
|
32284
|
+
addressFormatters as cD,
|
|
32285
|
+
useScenarios as cE,
|
|
32286
|
+
setHasMotionCaptureScenario as cF,
|
|
32287
|
+
useScenarioConfiguration as cG,
|
|
32288
|
+
getPropsFromConfigurations as cH,
|
|
32289
|
+
individualForms as cI,
|
|
32290
|
+
showIndividualMotionCapture as cJ,
|
|
32291
|
+
Individual as cK,
|
|
32292
|
+
composePerScenarioFormConfigurations as cL,
|
|
32293
|
+
omitObscuredFieldsIfUnchanged as cM,
|
|
32294
|
+
filterOutUnwantedAssociationsIfRootLE as cN,
|
|
32295
|
+
mapAddressLabels as cO,
|
|
32296
|
+
individualDocumentForms as cP,
|
|
32297
|
+
individualDocumentMapping as cQ,
|
|
32298
|
+
individualObscuredFields as cR,
|
|
32299
|
+
mergeAttachments as cS,
|
|
32300
|
+
getFileExtention as cT,
|
|
32301
|
+
hasNomineesChanged as cU,
|
|
32302
|
+
attachNomineeToRole as cV,
|
|
32303
|
+
idVerificationProviderId as cW,
|
|
32304
|
+
doArraysMatch as cX,
|
|
32305
|
+
createFormRules as cY,
|
|
32306
|
+
allowedCountriesForNominee as cZ,
|
|
32307
|
+
Scenarios as c_,
|
|
32308
|
+
EMOJI_REGEX as ca,
|
|
32309
|
+
hasRepeatedCharacters as cb,
|
|
32310
|
+
isInvalidName as cc,
|
|
32311
|
+
INDIVIDUAL_VALID_CHAR_REGEX as cd,
|
|
32312
|
+
getFormattingRegEx as ce,
|
|
32313
|
+
SPECIAL_CHARS as cf,
|
|
32314
|
+
standardKatakanaValidator as cg,
|
|
32315
|
+
standardKanjiValidator as ch,
|
|
32316
|
+
getSSNType as ci,
|
|
32317
|
+
defaultFieldMetadata as cj,
|
|
32318
|
+
defaultFieldConfig as ck,
|
|
32319
|
+
defaultFieldMetadata$5 as cl,
|
|
32320
|
+
defaultFieldConfig$4 as cm,
|
|
32321
|
+
getAgeToday as cn,
|
|
32322
|
+
euCountries as co,
|
|
32323
|
+
getIdDocument as cp,
|
|
32324
|
+
getDocument as cq,
|
|
32325
|
+
mapExistingFile as cr,
|
|
32326
|
+
getPageName as cs,
|
|
32327
|
+
getLocalizedIdDocumentTypeOptions as ct,
|
|
32328
|
+
getPage as cu,
|
|
32329
|
+
createDocumentRequest as cv,
|
|
32330
|
+
individualApiKeyMapping as cw,
|
|
32331
|
+
getNomineeFromAssociation as cx,
|
|
32332
|
+
drop as cy,
|
|
32333
|
+
documentApiUtils as cz,
|
|
32283
32334
|
datasetIdentifier as d,
|
|
32284
|
-
|
|
32285
|
-
|
|
32286
|
-
|
|
32287
|
-
|
|
32288
|
-
|
|
32289
|
-
|
|
32290
|
-
|
|
32291
|
-
|
|
32292
|
-
|
|
32293
|
-
|
|
32294
|
-
|
|
32295
|
-
|
|
32296
|
-
|
|
32297
|
-
|
|
32298
|
-
|
|
32299
|
-
|
|
32300
|
-
|
|
32301
|
-
|
|
32302
|
-
|
|
32303
|
-
|
|
32304
|
-
|
|
32305
|
-
|
|
32306
|
-
|
|
32307
|
-
|
|
32308
|
-
|
|
32309
|
-
|
|
32310
|
-
|
|
32311
|
-
|
|
32312
|
-
|
|
32313
|
-
|
|
32314
|
-
|
|
32315
|
-
|
|
32316
|
-
|
|
32317
|
-
|
|
32318
|
-
|
|
32319
|
-
|
|
32320
|
-
|
|
32321
|
-
|
|
32322
|
-
|
|
32323
|
-
|
|
32324
|
-
|
|
32325
|
-
|
|
32326
|
-
|
|
32327
|
-
|
|
32328
|
-
|
|
32329
|
-
|
|
32330
|
-
|
|
32331
|
-
|
|
32332
|
-
|
|
32333
|
-
|
|
32334
|
-
|
|
32335
|
-
|
|
32336
|
-
|
|
32337
|
-
|
|
32338
|
-
|
|
32339
|
-
|
|
32340
|
-
|
|
32341
|
-
|
|
32342
|
-
|
|
32343
|
-
|
|
32344
|
-
|
|
32345
|
-
|
|
32346
|
-
|
|
32335
|
+
businessDetailsApiKeyMapping as d$,
|
|
32336
|
+
isTruthyValidator as d0,
|
|
32337
|
+
licenseCardNumberDefaultMetadata as d1,
|
|
32338
|
+
licenseCardNumberDefaultConfig as d2,
|
|
32339
|
+
idNumberFields as d3,
|
|
32340
|
+
IdentityNumber as d4,
|
|
32341
|
+
additionallIdNumberOptions as d5,
|
|
32342
|
+
MaskedInput as d6,
|
|
32343
|
+
formatDateObj as d7,
|
|
32344
|
+
DriversLicense as d8,
|
|
32345
|
+
addressFields as d9,
|
|
32346
|
+
MemoizedDocumentUpload as dA,
|
|
32347
|
+
MemoizedProofOfResidencyUpload as dB,
|
|
32348
|
+
individualOnfidoApiKeyMapping as dC,
|
|
32349
|
+
individualOnfidoBaseMapping as dD,
|
|
32350
|
+
individualOnfidoDocumentMapping as dE,
|
|
32351
|
+
individualOnfidoObscuredFields as dF,
|
|
32352
|
+
FormContext as dG,
|
|
32353
|
+
FormRouterContextProvider as dH,
|
|
32354
|
+
ValidationResult as dI,
|
|
32355
|
+
isNotEmptyValidator as dJ,
|
|
32356
|
+
emailPattern as dK,
|
|
32357
|
+
getNestedPropertyKeys as dL,
|
|
32358
|
+
useId as dM,
|
|
32359
|
+
ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES as dN,
|
|
32360
|
+
KNOWN_BROKEN_PRIMARY_SOURCE_CONNECTIONS as dO,
|
|
32361
|
+
useGlobalData as dP,
|
|
32362
|
+
getForms as dQ,
|
|
32363
|
+
BasicInformation as dR,
|
|
32364
|
+
CompanyStructure as dS,
|
|
32365
|
+
AdditionalInformation as dT,
|
|
32366
|
+
MemoizedConstitutionalDocument as dU,
|
|
32367
|
+
FinancialInformation as dV,
|
|
32368
|
+
solePropBusinessDetailsKeyMapping as dW,
|
|
32369
|
+
operationalAddressIsSameIds as dX,
|
|
32370
|
+
COUNTRIES_USING_COMPANY_SEARCH as dY,
|
|
32371
|
+
FIELDS_NEEDED_FOR_COMPANY_SEARCH as dZ,
|
|
32372
|
+
solePropBusinessDetailsApiKeyMapping as d_,
|
|
32373
|
+
getDefaultTaxIdNumberType as da,
|
|
32374
|
+
getAgeRangeForLegalRepresentative as db,
|
|
32375
|
+
IndividualIdNumberTypeSelector as dc,
|
|
32376
|
+
TaxInformationField as dd,
|
|
32377
|
+
PatriotActDisclosure as de,
|
|
32378
|
+
isLegalRepresentativeNeeded as df,
|
|
32379
|
+
decisionMakerRoleFields as dg,
|
|
32380
|
+
nomineeFields as dh,
|
|
32381
|
+
contactDetailFields as di,
|
|
32382
|
+
DecisionMakerRole as dj,
|
|
32383
|
+
NomineeDecisionMakerRole as dk,
|
|
32384
|
+
LocalizedNameFields as dl,
|
|
32385
|
+
keysOf as dm,
|
|
32386
|
+
RadioWithLabel as dn,
|
|
32387
|
+
pick as dp,
|
|
32388
|
+
IdVerification as dq,
|
|
32389
|
+
isPersonUnderAge as dr,
|
|
32390
|
+
IdDocumentManualUpload as ds,
|
|
32391
|
+
idDocumentUploadFields as dt,
|
|
32392
|
+
useFormRouterContext as du,
|
|
32393
|
+
useCapabilities as dv,
|
|
32394
|
+
hasMotionCaptureScenario as dw,
|
|
32395
|
+
setShowIndividualMotionCapture as dx,
|
|
32396
|
+
shouldShowMotionCapture as dy,
|
|
32397
|
+
MemoizedProofOfRelationship as dz,
|
|
32347
32398
|
uuidv4 as e,
|
|
32348
|
-
|
|
32349
|
-
|
|
32350
|
-
|
|
32351
|
-
|
|
32352
|
-
|
|
32353
|
-
|
|
32354
|
-
|
|
32355
|
-
|
|
32356
|
-
|
|
32357
|
-
|
|
32358
|
-
|
|
32359
|
-
|
|
32360
|
-
|
|
32361
|
-
|
|
32362
|
-
|
|
32363
|
-
|
|
32364
|
-
|
|
32365
|
-
|
|
32366
|
-
|
|
32367
|
-
|
|
32368
|
-
|
|
32369
|
-
|
|
32370
|
-
|
|
32371
|
-
|
|
32372
|
-
|
|
32373
|
-
|
|
32374
|
-
|
|
32375
|
-
|
|
32376
|
-
|
|
32377
|
-
|
|
32378
|
-
|
|
32379
|
-
|
|
32380
|
-
|
|
32399
|
+
COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as e0,
|
|
32400
|
+
augmentWithCountryConfigs as e1,
|
|
32401
|
+
companyTypeMetadata as e2,
|
|
32402
|
+
getProp as e3,
|
|
32403
|
+
documentFormsIds as e4,
|
|
32404
|
+
registrationNumberDefaultFieldMetadata as e5,
|
|
32405
|
+
inferCompanyRegistrationNumberType as e6,
|
|
32406
|
+
getCompanyRegistrationNumberOptions as e7,
|
|
32407
|
+
registrationNumberDefaultFieldConfig as e8,
|
|
32408
|
+
countryToTaxInfoTypeMap as e9,
|
|
32409
|
+
useLegalEntities as eA,
|
|
32410
|
+
PayoutDetailsPage$1 as eB,
|
|
32411
|
+
getKeyForField as ea,
|
|
32412
|
+
verifiedBusiness as eb,
|
|
32413
|
+
useStateContext as ec,
|
|
32414
|
+
setIsBankAccountRequestedForOrganization as ed,
|
|
32415
|
+
rules as ee,
|
|
32416
|
+
useCompanySelection as ef,
|
|
32417
|
+
useVerifyTin as eg,
|
|
32418
|
+
setVerifiedBusiness as eh,
|
|
32419
|
+
FormWrapper as ei,
|
|
32420
|
+
solePropBusinessDetailsDocumentMapping as ej,
|
|
32421
|
+
businessDetailsDocumentMapping as ek,
|
|
32422
|
+
UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL as el,
|
|
32423
|
+
UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED as em,
|
|
32424
|
+
UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL as en,
|
|
32425
|
+
UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED as eo,
|
|
32426
|
+
UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL as ep,
|
|
32427
|
+
trustComponentsKeyMapping as eq,
|
|
32428
|
+
trustApiKeyMapping as er,
|
|
32429
|
+
trustForms as es,
|
|
32430
|
+
Trust as et,
|
|
32431
|
+
trustDocumentMapping as eu,
|
|
32432
|
+
trustConstitutionalDocumentFormId as ev,
|
|
32433
|
+
Currencies as ew,
|
|
32434
|
+
InputGroup as ex,
|
|
32435
|
+
useGlobalDataSlice as ey,
|
|
32436
|
+
Dropzone as ez,
|
|
32381
32437
|
ApiProvider as f,
|
|
32382
32438
|
getLegalEntityCountry as g,
|
|
32383
32439
|
StoreProvider as h,
|