@adyen/kyc-components 4.0.0-compact.0 → 4.0.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 +30 -43
- package/dist/4-people-BzyXLUF9.js +24 -0
- package/dist/AD-BQAadLyG.js +23 -0
- package/dist/AT-BI8ju2NH.js +23 -0
- package/dist/AcceptTermsOfServiceComponent-CmHBNGjM.js +659 -0
- package/dist/Accordion-Cp_VkxR6.js +88 -0
- package/dist/AccountSetupRejected-CoxWTlar.js +26 -0
- package/dist/ActionBar-CxUKVmTE.js +31 -0
- package/dist/Address-Db6Q_KUo.js +1348 -0
- package/dist/Alert-DEiOX0nw.js +159 -0
- package/dist/Avatar-3K6S_tIS.js +60 -0
- package/dist/BE-nWHKW0xQ.js +23 -0
- package/dist/BG-DlvaKo4n.js +27 -0
- package/dist/BusinessDetailsMultiformDropin-CYoIN4Fa.js +4220 -0
- package/dist/BusinessFinancingComponent-DyvM-fsY.js +54 -0
- package/dist/BusinessFinancingDropin-BOvR4LwU.js +1853 -0
- package/dist/BusinessFinancingPage-8C0ztBfS.js +43 -0
- package/dist/BusinessTypeSelectionPage-DpZAsa8K.js +427 -0
- package/dist/CH-TX4BTE2y.js +23 -0
- package/dist/CY-D59Nypl7.js +23 -0
- package/dist/CZ-B6iI1GbE.js +33 -0
- package/dist/Card-CdpPhK9y.js +82 -0
- package/dist/ConstitutionalDocument-NLs6ka9K.js +143 -0
- package/dist/CountryField-9w8wRZMW.js +843 -0
- package/dist/CreateIndividualComponent-zGcoEyq0.js +71 -0
- package/dist/CreateTransferInstrumentComponent-Ct_v-IyH.js +63 -0
- package/dist/Currency-53s7DEeh.js +183 -0
- package/dist/CustomerSupport-BRcUQ4fR.js +153 -0
- package/dist/DE-CsuX_tSL.js +23 -0
- package/dist/DK-oQEFrF6o.js +33 -0
- package/dist/DebugModal-CokbXGK9.js +413 -0
- package/dist/DecisionMakerDetailsPage-B5cLY8iP.js +106 -0
- package/dist/DecisionMakers-BQ24LfqB.js +830 -0
- package/dist/DropinLayout-CBP_cHLC.js +17 -0
- package/dist/EE-3WZV5Ejt.js +23 -0
- package/dist/ES-NfxpqbC2.js +23 -0
- package/dist/EmbeddedStatus-DB9B_u3L.js +99 -0
- package/dist/EndStateLayout-BWC5aqVS.js +71 -0
- package/dist/EntityAssociation-gzYdcHoL.js +159 -0
- package/dist/EntityGuidanceStatus-BKeZKnbP.js +105 -0
- package/dist/FI-CHQIvHa-.js +23 -0
- package/dist/FR-MWZyWX3x.js +23 -0
- package/dist/FormFlow-Cf3Ff2qw.js +224 -0
- package/dist/FormNavigation-CjgZbv9G.js +144 -0
- package/dist/FormWrapper-dbBZegkX.js +135 -0
- package/dist/GG-CPoMVQPc.js +33 -0
- package/dist/GI-DxmBwVD_.js +41 -0
- package/dist/GR-Rk0pXlNw.js +23 -0
- package/dist/HR-WapHW2fw.js +23 -0
- package/dist/HU-DCOMuOhe.js +32 -0
- package/dist/IE-BkgtVgDi.js +23 -0
- package/dist/IM-Wr4iDT94.js +33 -0
- package/dist/IS-C-Cgc6zp.js +27 -0
- package/dist/IT-CXekiddL.js +23 -0
- package/dist/IndividualOnfido-Cc7dydKq.js +9594 -0
- package/dist/IndividualOnfidoDropin-BpU2cL4E.js +2497 -0
- package/dist/InputText-Dsw9kiwL.js +249 -0
- package/dist/Introduction-C8mTk4l_.js +300 -0
- package/dist/JE-B4gj54Hg.js +33 -0
- package/dist/JpAddress-R81eO-aY.js +280 -0
- package/dist/LI-L0ZAALRT.js +23 -0
- package/dist/LT-Ao2uagV9.js +23 -0
- package/dist/LU-B7LRUuc6.js +23 -0
- package/dist/LV-DZeGjA2G.js +23 -0
- package/dist/LegalRepresentativeDetailsPage-DIQX18v2.js +60 -0
- package/dist/ListItem-D3p6EgP_.js +69 -0
- package/dist/MC-EDVNGWhy.js +23 -0
- package/dist/MT-B9my7RlP.js +23 -0
- package/dist/ManageIndividualComponent-CmM-vP9E.js +46 -0
- package/dist/ManageTermsOfServiceComponent-C3hXZJx5.js +52 -0
- package/dist/ManageTransferInstrumentComponent-co6LYrVY.js +287 -0
- package/dist/MaybeModal-BVQOzETz.js +25 -0
- package/dist/Modal-CloeVnNp.js +149 -0
- package/dist/NL-VXAFOhV5.js +23 -0
- package/dist/NO-Cx1VSh2W.js +32 -0
- package/dist/OnboardingDropinComponent-CDAK4v1o.js +7908 -0
- package/dist/PL-BZW1hGvD.js +32 -0
- package/dist/PT-OpU4MU3L.js +23 -0
- package/dist/PayoutDetailsDropin-DCrlrNki.js +4841 -0
- package/dist/RO-Cz6Sh0ls.js +23 -0
- package/dist/Review-Dqn49vJM.js +83 -0
- package/dist/RootBusinessDetailsPage-DSEq3TIn.js +61 -0
- package/dist/RootBusinessLinesPage-CbPhOber.js +1118 -0
- package/dist/RootIndividualDetailsPage-Bp_7gSIB.js +71 -0
- package/dist/SE-B5K-FkQd.js +33 -0
- package/dist/SI-BOGTNLPa.js +23 -0
- package/dist/SK-BOVrp_Av.js +23 -0
- package/dist/SM-meowwILA.js +23 -0
- package/dist/SignPCIComponent-B6kYuqT_.js +304 -0
- package/dist/SingpassSelection-aDrNTYr3.js +130 -0
- package/dist/SoleProprietorshipPage-HnUsyjKp.js +60 -0
- package/dist/SourceOfFundsPage-BkMEIV_L.js +2383 -0
- package/dist/StepProgressIndicator-BgeMe93n.js +78 -0
- package/dist/StoreProvider-BFN15Go9.js +7674 -0
- package/dist/Summary-BkE_c8pU.js +204 -0
- package/dist/TaxReportingDropin-LG9zvOMN.js +502 -0
- package/dist/TrustDetailsPage-C8w8pEvB.js +2149 -0
- package/dist/TrustMemberCompanyPage-IDEwpLW3.js +73 -0
- package/dist/TrustMemberIndividualPage-rKB3iVFk.js +66 -0
- package/dist/TrustMemberRoleAndTypePage-CLtX8V0M.js +985 -0
- package/dist/TrustMembersOverview-Bs203hm0.js +438 -0
- package/dist/UnincorporatedPartnershipIndividualPage-CBTaUEld.js +65 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-ZnLe9Uq3.js +76 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BXImA2c_.js +281 -0
- package/dist/UnincorporatedPartnershipMembersOverview-c7k2JzcO.js +172 -0
- package/dist/VA-DXsYTCoh.js +23 -0
- package/dist/VerificationErrorAlert-uubpHQGE.js +79 -0
- package/dist/ViewVerificationStatusComponent-DO9L2hEO.js +180 -0
- package/dist/adyen-business-financing.js +5 -6
- package/dist/adyen-individual-configuration.js +7 -8
- package/dist/adyen-individual-status.js +7 -8
- package/dist/adyen-kyc-components.js +38 -33
- package/dist/adyen-onboarding.js +4 -5
- package/dist/adyen-terms-of-service-management.js +7 -8
- package/dist/adyen-terms-of-service-status.js +7 -8
- package/dist/adyen-transfer-instrument-configuration.js +7 -8
- package/dist/adyen-transfer-instrument-management.js +7 -8
- package/dist/adyen-verification-status.js +5 -6
- package/dist/arrow-right-KxA3SvQj.js +14 -0
- package/dist/bag-BPumznWh.js +14 -0
- package/dist/bank-D6FiNBhs.js +14 -0
- package/dist/bg-BG-B7Xs_t04.js +13 -0
- package/dist/bg-BG-BY3Wa361.js +54 -0
- package/dist/bg-BG-BvLl6gaB.js +13 -0
- package/dist/bg-BG-CepHap8j.js +68 -0
- package/dist/bg-BG-Coja327N.js +24 -0
- package/dist/bg-BG-D9J6LnkI.js +57 -0
- package/dist/bg-BG-DH45-0B-.js +29 -0
- package/dist/bg-BG-DRkMqyL8.js +13 -0
- package/dist/bg-BG-DcxZ1tmt.js +32 -0
- package/dist/bg-BG-Dp4LxSP7.js +37 -0
- package/dist/bg-BG-DpIAKQve.js +113 -0
- package/dist/bg-BG-er0t4jTs.js +27 -0
- package/dist/bg-BG-mLSjG76Q.js +13 -0
- package/dist/bg-BG-wVquMNtT.js +55 -0
- package/dist/bin-Bz6KOIeE.js +18 -0
- package/dist/capital-GVQ3svwN.js +17 -0
- package/dist/cash-stack-D9AoDDwt.js +22 -0
- package/dist/certificate-CdEWgHQf.js +17 -0
- package/dist/checkmark-Q7x6tGhy.js +14 -0
- package/dist/checkmark-circle-fill-CsvN5_PL.js +17 -0
- package/dist/checkmark-circle-x7dzbp3I.js +20 -0
- package/dist/checkmark-small-D35myntq.js +14 -0
- package/dist/chevron-down-C2iDorpW.js +14 -0
- package/dist/chevron-left-ztPO84q-.js +14 -0
- package/dist/chevron-right-C_JN0oDt.js +14 -0
- package/dist/chevron-up-CgG8n25g.js +14 -0
- package/dist/circle-Bt3Nlr3q.js +17 -0
- package/dist/circle-small-filled-YMzP6yQU.js +14 -0
- package/dist/clock-BZHremOA.js +20 -0
- package/dist/coins-fkAk6dCo.js +17 -0
- package/dist/contract-BTa4HltT.js +14 -0
- package/dist/cross-Cn09MtQ_.js +14 -0
- package/dist/cross-circle-fill-small-DCz52AuN.js +14 -0
- package/dist/cs-CZ--jOkoHVS.js +55 -0
- package/dist/cs-CZ-BDf9m4Rw.js +113 -0
- package/dist/cs-CZ-BEFeaKsV.js +54 -0
- package/dist/cs-CZ-BP7niQM9.js +68 -0
- package/dist/cs-CZ-BSWXexr4.js +13 -0
- package/dist/cs-CZ-BsV9NiQ2.js +13 -0
- package/dist/cs-CZ-CQNBae2b.js +27 -0
- package/dist/cs-CZ-CyLqoG1j.js +37 -0
- package/dist/cs-CZ-D4Hg-t16.js +32 -0
- package/dist/cs-CZ-DPVMeRye.js +29 -0
- package/dist/cs-CZ-DXtJsBPz.js +24 -0
- package/dist/cs-CZ-DY_pQqAT.js +57 -0
- package/dist/cs-CZ-DalFZigH.js +13 -0
- package/dist/cs-CZ-hT5w5It6.js +13 -0
- package/dist/da-DK-CI-vfqPo.js +113 -0
- package/dist/da-DK-D4Ojw97o.js +13 -0
- package/dist/da-DK-DCJhV2qS.js +32 -0
- package/dist/da-DK-DU4dCNEw.js +29 -0
- package/dist/da-DK-DWA8uOd8.js +24 -0
- package/dist/da-DK-DYpfNZdP.js +37 -0
- package/dist/da-DK-DZwlENGe.js +13 -0
- package/dist/da-DK-Dc0QYG8m.js +68 -0
- package/dist/da-DK-JHZnsI59.js +55 -0
- package/dist/da-DK-P3YSaBqs.js +13 -0
- package/dist/da-DK-R_y7YwqQ.js +13 -0
- package/dist/da-DK-gnPgzwrG.js +27 -0
- package/dist/da-DK-jK7c9UL0.js +57 -0
- package/dist/de-DE-BR6CLZw6.js +13 -0
- package/dist/de-DE-BXt1K0Tr.js +37 -0
- package/dist/de-DE-BcuLmcC8.js +13 -0
- package/dist/de-DE-D3lLuF8z.js +27 -0
- package/dist/de-DE-D50lGOJE.js +24 -0
- package/dist/de-DE-DXR3EpEc.js +13 -0
- package/dist/de-DE-DwOQKCuU.js +32 -0
- package/dist/de-DE-Dz2OsS1F.js +68 -0
- package/dist/de-DE-Dz2l6jRl.js +29 -0
- package/dist/de-DE-VGGEkxUT.js +55 -0
- package/dist/de-DE-nG2MBigU.js +113 -0
- package/dist/de-DE-opyC1JO-.js +13 -0
- package/dist/de-DE-wmerDL2e.js +57 -0
- package/dist/debouncedInputEvent-Dlbc7VjU.js +109 -0
- package/dist/debugStore-BvbyN1Oi.js +14 -0
- package/dist/document-1-C08ut-Dt.js +14 -0
- package/dist/document-person-vxlA6C5f.js +20 -0
- package/dist/documentUtils-CUgKVLK4.js +218 -0
- package/dist/download-Drhk9k1f.js +17 -0
- package/dist/dropinUtils-D2lBlNWp.js +202 -0
- package/dist/edit-1-CFoDTMvQ.js +14 -0
- package/dist/el-GR-B3FHqTOX.js +13 -0
- package/dist/el-GR-B5j7VZ3E.js +54 -0
- package/dist/el-GR-B90M6tcZ.js +37 -0
- package/dist/el-GR-BHG69mXl.js +68 -0
- package/dist/el-GR-BX-MyQZY.js +113 -0
- package/dist/el-GR-Btrk_npt.js +57 -0
- package/dist/el-GR-CKHMsdx2.js +24 -0
- package/dist/el-GR-CWd7XYDU.js +13 -0
- package/dist/el-GR-CofvCav-.js +13 -0
- package/dist/el-GR-DtFE64KX.js +13 -0
- package/dist/el-GR-Hk4NbZSY.js +32 -0
- package/dist/el-GR-MLFY-Gg7.js +29 -0
- package/dist/el-GR-XRux2Wpv.js +27 -0
- package/dist/el-GR-gkaKwnln.js +55 -0
- package/dist/en-US-B96dpVon.js +27 -0
- package/dist/en-US-BPI4FZwa.js +113 -0
- package/dist/en-US-BQZhzROc.js +32 -0
- package/dist/en-US-CozY33On.js +13 -0
- package/dist/en-US-CzEL6t1W.js +55 -0
- package/dist/en-US-D-B35AoN.js +68 -0
- package/dist/en-US-D2yrwtzT.js +24 -0
- package/dist/en-US-DYo4OF-P.js +29 -0
- package/dist/en-US-Dg505Oh3.js +37 -0
- package/dist/en-US-fyGPkcqX.js +13 -0
- package/dist/en-US-gsp7CD_E.js +57 -0
- package/dist/en-US-h0JneJJl.js +13 -0
- package/dist/es-ES-0ROz-BJh.js +29 -0
- package/dist/es-ES-BAg3NqQO.js +13 -0
- package/dist/es-ES-BI_jdT67.js +68 -0
- package/dist/es-ES-BOoPqnPI.js +32 -0
- package/dist/es-ES-BhINIOee.js +13 -0
- package/dist/es-ES-BhNhIf08.js +37 -0
- package/dist/es-ES-Bn9_0wK0.js +55 -0
- package/dist/es-ES-CEp-ttVJ.js +13 -0
- package/dist/es-ES-CXDJLKAI.js +27 -0
- package/dist/es-ES-DF_L5EDd.js +24 -0
- package/dist/es-ES-Q16q2JJ6.js +113 -0
- package/dist/es-ES-Qnc0Q6JH.js +57 -0
- package/dist/es-ES-yMXcOjDL.js +13 -0
- package/dist/et-EE--cL_YqWe.js +27 -0
- package/dist/et-EE-BMgFCxds.js +37 -0
- package/dist/et-EE-BYSnV6Iq.js +55 -0
- package/dist/et-EE-Be__VK7Y.js +32 -0
- package/dist/et-EE-Bk2IHQWP.js +13 -0
- package/dist/et-EE-BuBiNLCi.js +24 -0
- package/dist/et-EE-C8RrUpLm.js +13 -0
- package/dist/et-EE-C_PZO2aI.js +68 -0
- package/dist/et-EE-Ci8RU2wg.js +13 -0
- package/dist/et-EE-DUWZ2Vqm.js +54 -0
- package/dist/et-EE-DmShD6oS.js +113 -0
- package/dist/et-EE-TzXANcP2.js +57 -0
- package/dist/et-EE-esci5847.js +29 -0
- package/dist/et-EE-x29FUaYN.js +118 -0
- package/dist/external-link-DCMYUMfW.js +14 -0
- package/dist/fi-FI-B_P4BAda.js +113 -0
- package/dist/fi-FI-CDISJifz.js +13 -0
- package/dist/fi-FI-DH6jpo9K.js +24 -0
- package/dist/fi-FI-DjlB2a7k.js +13 -0
- package/dist/fi-FI-Dn2MC8uW.js +57 -0
- package/dist/fi-FI-MiyuQqH8.js +13 -0
- package/dist/fi-FI-PVFqd5Ra.js +55 -0
- package/dist/fi-FI-bZzNB1WB.js +32 -0
- package/dist/fi-FI-fArobrt5.js +27 -0
- package/dist/fi-FI-hwzizPnr.js +68 -0
- package/dist/fi-FI-xXrvDLFe.js +29 -0
- package/dist/fi-FI-xqnQ38yC.js +13 -0
- package/dist/fi-FI-ysUrBilO.js +37 -0
- package/dist/fieldConfigurations-C38LzPl3.js +1402 -0
- package/dist/fr-FR-BSvSKazD.js +37 -0
- package/dist/fr-FR-BSynpexF.js +13 -0
- package/dist/fr-FR-BWX14yb7.js +57 -0
- package/dist/fr-FR-BnblnBsx.js +24 -0
- package/dist/fr-FR-Bw9O-QAU.js +29 -0
- package/dist/fr-FR-CUdiBCVB.js +113 -0
- package/dist/fr-FR-CYZXbwc9.js +68 -0
- package/dist/fr-FR-CiwkAb3E.js +27 -0
- package/dist/fr-FR-DGMVrsJv.js +13 -0
- package/dist/fr-FR-Dx-CiPdB.js +13 -0
- package/dist/fr-FR-aJ3cg4x0.js +13 -0
- package/dist/fr-FR-cTKcuHqX.js +32 -0
- package/dist/fr-FR-mJK4hjwD.js +55 -0
- package/dist/getFieldsWithExistingData-B0l_1eCG.js +22 -0
- package/dist/getName-CIw0MR9e.js +48 -0
- package/dist/gift-CQ_DEma7.js +14 -0
- package/dist/graph-BJmqglH2.js +21 -0
- package/dist/graph-up-Bq6adtlX.js +20 -0
- package/dist/hasDataChanged-B-_hLK5I.js +19 -0
- package/dist/headquarter-DNYyuuFq.js +21 -0
- package/dist/hotel-BuNql78Z.js +22 -0
- package/dist/hr-HR-BHt_jklG.js +13 -0
- package/dist/hr-HR-BLpGb4f2.js +37 -0
- package/dist/hr-HR-CXpCIMhI.js +113 -0
- package/dist/hr-HR-CZLSQruE.js +57 -0
- package/dist/hr-HR-CnP5sqih.js +54 -0
- package/dist/hr-HR-ComCqan_.js +32 -0
- package/dist/hr-HR-D5V7g9H2.js +13 -0
- package/dist/hr-HR-D8_yhtIo.js +29 -0
- package/dist/hr-HR-De5kHU8U.js +24 -0
- package/dist/hr-HR-DtfHQVe0.js +27 -0
- package/dist/hr-HR-VivDwwdW.js +13 -0
- package/dist/hr-HR-bE6cvRCQ.js +68 -0
- package/dist/hr-HR-n7aMHIpM.js +13 -0
- package/dist/hr-HR-qmYyO-nT.js +55 -0
- package/dist/hu-HU-BTlpbCpc.js +54 -0
- package/dist/hu-HU-BcogZby3.js +24 -0
- package/dist/hu-HU-CS-7iNS4.js +55 -0
- package/dist/hu-HU-Ca9Hex26.js +37 -0
- package/dist/hu-HU-DDsdPI5V.js +13 -0
- package/dist/hu-HU-DG-NUDx4.js +68 -0
- package/dist/hu-HU-DUGz5q5D.js +32 -0
- package/dist/hu-HU-D_DvlCMw.js +13 -0
- package/dist/hu-HU-DqEBeq-w.js +113 -0
- package/dist/hu-HU-I4-KFzvz.js +27 -0
- package/dist/hu-HU-KliQetm5.js +29 -0
- package/dist/hu-HU-WEtpzb41.js +13 -0
- package/dist/hu-HU-hbVM6tMS.js +13 -0
- package/dist/hu-HU-kp8Go5hZ.js +57 -0
- package/dist/iframeWidget-yBLSAmf8.js +234 -0
- package/dist/image-BSihO8lR.js +17 -0
- package/dist/info-vHTZWoJ7.js +21 -0
- package/dist/it-IT-B0YGvVgW.js +57 -0
- package/dist/it-IT-BTWkWSJq.js +55 -0
- package/dist/it-IT-C2MZo4KT.js +13 -0
- package/dist/it-IT-C_651bEP.js +13 -0
- package/dist/it-IT-Ckv8Ce4e.js +24 -0
- package/dist/it-IT-DERflsUd.js +32 -0
- package/dist/it-IT-DIbH-udG.js +27 -0
- package/dist/it-IT-DLm11dH5.js +13 -0
- package/dist/it-IT-Erh1DIlj.js +68 -0
- package/dist/it-IT-MwpjRAG6.js +29 -0
- package/dist/it-IT-NCFAqV1F.js +113 -0
- package/dist/it-IT-Qfzc8jnW.js +37 -0
- package/dist/it-IT-yV7ewjWU.js +13 -0
- package/dist/ja-JP-2u5fqLWF.js +29 -0
- package/dist/ja-JP-Bktpl_2b.js +118 -0
- package/dist/ja-JP-BoxeBgOv.js +32 -0
- package/dist/ja-JP-CHQ64lw1.js +37 -0
- package/dist/ja-JP-CSz7fEkn.js +55 -0
- package/dist/ja-JP-CWe8f7m4.js +13 -0
- package/dist/ja-JP-C_-moDrA.js +113 -0
- package/dist/ja-JP-CbgaW99b.js +54 -0
- package/dist/ja-JP-Ctsk4z4q.js +151 -0
- package/dist/ja-JP-CvNJvxkQ.js +218 -0
- package/dist/ja-JP-Dz9IVH4p.js +57 -0
- package/dist/ja-JP-FWHXsXlW.js +24 -0
- package/dist/ja-JP-ThzG9vIo.js +68 -0
- package/dist/ja-JP-bz7ekGnF.js +27 -0
- package/dist/localizeDateString-C-G2nUor.js +27 -0
- package/dist/location-Q4oKvnkl.js +17 -0
- package/dist/lt-LT-0RKZeraM.js +37 -0
- package/dist/lt-LT-B6XmKUXx.js +55 -0
- package/dist/lt-LT-BEsBoIQ9.js +29 -0
- package/dist/lt-LT-BLsIcCtE.js +27 -0
- package/dist/lt-LT-CU5qHa7a.js +113 -0
- package/dist/lt-LT-CYiW52tl.js +13 -0
- package/dist/lt-LT-Cg9c0kae.js +13 -0
- package/dist/lt-LT-Ci357QYQ.js +13 -0
- package/dist/lt-LT-D5Rhxm1h.js +32 -0
- package/dist/lt-LT-DDdq07sX.js +24 -0
- package/dist/lt-LT-DTQGR9M0.js +54 -0
- package/dist/lt-LT-Nd1uRoIj.js +68 -0
- package/dist/lt-LT-W6fTjwB5.js +13 -0
- package/dist/lt-LT-l9rzkFg9.js +57 -0
- package/dist/lv-LV-BQ4F1GrV.js +54 -0
- package/dist/lv-LV-Bh-WQp0K.js +37 -0
- package/dist/lv-LV-C7hMdPcY.js +27 -0
- package/dist/lv-LV-CG1zToz7.js +32 -0
- package/dist/lv-LV-CgMxfFK8.js +13 -0
- package/dist/lv-LV-CkyuY2ji.js +24 -0
- package/dist/lv-LV-CpGkmcLz.js +113 -0
- package/dist/lv-LV-CxUmQHF9.js +13 -0
- package/dist/lv-LV-DKhV24CI.js +68 -0
- package/dist/lv-LV-DYbb5pkt.js +57 -0
- package/dist/lv-LV-DsSpy50n.js +55 -0
- package/dist/lv-LV-DsxFGThp.js +13 -0
- package/dist/lv-LV-Dxe-A5vo.js +13 -0
- package/dist/lv-LV-Veji7-on.js +29 -0
- package/dist/mail-BOdyoVqB.js +14 -0
- package/dist/mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js +56 -0
- package/dist/mapExistingFile-BhW5UmN9.js +156 -0
- package/dist/mapFinancialReportsToFinancialInformation-Dl-cl9eQ.js +67 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-KFAvfuC1.js +63 -0
- package/dist/mapLegalEntityToIndividualOnfidoSchema-D51tRiYd.js +143 -0
- package/dist/mapTransferInstrumentToPayoutAccount-CU5wx0wJ.js +33 -0
- package/dist/minus-circle-filled-kC2IUvKz.js +17 -0
- package/dist/nl-NL-BMUYBqlF.js +57 -0
- package/dist/nl-NL-Bk-1-C0e.js +13 -0
- package/dist/nl-NL-BuW3jWdI.js +29 -0
- package/dist/nl-NL-Bx5p0nXL.js +24 -0
- package/dist/nl-NL-CMw-FwQV.js +13 -0
- package/dist/nl-NL-CTf7zH4M.js +55 -0
- package/dist/nl-NL-Cjlmc0Ii.js +32 -0
- package/dist/nl-NL-D7gBNWEY.js +37 -0
- package/dist/nl-NL-DKMs4pB2.js +13 -0
- package/dist/nl-NL-DMpB18Te.js +113 -0
- package/dist/nl-NL-JChnFdCY.js +13 -0
- package/dist/nl-NL-NlkjOSYi.js +27 -0
- package/dist/nl-NL-O9GCHMDA.js +68 -0
- package/dist/no-NO--OoWld_l.js +13 -0
- package/dist/no-NO-B-oUwe9q.js +13 -0
- package/dist/no-NO-Bs3-6MDM.js +24 -0
- package/dist/no-NO-C-gCYc9q.js +37 -0
- package/dist/no-NO-CA0EizAy.js +29 -0
- package/dist/no-NO-CA1aR6Wh.js +68 -0
- package/dist/no-NO-CY_XHrYd.js +32 -0
- package/dist/no-NO-Ca5qoVaU.js +113 -0
- package/dist/no-NO-Crlsj6HG.js +27 -0
- package/dist/no-NO-DKbWxgF-.js +57 -0
- package/dist/no-NO-DN9qf-_I.js +13 -0
- package/dist/no-NO-Dhj0Fh__.js +13 -0
- package/dist/no-NO-RfTK9KAV.js +55 -0
- package/dist/options-horizontal-CBmbNv7R.js +18 -0
- package/dist/partner-CPjsrePY.js +18 -0
- package/dist/pay-by-link-plane-BVZndh67.js +22 -0
- package/dist/payout-ChUEoLjt.js +20 -0
- package/dist/payout-verification-instant-5u-wvFKv.js +41 -0
- package/dist/payout-verification-manual-BH2mu0UW.js +90 -0
- package/dist/person-DGjUU4S4.js +17 -0
- package/dist/pl-PL-B0zGy_b4.js +57 -0
- package/dist/pl-PL-BKDK0_G8.js +68 -0
- package/dist/pl-PL-BSI0zHO1.js +113 -0
- package/dist/pl-PL-BzhEoDb5.js +24 -0
- package/dist/pl-PL-C_MvVzPy.js +32 -0
- package/dist/pl-PL-D7nhdbfR.js +29 -0
- package/dist/pl-PL-DGSYzOx6.js +13 -0
- package/dist/pl-PL-DYxD6VJ_.js +27 -0
- package/dist/pl-PL-DtJ3sgVO.js +13 -0
- package/dist/pl-PL-Duj3tncM.js +13 -0
- package/dist/pl-PL-Dy8qWH39.js +55 -0
- package/dist/pl-PL-LnVPufjb.js +37 -0
- package/dist/pl-PL-kGaeUP-w.js +54 -0
- package/dist/pl-PL-p8YxqOFg.js +13 -0
- package/dist/plus-CWXA5wdX.js +14 -0
- package/dist/plus-circle-filled-CbC0u2Y1.js +17 -0
- package/dist/process-field-configurations-DoOFQqtn.js +324 -0
- package/dist/pt-BR--kaJvtE6.js +57 -0
- package/dist/pt-BR-BbFJsIVX.js +55 -0
- package/dist/pt-BR-Be5ZycMV.js +13 -0
- package/dist/pt-BR-BfxgHKY4.js +27 -0
- package/dist/pt-BR-C0I_kTQ6.js +13 -0
- package/dist/pt-BR-CBAe0SnK.js +32 -0
- package/dist/pt-BR-Cj8MlQyq.js +113 -0
- package/dist/pt-BR-Cm4vZocb.js +13 -0
- package/dist/pt-BR-D1nTSLod.js +29 -0
- package/dist/pt-BR-DKrMpM6v.js +13 -0
- package/dist/pt-BR-DSENwwGu.js +24 -0
- package/dist/pt-BR-NtLaWlnZ.js +68 -0
- package/dist/pt-BR-nU_2Wbo5.js +54 -0
- package/dist/pt-BR-ur86nRrK.js +37 -0
- package/dist/pt-PT-B4F_5NWi.js +55 -0
- package/dist/pt-PT-B9L50746.js +29 -0
- package/dist/pt-PT-BJjCTMYf.js +13 -0
- package/dist/pt-PT-BJkVzfAJ.js +113 -0
- package/dist/pt-PT-BR-BI5Jn.js +13 -0
- package/dist/pt-PT-BZ5ZZm6G.js +57 -0
- package/dist/pt-PT-Bf4IV7wp.js +13 -0
- package/dist/pt-PT-Bh7v8xbp.js +13 -0
- package/dist/pt-PT-CIo3mlXL.js +24 -0
- package/dist/pt-PT-CVNEcs32.js +37 -0
- package/dist/pt-PT-DSxxVA0f.js +68 -0
- package/dist/pt-PT-Dm5DRDrd.js +32 -0
- package/dist/pt-PT-TKg5FLat.js +27 -0
- package/dist/recurring-CkL4cCM2.js +17 -0
- package/dist/reporting-DerosUNm.js +16 -0
- package/dist/resolveEnvironment-Dyejukh7.js +164 -0
- package/dist/revenue-accelerate-Dp4Ns_5c.js +17 -0
- package/dist/ro-RO-3rOfS17N.js +27 -0
- package/dist/ro-RO-4j2I7YM7.js +13 -0
- package/dist/ro-RO-5I4Q_FyK.js +13 -0
- package/dist/ro-RO-B5YT9vP-.js +32 -0
- package/dist/ro-RO-B8leE4ZJ.js +13 -0
- package/dist/ro-RO-Bybq8JFn.js +68 -0
- package/dist/ro-RO-C83h2zHZ.js +54 -0
- package/dist/ro-RO-CICjAFys.js +55 -0
- package/dist/ro-RO-CdSsgoUG.js +57 -0
- package/dist/ro-RO-DjGku_3y.js +13 -0
- package/dist/ro-RO-DvG65dTt.js +29 -0
- package/dist/ro-RO-ILTvlS9i.js +24 -0
- package/dist/ro-RO-RgC5M6CE.js +113 -0
- package/dist/ro-RO-i7lojG2G.js +37 -0
- package/dist/rules-DP604XPJ.js +314 -0
- package/dist/save-Fgy7EDid.js +14 -0
- package/dist/search-C4GZ-Rc1.js +17 -0
- package/dist/show-yPjPmEf8.js +17 -0
- package/dist/sk-SK-0BVxI7bf.js +113 -0
- package/dist/sk-SK-B5brxU1N.js +37 -0
- package/dist/sk-SK-BMJgOJoa.js +29 -0
- package/dist/sk-SK-BRd5TN22.js +55 -0
- package/dist/sk-SK-BVmoP_EU.js +13 -0
- package/dist/sk-SK-BWwRIx2d.js +13 -0
- package/dist/sk-SK-Bb18qPBw.js +13 -0
- package/dist/sk-SK-BiBWPJUf.js +57 -0
- package/dist/sk-SK-C5Qmv4E6.js +13 -0
- package/dist/sk-SK-C6rMIxpz.js +68 -0
- package/dist/sk-SK-CgLJIuJw.js +54 -0
- package/dist/sk-SK-CjrLvDMx.js +27 -0
- package/dist/sk-SK-Cv23cDQO.js +24 -0
- package/dist/sk-SK-S6iF1WDH.js +32 -0
- package/dist/sl-SI-6s8xycKg.js +13 -0
- package/dist/sl-SI-BMF8YtOm.js +29 -0
- package/dist/sl-SI-BZpXMHiG.js +13 -0
- package/dist/sl-SI-BxImW_RL.js +113 -0
- package/dist/sl-SI-C-C-KJCX.js +27 -0
- package/dist/sl-SI-CUCrzJQv.js +37 -0
- package/dist/sl-SI-CaJmYb6p.js +13 -0
- package/dist/sl-SI-D8dDckrW.js +55 -0
- package/dist/sl-SI-DEaeEVKB.js +24 -0
- package/dist/sl-SI-DqUEy_Cm.js +32 -0
- package/dist/sl-SI-DtdGMD6i.js +57 -0
- package/dist/sl-SI-ZxyvdgdS.js +13 -0
- package/dist/sl-SI-tPwbFvOI.js +68 -0
- package/dist/solution-payments-CNAat9h7.js +14 -0
- package/dist/store-IuAkDRAp.js +14 -0
- package/dist/style.css +2143 -1744
- package/dist/styles-CLV89_hH.js +2143 -1744
- package/dist/sv-SE-B1sbgsnh.js +13 -0
- package/dist/sv-SE-BHfydid5.js +27 -0
- package/dist/sv-SE-BUq1X9F0.js +113 -0
- package/dist/sv-SE-BYC_f8r7.js +29 -0
- package/dist/sv-SE-C6uPh9g5.js +37 -0
- package/dist/sv-SE-CCFIf86P.js +13 -0
- package/dist/sv-SE-CRBRuE8Z.js +32 -0
- package/dist/sv-SE-CXaMlJCI.js +24 -0
- package/dist/sv-SE-DGpvVvWj.js +55 -0
- package/dist/sv-SE-D_ZnGxiQ.js +13 -0
- package/dist/sv-SE-DsPdegWB.js +13 -0
- package/dist/sv-SE-K1QT1cOt.js +68 -0
- package/dist/sv-SE-kR514dO1.js +57 -0
- package/dist/terminal-1-_me9J9h0.js +18 -0
- package/dist/trackNavigation-db_h46BT.js +28 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +6 -2
- package/dist/types/api/address/useRetrieveAddress.d.ts +3 -1
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +18 -0
- package/dist/types/api/businessLines/businessLines.types.d.ts +16 -0
- package/dist/types/api/businessLines/useBusinessLines.d.ts +4 -2
- package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +7 -0
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +5 -0
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +7 -0
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +1 -0
- package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -0
- package/dist/types/api/configurations/useScenarios.d.ts +12 -12
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +15 -0
- package/dist/types/api/industryCodes/industryCodes.types.d.ts +2 -1
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +3 -3
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +16 -16
- package/dist/types/api/pci/pci.types.d.ts +17 -0
- package/dist/types/api/pci/usePciQuestionnaire.d.ts +6 -0
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +12 -0
- package/dist/types/api/pci/usePciStatus.d.ts +6 -0
- package/dist/types/api/pci/usePciTemplate.d.ts +8 -0
- package/dist/types/api/queryKeys.d.ts +5 -4
- package/dist/types/components/BankAccount/fields/BankAccountFormat/types.d.ts +2 -1
- package/dist/types/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.d.ts +10 -0
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +5 -0
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirementsModal.d.ts +6 -0
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/BankDocument/validate.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +7 -0
- package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutAccount/payoutAccountFormat.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutRequirementsModal.d.ts +8 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +13 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +6 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +5 -5
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +2 -0
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +2 -1
- package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1052 -642
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -3
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +5 -4
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -1
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +5 -3
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
- package/dist/types/components/Business/forms/rules.d.ts +3 -1
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +9 -6
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +2 -1
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -2
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +5 -0
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +3 -3
- package/dist/types/components/Business/utils/requestingCapabilities.d.ts +3 -0
- package/dist/types/components/BusinessLines/constants.d.ts +23 -0
- package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +30 -0
- package/dist/types/components/BusinessLines/fields/SalesChannels/SalesChannels.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/SalesChannels/types.d.ts +6 -0
- package/dist/types/components/BusinessLines/fields/WebDataField/WebDataField.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +6 -0
- package/dist/types/components/BusinessLines/forms/IndustryCodesForm/IndustryCodesForm.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/IndustryCodesForm/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/SalesChannelsForm.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/types.d.ts +3 -0
- package/dist/types/components/BusinessLines/forms/rules.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +6 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLines.d.ts +9 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +2 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesStore.d.ts +3 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/ExistingBusinessLines/ExistingBusinessLines.d.ts +8 -0
- package/dist/types/components/BusinessLines/tasks/types.d.ts +17 -0
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +21 -0
- package/dist/types/components/BusinessLines/tasks/validate.d.ts +9 -0
- package/dist/types/components/Contract/hooks/useSalesChannels.d.ts +2 -0
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1328 -758
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +7 -5
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsType.d.ts +3 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/sofStore.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +14 -13
- package/dist/types/components/EFP/tasks/TaxReportingDropin/taxClassificationStore.d.ts +1 -1
- package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +6 -6
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/BusinessFinancingComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +3 -3
- package/dist/types/components/EmbeddedDropins/SignPCIComponent/SignPCIComponent.d.ts +3 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +3 -3
- package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +3 -0
- package/dist/types/components/Individual/forms/Individual/IdVerification/idVerificationProviderId.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +3 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +3 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +4 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +3 -1
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -2
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -8
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -6
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +2 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +57 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/RemediationAlerts.d.ts +7 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +19 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +3 -0
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -4
- package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +1 -1
- package/dist/types/components/Shared/FormNavigation/types.d.ts +0 -2
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +1 -3
- package/dist/types/components/Shared/Introduction/copy.d.ts +2 -2
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
- package/dist/types/components/Shared/Summary/types.d.ts +1 -2
- package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +18 -0
- package/dist/types/components/Shared/devex/DebugListener/DebugFormData.d.ts +1 -0
- package/dist/types/components/Shared/devex/DebugListener/debugStore.d.ts +5 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +1 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +4 -0
- package/dist/types/components/Shared/fields/IndustryCodeField/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +22 -0
- package/dist/types/components/Shared/fields/IndustryCodeField/validate.d.ts +3 -0
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddress.d.ts +7 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/ReadonlyTextField.d.ts +7 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +3 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +3 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +4 -0
- package/dist/types/components/Shared/forms/Address/utils.d.ts +3 -2
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -2
- package/dist/types/components/Shared/forms/RegistrationAddress/RegistrationAddressMultiform.d.ts +3 -0
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +3 -2
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +4 -0
- package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +3 -1
- package/dist/types/components/Shared/tasks/TaskList/TaskListItem.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +4 -12
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -1
- package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +1 -2
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetailsMultiform.d.ts +2 -0
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -16
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +1 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +21 -0
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +2 -0
- package/dist/types/components/Trust/tasks/TrustDropin/validate.d.ts +5 -0
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +1 -2
- package/dist/types/components/ui/atoms/Header/Header.d.ts +12 -0
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +1 -2
- package/dist/types/components/ui/atoms/RadioCard/RadioCard.d.ts +1 -0
- package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.d.ts +4 -4
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +8 -9
- package/dist/types/components/ui/atoms/Status/Status.d.ts +9 -3
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +6 -0
- package/dist/types/components/ui/atoms/TileGroup/TileGroup.d.ts +3 -1
- package/dist/types/components/ui/atoms/Typography/Typography.types.d.ts +1 -1
- package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +29 -7
- package/dist/types/components/ui/molecules/Card/Card.d.ts +1 -1
- package/dist/types/components/ui/molecules/Card/types.d.ts +1 -0
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +1 -2
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -1
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +2 -23
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +3 -3
- package/dist/types/components/ui/molecules/EmbeddedStatus/types.d.ts +23 -0
- package/dist/types/context/ExperimentContext/types.d.ts +24 -20
- package/dist/types/context/I18nProvider/I18nContext.d.ts +3 -0
- package/dist/types/context/SettingsContext/SettingsProvider.d.ts +1 -1
- package/dist/types/context/SettingsContext/types.d.ts +3 -0
- package/dist/types/context/StateContext/types.d.ts +2 -1
- package/dist/types/core/errorMapping.d.ts +4 -1
- package/dist/types/core/models/api/address.d.ts +5 -0
- package/dist/types/core/models/api/capability.d.ts +20 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
- package/dist/types/core/models/api/source-of-funds.d.ts +5 -0
- package/dist/types/core/models/api/transfer-instrument.d.ts +2 -0
- package/dist/types/core/process-field-configurations.d.ts +4 -1
- package/dist/types/core/user-events.d.ts +22 -11
- package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +1 -0
- package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +3 -3
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +5 -5
- package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +3 -3
- package/dist/types/embeds/individual-status/adyen-individual-status.types.d.ts +5 -5
- package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +3 -3
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.types.d.ts +5 -5
- package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +3 -3
- package/dist/types/embeds/terms-of-service-status/adyen-terms-of-service-status.types.d.ts +39 -0
- package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +3 -3
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.types.d.ts +5 -5
- package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +3 -3
- package/dist/types/embeds/transfer-instrument-management/adyen-transfer-instrument-management.types.d.ts +5 -5
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -6
- package/dist/types/hooks/useAnalytics/useAnalytics.d.ts +16 -0
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -8
- package/dist/types/hooks/useUboQuestionnaire.d.ts +25 -0
- package/dist/types/language/Language.d.ts +10 -0
- package/dist/types/language/types.d.ts +21 -7
- package/dist/types/language/utils.d.ts +2 -2
- package/dist/types/stores/globalStore/taskTypes.d.ts +1 -1
- package/dist/types/types/form-rules.d.ts +2 -0
- package/dist/types/utils/addLinkedFields.d.ts +26 -2
- package/dist/types/utils/analytics/convertToEmbeddedEvent.d.ts +9 -0
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +30 -0
- package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +13 -0
- package/dist/types/utils/analytics/trackNavigation.d.ts +10 -0
- package/dist/types/utils/api/documentUtils.d.ts +1 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/filterProblemsByTaskForms.d.ts +12 -0
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/types/utils/getSSNType.d.ts +1 -0
- package/dist/types/utils/getTrustedFields.d.ts +9 -0
- package/dist/types/utils/textTransformation/toFullWidth.d.ts +6 -0
- package/dist/types/utils/translation.d.ts +3 -2
- package/dist/types/utils/validatorUtils.d.ts +1 -0
- package/dist/types-C972Lk6s.js +34 -0
- package/dist/types-CLz74bOT.js +88 -0
- package/dist/types-Ctv8hbzY.js +74 -0
- package/dist/types-f66rmUFy.js +164 -0
- package/dist/upload-BF65P4KM.js +17 -0
- package/dist/useAssociatedLegalEntity-DAB1oG6O.js +33 -0
- package/dist/useCreateLegalEntity-BK5YcHA-.js +31 -0
- package/dist/useDataset-BtfHQp4w.js +220 -0
- package/dist/useForm-wQyeWa1b.js +1623 -0
- package/dist/useGlobalData-B33uuhtd.js +68 -0
- package/dist/useMultiForm-rZmCYsI4.js +864 -0
- package/dist/useOnboardingStatus-BbIpiZR4.js +27 -0
- package/dist/useScenarios-DPOodENA.js +46 -0
- package/dist/useTermsOfServiceStatus-DKeMR4Xi.js +42 -0
- package/dist/useToastContext-BK9oGWtb.js +60 -0
- package/dist/useUnincorporatedPartnershipMembers-Cdts5Hbn.js +99 -0
- package/dist/useUpdateBusinessLines-CWYtpMwr.js +46 -0
- package/dist/useUpdateLegalEntity-oa8qEzc4.js +39 -0
- package/dist/utils-AP5TpAhf.js +774 -0
- package/dist/utils-COz1RbbA.js +237 -0
- package/dist/validate-BYwVLb-X.js +41 -0
- package/dist/validate-CBVdP51L.js +100 -0
- package/dist/validationError-CvZLhw5H.js +86 -0
- package/dist/warning-circle-fill-CEN1WL7A.js +17 -0
- package/dist/warning-diamond-filled-BfXMlVrG.js +17 -0
- package/dist/webinar-DqjqrNEv.js +22 -0
- package/package.json +82 -83
- package/dist/4-people-CCqdlDEw.js +0 -24
- package/dist/AD-CyP5INSp.js +0 -23
- package/dist/AT-DJLlevck.js +0 -23
- package/dist/AcceptTermsOfServiceComponent-BF24NWVw.js +0 -657
- package/dist/AccountSetupRejected-2t22lJUo.js +0 -26
- package/dist/Address-DSwfzWFu.js +0 -1076
- package/dist/Alert-C24s_Ygs.js +0 -231
- package/dist/Avatar-DQjt5Lk2.js +0 -60
- package/dist/BE-B-m_4F41.js +0 -23
- package/dist/BG-BVR5ytc-.js +0 -27
- package/dist/BusinessDetailsDropin-CRFPvWuD.js +0 -5088
- package/dist/BusinessFinancingComponent-y2_kC8bx.js +0 -45
- package/dist/BusinessFinancingDropin-C-xm14b8.js +0 -1811
- package/dist/BusinessFinancingPage-BOG7yrw6.js +0 -40
- package/dist/BusinessTypeSelectionPage-ujY2jj6B.js +0 -426
- package/dist/CH-CesIKOYy.js +0 -23
- package/dist/CY-BnJ7k_mN.js +0 -23
- package/dist/CZ-BiPeoA9G.js +0 -33
- package/dist/Card-BMuquALf.js +0 -145
- package/dist/Confirm-DwutojkY.js +0 -64
- package/dist/CountryField-D0YZrov9.js +0 -864
- package/dist/CreateIndividualComponent-VZWLAo0l.js +0 -72
- package/dist/CreateTransferInstrumentComponent-OtReN6Cy.js +0 -67
- package/dist/Currency-BECbMsi5.js +0 -238
- package/dist/CustomerSupport-B8zC_huY.js +0 -141
- package/dist/DE-DdcbG-CC.js +0 -23
- package/dist/DK-DA8qRrzq.js +0 -33
- package/dist/DebugModal-CshTHx0o.js +0 -328
- package/dist/DecisionMakerDetailsPage-BJUwR4R7.js +0 -100
- package/dist/DecisionMakers-BDNa3HcC.js +0 -591
- package/dist/Dropzone-D6dXhmL4.js +0 -218
- package/dist/EE-CaXoPgZz.js +0 -23
- package/dist/ES-Bt_oaIaf.js +0 -23
- package/dist/EmbeddedStatus-BHTZcjUN.js +0 -100
- package/dist/EndStateLayout-CyGtLyvf.js +0 -71
- package/dist/FI-C5V3lLuN.js +0 -23
- package/dist/FR-Bc1tLIC4.js +0 -23
- package/dist/FormFlow-CZ9f5X0C.js +0 -216
- package/dist/FormNavigation-ezxkIqdb.js +0 -162
- package/dist/GG-BGuqxplU.js +0 -33
- package/dist/GI-CROkpYrU.js +0 -41
- package/dist/GR-B9c2boG8.js +0 -23
- package/dist/HR-p4luVYpu.js +0 -23
- package/dist/HU-D8vJYkDH.js +0 -32
- package/dist/IE-Cli_j7Al.js +0 -23
- package/dist/IM-mpIyBn16.js +0 -33
- package/dist/IS-02zCAdvq.js +0 -27
- package/dist/IT-CzURFhrK.js +0 -23
- package/dist/IndividualOnfidoDropin-vuHu-O_C.js +0 -7874
- package/dist/InputDate-CHygOGiS.js +0 -43
- package/dist/InputGroup-WBfGDV5F.js +0 -32
- package/dist/InputText-BX5sG9WJ.js +0 -161
- package/dist/Introduction-BsKwELuc.js +0 -304
- package/dist/JE-MFwIYti7.js +0 -33
- package/dist/LI-DA06W10W.js +0 -23
- package/dist/LT-DuU6E2Ct.js +0 -23
- package/dist/LU-BQHhNpDy.js +0 -23
- package/dist/LV-DN7wckbP.js +0 -23
- package/dist/LegalRepresentativeDetailsPage-DtMHe1Nq.js +0 -61
- package/dist/Link-BFdxU8qh.js +0 -35
- package/dist/MC-DtSWC4jS.js +0 -23
- package/dist/MT-DeDMQ1f_.js +0 -23
- package/dist/ManageIndividualComponent-By_fCmN1.js +0 -47
- package/dist/ManageTermsOfServiceComponent-D7F44OPD.js +0 -47
- package/dist/ManageTransferInstrumentComponent-DywpP5PK.js +0 -294
- package/dist/MaskedInput-BZ7t98eu.js +0 -799
- package/dist/MaybeModal-CE9kYOrU.js +0 -25
- package/dist/Modal-nMRQDTF7.js +0 -136
- package/dist/NL-aVL0NAp-.js +0 -23
- package/dist/NO-D7EOiQA1.js +0 -32
- package/dist/OnboardingDropinComponent-B0GrJ_pR.js +0 -4301
- package/dist/PL-Bg7axKQA.js +0 -32
- package/dist/PT-hB1HnBM2.js +0 -23
- package/dist/PayoutDetailsDropin-BJIqXmPn.js +0 -3694
- package/dist/RO-BLlC4CKq.js +0 -23
- package/dist/RadioGroup-CYDXrtrO.js +0 -143
- package/dist/RegistrationAddress-qtMZa31b.js +0 -2334
- package/dist/Review-D7NEYFoT.js +0 -82
- package/dist/RootBusinessDetailsPage-rCbGLBEv.js +0 -1870
- package/dist/RootIndividualDetailsPage-B3TkB6Xj.js +0 -77
- package/dist/SE-q25Qt85B.js +0 -33
- package/dist/SI-BzA-ozn6.js +0 -23
- package/dist/SK-DOTdLJPw.js +0 -23
- package/dist/SM-B4BIgmhk.js +0 -23
- package/dist/SignPCIComponent-C0iYfSl6.js +0 -294
- package/dist/SingpassSelection-ClMlwfoj.js +0 -130
- package/dist/SoleProprietorshipPage-JKNrAy74.js +0 -50
- package/dist/SourceOfFundsPage-D-pN33-9.js +0 -3101
- package/dist/Spacer-BK3jDget.js +0 -18
- package/dist/StepProgressIndicator-BWCQmDeV.js +0 -78
- package/dist/StoreProvider-BlaJzXSZ.js +0 -7072
- package/dist/StructuredList-DaepaiVE.js +0 -38
- package/dist/TaskItemStatus-B38keERo.js +0 -125
- package/dist/TaskStatusIndicator-BIvTrQtf.js +0 -69
- package/dist/TaxInformationField-DS0m73if.js +0 -3062
- package/dist/TaxReportingDropin-CVbVkFhv.js +0 -499
- package/dist/TileGroup-CztY53P9.js +0 -174
- package/dist/TrustDetailsPage-C791Wu5u.js +0 -1205
- package/dist/TrustMemberCompanyPage-BOQ5D3y4.js +0 -60
- package/dist/TrustMemberIndividualPage-BPIXX2Mh.js +0 -66
- package/dist/UnincorporatedPartnershipIndividualPage-vzn0R02z.js +0 -66
- package/dist/UnincorporatedPartnershipMemberCompanyPage-C-kGU5Sh.js +0 -64
- package/dist/VA-bPXdCnwD.js +0 -23
- package/dist/ViewVerificationStatusComponent-BTW-Vw9I.js +0 -177
- package/dist/analytics-3-a-Od7Z.js +0 -61
- package/dist/arrow-right-D_mdkZmE.js +0 -14
- package/dist/bafinUtils-Bar3qiJA.js +0 -457
- package/dist/bag-DpxmyXfR.js +0 -14
- package/dist/bank-gyBvaSp4.js +0 -14
- package/dist/bin-Bgdj6KzC.js +0 -18
- package/dist/capital-CF9_Ev99.js +0 -17
- package/dist/cash-stack-Ds76Du8m.js +0 -22
- package/dist/certificate-D6xjhThs.js +0 -17
- package/dist/checkmark-circle-fill-BhvuqTl9.js +0 -17
- package/dist/checkmark-circle-nACBJ24q.js +0 -20
- package/dist/checkmark-small-63w5fAxg.js +0 -14
- package/dist/checkmark-tfEAu7lj.js +0 -14
- package/dist/chevron-down-CkQS-knD.js +0 -14
- package/dist/chevron-left-CBCMdMx6.js +0 -14
- package/dist/chevron-right-dIVWvPJu.js +0 -14
- package/dist/chevron-up-D93IGU9z.js +0 -14
- package/dist/circle-Dgfa7GUy.js +0 -17
- package/dist/coins-CFu331p2.js +0 -17
- package/dist/commonValidators-Bk0SSjsH.js +0 -24
- package/dist/contract-DI03_xrF.js +0 -14
- package/dist/cross-circle-fill-small-CHMDaA3q.js +0 -14
- package/dist/cross-o4n5KXxG.js +0 -14
- package/dist/currency-BGwQyxBo.js +0 -36
- package/dist/da-DK-B45X2VaJ.js +0 -35
- package/dist/da-DK-BJ7aTPir.js +0 -13
- package/dist/da-DK-BTpZzEgA.js +0 -15
- package/dist/da-DK-BoQic3Gy.js +0 -33
- package/dist/da-DK-CeNMXUfE.js +0 -23
- package/dist/da-DK-D0N1TVVU.js +0 -58
- package/dist/da-DK-D4H69PX3.js +0 -30
- package/dist/da-DK-DStNe471.js +0 -22
- package/dist/da-DK-q2b_1elr.js +0 -35
- package/dist/de-DE-C78RLE2G.js +0 -13
- package/dist/de-DE-CGoBPCPv.js +0 -22
- package/dist/de-DE-CWvgMDqU.js +0 -35
- package/dist/de-DE-D2ByeIZs.js +0 -35
- package/dist/de-DE-DjOUNvp6.js +0 -15
- package/dist/de-DE-Dtuu-nE7.js +0 -58
- package/dist/de-DE-Dwagawx1.js +0 -33
- package/dist/de-DE-JI-7mvxy.js +0 -23
- package/dist/de-DE-wp5-H-ov.js +0 -30
- package/dist/document-1-DsCi9vmX.js +0 -14
- package/dist/document-person-DBlLin9u.js +0 -20
- package/dist/download-B8_c4ARV.js +0 -17
- package/dist/dropinUtils-DHp5v5jB.js +0 -192
- package/dist/edit-1-D6f6zk9p.js +0 -14
- package/dist/en-US-546hB2Wn.js +0 -60
- package/dist/en-US-BQpgt41j.js +0 -37
- package/dist/en-US-BTYdAWXp.js +0 -15
- package/dist/en-US-BbAzROHT.js +0 -36
- package/dist/en-US-CAm3meB1.js +0 -30
- package/dist/en-US-CQ3angjM.js +0 -22
- package/dist/en-US-DHq7VYFs.js +0 -23
- package/dist/en-US-DIdQJky-.js +0 -35
- package/dist/es-ES-BsQpwaPN.js +0 -58
- package/dist/es-ES-Bsoco8Fj.js +0 -33
- package/dist/es-ES-BtUSEzkE.js +0 -13
- package/dist/es-ES-CKMfS8Yy.js +0 -22
- package/dist/es-ES-Cj7q7fWO.js +0 -15
- package/dist/es-ES-DKCCgVF8.js +0 -35
- package/dist/es-ES-DOVPTeyf.js +0 -23
- package/dist/es-ES-Ds3-DtqZ.js +0 -30
- package/dist/es-ES-WWftn3JX.js +0 -35
- package/dist/external-link-BjladU3E.js +0 -14
- package/dist/fi-FI-BJ9RzrL3.js +0 -58
- package/dist/fi-FI-BNcnKrJ9.js +0 -15
- package/dist/fi-FI-ClnsYt3L.js +0 -33
- package/dist/fi-FI-Cvar63RH.js +0 -13
- package/dist/fi-FI-D522KHGk.js +0 -23
- package/dist/fi-FI-D9E_KaJi.js +0 -35
- package/dist/fi-FI-DPNeTsJS.js +0 -30
- package/dist/fi-FI-Hhku9Lmc.js +0 -35
- package/dist/fi-FI-REYOX46I.js +0 -22
- package/dist/fieldConfigurations-B8bDFQ53.js +0 -458
- package/dist/form-rules-DhbF2mY4.js +0 -13
- package/dist/formatCurrency-CMOSdJMB.js +0 -29
- package/dist/fr-FR-B5543Fe-.js +0 -13
- package/dist/fr-FR-BYuKsZIb.js +0 -35
- package/dist/fr-FR-Bn3D6mmY.js +0 -15
- package/dist/fr-FR-CJI0bIig.js +0 -33
- package/dist/fr-FR-CNR5-s9g.js +0 -58
- package/dist/fr-FR-ChmNQciP.js +0 -30
- package/dist/fr-FR-Cv0k-3Xc.js +0 -35
- package/dist/fr-FR-D9qaP6nx.js +0 -22
- package/dist/fr-FR-DInQKkTd.js +0 -23
- package/dist/getName-DJlhsDj_.js +0 -41
- package/dist/gift-SdNY6AqI.js +0 -14
- package/dist/graph-DwYwlplw.js +0 -21
- package/dist/graph-up-DpbCSPbc.js +0 -20
- package/dist/hasDataChanged-BgvxL-Hx.js +0 -19
- package/dist/headquarter-C6AsewcP.js +0 -21
- package/dist/hotel-JX0bjsSA.js +0 -22
- package/dist/iframeWidget-Bftkd3v_.js +0 -234
- package/dist/image-eUqBiRX_.js +0 -17
- package/dist/info-Wao3PEQK.js +0 -21
- package/dist/isEmpty-CuQFhMf0.js +0 -23
- package/dist/it-IT-BV9K87FK.js +0 -58
- package/dist/it-IT-BeC2Y1F8.js +0 -33
- package/dist/it-IT-Biduphjt.js +0 -22
- package/dist/it-IT-C_fNHhjE.js +0 -35
- package/dist/it-IT-CjEYONJg.js +0 -23
- package/dist/it-IT-Dd6xGSe-.js +0 -13
- package/dist/it-IT-DvM-9LpM.js +0 -15
- package/dist/it-IT-Nl57jui-.js +0 -35
- package/dist/it-IT-eCrTB65E.js +0 -30
- package/dist/keys-BpNgnAsD.js +0 -23
- package/dist/localizeDateString-DHsivjy2.js +0 -27
- package/dist/location-YXhcBMDy.js +0 -17
- package/dist/mail-Z_IE_hkw.js +0 -14
- package/dist/mapExistingFile-DW5ktJzM.js +0 -231
- package/dist/mapScriptLocalization-CI-Ydp2z.js +0 -72
- package/dist/mapTransferInstrumentToPayoutAccount-CAoOlPMA.js +0 -30
- package/dist/minus-circle-filled-BGKeHaxJ.js +0 -17
- package/dist/nl-NL-BHkRnVrj.js +0 -35
- package/dist/nl-NL-BHqiO21q.js +0 -15
- package/dist/nl-NL-Cysslsh2.js +0 -33
- package/dist/nl-NL-D2QKudfh.js +0 -30
- package/dist/nl-NL-DLedC3mO.js +0 -35
- package/dist/nl-NL-DVENFpd5.js +0 -13
- package/dist/nl-NL-DywVQ9km.js +0 -58
- package/dist/nl-NL-G1wVnmzT.js +0 -22
- package/dist/nl-NL-Zcq0bXd-.js +0 -23
- package/dist/no-NO-B8oxqfNI.js +0 -58
- package/dist/no-NO-BTtAuqCb.js +0 -22
- package/dist/no-NO-BxReX6oF.js +0 -23
- package/dist/no-NO-CKT9kLAH.js +0 -15
- package/dist/no-NO-C_snYWBc.js +0 -30
- package/dist/no-NO-CpVal4cV.js +0 -35
- package/dist/no-NO-Dn2UkdoI.js +0 -13
- package/dist/no-NO-kaAdT9B8.js +0 -35
- package/dist/no-NO-zSnPtrDi.js +0 -33
- package/dist/options-horizontal-nJ9-ButA.js +0 -18
- package/dist/partner-COG2_Erh.js +0 -21
- package/dist/pay-by-link-plane-Pv7Babgn.js +0 -22
- package/dist/payout-iEmHhgQ4.js +0 -20
- package/dist/person-CdGfItMU.js +0 -17
- package/dist/plus-CwLva7fq.js +0 -14
- package/dist/plus-circle-filled-Cnf1oJTm.js +0 -17
- package/dist/pt-PT-BkvMsoK4.js +0 -35
- package/dist/pt-PT-BvK00TeI.js +0 -58
- package/dist/pt-PT-C-hbNnsB.js +0 -30
- package/dist/pt-PT-CjsyP_OK.js +0 -33
- package/dist/pt-PT-D2elvnDU.js +0 -15
- package/dist/pt-PT-Dk48OVtf.js +0 -22
- package/dist/pt-PT-N0njcfLO.js +0 -23
- package/dist/pt-PT-Xm-pm3mb.js +0 -35
- package/dist/pt-PT-_o5xgnxS.js +0 -13
- package/dist/reporting-DlRoibD7.js +0 -17
- package/dist/resolveEnvironment-BGYn6Ls_.js +0 -84
- package/dist/revenue-accelerate-rtXA-8EE.js +0 -17
- package/dist/rules-DP3jxPzq.js +0 -311
- package/dist/save-BofgDbDX.js +0 -14
- package/dist/search-BjMkvQh0.js +0 -17
- package/dist/show-uL6I-rMo.js +0 -17
- package/dist/sl-SI-BB7iVcFI.js +0 -22
- package/dist/sl-SI-BhVTSmhQ.js +0 -30
- package/dist/sl-SI-Br0UEUPL.js +0 -33
- package/dist/sl-SI-BylvpF-X.js +0 -15
- package/dist/sl-SI-Cth2Qa5T.js +0 -35
- package/dist/sl-SI-D_rqR0D7.js +0 -35
- package/dist/sl-SI-MZoDApq9.js +0 -23
- package/dist/sl-SI-NI2OJAvm.js +0 -58
- package/dist/solution-payments-DTAuLSWF.js +0 -14
- package/dist/store-CkhgQMl0.js +0 -14
- package/dist/sv-SE-66rqYTxi.js +0 -30
- package/dist/sv-SE-B3zoXMuH.js +0 -35
- package/dist/sv-SE-BUfESAQK.js +0 -13
- package/dist/sv-SE-BtXmvxx4.js +0 -33
- package/dist/sv-SE-CAZpDX9G.js +0 -58
- package/dist/sv-SE-DCFSf4Oj.js +0 -23
- package/dist/sv-SE-DbI-1JqN.js +0 -22
- package/dist/sv-SE-Dwz1yTrB.js +0 -15
- package/dist/sv-SE-OPOHtqtP.js +0 -35
- package/dist/terminal-1-ewywjFJI.js +0 -18
- package/dist/toCapitalized-Bq7laD0b.js +0 -13
- package/dist/translation-DJHWTow9.js +0 -472
- package/dist/types/api/pciTemplate/pciTemplate.types.d.ts +0 -9
- package/dist/types/api/pciTemplate/usePciQuestionnaire.d.ts +0 -6
- package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +0 -12
- package/dist/types/api/pciTemplate/usePciStatus.d.ts +0 -6
- package/dist/types/api/pciTemplate/usePciTemplate.d.ts +0 -14
- package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +0 -5
- package/dist/types/components/Contract/hooks/useSalesChannelsSettings.d.ts +0 -3
- package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +0 -2
- package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +0 -8
- package/dist/types/components/ui/atoms/Remove/Remove.d.ts +0 -2
- package/dist/types/components/ui/atoms/Remove/Remove.types.d.ts +0 -9
- package/dist/types/components/ui/atoms/Status/Status.types.d.ts +0 -8
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +0 -11
- package/dist/types/components/ui/molecules/Card/CardGroup.d.ts +0 -3
- package/dist/types/core/analytics.d.ts +0 -31
- package/dist/types/embeds/terms-of-service-status/adyen-manage-terms-of-service.types.d.ts +0 -39
- package/dist/types/hooks/useAnalytics.d.ts +0 -22
- package/dist/types/utils/bankVerification/animation.d.ts +0 -2
- package/dist/types/utils/trackNavigation.d.ts +0 -10
- package/dist/types-CAznNNSI.js +0 -160
- package/dist/types-CP1NRoE8.js +0 -74
- package/dist/types-K58FM7k4.js +0 -64
- package/dist/upload-XDhHhAHV.js +0 -17
- package/dist/useAssociatedLegalEntity-G30FPhOX.js +0 -33
- package/dist/useDataset-BgvQQEKd.js +0 -120
- package/dist/useForm-C1DW3mPC.js +0 -1694
- package/dist/useFormContext-beqGS11A.js +0 -23
- package/dist/useGlobalData-jb7ua9I6.js +0 -205
- package/dist/useMultiForm-BucfLW49.js +0 -864
- package/dist/useOnboardingStatus-CTgWLZxC.js +0 -27
- package/dist/useScenarios-B7IWZ3xW.js +0 -46
- package/dist/useTermsOfServiceStatus-B0dIrYTA.js +0 -42
- package/dist/useToastContext-DGMeMy5R.js +0 -51
- package/dist/useUnincorporatedPartnershipMembers-BCvmGMOX.js +0 -99
- package/dist/utils-Bwnj33y_.js +0 -277
- package/dist/utils-CXtNbmpA.js +0 -29
- package/dist/utils-CgOzbb9O.js +0 -159
- package/dist/validate-B5PwC1oL.js +0 -100
- package/dist/validate-BRz0LPdo.js +0 -382
- package/dist/validate-CvtamBXH.js +0 -605
- package/dist/validationError-DOCbfk7K.js +0 -86
- package/dist/warning-circle-fill-DADaWT65.js +0 -17
- package/dist/warning-filled-BfAQN-BF.js +0 -14
- package/dist/webinar-BJWDRK2H.js +0 -22
- /package/dist/types/api/{pciTemplate → pci}/useSignPci.d.ts +0 -0
- /package/dist/types/components/BusinessLines/tasks/{BusinessLinesGettingStarted → BusinessLines}/BusinessLinesGettingStarted.d.ts +0 -0
|
@@ -0,0 +1,1402 @@
|
|
|
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-BFN15Go9.js";
|
|
11
|
+
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
12
|
+
import { a as Alert } from "./Alert-DEiOX0nw.js";
|
|
13
|
+
import cx from "classnames";
|
|
14
|
+
import { useState, useMemo, useEffect, useCallback, useLayoutEffect, useRef } from "preact/hooks";
|
|
15
|
+
import { a as debouncedInputEvent } from "./debouncedInputEvent-Dlbc7VjU.js";
|
|
16
|
+
import { Suspense, lazy, forwardRef } from "preact/compat";
|
|
17
|
+
import { b as useId } from "./useToastContext-BK9oGWtb.js";
|
|
18
|
+
import { R as Radio } from "./CountryField-9w8wRZMW.js";
|
|
19
|
+
import { F as Field } from "./useForm-wQyeWa1b.js";
|
|
20
|
+
import { K as KEYBOARD_KEYS } from "./Modal-CloeVnNp.js";
|
|
21
|
+
import { u as useForwardedRef, a as InputBase, I as InputText } from "./InputText-Dsw9kiwL.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
|
+
};
|