@adyen/kyc-components 3.81.0-beta.6 → 3.82.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-TLpFCTa-.js → AcceptTermsOfServiceComponent-BcmaOZn_.js} +36 -10
- package/dist/{AccountSetupRejected-RmlaR74O.js → AccountSetupRejected-DY2Dr6NS.js} +6 -4
- package/dist/Address-DrcGzzbw.js +1076 -0
- package/dist/Alert-QIcYF1qD.js +231 -0
- package/dist/{Avatar-VJ5kzlyX.js → Avatar-DOeLDY6M.js} +2 -2
- package/dist/BusinessDetailsDropin-BGsHimRA.js +5088 -0
- package/dist/BusinessFinancingComponent-aYQz8gE4.js +45 -0
- package/dist/{BusinessFinancingDropin-DqqJh7oI.js → BusinessFinancingDropin-S1KF-NyW.js} +43 -20
- package/dist/BusinessFinancingPage-D2OV4IqT.js +40 -0
- package/dist/{BusinessTypeSelectionPage-0gAiU8-k.js → BusinessTypeSelectionPage-mJaPKHWj.js} +9 -5
- package/dist/Card-D3VCh4en.js +145 -0
- package/dist/Confirm-Dj-igSqL.js +64 -0
- package/dist/{ContractViewer-B2LwC3wV.js → ContractViewer-Byp71k2e.js} +33 -38
- package/dist/CountryField-B2dh1VXh.js +864 -0
- package/dist/CreateIndividualComponent-D6r8z9C9.js +72 -0
- package/dist/CreateTransferInstrumentComponent-Dpj7MNQS.js +67 -0
- package/dist/Currency-BAGjlBuR.js +238 -0
- package/dist/{CustomerSupport-CF1sYaZe.js → CustomerSupport-CYHYkHRf.js} +10 -6
- package/dist/{DebugModal-BfzyAxTL.js → DebugModal-B_xZdbHr.js} +8 -5
- package/dist/{DecisionMakerDetailsPage-DQzvrvjd.js → DecisionMakerDetailsPage-DMLnRAqQ.js} +11 -4
- package/dist/{DecisionMakers-CeBpj8p9.js → DecisionMakers-CG-_wD3e.js} +224 -96
- package/dist/Dropzone-CWLgt-EE.js +218 -0
- package/dist/{EmbeddedStatus-Da-R7LDJ.js → EmbeddedStatus-BIhXDQHZ.js} +4 -4
- package/dist/{EndStateLayout-B89OYlLx.js → EndStateLayout-C80dFrcg.js} +2 -2
- package/dist/{FormFlow-BQK-SrGL.js → FormFlow-Df3CEE-c.js} +8 -2
- package/dist/FormNavigation-UiyNK4Uw.js +162 -0
- package/dist/{IndividualOnfidoDropin-C1xH6itq.js → IndividualOnfidoDropin-CJLptmj_.js} +2796 -64
- package/dist/InputDate-uj7AgGvk.js +43 -0
- package/dist/InputGroup-WBfGDV5F.js +32 -0
- package/dist/InputText-Ds8RrvJq.js +161 -0
- package/dist/{Introduction-CDB0G3bY.js → Introduction-BWWadECu.js} +58 -4
- package/dist/LegalRepresentativeDetailsPage-BYUoJ0JW.js +61 -0
- package/dist/Link-Dc3z0YyP.js +35 -0
- package/dist/ManageIndividualComponent-DQlUh6YC.js +47 -0
- package/dist/ManageTermsOfServiceComponent-B5WnQ4n1.js +47 -0
- package/dist/{ManageTransferInstrumentComponent-D-CFPJJW.js → ManageTransferInstrumentComponent-CL8KJIXM.js} +25 -4
- package/dist/MaskedInput-CTOcOcUH.js +799 -0
- package/dist/MaybeModal-BBBahxa3.js +25 -0
- package/dist/Modal-Da5go-OS.js +136 -0
- package/dist/{OnboardingDropinComponent-USEEyykb.js → OnboardingDropinComponent-BYFTAjkC.js} +200 -41
- package/dist/PayoutDetailsDropin-UBEJcM6I.js +3694 -0
- package/dist/RadioGroup-DwMTx-4B.js +143 -0
- package/dist/RegistrationAddress-CcHFAuWw.js +2334 -0
- package/dist/{Review-C7kbmI2-.js → Review-B8HKLTsc.js} +8 -4
- package/dist/{RootBusinessDetailsPage-Oh-X5OJ6.js → RootBusinessDetailsPage-2rHbq8sK.js} +65 -44
- package/dist/RootIndividualDetailsPage-BYEh8Vlw.js +77 -0
- package/dist/{SignPCIComponent-3Ab8dWV4.js → SignPCIComponent-DZcOu0WP.js} +17 -8
- package/dist/{SingpassSelection-Bfra20iP.js → SingpassSelection-D45perGt.js} +6 -6
- package/dist/SoleProprietorshipPage-D4dn0vkS.js +50 -0
- package/dist/{SourceOfFundsPage-DsakBcHW.js → SourceOfFundsPage-By-6cY89.js} +46 -24
- package/dist/Spacer-BK3jDget.js +18 -0
- package/dist/StepProgressIndicator-Jd8MiZZp.js +78 -0
- package/dist/StoreProvider-B_tFiIdr.js +7072 -0
- package/dist/StructuredList-DaepaiVE.js +38 -0
- package/dist/{TaskItemStatus-CYI7n3qN.js → TaskItemStatus-Ccga7-2c.js} +4 -3
- package/dist/{TaskStatusIndicator-DSICKMZ9.js → TaskStatusIndicator-CGp1MHRK.js} +2 -2
- package/dist/TaxInformationField-qCHTQShR.js +3062 -0
- package/dist/{TaxReportingDropin-tYdGTVCv.js → TaxReportingDropin-sxuLHfT9.js} +25 -9
- package/dist/{TileGroup-CmLJ5fv6.js → TileGroup-B9jBcBJV.js} +4 -2
- package/dist/{TrustDetailsPage-DJ7sLu2B.js → TrustDetailsPage-pWuCF62_.js} +506 -19
- package/dist/TrustMemberCompanyPage-Blbw7uAa.js +60 -0
- package/dist/TrustMemberIndividualPage-CkqYu9NE.js +66 -0
- package/dist/UnincorporatedPartnershipIndividualPage-Dd_YBotT.js +66 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-Dna06cxg.js +64 -0
- package/dist/{ViewVerificationStatusComponent-XmGpFS4Q.js → ViewVerificationStatusComponent-Dnc6ucMj.js} +4 -3
- package/dist/adyen-business-financing.js +33 -22
- package/dist/adyen-individual.js +36 -27
- package/dist/adyen-kyc-components.js +28 -15
- package/dist/adyen-manage-individual.js +25 -26
- package/dist/adyen-manage-terms-of-service.js +26 -27
- package/dist/adyen-manage-transfer-instruments.js +40 -42
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service.js +41 -38
- package/dist/adyen-transfer-instrument.js +38 -29
- package/dist/adyen-verification-status.js +44 -36
- package/dist/analytics-D2q0iFsS.js +61 -0
- package/dist/{bafinUtils-C_5C_Fk9.js → bafinUtils-BmLu7dPk.js} +164 -10
- package/dist/basePatterns-BwdnMQxI.js +15 -0
- package/dist/bg-BG-CW9c658c.js +13 -0
- package/dist/bg-BG-CZ8v3rdy.js +30 -0
- package/dist/{bg-BG-Dlzl9Szn.js → bg-BG-D5192UVe.js} +1 -2
- package/dist/{bg-BG-NMIts2sa.js → bg-BG-QC5irNEG.js} +2 -4
- package/dist/commonValidators-DKV_Zthp.js +24 -0
- package/dist/{cs-CZ-BkyFDlAU.js → cs-CZ-DOqH0WeT.js} +1 -2
- package/dist/cs-CZ-Dx6momCa.js +30 -0
- package/dist/cs-CZ-dU9fnQ1g.js +13 -0
- package/dist/{cs-CZ-Csr_35T-.js → cs-CZ-t297LwYw.js} +2 -4
- package/dist/currency-BGwQyxBo.js +36 -0
- package/dist/{da-DK-B5KNtXL8.js → da-DK-B45X2VaJ.js} +1 -2
- package/dist/da-DK-BJ7aTPir.js +13 -0
- package/dist/{da-DK-Dm8o1giq.js → da-DK-BoQic3Gy.js} +2 -4
- package/dist/da-DK-D4H69PX3.js +30 -0
- package/dist/de-DE-C78RLE2G.js +13 -0
- package/dist/{de-DE-BA9tcpNQ.js → de-DE-CWvgMDqU.js} +1 -2
- package/dist/{de-DE-DMFaycio.js → de-DE-Dwagawx1.js} +2 -4
- package/dist/de-DE-wp5-H-ov.js +30 -0
- package/dist/dropinUtils-Bs4XZJuG.js +192 -0
- package/dist/el-GR-BZRKurtr.js +13 -0
- package/dist/{el-GR-DIhHT2q_.js → el-GR-C3rkK_oc.js} +1 -2
- package/dist/el-GR-CK2heqPJ.js +30 -0
- package/dist/{el-GR-CGeBAkDN.js → el-GR-CxwhV-TX.js} +2 -4
- package/dist/emitEvent-CzZf80Am.js +28 -0
- package/dist/{en-US-DX4NHkX-.js → en-US-BbAzROHT.js} +2 -4
- package/dist/{en-US-TrwIHFh-.js → en-US-CAm3meB1.js} +1 -2
- package/dist/{en-US-SbE0c1gn.js → en-US-DIdQJky-.js} +1 -2
- package/dist/en-US.instructions-Ddr7AO05.js +22 -0
- package/dist/{es-ES-pXHx3ODy.js → es-ES-Bsoco8Fj.js} +2 -4
- package/dist/es-ES-BtUSEzkE.js +13 -0
- package/dist/{es-ES-RXwbiHjS.js → es-ES-DKCCgVF8.js} +1 -2
- package/dist/es-ES-Ds3-DtqZ.js +30 -0
- package/dist/et-EE-BCnK305R.js +13 -0
- package/dist/{et-EE-ZssIqWkO.js → et-EE-Bc6ioJRG.js} +1 -2
- package/dist/et-EE-Co-8akjV.js +30 -0
- package/dist/{et-EE-QLVnr6Vl.js → et-EE-DdGlUpaQ.js} +2 -4
- package/dist/{fi-FI-DT351N-G.js → fi-FI-ClnsYt3L.js} +2 -4
- package/dist/fi-FI-Cvar63RH.js +13 -0
- package/dist/fi-FI-DPNeTsJS.js +30 -0
- package/dist/{fi-FI-DmiggQEL.js → fi-FI-Hhku9Lmc.js} +1 -2
- package/dist/fieldConfigurations-Yf8yD64w.js +458 -0
- package/dist/form-rules-DhbF2mY4.js +13 -0
- package/dist/fr-FR-B5543Fe-.js +13 -0
- package/dist/{fr-FR-N5wYE2BZ.js → fr-FR-BYuKsZIb.js} +1 -2
- package/dist/{fr-FR-BNXXNUX_.js → fr-FR-CJI0bIig.js} +2 -4
- package/dist/fr-FR-ChmNQciP.js +30 -0
- package/dist/getName-CNY8xRgy.js +41 -0
- package/dist/{hasDataChanged-CzXG96AD.js → hasDataChanged-BaS61ojo.js} +2 -2
- package/dist/{hr-HR-B8AZ4eHJ.js → hr-HR-C0yWizOX.js} +2 -4
- package/dist/{hr-HR-5iwKtfgh.js → hr-HR-CPO5Yw2B.js} +1 -2
- package/dist/hr-HR-DqC8Cgs6.js +30 -0
- package/dist/hr-HR-ZreFlbK9.js +13 -0
- package/dist/hu-HU-B3BihdGh.js +13 -0
- package/dist/hu-HU-BOanVlKb.js +30 -0
- package/dist/{hu-HU-Aq1LsWah.js → hu-HU-mo_0ULJG.js} +1 -2
- package/dist/{hu-HU-DRi6Dz9U.js → hu-HU-wnSie9tz.js} +2 -4
- package/dist/iframeWidget-wJ62Bpmz.js +234 -0
- package/dist/{payout-verification-instant-BIcnFP-p.js → instant-verification-Dvvkyfmp.js} +3 -3
- package/dist/isEmpty-DyzV_vaf.js +23 -0
- package/dist/{it-IT-BeYbInCQ.js → it-IT-BeC2Y1F8.js} +2 -4
- package/dist/it-IT-Dd6xGSe-.js +13 -0
- package/dist/{it-IT-8DEagvb2.js → it-IT-Nl57jui-.js} +1 -2
- package/dist/it-IT-eCrTB65E.js +30 -0
- package/dist/ja-JP-BJljbFIZ.js +30 -0
- package/dist/{ja-JP-BhS-_dIx.js → ja-JP-CbgaW99b.js} +2 -2
- package/dist/{ja-JP-BGAJQs1g.js → ja-JP-D3oQAH7z.js} +1 -2
- package/dist/{ja-JP-C1OQ16fo.js → ja-JP-YoU7mNrK.js} +2 -4
- package/dist/ja-JP-iTbqSPNL.js +13 -0
- package/dist/keys-BpNgnAsD.js +23 -0
- package/dist/{localizeDateString-Jy9XkTyZ.js → localizeDateString-CEnsnB3Q.js} +2 -2
- package/dist/{lt-LT-HZOWQKZT.js → lt-LT-CVasDmF3.js} +1 -2
- package/dist/lt-LT-DE-4IXNG.js +13 -0
- package/dist/{lt-LT-_MzAcXJo.js → lt-LT-DIe4cKlu.js} +2 -4
- package/dist/lt-LT-DckQGgoT.js +30 -0
- package/dist/lv-LV-CeivEZms.js +13 -0
- package/dist/lv-LV-DP9oRTFv.js +30 -0
- package/dist/{lv-LV-CRhXAjn6.js → lv-LV-DXgW5zWl.js} +2 -4
- package/dist/{lv-LV-F-Z4lDCV.js → lv-LV-Sbsv8-nD.js} +1 -2
- package/dist/{payout-verification-manual-DH9-DdlZ.js → manual-verification-BvZWqA00.js} +3 -3
- package/dist/mapExistingFile-BphSM_zL.js +231 -0
- package/dist/mapScriptLocalization-BgHu6D6K.js +72 -0
- package/dist/mapTransferInstrumentToPayoutAccount-C2sNhjfY.js +30 -0
- package/dist/{nl-NL-C-xUU2N3.js → nl-NL-BHkRnVrj.js} +1 -2
- package/dist/{nl-NL-Dbx0ZmI7.js → nl-NL-Cysslsh2.js} +2 -4
- package/dist/nl-NL-D2QKudfh.js +30 -0
- package/dist/nl-NL-DVENFpd5.js +13 -0
- package/dist/no-NO-C_snYWBc.js +30 -0
- package/dist/no-NO-Dn2UkdoI.js +13 -0
- package/dist/{no-NO-47ncaBZY.js → no-NO-kaAdT9B8.js} +1 -2
- package/dist/{no-NO-C0sfkp82.js → no-NO-zSnPtrDi.js} +2 -4
- package/dist/pl-PL-CQ6c2Qz_.js +30 -0
- package/dist/{pl-PL-CZLzkboH.js → pl-PL-DD8JN4Qf.js} +1 -2
- package/dist/pl-PL-DFAzuceF.js +13 -0
- package/dist/{pl-PL-DAPGaxWi.js → pl-PL-UB5J5JcB.js} +2 -4
- package/dist/pt-PT-C-hbNnsB.js +30 -0
- package/dist/{pt-PT-BY9rcwcF.js → pt-PT-CjsyP_OK.js} +2 -4
- package/dist/{pt-PT-CN4ws8N7.js → pt-PT-Xm-pm3mb.js} +1 -2
- package/dist/pt-PT-_o5xgnxS.js +13 -0
- package/dist/{resolveEnvironment-BbdiVBJB.js → resolveEnvironment-DWnAnjxd.js} +3 -3
- package/dist/ro-RO-BrTWk1Ui.js +30 -0
- package/dist/{ro-RO-RylOvc5g.js → ro-RO-C3m6aJVP.js} +1 -2
- package/dist/{ro-RO-DJLWmWZ4.js → ro-RO-C8yYXQc_.js} +2 -4
- package/dist/ro-RO-D7c_Rj8V.js +13 -0
- package/dist/{rules-Cqfw8M_0.js → rules-V2n1q9wP.js} +5 -2
- package/dist/sk-SK-BBSuh2fA.js +13 -0
- package/dist/sk-SK-BTFtoPmI.js +30 -0
- package/dist/{sk-SK-BfJKbtGy.js → sk-SK-BVc-vNQm.js} +1 -2
- package/dist/{sk-SK-B7o3L57C.js → sk-SK-DbOE9C6n.js} +2 -4
- package/dist/sl-SI-BLTuWNf5.js +13 -0
- package/dist/sl-SI-BhVTSmhQ.js +30 -0
- package/dist/{sl-SI-C8CMAkD0.js → sl-SI-Br0UEUPL.js} +2 -4
- package/dist/{sl-SI-DklUFzaY.js → sl-SI-D_rqR0D7.js} +1 -2
- package/dist/style.css +3272 -3254
- package/dist/styles-CLV89_hH.js +3272 -3254
- package/dist/sv-SE-66rqYTxi.js +30 -0
- package/dist/{sv-SE-qduyDIzY.js → sv-SE-B3zoXMuH.js} +1 -2
- package/dist/sv-SE-BUfESAQK.js +13 -0
- package/dist/{sv-SE-Bwh0wKFk.js → sv-SE-BtXmvxx4.js} +2 -4
- package/dist/translation-CPyYrNAr.js +472 -0
- package/dist/types/api/industryCodes/industryCodes.types.d.ts +2 -0
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +6 -0
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +3 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +0 -9
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +0 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +6 -0
- package/dist/types/components/Business/forms/rules.d.ts +1 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +0 -1
- package/dist/types/components/EmbeddedDropins/AcceptTermsOfServiceComponent/AcceptTermsOfServiceComponent.d.ts +4 -3
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +4 -0
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +0 -5
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/Trust.d.ts +1 -0
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +1 -2
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +2 -1
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +2 -1
- package/dist/types/components/ui/atoms/ActionsMenu/ActionsMenu.d.ts +2 -1
- package/dist/types/components/ui/atoms/Button/Button.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +2 -1
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +0 -14
- package/dist/types/components/ui/atoms/RadioWithLabel/RadioWithLabel.d.ts +2 -1
- package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -0
- package/dist/types/components/ui/atoms/StepProgressIndicator/StepProgressIndicator.d.ts +2 -1
- package/dist/types/components/ui/atoms/StructuredList/StructuredList.d.ts +2 -1
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +0 -12
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +3 -2
- package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +1 -1
- package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +2 -1
- package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +2 -1
- package/dist/types/components/ui/molecules/InputEmail/InputEmail.d.ts +2 -1
- package/dist/types/components/ui/molecules/InputGroup/InputGroup.d.ts +2 -1
- package/dist/types/components/ui/molecules/InputTelephone/InputTelephone.d.ts +2 -1
- package/dist/types/components/ui/molecules/InputText/InputText.d.ts +2 -0
- package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +0 -1
- package/dist/types/components/ui/molecules/Tabs/Tabs.d.ts +1 -1
- package/dist/types/context/StateContext/types.d.ts +1 -1
- package/dist/types/core/models/api/accountIdentification.d.ts +5 -4
- package/dist/types/core/models/api/contracts.d.ts +1 -1
- package/dist/types/core/process-field-configurations.d.ts +14 -3
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +1 -5
- package/dist/types/embeds/emitEvent.d.ts +14 -0
- package/dist/types/embeds/individual/adyen-individual.types.d.ts +2 -2
- package/dist/types/embeds/manage-individual/AdyenManageIndividual.d.ts +1 -1
- package/dist/types/embeds/manage-individual/adyen-manage-individual.types.d.ts +1 -1
- package/dist/types/embeds/manage-terms-of-service/AdyenManageTermsOfService.d.ts +1 -1
- package/dist/types/embeds/manage-terms-of-service/adyen-manage-terms-of-service.types.d.ts +1 -1
- package/dist/types/embeds/manage-transfer-instruments/AdyenManageTransferInstrument.d.ts +3 -4
- package/dist/types/embeds/manage-transfer-instruments/adyen-manage-transfer-instruments.types.d.ts +3 -4
- package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +4 -3
- package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +2 -2
- package/dist/types/embeds/verification-status/adyen-verification-status.types.d.ts +3 -3
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +2 -1
- package/dist/types/hooks/introduction/useShouldShowIntroduction.d.ts +2 -1
- package/dist/types/language/utils.d.ts +1 -1
- package/dist/types/utils/addLinkedFields.d.ts +7 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/formUtils.d.ts +1 -1
- package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -1
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
- package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +5 -0
- package/dist/types/utils/translation.d.ts +6 -0
- package/dist/types-CAznNNSI.js +160 -0
- package/dist/types-D1xSH_ap.js +74 -0
- package/dist/types-czQuzOK4.js +64 -0
- package/dist/useAssociatedLegalEntity-zrvFkm6w.js +33 -0
- package/dist/useDataset-UxGyu2Za.js +120 -0
- package/dist/useForm-Dah8AZ3S.js +1694 -0
- package/dist/useFormContext-beqGS11A.js +23 -0
- package/dist/useGlobalData-C9KOnjRc.js +205 -0
- package/dist/{useMultiForm-D12QQ8Fr.js → useMultiForm-4axf9sa3.js} +4 -2
- package/dist/{useOnboardingStatus-C77iTj4t.js → useOnboardingStatus-B-G3ygsd.js} +2 -2
- package/dist/useScenarios-Bs-K4CKb.js +46 -0
- package/dist/{useTermsOfServiceStatus-ClHR-D8J.js → useTermsOfServiceStatus-BsBOTabo.js} +2 -2
- package/dist/useToastContext-BA6TVroR.js +51 -0
- package/dist/useUnincorporatedPartnershipMembers-DHPQPPps.js +99 -0
- package/dist/utils-7TgDVOvi.js +29 -0
- package/dist/{utils-7HIGSast.js → utils-C_6T21UY.js} +46 -4
- package/dist/utils-DNSfZiio.js +70 -0
- package/dist/utils-DxPqN-F5.js +159 -0
- package/dist/{validate-Cyc-okDY.js → validate-BCgpU6PK.js} +2 -2
- package/dist/validate-CD3D7QeQ.js +382 -0
- package/dist/validate-nbcWPtZJ.js +605 -0
- package/dist/validationError-CInDfoP_.js +86 -0
- package/package.json +44 -45
- package/dist/BusinessDetailsDropin-Dnze2MWp.js +0 -2136
- package/dist/BusinessFinancingComponent-BWGtnZ2l.js +0 -38
- package/dist/BusinessFinancingPage-00BXk692.js +0 -35
- package/dist/CreateIndividualComponent-JqyPXwi_.js +0 -64
- package/dist/CreateTransferInstrumentComponent-D7dPoBCI.js +0 -55
- package/dist/LegalRepresentativeDetailsPage-BzKsuqNS.js +0 -55
- package/dist/ManageIndividualComponent-BpE7jV1g.js +0 -42
- package/dist/ManageTermsOfServiceComponent-D2KTbyRY.js +0 -40
- package/dist/RootIndividualDetailsPage-DF6aSCDc.js +0 -71
- package/dist/SoleProprietorshipPage-Czj2qS1n.js +0 -44
- package/dist/StoreProvider-phu7r9_0.js +0 -31920
- package/dist/TrustMemberCompanyPage-DBmq70wc.js +0 -54
- package/dist/TrustMemberIndividualPage-QCSz7dt3.js +0 -60
- package/dist/UnincorporatedPartnershipIndividualPage-Ctks0l_r.js +0 -60
- package/dist/UnincorporatedPartnershipMemberCompanyPage-DP_iAiCM.js +0 -57
- package/dist/VerificationErrorAlert-CnWfh-Mq.js +0 -77
- package/dist/bg-BG-BvSUDgGF.js +0 -13
- package/dist/cs-CZ-y4mvq4Lv.js +0 -13
- package/dist/da-DK-qgQOVjDp.js +0 -13
- package/dist/de-DE-pSdsxBpQ.js +0 -13
- package/dist/el-GR-Bvjk5Sw8.js +0 -13
- package/dist/en-US-Bq2Twy6x.js +0 -54
- package/dist/es-ES-Dy1uR2H_.js +0 -13
- package/dist/et-EE-d9V24rcf.js +0 -13
- package/dist/fi-FI-B0fnAFV2.js +0 -13
- package/dist/fr-FR-BoKzVp2q.js +0 -13
- package/dist/getFieldsWithExistingData-Br7bX6SQ.js +0 -22
- package/dist/hr-HR-CF0AHQzi.js +0 -13
- package/dist/hu-HU-CSPhOvLC.js +0 -13
- package/dist/it-IT-BH-eqIKH.js +0 -13
- package/dist/ja-JP-B3yqM_FM.js +0 -13
- package/dist/lt-LT-Lzl_Cbw-.js +0 -13
- package/dist/lv-LV-y00wN1pj.js +0 -13
- package/dist/mapFinancialReportsToFinancialInformation-BDTfiDYF.js +0 -66
- package/dist/mapScriptLocalization-H2Re3k5X.js +0 -35
- package/dist/nl-NL-DmnFXAQC.js +0 -13
- package/dist/no-NO-DbvFfP96.js +0 -13
- package/dist/pl-PL--mmxopYA.js +0 -13
- package/dist/pt-PT-BVzXBFp7.js +0 -13
- package/dist/ro-RO-Cdmevo9A.js +0 -13
- package/dist/ru-RU-FZb2upqh.js +0 -13
- package/dist/sk-SK-nfeuTcY5.js +0 -13
- package/dist/sl-SI-DUTZDqkP.js +0 -13
- package/dist/sv-SE-BTx2XKAp.js +0 -13
- package/dist/useUpdateLegalEntity-J-L5lHm7.js +0 -57
- package/dist/validate-B_03afGP.js +0 -40
- package/dist/zh-CN-wUb4MmTZ.js +0 -13
- package/dist/zh-TW-DNTXHLKa.js +0 -13
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
4
|
+
let e2 = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n2 = new e2.Error().stack;
|
|
5
|
+
n2 && (e2._sentryDebugIds = e2._sentryDebugIds || {}, e2._sentryDebugIds[n2] = "59559849-c21d-49b7-bc27-be9e1eeb11d7", e2._sentryDebugIdIdentifier = "sentry-dbid-59559849-c21d-49b7-bc27-be9e1eeb11d7");
|
|
6
|
+
} catch (e2) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { createElement, isValidElement, cloneElement, Children, Fragment, useContext } from "preact/compat";
|
|
11
|
+
import { aI as warnOnce, aJ as getI18n, aK as getDefaults, aL as isString, aM as warn, aN as isObject, aO as I18nContext } from "./StoreProvider-B_tFiIdr.js";
|
|
12
|
+
const __variableDynamicImportRuntimeHelper = (glob$1, path$13, segs) => {
|
|
13
|
+
const v = glob$1[path$13];
|
|
14
|
+
if (v) return typeof v === "function" ? v() : Promise.resolve(v);
|
|
15
|
+
return new Promise((_, reject) => {
|
|
16
|
+
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + path$13 + (path$13.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : ""))));
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
function getDefaultExportFromCjs(x) {
|
|
20
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
21
|
+
}
|
|
22
|
+
var voidElements;
|
|
23
|
+
var hasRequiredVoidElements;
|
|
24
|
+
function requireVoidElements() {
|
|
25
|
+
if (hasRequiredVoidElements) return voidElements;
|
|
26
|
+
hasRequiredVoidElements = 1;
|
|
27
|
+
voidElements = {
|
|
28
|
+
"area": true,
|
|
29
|
+
"base": true,
|
|
30
|
+
"br": true,
|
|
31
|
+
"col": true,
|
|
32
|
+
"embed": true,
|
|
33
|
+
"hr": true,
|
|
34
|
+
"img": true,
|
|
35
|
+
"input": true,
|
|
36
|
+
"link": true,
|
|
37
|
+
"meta": true,
|
|
38
|
+
"param": true,
|
|
39
|
+
"source": true,
|
|
40
|
+
"track": true,
|
|
41
|
+
"wbr": true
|
|
42
|
+
};
|
|
43
|
+
return voidElements;
|
|
44
|
+
}
|
|
45
|
+
var voidElementsExports = requireVoidElements();
|
|
46
|
+
const e = /* @__PURE__ */ getDefaultExportFromCjs(voidElementsExports);
|
|
47
|
+
var t = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
|
|
48
|
+
function n(n2) {
|
|
49
|
+
var r2 = { type: "tag", name: "", voidElement: false, attrs: {}, children: [] }, i2 = n2.match(/<\/?([^\s]+?)[/\s>]/);
|
|
50
|
+
if (i2 && (r2.name = i2[1], (e[i2[1]] || "/" === n2.charAt(n2.length - 2)) && (r2.voidElement = true), r2.name.startsWith("!--"))) {
|
|
51
|
+
var s2 = n2.indexOf("-->");
|
|
52
|
+
return { type: "comment", comment: -1 !== s2 ? n2.slice(4, s2) : "" };
|
|
53
|
+
}
|
|
54
|
+
for (var a2 = new RegExp(t), c2 = null; null !== (c2 = a2.exec(n2)); ) if (c2[0].trim()) if (c2[1]) {
|
|
55
|
+
var o = c2[1].trim(), l = [o, ""];
|
|
56
|
+
o.indexOf("=") > -1 && (l = o.split("=")), r2.attrs[l[0]] = l[1], a2.lastIndex--;
|
|
57
|
+
} else c2[2] && (r2.attrs[c2[2]] = c2[3].trim().substring(1, c2[3].length - 1));
|
|
58
|
+
return r2;
|
|
59
|
+
}
|
|
60
|
+
var r = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, i = /^\s*$/, s = /* @__PURE__ */ Object.create(null);
|
|
61
|
+
function a(e2, t2) {
|
|
62
|
+
switch (t2.type) {
|
|
63
|
+
case "text":
|
|
64
|
+
return e2 + t2.content;
|
|
65
|
+
case "tag":
|
|
66
|
+
return e2 += "<" + t2.name + (t2.attrs ? (function(e3) {
|
|
67
|
+
var t3 = [];
|
|
68
|
+
for (var n2 in e3) t3.push(n2 + '="' + e3[n2] + '"');
|
|
69
|
+
return t3.length ? " " + t3.join(" ") : "";
|
|
70
|
+
})(t2.attrs) : "") + (t2.voidElement ? "/>" : ">"), t2.voidElement ? e2 : e2 + t2.children.reduce(a, "") + "</" + t2.name + ">";
|
|
71
|
+
case "comment":
|
|
72
|
+
return e2 + "<!--" + t2.comment + "-->";
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
var c = { parse: function(e2, t2) {
|
|
76
|
+
t2 || (t2 = {}), t2.components || (t2.components = s);
|
|
77
|
+
var a2, c2 = [], o = [], l = -1, m = false;
|
|
78
|
+
if (0 !== e2.indexOf("<")) {
|
|
79
|
+
var u = e2.indexOf("<");
|
|
80
|
+
c2.push({ type: "text", content: -1 === u ? e2 : e2.substring(0, u) });
|
|
81
|
+
}
|
|
82
|
+
return e2.replace(r, function(r2, s2) {
|
|
83
|
+
if (m) {
|
|
84
|
+
if (r2 !== "</" + a2.name + ">") return;
|
|
85
|
+
m = false;
|
|
86
|
+
}
|
|
87
|
+
var u2, f = "/" !== r2.charAt(1), h = r2.startsWith("<!--"), p = s2 + r2.length, d = e2.charAt(p);
|
|
88
|
+
if (h) {
|
|
89
|
+
var v = n(r2);
|
|
90
|
+
return l < 0 ? (c2.push(v), c2) : ((u2 = o[l]).children.push(v), c2);
|
|
91
|
+
}
|
|
92
|
+
if (f && (l++, "tag" === (a2 = n(r2)).type && t2.components[a2.name] && (a2.type = "component", m = true), a2.voidElement || m || !d || "<" === d || a2.children.push({ type: "text", content: e2.slice(p, e2.indexOf("<", p)) }), 0 === l && c2.push(a2), (u2 = o[l - 1]) && u2.children.push(a2), o[l] = a2), (!f || a2.voidElement) && (l > -1 && (a2.voidElement || a2.name === r2.slice(2, -1)) && (l--, a2 = -1 === l ? c2 : o[l]), !m && "<" !== d && d)) {
|
|
93
|
+
u2 = -1 === l ? c2 : o[l].children;
|
|
94
|
+
var x = e2.indexOf("<", p), g = e2.slice(p, -1 === x ? void 0 : x);
|
|
95
|
+
i.test(g) && (g = " "), (x > -1 && l + u2.length >= 0 || " " !== g) && u2.push({ type: "text", content: g });
|
|
96
|
+
}
|
|
97
|
+
}), c2;
|
|
98
|
+
}, stringify: function(e2) {
|
|
99
|
+
return e2.reduce(function(e3, t2) {
|
|
100
|
+
return e3 + a("", t2);
|
|
101
|
+
}, "");
|
|
102
|
+
} };
|
|
103
|
+
const hasChildren = (node, checkLength) => {
|
|
104
|
+
if (!node) return false;
|
|
105
|
+
const base = node.props?.children ?? node.children;
|
|
106
|
+
if (checkLength) return base.length > 0;
|
|
107
|
+
return !!base;
|
|
108
|
+
};
|
|
109
|
+
const getChildren = (node) => {
|
|
110
|
+
if (!node) return [];
|
|
111
|
+
const children = node.props?.children ?? node.children;
|
|
112
|
+
return node.props?.i18nIsDynamicList ? getAsArray(children) : children;
|
|
113
|
+
};
|
|
114
|
+
const hasValidReactChildren = (children) => Array.isArray(children) && children.every(isValidElement);
|
|
115
|
+
const getAsArray = (data) => Array.isArray(data) ? data : [data];
|
|
116
|
+
const mergeProps = (source, target) => {
|
|
117
|
+
const newTarget = {
|
|
118
|
+
...target
|
|
119
|
+
};
|
|
120
|
+
newTarget.props = Object.assign(source.props, target.props);
|
|
121
|
+
return newTarget;
|
|
122
|
+
};
|
|
123
|
+
const nodesToString = (children, i18nOptions, i18n, i18nKey) => {
|
|
124
|
+
if (!children) return "";
|
|
125
|
+
let stringNode = "";
|
|
126
|
+
const childrenArray = getAsArray(children);
|
|
127
|
+
const keepArray = i18nOptions?.transSupportBasicHtmlNodes ? i18nOptions.transKeepBasicHtmlNodesFor ?? [] : [];
|
|
128
|
+
childrenArray.forEach((child, childIndex) => {
|
|
129
|
+
if (isString(child)) {
|
|
130
|
+
stringNode += `${child}`;
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (isValidElement(child)) {
|
|
134
|
+
const {
|
|
135
|
+
props,
|
|
136
|
+
type
|
|
137
|
+
} = child;
|
|
138
|
+
const childPropsCount = Object.keys(props).length;
|
|
139
|
+
const shouldKeepChild = keepArray.indexOf(type) > -1;
|
|
140
|
+
const childChildren = props.children;
|
|
141
|
+
if (!childChildren && shouldKeepChild && !childPropsCount) {
|
|
142
|
+
stringNode += `<${type}/>`;
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
if (!childChildren && (!shouldKeepChild || childPropsCount) || props.i18nIsDynamicList) {
|
|
146
|
+
stringNode += `<${childIndex}></${childIndex}>`;
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (shouldKeepChild && childPropsCount === 1 && isString(childChildren)) {
|
|
150
|
+
stringNode += `<${type}>${childChildren}</${type}>`;
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const content = nodesToString(childChildren, i18nOptions, i18n, i18nKey);
|
|
154
|
+
stringNode += `<${childIndex}>${content}</${childIndex}>`;
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
if (child === null) {
|
|
158
|
+
warn(i18n, "TRANS_NULL_VALUE", `Passed in a null value as child`, {
|
|
159
|
+
i18nKey
|
|
160
|
+
});
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
if (isObject(child)) {
|
|
164
|
+
const {
|
|
165
|
+
format,
|
|
166
|
+
...clone
|
|
167
|
+
} = child;
|
|
168
|
+
const keys = Object.keys(clone);
|
|
169
|
+
if (keys.length === 1) {
|
|
170
|
+
const value = format ? `${keys[0]}, ${format}` : keys[0];
|
|
171
|
+
stringNode += `{{${value}}}`;
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
warn(i18n, "TRANS_INVALID_OBJ", `Invalid child - Object should only have keys {{ value, format }} (format is optional).`, {
|
|
175
|
+
i18nKey,
|
|
176
|
+
child
|
|
177
|
+
});
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
warn(i18n, "TRANS_INVALID_VAR", `Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`, {
|
|
181
|
+
i18nKey,
|
|
182
|
+
child
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
return stringNode;
|
|
186
|
+
};
|
|
187
|
+
const renderNodes = (children, knownComponentsMap, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) => {
|
|
188
|
+
if (targetString === "") return [];
|
|
189
|
+
const keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];
|
|
190
|
+
const emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.map((keep) => `<${keep}`).join("|")).test(targetString);
|
|
191
|
+
if (!children && !knownComponentsMap && !emptyChildrenButNeedsHandling && !shouldUnescape) return [targetString];
|
|
192
|
+
const data = knownComponentsMap ?? {};
|
|
193
|
+
const getData = (childs) => {
|
|
194
|
+
const childrenArray = getAsArray(childs);
|
|
195
|
+
childrenArray.forEach((child) => {
|
|
196
|
+
if (isString(child)) return;
|
|
197
|
+
if (hasChildren(child)) getData(getChildren(child));
|
|
198
|
+
else if (isObject(child) && !isValidElement(child)) Object.assign(data, child);
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
getData(children);
|
|
202
|
+
const ast = c.parse(`<0>${targetString}</0>`);
|
|
203
|
+
const opts = {
|
|
204
|
+
...data,
|
|
205
|
+
...combinedTOpts
|
|
206
|
+
};
|
|
207
|
+
const renderInner = (child, node, rootReactNode) => {
|
|
208
|
+
const childs = getChildren(child);
|
|
209
|
+
const mappedChildren = mapAST(childs, node.children, rootReactNode);
|
|
210
|
+
return hasValidReactChildren(childs) && mappedChildren.length === 0 || child.props?.i18nIsDynamicList ? childs : mappedChildren;
|
|
211
|
+
};
|
|
212
|
+
const pushTranslatedJSX = (child, inner, mem, i2, isVoid) => {
|
|
213
|
+
if (child.dummy) {
|
|
214
|
+
child.children = inner;
|
|
215
|
+
mem.push(cloneElement(child, {
|
|
216
|
+
key: i2
|
|
217
|
+
}, isVoid ? void 0 : inner));
|
|
218
|
+
} else {
|
|
219
|
+
mem.push(...Children.map([child], (c2) => {
|
|
220
|
+
const props = {
|
|
221
|
+
...c2.props
|
|
222
|
+
};
|
|
223
|
+
delete props.i18nIsDynamicList;
|
|
224
|
+
return createElement(c2.type, {
|
|
225
|
+
...props,
|
|
226
|
+
key: i2,
|
|
227
|
+
ref: c2.props.ref ?? c2.ref
|
|
228
|
+
}, isVoid ? null : inner);
|
|
229
|
+
}));
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
const mapAST = (reactNode, astNode, rootReactNode) => {
|
|
233
|
+
const reactNodes = getAsArray(reactNode);
|
|
234
|
+
const astNodes = getAsArray(astNode);
|
|
235
|
+
return astNodes.reduce((mem, node, i2) => {
|
|
236
|
+
const translationContent = node.children?.[0]?.content && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);
|
|
237
|
+
if (node.type === "tag") {
|
|
238
|
+
let tmp = reactNodes[parseInt(node.name, 10)];
|
|
239
|
+
if (!tmp && knownComponentsMap) tmp = knownComponentsMap[node.name];
|
|
240
|
+
if (rootReactNode.length === 1 && !tmp) tmp = rootReactNode[0][node.name];
|
|
241
|
+
if (!tmp) tmp = {};
|
|
242
|
+
const child = Object.keys(node.attrs).length !== 0 ? mergeProps({
|
|
243
|
+
props: node.attrs
|
|
244
|
+
}, tmp) : tmp;
|
|
245
|
+
const isElement = isValidElement(child);
|
|
246
|
+
const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
|
|
247
|
+
const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && isObject(child) && child.dummy && !isElement;
|
|
248
|
+
const isKnownComponent = isObject(knownComponentsMap) && Object.hasOwnProperty.call(knownComponentsMap, node.name);
|
|
249
|
+
if (isString(child)) {
|
|
250
|
+
const value = i18n.services.interpolator.interpolate(child, opts, i18n.language);
|
|
251
|
+
mem.push(value);
|
|
252
|
+
} else if (hasChildren(child) || isValidTranslationWithChildren) {
|
|
253
|
+
const inner = renderInner(child, node, rootReactNode);
|
|
254
|
+
pushTranslatedJSX(child, inner, mem, i2);
|
|
255
|
+
} else if (isEmptyTransWithHTML) {
|
|
256
|
+
const inner = mapAST(reactNodes, node.children, rootReactNode);
|
|
257
|
+
pushTranslatedJSX(child, inner, mem, i2);
|
|
258
|
+
} else if (Number.isNaN(parseFloat(node.name))) {
|
|
259
|
+
if (isKnownComponent) {
|
|
260
|
+
const inner = renderInner(child, node, rootReactNode);
|
|
261
|
+
pushTranslatedJSX(child, inner, mem, i2, node.voidElement);
|
|
262
|
+
} else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {
|
|
263
|
+
if (node.voidElement) {
|
|
264
|
+
mem.push(createElement(node.name, {
|
|
265
|
+
key: `${node.name}-${i2}`
|
|
266
|
+
}));
|
|
267
|
+
} else {
|
|
268
|
+
const inner = mapAST(reactNodes, node.children, rootReactNode);
|
|
269
|
+
mem.push(createElement(node.name, {
|
|
270
|
+
key: `${node.name}-${i2}`
|
|
271
|
+
}, inner));
|
|
272
|
+
}
|
|
273
|
+
} else if (node.voidElement) {
|
|
274
|
+
mem.push(`<${node.name} />`);
|
|
275
|
+
} else {
|
|
276
|
+
const inner = mapAST(reactNodes, node.children, rootReactNode);
|
|
277
|
+
mem.push(`<${node.name}>${inner}</${node.name}>`);
|
|
278
|
+
}
|
|
279
|
+
} else if (isObject(child) && !isElement) {
|
|
280
|
+
const content = node.children[0] ? translationContent : null;
|
|
281
|
+
if (content) mem.push(content);
|
|
282
|
+
} else {
|
|
283
|
+
pushTranslatedJSX(child, translationContent, mem, i2, node.children.length !== 1 || !translationContent);
|
|
284
|
+
}
|
|
285
|
+
} else if (node.type === "text") {
|
|
286
|
+
const wrapTextNodes = i18nOptions.transWrapTextNodes;
|
|
287
|
+
const content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);
|
|
288
|
+
if (wrapTextNodes) {
|
|
289
|
+
mem.push(createElement(wrapTextNodes, {
|
|
290
|
+
key: `${node.name}-${i2}`
|
|
291
|
+
}, content));
|
|
292
|
+
} else {
|
|
293
|
+
mem.push(content);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return mem;
|
|
297
|
+
}, []);
|
|
298
|
+
};
|
|
299
|
+
const result = mapAST([{
|
|
300
|
+
dummy: true,
|
|
301
|
+
children: children || []
|
|
302
|
+
}], ast, getAsArray(children || []));
|
|
303
|
+
return getChildren(result[0]);
|
|
304
|
+
};
|
|
305
|
+
const fixComponentProps = (component, index, translation) => {
|
|
306
|
+
const componentKey = component.key || index;
|
|
307
|
+
const comp = cloneElement(component, {
|
|
308
|
+
key: componentKey
|
|
309
|
+
});
|
|
310
|
+
if (!comp.props || !comp.props.children || translation.indexOf(`${index}/>`) < 0 && translation.indexOf(`${index} />`) < 0) {
|
|
311
|
+
return comp;
|
|
312
|
+
}
|
|
313
|
+
function Componentized() {
|
|
314
|
+
return createElement(Fragment, null, comp);
|
|
315
|
+
}
|
|
316
|
+
return createElement(Componentized, {
|
|
317
|
+
key: componentKey
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
const generateArrayComponents = (components, translation) => components.map((c2, index) => fixComponentProps(c2, index, translation));
|
|
321
|
+
const generateObjectComponents = (components, translation) => {
|
|
322
|
+
const componentMap = {};
|
|
323
|
+
Object.keys(components).forEach((c2) => {
|
|
324
|
+
Object.assign(componentMap, {
|
|
325
|
+
[c2]: fixComponentProps(components[c2], c2, translation)
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
return componentMap;
|
|
329
|
+
};
|
|
330
|
+
const generateComponents = (components, translation, i18n, i18nKey) => {
|
|
331
|
+
if (!components) return null;
|
|
332
|
+
if (Array.isArray(components)) {
|
|
333
|
+
return generateArrayComponents(components, translation);
|
|
334
|
+
}
|
|
335
|
+
if (isObject(components)) {
|
|
336
|
+
return generateObjectComponents(components, translation);
|
|
337
|
+
}
|
|
338
|
+
warnOnce(i18n, "TRANS_INVALID_COMPONENTS", `<Trans /> "components" prop expects an object or array`, {
|
|
339
|
+
i18nKey
|
|
340
|
+
});
|
|
341
|
+
return null;
|
|
342
|
+
};
|
|
343
|
+
const isComponentsMap = (object) => {
|
|
344
|
+
if (!isObject(object)) return false;
|
|
345
|
+
if (Array.isArray(object)) return false;
|
|
346
|
+
return Object.keys(object).reduce((acc, key) => acc && Number.isNaN(Number.parseFloat(key)), true);
|
|
347
|
+
};
|
|
348
|
+
function Trans$2({
|
|
349
|
+
children,
|
|
350
|
+
count,
|
|
351
|
+
parent,
|
|
352
|
+
i18nKey,
|
|
353
|
+
context,
|
|
354
|
+
tOptions = {},
|
|
355
|
+
values,
|
|
356
|
+
defaults,
|
|
357
|
+
components,
|
|
358
|
+
ns,
|
|
359
|
+
i18n: i18nFromProps,
|
|
360
|
+
t: tFromProps,
|
|
361
|
+
shouldUnescape,
|
|
362
|
+
...additionalProps
|
|
363
|
+
}) {
|
|
364
|
+
const i18n = i18nFromProps || getI18n();
|
|
365
|
+
if (!i18n) {
|
|
366
|
+
warnOnce(i18n, "NO_I18NEXT_INSTANCE", `Trans: You need to pass in an i18next instance using i18nextReactModule`, {
|
|
367
|
+
i18nKey
|
|
368
|
+
});
|
|
369
|
+
return children;
|
|
370
|
+
}
|
|
371
|
+
const t2 = tFromProps || i18n.t.bind(i18n) || ((k) => k);
|
|
372
|
+
const reactI18nextOptions = {
|
|
373
|
+
...getDefaults(),
|
|
374
|
+
...i18n.options?.react
|
|
375
|
+
};
|
|
376
|
+
let namespaces = ns || t2.ns || i18n.options?.defaultNS;
|
|
377
|
+
namespaces = isString(namespaces) ? [namespaces] : namespaces || ["translation"];
|
|
378
|
+
const nodeAsString = nodesToString(children, reactI18nextOptions, i18n, i18nKey);
|
|
379
|
+
const defaultValue = defaults || nodeAsString || reactI18nextOptions.transEmptyNodeValue || i18nKey;
|
|
380
|
+
const {
|
|
381
|
+
hashTransKey
|
|
382
|
+
} = reactI18nextOptions;
|
|
383
|
+
const key = i18nKey || (hashTransKey ? hashTransKey(nodeAsString || defaultValue) : nodeAsString || defaultValue);
|
|
384
|
+
if (i18n.options?.interpolation?.defaultVariables) {
|
|
385
|
+
values = values && Object.keys(values).length > 0 ? {
|
|
386
|
+
...values,
|
|
387
|
+
...i18n.options.interpolation.defaultVariables
|
|
388
|
+
} : {
|
|
389
|
+
...i18n.options.interpolation.defaultVariables
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
const interpolationOverride = values || count !== void 0 && !i18n.options?.interpolation?.alwaysFormat || !children ? tOptions.interpolation : {
|
|
393
|
+
interpolation: {
|
|
394
|
+
...tOptions.interpolation,
|
|
395
|
+
prefix: "#$?",
|
|
396
|
+
suffix: "?$#"
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
const combinedTOpts = {
|
|
400
|
+
...tOptions,
|
|
401
|
+
context: context || tOptions.context,
|
|
402
|
+
count,
|
|
403
|
+
...values,
|
|
404
|
+
...interpolationOverride,
|
|
405
|
+
defaultValue,
|
|
406
|
+
ns: namespaces
|
|
407
|
+
};
|
|
408
|
+
const translation = key ? t2(key, combinedTOpts) : defaultValue;
|
|
409
|
+
const generatedComponents = generateComponents(components, translation, i18n, i18nKey);
|
|
410
|
+
let indexedChildren = generatedComponents || children;
|
|
411
|
+
let componentsMap = null;
|
|
412
|
+
if (isComponentsMap(generatedComponents)) {
|
|
413
|
+
componentsMap = generatedComponents;
|
|
414
|
+
indexedChildren = children;
|
|
415
|
+
}
|
|
416
|
+
const content = renderNodes(indexedChildren, componentsMap, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);
|
|
417
|
+
const useAsParent = parent ?? reactI18nextOptions.defaultTransParent;
|
|
418
|
+
return useAsParent ? createElement(useAsParent, additionalProps, content) : content;
|
|
419
|
+
}
|
|
420
|
+
function Trans$1({
|
|
421
|
+
children,
|
|
422
|
+
count,
|
|
423
|
+
parent,
|
|
424
|
+
i18nKey,
|
|
425
|
+
context,
|
|
426
|
+
tOptions = {},
|
|
427
|
+
values,
|
|
428
|
+
defaults,
|
|
429
|
+
components,
|
|
430
|
+
ns,
|
|
431
|
+
i18n: i18nFromProps,
|
|
432
|
+
t: tFromProps,
|
|
433
|
+
shouldUnescape,
|
|
434
|
+
...additionalProps
|
|
435
|
+
}) {
|
|
436
|
+
const {
|
|
437
|
+
i18n: i18nFromContext,
|
|
438
|
+
defaultNS: defaultNSFromContext
|
|
439
|
+
} = useContext(I18nContext) || {};
|
|
440
|
+
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
|
441
|
+
const t2 = tFromProps || i18n?.t.bind(i18n);
|
|
442
|
+
return Trans$2({
|
|
443
|
+
children,
|
|
444
|
+
count,
|
|
445
|
+
parent,
|
|
446
|
+
i18nKey,
|
|
447
|
+
context,
|
|
448
|
+
tOptions,
|
|
449
|
+
values,
|
|
450
|
+
defaults,
|
|
451
|
+
components,
|
|
452
|
+
ns: ns || t2?.ns || defaultNSFromContext || i18n?.options?.defaultNS,
|
|
453
|
+
i18n,
|
|
454
|
+
t: tFromProps,
|
|
455
|
+
shouldUnescape,
|
|
456
|
+
...additionalProps
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
const Trans = Trans$1;
|
|
460
|
+
const addResourceBundles = (i18n, language, resourceDetails) => {
|
|
461
|
+
resourceDetails.forEach(async (resourceDetail) => {
|
|
462
|
+
const { ns, importFn } = resourceDetail;
|
|
463
|
+
if (i18n.hasResourceBundle(language, ns)) return;
|
|
464
|
+
const namespaceFile = (await importFn()).default;
|
|
465
|
+
i18n.addResourceBundle(language, ns, namespaceFile);
|
|
466
|
+
});
|
|
467
|
+
};
|
|
468
|
+
export {
|
|
469
|
+
Trans as T,
|
|
470
|
+
__variableDynamicImportRuntimeHelper as _,
|
|
471
|
+
addResourceBundles as a
|
|
472
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { QueryOptions } from '../types';
|
|
2
|
+
import type { IndustryCodesResponse } from './industryCodes.types';
|
|
3
|
+
export type BusinessLineType = 'acquiring' | 'issuing' | 'banking';
|
|
4
|
+
export type QueryKeyIndustryCodes = ['industryCodes', BusinessLineType];
|
|
5
|
+
export declare const fetchIndustryCodes: (legalEntityId: string, baseUrl: string, businessLineType: BusinessLineType) => Promise<IndustryCodesResponse>;
|
|
6
|
+
export declare const useIndustryCodes: (businessLineType: BusinessLineType, options?: QueryOptions<IndustryCodesResponse>) => import("@tanstack/react-query").UseQueryResult<IndustryCodesResponse, Error>;
|
|
@@ -16,6 +16,7 @@ import type { QueryKeySourceOfFundsTypes } from './datasets/useSourceOfFundsType
|
|
|
16
16
|
import type { QueryKeyDocument } from './documents/useDocument';
|
|
17
17
|
import type { QueryKeyIdNowProviderIdentificationStatus, QueryKeyIdNowProviderStartIdentification } from './idNowProvider/useIdNowProvider';
|
|
18
18
|
import type { QueryKeyIdVerificationToken } from './idVerificationProviders/useIdVerificationToken';
|
|
19
|
+
import type { QueryKeyIndustryCodes } from './industryCodes/useIndustryCodes';
|
|
19
20
|
import type { QueryKeyLegalEntity } from './legalEntity/useLegalEntity';
|
|
20
21
|
import type { QueryKeyOnboardingStatus } from './onboardingStatus/useOnboardingStatus';
|
|
21
22
|
import type { QueryKeyOpenIdAuthorizationLink } from './openId/useOpenIdAuthorizationLink';
|
|
@@ -36,7 +37,7 @@ import type { QueryKeyTransferInstruments } from './transferInstruments/useTrans
|
|
|
36
37
|
import type { QueryKeyAnalyticsSession } from './uiAnalytics/useAnalyticsSession';
|
|
37
38
|
import type { QueryKeyValidatePhoneNumber } from './validation/useValidatePhoneNumber';
|
|
38
39
|
type SkippedQuery = [];
|
|
39
|
-
export type QueryKey = QueryKeyAcceptedTermsOfService | QueryKeyAddressCleanse | QueryKeyAnalyticsSession | QueryKeyBankVerificationProviders | QueryKeyBusinessLines | QueryKeyCheckAsAService | QueryKeyCompanyDataset | QueryKeyCompanySearch | QueryKeyCompanySelection | QueryKeyDocument | QueryKeyIdNowProviderIdentificationStatus | QueryKeyIdNowProviderStartIdentification | QueryKeyIdVerificationToken | QueryKeyLegalEntity | QueryKeyLegalForms | QueryKeyNaceCodes | QueryKeyOnboardingStatus | QueryKeyOpenIdAuthorizationLink | QueryKeyPciQuestionnaireList | QueryKeyPciStatus | QueryKeyPciTemplate | QueryKeyProvidersStatus | QueryKeyRetrieveAddress | QueryKeyScenarios | QueryKeySearchAddress | QueryKeySourceOfFundsTypes | QueryKeySupportedCountries | QueryKeyTaskStatus | QueryKeyTaskTypes | QueryKeyTaxClassification | QueryKeyTermsOfService | QueryKeyTermsOfServiceAcceptanceInfos | QueryKeyTermsOfServiceStatus | QueryKeyTransferInstrument | QueryKeyTransferInstruments | QueryKeyValidatePhoneNumber | QueryKeyVerifyTin | QueryKeyVersionConfiguration | SkippedQuery;
|
|
40
|
+
export type QueryKey = QueryKeyAcceptedTermsOfService | QueryKeyAddressCleanse | QueryKeyAnalyticsSession | QueryKeyBankVerificationProviders | QueryKeyBusinessLines | QueryKeyCheckAsAService | QueryKeyCompanyDataset | QueryKeyCompanySearch | QueryKeyCompanySelection | QueryKeyDocument | QueryKeyIdNowProviderIdentificationStatus | QueryKeyIdNowProviderStartIdentification | QueryKeyIdVerificationToken | QueryKeyIndustryCodes | QueryKeyLegalEntity | QueryKeyLegalForms | QueryKeyNaceCodes | QueryKeyOnboardingStatus | QueryKeyOpenIdAuthorizationLink | QueryKeyPciQuestionnaireList | QueryKeyPciStatus | QueryKeyPciTemplate | QueryKeyProvidersStatus | QueryKeyRetrieveAddress | QueryKeyScenarios | QueryKeySearchAddress | QueryKeySourceOfFundsTypes | QueryKeySupportedCountries | QueryKeyTaskStatus | QueryKeyTaskTypes | QueryKeyTaxClassification | QueryKeyTermsOfService | QueryKeyTermsOfServiceAcceptanceInfos | QueryKeyTermsOfServiceStatus | QueryKeyTransferInstrument | QueryKeyTransferInstruments | QueryKeyValidatePhoneNumber | QueryKeyVerifyTin | QueryKeyVersionConfiguration | SkippedQuery;
|
|
40
41
|
declare module '@tanstack/react-query' {
|
|
41
42
|
interface Register {
|
|
42
43
|
queryKey: QueryKey;
|
|
@@ -26,4 +26,5 @@ export declare const payoutSteps: {
|
|
|
26
26
|
readonly fields: (keyof AccountVerificationSchema)[];
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
+
export type PayoutAccountDocumentsFormId = typeof payoutSteps.payoutAccountDocuments.formId;
|
|
29
30
|
export declare function PayoutDetails(props: PayoutDetailsProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, FunctionComponent } from 'preact/compat';
|
|
2
2
|
import type { TranslationKey } from '../../../../../types';
|
|
3
3
|
import type { VerificationMethod } from './types';
|
|
4
4
|
interface PayoutVerificationMethodMetadata {
|
|
5
5
|
name: TranslationKey;
|
|
6
6
|
subtitle: TranslationKey;
|
|
7
7
|
description: TranslationKey;
|
|
8
|
-
|
|
8
|
+
svgImport?: FunctionComponent<ComponentProps<'svg'>>;
|
|
9
9
|
provider?: {
|
|
10
10
|
name: string;
|
|
11
|
-
|
|
11
|
+
svgImport?: FunctionComponent<ComponentProps<'svg'>>;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
export declare const makePayoutVerificationMethodsMetadata: (instantVerificationProviderName?: string) => Record<VerificationMethod, PayoutVerificationMethodMetadata>;
|
package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import type { ParseConfiguration } from '../../../../hooks/useScenarioConfiguration';
|
|
2
|
-
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
3
2
|
import type { FormList } from '../../../../types/form';
|
|
4
|
-
import type { FormConfiguration, PerCountryFormConfiguration } from '../../../../types/form-configuration';
|
|
5
3
|
import type { PayoutAccountSchema } from '../../forms/PayoutAccount/types';
|
|
6
|
-
import type { PayoutRules } from '../../forms/PayoutDetails/rules';
|
|
7
4
|
import type { PayoutDetailsSchema } from '../../forms/PayoutDetails/types';
|
|
8
5
|
export declare const obscuredPayoutFields: Array<keyof PayoutAccountSchema>;
|
|
9
|
-
export declare const payoutDetailsCountryConfig: PerCountryFormConfiguration<PayoutDetailsSchema>;
|
|
10
6
|
export declare const parseConfiguration: ParseConfiguration<PayoutDetailsSchema>;
|
|
11
|
-
export declare function parsePayoutScenarios({ requiredFields, country, bankVerificationAvailable, }: {
|
|
12
|
-
requiredFields: (keyof PayoutAccountSchema)[] | undefined;
|
|
13
|
-
country: CountryCode;
|
|
14
|
-
bankVerificationAvailable: boolean | undefined;
|
|
15
|
-
}): FormConfiguration<PayoutDetailsSchema, keyof PayoutRules>;
|
|
16
7
|
export declare const getAppropriatePayoutDetailsSteps: (isEditing: boolean, instantVerificationAvailable: boolean, canChangeCountry: boolean) => FormList;
|
package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts
CHANGED
|
@@ -5,6 +5,5 @@ export interface BasicInformationMultiformProps extends BaseMultiformProps<Busin
|
|
|
5
5
|
disableCountry?: boolean;
|
|
6
6
|
isTopLevelEntity?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const BASIC_INFORMATION_FORM_ID: keyof BusinessDetailsSchema;
|
|
9
8
|
export declare const BASIC_INFORMATION_FIELDS: Array<keyof BasicInformationSchema>;
|
|
10
9
|
export declare function BasicInformationMultiform({ id, country, shouldValidate, heading, description, validationErrors, verificationErrors, disableCountry, isTopLevelEntity, }: BasicInformationMultiformProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -60,6 +60,12 @@ export declare const staticBusinessDetailsForms: {
|
|
|
60
60
|
readonly fields: readonly ["constitutionalDocument"];
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
|
+
export type BusinessRegistrationDocId = typeof staticBusinessDetailsForms.companyRegistrationDocument.formId;
|
|
64
|
+
export type BusinessTaxDocumentDocId = typeof staticBusinessDetailsForms.companyTaxDocument.formId;
|
|
65
|
+
export type BusinessProofOfDirectorDocId = typeof staticBusinessDetailsForms.companyProofOfDirectorDocument.formId;
|
|
66
|
+
export type BusinessProofOfSignatoryDocId = typeof staticBusinessDetailsForms.companyProofOfSignatoryDocument.formId;
|
|
67
|
+
export type BusinessConstitutionalDocId = typeof staticBusinessDetailsForms.companyConstitutionalDocument.formId;
|
|
68
|
+
export type BusinessProofOfOwnershipDocId = typeof staticBusinessDetailsForms.companyProofOfOwnershipDocument.formId;
|
|
63
69
|
export declare const getForms: (country: CountryCode) => {
|
|
64
70
|
readonly basicInformation: {
|
|
65
71
|
readonly formId: "basicInformation";
|
|
@@ -4,15 +4,14 @@ import type { FormRulesParams } from '../../../types/form-rules';
|
|
|
4
4
|
import type { BusinessDetailsSchema } from './BusinessDetails/types';
|
|
5
5
|
export declare const COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION: CountryCode[];
|
|
6
6
|
export declare const COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION: CountryCode[];
|
|
7
|
-
export declare const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS: CountryCode[];
|
|
8
7
|
export declare const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS: CountryCode[];
|
|
8
|
+
export declare const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS: CountryCode[];
|
|
9
9
|
export declare const COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER: CountryCode[];
|
|
10
10
|
/**
|
|
11
11
|
* Also used to determine what documenttype needs to be used
|
|
12
12
|
* when uploading tax document in mapping.ts
|
|
13
13
|
* */
|
|
14
14
|
export declare const COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT: readonly CountryCode[];
|
|
15
|
-
export declare const COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP: readonly CountryCode[];
|
|
16
15
|
export declare const COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES: readonly CountryCode[];
|
|
17
16
|
export declare const COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS: readonly CountryCode[];
|
|
18
17
|
export declare const COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION: CountryCode[];
|
|
@@ -25,7 +24,6 @@ export declare const COUNTRY_OF_GOVERNING_LAW_POSSIBLE: readonly CountryCode[];
|
|
|
25
24
|
export declare const COUNTRIES_REQUIRING_FINANCIAL_INFORMATION: readonly CountryCode[];
|
|
26
25
|
export declare const COUNTRIES_REQUIRING_E_INVOICING_CODE: readonly CountryCode[];
|
|
27
26
|
export declare const COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4: readonly CountryCode[];
|
|
28
|
-
export declare const TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION: readonly CountryCode[];
|
|
29
27
|
export declare const isRegistrationNumberAbsentStateV4Scenario: (country: CountryCode, entityType?: CompanyTypesValue) => boolean;
|
|
30
28
|
export declare const rules: ({ data, country, taskType, isExperimentEnabled, accountHolder, rootLegalEntity, tinMatched, }: FormRulesParams<BusinessDetailsSchema>) => {
|
|
31
29
|
requireDoingBusinessAsName: () => "REQUIRED" | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ExperimentName } from '../../../../context/ExperimentContext/types';
|
|
2
|
-
import type { OuterFormLabels } from '../../../../hooks/useForm/types';
|
|
3
2
|
import type { Language } from '../../../../language/Language';
|
|
4
3
|
import type { FormModelWithValidity } from '../../../../types/form';
|
|
5
4
|
import type { BasicInformationSchema } from '../../forms/BasicInformation/types';
|
|
@@ -7,6 +6,6 @@ import type { BusinessDetailsSchema } from '../../forms/BusinessDetails/types';
|
|
|
7
6
|
import type { SubmitProps } from './types';
|
|
8
7
|
export declare const canSubmit: (data: BusinessDetailsSchema) => boolean;
|
|
9
8
|
export declare const removeConditionalForms: (forms: FormModelWithValidity[], isSkippingCompanyStructure: boolean) => FormModelWithValidity[];
|
|
10
|
-
export declare const formatDataForSummary: (data: BusinessDetailsSchema, forms: FormModelWithValidity[],
|
|
9
|
+
export declare const formatDataForSummary: (data: BusinessDetailsSchema, forms: FormModelWithValidity[], i18n: Language, isExperimentEnabled: (key: ExperimentName) => boolean) => {};
|
|
11
10
|
export declare function submit({ additionalTrackingParams, data, legalEntityResponse, associatedLegalArrangement, nestedLegalEntity, nestedLegalEntityDetails, problems, taskType, accountHolder, forms, documentUtils, i18n, showToast, setLoadingStatus, setProblems, handleUpdateLegalEntity, createLegalEntity, onExternalSubmit, isExperimentEnabled, userEvents, }: SubmitProps): Promise<void>;
|
|
12
11
|
export declare const getCountryOfGoverningLaw: (isCountryOfGoverningLawEnabled?: boolean, basicData?: BasicInformationSchema) => string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Dispatch, type StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { LoadingStatus } from '../../../ui/atoms/LoaderWrapper/constants';
|
|
3
3
|
import type { TaskType } from '../../../../stores/globalStore/taskTypes';
|
|
4
4
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ServiceAgreementDropinProps } from './types';
|
|
2
|
-
export declare function ServiceAgreementDropin({ legalEntityResponse, handleHomeClick, handleAddSigner, handleSign, serviceAgreementTypes, serviceAgreementAcceptanceInfos, asEmbedded, asModal, handleCloseClick, }: ServiceAgreementDropinProps): import("preact/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function ServiceAgreementDropin({ legalEntityResponse, handleHomeClick, handleAddSigner, handleSign, serviceAgreementTypes, serviceAgreementAcceptanceInfos, asEmbedded, asModal, handleCloseClick, onComplete, }: ServiceAgreementDropinProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -63,4 +63,3 @@ export declare const ALLOWED_SOF_SERVICES: string[];
|
|
|
63
63
|
export declare const SOF_INVALID_INPUT_ERROR_CODES: string[];
|
|
64
64
|
export declare const getRelevantErrors: (problems: Problem[] | undefined, targetCodes: string[]) => false | VerificationError[];
|
|
65
65
|
export declare const getUniqueRemediationActions: (error: VerificationError) => import("../../../../core/models/api/remediating-action").RemediatingAction[];
|
|
66
|
-
export declare const SOF_DATA_MISSING_ERROR_CODES: string[];
|
|
@@ -4,11 +4,12 @@ interface AcceptTermsOfServiceProps {
|
|
|
4
4
|
modalView?: boolean;
|
|
5
5
|
onClose?(): void;
|
|
6
6
|
onUnmount?(): void;
|
|
7
|
-
onAccept?(data:
|
|
7
|
+
onAccept?(data: TermsOfServiceData): void;
|
|
8
|
+
onComplete?(data: TermsOfServiceData): void;
|
|
8
9
|
asEmbedded?: boolean;
|
|
9
10
|
handleAddSigner?(): void;
|
|
10
11
|
}
|
|
11
|
-
export interface
|
|
12
|
+
export interface TermsOfServiceData {
|
|
12
13
|
unAcceptedTermsOfServiceTypes: string[];
|
|
13
14
|
acceptedTermsOfServices: AcceptedTermsOfService[];
|
|
14
15
|
}
|
|
@@ -20,5 +21,5 @@ interface AcceptedTermsOfService {
|
|
|
20
21
|
termsOfServiceDocumentId: string;
|
|
21
22
|
type: ServiceAgreementType;
|
|
22
23
|
}
|
|
23
|
-
export declare function AcceptTermsOfServiceComponent({ legalEntityId, modalView, asEmbedded, onClose, onUnmount, onAccept, handleAddSigner, }: AcceptTermsOfServiceProps): import("preact/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function AcceptTermsOfServiceComponent({ legalEntityId, modalView, asEmbedded, onClose, onComplete, onUnmount, onAccept, handleAddSigner, }: AcceptTermsOfServiceProps): import("preact/jsx-runtime").JSX.Element;
|
|
24
25
|
export {};
|