@adyen/kyc-components 3.94.0 → 3.95.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-UXDlHmf_.js → AcceptTermsOfServiceComponent-DQBTbYHm.js} +36 -32
- package/dist/{Accordion-DM9qeMoR.js → Accordion-CyFxp5eR.js} +2 -2
- package/dist/{AccountSetupRejected-DfmKQEp-.js → AccountSetupRejected-BgPC6a82.js} +4 -4
- package/dist/{ActionBar-DCKuV5BO.js → ActionBar-DuqmbwPb.js} +2 -2
- package/dist/{Address-BEUcWe_H.js → Address-uWZO7A9W.js} +10 -12
- package/dist/{Alert-D9HbhU88.js → Alert-BpQzk7oa.js} +3 -3
- package/dist/{Avatar-C_tjYaBz.js → Avatar-cL2Btfr9.js} +2 -2
- package/dist/{BusinessFinancingComponent-B5gLGmkK.js → BusinessFinancingComponent-DQnluWsY.js} +7 -7
- package/dist/{BusinessFinancingDropin-BpZKzB71.js → BusinessFinancingDropin-TTX58HNJ.js} +689 -307
- package/dist/{BusinessFinancingPage-CKdy77OK.js → BusinessFinancingPage-CARcv8Qh.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-ClkY9cbT.js → BusinessTypeSelectionPage-BamCO_8X.js} +9 -9
- package/dist/{Checkbox-BU4IYlt6.js → Checkbox-4TE31vJm.js} +2 -2
- package/dist/{Confirm-BM1PTsnm.js → Confirm-BCbTBwh3.js} +3 -3
- package/dist/{ConstitutionalDocument-D9sPfw_B.js → ConstitutionalDocument-DAXsUY5o.js} +37 -30
- package/dist/{ContactDetails-BRnbG7BX.js → ContactDetails-DF1ERAlH.js} +8 -8
- package/dist/{ContextGuidance-CZGa7C-r.js → ContextGuidance-c2saCqxR.js} +3 -3
- package/dist/{ContractViewer-Byp71k2e.js → ContractViewer-DcQHIGMU.js} +2 -2
- package/dist/{CountryField-DShqP-Yi.js → CountryField-0SyPMIyv.js} +6 -6
- package/dist/{CreateIndividualComponent-BZ6dd8Bd.js → CreateIndividualComponent-BEG5bcc8.js} +7 -7
- package/dist/{CreateTransferInstrumentComponent-1pjVr_3y.js → CreateTransferInstrumentComponent-UEBRtXZu.js} +5 -5
- package/dist/{Currency-CEtDxV-F.js → Currency-CYaHlY2Z.js} +7 -11
- package/dist/{CustomerSupport-gmN79qSl.js → CustomerSupport-CZAM9Fzm.js} +11 -11
- package/dist/{DebugModal-C3horl0P.js → DebugModal-Dpm0S2dA.js} +9 -9
- package/dist/{DecisionMakerDetailsPage-CN1t2Ok6.js → DecisionMakerDetailsPage-CgEYI6wt.js} +14 -10
- package/dist/{DecisionMakers-83kflZpA.js → DecisionMakers-Dj2lHuCW.js} +36 -26
- package/dist/{Dropzone-DYIUInYF.js → Dropzone-D-KrwtNK.js} +4 -4
- package/dist/{EmbeddedStatus-BID4yaOx.js → EmbeddedStatus-Bz7OcIMW.js} +3 -3
- package/dist/{EndStateLayout-Cqmi0QYW.js → EndStateLayout-DnGdtXOr.js} +2 -2
- package/dist/{EntityAssociation-jMAjopdW.js → EntityAssociation-ysCVZKn5.js} +35 -23
- package/dist/{EntityGuidanceStatus-ek-5IvZb.js → EntityGuidanceStatus-BHI0RfAS.js} +3 -3
- package/dist/{ErrorPanel-ByEaxCQu.js → ErrorPanel-CAHQTbMv.js} +3 -3
- package/dist/{Field-Cp_UOAnA.js → Field-CApB-T06.js} +2 -2
- package/dist/{FormNavigation-CttAyMuX.js → FormNavigation-DSCpClML.js} +3 -3
- package/dist/{FormWrapper-C8UDjnjQ.js → FormWrapper-CVN-7oA1.js} +9 -9
- package/dist/{Header-CIxJSQWR.js → Header-DCVQMDDt.js} +2 -2
- package/dist/{Image-T-D-HDf5.js → Image-CJu0BRVo.js} +2 -2
- package/dist/{Individual.rules-DEhHxeiv.js → Individual.rules-NaoLBYL8.js} +29 -14
- package/dist/{IndividualDropin-Dz2ooI0s.js → IndividualDropin-CfUopCha.js} +71 -63
- package/dist/{InputDate-z9OpUslu.js → InputDate-CiL0lNHS.js} +2 -2
- package/dist/{InputText-CBhD5jca.js → InputText-BV_-tgjA.js} +2 -2
- package/dist/{Introduction-Bm3kybSH.js → Introduction-D1Ki78MP.js} +4 -4
- package/dist/{JpAddress-owiNWOqn.js → JpAddress-UoTJ6rCV.js} +18 -13
- package/dist/{LandingLayout-BuBU3Pyb.js → LandingLayout-Cn77l9Co.js} +2 -2
- package/dist/{fieldConfig-CMdKt41r.js → LegalCompanyNameField-iFBtpehs.js} +71 -67
- package/dist/{LegalRepresentativeDetailsPage-vS7jAxuO.js → LegalRepresentativeDetailsPage-B0UoHJQJ.js} +5 -5
- package/dist/{Link-CIBefZJS.js → Link-BJyutNM5.js} +2 -2
- package/dist/{ListItem-CnzgA-sH.js → ListItem-Bgm6YMzN.js} +3 -3
- package/dist/{LoaderWrapper-CwhIpGKR.js → LoaderWrapper-C4vG5XIf.js} +1 -1
- package/dist/ManageIndividualComponent-D9R1S14p.js +46 -0
- package/dist/{ManageTermsOfServiceComponent-BdiC5Nbd.js → ManageTermsOfServiceComponent-CwmatDwh.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-CObC5Uof.js → ManageTransferInstrumentComponent-2b76XSTc.js} +15 -14
- package/dist/{MaskedInput-BfI4FGAA.js → MaskedInput-BbFU7XNV.js} +5 -5
- package/dist/{MaybeModal-DHcu32Dh.js → MaybeModal-BpIcw6KQ.js} +3 -3
- package/dist/{Modal-BKWXTEoU.js → Modal-CJUtsR2N.js} +2 -2
- package/dist/{Name-BCar2_dk.js → Name-DTE823OG.js} +5 -5
- package/dist/{OnboardingDropinComponent-DstStqYS.js → OnboardingDropinComponent-BX4esftr.js} +850 -520
- package/dist/{PayoutDetailsDropin-DSdlqAe2.js → PayoutDetailsDropin-Cqeomvbg.js} +130 -77
- package/dist/{RadioGroup-COsozc9g.js → RadioGroup-DzUpgP12.js} +2 -2
- package/dist/{RadioGroupCard-xqC3IACY.js → RadioGroupCard-g4OS0871.js} +2 -2
- package/dist/{Review-CZwc-DMp.js → Review-Cj1WCiGQ.js} +7 -7
- package/dist/RootBusinessDetailsPage-9NXM1XdC.js +50 -0
- package/dist/{RootBusinessLinesPage-BRgtyHFs.js → RootBusinessLinesPage-YxGXibwW.js} +27 -24
- package/dist/{RootIndividualDetailsPage-C3wTzTp1.js → RootIndividualDetailsPage-DX1rjTXN.js} +7 -6
- package/dist/{Select-DeTBytOH.js → Select-C_6mHv91.js} +4 -4
- package/dist/{SignPCIComponent-CCGyrXvI.js → SignPCIComponent-OxWCtP3x.js} +14 -14
- package/dist/{SingpassSelection-BumqRwXI.js → SingpassSelection-DE4uUTZo.js} +6 -6
- package/dist/SoleProprietorshipPage-BzpFPKOl.js +50 -0
- package/dist/{SourceOfFundsPage-DkjYls-E.js → SourceOfFundsPage-CESAo3kl.js} +33 -32
- package/dist/{StepProgressIndicator-D8PfKJKf.js → StepProgressIndicator-a3q7kzzC.js} +2 -2
- package/dist/{StoreProvider-CsZ-qrGt.js → StoreProvider-BL3nK1iO.js} +157 -132
- package/dist/{StructuredList-9dnJRdx_.js → StructuredList-BNLhk_zV.js} +1 -1
- package/dist/{Summary-DPm9r7Az.js → Summary-8HdspbcQ.js} +19 -8
- package/dist/{TaskVerificationStatus-DrOQToMh.js → TaskVerificationStatus-ycoS73dK.js} +2 -2
- package/dist/{TaxInformationField-NI7Hbgov.js → TaxInformationField-BfDJhJG4.js} +438 -81
- package/dist/{TaxReportingDropin-BBUAxx92.js → TaxReportingDropin-xYD4YqWR.js} +18 -18
- package/dist/{TextArea-CCjCNpAP.js → TextArea-CWY-x138.js} +2 -2
- package/dist/{TileGroup-BhKhvfLz.js → TileGroup-DmZTiaip.js} +3 -3
- package/dist/{TrustDetailsPage-yOmFcEyO.js → TrustDetailsPage-JQ-U6HZk.js} +44 -38
- package/dist/TrustMemberCompanyPage-WwsnSV7c.js +68 -0
- package/dist/{TrustMemberIndividualPage-B8tb56n2.js → TrustMemberIndividualPage-27y1WJMM.js} +11 -8
- package/dist/{TrustMemberRoleAndTypePage-WHu1tc4O.js → TrustMemberRoleAndTypePage-DHCLuLa-.js} +43 -38
- package/dist/{TrustMembersOverview-BWbGUK3k.js → TrustMembersOverview-CqdtBx67.js} +13 -13
- package/dist/{UnincorporatedPartnershipIndividualPage-DD2dn41k.js → UnincorporatedPartnershipIndividualPage-xOJ-Kusf.js} +10 -7
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DsUSSYnI.js → UnincorporatedPartnershipMemberCompanyPage-CBw2IY6X.js} +10 -7
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Ctb0Lz_0.js → UnincorporatedPartnershipMemberRoleAndTypePage-B4fDDHnW.js} +15 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-B_GJIeZC.js → UnincorporatedPartnershipMembersOverview-BrBvKluu.js} +9 -9
- package/dist/{VerificationErrorAlert-CCiMqGl8.js → VerificationErrorAlert-DXaYFyA9.js} +4 -24
- package/dist/{ViewVerificationStatusComponent-CICJ6cy4.js → ViewVerificationStatusComponent-YY4hrQ8I.js} +4 -4
- package/dist/accountHolderUtils-DP6cbO7y.js +66 -0
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-kyc-components.js +20 -19
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +3 -3
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-Ch6rVpGi.js → bafinUtils-BCq4-e97.js} +3 -22
- package/dist/bg-BG-CFuVZnaC.js +13 -0
- package/dist/{bg-BG-CepHap8j.js → bg-BG-DMNRRZZE.js} +8 -1
- package/dist/bg-BG-Dp1J1L2X.js +13 -0
- package/dist/{commonValidators-B8wfpMjX.js → commonValidators-BXRpCFOY.js} +2 -2
- package/dist/company-types-value-D_mKv5PT.js +23 -0
- package/dist/cs-CZ-Bd9Zz7z4.js +13 -0
- package/dist/cs-CZ-CYsR__kj.js +13 -0
- package/dist/{cs-CZ-BP7niQM9.js → cs-CZ-DXSMRqPu.js} +8 -1
- package/dist/da-DK-B3Pg-MWO.js +13 -0
- package/dist/{da-DK-Dc0QYG8m.js → da-DK-Cd5IQPv3.js} +8 -1
- package/dist/da-DK-DmFDgnbC.js +13 -0
- package/dist/{de-DE-Dz2OsS1F.js → de-DE-C9NH2zMh.js} +8 -1
- package/dist/de-DE-DRuKxSOy.js +13 -0
- package/dist/de-DE-S6qDey1L.js +13 -0
- package/dist/{dropinUtils-B4Vv7_zJ.js → dropinUtils-DGUJjA6y.js} +4 -4
- package/dist/el-GR-Cezskrdn.js +13 -0
- package/dist/{el-GR-BHG69mXl.js → el-GR-DTHQslLc.js} +8 -1
- package/dist/el-GR-DoS_Va-n.js +13 -0
- package/dist/{en-US-CzEL6t1W.js → en-US-D1sB335h.js} +9 -3
- package/dist/en-US-DLY20x1O.js +13 -0
- package/dist/{en-US-D-B35AoN.js → en-US-DYP6rAvA.js} +8 -1
- package/dist/{en-US-fyGPkcqX.js → en-US-cVpRgdC8.js} +2 -2
- package/dist/es-ES-BYl5-PFR.js +13 -0
- package/dist/{es-ES-BI_jdT67.js → es-ES-DK-7qtDf.js} +8 -1
- package/dist/es-ES-DzB4V6UZ.js +13 -0
- package/dist/et-EE-4fHYOoff.js +13 -0
- package/dist/et-EE-BkHzGD3D.js +13 -0
- package/dist/{et-EE-C_PZO2aI.js → et-EE-DNC4hcxm.js} +8 -1
- package/dist/{fi-FI-hwzizPnr.js → fi-FI-BJLU1JHw.js} +8 -1
- package/dist/fi-FI-Cxkp0GQA.js +13 -0
- package/dist/fi-FI-DFxljML-.js +13 -0
- package/dist/filterProblemsByTaskForms-Cz7iQtms.js +30 -0
- package/dist/{formUtils-q44BTi2U.js → formUtils-CJQolfmf.js} +3 -22
- package/dist/{fr-FR-CYZXbwc9.js → fr-FR-B2je0smB.js} +8 -1
- package/dist/fr-FR-DPehHVb6.js +13 -0
- package/dist/fr-FR-DsEmssxk.js +13 -0
- package/dist/{getName-BxKx8lLd.js → getName-C1AIqAns.js} +2 -2
- package/dist/{getProps-CLJfvUMb.js → getProps-O8Fpl_k_.js} +2 -6
- package/dist/getTrustedFields-C5-mXl-l.js +64 -0
- package/dist/hr-HR-Bjx-KdVs.js +13 -0
- package/dist/{hr-HR-bE6cvRCQ.js → hr-HR-C0NLgF1r.js} +8 -1
- package/dist/hr-HR-DU4nvY6g.js +13 -0
- package/dist/hu-HU-B-lUkFnQ.js +13 -0
- package/dist/hu-HU-D6frnZmR.js +13 -0
- package/dist/{hu-HU-DG-NUDx4.js → hu-HU-DU-5ujQK.js} +8 -1
- package/dist/{iframeWidget-iDH8bVr4.js → iframeWidget-DRjCrrYZ.js} +4 -4
- package/dist/{isEmpty-BNacTlfR.js → isEmpty-C7bLX-qG.js} +2 -2
- package/dist/isNewEntity-7Vw_eQBr.js +13 -0
- package/dist/it-IT-DOBp2-MP.js +13 -0
- package/dist/{it-IT-Erh1DIlj.js → it-IT-Dhwa9Ecj.js} +8 -1
- package/dist/it-IT-VFXgXyRA.js +13 -0
- package/dist/{ja-JP-DfE1PYyN.js → ja-JP-B3wVYIJU.js} +2 -2
- package/dist/ja-JP-B_Q8X66O.js +13 -0
- package/dist/{ja-JP-CWJzqrtj.js → ja-JP-Bc4U0S8-.js} +8 -1
- package/dist/{ja-JP-4Q9zp35q.js → ja-JP-Bv3ru9Xq.js} +14 -7
- package/dist/{ja-JP-CSz7fEkn.js → ja-JP-CceCDXLB.js} +2 -2
- package/dist/{ja-JP-DBoYLzeA.js → ja-JP-DSvZhFNY.js} +4 -4
- package/dist/{japanSupportUtils-C7aPdWXD.js → japanSupportUtils-BucfNSWB.js} +2 -2
- package/dist/{jpAddressSchema-De6ix57p.js → jpAddressSchema-DEOyz9Yo.js} +2 -4
- package/dist/{localizeDateString-DuTq6aHe.js → localizeDateString-n8b2kwyK.js} +2 -2
- package/dist/{lt-LT-Nd1uRoIj.js → lt-LT-C8n1GZoU.js} +8 -1
- package/dist/lt-LT-CE-GdWrg.js +13 -0
- package/dist/lt-LT-WRulV980.js +13 -0
- package/dist/{lv-LV-DKhV24CI.js → lv-LV-BZN4-Xat.js} +8 -1
- package/dist/lv-LV-C9Dhkruv.js +13 -0
- package/dist/lv-LV-dv7fqeBS.js +13 -0
- package/dist/{mapExistingFile-CGg2sd-T.js → mapExistingFile-DtG8dtIh.js} +5 -6
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BwHU4ZwL.js → mapJpAddressSchemaToAddressLocalizations-CpVZUxo1.js} +5 -5
- package/dist/{mapLegalEntityToIndividualSchema-DzCEngXr.js → mapLegalEntityToIndividualSchema-1aYgn5km.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-DLHvwig1.js → mapTransferInstrumentToPayoutAccount-BDQGKfhP.js} +2 -2
- package/dist/{nl-NL-O9GCHMDA.js → nl-NL-B0fvINJj.js} +8 -1
- package/dist/nl-NL-BwIRHJgf.js +13 -0
- package/dist/nl-NL-SjOGmGk5.js +13 -0
- package/dist/no-NO-BAWVf0GX.js +13 -0
- package/dist/{no-NO-CA1aR6Wh.js → no-NO-Jw7Gae-a.js} +8 -1
- package/dist/no-NO-u56mEoG3.js +13 -0
- package/dist/{patternValidators-CZ5mQeGD.js → patternValidators-DcjAPGFV.js} +5 -5
- package/dist/{pl-PL-BKDK0_G8.js → pl-PL-Bmaq3IC3.js} +8 -1
- package/dist/pl-PL-DEMxxz7h.js +13 -0
- package/dist/pl-PL-zqT41Yjw.js +13 -0
- package/dist/{process-field-configurations-BQY03q4v.js → process-field-configurations-CQoldE8s.js} +3 -3
- package/dist/{pt-BR-NtLaWlnZ.js → pt-BR-BaTE6BB_.js} +8 -1
- package/dist/pt-BR-BfDe_8iW.js +13 -0
- package/dist/pt-BR-fMKntiMG.js +13 -0
- package/dist/{pt-PT-C6teRGuD.js → pt-PT-C6pZR9Bc.js} +2 -2
- package/dist/pt-PT-F1qPZJ2c.js +13 -0
- package/dist/{pt-PT-DSxxVA0f.js → pt-PT-c0ap84_F.js} +8 -1
- package/dist/{resolveEnvironment-BEU3VKd8.js → resolveEnvironment-D-07Kfa-.js} +3 -3
- package/dist/ro-RO-0vx6ZLWV.js +13 -0
- package/dist/ro-RO-B5BQrf6C.js +13 -0
- package/dist/{ro-RO-Bybq8JFn.js → ro-RO-BPOHV6Wp.js} +8 -1
- package/dist/{roleMetadata-BeJKyoeE.js → roleMetadata-DsoqlMAY.js} +2 -2
- package/dist/{sk-SK-C6rMIxpz.js → sk-SK-3_SoEn6P.js} +8 -1
- package/dist/sk-SK-Bz4T7upD.js +13 -0
- package/dist/sk-SK-DuLm2CVx.js +13 -0
- package/dist/sl-SI--RTGDByj.js +13 -0
- package/dist/sl-SI-BAIm-qBe.js +13 -0
- package/dist/{sl-SI-tPwbFvOI.js → sl-SI-DbfswGh0.js} +8 -1
- package/dist/style.css +140 -148
- package/dist/styles-CLV89_hH.js +140 -148
- package/dist/sv-SE-BZNey_8S.js +13 -0
- package/dist/{sv-SE-K1QT1cOt.js → sv-SE-D_Efxy3s.js} +8 -1
- package/dist/sv-SE-Dryy3JLw.js +13 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +1 -1
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +3 -3
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +10 -10
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -1
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -3
- package/dist/types/components/{Shared → Business}/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
- package/dist/types/components/{Shared → Business}/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/{Shared → Business}/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +6 -6
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -2
- package/dist/types/components/Business/utils/companyUtil.d.ts +0 -1
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +1 -2
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -1
- package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5283 -53
- package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +3 -2
- package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -1
- package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +1 -2
- package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +1 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingSoleProprietor.d.ts +2 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSoleProprietorPersonalInformation.d.ts +4 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +14 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +10 -1
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +1 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +4 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/IdVerificationMethod.types.d.ts +2 -1
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +2 -2
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +3 -3
- package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +0 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +10 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/Currency.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +78 -0
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +12 -6
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/NumberOfEmployees/NumberOfEmployees.d.ts +1 -1
- package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +2 -2
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -2
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +1 -1
- package/dist/types/components/ui/atoms/Loader/Loader.d.ts +11 -1
- package/dist/types/context/ExperimentContext/types.d.ts +17 -0
- package/dist/types/core/models/api/individual.d.ts +3 -0
- package/dist/types/core/models/api/legal-arrangement.d.ts +3 -0
- package/dist/types/hooks/useForm/types.d.ts +0 -4
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +4 -2
- package/dist/types/hooks/usePageLandedEvent.d.ts +7 -0
- package/dist/types/router/DefaultRouteRedirect.d.ts +8 -0
- package/dist/types/router/MemoryRouterContext.d.ts +9 -0
- package/dist/types/router/OnboardingRouter.d.ts +39 -0
- package/dist/types/router/SuspenseRoute.d.ts +7 -0
- package/dist/types/router/getDefaultTask.d.ts +16 -0
- package/dist/types/router/routeConfig.d.ts +68 -0
- package/dist/types/router/useCurrentTask.d.ts +5 -0
- package/dist/types/router/useNavigate.d.ts +7 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +0 -1
- package/dist/types/utils/formUtils.d.ts +0 -3
- package/dist/types/utils/regex/patternValidators.d.ts +1 -1
- package/dist/types/utils/validatorUtils.d.ts +1 -1
- package/dist/{types-B7eWQV7z.js → types-C8yt1YG2.js} +19 -2
- package/dist/{types-BY62XJTq.js → types-DRTd35hZ.js} +2 -2
- package/dist/{types-pKG9olDB.js → types-DujGXeMG.js} +2 -2
- package/dist/{types-BuMuCpsa.js → types-XpRg7EOC.js} +2 -2
- package/dist/{useAssociatedLegalEntity-V0OP9ejx.js → useAssociatedLegalEntity-DlZrp3qi.js} +2 -2
- package/dist/{useBusinessDetailsData-BsXXL7fg.js → useBusinessDetailsData-gZ8moheH.js} +713 -718
- package/dist/useBusinessLines-BD1Yg8Ja.js +29 -0
- package/dist/useCanSeeIntroduction-BHQYUN_d.js +48 -0
- package/dist/{useCreateLegalEntity-otpCRCfZ.js → useCreateLegalEntity-DjRvxwI5.js} +2 -2
- package/dist/useDataMissingRemediations-KgLqbiZx.js +41 -0
- package/dist/{useDataset-CvATx7EN.js → useDataset-Bafefouf.js} +5 -3
- package/dist/useDeleteTransferInstrument-Cf8rmBGA.js +32 -0
- package/dist/{useForm-9nSw9LZY.js → useForm-Bh638xmS.js} +27 -27
- package/dist/{useFormContext-BnlNKQZ7.js → useFormContext-BilJQsMw.js} +7 -7
- package/dist/{useGlobalData-Dy2O7YGk.js → useGlobalData-DkE5IpZB.js} +2 -2
- package/dist/{useMultiForm-CBefohos.js → useMultiForm-djEDTyaG.js} +45 -36
- package/dist/useNavigate-DE0sTmpX.js +265 -0
- package/dist/{useOnboardingStatus-CJrlnkvv.js → useOnboardingStatus-DhK2qF95.js} +1 -1
- package/dist/usePciQuestionnaireList-DsgAv5Ql.js +29 -0
- package/dist/useSalesChannels-DUTiDcGq.js +65 -0
- package/dist/{useScenarios-CkgrmOF-.js → useScenarios-BxbmDi2R.js} +2 -2
- package/dist/useSetting-DwC0bC4k.js +19 -0
- package/dist/useTaskStatus-Cps0L-Yp.js +51 -0
- package/dist/{useTermsOfServiceStatus-DFLF3xas.js → useTermsOfServiceStatus-COugffxI.js} +1 -1
- package/dist/{useToastContext-uSKjdph9.js → useToastContext-DBDF60Ps.js} +2 -2
- package/dist/useTrustMembers-ymPJMufc.js +163 -0
- package/dist/{useUnincorporatedPartnershipMembers-BmLKVfkf.js → useUnincorporatedPartnershipMembers-ZlPU6E-_.js} +4 -4
- package/dist/{useUpdateBusinessLines-BBNXF45E.js → useUpdateBusinessLines-DfjB9Ur6.js} +4 -4
- package/dist/{useUpdateLegalEntity-DHxCVgNk.js → useUpdateLegalEntity-C8rOYkS1.js} +3 -3
- package/dist/{utils-CLLUBF1a.js → utils-B8oIRKRm.js} +2 -2
- package/dist/{utils-ClKogQZa.js → utils-D1RKmLBo.js} +3 -3
- package/dist/{utils-5yZQq_bx.js → utils-DIBG3Hc5.js} +6 -6
- package/dist/{utils-CIHH_aYF.js → utils-Dd2ry06C.js} +2 -2
- package/dist/{utils-CIIs2bXi.js → utils-_6SITBJE.js} +3 -2
- package/dist/{validate-BntX2W3B.js → validate-B6hMWJ8a.js} +10 -2
- package/dist/{validate-CLYo0JdH.js → validate-jqVPVUI3.js} +3 -3
- package/dist/{validationError-DJ6zTIzv.js → validationError-CsCEpxs1.js} +2 -2
- package/package.json +3 -2
- package/dist/ManageIndividualComponent-CJEqOUgN.js +0 -46
- package/dist/RootBusinessDetailsPage-BsAtLAyF.js +0 -50
- package/dist/SoleProprietorshipPage-zgU4q95D.js +0 -50
- package/dist/TrustMemberCompanyPage-DfXulzKv.js +0 -65
- package/dist/bg-BG-C1maG7_G.js +0 -13
- package/dist/bg-BG-D4k_k98M.js +0 -118
- package/dist/cs-CZ-Dq3xx45p.js +0 -13
- package/dist/cs-CZ-nIWwyOHK.js +0 -118
- package/dist/da-DK-CoqZjIMT.js +0 -13
- package/dist/da-DK-CrtuBoDC.js +0 -118
- package/dist/de-DE-CLMlbqGz.js +0 -13
- package/dist/de-DE-mH3MobT9.js +0 -13
- package/dist/el-GR-BEOd56RY.js +0 -13
- package/dist/el-GR-Ckn_3h1a.js +0 -118
- package/dist/en-US-d4WBvUW7.js +0 -118
- package/dist/es-ES-BnPWZP0s.js +0 -13
- package/dist/es-ES-CnyVffM-.js +0 -118
- package/dist/et-EE-RzdBGxDM.js +0 -118
- package/dist/et-EE-rYc8-Bm2.js +0 -13
- package/dist/fi-FI-CYEjY7DQ.js +0 -13
- package/dist/fi-FI-kXC-0USa.js +0 -118
- package/dist/fr-FR-6YOKsDLQ.js +0 -13
- package/dist/fr-FR-CsJuDM2B.js +0 -13
- package/dist/hr-HR-DMSNClBZ.js +0 -13
- package/dist/hr-HR-fyublN95.js +0 -118
- package/dist/hu-HU-CpJDiSu2.js +0 -118
- package/dist/hu-HU-DQlYtR9y.js +0 -13
- package/dist/it-IT-C9cOsMxY.js +0 -13
- package/dist/it-IT-DyCHFg-b.js +0 -118
- package/dist/ja-JP-NuKpFRZl.js +0 -13
- package/dist/lt-LT-CKE7_7_A.js +0 -118
- package/dist/lt-LT-DPU2ZqVt.js +0 -13
- package/dist/lv-LV-BD8xCiCe.js +0 -13
- package/dist/lv-LV-D4Ik0yoE.js +0 -118
- package/dist/nl-NL-CBnYVFv_.js +0 -13
- package/dist/nl-NL-DkbhmJAw.js +0 -118
- package/dist/no-NO-C690hkyd.js +0 -13
- package/dist/no-NO-Df5qUoTc.js +0 -118
- package/dist/pl-PL-BDclj9dt.js +0 -13
- package/dist/pl-PL-ggZjqXWE.js +0 -118
- package/dist/pt-BR-B4wCnZ06.js +0 -13
- package/dist/pt-BR-BOOm5lRR.js +0 -118
- package/dist/pt-PT-BDfNlThr.js +0 -118
- package/dist/ro-RO-BRngQXgs.js +0 -118
- package/dist/ro-RO-PA9lKU0J.js +0 -13
- package/dist/sk-SK-DmqCF6I9.js +0 -13
- package/dist/sk-SK-y9eb7N6i.js +0 -118
- package/dist/sl-SI-CGvCdquD.js +0 -118
- package/dist/sl-SI-DnT4vnh4.js +0 -13
- package/dist/sv-SE-BP2Oun8l.js +0 -118
- package/dist/sv-SE-DopUU1N2.js +0 -13
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/FinancialInformation.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/ReportedValue.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/types.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/validate.d.ts +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
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] = "33f84cbd-b6a3-4488-a88d-0ffbd4b96b25", e._sentryDebugIdIdentifier = "sentry-dbid-33f84cbd-b6a3-4488-a88d-0ffbd4b96b25");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
+
import { b as useApiContext, k as httpGet } from "./StoreProvider-BL3nK1iO.js";
|
|
12
|
+
const getBusinessLines = async (legalEntityId, baseUrl) => {
|
|
13
|
+
return httpGet({
|
|
14
|
+
baseUrl,
|
|
15
|
+
path: `legalEntities/${legalEntityId}/businessLines`
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
const useBusinessLines = (businessLineType, options) => {
|
|
19
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
20
|
+
return useQuery({
|
|
21
|
+
queryKey: ["businessLines"],
|
|
22
|
+
queryFn: () => getBusinessLines(rootLegalEntityId.value, baseUrl.value),
|
|
23
|
+
select: (businessLines) => businessLines.filter((businessLine) => businessLineType.includes(businessLine.service)),
|
|
24
|
+
...options
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
useBusinessLines as u
|
|
29
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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] = "9efd2a32-1acf-4a48-83d3-a8f528f2976a", e._sentryDebugIdIdentifier = "sentry-dbid-9efd2a32-1acf-4a48-83d3-a8f528f2976a");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { S as SettingNames } from "./TaskVerificationStatus-ycoS73dK.js";
|
|
11
|
+
import { J as isPartOfTrustFromLegalEntity, M as hasSolePropInLegalEntity, o as LegalEntityTypes, B as useSettingsContext } from "./StoreProvider-BL3nK1iO.js";
|
|
12
|
+
const useLegalEntityType = ({
|
|
13
|
+
legalEntity
|
|
14
|
+
}) => {
|
|
15
|
+
const isTrust = isPartOfTrustFromLegalEntity(legalEntity);
|
|
16
|
+
const isSoleProprietor = hasSolePropInLegalEntity(legalEntity);
|
|
17
|
+
const hasLegalAssociation = isTrust || isSoleProprietor;
|
|
18
|
+
switch (legalEntity.type) {
|
|
19
|
+
case LegalEntityTypes.INDIVIDUAL:
|
|
20
|
+
case LegalEntityTypes.ORGANIZATION:
|
|
21
|
+
if (!hasLegalAssociation) return legalEntity.type;
|
|
22
|
+
if (isSoleProprietor) return LegalEntityTypes.SOLE_PROPRIETORSHIP;
|
|
23
|
+
if (isTrust) return LegalEntityTypes.TRUST;
|
|
24
|
+
break;
|
|
25
|
+
default:
|
|
26
|
+
return void 0;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const useCanSeeIntroduction = ({ legalEntity }) => {
|
|
30
|
+
const legalEntityType = useLegalEntityType({ legalEntity });
|
|
31
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
32
|
+
switch (legalEntityType) {
|
|
33
|
+
case LegalEntityTypes.INDIVIDUAL:
|
|
34
|
+
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionIndividual);
|
|
35
|
+
case LegalEntityTypes.ORGANIZATION:
|
|
36
|
+
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionOrganization);
|
|
37
|
+
case LegalEntityTypes.SOLE_PROPRIETORSHIP:
|
|
38
|
+
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionSoleProprietor);
|
|
39
|
+
case LegalEntityTypes.TRUST:
|
|
40
|
+
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionTrust);
|
|
41
|
+
default:
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
useLegalEntityType as a,
|
|
47
|
+
useCanSeeIntroduction as u
|
|
48
|
+
};
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "351bfd04-5d35-442a-8100-0ed62549a951", e._sentryDebugIdIdentifier = "sentry-dbid-351bfd04-5d35-442a-8100-0ed62549a951");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMutation } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext,
|
|
11
|
+
import { b as useApiContext, $ as httpPost } from "./StoreProvider-BL3nK1iO.js";
|
|
12
12
|
const createLegalEntity = async (legalEntityId, baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
14
14
|
{
|
|
@@ -0,0 +1,41 @@
|
|
|
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] = "35dfc19f-6447-40f2-ab0d-b97a8a4d8412", e._sentryDebugIdIdentifier = "sentry-dbid-35dfc19f-6447-40f2-ab0d-b97a8a4d8412");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { useMemo } from "preact/hooks";
|
|
11
|
+
import { u as useTranslation, a8 as EntityTypes, bm as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, j as TaskTypes } from "./StoreProvider-BL3nK1iO.js";
|
|
12
|
+
function useDataMissingRemediations({
|
|
13
|
+
legalEntityId,
|
|
14
|
+
problems
|
|
15
|
+
}) {
|
|
16
|
+
const { t } = useTranslation("common");
|
|
17
|
+
const decisionMakersRemediationMessage = useMemo(() => {
|
|
18
|
+
const remediationCodes = problems[EntityTypes.LEGAL_ENTITY]?.[legalEntityId]?.missingData?.reduce((remediations, error) => {
|
|
19
|
+
const remediation = DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING[error.code];
|
|
20
|
+
return remediation ? [...remediations, remediation] : remediations;
|
|
21
|
+
}, []);
|
|
22
|
+
const uniqueRemediations = [...new Set(remediationCodes)];
|
|
23
|
+
switch (uniqueRemediations?.length) {
|
|
24
|
+
case void 0:
|
|
25
|
+
case 0:
|
|
26
|
+
return void 0;
|
|
27
|
+
case 1:
|
|
28
|
+
return uniqueRemediations[0] ? t(($) => $[`remediationMessage_${uniqueRemediations[0]}`]) : t(($) => $["missingMultipleDecisionMakers"]);
|
|
29
|
+
default:
|
|
30
|
+
return t(($) => $["missingMultipleDecisionMakers"]);
|
|
31
|
+
}
|
|
32
|
+
}, [problems, t, legalEntityId]);
|
|
33
|
+
return {
|
|
34
|
+
remediationMessages: {
|
|
35
|
+
[TaskTypes.DECISION_MAKER]: decisionMakersRemediationMessage
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
useDataMissingRemediations as u
|
|
41
|
+
};
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3931726d-dbe0-4cdf-b697-367870ce0617", e._sentryDebugIdIdentifier = "sentry-dbid-3931726d-dbe0-4cdf-b697-367870ce0617");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useState, useEffect } from "preact/hooks";
|
|
11
|
-
import {
|
|
11
|
+
import { a3 as createLogger, ab as useI18nContext } from "./StoreProvider-BL3nK1iO.js";
|
|
12
12
|
import { a as datasetUtilities, d as datasetIdentifier } from "./datasetUtil-BHQp0-xL.js";
|
|
13
13
|
const logger$1 = createLogger();
|
|
14
14
|
const countriesImports = /* @__PURE__ */ Object.assign({ "../countries/de-DE.json": () => import("./de-DE-B3nctkG8.js"), "../countries/el-GR.json": () => import("./el-GR-CdgLZhuO.js"), "../countries/en-US.json": () => import("./en-US-DSoLr6rp.js"), "../countries/es-ES.json": () => import("./es-ES-BRfK6tX7.js"), "../countries/fr-FR.json": () => import("./fr-FR-Dk6Lw2On.js"), "../countries/it-IT.json": () => import("./it-IT-D7G4BaP7.js"), "../countries/ja-JP.json": () => import("./ja-JP-DTW_hY1L.js"), "../countries/nl-NL.json": () => import("./nl-NL-CFzm75Jw.js"), "../countries/pt-PT.json": () => import("./pt-PT-DpDxAynk.js"), "../countries/sv-SE.json": () => import("./sv-SE-rckxD-43.js") });
|
|
@@ -65,7 +65,9 @@ function useDataset(datasetIdentifier2, skip) {
|
|
|
65
65
|
setDataset(result);
|
|
66
66
|
}).catch(() => {
|
|
67
67
|
setDataset([]);
|
|
68
|
-
}).finally(() =>
|
|
68
|
+
}).finally(() => {
|
|
69
|
+
setLoaded(true);
|
|
70
|
+
});
|
|
69
71
|
}, [datasetIdentifier2, i18n.locale, skip]);
|
|
70
72
|
return { dataset, loaded };
|
|
71
73
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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] = "1206f235-ab7f-46e9-ab0a-12ec9617dff4", e._sentryDebugIdIdentifier = "sentry-dbid-1206f235-ab7f-46e9-ab0a-12ec9617dff4");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { useMutation } from "@tanstack/preact-query";
|
|
11
|
+
import { a as useInvalidateRootLegalEntity } from "./useToastContext-DBDF60Ps.js";
|
|
12
|
+
import { b as useApiContext, ae as httpDelete } from "./StoreProvider-BL3nK1iO.js";
|
|
13
|
+
const deleteTransferInstrument = async (legalEntityId, baseUrl, transferInstrumentId) => {
|
|
14
|
+
return httpDelete({
|
|
15
|
+
baseUrl,
|
|
16
|
+
path: `legalEntities/${legalEntityId}/transferInstruments/${transferInstrumentId}`
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
const useDeleteTransferInstrument = (options) => {
|
|
20
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
21
|
+
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
22
|
+
return useMutation({
|
|
23
|
+
mutationFn: (transferInstrumentId) => deleteTransferInstrument(rootLegalEntityId.value, baseUrl.value, transferInstrumentId),
|
|
24
|
+
onSuccess: async () => {
|
|
25
|
+
await invalidateRootLegalEntity();
|
|
26
|
+
},
|
|
27
|
+
...options
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
useDeleteTransferInstrument as u
|
|
32
|
+
};
|
|
@@ -2,24 +2,23 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fb1850a5-fbc0-4dd5-87fd-6cce00e492ff", e._sentryDebugIdIdentifier = "sentry-dbid-fb1850a5-fbc0-4dd5-87fd-6cce00e492ff");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useState, useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import {
|
|
12
|
-
import { V as ValidationResult, o as omitKeys, a as addKeys } from "./utils-
|
|
11
|
+
import { a3 as createLogger, ai as isEmpty, aO as doArraysMatch } from "./StoreProvider-BL3nK1iO.js";
|
|
12
|
+
import { V as ValidationResult, o as omitKeys, a as addKeys } from "./utils-B8oIRKRm.js";
|
|
13
13
|
const logger = createLogger();
|
|
14
14
|
const useAsyncValidator = (asyncRules) => {
|
|
15
15
|
const [asyncValidationResults, setAsyncValidationResults] = useState({});
|
|
16
|
-
const clearAsyncValidationResults = useCallback(
|
|
17
|
-
|
|
16
|
+
const clearAsyncValidationResults = useCallback((field) => {
|
|
17
|
+
setAsyncValidationResults((existingResults) => ({
|
|
18
18
|
...existingResults,
|
|
19
19
|
[field]: void 0
|
|
20
|
-
}))
|
|
21
|
-
|
|
22
|
-
);
|
|
20
|
+
}));
|
|
21
|
+
}, []);
|
|
23
22
|
const triggerAsyncValidation = useCallback(
|
|
24
23
|
(field, formState, mode) => {
|
|
25
24
|
const rule = asyncRules?.[field];
|
|
@@ -477,30 +476,30 @@ function useForm({
|
|
|
477
476
|
},
|
|
478
477
|
[state.data]
|
|
479
478
|
);
|
|
480
|
-
const setErrors = useCallback(
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
)
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
(key, value) => dispatch({ type: "setData", key, value }),
|
|
490
|
-
[]
|
|
491
|
-
);
|
|
479
|
+
const setErrors = useCallback((key, value) => {
|
|
480
|
+
dispatch({ type: "setErrors", key, value });
|
|
481
|
+
}, []);
|
|
482
|
+
const setValid = useCallback((key, value) => {
|
|
483
|
+
dispatch({ type: "setValid", key, value });
|
|
484
|
+
}, []);
|
|
485
|
+
const setData = useCallback((key, value) => {
|
|
486
|
+
dispatch({ type: "setData", key, value });
|
|
487
|
+
}, []);
|
|
492
488
|
const setSchema = useCallback(
|
|
493
|
-
(newSchema) =>
|
|
489
|
+
(newSchema) => {
|
|
490
|
+
dispatch({ type: "setSchema", schema: newSchema, defaultData });
|
|
491
|
+
},
|
|
494
492
|
[defaultData]
|
|
495
493
|
);
|
|
496
494
|
const setFieldProblems = useCallback(
|
|
497
|
-
(newFieldProblems) =>
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
const mergeForm = useCallback(
|
|
501
|
-
(formValue) => dispatch({ type: "mergeForm", formValue }),
|
|
495
|
+
(newFieldProblems) => {
|
|
496
|
+
dispatch({ type: "setFieldProblems", fieldProblems: newFieldProblems });
|
|
497
|
+
},
|
|
502
498
|
[]
|
|
503
499
|
);
|
|
500
|
+
const mergeForm = useCallback((formValue) => {
|
|
501
|
+
dispatch({ type: "mergeForm", formValue });
|
|
502
|
+
}, []);
|
|
504
503
|
const handleChangeFor = useCallback(
|
|
505
504
|
(key, mode = "blur") => (e) => {
|
|
506
505
|
const value = getTargetValue(key, e);
|
|
@@ -527,7 +526,8 @@ function useForm({
|
|
|
527
526
|
const resetToDefaultData = useCallback(() => {
|
|
528
527
|
getSchema.forEach((field) => {
|
|
529
528
|
if (!defaultData || typeof defaultData[field] !== "undefined") {
|
|
530
|
-
|
|
529
|
+
handleChangeFor(field)(defaultData?.[field]);
|
|
530
|
+
return;
|
|
531
531
|
}
|
|
532
532
|
setValid(field, false);
|
|
533
533
|
setErrors(field, null);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3341b8d1-4d28-431c-9eac-5825bc720f38", e._sentryDebugIdIdentifier = "sentry-dbid-3341b8d1-4d28-431c-9eac-5825bc720f38");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo, useRef, useState, useContext } from "preact/hooks";
|
|
12
12
|
import cx from "classnames";
|
|
13
|
-
import {
|
|
14
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
15
|
-
import { M as MaybeModal } from "./MaybeModal-
|
|
13
|
+
import { p as useAnalyticsContext, u as useTranslation, V as Button } from "./StoreProvider-BL3nK1iO.js";
|
|
14
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-C4vG5XIf.js";
|
|
15
|
+
import { M as MaybeModal } from "./MaybeModal-BpIcw6KQ.js";
|
|
16
16
|
import { P as ProgressBar } from "./ProgressBar-B7gTQncy.js";
|
|
17
|
-
import { F as FormRouterContextProvider } from "./dropinUtils-
|
|
18
|
-
import { C as Confirm } from "./Confirm-
|
|
19
|
-
import { S as Summary } from "./Summary-
|
|
17
|
+
import { F as FormRouterContextProvider } from "./dropinUtils-DGUJjA6y.js";
|
|
18
|
+
import { C as Confirm } from "./Confirm-BCbTBwh3.js";
|
|
19
|
+
import { S as Summary } from "./Summary-8HdspbcQ.js";
|
|
20
20
|
import { createContext } from "preact";
|
|
21
21
|
const FormContext = createContext(null);
|
|
22
22
|
function FormContextProvider({
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c41f552e-6deb-4a27-af90-970322f78706", e._sentryDebugIdIdentifier = "sentry-dbid-c41f552e-6deb-4a27-af90-970322f78706");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useContext, useCallback, useMemo } from "preact/hooks";
|
|
11
11
|
import { a as debounce } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
12
|
-
import {
|
|
12
|
+
import { b9 as StateContext } from "./StoreProvider-BL3nK1iO.js";
|
|
13
13
|
function useStateContext() {
|
|
14
14
|
const context = useContext(StateContext);
|
|
15
15
|
return context;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1dd2bee1-29d6-4d23-be11-c06d59d12c1d", e._sentryDebugIdIdentifier = "sentry-dbid-1dd2bee1-29d6-4d23-be11-c06d59d12c1d");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import {
|
|
12
|
-
import { V as ValidationResult } from "./utils-
|
|
13
|
-
import { a as isNotEmptyValidator } from "./commonValidators-
|
|
11
|
+
import { a6 as objectsDeepEqual, a3 as createLogger, ai as isEmpty } from "./StoreProvider-BL3nK1iO.js";
|
|
12
|
+
import { V as ValidationResult } from "./utils-B8oIRKRm.js";
|
|
13
|
+
import { a as isNotEmptyValidator } from "./commonValidators-BXRpCFOY.js";
|
|
14
14
|
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
15
15
|
a[c] = obj[c];
|
|
16
16
|
return a;
|
|
@@ -43,7 +43,7 @@ const processField = ({
|
|
|
43
43
|
const formattedValue = formatterFn && typeof formatterFn === "function" ? formatterFn(value, fieldContext) : value;
|
|
44
44
|
const fieldHasDefaultValue = !!defaultData?.[key];
|
|
45
45
|
const fieldHasChanged = defaultData?.[key] !== value;
|
|
46
|
-
const idObscuredField = fieldContext.state
|
|
46
|
+
const idObscuredField = fieldContext.state.obscuredFields?.includes(key);
|
|
47
47
|
const shouldValidateField = idObscuredField ? fieldHasChanged : fieldHasChanged || fieldHasDefaultValue;
|
|
48
48
|
const validationResult = shouldValidateField ? staticValidate({ key, value: formattedValue, mode, formName }, data, fieldContext) : new ValidationResult([
|
|
49
49
|
{
|
|
@@ -342,9 +342,9 @@ function reducer({
|
|
|
342
342
|
(field) => !innerFormFields.includes(field)
|
|
343
343
|
),
|
|
344
344
|
...clonedState.optionalFields[formName].filter(
|
|
345
|
-
(field) => !optionalFields?.[formName]
|
|
345
|
+
(field) => !optionalFields?.[formName].includes(field)
|
|
346
346
|
)
|
|
347
|
-
] : clonedState.requiredFields?.[formName]
|
|
347
|
+
] : clonedState.requiredFields?.[formName].filter(
|
|
348
348
|
(field) => !innerFormFields.includes(field)
|
|
349
349
|
);
|
|
350
350
|
const newFields = optionalFields?.[formName].length ? [
|
|
@@ -451,26 +451,26 @@ function reducer({
|
|
|
451
451
|
formatters: formatters?.[formName],
|
|
452
452
|
fieldContext: {
|
|
453
453
|
state: {
|
|
454
|
-
data: clonedState
|
|
454
|
+
data: clonedState.data?.[formName],
|
|
455
455
|
obscuredFields: obscuredFields?.[formName],
|
|
456
456
|
optionalFields: optionalFields?.[formName],
|
|
457
457
|
trustedFields: trustedFields?.[formName],
|
|
458
|
-
errors: clonedState.errors
|
|
459
|
-
valid: clonedState.valid
|
|
460
|
-
fieldProblems: clonedState.fieldProblems
|
|
461
|
-
asyncErrors: updatedAsyncErrors
|
|
458
|
+
errors: clonedState.errors[formName],
|
|
459
|
+
valid: clonedState.valid[formName],
|
|
460
|
+
fieldProblems: clonedState.fieldProblems[formName],
|
|
461
|
+
asyncErrors: updatedAsyncErrors[formName]
|
|
462
462
|
}
|
|
463
463
|
},
|
|
464
464
|
staticValidate
|
|
465
465
|
});
|
|
466
|
-
const oldValue = clonedState
|
|
466
|
+
const oldValue = clonedState.data?.[formName];
|
|
467
467
|
const clearFieldProblems = oldValue?.[key] !== formattedValue;
|
|
468
468
|
const result = {
|
|
469
469
|
...clonedState,
|
|
470
470
|
data: {
|
|
471
471
|
...clonedState.data,
|
|
472
472
|
[formName]: {
|
|
473
|
-
...clonedState
|
|
473
|
+
...clonedState.data?.[formName],
|
|
474
474
|
[key]: formattedValue
|
|
475
475
|
}
|
|
476
476
|
},
|
|
@@ -478,7 +478,7 @@ function reducer({
|
|
|
478
478
|
errors: {
|
|
479
479
|
...clonedState.errors,
|
|
480
480
|
[formName]: {
|
|
481
|
-
...clonedState
|
|
481
|
+
...clonedState.errors[formName],
|
|
482
482
|
[key]: validation.getError() ?? null
|
|
483
483
|
}
|
|
484
484
|
},
|
|
@@ -492,8 +492,8 @@ function reducer({
|
|
|
492
492
|
fieldProblems: {
|
|
493
493
|
...clonedState.fieldProblems,
|
|
494
494
|
[formName]: {
|
|
495
|
-
...clonedState
|
|
496
|
-
...!clearFieldProblems && clonedState.fieldProblems
|
|
495
|
+
...clonedState.fieldProblems[formName],
|
|
496
|
+
...!clearFieldProblems && clonedState.fieldProblems[formName][key] ? { [key]: true } : {}
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
};
|
|
@@ -516,18 +516,18 @@ function reducer({
|
|
|
516
516
|
value: formData2?.[field] ?? null,
|
|
517
517
|
formName,
|
|
518
518
|
defaultData: defaultData?.[formName],
|
|
519
|
-
data: clonedState
|
|
519
|
+
data: clonedState.data,
|
|
520
520
|
formatters: formatters?.[formName],
|
|
521
521
|
fieldContext: {
|
|
522
522
|
state: {
|
|
523
|
-
data: clonedState
|
|
523
|
+
data: clonedState.data?.[formName],
|
|
524
524
|
obscuredFields: obscuredFields?.[formName],
|
|
525
525
|
optionalFields: optionalFields?.[formName],
|
|
526
526
|
trustedFields: trustedFields?.[formName],
|
|
527
|
-
errors: clonedState.errors
|
|
528
|
-
valid: clonedState.valid
|
|
529
|
-
fieldProblems: clonedState.fieldProblems
|
|
530
|
-
asyncErrors: clonedState.asyncErrors
|
|
527
|
+
errors: clonedState.errors[formName],
|
|
528
|
+
valid: clonedState.valid[formName],
|
|
529
|
+
fieldProblems: clonedState.fieldProblems[formName],
|
|
530
|
+
asyncErrors: clonedState.asyncErrors[formName]
|
|
531
531
|
}
|
|
532
532
|
},
|
|
533
533
|
staticValidate
|
|
@@ -547,7 +547,7 @@ function reducer({
|
|
|
547
547
|
},
|
|
548
548
|
valid: {
|
|
549
549
|
...acc.valid,
|
|
550
|
-
[field]:
|
|
550
|
+
[field]: validation.isValid && (fieldAsyncValidationResult?.isValid ?? true) && !clonedState.fieldProblems[formName][field]
|
|
551
551
|
},
|
|
552
552
|
fieldProblems: {
|
|
553
553
|
...acc.fieldProblems,
|
|
@@ -591,14 +591,14 @@ const useMultiFormAsyncValidator = (asyncRules) => {
|
|
|
591
591
|
const triggerAsyncValidation = useCallback(
|
|
592
592
|
async (field, formName, data) => {
|
|
593
593
|
if (!asyncRules) return new ValidationResult([validResult]);
|
|
594
|
-
const rule = typeof asyncRules === "function" ? asyncRules
|
|
594
|
+
const rule = typeof asyncRules === "function" ? asyncRules(data)[formName]?.[field] : asyncRules[formName][field];
|
|
595
595
|
const value = data?.[formName]?.[field];
|
|
596
596
|
if (!rule || !value) return new ValidationResult([validResult]);
|
|
597
597
|
const isValid = await rule.asyncValidate(value).catch(logger.error);
|
|
598
598
|
if (isValid === false) {
|
|
599
599
|
return new ValidationResult([
|
|
600
600
|
{
|
|
601
|
-
isValid
|
|
601
|
+
isValid,
|
|
602
602
|
errorMessage: typeof rule.errorMessage === "function" ? rule.errorMessage(value) : rule.errorMessage,
|
|
603
603
|
hasError: !isValid
|
|
604
604
|
}
|
|
@@ -621,7 +621,7 @@ const useMultiFormAsyncValidator = (asyncRules) => {
|
|
|
621
621
|
[fieldName]: asyncValidationResult
|
|
622
622
|
};
|
|
623
623
|
}, Promise.resolve({}));
|
|
624
|
-
const isValid = Object.values(asyncValidationResults
|
|
624
|
+
const isValid = Object.values(asyncValidationResults).every(
|
|
625
625
|
(validationResult) => validationResult.isValid
|
|
626
626
|
);
|
|
627
627
|
return {
|
|
@@ -654,7 +654,7 @@ const useMultiFormStaticValidator = (rules) => {
|
|
|
654
654
|
const isFieldOptional = !!context?.state.optionalFields?.includes(key);
|
|
655
655
|
const isFieldObscured = !!context?.state.obscuredFields?.includes(key);
|
|
656
656
|
if (!isFieldOptional) {
|
|
657
|
-
fieldRules
|
|
657
|
+
fieldRules.unshift(isNotEmptyValidator);
|
|
658
658
|
}
|
|
659
659
|
const validationRulesResult = fieldRules.map((rule) => {
|
|
660
660
|
const shouldValidate = rule.modes.includes(mode) && !isFieldObscured;
|
|
@@ -745,7 +745,7 @@ function useMultiForm({
|
|
|
745
745
|
const optionalsFormFields = state.optionalFields?.[form] ?? [];
|
|
746
746
|
const requiredFormFields = state.requiredFields?.[form] ?? [];
|
|
747
747
|
const formFields = [...optionalsFormFields, ...requiredFormFields];
|
|
748
|
-
const formValidity = state.valid
|
|
748
|
+
const formValidity = state.valid[formName] ?? {};
|
|
749
749
|
return {
|
|
750
750
|
...acc,
|
|
751
751
|
[formName]: Object.entries(formValidity)?.every(
|
|
@@ -765,19 +765,27 @@ function useMultiForm({
|
|
|
765
765
|
[state.data]
|
|
766
766
|
);
|
|
767
767
|
const setErrors = useCallback(
|
|
768
|
-
(key, value, formName) =>
|
|
768
|
+
(key, value, formName) => {
|
|
769
|
+
dispatch({ type: "setErrors", key, value, formName });
|
|
770
|
+
},
|
|
769
771
|
[]
|
|
770
772
|
);
|
|
771
773
|
const setValid = useCallback(
|
|
772
|
-
(key, value, formName) =>
|
|
774
|
+
(key, value, formName) => {
|
|
775
|
+
dispatch({ type: "setValid", key, value, formName });
|
|
776
|
+
},
|
|
773
777
|
[]
|
|
774
778
|
);
|
|
775
779
|
const setData = useCallback(
|
|
776
|
-
(key, value, formName) =>
|
|
780
|
+
(key, value, formName) => {
|
|
781
|
+
dispatch({ type: "setData", key, value, formName });
|
|
782
|
+
},
|
|
777
783
|
[]
|
|
778
784
|
);
|
|
779
785
|
const setFormData = useCallback(
|
|
780
|
-
(formName, formData) =>
|
|
786
|
+
(formName, formData) => {
|
|
787
|
+
dispatch({ type: "setFormData", formName, formData });
|
|
788
|
+
},
|
|
781
789
|
[]
|
|
782
790
|
);
|
|
783
791
|
const handleChangeFor = useCallback(
|
|
@@ -795,7 +803,7 @@ function useMultiForm({
|
|
|
795
803
|
);
|
|
796
804
|
const triggerValidation = useCallback(
|
|
797
805
|
async (formName, selectedSchema) => {
|
|
798
|
-
const asyncValidationResults = await triggerAsyncFormValidation
|
|
806
|
+
const asyncValidationResults = await triggerAsyncFormValidation(
|
|
799
807
|
formName,
|
|
800
808
|
state,
|
|
801
809
|
selectedSchema
|
|
@@ -817,7 +825,8 @@ function useMultiForm({
|
|
|
817
825
|
const formData = defaultData?.[form];
|
|
818
826
|
getSchema[form].forEach((field) => {
|
|
819
827
|
if (!formData || typeof formData[field] !== "undefined") {
|
|
820
|
-
|
|
828
|
+
handleChangeFor(field, form)(formData);
|
|
829
|
+
return;
|
|
821
830
|
}
|
|
822
831
|
setValid(field, false, form);
|
|
823
832
|
setErrors(field, null, form);
|
|
@@ -826,7 +835,7 @@ function useMultiForm({
|
|
|
826
835
|
});
|
|
827
836
|
}, [defaultData, getSchema, handleChangeFor, setData, setErrors, setValid]);
|
|
828
837
|
useEffect(() => {
|
|
829
|
-
const requiredFields2 = getRequiredFields(state
|
|
838
|
+
const requiredFields2 = getRequiredFields(state.data);
|
|
830
839
|
if (!requiredFields2) {
|
|
831
840
|
return;
|
|
832
841
|
}
|