@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,22 +2,23 @@
|
|
|
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] = "24420981-7385-4382-80c2-030bd3b0e2c3", e._sentryDebugIdIdentifier = "sentry-dbid-24420981-7385-4382-80c2-030bd3b0e2c3");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { jsx, jsxs
|
|
11
|
-
import { useMemo, useRef, useState } from "preact/hooks";
|
|
12
|
-
import { F as FormContext } from "./Address-BUrDDnmR.js";
|
|
10
|
+
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
+
import { useMemo, useRef, useState, useContext } from "preact/hooks";
|
|
13
12
|
import cx from "classnames";
|
|
14
|
-
import {
|
|
15
|
-
import { L as LoaderWrapper } from "./
|
|
16
|
-
import { M as MaybeModal } from "./MaybeModal-
|
|
13
|
+
import { V as useAnalyticsContext, u as useTranslation, B as Button } from "./StoreProvider-D9IR5HNN.js";
|
|
14
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-CUz5NRFr.js";
|
|
15
|
+
import { M as MaybeModal } from "./MaybeModal-CWCEHeOg.js";
|
|
17
16
|
import { P as ProgressBar } from "./ProgressBar-B7gTQncy.js";
|
|
18
|
-
import { F as FormRouterContextProvider } from "./dropinUtils-
|
|
19
|
-
import { C as Confirm } from "./
|
|
20
|
-
import { S as Summary } from "./Summary-
|
|
17
|
+
import { F as FormRouterContextProvider } from "./dropinUtils-BpJn607e.js";
|
|
18
|
+
import { C as Confirm } from "./Confirm-Ctfqp-1b.js";
|
|
19
|
+
import { S as Summary } from "./Summary-Bq94iVfc.js";
|
|
20
|
+
import { createContext } from "preact";
|
|
21
|
+
const FormContext = createContext(null);
|
|
21
22
|
function FormContextProvider({
|
|
22
23
|
children,
|
|
23
24
|
form
|
|
@@ -74,7 +75,6 @@ const FormFlow = ({
|
|
|
74
75
|
const isFirstStep = currentStep === 0;
|
|
75
76
|
const isLastStep = currentStep === totalSteps - 1;
|
|
76
77
|
const isSingleStepForm = totalSteps < 2;
|
|
77
|
-
const hasProblems = summary?.problems?.verificationErrors !== void 0;
|
|
78
78
|
const progress = Math.floor(currentStep / (totalSteps - 1) * 100);
|
|
79
79
|
const scrollToTop = () => {
|
|
80
80
|
if (contentRef.current) {
|
|
@@ -120,13 +120,6 @@ const FormFlow = ({
|
|
|
120
120
|
setIsConfirmPresented(false);
|
|
121
121
|
handleCancelClick?.();
|
|
122
122
|
};
|
|
123
|
-
const handleSkip = () => {
|
|
124
|
-
userEvents.addPageEvent("Clicked button", {
|
|
125
|
-
actionType: "skip",
|
|
126
|
-
label: "skip"
|
|
127
|
-
});
|
|
128
|
-
gotoFormByFormIndex(currentStep + 1);
|
|
129
|
-
};
|
|
130
123
|
const footerClassName = cx(styles.formFlowFooter, {
|
|
131
124
|
[styles.formFlowFooterBorder]: isSingleStepForm
|
|
132
125
|
});
|
|
@@ -169,18 +162,15 @@ const FormFlow = ({
|
|
|
169
162
|
children: t(($) => $["back"])
|
|
170
163
|
}
|
|
171
164
|
),
|
|
172
|
-
/* @__PURE__ */ jsx("div", { className: styles.formFlowPrimaryActions, children: isLastStep ? /* @__PURE__ */ jsx(Button, { onClick: handleSubmit, loading: isSubmitting, children: t(($) => $["submit"]) }) : /* @__PURE__ */
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
)
|
|
183
|
-
] }) })
|
|
165
|
+
/* @__PURE__ */ jsx("div", { className: styles.formFlowPrimaryActions, children: isLastStep ? /* @__PURE__ */ jsx(Button, { onClick: handleSubmit, loading: isSubmitting, children: t(($) => $["submit"]) }) : /* @__PURE__ */ jsx(
|
|
166
|
+
Button,
|
|
167
|
+
{
|
|
168
|
+
onClick: handleNext,
|
|
169
|
+
disabled: isActionDisabled || disableNextButton,
|
|
170
|
+
loading: nextButtonLoading,
|
|
171
|
+
children: t(($) => $["continue"])
|
|
172
|
+
}
|
|
173
|
+
) })
|
|
184
174
|
] })
|
|
185
175
|
] })
|
|
186
176
|
]
|
|
@@ -200,7 +190,12 @@ const FormFlow = ({
|
|
|
200
190
|
}
|
|
201
191
|
);
|
|
202
192
|
};
|
|
193
|
+
function useFormContext() {
|
|
194
|
+
const context = useContext(FormContext);
|
|
195
|
+
return context;
|
|
196
|
+
}
|
|
203
197
|
export {
|
|
204
198
|
FormContextProvider as F,
|
|
205
|
-
FormFlow as a
|
|
199
|
+
FormFlow as a,
|
|
200
|
+
useFormContext as u
|
|
206
201
|
};
|
|
@@ -2,14 +2,14 @@
|
|
|
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] = "3a808338-85ca-4b24-9db3-f514c647dcaa", e._sentryDebugIdIdentifier = "sentry-dbid-3a808338-85ca-4b24-9db3-f514c647dcaa");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useContext, useCallback, useMemo } from "preact/hooks";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { a as debounce } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
12
|
+
import { bm as StateContext } from "./StoreProvider-D9IR5HNN.js";
|
|
13
13
|
function useStateContext() {
|
|
14
14
|
const context = useContext(StateContext);
|
|
15
15
|
return context;
|
|
@@ -0,0 +1,24 @@
|
|
|
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] = "1b45db25-e530-4076-9ec1-2e9652ae80b0", e._sentryDebugIdIdentifier = "sentry-dbid-1b45db25-e530-4076-9ec1-2e9652ae80b0");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { useState } from "preact/hooks";
|
|
11
|
+
function uuidv4() {
|
|
12
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
13
|
+
let r = Math.random() * 16 | 0, v = c == "x" ? r : r & 3 | 8;
|
|
14
|
+
return v.toString(16);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
const useId = (prefix) => {
|
|
18
|
+
const [uuid] = useState(uuidv4());
|
|
19
|
+
return `${prefix}_${uuid}`;
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
useId as a,
|
|
23
|
+
uuidv4 as u
|
|
24
|
+
};
|
|
@@ -2,15 +2,15 @@
|
|
|
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] = "a2ae63c6-7539-4774-bcac-cc259f47aab3", e._sentryDebugIdIdentifier = "sentry-dbid-a2ae63c6-7539-4774-bcac-cc259f47aab3");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import {
|
|
12
|
-
import { V as ValidationResult } from "./
|
|
13
|
-
import {
|
|
11
|
+
import { ad as objectsDeepEqual, H as createLogger, as as isEmpty } from "./StoreProvider-D9IR5HNN.js";
|
|
12
|
+
import { V as ValidationResult } from "./utils-7_xBiPO_.js";
|
|
13
|
+
import { a as isNotEmptyValidator } from "./commonValidators-DcFd5CHs.js";
|
|
14
14
|
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
15
15
|
a[c] = obj[c];
|
|
16
16
|
return a;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, j as useQuery, m as httpGet } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, j as useQuery, m as httpGet } from "./StoreProvider-D9IR5HNN.js";
|
|
11
11
|
const getOnboardingStatus = async (legalEntityId, baseUrl) => {
|
|
12
12
|
return httpGet({
|
|
13
13
|
baseUrl,
|
|
@@ -2,12 +2,12 @@
|
|
|
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] = "b3815080-102c-4e1f-98f3-60751d8a0182", e._sentryDebugIdIdentifier = "sentry-dbid-b3815080-102c-4e1f-98f3-60751d8a0182");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, j as useQuery,
|
|
10
|
+
import { b as useApiContext, j as useQuery, al as entriesOf, w as skipToken, ah as Scenarios, m as httpGet } from "./StoreProvider-D9IR5HNN.js";
|
|
11
11
|
const getScenarios = async (legalEntityId, baseUrl, legalEntityType, countryCode) => {
|
|
12
12
|
const scenarioParams = new URLSearchParams({
|
|
13
13
|
...countryCode && { countryCode },
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, j as useQuery, m as httpGet } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, j as useQuery, m as httpGet } from "./StoreProvider-D9IR5HNN.js";
|
|
11
11
|
const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
|
|
12
12
|
return httpGet({
|
|
13
13
|
baseUrl,
|
|
@@ -2,13 +2,13 @@
|
|
|
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] = "ffb98a68-8a43-477f-8676-a73039d6d733", e._sentryDebugIdIdentifier = "sentry-dbid-ffb98a68-8a43-477f-8676-a73039d6d733");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import {
|
|
11
|
-
import { useCallback,
|
|
10
|
+
import { H as createLogger, ao as useQueryClient, b as useApiContext, ap as ToastContext } from "./StoreProvider-D9IR5HNN.js";
|
|
11
|
+
import { useCallback, useContext } from "preact/hooks";
|
|
12
12
|
const logger = createLogger();
|
|
13
13
|
const QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED = [
|
|
14
14
|
"businessLines",
|
|
@@ -38,23 +38,11 @@ const useInvalidateRootLegalEntity = () => {
|
|
|
38
38
|
[rootLegalEntityId.value, queryClient]
|
|
39
39
|
);
|
|
40
40
|
};
|
|
41
|
-
function uuidv4() {
|
|
42
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
43
|
-
let r = Math.random() * 16 | 0, v = c == "x" ? r : r & 3 | 8;
|
|
44
|
-
return v.toString(16);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
const useId = (prefix) => {
|
|
48
|
-
const [uuid] = useState(uuidv4());
|
|
49
|
-
return `${prefix}_${uuid}`;
|
|
50
|
-
};
|
|
51
41
|
function useToastContext() {
|
|
52
42
|
const context = useContext(ToastContext);
|
|
53
43
|
return context;
|
|
54
44
|
}
|
|
55
45
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
useInvalidateRootLegalEntity as c,
|
|
59
|
-
uuidv4 as u
|
|
46
|
+
useInvalidateRootLegalEntity as a,
|
|
47
|
+
useToastContext as u
|
|
60
48
|
};
|
|
@@ -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] = "d2f0983d-2413-45ac-96b5-a8393511d585", e._sentryDebugIdIdentifier = "sentry-dbid-d2f0983d-2413-45ac-96b5-a8393511d585");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
|
-
import { r as LegalEntityTypes,
|
|
12
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
13
|
-
import { U as UnincorporatedPartnershipMemberTypes } from "./
|
|
14
|
-
import { g as getLegalEntityNameBasedOnType } from "./getName-
|
|
11
|
+
import { r as LegalEntityTypes, a9 as getOwnEntityAssociations, c as useLegalEntity, R as ROOT_LE } from "./StoreProvider-D9IR5HNN.js";
|
|
12
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-ahBb64MW.js";
|
|
13
|
+
import { U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-MeN1dp53.js";
|
|
14
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-CzpJ9tV7.js";
|
|
15
15
|
const getMemberOwnerId = (memberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === memberId)?.legalEntityId;
|
|
16
16
|
const convertEntityAssociationIntoUnincorporatedPartnershipMember = (association) => {
|
|
17
17
|
if (association.entityType === LegalEntityTypes.INDIVIDUAL || association.entityType === LegalEntityTypes.ORGANIZATION)
|
|
@@ -0,0 +1,337 @@
|
|
|
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] = "e563e535-c7c9-475b-89b3-48afe284c3a2", e._sentryDebugIdIdentifier = "sentry-dbid-e563e535-c7c9-475b-89b3-48afe284c3a2");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { b as useApiContext, j as useQuery, m as httpGet, as as isEmpty, u as useTranslation, Z as useExperimentsContext, X as IconButton, am as useMutation, k as httpPost } from "./StoreProvider-D9IR5HNN.js";
|
|
11
|
+
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
12
|
+
import { useRef, useMemo, useState, useEffect } from "preact/hooks";
|
|
13
|
+
import { F as Field } from "./Field-B3Vy1-QZ.js";
|
|
14
|
+
import { L as List } from "./List-BAzyC6sw.js";
|
|
15
|
+
import { S as Select } from "./Select-D1rFT3T8.js";
|
|
16
|
+
import { signal } from "@preact/signals";
|
|
17
|
+
const fetchIndustryCodes = async (legalEntityId, baseUrl, businessLineTypes, locale) => {
|
|
18
|
+
const results = await Promise.all(
|
|
19
|
+
businessLineTypes.map((businessLineType) => {
|
|
20
|
+
return httpGet({
|
|
21
|
+
baseUrl,
|
|
22
|
+
path: `legalEntities/${legalEntityId}/businessLines/${businessLineType}/industryCodes?locale=${locale}`
|
|
23
|
+
});
|
|
24
|
+
})
|
|
25
|
+
);
|
|
26
|
+
const deduped = [];
|
|
27
|
+
for (const result of results) {
|
|
28
|
+
for (const industryCodeDTO of result) {
|
|
29
|
+
const found = deduped.find((item) => item.code === industryCodeDTO.code);
|
|
30
|
+
if (!found) {
|
|
31
|
+
deduped.push(industryCodeDTO);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return deduped;
|
|
36
|
+
};
|
|
37
|
+
const useIndustryCodes = (businessLineTypes, locale, options) => {
|
|
38
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
39
|
+
return useQuery({
|
|
40
|
+
queryKey: ["industryCodes", businessLineTypes.join(","), locale],
|
|
41
|
+
queryFn: () => fetchIndustryCodes(rootLegalEntityId.value, baseUrl.value, businessLineTypes, locale),
|
|
42
|
+
...options
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
const industryCodeFieldValidation = () => ({
|
|
46
|
+
industryCodes: {
|
|
47
|
+
modes: ["blur"],
|
|
48
|
+
validate: (industryCode) => !isEmpty(industryCode),
|
|
49
|
+
errorMessage: "fieldIsRequired"
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const industryCodeFieldMetadata = {
|
|
53
|
+
label: "industry",
|
|
54
|
+
validators: [
|
|
55
|
+
industryCodeFieldValidation().industryCodes
|
|
56
|
+
]
|
|
57
|
+
};
|
|
58
|
+
const selectedBusinessLine = signal(void 0);
|
|
59
|
+
const shouldSignNewPci = signal(false);
|
|
60
|
+
const industryCodesContent = "adyen-kyc-industry-codes-content";
|
|
61
|
+
const industryCodesSelection = "adyen-kyc-industry-codes-selection";
|
|
62
|
+
const styles$1 = {
|
|
63
|
+
industryCodesContent,
|
|
64
|
+
industryCodesSelection
|
|
65
|
+
};
|
|
66
|
+
const mapSelectedCodes = (selectedCodes) => {
|
|
67
|
+
return selectedCodes && selectedCodes.length > 0 ? selectedCodes.map((i) => {
|
|
68
|
+
return {
|
|
69
|
+
value: i,
|
|
70
|
+
touched: !!i.id
|
|
71
|
+
};
|
|
72
|
+
}) : [{ value: { id: "", name: "" }, touched: false }];
|
|
73
|
+
};
|
|
74
|
+
function IndustryCodeField({
|
|
75
|
+
data,
|
|
76
|
+
valid,
|
|
77
|
+
errors,
|
|
78
|
+
labels,
|
|
79
|
+
placeholders,
|
|
80
|
+
readonly,
|
|
81
|
+
handleChangeFor,
|
|
82
|
+
guidanceText,
|
|
83
|
+
setErrors,
|
|
84
|
+
// need to manually set errors due to nested select components
|
|
85
|
+
setValid,
|
|
86
|
+
// need to manually set validation due to nested select components
|
|
87
|
+
businessLineTypes,
|
|
88
|
+
single = false,
|
|
89
|
+
industryCodes,
|
|
90
|
+
existingBusinessLines
|
|
91
|
+
}) {
|
|
92
|
+
const { t } = useTranslation("ui");
|
|
93
|
+
const industryCodesRef = useRef(null);
|
|
94
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
95
|
+
const singleIndustryCode = single || !!selectedBusinessLine.value || // when editing a business line, only single dropdown should render
|
|
96
|
+
isExperimentEnabled("EnableLimitToSingleBusinessLine");
|
|
97
|
+
const allIndustryCodeSelectItems = useMemo(
|
|
98
|
+
() => industryCodes?.map((entry) => ({
|
|
99
|
+
id: entry.code,
|
|
100
|
+
name: `${entry.code} - ${entry.description}`
|
|
101
|
+
})) ?? [],
|
|
102
|
+
[industryCodes]
|
|
103
|
+
);
|
|
104
|
+
const selectableIndustryCodes = useMemo(() => {
|
|
105
|
+
if (!businessLineTypes.includes("acquiring")) return allIndustryCodeSelectItems;
|
|
106
|
+
const selectedIds = data.industryCodes?.map((c) => c.id);
|
|
107
|
+
const existingIds = (existingBusinessLines ?? []).map((b) => b.industryCode);
|
|
108
|
+
return allIndustryCodeSelectItems.filter((item) => {
|
|
109
|
+
const isDuplicate = selectedIds?.includes(item.id) || existingIds?.includes(item.id);
|
|
110
|
+
return !isDuplicate;
|
|
111
|
+
});
|
|
112
|
+
}, [allIndustryCodeSelectItems, businessLineTypes, data.industryCodes, existingBusinessLines]);
|
|
113
|
+
const selectedCodes = data.industryCodes;
|
|
114
|
+
const [items, setItems] = useState(mapSelectedCodes(selectedCodes));
|
|
115
|
+
useEffect(() => {
|
|
116
|
+
setItems(mapSelectedCodes(selectedCodes));
|
|
117
|
+
}, [selectedCodes]);
|
|
118
|
+
const updateIndustryCodes = (value) => {
|
|
119
|
+
handleChangeFor("industryCodes")(value);
|
|
120
|
+
};
|
|
121
|
+
const addIndustryCodeField = (e) => {
|
|
122
|
+
if (items[items.length - 1].value.id === "") {
|
|
123
|
+
handleIndustryCodeFocusOut(e, items.length - 1);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const newItems = [...items, { value: { id: "", name: "" }, touched: false }];
|
|
127
|
+
setItems(newItems);
|
|
128
|
+
updateIndustryCodes(newItems.map((item) => item.value));
|
|
129
|
+
};
|
|
130
|
+
const removeField = (indexToRemove) => {
|
|
131
|
+
const newItems = items.filter((_, index) => index !== indexToRemove);
|
|
132
|
+
setItems(newItems);
|
|
133
|
+
updateIndustryCodes(newItems.map((item) => item.value));
|
|
134
|
+
};
|
|
135
|
+
const handleSelectIndustryCode = (indexToUpdate, selectedItem) => {
|
|
136
|
+
setItems((prevItems) => {
|
|
137
|
+
const newItems = [...prevItems];
|
|
138
|
+
newItems[indexToUpdate] = {
|
|
139
|
+
value: {
|
|
140
|
+
id: selectedItem.id,
|
|
141
|
+
name: selectedItem.name
|
|
142
|
+
},
|
|
143
|
+
touched: true
|
|
144
|
+
};
|
|
145
|
+
updateIndustryCodes(
|
|
146
|
+
newItems.map((item) => {
|
|
147
|
+
return {
|
|
148
|
+
id: item.value.id,
|
|
149
|
+
name: item.value.name
|
|
150
|
+
};
|
|
151
|
+
})
|
|
152
|
+
);
|
|
153
|
+
return newItems;
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
const handleIndustryCodeFocusOut = (e, index) => {
|
|
157
|
+
if (industryCodesRef.current && !industryCodesRef.current.contains(e.relatedTarget)) {
|
|
158
|
+
setItems((prevItems) => {
|
|
159
|
+
if (prevItems[index].value.id || prevItems[index].touched) {
|
|
160
|
+
return prevItems;
|
|
161
|
+
}
|
|
162
|
+
const newItems = [...prevItems];
|
|
163
|
+
newItems[index] = { ...newItems[index], touched: true };
|
|
164
|
+
const isGroupInvalid = newItems.some((item) => item.value.id === "");
|
|
165
|
+
if (isGroupInvalid) {
|
|
166
|
+
setErrors?.(
|
|
167
|
+
"industryCodes",
|
|
168
|
+
{
|
|
169
|
+
isValid: false,
|
|
170
|
+
errorMessage: "fieldIsRequired",
|
|
171
|
+
hasError: true
|
|
172
|
+
},
|
|
173
|
+
"industryCodesForm"
|
|
174
|
+
);
|
|
175
|
+
setValid?.("industryCodes", false, "industryCodesForm");
|
|
176
|
+
} else {
|
|
177
|
+
setErrors?.("industryCodes", null, "industryCodesForm");
|
|
178
|
+
setValid?.("industryCodes", true, "industryCodesForm");
|
|
179
|
+
}
|
|
180
|
+
return newItems;
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
return /* @__PURE__ */ jsx(
|
|
185
|
+
Field,
|
|
186
|
+
{
|
|
187
|
+
name: "industryCodes",
|
|
188
|
+
label: labels?.industryCodes || t(($) => $["industry"]),
|
|
189
|
+
errorMessage: errors.industryCodes,
|
|
190
|
+
isValid: valid.industryCodes,
|
|
191
|
+
formatGuidance: guidanceText.industryCodes,
|
|
192
|
+
showErrorIcon: false,
|
|
193
|
+
children: (childProps) => /* @__PURE__ */ jsx(Wrapper, { single: singleIndustryCode, children: /* @__PURE__ */ jsx(
|
|
194
|
+
"div",
|
|
195
|
+
{
|
|
196
|
+
className: styles$1.industryCodesContent,
|
|
197
|
+
ref: industryCodesRef,
|
|
198
|
+
"data-testid": "industryCode",
|
|
199
|
+
children: items.map((code, index) => {
|
|
200
|
+
const isInvalid = code.touched && code.value.id === "";
|
|
201
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$1.industryCodesSelection, children: [
|
|
202
|
+
/* @__PURE__ */ jsx(
|
|
203
|
+
Select,
|
|
204
|
+
{
|
|
205
|
+
...childProps,
|
|
206
|
+
id: `industryCodeSelection-${index}`,
|
|
207
|
+
name: `industryCodeSelection-${index}`,
|
|
208
|
+
selected: code.value,
|
|
209
|
+
placeholder: placeholders?.industryCodes || t(($) => $["industryCode__placeholder"]),
|
|
210
|
+
items: allIndustryCodeSelectItems,
|
|
211
|
+
excludedValues: allIndustryCodeSelectItems.filter(
|
|
212
|
+
(i) => !selectableIndustryCodes.includes(i)
|
|
213
|
+
),
|
|
214
|
+
readonly: !!data.industryCodes && readonly || !!industryCodes && selectableIndustryCodes.length === 0,
|
|
215
|
+
onSelect: (selectedItem) => handleSelectIndustryCode(index, selectedItem),
|
|
216
|
+
isInvalid,
|
|
217
|
+
onBlur: (e) => handleIndustryCodeFocusOut(e, index)
|
|
218
|
+
}
|
|
219
|
+
),
|
|
220
|
+
!singleIndustryCode && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
221
|
+
/* @__PURE__ */ jsx(
|
|
222
|
+
IconButton,
|
|
223
|
+
{
|
|
224
|
+
ariaLabel: t(($) => $["removeIndustryCode"]),
|
|
225
|
+
variant: "tertiary",
|
|
226
|
+
icon: "minusCircleFilled",
|
|
227
|
+
circle: true,
|
|
228
|
+
onClick: () => removeField(index),
|
|
229
|
+
disabled: items.length === 1 || readonly
|
|
230
|
+
}
|
|
231
|
+
),
|
|
232
|
+
/* @__PURE__ */ jsx(
|
|
233
|
+
IconButton,
|
|
234
|
+
{
|
|
235
|
+
ariaLabel: t(($) => $["addIndustryCode"]),
|
|
236
|
+
variant: "tertiary",
|
|
237
|
+
icon: "plusCircleFilled",
|
|
238
|
+
circle: true,
|
|
239
|
+
onClick: addIndustryCodeField,
|
|
240
|
+
disabled: readonly || code.value.id === "" || code.value.id !== "" && index !== items.length - 1 || selectableIndustryCodes.length === 0
|
|
241
|
+
}
|
|
242
|
+
)
|
|
243
|
+
] })
|
|
244
|
+
] }, code.value.id);
|
|
245
|
+
})
|
|
246
|
+
}
|
|
247
|
+
) })
|
|
248
|
+
}
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
function Wrapper({ single, children }) {
|
|
252
|
+
return single ? children : /* @__PURE__ */ jsx(List, { dividers: false, variant: "grouped-primary", children });
|
|
253
|
+
}
|
|
254
|
+
const salesChannelsWithWebData = ["eCommerce", "ecomMoto"];
|
|
255
|
+
const SALES_CHANNELS_FIELD = ["salesChannels"];
|
|
256
|
+
const WEB_DATA_FIELD = ["webAddress", "webExempt"];
|
|
257
|
+
const INDUSTRY_CODE_FIELD = ["industryCodes"];
|
|
258
|
+
const SCTA_FIELD = ["sctaUrl", "sctaExempt"];
|
|
259
|
+
const businessLinesConfigurations = {
|
|
260
|
+
industryCodes: { rule: "REQUIRED" },
|
|
261
|
+
salesChannels: { rule: "REQUIRED" },
|
|
262
|
+
webAddress: { rule: "webAddressRequired" },
|
|
263
|
+
webExempt: { rule: "OPTIONAL" },
|
|
264
|
+
sctaUrl: { rule: "sctaUrlRequired" },
|
|
265
|
+
sctaExempt: { rule: "OPTIONAL" }
|
|
266
|
+
};
|
|
267
|
+
const businessLinesForms = {
|
|
268
|
+
industryCodesForm: {
|
|
269
|
+
formId: "industryCodesForm",
|
|
270
|
+
formName: "industryCodesForm",
|
|
271
|
+
fields: INDUSTRY_CODE_FIELD
|
|
272
|
+
},
|
|
273
|
+
salesChannelsForm: {
|
|
274
|
+
formId: "salesChannelsForm",
|
|
275
|
+
formName: "paymentProcessing",
|
|
276
|
+
fields: [...SALES_CHANNELS_FIELD, ...WEB_DATA_FIELD]
|
|
277
|
+
},
|
|
278
|
+
sctaForm: {
|
|
279
|
+
formId: "sctaForm",
|
|
280
|
+
formName: "japaneseCommercialDisclosure",
|
|
281
|
+
fields: SCTA_FIELD
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
const divider = "adyen-kyc-divider";
|
|
285
|
+
const styles = {
|
|
286
|
+
divider
|
|
287
|
+
};
|
|
288
|
+
const Divider = () => /* @__PURE__ */ jsx("hr", { className: styles.divider });
|
|
289
|
+
const createBusinessLine = async (legalEntityId, baseUrl, data) => {
|
|
290
|
+
return httpPost(
|
|
291
|
+
{
|
|
292
|
+
baseUrl,
|
|
293
|
+
path: `legalEntities/${legalEntityId}/businessLines`
|
|
294
|
+
},
|
|
295
|
+
data
|
|
296
|
+
);
|
|
297
|
+
};
|
|
298
|
+
const useCreateBusinessLine = (options) => {
|
|
299
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
300
|
+
return useMutation({
|
|
301
|
+
mutationFn: (data) => createBusinessLine(rootLegalEntityId.value, baseUrl.value, data),
|
|
302
|
+
...options
|
|
303
|
+
});
|
|
304
|
+
};
|
|
305
|
+
const updateBusinessLine = async (legalEntityId, baseUrl, data) => {
|
|
306
|
+
return httpPost(
|
|
307
|
+
{
|
|
308
|
+
baseUrl,
|
|
309
|
+
path: `legalEntities/${legalEntityId}/businessLines/${data.id}`
|
|
310
|
+
},
|
|
311
|
+
data
|
|
312
|
+
);
|
|
313
|
+
};
|
|
314
|
+
const useUpdateBusinessLine = (options) => {
|
|
315
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
316
|
+
return useMutation({
|
|
317
|
+
mutationFn: (data) => updateBusinessLine(rootLegalEntityId.value, baseUrl.value, data),
|
|
318
|
+
...options
|
|
319
|
+
});
|
|
320
|
+
};
|
|
321
|
+
export {
|
|
322
|
+
Divider as D,
|
|
323
|
+
INDUSTRY_CODE_FIELD as I,
|
|
324
|
+
SALES_CHANNELS_FIELD as S,
|
|
325
|
+
WEB_DATA_FIELD as W,
|
|
326
|
+
IndustryCodeField as a,
|
|
327
|
+
useCreateBusinessLine as b,
|
|
328
|
+
useUpdateBusinessLine as c,
|
|
329
|
+
shouldSignNewPci as d,
|
|
330
|
+
SCTA_FIELD as e,
|
|
331
|
+
selectedBusinessLine as f,
|
|
332
|
+
businessLinesConfigurations as g,
|
|
333
|
+
businessLinesForms as h,
|
|
334
|
+
industryCodeFieldMetadata as i,
|
|
335
|
+
salesChannelsWithWebData as s,
|
|
336
|
+
useIndustryCodes as u
|
|
337
|
+
};
|
|
@@ -2,13 +2,13 @@
|
|
|
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] = "0c7266c0-b46b-4be0-aebf-5c8a6ba2ccb7", e._sentryDebugIdIdentifier = "sentry-dbid-0c7266c0-b46b-4be0-aebf-5c8a6ba2ccb7");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext,
|
|
11
|
-
import {
|
|
10
|
+
import { b as useApiContext, ao as useQueryClient, am as useMutation, k as httpPost } from "./StoreProvider-D9IR5HNN.js";
|
|
11
|
+
import { a as useInvalidateRootLegalEntity } from "./useToastContext-D6Lbxqj9.js";
|
|
12
12
|
const updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
14
14
|
{
|