@adyen/kyc-components 3.91.0-beta.3 → 3.92.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{4-people-BzyXLUF9.js → 4-people-BtDi7O9A.js} +2 -2
- package/dist/{AcceptTermsOfServiceComponent-D8e9lyYH.js → AcceptTermsOfServiceComponent-Vy4EoqfY.js} +17 -14
- package/dist/{Accordion-DCWZYK2u.js → Accordion-TyLq5Pt9.js} +2 -2
- package/dist/{AccountSetupRejected-Cddo5K2O.js → AccountSetupRejected-BrFbSgmI.js} +4 -4
- package/dist/{ActionBar-BeXX0mEH.js → ActionBar-DOPIUymP.js} +1 -1
- package/dist/{Address-60p2PM3m.js → Address-HRaj8XNz.js} +23 -289
- package/dist/{Alert-v8DQ5jms.js → Alert-BPoTdDyt.js} +3 -3
- package/dist/{Avatar-uof74GrS.js → Avatar-BRV3DttH.js} +2 -2
- package/dist/{BusinessFinancingComponent-DY3WL0wd.js → BusinessFinancingComponent-1pqliuym.js} +6 -6
- package/dist/{BusinessFinancingDropin-CdCf_S-U.js → BusinessFinancingDropin-Byl_Re9w.js} +30 -22
- package/dist/{BusinessFinancingPage-CShNpepE.js → BusinessFinancingPage-By3Lk3NV.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-D1S1I42C.js → BusinessTypeSelectionPage-D18CAaFZ.js} +58 -33
- package/dist/{Card-Dr5XI4U-.js → Card-BiS0Yscp.js} +2 -2
- package/dist/{debouncedInputEvent-DYPebEvv.js → Checkbox-Ff2-ooFq.js} +3 -38
- package/dist/Confirm-Bf-PgAN9.js +64 -0
- package/dist/ConstitutionalDocument-C4D83Oyc.js +2358 -0
- package/dist/ContextGuidance-DSXbJX_h.js +34 -0
- package/dist/CountryField-BtSEQwBU.js +66 -0
- package/dist/{CreateIndividualComponent-H2spSjZ-.js → CreateIndividualComponent-6D_lJ-AI.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-_7KZqlEm.js → CreateTransferInstrumentComponent-B7-RekUU.js} +5 -12
- package/dist/{Currency-CT3A-Mmh.js → Currency-D-7-W_72.js} +64 -8
- package/dist/{CustomerSupport-D3LW4N2D.js → CustomerSupport-BkXsR6Rq.js} +12 -10
- package/dist/{DebugModal-BhLHLE0h.js → DebugModal-DLi9PLGE.js} +8 -7
- package/dist/{DecisionMakerDetailsPage-DPBl_7lw.js → DecisionMakerDetailsPage-BljW79ic.js} +6 -6
- package/dist/{DecisionMakers-Cklfw3fV.js → DecisionMakers-D_aoBd5m.js} +27 -21
- package/dist/Dropzone-JJg7ahoc.js +218 -0
- package/dist/{EmbeddedStatus-8nXzhxZ-.js → EmbeddedStatus-DJ8acbqR.js} +3 -3
- package/dist/{EndStateLayout-kkBTb4dl.js → EndStateLayout-CN2zBkHs.js} +2 -2
- package/dist/{EntityAssociation-CHkBMT2f.js → EntityAssociation-s9JxvNGu.js} +8 -8
- package/dist/{EntityGuidanceStatus-CqAq-K6i.js → EntityGuidanceStatus-0rWkTXf6.js} +4 -3
- package/dist/ErrorPanel-C0tG5hg9.js +183 -0
- package/dist/Field-7VEEzNuR.js +142 -0
- package/dist/{FormNavigation-BhiXiUNt.js → FormNavigation-BFWLgvCp.js} +3 -3
- package/dist/{FormWrapper-CQcLf6e4.js → FormWrapper-Cu7Ro0sA.js} +10 -10
- package/dist/Header-AHWUfO0O.js +83 -0
- package/dist/Image-DEnYyKm9.js +44 -0
- package/dist/{IndividualOnfido-CFoYrGlk.js → IndividualOnfidoDropin-DY5OrhKl.js} +3832 -5542
- package/dist/InputDate-DXZciuhR.js +43 -0
- package/dist/InputGroup-WBfGDV5F.js +32 -0
- package/dist/InputText-C5aotXLF.js +134 -0
- package/dist/{Introduction-CogY4SRV.js → Introduction-CWqdBTZe.js} +4 -4
- package/dist/{JpAddress-SwR07uGB.js → JpAddress-uSDdk01M.js} +22 -10
- package/dist/LandingLayout-unV6i-t6.js +60 -0
- package/dist/{LegalRepresentativeDetailsPage-u1Umrwfh.js → LegalRepresentativeDetailsPage-EPO0scJy.js} +4 -4
- package/dist/Link-CO6LxwUV.js +35 -0
- package/dist/List-BAzyC6sw.js +83 -0
- package/dist/{ListItem-DkpV9RmY.js → ListItem-Crm2LUE7.js} +3 -3
- package/dist/LoaderWrapper-CvZ8iY1N.js +42 -0
- package/dist/{ManageIndividualComponent-BFAx_t4E.js → ManageIndividualComponent-B0Lb8ovG.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-m317gIek.js → ManageTermsOfServiceComponent-CnzZ_urp.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-DOOtqOuO.js → ManageTransferInstrumentComponent-COiyVAWP.js} +16 -13
- package/dist/{Spacer-C_wuUjGk.js → MaskedInput-C3XjWT0l.js} +17 -631
- package/dist/{MaybeModal-8Mje-dwb.js → MaybeModal-sGLMQumb.js} +3 -3
- package/dist/{Modal-BSM4vT9v.js → Modal-DhUlPxeb.js} +2 -2
- package/dist/OnboardingDropinComponent-DduSUFwg.js +2306 -0
- package/dist/{PayoutDetailsDropin-Ctlu7XAg.js → PayoutDetailsDropin-DO_cUYLn.js} +105 -76
- package/dist/Radio-BMtxBpnn.js +39 -0
- package/dist/RadioGroup-CmsPnWWx.js +98 -0
- package/dist/RadioGroupCard-CThIzcAP.js +150 -0
- package/dist/{Review-C_oxc5j3.js → Review-BaeK2ax1.js} +7 -7
- package/dist/{RootBusinessDetailsPage-DYv6SY_0.js → RootBusinessDetailsPage-DDC4ywPk.js} +5 -5
- package/dist/{RootBusinessLinesPage-DieftXXK.js → RootBusinessLinesPage-D3x5QwhX.js} +104 -50
- package/dist/{RootIndividualDetailsPage-DBvyLt6O.js → RootIndividualDetailsPage--ypbdWKy.js} +6 -6
- package/dist/{useForm-toxM6BuV.js → Select-ClLBkh__.js} +10 -775
- package/dist/{SignPCIComponent-Bjxxv0cD.js → SignPCIComponent-0eskXMz7.js} +13 -11
- package/dist/{SingpassSelection-C8Oedqrx.js → SingpassSelection-DP0Az7z2.js} +9 -7
- package/dist/{SoleProprietorshipPage-ZZ4_uIdw.js → SoleProprietorshipPage-OmuYERKB.js} +4 -4
- package/dist/{SourceOfFundsPage-DOID3ZGV.js → SourceOfFundsPage-Cx6gp9ED.js} +39 -26
- package/dist/Spacer-BK3jDget.js +18 -0
- package/dist/{StepProgressIndicator-BgZlmzew.js → StepProgressIndicator-DnYrIdMx.js} +1 -1
- package/dist/{StoreProvider-1OKeIzng.js → StoreProvider-W47xsQUu.js} +271 -219
- package/dist/StructuredList-9dnJRdx_.js +61 -0
- package/dist/{Summary-DuyrspJx.js → Summary-DN3ZoZ79.js} +10 -5
- package/dist/{InputText-BJmgiBaZ.js → TaskVerificationStatus-Cwymj2Ol.js} +3 -123
- package/dist/TaxInformationField-Bi-HNy9o.js +3134 -0
- package/dist/{TaxReportingDropin-BrhgmIdI.js → TaxReportingDropin-dXjapFu-.js} +20 -17
- package/dist/TextArea-C57-MXu6.js +103 -0
- package/dist/TileGroup-flkyMBT_.js +203 -0
- package/dist/{TrustDetailsPage-y7j1vZDd.js → TrustDetailsPage-D7nr7CC4.js} +40 -27
- package/dist/{TrustMemberCompanyPage-BlQQvyMZ.js → TrustMemberCompanyPage-CE_uTQOo.js} +5 -5
- package/dist/{TrustMemberIndividualPage-D5pGqB2J.js → TrustMemberIndividualPage-D4EVPNlG.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-BWngfX_Y.js → TrustMemberRoleAndTypePage-D5gI0Gzo.js} +24 -14
- package/dist/{TrustMembersOverview-Ch7USuB0.js → TrustMembersOverview-CVmv6vdE.js} +13 -12
- package/dist/{UnincorporatedPartnershipIndividualPage-Bw9IF-r4.js → UnincorporatedPartnershipIndividualPage-B-WRrUA4.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-nSTUtGc3.js → UnincorporatedPartnershipMemberCompanyPage-CJbmdMjv.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-BLQPjpiY.js → UnincorporatedPartnershipMemberRoleAndTypePage-COsaOYJ1.js} +23 -16
- package/dist/{UnincorporatedPartnershipMembersOverview-4xBzuwuF.js → UnincorporatedPartnershipMembersOverview-C5MiQ-XT.js} +10 -9
- package/dist/{VerificationErrorAlert-R9bMcd55.js → VerificationErrorAlert-CyABKcVJ.js} +4 -4
- package/dist/{ViewVerificationStatusComponent-C8iRGsjn.js → ViewVerificationStatusComponent-Bro8s_1w.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-DWV_aQ7N.js +144 -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-BedeKU4L.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-B0EvVjy3.js → dropinUtils-m7wayRwp.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-C-_i0hDz.js +134 -0
- package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
- package/dist/form-rules-DhbF2mY4.js +13 -0
- package/dist/formUtils-Drzd7b3k.js +137 -0
- package/dist/{funds-in-D8bj0aoE.js → funds-in-CInoUdmG.js} +2 -2
- package/dist/{getName-gmt7CInl.js → getName-B5kzxk6G.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-Sl-YASLa.js → hasDataChanged-BqqFpYRL.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-GHecsQPy.js → iframeWidget-Df-nn8Ck.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-HRxa_zYH.js +23 -0
- package/dist/japanSupportUtils-BOLnerxh.js +17 -0
- package/dist/jpAddressSchema-De6ix57p.js +28 -0
- package/dist/{localizeDateString-DUyrvinp.js → localizeDateString-DT6PuuWW.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-C3I_y3xv.js +133 -0
- package/dist/{manual-verification-BvZWqA00.js → manual-verification-BO8zgAYT.js} +2 -2
- package/dist/{mapExistingFile-ByeXLGi-.js → mapExistingFile-C-X_xbb-.js} +80 -5
- package/dist/mapJpAddressSchemaToAddressLocalizations-DAYmQzHJ.js +147 -0
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-C2-cQFYE.js → mapLegalEntityToIndividualOnfidoSchema-B2EbcJiY.js} +63 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-BkA_hncA.js → mapTransferInstrumentToPayoutAccount-BfbOIklK.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-CJjmcLv6.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-CPNStelp.js → process-field-configurations-DDW8ZNWq.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-CjD4GGfE.js → resolveEnvironment-C7RbnxkQ.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-T3M-IFqy.js +66 -0
- package/dist/{rules-BLYJxwVa.js → rules-DEF6yHR3.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/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-19iBAg7T.js → types-D6ybrcVj.js} +1 -1
- package/dist/{types-Cw_98nXS.js → types-oWnX4KZg.js} +1 -1
- package/dist/{types-BFgT3PZ8.js → types-zMT0iFYS.js} +3 -26
- 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-DleehqQL.js → useAssociatedLegalEntity-ZXsa10__.js} +2 -2
- package/dist/useBusinessDetailsData-BsK9Q1gT.js +5161 -0
- package/dist/{useCreateLegalEntity-Cu59fab9.js → useCreateLegalEntity-B8-esZnc.js} +2 -2
- package/dist/useDataset-CnOuN1op.js +74 -0
- package/dist/useForm-N9aTiFDr.js +582 -0
- package/dist/{FormFlow-DbFT9hyz.js → useFormContext-CbeJNsuq.js} +26 -31
- package/dist/{useGlobalData-DkUVPkLY.js → useGlobalData-Cy0Lkfo4.js} +3 -3
- package/dist/useId-BZ0PA7jP.js +24 -0
- package/dist/{useMultiForm-CaNgYAN2.js → useMultiForm-D7a7Rxi8.js} +4 -4
- package/dist/{useOnboardingStatus-Bduco7xn.js → useOnboardingStatus-CvGvC8eS.js} +1 -1
- package/dist/{useScenarios-DaW_7ScU.js → useScenarios-XDDpaOsu.js} +2 -2
- package/dist/{useTermsOfServiceStatus-zI28cNFX.js → useTermsOfServiceStatus-CJ3GEMsU.js} +1 -1
- package/dist/{useToastContext-DCXz1jVQ.js → useToastContext-0CCfpAXY.js} +5 -17
- package/dist/{useUnincorporatedPartnershipMembers-DHDtTbV5.js → useUnincorporatedPartnershipMembers-Dz-2asjR.js} +5 -5
- package/dist/useUpdateBusinessLines-deoRDumy.js +337 -0
- package/dist/{useUpdateLegalEntity-D3CHa9fC.js → useUpdateLegalEntity-Cjpc9gbA.js} +3 -3
- package/dist/{utils-C-ZehZmz.js → utils-2HQj3ubz.js} +4 -4
- package/dist/{utils-C3GxwDJj.js → utils-BGoLwepn.js} +6 -6
- package/dist/utils-BiZgCW0f.js +58 -0
- package/dist/utils-Cd-fDpb4.js +165 -0
- package/dist/utils-D_3K0EUL.js +29 -0
- package/dist/{documentUtils-BCFAvcv3.js → validate-BKUb24fK.js} +170 -6
- package/dist/validate-BsV3Wrf3.js +385 -0
- package/dist/{validate-DnCvcnys.js → validate-Dhy-erPs.js} +2 -2
- package/dist/{validationError-18bG8mkR.js → validationError-D41eekah.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-Bc5BP_r7.js +0 -143
- package/dist/CountryField-fKjZ6eNz.js +0 -843
- package/dist/IndividualOnfidoDropin-BX-WVBMP.js +0 -2575
- package/dist/OnboardingDropinComponent-bB8igIVw.js +0 -7623
- package/dist/getFieldsWithExistingData-CWm4Gt2E.js +0 -22
- package/dist/mapFinancialReportsToFinancialInformation-BCrld3UM.js +0 -67
- package/dist/mapJpAddressSchemaToAddressLocalizations-CKfK00HJ.js +0 -63
- package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
- package/dist/useBusinessDetailsData--XO64UpB.js +0 -2441
- package/dist/useDataset-CvqVm3C5.js +0 -220
- package/dist/useUpdateBusinessLines-D1kvcpZV.js +0 -46
- package/dist/validate-CGh1ZNG6.js +0 -41
|
@@ -2,16 +2,16 @@
|
|
|
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] = "d0533543-dff1-4e72-a6a5-9885cc5da7e1", e._sentryDebugIdIdentifier = "sentry-dbid-d0533543-dff1-4e72-a6a5-9885cc5da7e1");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { C as CompanyTypesValues } from "./
|
|
11
|
-
import { g as getLegalEntityCountry,
|
|
12
|
-
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-
|
|
13
|
-
import { S as SOLE_PROP_COUNTRIES } from "./rules-
|
|
14
|
-
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-
|
|
10
|
+
import { C as CompanyTypesValues } from "./bafinUtils-DWV_aQ7N.js";
|
|
11
|
+
import { g as getLegalEntityCountry, by as getCapabilities, r as LegalEntityTypes, K as hasOwnEntityAssociationOfType, C as CountryCodes } from "./StoreProvider-W47xsQUu.js";
|
|
12
|
+
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-DduSUFwg.js";
|
|
13
|
+
import { S as SOLE_PROP_COUNTRIES } from "./rules-DEF6yHR3.js";
|
|
14
|
+
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-D6ybrcVj.js";
|
|
15
15
|
const TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
16
16
|
const BUSINESS_BANK_ACCOUNT_COUNTRIES = [
|
|
17
17
|
CountryCodes.UnitedStates,
|
|
@@ -0,0 +1,58 @@
|
|
|
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] = "433587e6-41c2-4aa5-903b-fd5ad83b81d3", e._sentryDebugIdIdentifier = "sentry-dbid-433587e6-41c2-4aa5-903b-fd5ad83b81d3");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { al as entriesOf } from "./StoreProvider-W47xsQUu.js";
|
|
11
|
+
class ValidationResult {
|
|
12
|
+
validationResults;
|
|
13
|
+
constructor(results) {
|
|
14
|
+
this.validationResults = results;
|
|
15
|
+
}
|
|
16
|
+
/** Checks if all validation rules have passed */
|
|
17
|
+
get isValid() {
|
|
18
|
+
return this.validationResults.reduce((acc, result) => acc && result.isValid, true);
|
|
19
|
+
}
|
|
20
|
+
/** Checks if any validation rule returned an error */
|
|
21
|
+
hasError() {
|
|
22
|
+
return Boolean(this.getError());
|
|
23
|
+
}
|
|
24
|
+
/** Returns the first validation result that returned an error */
|
|
25
|
+
getError() {
|
|
26
|
+
return this.validationResults.find((result) => result.hasError);
|
|
27
|
+
}
|
|
28
|
+
/** Used to add async validation results to the static validation result*/
|
|
29
|
+
addError(result) {
|
|
30
|
+
this.validationResults.push(result);
|
|
31
|
+
return this.validationResults;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
35
|
+
a[c] = obj[c];
|
|
36
|
+
return a;
|
|
37
|
+
}, {});
|
|
38
|
+
const addKeys = (obj, add, initialValue, defaultData, pendingData) => add.reduce(
|
|
39
|
+
(a, c) => ({
|
|
40
|
+
...a,
|
|
41
|
+
[c]: a[c] ?? pendingData?.[c] ?? defaultData?.[c] ?? initialValue
|
|
42
|
+
}),
|
|
43
|
+
obj
|
|
44
|
+
);
|
|
45
|
+
function getDataByFields(formData, fieldKeys) {
|
|
46
|
+
return entriesOf(formData).reduce((acc, [key, val]) => {
|
|
47
|
+
if (fieldKeys.includes(key)) {
|
|
48
|
+
return { ...acc, [key]: val };
|
|
49
|
+
}
|
|
50
|
+
return acc;
|
|
51
|
+
}, {});
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
ValidationResult as V,
|
|
55
|
+
addKeys as a,
|
|
56
|
+
getDataByFields as g,
|
|
57
|
+
omitKeys as o
|
|
58
|
+
};
|
|
@@ -0,0 +1,165 @@
|
|
|
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] = "f1eb724b-09f7-4ff4-b173-73b06b9f3706", e._sentryDebugIdIdentifier = "sentry-dbid-f1eb724b-09f7-4ff4-b173-73b06b9f3706");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { s as summaryItem } from "./summaryItem-CAQCQSkt.js";
|
|
11
|
+
import { C as CountryCodes } from "./StoreProvider-W47xsQUu.js";
|
|
12
|
+
const addressFields = [
|
|
13
|
+
"address",
|
|
14
|
+
"otherAddressInformation",
|
|
15
|
+
"postalCode",
|
|
16
|
+
"city",
|
|
17
|
+
"stateOrProvince",
|
|
18
|
+
"country"
|
|
19
|
+
];
|
|
20
|
+
const [ADDRESS, OTHER_ADDRESS_INFORMATION, POSTAL_CODE, CITY, STATE, COUNTRY] = addressFields;
|
|
21
|
+
const COUNTRIES_WITH_STATES_DATASET = [
|
|
22
|
+
CountryCodes.Australia,
|
|
23
|
+
CountryCodes.Brazil,
|
|
24
|
+
CountryCodes.Canada,
|
|
25
|
+
CountryCodes.NewZealand,
|
|
26
|
+
CountryCodes.UnitedStates,
|
|
27
|
+
CountryCodes.Japan
|
|
28
|
+
];
|
|
29
|
+
const COUNTRIES_WITH_HOUSE_NUMBER_FIRST = [
|
|
30
|
+
CountryCodes.Australia,
|
|
31
|
+
CountryCodes.Canada,
|
|
32
|
+
CountryCodes.NewZealand,
|
|
33
|
+
CountryCodes.PuertoRico,
|
|
34
|
+
CountryCodes.UnitedStates,
|
|
35
|
+
CountryCodes.UnitedKingdom,
|
|
36
|
+
CountryCodes.France
|
|
37
|
+
];
|
|
38
|
+
const ADDRESS_SCHEMAS = {
|
|
39
|
+
[CountryCodes.Australia]: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, CITY, STATE, POSTAL_CODE],
|
|
40
|
+
[CountryCodes.Canada]: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, CITY, POSTAL_CODE, STATE],
|
|
41
|
+
[CountryCodes.UnitedKingdom]: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, CITY, POSTAL_CODE],
|
|
42
|
+
[CountryCodes.UnitedStates]: [
|
|
43
|
+
COUNTRY,
|
|
44
|
+
ADDRESS,
|
|
45
|
+
OTHER_ADDRESS_INFORMATION,
|
|
46
|
+
CITY,
|
|
47
|
+
STATE,
|
|
48
|
+
POSTAL_CODE
|
|
49
|
+
],
|
|
50
|
+
[CountryCodes.PuertoRico]: [
|
|
51
|
+
// should exactly match CountryCodes.UnitedStates
|
|
52
|
+
COUNTRY,
|
|
53
|
+
ADDRESS,
|
|
54
|
+
OTHER_ADDRESS_INFORMATION,
|
|
55
|
+
CITY,
|
|
56
|
+
POSTAL_CODE
|
|
57
|
+
],
|
|
58
|
+
[CountryCodes.HongKong]: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, CITY, STATE],
|
|
59
|
+
[CountryCodes.NewZealand]: [
|
|
60
|
+
COUNTRY,
|
|
61
|
+
ADDRESS,
|
|
62
|
+
OTHER_ADDRESS_INFORMATION,
|
|
63
|
+
POSTAL_CODE,
|
|
64
|
+
CITY,
|
|
65
|
+
STATE
|
|
66
|
+
],
|
|
67
|
+
[CountryCodes.UnitedArabEmirates]: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, CITY],
|
|
68
|
+
default: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, POSTAL_CODE, CITY, STATE]
|
|
69
|
+
};
|
|
70
|
+
const CONDENSED_ADDRESS_FIELDS = {
|
|
71
|
+
[CountryCodes.UnitedStates]: [CITY, STATE, POSTAL_CODE]
|
|
72
|
+
};
|
|
73
|
+
const LABELS = {
|
|
74
|
+
city: {
|
|
75
|
+
default: CITY,
|
|
76
|
+
[CountryCodes.UnitedKingdom]: "cityTown"
|
|
77
|
+
},
|
|
78
|
+
country: {
|
|
79
|
+
default: COUNTRY
|
|
80
|
+
},
|
|
81
|
+
otherAddressInformation: {
|
|
82
|
+
default: OTHER_ADDRESS_INFORMATION,
|
|
83
|
+
[CountryCodes.Canada]: "apartmentSuiteOther",
|
|
84
|
+
[CountryCodes.PuertoRico]: "apartmentSuiteOther",
|
|
85
|
+
// should exactly match CountryCodes.UnitedStates
|
|
86
|
+
[CountryCodes.UnitedStates]: "apartmentSuiteOther"
|
|
87
|
+
},
|
|
88
|
+
postalCode: {
|
|
89
|
+
default: POSTAL_CODE,
|
|
90
|
+
[CountryCodes.PuertoRico]: "zipCode",
|
|
91
|
+
// should exactly match CountryCodes.UnitedStates
|
|
92
|
+
[CountryCodes.UnitedStates]: "zipCode"
|
|
93
|
+
},
|
|
94
|
+
stateOrProvince: {
|
|
95
|
+
default: STATE,
|
|
96
|
+
[CountryCodes.Australia]: "state",
|
|
97
|
+
[CountryCodes.Brazil]: "state",
|
|
98
|
+
[CountryCodes.Canada]: "provinceOrTerritory",
|
|
99
|
+
[CountryCodes.NewZealand]: "region",
|
|
100
|
+
[CountryCodes.UnitedStates]: "state"
|
|
101
|
+
},
|
|
102
|
+
stateOrProvince__placeHolder: {
|
|
103
|
+
default: "stateOrProvince__placeHolder",
|
|
104
|
+
[CountryCodes.Australia]: "selectState",
|
|
105
|
+
[CountryCodes.Brazil]: "selectState",
|
|
106
|
+
[CountryCodes.Canada]: "selectProvinceOrTerritory",
|
|
107
|
+
[CountryCodes.UnitedStates]: "stateOrProvince__placeHolder__US"
|
|
108
|
+
},
|
|
109
|
+
address: {
|
|
110
|
+
default: ADDRESS
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
const getKeyForField = (fieldName, country) => country ? LABELS[fieldName][country] || LABELS[fieldName].default : LABELS[fieldName].default;
|
|
114
|
+
const getAddressSchemaForCountry = (country) => country && ADDRESS_SCHEMAS[country] ? ADDRESS_SCHEMAS[country] : ADDRESS_SCHEMAS.default;
|
|
115
|
+
const getAddressSchemaLabelsByCountry = (country) => {
|
|
116
|
+
const schema = getAddressSchemaForCountry(country);
|
|
117
|
+
return schema.reduce(
|
|
118
|
+
(labels, field) => ({
|
|
119
|
+
...labels,
|
|
120
|
+
[field]: getKeyForField(field, country)
|
|
121
|
+
}),
|
|
122
|
+
{}
|
|
123
|
+
);
|
|
124
|
+
};
|
|
125
|
+
const mapAddressLabels = (data, datasetUtils) => {
|
|
126
|
+
if (data?.country) {
|
|
127
|
+
const addressSchema = getAddressSchemaForCountry(data.country);
|
|
128
|
+
return addressSchema.reduce((mappedAddress, field) => {
|
|
129
|
+
const labelKey = getKeyForField(field, data.country);
|
|
130
|
+
const value = data?.[field];
|
|
131
|
+
if (!value) return mappedAddress;
|
|
132
|
+
switch (field) {
|
|
133
|
+
case "country":
|
|
134
|
+
return {
|
|
135
|
+
...mappedAddress,
|
|
136
|
+
[field]: summaryItem(
|
|
137
|
+
labelKey,
|
|
138
|
+
datasetUtils.getCountryName(value) ?? value
|
|
139
|
+
)
|
|
140
|
+
};
|
|
141
|
+
case "stateOrProvince":
|
|
142
|
+
return {
|
|
143
|
+
...mappedAddress,
|
|
144
|
+
[field]: summaryItem(
|
|
145
|
+
labelKey,
|
|
146
|
+
datasetUtils.getStateName(value, data.country) ?? value
|
|
147
|
+
)
|
|
148
|
+
};
|
|
149
|
+
default:
|
|
150
|
+
return { ...mappedAddress, [field]: summaryItem(labelKey, value) };
|
|
151
|
+
}
|
|
152
|
+
}, {});
|
|
153
|
+
}
|
|
154
|
+
return data;
|
|
155
|
+
};
|
|
156
|
+
export {
|
|
157
|
+
COUNTRIES_WITH_STATES_DATASET as C,
|
|
158
|
+
getAddressSchemaLabelsByCountry as a,
|
|
159
|
+
addressFields as b,
|
|
160
|
+
getKeyForField as c,
|
|
161
|
+
COUNTRIES_WITH_HOUSE_NUMBER_FIRST as d,
|
|
162
|
+
CONDENSED_ADDRESS_FIELDS as e,
|
|
163
|
+
getAddressSchemaForCountry as g,
|
|
164
|
+
mapAddressLabels as m
|
|
165
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
4
|
+
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6d6727c7-09ae-4095-b404-06287c535d4f", e._sentryDebugIdIdentifier = "sentry-dbid-6d6727c7-09ae-4095-b404-06287c535d4f");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { C as CountryCodes } from "./StoreProvider-W47xsQUu.js";
|
|
11
|
+
function getLocalizedIdDocumentTypeOptions(country) {
|
|
12
|
+
switch (country) {
|
|
13
|
+
case CountryCodes.Japan:
|
|
14
|
+
return [
|
|
15
|
+
{ id: "driversLicense", name: "driversLicense", hasBackPage: true },
|
|
16
|
+
{ id: "passport", name: "passport", hasBackPage: false },
|
|
17
|
+
{ id: "identityCard", name: "identityCard__JP", hasBackPage: true }
|
|
18
|
+
];
|
|
19
|
+
default:
|
|
20
|
+
return [
|
|
21
|
+
{ id: "driversLicense", name: "driversLicense", hasBackPage: true },
|
|
22
|
+
{ id: "passport", name: "passport", hasBackPage: false },
|
|
23
|
+
{ id: "identityCard", name: "identityCard", hasBackPage: true }
|
|
24
|
+
];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
getLocalizedIdDocumentTypeOptions as g
|
|
29
|
+
};
|
|
@@ -2,13 +2,16 @@
|
|
|
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] = "efa559a2-482e-4bf7-9f1f-05ea1fb7368d", e._sentryDebugIdIdentifier = "sentry-dbid-efa559a2-482e-4bf7-9f1f-05ea1fb7368d");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { k as httpPost,
|
|
11
|
-
import {
|
|
10
|
+
import { k as httpPost, an as httpDelete, m as httpGet, H as createLogger, bm as StateContext, u as useTranslation, V as useAnalyticsContext, W as Icon, G as Typography, L as Loader, X as IconButton } from "./StoreProvider-W47xsQUu.js";
|
|
11
|
+
import { g as getLocalizedIdDocumentTypeOptions } from "./utils-D_3K0EUL.js";
|
|
12
|
+
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
13
|
+
import cx from "classnames";
|
|
14
|
+
import { useEffect } from "preact/hooks";
|
|
12
15
|
const createDocument = async (context, document, ownerId) => {
|
|
13
16
|
const { baseUrl, rootLegalEntityId } = context;
|
|
14
17
|
return httpPost(
|
|
@@ -43,6 +46,8 @@ const updateDocument = async (context, document, documentId, ownerId) => {
|
|
|
43
46
|
document
|
|
44
47
|
);
|
|
45
48
|
};
|
|
49
|
+
const isExistingFile = (file) => "existing" in file && file.existing;
|
|
50
|
+
const isNewlyUploadedFile = (file) => !isExistingFile(file);
|
|
46
51
|
const logger = createLogger();
|
|
47
52
|
const documentStore = {};
|
|
48
53
|
const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions();
|
|
@@ -256,14 +261,173 @@ const mergeProofOfOwnershipAttachments = (existing, incoming) => {
|
|
|
256
261
|
const result = [...incoming, ...filteredExisting].slice(0, 2);
|
|
257
262
|
return result;
|
|
258
263
|
};
|
|
264
|
+
function StateContextSetter({ stateRef }) {
|
|
265
|
+
if (stateRef.current.setState) {
|
|
266
|
+
return null;
|
|
267
|
+
}
|
|
268
|
+
return /* @__PURE__ */ jsx(StateContext.Consumer, { children: (stateContextValue) => {
|
|
269
|
+
const { dispatch, setActiveForms } = stateContextValue;
|
|
270
|
+
stateRef.current.setState = dispatch;
|
|
271
|
+
stateRef.current.setActiveForms = setActiveForms;
|
|
272
|
+
return null;
|
|
273
|
+
} });
|
|
274
|
+
}
|
|
275
|
+
function bytesToSize(bytes) {
|
|
276
|
+
const sizes = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
277
|
+
if (bytes === 0) return "n/a";
|
|
278
|
+
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)).toString());
|
|
279
|
+
if (i === 0) return `${bytes} ${sizes[i]}`;
|
|
280
|
+
return `${(bytes / 1024 ** i).toFixed()} ${sizes[i]}`;
|
|
281
|
+
}
|
|
282
|
+
function DropzoneFile(props) {
|
|
283
|
+
const { file, errorMessage, onDelete, loading } = props;
|
|
284
|
+
const { t } = useTranslation("common");
|
|
285
|
+
const userEvents = useAnalyticsContext();
|
|
286
|
+
let documentIcon;
|
|
287
|
+
const formatSize = (bytes) => {
|
|
288
|
+
const sizes = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
289
|
+
if (!bytes || bytes === 0) return "n/a";
|
|
290
|
+
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)).toString());
|
|
291
|
+
if (i === 0) return `${bytes} ${sizes[i]}`;
|
|
292
|
+
return `${(bytes / 1024 ** i).toFixed(1)} ${sizes[i]}`;
|
|
293
|
+
};
|
|
294
|
+
switch (file.type?.split("/")[0]) {
|
|
295
|
+
case "image":
|
|
296
|
+
documentIcon = "image";
|
|
297
|
+
break;
|
|
298
|
+
default:
|
|
299
|
+
documentIcon = "document";
|
|
300
|
+
}
|
|
301
|
+
useEffect(() => {
|
|
302
|
+
if (!errorMessage) return;
|
|
303
|
+
userEvents.addFieldEvent("Encountered error", {
|
|
304
|
+
actionType: "change",
|
|
305
|
+
field: "dropzone file",
|
|
306
|
+
returnType: "validation",
|
|
307
|
+
returnValue: errorMessage
|
|
308
|
+
});
|
|
309
|
+
}, [errorMessage, userEvents]);
|
|
310
|
+
return /* @__PURE__ */ jsxs(
|
|
311
|
+
"div",
|
|
312
|
+
{
|
|
313
|
+
className: cx("adyen-kyc-dropzone-file", { "adyen-kyc-dropzone-file--error": errorMessage }),
|
|
314
|
+
children: [
|
|
315
|
+
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropzone-file__details", children: [
|
|
316
|
+
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropzone-file__labels", children: [
|
|
317
|
+
errorMessage ? /* @__PURE__ */ jsx(
|
|
318
|
+
Icon,
|
|
319
|
+
{
|
|
320
|
+
testId: "document-invalid",
|
|
321
|
+
name: "warning",
|
|
322
|
+
className: "adyen-kyc-dropzone-file__icon"
|
|
323
|
+
}
|
|
324
|
+
) : /* @__PURE__ */ jsx(
|
|
325
|
+
Icon,
|
|
326
|
+
{
|
|
327
|
+
testId: "document-valid",
|
|
328
|
+
name: documentIcon,
|
|
329
|
+
className: "adyen-kyc-dropzone-file__icon"
|
|
330
|
+
}
|
|
331
|
+
),
|
|
332
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body-stronger", className: "adyen-kyc-dropzone-file__name", children: file.name }),
|
|
333
|
+
/* @__PURE__ */ jsx(Typography, { className: "adyen-kyc-dropzone-file__size", children: isNewlyUploadedFile(file) && formatSize(file.size) })
|
|
334
|
+
] }),
|
|
335
|
+
errorMessage && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropzone-file__error", children: t(($) => $[errorMessage]) })
|
|
336
|
+
] }),
|
|
337
|
+
loading ? /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropzone-file__loading", children: /* @__PURE__ */ jsx(Loader, { size: "medium" }) }) : errorMessage ? /* @__PURE__ */ jsx(
|
|
338
|
+
IconButton,
|
|
339
|
+
{
|
|
340
|
+
ariaLabel: t(($) => $["close"]),
|
|
341
|
+
icon: "cross",
|
|
342
|
+
variant: "tertiary",
|
|
343
|
+
onClick: onDelete
|
|
344
|
+
}
|
|
345
|
+
) : /* @__PURE__ */ jsx(
|
|
346
|
+
IconButton,
|
|
347
|
+
{
|
|
348
|
+
ariaLabel: t(($) => $["deleteDocument"]),
|
|
349
|
+
icon: "bin",
|
|
350
|
+
variant: "tertiary",
|
|
351
|
+
onClick: onDelete
|
|
352
|
+
}
|
|
353
|
+
)
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
const hasDuplicates = (arr) => arr.some((item, currIndex) => arr.indexOf(item) !== currIndex);
|
|
359
|
+
const defaultFileValidationOptions = {
|
|
360
|
+
allowedFileTypes: ["JPG", "JPEG", "PNG", "PDF"],
|
|
361
|
+
maxNumberOfFiles: 1,
|
|
362
|
+
maxSize: 4194304,
|
|
363
|
+
// 4MB by default
|
|
364
|
+
isOptional: false
|
|
365
|
+
};
|
|
366
|
+
const filterOnlyNewlyUploadedFiles = (files) => files.filter(isNewlyUploadedFile);
|
|
367
|
+
const fileValidationRules = ({
|
|
368
|
+
allowedFileTypes,
|
|
369
|
+
maxNumberOfFiles,
|
|
370
|
+
maxSize,
|
|
371
|
+
isOptional
|
|
372
|
+
}) => [
|
|
373
|
+
{
|
|
374
|
+
validate: (files) => {
|
|
375
|
+
if (isOptional && (!files || files.length === 0)) return true;
|
|
376
|
+
return Boolean(files && files.length > 0);
|
|
377
|
+
},
|
|
378
|
+
errorMessage: "fieldIsRequired",
|
|
379
|
+
modes: ["blur", "input"]
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
validate: (files) => {
|
|
383
|
+
if (!files) return true;
|
|
384
|
+
return files.length <= maxNumberOfFiles;
|
|
385
|
+
},
|
|
386
|
+
errorMessage: "tooManyFiles",
|
|
387
|
+
modes: ["blur", "input"]
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
validate: (files) => {
|
|
391
|
+
if (!files) return true;
|
|
392
|
+
return !hasDuplicates(files.map((file) => file.name));
|
|
393
|
+
},
|
|
394
|
+
errorMessage: "duplicatedFiles",
|
|
395
|
+
modes: ["blur", "input"]
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
validate: (files) => {
|
|
399
|
+
if (!files) return true;
|
|
400
|
+
return filterOnlyNewlyUploadedFiles(files).every(
|
|
401
|
+
(file) => allowedFileTypes.some(
|
|
402
|
+
(filetype) => file.name.toLowerCase().endsWith(filetype.toLowerCase())
|
|
403
|
+
)
|
|
404
|
+
);
|
|
405
|
+
},
|
|
406
|
+
errorMessage: "unsupportedFiletype",
|
|
407
|
+
modes: ["blur", "input"]
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
validate: (files) => {
|
|
411
|
+
if (!files) return true;
|
|
412
|
+
return filterOnlyNewlyUploadedFiles(files).every((file) => !file.size || file.size < maxSize);
|
|
413
|
+
},
|
|
414
|
+
errorMessage: "maximumFileSizeExceeded",
|
|
415
|
+
modes: ["blur", "input"]
|
|
416
|
+
}
|
|
417
|
+
];
|
|
259
418
|
export {
|
|
419
|
+
DropzoneFile as D,
|
|
420
|
+
StateContextSetter as S,
|
|
260
421
|
getDocument as a,
|
|
261
422
|
getFileExtention as b,
|
|
262
423
|
createDocumentRequest as c,
|
|
263
424
|
documentApiUtils as d,
|
|
264
|
-
|
|
265
|
-
|
|
425
|
+
bytesToSize as e,
|
|
426
|
+
defaultFileValidationOptions as f,
|
|
266
427
|
getIdDocument as g,
|
|
267
|
-
|
|
428
|
+
fileValidationRules as h,
|
|
429
|
+
fileToBase64 as i,
|
|
430
|
+
getDocuments as j,
|
|
431
|
+
mergeProofOfOwnershipAttachments as k,
|
|
268
432
|
mergeAttachments as m
|
|
269
433
|
};
|