@adyen/kyc-components 3.43.4 → 3.44.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/es/adyen-kyc-components.es.js +727 -150
- package/dist/style.css +6 -4
- package/dist/types/components/AdditionalInformation/VerifiedBusinessCard.d.ts +1 -1
- package/dist/types/components/AdditionalInformation/types.d.ts +10 -10
- package/dist/types/components/AdditionalInformation/utils.d.ts +1 -1
- package/dist/types/components/{internal/Address → Address}/constants.d.ts +1 -1
- package/dist/types/components/{internal/Address → Address}/types.d.ts +7 -7
- package/dist/types/components/Address/utils.d.ts +20 -0
- package/dist/types/components/{internal/Address → Address}/validate.d.ts +3 -3
- package/dist/types/components/{internal/Address → Address}/validate.formats.d.ts +1 -1
- package/dist/types/components/{internal/BankAccountNumber → BankAccountNumber}/fieldConfig.d.ts +2 -2
- package/dist/types/components/{internal/BankAccountNumber → BankAccountNumber}/types.d.ts +2 -2
- package/dist/types/components/{internal/BankCity → BankCity}/types.d.ts +1 -1
- package/dist/types/components/{internal/BankCode → BankCode}/fieldConfig.d.ts +2 -2
- package/dist/types/components/{internal/BankCode → BankCode}/types.d.ts +2 -2
- package/dist/types/components/{internal/BankName → BankName}/types.d.ts +1 -1
- package/dist/types/components/BasicInformation/types.d.ts +6 -6
- package/dist/types/components/{internal/BranchCode → BranchCode}/fieldConfig.d.ts +2 -2
- package/dist/types/components/{internal/BranchCode → BranchCode}/types.d.ts +2 -2
- package/dist/types/components/BusinessDetails/forms.d.ts +1 -1
- package/dist/types/components/{internal/BusinessNameField → BusinessNameField}/fieldConfig.d.ts +1 -1
- package/dist/types/components/{internal/BusinessNameField → BusinessNameField}/types.d.ts +1 -1
- package/dist/types/components/{internal/BusinessRegistrationNumber → BusinessRegistrationNumber}/fieldConfig.d.ts +5 -5
- package/dist/types/components/{internal/BusinessRegistrationNumber → BusinessRegistrationNumber}/types.d.ts +3 -3
- package/dist/types/components/{internal/BusinessRegistrationNumberField → BusinessRegistrationNumberField}/types.d.ts +3 -3
- package/dist/types/components/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +1 -1
- package/dist/types/components/BusinessTypeSelection/types.d.ts +1 -1
- package/dist/types/components/BusinessTypeSelection/utils.d.ts +2 -2
- package/dist/types/components/Company/Company.d.ts +1 -1
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +3 -3
- package/dist/types/components/CompanyRegistrationDetails/types.d.ts +10 -10
- package/dist/types/components/ContactDetails/ContactDetails.d.ts +2 -3
- package/dist/types/components/ContactDetails/types.d.ts +2 -2
- package/dist/types/components/{internal/CountryField → CountryField}/types.d.ts +2 -2
- package/dist/types/components/{internal/CountryField → CountryField}/validate.d.ts +1 -1
- package/dist/types/components/{internal/CountryOfGoverningLawField → CountryOfGoverningLawField}/types.d.ts +2 -2
- package/dist/types/components/{internal/CountryOfGoverningLawField → CountryOfGoverningLawField}/validate.d.ts +1 -1
- package/dist/types/components/{internal/Currency → Currency}/types.d.ts +3 -3
- package/dist/types/components/{internal/DBANameField → DBANameField}/fieldConfig.d.ts +1 -1
- package/dist/types/components/{internal/DBANameField → DBANameField}/types.d.ts +1 -1
- package/dist/types/components/{internal/DateOfIncorporationField → DateOfIncorporationField}/fieldConfig.d.ts +1 -1
- package/dist/types/components/{internal/DateOfIncorporationField → DateOfIncorporationField}/types.d.ts +1 -1
- package/dist/types/components/{internal/DebugTable → DebugTable}/DebugTable.d.ts +1 -1
- package/dist/types/components/{internal/DecisionMakerRole → DecisionMakerRole}/types.d.ts +5 -5
- package/dist/types/components/{internal/DecisionMakerRole → DecisionMakerRole}/validate.d.ts +1 -1
- package/dist/types/components/DecisionMakers/types.d.ts +1 -1
- package/dist/types/components/{internal/DocumentGuidance → DocumentGuidance}/types.d.ts +3 -3
- package/dist/types/components/Dropins/BusinessDetailsDropin/types.d.ts +3 -3
- package/dist/types/components/Dropins/FormWrapper/FormWrapper.d.ts +2 -2
- package/dist/types/components/Dropins/HighExposureDropin/types.d.ts +1 -1
- package/dist/types/components/Dropins/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
- package/dist/types/components/Dropins/ServiceAgreementDropin/useServiceAgreement.d.ts +1 -1
- package/dist/types/components/Dropins/SourceOfFundsDropin/SourceOfFunds.d.ts +2 -0
- package/dist/types/components/Dropins/SourceOfFundsDropin/SourceOfFundsDropin.d.ts +4 -1
- package/dist/types/components/Dropins/SourceOfFundsDropin/SourceOfFundsTellUsMore.d.ts +3 -0
- package/dist/types/components/Dropins/SourceOfFundsDropin/SourceOfFundsType.d.ts +3 -0
- package/dist/types/components/Dropins/SourceOfFundsDropin/types.d.ts +30 -2
- package/dist/types/components/Dropins/SourceOfFundsDropin/validate.d.ts +4 -0
- package/dist/types/components/{internal/EInvoicingCodeField → EInvoicingCodeField}/fieldConfig.d.ts +1 -1
- package/dist/types/components/{internal/EInvoicingCodeField → EInvoicingCodeField}/types.d.ts +1 -1
- package/dist/types/components/{internal/EntityAssociation → EntityAssociation}/types.d.ts +5 -5
- package/dist/types/components/{internal/EntityGuidanceStatus → EntityGuidanceStatus}/types.d.ts +4 -4
- package/dist/types/components/{internal/ErrorPanel → ErrorPanel}/types.d.ts +3 -3
- package/dist/types/components/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
- package/dist/types/components/{internal/FinancialReportingDate → FinancialReportingDate}/types.d.ts +1 -1
- package/dist/types/components/{internal/FormEndState → FormEndState}/types.d.ts +1 -1
- package/dist/types/components/{internal/Iban → Iban}/fieldConfig.d.ts +2 -2
- package/dist/types/components/Iban/ibanValidator.d.ts +3 -0
- package/dist/types/components/{internal/Iban → Iban}/types.d.ts +2 -2
- package/dist/types/components/{internal/IdFieldTypeSelector → IdFieldTypeSelector}/CompanyRegistrationNumberTypeSelector.d.ts +3 -3
- package/dist/types/components/{internal/IdFieldTypeSelector → IdFieldTypeSelector}/IndividualIdNumberTypeSelector.d.ts +1 -1
- package/dist/types/components/{internal/IdFieldTypeSelector → IdFieldTypeSelector}/TaxIdNumberTypeSelector.d.ts +4 -4
- package/dist/types/components/{internal/IdFieldTypeSelector → IdFieldTypeSelector}/countryIdNumberTypes.d.ts +4 -4
- package/dist/types/components/{internal/IdFieldTypeSelector → IdFieldTypeSelector}/inferCompanyRegistrationNumberType.d.ts +2 -2
- package/dist/types/components/{internal/IdFieldTypeSelector → IdFieldTypeSelector}/inferTaxIdNumberType.d.ts +3 -3
- package/dist/types/components/IdVerificationMethod/idVerificationMethodMetadata.d.ts +1 -1
- package/dist/types/components/IdentityNumber/fieldConfig.d.ts +1 -1
- package/dist/types/components/IdentityNumber/type.d.ts +1 -1
- package/dist/types/components/Individual/types.d.ts +3 -3
- package/dist/types/components/{internal/LegalCompanyNameField → LegalCompanyNameField}/fieldConfig.d.ts +2 -2
- package/dist/types/components/{internal/LegalCompanyNameField → LegalCompanyNameField}/types.d.ts +1 -1
- package/dist/types/components/{internal/LegalFormField → LegalFormField}/types.d.ts +2 -2
- package/dist/types/components/{internal/NaceCodeField → NaceCodeField}/types.d.ts +1 -1
- package/dist/types/components/{internal/Name → Name}/Name.d.ts +2 -2
- package/dist/types/components/{internal/Name → Name}/types.d.ts +1 -1
- package/dist/types/components/{internal/Name → Name}/validate.d.ts +1 -1
- package/dist/types/components/{internal/NumberOfEmployees → NumberOfEmployees}/types.d.ts +1 -1
- package/dist/types/components/PayoutAccount/types.d.ts +2 -2
- package/dist/types/components/PayoutDetails/types.d.ts +1 -1
- package/dist/types/components/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +1 -1
- package/dist/types/components/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -1
- package/dist/types/components/PayoutVerificationMethod/types.d.ts +1 -1
- package/dist/types/components/PersonalDetails/Identity/IdentityAu/DriversLicense.d.ts +1 -1
- package/dist/types/components/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +1 -1
- package/dist/types/components/PersonalDetails/Identity/types.d.ts +1 -1
- package/dist/types/components/PersonalDetails/types.d.ts +3 -3
- package/dist/types/components/{internal/PhoneField → PhoneField}/PhoneField.d.ts +1 -1
- package/dist/types/components/{internal/PhoneField → PhoneField}/PhoneFieldExperimentWrapper.d.ts +1 -1
- package/dist/types/components/{internal/PhoneField → PhoneField}/fieldConfig.d.ts +3 -3
- package/dist/types/components/PhoneField/types.d.ts +10 -0
- package/dist/types/components/{internal/PhoneInput → PhoneInput}/PhoneInput.d.ts +2 -2
- package/dist/types/components/{internal/PhoneInput/types.d.ts → PhoneInput/PhoneInput.types.d.ts} +2 -2
- package/dist/types/components/{internal/PhoneInput → PhoneInput}/validate.d.ts +2 -2
- package/dist/types/components/RegistrationAddress/types.d.ts +1 -1
- package/dist/types/components/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/SoleProp/SoleProp.d.ts +1 -1
- package/dist/types/components/{internal/StateField → StateField}/fieldConfig.d.ts +2 -2
- package/dist/types/components/StateField/types.d.ts +10 -0
- package/dist/types/components/{internal/StockExchangeMICField → StockExchangeMICField}/fieldConfig.d.ts +1 -1
- package/dist/types/components/{internal/StockExchangeMICField → StockExchangeMICField}/types.d.ts +1 -1
- package/dist/types/components/{internal/StockISINField → StockISINField}/fieldConfig.d.ts +1 -1
- package/dist/types/components/{internal/StockISINField → StockISINField}/types.d.ts +1 -1
- package/dist/types/components/{internal/StockTickerSymbol → StockTickerSymbol}/fieldConfig.d.ts +1 -1
- package/dist/types/components/{internal/StockTickerSymbol → StockTickerSymbol}/types.d.ts +1 -1
- package/dist/types/components/{internal/Summary → Summary}/Summary.d.ts +2 -2
- package/dist/types/components/{internal/Summary → Summary}/summaryItem.d.ts +1 -1
- package/dist/types/components/{internal/Summary → Summary}/types.d.ts +2 -2
- package/dist/types/components/{internal/SwiftCode → SwiftCode}/fieldConfig.d.ts +1 -1
- package/dist/types/components/{internal/SwiftCode → SwiftCode}/types.d.ts +1 -1
- package/dist/types/components/TaskList/types.d.ts +3 -3
- package/dist/types/components/{internal/TaxId → TaxId}/fieldConfig.d.ts +4 -4
- package/dist/types/components/{internal/TaxId → TaxId}/types.d.ts +4 -4
- package/dist/types/components/{internal/TaxInformationField → TaxInformationField}/fieldConfig.d.ts +1 -1
- package/dist/types/components/{internal/TaxInformationField → TaxInformationField}/types.d.ts +5 -5
- package/dist/types/components/{internal/TradingNameField → TradingNameField}/fieldConfig.d.ts +1 -1
- package/dist/types/components/{internal/TradingNameField → TradingNameField}/types.d.ts +1 -1
- package/dist/types/components/TrustRegistrationDetails/types.d.ts +3 -3
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +1 -1
- package/dist/types/components/{internal/VatNumberField → VatNumberField}/fieldConfig.d.ts +2 -2
- package/dist/types/components/{internal/VatNumberField → VatNumberField}/types.d.ts +3 -3
- package/dist/types/components/{internal → ui/atoms}/Accordion/Accordion.d.ts +1 -1
- package/dist/types/components/{internal/Menu → ui/atoms/ActionsMenu}/ActionsMenu.d.ts +1 -2
- package/dist/types/components/{internal → ui/atoms}/Button/Button.d.ts +1 -1
- package/dist/types/components/{internal/FormFields → ui/atoms}/Field/Field.d.ts +1 -1
- package/dist/types/components/{internal → ui/atoms}/FormHeader/FormHeader.d.ts +1 -1
- package/dist/types/components/{internal/FormFields → ui/atoms/InputCurrency}/InputCurrency.d.ts +3 -4
- package/dist/types/components/{internal/FormFields → ui/atoms}/InputDate/InputDate.d.ts +1 -1
- package/dist/types/components/{internal/FormFields → ui/atoms/InputEmail}/InputEmail.d.ts +1 -1
- package/dist/types/components/{internal/FormFields → ui/atoms/InputNumber}/InputNumber.d.ts +1 -1
- package/dist/types/components/{internal/FormFields → ui/atoms/InputTelephone}/InputTelephone.d.ts +1 -1
- package/dist/types/components/{internal/FormFields → ui/atoms/InputText}/InputText.d.ts +1 -1
- package/dist/types/components/{internal → ui/atoms}/Link/Link.d.ts +1 -1
- package/dist/types/components/{internal → ui/atoms}/List/List.d.ts +1 -1
- package/dist/types/components/ui/atoms/List/List.types.d.ts +8 -0
- package/dist/types/components/{internal/List → ui/atoms/ListItem}/ListItem.d.ts +1 -1
- package/dist/types/components/{internal/List/types.d.ts → ui/atoms/ListItem/ListItem.types.d.ts} +0 -7
- package/dist/types/components/{internal → ui/atoms}/LoaderWrapper/LoaderWrapper.d.ts +1 -2
- package/dist/types/components/{internal/FormFields → ui/atoms}/MaskedInput/MaskedInput.d.ts +2 -1
- package/dist/types/components/{internal/FormFields → ui/atoms}/MultiSelectList/MultiSelectList.d.ts +2 -3
- package/dist/types/components/{embedded-ui → ui/atoms}/OutlinedIcon/OutlinedIcon.d.ts +1 -1
- package/dist/types/components/{internal/FormFields/RadioGroupCard → ui/atoms/RadioCard}/RadioCard.d.ts +1 -1
- package/dist/types/components/{internal/FormFields → ui/atoms}/RadioGroupCard/RadioGroupCard.d.ts +1 -1
- package/dist/types/components/{internal/FormFields/Radio → ui/atoms/RadioWithLabel}/RadioWithLabel.d.ts +1 -1
- package/dist/types/components/{internal → ui/atoms}/Remove/Remove.d.ts +1 -1
- package/dist/types/components/{internal/Remove/types.d.ts → ui/atoms/Remove/Remove.types.d.ts} +1 -1
- package/dist/types/components/{internal/FormFields → ui/atoms}/Select/Select.d.ts +1 -1
- package/dist/types/components/ui/atoms/Select/Select.types.d.ts +62 -0
- package/dist/types/components/{internal/FormFields/Select → ui/atoms/SelectButton}/SelectButton.d.ts +2 -2
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +47 -0
- package/dist/types/components/{internal/FormFields/Select → ui/atoms/SelectList}/SelectList.d.ts +2 -2
- package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +17 -0
- package/dist/types/components/{internal/FormFields/Select → ui/atoms/SelectListItem}/SelectListItem.d.ts +2 -2
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +12 -0
- package/dist/types/components/{internal → ui/atoms}/Status/Status.d.ts +1 -1
- package/dist/types/components/{internal → ui/atoms}/StructuredList/StructuredList.d.ts +1 -1
- package/dist/types/components/{internal → ui/atoms}/Typography/Typography.d.ts +1 -1
- package/dist/types/components/{internal → ui/molecules}/Alert/types.d.ts +1 -1
- package/dist/types/components/{embedded-ui → ui/molecules}/EmbeddedStatus/EmbeddedStatus.d.ts +5 -5
- package/dist/types/components/{embedded-ui → ui/molecules}/EmbeddedStatus/statusToTag.d.ts +4 -4
- package/dist/types/components/{embedded-ui → ui/molecules}/Splashscreen/Splashscreen.d.ts +1 -1
- package/dist/types/components/{internal → ui/molecules}/Toast/Toast.d.ts +1 -1
- package/dist/types/core/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +2 -0
- package/dist/types/core/context/CoreContext.d.ts +2 -2
- package/dist/types/core/context/ExperimentContext/ExperimentsContextProvider.d.ts +1 -1
- package/dist/types/core/context/ExperimentContext/types.d.ts +4 -1
- package/dist/types/core/context/StateContext/types.d.ts +2 -1
- package/dist/types/core/context/ToastContext/ToastContext.d.ts +1 -1
- package/dist/types/core/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -2
- package/dist/types/core/hooks/useAccountHolder.d.ts +1 -1
- package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +1 -1
- package/dist/types/core/hooks/useBusinessSetup.d.ts +1 -1
- package/dist/types/core/hooks/useIdVerificationToken.d.ts +1 -1
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +2 -2
- package/dist/types/core/hooks/useUnifyLoadingStatus.d.ts +1 -1
- package/dist/types/core/models/api/organization.d.ts +1 -1
- package/dist/types/core/models/api/source-of-funds.d.ts +41 -0
- package/dist/types/core/models/form-rules.d.ts +1 -1
- package/dist/types/core/models/payout-account.d.ts +1 -1
- package/dist/types/core/services/componentApi/get-business-lines.d.ts +2 -0
- package/dist/types/datasets/localized/legalArrangementTypeExamples/getLegalArrangementTypeExamplesForCountry.d.ts +1 -1
- package/dist/types/stores/taskStore/calculateTaskStatus.d.ts +1 -1
- package/dist/types/stores/taskStore/determineTaskIdentifiers.d.ts +1 -1
- package/dist/types/stores/taskStore/taskStore.d.ts +1 -1
- package/dist/types/utils/accountHolderUtils.d.ts +1 -1
- package/dist/types/utils/dropinUtils.d.ts +2 -1
- package/dist/types/utils/entityAssociationUtil.d.ts +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +2 -2
- package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
- package/dist/types/utils/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
- package/dist/types/utils/mapping/componentApiMapping.d.ts +18 -0
- package/dist/types/utils/mapping/mapping.d.ts +4 -0
- package/dist/types/utils/masking/matchAgainstMask.d.ts +1 -1
- package/dist/types/utils/masking/stripNonAllowedValues.d.ts +2 -0
- package/dist/types/utils/payoutAccountUtil.d.ts +1 -1
- package/dist/types/utils/roleMetadata.d.ts +1 -1
- package/package.json +4 -2
- package/dist/types/components/internal/Address/utils.d.ts +0 -20
- package/dist/types/components/internal/FormFields/Select/types.d.ts +0 -132
- package/dist/types/components/internal/Iban/ibanValidator.d.ts +0 -3
- package/dist/types/components/internal/PhoneField/types.d.ts +0 -9
- package/dist/types/components/internal/StateField/types.d.ts +0 -10
- /package/dist/types/components/{internal/Address → Address}/Address.d.ts +0 -0
- /package/dist/types/components/{internal/Address → Address}/AddressExperimentWrapper.d.ts +0 -0
- /package/dist/types/components/{internal/Address → Address}/AddressForm.d.ts +0 -0
- /package/dist/types/components/{internal/Address → Address}/FieldContainer.d.ts +0 -0
- /package/dist/types/components/{internal/Address → Address}/FieldWrapper.d.ts +0 -0
- /package/dist/types/components/{internal/Address → Address}/SearchAddress.d.ts +0 -0
- /package/dist/types/components/{internal/BankAccountFormat → BankAccountFormat}/BankAccountFormat.d.ts +0 -0
- /package/dist/types/components/{internal/BankAccountFormat → BankAccountFormat}/types.d.ts +0 -0
- /package/dist/types/components/{internal/BankAccountNumber → BankAccountNumber}/BankAccountNumber.d.ts +0 -0
- /package/dist/types/components/{internal/BankCity → BankCity}/BankCity.d.ts +0 -0
- /package/dist/types/components/{internal/BankCode → BankCode}/BankCode.d.ts +0 -0
- /package/dist/types/components/{internal/BankName → BankName}/BankName.d.ts +0 -0
- /package/dist/types/components/{internal/BranchCode → BranchCode}/BranchCode.d.ts +0 -0
- /package/dist/types/components/{internal/BusinessNameField → BusinessNameField}/BusinessNameField.d.ts +0 -0
- /package/dist/types/components/{internal/BusinessRegistrationNumber → BusinessRegistrationNumber}/BusinessRegistrationNumber.d.ts +0 -0
- /package/dist/types/components/{internal/BusinessRegistrationNumberField → BusinessRegistrationNumberField}/BusinessRegistrationNumberField.d.ts +0 -0
- /package/dist/types/components/{internal/ContextGuidance → ContextGuidance}/ContextGuidance.d.ts +0 -0
- /package/dist/types/components/{internal/ContextGuidance → ContextGuidance}/types.d.ts +0 -0
- /package/dist/types/components/{internal/ContractViewer → ContractViewer}/ContractViewer.d.ts +0 -0
- /package/dist/types/components/{internal/ContractViewer → ContractViewer}/types.d.ts +0 -0
- /package/dist/types/components/{internal/CountryField → CountryField}/CountryField.d.ts +0 -0
- /package/dist/types/components/{internal/CountryOfGoverningLawField → CountryOfGoverningLawField}/CountryOfGoverningLawField.d.ts +0 -0
- /package/dist/types/components/{internal/Currency → Currency}/Currency.d.ts +0 -0
- /package/dist/types/components/{internal/DBANameField → DBANameField}/DBANameField.d.ts +0 -0
- /package/dist/types/components/{internal/DateOfIncorporationField → DateOfIncorporationField}/DateOfIncorporationField.d.ts +0 -0
- /package/dist/types/components/{internal/DecisionMakerRole → DecisionMakerRole}/DecisionMakerRole.d.ts +0 -0
- /package/dist/types/components/{internal/DecisionMakerRole → DecisionMakerRole}/NomineeDecisionMakerRole.d.ts +0 -0
- /package/dist/types/components/{internal/DocumentGuidance → DocumentGuidance}/DocumentGuidance.d.ts +0 -0
- /package/dist/types/components/{internal/EInvoicingCodeField → EInvoicingCodeField}/EInvoicingCodeField.d.ts +0 -0
- /package/dist/types/components/{internal/EntityAssociation → EntityAssociation}/EntityAssociation.d.ts +0 -0
- /package/dist/types/components/{internal/EntityGuidanceStatus → EntityGuidanceStatus}/EntityGuidanceStatus.d.ts +0 -0
- /package/dist/types/components/{internal/EntityGuidanceStatus → EntityGuidanceStatus}/EntityStatusIcon.d.ts +0 -0
- /package/dist/types/components/{internal/ErrorPanel → ErrorPanel}/ErrorPanel.d.ts +0 -0
- /package/dist/types/components/{internal/ErrorPanel → ErrorPanel}/NavigateToFieldLink.d.ts +0 -0
- /package/dist/types/components/{internal/ErrorPanel → ErrorPanel}/ServerValidationErrors.d.ts +0 -0
- /package/dist/types/components/{internal/ErrorPanel → ErrorPanel}/VerificationErrors.d.ts +0 -0
- /package/dist/types/components/{internal/ErrorPanel → ErrorPanel}/constants.d.ts +0 -0
- /package/dist/types/components/{internal/FinancialReportingDate → FinancialReportingDate}/FinancialReportingDate.d.ts +0 -0
- /package/dist/types/components/{internal/FormEndState → FormEndState}/FormEndState.d.ts +0 -0
- /package/dist/types/components/{internal/Iban → Iban}/Iban.d.ts +0 -0
- /package/dist/types/components/{internal/LegalCompanyNameField → LegalCompanyNameField}/LegalCompanyNameField.d.ts +0 -0
- /package/dist/types/components/{internal/LegalFormField → LegalFormField}/LegalFormField.d.ts +0 -0
- /package/dist/types/components/{internal/NaceCodeField → NaceCodeField}/NaceCodeField.d.ts +0 -0
- /package/dist/types/components/{internal/NumberOfEmployees → NumberOfEmployees}/NumberOfEmployees.d.ts +0 -0
- /package/dist/types/components/{internal/StateField → StateField}/StateField.d.ts +0 -0
- /package/dist/types/components/{internal/StockExchangeMICField → StockExchangeMICField}/StockExchangeMICField.d.ts +0 -0
- /package/dist/types/components/{internal/StockISINField → StockISINField}/StockISINField.d.ts +0 -0
- /package/dist/types/components/{internal/StockTickerSymbol → StockTickerSymbol}/StockTickerSymbolField.d.ts +0 -0
- /package/dist/types/components/{internal/SwiftCode → SwiftCode}/SwiftCode.d.ts +0 -0
- /package/dist/types/components/{internal/TaxId → TaxId}/TaxId.d.ts +0 -0
- /package/dist/types/components/{internal/TaxInformationField → TaxInformationField}/TaxInformationField.d.ts +0 -0
- /package/dist/types/components/{internal/TradingNameField → TradingNameField}/TradingNameField.d.ts +0 -0
- /package/dist/types/components/{internal/VatNumberField → VatNumberField}/VatNumberField.d.ts +0 -0
- /package/dist/types/components/{internal/Button/types.d.ts → ui/atoms/Button/Button.types.d.ts} +0 -0
- /package/dist/types/components/{internal/FormFields → ui/atoms}/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/types/components/{internal → ui/atoms}/Divider/Divider.d.ts +0 -0
- /package/dist/types/components/{internal/FormFields/Field/types.d.ts → ui/atoms/Field/Field.types.d.ts} +0 -0
- /package/dist/types/components/{internal/FormHeader/type.d.ts → ui/atoms/FormHeader/FormHeader.types.d.ts} +0 -0
- /package/dist/types/components/{internal → ui/atoms}/Icon/Icon.d.ts +0 -0
- /package/dist/types/components/{internal/FormFields → ui/atoms/InputBase}/InputBase.d.ts +0 -0
- /package/dist/types/components/{internal/FormFields/InputDate/utils.d.ts → ui/atoms/InputDate/InputDate.utils.d.ts} +0 -0
- /package/dist/types/components/{internal/FormFields → ui/atoms}/InputGroup/InputGroup.d.ts +0 -0
- /package/dist/types/components/{internal/Link/types.d.ts → ui/atoms/Link/Link.types.d.ts} +0 -0
- /package/dist/types/components/{internal → ui/atoms}/Loader/Loader.d.ts +0 -0
- /package/dist/types/components/{internal → ui/atoms}/LoaderWrapper/constants.d.ts +0 -0
- /package/dist/types/components/{internal → ui/atoms}/Modal/MaybeModal.d.ts +0 -0
- /package/dist/types/components/{internal → ui/atoms}/Modal/Modal.d.ts +0 -0
- /package/dist/types/components/{internal/FormFields → ui/atoms}/Radio/Radio.d.ts +0 -0
- /package/dist/types/components/{internal/FormFields → ui/atoms}/RadioGroup/RadioGroup.d.ts +0 -0
- /package/dist/types/components/{internal/FormFields/RadioGroupCard/types.d.ts → ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts} +0 -0
- /package/dist/types/components/{internal → ui/atoms}/Skeleton/Skeleton.d.ts +0 -0
- /package/dist/types/components/{internal/Status/types.d.ts → ui/atoms/Status/Status.types.d.ts} +0 -0
- /package/dist/types/components/{StepProgressIndicator → ui/atoms/StepProgressIndicator}/StepProgressIndicator.d.ts +0 -0
- /package/dist/types/components/{internal → ui/atoms}/Svg/Svg.d.ts +0 -0
- /package/dist/types/components/{internal → ui/atoms}/Svg/svgs.d.ts +0 -0
- /package/dist/types/components/{internal → ui/atoms}/Tag/Tag.d.ts +0 -0
- /package/dist/types/components/{internal/FormFields → ui/atoms/TextArea}/TextArea.d.ts +0 -0
- /package/dist/types/components/{internal/Typography/types.d.ts → ui/atoms/Typography/Typography.types.d.ts} +0 -0
- /package/dist/types/components/{internal → ui/molecules}/Alert/Alert.d.ts +0 -0
- /package/dist/types/components/{internal → ui/molecules}/Alert/VerificationErrorAlert.d.ts +0 -0
- /package/dist/types/components/{internal → ui/molecules}/Card/Card.d.ts +0 -0
- /package/dist/types/components/{internal → ui/molecules}/Card/CardGroup.d.ts +0 -0
- /package/dist/types/components/{internal → ui/molecules}/Card/types.d.ts +0 -0
- /package/dist/types/components/{internal → ui/molecules}/Confirm/Confirm.d.ts +0 -0
- /package/dist/types/components/{internal → ui/molecules}/Confirm/types.d.ts +0 -0
- /package/dist/types/components/{internal/FormFields → ui/molecules}/Dropzone/Dropzone.d.ts +0 -0
- /package/dist/types/components/{internal/FormFields → ui/molecules}/Dropzone/DropzoneFile.d.ts +0 -0
- /package/dist/types/components/{internal/FormFields → ui/molecules}/Dropzone/FilePicker.d.ts +0 -0
- /package/dist/types/components/{internal/FormFields → ui/molecules}/Dropzone/types.d.ts +0 -0
- /package/dist/types/components/{internal/FormFields → ui/molecules}/Dropzone/validate.d.ts +0 -0
- /package/dist/types/components/{internal/Toast/types.d.ts → ui/molecules/Toast/Toast.types.d.ts} +0 -0
- /package/dist/types/{components/internal/AccountHolder/types.d.ts → core/types/AccountHolder.types.d.ts} +0 -0
- /package/dist/types/{components/internal/FormFields/utils.d.ts → utils/formFields/formFieldsUtils.d.ts} +0 -0
|
@@ -21,6 +21,8 @@ const useConfigurationApi = () => {
|
|
|
21
21
|
const ExperimentsContext = createContext({
|
|
22
22
|
isExperimentEnabled: () => false,
|
|
23
23
|
enableVersionExperiment: () => {
|
|
24
|
+
},
|
|
25
|
+
refreshExperiments: () => {
|
|
24
26
|
}
|
|
25
27
|
});
|
|
26
28
|
function useExperimentsContext() {
|
|
@@ -234,6 +236,7 @@ const defaultLocaleTranslations = {
|
|
|
234
236
|
charter: "Charter",
|
|
235
237
|
check: "Check",
|
|
236
238
|
checkForTypos: "Check for typos and try again",
|
|
239
|
+
chooseAFundingCategory: "Choose a funding category for physical and virtual cards",
|
|
237
240
|
city: "City",
|
|
238
241
|
cityTown: "City / Town",
|
|
239
242
|
clearingCode: "Clearing code",
|
|
@@ -543,6 +546,9 @@ const defaultLocaleTranslations = {
|
|
|
543
546
|
errorMessage_1_5051: "Signing person on the affiliation document could not be verified",
|
|
544
547
|
errorMessage_1_5052: "The affiliation document verifies the payout entity is not 100% affiliated with the company. Setup can't be continued.",
|
|
545
548
|
errorMessage_1_5053: "The affiliation document was not issued within the last 6 months",
|
|
549
|
+
errorMessage_1_5054: "The VAT number couldn't be verified",
|
|
550
|
+
errorMessage_1_5055: "VAT document is missing",
|
|
551
|
+
errorMessage_1_5057: "The VAT document wasn't a supported document type",
|
|
546
552
|
errorMessage_1_5067: "The legal name didn't match the one on the VAT registry.",
|
|
547
553
|
errorMessage_1_51: "Organization details didn't match the document",
|
|
548
554
|
errorMessage_1_52: "Registration document didn't meet requirements",
|
|
@@ -551,6 +557,7 @@ const defaultLocaleTranslations = {
|
|
|
551
557
|
errorMessage_1_55: "Proof of ownership is needed",
|
|
552
558
|
errorMessage_1_56: "Organization ownership couldn't be verified",
|
|
553
559
|
errorMessage_1_57: "Submitted affiliation document didn't meet the requirements",
|
|
560
|
+
errorMessage_1_58: "VAT document didn't meet requirements",
|
|
554
561
|
errorMessage_1_60: "Legal entity details couldn't be verified",
|
|
555
562
|
errorMessage_1_6000: "The legal name couldn't be verified.",
|
|
556
563
|
errorMessage_1_6001: "The legal name didn't match the registration number.",
|
|
@@ -678,6 +685,7 @@ const defaultLocaleTranslations = {
|
|
|
678
685
|
failedToGetPciTemplateInSelectedLanguageFallbackToEn: "Failed to get the PCI template in the selected language. Falling back to English.",
|
|
679
686
|
failedToGetServiceAgreementInSelectedLanguageFallbackToEn: "Failed to get the service agreement in the selected language. Falling back to English.",
|
|
680
687
|
failedToGetServiceAgreementStatus: "Failed to get the service agreement status",
|
|
688
|
+
failedToLoadBusinessLines: "Failed to oad business lines",
|
|
681
689
|
failedToRemoveDecisionMaker: "Failed to remove a decision maker",
|
|
682
690
|
failedToRemoveTrustMember: "Failed to remove trust member",
|
|
683
691
|
failedToUpdateDetails: "Failed to update details",
|
|
@@ -1312,9 +1320,9 @@ const defaultLocaleTranslations = {
|
|
|
1312
1320
|
taxInformationNumber__helperText__US: "Your EIN is provided on your Letter 147C or SS-4 Confirmation Letter received when registering your business.",
|
|
1313
1321
|
taxInformationNumber__placeHolder__US: "11-0000000",
|
|
1314
1322
|
taxReferenceNumber: "Tax reference number",
|
|
1315
|
-
taxRegistrationNumber: "Tax registration number",
|
|
1316
1323
|
taxationDocument: "Taxation document",
|
|
1317
1324
|
taxpayerReferenceNumber: "Taxpayer reference number",
|
|
1325
|
+
tellUsMoreAboutThisSource: "Tell us more about this source",
|
|
1318
1326
|
textToVerifyAccount: "For you to receive your payouts, we need a verified bank account.",
|
|
1319
1327
|
the7CharacterIdentifierAssignedToThis: "The 7-character identifier assigned to this company by the Sistema di Interscambio (SDI) for electronic invoicing in Italy. For example, %{example}",
|
|
1320
1328
|
theBankAccountHolderMustBeInYourName_: "The bank account holder must be in your name: <strong>%{name}</strong>",
|
|
@@ -1378,6 +1386,7 @@ const defaultLocaleTranslations = {
|
|
|
1378
1386
|
upToFiles: "Up to %{maxFiles} file(s).",
|
|
1379
1387
|
updateTheInformation: "Update the information",
|
|
1380
1388
|
uploadABankStatement: "Upload a bank statement",
|
|
1389
|
+
uploadADocument: "Upload a document",
|
|
1381
1390
|
uploadDocumentForNric: "Upload an ID document instead of NRIC",
|
|
1382
1391
|
uploadOneOfTheseDocuments: "Upload one of these documents:",
|
|
1383
1392
|
uploadTheFollowingDocuments: "Upload the following documents:",
|
|
@@ -2317,7 +2326,9 @@ const images = {
|
|
|
2317
2326
|
"document-front": lazy(
|
|
2318
2327
|
() => import("./document-front-9Glzn7ZR.js")
|
|
2319
2328
|
),
|
|
2320
|
-
"us-check": lazy(
|
|
2329
|
+
"us-check": lazy(
|
|
2330
|
+
() => import("./us-check-o5Ax_0LS.js")
|
|
2331
|
+
),
|
|
2321
2332
|
"us-check-routing-number": lazy(
|
|
2322
2333
|
() => import("./us-check-routing-number-BtVf7GH3.js")
|
|
2323
2334
|
),
|
|
@@ -2378,7 +2389,9 @@ const images = {
|
|
|
2378
2389
|
() => Promise.resolve().then(() => singpassLogo)
|
|
2379
2390
|
),
|
|
2380
2391
|
// payout verification
|
|
2381
|
-
"plaid-logo": lazy(
|
|
2392
|
+
"plaid-logo": lazy(
|
|
2393
|
+
() => import("./plaid-logo-4nYeR9iX.js")
|
|
2394
|
+
),
|
|
2382
2395
|
"trustly-logo": lazy(
|
|
2383
2396
|
() => import("./trustly-logo-YJslAOYF.js")
|
|
2384
2397
|
)
|
|
@@ -2951,6 +2964,7 @@ var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
|
|
|
2951
2964
|
ExperimentNames2["EnableAUIncorporatedPartnershipSkipRegistrationNumber"] = "EnableAUIncorporatedPartnershipSkipRegistrationNumber";
|
|
2952
2965
|
ExperimentNames2["EnableCompanyTrusteeSkipABN"] = "EnableCompanyTrusteeSkipABN";
|
|
2953
2966
|
ExperimentNames2["ShowCustomerSupportV4"] = "ShowCustomerSupportV4";
|
|
2967
|
+
ExperimentNames2["CredentialBankingWeightage_EmphasizeCredentialBankingFlow"] = "CredentialBankingWeightage_EmphasizeCredentialBankingFlow";
|
|
2954
2968
|
return ExperimentNames2;
|
|
2955
2969
|
})(ExperimentNames || {});
|
|
2956
2970
|
const debounce$1 = (func, delay) => {
|
|
@@ -4701,9 +4715,10 @@ const Select = ({
|
|
|
4701
4715
|
const [scrollParent, setScrollParent] = useState(null);
|
|
4702
4716
|
const debouncedOnSearch = useCallback(debounce(onSearch, 500), [onSearch]);
|
|
4703
4717
|
const closeList = useCallback(() => {
|
|
4718
|
+
if (!onSearchTextChange) setTextFilter("");
|
|
4704
4719
|
setIsShowList(false);
|
|
4705
4720
|
if (toggleButtonRef.current) toggleButtonRef.current.focus();
|
|
4706
|
-
}, []);
|
|
4721
|
+
}, [onSearchTextChange]);
|
|
4707
4722
|
const showList = () => {
|
|
4708
4723
|
let sp = scrollParent;
|
|
4709
4724
|
if (!sp) {
|
|
@@ -5929,7 +5944,7 @@ const businessRegistrationNumberMasks = {
|
|
|
5929
5944
|
transformOnType: uppercase
|
|
5930
5945
|
},
|
|
5931
5946
|
[StateCodesUS.Illinois]: {
|
|
5932
|
-
mask: makeMask(...numericInputs(
|
|
5947
|
+
mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Illinois)),
|
|
5933
5948
|
transformOnType: uppercase
|
|
5934
5949
|
},
|
|
5935
5950
|
[StateCodesUS.Indiana]: {
|
|
@@ -6256,8 +6271,8 @@ const stateFormatGuidanceText = {
|
|
|
6256
6271
|
[StateCodesUS.Illinois]: {
|
|
6257
6272
|
key: "enterNDigitsForExample",
|
|
6258
6273
|
values: {
|
|
6259
|
-
numDigits: "
|
|
6260
|
-
example: "
|
|
6274
|
+
numDigits: "8",
|
|
6275
|
+
example: "12345678 IL"
|
|
6261
6276
|
}
|
|
6262
6277
|
},
|
|
6263
6278
|
[StateCodesUS.Indiana]: {
|
|
@@ -7483,6 +7498,35 @@ const isValueObscured = (value) => {
|
|
|
7483
7498
|
var _a;
|
|
7484
7499
|
return typeof value === "string" && !!((_a = value.match(/[*]{1,}/)) == null ? void 0 : _a.length);
|
|
7485
7500
|
};
|
|
7501
|
+
const cachedAllowedPatterns = /* @__PURE__ */ new Map();
|
|
7502
|
+
const combineRegexArray = (regexArray) => {
|
|
7503
|
+
const combinedPattern = regexArray.map((pattern) => {
|
|
7504
|
+
const match = String(pattern).match(/\/?(.*)\//);
|
|
7505
|
+
return match ? match[1] : pattern;
|
|
7506
|
+
}).join("|");
|
|
7507
|
+
return new RegExp(`(?:${combinedPattern})`, "g");
|
|
7508
|
+
};
|
|
7509
|
+
const createAllowedPattern = (mask) => {
|
|
7510
|
+
const inputPatterns = mask.tokens.filter((token) => token.type === "input" && !!token.allow).map((token) => token.allow);
|
|
7511
|
+
const uniqueRegexSet = new Set(inputPatterns.map((r) => r.toString()));
|
|
7512
|
+
const uniqueRegexArray = [...uniqueRegexSet].map((str) => {
|
|
7513
|
+
const [_, pattern] = str.match(/\/(.*)\/([gimsuy]*)/) || [];
|
|
7514
|
+
return new RegExp(pattern);
|
|
7515
|
+
});
|
|
7516
|
+
const allowedRegex = combineRegexArray(uniqueRegexArray);
|
|
7517
|
+
cachedAllowedPatterns.set(mask, allowedRegex);
|
|
7518
|
+
return allowedRegex;
|
|
7519
|
+
};
|
|
7520
|
+
const replaceNonMatchingChars = (value, allowedInputPatterns) => {
|
|
7521
|
+
const matches = value.match(allowedInputPatterns);
|
|
7522
|
+
return matches ? matches.join("") : "";
|
|
7523
|
+
};
|
|
7524
|
+
const stripNonAllowedValues = (pureValue, mask) => {
|
|
7525
|
+
return replaceNonMatchingChars(
|
|
7526
|
+
pureValue,
|
|
7527
|
+
cachedAllowedPatterns.get(mask) ?? createAllowedPattern(mask)
|
|
7528
|
+
);
|
|
7529
|
+
};
|
|
7486
7530
|
const getAvailableInputTokens = (tokens) => {
|
|
7487
7531
|
const availableTokens = [];
|
|
7488
7532
|
for (const token of tokens) {
|
|
@@ -7513,7 +7557,7 @@ const getEagerSuffix = (tokens) => {
|
|
|
7513
7557
|
return suffix;
|
|
7514
7558
|
};
|
|
7515
7559
|
const getPotentialForMoreOptionalInput = (tokens) => tokens.some((token) => token.type === "input" && token.optional);
|
|
7516
|
-
const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false) => {
|
|
7560
|
+
const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false, stripNonAllowedInputs = false) => {
|
|
7517
7561
|
let tokensToProcess = [...mask.tokens];
|
|
7518
7562
|
let charsToProcess = pureValue;
|
|
7519
7563
|
let charIndex = 0;
|
|
@@ -7532,7 +7576,15 @@ const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false) => {
|
|
|
7532
7576
|
tokensToProcess = tokensToProcess.slice(increment);
|
|
7533
7577
|
};
|
|
7534
7578
|
const displayValue = () => matchedTokens.map((token) => token.char).join("");
|
|
7579
|
+
const getNonInputCharacters = () => matchedTokens.filter((token) => token.type === "nonInput" && token.includeInValue === false).map((token) => token.char).join("");
|
|
7535
7580
|
while (true) {
|
|
7581
|
+
let partialDisplayValue = displayValue();
|
|
7582
|
+
if (stripNonAllowedInputs) {
|
|
7583
|
+
partialDisplayValue = partialDisplayValue.replaceAll(getNonInputCharacters(), "");
|
|
7584
|
+
if (!partialDisplayValue.length) {
|
|
7585
|
+
partialDisplayValue = stripNonAllowedValues(charsToProcess, mask);
|
|
7586
|
+
}
|
|
7587
|
+
}
|
|
7536
7588
|
const char = charsToProcess[0];
|
|
7537
7589
|
const token = tokensToProcess[0];
|
|
7538
7590
|
if (!char && !tokensToProcess.some((t) => t.type === "input" && !t.optional))
|
|
@@ -7556,7 +7608,7 @@ const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false) => {
|
|
|
7556
7608
|
badChar: char,
|
|
7557
7609
|
mismatchAtChar: charIndex,
|
|
7558
7610
|
mismatchedToken: "inputTooLong",
|
|
7559
|
-
partialDisplayValue
|
|
7611
|
+
partialDisplayValue
|
|
7560
7612
|
};
|
|
7561
7613
|
if (token.type === "nonInput") {
|
|
7562
7614
|
if (token.includeInValue) {
|
|
@@ -7566,7 +7618,7 @@ const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false) => {
|
|
|
7566
7618
|
badChar: char,
|
|
7567
7619
|
mismatchAtChar: charIndex,
|
|
7568
7620
|
mismatchedToken: token,
|
|
7569
|
-
partialDisplayValue
|
|
7621
|
+
partialDisplayValue
|
|
7570
7622
|
};
|
|
7571
7623
|
shiftChars(1);
|
|
7572
7624
|
}
|
|
@@ -7582,7 +7634,7 @@ const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false) => {
|
|
|
7582
7634
|
badChar: char,
|
|
7583
7635
|
mismatchAtChar: charIndex,
|
|
7584
7636
|
mismatchedToken: token,
|
|
7585
|
-
partialDisplayValue
|
|
7637
|
+
partialDisplayValue
|
|
7586
7638
|
};
|
|
7587
7639
|
matchedTokens.push({ ...matchingToken, char });
|
|
7588
7640
|
shiftTokens(matchingToken.offset + 1);
|
|
@@ -7733,6 +7785,7 @@ const Inner = ({
|
|
|
7733
7785
|
ref: inputRef,
|
|
7734
7786
|
name,
|
|
7735
7787
|
isValid: !inputState.isError,
|
|
7788
|
+
isInvalid: inputState.isError,
|
|
7736
7789
|
required: !optional,
|
|
7737
7790
|
disabled,
|
|
7738
7791
|
readonly,
|
|
@@ -7759,6 +7812,7 @@ const Inner = ({
|
|
|
7759
7812
|
ref: inputRef,
|
|
7760
7813
|
name,
|
|
7761
7814
|
isValid: !inputState.isError,
|
|
7815
|
+
isInvalid: inputState.isError,
|
|
7762
7816
|
required: !optional,
|
|
7763
7817
|
disabled,
|
|
7764
7818
|
readonly,
|
|
@@ -7785,6 +7839,7 @@ const Inner = ({
|
|
|
7785
7839
|
ref: inputRef,
|
|
7786
7840
|
name,
|
|
7787
7841
|
isValid: !inputState.isError,
|
|
7842
|
+
isInvalid: inputState.isError,
|
|
7788
7843
|
required: !optional,
|
|
7789
7844
|
disabled,
|
|
7790
7845
|
readonly,
|
|
@@ -7826,7 +7881,8 @@ const MaskedInput = ({
|
|
|
7826
7881
|
acceptObscuredValue = false,
|
|
7827
7882
|
helper,
|
|
7828
7883
|
helperPosition = "below",
|
|
7829
|
-
useFieldComponent = true
|
|
7884
|
+
useFieldComponent = true,
|
|
7885
|
+
stripNonAllowedInputs = false
|
|
7830
7886
|
}) => {
|
|
7831
7887
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
7832
7888
|
const preserveMismatchingInitialValue = isExperimentEnabled("PreserveMismatchedInitialValues");
|
|
@@ -7838,18 +7894,27 @@ const MaskedInput = ({
|
|
|
7838
7894
|
const inputRef = useRef(null);
|
|
7839
7895
|
const [showingMismatch, setShowingMismatch] = useState(false);
|
|
7840
7896
|
const { i18n } = useI18nContext();
|
|
7897
|
+
const animationedEvent = (event) => {
|
|
7898
|
+
if (event.animationName !== MISMATCH_ANIMATION_NAME) return;
|
|
7899
|
+
setShowingMismatch(false);
|
|
7900
|
+
};
|
|
7841
7901
|
const onMismatch = useCallback(
|
|
7842
7902
|
(mismatch) => {
|
|
7843
7903
|
if (!inputRef.current) return;
|
|
7844
7904
|
setShowingMismatch(true);
|
|
7845
|
-
inputRef.current.addEventListener("animationend",
|
|
7846
|
-
if (event.animationName !== MISMATCH_ANIMATION_NAME) return;
|
|
7847
|
-
setShowingMismatch(false);
|
|
7848
|
-
});
|
|
7905
|
+
inputRef.current.addEventListener("animationend", animationedEvent);
|
|
7849
7906
|
onMismatchExternal == null ? void 0 : onMismatchExternal(mismatch);
|
|
7850
7907
|
},
|
|
7851
7908
|
[onMismatchExternal]
|
|
7852
7909
|
);
|
|
7910
|
+
useEffect(() => {
|
|
7911
|
+
const inputEl = inputRef.current;
|
|
7912
|
+
if (inputEl) {
|
|
7913
|
+
return () => {
|
|
7914
|
+
inputEl.removeEventListener("animationend", animationedEvent);
|
|
7915
|
+
};
|
|
7916
|
+
}
|
|
7917
|
+
}, []);
|
|
7853
7918
|
useEffect(() => {
|
|
7854
7919
|
if (!mask) {
|
|
7855
7920
|
logger$M.warn("`mask` is undefined. No masking of input will take place.");
|
|
@@ -7861,10 +7926,11 @@ const MaskedInput = ({
|
|
|
7861
7926
|
return matchAgainstMask(
|
|
7862
7927
|
transformOnType ? transformOnType(pureValue) : pureValue,
|
|
7863
7928
|
mask,
|
|
7864
|
-
acceptObscuredValue
|
|
7929
|
+
acceptObscuredValue,
|
|
7930
|
+
stripNonAllowedInputs
|
|
7865
7931
|
);
|
|
7866
7932
|
},
|
|
7867
|
-
[mask, transformOnType, acceptObscuredValue]
|
|
7933
|
+
[mask, transformOnType, acceptObscuredValue, stripNonAllowedInputs]
|
|
7868
7934
|
);
|
|
7869
7935
|
const displayValueToPure = useCallback(
|
|
7870
7936
|
(displayValue2) => {
|
|
@@ -7903,6 +7969,8 @@ const MaskedInput = ({
|
|
|
7903
7969
|
Preserving mismatched initial value until user input.`
|
|
7904
7970
|
);
|
|
7905
7971
|
setPreservingMismatchedValue(true);
|
|
7972
|
+
if (!stripNonAllowedInputs) return;
|
|
7973
|
+
onInput(maskResult.partialDisplayValue);
|
|
7906
7974
|
return;
|
|
7907
7975
|
}
|
|
7908
7976
|
const fallback = displayValueToPure(maskResult.partialDisplayValue);
|
|
@@ -7921,7 +7989,8 @@ Falling back to partially valid value "${fallback}"`
|
|
|
7921
7989
|
onInput,
|
|
7922
7990
|
displayValueToPure,
|
|
7923
7991
|
getMaskResult,
|
|
7924
|
-
preserveMismatchingInitialValue
|
|
7992
|
+
preserveMismatchingInitialValue,
|
|
7993
|
+
stripNonAllowedInputs
|
|
7925
7994
|
]);
|
|
7926
7995
|
useLayoutEffect(() => {
|
|
7927
7996
|
if (caretReturnPosition && inputRef.current && caretReturnPosition !== inputRef.current.selectionStart) {
|
|
@@ -7945,6 +8014,18 @@ Falling back to partially valid value "${fallback}"`
|
|
|
7945
8014
|
event.stopPropagation();
|
|
7946
8015
|
};
|
|
7947
8016
|
if (newMaskResult.outcome === "mismatch") {
|
|
8017
|
+
if (newMaskResult.partialDisplayValue) {
|
|
8018
|
+
if (newMaskResult.mismatchedToken === "inputTooLong" && displayValue) {
|
|
8019
|
+
cancelInput();
|
|
8020
|
+
onMismatch(newMaskResult);
|
|
8021
|
+
return;
|
|
8022
|
+
}
|
|
8023
|
+
cancelInput();
|
|
8024
|
+
onMismatch(newMaskResult);
|
|
8025
|
+
setPreservingMismatchedValue(false);
|
|
8026
|
+
onInput(newMaskResult.partialDisplayValue);
|
|
8027
|
+
return;
|
|
8028
|
+
}
|
|
7948
8029
|
cancelInput();
|
|
7949
8030
|
onMismatch(newMaskResult);
|
|
7950
8031
|
return;
|
|
@@ -8683,19 +8764,27 @@ function DateOfIncorporationField({
|
|
|
8683
8764
|
readonly,
|
|
8684
8765
|
onInput: handleChangeFor("dateOfIncorporation", "input"),
|
|
8685
8766
|
onBlur: handleChangeFor("dateOfIncorporation", "blur"),
|
|
8686
|
-
max: formatDateObj(/* @__PURE__ */ new Date())
|
|
8767
|
+
max: formatDateObj(/* @__PURE__ */ new Date()),
|
|
8768
|
+
min: formatDateObj(new Date(1900, 0, 1))
|
|
8687
8769
|
}
|
|
8688
8770
|
)
|
|
8689
8771
|
}
|
|
8690
8772
|
);
|
|
8691
8773
|
}
|
|
8774
|
+
const validateDateOfIncorporation = (dateOfIncorporation) => {
|
|
8775
|
+
if (!dateOfIncorporation) {
|
|
8776
|
+
return false;
|
|
8777
|
+
}
|
|
8778
|
+
const date = new Date(dateOfIncorporation);
|
|
8779
|
+
return date < /* @__PURE__ */ new Date() && date > new Date(1900, 0, 1);
|
|
8780
|
+
};
|
|
8692
8781
|
const dateOfIncorporationFieldMetadata = {
|
|
8693
8782
|
label: "dateOfIncorporation",
|
|
8694
8783
|
validators: [
|
|
8695
8784
|
validateNotEmptyOnBlur,
|
|
8696
8785
|
{
|
|
8697
8786
|
modes: ["blur"],
|
|
8698
|
-
validate:
|
|
8787
|
+
validate: validateDateOfIncorporation,
|
|
8699
8788
|
errorMessage: "invalidDateOfIncorporation"
|
|
8700
8789
|
}
|
|
8701
8790
|
]
|
|
@@ -8929,18 +9018,6 @@ const defaultFieldConfig$8 = {
|
|
|
8929
9018
|
}
|
|
8930
9019
|
}
|
|
8931
9020
|
},
|
|
8932
|
-
[CountryCodes.Malaysia]: {
|
|
8933
|
-
label: "SST",
|
|
8934
|
-
validators: validatePatternOnBlur(/^([A-Z]\d{2}[-]\d{4}[-]\d{8}|\d{12})$/),
|
|
8935
|
-
guidanceText: {
|
|
8936
|
-
key: "enterXOrYCharactersForExample",
|
|
8937
|
-
values: {
|
|
8938
|
-
xChars: "12",
|
|
8939
|
-
yChars: "14",
|
|
8940
|
-
example: "123456789012, D11-1808-20032117"
|
|
8941
|
-
}
|
|
8942
|
-
}
|
|
8943
|
-
},
|
|
8944
9021
|
[CountryCodes.NewZealand]: {
|
|
8945
9022
|
label: "irdNumber",
|
|
8946
9023
|
validators: validatePatternOnBlur(/^\d{8,9}$/),
|
|
@@ -8977,10 +9054,6 @@ const defaultFieldConfig$8 = {
|
|
|
8977
9054
|
}
|
|
8978
9055
|
}
|
|
8979
9056
|
},
|
|
8980
|
-
[CountryCodes.UnitedArabEmirates]: {
|
|
8981
|
-
label: "taxRegistrationNumber",
|
|
8982
|
-
validators: validateNotEmptyOnBlur
|
|
8983
|
-
},
|
|
8984
9057
|
[CountryCodes.UnitedStates]: ({ taxIdNumberType }) => {
|
|
8985
9058
|
switch (taxIdNumberType) {
|
|
8986
9059
|
case "SSN":
|
|
@@ -9577,6 +9650,18 @@ const defaultFieldConfig$7 = {
|
|
|
9577
9650
|
}
|
|
9578
9651
|
}
|
|
9579
9652
|
},
|
|
9653
|
+
[CountryCodes.Malaysia]: {
|
|
9654
|
+
label: "SST",
|
|
9655
|
+
validators: validatePatternOnBlur(/^([A-Z]\d{2}[-]\d{4}[-]\d{8}|\d{12})$/),
|
|
9656
|
+
guidanceText: {
|
|
9657
|
+
key: "enterXOrYCharactersForExample",
|
|
9658
|
+
values: {
|
|
9659
|
+
xChars: "12",
|
|
9660
|
+
yChars: "14",
|
|
9661
|
+
example: "123456789012, D11-1808-20032117"
|
|
9662
|
+
}
|
|
9663
|
+
}
|
|
9664
|
+
},
|
|
9580
9665
|
[CountryCodes.Malta]: {
|
|
9581
9666
|
label: "vatNumber",
|
|
9582
9667
|
validators: validatePatternOnBlur(/^MT\d{8}$/),
|
|
@@ -9783,6 +9868,10 @@ const defaultFieldConfig$7 = {
|
|
|
9783
9868
|
}
|
|
9784
9869
|
}
|
|
9785
9870
|
},
|
|
9871
|
+
[CountryCodes.UnitedArabEmirates]: {
|
|
9872
|
+
label: "vatRegistrationNumber",
|
|
9873
|
+
validators: validateNotEmptyOnBlur
|
|
9874
|
+
},
|
|
9786
9875
|
[CountryCodes.UnitedKingdom]: {
|
|
9787
9876
|
label: "vatRegistrationNumber",
|
|
9788
9877
|
validators: validatePatternOnBlur(/^GB\d{9,12}$/),
|
|
@@ -12545,6 +12634,7 @@ const ADDRESS_SCHEMAS = {
|
|
|
12545
12634
|
CITY,
|
|
12546
12635
|
STATE
|
|
12547
12636
|
],
|
|
12637
|
+
[CountryCodes.UnitedArabEmirates]: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, CITY],
|
|
12548
12638
|
default: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, POSTAL_CODE, CITY, STATE]
|
|
12549
12639
|
};
|
|
12550
12640
|
const CONDENSED_ADDRESS_FIELDS = {
|
|
@@ -14982,9 +15072,7 @@ const COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT = [
|
|
|
14982
15072
|
CountryCodes.Jersey,
|
|
14983
15073
|
CountryCodes.IsleOfMan,
|
|
14984
15074
|
CountryCodes.Mexico,
|
|
14985
|
-
CountryCodes.Brazil
|
|
14986
|
-
CountryCodes.Malaysia,
|
|
14987
|
-
CountryCodes.UnitedArabEmirates
|
|
15075
|
+
CountryCodes.Brazil
|
|
14988
15076
|
];
|
|
14989
15077
|
const COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [
|
|
14990
15078
|
CountryCodes.Singapore
|
|
@@ -15518,6 +15606,23 @@ const highExposureBaseMapping = {
|
|
|
15518
15606
|
legalName: "organization.legalName",
|
|
15519
15607
|
registrationAddress: "organization.registeredAddress"
|
|
15520
15608
|
};
|
|
15609
|
+
const sourceOfFundsBaseMapping = {
|
|
15610
|
+
"sourceOfFundsType.type": "sourceOfFunds.type",
|
|
15611
|
+
"tellUsMore.description": "sourceOfFunds.description",
|
|
15612
|
+
"tellUsMore.annualTurnover": "sourceOfFunds.annualTurnover",
|
|
15613
|
+
"tellUsMore.annualTurnoverCurrency": "sourceOfFunds.annualTurnoverCurrency",
|
|
15614
|
+
adyenProcessedFunds: "sourceOfFunds.adyenProcessedFunds",
|
|
15615
|
+
dateOfFundsReceived: "sourceOfFunds.dateOfFundsReceived",
|
|
15616
|
+
purpose: "sourceOfFunds.purpose",
|
|
15617
|
+
relationship: "sourceOfFunds.relationship",
|
|
15618
|
+
originatorSourceOfFundsType: "sourceOfFunds.originatorSourceOfFundsType",
|
|
15619
|
+
originatorLegalEntityId: "sourceOfFunds.originatorLegalEntityId",
|
|
15620
|
+
amount: "sourceOfFunds.amount",
|
|
15621
|
+
cryptocurrencyExchange: "sourceOfFunds.cryptocurrencyExchange",
|
|
15622
|
+
dateOfSourceEvent: "sourceOfFunds.dateOfSourceEvent",
|
|
15623
|
+
website: "sourceOfFunds.website",
|
|
15624
|
+
financiers: "sourceOfFunds.financiers"
|
|
15625
|
+
};
|
|
15521
15626
|
const businessDetailsComponentsKeyMapping = {
|
|
15522
15627
|
"additionalInformation.exemptedFromVat": "organization.vatAbsenceReason",
|
|
15523
15628
|
...businessDetailsBaseMapping
|
|
@@ -15607,6 +15712,12 @@ const legalEntityDocumentToFieldMapping = {
|
|
|
15607
15712
|
[DocumentType.CONSTITUTIONAL_DOCUMENT]: "trustConstitutionalDocument.constitutionalDocument"
|
|
15608
15713
|
}
|
|
15609
15714
|
};
|
|
15715
|
+
const sourceOfFundsComponentsKeyMapping = {
|
|
15716
|
+
...sourceOfFundsBaseMapping
|
|
15717
|
+
};
|
|
15718
|
+
({
|
|
15719
|
+
...reverseObject(sourceOfFundsBaseMapping)
|
|
15720
|
+
});
|
|
15610
15721
|
function getProp(object, path) {
|
|
15611
15722
|
const splitPath = path.split(".");
|
|
15612
15723
|
const reducer2 = (xs, x) => xs && xs[x] !== void 0 ? xs[x] : void 0;
|
|
@@ -16198,6 +16309,7 @@ const mapWith = (obj, mapping) => {
|
|
|
16198
16309
|
}
|
|
16199
16310
|
return formattedObj;
|
|
16200
16311
|
};
|
|
16312
|
+
const mapSourceOfFundToSourceOfFundsSchema = (businessLine) => formatObject(businessLine, sourceOfFundsComponentsKeyMapping);
|
|
16201
16313
|
const idDocumentUploadFields = [
|
|
16202
16314
|
"idDocumentType",
|
|
16203
16315
|
"idFrontPage",
|
|
@@ -17152,9 +17264,10 @@ function PhoneField({
|
|
|
17152
17264
|
optional,
|
|
17153
17265
|
placeholders,
|
|
17154
17266
|
shouldValidate,
|
|
17155
|
-
handleChangeFor
|
|
17267
|
+
handleChangeFor,
|
|
17268
|
+
triggerValidation
|
|
17156
17269
|
}) {
|
|
17157
|
-
var _a, _b;
|
|
17270
|
+
var _a, _b, _c;
|
|
17158
17271
|
const { i18n } = useI18nContext();
|
|
17159
17272
|
const { dataset: countries } = useDataset(datasetIdentifier.country);
|
|
17160
17273
|
const [isFocused, setIsFocused] = useState(false);
|
|
@@ -17176,44 +17289,59 @@ function PhoneField({
|
|
|
17176
17289
|
};
|
|
17177
17290
|
}).sort((a, b) => a.name.localeCompare(b.name));
|
|
17178
17291
|
}, [phonePrefixes, countries]);
|
|
17179
|
-
const handleSelectChange = (
|
|
17180
|
-
|
|
17181
|
-
|
|
17182
|
-
|
|
17183
|
-
|
|
17184
|
-
|
|
17185
|
-
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
|
|
17189
|
-
|
|
17190
|
-
|
|
17191
|
-
|
|
17192
|
-
|
|
17193
|
-
|
|
17194
|
-
|
|
17195
|
-
|
|
17196
|
-
|
|
17197
|
-
|
|
17198
|
-
|
|
17199
|
-
|
|
17200
|
-
number
|
|
17201
|
-
|
|
17202
|
-
|
|
17203
|
-
|
|
17204
|
-
|
|
17205
|
-
|
|
17206
|
-
|
|
17207
|
-
|
|
17208
|
-
|
|
17209
|
-
|
|
17210
|
-
|
|
17211
|
-
|
|
17212
|
-
|
|
17213
|
-
|
|
17214
|
-
|
|
17215
|
-
|
|
17216
|
-
|
|
17292
|
+
const handleSelectChange = useCallback(
|
|
17293
|
+
(event) => {
|
|
17294
|
+
var _a2, _b2, _c2, _d, _e, _f;
|
|
17295
|
+
const newCC = phonePrefixes == null ? void 0 : phonePrefixes[event.target.value];
|
|
17296
|
+
const withoutCC = currentPrefix && ((_b2 = (_a2 = data.phone) == null ? void 0 : _a2.number) == null ? void 0 : _b2.startsWith(currentPrefix)) ? (_d = (_c2 = data.phone) == null ? void 0 : _c2.number) == null ? void 0 : _d.slice(currentPrefix.length) : (_f = (_e = data.phone) == null ? void 0 : _e.number) == null ? void 0 : _f.replace(/\D+/g, "");
|
|
17297
|
+
handleChangeFor(
|
|
17298
|
+
"phone",
|
|
17299
|
+
"input"
|
|
17300
|
+
)({
|
|
17301
|
+
phoneCountryCode: event.target.value,
|
|
17302
|
+
number: withoutCC ? newCC + withoutCC : newCC,
|
|
17303
|
+
type: "mobile"
|
|
17304
|
+
});
|
|
17305
|
+
triggerValidation(["phone"]);
|
|
17306
|
+
},
|
|
17307
|
+
[currentPrefix, (_c = data.phone) == null ? void 0 : _c.number, handleChangeFor, phonePrefixes, triggerValidation]
|
|
17308
|
+
);
|
|
17309
|
+
const handleOnInput = useCallback(
|
|
17310
|
+
(event) => {
|
|
17311
|
+
const strippedOfCountryCode = currentPrefix ? event.replace(currentPrefix, "") : event;
|
|
17312
|
+
const onlyDigits = strippedOfCountryCode.replace(/\D+/g, "");
|
|
17313
|
+
const number = currentPrefix ? `${currentPrefix}${onlyDigits}` : onlyDigits;
|
|
17314
|
+
handleChangeFor(
|
|
17315
|
+
"phone",
|
|
17316
|
+
"input"
|
|
17317
|
+
)({
|
|
17318
|
+
...data.phone,
|
|
17319
|
+
number,
|
|
17320
|
+
type: "mobile"
|
|
17321
|
+
});
|
|
17322
|
+
},
|
|
17323
|
+
[currentPrefix, data.phone, handleChangeFor]
|
|
17324
|
+
);
|
|
17325
|
+
const handleOnBlur = useCallback(
|
|
17326
|
+
(event) => {
|
|
17327
|
+
const onlyDigits = event.target.value.replace(/\D+/g, "");
|
|
17328
|
+
const number = currentPrefix ? `${currentPrefix}${onlyDigits}` : onlyDigits;
|
|
17329
|
+
setIsFocused(false);
|
|
17330
|
+
handleChangeFor(
|
|
17331
|
+
"phone",
|
|
17332
|
+
"blur"
|
|
17333
|
+
)({
|
|
17334
|
+
...data.phone,
|
|
17335
|
+
number,
|
|
17336
|
+
type: "mobile"
|
|
17337
|
+
});
|
|
17338
|
+
},
|
|
17339
|
+
[currentPrefix, data.phone, handleChangeFor]
|
|
17340
|
+
);
|
|
17341
|
+
const transformOnType = useCallback(
|
|
17342
|
+
(value) => currentPrefix ? value.startsWith(currentPrefix) ? value.slice(currentPrefix.length) : value : value,
|
|
17343
|
+
[currentPrefix]
|
|
17344
|
+
);
|
|
17217
17345
|
useEffect(() => {
|
|
17218
17346
|
var _a2;
|
|
17219
17347
|
if (!((_a2 = data.phone) == null ? void 0 : _a2.phoneCountryCode) && country) {
|
|
@@ -17273,7 +17401,9 @@ function PhoneField({
|
|
|
17273
17401
|
errorMessage: errors.phone,
|
|
17274
17402
|
readonly,
|
|
17275
17403
|
disabled: readonly,
|
|
17404
|
+
transformOnType,
|
|
17276
17405
|
...mask,
|
|
17406
|
+
stripNonAllowedInputs: true,
|
|
17277
17407
|
onInput: handleOnInput,
|
|
17278
17408
|
onBlur: handleOnBlur,
|
|
17279
17409
|
onFocus: () => setIsFocused(true)
|
|
@@ -17392,7 +17522,7 @@ function ContactDetails(props) {
|
|
|
17392
17522
|
mergedProps
|
|
17393
17523
|
);
|
|
17394
17524
|
const schema = mergedProps.requiredFields || contactDetailFields;
|
|
17395
|
-
const {
|
|
17525
|
+
const { data, valid, errors, isValid, fieldProblems, handleChangeFor, triggerValidation } = useForm({
|
|
17396
17526
|
...mergedProps,
|
|
17397
17527
|
schema,
|
|
17398
17528
|
defaultData: mergedProps.data,
|
|
@@ -17466,7 +17596,7 @@ function ContactDetails(props) {
|
|
|
17466
17596
|
readonly: formUtils.isReadOnly("phone"),
|
|
17467
17597
|
mask: formUtils.getMask("phone"),
|
|
17468
17598
|
handleChangeFor,
|
|
17469
|
-
|
|
17599
|
+
triggerValidation
|
|
17470
17600
|
}
|
|
17471
17601
|
}
|
|
17472
17602
|
)
|
|
@@ -23228,8 +23358,8 @@ function PayoutVerificationMethod(props) {
|
|
|
23228
23358
|
const { isSettingEnabled } = useSettingsContext();
|
|
23229
23359
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
23230
23360
|
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
23231
|
-
const
|
|
23232
|
-
ExperimentNames.
|
|
23361
|
+
const enableEmphasizedCredentialBankingFlow = isExperimentEnabled(
|
|
23362
|
+
ExperimentNames.CredentialBankingWeightage_EmphasizeCredentialBankingFlow
|
|
23233
23363
|
);
|
|
23234
23364
|
const intraRegionCrossBorderPayoutsAllowed = isSettingEnabled(
|
|
23235
23365
|
SettingNames.AllowIntraRegionCrossBorderPayout
|
|
@@ -23255,16 +23385,16 @@ function PayoutVerificationMethod(props) {
|
|
|
23255
23385
|
[data, errors, fieldProblems, valid]
|
|
23256
23386
|
);
|
|
23257
23387
|
useEffect(() => {
|
|
23258
|
-
if (!
|
|
23388
|
+
if (!enableEmphasizedCredentialBankingFlow) return;
|
|
23259
23389
|
setHideFooter == null ? void 0 : setHideFooter(isActiveForm && !bankInfoValidated);
|
|
23260
|
-
}, [
|
|
23390
|
+
}, [enableEmphasizedCredentialBankingFlow, isActiveForm, bankInfoValidated, setHideFooter]);
|
|
23261
23391
|
const methodsMetadata = makePayoutVerificationMethodsMetadata(provider == null ? void 0 : provider.name);
|
|
23262
23392
|
const selectVerificationMethod = (method) => {
|
|
23263
23393
|
setHasSelectedMethod(true);
|
|
23264
23394
|
handleChangeFor("payoutVerificationMethod")(method);
|
|
23265
23395
|
};
|
|
23266
23396
|
useEffect(() => {
|
|
23267
|
-
if (
|
|
23397
|
+
if (enableEmphasizedCredentialBankingFlow || bankInfoValidated) return;
|
|
23268
23398
|
if (!hasSelectedMethod && instantVerificationAvailable && data.payoutVerificationMethod !== "instantVerification") {
|
|
23269
23399
|
handleChangeFor("payoutVerificationMethod")("instantVerification");
|
|
23270
23400
|
}
|
|
@@ -23276,11 +23406,11 @@ function PayoutVerificationMethod(props) {
|
|
|
23276
23406
|
handleChangeFor,
|
|
23277
23407
|
instantVerificationAvailable,
|
|
23278
23408
|
hasSelectedMethod,
|
|
23279
|
-
|
|
23409
|
+
enableEmphasizedCredentialBankingFlow,
|
|
23280
23410
|
bankInfoValidated
|
|
23281
23411
|
]);
|
|
23282
23412
|
useEffect(() => {
|
|
23283
|
-
if (!
|
|
23413
|
+
if (!enableEmphasizedCredentialBankingFlow || !isActiveForm) return;
|
|
23284
23414
|
if (hasSelectedMethod && (forms == null ? void 0 : forms.find(
|
|
23285
23415
|
(val) => val.formId === (data.payoutVerificationMethod === "instantVerification" ? "payoutAccountVerification" : "payoutAccountDetails")
|
|
23286
23416
|
))) {
|
|
@@ -23293,15 +23423,14 @@ function PayoutVerificationMethod(props) {
|
|
|
23293
23423
|
data.payoutVerificationMethod,
|
|
23294
23424
|
handleNextClick,
|
|
23295
23425
|
isActiveForm,
|
|
23296
|
-
|
|
23426
|
+
enableEmphasizedCredentialBankingFlow
|
|
23297
23427
|
]);
|
|
23298
23428
|
useEffect(() => {
|
|
23299
|
-
if (!
|
|
23300
|
-
return;
|
|
23429
|
+
if (!enableEmphasizedCredentialBankingFlow || bankVendorsLoadingStatus === "loading") return;
|
|
23301
23430
|
if (!(provider == null ? void 0 : provider.redirectUrl)) {
|
|
23302
23431
|
selectVerificationMethod("manualVerification");
|
|
23303
23432
|
}
|
|
23304
|
-
}, [provider, bankVendorsLoadingStatus,
|
|
23433
|
+
}, [provider, bankVendorsLoadingStatus, enableEmphasizedCredentialBankingFlow]);
|
|
23305
23434
|
const { dataset: countries } = useDataset(datasetIdentifier.country);
|
|
23306
23435
|
const bankCountryName = ((_b = countries.find((country2) => country2.id === data.bankCountry)) == null ? void 0 : _b.name) ?? data.bankCountry;
|
|
23307
23436
|
const allowedBankCountries = getAllowedBankCountries(country);
|
|
@@ -23336,7 +23465,7 @@ function PayoutVerificationMethod(props) {
|
|
|
23336
23465
|
)
|
|
23337
23466
|
] }) });
|
|
23338
23467
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-payout-verification-method", children: [
|
|
23339
|
-
!
|
|
23468
|
+
!enableEmphasizedCredentialBankingFlow ? /* @__PURE__ */ jsx(FormHeader, { heading, descriptionComponent: description }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-payout-verification-method__header", children: [
|
|
23340
23469
|
/* @__PURE__ */ jsx(
|
|
23341
23470
|
Svg,
|
|
23342
23471
|
{
|
|
@@ -23361,8 +23490,8 @@ function PayoutVerificationMethod(props) {
|
|
|
23361
23490
|
children: instantVerificationError.content && /* @__PURE__ */ jsx("p", { className: "adyen-kyc-u-margin-0", children: instantVerificationError.content })
|
|
23362
23491
|
}
|
|
23363
23492
|
),
|
|
23364
|
-
!
|
|
23365
|
-
|
|
23493
|
+
!enableEmphasizedCredentialBankingFlow || intraRegionCrossBorderPayoutsAllowed && allowedBankCountries.length > 1 ? countryField : void 0,
|
|
23494
|
+
enableEmphasizedCredentialBankingFlow ? /* @__PURE__ */ jsx(
|
|
23366
23495
|
PreferInstantVerificationMethod,
|
|
23367
23496
|
{
|
|
23368
23497
|
loadingStatus: bankVendorsLoadingStatus,
|
|
@@ -23439,7 +23568,7 @@ function PayoutVerificationMethod(props) {
|
|
|
23439
23568
|
id: "ariaErrorField"
|
|
23440
23569
|
}
|
|
23441
23570
|
),
|
|
23442
|
-
!
|
|
23571
|
+
!enableEmphasizedCredentialBankingFlow && providerName && bankVendorsLoadingStatus === "success" ? /* @__PURE__ */ jsx(
|
|
23443
23572
|
ContextGuidance,
|
|
23444
23573
|
{
|
|
23445
23574
|
page: "Instant verification with partner",
|
|
@@ -23502,6 +23631,7 @@ function PayoutDetails(props) {
|
|
|
23502
23631
|
bankVendorsLoadingStatus,
|
|
23503
23632
|
instantVerificationAvailable,
|
|
23504
23633
|
setHideSidebar,
|
|
23634
|
+
setHideFooter,
|
|
23505
23635
|
setSkipSubmit,
|
|
23506
23636
|
createTrustedTransferInstrument: createTrustedTransferInstrument2,
|
|
23507
23637
|
handleBankVerificationError: handleBankVerificationError2,
|
|
@@ -23567,6 +23697,13 @@ function PayoutDetails(props) {
|
|
|
23567
23697
|
resetInvalidFieldState();
|
|
23568
23698
|
}
|
|
23569
23699
|
}, [i18n, validateAccountDetails]);
|
|
23700
|
+
const shouldHideFooter = useMemo(
|
|
23701
|
+
() => (activeForm == null ? void 0 : activeForm.formId) === "payoutVerificationMethod" && isExperimentEnabled("EnablePreferInstantVerificationFlow"),
|
|
23702
|
+
[activeForm == null ? void 0 : activeForm.formId, isExperimentEnabled]
|
|
23703
|
+
);
|
|
23704
|
+
useEffect(() => {
|
|
23705
|
+
setHideFooter == null ? void 0 : setHideFooter(shouldHideFooter);
|
|
23706
|
+
}, [shouldHideFooter]);
|
|
23570
23707
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-payout", children: [
|
|
23571
23708
|
/* @__PURE__ */ jsx(
|
|
23572
23709
|
"div",
|
|
@@ -24017,6 +24154,14 @@ const DEFAULT_DECISION_MAKER_REQUIREMENTS = [
|
|
|
24017
24154
|
}
|
|
24018
24155
|
];
|
|
24019
24156
|
const PER_COUNTRY_DECISION_MAKER_REQUIREMENTS_OVERRIDES = {
|
|
24157
|
+
AE: [
|
|
24158
|
+
...DEFAULT_DECISION_MAKER_REQUIREMENTS,
|
|
24159
|
+
{
|
|
24160
|
+
roleTypes: [DecisionMakerType.DIRECTOR],
|
|
24161
|
+
min: 3,
|
|
24162
|
+
max: Infinity
|
|
24163
|
+
}
|
|
24164
|
+
],
|
|
24020
24165
|
US: [
|
|
24021
24166
|
{
|
|
24022
24167
|
roleTypes: [DecisionMakerType.CONTROLLING_PERSON],
|
|
@@ -25700,7 +25845,7 @@ function Summary({
|
|
|
25700
25845
|
}
|
|
25701
25846
|
),
|
|
25702
25847
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-summary__content", children: renderSummaryContent(data) }),
|
|
25703
|
-
showLegalCaption && /* @__PURE__ */ jsx("
|
|
25848
|
+
showLegalCaption && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-summary__legal-caption", children: /* @__PURE__ */ jsx("span", { children: i18n.get("summaryLegalCaption") }) }),
|
|
25704
25849
|
showTaxExemptedLegalCaption && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-summary__legal-caption", children: [
|
|
25705
25850
|
/* @__PURE__ */ jsx("p", { children: i18n.get("summaryTaxExemptionLegalCaptionTitle") }),
|
|
25706
25851
|
/* @__PURE__ */ jsxs("ul", { children: [
|
|
@@ -26546,13 +26691,16 @@ const setRemovedFieldsOnSchemaToDeletedValue = (newData, existingData) => {
|
|
|
26546
26691
|
return { ...adjusted, [formId]: adjustFormData(oldFormData, newFormData) };
|
|
26547
26692
|
}, {});
|
|
26548
26693
|
};
|
|
26549
|
-
const getRequiredForms = (forms, requiredFields, optionalFields) => {
|
|
26694
|
+
const getRequiredForms = (forms, requiredFields, optionalFields, skipSummary) => {
|
|
26550
26695
|
const requiredForms = Object.values(forms).filter(({ formId }) => {
|
|
26551
26696
|
if (requiredFields || optionalFields) {
|
|
26552
26697
|
return Boolean(requiredFields == null ? void 0 : requiredFields[formId]) || Boolean(optionalFields == null ? void 0 : optionalFields[formId]);
|
|
26553
26698
|
}
|
|
26554
26699
|
return true;
|
|
26555
26700
|
});
|
|
26701
|
+
if (skipSummary) {
|
|
26702
|
+
return requiredForms;
|
|
26703
|
+
}
|
|
26556
26704
|
return [...requiredForms, summaryStep];
|
|
26557
26705
|
};
|
|
26558
26706
|
const addValidityToForms = (forms, formValidity, problems) => forms.map(({ formId, formName, formHeading, formDescription, fields }) => {
|
|
@@ -26842,7 +26990,7 @@ function AdditionalInformation({
|
|
|
26842
26990
|
if (currentData.exemptedFromVat) {
|
|
26843
26991
|
fieldsToRemove.push("vatNumber");
|
|
26844
26992
|
} else {
|
|
26845
|
-
fieldsToRemove.push("
|
|
26993
|
+
fieldsToRemove.push("vatAbsenceReason");
|
|
26846
26994
|
}
|
|
26847
26995
|
if (currentData.exemptedFromTax) {
|
|
26848
26996
|
fieldsToRemove.push("taxInformation");
|
|
@@ -29270,7 +29418,7 @@ function FormRouterContextProvider({
|
|
|
29270
29418
|
return /* @__PURE__ */ jsx(FormRouterContext.Provider, { value: contextValue, children });
|
|
29271
29419
|
}
|
|
29272
29420
|
const MaybeModal = ({ children, inline = false, onClose, onBack }) => {
|
|
29273
|
-
return inline ? /* @__PURE__ */ jsx(
|
|
29421
|
+
return inline ? /* @__PURE__ */ jsx(Fragment, { children }) : /* @__PURE__ */ jsx(Modal, { onClose, onBack, children });
|
|
29274
29422
|
};
|
|
29275
29423
|
const range = (stop, start = 0, step = 1) => Array.from({ length: (stop - start) / step + 1 }, (_, i) => start + i * step);
|
|
29276
29424
|
const shouldHighlight = (active, current, fillBefore) => !fillBefore ? active === current : active >= current;
|
|
@@ -29430,7 +29578,7 @@ const FormWrapper = ({
|
|
|
29430
29578
|
const showExtraTaxExemptionReasons = isExperimentEnabled(
|
|
29431
29579
|
ExperimentNames.ShowExtraTaxExemptionReasons
|
|
29432
29580
|
);
|
|
29433
|
-
const showTaxExemptedLegalCaption = showExtraTaxExemptionReasons && ((_a = summaryData.companyRegistrationDetails) == null ? void 0 : _a.vatAbsenceReason) && ["companyDetails", "businessDetails"].includes(taskName2);
|
|
29581
|
+
const showTaxExemptedLegalCaption = showExtraTaxExemptionReasons && ((_a = summaryData == null ? void 0 : summaryData.companyRegistrationDetails) == null ? void 0 : _a.vatAbsenceReason) && ["companyDetails", "businessDetails"].includes(taskName2);
|
|
29434
29582
|
const summaryContent = /* @__PURE__ */ jsx("div", { className: "adyen-kyc-form-wrapper", children: /* @__PURE__ */ jsx(
|
|
29435
29583
|
Summary,
|
|
29436
29584
|
{
|
|
@@ -29484,7 +29632,7 @@ const FormWrapper = ({
|
|
|
29484
29632
|
handleGetIdVerificationToken,
|
|
29485
29633
|
children: [
|
|
29486
29634
|
children,
|
|
29487
|
-
activeForm.formId === summaryStep.formId && summaryContent
|
|
29635
|
+
activeForm.formId === summaryStep.formId && summary2 && summaryContent
|
|
29488
29636
|
]
|
|
29489
29637
|
}
|
|
29490
29638
|
)
|
|
@@ -29492,7 +29640,7 @@ const FormWrapper = ({
|
|
|
29492
29640
|
] })
|
|
29493
29641
|
] }),
|
|
29494
29642
|
!hideFooter && /* @__PURE__ */ jsxs(ModalFooter, { children: [
|
|
29495
|
-
/* @__PURE__ */ jsx("div", { style: { width: "30%" }, children: /* @__PURE__ */ jsx(
|
|
29643
|
+
/* @__PURE__ */ jsx("div", { style: { width: "30%", display: asModal ? "unset" : "none" }, children: /* @__PURE__ */ jsx(
|
|
29496
29644
|
StepProgressIndicator,
|
|
29497
29645
|
{
|
|
29498
29646
|
activeStepIndex: steps.current ?? 0,
|
|
@@ -35555,6 +35703,7 @@ function PayoutDetailsDropin({
|
|
|
35555
35703
|
const formValidity = currentState.validityByForm;
|
|
35556
35704
|
const bankAccountCountry = ((_c = (_b = currentState == null ? void 0 : currentState.data) == null ? void 0 : _b.payoutVerificationMethod) == null ? void 0 : _c.bankCountry) ?? defaultPayoutCountry;
|
|
35557
35705
|
const [hideFooterAndSidebar, setHideFooterAndSidebar] = useState(false);
|
|
35706
|
+
const [hideFooter, setHideFooter] = useState(false);
|
|
35558
35707
|
const [skipSubmit, setSkipSubmit] = useState(false);
|
|
35559
35708
|
const [loadingStatus, setLoadingStatus] = useState("loading");
|
|
35560
35709
|
const [bankVendorsLoadingStatus, setBankVendorsLoadingStatus] = useState("loading");
|
|
@@ -35876,7 +36025,7 @@ function PayoutDetailsDropin({
|
|
|
35876
36025
|
handleHomeClick,
|
|
35877
36026
|
handleCloseClick,
|
|
35878
36027
|
hideSidebar: hideSidebar || hideFooterAndSidebar,
|
|
35879
|
-
hideFooter: hideFooterAndSidebar,
|
|
36028
|
+
hideFooter: hideFooter || hideFooterAndSidebar,
|
|
35880
36029
|
loadingStatus,
|
|
35881
36030
|
asModal,
|
|
35882
36031
|
forms,
|
|
@@ -35900,7 +36049,7 @@ function PayoutDetailsDropin({
|
|
|
35900
36049
|
onBack: handleBackClick,
|
|
35901
36050
|
accountHolder: accountHolder ?? getLegalEntityNameBasedOnType(legalEntityResponse),
|
|
35902
36051
|
setHideSidebar: setHideFooterAndSidebar,
|
|
35903
|
-
setHideFooter
|
|
36052
|
+
setHideFooter,
|
|
35904
36053
|
setSkipSubmit,
|
|
35905
36054
|
onChange,
|
|
35906
36055
|
legalEntityResponse,
|
|
@@ -38196,13 +38345,416 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
38196
38345
|
const hasOrganizationType = (_b = legalEntity.organization) == null ? void 0 : _b.type;
|
|
38197
38346
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
38198
38347
|
};
|
|
38348
|
+
const sourceOfFundsTypeValidations = {
|
|
38349
|
+
type: {
|
|
38350
|
+
modes: ["blur"],
|
|
38351
|
+
validate: (type) => !isEmpty$1(type),
|
|
38352
|
+
errorMessage: "fieldIsRequired"
|
|
38353
|
+
}
|
|
38354
|
+
};
|
|
38355
|
+
const sourceOfFundsTellUsMoreValidations = {
|
|
38356
|
+
annualTurnover: [
|
|
38357
|
+
{
|
|
38358
|
+
modes: ["blur"],
|
|
38359
|
+
validate: (annualTurnover) => !isEmpty$1(annualTurnover),
|
|
38360
|
+
errorMessage: "fieldIsRequired"
|
|
38361
|
+
},
|
|
38362
|
+
{
|
|
38363
|
+
modes: ["blur"],
|
|
38364
|
+
validate: (annualTurnover) => !Number.isNaN(Number(annualTurnover)),
|
|
38365
|
+
errorMessage: "pleaseEnterAValidNumber"
|
|
38366
|
+
}
|
|
38367
|
+
],
|
|
38368
|
+
description: {
|
|
38369
|
+
modes: ["blur"],
|
|
38370
|
+
validate: (description) => !isEmpty$1(description),
|
|
38371
|
+
errorMessage: "fieldIsRequired"
|
|
38372
|
+
}
|
|
38373
|
+
};
|
|
38374
|
+
const sourceOfFundsTypeFields = ["type"];
|
|
38375
|
+
function SourceOfFundsType(props) {
|
|
38376
|
+
const { i18n } = useI18nContext();
|
|
38377
|
+
const {
|
|
38378
|
+
data: sourceOfFundsTypeDefaultData,
|
|
38379
|
+
validators: validators2,
|
|
38380
|
+
formVerificationErrors,
|
|
38381
|
+
fieldValidationErrors,
|
|
38382
|
+
shouldValidate
|
|
38383
|
+
} = props;
|
|
38384
|
+
const {
|
|
38385
|
+
handleChangeFor,
|
|
38386
|
+
data: formData,
|
|
38387
|
+
schema: formSchema,
|
|
38388
|
+
valid: formValid,
|
|
38389
|
+
errors: formErrors,
|
|
38390
|
+
fieldProblems: formFieldProblems
|
|
38391
|
+
} = useForm({
|
|
38392
|
+
...props,
|
|
38393
|
+
schema: sourceOfFundsTypeFields,
|
|
38394
|
+
defaultData: sourceOfFundsTypeDefaultData,
|
|
38395
|
+
rules: validators2 || sourceOfFundsTypeValidations,
|
|
38396
|
+
fieldProblems: fieldValidationErrors,
|
|
38397
|
+
shouldValidate
|
|
38398
|
+
});
|
|
38399
|
+
const formUtils = createFormUtils(props, i18n);
|
|
38400
|
+
const { updateStateSlice } = useGlobalDataSlice("sourceOfFundsType");
|
|
38401
|
+
useEffect(() => {
|
|
38402
|
+
updateStateSlice({
|
|
38403
|
+
data: formData,
|
|
38404
|
+
valid: formValid,
|
|
38405
|
+
errors: formErrors,
|
|
38406
|
+
fieldProblems: formFieldProblems,
|
|
38407
|
+
schema: formSchema
|
|
38408
|
+
});
|
|
38409
|
+
}, [formData, formValid, formErrors, formSchema, formFieldProblems]);
|
|
38410
|
+
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
|
|
38411
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("chooseAFundingCategory") }),
|
|
38412
|
+
/* @__PURE__ */ jsx(
|
|
38413
|
+
ErrorPanel,
|
|
38414
|
+
{
|
|
38415
|
+
verificationErrors: formVerificationErrors,
|
|
38416
|
+
validationErrors: props == null ? void 0 : props.fieldValidationErrors,
|
|
38417
|
+
formUtils,
|
|
38418
|
+
id: "ariaErrorField"
|
|
38419
|
+
}
|
|
38420
|
+
),
|
|
38421
|
+
/* @__PURE__ */ jsx(
|
|
38422
|
+
Field,
|
|
38423
|
+
{
|
|
38424
|
+
name: "legalEntityIdentifier",
|
|
38425
|
+
label: formUtils.getLabel("type", "sourceOfFunds"),
|
|
38426
|
+
errorMessage: formUtils.getErrorMessage("type", formErrors, formFieldProblems),
|
|
38427
|
+
isValid: formValid.type,
|
|
38428
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
38429
|
+
InputText,
|
|
38430
|
+
{
|
|
38431
|
+
...childProps,
|
|
38432
|
+
name: "type",
|
|
38433
|
+
value: formData.type,
|
|
38434
|
+
readonly: false,
|
|
38435
|
+
onInput: handleChangeFor("type", "input"),
|
|
38436
|
+
onBlur: handleChangeFor("type", "blur"),
|
|
38437
|
+
"aria-required": true,
|
|
38438
|
+
"aria-label": formUtils.getLabel("type"),
|
|
38439
|
+
"aria-invalid": !formValid.type,
|
|
38440
|
+
isValid: formValid.type
|
|
38441
|
+
}
|
|
38442
|
+
)
|
|
38443
|
+
}
|
|
38444
|
+
)
|
|
38445
|
+
] });
|
|
38446
|
+
}
|
|
38447
|
+
const sourceOfFundsTellUsMoreFields = [
|
|
38448
|
+
"annualTurnover",
|
|
38449
|
+
"description",
|
|
38450
|
+
"annualTurnoverCurrency"
|
|
38451
|
+
];
|
|
38452
|
+
const allowedCurrencies = [
|
|
38453
|
+
{
|
|
38454
|
+
name: "EUR",
|
|
38455
|
+
id: "EUR"
|
|
38456
|
+
},
|
|
38457
|
+
{
|
|
38458
|
+
name: "USD",
|
|
38459
|
+
id: "USD"
|
|
38460
|
+
},
|
|
38461
|
+
{
|
|
38462
|
+
name: "GBP",
|
|
38463
|
+
id: "GBP"
|
|
38464
|
+
}
|
|
38465
|
+
];
|
|
38466
|
+
function SourceOfFundsTellUsMore(props) {
|
|
38467
|
+
const { i18n } = useI18nContext();
|
|
38468
|
+
const {
|
|
38469
|
+
data: defaultData,
|
|
38470
|
+
validators: validators2,
|
|
38471
|
+
formVerificationErrors,
|
|
38472
|
+
fieldValidationErrors,
|
|
38473
|
+
shouldValidate
|
|
38474
|
+
} = props;
|
|
38475
|
+
const {
|
|
38476
|
+
handleChangeFor,
|
|
38477
|
+
data: formData,
|
|
38478
|
+
schema: formSchema,
|
|
38479
|
+
valid: formValid,
|
|
38480
|
+
errors: formErrors,
|
|
38481
|
+
fieldProblems: formFieldProblems
|
|
38482
|
+
} = useForm({
|
|
38483
|
+
...props,
|
|
38484
|
+
schema: sourceOfFundsTellUsMoreFields,
|
|
38485
|
+
defaultData,
|
|
38486
|
+
rules: validators2 || sourceOfFundsTellUsMoreValidations,
|
|
38487
|
+
fieldProblems: fieldValidationErrors,
|
|
38488
|
+
shouldValidate
|
|
38489
|
+
});
|
|
38490
|
+
const formUtils = createFormUtils(props, i18n);
|
|
38491
|
+
const { updateStateSlice } = useGlobalDataSlice("tellUsMore");
|
|
38492
|
+
useEffect(() => {
|
|
38493
|
+
updateStateSlice({
|
|
38494
|
+
data: formData,
|
|
38495
|
+
valid: formValid,
|
|
38496
|
+
errors: formErrors,
|
|
38497
|
+
fieldProblems: formFieldProblems,
|
|
38498
|
+
schema: formSchema
|
|
38499
|
+
});
|
|
38500
|
+
}, [formData, formValid, formErrors, formSchema, formFieldProblems]);
|
|
38501
|
+
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
|
|
38502
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("tellUsMoreAboutThisSource") }),
|
|
38503
|
+
/* @__PURE__ */ jsx(
|
|
38504
|
+
ErrorPanel,
|
|
38505
|
+
{
|
|
38506
|
+
verificationErrors: formVerificationErrors,
|
|
38507
|
+
validationErrors: props == null ? void 0 : props.fieldValidationErrors,
|
|
38508
|
+
formUtils,
|
|
38509
|
+
id: "ariaErrorField"
|
|
38510
|
+
}
|
|
38511
|
+
),
|
|
38512
|
+
/* @__PURE__ */ jsx(
|
|
38513
|
+
Field,
|
|
38514
|
+
{
|
|
38515
|
+
name: "annualTurnover",
|
|
38516
|
+
label: formUtils.getLabel("annualTurnover", "annualTurnover"),
|
|
38517
|
+
errorMessage: formUtils.getErrorMessage("annualTurnover", formErrors, formFieldProblems),
|
|
38518
|
+
children: (childProps) => /* @__PURE__ */ jsxs(
|
|
38519
|
+
InputGroup,
|
|
38520
|
+
{
|
|
38521
|
+
...childProps,
|
|
38522
|
+
id: "currencyGroup",
|
|
38523
|
+
isFocused: false,
|
|
38524
|
+
isInvalid: Boolean(!formValid.annualTurnover && formErrors.annualTurnover),
|
|
38525
|
+
children: [
|
|
38526
|
+
/* @__PURE__ */ jsx(
|
|
38527
|
+
Select,
|
|
38528
|
+
{
|
|
38529
|
+
name: "currency",
|
|
38530
|
+
isMulti: false,
|
|
38531
|
+
items: allowedCurrencies,
|
|
38532
|
+
selected: formData.annualTurnoverCurrency,
|
|
38533
|
+
placeholder: i18n.get("select"),
|
|
38534
|
+
onChange: handleChangeFor("annualTurnoverCurrency")
|
|
38535
|
+
}
|
|
38536
|
+
),
|
|
38537
|
+
/* @__PURE__ */ jsx(
|
|
38538
|
+
InputText,
|
|
38539
|
+
{
|
|
38540
|
+
...childProps,
|
|
38541
|
+
name: "annualTurnover",
|
|
38542
|
+
value: formData.annualTurnover,
|
|
38543
|
+
readonly: false,
|
|
38544
|
+
onInput: handleChangeFor("annualTurnover", "input"),
|
|
38545
|
+
onBlur: handleChangeFor("annualTurnover", "blur"),
|
|
38546
|
+
"aria-required": true,
|
|
38547
|
+
"aria-label": formUtils.getLabel("annualTurnover"),
|
|
38548
|
+
"aria-invalid": !formValid.annualTurnover,
|
|
38549
|
+
isValid: formValid.annualTurnover
|
|
38550
|
+
}
|
|
38551
|
+
)
|
|
38552
|
+
]
|
|
38553
|
+
}
|
|
38554
|
+
)
|
|
38555
|
+
}
|
|
38556
|
+
),
|
|
38557
|
+
/* @__PURE__ */ jsx(
|
|
38558
|
+
Field,
|
|
38559
|
+
{
|
|
38560
|
+
name: "description",
|
|
38561
|
+
label: formUtils.getLabel("description"),
|
|
38562
|
+
errorMessage: formUtils.getErrorMessage("description", formErrors, formFieldProblems),
|
|
38563
|
+
isValid: formValid.description,
|
|
38564
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
38565
|
+
TextArea,
|
|
38566
|
+
{
|
|
38567
|
+
...childProps,
|
|
38568
|
+
name: "description",
|
|
38569
|
+
value: formData.description,
|
|
38570
|
+
classNameModifiers: ["description"],
|
|
38571
|
+
onInput: handleChangeFor("description"),
|
|
38572
|
+
"aria-label": formUtils.getLabel("description"),
|
|
38573
|
+
"aria-invalid": !formValid.description
|
|
38574
|
+
}
|
|
38575
|
+
)
|
|
38576
|
+
}
|
|
38577
|
+
)
|
|
38578
|
+
] });
|
|
38579
|
+
}
|
|
38580
|
+
function SourceOfFunds(props) {
|
|
38581
|
+
const { i18n } = useI18nContext();
|
|
38582
|
+
const { activeForm } = props;
|
|
38583
|
+
const formWrapperClasses = (formId) => (activeForm == null ? void 0 : activeForm.formId) !== formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper";
|
|
38584
|
+
const renderActiveForm = () => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-wrapper", children: [
|
|
38585
|
+
/* @__PURE__ */ jsx("div", { className: formWrapperClasses("sourceOfFundsType"), children: /* @__PURE__ */ jsx(
|
|
38586
|
+
SourceOfFundsType,
|
|
38587
|
+
{
|
|
38588
|
+
...getFormProps(props, sourceOfFundsForms.sourceOfFundsType.formId)
|
|
38589
|
+
}
|
|
38590
|
+
) }),
|
|
38591
|
+
/* @__PURE__ */ jsx("div", { className: formWrapperClasses("tellUsMore"), children: /* @__PURE__ */ jsx(
|
|
38592
|
+
SourceOfFundsTellUsMore,
|
|
38593
|
+
{
|
|
38594
|
+
...getFormProps(props, sourceOfFundsForms.tellUsMore.formId)
|
|
38595
|
+
}
|
|
38596
|
+
) }),
|
|
38597
|
+
/* @__PURE__ */ jsx("div", { className: formWrapperClasses("companySourceOfFunds"), children: /* @__PURE__ */ jsx("div", { children: i18n.get("uploadADocument") }) })
|
|
38598
|
+
] });
|
|
38599
|
+
return /* @__PURE__ */ jsx("div", { children: renderActiveForm() });
|
|
38600
|
+
}
|
|
38199
38601
|
const logger$n = createLogger("SourceOfFundsDropin");
|
|
38200
|
-
|
|
38602
|
+
const sourceOfFundsForms = {
|
|
38603
|
+
sourceOfFundsType: {
|
|
38604
|
+
formId: "sourceOfFundsType",
|
|
38605
|
+
formName: "chooseAFundingCategory",
|
|
38606
|
+
fields: ["type"]
|
|
38607
|
+
},
|
|
38608
|
+
tellUsMore: {
|
|
38609
|
+
formId: "tellUsMore",
|
|
38610
|
+
formName: "tellUsMoreAboutThisSource",
|
|
38611
|
+
fields: ["annualTurnover", "description", "annualTurnoverCurrency"]
|
|
38612
|
+
},
|
|
38613
|
+
companySourceOfFunds: {
|
|
38614
|
+
formId: "companySourceOfFunds",
|
|
38615
|
+
formName: "uploadADocument",
|
|
38616
|
+
fields: ["sourceOfFundsDocument"]
|
|
38617
|
+
}
|
|
38618
|
+
};
|
|
38619
|
+
const sourceOfFundsRequiredFields = {
|
|
38620
|
+
sourceOfFundsType: sourceOfFundsForms.sourceOfFundsType.fields,
|
|
38621
|
+
tellUsMore: sourceOfFundsForms.tellUsMore.fields,
|
|
38622
|
+
companySourceOfFunds: sourceOfFundsForms.companySourceOfFunds.fields
|
|
38623
|
+
};
|
|
38624
|
+
function SourceOfFundsDropin({
|
|
38625
|
+
legalEntityResponse,
|
|
38626
|
+
country,
|
|
38627
|
+
problems,
|
|
38628
|
+
trackingConfig,
|
|
38629
|
+
handleHomeClick
|
|
38630
|
+
}) {
|
|
38631
|
+
var _a;
|
|
38632
|
+
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
38633
|
+
const [activeBusinessLine, setActiveBusinessLine] = useState();
|
|
38634
|
+
const [activeSourceOfFund, setActiveSourceOfFund] = useState({});
|
|
38635
|
+
const formRef = useRef(null);
|
|
38636
|
+
const {
|
|
38637
|
+
state: { currentState }
|
|
38638
|
+
} = useStateContext();
|
|
38639
|
+
const formValidity = currentState.validityByForm;
|
|
38640
|
+
const { getBusinessLines: getBusinessLines2 } = useConfigurationApi();
|
|
38201
38641
|
const { i18n } = useI18nContext();
|
|
38642
|
+
const { showToast } = useToastContext();
|
|
38643
|
+
const [loading, setLoading] = useState(false);
|
|
38202
38644
|
useEffect(() => {
|
|
38203
|
-
|
|
38645
|
+
setLoading(true);
|
|
38646
|
+
getBusinessLines2(legalEntityResponse.id).then((response) => {
|
|
38647
|
+
if (response) {
|
|
38648
|
+
const firstBusinessLine = response[0];
|
|
38649
|
+
if (firstBusinessLine) {
|
|
38650
|
+
setActiveBusinessLine(firstBusinessLine);
|
|
38651
|
+
if (firstBusinessLine == null ? void 0 : firstBusinessLine.sourceOfFunds) {
|
|
38652
|
+
const firstSourceOfFund = mapSourceOfFundToSourceOfFundsSchema(firstBusinessLine);
|
|
38653
|
+
setActiveSourceOfFund(firstSourceOfFund);
|
|
38654
|
+
}
|
|
38655
|
+
}
|
|
38656
|
+
}
|
|
38657
|
+
}).catch(() => {
|
|
38658
|
+
showToast({ label: i18n.get("failedToLoadBusinessLines"), type: "error" });
|
|
38659
|
+
}).finally(() => setLoading(false));
|
|
38660
|
+
}, []);
|
|
38661
|
+
const baseTrackingPayload = getBaseTrackingPayload({
|
|
38662
|
+
trackingConfig,
|
|
38663
|
+
task: TaskTypes.SOURCE_OF_FUNDS
|
|
38664
|
+
});
|
|
38665
|
+
const allFormsFilled = (data) => ["sourceOfFundsType", "annualTurnover"].every((detail) => {
|
|
38666
|
+
const value = getProp(data, detail);
|
|
38667
|
+
return !isEmpty$1(value);
|
|
38668
|
+
});
|
|
38669
|
+
const canSubmitForm = useMemo(
|
|
38670
|
+
() => activeSourceOfFund ? allFormsFilled(currentState.data) && hasDataChanged(activeSourceOfFund, currentState.data) : false,
|
|
38671
|
+
[activeSourceOfFund, currentState.data]
|
|
38672
|
+
);
|
|
38673
|
+
const derivedProps = useMemo(
|
|
38674
|
+
() => getPropsFromConfigurations(
|
|
38675
|
+
{},
|
|
38676
|
+
sourceOfFundsForms,
|
|
38677
|
+
(problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [],
|
|
38678
|
+
(problems == null ? void 0 : problems.missingData) ?? [],
|
|
38679
|
+
getFieldsWithExistingData(legalEntityResponse),
|
|
38680
|
+
{},
|
|
38681
|
+
{},
|
|
38682
|
+
{},
|
|
38683
|
+
legalEntityResponse.type
|
|
38684
|
+
),
|
|
38685
|
+
[problems == null ? void 0 : problems.remediationActions, legalEntityResponse]
|
|
38686
|
+
);
|
|
38687
|
+
const sourceOfFundsRequiredForms = useMemo(() => {
|
|
38688
|
+
const data = currentState == null ? void 0 : currentState.data;
|
|
38689
|
+
return Object.fromEntries(
|
|
38690
|
+
Object.entries(sourceOfFundsForms).filter(([form]) => {
|
|
38691
|
+
var _a2;
|
|
38692
|
+
if (((_a2 = data == null ? void 0 : data.sourceOfFundsType) == null ? void 0 : _a2.type) !== "business")
|
|
38693
|
+
return form !== sourceOfFundsForms.tellUsMore.formId;
|
|
38694
|
+
return form;
|
|
38695
|
+
})
|
|
38696
|
+
);
|
|
38697
|
+
}, [(_a = currentState == null ? void 0 : currentState.data) == null ? void 0 : _a.sourceOfFundsType]);
|
|
38698
|
+
const forms = useMemo(() => {
|
|
38699
|
+
const requiredForms = getRequiredForms(
|
|
38700
|
+
sourceOfFundsRequiredForms,
|
|
38701
|
+
sourceOfFundsRequiredFields,
|
|
38702
|
+
void 0,
|
|
38703
|
+
true
|
|
38704
|
+
);
|
|
38705
|
+
return addValidityToForms(requiredForms, formValidity, problems);
|
|
38706
|
+
}, [derivedProps, formValidity, problems]);
|
|
38707
|
+
const handleSubmit = useCallback(async () => {
|
|
38708
|
+
setLoadingStatus("loading");
|
|
38709
|
+
logger$n.log("Submitting data");
|
|
38710
|
+
setLoadingStatus("success");
|
|
38204
38711
|
}, []);
|
|
38205
|
-
|
|
38712
|
+
const {
|
|
38713
|
+
handleNextClick,
|
|
38714
|
+
handleBackClick,
|
|
38715
|
+
activeForm,
|
|
38716
|
+
shouldValidate,
|
|
38717
|
+
setShouldValidate,
|
|
38718
|
+
gotoFormByFormIndex,
|
|
38719
|
+
steps
|
|
38720
|
+
} = useFormComposer({
|
|
38721
|
+
problems,
|
|
38722
|
+
baseTrackingPayload,
|
|
38723
|
+
formRef,
|
|
38724
|
+
forms,
|
|
38725
|
+
onSubmit: handleSubmit
|
|
38726
|
+
});
|
|
38727
|
+
return /* @__PURE__ */ jsx(
|
|
38728
|
+
FormWrapper,
|
|
38729
|
+
{
|
|
38730
|
+
taskName: "sourceOfFunds",
|
|
38731
|
+
gotoFormByFormIndex,
|
|
38732
|
+
hideSidebar: true,
|
|
38733
|
+
loadingStatus,
|
|
38734
|
+
forms,
|
|
38735
|
+
activeForm,
|
|
38736
|
+
validateForm: () => setShouldValidate(true),
|
|
38737
|
+
baseTrackingPayload,
|
|
38738
|
+
onSubmit: handleSubmit,
|
|
38739
|
+
problems,
|
|
38740
|
+
canSubmit: canSubmitForm,
|
|
38741
|
+
handleNextClick,
|
|
38742
|
+
handleBackClick,
|
|
38743
|
+
handleHomeClick,
|
|
38744
|
+
steps,
|
|
38745
|
+
children: loading ? /* @__PURE__ */ jsx(Loader, { size: "medium" }) : /* @__PURE__ */ jsx(
|
|
38746
|
+
SourceOfFunds,
|
|
38747
|
+
{
|
|
38748
|
+
country,
|
|
38749
|
+
activeForm,
|
|
38750
|
+
shouldValidate,
|
|
38751
|
+
activeBusinessLine,
|
|
38752
|
+
ref: formRef,
|
|
38753
|
+
data: activeSourceOfFund
|
|
38754
|
+
}
|
|
38755
|
+
)
|
|
38756
|
+
}
|
|
38757
|
+
);
|
|
38206
38758
|
}
|
|
38207
38759
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
38208
38760
|
const logger$m = createLogger("DropinComposer");
|
|
@@ -38220,7 +38772,7 @@ function DropinComposer({
|
|
|
38220
38772
|
const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
|
|
38221
38773
|
const { i18n } = useI18nContext();
|
|
38222
38774
|
const { getConfiguration: getConfiguration2 } = useConfigurationApi();
|
|
38223
|
-
const { isExperimentEnabled } = useExperimentsContext();
|
|
38775
|
+
const { isExperimentEnabled, refreshExperiments } = useExperimentsContext();
|
|
38224
38776
|
const { showToast } = useToastContext();
|
|
38225
38777
|
const [isLoadingConfiguration, setIsLoadingConfiguration] = useState(false);
|
|
38226
38778
|
const { setHasSeenSingpassSelection } = useHasSeenSingpassSelection({
|
|
@@ -38800,6 +39352,9 @@ function DropinComposer({
|
|
|
38800
39352
|
onComplete: async (newAccountHolder) => {
|
|
38801
39353
|
setAccountHolder(newAccountHolder);
|
|
38802
39354
|
setCanSeeEntitySelection(false);
|
|
39355
|
+
if (refreshExperiments) {
|
|
39356
|
+
refreshExperiments();
|
|
39357
|
+
}
|
|
38803
39358
|
await refreshLegalEntity();
|
|
38804
39359
|
navigateTo("default");
|
|
38805
39360
|
},
|
|
@@ -43681,6 +44236,16 @@ const verifyIdNumber$1 = async (context, request) => {
|
|
|
43681
44236
|
logger$6.warn("WARNING: idNumber verification failed - error:", e);
|
|
43682
44237
|
}
|
|
43683
44238
|
};
|
|
44239
|
+
const getBusinessLines = async (loadingContext, legalEntityId) => httpGet({
|
|
44240
|
+
loadingContext,
|
|
44241
|
+
errorLevel: "warn",
|
|
44242
|
+
errorMessage: `Failed to fetch Business lines`,
|
|
44243
|
+
path: `${legalEntityId}/businessLines`,
|
|
44244
|
+
authentication: "jwt",
|
|
44245
|
+
headers: {
|
|
44246
|
+
"Content-Type": "application/json"
|
|
44247
|
+
}
|
|
44248
|
+
});
|
|
43684
44249
|
const getEmbeddedApi = ({
|
|
43685
44250
|
base,
|
|
43686
44251
|
rootLegalEntityId
|
|
@@ -43711,7 +44276,8 @@ const getEmbeddedApi = ({
|
|
|
43711
44276
|
validatePhoneNumber: async (phoneNumber) => validatePhoneNumber$1({ loadingContext }, phoneNumber),
|
|
43712
44277
|
verifyIdNumber: async (request) => verifyIdNumber$1(baseRequestContext, request),
|
|
43713
44278
|
getLegalForms: async (countryCode) => getLegalForms(datasetsBaseUrl, countryCode),
|
|
43714
|
-
getNaceCodes: async () => getNaceCodes(datasetsBaseUrl)
|
|
44279
|
+
getNaceCodes: async () => getNaceCodes(datasetsBaseUrl),
|
|
44280
|
+
getBusinessLines: async (legalEntityId) => getBusinessLines(loadingContextWithRootLEAuth, legalEntityId)
|
|
43715
44281
|
};
|
|
43716
44282
|
};
|
|
43717
44283
|
const getAllowedCountries = async (context) => {
|
|
@@ -43811,6 +44377,7 @@ const getKycExternalApi = ({
|
|
|
43811
44377
|
clientKey
|
|
43812
44378
|
}) => {
|
|
43813
44379
|
const datasetBaseUrl = `/onboardingcomponents/api/${COMPONENTS_API_VERSION}/datasets/`;
|
|
44380
|
+
const baseUrlWithApiVersion = `${loadingContext}${COMPONENTS_API_VERSION}/legalEntities/`;
|
|
43814
44381
|
return {
|
|
43815
44382
|
getConfiguration: async (request) => getConfiguration({ loadingContext, clientKey }, request),
|
|
43816
44383
|
validateAccountIdentification: async (accountIdentificationDetails) => validateAccountIdentification({ loadingContext, clientKey }, accountIdentificationDetails),
|
|
@@ -43821,7 +44388,8 @@ const getKycExternalApi = ({
|
|
|
43821
44388
|
validatePhoneNumber: async (phoneNumber) => validatePhoneNumber({ loadingContext, clientKey }, phoneNumber),
|
|
43822
44389
|
getImageUrl: () => `${loadingContext}static/images/`,
|
|
43823
44390
|
getLegalForms: async (countryCode) => getLegalForms(datasetBaseUrl, countryCode),
|
|
43824
|
-
getNaceCodes: async () => getNaceCodes(datasetBaseUrl)
|
|
44391
|
+
getNaceCodes: async () => getNaceCodes(datasetBaseUrl),
|
|
44392
|
+
getBusinessLines: async (legalEntityId) => getBusinessLines(baseUrlWithApiVersion, legalEntityId)
|
|
43825
44393
|
};
|
|
43826
44394
|
};
|
|
43827
44395
|
const ConfigurationApiProvider = ({
|
|
@@ -43832,7 +44400,7 @@ const ConfigurationApiProvider = ({
|
|
|
43832
44400
|
}) => {
|
|
43833
44401
|
const authContext = useAuthContext();
|
|
43834
44402
|
const { isEmbeddedDropin, loadingContext } = authContext;
|
|
43835
|
-
const sdkVersion = "3.
|
|
44403
|
+
const sdkVersion = "3.44.1";
|
|
43836
44404
|
useAnalytics({
|
|
43837
44405
|
onUserEvent,
|
|
43838
44406
|
legalEntityId: rootLegalEntityId,
|
|
@@ -43928,7 +44496,8 @@ const CoreProvider = ({
|
|
|
43928
44496
|
};
|
|
43929
44497
|
function ExperimentsContextProvider({
|
|
43930
44498
|
children,
|
|
43931
|
-
experiments: initialExperiments
|
|
44499
|
+
experiments: initialExperiments,
|
|
44500
|
+
refreshExperiments
|
|
43932
44501
|
}) {
|
|
43933
44502
|
const [experiments, setExperiments] = useState(initialExperiments);
|
|
43934
44503
|
const contextValue = useMemo(
|
|
@@ -43936,9 +44505,10 @@ function ExperimentsContextProvider({
|
|
|
43936
44505
|
isExperimentEnabled: (experimentName) => (experiments == null ? void 0 : experiments[experimentName]) ?? false,
|
|
43937
44506
|
enableVersionExperiment: (experimentName) => {
|
|
43938
44507
|
setExperiments({ ...experiments, [experimentName]: true });
|
|
43939
|
-
}
|
|
44508
|
+
},
|
|
44509
|
+
refreshExperiments
|
|
43940
44510
|
}),
|
|
43941
|
-
[experiments]
|
|
44511
|
+
[experiments, refreshExperiments]
|
|
43942
44512
|
);
|
|
43943
44513
|
return /* @__PURE__ */ jsx(ExperimentsContext.Provider, { value: contextValue, children });
|
|
43944
44514
|
}
|
|
@@ -44415,7 +44985,7 @@ class BaseElement {
|
|
|
44415
44985
|
* @returns this - the element instance
|
|
44416
44986
|
*/
|
|
44417
44987
|
update(props) {
|
|
44418
|
-
this.props = { ...this.props, props };
|
|
44988
|
+
this.props = { ...this.props, ...props };
|
|
44419
44989
|
return this.remount();
|
|
44420
44990
|
}
|
|
44421
44991
|
updateLocale({ locale }) {
|
|
@@ -44677,7 +45247,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
|
|
|
44677
45247
|
const { i18n } = useI18nContext();
|
|
44678
45248
|
const [tab, setTab] = useState("metadata");
|
|
44679
45249
|
const metadata = {
|
|
44680
|
-
sdkVersion: "3.
|
|
45250
|
+
sdkVersion: "3.44.1",
|
|
44681
45251
|
locale: i18n.locale,
|
|
44682
45252
|
rootLegalEntityId
|
|
44683
45253
|
};
|
|
@@ -44878,60 +45448,67 @@ class UIElement extends BaseElement {
|
|
|
44878
45448
|
const rootLegalEntityId = getRootLegalEntityId(
|
|
44879
45449
|
this.props.componentProps
|
|
44880
45450
|
);
|
|
44881
|
-
return /* @__PURE__ */ jsx(SettingsProvider, { settings: this.props.settings, children: /* @__PURE__ */ jsx(
|
|
44882
|
-
|
|
45451
|
+
return /* @__PURE__ */ jsx(SettingsProvider, { settings: this.props.settings, children: /* @__PURE__ */ jsx(
|
|
45452
|
+
ExperimentsContextProvider,
|
|
44883
45453
|
{
|
|
44884
|
-
|
|
44885
|
-
|
|
44886
|
-
clientKey: this.props.clientKey,
|
|
44887
|
-
loadingContext: this.props.loadingContext,
|
|
45454
|
+
experiments: this.props.experiments,
|
|
45455
|
+
refreshExperiments: this.props.refreshExperiments,
|
|
44888
45456
|
children: /* @__PURE__ */ jsx(
|
|
44889
|
-
|
|
45457
|
+
AuthProvider,
|
|
44890
45458
|
{
|
|
44891
|
-
|
|
44892
|
-
|
|
44893
|
-
|
|
45459
|
+
sdkToken: this.props.sdkToken,
|
|
45460
|
+
getSdkToken: this.props.getSdkToken,
|
|
45461
|
+
clientKey: this.props.clientKey,
|
|
45462
|
+
loadingContext: this.props.loadingContext,
|
|
44894
45463
|
children: /* @__PURE__ */ jsx(
|
|
44895
|
-
|
|
45464
|
+
ConfigurationApiProvider,
|
|
44896
45465
|
{
|
|
44897
|
-
contextCountry: this.props.contextCountry,
|
|
44898
45466
|
rootLegalEntityId,
|
|
44899
|
-
|
|
44900
|
-
|
|
45467
|
+
onUserEvent: this.props.onUserEvent,
|
|
45468
|
+
componentName: this.props.componentName,
|
|
45469
|
+
children: /* @__PURE__ */ jsx(
|
|
45470
|
+
CoreProvider,
|
|
44901
45471
|
{
|
|
44902
|
-
|
|
44903
|
-
|
|
44904
|
-
|
|
44905
|
-
|
|
44906
|
-
ExpiryProvider,
|
|
45472
|
+
contextCountry: this.props.contextCountry,
|
|
45473
|
+
rootLegalEntityId,
|
|
45474
|
+
children: /* @__PURE__ */ jsx(TaskContext.Provider, { value: createTaskStore(), children: /* @__PURE__ */ jsx(
|
|
45475
|
+
I18nProvider,
|
|
44907
45476
|
{
|
|
44908
|
-
|
|
44909
|
-
|
|
45477
|
+
locale: this.props.locale,
|
|
45478
|
+
customTranslations: this.props.customTranslations,
|
|
44910
45479
|
eventEmitter: this.eventEmitter,
|
|
44911
45480
|
children: /* @__PURE__ */ jsx(
|
|
44912
|
-
|
|
45481
|
+
ExpiryProvider,
|
|
44913
45482
|
{
|
|
44914
|
-
|
|
44915
|
-
|
|
44916
|
-
|
|
44917
|
-
|
|
45483
|
+
expiry: this.props.expiry,
|
|
45484
|
+
refreshExpiry: this.props.refreshExpiry,
|
|
45485
|
+
eventEmitter: this.eventEmitter,
|
|
45486
|
+
children: /* @__PURE__ */ jsx(
|
|
45487
|
+
DebugWrapper,
|
|
44918
45488
|
{
|
|
44919
|
-
|
|
44920
|
-
|
|
45489
|
+
rootLegalEntityId,
|
|
45490
|
+
handleGetLegalEntity: "handleGetLegalEntity" in this.props.componentProps ? this.props.componentProps.handleGetLegalEntity : void 0,
|
|
45491
|
+
children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container-wrapper", children: /* @__PURE__ */ jsx(AutoResizer, { children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container", children: /* @__PURE__ */ jsx(ToastContextProvider, { children: /* @__PURE__ */ jsx(StateProvider, { children: /* @__PURE__ */ jsx(
|
|
45492
|
+
Component,
|
|
45493
|
+
{
|
|
45494
|
+
...this.props.componentProps,
|
|
45495
|
+
onUnmount: this.remove
|
|
45496
|
+
}
|
|
45497
|
+
) }) }) }) }) })
|
|
44921
45498
|
}
|
|
44922
|
-
)
|
|
45499
|
+
)
|
|
44923
45500
|
}
|
|
44924
45501
|
)
|
|
44925
45502
|
}
|
|
44926
|
-
)
|
|
45503
|
+
) })
|
|
44927
45504
|
}
|
|
44928
|
-
)
|
|
45505
|
+
)
|
|
44929
45506
|
}
|
|
44930
45507
|
)
|
|
44931
45508
|
}
|
|
44932
45509
|
)
|
|
44933
45510
|
}
|
|
44934
|
-
) })
|
|
45511
|
+
) });
|
|
44935
45512
|
};
|
|
44936
45513
|
}
|
|
44937
45514
|
}
|