@adyen/kyc-components 3.85.0 → 3.86.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-DWt6MA7A.js → AcceptTermsOfServiceComponent-DzMlzUjz.js} +16 -17
- package/dist/{Accordion-DQSd9JrF.js → Accordion-ZHPTn2Gl.js} +2 -2
- package/dist/{AccountSetupRejected-Y2jV7DOd.js → AccountSetupRejected-DON-7H74.js} +4 -4
- package/dist/{Address-CN31gTRW.js → Address-ChPj2pfR.js} +337 -22
- package/dist/{Alert-B2qwr9au.js → Alert-CeZqoFeT.js} +3 -3
- package/dist/{Avatar-CrL6cVDB.js → Avatar-zXT7v3KF.js} +2 -2
- package/dist/{BusinessDetailsMultiformDropin-BB1mTi0Z.js → BusinessDetailsMultiformDropin-DKiYg8gJ.js} +89 -3112
- package/dist/{BusinessFinancingComponent-BevBrUTE.js → BusinessFinancingComponent-BRziB5i-.js} +6 -6
- package/dist/{BusinessFinancingDropin-BgU5hfv0.js → BusinessFinancingDropin-CUmKL5bO.js} +21 -38
- package/dist/{BusinessFinancingPage-u2Xu42u-.js → BusinessFinancingPage-DhhnCxFQ.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-BNxEzkjO.js → BusinessTypeSelectionPage-B_dVM7cC.js} +9 -8
- package/dist/Card-Bz2B4J0v.js +82 -0
- package/dist/ConstitutionalDocument-Dt9O9bVo.js +143 -0
- package/dist/{CountryField-CFppUh42.js → CountryField-Bv9P8dRJ.js} +110 -78
- package/dist/CreateIndividualComponent-Mw4AiW_M.js +71 -0
- package/dist/CreateTransferInstrumentComponent-usUQlcH_.js +66 -0
- package/dist/{Currency-Zz8j3LFf.js → Currency-SzvigNNo.js} +8 -63
- package/dist/{CustomerSupport-CkqG00fn.js → CustomerSupport-C_KLB51k.js} +21 -9
- package/dist/{DebugModal-Cxp_Lbjk.js → DebugModal-DYolUZQS.js} +9 -9
- package/dist/{DecisionMakerDetailsPage-kpoxsSYP.js → DecisionMakerDetailsPage-C2BzKLSi.js} +7 -7
- package/dist/{DecisionMakers-DMboYynJ.js → DecisionMakers-DTYzQWdY.js} +18 -20
- package/dist/{EmbeddedStatus-DdZv9Kwp.js → EmbeddedStatus-jepajhAF.js} +3 -3
- package/dist/{EndStateLayout-Cswr0wiZ.js → EndStateLayout-DQm7Xrqx.js} +2 -2
- package/dist/{useFormContext-DrrsFJH7.js → FormFlow-A9b0QEcM.js} +10 -16
- package/dist/{FormNavigation-DrejHtXO.js → FormNavigation-DEdNWaAc.js} +5 -5
- package/dist/{useGlobalData-rR_jnTzW.js → FormWrapper-DjWyqVD2.js} +12 -79
- package/dist/{IndividualOnfidoDropin-CydUe7_6.js → IndividualOnfido-BMIkKHvJ.js} +8187 -6328
- package/dist/IndividualOnfidoDropin-DBQF0Onh.js +2502 -0
- package/dist/{InputText-EX5kyD9L.js → InputText-BG-TiSNN.js} +4 -4
- package/dist/{Introduction-DncY2r7T.js → Introduction-BgoEJd8o.js} +4 -4
- package/dist/{JpAddress-BTfvrykR.js → JpAddress-Jxj9u4D5.js} +8 -8
- package/dist/{LegalRepresentativeDetailsPage-DxqaU2W7.js → LegalRepresentativeDetailsPage-BH5AnQhk.js} +5 -5
- package/dist/{ListItem-pn0XFAz_.js → ListItem-DIDj0vuO.js} +3 -3
- package/dist/{ManageIndividualComponent-CKRuUS0t.js → ManageIndividualComponent-CJKXW8rK.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-DDgriC3w.js → ManageTermsOfServiceComponent-DNf00D1s.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-BoQn6JaV.js → ManageTransferInstrumentComponent-gVWN389q.js} +14 -13
- package/dist/{MaybeModal-B1X7K4z1.js → MaybeModal-D51ALTH6.js} +3 -3
- package/dist/{Modal-ConNvgj4.js → Modal-C9aImxis.js} +2 -2
- package/dist/OnboardingDropinComponent-D-tQ12Sy.js +9791 -0
- package/dist/{PayoutDetailsDropin-CHOa81Ot.js → PayoutDetailsDropin-CxWPXV7j.js} +288 -158
- package/dist/{Review-BAuL4AQ-.js → Review-CRhM6n_P.js} +8 -8
- package/dist/RootBusinessDetailsPage-DZrT_e0g.js +61 -0
- package/dist/{RootBusinessLinesPage-D-YRRyIW.js → RootBusinessLinesPage-CJUpoVy5.js} +267 -144
- package/dist/RootIndividualDetailsPage-pqVuzOoJ.js +80 -0
- package/dist/{SignPCIComponent-B6FQiV5E.js → SignPCIComponent-BNbx3OzX.js} +11 -11
- package/dist/{SingpassSelection-DxGUYazk.js → SingpassSelection-BAa3S705.js} +4 -5
- package/dist/SoleProprietorshipPage-Bhw3GBKP.js +60 -0
- package/dist/{SourceOfFundsPage-Ce-Mim_H.js → SourceOfFundsPage-CJXpHSgo.js} +24 -29
- package/dist/{StepProgressIndicator-BymtNCPV.js → StepProgressIndicator-Dncrs7ra.js} +2 -2
- package/dist/{StoreProvider-BYjTSjnX.js → StoreProvider-CWnZNw9D.js} +427 -305
- package/dist/{TaskItemStatus-BholBQ7C.js → TaskItemStatus-D3ri_-L2.js} +3 -3
- package/dist/{TaxReportingDropin-CSa5vto5.js → TaxReportingDropin-Du7KU--L.js} +15 -17
- package/dist/{TrustDetailsPage-CYMeuEyr.js → TrustDetailsPage-SGmHwgzj.js} +24 -32
- package/dist/{TrustMemberCompanyPage-DICY9KDR.js → TrustMemberCompanyPage-BkQ9q4_T.js} +6 -6
- package/dist/{TrustMemberIndividualPage-DUGmI852.js → TrustMemberIndividualPage-CIr73hS-.js} +5 -5
- package/dist/UnincorporatedPartnershipIndividualPage-DQxHTyUp.js +65 -0
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CuvkBZ2N.js → UnincorporatedPartnershipMemberCompanyPage-DOWqNUHn.js} +6 -6
- package/dist/VerificationErrorAlert-DDsMxj76.js +79 -0
- package/dist/{ViewVerificationStatusComponent-zXuO8CY1.js → ViewVerificationStatusComponent-Hqp0gnec.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 +20 -20
- package/dist/adyen-onboarding.js +2 -2
- 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/{bg-BG-fr-xfUBV.js → bg-BG-B1GR6lKu.js} +3 -1
- package/dist/{bg-BG-BIOMFPaW.js → bg-BG-BC1dwNN2.js} +2 -5
- package/dist/bg-BG-BJo9yIYj.js +13 -0
- package/dist/bg-BG-D8qq7TQJ.js +94 -0
- package/dist/bg-BG-a6CQ0hKw.js +13 -0
- package/dist/{bg-BG-Cs_1PU3v.js → bg-BG-e6Rs6yz_.js} +4 -1
- package/dist/{cs-CZ-DNWTRefA.js → cs-CZ-2foXfkBk.js} +2 -5
- package/dist/cs-CZ-BAr1-JAS.js +13 -0
- package/dist/cs-CZ-ChGeQ9s0.js +94 -0
- package/dist/{cs-CZ-C0sNB1Fm.js → cs-CZ-DBQXByj7.js} +3 -1
- package/dist/cs-CZ-LGBI1w0Z.js +13 -0
- package/dist/{cs-CZ-B2WAqmaW.js → cs-CZ-Q6NVYK-k.js} +4 -1
- package/dist/da-DK-914Viqia.js +13 -0
- package/dist/{da-DK-8dk9Q_Wk.js → da-DK-CjjWmhN6.js} +3 -1
- package/dist/da-DK-CyHH8kX3.js +94 -0
- package/dist/{da-DK-D-eeokQn.js → da-DK-DSYEF7Q1.js} +4 -1
- package/dist/{da-DK-D-PlwKvZ.js → da-DK-DU3_xdWg.js} +2 -5
- package/dist/da-DK-DoHb4ssx.js +13 -0
- package/dist/{de-DE-Dcs3W1fT.js → de-DE-B9-ILIdw.js} +4 -1
- package/dist/{de-DE-4GAd_srm.js → de-DE-BODG29hR.js} +2 -5
- package/dist/de-DE-BXKZNAA1.js +13 -0
- package/dist/de-DE-DL6SrIBE.js +94 -0
- package/dist/{de-DE-CCyKie8B.js → de-DE-DoQHxDRp.js} +3 -1
- package/dist/de-DE-R6YgDOo5.js +13 -0
- package/dist/{analytics-DkXXx2b6.js → debouncedInputEvent-B3Lwtvx_.js} +7 -21
- package/dist/{validate-DzaSMOa2.js → documentUtils-C2iCagu9.js} +3 -167
- package/dist/{dropinUtils-CCEDaAJW.js → dropinUtils-L9qJuAw0.js} +4 -20
- package/dist/el-GR-BnMw4HQ7.js +13 -0
- package/dist/{el-GR-D7zMcBtK.js → el-GR-CnoZeZlX.js} +3 -1
- package/dist/{el-GR-DBum-QDu.js → el-GR-DYjcbiSc.js} +4 -1
- package/dist/{el-GR-Ddnh0NhQ.js → el-GR-DcIdm3iK.js} +2 -5
- package/dist/el-GR-DgaUGjyJ.js +13 -0
- package/dist/el-GR-l0JeDNPy.js +94 -0
- package/dist/{en-US-DjF6iC7G.js → en-US-BxEW5N6f.js} +44 -5
- package/dist/{en-US-BwDZ0WHW.js → en-US-C5WyUweF.js} +3 -1
- package/dist/en-US-CTZwL084.js +13 -0
- package/dist/{en-US-BCFNoF5y.js → en-US-DYo4OF-P.js} +8 -7
- package/dist/{en-US-DdeSoN_2.js → en-US-gsp7CD_E.js} +5 -1
- package/dist/{es-ES-JvAvmB2A.js → es-ES-BMrse1nQ.js} +3 -1
- package/dist/es-ES-BWAlCq7R.js +13 -0
- package/dist/{es-ES-C7XjLOHi.js → es-ES-C-tTuMLH.js} +4 -1
- package/dist/es-ES-C1ClJ2XE.js +94 -0
- package/dist/{es-ES-C4lENXHH.js → es-ES-CMQqgMEJ.js} +2 -5
- package/dist/es-ES-dMSfTLXF.js +13 -0
- package/dist/{et-EE-SJf3_Ega.js → et-EE-BE8bHZns.js} +3 -1
- package/dist/et-EE-BG_Y29oV.js +94 -0
- package/dist/{et-EE-BUG05EDz.js → et-EE-BzLAp08F.js} +4 -1
- package/dist/et-EE-D9SV0taO.js +13 -0
- package/dist/{et-EE-3EQr-1cj.js → et-EE-DcpuYQwB.js} +2 -5
- package/dist/et-EE-l977xCZ_.js +13 -0
- package/dist/fi-FI-0ScajGUB.js +13 -0
- package/dist/{fi-FI-Byvvcxxq.js → fi-FI-4GTHkwOL.js} +2 -5
- package/dist/{fi-FI-Cy2hAl0B.js → fi-FI-Bmu7sndb.js} +3 -1
- package/dist/fi-FI-C7GrKbXx.js +13 -0
- package/dist/fi-FI-bIhXiQPL.js +94 -0
- package/dist/{fi-FI-CEzjKgiz.js → fi-FI-pyHLbmel.js} +4 -1
- package/dist/{MaskedInput-DB6EYmfa.js → fieldConfigurations-DVV23oeM.js} +616 -14
- package/dist/{fr-FR-E_UubsZ-.js → fr-FR-Ba-HRBQ7.js} +2 -5
- package/dist/fr-FR-Bj275MRb.js +94 -0
- package/dist/fr-FR-CqCcxkgA.js +13 -0
- package/dist/{fr-FR-DNJiLv9b.js → fr-FR-DG3tEkdN.js} +4 -1
- package/dist/fr-FR-o45TzYMp.js +13 -0
- package/dist/{fr-FR-BmW46mYd.js → fr-FR-ufKVxWpT.js} +3 -1
- package/dist/getFieldsWithExistingData-C6JBh3D6.js +22 -0
- package/dist/{getName-Dc03c4n_.js → getName-k5oRc0oZ.js} +9 -2
- package/dist/{hasDataChanged-CUdKM92N.js → hasDataChanged-CogwJI1I.js} +2 -2
- package/dist/{hr-HR-TVOgDkBf.js → hr-HR-BFx1T11G.js} +2 -5
- package/dist/{hr-HR-WMnlxMEY.js → hr-HR-BRFErTkv.js} +4 -1
- package/dist/{hr-HR-c1Si_0s4.js → hr-HR-BYXLJcPZ.js} +3 -1
- package/dist/hr-HR-CL0q_D2U.js +94 -0
- package/dist/hr-HR-CoCrArfg.js +13 -0
- package/dist/hr-HR-YG9hvMMj.js +13 -0
- package/dist/hu-HU-BrxUJuJh.js +13 -0
- package/dist/{hu-HU-B2nrl0pw.js → hu-HU-CJA8w351.js} +4 -1
- package/dist/hu-HU-DIurnBC3.js +13 -0
- package/dist/{hu-HU-DRONW_47.js → hu-HU-GXvzHwu9.js} +2 -5
- package/dist/{hu-HU-CibGC8KY.js → hu-HU-J4qBifyy.js} +3 -1
- package/dist/hu-HU-cLqGFTTR.js +94 -0
- package/dist/{iframeWidget-BWwxgbNs.js → iframeWidget-D2CKFlJk.js} +4 -4
- package/dist/{it-IT-BMjuva_2.js → it-IT-B_5GkLBx.js} +3 -1
- package/dist/{it-IT-DuBLJIdz.js → it-IT-Bw3VIHJB.js} +2 -5
- package/dist/it-IT-C0Qk47kh.js +94 -0
- package/dist/it-IT-CNS4NmYX.js +13 -0
- package/dist/it-IT-Cztl5jRY.js +13 -0
- package/dist/{it-IT-BRmX2jEi.js → it-IT-mhNjrQZn.js} +4 -1
- package/dist/{ja-JP-Cr_qjpZ2.js → ja-JP-BUrknIDB.js} +3 -1
- package/dist/{ja-JP-CCnzjx-u.js → ja-JP-BxEWI56P.js} +9 -1
- package/dist/{ja-JP-gRRH8Eph.js → ja-JP-CfrHlRGC.js} +4 -1
- package/dist/{ja-JP-CJ_j_HAA.js → ja-JP-DI7lRfpI.js} +2 -5
- package/dist/ja-JP-DSdZj-it.js +94 -0
- package/dist/ja-JP-DXkV1ta4.js +13 -0
- package/dist/{localizeDateString-rfEOu5f7.js → localizeDateString-ZCoTLjs1.js} +2 -2
- package/dist/lt-LT-BJTBEa5D.js +13 -0
- package/dist/lt-LT-C-dKiExL.js +94 -0
- package/dist/{lt-LT-BJQDUanx.js → lt-LT-C0Acftnm.js} +4 -1
- package/dist/lt-LT-D1viSP-v.js +13 -0
- package/dist/{lt-LT-DjNjg3Pl.js → lt-LT-L0wG5Pd2.js} +3 -1
- package/dist/{lt-LT-CBBDNCnp.js → lt-LT-ewVNPhQN.js} +2 -5
- package/dist/lv-LV-AkiOewnL.js +13 -0
- package/dist/{lv-LV-h3nTokkM.js → lv-LV-Bnq61WAt.js} +4 -1
- package/dist/{lv-LV-BpRfRfMz.js → lv-LV-DFvpmmGg.js} +3 -1
- package/dist/lv-LV-GI-ZDM0K.js +13 -0
- package/dist/{lv-LV-CtIe38WU.js → lv-LV-JqXvRt4T.js} +2 -5
- package/dist/lv-LV-UkEOuqFz.js +94 -0
- package/dist/{mapExistingFile-D_HVWRXe.js → mapExistingFile-txzqej6F.js} +5 -80
- package/dist/mapFinancialReportsToFinancialInformation-DoTIj0Q-.js +67 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-pPCQCgRx.js +63 -0
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-DsQrqqP5.js → mapLegalEntityToIndividualOnfidoSchema-B8NxtO2j.js} +3 -63
- package/dist/{mapTransferInstrumentToPayoutAccount-MugvfqfK.js → mapTransferInstrumentToPayoutAccount-D9lyD7nx.js} +2 -2
- package/dist/nl-NL-B6B4Z_tr.js +13 -0
- package/dist/nl-NL-Cfr5hMtI.js +94 -0
- package/dist/{nl-NL-CE4l8R5l.js → nl-NL-DR1wVqQC.js} +2 -5
- package/dist/{nl-NL-oaBDOlm6.js → nl-NL-UhpFianh.js} +3 -1
- package/dist/nl-NL-VneIcgWO.js +13 -0
- package/dist/{nl-NL-YzDSCWLL.js → nl-NL-donw5yvS.js} +4 -1
- package/dist/no-NO-ASO8Je2l.js +94 -0
- package/dist/{no-NO-B1_YJlMP.js → no-NO-BZmigu6-.js} +2 -5
- package/dist/{no-NO-BTrfxWS7.js → no-NO-DRF-gOWI.js} +3 -1
- package/dist/{no-NO-Big2B13b.js → no-NO-Dev7r3VA.js} +4 -1
- package/dist/no-NO-Dn1LUbDp.js +13 -0
- package/dist/no-NO-Dqp598Ox.js +13 -0
- package/dist/payout-verification-instant-5u-wvFKv.js +41 -0
- package/dist/payout-verification-manual-BJsf7QPE.js +90 -0
- package/dist/{pl-PL-DGYFY42P.js → pl-PL-BKxhMICw.js} +2 -5
- package/dist/pl-PL-C1cP4Qpn.js +13 -0
- package/dist/pl-PL-CG4rvgUo.js +94 -0
- package/dist/{pl-PL-C72GTDxW.js → pl-PL-CHyLS1B7.js} +3 -1
- package/dist/{pl-PL-CL483jMb.js → pl-PL-DU_Xulyu.js} +4 -1
- package/dist/pl-PL-Zdh_Xu43.js +13 -0
- package/dist/{process-field-configurations-CiECrUSj.js → process-field-configurations-D2EUZow3.js} +3 -3
- package/dist/{pt-BR-CtFCi7U4.js → pt-BR-CFZE5Nop.js} +3 -1
- package/dist/{pt-BR-DJOzf0y2.js → pt-BR-DeXo4rsi.js} +4 -1
- package/dist/pt-BR-DkzLiK7Y.js +13 -0
- package/dist/pt-BR-DqLaaG4L.js +13 -0
- package/dist/pt-BR-IWTcYKu9.js +94 -0
- package/dist/{pt-BR-Co8OqKh-.js → pt-BR-wAIdhUru.js} +2 -5
- package/dist/{pt-PT-XAn7WGle.js → pt-PT-Bc9JI4eu.js} +3 -1
- package/dist/{pt-PT-pKLoM66X.js → pt-PT-C1qHVe7L.js} +2 -5
- package/dist/pt-PT-CoTUf3zo.js +13 -0
- package/dist/{pt-PT-B3qoJ3Fr.js → pt-PT-DkJdR6SS.js} +4 -1
- package/dist/pt-PT-LZZYQKaC.js +94 -0
- package/dist/pt-PT-uiREjC_e.js +13 -0
- package/dist/{resolveEnvironment-DTYC79J1.js → resolveEnvironment-CU4TOfg6.js} +3 -3
- package/dist/{ro-RO-Ct_BJvsc.js → ro-RO-BDjHimxe.js} +4 -1
- package/dist/{ro-RO-qX8X1Q1m.js → ro-RO-BFzooIri.js} +3 -1
- package/dist/ro-RO-C835aMET.js +13 -0
- package/dist/ro-RO-_HSYnLLu.js +13 -0
- package/dist/{ro-RO-D3rQ93wa.js → ro-RO-juw6hKRk.js} +2 -5
- package/dist/ro-RO-nVSeNtIQ.js +94 -0
- package/dist/{rules-BfrH23mO.js → rules-LaFMJfnA.js} +4 -5
- package/dist/{sk-SK-CmH1I1tp.js → sk-SK-BM57awWi.js} +2 -5
- package/dist/sk-SK-BX0wsQH4.js +94 -0
- package/dist/sk-SK-D6KtBU3q.js +13 -0
- package/dist/{sk-SK-CjdK4BKW.js → sk-SK-DRuiKuEp.js} +3 -1
- package/dist/sk-SK-K03EHmJF.js +13 -0
- package/dist/{sk-SK-FGK1FMMO.js → sk-SK-atqQJid1.js} +4 -1
- package/dist/{sl-SI-lPxRRPsh.js → sl-SI-CmYmQ6nG.js} +3 -1
- package/dist/{sl-SI-Cz28AFTz.js → sl-SI-CwKpXVCh.js} +4 -1
- package/dist/sl-SI-Dt7rovIT.js +94 -0
- package/dist/{sl-SI-hnlbW1OT.js → sl-SI-g2WSP0Tj.js} +2 -5
- package/dist/sl-SI-gM40Ay3W.js +13 -0
- package/dist/sl-SI-wYYQibM-.js +13 -0
- package/dist/style.css +931 -892
- package/dist/styles-CLV89_hH.js +931 -892
- package/dist/sv-SE-Bnhsdw8c.js +13 -0
- package/dist/{sv-SE-DLl7OGxl.js → sv-SE-CGCP_6VE.js} +4 -1
- package/dist/{sv-SE-BPpQ-05i.js → sv-SE-CHomf31L.js} +3 -1
- package/dist/{sv-SE-7Cbo1oic.js → sv-SE-Cfs0NHgG.js} +2 -5
- package/dist/sv-SE-DqzH809e.js +94 -0
- package/dist/sv-SE-uisfAT9L.js +13 -0
- package/dist/{useForm-CNi1k1NR.js → trackNavigation-gyYoCNvj.js} +25 -8
- package/dist/types/api/businessLines/businessLines.types.d.ts +7 -2
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +5 -0
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +7 -0
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +51 -51
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -3
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +2 -4
- package/dist/types/components/BusinessLines/forms/rules.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesStore.d.ts +2 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLines/ExistingBusinessLines/BusinessLineModal.d.ts +3 -2
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +11 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +124 -124
- package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +1 -1
- package/dist/types/components/Shared/FormNavigation/types.d.ts +0 -2
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +1 -3
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
- package/dist/types/components/Shared/Summary/types.d.ts +0 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +4 -0
- package/dist/types/context/ExperimentContext/types.d.ts +12 -0
- package/dist/types/core/errorMapping.d.ts +4 -1
- package/dist/types/core/user-events.d.ts +7 -9
- package/dist/types/hooks/{useAnalytics.d.ts → useAnalytics/useAnalytics.d.ts} +1 -7
- package/dist/types/utils/analytics/convertToEmbeddedEvent.d.ts +9 -0
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +19 -0
- package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +13 -0
- package/dist/types/utils/{trackNavigation.d.ts → analytics/trackNavigation.d.ts} +1 -1
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/filterProblemsByTaskForms.d.ts +12 -0
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/{types-DNH7oNbA.js → types-C1FJZQd1.js} +2 -2
- package/dist/{types-SBNit_kK.js → types-D0aacEF5.js} +27 -3
- package/dist/{types-DHmyPbAn.js → types-DQVZ5BSQ.js} +14 -2
- package/dist/{useAssociatedLegalEntity-CmhNWabq.js → useAssociatedLegalEntity-CuTN8T5x.js} +2 -2
- package/dist/{useDataset-C0A9qR_N.js → useDataset-C4vcroxo.js} +3 -3
- package/dist/{useMultiForm-CU58VvHX.js → useMultiForm-GpoMvhwU.js} +4 -4
- package/dist/{useOnboardingStatus-DuIJSnGH.js → useOnboardingStatus-Cifcsbcr.js} +1 -1
- package/dist/{useScenarios-T0NF0gUi.js → useScenarios-AyvycExm.js} +2 -2
- package/dist/{useTermsOfServiceStatus-1oGd6y18.js → useTermsOfServiceStatus-yhwwFpfh.js} +1 -1
- package/dist/{useToastContext-DHgUoF6x.js → useToastContext-CCxuinr_.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-57G1Bu4k.js → useUnincorporatedPartnershipMembers-D_N_aPNq.js} +62 -7
- package/dist/{utils-DZz9bCID.js → utils-U0nEMoML.js} +6 -46
- package/dist/validate-BRRbVwma.js +41 -0
- package/dist/{validate-Bz6-McmI.js → validate-Bqbj3vVS.js} +2 -2
- package/dist/{validationError-Ci4nlmhZ.js → validationError-DhRqgFgA.js} +2 -2
- package/package.json +1 -1
- package/dist/Card-N9psV2kP.js +0 -147
- package/dist/CreateIndividualComponent-BL3dK960.js +0 -71
- package/dist/CreateTransferInstrumentComponent-kxMU_XVD.js +0 -66
- package/dist/Divider-DiS12D_i.js +0 -239
- package/dist/Dropzone-DSyKXnbD.js +0 -218
- package/dist/Image-BhBefhke.js +0 -22
- package/dist/InputDate-C2j7qA_b.js +0 -43
- package/dist/InputGroup-WBfGDV5F.js +0 -32
- package/dist/LandingLayout-Ca68Z9DA.js +0 -60
- package/dist/Link-BS6Zpegg.js +0 -35
- package/dist/OnboardingDropinComponent-IKzrTT3r.js +0 -4274
- package/dist/RadioGroup-DhwjhH0X.js +0 -144
- package/dist/RegistrationAddress-BnyrwF-X.js +0 -2337
- package/dist/RootBusinessDetailsPage-BFR4Sxfp.js +0 -61
- package/dist/RootIndividualDetailsPage-D6lLtamt.js +0 -76
- package/dist/SoleProprietorshipPage-BKlAFmwp.js +0 -60
- package/dist/Spacer-BK3jDget.js +0 -18
- package/dist/TaxInformationField-DCjcBMwQ.js +0 -3094
- package/dist/TileGroup-BkTpSpVX.js +0 -174
- package/dist/UnincorporatedPartnershipIndividualPage-DZZc7sEn.js +0 -65
- package/dist/bafinUtils-DkP3ZoN4.js +0 -366
- package/dist/bg-BG-BLe6BCNz.js +0 -13
- package/dist/bg-BG-BPsOhDfg.js +0 -13
- package/dist/bg-BG-z3gZQvGq.js +0 -42
- package/dist/commonValidators-BLvtzPWZ.js +0 -24
- package/dist/cs-CZ-C5lyVYlZ.js +0 -42
- package/dist/cs-CZ-CHzJM-ii.js +0 -13
- package/dist/cs-CZ-xoLsda7i.js +0 -13
- package/dist/currency-BGwQyxBo.js +0 -36
- package/dist/da-DK-CYl2jko-.js +0 -42
- package/dist/da-DK-D-TJghBi.js +0 -13
- package/dist/da-DK-XNMYSp7w.js +0 -13
- package/dist/de-DE-BI7AAdOv.js +0 -13
- package/dist/de-DE-CCmlaL2F.js +0 -13
- package/dist/de-DE-DlUEkik0.js +0 -42
- package/dist/el-GR-DZ8GheJK.js +0 -42
- package/dist/el-GR-DoCIcce-.js +0 -13
- package/dist/el-GR-kYiInIQ9.js +0 -13
- package/dist/en-US-DYpvuCLO.js +0 -13
- package/dist/es-ES-CJMsyMAc.js +0 -13
- package/dist/es-ES-CnNU6AJv.js +0 -13
- package/dist/es-ES-D0c0MoqK.js +0 -42
- package/dist/et-EE-BR4OXRfV.js +0 -13
- package/dist/et-EE-C4Fwyr7-.js +0 -42
- package/dist/et-EE-sB7wkSA3.js +0 -13
- package/dist/fi-FI-BbqwYcLI.js +0 -13
- package/dist/fi-FI-bRXb-Q_i.js +0 -42
- package/dist/fi-FI-u5GxMZsq.js +0 -13
- package/dist/fieldConfigurations-BsOQ678Q.js +0 -448
- package/dist/form-rules-DhbF2mY4.js +0 -13
- package/dist/fr-FR-CMjrAkKl.js +0 -13
- package/dist/fr-FR-Cr-Y1vIy.js +0 -13
- package/dist/fr-FR-JLPKgufm.js +0 -42
- package/dist/hr-HR-Bhsop3CT.js +0 -13
- package/dist/hr-HR-D26Gz-HL.js +0 -42
- package/dist/hr-HR-D8cBxUFa.js +0 -13
- package/dist/hu-HU-BVfkOdJe.js +0 -13
- package/dist/hu-HU-BZCFneWx.js +0 -42
- package/dist/hu-HU-D2j1ISVk.js +0 -13
- package/dist/isEmpty-B0GMAw4K.js +0 -23
- package/dist/it-IT-C7Sg1k4p.js +0 -13
- package/dist/it-IT-CwA8megO.js +0 -13
- package/dist/it-IT-mScKLwBR.js +0 -42
- package/dist/ja-JP-DyELKS9Q.js +0 -42
- package/dist/ja-JP-GSbqID7o.js +0 -13
- package/dist/jpAddressSchema-ULGNNt5U.js +0 -27
- package/dist/lt-LT-C5nNCk4_.js +0 -13
- package/dist/lt-LT-CLPQVRpJ.js +0 -42
- package/dist/lt-LT-DSiutpRl.js +0 -13
- package/dist/lv-LV-C62XiDE5.js +0 -13
- package/dist/lv-LV-CEK8Re4d.js +0 -13
- package/dist/lv-LV-Cu-MJMVO.js +0 -42
- package/dist/mapJpAddressSchemaToAddressLocalizations-D7YGYa9S.js +0 -147
- package/dist/nl-NL-BOJ6zuBr.js +0 -13
- package/dist/nl-NL-DOQPxTX-.js +0 -13
- package/dist/nl-NL-pVdpCCOx.js +0 -42
- package/dist/no-NO-CRULNwNn.js +0 -42
- package/dist/no-NO-Cp3-tDMw.js +0 -13
- package/dist/no-NO-CuwTDFSf.js +0 -13
- package/dist/pl-PL-1-MrLPXu.js +0 -13
- package/dist/pl-PL-CtDHmbhp.js +0 -13
- package/dist/pl-PL-CxCiWdAF.js +0 -42
- package/dist/pt-BR-Br_cHzGx.js +0 -13
- package/dist/pt-BR-DnKEuslh.js +0 -13
- package/dist/pt-BR-apPtB2cK.js +0 -42
- package/dist/pt-PT-CLwCij2I.js +0 -13
- package/dist/pt-PT-Coa6J7SM.js +0 -42
- package/dist/pt-PT-cjbtYBUX.js +0 -13
- package/dist/ro-RO-BTqq5BPM.js +0 -42
- package/dist/ro-RO-CGhIjlpU.js +0 -13
- package/dist/ro-RO-Cmk-sVDr.js +0 -13
- package/dist/sk-SK-Bo5nvxWQ.js +0 -13
- package/dist/sk-SK-Do6CKNU4.js +0 -13
- package/dist/sk-SK-welR06By.js +0 -42
- package/dist/sl-SI-B9N6vA08.js +0 -42
- package/dist/sl-SI-CrTRlNnN.js +0 -13
- package/dist/sl-SI-cY-L2ma-.js +0 -13
- package/dist/sv-SE-BtwPrLEA.js +0 -13
- package/dist/sv-SE-D6al0j6W.js +0 -42
- package/dist/sv-SE-WPziDPQa.js +0 -13
- package/dist/types/utils/analytics.d.ts +0 -31
- package/dist/utils-AieP90ex.js +0 -29
- package/dist/utils-Bd79Y_6k.js +0 -165
- package/dist/validate-WO7yAOk4.js +0 -382
|
@@ -1,448 +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] = "48798af9-7141-4283-b5c3-9c3343fce13f", e._sentryDebugIdIdentifier = "sentry-dbid-48798af9-7141-4283-b5c3-9c3343fce13f");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { c as useLegalEntity, R as ROOT_LE, X as useExperimentsContext, ap as getCapabilityProblems, g as getLegalEntityCountry, N as createLogger, b as useApiContext, aq as hasText, ar as isValidMinLength, as as matchesRegex, aa as isEmpty, at as NO_ALPHABET_REGEX, au as EMOJI_REGEX, av as hasRepeatedCharacters, aw as isInvalidName, ax as OTHER_ENTITIES_VALID_CHAR_REGEX, ay as LATIN_SPACE_MARK_PUNCTUATION_REGEX, az as standardKatakanaValidator, aA as standardKanjiValidator, P as useAnalyticsContext, u as useTranslation, L as Loader } from "./StoreProvider-BYjTSjnX.js";
|
|
11
|
-
import { useContext, useMemo, useRef, useState, useEffect } from "preact/hooks";
|
|
12
|
-
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
13
|
-
import { createContext } from "preact";
|
|
14
|
-
import { a as Alert } from "./Alert-B2qwr9au.js";
|
|
15
|
-
import cx from "classnames";
|
|
16
|
-
import { d as debouncedInputEvent } from "./analytics-DkXXx2b6.js";
|
|
17
|
-
import { b as useId } from "./useForm-CNi1k1NR.js";
|
|
18
|
-
import { R as Radio } from "./CountryField-CFppUh42.js";
|
|
19
|
-
const useCapabilityProblems = () => {
|
|
20
|
-
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
21
|
-
const { isExperimentEnabled } = useExperimentsContext();
|
|
22
|
-
return rootLegalEntity ? getCapabilityProblems(
|
|
23
|
-
rootLegalEntity,
|
|
24
|
-
getLegalEntityCountry(rootLegalEntity),
|
|
25
|
-
isExperimentEnabled
|
|
26
|
-
) : void 0;
|
|
27
|
-
};
|
|
28
|
-
const getProblemsForEntity = (capabilityProblems, entityType, entityId) => capabilityProblems[entityType]?.[entityId];
|
|
29
|
-
const TrustedFieldsProviders = {
|
|
30
|
-
SINGPASS: "singpass",
|
|
31
|
-
KOMPANY: "kompany"
|
|
32
|
-
};
|
|
33
|
-
const IgnoreLocalStorageContext = createContext(false);
|
|
34
|
-
const useIgnoreLocalStorage = () => useContext(IgnoreLocalStorageContext);
|
|
35
|
-
const logger$1 = createLogger();
|
|
36
|
-
const useLocalStorage = (key, defaultValue, options) => {
|
|
37
|
-
const { serializer, parser, syncData } = useMemo(
|
|
38
|
-
() => ({
|
|
39
|
-
serializer: JSON.stringify,
|
|
40
|
-
parser: JSON.parse,
|
|
41
|
-
syncData: true,
|
|
42
|
-
...options
|
|
43
|
-
}),
|
|
44
|
-
[options]
|
|
45
|
-
);
|
|
46
|
-
const ignoreLocalStorage = useIgnoreLocalStorage() || typeof window === "undefined";
|
|
47
|
-
const rawValueRef = useRef(null);
|
|
48
|
-
const [value, setValue] = useState(() => {
|
|
49
|
-
if (ignoreLocalStorage) return defaultValue;
|
|
50
|
-
try {
|
|
51
|
-
rawValueRef.current = window.localStorage.getItem(key);
|
|
52
|
-
const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
|
|
53
|
-
return res;
|
|
54
|
-
} catch (err) {
|
|
55
|
-
logger$1.error(err);
|
|
56
|
-
return defaultValue;
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
useEffect(() => {
|
|
60
|
-
if (ignoreLocalStorage) return;
|
|
61
|
-
const updateLocalStorage = () => {
|
|
62
|
-
if (value !== void 0) {
|
|
63
|
-
const newValue = serializer(value);
|
|
64
|
-
const oldValue = rawValueRef.current;
|
|
65
|
-
rawValueRef.current = newValue;
|
|
66
|
-
window.localStorage.setItem(key, newValue);
|
|
67
|
-
window.dispatchEvent(
|
|
68
|
-
new StorageEvent("storage", {
|
|
69
|
-
storageArea: window.localStorage,
|
|
70
|
-
url: window.location.href,
|
|
71
|
-
key,
|
|
72
|
-
newValue,
|
|
73
|
-
oldValue
|
|
74
|
-
})
|
|
75
|
-
);
|
|
76
|
-
} else {
|
|
77
|
-
window.localStorage.removeItem(key);
|
|
78
|
-
window.dispatchEvent(
|
|
79
|
-
new StorageEvent("storage", {
|
|
80
|
-
storageArea: window.localStorage,
|
|
81
|
-
url: window.location.href,
|
|
82
|
-
key
|
|
83
|
-
})
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
try {
|
|
88
|
-
updateLocalStorage();
|
|
89
|
-
} catch (err) {
|
|
90
|
-
logger$1.error(err);
|
|
91
|
-
}
|
|
92
|
-
}, [value, ignoreLocalStorage]);
|
|
93
|
-
useEffect(() => {
|
|
94
|
-
if (!syncData) return;
|
|
95
|
-
const handleStorageChange = (event) => {
|
|
96
|
-
if (event.key !== key || event.storageArea !== window.localStorage) return;
|
|
97
|
-
try {
|
|
98
|
-
if (event.newValue !== rawValueRef.current) {
|
|
99
|
-
rawValueRef.current = event.newValue;
|
|
100
|
-
setValue(event.newValue ? parser(event.newValue) : void 0);
|
|
101
|
-
}
|
|
102
|
-
} catch (err) {
|
|
103
|
-
logger$1.error(err);
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
if (ignoreLocalStorage) return;
|
|
107
|
-
window.addEventListener("storage", handleStorageChange);
|
|
108
|
-
return () => window.removeEventListener("storage", handleStorageChange);
|
|
109
|
-
}, [key, syncData, ignoreLocalStorage]);
|
|
110
|
-
return [value, setValue];
|
|
111
|
-
};
|
|
112
|
-
const getAccountHolderStorageKey = (legalEntityId) => `ACCOUNT_HOLDER-${legalEntityId}`;
|
|
113
|
-
const useAccountHolder = () => {
|
|
114
|
-
const { rootLegalEntityId } = useApiContext();
|
|
115
|
-
const [accountHolderFromLocalStorage, setAccountHolderIntoLocalStorage] = useLocalStorage(getAccountHolderStorageKey(rootLegalEntityId.value), void 0);
|
|
116
|
-
return {
|
|
117
|
-
accountHolder: accountHolderFromLocalStorage,
|
|
118
|
-
setAccountHolder: setAccountHolderIntoLocalStorage
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
const validateNotEmptyOnBlur = {
|
|
122
|
-
modes: ["blur"],
|
|
123
|
-
validate: (val) => !isEmpty(val),
|
|
124
|
-
errorMessage: "fieldIsRequired"
|
|
125
|
-
};
|
|
126
|
-
const validateLegalCompanyName = [
|
|
127
|
-
{
|
|
128
|
-
modes: ["blur"],
|
|
129
|
-
validate: hasText,
|
|
130
|
-
errorMessage: "fieldIsRequired"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
modes: ["blur"],
|
|
134
|
-
validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
|
|
135
|
-
errorMessage: "nameMustContainLetters"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
modes: ["blur"],
|
|
139
|
-
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
140
|
-
errorMessage: "checkForTypos"
|
|
141
|
-
}
|
|
142
|
-
];
|
|
143
|
-
const validateJaHaniLegalCompanyName = [
|
|
144
|
-
{
|
|
145
|
-
modes: ["blur"],
|
|
146
|
-
validate: hasText,
|
|
147
|
-
errorMessage: "fieldIsRequired"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
modes: ["blur"],
|
|
151
|
-
validate: (input) => standardKanjiValidator(input),
|
|
152
|
-
errorMessage: "nameMustContainLetters"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
modes: ["blur"],
|
|
156
|
-
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
157
|
-
errorMessage: "checkForTypos"
|
|
158
|
-
}
|
|
159
|
-
];
|
|
160
|
-
const validateJaKanaLegalCompanyName = [
|
|
161
|
-
{
|
|
162
|
-
modes: ["blur"],
|
|
163
|
-
validate: hasText,
|
|
164
|
-
errorMessage: "fieldIsRequired"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
modes: ["blur"],
|
|
168
|
-
validate: (input) => standardKatakanaValidator(input),
|
|
169
|
-
errorMessage: "nameMustContainLetters"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
modes: ["blur"],
|
|
173
|
-
validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasRepeatedCharacters(input) && isValidMinLength(input, 3) && !isInvalidName(input) && matchesRegex(OTHER_ENTITIES_VALID_CHAR_REGEX, input),
|
|
174
|
-
errorMessage: "checkForTypos"
|
|
175
|
-
}
|
|
176
|
-
];
|
|
177
|
-
const validateLatinSpaceMarkPunctuationOnlyOnBlur = {
|
|
178
|
-
modes: ["blur"],
|
|
179
|
-
validate: (input) => matchesRegex(LATIN_SPACE_MARK_PUNCTUATION_REGEX, input),
|
|
180
|
-
errorMessage: "kanjiAndKanaCharactersAreNotAllowed"
|
|
181
|
-
};
|
|
182
|
-
const validatePatternOnBlur = (pattern) => ({
|
|
183
|
-
modes: ["blur"],
|
|
184
|
-
validate: (val) => !!val && pattern.test(val)
|
|
185
|
-
});
|
|
186
|
-
function ContextGuidance({
|
|
187
|
-
title,
|
|
188
|
-
content,
|
|
189
|
-
titleId,
|
|
190
|
-
contentId,
|
|
191
|
-
trackingParams
|
|
192
|
-
}) {
|
|
193
|
-
const userEvents = useAnalyticsContext();
|
|
194
|
-
const onGuidanceToggle = (status) => {
|
|
195
|
-
userEvents.addFieldEvent("Clicked accordion", {
|
|
196
|
-
actionType: status,
|
|
197
|
-
field: "context guidance",
|
|
198
|
-
label: titleId,
|
|
199
|
-
content: contentId,
|
|
200
|
-
...trackingParams
|
|
201
|
-
});
|
|
202
|
-
};
|
|
203
|
-
return /* @__PURE__ */ jsx(Alert, { title, type: "collapsible", variant: "info", onToggle: onGuidanceToggle, children: content });
|
|
204
|
-
}
|
|
205
|
-
const convertFullToHalf = (str) => str.replace(/[!-~]/g, (r) => String.fromCharCode(r.charCodeAt(0) - 65248));
|
|
206
|
-
const logger = createLogger();
|
|
207
|
-
function TextArea(props) {
|
|
208
|
-
const {
|
|
209
|
-
autoCorrect,
|
|
210
|
-
isInvalid,
|
|
211
|
-
isValid,
|
|
212
|
-
readonly = null,
|
|
213
|
-
spellCheck,
|
|
214
|
-
disabled,
|
|
215
|
-
maxLength,
|
|
216
|
-
className,
|
|
217
|
-
trimOnBlur,
|
|
218
|
-
enableTracking = false,
|
|
219
|
-
name,
|
|
220
|
-
"aria-describedby": ariaDescribedBy,
|
|
221
|
-
"aria-invalid": ariaInvalid,
|
|
222
|
-
"aria-labelledby": ariaLabelledBy
|
|
223
|
-
} = props;
|
|
224
|
-
const { t } = useTranslation("ui");
|
|
225
|
-
const userEvents = useAnalyticsContext();
|
|
226
|
-
const [value, setValue] = useState("");
|
|
227
|
-
if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
|
|
228
|
-
logger.error("Error: Form fields that rely on InputBase may not have an onChange property");
|
|
229
|
-
}
|
|
230
|
-
const handleInput = (e) => {
|
|
231
|
-
if (enableTracking) {
|
|
232
|
-
debouncedInputEvent({
|
|
233
|
-
actionType: "input",
|
|
234
|
-
field: name
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
e.currentTarget.value = convertFullToHalf(e.currentTarget.value);
|
|
238
|
-
setValue(e.currentTarget.value);
|
|
239
|
-
props?.onInput?.(e);
|
|
240
|
-
};
|
|
241
|
-
const handleBlur = (e) => {
|
|
242
|
-
if (enableTracking) {
|
|
243
|
-
userEvents.addFieldEvent("Interacted with form field", {
|
|
244
|
-
actionType: "blur",
|
|
245
|
-
field: name
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
props?.onBlurHandler?.(e);
|
|
249
|
-
if (trimOnBlur) {
|
|
250
|
-
e.currentTarget.value = e.currentTarget.value.trim();
|
|
251
|
-
}
|
|
252
|
-
props?.onBlur?.(e);
|
|
253
|
-
};
|
|
254
|
-
const handleFocus = (e) => {
|
|
255
|
-
if (enableTracking) {
|
|
256
|
-
userEvents.addFieldEvent("Interacted with form field", {
|
|
257
|
-
actionType: "focus",
|
|
258
|
-
field: name
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
props?.onFocusHandler?.(e);
|
|
262
|
-
};
|
|
263
|
-
const inputClassNames = cx("adyen-kyc-input", "adyen-kyc-input--textarea", className, {
|
|
264
|
-
"adyen-kyc-input--invalid": isInvalid,
|
|
265
|
-
"adyen-kyc-field--valid": isValid,
|
|
266
|
-
"adyen-kyc-input--disabled": disabled
|
|
267
|
-
});
|
|
268
|
-
const charactersLeft = maxLength - value.length;
|
|
269
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
270
|
-
/* @__PURE__ */ jsx(
|
|
271
|
-
"textarea",
|
|
272
|
-
{
|
|
273
|
-
...props,
|
|
274
|
-
className: inputClassNames,
|
|
275
|
-
readOnly: readonly,
|
|
276
|
-
spellCheck,
|
|
277
|
-
autoCorrect,
|
|
278
|
-
"aria-describedby": ariaDescribedBy,
|
|
279
|
-
"aria-invalid": ariaInvalid,
|
|
280
|
-
"aria-labelledby": ariaLabelledBy,
|
|
281
|
-
...disabled && { "aria-disabled": true },
|
|
282
|
-
onInput: handleInput,
|
|
283
|
-
onBlur: handleBlur,
|
|
284
|
-
onFocus: handleFocus
|
|
285
|
-
}
|
|
286
|
-
),
|
|
287
|
-
!isInvalid && maxLength && charactersLeft >= 0 ? /* @__PURE__ */ jsx("span", { className: "adyen-kyc-input__counter", children: t(($) => $["xCharactersLeft"], { charactersLeft }) }) : null
|
|
288
|
-
] });
|
|
289
|
-
}
|
|
290
|
-
const RadioCard = ({
|
|
291
|
-
optionId,
|
|
292
|
-
optionName,
|
|
293
|
-
optionDescription,
|
|
294
|
-
optionSubtitle,
|
|
295
|
-
name,
|
|
296
|
-
isInvalid,
|
|
297
|
-
isSelected,
|
|
298
|
-
onSelect,
|
|
299
|
-
classNames,
|
|
300
|
-
disabled,
|
|
301
|
-
loading,
|
|
302
|
-
icon,
|
|
303
|
-
body,
|
|
304
|
-
footer,
|
|
305
|
-
floatingRadio
|
|
306
|
-
}) => {
|
|
307
|
-
const id = useId("radio");
|
|
308
|
-
const elementIds = {
|
|
309
|
-
label: `${id}-label`,
|
|
310
|
-
description: `${id}-description`,
|
|
311
|
-
subtitle: `${id}-subtitle`
|
|
312
|
-
};
|
|
313
|
-
const ariaDescribedBy = `${optionSubtitle ? elementIds.subtitle : ""} ${optionDescription || body ? elementIds.description : ""}`.trim();
|
|
314
|
-
return /* @__PURE__ */ jsxs(
|
|
315
|
-
"label",
|
|
316
|
-
{
|
|
317
|
-
"data-testId": optionId,
|
|
318
|
-
className: cx([
|
|
319
|
-
"adyen-kyc-radio-card",
|
|
320
|
-
classNames?.label,
|
|
321
|
-
{ "adyen-kyc-radio-card--disabled": disabled }
|
|
322
|
-
]),
|
|
323
|
-
children: [
|
|
324
|
-
icon && /* @__PURE__ */ jsx("div", { className: cx("adyen-kyc-radio-card__icon", classNames?.icon), "aria-hidden": "true", children: icon }),
|
|
325
|
-
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-radio-card__content", children: [
|
|
326
|
-
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-radio-card__header adyen-kyc-u-display-flex adyen-kyc-u-align-items-center", children: /* @__PURE__ */ jsxs(
|
|
327
|
-
"div",
|
|
328
|
-
{
|
|
329
|
-
className: cx([
|
|
330
|
-
"adyen-kyc-radio-group-card__label",
|
|
331
|
-
classNames?.header,
|
|
332
|
-
{ "adyen-kyc-radio-group-card__label--invalid": isInvalid }
|
|
333
|
-
]),
|
|
334
|
-
children: [
|
|
335
|
-
optionSubtitle && /* @__PURE__ */ jsxs("div", { id: elementIds.subtitle, className: "adyen-kyc-radio-group-card__subtitle", children: [
|
|
336
|
-
optionSubtitle,
|
|
337
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-u-screen-reader-only", children: "." })
|
|
338
|
-
] }),
|
|
339
|
-
/* @__PURE__ */ jsx("span", { id: elementIds.label, children: optionName })
|
|
340
|
-
]
|
|
341
|
-
}
|
|
342
|
-
) }),
|
|
343
|
-
/* @__PURE__ */ jsx(
|
|
344
|
-
"div",
|
|
345
|
-
{
|
|
346
|
-
id: elementIds.description,
|
|
347
|
-
className: cx("adyen-kyc-radio-card__body", classNames?.body),
|
|
348
|
-
children: body ?? optionDescription
|
|
349
|
-
}
|
|
350
|
-
),
|
|
351
|
-
footer && /* @__PURE__ */ jsx("div", { className: cx("adyen-kyc-radio-card__footer", classNames?.footer), children: footer })
|
|
352
|
-
] }),
|
|
353
|
-
loading ? /* @__PURE__ */ jsx("span", { className: "adyen-kyc-radio-card__loading-icon", children: /* @__PURE__ */ jsx(Loader, { size: "small", dot: true }) }) : /* @__PURE__ */ jsx(
|
|
354
|
-
Radio,
|
|
355
|
-
{
|
|
356
|
-
id,
|
|
357
|
-
"aria-describedby": ariaDescribedBy,
|
|
358
|
-
"aria-labelledby": elementIds.label,
|
|
359
|
-
checked: isSelected,
|
|
360
|
-
groupName: name,
|
|
361
|
-
onClick: onSelect,
|
|
362
|
-
value: optionId,
|
|
363
|
-
disabled,
|
|
364
|
-
className: cx({ "adyen-kyc-radio-group-card__radio--floating": floatingRadio })
|
|
365
|
-
}
|
|
366
|
-
)
|
|
367
|
-
]
|
|
368
|
-
},
|
|
369
|
-
optionId
|
|
370
|
-
);
|
|
371
|
-
};
|
|
372
|
-
const RadioGroupCard = ({
|
|
373
|
-
options,
|
|
374
|
-
name,
|
|
375
|
-
onSelect,
|
|
376
|
-
selected,
|
|
377
|
-
isInvalid,
|
|
378
|
-
className,
|
|
379
|
-
optionId,
|
|
380
|
-
optionName,
|
|
381
|
-
optionDescription,
|
|
382
|
-
optionSubtitle,
|
|
383
|
-
optionClassNames,
|
|
384
|
-
renderOptionIcon,
|
|
385
|
-
renderOptionBody,
|
|
386
|
-
renderOptionFooter,
|
|
387
|
-
isOptionDisabled,
|
|
388
|
-
floatingRadio,
|
|
389
|
-
enableTracking = false
|
|
390
|
-
}) => {
|
|
391
|
-
const userEvents = useAnalyticsContext();
|
|
392
|
-
const handleSelect = (option) => {
|
|
393
|
-
if (enableTracking) {
|
|
394
|
-
userEvents.addFieldEvent("Interacted with form field", {
|
|
395
|
-
actionType: "input",
|
|
396
|
-
field: name,
|
|
397
|
-
returnValue: typeof option === "string" ? option : void 0
|
|
398
|
-
});
|
|
399
|
-
}
|
|
400
|
-
onSelect(option);
|
|
401
|
-
};
|
|
402
|
-
return /* @__PURE__ */ jsx("div", { className: className ?? "adyen-kyc-radio-group-card", children: options.map((option) => /* @__PURE__ */ jsx(
|
|
403
|
-
RadioCard,
|
|
404
|
-
{
|
|
405
|
-
optionId: optionId(option),
|
|
406
|
-
optionName: optionName(option),
|
|
407
|
-
optionDescription: optionDescription?.(option),
|
|
408
|
-
optionSubtitle: optionSubtitle?.(option),
|
|
409
|
-
isInvalid,
|
|
410
|
-
isSelected: selected === option,
|
|
411
|
-
onSelect: () => handleSelect(option),
|
|
412
|
-
name,
|
|
413
|
-
classNames: optionClassNames?.(option),
|
|
414
|
-
icon: renderOptionIcon?.(option),
|
|
415
|
-
body: renderOptionBody?.(option),
|
|
416
|
-
footer: renderOptionFooter?.(option),
|
|
417
|
-
disabled: isOptionDisabled?.(option),
|
|
418
|
-
floatingRadio
|
|
419
|
-
},
|
|
420
|
-
optionId(option)
|
|
421
|
-
)) });
|
|
422
|
-
};
|
|
423
|
-
const resolveFieldMetadata = (countryEntry, params, defaultMetadata) => {
|
|
424
|
-
if (typeof countryEntry === "object") {
|
|
425
|
-
return countryEntry;
|
|
426
|
-
}
|
|
427
|
-
if (typeof countryEntry === "function") {
|
|
428
|
-
return countryEntry(params);
|
|
429
|
-
}
|
|
430
|
-
return defaultMetadata;
|
|
431
|
-
};
|
|
432
|
-
export {
|
|
433
|
-
ContextGuidance as C,
|
|
434
|
-
RadioGroupCard as R,
|
|
435
|
-
TextArea as T,
|
|
436
|
-
useAccountHolder as a,
|
|
437
|
-
useCapabilityProblems as b,
|
|
438
|
-
validateNotEmptyOnBlur as c,
|
|
439
|
-
validateLatinSpaceMarkPunctuationOnlyOnBlur as d,
|
|
440
|
-
TrustedFieldsProviders as e,
|
|
441
|
-
validatePatternOnBlur as f,
|
|
442
|
-
getProblemsForEntity as g,
|
|
443
|
-
validateJaKanaLegalCompanyName as h,
|
|
444
|
-
validateJaHaniLegalCompanyName as i,
|
|
445
|
-
resolveFieldMetadata as r,
|
|
446
|
-
useLocalStorage as u,
|
|
447
|
-
validateLegalCompanyName as v
|
|
448
|
-
};
|
|
@@ -1,13 +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] = "61ce024f-93e3-46b9-9c46-7202c91ce26e", e._sentryDebugIdIdentifier = "sentry-dbid-61ce024f-93e3-46b9-9c46-7202c91ce26e");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
const createFormRules = (rules) => rules;
|
|
11
|
-
export {
|
|
12
|
-
createFormRules as c
|
|
13
|
-
};
|