@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
|
@@ -1,1402 +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] = "69d8f98d-eaa3-4e35-88f9-d55cab1a9629", e._sentryDebugIdIdentifier = "sentry-dbid-69d8f98d-eaa3-4e35-88f9-d55cab1a9629");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { c as useLegalEntity, R as ROOT_LE, p as useExperimentsContext, az as getCapabilityProblems, g as getLegalEntityCountry, aA as cloneObject, C as CountryCodes, aB as hasText, aC as isValidMinLength, aD as matchesRegex, X as isEmpty, aE as NO_ALPHABET_REGEX, aF as EMOJI_REGEX, aG as hasRepeatedCharacters, aH as isInvalidName, aI as OTHER_ENTITIES_VALID_CHAR_REGEX, aJ as LATIN_SPACE_MARK_PUNCTUATION_REGEX, aK as standardKatakanaValidator, aL as standardKanjiValidator, a0 as useAnalyticsContext, U as createLogger, u as useTranslation, ay as StateContext, L as Loader, a3 as Icon, H as Typography, Y as IconButton } from "./StoreProvider-l6WD5T55.js";
|
|
11
|
-
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
12
|
-
import { a as Alert } from "./Alert-BVHHWVgg.js";
|
|
13
|
-
import cx from "classnames";
|
|
14
|
-
import { useState, useMemo, useEffect, useCallback, useLayoutEffect, useRef } from "preact/hooks";
|
|
15
|
-
import { a as debouncedInputEvent } from "./debouncedInputEvent-Bifj90NU.js";
|
|
16
|
-
import { Suspense, lazy, forwardRef } from "preact/compat";
|
|
17
|
-
import { b as useId } from "./useToastContext-mFlAEux_.js";
|
|
18
|
-
import { R as Radio } from "./CountryField-D36v7bff.js";
|
|
19
|
-
import { F as Field } from "./useForm-C8SA0ETz.js";
|
|
20
|
-
import { K as KEYBOARD_KEYS } from "./Modal-lDK70UQc.js";
|
|
21
|
-
import { u as useForwardedRef, a as InputBase, I as InputText } from "./InputText-DHRZ5RNd.js";
|
|
22
|
-
const useCapabilityProblems = () => {
|
|
23
|
-
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
24
|
-
const { isExperimentEnabled } = useExperimentsContext();
|
|
25
|
-
return rootLegalEntity ? getCapabilityProblems(
|
|
26
|
-
rootLegalEntity,
|
|
27
|
-
getLegalEntityCountry(rootLegalEntity),
|
|
28
|
-
isExperimentEnabled
|
|
29
|
-
) : void 0;
|
|
30
|
-
};
|
|
31
|
-
const getProblemsForEntity = (capabilityProblems, entityType, entityId) => capabilityProblems[entityType]?.[entityId];
|
|
32
|
-
const TrustedFieldsProviders = {
|
|
33
|
-
SINGPASS: "singpass",
|
|
34
|
-
KOMPANY: "kompany"
|
|
35
|
-
};
|
|
36
|
-
const makeArrayOfRepeatedObjects = (length, obj) => {
|
|
37
|
-
const array = [];
|
|
38
|
-
for (let i = 0; i < length; i += 1) {
|
|
39
|
-
array.push(cloneObject(obj));
|
|
40
|
-
}
|
|
41
|
-
return array;
|
|
42
|
-
};
|
|
43
|
-
const shiftRight = (possibleShifts, matchedTokens, remainingTokens) => {
|
|
44
|
-
let shiftsToTry = [...possibleShifts];
|
|
45
|
-
let current = { matchedTokens, remainingTokens };
|
|
46
|
-
while (current.remainingTokens.length > 0 && shiftsToTry.length > 0) {
|
|
47
|
-
const possibleShift = shiftsToTry[0];
|
|
48
|
-
const shifted = tryShift(
|
|
49
|
-
current.matchedTokens,
|
|
50
|
-
current.remainingTokens,
|
|
51
|
-
possibleShift.fromIndex,
|
|
52
|
-
possibleShift.shiftDistance
|
|
53
|
-
);
|
|
54
|
-
if (shifted === "notPossible") {
|
|
55
|
-
shiftsToTry = shiftsToTry.slice(1);
|
|
56
|
-
} else {
|
|
57
|
-
current = shifted;
|
|
58
|
-
shiftsToTry = [...possibleShifts];
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return current;
|
|
62
|
-
};
|
|
63
|
-
const findPossibleShifts = (mask) => {
|
|
64
|
-
const inputOnlyMask = mask.filter((t) => t.type === "input");
|
|
65
|
-
const optionals = inputOnlyMask.filter((t) => t.optional);
|
|
66
|
-
const possibleShifts = [];
|
|
67
|
-
for (const optional of optionals) {
|
|
68
|
-
const index = inputOnlyMask.indexOf(optional);
|
|
69
|
-
for (let i = index + 1; i < inputOnlyMask.length; i += 1) {
|
|
70
|
-
const laterToken = inputOnlyMask[i];
|
|
71
|
-
if (laterToken.type === "input") {
|
|
72
|
-
possibleShifts.push({
|
|
73
|
-
fromIndex: index,
|
|
74
|
-
shiftDistance: i - index
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return possibleShifts.sort((s1, s2) => {
|
|
80
|
-
if (s1.fromIndex === s2.fromIndex) {
|
|
81
|
-
return s2.shiftDistance - s1.shiftDistance;
|
|
82
|
-
}
|
|
83
|
-
return s1.fromIndex - s2.fromIndex;
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
const tryShift = (matchedTokens, remainingTokens, fromIndex, shiftDistance) => {
|
|
87
|
-
const normalizedTokens = [
|
|
88
|
-
...matchedTokens.map((token, i) => ({
|
|
89
|
-
...token,
|
|
90
|
-
currentValue: token.char,
|
|
91
|
-
originalIndex: i
|
|
92
|
-
})),
|
|
93
|
-
...remainingTokens.map((token, i) => ({
|
|
94
|
-
...token,
|
|
95
|
-
currentValue: null,
|
|
96
|
-
originalIndex: i + matchedTokens.length
|
|
97
|
-
}))
|
|
98
|
-
];
|
|
99
|
-
const normalizedInputTokens = normalizedTokens.filter(
|
|
100
|
-
(token) => token.type === "input"
|
|
101
|
-
);
|
|
102
|
-
if (normalizedTokens[fromIndex].currentValue === null) {
|
|
103
|
-
return "notPossible";
|
|
104
|
-
}
|
|
105
|
-
const emptyInputsAfter = normalizedInputTokens.slice(fromIndex + 1).filter((t) => !t.currentValue);
|
|
106
|
-
if (shiftDistance > emptyInputsAfter.length) {
|
|
107
|
-
return "notPossible";
|
|
108
|
-
}
|
|
109
|
-
for (let i = 0; i < normalizedInputTokens.length; i += 1) {
|
|
110
|
-
const token = normalizedInputTokens[i];
|
|
111
|
-
if (i < fromIndex) {
|
|
112
|
-
token.potentialValue = token.currentValue;
|
|
113
|
-
} else if (i < fromIndex + shiftDistance) {
|
|
114
|
-
token.potentialValue = null;
|
|
115
|
-
} else {
|
|
116
|
-
token.potentialValue = normalizedInputTokens[i - shiftDistance].currentValue;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
const allValid = normalizedInputTokens.every((token) => {
|
|
120
|
-
if (!token.potentialValue) {
|
|
121
|
-
return token.optional;
|
|
122
|
-
}
|
|
123
|
-
return token.allow?.test(token.potentialValue) ?? true;
|
|
124
|
-
});
|
|
125
|
-
if (!allValid) return "notPossible";
|
|
126
|
-
let matchedUpTo = 0;
|
|
127
|
-
for (let i = 0; i < normalizedTokens.length; i += 1) {
|
|
128
|
-
const token = normalizedInputTokens.find((t) => t.originalIndex === i) ?? normalizedTokens[i];
|
|
129
|
-
if (token.type === "input" && !token.potentialValue && !token.optional) {
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
matchedUpTo = i + 1;
|
|
133
|
-
}
|
|
134
|
-
const newMatchedTokens = normalizedTokens.slice(0, matchedUpTo).map((token) => ({
|
|
135
|
-
...token,
|
|
136
|
-
char: token.type === "nonInput" ? token.char : token.potentialValue
|
|
137
|
-
}));
|
|
138
|
-
const newRemainingTokens = normalizedTokens.slice(matchedUpTo);
|
|
139
|
-
return {
|
|
140
|
-
matchedTokens: newMatchedTokens,
|
|
141
|
-
remainingTokens: newRemainingTokens
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
const nonInputs = (str, options) => Array.from(str).map((char) => ({
|
|
145
|
-
type: "nonInput",
|
|
146
|
-
char,
|
|
147
|
-
includeInValue: options?.includeInValue ?? false,
|
|
148
|
-
displayEagerly: options?.displayEagerly ?? true
|
|
149
|
-
}));
|
|
150
|
-
const spacer = nonInputs(" ")[0];
|
|
151
|
-
const alphaInputs = (length, optional = false) => makeArrayOfRepeatedObjects(length, { type: "input", allow: /[A-Za-z]/, optional });
|
|
152
|
-
const numericInputs = (length, optional = false) => makeArrayOfRepeatedObjects(length, { type: "input", allow: /\d/, optional });
|
|
153
|
-
const alphanumericInputs = (length, optional = false) => makeArrayOfRepeatedObjects(length, { type: "input", allow: /[\dA-Za-z]/, optional });
|
|
154
|
-
const customInputs = (length, regex, optional = false) => makeArrayOfRepeatedObjects(length, { type: "input", allow: regex, optional });
|
|
155
|
-
const makeMask = (...tokens) => ({
|
|
156
|
-
tokens,
|
|
157
|
-
possibleShifts: findPossibleShifts(tokens)
|
|
158
|
-
});
|
|
159
|
-
const isExistingFile = (file) => "existing" in file && file.existing;
|
|
160
|
-
const isNewlyUploadedFile = (file) => !isExistingFile(file);
|
|
161
|
-
function getLocalizedIdDocumentTypeOptions(country) {
|
|
162
|
-
switch (country) {
|
|
163
|
-
case CountryCodes.Japan:
|
|
164
|
-
return [
|
|
165
|
-
{ id: "driversLicense", name: "driversLicense", hasBackPage: true },
|
|
166
|
-
{ id: "passport", name: "passport", hasBackPage: false },
|
|
167
|
-
{ id: "identityCard", name: "identityCard__JP", hasBackPage: true }
|
|
168
|
-
];
|
|
169
|
-
default:
|
|
170
|
-
return [
|
|
171
|
-
{ id: "driversLicense", name: "driversLicense", hasBackPage: true },
|
|
172
|
-
{ id: "passport", name: "passport", hasBackPage: false },
|
|
173
|
-
{ id: "identityCard", name: "identityCard", hasBackPage: true }
|
|
174
|
-
];
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
const isValueObscured = (value) => typeof value === "string" && !!value.match(/[*]{1,}/)?.length;
|
|
178
|
-
const uppercase = (str) => str?.toUpperCase() ?? str;
|
|
179
|
-
const validateNotEmptyOnBlur = {
|
|
180
|
-
modes: ["blur"],
|
|
181
|
-
validate: (val) => !isEmpty(val),
|
|
182
|
-
errorMessage: "fieldIsRequired"
|
|
183
|
-
};
|
|
184
|
-
const validateLegalCompanyName = [
|
|
185
|
-
{
|
|
186
|
-
modes: ["blur"],
|
|
187
|
-
validate: hasText,
|
|
188
|
-
errorMessage: "fieldIsRequired"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
modes: ["blur"],
|
|
192
|
-
validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
|
|
193
|
-
errorMessage: "nameMustContainLetters"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
modes: ["blur"],
|
|
197
|
-
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
198
|
-
errorMessage: "checkForTypos"
|
|
199
|
-
}
|
|
200
|
-
];
|
|
201
|
-
const validateJaHaniLegalCompanyName = [
|
|
202
|
-
{
|
|
203
|
-
modes: ["blur"],
|
|
204
|
-
validate: hasText,
|
|
205
|
-
errorMessage: "fieldIsRequired"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
modes: ["blur"],
|
|
209
|
-
validate: (input) => standardKanjiValidator(input),
|
|
210
|
-
errorMessage: "nameMustContainLetters"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
modes: ["blur"],
|
|
214
|
-
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
215
|
-
errorMessage: "checkForTypos"
|
|
216
|
-
}
|
|
217
|
-
];
|
|
218
|
-
const validateJaKanaLegalCompanyName = [
|
|
219
|
-
{
|
|
220
|
-
modes: ["blur"],
|
|
221
|
-
validate: hasText,
|
|
222
|
-
errorMessage: "fieldIsRequired"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
modes: ["blur"],
|
|
226
|
-
validate: (input) => standardKatakanaValidator(input),
|
|
227
|
-
errorMessage: "nameMustContainLetters"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
modes: ["blur"],
|
|
231
|
-
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
232
|
-
errorMessage: "checkForTypos"
|
|
233
|
-
}
|
|
234
|
-
];
|
|
235
|
-
const validateLatinSpaceMarkPunctuationOnlyOnBlur = {
|
|
236
|
-
modes: ["blur"],
|
|
237
|
-
validate: (input) => matchesRegex(LATIN_SPACE_MARK_PUNCTUATION_REGEX, input),
|
|
238
|
-
errorMessage: "kanjiAndKanaCharactersAreNotAllowed"
|
|
239
|
-
};
|
|
240
|
-
const validatePatternOnBlur = (pattern) => ({
|
|
241
|
-
modes: ["blur"],
|
|
242
|
-
validate: (val) => !!val && pattern.test(val)
|
|
243
|
-
});
|
|
244
|
-
function ContextGuidance({
|
|
245
|
-
title,
|
|
246
|
-
content,
|
|
247
|
-
titleId,
|
|
248
|
-
contentId,
|
|
249
|
-
trackingParams
|
|
250
|
-
}) {
|
|
251
|
-
const userEvents = useAnalyticsContext();
|
|
252
|
-
const onGuidanceToggle = (status) => {
|
|
253
|
-
userEvents.addFieldEvent("Clicked accordion", {
|
|
254
|
-
actionType: status,
|
|
255
|
-
field: "context guidance",
|
|
256
|
-
label: titleId,
|
|
257
|
-
content: contentId,
|
|
258
|
-
...trackingParams
|
|
259
|
-
});
|
|
260
|
-
};
|
|
261
|
-
return /* @__PURE__ */ jsx(Alert, { title, type: "collapsible", variant: "info", onToggle: onGuidanceToggle, children: content });
|
|
262
|
-
}
|
|
263
|
-
const convertFullToHalf = (str) => str.replace(/[!-~]/g, (r) => String.fromCharCode(r.charCodeAt(0) - 65248));
|
|
264
|
-
const logger = createLogger();
|
|
265
|
-
function TextArea(props) {
|
|
266
|
-
const {
|
|
267
|
-
autoCorrect,
|
|
268
|
-
isInvalid,
|
|
269
|
-
isValid,
|
|
270
|
-
readonly = null,
|
|
271
|
-
spellCheck,
|
|
272
|
-
disabled,
|
|
273
|
-
maxLength,
|
|
274
|
-
className,
|
|
275
|
-
trimOnBlur,
|
|
276
|
-
enableTracking = false,
|
|
277
|
-
name,
|
|
278
|
-
"aria-describedby": ariaDescribedBy,
|
|
279
|
-
"aria-invalid": ariaInvalid,
|
|
280
|
-
"aria-labelledby": ariaLabelledBy
|
|
281
|
-
} = props;
|
|
282
|
-
const { t } = useTranslation("ui");
|
|
283
|
-
const userEvents = useAnalyticsContext();
|
|
284
|
-
const [value, setValue] = useState("");
|
|
285
|
-
if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
|
|
286
|
-
logger.error("Error: Form fields that rely on InputBase may not have an onChange property");
|
|
287
|
-
}
|
|
288
|
-
const handleInput = (e) => {
|
|
289
|
-
if (enableTracking) {
|
|
290
|
-
debouncedInputEvent(userEvents, {
|
|
291
|
-
actionType: "input",
|
|
292
|
-
field: name
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
e.currentTarget.value = convertFullToHalf(e.currentTarget.value);
|
|
296
|
-
setValue(e.currentTarget.value);
|
|
297
|
-
props?.onInput?.(e);
|
|
298
|
-
};
|
|
299
|
-
const handleBlur = (e) => {
|
|
300
|
-
if (enableTracking) {
|
|
301
|
-
userEvents.addFieldEvent("Interacted with form field", {
|
|
302
|
-
actionType: "blur",
|
|
303
|
-
field: name
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
props?.onBlurHandler?.(e);
|
|
307
|
-
if (trimOnBlur) {
|
|
308
|
-
e.currentTarget.value = e.currentTarget.value.trim();
|
|
309
|
-
}
|
|
310
|
-
props?.onBlur?.(e);
|
|
311
|
-
};
|
|
312
|
-
const handleFocus = (e) => {
|
|
313
|
-
if (enableTracking) {
|
|
314
|
-
userEvents.addFieldEvent("Interacted with form field", {
|
|
315
|
-
actionType: "focus",
|
|
316
|
-
field: name
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
props?.onFocusHandler?.(e);
|
|
320
|
-
};
|
|
321
|
-
const inputClassNames = cx("adyen-kyc-input", "adyen-kyc-input--textarea", className, {
|
|
322
|
-
"adyen-kyc-input--invalid": isInvalid,
|
|
323
|
-
"adyen-kyc-field--valid": isValid,
|
|
324
|
-
"adyen-kyc-input--disabled": disabled
|
|
325
|
-
});
|
|
326
|
-
const charactersLeft = maxLength - value.length;
|
|
327
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
328
|
-
/* @__PURE__ */ jsx(
|
|
329
|
-
"textarea",
|
|
330
|
-
{
|
|
331
|
-
...props,
|
|
332
|
-
className: inputClassNames,
|
|
333
|
-
readOnly: readonly,
|
|
334
|
-
spellCheck,
|
|
335
|
-
autoCorrect,
|
|
336
|
-
"aria-describedby": ariaDescribedBy,
|
|
337
|
-
"aria-invalid": ariaInvalid,
|
|
338
|
-
"aria-labelledby": ariaLabelledBy,
|
|
339
|
-
...disabled && { "aria-disabled": true },
|
|
340
|
-
onInput: handleInput,
|
|
341
|
-
onBlur: handleBlur,
|
|
342
|
-
onFocus: handleFocus
|
|
343
|
-
}
|
|
344
|
-
),
|
|
345
|
-
!isInvalid && maxLength && charactersLeft >= 0 ? /* @__PURE__ */ jsx("span", { className: "adyen-kyc-input__counter", children: t(($) => $["xCharactersLeft"], { charactersLeft }) }) : null
|
|
346
|
-
] });
|
|
347
|
-
}
|
|
348
|
-
function StateContextSetter({ stateRef }) {
|
|
349
|
-
if (stateRef.current.setState) {
|
|
350
|
-
return null;
|
|
351
|
-
}
|
|
352
|
-
return /* @__PURE__ */ jsx(StateContext.Consumer, { children: (stateContextValue) => {
|
|
353
|
-
const { dispatch, setActiveForms } = stateContextValue;
|
|
354
|
-
stateRef.current.setState = dispatch;
|
|
355
|
-
stateRef.current.setActiveForms = setActiveForms;
|
|
356
|
-
return null;
|
|
357
|
-
} });
|
|
358
|
-
}
|
|
359
|
-
const Image = ({
|
|
360
|
-
lazyLoadedImage,
|
|
361
|
-
className
|
|
362
|
-
}) => {
|
|
363
|
-
const LazyLoadedImageComponent = lazyLoadedImage;
|
|
364
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(LazyLoadedImageComponent, { className, "aria-hidden": true }) });
|
|
365
|
-
};
|
|
366
|
-
const getDocumentGuidancePrefix = (documentType) => {
|
|
367
|
-
switch (documentType) {
|
|
368
|
-
case "passport":
|
|
369
|
-
return "passport";
|
|
370
|
-
case "driversLicense":
|
|
371
|
-
case "identityCard":
|
|
372
|
-
return "id";
|
|
373
|
-
case "bankStatement":
|
|
374
|
-
case "vatDocument":
|
|
375
|
-
case "registrationDocument":
|
|
376
|
-
case "proofOfAddress":
|
|
377
|
-
case "proofOfResidency":
|
|
378
|
-
default:
|
|
379
|
-
return "document";
|
|
380
|
-
}
|
|
381
|
-
};
|
|
382
|
-
const documentBlurredImage = lazy(() => import("./document-blurred-2Zpodj3_.js"));
|
|
383
|
-
const documentCutOffImage = lazy(() => import("./document-cut-off-ClS7RiOp.js"));
|
|
384
|
-
const documentExpiredImage = lazy(() => import("./document-expired-CjksBq-N.js"));
|
|
385
|
-
const documentFrontImage = lazy(() => import("./document-front-DiAairT3.js"));
|
|
386
|
-
const idBlurredImage = lazy(() => import("./id-blurred-9dzBOWCE.js"));
|
|
387
|
-
const idCutOffImage = lazy(() => import("./id-cut-off-CohJCI2h.js"));
|
|
388
|
-
const idFrontImage = lazy(() => import("./id-front-CSZfvdRg.js"));
|
|
389
|
-
const idGlareImage = lazy(() => import("./id-glare-Q2JWo5ts.js"));
|
|
390
|
-
const passportBlurredImage = lazy(() => import("./passport-blurred-B4UDQfmc.js"));
|
|
391
|
-
const passportCutOffImage = lazy(() => import("./passport-cut-off-C0N2mgLk.js"));
|
|
392
|
-
const passportFrontImage = lazy(() => import("./passport-front-BwA7wR91.js"));
|
|
393
|
-
const passportGlareImage = lazy(() => import("./passport-glare-Mg2ixsYA.js"));
|
|
394
|
-
const documentMap = {
|
|
395
|
-
"document-blurred": documentBlurredImage,
|
|
396
|
-
"document-cutoff": documentCutOffImage,
|
|
397
|
-
"document-expired": documentExpiredImage,
|
|
398
|
-
"document-front": documentFrontImage,
|
|
399
|
-
"id-blurred": idBlurredImage,
|
|
400
|
-
"id-cutoff": idCutOffImage,
|
|
401
|
-
"id-front": idFrontImage,
|
|
402
|
-
"id-glare": idGlareImage,
|
|
403
|
-
"passport-blurred": passportBlurredImage,
|
|
404
|
-
"passport-cutoff": passportCutOffImage,
|
|
405
|
-
"passport-front": passportFrontImage,
|
|
406
|
-
"passport-glare": passportGlareImage
|
|
407
|
-
};
|
|
408
|
-
function DocumentGuidance({ type, className }) {
|
|
409
|
-
const { t } = useTranslation("ui");
|
|
410
|
-
const documentGuidanceItems = useMemo(() => {
|
|
411
|
-
const guidancePrefix = getDocumentGuidancePrefix(type);
|
|
412
|
-
const guidanceItems = [
|
|
413
|
-
{ svgName: `${guidancePrefix}-front`, translationKey: "good", valid: true },
|
|
414
|
-
{ svgName: `${guidancePrefix}-cutoff`, translationKey: "notCutOff" },
|
|
415
|
-
{ svgName: `${guidancePrefix}-blurred`, translationKey: "notBlurry" },
|
|
416
|
-
guidancePrefix === "document" ? { svgName: `document-expired`, translationKey: "notExpired" } : { svgName: `${guidancePrefix}-glare`, translationKey: "noGlare" }
|
|
417
|
-
];
|
|
418
|
-
return type === "constitutionalDocument" ? guidanceItems.filter((item) => item.svgName !== "document-expired") : guidanceItems;
|
|
419
|
-
}, [type]);
|
|
420
|
-
return /* @__PURE__ */ jsx("div", { className: cx("adyen-kyc-document-guidance", className), children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-document-guidance__container", children: documentGuidanceItems.map((item) => /* @__PURE__ */ jsxs("figure", { className: "adyen-kyc-document-guidance__item", children: [
|
|
421
|
-
/* @__PURE__ */ jsx(Image, { lazyLoadedImage: documentMap[item.svgName] }),
|
|
422
|
-
/* @__PURE__ */ jsxs("figcaption", { className: "adyen-kyc-document-guidance__description", children: [
|
|
423
|
-
item.valid ? /* @__PURE__ */ jsx(Icon, { name: "check", className: "adyen-kyc-document-guidance__icon" }) : /* @__PURE__ */ jsx(
|
|
424
|
-
Icon,
|
|
425
|
-
{
|
|
426
|
-
name: "cross",
|
|
427
|
-
className: "adyen-kyc-document-guidance__icon adyen-kyc-document-guidance__icon--invalid"
|
|
428
|
-
}
|
|
429
|
-
),
|
|
430
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-document-guidance__description-text", children: t(($) => $[item.translationKey]) })
|
|
431
|
-
] })
|
|
432
|
-
] }, item.translationKey)) }) });
|
|
433
|
-
}
|
|
434
|
-
function bytesToSize(bytes) {
|
|
435
|
-
const sizes = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
436
|
-
if (bytes === 0) return "n/a";
|
|
437
|
-
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)).toString());
|
|
438
|
-
if (i === 0) return `${bytes} ${sizes[i]}`;
|
|
439
|
-
return `${(bytes / 1024 ** i).toFixed()} ${sizes[i]}`;
|
|
440
|
-
}
|
|
441
|
-
function DropzoneFile(props) {
|
|
442
|
-
const { file, errorMessage, onDelete, loading } = props;
|
|
443
|
-
const { t } = useTranslation("common");
|
|
444
|
-
const userEvents = useAnalyticsContext();
|
|
445
|
-
let documentIcon;
|
|
446
|
-
const formatSize = (bytes) => {
|
|
447
|
-
const sizes = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
448
|
-
if (!bytes || bytes === 0) return "n/a";
|
|
449
|
-
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)).toString());
|
|
450
|
-
if (i === 0) return `${bytes} ${sizes[i]}`;
|
|
451
|
-
return `${(bytes / 1024 ** i).toFixed(1)} ${sizes[i]}`;
|
|
452
|
-
};
|
|
453
|
-
switch (file.type?.split("/")[0]) {
|
|
454
|
-
case "image":
|
|
455
|
-
documentIcon = "image";
|
|
456
|
-
break;
|
|
457
|
-
default:
|
|
458
|
-
documentIcon = "document";
|
|
459
|
-
}
|
|
460
|
-
useEffect(() => {
|
|
461
|
-
if (!errorMessage) return;
|
|
462
|
-
userEvents.addFieldEvent("Encountered error", {
|
|
463
|
-
actionType: "change",
|
|
464
|
-
field: "dropzone file",
|
|
465
|
-
returnType: "validation",
|
|
466
|
-
returnValue: errorMessage
|
|
467
|
-
});
|
|
468
|
-
}, [errorMessage, userEvents]);
|
|
469
|
-
return /* @__PURE__ */ jsxs(
|
|
470
|
-
"div",
|
|
471
|
-
{
|
|
472
|
-
className: cx("adyen-kyc-dropzone-file", { "adyen-kyc-dropzone-file--error": errorMessage }),
|
|
473
|
-
children: [
|
|
474
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropzone-file__details", children: [
|
|
475
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropzone-file__labels", children: [
|
|
476
|
-
errorMessage ? /* @__PURE__ */ jsx(
|
|
477
|
-
Icon,
|
|
478
|
-
{
|
|
479
|
-
testId: "document-invalid",
|
|
480
|
-
name: "warning",
|
|
481
|
-
className: "adyen-kyc-dropzone-file__icon"
|
|
482
|
-
}
|
|
483
|
-
) : /* @__PURE__ */ jsx(
|
|
484
|
-
Icon,
|
|
485
|
-
{
|
|
486
|
-
testId: "document-valid",
|
|
487
|
-
name: documentIcon,
|
|
488
|
-
className: "adyen-kyc-dropzone-file__icon"
|
|
489
|
-
}
|
|
490
|
-
),
|
|
491
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body-stronger", className: "adyen-kyc-dropzone-file__name", children: file.name }),
|
|
492
|
-
/* @__PURE__ */ jsx(Typography, { className: "adyen-kyc-dropzone-file__size", children: isNewlyUploadedFile(file) && formatSize(file.size) })
|
|
493
|
-
] }),
|
|
494
|
-
errorMessage && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropzone-file__error", children: t(($) => $[errorMessage]) })
|
|
495
|
-
] }),
|
|
496
|
-
loading ? /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropzone-file__loading", children: /* @__PURE__ */ jsx(Loader, { size: "medium" }) }) : errorMessage ? /* @__PURE__ */ jsx(
|
|
497
|
-
IconButton,
|
|
498
|
-
{
|
|
499
|
-
ariaLabel: t(($) => $["close"]),
|
|
500
|
-
icon: "cross",
|
|
501
|
-
variant: "tertiary",
|
|
502
|
-
onClick: onDelete
|
|
503
|
-
}
|
|
504
|
-
) : /* @__PURE__ */ jsx(
|
|
505
|
-
IconButton,
|
|
506
|
-
{
|
|
507
|
-
ariaLabel: t(($) => $["deleteDocument"]),
|
|
508
|
-
icon: "bin",
|
|
509
|
-
variant: "tertiary",
|
|
510
|
-
onClick: onDelete
|
|
511
|
-
}
|
|
512
|
-
)
|
|
513
|
-
]
|
|
514
|
-
}
|
|
515
|
-
);
|
|
516
|
-
}
|
|
517
|
-
const hasDuplicates = (arr) => arr.some((item, currIndex) => arr.indexOf(item) !== currIndex);
|
|
518
|
-
const defaultFileValidationOptions = {
|
|
519
|
-
allowedFileTypes: ["JPG", "JPEG", "PNG", "PDF"],
|
|
520
|
-
maxNumberOfFiles: 1,
|
|
521
|
-
maxSize: 4194304,
|
|
522
|
-
// 4MB by default
|
|
523
|
-
isOptional: false
|
|
524
|
-
};
|
|
525
|
-
const filterOnlyNewlyUploadedFiles = (files) => files.filter(isNewlyUploadedFile);
|
|
526
|
-
const fileValidationRules = ({
|
|
527
|
-
allowedFileTypes,
|
|
528
|
-
maxNumberOfFiles,
|
|
529
|
-
maxSize,
|
|
530
|
-
isOptional
|
|
531
|
-
}) => [
|
|
532
|
-
{
|
|
533
|
-
validate: (files) => {
|
|
534
|
-
if (isOptional && (!files || files.length === 0)) return true;
|
|
535
|
-
return Boolean(files && files.length > 0);
|
|
536
|
-
},
|
|
537
|
-
errorMessage: "fieldIsRequired",
|
|
538
|
-
modes: ["blur", "input"]
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
validate: (files) => {
|
|
542
|
-
if (!files) return true;
|
|
543
|
-
return files.length <= maxNumberOfFiles;
|
|
544
|
-
},
|
|
545
|
-
errorMessage: "tooManyFiles",
|
|
546
|
-
modes: ["blur", "input"]
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
validate: (files) => {
|
|
550
|
-
if (!files) return true;
|
|
551
|
-
return !hasDuplicates(files.map((file) => file.name));
|
|
552
|
-
},
|
|
553
|
-
errorMessage: "duplicatedFiles",
|
|
554
|
-
modes: ["blur", "input"]
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
validate: (files) => {
|
|
558
|
-
if (!files) return true;
|
|
559
|
-
return filterOnlyNewlyUploadedFiles(files).every(
|
|
560
|
-
(file) => allowedFileTypes.some(
|
|
561
|
-
(filetype) => file.name.toLowerCase().endsWith(filetype.toLowerCase())
|
|
562
|
-
)
|
|
563
|
-
);
|
|
564
|
-
},
|
|
565
|
-
errorMessage: "unsupportedFiletype",
|
|
566
|
-
modes: ["blur", "input"]
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
validate: (files) => {
|
|
570
|
-
if (!files) return true;
|
|
571
|
-
return filterOnlyNewlyUploadedFiles(files).every((file) => !file.size || file.size < maxSize);
|
|
572
|
-
},
|
|
573
|
-
errorMessage: "maximumFileSizeExceeded",
|
|
574
|
-
modes: ["blur", "input"]
|
|
575
|
-
}
|
|
576
|
-
];
|
|
577
|
-
const RadioCard = ({
|
|
578
|
-
optionId,
|
|
579
|
-
optionName,
|
|
580
|
-
optionDescription,
|
|
581
|
-
optionSubtitle,
|
|
582
|
-
name,
|
|
583
|
-
isInvalid,
|
|
584
|
-
isSelected,
|
|
585
|
-
onSelect,
|
|
586
|
-
classNames,
|
|
587
|
-
disabled,
|
|
588
|
-
loading,
|
|
589
|
-
icon,
|
|
590
|
-
body,
|
|
591
|
-
footer,
|
|
592
|
-
floatingRadio
|
|
593
|
-
}) => {
|
|
594
|
-
const id = useId("radio");
|
|
595
|
-
const elementIds = {
|
|
596
|
-
label: `${id}-label`,
|
|
597
|
-
description: `${id}-description`,
|
|
598
|
-
subtitle: `${id}-subtitle`
|
|
599
|
-
};
|
|
600
|
-
const ariaDescribedBy = `${optionSubtitle ? elementIds.subtitle : ""} ${optionDescription || body ? elementIds.description : ""}`.trim();
|
|
601
|
-
return /* @__PURE__ */ jsxs(
|
|
602
|
-
"label",
|
|
603
|
-
{
|
|
604
|
-
"data-testId": optionId,
|
|
605
|
-
className: cx([
|
|
606
|
-
"adyen-kyc-radio-card",
|
|
607
|
-
classNames?.label,
|
|
608
|
-
{ "adyen-kyc-radio-card--disabled": disabled }
|
|
609
|
-
]),
|
|
610
|
-
children: [
|
|
611
|
-
icon && /* @__PURE__ */ jsx("div", { className: cx("adyen-kyc-radio-card__icon", classNames?.icon), "aria-hidden": "true", children: icon }),
|
|
612
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-radio-card__content", children: [
|
|
613
|
-
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-radio-card__header adyen-kyc-u-display-flex adyen-kyc-u-align-items-center", children: /* @__PURE__ */ jsxs(
|
|
614
|
-
"div",
|
|
615
|
-
{
|
|
616
|
-
className: cx([
|
|
617
|
-
"adyen-kyc-radio-group-card__label",
|
|
618
|
-
classNames?.header,
|
|
619
|
-
{ "adyen-kyc-radio-group-card__label--invalid": isInvalid }
|
|
620
|
-
]),
|
|
621
|
-
children: [
|
|
622
|
-
optionSubtitle && /* @__PURE__ */ jsxs("div", { id: elementIds.subtitle, className: "adyen-kyc-radio-group-card__subtitle", children: [
|
|
623
|
-
optionSubtitle,
|
|
624
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-u-screen-reader-only", children: "." })
|
|
625
|
-
] }),
|
|
626
|
-
/* @__PURE__ */ jsx("span", { id: elementIds.label, children: optionName })
|
|
627
|
-
]
|
|
628
|
-
}
|
|
629
|
-
) }),
|
|
630
|
-
/* @__PURE__ */ jsx(
|
|
631
|
-
"div",
|
|
632
|
-
{
|
|
633
|
-
id: elementIds.description,
|
|
634
|
-
className: cx("adyen-kyc-radio-card__body", classNames?.body),
|
|
635
|
-
children: body ?? optionDescription
|
|
636
|
-
}
|
|
637
|
-
),
|
|
638
|
-
footer && /* @__PURE__ */ jsx("div", { className: cx("adyen-kyc-radio-card__footer", classNames?.footer), children: footer })
|
|
639
|
-
] }),
|
|
640
|
-
loading ? /* @__PURE__ */ jsx("span", { className: "adyen-kyc-radio-card__loading-icon", children: /* @__PURE__ */ jsx(Loader, { size: "small", dot: true }) }) : /* @__PURE__ */ jsx(
|
|
641
|
-
Radio,
|
|
642
|
-
{
|
|
643
|
-
id,
|
|
644
|
-
"aria-describedby": ariaDescribedBy,
|
|
645
|
-
"aria-labelledby": elementIds.label,
|
|
646
|
-
checked: isSelected,
|
|
647
|
-
groupName: name,
|
|
648
|
-
onClick: onSelect,
|
|
649
|
-
value: optionId,
|
|
650
|
-
disabled,
|
|
651
|
-
className: cx({ "adyen-kyc-radio-group-card__radio--floating": floatingRadio })
|
|
652
|
-
}
|
|
653
|
-
)
|
|
654
|
-
]
|
|
655
|
-
},
|
|
656
|
-
optionId
|
|
657
|
-
);
|
|
658
|
-
};
|
|
659
|
-
const RadioGroupCard = ({
|
|
660
|
-
options,
|
|
661
|
-
name,
|
|
662
|
-
onSelect,
|
|
663
|
-
selected,
|
|
664
|
-
isInvalid,
|
|
665
|
-
className,
|
|
666
|
-
optionId,
|
|
667
|
-
optionName,
|
|
668
|
-
optionDescription,
|
|
669
|
-
optionSubtitle,
|
|
670
|
-
optionClassNames,
|
|
671
|
-
renderOptionIcon,
|
|
672
|
-
renderOptionBody,
|
|
673
|
-
renderOptionFooter,
|
|
674
|
-
isOptionDisabled,
|
|
675
|
-
floatingRadio,
|
|
676
|
-
enableTracking = false
|
|
677
|
-
}) => {
|
|
678
|
-
const userEvents = useAnalyticsContext();
|
|
679
|
-
const handleSelect = (option) => {
|
|
680
|
-
if (enableTracking) {
|
|
681
|
-
userEvents.addFieldEvent("Interacted with form field", {
|
|
682
|
-
actionType: "input",
|
|
683
|
-
field: name,
|
|
684
|
-
returnValue: typeof option === "string" ? option : void 0
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
onSelect(option);
|
|
688
|
-
};
|
|
689
|
-
return /* @__PURE__ */ jsx("div", { className: className ?? "adyen-kyc-radio-group-card", children: options.map((option) => /* @__PURE__ */ jsx(
|
|
690
|
-
RadioCard,
|
|
691
|
-
{
|
|
692
|
-
optionId: optionId(option),
|
|
693
|
-
optionName: optionName(option),
|
|
694
|
-
optionDescription: optionDescription?.(option),
|
|
695
|
-
optionSubtitle: optionSubtitle?.(option),
|
|
696
|
-
isInvalid,
|
|
697
|
-
isSelected: selected === option,
|
|
698
|
-
onSelect: () => handleSelect(option),
|
|
699
|
-
name,
|
|
700
|
-
classNames: optionClassNames?.(option),
|
|
701
|
-
icon: renderOptionIcon?.(option),
|
|
702
|
-
body: renderOptionBody?.(option),
|
|
703
|
-
footer: renderOptionFooter?.(option),
|
|
704
|
-
disabled: isOptionDisabled?.(option),
|
|
705
|
-
floatingRadio
|
|
706
|
-
},
|
|
707
|
-
optionId(option)
|
|
708
|
-
)) });
|
|
709
|
-
};
|
|
710
|
-
const cachedStripPatterns = /* @__PURE__ */ new Map();
|
|
711
|
-
const makeStripPattern = (mask) => {
|
|
712
|
-
const inputPatterns = mask.tokens.filter((token) => token.type === "input" && !!token.allow).map((token) => token.allow);
|
|
713
|
-
const nonInputChars = mask.tokens.filter((token) => token.type === "nonInput" && !token.includeInValue).map((token) => token.char);
|
|
714
|
-
const strippedChars = [
|
|
715
|
-
...new Set(
|
|
716
|
-
nonInputChars.filter((char) => !inputPatterns.some((pattern) => pattern.test(char)))
|
|
717
|
-
)
|
|
718
|
-
];
|
|
719
|
-
const stripPattern = new RegExp(`[${strippedChars.join("")}]`, "g");
|
|
720
|
-
cachedStripPatterns.set(mask, stripPattern);
|
|
721
|
-
return stripPattern;
|
|
722
|
-
};
|
|
723
|
-
const displayValueToPureValue = (displayValue, mask) => {
|
|
724
|
-
const stripPattern = cachedStripPatterns.get(mask) ?? makeStripPattern(mask);
|
|
725
|
-
return displayValue.replaceAll(stripPattern, "");
|
|
726
|
-
};
|
|
727
|
-
const cachedAllowedPatterns = /* @__PURE__ */ new Map();
|
|
728
|
-
const combineRegexArray = (regexArray) => {
|
|
729
|
-
const combinedPattern = regexArray.map((pattern) => {
|
|
730
|
-
const match = String(pattern).match(/\/?(.*)\//);
|
|
731
|
-
return match ? match[1] : pattern;
|
|
732
|
-
}).join("|");
|
|
733
|
-
return new RegExp(`(?:${combinedPattern})`, "g");
|
|
734
|
-
};
|
|
735
|
-
const createAllowedPattern = (mask) => {
|
|
736
|
-
const inputPatterns = mask.tokens.filter((token) => token.type === "input" && !!token.allow).map((token) => token.allow);
|
|
737
|
-
const uniqueRegexSet = new Set(inputPatterns.map((r) => r.toString()));
|
|
738
|
-
const uniqueRegexArray = [...uniqueRegexSet].map((str) => {
|
|
739
|
-
const [_, pattern] = str.match(/\/(.*)\/([gimsuy]*)/) || [];
|
|
740
|
-
return new RegExp(pattern);
|
|
741
|
-
});
|
|
742
|
-
const allowedRegex = combineRegexArray(uniqueRegexArray);
|
|
743
|
-
cachedAllowedPatterns.set(mask, allowedRegex);
|
|
744
|
-
return allowedRegex;
|
|
745
|
-
};
|
|
746
|
-
const replaceNonMatchingChars = (value, allowedInputPatterns) => {
|
|
747
|
-
const matches = value.match(allowedInputPatterns);
|
|
748
|
-
return matches ? matches.join("") : "";
|
|
749
|
-
};
|
|
750
|
-
const stripNonAllowedValues = (pureValue, mask) => {
|
|
751
|
-
return replaceNonMatchingChars(
|
|
752
|
-
pureValue,
|
|
753
|
-
cachedAllowedPatterns.get(mask) ?? createAllowedPattern(mask)
|
|
754
|
-
);
|
|
755
|
-
};
|
|
756
|
-
const getAvailableInputTokens = (tokens) => {
|
|
757
|
-
const availableTokens = [];
|
|
758
|
-
for (const token of tokens) {
|
|
759
|
-
if (token.type === "nonInput") {
|
|
760
|
-
if (token.includeInValue) {
|
|
761
|
-
availableTokens.push({ ...token, offset: tokens.indexOf(token) });
|
|
762
|
-
}
|
|
763
|
-
continue;
|
|
764
|
-
}
|
|
765
|
-
availableTokens.push({ ...token, offset: tokens.indexOf(token) });
|
|
766
|
-
if (token.type !== "input" || !token.optional) break;
|
|
767
|
-
}
|
|
768
|
-
return availableTokens;
|
|
769
|
-
};
|
|
770
|
-
const findMatchingToken = (tokensWithOffset, char) => tokensWithOffset.find(
|
|
771
|
-
(token) => token.type === "nonInput" || !token.allow || token.allow.test(char)
|
|
772
|
-
) ?? null;
|
|
773
|
-
const getEagerSuffix = (tokens) => {
|
|
774
|
-
let suffix = "";
|
|
775
|
-
for (const token of tokens) {
|
|
776
|
-
if (token.type === "input") {
|
|
777
|
-
if (token.optional) continue;
|
|
778
|
-
else break;
|
|
779
|
-
}
|
|
780
|
-
if (!token.displayEagerly) break;
|
|
781
|
-
suffix += token.char;
|
|
782
|
-
}
|
|
783
|
-
return suffix;
|
|
784
|
-
};
|
|
785
|
-
const getPotentialForMoreOptionalInput = (tokens) => tokens.some((token) => token.type === "input" && token.optional);
|
|
786
|
-
const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false, stripNonAllowedInputs = false) => {
|
|
787
|
-
let tokensToProcess = [...mask.tokens];
|
|
788
|
-
let charsToProcess = pureValue;
|
|
789
|
-
let charIndex = 0;
|
|
790
|
-
let matchedTokens = [];
|
|
791
|
-
if (acceptObscuredValue && isValueObscured(pureValue)) {
|
|
792
|
-
return {
|
|
793
|
-
outcome: "obscureCorrect",
|
|
794
|
-
displayValue: pureValue
|
|
795
|
-
};
|
|
796
|
-
}
|
|
797
|
-
const shiftChars = (increment) => {
|
|
798
|
-
charIndex += increment;
|
|
799
|
-
charsToProcess = charsToProcess.slice(increment);
|
|
800
|
-
};
|
|
801
|
-
const shiftTokens = (increment) => {
|
|
802
|
-
tokensToProcess = tokensToProcess.slice(increment);
|
|
803
|
-
};
|
|
804
|
-
const displayValue = () => matchedTokens.map((token) => token.char).join("");
|
|
805
|
-
const getNonInputCharacters = () => matchedTokens.filter((token) => token.type === "nonInput" && token.includeInValue === false).map((token) => token.char).join("");
|
|
806
|
-
while (true) {
|
|
807
|
-
let partialDisplayValue = displayValue();
|
|
808
|
-
if (stripNonAllowedInputs) {
|
|
809
|
-
partialDisplayValue = partialDisplayValue.replaceAll(getNonInputCharacters(), "");
|
|
810
|
-
if (!partialDisplayValue.length) {
|
|
811
|
-
partialDisplayValue = stripNonAllowedValues(charsToProcess, mask);
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
const char = charsToProcess[0];
|
|
815
|
-
const token = tokensToProcess[0];
|
|
816
|
-
if (!char && !tokensToProcess.some((t) => t.type === "input" && !t.optional))
|
|
817
|
-
return {
|
|
818
|
-
outcome: "correct",
|
|
819
|
-
displayValue: displayValue() + getEagerSuffix(tokensToProcess),
|
|
820
|
-
potentialForMoreOptionalInput: getPotentialForMoreOptionalInput(tokensToProcess)
|
|
821
|
-
};
|
|
822
|
-
if (!char) {
|
|
823
|
-
const output = shiftRight(mask.possibleShifts, matchedTokens, tokensToProcess);
|
|
824
|
-
matchedTokens = output.matchedTokens;
|
|
825
|
-
tokensToProcess = output.remainingTokens;
|
|
826
|
-
return {
|
|
827
|
-
outcome: "partialCorrect",
|
|
828
|
-
displayValue: displayValue() + getEagerSuffix(tokensToProcess)
|
|
829
|
-
};
|
|
830
|
-
}
|
|
831
|
-
if (!token)
|
|
832
|
-
return {
|
|
833
|
-
outcome: "mismatch",
|
|
834
|
-
badChar: char,
|
|
835
|
-
mismatchAtChar: charIndex,
|
|
836
|
-
mismatchedToken: "inputTooLong",
|
|
837
|
-
partialDisplayValue
|
|
838
|
-
};
|
|
839
|
-
if (token.type === "nonInput") {
|
|
840
|
-
if (token.includeInValue) {
|
|
841
|
-
if (char !== token.char)
|
|
842
|
-
return {
|
|
843
|
-
outcome: "mismatch",
|
|
844
|
-
badChar: char,
|
|
845
|
-
mismatchAtChar: charIndex,
|
|
846
|
-
mismatchedToken: token,
|
|
847
|
-
partialDisplayValue
|
|
848
|
-
};
|
|
849
|
-
shiftChars(1);
|
|
850
|
-
}
|
|
851
|
-
matchedTokens.push(token);
|
|
852
|
-
shiftTokens(1);
|
|
853
|
-
}
|
|
854
|
-
if (token.type === "input") {
|
|
855
|
-
const availableTokens = getAvailableInputTokens(tokensToProcess);
|
|
856
|
-
const matchingToken = findMatchingToken(availableTokens, char);
|
|
857
|
-
if (!matchingToken)
|
|
858
|
-
return {
|
|
859
|
-
outcome: "mismatch",
|
|
860
|
-
badChar: char,
|
|
861
|
-
mismatchAtChar: charIndex,
|
|
862
|
-
mismatchedToken: token,
|
|
863
|
-
partialDisplayValue
|
|
864
|
-
};
|
|
865
|
-
matchedTokens.push({ ...matchingToken, char });
|
|
866
|
-
shiftTokens(matchingToken.offset + 1);
|
|
867
|
-
shiftChars(1);
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
};
|
|
871
|
-
const InputEmail = forwardRef(
|
|
872
|
-
({ onInput, transformInput, ...props }, ref) => {
|
|
873
|
-
const [cursorPosition, setCursorPosition] = useState(null);
|
|
874
|
-
const localRef = useForwardedRef(ref);
|
|
875
|
-
const inputHandler = useCallback(
|
|
876
|
-
(event) => {
|
|
877
|
-
const inputEl = event.target;
|
|
878
|
-
if (transformInput) {
|
|
879
|
-
setCursorPosition(inputEl.selectionStart);
|
|
880
|
-
const transformedInput = transformInput(inputEl.value);
|
|
881
|
-
const eventWithTransformedValue = {
|
|
882
|
-
...event,
|
|
883
|
-
target: { ...event.target, value: transformedInput }
|
|
884
|
-
};
|
|
885
|
-
onInput(eventWithTransformedValue);
|
|
886
|
-
} else {
|
|
887
|
-
onInput(event);
|
|
888
|
-
}
|
|
889
|
-
},
|
|
890
|
-
[transformInput, onInput]
|
|
891
|
-
);
|
|
892
|
-
useLayoutEffect(() => {
|
|
893
|
-
if (cursorPosition && localRef.current?.selectionStart !== cursorPosition) {
|
|
894
|
-
localRef?.current?.setSelectionRange(cursorPosition, cursorPosition, "none");
|
|
895
|
-
}
|
|
896
|
-
}, [cursorPosition, localRef]);
|
|
897
|
-
return /* @__PURE__ */ jsx(
|
|
898
|
-
InputBase,
|
|
899
|
-
{
|
|
900
|
-
...props,
|
|
901
|
-
onInput: inputHandler,
|
|
902
|
-
ref: localRef,
|
|
903
|
-
type: "email",
|
|
904
|
-
autoCapitalize: "off"
|
|
905
|
-
}
|
|
906
|
-
);
|
|
907
|
-
}
|
|
908
|
-
);
|
|
909
|
-
const InputTelephone = forwardRef(
|
|
910
|
-
({ onInput, transformInput, ...props }, ref) => {
|
|
911
|
-
const [cursorPosition, setCursorPosition] = useState(null);
|
|
912
|
-
const localRef = useForwardedRef(ref);
|
|
913
|
-
const inputHandler = useCallback(
|
|
914
|
-
(event) => {
|
|
915
|
-
const inputEl = event.target;
|
|
916
|
-
if (transformInput) {
|
|
917
|
-
setCursorPosition(inputEl.selectionStart);
|
|
918
|
-
const transformedInput = transformInput(inputEl.value);
|
|
919
|
-
const eventWithTransformedValue = {
|
|
920
|
-
...event,
|
|
921
|
-
target: { ...event.target, value: transformedInput }
|
|
922
|
-
};
|
|
923
|
-
onInput(eventWithTransformedValue);
|
|
924
|
-
} else {
|
|
925
|
-
onInput(event);
|
|
926
|
-
}
|
|
927
|
-
},
|
|
928
|
-
[transformInput, onInput]
|
|
929
|
-
);
|
|
930
|
-
useLayoutEffect(() => {
|
|
931
|
-
if (cursorPosition && localRef.current?.selectionStart !== cursorPosition) {
|
|
932
|
-
localRef?.current?.setSelectionRange(cursorPosition, cursorPosition, "none");
|
|
933
|
-
}
|
|
934
|
-
}, [cursorPosition, localRef]);
|
|
935
|
-
return /* @__PURE__ */ jsx(InputBase, { ...props, onInput: inputHandler, ref: localRef, type: "tel" });
|
|
936
|
-
}
|
|
937
|
-
);
|
|
938
|
-
const mismatch = "adyen-kyc-mismatch";
|
|
939
|
-
const styles = {
|
|
940
|
-
mismatch
|
|
941
|
-
};
|
|
942
|
-
const deriveInputState = (isValid, isFocused, isDisabled, isOptional, hasNullishValue, hasBlurred, errorMessage, shouldValidate, potentiallyMoreOptionalCharacters, formatGuidance, t) => {
|
|
943
|
-
if (isDisabled)
|
|
944
|
-
return {
|
|
945
|
-
isError: false
|
|
946
|
-
};
|
|
947
|
-
if (isOptional && hasNullishValue) {
|
|
948
|
-
return {
|
|
949
|
-
isError: false
|
|
950
|
-
};
|
|
951
|
-
}
|
|
952
|
-
if (isValid && (!potentiallyMoreOptionalCharacters || !isFocused))
|
|
953
|
-
return {
|
|
954
|
-
isError: false,
|
|
955
|
-
text: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
956
|
-
/* @__PURE__ */ jsx(Icon, { name: "checkmark-small", className: "adyen-kyc-helper-text__valid-format-check" }),
|
|
957
|
-
t(($) => $["formatIsCorrect"])
|
|
958
|
-
] })
|
|
959
|
-
};
|
|
960
|
-
if (isFocused && formatGuidance)
|
|
961
|
-
return {
|
|
962
|
-
isError: false,
|
|
963
|
-
text: formatGuidance
|
|
964
|
-
};
|
|
965
|
-
if (!isValid && (shouldValidate || hasBlurred))
|
|
966
|
-
return {
|
|
967
|
-
isError: true,
|
|
968
|
-
errorMessage,
|
|
969
|
-
text: formatGuidance
|
|
970
|
-
};
|
|
971
|
-
return {
|
|
972
|
-
isError: false
|
|
973
|
-
};
|
|
974
|
-
};
|
|
975
|
-
const MISMATCH_ANIMATION_NAME = "mismatchShake";
|
|
976
|
-
const Inner = ({
|
|
977
|
-
name,
|
|
978
|
-
inputState,
|
|
979
|
-
optional,
|
|
980
|
-
disabled,
|
|
981
|
-
readonly,
|
|
982
|
-
placeholder,
|
|
983
|
-
displayValue,
|
|
984
|
-
inputRef,
|
|
985
|
-
type,
|
|
986
|
-
id,
|
|
987
|
-
showingMismatch,
|
|
988
|
-
onInput,
|
|
989
|
-
onBlur,
|
|
990
|
-
onFocus,
|
|
991
|
-
onPaste,
|
|
992
|
-
onKeyDown,
|
|
993
|
-
...props
|
|
994
|
-
}) => {
|
|
995
|
-
switch (type) {
|
|
996
|
-
case "text":
|
|
997
|
-
return /* @__PURE__ */ jsx(
|
|
998
|
-
InputText,
|
|
999
|
-
{
|
|
1000
|
-
id,
|
|
1001
|
-
"aria-describedby": props["aria-describedby"],
|
|
1002
|
-
"aria-label": props["aria-label"],
|
|
1003
|
-
"aria-labelledby": props["aria-labelledby"],
|
|
1004
|
-
"aria-invalid": inputState.isError,
|
|
1005
|
-
"aria-placeholder": placeholder,
|
|
1006
|
-
ref: inputRef,
|
|
1007
|
-
name,
|
|
1008
|
-
isValid: !inputState.isError,
|
|
1009
|
-
isInvalid: inputState.isError,
|
|
1010
|
-
required: !optional,
|
|
1011
|
-
disabled,
|
|
1012
|
-
readonly,
|
|
1013
|
-
placeholder,
|
|
1014
|
-
value: displayValue,
|
|
1015
|
-
className: showingMismatch ? styles.mismatch : void 0,
|
|
1016
|
-
onInput,
|
|
1017
|
-
onPaste,
|
|
1018
|
-
onKeyDown,
|
|
1019
|
-
onFocusHandler: onFocus,
|
|
1020
|
-
onBlurHandler: onBlur
|
|
1021
|
-
}
|
|
1022
|
-
);
|
|
1023
|
-
case "email":
|
|
1024
|
-
return /* @__PURE__ */ jsx(
|
|
1025
|
-
InputEmail,
|
|
1026
|
-
{
|
|
1027
|
-
id,
|
|
1028
|
-
"aria-describedby": props["aria-describedby"],
|
|
1029
|
-
"aria-label": props["aria-label"],
|
|
1030
|
-
"aria-labelledby": props["aria-labelledby"],
|
|
1031
|
-
"aria-invalid": inputState.isError,
|
|
1032
|
-
"aria-placeholder": placeholder,
|
|
1033
|
-
ref: inputRef,
|
|
1034
|
-
name,
|
|
1035
|
-
isValid: !inputState.isError,
|
|
1036
|
-
isInvalid: inputState.isError,
|
|
1037
|
-
required: !optional,
|
|
1038
|
-
disabled,
|
|
1039
|
-
readonly,
|
|
1040
|
-
placeholder,
|
|
1041
|
-
value: displayValue,
|
|
1042
|
-
onInput,
|
|
1043
|
-
onPaste,
|
|
1044
|
-
onKeyDown,
|
|
1045
|
-
onFocusHandler: onFocus,
|
|
1046
|
-
onBlurHandler: onBlur
|
|
1047
|
-
}
|
|
1048
|
-
);
|
|
1049
|
-
case "tel":
|
|
1050
|
-
return /* @__PURE__ */ jsx(
|
|
1051
|
-
InputTelephone,
|
|
1052
|
-
{
|
|
1053
|
-
id,
|
|
1054
|
-
"aria-describedby": props["aria-describedby"],
|
|
1055
|
-
"aria-label": props["aria-label"],
|
|
1056
|
-
"aria-labelledby": props["aria-labelledby"],
|
|
1057
|
-
"aria-invalid": inputState.isError,
|
|
1058
|
-
"aria-placeholder": placeholder,
|
|
1059
|
-
ref: inputRef,
|
|
1060
|
-
name,
|
|
1061
|
-
isValid: !inputState.isError,
|
|
1062
|
-
isInvalid: inputState.isError,
|
|
1063
|
-
required: !optional,
|
|
1064
|
-
disabled,
|
|
1065
|
-
readonly,
|
|
1066
|
-
placeholder,
|
|
1067
|
-
value: displayValue,
|
|
1068
|
-
onInput,
|
|
1069
|
-
onPaste,
|
|
1070
|
-
onKeyDown,
|
|
1071
|
-
onFocusHandler: onFocus,
|
|
1072
|
-
onBlurHandler: onBlur
|
|
1073
|
-
}
|
|
1074
|
-
);
|
|
1075
|
-
}
|
|
1076
|
-
};
|
|
1077
|
-
const MaskedInput = ({
|
|
1078
|
-
value,
|
|
1079
|
-
onInput,
|
|
1080
|
-
onBlur,
|
|
1081
|
-
onFocus,
|
|
1082
|
-
onMismatch: onMismatchExternal,
|
|
1083
|
-
isValid: validationIsValid,
|
|
1084
|
-
errorMessage,
|
|
1085
|
-
shouldValidate,
|
|
1086
|
-
mask,
|
|
1087
|
-
name,
|
|
1088
|
-
label,
|
|
1089
|
-
placeholder,
|
|
1090
|
-
transformOnType,
|
|
1091
|
-
type = "text",
|
|
1092
|
-
readonly = false,
|
|
1093
|
-
disabled = false,
|
|
1094
|
-
optional = false,
|
|
1095
|
-
formatGuidance = "",
|
|
1096
|
-
acceptObscuredValue = false,
|
|
1097
|
-
helper,
|
|
1098
|
-
helperPosition = "below",
|
|
1099
|
-
useFieldComponent = true,
|
|
1100
|
-
stripNonAllowedInputs = false
|
|
1101
|
-
}) => {
|
|
1102
|
-
const hasExistingData = !isEmpty(value);
|
|
1103
|
-
const [preservingMismatchedValue, setPreservingMismatchedValue] = useState(false);
|
|
1104
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
1105
|
-
const [hasBlurred, setHasBlurred] = useState(hasExistingData);
|
|
1106
|
-
const [caretReturnPosition, setCaretReturnPosition] = useState(null);
|
|
1107
|
-
const inputRef = useRef(null);
|
|
1108
|
-
const [showingMismatch, setShowingMismatch] = useState(false);
|
|
1109
|
-
const { t } = useTranslation("ui");
|
|
1110
|
-
const onAnimationEnd = (event) => {
|
|
1111
|
-
if (!event.animationName.includes(MISMATCH_ANIMATION_NAME)) return;
|
|
1112
|
-
setShowingMismatch(false);
|
|
1113
|
-
};
|
|
1114
|
-
const onMismatch = useCallback(
|
|
1115
|
-
(mismatch2) => {
|
|
1116
|
-
if (!inputRef.current) return;
|
|
1117
|
-
setShowingMismatch(true);
|
|
1118
|
-
inputRef.current.addEventListener("animationend", onAnimationEnd);
|
|
1119
|
-
onMismatchExternal?.(mismatch2);
|
|
1120
|
-
},
|
|
1121
|
-
[onMismatchExternal]
|
|
1122
|
-
);
|
|
1123
|
-
useEffect(() => {
|
|
1124
|
-
const inputEl = inputRef.current;
|
|
1125
|
-
if (inputEl) {
|
|
1126
|
-
return () => {
|
|
1127
|
-
inputEl.removeEventListener("animationend", onAnimationEnd);
|
|
1128
|
-
};
|
|
1129
|
-
}
|
|
1130
|
-
}, []);
|
|
1131
|
-
const getMaskResult = useCallback(
|
|
1132
|
-
(pureValue) => {
|
|
1133
|
-
if (!mask) return { outcome: "partialCorrect", displayValue: pureValue };
|
|
1134
|
-
return matchAgainstMask(
|
|
1135
|
-
transformOnType ? transformOnType(pureValue) : pureValue,
|
|
1136
|
-
mask,
|
|
1137
|
-
acceptObscuredValue,
|
|
1138
|
-
stripNonAllowedInputs
|
|
1139
|
-
);
|
|
1140
|
-
},
|
|
1141
|
-
[mask, transformOnType, acceptObscuredValue, stripNonAllowedInputs]
|
|
1142
|
-
);
|
|
1143
|
-
const displayValueToPure = useCallback(
|
|
1144
|
-
(displayValue2) => {
|
|
1145
|
-
if (!mask) return displayValue2;
|
|
1146
|
-
return displayValueToPureValue(displayValue2, mask);
|
|
1147
|
-
},
|
|
1148
|
-
[mask]
|
|
1149
|
-
);
|
|
1150
|
-
const maskResult = useMemo(() => getMaskResult(value), [getMaskResult, value]);
|
|
1151
|
-
const displayValue = preservingMismatchedValue ? value : maskResult.outcome === "mismatch" ? maskResult.partialDisplayValue : maskResult.displayValue;
|
|
1152
|
-
const inputState = deriveInputState(
|
|
1153
|
-
validationIsValid && maskResult.outcome !== "mismatch",
|
|
1154
|
-
isFocused,
|
|
1155
|
-
disabled,
|
|
1156
|
-
optional,
|
|
1157
|
-
!displayValue,
|
|
1158
|
-
hasBlurred,
|
|
1159
|
-
errorMessage,
|
|
1160
|
-
shouldValidate,
|
|
1161
|
-
maskResult.outcome === "correct" && !!maskResult.potentialForMoreOptionalInput,
|
|
1162
|
-
formatGuidance,
|
|
1163
|
-
t
|
|
1164
|
-
);
|
|
1165
|
-
useEffect(() => {
|
|
1166
|
-
if (mask && maskResult.outcome === "mismatch") {
|
|
1167
|
-
const strippedValue = displayValueToPure(value);
|
|
1168
|
-
if (getMaskResult(strippedValue).outcome !== "mismatch") {
|
|
1169
|
-
onInput(strippedValue);
|
|
1170
|
-
return;
|
|
1171
|
-
}
|
|
1172
|
-
setPreservingMismatchedValue(true);
|
|
1173
|
-
if (stripNonAllowedInputs) {
|
|
1174
|
-
onInput(maskResult.partialDisplayValue);
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
}, [mask, maskResult, value, onInput, displayValueToPure, getMaskResult, stripNonAllowedInputs]);
|
|
1178
|
-
useLayoutEffect(() => {
|
|
1179
|
-
if (caretReturnPosition && inputRef.current && caretReturnPosition !== inputRef.current.selectionStart) {
|
|
1180
|
-
inputRef.current.setSelectionRange(caretReturnPosition, caretReturnPosition, "none");
|
|
1181
|
-
setCaretReturnPosition(null);
|
|
1182
|
-
}
|
|
1183
|
-
}, [caretReturnPosition]);
|
|
1184
|
-
const handleInput = useCallback(
|
|
1185
|
-
(event) => {
|
|
1186
|
-
const inputEl = event.target;
|
|
1187
|
-
const newPureValue = displayValueToPure(inputEl.value);
|
|
1188
|
-
const newMaskResult = getMaskResult(newPureValue);
|
|
1189
|
-
const returnCaretLater = (offset = 0) => {
|
|
1190
|
-
if (!inputEl.selectionStart) return;
|
|
1191
|
-
setCaretReturnPosition(inputEl.selectionStart + offset);
|
|
1192
|
-
};
|
|
1193
|
-
const cancelInput = () => {
|
|
1194
|
-
returnCaretLater(-1);
|
|
1195
|
-
inputEl.value = displayValue;
|
|
1196
|
-
if (typeof event.preventDefault === "function") {
|
|
1197
|
-
event.preventDefault();
|
|
1198
|
-
event.stopPropagation();
|
|
1199
|
-
}
|
|
1200
|
-
};
|
|
1201
|
-
if (newMaskResult.outcome === "mismatch") {
|
|
1202
|
-
if (newMaskResult.partialDisplayValue) {
|
|
1203
|
-
if (newMaskResult.mismatchedToken === "inputTooLong" && displayValue) {
|
|
1204
|
-
cancelInput();
|
|
1205
|
-
onMismatch(newMaskResult);
|
|
1206
|
-
return;
|
|
1207
|
-
}
|
|
1208
|
-
cancelInput();
|
|
1209
|
-
onMismatch(newMaskResult);
|
|
1210
|
-
setPreservingMismatchedValue(false);
|
|
1211
|
-
onInput(newMaskResult.partialDisplayValue);
|
|
1212
|
-
return;
|
|
1213
|
-
}
|
|
1214
|
-
cancelInput();
|
|
1215
|
-
onMismatch(newMaskResult);
|
|
1216
|
-
return;
|
|
1217
|
-
}
|
|
1218
|
-
if (inputEl.selectionStart && inputEl.selectionStart < inputEl.value.length) {
|
|
1219
|
-
returnCaretLater();
|
|
1220
|
-
}
|
|
1221
|
-
setPreservingMismatchedValue(false);
|
|
1222
|
-
inputEl.value = newMaskResult.displayValue;
|
|
1223
|
-
onInput(newPureValue);
|
|
1224
|
-
},
|
|
1225
|
-
[displayValue, displayValueToPure, getMaskResult, onInput, onMismatch]
|
|
1226
|
-
);
|
|
1227
|
-
const handleBlur = useCallback(
|
|
1228
|
-
(event, fieldOnBlur) => {
|
|
1229
|
-
fieldOnBlur?.(event);
|
|
1230
|
-
const eventWithProcessedValue = {
|
|
1231
|
-
...event,
|
|
1232
|
-
target: {
|
|
1233
|
-
...event.target,
|
|
1234
|
-
value: displayValueToPure(event.target.value)
|
|
1235
|
-
}
|
|
1236
|
-
};
|
|
1237
|
-
onBlur?.(eventWithProcessedValue);
|
|
1238
|
-
setIsFocused(false);
|
|
1239
|
-
setHasBlurred(true);
|
|
1240
|
-
},
|
|
1241
|
-
[displayValueToPure, onBlur]
|
|
1242
|
-
);
|
|
1243
|
-
const handlePaste = useCallback(
|
|
1244
|
-
(event) => {
|
|
1245
|
-
const pasteValue = event.clipboardData?.getData("text/plain");
|
|
1246
|
-
const inputEl = event.target;
|
|
1247
|
-
const { selectionStart, selectionEnd } = inputEl;
|
|
1248
|
-
if (!pasteValue || !selectionStart || selectionStart !== selectionEnd) return;
|
|
1249
|
-
const pureDisplayValue = displayValueToPure(displayValue);
|
|
1250
|
-
const purePasteValue = displayValueToPure(pasteValue);
|
|
1251
|
-
const newPureValue = pureDisplayValue.slice(0, selectionStart) + purePasteValue + pureDisplayValue.slice(selectionStart);
|
|
1252
|
-
if (newPureValue.startsWith(pureDisplayValue + pureDisplayValue)) {
|
|
1253
|
-
const withPrefixRemoved = newPureValue.replace(pureDisplayValue, "");
|
|
1254
|
-
event.preventDefault();
|
|
1255
|
-
handleInput({
|
|
1256
|
-
...event,
|
|
1257
|
-
target: { ...event.target, value: withPrefixRemoved }
|
|
1258
|
-
});
|
|
1259
|
-
}
|
|
1260
|
-
},
|
|
1261
|
-
[displayValue, displayValueToPure, handleInput]
|
|
1262
|
-
);
|
|
1263
|
-
const handleFocus = useCallback(
|
|
1264
|
-
(event, fieldOnFocus) => {
|
|
1265
|
-
onFocus?.();
|
|
1266
|
-
fieldOnFocus?.(event);
|
|
1267
|
-
setIsFocused(true);
|
|
1268
|
-
},
|
|
1269
|
-
[onFocus]
|
|
1270
|
-
);
|
|
1271
|
-
const handleKeyDown = useCallback(
|
|
1272
|
-
(event) => {
|
|
1273
|
-
const inputEl = event.target;
|
|
1274
|
-
const isCaretAtEndWithNoSelection = inputEl.selectionStart === inputEl.value.length && inputEl.selectionStart === inputEl.selectionEnd;
|
|
1275
|
-
if (event.key !== KEYBOARD_KEYS.backspace || !isCaretAtEndWithNoSelection) return;
|
|
1276
|
-
event.preventDefault();
|
|
1277
|
-
const withLastCharRemoved = value.slice(0, value.length - 1);
|
|
1278
|
-
const newMaskResult = getMaskResult(withLastCharRemoved);
|
|
1279
|
-
if (newMaskResult.outcome === "mismatch") {
|
|
1280
|
-
inputEl.value = newMaskResult.partialDisplayValue;
|
|
1281
|
-
onMismatch(newMaskResult);
|
|
1282
|
-
} else {
|
|
1283
|
-
inputEl.value = newMaskResult.displayValue;
|
|
1284
|
-
onInput(withLastCharRemoved);
|
|
1285
|
-
}
|
|
1286
|
-
},
|
|
1287
|
-
[getMaskResult, onInput, onMismatch, value]
|
|
1288
|
-
);
|
|
1289
|
-
const getHelper = () => {
|
|
1290
|
-
if (inputState.isError) {
|
|
1291
|
-
return inputState.text;
|
|
1292
|
-
}
|
|
1293
|
-
if (helper) {
|
|
1294
|
-
return /* @__PURE__ */ jsxs("span", { children: [
|
|
1295
|
-
/* @__PURE__ */ jsx("div", { children: helper }),
|
|
1296
|
-
/* @__PURE__ */ jsx("div", { children: inputState.text })
|
|
1297
|
-
] });
|
|
1298
|
-
}
|
|
1299
|
-
return inputState.text;
|
|
1300
|
-
};
|
|
1301
|
-
return useFieldComponent ? /* @__PURE__ */ jsx(
|
|
1302
|
-
Field,
|
|
1303
|
-
{
|
|
1304
|
-
name,
|
|
1305
|
-
label,
|
|
1306
|
-
isValid: !inputState.isError,
|
|
1307
|
-
errorMessage: inputState.errorMessage || inputState.isError,
|
|
1308
|
-
helper: getHelper(),
|
|
1309
|
-
helperPosition,
|
|
1310
|
-
disabled,
|
|
1311
|
-
optional,
|
|
1312
|
-
children: ({ onBlurHandler: fieldOnBlur, onFocusHandler: fieldOnFocus, id, ...childProps }) => /* @__PURE__ */ jsx(
|
|
1313
|
-
Inner,
|
|
1314
|
-
{
|
|
1315
|
-
...childProps,
|
|
1316
|
-
id,
|
|
1317
|
-
name,
|
|
1318
|
-
optional,
|
|
1319
|
-
disabled,
|
|
1320
|
-
readonly,
|
|
1321
|
-
placeholder,
|
|
1322
|
-
displayValue,
|
|
1323
|
-
inputRef,
|
|
1324
|
-
inputState,
|
|
1325
|
-
type,
|
|
1326
|
-
showingMismatch,
|
|
1327
|
-
onInput: handleInput,
|
|
1328
|
-
onBlur: (event) => handleBlur(event, fieldOnBlur),
|
|
1329
|
-
onPaste: handlePaste,
|
|
1330
|
-
onFocus: (event) => handleFocus(event, fieldOnFocus),
|
|
1331
|
-
onKeyDown: handleKeyDown
|
|
1332
|
-
}
|
|
1333
|
-
)
|
|
1334
|
-
}
|
|
1335
|
-
) : /* @__PURE__ */ jsx(
|
|
1336
|
-
Inner,
|
|
1337
|
-
{
|
|
1338
|
-
name,
|
|
1339
|
-
"aria-label": label,
|
|
1340
|
-
optional,
|
|
1341
|
-
disabled,
|
|
1342
|
-
readonly,
|
|
1343
|
-
placeholder,
|
|
1344
|
-
displayValue,
|
|
1345
|
-
inputRef,
|
|
1346
|
-
inputState,
|
|
1347
|
-
type,
|
|
1348
|
-
showingMismatch,
|
|
1349
|
-
onInput: handleInput,
|
|
1350
|
-
onBlur: (event) => handleBlur(event),
|
|
1351
|
-
onPaste: handlePaste,
|
|
1352
|
-
onFocus: (event) => handleFocus(event),
|
|
1353
|
-
onKeyDown: handleKeyDown
|
|
1354
|
-
}
|
|
1355
|
-
);
|
|
1356
|
-
};
|
|
1357
|
-
const createFormRules = (rules) => rules;
|
|
1358
|
-
const resolveFieldMetadata = (countryEntry, params, defaultMetadata) => {
|
|
1359
|
-
if (typeof countryEntry === "object") {
|
|
1360
|
-
return countryEntry;
|
|
1361
|
-
}
|
|
1362
|
-
if (typeof countryEntry === "function") {
|
|
1363
|
-
return countryEntry(params);
|
|
1364
|
-
}
|
|
1365
|
-
return defaultMetadata;
|
|
1366
|
-
};
|
|
1367
|
-
export {
|
|
1368
|
-
isValueObscured as A,
|
|
1369
|
-
ContextGuidance as C,
|
|
1370
|
-
DropzoneFile as D,
|
|
1371
|
-
Image as I,
|
|
1372
|
-
MaskedInput as M,
|
|
1373
|
-
RadioGroupCard as R,
|
|
1374
|
-
StateContextSetter as S,
|
|
1375
|
-
TrustedFieldsProviders as T,
|
|
1376
|
-
validateNotEmptyOnBlur as a,
|
|
1377
|
-
alphanumericInputs as b,
|
|
1378
|
-
nonInputs as c,
|
|
1379
|
-
alphaInputs as d,
|
|
1380
|
-
validateLegalCompanyName as e,
|
|
1381
|
-
validateLatinSpaceMarkPunctuationOnlyOnBlur as f,
|
|
1382
|
-
validateJaKanaLegalCompanyName as g,
|
|
1383
|
-
validateJaHaniLegalCompanyName as h,
|
|
1384
|
-
useCapabilityProblems as i,
|
|
1385
|
-
getProblemsForEntity as j,
|
|
1386
|
-
customInputs as k,
|
|
1387
|
-
defaultFileValidationOptions as l,
|
|
1388
|
-
makeMask as m,
|
|
1389
|
-
numericInputs as n,
|
|
1390
|
-
fileValidationRules as o,
|
|
1391
|
-
bytesToSize as p,
|
|
1392
|
-
DocumentGuidance as q,
|
|
1393
|
-
resolveFieldMetadata as r,
|
|
1394
|
-
spacer as s,
|
|
1395
|
-
TextArea as t,
|
|
1396
|
-
uppercase as u,
|
|
1397
|
-
validatePatternOnBlur as v,
|
|
1398
|
-
getLocalizedIdDocumentTypeOptions as w,
|
|
1399
|
-
createFormRules as x,
|
|
1400
|
-
InputEmail as y,
|
|
1401
|
-
isNewlyUploadedFile as z
|
|
1402
|
-
};
|