@adyen/kyc-components 3.91.0 → 3.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{4-people-BzyXLUF9.js → 4-people-BtDi7O9A.js} +2 -2
- package/dist/{AcceptTermsOfServiceComponent-Bl8Skw0p.js → AcceptTermsOfServiceComponent-T7eWi57Z.js} +17 -14
- package/dist/{Accordion-BxBwztLx.js → Accordion-Boa_Vira.js} +2 -2
- package/dist/{AccountSetupRejected-DWnI467S.js → AccountSetupRejected-LAVhMMBt.js} +4 -4
- package/dist/{ActionBar-BI8EL50o.js → ActionBar-CK8dwgSJ.js} +1 -1
- package/dist/{Address-BUrDDnmR.js → Address-ki-bCjUJ.js} +23 -289
- package/dist/{Alert-B83aFhFn.js → Alert-TCEgDc2-.js} +3 -3
- package/dist/{Avatar-CWGv3_UH.js → Avatar-AC-D1DKh.js} +2 -2
- package/dist/{BusinessFinancingComponent-Dp9pkrSs.js → BusinessFinancingComponent-Cf-EEnyR.js} +6 -6
- package/dist/{BusinessFinancingDropin-CxDQONVa.js → BusinessFinancingDropin-DeLlYaOF.js} +30 -22
- package/dist/{BusinessFinancingPage-CK4iko3V.js → BusinessFinancingPage-DtX8x3Zp.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-BbCt3hSM.js → BusinessTypeSelectionPage-6Ltt53Mu.js} +58 -33
- package/dist/{Card-CQrP0PXC.js → Card-Det7uTiv.js} +2 -2
- package/dist/{debouncedInputEvent-CFFx_oML.js → Checkbox-D8rB6_HN.js} +3 -38
- package/dist/Confirm-Ctfqp-1b.js +64 -0
- package/dist/ConstitutionalDocument-TJAc9nDQ.js +2358 -0
- package/dist/ContextGuidance-CCknw_Y1.js +34 -0
- package/dist/CountryField-DzmOWqiE.js +66 -0
- package/dist/{CreateIndividualComponent-B6ecxCd8.js → CreateIndividualComponent-_H34wdze.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-Chqddjgy.js → CreateTransferInstrumentComponent-CmnVEFaB.js} +5 -12
- package/dist/{Currency-CkQVLmOQ.js → Currency-C2egEHMF.js} +64 -8
- package/dist/{CustomerSupport-BDynvVnl.js → CustomerSupport-DLfbNC-J.js} +12 -10
- package/dist/{DebugModal-DAu7rz8a.js → DebugModal-C0uG_A8N.js} +8 -7
- package/dist/{DecisionMakerDetailsPage-BBqNmh_M.js → DecisionMakerDetailsPage-BTR-hRwO.js} +6 -6
- package/dist/{DecisionMakers-Ddvw0N__.js → DecisionMakers-B4qQ3M6Y.js} +27 -21
- package/dist/Dropzone-CKT3THCY.js +218 -0
- package/dist/{EmbeddedStatus-BSK268B-.js → EmbeddedStatus-Bst5MPzi.js} +3 -3
- package/dist/{EndStateLayout-B8KmFejY.js → EndStateLayout-Ck_Lvgng.js} +2 -2
- package/dist/{EntityAssociation-DBPiXzNF.js → EntityAssociation-bcF_I_DK.js} +8 -8
- package/dist/{EntityGuidanceStatus-QEzHcb28.js → EntityGuidanceStatus-D6VoRE_0.js} +4 -3
- package/dist/ErrorPanel-CFN2G9Vz.js +190 -0
- package/dist/Field-B3Vy1-QZ.js +142 -0
- package/dist/{FormNavigation-DLJbUsy3.js → FormNavigation-Brw-75s0.js} +3 -3
- package/dist/{FormWrapper-41qnDF4W.js → FormWrapper-BcNyCMkD.js} +10 -10
- package/dist/Header-YafgG5Nz.js +83 -0
- package/dist/Image-Cvb4hnru.js +44 -0
- package/dist/{IndividualOnfido-pGSPtITh.js → IndividualOnfidoDropin-Dy5obHs1.js} +3833 -5548
- package/dist/InputDate-UCHQ3zOB.js +43 -0
- package/dist/InputGroup-WBfGDV5F.js +32 -0
- package/dist/InputText-DGKAS6ZI.js +134 -0
- package/dist/{Introduction-DaRfsN8P.js → Introduction-DOxSVZ6X.js} +4 -4
- package/dist/{JpAddress-BrtEV6zM.js → JpAddress-DClXaVjy.js} +22 -10
- package/dist/LandingLayout-co7NR2te.js +60 -0
- package/dist/{LegalRepresentativeDetailsPage-XcmRRT7P.js → LegalRepresentativeDetailsPage-DOP3L2r9.js} +4 -4
- package/dist/Link-DWTJ55UO.js +35 -0
- package/dist/List-BAzyC6sw.js +83 -0
- package/dist/{ListItem-DlRGqcSA.js → ListItem-B8D-kUHN.js} +3 -3
- package/dist/LoaderWrapper-CUz5NRFr.js +42 -0
- package/dist/{ManageIndividualComponent-BpzsaZ1O.js → ManageIndividualComponent-DND7vuna.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-D9i2HO5I.js → ManageTermsOfServiceComponent-ylDupO1E.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-C6LYppym.js → ManageTransferInstrumentComponent-CgUfGP5E.js} +16 -13
- package/dist/{Spacer-w89ksCbG.js → MaskedInput-Cn0VAuEp.js} +17 -631
- package/dist/{MaybeModal-DW5SxNsJ.js → MaybeModal-CWCEHeOg.js} +3 -3
- package/dist/{Modal-B4wxf7HK.js → Modal-pyBUluei.js} +2 -2
- package/dist/OnboardingDropinComponent-DwKImil4.js +2306 -0
- package/dist/{PayoutDetailsDropin-BKXxBApD.js → PayoutDetailsDropin-lYVb5WCQ.js} +105 -76
- package/dist/Radio-BMtxBpnn.js +39 -0
- package/dist/RadioGroup-DPc8nUuk.js +98 -0
- package/dist/RadioGroupCard-Pj9qq4uW.js +150 -0
- package/dist/{Review-DSdM3vGX.js → Review-gkTjl3a8.js} +7 -7
- package/dist/{RootBusinessDetailsPage-CqpiMFn9.js → RootBusinessDetailsPage-DjwEzuLA.js} +5 -5
- package/dist/{RootBusinessLinesPage-DUIp_zfH.js → RootBusinessLinesPage-2-U3mf6i.js} +104 -50
- package/dist/{RootIndividualDetailsPage-BpTbnRMJ.js → RootIndividualDetailsPage-BFYP63_i.js} +6 -6
- package/dist/{useForm-_Kjd_HFb.js → Select-D1rFT3T8.js} +10 -775
- package/dist/{SignPCIComponent-B-nJZ1cD.js → SignPCIComponent-DqElmjjG.js} +13 -11
- package/dist/{SingpassSelection-D7wRmaLb.js → SingpassSelection-eruroIiQ.js} +9 -7
- package/dist/{SoleProprietorshipPage-DUVjo6fc.js → SoleProprietorshipPage-7YdzA7iH.js} +4 -4
- package/dist/{SourceOfFundsPage-CFDBqD8v.js → SourceOfFundsPage-C_wiSoc4.js} +39 -26
- package/dist/Spacer-BK3jDget.js +18 -0
- package/dist/{StepProgressIndicator-BvU4jA3I.js → StepProgressIndicator-DLoEzGro.js} +1 -1
- package/dist/{StoreProvider-CyzNf7KK.js → StoreProvider-D9IR5HNN.js} +331 -222
- package/dist/StructuredList-9dnJRdx_.js +61 -0
- package/dist/{Summary-QyNHKBjO.js → Summary-Bq94iVfc.js} +10 -5
- package/dist/{InputText-DLAmX8CW.js → TaskVerificationStatus-BLCkXEn6.js} +3 -123
- package/dist/TaxInformationField-c-ZWfhUk.js +3134 -0
- package/dist/{TaxReportingDropin-Bn2xYbVw.js → TaxReportingDropin-ajO0q4eZ.js} +20 -17
- package/dist/TextArea-D9eJloeE.js +103 -0
- package/dist/TileGroup-CaY3i_T7.js +203 -0
- package/dist/{TrustDetailsPage-D0sr6zMt.js → TrustDetailsPage-BWXZX4-u.js} +40 -27
- package/dist/{TrustMemberCompanyPage-4sIP-M16.js → TrustMemberCompanyPage-CJj2BpXu.js} +5 -5
- package/dist/{TrustMemberIndividualPage-CelIjIAw.js → TrustMemberIndividualPage-BXp9RXDw.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-C3CRy717.js → TrustMemberRoleAndTypePage-gYJ5U6RH.js} +24 -14
- package/dist/{TrustMembersOverview-HrRgAsno.js → TrustMembersOverview-Chmnt5jS.js} +13 -12
- package/dist/{UnincorporatedPartnershipIndividualPage-Dre5_Nuk.js → UnincorporatedPartnershipIndividualPage-DckUiPPY.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-woQiy94h.js → UnincorporatedPartnershipMemberCompanyPage-Bx0A5Bit.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DrirgJXY.js → UnincorporatedPartnershipMemberRoleAndTypePage-CEE1hzIn.js} +23 -16
- package/dist/{UnincorporatedPartnershipMembersOverview-BBiRqJkR.js → UnincorporatedPartnershipMembersOverview-wB8K9r6g.js} +10 -9
- package/dist/{VerificationErrorAlert-B_ovSmUS.js → VerificationErrorAlert-DZ5OOTBN.js} +4 -4
- package/dist/{ViewVerificationStatusComponent-CDQk4Nxa.js → ViewVerificationStatusComponent-BVY4YUJf.js} +4 -4
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-kyc-components.js +21 -20
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +3 -3
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{arrow-right-KxA3SvQj.js → arrow-right-BoqwUH_d.js} +2 -2
- package/dist/bafinUtils-Wct4TWLH.js +149 -0
- package/dist/{bag-BPumznWh.js → bag-BXVWLrwo.js} +2 -2
- package/dist/{bank-D6FiNBhs.js → bank-1GvaHPAZ.js} +2 -2
- package/dist/{bin-Bz6KOIeE.js → bin-Ba-3ll8T.js} +2 -2
- package/dist/{business-lines-DboUCbXw.js → business-lines-BAqTbnBw.js} +2 -2
- package/dist/{capital-GVQ3svwN.js → capital-9TKHySO7.js} +2 -2
- package/dist/{cash-stack-D9AoDDwt.js → cash-stack-DwYu4xNy.js} +2 -2
- package/dist/{certificate-CdEWgHQf.js → certificate-N2YFedpI.js} +2 -2
- package/dist/{checkmark-Q7x6tGhy.js → checkmark-D9dGhGpG.js} +2 -2
- package/dist/{checkmark-circle-x7dzbp3I.js → checkmark-circle-CFWClLQ6.js} +2 -2
- package/dist/{checkmark-circle-fill-CsvN5_PL.js → checkmark-circle-fill-DEB-tuGl.js} +2 -2
- package/dist/{checkmark-small-D35myntq.js → checkmark-small-D3VNx2lo.js} +2 -2
- package/dist/{chevron-down-C2iDorpW.js → chevron-down-C7SUSYfl.js} +2 -2
- package/dist/{chevron-left-ztPO84q-.js → chevron-left-BXmd-S46.js} +2 -2
- package/dist/{chevron-right-C_JN0oDt.js → chevron-right-jE6RwM2B.js} +2 -2
- package/dist/{chevron-up-CgG8n25g.js → chevron-up-BdfNcqzq.js} +2 -2
- package/dist/{circle-Bt3Nlr3q.js → circle-BJPTMCWB.js} +2 -2
- package/dist/{circle-small-filled-YMzP6yQU.js → circle-small-filled-BuO8Vg8j.js} +2 -2
- package/dist/{clock-BZHremOA.js → clock-DAzaBRWk.js} +2 -2
- package/dist/{coins-fkAk6dCo.js → coins-DYdzG5e_.js} +2 -2
- package/dist/commonValidators-DcFd5CHs.js +24 -0
- package/dist/{contract-BTa4HltT.js → contract-BfJb1t6M.js} +2 -2
- package/dist/{cross-Cn09MtQ_.js → cross-CDS_eot4.js} +2 -2
- package/dist/{cross-circle-fill-maan7Z5S.js → cross-circle-fill-C-EJ57Yn.js} +2 -2
- package/dist/{cross-circle-fill-small-DCz52AuN.js → cross-circle-fill-small-DkPjsuBH.js} +2 -2
- package/dist/currency-CrdnaaDu.js +35 -0
- package/dist/datasetUtil-BHQp0-xL.js +58 -0
- package/dist/debouncedInputEvent-Cv2S512Y.js +46 -0
- package/dist/{decision-makers-group-CgddXgrx.js → decision-makers-group-DrvpnEqj.js} +2 -2
- package/dist/{digital-wallet-D_IpxnkN.js → digital-wallet-Bx5YM1LY.js} +2 -2
- package/dist/{document-1-C08ut-Dt.js → document-1-qlSTF558.js} +2 -2
- package/dist/{document-blurred-2Zpodj3_.js → document-blurred-BiWap0xs.js} +2 -2
- package/dist/{document-cut-off-ClS7RiOp.js → document-cut-off-aQezqOif.js} +2 -2
- package/dist/{document-expired-CjksBq-N.js → document-expired-BhBXaWWQ.js} +2 -2
- package/dist/{document-front-DiAairT3.js → document-front-DYuhZGeQ.js} +2 -2
- package/dist/{document-person-vxlA6C5f.js → document-person-CDbnTOdV.js} +2 -2
- package/dist/{download-Drhk9k1f.js → download-BZQB1WkZ.js} +2 -2
- package/dist/{dropinUtils-DCWhMKpQ.js → dropinUtils-BpJn607e.js} +4 -4
- package/dist/{edit-1-CFoDTMvQ.js → edit-1-DAqtnOIx.js} +2 -2
- package/dist/{en-US-BzrLvydZ.js → en-US-CjjPhkB5.js} +2 -2
- package/dist/{external-link-DCMYUMfW.js → external-link-Cg6pJaSJ.js} +2 -2
- package/dist/fieldConfig-BPwb1GHc.js +134 -0
- package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
- package/dist/form-rules-DhbF2mY4.js +13 -0
- package/dist/formUtils-BlVlgetw.js +137 -0
- package/dist/{funds-in-D8bj0aoE.js → funds-in-CInoUdmG.js} +2 -2
- package/dist/{getName-l7X1ZGKx.js → getName-CzpJ9tV7.js} +2 -2
- package/dist/getProps-CLJfvUMb.js +156 -0
- package/dist/{gift-CQ_DEma7.js → gift-omNInZeB.js} +2 -2
- package/dist/{graph-BJmqglH2.js → graph-DunG_uu1.js} +2 -2
- package/dist/{graph-up-Bq6adtlX.js → graph-up-BZze4i6m.js} +2 -2
- package/dist/{hasDataChanged-BXawTZla.js → hasDataChanged-8e8x8zjz.js} +2 -2
- package/dist/{headquarter-DNYyuuFq.js → headquarter-BhpSibFO.js} +2 -2
- package/dist/{hotel-BuNql78Z.js → hotel-Cp7VgGCJ.js} +2 -2
- package/dist/{house-B6sNRj-B.js → house-BhyBQdR3.js} +2 -2
- package/dist/{id-blurred-9dzBOWCE.js → id-blurred-B5lHEP8M.js} +2 -2
- package/dist/{id-cut-off-CohJCI2h.js → id-cut-off-Ba1FRzKO.js} +2 -2
- package/dist/{id-front-CSZfvdRg.js → id-front-CpNWN6nG.js} +2 -2
- package/dist/{id-glare-Q2JWo5ts.js → id-glare-DgCQON8k.js} +2 -2
- package/dist/{id-verification-instant-BUVBO4R3.js → id-verification-instant-Byt4Oul6.js} +2 -2
- package/dist/{id-verification-manual-B3YZALYU.js → id-verification-manual-CvcTkOSY.js} +2 -2
- package/dist/{iframeWidget-CbtmWmoO.js → iframeWidget-D6BlBF0m.js} +4 -4
- package/dist/{image-BSihO8lR.js → image-CmB0ioUM.js} +2 -2
- package/dist/{info-vHTZWoJ7.js → info-Bb_-xIEK.js} +2 -2
- package/dist/{info-filled-SQotHmT9.js → info-filled-CK8LB339.js} +2 -2
- package/dist/{instant-verification-Dvvkyfmp.js → instant-verification-UrnuHTYn.js} +2 -2
- package/dist/isEmpty-CsYVgjoD.js +23 -0
- package/dist/japanSupportUtils-iATUjnbf.js +17 -0
- package/dist/jpAddressSchema-De6ix57p.js +28 -0
- package/dist/{localizeDateString-BX5t59Ip.js → localizeDateString-BHDr1NID.js} +2 -2
- package/dist/{location-Q4oKvnkl.js → location-itJfxrDQ.js} +2 -2
- package/dist/{mail-BOdyoVqB.js → mail-VHTlAusn.js} +2 -2
- package/dist/makeSelectItemForRole-Bm2NwBxD.js +133 -0
- package/dist/{manual-verification-BvZWqA00.js → manual-verification-BO8zgAYT.js} +2 -2
- package/dist/{mapExistingFile-Bd7nsoK8.js → mapExistingFile-DNBa6Ekj.js} +80 -5
- package/dist/mapJpAddressSchemaToAddressLocalizations-BNb8d51F.js +147 -0
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-CQF6zsO7.js → mapLegalEntityToIndividualOnfidoSchema-DREgz5Ms.js} +63 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-CacHlKHM.js → mapTransferInstrumentToPayoutAccount-C5NqOfNW.js} +2 -2
- package/dist/{minus-circle-filled-kC2IUvKz.js → minus-circle-filled-ZhtJ0GD3.js} +2 -2
- package/dist/{onfido-logo-BWSv__sQ.js → onfido-logo-BSkKPH10.js} +2 -2
- package/dist/{options-horizontal-CBmbNv7R.js → options-horizontal-GuXvLvV3.js} +2 -2
- package/dist/{partner-CPjsrePY.js → partner-QD27Vy4w.js} +2 -2
- package/dist/{passport-blurred-B4UDQfmc.js → passport-blurred-CVG493IJ.js} +2 -2
- package/dist/{passport-cut-off-C0N2mgLk.js → passport-cut-off-COzA_TmB.js} +2 -2
- package/dist/{passport-front-BwA7wR91.js → passport-front-WJleLixT.js} +2 -2
- package/dist/{passport-front-green-BL4HmtsB.js → passport-front-green-CZVkCa1n.js} +2 -2
- package/dist/{passport-glare-Mg2ixsYA.js → passport-glare-BP5WnJZj.js} +2 -2
- package/dist/patternValidators-BXduwLbz.js +83 -0
- package/dist/{pay-by-link-plane-BVZndh67.js → pay-by-link-plane-BpY8Q6-B.js} +2 -2
- package/dist/{payout-ChUEoLjt.js → payout-DtB68BcZ.js} +2 -2
- package/dist/{payout-verification-instant-5u-wvFKv.js → payout-verification-instant-BzpfOQLD.js} +2 -2
- package/dist/{payout-verification-manual-BH2mu0UW.js → payout-verification-manual-gNEoeZkV.js} +2 -2
- package/dist/{person-DGjUU4S4.js → person-IVZG3t3_.js} +2 -2
- package/dist/{plaid-logo-CtActXTN.js → plaid-logo-FsZ7kfL-.js} +2 -2
- package/dist/{plus-CWXA5wdX.js → plus-DiALAL8-.js} +2 -2
- package/dist/{plus-circle-filled-CbC0u2Y1.js → plus-circle-filled-BzHtTqEN.js} +2 -2
- package/dist/{process-field-configurations-BZQqH4-M.js → process-field-configurations-B26ehyAw.js} +3 -3
- package/dist/{recurring-CkL4cCM2.js → recurring-DKNs9K3x.js} +2 -2
- package/dist/{reporting-DerosUNm.js → reporting-D5ABpLO_.js} +2 -2
- package/dist/{resolveEnvironment-C6JtHmZc.js → resolveEnvironment-B5Yrsa4J.js} +3 -3
- package/dist/{revenue-accelerate-Dp4Ns_5c.js → revenue-accelerate-D7Sp0V4a.js} +2 -2
- package/dist/{review-CxIN9azU.js → review-D4TUjcWF.js} +2 -2
- package/dist/roleMetadata-DmgqzhZJ.js +66 -0
- package/dist/{rules-ClDW_ZSK.js → rules-B_6RrE9T.js} +6 -5
- package/dist/{save-Fgy7EDid.js → save-BfqO2JBI.js} +2 -2
- package/dist/{search-C4GZ-Rc1.js → search-Cmzbf5zI.js} +2 -2
- package/dist/{show-yPjPmEf8.js → show-IdbU1C6P.js} +2 -2
- package/dist/{singpass-logo-BkMSwiGY.js → singpass-logo-wY4xsmTX.js} +2 -2
- package/dist/{singpass-verification-instant-hY4eGFwl.js → singpass-verification-instant-JCqTr7Mv.js} +2 -2
- package/dist/{singpass-verification-manual-DwhRpy5Q.js → singpass-verification-manual-DQ7XW6R3.js} +2 -2
- package/dist/{solution-payments-CNAat9h7.js → solution-payments-DpyE_sdS.js} +2 -2
- package/dist/{store-IuAkDRAp.js → store-Btc4GcmU.js} +2 -2
- package/dist/style.css +965 -993
- package/dist/styles-CLV89_hH.js +965 -993
- package/dist/summaryItem-CAQCQSkt.js +18 -0
- package/dist/{tax-reporting-graph-DjzwRgE6.js → tax-reporting-graph-hgoilCHZ.js} +2 -2
- package/dist/{terminal-1-_me9J9h0.js → terminal-1-D1pwXCoi.js} +2 -2
- package/dist/{tink-logo-BcIv93ND.js → tink-logo-DDyjz5eJ.js} +2 -2
- package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +1 -1
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +1 -1
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +1 -1
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +1 -1
- package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +1 -1
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +1 -1
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +1 -1
- package/dist/types/api/documents/useCreateDocument.d.ts +1 -1
- package/dist/types/api/documents/useDeleteDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocument.d.ts +1 -1
- package/dist/types/api/documents/useUpdateDocument.d.ts +1 -1
- package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +1 -1
- package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +1 -1
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +1 -1
- package/dist/types/api/legalEntity/useConfirmReview.d.ts +1 -1
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +1 -1
- package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +1 -1
- package/dist/types/api/pci/useSignPci.d.ts +1 -2
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
- package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +1 -1
- package/dist/types/api/types.d.ts +2 -1
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +1 -1
- package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +1 -1
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +0 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +439 -439
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
- package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +2 -0
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -0
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +0 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +4 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +475 -475
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +1 -2
- package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +41 -3
- package/dist/types/components/Individual/forms/Individual/form-ids.d.ts +2 -0
- package/dist/types/components/Individual/forms/Individual/types.d.ts +1 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +1 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/form-ids.d.ts +2 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/copy.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +1 -0
- package/dist/types/language/types.d.ts +7 -2
- package/dist/types/language/utils.d.ts +1 -2
- package/dist/types/types/assert.d.ts +1 -0
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -0
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +28 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +13 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/formUtils.d.ts +1 -2
- package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -2
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
- package/dist/types/utils/translation.d.ts +3 -2
- package/dist/{types-DDnAZYTj.js → types-C6ntGMCy.js} +3 -26
- package/dist/{types-DE1uuPfP.js → types-CpAtsPmJ.js} +1 -1
- package/dist/{types-hGeLq0SR.js → types-c9nG7Dev.js} +1 -1
- package/dist/unincorporated-partnership-MeN1dp53.js +97 -0
- package/dist/{upload-BF65P4KM.js → upload-BmUXjsaU.js} +2 -2
- package/dist/{us-check-CYY6Crhr.js → us-check-C1rTBsCY.js} +2 -2
- package/dist/{us-check-account-number-C7KE5YzX.js → us-check-account-number-9lI1dXNC.js} +2 -2
- package/dist/{us-check-routing-number-DUbhsYAR.js → us-check-routing-number-s_KaAGSM.js} +2 -2
- package/dist/{useAssociatedLegalEntity-D_Nk_obe.js → useAssociatedLegalEntity-ahBb64MW.js} +2 -2
- package/dist/useBusinessDetailsData-qQ2HRnKK.js +5161 -0
- package/dist/{useCreateLegalEntity-DT7ue23d.js → useCreateLegalEntity-Kc8_ZlAe.js} +2 -2
- package/dist/useDataset-DfKmlbQd.js +74 -0
- package/dist/useForm-9uKM-XKf.js +582 -0
- package/dist/{FormFlow-BrgeP70A.js → useFormContext-CvQfKDA3.js} +26 -31
- package/dist/{useGlobalData-C7tjZfC0.js → useGlobalData-BVQ2OrIi.js} +3 -3
- package/dist/useId-BZ0PA7jP.js +24 -0
- package/dist/{useMultiForm-DWozxGN4.js → useMultiForm-pAiPIh7X.js} +4 -4
- package/dist/{useOnboardingStatus-DBLS6PUq.js → useOnboardingStatus-BhDBSLB6.js} +1 -1
- package/dist/{useScenarios-DD06bWNN.js → useScenarios-DFW21Vhf.js} +2 -2
- package/dist/{useTermsOfServiceStatus-D2lYSqHn.js → useTermsOfServiceStatus-BnO0rXiL.js} +1 -1
- package/dist/{useToastContext-Cbw29cqc.js → useToastContext-D6Lbxqj9.js} +5 -17
- package/dist/{useUnincorporatedPartnershipMembers-Dbb2VjkF.js → useUnincorporatedPartnershipMembers-CIC7xPbD.js} +5 -5
- package/dist/useUpdateBusinessLines-WlwUOtSU.js +337 -0
- package/dist/{useUpdateLegalEntity-Aubxhgvv.js → useUpdateLegalEntity-CStkUt4I.js} +3 -3
- package/dist/utils-7_xBiPO_.js +58 -0
- package/dist/utils-BmxzrkCX.js +165 -0
- package/dist/{utils-D1-D6fui.js → utils-CB39nVjj.js} +6 -6
- package/dist/{utils-DenrGsUh.js → utils-CDAwsXQa.js} +4 -4
- package/dist/utils-DOiFhaKn.js +29 -0
- package/dist/{documentUtils-Be5wlCwo.js → validate-Bsx2oHT1.js} +170 -6
- package/dist/{validate-BxVes1el.js → validate-D-l23QLG.js} +2 -2
- package/dist/validate-D4iK6FUk.js +385 -0
- package/dist/{validationError-DPP91cM3.js → validationError-DYYlX-5X.js} +2 -2
- package/dist/{warning-circle-fill-CEN1WL7A.js → warning-circle-fill-DBvt921B.js} +2 -2
- package/dist/{warning-diamond-filled-BfXMlVrG.js → warning-diamond-filled-Lb2od2ry.js} +2 -2
- package/dist/{webinar-DqjqrNEv.js → webinar-m9nuFZBt.js} +2 -2
- package/dist/{yapily-logo-CZ4ywjwA.js → yapily-logo-BduxhNRA.js} +2 -2
- package/package.json +6 -6
- package/dist/ConstitutionalDocument-DM6M40MP.js +0 -143
- package/dist/CountryField-CsKJAI53.js +0 -843
- package/dist/IndividualOnfidoDropin-DZEn2Tf8.js +0 -2575
- package/dist/OnboardingDropinComponent-Cx-c_p0i.js +0 -7623
- package/dist/getFieldsWithExistingData-CfckMyJ1.js +0 -22
- package/dist/mapFinancialReportsToFinancialInformation-Bfvt2G87.js +0 -67
- package/dist/mapJpAddressSchemaToAddressLocalizations-CWY2lZGD.js +0 -63
- package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
- package/dist/useBusinessDetailsData-DG9EJBH_.js +0 -2441
- package/dist/useDataset-DCCxYOjr.js +0 -220
- package/dist/useUpdateBusinessLines-8bDYsLav.js +0 -46
- package/dist/validate-BgMFLdKI.js +0 -41
|
@@ -2,41 +2,18 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cdd73033-b459-4f44-b16a-804a9b608463", e._sentryDebugIdIdentifier = "sentry-dbid-cdd73033-b459-4f44-b16a-804a9b608463");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import {
|
|
11
|
-
import { c as useLegalEntity, R as ROOT_LE, X as useExperimentsContext, aA as getCapabilityProblems, g as getLegalEntityCountry, aB as cloneObject, C as CountryCodes, aC as hasText, aD as isValidMinLength, aE as matchesRegex, W as isEmpty, aF as NO_ALPHABET_REGEX, aG as EMOJI_REGEX, aH as hasRepeatedCharacters, aI as isInvalidName, aJ as OTHER_ENTITIES_VALID_CHAR_REGEX, aK as LATIN_SPACE_MARK_PUNCTUATION_REGEX, aL as standardKatakanaValidator, aM as standardKanjiValidator, a3 as useAnalyticsContext, P as createLogger, u as useTranslation, az as StateContext, L as Loader, a4 as Icon, G as Typography, Y as IconButton } from "./StoreProvider-CyzNf7KK.js";
|
|
10
|
+
import { ak as cloneObject, as as isEmpty, u as useTranslation, W as Icon } from "./StoreProvider-D9IR5HNN.js";
|
|
12
11
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { R as Radio } from "./CountryField-CsKJAI53.js";
|
|
19
|
-
import { F as Field } from "./useForm-_Kjd_HFb.js";
|
|
20
|
-
import { K as KEYBOARD_KEYS } from "./Modal-B4wxf7HK.js";
|
|
21
|
-
import { u as useForwardedRef, a as InputBase, I as InputText } from "./InputText-DLAmX8CW.js";
|
|
22
|
-
const useCapabilityProblems = () => {
|
|
23
|
-
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
24
|
-
const { isExperimentEnabled } = useExperimentsContext();
|
|
25
|
-
const problems = useMemo(
|
|
26
|
-
() => rootLegalEntity ? getCapabilityProblems(
|
|
27
|
-
rootLegalEntity,
|
|
28
|
-
getLegalEntityCountry(rootLegalEntity),
|
|
29
|
-
isExperimentEnabled
|
|
30
|
-
) : void 0,
|
|
31
|
-
[rootLegalEntity, isExperimentEnabled]
|
|
32
|
-
);
|
|
33
|
-
return problems;
|
|
34
|
-
};
|
|
35
|
-
const getProblemsForEntity = (capabilityProblems, entityType, entityId) => capabilityProblems[entityType]?.[entityId];
|
|
36
|
-
const TrustedFieldsProviders = {
|
|
37
|
-
SINGPASS: "singpass",
|
|
38
|
-
KOMPANY: "kompany"
|
|
39
|
-
};
|
|
12
|
+
import { useState, useCallback, useLayoutEffect, useRef, useEffect, useMemo } from "preact/hooks";
|
|
13
|
+
import { F as Field } from "./Field-B3Vy1-QZ.js";
|
|
14
|
+
import { K as KEYBOARD_KEYS } from "./Modal-pyBUluei.js";
|
|
15
|
+
import { forwardRef } from "preact/compat";
|
|
16
|
+
import { u as useForwardedRef, a as InputBase, I as InputText } from "./InputText-DGKAS6ZI.js";
|
|
40
17
|
const makeArrayOfRepeatedObjects = (length, obj) => {
|
|
41
18
|
const array = [];
|
|
42
19
|
for (let i = 0; i < length; i += 1) {
|
|
@@ -151,7 +128,7 @@ const nonInputs = (str, options) => Array.from(str).map((char) => ({
|
|
|
151
128
|
includeInValue: options?.includeInValue ?? false,
|
|
152
129
|
displayEagerly: options?.displayEagerly ?? true
|
|
153
130
|
}));
|
|
154
|
-
const spacer
|
|
131
|
+
const spacer = nonInputs(" ")[0];
|
|
155
132
|
const alphaInputs = (length, optional = false) => makeArrayOfRepeatedObjects(length, { type: "input", allow: /[A-Za-z]/, optional });
|
|
156
133
|
const numericInputs = (length, optional = false) => makeArrayOfRepeatedObjects(length, { type: "input", allow: /\d/, optional });
|
|
157
134
|
const alphanumericInputs = (length, optional = false) => makeArrayOfRepeatedObjects(length, { type: "input", allow: /[\dA-Za-z]/, optional });
|
|
@@ -160,557 +137,7 @@ const makeMask = (...tokens) => ({
|
|
|
160
137
|
tokens,
|
|
161
138
|
possibleShifts: findPossibleShifts(tokens)
|
|
162
139
|
});
|
|
163
|
-
const isExistingFile = (file) => "existing" in file && file.existing;
|
|
164
|
-
const isNewlyUploadedFile = (file) => !isExistingFile(file);
|
|
165
|
-
function getLocalizedIdDocumentTypeOptions(country) {
|
|
166
|
-
switch (country) {
|
|
167
|
-
case CountryCodes.Japan:
|
|
168
|
-
return [
|
|
169
|
-
{ id: "driversLicense", name: "driversLicense", hasBackPage: true },
|
|
170
|
-
{ id: "passport", name: "passport", hasBackPage: false },
|
|
171
|
-
{ id: "identityCard", name: "identityCard__JP", hasBackPage: true }
|
|
172
|
-
];
|
|
173
|
-
default:
|
|
174
|
-
return [
|
|
175
|
-
{ id: "driversLicense", name: "driversLicense", hasBackPage: true },
|
|
176
|
-
{ id: "passport", name: "passport", hasBackPage: false },
|
|
177
|
-
{ id: "identityCard", name: "identityCard", hasBackPage: true }
|
|
178
|
-
];
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
140
|
const isValueObscured = (value) => typeof value === "string" && !!value.match(/[*]{1,}/)?.length;
|
|
182
|
-
const uppercase = (str) => str?.toUpperCase() ?? str;
|
|
183
|
-
const validateNotEmptyOnBlur = {
|
|
184
|
-
modes: ["blur"],
|
|
185
|
-
validate: (val) => !isEmpty(val),
|
|
186
|
-
errorMessage: "fieldIsRequired"
|
|
187
|
-
};
|
|
188
|
-
const validateLegalCompanyName = [
|
|
189
|
-
{
|
|
190
|
-
modes: ["blur"],
|
|
191
|
-
validate: hasText,
|
|
192
|
-
errorMessage: "fieldIsRequired"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
modes: ["blur"],
|
|
196
|
-
validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
|
|
197
|
-
errorMessage: "nameMustContainLetters"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
modes: ["blur"],
|
|
201
|
-
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
202
|
-
errorMessage: "checkForTypos"
|
|
203
|
-
}
|
|
204
|
-
];
|
|
205
|
-
const validateJaHaniLegalCompanyName = [
|
|
206
|
-
{
|
|
207
|
-
modes: ["blur"],
|
|
208
|
-
validate: hasText,
|
|
209
|
-
errorMessage: "fieldIsRequired"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
modes: ["blur"],
|
|
213
|
-
validate: (input) => standardKanjiValidator(input),
|
|
214
|
-
errorMessage: "nameMustContainLetters"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
modes: ["blur"],
|
|
218
|
-
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
219
|
-
errorMessage: "checkForTypos"
|
|
220
|
-
}
|
|
221
|
-
];
|
|
222
|
-
const validateJaKanaLegalCompanyName = [
|
|
223
|
-
{
|
|
224
|
-
modes: ["blur"],
|
|
225
|
-
validate: hasText,
|
|
226
|
-
errorMessage: "fieldIsRequired"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
modes: ["blur"],
|
|
230
|
-
validate: (input) => standardKatakanaValidator(input),
|
|
231
|
-
errorMessage: "nameMustContainLetters"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
modes: ["blur"],
|
|
235
|
-
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
236
|
-
errorMessage: "checkForTypos"
|
|
237
|
-
}
|
|
238
|
-
];
|
|
239
|
-
const validateLatinSpaceMarkPunctuationOnlyOnBlur = {
|
|
240
|
-
modes: ["blur"],
|
|
241
|
-
validate: (input) => matchesRegex(LATIN_SPACE_MARK_PUNCTUATION_REGEX, input),
|
|
242
|
-
errorMessage: "kanjiAndKanaCharactersAreNotAllowed"
|
|
243
|
-
};
|
|
244
|
-
const validatePatternOnBlur = (pattern) => ({
|
|
245
|
-
modes: ["blur"],
|
|
246
|
-
validate: (val) => !!val && pattern.test(val)
|
|
247
|
-
});
|
|
248
|
-
function ContextGuidance({
|
|
249
|
-
title,
|
|
250
|
-
content,
|
|
251
|
-
titleId,
|
|
252
|
-
contentId,
|
|
253
|
-
trackingParams
|
|
254
|
-
}) {
|
|
255
|
-
const userEvents = useAnalyticsContext();
|
|
256
|
-
const onGuidanceToggle = (status) => {
|
|
257
|
-
userEvents.addFieldEvent("Clicked accordion", {
|
|
258
|
-
actionType: status,
|
|
259
|
-
field: "context guidance",
|
|
260
|
-
label: titleId,
|
|
261
|
-
content: contentId,
|
|
262
|
-
...trackingParams
|
|
263
|
-
});
|
|
264
|
-
};
|
|
265
|
-
return /* @__PURE__ */ jsx(Alert, { title, type: "collapsible", variant: "info", onToggle: onGuidanceToggle, children: content });
|
|
266
|
-
}
|
|
267
|
-
const convertFullToHalf = (str) => str.replace(/[!-~]/g, (r) => String.fromCharCode(r.charCodeAt(0) - 65248));
|
|
268
|
-
const logger = createLogger();
|
|
269
|
-
function TextArea(props) {
|
|
270
|
-
const {
|
|
271
|
-
autoCorrect,
|
|
272
|
-
isInvalid,
|
|
273
|
-
isValid,
|
|
274
|
-
readonly = null,
|
|
275
|
-
spellCheck,
|
|
276
|
-
disabled,
|
|
277
|
-
maxLength,
|
|
278
|
-
className,
|
|
279
|
-
trimOnBlur,
|
|
280
|
-
enableTracking = false,
|
|
281
|
-
name,
|
|
282
|
-
"aria-describedby": ariaDescribedBy,
|
|
283
|
-
"aria-invalid": ariaInvalid,
|
|
284
|
-
"aria-labelledby": ariaLabelledBy
|
|
285
|
-
} = props;
|
|
286
|
-
const { t } = useTranslation("ui");
|
|
287
|
-
const userEvents = useAnalyticsContext();
|
|
288
|
-
const [value, setValue] = useState("");
|
|
289
|
-
if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
|
|
290
|
-
logger.error("Error: Form fields that rely on InputBase may not have an onChange property");
|
|
291
|
-
}
|
|
292
|
-
const handleInput = (e) => {
|
|
293
|
-
if (enableTracking) {
|
|
294
|
-
debouncedInputEvent(userEvents, {
|
|
295
|
-
actionType: "input",
|
|
296
|
-
field: name
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
e.currentTarget.value = convertFullToHalf(e.currentTarget.value);
|
|
300
|
-
setValue(e.currentTarget.value);
|
|
301
|
-
props?.onInput?.(e);
|
|
302
|
-
};
|
|
303
|
-
const handleBlur = (e) => {
|
|
304
|
-
if (enableTracking) {
|
|
305
|
-
userEvents.addFieldEvent("Interacted with form field", {
|
|
306
|
-
actionType: "blur",
|
|
307
|
-
field: name
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
props?.onBlurHandler?.(e);
|
|
311
|
-
if (trimOnBlur) {
|
|
312
|
-
e.currentTarget.value = e.currentTarget.value.trim();
|
|
313
|
-
}
|
|
314
|
-
props?.onBlur?.(e);
|
|
315
|
-
};
|
|
316
|
-
const handleFocus = (e) => {
|
|
317
|
-
if (enableTracking) {
|
|
318
|
-
userEvents.addFieldEvent("Interacted with form field", {
|
|
319
|
-
actionType: "focus",
|
|
320
|
-
field: name
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
props?.onFocusHandler?.(e);
|
|
324
|
-
};
|
|
325
|
-
const inputClassNames = cx("adyen-kyc-input", "adyen-kyc-input--textarea", className, {
|
|
326
|
-
"adyen-kyc-input--invalid": isInvalid,
|
|
327
|
-
"adyen-kyc-field--valid": isValid,
|
|
328
|
-
"adyen-kyc-input--disabled": disabled
|
|
329
|
-
});
|
|
330
|
-
const charactersLeft = maxLength - value.length;
|
|
331
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
332
|
-
/* @__PURE__ */ jsx(
|
|
333
|
-
"textarea",
|
|
334
|
-
{
|
|
335
|
-
...props,
|
|
336
|
-
className: inputClassNames,
|
|
337
|
-
readOnly: readonly,
|
|
338
|
-
spellCheck,
|
|
339
|
-
autoCorrect,
|
|
340
|
-
"aria-describedby": ariaDescribedBy,
|
|
341
|
-
"aria-invalid": ariaInvalid,
|
|
342
|
-
"aria-labelledby": ariaLabelledBy,
|
|
343
|
-
...disabled && { "aria-disabled": true },
|
|
344
|
-
onInput: handleInput,
|
|
345
|
-
onBlur: handleBlur,
|
|
346
|
-
onFocus: handleFocus
|
|
347
|
-
}
|
|
348
|
-
),
|
|
349
|
-
!isInvalid && maxLength && charactersLeft >= 0 ? /* @__PURE__ */ jsx("span", { className: "adyen-kyc-input__counter", children: t(($) => $["xCharactersLeft"], { charactersLeft }) }) : null
|
|
350
|
-
] });
|
|
351
|
-
}
|
|
352
|
-
function StateContextSetter({ stateRef }) {
|
|
353
|
-
if (stateRef.current.setState) {
|
|
354
|
-
return null;
|
|
355
|
-
}
|
|
356
|
-
return /* @__PURE__ */ jsx(StateContext.Consumer, { children: (stateContextValue) => {
|
|
357
|
-
const { dispatch, setActiveForms } = stateContextValue;
|
|
358
|
-
stateRef.current.setState = dispatch;
|
|
359
|
-
stateRef.current.setActiveForms = setActiveForms;
|
|
360
|
-
return null;
|
|
361
|
-
} });
|
|
362
|
-
}
|
|
363
|
-
const Image = ({
|
|
364
|
-
lazyLoadedImage,
|
|
365
|
-
className
|
|
366
|
-
}) => {
|
|
367
|
-
const LazyLoadedImageComponent = lazyLoadedImage;
|
|
368
|
-
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(LazyLoadedImageComponent, { className, "aria-hidden": true }) });
|
|
369
|
-
};
|
|
370
|
-
const getDocumentGuidancePrefix = (documentType) => {
|
|
371
|
-
switch (documentType) {
|
|
372
|
-
case "passport":
|
|
373
|
-
return "passport";
|
|
374
|
-
case "driversLicense":
|
|
375
|
-
case "identityCard":
|
|
376
|
-
return "id";
|
|
377
|
-
case "bankStatement":
|
|
378
|
-
case "vatDocument":
|
|
379
|
-
case "registrationDocument":
|
|
380
|
-
case "proofOfAddress":
|
|
381
|
-
case "proofOfResidency":
|
|
382
|
-
default:
|
|
383
|
-
return "document";
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
|
-
const documentBlurredImage = lazy(() => import("./document-blurred-2Zpodj3_.js"));
|
|
387
|
-
const documentCutOffImage = lazy(() => import("./document-cut-off-ClS7RiOp.js"));
|
|
388
|
-
const documentExpiredImage = lazy(() => import("./document-expired-CjksBq-N.js"));
|
|
389
|
-
const documentFrontImage = lazy(() => import("./document-front-DiAairT3.js"));
|
|
390
|
-
const idBlurredImage = lazy(() => import("./id-blurred-9dzBOWCE.js"));
|
|
391
|
-
const idCutOffImage = lazy(() => import("./id-cut-off-CohJCI2h.js"));
|
|
392
|
-
const idFrontImage = lazy(() => import("./id-front-CSZfvdRg.js"));
|
|
393
|
-
const idGlareImage = lazy(() => import("./id-glare-Q2JWo5ts.js"));
|
|
394
|
-
const passportBlurredImage = lazy(() => import("./passport-blurred-B4UDQfmc.js"));
|
|
395
|
-
const passportCutOffImage = lazy(() => import("./passport-cut-off-C0N2mgLk.js"));
|
|
396
|
-
const passportFrontImage = lazy(() => import("./passport-front-BwA7wR91.js"));
|
|
397
|
-
const passportGlareImage = lazy(() => import("./passport-glare-Mg2ixsYA.js"));
|
|
398
|
-
const documentMap = {
|
|
399
|
-
"document-blurred": documentBlurredImage,
|
|
400
|
-
"document-cutoff": documentCutOffImage,
|
|
401
|
-
"document-expired": documentExpiredImage,
|
|
402
|
-
"document-front": documentFrontImage,
|
|
403
|
-
"id-blurred": idBlurredImage,
|
|
404
|
-
"id-cutoff": idCutOffImage,
|
|
405
|
-
"id-front": idFrontImage,
|
|
406
|
-
"id-glare": idGlareImage,
|
|
407
|
-
"passport-blurred": passportBlurredImage,
|
|
408
|
-
"passport-cutoff": passportCutOffImage,
|
|
409
|
-
"passport-front": passportFrontImage,
|
|
410
|
-
"passport-glare": passportGlareImage
|
|
411
|
-
};
|
|
412
|
-
function DocumentGuidance({ type, className }) {
|
|
413
|
-
const { t } = useTranslation("ui");
|
|
414
|
-
const documentGuidanceItems = useMemo(() => {
|
|
415
|
-
const guidancePrefix = getDocumentGuidancePrefix(type);
|
|
416
|
-
const guidanceItems = [
|
|
417
|
-
{ svgName: `${guidancePrefix}-front`, translationKey: "good", valid: true },
|
|
418
|
-
{ svgName: `${guidancePrefix}-cutoff`, translationKey: "notCutOff" },
|
|
419
|
-
{ svgName: `${guidancePrefix}-blurred`, translationKey: "notBlurry" },
|
|
420
|
-
guidancePrefix === "document" ? { svgName: `document-expired`, translationKey: "notExpired" } : { svgName: `${guidancePrefix}-glare`, translationKey: "noGlare" }
|
|
421
|
-
];
|
|
422
|
-
return type === "constitutionalDocument" ? guidanceItems.filter((item) => item.svgName !== "document-expired") : guidanceItems;
|
|
423
|
-
}, [type]);
|
|
424
|
-
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: [
|
|
425
|
-
/* @__PURE__ */ jsx(Image, { lazyLoadedImage: documentMap[item.svgName] }),
|
|
426
|
-
/* @__PURE__ */ jsxs("figcaption", { className: "adyen-kyc-document-guidance__description", children: [
|
|
427
|
-
item.valid ? /* @__PURE__ */ jsx(Icon, { name: "check", className: "adyen-kyc-document-guidance__icon" }) : /* @__PURE__ */ jsx(
|
|
428
|
-
Icon,
|
|
429
|
-
{
|
|
430
|
-
name: "cross",
|
|
431
|
-
className: "adyen-kyc-document-guidance__icon adyen-kyc-document-guidance__icon--invalid"
|
|
432
|
-
}
|
|
433
|
-
),
|
|
434
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-document-guidance__description-text", children: t(($) => $[item.translationKey]) })
|
|
435
|
-
] })
|
|
436
|
-
] }, item.translationKey)) }) });
|
|
437
|
-
}
|
|
438
|
-
function bytesToSize(bytes) {
|
|
439
|
-
const sizes = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
440
|
-
if (bytes === 0) return "n/a";
|
|
441
|
-
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)).toString());
|
|
442
|
-
if (i === 0) return `${bytes} ${sizes[i]}`;
|
|
443
|
-
return `${(bytes / 1024 ** i).toFixed()} ${sizes[i]}`;
|
|
444
|
-
}
|
|
445
|
-
function DropzoneFile(props) {
|
|
446
|
-
const { file, errorMessage, onDelete, loading } = props;
|
|
447
|
-
const { t } = useTranslation("common");
|
|
448
|
-
const userEvents = useAnalyticsContext();
|
|
449
|
-
let documentIcon;
|
|
450
|
-
const formatSize = (bytes) => {
|
|
451
|
-
const sizes = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
452
|
-
if (!bytes || bytes === 0) return "n/a";
|
|
453
|
-
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)).toString());
|
|
454
|
-
if (i === 0) return `${bytes} ${sizes[i]}`;
|
|
455
|
-
return `${(bytes / 1024 ** i).toFixed(1)} ${sizes[i]}`;
|
|
456
|
-
};
|
|
457
|
-
switch (file.type?.split("/")[0]) {
|
|
458
|
-
case "image":
|
|
459
|
-
documentIcon = "image";
|
|
460
|
-
break;
|
|
461
|
-
default:
|
|
462
|
-
documentIcon = "document";
|
|
463
|
-
}
|
|
464
|
-
useEffect(() => {
|
|
465
|
-
if (!errorMessage) return;
|
|
466
|
-
userEvents.addFieldEvent("Encountered error", {
|
|
467
|
-
actionType: "change",
|
|
468
|
-
field: "dropzone file",
|
|
469
|
-
returnType: "validation",
|
|
470
|
-
returnValue: errorMessage
|
|
471
|
-
});
|
|
472
|
-
}, [errorMessage, userEvents]);
|
|
473
|
-
return /* @__PURE__ */ jsxs(
|
|
474
|
-
"div",
|
|
475
|
-
{
|
|
476
|
-
className: cx("adyen-kyc-dropzone-file", { "adyen-kyc-dropzone-file--error": errorMessage }),
|
|
477
|
-
children: [
|
|
478
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropzone-file__details", children: [
|
|
479
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropzone-file__labels", children: [
|
|
480
|
-
errorMessage ? /* @__PURE__ */ jsx(
|
|
481
|
-
Icon,
|
|
482
|
-
{
|
|
483
|
-
testId: "document-invalid",
|
|
484
|
-
name: "warning",
|
|
485
|
-
className: "adyen-kyc-dropzone-file__icon"
|
|
486
|
-
}
|
|
487
|
-
) : /* @__PURE__ */ jsx(
|
|
488
|
-
Icon,
|
|
489
|
-
{
|
|
490
|
-
testId: "document-valid",
|
|
491
|
-
name: documentIcon,
|
|
492
|
-
className: "adyen-kyc-dropzone-file__icon"
|
|
493
|
-
}
|
|
494
|
-
),
|
|
495
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body-stronger", className: "adyen-kyc-dropzone-file__name", children: file.name }),
|
|
496
|
-
/* @__PURE__ */ jsx(Typography, { className: "adyen-kyc-dropzone-file__size", children: isNewlyUploadedFile(file) && formatSize(file.size) })
|
|
497
|
-
] }),
|
|
498
|
-
errorMessage && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropzone-file__error", children: t(($) => $[errorMessage]) })
|
|
499
|
-
] }),
|
|
500
|
-
loading ? /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropzone-file__loading", children: /* @__PURE__ */ jsx(Loader, { size: "medium" }) }) : errorMessage ? /* @__PURE__ */ jsx(
|
|
501
|
-
IconButton,
|
|
502
|
-
{
|
|
503
|
-
ariaLabel: t(($) => $["close"]),
|
|
504
|
-
icon: "cross",
|
|
505
|
-
variant: "tertiary",
|
|
506
|
-
onClick: onDelete
|
|
507
|
-
}
|
|
508
|
-
) : /* @__PURE__ */ jsx(
|
|
509
|
-
IconButton,
|
|
510
|
-
{
|
|
511
|
-
ariaLabel: t(($) => $["deleteDocument"]),
|
|
512
|
-
icon: "bin",
|
|
513
|
-
variant: "tertiary",
|
|
514
|
-
onClick: onDelete
|
|
515
|
-
}
|
|
516
|
-
)
|
|
517
|
-
]
|
|
518
|
-
}
|
|
519
|
-
);
|
|
520
|
-
}
|
|
521
|
-
const hasDuplicates = (arr) => arr.some((item, currIndex) => arr.indexOf(item) !== currIndex);
|
|
522
|
-
const defaultFileValidationOptions = {
|
|
523
|
-
allowedFileTypes: ["JPG", "JPEG", "PNG", "PDF"],
|
|
524
|
-
maxNumberOfFiles: 1,
|
|
525
|
-
maxSize: 4194304,
|
|
526
|
-
// 4MB by default
|
|
527
|
-
isOptional: false
|
|
528
|
-
};
|
|
529
|
-
const filterOnlyNewlyUploadedFiles = (files) => files.filter(isNewlyUploadedFile);
|
|
530
|
-
const fileValidationRules = ({
|
|
531
|
-
allowedFileTypes,
|
|
532
|
-
maxNumberOfFiles,
|
|
533
|
-
maxSize,
|
|
534
|
-
isOptional
|
|
535
|
-
}) => [
|
|
536
|
-
{
|
|
537
|
-
validate: (files) => {
|
|
538
|
-
if (isOptional && (!files || files.length === 0)) return true;
|
|
539
|
-
return Boolean(files && files.length > 0);
|
|
540
|
-
},
|
|
541
|
-
errorMessage: "fieldIsRequired",
|
|
542
|
-
modes: ["blur", "input"]
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
validate: (files) => {
|
|
546
|
-
if (!files) return true;
|
|
547
|
-
return files.length <= maxNumberOfFiles;
|
|
548
|
-
},
|
|
549
|
-
errorMessage: "tooManyFiles",
|
|
550
|
-
modes: ["blur", "input"]
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
validate: (files) => {
|
|
554
|
-
if (!files) return true;
|
|
555
|
-
return !hasDuplicates(files.map((file) => file.name));
|
|
556
|
-
},
|
|
557
|
-
errorMessage: "duplicatedFiles",
|
|
558
|
-
modes: ["blur", "input"]
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
validate: (files) => {
|
|
562
|
-
if (!files) return true;
|
|
563
|
-
return filterOnlyNewlyUploadedFiles(files).every(
|
|
564
|
-
(file) => allowedFileTypes.some(
|
|
565
|
-
(filetype) => file.name.toLowerCase().endsWith(filetype.toLowerCase())
|
|
566
|
-
)
|
|
567
|
-
);
|
|
568
|
-
},
|
|
569
|
-
errorMessage: "unsupportedFiletype",
|
|
570
|
-
modes: ["blur", "input"]
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
validate: (files) => {
|
|
574
|
-
if (!files) return true;
|
|
575
|
-
return filterOnlyNewlyUploadedFiles(files).every((file) => !file.size || file.size < maxSize);
|
|
576
|
-
},
|
|
577
|
-
errorMessage: "maximumFileSizeExceeded",
|
|
578
|
-
modes: ["blur", "input"]
|
|
579
|
-
}
|
|
580
|
-
];
|
|
581
|
-
const RadioCard = ({
|
|
582
|
-
optionId,
|
|
583
|
-
optionName,
|
|
584
|
-
optionDescription,
|
|
585
|
-
optionSubtitle,
|
|
586
|
-
name,
|
|
587
|
-
isInvalid,
|
|
588
|
-
isSelected,
|
|
589
|
-
onSelect,
|
|
590
|
-
classNames,
|
|
591
|
-
disabled,
|
|
592
|
-
loading,
|
|
593
|
-
icon,
|
|
594
|
-
body,
|
|
595
|
-
footer,
|
|
596
|
-
floatingRadio
|
|
597
|
-
}) => {
|
|
598
|
-
const id = useId("radio");
|
|
599
|
-
const elementIds = {
|
|
600
|
-
label: `${id}-label`,
|
|
601
|
-
description: `${id}-description`,
|
|
602
|
-
subtitle: `${id}-subtitle`
|
|
603
|
-
};
|
|
604
|
-
const ariaDescribedBy = `${optionSubtitle ? elementIds.subtitle : ""} ${optionDescription || body ? elementIds.description : ""}`.trim();
|
|
605
|
-
return /* @__PURE__ */ jsxs(
|
|
606
|
-
"label",
|
|
607
|
-
{
|
|
608
|
-
"data-testId": optionId,
|
|
609
|
-
className: cx([
|
|
610
|
-
"adyen-kyc-radio-card",
|
|
611
|
-
classNames?.label,
|
|
612
|
-
{ "adyen-kyc-radio-card--disabled": disabled }
|
|
613
|
-
]),
|
|
614
|
-
children: [
|
|
615
|
-
icon && /* @__PURE__ */ jsx("div", { className: cx("adyen-kyc-radio-card__icon", classNames?.icon), "aria-hidden": "true", children: icon }),
|
|
616
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-radio-card__content", children: [
|
|
617
|
-
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-radio-card__header adyen-kyc-u-display-flex adyen-kyc-u-align-items-center", children: /* @__PURE__ */ jsxs(
|
|
618
|
-
"div",
|
|
619
|
-
{
|
|
620
|
-
className: cx([
|
|
621
|
-
"adyen-kyc-radio-group-card__label",
|
|
622
|
-
classNames?.header,
|
|
623
|
-
{ "adyen-kyc-radio-group-card__label--invalid": isInvalid }
|
|
624
|
-
]),
|
|
625
|
-
children: [
|
|
626
|
-
optionSubtitle && /* @__PURE__ */ jsxs("div", { id: elementIds.subtitle, className: "adyen-kyc-radio-group-card__subtitle", children: [
|
|
627
|
-
optionSubtitle,
|
|
628
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-u-screen-reader-only", children: "." })
|
|
629
|
-
] }),
|
|
630
|
-
/* @__PURE__ */ jsx("span", { id: elementIds.label, children: optionName })
|
|
631
|
-
]
|
|
632
|
-
}
|
|
633
|
-
) }),
|
|
634
|
-
/* @__PURE__ */ jsx(
|
|
635
|
-
"div",
|
|
636
|
-
{
|
|
637
|
-
id: elementIds.description,
|
|
638
|
-
className: cx("adyen-kyc-radio-card__body", classNames?.body),
|
|
639
|
-
children: body ?? optionDescription
|
|
640
|
-
}
|
|
641
|
-
),
|
|
642
|
-
footer && /* @__PURE__ */ jsx("div", { className: cx("adyen-kyc-radio-card__footer", classNames?.footer), children: footer })
|
|
643
|
-
] }),
|
|
644
|
-
loading ? /* @__PURE__ */ jsx("span", { className: "adyen-kyc-radio-card__loading-icon", children: /* @__PURE__ */ jsx(Loader, { size: "small" }) }) : /* @__PURE__ */ jsx(
|
|
645
|
-
Radio,
|
|
646
|
-
{
|
|
647
|
-
id,
|
|
648
|
-
"aria-describedby": ariaDescribedBy,
|
|
649
|
-
"aria-labelledby": elementIds.label,
|
|
650
|
-
checked: isSelected,
|
|
651
|
-
groupName: name,
|
|
652
|
-
onClick: onSelect,
|
|
653
|
-
value: optionId,
|
|
654
|
-
disabled,
|
|
655
|
-
className: cx({ "adyen-kyc-radio-group-card__radio--floating": floatingRadio })
|
|
656
|
-
}
|
|
657
|
-
)
|
|
658
|
-
]
|
|
659
|
-
},
|
|
660
|
-
optionId
|
|
661
|
-
);
|
|
662
|
-
};
|
|
663
|
-
const RadioGroupCard = ({
|
|
664
|
-
options,
|
|
665
|
-
name,
|
|
666
|
-
onSelect,
|
|
667
|
-
selected,
|
|
668
|
-
isInvalid,
|
|
669
|
-
className,
|
|
670
|
-
optionId,
|
|
671
|
-
optionName,
|
|
672
|
-
optionDescription,
|
|
673
|
-
optionSubtitle,
|
|
674
|
-
optionClassNames,
|
|
675
|
-
renderOptionIcon,
|
|
676
|
-
renderOptionBody,
|
|
677
|
-
renderOptionFooter,
|
|
678
|
-
isOptionDisabled,
|
|
679
|
-
floatingRadio,
|
|
680
|
-
enableTracking = false
|
|
681
|
-
}) => {
|
|
682
|
-
const userEvents = useAnalyticsContext();
|
|
683
|
-
const handleSelect = (option) => {
|
|
684
|
-
if (enableTracking) {
|
|
685
|
-
userEvents.addFieldEvent("Interacted with form field", {
|
|
686
|
-
actionType: "input",
|
|
687
|
-
field: name,
|
|
688
|
-
returnValue: typeof option === "string" ? option : void 0
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
onSelect(option);
|
|
692
|
-
};
|
|
693
|
-
return /* @__PURE__ */ jsx("div", { className: className ?? "adyen-kyc-radio-group-card", children: options.map((option) => /* @__PURE__ */ jsx(
|
|
694
|
-
RadioCard,
|
|
695
|
-
{
|
|
696
|
-
optionId: optionId(option),
|
|
697
|
-
optionName: optionName(option),
|
|
698
|
-
optionDescription: optionDescription?.(option),
|
|
699
|
-
optionSubtitle: optionSubtitle?.(option),
|
|
700
|
-
isInvalid,
|
|
701
|
-
isSelected: selected === option,
|
|
702
|
-
onSelect: () => handleSelect(option),
|
|
703
|
-
name,
|
|
704
|
-
classNames: optionClassNames?.(option),
|
|
705
|
-
icon: renderOptionIcon?.(option),
|
|
706
|
-
body: renderOptionBody?.(option),
|
|
707
|
-
footer: renderOptionFooter?.(option),
|
|
708
|
-
disabled: isOptionDisabled?.(option),
|
|
709
|
-
floatingRadio
|
|
710
|
-
},
|
|
711
|
-
optionId(option)
|
|
712
|
-
)) });
|
|
713
|
-
};
|
|
714
141
|
const cachedStripPatterns = /* @__PURE__ */ new Map();
|
|
715
142
|
const makeStripPattern = (mask) => {
|
|
716
143
|
const inputPatterns = mask.tokens.filter((token) => token.type === "input" && !!token.allow).map((token) => token.allow);
|
|
@@ -940,7 +367,7 @@ const InputTelephone = forwardRef(
|
|
|
940
367
|
}
|
|
941
368
|
);
|
|
942
369
|
const mismatch = "adyen-kyc-mismatch";
|
|
943
|
-
const styles
|
|
370
|
+
const styles = {
|
|
944
371
|
mismatch
|
|
945
372
|
};
|
|
946
373
|
const deriveInputState = (isValid, isFocused, isDisabled, isOptional, hasNullishValue, hasBlurred, errorMessage, shouldValidate, potentiallyMoreOptionalCharacters, formatGuidance, t) => {
|
|
@@ -1016,7 +443,7 @@ const Inner = ({
|
|
|
1016
443
|
readonly,
|
|
1017
444
|
placeholder,
|
|
1018
445
|
value: displayValue,
|
|
1019
|
-
className: showingMismatch ? styles
|
|
446
|
+
className: showingMismatch ? styles.mismatch : void 0,
|
|
1020
447
|
onInput,
|
|
1021
448
|
onPaste,
|
|
1022
449
|
onKeyDown,
|
|
@@ -1362,56 +789,15 @@ const MaskedInput = ({
|
|
|
1362
789
|
}
|
|
1363
790
|
);
|
|
1364
791
|
};
|
|
1365
|
-
const createFormRules = (rules) => rules;
|
|
1366
|
-
const resolveFieldMetadata = (countryEntry, params, defaultMetadata) => {
|
|
1367
|
-
if (typeof countryEntry === "object") {
|
|
1368
|
-
return countryEntry;
|
|
1369
|
-
}
|
|
1370
|
-
if (typeof countryEntry === "function") {
|
|
1371
|
-
return countryEntry(params);
|
|
1372
|
-
}
|
|
1373
|
-
return defaultMetadata;
|
|
1374
|
-
};
|
|
1375
|
-
const spacer = "adyen-kyc-spacer";
|
|
1376
|
-
const styles = {
|
|
1377
|
-
spacer
|
|
1378
|
-
};
|
|
1379
|
-
const Spacer = () => /* @__PURE__ */ jsx("div", { className: styles.spacer });
|
|
1380
792
|
export {
|
|
1381
|
-
|
|
1382
|
-
isValueObscured as B,
|
|
1383
|
-
ContextGuidance as C,
|
|
1384
|
-
DropzoneFile as D,
|
|
1385
|
-
convertFullToHalf as E,
|
|
1386
|
-
Image as I,
|
|
793
|
+
InputEmail as I,
|
|
1387
794
|
MaskedInput as M,
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
alphaInputs as c,
|
|
1394
|
-
nonInputs as d,
|
|
1395
|
-
validateLegalCompanyName as e,
|
|
1396
|
-
validateLatinSpaceMarkPunctuationOnlyOnBlur as f,
|
|
1397
|
-
validateJaKanaLegalCompanyName as g,
|
|
1398
|
-
validateJaHaniLegalCompanyName as h,
|
|
1399
|
-
useCapabilityProblems as i,
|
|
1400
|
-
getProblemsForEntity as j,
|
|
1401
|
-
customInputs as k,
|
|
1402
|
-
defaultFileValidationOptions as l,
|
|
795
|
+
nonInputs as a,
|
|
796
|
+
alphaInputs as b,
|
|
797
|
+
customInputs as c,
|
|
798
|
+
alphanumericInputs as d,
|
|
799
|
+
isValueObscured as i,
|
|
1403
800
|
makeMask as m,
|
|
1404
801
|
numericInputs as n,
|
|
1405
|
-
|
|
1406
|
-
bytesToSize as p,
|
|
1407
|
-
DocumentGuidance as q,
|
|
1408
|
-
resolveFieldMetadata as r,
|
|
1409
|
-
spacer$1 as s,
|
|
1410
|
-
TextArea as t,
|
|
1411
|
-
uppercase as u,
|
|
1412
|
-
validatePatternOnBlur as v,
|
|
1413
|
-
getLocalizedIdDocumentTypeOptions as w,
|
|
1414
|
-
createFormRules as x,
|
|
1415
|
-
InputEmail as y,
|
|
1416
|
-
Spacer as z
|
|
802
|
+
spacer as s
|
|
1417
803
|
};
|