@adyen/kyc-components 4.0.1 → 4.2.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/README.md +43 -31
- package/dist/4-people-BtDi7O9A.js +24 -0
- package/dist/AcceptTermsOfServiceComponent-DBf9qvsO.js +650 -0
- package/dist/Accordion-CqtzWVjL.js +88 -0
- package/dist/AccountSetupRejected-B_bbYtM2.js +26 -0
- package/dist/ActionBar-Dnv6j3rc.js +31 -0
- package/dist/Address-CbJvGOYV.js +1112 -0
- package/dist/Alert-uX8GYjqW.js +169 -0
- package/dist/Avatar-Cj2W0_1v.js +60 -0
- package/dist/BG-HKzabLqZ.js +27 -0
- package/dist/BusinessFinancingComponent-Bx2K8iN3.js +55 -0
- package/dist/BusinessFinancingDropin-CKsHfJ2J.js +2235 -0
- package/dist/BusinessFinancingPage-DmnaOPvo.js +43 -0
- package/dist/BusinessTypeSelectionPage-Bz0czSjO.js +440 -0
- package/dist/Card-OQuFzmxm.js +90 -0
- package/dist/Checkbox-BSxszx-9.js +74 -0
- package/dist/Confirm-DviRmz4e.js +64 -0
- package/dist/ConstitutionalDocument-hcS_-kxn.js +2361 -0
- package/dist/ContactDetails-BHn4lDFA.js +396 -0
- package/dist/ContextGuidance-BgMTeWIT.js +34 -0
- package/dist/ContractViewer-DcQHIGMU.js +935 -0
- package/dist/CountryField-D-WDIPSz.js +66 -0
- package/dist/CreateIndividualComponent-BJnGALzE.js +65 -0
- package/dist/CreateTransferInstrumentComponent-BudZmP_i.js +56 -0
- package/dist/Currency-BmTfhWzY.js +238 -0
- package/dist/CustomerSupport-C5g_pNY4.js +156 -0
- package/dist/DebugModal-C46w3DN5.js +416 -0
- package/dist/DecisionMakerDetailsPage-CMDK81px.js +104 -0
- package/dist/DecisionMakers-BbHkdcWY.js +858 -0
- package/dist/Dropzone-DMzbyRRZ.js +224 -0
- package/dist/EmbeddedStatus-Cto-qd3u.js +97 -0
- package/dist/EndStateLayout-Ds-6EhEu.js +71 -0
- package/dist/EntityAssociation-CAyTgh0S.js +178 -0
- package/dist/EntityGuidanceStatus-BdYW3yoc.js +106 -0
- package/dist/ErrorPanel-Doqj6bY8.js +194 -0
- package/dist/Field-CpaVW2RZ.js +141 -0
- package/dist/FormNavigation-D8lokOpO.js +144 -0
- package/dist/FormWrapper--B4boODe.js +135 -0
- package/dist/Header-hKHJmYRN.js +83 -0
- package/dist/Image-DIxxTupT.js +27 -0
- package/dist/Individual.rules-BAgQIMbK.js +383 -0
- package/dist/IndividualDropin-CpAEsMsL.js +5168 -0
- package/dist/InputDate-CoQAEyvT.js +43 -0
- package/dist/InputGroup-WBfGDV5F.js +32 -0
- package/dist/InputText-DmFCHVKa.js +134 -0
- package/dist/Introduction-DlnfG2qx.js +256 -0
- package/dist/JpAddress-D9wzTLlZ.js +329 -0
- package/dist/LandingLayout-pnTFiHf3.js +60 -0
- package/dist/LegalCompanyNameField-BOTkQIk6.js +138 -0
- package/dist/LegalRepresentativeDetailsPage-CnYE0t7-.js +55 -0
- package/dist/Link-B1s8_T7-.js +35 -0
- package/dist/List-BAzyC6sw.js +83 -0
- package/dist/ListItem-Coa9aGdN.js +69 -0
- package/dist/LoaderWrapper-YTarCjI9.js +42 -0
- package/dist/ManageIndividualComponent-D_RLxMfQ.js +46 -0
- package/dist/ManageTermsOfServiceComponent-VzhHb2cE.js +52 -0
- package/dist/ManageTransferInstrumentComponent-DevLP2pk.js +292 -0
- package/dist/MaskedInput-DEaltj9a.js +811 -0
- package/dist/MaybeModal-BcNIbjko.js +36 -0
- package/dist/Modal-sn2wYRN6.js +147 -0
- package/dist/Name-0TfRqG2t.js +81 -0
- package/dist/OnboardingDropinComponent-xFXjVEe0.js +2672 -0
- package/dist/PayoutDetailsDropin-popMzwBb.js +4972 -0
- package/dist/ProgressBar-B7gTQncy.js +47 -0
- package/dist/Radio-BMtxBpnn.js +39 -0
- package/dist/RadioGroup-B7fMJqmd.js +100 -0
- package/dist/RadioGroupCard-BqnCzi0b.js +152 -0
- package/dist/Review-DiV6r3gZ.js +84 -0
- package/dist/RootBusinessDetailsPage-BfQ4Pwdu.js +50 -0
- package/dist/RootBusinessLinesPage-CiZs8smP.js +1553 -0
- package/dist/RootIndividualDetailsPage-C92QtbjO.js +62 -0
- package/dist/Select-Cb77B0ji.js +868 -0
- package/dist/SignPCIComponent-B83OWndG.js +307 -0
- package/dist/SingpassSelection-Cc-ulD5h.js +132 -0
- package/dist/SoleProprietorshipPage-BYZkXtGh.js +50 -0
- package/dist/SourceOfFundsPage-DorVNEQ9.js +2162 -0
- package/dist/Spacer-BK3jDget.js +18 -0
- package/dist/StepProgressIndicator-DJ9FpFXO.js +78 -0
- package/dist/StoreProvider-qjyWZhxu.js +4845 -0
- package/dist/StructuredList-BNLhk_zV.js +61 -0
- package/dist/Summary-Bgq_Kcjg.js +220 -0
- package/dist/TaskVerificationStatus-DOZKjK09.js +129 -0
- package/dist/TaxInformationField-Dxx36AGr.js +3735 -0
- package/dist/TaxReportingDropin-tQf3UTtj.js +503 -0
- package/dist/TextArea-B4QNgWAM.js +103 -0
- package/dist/TileGroup-Dwrh9ZxO.js +203 -0
- package/dist/TrustDetailsPage-CKFlO2Ug.js +2187 -0
- package/dist/TrustMemberCompanyPage-BeeQ4TlK.js +68 -0
- package/dist/TrustMemberIndividualPage-cPDpa-cf.js +64 -0
- package/dist/TrustMemberRoleAndTypePage-C_isMpuS.js +1081 -0
- package/dist/TrustMembersOverview-CixBpWbT.js +439 -0
- package/dist/UnincorporatedPartnershipIndividualPage-BvVu1mfm.js +63 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-HFF2AWev.js +71 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-DWRiDapM.js +292 -0
- package/dist/UnincorporatedPartnershipMembersOverview-BgxWBXQP.js +173 -0
- package/dist/VerificationErrorAlert-DjNgDy5_.js +60 -0
- package/dist/ViewVerificationStatusComponent-BZWz8bMd.js +181 -0
- package/dist/accountHolderUtils-dRujT8-D.js +66 -0
- package/dist/adyen-business-financing.js +13 -5
- package/dist/adyen-individual-configuration.js +8 -4
- package/dist/adyen-individual-status.js +5 -4
- package/dist/adyen-invited-decision-maker.js +87 -0
- package/dist/adyen-kyc-components.js +23 -21
- package/dist/adyen-onboarding.js +8 -4
- package/dist/adyen-terms-of-service-management.js +8 -4
- package/dist/adyen-terms-of-service-status.js +5 -4
- package/dist/adyen-transfer-instrument-configuration.js +8 -4
- package/dist/adyen-transfer-instrument-management.js +5 -4
- package/dist/adyen-verification-status.js +8 -4
- package/dist/arrow-right-BoqwUH_d.js +14 -0
- package/dist/bafinUtils-CyvEB6AP.js +80 -0
- package/dist/bag-BXVWLrwo.js +14 -0
- package/dist/bank-1GvaHPAZ.js +14 -0
- package/dist/bg-BG-6XzbmxcW.js +13 -0
- package/dist/bg-BG-C6kad3Qr.js +61 -0
- package/dist/bg-BG-CEipapl4.js +63 -0
- package/dist/bg-BG-CFuVZnaC.js +13 -0
- package/dist/bg-BG-DAqp35Dx.js +13 -0
- package/dist/bg-BG-DMNRRZZE.js +75 -0
- package/dist/bg-BG-DyX-yYYI.js +13 -0
- package/dist/bg-BG-K7feXvEc.js +38 -0
- package/dist/bg-BG-zZhDshGi.js +65 -0
- package/dist/bin-Ba-3ll8T.js +18 -0
- package/dist/business-lines-BAqTbnBw.js +135 -0
- package/dist/capital-9TKHySO7.js +17 -0
- package/dist/cash-stack-DwYu4xNy.js +22 -0
- package/dist/certificate-N2YFedpI.js +17 -0
- package/dist/checkmark-D9dGhGpG.js +14 -0
- package/dist/checkmark-circle-CFWClLQ6.js +20 -0
- package/dist/checkmark-circle-fill-DEB-tuGl.js +17 -0
- package/dist/checkmark-small-D3VNx2lo.js +14 -0
- package/dist/chevron-down-C7SUSYfl.js +14 -0
- package/dist/chevron-left-BXmd-S46.js +14 -0
- package/dist/chevron-right-jE6RwM2B.js +14 -0
- package/dist/chevron-up-BdfNcqzq.js +14 -0
- package/dist/circle-BJPTMCWB.js +17 -0
- package/dist/circle-small-filled-BuO8Vg8j.js +14 -0
- package/dist/clock-DAzaBRWk.js +20 -0
- package/dist/coins-DYdzG5e_.js +17 -0
- package/dist/commonValidators-C9eSN1bv.js +24 -0
- package/dist/company-types-value-D_mKv5PT.js +23 -0
- package/dist/contract-BfJb1t6M.js +14 -0
- package/dist/cross-CDS_eot4.js +14 -0
- package/dist/cross-circle-fill-C-EJ57Yn.js +17 -0
- package/dist/cross-circle-fill-small-DkPjsuBH.js +14 -0
- package/dist/cs-CZ-BD5bYeuJ.js +13 -0
- package/dist/cs-CZ-BHbWTH_v.js +63 -0
- package/dist/cs-CZ-C6vEQ8P9.js +13 -0
- package/dist/cs-CZ-CYQO0o5V.js +38 -0
- package/dist/cs-CZ-CYsR__kj.js +13 -0
- package/dist/cs-CZ-C_GFp3nV.js +61 -0
- package/dist/cs-CZ-Ck22NTT9.js +65 -0
- package/dist/cs-CZ-DXSMRqPu.js +75 -0
- package/dist/cs-CZ-Ke47w0bj.js +13 -0
- package/dist/currency-CrdnaaDu.js +35 -0
- package/dist/da-DK-B3Pg-MWO.js +13 -0
- package/dist/da-DK-C60mLiV1.js +61 -0
- package/dist/da-DK-CGWvmdkq.js +38 -0
- package/dist/da-DK-Cd5IQPv3.js +75 -0
- package/dist/da-DK-Cx4-hLO1.js +13 -0
- package/dist/da-DK-DQ4ZYSea.js +65 -0
- package/dist/da-DK-DzcTI92X.js +13 -0
- package/dist/da-DK-h8DYQ_Iq.js +13 -0
- package/dist/da-DK-vcVNQJbX.js +63 -0
- package/dist/datasetUtil-BHQp0-xL.js +58 -0
- package/dist/de-DE-C9NH2zMh.js +75 -0
- package/dist/de-DE-CL8D8vKZ.js +13 -0
- package/dist/de-DE-CWEW2yqg.js +63 -0
- package/dist/de-DE-CkbOZ6S_.js +65 -0
- package/dist/de-DE-Cvz1TGdB.js +61 -0
- package/dist/de-DE-DHDJhahG.js +38 -0
- package/dist/de-DE-LQE_LFFL.js +13 -0
- package/dist/de-DE-S6qDey1L.js +13 -0
- package/dist/de-DE-dPfrbCii.js +13 -0
- package/dist/debouncedInputEvent-Cv2S512Y.js +46 -0
- package/dist/decision-makers-group-DrvpnEqj.js +1944 -0
- package/dist/digital-wallet-Bx5YM1LY.js +46 -0
- package/dist/document-1-qlSTF558.js +14 -0
- package/dist/document-blurred-BiWap0xs.js +37 -0
- package/dist/document-cut-off-aQezqOif.js +32 -0
- package/dist/document-expired-BhBXaWWQ.js +38 -0
- package/dist/document-front-DYuhZGeQ.js +30 -0
- package/dist/document-person-CDbnTOdV.js +20 -0
- package/dist/download-BZQB1WkZ.js +17 -0
- package/dist/dropinUtils-CAGEedke.js +200 -0
- package/dist/edit-1-DAqtnOIx.js +14 -0
- package/dist/el-GR-B78b9rSH.js +63 -0
- package/dist/el-GR-DGbzdIL0.js +13 -0
- package/dist/el-GR-DHNlnOwf.js +38 -0
- package/dist/el-GR-DSlgFwLb.js +61 -0
- package/dist/el-GR-DTHQslLc.js +75 -0
- package/dist/el-GR-Dazirlmt.js +13 -0
- package/dist/el-GR-DoS_Va-n.js +13 -0
- package/dist/el-GR-DudORw4U.js +65 -0
- package/dist/el-GR-Dvv3-Qib.js +13 -0
- package/dist/en-US-AgtwE4Fl.js +63 -0
- package/dist/en-US-BSQXKu6d.js +54 -0
- package/dist/en-US-CjjPhkB5.js +65 -0
- package/dist/en-US-D1sB335h.js +61 -0
- package/dist/en-US-DLY20x1O.js +13 -0
- package/dist/en-US-DoiQhi0j.js +38 -0
- package/dist/en-US-G607HIyo.js +75 -0
- package/dist/en-US-cVpRgdC8.js +13 -0
- package/dist/es-ES--IvNed_Q.js +13 -0
- package/dist/es-ES-BAolMrZ0.js +65 -0
- package/dist/es-ES-BYl5-PFR.js +13 -0
- package/dist/es-ES-CDgjGql5.js +63 -0
- package/dist/es-ES-CxnsKEh4.js +38 -0
- package/dist/es-ES-DK-7qtDf.js +75 -0
- package/dist/es-ES-DdGmXdxO.js +13 -0
- package/dist/es-ES-Dj5-YMmZ.js +61 -0
- package/dist/es-ES-Vn4AcK9-.js +13 -0
- package/dist/et-EE-4fHYOoff.js +13 -0
- package/dist/et-EE-BOIrYrz9.js +65 -0
- package/dist/et-EE-BQixWUEV.js +38 -0
- package/dist/et-EE-BeZJ4Ub1.js +13 -0
- package/dist/et-EE-Bij5j-z5.js +61 -0
- package/dist/et-EE-CsTXSlnY.js +13 -0
- package/dist/et-EE-D0PMC4ie.js +63 -0
- package/dist/et-EE-D5SNtVsM.js +13 -0
- package/dist/et-EE-DNC4hcxm.js +75 -0
- package/dist/external-link-Cg6pJaSJ.js +14 -0
- package/dist/fi-FI-57-xkioo.js +38 -0
- package/dist/fi-FI-B2xHiSHi.js +61 -0
- package/dist/fi-FI-BJLU1JHw.js +75 -0
- package/dist/fi-FI-BUixKfXH.js +13 -0
- package/dist/fi-FI-CIYa9SyS.js +13 -0
- package/dist/fi-FI-CWIaV6Iz.js +13 -0
- package/dist/fi-FI-CsZlDJFb.js +63 -0
- package/dist/fi-FI-D8WrLxxq.js +65 -0
- package/dist/fi-FI-DFxljML-.js +13 -0
- package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
- package/dist/filterProblemsByTaskForms-Cz7iQtms.js +30 -0
- package/dist/form-rules-DhbF2mY4.js +13 -0
- package/dist/formUtils-BYIcPMjp.js +107 -0
- package/dist/fr-FR-B2je0smB.js +75 -0
- package/dist/fr-FR-BM-qNLci.js +13 -0
- package/dist/fr-FR-Beljeilc.js +65 -0
- package/dist/fr-FR-BxiX8Zfi.js +38 -0
- package/dist/fr-FR-CCb4Oux7.js +13 -0
- package/dist/fr-FR-CNQtWSXx.js +61 -0
- package/dist/fr-FR-DPehHVb6.js +13 -0
- package/dist/fr-FR-VoxPkXSc.js +63 -0
- package/dist/fr-FR-l5z31r7i.js +13 -0
- package/dist/funds-in-CInoUdmG.js +21 -0
- package/dist/getName-BIUEu4TI.js +41 -0
- package/dist/getProblemsForEntity-BFrbrf8n.js +24 -0
- package/dist/getProps-Cc3J2-z9.js +148 -0
- package/dist/getTrustedFields-C5-mXl-l.js +64 -0
- package/dist/gift-omNInZeB.js +14 -0
- package/dist/graph-DunG_uu1.js +21 -0
- package/dist/graph-up-BZze4i6m.js +20 -0
- package/dist/headquarter-BhpSibFO.js +21 -0
- package/dist/hotel-Cp7VgGCJ.js +22 -0
- package/dist/house-BhyBQdR3.js +21 -0
- package/dist/hr-HR-B6U5Rzzw.js +61 -0
- package/dist/hr-HR-BAI0N9bo.js +13 -0
- package/dist/hr-HR-BF74vdPD.js +13 -0
- package/dist/hr-HR-Bjx-KdVs.js +13 -0
- package/dist/hr-HR-BtowKWUi.js +13 -0
- package/dist/hr-HR-BynZTNSB.js +38 -0
- package/dist/hr-HR-C0NLgF1r.js +75 -0
- package/dist/hr-HR-CbdP2tk-.js +63 -0
- package/dist/hr-HR-lIHN6Yl2.js +65 -0
- package/dist/hu-HU-B-lUkFnQ.js +13 -0
- package/dist/hu-HU-BLLoj5CX.js +61 -0
- package/dist/hu-HU-BpNDP1I8.js +13 -0
- package/dist/hu-HU-BtRIDozk.js +38 -0
- package/dist/hu-HU-CWdwNCev.js +65 -0
- package/dist/hu-HU-DU-5ujQK.js +75 -0
- package/dist/hu-HU-DYhMVR_c.js +13 -0
- package/dist/hu-HU-MHIPehPS.js +13 -0
- package/dist/hu-HU-pFpTvMiD.js +63 -0
- package/dist/id-blurred-B5lHEP8M.js +59 -0
- package/dist/id-cut-off-Ba1FRzKO.js +55 -0
- package/dist/id-front-CpNWN6nG.js +52 -0
- package/dist/id-glare-DgCQON8k.js +49 -0
- package/dist/iframeWidget-7rZG5Ja-.js +234 -0
- package/dist/image-CmB0ioUM.js +17 -0
- package/dist/info-Bb_-xIEK.js +21 -0
- package/dist/info-filled-CK8LB339.js +17 -0
- package/dist/instant-verification-UrnuHTYn.js +40 -0
- package/dist/isEmpty-DhGVlmpA.js +23 -0
- package/dist/isNewEntity-7Vw_eQBr.js +13 -0
- package/dist/it-IT-5a7NHVFo.js +65 -0
- package/dist/it-IT-BAvmkEF8.js +13 -0
- package/dist/it-IT-BRO0Hf5X.js +13 -0
- package/dist/it-IT-Cr20JO4o.js +61 -0
- package/dist/it-IT-D63gRTDc.js +13 -0
- package/dist/it-IT-DOBp2-MP.js +13 -0
- package/dist/it-IT-DZjw9LNC.js +63 -0
- package/dist/it-IT-Dhwa9Ecj.js +75 -0
- package/dist/it-IT-masgjk9F.js +38 -0
- package/dist/ja-JP-B3Y0VVpN.js +152 -0
- package/dist/ja-JP-BZb5ndp9.js +75 -0
- package/dist/ja-JP-BeeuQ_LL.js +61 -0
- package/dist/ja-JP-BqluCflj.js +63 -0
- package/dist/ja-JP-CaUe8KW7.js +27 -0
- package/dist/ja-JP-DL0IjTzn.js +13 -0
- package/dist/ja-JP-DSvZhFNY.js +65 -0
- package/dist/ja-JP-GX3l4yqn.js +125 -0
- package/dist/ja-JP-g6VOUGXZ.js +136 -0
- package/dist/ja-JP-vv3-YsHU.js +38 -0
- package/dist/japanSupportUtils-vwyJ0OrD.js +16 -0
- package/dist/jpAddressSchema-DEOyz9Yo.js +26 -0
- package/dist/localizeDateString-BjYXf_CF.js +27 -0
- package/dist/location-itJfxrDQ.js +17 -0
- package/dist/lt-LT-0WbfHH_o.js +61 -0
- package/dist/lt-LT-2BMif2Bk.js +38 -0
- package/dist/lt-LT-BX8dOAzK.js +13 -0
- package/dist/lt-LT-C8n1GZoU.js +75 -0
- package/dist/lt-LT-CXw4ywLM.js +63 -0
- package/dist/lt-LT-CgalYpUh.js +65 -0
- package/dist/lt-LT-DDs3ngzd.js +13 -0
- package/dist/lt-LT-DpszrZ9m.js +13 -0
- package/dist/lt-LT-WRulV980.js +13 -0
- package/dist/lv-LV-B3IqVQos.js +13 -0
- package/dist/lv-LV-BZN4-Xat.js +75 -0
- package/dist/lv-LV-BuuUUumH.js +61 -0
- package/dist/lv-LV-C9Dhkruv.js +13 -0
- package/dist/lv-LV-CHdEDRVO.js +38 -0
- package/dist/lv-LV-CmB2-IO5.js +13 -0
- package/dist/lv-LV-DYqBaW2-.js +63 -0
- package/dist/lv-LV-aAd9SEqx.js +65 -0
- package/dist/lv-LV-dA8yYdKe.js +13 -0
- package/dist/mail-VHTlAusn.js +14 -0
- package/dist/manual-verification-BO8zgAYT.js +41 -0
- package/dist/mapExistingFile-1MUQJf2c.js +230 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-BCWDaJEu.js +162 -0
- package/dist/mapLegalEntityToIndividualSchema-D7Eku9KI.js +206 -0
- package/dist/mapTransferInstrumentToPayoutAccount-BYNYjRzc.js +34 -0
- package/dist/minus-circle-filled-ZhtJ0GD3.js +17 -0
- package/dist/nl-NL-B0fvINJj.js +75 -0
- package/dist/nl-NL-CmURERx_.js +65 -0
- package/dist/nl-NL-CnvvqAEg.js +13 -0
- package/dist/nl-NL-D1b5RUJ0.js +38 -0
- package/dist/nl-NL-DV4NqPVW.js +13 -0
- package/dist/nl-NL-KQ6bciOb.js +13 -0
- package/dist/nl-NL-KsfqCp2v.js +61 -0
- package/dist/nl-NL-SjOGmGk5.js +13 -0
- package/dist/nl-NL-lcNM54vV.js +63 -0
- package/dist/no-NO-B9618F4_.js +13 -0
- package/dist/no-NO-BAWVf0GX.js +13 -0
- package/dist/no-NO-BdG6WnpB.js +61 -0
- package/dist/no-NO-CIKbQbKT.js +13 -0
- package/dist/no-NO-CTrVITNu.js +63 -0
- package/dist/no-NO-Dkh4SWbB.js +38 -0
- package/dist/no-NO-Ds3VioxT.js +13 -0
- package/dist/no-NO-Jw7Gae-a.js +75 -0
- package/dist/no-NO-qyqWODMp.js +65 -0
- package/dist/onfido-logo-BSkKPH10.js +14 -0
- package/dist/options-horizontal-GuXvLvV3.js +18 -0
- package/dist/partner-QD27Vy4w.js +18 -0
- package/dist/passport-blurred-CVG493IJ.js +59 -0
- package/dist/passport-cut-off-COzA_TmB.js +56 -0
- package/dist/passport-front-WJleLixT.js +52 -0
- package/dist/passport-front-green-CZVkCa1n.js +232 -0
- package/dist/passport-glare-BP5WnJZj.js +50 -0
- package/dist/patternValidators-Ddoxs0Q5.js +83 -0
- package/dist/pay-by-link-plane-BpY8Q6-B.js +22 -0
- package/dist/payout-DtB68BcZ.js +20 -0
- package/dist/payout-verification-instant-BzpfOQLD.js +41 -0
- package/dist/payout-verification-manual-gNEoeZkV.js +90 -0
- package/dist/person-IVZG3t3_.js +17 -0
- package/dist/pl-PL-BgbxWHGE.js +13 -0
- package/dist/pl-PL-BkGihn5Q.js +38 -0
- package/dist/pl-PL-Bmaq3IC3.js +75 -0
- package/dist/pl-PL-CErRPlR2.js +63 -0
- package/dist/pl-PL-CTOkaDMG.js +13 -0
- package/dist/pl-PL-DEMxxz7h.js +13 -0
- package/dist/pl-PL-DW9eaUml.js +61 -0
- package/dist/pl-PL-DqzUSnFK.js +13 -0
- package/dist/pl-PL-q9azN24o.js +65 -0
- package/dist/plaid-logo-FsZ7kfL-.js +14 -0
- package/dist/plus-DiALAL8-.js +14 -0
- package/dist/plus-circle-filled-BzHtTqEN.js +17 -0
- package/dist/process-field-configurations-BgkGx8kj.js +324 -0
- package/dist/pt-BR-BRdIEO2O.js +38 -0
- package/dist/pt-BR-BaTE6BB_.js +75 -0
- package/dist/pt-BR-BdfWE-a1.js +61 -0
- package/dist/pt-BR-BfDe_8iW.js +13 -0
- package/dist/pt-BR-BxoOF8jB.js +65 -0
- package/dist/pt-BR-CLUsrQAl.js +13 -0
- package/dist/pt-BR-Ct4s4jXV.js +13 -0
- package/dist/pt-BR-DA44Wgbt.js +63 -0
- package/dist/pt-BR-zuqB_CBf.js +13 -0
- package/dist/pt-PT-BLRgiqFj.js +13 -0
- package/dist/pt-PT-BfL7qUzo.js +38 -0
- package/dist/pt-PT-CFY1O_K0.js +13 -0
- package/dist/pt-PT-DBEsmXQX.js +13 -0
- package/dist/pt-PT-F1qPZJ2c.js +13 -0
- package/dist/pt-PT-PIiikho9.js +63 -0
- package/dist/pt-PT-c0ap84_F.js +75 -0
- package/dist/pt-PT-ej54BPbB.js +61 -0
- package/dist/pt-PT-pIChDwiI.js +65 -0
- package/dist/recurring-DKNs9K3x.js +17 -0
- package/dist/reporting-D5ABpLO_.js +16 -0
- package/dist/resolveEnvironment-BOoObZUD.js +84 -0
- package/dist/revenue-accelerate-D7Sp0V4a.js +17 -0
- package/dist/review-D4TUjcWF.js +17 -0
- package/dist/ro-RO-0vx6ZLWV.js +13 -0
- package/dist/ro-RO-1ZFmLikG.js +61 -0
- package/dist/ro-RO-7CJ4F5iB.js +13 -0
- package/dist/ro-RO-BPOHV6Wp.js +75 -0
- package/dist/ro-RO-BeA_YyJ8.js +13 -0
- package/dist/ro-RO-Bv9hZxwD.js +63 -0
- package/dist/ro-RO-C00Ig8CL.js +13 -0
- package/dist/ro-RO-C2yBVFht.js +38 -0
- package/dist/ro-RO-DRsaNX9j.js +65 -0
- package/dist/roleMetadata-45H_XXPF.js +66 -0
- package/dist/save-BfqO2JBI.js +14 -0
- package/dist/search-Cmzbf5zI.js +17 -0
- package/dist/show-IdbU1C6P.js +17 -0
- package/dist/singpass-logo-wY4xsmTX.js +17 -0
- package/dist/singpass-verification-instant-JCqTr7Mv.js +40 -0
- package/dist/singpass-verification-manual-DQ7XW6R3.js +34 -0
- package/dist/sk-SK-3_SoEn6P.js +75 -0
- package/dist/sk-SK-7-enbO1N.js +65 -0
- package/dist/sk-SK-BbJWayDh.js +13 -0
- package/dist/sk-SK-C74EF23u.js +38 -0
- package/dist/sk-SK-ChVwlbp0.js +63 -0
- package/dist/sk-SK-Dm-pif_7.js +61 -0
- package/dist/sk-SK-DuLm2CVx.js +13 -0
- package/dist/sk-SK-DubwJifw.js +13 -0
- package/dist/sk-SK-Og9MJXpR.js +13 -0
- package/dist/sl-SI-59OQIZ3f.js +13 -0
- package/dist/sl-SI-BAIm-qBe.js +13 -0
- package/dist/sl-SI-CoI7iOco.js +13 -0
- package/dist/sl-SI-CvUzNn9Z.js +38 -0
- package/dist/sl-SI-DTvJT7fC.js +65 -0
- package/dist/sl-SI-DZHePXbK.js +63 -0
- package/dist/sl-SI-DbfswGh0.js +75 -0
- package/dist/sl-SI-HO7231cu.js +61 -0
- package/dist/sl-SI-hxwQIw_i.js +13 -0
- package/dist/solution-payments-DpyE_sdS.js +14 -0
- package/dist/store-Btc4GcmU.js +14 -0
- package/dist/style.css +2846 -2814
- package/dist/styles-CLV89_hH.js +2846 -2814
- package/dist/summaryItem-CAQCQSkt.js +18 -0
- package/dist/sv-SE-0PQ-U1u6.js +13 -0
- package/dist/sv-SE-BZNey_8S.js +13 -0
- package/dist/sv-SE-BcJ8p_Tx.js +61 -0
- package/dist/sv-SE-BsLkPEzn.js +38 -0
- package/dist/sv-SE-CQWBP7n1.js +13 -0
- package/dist/sv-SE-ChoPzG_G.js +13 -0
- package/dist/sv-SE-D_Efxy3s.js +75 -0
- package/dist/sv-SE-Dq56vGlB.js +63 -0
- package/dist/sv-SE-N-Hqwcjq.js +65 -0
- package/dist/tax-reporting-graph-hgoilCHZ.js +504 -0
- package/dist/terminal-1-D1pwXCoi.js +18 -0
- package/dist/tink-logo-DDyjz5eJ.js +17 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
- package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
- package/dist/types/api/address/useSearchAddress.d.ts +1 -2
- package/dist/types/api/businessLines/businessLines.types.d.ts +6 -1
- package/dist/types/api/businessLines/useBusinessLines.d.ts +3 -3
- package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +2 -2
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +2 -2
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +2 -2
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
- package/dist/types/api/check/useCheck.d.ts +1 -2
- package/dist/types/api/companyDataSet/companyDataset.types.d.ts +5 -0
- package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +6 -3
- package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +2 -2
- package/dist/types/api/companySearch/companySearch.types.d.ts +8 -0
- package/dist/types/api/companySearch/useCompanySearch.d.ts +9 -4
- package/dist/types/api/companySelection/companySelection.types.d.ts +3 -3
- package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -18
- package/dist/types/api/configurations/useScenarios.d.ts +3 -161
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +2 -2
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -4
- package/dist/types/api/documents/useCreateDocument.d.ts +2 -2
- package/dist/types/api/documents/useDeleteDocument.d.ts +2 -2
- package/dist/types/api/documents/useDocument.d.ts +2 -2
- package/dist/types/api/documents/useDocuments.d.ts +4 -0
- package/dist/types/api/documents/useUpdateDocument.d.ts +2 -2
- package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -4
- package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +3 -3
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -2
- package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +8 -389
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +5 -5
- package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -2
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -2
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +1 -1
- package/dist/types/api/pci/usePciStatus.d.ts +1 -1
- package/dist/types/api/pci/usePciTemplate.d.ts +1 -1
- package/dist/types/api/pci/useSignPci.d.ts +2 -3
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
- package/dist/types/api/queryKeys.d.ts +4 -2
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -1
- package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +2 -3
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -7
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -1
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -1
- package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
- package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +15 -0
- package/dist/types/api/types.d.ts +3 -2
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
- package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +2 -3
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -1
- package/dist/types/components/Apps/tasks/TaskList/utils.d.ts +4 -0
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +0 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +439 -439
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +3 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -4
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +8 -0
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +4 -6
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +2 -5
- package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +1 -4
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +5 -18
- package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +2 -0
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +12 -46
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -22
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +8 -9
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +13 -3
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +0 -11
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +3 -4
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +0 -6
- package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +4 -0
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +3 -0
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +3 -0
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/ProofOfDirectorDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/ProofOfSignatoryDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/RegistrationDocument/RegistrationDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -3
- package/dist/types/components/Business/forms/TaxDocument/TaxDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -3
- package/dist/types/components/Business/forms/forms.types.d.ts +0 -3
- package/dist/types/components/Business/forms/rules.d.ts +10 -10
- package/dist/types/components/Business/mapping/businessDetails/businessBankAccountTaxIdUtils.d.ts +7 -0
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -2
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +8 -2
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -6
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +24 -9
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
- package/dist/types/components/Business/utils/companyUtil.d.ts +0 -10
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +5 -0
- package/dist/types/components/Business/utils/submit.d.ts +2 -0
- package/dist/types/components/Business/utils/useBusinessDetailsData.d.ts +21 -0
- package/dist/types/components/BusinessLines/constants.d.ts +10 -0
- package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +10 -10
- package/dist/types/components/BusinessLines/fields/SctaField/SctaField.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +6 -0
- package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/forms/IndustryCodesForm/IndustryCodesForm.d.ts +1 -1
- package/dist/types/components/BusinessLines/forms/SctaForm/SctaForm.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/SctaForm/SctaInfoModal.d.ts +3 -0
- package/dist/types/components/BusinessLines/forms/SctaForm/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/rules.d.ts +2 -1
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +1 -2
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +2 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/types.d.ts +4 -0
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +26 -4
- package/dist/types/components/BusinessLines/tasks/validate.d.ts +2 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5812 -582
- 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 +15 -4
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +10 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +20 -21
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +6 -4
- package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/InvitedDecisionMakerComponent/InvitedDecisionMakerComponent.d.ts +4 -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/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -3
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +29 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/Identity.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +11 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.d.ts +4 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +22 -0
- package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +22 -0
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +8 -0
- package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +12 -0
- package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +24 -0
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +43 -0
- package/dist/types/components/Individual/forms/IdDocumentUpload/utils.d.ts +3 -0
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +18 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/IdVerificationMethod.types.d.ts +21 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +7 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +7 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +46 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +4 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +12 -0
- package/dist/types/components/Individual/forms/Individual.d.ts +56 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +45 -0
- package/dist/types/components/Individual/forms/Individual.types.d.ts +60 -0
- package/dist/types/components/Individual/forms/ProofOfRelationship/types.d.ts +14 -0
- package/dist/types/components/Individual/forms/ProofOfResidency/types.d.ts +39 -0
- package/dist/types/components/Individual/forms/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +6 -0
- package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaire.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +7 -0
- package/dist/types/components/Individual/forms/form-ids.d.ts +2 -0
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -2
- package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -3
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
- package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +1 -1
- package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +1 -1
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -12
- package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -3
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -0
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +3 -0
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +6 -7
- package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +2 -14
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +0 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +8 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
- package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
- package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +0 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/copy.d.ts +3 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -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/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +117 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
- 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/LocalizedNameFields/types.d.ts +9 -0
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +5 -0
- 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/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +5 -0
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +8 -0
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +6 -0
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +3 -1
- package/dist/types/components/Shared/forms/Address/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +5 -4
- 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 +5 -5
- package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +2 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +2 -1
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +1 -1
- 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 +5 -5
- 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/Card/Card.d.ts +19 -0
- package/dist/types/components/ui/atoms/Link/Link.types.d.ts +1 -1
- package/dist/types/components/ui/atoms/Loader/Loader.d.ts +11 -5
- package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
- package/dist/types/components/ui/atoms/MultiSelectList/MultiSelectList.d.ts +0 -1
- package/dist/types/components/ui/atoms/Svg/Svg.d.ts +0 -1
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +4 -0
- package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +0 -1
- package/dist/types/context/ExperimentContext/types.d.ts +28 -50
- package/dist/types/context/QueryContext/QueryClient.d.ts +1 -1
- package/dist/types/context/StateContext/types.d.ts +2 -3
- package/dist/types/core/models/api/individual.d.ts +3 -0
- package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
- package/dist/types/core/models/api/legal-arrangement.d.ts +3 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
- package/dist/types/core/models/api/legal-entity.d.ts +1 -6
- package/dist/types/core/process-field-configurations.d.ts +0 -5
- package/dist/types/core/services/types.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +4 -2
- package/dist/types/embeds/baseEmbedProps.d.ts +0 -21
- package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +2 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +2 -0
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +5 -1
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.d.ts +5 -0
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +34 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +2 -1
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.d.ts +5 -1
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.d.ts +2 -1
- package/dist/types/embeds/verification-status/adyen-verification-status.d.ts +2 -1
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -1
- package/dist/types/hooks/useForm/types.d.ts +0 -8
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +4 -2
- package/dist/types/hooks/usePageLandedEvent.d.ts +7 -0
- package/dist/types/hooks/useUboQuestionnaire.d.ts +2 -2
- package/dist/types/language/types.d.ts +7 -2
- package/dist/types/language/utils.d.ts +1 -2
- 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/stores/formState.d.ts +2 -0
- package/dist/types/stores/globalStore/get-task-status.d.ts +6 -0
- package/dist/types/stores/globalStore/taskStatus.d.ts +5 -3
- package/dist/types/types/assert.d.ts +1 -0
- package/dist/types/types/datasets/currency.d.ts +0 -1
- package/dist/types/types/form.d.ts +0 -2
- package/dist/types/utils/addLinkedFields.d.ts +0 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -0
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +28 -0
- package/dist/types/utils/api/documentUtils.d.ts +6 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +14 -2
- package/dist/types/utils/birthDateUtils.d.ts +0 -17
- package/dist/types/utils/customerSupportUtils.d.ts +3 -0
- package/dist/types/utils/entityAssociationUtil.d.ts +3 -4
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +0 -2
- package/dist/types/utils/formUtils.d.ts +1 -6
- package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -2
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -3
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/types/utils/japanSupportUtils.d.ts +3 -0
- package/dist/types/utils/logger.d.ts +0 -1
- package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
- package/dist/types/utils/performance.d.ts +64 -0
- package/dist/types/utils/regex/patternValidators.d.ts +1 -1
- package/dist/types/utils/translation.d.ts +3 -2
- package/dist/types/utils/validatorUtils.d.ts +3 -1
- package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +3 -2
- package/dist/types-BW4HQI5X.js +142 -0
- package/dist/types-D7ibfssA.js +74 -0
- package/dist/types-DRjaiEYd.js +64 -0
- package/dist/types-DSsQZPmi.js +34 -0
- package/dist/unincorporated-partnership-MeN1dp53.js +97 -0
- package/dist/upload-BmUXjsaU.js +17 -0
- package/dist/us-check-C1rTBsCY.js +46 -0
- package/dist/us-check-account-number-9lI1dXNC.js +48 -0
- package/dist/us-check-routing-number-s_KaAGSM.js +49 -0
- package/dist/useAssociatedLegalEntity-jaSfQ9rQ.js +34 -0
- package/dist/useBusinessDetailsData-5O2km9MB.js +5310 -0
- package/dist/useBusinessLines-DuBQrvIQ.js +29 -0
- package/dist/useCanSeeIntroduction-Boj-VdF4.js +48 -0
- package/dist/useCreateLegalEntity-DQx1byaP.js +32 -0
- package/dist/useDataMissingRemediations-Drava4pQ.js +41 -0
- package/dist/useDataset-3t4wCptb.js +76 -0
- package/dist/useDeleteTransferInstrument-CUjrvIfw.js +32 -0
- package/dist/useForm-CsrT0zKF.js +582 -0
- package/dist/useFormContext-D1NuWw_2.js +201 -0
- package/dist/useGlobalData-vS5GxkpZ.js +68 -0
- package/dist/useId-BZ0PA7jP.js +24 -0
- package/dist/useMultiForm-82RYFvCF.js +873 -0
- package/dist/useNavigate-DLBqtyNN.js +265 -0
- package/dist/useOnboardingStatus-B3HSS36K.js +28 -0
- package/dist/usePciQuestionnaireList-B2425Wiw.js +29 -0
- package/dist/useSalesChannels-B9Z_g_9G.js +65 -0
- package/dist/useScenarios-DCRvLaxV.js +48 -0
- package/dist/useSetting-C108TWwa.js +19 -0
- package/dist/useTaskStatus-DjHWxlNL.js +51 -0
- package/dist/useTermsOfServiceStatus-BTLQKn3X.js +43 -0
- package/dist/useToastContext-CYdZ2BD2.js +49 -0
- package/dist/useTrustMembers-BvFhj1PW.js +163 -0
- package/dist/useUnincorporatedPartnershipMembers-wCGUg18Y.js +99 -0
- package/dist/useUpdateBusinessLines-DAHY8qXu.js +339 -0
- package/dist/useUpdateLegalEntity-B7VJAlhD.js +40 -0
- package/dist/utils-BCit-Kzj.js +58 -0
- package/dist/utils-BU2KHXr7.js +237 -0
- package/dist/utils-BiqRkf5f.js +159 -0
- package/dist/utils-C4cwFCf5.js +778 -0
- package/dist/utils-Cc8niKnm.js +29 -0
- package/dist/validate-BnkIeDb7.js +434 -0
- package/dist/validate-fYuz9-yq.js +108 -0
- package/dist/validationError-Bod1gd-k.js +86 -0
- package/dist/warning-circle-fill-DBvt921B.js +17 -0
- package/dist/warning-diamond-filled-Lb2od2ry.js +17 -0
- package/dist/webinar-m9nuFZBt.js +22 -0
- package/dist/yapily-logo-BduxhNRA.js +17 -0
- package/package.json +78 -57
- package/dist/4-people-BzyXLUF9.js +0 -24
- package/dist/AcceptTermsOfServiceComponent-B150yg9N.js +0 -659
- package/dist/Accordion-CVxApR1X.js +0 -88
- package/dist/AccountSetupRejected--dXDa8bC.js +0 -26
- package/dist/ActionBar-Tv1K68ZK.js +0 -31
- package/dist/Address-DrRgozSN.js +0 -1348
- package/dist/Alert-BVHHWVgg.js +0 -159
- package/dist/Avatar-sN35oNt2.js +0 -60
- package/dist/BG-DlvaKo4n.js +0 -27
- package/dist/BusinessDetailsMultiformDropin-BeJATuiX.js +0 -4220
- package/dist/BusinessFinancingComponent-CGBUx-zj.js +0 -54
- package/dist/BusinessFinancingDropin-DxKkpM-k.js +0 -1853
- package/dist/BusinessFinancingPage-JChGPCHT.js +0 -43
- package/dist/BusinessTypeSelectionPage-CH-OiNqT.js +0 -427
- package/dist/Card-B66f7NuH.js +0 -82
- package/dist/ConstitutionalDocument-DIW7X8rZ.js +0 -143
- package/dist/ContractViewer-Byp71k2e.js +0 -935
- package/dist/CountryField-D36v7bff.js +0 -843
- package/dist/CreateIndividualComponent-fmBoSuxQ.js +0 -71
- package/dist/CreateTransferInstrumentComponent-CViSbC6e.js +0 -63
- package/dist/Currency-DlHtZ9aJ.js +0 -183
- package/dist/CustomerSupport-L3PHpji7.js +0 -153
- package/dist/DebugModal-C1mi00fP.js +0 -413
- package/dist/DecisionMakerDetailsPage-li_HZWuV.js +0 -106
- package/dist/DecisionMakers-C8AjEnUh.js +0 -830
- package/dist/EmbeddedStatus-CrKg6woS.js +0 -99
- package/dist/EndStateLayout-CPXu6AzB.js +0 -71
- package/dist/EntityAssociation-SkprG-At.js +0 -159
- package/dist/EntityGuidanceStatus-D9lctwyX.js +0 -105
- package/dist/FormFlow-BVw3rIvU.js +0 -224
- package/dist/FormNavigation-Bag7ETpV.js +0 -144
- package/dist/FormWrapper-BfsyttAY.js +0 -135
- package/dist/IndividualOnfido-CmDDWqG_.js +0 -9594
- package/dist/IndividualOnfidoDropin-VMZXwhd7.js +0 -2497
- package/dist/InputText-DHRZ5RNd.js +0 -249
- package/dist/Introduction-Cht7yZI7.js +0 -300
- package/dist/JpAddress-DCky_der.js +0 -280
- package/dist/LegalRepresentativeDetailsPage-Bez436Rb.js +0 -60
- package/dist/ListItem-DrwSQslm.js +0 -69
- package/dist/ManageIndividualComponent-lLoElwga.js +0 -46
- package/dist/ManageTermsOfServiceComponent-CH1M-H1Y.js +0 -52
- package/dist/ManageTransferInstrumentComponent-NZ8vELQC.js +0 -287
- package/dist/MaybeModal-D4PWacZ0.js +0 -25
- package/dist/Modal-lDK70UQc.js +0 -149
- package/dist/OnboardingDropinComponent-Cljx74I-.js +0 -7908
- package/dist/PayoutDetailsDropin-p2t6lj8Z.js +0 -4841
- package/dist/Review-fdhuI2MF.js +0 -83
- package/dist/RootBusinessDetailsPage-Bb1mWkAw.js +0 -61
- package/dist/RootBusinessLinesPage-Bge83rhi.js +0 -1118
- package/dist/RootIndividualDetailsPage-B31dJO7o.js +0 -71
- package/dist/SignPCIComponent-C0P_OLXa.js +0 -304
- package/dist/SingpassSelection-B2rjBQ6u.js +0 -130
- package/dist/SoleProprietorshipPage-3S2tDRwx.js +0 -60
- package/dist/SourceOfFundsPage-BpV6fE8P.js +0 -2383
- package/dist/StepProgressIndicator-CBkt5fOY.js +0 -78
- package/dist/StoreProvider-l6WD5T55.js +0 -7674
- package/dist/Summary-Ccxu9A6C.js +0 -204
- package/dist/TaxReportingDropin-H22DcnSG.js +0 -502
- package/dist/TrustDetailsPage-BvIa1mbz.js +0 -2149
- package/dist/TrustMemberCompanyPage-VNaovE9r.js +0 -73
- package/dist/TrustMemberIndividualPage-Dp9kroxy.js +0 -66
- package/dist/TrustMemberRoleAndTypePage-BbbTPGJm.js +0 -985
- package/dist/TrustMembersOverview-Dd7lo_I5.js +0 -438
- package/dist/UnincorporatedPartnershipIndividualPage-CcLh5gtc.js +0 -65
- package/dist/UnincorporatedPartnershipMemberCompanyPage-DA-1RrVz.js +0 -76
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-CgLeyHTs.js +0 -281
- package/dist/UnincorporatedPartnershipMembersOverview-CNONb63l.js +0 -172
- package/dist/VerificationErrorAlert-D7gb2Rqo.js +0 -79
- package/dist/ViewVerificationStatusComponent-DpeNbWSm.js +0 -180
- package/dist/arrow-right-KxA3SvQj.js +0 -14
- package/dist/bag-BPumznWh.js +0 -14
- package/dist/bank-D6FiNBhs.js +0 -14
- package/dist/bg-BG-B7Xs_t04.js +0 -13
- package/dist/bg-BG-CepHap8j.js +0 -68
- package/dist/bg-BG-D9J6LnkI.js +0 -57
- package/dist/bg-BG-DH45-0B-.js +0 -29
- package/dist/bg-BG-DRkMqyL8.js +0 -13
- package/dist/bg-BG-Dp4LxSP7.js +0 -37
- package/dist/bg-BG-DpIAKQve.js +0 -113
- package/dist/bg-BG-mLSjG76Q.js +0 -13
- package/dist/bg-BG-wVquMNtT.js +0 -55
- package/dist/bin-Bz6KOIeE.js +0 -18
- package/dist/business-lines-DboUCbXw.js +0 -135
- package/dist/capital-GVQ3svwN.js +0 -17
- package/dist/cash-stack-D9AoDDwt.js +0 -22
- package/dist/certificate-CdEWgHQf.js +0 -17
- package/dist/checkmark-Q7x6tGhy.js +0 -14
- package/dist/checkmark-circle-fill-CsvN5_PL.js +0 -17
- package/dist/checkmark-circle-x7dzbp3I.js +0 -20
- package/dist/checkmark-small-D35myntq.js +0 -14
- package/dist/chevron-down-C2iDorpW.js +0 -14
- package/dist/chevron-left-ztPO84q-.js +0 -14
- package/dist/chevron-right-C_JN0oDt.js +0 -14
- package/dist/chevron-up-CgG8n25g.js +0 -14
- package/dist/circle-Bt3Nlr3q.js +0 -17
- package/dist/circle-small-filled-YMzP6yQU.js +0 -14
- package/dist/clock-BZHremOA.js +0 -20
- package/dist/coins-fkAk6dCo.js +0 -17
- package/dist/contract-BTa4HltT.js +0 -14
- package/dist/cross-Cn09MtQ_.js +0 -14
- package/dist/cross-circle-fill-small-DCz52AuN.js +0 -14
- package/dist/cs-CZ--jOkoHVS.js +0 -55
- package/dist/cs-CZ-BDf9m4Rw.js +0 -113
- package/dist/cs-CZ-BP7niQM9.js +0 -68
- package/dist/cs-CZ-BSWXexr4.js +0 -13
- package/dist/cs-CZ-BsV9NiQ2.js +0 -13
- package/dist/cs-CZ-CyLqoG1j.js +0 -37
- package/dist/cs-CZ-DPVMeRye.js +0 -29
- package/dist/cs-CZ-DY_pQqAT.js +0 -57
- package/dist/cs-CZ-DalFZigH.js +0 -13
- package/dist/da-DK-CI-vfqPo.js +0 -113
- package/dist/da-DK-D4Ojw97o.js +0 -13
- package/dist/da-DK-DU4dCNEw.js +0 -29
- package/dist/da-DK-DYpfNZdP.js +0 -37
- package/dist/da-DK-Dc0QYG8m.js +0 -68
- package/dist/da-DK-JHZnsI59.js +0 -55
- package/dist/da-DK-P3YSaBqs.js +0 -13
- package/dist/da-DK-R_y7YwqQ.js +0 -13
- package/dist/da-DK-jK7c9UL0.js +0 -57
- package/dist/de-DE-BR6CLZw6.js +0 -13
- package/dist/de-DE-BXt1K0Tr.js +0 -37
- package/dist/de-DE-BcuLmcC8.js +0 -13
- package/dist/de-DE-Dz2OsS1F.js +0 -68
- package/dist/de-DE-Dz2l6jRl.js +0 -29
- package/dist/de-DE-VGGEkxUT.js +0 -55
- package/dist/de-DE-nG2MBigU.js +0 -113
- package/dist/de-DE-opyC1JO-.js +0 -13
- package/dist/de-DE-wmerDL2e.js +0 -57
- package/dist/debouncedInputEvent-Bifj90NU.js +0 -109
- package/dist/decision-makers-group-CgddXgrx.js +0 -1944
- package/dist/digital-wallet-D_IpxnkN.js +0 -46
- package/dist/document-1-C08ut-Dt.js +0 -14
- package/dist/document-blurred-2Zpodj3_.js +0 -37
- package/dist/document-cut-off-ClS7RiOp.js +0 -32
- package/dist/document-expired-CjksBq-N.js +0 -38
- package/dist/document-front-DiAairT3.js +0 -30
- package/dist/document-person-vxlA6C5f.js +0 -20
- package/dist/documentUtils-CunPooif.js +0 -218
- package/dist/download-Drhk9k1f.js +0 -17
- package/dist/dropinUtils-DSk8OL7G.js +0 -202
- package/dist/edit-1-CFoDTMvQ.js +0 -14
- package/dist/el-GR-B3FHqTOX.js +0 -13
- package/dist/el-GR-B90M6tcZ.js +0 -37
- package/dist/el-GR-BHG69mXl.js +0 -68
- package/dist/el-GR-BX-MyQZY.js +0 -113
- package/dist/el-GR-Btrk_npt.js +0 -57
- package/dist/el-GR-CWd7XYDU.js +0 -13
- package/dist/el-GR-CofvCav-.js +0 -13
- package/dist/el-GR-MLFY-Gg7.js +0 -29
- package/dist/el-GR-gkaKwnln.js +0 -55
- package/dist/en-US-BPI4FZwa.js +0 -113
- package/dist/en-US-CzEL6t1W.js +0 -55
- package/dist/en-US-D-B35AoN.js +0 -68
- package/dist/en-US-DYo4OF-P.js +0 -29
- package/dist/en-US-Dg505Oh3.js +0 -37
- package/dist/en-US-fyGPkcqX.js +0 -13
- package/dist/en-US-gsp7CD_E.js +0 -57
- package/dist/es-ES-0ROz-BJh.js +0 -29
- package/dist/es-ES-BAg3NqQO.js +0 -13
- package/dist/es-ES-BI_jdT67.js +0 -68
- package/dist/es-ES-BhINIOee.js +0 -13
- package/dist/es-ES-BhNhIf08.js +0 -37
- package/dist/es-ES-Bn9_0wK0.js +0 -55
- package/dist/es-ES-CEp-ttVJ.js +0 -13
- package/dist/es-ES-Q16q2JJ6.js +0 -113
- package/dist/es-ES-Qnc0Q6JH.js +0 -57
- package/dist/et-EE-BMgFCxds.js +0 -37
- package/dist/et-EE-BYSnV6Iq.js +0 -55
- package/dist/et-EE-Bk2IHQWP.js +0 -13
- package/dist/et-EE-C_PZO2aI.js +0 -68
- package/dist/et-EE-Ci8RU2wg.js +0 -13
- package/dist/et-EE-DmShD6oS.js +0 -113
- package/dist/et-EE-TzXANcP2.js +0 -57
- package/dist/et-EE-esci5847.js +0 -29
- package/dist/et-EE-x29FUaYN.js +0 -118
- package/dist/external-link-DCMYUMfW.js +0 -14
- package/dist/fi-FI-B_P4BAda.js +0 -113
- package/dist/fi-FI-CDISJifz.js +0 -13
- package/dist/fi-FI-DjlB2a7k.js +0 -13
- package/dist/fi-FI-Dn2MC8uW.js +0 -57
- package/dist/fi-FI-MiyuQqH8.js +0 -13
- package/dist/fi-FI-PVFqd5Ra.js +0 -55
- package/dist/fi-FI-hwzizPnr.js +0 -68
- package/dist/fi-FI-xXrvDLFe.js +0 -29
- package/dist/fi-FI-ysUrBilO.js +0 -37
- package/dist/fieldConfigurations-D99U6JIQ.js +0 -1402
- package/dist/fr-FR-BSvSKazD.js +0 -37
- package/dist/fr-FR-BWX14yb7.js +0 -57
- package/dist/fr-FR-Bw9O-QAU.js +0 -29
- package/dist/fr-FR-CUdiBCVB.js +0 -113
- package/dist/fr-FR-CYZXbwc9.js +0 -68
- package/dist/fr-FR-DGMVrsJv.js +0 -13
- package/dist/fr-FR-Dx-CiPdB.js +0 -13
- package/dist/fr-FR-aJ3cg4x0.js +0 -13
- package/dist/fr-FR-mJK4hjwD.js +0 -55
- package/dist/funds-in-D8bj0aoE.js +0 -21
- package/dist/getFieldsWithExistingData-BLXGczCN.js +0 -22
- package/dist/getName-_U3PeNHl.js +0 -48
- package/dist/gift-CQ_DEma7.js +0 -14
- package/dist/graph-BJmqglH2.js +0 -21
- package/dist/graph-up-Bq6adtlX.js +0 -20
- package/dist/hasDataChanged-BwDHn0i2.js +0 -19
- package/dist/headquarter-DNYyuuFq.js +0 -21
- package/dist/hotel-BuNql78Z.js +0 -22
- package/dist/house-B6sNRj-B.js +0 -21
- package/dist/hr-HR-BHt_jklG.js +0 -13
- package/dist/hr-HR-BLpGb4f2.js +0 -37
- package/dist/hr-HR-CXpCIMhI.js +0 -113
- package/dist/hr-HR-CZLSQruE.js +0 -57
- package/dist/hr-HR-D8_yhtIo.js +0 -29
- package/dist/hr-HR-VivDwwdW.js +0 -13
- package/dist/hr-HR-bE6cvRCQ.js +0 -68
- package/dist/hr-HR-n7aMHIpM.js +0 -13
- package/dist/hr-HR-qmYyO-nT.js +0 -55
- package/dist/hu-HU-CS-7iNS4.js +0 -55
- package/dist/hu-HU-Ca9Hex26.js +0 -37
- package/dist/hu-HU-DDsdPI5V.js +0 -13
- package/dist/hu-HU-DG-NUDx4.js +0 -68
- package/dist/hu-HU-D_DvlCMw.js +0 -13
- package/dist/hu-HU-DqEBeq-w.js +0 -113
- package/dist/hu-HU-KliQetm5.js +0 -29
- package/dist/hu-HU-WEtpzb41.js +0 -13
- package/dist/hu-HU-kp8Go5hZ.js +0 -57
- package/dist/id-blurred-9dzBOWCE.js +0 -59
- package/dist/id-cut-off-CohJCI2h.js +0 -55
- package/dist/id-front-CSZfvdRg.js +0 -52
- package/dist/id-glare-Q2JWo5ts.js +0 -49
- package/dist/id-verification-instant-BUVBO4R3.js +0 -58
- package/dist/id-verification-manual-B3YZALYU.js +0 -55
- package/dist/iframeWidget-BEBSgwZP.js +0 -234
- package/dist/image-BSihO8lR.js +0 -17
- package/dist/info-vHTZWoJ7.js +0 -21
- package/dist/instant-verification-Dvvkyfmp.js +0 -40
- package/dist/it-IT-B0YGvVgW.js +0 -57
- package/dist/it-IT-BTWkWSJq.js +0 -55
- package/dist/it-IT-C2MZo4KT.js +0 -13
- package/dist/it-IT-DLm11dH5.js +0 -13
- package/dist/it-IT-Erh1DIlj.js +0 -68
- package/dist/it-IT-MwpjRAG6.js +0 -29
- package/dist/it-IT-NCFAqV1F.js +0 -113
- package/dist/it-IT-Qfzc8jnW.js +0 -37
- package/dist/it-IT-yV7ewjWU.js +0 -13
- package/dist/ja-JP-2u5fqLWF.js +0 -29
- package/dist/ja-JP-Bktpl_2b.js +0 -118
- package/dist/ja-JP-CHQ64lw1.js +0 -37
- package/dist/ja-JP-CSz7fEkn.js +0 -55
- package/dist/ja-JP-CWe8f7m4.js +0 -13
- package/dist/ja-JP-C_-moDrA.js +0 -113
- package/dist/ja-JP-Ctsk4z4q.js +0 -151
- package/dist/ja-JP-Dz9IVH4p.js +0 -57
- package/dist/ja-JP-ThzG9vIo.js +0 -68
- package/dist/ja-JP-bz7ekGnF.js +0 -27
- package/dist/localizeDateString-RwwotuyP.js +0 -27
- package/dist/location-Q4oKvnkl.js +0 -17
- package/dist/lt-LT-0RKZeraM.js +0 -37
- package/dist/lt-LT-B6XmKUXx.js +0 -55
- package/dist/lt-LT-BEsBoIQ9.js +0 -29
- package/dist/lt-LT-CU5qHa7a.js +0 -113
- package/dist/lt-LT-CYiW52tl.js +0 -13
- package/dist/lt-LT-Cg9c0kae.js +0 -13
- package/dist/lt-LT-Nd1uRoIj.js +0 -68
- package/dist/lt-LT-W6fTjwB5.js +0 -13
- package/dist/lt-LT-l9rzkFg9.js +0 -57
- package/dist/lv-LV-Bh-WQp0K.js +0 -37
- package/dist/lv-LV-CgMxfFK8.js +0 -13
- package/dist/lv-LV-CpGkmcLz.js +0 -113
- package/dist/lv-LV-CxUmQHF9.js +0 -13
- package/dist/lv-LV-DKhV24CI.js +0 -68
- package/dist/lv-LV-DYbb5pkt.js +0 -57
- package/dist/lv-LV-DsSpy50n.js +0 -55
- package/dist/lv-LV-DsxFGThp.js +0 -13
- package/dist/lv-LV-Veji7-on.js +0 -29
- package/dist/mail-BOdyoVqB.js +0 -14
- package/dist/manual-verification-BvZWqA00.js +0 -41
- package/dist/mapExistingFile-nB9LIvV9.js +0 -156
- package/dist/mapFinancialReportsToFinancialInformation-BgizOY0T.js +0 -67
- package/dist/mapJpAddressSchemaToAddressLocalizations-DnDo_BVY.js +0 -63
- package/dist/mapLegalEntityToIndividualOnfidoSchema-BpjOTE3z.js +0 -143
- package/dist/mapTransferInstrumentToPayoutAccount-DMZUSLNm.js +0 -33
- package/dist/minus-circle-filled-kC2IUvKz.js +0 -17
- package/dist/nl-NL-BMUYBqlF.js +0 -57
- package/dist/nl-NL-Bk-1-C0e.js +0 -13
- package/dist/nl-NL-BuW3jWdI.js +0 -29
- package/dist/nl-NL-CMw-FwQV.js +0 -13
- package/dist/nl-NL-CTf7zH4M.js +0 -55
- package/dist/nl-NL-D7gBNWEY.js +0 -37
- package/dist/nl-NL-DKMs4pB2.js +0 -13
- package/dist/nl-NL-DMpB18Te.js +0 -113
- package/dist/nl-NL-O9GCHMDA.js +0 -68
- package/dist/no-NO-B-oUwe9q.js +0 -13
- package/dist/no-NO-C-gCYc9q.js +0 -37
- package/dist/no-NO-CA0EizAy.js +0 -29
- package/dist/no-NO-CA1aR6Wh.js +0 -68
- package/dist/no-NO-Ca5qoVaU.js +0 -113
- package/dist/no-NO-DKbWxgF-.js +0 -57
- package/dist/no-NO-DN9qf-_I.js +0 -13
- package/dist/no-NO-Dhj0Fh__.js +0 -13
- package/dist/no-NO-RfTK9KAV.js +0 -55
- package/dist/onfido-logo-BWSv__sQ.js +0 -14
- package/dist/options-horizontal-CBmbNv7R.js +0 -18
- package/dist/partner-CPjsrePY.js +0 -18
- package/dist/passport-blurred-B4UDQfmc.js +0 -59
- package/dist/passport-cut-off-C0N2mgLk.js +0 -56
- package/dist/passport-front-BwA7wR91.js +0 -52
- package/dist/passport-front-green-BL4HmtsB.js +0 -232
- package/dist/passport-glare-Mg2ixsYA.js +0 -50
- package/dist/pay-by-link-plane-BVZndh67.js +0 -22
- package/dist/payout-ChUEoLjt.js +0 -20
- package/dist/payout-verification-instant-5u-wvFKv.js +0 -41
- package/dist/payout-verification-manual-BH2mu0UW.js +0 -90
- package/dist/person-DGjUU4S4.js +0 -17
- package/dist/pl-PL-B0zGy_b4.js +0 -57
- package/dist/pl-PL-BKDK0_G8.js +0 -68
- package/dist/pl-PL-BSI0zHO1.js +0 -113
- package/dist/pl-PL-D7nhdbfR.js +0 -29
- package/dist/pl-PL-DGSYzOx6.js +0 -13
- package/dist/pl-PL-Duj3tncM.js +0 -13
- package/dist/pl-PL-Dy8qWH39.js +0 -55
- package/dist/pl-PL-LnVPufjb.js +0 -37
- package/dist/pl-PL-p8YxqOFg.js +0 -13
- package/dist/plaid-logo-CtActXTN.js +0 -14
- package/dist/plus-CWXA5wdX.js +0 -14
- package/dist/plus-circle-filled-CbC0u2Y1.js +0 -17
- package/dist/process-field-configurations-6LtTXNwK.js +0 -324
- package/dist/pt-BR--kaJvtE6.js +0 -57
- package/dist/pt-BR-BbFJsIVX.js +0 -55
- package/dist/pt-BR-Be5ZycMV.js +0 -13
- package/dist/pt-BR-Cj8MlQyq.js +0 -113
- package/dist/pt-BR-Cm4vZocb.js +0 -13
- package/dist/pt-BR-D1nTSLod.js +0 -29
- package/dist/pt-BR-DKrMpM6v.js +0 -13
- package/dist/pt-BR-NtLaWlnZ.js +0 -68
- package/dist/pt-BR-ur86nRrK.js +0 -37
- package/dist/pt-PT-B4F_5NWi.js +0 -55
- package/dist/pt-PT-B9L50746.js +0 -29
- package/dist/pt-PT-BJjCTMYf.js +0 -13
- package/dist/pt-PT-BJkVzfAJ.js +0 -113
- package/dist/pt-PT-BR-BI5Jn.js +0 -13
- package/dist/pt-PT-BZ5ZZm6G.js +0 -57
- package/dist/pt-PT-Bh7v8xbp.js +0 -13
- package/dist/pt-PT-CVNEcs32.js +0 -37
- package/dist/pt-PT-DSxxVA0f.js +0 -68
- package/dist/recurring-CkL4cCM2.js +0 -17
- package/dist/reporting-DerosUNm.js +0 -16
- package/dist/resolveEnvironment-BC4yY4gV.js +0 -164
- package/dist/revenue-accelerate-Dp4Ns_5c.js +0 -17
- package/dist/review-CxIN9azU.js +0 -17
- package/dist/ro-RO-5I4Q_FyK.js +0 -13
- package/dist/ro-RO-B8leE4ZJ.js +0 -13
- package/dist/ro-RO-Bybq8JFn.js +0 -68
- package/dist/ro-RO-CICjAFys.js +0 -55
- package/dist/ro-RO-CdSsgoUG.js +0 -57
- package/dist/ro-RO-DjGku_3y.js +0 -13
- package/dist/ro-RO-DvG65dTt.js +0 -29
- package/dist/ro-RO-RgC5M6CE.js +0 -113
- package/dist/ro-RO-i7lojG2G.js +0 -37
- package/dist/rules-ajv47uCu.js +0 -314
- package/dist/save-Fgy7EDid.js +0 -14
- package/dist/search-C4GZ-Rc1.js +0 -17
- package/dist/show-yPjPmEf8.js +0 -17
- package/dist/singpass-logo-BkMSwiGY.js +0 -17
- package/dist/singpass-verification-instant-hY4eGFwl.js +0 -40
- package/dist/singpass-verification-manual-DwhRpy5Q.js +0 -34
- package/dist/sk-SK-0BVxI7bf.js +0 -113
- package/dist/sk-SK-B5brxU1N.js +0 -37
- package/dist/sk-SK-BMJgOJoa.js +0 -29
- package/dist/sk-SK-BRd5TN22.js +0 -55
- package/dist/sk-SK-BVmoP_EU.js +0 -13
- package/dist/sk-SK-BWwRIx2d.js +0 -13
- package/dist/sk-SK-Bb18qPBw.js +0 -13
- package/dist/sk-SK-BiBWPJUf.js +0 -57
- package/dist/sk-SK-C6rMIxpz.js +0 -68
- package/dist/sl-SI-6s8xycKg.js +0 -13
- package/dist/sl-SI-BMF8YtOm.js +0 -29
- package/dist/sl-SI-BxImW_RL.js +0 -113
- package/dist/sl-SI-CUCrzJQv.js +0 -37
- package/dist/sl-SI-CaJmYb6p.js +0 -13
- package/dist/sl-SI-D8dDckrW.js +0 -55
- package/dist/sl-SI-DtdGMD6i.js +0 -57
- package/dist/sl-SI-ZxyvdgdS.js +0 -13
- package/dist/sl-SI-tPwbFvOI.js +0 -68
- package/dist/solution-payments-CNAat9h7.js +0 -14
- package/dist/store-IuAkDRAp.js +0 -14
- package/dist/sv-SE-B1sbgsnh.js +0 -13
- package/dist/sv-SE-BUq1X9F0.js +0 -113
- package/dist/sv-SE-BYC_f8r7.js +0 -29
- package/dist/sv-SE-C6uPh9g5.js +0 -37
- package/dist/sv-SE-CCFIf86P.js +0 -13
- package/dist/sv-SE-DGpvVvWj.js +0 -55
- package/dist/sv-SE-D_ZnGxiQ.js +0 -13
- package/dist/sv-SE-K1QT1cOt.js +0 -68
- package/dist/sv-SE-kR514dO1.js +0 -57
- package/dist/tax-reporting-graph-DjzwRgE6.js +0 -504
- package/dist/terminal-1-_me9J9h0.js +0 -18
- package/dist/tink-logo-BcIv93ND.js +0 -17
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +0 -9
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard.d.ts +0 -9
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +0 -11
- package/dist/types/components/Business/forms/BusinessDetails/BusinessDetails.d.ts +0 -3
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +0 -14
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +0 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/mandatoryFields.d.ts +0 -3
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +0 -5
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -19
- package/dist/types/components/Individual/fields/DecisionMakerRole/DecisionMakerRole.d.ts +0 -3
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +0 -10
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +0 -23
- package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +0 -9
- package/dist/types/components/Individual/fields/NameFields/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentAlreadyUpload.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentInstantVerification.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentUpload.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +0 -53
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -15
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +0 -9
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/Identity.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +0 -39
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +0 -21
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +0 -39
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -40
- package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -51
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -29
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +0 -13
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +0 -22
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -22
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +0 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +0 -12
- package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/DataConflictsModal.d.ts +0 -24
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +0 -17
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -20
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +0 -7
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +0 -7
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +0 -46
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +0 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/validateExtractionResult.d.ts +0 -12
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -52
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +0 -46
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +0 -59
- package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +0 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +0 -13
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +0 -7
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +0 -4
- package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +0 -3
- package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +0 -3
- package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +0 -8
- package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +0 -5
- package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +0 -3
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +0 -3
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualOnfidoSchema.d.ts +0 -3
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +0 -2
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +0 -4
- package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +0 -3
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +0 -3
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +0 -8
- package/dist/types/components/ui/molecules/Card/Card.d.ts +0 -3
- package/dist/types/components/ui/molecules/Card/types.d.ts +0 -26
- package/dist/types/embeds/EmbedBaseElement.d.ts +0 -41
- package/dist/types/embeds/EmbedCore.d.ts +0 -22
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +0 -13
- package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +0 -12
- package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +0 -12
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +0 -12
- package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +0 -16
- package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +0 -14
- package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +0 -20
- package/dist/types-6CojAGL0.js +0 -88
- package/dist/types-DRdQDn19.js +0 -34
- package/dist/types-DnURYYMD.js +0 -74
- package/dist/types-f66rmUFy.js +0 -164
- package/dist/upload-BF65P4KM.js +0 -17
- package/dist/us-check-CYY6Crhr.js +0 -46
- package/dist/us-check-account-number-C7KE5YzX.js +0 -48
- package/dist/us-check-routing-number-DUbhsYAR.js +0 -49
- package/dist/useAssociatedLegalEntity-DlO3x839.js +0 -33
- package/dist/useCreateLegalEntity-bNnaPjOD.js +0 -31
- package/dist/useDataset-ClAqXJGw.js +0 -220
- package/dist/useForm-C8SA0ETz.js +0 -1623
- package/dist/useGlobalData-VlkNij1C.js +0 -68
- package/dist/useMultiForm-C3xbz4Qc.js +0 -864
- package/dist/useOnboardingStatus-Co_xweKQ.js +0 -27
- package/dist/useScenarios-1AMNJb7O.js +0 -46
- package/dist/useTermsOfServiceStatus-DTT-jTFK.js +0 -42
- package/dist/useToastContext-mFlAEux_.js +0 -60
- package/dist/useUnincorporatedPartnershipMembers-DeGZrXXu.js +0 -99
- package/dist/useUpdateBusinessLines-DVnOsDCX.js +0 -46
- package/dist/useUpdateLegalEntity-Hn7ZLWeu.js +0 -39
- package/dist/utils-BH-_hzMa.js +0 -237
- package/dist/utils-BvNcGa2w.js +0 -774
- package/dist/validate-CJSILaC_.js +0 -41
- package/dist/validate-DDHUnwWC.js +0 -100
- package/dist/validationError-CfIII-oi.js +0 -86
- package/dist/warning-circle-fill-CEN1WL7A.js +0 -17
- package/dist/warning-diamond-filled-BfXMlVrG.js +0 -17
- package/dist/webinar-DqjqrNEv.js +0 -22
- package/dist/yapily-logo-CZ4ywjwA.js +0 -17
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/PayoutAccountTaskListItem.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskList.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListGroup.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListItem.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/types.d.ts +0 -0
- /package/dist/types/components/Business/{tasks/BusinessDetailsMultiformDropin → forms/BusinessDetails}/BusinessDetailsMultiform.d.ts +0 -0
- /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
- /package/dist/types/components/Business/tasks/{BusinessDetailsMultiformDropin → BusinessDetailsDropin}/validate.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/AdditionalPersonalDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/BasicDetails → BasicDetails}/BasicDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/GuidanceQuestion → GuidanceQuestion}/GuidanceQuestion.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/IdDocumentManualUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdNowVerificationModal → IdNowVerificationModal}/IdNowVerificationModal.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/IdVerification.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/idVerificationProviderId.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/types.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/ManualIdUpload → ManualIdUpload}/ManualIdUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/index.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/ProofOfResidency.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaireModalContent.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/tasks/{IndividualOnfidoDropin/IndividualOnfidoStore.d.ts → IndividualDropin/IndividualStore.d.ts} +0 -0
- /package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/LocalizedNameFields.d.ts +0 -0
package/dist/useForm-C8SA0ETz.js
DELETED
|
@@ -1,1623 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "06829c9e-f7f3-4b87-9936-353914a7c0d0", e._sentryDebugIdIdentifier = "sentry-dbid-06829c9e-f7f3-4b87-9936-353914a7c0d0");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import cx from "classnames";
|
|
12
|
-
import { useEffect, useState, useRef, useMemo, useCallback, useReducer } from "preact/hooks";
|
|
13
|
-
import { u as useTranslation, a0 as useAnalyticsContext, a3 as Icon, G as translateStringOrObject, L as Loader, a4 as noop, H as Typography, U as createLogger, X as isEmpty, $ as entriesOf, aU as doArraysMatch } from "./StoreProvider-l6WD5T55.js";
|
|
14
|
-
import { b as useId } from "./useToastContext-mFlAEux_.js";
|
|
15
|
-
import { computed, signal, useSignal, useSignalEffect } from "@preact/signals";
|
|
16
|
-
import { K as KEYBOARD_KEYS } from "./Modal-lDK70UQc.js";
|
|
17
|
-
import { C as Checkbox, a as debouncedInputEvent } from "./debouncedInputEvent-Bifj90NU.js";
|
|
18
|
-
const ARIA_ERROR_SUFFIX = "-ariaError";
|
|
19
|
-
const MaybeFieldset = ({
|
|
20
|
-
children,
|
|
21
|
-
className,
|
|
22
|
-
name,
|
|
23
|
-
disabled,
|
|
24
|
-
el,
|
|
25
|
-
dataTestId
|
|
26
|
-
}) => el === "fieldset" ? /* @__PURE__ */ jsx("fieldset", { name, disabled, className, "data-testid": dataTestId, children }) : /* @__PURE__ */ jsx("div", { className, "data-testid": dataTestId, children });
|
|
27
|
-
const Field = ({
|
|
28
|
-
className,
|
|
29
|
-
classNameModifiers = [],
|
|
30
|
-
children,
|
|
31
|
-
disabled,
|
|
32
|
-
optional,
|
|
33
|
-
errorMessage,
|
|
34
|
-
formatGuidance,
|
|
35
|
-
helper,
|
|
36
|
-
helperPosition = "above",
|
|
37
|
-
isValid,
|
|
38
|
-
label,
|
|
39
|
-
name,
|
|
40
|
-
showErrorIconBottom = false,
|
|
41
|
-
showErrorIcon = true,
|
|
42
|
-
el = "div",
|
|
43
|
-
dataTestId,
|
|
44
|
-
onBlur,
|
|
45
|
-
onFieldBlur,
|
|
46
|
-
onFocus
|
|
47
|
-
}) => {
|
|
48
|
-
const uniqueId = useId("field");
|
|
49
|
-
const { t } = useTranslation("common");
|
|
50
|
-
const userEvents = useAnalyticsContext();
|
|
51
|
-
const Label = el === "fieldset" ? "legend" : "label";
|
|
52
|
-
useEffect(() => {
|
|
53
|
-
if (!errorMessage) return;
|
|
54
|
-
const returnValue = typeof errorMessage === "string" && errorMessage || typeof errorMessage === "object" && errorMessage.key || "invalid";
|
|
55
|
-
userEvents.addFieldEvent("Encountered error", {
|
|
56
|
-
actionType: "input",
|
|
57
|
-
field: name,
|
|
58
|
-
returnType: "validation",
|
|
59
|
-
returnValue
|
|
60
|
-
});
|
|
61
|
-
}, [name, errorMessage, userEvents]);
|
|
62
|
-
const elementIds = {
|
|
63
|
-
label: `${uniqueId}-label`,
|
|
64
|
-
helper: `${uniqueId}-helper`,
|
|
65
|
-
error: `${uniqueId}${ARIA_ERROR_SUFFIX}`,
|
|
66
|
-
guidanceText: `${uniqueId}-guidanceText`
|
|
67
|
-
};
|
|
68
|
-
const inputDescribedBy = `${errorMessage ? elementIds.error : ""} ${helper ? elementIds.helper : ""} ${formatGuidance ? elementIds.guidanceText : ""}`.trim();
|
|
69
|
-
return /* @__PURE__ */ jsxs(
|
|
70
|
-
MaybeFieldset,
|
|
71
|
-
{
|
|
72
|
-
className: cx(
|
|
73
|
-
"adyen-kyc-field",
|
|
74
|
-
className,
|
|
75
|
-
classNameModifiers.map((m) => `adyen-kyc-field--${m}`),
|
|
76
|
-
{
|
|
77
|
-
"adyen-kyc-field--error": !!errorMessage,
|
|
78
|
-
"adyen-kyc-field--valid": isValid,
|
|
79
|
-
"adyen-kyc-field--disabled": disabled
|
|
80
|
-
}
|
|
81
|
-
),
|
|
82
|
-
name,
|
|
83
|
-
disabled,
|
|
84
|
-
el,
|
|
85
|
-
dataTestId,
|
|
86
|
-
children: [
|
|
87
|
-
label && /* @__PURE__ */ jsxs(
|
|
88
|
-
Label,
|
|
89
|
-
{
|
|
90
|
-
id: elementIds.label,
|
|
91
|
-
htmlFor: el === "fieldset" ? void 0 : uniqueId,
|
|
92
|
-
className: cx("adyen-kyc-label__text", {
|
|
93
|
-
"adyen-kyc-label__text--error": !!errorMessage
|
|
94
|
-
}),
|
|
95
|
-
children: [
|
|
96
|
-
label,
|
|
97
|
-
optional && /* @__PURE__ */ jsxs("span", { className: "adyen-kyc-optional-label", children: [
|
|
98
|
-
" ",
|
|
99
|
-
t(($) => $["optional"])
|
|
100
|
-
] })
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
),
|
|
104
|
-
helper && helperPosition === "above" && /* @__PURE__ */ jsx("span", { id: elementIds.helper, className: "adyen-kyc-helper-text adyen-kyc-helper-text__above", children: helper }),
|
|
105
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-input-wrapper", children: [
|
|
106
|
-
children({
|
|
107
|
-
id: uniqueId,
|
|
108
|
-
"aria-labelledby": elementIds.label,
|
|
109
|
-
"aria-describedby": inputDescribedBy,
|
|
110
|
-
isInvalid: !!errorMessage,
|
|
111
|
-
isValid: !!isValid,
|
|
112
|
-
onBlurHandler: (e) => {
|
|
113
|
-
if (typeof onBlur === "function") onBlur(e);
|
|
114
|
-
if (typeof onFieldBlur === "function") onFieldBlur(e);
|
|
115
|
-
},
|
|
116
|
-
onFocusHandler: (e) => {
|
|
117
|
-
if (typeof onFocus === "function") onFocus(e);
|
|
118
|
-
}
|
|
119
|
-
}),
|
|
120
|
-
helper && helperPosition === "below" && /* @__PURE__ */ jsx(
|
|
121
|
-
"span",
|
|
122
|
-
{
|
|
123
|
-
id: elementIds.helper,
|
|
124
|
-
className: "adyen-kyc-helper-text adyen-kyc-helper-text__below",
|
|
125
|
-
children: helper
|
|
126
|
-
}
|
|
127
|
-
),
|
|
128
|
-
isValid && /* @__PURE__ */ jsx("span", { className: "adyen-kyc-input__inline-validation adyen-kyc-input__inline-validation--valid", children: /* @__PURE__ */ jsx(Icon, { name: "check" }) }),
|
|
129
|
-
!!errorMessage && !showErrorIconBottom && showErrorIcon && /* @__PURE__ */ jsx("span", { className: "adyen-kyc-input__inline-validation adyen-kyc-input__inline-validation--invalid", children: /* @__PURE__ */ jsx(Icon, { name: "field-error" }) })
|
|
130
|
-
] }),
|
|
131
|
-
/* @__PURE__ */ jsxs("div", { "aria-live": "polite", "aria-atomic": true, className: "adyen-kyc-error-text", children: [
|
|
132
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-u-screen-reader-only", children: `${label}:` }),
|
|
133
|
-
!!errorMessage && typeof errorMessage !== "boolean" && /* @__PURE__ */ jsxs("span", { id: elementIds.error, children: [
|
|
134
|
-
translateStringOrObject(t, errorMessage),
|
|
135
|
-
showErrorIconBottom && /* @__PURE__ */ jsx("span", { className: "adyen-kyc-input__inline-validation adyen-kyc-input__inline-validation--invalid-bottom", children: /* @__PURE__ */ jsx(Icon, { name: "field-error" }) })
|
|
136
|
-
] })
|
|
137
|
-
] }),
|
|
138
|
-
!errorMessage && formatGuidance && /* @__PURE__ */ jsx("span", { id: elementIds.guidanceText, "aria-live": "polite", className: "adyen-kyc-guidance-text", children: formatGuidance })
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
);
|
|
142
|
-
};
|
|
143
|
-
const loaderWrapperLoader = "adyen-kyc-loader-wrapper-loader";
|
|
144
|
-
const loaderWrapperLoaderActive = "adyen-kyc-loader-wrapper-loader-active";
|
|
145
|
-
const styles$1 = {
|
|
146
|
-
loaderWrapperLoader,
|
|
147
|
-
loaderWrapperLoaderActive
|
|
148
|
-
};
|
|
149
|
-
const LoaderWrapper = ({
|
|
150
|
-
children,
|
|
151
|
-
status,
|
|
152
|
-
formOpacityWhenLoading = 0,
|
|
153
|
-
loaderSize = "medium",
|
|
154
|
-
showSpinner = true,
|
|
155
|
-
className
|
|
156
|
-
}) => {
|
|
157
|
-
const opacitySyle = status === "loading" ? {
|
|
158
|
-
opacity: formOpacityWhenLoading
|
|
159
|
-
} : { opacity: 1 };
|
|
160
|
-
const loaderWrapperClass = cx(styles$1.loaderWrapperLoader, {
|
|
161
|
-
[styles$1.loaderWrapperLoaderActive]: status === "loading" && showSpinner
|
|
162
|
-
});
|
|
163
|
-
const overlayClass = cx(styles$1.loaderWrapper, className);
|
|
164
|
-
return /* @__PURE__ */ jsxs("div", { className: overlayClass, style: { position: "relative" }, children: [
|
|
165
|
-
/* @__PURE__ */ jsx("div", { className: loaderWrapperClass, children: /* @__PURE__ */ jsx(Loader, { size: loaderSize }) }),
|
|
166
|
-
/* @__PURE__ */ jsx("div", { className: styles$1.loaderWrapperForm, style: opacitySyle, children })
|
|
167
|
-
] });
|
|
168
|
-
};
|
|
169
|
-
const createSelectFocus = ({
|
|
170
|
-
activeItems,
|
|
171
|
-
filteredItems: items
|
|
172
|
-
}) => {
|
|
173
|
-
const numberOfItems = computed(() => items.value.length - 1);
|
|
174
|
-
const focused = signal();
|
|
175
|
-
const getDefaultFocusedItem = () => {
|
|
176
|
-
const firstActiveOption = activeItems.value.find((option) => !option.disabled);
|
|
177
|
-
const firstEnabledOption = items.value.find((option) => !option.disabled);
|
|
178
|
-
return firstActiveOption ?? firstEnabledOption;
|
|
179
|
-
};
|
|
180
|
-
const focusedItemIndex = computed(() => {
|
|
181
|
-
const currFocus = focused.value;
|
|
182
|
-
const toFind = focusedIsItem(currFocus) ? currFocus : getDefaultFocusedItem();
|
|
183
|
-
if (!toFind) {
|
|
184
|
-
console.warn("[Select] No existing focused item, and none of the filtered items are enabled");
|
|
185
|
-
return 0;
|
|
186
|
-
}
|
|
187
|
-
return items.value.findIndex((i) => i.id === toFind.id);
|
|
188
|
-
});
|
|
189
|
-
const findPotentialIndex = (currentIndex, direction) => {
|
|
190
|
-
const potentialIndex = direction === "down" ? currentIndex + 1 : currentIndex - 1;
|
|
191
|
-
const potentialItem = items.value[potentialIndex];
|
|
192
|
-
if (potentialIndex < 0 || potentialIndex > numberOfItems.value) {
|
|
193
|
-
return "exceedsBounds";
|
|
194
|
-
}
|
|
195
|
-
if (potentialItem.disabled) {
|
|
196
|
-
return findPotentialIndex(potentialIndex, direction);
|
|
197
|
-
}
|
|
198
|
-
return potentialIndex;
|
|
199
|
-
};
|
|
200
|
-
const moveFocusToNextItem = () => {
|
|
201
|
-
const nextIndex = findPotentialIndex(focusedItemIndex.value, "down");
|
|
202
|
-
if (nextIndex !== "exceedsBounds") focused.value = items.value[nextIndex];
|
|
203
|
-
};
|
|
204
|
-
const moveFocusToPreviousItem = () => {
|
|
205
|
-
const prevIndex = findPotentialIndex(focusedItemIndex.value, "up");
|
|
206
|
-
if (prevIndex !== "exceedsBounds") focused.value = items.value[prevIndex];
|
|
207
|
-
};
|
|
208
|
-
const moveFocusToFirstItem = () => {
|
|
209
|
-
let currIndex = focusedItemIndex.value;
|
|
210
|
-
while (true) {
|
|
211
|
-
const before = findPotentialIndex(currIndex, "up");
|
|
212
|
-
if (before === "exceedsBounds") break;
|
|
213
|
-
currIndex = before;
|
|
214
|
-
}
|
|
215
|
-
focused.value = items.value[currIndex];
|
|
216
|
-
};
|
|
217
|
-
const moveFocusToLastItem = () => {
|
|
218
|
-
let currIndex = focusedItemIndex.value;
|
|
219
|
-
while (true) {
|
|
220
|
-
const after = findPotentialIndex(currIndex, "down");
|
|
221
|
-
if (after === "exceedsBounds") break;
|
|
222
|
-
currIndex = after;
|
|
223
|
-
}
|
|
224
|
-
focused.value = items.value[currIndex];
|
|
225
|
-
};
|
|
226
|
-
const focusInput = () => {
|
|
227
|
-
focused.value = "input";
|
|
228
|
-
};
|
|
229
|
-
const focusItem = (item) => {
|
|
230
|
-
focused.value = item;
|
|
231
|
-
};
|
|
232
|
-
const focusDefaultItem = () => {
|
|
233
|
-
focused.value = getDefaultFocusedItem();
|
|
234
|
-
};
|
|
235
|
-
const focusNothing = () => {
|
|
236
|
-
focused.value = void 0;
|
|
237
|
-
};
|
|
238
|
-
return {
|
|
239
|
-
focused,
|
|
240
|
-
moveFocusToFirstItem,
|
|
241
|
-
moveFocusToLastItem,
|
|
242
|
-
moveFocusToNextItem,
|
|
243
|
-
moveFocusToPreviousItem,
|
|
244
|
-
focusInput,
|
|
245
|
-
focusItem,
|
|
246
|
-
focusDefaultItem,
|
|
247
|
-
focusNothing
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
const useSelectFocus = (options) => {
|
|
251
|
-
const [selectFocus] = useState(createSelectFocus(options));
|
|
252
|
-
return selectFocus;
|
|
253
|
-
};
|
|
254
|
-
const focusedIsItem = (focused) => Boolean(focused) && typeof focused === "object";
|
|
255
|
-
const useWatchingSignal = (value) => {
|
|
256
|
-
const signal2 = useSignal(value);
|
|
257
|
-
if (signal2.peek() !== value) signal2.value = value;
|
|
258
|
-
return signal2;
|
|
259
|
-
};
|
|
260
|
-
const simulateTextChangeFromKeyboardEvent = (keyDownEvent, value) => {
|
|
261
|
-
const { key } = keyDownEvent;
|
|
262
|
-
let newValue = value;
|
|
263
|
-
if (key === KEYBOARD_KEYS.backspace) {
|
|
264
|
-
newValue = newValue.slice(0, newValue.length - 1);
|
|
265
|
-
} else if (key.length === 1) {
|
|
266
|
-
newValue += key;
|
|
267
|
-
}
|
|
268
|
-
return newValue;
|
|
269
|
-
};
|
|
270
|
-
function useMirrorProp(prop, propOnChange, defaultVal) {
|
|
271
|
-
const [isMirroring] = useState(propOnChange !== void 0);
|
|
272
|
-
const [local, setLocal] = useState(defaultVal);
|
|
273
|
-
if (isMirroring) {
|
|
274
|
-
return [prop, propOnChange];
|
|
275
|
-
} else {
|
|
276
|
-
return [local, setLocal];
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
const selectInputWrapper = "adyen-kyc-select-input-wrapper";
|
|
280
|
-
const selectInput = "adyen-kyc-select-input";
|
|
281
|
-
const selectInputActive = "adyen-kyc-select-input--active";
|
|
282
|
-
const selectInputReadonly = "adyen-kyc-select-input--readonly";
|
|
283
|
-
const selectInputInvalid = "adyen-kyc-select-input--invalid";
|
|
284
|
-
const selectInputMinimal = "adyen-kyc-select-input--minimal";
|
|
285
|
-
const selectInputSearch = "adyen-kyc-select-input-search";
|
|
286
|
-
const selectInputFilterable = "adyen-kyc-select-input--filterable";
|
|
287
|
-
const selectInputWrapperFilterable = "adyen-kyc-select-input-wrapper--filterable";
|
|
288
|
-
const selectInputWrapperNonFilterable = "adyen-kyc-select-input-wrapper--non-filterable";
|
|
289
|
-
const selectInputListOpen = "adyen-kyc-select-input--list-open";
|
|
290
|
-
const selectInputNonFilterable = "adyen-kyc-select-input--non-filterable";
|
|
291
|
-
const selectInputPlaceholder = "adyen-kyc-select-input--placeholder";
|
|
292
|
-
const ignorePointerEvents = "adyen-kyc-ignore-pointer-events";
|
|
293
|
-
const handlePointerEvents = "adyen-kyc-handle-pointer-events";
|
|
294
|
-
const styles = {
|
|
295
|
-
selectInputWrapper,
|
|
296
|
-
selectInput,
|
|
297
|
-
selectInputActive,
|
|
298
|
-
selectInputReadonly,
|
|
299
|
-
selectInputInvalid,
|
|
300
|
-
selectInputMinimal,
|
|
301
|
-
selectInputSearch,
|
|
302
|
-
selectInputFilterable,
|
|
303
|
-
selectInputWrapperFilterable,
|
|
304
|
-
selectInputWrapperNonFilterable,
|
|
305
|
-
selectInputListOpen,
|
|
306
|
-
selectInputNonFilterable,
|
|
307
|
-
selectInputPlaceholder,
|
|
308
|
-
ignorePointerEvents,
|
|
309
|
-
handlePointerEvents
|
|
310
|
-
};
|
|
311
|
-
const isAppleMobile = /iPhone|iPad/.test(navigator.platform);
|
|
312
|
-
function SelectButton({
|
|
313
|
-
id,
|
|
314
|
-
name,
|
|
315
|
-
active,
|
|
316
|
-
readonly,
|
|
317
|
-
showList,
|
|
318
|
-
isInvalid,
|
|
319
|
-
onClick,
|
|
320
|
-
onButtonKeyDown,
|
|
321
|
-
filterable,
|
|
322
|
-
isFiltering,
|
|
323
|
-
placeholder,
|
|
324
|
-
focusProps: { focused },
|
|
325
|
-
selectListId,
|
|
326
|
-
onInput,
|
|
327
|
-
behaviour,
|
|
328
|
-
loading,
|
|
329
|
-
text,
|
|
330
|
-
enableTracking = false,
|
|
331
|
-
onFocus,
|
|
332
|
-
inputRef,
|
|
333
|
-
minimal,
|
|
334
|
-
"aria-describedby": ariaDescribedBy,
|
|
335
|
-
"aria-labelledby": ariaLabelledBy,
|
|
336
|
-
"aria-label": ariaLabel
|
|
337
|
-
}) {
|
|
338
|
-
const userEvents = useAnalyticsContext();
|
|
339
|
-
const wrapperRef = useRef(null);
|
|
340
|
-
useSignalEffect(() => {
|
|
341
|
-
if (focused.value === "input") {
|
|
342
|
-
inputRef.current?.focus();
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
const handleFocus = (e) => {
|
|
346
|
-
if (readonly) return;
|
|
347
|
-
if (enableTracking)
|
|
348
|
-
userEvents.addFieldEvent("Interacted with form field", {
|
|
349
|
-
actionType: "focus",
|
|
350
|
-
field: name
|
|
351
|
-
});
|
|
352
|
-
onFocus(e);
|
|
353
|
-
};
|
|
354
|
-
const handleClick = (e) => {
|
|
355
|
-
e.preventDefault();
|
|
356
|
-
e.stopPropagation();
|
|
357
|
-
if (readonly) return;
|
|
358
|
-
onClick();
|
|
359
|
-
};
|
|
360
|
-
const handleKeyDown = (e) => {
|
|
361
|
-
if (!readonly) onButtonKeyDown(e);
|
|
362
|
-
};
|
|
363
|
-
const handleInput = (e) => {
|
|
364
|
-
if (filterable && !readonly) onInput(e.target.value);
|
|
365
|
-
};
|
|
366
|
-
const truncatedDisplayValue = useMemo(() => {
|
|
367
|
-
if (active.length === 0) return void 0;
|
|
368
|
-
const activeText = active.map(({ selectedOptionName, name: name2 }) => selectedOptionName ?? name2).join(", ");
|
|
369
|
-
return activeText.length > 50 ? activeText.substring(0, 50) + "..." : activeText;
|
|
370
|
-
}, [active]);
|
|
371
|
-
const title = active?.length ? active.map(({ name: name2 }) => name2).join(",") : placeholder;
|
|
372
|
-
const isFocused = focused.value === "input";
|
|
373
|
-
const value = useMemo(() => {
|
|
374
|
-
if (behaviour === "textIsData" || focused.value !== void 0 && // can be focusing either the input or one of the options
|
|
375
|
-
filterable && isFiltering)
|
|
376
|
-
return text;
|
|
377
|
-
return truncatedDisplayValue;
|
|
378
|
-
}, [behaviour, text, focused.value, filterable, isFiltering, truncatedDisplayValue]);
|
|
379
|
-
return (
|
|
380
|
-
// In this case, the `<input>` within is fully accessible - this `onClick` is simply handling the situation
|
|
381
|
-
// where there is no `<label>` around the component. In that case, we should handle click events as if they
|
|
382
|
-
// occurred on the input.
|
|
383
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
384
|
-
/* @__PURE__ */ jsxs(
|
|
385
|
-
"div",
|
|
386
|
-
{
|
|
387
|
-
className: cx({
|
|
388
|
-
[styles.selectInputWrapper]: true,
|
|
389
|
-
[styles.selectInputMinimal]: minimal,
|
|
390
|
-
[styles.selectInputReadonly]: readonly,
|
|
391
|
-
[styles.selectInputActive]: isFocused,
|
|
392
|
-
[styles.selectInputListOpen]: showList,
|
|
393
|
-
[styles.selectInputInvalid]: isInvalid,
|
|
394
|
-
[styles.selectInputSearch]: filterable === "prefiltered",
|
|
395
|
-
[styles.selectInputWrapperFilterable]: filterable,
|
|
396
|
-
[styles.selectInputWrapperNonFilterable]: !filterable,
|
|
397
|
-
// To resolve a bug where filterable select `<input>`s weren't focusable on iOS
|
|
398
|
-
[styles.ignorePointerEvents]: isAppleMobile
|
|
399
|
-
}),
|
|
400
|
-
ref: wrapperRef,
|
|
401
|
-
onClick: handleClick,
|
|
402
|
-
onFocusIn: handleFocus,
|
|
403
|
-
children: [
|
|
404
|
-
/* @__PURE__ */ jsx(
|
|
405
|
-
"input",
|
|
406
|
-
{
|
|
407
|
-
id,
|
|
408
|
-
name,
|
|
409
|
-
title,
|
|
410
|
-
ref: inputRef,
|
|
411
|
-
type: filterable ? "text" : "button",
|
|
412
|
-
role: "combobox",
|
|
413
|
-
"aria-haspopup": "listbox",
|
|
414
|
-
"aria-owns": selectListId,
|
|
415
|
-
"aria-controls": selectListId,
|
|
416
|
-
"aria-expanded": showList,
|
|
417
|
-
"aria-describedby": ariaDescribedBy,
|
|
418
|
-
"aria-disabled": readonly,
|
|
419
|
-
"aria-label": ariaLabel,
|
|
420
|
-
"aria-labelledby": ariaLabelledBy,
|
|
421
|
-
"aria-autocomplete": filterable ? "list" : void 0,
|
|
422
|
-
autoComplete: "off",
|
|
423
|
-
className: cx({
|
|
424
|
-
[styles.selectInput]: true,
|
|
425
|
-
[styles.selectInputFilterable]: filterable,
|
|
426
|
-
[styles.selectInputNonFilterable]: !filterable,
|
|
427
|
-
[styles.selectInputMinimal]: minimal,
|
|
428
|
-
[styles.selectInputReadonly]: readonly,
|
|
429
|
-
// To resolve a bug where filterable select `<input>`s weren't focusable on iOS
|
|
430
|
-
[styles.handlePointerEvents]: isAppleMobile
|
|
431
|
-
}),
|
|
432
|
-
placeholder,
|
|
433
|
-
value,
|
|
434
|
-
disabled: readonly,
|
|
435
|
-
onClick: handleClick,
|
|
436
|
-
onInput: handleInput,
|
|
437
|
-
onKeyDown: handleKeyDown
|
|
438
|
-
}
|
|
439
|
-
),
|
|
440
|
-
!filterable && !value ? /* @__PURE__ */ jsx("span", { className: styles.selectInputPlaceholder, children: placeholder }) : void 0,
|
|
441
|
-
loading && /* @__PURE__ */ jsx(Loader, { size: "small", dot: true })
|
|
442
|
-
]
|
|
443
|
-
}
|
|
444
|
-
)
|
|
445
|
-
);
|
|
446
|
-
}
|
|
447
|
-
const SelectListItem = ({
|
|
448
|
-
id,
|
|
449
|
-
item,
|
|
450
|
-
selected,
|
|
451
|
-
isMulti,
|
|
452
|
-
isSearch,
|
|
453
|
-
children,
|
|
454
|
-
onSelect,
|
|
455
|
-
onKeyDown,
|
|
456
|
-
onFocus,
|
|
457
|
-
className
|
|
458
|
-
}) => /* @__PURE__ */ jsx(
|
|
459
|
-
"li",
|
|
460
|
-
{
|
|
461
|
-
"aria-disabled": !!item.disabled,
|
|
462
|
-
"aria-selected": selected,
|
|
463
|
-
className: cx([
|
|
464
|
-
"adyen-kyc-dropdown-element",
|
|
465
|
-
{
|
|
466
|
-
"adyen-kyc-dropdown-element--active": selected,
|
|
467
|
-
"adyen-kyc-dropdown-element--disabled": !!item.disabled,
|
|
468
|
-
"adyen-kyc-dropdown-multi-element": isMulti,
|
|
469
|
-
"adyen-kyc-dropdown-element-description": !isMulti && !isSearch && item.description,
|
|
470
|
-
"adyen-kyc-dropdown-search-element": isSearch
|
|
471
|
-
},
|
|
472
|
-
className
|
|
473
|
-
]),
|
|
474
|
-
"data-disabled": !!item.disabled,
|
|
475
|
-
"data-value": item.id,
|
|
476
|
-
onFocus: (event) => {
|
|
477
|
-
if (item.disabled) return;
|
|
478
|
-
onFocus?.(event);
|
|
479
|
-
},
|
|
480
|
-
onClick: (e) => {
|
|
481
|
-
e.preventDefault();
|
|
482
|
-
if (item.disabled) return;
|
|
483
|
-
onSelect(!selected);
|
|
484
|
-
},
|
|
485
|
-
onKeyDown: (e) => {
|
|
486
|
-
if (item.disabled) return;
|
|
487
|
-
onKeyDown(e);
|
|
488
|
-
},
|
|
489
|
-
role: "option",
|
|
490
|
-
tabIndex: -1,
|
|
491
|
-
children: isMulti ? /* @__PURE__ */ jsx("span", { style: { pointerEvents: "none", width: "100%" }, children: /* @__PURE__ */ jsx(
|
|
492
|
-
Checkbox,
|
|
493
|
-
{
|
|
494
|
-
id,
|
|
495
|
-
onChange: noop,
|
|
496
|
-
label: item.name,
|
|
497
|
-
disabled: item.disabled,
|
|
498
|
-
helper: item.description,
|
|
499
|
-
checked: selected,
|
|
500
|
-
name: `adyen-kyc-dropdown-element__checkbox adyen-kyc-dropdown-element__checkbox--${item.id}`
|
|
501
|
-
}
|
|
502
|
-
) }) : children ? [children] : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
503
|
-
item.icon && /* @__PURE__ */ jsx("span", { className: "adyen-kyc-dropdown-element__icon", children: item.icon }),
|
|
504
|
-
item.description ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
505
|
-
/* @__PURE__ */ jsx(
|
|
506
|
-
Typography,
|
|
507
|
-
{
|
|
508
|
-
el: "span",
|
|
509
|
-
variant: "body-strongest",
|
|
510
|
-
className: "adyen-kyc-dropdown-element__label",
|
|
511
|
-
children: item.name
|
|
512
|
-
}
|
|
513
|
-
),
|
|
514
|
-
/* @__PURE__ */ jsx(
|
|
515
|
-
Typography,
|
|
516
|
-
{
|
|
517
|
-
el: "span",
|
|
518
|
-
color: "secondary",
|
|
519
|
-
className: "adyen-kyc-dropdown-element-description__text",
|
|
520
|
-
children: item.description
|
|
521
|
-
}
|
|
522
|
-
)
|
|
523
|
-
] }) : /* @__PURE__ */ jsx("span", { className: "adyen-kyc-dropdown-element__label", children: item.name })
|
|
524
|
-
] })
|
|
525
|
-
}
|
|
526
|
-
);
|
|
527
|
-
const logger$1 = createLogger();
|
|
528
|
-
const DEFAULT_ITEM_HEIGHT = 36;
|
|
529
|
-
function SelectList({
|
|
530
|
-
selectListId,
|
|
531
|
-
active,
|
|
532
|
-
filteredItems,
|
|
533
|
-
showList,
|
|
534
|
-
isMulti,
|
|
535
|
-
inputRef,
|
|
536
|
-
isSearch,
|
|
537
|
-
loading,
|
|
538
|
-
getSearchItem,
|
|
539
|
-
onKeyDown,
|
|
540
|
-
onSelect,
|
|
541
|
-
minimal,
|
|
542
|
-
maxVisibleItems = 5,
|
|
543
|
-
focusProps: {
|
|
544
|
-
focused,
|
|
545
|
-
focusItem,
|
|
546
|
-
focusDefaultItem,
|
|
547
|
-
moveFocusToNextItem,
|
|
548
|
-
moveFocusToPreviousItem,
|
|
549
|
-
moveFocusToFirstItem,
|
|
550
|
-
moveFocusToLastItem
|
|
551
|
-
}
|
|
552
|
-
}) {
|
|
553
|
-
const { t } = useTranslation("ui");
|
|
554
|
-
const [startIndex, setStartIndex] = useState(0);
|
|
555
|
-
const [endIndex, setEndIndex] = useState(maxVisibleItems);
|
|
556
|
-
const listRef = useRef(null);
|
|
557
|
-
const calculatedItemHeight = (() => {
|
|
558
|
-
if (listRef.current && showList) {
|
|
559
|
-
const height2 = listRef.current.firstElementChild?.firstElementChild?.clientHeight;
|
|
560
|
-
if (height2 !== void 0) return height2;
|
|
561
|
-
}
|
|
562
|
-
})();
|
|
563
|
-
const itemHeight = calculatedItemHeight || DEFAULT_ITEM_HEIGHT;
|
|
564
|
-
const totalItems = filteredItems.length;
|
|
565
|
-
const visibleItems = useMemo(
|
|
566
|
-
() => filteredItems.slice(startIndex, endIndex),
|
|
567
|
-
[endIndex, filteredItems, startIndex]
|
|
568
|
-
);
|
|
569
|
-
const findElementForItem = useCallback(
|
|
570
|
-
(item) => {
|
|
571
|
-
const listContainer = listRef.current;
|
|
572
|
-
if (!listContainer) return;
|
|
573
|
-
return listContainer.querySelector(
|
|
574
|
-
`[role="option"][data-value="${item.id}"]`
|
|
575
|
-
);
|
|
576
|
-
},
|
|
577
|
-
[listRef]
|
|
578
|
-
);
|
|
579
|
-
const recalculateScrollIndexes = useCallback(() => {
|
|
580
|
-
if (!listRef.current) return;
|
|
581
|
-
const { scrollTop } = listRef.current;
|
|
582
|
-
const maxStartIndex = totalItems < maxVisibleItems ? totalItems : totalItems - maxVisibleItems;
|
|
583
|
-
const newStartIndex = Math.min(Math.max(0, Math.floor(scrollTop / itemHeight)), maxStartIndex);
|
|
584
|
-
const newEndIndex = Math.min(newStartIndex + maxVisibleItems, totalItems);
|
|
585
|
-
setStartIndex(newStartIndex);
|
|
586
|
-
setEndIndex(newEndIndex);
|
|
587
|
-
}, [totalItems, maxVisibleItems, itemHeight, listRef]);
|
|
588
|
-
useEffect(() => {
|
|
589
|
-
recalculateScrollIndexes();
|
|
590
|
-
}, [recalculateScrollIndexes]);
|
|
591
|
-
const scrollItemIntoView = useCallback(
|
|
592
|
-
(item) => {
|
|
593
|
-
if (!listRef.current) return;
|
|
594
|
-
const itemIndex = filteredItems.indexOf(item);
|
|
595
|
-
if (itemIndex === -1) {
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
const maxScrollTop = totalItems * itemHeight;
|
|
599
|
-
listRef.current.scrollTop = Math.min(itemHeight * (itemIndex + 0.5), maxScrollTop);
|
|
600
|
-
},
|
|
601
|
-
[filteredItems, itemHeight, totalItems, listRef]
|
|
602
|
-
);
|
|
603
|
-
const acquireFocusForItem = useCallback(
|
|
604
|
-
(item) => {
|
|
605
|
-
let itemEl = findElementForItem(item);
|
|
606
|
-
if (!itemEl) {
|
|
607
|
-
scrollItemIntoView(item);
|
|
608
|
-
}
|
|
609
|
-
setTimeout(() => {
|
|
610
|
-
itemEl = itemEl ?? findElementForItem(item);
|
|
611
|
-
if (itemEl) {
|
|
612
|
-
itemEl.focus();
|
|
613
|
-
} else {
|
|
614
|
-
logger$1.warn("[SelectList] still cannot see the option", item.name);
|
|
615
|
-
}
|
|
616
|
-
}, 20);
|
|
617
|
-
},
|
|
618
|
-
[findElementForItem, scrollItemIntoView]
|
|
619
|
-
);
|
|
620
|
-
useSignalEffect(() => {
|
|
621
|
-
const currFocused = focused.value;
|
|
622
|
-
if (focusedIsItem(currFocused)) {
|
|
623
|
-
acquireFocusForItem(currFocused);
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
const listListeners = {
|
|
627
|
-
[KEYBOARD_KEYS.arrowUp]: moveFocusToPreviousItem,
|
|
628
|
-
[KEYBOARD_KEYS.arrowDown]: moveFocusToNextItem,
|
|
629
|
-
[KEYBOARD_KEYS.home]: moveFocusToFirstItem,
|
|
630
|
-
[KEYBOARD_KEYS.end]: moveFocusToLastItem
|
|
631
|
-
};
|
|
632
|
-
const onListKeydown = (event) => {
|
|
633
|
-
const listener = listListeners[event.key];
|
|
634
|
-
if (listener) {
|
|
635
|
-
event.preventDefault();
|
|
636
|
-
listener();
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
|
-
const getItems = () => {
|
|
640
|
-
if (loading) {
|
|
641
|
-
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropdown-element adyen-kyc-dropdown-element--no-options", children: t(($) => $["loading"]) });
|
|
642
|
-
}
|
|
643
|
-
if (!filteredItems.length) {
|
|
644
|
-
if (startIndex !== 0 || endIndex !== maxVisibleItems) {
|
|
645
|
-
setStartIndex(0);
|
|
646
|
-
setEndIndex(maxVisibleItems);
|
|
647
|
-
}
|
|
648
|
-
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropdown-element adyen-kyc-dropdown-element--no-options", children: t(($) => $["noOptionsFound"]) });
|
|
649
|
-
}
|
|
650
|
-
if (visibleItems.length) {
|
|
651
|
-
return visibleItems.map((item) => /* @__PURE__ */ jsx(
|
|
652
|
-
SelectListItem,
|
|
653
|
-
{
|
|
654
|
-
item,
|
|
655
|
-
id: item.id,
|
|
656
|
-
onKeyDown: (event) => onKeyDown(event, item),
|
|
657
|
-
onFocus: (event) => {
|
|
658
|
-
focusItem(item);
|
|
659
|
-
event.stopPropagation();
|
|
660
|
-
},
|
|
661
|
-
onSelect: () => onSelect(item),
|
|
662
|
-
selected: !!active.find((activeItem) => activeItem.id === item.id),
|
|
663
|
-
isMulti,
|
|
664
|
-
isSearch,
|
|
665
|
-
children: getSearchItem && getSearchItem(item)
|
|
666
|
-
},
|
|
667
|
-
item.id
|
|
668
|
-
));
|
|
669
|
-
}
|
|
670
|
-
return null;
|
|
671
|
-
};
|
|
672
|
-
const height = useMemo(() => {
|
|
673
|
-
if (loading) return "auto";
|
|
674
|
-
return totalItems > maxVisibleItems && itemHeight ? `${itemHeight * maxVisibleItems}px` : "auto";
|
|
675
|
-
}, [itemHeight, totalItems, loading, maxVisibleItems]);
|
|
676
|
-
const allItemsVisible = totalItems <= maxVisibleItems;
|
|
677
|
-
const [showAbove, setShowAbove] = useState(false);
|
|
678
|
-
useEffect(() => {
|
|
679
|
-
const list = listRef.current;
|
|
680
|
-
const input = inputRef.current;
|
|
681
|
-
const resizeObserver = new ResizeObserver(() => {
|
|
682
|
-
const dropdownHeight = list.offsetHeight;
|
|
683
|
-
const windowHeight = window.innerHeight;
|
|
684
|
-
const position = input.getBoundingClientRect().bottom;
|
|
685
|
-
const isSpaceBelow = windowHeight - position > dropdownHeight;
|
|
686
|
-
const isSpaceAbove = position > dropdownHeight;
|
|
687
|
-
setShowAbove(!isSpaceBelow && isSpaceAbove);
|
|
688
|
-
});
|
|
689
|
-
resizeObserver.observe(list);
|
|
690
|
-
return () => resizeObserver.disconnect();
|
|
691
|
-
}, [inputRef, listRef]);
|
|
692
|
-
return /* @__PURE__ */ jsx(
|
|
693
|
-
"div",
|
|
694
|
-
{
|
|
695
|
-
className: cx({
|
|
696
|
-
"adyen-kyc-dropdown-list": true,
|
|
697
|
-
"adyen-kyc-dropdown-list--minimal": minimal,
|
|
698
|
-
"adyen-kyc-dropdown-list--active": showList,
|
|
699
|
-
"adyen-kyc-dropdown-list--above": showAbove
|
|
700
|
-
}),
|
|
701
|
-
id: selectListId,
|
|
702
|
-
role: "listbox",
|
|
703
|
-
onScroll: recalculateScrollIndexes,
|
|
704
|
-
style: {
|
|
705
|
-
overflowY: allItemsVisible ? "hidden" : "auto",
|
|
706
|
-
position: "absolute",
|
|
707
|
-
height
|
|
708
|
-
},
|
|
709
|
-
onKeyDown: onListKeydown,
|
|
710
|
-
onFocus: focusDefaultItem,
|
|
711
|
-
tabIndex: -1,
|
|
712
|
-
ref: listRef,
|
|
713
|
-
children: /* @__PURE__ */ jsxs(
|
|
714
|
-
"ul",
|
|
715
|
-
{
|
|
716
|
-
className: "adyen-kyc-dropdown-list__transformer",
|
|
717
|
-
style: {
|
|
718
|
-
transform: `translateY(${startIndex * itemHeight}px)`
|
|
719
|
-
},
|
|
720
|
-
children: [
|
|
721
|
-
getItems(),
|
|
722
|
-
/* @__PURE__ */ jsx(
|
|
723
|
-
"div",
|
|
724
|
-
{
|
|
725
|
-
style: {
|
|
726
|
-
// fake the height of the remaining items in the list so scroll position is correct
|
|
727
|
-
height: `${(totalItems - endIndex) * itemHeight}px`
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
)
|
|
731
|
-
]
|
|
732
|
-
}
|
|
733
|
-
)
|
|
734
|
-
}
|
|
735
|
-
);
|
|
736
|
-
}
|
|
737
|
-
const Select = ({
|
|
738
|
-
id,
|
|
739
|
-
items,
|
|
740
|
-
filterable = true,
|
|
741
|
-
readonly = false,
|
|
742
|
-
onChange,
|
|
743
|
-
onSelect,
|
|
744
|
-
selected,
|
|
745
|
-
name,
|
|
746
|
-
isInvalid = false,
|
|
747
|
-
placeholder = "",
|
|
748
|
-
isMulti,
|
|
749
|
-
enableTracking = false,
|
|
750
|
-
maxVisibleItems,
|
|
751
|
-
getSearchItem,
|
|
752
|
-
onBlur = noop,
|
|
753
|
-
text: filterTextProp,
|
|
754
|
-
setText: setFilterTextProp,
|
|
755
|
-
showList: showListProp,
|
|
756
|
-
setShowList: setShowListProp,
|
|
757
|
-
behaviour = "textIsFilter",
|
|
758
|
-
loading = false,
|
|
759
|
-
minimal = false,
|
|
760
|
-
"aria-describedby": ariaDescribedBy,
|
|
761
|
-
"aria-label": ariaLabel,
|
|
762
|
-
"aria-labelledby": ariaLabelledBy,
|
|
763
|
-
excludedValues
|
|
764
|
-
}) => {
|
|
765
|
-
const userEvents = useAnalyticsContext();
|
|
766
|
-
const selectContainerRef = useRef(null);
|
|
767
|
-
const inputRef = useRef(null);
|
|
768
|
-
const selectListId = useId("select");
|
|
769
|
-
const [textFilter, setTextFilter] = useMirrorProp(filterTextProp, setFilterTextProp, "");
|
|
770
|
-
const [isShowList, setIsShowList] = useMirrorProp(showListProp, setShowListProp, false);
|
|
771
|
-
const [isFiltering, setIsFiltering] = useState(false);
|
|
772
|
-
const active = useMemo(() => {
|
|
773
|
-
if (selected === void 0) return [];
|
|
774
|
-
return (Array.isArray(selected) ? selected : [selected]).map((s) => {
|
|
775
|
-
if (typeof s === "object") return s;
|
|
776
|
-
return items.find((i) => i.id === s);
|
|
777
|
-
}).filter(Boolean);
|
|
778
|
-
}, [items, selected]);
|
|
779
|
-
const filtered = useMemo(() => {
|
|
780
|
-
const availableItems = items.filter((item) => !excludedValues?.includes(item));
|
|
781
|
-
return availableItems.filter((item) => {
|
|
782
|
-
if (filterable === "prefiltered" || !isFiltering) return true;
|
|
783
|
-
return item.name.toLowerCase().includes(textFilter.toLowerCase());
|
|
784
|
-
});
|
|
785
|
-
}, [filterable, isFiltering, items, textFilter, excludedValues]);
|
|
786
|
-
const activeSignal = useWatchingSignal(active);
|
|
787
|
-
const filteredSignal = useWatchingSignal(filtered);
|
|
788
|
-
const focusProps = useSelectFocus({
|
|
789
|
-
activeItems: activeSignal,
|
|
790
|
-
filteredItems: filteredSignal
|
|
791
|
-
});
|
|
792
|
-
const {
|
|
793
|
-
focusInput,
|
|
794
|
-
focusItem,
|
|
795
|
-
focusDefaultItem,
|
|
796
|
-
focusNothing,
|
|
797
|
-
moveFocusToNextItem,
|
|
798
|
-
moveFocusToPreviousItem
|
|
799
|
-
} = focusProps;
|
|
800
|
-
const closeList = useCallback(
|
|
801
|
-
(shiftFocusTo) => {
|
|
802
|
-
if (behaviour === "textIsFilter") setTextFilter("");
|
|
803
|
-
setIsShowList(false);
|
|
804
|
-
switch (shiftFocusTo) {
|
|
805
|
-
case "input":
|
|
806
|
-
focusInput();
|
|
807
|
-
break;
|
|
808
|
-
case "nothing":
|
|
809
|
-
focusNothing();
|
|
810
|
-
break;
|
|
811
|
-
}
|
|
812
|
-
},
|
|
813
|
-
[behaviour, focusInput, focusNothing, setIsShowList, setTextFilter]
|
|
814
|
-
);
|
|
815
|
-
const showList = useCallback(() => {
|
|
816
|
-
if (!isShowList) setIsShowList(true);
|
|
817
|
-
}, [isShowList, setIsShowList]);
|
|
818
|
-
const handleSelect = useCallback(
|
|
819
|
-
(selectedItem) => {
|
|
820
|
-
setIsFiltering(false);
|
|
821
|
-
if (readonly) return;
|
|
822
|
-
if (isMulti) {
|
|
823
|
-
const isAlreadySelected = active.find((item) => item.id === selectedItem.id);
|
|
824
|
-
const newActiveItems = isAlreadySelected ? active.filter((i) => i.id !== selectedItem.id) : [...active, selectedItem];
|
|
825
|
-
onSelect?.(newActiveItems);
|
|
826
|
-
onChange?.({ target: { value: newActiveItems.map((i) => i.id), name: name ?? "" } });
|
|
827
|
-
focusItem(selectedItem);
|
|
828
|
-
} else {
|
|
829
|
-
const handleOnSelect = onSelect;
|
|
830
|
-
const handleOnChange = onChange;
|
|
831
|
-
handleOnSelect?.(selectedItem);
|
|
832
|
-
handleOnChange?.({ target: { value: selectedItem.id, name: name ?? "" } });
|
|
833
|
-
closeList("input");
|
|
834
|
-
}
|
|
835
|
-
if (enableTracking) {
|
|
836
|
-
userEvents.addFieldEvent("Interacted with form field", {
|
|
837
|
-
actionType: "select",
|
|
838
|
-
field: name,
|
|
839
|
-
returnValue: selectedItem.id
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
},
|
|
843
|
-
[
|
|
844
|
-
readonly,
|
|
845
|
-
isMulti,
|
|
846
|
-
enableTracking,
|
|
847
|
-
active,
|
|
848
|
-
onSelect,
|
|
849
|
-
onChange,
|
|
850
|
-
name,
|
|
851
|
-
focusItem,
|
|
852
|
-
closeList,
|
|
853
|
-
userEvents
|
|
854
|
-
]
|
|
855
|
-
);
|
|
856
|
-
const handleBlur = (e) => {
|
|
857
|
-
onBlur(e);
|
|
858
|
-
};
|
|
859
|
-
const handleInputKeyDown = async (e) => {
|
|
860
|
-
if (e.key === KEYBOARD_KEYS.enter && isShowList) {
|
|
861
|
-
if (filtered.length === 1) {
|
|
862
|
-
handleSelect(filtered[0]);
|
|
863
|
-
} else {
|
|
864
|
-
e.preventDefault();
|
|
865
|
-
}
|
|
866
|
-
} else if (e.key === KEYBOARD_KEYS.escape) {
|
|
867
|
-
closeList("nothing");
|
|
868
|
-
} else if (e.key === KEYBOARD_KEYS.enter || e.key === KEYBOARD_KEYS.space && (!filterable || !isShowList)) {
|
|
869
|
-
e.preventDefault();
|
|
870
|
-
e.stopPropagation();
|
|
871
|
-
showList();
|
|
872
|
-
focusDefaultItem();
|
|
873
|
-
} else if (e.key === KEYBOARD_KEYS.arrowUp || e.key === KEYBOARD_KEYS.arrowDown) {
|
|
874
|
-
e.preventDefault();
|
|
875
|
-
e.stopPropagation();
|
|
876
|
-
showList();
|
|
877
|
-
focusDefaultItem();
|
|
878
|
-
switch (e.key) {
|
|
879
|
-
case KEYBOARD_KEYS.arrowUp:
|
|
880
|
-
moveFocusToPreviousItem();
|
|
881
|
-
break;
|
|
882
|
-
case KEYBOARD_KEYS.arrowDown:
|
|
883
|
-
moveFocusToNextItem();
|
|
884
|
-
break;
|
|
885
|
-
}
|
|
886
|
-
} else if (e.key === KEYBOARD_KEYS.tab) {
|
|
887
|
-
closeList("nothing");
|
|
888
|
-
}
|
|
889
|
-
};
|
|
890
|
-
const handleClickOutside = (e) => {
|
|
891
|
-
if (!selectContainerRef.current?.contains(e.target)) {
|
|
892
|
-
closeList("nothing");
|
|
893
|
-
}
|
|
894
|
-
};
|
|
895
|
-
const handleListItemKeyDown = (e, item) => {
|
|
896
|
-
switch (e.key) {
|
|
897
|
-
case KEYBOARD_KEYS.escape:
|
|
898
|
-
e.preventDefault();
|
|
899
|
-
closeList("input");
|
|
900
|
-
break;
|
|
901
|
-
case KEYBOARD_KEYS.space:
|
|
902
|
-
case KEYBOARD_KEYS.enter:
|
|
903
|
-
handleSelect(item);
|
|
904
|
-
break;
|
|
905
|
-
case KEYBOARD_KEYS.tab:
|
|
906
|
-
closeList("nothing");
|
|
907
|
-
break;
|
|
908
|
-
case KEYBOARD_KEYS.arrowUp:
|
|
909
|
-
case KEYBOARD_KEYS.arrowDown:
|
|
910
|
-
case KEYBOARD_KEYS.home:
|
|
911
|
-
case KEYBOARD_KEYS.end:
|
|
912
|
-
break;
|
|
913
|
-
default: {
|
|
914
|
-
e.preventDefault();
|
|
915
|
-
e.stopPropagation();
|
|
916
|
-
handleTextFilter(simulateTextChangeFromKeyboardEvent(e, textFilter));
|
|
917
|
-
focusInput();
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
};
|
|
921
|
-
const handleTextFilter = useCallback(
|
|
922
|
-
(value) => {
|
|
923
|
-
showList();
|
|
924
|
-
setIsFiltering(true);
|
|
925
|
-
setTextFilter(value);
|
|
926
|
-
if (enableTracking) {
|
|
927
|
-
debouncedInputEvent(userEvents, { actionType: "input", field: name });
|
|
928
|
-
}
|
|
929
|
-
},
|
|
930
|
-
[enableTracking, name, setTextFilter, showList]
|
|
931
|
-
);
|
|
932
|
-
useEffect(() => {
|
|
933
|
-
document.addEventListener("click", handleClickOutside, true);
|
|
934
|
-
return () => {
|
|
935
|
-
document.removeEventListener("click", handleClickOutside, true);
|
|
936
|
-
};
|
|
937
|
-
}, []);
|
|
938
|
-
return /* @__PURE__ */ jsxs(
|
|
939
|
-
"div",
|
|
940
|
-
{
|
|
941
|
-
className: cx({ "adyen-kyc-dropdown": true, "adyen-kyc-dropdown--minimal": minimal }),
|
|
942
|
-
ref: selectContainerRef,
|
|
943
|
-
onFocusOut: handleBlur,
|
|
944
|
-
children: [
|
|
945
|
-
/* @__PURE__ */ jsx(
|
|
946
|
-
SelectButton,
|
|
947
|
-
{
|
|
948
|
-
id,
|
|
949
|
-
name,
|
|
950
|
-
active,
|
|
951
|
-
filterable,
|
|
952
|
-
isFiltering,
|
|
953
|
-
isInvalid,
|
|
954
|
-
onButtonKeyDown: handleInputKeyDown,
|
|
955
|
-
onInput: handleTextFilter,
|
|
956
|
-
placeholder,
|
|
957
|
-
readonly,
|
|
958
|
-
selectListId,
|
|
959
|
-
showList: isShowList,
|
|
960
|
-
focusProps,
|
|
961
|
-
"aria-describedby": ariaDescribedBy || "",
|
|
962
|
-
"aria-label": ariaLabel || "",
|
|
963
|
-
"aria-labelledby": ariaLabelledBy || "",
|
|
964
|
-
isMulti: Boolean(isMulti),
|
|
965
|
-
loading,
|
|
966
|
-
behaviour,
|
|
967
|
-
text: textFilter,
|
|
968
|
-
inputRef,
|
|
969
|
-
enableTracking,
|
|
970
|
-
minimal,
|
|
971
|
-
onClick: () => {
|
|
972
|
-
if (isShowList) {
|
|
973
|
-
closeList("input");
|
|
974
|
-
} else {
|
|
975
|
-
showList();
|
|
976
|
-
focusInput();
|
|
977
|
-
}
|
|
978
|
-
},
|
|
979
|
-
onFocus: () => focusInput()
|
|
980
|
-
}
|
|
981
|
-
),
|
|
982
|
-
/* @__PURE__ */ jsx(
|
|
983
|
-
SelectList,
|
|
984
|
-
{
|
|
985
|
-
active,
|
|
986
|
-
filteredItems: filtered,
|
|
987
|
-
onKeyDown: handleListItemKeyDown,
|
|
988
|
-
onSelect: handleSelect,
|
|
989
|
-
selectListId,
|
|
990
|
-
showList: isShowList,
|
|
991
|
-
textFilter,
|
|
992
|
-
isMulti: Boolean(isMulti),
|
|
993
|
-
isSearch: filterable === "prefiltered",
|
|
994
|
-
getSearchItem,
|
|
995
|
-
loading,
|
|
996
|
-
maxVisibleItems,
|
|
997
|
-
focusProps,
|
|
998
|
-
inputRef,
|
|
999
|
-
minimal
|
|
1000
|
-
}
|
|
1001
|
-
)
|
|
1002
|
-
]
|
|
1003
|
-
}
|
|
1004
|
-
);
|
|
1005
|
-
};
|
|
1006
|
-
class ValidationResult {
|
|
1007
|
-
validationResults;
|
|
1008
|
-
constructor(results) {
|
|
1009
|
-
this.validationResults = results;
|
|
1010
|
-
}
|
|
1011
|
-
/** Checks if all validation rules have passed */
|
|
1012
|
-
get isValid() {
|
|
1013
|
-
return this.validationResults.reduce((acc, result) => acc && result.isValid, true);
|
|
1014
|
-
}
|
|
1015
|
-
/** Checks if any validation rule returned an error */
|
|
1016
|
-
hasError() {
|
|
1017
|
-
return Boolean(this.getError());
|
|
1018
|
-
}
|
|
1019
|
-
/** Returns the first validation result that returned an error */
|
|
1020
|
-
getError() {
|
|
1021
|
-
return this.validationResults.find((result) => result.hasError);
|
|
1022
|
-
}
|
|
1023
|
-
/** Used to add async validation results to the static validation result*/
|
|
1024
|
-
addError(result) {
|
|
1025
|
-
this.validationResults.push(result);
|
|
1026
|
-
return this.validationResults;
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
const logger = createLogger();
|
|
1030
|
-
const useAsyncValidator = (asyncRules) => {
|
|
1031
|
-
const [asyncValidationResults, setAsyncValidationResults] = useState({});
|
|
1032
|
-
const clearAsyncValidationResults = useCallback(
|
|
1033
|
-
(field) => setAsyncValidationResults((existingResults) => ({
|
|
1034
|
-
...existingResults,
|
|
1035
|
-
[field]: void 0
|
|
1036
|
-
})),
|
|
1037
|
-
[]
|
|
1038
|
-
);
|
|
1039
|
-
const triggerAsyncValidation = useCallback(
|
|
1040
|
-
(field, formState, mode) => {
|
|
1041
|
-
const rule = asyncRules?.[field];
|
|
1042
|
-
if (!rule || !rule.modes.includes(mode)) {
|
|
1043
|
-
clearAsyncValidationResults(field);
|
|
1044
|
-
return;
|
|
1045
|
-
}
|
|
1046
|
-
const value = formState.data[field];
|
|
1047
|
-
return rule.asyncValidate(formState.data[field], { state: formState }).then((isValid) => {
|
|
1048
|
-
setAsyncValidationResults((existingResults) => ({
|
|
1049
|
-
...existingResults,
|
|
1050
|
-
[field]: new ValidationResult([
|
|
1051
|
-
{
|
|
1052
|
-
isValid,
|
|
1053
|
-
errorMessage: typeof rule.errorMessage === "function" ? rule.errorMessage(value, { state: formState }) : rule.errorMessage,
|
|
1054
|
-
hasError: !isValid
|
|
1055
|
-
}
|
|
1056
|
-
])
|
|
1057
|
-
}));
|
|
1058
|
-
}).catch(logger.error);
|
|
1059
|
-
},
|
|
1060
|
-
[asyncRules, clearAsyncValidationResults]
|
|
1061
|
-
);
|
|
1062
|
-
return {
|
|
1063
|
-
asyncValidationResults,
|
|
1064
|
-
triggerAsyncValidation,
|
|
1065
|
-
clearAsyncValidationResults
|
|
1066
|
-
};
|
|
1067
|
-
};
|
|
1068
|
-
const useStaticValidator = (rules) => {
|
|
1069
|
-
const getRulesForField = useCallback(
|
|
1070
|
-
(field) => {
|
|
1071
|
-
const fallbackRule = {
|
|
1072
|
-
validate: () => true,
|
|
1073
|
-
modes: ["blur", "input"]
|
|
1074
|
-
};
|
|
1075
|
-
const fieldRules = rules?.[field] ?? [fallbackRule];
|
|
1076
|
-
return Array.isArray(fieldRules) ? fieldRules : [fieldRules];
|
|
1077
|
-
},
|
|
1078
|
-
[rules]
|
|
1079
|
-
);
|
|
1080
|
-
const triggerStaticValidation = useCallback(
|
|
1081
|
-
({ key, value, mode = "blur" }, context) => {
|
|
1082
|
-
const fieldRules = getRulesForField(key);
|
|
1083
|
-
const isFieldOptional = !!context?.state.optionalFields?.includes(key);
|
|
1084
|
-
const isFieldObscured = !!context?.state.obscuredFields?.includes(key);
|
|
1085
|
-
const validationRulesResult = fieldRules.map((rule) => {
|
|
1086
|
-
const shouldValidate = rule.modes.includes(mode) && !isFieldObscured;
|
|
1087
|
-
const isValid = isFieldOptional && isEmpty(value) ? true : rule.validate(value, context);
|
|
1088
|
-
return {
|
|
1089
|
-
isValid,
|
|
1090
|
-
errorMessage: typeof rule.errorMessage === "function" ? rule.errorMessage(value, context) : rule.errorMessage,
|
|
1091
|
-
hasError: shouldValidate && !isValid
|
|
1092
|
-
};
|
|
1093
|
-
});
|
|
1094
|
-
return new ValidationResult(validationRulesResult);
|
|
1095
|
-
},
|
|
1096
|
-
[getRulesForField]
|
|
1097
|
-
);
|
|
1098
|
-
return {
|
|
1099
|
-
triggerStaticValidation
|
|
1100
|
-
};
|
|
1101
|
-
};
|
|
1102
|
-
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
1103
|
-
a[c] = obj[c];
|
|
1104
|
-
return a;
|
|
1105
|
-
}, {});
|
|
1106
|
-
const addKeys = (obj, add, initialValue, defaultData, pendingData) => add.reduce(
|
|
1107
|
-
(a, c) => ({
|
|
1108
|
-
...a,
|
|
1109
|
-
[c]: a[c] ?? pendingData?.[c] ?? defaultData?.[c] ?? initialValue
|
|
1110
|
-
}),
|
|
1111
|
-
obj
|
|
1112
|
-
);
|
|
1113
|
-
function getDataByFields(formData, fieldKeys) {
|
|
1114
|
-
return entriesOf(formData).reduce((acc, [key, val]) => {
|
|
1115
|
-
if (fieldKeys.includes(key)) {
|
|
1116
|
-
return { ...acc, [key]: val };
|
|
1117
|
-
}
|
|
1118
|
-
return acc;
|
|
1119
|
-
}, {});
|
|
1120
|
-
}
|
|
1121
|
-
const processField = ({
|
|
1122
|
-
key,
|
|
1123
|
-
value = null,
|
|
1124
|
-
mode,
|
|
1125
|
-
defaultData,
|
|
1126
|
-
fieldContext,
|
|
1127
|
-
formatters,
|
|
1128
|
-
staticValidate,
|
|
1129
|
-
asyncValidate
|
|
1130
|
-
}) => {
|
|
1131
|
-
const formatterFn = formatters?.[key]?.formatter ? formatters[key]?.formatter : formatters?.[key];
|
|
1132
|
-
const formattedValue = formatterFn && typeof formatterFn === "function" ? formatterFn(value, fieldContext) : value;
|
|
1133
|
-
const shouldValidateField = !(defaultData?.[key] === value && !!defaultData?.[key]);
|
|
1134
|
-
if (shouldValidateField && value) {
|
|
1135
|
-
asyncValidate(key, fieldContext.state, mode);
|
|
1136
|
-
}
|
|
1137
|
-
const validationResult = shouldValidateField ? staticValidate({ key, value: formattedValue, mode }, fieldContext) : new ValidationResult([
|
|
1138
|
-
{
|
|
1139
|
-
isValid: true,
|
|
1140
|
-
hasError: false
|
|
1141
|
-
}
|
|
1142
|
-
]);
|
|
1143
|
-
return [formattedValue, validationResult];
|
|
1144
|
-
};
|
|
1145
|
-
function init({
|
|
1146
|
-
schema,
|
|
1147
|
-
defaultData,
|
|
1148
|
-
fieldProblems,
|
|
1149
|
-
obscuredFields,
|
|
1150
|
-
optionalFields,
|
|
1151
|
-
trustedFields,
|
|
1152
|
-
formatters,
|
|
1153
|
-
staticValidate,
|
|
1154
|
-
asyncValidate
|
|
1155
|
-
}) {
|
|
1156
|
-
const getProcessedState = (fieldKey) => {
|
|
1157
|
-
const [formattedValue, validationResult] = processField({
|
|
1158
|
-
key: fieldKey,
|
|
1159
|
-
value: defaultData?.[fieldKey],
|
|
1160
|
-
mode: "blur",
|
|
1161
|
-
formatters,
|
|
1162
|
-
defaultData,
|
|
1163
|
-
fieldContext: {
|
|
1164
|
-
state: {
|
|
1165
|
-
data: defaultData,
|
|
1166
|
-
obscuredFields,
|
|
1167
|
-
optionalFields,
|
|
1168
|
-
trustedFields
|
|
1169
|
-
}
|
|
1170
|
-
},
|
|
1171
|
-
staticValidate,
|
|
1172
|
-
asyncValidate
|
|
1173
|
-
});
|
|
1174
|
-
if (typeof defaultData?.[fieldKey] === "undefined") {
|
|
1175
|
-
return {
|
|
1176
|
-
valid: validationResult.isValid && !fieldProblems?.[fieldKey] || false,
|
|
1177
|
-
errors: null,
|
|
1178
|
-
data: null,
|
|
1179
|
-
fieldProblems: fieldProblems?.[fieldKey] ?? false
|
|
1180
|
-
};
|
|
1181
|
-
}
|
|
1182
|
-
return {
|
|
1183
|
-
valid: validationResult.isValid && !fieldProblems?.[fieldKey] || false,
|
|
1184
|
-
errors: validationResult.getError() ?? null,
|
|
1185
|
-
data: formattedValue,
|
|
1186
|
-
fieldProblems: fieldProblems?.[fieldKey] ?? false
|
|
1187
|
-
};
|
|
1188
|
-
};
|
|
1189
|
-
const formFields = optionalFields ? [...schema, ...optionalFields] : schema;
|
|
1190
|
-
const formData = formFields.reduce(
|
|
1191
|
-
(acc, field) => {
|
|
1192
|
-
const {
|
|
1193
|
-
valid,
|
|
1194
|
-
errors,
|
|
1195
|
-
data,
|
|
1196
|
-
fieldProblems: processedFieldProblems
|
|
1197
|
-
} = getProcessedState(field);
|
|
1198
|
-
return {
|
|
1199
|
-
...acc,
|
|
1200
|
-
data: { ...acc.data, [field]: data },
|
|
1201
|
-
valid: { ...acc.valid, [field]: valid },
|
|
1202
|
-
errors: { ...acc.errors, [field]: errors },
|
|
1203
|
-
fieldProblems: { ...acc.fieldProblems, [field]: processedFieldProblems }
|
|
1204
|
-
};
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
schema,
|
|
1208
|
-
data: {},
|
|
1209
|
-
valid: {},
|
|
1210
|
-
errors: {},
|
|
1211
|
-
fieldProblems: {},
|
|
1212
|
-
obscuredFields,
|
|
1213
|
-
optionalFields,
|
|
1214
|
-
trustedFields
|
|
1215
|
-
}
|
|
1216
|
-
);
|
|
1217
|
-
return formData;
|
|
1218
|
-
}
|
|
1219
|
-
function reducer({
|
|
1220
|
-
staticValidate,
|
|
1221
|
-
asyncValidate,
|
|
1222
|
-
obscuredFields,
|
|
1223
|
-
optionalFields,
|
|
1224
|
-
trustedFields,
|
|
1225
|
-
formatters
|
|
1226
|
-
}) {
|
|
1227
|
-
return (state, {
|
|
1228
|
-
type,
|
|
1229
|
-
key,
|
|
1230
|
-
mode,
|
|
1231
|
-
value,
|
|
1232
|
-
schema,
|
|
1233
|
-
selectedSchema,
|
|
1234
|
-
formValue,
|
|
1235
|
-
fieldProblems,
|
|
1236
|
-
defaultData
|
|
1237
|
-
}) => {
|
|
1238
|
-
const validationSchema = selectedSchema || state.schema;
|
|
1239
|
-
switch (type) {
|
|
1240
|
-
case "setData": {
|
|
1241
|
-
if (!key) return state;
|
|
1242
|
-
return { ...state, data: { ...state.data, [key]: value } };
|
|
1243
|
-
}
|
|
1244
|
-
case "setValid": {
|
|
1245
|
-
if (!key) return state;
|
|
1246
|
-
return { ...state, valid: { ...state.valid, [key]: value } };
|
|
1247
|
-
}
|
|
1248
|
-
case "setErrors": {
|
|
1249
|
-
if (!key) return state;
|
|
1250
|
-
return { ...state, errors: { ...state.errors, [key]: value } };
|
|
1251
|
-
}
|
|
1252
|
-
case "setFieldProblems": {
|
|
1253
|
-
return state?.schema?.reduce(
|
|
1254
|
-
(acc, field) => ({
|
|
1255
|
-
...acc,
|
|
1256
|
-
fieldProblems: {
|
|
1257
|
-
...state.fieldProblems,
|
|
1258
|
-
[field]: fieldProblems?.[field] ?? false
|
|
1259
|
-
},
|
|
1260
|
-
valid: { ...state.valid, [field]: state.valid?.[field] && !fieldProblems?.[field] }
|
|
1261
|
-
}),
|
|
1262
|
-
state
|
|
1263
|
-
);
|
|
1264
|
-
}
|
|
1265
|
-
case "setSchema": {
|
|
1266
|
-
if (!schema) return state;
|
|
1267
|
-
const defaultState = init({
|
|
1268
|
-
schema,
|
|
1269
|
-
// requiredFields
|
|
1270
|
-
defaultData,
|
|
1271
|
-
fieldProblems,
|
|
1272
|
-
obscuredFields,
|
|
1273
|
-
optionalFields,
|
|
1274
|
-
trustedFields,
|
|
1275
|
-
staticValidate,
|
|
1276
|
-
asyncValidate
|
|
1277
|
-
});
|
|
1278
|
-
const removedFields = state.optionalFields?.length ? [
|
|
1279
|
-
...state.schema.filter((field) => !schema.includes(field)),
|
|
1280
|
-
...state.optionalFields.filter((field) => !optionalFields?.includes(field))
|
|
1281
|
-
] : state.schema.filter((field) => !schema.includes(field));
|
|
1282
|
-
const newFields = optionalFields?.length ? [
|
|
1283
|
-
...schema.filter((field) => !state.schema?.includes(field)),
|
|
1284
|
-
...optionalFields.filter((field) => !state.optionalFields?.includes(field))
|
|
1285
|
-
] : schema.filter((field) => !state.schema?.includes(field));
|
|
1286
|
-
const local = {
|
|
1287
|
-
data: omitKeys(state.data, newFields),
|
|
1288
|
-
errors: omitKeys(state.errors, newFields),
|
|
1289
|
-
valid: omitKeys(state.valid, newFields),
|
|
1290
|
-
fieldProblems: omitKeys(state.fieldProblems, newFields)
|
|
1291
|
-
};
|
|
1292
|
-
const updatedData = addKeys(
|
|
1293
|
-
omitKeys(state.data, removedFields),
|
|
1294
|
-
newFields,
|
|
1295
|
-
null,
|
|
1296
|
-
defaultState.data,
|
|
1297
|
-
state.local?.data
|
|
1298
|
-
);
|
|
1299
|
-
const updatedValid = addKeys(
|
|
1300
|
-
omitKeys(state.valid, removedFields),
|
|
1301
|
-
newFields,
|
|
1302
|
-
false,
|
|
1303
|
-
defaultState.valid,
|
|
1304
|
-
state.local?.valid
|
|
1305
|
-
);
|
|
1306
|
-
const updatedErrors = addKeys(
|
|
1307
|
-
omitKeys(state.errors, removedFields),
|
|
1308
|
-
newFields,
|
|
1309
|
-
null,
|
|
1310
|
-
defaultState.errors,
|
|
1311
|
-
state.local?.errors
|
|
1312
|
-
);
|
|
1313
|
-
const updatedFieldProblems = addKeys(
|
|
1314
|
-
omitKeys(state.fieldProblems, removedFields),
|
|
1315
|
-
newFields,
|
|
1316
|
-
false,
|
|
1317
|
-
defaultState.fieldProblems,
|
|
1318
|
-
state.local?.fieldProblems
|
|
1319
|
-
);
|
|
1320
|
-
return {
|
|
1321
|
-
...state,
|
|
1322
|
-
schema,
|
|
1323
|
-
data: updatedData,
|
|
1324
|
-
valid: updatedValid,
|
|
1325
|
-
errors: updatedErrors,
|
|
1326
|
-
fieldProblems: updatedFieldProblems,
|
|
1327
|
-
obscuredFields,
|
|
1328
|
-
optionalFields,
|
|
1329
|
-
trustedFields,
|
|
1330
|
-
local
|
|
1331
|
-
};
|
|
1332
|
-
}
|
|
1333
|
-
case "updateField": {
|
|
1334
|
-
if (!key || !mode) return state;
|
|
1335
|
-
const [formattedValue, validation] = processField({
|
|
1336
|
-
key,
|
|
1337
|
-
value,
|
|
1338
|
-
mode,
|
|
1339
|
-
defaultData,
|
|
1340
|
-
formatters,
|
|
1341
|
-
fieldContext: { state },
|
|
1342
|
-
staticValidate,
|
|
1343
|
-
asyncValidate
|
|
1344
|
-
});
|
|
1345
|
-
const oldValue = state.data[key];
|
|
1346
|
-
const clearFieldProblems = oldValue !== formattedValue;
|
|
1347
|
-
return {
|
|
1348
|
-
...state,
|
|
1349
|
-
data: { ...state.data, [key]: formattedValue },
|
|
1350
|
-
errors: {
|
|
1351
|
-
...state.errors,
|
|
1352
|
-
[key]: validation.getError() ?? null
|
|
1353
|
-
},
|
|
1354
|
-
valid: {
|
|
1355
|
-
...state.valid,
|
|
1356
|
-
[key]: validation.isValid && !state.fieldProblems?.[key] || false
|
|
1357
|
-
},
|
|
1358
|
-
fieldProblems: {
|
|
1359
|
-
...state.fieldProblems,
|
|
1360
|
-
[key]: clearFieldProblems ? false : state.fieldProblems?.[key] ?? false
|
|
1361
|
-
}
|
|
1362
|
-
};
|
|
1363
|
-
}
|
|
1364
|
-
case "mergeForm": {
|
|
1365
|
-
const mergedState = {
|
|
1366
|
-
...state,
|
|
1367
|
-
data: { ...state.data, ...formValue?.data },
|
|
1368
|
-
errors: { ...state.errors, ...formValue?.errors },
|
|
1369
|
-
valid: { ...state.valid, ...formValue?.valid },
|
|
1370
|
-
fieldProblems: { ...state.fieldProblems, ...formValue?.fieldProblems }
|
|
1371
|
-
};
|
|
1372
|
-
if (mergedState.valid) {
|
|
1373
|
-
mergedState.isValid = Object.values(mergedState.valid).every((isValid) => isValid);
|
|
1374
|
-
}
|
|
1375
|
-
return mergedState;
|
|
1376
|
-
}
|
|
1377
|
-
case "validateForm": {
|
|
1378
|
-
const formValidation = validationSchema?.reduce(
|
|
1379
|
-
(acc, cur) => {
|
|
1380
|
-
const [formattedValue, validation] = processField({
|
|
1381
|
-
key: cur,
|
|
1382
|
-
value: state.data[cur],
|
|
1383
|
-
mode: "blur",
|
|
1384
|
-
defaultData,
|
|
1385
|
-
formatters,
|
|
1386
|
-
fieldContext: { state },
|
|
1387
|
-
staticValidate,
|
|
1388
|
-
asyncValidate
|
|
1389
|
-
});
|
|
1390
|
-
const oldValue = state.data[cur];
|
|
1391
|
-
const clearFieldProblems = oldValue !== formattedValue;
|
|
1392
|
-
return {
|
|
1393
|
-
valid: {
|
|
1394
|
-
...acc.valid,
|
|
1395
|
-
[cur]: validation.isValid && !state.fieldProblems?.[cur] || false
|
|
1396
|
-
},
|
|
1397
|
-
errors: {
|
|
1398
|
-
...acc.errors,
|
|
1399
|
-
[cur]: validation.getError() ?? null
|
|
1400
|
-
},
|
|
1401
|
-
fieldProblems: {
|
|
1402
|
-
...acc.fieldProblems,
|
|
1403
|
-
[cur]: clearFieldProblems ? false : state.fieldProblems?.[cur] ?? false
|
|
1404
|
-
}
|
|
1405
|
-
};
|
|
1406
|
-
},
|
|
1407
|
-
{ valid: state.valid, errors: state.errors, fieldProblems: state.fieldProblems }
|
|
1408
|
-
);
|
|
1409
|
-
return {
|
|
1410
|
-
...state,
|
|
1411
|
-
valid: formValidation?.valid,
|
|
1412
|
-
errors: formValidation?.errors,
|
|
1413
|
-
fieldProblems: formValidation?.fieldProblems
|
|
1414
|
-
};
|
|
1415
|
-
}
|
|
1416
|
-
default:
|
|
1417
|
-
throw new Error("Undefined useForm action");
|
|
1418
|
-
}
|
|
1419
|
-
};
|
|
1420
|
-
}
|
|
1421
|
-
const mergeStaticAndAsyncErrorsState = (staticValidationErrors, asyncValidationErrors, schema, setValid, optionalFields) => {
|
|
1422
|
-
const fields = optionalFields ? [...schema, ...optionalFields] : schema;
|
|
1423
|
-
if (!fields.length) return staticValidationErrors;
|
|
1424
|
-
const errors = fields.reduce(
|
|
1425
|
-
(acc, field) => {
|
|
1426
|
-
if (asyncValidationErrors[field]?.getError()) setValid(field, false);
|
|
1427
|
-
return {
|
|
1428
|
-
...acc,
|
|
1429
|
-
[field]: staticValidationErrors[field] ?? asyncValidationErrors[field]?.getError() ?? null
|
|
1430
|
-
};
|
|
1431
|
-
},
|
|
1432
|
-
{}
|
|
1433
|
-
);
|
|
1434
|
-
return errors;
|
|
1435
|
-
};
|
|
1436
|
-
function useForm({
|
|
1437
|
-
schema,
|
|
1438
|
-
defaultData,
|
|
1439
|
-
rules,
|
|
1440
|
-
asyncRules,
|
|
1441
|
-
fieldProblems,
|
|
1442
|
-
obscuredFields,
|
|
1443
|
-
optionalFields,
|
|
1444
|
-
trustedFields,
|
|
1445
|
-
formatters,
|
|
1446
|
-
shouldValidate = false
|
|
1447
|
-
}) {
|
|
1448
|
-
const { triggerStaticValidation } = useStaticValidator(rules);
|
|
1449
|
-
const { triggerAsyncValidation, asyncValidationResults } = useAsyncValidator(asyncRules);
|
|
1450
|
-
const getRequiredFields = useMemo(
|
|
1451
|
-
() => typeof schema === "function" ? schema : () => schema,
|
|
1452
|
-
[schema]
|
|
1453
|
-
);
|
|
1454
|
-
const getSchema = useMemo(
|
|
1455
|
-
() => defaultData ? getRequiredFields(defaultData) : [],
|
|
1456
|
-
[defaultData, getRequiredFields]
|
|
1457
|
-
);
|
|
1458
|
-
const getReducer = useCallback(
|
|
1459
|
-
() => reducer({
|
|
1460
|
-
staticValidate: triggerStaticValidation,
|
|
1461
|
-
asyncValidate: triggerAsyncValidation,
|
|
1462
|
-
obscuredFields,
|
|
1463
|
-
optionalFields,
|
|
1464
|
-
trustedFields,
|
|
1465
|
-
formatters
|
|
1466
|
-
}),
|
|
1467
|
-
[
|
|
1468
|
-
triggerStaticValidation,
|
|
1469
|
-
triggerAsyncValidation,
|
|
1470
|
-
obscuredFields,
|
|
1471
|
-
optionalFields,
|
|
1472
|
-
trustedFields,
|
|
1473
|
-
formatters
|
|
1474
|
-
]
|
|
1475
|
-
);
|
|
1476
|
-
const initialData = useMemo(
|
|
1477
|
-
() => ({
|
|
1478
|
-
schema: getSchema,
|
|
1479
|
-
defaultData,
|
|
1480
|
-
fieldProblems,
|
|
1481
|
-
obscuredFields,
|
|
1482
|
-
optionalFields,
|
|
1483
|
-
trustedFields,
|
|
1484
|
-
formatters,
|
|
1485
|
-
staticValidate: triggerStaticValidation,
|
|
1486
|
-
asyncValidate: triggerAsyncValidation
|
|
1487
|
-
}),
|
|
1488
|
-
[
|
|
1489
|
-
getSchema,
|
|
1490
|
-
defaultData,
|
|
1491
|
-
fieldProblems,
|
|
1492
|
-
obscuredFields,
|
|
1493
|
-
optionalFields,
|
|
1494
|
-
trustedFields,
|
|
1495
|
-
formatters,
|
|
1496
|
-
triggerStaticValidation,
|
|
1497
|
-
triggerAsyncValidation
|
|
1498
|
-
]
|
|
1499
|
-
);
|
|
1500
|
-
const [state, dispatch] = useReducer(getReducer(), initialData, init);
|
|
1501
|
-
const isValid = useMemo(
|
|
1502
|
-
() => state.schema?.every((key) => state.valid[key]),
|
|
1503
|
-
[state.schema, state.valid]
|
|
1504
|
-
);
|
|
1505
|
-
const getTargetValue = useCallback(
|
|
1506
|
-
(key, e) => {
|
|
1507
|
-
if (!e?.target) return e;
|
|
1508
|
-
if (e.target.type === "checkbox") {
|
|
1509
|
-
return !state.data[key];
|
|
1510
|
-
}
|
|
1511
|
-
return e.target.value;
|
|
1512
|
-
},
|
|
1513
|
-
[state.data]
|
|
1514
|
-
);
|
|
1515
|
-
const setErrors = useCallback(
|
|
1516
|
-
(key, value) => dispatch({ type: "setErrors", key, value }),
|
|
1517
|
-
[]
|
|
1518
|
-
);
|
|
1519
|
-
const setValid = useCallback(
|
|
1520
|
-
(key, value) => dispatch({ type: "setValid", key, value }),
|
|
1521
|
-
[]
|
|
1522
|
-
);
|
|
1523
|
-
const setData = useCallback(
|
|
1524
|
-
(key, value) => dispatch({ type: "setData", key, value }),
|
|
1525
|
-
[]
|
|
1526
|
-
);
|
|
1527
|
-
const setSchema = useCallback(
|
|
1528
|
-
(newSchema) => dispatch({ type: "setSchema", schema: newSchema, defaultData }),
|
|
1529
|
-
[defaultData]
|
|
1530
|
-
);
|
|
1531
|
-
const setFieldProblems = useCallback(
|
|
1532
|
-
(newFieldProblems) => dispatch({ type: "setFieldProblems", fieldProblems: newFieldProblems }),
|
|
1533
|
-
[]
|
|
1534
|
-
);
|
|
1535
|
-
const mergeForm = useCallback(
|
|
1536
|
-
(formValue) => dispatch({ type: "mergeForm", formValue }),
|
|
1537
|
-
[]
|
|
1538
|
-
);
|
|
1539
|
-
const handleChangeFor = useCallback(
|
|
1540
|
-
(key, mode = "blur") => (e) => {
|
|
1541
|
-
const value = getTargetValue(key, e);
|
|
1542
|
-
dispatch({
|
|
1543
|
-
type: "updateField",
|
|
1544
|
-
key,
|
|
1545
|
-
value,
|
|
1546
|
-
mode,
|
|
1547
|
-
defaultData
|
|
1548
|
-
});
|
|
1549
|
-
},
|
|
1550
|
-
[defaultData, getTargetValue]
|
|
1551
|
-
);
|
|
1552
|
-
const triggerValidation = useCallback(
|
|
1553
|
-
(selectedSchema) => {
|
|
1554
|
-
dispatch({
|
|
1555
|
-
type: "validateForm",
|
|
1556
|
-
selectedSchema,
|
|
1557
|
-
defaultData
|
|
1558
|
-
});
|
|
1559
|
-
},
|
|
1560
|
-
[defaultData]
|
|
1561
|
-
);
|
|
1562
|
-
const resetToDefaultData = useCallback(() => {
|
|
1563
|
-
getSchema.forEach((field) => {
|
|
1564
|
-
if (!defaultData || typeof defaultData[field] !== "undefined") {
|
|
1565
|
-
return handleChangeFor(field)(defaultData?.[field]);
|
|
1566
|
-
}
|
|
1567
|
-
setValid(field, false);
|
|
1568
|
-
setErrors(field, null);
|
|
1569
|
-
setData(field, defaultData[field]);
|
|
1570
|
-
});
|
|
1571
|
-
}, [defaultData, getSchema, handleChangeFor, setData, setErrors, setValid]);
|
|
1572
|
-
useEffect(() => {
|
|
1573
|
-
const newSchema = getRequiredFields(state.data);
|
|
1574
|
-
if (!doArraysMatch(state.schema, newSchema)) {
|
|
1575
|
-
setSchema(newSchema);
|
|
1576
|
-
}
|
|
1577
|
-
}, [state.schema, state.data, setSchema, getRequiredFields]);
|
|
1578
|
-
useEffect(() => {
|
|
1579
|
-
if (shouldValidate) {
|
|
1580
|
-
triggerValidation();
|
|
1581
|
-
}
|
|
1582
|
-
}, [shouldValidate, state.schema]);
|
|
1583
|
-
useEffect(() => {
|
|
1584
|
-
if (fieldProblems) {
|
|
1585
|
-
setFieldProblems(fieldProblems);
|
|
1586
|
-
}
|
|
1587
|
-
}, [JSON.stringify(fieldProblems), setFieldProblems]);
|
|
1588
|
-
const formErrors = useMemo(
|
|
1589
|
-
() => mergeStaticAndAsyncErrorsState(
|
|
1590
|
-
state.errors,
|
|
1591
|
-
asyncValidationResults,
|
|
1592
|
-
state.schema,
|
|
1593
|
-
setValid,
|
|
1594
|
-
state.optionalFields
|
|
1595
|
-
),
|
|
1596
|
-
[asyncValidationResults, state.errors, state.optionalFields, state.schema]
|
|
1597
|
-
);
|
|
1598
|
-
return {
|
|
1599
|
-
mergeForm,
|
|
1600
|
-
setData,
|
|
1601
|
-
setValid,
|
|
1602
|
-
setErrors,
|
|
1603
|
-
setFieldProblems,
|
|
1604
|
-
handleChangeFor,
|
|
1605
|
-
triggerValidation,
|
|
1606
|
-
resetToDefaultData,
|
|
1607
|
-
isValid,
|
|
1608
|
-
schema: state.schema,
|
|
1609
|
-
valid: state.valid,
|
|
1610
|
-
errors: formErrors,
|
|
1611
|
-
data: state.data,
|
|
1612
|
-
fieldProblems: state.fieldProblems
|
|
1613
|
-
};
|
|
1614
|
-
}
|
|
1615
|
-
export {
|
|
1616
|
-
Field as F,
|
|
1617
|
-
LoaderWrapper as L,
|
|
1618
|
-
Select as S,
|
|
1619
|
-
ValidationResult as V,
|
|
1620
|
-
SelectListItem as a,
|
|
1621
|
-
getDataByFields as g,
|
|
1622
|
-
useForm as u
|
|
1623
|
-
};
|