@adyen/kyc-components 3.74.6 → 3.75.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-BqzgKlvm.js → AcceptTermsOfServiceComponent-CmtjlLkc.js} +7 -13
- package/dist/{AccountSetupRejected-DjDL8jmS.js → AccountSetupRejected-D-gXso-m.js} +2 -2
- package/dist/{Avatar-wjLtSQkK.js → Avatar-EN9QqneW.js} +1 -1
- package/dist/{BusinessDetailsDropin-BTgBn9DK.js → BusinessDetailsDropin-D7bmlCWL.js} +95 -75
- package/dist/{BusinessFinancingComponent-BXOS208z.js → BusinessFinancingComponent-CWrke1wB.js} +3 -3
- package/dist/{BusinessFinancingDropin-BbQp3Trc.js → BusinessFinancingDropin-CIr8dodZ.js} +9 -15
- package/dist/{BusinessFinancingPage-CWZUFD8-.js → BusinessFinancingPage-BUaBk8uq.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-BZCOP0IF.js → BusinessTypeSelectionPage-D3fUNn7f.js} +4 -6
- package/dist/{ContractViewer-B7hrFdPk.js → ContractViewer-fPv7fuFx.js} +1 -1
- package/dist/{CreateIndividualComponent-BT09k8CS.js → CreateIndividualComponent-BSLA7VnY.js} +3 -4
- package/dist/{CreateTransferInstrumentComponent-DieMuBVh.js → CreateTransferInstrumentComponent-Drs_YkA-.js} +2 -3
- package/dist/{CustomerSupport-QKjx95Se.js → CustomerSupport-zKf2s-8D.js} +5 -6
- package/dist/{DebugModal-D5jsBdP9.js → DebugModal-BYymGgjT.js} +43 -10
- package/dist/{DecisionMakerDetailsPage-j44uyMcI.js → DecisionMakerDetailsPage-DqlS3Pit.js} +3 -4
- package/dist/{DecisionMakers-CS10zS56.js → DecisionMakers-CX22Ap-u.js} +4 -6
- package/dist/{EmbeddedStatus-BJNO2HQM.js → EmbeddedStatus-D_5O-E9M.js} +3 -3
- package/dist/{FormEndState-HM9-Iybg.js → FormEndState-DL_XVLTU.js} +1 -1
- package/dist/{FormFlow-Dh42U5Dm.js → FormFlow-8fZuMxhg.js} +2 -5
- package/dist/{IndividualOnfidoDropin-185xffxF.js → IndividualOnfidoDropin-fwzLO6t3.js} +73 -84
- package/dist/{Introduction-DA4Vqi29.js → Introduction-BifK4Csi.js} +3 -4
- package/dist/{LegalRepresentativeDetailsPage-BadQ0fr1.js → LegalRepresentativeDetailsPage-VLBt7NDI.js} +3 -4
- package/dist/{ManageIndividualComponent-DCMI3sdK.js → ManageIndividualComponent-DVtZzeGS.js} +4 -4
- package/dist/{ManagePCIComponent-BC0TK7FM.js → ManagePCIComponent-CfRjUILc.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-CiK3SL8y.js → ManageTermsOfServiceComponent-B3NHrk94.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-sCdm0_6v.js → ManageTransferInstrumentComponent-DLZUnjM-.js} +4 -9
- package/dist/{OnboardingDropinComponent-CXM4ne0C.js → OnboardingDropinComponent-O5G-8Wpl.js} +117 -115
- package/dist/{ProviderButton-BKQeyTkZ.js → ProviderButton-BEwLbf1l.js} +3 -13
- package/dist/{Review-CkMsQ4jl.js → Review-BtJMQZDF.js} +3 -4
- package/dist/{RootBusinessDetailsPage-sFpUGMqo.js → RootBusinessDetailsPage-WN5nZDvo.js} +3 -4
- package/dist/{RootIndividualDetailsPage-_Ay6SL3f.js → RootIndividualDetailsPage-CVSrwRCQ.js} +3 -4
- package/dist/{SignPCIComponent-D35Kpcfv.js → SignPCIComponent-CpPSrDnv.js} +6 -10
- package/dist/{SingpassSelection-B0dtvrCa.js → SingpassSelection-BnbLViNx.js} +2 -2
- package/dist/{SoleProprietorshipPage-C6YDlNql.js → SoleProprietorshipPage-IcvPd-nL.js} +3 -4
- package/dist/{SourceOfFunds.module-BdvORVHN.js → SourceOfFunds.module-Bo6TYBfH.js} +1 -1
- package/dist/{SourceOfFundsPage-wl2-rTNr.js → SourceOfFundsPage-CCv1L9it.js} +36 -28
- package/dist/{StoreProvider-BSkziuJ9.js → StoreProvider-CairIABM.js} +3206 -956
- package/dist/{TaskItemStatus-BYKG95n7.js → TaskItemStatus-9_rlwmj8.js} +2 -2
- package/dist/{TaxReportingDropin-khLr0hFP.js → TaxReportingDropin-DxckPuwa.js} +7 -8
- package/dist/{TileGroup-CSl0rZJR.js → TileGroup-jtLX8JgH.js} +2 -2
- package/dist/{TrustDetailsPage-DSbNRTLH.js → TrustDetailsPage-C0SUQFV-.js} +12 -36
- package/dist/{TrustMemberCompanyPage-MHb4v-mt.js → TrustMemberCompanyPage-mOFqP6NS.js} +4 -5
- package/dist/{TrustMemberIndividualPage-DrH2zcs2.js → TrustMemberIndividualPage-BGJsBZEr.js} +3 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-DTXEST-V.js → UnincorporatedPartnershipIndividualPage-CogP3uSQ.js} +3 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BrwfQPSK.js → UnincorporatedPartnershipMemberCompanyPage-B8uzg9KK.js} +3 -4
- package/dist/{VerificationErrorAlert-BPgzHZvz.js → VerificationErrorAlert-kHFgZANq.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-CGZbOuEz.js → ViewVerificationStatusComponent-CD3Jt8MZ.js} +3 -3
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +14 -14
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-pci.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +2 -2
- package/dist/adyen-manage-transfer-instruments.js +2 -2
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-sign-pci.js +2 -2
- package/dist/adyen-terms-of-service.js +2 -2
- package/dist/adyen-transfer-instrument.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/{bg-BG-BzeiDl-e.js → bg-BG-BV_GOHGg.js} +49 -3
- package/dist/{cs-CZ-4Tk67nmO.js → cs-CZ-CZDCUWRh.js} +49 -3
- package/dist/{css-CH00rBdF.js → css-Cz9rxCv4.js} +2 -2
- package/dist/{da-DK-CN3Rc5da.js → da-DK-BmTgxKpq.js} +49 -3
- package/dist/{de-DE-GaynF_xB.js → de-DE-DZeG8NVg.js} +49 -3
- package/dist/{el-GR-C3tN9AFZ.js → el-GR-C3likHBP.js} +48 -2
- package/dist/{es-ES-9Q6u4x6u.js → es-ES-DHhHHeU-.js} +48 -2
- package/dist/{et-EE-jHAEJC5c.js → et-EE-CiD_oBu3.js} +49 -3
- package/dist/{fi-FI-DH5DphLd.js → fi-FI-DAZqSyjL.js} +49 -3
- package/dist/{fr-FR-DCboO9VH.js → fr-FR-vs5BYMWx.js} +49 -3
- package/dist/{getFieldsWithExistingData-M80AmxW5.js → getFieldsWithExistingData-BsvSqWoV.js} +2 -2
- package/dist/{hasDataChanged-rFZP3bN1.js → hasDataChanged-Dms2p9LC.js} +2 -2
- package/dist/{hr-HR-333ODlHZ.js → hr-HR-CcaMvc2K.js} +49 -3
- package/dist/{hu-HU-CUNG9bik.js → hu-HU-CzBd9g0P.js} +48 -2
- package/dist/{individualFormConfig-Jzdtvxb0.js → individualFormConfig-DlheGOdv.js} +6 -2
- package/dist/{it-IT-CXxD91gu.js → it-IT-BXIdTOUw.js} +49 -3
- package/dist/{ja-JP-1qp81W1I.js → ja-JP-CngmcMI-.js} +48 -2
- package/dist/{json--XurzXL9.js → json-B-tTa0eY.js} +2 -2
- package/dist/{localizeDateString-BTqPuXz8.js → localizeDateString-B7q5Bl9r.js} +2 -2
- package/dist/{lt-LT-vQmxFgVn.js → lt-LT-Dpyaroh2.js} +49 -3
- package/dist/{lv-LV-Ds10XQ8q.js → lv-LV-CCcm8aDW.js} +49 -3
- package/dist/{mapFinancialReportsToFinancialInformation-XSFKqLLm.js → mapFinancialReportsToFinancialInformation-B0S7gC4f.js} +2 -2
- package/dist/{nl-NL-BsDTOkW4.js → nl-NL-gYpP7VMA.js} +49 -3
- package/dist/{no-NO-BpyiF6sI.js → no-NO-nOXLv4rO.js} +49 -3
- package/dist/{pl-PL-BqA3pc6p.js → pl-PL-Dwlwj1ob.js} +49 -3
- package/dist/{plaintext-C-xhcbw9.js → plaintext-CW6d70Y6.js} +2 -2
- package/dist/preact/adyen-terms-of-service.js +1 -1
- package/dist/preact/adyen-transfer-instrument.js +1 -1
- package/dist/{pt-PT-DSry7yG3.js → pt-PT-DbQbuaCm.js} +49 -3
- package/dist/{resolveEnvironment-CF43kjG9.js → resolveEnvironment-BsLkkNKL.js} +3 -3
- package/dist/{ro-RO-r8myUMxM.js → ro-RO-ZTuJtIop.js} +49 -3
- package/dist/{rules-ClGuufcz.js → rules-9XmAbTQu.js} +14 -3
- package/dist/{sk-SK-Dy7mKbdU.js → sk-SK-Ba8jBCvr.js} +49 -3
- package/dist/{sl-SI-L3YffGqX.js → sl-SI-DszG8wEm.js} +49 -3
- package/dist/style.css +475 -490
- package/dist/styles-CLV89_hH.js +481 -496
- package/dist/{sv-SE-BtKMAZPD.js → sv-SE-Fo7zzjiG.js} +48 -2
- package/dist/types/api/address/address.types.d.ts +0 -1
- package/dist/types/api/address/useSearchAddress.d.ts +0 -1
- package/dist/types/api/companyDataSet/companyDataset.types.d.ts +2 -2
- package/dist/types/api/companyDataSet/constants.d.ts +1 -1
- package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +3 -0
- package/dist/types/api/companySearch/companySearch.types.d.ts +2 -2
- package/dist/types/api/companySelection/companySelection.types.d.ts +6 -0
- package/dist/types/api/companySelection/useCompanySelection.d.ts +4 -0
- package/dist/types/api/configurations/useScenarios.d.ts +7 -7
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/entityVerifications/entityVerifications.types.d.ts +1 -1
- package/dist/types/api/queryKeys.d.ts +3 -2
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +4 -4
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -0
- package/dist/types/api/transferInstruments/transferInstruments.types.d.ts +1 -1
- package/dist/types/api/uiAnalytics/uiAnalytics.types.d.ts +4 -1
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -10
- package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankAccountNumber/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankCode/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankCode/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BranchCode/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BranchCode/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/ibanValidator.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/SwiftCode/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -7
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +24 -24
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +3 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -0
- package/dist/types/components/BankAccount/utils/defaultPayoutAccountFormat.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +2 -2
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +1 -1
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +1 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +1 -1
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +2 -4
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/config.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/config.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +3 -3
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -3
- package/dist/types/components/Business/utils/companyUtil.d.ts +1 -1
- package/dist/types/components/EFP/fields/LegalFormField/types.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SOFUploadModal.d.ts +0 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +1 -0
- package/dist/types/components/EFP/tasks/TaxReportingDropin/types.d.ts +2 -2
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +1 -1
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/type.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +5 -4
- package/dist/types/components/Individual/forms/Individual/types.d.ts +4 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +23 -9
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +5 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +4 -4
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/types.d.ts +1 -1
- package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
- package/dist/types/components/Shared/FormNavigation/types.d.ts +3 -3
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
- package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
- package/dist/types/components/Shared/Summary/types.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +2 -2
- package/dist/types/components/Shared/fields/DBANameField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/IndividualIdNumberTypeSelector.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferVatNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +3 -3
- package/dist/types/components/Shared/fields/StockExchangeMICField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/constants.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/validate.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
- package/dist/types/components/Shared/forms/CompanyNameAndCountry/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/ContactDetails/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/FinancialInformation/ReportedValue.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
- package/dist/types/components/Shared/tasks/CustomerSupport/types.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/PayoutAccountTaskListItem.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/Trust.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +3 -3
- package/dist/types/components/Trust/forms/Trust/types.d.ts +2 -2
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/trustFormConfig.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +1 -1
- package/dist/types/components/Trust/utils/trustUtil.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/types/types.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts +2 -2
- package/dist/types/components/ui/molecules/Alert/types.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/validate.d.ts +1 -1
- package/dist/types/components/ui/molecules/ErrorPanel/types.d.ts +2 -2
- package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +1 -1
- package/dist/types/constants/countries.d.ts +1 -1
- package/dist/types/context/ExperimentContext/types.d.ts +9 -1
- package/dist/types/context/FormRouterContext/types.d.ts +1 -1
- package/dist/types/context/SettingsContext/types.d.ts +1 -1
- package/dist/types/core/analytics.d.ts +3 -1
- package/dist/types/core/errorMapping.d.ts +3 -3
- package/dist/types/core/models/api/address.d.ts +1 -1
- package/dist/types/core/models/api/financialReport.d.ts +1 -1
- package/dist/types/core/models/api/get-scenarios.d.ts +0 -7
- package/dist/types/core/models/api/legal-arrangement.d.ts +1 -1
- package/dist/types/core/models/api/organization.d.ts +1 -1
- package/dist/types/core/models/api/phone.d.ts +1 -1
- package/dist/types/core/models/api/remediating-action.d.ts +1 -1
- package/dist/types/core/models/api/source-of-funds.d.ts +1 -1
- package/dist/types/core/models/api/transfer-instrument.d.ts +1 -1
- package/dist/types/core/models/api/verification-error.d.ts +1 -1
- package/dist/types/core/process-field-configurations.d.ts +4 -4
- package/dist/types/core/types.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +11 -2
- package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +2 -2
- package/dist/types/datasets/generators/getBusinessTypeExamplesForCountry.d.ts +1 -1
- package/dist/types/datasets/generators/getCompanyTypeExamplesForCountry.d.ts +1 -1
- package/dist/types/datasets/generators/getLegalArrangementTypeExamplesForCountry.d.ts +2 -2
- package/dist/types/datasets/generators/loadCountries.d.ts +1 -1
- package/dist/types/datasets/generators/loadStatesDataset.d.ts +1 -1
- package/dist/types/hooks/singpass/useHasSeenSingpassSelection.d.ts +2 -1
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -1
- package/dist/types/hooks/useAccountHolder.d.ts +1 -1
- package/dist/types/hooks/useAllowedCountries.d.ts +1 -1
- package/dist/types/hooks/useAsyncValidator.d.ts +2 -1
- package/dist/types/hooks/useBusinessSetup.d.ts +1 -1
- package/dist/types/hooks/useDataConflicts.d.ts +0 -6
- package/dist/types/hooks/useDataMissingRemediations.d.ts +1 -1
- package/dist/types/hooks/useForm/reducer.d.ts +2 -2
- package/dist/types/hooks/useForm/types.d.ts +6 -6
- package/dist/types/hooks/useFormComposer.d.ts +2 -2
- package/dist/types/hooks/useMultiForm/reducer.d.ts +4 -3
- package/dist/types/hooks/useMultiForm/types.d.ts +0 -39
- package/dist/types/hooks/useMultiForm/useMultiFormAsyncValidator.d.ts +2 -2
- package/dist/types/hooks/useScenarioConfiguration.d.ts +3 -3
- package/dist/types/language/utils.d.ts +1 -1
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
- package/dist/types/stores/globalStore/get-task-status.d.ts +1 -1
- package/dist/types/stores/globalStore/globalStore.d.ts +3 -3
- package/dist/types/{core/models → types}/errors/capability-problems.d.ts +1 -1
- package/dist/types/{core/models → types}/errors/entity-problems.d.ts +4 -4
- package/dist/types/{core/models → types}/errors/error-message.d.ts +1 -1
- package/dist/types/{core/models → types}/errors/remediation.d.ts +1 -1
- package/dist/types/{core/models → types}/form-configuration.d.ts +4 -4
- package/dist/types/{core/models → types}/form-rules.d.ts +10 -8
- package/dist/types/{core/models → types}/form.d.ts +1 -1
- package/dist/types/utils/accountHolderUtils.d.ts +1 -1
- package/dist/types/utils/api/documentUtils.d.ts +1 -1
- package/dist/types/utils/api/getProblemsForEntity.d.ts +2 -2
- package/dist/types/utils/api/processCapabilitites.d.ts +3 -3
- package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
- package/dist/types/utils/birthDateUtils.d.ts +1 -1
- package/dist/types/utils/country.d.ts +1 -1
- package/dist/types/utils/datasetUtil.d.ts +3 -3
- package/dist/types/{core/models/decision-maker.d.ts → utils/decisionMaker.d.ts} +2 -2
- package/dist/types/utils/dropinUtils.d.ts +2 -2
- package/dist/types/utils/entityAssociationUtil.d.ts +5 -5
- package/dist/types/utils/entityStatusUtil.d.ts +2 -2
- package/dist/types/{core/models/field-configurations.d.ts → utils/fieldConfigurations.d.ts} +4 -4
- package/dist/types/utils/formUtils.d.ts +1 -1
- package/dist/types/utils/formatCurrency.d.ts +1 -1
- package/dist/types/utils/getLegalEntityCountry.d.ts +1 -1
- package/dist/types/utils/getSSNType.d.ts +1 -1
- package/dist/types/utils/mapping/mapExistingFile.d.ts +1 -1
- package/dist/types/utils/perCountry.d.ts +1 -1
- package/dist/types/utils/perState.d.ts +3 -2
- package/dist/types/utils/regex/postalCodePatterns.d.ts +1 -1
- package/dist/types/utils/validation/types.d.ts +1 -1
- package/dist/types/{core/models/errors/validation-error.d.ts → utils/validationError.d.ts} +1 -1
- package/dist/types/utils/validatorUtils.d.ts +1 -1
- package/dist/{useMultiForm-BVPPHa0M.js → useMultiForm-akawPP6-.js} +2 -2
- package/dist/{useOnboardingStatus-DpP-tjPy.js → useOnboardingStatus-C757XzAk.js} +1 -1
- package/dist/{useSalesChannelsSettings-zsFV9x70.js → useSalesChannelsSettings-a9NvV0WH.js} +2 -2
- package/dist/{useTermsOfServiceStatus-CBKy10jD.js → useTermsOfServiceStatus-DD0WeUI2.js} +4 -4
- package/dist/{useUpdateLegalEntity-ClwtWsot.js → useUpdateLegalEntity-C8OwKklo.js} +2 -2
- package/dist/{utils-mM6f_wxM.js → utils-DaglygRr.js} +4 -4
- package/dist/{validate-DFKx6bSa.js → validate-C7NHrX-0.js} +2 -2
- package/dist/{validate-CEf7z2pv.js → validate-PZoo-tXo.js} +2 -2
- package/dist/vue/adyen-individual.js +1 -1
- package/dist/vue/adyen-manage-individual.js +1 -1
- package/dist/vue/adyen-terms-of-service.js +1 -1
- package/dist/vue/adyen-transfer-instrument.js +1 -1
- package/dist/{yaml-CSK-WKa1.js → yaml-2GWWWq1l.js} +2 -2
- package/package.json +1 -1
- package/dist/Confirm-CdvwUHlM.js +0 -56
- package/dist/FormNavigation-9Ha5WQ7h.js +0 -145
- package/dist/FormWrapper-CjafzdMl.js +0 -149
- package/dist/MaybeModal-D7t6odRe.js +0 -18
- package/dist/Modal-B4HGO4xa.js +0 -135
- package/dist/PayoutDetailsDropin-B62ePi00.js +0 -914
- package/dist/PayoutDetailsPage-BtEL7Ure.js +0 -57
- package/dist/Spacer-BK3jDget.js +0 -18
- package/dist/StepProgressIndicator-CLum5vhL.js +0 -74
- package/dist/documentUtils-DQ_zpuxK.js +0 -226
- package/dist/dropinUtils-CjsvWZ8W.js +0 -204
- package/dist/mapExistingFile-BE74t9jV.js +0 -25
- package/dist/mapTransferInstrumentToPayoutAccount-Dz9ksLeQ.js +0 -30
- package/dist/omitObscuredFieldsIfUnchanged-aJVqTkBm.js +0 -28
- package/dist/process-field-configurations-DDlO4LEU.js +0 -185
- package/dist/processValidationErrors-BEKEAx0L.js +0 -203
- package/dist/types/api/companyDataSet/useCompanyDataset.d.ts +0 -5
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/formatId.d.ts +0 -3
- package/dist/types-CjUrSQiM.js +0 -45
- package/dist/useToastContext-BHaVFSLN.js +0 -21
- package/dist/utils-B1H_8b1P.js +0 -74
- /package/dist/types/{core/types/AccountHolder.types.d.ts → types/accountHolder.d.ts} +0 -0
- /package/dist/types/{core/models → types/datasets}/country-code.d.ts +0 -0
- /package/dist/types/{core/models → types/datasets}/currency.d.ts +0 -0
- /package/dist/types/{core/models → types/datasets}/province-code.d.ts +0 -0
- /package/dist/types/{core/models → types/datasets}/state-code.d.ts +0 -0
- /package/dist/types/{core/models → types}/errors/form-verification-errors.d.ts +0 -0
- /package/dist/types/{core/models → types}/errors/maintenance-mode-error.d.ts +0 -0
- /package/dist/types/{core/models → types}/errors/remediation-action-context.d.ts +0 -0
- /package/dist/types/{core/models → types}/file.d.ts +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e246fb6d-fefa-4925-8571-19102865b09a", e._sentryDebugIdIdentifier = "sentry-dbid-e246fb6d-fefa-4925-8571-19102865b09a");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useLegalEntity, R as ROOT_LE, ak as useAssociatedLegalEntity, y as LegalEntityType, bz as useCapabilities, L as Loader, U as EntityType, bA as keysOf } from "./StoreProvider-BSkziuJ9.js";
|
|
12
|
-
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./ProviderButton-BKQeyTkZ.js";
|
|
13
|
-
import { P as PayoutDetailsDropin } from "./PayoutDetailsDropin-B62ePi00.js";
|
|
14
|
-
function PayoutDetailsPage({
|
|
15
|
-
transferInstrumentId,
|
|
16
|
-
setTransferInstrumentId,
|
|
17
|
-
taskType,
|
|
18
|
-
openBankingPartnerConfigId,
|
|
19
|
-
onSubmit,
|
|
20
|
-
handleHomeClick
|
|
21
|
-
}) {
|
|
22
|
-
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
23
|
-
const { data: associatedLe, isLoading: associatedLeIsLoading } = useAssociatedLegalEntity(
|
|
24
|
-
rootLe,
|
|
25
|
-
[
|
|
26
|
-
LegalEntityType.SOLE_PROPRIETORSHIP,
|
|
27
|
-
LegalEntityType.TRUST,
|
|
28
|
-
LegalEntityType.UNINCORPORATED_PARTNERSHIP
|
|
29
|
-
]
|
|
30
|
-
);
|
|
31
|
-
const capabilities = useCapabilities();
|
|
32
|
-
const capabilityProblems = useCapabilityProblems();
|
|
33
|
-
if (!rootLe || associatedLeIsLoading) {
|
|
34
|
-
return /* @__PURE__ */ jsx(Loader, {});
|
|
35
|
-
}
|
|
36
|
-
const capabilityNames = capabilities ? keysOf(capabilities) : [];
|
|
37
|
-
const problems = capabilityProblems && transferInstrumentId ? getProblemsForEntity(capabilityProblems, EntityType.BANK_ACCOUNT, transferInstrumentId) : void 0;
|
|
38
|
-
return /* @__PURE__ */ jsx(
|
|
39
|
-
PayoutDetailsDropin,
|
|
40
|
-
{
|
|
41
|
-
taskType,
|
|
42
|
-
currentTransferInstrumentId: transferInstrumentId,
|
|
43
|
-
setCurrentTransferInstrumentId: setTransferInstrumentId,
|
|
44
|
-
legalEntityResponse: rootLe,
|
|
45
|
-
associatedLegalArrangement: associatedLe,
|
|
46
|
-
capabilities: capabilityNames,
|
|
47
|
-
problems,
|
|
48
|
-
onSubmit,
|
|
49
|
-
handleHomeClick,
|
|
50
|
-
navigateBackToTaskList: handleHomeClick,
|
|
51
|
-
openBankingPartnerConfigId
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
PayoutDetailsPage
|
|
57
|
-
};
|
package/dist/Spacer-BK3jDget.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7064bd1d-f9f9-4739-bf39-c1ca091901f9", e._sentryDebugIdIdentifier = "sentry-dbid-7064bd1d-f9f9-4739-bf39-c1ca091901f9");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
const spacer = "adyen-kyc-spacer";
|
|
12
|
-
const styles = {
|
|
13
|
-
spacer
|
|
14
|
-
};
|
|
15
|
-
const Spacer = () => /* @__PURE__ */ jsx("div", { className: styles.spacer });
|
|
16
|
-
export {
|
|
17
|
-
Spacer as S
|
|
18
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "50099cc4-325b-457f-a8bc-bb9c8db2141f", e._sentryDebugIdIdentifier = "sentry-dbid-50099cc4-325b-457f-a8bc-bb9c8db2141f");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import cx from "classnames";
|
|
12
|
-
import { b as useI18nContext, C as Typography, bb as globalStyles } from "./StoreProvider-BSkziuJ9.js";
|
|
13
|
-
const range = (stop, start = 0, step = 1) => Array.from({ length: (stop - start) / step + 1 }, (_, i) => start + i * step);
|
|
14
|
-
const progressBar = "adyen-kyc-progress-bar";
|
|
15
|
-
const progressBarThick = "adyen-kyc-progress-bar-thick";
|
|
16
|
-
const progressStep = "adyen-kyc-progress-step";
|
|
17
|
-
const progressStepActive = "adyen-kyc-progress-step-active";
|
|
18
|
-
const progressBarCircles = "adyen-kyc-progress-bar-circles";
|
|
19
|
-
const styles = {
|
|
20
|
-
progressBar,
|
|
21
|
-
progressBarThick,
|
|
22
|
-
progressStep,
|
|
23
|
-
progressStepActive,
|
|
24
|
-
progressBarCircles
|
|
25
|
-
};
|
|
26
|
-
const shouldHighlight = (active, current, fillBefore) => !fillBefore ? active === current : active >= current;
|
|
27
|
-
const StepProgressIndicator = ({
|
|
28
|
-
activeStepIndex,
|
|
29
|
-
stepsCount,
|
|
30
|
-
fillBefore,
|
|
31
|
-
thick,
|
|
32
|
-
circles
|
|
33
|
-
}) => {
|
|
34
|
-
const { i18n } = useI18nContext();
|
|
35
|
-
if (stepsCount === 0 || stepsCount > 10) {
|
|
36
|
-
return /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get("XOfYSteps", {
|
|
37
|
-
values: { currentStep: activeStepIndex, totalSteps: stepsCount }
|
|
38
|
-
}) });
|
|
39
|
-
}
|
|
40
|
-
return /* @__PURE__ */ jsx(
|
|
41
|
-
"div",
|
|
42
|
-
{
|
|
43
|
-
"aria-label": `Step ${activeStepIndex} of ${stepsCount}`,
|
|
44
|
-
className: styles.progress,
|
|
45
|
-
role: "group",
|
|
46
|
-
children: /* @__PURE__ */ jsx(
|
|
47
|
-
"ol",
|
|
48
|
-
{
|
|
49
|
-
className: cx(styles.progressBar, {
|
|
50
|
-
[styles.progressBarThick]: thick,
|
|
51
|
-
[styles.progressBarCircles]: circles
|
|
52
|
-
}),
|
|
53
|
-
children: range(stepsCount).map((stepNumber) => {
|
|
54
|
-
const isHighlighted = shouldHighlight(activeStepIndex, stepNumber, fillBefore);
|
|
55
|
-
return /* @__PURE__ */ jsx(
|
|
56
|
-
"li",
|
|
57
|
-
{
|
|
58
|
-
"aria-current": isHighlighted ? "step" : void 0,
|
|
59
|
-
className: cx(styles.progressStep, {
|
|
60
|
-
[styles.progressStepActive]: isHighlighted
|
|
61
|
-
}),
|
|
62
|
-
children: /* @__PURE__ */ jsx("span", { className: globalStyles.screenReaderOnly, children: `Step ${stepNumber}: ${stepNumber < activeStepIndex ? "completed" : "not completed"}` })
|
|
63
|
-
},
|
|
64
|
-
stepNumber
|
|
65
|
-
);
|
|
66
|
-
})
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
};
|
|
72
|
-
export {
|
|
73
|
-
StepProgressIndicator as S
|
|
74
|
-
};
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "95ed2966-ae73-4cee-9864-60d799dc7a76", e._sentryDebugIdIdentifier = "sentry-dbid-95ed2966-ae73-4cee-9864-60d799dc7a76");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { b6 as httpPost, b5 as httpDelete, r as httpGet, aI as createLogger, cd as getLocalizedIdDocumentTypeOptions, dk as isNewlyUploadedFile } from "./StoreProvider-BSkziuJ9.js";
|
|
11
|
-
const createDocument = async (context, document, ownerId) => {
|
|
12
|
-
const { baseUrl, rootLegalEntityId } = context;
|
|
13
|
-
return httpPost(
|
|
14
|
-
{
|
|
15
|
-
baseUrl,
|
|
16
|
-
path: `legalEntities/${rootLegalEntityId}/documents/${ownerId}`
|
|
17
|
-
},
|
|
18
|
-
document
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
const deleteDocument$1 = async (context, documentId) => {
|
|
22
|
-
const { baseUrl, rootLegalEntityId } = context;
|
|
23
|
-
return httpDelete({
|
|
24
|
-
baseUrl,
|
|
25
|
-
path: `legalEntities/${rootLegalEntityId}/documents/${documentId}/`
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
const getDocument$1 = async (context, documentId) => {
|
|
29
|
-
const { baseUrl, rootLegalEntityId } = context;
|
|
30
|
-
return httpGet({
|
|
31
|
-
baseUrl,
|
|
32
|
-
path: `legalEntities/${rootLegalEntityId}/documents/${documentId}`
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
const updateDocument = async (context, document, documentId, ownerId) => {
|
|
36
|
-
const { baseUrl, rootLegalEntityId } = context;
|
|
37
|
-
return httpPost(
|
|
38
|
-
{
|
|
39
|
-
baseUrl,
|
|
40
|
-
path: `legalEntities/${rootLegalEntityId}/documents/${documentId}/${ownerId}`
|
|
41
|
-
},
|
|
42
|
-
document
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
const logger = createLogger();
|
|
46
|
-
const documentStore = {};
|
|
47
|
-
const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions();
|
|
48
|
-
const idTypes = idDocumentTypeOptions.map((types) => types.id);
|
|
49
|
-
let getDocumentService;
|
|
50
|
-
let updateDocumentService;
|
|
51
|
-
let createDocumentService;
|
|
52
|
-
let deleteDocumentService;
|
|
53
|
-
const documentApiUtils = (context) => {
|
|
54
|
-
if (!getDocumentService || !updateDocumentService || !createDocumentService || !deleteDocumentService) {
|
|
55
|
-
getDocumentService = (documentId) => getDocument$1(context, documentId);
|
|
56
|
-
updateDocumentService = (document, documentId, ownerId) => updateDocument(context, document, documentId, ownerId);
|
|
57
|
-
createDocumentService = (document, ownerId) => createDocument(context, document, ownerId);
|
|
58
|
-
if (deleteDocument$1) {
|
|
59
|
-
deleteDocumentService = (documentId) => deleteDocument$1(context, documentId);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
fetchDocuments,
|
|
64
|
-
fetchDocument,
|
|
65
|
-
uploadDocuments,
|
|
66
|
-
deleteDocument
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
const fetchDocuments = async (documentDetails, entityId) => {
|
|
70
|
-
if (documentDetails.length === 0) return [];
|
|
71
|
-
const documentPromises = [];
|
|
72
|
-
documentDetails.forEach((documentDetail) => {
|
|
73
|
-
documentPromises.push(fetchDocument(documentDetail));
|
|
74
|
-
});
|
|
75
|
-
const entityDocuments = await Promise.all(documentPromises);
|
|
76
|
-
documentStore[entityId] = [];
|
|
77
|
-
entityDocuments.forEach((document) => {
|
|
78
|
-
var _a;
|
|
79
|
-
const id = (_a = document.owner) == null ? void 0 : _a.id;
|
|
80
|
-
if (id) {
|
|
81
|
-
documentStore[id].push(document);
|
|
82
|
-
} else {
|
|
83
|
-
logger.error("Document has no `owner.id`", document);
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
return documentStore[entityId];
|
|
87
|
-
};
|
|
88
|
-
const fetchDocument = async (documentDetail) => {
|
|
89
|
-
const document = await getDocumentService(documentDetail.id);
|
|
90
|
-
return {
|
|
91
|
-
...document,
|
|
92
|
-
modificationDate: documentDetail.modificationDate
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
const deleteDocument = async (documentId) => deleteDocumentService(documentId);
|
|
96
|
-
const uploadDocuments = async (documents, entityId) => {
|
|
97
|
-
const uploadPromises = [];
|
|
98
|
-
documents.forEach((document) => {
|
|
99
|
-
const existingDocument = getDocument(entityId, document.type);
|
|
100
|
-
if (existingDocument) {
|
|
101
|
-
if (hasDocumentChanged(document, entityId)) {
|
|
102
|
-
uploadPromises.push(updateDocumentService(document, existingDocument.id, entityId));
|
|
103
|
-
}
|
|
104
|
-
} else {
|
|
105
|
-
uploadPromises.push(createDocumentService(document, entityId));
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
const uploadedDocuments = await Promise.all(uploadPromises);
|
|
109
|
-
updateEntityDocuments(uploadedDocuments, entityId);
|
|
110
|
-
return documentStore[entityId];
|
|
111
|
-
};
|
|
112
|
-
const updateEntityDocuments = (uploadedDocuments, entityId) => {
|
|
113
|
-
if (!documentStore[entityId]) documentStore[entityId] = [];
|
|
114
|
-
uploadedDocuments.map(
|
|
115
|
-
(doc) => ({
|
|
116
|
-
...doc,
|
|
117
|
-
modificationDate: (/* @__PURE__ */ new Date()).toISOString()
|
|
118
|
-
})
|
|
119
|
-
).forEach((uploadedDocument) => {
|
|
120
|
-
const existingDocumentIndex = documentStore[entityId].findIndex(
|
|
121
|
-
(document) => document.id === uploadedDocument.id
|
|
122
|
-
);
|
|
123
|
-
if (existingDocumentIndex > -1) {
|
|
124
|
-
documentStore[entityId][existingDocumentIndex] = uploadedDocument;
|
|
125
|
-
} else {
|
|
126
|
-
documentStore[entityId].push(uploadedDocument);
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
|
-
const getDocument = (entityId, documentType) => {
|
|
131
|
-
var _a;
|
|
132
|
-
if (!entityId) {
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
return (_a = documentStore[entityId]) == null ? void 0 : _a.find((document) => document.type === documentType);
|
|
136
|
-
};
|
|
137
|
-
const getIdDocument = (entityId) => {
|
|
138
|
-
var _a;
|
|
139
|
-
return (_a = documentStore[entityId]) == null ? void 0 : _a.find((document) => idTypes.includes(document.type));
|
|
140
|
-
};
|
|
141
|
-
const createDocumentRequest = async ({
|
|
142
|
-
entityId,
|
|
143
|
-
entityType,
|
|
144
|
-
documentType,
|
|
145
|
-
page1,
|
|
146
|
-
page2,
|
|
147
|
-
description,
|
|
148
|
-
existingDocument
|
|
149
|
-
}) => {
|
|
150
|
-
const pagesToUpload = [page1, page2].filter(
|
|
151
|
-
(page) => page !== void 0 && isNewlyUploadedFile(page)
|
|
152
|
-
);
|
|
153
|
-
const [page1ToUpload, page2ToUpload] = pagesToUpload;
|
|
154
|
-
const [encodedPage1, encodedPage2] = await Promise.all(pagesToUpload.map(fileToBase64));
|
|
155
|
-
if (!encodedPage1) {
|
|
156
|
-
if (existingDocument && existingDocument.description !== description) {
|
|
157
|
-
return {
|
|
158
|
-
owner: {
|
|
159
|
-
id: entityId,
|
|
160
|
-
type: entityType
|
|
161
|
-
},
|
|
162
|
-
type: documentType,
|
|
163
|
-
description: description || `Document type: ${documentType}`
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
168
|
-
return {
|
|
169
|
-
owner: {
|
|
170
|
-
id: entityId,
|
|
171
|
-
type: entityType
|
|
172
|
-
},
|
|
173
|
-
type: documentType,
|
|
174
|
-
description: description || `Document type: ${documentType}`,
|
|
175
|
-
attachments: [
|
|
176
|
-
...page1ToUpload && page2ToUpload && encodedPage1 && encodedPage2 ? [
|
|
177
|
-
createAttachment(encodedPage1, page1ToUpload.name, "front"),
|
|
178
|
-
createAttachment(encodedPage2, page2ToUpload.name, "back")
|
|
179
|
-
] : [createAttachment(encodedPage1, page1ToUpload.name)]
|
|
180
|
-
]
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
const createAttachment = (content, pageName, pageType) => ({
|
|
184
|
-
content,
|
|
185
|
-
pageName,
|
|
186
|
-
...pageType && { pageType }
|
|
187
|
-
});
|
|
188
|
-
const hasDocumentChanged = (newDocument, entityId) => {
|
|
189
|
-
const existingDocument = getDocument(entityId, newDocument.type);
|
|
190
|
-
if (existingDocument) {
|
|
191
|
-
return existingDocument.attachments.some(
|
|
192
|
-
(attachment, index) => {
|
|
193
|
-
var _a, _b;
|
|
194
|
-
return attachment.content !== ((_b = (_a = newDocument == null ? void 0 : newDocument.attachments) == null ? void 0 : _a[index]) == null ? void 0 : _b.content);
|
|
195
|
-
}
|
|
196
|
-
) || existingDocument.description !== (newDocument == null ? void 0 : newDocument.description);
|
|
197
|
-
}
|
|
198
|
-
return true;
|
|
199
|
-
};
|
|
200
|
-
const fileToBase64 = (file) => new Promise((resolve, reject) => {
|
|
201
|
-
const reader = new FileReader();
|
|
202
|
-
reader.readAsDataURL(file);
|
|
203
|
-
reader.onload = () => {
|
|
204
|
-
const base64String = reader.result.toString().split(";base64,")[1];
|
|
205
|
-
resolve(base64String);
|
|
206
|
-
};
|
|
207
|
-
reader.onerror = (error) => reject(error);
|
|
208
|
-
});
|
|
209
|
-
const getFileExtention = (fileName) => fileName.split(".").pop();
|
|
210
|
-
const mergeAttachments = (existing, incoming) => {
|
|
211
|
-
if (!(existing == null ? void 0 : existing.length)) return incoming;
|
|
212
|
-
if (!(incoming == null ? void 0 : incoming.length)) return existing;
|
|
213
|
-
const incomingFileTypes = incoming.map((attachment) => attachment.pageType);
|
|
214
|
-
const filteredExisting = existing.filter(
|
|
215
|
-
(attachment) => !incomingFileTypes.includes(attachment.pageType)
|
|
216
|
-
);
|
|
217
|
-
return [...filteredExisting, ...incoming];
|
|
218
|
-
};
|
|
219
|
-
export {
|
|
220
|
-
getFileExtention as a,
|
|
221
|
-
getIdDocument as b,
|
|
222
|
-
createDocumentRequest as c,
|
|
223
|
-
documentApiUtils as d,
|
|
224
|
-
getDocument as g,
|
|
225
|
-
mergeAttachments as m
|
|
226
|
-
};
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "99192c90-6fcb-4a23-96b3-1d56f54b64e8", e._sentryDebugIdIdentifier = "sentry-dbid-99192c90-6fcb-4a23-96b3-1d56f54b64e8");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { useState, useEffect, useMemo } from "preact/hooks";
|
|
11
|
-
import { _ as useAnalyticsContext, aJ as summaryStep, aI as createLogger, df as FormRouterContext } from "./StoreProvider-BSkziuJ9.js";
|
|
12
|
-
import { jsx } from "preact/jsx-runtime";
|
|
13
|
-
const trackNavigation = ({
|
|
14
|
-
userEvents,
|
|
15
|
-
actionType,
|
|
16
|
-
toForm,
|
|
17
|
-
label,
|
|
18
|
-
returnValue,
|
|
19
|
-
additionalTrackingParams
|
|
20
|
-
}) => {
|
|
21
|
-
userEvents.addPageEvent("Clicked button", {
|
|
22
|
-
actionType,
|
|
23
|
-
toPage: toForm,
|
|
24
|
-
label,
|
|
25
|
-
returnValue,
|
|
26
|
-
...additionalTrackingParams
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
const getOpeningStep = (forms, remediationActions) => {
|
|
30
|
-
var _a;
|
|
31
|
-
if (remediationActions && Object.keys(remediationActions).length > 0) {
|
|
32
|
-
const allRemediationActions = Object.values(remediationActions).flat().filter((rem) => {
|
|
33
|
-
var _a2;
|
|
34
|
-
return ((_a2 = rem.forms) == null ? void 0 : _a2.length) > 0;
|
|
35
|
-
});
|
|
36
|
-
if (allRemediationActions.length === 1 && ((_a = allRemediationActions[0]) == null ? void 0 : _a.forms.length) === 1) {
|
|
37
|
-
const form = forms.find((form2) => {
|
|
38
|
-
var _a2;
|
|
39
|
-
return (form2 == null ? void 0 : form2.formId) === ((_a2 = allRemediationActions[0]) == null ? void 0 : _a2.forms[0]);
|
|
40
|
-
});
|
|
41
|
-
if (form) return form;
|
|
42
|
-
}
|
|
43
|
-
return forms[forms.length - 1];
|
|
44
|
-
}
|
|
45
|
-
return forms[0];
|
|
46
|
-
};
|
|
47
|
-
const useFormComposer = ({
|
|
48
|
-
problems,
|
|
49
|
-
navigationTrackingParams,
|
|
50
|
-
forms,
|
|
51
|
-
externalBackClick,
|
|
52
|
-
onSubmit,
|
|
53
|
-
triggerValidation
|
|
54
|
-
}) => {
|
|
55
|
-
var _a;
|
|
56
|
-
const userEvents = useAnalyticsContext();
|
|
57
|
-
const [shouldValidate, setShouldValidate] = useState(false);
|
|
58
|
-
const [activeForm, setActiveForm] = useState(forms[0]);
|
|
59
|
-
const isFormSummaryStep = (form) => form.formId === summaryStep.formId;
|
|
60
|
-
const getFormIndex = (formId) => forms.findIndex((form) => form.formId === formId);
|
|
61
|
-
const currentStep = getFormIndex(activeForm.formId);
|
|
62
|
-
const totalSteps = forms.length;
|
|
63
|
-
const isFinalStep = currentStep === totalSteps - 1;
|
|
64
|
-
const isFirstStep = currentStep === 0;
|
|
65
|
-
const firstStepId = (_a = forms[0]) == null ? void 0 : _a.formId;
|
|
66
|
-
useEffect(() => {
|
|
67
|
-
setActiveForm(
|
|
68
|
-
(activeForm2) => forms.find(({ formId }) => formId === activeForm2.formId) ?? activeForm2
|
|
69
|
-
);
|
|
70
|
-
}, [forms]);
|
|
71
|
-
useEffect(() => {
|
|
72
|
-
userEvents.updateSharedEventProperties({ page: activeForm.formName });
|
|
73
|
-
}, [activeForm.formName]);
|
|
74
|
-
useEffect(() => {
|
|
75
|
-
const openingStep = getOpeningStep(forms, problems == null ? void 0 : problems.remediationActions);
|
|
76
|
-
setActiveForm(openingStep);
|
|
77
|
-
}, [firstStepId, problems == null ? void 0 : problems.remediationActions]);
|
|
78
|
-
const gotoFormByFormIndex = (nextFormIndex) => {
|
|
79
|
-
setActiveForm(forms[nextFormIndex]);
|
|
80
|
-
};
|
|
81
|
-
const trackSubmitClick = () => {
|
|
82
|
-
trackNavigation({
|
|
83
|
-
userEvents,
|
|
84
|
-
actionType: "submit",
|
|
85
|
-
label: "submit",
|
|
86
|
-
additionalTrackingParams: navigationTrackingParams
|
|
87
|
-
});
|
|
88
|
-
};
|
|
89
|
-
const handleNextClick = async () => {
|
|
90
|
-
if (isFormSummaryStep(activeForm)) {
|
|
91
|
-
trackSubmitClick();
|
|
92
|
-
onSubmit();
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
const isAsyncValidationValid = await (triggerValidation == null ? void 0 : triggerValidation(activeForm.formId)) ?? true;
|
|
96
|
-
if (!activeForm.isValid || !isAsyncValidationValid) {
|
|
97
|
-
setShouldValidate(true);
|
|
98
|
-
trackNavigation({
|
|
99
|
-
userEvents,
|
|
100
|
-
actionType: "next",
|
|
101
|
-
label: "next",
|
|
102
|
-
returnValue: "validation error",
|
|
103
|
-
additionalTrackingParams: navigationTrackingParams
|
|
104
|
-
});
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
if (isFinalStep) {
|
|
108
|
-
trackSubmitClick();
|
|
109
|
-
onSubmit();
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
setShouldValidate(false);
|
|
113
|
-
const toFormIndex = currentStep + 1;
|
|
114
|
-
gotoFormByFormIndex(toFormIndex);
|
|
115
|
-
trackNavigation({
|
|
116
|
-
userEvents,
|
|
117
|
-
actionType: "next",
|
|
118
|
-
toForm: forms[toFormIndex].formName,
|
|
119
|
-
label: "next",
|
|
120
|
-
returnValue: "success",
|
|
121
|
-
additionalTrackingParams: navigationTrackingParams
|
|
122
|
-
});
|
|
123
|
-
};
|
|
124
|
-
const handleBackClick = () => {
|
|
125
|
-
if (currentStep > 0) {
|
|
126
|
-
const toForm = forms[currentStep - 1];
|
|
127
|
-
setActiveForm(toForm);
|
|
128
|
-
trackNavigation({
|
|
129
|
-
userEvents,
|
|
130
|
-
actionType: "back",
|
|
131
|
-
toForm: toForm.formName,
|
|
132
|
-
label: "back",
|
|
133
|
-
additionalTrackingParams: navigationTrackingParams
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
const backClickHandler = isFirstStep ? externalBackClick : handleBackClick;
|
|
138
|
-
return {
|
|
139
|
-
handleBackClick: backClickHandler,
|
|
140
|
-
handleNextClick,
|
|
141
|
-
gotoFormByFormIndex,
|
|
142
|
-
activeForm,
|
|
143
|
-
shouldValidate,
|
|
144
|
-
setShouldValidate,
|
|
145
|
-
steps: { current: currentStep, total: totalSteps }
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
const logger = createLogger();
|
|
149
|
-
function FormRouterContextProvider({ children, forms, setFormIndex }) {
|
|
150
|
-
const contextValue = useMemo(
|
|
151
|
-
() => ({
|
|
152
|
-
setFormIndex,
|
|
153
|
-
goToFormByFieldName: (fieldName) => {
|
|
154
|
-
if (fieldName === "idDocument") {
|
|
155
|
-
fieldName = "idVerificationMethod";
|
|
156
|
-
}
|
|
157
|
-
const formIndex = forms.findIndex(
|
|
158
|
-
(form) => {
|
|
159
|
-
var _a;
|
|
160
|
-
return (_a = form == null ? void 0 : form.fields) == null ? void 0 : _a.some((field) => field === fieldName);
|
|
161
|
-
}
|
|
162
|
-
);
|
|
163
|
-
if (formIndex > -1) {
|
|
164
|
-
setFormIndex(formIndex);
|
|
165
|
-
} else {
|
|
166
|
-
logger.error("No form was found to have that field so form navigation failed.");
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}),
|
|
170
|
-
[forms, setFormIndex]
|
|
171
|
-
);
|
|
172
|
-
return /* @__PURE__ */ jsx(FormRouterContext.Provider, { value: contextValue, children });
|
|
173
|
-
}
|
|
174
|
-
const getRequiredForms = (forms, requiredFields, optionalFields, skipSummary) => {
|
|
175
|
-
const requiredForms = Object.values(forms).filter(({ formId }) => {
|
|
176
|
-
if (requiredFields || optionalFields) {
|
|
177
|
-
return Boolean(requiredFields == null ? void 0 : requiredFields[formId]) || Boolean(optionalFields == null ? void 0 : optionalFields[formId]);
|
|
178
|
-
}
|
|
179
|
-
return true;
|
|
180
|
-
});
|
|
181
|
-
if (skipSummary) {
|
|
182
|
-
return requiredForms;
|
|
183
|
-
}
|
|
184
|
-
return [...requiredForms, summaryStep];
|
|
185
|
-
};
|
|
186
|
-
const addValidityToForms = (forms, formValidity, problems) => forms.map(({ formId, formName, formHeading, formDescription, fields }) => {
|
|
187
|
-
var _a;
|
|
188
|
-
return {
|
|
189
|
-
formId,
|
|
190
|
-
formName,
|
|
191
|
-
formHeading,
|
|
192
|
-
formDescription,
|
|
193
|
-
fields,
|
|
194
|
-
isValid: (formValidity == null ? void 0 : formValidity[formId]) ?? false,
|
|
195
|
-
hasServerValidationErrors: Boolean((_a = problems == null ? void 0 : problems.validationErrors) == null ? void 0 : _a[formId])
|
|
196
|
-
};
|
|
197
|
-
});
|
|
198
|
-
export {
|
|
199
|
-
FormRouterContextProvider as F,
|
|
200
|
-
addValidityToForms as a,
|
|
201
|
-
getRequiredForms as g,
|
|
202
|
-
trackNavigation as t,
|
|
203
|
-
useFormComposer as u
|
|
204
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6d264e6b-e1e3-46cf-88ff-50692e916dbb", e._sentryDebugIdIdentifier = "sentry-dbid-6d264e6b-e1e3-46cf-88ff-50692e916dbb");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
const getPage = ({ attachments }, pageType) => {
|
|
11
|
-
if (!attachments) throw Error("Document has no attachments");
|
|
12
|
-
const attachment = pageType ? attachments.find((attach) => attach.pageType === pageType) : attachments[0];
|
|
13
|
-
if (!attachment) throw Error(`Attachment not found${pageType ? ` with type '${pageType}'` : ""}`);
|
|
14
|
-
return attachment;
|
|
15
|
-
};
|
|
16
|
-
const getPageName = (document, pageType) => getPage(document, pageType).pageName ?? "";
|
|
17
|
-
const mapExistingFile = (name) => ({
|
|
18
|
-
name,
|
|
19
|
-
existing: true
|
|
20
|
-
});
|
|
21
|
-
export {
|
|
22
|
-
getPage as a,
|
|
23
|
-
getPageName as g,
|
|
24
|
-
mapExistingFile as m
|
|
25
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "52f212df-f140-4eb7-a58d-9fc4dc16bc82", e._sentryDebugIdIdentifier = "sentry-dbid-52f212df-f140-4eb7-a58d-9fc4dc16bc82");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { p as useApiContext, q as useQuery, w as skipToken, r as httpGet, bH as payoutComponentKeyMapping } from "./StoreProvider-BSkziuJ9.js";
|
|
11
|
-
import { m as mapWith } from "./utils-B1H_8b1P.js";
|
|
12
|
-
const getTransferInstrument = async (legalEntityId, baseUrl, transferInstrumentId) => {
|
|
13
|
-
return httpGet({
|
|
14
|
-
baseUrl,
|
|
15
|
-
path: `legalEntities/${legalEntityId}/transferInstruments/${transferInstrumentId}`
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
const useTransferInstrument = (transferInstrumentId, options) => {
|
|
19
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
20
|
-
return useQuery({
|
|
21
|
-
queryKey: transferInstrumentId === skipToken ? [] : ["transferInstrument", transferInstrumentId],
|
|
22
|
-
queryFn: transferInstrumentId === skipToken ? skipToken : () => getTransferInstrument(rootLegalEntityId.value, baseUrl.value, transferInstrumentId),
|
|
23
|
-
...options
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
const mapTransferInstrumentToPayoutAccount = (transferInstrument) => mapWith(transferInstrument, payoutComponentKeyMapping);
|
|
27
|
-
export {
|
|
28
|
-
mapTransferInstrumentToPayoutAccount as m,
|
|
29
|
-
useTransferInstrument as u
|
|
30
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "964b44ec-6cca-4552-ac21-2aeecddf242d", e._sentryDebugIdIdentifier = "sentry-dbid-964b44ec-6cca-4552-ac21-2aeecddf242d");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { b0 as cloneObject, dm as isValueObscured } from "./StoreProvider-BSkziuJ9.js";
|
|
11
|
-
import { g as getProp, d as deleteProp } from "./utils-B1H_8b1P.js";
|
|
12
|
-
const omitObscuredFieldsIfUnchanged = (obscuredFields, dataSubmitted, savedData) => {
|
|
13
|
-
if (!dataSubmitted) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
const filtered = cloneObject(dataSubmitted);
|
|
17
|
-
obscuredFields.forEach((obscuredField) => {
|
|
18
|
-
const prevValue = getProp(savedData, obscuredField);
|
|
19
|
-
const newValue = getProp(dataSubmitted, obscuredField);
|
|
20
|
-
if (prevValue === newValue && isValueObscured(newValue)) {
|
|
21
|
-
deleteProp(obscuredField, filtered);
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
return filtered;
|
|
25
|
-
};
|
|
26
|
-
export {
|
|
27
|
-
omitObscuredFieldsIfUnchanged as o
|
|
28
|
-
};
|