@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
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6debf4a0-2c27-41a1-860c-22466a29ea7a", e._sentryDebugIdIdentifier = "sentry-dbid-6debf4a0-2c27-41a1-860c-22466a29ea7a");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
-
import cx from "classnames";
|
|
12
|
-
import { b as useId } from "./useToastContext-Cbw29cqc.js";
|
|
13
|
-
import { useState, useEffect } from "preact/hooks";
|
|
14
|
-
import { u as useTranslation, a3 as useAnalyticsContext, G as Typography, B as Button, P as createLogger, V as useI18nContext } from "./StoreProvider-CyzNf7KK.js";
|
|
15
|
-
import { M as Modal } from "./Modal-B4wxf7HK.js";
|
|
16
|
-
const structuredList = "adyen-kyc-structured-list";
|
|
17
|
-
const structuredListSectionField = "adyen-kyc-structured-list-section-field";
|
|
18
|
-
const structuredListSectionLabel = "adyen-kyc-structured-list-section-label";
|
|
19
|
-
const structuredListSectionData = "adyen-kyc-structured-list-section-data";
|
|
20
|
-
const structuredListSectionDetail = "adyen-kyc-structured-list-section-detail";
|
|
21
|
-
const styles$1 = {
|
|
22
|
-
structuredList,
|
|
23
|
-
structuredListSectionField,
|
|
24
|
-
structuredListSectionLabel,
|
|
25
|
-
structuredListSectionData,
|
|
26
|
-
structuredListSectionDetail
|
|
27
|
-
};
|
|
28
|
-
const StructuredList = ({
|
|
29
|
-
className,
|
|
30
|
-
detailsGroupClassName,
|
|
31
|
-
items
|
|
32
|
-
}) => {
|
|
33
|
-
const structuredListClassNames = cx(styles$1.structuredList, className);
|
|
34
|
-
const detailsGroupClassNames = cx(styles$1.structuredListSectionData, detailsGroupClassName);
|
|
35
|
-
return /* @__PURE__ */ jsx("dl", { className: structuredListClassNames, children: items.map((item, index) => /* @__PURE__ */ jsx(
|
|
36
|
-
StructuredListItemEl,
|
|
37
|
-
{
|
|
38
|
-
item,
|
|
39
|
-
detailsGroupClassNames
|
|
40
|
-
},
|
|
41
|
-
index
|
|
42
|
-
)) });
|
|
43
|
-
};
|
|
44
|
-
const StructuredListItemEl = ({
|
|
45
|
-
item: { term, details },
|
|
46
|
-
detailsGroupClassNames
|
|
47
|
-
}) => {
|
|
48
|
-
const uniqueId = useId("structured-list-item");
|
|
49
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$1.structuredListSectionField, children: [
|
|
50
|
-
/* @__PURE__ */ jsx("dt", { id: uniqueId, className: styles$1.structuredListSectionLabel, children: term }),
|
|
51
|
-
Array.isArray(details) ? /* @__PURE__ */ jsx("div", { className: detailsGroupClassNames, children: details.map((detail, index) => /* @__PURE__ */ jsx(
|
|
52
|
-
"dd",
|
|
53
|
-
{
|
|
54
|
-
"aria-labelledby": uniqueId,
|
|
55
|
-
className: styles$1.structuredListSectionDetail,
|
|
56
|
-
children: detail
|
|
57
|
-
},
|
|
58
|
-
index
|
|
59
|
-
)) }) : /* @__PURE__ */ jsx("dd", { "aria-labelledby": uniqueId, className: detailsGroupClassNames, children: details })
|
|
60
|
-
] });
|
|
61
|
-
};
|
|
62
|
-
const confirm = "adyen-kyc-confirm";
|
|
63
|
-
const confirmMessage = "adyen-kyc-confirm-message";
|
|
64
|
-
const confirmActions = "adyen-kyc-confirm-actions";
|
|
65
|
-
const styles = {
|
|
66
|
-
confirm,
|
|
67
|
-
confirmMessage,
|
|
68
|
-
confirmActions
|
|
69
|
-
};
|
|
70
|
-
const Confirm = ({
|
|
71
|
-
description,
|
|
72
|
-
cancelText,
|
|
73
|
-
confirmText,
|
|
74
|
-
critical = false,
|
|
75
|
-
onCancel,
|
|
76
|
-
onConfirm,
|
|
77
|
-
title,
|
|
78
|
-
analyticsEventLabel
|
|
79
|
-
}) => {
|
|
80
|
-
const { t } = useTranslation("ui");
|
|
81
|
-
const userEvents = useAnalyticsContext();
|
|
82
|
-
const [isInFlight, setIsInFlight] = useState(false);
|
|
83
|
-
const showCancelButton = onCancel !== void 0;
|
|
84
|
-
const buttonVariant = critical ? "critical" : "primary";
|
|
85
|
-
useEffect(() => {
|
|
86
|
-
userEvents.addTaskEvent("Opened modal", {
|
|
87
|
-
actionType: "open",
|
|
88
|
-
label: analyticsEventLabel
|
|
89
|
-
});
|
|
90
|
-
}, []);
|
|
91
|
-
const handleConfirm = async () => {
|
|
92
|
-
setIsInFlight(true);
|
|
93
|
-
try {
|
|
94
|
-
await onConfirm();
|
|
95
|
-
} finally {
|
|
96
|
-
setIsInFlight(false);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
return /* @__PURE__ */ jsx(Modal, { size: "small", transition: "dropIn", showCloseButton: false, ariaLabel: title, children: /* @__PURE__ */ jsxs("div", { className: styles.confirm, children: [
|
|
100
|
-
/* @__PURE__ */ jsxs("div", { className: styles.confirmMessage, children: [
|
|
101
|
-
/* @__PURE__ */ jsx(Typography, { variant: "title", el: "h3", children: title }),
|
|
102
|
-
description && /* @__PURE__ */ jsx(Typography, { variant: "body", el: "p", children: description })
|
|
103
|
-
] }),
|
|
104
|
-
/* @__PURE__ */ jsxs("div", { className: styles.confirmActions, children: [
|
|
105
|
-
showCancelButton && /* @__PURE__ */ jsx(Button, { onClick: onCancel, variant: "secondary", disabled: isInFlight, children: cancelText ?? t(($) => $["cancel"]) }),
|
|
106
|
-
/* @__PURE__ */ jsx(Button, { onClick: handleConfirm, variant: buttonVariant, loading: isInFlight, children: confirmText ?? t(($) => $["confirm"]) })
|
|
107
|
-
] })
|
|
108
|
-
] }) });
|
|
109
|
-
};
|
|
110
|
-
const normalizedDatasets = {};
|
|
111
|
-
const datasets = {};
|
|
112
|
-
const createDatasetKey = (identifier, locale) => `${identifier}_${locale}`.toLowerCase();
|
|
113
|
-
const getNormalizeDataset = (datasetKey) => {
|
|
114
|
-
if (!normalizedDatasets[datasetKey]) {
|
|
115
|
-
normalizedDatasets[datasetKey] = {};
|
|
116
|
-
datasets[datasetKey].forEach(({ id, name }) => {
|
|
117
|
-
normalizedDatasets[datasetKey][id] = name;
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
return normalizedDatasets[datasetKey];
|
|
121
|
-
};
|
|
122
|
-
const getDataName = (datasetKey, key) => {
|
|
123
|
-
if (datasets[datasetKey]) {
|
|
124
|
-
const normalizedDataset = getNormalizeDataset(datasetKey);
|
|
125
|
-
return normalizedDataset[key];
|
|
126
|
-
}
|
|
127
|
-
return null;
|
|
128
|
-
};
|
|
129
|
-
const datasetIdentifier = {
|
|
130
|
-
country: "countries",
|
|
131
|
-
state: (countryCode) => `states/${countryCode}`
|
|
132
|
-
};
|
|
133
|
-
function datasetUtilities(locale) {
|
|
134
|
-
return {
|
|
135
|
-
getCountryName: (countryCode) => {
|
|
136
|
-
if (!countryCode) return null;
|
|
137
|
-
const datasetKey = createDatasetKey(datasetIdentifier.country, locale);
|
|
138
|
-
return getDataName(datasetKey, countryCode);
|
|
139
|
-
},
|
|
140
|
-
getStateName: (stateCode, countryCode) => {
|
|
141
|
-
const datasetKey = createDatasetKey(datasetIdentifier.state(countryCode), locale);
|
|
142
|
-
return getDataName(datasetKey, stateCode);
|
|
143
|
-
},
|
|
144
|
-
setDataset: (identifier, dataset) => {
|
|
145
|
-
const datasetKey = createDatasetKey(identifier, locale);
|
|
146
|
-
datasets[datasetKey] = dataset;
|
|
147
|
-
},
|
|
148
|
-
getDataset: (identifier) => {
|
|
149
|
-
const datasetKey = createDatasetKey(identifier, locale);
|
|
150
|
-
return datasets[datasetKey];
|
|
151
|
-
},
|
|
152
|
-
getDatasetKey: (identifier) => createDatasetKey(identifier, locale)
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
const logger$1 = createLogger();
|
|
156
|
-
const countriesImports = /* @__PURE__ */ Object.assign({ "../countries/de-DE.json": () => import("./de-DE-B3nctkG8.js"), "../countries/el-GR.json": () => import("./el-GR-CdgLZhuO.js"), "../countries/en-US.json": () => import("./en-US-DSoLr6rp.js"), "../countries/es-ES.json": () => import("./es-ES-BRfK6tX7.js"), "../countries/fr-FR.json": () => import("./fr-FR-Dk6Lw2On.js"), "../countries/it-IT.json": () => import("./it-IT-D7G4BaP7.js"), "../countries/ja-JP.json": () => import("./ja-JP-DTW_hY1L.js"), "../countries/nl-NL.json": () => import("./nl-NL-CFzm75Jw.js"), "../countries/pt-PT.json": () => import("./pt-PT-DpDxAynk.js"), "../countries/sv-SE.json": () => import("./sv-SE-rckxD-43.js") });
|
|
157
|
-
const loadCountriesDataset = async (locale) => {
|
|
158
|
-
const importForLocale = countriesImports[`../countries/${locale}.json`];
|
|
159
|
-
if (!importForLocale) {
|
|
160
|
-
logger$1.warn(`No countries dataset for ${locale}, falling back to en-US`);
|
|
161
|
-
return (await import("./en-US-DSoLr6rp.js")).default;
|
|
162
|
-
}
|
|
163
|
-
return (await importForLocale()).default;
|
|
164
|
-
};
|
|
165
|
-
const logger = createLogger();
|
|
166
|
-
const statesImports = /* @__PURE__ */ Object.assign({ "../states/AU/en-US.json": () => import("./en-US-Do3mE4BR.js"), "../states/BR/en-US.json": () => import("./en-US-DWT3bRZC.js"), "../states/BR/pt-BR.json": () => import("./pt-BR-CTXtdAVc.js"), "../states/CA/en-US.json": () => import("./en-US-PLYPmyFJ.js"), "../states/JP/en-US.json": () => import("./en-US-QbdqemZi.js"), "../states/JP/ja-JP.json": () => import("./ja-JP-DU7yCJYq.js"), "../states/NZ/en-US.json": () => import("./en-US-C_9Fc9mP.js"), "../states/US/en-US.json": () => import("./en-US-9KQC6F8-.js") });
|
|
167
|
-
const loadStatesDataset = async (country, locale) => {
|
|
168
|
-
const importForLocale = statesImports[`../states/${country}/${locale}.json`];
|
|
169
|
-
if (!importForLocale) {
|
|
170
|
-
logger.warn(`No ${country} states dataset for ${locale}, falling back to en-US`);
|
|
171
|
-
const fallbackImport = statesImports[`../states/${country}/en-US.json`];
|
|
172
|
-
return (await fallbackImport()).default;
|
|
173
|
-
}
|
|
174
|
-
return (await importForLocale()).default;
|
|
175
|
-
};
|
|
176
|
-
const loadDataset = async (identifier, locale) => {
|
|
177
|
-
if (identifier === datasetIdentifier.country) {
|
|
178
|
-
return loadCountriesDataset(locale);
|
|
179
|
-
}
|
|
180
|
-
if (identifier.startsWith("states")) {
|
|
181
|
-
const country = identifier.slice(identifier.indexOf("/") + 1);
|
|
182
|
-
return loadStatesDataset(country, locale);
|
|
183
|
-
}
|
|
184
|
-
throw new Error(`Unknown dataset: ${identifier}`);
|
|
185
|
-
};
|
|
186
|
-
const getDataset = async (identifier, locale) => {
|
|
187
|
-
const datasetUtils = datasetUtilities(locale);
|
|
188
|
-
const dataset = datasetUtils.getDataset(identifier);
|
|
189
|
-
if (dataset) {
|
|
190
|
-
return new Promise((resolve) => {
|
|
191
|
-
resolve(dataset);
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
return loadDataset(identifier, locale).then((datasetResponse) => {
|
|
195
|
-
datasetUtils.setDataset(identifier, datasetResponse);
|
|
196
|
-
return datasetResponse;
|
|
197
|
-
});
|
|
198
|
-
};
|
|
199
|
-
function useDataset(datasetIdentifier2, skip) {
|
|
200
|
-
const { i18n } = useI18nContext();
|
|
201
|
-
const [dataset, setDataset] = useState([]);
|
|
202
|
-
const [loaded, setLoaded] = useState(false);
|
|
203
|
-
useEffect(() => {
|
|
204
|
-
if (skip) return;
|
|
205
|
-
getDataset(datasetIdentifier2, i18n.locale).then((response) => {
|
|
206
|
-
const result = response && response.length ? response : [];
|
|
207
|
-
setDataset(result);
|
|
208
|
-
}).catch(() => {
|
|
209
|
-
setDataset([]);
|
|
210
|
-
}).finally(() => setLoaded(true));
|
|
211
|
-
}, [datasetIdentifier2, i18n.locale, skip]);
|
|
212
|
-
return { dataset, loaded };
|
|
213
|
-
}
|
|
214
|
-
export {
|
|
215
|
-
Confirm as C,
|
|
216
|
-
StructuredList as S,
|
|
217
|
-
datasetUtilities as a,
|
|
218
|
-
datasetIdentifier as d,
|
|
219
|
-
useDataset as u
|
|
220
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "edd3eb4c-07d8-41b3-a271-c523cb2de77a", e._sentryDebugIdIdentifier = "sentry-dbid-edd3eb4c-07d8-41b3-a271-c523cb2de77a");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { b as useApiContext, a0 as useMutation, k as httpPost } from "./StoreProvider-CyzNf7KK.js";
|
|
11
|
-
const createBusinessLine = async (legalEntityId, baseUrl, data) => {
|
|
12
|
-
return httpPost(
|
|
13
|
-
{
|
|
14
|
-
baseUrl,
|
|
15
|
-
path: `legalEntities/${legalEntityId}/businessLines`
|
|
16
|
-
},
|
|
17
|
-
data
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
const useCreateBusinessLine = (options) => {
|
|
21
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
22
|
-
return useMutation({
|
|
23
|
-
mutationFn: (data) => createBusinessLine(rootLegalEntityId.value, baseUrl.value, data),
|
|
24
|
-
...options
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const updateBusinessLine = async (legalEntityId, baseUrl, data) => {
|
|
28
|
-
return httpPost(
|
|
29
|
-
{
|
|
30
|
-
baseUrl,
|
|
31
|
-
path: `legalEntities/${legalEntityId}/businessLines/${data.id}`
|
|
32
|
-
},
|
|
33
|
-
data
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
const useUpdateBusinessLine = (options) => {
|
|
37
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
38
|
-
return useMutation({
|
|
39
|
-
mutationFn: (data) => updateBusinessLine(rootLegalEntityId.value, baseUrl.value, data),
|
|
40
|
-
...options
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
export {
|
|
44
|
-
useUpdateBusinessLine as a,
|
|
45
|
-
useCreateBusinessLine as u
|
|
46
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
4
|
-
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "db12d8b1-4087-400b-9930-79d462b8bd3b", e._sentryDebugIdIdentifier = "sentry-dbid-db12d8b1-4087-400b-9930-79d462b8bd3b");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { useCallback } from "preact/hooks";
|
|
11
|
-
import { b as useApiContext, k as httpPost } from "./StoreProvider-CyzNf7KK.js";
|
|
12
|
-
import { e as emailPattern } from "./basePatterns-BwdnMQxI.js";
|
|
13
|
-
const validatePhoneNumber = (baseUrl, data) => {
|
|
14
|
-
return httpPost(
|
|
15
|
-
{
|
|
16
|
-
baseUrl,
|
|
17
|
-
path: `validations/phonenumber`
|
|
18
|
-
},
|
|
19
|
-
data
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
const useValidatePhoneNumberImperatively = () => {
|
|
23
|
-
const { baseUrl } = useApiContext();
|
|
24
|
-
return useCallback(
|
|
25
|
-
(data) => validatePhoneNumber(baseUrl.value, data),
|
|
26
|
-
[baseUrl.value]
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
const contactDetailsValidationRules = {
|
|
30
|
-
email: [
|
|
31
|
-
{
|
|
32
|
-
modes: ["blur"],
|
|
33
|
-
validate: (email) => email ? emailPattern.test(email) : false,
|
|
34
|
-
errorMessage: "invalidEmail"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
contactDetailsValidationRules as c,
|
|
40
|
-
useValidatePhoneNumberImperatively as u
|
|
41
|
-
};
|